@divkitframework/divkit 21.1.0 → 22.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- (()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{createGlobalVariablesController:()=>Qa,createVariable:()=>on,evalExpression:()=>cl,functionNames:()=>ul,render:()=>sl,valToString:()=>D});const n=2147483647,r=-2147483648,o=Number.MAX_VALUE,i=Number.MIN_VALUE,a="string",l="integer",s="number",c="boolean",u="color",d="datetime";function h(t,e){return e.reduce(((t,e)=>({type:"BinaryExpression",operator:e[1],left:t,right:e[3]})),t)}function p(t,e){return e.reduce(((t,e)=>({type:"LogicalExpression",operator:e[1],left:t,right:e[3]})),t)}function f(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 g(t){var e=parseInt(t,10);if(e>n||e<r)throw new Error("Value ".concat(t," can't be converted to Integer type."));return e}function m(t){if("'"===t||"\\"===t)return t;throw new Error("Incorrect string escape")}function v(t,e,n,r){var o=Error.call(this,t);return Object.setPrototypeOf&&Object.setPrototypeOf(o,v.prototype),o.expected=e,o.found=n,o.location=r,o.name="SyntaxError",o}function y(t,e,n){return n=n||" ",t.length>e?t:(e-=t.length,t+(n+=n.repeat(e)).slice(0,e))}function $(t,e){var n,r={},o=(e=void 0!==e?e:{}).grammarSource,i={start:Ft,JsonStringContents:function(){var t,e,n;for(t=wt,e=[],n=Nt();n!==r;)e.push(n),n=Nt();return xt=t,e=bt(e)}},a=Ft,l="@{",s="}",c="@{}",u="\\",d="||",y="&&",$="==",_="!=",b=">=",w="<=",x="+",k="-",E="true",C="false",A=/^[^}]/,V=/^[^'}]/,j=/^[0-9]/,P=/^[a-zA-Z_0-9.]/,D=/^[a-zA-Z_]/,S=/^[ \t\r\n]/,I=jt("@{",!1),z=jt("}",!1),F=jt("@{}",!1),N=jt("\\",!1),M={type:"any"},T=Pt(["}"],!0,!1),J=jt("?",!1),O=jt(":",!1),B=jt("||",!1),R=jt("&&",!1),W=jt("==",!1),L=jt("!=",!1),U=jt(">=",!1),q=jt(">",!1),H=jt("<=",!1),G=jt("<",!1),K=jt("+",!1),X=jt("-",!1),Y=jt("/",!1),Z=jt("*",!1),Q=jt("%",!1),tt=jt("!",!1),et=jt("(",!1),nt=jt(")",!1),rt=jt(",",!1),ot=Dt("string"),it=jt("'",!1),at=Pt(["'","}"],!0,!1),lt=Dt("integer"),st=Pt([["0","9"]],!1,!1),ct=Dt("number"),ut=jt(".",!1),dt=jt("e",!1),ht=jt("E",!1),pt=Dt("boolean"),ft=jt("true",!1),gt=jt("false",!1),mt=Pt([["a","z"],["A","Z"],"_",["0","9"],"."],!1,!1),vt=Dt("identifier"),yt=Pt([["a","z"],["A","Z"],"_"],!1,!1),$t=Dt("whitespace"),_t=Pt([" ","\t","\r","\n"],!1,!1),bt=function(t){return f(t)},wt=0,xt=0,kt=[{line:1,column:1}],Et=0,Ct=[],At=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 Vt(){return t.substring(xt,wt)}function jt(t,e){return{type:"literal",text:t,ignoreCase:e}}function Pt(t,e,n){return{type:"class",parts:t,inverted:e,ignoreCase:n}}function Dt(t){return{type:"other",description:t}}function St(e){var n,r=kt[e];if(r)return r;for(n=e-1;!kt[n];)n--;for(r={line:(r=kt[n]).line,column:r.column};n<e;)10===t.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return kt[e]=r,r}function It(t,e){var n=St(t),r=St(e);return{source:o,start:{offset:t,line:n.line,column:n.column},end:{offset:e,line:r.line,column:r.column}}}function zt(t){wt<Et||(wt>Et&&(Et=wt,Ct=[]),Ct.push(t))}function Ft(){var t,e;return t=wt,Kt(),(e=Mt())!==r?(Kt(),xt=t,t=e):(wt=t,t=r),t}function Nt(){var e,n,o,i,a;if(e=wt,t.substr(wt,2)===l?(n=l,wt+=2):(n=r,0===At&&zt(I)),n!==r?(o=Kt(),(i=Mt())!==r?(Kt(),125===t.charCodeAt(wt)?(a=s,wt++):(a=r,0===At&&zt(z)),a!==r?(xt=e,e=i):(wt=e,e=r)):(wt=e,e=r)):(wt=e,e=r),e===r&&(e=wt,t.substr(wt,3)===c?(n=c,wt+=3):(n=r,0===At&&zt(F)),n!==r&&(xt=e,n=""),(e=n)===r&&(e=wt,n=wt,At++,92===t.charCodeAt(wt)?(o=u,wt++):(o=r,0===At&&zt(N)),o===r&&(t.substr(wt,2)===l?(o=l,wt+=2):(o=r,0===At&&zt(I))),At--,o===r?n=void 0:(wt=n,n=r),n!==r?(t.length>wt?(o=t.charAt(wt),wt++):(o=r,0===At&&zt(M)),o!==r?(xt=e,e=Vt()):(wt=e,e=r)):(wt=e,e=r),e===r))){if(e=wt,t.substr(wt,2)===l?(n=l,wt+=2):(n=r,0===At&&zt(I)),n!==r){if(o=[],A.test(t.charAt(wt))?(i=t.charAt(wt),wt++):(i=r,0===At&&zt(T)),i!==r)for(;i!==r;)o.push(i),A.test(t.charAt(wt))?(i=t.charAt(wt),wt++):(i=r,0===At&&zt(T));else o=r;o!==r?(125===t.charCodeAt(wt)?(i=s,wt++):(i=r,0===At&&zt(z)),i!==r?(xt=e,e=function(){throw new Error("Error tokenizing '"+t+"'.")}()):(wt=e,e=r)):(wt=e,e=r)}else wt=e,e=r;e===r&&(e=wt,t.substr(wt,2)===l?(n=l,wt+=2):(n=r,0===At&&zt(I)),n!==r&&(xt=e,n=function(){throw new Error("Error tokenizing '"+t+"'.")}()),(e=n)===r&&(e=wt,92===t.charCodeAt(wt)?(n=u,wt++):(n=r,0===At&&zt(N)),n!==r?(t.substr(wt,2)===l?(o=l,wt+=2):(o=r,0===At&&zt(I)),o!==r?(xt=e,e=o):(wt=e,e=r)):(wt=e,e=r),e===r&&(e=wt,92===t.charCodeAt(wt)?(n=u,wt++):(n=r,0===At&&zt(N)),n!==r?(t.length>wt?(o=t.charAt(wt),wt++):(o=r,0===At&&zt(M)),o!==r?(xt=e,e=m(o)):(wt=e,e=r)):(wt=e,e=r),e===r&&(e=wt,92===t.charCodeAt(wt)?(n=u,wt++):(n=r,0===At&&zt(N)),n!==r&&(xt=e,n=function(){throw new Error("Error tokenizing '"+t+"'.")}()),e=n))))}return e}function Mt(){var e,n,o,i,a,l;return e=wt,(n=Tt())!==r?(Kt(),63===t.charCodeAt(wt)?(o="?",wt++):(o=r,0===At&&zt(J)),o!==r?(Kt(),(i=Mt())!==r?(Kt(),58===t.charCodeAt(wt)?(a=":",wt++):(a=r,0===At&&zt(O)),a!==r?(Kt(),(l=Mt())!==r?(xt=e,e={type:"ConditionalExpression",test:n,consequent:i,alternate:l}):(wt=e,e=r)):(wt=e,e=r)):(wt=e,e=r)):(wt=e,e=r)):(wt=e,e=r),e===r&&(e=Tt()),e}function Tt(){var e,n,o,i,a,l,s,c;if(e=wt,(n=Jt())!==r){for(o=[],i=wt,a=Kt(),t.substr(wt,2)===d?(l=d,wt+=2):(l=r,0===At&&zt(B)),l!==r?(s=Kt(),(c=Jt())!==r?i=a=[a,l,s,c]:(wt=i,i=r)):(wt=i,i=r);i!==r;)o.push(i),i=wt,a=Kt(),t.substr(wt,2)===d?(l=d,wt+=2):(l=r,0===At&&zt(B)),l!==r?(s=Kt(),(c=Jt())!==r?i=a=[a,l,s,c]:(wt=i,i=r)):(wt=i,i=r);xt=e,e=p(n,o)}else wt=e,e=r;return e}function Jt(){var e,n,o,i,a,l,s,c;if(e=wt,(n=Ot())!==r){for(o=[],i=wt,a=Kt(),t.substr(wt,2)===y?(l=y,wt+=2):(l=r,0===At&&zt(R)),l!==r?(s=Kt(),(c=Ot())!==r?i=a=[a,l,s,c]:(wt=i,i=r)):(wt=i,i=r);i!==r;)o.push(i),i=wt,a=Kt(),t.substr(wt,2)===y?(l=y,wt+=2):(l=r,0===At&&zt(R)),l!==r?(s=Kt(),(c=Ot())!==r?i=a=[a,l,s,c]:(wt=i,i=r)):(wt=i,i=r);xt=e,e=p(n,o)}else wt=e,e=r;return e}function Ot(){var e,n,o,i,a,l,s,c;if(e=wt,(n=Bt())!==r){for(o=[],i=wt,a=Kt(),t.substr(wt,2)===$?(l=$,wt+=2):(l=r,0===At&&zt(W)),l===r&&(t.substr(wt,2)===_?(l=_,wt+=2):(l=r,0===At&&zt(L))),l!==r?(s=Kt(),(c=Bt())!==r?i=a=[a,l,s,c]:(wt=i,i=r)):(wt=i,i=r);i!==r;)o.push(i),i=wt,a=Kt(),t.substr(wt,2)===$?(l=$,wt+=2):(l=r,0===At&&zt(W)),l===r&&(t.substr(wt,2)===_?(l=_,wt+=2):(l=r,0===At&&zt(L))),l!==r?(s=Kt(),(c=Bt())!==r?i=a=[a,l,s,c]:(wt=i,i=r)):(wt=i,i=r);xt=e,e=h(n,o)}else wt=e,e=r;return e}function Bt(){var e,n,o,i,a,l,s,c;if(e=wt,(n=Rt())!==r){for(o=[],i=wt,a=Kt(),t.substr(wt,2)===b?(l=b,wt+=2):(l=r,0===At&&zt(U)),l===r&&(62===t.charCodeAt(wt)?(l=">",wt++):(l=r,0===At&&zt(q)),l===r&&(t.substr(wt,2)===w?(l=w,wt+=2):(l=r,0===At&&zt(H)),l===r&&(60===t.charCodeAt(wt)?(l="<",wt++):(l=r,0===At&&zt(G))))),l!==r?(s=Kt(),(c=Rt())!==r?i=a=[a,l,s,c]:(wt=i,i=r)):(wt=i,i=r);i!==r;)o.push(i),i=wt,a=Kt(),t.substr(wt,2)===b?(l=b,wt+=2):(l=r,0===At&&zt(U)),l===r&&(62===t.charCodeAt(wt)?(l=">",wt++):(l=r,0===At&&zt(q)),l===r&&(t.substr(wt,2)===w?(l=w,wt+=2):(l=r,0===At&&zt(H)),l===r&&(60===t.charCodeAt(wt)?(l="<",wt++):(l=r,0===At&&zt(G))))),l!==r?(s=Kt(),(c=Rt())!==r?i=a=[a,l,s,c]:(wt=i,i=r)):(wt=i,i=r);xt=e,e=h(n,o)}else wt=e,e=r;return e}function Rt(){var e,n,o,i,a,l,s,c;if(e=wt,(n=Wt())!==r){for(o=[],i=wt,a=Kt(),43===t.charCodeAt(wt)?(l=x,wt++):(l=r,0===At&&zt(K)),l===r&&(45===t.charCodeAt(wt)?(l=k,wt++):(l=r,0===At&&zt(X))),l!==r?(s=Kt(),(c=Wt())!==r?i=a=[a,l,s,c]:(wt=i,i=r)):(wt=i,i=r);i!==r;)o.push(i),i=wt,a=Kt(),43===t.charCodeAt(wt)?(l=x,wt++):(l=r,0===At&&zt(K)),l===r&&(45===t.charCodeAt(wt)?(l=k,wt++):(l=r,0===At&&zt(X))),l!==r?(s=Kt(),(c=Wt())!==r?i=a=[a,l,s,c]:(wt=i,i=r)):(wt=i,i=r);xt=e,e=h(n,o)}else wt=e,e=r;return e}function Wt(){var e,n,o,i,a,l,s,c;if(e=wt,(n=Lt())!==r){for(o=[],i=wt,a=Kt(),47===t.charCodeAt(wt)?(l="/",wt++):(l=r,0===At&&zt(Y)),l===r&&(42===t.charCodeAt(wt)?(l="*",wt++):(l=r,0===At&&zt(Z)),l===r&&(37===t.charCodeAt(wt)?(l="%",wt++):(l=r,0===At&&zt(Q)))),l!==r?(s=Kt(),(c=Lt())!==r?i=a=[a,l,s,c]:(wt=i,i=r)):(wt=i,i=r);i!==r;)o.push(i),i=wt,a=Kt(),47===t.charCodeAt(wt)?(l="/",wt++):(l=r,0===At&&zt(Y)),l===r&&(42===t.charCodeAt(wt)?(l="*",wt++):(l=r,0===At&&zt(Z)),l===r&&(37===t.charCodeAt(wt)?(l="%",wt++):(l=r,0===At&&zt(Q)))),l!==r?(s=Kt(),(c=Lt())!==r?i=a=[a,l,s,c]:(wt=i,i=r)):(wt=i,i=r);xt=e,e=h(n,o)}else wt=e,e=r;return e}function Lt(){var e,n,o;return(e=Ht())===r&&(e=qt())===r&&(e=wt,33===t.charCodeAt(wt)?(n="!",wt++):(n=r,0===At&&zt(tt)),n===r&&(43===t.charCodeAt(wt)?(n=x,wt++):(n=r,0===At&&zt(K)),n===r&&(45===t.charCodeAt(wt)?(n=k,wt++):(n=r,0===At&&zt(X)))),n!==r?(Kt(),(o=Lt())!==r?(xt=e,e={type:"UnaryExpression",operator:n,argument:o}):(wt=e,e=r)):(wt=e,e=r),e===r&&(e=function(){var e,n,o,i,a;return e=wt,(n=Gt())!==r?(Kt(),40===t.charCodeAt(wt)?(o="(",wt++):(o=r,0===At&&zt(et)),o!==r?(Kt(),i=function(){var e,n,o,i,a,l,s;if(e=wt,(n=Mt())!==r){for(o=[],i=wt,Kt(),44===t.charCodeAt(wt)?(a=",",wt++):(a=r,0===At&&zt(rt)),a!==r?(Kt(),(l=Mt())!==r?i=l:(wt=i,i=r)):(wt=i,i=r);i!==r;)o.push(i),i=wt,Kt(),44===t.charCodeAt(wt)?(a=",",wt++):(a=r,0===At&&zt(rt)),a!==r?(Kt(),(l=Mt())!==r?i=l:(wt=i,i=r)):(wt=i,i=r);xt=e,s=o,e=[n,...s]}else wt=e,e=r;return e===r&&(e=Kt()),e}(),i!==r?(Kt(),41===t.charCodeAt(wt)?(a=")",wt++):(a=r,0===At&&zt(nt)),a!==r?(xt=e,e={type:"CallExpression",callee:n,arguments:i}):(wt=e,e=r)):(wt=e,e=r)):(wt=e,e=r)):(wt=e,e=r),e===r&&(e=wt,(n=Gt())!==r&&(xt=e,n={type:"Variable",id:n}),(e=n)===r&&(e=function(){var e,n,o,i;return e=function(){var e,n,o,i;return At++,e=wt,39===t.charCodeAt(wt)?(n="'",wt++):(n=r,0===At&&zt(it)),n!==r?(o=function(){var t,e,n;for(t=wt,e=[],n=Ut();n!==r;)e.push(n),n=Ut();return xt=t,e=f(e)}(),39===t.charCodeAt(wt)?(i="'",wt++):(i=r,0===At&&zt(it)),i!==r?(xt=e,e=o):(wt=e,e=r)):(wt=e,e=r),At--,e===r&&(n=r,0===At&&zt(ot)),e}(),e===r&&(e=Ht())===r&&(e=qt())===r&&(e=function(){var e,n;return At++,e=wt,t.substr(wt,4)===E?(n=E,wt+=4):(n=r,0===At&&zt(ft)),n!==r&&(xt=e,n={type:"BooleanLiteral",value:!0}),(e=n)===r&&(e=wt,t.substr(wt,5)===C?(n=C,wt+=5):(n=r,0===At&&zt(gt)),n!==r&&(xt=e,n={type:"BooleanLiteral",value:!1}),e=n),At--,e===r&&(n=r,0===At&&zt(pt)),e}(),e===r&&(e=wt,40===t.charCodeAt(wt)?(n="(",wt++):(n=r,0===At&&zt(et)),n!==r&&(o=Mt())!==r?(41===t.charCodeAt(wt)?(i=")",wt++):(i=r,0===At&&zt(nt)),i!==r?(xt=e,e=o):(wt=e,e=r)):(wt=e,e=r))),e}())),e}())),e}function Ut(){var e,n,o,i,a;if(e=wt,t.substr(wt,2)===l?(n=l,wt+=2):(n=r,0===At&&zt(I)),n!==r?(o=Kt(),(i=Mt())!==r?(Kt(),125===t.charCodeAt(wt)?(a=s,wt++):(a=r,0===At&&zt(z)),a!==r?(xt=e,e=i):(wt=e,e=r)):(wt=e,e=r)):(wt=e,e=r),e===r&&(e=wt,t.substr(wt,3)===c?(n=c,wt+=3):(n=r,0===At&&zt(F)),n!==r&&(xt=e,n=""),(e=n)===r&&(e=wt,n=wt,At++,92===t.charCodeAt(wt)?(o=u,wt++):(o=r,0===At&&zt(N)),o===r&&(39===t.charCodeAt(wt)?(o="'",wt++):(o=r,0===At&&zt(it)),o===r&&(t.substr(wt,2)===l?(o=l,wt+=2):(o=r,0===At&&zt(I)))),At--,o===r?n=void 0:(wt=n,n=r),n!==r?(t.length>wt?(o=t.charAt(wt),wt++):(o=r,0===At&&zt(M)),o!==r?(xt=e,e=Vt()):(wt=e,e=r)):(wt=e,e=r),e===r))){if(e=wt,t.substr(wt,2)===l?(n=l,wt+=2):(n=r,0===At&&zt(I)),n!==r){if(o=[],V.test(t.charAt(wt))?(i=t.charAt(wt),wt++):(i=r,0===At&&zt(at)),i!==r)for(;i!==r;)o.push(i),V.test(t.charAt(wt))?(i=t.charAt(wt),wt++):(i=r,0===At&&zt(at));else o=r;o!==r?(125===t.charCodeAt(wt)?(i=s,wt++):(i=r,0===At&&zt(z)),i!==r?(xt=e,e=function(){throw new Error("Error tokenizing '"+t+"'.")}()):(wt=e,e=r)):(wt=e,e=r)}else wt=e,e=r;e===r&&(e=wt,t.substr(wt,2)===l?(n=l,wt+=2):(n=r,0===At&&zt(I)),n!==r&&(xt=e,n=function(){throw new Error("Error tokenizing '"+t+"'.")}()),(e=n)===r&&(e=wt,92===t.charCodeAt(wt)?(n=u,wt++):(n=r,0===At&&zt(N)),n!==r?(t.substr(wt,2)===l?(o=l,wt+=2):(o=r,0===At&&zt(I)),o!==r?(xt=e,e=o):(wt=e,e=r)):(wt=e,e=r),e===r&&(e=wt,92===t.charCodeAt(wt)?(n=u,wt++):(n=r,0===At&&zt(N)),n!==r?(t.length>wt?(o=t.charAt(wt),wt++):(o=r,0===At&&zt(M)),o!==r?(xt=e,e=m(o)):(wt=e,e=r)):(wt=e,e=r),e===r&&(e=wt,92===t.charCodeAt(wt)?(n=u,wt++):(n=r,0===At&&zt(N)),n!==r&&(xt=e,n=function(){throw new Error("Error tokenizing '"+t+"'.")}()),e=n))))}return e}function qt(){var e,n,o,i;if(At++,e=wt,45===t.charCodeAt(wt)?(n=k,wt++):(n=r,0===At&&zt(X)),n===r&&(n=null),o=[],j.test(t.charAt(wt))?(i=t.charAt(wt),wt++):(i=r,0===At&&zt(st)),i!==r)for(;i!==r;)o.push(i),j.test(t.charAt(wt))?(i=t.charAt(wt),wt++):(i=r,0===At&&zt(st));else o=r;return o!==r?(xt=e,e={type:"IntegerLiteral",value:g(Vt())}):(wt=e,e=r),At--,e===r&&(n=r,0===At&&zt(lt)),e}function Ht(){var e,n,o,i,a,l,s,c,u,d;for(At++,e=wt,45===t.charCodeAt(wt)?(n=k,wt++):(n=r,0===At&&zt(X)),n===r&&(n=null),o=[],j.test(t.charAt(wt))?(i=t.charAt(wt),wt++):(i=r,0===At&&zt(st));i!==r;)o.push(i),j.test(t.charAt(wt))?(i=t.charAt(wt),wt++):(i=r,0===At&&zt(st));if(46===t.charCodeAt(wt)?(i=".",wt++):(i=r,0===At&&zt(ut)),i!==r){if(a=[],j.test(t.charAt(wt))?(l=t.charAt(wt),wt++):(l=r,0===At&&zt(st)),l!==r)for(;l!==r;)a.push(l),j.test(t.charAt(wt))?(l=t.charAt(wt),wt++):(l=r,0===At&&zt(st));else a=r;if(a!==r){if(l=wt,101===t.charCodeAt(wt)?(s="e",wt++):(s=r,0===At&&zt(dt)),s===r&&(69===t.charCodeAt(wt)?(s="E",wt++):(s=r,0===At&&zt(ht))),s!==r){if(43===t.charCodeAt(wt)?(c=x,wt++):(c=r,0===At&&zt(K)),c===r&&(45===t.charCodeAt(wt)?(c=k,wt++):(c=r,0===At&&zt(X))),c===r&&(c=null),u=[],j.test(t.charAt(wt))?(d=t.charAt(wt),wt++):(d=r,0===At&&zt(st)),d!==r)for(;d!==r;)u.push(d),j.test(t.charAt(wt))?(d=t.charAt(wt),wt++):(d=r,0===At&&zt(st));else u=r;u!==r?l=s=[s,c,u]:(wt=l,l=r)}else wt=l,l=r;l===r&&(l=null),xt=e,e={type:"NumberLiteral",value:parseFloat(Vt())}}else wt=e,e=r}else wt=e,e=r;if(e===r){if(e=wt,45===t.charCodeAt(wt)?(n=k,wt++):(n=r,0===At&&zt(X)),n===r&&(n=null),o=[],j.test(t.charAt(wt))?(i=t.charAt(wt),wt++):(i=r,0===At&&zt(st)),i!==r)for(;i!==r;)o.push(i),j.test(t.charAt(wt))?(i=t.charAt(wt),wt++):(i=r,0===At&&zt(st));else o=r;if(o!==r)if(101===t.charCodeAt(wt)?(i="e",wt++):(i=r,0===At&&zt(dt)),i===r&&(69===t.charCodeAt(wt)?(i="E",wt++):(i=r,0===At&&zt(ht))),i!==r){if(43===t.charCodeAt(wt)?(a=x,wt++):(a=r,0===At&&zt(K)),a===r&&(45===t.charCodeAt(wt)?(a=k,wt++):(a=r,0===At&&zt(X))),a===r&&(a=null),l=[],j.test(t.charAt(wt))?(s=t.charAt(wt),wt++):(s=r,0===At&&zt(st)),s!==r)for(;s!==r;)l.push(s),j.test(t.charAt(wt))?(s=t.charAt(wt),wt++):(s=r,0===At&&zt(st));else l=r;l!==r?(xt=e,e={type:"NumberLiteral",value:parseFloat(Vt())}):(wt=e,e=r)}else wt=e,e=r;else wt=e,e=r}return At--,e===r&&(n=r,0===At&&zt(ct)),e}function Gt(){var e,n,o,i,a;if(At++,e=wt,n=wt,At++,o=function(){var e,n,o,i;return e=wt,t.substr(wt,4)===E?(n=E,wt+=4):(n=r,0===At&&zt(ft)),n===r&&(t.substr(wt,5)===C?(n=C,wt+=5):(n=r,0===At&&zt(gt))),n!==r?(o=wt,At++,P.test(t.charAt(wt))?(i=t.charAt(wt),wt++):(i=r,0===At&&zt(mt)),At--,i===r?o=void 0:(wt=o,o=r),o!==r?e=n=[n,o]:(wt=e,e=r)):(wt=e,e=r),e}(),At--,o===r?n=void 0:(wt=n,n=r),n!==r)if(D.test(t.charAt(wt))?(o=t.charAt(wt),wt++):(o=r,0===At&&zt(yt)),o!==r){for(i=[],P.test(t.charAt(wt))?(a=t.charAt(wt),wt++):(a=r,0===At&&zt(mt));a!==r;)i.push(a),P.test(t.charAt(wt))?(a=t.charAt(wt),wt++):(a=r,0===At&&zt(mt));xt=e,e={type:"Identifier",name:Vt()}}else wt=e,e=r;else wt=e,e=r;return At--,e===r&&(n=r,0===At&&zt(vt)),e}function Kt(){var e,n;for(At++,e=[],S.test(t.charAt(wt))?(n=t.charAt(wt),wt++):(n=r,0===At&&zt(_t));n!==r;)e.push(n),S.test(t.charAt(wt))?(n=t.charAt(wt),wt++):(n=r,0===At&&zt(_t));return At--,n=r,0===At&&zt($t),e}if((n=a())!==r&&wt===t.length)return n;throw n!==r&&wt<t.length&&zt({type:"end"}),function(t,e,n){return new v(v.buildMessage(t,e),t,e,n)}(Ct,Et<t.length?t.charAt(Et):null,Et<t.length?It(Et,Et+1):It(Et,Et))}!function(t,e){function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n}(v,Error),v.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+":"+o.line+":"+o.column;if(r){var a=this.location.end,l=y("",o.line.toString().length," "),s=r[o.line-1],c=(o.line===a.line?a.column:s.length+1)-o.column||1;e+="\n --\x3e "+i+"\n"+l+" |\n"+o.line+" | "+s+"\n"+l+" | "+y("",o.column-1," ")+y("",c,"^")}else e+="\n at "+i}return e},v.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 _=new Map,b=new Map;function w(t,e,n){const r={args:e,cb:n},o=_.get(t)||[];_.has(t)||_.set(t,o),o.push(r);const i=t+":"+e.map((t=>"object"==typeof t?t.type:t)).join("#");b.set(i,r)}function x(t,e){let n=t.args.length,r=t.args.length;const o=t.args[t.args.length-1];if("object"==typeof o&&o.isVararg&&(--n,r=1/0),e.length<n)return{type:"few",expected:n,found:e.length};if(e.length>r)return{type:"many",expected:r,found:e.length};for(let n=0;n<e.length;++n){let r=n>=t.args.length?t.args[t.args.length-1]:t.args[n];if("object"!=typeof r&&(r={type:r}),r.type!==e[n].type)return{type:"mismatch",expected:r.type,found:e[n].type}}return{type:"match"}}function k(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=>{k(t,e)}));break;case"BinaryExpression":case"LogicalExpression":k(t.left,e),k(t.right,e);break;case"UnaryExpression":k(t.argument,e);break;case"ConditionalExpression":k(t.test,e),k(t.consequent,e),k(t.alternate,e);break;case"CallExpression":t.arguments.forEach((t=>{k(t,e)}))}}function E(t,e){for(;t.length<e;)t="0"+t;return t}function C(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=(t||"").toLowerCase()).charAt(0))return n;const r=V(t);return r?(r.a*=e,A(r)):n}function A(t){return 255===t.a?"#".concat([t.r,t.g,t.b].map((t=>E(Math.round(t).toString(16),2))).join("")):"rgba(".concat(t.r,",").concat(t.g,",").concat(t.b,",").concat((t.a/255).toFixed(2),")")}function V(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,l=2===o.length?o:o+o,s=2===i.length?i:i+i,c=2===n.length?n:n+n;return{a:parseInt(c,16),r:parseInt(a,16),g:parseInt(l,16),b:parseInt(s,16)}}const[t,n,r,o]=e,i=2===n.length?n:n+n,a=2===r.length?r:r+r,l=2===o.length?o:o+o;return{a:255,r:parseInt(i,16),g:parseInt(a,16),b:parseInt(l,16)}}return null}function j(t){return"url"===t.type||"color"===t.type?{type:"string",value:t.value}:t}function P(t){return t.toISOString().replace("T"," ").replace(/\.\d{3}Z$/,"")}function D(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 P(t.value);if("color"===t.type)return O(J(t.value));if("url"===t.type)return t.value;throw new Error("Unexpected type ".concat(t.type))}function S(t){let e=D(t);return"string"===t.type&&(e="'"+e.replace(/\\/g,"\\'").replace(/'/g,"\\'")+"'"),e}function I(t){return"datetime"===t?"DateTime":t.charAt(0).toUpperCase()+t.substring(1)}const z=new Int32Array(1);function F(t){return z[0]=t,z[0]}function N(t){if(t<r||t>n)throw new Error("Integer overflow.")}function M(t){const e=[];return k(t,{Variable(t){e.push(t.id.name)}}),e}function T(t,e){throw new Error("Failed to evaluate [".concat(t,"]. ").concat(e))}function J(t){const e=V(t);if(e)return e;throw new Error("Unable to convert value to Color, expected format #AARRGGBB.")}function O(t){return"#".concat([t.a,t.r,t.g,t.b].map((t=>{if(t<0||t>255)throw new Error("Value out of range 0..1.");return E(Math.round(t).toString(16),2)})).join("").toUpperCase())}function B(t){return{type:a,value:D(t)}}function R(t){const e=Number(t.value);if(isNaN(e)||!Number.isFinite(e))throw new Error("Unable to convert value to Number.");return{type:s,value:e}}function W(t,e,n){let r="";const o=t.type===a?t.value:D(t);for(;r.length+o.length<e.value;)r+=n.value;return r.length>0&&r.length+o.length>e.value&&(r=r.substring(0,e.value-o.length)),r}function L(t,e,n){const r=W(t,e,n);return{type:a,value:r+D(t)}}function U(t,e,n){const r=W(t,e,n);return{type:a,value:D(t)+r}}function q(t,e){if(0===e.value)throw new Error("Division by zero is not supported.");let n=t.value/e.value;return t.type===l&&(n=F(n)),{type:t.type,value:n}}function H(t,e){if(0===e.value)throw new Error("Division by zero is not supported.");let n=t.value%e.value;return t.type===l&&(n=F(n)),{type:t.type,value:n}}function G(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];let r=e.length?e[0].value:0;for(let t=1;t<e.length;++t)r*=e[t].value,e[0].type===l&&(r=F(r));return{type:e[0].type,value:r}}function K(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];let r=e.length?e[0].value:0;for(let t=1;t<e.length;++t)r-=e[t].value,e[0].type===l&&(r=F(r));return{type:e.length?e[0].type:l,value:r}}function X(){let t=0;for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];for(let e=0;e<n.length;++e)t+=n[e].value,n[0].type===l&&(t=F(t));return{type:n.length?n[0].type:l,value:t}}function Y(t){const e=Math.abs(t.value);return t.type===l&&N(e),{type:t.type,value:e}}function Z(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(!e.length)throw new Error("Non empty argument list is required for max function.");return{type:e[0].type,value:Math.max(...e.map((t=>t.value)))}}function Q(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(!e.length)throw new Error("Non empty argument list is required for min function.");return{type:e[0].type,value:Math.min(...e.map((t=>t.value)))}}function tt(t){return{type:t.type,value:Math.sign(t.value)}}function et(t,e){let n;if(0===e.value&&t.type===l)n=t.value;else if(0===t.value&&t.type===l)n=0;else{let r=Math.sign(e.value);t.type===s&&0===r&&(r=Object.is(r,0)?1:-1),n=Math.abs(t.value)*r}return t.type===l&&N(n),{type:t.type,value:n}}function nt(t){return e=>{const n=J(e.value);return{type:s,value:n[t]/255}}}function rt(t){return(e,n)=>{const r=J(e.value);return r[t]=255*n.value,{type:u,value:O(r)}}}const ot=nt("a"),it=nt("r"),at=nt("g"),lt=nt("b"),st=rt("a"),ct=rt("r"),ut=rt("g"),dt=rt("b");function ht(t,e,n){if(t.value<0)throw new Error("Expecting non-negative number of milliseconds.");let r=Math.floor(t.value/e);return n&&(r%=n),{type:l,value:r}}const pt=36e5;function ft(){}const gt=t=>t;function mt(t,e){for(const n in e)t[n]=e[n];return t}function vt(t){return t()}function yt(){return Object.create(null)}function $t(t){t.forEach(vt)}function _t(t){return"function"==typeof t}let bt;function wt(t,e){return bt||(bt=document.createElement("a")),bt.href=e,t===bt.href}function xt(t,e){return t!=t?e==e:t!==e}function kt(t){return 0===Object.keys(t).length}function Et(t,...e){if(null==t)return ft;const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function Ct(t,e,n){t.$$.on_destroy.push(Et(e,n))}function At(t,e,n,r){if(t){const o=Vt(t,e,n,r);return t[0](o)}}function Vt(t,e,n,r){return t[1]&&r?mt(n.ctx.slice(),t[1](r(e))):n.ctx}function jt(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 Pt(t,e,n,r,o,i){if(o){const a=Vt(e,n,r,i);t.p(a,o)}}function Dt(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 St(t){return t&&_t(t.destroy)?t.destroy:ft}const It="undefined"!=typeof window;let zt=It?()=>window.performance.now():()=>Date.now(),Ft=It?t=>requestAnimationFrame(t):ft;const Nt=new Set;function Mt(t){Nt.forEach((e=>{e.c(t)||(Nt.delete(e),e.f())})),0!==Nt.size&&Ft(Mt)}let Tt=!1;function Jt(t,e,n,r){for(;t<e;){const o=t+(e-t>>1);n(o)<=r?t=o+1:e=o}return t}function Ot(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function Bt(t){const e=qt("style");return function(t,e){!function(t,e){t.appendChild(e)}(t.head||t,e)}(Ot(t),e),e.sheet}function Rt(t,e){if(Tt){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:Jt(1,o,(t=>e[n[t]].claim_order),i))-1;r[t]=n[a]+1;const l=a+1;n[l]=t,o=Math.max(l,o)}const i=[],a=[];let l=e.length-1;for(let t=n[o]+1;0!=t;t=r[t-1]){for(i.push(e[t-1]);l>=t;l--)a.push(e[l]);l--}for(;l>=0;l--)a.push(e[l]);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.parentElement!==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 Wt(t,e,n){Tt&&!n?Rt(t,e):e.parentNode===t&&e.nextSibling==n||t.insertBefore(e,n||null)}function Lt(t){t.parentNode.removeChild(t)}function Ut(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function qt(t){return document.createElement(t)}function Ht(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Gt(t){return document.createTextNode(t)}function Kt(){return Gt(" ")}function Xt(){return Gt("")}function Yt(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function Zt(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function Qt(t,e){const n=Object.getOwnPropertyDescriptors(t.__proto__);for(const r in e)null==e[r]?t.removeAttribute(r):"style"===r?t.style.cssText=e[r]:"__value"===r?t.value=t[r]=e[r]:n[r]&&n[r].set?t[r]=e[r]:Zt(t,r,e[r])}function te(t){return Array.from(t.childNodes)}function ee(t,e,n,r,o=!1){!function(t){void 0===t.claim_info&&(t.claim_info={last_index:0,total_claimed:0})}(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 ne(t,e,n,r){return ee(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 re(t,e,n){return ne(t,e,n,qt)}function oe(t,e,n){return ne(t,e,n,Ht)}function ie(t,e){return ee(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}),(()=>Gt(e)),!0)}function ae(t){return ie(t," ")}function le(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function se(t,e,n,r){null===n?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}const ce=new Map;let ue,de=0;function he(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(", "),de-=o,de||Ft((()=>{de||(ce.forEach((t=>{const{stylesheet:e}=t;let n=e.cssRules.length;for(;n--;)e.deleteRule(n);t.rules={}})),ce.clear())})))}function pe(t){ue=t}function fe(){if(!ue)throw new Error("Function called outside component initialization");return ue}function ge(t){fe().$$.on_mount.push(t)}function me(t){fe().$$.on_destroy.push(t)}function ve(t,e){return fe().$$.context.set(t,e),e}function ye(t){return fe().$$.context.get(t)}function $e(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((t=>t.call(this,e)))}const _e=[],be=[],we=[],xe=[],ke=Promise.resolve();let Ee=!1;function Ce(){Ee||(Ee=!0,ke.then(Se))}function Ae(){return Ce(),ke}function Ve(t){we.push(t)}const je=new Set;let Pe,De=0;function Se(){const t=ue;do{for(;De<_e.length;){const t=_e[De];De++,pe(t),Ie(t.$$)}for(pe(null),_e.length=0,De=0;be.length;)be.pop()();for(let t=0;t<we.length;t+=1){const e=we[t];je.has(e)||(je.add(e),e())}we.length=0}while(_e.length);for(;xe.length;)xe.pop()();Ee=!1,je.clear(),pe(t)}function Ie(t){if(null!==t.fragment){t.update(),$t(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Ve)}}function ze(t,e,n){t.dispatchEvent(function(t,e,{bubbles:n=!1,cancelable:r=!1}={}){const o=document.createEvent("CustomEvent");return o.initCustomEvent(t,n,r,e),o}(`${e?"intro":"outro"}${n}`))}const Fe=new Set;let Ne;function Me(){Ne={r:0,c:[],p:Ne}}function Te(){Ne.r||$t(Ne.c),Ne=Ne.p}function Je(t,e){t&&t.i&&(Fe.delete(t),t.i(e))}function Oe(t,e,n,r){if(t&&t.o){if(Fe.has(t))return;Fe.add(t),Ne.c.push((()=>{Fe.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}else r&&r()}const Be={duration:0};function Re(t,e,n){let r,o,i=e(t,n),a=!1,l=0;function s(){r&&he(t,r)}function c(){const{delay:e=0,duration:n=300,easing:c=gt,tick:u=ft,css:d}=i||Be;d&&(r=function(t,e,n,r,o,i,a,l=0){const s=16.666/r;let c="{\n";for(let t=0;t<=1;t+=s){const r=e+(n-e)*i(t);c+=100*t+`%{${a(r,1-r)}}\n`}const u=c+`100% {${a(n,1-n)}}\n}`,d=`__svelte_${function(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}(u)}_${l}`,h=Ot(t),{stylesheet:p,rules:f}=ce.get(h)||function(t,e){const n={stylesheet:Bt(e),rules:{}};return ce.set(t,n),n}(h,t);f[d]||(f[d]=!0,p.insertRule(`@keyframes ${d} ${u}`,p.cssRules.length));const g=t.style.animation||"";return t.style.animation=`${g?`${g}, `:""}${d} ${r}ms linear ${o}ms 1 both`,de+=1,d}(t,0,1,n,e,c,d,l++)),u(0,1);const h=zt()+e,p=h+n;o&&o.abort(),a=!0,Ve((()=>ze(t,!0,"start"))),o=function(t){let e;return 0===Nt.size&&Ft(Mt),{promise:new Promise((n=>{Nt.add(e={c:t,f:n})})),abort(){Nt.delete(e)}}}((e=>{if(a){if(e>=p)return u(1,0),ze(t,!0,"end"),s(),a=!1;if(e>=h){const t=c((e-h)/n);u(t,1-t)}}return a}))}let u=!1;return{start(){u||(u=!0,he(t),_t(i)?(i=i(),(Pe||(Pe=Promise.resolve(),Pe.then((()=>{Pe=null}))),Pe).then(c)):c())},invalidate(){u=!1},end(){a&&(s(),a=!1)}}}const We="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function Le(t,e){Oe(t,1,1,(()=>{e.delete(t.key)}))}function Ue(t,e){const n={},r={},o={$$scope:1};let i=t.length;for(;i--;){const a=t[i],l=e[i];if(l){for(const t in a)t in l||(r[t]=1);for(const t in l)o[t]||(n[t]=l[t],o[t]=1);t[i]=l}else for(const t in a)o[t]=1}for(const t in r)t in n||(n[t]=void 0);return n}let qe;function He(t){t&&t.c()}function Ge(t,e){t&&t.l(e)}function Ke(t,e,n,r){const{fragment:o,on_mount:i,on_destroy:a,after_update:l}=t.$$;o&&o.m(e,n),r||Ve((()=>{const e=i.map(vt).filter(_t);a?a.push(...e):$t(e),t.$$.on_mount=[]})),l.forEach(Ve)}function Xe(t,e){const n=t.$$;null!==n.fragment&&($t(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Ye(t,e,n,r,o,i,a,l=[-1]){const s=ue;pe(t);const c=t.$$={fragment:null,ctx:null,props:i,update:ft,not_equal:o,bound:yt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:yt(),dirty:l,skip_bound:!1,root:e.target||s.$$.root};a&&a(c.root);let u=!1;if(c.ctx=n?n(t,e.props||{},((e,n,...r)=>{const i=r.length?r[0]:n;return c.ctx&&o(c.ctx[e],c.ctx[e]=i)&&(!c.skip_bound&&c.bound[e]&&c.bound[e](i),u&&function(t,e){-1===t.$$.dirty[0]&&(_e.push(t),Ce(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(t,e)),n})):[],c.update(),u=!0,$t(c.before_update),c.fragment=!!r&&r(c.ctx),e.target){if(e.hydrate){Tt=!0;const t=te(e.target);c.fragment&&c.fragment.l(t),t.forEach(Lt)}else c.fragment&&c.fragment.c();e.intro&&Je(t.$$.fragment),Ke(t,e.target,e.anchor,e.customElement),Tt=!1,Se()}pe(s)}new Set(["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"]),"function"==typeof HTMLElement&&(qe=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(vt).filter(_t);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,n){this[t]=n}disconnectedCallback(){$t(this.$$.on_disconnect)}$destroy(){Xe(this,1),this.$destroy=ft}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){this.$$set&&!kt(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});class Ze{$destroy(){Xe(this,1),this.$destroy=ft}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){this.$$set&&!kt(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Qe=[];function tn(t,e=ft){let n;const r=new Set;function o(e){if(i=e,((o=t)!=o?i==i:o!==i||o&&"object"==typeof o||"function"==typeof o)&&(t=e,n)){const e=!Qe.length;for(const e of r)e[1](),Qe.push(e,t);if(e){for(let t=0;t<Qe.length;t+=2)Qe[t][0](Qe[t+1]);Qe.length=0}}var o,i}return{set:o,update:function(e){o(e(t))},subscribe:function(i,a=ft){const l=[i,a];return r.add(l),1===r.size&&(n=e(o)||ft),i(t),()=>{r.delete(l),0===r.size&&(n(),n=null)}}}}function en(t,e,n){const r=!Array.isArray(t),o=r?[t]:t,i=e.length<2;return{subscribe:tn(n,(t=>{let n=!1;const a=[];let l=0,s=ft;const c=()=>{if(l)return;s();const n=e(r?a[0]:a,t);i?t(n):s=_t(n)?n:ft},u=o.map(((t,e)=>Et(t,(t=>{a[e]=t,l&=~(1<<e),n&&c()}),(()=>{l|=1<<e}))));return n=!0,c(),function(){$t(u),s()}})).subscribe}}class nn{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=tn(this.value)),this.store.subscribe(t)}set(t){const e=this.fromString(t);this.setValue(e)}setValue(t){const e=this.convertValue(t);this.value=e,this.store&&this.store.set(e)}getValue(){return this.value}}const rn={string:class extends nn{convertValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value");return t}fromString(t){return t}getType(){return"string"}},number:class extends nn{convertValue(t){if("number"!=typeof t||isNaN(t)||!isFinite(t))throw new Error("Incorrect variable value");return t}fromString(t){const e=Number(t);return this.convertValue(e)}getType(){return"number"}},integer:class extends nn{convertValue(t){if("number"!=typeof t||isNaN(t)||t>n||t<r||t!==Math.round(t))throw new Error("Incorrect variable value");return t}fromString(t){const e=Number(t);return this.convertValue(e)}getType(){return"integer"}},boolean:class extends nn{convertValue(t){if(1!==t&&0!==t&&!0!==t&&!1!==t)throw new Error("Incorrect variable value");return Number(t)}fromString(t){if("1"===t||"true"===t)return 1;if("0"===t||"false"===t)return 0;throw new Error("Incorrect variable value")}getType(){return"boolean"}},color:class extends nn{convertValue(t){if("string"!=typeof t||!V(t))throw new Error("Incorrect variable value");return t}fromString(t){return this.convertValue(t)}getType(){return"color"}},url:class extends nn{convertValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value");return t}fromString(t){return t}getType(){return"url"}}};function on(t,e,n){if(!(e in rn))throw new Error("Unsupported variable type");return new rn[e](t,n)}function an(t){return t.map(S).join(", ")}w("toString",[l],B),w("toString",[s],B),w("toString",[c],B),w("toString",[u],B),w("toString",["url"],B),w("toNumber",[l],R),w("toNumber",[a],R),w("toInteger",[s],(function(t){if(t.value>n||t.value<r)throw new Error("Unable to convert value to Integer.");const e=t.value-t.value%1;return{type:l,value:e}})),w("toInteger",[a],(function(t){const e=Number(t.value);if(isNaN(e)||e%1!=0||e>n||e<r)throw new Error("Unable to convert value to Integer.");return{type:l,value:e}})),w("toInteger",[c],(function(t){return{type:l,value:t.value?1:0}})),w("toBoolean",[l],(function(t){if(1!==t.value&&0!==t.value)throw new Error("Unable to convert value to Boolean.");return{type:c,value:t.value}})),w("toBoolean",[a],(function(t){if("true"!==t.value&&"false"!==t.value)throw new Error("Unable to convert value to Boolean.");return{type:c,value:"true"===t.value?1:0}})),w("encodeUri",[a],(function(t){try{return{type:a,value:encodeURIComponent(t.value)}}catch(t){throw new Error("Unable to encodeUri string.")}})),w("decodeUri",[a],(function(t){try{return{type:a,value:decodeURIComponent(t.value)}}catch(t){throw new Error("Unable to decodeUri string.")}})),w("parseUnixTime",[l],(function(t){return{type:d,value:new Date(1e3*t.value)}})),w("nowLocal",[],(function(){return{type:d,value:new Date}})),w("addMillis",[d,l],(function(t,e){return{type:d,value:new Date(t.value.getTime()+e.value)}})),w("setYear",[d,l],(function(t,e){const n=new Date(t.value);return n.setFullYear(e.value),{type:d,value:n}})),w("setMonth",[d,l],(function(t,e){if(e.value<1||e.value>12)throw new Error("Expecting month in [1..12], instead got ".concat(e.value,"."));const n=new Date(t.value);return n.setMonth(e.value-1),{type:d,value:n}})),w("setDay",[d,l],(function(t,e){const n=new Date(t.value);if(e.value<=0&&-1!==e.value||e.value>function(t){const e=new Date(t);return e.setMonth(e.getMonth()+1),e.setDate(0),e.getDate()}(n))throw new Error("Unable to set day ".concat(e.value," for date ").concat(D(t),"."));return n.setDate(-1===e.value?0:e.value),{type:d,value:n}})),w("setHours",[d,l],(function(t,e){if(e.value<0||e.value>23)throw new Error("Expecting hours in [0..23], instead got ".concat(e.value,"."));const n=new Date(t.value);return n.setHours(e.value-n.getTimezoneOffset()/60),{type:d,value:n}})),w("setMinutes",[d,l],(function(t,e){if(e.value<0||e.value>59)throw new Error("Expecting minutes in [0..59], instead got ".concat(e.value,"."));const n=new Date(t.value);return n.setMinutes(e.value),{type:d,value:n}})),w("setSeconds",[d,l],(function(t,e){if(e.value<0||e.value>59)throw new Error("Expecting seconds in [0..59], instead got ".concat(e.value,"."));const n=new Date(t.value);return n.setSeconds(e.value),{type:d,value:n}})),w("setMillis",[d,l],(function(t,e){if(e.value<0||e.value>999)throw new Error("Expecting millis in [0..999], instead got ".concat(e.value,"."));const n=new Date(t.value);return n.setMilliseconds(e.value),{type:d,value:n}})),w("getIntervalSeconds",[l],(function(t){return ht(t,1e3,60)})),w("getIntervalTotalSeconds",[l],(function(t){return ht(t,1e3)})),w("getIntervalMinutes",[l],(function(t){return ht(t,6e4,60)})),w("getIntervalTotalMinutes",[l],(function(t){return ht(t,6e4)})),w("getIntervalHours",[l],(function(t){return ht(t,pt,24)})),w("getIntervalTotalHours",[l],(function(t){return ht(t,pt)})),w("getIntervalTotalDays",[l],(function(t){return ht(t,864e5)})),w("getIntervalTotalWeeks",[l],(function(t){return ht(t,6048e5)})),w("len",[a],(function(t){return{type:l,value:t.value.length}})),w("contains",[a,a],(function(t,e){return{type:c,value:t.value.includes(e.value)?1:0}})),w("substring",[a,l,l],(function(t,e,n){if(n.value<e.value)throw new Error("Indexes should be in ascending order.");if(e.value<0||e.value>t.value.length||n.value<0||n.value>t.value.length)throw new Error("Indexes are out of bounds.");return{type:a,value:t.value.substring(e.value,n.value)}})),w("replaceAll",[a,a,a],(function(t,e,n){let r;return r=e.value?t.value.replace(new RegExp(function(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}(e.value),"g"),n.value):t.value,{type:a,value:r}})),w("index",[a,a],(function(t,e){return{type:l,value:t.value.indexOf(e.value)}})),w("lastIndex",[a,a],(function(t,e){return{type:l,value:t.value.lastIndexOf(e.value)}})),w("trim",[a],(function(t){return{type:a,value:t.value.trim()}})),w("trimLeft",[a],(function(t){return{type:a,value:t.value.replace(/^\s+/,"")}})),w("trimRight",[a],(function(t){return{type:a,value:t.value.replace(/\s+$/,"")}})),w("toUpperCase",[a],(function(t){return{type:a,value:t.value.toUpperCase()}})),w("toLowerCase",[a],(function(t){return{type:a,value:t.value.toLowerCase()}})),w("padStart",[a,l,a],L),w("padStart",[l,l,a],L),w("padEnd",[a,l,a],U),w("padEnd",[l,l,a],U),w("div",[l,l],q),w("div",[s,s],q),w("mod",[l,l],H),w("mod",[s,s],H),w("mul",[{type:l,isVararg:!0}],G),w("mul",[{type:s,isVararg:!0}],G),w("sub",[{type:l,isVararg:!0}],K),w("sub",[{type:s,isVararg:!0}],K),w("sum",[{type:l,isVararg:!0}],X),w("sum",[{type:s,isVararg:!0}],X),w("abs",[l],Y),w("abs",[s],Y),w("max",[{type:l,isVararg:!0}],Z),w("max",[{type:s,isVararg:!0}],Z),w("min",[{type:l,isVararg:!0}],Q),w("min",[{type:s,isVararg:!0}],Q),w("maxNumber",[],(function(){return{type:s,value:o}})),w("minNumber",[],(function(){return{type:s,value:i}})),w("maxInteger",[],(function(){return{type:l,value:n}})),w("minInteger",[],(function(){return{type:l,value:r}})),w("round",[s],(function(t){const e=Math.sign(t.value);return{type:s,value:e*Math.round(Math.abs(t.value))}})),w("floor",[s],(function(t){return{type:s,value:Math.floor(t.value)}})),w("ceil",[s],(function(t){return{type:s,value:Math.ceil(t.value)}})),w("signum",[s],tt),w("signum",[l],tt),w("copySign",[s,s],et),w("copySign",[l,l],et),w("getColorAlpha",[a],ot),w("getColorAlpha",[u],ot),w("getColorRed",[a],it),w("getColorRed",[u],it),w("getColorGreen",[a],at),w("getColorGreen",[u],at),w("getColorBlue",[a],lt),w("getColorBlue",[u],lt),w("setColorAlpha",[a,s],st),w("setColorAlpha",[u,s],st),w("setColorRed",[a,s],ct),w("setColorRed",[u,s],ct),w("setColorGreen",[a,s],ut),w("setColorGreen",[u,s],ut),w("setColorBlue",[a,s],dt),w("setColorBlue",[u,s],dt),w("rgb",[s,s,s],(function(t,e,n){const r={a:255,r:255*t.value,g:255*e.value,b:255*n.value};return{type:u,value:O(r)}})),w("argb",[s,s,s,s],(function(t,e,n,r){const o={a:255*t.value,r:255*e.value,g:255*n.value,b:255*r.value};return{type:u,value:O(o)}}));const ln={StringLiteral:function(t,e){return{type:a,value:e.value}},NumberLiteral:function(t,e){return{type:s,value:e.value}},IntegerLiteral:function(t,e){return{type:l,value:e.value}},BooleanLiteral:function(t,e){return{type:c,value:e.value?1:0}},UnaryExpression:function(t,e){const n=j(sn(t,e.argument));switch(e.operator){case"!":if(n.type===c)return{type:c,value:n.value?0:1};T("".concat(e.operator).concat(S(n)),"A Boolean is expected after a unary not.");case"+":case"-":const t="+"===e.operator?1:-1;if(n.type===l)return{type:l,value:n.value*t};if(n.type===s)return{type:s,value:n.value*t};T("".concat(e.operator).concat(S(n)),"A Number is expected after a unary ".concat("+"===e.operator?"plus":"minus","."))}},ConditionalExpression:function(t,e){const n=j(sn(t,e.test));if(n.type===c)return n.value?sn(t,e.consequent):sn(t,e.alternate);T("".concat(S(n)," ? ").concat(S(sn(t,e.consequent))," : ").concat(S(sn(t,e.alternate))),"Ternary must be called with a Boolean value as a condition.")},TemplateLiteral:function(t,e){let n="";if(2===e.quasis.length&&""===e.quasis[0].value&&""===e.quasis[1].value)return sn(t,e.expressions[0]);for(let r=0;r<e.expressions.length;++r)n+=e.quasis[r].value,n+=D(sn(t,e.expressions[r]));return n+=e.quasis[e.quasis.length-1].value,{type:a,value:n}},LogicalExpression:function(t,e){const n=j(sn(t,e.left));if(n.type!==c&&T("".concat(S(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:c,value:0};const r=j(sn(t,e.right));return r.type!==c&&T("".concat(S(n)," ").concat(e.operator," ").concat(S(r)),"Operator '".concat(e.operator,"' cannot be applied to different types: Boolean and ").concat(I(r.type),".")),{type:c,value:r.value}},BinaryExpression:function(t,e){const n=e.operator,r=sn(t,e.left),o=sn(t,e.right);if(r.type!==o.type&&T("".concat(S(r)," ").concat(e.operator," ").concat(S(o)),"Operator '".concat(n,"' cannot be applied to different types: ").concat(I(r.type)," and ").concat(I(o.type),".")),"=="===n||"!="===n)return function(t,e,n){let r;return r=e.type===d&&n.type===d?e.value.getTime()===n.value.getTime():e.value===n.value,"!="===t&&(r=!r),{type:c,value:r?1:0}}(n,r,o);if(">"===n||">="===n||"<"===n||"<="===n)return function(t,e,n){let r;e.type!==s&&e.type!==l&&e.type!==d&&T("".concat(S(e)," ").concat(t," ").concat(S(n)),"Operator '".concat(t,"' cannot be applied to ").concat(I(e.type)," type."));const o=e.type===d?e.value.getTime():e.value,i=n.type===d?n.value.getTime():n.value;return r=">"===t?o>i:">="===t?o>=i:"<"===t?o<i:o<=i,{type:c,value:r?1:0}}(n,r,o);if("+"===n||"-"===n)return function(t,e,n){if(e.type!==a&&e.type!==s&&e.type!==l&&T("".concat(S(e)," ").concat(t," ").concat(S(n)),"Operator '".concat(t,"' cannot be applied to ").concat(I(e.type)," type.")),e.type===a)return"-"===t&&T("".concat(S(e)," - ").concat(S(n)),"Operator '".concat(t,"' cannot be applied to ").concat(I(e.type)," type.")),{type:a,value:e.value+n.value};let r="+"===t?e.value+n.value:e.value-n.value;return e.type===l&&(r=F(r)),{type:e.type,value:r}}(n,r,o);if("/"===n||"*"===n||"%"===n)return function(t,e,n){let r;if(e.type!==l&&e.type!==s&&T("".concat(S(e)," ").concat(t," ").concat(S(n)),"Operator '".concat(t,"' cannot be applied to ").concat(I(e.type)," type.")),"*"===t)r=e.value*n.value;else{if("/"!==t&&"%"!==t)throw new Error("Unsupported operation ".concat(t));0===n.value&&T("".concat(S(e)," ").concat(t," ").concat(S(n)),"Division by zero is not supported."),r="/"===t?e.value/n.value:e.value%n.value}return e.type===l&&(r=F(r)),{type:e.type,value:r}}(n,r,o);throw new Error("Unsupported operation ".concat(n))},CallExpression:function(t,e){const n=e.callee.name;if(!_.has(n))throw new Error("Unknown function name: ".concat(n,"."));let r;const o=e.arguments.map((e=>sn(t,e))),i=n+":"+o.map((t=>t.type)).join("#");if(b.has(i))r=b.get(i);else{const t=function(t,e){const n=_.get(t);if(!n)throw new Error("Missing function");let r=null;for(let t=0;t<n.length;++t){const o=x(n[t],e);if("match"===o.type)return n[t];r||(r=o)}if(!r)throw new Error("Missing function");return r}(n,o);if("expected"in t){const e=o.map((t=>I(t.type))).join(", "),r="".concat(n,"(").concat(an(o),")");"few"===t.type&&0===o.length?T(r,"Non empty argument list is required for function '".concat(n,"'.")):(t.type,T(r,"Function '".concat(n,"' has no matching override for given argument types: ").concat(e,".")))}r=t}if(!r)throw new Error("Function not found");try{return r.cb(...o)}catch(t){T("".concat(n,"(").concat(an(o),")"),t.message)}},Variable:function(t,e){const n=e.id.name,r=t.get(n);if(r)return function(t){return{type:t.getType(),value:t.getValue()}}(r);throw new Error("Variable '".concat(n,"' has value null"))}};function sn(t,e){if(e.type in ln)return ln[e.type](t,e);throw new Error("Unsupported expression")}function cn(t,e){try{return sn(t,e)}catch(t){return{type:"error",value:t.message}}}const un="divkit-b023c",dn="divkit-bd259",hn="divkit-d9099",pn="divkit-c016b",fn="divkit-ee112",gn="divkit-aa145",mn="divkit-f0cba",vn=Symbol("root");function yn(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 $n={text:"divkit-d9b0e",text_halign_left:"divkit-a4cb7",text_halign_center:"divkit-e1659",text_halign_right:"divkit-ea280",text_valign_top:"divkit-d8ce0",text_valign_center:"divkit-ef58e",text_valign_bottom:"divkit-fe8ed",text_valign_baseline:"divkit-e0c6c",text__inner:"divkit-b8528",text_singleline:"divkit-ef11c",text_truncate_none:"divkit-c6ea1",text_multiline:"divkit-ee8e3",text__inner_gradient:"divkit-cb8e0",text__image:"divkit-bf6e2",text__image_hidden:"divkit-f1002"},_n={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_height-constrained":"divkit-a5256","outer_parent-overlap":"divkit-dab2d","outer_parent-overlap-absolute":"divkit-d43fb","outer_scroll-snap_center":"divkit-d9e38","outer_scroll-snap_start":"divkit-efd1e",outer__border:"divkit-d4056",outer_visibility_invisible:"divkit-f018b",outer_visibility_gone:"divkit-e784b","outer_has-action-animation":"divkit-f4980"};function bn(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 wn(t){if("number"!=typeof t&&"string"!=typeof t||!t)return"0";const e=Number(t);return isNaN(e)?"0":Math.ceil(1e3*e)/1e4+"em"}function xn(t){let e=wn(t);return"0"===e&&(e+="em"),e}function kn(t){let e=String(t);return e.indexOf("&")>-1&&(e=e.replace(/&/g,"&amp;")),e.indexOf("<")>-1&&(e=e.replace(/</g,"&lt;")),e.indexOf(">")>-1&&(e=e.replace(/>/g,"&gt;")),e.indexOf('"')>-1&&(e=e.replace(/"/g,"&quot;")),e}const En=Boolean;function Cn(t){if(1===t.length&&"solid"===t[0].type)return{color:C(t[0].color||"transparent"),size:"auto",position:"50% 50%"};const e=t.map((t=>"solid"===t.type?function(t){const e=C(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(En);return n.length?{size:void 0,pos:void 0,image:"linear-gradient("+(90-Number(t.bg.angle||0))+"deg,"+n.map((t=>C(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:jn(t.bg.scale),pos:Pn(t.bg),image:'url("'+kn(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(En);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=xn(r.value):"relative"===r.type&&(o=An[r.value]));const i=Vn(t.bg.center_x),a=Vn(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=>C(t))).join(",")+")"}}({bg:t}):void 0)).filter(En).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 An={nearest_corner:"closest-corner",farthest_corner:"farthest-corner",nearest_side:"closest-side",farthest_side:"farthest-side"};function Vn(t){if(t&&"object"==typeof t&&"type"in t&&void 0!==t.value){if("fixed"===t.type)return xn(t.value);if("relative"===t.type)return"".concat(100*Number(t.value),"%")}return"50%"}function jn(t){return"fill"!==t&&t?"fit"===t?"contain":void 0:"cover"}function Pn(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 Dn(t){const e=/^([^/]+):\/\//.exec(t);return e&&e[1]||""}function Sn(t,e){return e.has(t)}function In(t,e){e&&t.push(e)}function zn(t,e,n){const r=[];In(r,e[t]);for(const o in n)if(n.hasOwnProperty(o)){const i=n[o];i&&In(r,e["".concat(t,"_").concat(o)+("string"==typeof i?"_".concat(i):"")])}return r.join(" ")}const Fn=function(t,e){var n;let{json:r,origJson:o,templateContext:i,rootCtx:a}=e;return null===(n=a.registerComponent)||void 0===n||n.call(a,{node:t,json:r,origJson:o,templateContext:i}),{destroy(){var e;null===(e=a.unregisterComponent)||void 0===e||e.call(a,{node:t})}}},Nn=Symbol("state");function Mn(t){return wn(t.top||0)+" "+wn(t.right||0)+" "+wn(t.bottom||0)+" "+wn(t.left||0)}function Tn(t){if("number"!=typeof t&&"string"!=typeof t)return!1;const e=Number(t);return!isNaN(e)}function Jn(t){return Tn(t)&&t>=0}function On(t,e){if(!t)return e;const n=[t.top,t.right,t.bottom,t.left];for(let t=0;t<n.length;++t)if(n[t]&&!Jn(n[t]))return e;return Mn(t)}function Bn(t,e){const n=Number(t);return isNaN(n)||n<0?e:n}const Rn=Object.prototype.hasOwnProperty;function Wn(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(!Rn.call(e,o)||!Wn(t[o],e[o]))return!1}return!0}function Ln(t,e){return Wn(t,e)?e:t}function Un(t,e){return"linear"===t||"ease"===t||"ease_in_out"===t||"ease_in"===t||"ease_out"===t?t:e}function qn(t,e){const n=Number(t);return isNaN(n)?e:n}function Hn(t){const e=[];return"set"===t.name?(t.items||[]).forEach((t=>{e.push(...Hn(t))})):e.push(t),e}function Gn(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=>wn((t||e)/n*10))).join(" ")}function Kn(){}const Xn=Symbol("action");function Yn(t){const e=t.touches[0];return{x:e.clientX||e.pageX,y:e.clientY||e.pageY}}function Zn(t){var e;let n,r,o,i,a,l,s,c;const u=t[19].default,d=At(u,t,t[18],null);let h=[{class:r=t[2]+(t[9]?" ".concat(t[6]?dn:hn," ").concat(pn):"")+" "+(null!==(e=t[1])&&void 0!==e&&e.length?mn:"")},{style:t[3]},{role:o=t[9]?"button":null},{tabindex:i=t[9]?0:null},t[4]],p={};for(let t=0;t<h.length;t+=1)p=mt(p,h[t]);return{c(){n=qt("span"),d&&d.c(),this.h()},l(t){n=re(t,"SPAN",{class:!0,style:!0,role:!0,tabindex:!0});var e=te(n);d&&d.l(e),e.forEach(Lt),this.h()},h(){Qt(n,p)},m(e,r){Wt(e,n,r),d&&d.m(n,null),l=!0,s||(c=[St(a=t[5].call(null,n)),Yt(n,"click",(function(){_t(t[9]?t[10]:null)&&(t[9]?t[10]:null).apply(this,arguments)})),Yt(n,"click",t[21]),Yt(n,"dblclick",(function(){var e,n;_t(null!==(e=t[0])&&void 0!==e&&e.length?t[11]:null)&&(null!==(n=t[0])&&void 0!==n&&n.length?t[11]:null).apply(this,arguments)})),Yt(n,"touchstart",(function(){var e,n;_t(null!==(e=t[1])&&void 0!==e&&e.length?t[12]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[12]:null).apply(this,arguments)})),Yt(n,"touchmove",(function(){var e,n;_t(null!==(e=t[1])&&void 0!==e&&e.length?t[13]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[13]:null).apply(this,arguments)})),Yt(n,"touchend",(function(){var e,n;_t(null!==(e=t[1])&&void 0!==e&&e.length?t[14]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[14]:null).apply(this,arguments)})),Yt(n,"touchcancel",(function(){var e,n;_t(null!==(e=t[1])&&void 0!==e&&e.length?t[14]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[14]:null).apply(this,arguments)})),Yt(n,"keydown",t[15])],s=!0)},p(e,a){var s;t=e,d&&d.p&&(!l||262144&a)&&Pt(d,u,t,t[18],l?jt(u,t[18],a,null):Dt(t[18]),null),Qt(n,p=Ue(h,[(!l||582&a&&r!==(r=t[2]+(t[9]?" ".concat(t[6]?dn:hn," ").concat(pn):"")+" "+(null!==(s=t[1])&&void 0!==s&&s.length?mn:"")))&&{class:r},(!l||8&a)&&{style:t[3]},(!l||512&a&&o!==(o=t[9]?"button":null))&&{role:o},(!l||512&a&&i!==(i=t[9]?0:null))&&{tabindex:i},16&a&&t[4]]))},i(t){l||(Je(d,t),l=!0)},o(t){Oe(d,t),l=!1},d(t){t&&Lt(n),d&&d.d(t),s=!1,$t(c)}}}function Qn(t){var e;let n,r,o,i,a,l;const s=t[19].default,c=At(s,t,t[18],null);let u=[{href:t[7]},{target:t[8]},{style:t[3]},{class:r=t[2]+" "+(t[6]?dn:hn)+" "+(null!==(e=t[1])&&void 0!==e&&e.length?mn:"")},t[4]],d={};for(let t=0;t<u.length;t+=1)d=mt(d,u[t]);return{c(){n=qt("a"),c&&c.c(),this.h()},l(t){n=re(t,"A",{href:!0,target:!0,style:!0,class:!0});var e=te(n);c&&c.l(e),e.forEach(Lt),this.h()},h(){Qt(n,d)},m(e,r){Wt(e,n,r),c&&c.m(n,null),i=!0,a||(l=[St(o=t[5].call(null,n)),Yt(n,"click",t[10]),Yt(n,"click",t[20]),Yt(n,"dblclick",(function(){var e,n;_t(null!==(e=t[0])&&void 0!==e&&e.length?t[11]:null)&&(null!==(n=t[0])&&void 0!==n&&n.length?t[11]:null).apply(this,arguments)})),Yt(n,"touchstart",(function(){var e,n;_t(null!==(e=t[1])&&void 0!==e&&e.length?t[12]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[12]:null).apply(this,arguments)})),Yt(n,"touchmove",(function(){var e,n;_t(null!==(e=t[1])&&void 0!==e&&e.length?t[13]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[13]:null).apply(this,arguments)})),Yt(n,"touchend",(function(){var e,n;_t(null!==(e=t[1])&&void 0!==e&&e.length?t[14]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[14]:null).apply(this,arguments)})),Yt(n,"touchcancel",(function(){var e,n;_t(null!==(e=t[1])&&void 0!==e&&e.length?t[14]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[14]:null).apply(this,arguments)})),Yt(n,"keydown",t[15])],a=!0)},p(e,o){var a;t=e,c&&c.p&&(!i||262144&o)&&Pt(c,s,t,t[18],i?jt(s,t[18],o,null):Dt(t[18]),null),Qt(n,d=Ue(u,[(!i||128&o)&&{href:t[7]},(!i||256&o)&&{target:t[8]},(!i||8&o)&&{style:t[3]},(!i||70&o&&r!==(r=t[2]+" "+(t[6]?dn:hn)+" "+(null!==(a=t[1])&&void 0!==a&&a.length?mn:"")))&&{class:r},16&o&&t[4]]))},i(t){i||(Je(c,t),i=!0)},o(t){Oe(c,t),i=!1},d(t){t&&Lt(n),c&&c.d(t),a=!1,$t(l)}}}function tr(t){let e,n,r,o;const i=[Qn,Zn],a=[];function l(t,e){return t[7]?0:1}return e=l(t),n=a[e]=i[e](t),{c(){n.c(),r=Xt()},l(t){n.l(t),r=Xt()},m(t,n){a[e].m(t,n),Wt(t,r,n),o=!0},p(t,o){let[s]=o,c=e;e=l(t),e===c?a[e].p(t,s):(Me(),Oe(a[c],1,1,(()=>{a[c]=null})),Te(),n=a[e],n?n.p(t,s):(n=a[e]=i[e](t),n.c()),Je(n,1),n.m(r.parentNode,r))},i(t){o||(Je(n),o=!0)},o(t){Oe(n),o=!1},d(t){a[e].d(t),t&&Lt(r)}}}function er(t,e,n){let{$$slots:r={},$$scope:o}=e,{actions:i}=e,{doubleTapActions:a}=e,{longTapActions:l}=e,{cls:s=""}=e,{style:c=null}=e,{attrs:u}=e,{use:d=Kn}=e,{customAction:h=null}=e,{isNativeActionAnimation:p=!0}=e;const f=ye(vn),g=ye(Xn);ve(Xn,{hasAction:()=>Boolean(g.hasAction()||(null==i?void 0:i.length))});let m,v="",y=-1,$=null,_=!1;if(Array.isArray(i)&&(null==i?void 0:i.length))for(let t=0;t<i.length;++t){const e=i[t].url;if(e){v=e,m=i[t].target||void 0;break}}Array.isArray(i)&&(null==i?void 0:i.length)&&g.hasAction()&&(v="",f.logError(yn(new Error("Actionable element is forbidden inside other actionable element"),{level:"warn",additional:{actions:i}})));let b=Boolean(h);return v&&!Sn(Dn(v),f.getBuiltinProtocols())&&(v="",b=!0),t.$$set=t=>{"actions"in t&&n(16,i=t.actions),"doubleTapActions"in t&&n(0,a=t.doubleTapActions),"longTapActions"in t&&n(1,l=t.longTapActions),"cls"in t&&n(2,s=t.cls),"style"in t&&n(3,c=t.style),"attrs"in t&&n(4,u=t.attrs),"use"in t&&n(5,d=t.use),"customAction"in t&&n(17,h=t.customAction),"isNativeActionAnimation"in t&&n(6,p=t.isNativeActionAnimation),"$$scope"in t&&n(18,o=t.$$scope)},[a,l,s,c,u,d,p,v,m,b,async function(t){g.hasAction()||void 0!==t.button&&0!==t.button||(!1===(null==h?void 0:h(t))?t.preventDefault():i&&(i.some((t=>{const e=null==t?void 0:t.url;if(!e)return!1;const n=Dn(e);return n&&!Sn(n,f.getBuiltinProtocols())}))&&t.preventDefault(),f.execAnyActions(i)))},function(t){g.hasAction()||void 0!==t.button&&0!==t.button||f.execAnyActions(a,!0)},function(t){t.touches.length>1||($=Yn(t),_=!1,y=Date.now())},function(t){if(!$)return;const e=Yn(t);(Math.abs($.x-e.x)>8||Math.abs($.y-e.y)>8)&&(_=!0)},function(){!$||y<0||(!_&&Date.now()-y>=400&&f.execAnyActions(l,!0),$=null,y=-1)},function(t){t.ctrlKey||t.metaKey||t.altKey||t.shiftKey||"Enter"===t.key&&Array.isArray(i)&&i.length&&(f.execAnyActions(i),t.preventDefault())},i,h,o,r,function(e){$e.call(this,t,e)},function(e){$e.call(this,t,e)}]}const nr=class extends Ze{constructor(t){super(),Ye(this,t,er,tr,xt,{actions:16,doubleTapActions:0,longTapActions:1,cls:2,style:3,attrs:4,use:5,customAction:17,isNativeActionAnimation:6})}},rr="divkit-bf253",or="divkit-b921d";function ir(t){return Tn(t)&&t>0}function ar(t,e){return t.map((t=>{if("blur"===(null==t?void 0:t.type)){if(ir(t.radius))return"blur(".concat(xn(t.radius/2),")")}else e(yn(new Error("Unknown filter"),{level:"warn",additional:{filter:null==t?void 0:t.type}}))})).filter(Boolean).join(" ")}function lr(t,e,n){const r=t.slice();return r[5]=e[n],r}function sr(t){let e,n,r;return{c(){e=qt("span"),this.h()},l(t){e=re(t,"SPAN",{class:!0,style:!0}),te(e).forEach(Lt),this.h()},h(){Zt(e,"class",n=or),Zt(e,"style",r=bn(t[5].style))},m(t,n){Wt(t,e,n)},p(t,n){2&n&&r!==(r=bn(t[5].style))&&Zt(e,"style",r)},d(t){t&&Lt(e)}}}function cr(t){let e,n,r,o,i,a;return{c(){e=qt("img"),this.h()},l(t){e=re(t,"IMG",{src:!0,alt:!0,"aria-hidden":!0,loading:!0,decoding:!0,class:!0,style:!0}),this.h()},h(){wt(e.src,n=t[5].image_url)||Zt(e,"src",n),Zt(e,"alt",""),Zt(e,"aria-hidden","true"),Zt(e,"loading","lazy"),Zt(e,"decoding","async"),Zt(e,"class",r=or),Zt(e,"style",o=bn(t[5].style))},m(n,r){Wt(n,e,r),i||(a=Yt(e,"error",t[2]),i=!0)},p(t,r){2&r&&!wt(e.src,n=t[5].image_url)&&Zt(e,"src",n),2&r&&o!==(o=bn(t[5].style))&&Zt(e,"style",o)},d(t){t&&Lt(e),i=!1,a()}}}function ur(t){let e;function n(t,e){return t[5].image_url?cr:sr}let r=n(t),o=r(t);return{c(){o.c(),e=Xt()},l(t){o.l(t),e=Xt()},m(t,n){o.m(t,n),Wt(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){o.d(t),t&&Lt(e)}}}function dr(t){let e,n,r=t[1],o=[];for(let e=0;e<r.length;e+=1)o[e]=ur(lr(t,r,e));return{c(){e=qt("span");for(let t=0;t<o.length;t+=1)o[t].c();this.h()},l(t){e=re(t,"SPAN",{class:!0});var n=te(e);for(let t=0;t<o.length;t+=1)o[t].l(n);n.forEach(Lt),this.h()},h(){Zt(e,"class",n=rr+(t[0]?" divkit-dcad7":"")),se(e,"border-radius",t[0],!1)},m(t,n){Wt(t,e,n);for(let t=0;t<o.length;t+=1)o[t].m(e,null)},p(t,i){let[a]=i;if(6&a){let n;for(r=t[1],n=0;n<r.length;n+=1){const i=lr(t,r,n);o[n]?o[n].p(i,a):(o[n]=ur(i),o[n].c(),o[n].m(e,null))}for(;n<o.length;n+=1)o[n].d(1);o.length=r.length}1&a&&n!==(n=rr+(t[0]?" divkit-dcad7":""))&&Zt(e,"class",n),1&a&&se(e,"border-radius",t[0],!1)},i:ft,o:ft,d(t){t&&Lt(e),Ut(o,t)}}}function hr(t,e,n){let r,{background:o=[]}=e,{radius:i=""}=e;const a=ye(vn);return t.$$set=t=>{"background"in t&&n(3,o=t.background),"radius"in t&&n(0,i=t.radius)},t.$$.update=()=>{8&t.$$.dirty&&n(1,r=o.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=Cn([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=ar(t.filters,a.logError)))}return n})))},[i,r,function(t){t.target&&"classList"in t.target&&t.target.classList.add("divkit-cd613")},o]}const pr=class extends Ze{constructor(t){super(),Ye(this,t,hr,dr,xt,{background:3,radius:0})}};function fr(t){let e,n;return e=new nr({props:{use:t[32],cls:t[0]+" "+zn("outer",_n,t[15]),style:bn(t[13]),actions:t[10],doubleTapActions:t[11],longTapActions:t[12],attrs:t[6],isNativeActionAnimation:!t[4].length||$r(t[4]),$$slots:{default:[vr]},$$scope:{ctx:t}}}),{c(){He(e.$$.fragment)},l(t){Ge(e.$$.fragment,t)},m(t,r){Ke(e,t,r),n=!0},p(t,n){const r={};32769&n[0]&&(r.cls=t[0]+" "+zn("outer",_n,t[15])),8192&n[0]&&(r.style=bn(t[13])),1024&n[0]&&(r.actions=t[10]),2048&n[0]&&(r.doubleTapActions=t[11]),4096&n[0]&&(r.longTapActions=t[12]),64&n[0]&&(r.attrs=t[6]),16&n[0]&&(r.isNativeActionAnimation=!t[4].length||$r(t[4])),174&n[0]|131072&n[3]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Je(e.$$.fragment,t),n=!0)},o(t){Oe(e.$$.fragment,t),n=!1},d(t){Xe(e,t)}}}function gr(t){let e,n;return e=new pr({props:{background:t[5],radius:t[2]}}),{c(){He(e.$$.fragment)},l(t){Ge(e.$$.fragment,t)},m(t,r){Ke(e,t,r),n=!0},p(t,n){const r={};32&n[0]&&(r.background=t[5]),4&n[0]&&(r.radius=t[2]),e.$set(r)},i(t){n||(Je(e.$$.fragment,t),n=!0)},o(t){Oe(e.$$.fragment,t),n=!1},d(t){Xe(e,t)}}}function mr(t){let e,n,r;return{c(){e=qt("span"),this.h()},l(t){e=re(t,"SPAN",{class:!0,style:!0}),te(e).forEach(Lt),this.h()},h(){Zt(e,"class",n=_n.outer__border),Zt(e,"style",r=bn(t[1]))},m(t,n){Wt(t,e,n)},p(t,n){2&n[0]&&r!==(r=bn(t[1]))&&Zt(e,"style",r)},d(t){t&&Lt(e)}}}function vr(t){let e,n,r,o=t[3]&&gr(t);const i=t[109].default,a=At(i,t,t[110],null);let l=t[7]&&mr(t);return{c(){o&&o.c(),e=Xt(),a&&a.c(),l&&l.c(),n=Xt()},l(t){o&&o.l(t),e=Xt(),a&&a.l(t),l&&l.l(t),n=Xt()},m(t,i){o&&o.m(t,i),Wt(t,e,i),a&&a.m(t,i),l&&l.m(t,i),Wt(t,n,i),r=!0},p(t,s){t[3]?o?(o.p(t,s),8&s[0]&&Je(o,1)):(o=gr(t),o.c(),Je(o,1),o.m(e.parentNode,e)):o&&(Me(),Oe(o,1,1,(()=>{o=null})),Te()),a&&a.p&&(!r||131072&s[3])&&Pt(a,i,t,t[110],r?jt(i,t[110],s,null):Dt(t[110]),null),t[7]?l?l.p(t,s):(l=mr(t),l.c(),l.m(n.parentNode,n)):l&&(l.d(1),l=null)},i(t){r||(Je(o),Je(a,t),r=!0)},o(t){Oe(o),Oe(a,t),r=!1},d(t){o&&o.d(t),t&&Lt(e),a&&a.d(t),l&&l.d(t),t&&Lt(n)}}}function yr(t){let e,n,r=!t[8]&&!t[9]&&fr(t);return{c(){r&&r.c(),e=Xt()},l(t){r&&r.l(t),e=Xt()},m(t,o){r&&r.m(t,o),Wt(t,e,o),n=!0},p(t,n){t[8]||t[9]?r&&(Me(),Oe(r,1,1,(()=>{r=null})),Te()):r?(r.p(t,n),768&n[0]&&Je(r,1)):(r=fr(t),r.c(),Je(r,1),r.m(e.parentNode,e))},i(t){n||(Je(r),n=!0)},o(t){Oe(r),n=!1},d(t){r&&r.d(t),t&&Lt(e)}}}function $r(t){return t.some((t=>"native"===t.name))}function _r(t,e,n){let r,o,i,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x,k,E,A,V,j,P,D,S,I,z,F,N,M,T,J,O,B,R,W,L,U=ft,q=ft,H=ft,G=ft,K=ft,X=ft,Y=ft,Z=ft,Q=ft,tt=ft,et=ft,nt=ft,rt=ft,ot=ft,it=ft,at=ft,lt=ft;t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>H())),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())),t.$$.on_destroy.push((()=>at())),t.$$.on_destroy.push((()=>lt()));let{$$slots:st={},$$scope:ct}=e;var ut,dt,ht,pt,gt,mt;let{json:vt={}}=e,{origJson:yt}=e,{templateContext:$t}=e,{cls:_t=""}=e,{style:bt}=e,{layoutParams:wt={}}=e,{customDescription:xt=!1}=e,{customPaddings:kt=!1}=e,{customActions:Ct=""}=e,{additionalPaddings:At=null}=e;const Vt={left:"start",center:"center",right:"end"},jt={top:"start",center:"center",bottom:"end",baseline:"baseline"},Pt=ye(vn),Dt=ye(Nn);let St,It,zt,Ft,Nt,Mt,Tt,Jt,Ot,Bt,Rt,Wt={},Lt={},Ut=!1,qt=1,Ht="transparent",Gt=0,Kt={"top-left":0,"top-right":0,"bottom-right":0,"bottom-left":0},Xt="",Yt=null,Zt="",Qt={},te=0,ee=0,ne=0,re=!1,oe=!1,ie={},ae=0,le=0,se=0,ce=!1,ue=!1,de=1;const he=wt.fakeElement?[]:vt.transition_triggers||["state_change","visibility_change"],pe=-1!==he.indexOf("state_change")&&vt.id,fe=-1!==he.indexOf("visibility_change")&&vt.id;let ge,me,ve,$e,_e,be,we,xe=[],ke=[],Ee=[],Ce=[],Ve="";function je(t){const e=qn(t.start_value,1),r=qn(t.end_value,1),o=Bn(t.start_delay,0),i=Bn(t.duration,300),a=Un(t.interpolator,"ease_in_out").replace(/_/g,"-");switch(t.name){case"fade":return n(78,$e=e),n(79,_e=r),"opacity ".concat(i,"ms ").concat(a," ").concat(o,"ms");case"scale":return n(80,be=e),n(81,we=r),"transform ".concat(i,"ms ").concat(a," ").concat(o,"ms");case"native":case"no_animation":return"";default:return Pt.logError(yn(new Error("Unknown action_animation name"),{additional:{animation:t.name}})),""}}let Pe,De,Se=!1,Ie="visible",ze=0,Fe=0;return t.$$set=t=>{"json"in t&&n(33,vt=t.json),"origJson"in t&&n(34,yt=t.origJson),"templateContext"in t&&n(35,$t=t.templateContext),"cls"in t&&n(0,_t=t.cls),"style"in t&&n(36,bt=t.style),"layoutParams"in t&&n(37,wt=t.layoutParams),"customDescription"in t&&n(38,xt=t.customDescription),"customPaddings"in t&&n(39,kt=t.customPaddings),"customActions"in t&&n(40,Ct=t.customActions),"additionalPaddings"in t&&n(41,At=t.additionalPaddings),"$$scope"in t&&n(110,ct=t.$$scope)},t.$$.update=()=>{if(4&t.$$.dirty[1]&&(n(31,r=Pt.getDerivedFromVars(vt.border)),lt(),lt=Et(r,(t=>n(108,L=t)))),2&t.$$.dirty[0]|4192256&t.$$.dirty[1]|32768&t.$$.dirty[3]){let t={},e={},r=!1,o="";if(L){if(L.has_shadow){const e=L.shadow;t["box-shadow"]=e?wn((null===n(43,dt=null===n(42,ut=e.offset)||void 0===ut?void 0:ut.x)||void 0===dt?void 0:dt.value)||0)+" "+wn((null===n(45,pt=null===n(44,ht=e.offset)||void 0===ht?void 0:ht.y)||void 0===pt?void 0:pt.value)||0)+" "+wn(null!==n(46,gt=e.blur)&&void 0!==gt?gt:2)+" "+C(e.color||"#000000",null!==n(47,mt=e.alpha)&&void 0!==mt?mt:.19):"0 1px 2px 0 rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.07)"}if(L.stroke&&(r=!0,n(49,qt=Bn(L.stroke.width,qt)),n(50,Ht=C(L.stroke.color,1,Ht)),e.border="".concat(wn(qt)," solid ").concat(Ht)),L.corners_radius?(n(52,Kt=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]&&!Jn(n[t]))return e;return t}(L.corners_radius,Kt)),e["border-radius"]=t["border-radius"]=Gn(Kt)):L.corner_radius&&(n(51,Gt=Bn(L.corner_radius,Gt)),n(52,Kt={"top-left":Gt,"top-right":Gt,"bottom-right":Gt,"bottom-left":Gt}),e["border-radius"]=t["border-radius"]=wn(Gt)),r&&qt&&(L.corners_radius||L.corner_radius)){let t=Object.assign({},Kt);["top-left","top-right","bottom-right","bottom-left"].forEach((e=>{t[e]=(t[e]||0)+qt/2})),o=Gn(t)}}n(48,Wt=Ln(t,Wt)),n(1,Lt=Ln(e,Lt)),n(7,Ut=r),n(2,Xt=o)}if(4&t.$$.dirty[1]&&(n(30,o=Pt.getDerivedFromVars(vt.paddings)),at(),at=Et(o,(t=>n(107,W=t)))),4194560&t.$$.dirty[1]|16384&t.$$.dirty[3]&&n(53,Yt=function(t,e){if(!t)return e;const n=["top","right","bottom","left"];for(let r=0;r<n.length;++r)if(t[n[r]]&&!Jn(t[n[r]]))return e;return t}(W&&!kt?W:void 0,Yt)),4195328&t.$$.dirty[1]&&n(89,i=Mn(function(t,e){if(!t&&!e)return{};if(!e)return t;if(!t)return e;const n={};return["top","right","bottom","left"].forEach((r=>{const o=t[r];o&&(n[r]=o);const i=e[r];i&&(n[r]=(n[r]||0)+i)})),n}(Yt,At))),4&t.$$.dirty[1]&&(n(29,a=Pt.getDerivedFromVars(vt.margins)),ot(),ot=Et(a,(t=>n(105,B=t)))),8388608&t.$$.dirty[1]|4096&t.$$.dirty[3]&&n(54,Zt=On(B,Zt)),4&t.$$.dirty[1]&&(n(28,l=Pt.getDerivedFromVars(vt.width)),nt(),nt=Et(l,(t=>n(103,J=t)))),4&t.$$.dirty[1]&&(n(27,s=Pt.getDerivedFromVars(vt.alignment_horizontal)),it(),it=Et(s,(t=>n(106,R=t)))),285212736&t.$$.dirty[1]|13312&t.$$.dirty[3]){let t,e,r,o,i={},a=0,l=0,s=!1,c=!1;const u=null==J?void 0:J.type;if("fixed"===u)n(59,te=Bn(null==J?void 0:J.value,te)),e=wn(te);else if("wrap_content"===u||!wt.overlapParent&&"match_parent"===u&&wt.parentHorizontalWrapContent){if(t="content",("wrap_content"===u&&(null==J?void 0:J.constrained)||"match_parent"===u&&wt.parentHorizontalWrapContent)&&(i["width-constrained"]=!0,l=1),"wrap_content"===u){const t=J;t.min_size&&Jn(t.min_size.value)&&(r=wn(t.min_size.value)),t.max_size&&Jn(t.max_size.value)&&(o=wn(t.max_size.value))}"match_parent"===u&&Pt.logError(yn(new Error("Cannot place child with match_parent size inside wrap_content"),{level:"warn"}))}else t="parent","vertical"===wt.parentContainerOrientation&&wt.parentContainerWrap&&(c=!0,Pt.logError(yn(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),"vertical"===wt.parentLayoutOrientation?e="calc(100% - ".concat(xn(((null==B?void 0:B.left)||0)+((null==B?void 0:B.right)||0)),")"):"horizontal"===wt.parentContainerOrientation&&(a=J&&"weight"in J&&J.weight||1,wt.parentContainerWrap&&(s=!0));if("parent"===t)i["halign-self"]="stretch";else{const t=R;i["halign-self"]="left"===t||"center"===t||"right"===t?Vt[t]:wt.parentHAlign||"start"}t&&(i.width=t),n(56,zt=e),n(57,Ft=r),n(58,Nt=o),n(60,ee=a),n(61,ne=l),n(55,Qt=Ln(i,Qt)),n(62,re=s),n(8,oe=c)}if(4&t.$$.dirty[1]&&(n(26,c=Pt.getDerivedFromVars(vt.height)),et(),et=Et(c,(t=>n(102,T=t)))),4&t.$$.dirty[1]&&(n(25,u=Pt.getDerivedFromVars(vt.alignment_vertical)),rt(),rt=Et(u,(t=>n(104,O=t)))),64&t.$$.dirty[1]|34&t.$$.dirty[2]|6656&t.$$.dirty[3]){let t,e,r,o,i={},a=0,l=0,s=!1,c=!1;const u=null==T?void 0:T.type;if("fixed"===u)n(67,ae=Bn(null==T?void 0:T.value,ae)),e=wn(ae);else if("match_parent"!==u||!wt.overlapParent&&wt.parentVerticalWrapContent){if(t="content",("wrap_content"===u&&(null==T?void 0:T.constrained)||"match_parent"===u&&wt.parentVerticalWrapContent)&&(i["height-constrained"]=!0,l=1),"wrap_content"===u){const t=T;(null==t?void 0:t.min_size)&&Jn(t.min_size.value)&&(r=wn(t.min_size.value)),(null==t?void 0:t.max_size)&&Jn(t.max_size.value)&&(o=wn(t.max_size.value))}"match_parent"===u&&Pt.logError(yn(new Error("Cannot place child with match_parent size inside wrap_content"),{level:"warn"}))}else t="parent","horizontal"===wt.parentContainerOrientation&&wt.parentContainerWrap&&(c=!0,Pt.logError(yn(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),"horizontal"===wt.parentLayoutOrientation?e="calc(100% - ".concat(xn(((null==B?void 0:B.top)||0)+((null==B?void 0:B.bottom)||0)),")"):"vertical"===wt.parentContainerOrientation&&(a=(null==T?void 0:T.weight)||1,wt.parentContainerWrap&&(s=!0));if("parent"===t)i["valign-self"]="stretch";else{const t=O;"top"===t||"center"===t||"bottom"===t||"baseline"===t&&"horizontal"===wt.parentContainerOrientation?i["valign-self"]=jt[t]:i["valign-self"]=wt.parentVAlign||"start"}t&&(i.height=t),n(64,Mt=e),n(65,Tt=r),n(66,Jt=o),n(68,le=a),n(69,se=l),n(63,ie=Ln(i,ie)),n(70,ce=s),n(9,ue=c)}var e,st;if(64&t.$$.dirty[1]&&n(92,d=!!wt.overlapParent||void 0),64&t.$$.dirty[1]|1536&t.$$.dirty[3]&&n(91,h=wt.overlapParent&&(!J||"match_parent"===J.type)&&"match_parent"===(null==T?void 0:T.type)),64&t.$$.dirty[1]&&n(90,p=wt.gridArea?"".concat(wt.gridArea.y+1,"/").concat(wt.gridArea.x+1,"/span ").concat(wt.gridArea.rowSpan,"/span ").concat(wt.gridArea.colSpan):void 0),4&t.$$.dirty[1]&&(n(24,f=Pt.getDerivedFromVars(vt.alpha)),tt(),tt=Et(f,(t=>n(101,M=t)))),512&t.$$.dirty[2]|256&t.$$.dirty[3]&&(n(71,(st=de,de=!Jn(e=M)||void 0===e||e>1?st:Number(e))),n(72,Ot=1===de?void 0:de)),4&t.$$.dirty[1]&&(n(23,g=Pt.getDerivedFromVars(vt.accessibility)),Q(),Q=Et(g,(t=>n(100,N=t)))),128&t.$$.dirty[1]|128&t.$$.dirty[3]&&(n(6,It=void 0),N&&!xt&&N.description&&(n(6,It={}),n(6,It["aria-label"]=N.description,It))),4&t.$$.dirty[1]&&(n(22,m=Pt.getDerivedFromVars(vt.background)),Z(),Z=Et(m,(t=>n(5,F=t)))),44&t.$$.dirty[0]&&(n(73,Bt={}),n(3,Rt=!1),F&&(n(3,Rt=F.some((t=>"image"===t.type||"nine_patch_image"===t.type))||Boolean(Xt)),!Rt))){const t=Cn(F);n(73,Bt["background-color"]=t.color,Bt),n(73,Bt["background-image"]=t.image,Bt),n(73,Bt["background-size"]=t.size,Bt),n(73,Bt["background-position"]=t.position,Bt),n(73,Bt["background-repeat"]="no-repeat",Bt)}if(4&t.$$.dirty[1]&&(n(74,ge=void 0),pe&&vt.transition_in&&Pt.isRunning("stateChange")&&n(74,ge=!0)),4&t.$$.dirty[1]&&(n(76,ve=void 0),pe&&vt.transition_change&&Pt.isRunning("stateChange")&&Dt.hasTransitionChange(vt.id)&&n(76,ve=!0)),4&t.$$.dirty[1]&&(n(21,v=Pt.getDerivedFromVars(vt.action)),X(),X=Et(v,(t=>n(98,I=t)))),4&t.$$.dirty[1]&&(n(20,y=Pt.getDerivedFromVars(vt.actions)),Y(),Y=Et(y,(t=>n(99,z=t)))),4&t.$$.dirty[1]&&(n(19,$=Pt.getDerivedFromVars(vt.doubletap_actions)),K(),K=Et($,(t=>n(97,S=t)))),4&t.$$.dirty[1]&&(n(18,_=Pt.getDerivedFromVars(vt.longtap_actions)),G(),G=Et(_,(t=>n(96,D=t)))),576&t.$$.dirty[1]|120&t.$$.dirty[3]){let t=z||I&&[I]||[],e=S||[],r=D||[];wt.fakeElement?(t=[],e=[],r=[]):(Array.isArray(t)||(t=[],Pt.logError(yn(new Error("Actions should be array")))),Array.isArray(e)||(e=[],Pt.logError(yn(new Error("DoubleTapActions should be array")))),Array.isArray(r)||(r=[],Pt.logError(yn(new Error("LongTapActions should be array"))))),(t.length||e.length||r.length)&&Ct&&(t=[],e=[],r=[],Pt.logError(yn(new Error('Cannot use action on component "'.concat(Ct,'"'))))),n(10,xe=t),n(11,ke=e),n(12,Ee=r)}if(4&t.$$.dirty[1]&&(n(17,b=Pt.getDerivedFromVars(vt.action_animation)),H(),H=Et(b,(t=>n(95,P=t)))),16&t.$$.dirty[0]|4&t.$$.dirty[3]&&P&&(n(4,Ce=Hn(P)),n(77,Ve=Ce.map(je).filter(Boolean).join(", "))),4&t.$$.dirty[1]&&(n(16,w=Pt.getDerivedFromVars(vt.visibility)),q(),q=Et(w,(t=>n(94,j=t)))),3145728&t.$$.dirty[2]|2&t.$$.dirty[3]){const t=Ie,e=function(t,e){return"visible"===t||"invisible"===t||"gone"===t?t:e}(j,Ie);t!==e&&(!Se||"visible"!==Ie&&"visible"!==e?n(83,Ie=e):async function(t){n(83,Ie=t);const e="visible"===t?"in":"out",r="in"===e?vt.transition_in:vt.transition_out;fe&&r&&(await Ae(),"in"===e&&n(75,me=!0),Dt.runVisibilityTransition(Object.assign(Object.assign({},vt),{visibility:"visible"}),$t,r,St,e).then((()=>{"in"===e&&n(75,me=!1)})).catch((t=>{throw"in"===e&&n(75,me=!1),t})))}(e)),Se||n(82,Se=!0)}if(16777280&t.$$.dirty[1]|1612771330&t.$$.dirty[2]&&n(15,x=Object.assign(Object.assign(Object.assign({},Qt),ie),{"parent-overlap":d,"parent-overlap-absolute":h,"scroll-snap":wt.scrollSnap,"hide-on-transition-in":ge||me||ve,visibility:Ie,"has-action-animation":Boolean(Ve),"parent-flex":wt.parentContainerOrientation||void 0})),4&t.$$.dirty[1]&&(n(14,k=Pt.getDerivedFromVars(vt.transform)),U(),U=Et(k,(t=>n(93,V=t)))),12582912&t.$$.dirty[2]|1&t.$$.dirty[3]&&V&&void 0!==V.rotation){const t=V.pivot_x||{type:"pivot-percentage",value:50};n(84,ze=qn(t.value,ze));const e="pivot-fixed"===t.type?wn(ze):"".concat(ze,"%"),r=V.pivot_y||{type:"pivot-percentage",value:50};n(85,Fe=qn(r.value,Fe));const o="pivot-fixed"===r.type?wn(Fe):"".concat(Fe,"%");n(86,Pe="".concat(e," ").concat(o)),n(87,De="rotate(".concat(V.rotation,"deg)"))}536870912&t.$$.dirty[1]|321&t.$$.dirty[2]&&n(88,E=re||ce?"100%":ee||le?0:void 0),1854013472&t.$$.dirty[1]|521112796&t.$$.dirty[2]&&n(13,A=Object.assign(Object.assign(Object.assign(Object.assign({},bt),Bt),Wt),{width:zt,"min-width":Ft,"max-width":Nt,height:Mt,"min-height":Tt,"max-height":Jt||(null==bt?void 0:bt["max-height"]),"grid-area":p,padding:i,margin:Zt,opacity:Ot,transition:Ve,"transform-origin":Pe,transform:De,"flex-grow":ee||le||void 0,"flex-shrink":ne||se?1:void 0,"flex-basis":E,"--divkit-animation-opacity-start":$e,"--divkit-animation-opacity-end":_e,"--divkit-animation-scale-start":be,"--divkit-animation-scale-end":we}))},[_t,Lt,Xt,Rt,Ce,F,It,Ut,oe,ue,xe,ke,Ee,A,k,x,w,b,_,$,y,v,m,g,f,u,c,s,l,a,o,r,function(t){St=t,pe&&vt.transition_in&&Dt.registerChildWithTransitionIn(vt,$t,vt.transition_in,t).then((()=>{n(74,ge=!1)})).catch((t=>{throw n(74,ge=!1),t})),pe&&vt.transition_out&&Dt.registerChildWithTransitionOut(vt,$t,vt.transition_out,t),pe&&vt.transition_change&&Dt.registerChildWithTransitionChange(vt,$t,vt.transition_change,t).then((()=>{n(76,ve=!1)})).catch((t=>{throw n(76,ve=!1),t})),function(t,e){let{visibilityActions:n,rootCtx:r}=e;if(null==n||!n.length)return;const o=n.map((t=>({action:t,visible:!1,count:0,finished:!1}))),i=[...new Set([...n.map((t=>(t.visibility_percentage||50)/100))])];new IntersectionObserver((t=>{t.forEach((t=>{o.forEach((e=>{const n=t.intersectionRatio>=(e.action.visibility_percentage||50)/100;!e.visible&&n?e.finished||(e.timer=setTimeout((()=>{++e.count;const t=0===e.action.log_limit?1/0:e.action.log_limit||1;++e.count>=t&&(e.finished=!0);const n=e.action.url;if(n){const t=Dn(n);t&&!Sn(t,r.getBuiltinProtocols())&&("div-action"===t?r.execAction(e.action):e.action.log_id&&r.execCustomAction(e.action))}r.logStat("visible",e.action)}),e.action.visibility_duration||800)):n||e.timer&&clearTimeout(e.timer),e.visible=n}))}))}),{threshold:i}).observe(t)}(t,{visibilityActions:wt.fakeElement?[]:Pt.getJsonWithVars(vt.visibility_actions||vt.visibility_action&&[vt.visibility_action]),rootCtx:Pt});const e=vt.id;e&&Dt.registerChild(e);let r=null;return Fn&&!wt.fakeElement&&(r=Fn(t,{json:vt,origJson:yt,rootCtx:Pt,templateContext:$t})),{destroy(){e&&Dt.unregisterChild(e),r&&r.destroy()}}},vt,yt,$t,bt,wt,xt,kt,Ct,At,ut,dt,ht,pt,gt,mt,Wt,qt,Ht,Gt,Kt,Yt,Zt,Qt,zt,Ft,Nt,te,ee,ne,re,ie,Mt,Tt,Jt,ae,le,se,ce,de,Ot,Bt,ge,me,ve,Ve,$e,_e,be,we,Se,Ie,ze,Fe,Pe,De,E,i,p,h,d,V,j,P,D,S,I,z,N,M,T,J,O,B,R,W,L,st,ct]}const br=class extends Ze{constructor(t){super(),Ye(this,t,_r,yr,xt,{json:33,origJson:34,templateContext:35,cls:0,style:36,layoutParams:37,customDescription:38,customPaddings:39,customActions:40,additionalPaddings:41},null,[-1,-1,-1,-1])}},wr={"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 xr(t,e){const n=Number(t);return isNaN(n)||n<=0?e:n}function kr(t){if("light"===t||"medium"===t||"bold"===t||"regular"===t)return"medium"===t?500:"bold"===t?700:"light"===t?300:400}function Er(t,e){return kr(t)||e}function Cr(t){let e,n;return{c(){e=qt("span"),this.h()},l(t){e=re(t,"SPAN",{class:!0}),te(e).forEach(Lt),this.h()},h(){Zt(e,"class",n=wr["text-range__top-offset"]),se(e,"margin-top",t[4],!1)},m(t,n){Wt(t,e,n)},p(t,n){16&n&&se(e,"margin-top",t[4],!1)},d(t){t&&Lt(e)}}}function Ar(t){let e;return{c(){e=Gt(t[0])},l(n){e=ie(n,t[0])},m(t,n){Wt(t,e,n)},p(t,n){1&n&&le(e,t[0])},d(t){t&&Lt(e)}}}function Vr(t){let e,n,r,o=t[4]&&Cr(t);return n=new nr({props:{cls:zn("text-range",wr,t[3]),actions:t[1],style:bn(t[2]),$$slots:{default:[Ar]},$$scope:{ctx:t}}}),{c(){o&&o.c(),e=Xt(),He(n.$$.fragment)},l(t){o&&o.l(t),e=Xt(),Ge(n.$$.fragment,t)},m(t,i){o&&o.m(t,i),Wt(t,e,i),Ke(n,t,i),r=!0},p(t,r){let[i]=r;t[4]?o?o.p(t,i):(o=Cr(t),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null);const a={};8&i&&(a.cls=zn("text-range",wr,t[3])),2&i&&(a.actions=t[1]),4&i&&(a.style=bn(t[2])),524289&i&&(a.$$scope={dirty:i,ctx:t}),n.$set(a)},i(t){r||(Je(n.$$.fragment,t),r=!0)},o(t){Oe(n.$$.fragment,t),r=!1},d(t){o&&o.d(t),t&&Lt(e),Xe(n,t)}}}function jr(t,e,n){let r,o,i,a,l;var s,c;let u,{text:d}=e,{rootFontSize:h}=e,{textStyles:p={}}=e,{singleline:f=!1}=e,{actions:g}=e,m="none",v=12,y=1.25,$="",_="",b=null;return t.$$set=t=>{"text"in t&&n(0,d=t.text),"rootFontSize"in t&&n(5,h=t.rootFontSize),"textStyles"in t&&n(6,p=t.textStyles),"singleline"in t&&n(7,f=t.singleline),"actions"in t&&n(1,g=t.actions)},t.$$.update=()=>{if(64&t.$$.dirty){let t="none";(p.underline||p.strike)&&("single"===p.underline&&"single"===p.strike?t="both":"single"===p.underline?t="underline":"single"===p.strike&&(t="strike")),n(10,m=t)}2112&t.$$.dirty&&n(11,v=xr(p.font_size,v)),2112&t.$$.dirty&&ir(p.line_height)&&n(12,y=Number(p.line_height)/v),64&t.$$.dirty&&Jn(p.letter_spacing)&&n(13,$=wn(p.letter_spacing)),16448&t.$$.dirty&&n(14,u=Er(p.font_weight,u)),32832&t.$$.dirty&&n(15,_=C(p.text_color,1,_)),64&t.$$.dirty&&n(4,r=p.top_offset?wn(p.top_offset):""),64&t.$$.dirty&&n(18,o=p.background?Cn([p.background]):null),320&t.$$.dirty&&((null===n(8,s=p.border)||void 0===s?void 0:s.stroke)&&"transparent"!==C(p.border.stroke.color)&&ir(p.border.stroke.width)?n(16,b={color:p.border.stroke.color,width:p.border.stroke.width}):n(16,b=null)),576&t.$$.dirty&&n(17,i=xr(null===n(9,c=p.border)||void 0===c?void 0:c.corner_radius,0)),1152&t.$$.dirty&&n(3,a={singleline:f,decoration:m}),522272&t.$$.dirty&&n(2,l={"font-size":wn(10*v/h),"line-height":y,"letter-spacing":$,"font-weight":u,color:_,background:(null==o?void 0:o.color)||void 0,"box-shadow":b?"inset 0 0 0 ".concat(wn(b.width)," ").concat(b.color):void 0,"border-radius":i?wn(i):void 0})},[d,g,l,a,r,h,p,f,s,c,m,v,y,$,u,_,b,i,o]}const Pr=class extends Ze{constructor(t){super(),Ye(this,t,jr,Vr,xt,{text:0,rootFontSize:5,textStyles:6,singleline:7,actions:1})}};function Dr(t,e){return"left"===t||"center"===t||"right"===t?t:e}function Sr(t,e){return"top"===t||"center"===t||"bottom"===t||"baseline"===t?t:e}function Ir(t,e){return"source_in"===t||"source_atop"===t||"darken"===t||"lighten"===t||"multiply"===t||"screen"===t?t:e}const{Boolean:zr}=We;function Fr(t,e,n){const r=t.slice();return r[55]=e[n],r[57]=n,r}function Nr(t){let e,n;return e=new br({props:{cls:zn("text",$n,t[13])+" "+(t[6]?"":pn),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Wr]},$$scope:{ctx:t}}}),{c(){He(e.$$.fragment)},l(t){Ge(e.$$.fragment,t)},m(t,r){Ke(e,t,r),n=!0},p(t,n){const r={};8256&n[0]&&(r.cls=zn("text",$n,t[13])+" "+(t[6]?"":pn)),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),134225584&n[0]|134217728&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Je(e.$$.fragment,t),n=!0)},o(t){Oe(e.$$.fragment,t),n=!1},d(t){Xe(e,t)}}}function Mr(t){let e,n;return e=new Pr({props:{text:t[4],rootFontSize:t[5],textStyles:t[27],singleline:t[7]}}),{c(){He(e.$$.fragment)},l(t){Ge(e.$$.fragment,t)},m(t,r){Ke(e,t,r),n=!0},p(t,n){const r={};16&n[0]&&(r.text=t[4]),32&n[0]&&(r.rootFontSize=t[5]),134217728&n[0]&&(r.textStyles=t[27]),128&n[0]&&(r.singleline=t[7]),e.$set(r)},i(t){n||(Je(e.$$.fragment,t),n=!0)},o(t){Oe(e.$$.fragment,t),n=!1},d(t){Xe(e,t)}}}function Tr(t){let e,n,r=t[10],o=[];for(let e=0;e<r.length;e+=1)o[e]=Rr(Fr(t,r,e));const i=t=>Oe(o[t],1,1,(()=>{o[t]=null}));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=Xt()},l(t){for(let e=0;e<o.length;e+=1)o[e].l(t);e=Xt()},m(t,r){for(let e=0;e<o.length;e+=1)o[e].m(t,r);Wt(t,e,r),n=!0},p(t,n){if(268437152&n[0]){let a;for(r=t[10],a=0;a<r.length;a+=1){const i=Fr(t,r,a);o[a]?(o[a].p(i,n),Je(o[a],1)):(o[a]=Rr(i),o[a].c(),Je(o[a],1),o[a].m(e.parentNode,e))}for(Me(),a=r.length;a<o.length;a+=1)i(a);Te()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Je(o[t]);n=!0}},o(t){o=o.filter(zr);for(let t=0;t<o.length;t+=1)Oe(o[t]);n=!1},d(t){Ut(o,t),t&&Lt(e)}}}function Jr(t){let e,n,r,o,i,a,l,s;return{c(){e=qt("span"),n=qt("img"),this.h()},l(t){e=re(t,"SPAN",{style:!0});var r=te(e);n=re(r,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,"aria-hidden":!0,alt:!0,style:!0}),r.forEach(Lt),this.h()},h(){Zt(n,"class",r=$n.text__image),wt(n.src,o=t[55].image.url)||Zt(n,"src",o),Zt(n,"loading","lazy"),Zt(n,"decoding","async"),Zt(n,"aria-hidden","true"),Zt(n,"alt",""),Zt(n,"style",i=bn({width:t[55].image.width,height:t[55].image.height,"margin-top":t[9]?"-".concat(t[55].image.height):void 0,"margin-bottom":t[9]?"-".concat(t[55].image.height):void 0,filter:t[55].image.svgFilterId?"url(#".concat(t[55].image.svgFilterId,")"):void 0})),Zt(e,"style",a=bn(t[55].image.wrapperStyle))},m(r,o){Wt(r,e,o),Rt(e,n),l||(s=Yt(n,"error",t[28]),l=!0)},p(t,r){1024&r[0]&&!wt(n.src,o=t[55].image.url)&&Zt(n,"src",o),1536&r[0]&&i!==(i=bn({width:t[55].image.width,height:t[55].image.height,"margin-top":t[9]?"-".concat(t[55].image.height):void 0,"margin-bottom":t[9]?"-".concat(t[55].image.height):void 0,filter:t[55].image.svgFilterId?"url(#".concat(t[55].image.svgFilterId,")"):void 0}))&&Zt(n,"style",i),1024&r[0]&&a!==(a=bn(t[55].image.wrapperStyle))&&Zt(e,"style",a)},i:ft,o:ft,d(t){t&&Lt(e),l=!1,s()}}}function Or(t){let e,n,r=t[55].text&&Br(t);return{c(){r&&r.c(),e=Xt()},l(t){r&&r.l(t),e=Xt()},m(t,o){r&&r.m(t,o),Wt(t,e,o),n=!0},p(t,n){t[55].text?r?(r.p(t,n),1024&n[0]&&Je(r,1)):(r=Br(t),r.c(),Je(r,1),r.m(e.parentNode,e)):r&&(Me(),Oe(r,1,1,(()=>{r=null})),Te())},i(t){n||(Je(r),n=!0)},o(t){Oe(r),n=!1},d(t){r&&r.d(t),t&&Lt(e)}}}function Br(t){let e,n;return e=new Pr({props:{text:t[55].text,rootFontSize:t[5],textStyles:t[55].textStyles,singleline:t[7],actions:t[55].actions}}),{c(){He(e.$$.fragment)},l(t){Ge(e.$$.fragment,t)},m(t,r){Ke(e,t,r),n=!0},p(t,n){const r={};1024&n[0]&&(r.text=t[55].text),32&n[0]&&(r.rootFontSize=t[5]),1024&n[0]&&(r.textStyles=t[55].textStyles),128&n[0]&&(r.singleline=t[7]),1024&n[0]&&(r.actions=t[55].actions),e.$set(r)},i(t){n||(Je(e.$$.fragment,t),n=!0)},o(t){Oe(e.$$.fragment,t),n=!1},d(t){Xe(e,t)}}}function Rr(t){let e,n,r,o;const i=[Or,Jr],a=[];function l(t,e){return"text"in t[55]?0:t[55].image?1:-1}return~(e=l(t))&&(n=a[e]=i[e](t)),{c(){n&&n.c(),r=Xt()},l(t){n&&n.l(t),r=Xt()},m(t,n){~e&&a[e].m(t,n),Wt(t,r,n),o=!0},p(t,o){let s=e;e=l(t),e===s?~e&&a[e].p(t,o):(n&&(Me(),Oe(a[s],1,1,(()=>{a[s]=null})),Te()),~e?(n=a[e],n?n.p(t,o):(n=a[e]=i[e](t),n.c()),Je(n,1),n.m(r.parentNode,r)):n=null)},i(t){o||(Je(n),o=!0)},o(t){Oe(n),o=!1},d(t){~e&&a[e].d(t),t&&Lt(r)}}}function Wr(t){let e,n,r,o,i,a;const l=[Tr,Mr],s=[];function c(t,e){return t[10].length?0:1}return n=c(t),r=s[n]=l[n](t),{c(){e=qt("span"),r.c(),this.h()},l(t){e=re(t,"SPAN",{class:!0,style:!0});var n=te(e);r.l(n),n.forEach(Lt),this.h()},h(){Zt(e,"class",o=zn("text__inner",$n,t[12])),Zt(e,"style",i=bn(t[11]))},m(t,r){Wt(t,e,r),s[n].m(e,null),a=!0},p(t,u){let d=n;n=c(t),n===d?s[n].p(t,u):(Me(),Oe(s[d],1,1,(()=>{s[d]=null})),Te(),r=s[n],r?r.p(t,u):(r=s[n]=l[n](t),r.c()),Je(r,1),r.m(e,null)),(!a||4096&u[0]&&o!==(o=zn("text__inner",$n,t[12])))&&Zt(e,"class",o),(!a||2048&u[0]&&i!==(i=bn(t[11])))&&Zt(e,"style",i)},i(t){a||(Je(r),a=!0)},o(t){Oe(r),a=!1},d(t){t&&Lt(e),s[n].d()}}}function Lr(t){let e,n,r=!t[8]&&Nr(t);return{c(){r&&r.c(),e=Xt()},l(t){r&&r.l(t),e=Xt()},m(t,o){r&&r.m(t,o),Wt(t,e,o),n=!0},p(t,n){t[8]?r&&(Me(),Oe(r,1,1,(()=>{r=null})),Te()):r?(r.p(t,n),256&n[0]&&Je(r,1)):(r=Nr(t),r.c(),Je(r,1),r.m(e.parentNode,e))},i(t){n||(Je(r),n=!0)},o(t){Oe(r),n=!1},d(t){r&&r.d(t),t&&Lt(e)}}}function Ur(t,e,n){let r,o,i,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x,k,E,A,V,j,P,D,S,I,z,F,N,M=ft,T=ft,J=ft,O=ft,B=ft,R=ft,W=ft,L=ft,U=ft,q=ft,H=ft,G=ft,K=ft;t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>K()));let{json:X={}}=e,{templateContext:Y}=e,{origJson:Z}=e,{layoutParams:Q}=e;const tt=ye(vn);let et=!1,nt="",rt=12,ot=1.25,it=!1,at="",lt="",st=!1,ct="left",ut="top",dt="",ht="",pt=!1,gt=[],mt=[];return me((()=>{mt.forEach((t=>{let[e,n]=t;tt.removeSvgFilter(e,n)}))})),t.$$set=t=>{"json"in t&&n(0,X=t.json),"templateContext"in t&&n(1,Y=t.templateContext),"origJson"in t&&n(2,Z=t.origJson),"layoutParams"in t&&n(3,Q=t.layoutParams)},t.$$.update=()=>{var e,Y;if(1&t.$$.dirty[0]&&(n(26,r=tt.getDerivedFromVars(X.text)),K(),K=Et(r,(t=>n(51,N=t)))),16&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&(n(4,(e=N,Y=nt,nt=String(null!=e?e:"")||Y)),nt?n(8,et=!1):(n(8,et=!0),tt.logError(yn(new Error('Missing "text" prop for div "text"'))))),1&t.$$.dirty[0]&&(n(25,o=tt.getDerivedFromVars(X.ranges)),T(),T=Et(o,(t=>n(41,k=t)))),1&t.$$.dirty[0]&&(n(24,i=tt.getDerivedFromVars(X.images)),M(),M=Et(i,(t=>n(40,x=t)))),1&t.$$.dirty[0]&&(n(23,a=tt.getDerivedFromVars({font_size:X.font_size,letter_spacing:X.letter_spacing,font_weight:X.font_weight,text_color:X.text_color,underline:X.underline,strike:X.strike,line_height:X.line_height})),J(),J=Et(a,(t=>n(27,E=t)))),1&t.$$.dirty[0]&&(n(22,l=tt.getDerivedFromVars(X.font_size)),G(),G=Et(l,(t=>n(50,F=t)))),32&t.$$.dirty[0]|524288&t.$$.dirty[1]&&n(5,rt=xr(F,rt)),1&t.$$.dirty[0]&&(n(21,s=tt.getDerivedFromVars(X.line_height)),H(),H=Et(s,(t=>n(49,z=t)))),32&t.$$.dirty[0]|262144&t.$$.dirty[1]){const t=z;ir(t)?(n(29,ot=Number(t)/rt),n(9,it=!0)):n(9,it=!1)}if(1&t.$$.dirty[0]&&(n(20,c=tt.getDerivedFromVars(X.max_lines)),L(),L=Et(c,(t=>n(46,D=t)))),32768&t.$$.dirty[1]&&n(7,u=1===D),536870912&t.$$.dirty[0]|34304&t.$$.dirty[1]){let t="",e="",r=!1;if(D&&D>1){let n=Number(D);t=n*ot+"em",k||x||(e=n,r=!0)}n(30,at=t),n(31,lt=e),n(32,st=r)}if(1&t.$$.dirty[0]&&(n(19,d=tt.getDerivedFromVars(X.text_alignment_horizontal)),q(),q=Et(d,(t=>n(48,I=t)))),131076&t.$$.dirty[1]&&n(33,ct=Dr(I,ct)),1&t.$$.dirty[0]&&(n(18,h=tt.getDerivedFromVars(X.text_alignment_vertical)),U(),U=Et(h,(t=>n(47,S=t)))),65544&t.$$.dirty[1]&&n(34,ut=Sr(S,ut)),16&t.$$.dirty[0]|1024&t.$$.dirty[1]&&n(39,p=!k||nt&&1===k.length&&k[0]&&0===k[0].start&&"number"==typeof k[0].end&&k[0].end>=nt.length),1&t.$$.dirty[0]&&(n(17,f=tt.getDerivedFromVars(X.text_color)),W(),W=Et(f,(t=>n(45,P=t)))),17408&t.$$.dirty[1]&&n(38,g=Boolean(P)!==Boolean(k&&k[0]&&k[0].text_color)),50576&t.$$.dirty[1]){let t="";D&&p&&g&&(t=C(P||k&&k[0]&&k[0].text_color,1,dt)),n(35,dt=t)}if(1&t.$$.dirty[0]&&(n(16,m=tt.getDerivedFromVars(X.truncate)),R(),R=Et(m,(t=>n(44,j=t)))),8192&t.$$.dirty[1]&&n(37,v="none"===j?"none":""),1&t.$$.dirty[0]&&(n(15,y=tt.getDerivedFromVars(X.text_gradient)),B(),B=Et(y,(t=>n(43,V=t)))),4096&t.$$.dirty[1]){let t="";if(V){const e=Cn([V]);e.image&&(t=e.image)}n(36,ht=t)}1&t.$$.dirty[0]&&(n(14,$=tt.getDerivedFromVars(X.selectable)),O(),O=Et($,(t=>n(42,A=t)))),64&t.$$.dirty[0]|2048&t.$$.dirty[1]&&n(6,pt=function(t,e){return 1===t||0===t||!1===t||!0===t?Boolean(t):e}(A,pt)),16&t.$$.dirty[0]|1536&t.$$.dirty[1]&&function(t,e,r){let o=[];if(mt.forEach((t=>{let[e,n]=t;tt.removeSvgFilter(e,n)})),mt=[],!(Array.isArray(e)&&e.length||Array.isArray(r)&&r.length&&t))return void n(10,gt=[]);const i=t;let a=e||[{start:0,end:i.length}],l=r||[],s=0,c=[],u=[];a.forEach((t=>{void 0!==t.start&&void 0!==t.end&&(u.push({index:t.start,range:t,type:"rangeStart",isStart:!0}),u.push({index:t.end,range:t,type:"rangeEnd"}))})),l.forEach(((t,e)=>{void 0!==t.start&&t.url&&t.start<=i.length&&u.push({index:t.start,image:t,type:"image",arrayIndex:e})})),u.sort(((t,e)=>t.index===e.index?t.type!==e.type?"image"===t.type?-1:"image"===e.type?1:t.type<e.type?-1:1:"image"===t.type&&"image"===e.type?e.arrayIndex-t.arrayIndex:"rangeStart"===t.type&&"rangeStart"===e.type?t.range.end-e.range.end:"rangeStart"===t.type?1:"rangeStart"===e.type?-1:"image"!==t.type&&"image"!==e.type?t.range.start-e.range.start:0:t.index-e.index)),u.forEach((t=>{var e;let n="image"===t.type?null:t.range,r=t.index;if(r>s){let n=Object.assign(Object.assign({},E),...c);o.push({text:i.substring(s,r),textStyles:n,actions:"rangeEnd"===t.type&&(null===(e=t.range)||void 0===e?void 0:e.actions)||void 0})}if("rangeStart"===t.type&&n)c.push(n);else if("rangeEnd"===t.type)c=c.filter((e=>e!==t.range));else if("image"===t.type){let e=Object.assign(Object.assign({},E),...c),n=wn(10*(t.image.width&&t.image.width.value||20)/(e.font_size||12)),r=wn(10*(t.image.height&&t.image.height.value||20)/(e.font_size||12));const i={"font-size":wn(10*(Number(e.font_size)||12)/rt)};let a="";const l=t.image.tint_color,s=Ir(t.image.tint_mode,"source_in");if(l){const e=C(t.image.tint_color);a=tt.addSvgFilter(e,s),mt.push([e,s])}o.push({image:{url:t.image.url,width:n,height:r,wrapperStyle:i,svgFilterId:a}})}s=r})),s<i.length&&o.push({text:i.substring(s),textStyles:Object.assign({},E)}),n(10,gt=o)}(nt,k,x),128&t.$$.dirty[0]|78&t.$$.dirty[1]&&n(13,_={singleline:u,multiline:st,halign:ct,valign:ut,truncate:v}),32&t.$$.dirty[1]&&n(12,b={gradient:Boolean(ht)}),1610612768&t.$$.dirty[0]|49&t.$$.dirty[1]&&n(11,w={"font-size":wn(rt),"line-height":ot,"max-height":at,"-webkit-line-clamp":lt,color:dt,"background-image":ht})},[X,Y,Z,Q,nt,rt,pt,u,et,it,gt,w,b,_,$,y,m,f,h,d,c,s,l,a,i,o,r,E,function(t){t.target&&"classList"in t.target&&t.target.classList.add($n.text__image_hidden)},ot,at,lt,st,ct,ut,dt,ht,v,g,p,x,k,A,V,j,P,D,S,I,z,F,N]}const qr={container:"divkit-d37d6",container_wrap:"divkit-c8551",container_orientation_vertical:"divkit-ddc33",container_valign_top:"divkit-a331a",container_valign_center:"divkit-aae61",container_valign_bottom:"divkit-c2226",container_orientation_horizontal:"divkit-fe458",container_halign_left:"divkit-a3091",container_halign_center:"divkit-bac9d",container_halign_right:"divkit-f4230",container_orientation_overlap:"divkit-a644d"};function Hr(t,e,n){if(!(t&&t.shape&&t.color&&t.shape.type&&e.includes(t.shape.type)))return n;const r=C(t.color);let o,i,a;if("rounded_rectangle"===t.shape.type){var l,s,c,u;o=Number((null===(l=t.shape.item_width)||void 0===l?void 0:l.value)||10),i=Number((null===(s=t.shape.item_height)||void 0===s?void 0:s.value)||10),a=Number(null!==(c=null===(u=t.shape.corner_radius)||void 0===u?void 0:u.value)&&void 0!==c?c:5)}else{if("circle"!==t.shape.type)return n;var d;o=i=a=2*Number((null===(d=t.shape.radius)||void 0===d?void 0:d.value)||10)}if("shape_drawable"===t.type&&"transparent"!==r){var h,p,f;const e={},n=null!==(h=t.stroke)&&void 0!==h&&h.color?C(t.stroke.color):"",l=null!==(p=t.stroke)&&void 0!==p&&p.width?Number(null!==(f=t.stroke.width)&&void 0!==f?f:1):"";return e.width=o,e.height=i,e.borderRadius=a,e.background=r,n&&l&&(e.boxShadow="inset 0 0 0 ".concat(wn(l)," ").concat(n)),e}return n}function Gr(t,e,n){null!=e&&e.show_at_start&&(n?t.top=e.style.height:t.left=e.style.width),null!=e&&e.show_at_end&&(n?t.bottom=e.style.height:t.right=e.style.width)}function Kr(t,e,n){let r;return r="horizontal"===t?[null!=n&&n.show_between?n.style.height:0,null!=e&&e.show_between?e.style.width:0]:[null!=e&&e.show_between?e.style.height:0,null!=n&&n.show_between?n.style.width:0],r.map(wn).join(" ")}const Xr="divkit-a7719",Yr="divkit-f6e9a";function Zr(t,e,n){const r=t.slice();return r[13]=e[n],r}function Qr(t){let e,n,r,o,i,a="".concat(t[13].style.width,"px"),l="".concat(t[13].style.height,"px"),s="".concat(t[13].style.borderRadius,"px"),c="".concat(t[13].left,"px"),u="".concat(t[13].top,"px"),d="".concat(t[13].width,"px"),h="".concat(t[13].height,"px");return{c(){e=qt("div"),n=qt("div"),o=Kt(),this.h()},l(t){e=re(t,"DIV",{class:!0});var r=te(e);n=re(r,"DIV",{class:!0}),te(n).forEach(Lt),o=ae(r),r.forEach(Lt),this.h()},h(){Zt(n,"class",r=Yr),se(n,"width",a,!1),se(n,"height",l,!1),se(n,"border-radius",s,!1),se(n,"background",t[13].style.background,!1),se(n,"box-shadow",t[13].style.boxShadow,!1),Zt(e,"class",i="divkit-c770e"),se(e,"left",c,!1),se(e,"top",u,!1),se(e,"width",d,!1),se(e,"height",h,!1)},m(t,r){Wt(t,e,r),Rt(e,n),Rt(e,o)},p(t,r){2&r&&a!==(a="".concat(t[13].style.width,"px"))&&se(n,"width",a,!1),2&r&&l!==(l="".concat(t[13].style.height,"px"))&&se(n,"height",l,!1),2&r&&s!==(s="".concat(t[13].style.borderRadius,"px"))&&se(n,"border-radius",s,!1),2&r&&se(n,"background",t[13].style.background,!1),2&r&&se(n,"box-shadow",t[13].style.boxShadow,!1),2&r&&c!==(c="".concat(t[13].left,"px"))&&se(e,"left",c,!1),2&r&&u!==(u="".concat(t[13].top,"px"))&&se(e,"top",u,!1),2&r&&d!==(d="".concat(t[13].width,"px"))&&se(e,"width",d,!1),2&r&&h!==(h="".concat(t[13].height,"px"))&&se(e,"height",h,!1)},d(t){t&&Lt(e)}}}function to(t){let e,n,r,o,i=t[1],a=[];for(let e=0;e<i.length;e+=1)a[e]=Qr(Zr(t,i,e));return{c(){e=qt("div");for(let t=0;t<a.length;t+=1)a[t].c();this.h()},l(t){e=re(t,"DIV",{class:!0});var n=te(e);for(let t=0;t<a.length;t+=1)a[t].l(n);n.forEach(Lt),this.h()},h(){Zt(e,"class",n=Xr)},m(n,i){Wt(n,e,i);for(let t=0;t<a.length;t+=1)a[t].m(e,null);t[10](e),r||(o=Yt(window,"resize",t[2]),r=!0)},p(t,n){let[r]=n;if(2&r){let n;for(i=t[1],n=0;n<i.length;n+=1){const o=Zr(t,i,n);a[n]?a[n].p(o,r):(a[n]=Qr(o),a[n].c(),a[n].m(e,null))}for(;n<a.length;n+=1)a[n].d(1);a.length=i.length}},i:ft,o:ft,d(n){n&&Lt(e),Ut(a,n),t[10](null),r=!1,o()}}}function eo(t,e,n,r,o,i){i?t.push({top:n.bottom,left:o.left,width:o.right-o.left,height:r.top-n.bottom,style:e}):t.push({top:o.top,left:n.right,width:r.left-n.right,height:o.bottom-o.top,style:e})}function no(t,e,n,r){const o={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)&&eo(t,e.style,{top:0,right:n[0].left-e.style.width,bottom:n[0].top-e.style.height,left:0},n[0],o,r),null==e?void 0:e.show_between)for(let i=0;i<n.length-1;++i)eo(t,e.style,n[i],n[i+1],o,r);if(null==e?void 0:e.show_at_end){const i=n[n.length-1];eo(t,e.style,i,{top:i.bottom+e.style.height,right:0,bottom:0,left:i.right+e.style.width},o,r)}}function ro(t,e,n){let r,{orientation:o}=e,{separator:i}=e,{lineSeparator:a}=e;const l=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();n(1,c=[]);let e=[...r.children].filter((t=>t!==s&&!t.classList.contains(_n.outer__border))),l=[];for(;e.length;){const t=[],n=e.shift();t.push(n);let r=n.getBoundingClientRect(),i=r.right,a=r.bottom;for(;e.length;){let n=e[0],r=n.getBoundingClientRect();if("vertical"===o){if(r.top<a)break}else if(r.left<i)break;i=Math.max(i,r.right),a=Math.max(a,r.bottom),t.push(n),e.shift()}l.push(t)}const u=[];l.forEach((t=>{const e=t.map((t=>function(t){const e=t.getBoundingClientRect(),n=getComputedStyle(t);return{top:e.top-parseFloat(n.marginTop),right:e.right+parseFloat(n.marginRight),bottom:e.bottom+parseFloat(n.marginBottom),left:e.left-parseFloat(n.marginLeft)}}(t)));i&&no(c,i,e,"vertical"===o);const n={top:Math.min(...e.map((t=>t.top))),right:Math.max(...e.map((t=>t.right))),bottom:Math.max(...e.map((t=>t.bottom))),left:Math.min(...e.map((t=>t.left)))};u.push(n)})),a&&no(c,a,u,"horizontal"===o),c.forEach((e=>{e.top-=t.top,e.left-=t.left}))}));let s,c=[],u=!1,d=null,h=null;function p(t){t.some((t=>{var e;const n=null===(e=t.target)||void 0===e?void 0:e.classList;return!(null==n?void 0:n.contains(Yr))&&!(null==n?void 0:n.contains(Xr))}))&&l()}return ge((()=>{n(6,u=!0)})),me((()=>{n(6,u=!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)},t.$$.update=()=>{1&t.$$.dirty&&n(9,r=(null==s?void 0:s.parentElement)||null),960&t.$$.dirty&&(u&&r||d||h)&&(d&&(d.disconnect(),n(7,d=null)),h&&(h.disconnect(),n(8,h=null)),u&&r&&("undefined"!=typeof MutationObserver&&(n(7,d=new MutationObserver(p)),d.observe(r,{childList:!0,attributes:!0,characterData:!0,subtree:!0})),"undefined"!=typeof ResizeObserver&&(n(8,h=new ResizeObserver(l)),h.observe(r)))),576&t.$$.dirty&&u&&r&&l()},[s,c,l,o,i,a,u,d,h,r,function(t){be[t?"unshift":"push"]((()=>{s=t,n(0,s)}))}]}const oo=class extends Ze{constructor(t){super(),Ye(this,t,ro,to,xt,{orientation:3,separator:4,lineSeparator:5})}};let io;function ao(){if(void 0!==io)return io;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),io=1===t.scrollHeight,document.body.removeChild(t),io}const{Boolean:lo}=We;function so(t,e,n){const r=t.slice();return r[43]=e[n],r}function co(t){let e,n;return e=new br({props:{cls:zn("container",qr,t[10]),style:t[9],json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],additionalPaddings:t[13],$$slots:{default:[po]},$$scope:{ctx:t}}}),{c(){He(e.$$.fragment)},l(t){Ge(e.$$.fragment,t)},m(t,r){Ke(e,t,r),n=!0},p(t,n){const r={};1024&n[0]&&(r.cls=zn("container",qr,t[10])),512&n[0]&&(r.style=t[9]),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),8192&n[0]&&(r.additionalPaddings=t[13]),1049056&n[0]|32768&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Je(e.$$.fragment,t),n=!0)},o(t){Oe(e.$$.fragment,t),n=!1},d(t){Xe(e,t)}}}function uo(t){let e,n;return e=new Pa({props:{layoutParams:t[8],div:t[43].json,templateContext:t[43].templateContext,origJson:t[43].origJson}}),{c(){He(e.$$.fragment)},l(t){Ge(e.$$.fragment,t)},m(t,r){Ke(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.layoutParams=t[8]),1048576&n[0]&&(r.div=t[43].json),1048576&n[0]&&(r.templateContext=t[43].templateContext),1048576&n[0]&&(r.origJson=t[43].origJson),e.$set(r)},i(t){n||(Je(e.$$.fragment,t),n=!0)},o(t){Oe(e.$$.fragment,t),n=!1},d(t){Xe(e,t)}}}function ho(t){let e,n;return e=new oo({props:{separator:t[6],lineSeparator:t[7],orientation:t[5]}}),{c(){He(e.$$.fragment)},l(t){Ge(e.$$.fragment,t)},m(t,r){Ke(e,t,r),n=!0},p(t,n){const r={};64&n[0]&&(r.separator=t[6]),128&n[0]&&(r.lineSeparator=t[7]),32&n[0]&&(r.orientation=t[5]),e.$set(r)},i(t){n||(Je(e.$$.fragment,t),n=!0)},o(t){Oe(e.$$.fragment,t),n=!1},d(t){Xe(e,t)}}}function po(t){let e,n,r,o=t[20],i=[];for(let e=0;e<o.length;e+=1)i[e]=uo(so(t,o,e));const a=t=>Oe(i[t],1,1,(()=>{i[t]=null}));let l=(t[6]||t[7])&&ho(t);return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=Kt(),l&&l.c(),n=Xt()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);e=ae(t),l&&l.l(t),n=Xt()},m(t,o){for(let e=0;e<i.length;e+=1)i[e].m(t,o);Wt(t,e,o),l&&l.m(t,o),Wt(t,n,o),r=!0},p(t,r){if(1048832&r[0]){let n;for(o=t[20],n=0;n<o.length;n+=1){const a=so(t,o,n);i[n]?(i[n].p(a,r),Je(i[n],1)):(i[n]=uo(a),i[n].c(),Je(i[n],1),i[n].m(e.parentNode,e))}for(Me(),n=o.length;n<i.length;n+=1)a(n);Te()}t[6]||t[7]?l?(l.p(t,r),192&r[0]&&Je(l,1)):(l=ho(t),l.c(),Je(l,1),l.m(n.parentNode,n)):l&&(Me(),Oe(l,1,1,(()=>{l=null})),Te())},i(t){if(!r){for(let t=0;t<o.length;t+=1)Je(i[t]);Je(l),r=!0}},o(t){i=i.filter(lo);for(let t=0;t<i.length;t+=1)Oe(i[t]);Oe(l),r=!1},d(t){Ut(i,t),t&&Lt(e),l&&l.d(t),t&&Lt(n)}}}function fo(t){let e,n,r=!t[4]&&co(t);return{c(){r&&r.c(),e=Xt()},l(t){r&&r.l(t),e=Xt()},m(t,o){r&&r.m(t,o),Wt(t,e,o),n=!0},p(t,n){t[4]?r&&(Me(),Oe(r,1,1,(()=>{r=null})),Te()):r?(r.p(t,n),16&n[0]&&Je(r,1)):(r=co(t),r.c(),Je(r,1),r.m(e.parentNode,e))},i(t){n||(Je(r),n=!0)},o(t){Oe(r),n=!1},d(t){r&&r.d(t),t&&Lt(e)}}}function go(t,e,n){let r,o,i,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x,k,E=ft,C=ft,A=ft,V=ft,j=ft,P=ft,D=ft,S=ft;var I,z,F,N,M,T;t.$$.on_destroy.push((()=>E())),t.$$.on_destroy.push((()=>C())),t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>S()));let{json:J={}}=e,{templateContext:O}=e,{origJson:B}=e,{layoutParams:R}=e;const W={left:"start",center:"center",right:"end"},L={top:"start",center:"center",bottom:"end",baseline:"baseline"},U=["rounded_rectangle","circle"],q=ye(vn);let H=!1,G="vertical",K="top",X="left",Y=null,Z=null,Q={};return t.$$set=t=>{"json"in t&&n(0,J=t.json),"templateContext"in t&&n(1,O=t.templateContext),"origJson"in t&&n(2,B=t.origJson),"layoutParams"in t&&n(3,R=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&n(30,r=J.items),1073741824&t.$$.dirty[0]&&((null==r?void 0:r.length)&&Array.isArray(r)?n(4,H=!1):(n(4,H=!0),q.logError(yn(new Error('Incorrect or empty "items" prop for div "container"'))))),1073741842&t.$$.dirty[0]&&n(20,o=(!H&&r||[]).map((t=>{let e=t,n=O;return({templateContext:n,json:e}=q.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),1&t.$$.dirty[0]&&(n(19,i=q.getDerivedFromVars(J.orientation)),S(),S=Et(i,(t=>n(38,k=t)))),32&t.$$.dirty[0]|128&t.$$.dirty[1]&&n(5,G=function(t,e){return"vertical"===t||"horizontal"===t||"overlap"===t?t:e}(k,G)),1&t.$$.dirty[0]&&(n(18,a=q.getDerivedFromVars(J.content_alignment_vertical)),D(),D=Et(a,(t=>n(37,x=t)))),134217728&t.$$.dirty[0]|64&t.$$.dirty[1]&&n(27,K=Sr(x,K)),1&t.$$.dirty[0]&&(n(17,l=q.getDerivedFromVars(J.content_alignment_horizontal)),P(),P=Et(l,(t=>n(36,w=t)))),268435456&t.$$.dirty[0]|32&t.$$.dirty[1]&&n(28,X=Dr(w,X)),1&t.$$.dirty[0]&&(n(16,s=q.getDerivedFromVars(J.layout_mode)),j(),j=Et(s,(t=>n(35,b=t)))),16&t.$$.dirty[1]&&n(29,c="wrap"===b),1&t.$$.dirty[0]&&(n(15,u=q.getDerivedFromVars(J.separator)),V(),V=Et(u,(t=>n(34,_=t)))),14680160&t.$$.dirty[0]|8&t.$$.dirty[1])if((null==_?void 0:_.style)&&"overlap"!==G&&ao()){const t=Hr(_.style,U,(null==Y?void 0:Y.style)||null);n(6,Y=t?{show_at_start:Boolean(null!==n(21,I=_.show_at_start)&&void 0!==I&&I),show_at_end:Boolean(null!==n(22,z=_.show_at_end)&&void 0!==z&&z),show_between:Boolean(null===n(23,F=_.show_between)||void 0===F||F),style:t}:null)}else n(6,Y=null);if(1&t.$$.dirty[0]&&(n(14,d=q.getDerivedFromVars(J.line_separator)),A(),A=Et(d,(t=>n(33,$=t)))),117440672&t.$$.dirty[0]|4&t.$$.dirty[1])if((null==$?void 0:$.style)&&"overlap"!==G&&ao()){const t=Hr($.style,U,(null==Z?void 0:Z.style)||null);n(7,Z=t?{show_at_start:Boolean(null!==n(24,N=$.show_at_start)&&void 0!==N&&N),show_at_end:Boolean(null!==n(25,M=$.show_at_end)&&void 0!==M&&M),show_between:Boolean(null===n(26,T=$.show_between)||void 0===T||T),style:t}:null)}else n(7,Z=null);if(224&t.$$.dirty[0]&&n(13,h=Y||Z?function(t,e,n){const r={};return Gr(r,e,"vertical"===t),Gr(r,n,"horizontal"===t),r}(G,Y,Z):null),1&t.$$.dirty[0]&&(n(12,p=q.getDerivedFromVars(J.width)),E(),E=Et(p,(t=>n(31,v=t)))),1&t.$$.dirty[0]&&(n(11,f=q.getDerivedFromVars(J.height)),C(),C=Et(f,(t=>n(32,y=t)))),939524392&t.$$.dirty[0]|3&t.$$.dirty[1]){let t={};(null==R?void 0:R.fakeElement)&&(t.fakeElement=!0),"overlap"===G&&(t.overlapParent=!0),"horizontal"!==G&&(t.parentHAlign=W[X],(!y||"wrap_content"===y.type||"match_parent"===y.type&&(null==R?void 0:R.parentVerticalWrapContent))&&(t.parentVerticalWrapContent=!0)),"vertical"!==G&&(t.parentVAlign=L[K],("wrap_content"===(null==v?void 0:v.type)||"match_parent"===(null==v?void 0:v.type)&&(null==R?void 0:R.parentHorizontalWrapContent))&&(t.parentHorizontalWrapContent=!0)),"horizontal"===G&&(t.parentContainerOrientation="horizontal"),"vertical"===G&&(t.parentContainerOrientation="vertical"),c&&(t.parentContainerWrap=!0),n(8,Q=Ln(t,Q))}939524128&t.$$.dirty[0]&&n(10,g={orientation:G,valign:K,halign:X,wrap:c}),224&t.$$.dirty[0]&&n(9,m={gap:Y||Z?Kr(G,Y,Z):void 0})},[J,O,B,R,H,G,Y,Z,Q,m,g,f,p,h,d,u,s,l,a,i,o,I,z,F,N,M,T,K,X,c,r,v,y,$,_,b,w,x,k]}const mo={separator:"divkit-a30bb",separator_orientation_horizontal:"divkit-f529e",separator_orientation_vertical:"divkit-e9e27",separator__inner:"divkit-db7d8"};function vo(t,e){return"vertical"===t||"horizontal"===t?t:e}function yo(t){let e,n,r;return{c(){e=qt("span"),this.h()},l(t){e=re(t,"SPAN",{class:!0,style:!0}),te(e).forEach(Lt),this.h()},h(){Zt(e,"class",n=mo.separator__inner),Zt(e,"style",r=bn(t[5]))},m(t,n){Wt(t,e,n)},p(t,n){32&n&&r!==(r=bn(t[5]))&&Zt(e,"style",r)},d(t){t&&Lt(e)}}}function $o(t){let e,n=t[6]&&yo(t);return{c(){n&&n.c(),e=Xt()},l(t){n&&n.l(t),e=Xt()},m(t,r){n&&n.m(t,r),Wt(t,e,r)},p(t,r){t[6]?n?n.p(t,r):(n=yo(t),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(t){n&&n.d(t),t&&Lt(e)}}}function _o(t){let e,n;return e=new br({props:{cls:zn("separator",mo,t[4]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[$o]},$$scope:{ctx:t}}}),{c(){He(e.$$.fragment)},l(t){Ge(e.$$.fragment,t)},m(t,r){Ke(e,t,r),n=!0},p(t,n){let[r]=n;const o={};16&r&&(o.cls=zn("separator",mo,t[4])),1&r&&(o.json=t[0]),4&r&&(o.origJson=t[2]),2&r&&(o.templateContext=t[1]),8&r&&(o.layoutParams=t[3]),16480&r&&(o.$$scope={dirty:r,ctx:t}),e.$set(o)},i(t){n||(Je(e.$$.fragment,t),n=!0)},o(t){Oe(e.$$.fragment,t),n=!1},d(t){Xe(e,t)}}}function bo(t,e,n){let r,o,i,a,l,s,c,u=ft;t.$$.on_destroy.push((()=>u()));let{json:d={}}=e,{templateContext:h}=e,{origJson:p}=e,{layoutParams:f}=e;const g=ye(vn);let m="horizontal",v="rgba(0,0,0,0.08)";return t.$$set=t=>{"json"in t&&n(0,d=t.json),"templateContext"in t&&n(1,h=t.templateContext),"origJson"in t&&n(2,p=t.origJson),"layoutParams"in t&&n(3,f=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty&&(n(7,r=g.getDerivedFromVars(d.delimiter_style)),u(),u=Et(r,(t=>n(12,c=t)))),4352&t.$$.dirty&&n(8,m=vo(null==c?void 0:c.orientation,m)),4096&t.$$.dirty&&n(6,o=!((null==c?void 0:c.color)&&("transparent"===c.color||9===c.color.length&&0===c.color.indexOf("#00")))),4608&t.$$.dirty&&n(9,v=C(null==c?void 0:c.color,1,v)),256&t.$$.dirty&&n(11,i="horizontal"===m?"100%":wn(1)),256&t.$$.dirty&&n(10,a="horizontal"===m?wn(1):"100%"),3584&t.$$.dirty&&n(5,l={background:v,width:i,height:a}),256&t.$$.dirty&&n(4,s={orientation:m})},[d,h,p,f,s,l,o,r,m,v,a,i,c]}const wo={image:"divkit-a448f","image_is-width-content":"divkit-fe14a","image_is-height-content":"divkit-f4d92",image__image:"divkit-ce046",image_error:"divkit-f10d9","image__aspect-wrapper":"divkit-dc808",image_aspect:"divkit-ae784",image_loaded:"divkit-cf4e0","divkit-image-appearance":"divkit-e555f","image_before-appearance":"divkit-ffe8a"};function xo(t){let e,n;return e=new br({props:{cls:zn("image",wo,t[10]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],style:t[9],customDescription:!0,$$slots:{default:[Co]},$$scope:{ctx:t}}}),{c(){He(e.$$.fragment)},l(t){Ge(e.$$.fragment,t)},m(t,r){Ke(e,t,r),n=!0},p(t,n){const r={};1024&n[0]&&(r.cls=zn("image",wo,t[10])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),512&n[0]&&(r.style=t[9]),66928&n[0]|1073741824&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Je(e.$$.fragment,t),n=!0)},o(t){Oe(e.$$.fragment,t),n=!1},d(t){Xe(e,t)}}}function ko(t){let e,n,r,o,i,a,l;return{c(){e=qt("img"),this.h()},l(t){e=re(t,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,style:!0,alt:!0,"aria-hidden":!0}),this.h()},h(){Zt(e,"class",n=wo.image__image),wt(e.src,r=t[4]===jo?Vo:t[6])||Zt(e,"src",r),Zt(e,"loading","lazy"),Zt(e,"decoding","async"),Zt(e,"style",o=bn(t[8])),Zt(e,"alt",t[16]),Zt(e,"aria-hidden",i=t[16]?null:"true")},m(n,r){Wt(n,e,r),a||(l=[Yt(e,"load",t[26]),Yt(e,"error",t[27])],a=!0)},p(t,n){80&n[0]&&!wt(e.src,r=t[4]===jo?Vo:t[6])&&Zt(e,"src",r),256&n[0]&&o!==(o=bn(t[8]))&&Zt(e,"style",o),65536&n[0]&&Zt(e,"alt",t[16]),65536&n[0]&&i!==(i=t[16]?null:"true")&&Zt(e,"aria-hidden",i)},d(t){t&&Lt(e),a=!1,$t(l)}}}function Eo(t){let e,n,r,o,i,a,l,s,c,u="".concat(t[5],"%");return{c(){e=qt("span"),n=qt("img"),this.h()},l(t){e=re(t,"SPAN",{class:!0});var r=te(e);n=re(r,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,style:!0,alt:!0,"aria-hidden":!0}),r.forEach(Lt),this.h()},h(){Zt(n,"class",r=wo.image__image),wt(n.src,o=t[4]===jo?Vo:t[6])||Zt(n,"src",o),Zt(n,"loading","lazy"),Zt(n,"decoding","async"),Zt(n,"style",i=bn(t[8])),Zt(n,"alt",t[16]),Zt(n,"aria-hidden",a=t[16]?null:"true"),Zt(e,"class",l=wo["image__aspect-wrapper"]),se(e,"padding-bottom",u,!1)},m(r,o){Wt(r,e,o),Rt(e,n),s||(c=[Yt(n,"load",t[26]),Yt(n,"error",t[27])],s=!0)},p(t,r){80&r[0]&&!wt(n.src,o=t[4]===jo?Vo:t[6])&&Zt(n,"src",o),256&r[0]&&i!==(i=bn(t[8]))&&Zt(n,"style",i),65536&r[0]&&Zt(n,"alt",t[16]),65536&r[0]&&a!==(a=t[16]?null:"true")&&Zt(n,"aria-hidden",a),32&r[0]&&u!==(u="".concat(t[5],"%"))&&se(e,"padding-bottom",u,!1)},d(t){t&&Lt(e),s=!1,$t(c)}}}function Co(t){let e;function n(t,e){return t[10].aspect?Eo:ko}let r=n(t),o=r(t);return{c(){o.c(),e=Xt()},l(t){o.l(t),e=Xt()},m(t,n){o.m(t,n),Wt(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){o.d(t),t&&Lt(e)}}}function Ao(t){let e,n,r=!t[7]&&xo(t);return{c(){r&&r.c(),e=Xt()},l(t){r&&r.l(t),e=Xt()},m(t,o){r&&r.m(t,o),Wt(t,e,o),n=!0},p(t,n){t[7]?r&&(Me(),Oe(r,1,1,(()=>{r=null})),Te()):r?(r.p(t,n),128&n[0]&&Je(r,1)):(r=xo(t),r.c(),Je(r,1),r.m(e.parentNode,e))},i(t){n||(Je(r),n=!0)},o(t){Oe(r),n=!1},d(t){r&&r.d(t),t&&Lt(e)}}}const Vo="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",jo=2;function Po(t,e,n){let r,o,i,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x,k,E,A,V,j,P,D,S,I,z,F,N,M,T,J=ft,O=ft,B=ft,R=ft,W=ft,L=ft,U=ft,q=ft,H=ft,G=ft,K=ft,X=ft,Y=ft,Z=ft;t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>H())),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()));let{json:Q={}}=e,{templateContext:tt}=e,{origJson:et}=e,{layoutParams:nt}=e;const rt=ye(vn);let ot=0,it="rgba(0,0,0,0.08)",at=!1,lt="",st="none",ct="50% 50%";let ut,dt="0",ht="source_in",pt="",gt="",mt=0,vt=0,yt=0,$t="",_t="";return me((()=>{rt.removeSvgFilter(ut,ht)})),t.$$set=t=>{"json"in t&&n(0,Q=t.json),"templateContext"in t&&n(1,tt=t.templateContext),"origJson"in t&&n(2,et=t.origJson),"layoutParams"in t&&n(3,nt=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&(n(25,r=rt.getDerivedFromVars(Q.image_url)),Z(),Z=Et(r,(t=>n(56,T=t)))),1&t.$$.dirty[0]&&(n(24,o=rt.getDerivedFromVars(Q.gif_url)),Y(),Y=Et(o,(t=>n(55,M=t)))),50331648&t.$$.dirty[1]&&n(6,i=T||M),64&t.$$.dirty[0]&&n(4,ot=0),64&t.$$.dirty[0]&&(i?n(7,at=!1):(n(7,at=!0),rt.logError(yn(new Error('Missing "image_url" for "image"'))))),1&t.$$.dirty[0]&&(n(23,a=rt.getDerivedFromVars(Q.width)),X(),X=Et(a,(t=>n(54,N=t)))),8388608&t.$$.dirty[1]&&n(42,l="wrap_content"===(null==N?void 0:N.type)),1&t.$$.dirty[0]&&(n(22,s=rt.getDerivedFromVars(Q.height)),K(),K=Et(s,(t=>n(53,F=t)))),4194304&t.$$.dirty[1]&&n(41,c="wrap_content"===(null==F?void 0:F.type)),1&t.$$.dirty[0]&&(n(21,u=rt.getDerivedFromVars(Q.preview)),G(),G=Et(u,(t=>n(52,z=t)))),16&t.$$.dirty[0]|2097152&t.$$.dirty[1]){const t=z;0!==ot&&ot!==jo||!t?n(29,lt=""):t.startsWith("data:")?n(29,lt='url("'.concat(kn(t),'")')):n(29,lt='url("data:image/jpg;base64,'.concat(kn(t),'")'))}if(1&t.$$.dirty[0]&&(n(20,d=rt.getDerivedFromVars(Q.placeholder_color)),H(),H=Et(d,(t=>n(51,I=t)))),16&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&function(t,e){n(28,it=0===t||t===jo?C(e,1,it):"")}(ot,I),1&t.$$.dirty[0]&&(n(19,h=rt.getDerivedFromVars(Q.scale)),q(),q=Et(h,(t=>n(50,S=t)))),1073741824&t.$$.dirty[0]|524288&t.$$.dirty[1]&&n(30,st=jn(S)||st),1&t.$$.dirty[0]&&(n(18,p=rt.getDerivedFromVars({content_alignment_horizontal:Q.content_alignment_horizontal,content_alignment_vertical:Q.content_alignment_vertical})),U(),U=Et(p,(t=>n(49,D=t)))),262144&t.$$.dirty[1]&&n(31,ct=function(t,e){const n=t.content_alignment_horizontal,r=t.content_alignment_vertical;return n&&"left"!==n&&"center"!==n&&"right"!==n||r&&"top"!==r&&"center"!==r&&"bottom"!==r?e:Pn(t)}(D,ct)),1&t.$$.dirty[0]&&(n(17,f=rt.getDerivedFromVars(Q.accessibility)),L(),L=Et(f,(t=>n(48,P=t)))),131072&t.$$.dirty[1]&&n(16,g=(null==P?void 0:P.description)||""),1&t.$$.dirty[0]&&(n(15,m=rt.getDerivedFromVars(Q.aspect)),W(),W=Et(m,(t=>n(47,j=t)))),65536&t.$$.dirty[1]){const t=null==j?void 0:j.ratio;t&&ir(t)?n(5,dt=(100/Number(t)).toFixed(2)):n(5,dt="0")}if(1&t.$$.dirty[0]&&(n(14,v=rt.getDerivedFromVars(Q.tint_color)),R(),R=Et(v,(t=>n(46,V=t)))),1&t.$$.dirty[0]&&(n(13,y=rt.getDerivedFromVars(Q.tint_mode)),B(),B=Et(y,(t=>n(45,A=t)))),49158&t.$$.dirty[1]){const t=V,e=t?C(t):void 0,r=Ir(A,ht);e===ut&&r===ht||(rt.removeSvgFilter(ut,ht),n(34,pt=e?rt.addSvgFilter(e,r):""),n(32,ut=e),n(33,ht=r))}if(1&t.$$.dirty[0]&&(n(12,$=rt.getDerivedFromVars(Q.appearance_animation)),O(),O=Et($,(t=>n(44,E=t)))),8192&t.$$.dirty[1]&&E&&"fade"===E.type){const t=E;n(35,gt=Un(t.interpolator,"ease_in_out").replace(/_/g,"-")),n(38,yt=Bn(t.duration,300)),n(37,vt=Bn(t.start_delay,0)),n(36,mt=Bn(t.alpha,0))}if(1&t.$$.dirty[0]&&(n(11,_=rt.getDerivedFromVars(Q.filters)),J(),J=Et(_,(t=>n(43,k=t)))),4096&t.$$.dirty[1]){let t="",e="";Array.isArray(k)&&k.length&&(t=ar(k,rt.logError)),t&&(e="polygon(0% 0%, 0% 100%, 100% 100%, 100% 0%)"),n(39,$t=t),n(40,_t=e)}48&t.$$.dirty[0]|3088&t.$$.dirty[1]&&n(10,b={aspect:"0"!==dt,"is-width-content":l,"is-height-content":c,loaded:1===ot,"before-appearance":Boolean(gt)&&0===ot}),1879048192&t.$$.dirty[0]&&n(9,w={"background-image":lt,"background-color":lt?void 0:it,"background-size":st}),1073741840&t.$$.dirty[0]|1017&t.$$.dirty[1]&&n(8,x={"object-fit":st,"object-position":ct,filter:[1===ot&&pt?"url(#".concat(pt,")"):"",$t].filter(Boolean).join(" "),"clip-path":_t||void 0,"--divkit-appearance-interpolator":gt||void 0,"--divkit-appearance-fade-start":gt?mt:void 0,"--divkit-appearance-delay":gt?"".concat(vt,"ms"):void 0,"--divkit-appearance-duration":gt?"".concat(yt,"ms"):void 0})},[Q,tt,et,nt,ot,dt,i,at,x,w,b,_,$,y,v,m,g,f,p,h,d,u,s,a,o,r,function(){0===ot&&n(4,ot=1)},function(){0===ot&&n(4,ot=jo)},it,lt,st,ct,ut,ht,pt,gt,mt,vt,yt,$t,_t,c,l,k,E,A,V,j,P,D,S,I,z,F,N,M,T]}const Do=class extends Ze{constructor(t){super(),Ye(this,t,Po,Ao,xt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},So={grid:"divkit-d9080",grid_halign_left:"divkit-f63b3",grid_halign_center:"divkit-a14a6",grid_halign_right:"divkit-b0717",grid_valign_top:"divkit-fbca8",grid_valign_center:"divkit-d4310",grid_valign_bottom:"divkit-e4205"};function Io(t){return t>0&&t<1}function zo(t){return String(Math.ceil(1e3*t)/1e3)}function Fo(t,e,n){if(t.some(Io)){const e=Math.max(...t.filter(Io).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(wn(r*t[e]/o),",").concat(zo(t[e]),"fr)"):t[e]?i[e]="".concat(zo(t[e]),"fr"):i[e]="auto";return i.join(" ")}function No(t,e,n){const r=t.slice();return r[29]=e[n],r}function Mo(t){let e,n;return e=new br({props:{cls:zn("grid",So,t[8]),json:t[0],origJson:t[2],templateContext:t[1],style:t[7],layoutParams:t[3],$$slots:{default:[Jo]},$$scope:{ctx:t}}}),{c(){He(e.$$.fragment)},l(t){Ge(e.$$.fragment,t)},m(t,r){Ke(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.cls=zn("grid",So,t[8])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),128&n[0]&&(r.style=t[7]),8&n[0]&&(r.layoutParams=t[3]),32&n[0]|2&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Je(e.$$.fragment,t),n=!0)},o(t){Oe(e.$$.fragment,t),n=!1},d(t){Xe(e,t)}}}function To(t){let e,n;return e=new Pa({props:{layoutParams:t[29].layoutParams,div:t[29].json,templateContext:t[29].templateContext,origJson:t[29].origJson}}),{c(){He(e.$$.fragment)},l(t){Ge(e.$$.fragment,t)},m(t,r){Ke(e,t,r),n=!0},p(t,n){const r={};32&n[0]&&(r.layoutParams=t[29].layoutParams),32&n[0]&&(r.div=t[29].json),32&n[0]&&(r.templateContext=t[29].templateContext),32&n[0]&&(r.origJson=t[29].origJson),e.$set(r)},i(t){n||(Je(e.$$.fragment,t),n=!0)},o(t){Oe(e.$$.fragment,t),n=!1},d(t){Xe(e,t)}}}function Jo(t){let e,n,r=t[5],o=[];for(let e=0;e<r.length;e+=1)o[e]=To(No(t,r,e));const i=t=>Oe(o[t],1,1,(()=>{o[t]=null}));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=Xt()},l(t){for(let e=0;e<o.length;e+=1)o[e].l(t);e=Xt()},m(t,r){for(let e=0;e<o.length;e+=1)o[e].m(t,r);Wt(t,e,r),n=!0},p(t,n){if(32&n[0]){let a;for(r=t[5],a=0;a<r.length;a+=1){const i=No(t,r,a);o[a]?(o[a].p(i,n),Je(o[a],1)):(o[a]=To(i),o[a].c(),Je(o[a],1),o[a].m(e.parentNode,e))}for(Me(),a=r.length;a<o.length;a+=1)i(a);Te()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Je(o[t]);n=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)Oe(o[t]);n=!1},d(t){Ut(o,t),t&&Lt(e)}}}function Oo(t){let e,n,r=!t[6]&&Mo(t);return{c(){r&&r.c(),e=Xt()},l(t){r&&r.l(t),e=Xt()},m(t,o){r&&r.m(t,o),Wt(t,e,o),n=!0},p(t,n){t[6]?r&&(Me(),Oe(r,1,1,(()=>{r=null})),Te()):r?(r.p(t,n),64&n[0]&&Je(r,1)):(r=Mo(t),r.c(),Je(r,1),r.m(e.parentNode,e))},i(t){n||(Je(r),n=!0)},o(t){Oe(r),n=!1},d(t){r&&r.d(t),t&&Lt(e)}}}function Bo(t,e,n){let r,o,i,a,l,s,c,u,d,h,p,f,g=ft,m=ft,v=ft,y=ft;t.$$.on_destroy.push((()=>g())),t.$$.on_destroy.push((()=>m())),t.$$.on_destroy.push((()=>v())),t.$$.on_destroy.push((()=>y()));let{json:$={}}=e,{templateContext:_}=e,{origJson:b}=e,{layoutParams:w}=e;const x=ye(vn);let k,E,C=!1,A=1,V=[],j=[],P=[],D=[],S=0,I=!1,z="top",F="left";return t.$$set=t=>{"json"in t&&n(0,$=t.json),"templateContext"in t&&n(1,_=t.templateContext),"origJson"in t&&n(2,b=t.origJson),"layoutParams"in t&&n(3,w=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&n(23,r=$.items),8388608&t.$$.dirty[0]&&((null==r?void 0:r.length)&&Array.isArray(r)?n(12,C=!1):(n(12,C=!0),x.logError(yn(new Error('Incorrect or empty "items" prop for div "grid"'))))),1&t.$$.dirty[0]&&(n(11,o=x.getDerivedFromVars($.column_count)),y(),y=Et(o,(t=>n(27,f=t)))),134225920&t.$$.dirty[0]&&n(13,A=xr(f,A)),8392706&t.$$.dirty[0]&&n(22,i=(!C&&r||[]).map((t=>{let e=t,n=_;return({templateContext:n,json:e}=x.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),4194304&t.$$.dirty[0]){let t=[];i.forEach((e=>{t.push(x.getDerivedFromVars({rowSpan:e.json.row_span,columnSpan:e.json.column_span,width:e.json.width,height:e.json.height}))})),n(4,k=en(t,(t=>[...t]))),v(),v=Et(k,(t=>n(26,p=t)))}if(72081416&t.$$.dirty[0]){const t={};let e=0,r=0;n(14,V=[]),n(15,j=[]),n(16,P=[]),n(17,D=[]),n(19,I=!1),n(5,E=i.map(((o,i)=>{var a,l,s,c;const u=p[i],d=Number(u.columnSpan)||1,h=Number(u.rowSpan)||1,f={x:e,y:r,colSpan:d,rowSpan:h},g="match_parent"===(null===(a=u.width)||void 0===a?void 0:a.type)?Number(u.width.weight||1)/d:0,m="match_parent"===(null===(l=u.height)||void 0===l?void 0:l.type)?Number(u.height.weight||1)/h:0,v=1===d&&"fixed"===(null===(s=u.width)||void 0===s?void 0:s.type)&&u.width.value?Number(u.width.value)/d:0,y=1===h&&"fixed"===(null===(c=u.height)||void 0===c?void 0:c.type)&&u.height.value?Number(u.height.value)/h:0;for(let o=e;o<e+d;++o)for(let e=r;e<r+h;++e)t[o+"_"+e]?n(19,I=!0):(t[o+"_"+e]=!0,(!V[o]||V[o]<g)&&n(14,V[o]=g,V),(!j[e]||j[e]<m)&&n(15,j[e]=m,j),(!P[o]||P[o]<v)&&n(16,P[o]=v,P),(!D[e]||D[e]<y)&&n(17,D[e]=y,D));do{++e,e>=A&&(e=0,++r)}while(t[e+"_"+r]);return Object.assign(Object.assign({},o),{layoutParams:{gridArea:f,fakeElement:(null==w?void 0:w.fakeElement)||!1}})}))),0!==e&&n(19,I=!0),I&&x.logError(yn(new Error('Mismatching "grid" rows/columns'))),n(18,S=r)}1&t.$$.dirty[0]&&(n(10,a=x.getDerivedFromVars($.content_alignment_vertical)),m(),m=Et(a,(t=>n(25,h=t)))),34603008&t.$$.dirty[0]&&n(20,z=Sr(h,z)),1&t.$$.dirty[0]&&(n(9,l=x.getDerivedFromVars($.content_alignment_horizontal)),g(),g=Et(l,(t=>n(24,d=t)))),18874368&t.$$.dirty[0]&&n(21,F=Dr(d,F)),3145728&t.$$.dirty[0]&&n(8,s={valign:z,halign:F}),516096&t.$$.dirty[0]&&n(7,c={"grid-template-columns":Fo(V,P,A),"grid-template-rows":Fo(j,D,S)}),528384&t.$$.dirty[0]&&n(6,u=C||I)},[$,_,b,w,k,E,u,c,s,l,a,o,C,A,V,j,P,D,S,I,z,F,i,r,d,h,p,f]}const Ro={gallery:"divkit-cbb0f",gallery_orientation_horizontal:"divkit-c9be7",gallery_orientation_vertical:"divkit-a72d5",gallery__scroller:"divkit-a4e39","gallery_scroll-snap":"divkit-f606e","gallery__items-grid":"divkit-eb4a5",gallery__items:"divkit-af276",gallery__arrow:"divkit-b72d7","gallery__arrow-icon":"divkit-d100d",gallery__arrow_left:"divkit-a0a5d",gallery__arrow_right:"divkit-f0f59","gallery__arrow-icon-path":"divkit-b4173"};function Wo(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 Lo(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)}}const{Boolean:Uo}=We;function qo(t,e,n){const r=t.slice();return r[72]=e[n],r[73]=e,r[74]=n,r}function Ho(t,e,n){const r=t.slice();return r[75]=e[n],r}function Go(t){let e,n;return e=new br({props:{cls:zn("gallery",Ro,t[16]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customPaddings:!0,customActions:"gallery",$$slots:{default:[ti]},$$scope:{ctx:t}}}),{c(){He(e.$$.fragment)},l(t){Ge(e.$$.fragment,t)},m(t,r){Ke(e,t,r),n=!0},p(t,n){const r={};65536&n[0]&&(r.cls=zn("gallery",Ro,t[16])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),335953872&n[0]|65536&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Je(e.$$.fragment,t),n=!0)},o(t){Oe(e.$$.fragment,t),n=!1},d(t){Xe(e,t)}}}function Ko(t){let e,n;return e=new Pa({props:{layoutParams:t[8],div:t[75].json,templateContext:t[75].templateContext,origJson:t[75].origJson}}),{c(){He(e.$$.fragment)},l(t){Ge(e.$$.fragment,t)},m(t,r){Ke(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.layoutParams=t[8]),67108864&n[0]&&(r.div=t[75].json),67108864&n[0]&&(r.templateContext=t[75].templateContext),67108864&n[0]&&(r.origJson=t[75].origJson),e.$set(r)},i(t){n||(Je(e.$$.fragment,t),n=!0)},o(t){Oe(e.$$.fragment,t),n=!1},d(t){Xe(e,t)}}}function Xo(t){let e,n,r,o,i,a=t[74],l=t[72],s=[];for(let e=0;e<l.length;e+=1)s[e]=Ko(Ho(t,l,e));const c=t=>Oe(s[t],1,1,(()=>{s[t]=null})),u=()=>t[60](e,a),d=()=>t[60](null,a);return{c(){e=qt("div");for(let t=0;t<s.length;t+=1)s[t].c();n=Kt(),this.h()},l(t){e=re(t,"DIV",{class:!0,style:!0});var r=te(e);for(let t=0;t<s.length;t+=1)s[t].l(r);n=ae(r),r.forEach(Lt),this.h()},h(){Zt(e,"class",r=Ro.gallery__items),Zt(e,"style",o=bn(t[17]))},m(t,r){Wt(t,e,r);for(let t=0;t<s.length;t+=1)s[t].m(e,null);Rt(e,n),u(),i=!0},p(r,h){if(t=r,67109120&h[0]){let r;for(l=t[72],r=0;r<l.length;r+=1){const o=Ho(t,l,r);s[r]?(s[r].p(o,h),Je(s[r],1)):(s[r]=Ko(o),s[r].c(),Je(s[r],1),s[r].m(e,n))}for(Me(),r=l.length;r<s.length;r+=1)c(r);Te()}(!i||131072&h[0]&&o!==(o=bn(t[17])))&&Zt(e,"style",o),a!==t[74]&&(d(),a=t[74],u())},i(t){if(!i){for(let t=0;t<l.length;t+=1)Je(s[t]);i=!0}},o(t){s=s.filter(Uo);for(let t=0;t<s.length;t+=1)Oe(s[t]);i=!1},d(t){t&&Lt(e),Ut(s,t),d()}}}function Yo(t){let e,n,r=t[12]&&t[9]&&Zo(t),o=t[13]&&t[9]&&Qo(t);return{c(){r&&r.c(),e=Kt(),o&&o.c(),n=Xt()},l(t){r&&r.l(t),e=ae(t),o&&o.l(t),n=Xt()},m(t,i){r&&r.m(t,i),Wt(t,e,i),o&&o.m(t,i),Wt(t,n,i)},p(t,i){t[12]&&t[9]?r?r.p(t,i):(r=Zo(t),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),t[13]&&t[9]?o?o.p(t,i):(o=Qo(t),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},d(t){r&&r.d(t),t&&Lt(e),o&&o.d(t),t&&Lt(n)}}}function Zo(t){let e,n,r,o,i=!t[29]&&function(t){let e,n,r,o;return{c(){e=Ht("svg"),n=Ht("path"),this.h()},l(t){e=oe(t,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var r=te(e);n=oe(r,"path",{class:!0,d:!0}),te(n).forEach(Lt),r.forEach(Lt),this.h()},h(){Zt(n,"class",r=Ro["gallery__arrow-icon-path"]),Zt(n,"d","m10 16 8.3 8 1.03-1-4-6-.7-1 .7-1 4-6-1.03-1z"),Zt(e,"class",o=Ro["gallery__arrow-icon"]),Zt(e,"xmlns","http://www.w3.org/2000/svg"),Zt(e,"width","32"),Zt(e,"height","32"),Zt(e,"viewBox","0 0 32 32"),Zt(e,"fill","none")},m(t,r){Wt(t,e,r),Rt(e,n)},p:ft,d(t){t&&Lt(e)}}}();return{c(){e=qt("div"),i&&i.c(),this.h()},l(t){e=re(t,"DIV",{class:!0});var n=te(e);i&&i.l(n),n.forEach(Lt),this.h()},h(){Zt(e,"class",n=t[29]||"".concat(Ro.gallery__arrow," ").concat(Ro.gallery__arrow_left))},m(n,a){Wt(n,e,a),i&&i.m(e,null),r||(o=Yt(e,"click",t[63]),r=!0)},p(t,e){t[29]||i.p(t,e)},d(t){t&&Lt(e),i&&i.d(),r=!1,o()}}}function Qo(t){let e,n,r,o,i=!t[30]&&function(t){let e,n,r,o;return{c(){e=Ht("svg"),n=Ht("path"),this.h()},l(t){e=oe(t,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var r=te(e);n=oe(r,"path",{class:!0,d:!0}),te(n).forEach(Lt),r.forEach(Lt),this.h()},h(){Zt(n,"class",r=Ro["gallery__arrow-icon-path"]),Zt(n,"d","M22 16l-8.3 8-1.03-1 4-6 .7-1-.7-1-4-6 1.03-1 8.3 8z"),Zt(e,"class",o=Ro["gallery__arrow-icon"]),Zt(e,"xmlns","http://www.w3.org/2000/svg"),Zt(e,"width","32"),Zt(e,"height","32"),Zt(e,"viewBox","0 0 32 32"),Zt(e,"fill","none")},m(t,r){Wt(t,e,r),Rt(e,n)},p:ft,d(t){t&&Lt(e)}}}();return{c(){e=qt("div"),i&&i.c(),this.h()},l(t){e=re(t,"DIV",{class:!0});var n=te(e);i&&i.l(n),n.forEach(Lt),this.h()},h(){Zt(e,"class",n=t[30]||"".concat(Ro.gallery__arrow," ").concat(Ro.gallery__arrow_right))},m(n,a){Wt(n,e,a),i&&i.m(e,null),r||(o=Yt(e,"click",t[64]),r=!0)},p(t,e){t[30]||i.p(t,e)},d(t){t&&Lt(e),i&&i.d(),r=!1,o()}}}function ti(t){let e,n,r,o,i,a,l,s,c,u,d,h=t[26],p=[];for(let e=0;e<h.length;e+=1)p[e]=Xo(qo(t,h,e));const f=t=>Oe(p[t],1,1,(()=>{p[t]=null}));let g="horizontal"===t[6]&&Yo(t);return{c(){e=qt("div"),n=qt("div");for(let t=0;t<p.length;t+=1)p[t].c();l=Kt(),g&&g.c(),s=Xt(),this.h()},l(t){e=re(t,"DIV",{class:!0,style:!0});var r=te(e);n=re(r,"DIV",{class:!0,style:!0});var o=te(n);for(let t=0;t<p.length;t+=1)p[t].l(o);o.forEach(Lt),r.forEach(Lt),l=ae(t),g&&g.l(t),s=Xt(),this.h()},h(){Zt(n,"class",r=Ro["gallery__items-grid"]),Zt(n,"style",o=bn(t[18])),Zt(e,"class",i=Ro.gallery__scroller+" "+(t[28]?gn:"")),Zt(e,"style",a=bn(t[7]))},m(r,o){Wt(r,e,o),Rt(e,n);for(let t=0;t<p.length;t+=1)p[t].m(n,null);t[61](n),t[62](e),Wt(r,l,o),g&&g.m(r,o),Wt(r,s,o),c=!0,u||(d=Yt(e,"scroll",(function(){_t(t[9]?t[32]:null)&&(t[9]?t[32]:null).apply(this,arguments)})),u=!0)},p(r,l){if(t=r,67242240&l[0]){let e;for(h=t[26],e=0;e<h.length;e+=1){const r=qo(t,h,e);p[e]?(p[e].p(r,l),Je(p[e],1)):(p[e]=Xo(r),p[e].c(),Je(p[e],1),p[e].m(n,null))}for(Me(),e=h.length;e<p.length;e+=1)f(e);Te()}(!c||262144&l[0]&&o!==(o=bn(t[18])))&&Zt(n,"style",o),(!c||268435456&l[0]&&i!==(i=Ro.gallery__scroller+" "+(t[28]?gn:"")))&&Zt(e,"class",i),(!c||128&l[0]&&a!==(a=bn(t[7])))&&Zt(e,"style",a),"horizontal"===t[6]?g?g.p(t,l):(g=Yo(t),g.c(),g.m(s.parentNode,s)):g&&(g.d(1),g=null)},i(t){if(!c){for(let t=0;t<h.length;t+=1)Je(p[t]);c=!0}},o(t){p=p.filter(Uo);for(let t=0;t<p.length;t+=1)Oe(p[t]);c=!1},d(n){n&&Lt(e),Ut(p,n),t[61](null),t[62](null),n&&Lt(l),g&&g.d(n),n&&Lt(s),u=!1,d()}}}function ei(t){let e,n,r,o,i=!t[5]&&Go(t);return{c(){i&&i.c(),e=Xt()},l(t){i&&i.l(t),e=Xt()},m(a,l){i&&i.m(a,l),Wt(a,e,l),n=!0,r||(o=Yt(window,"resize",(function(){_t(t[9]?t[33]:null)&&(t[9]?t[33]:null).apply(this,arguments)})),r=!0)},p(n,r){(t=n)[5]?i&&(Me(),Oe(i,1,1,(()=>{i=null})),Te()):i?(i.p(t,r),32&r[0]&&Je(i,1)):(i=Go(t),i.c(),Je(i,1),i.m(e.parentNode,e))},i(t){n||(Je(i),n=!0)},o(t){Oe(i),n=!1},d(t){i&&i.d(t),t&&Lt(e),r=!1,o()}}}function ni(t,e,n){let r,o,i,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x,k,E,C,A,V,j,P,D=ft,S=ft,I=ft,z=ft,F=ft,N=ft,M=ft,T=ft,J=ft,O=ft;t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>S())),t.$$.on_destroy.push((()=>I())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>O()));let{json:B={}}=e,{templateContext:R}=e,{origJson:W}=e,{layoutParams:L}=e;const U=ye(vn);let q,H,G=[],K=!1,X=!1,Y=null,Z=!1;const Q=U.getCustomization("galleryLeftClass"),tt=U.getCustomization("galleryRightClass");let et=!1;const nt=U.isDesktop;Ct(t,nt,(t=>n(59,j=t)));let rt,ot,it,at,lt=1,st="horizontal",ct="start",ut=8,dt="",ht=[],pt={},gt=!1,mt={},vt=0;function yt(){const t=q.scrollLeft,e=q.scrollWidth,r=q.offsetWidth;n(12,K=t>2),n(13,X=t+r<e-2)}const $t=Lo(yt,50);function _t(t){q.scroll({left:q.scrollLeft+.75*q.offsetWidth*("right"===t?1:-1),behavior:"smooth"})}function bt(){let t=[],e=G[0].children.length;for(let n=0;n<e;++n)for(let e=0;e<lt;++e){const r=G[e].children[n];r&&t.push(r)}return t}function wt(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";const r="horizontal"===st,o=r?"offsetLeft":"offsetTop",i=r?"left":"top";q.scroll({[i]:Math.max(0,t[e][o]-ut/2),behavior:n})}function xt(t){const e=bt(),n=q.getBoundingClientRect(),r=e.findIndex((t=>function(t,e){return"horizontal"===st?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"===st?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!B.id||et||(null==L?void 0:L.fakeElement)||U.registerInstance(B.id,{setCurrentItem(t){const e=bt();if(t<0||t>e.length-1)throw new Error('Item is out of range in "set-current-item" action');wt(e,t)},setPreviousItem(t){const e=xt("prev"),n=bt();let r=e-1;r<0&&(r="ring"===t?n.length-1:e),wt(n,r)},setNextItem(t){const e="horizontal"===st?q.scrollLeft+q.offsetWidth===q.scrollWidth:q.scrollTop+q.offsetHeight===q.scrollHeight,n=bt();if(e&&"ring"===t)return void wt(n,0);const r=xt("next");let o=r+1;o>n.length-1&&(o="ring"===t?0:r),wt(n,o)}}),ge((()=>{n(36,Z=!0),!et&&($t(),vt)&&wt(bt(),vt,"auto")})),me((()=>{n(36,Z=!1),B.id&&!(null==L?void 0:L.fakeElement)&&U.unregisterInstance(B.id)})),t.$$set=t=>{"json"in t&&n(0,B=t.json),"templateContext"in t&&n(1,R=t.templateContext),"origJson"in t&&n(2,W=t.origJson),"layoutParams"in t&&n(3,L=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&n(49,r=B.items),262144&t.$$.dirty[1]&&((null==r?void 0:r.length)&&Array.isArray(r)?n(5,et=!1):(n(5,et=!0),U.logError(yn(new Error('Incorrect or empty "items" prop for div "gallery"'))))),34&t.$$.dirty[0]|262144&t.$$.dirty[1]&&n(48,o=(!et&&r||[]).map((t=>{let e=t,n=R;return({templateContext:n,json:e}=U.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),32&t.$$.dirty[0]|268435488&t.$$.dirty[1]&&n(9,i=j&&Z&&!et),528&t.$$.dirty[0]|16&t.$$.dirty[1]&&(i?"undefined"!=typeof ResizeObserver&&(n(35,Y=new ResizeObserver((()=>{$t()}))),Y.observe(H)):Y&&(Y.disconnect(),n(35,Y=null))),1&t.$$.dirty[0]&&(n(27,a=U.getDerivedFromVars(B.column_count)),J(),J=Et(a,(t=>n(58,V=t)))),134217792&t.$$.dirty[1]&&n(37,lt=xr(V,lt)),131136&t.$$.dirty[1]&&n(26,l=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}(o,lt)),1&t.$$.dirty[0]&&(n(25,s=U.getDerivedFromVars(B.orientation)),T(),T=Et(s,(t=>n(57,A=t)))),64&t.$$.dirty[0]|67108864&t.$$.dirty[1]&&n(6,st=vo(A,st)),1&t.$$.dirty[0]&&(n(24,c=U.getDerivedFromVars(B.cross_content_alignment)),M(),M=Et(c,(t=>n(56,C=t)))),33554560&t.$$.dirty[1]&&n(38,ct=function(t,e){return"start"===t||"center"===t||"end"===t?t:e}(C,ct)),1&t.$$.dirty[0]&&(n(23,u=U.getDerivedFromVars(B.item_spacing)),N(),N=Et(u,(t=>n(55,E=t)))),16777728&t.$$.dirty[1]&&(n(40,ut=Bn(E,ut)),n(39,rt=wn(ut))),1&t.$$.dirty[0]&&(n(22,d=U.getDerivedFromVars(B.cross_spacing)),F(),F=Et(d,(t=>n(54,k=t)))),8391168&t.$$.dirty[1]&&(n(42,it=Bn(k,ut)),n(41,ot=wn(it))),1&t.$$.dirty[0]&&(n(21,h=U.getDerivedFromVars(B.paddings)),z(),z=Et(h,(t=>n(53,x=t)))),4198400&t.$$.dirty[1]&&n(43,dt=On(x,dt)),64&t.$$.dirty[0]&&n(47,p="horizontal"===st?"grid-template-columns":"grid-template-rows"),64&t.$$.dirty[0]|131072&t.$$.dirty[1]){let t=[];o.forEach((e=>{const n="horizontal"===st?"width":"height";t.push(U.getDerivedFromVars(e.json[n]))})),n(14,at=en(t,(t=>t))),I(),I=Et(at,(t=>n(52,w=t)))}if(64&t.$$.dirty[0]|2105408&t.$$.dirty[1]&&(n(44,ht=[]),lt>1?ht.push("auto"):w.forEach((t=>{!t&&"horizontal"===st||"match_parent"===(null==t?void 0:t.type)?ht.push("100%"):ht.push("max-content")}))),1&t.$$.dirty[0]&&(n(20,f=U.getDerivedFromVars(B.scroll_mode)),S(),S=Et(f,(t=>n(51,b=t)))),456&t.$$.dirty[0]|1049280&t.$$.dirty[1]){const t={};let e={};n(45,gt=!1),(null==L?void 0:L.fakeElement)&&(e.fakeElement=!0),"horizontal"===st?e.parentVAlign=ct:e.parentHAlign=ct,"paging"===b&&(n(45,gt=!0),e.scrollSnap="start",t["horizontal"===st?"scroll-padding-left":"scroll-padding-top"]=wn(ut/2)),1===lt&&(e.parentLayoutOrientation=st),n(7,pt=Ln(t,pt)),n(8,mt=Ln(e,mt))}1&t.$$.dirty[0]&&(n(19,g=U.getDerivedFromVars(B.restrict_parent_scroll)),O(),O=Et(g,(t=>n(28,P=t)))),5120&t.$$.dirty[1]&&n(18,m={padding:dt,"grid-gap":ot}),73984&t.$$.dirty[1]&&n(17,v={"grid-gap":rt,[p]:Wo(ht)}),64&t.$$.dirty[0]|16384&t.$$.dirty[1]&&n(16,y={orientation:st,"scroll-snap":gt}),1&t.$$.dirty[0]&&(n(15,$=U.getDerivedFromVars(B.default_item)),D(),D=Et($,(t=>n(50,_=t)))),557056&t.$$.dirty[1]&&n(46,vt=Bn(_,vt))},[B,R,W,L,H,et,st,pt,mt,i,q,G,K,X,at,$,y,v,m,g,f,h,d,u,c,s,l,a,P,Q,tt,nt,yt,$t,_t,Y,Z,lt,ct,rt,ut,ot,it,dt,ht,gt,vt,p,o,r,_,b,w,x,k,E,C,A,V,j,function(t,e){be[t?"unshift":"push"]((()=>{G[e]=t,n(11,G)}))},function(t){be[t?"unshift":"push"]((()=>{H=t,n(4,H)}))},function(t){be[t?"unshift":"push"]((()=>{q=t,n(10,q)}))},()=>_t("left"),()=>_t("right")]}const ri={tabs:"divkit-e0df5",tabs__list:"divkit-ea19b",tabs__item:"divkit-c25c7",tabs__item_selected:"divkit-d560a",tabs__item_actionable:"divkit-dfda0",tabs__panels:"divkit-f5dc0",tabs__swiper:"divkit-eb42c",tabs__swiper_animated:"divkit-b9f18",tabs__swiper_inited:"divkit-fa574",tabs__panel:"divkit-cc9fb",tabs__panel_visible:"divkit-e7306",tabs__separator:"divkit-b85bf"},{Boolean:oi}=We;function ii(t,e,n){const r=t.slice();return r[79]=e[n],r[81]=n,r}function ai(t,e,n){const r=t.slice();r[79]=e[n],r[81]=n;const o=r[81]===r[6];return r[82]=o,r}function li(t){let e,n;return e=new br({props:{cls:zn("tabs",ri,t[39]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customActions:"tabs",$$slots:{default:[pi]},$$scope:{ctx:t}}}),{c(){He(e.$$.fragment)},l(t){Ge(e.$$.fragment,t)},m(t,r){Ke(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),1476394986&n[0]|64&n[1]|4194304&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Je(e.$$.fragment,t),n=!0)},o(t){Oe(e.$$.fragment,t),n=!1},d(t){Xe(e,t)}}}function si(t){let e,n,r=t[79].title+"";return{c(){e=Gt(r),n=Kt()},l(t){e=ie(t,r),n=ae(t)},m(t,r){Wt(t,e,r),Wt(t,n,r)},p(t,n){65536&n[0]&&r!==(r=t[79].title+"")&&le(e,r)},d(t){t&&Lt(e),t&&Lt(n)}}}function ci(t){var e,n,r;let o,i;function a(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t[55](t[81],...n)}return o=new nr({props:{cls:zn("tabs__item",ri,{selected:t[82],actionable:Boolean(t[79].title_click_action)}),actions:!t[79].title_click_action||null!==(e=t[3])&&void 0!==e&&e.fakeElement?[]:[t[79].title_click_action],attrs:{id:"".concat(t[38],"-tab-").concat(t[81]),"aria-controls":"".concat(t[38],"-panel-").concat(t[81]),role:"tab",tabindex:!t[82]||null!==(n=t[3])&&void 0!==n&&n.fakeElement?"-1":t[79].title_click_action?void 0:"0","aria-selected":t[82]?"true":"false"},customAction:null!==(r=t[3])&&void 0!==r&&r.fakeElement?null:a,$$slots:{default:[si]},$$scope:{ctx:t}}}),{c(){He(o.$$.fragment)},l(t){Ge(o.$$.fragment,t)},m(t,e){Ke(o,t,e),i=!0},p(e,n){var r,i,l;t=e;const s={};65600&n[0]&&(s.cls=zn("tabs__item",ri,{selected:t[82],actionable:Boolean(t[79].title_click_action)})),65544&n[0]&&(s.actions=!t[79].title_click_action||null!==(r=t[3])&&void 0!==r&&r.fakeElement?[]:[t[79].title_click_action]),65608&n[0]&&(s.attrs={id:"".concat(t[38],"-tab-").concat(t[81]),"aria-controls":"".concat(t[38],"-panel-").concat(t[81]),role:"tab",tabindex:!t[82]||null!==(i=t[3])&&void 0!==i&&i.fakeElement?"-1":t[79].title_click_action?void 0:"0","aria-selected":t[82]?"true":"false"}),8&n[0]&&(s.customAction=null!==(l=t[3])&&void 0!==l&&l.fakeElement?null:a),65536&n[0]|4194304&n[2]&&(s.$$scope={dirty:n,ctx:t}),o.$set(s)},i(t){i||(Je(o.$$.fragment,t),i=!0)},o(t){Oe(o.$$.fragment,t),i=!1},d(t){Xe(o,t)}}}function ui(t){let e,n,r;return{c(){e=qt("div"),this.h()},l(t){e=re(t,"DIV",{class:!0,style:!0}),te(e).forEach(Lt),this.h()},h(){Zt(e,"class",n=ri.tabs__separator),Zt(e,"style",r=bn(t[30]))},m(t,n){Wt(t,e,n)},p(t,n){1073741824&n[0]&&r!==(r=bn(t[30]))&&Zt(e,"style",r)},d(t){t&&Lt(e)}}}function di(t){let e,n;return e=new Pa({props:{div:t[79].div,templateContext:t[1],layoutParams:t[5]}}),{c(){He(e.$$.fragment)},l(t){Ge(e.$$.fragment,t)},m(t,r){Ke(e,t,r),n=!0},p(t,n){const r={};65536&n[0]&&(r.div=t[79].div),2&n[0]&&(r.templateContext=t[1]),32&n[0]&&(r.layoutParams=t[5]),e.$set(r)},i(t){n||(Je(e.$$.fragment,t),n=!0)},o(t){Oe(e.$$.fragment,t),n=!1},d(t){Xe(e,t)}}}function hi(t){let e,n,r,o,i,a,l=t[25][t[81]]&&di(t);return{c(){e=qt("div"),l&&l.c(),n=Kt(),this.h()},l(t){e=re(t,"DIV",{class:!0,role:!0,id:!0,"aria-labelledby":!0,style:!0});var r=te(e);l&&l.l(r),n=ae(r),r.forEach(Lt),this.h()},h(){Zt(e,"class",r=zn("tabs__panel",ri,{visible:t[26][t[81]]})),Zt(e,"role","tabpanel"),Zt(e,"id",o=t[38]+"-panel-"+t[81]),Zt(e,"aria-labelledby",i=t[38]+"-tab-"+t[81]),se(e,"left",100*t[81]+"%")},m(t,r){Wt(t,e,r),l&&l.m(e,null),Rt(e,n),a=!0},p(t,o){t[25][t[81]]?l?(l.p(t,o),33554432&o[0]&&Je(l,1)):(l=di(t),l.c(),Je(l,1),l.m(e,n)):l&&(Me(),Oe(l,1,1,(()=>{l=null})),Te()),(!a||67108864&o[0]&&r!==(r=zn("tabs__panel",ri,{visible:t[26][t[81]]})))&&Zt(e,"class",r)},i(t){a||(Je(l),a=!0)},o(t){Oe(l),a=!1},d(t){t&&Lt(e),l&&l.d()}}}function pi(t){let e,n,r,o,i,a,l,s,c,u,d,h=t[16],p=[];for(let e=0;e<h.length;e+=1)p[e]=ci(ai(t,h,e));const f=t=>Oe(p[t],1,1,(()=>{p[t]=null}));let g=t[17]&&ui(t),m=t[16],v=[];for(let e=0;e<m.length;e+=1)v[e]=hi(ii(t,m,e));const y=t=>Oe(v[t],1,1,(()=>{v[t]=null}));return{c(){e=qt("div");for(let t=0;t<p.length;t+=1)p[t].c();r=Kt(),g&&g.c(),o=Kt(),i=qt("div"),a=qt("div");for(let t=0;t<v.length;t+=1)v[t].c();this.h()},l(t){e=re(t,"DIV",{class:!0,role:!0});var n=te(e);for(let t=0;t<p.length;t+=1)p[t].l(n);n.forEach(Lt),r=ae(t),g&&g.l(t),o=ae(t),i=re(t,"DIV",{class:!0});var l=te(i);a=re(l,"DIV",{class:!0});var s=te(a);for(let t=0;t<v.length;t+=1)v[t].l(s);s.forEach(Lt),l.forEach(Lt),this.h()},h(){Zt(e,"class",n=ri.tabs__list+" "+(t[37]?gn:"")),Zt(e,"role","tablist"),se(e,"--divkit-tabs-font-size",wn(t[7]),!1),se(e,"--divkit-tabs-paddings",t[8],!1),se(e,"--divkit-tabs-line-height",t[21],!1),se(e,"--divkit-tabs-letter-spacing",t[22],!1),se(e,"--divkit-tabs-active-font-weight",t[10]||"",!1),se(e,"--divkit-tabs-inactive-font-weight",t[11]||"",!1),se(e,"--divkit-tabs-active-text-color",t[12],!1),se(e,"--divkit-tabs-inactive-text-color",t[13],!1),se(e,"--divkit-tabs-active-background-color",t[14],!1),se(e,"--divkit-tabs-inactive-background-color",t[15],!1),se(e,"--divkit-tabs-border-radius",t[9],!1),Zt(a,"class",l=zn("tabs__swiper",ri,{inited:t[23],animated:t[24]})),Zt(i,"class",s=ri.tabs__panels+" "+(t[37]?gn:""))},m(n,l){Wt(n,e,l);for(let t=0;t<p.length;t+=1)p[t].m(e,null);t[56](e),Wt(n,r,l),g&&g.m(n,l),Wt(n,o,l),Wt(n,i,l),Rt(i,a);for(let t=0;t<v.length;t+=1)v[t].m(a,null);t[57](a),t[58](i),c=!0,u||(d=[Yt(e,"keydown",t[41]),Yt(a,"touchstart",(function(){_t(t[28]?t[42]:void 0)&&(t[28]?t[42]:void 0).apply(this,arguments)})),Yt(a,"touchmove",(function(){_t(t[28]?t[43]:void 0)&&(t[28]?t[43]:void 0).apply(this,arguments)})),Yt(a,"touchend",(function(){_t(t[28]?t[44]:void 0)&&(t[28]?t[44]:void 0).apply(this,arguments)})),Yt(a,"touchcancel",(function(){_t(t[28]?t[44]:void 0)&&(t[28]?t[44]:void 0).apply(this,arguments)}))],u=!0)},p(r,u){if(t=r,65608&u[0]|640&u[1]){let n;for(h=t[16],n=0;n<h.length;n+=1){const r=ai(t,h,n);p[n]?(p[n].p(r,u),Je(p[n],1)):(p[n]=ci(r),p[n].c(),Je(p[n],1),p[n].m(e,null))}for(Me(),n=h.length;n<p.length;n+=1)f(n);Te()}if((!c||64&u[1]&&n!==(n=ri.tabs__list+" "+(t[37]?gn:"")))&&Zt(e,"class",n),128&u[0]&&se(e,"--divkit-tabs-font-size",wn(t[7]),!1),256&u[0]&&se(e,"--divkit-tabs-paddings",t[8],!1),2097152&u[0]&&se(e,"--divkit-tabs-line-height",t[21],!1),4194304&u[0]&&se(e,"--divkit-tabs-letter-spacing",t[22],!1),1024&u[0]&&se(e,"--divkit-tabs-active-font-weight",t[10]||"",!1),2048&u[0]&&se(e,"--divkit-tabs-inactive-font-weight",t[11]||"",!1),4096&u[0]&&se(e,"--divkit-tabs-active-text-color",t[12],!1),8192&u[0]&&se(e,"--divkit-tabs-inactive-text-color",t[13],!1),16384&u[0]&&se(e,"--divkit-tabs-active-background-color",t[14],!1),32768&u[0]&&se(e,"--divkit-tabs-inactive-background-color",t[15],!1),512&u[0]&&se(e,"--divkit-tabs-border-radius",t[9],!1),t[17]?g?g.p(t,u):(g=ui(t),g.c(),g.m(o.parentNode,o)):g&&(g.d(1),g=null),100728866&u[0]|128&u[1]){let e;for(m=t[16],e=0;e<m.length;e+=1){const n=ii(t,m,e);v[e]?(v[e].p(n,u),Je(v[e],1)):(v[e]=hi(n),v[e].c(),Je(v[e],1),v[e].m(a,null))}for(Me(),e=m.length;e<v.length;e+=1)y(e);Te()}(!c||25165824&u[0]&&l!==(l=zn("tabs__swiper",ri,{inited:t[23],animated:t[24]})))&&Zt(a,"class",l),(!c||64&u[1]&&s!==(s=ri.tabs__panels+" "+(t[37]?gn:"")))&&Zt(i,"class",s)},i(t){if(!c){for(let t=0;t<h.length;t+=1)Je(p[t]);for(let t=0;t<m.length;t+=1)Je(v[t]);c=!0}},o(t){p=p.filter(oi);for(let t=0;t<p.length;t+=1)Oe(p[t]);v=v.filter(oi);for(let t=0;t<v.length;t+=1)Oe(v[t]);c=!1},d(n){n&&Lt(e),Ut(p,n),t[56](null),n&&Lt(r),g&&g.d(n),n&&Lt(o),n&&Lt(i),Ut(v,n),t[57](null),t[58](null),u=!1,$t(d)}}}function fi(t){let e,n,r=!t[4]&&li(t);return{c(){r&&r.c(),e=Xt()},l(t){r&&r.l(t),e=Xt()},m(t,o){r&&r.m(t,o),Wt(t,e,o),n=!0},p(t,n){t[4]?r&&(Me(),Oe(r,1,1,(()=>{r=null})),Te()):r?(r.p(t,n),16&n[0]&&Je(r,1)):(r=li(t),r.c(),Je(r,1),r.m(e.parentNode,e))},i(t){n||(Je(r),n=!0)},o(t){Oe(r),n=!1},d(t){r&&r.d(t),t&&Lt(e)}}}function gi(t,e,n){let r,o,i,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x=ft,k=ft,E=ft,A=ft,V=ft,j=ft,P=ft,D=ft;var S;t.$$.on_destroy.push((()=>x())),t.$$.on_destroy.push((()=>k())),t.$$.on_destroy.push((()=>E())),t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>D()));let{json:I={}}=e,{templateContext:z}=e,{origJson:F}=e,{layoutParams:N}=e;const M=ye(vn),T=M.genId("tabs");let J,O,B,R=!1,W={};const L=M.getJsonWithVars(I.selected_tab);let U,q,H=L&&Number(L)||0,G=12,K="",X="",Y="",Z="",Q="",tt="",et="",nt="",rt="",ot="",it=!1,at=!1,lt=H,st=[],ct=[];async function ut(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(lt=H,n(6,H=t),$t(),pt(),e){await Ae();const t=J.querySelector(".".concat(ri.tabs__item_selected));t&&t.focus()}}function dt(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=null==r?void 0:r.length;if(!n)return;let o=H+t;o>=n?o=0:o<0&&(o=n-1),ut(o,e)}function ht(t,e){return H===e||(ut(e),!1)}function pt(){n(24,at=!0),gt(100*-H),mt(),async function(){await Ae();const t=document.getElementById("".concat(T,"-panel-").concat(H));t&&n(19,O.style.height=wn(t.offsetHeight),O)}(),yt(),wt=-H*O.clientWidth}async function gt(t){await Ae(),n(20,B.style.transform="translate3d(".concat(t,"%,0,0)"),B)}function mt(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const e=t?Math.max(0,H-1):Math.min(H,lt),o=t?Math.min(r.length-1,H+1):Math.max(H,lt);n(25,st=st.map(((t,n)=>t||n>=e&&n<=o))),n(26,ct=ct.map(((t,n)=>n>=e&&n<=o)))}let vt=null;function yt(){vt&&clearTimeout(vt),vt=window.setTimeout((()=>{n(26,ct=r.map(((t,e)=>e===H)))}),400)}function $t(){it||(n(23,it=!0),n(19,O.style.height=wn(O.clientHeight),O),n(20,B.style.transform="translate3d(".concat(100*-lt,"%,0,0)"),B))}let _t,bt,wt,xt=null,kt=null,Ct=!1,At=!1;return!I.id||R||(null==N?void 0:N.fakeElement)||M.registerInstance(I.id,{setCurrentItem(t){if(t<0||t>r.length-1)throw new Error('Item is out of range in "set-current-item" action');ut(t)},setPreviousItem(t){let e=H-1;e<0&&(e="ring"===t?r.length-1:H),ut(e)},setNextItem(t){let e=H+1;e>r.length-1&&(e="ring"===t?0:H),ut(e)}}),me((()=>{I.id&&!(null==N?void 0:N.fakeElement)&&M.unregisterInstance(I.id)})),t.$$set=t=>{"json"in t&&n(0,I=t.json),"templateContext"in t&&n(1,z=t.templateContext),"origJson"in t&&n(2,F=t.origJson),"layoutParams"in t&&n(3,N=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&n(16,r=I.items||[]),65536&t.$$.dirty[0]&&((null==r?void 0:r.length)&&Array.isArray(r)?n(4,R=!1):(n(4,R=!0),M.logError(yn(new Error('Incorrect or empty "items" prop for div "tabs"'))))),1&t.$$.dirty[0]&&(n(36,o=M.getDerivedFromVars(I.width)),P(),P=Et(o,(t=>n(54,b=t)))),1&t.$$.dirty[0]&&(n(35,i=M.getDerivedFromVars(I.height)),j(),j=Et(i,(t=>n(53,_=t)))),40&t.$$.dirty[0]|12582912&t.$$.dirty[1]){let t={};(null==N?void 0:N.fakeElement)&&(t.fakeElement=!0),"wrap_content"===(null==b?void 0:b.type)&&(t.parentHorizontalWrapContent=!0),_&&"wrap_content"!==_.type||(t.parentVerticalWrapContent=!0),n(5,W=Ln(t,W))}if(65617&t.$$.dirty[0]&&!R&&(H<0||H>=r.length)&&(M.logError(yn(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:I.selected_tab,length:r.length}})),n(6,H=H<0?0:r.length-1)),1&t.$$.dirty[0]&&(n(34,a=M.getDerivedFromVars(I.tab_title_style)),V(),V=Et(a,(t=>n(52,$=t)))),2097152&t.$$.dirty[1]&&n(48,l=$||{}),128&t.$$.dirty[0]|131072&t.$$.dirty[1]&&n(7,G=xr(l.font_size,G)),384&t.$$.dirty[0]|131072&t.$$.dirty[1]&&(l.font_size||l.paddings)){const t=l.paddings||{top:6,right:8,bottom:6,left:8},e={top:(Number(t.top)||0)/G*10,right:(Number(t.right)||0)/G*10,bottom:(Number(t.bottom)||0)/G*10,left:(Number(t.left)||0)/G*10};n(8,K=On(e,K))}if(128&t.$$.dirty[0]|131072&t.$$.dirty[1]){const t=l.line_height;void 0!==t&&ir(t)&&n(21,X=wn(t/G*10))}if(128&t.$$.dirty[0]|131072&t.$$.dirty[1]){const t=l.letter_spacing;void 0!==t&&Jn(t)&&n(22,Y=wn(t/G*10))}if(640&t.$$.dirty[0]|147456&t.$$.dirty[1]&&(l.corner_radius||l.corners_radius||l.font_size)){const t=null!==n(45,S=l.corner_radius)&&void 0!==S?S:1e3;l.corners_radius?n(9,Z=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]&&!Jn(o[t]))return r;return Gn(t,e,n)}(l.corners_radius,t,G,Z)):Jn(t)&&n(9,Z=wn(t/G*10))}1024&t.$$.dirty[0]|131072&t.$$.dirty[1]&&n(10,U=Er(l.active_font_weight||l.font_weight,U)),2048&t.$$.dirty[0]|131072&t.$$.dirty[1]&&n(11,q=Er(l.inactive_font_weight||l.font_weight,q)),4096&t.$$.dirty[0]|131072&t.$$.dirty[1]&&n(12,Q=C(l.active_text_color,1,Q)),8192&t.$$.dirty[0]|131072&t.$$.dirty[1]&&n(13,tt=C(l.inactive_text_color,1,tt)),16384&t.$$.dirty[0]|131072&t.$$.dirty[1]&&n(14,et=C(l.active_background_color,1,et)),32768&t.$$.dirty[0]|131072&t.$$.dirty[1]&&n(15,nt=C(l.inactive_background_color,1,nt)),1&t.$$.dirty[0]&&(n(33,s=M.getDerivedFromVars(I.has_separator)),A(),A=Et(s,(t=>n(17,y=t)))),1&t.$$.dirty[0]&&(n(32,c=M.getDerivedFromVars(I.separator_color)),E(),E=Et(c,(t=>n(51,v=t)))),1&t.$$.dirty[0]&&(n(31,u=M.getDerivedFromVars(I.separator_paddings)),k(),k=Et(u,(t=>n(50,m=t)))),131072&t.$$.dirty[0]|1671168&t.$$.dirty[1]&&y&&(v&&n(46,rt=C(v,1,rt)),m&&n(47,ot=On(m,ot))),98304&t.$$.dirty[1]&&n(30,d={background:rt,margin:ot}),1&t.$$.dirty[0]&&(n(29,h=M.getDerivedFromVars(I.switch_tabs_by_content_swipe_enabled)),x(),x=Et(h,(t=>n(49,g=t)))),262144&t.$$.dirty[1]&&n(28,p=void 0===g||Boolean(g)),1&t.$$.dirty[0]&&(n(27,f=M.getDerivedFromVars(I.restrict_parent_scroll)),D(),D=Et(f,(t=>n(37,w=t)))),65536&t.$$.dirty[0]&&(R||(n(25,st=r.map(((t,e)=>e===H))),n(26,ct=r.map(((t,e)=>e===H)))))},[I,z,F,N,R,W,H,G,K,Z,U,q,Q,tt,et,nt,r,y,J,O,B,X,Y,it,at,st,ct,f,p,h,d,u,c,s,a,i,o,w,T,{},ht,function(t){if(!(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)&&r){if(37===t.which)dt(-1,!0);else if(39===t.which)dt(1,!0);else if(36===t.which)ut(0,!0);else{if(35!==t.which)return;ut(r.length-1,!0)}t.preventDefault()}},function(t){var e;const o=t.target,i=null===(e=null==o?void 0:o.closest)||void 0===e?void 0:e.call(o,".".concat(gn));r.length<2||t.touches.length>1||i&&i!==O||(Ct=!1,At=!1,xt=Yn(t),kt=null,_t=Date.now(),bt=wt||-H*O.clientWidth,n(24,at=!1),vt&&clearTimeout(vt))},function(t){const e=Yn(t);if(!xt||kt&&kt.x===e.x&&kt.y===e.y)return;kt=e;const n=O.clientWidth;if(Ct){wt=e.x-xt.x+bt;const t=n*r.length;if(wt>0)wt=wt*n/(wt+3*n);else if(-wt+n>t){let e=-wt+n-t;e=e*n/(e+3*n),wt=n-t-e}gt(100*wt/n)}else Math.abs(e.y-xt.y)>10?At=!0:!At&&Math.abs(e.x-xt.x)>8&&($t(),Ct=!0,xt=e,gt(100*-H),mt(!0));Ct&&t.cancelable&&t.preventDefault()},function(){At=!1,xt=null;let t=H;if(!Ct)return;Ct=!1;const e=Math.min(512,O.clientWidth);Math.abs(bt-wt)>e/4*Math.min(1,(Date.now()-_t)/750)&&(t+=bt>wt?1:-1),t>=r.length?t=r.length-1:t<0&&(t=0),t===H?(wt=-t*e,gt(100*-t),yt()):ut(t)},S,rt,ot,l,g,m,v,$,_,b,(t,e)=>ht(0,t),function(t){be[t?"unshift":"push"]((()=>{J=t,n(18,J)}))},function(t){be[t?"unshift":"push"]((()=>{B=t,n(20,B)}))},function(t){be[t?"unshift":"push"]((()=>{O=t,n(19,O)}))}]}const mi="divkit-eb860",vi="divkit-e08c6";function yi(t){return t<.5?4*t*t*t:.5*Math.pow(2*t-2,3)+1}function $i(t){return t*t*t}function _i(t){const e=t-1;return e*e*e+1}function bi(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 wi=bi([.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]),xi=bi([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]),ki={linear:gt,ease:wi,ease_in:$i,ease_out:_i,ease_in_out:yi,spring:xi};function Ei(t){return Math.max(...t.map((t=>(Number(t.duration)||200)+(Number(t.start_delay)||0))))}function Ci(t,e){let{transitions:n,elementBbox:r,rootBbox:o,direction:i,maxDuration:a,alpha:l}=e;const s=null!=l?l:1;return{duration:a,css:t=>{const e=t*a,l=n.map((t=>{const n=Number(t.start_delay)||0,a=Number(t.duration)||200,l=Math.max(0,Math.min(1,(e-n)/a)),c="in"===i?1-l:l,u=(ki[t.interpolator||"ease_in_out"]||yi)(c);if("fade"===t.type)return u>=1?{active:!1,opacity:0}:{active:u>0&&u<1,opacity:(1-u)*s+u*(t.alpha||0)};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||0),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=l.map((t=>t.opacity)).filter((t=>void 0!==t)).reduce(((t,e)=>t*e),1),u=l.map((t=>t.translate)).filter((t=>void 0!==t)).join(" "),d=l.map((t=>t.scale)).filter((t=>void 0!==t)).join(" "),h=l.filter((t=>t.active)).map((t=>t.scale)).filter((t=>void 0!==t)),p=[u,h.length?h[h.length-1]:d].filter(Boolean).join(" ");return"transform:".concat(p||"none",";opacity:").concat(c)}}}function Ai(t,e,n){return t*(1-n)+e*n}const Vi={linear:gt,ease:wi,ease_in:$i,ease_out:_i,ease_in_out:yi,spring:xi};function ji(t,e){var n,r;let{rootBbox:o,beforeBbox:i,afterBbox:a,transition:l}=e;return{delay:null!==(n=l.start_delay)&&void 0!==n?n:0,duration:null!==(r=l.duration)&&void 0!==r?r:200,easing:l.interpolator&&l.interpolator in Vi?Vi[l.interpolator]:yi,css:t=>["top:".concat(Ai(i.top,a.top,t)-o.top,"px"),"left:".concat(Ai(i.left,a.left,t)-o.left,"px"),"width:".concat(Ai(i.width,a.width,t),"px"),"height:".concat(Ai(i.height,a.height,t),"px")].join(";")}}function Pi(t){const e=[];return"set"===t.type?(t.items||[]).forEach((t=>{e.push(...Pi(t))})):e.push(t),e}const{Map:Di}=We;function Si(t,e,n){const r=t.slice();return r[27]=e[n],r}function Ii(t){let e,n;return e=new br({props:{cls:"divkit-b8efc",json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Ji]},$$scope:{ctx:t}}}),{c(){He(e.$$.fragment)},l(t){Ge(e.$$.fragment,t)},m(t,r){Ke(e,t,r),n=!0},p(t,n){const r={};1&n&&(r.json=t[0]),4&n&&(r.origJson=t[2]),2&n&&(r.templateContext=t[1]),8&n&&(r.layoutParams=t[3]),1073742034&n&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Je(e.$$.fragment,t),n=!0)},o(t){Oe(e.$$.fragment,t),n=!1},d(t){Xe(e,t)}}}function zi(t){let e,n,r=t[7],o=Fi(t);return{c(){o.c(),e=Xt()},l(t){o.l(t),e=Xt()},m(t,r){o.m(t,r),Wt(t,e,r),n=!0},p(t,n){128&n&&xt(r,r=t[7])?(Me(),Oe(o,1,1,ft),Te(),o=Fi(t),o.c(),Je(o,1),o.m(e.parentNode,e)):o.p(t,n)},i(t){n||(Je(o),n=!0)},o(t){Oe(o),n=!1},d(t){t&&Lt(e),o.d(t)}}}function Fi(t){let e,n;return e=new Pa({props:{div:t[7].div,templateContext:t[1]}}),{c(){He(e.$$.fragment)},l(t){Ge(e.$$.fragment,t)},m(t,r){Ke(e,t,r),n=!0},p(t,n){const r={};128&n&&(r.div=t[7].div),2&n&&(r.templateContext=t[1]),e.$set(r)},i(t){n||(Je(e.$$.fragment,t),n=!0)},o(t){Oe(e.$$.fragment,t),n=!1},d(t){Xe(e,t)}}}function Ni(t){let e,n,r,o,i,a,l,s,c,u;function d(){return t[11](t[27])}return r=new Pa({props:{div:t[27].json,templateContext:t[27].templateContext,layoutParams:{fakeElement:!0}}}),{c(){e=qt("div"),n=qt("div"),He(r.$$.fragment),i=Kt(),this.h()},l(t){e=re(t,"DIV",{class:!0});var o=te(e);n=re(o,"DIV",{class:!0});var a=te(n);Ge(r.$$.fragment,a),a.forEach(Lt),i=ae(o),o.forEach(Lt),this.h()},h(){Zt(n,"class",o=vi),Zt(e,"class",a=mi)},m(t,o){Wt(t,e,o),Rt(e,n),Ke(r,n,null),Rt(e,i),s=!0,c||(u=Yt(e,"introend",d),c=!0)},p(e,n){t=e;const o={};64&n&&(o.div=t[27].json),64&n&&(o.templateContext=t[27].templateContext),r.$set(o)},i(n){s||(Je(r.$$.fragment,n),l||Ve((()=>{l=Re(e,ji,t[27]),l.start()})),s=!0)},o(t){Oe(r.$$.fragment,t),s=!1},d(t){t&&Lt(e),Xe(r),c=!1,u()}}}function Mi(t){let e,n,r,o,i,a,l,s,c,u;function d(){return t[10](t[27])}return r=new Pa({props:{div:t[27].json,templateContext:t[27].templateContext,layoutParams:{fakeElement:!0}}}),{c(){e=qt("div"),n=qt("div"),He(r.$$.fragment),i=Kt(),this.h()},l(t){e=re(t,"DIV",{class:!0,style:!0});var o=te(e);n=re(o,"DIV",{class:!0});var a=te(n);Ge(r.$$.fragment,a),a.forEach(Lt),i=ae(o),o.forEach(Lt),this.h()},h(){Zt(n,"class",o=vi),Zt(e,"class",a=mi),se(e,"left",t[27].offsetLeft+"px"),se(e,"top",t[27].offsetTop+"px"),se(e,"width",t[27].width+"px"),se(e,"height",t[27].height+"px")},m(t,o){Wt(t,e,o),Rt(e,n),Ke(r,n,null),Rt(e,i),s=!0,c||(u=Yt(e,"introend",d),c=!0)},p(n,o){t=n;const i={};64&o&&(i.div=t[27].json),64&o&&(i.templateContext=t[27].templateContext),r.$set(i),(!s||64&o)&&se(e,"left",t[27].offsetLeft+"px"),(!s||64&o)&&se(e,"top",t[27].offsetTop+"px"),(!s||64&o)&&se(e,"width",t[27].width+"px"),(!s||64&o)&&se(e,"height",t[27].height+"px")},i(n){s||(Je(r.$$.fragment,n),l||Ve((()=>{l=Re(e,Ci,t[27]),l.start()})),s=!0)},o(t){Oe(r.$$.fragment,t),s=!1},d(t){t&&Lt(e),Xe(r),c=!1,u()}}}function Ti(t,e){let n,r,o,i,a;const l=[Mi,Ni],s=[];function c(t,e){return"direction"in t[27]?0:1}return r=c(e),o=s[r]=l[r](e),{key:t,first:null,c(){n=Xt(),o.c(),i=Xt(),this.h()},l(t){n=Xt(),o.l(t),i=Xt(),this.h()},h(){this.first=n},m(t,e){Wt(t,n,e),s[r].m(t,e),Wt(t,i,e),a=!0},p(t,n){let a=r;r=c(e=t),r===a?s[r].p(e,n):(Me(),Oe(s[a],1,1,(()=>{s[a]=null})),Te(),o=s[r],o?o.p(e,n):(o=s[r]=l[r](e),o.c()),Je(o,1),o.m(i.parentNode,i))},i(t){a||(Je(o),a=!0)},o(t){Oe(o),a=!1},d(t){t&&Lt(n),s[r].d(t),t&&Lt(i)}}}function Ji(t){var e;let n,r,o,i,a=[],l=new Di,s=(null===(e=t[7])||void 0===e?void 0:e.div)&&zi(t),c=t[6];const u=t=>t[27];for(let e=0;e<c.length;e+=1){let n=Si(t,c,e),r=u(n);l.set(r,a[e]=Ti(r,n))}return{c(){s&&s.c(),n=Kt(),r=qt("div");for(let t=0;t<a.length;t+=1)a[t].c();this.h()},l(t){s&&s.l(t),n=ae(t),r=re(t,"DIV",{class:!0,"aria-hidden":!0});var e=te(r);for(let t=0;t<a.length;t+=1)a[t].l(e);e.forEach(Lt),this.h()},h(){Zt(r,"class",o="divkit-adaae"),Zt(r,"aria-hidden","true")},m(e,o){s&&s.m(e,o),Wt(e,n,o),Wt(e,r,o);for(let t=0;t<a.length;t+=1)a[t].m(r,null);t[12](r),i=!0},p(t,e){var o;null!==(o=t[7])&&void 0!==o&&o.div?s?(s.p(t,e),128&e&&Je(s,1)):(s=zi(t),s.c(),Je(s,1),s.m(n.parentNode,n)):s&&(Me(),Oe(s,1,1,(()=>{s=null})),Te()),320&e&&(c=t[6],Me(),a=function(t,e,n,r,o,i,a,l,s,c,u,d){let h=t.length,p=i.length,f=h;const g={};for(;f--;)g[t[f].key]=f;const m=[],v=new Map,y=new Map;for(f=p;f--;){const t=d(o,i,f),r=n(t);let l=a.get(r);l?l.p(t,e):(l=c(r,t),l.c()),v.set(r,m[f]=l),r in g&&y.set(r,Math.abs(f-g[r]))}const $=new Set,_=new Set;function b(t){Je(t,1),t.m(l,u),a.set(t.key,t),u=t.first,p--}for(;h&&p;){const e=m[p-1],n=t[h-1],r=e.key,o=n.key;e===n?(u=e.first,h--,p--):v.has(o)?!a.has(r)||$.has(r)?b(e):_.has(o)?h--:y.get(r)>y.get(o)?(_.add(r),b(e)):($.add(o),h--):(s(n,a),h--)}for(;h--;){const e=t[h];v.has(e.key)||s(e,a)}for(;p;)b(m[p-1]);return m}(a,e,u,0,t,c,l,r,Le,Ti,null,Si),Te())},i(t){if(!i){Je(s);for(let t=0;t<c.length;t+=1)Je(a[t]);i=!0}},o(t){Oe(s);for(let t=0;t<a.length;t+=1)Oe(a[t]);i=!1},d(e){s&&s.d(e),e&&Lt(n),e&&Lt(r);for(let t=0;t<a.length;t+=1)a[t].d();t[12](null)}}}function Oi(t){let e,n,r=!t[5]&&Ii(t);return{c(){r&&r.c(),e=Xt()},l(t){r&&r.l(t),e=Xt()},m(t,o){r&&r.m(t,o),Wt(t,e,o),n=!0},p(t,n){let[o]=n;t[5]?r&&(Me(),Oe(r,1,1,(()=>{r=null})),Te()):r?(r.p(t,o),32&o&&Je(r,1)):(r=Ii(t),r.c(),Je(r,1),r.m(e.parentNode,e))},i(t){n||(Je(r),n=!0)},o(t){Oe(r),n=!1},d(t){r&&r.d(t),t&&Lt(e)}}}function Bi(t){return"change_bounds"===t.type?t:"set"===t.type?Bi(t.items[0]):null}function Ri(t,e,n){let r,{json:o={}}=e,{templateContext:i}=e,{origJson:a}=e,{layoutParams:l}=e;const s=ye(vn),c=ye(Nn);let u,d=new Map,h=new Set,p=!1,f=null,g=[],m=[],v=[],y=[];function $(t,e,n){let{json:r,templateContext:o,transitions:i,node:a}=e;r=s.getJsonWithVars(r),i=s.getJsonWithVars(i);const l=Pi(i),c=a.getBoundingClientRect();return{json:Object.assign(Object.assign({},r),{margins:void 0,alpha:(u=l,u.some((t=>"fade"===t.type))?void 0:r.alpha)}),templateContext:o,elementBbox:c,rootBbox:t,transitions:l,alpha:r.alpha,width:c.width,height:c.height,offsetTop:c.top-t.top,offsetLeft:c.left-t.left,direction:n,resolvePromise:e.resolvePromise,node:e.node};var u}const _=o.div_id||o.id;let b;_?(null==l?void 0:l.fakeElement)||(c.registerInstance(_,{async setState(t){if(b===t)return;s.setRunning("stateChange",!0);const e=new Set(h);g.forEach((t=>{t.resolvePromise&&t.resolvePromise()})),n(6,g=[]);let o=[];if(u){const t=u.getBoundingClientRect();o=v.map((e=>$(t,e,"out")))}y.forEach((t=>{d.set(t.id,t.node.getBoundingClientRect())})),m=[],v=[],y=[];const i=r.find((e=>e.state_id===t))||null;if(i?(b=t,n(7,w=i)):s.logError(yn(new Error("Cannot find state with id"),{additional:{stateId:t}})),await Ae(),!u)return;const a=u.getBoundingClientRect();let l=m.filter((t=>{var n;return!(!t.json.id||e.has(t.json.id))||(null===(n=t.resolvePromise)||void 0===n||n.call(t),!1)})).map((t=>$(a,t,"in")));o=o.filter((t=>{var e;return!(!t.json.id||h.has(t.json.id))||(null===(e=t.resolvePromise)||void 0===e||e.call(t),!1)}));const c=o.concat(l),p=c.reduce(((t,e)=>Math.max(t,Ei(e.transitions))),0),f=y.filter((t=>d.has(t.id))).map((t=>({json:Object.assign(Object.assign({},t.json),{margins:void 0,width:{type:"match_parent"},height:{type:"match_parent"}}),templateContext:t.templateContext,rootBbox:a,beforeBbox:d.get(t.id),afterBbox:t.node.getBoundingClientRect(),node:t.node,transition:Bi(t.transitions),resolvePromise:t.resolvePromise})));n(6,g=[...c.map((t=>Object.assign(Object.assign({},t),{maxDuration:p}))),...f]),d.clear(),s.setRunning("stateChange",!1)},getChild(t){if(f&&f.has(t))return f.get(t);s.logError(yn(new Error("Missing state block with id"),{additional:{id:t}}))}}),ve(Nn,{registerInstance(t,e){f||(f=new Map),f.has(t)?s.logError(yn(new Error("Duplicate state with id"),{additional:{id:t}})):f.set(t,e)},unregisterInstance(t){null==f||f.delete(t)},runVisibilityTransition(t,e,r,o,i){if(!u)return Promise.resolve();const a=$(u.getBoundingClientRect(),{json:t,templateContext:e,transitions:r,node:o},i),l=Ei(a.transitions),s=Object.assign(Object.assign({},a),{maxDuration:l});return n(6,g=[...g.filter((t=>t.node!==a.node)),s]),new Promise((t=>{s.resolvePromise=t}))},registerChildWithTransitionIn(t,e,n,r){const o={json:t,templateContext:e,transitions:n,node:r};return m.push(o),new Promise((t=>{o.resolvePromise=t}))},registerChildWithTransitionOut(t,e,n,r){const o={json:t,templateContext:e,transitions:n,node:r};return v.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,templateContext:e,transitions:n,node:r};return y.push(i),new Promise((t=>{i.resolvePromise=t}))},hasTransitionChange:t=>!!t&&d.has(t),registerChild(t){h.add(t)},unregisterChild(t){h.delete(t)}})):(p=!0,s.logError(yn(new Error('Missing "id" prop for div "state"'))));let w=null;const x=s.getJsonWithVars(o.default_state_id);let k=!1;function E(t){n(6,g=g.filter((e=>e!==t))),t.resolvePromise&&t.resolvePromise()}return me((()=>{_&&!(null==l?void 0:l.fakeElement)&&c.unregisterInstance(_)})),t.$$set=t=>{"json"in t&&n(0,o=t.json),"templateContext"in t&&n(1,i=t.templateContext),"origJson"in t&&n(2,a=t.origJson),"layoutParams"in t&&n(3,l=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty&&o&&(h=new Set),1&t.$$.dirty&&n(9,r=o.states||[]),512&t.$$.dirty&&((null==r?void 0:r.length)?n(5,p=!1):(n(5,p=!0),s.logError(yn(new Error('Empty "states" prop for div "state"'))))),512&t.$$.dirty&&function(t){k||(k=!0,t.length&&(x?(b=x,n(7,w=t.find((t=>t.state_id===b))||null),w||s.logError(yn(new Error("Cannot find state for default_state_id"),{additional:{selectedId:b}}))):(n(7,w=t[0]),b=w.state_id)))}(r)},[o,i,a,l,u,p,g,w,E,r,t=>E(t),t=>E(t),function(t){be[t?"unshift":"push"]((()=>{u=t,n(4,u)}))}]}const Wi={pager:"divkit-c5feb",pager__items:"divkit-f6987",pager__item:"divkit-feca7",pager_orientation_horizontal:"divkit-b0a1c",pager_orientation_vertical:"divkit-f772f"},{Boolean:Li}=We;function Ui(t,e,n){const r=t.slice();return r[47]=e[n],r}function qi(t){let e,n;return e=new br({props:{cls:zn("pager",Wi,t[8]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customPaddings:!0,$$slots:{default:[Gi]},$$scope:{ctx:t}}}),{c(){He(e.$$.fragment)},l(t){Ge(e.$$.fragment,t)},m(t,r){Ke(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.cls=zn("pager",Wi,t[8])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),33336&n[0]|524288&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Je(e.$$.fragment,t),n=!0)},o(t){Oe(e.$$.fragment,t),n=!1},d(t){Xe(e,t)}}}function Hi(t){var e;let n,r,o,i,a;return r=new Pa({props:{div:t[47].json,templateContext:t[47].templateContext,origJson:t[47].origJson,layoutParams:null!==(e=t[3])&&void 0!==e&&e.fakeElement?{fakeElement:!0}:void 0}}),{c(){n=qt("div"),He(r.$$.fragment),o=Kt(),this.h()},l(t){n=re(t,"DIV",{class:!0});var e=te(n);Ge(r.$$.fragment,e),o=ae(e),e.forEach(Lt),this.h()},h(){Zt(n,"class",i=Wi.pager__item)},m(t,e){Wt(t,n,e),Ke(r,n,null),Rt(n,o),a=!0},p(t,e){var n;const o={};16&e[0]&&(o.div=t[47].json),16&e[0]&&(o.templateContext=t[47].templateContext),16&e[0]&&(o.origJson=t[47].origJson),8&e[0]&&(o.layoutParams=null!==(n=t[3])&&void 0!==n&&n.fakeElement?{fakeElement:!0}:void 0),r.$set(o)},i(t){a||(Je(r.$$.fragment,t),a=!0)},o(t){Oe(r.$$.fragment,t),a=!1},d(t){t&&Lt(n),Xe(r)}}}function Gi(t){let e,n,r,o,i,a,l=t[4],s=[];for(let e=0;e<l.length;e+=1)s[e]=Hi(Ui(t,l,e));const c=t=>Oe(s[t],1,1,(()=>{s[t]=null}));return{c(){e=qt("div");for(let t=0;t<s.length;t+=1)s[t].c();this.h()},l(t){e=re(t,"DIV",{class:!0,style:!0});var n=te(e);for(let t=0;t<s.length;t+=1)s[t].l(n);n.forEach(Lt),this.h()},h(){Zt(e,"class",n=Wi.pager__items+" "+(t[15]?gn:"")),Zt(e,"style",r=bn(t[9]))},m(n,r){Wt(n,e,r);for(let t=0;t<s.length;t+=1)s[t].m(e,null);t[36](e),o=!0,i||(a=Yt(e,"scroll",t[16]),i=!0)},p(t,i){if(24&i[0]){let n;for(l=t[4],n=0;n<l.length;n+=1){const r=Ui(t,l,n);s[n]?(s[n].p(r,i),Je(s[n],1)):(s[n]=Hi(r),s[n].c(),Je(s[n],1),s[n].m(e,null))}for(Me(),n=l.length;n<s.length;n+=1)c(n);Te()}(!o||32768&i[0]&&n!==(n=Wi.pager__items+" "+(t[15]?gn:"")))&&Zt(e,"class",n),(!o||512&i[0]&&r!==(r=bn(t[9])))&&Zt(e,"style",r)},i(t){if(!o){for(let t=0;t<l.length;t+=1)Je(s[t]);o=!0}},o(t){s=s.filter(Li);for(let t=0;t<s.length;t+=1)Oe(s[t]);o=!1},d(n){n&&Lt(e),Ut(s,n),t[36](null),i=!1,a()}}}function Ki(t){let e,n,r=!t[7]&&qi(t);return{c(){r&&r.c(),e=Xt()},l(t){r&&r.l(t),e=Xt()},m(t,o){r&&r.m(t,o),Wt(t,e,o),n=!0},p(t,n){t[7]?r&&(Me(),Oe(r,1,1,(()=>{r=null})),Te()):r?(r.p(t,n),128&n[0]&&Je(r,1)):(r=qi(t),r.c(),Je(r,1),r.m(e.parentNode,e))},i(t){n||(Je(r),n=!0)},o(t){Oe(r),n=!1},d(t){r&&r.d(t),t&&Lt(e)}}}function Xi(t,e,n){let r,o,i,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_=ft,b=ft,w=ft,x=ft,k=ft,E=ft;var C,A,V,j,P,D,S;t.$$.on_destroy.push((()=>_())),t.$$.on_destroy.push((()=>b())),t.$$.on_destroy.push((()=>w())),t.$$.on_destroy.push((()=>x())),t.$$.on_destroy.push((()=>k())),t.$$.on_destroy.push((()=>E()));let{json:I={}}=e,{templateContext:z}=e,{origJson:F}=e,{layoutParams:N}=e;const M=ye(vn),T=M.genId("pager");let J,O=!1,B=0,R=0,W=!1,L="horizontal",U="",q="",H="";const G=Lo((function(){const t=function(){const t=Array.from(J.children),e=J.getBoundingClientRect(),n=t.findIndex((t=>{return n=e,r=t.getBoundingClientRect(),"horizontal"===L?r.left>=n.left&&r.right<=n.right:r.top>=n.top&&r.bottom<=n.bottom;var n,r}));return-1!==n?n:B}();t!==B&&n(25,B=t)}),50);function K(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"smooth";const r="horizontal"===L,o=J.children[t],i=r?"offsetLeft":"offsetTop",a=r?"left":"top";J.scroll({[a]:o[i],behavior:e}),n(25,B=t)}return I.id&&!(null==N?void 0:N.fakeElement)&&M.registerInstance(I.id,{setCurrentItem(t){if(t<0||t>r.length-1)throw new Error('Item is out of range in "set-current-item" action');K(t)},setPreviousItem(t){let e=B-1;e<0&&(e="ring"===t?r.length-1:B),K(e)},setNextItem(t){let e=B+1;e>r.length-1&&(e="ring"===t?0:B),K(e)}}),ge((()=>{if(Boolean(document.getElementById("".concat(T,"-tab-0")))){const t=[...J.children];for(const[e,n]of t.entries())n.setAttribute("role","tabpanel"),n.setAttribute("id","".concat(T,"-panel-").concat(e)),n.setAttribute("aria-labelledby","".concat(T,"-tab-").concat(e))}})),me((()=>{I.id&&!(null==N?void 0:N.fakeElement)&&M.unregisterInstance(I.id)})),t.$$set=t=>{"json"in t&&n(0,I=t.json),"templateContext"in t&&n(1,z=t.templateContext),"origJson"in t&&n(2,F=t.origJson),"layoutParams"in t&&n(3,N=t.layoutParams)},t.$$.update=()=>{if(131073&t.$$.dirty[0]&&((null===n(17,C=I.items)||void 0===C?void 0:C.length)&&Array.isArray(I.items)?n(24,O=!1):(n(24,O=!0),M.logError(yn(new Error('Incorrect or empty "items" prop for div "pager"'))))),16777219&t.$$.dirty[0]&&n(4,r=(!O&&I.items||[]).map((t=>{let e=t,n=z;return({templateContext:n,json:e}=M.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),1&t.$$.dirty[0]&&(n(14,o=M.getDerivedFromVars(I.layout_mode)),b(),b=Et(o,(t=>n(32,g=t)))),2&t.$$.dirty[1]&&(g?"percentage"!==g.type&&"fixed"!==g.type?(n(26,W=!0),M.logError(yn(new Error('Incorrect value of "layout_mode.type" for div "pager"')))):n(26,W=!1):(n(26,W=!0),M.logError(yn(new Error('Empty "layout_mode" prop for div "pager"'))))),1&t.$$.dirty[0]&&(n(13,i=M.getDerivedFromVars(I.orientation)),k(),k=Et(i,(t=>n(35,y=t)))),134217728&t.$$.dirty[0]|16&t.$$.dirty[1]&&n(27,L=vo(y,L)),1&t.$$.dirty[0]&&(n(12,a=M.getDerivedFromVars(I.item_spacing)),x(),x=Et(a,(t=>n(34,v=t)))),8&t.$$.dirty[1]){const t=null==v?void 0:v.value;t&&Jn(t)&&n(28,U=wn(t||0))}if(1&t.$$.dirty[0]&&(n(11,l=M.getDerivedFromVars(I.paddings)),w(),w=Et(l,(t=>n(33,m=t)))),536870912&t.$$.dirty[0]|4&t.$$.dirty[1]&&n(29,q=On(m,q)),1&t.$$.dirty[0]&&(n(10,s=M.getDerivedFromVars(I.restrict_parent_scroll)),E(),E=Et(s,(t=>n(15,$=t)))),134217728&t.$$.dirty[0]&&n(31,c="horizontal"===L?"grid-auto-columns":"grid-auto-rows"),419168257&t.$$.dirty[0]|2&t.$$.dirty[1])if("fixed"===(null==g?void 0:g.type)){const t=xn("horizontal"===L?((null===n(18,A=I.paddings)||void 0===A?void 0:A.left)||0)+((null===n(19,V=I.paddings)||void 0===V?void 0:V.right)||0):((null===n(20,j=I.paddings)||void 0===j?void 0:j.top)||0)+((null===n(21,P=I.paddings)||void 0===P?void 0:P.bottom)||0)),e=null===n(22,D=g.neighbour_page_width)||void 0===D?void 0:D.value;n(30,H=e?"calc(100% + ".concat(t," - 2 * ").concat(xn(e)," - 2 * ").concat(U,")"):"100%")}else if("percentage"===(null==g?void 0:g.type)){const t=null===n(23,S=g.page_width)||void 0===S?void 0:S.value;n(30,H="".concat(Number(t),"%"))}1879048192&t.$$.dirty[0]|1&t.$$.dirty[1]&&n(9,u={"grid-gap":U,padding:q,[c]:H}),134217728&t.$$.dirty[0]&&n(8,d={orientation:L}),83886080&t.$$.dirty[0]&&n(7,h=O||W),33554448&t.$$.dirty[0]&&function(t,e){const n=I.id;if(n){const i=new Map(f);r=p,f=i.set(n,{instId:T,size:t,currentItem:e,scrollToPagerItem:K}),o=f,r.set(o)}var r,o}(r.length,B),33554432&t.$$.dirty[0]&&function(t){var e;if(t===R)return;R=t;const n=M.getJsonWithVars(null===(e=r[t].json)||void 0===e?void 0:e.selected_actions);(null==n?void 0:n.length)&&M.execAnyActions(n)}(B)},n(6,p=M.getStore("pagers")),_(),_=Et(p,(t=>n(38,f=t))),[I,z,F,N,r,J,p,h,d,u,s,l,a,i,o,$,G,C,A,V,j,P,D,S,O,B,W,L,U,q,H,c,g,m,v,y,function(t){be[t?"unshift":"push"]((()=>{J=t,n(5,J)}))}]}const Yi={indicator:"divkit-d8e3f",indicator__scroller:"divkit-b5db0",indicator__items:"divkit-d5d94",indicator__item:"divkit-f6629",indicator__item_active:"divkit-b39cd"};function Zi(t,e,n){const r=t.slice();r[36]=e[n],r[39]=n;const o=r[39]===r[13].currentItem;return r[37]=o,r}function Qi(t){let e,n=Array(t[13].size),r=[];for(let e=0;e<n.length;e+=1)r[e]=ta(Zi(t,n,e));return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=Xt()},l(t){for(let e=0;e<r.length;e+=1)r[e].l(t);e=Xt()},m(t,n){for(let e=0;e<r.length;e+=1)r[e].m(t,n);Wt(t,e,n)},p(t,o){if(3153920&o[0]){let i;for(n=Array(t[13].size),i=0;i<n.length;i+=1){const a=Zi(t,n,i);r[i]?r[i].p(a,o):(r[i]=ta(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){Ut(r,t),t&&Lt(e)}}}function ta(t){let e,n,r,o,i,a,l,s;function c(){return t[30](t[39])}return{c(){e=qt("div"),this.h()},l(t){e=re(t,"DIV",{class:!0,role:!0,id:!0,"aria-controls":!0,"aria-selected":!0,tabindex:!0}),te(e).forEach(Lt),this.h()},h(){Zt(e,"class",n=zn("indicator__item",Yi,{active:t[37]})+" "+dn),Zt(e,"role","tab"),Zt(e,"id",r=t[13].instId+"-tab-"+t[39]),Zt(e,"aria-controls",o=t[13].instId+"-panel-"+t[39]),Zt(e,"aria-selected",i=t[37]?"true":"false"),Zt(e,"tabindex",a=t[37]?0:-1)},m(n,r){Wt(n,e,r),l||(s=[Yt(e,"click",c),Yt(e,"keydown",t[21])],l=!0)},p(l,s){t=l,8192&s[0]&&n!==(n=zn("indicator__item",Yi,{active:t[37]})+" "+dn)&&Zt(e,"class",n),8192&s[0]&&r!==(r=t[13].instId+"-tab-"+t[39])&&Zt(e,"id",r),8192&s[0]&&o!==(o=t[13].instId+"-panel-"+t[39])&&Zt(e,"aria-controls",o),8192&s[0]&&i!==(i=t[37]?"true":"false")&&Zt(e,"aria-selected",i),8192&s[0]&&a!==(a=t[37]?0:-1)&&Zt(e,"tabindex",a)},d(t){t&&Lt(e),l=!1,$t(s)}}}function ea(t){let e,n,r,o,i="0 ".concat(wn((t[10]-1)*t[4]/2)),a="0 ".concat(wn((t[9]-t[4])/2)),l=t[13]&&Qi(t);return{c(){e=qt("div"),n=qt("div"),l&&l.c(),this.h()},l(t){e=re(t,"DIV",{class:!0});var r=te(e);n=re(r,"DIV",{class:!0,role:!0});var o=te(n);l&&l.l(o),o.forEach(Lt),r.forEach(Lt),this.h()},h(){Zt(n,"class",r=Yi.indicator__items),Zt(n,"role","tablist"),se(n,"margin",i,!1),se(n,"--divkit-indicator-width",wn(t[4]),!1),se(n,"--divkit-indicator-height",wn(t[5]),!1),se(n,"--divkit-indicator-border-radius",wn(t[6]),!1),se(n,"--divkit-indicator-active-color",t[7],!1),se(n,"--divkit-indicator-inactive-color",t[8],!1),se(n,"--divkit-indicator-active-scale",t[10],!1),se(n,"--divkit-indicator-margin",a,!1),Zt(e,"class",o=Yi.indicator__scroller)},m(r,o){Wt(r,e,o),Rt(e,n),l&&l.m(n,null),t[31](n),t[32](e)},p(t,e){t[13]?l?l.p(t,e):(l=Qi(t),l.c(),l.m(n,null)):l&&(l.d(1),l=null),1040&e[0]&&i!==(i="0 ".concat(wn((t[10]-1)*t[4]/2)))&&se(n,"margin",i,!1),16&e[0]&&se(n,"--divkit-indicator-width",wn(t[4]),!1),32&e[0]&&se(n,"--divkit-indicator-height",wn(t[5]),!1),64&e[0]&&se(n,"--divkit-indicator-border-radius",wn(t[6]),!1),128&e[0]&&se(n,"--divkit-indicator-active-color",t[7],!1),256&e[0]&&se(n,"--divkit-indicator-inactive-color",t[8],!1),1024&e[0]&&se(n,"--divkit-indicator-active-scale",t[10],!1),528&e[0]&&a!==(a="0 ".concat(wn((t[9]-t[4])/2)))&&se(n,"--divkit-indicator-margin",a,!1)},d(n){n&&Lt(e),l&&l.d(),t[31](null),t[32](null)}}}function na(t){let e,n;return e=new br({props:{cls:zn("indicator",Yi,{}),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[ea]},$$scope:{ctx:t}}}),{c(){He(e.$$.fragment)},l(t){Ge(e.$$.fragment,t)},m(t,r){Ke(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),16368&n[0]|512&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Je(e.$$.fragment,t),n=!0)},o(t){Oe(e.$$.fragment,t),n=!1},d(t){Xe(e,t)}}}function ra(t,e,n){let r,o,i,a,l,s,c,u,d,h,p,f,g=ft,m=ft,v=ft,y=ft,$=ft,_=ft;var b;t.$$.on_destroy.push((()=>g())),t.$$.on_destroy.push((()=>m())),t.$$.on_destroy.push((()=>v())),t.$$.on_destroy.push((()=>y())),t.$$.on_destroy.push((()=>$())),t.$$.on_destroy.push((()=>_()));let{json:w={}}=e,{templateContext:x}=e,{origJson:k}=e,{layoutParams:E}=e;const A=ye(vn);let V,j,P,D=5,S=10,I=10,z=5,F="#ffdc60",N=C("#33919cb5"),M=15,T=1.3;function J(t){t!==P.currentItem&&P.scrollToPagerItem(t)}async function O(t){P.scrollToPagerItem(t),await Ae();const e=j.querySelector(".".concat(Yi.indicator__item_active));e&&e.focus()}return t.$$set=t=>{"json"in t&&n(0,w=t.json),"templateContext"in t&&n(1,x=t.templateContext),"origJson"in t&&n(2,k=t.origJson),"layoutParams"in t&&n(3,E=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty[0]&&(n(19,r=A.getDerivedFromVars(w.shape)),_(),_=Et(r,(t=>n(29,f=t)))),549453936&t.$$.dirty[0]&&f&&("rounded_rectangle"===f.type?(f.item_width&&n(4,S=Bn(f.item_width.value,S)),f.item_height&&n(5,I=Bn(f.item_height.value,I)),f.corner_radius&&n(6,z=Bn(f.corner_radius.value,z))):"circle"===f.type&&(n(23,D=Bn(null===n(22,b=f.radius)||void 0===b?void 0:b.value,D)),n(4,S=n(5,I=n(6,z=2*D))))),1&t.$$.dirty[0]&&(n(18,o=A.getDerivedFromVars(w.active_item_color)),$(),$=Et(o,(t=>n(28,p=t)))),268435584&t.$$.dirty[0]&&n(7,F=C(p,1,F)),1&t.$$.dirty[0]&&(n(17,i=A.getDerivedFromVars(w.inactive_item_color)),y(),y=Et(i,(t=>n(27,h=t)))),134217984&t.$$.dirty[0]&&n(8,N=C(h,1,N)),1&t.$$.dirty[0]&&(n(16,a=A.getDerivedFromVars(w.space_between_centers)),v(),v=Et(a,(t=>n(26,d=t)))),67109376&t.$$.dirty[0]&&d&&n(9,M=Bn(d.value,M)),1&t.$$.dirty[0]&&(n(15,l=A.getDerivedFromVars(w.active_item_size)),m(),m=Et(l,(t=>n(25,u=t)))),33555456&t.$$.dirty[0]&&n(10,T=xr(u,T)),16777216&t.$$.dirty[0]&&async function(t){if(w.pager_id&&t.has(w.pager_id)){n(13,P=t.get(w.pager_id)),await Ae();const e=j.children[P.currentItem].offsetLeft;V.scroll({left:e-V.clientWidth/2,behavior:"smooth"})}}(c)},n(14,s=A.getStore("pagers")),g(),g=Et(s,(t=>n(24,c=t))),[w,x,k,E,S,I,z,F,N,M,T,V,j,P,s,l,a,i,o,r,J,function(t){if(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)return;const{size:e,currentItem:n}=P;if(37===t.which)O(n-1<0?n:n-1);else if(39===t.which)O(n+1>=e?n:n+1);else if(36===t.which)O(0);else{if(35!==t.which)return;O(e-1)}t.preventDefault()},b,D,c,u,d,h,p,f,t=>J(t),function(t){be[t?"unshift":"push"]((()=>{j=t,n(12,j)}))},function(t){be[t?"unshift":"push"]((()=>{V=t,n(11,V)}))}]}const oa={slider:"divkit-ef4f7",slider__input:"divkit-d1d65",slider__input_secondary:"divkit-c7980",slider__thumb:"divkit-f3453",slider__thumb_secondary:"divkit-e1984","slider__tracks-wrapper":"divkit-f7338","slider__tracks-inner":"divkit-ac903",slider__track:"divkit-e956c","slider__active-track":"divkit-ec5bf","slider__thumb-text":"divkit-c4af5","slider__thumb-text_secondary":"divkit-d8821",slider__tick:"divkit-bd9bf",slider__tick_active:"divkit-d8ce2",slider__tick_inactive:"divkit-e71e7"};function ia(t,e){if(!t||!t.font_size)return e;const n=t.offset,r=t.text_color&&C(t.text_color)||"#000",o=kr(t.font_weight);if(ir(t.font_size)&&"transparent"!==r){var i,a;const e={fontSize:wn(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 aa(t,e,n){return Math.max(e,Math.min(n,t))}function la(t,e,n){const r=t.slice();return r[78]=e[n],r}function sa(t,e,n){const r=t.slice();return r[78]=e[n],r}function ca(t){let e,n;return e=new br({props:{cls:zn("slider",oa,t[21]),style:t[22],customDescription:!0,customActions:"slider",json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[fa]},$$scope:{ctx:t}}}),{c(){He(e.$$.fragment)},l(t){Ge(e.$$.fragment,t)},m(t,r){Ke(e,t,r),n=!0},p(t,n){const r={};2097152&n[0]&&(r.cls=zn("slider",oa,t[21])),4194304&n[0]&&(r.style=t[22]),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),27246576&n[0]|2097152&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Je(e.$$.fragment,t),n=!0)},o(t){Oe(e.$$.fragment,t),n=!1},d(t){Xe(e,t)}}}function ua(t){let e,n;return{c(){e=qt("div"),this.h()},l(t){e=re(t,"DIV",{class:!0}),te(e).forEach(Lt),this.h()},h(){Zt(e,"class",n=oa.slider__tick+" "+oa.slider__tick_active),se(e,"--divkit-slider-tick",t[78],!1)},m(t,n){Wt(t,e,n)},p(t,n){131072&n[0]&&se(e,"--divkit-slider-tick",t[78],!1)},d(t){t&&Lt(e)}}}function da(t){let e,n;return{c(){e=qt("div"),this.h()},l(t){e=re(t,"DIV",{class:!0}),te(e).forEach(Lt),this.h()},h(){Zt(e,"class",n=oa.slider__tick+" "+oa.slider__tick_inactive),se(e,"--divkit-slider-tick",t[78],!1)},m(t,n){Wt(t,e,n)},p(t,n){262144&n[0]&&se(e,"--divkit-slider-tick",t[78],!1)},d(t){t&&Lt(e)}}}function ha(t){let e,n,r,o,i;return{c(){e=qt("div"),n=qt("div"),r=Gt(t[6]),this.h()},l(o){e=re(o,"DIV",{class:!0});var i=te(e);n=re(i,"DIV",{class:!0});var a=te(n);r=ie(a,t[6]),a.forEach(Lt),i.forEach(Lt),this.h()},h(){var r,a,l;Zt(n,"class",o=oa["slider__thumb-text-inner"]),se(n,"font-size",(null===(r=t[12])||void 0===r?void 0:r.fontSize)||"1em",!1),se(n,"font-weight",(null===(a=t[12])||void 0===a?void 0:a.fontWeight)||"",!1),se(n,"color",(null===(l=t[12])||void 0===l?void 0:l.textColor)||"#000",!1),Zt(e,"class",i=oa["slider__thumb-text"])},m(t,o){Wt(t,e,o),Rt(e,n),Rt(n,r)},p(t,e){var o,i,a;64&e[0]&&le(r,t[6]),4096&e[0]&&se(n,"font-size",(null===(o=t[12])||void 0===o?void 0:o.fontSize)||"1em",!1),4096&e[0]&&se(n,"font-weight",(null===(i=t[12])||void 0===i?void 0:i.fontWeight)||"",!1),4096&e[0]&&se(n,"color",(null===(a=t[12])||void 0===a?void 0:a.textColor)||"#000",!1)},d(t){t&&Lt(e)}}}function pa(t){let e,n,r,o,i;return{c(){e=qt("div"),n=qt("div"),r=Gt(t[7]),this.h()},l(o){e=re(o,"DIV",{class:!0});var i=te(e);n=re(i,"DIV",{class:!0});var a=te(n);r=ie(a,t[7]),a.forEach(Lt),i.forEach(Lt),this.h()},h(){var r,a,l;Zt(n,"class",o=oa["slider__thumb-text-inner"]),se(n,"font-size",(null===(r=t[13])||void 0===r?void 0:r.fontSize)||"1em",!1),se(n,"font-weight",(null===(a=t[13])||void 0===a?void 0:a.fontWeight)||"",!1),se(n,"color",(null===(l=t[13])||void 0===l?void 0:l.textColor)||"#000",!1),Zt(e,"class",i=oa["slider__thumb-text"]+" "+oa["slider__thumb-text_secondary"])},m(t,o){Wt(t,e,o),Rt(e,n),Rt(n,r)},p(t,e){var o,i,a;128&e[0]&&le(r,t[7]),8192&e[0]&&se(n,"font-size",(null===(o=t[13])||void 0===o?void 0:o.fontSize)||"1em",!1),8192&e[0]&&se(n,"font-weight",(null===(i=t[13])||void 0===i?void 0:i.fontWeight)||"",!1),8192&e[0]&&se(n,"color",(null===(a=t[13])||void 0===a?void 0:a.textColor)||"#000",!1)},d(t){t&&Lt(e)}}}function fa(t){let e,n,r,o,i,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x=t[17],k=[];for(let e=0;e<x.length;e+=1)k[e]=ua(sa(t,x,e));let E=t[18],C=[];for(let e=0;e<E.length;e+=1)C[e]=da(la(t,E,e));let A=t[12]&&ha(t),V=t[37]&&function(t){let e,n,r=t[13]&&pa(t);return{c(){e=qt("div"),r&&r.c(),this.h()},l(t){e=re(t,"DIV",{class:!0});var n=te(e);r&&r.l(n),n.forEach(Lt),this.h()},h(){Zt(e,"class",n=oa.slider__thumb+" "+oa.slider__thumb_secondary),se(e,"border-radius",wn(t[9].borderRadius),!1),se(e,"background",t[9].background,!1),se(e,"box-shadow",t[9].boxShadow||"",!1)},m(t,n){Wt(t,e,n),r&&r.m(e,null)},p(t,n){t[13]?r?r.p(t,n):(r=pa(t),r.c(),r.m(e,null)):r&&(r.d(1),r=null),512&n[0]&&se(e,"border-radius",wn(t[9].borderRadius),!1),512&n[0]&&se(e,"background",t[9].background,!1),512&n[0]&&se(e,"box-shadow",t[9].boxShadow||"",!1)},d(t){t&&Lt(e),r&&r.d()}}}(t),j=t[37]&&function(t){let e,n,r,o,i;return{c(){e=qt("input"),this.h()},l(t){e=re(t,"INPUT",{type:!0,class:!0,min:!0,max:!0,step:!0,"aria-label":!0}),this.h()},h(){Zt(e,"type","range"),Zt(e,"class",n=t[16]?oa.slider__input:"".concat(oa.slider__input," ").concat(oa.slider__input_secondary)),Zt(e,"min",t[4]),Zt(e,"max",t[5]),Zt(e,"step","1"),e.value=r=t[16]?t[6]:t[7],Zt(e,"aria-label",t[20])},m(n,r){Wt(n,e,r),o||(i=[Yt(e,"input",t[68]),Yt(e,"mousedown",t[37]?t[40]:null),Yt(e,"touchstart",t[37]?t[40]:null)],o=!0)},p(t,o){65536&o[0]&&n!==(n=t[16]?oa.slider__input:"".concat(oa.slider__input," ").concat(oa.slider__input_secondary))&&Zt(e,"class",n),16&o[0]&&Zt(e,"min",t[4]),32&o[0]&&Zt(e,"max",t[5]),65728&o[0]&&r!==(r=t[16]?t[6]:t[7])&&(e.value=r),1048576&o[0]&&Zt(e,"aria-label",t[20])},d(t){t&&Lt(e),o=!1,$t(i)}}}(t);return{c(){e=qt("div"),n=qt("div"),r=qt("div"),i=Kt(),a=qt("div"),s=Kt();for(let t=0;t<k.length;t+=1)k[t].c();c=Kt();for(let t=0;t<C.length;t+=1)C[t].c();u=Kt(),d=qt("div"),A&&A.c(),p=Kt(),V&&V.c(),f=Kt(),g=qt("input"),y=Kt(),j&&j.c(),this.h()},l(t){e=re(t,"DIV",{class:!0});var o=te(e);n=re(o,"DIV",{class:!0});var l=te(n);r=re(l,"DIV",{class:!0}),te(r).forEach(Lt),i=ae(l),a=re(l,"DIV",{class:!0}),te(a).forEach(Lt),s=ae(l);for(let t=0;t<k.length;t+=1)k[t].l(l);c=ae(l);for(let t=0;t<C.length;t+=1)C[t].l(l);u=ae(l),d=re(l,"DIV",{class:!0});var h=te(d);A&&A.l(h),h.forEach(Lt),p=ae(l),V&&V.l(l),f=ae(l),g=re(l,"INPUT",{type:!0,class:!0,min:!0,max:!0,step:!0,"aria-label":!0}),y=ae(l),j&&j.l(l),l.forEach(Lt),o.forEach(Lt),this.h()},h(){Zt(r,"class",o=oa.slider__track),se(r,"height",wn(t[10].height),!1),se(r,"border-radius",wn(t[10].borderRadius),!1),se(r,"background",t[10].background,!1),se(r,"box-shadow",t[10].boxShadow||"",!1),Zt(a,"class",l=oa["slider__active-track"]),se(a,"left",(100*t[23]).toFixed(2)+"%",!1),se(a,"width",(100*t[24]).toFixed(2)+"%",!1),se(a,"height",wn(t[11].height),!1),se(a,"border-radius",wn(t[11].borderRadius),!1),se(a,"background",t[11].background,!1),se(a,"box-shadow",t[11].boxShadow||"",!1),Zt(d,"class",h=oa.slider__thumb),se(d,"border-radius",wn(t[8].borderRadius),!1),se(d,"background",t[8].background,!1),se(d,"box-shadow",t[8].boxShadow||"",!1),Zt(g,"type","range"),Zt(g,"class",m=t[16]?"".concat(oa.slider__input," ").concat(oa.slider__input_secondary):oa.slider__input),Zt(g,"min",t[4]),Zt(g,"max",t[5]),Zt(g,"step","1"),g.value=v=t[16]?t[7]:t[6],Zt(g,"aria-label",t[19]),Zt(n,"class",$=oa["slider__tracks-inner"]),Zt(e,"class",_=oa["slider__tracks-wrapper"])},m(o,l){Wt(o,e,l),Rt(e,n),Rt(n,r),Rt(n,i),Rt(n,a),Rt(n,s);for(let t=0;t<k.length;t+=1)k[t].m(n,null);Rt(n,c);for(let t=0;t<C.length;t+=1)C[t].m(n,null);Rt(n,u),Rt(n,d),A&&A.m(d,null),Rt(n,p),V&&V.m(n,null),Rt(n,f),Rt(n,g),Rt(n,y),j&&j.m(n,null),t[69](n),b||(w=Yt(g,"input",t[67]),b=!0)},p(t,e){if(1024&e[0]&&se(r,"height",wn(t[10].height),!1),1024&e[0]&&se(r,"border-radius",wn(t[10].borderRadius),!1),1024&e[0]&&se(r,"background",t[10].background,!1),1024&e[0]&&se(r,"box-shadow",t[10].boxShadow||"",!1),8388608&e[0]&&se(a,"left",(100*t[23]).toFixed(2)+"%",!1),16777216&e[0]&&se(a,"width",(100*t[24]).toFixed(2)+"%",!1),2048&e[0]&&se(a,"height",wn(t[11].height),!1),2048&e[0]&&se(a,"border-radius",wn(t[11].borderRadius),!1),2048&e[0]&&se(a,"background",t[11].background,!1),2048&e[0]&&se(a,"box-shadow",t[11].boxShadow||"",!1),131072&e[0]){let r;for(x=t[17],r=0;r<x.length;r+=1){const o=sa(t,x,r);k[r]?k[r].p(o,e):(k[r]=ua(o),k[r].c(),k[r].m(n,c))}for(;r<k.length;r+=1)k[r].d(1);k.length=x.length}if(262144&e[0]){let r;for(E=t[18],r=0;r<E.length;r+=1){const o=la(t,E,r);C[r]?C[r].p(o,e):(C[r]=da(o),C[r].c(),C[r].m(n,u))}for(;r<C.length;r+=1)C[r].d(1);C.length=E.length}t[12]?A?A.p(t,e):(A=ha(t),A.c(),A.m(d,null)):A&&(A.d(1),A=null),256&e[0]&&se(d,"border-radius",wn(t[8].borderRadius),!1),256&e[0]&&se(d,"background",t[8].background,!1),256&e[0]&&se(d,"box-shadow",t[8].boxShadow||"",!1),t[37]&&V.p(t,e),65536&e[0]&&m!==(m=t[16]?"".concat(oa.slider__input," ").concat(oa.slider__input_secondary):oa.slider__input)&&Zt(g,"class",m),16&e[0]&&Zt(g,"min",t[4]),32&e[0]&&Zt(g,"max",t[5]),65728&e[0]&&v!==(v=t[16]?t[7]:t[6])&&(g.value=v),524288&e[0]&&Zt(g,"aria-label",t[19]),t[37]&&j.p(t,e)},d(n){n&&Lt(e),Ut(k,n),Ut(C,n),A&&A.d(),V&&V.d(),j&&j.d(),t[69](null),b=!1,w()}}}function ga(t){let e,n,r,o,i=!t[14]&&ca(t);return{c(){i&&i.c(),e=Xt()},l(t){i&&i.l(t),e=Xt()},m(a,l){i&&i.m(a,l),Wt(a,e,l),n=!0,r||(o=Yt(window,"resize",t[42]),r=!0)},p(t,n){t[14]?i&&(Me(),Oe(i,1,1,(()=>{i=null})),Te()):i?(i.p(t,n),16384&n[0]&&Je(i,1)):(i=ca(t),i.c(),Je(i,1),i.m(e.parentNode,e))},i(t){n||(Je(i),n=!0)},o(t){Oe(i),n=!1},d(t){i&&i.d(t),t&&Lt(e),r=!1,o()}}}function ma(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 va(t,e,n){let r,o,i,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x,k,E,C,A,V,j,P,D,S,I,z,F,N,M=ft,T=ft,J=ft,O=ft,B=ft,R=ft,W=ft,L=ft,U=ft,q=ft,H=ft,G=ft;var K,X,Y,Z;t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>G()));let{json:Q={}}=e,{templateContext:tt}=e,{origJson:et}=e,{layoutParams:nt}=e;const rt={width:10,height:10,borderRadius:5,background:"#000"},ot=["rounded_rectangle","circle"],it=["rounded_rectangle"],at=ye(vn),lt=ye(Xn);let st,ct=!1,ut=0,dt=100;const ht=at.getJsonWithVars(Q.thumb_value_variable),pt=at.getJsonWithVars(Q.thumb_secondary_value_variable);let gt=ht&&at.getVariable(ht,"integer")||on("temp","integer",0);Ct(t,gt,(t=>n(64,z=t)));let mt=pt&&at.getVariable(pt,"integer")||on("temp","integer",0);Ct(t,mt,(t=>n(63,I=t)));let vt,yt,$t,_t=aa(z||0,ut,dt),bt=aa(I||0,ut,dt),wt=rt,xt=wt,kt=rt,At=rt,Vt=null,jt=null,Pt=$t,Dt="",St="",It=!1;function zt(t,e){const r=Number(t.target.value);ct===("first"===e)?(n(7,bt=r),mt.setValue(r)):(n(6,_t=r),gt.setValue(r))}let Ft=!1;function Nt(){if(!st)return;const t=dt-ut,e=(null==Vt?void 0:Vt.width)||0,n=(null==jt?void 0:jt.width)||0;Math.max(e,n)*t>=(null==st?void 0:st.clientWidth)?Ft||(at.logError(yn(new Error("Slider ticks overlap each other"),{level:"warn"})),Ft=!0):Ft=!1}const Mt=Lo(Nt,50);return ge((()=>{Nt()})),t.$$set=t=>{"json"in t&&n(0,Q=t.json),"templateContext"in t&&n(1,tt=t.templateContext),"origJson"in t&&n(2,et=t.origJson),"layoutParams"in t&&n(3,nt=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&(n(36,r=at.getDerivedFromVars(Q.min_value)),G(),G=Et(r,(t=>n(66,N=t)))),1&t.$$.dirty[0]&&(n(35,o=at.getDerivedFromVars(Q.max_value)),H(),H=Et(o,(t=>n(65,F=t)))),48&t.$$.dirty[0]|24&t.$$.dirty[2]&&(n(4,ut=qn(N,ut)),n(5,dt=qn(F,dt)),Nt()),112&t.$$.dirty[0]|4&t.$$.dirty[2]){const t=aa(z||0,ut,dt);t!==_t&&n(6,_t=t)}if(176&t.$$.dirty[0]|2&t.$$.dirty[2]){const t=aa(I||0,ut,dt);t!==bt&&n(7,bt=t)}if(1&t.$$.dirty[0]&&(n(34,i=at.getDerivedFromVars(Q.thumb_style)),q(),q=Et(i,(t=>n(62,S=t)))),256&t.$$.dirty[0]|1&t.$$.dirty[2]&&n(8,wt=Hr(S,ot,wt)),1&t.$$.dirty[0]&&(n(33,a=at.getDerivedFromVars(Q.thumb_secondary_style)),U(),U=Et(a,(t=>n(61,D=t)))),256&t.$$.dirty[0]|1073741824&t.$$.dirty[1]&&n(9,xt=Hr(D,ot,wt)),1&t.$$.dirty[0]&&(n(32,l=at.getDerivedFromVars(Q.track_inactive_style)),L(),L=Et(l,(t=>n(60,P=t)))),1024&t.$$.dirty[0]|536870912&t.$$.dirty[1]&&n(10,kt=Hr(P,it,kt)),1&t.$$.dirty[0]&&(n(31,s=at.getDerivedFromVars(Q.track_active_style)),W(),W=Et(s,(t=>n(59,j=t)))),2048&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&n(11,At=Hr(j,it,At)),1&t.$$.dirty[0]&&(n(30,c=at.getDerivedFromVars(Q.tick_mark_active_style)),R(),R=Et(c,(t=>n(58,V=t)))),134217728&t.$$.dirty[1]){let t=Hr(V,ot,rt);t!==rt&&n(47,Vt=t)}if(240&t.$$.dirty[0]|65536&t.$$.dirty[1]&&(Vt?(n(17,vt=pt?ma(Math.min(_t,bt),Math.max(_t,bt)+1,ut,dt,!0):ma(ut,_t,ut,dt,!0)),Nt()):n(17,vt=[])),1&t.$$.dirty[0]&&(n(29,u=at.getDerivedFromVars(Q.tick_mark_inactive_style)),B(),B=Et(u,(t=>n(57,A=t)))),67108864&t.$$.dirty[1]){let t=Hr(A,ot,rt);t!==rt&&n(48,jt=t)}if(240&t.$$.dirty[0]|131072&t.$$.dirty[1]&&(jt?(n(18,yt=pt?ma(Math.min(_t,bt),Math.max(_t,bt)+1,ut,dt,!1):ma(_t+1,dt+1,ut,dt,!0)),Nt()):n(18,yt=[])),1&t.$$.dirty[0]&&(n(28,d=at.getDerivedFromVars(Q.thumb_text_style)),O(),O=Et(d,(t=>n(56,C=t)))),4096&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&n(12,$t=ia(C,$t)),1&t.$$.dirty[0]&&(n(27,h=at.getDerivedFromVars(Q.thumb_secondary_text_style)),J(),J=Et(h,(t=>n(55,E=t)))),4096&t.$$.dirty[0]|16777216&t.$$.dirty[1]&&n(13,Pt=ia(E,$t)),1&t.$$.dirty[0]&&(n(26,p=at.getDerivedFromVars(Q.accessibility)),T(),T=Et(p,(t=>n(54,k=t)))),8388608&t.$$.dirty[1]&&((null==k?void 0:k.description)?n(19,Dt=k.description):at.logError(yn(new Error('Missing accessibility "description" for slider'),{level:"warn"}))),1&t.$$.dirty[0]&&(n(25,f=at.getDerivedFromVars(Q.secondary_value_accessibility)),M(),M=Et(f,(t=>n(53,x=t)))),4194304&t.$$.dirty[1]&&((null==x?void 0:x.description)?n(20,St=x.description):pt&&at.logError(yn(new Error('Missing second accessibility "description" for slider'),{level:"warn"}))),19712&t.$$.dirty[0]){let t=!1;lt.hasAction()?(at.logError(yn(new Error('Cannot show "slider" inside component with action'))),t=!0):wt===rt?(at.logError(yn(new Error('Missing "thumb_style" in slider'))),t=!0):At===rt?(at.logError(yn(new Error('Missing "track_active_style" in slider'))),t=!0):kt===rt&&(at.logError(yn(new Error('Missing "track_inactive_style" in slider'))),t=!0),t!==It&&n(14,It=t)}768&t.$$.dirty[0]&&n(52,g=wn(Math.max(...[wt.width,xt.width,0].filter(Jn)))),768&t.$$.dirty[0]&&n(51,m=wn(Math.max(...[wt.height,xt.height,0].filter(Jn)))),112&t.$$.dirty[0]&&n(50,v=(_t-ut)/(dt-ut)),176&t.$$.dirty[0]&&n(49,y=pt?(bt-ut)/(dt-ut):void 0),786432&t.$$.dirty[1]&&n(24,$=void 0!==y?Math.abs(y-v):v),786432&t.$$.dirty[1]&&n(23,_=void 0!==y?Math.min(y,v):0),13056&t.$$.dirty[0]|4190208&t.$$.dirty[1]&&n(22,b={"--divkit-slider-thumb-width":wn(wt.width),"--divkit-slider-thumb-height":wn(wt.height),"--divkit-slider-thumb-secondary-width":wn(xt.width),"--divkit-slider-thumb-secondary-height":wn(xt.height),"--divkit-slider-text-offset-x":(null===n(43,K=null==$t?void 0:$t.offset)||void 0===K?void 0:K.x)?xn($t.offset.x):void 0,"--divkit-slider-text-offset-y":(null===n(44,X=null==$t?void 0:$t.offset)||void 0===X?void 0:X.y)?xn($t.offset.y):void 0,"--divkit-slider-text-secondary-offset-x":(null===n(45,Y=null==Pt?void 0:Pt.offset)||void 0===Y?void 0:Y.x)?xn(Pt.offset.x):void 0,"--divkit-slider-text-secondary-offset-y":(null===n(46,Z=null==Pt?void 0:Pt.offset)||void 0===Z?void 0:Z.y)?xn(Pt.offset.y):void 0,"--divkit-slider-tick-active-width":Vt?wn(Vt.width):void 0,"--divkit-slider-tick-active-height":Vt?wn(Vt.height):void 0,"--divkit-slider-tick-active-border-radius":Vt?wn(Vt.borderRadius):void 0,"--divkit-slider-tick-active-background":(null==Vt?void 0:Vt.background)||void 0,"--divkit-slider-tick-active-box-shadow":(null==Vt?void 0:Vt.boxShadow)||void 0,"--divkit-slider-tick-inactive-width":jt?wn(jt.width):void 0,"--divkit-slider-tick-inactive-height":jt?wn(jt.height):void 0,"--divkit-slider-tick-inactive-border-radius":jt?wn(jt.borderRadius):void 0,"--divkit-slider-tick-inactive-background":(null==jt?void 0:jt.background)||void 0,"--divkit-slider-tick-inactive-box-shadow":(null==jt?void 0:jt.boxShadow)||void 0,"--divkit-slider-max-thumb-width":g,"--divkit-slider-max-thumb-height":m,"--divkit-slider-track-part":v,"--divkit-slider-track-secondary-part":y})},n(21,w={}),[Q,tt,et,nt,ut,dt,_t,bt,wt,xt,kt,At,$t,Pt,It,st,ct,vt,yt,Dt,St,w,b,_,$,f,p,h,d,u,c,s,l,a,i,o,r,pt,gt,mt,function(t){var e,r;const o="pageX"in t?t.pageX:null===(r=null===(e=t.changedTouches)||void 0===e?void 0:e[0])||void 0===r?void 0:r.pageX;if(void 0===o)return;const i=st.getBoundingClientRect(),a=(o-i.left)/i.width,l=(dt-ut)*a,s=Math.round(aa(l,ut,dt));n(16,ct=s<(_t+bt)/2==_t<bt)},zt,Mt,K,X,Y,Z,Vt,jt,y,v,m,g,x,k,E,C,A,V,j,P,D,S,I,z,F,N,t=>zt(t,"first"),t=>zt(t,"second"),function(t){be[t?"unshift":"push"]((()=>{st=t,n(15,st)}))}]}const ya={input:"divkit-c3a4c",input__wrapper:"divkit-ef7eb",input__holder:"divkit-bb3da",input_multiline:"divkit-e48a3",input__input:"divkit-f11e0","input_highlight-color":"divkit-cc00f","input_vertical-overflow":"divkit-b7075"};function $a(t){let e,n;return e=new br({props:{cls:zn("input",ya,t[12]),style:t[11],customDescription:!0,customActions:"input",json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[xa]},$$scope:{ctx:t}}}),{c(){He(e.$$.fragment)},l(t){Ge(e.$$.fragment,t)},m(t,r){Ke(e,t,r),n=!0},p(t,n){const r={};4096&n[0]&&(r.cls=zn("input",ya,t[12])),2048&n[0]&&(r.style=t[11]),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),100208&n[0]|2&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Je(e.$$.fragment,t),n=!0)},o(t){Oe(e.$$.fragment,t),n=!1},d(t){Xe(e,t)}}}function _a(t){let e;return{c(){e=Gt("​")},l(t){e=ie(t,"​")},m(t,n){Wt(t,e,n)},d(t){t&&Lt(e)}}}function ba(t){let e,n,r,o;return{c(){e=qt("input"),this.h()},l(t){e=re(t,"INPUT",{type:!0,class:!0,autocomplete:!0,autocapitalize:!0,"aria-label":!0,placeholder:!0}),this.h()},h(){Zt(e,"type",t[9]),Zt(e,"class",n=ya.input__input),Zt(e,"autocomplete","off"),Zt(e,"autocapitalize","off"),Zt(e,"aria-label",t[10]),Zt(e,"placeholder",t[15]),e.value=t[8]},m(n,i){Wt(n,e,i),t[57](e),r||(o=[Yt(e,"input",t[29]),Yt(e,"mousedown",(function(){_t(t[16]?t[30]:void 0)&&(t[16]?t[30]:void 0).apply(this,arguments)})),Yt(e,"click",(function(){_t(t[16]?t[31]:void 0)&&(t[16]?t[31]:void 0).apply(this,arguments)}))],r=!0)},p(n,r){t=n,512&r[0]&&Zt(e,"type",t[9]),1024&r[0]&&Zt(e,"aria-label",t[10]),32768&r[0]&&Zt(e,"placeholder",t[15]),256&r[0]&&e.value!==t[8]&&(e.value=t[8])},d(n){n&&Lt(e),t[57](null),r=!1,$t(o)}}}function wa(t){let e,n,r,o;return{c(){e=qt("textarea"),this.h()},l(t){e=re(t,"TEXTAREA",{class:!0,autocomplete:!0,autocapitalize:!0,"aria-label":!0,placeholder:!0}),te(e).forEach(Lt),this.h()},h(){Zt(e,"class",n=ya.input__input),Zt(e,"autocomplete","off"),Zt(e,"autocapitalize","off"),Zt(e,"aria-label",t[10]),Zt(e,"placeholder",t[15]),e.value=t[8]},m(n,i){Wt(n,e,i),t[56](e),r||(o=[Yt(e,"input",t[29]),Yt(e,"mousedown",(function(){_t(t[16]?t[30]:void 0)&&(t[16]?t[30]:void 0).apply(this,arguments)})),Yt(e,"click",(function(){_t(t[16]?t[31]:void 0)&&(t[16]?t[31]:void 0).apply(this,arguments)}))],r=!0)},p(n,r){t=n,1024&r[0]&&Zt(e,"aria-label",t[10]),32768&r[0]&&Zt(e,"placeholder",t[15]),256&r[0]&&(e.value=t[8])},d(n){n&&Lt(e),t[56](null),r=!1,$t(o)}}}function xa(t){let e,n,r,o,i,a,l=t[8].endsWith("\n")||!t[8],s=l&&_a();function c(t,e){return t[4]?wa:ba}let u=c(t),d=u(t);return{c(){e=qt("span"),n=qt("span"),r=Gt(t[8]),s&&s.c(),i=Kt(),d.c(),this.h()},l(o){e=re(o,"SPAN",{class:!0});var a=te(e);n=re(a,"SPAN",{class:!0,"aria-hidden":!0});var l=te(n);r=ie(l,t[8]),s&&s.l(l),l.forEach(Lt),i=ae(a),d.l(a),a.forEach(Lt),this.h()},h(){Zt(n,"class",o=ya.input__holder),Zt(n,"aria-hidden","true"),Zt(e,"class",a=ya.input__wrapper)},m(o,a){Wt(o,e,a),Rt(e,n),Rt(n,r),s&&s.m(n,null),t[55](n),Rt(e,i),d.m(e,null)},p(t,o){256&o[0]&&le(r,t[8]),256&o[0]&&(l=t[8].endsWith("\n")||!t[8]),l?s||(s=_a(),s.c(),s.m(n,null)):s&&(s.d(1),s=null),u===(u=c(t))&&d?d.p(t,o):(d.d(1),d=u(t),d&&(d.c(),d.m(e,null)))},d(n){n&&Lt(e),s&&s.d(),t[55](null),d.d()}}}function ka(t){let e,n,r=!t[7]&&$a(t);return{c(){r&&r.c(),e=Xt()},l(t){r&&r.l(t),e=Xt()},m(t,o){r&&r.m(t,o),Wt(t,e,o),n=!0},p(t,n){t[7]?r&&(Me(),Oe(r,1,1,(()=>{r=null})),Te()):r?(r.p(t,n),128&n[0]&&Je(r,1)):(r=$a(t),r.c(),Je(r,1),r.m(e.parentNode,e))},i(t){n||(Je(r),n=!0)},o(t){Oe(r),n=!1},d(t){r&&r.d(t),t&&Lt(e)}}}function Ea(t,e,n){let r,o,i,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x=ft,k=ft;t.$$.on_destroy.push((()=>x())),t.$$.on_destroy.push((()=>k()));let{json:E={}}=e,{templateContext:A}=e,{origJson:V}=e,{layoutParams:j}=e;const P=ye(vn);let D,S,I=!1,z=!1;const F=P.getJsonWithVars(E.text_variable);let N=!1;F||(N=!0,P.logError(yn(new Error('Missing "text_variable" in "input"'))));let M=F&&P.getVariable(F,"string")||on("temp","string","");Ct(t,M,(t=>n(54,b=t)));let T="";const J=P.getDerivedFromVars(E.hint_text);Ct(t,J,(t=>n(53,_=t)));const O=P.getDerivedFromVars(E.hint_color);Ct(t,O,(t=>n(52,$=t)));let B="";const R=P.getDerivedFromVars(E.font_size);Ct(t,R,(t=>n(51,y=t)));let W=12;const L=P.getDerivedFromVars(E.font_weight);let U;Ct(t,L,(t=>n(50,v=t)));const q=P.getDerivedFromVars(E.line_height);let H;Ct(t,q,(t=>n(49,m=t)));const G=P.getDerivedFromVars(E.letter_spacing);Ct(t,G,(t=>n(48,g=t)));let K="";const X=P.getDerivedFromVars(E.text_color);Ct(t,X,(t=>n(47,f=t)));let Y="#000";const Z=P.getDerivedFromVars(E.highlight_color);Ct(t,Z,(t=>n(46,p=t)));let Q="";const tt=P.getDerivedFromVars(E.keyboard_type);Ct(t,tt,(t=>n(45,h=t)));const et={email:"email",number:"number",phone:"tel",single_line_text:"text",multi_line_text:"text",uri:"url"};let nt="multi_line_text",rt="text";const ot=P.getDerivedFromVars(E.max_visible_lines);Ct(t,ot,(t=>n(44,d=t)));let it="",at="";const lt=P.getDerivedFromVars(E.select_all_on_focus);function st(){n(32,z=S.scrollHeight>S.offsetHeight)}return Ct(t,lt,(t=>n(16,w=t))),ge((()=>{st()})),t.$$set=t=>{"json"in t&&n(0,E=t.json),"templateContext"in t&&n(1,A=t.templateContext),"origJson"in t&&n(2,V=t.origJson),"layoutParams"in t&&n(3,j=t.layoutParams)},t.$$.update=()=>{if(8388608&t.$$.dirty[1]&&n(8,T=b),4194304&t.$$.dirty[1]&&n(15,r=_),2097156&t.$$.dirty[1]&&n(33,B=C($,1,B)),1048584&t.$$.dirty[1]&&n(34,W=xr(y,W)),524304&t.$$.dirty[1]&&n(35,U=Er(v,U)),262152&t.$$.dirty[1]){const t=m;ir(t)&&n(36,H=t/W)}131080&t.$$.dirty[1]&&Tn(g)&&n(37,K=wn(g/W*10)),65664&t.$$.dirty[1]&&n(38,Y=C(f,1,Y)),33024&t.$$.dirty[1]&&n(39,Q=C(p,1,Q)),16384&t.$$.dirty[1]&&h&&h in et&&(n(9,rt=et[h]),n(40,nt=h)),512&t.$$.dirty[1]&&n(4,o="multi_line_text"===nt),1&t.$$.dirty[0]&&(n(14,i=P.getDerivedFromVars(E.paddings)),k(),k=Et(i,(t=>n(43,u=t)))),12320&t.$$.dirty[1]&&ir(d)&&n(41,it="calc(".concat(d*(H||1.25)+"em"," + ").concat(xn(Bn(null==u?void 0:u.top,0)+Bn(null==u?void 0:u.bottom,0)),")")),1&t.$$.dirty[0]&&(n(13,a=P.getDerivedFromVars(E.accessibility)),x(),x=Et(a,(t=>n(42,c=t)))),2048&t.$$.dirty[1]&&((null==c?void 0:c.description)?n(10,at=c.description):P.logError(yn(new Error('Missing accessibility "description" for input'),{level:"warn"}))),16&t.$$.dirty[0]|258&t.$$.dirty[1]&&n(12,l={"highlight-color":Boolean(Q),"vertical-overflow":z,multiline:o}),1532&t.$$.dirty[1]&&n(11,s={"--divkit-input-hint-color":B,"--divkit-input-highlight-color":Q,"font-size":wn(W),"font-weight":U,"line-height":H,"letter-spacing":K,color:Y,"max-height":it})},[E,A,V,j,o,D,S,N,T,rt,at,s,l,a,i,r,w,M,J,O,R,L,q,G,X,Z,tt,ot,lt,function(t){const e=t.target.value||"";M.setValue(e),st()},function(){I=!1,setTimeout((()=>{I=!0}),250)},function(){I||D.select()},z,B,W,U,H,K,Y,Q,nt,it,c,u,d,h,p,f,g,m,v,y,$,_,b,function(t){be[t?"unshift":"push"]((()=>{S=t,n(6,S)}))},function(t){be[t?"unshift":"push"]((()=>{D=t,n(5,D)}))},function(t){be[t?"unshift":"push"]((()=>{D=t,n(5,D)}))}]}const Ca={text:class extends Ze{constructor(t){super(),Ye(this,t,Ur,Lr,xt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},container:class extends Ze{constructor(t){super(),Ye(this,t,go,fo,xt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},separator:class extends Ze{constructor(t){super(),Ye(this,t,bo,_o,xt,{json:0,templateContext:1,origJson:2,layoutParams:3})}},image:Do,gif:Do,grid:class extends Ze{constructor(t){super(),Ye(this,t,Bo,Oo,xt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},gallery:class extends Ze{constructor(t){super(),Ye(this,t,ni,ei,xt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},tabs:class extends Ze{constructor(t){super(),Ye(this,t,gi,fi,xt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},state:class extends Ze{constructor(t){super(),Ye(this,t,Ri,Oi,xt,{json:0,templateContext:1,origJson:2,layoutParams:3})}},pager:class extends Ze{constructor(t){super(),Ye(this,t,Xi,Ki,xt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},indicator:class extends Ze{constructor(t){super(),Ye(this,t,ra,na,xt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},slider:class extends Ze{constructor(t){super(),Ye(this,t,va,ga,xt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},input:class extends Ze{constructor(t){super(),Ye(this,t,Ea,ka,xt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}}};function Aa(t){let e,n,r;var o=t[5];function i(t){return{props:{json:t[3],templateContext:t[4],layoutParams:t[2],origJson:t[1]||t[0]}}}return o&&(e=new o(i(t))),{c(){e&&He(e.$$.fragment),n=Xt()},l(t){e&&Ge(e.$$.fragment,t),n=Xt()},m(t,o){e&&Ke(e,t,o),Wt(t,n,o),r=!0},p(t,r){const a={};if(8&r&&(a.json=t[3]),16&r&&(a.templateContext=t[4]),4&r&&(a.layoutParams=t[2]),3&r&&(a.origJson=t[1]||t[0]),o!==(o=t[5])){if(e){Me();const t=e;Oe(t.$$.fragment,1,0,(()=>{Xe(t,1)})),Te()}o?(e=new o(i(t)),He(e.$$.fragment),Je(e.$$.fragment,1),Ke(e,n.parentNode,n)):e=null}else o&&e.$set(a)},i(t){r||(e&&Je(e.$$.fragment,t),r=!0)},o(t){e&&Oe(e.$$.fragment,t),r=!1},d(t){t&&Lt(n),e&&Xe(e,t)}}}function Va(t){let e,n,r=t[5]&&Aa(t);return{c(){r&&r.c(),e=Xt()},l(t){r&&r.l(t),e=Xt()},m(t,o){r&&r.m(t,o),Wt(t,e,o),n=!0},p(t,n){let[o]=n;t[5]?r?(r.p(t,o),32&o&&Je(r,1)):(r=Aa(t),r.c(),Je(r,1),r.m(e.parentNode,e)):r&&(Me(),Oe(r,1,1,(()=>{r=null})),Te())},i(t){n||(Je(r),n=!0)},o(t){Oe(r),n=!1},d(t){r&&r.d(t),t&&Lt(e)}}}function ja(t,e,n){let{div:r}=e,{templateContext:o}=e,{origJson:i}=e,{layoutParams:a}=e;const l=ye(vn);let s,c,u;return t.$$set=t=>{"div"in t&&n(0,r=t.div),"templateContext"in t&&n(6,o=t.templateContext),"origJson"in t&&n(1,i=t.origJson),"layoutParams"in t&&n(2,a=t.layoutParams)},t.$$.update=()=>{if(121&t.$$.dirty&&(n(3,s=r),n(4,c=o),n(5,u=s&&Ca[s.type]||void 0),!u&&(n(4,({templateContext:c,json:s}=l.processTemplate(s,c)),c,(n(3,s),n(0,r),n(6,o),n(5,u),n(4,c))),n(5,u=s&&Ca[s.type]||void 0),!u))){let t;t=(null==s?void 0:s.type)&&l.hasTemplate(s.type)?"Recursive template":"Unknown component",l.logError(yn(new Error(t),{additional:{component:(null==s?void 0:s.type)||"<missing>"}}))}},[r,i,a,s,c,u,o]}const Pa=class extends Ze{constructor(t){super(),Ye(this,t,ja,Va,xt,{div:0,templateContext:6,origJson:1,layoutParams:2})}};function Da(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 Sa(t){let e,n,r,o=[...Object.keys(t[0])],i=[];for(let e=0;e<o.length;e+=1)i[e]=Na(Da(t,o,e));return{c(){e=Ht("svg"),n=Ht("defs");for(let t=0;t<i.length;t+=1)i[t].c();this.h()},l(t){e=oe(t,"svg",{class:!0,"aria-hidden":!0});var r=te(e);n=oe(r,"defs",{});var o=te(n);for(let t=0;t<i.length;t+=1)i[t].l(o);o.forEach(Lt),r.forEach(Lt),this.h()},h(){Zt(e,"class",r="divkit-dc22b"),Zt(e,"aria-hidden","true")},m(t,r){Wt(t,e,r),Rt(e,n);for(let t=0;t<i.length;t+=1)i[t].m(n,null)},p(t,e){if(1&e){let r;for(o=[...Object.keys(t[0])],r=0;r<o.length;r+=1){const a=Da(t,o,r);i[r]?i[r].p(a,e):(i[r]=Na(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&&Lt(e),Ut(i,t)}}}function Ia(t){let e,n;return{c(){e=Ht("feBlend"),this.h()},l(t){e=oe(t,"feBlend",{in2:!0,mode:!0}),te(e).forEach(Lt),this.h()},h(){Zt(e,"in2","SourceGraphic"),Zt(e,"mode",n=t[3])},m(t,n){Wt(t,e,n)},p(t,r){1&r&&n!==(n=t[3])&&Zt(e,"mode",n)},d(t){t&&Lt(e)}}}function za(t){let e;return{c(){e=Ht("feComposite"),this.h()},l(t){e=oe(t,"feComposite",{in2:!0,operator:!0,k1:!0,k2:!0,k3:!0,k4:!0}),te(e).forEach(Lt),this.h()},h(){Zt(e,"in2","SourceGraphic"),Zt(e,"operator","arithmetic"),Zt(e,"k1","1"),Zt(e,"k2","0"),Zt(e,"k3","0"),Zt(e,"k4","0")},m(t,n){Wt(t,e,n)},p:ft,d(t){t&&Lt(e)}}}function Fa(t){let e,n;return{c(){e=Ht("feComposite"),this.h()},l(t){e=oe(t,"feComposite",{in2:!0,operator:!0}),te(e).forEach(Lt),this.h()},h(){Zt(e,"in2","SourceGraphic"),Zt(e,"operator",n=t[3].split("_")[1])},m(t,n){Wt(t,e,n)},p(t,r){1&r&&n!==(n=t[3].split("_")[1])&&Zt(e,"operator",n)},d(t){t&&Lt(e)}}}function Na(t){let e,n,r,o;function i(t,e){return"source_in"===t[3]||"source_atop"===t[3]?Fa:"multiply"===t[3]?za:Ia}let a=i(t),l=a(t);return{c(){e=Ht("filter"),n=Ht("feFlood"),l.c(),this.h()},l(t){e=oe(t,"filter",{id:!0});var r=te(e);n=oe(r,"feFlood",{"flood-color":!0}),te(n).forEach(Lt),l.l(r),r.forEach(Lt),this.h()},h(){Zt(n,"flood-color",r=t[2]),Zt(e,"id",o=t[0][t[1]])},m(t,r){Wt(t,e,r),Rt(e,n),l.m(e,null)},p(t,s){1&s&&r!==(r=t[2])&&Zt(n,"flood-color",r),a===(a=i(t))&&l?l.p(t,s):(l.d(1),l=a(t),l&&(l.c(),l.m(e,null))),1&s&&o!==(o=t[0][t[1]])&&Zt(e,"id",o)},d(t){t&&Lt(e),l.d()}}}function Ma(t){let e,n=Object.keys(t[0]).length,r=n&&Sa(t);return{c(){r&&r.c(),e=Xt()},l(t){r&&r.l(t),e=Xt()},m(t,n){r&&r.m(t,n),Wt(t,e,n)},p(t,o){let[i]=o;1&i&&(n=Object.keys(t[0]).length),n?r?r.p(t,i):(r=Sa(t),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null)},i:ft,o:ft,d(t){r&&r.d(t),t&&Lt(e)}}}function Ta(t,e,n){let{svgFiltersMap:r}=e;return t.$$set=t=>{"svgFiltersMap"in t&&n(0,r=t.svgFiltersMap)},[r]}const Ja=class extends Ze{constructor(t){super(),Ye(this,t,Ta,Ma,xt,{svgFiltersMap:0})}};function Oa(t,e,n,r){const o=n[t.type];if(!o)return r(yn(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 l=function e(n,o){const i=Object.keys(o).filter((t=>"__proto__"!==t)),l=i.filter((t=>"$"!==t.charAt(0))),s=i.filter((t=>"$"===t.charAt(0)));return l.forEach((t=>{const r=o[t];"object"==typeof r&&null!==r?(n[t]=Array.isArray(r)?[]:{},e(n[t],r)):n[t]=r})),s.forEach((e=>{const i=o[e],l=a[i];if(void 0!==l){const t=e.substring(1);n[t]=l}else r(yn(new Error("Missing template field"),{level:"warn",additional:{key:e,template:t.type}}))})),n}({},o);for(i in t)"type"!==i&&"__proto__"!==i&&t.hasOwnProperty(i)&&(l[i]=t[i]);return{json:l,templateContext:a}}function Ba(){}function Ra(t){return{subscribe:e=>(e(t),Ba)}}class Wa{constructor(t){this.ast=t}apply(t,e){if(!function(t,e){let n=!1;return k(t,{Variable(t){e.has(t.id.name)||(n=!0)}}),n}(this.ast,t))try{const n=cn(t,this.ast);if("error"===n.type)return void e(yn(new Error("Expression execution error"),{additional:{message:n.value}}));const r=n.value;if(r instanceof Date)return P(r);if("boolean"===n.type)return Boolean(r);if("color"===n.type){const t=V(String(r));if(t)return O(t);e(yn(new Error("Expression execution error")))}return r}catch(t){return void e(yn(new Error("Expression execution error")))}}}function La(t,e,n){if(t)if("string"==typeof t){if((r=t).indexOf("@{")>-1||r.indexOf("\\")>-1){e.hasExpression=!0;try{const n=$(t,{startRule:"JsonStringContents"}),r=M(n);return e.vars.push(...r),new Wa(n)}catch(e){return void n(yn(new Error("Unable to parse expression"),{additional:{expression:t}}))}}}else{if(Array.isArray(t))return t.map((t=>La(t,e,n)));if("object"==typeof t){const r={};for(const o in t)r[o]=La(t[o],e,n);return r}}var r;return t}function Ua(t,e,n){if(t){if(t instanceof Wa)return t.apply(e,n);if(Array.isArray(t))return t.map((t=>Ua(t,e,n)));if("object"==typeof t){const r={};for(const o in t)r[o]=Ua(t[o],e,n);return r}}return t}function qa(t,e){const n={vars:[],hasExpression:!1},r=La(t,n,e);return{vars:[...new Set(n.vars)],hasExpression:n.hasExpression,applyVars:t=>Ua(r,t,e)}}const Ha={pagers:function(){return tn(new Map)}},Ga=new Map,Ka=new Map;function Xa(t){const e=Ga.get(t)||tn("");return Ga.has(t)||Ga.set(t,e),e}function Ya(t){const e=Ka.get(t)||new Map;return Ka.has(t)||Ka.set(t,e),e}class Za{setVariable(t){const e=t.getName(),n=Ya(this);if(n.has(e))throw new Error("Variable with the same name already exist");n.set(e,t),Xa(this).set(e)}getVariable(t){return Ya(this).get(t)}}function Qa(){return new Za}function tl(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const el=new Set(["start","stop","pause","resume","cancel","reset"]);class nl{constructor(t){tl(this,"timers",new Map),tl(this,"awaitActions",[]),this.logError=t.logError,this.applyVars=t.applyVars,this.hasVariableWithType=t.hasVariableWithType,this.setVariableValue=t.setVariableValue,this.execAnyActions=t.execAnyActions,this.visibilityHandler=()=>{"visible"===document.visibilityState?(this.awaitActions.forEach((t=>{let{id:e,action:n}=t;this.execTimerAction(e,n)})),this.awaitActions=[],this.unholdAll()):this.holdAll()},document.addEventListener("visibilitychange",this.visibilityHandler)}destroy(){document.removeEventListener("visibilitychange",this.visibilityHandler);for(const[t,e]of this.timers)this.stopTimerTimeouts(e)}createTimer(t){null!=t&&t.id?t.duration||t.tick_interval&&(t.value_variable||t.tick_actions)?this.timers.set(t.id,{state:"stopped",definition:t}):this.logError(yn(new Error("Misconfigured timer"),{additional:{id:t.id}})):this.logError(yn(new Error("Missing timer id")))}execTimerAction(t,e){if(!(t&&e&&this.timers.has(t)&&el.has(e)))return void this.logError(yn(new Error("Incorrect timer action"),{additional:{id:t,action:e}}));const n=e;if("visible"!==document.visibilityState)return void this.awaitActions.push({id:t,action:n});const r=this.timers.get(t);this[n](r)}stopTimerTimeouts(t){t.durationTimeout&&(clearTimeout(t.durationTimeout),t.durationTimeout=void 0),t.tickTimeout&&(clearTimeout(t.tickTimeout),t.tickTimeout=void 0)}tickOrUnholdAction(t){const e=performance.now(),n=(t.durationPassed||0)+e-(t.durationStarted||0);t.duration&&n>t.duration||(this.updateVariable(t,n),this.callActions(t,"tick"))}startOrResume(t){t.state="running",t.hold=!1,t.durationStarted=performance.now();const e=t.duration;e&&(t.durationTimeout=window.setTimeout((()=>{this.updateVariable(t,e),this.stop(t)}),Math.max(0,e-(t.durationPassed||0))));const n=t.tick;if(n){const e=()=>{t.tickStarted=performance.now(),t.tickTimeout=window.setTimeout((()=>{this.tickOrUnholdAction(t),t.tickPassed=0,e()}),Math.max(0,n-(t.tickPassed||0)))};e()}}start(t){if("running"===t.state)return void this.logError(yn(new Error("The timer is already running")));if("paused"===t.state)return void this.logError(yn(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(yn(new Error("Incorrect timer properties"),{additional:{id:t.definition.id}})):this.startOrResume(t)):this.logError(yn(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(yn(new Error("The timer has already been stopped")))}pause(t){if("stopped"===t.state)return void this.logError(yn(new Error("The timer has already been stopped")));if("paused"===t.state)return void this.logError(yn(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(yn(new Error("The timer is already running"))):this.logError(yn(new Error("The timer has already been stopped")))}cancel(t){"stopped"!==t.state&&(t.state="stopped",t.durationPassed=0,t.tickPassed=0,this.stopTimerTimeouts(t))}reset(t){this.cancel(t),this.start(t)}updateVariable(t,e){const n=t.definition.value_variable;n&&this.setVariableValue(n,Math.round(e))}callActions(t,e){const n=t.definition["end"===e?"end_actions":"tick_actions"];if(n){const t=this.applyVars(n);this.execAnyActions(t,!1)}}holdAll(){for(const[t,e]of this.timers)"running"===e.state&&(e.hold=!0,this.stopTimerTimeouts(e))}unholdAll(){for(const[t,e]of this.timers)if("running"===e.state&&e.hold){const t=performance.now();e.durationStarted&&(e.durationPassed=(e.durationPassed||0)+t-e.durationStarted),e.tickStarted&&(e.tickPassed=(e.tickPassed||0)+t-e.tickStarted),e.tick&&this.tickOrUnholdAction(e),this.startOrResume(e)}}}function rl(t){let e,n,r,o,i,a,l,s;return n=new Ja({props:{svgFiltersMap:t[2]}}),o=new Pa({props:{div:t[6],templateContext:t[5]}}),{c(){e=qt("div"),He(n.$$.fragment),r=Kt(),He(o.$$.fragment),this.h()},l(t){e=re(t,"DIV",{class:!0});var i=te(e);Ge(n.$$.fragment,i),r=ae(i),Ge(o.$$.fragment,i),i.forEach(Lt),this.h()},h(){Zt(e,"class",i=""+(un+(t[3]?" ".concat(fn):"")+(t[0]?" ".concat(t[0]):"")))},m(t,i){Wt(t,e,i),Ke(n,e,null),Rt(e,r),Ke(o,e,null),a=!0,l||(s=Yt(e,"touchstart",il,{passive:!0}),l=!0)},p(t,r){const o={};4&r[0]&&(o.svgFiltersMap=t[2]),n.$set(o),(!a||9&r[0]&&i!==(i=""+(un+(t[3]?" ".concat(fn):"")+(t[0]?" ".concat(t[0]):""))))&&Zt(e,"class",i)},i(t){a||(Je(n.$$.fragment,t),Je(o.$$.fragment,t),a=!0)},o(t){Oe(n.$$.fragment,t),Oe(o.$$.fragment,t),a=!1},d(t){t&&Lt(e),Xe(n),Xe(o),l=!1,s()}}}function ol(t){let e,n,r=!t[1]&&t[6]&&rl(t);return{c(){r&&r.c(),e=Xt()},l(t){r&&r.l(t),e=Xt()},m(t,o){r&&r.m(t,o),Wt(t,e,o),n=!0},p(t,n){!t[1]&&t[6]?r?(r.p(t,n),2&n[0]&&Je(r,1)):(r=rl(t),r.c(),Je(r,1),r.m(e.parentNode,e)):r&&(Me(),Oe(r,1,1,(()=>{r=null})),Te())},i(t){n||(Je(r),n=!0)},o(t){Oe(r),n=!1},d(t){r&&r.d(t),t&&Lt(e)}}}function il(){}function al(t,e,n){let r;var o,i,a,l;let{id:s}=e,{json:c={}}=e,{platform:u="auto"}=e,{theme:d="system"}=e,{globalVariablesController:h=new Za}=e,{mix:p=""}=e,{customization:f={}}=e,{builtinProtocols:g=["http","https","tel","mailto","intent"]}=e,{onError:m}=e,{onStat:v}=e,{onCustomAction:y}=e,{onComponent:_}=e,b=tn("desktop"===u);if(Ct(t,b,(t=>n(3,r=t))),"auto"===u&&"undefined"!=typeof matchMedia){const t=matchMedia("(any-pointer: coarse)");b.set(!t.matches),t.addListener((()=>{b.set(!t.matches)}))}let w="light",x=null;function k(){"system"===d&&x&&n(23,w=x.matches?"dark":"light")}const E=new Set(g);let C=!1;c||(C=!0,T(yn(new Error('"json" prop is required')))),s||(C=!0,T(yn(new Error('"id" prop is required'))));let A=function(t){if(!t)return yn(new Error("Missing object"));const e=t.card,n=t.templates||{};if(!e)return yn(new Error("Missing card"));if(!e.states||!e.states.length)return yn(new Error("Missing states"));for(const t in n)if(n.hasOwnProperty(t)&&t in Ca)return yn(new Error("Template name collision"),{additional:{templateName:t}});for(let t=0;t<e.states.length;++t){if(!e.states[t].div)return yn(new Error("Missing state div"),{additional:{stateId:e.states[t].state_id}});if("number"!=typeof e.states[t].state_id)return yn(new Error("Missing state_id"),{additional:{index:t}})}return null}(c);const V=c.templates||{};A&&(C=!0,T(A));const j={stateChange:!1},P=Xa(h),D=Ya(h),S=new Map,I=new Map,z=new Map;let F=null;function N(t){const e=qa(t,T);return e.vars.length?e.applyVars(I):t}function T(t){m?m({error:t}):"warn"===(null==t?void 0:t.level)?console.warn(t):console.error(t)}function J(t,e){v&&v({type:t,action:e})}let O=0;function B(t){return"".concat(s,"-").concat(O++)}let R={},W={};function L(t){const e=t.url?String(t.url):"";if(e)try{const t=e.replace(/div-action:\/\//,""),n=/([^?]+)\?(.+)/.exec(t);if(!n)return;const r=new URLSearchParams(n[2]);switch(n[1]){case"set_state":!function(t){if(!t)throw new Error("Missing state id");let e=Y,n=t.split("/");if(n=["root",...n],n.length<2||n.length%2!=0)throw new Error("Incorrect state id format");for(let t=0;t<n.length;t+=2){const r=n[t],o=n[t+1];let i=e.getChild(r);if(!i)return;i.setState(o),e=i}}(r.get("state_id"));break;case"set_current_item":!function(t,e){if(!t||!e)throw new Error('Missing data for "set-current-item" action');if(isNaN(Number(e)))throw new Error('Incorrect item for "set-current-item" action');const n=G(t);n&&n.setCurrentItem(Number(e))}(r.get("id"),r.get("item"));break;case"set_previous_item":!function(t,e){if(!t)throw new Error('Missing id for "set-previous-item" action');if(e&&"clamp"!==e&&"ring"!==e)throw new Error('Incorrect overflow value for "set-previous-item" action');e=e||"clamp";const n=G(t);n&&n.setPreviousItem(e)}(r.get("id"),r.get("overflow"));break;case"set_next_item":!function(t,e){if(!t)throw new Error('Missing id for "set-next-item" action');if(e&&"clamp"!==e&&"ring"!==e)throw new Error('Incorrect overflow value for "set-next-item" action');e=e||"clamp";const n=G(t);n&&n.setNextItem(e)}(r.get("id"),r.get("overflow"));break;case"set_variable":const n=r.get("name"),o=r.get("value");if(n&&null!==o){const t=I.get(n);t?t.set(o):T(yn(new Error("Cannot find variable"),{additional:{name:n}}))}else T(yn(new Error("Incorrect set_variable_action"),{additional:{url:t}}));break;case"timer":const i=r.get("action"),a=r.get("id");F?F.execTimerAction(a,i):T(yn(new Error("Incorrect timer action"),{additional:{id:a,action:i}}));break;default:T(yn(new Error("Unknown type of action"),{additional:{url:e}}))}}catch(t){T(yn(t,{additional:{url:e}}))}}async function U(t,e){if(t){for(let n=0;n<t.length;++n){let r=t[n];const o=r.url;if(o){const t=Dn(o);if(t)if(Sn(t,E)){if(e)if("_blank"===r.target){const t=window.open("","_blank");t&&(t.opener=null,t.location=o)}else location.href=o}else"div-action"===t?(L(r),await Ae()):r.log_id&&(q(r),await Ae())}}t.forEach((t=>{t.log_id&&J("click",t)}))}}function q(t){null==y||y(t)}const H=new Map;function G(t){if(H.has(t))return H.get(t);T(yn(new Error("Missing instance with id"),{additional:{id:t}}))}const K=new Map;function X(t){for(const e of t)I.has(e)&&t.delete(e);return t}ve(vn,{logError:T,logStat:J,hasTemplate:function(t){return t in V},processTemplate:function(t,e){if(!t)return{json:t,templateContext:e};const n=new Set([t.type]);for(;t.type in V;){if(({json:t,templateContext:e}=Oa(t,e,V,T)),n.has(t.type))return{json:t,templateContext:e};n.add(t.type)}return{json:t,templateContext:e}},genId:B,genClass:function(t){return"divkit-".concat(B())},execAction:L,execAnyActions:U,execCustomAction:q,isRunning:function(t){return j[t]},setRunning:function(t,e){j[t]=e},registerInstance:function(t,e){H.has(t)?T(yn(new Error("Duplicate instance id"),{additional:{id:t}})):H.set(t,e)},unregisterInstance:function(t){H.delete(t)},addSvgFilter:function(t,e){const r="".concat(t,":").concat(e);if(W[r]=W[r]||0,++W[r],R[r])return R[r];const o="".concat(B(),"-svg-filter");return n(2,R=Object.assign(Object.assign({},R),{[r]:o})),o},removeSvgFilter:function(t,e){if(!t||!W[t])return;const r="".concat(t,":").concat(e);0==--W[r]&&n(2,R=Object.keys(R).reduce(((t,e)=>(W[e]&&(t[e]=R[e]),t)),{}))},getDerivedFromVars:function(t){if(!t)return Ra(t);const e=qa(t,T);return e.vars.length?en(e.vars.map((t=>I.get(t)||function(t){const e=z.get(t)||tn(void 0);return z.has(t)||z.set(t,e),e}(t))).filter(En),(()=>e.applyVars(I))):e.hasExpression?Ra(e.applyVars(I)):Ra(t)},getJsonWithVars:N,getStore:function(t){return K.has(t)||function(t){K.has(t)||K.set(t,Ha[t]())}(t),K.get(t)},getVariable:function(t,e){const n=I.get(t);if(n){const r=n.getType();if(r!==e)return void T(yn(new Error('Variable should have type "'.concat(e,'"')),{additional:{name:t,foundType:r}}))}return n},getCustomization:function(t){return null==f?void 0:f[t]},getBuiltinProtocols:function(){return E},isDesktop:b,registerComponent:function(t){let{node:e,json:n,origJson:r,templateContext:o}=t;_&&_({type:"mount",node:e,json:n,origJson:r,templateContext:o})},unregisterComponent:function(t){let{node:e}=t;_&&_({type:"destroy",node:e})}}),ve(Xn,{hasAction:()=>!1});const Y={setState(t){throw new Error("Not implemented")},getChild(t){if(Z&&Z.has(t))return Z.get(t);T(yn(new Error("Missing state block with id"),{additional:{id:t}}))}};let Z=null;ve(Nn,{registerInstance(t,e){Z||(Z=new Map),Z.has(t)?T(yn(new Error("Duplicate state with id"),{additional:{id:t}})):Z.set(t,e)},unregisterInstance(t){null==Z||Z.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 Q=null===(o=null==c?void 0:c.card)||void 0===o?void 0:o.variables;Array.isArray(Q)&&Q.forEach((t=>{if(t&&t.type in rn&&t.name){if(S.has(t.name))return void T(yn(new Error("Duplicate variable"),{additional:{name:t.name}}));try{const e=on(t.name,t.type,t.value);S.set(t.name,e),I.set(t.name,e)}catch(e){T(yn(e,{additional:{name:t.name}}))}}}));const tt=c.palette;tt&&tt[w].forEach((t=>{if(S.has(t.name))T(yn(new Error("Duplicate variable"),{additional:{name:t.name}}));else try{const e=on(t.name,"color",t.color);S.set(t.name,e),I.set(t.name,e)}catch(e){T(yn(e,{additional:{name:t.name}}))}}));for(const[t,e]of D)I.has(t)||I.set(t,e);P.subscribe((t=>{if(t&&!I.has(t)){const e=D.get(t);I.set(t,e);const n=z.get(t);if(n){let t=0;e.subscribe((()=>{n.set(++t)}))}}}));const et=null===(i=null==c?void 0:c.card)||void 0===i?void 0:i.variable_triggers;Array.isArray(et)&&et.forEach((t=>{let e=!1;if("string"!=typeof t.condition)return void T(yn(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=$(t.condition,{startRule:"JsonStringContents"}),o=M(r);if(!o.length)return void T(yn(new Error("variable_trigger must have variables in the condition"),{additional:{condition:t.condition}}));(function(t){const e=new Set(t);return X(e),e.size?new Promise((t=>{const n=P.subscribe((()=>{X(e),e.size||(n(),t())}))})):Promise.resolve()})(o).then((()=>{en(o.map((t=>I.get(t))).filter(En),(()=>cn(I,r))).subscribe((r=>{"error"!==r.type?(r.value&&("on_variable"===n||"on_condition"===n&&!1===e)&&t.actions.forEach((t=>{const e=N(t);e.log_id&&L(e)})),e=Boolean(r.value)):T(yn(new Error("variable_trigger condition execution error"),{additional:{message:r.value}}))}))}))}catch(e){T(yn(new Error("Unable to parse variable_trigger"),{additional:{condition:t.condition}}))}else T(yn(new Error("variable_trigger has an unsupported mode"),{additional:{mode:n}}))}));const nt=null===(a=null==c?void 0:c.card)||void 0===a?void 0:a.timers;if(nt){const t=F=new nl({logError:T,applyVars:N,hasVariableWithType:function(t,e){const n=I.get(t);return(null==n?void 0:n.getType())===e},setVariableValue:function(t,e){const n=I.get(t);n?n.setValue(e):T(yn(new Error("Cannot find variable"),{additional:{name:t}}))},execAnyActions:U});nt.forEach((e=>t.createTimer(e)))}const rt=null===(l=null==c?void 0:c.card)||void 0===l?void 0:l.states,ot=rt&&!C?{type:"state",id:"root",width:{type:"match_parent"},height:{type:"match_parent"},states:rt.map((t=>({state_id:t.state_id.toString(),div:t.div})))}:void 0;return me((()=>{F&&F.destroy()})),t.$$set=t=>{"id"in t&&n(8,s=t.id),"json"in t&&n(9,c=t.json),"platform"in t&&n(10,u=t.platform),"theme"in t&&n(7,d=t.theme),"globalVariablesController"in t&&n(11,h=t.globalVariablesController),"mix"in t&&n(0,p=t.mix),"customization"in t&&n(12,f=t.customization),"builtinProtocols"in t&&n(13,g=t.builtinProtocols),"onError"in t&&n(14,m=t.onError),"onStat"in t&&n(15,v=t.onStat),"onCustomAction"in t&&n(16,y=t.onCustomAction),"onComponent"in t&&n(17,_=t.onComponent)},t.$$.update=()=>{16777344&t.$$.dirty[0]&&("light"===d||"dark"===d?n(23,w=d):"system"===d?"undefined"!=typeof matchMedia?(x||(n(24,x=matchMedia("(prefers-color-scheme: dark)")),x.addListener(k)),n(23,w=x.matches?"dark":"light")):n(23,w="light"):T(yn(new Error("Unsupported theme")))),8388608&t.$$.dirty[0]&&w&&tt&&tt[w].forEach((t=>{const e=I.get(t.name);e&&e.setValue(t.color)}))},[p,C,R,r,b,{},ot,d,s,c,u,h,f,g,m,v,y,_,function(t){n(7,d=t)},function(){return I},function(t,e){if("string"==typeof e||"number"==typeof e||"boolean"==typeof e){const n=I.get(t);n&&n.setValue(e)}},function(t){const e=I.get(t);return null==e?void 0:e.getValue()},L,w,x]}const ll=class extends Ze{constructor(t){super(),Ye(this,t,al,ol,xt,{id:8,json:9,platform:10,theme:7,globalVariablesController:11,mix:0,customization:12,builtinProtocols:13,onError:14,onStat:15,onCustomAction:16,onComponent:17,setTheme:18,getDebugVariables:19,setVariable:20,getVariable:21,execAction:22},null,[-1,-1,-1])}get setTheme(){return this.$$.ctx[18]}get getDebugVariables(){return this.$$.ctx[19]}get setVariable(){return this.$$.ctx[20]}get getVariable(){return this.$$.ctx[21]}get execAction(){return this.$$.ctx[22]}};function sl(t){return new ll({target:t.target,props:{id:t.id,json:t.json,globalVariablesController:t.globalVariablesController,mix:t.mix,customization:t.customization,builtinProtocols:t.builtinProtocols,onStat:t.onStat,onCustomAction:t.onCustomAction,onError:t.onError,onComponent:t.onComponent,platform:t.platform,theme:t.theme},hydrate:t.hydrate})}function cl(t,e){let n;try{n=$(t,{startRule:"json"===(null==e?void 0:e.type)?"JsonStringContents":"start"})}catch(t){return{type:"error",value:"Unable to parse expression"}}return cn((null==e?void 0:e.variables)||new Map,n)}function ul(){return Array.from(_.keys())}(window.Ya=window.Ya||{}).Divkit=e})();
1
+ (()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{createGlobalVariablesController:()=>tl,createVariable:()=>on,evalExpression:()=>ul,functionNames:()=>dl,render:()=>cl,valToString:()=>D});const n=2147483647,r=-2147483648,o=Number.MAX_VALUE,i=Number.MIN_VALUE,a="string",l="integer",s="number",c="boolean",u="color",d="datetime";function h(t,e){return e.reduce(((t,e)=>({type:"BinaryExpression",operator:e[1],left:t,right:e[3]})),t)}function p(t,e){return e.reduce(((t,e)=>({type:"LogicalExpression",operator:e[1],left:t,right:e[3]})),t)}function f(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 g(t){var e=parseInt(t,10);if(e>n||e<r)throw new Error("Value ".concat(t," can't be converted to Integer type."));return e}function m(t){if("'"===t||"\\"===t)return t;throw new Error("Incorrect string escape")}function v(t,e,n,r){var o=Error.call(this,t);return Object.setPrototypeOf&&Object.setPrototypeOf(o,v.prototype),o.expected=e,o.found=n,o.location=r,o.name="SyntaxError",o}function y(t,e,n){return n=n||" ",t.length>e?t:(e-=t.length,t+(n+=n.repeat(e)).slice(0,e))}function $(t,e){var n,r={},o=(e=void 0!==e?e:{}).grammarSource,i={start:Ft,JsonStringContents:function(){var t,e,n;for(t=wt,e=[],n=Nt();n!==r;)e.push(n),n=Nt();return xt=t,e=bt(e)}},a=Ft,l="@{",s="}",c="@{}",u="\\",d="||",y="&&",$="==",_="!=",b=">=",w="<=",x="+",k="-",E="true",C="false",A=/^[^}]/,V=/^[^'}]/,j=/^[0-9]/,P=/^[a-zA-Z_0-9.]/,D=/^[a-zA-Z_]/,S=/^[ \t\r\n]/,I=jt("@{",!1),z=jt("}",!1),F=jt("@{}",!1),N=jt("\\",!1),M={type:"any"},T=Pt(["}"],!0,!1),J=jt("?",!1),O=jt(":",!1),B=jt("||",!1),R=jt("&&",!1),W=jt("==",!1),L=jt("!=",!1),U=jt(">=",!1),q=jt(">",!1),H=jt("<=",!1),G=jt("<",!1),K=jt("+",!1),X=jt("-",!1),Y=jt("/",!1),Z=jt("*",!1),Q=jt("%",!1),tt=jt("!",!1),et=jt("(",!1),nt=jt(")",!1),rt=jt(",",!1),ot=Dt("string"),it=jt("'",!1),at=Pt(["'","}"],!0,!1),lt=Dt("integer"),st=Pt([["0","9"]],!1,!1),ct=Dt("number"),ut=jt(".",!1),dt=jt("e",!1),ht=jt("E",!1),pt=Dt("boolean"),ft=jt("true",!1),gt=jt("false",!1),mt=Pt([["a","z"],["A","Z"],"_",["0","9"],"."],!1,!1),vt=Dt("identifier"),yt=Pt([["a","z"],["A","Z"],"_"],!1,!1),$t=Dt("whitespace"),_t=Pt([" ","\t","\r","\n"],!1,!1),bt=function(t){return f(t)},wt=0,xt=0,kt=[{line:1,column:1}],Et=0,Ct=[],At=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 Vt(){return t.substring(xt,wt)}function jt(t,e){return{type:"literal",text:t,ignoreCase:e}}function Pt(t,e,n){return{type:"class",parts:t,inverted:e,ignoreCase:n}}function Dt(t){return{type:"other",description:t}}function St(e){var n,r=kt[e];if(r)return r;for(n=e-1;!kt[n];)n--;for(r={line:(r=kt[n]).line,column:r.column};n<e;)10===t.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return kt[e]=r,r}function It(t,e){var n=St(t),r=St(e);return{source:o,start:{offset:t,line:n.line,column:n.column},end:{offset:e,line:r.line,column:r.column}}}function zt(t){wt<Et||(wt>Et&&(Et=wt,Ct=[]),Ct.push(t))}function Ft(){var t,e;return t=wt,Kt(),(e=Mt())!==r?(Kt(),xt=t,t=e):(wt=t,t=r),t}function Nt(){var e,n,o,i,a;if(e=wt,t.substr(wt,2)===l?(n=l,wt+=2):(n=r,0===At&&zt(I)),n!==r?(o=Kt(),(i=Mt())!==r?(Kt(),125===t.charCodeAt(wt)?(a=s,wt++):(a=r,0===At&&zt(z)),a!==r?(xt=e,e=i):(wt=e,e=r)):(wt=e,e=r)):(wt=e,e=r),e===r&&(e=wt,t.substr(wt,3)===c?(n=c,wt+=3):(n=r,0===At&&zt(F)),n!==r&&(xt=e,n=""),(e=n)===r&&(e=wt,n=wt,At++,92===t.charCodeAt(wt)?(o=u,wt++):(o=r,0===At&&zt(N)),o===r&&(t.substr(wt,2)===l?(o=l,wt+=2):(o=r,0===At&&zt(I))),At--,o===r?n=void 0:(wt=n,n=r),n!==r?(t.length>wt?(o=t.charAt(wt),wt++):(o=r,0===At&&zt(M)),o!==r?(xt=e,e=Vt()):(wt=e,e=r)):(wt=e,e=r),e===r))){if(e=wt,t.substr(wt,2)===l?(n=l,wt+=2):(n=r,0===At&&zt(I)),n!==r){if(o=[],A.test(t.charAt(wt))?(i=t.charAt(wt),wt++):(i=r,0===At&&zt(T)),i!==r)for(;i!==r;)o.push(i),A.test(t.charAt(wt))?(i=t.charAt(wt),wt++):(i=r,0===At&&zt(T));else o=r;o!==r?(125===t.charCodeAt(wt)?(i=s,wt++):(i=r,0===At&&zt(z)),i!==r?(xt=e,e=function(){throw new Error("Error tokenizing '"+t+"'.")}()):(wt=e,e=r)):(wt=e,e=r)}else wt=e,e=r;e===r&&(e=wt,t.substr(wt,2)===l?(n=l,wt+=2):(n=r,0===At&&zt(I)),n!==r&&(xt=e,n=function(){throw new Error("Error tokenizing '"+t+"'.")}()),(e=n)===r&&(e=wt,92===t.charCodeAt(wt)?(n=u,wt++):(n=r,0===At&&zt(N)),n!==r?(t.substr(wt,2)===l?(o=l,wt+=2):(o=r,0===At&&zt(I)),o!==r?(xt=e,e=o):(wt=e,e=r)):(wt=e,e=r),e===r&&(e=wt,92===t.charCodeAt(wt)?(n=u,wt++):(n=r,0===At&&zt(N)),n!==r?(t.length>wt?(o=t.charAt(wt),wt++):(o=r,0===At&&zt(M)),o!==r?(xt=e,e=m(o)):(wt=e,e=r)):(wt=e,e=r),e===r&&(e=wt,92===t.charCodeAt(wt)?(n=u,wt++):(n=r,0===At&&zt(N)),n!==r&&(xt=e,n=function(){throw new Error("Error tokenizing '"+t+"'.")}()),e=n))))}return e}function Mt(){var e,n,o,i,a,l;return e=wt,(n=Tt())!==r?(Kt(),63===t.charCodeAt(wt)?(o="?",wt++):(o=r,0===At&&zt(J)),o!==r?(Kt(),(i=Mt())!==r?(Kt(),58===t.charCodeAt(wt)?(a=":",wt++):(a=r,0===At&&zt(O)),a!==r?(Kt(),(l=Mt())!==r?(xt=e,e={type:"ConditionalExpression",test:n,consequent:i,alternate:l}):(wt=e,e=r)):(wt=e,e=r)):(wt=e,e=r)):(wt=e,e=r)):(wt=e,e=r),e===r&&(e=Tt()),e}function Tt(){var e,n,o,i,a,l,s,c;if(e=wt,(n=Jt())!==r){for(o=[],i=wt,a=Kt(),t.substr(wt,2)===d?(l=d,wt+=2):(l=r,0===At&&zt(B)),l!==r?(s=Kt(),(c=Jt())!==r?i=a=[a,l,s,c]:(wt=i,i=r)):(wt=i,i=r);i!==r;)o.push(i),i=wt,a=Kt(),t.substr(wt,2)===d?(l=d,wt+=2):(l=r,0===At&&zt(B)),l!==r?(s=Kt(),(c=Jt())!==r?i=a=[a,l,s,c]:(wt=i,i=r)):(wt=i,i=r);xt=e,e=p(n,o)}else wt=e,e=r;return e}function Jt(){var e,n,o,i,a,l,s,c;if(e=wt,(n=Ot())!==r){for(o=[],i=wt,a=Kt(),t.substr(wt,2)===y?(l=y,wt+=2):(l=r,0===At&&zt(R)),l!==r?(s=Kt(),(c=Ot())!==r?i=a=[a,l,s,c]:(wt=i,i=r)):(wt=i,i=r);i!==r;)o.push(i),i=wt,a=Kt(),t.substr(wt,2)===y?(l=y,wt+=2):(l=r,0===At&&zt(R)),l!==r?(s=Kt(),(c=Ot())!==r?i=a=[a,l,s,c]:(wt=i,i=r)):(wt=i,i=r);xt=e,e=p(n,o)}else wt=e,e=r;return e}function Ot(){var e,n,o,i,a,l,s,c;if(e=wt,(n=Bt())!==r){for(o=[],i=wt,a=Kt(),t.substr(wt,2)===$?(l=$,wt+=2):(l=r,0===At&&zt(W)),l===r&&(t.substr(wt,2)===_?(l=_,wt+=2):(l=r,0===At&&zt(L))),l!==r?(s=Kt(),(c=Bt())!==r?i=a=[a,l,s,c]:(wt=i,i=r)):(wt=i,i=r);i!==r;)o.push(i),i=wt,a=Kt(),t.substr(wt,2)===$?(l=$,wt+=2):(l=r,0===At&&zt(W)),l===r&&(t.substr(wt,2)===_?(l=_,wt+=2):(l=r,0===At&&zt(L))),l!==r?(s=Kt(),(c=Bt())!==r?i=a=[a,l,s,c]:(wt=i,i=r)):(wt=i,i=r);xt=e,e=h(n,o)}else wt=e,e=r;return e}function Bt(){var e,n,o,i,a,l,s,c;if(e=wt,(n=Rt())!==r){for(o=[],i=wt,a=Kt(),t.substr(wt,2)===b?(l=b,wt+=2):(l=r,0===At&&zt(U)),l===r&&(62===t.charCodeAt(wt)?(l=">",wt++):(l=r,0===At&&zt(q)),l===r&&(t.substr(wt,2)===w?(l=w,wt+=2):(l=r,0===At&&zt(H)),l===r&&(60===t.charCodeAt(wt)?(l="<",wt++):(l=r,0===At&&zt(G))))),l!==r?(s=Kt(),(c=Rt())!==r?i=a=[a,l,s,c]:(wt=i,i=r)):(wt=i,i=r);i!==r;)o.push(i),i=wt,a=Kt(),t.substr(wt,2)===b?(l=b,wt+=2):(l=r,0===At&&zt(U)),l===r&&(62===t.charCodeAt(wt)?(l=">",wt++):(l=r,0===At&&zt(q)),l===r&&(t.substr(wt,2)===w?(l=w,wt+=2):(l=r,0===At&&zt(H)),l===r&&(60===t.charCodeAt(wt)?(l="<",wt++):(l=r,0===At&&zt(G))))),l!==r?(s=Kt(),(c=Rt())!==r?i=a=[a,l,s,c]:(wt=i,i=r)):(wt=i,i=r);xt=e,e=h(n,o)}else wt=e,e=r;return e}function Rt(){var e,n,o,i,a,l,s,c;if(e=wt,(n=Wt())!==r){for(o=[],i=wt,a=Kt(),43===t.charCodeAt(wt)?(l=x,wt++):(l=r,0===At&&zt(K)),l===r&&(45===t.charCodeAt(wt)?(l=k,wt++):(l=r,0===At&&zt(X))),l!==r?(s=Kt(),(c=Wt())!==r?i=a=[a,l,s,c]:(wt=i,i=r)):(wt=i,i=r);i!==r;)o.push(i),i=wt,a=Kt(),43===t.charCodeAt(wt)?(l=x,wt++):(l=r,0===At&&zt(K)),l===r&&(45===t.charCodeAt(wt)?(l=k,wt++):(l=r,0===At&&zt(X))),l!==r?(s=Kt(),(c=Wt())!==r?i=a=[a,l,s,c]:(wt=i,i=r)):(wt=i,i=r);xt=e,e=h(n,o)}else wt=e,e=r;return e}function Wt(){var e,n,o,i,a,l,s,c;if(e=wt,(n=Lt())!==r){for(o=[],i=wt,a=Kt(),47===t.charCodeAt(wt)?(l="/",wt++):(l=r,0===At&&zt(Y)),l===r&&(42===t.charCodeAt(wt)?(l="*",wt++):(l=r,0===At&&zt(Z)),l===r&&(37===t.charCodeAt(wt)?(l="%",wt++):(l=r,0===At&&zt(Q)))),l!==r?(s=Kt(),(c=Lt())!==r?i=a=[a,l,s,c]:(wt=i,i=r)):(wt=i,i=r);i!==r;)o.push(i),i=wt,a=Kt(),47===t.charCodeAt(wt)?(l="/",wt++):(l=r,0===At&&zt(Y)),l===r&&(42===t.charCodeAt(wt)?(l="*",wt++):(l=r,0===At&&zt(Z)),l===r&&(37===t.charCodeAt(wt)?(l="%",wt++):(l=r,0===At&&zt(Q)))),l!==r?(s=Kt(),(c=Lt())!==r?i=a=[a,l,s,c]:(wt=i,i=r)):(wt=i,i=r);xt=e,e=h(n,o)}else wt=e,e=r;return e}function Lt(){var e,n,o;return(e=Ht())===r&&(e=qt())===r&&(e=wt,33===t.charCodeAt(wt)?(n="!",wt++):(n=r,0===At&&zt(tt)),n===r&&(43===t.charCodeAt(wt)?(n=x,wt++):(n=r,0===At&&zt(K)),n===r&&(45===t.charCodeAt(wt)?(n=k,wt++):(n=r,0===At&&zt(X)))),n!==r?(Kt(),(o=Lt())!==r?(xt=e,e={type:"UnaryExpression",operator:n,argument:o}):(wt=e,e=r)):(wt=e,e=r),e===r&&(e=function(){var e,n,o,i,a;return e=wt,(n=Gt())!==r?(Kt(),40===t.charCodeAt(wt)?(o="(",wt++):(o=r,0===At&&zt(et)),o!==r?(Kt(),i=function(){var e,n,o,i,a,l,s;if(e=wt,(n=Mt())!==r){for(o=[],i=wt,Kt(),44===t.charCodeAt(wt)?(a=",",wt++):(a=r,0===At&&zt(rt)),a!==r?(Kt(),(l=Mt())!==r?i=l:(wt=i,i=r)):(wt=i,i=r);i!==r;)o.push(i),i=wt,Kt(),44===t.charCodeAt(wt)?(a=",",wt++):(a=r,0===At&&zt(rt)),a!==r?(Kt(),(l=Mt())!==r?i=l:(wt=i,i=r)):(wt=i,i=r);xt=e,s=o,e=[n,...s]}else wt=e,e=r;return e===r&&(e=Kt()),e}(),i!==r?(Kt(),41===t.charCodeAt(wt)?(a=")",wt++):(a=r,0===At&&zt(nt)),a!==r?(xt=e,e={type:"CallExpression",callee:n,arguments:i}):(wt=e,e=r)):(wt=e,e=r)):(wt=e,e=r)):(wt=e,e=r),e===r&&(e=wt,(n=Gt())!==r&&(xt=e,n={type:"Variable",id:n}),(e=n)===r&&(e=function(){var e,n,o,i;return e=function(){var e,n,o,i;return At++,e=wt,39===t.charCodeAt(wt)?(n="'",wt++):(n=r,0===At&&zt(it)),n!==r?(o=function(){var t,e,n;for(t=wt,e=[],n=Ut();n!==r;)e.push(n),n=Ut();return xt=t,e=f(e)}(),39===t.charCodeAt(wt)?(i="'",wt++):(i=r,0===At&&zt(it)),i!==r?(xt=e,e=o):(wt=e,e=r)):(wt=e,e=r),At--,e===r&&(n=r,0===At&&zt(ot)),e}(),e===r&&(e=Ht())===r&&(e=qt())===r&&(e=function(){var e,n;return At++,e=wt,t.substr(wt,4)===E?(n=E,wt+=4):(n=r,0===At&&zt(ft)),n!==r&&(xt=e,n={type:"BooleanLiteral",value:!0}),(e=n)===r&&(e=wt,t.substr(wt,5)===C?(n=C,wt+=5):(n=r,0===At&&zt(gt)),n!==r&&(xt=e,n={type:"BooleanLiteral",value:!1}),e=n),At--,e===r&&(n=r,0===At&&zt(pt)),e}(),e===r&&(e=wt,40===t.charCodeAt(wt)?(n="(",wt++):(n=r,0===At&&zt(et)),n!==r&&(o=Mt())!==r?(41===t.charCodeAt(wt)?(i=")",wt++):(i=r,0===At&&zt(nt)),i!==r?(xt=e,e=o):(wt=e,e=r)):(wt=e,e=r))),e}())),e}())),e}function Ut(){var e,n,o,i,a;if(e=wt,t.substr(wt,2)===l?(n=l,wt+=2):(n=r,0===At&&zt(I)),n!==r?(o=Kt(),(i=Mt())!==r?(Kt(),125===t.charCodeAt(wt)?(a=s,wt++):(a=r,0===At&&zt(z)),a!==r?(xt=e,e=i):(wt=e,e=r)):(wt=e,e=r)):(wt=e,e=r),e===r&&(e=wt,t.substr(wt,3)===c?(n=c,wt+=3):(n=r,0===At&&zt(F)),n!==r&&(xt=e,n=""),(e=n)===r&&(e=wt,n=wt,At++,92===t.charCodeAt(wt)?(o=u,wt++):(o=r,0===At&&zt(N)),o===r&&(39===t.charCodeAt(wt)?(o="'",wt++):(o=r,0===At&&zt(it)),o===r&&(t.substr(wt,2)===l?(o=l,wt+=2):(o=r,0===At&&zt(I)))),At--,o===r?n=void 0:(wt=n,n=r),n!==r?(t.length>wt?(o=t.charAt(wt),wt++):(o=r,0===At&&zt(M)),o!==r?(xt=e,e=Vt()):(wt=e,e=r)):(wt=e,e=r),e===r))){if(e=wt,t.substr(wt,2)===l?(n=l,wt+=2):(n=r,0===At&&zt(I)),n!==r){if(o=[],V.test(t.charAt(wt))?(i=t.charAt(wt),wt++):(i=r,0===At&&zt(at)),i!==r)for(;i!==r;)o.push(i),V.test(t.charAt(wt))?(i=t.charAt(wt),wt++):(i=r,0===At&&zt(at));else o=r;o!==r?(125===t.charCodeAt(wt)?(i=s,wt++):(i=r,0===At&&zt(z)),i!==r?(xt=e,e=function(){throw new Error("Error tokenizing '"+t+"'.")}()):(wt=e,e=r)):(wt=e,e=r)}else wt=e,e=r;e===r&&(e=wt,t.substr(wt,2)===l?(n=l,wt+=2):(n=r,0===At&&zt(I)),n!==r&&(xt=e,n=function(){throw new Error("Error tokenizing '"+t+"'.")}()),(e=n)===r&&(e=wt,92===t.charCodeAt(wt)?(n=u,wt++):(n=r,0===At&&zt(N)),n!==r?(t.substr(wt,2)===l?(o=l,wt+=2):(o=r,0===At&&zt(I)),o!==r?(xt=e,e=o):(wt=e,e=r)):(wt=e,e=r),e===r&&(e=wt,92===t.charCodeAt(wt)?(n=u,wt++):(n=r,0===At&&zt(N)),n!==r?(t.length>wt?(o=t.charAt(wt),wt++):(o=r,0===At&&zt(M)),o!==r?(xt=e,e=m(o)):(wt=e,e=r)):(wt=e,e=r),e===r&&(e=wt,92===t.charCodeAt(wt)?(n=u,wt++):(n=r,0===At&&zt(N)),n!==r&&(xt=e,n=function(){throw new Error("Error tokenizing '"+t+"'.")}()),e=n))))}return e}function qt(){var e,n,o,i;if(At++,e=wt,45===t.charCodeAt(wt)?(n=k,wt++):(n=r,0===At&&zt(X)),n===r&&(n=null),o=[],j.test(t.charAt(wt))?(i=t.charAt(wt),wt++):(i=r,0===At&&zt(st)),i!==r)for(;i!==r;)o.push(i),j.test(t.charAt(wt))?(i=t.charAt(wt),wt++):(i=r,0===At&&zt(st));else o=r;return o!==r?(xt=e,e={type:"IntegerLiteral",value:g(Vt())}):(wt=e,e=r),At--,e===r&&(n=r,0===At&&zt(lt)),e}function Ht(){var e,n,o,i,a,l,s,c,u,d;for(At++,e=wt,45===t.charCodeAt(wt)?(n=k,wt++):(n=r,0===At&&zt(X)),n===r&&(n=null),o=[],j.test(t.charAt(wt))?(i=t.charAt(wt),wt++):(i=r,0===At&&zt(st));i!==r;)o.push(i),j.test(t.charAt(wt))?(i=t.charAt(wt),wt++):(i=r,0===At&&zt(st));if(46===t.charCodeAt(wt)?(i=".",wt++):(i=r,0===At&&zt(ut)),i!==r){if(a=[],j.test(t.charAt(wt))?(l=t.charAt(wt),wt++):(l=r,0===At&&zt(st)),l!==r)for(;l!==r;)a.push(l),j.test(t.charAt(wt))?(l=t.charAt(wt),wt++):(l=r,0===At&&zt(st));else a=r;if(a!==r){if(l=wt,101===t.charCodeAt(wt)?(s="e",wt++):(s=r,0===At&&zt(dt)),s===r&&(69===t.charCodeAt(wt)?(s="E",wt++):(s=r,0===At&&zt(ht))),s!==r){if(43===t.charCodeAt(wt)?(c=x,wt++):(c=r,0===At&&zt(K)),c===r&&(45===t.charCodeAt(wt)?(c=k,wt++):(c=r,0===At&&zt(X))),c===r&&(c=null),u=[],j.test(t.charAt(wt))?(d=t.charAt(wt),wt++):(d=r,0===At&&zt(st)),d!==r)for(;d!==r;)u.push(d),j.test(t.charAt(wt))?(d=t.charAt(wt),wt++):(d=r,0===At&&zt(st));else u=r;u!==r?l=s=[s,c,u]:(wt=l,l=r)}else wt=l,l=r;l===r&&(l=null),xt=e,e={type:"NumberLiteral",value:parseFloat(Vt())}}else wt=e,e=r}else wt=e,e=r;if(e===r){if(e=wt,45===t.charCodeAt(wt)?(n=k,wt++):(n=r,0===At&&zt(X)),n===r&&(n=null),o=[],j.test(t.charAt(wt))?(i=t.charAt(wt),wt++):(i=r,0===At&&zt(st)),i!==r)for(;i!==r;)o.push(i),j.test(t.charAt(wt))?(i=t.charAt(wt),wt++):(i=r,0===At&&zt(st));else o=r;if(o!==r)if(101===t.charCodeAt(wt)?(i="e",wt++):(i=r,0===At&&zt(dt)),i===r&&(69===t.charCodeAt(wt)?(i="E",wt++):(i=r,0===At&&zt(ht))),i!==r){if(43===t.charCodeAt(wt)?(a=x,wt++):(a=r,0===At&&zt(K)),a===r&&(45===t.charCodeAt(wt)?(a=k,wt++):(a=r,0===At&&zt(X))),a===r&&(a=null),l=[],j.test(t.charAt(wt))?(s=t.charAt(wt),wt++):(s=r,0===At&&zt(st)),s!==r)for(;s!==r;)l.push(s),j.test(t.charAt(wt))?(s=t.charAt(wt),wt++):(s=r,0===At&&zt(st));else l=r;l!==r?(xt=e,e={type:"NumberLiteral",value:parseFloat(Vt())}):(wt=e,e=r)}else wt=e,e=r;else wt=e,e=r}return At--,e===r&&(n=r,0===At&&zt(ct)),e}function Gt(){var e,n,o,i,a;if(At++,e=wt,n=wt,At++,o=function(){var e,n,o,i;return e=wt,t.substr(wt,4)===E?(n=E,wt+=4):(n=r,0===At&&zt(ft)),n===r&&(t.substr(wt,5)===C?(n=C,wt+=5):(n=r,0===At&&zt(gt))),n!==r?(o=wt,At++,P.test(t.charAt(wt))?(i=t.charAt(wt),wt++):(i=r,0===At&&zt(mt)),At--,i===r?o=void 0:(wt=o,o=r),o!==r?e=n=[n,o]:(wt=e,e=r)):(wt=e,e=r),e}(),At--,o===r?n=void 0:(wt=n,n=r),n!==r)if(D.test(t.charAt(wt))?(o=t.charAt(wt),wt++):(o=r,0===At&&zt(yt)),o!==r){for(i=[],P.test(t.charAt(wt))?(a=t.charAt(wt),wt++):(a=r,0===At&&zt(mt));a!==r;)i.push(a),P.test(t.charAt(wt))?(a=t.charAt(wt),wt++):(a=r,0===At&&zt(mt));xt=e,e={type:"Identifier",name:Vt()}}else wt=e,e=r;else wt=e,e=r;return At--,e===r&&(n=r,0===At&&zt(vt)),e}function Kt(){var e,n;for(At++,e=[],S.test(t.charAt(wt))?(n=t.charAt(wt),wt++):(n=r,0===At&&zt(_t));n!==r;)e.push(n),S.test(t.charAt(wt))?(n=t.charAt(wt),wt++):(n=r,0===At&&zt(_t));return At--,n=r,0===At&&zt($t),e}if((n=a())!==r&&wt===t.length)return n;throw n!==r&&wt<t.length&&zt({type:"end"}),function(t,e,n){return new v(v.buildMessage(t,e),t,e,n)}(Ct,Et<t.length?t.charAt(Et):null,Et<t.length?It(Et,Et+1):It(Et,Et))}!function(t,e){function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n}(v,Error),v.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+":"+o.line+":"+o.column;if(r){var a=this.location.end,l=y("",o.line.toString().length," "),s=r[o.line-1],c=(o.line===a.line?a.column:s.length+1)-o.column||1;e+="\n --\x3e "+i+"\n"+l+" |\n"+o.line+" | "+s+"\n"+l+" | "+y("",o.column-1," ")+y("",c,"^")}else e+="\n at "+i}return e},v.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 _=new Map,b=new Map;function w(t,e,n){const r={args:e,cb:n},o=_.get(t)||[];_.has(t)||_.set(t,o),o.push(r);const i=t+":"+e.map((t=>"object"==typeof t?t.type:t)).join("#");b.set(i,r)}function x(t,e){let n=t.args.length,r=t.args.length;const o=t.args[t.args.length-1];if("object"==typeof o&&o.isVararg&&(--n,r=1/0),e.length<n)return{type:"few",expected:n,found:e.length};if(e.length>r)return{type:"many",expected:r,found:e.length};for(let n=0;n<e.length;++n){let r=n>=t.args.length?t.args[t.args.length-1]:t.args[n];if("object"!=typeof r&&(r={type:r}),r.type!==e[n].type)return{type:"mismatch",expected:r.type,found:e[n].type}}return{type:"match"}}function k(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=>{k(t,e)}));break;case"BinaryExpression":case"LogicalExpression":k(t.left,e),k(t.right,e);break;case"UnaryExpression":k(t.argument,e);break;case"ConditionalExpression":k(t.test,e),k(t.consequent,e),k(t.alternate,e);break;case"CallExpression":t.arguments.forEach((t=>{k(t,e)}))}}function E(t,e){for(;t.length<e;)t="0"+t;return t}function C(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=(t||"").toLowerCase()).charAt(0))return n;const r=V(t);return r?(r.a*=e,A(r)):n}function A(t){return 255===t.a?"#".concat([t.r,t.g,t.b].map((t=>E(Math.round(t).toString(16),2))).join("")):"rgba(".concat(t.r,",").concat(t.g,",").concat(t.b,",").concat((t.a/255).toFixed(2),")")}function V(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,l=2===o.length?o:o+o,s=2===i.length?i:i+i,c=2===n.length?n:n+n;return{a:parseInt(c,16),r:parseInt(a,16),g:parseInt(l,16),b:parseInt(s,16)}}const[t,n,r,o]=e,i=2===n.length?n:n+n,a=2===r.length?r:r+r,l=2===o.length?o:o+o;return{a:255,r:parseInt(i,16),g:parseInt(a,16),b:parseInt(l,16)}}return null}function j(t){return"url"===t.type||"color"===t.type?{type:"string",value:t.value}:t}function P(t){return t.toISOString().replace("T"," ").replace(/\.\d{3}Z$/,"")}function D(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 P(t.value);if("color"===t.type)return O(J(t.value));if("url"===t.type)return t.value;throw new Error("Unexpected type ".concat(t.type))}function S(t){let e=D(t);return"string"===t.type&&(e="'"+e.replace(/\\/g,"\\'").replace(/'/g,"\\'")+"'"),e}function I(t){return"datetime"===t?"DateTime":t.charAt(0).toUpperCase()+t.substring(1)}const z=new Int32Array(1);function F(t){return z[0]=t,z[0]}function N(t){if(t<r||t>n)throw new Error("Integer overflow.")}function M(t){const e=[];return k(t,{Variable(t){e.push(t.id.name)}}),e}function T(t,e){throw new Error("Failed to evaluate [".concat(t,"]. ").concat(e))}function J(t){const e=V(t);if(e)return e;throw new Error("Unable to convert value to Color, expected format #AARRGGBB.")}function O(t){return"#".concat([t.a,t.r,t.g,t.b].map((t=>{if(t<0||t>255)throw new Error("Value out of range 0..1.");return E(Math.round(t).toString(16),2)})).join("").toUpperCase())}function B(t){return{type:a,value:D(t)}}function R(t){const e=Number(t.value);if(isNaN(e)||!Number.isFinite(e))throw new Error("Unable to convert value to Number.");return{type:s,value:e}}function W(t,e,n){let r="";const o=t.type===a?t.value:D(t);for(;r.length+o.length<e.value;)r+=n.value;return r.length>0&&r.length+o.length>e.value&&(r=r.substring(0,e.value-o.length)),r}function L(t,e,n){const r=W(t,e,n);return{type:a,value:r+D(t)}}function U(t,e,n){const r=W(t,e,n);return{type:a,value:D(t)+r}}function q(t,e){if(0===e.value)throw new Error("Division by zero is not supported.");let n=t.value/e.value;return t.type===l&&(n=F(n)),{type:t.type,value:n}}function H(t,e){if(0===e.value)throw new Error("Division by zero is not supported.");let n=t.value%e.value;return t.type===l&&(n=F(n)),{type:t.type,value:n}}function G(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];let r=e.length?e[0].value:0;for(let t=1;t<e.length;++t)r*=e[t].value,e[0].type===l&&(r=F(r));return{type:e[0].type,value:r}}function K(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];let r=e.length?e[0].value:0;for(let t=1;t<e.length;++t)r-=e[t].value,e[0].type===l&&(r=F(r));return{type:e.length?e[0].type:l,value:r}}function X(){let t=0;for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];for(let e=0;e<n.length;++e)t+=n[e].value,n[0].type===l&&(t=F(t));return{type:n.length?n[0].type:l,value:t}}function Y(t){const e=Math.abs(t.value);return t.type===l&&N(e),{type:t.type,value:e}}function Z(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(!e.length)throw new Error("Non empty argument list is required for max function.");return{type:e[0].type,value:Math.max(...e.map((t=>t.value)))}}function Q(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(!e.length)throw new Error("Non empty argument list is required for min function.");return{type:e[0].type,value:Math.min(...e.map((t=>t.value)))}}function tt(t){return{type:t.type,value:Math.sign(t.value)}}function et(t,e){let n;if(0===e.value&&t.type===l)n=t.value;else if(0===t.value&&t.type===l)n=0;else{let r=Math.sign(e.value);t.type===s&&0===r&&(r=Object.is(r,0)?1:-1),n=Math.abs(t.value)*r}return t.type===l&&N(n),{type:t.type,value:n}}function nt(t){return e=>{const n=J(e.value);return{type:s,value:n[t]/255}}}function rt(t){return(e,n)=>{const r=J(e.value);return r[t]=255*n.value,{type:u,value:O(r)}}}const ot=nt("a"),it=nt("r"),at=nt("g"),lt=nt("b"),st=rt("a"),ct=rt("r"),ut=rt("g"),dt=rt("b");function ht(t,e,n){if(t.value<0)throw new Error("Expecting non-negative number of milliseconds.");let r=Math.floor(t.value/e);return n&&(r%=n),{type:l,value:r}}const pt=36e5;function ft(){}const gt=t=>t;function mt(t,e){for(const n in e)t[n]=e[n];return t}function vt(t){return t()}function yt(){return Object.create(null)}function $t(t){t.forEach(vt)}function _t(t){return"function"==typeof t}let bt;function wt(t,e){return bt||(bt=document.createElement("a")),bt.href=e,t===bt.href}function xt(t,e){return t!=t?e==e:t!==e}function kt(t){return 0===Object.keys(t).length}function Et(t,...e){if(null==t)return ft;const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function Ct(t,e,n){t.$$.on_destroy.push(Et(e,n))}function At(t,e,n,r){if(t){const o=Vt(t,e,n,r);return t[0](o)}}function Vt(t,e,n,r){return t[1]&&r?mt(n.ctx.slice(),t[1](r(e))):n.ctx}function jt(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 Pt(t,e,n,r,o,i){if(o){const a=Vt(e,n,r,i);t.p(a,o)}}function Dt(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 St(t){return t&&_t(t.destroy)?t.destroy:ft}const It="undefined"!=typeof window;let zt=It?()=>window.performance.now():()=>Date.now(),Ft=It?t=>requestAnimationFrame(t):ft;const Nt=new Set;function Mt(t){Nt.forEach((e=>{e.c(t)||(Nt.delete(e),e.f())})),0!==Nt.size&&Ft(Mt)}let Tt=!1;function Jt(t,e,n,r){for(;t<e;){const o=t+(e-t>>1);n(o)<=r?t=o+1:e=o}return t}function Ot(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function Bt(t){const e=qt("style");return function(t,e){!function(t,e){t.appendChild(e)}(t.head||t,e)}(Ot(t),e),e.sheet}function Rt(t,e){if(Tt){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:Jt(1,o,(t=>e[n[t]].claim_order),i))-1;r[t]=n[a]+1;const l=a+1;n[l]=t,o=Math.max(l,o)}const i=[],a=[];let l=e.length-1;for(let t=n[o]+1;0!=t;t=r[t-1]){for(i.push(e[t-1]);l>=t;l--)a.push(e[l]);l--}for(;l>=0;l--)a.push(e[l]);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.parentElement!==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 Wt(t,e,n){Tt&&!n?Rt(t,e):e.parentNode===t&&e.nextSibling==n||t.insertBefore(e,n||null)}function Lt(t){t.parentNode.removeChild(t)}function Ut(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function qt(t){return document.createElement(t)}function Ht(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Gt(t){return document.createTextNode(t)}function Kt(){return Gt(" ")}function Xt(){return Gt("")}function Yt(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function Zt(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function Qt(t,e){const n=Object.getOwnPropertyDescriptors(t.__proto__);for(const r in e)null==e[r]?t.removeAttribute(r):"style"===r?t.style.cssText=e[r]:"__value"===r?t.value=t[r]=e[r]:n[r]&&n[r].set?t[r]=e[r]:Zt(t,r,e[r])}function te(t){return Array.from(t.childNodes)}function ee(t,e,n,r,o=!1){!function(t){void 0===t.claim_info&&(t.claim_info={last_index:0,total_claimed:0})}(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 ne(t,e,n,r){return ee(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 re(t,e,n){return ne(t,e,n,qt)}function oe(t,e,n){return ne(t,e,n,Ht)}function ie(t,e){return ee(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}),(()=>Gt(e)),!0)}function ae(t){return ie(t," ")}function le(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function se(t,e,n,r){null===n?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}const ce=new Map;let ue,de=0;function he(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(", "),de-=o,de||Ft((()=>{de||(ce.forEach((t=>{const{stylesheet:e}=t;let n=e.cssRules.length;for(;n--;)e.deleteRule(n);t.rules={}})),ce.clear())})))}function pe(t){ue=t}function fe(){if(!ue)throw new Error("Function called outside component initialization");return ue}function ge(t){fe().$$.on_mount.push(t)}function me(t){fe().$$.on_destroy.push(t)}function ve(t,e){return fe().$$.context.set(t,e),e}function ye(t){return fe().$$.context.get(t)}function $e(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((t=>t.call(this,e)))}const _e=[],be=[],we=[],xe=[],ke=Promise.resolve();let Ee=!1;function Ce(){Ee||(Ee=!0,ke.then(Se))}function Ae(){return Ce(),ke}function Ve(t){we.push(t)}const je=new Set;let Pe,De=0;function Se(){const t=ue;do{for(;De<_e.length;){const t=_e[De];De++,pe(t),Ie(t.$$)}for(pe(null),_e.length=0,De=0;be.length;)be.pop()();for(let t=0;t<we.length;t+=1){const e=we[t];je.has(e)||(je.add(e),e())}we.length=0}while(_e.length);for(;xe.length;)xe.pop()();Ee=!1,je.clear(),pe(t)}function Ie(t){if(null!==t.fragment){t.update(),$t(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Ve)}}function ze(t,e,n){t.dispatchEvent(function(t,e,{bubbles:n=!1,cancelable:r=!1}={}){const o=document.createEvent("CustomEvent");return o.initCustomEvent(t,n,r,e),o}(`${e?"intro":"outro"}${n}`))}const Fe=new Set;let Ne;function Me(){Ne={r:0,c:[],p:Ne}}function Te(){Ne.r||$t(Ne.c),Ne=Ne.p}function Je(t,e){t&&t.i&&(Fe.delete(t),t.i(e))}function Oe(t,e,n,r){if(t&&t.o){if(Fe.has(t))return;Fe.add(t),Ne.c.push((()=>{Fe.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}else r&&r()}const Be={duration:0};function Re(t,e,n){let r,o,i=e(t,n),a=!1,l=0;function s(){r&&he(t,r)}function c(){const{delay:e=0,duration:n=300,easing:c=gt,tick:u=ft,css:d}=i||Be;d&&(r=function(t,e,n,r,o,i,a,l=0){const s=16.666/r;let c="{\n";for(let t=0;t<=1;t+=s){const r=e+(n-e)*i(t);c+=100*t+`%{${a(r,1-r)}}\n`}const u=c+`100% {${a(n,1-n)}}\n}`,d=`__svelte_${function(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}(u)}_${l}`,h=Ot(t),{stylesheet:p,rules:f}=ce.get(h)||function(t,e){const n={stylesheet:Bt(e),rules:{}};return ce.set(t,n),n}(h,t);f[d]||(f[d]=!0,p.insertRule(`@keyframes ${d} ${u}`,p.cssRules.length));const g=t.style.animation||"";return t.style.animation=`${g?`${g}, `:""}${d} ${r}ms linear ${o}ms 1 both`,de+=1,d}(t,0,1,n,e,c,d,l++)),u(0,1);const h=zt()+e,p=h+n;o&&o.abort(),a=!0,Ve((()=>ze(t,!0,"start"))),o=function(t){let e;return 0===Nt.size&&Ft(Mt),{promise:new Promise((n=>{Nt.add(e={c:t,f:n})})),abort(){Nt.delete(e)}}}((e=>{if(a){if(e>=p)return u(1,0),ze(t,!0,"end"),s(),a=!1;if(e>=h){const t=c((e-h)/n);u(t,1-t)}}return a}))}let u=!1;return{start(){u||(u=!0,he(t),_t(i)?(i=i(),(Pe||(Pe=Promise.resolve(),Pe.then((()=>{Pe=null}))),Pe).then(c)):c())},invalidate(){u=!1},end(){a&&(s(),a=!1)}}}const We="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function Le(t,e){Oe(t,1,1,(()=>{e.delete(t.key)}))}function Ue(t,e){const n={},r={},o={$$scope:1};let i=t.length;for(;i--;){const a=t[i],l=e[i];if(l){for(const t in a)t in l||(r[t]=1);for(const t in l)o[t]||(n[t]=l[t],o[t]=1);t[i]=l}else for(const t in a)o[t]=1}for(const t in r)t in n||(n[t]=void 0);return n}let qe;function He(t){t&&t.c()}function Ge(t,e){t&&t.l(e)}function Ke(t,e,n,r){const{fragment:o,on_mount:i,on_destroy:a,after_update:l}=t.$$;o&&o.m(e,n),r||Ve((()=>{const e=i.map(vt).filter(_t);a?a.push(...e):$t(e),t.$$.on_mount=[]})),l.forEach(Ve)}function Xe(t,e){const n=t.$$;null!==n.fragment&&($t(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Ye(t,e,n,r,o,i,a,l=[-1]){const s=ue;pe(t);const c=t.$$={fragment:null,ctx:null,props:i,update:ft,not_equal:o,bound:yt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:yt(),dirty:l,skip_bound:!1,root:e.target||s.$$.root};a&&a(c.root);let u=!1;if(c.ctx=n?n(t,e.props||{},((e,n,...r)=>{const i=r.length?r[0]:n;return c.ctx&&o(c.ctx[e],c.ctx[e]=i)&&(!c.skip_bound&&c.bound[e]&&c.bound[e](i),u&&function(t,e){-1===t.$$.dirty[0]&&(_e.push(t),Ce(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(t,e)),n})):[],c.update(),u=!0,$t(c.before_update),c.fragment=!!r&&r(c.ctx),e.target){if(e.hydrate){Tt=!0;const t=te(e.target);c.fragment&&c.fragment.l(t),t.forEach(Lt)}else c.fragment&&c.fragment.c();e.intro&&Je(t.$$.fragment),Ke(t,e.target,e.anchor,e.customElement),Tt=!1,Se()}pe(s)}new Set(["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"]),"function"==typeof HTMLElement&&(qe=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(vt).filter(_t);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,n){this[t]=n}disconnectedCallback(){$t(this.$$.on_disconnect)}$destroy(){Xe(this,1),this.$destroy=ft}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){this.$$set&&!kt(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});class Ze{$destroy(){Xe(this,1),this.$destroy=ft}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){this.$$set&&!kt(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Qe=[];function tn(t,e=ft){let n;const r=new Set;function o(e){if(i=e,((o=t)!=o?i==i:o!==i||o&&"object"==typeof o||"function"==typeof o)&&(t=e,n)){const e=!Qe.length;for(const e of r)e[1](),Qe.push(e,t);if(e){for(let t=0;t<Qe.length;t+=2)Qe[t][0](Qe[t+1]);Qe.length=0}}var o,i}return{set:o,update:function(e){o(e(t))},subscribe:function(i,a=ft){const l=[i,a];return r.add(l),1===r.size&&(n=e(o)||ft),i(t),()=>{r.delete(l),0===r.size&&(n(),n=null)}}}}function en(t,e,n){const r=!Array.isArray(t),o=r?[t]:t,i=e.length<2;return{subscribe:tn(n,(t=>{let n=!1;const a=[];let l=0,s=ft;const c=()=>{if(l)return;s();const n=e(r?a[0]:a,t);i?t(n):s=_t(n)?n:ft},u=o.map(((t,e)=>Et(t,(t=>{a[e]=t,l&=~(1<<e),n&&c()}),(()=>{l|=1<<e}))));return n=!0,c(),function(){$t(u),s()}})).subscribe}}class nn{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=tn(this.value)),this.store.subscribe(t)}set(t){const e=this.fromString(t);this.setValue(e)}setValue(t){const e=this.convertValue(t);this.value=e,this.store&&this.store.set(e)}getValue(){return this.value}}const rn={string:class extends nn{convertValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value");return t}fromString(t){return t}getType(){return"string"}},number:class extends nn{convertValue(t){if("number"!=typeof t||isNaN(t)||!isFinite(t))throw new Error("Incorrect variable value");return t}fromString(t){const e=Number(t);return this.convertValue(e)}getType(){return"number"}},integer:class extends nn{convertValue(t){if("number"!=typeof t||isNaN(t)||t>n||t<r||t!==Math.round(t))throw new Error("Incorrect variable value");return t}fromString(t){const e=Number(t);return this.convertValue(e)}getType(){return"integer"}},boolean:class extends nn{convertValue(t){if(1!==t&&0!==t&&!0!==t&&!1!==t)throw new Error("Incorrect variable value");return Number(t)}fromString(t){if("1"===t||"true"===t)return 1;if("0"===t||"false"===t)return 0;throw new Error("Incorrect variable value")}getType(){return"boolean"}},color:class extends nn{convertValue(t){if("string"!=typeof t||!V(t))throw new Error("Incorrect variable value");return t}fromString(t){return this.convertValue(t)}getType(){return"color"}},url:class extends nn{convertValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value");return t}fromString(t){return t}getType(){return"url"}}};function on(t,e,n){if(!(e in rn))throw new Error("Unsupported variable type");return new rn[e](t,n)}function an(t){return t.map(S).join(", ")}w("toString",[l],B),w("toString",[s],B),w("toString",[c],B),w("toString",[u],B),w("toString",["url"],B),w("toNumber",[l],R),w("toNumber",[a],R),w("toInteger",[s],(function(t){if(t.value>n||t.value<r)throw new Error("Unable to convert value to Integer.");const e=t.value-t.value%1;return{type:l,value:e}})),w("toInteger",[a],(function(t){const e=Number(t.value);if(isNaN(e)||e%1!=0||e>n||e<r)throw new Error("Unable to convert value to Integer.");return{type:l,value:e}})),w("toInteger",[c],(function(t){return{type:l,value:t.value?1:0}})),w("toBoolean",[l],(function(t){if(1!==t.value&&0!==t.value)throw new Error("Unable to convert value to Boolean.");return{type:c,value:t.value}})),w("toBoolean",[a],(function(t){if("true"!==t.value&&"false"!==t.value)throw new Error("Unable to convert value to Boolean.");return{type:c,value:"true"===t.value?1:0}})),w("encodeUri",[a],(function(t){try{return{type:a,value:encodeURIComponent(t.value)}}catch(t){throw new Error("Unable to encodeUri string.")}})),w("decodeUri",[a],(function(t){try{return{type:a,value:decodeURIComponent(t.value)}}catch(t){throw new Error("Unable to decodeUri string.")}})),w("parseUnixTime",[l],(function(t){return{type:d,value:new Date(1e3*t.value)}})),w("nowLocal",[],(function(){return{type:d,value:new Date}})),w("addMillis",[d,l],(function(t,e){return{type:d,value:new Date(t.value.getTime()+e.value)}})),w("setYear",[d,l],(function(t,e){const n=new Date(t.value);return n.setFullYear(e.value),{type:d,value:n}})),w("setMonth",[d,l],(function(t,e){if(e.value<1||e.value>12)throw new Error("Expecting month in [1..12], instead got ".concat(e.value,"."));const n=new Date(t.value);return n.setMonth(e.value-1),{type:d,value:n}})),w("setDay",[d,l],(function(t,e){const n=new Date(t.value);if(e.value<=0&&-1!==e.value||e.value>function(t){const e=new Date(t);return e.setMonth(e.getMonth()+1),e.setDate(0),e.getDate()}(n))throw new Error("Unable to set day ".concat(e.value," for date ").concat(D(t),"."));return n.setDate(-1===e.value?0:e.value),{type:d,value:n}})),w("setHours",[d,l],(function(t,e){if(e.value<0||e.value>23)throw new Error("Expecting hours in [0..23], instead got ".concat(e.value,"."));const n=new Date(t.value);return n.setHours(e.value-n.getTimezoneOffset()/60),{type:d,value:n}})),w("setMinutes",[d,l],(function(t,e){if(e.value<0||e.value>59)throw new Error("Expecting minutes in [0..59], instead got ".concat(e.value,"."));const n=new Date(t.value);return n.setMinutes(e.value),{type:d,value:n}})),w("setSeconds",[d,l],(function(t,e){if(e.value<0||e.value>59)throw new Error("Expecting seconds in [0..59], instead got ".concat(e.value,"."));const n=new Date(t.value);return n.setSeconds(e.value),{type:d,value:n}})),w("setMillis",[d,l],(function(t,e){if(e.value<0||e.value>999)throw new Error("Expecting millis in [0..999], instead got ".concat(e.value,"."));const n=new Date(t.value);return n.setMilliseconds(e.value),{type:d,value:n}})),w("getIntervalSeconds",[l],(function(t){return ht(t,1e3,60)})),w("getIntervalTotalSeconds",[l],(function(t){return ht(t,1e3)})),w("getIntervalMinutes",[l],(function(t){return ht(t,6e4,60)})),w("getIntervalTotalMinutes",[l],(function(t){return ht(t,6e4)})),w("getIntervalHours",[l],(function(t){return ht(t,pt,24)})),w("getIntervalTotalHours",[l],(function(t){return ht(t,pt)})),w("getIntervalTotalDays",[l],(function(t){return ht(t,864e5)})),w("getIntervalTotalWeeks",[l],(function(t){return ht(t,6048e5)})),w("len",[a],(function(t){return{type:l,value:t.value.length}})),w("contains",[a,a],(function(t,e){return{type:c,value:t.value.includes(e.value)?1:0}})),w("substring",[a,l,l],(function(t,e,n){if(n.value<e.value)throw new Error("Indexes should be in ascending order.");if(e.value<0||e.value>t.value.length||n.value<0||n.value>t.value.length)throw new Error("Indexes are out of bounds.");return{type:a,value:t.value.substring(e.value,n.value)}})),w("replaceAll",[a,a,a],(function(t,e,n){let r;return r=e.value?t.value.replace(new RegExp(function(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}(e.value),"g"),n.value):t.value,{type:a,value:r}})),w("index",[a,a],(function(t,e){return{type:l,value:t.value.indexOf(e.value)}})),w("lastIndex",[a,a],(function(t,e){return{type:l,value:t.value.lastIndexOf(e.value)}})),w("trim",[a],(function(t){return{type:a,value:t.value.trim()}})),w("trimLeft",[a],(function(t){return{type:a,value:t.value.replace(/^\s+/,"")}})),w("trimRight",[a],(function(t){return{type:a,value:t.value.replace(/\s+$/,"")}})),w("toUpperCase",[a],(function(t){return{type:a,value:t.value.toUpperCase()}})),w("toLowerCase",[a],(function(t){return{type:a,value:t.value.toLowerCase()}})),w("padStart",[a,l,a],L),w("padStart",[l,l,a],L),w("padEnd",[a,l,a],U),w("padEnd",[l,l,a],U),w("div",[l,l],q),w("div",[s,s],q),w("mod",[l,l],H),w("mod",[s,s],H),w("mul",[{type:l,isVararg:!0}],G),w("mul",[{type:s,isVararg:!0}],G),w("sub",[{type:l,isVararg:!0}],K),w("sub",[{type:s,isVararg:!0}],K),w("sum",[{type:l,isVararg:!0}],X),w("sum",[{type:s,isVararg:!0}],X),w("abs",[l],Y),w("abs",[s],Y),w("max",[{type:l,isVararg:!0}],Z),w("max",[{type:s,isVararg:!0}],Z),w("min",[{type:l,isVararg:!0}],Q),w("min",[{type:s,isVararg:!0}],Q),w("maxNumber",[],(function(){return{type:s,value:o}})),w("minNumber",[],(function(){return{type:s,value:i}})),w("maxInteger",[],(function(){return{type:l,value:n}})),w("minInteger",[],(function(){return{type:l,value:r}})),w("round",[s],(function(t){const e=Math.sign(t.value);return{type:s,value:e*Math.round(Math.abs(t.value))}})),w("floor",[s],(function(t){return{type:s,value:Math.floor(t.value)}})),w("ceil",[s],(function(t){return{type:s,value:Math.ceil(t.value)}})),w("signum",[s],tt),w("signum",[l],tt),w("copySign",[s,s],et),w("copySign",[l,l],et),w("getColorAlpha",[a],ot),w("getColorAlpha",[u],ot),w("getColorRed",[a],it),w("getColorRed",[u],it),w("getColorGreen",[a],at),w("getColorGreen",[u],at),w("getColorBlue",[a],lt),w("getColorBlue",[u],lt),w("setColorAlpha",[a,s],st),w("setColorAlpha",[u,s],st),w("setColorRed",[a,s],ct),w("setColorRed",[u,s],ct),w("setColorGreen",[a,s],ut),w("setColorGreen",[u,s],ut),w("setColorBlue",[a,s],dt),w("setColorBlue",[u,s],dt),w("rgb",[s,s,s],(function(t,e,n){const r={a:255,r:255*t.value,g:255*e.value,b:255*n.value};return{type:u,value:O(r)}})),w("argb",[s,s,s,s],(function(t,e,n,r){const o={a:255*t.value,r:255*e.value,g:255*n.value,b:255*r.value};return{type:u,value:O(o)}}));const ln={StringLiteral:function(t,e){return{type:a,value:e.value}},NumberLiteral:function(t,e){return{type:s,value:e.value}},IntegerLiteral:function(t,e){return{type:l,value:e.value}},BooleanLiteral:function(t,e){return{type:c,value:e.value?1:0}},UnaryExpression:function(t,e){const n=j(sn(t,e.argument));switch(e.operator){case"!":if(n.type===c)return{type:c,value:n.value?0:1};T("".concat(e.operator).concat(S(n)),"A Boolean is expected after a unary not.");case"+":case"-":const t="+"===e.operator?1:-1;if(n.type===l)return{type:l,value:n.value*t};if(n.type===s)return{type:s,value:n.value*t};T("".concat(e.operator).concat(S(n)),"A Number is expected after a unary ".concat("+"===e.operator?"plus":"minus","."))}},ConditionalExpression:function(t,e){const n=j(sn(t,e.test));if(n.type===c)return n.value?sn(t,e.consequent):sn(t,e.alternate);T("".concat(S(n)," ? ").concat(S(sn(t,e.consequent))," : ").concat(S(sn(t,e.alternate))),"Ternary must be called with a Boolean value as a condition.")},TemplateLiteral:function(t,e){let n="";if(2===e.quasis.length&&""===e.quasis[0].value&&""===e.quasis[1].value)return sn(t,e.expressions[0]);for(let r=0;r<e.expressions.length;++r)n+=e.quasis[r].value,n+=D(sn(t,e.expressions[r]));return n+=e.quasis[e.quasis.length-1].value,{type:a,value:n}},LogicalExpression:function(t,e){const n=j(sn(t,e.left));if(n.type!==c&&T("".concat(S(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:c,value:0};const r=j(sn(t,e.right));return r.type!==c&&T("".concat(S(n)," ").concat(e.operator," ").concat(S(r)),"Operator '".concat(e.operator,"' cannot be applied to different types: Boolean and ").concat(I(r.type),".")),{type:c,value:r.value}},BinaryExpression:function(t,e){const n=e.operator,r=sn(t,e.left),o=sn(t,e.right);if(r.type!==o.type&&T("".concat(S(r)," ").concat(e.operator," ").concat(S(o)),"Operator '".concat(n,"' cannot be applied to different types: ").concat(I(r.type)," and ").concat(I(o.type),".")),"=="===n||"!="===n)return function(t,e,n){let r;return r=e.type===d&&n.type===d?e.value.getTime()===n.value.getTime():e.value===n.value,"!="===t&&(r=!r),{type:c,value:r?1:0}}(n,r,o);if(">"===n||">="===n||"<"===n||"<="===n)return function(t,e,n){let r;e.type!==s&&e.type!==l&&e.type!==d&&T("".concat(S(e)," ").concat(t," ").concat(S(n)),"Operator '".concat(t,"' cannot be applied to ").concat(I(e.type)," type."));const o=e.type===d?e.value.getTime():e.value,i=n.type===d?n.value.getTime():n.value;return r=">"===t?o>i:">="===t?o>=i:"<"===t?o<i:o<=i,{type:c,value:r?1:0}}(n,r,o);if("+"===n||"-"===n)return function(t,e,n){if(e.type!==a&&e.type!==s&&e.type!==l&&T("".concat(S(e)," ").concat(t," ").concat(S(n)),"Operator '".concat(t,"' cannot be applied to ").concat(I(e.type)," type.")),e.type===a)return"-"===t&&T("".concat(S(e)," - ").concat(S(n)),"Operator '".concat(t,"' cannot be applied to ").concat(I(e.type)," type.")),{type:a,value:e.value+n.value};let r="+"===t?e.value+n.value:e.value-n.value;return e.type===l&&(r=F(r)),{type:e.type,value:r}}(n,r,o);if("/"===n||"*"===n||"%"===n)return function(t,e,n){let r;if(e.type!==l&&e.type!==s&&T("".concat(S(e)," ").concat(t," ").concat(S(n)),"Operator '".concat(t,"' cannot be applied to ").concat(I(e.type)," type.")),"*"===t)r=e.value*n.value;else{if("/"!==t&&"%"!==t)throw new Error("Unsupported operation ".concat(t));0===n.value&&T("".concat(S(e)," ").concat(t," ").concat(S(n)),"Division by zero is not supported."),r="/"===t?e.value/n.value:e.value%n.value}return e.type===l&&(r=F(r)),{type:e.type,value:r}}(n,r,o);throw new Error("Unsupported operation ".concat(n))},CallExpression:function(t,e){const n=e.callee.name;if(!_.has(n))throw new Error("Unknown function name: ".concat(n,"."));let r;const o=e.arguments.map((e=>sn(t,e))),i=n+":"+o.map((t=>t.type)).join("#");if(b.has(i))r=b.get(i);else{const t=function(t,e){const n=_.get(t);if(!n)throw new Error("Missing function");let r=null;for(let t=0;t<n.length;++t){const o=x(n[t],e);if("match"===o.type)return n[t];r||(r=o)}if(!r)throw new Error("Missing function");return r}(n,o);if("expected"in t){const e=o.map((t=>I(t.type))).join(", "),r="".concat(n,"(").concat(an(o),")");"few"===t.type&&0===o.length?T(r,"Non empty argument list is required for function '".concat(n,"'.")):(t.type,T(r,"Function '".concat(n,"' has no matching override for given argument types: ").concat(e,".")))}r=t}if(!r)throw new Error("Function not found");try{return r.cb(...o)}catch(t){T("".concat(n,"(").concat(an(o),")"),t.message)}},Variable:function(t,e){const n=e.id.name,r=t.get(n);if(r)return function(t){return{type:t.getType(),value:t.getValue()}}(r);throw new Error("Variable '".concat(n,"' has value null"))}};function sn(t,e){if(e.type in ln)return ln[e.type](t,e);throw new Error("Unsupported expression")}function cn(t,e){try{return sn(t,e)}catch(t){return{type:"error",value:t.message}}}const un="divkit-b023c",dn="divkit-bd259",hn="divkit-d9099",pn="divkit-c016b",fn="divkit-ee112",gn="divkit-aa145",mn="divkit-f0cba",vn=Symbol("root");function yn(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 $n={text:"divkit-d9b0e",text_halign_left:"divkit-a4cb7",text_halign_center:"divkit-e1659",text_halign_right:"divkit-ea280",text_valign_top:"divkit-d8ce0",text_valign_center:"divkit-ef58e",text_valign_bottom:"divkit-fe8ed",text_valign_baseline:"divkit-e0c6c",text__inner:"divkit-b8528",text_singleline:"divkit-ef11c",text_truncate_none:"divkit-c6ea1",text_multiline:"divkit-ee8e3",text__inner_gradient:"divkit-cb8e0",text__image:"divkit-bf6e2",text__image_hidden:"divkit-f1002"},_n={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_height-constrained":"divkit-a5256","outer_parent-overlap":"divkit-dab2d","outer_parent-overlap-absolute":"divkit-d43fb","outer_scroll-snap_center":"divkit-d9e38","outer_scroll-snap_start":"divkit-efd1e",outer__border:"divkit-d4056",outer_visibility_invisible:"divkit-f018b",outer_visibility_gone:"divkit-e784b","outer_has-action-animation":"divkit-f4980"};function bn(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 wn(t){if("number"!=typeof t&&"string"!=typeof t||!t)return"0";const e=Number(t);return isNaN(e)?"0":Math.ceil(1e3*e)/1e4+"em"}function xn(t){let e=wn(t);return"0"===e&&(e+="em"),e}function kn(t){let e=String(t);return e.indexOf("&")>-1&&(e=e.replace(/&/g,"&amp;")),e.indexOf("<")>-1&&(e=e.replace(/</g,"&lt;")),e.indexOf(">")>-1&&(e=e.replace(/>/g,"&gt;")),e.indexOf('"')>-1&&(e=e.replace(/"/g,"&quot;")),e}const En=Boolean;function Cn(t){if(1===t.length&&"solid"===t[0].type)return{color:C(t[0].color||"transparent"),size:"auto",position:"50% 50%"};const e=t.map((t=>"solid"===t.type?function(t){const e=C(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(En);return n.length?{size:void 0,pos:void 0,image:"linear-gradient("+(90-Number(t.bg.angle||0))+"deg,"+n.map((t=>C(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:jn(t.bg.scale),pos:Pn(t.bg),image:'url("'+kn(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(En);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=xn(r.value):"relative"===r.type&&(o=An[r.value]));const i=Vn(t.bg.center_x),a=Vn(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=>C(t))).join(",")+")"}}({bg:t}):void 0)).filter(En).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 An={nearest_corner:"closest-corner",farthest_corner:"farthest-corner",nearest_side:"closest-side",farthest_side:"farthest-side"};function Vn(t){if(t&&"object"==typeof t&&"type"in t&&void 0!==t.value){if("fixed"===t.type)return xn(t.value);if("relative"===t.type)return"".concat(100*Number(t.value),"%")}return"50%"}function jn(t){return"fill"!==t&&t?"fit"===t?"contain":void 0:"cover"}function Pn(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 Dn(t){const e=/^([^/]+):\/\//.exec(t);return e&&e[1]||""}function Sn(t,e){return e.has(t)}function In(t,e){e&&t.push(e)}function zn(t,e,n){const r=[];In(r,e[t]);for(const o in n)if(n.hasOwnProperty(o)){const i=n[o];i&&In(r,e["".concat(t,"_").concat(o)+("string"==typeof i?"_".concat(i):"")])}return r.join(" ")}const Fn=function(t,e){var n;let{json:r,origJson:o,templateContext:i,rootCtx:a}=e;return null===(n=a.registerComponent)||void 0===n||n.call(a,{node:t,json:r,origJson:o,templateContext:i}),{destroy(){var e;null===(e=a.unregisterComponent)||void 0===e||e.call(a,{node:t})}}},Nn=Symbol("state");function Mn(t){return wn(t.top||0)+" "+wn(t.right||0)+" "+wn(t.bottom||0)+" "+wn(t.left||0)}function Tn(t){if("number"!=typeof t&&"string"!=typeof t)return!1;const e=Number(t);return!isNaN(e)}function Jn(t){return Tn(t)&&t>=0}function On(t,e){if(!t)return e;const n=[t.top,t.right,t.bottom,t.left];for(let t=0;t<n.length;++t)if(n[t]&&!Jn(n[t]))return e;return Mn(t)}function Bn(t,e){const n=Number(t);return isNaN(n)||n<0?e:n}const Rn=Object.prototype.hasOwnProperty;function Wn(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(!Rn.call(e,o)||!Wn(t[o],e[o]))return!1}return!0}function Ln(t,e){return Wn(t,e)?e:t}function Un(t,e){return"linear"===t||"ease"===t||"ease_in_out"===t||"ease_in"===t||"ease_out"===t?t:e}function qn(t,e){const n=Number(t);return isNaN(n)?e:n}function Hn(t){const e=[];return"set"===t.name?(t.items||[]).forEach((t=>{e.push(...Hn(t))})):e.push(t),e}function Gn(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=>wn((t||e)/n*10))).join(" ")}function Kn(){}const Xn=Symbol("action");function Yn(t){const e=t.touches[0];return{x:e.clientX||e.pageX,y:e.clientY||e.pageY}}function Zn(t){var e;let n,r,o,i,a,l,s,c;const u=t[19].default,d=At(u,t,t[18],null);let h=[{class:r=t[2]+(t[9]?" ".concat(t[6]?dn:hn," ").concat(pn):"")+" "+(null!==(e=t[1])&&void 0!==e&&e.length?mn:"")},{style:t[3]},{role:o=t[9]?"button":null},{tabindex:i=t[9]?0:null},t[4]],p={};for(let t=0;t<h.length;t+=1)p=mt(p,h[t]);return{c(){n=qt("span"),d&&d.c(),this.h()},l(t){n=re(t,"SPAN",{class:!0,style:!0,role:!0,tabindex:!0});var e=te(n);d&&d.l(e),e.forEach(Lt),this.h()},h(){Qt(n,p)},m(e,r){Wt(e,n,r),d&&d.m(n,null),l=!0,s||(c=[St(a=t[5].call(null,n)),Yt(n,"click",(function(){_t(t[9]?t[10]:null)&&(t[9]?t[10]:null).apply(this,arguments)})),Yt(n,"click",t[21]),Yt(n,"dblclick",(function(){var e,n;_t(null!==(e=t[0])&&void 0!==e&&e.length?t[11]:null)&&(null!==(n=t[0])&&void 0!==n&&n.length?t[11]:null).apply(this,arguments)})),Yt(n,"touchstart",(function(){var e,n;_t(null!==(e=t[1])&&void 0!==e&&e.length?t[12]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[12]:null).apply(this,arguments)})),Yt(n,"touchmove",(function(){var e,n;_t(null!==(e=t[1])&&void 0!==e&&e.length?t[13]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[13]:null).apply(this,arguments)})),Yt(n,"touchend",(function(){var e,n;_t(null!==(e=t[1])&&void 0!==e&&e.length?t[14]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[14]:null).apply(this,arguments)})),Yt(n,"touchcancel",(function(){var e,n;_t(null!==(e=t[1])&&void 0!==e&&e.length?t[14]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[14]:null).apply(this,arguments)})),Yt(n,"keydown",t[15])],s=!0)},p(e,a){var s;t=e,d&&d.p&&(!l||262144&a)&&Pt(d,u,t,t[18],l?jt(u,t[18],a,null):Dt(t[18]),null),Qt(n,p=Ue(h,[(!l||582&a&&r!==(r=t[2]+(t[9]?" ".concat(t[6]?dn:hn," ").concat(pn):"")+" "+(null!==(s=t[1])&&void 0!==s&&s.length?mn:"")))&&{class:r},(!l||8&a)&&{style:t[3]},(!l||512&a&&o!==(o=t[9]?"button":null))&&{role:o},(!l||512&a&&i!==(i=t[9]?0:null))&&{tabindex:i},16&a&&t[4]]))},i(t){l||(Je(d,t),l=!0)},o(t){Oe(d,t),l=!1},d(t){t&&Lt(n),d&&d.d(t),s=!1,$t(c)}}}function Qn(t){var e;let n,r,o,i,a,l;const s=t[19].default,c=At(s,t,t[18],null);let u=[{href:t[7]},{target:t[8]},{style:t[3]},{class:r=t[2]+" "+(t[6]?dn:hn)+" "+(null!==(e=t[1])&&void 0!==e&&e.length?mn:"")},t[4]],d={};for(let t=0;t<u.length;t+=1)d=mt(d,u[t]);return{c(){n=qt("a"),c&&c.c(),this.h()},l(t){n=re(t,"A",{href:!0,target:!0,style:!0,class:!0});var e=te(n);c&&c.l(e),e.forEach(Lt),this.h()},h(){Qt(n,d)},m(e,r){Wt(e,n,r),c&&c.m(n,null),i=!0,a||(l=[St(o=t[5].call(null,n)),Yt(n,"click",t[10]),Yt(n,"click",t[20]),Yt(n,"dblclick",(function(){var e,n;_t(null!==(e=t[0])&&void 0!==e&&e.length?t[11]:null)&&(null!==(n=t[0])&&void 0!==n&&n.length?t[11]:null).apply(this,arguments)})),Yt(n,"touchstart",(function(){var e,n;_t(null!==(e=t[1])&&void 0!==e&&e.length?t[12]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[12]:null).apply(this,arguments)})),Yt(n,"touchmove",(function(){var e,n;_t(null!==(e=t[1])&&void 0!==e&&e.length?t[13]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[13]:null).apply(this,arguments)})),Yt(n,"touchend",(function(){var e,n;_t(null!==(e=t[1])&&void 0!==e&&e.length?t[14]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[14]:null).apply(this,arguments)})),Yt(n,"touchcancel",(function(){var e,n;_t(null!==(e=t[1])&&void 0!==e&&e.length?t[14]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[14]:null).apply(this,arguments)})),Yt(n,"keydown",t[15])],a=!0)},p(e,o){var a;t=e,c&&c.p&&(!i||262144&o)&&Pt(c,s,t,t[18],i?jt(s,t[18],o,null):Dt(t[18]),null),Qt(n,d=Ue(u,[(!i||128&o)&&{href:t[7]},(!i||256&o)&&{target:t[8]},(!i||8&o)&&{style:t[3]},(!i||70&o&&r!==(r=t[2]+" "+(t[6]?dn:hn)+" "+(null!==(a=t[1])&&void 0!==a&&a.length?mn:"")))&&{class:r},16&o&&t[4]]))},i(t){i||(Je(c,t),i=!0)},o(t){Oe(c,t),i=!1},d(t){t&&Lt(n),c&&c.d(t),a=!1,$t(l)}}}function tr(t){let e,n,r,o;const i=[Qn,Zn],a=[];function l(t,e){return t[7]?0:1}return e=l(t),n=a[e]=i[e](t),{c(){n.c(),r=Xt()},l(t){n.l(t),r=Xt()},m(t,n){a[e].m(t,n),Wt(t,r,n),o=!0},p(t,o){let[s]=o,c=e;e=l(t),e===c?a[e].p(t,s):(Me(),Oe(a[c],1,1,(()=>{a[c]=null})),Te(),n=a[e],n?n.p(t,s):(n=a[e]=i[e](t),n.c()),Je(n,1),n.m(r.parentNode,r))},i(t){o||(Je(n),o=!0)},o(t){Oe(n),o=!1},d(t){a[e].d(t),t&&Lt(r)}}}function er(t,e,n){let{$$slots:r={},$$scope:o}=e,{actions:i}=e,{doubleTapActions:a}=e,{longTapActions:l}=e,{cls:s=""}=e,{style:c=null}=e,{attrs:u}=e,{use:d=Kn}=e,{customAction:h=null}=e,{isNativeActionAnimation:p=!0}=e;const f=ye(vn),g=ye(Xn);ve(Xn,{hasAction:()=>Boolean(g.hasAction()||(null==i?void 0:i.length))});let m,v="",y=-1,$=null,_=!1;if(Array.isArray(i)&&(null==i?void 0:i.length))for(let t=0;t<i.length;++t){const e=i[t].url;if(e){v=e,m=i[t].target||void 0;break}}Array.isArray(i)&&(null==i?void 0:i.length)&&g.hasAction()&&(v="",f.logError(yn(new Error("Actionable element is forbidden inside other actionable element"),{level:"warn",additional:{actions:i}})));let b=Boolean(h);return v&&!Sn(Dn(v),f.getBuiltinProtocols())&&(v="",b=!0),t.$$set=t=>{"actions"in t&&n(16,i=t.actions),"doubleTapActions"in t&&n(0,a=t.doubleTapActions),"longTapActions"in t&&n(1,l=t.longTapActions),"cls"in t&&n(2,s=t.cls),"style"in t&&n(3,c=t.style),"attrs"in t&&n(4,u=t.attrs),"use"in t&&n(5,d=t.use),"customAction"in t&&n(17,h=t.customAction),"isNativeActionAnimation"in t&&n(6,p=t.isNativeActionAnimation),"$$scope"in t&&n(18,o=t.$$scope)},[a,l,s,c,u,d,p,v,m,b,async function(t){g.hasAction()||void 0!==t.button&&0!==t.button||(!1===(null==h?void 0:h(t))?t.preventDefault():i&&(i.some((t=>{const e=null==t?void 0:t.url;if(!e)return!1;const n=Dn(e);return n&&!Sn(n,f.getBuiltinProtocols())}))&&t.preventDefault(),f.execAnyActions(i)))},function(t){g.hasAction()||void 0!==t.button&&0!==t.button||f.execAnyActions(a,!0)},function(t){t.touches.length>1||($=Yn(t),_=!1,y=Date.now())},function(t){if(!$)return;const e=Yn(t);(Math.abs($.x-e.x)>8||Math.abs($.y-e.y)>8)&&(_=!0)},function(){!$||y<0||(!_&&Date.now()-y>=400&&f.execAnyActions(l,!0),$=null,y=-1)},function(t){t.ctrlKey||t.metaKey||t.altKey||t.shiftKey||"Enter"===t.key&&Array.isArray(i)&&i.length&&(f.execAnyActions(i),t.preventDefault())},i,h,o,r,function(e){$e.call(this,t,e)},function(e){$e.call(this,t,e)}]}const nr=class extends Ze{constructor(t){super(),Ye(this,t,er,tr,xt,{actions:16,doubleTapActions:0,longTapActions:1,cls:2,style:3,attrs:4,use:5,customAction:17,isNativeActionAnimation:6})}},rr="divkit-bf253",or="divkit-b921d";function ir(t){return Tn(t)&&t>0}function ar(t,e){return t.map((t=>{if("blur"===(null==t?void 0:t.type)){if(ir(t.radius))return"blur(".concat(xn(t.radius/2),")")}else e(yn(new Error("Unknown filter"),{level:"warn",additional:{filter:null==t?void 0:t.type}}))})).filter(Boolean).join(" ")}function lr(t,e,n){const r=t.slice();return r[5]=e[n],r}function sr(t){let e,n,r;return{c(){e=qt("span"),this.h()},l(t){e=re(t,"SPAN",{class:!0,style:!0}),te(e).forEach(Lt),this.h()},h(){Zt(e,"class",n=or),Zt(e,"style",r=bn(t[5].style))},m(t,n){Wt(t,e,n)},p(t,n){2&n&&r!==(r=bn(t[5].style))&&Zt(e,"style",r)},d(t){t&&Lt(e)}}}function cr(t){let e,n,r,o,i,a;return{c(){e=qt("img"),this.h()},l(t){e=re(t,"IMG",{src:!0,alt:!0,"aria-hidden":!0,loading:!0,decoding:!0,class:!0,style:!0}),this.h()},h(){wt(e.src,n=t[5].image_url)||Zt(e,"src",n),Zt(e,"alt",""),Zt(e,"aria-hidden","true"),Zt(e,"loading","lazy"),Zt(e,"decoding","async"),Zt(e,"class",r=or),Zt(e,"style",o=bn(t[5].style))},m(n,r){Wt(n,e,r),i||(a=Yt(e,"error",t[2]),i=!0)},p(t,r){2&r&&!wt(e.src,n=t[5].image_url)&&Zt(e,"src",n),2&r&&o!==(o=bn(t[5].style))&&Zt(e,"style",o)},d(t){t&&Lt(e),i=!1,a()}}}function ur(t){let e;function n(t,e){return t[5].image_url?cr:sr}let r=n(t),o=r(t);return{c(){o.c(),e=Xt()},l(t){o.l(t),e=Xt()},m(t,n){o.m(t,n),Wt(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){o.d(t),t&&Lt(e)}}}function dr(t){let e,n,r=t[1],o=[];for(let e=0;e<r.length;e+=1)o[e]=ur(lr(t,r,e));return{c(){e=qt("span");for(let t=0;t<o.length;t+=1)o[t].c();this.h()},l(t){e=re(t,"SPAN",{class:!0});var n=te(e);for(let t=0;t<o.length;t+=1)o[t].l(n);n.forEach(Lt),this.h()},h(){Zt(e,"class",n=rr+(t[0]?" divkit-dcad7":"")),se(e,"border-radius",t[0],!1)},m(t,n){Wt(t,e,n);for(let t=0;t<o.length;t+=1)o[t].m(e,null)},p(t,i){let[a]=i;if(6&a){let n;for(r=t[1],n=0;n<r.length;n+=1){const i=lr(t,r,n);o[n]?o[n].p(i,a):(o[n]=ur(i),o[n].c(),o[n].m(e,null))}for(;n<o.length;n+=1)o[n].d(1);o.length=r.length}1&a&&n!==(n=rr+(t[0]?" divkit-dcad7":""))&&Zt(e,"class",n),1&a&&se(e,"border-radius",t[0],!1)},i:ft,o:ft,d(t){t&&Lt(e),Ut(o,t)}}}function hr(t,e,n){let r,{background:o=[]}=e,{radius:i=""}=e;const a=ye(vn);return t.$$set=t=>{"background"in t&&n(3,o=t.background),"radius"in t&&n(0,i=t.radius)},t.$$.update=()=>{8&t.$$.dirty&&n(1,r=o.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=Cn([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=ar(t.filters,a.logError)))}return n})))},[i,r,function(t){t.target&&"classList"in t.target&&t.target.classList.add("divkit-cd613")},o]}const pr=class extends Ze{constructor(t){super(),Ye(this,t,hr,dr,xt,{background:3,radius:0})}};function fr(t){let e,n;return e=new nr({props:{use:t[32],cls:t[0]+" "+zn("outer",_n,t[15]),style:bn(t[13]),actions:t[10],doubleTapActions:t[11],longTapActions:t[12],attrs:t[6],isNativeActionAnimation:!t[4].length||$r(t[4]),$$slots:{default:[vr]},$$scope:{ctx:t}}}),{c(){He(e.$$.fragment)},l(t){Ge(e.$$.fragment,t)},m(t,r){Ke(e,t,r),n=!0},p(t,n){const r={};32769&n[0]&&(r.cls=t[0]+" "+zn("outer",_n,t[15])),8192&n[0]&&(r.style=bn(t[13])),1024&n[0]&&(r.actions=t[10]),2048&n[0]&&(r.doubleTapActions=t[11]),4096&n[0]&&(r.longTapActions=t[12]),64&n[0]&&(r.attrs=t[6]),16&n[0]&&(r.isNativeActionAnimation=!t[4].length||$r(t[4])),174&n[0]|131072&n[3]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Je(e.$$.fragment,t),n=!0)},o(t){Oe(e.$$.fragment,t),n=!1},d(t){Xe(e,t)}}}function gr(t){let e,n;return e=new pr({props:{background:t[5],radius:t[2]}}),{c(){He(e.$$.fragment)},l(t){Ge(e.$$.fragment,t)},m(t,r){Ke(e,t,r),n=!0},p(t,n){const r={};32&n[0]&&(r.background=t[5]),4&n[0]&&(r.radius=t[2]),e.$set(r)},i(t){n||(Je(e.$$.fragment,t),n=!0)},o(t){Oe(e.$$.fragment,t),n=!1},d(t){Xe(e,t)}}}function mr(t){let e,n,r;return{c(){e=qt("span"),this.h()},l(t){e=re(t,"SPAN",{class:!0,style:!0}),te(e).forEach(Lt),this.h()},h(){Zt(e,"class",n=_n.outer__border),Zt(e,"style",r=bn(t[1]))},m(t,n){Wt(t,e,n)},p(t,n){2&n[0]&&r!==(r=bn(t[1]))&&Zt(e,"style",r)},d(t){t&&Lt(e)}}}function vr(t){let e,n,r,o=t[3]&&gr(t);const i=t[109].default,a=At(i,t,t[110],null);let l=t[7]&&mr(t);return{c(){o&&o.c(),e=Xt(),a&&a.c(),l&&l.c(),n=Xt()},l(t){o&&o.l(t),e=Xt(),a&&a.l(t),l&&l.l(t),n=Xt()},m(t,i){o&&o.m(t,i),Wt(t,e,i),a&&a.m(t,i),l&&l.m(t,i),Wt(t,n,i),r=!0},p(t,s){t[3]?o?(o.p(t,s),8&s[0]&&Je(o,1)):(o=gr(t),o.c(),Je(o,1),o.m(e.parentNode,e)):o&&(Me(),Oe(o,1,1,(()=>{o=null})),Te()),a&&a.p&&(!r||131072&s[3])&&Pt(a,i,t,t[110],r?jt(i,t[110],s,null):Dt(t[110]),null),t[7]?l?l.p(t,s):(l=mr(t),l.c(),l.m(n.parentNode,n)):l&&(l.d(1),l=null)},i(t){r||(Je(o),Je(a,t),r=!0)},o(t){Oe(o),Oe(a,t),r=!1},d(t){o&&o.d(t),t&&Lt(e),a&&a.d(t),l&&l.d(t),t&&Lt(n)}}}function yr(t){let e,n,r=!t[8]&&!t[9]&&fr(t);return{c(){r&&r.c(),e=Xt()},l(t){r&&r.l(t),e=Xt()},m(t,o){r&&r.m(t,o),Wt(t,e,o),n=!0},p(t,n){t[8]||t[9]?r&&(Me(),Oe(r,1,1,(()=>{r=null})),Te()):r?(r.p(t,n),768&n[0]&&Je(r,1)):(r=fr(t),r.c(),Je(r,1),r.m(e.parentNode,e))},i(t){n||(Je(r),n=!0)},o(t){Oe(r),n=!1},d(t){r&&r.d(t),t&&Lt(e)}}}function $r(t){return t.some((t=>"native"===t.name))}function _r(t,e,n){let r,o,i,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x,k,E,A,V,j,P,D,S,I,z,F,N,M,T,J,O,B,R,W,L,U=ft,q=ft,H=ft,G=ft,K=ft,X=ft,Y=ft,Z=ft,Q=ft,tt=ft,et=ft,nt=ft,rt=ft,ot=ft,it=ft,at=ft,lt=ft;t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>H())),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())),t.$$.on_destroy.push((()=>at())),t.$$.on_destroy.push((()=>lt()));let{$$slots:st={},$$scope:ct}=e;var ut,dt,ht,pt,gt,mt;let{json:vt={}}=e,{origJson:yt}=e,{templateContext:$t}=e,{cls:_t=""}=e,{style:bt}=e,{layoutParams:wt={}}=e,{customDescription:xt=!1}=e,{customPaddings:kt=!1}=e,{customActions:Ct=""}=e,{additionalPaddings:At=null}=e;const Vt={left:"start",center:"center",right:"end"},jt={top:"start",center:"center",bottom:"end",baseline:"baseline"},Pt=ye(vn),Dt=ye(Nn);let St,It,zt,Ft,Nt,Mt,Tt,Jt,Ot,Bt,Rt,Wt={},Lt={},Ut=!1,qt=1,Ht="transparent",Gt=0,Kt={"top-left":0,"top-right":0,"bottom-right":0,"bottom-left":0},Xt="",Yt=null,Zt="",Qt={},te=0,ee=0,ne=0,re=!1,oe=!1,ie={},ae=0,le=0,se=0,ce=!1,ue=!1,de=1;const he=wt.fakeElement?[]:vt.transition_triggers||["state_change","visibility_change"],pe=-1!==he.indexOf("state_change")&&vt.id,fe=-1!==he.indexOf("visibility_change")&&vt.id;let ge,me,ve,$e,_e,be,we,xe=[],ke=[],Ee=[],Ce=[],Ve="";function je(t){const e=qn(t.start_value,1),r=qn(t.end_value,1),o=Bn(t.start_delay,0),i=Bn(t.duration,300),a=Un(t.interpolator,"ease_in_out").replace(/_/g,"-");switch(t.name){case"fade":return n(78,$e=e),n(79,_e=r),"opacity ".concat(i,"ms ").concat(a," ").concat(o,"ms");case"scale":return n(80,be=e),n(81,we=r),"transform ".concat(i,"ms ").concat(a," ").concat(o,"ms");case"native":case"no_animation":return"";default:return Pt.logError(yn(new Error("Unknown action_animation name"),{additional:{animation:t.name}})),""}}let Pe,De,Se=!1,Ie="visible",ze=0,Fe=0;return t.$$set=t=>{"json"in t&&n(33,vt=t.json),"origJson"in t&&n(34,yt=t.origJson),"templateContext"in t&&n(35,$t=t.templateContext),"cls"in t&&n(0,_t=t.cls),"style"in t&&n(36,bt=t.style),"layoutParams"in t&&n(37,wt=t.layoutParams),"customDescription"in t&&n(38,xt=t.customDescription),"customPaddings"in t&&n(39,kt=t.customPaddings),"customActions"in t&&n(40,Ct=t.customActions),"additionalPaddings"in t&&n(41,At=t.additionalPaddings),"$$scope"in t&&n(110,ct=t.$$scope)},t.$$.update=()=>{if(4&t.$$.dirty[1]&&(n(31,r=Pt.getDerivedFromVars(vt.border)),lt(),lt=Et(r,(t=>n(108,L=t)))),2&t.$$.dirty[0]|4192256&t.$$.dirty[1]|32768&t.$$.dirty[3]){let t={},e={},r=!1,o="";if(L){if(L.has_shadow){const e=L.shadow;t["box-shadow"]=e?wn((null===n(43,dt=null===n(42,ut=e.offset)||void 0===ut?void 0:ut.x)||void 0===dt?void 0:dt.value)||0)+" "+wn((null===n(45,pt=null===n(44,ht=e.offset)||void 0===ht?void 0:ht.y)||void 0===pt?void 0:pt.value)||0)+" "+wn(null!==n(46,gt=e.blur)&&void 0!==gt?gt:2)+" "+C(e.color||"#000000",null!==n(47,mt=e.alpha)&&void 0!==mt?mt:.19):"0 1px 2px 0 rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.07)"}if(L.stroke&&(r=!0,n(49,qt=Bn(L.stroke.width,qt)),n(50,Ht=C(L.stroke.color,1,Ht)),e.border="".concat(wn(qt)," solid ").concat(Ht)),L.corners_radius?(n(52,Kt=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]&&!Jn(n[t]))return e;return t}(L.corners_radius,Kt)),e["border-radius"]=t["border-radius"]=Gn(Kt)):L.corner_radius&&(n(51,Gt=Bn(L.corner_radius,Gt)),n(52,Kt={"top-left":Gt,"top-right":Gt,"bottom-right":Gt,"bottom-left":Gt}),e["border-radius"]=t["border-radius"]=wn(Gt)),r&&qt&&(L.corners_radius||L.corner_radius)){let t=Object.assign({},Kt);["top-left","top-right","bottom-right","bottom-left"].forEach((e=>{t[e]=(t[e]||0)+qt/2})),o=Gn(t)}}n(48,Wt=Ln(t,Wt)),n(1,Lt=Ln(e,Lt)),n(7,Ut=r),n(2,Xt=o)}if(4&t.$$.dirty[1]&&(n(30,o=Pt.getDerivedFromVars(vt.paddings)),at(),at=Et(o,(t=>n(107,W=t)))),4194560&t.$$.dirty[1]|16384&t.$$.dirty[3]&&n(53,Yt=function(t,e){if(!t)return e;const n=["top","right","bottom","left"];for(let r=0;r<n.length;++r)if(t[n[r]]&&!Jn(t[n[r]]))return e;return t}(W&&!kt?W:void 0,Yt)),4195328&t.$$.dirty[1]&&n(89,i=Mn(function(t,e){if(!t&&!e)return{};if(!e)return t;if(!t)return e;const n={};return["top","right","bottom","left"].forEach((r=>{const o=t[r];o&&(n[r]=o);const i=e[r];i&&(n[r]=(n[r]||0)+i)})),n}(Yt,At))),4&t.$$.dirty[1]&&(n(29,a=Pt.getDerivedFromVars(vt.margins)),ot(),ot=Et(a,(t=>n(105,B=t)))),8388608&t.$$.dirty[1]|4096&t.$$.dirty[3]&&n(54,Zt=On(B,Zt)),4&t.$$.dirty[1]&&(n(28,l=Pt.getDerivedFromVars(vt.width)),nt(),nt=Et(l,(t=>n(103,J=t)))),4&t.$$.dirty[1]&&(n(27,s=Pt.getDerivedFromVars(vt.alignment_horizontal)),it(),it=Et(s,(t=>n(106,R=t)))),285212736&t.$$.dirty[1]|13312&t.$$.dirty[3]){let t,e,r,o,i={},a=0,l=0,s=!1,c=!1;const u=null==J?void 0:J.type;if("fixed"===u)n(59,te=Bn(null==J?void 0:J.value,te)),e=wn(te);else if("wrap_content"===u||!wt.overlapParent&&"match_parent"===u&&wt.parentHorizontalWrapContent){if(t="content",("wrap_content"===u&&(null==J?void 0:J.constrained)||"match_parent"===u&&wt.parentHorizontalWrapContent)&&(i["width-constrained"]=!0,l=1),"wrap_content"===u){const t=J;t.min_size&&Jn(t.min_size.value)&&(r=wn(t.min_size.value)),t.max_size&&Jn(t.max_size.value)&&(o=wn(t.max_size.value))}"match_parent"===u&&Pt.logError(yn(new Error("Cannot place child with match_parent size inside wrap_content"),{level:"warn"}))}else t="parent","vertical"===wt.parentContainerOrientation&&wt.parentContainerWrap&&(c=!0,Pt.logError(yn(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),"vertical"===wt.parentLayoutOrientation?e="calc(100% - ".concat(xn(((null==B?void 0:B.left)||0)+((null==B?void 0:B.right)||0)),")"):"horizontal"===wt.parentContainerOrientation&&(a=J&&"weight"in J&&J.weight||1,wt.parentContainerWrap&&(s=!0));if("parent"===t)i["halign-self"]="stretch";else{const t=R;i["halign-self"]="left"===t||"center"===t||"right"===t?Vt[t]:wt.parentHAlign||"start"}t&&(i.width=t),n(56,zt=e),n(57,Ft=r),n(58,Nt=o),n(60,ee=a),n(61,ne=l),n(55,Qt=Ln(i,Qt)),n(62,re=s),n(8,oe=c)}if(4&t.$$.dirty[1]&&(n(26,c=Pt.getDerivedFromVars(vt.height)),et(),et=Et(c,(t=>n(102,T=t)))),4&t.$$.dirty[1]&&(n(25,u=Pt.getDerivedFromVars(vt.alignment_vertical)),rt(),rt=Et(u,(t=>n(104,O=t)))),64&t.$$.dirty[1]|34&t.$$.dirty[2]|6656&t.$$.dirty[3]){let t,e,r,o,i={},a=0,l=0,s=!1,c=!1;const u=null==T?void 0:T.type;if("fixed"===u)n(67,ae=Bn(null==T?void 0:T.value,ae)),e=wn(ae);else if("match_parent"!==u||!wt.overlapParent&&wt.parentVerticalWrapContent){if(t="content",("wrap_content"===u&&(null==T?void 0:T.constrained)||"match_parent"===u&&wt.parentVerticalWrapContent)&&(i["height-constrained"]=!0,l=1),"wrap_content"===u){const t=T;(null==t?void 0:t.min_size)&&Jn(t.min_size.value)&&(r=wn(t.min_size.value)),(null==t?void 0:t.max_size)&&Jn(t.max_size.value)&&(o=wn(t.max_size.value))}"match_parent"===u&&Pt.logError(yn(new Error("Cannot place child with match_parent size inside wrap_content"),{level:"warn"}))}else t="parent","horizontal"===wt.parentContainerOrientation&&wt.parentContainerWrap&&(c=!0,Pt.logError(yn(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),"horizontal"===wt.parentLayoutOrientation?e="calc(100% - ".concat(xn(((null==B?void 0:B.top)||0)+((null==B?void 0:B.bottom)||0)),")"):"vertical"===wt.parentContainerOrientation&&(a=(null==T?void 0:T.weight)||1,wt.parentContainerWrap&&(s=!0));if("parent"===t)i["valign-self"]="stretch";else{const t=O;"top"===t||"center"===t||"bottom"===t||"baseline"===t&&"horizontal"===wt.parentContainerOrientation?i["valign-self"]=jt[t]:i["valign-self"]=wt.parentVAlign||"start"}t&&(i.height=t),n(64,Mt=e),n(65,Tt=r),n(66,Jt=o),n(68,le=a),n(69,se=l),n(63,ie=Ln(i,ie)),n(70,ce=s),n(9,ue=c)}var e,st;if(64&t.$$.dirty[1]&&n(92,d=!!wt.overlapParent||void 0),64&t.$$.dirty[1]|1536&t.$$.dirty[3]&&n(91,h=wt.overlapParent&&(!J||"match_parent"===J.type)&&"match_parent"===(null==T?void 0:T.type)),64&t.$$.dirty[1]&&n(90,p=wt.gridArea?"".concat(wt.gridArea.y+1,"/").concat(wt.gridArea.x+1,"/span ").concat(wt.gridArea.rowSpan,"/span ").concat(wt.gridArea.colSpan):void 0),4&t.$$.dirty[1]&&(n(24,f=Pt.getDerivedFromVars(vt.alpha)),tt(),tt=Et(f,(t=>n(101,M=t)))),512&t.$$.dirty[2]|256&t.$$.dirty[3]&&(n(71,(st=de,de=!Jn(e=M)||void 0===e||e>1?st:Number(e))),n(72,Ot=1===de?void 0:de)),4&t.$$.dirty[1]&&(n(23,g=Pt.getDerivedFromVars(vt.accessibility)),Q(),Q=Et(g,(t=>n(100,N=t)))),128&t.$$.dirty[1]|128&t.$$.dirty[3]&&(n(6,It=void 0),N&&!xt&&N.description&&(n(6,It={}),n(6,It["aria-label"]=N.description,It))),4&t.$$.dirty[1]&&(n(22,m=Pt.getDerivedFromVars(vt.background)),Z(),Z=Et(m,(t=>n(5,F=t)))),44&t.$$.dirty[0]&&(n(73,Bt={}),n(3,Rt=!1),F&&(n(3,Rt=F.some((t=>"image"===t.type||"nine_patch_image"===t.type))||Boolean(Xt)),!Rt))){const t=Cn(F);n(73,Bt["background-color"]=t.color,Bt),n(73,Bt["background-image"]=t.image,Bt),n(73,Bt["background-size"]=t.size,Bt),n(73,Bt["background-position"]=t.position,Bt),n(73,Bt["background-repeat"]="no-repeat",Bt)}if(4&t.$$.dirty[1]&&(n(74,ge=void 0),pe&&vt.transition_in&&Pt.isRunning("stateChange")&&n(74,ge=!0)),4&t.$$.dirty[1]&&(n(76,ve=void 0),pe&&vt.transition_change&&Pt.isRunning("stateChange")&&Dt.hasTransitionChange(vt.id)&&n(76,ve=!0)),4&t.$$.dirty[1]&&(n(21,v=Pt.getDerivedFromVars(vt.action)),X(),X=Et(v,(t=>n(98,I=t)))),4&t.$$.dirty[1]&&(n(20,y=Pt.getDerivedFromVars(vt.actions)),Y(),Y=Et(y,(t=>n(99,z=t)))),4&t.$$.dirty[1]&&(n(19,$=Pt.getDerivedFromVars(vt.doubletap_actions)),K(),K=Et($,(t=>n(97,S=t)))),4&t.$$.dirty[1]&&(n(18,_=Pt.getDerivedFromVars(vt.longtap_actions)),G(),G=Et(_,(t=>n(96,D=t)))),576&t.$$.dirty[1]|120&t.$$.dirty[3]){let t=z||I&&[I]||[],e=S||[],r=D||[];wt.fakeElement?(t=[],e=[],r=[]):(Array.isArray(t)||(t=[],Pt.logError(yn(new Error("Actions should be array")))),Array.isArray(e)||(e=[],Pt.logError(yn(new Error("DoubleTapActions should be array")))),Array.isArray(r)||(r=[],Pt.logError(yn(new Error("LongTapActions should be array"))))),(t.length||e.length||r.length)&&Ct&&(t=[],e=[],r=[],Pt.logError(yn(new Error('Cannot use action on component "'.concat(Ct,'"'))))),n(10,xe=t),n(11,ke=e),n(12,Ee=r)}if(4&t.$$.dirty[1]&&(n(17,b=Pt.getDerivedFromVars(vt.action_animation)),H(),H=Et(b,(t=>n(95,P=t)))),16&t.$$.dirty[0]|4&t.$$.dirty[3]&&P&&(n(4,Ce=Hn(P)),n(77,Ve=Ce.map(je).filter(Boolean).join(", "))),4&t.$$.dirty[1]&&(n(16,w=Pt.getDerivedFromVars(vt.visibility)),q(),q=Et(w,(t=>n(94,j=t)))),3145728&t.$$.dirty[2]|2&t.$$.dirty[3]){const t=Ie,e=function(t,e){return"visible"===t||"invisible"===t||"gone"===t?t:e}(j,Ie);t!==e&&(!Se||"visible"!==Ie&&"visible"!==e?n(83,Ie=e):async function(t){n(83,Ie=t);const e="visible"===t?"in":"out",r="in"===e?vt.transition_in:vt.transition_out;fe&&r&&(await Ae(),"in"===e&&n(75,me=!0),Dt.runVisibilityTransition(Object.assign(Object.assign({},vt),{visibility:"visible"}),$t,r,St,e).then((()=>{"in"===e&&n(75,me=!1)})).catch((t=>{throw"in"===e&&n(75,me=!1),t})))}(e)),Se||n(82,Se=!0)}if(16777280&t.$$.dirty[1]|1612771330&t.$$.dirty[2]&&n(15,x=Object.assign(Object.assign(Object.assign({},Qt),ie),{"parent-overlap":d,"parent-overlap-absolute":h,"scroll-snap":wt.scrollSnap,"hide-on-transition-in":ge||me||ve,visibility:Ie,"has-action-animation":Boolean(Ve),"parent-flex":wt.parentContainerOrientation||void 0})),4&t.$$.dirty[1]&&(n(14,k=Pt.getDerivedFromVars(vt.transform)),U(),U=Et(k,(t=>n(93,V=t)))),12582912&t.$$.dirty[2]|1&t.$$.dirty[3]&&V&&void 0!==V.rotation){const t=V.pivot_x||{type:"pivot-percentage",value:50};n(84,ze=qn(t.value,ze));const e="pivot-fixed"===t.type?wn(ze):"".concat(ze,"%"),r=V.pivot_y||{type:"pivot-percentage",value:50};n(85,Fe=qn(r.value,Fe));const o="pivot-fixed"===r.type?wn(Fe):"".concat(Fe,"%");n(86,Pe="".concat(e," ").concat(o)),n(87,De="rotate(".concat(V.rotation,"deg)"))}536870912&t.$$.dirty[1]|321&t.$$.dirty[2]&&n(88,E=re||ce?"100%":ee||le?0:void 0),1854013472&t.$$.dirty[1]|521112796&t.$$.dirty[2]&&n(13,A=Object.assign(Object.assign(Object.assign(Object.assign({},bt),Bt),Wt),{width:zt,"min-width":Ft,"max-width":Nt,height:Mt,"min-height":Tt,"max-height":Jt||(null==bt?void 0:bt["max-height"]),"grid-area":p,padding:i,margin:Zt,opacity:Ot,transition:Ve,"transform-origin":Pe,transform:De,"flex-grow":ee||le||void 0,"flex-shrink":ne||se?1:void 0,"flex-basis":E,"--divkit-animation-opacity-start":$e,"--divkit-animation-opacity-end":_e,"--divkit-animation-scale-start":be,"--divkit-animation-scale-end":we}))},[_t,Lt,Xt,Rt,Ce,F,It,Ut,oe,ue,xe,ke,Ee,A,k,x,w,b,_,$,y,v,m,g,f,u,c,s,l,a,o,r,function(t){St=t,pe&&vt.transition_in&&Dt.registerChildWithTransitionIn(vt,$t,vt.transition_in,t).then((()=>{n(74,ge=!1)})).catch((t=>{throw n(74,ge=!1),t})),pe&&vt.transition_out&&Dt.registerChildWithTransitionOut(vt,$t,vt.transition_out,t),pe&&vt.transition_change&&Dt.registerChildWithTransitionChange(vt,$t,vt.transition_change,t).then((()=>{n(76,ve=!1)})).catch((t=>{throw n(76,ve=!1),t})),function(t,e){let{visibilityActions:n,rootCtx:r}=e;if(null==n||!n.length)return;const o=n.map((t=>({action:t,visible:!1,count:0,finished:!1}))),i=[...new Set([...n.map((t=>(t.visibility_percentage||50)/100))])];new IntersectionObserver((t=>{t.forEach((t=>{o.forEach((e=>{const n=t.intersectionRatio>=(e.action.visibility_percentage||50)/100;!e.visible&&n?e.finished||(e.timer=setTimeout((()=>{++e.count;const t=0===e.action.log_limit?1/0:e.action.log_limit||1;++e.count>=t&&(e.finished=!0);const n=e.action.url;if(n){const t=Dn(n);t&&!Sn(t,r.getBuiltinProtocols())&&("div-action"===t?r.execAction(e.action):e.action.log_id&&r.execCustomAction(e.action))}r.logStat("visible",e.action)}),e.action.visibility_duration||800)):n||e.timer&&clearTimeout(e.timer),e.visible=n}))}))}),{threshold:i}).observe(t)}(t,{visibilityActions:wt.fakeElement?[]:Pt.getJsonWithVars(vt.visibility_actions||vt.visibility_action&&[vt.visibility_action]),rootCtx:Pt});const e=vt.id;e&&Dt.registerChild(e);let r=null;return Fn&&!wt.fakeElement&&(r=Fn(t,{json:vt,origJson:yt,rootCtx:Pt,templateContext:$t})),{destroy(){e&&Dt.unregisterChild(e),r&&r.destroy()}}},vt,yt,$t,bt,wt,xt,kt,Ct,At,ut,dt,ht,pt,gt,mt,Wt,qt,Ht,Gt,Kt,Yt,Zt,Qt,zt,Ft,Nt,te,ee,ne,re,ie,Mt,Tt,Jt,ae,le,se,ce,de,Ot,Bt,ge,me,ve,Ve,$e,_e,be,we,Se,Ie,ze,Fe,Pe,De,E,i,p,h,d,V,j,P,D,S,I,z,N,M,T,J,O,B,R,W,L,st,ct]}const br=class extends Ze{constructor(t){super(),Ye(this,t,_r,yr,xt,{json:33,origJson:34,templateContext:35,cls:0,style:36,layoutParams:37,customDescription:38,customPaddings:39,customActions:40,additionalPaddings:41},null,[-1,-1,-1,-1])}},wr={"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 xr(t,e){const n=Number(t);return isNaN(n)||n<=0?e:n}function kr(t){if("light"===t||"medium"===t||"bold"===t||"regular"===t)return"medium"===t?500:"bold"===t?700:"light"===t?300:400}function Er(t,e){return kr(t)||e}function Cr(t){let e,n;return{c(){e=qt("span"),this.h()},l(t){e=re(t,"SPAN",{class:!0}),te(e).forEach(Lt),this.h()},h(){Zt(e,"class",n=wr["text-range__top-offset"]),se(e,"margin-top",t[4],!1)},m(t,n){Wt(t,e,n)},p(t,n){16&n&&se(e,"margin-top",t[4],!1)},d(t){t&&Lt(e)}}}function Ar(t){let e;return{c(){e=Gt(t[0])},l(n){e=ie(n,t[0])},m(t,n){Wt(t,e,n)},p(t,n){1&n&&le(e,t[0])},d(t){t&&Lt(e)}}}function Vr(t){let e,n,r,o=t[4]&&Cr(t);return n=new nr({props:{cls:zn("text-range",wr,t[3]),actions:t[1],style:bn(t[2]),$$slots:{default:[Ar]},$$scope:{ctx:t}}}),{c(){o&&o.c(),e=Xt(),He(n.$$.fragment)},l(t){o&&o.l(t),e=Xt(),Ge(n.$$.fragment,t)},m(t,i){o&&o.m(t,i),Wt(t,e,i),Ke(n,t,i),r=!0},p(t,r){let[i]=r;t[4]?o?o.p(t,i):(o=Cr(t),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null);const a={};8&i&&(a.cls=zn("text-range",wr,t[3])),2&i&&(a.actions=t[1]),4&i&&(a.style=bn(t[2])),524289&i&&(a.$$scope={dirty:i,ctx:t}),n.$set(a)},i(t){r||(Je(n.$$.fragment,t),r=!0)},o(t){Oe(n.$$.fragment,t),r=!1},d(t){o&&o.d(t),t&&Lt(e),Xe(n,t)}}}function jr(t,e,n){let r,o,i,a,l;var s,c;let u,{text:d}=e,{rootFontSize:h}=e,{textStyles:p={}}=e,{singleline:f=!1}=e,{actions:g}=e,m="none",v=12,y=1.25,$="",_="",b=null;return t.$$set=t=>{"text"in t&&n(0,d=t.text),"rootFontSize"in t&&n(5,h=t.rootFontSize),"textStyles"in t&&n(6,p=t.textStyles),"singleline"in t&&n(7,f=t.singleline),"actions"in t&&n(1,g=t.actions)},t.$$.update=()=>{if(64&t.$$.dirty){let t="none";(p.underline||p.strike)&&("single"===p.underline&&"single"===p.strike?t="both":"single"===p.underline?t="underline":"single"===p.strike&&(t="strike")),n(10,m=t)}2112&t.$$.dirty&&n(11,v=xr(p.font_size,v)),2112&t.$$.dirty&&ir(p.line_height)&&n(12,y=Number(p.line_height)/v),64&t.$$.dirty&&Jn(p.letter_spacing)&&n(13,$=wn(p.letter_spacing)),16448&t.$$.dirty&&n(14,u=Er(p.font_weight,u)),32832&t.$$.dirty&&n(15,_=C(p.text_color,1,_)),64&t.$$.dirty&&n(4,r=p.top_offset?wn(p.top_offset):""),64&t.$$.dirty&&n(18,o=p.background?Cn([p.background]):null),320&t.$$.dirty&&((null===n(8,s=p.border)||void 0===s?void 0:s.stroke)&&"transparent"!==C(p.border.stroke.color)&&ir(p.border.stroke.width)?n(16,b={color:p.border.stroke.color,width:p.border.stroke.width}):n(16,b=null)),576&t.$$.dirty&&n(17,i=xr(null===n(9,c=p.border)||void 0===c?void 0:c.corner_radius,0)),1152&t.$$.dirty&&n(3,a={singleline:f,decoration:m}),522272&t.$$.dirty&&n(2,l={"font-size":wn(10*v/h),"line-height":y,"letter-spacing":$,"font-weight":u,color:_,background:(null==o?void 0:o.color)||void 0,"box-shadow":b?"inset 0 0 0 ".concat(wn(b.width)," ").concat(b.color):void 0,"border-radius":i?wn(i):void 0})},[d,g,l,a,r,h,p,f,s,c,m,v,y,$,u,_,b,i,o]}const Pr=class extends Ze{constructor(t){super(),Ye(this,t,jr,Vr,xt,{text:0,rootFontSize:5,textStyles:6,singleline:7,actions:1})}};function Dr(t,e){return"left"===t||"center"===t||"right"===t?t:e}function Sr(t,e){return"top"===t||"center"===t||"bottom"===t||"baseline"===t?t:e}function Ir(t,e){return"source_in"===t||"source_atop"===t||"darken"===t||"lighten"===t||"multiply"===t||"screen"===t?t:e}const{Boolean:zr}=We;function Fr(t,e,n){const r=t.slice();return r[55]=e[n],r[57]=n,r}function Nr(t){let e,n;return e=new br({props:{cls:zn("text",$n,t[13])+" "+(t[6]?"":pn),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Wr]},$$scope:{ctx:t}}}),{c(){He(e.$$.fragment)},l(t){Ge(e.$$.fragment,t)},m(t,r){Ke(e,t,r),n=!0},p(t,n){const r={};8256&n[0]&&(r.cls=zn("text",$n,t[13])+" "+(t[6]?"":pn)),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),134225584&n[0]|134217728&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Je(e.$$.fragment,t),n=!0)},o(t){Oe(e.$$.fragment,t),n=!1},d(t){Xe(e,t)}}}function Mr(t){let e,n;return e=new Pr({props:{text:t[4],rootFontSize:t[5],textStyles:t[27],singleline:t[7]}}),{c(){He(e.$$.fragment)},l(t){Ge(e.$$.fragment,t)},m(t,r){Ke(e,t,r),n=!0},p(t,n){const r={};16&n[0]&&(r.text=t[4]),32&n[0]&&(r.rootFontSize=t[5]),134217728&n[0]&&(r.textStyles=t[27]),128&n[0]&&(r.singleline=t[7]),e.$set(r)},i(t){n||(Je(e.$$.fragment,t),n=!0)},o(t){Oe(e.$$.fragment,t),n=!1},d(t){Xe(e,t)}}}function Tr(t){let e,n,r=t[10],o=[];for(let e=0;e<r.length;e+=1)o[e]=Rr(Fr(t,r,e));const i=t=>Oe(o[t],1,1,(()=>{o[t]=null}));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=Xt()},l(t){for(let e=0;e<o.length;e+=1)o[e].l(t);e=Xt()},m(t,r){for(let e=0;e<o.length;e+=1)o[e].m(t,r);Wt(t,e,r),n=!0},p(t,n){if(268437152&n[0]){let a;for(r=t[10],a=0;a<r.length;a+=1){const i=Fr(t,r,a);o[a]?(o[a].p(i,n),Je(o[a],1)):(o[a]=Rr(i),o[a].c(),Je(o[a],1),o[a].m(e.parentNode,e))}for(Me(),a=r.length;a<o.length;a+=1)i(a);Te()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Je(o[t]);n=!0}},o(t){o=o.filter(zr);for(let t=0;t<o.length;t+=1)Oe(o[t]);n=!1},d(t){Ut(o,t),t&&Lt(e)}}}function Jr(t){let e,n,r,o,i,a,l,s;return{c(){e=qt("span"),n=qt("img"),this.h()},l(t){e=re(t,"SPAN",{style:!0});var r=te(e);n=re(r,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,"aria-hidden":!0,alt:!0,style:!0}),r.forEach(Lt),this.h()},h(){Zt(n,"class",r=$n.text__image),wt(n.src,o=t[55].image.url)||Zt(n,"src",o),Zt(n,"loading","lazy"),Zt(n,"decoding","async"),Zt(n,"aria-hidden","true"),Zt(n,"alt",""),Zt(n,"style",i=bn({width:t[55].image.width,height:t[55].image.height,"margin-top":t[9]?"-".concat(t[55].image.height):void 0,"margin-bottom":t[9]?"-".concat(t[55].image.height):void 0,filter:t[55].image.svgFilterId?"url(#".concat(t[55].image.svgFilterId,")"):void 0})),Zt(e,"style",a=bn(t[55].image.wrapperStyle))},m(r,o){Wt(r,e,o),Rt(e,n),l||(s=Yt(n,"error",t[28]),l=!0)},p(t,r){1024&r[0]&&!wt(n.src,o=t[55].image.url)&&Zt(n,"src",o),1536&r[0]&&i!==(i=bn({width:t[55].image.width,height:t[55].image.height,"margin-top":t[9]?"-".concat(t[55].image.height):void 0,"margin-bottom":t[9]?"-".concat(t[55].image.height):void 0,filter:t[55].image.svgFilterId?"url(#".concat(t[55].image.svgFilterId,")"):void 0}))&&Zt(n,"style",i),1024&r[0]&&a!==(a=bn(t[55].image.wrapperStyle))&&Zt(e,"style",a)},i:ft,o:ft,d(t){t&&Lt(e),l=!1,s()}}}function Or(t){let e,n,r=t[55].text&&Br(t);return{c(){r&&r.c(),e=Xt()},l(t){r&&r.l(t),e=Xt()},m(t,o){r&&r.m(t,o),Wt(t,e,o),n=!0},p(t,n){t[55].text?r?(r.p(t,n),1024&n[0]&&Je(r,1)):(r=Br(t),r.c(),Je(r,1),r.m(e.parentNode,e)):r&&(Me(),Oe(r,1,1,(()=>{r=null})),Te())},i(t){n||(Je(r),n=!0)},o(t){Oe(r),n=!1},d(t){r&&r.d(t),t&&Lt(e)}}}function Br(t){let e,n;return e=new Pr({props:{text:t[55].text,rootFontSize:t[5],textStyles:t[55].textStyles,singleline:t[7],actions:t[55].actions}}),{c(){He(e.$$.fragment)},l(t){Ge(e.$$.fragment,t)},m(t,r){Ke(e,t,r),n=!0},p(t,n){const r={};1024&n[0]&&(r.text=t[55].text),32&n[0]&&(r.rootFontSize=t[5]),1024&n[0]&&(r.textStyles=t[55].textStyles),128&n[0]&&(r.singleline=t[7]),1024&n[0]&&(r.actions=t[55].actions),e.$set(r)},i(t){n||(Je(e.$$.fragment,t),n=!0)},o(t){Oe(e.$$.fragment,t),n=!1},d(t){Xe(e,t)}}}function Rr(t){let e,n,r,o;const i=[Or,Jr],a=[];function l(t,e){return"text"in t[55]?0:t[55].image?1:-1}return~(e=l(t))&&(n=a[e]=i[e](t)),{c(){n&&n.c(),r=Xt()},l(t){n&&n.l(t),r=Xt()},m(t,n){~e&&a[e].m(t,n),Wt(t,r,n),o=!0},p(t,o){let s=e;e=l(t),e===s?~e&&a[e].p(t,o):(n&&(Me(),Oe(a[s],1,1,(()=>{a[s]=null})),Te()),~e?(n=a[e],n?n.p(t,o):(n=a[e]=i[e](t),n.c()),Je(n,1),n.m(r.parentNode,r)):n=null)},i(t){o||(Je(n),o=!0)},o(t){Oe(n),o=!1},d(t){~e&&a[e].d(t),t&&Lt(r)}}}function Wr(t){let e,n,r,o,i,a;const l=[Tr,Mr],s=[];function c(t,e){return t[10].length?0:1}return n=c(t),r=s[n]=l[n](t),{c(){e=qt("span"),r.c(),this.h()},l(t){e=re(t,"SPAN",{class:!0,style:!0});var n=te(e);r.l(n),n.forEach(Lt),this.h()},h(){Zt(e,"class",o=zn("text__inner",$n,t[12])),Zt(e,"style",i=bn(t[11]))},m(t,r){Wt(t,e,r),s[n].m(e,null),a=!0},p(t,u){let d=n;n=c(t),n===d?s[n].p(t,u):(Me(),Oe(s[d],1,1,(()=>{s[d]=null})),Te(),r=s[n],r?r.p(t,u):(r=s[n]=l[n](t),r.c()),Je(r,1),r.m(e,null)),(!a||4096&u[0]&&o!==(o=zn("text__inner",$n,t[12])))&&Zt(e,"class",o),(!a||2048&u[0]&&i!==(i=bn(t[11])))&&Zt(e,"style",i)},i(t){a||(Je(r),a=!0)},o(t){Oe(r),a=!1},d(t){t&&Lt(e),s[n].d()}}}function Lr(t){let e,n,r=!t[8]&&Nr(t);return{c(){r&&r.c(),e=Xt()},l(t){r&&r.l(t),e=Xt()},m(t,o){r&&r.m(t,o),Wt(t,e,o),n=!0},p(t,n){t[8]?r&&(Me(),Oe(r,1,1,(()=>{r=null})),Te()):r?(r.p(t,n),256&n[0]&&Je(r,1)):(r=Nr(t),r.c(),Je(r,1),r.m(e.parentNode,e))},i(t){n||(Je(r),n=!0)},o(t){Oe(r),n=!1},d(t){r&&r.d(t),t&&Lt(e)}}}function Ur(t,e,n){let r,o,i,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x,k,E,A,V,j,P,D,S,I,z,F,N,M=ft,T=ft,J=ft,O=ft,B=ft,R=ft,W=ft,L=ft,U=ft,q=ft,H=ft,G=ft,K=ft;t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>K()));let{json:X={}}=e,{templateContext:Y}=e,{origJson:Z}=e,{layoutParams:Q}=e;const tt=ye(vn);let et=!1,nt="",rt=12,ot=1.25,it=!1,at="",lt="",st=!1,ct="left",ut="top",dt="",ht="",pt=!1,gt=[],mt=[];return me((()=>{mt.forEach((t=>{let[e,n]=t;tt.removeSvgFilter(e,n)}))})),t.$$set=t=>{"json"in t&&n(0,X=t.json),"templateContext"in t&&n(1,Y=t.templateContext),"origJson"in t&&n(2,Z=t.origJson),"layoutParams"in t&&n(3,Q=t.layoutParams)},t.$$.update=()=>{var e,Y;if(1&t.$$.dirty[0]&&(n(26,r=tt.getDerivedFromVars(X.text)),K(),K=Et(r,(t=>n(51,N=t)))),16&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&(n(4,(e=N,Y=nt,nt=String(null!=e?e:"")||Y)),nt?n(8,et=!1):(n(8,et=!0),tt.logError(yn(new Error('Missing "text" prop for div "text"'))))),1&t.$$.dirty[0]&&(n(25,o=tt.getDerivedFromVars(X.ranges)),T(),T=Et(o,(t=>n(41,k=t)))),1&t.$$.dirty[0]&&(n(24,i=tt.getDerivedFromVars(X.images)),M(),M=Et(i,(t=>n(40,x=t)))),1&t.$$.dirty[0]&&(n(23,a=tt.getDerivedFromVars({font_size:X.font_size,letter_spacing:X.letter_spacing,font_weight:X.font_weight,text_color:X.text_color,underline:X.underline,strike:X.strike,line_height:X.line_height})),J(),J=Et(a,(t=>n(27,E=t)))),1&t.$$.dirty[0]&&(n(22,l=tt.getDerivedFromVars(X.font_size)),G(),G=Et(l,(t=>n(50,F=t)))),32&t.$$.dirty[0]|524288&t.$$.dirty[1]&&n(5,rt=xr(F,rt)),1&t.$$.dirty[0]&&(n(21,s=tt.getDerivedFromVars(X.line_height)),H(),H=Et(s,(t=>n(49,z=t)))),32&t.$$.dirty[0]|262144&t.$$.dirty[1]){const t=z;ir(t)?(n(29,ot=Number(t)/rt),n(9,it=!0)):n(9,it=!1)}if(1&t.$$.dirty[0]&&(n(20,c=tt.getDerivedFromVars(X.max_lines)),L(),L=Et(c,(t=>n(46,D=t)))),32768&t.$$.dirty[1]&&n(7,u=1===D),536870912&t.$$.dirty[0]|34304&t.$$.dirty[1]){let t="",e="",r=!1;if(D&&D>1){let n=Number(D);t=n*ot+"em",k||x||(e=n,r=!0)}n(30,at=t),n(31,lt=e),n(32,st=r)}if(1&t.$$.dirty[0]&&(n(19,d=tt.getDerivedFromVars(X.text_alignment_horizontal)),q(),q=Et(d,(t=>n(48,I=t)))),131076&t.$$.dirty[1]&&n(33,ct=Dr(I,ct)),1&t.$$.dirty[0]&&(n(18,h=tt.getDerivedFromVars(X.text_alignment_vertical)),U(),U=Et(h,(t=>n(47,S=t)))),65544&t.$$.dirty[1]&&n(34,ut=Sr(S,ut)),16&t.$$.dirty[0]|1024&t.$$.dirty[1]&&n(39,p=!k||nt&&1===k.length&&k[0]&&0===k[0].start&&"number"==typeof k[0].end&&k[0].end>=nt.length),1&t.$$.dirty[0]&&(n(17,f=tt.getDerivedFromVars(X.text_color)),W(),W=Et(f,(t=>n(45,P=t)))),17408&t.$$.dirty[1]&&n(38,g=Boolean(P)!==Boolean(k&&k[0]&&k[0].text_color)),50576&t.$$.dirty[1]){let t="";D&&p&&g&&(t=C(P||k&&k[0]&&k[0].text_color,1,dt)),n(35,dt=t)}if(1&t.$$.dirty[0]&&(n(16,m=tt.getDerivedFromVars(X.truncate)),R(),R=Et(m,(t=>n(44,j=t)))),8192&t.$$.dirty[1]&&n(37,v="none"===j?"none":""),1&t.$$.dirty[0]&&(n(15,y=tt.getDerivedFromVars(X.text_gradient)),B(),B=Et(y,(t=>n(43,V=t)))),4096&t.$$.dirty[1]){let t="";if(V){const e=Cn([V]);e.image&&(t=e.image)}n(36,ht=t)}1&t.$$.dirty[0]&&(n(14,$=tt.getDerivedFromVars(X.selectable)),O(),O=Et($,(t=>n(42,A=t)))),64&t.$$.dirty[0]|2048&t.$$.dirty[1]&&n(6,pt=function(t,e){return 1===t||0===t||!1===t||!0===t?Boolean(t):e}(A,pt)),16&t.$$.dirty[0]|1536&t.$$.dirty[1]&&function(t,e,r){let o=[];if(mt.forEach((t=>{let[e,n]=t;tt.removeSvgFilter(e,n)})),mt=[],!(Array.isArray(e)&&e.length||Array.isArray(r)&&r.length&&t))return void n(10,gt=[]);const i=t;let a=e||[{start:0,end:i.length}],l=r||[],s=0,c=[],u=[];a.forEach((t=>{void 0!==t.start&&void 0!==t.end&&(u.push({index:t.start,range:t,type:"rangeStart",isStart:!0}),u.push({index:t.end,range:t,type:"rangeEnd"}))})),l.forEach(((t,e)=>{void 0!==t.start&&t.url&&t.start<=i.length&&u.push({index:t.start,image:t,type:"image",arrayIndex:e})})),u.sort(((t,e)=>t.index===e.index?t.type!==e.type?"image"===t.type?-1:"image"===e.type?1:t.type<e.type?-1:1:"image"===t.type&&"image"===e.type?e.arrayIndex-t.arrayIndex:"rangeStart"===t.type&&"rangeStart"===e.type?t.range.end-e.range.end:"rangeStart"===t.type?1:"rangeStart"===e.type?-1:"image"!==t.type&&"image"!==e.type?t.range.start-e.range.start:0:t.index-e.index)),u.forEach((t=>{var e;let n="image"===t.type?null:t.range,r=t.index;if(r>s){let n=Object.assign(Object.assign({},E),...c);o.push({text:i.substring(s,r),textStyles:n,actions:"rangeEnd"===t.type&&(null===(e=t.range)||void 0===e?void 0:e.actions)||void 0})}if("rangeStart"===t.type&&n)c.push(n);else if("rangeEnd"===t.type)c=c.filter((e=>e!==t.range));else if("image"===t.type){let e=Object.assign(Object.assign({},E),...c),n=wn(10*(t.image.width&&t.image.width.value||20)/(e.font_size||12)),r=wn(10*(t.image.height&&t.image.height.value||20)/(e.font_size||12));const i={"font-size":wn(10*(Number(e.font_size)||12)/rt)};let a="";const l=t.image.tint_color,s=Ir(t.image.tint_mode,"source_in");if(l){const e=C(t.image.tint_color);a=tt.addSvgFilter(e,s),mt.push([e,s])}o.push({image:{url:t.image.url,width:n,height:r,wrapperStyle:i,svgFilterId:a}})}s=r})),s<i.length&&o.push({text:i.substring(s),textStyles:Object.assign({},E)}),n(10,gt=o)}(nt,k,x),128&t.$$.dirty[0]|78&t.$$.dirty[1]&&n(13,_={singleline:u,multiline:st,halign:ct,valign:ut,truncate:v}),32&t.$$.dirty[1]&&n(12,b={gradient:Boolean(ht)}),1610612768&t.$$.dirty[0]|49&t.$$.dirty[1]&&n(11,w={"font-size":wn(rt),"line-height":ot,"max-height":at,"-webkit-line-clamp":lt,color:dt,"background-image":ht})},[X,Y,Z,Q,nt,rt,pt,u,et,it,gt,w,b,_,$,y,m,f,h,d,c,s,l,a,i,o,r,E,function(t){t.target&&"classList"in t.target&&t.target.classList.add($n.text__image_hidden)},ot,at,lt,st,ct,ut,dt,ht,v,g,p,x,k,A,V,j,P,D,S,I,z,F,N]}const qr={container:"divkit-d37d6",container_wrap:"divkit-c8551",container_orientation_vertical:"divkit-ddc33",container_valign_top:"divkit-a331a",container_valign_center:"divkit-aae61",container_valign_bottom:"divkit-c2226",container_orientation_horizontal:"divkit-fe458",container_halign_left:"divkit-a3091",container_halign_center:"divkit-bac9d",container_halign_right:"divkit-f4230",container_orientation_overlap:"divkit-a644d"};function Hr(t,e,n){if(!(t&&t.shape&&t.color&&t.shape.type&&e.includes(t.shape.type)))return n;const r=C(t.color);let o,i,a;if("rounded_rectangle"===t.shape.type){var l,s,c,u;o=Number((null===(l=t.shape.item_width)||void 0===l?void 0:l.value)||10),i=Number((null===(s=t.shape.item_height)||void 0===s?void 0:s.value)||10),a=Number(null!==(c=null===(u=t.shape.corner_radius)||void 0===u?void 0:u.value)&&void 0!==c?c:5)}else{if("circle"!==t.shape.type)return n;var d;o=i=a=2*Number((null===(d=t.shape.radius)||void 0===d?void 0:d.value)||10)}if("shape_drawable"===t.type&&"transparent"!==r){var h,p,f;const e={},n=null!==(h=t.stroke)&&void 0!==h&&h.color?C(t.stroke.color):"",l=null!==(p=t.stroke)&&void 0!==p&&p.width?Number(null!==(f=t.stroke.width)&&void 0!==f?f:1):"";return e.width=o,e.height=i,e.borderRadius=a,e.background=r,n&&l&&(e.boxShadow="inset 0 0 0 ".concat(wn(l)," ").concat(n)),e}return n}function Gr(t,e,n){null!=e&&e.show_at_start&&(n?t.top=e.style.height:t.left=e.style.width),null!=e&&e.show_at_end&&(n?t.bottom=e.style.height:t.right=e.style.width)}function Kr(t,e,n){let r;return r="horizontal"===t?[null!=n&&n.show_between?n.style.height:0,null!=e&&e.show_between?e.style.width:0]:[null!=e&&e.show_between?e.style.height:0,null!=n&&n.show_between?n.style.width:0],r.map(wn).join(" ")}const Xr="divkit-a7719",Yr="divkit-f6e9a";function Zr(t,e,n){const r=t.slice();return r[13]=e[n],r}function Qr(t){let e,n,r,o,i,a="".concat(t[13].style.width,"px"),l="".concat(t[13].style.height,"px"),s="".concat(t[13].style.borderRadius,"px"),c="".concat(t[13].left,"px"),u="".concat(t[13].top,"px"),d="".concat(t[13].width,"px"),h="".concat(t[13].height,"px");return{c(){e=qt("div"),n=qt("div"),o=Kt(),this.h()},l(t){e=re(t,"DIV",{class:!0});var r=te(e);n=re(r,"DIV",{class:!0}),te(n).forEach(Lt),o=ae(r),r.forEach(Lt),this.h()},h(){Zt(n,"class",r=Yr),se(n,"width",a,!1),se(n,"height",l,!1),se(n,"border-radius",s,!1),se(n,"background",t[13].style.background,!1),se(n,"box-shadow",t[13].style.boxShadow,!1),Zt(e,"class",i="divkit-c770e"),se(e,"left",c,!1),se(e,"top",u,!1),se(e,"width",d,!1),se(e,"height",h,!1)},m(t,r){Wt(t,e,r),Rt(e,n),Rt(e,o)},p(t,r){2&r&&a!==(a="".concat(t[13].style.width,"px"))&&se(n,"width",a,!1),2&r&&l!==(l="".concat(t[13].style.height,"px"))&&se(n,"height",l,!1),2&r&&s!==(s="".concat(t[13].style.borderRadius,"px"))&&se(n,"border-radius",s,!1),2&r&&se(n,"background",t[13].style.background,!1),2&r&&se(n,"box-shadow",t[13].style.boxShadow,!1),2&r&&c!==(c="".concat(t[13].left,"px"))&&se(e,"left",c,!1),2&r&&u!==(u="".concat(t[13].top,"px"))&&se(e,"top",u,!1),2&r&&d!==(d="".concat(t[13].width,"px"))&&se(e,"width",d,!1),2&r&&h!==(h="".concat(t[13].height,"px"))&&se(e,"height",h,!1)},d(t){t&&Lt(e)}}}function to(t){let e,n,r,o,i=t[1],a=[];for(let e=0;e<i.length;e+=1)a[e]=Qr(Zr(t,i,e));return{c(){e=qt("div");for(let t=0;t<a.length;t+=1)a[t].c();this.h()},l(t){e=re(t,"DIV",{class:!0});var n=te(e);for(let t=0;t<a.length;t+=1)a[t].l(n);n.forEach(Lt),this.h()},h(){Zt(e,"class",n=Xr)},m(n,i){Wt(n,e,i);for(let t=0;t<a.length;t+=1)a[t].m(e,null);t[10](e),r||(o=Yt(window,"resize",t[2]),r=!0)},p(t,n){let[r]=n;if(2&r){let n;for(i=t[1],n=0;n<i.length;n+=1){const o=Zr(t,i,n);a[n]?a[n].p(o,r):(a[n]=Qr(o),a[n].c(),a[n].m(e,null))}for(;n<a.length;n+=1)a[n].d(1);a.length=i.length}},i:ft,o:ft,d(n){n&&Lt(e),Ut(a,n),t[10](null),r=!1,o()}}}function eo(t,e,n,r,o,i){i?t.push({top:n.bottom,left:o.left,width:o.right-o.left,height:r.top-n.bottom,style:e}):t.push({top:o.top,left:n.right,width:r.left-n.right,height:o.bottom-o.top,style:e})}function no(t,e,n,r){const o={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)&&eo(t,e.style,{top:0,right:n[0].left-e.style.width,bottom:n[0].top-e.style.height,left:0},n[0],o,r),null==e?void 0:e.show_between)for(let i=0;i<n.length-1;++i)eo(t,e.style,n[i],n[i+1],o,r);if(null==e?void 0:e.show_at_end){const i=n[n.length-1];eo(t,e.style,i,{top:i.bottom+e.style.height,right:0,bottom:0,left:i.right+e.style.width},o,r)}}function ro(t,e,n){let r,{orientation:o}=e,{separator:i}=e,{lineSeparator:a}=e;const l=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();n(1,c=[]);let e=[...r.children].filter((t=>t!==s&&!t.classList.contains(_n.outer__border))),l=[];for(;e.length;){const t=[],n=e.shift();t.push(n);let r=n.getBoundingClientRect(),i=r.right,a=r.bottom;for(;e.length;){let n=e[0],r=n.getBoundingClientRect();if("vertical"===o){if(r.top<a)break}else if(r.left<i)break;i=Math.max(i,r.right),a=Math.max(a,r.bottom),t.push(n),e.shift()}l.push(t)}const u=[];l.forEach((t=>{const e=t.map((t=>function(t){const e=t.getBoundingClientRect(),n=getComputedStyle(t);return{top:e.top-parseFloat(n.marginTop),right:e.right+parseFloat(n.marginRight),bottom:e.bottom+parseFloat(n.marginBottom),left:e.left-parseFloat(n.marginLeft)}}(t)));i&&no(c,i,e,"vertical"===o);const n={top:Math.min(...e.map((t=>t.top))),right:Math.max(...e.map((t=>t.right))),bottom:Math.max(...e.map((t=>t.bottom))),left:Math.min(...e.map((t=>t.left)))};u.push(n)})),a&&no(c,a,u,"horizontal"===o),c.forEach((e=>{e.top-=t.top,e.left-=t.left}))}));let s,c=[],u=!1,d=null,h=null;function p(t){t.some((t=>{var e;const n=null===(e=t.target)||void 0===e?void 0:e.classList;return!(null==n?void 0:n.contains(Yr))&&!(null==n?void 0:n.contains(Xr))}))&&l()}return ge((()=>{n(6,u=!0)})),me((()=>{n(6,u=!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)},t.$$.update=()=>{1&t.$$.dirty&&n(9,r=(null==s?void 0:s.parentElement)||null),960&t.$$.dirty&&(u&&r||d||h)&&(d&&(d.disconnect(),n(7,d=null)),h&&(h.disconnect(),n(8,h=null)),u&&r&&("undefined"!=typeof MutationObserver&&(n(7,d=new MutationObserver(p)),d.observe(r,{childList:!0,attributes:!0,characterData:!0,subtree:!0})),"undefined"!=typeof ResizeObserver&&(n(8,h=new ResizeObserver(l)),h.observe(r)))),576&t.$$.dirty&&u&&r&&l()},[s,c,l,o,i,a,u,d,h,r,function(t){be[t?"unshift":"push"]((()=>{s=t,n(0,s)}))}]}const oo=class extends Ze{constructor(t){super(),Ye(this,t,ro,to,xt,{orientation:3,separator:4,lineSeparator:5})}};let io;function ao(){if(void 0!==io)return io;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),io=1===t.scrollHeight,document.body.removeChild(t),io}const{Boolean:lo}=We;function so(t,e,n){const r=t.slice();return r[43]=e[n],r}function co(t){let e,n;return e=new br({props:{cls:zn("container",qr,t[10]),style:t[9],json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],additionalPaddings:t[13],$$slots:{default:[po]},$$scope:{ctx:t}}}),{c(){He(e.$$.fragment)},l(t){Ge(e.$$.fragment,t)},m(t,r){Ke(e,t,r),n=!0},p(t,n){const r={};1024&n[0]&&(r.cls=zn("container",qr,t[10])),512&n[0]&&(r.style=t[9]),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),8192&n[0]&&(r.additionalPaddings=t[13]),1049056&n[0]|32768&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Je(e.$$.fragment,t),n=!0)},o(t){Oe(e.$$.fragment,t),n=!1},d(t){Xe(e,t)}}}function uo(t){let e,n;return e=new Da({props:{layoutParams:t[8],div:t[43].json,templateContext:t[43].templateContext,origJson:t[43].origJson}}),{c(){He(e.$$.fragment)},l(t){Ge(e.$$.fragment,t)},m(t,r){Ke(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.layoutParams=t[8]),1048576&n[0]&&(r.div=t[43].json),1048576&n[0]&&(r.templateContext=t[43].templateContext),1048576&n[0]&&(r.origJson=t[43].origJson),e.$set(r)},i(t){n||(Je(e.$$.fragment,t),n=!0)},o(t){Oe(e.$$.fragment,t),n=!1},d(t){Xe(e,t)}}}function ho(t){let e,n;return e=new oo({props:{separator:t[6],lineSeparator:t[7],orientation:t[5]}}),{c(){He(e.$$.fragment)},l(t){Ge(e.$$.fragment,t)},m(t,r){Ke(e,t,r),n=!0},p(t,n){const r={};64&n[0]&&(r.separator=t[6]),128&n[0]&&(r.lineSeparator=t[7]),32&n[0]&&(r.orientation=t[5]),e.$set(r)},i(t){n||(Je(e.$$.fragment,t),n=!0)},o(t){Oe(e.$$.fragment,t),n=!1},d(t){Xe(e,t)}}}function po(t){let e,n,r,o=t[20],i=[];for(let e=0;e<o.length;e+=1)i[e]=uo(so(t,o,e));const a=t=>Oe(i[t],1,1,(()=>{i[t]=null}));let l=(t[6]||t[7])&&ho(t);return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=Kt(),l&&l.c(),n=Xt()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);e=ae(t),l&&l.l(t),n=Xt()},m(t,o){for(let e=0;e<i.length;e+=1)i[e].m(t,o);Wt(t,e,o),l&&l.m(t,o),Wt(t,n,o),r=!0},p(t,r){if(1048832&r[0]){let n;for(o=t[20],n=0;n<o.length;n+=1){const a=so(t,o,n);i[n]?(i[n].p(a,r),Je(i[n],1)):(i[n]=uo(a),i[n].c(),Je(i[n],1),i[n].m(e.parentNode,e))}for(Me(),n=o.length;n<i.length;n+=1)a(n);Te()}t[6]||t[7]?l?(l.p(t,r),192&r[0]&&Je(l,1)):(l=ho(t),l.c(),Je(l,1),l.m(n.parentNode,n)):l&&(Me(),Oe(l,1,1,(()=>{l=null})),Te())},i(t){if(!r){for(let t=0;t<o.length;t+=1)Je(i[t]);Je(l),r=!0}},o(t){i=i.filter(lo);for(let t=0;t<i.length;t+=1)Oe(i[t]);Oe(l),r=!1},d(t){Ut(i,t),t&&Lt(e),l&&l.d(t),t&&Lt(n)}}}function fo(t){let e,n,r=!t[4]&&co(t);return{c(){r&&r.c(),e=Xt()},l(t){r&&r.l(t),e=Xt()},m(t,o){r&&r.m(t,o),Wt(t,e,o),n=!0},p(t,n){t[4]?r&&(Me(),Oe(r,1,1,(()=>{r=null})),Te()):r?(r.p(t,n),16&n[0]&&Je(r,1)):(r=co(t),r.c(),Je(r,1),r.m(e.parentNode,e))},i(t){n||(Je(r),n=!0)},o(t){Oe(r),n=!1},d(t){r&&r.d(t),t&&Lt(e)}}}function go(t,e,n){let r,o,i,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x,k,E=ft,C=ft,A=ft,V=ft,j=ft,P=ft,D=ft,S=ft;var I,z,F,N,M,T;t.$$.on_destroy.push((()=>E())),t.$$.on_destroy.push((()=>C())),t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>S()));let{json:J={}}=e,{templateContext:O}=e,{origJson:B}=e,{layoutParams:R}=e;const W={left:"start",center:"center",right:"end"},L={top:"start",center:"center",bottom:"end",baseline:"baseline"},U=["rounded_rectangle","circle"],q=ye(vn);let H=!1,G="vertical",K="top",X="left",Y=null,Z=null,Q={};return t.$$set=t=>{"json"in t&&n(0,J=t.json),"templateContext"in t&&n(1,O=t.templateContext),"origJson"in t&&n(2,B=t.origJson),"layoutParams"in t&&n(3,R=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&n(30,r=J.items),1073741824&t.$$.dirty[0]&&((null==r?void 0:r.length)&&Array.isArray(r)?n(4,H=!1):(n(4,H=!0),q.logError(yn(new Error('Incorrect or empty "items" prop for div "container"'))))),1073741842&t.$$.dirty[0]&&n(20,o=(!H&&r||[]).map((t=>{let e=t,n=O;return({templateContext:n,json:e}=q.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),1&t.$$.dirty[0]&&(n(19,i=q.getDerivedFromVars(J.orientation)),S(),S=Et(i,(t=>n(38,k=t)))),32&t.$$.dirty[0]|128&t.$$.dirty[1]&&n(5,G=function(t,e){return"vertical"===t||"horizontal"===t||"overlap"===t?t:e}(k,G)),1&t.$$.dirty[0]&&(n(18,a=q.getDerivedFromVars(J.content_alignment_vertical)),D(),D=Et(a,(t=>n(37,x=t)))),134217728&t.$$.dirty[0]|64&t.$$.dirty[1]&&n(27,K=Sr(x,K)),1&t.$$.dirty[0]&&(n(17,l=q.getDerivedFromVars(J.content_alignment_horizontal)),P(),P=Et(l,(t=>n(36,w=t)))),268435456&t.$$.dirty[0]|32&t.$$.dirty[1]&&n(28,X=Dr(w,X)),1&t.$$.dirty[0]&&(n(16,s=q.getDerivedFromVars(J.layout_mode)),j(),j=Et(s,(t=>n(35,b=t)))),16&t.$$.dirty[1]&&n(29,c="wrap"===b),1&t.$$.dirty[0]&&(n(15,u=q.getDerivedFromVars(J.separator)),V(),V=Et(u,(t=>n(34,_=t)))),14680160&t.$$.dirty[0]|8&t.$$.dirty[1])if((null==_?void 0:_.style)&&"overlap"!==G&&ao()){const t=Hr(_.style,U,(null==Y?void 0:Y.style)||null);n(6,Y=t?{show_at_start:Boolean(null!==n(21,I=_.show_at_start)&&void 0!==I&&I),show_at_end:Boolean(null!==n(22,z=_.show_at_end)&&void 0!==z&&z),show_between:Boolean(null===n(23,F=_.show_between)||void 0===F||F),style:t}:null)}else n(6,Y=null);if(1&t.$$.dirty[0]&&(n(14,d=q.getDerivedFromVars(J.line_separator)),A(),A=Et(d,(t=>n(33,$=t)))),117440672&t.$$.dirty[0]|4&t.$$.dirty[1])if((null==$?void 0:$.style)&&"overlap"!==G&&ao()){const t=Hr($.style,U,(null==Z?void 0:Z.style)||null);n(7,Z=t?{show_at_start:Boolean(null!==n(24,N=$.show_at_start)&&void 0!==N&&N),show_at_end:Boolean(null!==n(25,M=$.show_at_end)&&void 0!==M&&M),show_between:Boolean(null===n(26,T=$.show_between)||void 0===T||T),style:t}:null)}else n(7,Z=null);if(224&t.$$.dirty[0]&&n(13,h=Y||Z?function(t,e,n){const r={};return Gr(r,e,"vertical"===t),Gr(r,n,"horizontal"===t),r}(G,Y,Z):null),1&t.$$.dirty[0]&&(n(12,p=q.getDerivedFromVars(J.width)),E(),E=Et(p,(t=>n(31,v=t)))),1&t.$$.dirty[0]&&(n(11,f=q.getDerivedFromVars(J.height)),C(),C=Et(f,(t=>n(32,y=t)))),939524392&t.$$.dirty[0]|3&t.$$.dirty[1]){let t={};(null==R?void 0:R.fakeElement)&&(t.fakeElement=!0),"overlap"===G&&(t.overlapParent=!0),"horizontal"!==G&&(t.parentHAlign=W[X],(!y||"wrap_content"===y.type||"match_parent"===y.type&&(null==R?void 0:R.parentVerticalWrapContent))&&(t.parentVerticalWrapContent=!0)),"vertical"!==G&&(t.parentVAlign=L[K],("wrap_content"===(null==v?void 0:v.type)||"match_parent"===(null==v?void 0:v.type)&&(null==R?void 0:R.parentHorizontalWrapContent))&&(t.parentHorizontalWrapContent=!0)),"horizontal"===G&&(t.parentContainerOrientation="horizontal"),"vertical"===G&&(t.parentContainerOrientation="vertical"),c&&(t.parentContainerWrap=!0),n(8,Q=Ln(t,Q))}939524128&t.$$.dirty[0]&&n(10,g={orientation:G,valign:K,halign:X,wrap:c}),224&t.$$.dirty[0]&&n(9,m={gap:Y||Z?Kr(G,Y,Z):void 0})},[J,O,B,R,H,G,Y,Z,Q,m,g,f,p,h,d,u,s,l,a,i,o,I,z,F,N,M,T,K,X,c,r,v,y,$,_,b,w,x,k]}const mo={separator:"divkit-a30bb",separator_orientation_horizontal:"divkit-f529e",separator_orientation_vertical:"divkit-e9e27",separator__inner:"divkit-db7d8"};function vo(t,e){return"vertical"===t||"horizontal"===t?t:e}function yo(t){let e,n,r;return{c(){e=qt("span"),this.h()},l(t){e=re(t,"SPAN",{class:!0,style:!0}),te(e).forEach(Lt),this.h()},h(){Zt(e,"class",n=mo.separator__inner),Zt(e,"style",r=bn(t[5]))},m(t,n){Wt(t,e,n)},p(t,n){32&n&&r!==(r=bn(t[5]))&&Zt(e,"style",r)},d(t){t&&Lt(e)}}}function $o(t){let e,n=t[6]&&yo(t);return{c(){n&&n.c(),e=Xt()},l(t){n&&n.l(t),e=Xt()},m(t,r){n&&n.m(t,r),Wt(t,e,r)},p(t,r){t[6]?n?n.p(t,r):(n=yo(t),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(t){n&&n.d(t),t&&Lt(e)}}}function _o(t){let e,n;return e=new br({props:{cls:zn("separator",mo,t[4]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[$o]},$$scope:{ctx:t}}}),{c(){He(e.$$.fragment)},l(t){Ge(e.$$.fragment,t)},m(t,r){Ke(e,t,r),n=!0},p(t,n){let[r]=n;const o={};16&r&&(o.cls=zn("separator",mo,t[4])),1&r&&(o.json=t[0]),4&r&&(o.origJson=t[2]),2&r&&(o.templateContext=t[1]),8&r&&(o.layoutParams=t[3]),16480&r&&(o.$$scope={dirty:r,ctx:t}),e.$set(o)},i(t){n||(Je(e.$$.fragment,t),n=!0)},o(t){Oe(e.$$.fragment,t),n=!1},d(t){Xe(e,t)}}}function bo(t,e,n){let r,o,i,a,l,s,c,u=ft;t.$$.on_destroy.push((()=>u()));let{json:d={}}=e,{templateContext:h}=e,{origJson:p}=e,{layoutParams:f}=e;const g=ye(vn);let m="horizontal",v="rgba(0,0,0,0.08)";return t.$$set=t=>{"json"in t&&n(0,d=t.json),"templateContext"in t&&n(1,h=t.templateContext),"origJson"in t&&n(2,p=t.origJson),"layoutParams"in t&&n(3,f=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty&&(n(7,r=g.getDerivedFromVars(d.delimiter_style)),u(),u=Et(r,(t=>n(12,c=t)))),4352&t.$$.dirty&&n(8,m=vo(null==c?void 0:c.orientation,m)),4096&t.$$.dirty&&n(6,o=!((null==c?void 0:c.color)&&("transparent"===c.color||9===c.color.length&&0===c.color.indexOf("#00")))),4608&t.$$.dirty&&n(9,v=C(null==c?void 0:c.color,1,v)),256&t.$$.dirty&&n(11,i="horizontal"===m?"100%":wn(1)),256&t.$$.dirty&&n(10,a="horizontal"===m?wn(1):"100%"),3584&t.$$.dirty&&n(5,l={background:v,width:i,height:a}),256&t.$$.dirty&&n(4,s={orientation:m})},[d,h,p,f,s,l,o,r,m,v,a,i,c]}const wo={image:"divkit-a448f","image_is-width-content":"divkit-fe14a","image_is-height-content":"divkit-f4d92",image__image:"divkit-ce046",image_error:"divkit-f10d9","image__aspect-wrapper":"divkit-dc808",image_aspect:"divkit-ae784",image_loaded:"divkit-cf4e0","divkit-image-appearance":"divkit-e555f","image_before-appearance":"divkit-ffe8a"};function xo(t){let e,n;return e=new br({props:{cls:zn("image",wo,t[11]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],style:t[10],customDescription:!0,$$slots:{default:[Ao]},$$scope:{ctx:t}}}),{c(){He(e.$$.fragment)},l(t){Ge(e.$$.fragment,t)},m(t,r){Ke(e,t,r),n=!0},p(t,n){const r={};2048&n[0]&&(r.cls=zn("image",wo,t[11])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),1024&n[0]&&(r.style=t[10]),133872&n[0]|1073741824&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Je(e.$$.fragment,t),n=!0)},o(t){Oe(e.$$.fragment,t),n=!1},d(t){Xe(e,t)}}}function ko(t){let e,n,r,o,i,a,l;return{c(){e=qt("img"),this.h()},l(t){e=re(t,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,style:!0,alt:!0,"aria-hidden":!0}),this.h()},h(){Zt(e,"class",n=wo.image__image),wt(e.src,r=t[4]===Po?jo:t[7])||Zt(e,"src",r),Zt(e,"loading","lazy"),Zt(e,"decoding","async"),Zt(e,"style",o=bn(t[9])),Zt(e,"alt",t[17]),Zt(e,"aria-hidden",i=t[17]?null:"true")},m(n,r){Wt(n,e,r),a||(l=[Yt(e,"load",t[27]),Yt(e,"error",t[28])],a=!0)},p(t,n){144&n[0]&&!wt(e.src,r=t[4]===Po?jo:t[7])&&Zt(e,"src",r),512&n[0]&&o!==(o=bn(t[9]))&&Zt(e,"style",o),131072&n[0]&&Zt(e,"alt",t[17]),131072&n[0]&&i!==(i=t[17]?null:"true")&&Zt(e,"aria-hidden",i)},d(t){t&&Lt(e),a=!1,$t(l)}}}function Eo(t){let e,n,r,o,i,a,l,s,c,u="".concat(t[5],"%");return{c(){e=qt("span"),n=qt("img"),this.h()},l(t){e=re(t,"SPAN",{class:!0});var r=te(e);n=re(r,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,style:!0,alt:!0,"aria-hidden":!0}),r.forEach(Lt),this.h()},h(){Zt(n,"class",r=wo.image__image),wt(n.src,o=t[4]===Po?jo:t[7])||Zt(n,"src",o),Zt(n,"loading","lazy"),Zt(n,"decoding","async"),Zt(n,"style",i=bn(t[9])),Zt(n,"alt",t[17]),Zt(n,"aria-hidden",a=t[17]?null:"true"),Zt(e,"class",l=wo["image__aspect-wrapper"]),se(e,"padding-bottom",u,!1)},m(r,o){Wt(r,e,o),Rt(e,n),s||(c=[Yt(n,"load",t[27]),Yt(n,"error",t[28])],s=!0)},p(t,r){144&r[0]&&!wt(n.src,o=t[4]===Po?jo:t[7])&&Zt(n,"src",o),512&r[0]&&i!==(i=bn(t[9]))&&Zt(n,"style",i),131072&r[0]&&Zt(n,"alt",t[17]),131072&r[0]&&a!==(a=t[17]?null:"true")&&Zt(n,"aria-hidden",a),32&r[0]&&u!==(u="".concat(t[5],"%"))&&se(e,"padding-bottom",u,!1)},d(t){t&&Lt(e),s=!1,$t(c)}}}function Co(t){let e;function n(t,e){return t[11].aspect?Eo:ko}let r=n(t),o=r(t);return{c(){o.c(),e=Xt()},l(t){o.l(t),e=Xt()},m(t,n){o.m(t,n),Wt(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){o.d(t),t&&Lt(e)}}}function Ao(t){let e,n=t[6],r=Co(t);return{c(){r.c(),e=Xt()},l(t){r.l(t),e=Xt()},m(t,n){r.m(t,n),Wt(t,e,n)},p(t,o){64&o[0]&&xt(n,n=t[6])?(r.d(1),r=Co(t),r.c(),r.m(e.parentNode,e)):r.p(t,o)},d(t){t&&Lt(e),r.d(t)}}}function Vo(t){let e,n,r=!t[8]&&xo(t);return{c(){r&&r.c(),e=Xt()},l(t){r&&r.l(t),e=Xt()},m(t,o){r&&r.m(t,o),Wt(t,e,o),n=!0},p(t,n){t[8]?r&&(Me(),Oe(r,1,1,(()=>{r=null})),Te()):r?(r.p(t,n),256&n[0]&&Je(r,1)):(r=xo(t),r.c(),Je(r,1),r.m(e.parentNode,e))},i(t){n||(Je(r),n=!0)},o(t){Oe(r),n=!1},d(t){r&&r.d(t),t&&Lt(e)}}}const jo="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Po=2;function Do(t,e,n){let r,o,i,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x,k,E,A,V,j,P,D,S,I,z,F,N,M,T,J=ft,O=ft,B=ft,R=ft,W=ft,L=ft,U=ft,q=ft,H=ft,G=ft,K=ft,X=ft,Y=ft,Z=ft;t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>H())),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()));let{json:Q={}}=e,{templateContext:tt}=e,{origJson:et}=e,{layoutParams:nt}=e;const rt=ye(vn);let ot=0,it="rgba(0,0,0,0.08)",at=!1,lt="",st="none",ct="50% 50%";let ut,dt="0",ht="source_in",pt="",gt="",mt=0,vt=0,yt=0,$t="",_t="";return me((()=>{rt.removeSvgFilter(ut,ht)})),t.$$set=t=>{"json"in t&&n(0,Q=t.json),"templateContext"in t&&n(1,tt=t.templateContext),"origJson"in t&&n(2,et=t.origJson),"layoutParams"in t&&n(3,nt=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&(n(26,r=rt.getDerivedFromVars(Q.image_url)),Z(),Z=Et(r,(t=>n(56,T=t)))),1&t.$$.dirty[0]&&(n(25,o=rt.getDerivedFromVars(Q.gif_url)),Y(),Y=Et(o,(t=>n(55,M=t)))),50331648&t.$$.dirty[1]&&n(7,i=T||M),128&t.$$.dirty[0]&&n(4,ot=0),128&t.$$.dirty[0]&&(i?n(8,at=!1):(n(8,at=!0),rt.logError(yn(new Error('Missing "image_url" for "image"'))))),1&t.$$.dirty[0]&&(n(24,a=rt.getDerivedFromVars(Q.width)),X(),X=Et(a,(t=>n(54,N=t)))),8388608&t.$$.dirty[1]&&n(42,l="wrap_content"===(null==N?void 0:N.type)),1&t.$$.dirty[0]&&(n(23,s=rt.getDerivedFromVars(Q.height)),K(),K=Et(s,(t=>n(53,F=t)))),4194304&t.$$.dirty[1]&&n(41,c="wrap_content"===(null==F?void 0:F.type)),1&t.$$.dirty[0]&&(n(22,u=rt.getDerivedFromVars(Q.preview)),G(),G=Et(u,(t=>n(52,z=t)))),16&t.$$.dirty[0]|2097152&t.$$.dirty[1]){const t=z;0!==ot&&ot!==Po||!t?n(30,lt=""):t.startsWith("data:")?n(30,lt='url("'.concat(kn(t),'")')):n(30,lt='url("data:image/jpg;base64,'.concat(kn(t),'")'))}if(1&t.$$.dirty[0]&&(n(21,d=rt.getDerivedFromVars(Q.placeholder_color)),H(),H=Et(d,(t=>n(51,I=t)))),16&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&function(t,e){n(29,it=0===t||t===Po?C(e,1,it):"")}(ot,I),1&t.$$.dirty[0]&&(n(20,h=rt.getDerivedFromVars(Q.scale)),q(),q=Et(h,(t=>n(50,S=t)))),524289&t.$$.dirty[1]&&n(31,st=jn(S)||st),1&t.$$.dirty[0]&&(n(19,p=rt.getDerivedFromVars({content_alignment_horizontal:Q.content_alignment_horizontal,content_alignment_vertical:Q.content_alignment_vertical})),U(),U=Et(p,(t=>n(49,D=t)))),262144&t.$$.dirty[1]&&n(32,ct=function(t,e){const n=t.content_alignment_horizontal,r=t.content_alignment_vertical;return n&&"left"!==n&&"center"!==n&&"right"!==n||r&&"top"!==r&&"center"!==r&&"bottom"!==r?e:Pn(t)}(D,ct)),1&t.$$.dirty[0]&&(n(18,f=rt.getDerivedFromVars(Q.accessibility)),L(),L=Et(f,(t=>n(48,P=t)))),131072&t.$$.dirty[1]&&n(17,g=(null==P?void 0:P.description)||""),1&t.$$.dirty[0]&&(n(16,m=rt.getDerivedFromVars(Q.aspect)),W(),W=Et(m,(t=>n(47,j=t)))),65536&t.$$.dirty[1]){const t=null==j?void 0:j.ratio;t&&ir(t)?n(5,dt=(100/Number(t)).toFixed(2)):n(5,dt="0")}if(1&t.$$.dirty[0]&&(n(15,v=rt.getDerivedFromVars(Q.tint_color)),R(),R=Et(v,(t=>n(46,V=t)))),1&t.$$.dirty[0]&&(n(14,y=rt.getDerivedFromVars(Q.tint_mode)),B(),B=Et(y,(t=>n(45,A=t)))),49164&t.$$.dirty[1]){const t=V,e=t?C(t):void 0,r=Ir(A,ht);e===ut&&r===ht||(rt.removeSvgFilter(ut,ht),n(6,pt=e?rt.addSvgFilter(e,r):""),n(33,ut=e),n(34,ht=r))}if(1&t.$$.dirty[0]&&(n(13,$=rt.getDerivedFromVars(Q.appearance_animation)),O(),O=Et($,(t=>n(44,E=t)))),8192&t.$$.dirty[1]&&E&&"fade"===E.type){const t=E;n(35,gt=Un(t.interpolator,"ease_in_out").replace(/_/g,"-")),n(38,yt=Bn(t.duration,300)),n(37,vt=Bn(t.start_delay,0)),n(36,mt=Bn(t.alpha,0))}if(1&t.$$.dirty[0]&&(n(12,_=rt.getDerivedFromVars(Q.filters)),J(),J=Et(_,(t=>n(43,k=t)))),4096&t.$$.dirty[1]){let t="",e="";Array.isArray(k)&&k.length&&(t=ar(k,rt.logError)),t&&(e="polygon(0% 0%, 0% 100%, 100% 100%, 100% 0%)"),n(39,$t=t),n(40,_t=e)}48&t.$$.dirty[0]|3088&t.$$.dirty[1]&&n(11,b={aspect:"0"!==dt,"is-width-content":l,"is-height-content":c,loaded:1===ot,"before-appearance":Boolean(gt)&&0===ot}),1610612736&t.$$.dirty[0]|1&t.$$.dirty[1]&&n(10,w={"background-image":lt,"background-color":lt?void 0:it,"background-size":st}),80&t.$$.dirty[0]|1011&t.$$.dirty[1]&&n(9,x={"object-fit":st,"object-position":ct,filter:[1===ot&&pt?"url(#".concat(pt,")"):"",$t].filter(Boolean).join(" "),"clip-path":_t||void 0,"--divkit-appearance-interpolator":gt||void 0,"--divkit-appearance-fade-start":gt?mt:void 0,"--divkit-appearance-delay":gt?"".concat(vt,"ms"):void 0,"--divkit-appearance-duration":gt?"".concat(yt,"ms"):void 0})},[Q,tt,et,nt,ot,dt,pt,i,at,x,w,b,_,$,y,v,m,g,f,p,h,d,u,s,a,o,r,function(){0===ot&&n(4,ot=1)},function(){0===ot&&n(4,ot=Po)},it,lt,st,ct,ut,ht,gt,mt,vt,yt,$t,_t,c,l,k,E,A,V,j,P,D,S,I,z,F,N,M,T]}const So=class extends Ze{constructor(t){super(),Ye(this,t,Do,Vo,xt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},Io={grid:"divkit-d9080",grid_halign_left:"divkit-f63b3",grid_halign_center:"divkit-a14a6",grid_halign_right:"divkit-b0717",grid_valign_top:"divkit-fbca8",grid_valign_center:"divkit-d4310",grid_valign_bottom:"divkit-e4205"};function zo(t){return t>0&&t<1}function Fo(t){return String(Math.ceil(1e3*t)/1e3)}function No(t,e,n){if(t.some(zo)){const e=Math.max(...t.filter(zo).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(wn(r*t[e]/o),",").concat(Fo(t[e]),"fr)"):t[e]?i[e]="".concat(Fo(t[e]),"fr"):i[e]="auto";return i.join(" ")}function Mo(t,e,n){const r=t.slice();return r[29]=e[n],r}function To(t){let e,n;return e=new br({props:{cls:zn("grid",Io,t[8]),json:t[0],origJson:t[2],templateContext:t[1],style:t[7],layoutParams:t[3],$$slots:{default:[Oo]},$$scope:{ctx:t}}}),{c(){He(e.$$.fragment)},l(t){Ge(e.$$.fragment,t)},m(t,r){Ke(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.cls=zn("grid",Io,t[8])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),128&n[0]&&(r.style=t[7]),8&n[0]&&(r.layoutParams=t[3]),32&n[0]|2&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Je(e.$$.fragment,t),n=!0)},o(t){Oe(e.$$.fragment,t),n=!1},d(t){Xe(e,t)}}}function Jo(t){let e,n;return e=new Da({props:{layoutParams:t[29].layoutParams,div:t[29].json,templateContext:t[29].templateContext,origJson:t[29].origJson}}),{c(){He(e.$$.fragment)},l(t){Ge(e.$$.fragment,t)},m(t,r){Ke(e,t,r),n=!0},p(t,n){const r={};32&n[0]&&(r.layoutParams=t[29].layoutParams),32&n[0]&&(r.div=t[29].json),32&n[0]&&(r.templateContext=t[29].templateContext),32&n[0]&&(r.origJson=t[29].origJson),e.$set(r)},i(t){n||(Je(e.$$.fragment,t),n=!0)},o(t){Oe(e.$$.fragment,t),n=!1},d(t){Xe(e,t)}}}function Oo(t){let e,n,r=t[5],o=[];for(let e=0;e<r.length;e+=1)o[e]=Jo(Mo(t,r,e));const i=t=>Oe(o[t],1,1,(()=>{o[t]=null}));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=Xt()},l(t){for(let e=0;e<o.length;e+=1)o[e].l(t);e=Xt()},m(t,r){for(let e=0;e<o.length;e+=1)o[e].m(t,r);Wt(t,e,r),n=!0},p(t,n){if(32&n[0]){let a;for(r=t[5],a=0;a<r.length;a+=1){const i=Mo(t,r,a);o[a]?(o[a].p(i,n),Je(o[a],1)):(o[a]=Jo(i),o[a].c(),Je(o[a],1),o[a].m(e.parentNode,e))}for(Me(),a=r.length;a<o.length;a+=1)i(a);Te()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Je(o[t]);n=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)Oe(o[t]);n=!1},d(t){Ut(o,t),t&&Lt(e)}}}function Bo(t){let e,n,r=!t[6]&&To(t);return{c(){r&&r.c(),e=Xt()},l(t){r&&r.l(t),e=Xt()},m(t,o){r&&r.m(t,o),Wt(t,e,o),n=!0},p(t,n){t[6]?r&&(Me(),Oe(r,1,1,(()=>{r=null})),Te()):r?(r.p(t,n),64&n[0]&&Je(r,1)):(r=To(t),r.c(),Je(r,1),r.m(e.parentNode,e))},i(t){n||(Je(r),n=!0)},o(t){Oe(r),n=!1},d(t){r&&r.d(t),t&&Lt(e)}}}function Ro(t,e,n){let r,o,i,a,l,s,c,u,d,h,p,f,g=ft,m=ft,v=ft,y=ft;t.$$.on_destroy.push((()=>g())),t.$$.on_destroy.push((()=>m())),t.$$.on_destroy.push((()=>v())),t.$$.on_destroy.push((()=>y()));let{json:$={}}=e,{templateContext:_}=e,{origJson:b}=e,{layoutParams:w}=e;const x=ye(vn);let k,E,C=!1,A=1,V=[],j=[],P=[],D=[],S=0,I=!1,z="top",F="left";return t.$$set=t=>{"json"in t&&n(0,$=t.json),"templateContext"in t&&n(1,_=t.templateContext),"origJson"in t&&n(2,b=t.origJson),"layoutParams"in t&&n(3,w=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&n(23,r=$.items),8388608&t.$$.dirty[0]&&((null==r?void 0:r.length)&&Array.isArray(r)?n(12,C=!1):(n(12,C=!0),x.logError(yn(new Error('Incorrect or empty "items" prop for div "grid"'))))),1&t.$$.dirty[0]&&(n(11,o=x.getDerivedFromVars($.column_count)),y(),y=Et(o,(t=>n(27,f=t)))),134225920&t.$$.dirty[0]&&n(13,A=xr(f,A)),8392706&t.$$.dirty[0]&&n(22,i=(!C&&r||[]).map((t=>{let e=t,n=_;return({templateContext:n,json:e}=x.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),4194304&t.$$.dirty[0]){let t=[];i.forEach((e=>{t.push(x.getDerivedFromVars({rowSpan:e.json.row_span,columnSpan:e.json.column_span,width:e.json.width,height:e.json.height}))})),n(4,k=en(t,(t=>[...t]))),v(),v=Et(k,(t=>n(26,p=t)))}if(72081416&t.$$.dirty[0]){const t={};let e=0,r=0;n(14,V=[]),n(15,j=[]),n(16,P=[]),n(17,D=[]),n(19,I=!1),n(5,E=i.map(((o,i)=>{var a,l,s,c;const u=p[i],d=Number(u.columnSpan)||1,h=Number(u.rowSpan)||1,f={x:e,y:r,colSpan:d,rowSpan:h},g="match_parent"===(null===(a=u.width)||void 0===a?void 0:a.type)?Number(u.width.weight||1)/d:0,m="match_parent"===(null===(l=u.height)||void 0===l?void 0:l.type)?Number(u.height.weight||1)/h:0,v=1===d&&"fixed"===(null===(s=u.width)||void 0===s?void 0:s.type)&&u.width.value?Number(u.width.value)/d:0,y=1===h&&"fixed"===(null===(c=u.height)||void 0===c?void 0:c.type)&&u.height.value?Number(u.height.value)/h:0;for(let o=e;o<e+d;++o)for(let e=r;e<r+h;++e)t[o+"_"+e]?n(19,I=!0):(t[o+"_"+e]=!0,(!V[o]||V[o]<g)&&n(14,V[o]=g,V),(!j[e]||j[e]<m)&&n(15,j[e]=m,j),(!P[o]||P[o]<v)&&n(16,P[o]=v,P),(!D[e]||D[e]<y)&&n(17,D[e]=y,D));do{++e,e>=A&&(e=0,++r)}while(t[e+"_"+r]);return Object.assign(Object.assign({},o),{layoutParams:{gridArea:f,fakeElement:(null==w?void 0:w.fakeElement)||!1}})}))),0!==e&&n(19,I=!0),I&&x.logError(yn(new Error('Mismatching "grid" rows/columns'))),n(18,S=r)}1&t.$$.dirty[0]&&(n(10,a=x.getDerivedFromVars($.content_alignment_vertical)),m(),m=Et(a,(t=>n(25,h=t)))),34603008&t.$$.dirty[0]&&n(20,z=Sr(h,z)),1&t.$$.dirty[0]&&(n(9,l=x.getDerivedFromVars($.content_alignment_horizontal)),g(),g=Et(l,(t=>n(24,d=t)))),18874368&t.$$.dirty[0]&&n(21,F=Dr(d,F)),3145728&t.$$.dirty[0]&&n(8,s={valign:z,halign:F}),516096&t.$$.dirty[0]&&n(7,c={"grid-template-columns":No(V,P,A),"grid-template-rows":No(j,D,S)}),528384&t.$$.dirty[0]&&n(6,u=C||I)},[$,_,b,w,k,E,u,c,s,l,a,o,C,A,V,j,P,D,S,I,z,F,i,r,d,h,p,f]}const Wo={gallery:"divkit-cbb0f",gallery_orientation_horizontal:"divkit-c9be7",gallery_orientation_vertical:"divkit-a72d5",gallery__scroller:"divkit-a4e39","gallery_scroll-snap":"divkit-f606e","gallery__items-grid":"divkit-eb4a5",gallery__items:"divkit-af276",gallery__arrow:"divkit-b72d7","gallery__arrow-icon":"divkit-d100d",gallery__arrow_left:"divkit-a0a5d",gallery__arrow_right:"divkit-f0f59","gallery__arrow-icon-path":"divkit-b4173"};function Lo(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 Uo(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)}}const{Boolean:qo}=We;function Ho(t,e,n){const r=t.slice();return r[72]=e[n],r[73]=e,r[74]=n,r}function Go(t,e,n){const r=t.slice();return r[75]=e[n],r}function Ko(t){let e,n;return e=new br({props:{cls:zn("gallery",Wo,t[16]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customPaddings:!0,customActions:"gallery",$$slots:{default:[ei]},$$scope:{ctx:t}}}),{c(){He(e.$$.fragment)},l(t){Ge(e.$$.fragment,t)},m(t,r){Ke(e,t,r),n=!0},p(t,n){const r={};65536&n[0]&&(r.cls=zn("gallery",Wo,t[16])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),335953872&n[0]|65536&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Je(e.$$.fragment,t),n=!0)},o(t){Oe(e.$$.fragment,t),n=!1},d(t){Xe(e,t)}}}function Xo(t){let e,n;return e=new Da({props:{layoutParams:t[8],div:t[75].json,templateContext:t[75].templateContext,origJson:t[75].origJson}}),{c(){He(e.$$.fragment)},l(t){Ge(e.$$.fragment,t)},m(t,r){Ke(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.layoutParams=t[8]),67108864&n[0]&&(r.div=t[75].json),67108864&n[0]&&(r.templateContext=t[75].templateContext),67108864&n[0]&&(r.origJson=t[75].origJson),e.$set(r)},i(t){n||(Je(e.$$.fragment,t),n=!0)},o(t){Oe(e.$$.fragment,t),n=!1},d(t){Xe(e,t)}}}function Yo(t){let e,n,r,o,i,a=t[74],l=t[72],s=[];for(let e=0;e<l.length;e+=1)s[e]=Xo(Go(t,l,e));const c=t=>Oe(s[t],1,1,(()=>{s[t]=null})),u=()=>t[60](e,a),d=()=>t[60](null,a);return{c(){e=qt("div");for(let t=0;t<s.length;t+=1)s[t].c();n=Kt(),this.h()},l(t){e=re(t,"DIV",{class:!0,style:!0});var r=te(e);for(let t=0;t<s.length;t+=1)s[t].l(r);n=ae(r),r.forEach(Lt),this.h()},h(){Zt(e,"class",r=Wo.gallery__items),Zt(e,"style",o=bn(t[17]))},m(t,r){Wt(t,e,r);for(let t=0;t<s.length;t+=1)s[t].m(e,null);Rt(e,n),u(),i=!0},p(r,h){if(t=r,67109120&h[0]){let r;for(l=t[72],r=0;r<l.length;r+=1){const o=Go(t,l,r);s[r]?(s[r].p(o,h),Je(s[r],1)):(s[r]=Xo(o),s[r].c(),Je(s[r],1),s[r].m(e,n))}for(Me(),r=l.length;r<s.length;r+=1)c(r);Te()}(!i||131072&h[0]&&o!==(o=bn(t[17])))&&Zt(e,"style",o),a!==t[74]&&(d(),a=t[74],u())},i(t){if(!i){for(let t=0;t<l.length;t+=1)Je(s[t]);i=!0}},o(t){s=s.filter(qo);for(let t=0;t<s.length;t+=1)Oe(s[t]);i=!1},d(t){t&&Lt(e),Ut(s,t),d()}}}function Zo(t){let e,n,r=t[12]&&t[9]&&Qo(t),o=t[13]&&t[9]&&ti(t);return{c(){r&&r.c(),e=Kt(),o&&o.c(),n=Xt()},l(t){r&&r.l(t),e=ae(t),o&&o.l(t),n=Xt()},m(t,i){r&&r.m(t,i),Wt(t,e,i),o&&o.m(t,i),Wt(t,n,i)},p(t,i){t[12]&&t[9]?r?r.p(t,i):(r=Qo(t),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),t[13]&&t[9]?o?o.p(t,i):(o=ti(t),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},d(t){r&&r.d(t),t&&Lt(e),o&&o.d(t),t&&Lt(n)}}}function Qo(t){let e,n,r,o,i=!t[29]&&function(t){let e,n,r,o;return{c(){e=Ht("svg"),n=Ht("path"),this.h()},l(t){e=oe(t,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var r=te(e);n=oe(r,"path",{class:!0,d:!0}),te(n).forEach(Lt),r.forEach(Lt),this.h()},h(){Zt(n,"class",r=Wo["gallery__arrow-icon-path"]),Zt(n,"d","m10 16 8.3 8 1.03-1-4-6-.7-1 .7-1 4-6-1.03-1z"),Zt(e,"class",o=Wo["gallery__arrow-icon"]),Zt(e,"xmlns","http://www.w3.org/2000/svg"),Zt(e,"width","32"),Zt(e,"height","32"),Zt(e,"viewBox","0 0 32 32"),Zt(e,"fill","none")},m(t,r){Wt(t,e,r),Rt(e,n)},p:ft,d(t){t&&Lt(e)}}}();return{c(){e=qt("div"),i&&i.c(),this.h()},l(t){e=re(t,"DIV",{class:!0});var n=te(e);i&&i.l(n),n.forEach(Lt),this.h()},h(){Zt(e,"class",n=t[29]||"".concat(Wo.gallery__arrow," ").concat(Wo.gallery__arrow_left))},m(n,a){Wt(n,e,a),i&&i.m(e,null),r||(o=Yt(e,"click",t[63]),r=!0)},p(t,e){t[29]||i.p(t,e)},d(t){t&&Lt(e),i&&i.d(),r=!1,o()}}}function ti(t){let e,n,r,o,i=!t[30]&&function(t){let e,n,r,o;return{c(){e=Ht("svg"),n=Ht("path"),this.h()},l(t){e=oe(t,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var r=te(e);n=oe(r,"path",{class:!0,d:!0}),te(n).forEach(Lt),r.forEach(Lt),this.h()},h(){Zt(n,"class",r=Wo["gallery__arrow-icon-path"]),Zt(n,"d","M22 16l-8.3 8-1.03-1 4-6 .7-1-.7-1-4-6 1.03-1 8.3 8z"),Zt(e,"class",o=Wo["gallery__arrow-icon"]),Zt(e,"xmlns","http://www.w3.org/2000/svg"),Zt(e,"width","32"),Zt(e,"height","32"),Zt(e,"viewBox","0 0 32 32"),Zt(e,"fill","none")},m(t,r){Wt(t,e,r),Rt(e,n)},p:ft,d(t){t&&Lt(e)}}}();return{c(){e=qt("div"),i&&i.c(),this.h()},l(t){e=re(t,"DIV",{class:!0});var n=te(e);i&&i.l(n),n.forEach(Lt),this.h()},h(){Zt(e,"class",n=t[30]||"".concat(Wo.gallery__arrow," ").concat(Wo.gallery__arrow_right))},m(n,a){Wt(n,e,a),i&&i.m(e,null),r||(o=Yt(e,"click",t[64]),r=!0)},p(t,e){t[30]||i.p(t,e)},d(t){t&&Lt(e),i&&i.d(),r=!1,o()}}}function ei(t){let e,n,r,o,i,a,l,s,c,u,d,h=t[26],p=[];for(let e=0;e<h.length;e+=1)p[e]=Yo(Ho(t,h,e));const f=t=>Oe(p[t],1,1,(()=>{p[t]=null}));let g="horizontal"===t[6]&&Zo(t);return{c(){e=qt("div"),n=qt("div");for(let t=0;t<p.length;t+=1)p[t].c();l=Kt(),g&&g.c(),s=Xt(),this.h()},l(t){e=re(t,"DIV",{class:!0,style:!0});var r=te(e);n=re(r,"DIV",{class:!0,style:!0});var o=te(n);for(let t=0;t<p.length;t+=1)p[t].l(o);o.forEach(Lt),r.forEach(Lt),l=ae(t),g&&g.l(t),s=Xt(),this.h()},h(){Zt(n,"class",r=Wo["gallery__items-grid"]),Zt(n,"style",o=bn(t[18])),Zt(e,"class",i=Wo.gallery__scroller+" "+(t[28]?gn:"")),Zt(e,"style",a=bn(t[7]))},m(r,o){Wt(r,e,o),Rt(e,n);for(let t=0;t<p.length;t+=1)p[t].m(n,null);t[61](n),t[62](e),Wt(r,l,o),g&&g.m(r,o),Wt(r,s,o),c=!0,u||(d=Yt(e,"scroll",(function(){_t(t[9]?t[32]:null)&&(t[9]?t[32]:null).apply(this,arguments)})),u=!0)},p(r,l){if(t=r,67242240&l[0]){let e;for(h=t[26],e=0;e<h.length;e+=1){const r=Ho(t,h,e);p[e]?(p[e].p(r,l),Je(p[e],1)):(p[e]=Yo(r),p[e].c(),Je(p[e],1),p[e].m(n,null))}for(Me(),e=h.length;e<p.length;e+=1)f(e);Te()}(!c||262144&l[0]&&o!==(o=bn(t[18])))&&Zt(n,"style",o),(!c||268435456&l[0]&&i!==(i=Wo.gallery__scroller+" "+(t[28]?gn:"")))&&Zt(e,"class",i),(!c||128&l[0]&&a!==(a=bn(t[7])))&&Zt(e,"style",a),"horizontal"===t[6]?g?g.p(t,l):(g=Zo(t),g.c(),g.m(s.parentNode,s)):g&&(g.d(1),g=null)},i(t){if(!c){for(let t=0;t<h.length;t+=1)Je(p[t]);c=!0}},o(t){p=p.filter(qo);for(let t=0;t<p.length;t+=1)Oe(p[t]);c=!1},d(n){n&&Lt(e),Ut(p,n),t[61](null),t[62](null),n&&Lt(l),g&&g.d(n),n&&Lt(s),u=!1,d()}}}function ni(t){let e,n,r,o,i=!t[5]&&Ko(t);return{c(){i&&i.c(),e=Xt()},l(t){i&&i.l(t),e=Xt()},m(a,l){i&&i.m(a,l),Wt(a,e,l),n=!0,r||(o=Yt(window,"resize",(function(){_t(t[9]?t[33]:null)&&(t[9]?t[33]:null).apply(this,arguments)})),r=!0)},p(n,r){(t=n)[5]?i&&(Me(),Oe(i,1,1,(()=>{i=null})),Te()):i?(i.p(t,r),32&r[0]&&Je(i,1)):(i=Ko(t),i.c(),Je(i,1),i.m(e.parentNode,e))},i(t){n||(Je(i),n=!0)},o(t){Oe(i),n=!1},d(t){i&&i.d(t),t&&Lt(e),r=!1,o()}}}function ri(t,e,n){let r,o,i,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x,k,E,C,A,V,j,P,D=ft,S=ft,I=ft,z=ft,F=ft,N=ft,M=ft,T=ft,J=ft,O=ft;t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>S())),t.$$.on_destroy.push((()=>I())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>O()));let{json:B={}}=e,{templateContext:R}=e,{origJson:W}=e,{layoutParams:L}=e;const U=ye(vn);let q,H,G=[],K=!1,X=!1,Y=null,Z=!1;const Q=U.getCustomization("galleryLeftClass"),tt=U.getCustomization("galleryRightClass");let et=!1;const nt=U.isDesktop;Ct(t,nt,(t=>n(59,j=t)));let rt,ot,it,at,lt=1,st="horizontal",ct="start",ut=8,dt="",ht=[],pt={},gt=!1,mt={},vt=0;function yt(){const t=q.scrollLeft,e=q.scrollWidth,r=q.offsetWidth;n(12,K=t>2),n(13,X=t+r<e-2)}const $t=Uo(yt,50);function _t(t){q.scroll({left:q.scrollLeft+.75*q.offsetWidth*("right"===t?1:-1),behavior:"smooth"})}function bt(){let t=[],e=G[0].children.length;for(let n=0;n<e;++n)for(let e=0;e<lt;++e){const r=G[e].children[n];r&&t.push(r)}return t}function wt(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";const r="horizontal"===st,o=r?"offsetLeft":"offsetTop",i=r?"left":"top";q.scroll({[i]:Math.max(0,t[e][o]-ut/2),behavior:n})}function xt(t){const e=bt(),n=q.getBoundingClientRect(),r=e.findIndex((t=>function(t,e){return"horizontal"===st?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"===st?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!B.id||et||(null==L?void 0:L.fakeElement)||U.registerInstance(B.id,{setCurrentItem(t){const e=bt();if(t<0||t>e.length-1)throw new Error('Item is out of range in "set-current-item" action');wt(e,t)},setPreviousItem(t){const e=xt("prev"),n=bt();let r=e-1;r<0&&(r="ring"===t?n.length-1:e),wt(n,r)},setNextItem(t){const e="horizontal"===st?q.scrollLeft+q.offsetWidth===q.scrollWidth:q.scrollTop+q.offsetHeight===q.scrollHeight,n=bt();if(e&&"ring"===t)return void wt(n,0);const r=xt("next");let o=r+1;o>n.length-1&&(o="ring"===t?0:r),wt(n,o)}}),ge((()=>{n(36,Z=!0),!et&&($t(),vt)&&wt(bt(),vt,"auto")})),me((()=>{n(36,Z=!1),B.id&&!(null==L?void 0:L.fakeElement)&&U.unregisterInstance(B.id)})),t.$$set=t=>{"json"in t&&n(0,B=t.json),"templateContext"in t&&n(1,R=t.templateContext),"origJson"in t&&n(2,W=t.origJson),"layoutParams"in t&&n(3,L=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&n(49,r=B.items),262144&t.$$.dirty[1]&&((null==r?void 0:r.length)&&Array.isArray(r)?n(5,et=!1):(n(5,et=!0),U.logError(yn(new Error('Incorrect or empty "items" prop for div "gallery"'))))),34&t.$$.dirty[0]|262144&t.$$.dirty[1]&&n(48,o=(!et&&r||[]).map((t=>{let e=t,n=R;return({templateContext:n,json:e}=U.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),32&t.$$.dirty[0]|268435488&t.$$.dirty[1]&&n(9,i=j&&Z&&!et),528&t.$$.dirty[0]|16&t.$$.dirty[1]&&(i?"undefined"!=typeof ResizeObserver&&(n(35,Y=new ResizeObserver((()=>{$t()}))),Y.observe(H)):Y&&(Y.disconnect(),n(35,Y=null))),1&t.$$.dirty[0]&&(n(27,a=U.getDerivedFromVars(B.column_count)),J(),J=Et(a,(t=>n(58,V=t)))),134217792&t.$$.dirty[1]&&n(37,lt=xr(V,lt)),131136&t.$$.dirty[1]&&n(26,l=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}(o,lt)),1&t.$$.dirty[0]&&(n(25,s=U.getDerivedFromVars(B.orientation)),T(),T=Et(s,(t=>n(57,A=t)))),64&t.$$.dirty[0]|67108864&t.$$.dirty[1]&&n(6,st=vo(A,st)),1&t.$$.dirty[0]&&(n(24,c=U.getDerivedFromVars(B.cross_content_alignment)),M(),M=Et(c,(t=>n(56,C=t)))),33554560&t.$$.dirty[1]&&n(38,ct=function(t,e){return"start"===t||"center"===t||"end"===t?t:e}(C,ct)),1&t.$$.dirty[0]&&(n(23,u=U.getDerivedFromVars(B.item_spacing)),N(),N=Et(u,(t=>n(55,E=t)))),16777728&t.$$.dirty[1]&&(n(40,ut=Bn(E,ut)),n(39,rt=wn(ut))),1&t.$$.dirty[0]&&(n(22,d=U.getDerivedFromVars(B.cross_spacing)),F(),F=Et(d,(t=>n(54,k=t)))),8391168&t.$$.dirty[1]&&(n(42,it=Bn(k,ut)),n(41,ot=wn(it))),1&t.$$.dirty[0]&&(n(21,h=U.getDerivedFromVars(B.paddings)),z(),z=Et(h,(t=>n(53,x=t)))),4198400&t.$$.dirty[1]&&n(43,dt=On(x,dt)),64&t.$$.dirty[0]&&n(47,p="horizontal"===st?"grid-template-columns":"grid-template-rows"),64&t.$$.dirty[0]|131072&t.$$.dirty[1]){let t=[];o.forEach((e=>{const n="horizontal"===st?"width":"height";t.push(U.getDerivedFromVars(e.json[n]))})),n(14,at=en(t,(t=>t))),I(),I=Et(at,(t=>n(52,w=t)))}if(64&t.$$.dirty[0]|2105408&t.$$.dirty[1]&&(n(44,ht=[]),lt>1?ht.push("auto"):w.forEach((t=>{!t&&"horizontal"===st||"match_parent"===(null==t?void 0:t.type)?ht.push("100%"):ht.push("max-content")}))),1&t.$$.dirty[0]&&(n(20,f=U.getDerivedFromVars(B.scroll_mode)),S(),S=Et(f,(t=>n(51,b=t)))),456&t.$$.dirty[0]|1049280&t.$$.dirty[1]){const t={};let e={};n(45,gt=!1),(null==L?void 0:L.fakeElement)&&(e.fakeElement=!0),"horizontal"===st?e.parentVAlign=ct:e.parentHAlign=ct,"paging"===b&&(n(45,gt=!0),e.scrollSnap="start",t["horizontal"===st?"scroll-padding-left":"scroll-padding-top"]=wn(ut/2)),1===lt&&(e.parentLayoutOrientation=st),n(7,pt=Ln(t,pt)),n(8,mt=Ln(e,mt))}1&t.$$.dirty[0]&&(n(19,g=U.getDerivedFromVars(B.restrict_parent_scroll)),O(),O=Et(g,(t=>n(28,P=t)))),5120&t.$$.dirty[1]&&n(18,m={padding:dt,"grid-gap":ot}),73984&t.$$.dirty[1]&&n(17,v={"grid-gap":rt,[p]:Lo(ht)}),64&t.$$.dirty[0]|16384&t.$$.dirty[1]&&n(16,y={orientation:st,"scroll-snap":gt}),1&t.$$.dirty[0]&&(n(15,$=U.getDerivedFromVars(B.default_item)),D(),D=Et($,(t=>n(50,_=t)))),557056&t.$$.dirty[1]&&n(46,vt=Bn(_,vt))},[B,R,W,L,H,et,st,pt,mt,i,q,G,K,X,at,$,y,v,m,g,f,h,d,u,c,s,l,a,P,Q,tt,nt,yt,$t,_t,Y,Z,lt,ct,rt,ut,ot,it,dt,ht,gt,vt,p,o,r,_,b,w,x,k,E,C,A,V,j,function(t,e){be[t?"unshift":"push"]((()=>{G[e]=t,n(11,G)}))},function(t){be[t?"unshift":"push"]((()=>{H=t,n(4,H)}))},function(t){be[t?"unshift":"push"]((()=>{q=t,n(10,q)}))},()=>_t("left"),()=>_t("right")]}const oi={tabs:"divkit-e0df5",tabs__list:"divkit-ea19b",tabs__item:"divkit-c25c7",tabs__item_selected:"divkit-d560a",tabs__item_actionable:"divkit-dfda0",tabs__panels:"divkit-f5dc0",tabs__swiper:"divkit-eb42c",tabs__swiper_animated:"divkit-b9f18",tabs__swiper_inited:"divkit-fa574",tabs__panel:"divkit-cc9fb",tabs__panel_visible:"divkit-e7306",tabs__separator:"divkit-b85bf"},{Boolean:ii}=We;function ai(t,e,n){const r=t.slice();return r[79]=e[n],r[81]=n,r}function li(t,e,n){const r=t.slice();r[79]=e[n],r[81]=n;const o=r[81]===r[6];return r[82]=o,r}function si(t){let e,n;return e=new br({props:{cls:zn("tabs",oi,t[39]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customActions:"tabs",$$slots:{default:[fi]},$$scope:{ctx:t}}}),{c(){He(e.$$.fragment)},l(t){Ge(e.$$.fragment,t)},m(t,r){Ke(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),1476394986&n[0]|64&n[1]|4194304&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Je(e.$$.fragment,t),n=!0)},o(t){Oe(e.$$.fragment,t),n=!1},d(t){Xe(e,t)}}}function ci(t){let e,n,r=t[79].title+"";return{c(){e=Gt(r),n=Kt()},l(t){e=ie(t,r),n=ae(t)},m(t,r){Wt(t,e,r),Wt(t,n,r)},p(t,n){65536&n[0]&&r!==(r=t[79].title+"")&&le(e,r)},d(t){t&&Lt(e),t&&Lt(n)}}}function ui(t){var e,n,r;let o,i;function a(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t[55](t[81],...n)}return o=new nr({props:{cls:zn("tabs__item",oi,{selected:t[82],actionable:Boolean(t[79].title_click_action)}),actions:!t[79].title_click_action||null!==(e=t[3])&&void 0!==e&&e.fakeElement?[]:[t[79].title_click_action],attrs:{id:"".concat(t[38],"-tab-").concat(t[81]),"aria-controls":"".concat(t[38],"-panel-").concat(t[81]),role:"tab",tabindex:!t[82]||null!==(n=t[3])&&void 0!==n&&n.fakeElement?"-1":t[79].title_click_action?void 0:"0","aria-selected":t[82]?"true":"false"},customAction:null!==(r=t[3])&&void 0!==r&&r.fakeElement?null:a,$$slots:{default:[ci]},$$scope:{ctx:t}}}),{c(){He(o.$$.fragment)},l(t){Ge(o.$$.fragment,t)},m(t,e){Ke(o,t,e),i=!0},p(e,n){var r,i,l;t=e;const s={};65600&n[0]&&(s.cls=zn("tabs__item",oi,{selected:t[82],actionable:Boolean(t[79].title_click_action)})),65544&n[0]&&(s.actions=!t[79].title_click_action||null!==(r=t[3])&&void 0!==r&&r.fakeElement?[]:[t[79].title_click_action]),65608&n[0]&&(s.attrs={id:"".concat(t[38],"-tab-").concat(t[81]),"aria-controls":"".concat(t[38],"-panel-").concat(t[81]),role:"tab",tabindex:!t[82]||null!==(i=t[3])&&void 0!==i&&i.fakeElement?"-1":t[79].title_click_action?void 0:"0","aria-selected":t[82]?"true":"false"}),8&n[0]&&(s.customAction=null!==(l=t[3])&&void 0!==l&&l.fakeElement?null:a),65536&n[0]|4194304&n[2]&&(s.$$scope={dirty:n,ctx:t}),o.$set(s)},i(t){i||(Je(o.$$.fragment,t),i=!0)},o(t){Oe(o.$$.fragment,t),i=!1},d(t){Xe(o,t)}}}function di(t){let e,n,r;return{c(){e=qt("div"),this.h()},l(t){e=re(t,"DIV",{class:!0,style:!0}),te(e).forEach(Lt),this.h()},h(){Zt(e,"class",n=oi.tabs__separator),Zt(e,"style",r=bn(t[30]))},m(t,n){Wt(t,e,n)},p(t,n){1073741824&n[0]&&r!==(r=bn(t[30]))&&Zt(e,"style",r)},d(t){t&&Lt(e)}}}function hi(t){let e,n;return e=new Da({props:{div:t[79].div,templateContext:t[1],layoutParams:t[5]}}),{c(){He(e.$$.fragment)},l(t){Ge(e.$$.fragment,t)},m(t,r){Ke(e,t,r),n=!0},p(t,n){const r={};65536&n[0]&&(r.div=t[79].div),2&n[0]&&(r.templateContext=t[1]),32&n[0]&&(r.layoutParams=t[5]),e.$set(r)},i(t){n||(Je(e.$$.fragment,t),n=!0)},o(t){Oe(e.$$.fragment,t),n=!1},d(t){Xe(e,t)}}}function pi(t){let e,n,r,o,i,a,l=t[25][t[81]]&&hi(t);return{c(){e=qt("div"),l&&l.c(),n=Kt(),this.h()},l(t){e=re(t,"DIV",{class:!0,role:!0,id:!0,"aria-labelledby":!0,style:!0});var r=te(e);l&&l.l(r),n=ae(r),r.forEach(Lt),this.h()},h(){Zt(e,"class",r=zn("tabs__panel",oi,{visible:t[26][t[81]]})),Zt(e,"role","tabpanel"),Zt(e,"id",o=t[38]+"-panel-"+t[81]),Zt(e,"aria-labelledby",i=t[38]+"-tab-"+t[81]),se(e,"left",100*t[81]+"%")},m(t,r){Wt(t,e,r),l&&l.m(e,null),Rt(e,n),a=!0},p(t,o){t[25][t[81]]?l?(l.p(t,o),33554432&o[0]&&Je(l,1)):(l=hi(t),l.c(),Je(l,1),l.m(e,n)):l&&(Me(),Oe(l,1,1,(()=>{l=null})),Te()),(!a||67108864&o[0]&&r!==(r=zn("tabs__panel",oi,{visible:t[26][t[81]]})))&&Zt(e,"class",r)},i(t){a||(Je(l),a=!0)},o(t){Oe(l),a=!1},d(t){t&&Lt(e),l&&l.d()}}}function fi(t){let e,n,r,o,i,a,l,s,c,u,d,h=t[16],p=[];for(let e=0;e<h.length;e+=1)p[e]=ui(li(t,h,e));const f=t=>Oe(p[t],1,1,(()=>{p[t]=null}));let g=t[17]&&di(t),m=t[16],v=[];for(let e=0;e<m.length;e+=1)v[e]=pi(ai(t,m,e));const y=t=>Oe(v[t],1,1,(()=>{v[t]=null}));return{c(){e=qt("div");for(let t=0;t<p.length;t+=1)p[t].c();r=Kt(),g&&g.c(),o=Kt(),i=qt("div"),a=qt("div");for(let t=0;t<v.length;t+=1)v[t].c();this.h()},l(t){e=re(t,"DIV",{class:!0,role:!0});var n=te(e);for(let t=0;t<p.length;t+=1)p[t].l(n);n.forEach(Lt),r=ae(t),g&&g.l(t),o=ae(t),i=re(t,"DIV",{class:!0});var l=te(i);a=re(l,"DIV",{class:!0});var s=te(a);for(let t=0;t<v.length;t+=1)v[t].l(s);s.forEach(Lt),l.forEach(Lt),this.h()},h(){Zt(e,"class",n=oi.tabs__list+" "+(t[37]?gn:"")),Zt(e,"role","tablist"),se(e,"--divkit-tabs-font-size",wn(t[7]),!1),se(e,"--divkit-tabs-paddings",t[8],!1),se(e,"--divkit-tabs-line-height",t[21],!1),se(e,"--divkit-tabs-letter-spacing",t[22],!1),se(e,"--divkit-tabs-active-font-weight",t[10]||"",!1),se(e,"--divkit-tabs-inactive-font-weight",t[11]||"",!1),se(e,"--divkit-tabs-active-text-color",t[12],!1),se(e,"--divkit-tabs-inactive-text-color",t[13],!1),se(e,"--divkit-tabs-active-background-color",t[14],!1),se(e,"--divkit-tabs-inactive-background-color",t[15],!1),se(e,"--divkit-tabs-border-radius",t[9],!1),Zt(a,"class",l=zn("tabs__swiper",oi,{inited:t[23],animated:t[24]})),Zt(i,"class",s=oi.tabs__panels+" "+(t[37]?gn:""))},m(n,l){Wt(n,e,l);for(let t=0;t<p.length;t+=1)p[t].m(e,null);t[56](e),Wt(n,r,l),g&&g.m(n,l),Wt(n,o,l),Wt(n,i,l),Rt(i,a);for(let t=0;t<v.length;t+=1)v[t].m(a,null);t[57](a),t[58](i),c=!0,u||(d=[Yt(e,"keydown",t[41]),Yt(a,"touchstart",(function(){_t(t[28]?t[42]:void 0)&&(t[28]?t[42]:void 0).apply(this,arguments)})),Yt(a,"touchmove",(function(){_t(t[28]?t[43]:void 0)&&(t[28]?t[43]:void 0).apply(this,arguments)})),Yt(a,"touchend",(function(){_t(t[28]?t[44]:void 0)&&(t[28]?t[44]:void 0).apply(this,arguments)})),Yt(a,"touchcancel",(function(){_t(t[28]?t[44]:void 0)&&(t[28]?t[44]:void 0).apply(this,arguments)}))],u=!0)},p(r,u){if(t=r,65608&u[0]|640&u[1]){let n;for(h=t[16],n=0;n<h.length;n+=1){const r=li(t,h,n);p[n]?(p[n].p(r,u),Je(p[n],1)):(p[n]=ui(r),p[n].c(),Je(p[n],1),p[n].m(e,null))}for(Me(),n=h.length;n<p.length;n+=1)f(n);Te()}if((!c||64&u[1]&&n!==(n=oi.tabs__list+" "+(t[37]?gn:"")))&&Zt(e,"class",n),128&u[0]&&se(e,"--divkit-tabs-font-size",wn(t[7]),!1),256&u[0]&&se(e,"--divkit-tabs-paddings",t[8],!1),2097152&u[0]&&se(e,"--divkit-tabs-line-height",t[21],!1),4194304&u[0]&&se(e,"--divkit-tabs-letter-spacing",t[22],!1),1024&u[0]&&se(e,"--divkit-tabs-active-font-weight",t[10]||"",!1),2048&u[0]&&se(e,"--divkit-tabs-inactive-font-weight",t[11]||"",!1),4096&u[0]&&se(e,"--divkit-tabs-active-text-color",t[12],!1),8192&u[0]&&se(e,"--divkit-tabs-inactive-text-color",t[13],!1),16384&u[0]&&se(e,"--divkit-tabs-active-background-color",t[14],!1),32768&u[0]&&se(e,"--divkit-tabs-inactive-background-color",t[15],!1),512&u[0]&&se(e,"--divkit-tabs-border-radius",t[9],!1),t[17]?g?g.p(t,u):(g=di(t),g.c(),g.m(o.parentNode,o)):g&&(g.d(1),g=null),100728866&u[0]|128&u[1]){let e;for(m=t[16],e=0;e<m.length;e+=1){const n=ai(t,m,e);v[e]?(v[e].p(n,u),Je(v[e],1)):(v[e]=pi(n),v[e].c(),Je(v[e],1),v[e].m(a,null))}for(Me(),e=m.length;e<v.length;e+=1)y(e);Te()}(!c||25165824&u[0]&&l!==(l=zn("tabs__swiper",oi,{inited:t[23],animated:t[24]})))&&Zt(a,"class",l),(!c||64&u[1]&&s!==(s=oi.tabs__panels+" "+(t[37]?gn:"")))&&Zt(i,"class",s)},i(t){if(!c){for(let t=0;t<h.length;t+=1)Je(p[t]);for(let t=0;t<m.length;t+=1)Je(v[t]);c=!0}},o(t){p=p.filter(ii);for(let t=0;t<p.length;t+=1)Oe(p[t]);v=v.filter(ii);for(let t=0;t<v.length;t+=1)Oe(v[t]);c=!1},d(n){n&&Lt(e),Ut(p,n),t[56](null),n&&Lt(r),g&&g.d(n),n&&Lt(o),n&&Lt(i),Ut(v,n),t[57](null),t[58](null),u=!1,$t(d)}}}function gi(t){let e,n,r=!t[4]&&si(t);return{c(){r&&r.c(),e=Xt()},l(t){r&&r.l(t),e=Xt()},m(t,o){r&&r.m(t,o),Wt(t,e,o),n=!0},p(t,n){t[4]?r&&(Me(),Oe(r,1,1,(()=>{r=null})),Te()):r?(r.p(t,n),16&n[0]&&Je(r,1)):(r=si(t),r.c(),Je(r,1),r.m(e.parentNode,e))},i(t){n||(Je(r),n=!0)},o(t){Oe(r),n=!1},d(t){r&&r.d(t),t&&Lt(e)}}}function mi(t,e,n){let r,o,i,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x=ft,k=ft,E=ft,A=ft,V=ft,j=ft,P=ft,D=ft;var S;t.$$.on_destroy.push((()=>x())),t.$$.on_destroy.push((()=>k())),t.$$.on_destroy.push((()=>E())),t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>D()));let{json:I={}}=e,{templateContext:z}=e,{origJson:F}=e,{layoutParams:N}=e;const M=ye(vn),T=M.genId("tabs");let J,O,B,R=!1,W={};const L=M.getJsonWithVars(I.selected_tab);let U,q,H=L&&Number(L)||0,G=12,K="",X="",Y="",Z="",Q="",tt="",et="",nt="",rt="",ot="",it=!1,at=!1,lt=H,st=[],ct=[];async function ut(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(lt=H,n(6,H=t),$t(),pt(),e){await Ae();const t=J.querySelector(".".concat(oi.tabs__item_selected));t&&t.focus()}}function dt(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=null==r?void 0:r.length;if(!n)return;let o=H+t;o>=n?o=0:o<0&&(o=n-1),ut(o,e)}function ht(t,e){return H===e||(ut(e),!1)}function pt(){n(24,at=!0),gt(100*-H),mt(),async function(){await Ae();const t=document.getElementById("".concat(T,"-panel-").concat(H));t&&n(19,O.style.height=wn(t.offsetHeight),O)}(),yt(),wt=-H*O.clientWidth}async function gt(t){await Ae(),n(20,B.style.transform="translate3d(".concat(t,"%,0,0)"),B)}function mt(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const e=t?Math.max(0,H-1):Math.min(H,lt),o=t?Math.min(r.length-1,H+1):Math.max(H,lt);n(25,st=st.map(((t,n)=>t||n>=e&&n<=o))),n(26,ct=ct.map(((t,n)=>n>=e&&n<=o)))}let vt=null;function yt(){vt&&clearTimeout(vt),vt=window.setTimeout((()=>{n(26,ct=r.map(((t,e)=>e===H)))}),400)}function $t(){it||(n(23,it=!0),n(19,O.style.height=wn(O.clientHeight),O),n(20,B.style.transform="translate3d(".concat(100*-lt,"%,0,0)"),B))}let _t,bt,wt,xt=null,kt=null,Ct=!1,At=!1;return!I.id||R||(null==N?void 0:N.fakeElement)||M.registerInstance(I.id,{setCurrentItem(t){if(t<0||t>r.length-1)throw new Error('Item is out of range in "set-current-item" action');ut(t)},setPreviousItem(t){let e=H-1;e<0&&(e="ring"===t?r.length-1:H),ut(e)},setNextItem(t){let e=H+1;e>r.length-1&&(e="ring"===t?0:H),ut(e)}}),me((()=>{I.id&&!(null==N?void 0:N.fakeElement)&&M.unregisterInstance(I.id)})),t.$$set=t=>{"json"in t&&n(0,I=t.json),"templateContext"in t&&n(1,z=t.templateContext),"origJson"in t&&n(2,F=t.origJson),"layoutParams"in t&&n(3,N=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&n(16,r=I.items||[]),65536&t.$$.dirty[0]&&((null==r?void 0:r.length)&&Array.isArray(r)?n(4,R=!1):(n(4,R=!0),M.logError(yn(new Error('Incorrect or empty "items" prop for div "tabs"'))))),1&t.$$.dirty[0]&&(n(36,o=M.getDerivedFromVars(I.width)),P(),P=Et(o,(t=>n(54,b=t)))),1&t.$$.dirty[0]&&(n(35,i=M.getDerivedFromVars(I.height)),j(),j=Et(i,(t=>n(53,_=t)))),40&t.$$.dirty[0]|12582912&t.$$.dirty[1]){let t={};(null==N?void 0:N.fakeElement)&&(t.fakeElement=!0),"wrap_content"===(null==b?void 0:b.type)&&(t.parentHorizontalWrapContent=!0),_&&"wrap_content"!==_.type||(t.parentVerticalWrapContent=!0),n(5,W=Ln(t,W))}if(65617&t.$$.dirty[0]&&!R&&(H<0||H>=r.length)&&(M.logError(yn(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:I.selected_tab,length:r.length}})),n(6,H=H<0?0:r.length-1)),1&t.$$.dirty[0]&&(n(34,a=M.getDerivedFromVars(I.tab_title_style)),V(),V=Et(a,(t=>n(52,$=t)))),2097152&t.$$.dirty[1]&&n(48,l=$||{}),128&t.$$.dirty[0]|131072&t.$$.dirty[1]&&n(7,G=xr(l.font_size,G)),384&t.$$.dirty[0]|131072&t.$$.dirty[1]&&(l.font_size||l.paddings)){const t=l.paddings||{top:6,right:8,bottom:6,left:8},e={top:(Number(t.top)||0)/G*10,right:(Number(t.right)||0)/G*10,bottom:(Number(t.bottom)||0)/G*10,left:(Number(t.left)||0)/G*10};n(8,K=On(e,K))}if(128&t.$$.dirty[0]|131072&t.$$.dirty[1]){const t=l.line_height;void 0!==t&&ir(t)&&n(21,X=wn(t/G*10))}if(128&t.$$.dirty[0]|131072&t.$$.dirty[1]){const t=l.letter_spacing;void 0!==t&&Jn(t)&&n(22,Y=wn(t/G*10))}if(640&t.$$.dirty[0]|147456&t.$$.dirty[1]&&(l.corner_radius||l.corners_radius||l.font_size)){const t=null!==n(45,S=l.corner_radius)&&void 0!==S?S:1e3;l.corners_radius?n(9,Z=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]&&!Jn(o[t]))return r;return Gn(t,e,n)}(l.corners_radius,t,G,Z)):Jn(t)&&n(9,Z=wn(t/G*10))}1024&t.$$.dirty[0]|131072&t.$$.dirty[1]&&n(10,U=Er(l.active_font_weight||l.font_weight,U)),2048&t.$$.dirty[0]|131072&t.$$.dirty[1]&&n(11,q=Er(l.inactive_font_weight||l.font_weight,q)),4096&t.$$.dirty[0]|131072&t.$$.dirty[1]&&n(12,Q=C(l.active_text_color,1,Q)),8192&t.$$.dirty[0]|131072&t.$$.dirty[1]&&n(13,tt=C(l.inactive_text_color,1,tt)),16384&t.$$.dirty[0]|131072&t.$$.dirty[1]&&n(14,et=C(l.active_background_color,1,et)),32768&t.$$.dirty[0]|131072&t.$$.dirty[1]&&n(15,nt=C(l.inactive_background_color,1,nt)),1&t.$$.dirty[0]&&(n(33,s=M.getDerivedFromVars(I.has_separator)),A(),A=Et(s,(t=>n(17,y=t)))),1&t.$$.dirty[0]&&(n(32,c=M.getDerivedFromVars(I.separator_color)),E(),E=Et(c,(t=>n(51,v=t)))),1&t.$$.dirty[0]&&(n(31,u=M.getDerivedFromVars(I.separator_paddings)),k(),k=Et(u,(t=>n(50,m=t)))),131072&t.$$.dirty[0]|1671168&t.$$.dirty[1]&&y&&(v&&n(46,rt=C(v,1,rt)),m&&n(47,ot=On(m,ot))),98304&t.$$.dirty[1]&&n(30,d={background:rt,margin:ot}),1&t.$$.dirty[0]&&(n(29,h=M.getDerivedFromVars(I.switch_tabs_by_content_swipe_enabled)),x(),x=Et(h,(t=>n(49,g=t)))),262144&t.$$.dirty[1]&&n(28,p=void 0===g||Boolean(g)),1&t.$$.dirty[0]&&(n(27,f=M.getDerivedFromVars(I.restrict_parent_scroll)),D(),D=Et(f,(t=>n(37,w=t)))),65536&t.$$.dirty[0]&&(R||(n(25,st=r.map(((t,e)=>e===H))),n(26,ct=r.map(((t,e)=>e===H)))))},[I,z,F,N,R,W,H,G,K,Z,U,q,Q,tt,et,nt,r,y,J,O,B,X,Y,it,at,st,ct,f,p,h,d,u,c,s,a,i,o,w,T,{},ht,function(t){if(!(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)&&r){if(37===t.which)dt(-1,!0);else if(39===t.which)dt(1,!0);else if(36===t.which)ut(0,!0);else{if(35!==t.which)return;ut(r.length-1,!0)}t.preventDefault()}},function(t){var e;const o=t.target,i=null===(e=null==o?void 0:o.closest)||void 0===e?void 0:e.call(o,".".concat(gn));r.length<2||t.touches.length>1||i&&i!==O||(Ct=!1,At=!1,xt=Yn(t),kt=null,_t=Date.now(),bt=wt||-H*O.clientWidth,n(24,at=!1),vt&&clearTimeout(vt))},function(t){const e=Yn(t);if(!xt||kt&&kt.x===e.x&&kt.y===e.y)return;kt=e;const n=O.clientWidth;if(Ct){wt=e.x-xt.x+bt;const t=n*r.length;if(wt>0)wt=wt*n/(wt+3*n);else if(-wt+n>t){let e=-wt+n-t;e=e*n/(e+3*n),wt=n-t-e}gt(100*wt/n)}else Math.abs(e.y-xt.y)>10?At=!0:!At&&Math.abs(e.x-xt.x)>8&&($t(),Ct=!0,xt=e,gt(100*-H),mt(!0));Ct&&t.cancelable&&t.preventDefault()},function(){At=!1,xt=null;let t=H;if(!Ct)return;Ct=!1;const e=Math.min(512,O.clientWidth);Math.abs(bt-wt)>e/4*Math.min(1,(Date.now()-_t)/750)&&(t+=bt>wt?1:-1),t>=r.length?t=r.length-1:t<0&&(t=0),t===H?(wt=-t*e,gt(100*-t),yt()):ut(t)},S,rt,ot,l,g,m,v,$,_,b,(t,e)=>ht(0,t),function(t){be[t?"unshift":"push"]((()=>{J=t,n(18,J)}))},function(t){be[t?"unshift":"push"]((()=>{B=t,n(20,B)}))},function(t){be[t?"unshift":"push"]((()=>{O=t,n(19,O)}))}]}const vi="divkit-eb860",yi="divkit-e08c6";function $i(t){return t<.5?4*t*t*t:.5*Math.pow(2*t-2,3)+1}function _i(t){return t*t*t}function bi(t){const e=t-1;return e*e*e+1}function wi(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 xi=wi([.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]),ki=wi([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]),Ei={linear:gt,ease:xi,ease_in:_i,ease_out:bi,ease_in_out:$i,spring:ki};function Ci(t){return Math.max(...t.map((t=>(Number(t.duration)||200)+(Number(t.start_delay)||0))))}function Ai(t,e){let{transitions:n,elementBbox:r,rootBbox:o,direction:i,maxDuration:a,alpha:l}=e;const s=null!=l?l:1;return{duration:a,css:t=>{const e=t*a,l=n.map((t=>{const n=Number(t.start_delay)||0,a=Number(t.duration)||200,l=Math.max(0,Math.min(1,(e-n)/a)),c="in"===i?1-l:l,u=(Ei[t.interpolator||"ease_in_out"]||$i)(c);if("fade"===t.type)return u>=1?{active:!1,opacity:0}:{active:u>0&&u<1,opacity:(1-u)*s+u*(t.alpha||0)};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||0),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=l.map((t=>t.opacity)).filter((t=>void 0!==t)).reduce(((t,e)=>t*e),1),u=l.map((t=>t.translate)).filter((t=>void 0!==t)).join(" "),d=l.map((t=>t.scale)).filter((t=>void 0!==t)).join(" "),h=l.filter((t=>t.active)).map((t=>t.scale)).filter((t=>void 0!==t)),p=[u,h.length?h[h.length-1]:d].filter(Boolean).join(" ");return"transform:".concat(p||"none",";opacity:").concat(c)}}}function Vi(t,e,n){return t*(1-n)+e*n}const ji={linear:gt,ease:xi,ease_in:_i,ease_out:bi,ease_in_out:$i,spring:ki};function Pi(t,e){var n,r;let{rootBbox:o,beforeBbox:i,afterBbox:a,transition:l}=e;return{delay:null!==(n=l.start_delay)&&void 0!==n?n:0,duration:null!==(r=l.duration)&&void 0!==r?r:200,easing:l.interpolator&&l.interpolator in ji?ji[l.interpolator]:$i,css:t=>["top:".concat(Vi(i.top,a.top,t)-o.top,"px"),"left:".concat(Vi(i.left,a.left,t)-o.left,"px"),"width:".concat(Vi(i.width,a.width,t),"px"),"height:".concat(Vi(i.height,a.height,t),"px")].join(";")}}function Di(t){const e=[];return"set"===t.type?(t.items||[]).forEach((t=>{e.push(...Di(t))})):e.push(t),e}const{Map:Si}=We;function Ii(t,e,n){const r=t.slice();return r[27]=e[n],r}function zi(t){let e,n;return e=new br({props:{cls:"divkit-b8efc",json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Oi]},$$scope:{ctx:t}}}),{c(){He(e.$$.fragment)},l(t){Ge(e.$$.fragment,t)},m(t,r){Ke(e,t,r),n=!0},p(t,n){const r={};1&n&&(r.json=t[0]),4&n&&(r.origJson=t[2]),2&n&&(r.templateContext=t[1]),8&n&&(r.layoutParams=t[3]),1073742034&n&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Je(e.$$.fragment,t),n=!0)},o(t){Oe(e.$$.fragment,t),n=!1},d(t){Xe(e,t)}}}function Fi(t){let e,n,r=t[7],o=Ni(t);return{c(){o.c(),e=Xt()},l(t){o.l(t),e=Xt()},m(t,r){o.m(t,r),Wt(t,e,r),n=!0},p(t,n){128&n&&xt(r,r=t[7])?(Me(),Oe(o,1,1,ft),Te(),o=Ni(t),o.c(),Je(o,1),o.m(e.parentNode,e)):o.p(t,n)},i(t){n||(Je(o),n=!0)},o(t){Oe(o),n=!1},d(t){t&&Lt(e),o.d(t)}}}function Ni(t){let e,n;return e=new Da({props:{div:t[7].div,templateContext:t[1]}}),{c(){He(e.$$.fragment)},l(t){Ge(e.$$.fragment,t)},m(t,r){Ke(e,t,r),n=!0},p(t,n){const r={};128&n&&(r.div=t[7].div),2&n&&(r.templateContext=t[1]),e.$set(r)},i(t){n||(Je(e.$$.fragment,t),n=!0)},o(t){Oe(e.$$.fragment,t),n=!1},d(t){Xe(e,t)}}}function Mi(t){let e,n,r,o,i,a,l,s,c,u;function d(){return t[11](t[27])}return r=new Da({props:{div:t[27].json,templateContext:t[27].templateContext,layoutParams:{fakeElement:!0}}}),{c(){e=qt("div"),n=qt("div"),He(r.$$.fragment),i=Kt(),this.h()},l(t){e=re(t,"DIV",{class:!0});var o=te(e);n=re(o,"DIV",{class:!0});var a=te(n);Ge(r.$$.fragment,a),a.forEach(Lt),i=ae(o),o.forEach(Lt),this.h()},h(){Zt(n,"class",o=yi),Zt(e,"class",a=vi)},m(t,o){Wt(t,e,o),Rt(e,n),Ke(r,n,null),Rt(e,i),s=!0,c||(u=Yt(e,"introend",d),c=!0)},p(e,n){t=e;const o={};64&n&&(o.div=t[27].json),64&n&&(o.templateContext=t[27].templateContext),r.$set(o)},i(n){s||(Je(r.$$.fragment,n),l||Ve((()=>{l=Re(e,Pi,t[27]),l.start()})),s=!0)},o(t){Oe(r.$$.fragment,t),s=!1},d(t){t&&Lt(e),Xe(r),c=!1,u()}}}function Ti(t){let e,n,r,o,i,a,l,s,c,u;function d(){return t[10](t[27])}return r=new Da({props:{div:t[27].json,templateContext:t[27].templateContext,layoutParams:{fakeElement:!0}}}),{c(){e=qt("div"),n=qt("div"),He(r.$$.fragment),i=Kt(),this.h()},l(t){e=re(t,"DIV",{class:!0,style:!0});var o=te(e);n=re(o,"DIV",{class:!0});var a=te(n);Ge(r.$$.fragment,a),a.forEach(Lt),i=ae(o),o.forEach(Lt),this.h()},h(){Zt(n,"class",o=yi),Zt(e,"class",a=vi),se(e,"left",t[27].offsetLeft+"px"),se(e,"top",t[27].offsetTop+"px"),se(e,"width",t[27].width+"px"),se(e,"height",t[27].height+"px")},m(t,o){Wt(t,e,o),Rt(e,n),Ke(r,n,null),Rt(e,i),s=!0,c||(u=Yt(e,"introend",d),c=!0)},p(n,o){t=n;const i={};64&o&&(i.div=t[27].json),64&o&&(i.templateContext=t[27].templateContext),r.$set(i),(!s||64&o)&&se(e,"left",t[27].offsetLeft+"px"),(!s||64&o)&&se(e,"top",t[27].offsetTop+"px"),(!s||64&o)&&se(e,"width",t[27].width+"px"),(!s||64&o)&&se(e,"height",t[27].height+"px")},i(n){s||(Je(r.$$.fragment,n),l||Ve((()=>{l=Re(e,Ai,t[27]),l.start()})),s=!0)},o(t){Oe(r.$$.fragment,t),s=!1},d(t){t&&Lt(e),Xe(r),c=!1,u()}}}function Ji(t,e){let n,r,o,i,a;const l=[Ti,Mi],s=[];function c(t,e){return"direction"in t[27]?0:1}return r=c(e),o=s[r]=l[r](e),{key:t,first:null,c(){n=Xt(),o.c(),i=Xt(),this.h()},l(t){n=Xt(),o.l(t),i=Xt(),this.h()},h(){this.first=n},m(t,e){Wt(t,n,e),s[r].m(t,e),Wt(t,i,e),a=!0},p(t,n){let a=r;r=c(e=t),r===a?s[r].p(e,n):(Me(),Oe(s[a],1,1,(()=>{s[a]=null})),Te(),o=s[r],o?o.p(e,n):(o=s[r]=l[r](e),o.c()),Je(o,1),o.m(i.parentNode,i))},i(t){a||(Je(o),a=!0)},o(t){Oe(o),a=!1},d(t){t&&Lt(n),s[r].d(t),t&&Lt(i)}}}function Oi(t){var e;let n,r,o,i,a=[],l=new Si,s=(null===(e=t[7])||void 0===e?void 0:e.div)&&Fi(t),c=t[6];const u=t=>t[27];for(let e=0;e<c.length;e+=1){let n=Ii(t,c,e),r=u(n);l.set(r,a[e]=Ji(r,n))}return{c(){s&&s.c(),n=Kt(),r=qt("div");for(let t=0;t<a.length;t+=1)a[t].c();this.h()},l(t){s&&s.l(t),n=ae(t),r=re(t,"DIV",{class:!0,"aria-hidden":!0});var e=te(r);for(let t=0;t<a.length;t+=1)a[t].l(e);e.forEach(Lt),this.h()},h(){Zt(r,"class",o="divkit-adaae"),Zt(r,"aria-hidden","true")},m(e,o){s&&s.m(e,o),Wt(e,n,o),Wt(e,r,o);for(let t=0;t<a.length;t+=1)a[t].m(r,null);t[12](r),i=!0},p(t,e){var o;null!==(o=t[7])&&void 0!==o&&o.div?s?(s.p(t,e),128&e&&Je(s,1)):(s=Fi(t),s.c(),Je(s,1),s.m(n.parentNode,n)):s&&(Me(),Oe(s,1,1,(()=>{s=null})),Te()),320&e&&(c=t[6],Me(),a=function(t,e,n,r,o,i,a,l,s,c,u,d){let h=t.length,p=i.length,f=h;const g={};for(;f--;)g[t[f].key]=f;const m=[],v=new Map,y=new Map;for(f=p;f--;){const t=d(o,i,f),r=n(t);let l=a.get(r);l?l.p(t,e):(l=c(r,t),l.c()),v.set(r,m[f]=l),r in g&&y.set(r,Math.abs(f-g[r]))}const $=new Set,_=new Set;function b(t){Je(t,1),t.m(l,u),a.set(t.key,t),u=t.first,p--}for(;h&&p;){const e=m[p-1],n=t[h-1],r=e.key,o=n.key;e===n?(u=e.first,h--,p--):v.has(o)?!a.has(r)||$.has(r)?b(e):_.has(o)?h--:y.get(r)>y.get(o)?(_.add(r),b(e)):($.add(o),h--):(s(n,a),h--)}for(;h--;){const e=t[h];v.has(e.key)||s(e,a)}for(;p;)b(m[p-1]);return m}(a,e,u,0,t,c,l,r,Le,Ji,null,Ii),Te())},i(t){if(!i){Je(s);for(let t=0;t<c.length;t+=1)Je(a[t]);i=!0}},o(t){Oe(s);for(let t=0;t<a.length;t+=1)Oe(a[t]);i=!1},d(e){s&&s.d(e),e&&Lt(n),e&&Lt(r);for(let t=0;t<a.length;t+=1)a[t].d();t[12](null)}}}function Bi(t){let e,n,r=!t[5]&&zi(t);return{c(){r&&r.c(),e=Xt()},l(t){r&&r.l(t),e=Xt()},m(t,o){r&&r.m(t,o),Wt(t,e,o),n=!0},p(t,n){let[o]=n;t[5]?r&&(Me(),Oe(r,1,1,(()=>{r=null})),Te()):r?(r.p(t,o),32&o&&Je(r,1)):(r=zi(t),r.c(),Je(r,1),r.m(e.parentNode,e))},i(t){n||(Je(r),n=!0)},o(t){Oe(r),n=!1},d(t){r&&r.d(t),t&&Lt(e)}}}function Ri(t){return"change_bounds"===t.type?t:"set"===t.type?Ri(t.items[0]):null}function Wi(t,e,n){let r,{json:o={}}=e,{templateContext:i}=e,{origJson:a}=e,{layoutParams:l}=e;const s=ye(vn),c=ye(Nn);let u,d=new Map,h=new Set,p=!1,f=null,g=[],m=[],v=[],y=[];function $(t,e,n){let{json:r,templateContext:o,transitions:i,node:a}=e;r=s.getJsonWithVars(r),i=s.getJsonWithVars(i);const l=Di(i),c=a.getBoundingClientRect();return{json:Object.assign(Object.assign({},r),{margins:void 0,alpha:(u=l,u.some((t=>"fade"===t.type))?void 0:r.alpha)}),templateContext:o,elementBbox:c,rootBbox:t,transitions:l,alpha:r.alpha,width:c.width,height:c.height,offsetTop:c.top-t.top,offsetLeft:c.left-t.left,direction:n,resolvePromise:e.resolvePromise,node:e.node};var u}const _=o.div_id||o.id;let b;_?(null==l?void 0:l.fakeElement)||(c.registerInstance(_,{async setState(t){if(b===t)return;s.setRunning("stateChange",!0);const e=new Set(h);g.forEach((t=>{t.resolvePromise&&t.resolvePromise()})),n(6,g=[]);let o=[];if(u){const t=u.getBoundingClientRect();o=v.map((e=>$(t,e,"out")))}y.forEach((t=>{d.set(t.id,t.node.getBoundingClientRect())})),m=[],v=[],y=[];const i=r.find((e=>e.state_id===t))||null;if(i?(b=t,n(7,w=i)):s.logError(yn(new Error("Cannot find state with id"),{additional:{stateId:t}})),await Ae(),!u)return;const a=u.getBoundingClientRect();let l=m.filter((t=>{var n;return!(!t.json.id||e.has(t.json.id))||(null===(n=t.resolvePromise)||void 0===n||n.call(t),!1)})).map((t=>$(a,t,"in")));o=o.filter((t=>{var e;return!(!t.json.id||h.has(t.json.id))||(null===(e=t.resolvePromise)||void 0===e||e.call(t),!1)}));const c=o.concat(l),p=c.reduce(((t,e)=>Math.max(t,Ci(e.transitions))),0),f=y.filter((t=>d.has(t.id))).map((t=>({json:Object.assign(Object.assign({},t.json),{margins:void 0,width:{type:"match_parent"},height:{type:"match_parent"}}),templateContext:t.templateContext,rootBbox:a,beforeBbox:d.get(t.id),afterBbox:t.node.getBoundingClientRect(),node:t.node,transition:Ri(t.transitions),resolvePromise:t.resolvePromise})));n(6,g=[...c.map((t=>Object.assign(Object.assign({},t),{maxDuration:p}))),...f]),d.clear(),s.setRunning("stateChange",!1)},getChild(t){if(f&&f.has(t))return f.get(t);s.logError(yn(new Error("Missing state block with id"),{additional:{id:t}}))}}),ve(Nn,{registerInstance(t,e){f||(f=new Map),f.has(t)?s.logError(yn(new Error("Duplicate state with id"),{additional:{id:t}})):f.set(t,e)},unregisterInstance(t){null==f||f.delete(t)},runVisibilityTransition(t,e,r,o,i){if(!u)return Promise.resolve();const a=$(u.getBoundingClientRect(),{json:t,templateContext:e,transitions:r,node:o},i),l=Ci(a.transitions),s=Object.assign(Object.assign({},a),{maxDuration:l});return n(6,g=[...g.filter((t=>t.node!==a.node)),s]),new Promise((t=>{s.resolvePromise=t}))},registerChildWithTransitionIn(t,e,n,r){const o={json:t,templateContext:e,transitions:n,node:r};return m.push(o),new Promise((t=>{o.resolvePromise=t}))},registerChildWithTransitionOut(t,e,n,r){const o={json:t,templateContext:e,transitions:n,node:r};return v.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,templateContext:e,transitions:n,node:r};return y.push(i),new Promise((t=>{i.resolvePromise=t}))},hasTransitionChange:t=>!!t&&d.has(t),registerChild(t){h.add(t)},unregisterChild(t){h.delete(t)}})):(p=!0,s.logError(yn(new Error('Missing "id" prop for div "state"'))));let w=null;const x=s.getJsonWithVars(o.default_state_id);let k=!1;function E(t){n(6,g=g.filter((e=>e!==t))),t.resolvePromise&&t.resolvePromise()}return me((()=>{_&&!(null==l?void 0:l.fakeElement)&&c.unregisterInstance(_)})),t.$$set=t=>{"json"in t&&n(0,o=t.json),"templateContext"in t&&n(1,i=t.templateContext),"origJson"in t&&n(2,a=t.origJson),"layoutParams"in t&&n(3,l=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty&&o&&(h=new Set),1&t.$$.dirty&&n(9,r=o.states||[]),512&t.$$.dirty&&((null==r?void 0:r.length)?n(5,p=!1):(n(5,p=!0),s.logError(yn(new Error('Empty "states" prop for div "state"'))))),512&t.$$.dirty&&function(t){k||(k=!0,t.length&&(x?(b=x,n(7,w=t.find((t=>t.state_id===b))||null),w||s.logError(yn(new Error("Cannot find state for default_state_id"),{additional:{selectedId:b}}))):(n(7,w=t[0]),b=w.state_id)))}(r)},[o,i,a,l,u,p,g,w,E,r,t=>E(t),t=>E(t),function(t){be[t?"unshift":"push"]((()=>{u=t,n(4,u)}))}]}const Li={pager:"divkit-c5feb",pager__items:"divkit-f6987",pager__item:"divkit-feca7",pager_orientation_horizontal:"divkit-b0a1c",pager_orientation_vertical:"divkit-f772f"},{Boolean:Ui}=We;function qi(t,e,n){const r=t.slice();return r[47]=e[n],r}function Hi(t){let e,n;return e=new br({props:{cls:zn("pager",Li,t[8]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customPaddings:!0,$$slots:{default:[Ki]},$$scope:{ctx:t}}}),{c(){He(e.$$.fragment)},l(t){Ge(e.$$.fragment,t)},m(t,r){Ke(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.cls=zn("pager",Li,t[8])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),33336&n[0]|524288&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Je(e.$$.fragment,t),n=!0)},o(t){Oe(e.$$.fragment,t),n=!1},d(t){Xe(e,t)}}}function Gi(t){var e;let n,r,o,i,a;return r=new Da({props:{div:t[47].json,templateContext:t[47].templateContext,origJson:t[47].origJson,layoutParams:null!==(e=t[3])&&void 0!==e&&e.fakeElement?{fakeElement:!0}:void 0}}),{c(){n=qt("div"),He(r.$$.fragment),o=Kt(),this.h()},l(t){n=re(t,"DIV",{class:!0});var e=te(n);Ge(r.$$.fragment,e),o=ae(e),e.forEach(Lt),this.h()},h(){Zt(n,"class",i=Li.pager__item)},m(t,e){Wt(t,n,e),Ke(r,n,null),Rt(n,o),a=!0},p(t,e){var n;const o={};16&e[0]&&(o.div=t[47].json),16&e[0]&&(o.templateContext=t[47].templateContext),16&e[0]&&(o.origJson=t[47].origJson),8&e[0]&&(o.layoutParams=null!==(n=t[3])&&void 0!==n&&n.fakeElement?{fakeElement:!0}:void 0),r.$set(o)},i(t){a||(Je(r.$$.fragment,t),a=!0)},o(t){Oe(r.$$.fragment,t),a=!1},d(t){t&&Lt(n),Xe(r)}}}function Ki(t){let e,n,r,o,i,a,l=t[4],s=[];for(let e=0;e<l.length;e+=1)s[e]=Gi(qi(t,l,e));const c=t=>Oe(s[t],1,1,(()=>{s[t]=null}));return{c(){e=qt("div");for(let t=0;t<s.length;t+=1)s[t].c();this.h()},l(t){e=re(t,"DIV",{class:!0,style:!0});var n=te(e);for(let t=0;t<s.length;t+=1)s[t].l(n);n.forEach(Lt),this.h()},h(){Zt(e,"class",n=Li.pager__items+" "+(t[15]?gn:"")),Zt(e,"style",r=bn(t[9]))},m(n,r){Wt(n,e,r);for(let t=0;t<s.length;t+=1)s[t].m(e,null);t[36](e),o=!0,i||(a=Yt(e,"scroll",t[16]),i=!0)},p(t,i){if(24&i[0]){let n;for(l=t[4],n=0;n<l.length;n+=1){const r=qi(t,l,n);s[n]?(s[n].p(r,i),Je(s[n],1)):(s[n]=Gi(r),s[n].c(),Je(s[n],1),s[n].m(e,null))}for(Me(),n=l.length;n<s.length;n+=1)c(n);Te()}(!o||32768&i[0]&&n!==(n=Li.pager__items+" "+(t[15]?gn:"")))&&Zt(e,"class",n),(!o||512&i[0]&&r!==(r=bn(t[9])))&&Zt(e,"style",r)},i(t){if(!o){for(let t=0;t<l.length;t+=1)Je(s[t]);o=!0}},o(t){s=s.filter(Ui);for(let t=0;t<s.length;t+=1)Oe(s[t]);o=!1},d(n){n&&Lt(e),Ut(s,n),t[36](null),i=!1,a()}}}function Xi(t){let e,n,r=!t[7]&&Hi(t);return{c(){r&&r.c(),e=Xt()},l(t){r&&r.l(t),e=Xt()},m(t,o){r&&r.m(t,o),Wt(t,e,o),n=!0},p(t,n){t[7]?r&&(Me(),Oe(r,1,1,(()=>{r=null})),Te()):r?(r.p(t,n),128&n[0]&&Je(r,1)):(r=Hi(t),r.c(),Je(r,1),r.m(e.parentNode,e))},i(t){n||(Je(r),n=!0)},o(t){Oe(r),n=!1},d(t){r&&r.d(t),t&&Lt(e)}}}function Yi(t,e,n){let r,o,i,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_=ft,b=ft,w=ft,x=ft,k=ft,E=ft;var C,A,V,j,P,D,S;t.$$.on_destroy.push((()=>_())),t.$$.on_destroy.push((()=>b())),t.$$.on_destroy.push((()=>w())),t.$$.on_destroy.push((()=>x())),t.$$.on_destroy.push((()=>k())),t.$$.on_destroy.push((()=>E()));let{json:I={}}=e,{templateContext:z}=e,{origJson:F}=e,{layoutParams:N}=e;const M=ye(vn),T=M.genId("pager");let J,O=!1,B=0,R=0,W=!1,L="horizontal",U="",q="",H="";const G=Uo((function(){const t=function(){const t=Array.from(J.children),e=J.getBoundingClientRect(),n=t.findIndex((t=>{return n=e,r=t.getBoundingClientRect(),"horizontal"===L?r.left>=n.left&&r.right<=n.right:r.top>=n.top&&r.bottom<=n.bottom;var n,r}));return-1!==n?n:B}();t!==B&&n(25,B=t)}),50);function K(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"smooth";const r="horizontal"===L,o=J.children[t],i=r?"offsetLeft":"offsetTop",a=r?"left":"top";J.scroll({[a]:o[i],behavior:e}),n(25,B=t)}return I.id&&!(null==N?void 0:N.fakeElement)&&M.registerInstance(I.id,{setCurrentItem(t){if(t<0||t>r.length-1)throw new Error('Item is out of range in "set-current-item" action');K(t)},setPreviousItem(t){let e=B-1;e<0&&(e="ring"===t?r.length-1:B),K(e)},setNextItem(t){let e=B+1;e>r.length-1&&(e="ring"===t?0:B),K(e)}}),ge((()=>{if(Boolean(document.getElementById("".concat(T,"-tab-0")))){const t=[...J.children];for(const[e,n]of t.entries())n.setAttribute("role","tabpanel"),n.setAttribute("id","".concat(T,"-panel-").concat(e)),n.setAttribute("aria-labelledby","".concat(T,"-tab-").concat(e))}})),me((()=>{I.id&&!(null==N?void 0:N.fakeElement)&&M.unregisterInstance(I.id)})),t.$$set=t=>{"json"in t&&n(0,I=t.json),"templateContext"in t&&n(1,z=t.templateContext),"origJson"in t&&n(2,F=t.origJson),"layoutParams"in t&&n(3,N=t.layoutParams)},t.$$.update=()=>{if(131073&t.$$.dirty[0]&&((null===n(17,C=I.items)||void 0===C?void 0:C.length)&&Array.isArray(I.items)?n(24,O=!1):(n(24,O=!0),M.logError(yn(new Error('Incorrect or empty "items" prop for div "pager"'))))),16777219&t.$$.dirty[0]&&n(4,r=(!O&&I.items||[]).map((t=>{let e=t,n=z;return({templateContext:n,json:e}=M.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),1&t.$$.dirty[0]&&(n(14,o=M.getDerivedFromVars(I.layout_mode)),b(),b=Et(o,(t=>n(32,g=t)))),2&t.$$.dirty[1]&&(g?"percentage"!==g.type&&"fixed"!==g.type?(n(26,W=!0),M.logError(yn(new Error('Incorrect value of "layout_mode.type" for div "pager"')))):n(26,W=!1):(n(26,W=!0),M.logError(yn(new Error('Empty "layout_mode" prop for div "pager"'))))),1&t.$$.dirty[0]&&(n(13,i=M.getDerivedFromVars(I.orientation)),k(),k=Et(i,(t=>n(35,y=t)))),134217728&t.$$.dirty[0]|16&t.$$.dirty[1]&&n(27,L=vo(y,L)),1&t.$$.dirty[0]&&(n(12,a=M.getDerivedFromVars(I.item_spacing)),x(),x=Et(a,(t=>n(34,v=t)))),8&t.$$.dirty[1]){const t=null==v?void 0:v.value;t&&Jn(t)&&n(28,U=wn(t||0))}if(1&t.$$.dirty[0]&&(n(11,l=M.getDerivedFromVars(I.paddings)),w(),w=Et(l,(t=>n(33,m=t)))),536870912&t.$$.dirty[0]|4&t.$$.dirty[1]&&n(29,q=On(m,q)),1&t.$$.dirty[0]&&(n(10,s=M.getDerivedFromVars(I.restrict_parent_scroll)),E(),E=Et(s,(t=>n(15,$=t)))),134217728&t.$$.dirty[0]&&n(31,c="horizontal"===L?"grid-auto-columns":"grid-auto-rows"),419168257&t.$$.dirty[0]|2&t.$$.dirty[1])if("fixed"===(null==g?void 0:g.type)){const t=xn("horizontal"===L?((null===n(18,A=I.paddings)||void 0===A?void 0:A.left)||0)+((null===n(19,V=I.paddings)||void 0===V?void 0:V.right)||0):((null===n(20,j=I.paddings)||void 0===j?void 0:j.top)||0)+((null===n(21,P=I.paddings)||void 0===P?void 0:P.bottom)||0)),e=null===n(22,D=g.neighbour_page_width)||void 0===D?void 0:D.value;n(30,H=e?"calc(100% + ".concat(t," - 2 * ").concat(xn(e)," - 2 * ").concat(U,")"):"100%")}else if("percentage"===(null==g?void 0:g.type)){const t=null===n(23,S=g.page_width)||void 0===S?void 0:S.value;n(30,H="".concat(Number(t),"%"))}1879048192&t.$$.dirty[0]|1&t.$$.dirty[1]&&n(9,u={"grid-gap":U,padding:q,[c]:H}),134217728&t.$$.dirty[0]&&n(8,d={orientation:L}),83886080&t.$$.dirty[0]&&n(7,h=O||W),33554448&t.$$.dirty[0]&&function(t,e){const n=I.id;if(n){const i=new Map(f);r=p,f=i.set(n,{instId:T,size:t,currentItem:e,scrollToPagerItem:K}),o=f,r.set(o)}var r,o}(r.length,B),33554432&t.$$.dirty[0]&&function(t){var e;if(t===R)return;R=t;const n=M.getJsonWithVars(null===(e=r[t].json)||void 0===e?void 0:e.selected_actions);(null==n?void 0:n.length)&&M.execAnyActions(n)}(B)},n(6,p=M.getStore("pagers")),_(),_=Et(p,(t=>n(38,f=t))),[I,z,F,N,r,J,p,h,d,u,s,l,a,i,o,$,G,C,A,V,j,P,D,S,O,B,W,L,U,q,H,c,g,m,v,y,function(t){be[t?"unshift":"push"]((()=>{J=t,n(5,J)}))}]}const Zi={indicator:"divkit-d8e3f",indicator__scroller:"divkit-b5db0",indicator__items:"divkit-d5d94",indicator__item:"divkit-f6629",indicator__item_active:"divkit-b39cd"};function Qi(t,e,n){const r=t.slice();r[36]=e[n],r[39]=n;const o=r[39]===r[13].currentItem;return r[37]=o,r}function ta(t){let e,n=Array(t[13].size),r=[];for(let e=0;e<n.length;e+=1)r[e]=ea(Qi(t,n,e));return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=Xt()},l(t){for(let e=0;e<r.length;e+=1)r[e].l(t);e=Xt()},m(t,n){for(let e=0;e<r.length;e+=1)r[e].m(t,n);Wt(t,e,n)},p(t,o){if(3153920&o[0]){let i;for(n=Array(t[13].size),i=0;i<n.length;i+=1){const a=Qi(t,n,i);r[i]?r[i].p(a,o):(r[i]=ea(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){Ut(r,t),t&&Lt(e)}}}function ea(t){let e,n,r,o,i,a,l,s;function c(){return t[30](t[39])}return{c(){e=qt("div"),this.h()},l(t){e=re(t,"DIV",{class:!0,role:!0,id:!0,"aria-controls":!0,"aria-selected":!0,tabindex:!0}),te(e).forEach(Lt),this.h()},h(){Zt(e,"class",n=zn("indicator__item",Zi,{active:t[37]})+" "+dn),Zt(e,"role","tab"),Zt(e,"id",r=t[13].instId+"-tab-"+t[39]),Zt(e,"aria-controls",o=t[13].instId+"-panel-"+t[39]),Zt(e,"aria-selected",i=t[37]?"true":"false"),Zt(e,"tabindex",a=t[37]?0:-1)},m(n,r){Wt(n,e,r),l||(s=[Yt(e,"click",c),Yt(e,"keydown",t[21])],l=!0)},p(l,s){t=l,8192&s[0]&&n!==(n=zn("indicator__item",Zi,{active:t[37]})+" "+dn)&&Zt(e,"class",n),8192&s[0]&&r!==(r=t[13].instId+"-tab-"+t[39])&&Zt(e,"id",r),8192&s[0]&&o!==(o=t[13].instId+"-panel-"+t[39])&&Zt(e,"aria-controls",o),8192&s[0]&&i!==(i=t[37]?"true":"false")&&Zt(e,"aria-selected",i),8192&s[0]&&a!==(a=t[37]?0:-1)&&Zt(e,"tabindex",a)},d(t){t&&Lt(e),l=!1,$t(s)}}}function na(t){let e,n,r,o,i="0 ".concat(wn((t[10]-1)*t[4]/2)),a="0 ".concat(wn((t[9]-t[4])/2)),l=t[13]&&ta(t);return{c(){e=qt("div"),n=qt("div"),l&&l.c(),this.h()},l(t){e=re(t,"DIV",{class:!0});var r=te(e);n=re(r,"DIV",{class:!0,role:!0});var o=te(n);l&&l.l(o),o.forEach(Lt),r.forEach(Lt),this.h()},h(){Zt(n,"class",r=Zi.indicator__items),Zt(n,"role","tablist"),se(n,"margin",i,!1),se(n,"--divkit-indicator-width",wn(t[4]),!1),se(n,"--divkit-indicator-height",wn(t[5]),!1),se(n,"--divkit-indicator-border-radius",wn(t[6]),!1),se(n,"--divkit-indicator-active-color",t[7],!1),se(n,"--divkit-indicator-inactive-color",t[8],!1),se(n,"--divkit-indicator-active-scale",t[10],!1),se(n,"--divkit-indicator-margin",a,!1),Zt(e,"class",o=Zi.indicator__scroller)},m(r,o){Wt(r,e,o),Rt(e,n),l&&l.m(n,null),t[31](n),t[32](e)},p(t,e){t[13]?l?l.p(t,e):(l=ta(t),l.c(),l.m(n,null)):l&&(l.d(1),l=null),1040&e[0]&&i!==(i="0 ".concat(wn((t[10]-1)*t[4]/2)))&&se(n,"margin",i,!1),16&e[0]&&se(n,"--divkit-indicator-width",wn(t[4]),!1),32&e[0]&&se(n,"--divkit-indicator-height",wn(t[5]),!1),64&e[0]&&se(n,"--divkit-indicator-border-radius",wn(t[6]),!1),128&e[0]&&se(n,"--divkit-indicator-active-color",t[7],!1),256&e[0]&&se(n,"--divkit-indicator-inactive-color",t[8],!1),1024&e[0]&&se(n,"--divkit-indicator-active-scale",t[10],!1),528&e[0]&&a!==(a="0 ".concat(wn((t[9]-t[4])/2)))&&se(n,"--divkit-indicator-margin",a,!1)},d(n){n&&Lt(e),l&&l.d(),t[31](null),t[32](null)}}}function ra(t){let e,n;return e=new br({props:{cls:zn("indicator",Zi,{}),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[na]},$$scope:{ctx:t}}}),{c(){He(e.$$.fragment)},l(t){Ge(e.$$.fragment,t)},m(t,r){Ke(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),16368&n[0]|512&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Je(e.$$.fragment,t),n=!0)},o(t){Oe(e.$$.fragment,t),n=!1},d(t){Xe(e,t)}}}function oa(t,e,n){let r,o,i,a,l,s,c,u,d,h,p,f,g=ft,m=ft,v=ft,y=ft,$=ft,_=ft;var b;t.$$.on_destroy.push((()=>g())),t.$$.on_destroy.push((()=>m())),t.$$.on_destroy.push((()=>v())),t.$$.on_destroy.push((()=>y())),t.$$.on_destroy.push((()=>$())),t.$$.on_destroy.push((()=>_()));let{json:w={}}=e,{templateContext:x}=e,{origJson:k}=e,{layoutParams:E}=e;const A=ye(vn);let V,j,P,D=5,S=10,I=10,z=5,F="#ffdc60",N=C("#33919cb5"),M=15,T=1.3;function J(t){t!==P.currentItem&&P.scrollToPagerItem(t)}async function O(t){P.scrollToPagerItem(t),await Ae();const e=j.querySelector(".".concat(Zi.indicator__item_active));e&&e.focus()}return t.$$set=t=>{"json"in t&&n(0,w=t.json),"templateContext"in t&&n(1,x=t.templateContext),"origJson"in t&&n(2,k=t.origJson),"layoutParams"in t&&n(3,E=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty[0]&&(n(19,r=A.getDerivedFromVars(w.shape)),_(),_=Et(r,(t=>n(29,f=t)))),549453936&t.$$.dirty[0]&&f&&("rounded_rectangle"===f.type?(f.item_width&&n(4,S=Bn(f.item_width.value,S)),f.item_height&&n(5,I=Bn(f.item_height.value,I)),f.corner_radius&&n(6,z=Bn(f.corner_radius.value,z))):"circle"===f.type&&(n(23,D=Bn(null===n(22,b=f.radius)||void 0===b?void 0:b.value,D)),n(4,S=n(5,I=n(6,z=2*D))))),1&t.$$.dirty[0]&&(n(18,o=A.getDerivedFromVars(w.active_item_color)),$(),$=Et(o,(t=>n(28,p=t)))),268435584&t.$$.dirty[0]&&n(7,F=C(p,1,F)),1&t.$$.dirty[0]&&(n(17,i=A.getDerivedFromVars(w.inactive_item_color)),y(),y=Et(i,(t=>n(27,h=t)))),134217984&t.$$.dirty[0]&&n(8,N=C(h,1,N)),1&t.$$.dirty[0]&&(n(16,a=A.getDerivedFromVars(w.space_between_centers)),v(),v=Et(a,(t=>n(26,d=t)))),67109376&t.$$.dirty[0]&&d&&n(9,M=Bn(d.value,M)),1&t.$$.dirty[0]&&(n(15,l=A.getDerivedFromVars(w.active_item_size)),m(),m=Et(l,(t=>n(25,u=t)))),33555456&t.$$.dirty[0]&&n(10,T=xr(u,T)),16777216&t.$$.dirty[0]&&async function(t){if(w.pager_id&&t.has(w.pager_id)){n(13,P=t.get(w.pager_id)),await Ae();const e=j.children[P.currentItem].offsetLeft;V.scroll({left:e-V.clientWidth/2,behavior:"smooth"})}}(c)},n(14,s=A.getStore("pagers")),g(),g=Et(s,(t=>n(24,c=t))),[w,x,k,E,S,I,z,F,N,M,T,V,j,P,s,l,a,i,o,r,J,function(t){if(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)return;const{size:e,currentItem:n}=P;if(37===t.which)O(n-1<0?n:n-1);else if(39===t.which)O(n+1>=e?n:n+1);else if(36===t.which)O(0);else{if(35!==t.which)return;O(e-1)}t.preventDefault()},b,D,c,u,d,h,p,f,t=>J(t),function(t){be[t?"unshift":"push"]((()=>{j=t,n(12,j)}))},function(t){be[t?"unshift":"push"]((()=>{V=t,n(11,V)}))}]}const ia={slider:"divkit-ef4f7",slider__input:"divkit-d1d65",slider__input_secondary:"divkit-c7980",slider__thumb:"divkit-f3453",slider__thumb_secondary:"divkit-e1984","slider__tracks-wrapper":"divkit-f7338","slider__tracks-inner":"divkit-ac903",slider__track:"divkit-e956c","slider__active-track":"divkit-ec5bf","slider__thumb-text":"divkit-c4af5","slider__thumb-text_secondary":"divkit-d8821",slider__tick:"divkit-bd9bf",slider__tick_active:"divkit-d8ce2",slider__tick_inactive:"divkit-e71e7"};function aa(t,e){if(!t||!t.font_size)return e;const n=t.offset,r=t.text_color&&C(t.text_color)||"#000",o=kr(t.font_weight);if(ir(t.font_size)&&"transparent"!==r){var i,a;const e={fontSize:wn(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 la(t,e,n){return Math.max(e,Math.min(n,t))}function sa(t,e,n){const r=t.slice();return r[78]=e[n],r}function ca(t,e,n){const r=t.slice();return r[78]=e[n],r}function ua(t){let e,n;return e=new br({props:{cls:zn("slider",ia,t[21]),style:t[22],customDescription:!0,customActions:"slider",json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[ga]},$$scope:{ctx:t}}}),{c(){He(e.$$.fragment)},l(t){Ge(e.$$.fragment,t)},m(t,r){Ke(e,t,r),n=!0},p(t,n){const r={};2097152&n[0]&&(r.cls=zn("slider",ia,t[21])),4194304&n[0]&&(r.style=t[22]),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),27246576&n[0]|2097152&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Je(e.$$.fragment,t),n=!0)},o(t){Oe(e.$$.fragment,t),n=!1},d(t){Xe(e,t)}}}function da(t){let e,n;return{c(){e=qt("div"),this.h()},l(t){e=re(t,"DIV",{class:!0}),te(e).forEach(Lt),this.h()},h(){Zt(e,"class",n=ia.slider__tick+" "+ia.slider__tick_active),se(e,"--divkit-slider-tick",t[78],!1)},m(t,n){Wt(t,e,n)},p(t,n){131072&n[0]&&se(e,"--divkit-slider-tick",t[78],!1)},d(t){t&&Lt(e)}}}function ha(t){let e,n;return{c(){e=qt("div"),this.h()},l(t){e=re(t,"DIV",{class:!0}),te(e).forEach(Lt),this.h()},h(){Zt(e,"class",n=ia.slider__tick+" "+ia.slider__tick_inactive),se(e,"--divkit-slider-tick",t[78],!1)},m(t,n){Wt(t,e,n)},p(t,n){262144&n[0]&&se(e,"--divkit-slider-tick",t[78],!1)},d(t){t&&Lt(e)}}}function pa(t){let e,n,r,o,i;return{c(){e=qt("div"),n=qt("div"),r=Gt(t[6]),this.h()},l(o){e=re(o,"DIV",{class:!0});var i=te(e);n=re(i,"DIV",{class:!0});var a=te(n);r=ie(a,t[6]),a.forEach(Lt),i.forEach(Lt),this.h()},h(){var r,a,l;Zt(n,"class",o=ia["slider__thumb-text-inner"]),se(n,"font-size",(null===(r=t[12])||void 0===r?void 0:r.fontSize)||"1em",!1),se(n,"font-weight",(null===(a=t[12])||void 0===a?void 0:a.fontWeight)||"",!1),se(n,"color",(null===(l=t[12])||void 0===l?void 0:l.textColor)||"#000",!1),Zt(e,"class",i=ia["slider__thumb-text"])},m(t,o){Wt(t,e,o),Rt(e,n),Rt(n,r)},p(t,e){var o,i,a;64&e[0]&&le(r,t[6]),4096&e[0]&&se(n,"font-size",(null===(o=t[12])||void 0===o?void 0:o.fontSize)||"1em",!1),4096&e[0]&&se(n,"font-weight",(null===(i=t[12])||void 0===i?void 0:i.fontWeight)||"",!1),4096&e[0]&&se(n,"color",(null===(a=t[12])||void 0===a?void 0:a.textColor)||"#000",!1)},d(t){t&&Lt(e)}}}function fa(t){let e,n,r,o,i;return{c(){e=qt("div"),n=qt("div"),r=Gt(t[7]),this.h()},l(o){e=re(o,"DIV",{class:!0});var i=te(e);n=re(i,"DIV",{class:!0});var a=te(n);r=ie(a,t[7]),a.forEach(Lt),i.forEach(Lt),this.h()},h(){var r,a,l;Zt(n,"class",o=ia["slider__thumb-text-inner"]),se(n,"font-size",(null===(r=t[13])||void 0===r?void 0:r.fontSize)||"1em",!1),se(n,"font-weight",(null===(a=t[13])||void 0===a?void 0:a.fontWeight)||"",!1),se(n,"color",(null===(l=t[13])||void 0===l?void 0:l.textColor)||"#000",!1),Zt(e,"class",i=ia["slider__thumb-text"]+" "+ia["slider__thumb-text_secondary"])},m(t,o){Wt(t,e,o),Rt(e,n),Rt(n,r)},p(t,e){var o,i,a;128&e[0]&&le(r,t[7]),8192&e[0]&&se(n,"font-size",(null===(o=t[13])||void 0===o?void 0:o.fontSize)||"1em",!1),8192&e[0]&&se(n,"font-weight",(null===(i=t[13])||void 0===i?void 0:i.fontWeight)||"",!1),8192&e[0]&&se(n,"color",(null===(a=t[13])||void 0===a?void 0:a.textColor)||"#000",!1)},d(t){t&&Lt(e)}}}function ga(t){let e,n,r,o,i,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x=t[17],k=[];for(let e=0;e<x.length;e+=1)k[e]=da(ca(t,x,e));let E=t[18],C=[];for(let e=0;e<E.length;e+=1)C[e]=ha(sa(t,E,e));let A=t[12]&&pa(t),V=t[37]&&function(t){let e,n,r=t[13]&&fa(t);return{c(){e=qt("div"),r&&r.c(),this.h()},l(t){e=re(t,"DIV",{class:!0});var n=te(e);r&&r.l(n),n.forEach(Lt),this.h()},h(){Zt(e,"class",n=ia.slider__thumb+" "+ia.slider__thumb_secondary),se(e,"border-radius",wn(t[9].borderRadius),!1),se(e,"background",t[9].background,!1),se(e,"box-shadow",t[9].boxShadow||"",!1)},m(t,n){Wt(t,e,n),r&&r.m(e,null)},p(t,n){t[13]?r?r.p(t,n):(r=fa(t),r.c(),r.m(e,null)):r&&(r.d(1),r=null),512&n[0]&&se(e,"border-radius",wn(t[9].borderRadius),!1),512&n[0]&&se(e,"background",t[9].background,!1),512&n[0]&&se(e,"box-shadow",t[9].boxShadow||"",!1)},d(t){t&&Lt(e),r&&r.d()}}}(t),j=t[37]&&function(t){let e,n,r,o,i;return{c(){e=qt("input"),this.h()},l(t){e=re(t,"INPUT",{type:!0,class:!0,min:!0,max:!0,step:!0,"aria-label":!0}),this.h()},h(){Zt(e,"type","range"),Zt(e,"class",n=t[16]?ia.slider__input:"".concat(ia.slider__input," ").concat(ia.slider__input_secondary)),Zt(e,"min",t[4]),Zt(e,"max",t[5]),Zt(e,"step","1"),e.value=r=t[16]?t[6]:t[7],Zt(e,"aria-label",t[20])},m(n,r){Wt(n,e,r),o||(i=[Yt(e,"input",t[68]),Yt(e,"mousedown",t[37]?t[40]:null),Yt(e,"touchstart",t[37]?t[40]:null)],o=!0)},p(t,o){65536&o[0]&&n!==(n=t[16]?ia.slider__input:"".concat(ia.slider__input," ").concat(ia.slider__input_secondary))&&Zt(e,"class",n),16&o[0]&&Zt(e,"min",t[4]),32&o[0]&&Zt(e,"max",t[5]),65728&o[0]&&r!==(r=t[16]?t[6]:t[7])&&(e.value=r),1048576&o[0]&&Zt(e,"aria-label",t[20])},d(t){t&&Lt(e),o=!1,$t(i)}}}(t);return{c(){e=qt("div"),n=qt("div"),r=qt("div"),i=Kt(),a=qt("div"),s=Kt();for(let t=0;t<k.length;t+=1)k[t].c();c=Kt();for(let t=0;t<C.length;t+=1)C[t].c();u=Kt(),d=qt("div"),A&&A.c(),p=Kt(),V&&V.c(),f=Kt(),g=qt("input"),y=Kt(),j&&j.c(),this.h()},l(t){e=re(t,"DIV",{class:!0});var o=te(e);n=re(o,"DIV",{class:!0});var l=te(n);r=re(l,"DIV",{class:!0}),te(r).forEach(Lt),i=ae(l),a=re(l,"DIV",{class:!0}),te(a).forEach(Lt),s=ae(l);for(let t=0;t<k.length;t+=1)k[t].l(l);c=ae(l);for(let t=0;t<C.length;t+=1)C[t].l(l);u=ae(l),d=re(l,"DIV",{class:!0});var h=te(d);A&&A.l(h),h.forEach(Lt),p=ae(l),V&&V.l(l),f=ae(l),g=re(l,"INPUT",{type:!0,class:!0,min:!0,max:!0,step:!0,"aria-label":!0}),y=ae(l),j&&j.l(l),l.forEach(Lt),o.forEach(Lt),this.h()},h(){Zt(r,"class",o=ia.slider__track),se(r,"height",wn(t[10].height),!1),se(r,"border-radius",wn(t[10].borderRadius),!1),se(r,"background",t[10].background,!1),se(r,"box-shadow",t[10].boxShadow||"",!1),Zt(a,"class",l=ia["slider__active-track"]),se(a,"left",(100*t[23]).toFixed(2)+"%",!1),se(a,"width",(100*t[24]).toFixed(2)+"%",!1),se(a,"height",wn(t[11].height),!1),se(a,"border-radius",wn(t[11].borderRadius),!1),se(a,"background",t[11].background,!1),se(a,"box-shadow",t[11].boxShadow||"",!1),Zt(d,"class",h=ia.slider__thumb),se(d,"border-radius",wn(t[8].borderRadius),!1),se(d,"background",t[8].background,!1),se(d,"box-shadow",t[8].boxShadow||"",!1),Zt(g,"type","range"),Zt(g,"class",m=t[16]?"".concat(ia.slider__input," ").concat(ia.slider__input_secondary):ia.slider__input),Zt(g,"min",t[4]),Zt(g,"max",t[5]),Zt(g,"step","1"),g.value=v=t[16]?t[7]:t[6],Zt(g,"aria-label",t[19]),Zt(n,"class",$=ia["slider__tracks-inner"]),Zt(e,"class",_=ia["slider__tracks-wrapper"])},m(o,l){Wt(o,e,l),Rt(e,n),Rt(n,r),Rt(n,i),Rt(n,a),Rt(n,s);for(let t=0;t<k.length;t+=1)k[t].m(n,null);Rt(n,c);for(let t=0;t<C.length;t+=1)C[t].m(n,null);Rt(n,u),Rt(n,d),A&&A.m(d,null),Rt(n,p),V&&V.m(n,null),Rt(n,f),Rt(n,g),Rt(n,y),j&&j.m(n,null),t[69](n),b||(w=Yt(g,"input",t[67]),b=!0)},p(t,e){if(1024&e[0]&&se(r,"height",wn(t[10].height),!1),1024&e[0]&&se(r,"border-radius",wn(t[10].borderRadius),!1),1024&e[0]&&se(r,"background",t[10].background,!1),1024&e[0]&&se(r,"box-shadow",t[10].boxShadow||"",!1),8388608&e[0]&&se(a,"left",(100*t[23]).toFixed(2)+"%",!1),16777216&e[0]&&se(a,"width",(100*t[24]).toFixed(2)+"%",!1),2048&e[0]&&se(a,"height",wn(t[11].height),!1),2048&e[0]&&se(a,"border-radius",wn(t[11].borderRadius),!1),2048&e[0]&&se(a,"background",t[11].background,!1),2048&e[0]&&se(a,"box-shadow",t[11].boxShadow||"",!1),131072&e[0]){let r;for(x=t[17],r=0;r<x.length;r+=1){const o=ca(t,x,r);k[r]?k[r].p(o,e):(k[r]=da(o),k[r].c(),k[r].m(n,c))}for(;r<k.length;r+=1)k[r].d(1);k.length=x.length}if(262144&e[0]){let r;for(E=t[18],r=0;r<E.length;r+=1){const o=sa(t,E,r);C[r]?C[r].p(o,e):(C[r]=ha(o),C[r].c(),C[r].m(n,u))}for(;r<C.length;r+=1)C[r].d(1);C.length=E.length}t[12]?A?A.p(t,e):(A=pa(t),A.c(),A.m(d,null)):A&&(A.d(1),A=null),256&e[0]&&se(d,"border-radius",wn(t[8].borderRadius),!1),256&e[0]&&se(d,"background",t[8].background,!1),256&e[0]&&se(d,"box-shadow",t[8].boxShadow||"",!1),t[37]&&V.p(t,e),65536&e[0]&&m!==(m=t[16]?"".concat(ia.slider__input," ").concat(ia.slider__input_secondary):ia.slider__input)&&Zt(g,"class",m),16&e[0]&&Zt(g,"min",t[4]),32&e[0]&&Zt(g,"max",t[5]),65728&e[0]&&v!==(v=t[16]?t[7]:t[6])&&(g.value=v),524288&e[0]&&Zt(g,"aria-label",t[19]),t[37]&&j.p(t,e)},d(n){n&&Lt(e),Ut(k,n),Ut(C,n),A&&A.d(),V&&V.d(),j&&j.d(),t[69](null),b=!1,w()}}}function ma(t){let e,n,r,o,i=!t[14]&&ua(t);return{c(){i&&i.c(),e=Xt()},l(t){i&&i.l(t),e=Xt()},m(a,l){i&&i.m(a,l),Wt(a,e,l),n=!0,r||(o=Yt(window,"resize",t[42]),r=!0)},p(t,n){t[14]?i&&(Me(),Oe(i,1,1,(()=>{i=null})),Te()):i?(i.p(t,n),16384&n[0]&&Je(i,1)):(i=ua(t),i.c(),Je(i,1),i.m(e.parentNode,e))},i(t){n||(Je(i),n=!0)},o(t){Oe(i),n=!1},d(t){i&&i.d(t),t&&Lt(e),r=!1,o()}}}function va(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 ya(t,e,n){let r,o,i,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x,k,E,C,A,V,j,P,D,S,I,z,F,N,M=ft,T=ft,J=ft,O=ft,B=ft,R=ft,W=ft,L=ft,U=ft,q=ft,H=ft,G=ft;var K,X,Y,Z;t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>G()));let{json:Q={}}=e,{templateContext:tt}=e,{origJson:et}=e,{layoutParams:nt}=e;const rt={width:10,height:10,borderRadius:5,background:"#000"},ot=["rounded_rectangle","circle"],it=["rounded_rectangle"],at=ye(vn),lt=ye(Xn);let st,ct=!1,ut=0,dt=100;const ht=at.getJsonWithVars(Q.thumb_value_variable),pt=at.getJsonWithVars(Q.thumb_secondary_value_variable);let gt=ht&&at.getVariable(ht,"integer")||on("temp","integer",0);Ct(t,gt,(t=>n(64,z=t)));let mt=pt&&at.getVariable(pt,"integer")||on("temp","integer",0);Ct(t,mt,(t=>n(63,I=t)));let vt,yt,$t,_t=la(z||0,ut,dt),bt=la(I||0,ut,dt),wt=rt,xt=wt,kt=rt,At=rt,Vt=null,jt=null,Pt=$t,Dt="",St="",It=!1;function zt(t,e){const r=Number(t.target.value);ct===("first"===e)?(n(7,bt=r),mt.setValue(r)):(n(6,_t=r),gt.setValue(r))}let Ft=!1;function Nt(){if(!st)return;const t=dt-ut,e=(null==Vt?void 0:Vt.width)||0,n=(null==jt?void 0:jt.width)||0;Math.max(e,n)*t>=(null==st?void 0:st.clientWidth)?Ft||(at.logError(yn(new Error("Slider ticks overlap each other"),{level:"warn"})),Ft=!0):Ft=!1}const Mt=Uo(Nt,50);return ge((()=>{Nt()})),t.$$set=t=>{"json"in t&&n(0,Q=t.json),"templateContext"in t&&n(1,tt=t.templateContext),"origJson"in t&&n(2,et=t.origJson),"layoutParams"in t&&n(3,nt=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&(n(36,r=at.getDerivedFromVars(Q.min_value)),G(),G=Et(r,(t=>n(66,N=t)))),1&t.$$.dirty[0]&&(n(35,o=at.getDerivedFromVars(Q.max_value)),H(),H=Et(o,(t=>n(65,F=t)))),48&t.$$.dirty[0]|24&t.$$.dirty[2]&&(n(4,ut=qn(N,ut)),n(5,dt=qn(F,dt)),Nt()),112&t.$$.dirty[0]|4&t.$$.dirty[2]){const t=la(z||0,ut,dt);t!==_t&&n(6,_t=t)}if(176&t.$$.dirty[0]|2&t.$$.dirty[2]){const t=la(I||0,ut,dt);t!==bt&&n(7,bt=t)}if(1&t.$$.dirty[0]&&(n(34,i=at.getDerivedFromVars(Q.thumb_style)),q(),q=Et(i,(t=>n(62,S=t)))),256&t.$$.dirty[0]|1&t.$$.dirty[2]&&n(8,wt=Hr(S,ot,wt)),1&t.$$.dirty[0]&&(n(33,a=at.getDerivedFromVars(Q.thumb_secondary_style)),U(),U=Et(a,(t=>n(61,D=t)))),256&t.$$.dirty[0]|1073741824&t.$$.dirty[1]&&n(9,xt=Hr(D,ot,wt)),1&t.$$.dirty[0]&&(n(32,l=at.getDerivedFromVars(Q.track_inactive_style)),L(),L=Et(l,(t=>n(60,P=t)))),1024&t.$$.dirty[0]|536870912&t.$$.dirty[1]&&n(10,kt=Hr(P,it,kt)),1&t.$$.dirty[0]&&(n(31,s=at.getDerivedFromVars(Q.track_active_style)),W(),W=Et(s,(t=>n(59,j=t)))),2048&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&n(11,At=Hr(j,it,At)),1&t.$$.dirty[0]&&(n(30,c=at.getDerivedFromVars(Q.tick_mark_active_style)),R(),R=Et(c,(t=>n(58,V=t)))),134217728&t.$$.dirty[1]){let t=Hr(V,ot,rt);t!==rt&&n(47,Vt=t)}if(240&t.$$.dirty[0]|65536&t.$$.dirty[1]&&(Vt?(n(17,vt=pt?va(Math.min(_t,bt),Math.max(_t,bt)+1,ut,dt,!0):va(ut,_t,ut,dt,!0)),Nt()):n(17,vt=[])),1&t.$$.dirty[0]&&(n(29,u=at.getDerivedFromVars(Q.tick_mark_inactive_style)),B(),B=Et(u,(t=>n(57,A=t)))),67108864&t.$$.dirty[1]){let t=Hr(A,ot,rt);t!==rt&&n(48,jt=t)}if(240&t.$$.dirty[0]|131072&t.$$.dirty[1]&&(jt?(n(18,yt=pt?va(Math.min(_t,bt),Math.max(_t,bt)+1,ut,dt,!1):va(_t+1,dt+1,ut,dt,!0)),Nt()):n(18,yt=[])),1&t.$$.dirty[0]&&(n(28,d=at.getDerivedFromVars(Q.thumb_text_style)),O(),O=Et(d,(t=>n(56,C=t)))),4096&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&n(12,$t=aa(C,$t)),1&t.$$.dirty[0]&&(n(27,h=at.getDerivedFromVars(Q.thumb_secondary_text_style)),J(),J=Et(h,(t=>n(55,E=t)))),4096&t.$$.dirty[0]|16777216&t.$$.dirty[1]&&n(13,Pt=aa(E,$t)),1&t.$$.dirty[0]&&(n(26,p=at.getDerivedFromVars(Q.accessibility)),T(),T=Et(p,(t=>n(54,k=t)))),8388608&t.$$.dirty[1]&&((null==k?void 0:k.description)?n(19,Dt=k.description):at.logError(yn(new Error('Missing accessibility "description" for slider'),{level:"warn"}))),1&t.$$.dirty[0]&&(n(25,f=at.getDerivedFromVars(Q.secondary_value_accessibility)),M(),M=Et(f,(t=>n(53,x=t)))),4194304&t.$$.dirty[1]&&((null==x?void 0:x.description)?n(20,St=x.description):pt&&at.logError(yn(new Error('Missing second accessibility "description" for slider'),{level:"warn"}))),19712&t.$$.dirty[0]){let t=!1;lt.hasAction()?(at.logError(yn(new Error('Cannot show "slider" inside component with action'))),t=!0):wt===rt?(at.logError(yn(new Error('Missing "thumb_style" in slider'))),t=!0):At===rt?(at.logError(yn(new Error('Missing "track_active_style" in slider'))),t=!0):kt===rt&&(at.logError(yn(new Error('Missing "track_inactive_style" in slider'))),t=!0),t!==It&&n(14,It=t)}768&t.$$.dirty[0]&&n(52,g=wn(Math.max(...[wt.width,xt.width,0].filter(Jn)))),768&t.$$.dirty[0]&&n(51,m=wn(Math.max(...[wt.height,xt.height,0].filter(Jn)))),112&t.$$.dirty[0]&&n(50,v=(_t-ut)/(dt-ut)),176&t.$$.dirty[0]&&n(49,y=pt?(bt-ut)/(dt-ut):void 0),786432&t.$$.dirty[1]&&n(24,$=void 0!==y?Math.abs(y-v):v),786432&t.$$.dirty[1]&&n(23,_=void 0!==y?Math.min(y,v):0),13056&t.$$.dirty[0]|4190208&t.$$.dirty[1]&&n(22,b={"--divkit-slider-thumb-width":wn(wt.width),"--divkit-slider-thumb-height":wn(wt.height),"--divkit-slider-thumb-secondary-width":wn(xt.width),"--divkit-slider-thumb-secondary-height":wn(xt.height),"--divkit-slider-text-offset-x":(null===n(43,K=null==$t?void 0:$t.offset)||void 0===K?void 0:K.x)?xn($t.offset.x):void 0,"--divkit-slider-text-offset-y":(null===n(44,X=null==$t?void 0:$t.offset)||void 0===X?void 0:X.y)?xn($t.offset.y):void 0,"--divkit-slider-text-secondary-offset-x":(null===n(45,Y=null==Pt?void 0:Pt.offset)||void 0===Y?void 0:Y.x)?xn(Pt.offset.x):void 0,"--divkit-slider-text-secondary-offset-y":(null===n(46,Z=null==Pt?void 0:Pt.offset)||void 0===Z?void 0:Z.y)?xn(Pt.offset.y):void 0,"--divkit-slider-tick-active-width":Vt?wn(Vt.width):void 0,"--divkit-slider-tick-active-height":Vt?wn(Vt.height):void 0,"--divkit-slider-tick-active-border-radius":Vt?wn(Vt.borderRadius):void 0,"--divkit-slider-tick-active-background":(null==Vt?void 0:Vt.background)||void 0,"--divkit-slider-tick-active-box-shadow":(null==Vt?void 0:Vt.boxShadow)||void 0,"--divkit-slider-tick-inactive-width":jt?wn(jt.width):void 0,"--divkit-slider-tick-inactive-height":jt?wn(jt.height):void 0,"--divkit-slider-tick-inactive-border-radius":jt?wn(jt.borderRadius):void 0,"--divkit-slider-tick-inactive-background":(null==jt?void 0:jt.background)||void 0,"--divkit-slider-tick-inactive-box-shadow":(null==jt?void 0:jt.boxShadow)||void 0,"--divkit-slider-max-thumb-width":g,"--divkit-slider-max-thumb-height":m,"--divkit-slider-track-part":v,"--divkit-slider-track-secondary-part":y})},n(21,w={}),[Q,tt,et,nt,ut,dt,_t,bt,wt,xt,kt,At,$t,Pt,It,st,ct,vt,yt,Dt,St,w,b,_,$,f,p,h,d,u,c,s,l,a,i,o,r,pt,gt,mt,function(t){var e,r;const o="pageX"in t?t.pageX:null===(r=null===(e=t.changedTouches)||void 0===e?void 0:e[0])||void 0===r?void 0:r.pageX;if(void 0===o)return;const i=st.getBoundingClientRect(),a=(o-i.left)/i.width,l=(dt-ut)*a,s=Math.round(la(l,ut,dt));n(16,ct=s<(_t+bt)/2==_t<bt)},zt,Mt,K,X,Y,Z,Vt,jt,y,v,m,g,x,k,E,C,A,V,j,P,D,S,I,z,F,N,t=>zt(t,"first"),t=>zt(t,"second"),function(t){be[t?"unshift":"push"]((()=>{st=t,n(15,st)}))}]}const $a={input:"divkit-c3a4c",input__wrapper:"divkit-ef7eb",input__holder:"divkit-bb3da",input_multiline:"divkit-e48a3",input__input:"divkit-f11e0","input_highlight-color":"divkit-cc00f","input_vertical-overflow":"divkit-b7075"};function _a(t){let e,n;return e=new br({props:{cls:zn("input",$a,t[12]),style:t[11],customDescription:!0,customActions:"input",json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[ka]},$$scope:{ctx:t}}}),{c(){He(e.$$.fragment)},l(t){Ge(e.$$.fragment,t)},m(t,r){Ke(e,t,r),n=!0},p(t,n){const r={};4096&n[0]&&(r.cls=zn("input",$a,t[12])),2048&n[0]&&(r.style=t[11]),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),100208&n[0]|2&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Je(e.$$.fragment,t),n=!0)},o(t){Oe(e.$$.fragment,t),n=!1},d(t){Xe(e,t)}}}function ba(t){let e;return{c(){e=Gt("​")},l(t){e=ie(t,"​")},m(t,n){Wt(t,e,n)},d(t){t&&Lt(e)}}}function wa(t){let e,n,r,o;return{c(){e=qt("input"),this.h()},l(t){e=re(t,"INPUT",{type:!0,class:!0,autocomplete:!0,autocapitalize:!0,"aria-label":!0,placeholder:!0}),this.h()},h(){Zt(e,"type",t[9]),Zt(e,"class",n=$a.input__input),Zt(e,"autocomplete","off"),Zt(e,"autocapitalize","off"),Zt(e,"aria-label",t[10]),Zt(e,"placeholder",t[15]),e.value=t[8]},m(n,i){Wt(n,e,i),t[57](e),r||(o=[Yt(e,"input",t[29]),Yt(e,"mousedown",(function(){_t(t[16]?t[30]:void 0)&&(t[16]?t[30]:void 0).apply(this,arguments)})),Yt(e,"click",(function(){_t(t[16]?t[31]:void 0)&&(t[16]?t[31]:void 0).apply(this,arguments)}))],r=!0)},p(n,r){t=n,512&r[0]&&Zt(e,"type",t[9]),1024&r[0]&&Zt(e,"aria-label",t[10]),32768&r[0]&&Zt(e,"placeholder",t[15]),256&r[0]&&e.value!==t[8]&&(e.value=t[8])},d(n){n&&Lt(e),t[57](null),r=!1,$t(o)}}}function xa(t){let e,n,r,o;return{c(){e=qt("textarea"),this.h()},l(t){e=re(t,"TEXTAREA",{class:!0,autocomplete:!0,autocapitalize:!0,"aria-label":!0,placeholder:!0}),te(e).forEach(Lt),this.h()},h(){Zt(e,"class",n=$a.input__input),Zt(e,"autocomplete","off"),Zt(e,"autocapitalize","off"),Zt(e,"aria-label",t[10]),Zt(e,"placeholder",t[15]),e.value=t[8]},m(n,i){Wt(n,e,i),t[56](e),r||(o=[Yt(e,"input",t[29]),Yt(e,"mousedown",(function(){_t(t[16]?t[30]:void 0)&&(t[16]?t[30]:void 0).apply(this,arguments)})),Yt(e,"click",(function(){_t(t[16]?t[31]:void 0)&&(t[16]?t[31]:void 0).apply(this,arguments)}))],r=!0)},p(n,r){t=n,1024&r[0]&&Zt(e,"aria-label",t[10]),32768&r[0]&&Zt(e,"placeholder",t[15]),256&r[0]&&(e.value=t[8])},d(n){n&&Lt(e),t[56](null),r=!1,$t(o)}}}function ka(t){let e,n,r,o,i,a,l=t[8].endsWith("\n")||!t[8],s=l&&ba();function c(t,e){return t[4]?xa:wa}let u=c(t),d=u(t);return{c(){e=qt("span"),n=qt("span"),r=Gt(t[8]),s&&s.c(),i=Kt(),d.c(),this.h()},l(o){e=re(o,"SPAN",{class:!0});var a=te(e);n=re(a,"SPAN",{class:!0,"aria-hidden":!0});var l=te(n);r=ie(l,t[8]),s&&s.l(l),l.forEach(Lt),i=ae(a),d.l(a),a.forEach(Lt),this.h()},h(){Zt(n,"class",o=$a.input__holder),Zt(n,"aria-hidden","true"),Zt(e,"class",a=$a.input__wrapper)},m(o,a){Wt(o,e,a),Rt(e,n),Rt(n,r),s&&s.m(n,null),t[55](n),Rt(e,i),d.m(e,null)},p(t,o){256&o[0]&&le(r,t[8]),256&o[0]&&(l=t[8].endsWith("\n")||!t[8]),l?s||(s=ba(),s.c(),s.m(n,null)):s&&(s.d(1),s=null),u===(u=c(t))&&d?d.p(t,o):(d.d(1),d=u(t),d&&(d.c(),d.m(e,null)))},d(n){n&&Lt(e),s&&s.d(),t[55](null),d.d()}}}function Ea(t){let e,n,r=!t[7]&&_a(t);return{c(){r&&r.c(),e=Xt()},l(t){r&&r.l(t),e=Xt()},m(t,o){r&&r.m(t,o),Wt(t,e,o),n=!0},p(t,n){t[7]?r&&(Me(),Oe(r,1,1,(()=>{r=null})),Te()):r?(r.p(t,n),128&n[0]&&Je(r,1)):(r=_a(t),r.c(),Je(r,1),r.m(e.parentNode,e))},i(t){n||(Je(r),n=!0)},o(t){Oe(r),n=!1},d(t){r&&r.d(t),t&&Lt(e)}}}function Ca(t,e,n){let r,o,i,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x=ft,k=ft;t.$$.on_destroy.push((()=>x())),t.$$.on_destroy.push((()=>k()));let{json:E={}}=e,{templateContext:A}=e,{origJson:V}=e,{layoutParams:j}=e;const P=ye(vn);let D,S,I=!1,z=!1;const F=P.getJsonWithVars(E.text_variable);let N=!1;F||(N=!0,P.logError(yn(new Error('Missing "text_variable" in "input"'))));let M=F&&P.getVariable(F,"string")||on("temp","string","");Ct(t,M,(t=>n(54,b=t)));let T="";const J=P.getDerivedFromVars(E.hint_text);Ct(t,J,(t=>n(53,_=t)));const O=P.getDerivedFromVars(E.hint_color);Ct(t,O,(t=>n(52,$=t)));let B="";const R=P.getDerivedFromVars(E.font_size);Ct(t,R,(t=>n(51,y=t)));let W=12;const L=P.getDerivedFromVars(E.font_weight);let U;Ct(t,L,(t=>n(50,v=t)));const q=P.getDerivedFromVars(E.line_height);let H;Ct(t,q,(t=>n(49,m=t)));const G=P.getDerivedFromVars(E.letter_spacing);Ct(t,G,(t=>n(48,g=t)));let K="";const X=P.getDerivedFromVars(E.text_color);Ct(t,X,(t=>n(47,f=t)));let Y="#000";const Z=P.getDerivedFromVars(E.highlight_color);Ct(t,Z,(t=>n(46,p=t)));let Q="";const tt=P.getDerivedFromVars(E.keyboard_type);Ct(t,tt,(t=>n(45,h=t)));const et={email:"email",number:"number",phone:"tel",single_line_text:"text",multi_line_text:"text",uri:"url"};let nt="multi_line_text",rt="text";const ot=P.getDerivedFromVars(E.max_visible_lines);Ct(t,ot,(t=>n(44,d=t)));let it="",at="";const lt=P.getDerivedFromVars(E.select_all_on_focus);function st(){n(32,z=S.scrollHeight>S.offsetHeight)}return Ct(t,lt,(t=>n(16,w=t))),ge((()=>{st()})),t.$$set=t=>{"json"in t&&n(0,E=t.json),"templateContext"in t&&n(1,A=t.templateContext),"origJson"in t&&n(2,V=t.origJson),"layoutParams"in t&&n(3,j=t.layoutParams)},t.$$.update=()=>{if(8388608&t.$$.dirty[1]&&n(8,T=b),4194304&t.$$.dirty[1]&&n(15,r=_),2097156&t.$$.dirty[1]&&n(33,B=C($,1,B)),1048584&t.$$.dirty[1]&&n(34,W=xr(y,W)),524304&t.$$.dirty[1]&&n(35,U=Er(v,U)),262152&t.$$.dirty[1]){const t=m;ir(t)&&n(36,H=t/W)}131080&t.$$.dirty[1]&&Tn(g)&&n(37,K=wn(g/W*10)),65664&t.$$.dirty[1]&&n(38,Y=C(f,1,Y)),33024&t.$$.dirty[1]&&n(39,Q=C(p,1,Q)),16384&t.$$.dirty[1]&&h&&h in et&&(n(9,rt=et[h]),n(40,nt=h)),512&t.$$.dirty[1]&&n(4,o="multi_line_text"===nt),1&t.$$.dirty[0]&&(n(14,i=P.getDerivedFromVars(E.paddings)),k(),k=Et(i,(t=>n(43,u=t)))),12320&t.$$.dirty[1]&&ir(d)&&n(41,it="calc(".concat(d*(H||1.25)+"em"," + ").concat(xn(Bn(null==u?void 0:u.top,0)+Bn(null==u?void 0:u.bottom,0)),")")),1&t.$$.dirty[0]&&(n(13,a=P.getDerivedFromVars(E.accessibility)),x(),x=Et(a,(t=>n(42,c=t)))),2048&t.$$.dirty[1]&&((null==c?void 0:c.description)?n(10,at=c.description):P.logError(yn(new Error('Missing accessibility "description" for input'),{level:"warn"}))),16&t.$$.dirty[0]|258&t.$$.dirty[1]&&n(12,l={"highlight-color":Boolean(Q),"vertical-overflow":z,multiline:o}),1532&t.$$.dirty[1]&&n(11,s={"--divkit-input-hint-color":B,"--divkit-input-highlight-color":Q,"font-size":wn(W),"font-weight":U,"line-height":H,"letter-spacing":K,color:Y,"max-height":it})},[E,A,V,j,o,D,S,N,T,rt,at,s,l,a,i,r,w,M,J,O,R,L,q,G,X,Z,tt,ot,lt,function(t){const e=t.target.value||"";M.setValue(e),st()},function(){I=!1,setTimeout((()=>{I=!0}),250)},function(){I||D.select()},z,B,W,U,H,K,Y,Q,nt,it,c,u,d,h,p,f,g,m,v,y,$,_,b,function(t){be[t?"unshift":"push"]((()=>{S=t,n(6,S)}))},function(t){be[t?"unshift":"push"]((()=>{D=t,n(5,D)}))},function(t){be[t?"unshift":"push"]((()=>{D=t,n(5,D)}))}]}const Aa={text:class extends Ze{constructor(t){super(),Ye(this,t,Ur,Lr,xt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},container:class extends Ze{constructor(t){super(),Ye(this,t,go,fo,xt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},separator:class extends Ze{constructor(t){super(),Ye(this,t,bo,_o,xt,{json:0,templateContext:1,origJson:2,layoutParams:3})}},image:So,gif:So,grid:class extends Ze{constructor(t){super(),Ye(this,t,Ro,Bo,xt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},gallery:class extends Ze{constructor(t){super(),Ye(this,t,ri,ni,xt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},tabs:class extends Ze{constructor(t){super(),Ye(this,t,mi,gi,xt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},state:class extends Ze{constructor(t){super(),Ye(this,t,Wi,Bi,xt,{json:0,templateContext:1,origJson:2,layoutParams:3})}},pager:class extends Ze{constructor(t){super(),Ye(this,t,Yi,Xi,xt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},indicator:class extends Ze{constructor(t){super(),Ye(this,t,oa,ra,xt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},slider:class extends Ze{constructor(t){super(),Ye(this,t,ya,ma,xt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},input:class extends Ze{constructor(t){super(),Ye(this,t,Ca,Ea,xt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}}};function Va(t){let e,n,r;var o=t[5];function i(t){return{props:{json:t[3],templateContext:t[4],layoutParams:t[2],origJson:t[1]||t[0]}}}return o&&(e=new o(i(t))),{c(){e&&He(e.$$.fragment),n=Xt()},l(t){e&&Ge(e.$$.fragment,t),n=Xt()},m(t,o){e&&Ke(e,t,o),Wt(t,n,o),r=!0},p(t,r){const a={};if(8&r&&(a.json=t[3]),16&r&&(a.templateContext=t[4]),4&r&&(a.layoutParams=t[2]),3&r&&(a.origJson=t[1]||t[0]),o!==(o=t[5])){if(e){Me();const t=e;Oe(t.$$.fragment,1,0,(()=>{Xe(t,1)})),Te()}o?(e=new o(i(t)),He(e.$$.fragment),Je(e.$$.fragment,1),Ke(e,n.parentNode,n)):e=null}else o&&e.$set(a)},i(t){r||(e&&Je(e.$$.fragment,t),r=!0)},o(t){e&&Oe(e.$$.fragment,t),r=!1},d(t){t&&Lt(n),e&&Xe(e,t)}}}function ja(t){let e,n,r=t[5]&&Va(t);return{c(){r&&r.c(),e=Xt()},l(t){r&&r.l(t),e=Xt()},m(t,o){r&&r.m(t,o),Wt(t,e,o),n=!0},p(t,n){let[o]=n;t[5]?r?(r.p(t,o),32&o&&Je(r,1)):(r=Va(t),r.c(),Je(r,1),r.m(e.parentNode,e)):r&&(Me(),Oe(r,1,1,(()=>{r=null})),Te())},i(t){n||(Je(r),n=!0)},o(t){Oe(r),n=!1},d(t){r&&r.d(t),t&&Lt(e)}}}function Pa(t,e,n){let{div:r}=e,{templateContext:o}=e,{origJson:i}=e,{layoutParams:a}=e;const l=ye(vn);let s,c,u;return t.$$set=t=>{"div"in t&&n(0,r=t.div),"templateContext"in t&&n(6,o=t.templateContext),"origJson"in t&&n(1,i=t.origJson),"layoutParams"in t&&n(2,a=t.layoutParams)},t.$$.update=()=>{if(121&t.$$.dirty&&(n(3,s=r),n(4,c=o),n(5,u=s&&Aa[s.type]||void 0),!u&&(n(4,({templateContext:c,json:s}=l.processTemplate(s,c)),c,(n(3,s),n(0,r),n(6,o),n(5,u),n(4,c))),n(5,u=s&&Aa[s.type]||void 0),!u))){let t;t=(null==s?void 0:s.type)&&l.hasTemplate(s.type)?"Recursive template":"Unknown component",l.logError(yn(new Error(t),{additional:{component:(null==s?void 0:s.type)||"<missing>"}}))}},[r,i,a,s,c,u,o]}const Da=class extends Ze{constructor(t){super(),Ye(this,t,Pa,ja,xt,{div:0,templateContext:6,origJson:1,layoutParams:2})}};function Sa(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 Ia(t){let e,n,r,o=[...Object.keys(t[0])],i=[];for(let e=0;e<o.length;e+=1)i[e]=Ma(Sa(t,o,e));return{c(){e=Ht("svg"),n=Ht("defs");for(let t=0;t<i.length;t+=1)i[t].c();this.h()},l(t){e=oe(t,"svg",{class:!0,"aria-hidden":!0});var r=te(e);n=oe(r,"defs",{});var o=te(n);for(let t=0;t<i.length;t+=1)i[t].l(o);o.forEach(Lt),r.forEach(Lt),this.h()},h(){Zt(e,"class",r="divkit-dc22b"),Zt(e,"aria-hidden","true")},m(t,r){Wt(t,e,r),Rt(e,n);for(let t=0;t<i.length;t+=1)i[t].m(n,null)},p(t,e){if(1&e){let r;for(o=[...Object.keys(t[0])],r=0;r<o.length;r+=1){const a=Sa(t,o,r);i[r]?i[r].p(a,e):(i[r]=Ma(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&&Lt(e),Ut(i,t)}}}function za(t){let e,n;return{c(){e=Ht("feBlend"),this.h()},l(t){e=oe(t,"feBlend",{in2:!0,mode:!0}),te(e).forEach(Lt),this.h()},h(){Zt(e,"in2","SourceGraphic"),Zt(e,"mode",n=t[3])},m(t,n){Wt(t,e,n)},p(t,r){1&r&&n!==(n=t[3])&&Zt(e,"mode",n)},d(t){t&&Lt(e)}}}function Fa(t){let e;return{c(){e=Ht("feComposite"),this.h()},l(t){e=oe(t,"feComposite",{in2:!0,operator:!0,k1:!0,k2:!0,k3:!0,k4:!0}),te(e).forEach(Lt),this.h()},h(){Zt(e,"in2","SourceGraphic"),Zt(e,"operator","arithmetic"),Zt(e,"k1","1"),Zt(e,"k2","0"),Zt(e,"k3","0"),Zt(e,"k4","0")},m(t,n){Wt(t,e,n)},p:ft,d(t){t&&Lt(e)}}}function Na(t){let e,n;return{c(){e=Ht("feComposite"),this.h()},l(t){e=oe(t,"feComposite",{in2:!0,operator:!0}),te(e).forEach(Lt),this.h()},h(){Zt(e,"in2","SourceGraphic"),Zt(e,"operator",n=t[3].split("_")[1])},m(t,n){Wt(t,e,n)},p(t,r){1&r&&n!==(n=t[3].split("_")[1])&&Zt(e,"operator",n)},d(t){t&&Lt(e)}}}function Ma(t){let e,n,r,o;function i(t,e){return"source_in"===t[3]||"source_atop"===t[3]?Na:"multiply"===t[3]?Fa:za}let a=i(t),l=a(t);return{c(){e=Ht("filter"),n=Ht("feFlood"),l.c(),this.h()},l(t){e=oe(t,"filter",{id:!0});var r=te(e);n=oe(r,"feFlood",{"flood-color":!0}),te(n).forEach(Lt),l.l(r),r.forEach(Lt),this.h()},h(){Zt(n,"flood-color",r=t[2]),Zt(e,"id",o=t[0][t[1]])},m(t,r){Wt(t,e,r),Rt(e,n),l.m(e,null)},p(t,s){1&s&&r!==(r=t[2])&&Zt(n,"flood-color",r),a===(a=i(t))&&l?l.p(t,s):(l.d(1),l=a(t),l&&(l.c(),l.m(e,null))),1&s&&o!==(o=t[0][t[1]])&&Zt(e,"id",o)},d(t){t&&Lt(e),l.d()}}}function Ta(t){let e,n=Object.keys(t[0]).length,r=n&&Ia(t);return{c(){r&&r.c(),e=Xt()},l(t){r&&r.l(t),e=Xt()},m(t,n){r&&r.m(t,n),Wt(t,e,n)},p(t,o){let[i]=o;1&i&&(n=Object.keys(t[0]).length),n?r?r.p(t,i):(r=Ia(t),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null)},i:ft,o:ft,d(t){r&&r.d(t),t&&Lt(e)}}}function Ja(t,e,n){let{svgFiltersMap:r}=e;return t.$$set=t=>{"svgFiltersMap"in t&&n(0,r=t.svgFiltersMap)},[r]}const Oa=class extends Ze{constructor(t){super(),Ye(this,t,Ja,Ta,xt,{svgFiltersMap:0})}};function Ba(t,e,n,r){const o=n[t.type];if(!o)return r(yn(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 l=function e(n,o){const i=Object.keys(o).filter((t=>"__proto__"!==t)),l=i.filter((t=>"$"!==t.charAt(0))),s=i.filter((t=>"$"===t.charAt(0)));return l.forEach((t=>{const r=o[t];"object"==typeof r&&null!==r?(n[t]=Array.isArray(r)?[]:{},e(n[t],r)):n[t]=r})),s.forEach((e=>{const i=o[e],l=a[i];if(void 0!==l){const t=e.substring(1);n[t]=l}else r(yn(new Error("Missing template field"),{level:"warn",additional:{key:e,template:t.type}}))})),n}({},o);for(i in t)"type"!==i&&"__proto__"!==i&&t.hasOwnProperty(i)&&(l[i]=t[i]);return{json:l,templateContext:a}}function Ra(){}function Wa(t){return{subscribe:e=>(e(t),Ra)}}class La{constructor(t){this.ast=t}apply(t,e){if(!function(t,e){let n=!1;return k(t,{Variable(t){e.has(t.id.name)||(n=!0)}}),n}(this.ast,t))try{const n=cn(t,this.ast);if("error"===n.type)return void e(yn(new Error("Expression execution error"),{additional:{message:n.value}}));const r=n.value;if(r instanceof Date)return P(r);if("boolean"===n.type)return Boolean(r);if("color"===n.type){const t=V(String(r));if(t)return O(t);e(yn(new Error("Expression execution error")))}return r}catch(t){return void e(yn(new Error("Expression execution error")))}}}function Ua(t,e,n){if(t)if("string"==typeof t){if((r=t).indexOf("@{")>-1||r.indexOf("\\")>-1){e.hasExpression=!0;try{const n=$(t,{startRule:"JsonStringContents"}),r=M(n);return e.vars.push(...r),new La(n)}catch(e){return void n(yn(new Error("Unable to parse expression"),{additional:{expression:t}}))}}}else{if(Array.isArray(t))return t.map((t=>Ua(t,e,n)));if("object"==typeof t){const r={};for(const o in t)r[o]=Ua(t[o],e,n);return r}}var r;return t}function qa(t,e,n){if(t){if(t instanceof La)return t.apply(e,n);if(Array.isArray(t))return t.map((t=>qa(t,e,n)));if("object"==typeof t){const r={};for(const o in t)r[o]=qa(t[o],e,n);return r}}return t}function Ha(t,e){const n={vars:[],hasExpression:!1},r=Ua(t,n,e);return{vars:[...new Set(n.vars)],hasExpression:n.hasExpression,applyVars:t=>qa(r,t,e)}}const Ga={pagers:function(){return tn(new Map)}},Ka=new Map,Xa=new Map;function Ya(t){const e=Ka.get(t)||tn("");return Ka.has(t)||Ka.set(t,e),e}function Za(t){const e=Xa.get(t)||new Map;return Xa.has(t)||Xa.set(t,e),e}class Qa{setVariable(t){const e=t.getName(),n=Za(this);if(n.has(e))throw new Error("Variable with the same name already exist");n.set(e,t),Ya(this).set(e)}getVariable(t){return Za(this).get(t)}}function tl(){return new Qa}function el(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const nl=new Set(["start","stop","pause","resume","cancel","reset"]);class rl{constructor(t){el(this,"timers",new Map),el(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(yn(new Error("Misconfigured timer"),{additional:{id:t.id}})):this.logError(yn(new Error("Missing timer id")))}execTimerAction(t,e){if(!(t&&e&&this.timers.has(t)&&nl.has(e)))return void this.logError(yn(new Error("Incorrect timer action"),{additional:{id:t,action:e}}));const n=e;if("visible"!==document.visibilityState)return void this.awaitActions.push({id:t,action:n});const r=this.timers.get(t);this[n](r)}stopTimerTimeouts(t){t.durationTimeout&&(clearTimeout(t.durationTimeout),t.durationTimeout=void 0),t.tickTimeout&&(clearTimeout(t.tickTimeout),t.tickTimeout=void 0)}tickOrUnholdAction(t){const e=performance.now(),n=(t.durationPassed||0)+e-(t.durationStarted||0);t.duration&&n>t.duration||(this.updateVariable(t,n),this.callActions(t,"tick"))}startOrResume(t){t.state="running",t.hold=!1,t.durationStarted=performance.now();const e=t.duration;e&&(t.durationTimeout=window.setTimeout((()=>{this.updateVariable(t,e),this.stop(t)}),Math.max(0,e-(t.durationPassed||0))));const n=t.tick;if(n){const e=()=>{t.tickStarted=performance.now(),t.tickTimeout=window.setTimeout((()=>{this.tickOrUnholdAction(t),t.tickPassed=0,e()}),Math.max(0,n-(t.tickPassed||0)))};e()}}start(t){if("running"===t.state)return void this.logError(yn(new Error("The timer is already running")));if("paused"===t.state)return void this.logError(yn(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(yn(new Error("Incorrect timer properties"),{additional:{id:t.definition.id}})):this.startOrResume(t)):this.logError(yn(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(yn(new Error("The timer has already been stopped")))}pause(t){if("stopped"===t.state)return void this.logError(yn(new Error("The timer has already been stopped")));if("paused"===t.state)return void this.logError(yn(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(yn(new Error("The timer is already running"))):this.logError(yn(new Error("The timer has already been stopped")))}cancel(t){"stopped"!==t.state&&(t.state="stopped",t.durationPassed=0,t.tickPassed=0,this.stopTimerTimeouts(t))}reset(t){this.cancel(t),this.start(t)}updateVariable(t,e){const n=t.definition.value_variable;n&&this.setVariableValue(n,Math.round(e))}callActions(t,e){const n=t.definition["end"===e?"end_actions":"tick_actions"];if(n){const t=this.applyVars(n);this.execAnyActions(t,!1)}}holdAll(){for(const[t,e]of this.timers)"running"===e.state&&(e.hold=!0,this.stopTimerTimeouts(e))}unholdAll(){for(const[t,e]of this.timers)if("running"===e.state&&e.hold){const t=performance.now();e.durationStarted&&(e.durationPassed=(e.durationPassed||0)+t-e.durationStarted),e.tickStarted&&(e.tickPassed=(e.tickPassed||0)+t-e.tickStarted),e.tick&&this.tickOrUnholdAction(e),this.startOrResume(e)}}}function ol(t){let e,n,r,o,i,a,l,s;return n=new Oa({props:{svgFiltersMap:t[2]}}),o=new Da({props:{div:t[6],templateContext:t[5]}}),{c(){e=qt("div"),He(n.$$.fragment),r=Kt(),He(o.$$.fragment),this.h()},l(t){e=re(t,"DIV",{class:!0});var i=te(e);Ge(n.$$.fragment,i),r=ae(i),Ge(o.$$.fragment,i),i.forEach(Lt),this.h()},h(){Zt(e,"class",i=""+(un+(t[3]?" ".concat(fn):"")+(t[0]?" ".concat(t[0]):"")))},m(t,i){Wt(t,e,i),Ke(n,e,null),Rt(e,r),Ke(o,e,null),a=!0,l||(s=Yt(e,"touchstart",al,{passive:!0}),l=!0)},p(t,r){const o={};4&r[0]&&(o.svgFiltersMap=t[2]),n.$set(o),(!a||9&r[0]&&i!==(i=""+(un+(t[3]?" ".concat(fn):"")+(t[0]?" ".concat(t[0]):""))))&&Zt(e,"class",i)},i(t){a||(Je(n.$$.fragment,t),Je(o.$$.fragment,t),a=!0)},o(t){Oe(n.$$.fragment,t),Oe(o.$$.fragment,t),a=!1},d(t){t&&Lt(e),Xe(n),Xe(o),l=!1,s()}}}function il(t){let e,n,r=!t[1]&&t[6]&&ol(t);return{c(){r&&r.c(),e=Xt()},l(t){r&&r.l(t),e=Xt()},m(t,o){r&&r.m(t,o),Wt(t,e,o),n=!0},p(t,n){!t[1]&&t[6]?r?(r.p(t,n),2&n[0]&&Je(r,1)):(r=ol(t),r.c(),Je(r,1),r.m(e.parentNode,e)):r&&(Me(),Oe(r,1,1,(()=>{r=null})),Te())},i(t){n||(Je(r),n=!0)},o(t){Oe(r),n=!1},d(t){r&&r.d(t),t&&Lt(e)}}}function al(){}function ll(t,e,n){let r;var o,i,a,l;let{id:s}=e,{json:c={}}=e,{platform:u="auto"}=e,{theme:d="system"}=e,{globalVariablesController:h=new Qa}=e,{mix:p=""}=e,{customization:f={}}=e,{builtinProtocols:g=["http","https","tel","mailto","intent"]}=e,{onError:m}=e,{onStat:v}=e,{onCustomAction:y}=e,{onComponent:_}=e,b=tn("desktop"===u);if(Ct(t,b,(t=>n(3,r=t))),"auto"===u&&"undefined"!=typeof matchMedia){const t=matchMedia("(any-pointer: coarse)");b.set(!t.matches),t.addListener((()=>{b.set(!t.matches)}))}let w="light",x=null;function k(){"system"===d&&x&&n(23,w=x.matches?"dark":"light")}const E=new Set(g);let C=!1;c||(C=!0,T(yn(new Error('"json" prop is required')))),s||(C=!0,T(yn(new Error('"id" prop is required'))));let A=function(t){if(!t)return yn(new Error("Missing object"));const e=t.card,n=t.templates||{};if(!e)return yn(new Error("Missing card"));if(!e.states||!e.states.length)return yn(new Error("Missing states"));for(const t in n)if(n.hasOwnProperty(t)&&t in Aa)return yn(new Error("Template name collision"),{additional:{templateName:t}});for(let t=0;t<e.states.length;++t){if(!e.states[t].div)return yn(new Error("Missing state div"),{additional:{stateId:e.states[t].state_id}});if("number"!=typeof e.states[t].state_id)return yn(new Error("Missing state_id"),{additional:{index:t}})}return null}(c);const V=c.templates||{};A&&(C=!0,T(A));const j={stateChange:!1},P=Ya(h),D=Za(h),S=new Map,I=new Map,z=new Map;let F=null;function N(t){const e=Ha(t,T);return e.vars.length?e.applyVars(I):t}function T(t){m?m({error:t}):"warn"===(null==t?void 0:t.level)?console.warn(t):console.error(t)}function J(t,e){v&&v({type:t,action:e})}let O=0;function B(t){return"".concat(s,"-").concat(O++)}let R={},W={};function L(t){const e=t.url?String(t.url):"";if(e)try{const t=e.replace(/div-action:\/\//,""),n=/([^?]+)\?(.+)/.exec(t);if(!n)return;const r=new URLSearchParams(n[2]);switch(n[1]){case"set_state":!function(t){if(!t)throw new Error("Missing state id");let e=Y,n=t.split("/");if(n=["root",...n],n.length<2||n.length%2!=0)throw new Error("Incorrect state id format");for(let t=0;t<n.length;t+=2){const r=n[t],o=n[t+1];let i=e.getChild(r);if(!i)return;i.setState(o),e=i}}(r.get("state_id"));break;case"set_current_item":!function(t,e){if(!t||!e)throw new Error('Missing data for "set-current-item" action');if(isNaN(Number(e)))throw new Error('Incorrect item for "set-current-item" action');const n=G(t);n&&n.setCurrentItem(Number(e))}(r.get("id"),r.get("item"));break;case"set_previous_item":!function(t,e){if(!t)throw new Error('Missing id for "set-previous-item" action');if(e&&"clamp"!==e&&"ring"!==e)throw new Error('Incorrect overflow value for "set-previous-item" action');e=e||"clamp";const n=G(t);n&&n.setPreviousItem(e)}(r.get("id"),r.get("overflow"));break;case"set_next_item":!function(t,e){if(!t)throw new Error('Missing id for "set-next-item" action');if(e&&"clamp"!==e&&"ring"!==e)throw new Error('Incorrect overflow value for "set-next-item" action');e=e||"clamp";const n=G(t);n&&n.setNextItem(e)}(r.get("id"),r.get("overflow"));break;case"set_variable":const n=r.get("name"),o=r.get("value");if(n&&null!==o){const t=I.get(n);t?t.set(o):T(yn(new Error("Cannot find variable"),{additional:{name:n}}))}else T(yn(new Error("Incorrect set_variable_action"),{additional:{url:t}}));break;case"timer":const i=r.get("action"),a=r.get("id");F?F.execTimerAction(a,i):T(yn(new Error("Incorrect timer action"),{additional:{id:a,action:i}}));break;default:T(yn(new Error("Unknown type of action"),{additional:{url:e}}))}}catch(t){T(yn(t,{additional:{url:e}}))}}async function U(t,e){if(t){for(let n=0;n<t.length;++n){let r=t[n];const o=r.url;if(o){const t=Dn(o);if(t)if(Sn(t,E)){if(e)if("_blank"===r.target){const t=window.open("","_blank");t&&(t.opener=null,t.location=o)}else location.href=o}else"div-action"===t?(L(r),await Ae()):r.log_id&&(q(r),await Ae())}}t.forEach((t=>{t.log_id&&J("click",t)}))}}function q(t){null==y||y(t)}const H=new Map;function G(t){if(H.has(t))return H.get(t);T(yn(new Error("Missing instance with id"),{additional:{id:t}}))}const K=new Map;function X(t){for(const e of t)I.has(e)&&t.delete(e);return t}ve(vn,{logError:T,logStat:J,hasTemplate:function(t){return t in V},processTemplate:function(t,e){if(!t)return{json:t,templateContext:e};const n=new Set([t.type]);for(;t.type in V;){if(({json:t,templateContext:e}=Ba(t,e,V,T)),n.has(t.type))return{json:t,templateContext:e};n.add(t.type)}return{json:t,templateContext:e}},genId:B,genClass:function(t){return"divkit-".concat(B())},execAction:L,execAnyActions:U,execCustomAction:q,isRunning:function(t){return j[t]},setRunning:function(t,e){j[t]=e},registerInstance:function(t,e){H.has(t)?T(yn(new Error("Duplicate instance id"),{additional:{id:t}})):H.set(t,e)},unregisterInstance:function(t){H.delete(t)},addSvgFilter:function(t,e){const r="".concat(t,":").concat(e);if(W[r]=W[r]||0,++W[r],R[r])return R[r];const o="".concat(B(),"-svg-filter");return n(2,R=Object.assign(Object.assign({},R),{[r]:o})),o},removeSvgFilter:function(t,e){if(!t)return;const r="".concat(t,":").concat(e);W[r]&&0==--W[r]&&n(2,R=Object.keys(R).reduce(((t,e)=>(W[e]&&(t[e]=R[e]),t)),{}))},getDerivedFromVars:function(t){if(!t)return Wa(t);const e=Ha(t,T);return e.vars.length?en(e.vars.map((t=>I.get(t)||function(t){const e=z.get(t)||tn(void 0);return z.has(t)||z.set(t,e),e}(t))).filter(En),(()=>e.applyVars(I))):e.hasExpression?Wa(e.applyVars(I)):Wa(t)},getJsonWithVars:N,getStore:function(t){return K.has(t)||function(t){K.has(t)||K.set(t,Ga[t]())}(t),K.get(t)},getVariable:function(t,e){const n=I.get(t);if(n){const r=n.getType();if(r!==e)return void T(yn(new Error('Variable should have type "'.concat(e,'"')),{additional:{name:t,foundType:r}}))}return n},getCustomization:function(t){return null==f?void 0:f[t]},getBuiltinProtocols:function(){return E},isDesktop:b,registerComponent:function(t){let{node:e,json:n,origJson:r,templateContext:o}=t;_&&_({type:"mount",node:e,json:n,origJson:r,templateContext:o})},unregisterComponent:function(t){let{node:e}=t;_&&_({type:"destroy",node:e})}}),ve(Xn,{hasAction:()=>!1});const Y={setState(t){throw new Error("Not implemented")},getChild(t){if(Z&&Z.has(t))return Z.get(t);T(yn(new Error("Missing state block with id"),{additional:{id:t}}))}};let Z=null;ve(Nn,{registerInstance(t,e){Z||(Z=new Map),Z.has(t)?T(yn(new Error("Duplicate state with id"),{additional:{id:t}})):Z.set(t,e)},unregisterInstance(t){null==Z||Z.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 Q=null===(o=null==c?void 0:c.card)||void 0===o?void 0:o.variables;Array.isArray(Q)&&Q.forEach((t=>{if(t&&t.type in rn&&t.name){if(S.has(t.name))return void T(yn(new Error("Duplicate variable"),{additional:{name:t.name}}));try{const e=on(t.name,t.type,t.value);S.set(t.name,e),I.set(t.name,e)}catch(e){T(yn(e,{additional:{name:t.name}}))}}}));const tt=c.palette;tt&&tt[w].forEach((t=>{if(S.has(t.name))T(yn(new Error("Duplicate variable"),{additional:{name:t.name}}));else try{const e=on(t.name,"color",t.color);S.set(t.name,e),I.set(t.name,e)}catch(e){T(yn(e,{additional:{name:t.name}}))}}));for(const[t,e]of D)I.has(t)||I.set(t,e);P.subscribe((t=>{if(t&&!I.has(t)){const e=D.get(t);I.set(t,e);const n=z.get(t);if(n){let t=0;e.subscribe((()=>{n.set(++t)}))}}}));const et=null===(i=null==c?void 0:c.card)||void 0===i?void 0:i.variable_triggers;Array.isArray(et)&&et.forEach((t=>{let e=!1;if("string"!=typeof t.condition)return void T(yn(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=$(t.condition,{startRule:"JsonStringContents"}),o=M(r);if(!o.length)return void T(yn(new Error("variable_trigger must have variables in the condition"),{additional:{condition:t.condition}}));(function(t){const e=new Set(t);return X(e),e.size?new Promise((t=>{const n=P.subscribe((()=>{X(e),e.size||(n(),t())}))})):Promise.resolve()})(o).then((()=>{en(o.map((t=>I.get(t))).filter(En),(()=>cn(I,r))).subscribe((r=>{"error"!==r.type?(r.value&&("on_variable"===n||"on_condition"===n&&!1===e)&&t.actions.forEach((t=>{const e=N(t);e.log_id&&L(e)})),e=Boolean(r.value)):T(yn(new Error("variable_trigger condition execution error"),{additional:{message:r.value}}))}))}))}catch(e){T(yn(new Error("Unable to parse variable_trigger"),{additional:{condition:t.condition}}))}else T(yn(new Error("variable_trigger has an unsupported mode"),{additional:{mode:n}}))}));const nt=null===(a=null==c?void 0:c.card)||void 0===a?void 0:a.timers;if(nt){const t=F=new rl({logError:T,applyVars:N,hasVariableWithType:function(t,e){const n=I.get(t);return(null==n?void 0:n.getType())===e},setVariableValue:function(t,e){const n=I.get(t);n?n.setValue(e):T(yn(new Error("Cannot find variable"),{additional:{name:t}}))},execAnyActions:U});nt.forEach((e=>t.createTimer(e)))}const rt=null===(l=null==c?void 0:c.card)||void 0===l?void 0:l.states,ot=rt&&!C?{type:"state",id:"root",width:{type:"match_parent"},height:{type:"match_parent"},states:rt.map((t=>({state_id:t.state_id.toString(),div:t.div})))}:void 0;return me((()=>{F&&F.destroy()})),t.$$set=t=>{"id"in t&&n(8,s=t.id),"json"in t&&n(9,c=t.json),"platform"in t&&n(10,u=t.platform),"theme"in t&&n(7,d=t.theme),"globalVariablesController"in t&&n(11,h=t.globalVariablesController),"mix"in t&&n(0,p=t.mix),"customization"in t&&n(12,f=t.customization),"builtinProtocols"in t&&n(13,g=t.builtinProtocols),"onError"in t&&n(14,m=t.onError),"onStat"in t&&n(15,v=t.onStat),"onCustomAction"in t&&n(16,y=t.onCustomAction),"onComponent"in t&&n(17,_=t.onComponent)},t.$$.update=()=>{16777344&t.$$.dirty[0]&&("light"===d||"dark"===d?n(23,w=d):"system"===d?"undefined"!=typeof matchMedia?(x||(n(24,x=matchMedia("(prefers-color-scheme: dark)")),x.addListener(k)),n(23,w=x.matches?"dark":"light")):n(23,w="light"):T(yn(new Error("Unsupported theme")))),8388608&t.$$.dirty[0]&&w&&tt&&tt[w].forEach((t=>{const e=I.get(t.name);e&&e.setValue(t.color)}))},[p,C,R,r,b,{},ot,d,s,c,u,h,f,g,m,v,y,_,function(t){n(7,d=t)},function(){return I},function(t,e){if("string"==typeof e||"number"==typeof e||"boolean"==typeof e){const n=I.get(t);n&&n.setValue(e)}},function(t){const e=I.get(t);return null==e?void 0:e.getValue()},L,w,x]}const sl=class extends Ze{constructor(t){super(),Ye(this,t,ll,il,xt,{id:8,json:9,platform:10,theme:7,globalVariablesController:11,mix:0,customization:12,builtinProtocols:13,onError:14,onStat:15,onCustomAction:16,onComponent:17,setTheme:18,getDebugVariables:19,setVariable:20,getVariable:21,execAction:22},null,[-1,-1,-1])}get setTheme(){return this.$$.ctx[18]}get getDebugVariables(){return this.$$.ctx[19]}get setVariable(){return this.$$.ctx[20]}get getVariable(){return this.$$.ctx[21]}get execAction(){return this.$$.ctx[22]}};function cl(t){return new sl({target:t.target,props:{id:t.id,json:t.json,globalVariablesController:t.globalVariablesController,mix:t.mix,customization:t.customization,builtinProtocols:t.builtinProtocols,onStat:t.onStat,onCustomAction:t.onCustomAction,onError:t.onError,onComponent:t.onComponent,platform:t.platform,theme:t.theme},hydrate:t.hydrate})}function ul(t,e){let n;try{n=$(t,{startRule:"json"===(null==e?void 0:e.type)?"JsonStringContents":"start"})}catch(t){return{type:"error",value:"Unable to parse expression"}}return cn((null==e?void 0:e.variables)||new Map,n)}function dl(){return Array.from(_.keys())}(window.Ya=window.Ya||{}).Divkit=e})();
2
2
  //# sourceMappingURL=client-devtool.js.map