@divkitframework/divkit 10.0.0 → 11.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.
- package/dist/browser/client-devtool.js +1 -1
- package/dist/browser/client-devtool.js.map +1 -1
- package/dist/browser/client-hydratable.js +1 -1
- package/dist/browser/client-hydratable.js.map +1 -1
- package/dist/browser/client.js +1 -1
- package/dist/browser/client.js.map +1 -1
- package/dist/client-devtool.js +1 -1
- package/dist/client-devtool.js.map +1 -1
- package/dist/client-hydratable.js +1 -1
- package/dist/client-hydratable.js.map +1 -1
- package/dist/client.css +1 -1
- package/dist/client.css.map +1 -1
- package/dist/client.js +1 -1
- package/dist/client.js.map +1 -1
- package/dist/esm/client-devtool.mjs +1 -1
- package/dist/esm/client-devtool.mjs.map +1 -1
- package/dist/esm/client-hydratable.mjs +1 -1
- package/dist/esm/client-hydratable.mjs.map +1 -1
- package/dist/esm/client.mjs +1 -1
- package/dist/esm/client.mjs.map +1 -1
- package/dist/esm/server.mjs +1 -1
- package/dist/esm/server.mjs.map +1 -1
- package/dist/server.js +1 -1
- package/dist/server.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(()=>{"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:()=>_a,createVariable:()=>Qe,evalExpression:()=>Aa,functionNames:()=>ja,render:()=>Ea,valToString:()=>P});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 f(t,e){return e.reduce(((t,e)=>({type:"LogicalExpression",operator:e[1],left:t,right:e[3]})),t)}function p(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 $(t,e,n){return n=n||" ",t.length>e?t:(e-=t.length,t+(n+=n.repeat(e)).slice(0,e))}function y(t,e){var n,r,o,i,a={},l=(e=void 0!==e?e:{}).grammarSource,s={start:Jt,JsonStringContents:function(){var t,e,n;for(t=Ct,e=[],n=Ot();n!==a;)e.push(n),n=Ot();return Et=t,e=kt(e)}},c=Jt,u="@{",d="}",$="@{}",y="\\",_="||",b="&&",x="==",w="!=",k=">=",C="<=",E="+",A="-",j="true",V="false",D=/^[^}]/,P=/^[^'}]/,S=/^[0-9]/,F=/^[a-zA-Z_0-9.]/,I=/^[a-zA-Z_]/,N=/^[ \t\r\n]/,z=St("@{",!1),M=St("}",!1),J=St("@{}",!1),O=St("\\",!1),T={type:"any"},B=Ft(["}"],!0,!1),R=St("?",!1),W=St(":",!1),L=St("||",!1),U=St("&&",!1),q=St("==",!1),H=St("!=",!1),G=St(">=",!1),K=St(">",!1),X=St("<=",!1),Y=St("<",!1),Z=St("+",!1),Q=St("-",!1),tt=St("/",!1),et=St("*",!1),nt=St("%",!1),rt=St("!",!1),ot=St("(",!1),it=St(")",!1),at=St(",",!1),lt=It("string"),st=St("'",!1),ct=Ft(["'","}"],!0,!1),ut=It("integer"),dt=Ft([["0","9"]],!1,!1),ht=It("number"),ft=St(".",!1),pt=St("e",!1),gt=St("E",!1),mt=It("boolean"),vt=St("true",!1),$t=St("false",!1),yt=Ft([["a","z"],["A","Z"],"_",["0","9"],"."],!1,!1),_t=It("identifier"),bt=Ft([["a","z"],["A","Z"],"_"],!1,!1),xt=It("whitespace"),wt=Ft([" ","\t","\r","\n"],!1,!1),kt=function(t){return p(t)},Ct=0,Et=0,At=[{line:1,column:1}],jt=0,Vt=[],Dt=0;if("startRule"in e){if(!(e.startRule in s))throw new Error("Can't start parsing from rule \""+e.startRule+'".');c=s[e.startRule]}function Pt(){return t.substring(Et,Ct)}function St(t,e){return{type:"literal",text:t,ignoreCase:e}}function Ft(t,e,n){return{type:"class",parts:t,inverted:e,ignoreCase:n}}function It(t){return{type:"other",description:t}}function Nt(e){var n,r=At[e];if(r)return r;for(n=e-1;!At[n];)n--;for(r={line:(r=At[n]).line,column:r.column};n<e;)10===t.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return At[e]=r,r}function zt(t,e){var n=Nt(t),r=Nt(e);return{source:l,start:{offset:t,line:n.line,column:n.column},end:{offset:e,line:r.line,column:r.column}}}function Mt(t){Ct<jt||(Ct>jt&&(jt=Ct,Vt=[]),Vt.push(t))}function Jt(){var t,e;return t=Ct,Zt(),(e=Tt())!==a?(Zt(),Et=t,t=e):(Ct=t,t=a),t}function Ot(){var e,n,r,o,i;if(e=Ct,t.substr(Ct,2)===u?(n=u,Ct+=2):(n=a,0===Dt&&Mt(z)),n!==a?(r=Zt(),(o=Tt())!==a?(Zt(),125===t.charCodeAt(Ct)?(i=d,Ct++):(i=a,0===Dt&&Mt(M)),i!==a?(Et=e,e=o):(Ct=e,e=a)):(Ct=e,e=a)):(Ct=e,e=a),e===a&&(e=Ct,t.substr(Ct,3)===$?(n=$,Ct+=3):(n=a,0===Dt&&Mt(J)),n!==a&&(Et=e,n=""),(e=n)===a&&(e=Ct,n=Ct,Dt++,92===t.charCodeAt(Ct)?(r=y,Ct++):(r=a,0===Dt&&Mt(O)),r===a&&(t.substr(Ct,2)===u?(r=u,Ct+=2):(r=a,0===Dt&&Mt(z))),Dt--,r===a?n=void 0:(Ct=n,n=a),n!==a?(t.length>Ct?(r=t.charAt(Ct),Ct++):(r=a,0===Dt&&Mt(T)),r!==a?(Et=e,e=Pt()):(Ct=e,e=a)):(Ct=e,e=a),e===a))){if(e=Ct,t.substr(Ct,2)===u?(n=u,Ct+=2):(n=a,0===Dt&&Mt(z)),n!==a){if(r=[],D.test(t.charAt(Ct))?(o=t.charAt(Ct),Ct++):(o=a,0===Dt&&Mt(B)),o!==a)for(;o!==a;)r.push(o),D.test(t.charAt(Ct))?(o=t.charAt(Ct),Ct++):(o=a,0===Dt&&Mt(B));else r=a;r!==a?(125===t.charCodeAt(Ct)?(o=d,Ct++):(o=a,0===Dt&&Mt(M)),o!==a?(Et=e,e=function(){throw new Error("Error tokenizing '"+t+"'.")}()):(Ct=e,e=a)):(Ct=e,e=a)}else Ct=e,e=a;e===a&&(e=Ct,t.substr(Ct,2)===u?(n=u,Ct+=2):(n=a,0===Dt&&Mt(z)),n!==a&&(Et=e,n=function(){throw new Error("Error tokenizing '"+t+"'.")}()),(e=n)===a&&(e=Ct,92===t.charCodeAt(Ct)?(n=y,Ct++):(n=a,0===Dt&&Mt(O)),n!==a?(t.substr(Ct,2)===u?(r=u,Ct+=2):(r=a,0===Dt&&Mt(z)),r!==a?(Et=e,e=r):(Ct=e,e=a)):(Ct=e,e=a),e===a&&(e=Ct,92===t.charCodeAt(Ct)?(n=y,Ct++):(n=a,0===Dt&&Mt(O)),n!==a?(t.length>Ct?(r=t.charAt(Ct),Ct++):(r=a,0===Dt&&Mt(T)),r!==a?(Et=e,e=m(r)):(Ct=e,e=a)):(Ct=e,e=a),e===a&&(e=Ct,92===t.charCodeAt(Ct)?(n=y,Ct++):(n=a,0===Dt&&Mt(O)),n!==a&&(Et=e,n=function(){throw new Error("Error tokenizing '"+t+"'.")}()),e=n))))}return e}function Tt(){var e,n,r,o,i,l;return e=Ct,(n=Bt())!==a?(Zt(),63===t.charCodeAt(Ct)?(r="?",Ct++):(r=a,0===Dt&&Mt(R)),r!==a?(Zt(),(o=Tt())!==a?(Zt(),58===t.charCodeAt(Ct)?(i=":",Ct++):(i=a,0===Dt&&Mt(W)),i!==a?(Zt(),(l=Tt())!==a?(Et=e,e={type:"ConditionalExpression",test:n,consequent:o,alternate:l}):(Ct=e,e=a)):(Ct=e,e=a)):(Ct=e,e=a)):(Ct=e,e=a)):(Ct=e,e=a),e===a&&(e=Bt()),e}function Bt(){var e,n,r,o,i,l,s,c;if(e=Ct,(n=Rt())!==a){for(r=[],o=Ct,i=Zt(),t.substr(Ct,2)===_?(l=_,Ct+=2):(l=a,0===Dt&&Mt(L)),l!==a?(s=Zt(),(c=Rt())!==a?o=i=[i,l,s,c]:(Ct=o,o=a)):(Ct=o,o=a);o!==a;)r.push(o),o=Ct,i=Zt(),t.substr(Ct,2)===_?(l=_,Ct+=2):(l=a,0===Dt&&Mt(L)),l!==a?(s=Zt(),(c=Rt())!==a?o=i=[i,l,s,c]:(Ct=o,o=a)):(Ct=o,o=a);Et=e,e=f(n,r)}else Ct=e,e=a;return e}function Rt(){var e,n,r,o,i,l,s,c;if(e=Ct,(n=Wt())!==a){for(r=[],o=Ct,i=Zt(),t.substr(Ct,2)===b?(l=b,Ct+=2):(l=a,0===Dt&&Mt(U)),l!==a?(s=Zt(),(c=Wt())!==a?o=i=[i,l,s,c]:(Ct=o,o=a)):(Ct=o,o=a);o!==a;)r.push(o),o=Ct,i=Zt(),t.substr(Ct,2)===b?(l=b,Ct+=2):(l=a,0===Dt&&Mt(U)),l!==a?(s=Zt(),(c=Wt())!==a?o=i=[i,l,s,c]:(Ct=o,o=a)):(Ct=o,o=a);Et=e,e=f(n,r)}else Ct=e,e=a;return e}function Wt(){var e,n,r,o,i,l,s,c;if(e=Ct,(n=Lt())!==a){for(r=[],o=Ct,i=Zt(),t.substr(Ct,2)===x?(l=x,Ct+=2):(l=a,0===Dt&&Mt(q)),l===a&&(t.substr(Ct,2)===w?(l=w,Ct+=2):(l=a,0===Dt&&Mt(H))),l!==a?(s=Zt(),(c=Lt())!==a?o=i=[i,l,s,c]:(Ct=o,o=a)):(Ct=o,o=a);o!==a;)r.push(o),o=Ct,i=Zt(),t.substr(Ct,2)===x?(l=x,Ct+=2):(l=a,0===Dt&&Mt(q)),l===a&&(t.substr(Ct,2)===w?(l=w,Ct+=2):(l=a,0===Dt&&Mt(H))),l!==a?(s=Zt(),(c=Lt())!==a?o=i=[i,l,s,c]:(Ct=o,o=a)):(Ct=o,o=a);Et=e,e=h(n,r)}else Ct=e,e=a;return e}function Lt(){var e,n,r,o,i,l,s,c;if(e=Ct,(n=Ut())!==a){for(r=[],o=Ct,i=Zt(),t.substr(Ct,2)===k?(l=k,Ct+=2):(l=a,0===Dt&&Mt(G)),l===a&&(62===t.charCodeAt(Ct)?(l=">",Ct++):(l=a,0===Dt&&Mt(K)),l===a&&(t.substr(Ct,2)===C?(l=C,Ct+=2):(l=a,0===Dt&&Mt(X)),l===a&&(60===t.charCodeAt(Ct)?(l="<",Ct++):(l=a,0===Dt&&Mt(Y))))),l!==a?(s=Zt(),(c=Ut())!==a?o=i=[i,l,s,c]:(Ct=o,o=a)):(Ct=o,o=a);o!==a;)r.push(o),o=Ct,i=Zt(),t.substr(Ct,2)===k?(l=k,Ct+=2):(l=a,0===Dt&&Mt(G)),l===a&&(62===t.charCodeAt(Ct)?(l=">",Ct++):(l=a,0===Dt&&Mt(K)),l===a&&(t.substr(Ct,2)===C?(l=C,Ct+=2):(l=a,0===Dt&&Mt(X)),l===a&&(60===t.charCodeAt(Ct)?(l="<",Ct++):(l=a,0===Dt&&Mt(Y))))),l!==a?(s=Zt(),(c=Ut())!==a?o=i=[i,l,s,c]:(Ct=o,o=a)):(Ct=o,o=a);Et=e,e=h(n,r)}else Ct=e,e=a;return e}function Ut(){var e,n,r,o,i,l,s,c;if(e=Ct,(n=qt())!==a){for(r=[],o=Ct,i=Zt(),43===t.charCodeAt(Ct)?(l=E,Ct++):(l=a,0===Dt&&Mt(Z)),l===a&&(45===t.charCodeAt(Ct)?(l=A,Ct++):(l=a,0===Dt&&Mt(Q))),l!==a?(s=Zt(),(c=qt())!==a?o=i=[i,l,s,c]:(Ct=o,o=a)):(Ct=o,o=a);o!==a;)r.push(o),o=Ct,i=Zt(),43===t.charCodeAt(Ct)?(l=E,Ct++):(l=a,0===Dt&&Mt(Z)),l===a&&(45===t.charCodeAt(Ct)?(l=A,Ct++):(l=a,0===Dt&&Mt(Q))),l!==a?(s=Zt(),(c=qt())!==a?o=i=[i,l,s,c]:(Ct=o,o=a)):(Ct=o,o=a);Et=e,e=h(n,r)}else Ct=e,e=a;return e}function qt(){var e,n,r,o,i,l,s,c;if(e=Ct,(n=Ht())!==a){for(r=[],o=Ct,i=Zt(),47===t.charCodeAt(Ct)?(l="/",Ct++):(l=a,0===Dt&&Mt(tt)),l===a&&(42===t.charCodeAt(Ct)?(l="*",Ct++):(l=a,0===Dt&&Mt(et)),l===a&&(37===t.charCodeAt(Ct)?(l="%",Ct++):(l=a,0===Dt&&Mt(nt)))),l!==a?(s=Zt(),(c=Ht())!==a?o=i=[i,l,s,c]:(Ct=o,o=a)):(Ct=o,o=a);o!==a;)r.push(o),o=Ct,i=Zt(),47===t.charCodeAt(Ct)?(l="/",Ct++):(l=a,0===Dt&&Mt(tt)),l===a&&(42===t.charCodeAt(Ct)?(l="*",Ct++):(l=a,0===Dt&&Mt(et)),l===a&&(37===t.charCodeAt(Ct)?(l="%",Ct++):(l=a,0===Dt&&Mt(nt)))),l!==a?(s=Zt(),(c=Ht())!==a?o=i=[i,l,s,c]:(Ct=o,o=a)):(Ct=o,o=a);Et=e,e=h(n,r)}else Ct=e,e=a;return e}function Ht(){var e,n,r;return(e=Xt())===a&&(e=Kt())===a&&(e=Ct,33===t.charCodeAt(Ct)?(n="!",Ct++):(n=a,0===Dt&&Mt(rt)),n===a&&(43===t.charCodeAt(Ct)?(n=E,Ct++):(n=a,0===Dt&&Mt(Z)),n===a&&(45===t.charCodeAt(Ct)?(n=A,Ct++):(n=a,0===Dt&&Mt(Q)))),n!==a?(Zt(),(r=Ht())!==a?(Et=e,e={type:"UnaryExpression",operator:n,argument:r}):(Ct=e,e=a)):(Ct=e,e=a),e===a&&(e=function(){var e,n,r,o,i;return e=Ct,(n=Yt())!==a?(Zt(),40===t.charCodeAt(Ct)?(r="(",Ct++):(r=a,0===Dt&&Mt(ot)),r!==a?(Zt(),o=function(){var e,n,r,o,i,l,s;if(e=Ct,(n=Tt())!==a){for(r=[],o=Ct,Zt(),44===t.charCodeAt(Ct)?(i=",",Ct++):(i=a,0===Dt&&Mt(at)),i!==a?(Zt(),(l=Tt())!==a?o=l:(Ct=o,o=a)):(Ct=o,o=a);o!==a;)r.push(o),o=Ct,Zt(),44===t.charCodeAt(Ct)?(i=",",Ct++):(i=a,0===Dt&&Mt(at)),i!==a?(Zt(),(l=Tt())!==a?o=l:(Ct=o,o=a)):(Ct=o,o=a);Et=e,s=r,e=[n,...s]}else Ct=e,e=a;return e===a&&(e=Zt()),e}(),o!==a?(Zt(),41===t.charCodeAt(Ct)?(i=")",Ct++):(i=a,0===Dt&&Mt(it)),i!==a?(Et=e,e={type:"CallExpression",callee:n,arguments:o}):(Ct=e,e=a)):(Ct=e,e=a)):(Ct=e,e=a)):(Ct=e,e=a),e===a&&(e=Ct,(n=Yt())!==a&&(Et=e,n={type:"Variable",id:n}),(e=n)===a&&(e=function(){var e,n,r,o;return e=function(){var e,n,r,o;return Dt++,e=Ct,39===t.charCodeAt(Ct)?(n="'",Ct++):(n=a,0===Dt&&Mt(st)),n!==a?(r=function(){var t,e,n;for(t=Ct,e=[],n=Gt();n!==a;)e.push(n),n=Gt();return Et=t,e=p(e)}(),39===t.charCodeAt(Ct)?(o="'",Ct++):(o=a,0===Dt&&Mt(st)),o!==a?(Et=e,e=r):(Ct=e,e=a)):(Ct=e,e=a),Dt--,e===a&&(n=a,0===Dt&&Mt(lt)),e}(),e===a&&(e=Xt())===a&&(e=Kt())===a&&(e=function(){var e,n;return Dt++,e=Ct,t.substr(Ct,4)===j?(n=j,Ct+=4):(n=a,0===Dt&&Mt(vt)),n!==a&&(Et=e,n={type:"BooleanLiteral",value:!0}),(e=n)===a&&(e=Ct,t.substr(Ct,5)===V?(n=V,Ct+=5):(n=a,0===Dt&&Mt($t)),n!==a&&(Et=e,n={type:"BooleanLiteral",value:!1}),e=n),Dt--,e===a&&(n=a,0===Dt&&Mt(mt)),e}(),e===a&&(e=Ct,40===t.charCodeAt(Ct)?(n="(",Ct++):(n=a,0===Dt&&Mt(ot)),n!==a&&(r=Tt())!==a?(41===t.charCodeAt(Ct)?(o=")",Ct++):(o=a,0===Dt&&Mt(it)),o!==a?(Et=e,e=r):(Ct=e,e=a)):(Ct=e,e=a))),e}())),e}())),e}function Gt(){var e,n,r,o,i;if(e=Ct,t.substr(Ct,2)===u?(n=u,Ct+=2):(n=a,0===Dt&&Mt(z)),n!==a?(r=Zt(),(o=Tt())!==a?(Zt(),125===t.charCodeAt(Ct)?(i=d,Ct++):(i=a,0===Dt&&Mt(M)),i!==a?(Et=e,e=o):(Ct=e,e=a)):(Ct=e,e=a)):(Ct=e,e=a),e===a&&(e=Ct,t.substr(Ct,3)===$?(n=$,Ct+=3):(n=a,0===Dt&&Mt(J)),n!==a&&(Et=e,n=""),(e=n)===a&&(e=Ct,n=Ct,Dt++,92===t.charCodeAt(Ct)?(r=y,Ct++):(r=a,0===Dt&&Mt(O)),r===a&&(39===t.charCodeAt(Ct)?(r="'",Ct++):(r=a,0===Dt&&Mt(st)),r===a&&(t.substr(Ct,2)===u?(r=u,Ct+=2):(r=a,0===Dt&&Mt(z)))),Dt--,r===a?n=void 0:(Ct=n,n=a),n!==a?(t.length>Ct?(r=t.charAt(Ct),Ct++):(r=a,0===Dt&&Mt(T)),r!==a?(Et=e,e=Pt()):(Ct=e,e=a)):(Ct=e,e=a),e===a))){if(e=Ct,t.substr(Ct,2)===u?(n=u,Ct+=2):(n=a,0===Dt&&Mt(z)),n!==a){if(r=[],P.test(t.charAt(Ct))?(o=t.charAt(Ct),Ct++):(o=a,0===Dt&&Mt(ct)),o!==a)for(;o!==a;)r.push(o),P.test(t.charAt(Ct))?(o=t.charAt(Ct),Ct++):(o=a,0===Dt&&Mt(ct));else r=a;r!==a?(125===t.charCodeAt(Ct)?(o=d,Ct++):(o=a,0===Dt&&Mt(M)),o!==a?(Et=e,e=function(){throw new Error("Error tokenizing '"+t+"'.")}()):(Ct=e,e=a)):(Ct=e,e=a)}else Ct=e,e=a;e===a&&(e=Ct,t.substr(Ct,2)===u?(n=u,Ct+=2):(n=a,0===Dt&&Mt(z)),n!==a&&(Et=e,n=function(){throw new Error("Error tokenizing '"+t+"'.")}()),(e=n)===a&&(e=Ct,92===t.charCodeAt(Ct)?(n=y,Ct++):(n=a,0===Dt&&Mt(O)),n!==a?(t.substr(Ct,2)===u?(r=u,Ct+=2):(r=a,0===Dt&&Mt(z)),r!==a?(Et=e,e=r):(Ct=e,e=a)):(Ct=e,e=a),e===a&&(e=Ct,92===t.charCodeAt(Ct)?(n=y,Ct++):(n=a,0===Dt&&Mt(O)),n!==a?(t.length>Ct?(r=t.charAt(Ct),Ct++):(r=a,0===Dt&&Mt(T)),r!==a?(Et=e,e=m(r)):(Ct=e,e=a)):(Ct=e,e=a),e===a&&(e=Ct,92===t.charCodeAt(Ct)?(n=y,Ct++):(n=a,0===Dt&&Mt(O)),n!==a&&(Et=e,n=function(){throw new Error("Error tokenizing '"+t+"'.")}()),e=n))))}return e}function Kt(){var e,n,r,o;if(Dt++,e=Ct,45===t.charCodeAt(Ct)?(n=A,Ct++):(n=a,0===Dt&&Mt(Q)),n===a&&(n=null),r=[],S.test(t.charAt(Ct))?(o=t.charAt(Ct),Ct++):(o=a,0===Dt&&Mt(dt)),o!==a)for(;o!==a;)r.push(o),S.test(t.charAt(Ct))?(o=t.charAt(Ct),Ct++):(o=a,0===Dt&&Mt(dt));else r=a;return r!==a?(Et=e,e={type:"IntegerLiteral",value:g(Pt())}):(Ct=e,e=a),Dt--,e===a&&(n=a,0===Dt&&Mt(ut)),e}function Xt(){var e,n,r,o,i,l,s,c,u,d;for(Dt++,e=Ct,45===t.charCodeAt(Ct)?(n=A,Ct++):(n=a,0===Dt&&Mt(Q)),n===a&&(n=null),r=[],S.test(t.charAt(Ct))?(o=t.charAt(Ct),Ct++):(o=a,0===Dt&&Mt(dt));o!==a;)r.push(o),S.test(t.charAt(Ct))?(o=t.charAt(Ct),Ct++):(o=a,0===Dt&&Mt(dt));if(46===t.charCodeAt(Ct)?(o=".",Ct++):(o=a,0===Dt&&Mt(ft)),o!==a){if(i=[],S.test(t.charAt(Ct))?(l=t.charAt(Ct),Ct++):(l=a,0===Dt&&Mt(dt)),l!==a)for(;l!==a;)i.push(l),S.test(t.charAt(Ct))?(l=t.charAt(Ct),Ct++):(l=a,0===Dt&&Mt(dt));else i=a;if(i!==a){if(l=Ct,101===t.charCodeAt(Ct)?(s="e",Ct++):(s=a,0===Dt&&Mt(pt)),s===a&&(69===t.charCodeAt(Ct)?(s="E",Ct++):(s=a,0===Dt&&Mt(gt))),s!==a){if(43===t.charCodeAt(Ct)?(c=E,Ct++):(c=a,0===Dt&&Mt(Z)),c===a&&(45===t.charCodeAt(Ct)?(c=A,Ct++):(c=a,0===Dt&&Mt(Q))),c===a&&(c=null),u=[],S.test(t.charAt(Ct))?(d=t.charAt(Ct),Ct++):(d=a,0===Dt&&Mt(dt)),d!==a)for(;d!==a;)u.push(d),S.test(t.charAt(Ct))?(d=t.charAt(Ct),Ct++):(d=a,0===Dt&&Mt(dt));else u=a;u!==a?l=s=[s,c,u]:(Ct=l,l=a)}else Ct=l,l=a;l===a&&(l=null),Et=e,e={type:"NumberLiteral",value:parseFloat(Pt())}}else Ct=e,e=a}else Ct=e,e=a;if(e===a){if(e=Ct,45===t.charCodeAt(Ct)?(n=A,Ct++):(n=a,0===Dt&&Mt(Q)),n===a&&(n=null),r=[],S.test(t.charAt(Ct))?(o=t.charAt(Ct),Ct++):(o=a,0===Dt&&Mt(dt)),o!==a)for(;o!==a;)r.push(o),S.test(t.charAt(Ct))?(o=t.charAt(Ct),Ct++):(o=a,0===Dt&&Mt(dt));else r=a;if(r!==a)if(101===t.charCodeAt(Ct)?(o="e",Ct++):(o=a,0===Dt&&Mt(pt)),o===a&&(69===t.charCodeAt(Ct)?(o="E",Ct++):(o=a,0===Dt&&Mt(gt))),o!==a){if(43===t.charCodeAt(Ct)?(i=E,Ct++):(i=a,0===Dt&&Mt(Z)),i===a&&(45===t.charCodeAt(Ct)?(i=A,Ct++):(i=a,0===Dt&&Mt(Q))),i===a&&(i=null),l=[],S.test(t.charAt(Ct))?(s=t.charAt(Ct),Ct++):(s=a,0===Dt&&Mt(dt)),s!==a)for(;s!==a;)l.push(s),S.test(t.charAt(Ct))?(s=t.charAt(Ct),Ct++):(s=a,0===Dt&&Mt(dt));else l=a;l!==a?(Et=e,e={type:"NumberLiteral",value:parseFloat(Pt())}):(Ct=e,e=a)}else Ct=e,e=a;else Ct=e,e=a}return Dt--,e===a&&(n=a,0===Dt&&Mt(ht)),e}function Yt(){var e,n,r,o,i;if(Dt++,e=Ct,n=Ct,Dt++,r=function(){var e,n,r,o;return e=Ct,t.substr(Ct,4)===j?(n=j,Ct+=4):(n=a,0===Dt&&Mt(vt)),n===a&&(t.substr(Ct,5)===V?(n=V,Ct+=5):(n=a,0===Dt&&Mt($t))),n!==a?(r=Ct,Dt++,F.test(t.charAt(Ct))?(o=t.charAt(Ct),Ct++):(o=a,0===Dt&&Mt(yt)),Dt--,o===a?r=void 0:(Ct=r,r=a),r!==a?e=n=[n,r]:(Ct=e,e=a)):(Ct=e,e=a),e}(),Dt--,r===a?n=void 0:(Ct=n,n=a),n!==a)if(I.test(t.charAt(Ct))?(r=t.charAt(Ct),Ct++):(r=a,0===Dt&&Mt(bt)),r!==a){for(o=[],F.test(t.charAt(Ct))?(i=t.charAt(Ct),Ct++):(i=a,0===Dt&&Mt(yt));i!==a;)o.push(i),F.test(t.charAt(Ct))?(i=t.charAt(Ct),Ct++):(i=a,0===Dt&&Mt(yt));Et=e,e={type:"Identifier",name:Pt()}}else Ct=e,e=a;else Ct=e,e=a;return Dt--,e===a&&(n=a,0===Dt&&Mt(_t)),e}function Zt(){var e,n;for(Dt++,e=[],N.test(t.charAt(Ct))?(n=t.charAt(Ct),Ct++):(n=a,0===Dt&&Mt(wt));n!==a;)e.push(n),N.test(t.charAt(Ct))?(n=t.charAt(Ct),Ct++):(n=a,0===Dt&&Mt(wt));return Dt--,n=a,0===Dt&&Mt(xt),e}if((n=c())!==a&&Ct===t.length)return n;throw n!==a&&Ct<t.length&&Mt({type:"end"}),r=Vt,o=jt<t.length?t.charAt(jt):null,i=jt<t.length?zt(jt,jt+1):zt(jt,jt),new v(v.buildMessage(r,o),r,o,i)}!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=$("",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+" | "+$("",o.column-1," ")+$("",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 x(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 w(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 C(t,e){for(;t.length<e;)t="0"+t;return t}function E(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=j(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=>C(Math.round(t).toString(16),2))).join("")):"rgba(".concat(t.r,",").concat(t.g,",").concat(t.b,",").concat((t.a/255).toFixed(2),")")}function j(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 V(t){return"url"===t.type||"color"===t.type?{type:"string",value:t.value}:t}function D(t){return t.toISOString().replace("T"," ").replace(/\.\d{3}Z$/,"")}function P(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 D(t.value);if("color"===t.type)return T(O(t.value));if("url"===t.type)return t.value;throw new Error("Unexpected type ".concat(t.type))}function S(t){let e=P(t);return"string"===t.type&&(e="'"+e.replace(/\\/g,"\\'").replace(/'/g,"\\'")+"'"),e}function F(t){return"datetime"===t?"DateTime":t.charAt(0).toUpperCase()+t.substring(1)}const I=new Int32Array(1);function N(t){return I[0]=t,I[0]}function z(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 J(t,e){throw new Error("Failed to evaluate [".concat(t,"]. ").concat(e))}function O(t){const e=j(t);if(e)return e;throw new Error("Unable to convert value to Color, expected format #AARRGGBB.")}function T(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 C(Math.round(t).toString(16),2)})).join("").toUpperCase())}function B(t){return{type:a,value:P(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){if(0===e.value)throw new Error("Division by zero is not supported.");let n=t.value/e.value;return t.type===l&&(n=N(n)),{type:t.type,value:n}}function L(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=N(n)),{type:t.type,value:n}}function U(){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=N(r));return{type:e[0].type,value:r}}function q(){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=N(r));return{type:e.length?e[0].type:l,value:r}}function H(){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=N(t));return{type:n.length?n[0].type:l,value:t}}function G(t){const e=Math.abs(t.value);return t.type===l&&z(e),{type:t.type,value:e}}function K(){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.");return{type:e[0].type,value:Math.max(...e.map((t=>t.value)))}}function X(){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.");return{type:e[0].type,value:Math.min(...e.map((t=>t.value)))}}function Y(t){return{type:t.type,value:Math.sign(t.value)}}function Z(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&&z(n),{type:t.type,value:n}}function Q(t){return e=>{const n=O(e.value);return{type:s,value:n[t]/255}}}function tt(t){return(e,n)=>{const r=O(e.value);return r[t]=255*n.value,{type:e.type,value:T(r)}}}const et=Q("a"),nt=Q("r"),rt=Q("g"),ot=Q("b"),it=tt("a"),at=tt("r"),lt=tt("g"),st=tt("b");function ct(){}const ut=t=>t;function dt(t,e){for(const n in e)t[n]=e[n];return t}function ht(t){return t()}function ft(){return Object.create(null)}function pt(t){t.forEach(ht)}function gt(t){return"function"==typeof t}let mt;function vt(t,e){return mt||(mt=document.createElement("a")),mt.href=e,t===mt.href}function $t(t,e){return t!=t?e==e:t!==e}function yt(t){return 0===Object.keys(t).length}function _t(t,...e){if(null==t)return ct;const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function bt(t,e,n){t.$$.on_destroy.push(_t(e,n))}function xt(t,e,n,r){if(t){const o=wt(t,e,n,r);return t[0](o)}}function wt(t,e,n,r){return t[1]&&r?dt(n.ctx.slice(),t[1](r(e))):n.ctx}function kt(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 Ct(t,e,n,r,o,i){if(o){const a=wt(e,n,r,i);t.p(a,o)}}function Et(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 At(t){return t&>(t.destroy)?t.destroy:ct}const jt="undefined"!=typeof window;let Vt=jt?()=>window.performance.now():()=>Date.now(),Dt=jt?t=>requestAnimationFrame(t):ct;const Pt=new Set;function St(t){Pt.forEach((e=>{e.c(t)||(Pt.delete(e),e.f())})),0!==Pt.size&&Dt(St)}let Ft=!1;function It(t,e,n,r){for(;t<e;){const o=t+(e-t>>1);n(o)<=r?t=o+1:e=o}return t}function Nt(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function zt(t){const e=Bt("style");return function(t,e){!function(t,e){t.appendChild(e)}(t.head||t,e)}(Nt(t),e),e.sheet}function Mt(t,e){if(Ft){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:It(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 Jt(t,e,n){Ft&&!n?Mt(t,e):e.parentNode===t&&e.nextSibling==n||t.insertBefore(e,n||null)}function Ot(t){t.parentNode.removeChild(t)}function Tt(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function Bt(t){return document.createElement(t)}function Rt(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Wt(t){return document.createTextNode(t)}function Lt(){return Wt(" ")}function Ut(){return Wt("")}function qt(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function Ht(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function Gt(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]:Ht(t,r,e[r])}function Kt(t){return Array.from(t.childNodes)}function Xt(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 Yt(t,e,n,r){return Xt(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 Zt(t,e,n){return Yt(t,e,n,Bt)}function Qt(t,e,n){return Yt(t,e,n,Rt)}function te(t,e){return Xt(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}),(()=>Wt(e)),!0)}function ee(t){return te(t," ")}function ne(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function re(t,e,n,r){null===n?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}const oe=new Map;let ie,ae=0;function le(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(", "),ae-=o,ae||Dt((()=>{ae||(oe.forEach((t=>{const{stylesheet:e}=t;let n=e.cssRules.length;for(;n--;)e.deleteRule(n);t.rules={}})),oe.clear())})))}function se(t){ie=t}function ce(){if(!ie)throw new Error("Function called outside component initialization");return ie}function ue(t){ce().$$.on_mount.push(t)}function de(t){ce().$$.on_destroy.push(t)}function he(t,e){return ce().$$.context.set(t,e),e}function fe(t){return ce().$$.context.get(t)}function pe(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((t=>t.call(this,e)))}const ge=[],me=[],ve=[],$e=[],ye=Promise.resolve();let _e=!1;function be(){_e||(_e=!0,ye.then(Ae))}function xe(){return be(),ye}function we(t){ve.push(t)}const ke=new Set;let Ce,Ee=0;function Ae(){const t=ie;do{for(;Ee<ge.length;){const t=ge[Ee];Ee++,se(t),je(t.$$)}for(se(null),ge.length=0,Ee=0;me.length;)me.pop()();for(let t=0;t<ve.length;t+=1){const e=ve[t];ke.has(e)||(ke.add(e),e())}ve.length=0}while(ge.length);for(;$e.length;)$e.pop()();_e=!1,ke.clear(),se(t)}function je(t){if(null!==t.fragment){t.update(),pt(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(we)}}function Ve(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 De=new Set;let Pe;function Se(){Pe={r:0,c:[],p:Pe}}function Fe(){Pe.r||pt(Pe.c),Pe=Pe.p}function Ie(t,e){t&&t.i&&(De.delete(t),t.i(e))}function Ne(t,e,n,r){if(t&&t.o){if(De.has(t))return;De.add(t),Pe.c.push((()=>{De.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}else r&&r()}const ze={duration:0};function Me(t,e,n){let r,o,i=e(t,n),a=!1,l=0;function s(){r&&le(t,r)}function c(){const{delay:e=0,duration:n=300,easing:c=ut,tick:u=ct,css:d}=i||ze;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=Nt(t),{stylesheet:f,rules:p}=oe.get(h)||function(t,e){const n={stylesheet:zt(e),rules:{}};return oe.set(t,n),n}(h,t);p[d]||(p[d]=!0,f.insertRule(`@keyframes ${d} ${u}`,f.cssRules.length));const g=t.style.animation||"";return t.style.animation=`${g?`${g}, `:""}${d} ${r}ms linear ${o}ms 1 both`,ae+=1,d}(t,0,1,n,e,c,d,l++)),u(0,1);const h=Vt()+e,f=h+n;o&&o.abort(),a=!0,we((()=>Ve(t,!0,"start"))),o=function(t){let e;return 0===Pt.size&&Dt(St),{promise:new Promise((n=>{Pt.add(e={c:t,f:n})})),abort(){Pt.delete(e)}}}((e=>{if(a){if(e>=f)return u(1,0),Ve(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,le(t),gt(i)?(i=i(),(Ce||(Ce=Promise.resolve(),Ce.then((()=>{Ce=null}))),Ce).then(c)):c())},invalidate(){u=!1},end(){a&&(s(),a=!1)}}}const Je="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function Oe(t,e){Ne(t,1,1,(()=>{e.delete(t.key)}))}function Te(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 Be;function Re(t){t&&t.c()}function We(t,e){t&&t.l(e)}function Le(t,e,n,r){const{fragment:o,on_mount:i,on_destroy:a,after_update:l}=t.$$;o&&o.m(e,n),r||we((()=>{const e=i.map(ht).filter(gt);a?a.push(...e):pt(e),t.$$.on_mount=[]})),l.forEach(we)}function Ue(t,e){const n=t.$$;null!==n.fragment&&(pt(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function qe(t,e,n,r,o,i,a,l=[-1]){const s=ie;se(t);const c=t.$$={fragment:null,ctx:null,props:i,update:ct,not_equal:o,bound:ft(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:ft(),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]&&(ge.push(t),be(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(t,e)),n})):[],c.update(),u=!0,pt(c.before_update),c.fragment=!!r&&r(c.ctx),e.target){if(e.hydrate){Ft=!0;const t=Kt(e.target);c.fragment&&c.fragment.l(t),t.forEach(Ot)}else c.fragment&&c.fragment.c();e.intro&&Ie(t.$$.fragment),Le(t,e.target,e.anchor,e.customElement),Ft=!1,Ae()}se(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&&(Be=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(ht).filter(gt);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,n){this[t]=n}disconnectedCallback(){pt(this.$$.on_disconnect)}$destroy(){Ue(this,1),this.$destroy=ct}$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&&!yt(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});class He{$destroy(){Ue(this,1),this.$destroy=ct}$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&&!yt(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Ge=[];function Ke(t,e=ct){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=!Ge.length;for(const e of r)e[1](),Ge.push(e,t);if(e){for(let t=0;t<Ge.length;t+=2)Ge[t][0](Ge[t+1]);Ge.length=0}}var o,i}return{set:o,update:function(e){o(e(t))},subscribe:function(i,a=ct){const l=[i,a];return r.add(l),1===r.size&&(n=e(o)||ct),i(t),()=>{r.delete(l),0===r.size&&(n(),n=null)}}}}function Xe(t,e,n){const r=!Array.isArray(t),o=r?[t]:t,i=e.length<2;return{subscribe:Ke(n,(t=>{let n=!1;const a=[];let l=0,s=ct;const c=()=>{if(l)return;s();const n=e(r?a[0]:a,t);i?t(n):s=gt(n)?n:ct},u=o.map(((t,e)=>_t(t,(t=>{a[e]=t,l&=~(1<<e),n&&c()}),(()=>{l|=1<<e}))));return n=!0,c(),function(){pt(u),s()}})).subscribe}}class Ye{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=Ke(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 Ze={string:class extends Ye{convertValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value");return t}fromString(t){return t}getType(){return"string"}},number:class extends Ye{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 Ye{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 Ye{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 Ye{convertValue(t){if("string"!=typeof t||!j(t))throw new Error("Incorrect variable value");return t}fromString(t){return this.convertValue(t)}getType(){return"color"}},url:class extends Ye{convertValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value");return t}fromString(t){return t}getType(){return"url"}}};function Qe(t,e,n){if(!(e in Ze))throw new Error("Unsupported variable type");return new Ze[e](t,n)}function tn(t){return t.map(S).join(", ")}x("toString",[l],B),x("toString",[s],B),x("toString",[c],B),x("toString",[u],B),x("toString",["url"],B),x("toNumber",[l],R),x("toNumber",[a],R),x("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}})),x("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}})),x("toInteger",[c],(function(t){return{type:l,value:t.value?1:0}})),x("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}})),x("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}})),x("encodeUri",[a],(function(t){try{return{type:a,value:encodeURIComponent(t.value)}}catch(t){throw new Error("Unable to encodeUri string.")}})),x("decodeUri",[a],(function(t){try{return{type:a,value:decodeURIComponent(t.value)}}catch(t){throw new Error("Unable to decodeUri string.")}})),x("parseUnixTime",[l],(function(t){return{type:d,value:new Date(1e3*t.value)}})),x("nowLocal",[],(function(){return{type:d,value:new Date}})),x("addMillis",[d,l],(function(t,e){return{type:d,value:new Date(t.value.getTime()+e.value)}})),x("setYear",[d,l],(function(t,e){const n=new Date(t.value);return n.setFullYear(e.value),{type:d,value:n}})),x("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}})),x("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(P(t),"."));return n.setDate(-1===e.value?0:e.value),{type:d,value:n}})),x("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}})),x("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}})),x("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}})),x("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}})),x("len",[a],(function(t){return{type:l,value:t.value.length}})),x("contains",[a,a],(function(t,e){return{type:c,value:t.value.includes(e.value)?1:0}})),x("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)}})),x("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}})),x("index",[a,a],(function(t,e){return{type:l,value:t.value.indexOf(e.value)}})),x("lastIndex",[a,a],(function(t,e){return{type:l,value:t.value.lastIndexOf(e.value)}})),x("trim",[a],(function(t){return{type:a,value:t.value.trim()}})),x("trimLeft",[a],(function(t){return{type:a,value:t.value.replace(/^\s+/,"")}})),x("trimRight",[a],(function(t){return{type:a,value:t.value.replace(/\s+$/,"")}})),x("toUpperCase",[a],(function(t){return{type:a,value:t.value.toUpperCase()}})),x("toLowerCase",[a],(function(t){return{type:a,value:t.value.toLowerCase()}})),x("div",[l,l],W),x("div",[s,s],W),x("mod",[l,l],L),x("mod",[s,s],L),x("mul",[{type:l,isVararg:!0}],U),x("mul",[{type:s,isVararg:!0}],U),x("sub",[{type:l,isVararg:!0}],q),x("sub",[{type:s,isVararg:!0}],q),x("sum",[{type:l,isVararg:!0}],H),x("sum",[{type:s,isVararg:!0}],H),x("abs",[l],G),x("abs",[s],G),x("max",[{type:l,isVararg:!0}],K),x("max",[{type:s,isVararg:!0}],K),x("min",[{type:l,isVararg:!0}],X),x("min",[{type:s,isVararg:!0}],X),x("maxNumber",[],(function(){return{type:s,value:o}})),x("minNumber",[],(function(){return{type:s,value:i}})),x("maxInteger",[],(function(){return{type:l,value:n}})),x("minInteger",[],(function(){return{type:l,value:r}})),x("round",[s],(function(t){const e=Math.sign(t.value);return{type:s,value:e*Math.round(Math.abs(t.value))}})),x("floor",[s],(function(t){return{type:s,value:Math.floor(t.value)}})),x("ceil",[s],(function(t){return{type:s,value:Math.ceil(t.value)}})),x("signum",[s],Y),x("signum",[l],Y),x("copySign",[s,s],Z),x("copySign",[l,l],Z),x("getColorAlpha",[a],et),x("getColorAlpha",[u],et),x("getColorRed",[a],nt),x("getColorRed",[u],nt),x("getColorGreen",[a],rt),x("getColorGreen",[u],rt),x("getColorBlue",[a],ot),x("getColorBlue",[u],ot),x("setColorAlpha",[a,s],it),x("setColorAlpha",[u,s],it),x("setColorRed",[a,s],at),x("setColorRed",[u,s],at),x("setColorGreen",[a,s],lt),x("setColorGreen",[u,s],lt),x("setColorBlue",[a,s],st),x("setColorBlue",[u,s],st),x("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:a,value:T(r)}})),x("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:a,value:T(o)}}));const en={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=V(nn(t,e.argument));switch(e.operator){case"!":if(n.type===c)return{type:c,value:n.value?0:1};J("".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};J("".concat(e.operator).concat(S(n)),"A Number is expected after a unary ".concat("+"===e.operator?"plus":"minus","."))}},ConditionalExpression:function(t,e){const n=V(nn(t,e.test));if(n.type===c)return n.value?nn(t,e.consequent):nn(t,e.alternate);J("".concat(S(n)," ? ").concat(S(nn(t,e.consequent))," : ").concat(S(nn(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 nn(t,e.expressions[0]);for(let r=0;r<e.expressions.length;++r)n+=e.quasis[r].value,n+=P(nn(t,e.expressions[r]));return n+=e.quasis[e.quasis.length-1].value,{type:a,value:n}},LogicalExpression:function(t,e){const n=V(nn(t,e.left));if(n.type!==c&&J("".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=V(nn(t,e.right));return r.type!==c&&J("".concat(S(n)," ").concat(e.operator," ").concat(S(r)),"Operator '".concat(e.operator,"' cannot be applied to different types: Boolean and ").concat(F(r.type),".")),{type:c,value:r.value}},BinaryExpression:function(t,e){const n=e.operator,r=nn(t,e.left),o=nn(t,e.right);if(r.type!==o.type&&J("".concat(S(r)," ").concat(e.operator," ").concat(S(o)),"Operator '".concat(n,"' cannot be applied to different types: ").concat(F(r.type)," and ").concat(F(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&&J("".concat(S(e)," ").concat(t," ").concat(S(n)),"Operator '".concat(t,"' cannot be applied to ").concat(F(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&&J("".concat(S(e)," ").concat(t," ").concat(S(n)),"Operator '".concat(t,"' cannot be applied to ").concat(F(e.type)," type.")),e.type===a)return"-"===t&&J("".concat(S(e)," - ").concat(S(n)),"Operator '".concat(t,"' cannot be applied to ").concat(F(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=N(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&&J("".concat(S(e)," ").concat(t," ").concat(S(n)),"Operator '".concat(t,"' cannot be applied to ").concat(F(e.type)," type.")),"*"===t)r=e.value*n.value;else{if("/"!==t&&"%"!==t)throw new Error("Unsupported operation ".concat(t));0===n.value&&J("".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=N(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=>nn(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=w(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=>F(t.type))).join(", "),r="".concat(n,"(").concat(tn(o),")");"few"===t.type&&0===o.length?J(r,"Non empty argument list is required for function '".concat(n,"'.")):(t.type,J(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){J("".concat(n,"(").concat(tn(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 nn(t,e){if(e.type in en)return en[e.type](t,e);throw new Error("Unsupported expression")}function rn(t,e){try{return nn(t,e)}catch(t){return{type:"error",value:t.message}}}const on="divkit-b023",an="divkit-bd25",ln="divkit-c016",sn="divkit-ee11",cn="divkit-fef1",un=Symbol("root");function dn(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 hn={text:"divkit-d9b0",text_halign_left:"divkit-a4cb",text_halign_center:"divkit-e165",text_halign_right:"divkit-ea28",text_valign_top:"divkit-d8ce",text_valign_center:"divkit-ef58",text_valign_bottom:"divkit-fe8e",text_width_content:"divkit-f41f",text_height_content:"divkit-ea52",text__inner:"divkit-b852",text_singleline:"divkit-ef11",text_truncate_none:"divkit-c6ea",text_multiline:"divkit-ee8e",text__inner_gradient:"divkit-cb8e",text__image:"divkit-bf6e",text__image_hidden:"divkit-f100"},fn={outer:"divkit-d65a","outer_hide-on-transition-in":"divkit-a6d1","outer_halign-self_start":"divkit-cc45","outer_halign-self_center":"divkit-b833","outer_halign-self_end":"divkit-c573","outer_halign-self_stretch":"divkit-dcc7","outer_valign-self_start":"divkit-e807","outer_valign-self_center":"divkit-d40a","outer_valign-self_end":"divkit-e9f8","outer_valign-self_stretch":"divkit-b7aa","outer_parent-flex_vertical":"divkit-c143","outer_parent-flex_horizontal":"divkit-ef30","outer_width-constrained":"divkit-d321","outer_height-constrained":"divkit-a525","outer_parent-overlap":"divkit-dab2","outer_parent-overlap-absolute":"divkit-d43f","outer_scroll-snap_center":"divkit-d9e3","outer_scroll-snap_start":"divkit-efd1",outer__border:"divkit-d405",outer_visibility_invisible:"divkit-f018",outer_visibility_gone:"divkit-e784","outer_has-action-animation":"divkit-f498"};function pn(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 gn(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 mn(t){let e=gn(t);return"0"===e&&(e+="em"),e}function vn(t){let e=String(t);return e.indexOf("&")>-1&&(e=e.replace(/&/g,"&")),e.indexOf("<")>-1&&(e=e.replace(/</g,"<")),e.indexOf(">")>-1&&(e=e.replace(/>/g,">")),e.indexOf('"')>-1&&(e=e.replace(/"/g,""")),e}const $n=Boolean;function yn(t){if(1===t.length&&"solid"===t[0].type)return{color:E(t[0].color||"transparent"),size:"auto",position:"50% 50%"};const e=t.map((t=>"solid"===t.type?function(t){const e=E(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($n);return n.length?{size:void 0,pos:void 0,image:"linear-gradient("+(90-Number(t.bg.angle||0))+"deg,"+n.map((t=>E(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:xn(t.bg.scale),pos:wn(t.bg),image:'url("'+vn(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($n);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=mn(r.value):"relative"===r.type&&(o=_n[r.value]));const i=bn(t.bg.center_x),a=bn(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=>E(t))).join(",")+")"}}({bg:t}):void 0)).filter($n).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 _n={nearest_corner:"closest-corner",farthest_corner:"farthest-corner",nearest_side:"closest-side",farthest_side:"farthest-side"};function bn(t){if(t&&"object"==typeof t&&"type"in t&&void 0!==t.value){if("fixed"===t.type)return mn(t.value);if("relative"===t.type)return"".concat(100*Number(t.value),"%")}return"50%"}function xn(t){return"fill"!==t&&t?"fit"===t?"contain":void 0:"cover"}function wn(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 kn(t){const e=/^([^/]+):\/\//.exec(t);return e&&e[1]||""}const Cn=new Set(["http","https","tel","mailto","intent"]);function En(t){return Cn.has(t)}function An(t,e){e&&t.push(e)}function jn(t,e,n){const r=[];An(r,e[t]);for(const o in n)if(n.hasOwnProperty(o)){const i=n[o];i&&An(r,e["".concat(t,"_").concat(o)+("string"==typeof i?"_".concat(i):"")])}return r.join(" ")}const Vn=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})}}},Dn=Symbol("state");function Pn(t){if("number"!=typeof t&&"string"!=typeof t)return!1;const e=Number(t);return!isNaN(e)}function Sn(t){return Pn(t)&&t>=0}function Fn(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]&&!Sn(o[t]))return r;return function(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=>gn((t||e)/n*10))).join(" ")}(t,e,n)}function In(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]&&!Sn(n[t]))return e;return function(t){return gn(t.top||0)+" "+gn(t.right||0)+" "+gn(t.bottom||0)+" "+gn(t.left||0)}(t)}function Nn(t,e){const n=Number(t);return isNaN(n)||n<0?e:n}const zn=Object.prototype.hasOwnProperty;function Mn(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(!zn.call(e,o)||!Mn(t[o],e[o]))return!1}return!0}function Jn(t,e){return Mn(t,e)?e:t}function On(){}const Tn=Symbol("action");function Bn(t){let e,n,r,o,i,a,l;const s=t[12].default,c=xt(s,t,t[11],null);let u=[{class:n=""+(t[0]+(t[7]?" ".concat(t[4]?"":an," ").concat(ln):""))},{style:t[1]},{role:r=t[7]?"button":null},t[2]],d={};for(let t=0;t<u.length;t+=1)d=dt(d,u[t]);return{c(){e=Bt("span"),c&&c.c(),this.h()},l(t){e=Zt(t,"SPAN",{class:!0,style:!0,role:!0});var n=Kt(e);c&&c.l(n),n.forEach(Ot),this.h()},h(){Gt(e,d)},m(n,r){Jt(n,e,r),c&&c.m(e,null),i=!0,a||(l=[At(o=t[3].call(null,e)),qt(e,"click",(function(){gt(t[7]?t[8]:null)&&(t[7]?t[8]:null).apply(this,arguments)})),qt(e,"click",t[15]),qt(e,"keydown",t[16])],a=!0)},p(o,a){t=o,c&&c.p&&(!i||2048&a)&&Ct(c,s,t,t[11],i?kt(s,t[11],a,null):Et(t[11]),null),Gt(e,d=Te(u,[(!i||145&a&&n!==(n=""+(t[0]+(t[7]?" ".concat(t[4]?"":an," ").concat(ln):""))))&&{class:n},(!i||2&a)&&{style:t[1]},(!i||128&a&&r!==(r=t[7]?"button":null))&&{role:r},4&a&&t[2]]))},i(t){i||(Ie(c,t),i=!0)},o(t){Ne(c,t),i=!1},d(t){t&&Ot(e),c&&c.d(t),a=!1,pt(l)}}}function Rn(t){let e,n,r,o,i,a;const l=t[12].default,s=xt(l,t,t[11],null);let c=[{href:t[5]},{target:t[6]},{style:t[1]},{class:n=t[0]+" "+(t[4]?"":an)},t[2]],u={};for(let t=0;t<c.length;t+=1)u=dt(u,c[t]);return{c(){e=Bt("a"),s&&s.c(),this.h()},l(t){e=Zt(t,"A",{href:!0,target:!0,style:!0,class:!0});var n=Kt(e);s&&s.l(n),n.forEach(Ot),this.h()},h(){Gt(e,u)},m(n,l){Jt(n,e,l),s&&s.m(e,null),o=!0,i||(a=[At(r=t[3].call(null,e)),qt(e,"click",t[8]),qt(e,"click",t[13]),qt(e,"keydown",t[14])],i=!0)},p(t,r){s&&s.p&&(!o||2048&r)&&Ct(s,l,t,t[11],o?kt(l,t[11],r,null):Et(t[11]),null),Gt(e,u=Te(c,[(!o||32&r)&&{href:t[5]},(!o||64&r)&&{target:t[6]},(!o||2&r)&&{style:t[1]},(!o||17&r&&n!==(n=t[0]+" "+(t[4]?"":an)))&&{class:n},4&r&&t[2]]))},i(t){o||(Ie(s,t),o=!0)},o(t){Ne(s,t),o=!1},d(t){t&&Ot(e),s&&s.d(t),i=!1,pt(a)}}}function Wn(t){let e,n,r,o;const i=[Rn,Bn],a=[];function l(t,e){return t[5]?0:1}return e=l(t),n=a[e]=i[e](t),{c(){n.c(),r=Ut()},l(t){n.l(t),r=Ut()},m(t,n){a[e].m(t,n),Jt(t,r,n),o=!0},p(t,o){let[s]=o,c=e;e=l(t),e===c?a[e].p(t,s):(Se(),Ne(a[c],1,1,(()=>{a[c]=null})),Fe(),n=a[e],n?n.p(t,s):(n=a[e]=i[e](t),n.c()),Ie(n,1),n.m(r.parentNode,r))},i(t){o||(Ie(n),o=!0)},o(t){Ne(n),o=!1},d(t){a[e].d(t),t&&Ot(r)}}}function Ln(t,e,n){let{$$slots:r={},$$scope:o}=e,{actions:i}=e,{cls:a=""}=e,{style:l=null}=e,{attrs:s}=e,{use:c=On}=e,{customAction:u=null}=e,{hasActionAnimation:d=!1}=e;const h=fe(un),f=fe(Tn);he(Tn,{hasAction:()=>Boolean(f.hasAction()||(null==i?void 0:i.length))});let p,g="";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){g=e,p=i[t].target||void 0;break}}Array.isArray(i)&&(null==i?void 0:i.length)&&f.hasAction()&&(g="",h.logError(dn(new Error("Actionable element is forbidden inside other actionable element"),{level:"warn",additional:{actions:i}})));let m=Boolean(u);return g&&!En(kn(g))&&(g="",m=!0),t.$$set=t=>{"actions"in t&&n(9,i=t.actions),"cls"in t&&n(0,a=t.cls),"style"in t&&n(1,l=t.style),"attrs"in t&&n(2,s=t.attrs),"use"in t&&n(3,c=t.use),"customAction"in t&&n(10,u=t.customAction),"hasActionAnimation"in t&&n(4,d=t.hasActionAnimation),"$$scope"in t&&n(11,o=t.$$scope)},[a,l,s,c,d,g,p,m,function(t){f.hasAction()||void 0!==t.button&&0!==t.button||(!1===(null==u?void 0:u(t))?t.preventDefault():i&&(i.forEach((e=>{const n=e.url;if(n){const r=kn(n);r&&!En(r)&&(t.preventDefault(),"div-action"===r?h.execAction(e):e.log_id&&h.execCustomAction(e))}})),i.forEach((t=>{h.logStat("click",t)}))))},i,u,o,r,function(e){pe.call(this,t,e)},function(e){pe.call(this,t,e)},function(e){pe.call(this,t,e)},function(e){pe.call(this,t,e)}]}const Un=class extends He{constructor(t){super(),qe(this,t,Ln,Wn,$t,{actions:9,cls:0,style:1,attrs:2,use:3,customAction:10,hasActionAnimation:4})}},qn="divkit-b921";function Hn(t,e,n){const r=t.slice();return r[3]=e[n],r}function Gn(t){let e,n,r;return{c(){e=Bt("span"),this.h()},l(t){e=Zt(t,"SPAN",{class:!0,style:!0}),Kt(e).forEach(Ot),this.h()},h(){Ht(e,"class",n=qn),Ht(e,"style",r=pn(t[3].style))},m(t,n){Jt(t,e,n)},p:ct,d(t){t&&Ot(e)}}}function Kn(t){let e,n,r,o,i,a;return{c(){e=Bt("img"),this.h()},l(t){e=Zt(t,"IMG",{src:!0,alt:!0,"aria-hidden":!0,loading:!0,decoding:!0,class:!0,style:!0}),this.h()},h(){vt(e.src,n=t[3].image_url)||Ht(e,"src",n),Ht(e,"alt",""),Ht(e,"aria-hidden","true"),Ht(e,"loading","lazy"),Ht(e,"decoding","async"),Ht(e,"class",r=qn),Ht(e,"style",o=pn(t[3].style))},m(n,r){Jt(n,e,r),i||(a=qt(e,"error",t[1]),i=!0)},p:ct,d(t){t&&Ot(e),i=!1,a()}}}function Xn(t){let e,n=function(t,e){return t[3].image_url?Kn:Gn}(t),r=n(t);return{c(){r.c(),e=Ut()},l(t){r.l(t),e=Ut()},m(t,n){r.m(t,n),Jt(t,e,n)},p(t,e){r.p(t,e)},d(t){r.d(t),t&&Ot(e)}}}function Yn(t){let e,n,r=t[0],o=[];for(let e=0;e<r.length;e+=1)o[e]=Xn(Hn(t,r,e));return{c(){e=Bt("span");for(let t=0;t<o.length;t+=1)o[t].c();this.h()},l(t){e=Zt(t,"SPAN",{class:!0});var n=Kt(e);for(let t=0;t<o.length;t+=1)o[t].l(n);n.forEach(Ot),this.h()},h(){Ht(e,"class",n="divkit-bf25")},m(t,n){Jt(t,e,n);for(let t=0;t<o.length;t+=1)o[t].m(e,null)},p(t,n){let[i]=n;if(3&i){let n;for(r=t[0],n=0;n<r.length;n+=1){const a=Hn(t,r,n);o[n]?o[n].p(a,i):(o[n]=Xn(a),o[n].c(),o[n].m(e,null))}for(;n<o.length;n+=1)o[n].d(1);o.length=r.length}},i:ct,o:ct,d(t){t&&Ot(e),Tt(o,t)}}}function Zn(t,e,n){let{background:r=[]}=e;const o=r.map((t=>{const e={},n=yn([t]),r={style:e};return"solid"===t.type&&(e["background-color"]=n.color),"gradient"===t.type&&(e["background-image"]=n.image),"image"===t.type&&(e.opacity=Number(t.alpha),r.image_url=t.image_url,e["object-fit"]=n.size,e["object-position"]=n.position),r}));return t.$$set=t=>{"background"in t&&n(2,r=t.background)},[o,function(t){t.target&&"classList"in t.target&&t.target.classList.add("divkit-cd61")},r]}const Qn=class extends He{constructor(t){super(),qe(this,t,Zn,Yn,$t,{background:2})}};function tr(t,e){const n=Number(t);return isNaN(n)?e:n}function er(t){let e,n;return e=new Qn({props:{background:t[4]}}),{c(){Re(e.$$.fragment)},l(t){We(e.$$.fragment,t)},m(t,r){Le(e,t,r),n=!0},p(t,n){const r={};16&n[0]&&(r.background=t[4]),e.$set(r)},i(t){n||(Ie(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function nr(t){let e,n,r;return{c(){e=Bt("span"),this.h()},l(t){e=Zt(t,"SPAN",{class:!0,style:!0}),Kt(e).forEach(Ot),this.h()},h(){Ht(e,"class",n=fn.outer__border),Ht(e,"style",r=pn(t[1]))},m(t,n){Jt(t,e,n)},p(t,n){2&n[0]&&r!==(r=pn(t[1]))&&Ht(e,"style",r)},d(t){t&&Ot(e)}}}function rr(t){let e,n,r,o=t[2]&&er(t);const i=t[92].default,a=xt(i,t,t[93],null);let l=t[6]&&nr(t);return{c(){o&&o.c(),e=Ut(),a&&a.c(),l&&l.c(),n=Ut()},l(t){o&&o.l(t),e=Ut(),a&&a.l(t),l&&l.l(t),n=Ut()},m(t,i){o&&o.m(t,i),Jt(t,e,i),a&&a.m(t,i),l&&l.m(t,i),Jt(t,n,i),r=!0},p(t,s){t[2]?o?(o.p(t,s),4&s[0]&&Ie(o,1)):(o=er(t),o.c(),Ie(o,1),o.m(e.parentNode,e)):o&&(Se(),Ne(o,1,1,(()=>{o=null})),Fe()),a&&a.p&&(!r||1&s[3])&&Ct(a,i,t,t[93],r?kt(i,t[93],s,null):Et(t[93]),null),t[6]?l?l.p(t,s):(l=nr(t),l.c(),l.m(n.parentNode,n)):l&&(l.d(1),l=null)},i(t){r||(Ie(o),Ie(a,t),r=!0)},o(t){Ne(o),Ne(a,t),r=!1},d(t){o&&o.d(t),t&&Ot(e),a&&a.d(t),l&&l.d(t),t&&Ot(n)}}}function or(t){let e,n;return e=new Un({props:{use:t[25],cls:t[0]+" "+jn("outer",fn,t[10]),style:pn(t[8]),actions:t[7],attrs:t[5],hasActionAnimation:Boolean(t[3]),$$slots:{default:[rr]},$$scope:{ctx:t}}}),{c(){Re(e.$$.fragment)},l(t){We(e.$$.fragment,t)},m(t,r){Le(e,t,r),n=!0},p(t,n){const r={};1025&n[0]&&(r.cls=t[0]+" "+jn("outer",fn,t[10])),256&n[0]&&(r.style=pn(t[8])),128&n[0]&&(r.actions=t[7]),32&n[0]&&(r.attrs=t[5]),8&n[0]&&(r.hasActionAnimation=Boolean(t[3])),86&n[0]|1&n[3]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ie(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function ir(t,e,n){let r,o,i,a,l,s,c,u,d,h,f,p,g,m,v,$,y,_,b,x,w,k,C,A,j,V,D,P,S,F,I,N,z,M,J,O=ct,T=ct,B=ct,R=ct,W=ct,L=ct,U=ct,q=ct,H=ct,G=ct,K=ct,X=ct,Y=ct,Z=ct,Q=ct;t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>T())),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())),t.$$.on_destroy.push((()=>Q()));let{$$slots:tt={},$$scope:et}=e;var nt,rt,ot,it,at,lt;let{json:st={}}=e,{origJson:ut}=e,{templateContext:dt}=e,{cls:ht=""}=e,{style:ft}=e,{layoutParams:pt={}}=e,{customDescription:gt=!1}=e,{customPaddings:mt=!1}=e,{customActions:vt=""}=e,{forceWidth:$t=!1}=e,{forceHeight:yt=!1}=e;const bt={left:"start",center:"center",right:"end"},xt={top:"start",center:"center",bottom:"end"},wt=fe(un),kt=fe(Dn);let Ct,Et,At,jt,Vt,Dt,Pt,St={},Ft={},It=!1,Nt=1,zt="transparent",Mt=0,Jt="",Ot="",Tt="",Bt={},Rt=0,Wt=0,Lt=0,Ut={},qt=0,Ht=0,Gt=0,Kt=1;const Xt=st.transition_triggers||["state_change","visibility_change"],Yt=-1!==Xt.indexOf("state_change")&&st.id,Zt=-1!==Xt.indexOf("visibility_change")&&st.id;let Qt,te,ee,ne,re,oe,ie,ae=[],le="";function se(t){var e;const r=tr(t.start_value,1),o=tr(t.end_value,1),i=Nn(t.start_delay,0),a=Nn(t.duration,300),l=function(t,e){return"linear"===t||"ease"===t||"ease_in_out"===t||"ease_in"===t||"ease_out"===t?t:"ease_in_out"}(t.interpolator).replace(/_/g,"-");switch(t.name){case"fade":return n(65,ne=r),n(66,re=o),"opacity ".concat(a,"ms ").concat(l," ").concat(i,"ms");case"scale":return n(67,oe=r),n(68,ie=o),"transform ".concat(a,"ms ").concat(l," ").concat(i,"ms");case"set":return(null===(e=t.items)||void 0===e?void 0:e.length)?t.items.map(se).join(", "):(wt.logError(dn(new Error("Empty items value for action_animation with name='set'"))),"");default:return wt.logError(dn(new Error("Unknown action_animation name"),{additional:{animation:t.name}})),""}}let ce,ue,de=!1,he="visible",pe=0,ge=0;return t.$$set=t=>{"json"in t&&n(26,st=t.json),"origJson"in t&&n(27,ut=t.origJson),"templateContext"in t&&n(28,dt=t.templateContext),"cls"in t&&n(0,ht=t.cls),"style"in t&&n(29,ft=t.style),"layoutParams"in t&&n(30,pt=t.layoutParams),"customDescription"in t&&n(31,gt=t.customDescription),"customPaddings"in t&&n(32,mt=t.customPaddings),"customActions"in t&&n(33,vt=t.customActions),"forceWidth"in t&&n(34,$t=t.forceWidth),"forceHeight"in t&&n(35,yt=t.forceHeight),"$$scope"in t&&n(93,et=t.$$scope)},t.$$.update=()=>{if(67108864&t.$$.dirty[0]&&(n(24,r=wt.getDerivedFromVars(st.border)),Q(),Q=_t(r,(t=>n(91,J=t)))),2&t.$$.dirty[0]|65504&t.$$.dirty[1]|536870912&t.$$.dirty[2]){let t={},e={},r=!1;if(J){if(J.has_shadow){const e=J.shadow;t["box-shadow"]=e?gn((null===n(37,rt=null===n(36,nt=e.offset)||void 0===nt?void 0:nt.x)||void 0===rt?void 0:rt.value)||0)+" "+gn((null===n(39,it=null===n(38,ot=e.offset)||void 0===ot?void 0:ot.y)||void 0===it?void 0:it.value)||0)+" "+gn(null!==n(40,at=e.blur)&&void 0!==at?at:2)+" "+E(e.color||"#000000",null!==n(41,lt=e.alpha)&&void 0!==lt?lt:.19):"0 1px 2px 0 rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.07)"}J.stroke&&(r=!0,n(43,Nt=Nn(J.stroke.width,Nt)),n(44,zt=E(J.stroke.color,1,zt)),e.border="".concat(gn(Nt)," solid ").concat(zt)),J.corners_radius?(n(46,Jt=Fn(J.corners_radius,0,10,Jt)),e["border-radius"]=t["border-radius"]=Jt):J.corner_radius&&(n(45,Mt=Nn(J.corner_radius,Mt)),e["border-radius"]=t["border-radius"]=gn(Mt))}n(42,St=Jn(t,St)),n(1,Ft=Jn(e,Ft)),n(6,It=r)}if(67108864&t.$$.dirty[0]&&(n(23,o=wt.getDerivedFromVars(st.paddings)),Z(),Z=_t(o,(t=>n(90,M=t)))),65538&t.$$.dirty[1]|268435456&t.$$.dirty[2]&&n(47,Ot=In(M&&!mt?M:void 0,Ot)),67108864&t.$$.dirty[0]&&(n(22,i=wt.getDerivedFromVars(st.margins)),X(),X=_t(i,(t=>n(88,N=t)))),131072&t.$$.dirty[1]|67108864&t.$$.dirty[2]&&n(48,Tt=In(N,Tt)),67108864&t.$$.dirty[0]&&(n(21,a=wt.getDerivedFromVars(st.width)),G(),G=_t(a,(t=>n(86,F=t)))),67108864&t.$$.dirty[0]&&(n(20,l=wt.getDerivedFromVars(st.alignment_horizontal)),Y(),Y=_t(l,(t=>n(89,z=t)))),1073741824&t.$$.dirty[0]|1310728&t.$$.dirty[1]|218103808&t.$$.dirty[2]){let t,e,r={},o=0,i=0;const a=null==F?void 0:F.type;if("fixed"===a?(n(51,Rt=Nn(null==F?void 0:F.value,Rt)),e=gn(Rt)):"wrap_content"===a||!pt.overlapParent&&"match_parent"===a&&pt.parentHorizontalWrapContent?(t="content",("wrap_content"===a&&(null==F?void 0:F.constrained)||"match_parent"===a&&pt.parentHorizontalWrapContent)&&(r["width-constrained"]=!0,i=1),"match_parent"===a&&wt.logError(dn(new Error("Cannot place child with match_parent size inside wrap_content"),{level:"warn"}))):(t="parent","vertical"===pt.parentLayoutOrientation?e="calc(100% - ".concat(mn(((null==N?void 0:N.left)||0)+((null==N?void 0:N.right)||0)),")"):"horizontal"===pt.parentContainerOrientation&&(o=F&&"weight"in F&&F.weight||1)),"content"===t&&$t&&(t="parent",wt.logError(dn(new Error("Incorrect usage of width with value 'wrap_content'"),{level:"warn"}))),"parent"===t)r["halign-self"]="stretch";else{const t=z;r["halign-self"]="left"===t||"center"===t||"right"===t?bt[t]:pt.parentHAlign||"start"}t&&(r.width=t),n(50,At=e),n(52,Wt=o),n(53,Lt=i),n(49,Bt=Jn(r,Bt))}if(67108864&t.$$.dirty[0]&&(n(19,s=wt.getDerivedFromVars(st.height)),H(),H=_t(s,(t=>n(85,S=t)))),67108864&t.$$.dirty[0]&&(n(18,c=wt.getDerivedFromVars(st.alignment_vertical)),K(),K=_t(c,(t=>n(87,I=t)))),1073741824&t.$$.dirty[0]|41943056&t.$$.dirty[1]|109051904&t.$$.dirty[2]){let t,e,r={},o=0,i=0;const a=null==S?void 0:S.type;if("fixed"===a?(n(56,qt=Nn(null==S?void 0:S.value,qt)),e=gn(qt)):"match_parent"!==a||!pt.overlapParent&&pt.parentVerticalWrapContent?(t="content",("wrap_content"===a&&(null==S?void 0:S.constrained)||"match_parent"===a&&pt.parentVerticalWrapContent)&&(r["height-constrained"]=!0,i=1),"match_parent"===a&&wt.logError(dn(new Error("Cannot place child with match_parent size inside wrap_content"),{level:"warn"}))):(t="parent","horizontal"===pt.parentLayoutOrientation?e="calc(100% - ".concat(mn(((null==N?void 0:N.top)||0)+((null==N?void 0:N.bottom)||0)),")"):"vertical"===pt.parentContainerOrientation&&(o=(null==S?void 0:S.weight)||1)),"content"===t&&yt&&(t="parent",wt.logError(dn(new Error("Incorrect usage of height with value 'wrap_content'"),{level:"warn"}))),"parent"===t)r["valign-self"]="stretch";else{const t=I;r["valign-self"]="top"===t||"center"===t||"bottom"===t?xt[t]:pt.parentVAlign||"start"}t&&(r.height=t),n(55,jt=e),n(57,Ht=o),n(58,Gt=i),n(54,Ut=Jn(r,Ut))}var e,tt;if(1073741824&t.$$.dirty[0]&&n(77,u=!!pt.overlapParent||void 0),1073741824&t.$$.dirty[0]|25165824&t.$$.dirty[2]&&n(76,d=pt.overlapParent&&(!F||"match_parent"===F.type)&&"match_parent"===(null==S?void 0:S.type)),1073741824&t.$$.dirty[0]&&n(75,h=pt.gridArea?"".concat(pt.gridArea.y+1,"/").concat(pt.gridArea.x+1,"/span ").concat(pt.gridArea.rowSpan,"/span ").concat(pt.gridArea.colSpan):void 0),67108864&t.$$.dirty[0]&&(n(17,f=wt.getDerivedFromVars(st.alpha)),q(),q=_t(f,(t=>n(84,P=t)))),268435456&t.$$.dirty[1]|4194304&t.$$.dirty[2]&&(n(59,(tt=Kt,Kt=!Sn(e=P)||void 0===e||e>1?tt:Number(e))),n(60,Vt=1===Kt?void 0:Kt)),67108864&t.$$.dirty[0]&&(n(16,p=wt.getDerivedFromVars(st.accessibility)),U(),U=_t(p,(t=>n(83,D=t)))),1&t.$$.dirty[1]|2097152&t.$$.dirty[2]&&(n(5,Et=void 0),D&&!gt&&D.description&&(n(5,Et={}),n(5,Et["aria-label"]=D.description,Et))),67108864&t.$$.dirty[0]&&(n(15,g=wt.getDerivedFromVars(st.background)),L(),L=_t(g,(t=>n(4,V=t)))),20&t.$$.dirty[0]&&(n(61,Dt={}),n(2,Pt=!1),V&&(n(2,Pt=V.some((t=>"image"===t.type))),!Pt))){const t=yn(V);n(61,Dt["background-color"]=t.color,Dt),n(61,Dt["background-image"]=t.image,Dt),n(61,Dt["background-size"]=t.size,Dt),n(61,Dt["background-position"]=t.position,Dt),n(61,Dt["background-repeat"]="no-repeat",Dt)}if(67108864&t.$$.dirty[0]&&(n(62,Qt=void 0),Yt&&st.transition_in&&wt.isRunning("stateChange")&&n(62,Qt=!0)),67108864&t.$$.dirty[0]&&(n(64,ee=void 0),Yt&&st.transition_change&&wt.isRunning("stateChange")&&kt.hasTransitionChange(st.id)&&n(64,ee=!0)),67108864&t.$$.dirty[0]&&(n(14,m=wt.getDerivedFromVars(st.action)),R(),R=_t(m,(t=>n(81,A=t)))),67108864&t.$$.dirty[0]&&(n(13,v=wt.getDerivedFromVars(st.actions)),W(),W=_t(v,(t=>n(82,j=t)))),4&t.$$.dirty[1]|1572864&t.$$.dirty[2]){let t=j||A&&[A]||[];Array.isArray(t)?t.length&&vt&&(t=[],wt.logError(dn(new Error('Cannot use action on component "'.concat(vt,'"'))))):(t=[],wt.logError(dn(new Error("Actions should be array")))),n(7,ae=t)}if(67108864&t.$$.dirty[0]&&(n(12,$=wt.getDerivedFromVars(st.action_animation)),B(),B=_t($,(t=>n(80,C=t)))),262144&t.$$.dirty[2]&&C&&n(3,le=se(C)),67108864&t.$$.dirty[0]&&(n(11,y=wt.getDerivedFromVars(st.visibility)),T(),T=_t(y,(t=>n(79,k=t)))),131456&t.$$.dirty[2]){const t=he,e=function(t,e){return"visible"===t||"invisible"===t||"gone"===t?t:e}(k,he);t!==e&&(!de||"visible"!==he&&"visible"!==e?n(70,he=e):async function(t){n(70,he=t);const e="visible"===t?"in":"out",r="in"===e?st.transition_in:st.transition_out;Zt&&r&&(await xe(),"in"===e&&n(63,te=!0),kt.runVisibilityTransition(Object.assign(Object.assign({},st),{visibility:"visible"}),dt,r,Ct,e).then((()=>{"in"===e&&n(63,te=!1)})).catch((t=>{throw"in"===e&&n(63,te=!1),t})))}(e)),de||n(69,de=!0)}if(1073741832&t.$$.dirty[0]|8650752&t.$$.dirty[1]|49415&t.$$.dirty[2]&&n(10,_=Object.assign(Object.assign(Object.assign({},Bt),Ut),{"parent-overlap":u,"parent-overlap-absolute":d,"scroll-snap":pt.scrollSnap,"hide-on-transition-in":Qt||te||ee,visibility:he,"has-action-animation":Boolean(le),"parent-flex":pt.parentContainerOrientation||void 0})),67108864&t.$$.dirty[0]&&(n(9,b=wt.getDerivedFromVars(st.transform)),O(),O=_t(b,(t=>n(78,w=t)))),67072&t.$$.dirty[2]&&w&&void 0!==w.rotation){const t=w.pivot_x||{type:"pivot-percentage",value:50};n(71,pe=tr(t.value,pe));const e="pivot-fixed"===t.type?gn(pe):"".concat(pe,"%"),r=w.pivot_y||{type:"pivot-percentage",value:50};n(72,ge=tr(r.value,ge));const o="pivot-fixed"===r.type?gn(ge):"".concat(ge,"%");n(73,ce="".concat(e," ").concat(o)),n(74,ue="rotate(".concat(w.rotation,"deg)"))}536870920&t.$$.dirty[0]|1835730944&t.$$.dirty[1]|14456&t.$$.dirty[2]&&n(8,x=Object.assign(Object.assign(Object.assign(Object.assign({},ft),Dt),St),{width:At,height:jt,"grid-area":h,padding:Ot,margin:Tt,opacity:Vt,transition:le,"transform-origin":ce,transform:ue,"flex-grow":Wt||Ht||void 0,"flex-shrink":Lt||Gt?1:void 0,"flex-basis":Wt||Ht?0:void 0,"--divkit-animation-opacity-start":ne,"--divkit-animation-opacity-end":re,"--divkit-animation-scale-start":oe,"--divkit-animation-scale-end":ie}))},[ht,Ft,Pt,le,V,Et,It,ae,x,b,_,y,$,v,m,g,p,f,c,s,l,a,i,o,r,function(t){Ct=t,Yt&&st.transition_in&&kt.registerChildWithTransitionIn(st,dt,st.transition_in,t).then((()=>{n(62,Qt=!1)})).catch((t=>{throw n(62,Qt=!1),t})),Yt&&st.transition_out&&kt.registerChildWithTransitionOut(st,dt,st.transition_out,t),Yt&&st.transition_change&&kt.registerChildWithTransitionChange(st,dt,st.transition_change,t).then((()=>{n(64,ee=!1)})).catch((t=>{throw n(64,ee=!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=kn(n);t&&!En(t)&&("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.getJsonWithVars(st.visibility_actions||st.visibility_action&&[st.visibility_action]),rootCtx:wt});const e=st.id;e&&kt.registerChild(e);let r=null;return Vn&&(r=Vn(t,{json:st,origJson:ut,rootCtx:wt,templateContext:dt})),{destroy(){e&&kt.unregisterChild(e),r&&r.destroy()}}},st,ut,dt,ft,pt,gt,mt,vt,$t,yt,nt,rt,ot,it,at,lt,St,Nt,zt,Mt,Jt,Ot,Tt,Bt,At,Rt,Wt,Lt,Ut,jt,qt,Ht,Gt,Kt,Vt,Dt,Qt,te,ee,ne,re,oe,ie,de,he,pe,ge,ce,ue,h,d,u,w,k,C,A,j,D,P,S,F,I,N,z,M,J,tt,et]}const ar=class extends He{constructor(t){super(),qe(this,t,ir,or,$t,{json:26,origJson:27,templateContext:28,cls:0,style:29,layoutParams:30,customDescription:31,customPaddings:32,customActions:33,forceWidth:34,forceHeight:35},null,[-1,-1,-1,-1])}},lr={"text-range":"divkit-faf0","text-range_singleline":"divkit-ccb6","text-range__top-offset":"divkit-d923","text-range_decoration_both":"divkit-d7e0","text-range_decoration_underline":"divkit-f3dd","text-range_decoration_strike":"divkit-d27b","text-range_decoration_none":"divkit-c6b0"};function sr(t,e){const n=Number(t);return isNaN(n)||n<=0?e:n}function cr(t){return Pn(t)&&t>0}function ur(t){if("light"===t||"medium"===t||"bold"===t||"regular"===t)return"medium"===t?500:"bold"===t?700:"light"===t?300:400}function dr(t,e){return ur(t)||e}function hr(t){let e,n;return{c(){e=Bt("span"),this.h()},l(t){e=Zt(t,"SPAN",{class:!0}),Kt(e).forEach(Ot),this.h()},h(){Ht(e,"class",n=lr["text-range__top-offset"]),re(e,"margin-top",t[4],!1)},m(t,n){Jt(t,e,n)},p(t,n){16&n&&re(e,"margin-top",t[4],!1)},d(t){t&&Ot(e)}}}function fr(t){let e;return{c(){e=Wt(t[0])},l(n){e=te(n,t[0])},m(t,n){Jt(t,e,n)},p(t,n){1&n&&ne(e,t[0])},d(t){t&&Ot(e)}}}function pr(t){let e,n,r,o=t[4]&&hr(t);return n=new Un({props:{cls:jn("text-range",lr,t[3]),actions:t[1],style:pn(t[2]),$$slots:{default:[fr]},$$scope:{ctx:t}}}),{c(){o&&o.c(),e=Ut(),Re(n.$$.fragment)},l(t){o&&o.l(t),e=Ut(),We(n.$$.fragment,t)},m(t,i){o&&o.m(t,i),Jt(t,e,i),Le(n,t,i),r=!0},p(t,r){let[i]=r;t[4]?o?o.p(t,i):(o=hr(t),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null);const a={};8&i&&(a.cls=jn("text-range",lr,t[3])),2&i&&(a.actions=t[1]),4&i&&(a.style=pn(t[2])),16385&i&&(a.$$scope={dirty:i,ctx:t}),n.$set(a)},i(t){r||(Ie(n.$$.fragment,t),r=!0)},o(t){Ne(n.$$.fragment,t),r=!1},d(t){o&&o.d(t),t&&Ot(e),Ue(n,t)}}}function gr(t,e,n){let r,o,i,a,{text:l}=e,{rootFontSize:s}=e,{textStyles:c={}}=e,{singleline:u=!1}=e,{actions:d}=e,h="none",f=12,p=1.25,g="",m="";return t.$$set=t=>{"text"in t&&n(0,l=t.text),"rootFontSize"in t&&n(5,s=t.rootFontSize),"textStyles"in t&&n(6,c=t.textStyles),"singleline"in t&&n(7,u=t.singleline),"actions"in t&&n(1,d=t.actions)},t.$$.update=()=>{if(64&t.$$.dirty){let t="none";(c.underline||c.strike)&&("single"===c.underline&&"single"===c.strike?t="both":"single"===c.underline?t="underline":"single"===c.strike&&(t="strike")),n(8,h=t)}576&t.$$.dirty&&n(9,f=sr(c.font_size,f)),576&t.$$.dirty&&cr(c.line_height)&&n(10,p=Number(c.line_height)/f),64&t.$$.dirty&&Sn(c.letter_spacing)&&n(11,g=gn(c.letter_spacing)),4160&t.$$.dirty&&n(12,a=dr(c.font_weight,a)),8256&t.$$.dirty&&n(13,m=E(c.text_color,1,m)),64&t.$$.dirty&&n(4,r=c.top_offset?gn(c.top_offset):""),384&t.$$.dirty&&n(3,o={singleline:u,decoration:h}),15904&t.$$.dirty&&n(2,i={"font-size":gn(10*f/s),"line-height":p,"letter-spacing":g,"font-weight":a,color:m})},[l,d,i,o,r,s,c,u,h,f,p,g,a,m]}const mr=class extends He{constructor(t){super(),qe(this,t,gr,pr,$t,{text:0,rootFontSize:5,textStyles:6,singleline:7,actions:1})}};function vr(t,e){return"left"===t||"center"===t||"right"===t?t:e}function $r(t,e){return"top"===t||"center"===t||"bottom"===t?t:e}const{Boolean:yr}=Je;function _r(t,e,n){const r=t.slice();return r[59]=e[n],r[61]=n,r}function br(t){let e,n;return e=new ar({props:{cls:jn("text",hn,t[13])+" "+(t[6]?"":ln),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[jr]},$$scope:{ctx:t}}}),{c(){Re(e.$$.fragment)},l(t){We(e.$$.fragment,t)},m(t,r){Le(e,t,r),n=!0},p(t,n){const r={};8256&n[0]&&(r.cls=jn("text",hn,t[13])+" "+(t[6]?"":ln)),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]),536878768&n[0]|1&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ie(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function xr(t){let e,n;return e=new mr({props:{text:t[4],rootFontSize:t[5],textStyles:t[29],singleline:t[7]}}),{c(){Re(e.$$.fragment)},l(t){We(e.$$.fragment,t)},m(t,r){Le(e,t,r),n=!0},p(t,n){const r={};16&n[0]&&(r.text=t[4]),32&n[0]&&(r.rootFontSize=t[5]),536870912&n[0]&&(r.textStyles=t[29]),128&n[0]&&(r.singleline=t[7]),e.$set(r)},i(t){n||(Ie(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function wr(t){let e,n,r=t[10],o=[];for(let e=0;e<r.length;e+=1)o[e]=Ar(_r(t,r,e));const i=t=>Ne(o[t],1,1,(()=>{o[t]=null}));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=Ut()},l(t){for(let e=0;e<o.length;e+=1)o[e].l(t);e=Ut()},m(t,r){for(let e=0;e<o.length;e+=1)o[e].m(t,r);Jt(t,e,r),n=!0},p(t,n){if(1073743520&n[0]){let a;for(r=t[10],a=0;a<r.length;a+=1){const i=_r(t,r,a);o[a]?(o[a].p(i,n),Ie(o[a],1)):(o[a]=Ar(i),o[a].c(),Ie(o[a],1),o[a].m(e.parentNode,e))}for(Se(),a=r.length;a<o.length;a+=1)i(a);Fe()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Ie(o[t]);n=!0}},o(t){o=o.filter(yr);for(let t=0;t<o.length;t+=1)Ne(o[t]);n=!1},d(t){Tt(o,t),t&&Ot(e)}}}function kr(t){let e,n,r,o,i,a,l,s;return{c(){e=Bt("span"),n=Bt("img"),this.h()},l(t){e=Zt(t,"SPAN",{style:!0});var r=Kt(e);n=Zt(r,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,"aria-hidden":!0,alt:!0,style:!0}),r.forEach(Ot),this.h()},h(){Ht(n,"class",r=hn.text__image),vt(n.src,o=t[59].image.url)||Ht(n,"src",o),Ht(n,"loading","lazy"),Ht(n,"decoding","async"),Ht(n,"aria-hidden","true"),Ht(n,"alt",""),Ht(n,"style",i=pn({width:t[59].image.width,height:t[59].image.height,"margin-top":t[9]?"-".concat(t[59].image.height):void 0,"margin-bottom":t[9]?"-".concat(t[59].image.height):void 0,filter:t[59].image.svgFilterId?"url(#".concat(t[59].image.svgFilterId,")"):void 0})),Ht(e,"style",a=pn(t[59].image.wrapperStyle))},m(r,o){Jt(r,e,o),Mt(e,n),l||(s=qt(n,"error",t[30]),l=!0)},p(t,r){1024&r[0]&&!vt(n.src,o=t[59].image.url)&&Ht(n,"src",o),1536&r[0]&&i!==(i=pn({width:t[59].image.width,height:t[59].image.height,"margin-top":t[9]?"-".concat(t[59].image.height):void 0,"margin-bottom":t[9]?"-".concat(t[59].image.height):void 0,filter:t[59].image.svgFilterId?"url(#".concat(t[59].image.svgFilterId,")"):void 0}))&&Ht(n,"style",i),1024&r[0]&&a!==(a=pn(t[59].image.wrapperStyle))&&Ht(e,"style",a)},i:ct,o:ct,d(t){t&&Ot(e),l=!1,s()}}}function Cr(t){let e,n,r=t[59].text&&Er(t);return{c(){r&&r.c(),e=Ut()},l(t){r&&r.l(t),e=Ut()},m(t,o){r&&r.m(t,o),Jt(t,e,o),n=!0},p(t,n){t[59].text?r?(r.p(t,n),1024&n[0]&&Ie(r,1)):(r=Er(t),r.c(),Ie(r,1),r.m(e.parentNode,e)):r&&(Se(),Ne(r,1,1,(()=>{r=null})),Fe())},i(t){n||(Ie(r),n=!0)},o(t){Ne(r),n=!1},d(t){r&&r.d(t),t&&Ot(e)}}}function Er(t){let e,n;return e=new mr({props:{text:t[59].text,rootFontSize:t[5],textStyles:t[59].textStyles,singleline:t[7],actions:t[59].actions}}),{c(){Re(e.$$.fragment)},l(t){We(e.$$.fragment,t)},m(t,r){Le(e,t,r),n=!0},p(t,n){const r={};1024&n[0]&&(r.text=t[59].text),32&n[0]&&(r.rootFontSize=t[5]),1024&n[0]&&(r.textStyles=t[59].textStyles),128&n[0]&&(r.singleline=t[7]),1024&n[0]&&(r.actions=t[59].actions),e.$set(r)},i(t){n||(Ie(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function Ar(t){let e,n,r,o;const i=[Cr,kr],a=[];function l(t,e){return"text"in t[59]?0:t[59].image?1:-1}return~(e=l(t))&&(n=a[e]=i[e](t)),{c(){n&&n.c(),r=Ut()},l(t){n&&n.l(t),r=Ut()},m(t,n){~e&&a[e].m(t,n),Jt(t,r,n),o=!0},p(t,o){let s=e;e=l(t),e===s?~e&&a[e].p(t,o):(n&&(Se(),Ne(a[s],1,1,(()=>{a[s]=null})),Fe()),~e?(n=a[e],n?n.p(t,o):(n=a[e]=i[e](t),n.c()),Ie(n,1),n.m(r.parentNode,r)):n=null)},i(t){o||(Ie(n),o=!0)},o(t){Ne(n),o=!1},d(t){~e&&a[e].d(t),t&&Ot(r)}}}function jr(t){let e,n,r,o,i,a;const l=[wr,xr],s=[];function c(t,e){return t[10].length?0:1}return n=c(t),r=s[n]=l[n](t),{c(){e=Bt("span"),r.c(),this.h()},l(t){e=Zt(t,"SPAN",{class:!0,style:!0});var n=Kt(e);r.l(n),n.forEach(Ot),this.h()},h(){Ht(e,"class",o=jn("text__inner",hn,t[12])),Ht(e,"style",i=pn(t[11]))},m(t,r){Jt(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):(Se(),Ne(s[d],1,1,(()=>{s[d]=null})),Fe(),r=s[n],r?r.p(t,u):(r=s[n]=l[n](t),r.c()),Ie(r,1),r.m(e,null)),(!a||4096&u[0]&&o!==(o=jn("text__inner",hn,t[12])))&&Ht(e,"class",o),(!a||2048&u[0]&&i!==(i=pn(t[11])))&&Ht(e,"style",i)},i(t){a||(Ie(r),a=!0)},o(t){Ne(r),a=!1},d(t){t&&Ot(e),s[n].d()}}}function Vr(t){let e,n,r=!t[8]&&br(t);return{c(){r&&r.c(),e=Ut()},l(t){r&&r.l(t),e=Ut()},m(t,o){r&&r.m(t,o),Jt(t,e,o),n=!0},p(t,n){t[8]?r&&(Se(),Ne(r,1,1,(()=>{r=null})),Fe()):r?(r.p(t,n),256&n[0]&&Ie(r,1)):(r=br(t),r.c(),Ie(r,1),r.m(e.parentNode,e))},i(t){n||(Ie(r),n=!0)},o(t){Ne(r),n=!1},d(t){r&&r.d(t),t&&Ot(e)}}}function Dr(t,e,n){let r,o,i,a,l,s,c,u,d,h,f,p,g,m,v,$,y,_,b,x,w,k,C,A,j,V,D,P,S,F,I,N,z,M,J,O,T,B=ct,R=ct,W=ct,L=ct,U=ct,q=ct,H=ct,G=ct,K=ct,X=ct,Y=ct,Z=ct,Q=ct,tt=ct,et=ct;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())),t.$$.on_destroy.push((()=>Q())),t.$$.on_destroy.push((()=>tt())),t.$$.on_destroy.push((()=>et()));let{json:nt={}}=e,{templateContext:rt}=e,{origJson:ot}=e,{layoutParams:it}=e;const at=fe(un);let lt=!1,st="",ut=12,dt=1.25,ht=!1,ft="",pt="",gt=!1,mt="left",vt="top",$t="",yt="",bt=!1,xt=[],wt=[];return de((()=>{wt.forEach((t=>{at.removeSvgFilter(t)}))})),t.$$set=t=>{"json"in t&&n(0,nt=t.json),"templateContext"in t&&n(1,rt=t.templateContext),"origJson"in t&&n(2,ot=t.origJson),"layoutParams"in t&&n(3,it=t.layoutParams)},t.$$.update=()=>{var e,rt;if(1&t.$$.dirty[0]&&(n(28,r=at.getDerivedFromVars(nt.text)),et(),et=_t(r,(t=>n(55,T=t)))),16&t.$$.dirty[0]|16777216&t.$$.dirty[1]&&(n(4,(e=T,rt=st,st=String(null!=e?e:"")||rt)),st?n(8,lt=!1):(n(8,lt=!0),at.logError(dn(new Error('Missing "text" prop for div "text"'))))),1&t.$$.dirty[0]&&(n(27,o=at.getDerivedFromVars(nt.ranges)),L(),L=_t(o,(t=>n(45,V=t)))),1&t.$$.dirty[0]&&(n(26,i=at.getDerivedFromVars(nt.images)),W(),W=_t(i,(t=>n(44,j=t)))),1&t.$$.dirty[0]&&(n(25,a=at.getDerivedFromVars({font_size:nt.font_size,letter_spacing:nt.letter_spacing,font_weight:nt.font_weight,text_color:nt.text_color,underline:nt.underline,strike:nt.strike,line_height:nt.line_height})),U(),U=_t(a,(t=>n(29,D=t)))),1&t.$$.dirty[0]&&(n(24,l=at.getDerivedFromVars(nt.font_size)),tt(),tt=_t(l,(t=>n(54,O=t)))),32&t.$$.dirty[0]|8388608&t.$$.dirty[1]&&n(5,ut=sr(O,ut)),1&t.$$.dirty[0]&&(n(23,s=at.getDerivedFromVars(nt.line_height)),Q(),Q=_t(s,(t=>n(53,J=t)))),32&t.$$.dirty[0]|4194304&t.$$.dirty[1]){const t=J;cr(t)?(n(31,dt=Number(t)/ut),n(9,ht=!0)):n(9,ht=!1)}if(1&t.$$.dirty[0]&&(n(22,c=at.getDerivedFromVars(nt.max_lines)),X(),X=_t(c,(t=>n(50,N=t)))),524288&t.$$.dirty[1]&&n(7,u=1===N),548865&t.$$.dirty[1]){let t="",e="",r=!1;if(N&&N>1){let n=Number(N);t=n*dt+"em",V||j||(e=n,r=!0)}n(32,ft=t),n(33,pt=e),n(34,gt=r)}if(1&t.$$.dirty[0]&&(n(21,d=at.getDerivedFromVars(nt.text_alignment_horizontal)),Z(),Z=_t(d,(t=>n(52,M=t)))),2097168&t.$$.dirty[1]&&n(35,mt=vr(M,mt)),1&t.$$.dirty[0]&&(n(20,h=at.getDerivedFromVars(nt.text_alignment_vertical)),Y(),Y=_t(h,(t=>n(51,z=t)))),1048608&t.$$.dirty[1]&&n(36,vt=$r(z,vt)),16&t.$$.dirty[0]|16384&t.$$.dirty[1]&&n(41,f=!V||st&&1===V.length&&V[0]&&0===V[0].start&&"number"==typeof V[0].end&&V[0].end>=st.length),1&t.$$.dirty[0]&&(n(19,p=at.getDerivedFromVars(nt.text_color)),K(),K=_t(p,(t=>n(49,I=t)))),278528&t.$$.dirty[1]&&n(40,g=Boolean(I)!==Boolean(V&&V[0]&&V[0].text_color)),804416&t.$$.dirty[1]){let t="";N&&f&&g&&(t=E(I||V&&V[0]&&V[0].text_color,1,$t)),n(37,$t=t)}if(1&t.$$.dirty[0]&&(n(18,m=at.getDerivedFromVars(nt.truncate)),G(),G=_t(m,(t=>n(48,F=t)))),131072&t.$$.dirty[1]&&n(39,v="none"===F?"none":""),1&t.$$.dirty[0]&&(n(17,$=at.getDerivedFromVars(nt.text_gradient)),H(),H=_t($,(t=>n(47,S=t)))),65536&t.$$.dirty[1]){let t="";if(S){const e=yn([S]);e.image&&(t=e.image)}n(38,yt=t)}1&t.$$.dirty[0]&&(n(16,y=at.getDerivedFromVars(nt.selectable)),q(),q=_t(y,(t=>n(46,P=t)))),64&t.$$.dirty[0]|32768&t.$$.dirty[1]&&n(6,bt=function(t,e){return 1===t||0===t||!1===t||!0===t?Boolean(t):e}(P,bt)),1&t.$$.dirty[0]&&(n(15,_=at.getDerivedFromVars(nt.width)),R(),R=_t(_,(t=>n(43,A=t)))),1&t.$$.dirty[0]&&(n(14,b=at.getDerivedFromVars(nt.height)),B(),B=_t(b,(t=>n(42,C=t)))),16&t.$$.dirty[0]|24576&t.$$.dirty[1]&&function(t,e,r){let o=[];if(wt.forEach((t=>{at.removeSvgFilter(t)})),wt=[],!(Array.isArray(e)&&e.length||Array.isArray(r)&&r.length&&t))return void n(10,xt=[]);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({},D),...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({},D),...c),n=gn(10*(t.image.width&&t.image.width.value||20)/(e.font_size||12)),r=gn(10*(t.image.height&&t.image.height.value||20)/(e.font_size||12));const i={"font-size":gn(10*(Number(e.font_size)||12)/ut)};let a="";if(t.image.tint_color){const e=E(t.image.tint_color);a=at.addSvgFilter(e),wt.push(e)}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({},D)}),n(10,xt=o)}(st,V,j),128&t.$$.dirty[0]|6456&t.$$.dirty[1]&&n(13,x={singleline:u,multiline:gt,halign:mt,valign:vt,truncate:v,width:"wrap_content"!==(null==A?void 0:A.type)||A.constrained?"":"content",height:!C||"wrap_content"===C.type&&!C.constrained?"content":""}),128&t.$$.dirty[1]&&n(12,w={gradient:Boolean(yt)}),32&t.$$.dirty[0]|199&t.$$.dirty[1]&&n(11,k={"font-size":gn(ut),"line-height":dt,"max-height":ft,"-webkit-line-clamp":pt,color:$t,"background-image":yt})},[nt,rt,ot,it,st,ut,bt,u,lt,ht,xt,k,w,x,b,_,y,$,m,p,h,d,c,s,l,a,i,o,r,D,function(t){t.target&&"classList"in t.target&&t.target.classList.add(hn.text__image_hidden)},dt,ft,pt,gt,mt,vt,$t,yt,v,g,f,C,A,j,V,P,S,F,I,N,z,M,J,O,T]}const Pr={container:"divkit-d37d",container_orientation_vertical:"divkit-ddc3",container_valign_top:"divkit-a331",container_valign_center:"divkit-aae6",container_valign_bottom:"divkit-c222",container_orientation_horizontal:"divkit-fe45",container_halign_left:"divkit-a309",container_halign_center:"divkit-bac9",container_halign_right:"divkit-f423",container_orientation_overlap:"divkit-a644"};function Sr(t,e,n){const r=t.slice();return r[25]=e[n],r}function Fr(t){let e,n;return e=new ar({props:{cls:jn("container",Pr,t[6]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Nr]},$$scope:{ctx:t}}}),{c(){Re(e.$$.fragment)},l(t){We(e.$$.fragment,t)},m(t,r){Le(e,t,r),n=!0},p(t,n){const r={};64&n&&(r.cls=jn("container",Pr,t[6])),1&n&&(r.json=t[0]),4&n&&(r.origJson=t[2]),2&n&&(r.templateContext=t[1]),8&n&&(r.layoutParams=t[3]),268439584&n&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ie(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function Ir(t){let e,n;return e=new Qi({props:{layoutParams:t[5],div:t[25].json,templateContext:t[25].templateContext,origJson:t[25].origJson}}),{c(){Re(e.$$.fragment)},l(t){We(e.$$.fragment,t)},m(t,r){Le(e,t,r),n=!0},p(t,n){const r={};32&n&&(r.layoutParams=t[5]),4096&n&&(r.div=t[25].json),4096&n&&(r.templateContext=t[25].templateContext),4096&n&&(r.origJson=t[25].origJson),e.$set(r)},i(t){n||(Ie(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function Nr(t){let e,n,r=t[12],o=[];for(let e=0;e<r.length;e+=1)o[e]=Ir(Sr(t,r,e));const i=t=>Ne(o[t],1,1,(()=>{o[t]=null}));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=Ut()},l(t){for(let e=0;e<o.length;e+=1)o[e].l(t);e=Ut()},m(t,r){for(let e=0;e<o.length;e+=1)o[e].m(t,r);Jt(t,e,r),n=!0},p(t,n){if(4128&n){let a;for(r=t[12],a=0;a<r.length;a+=1){const i=Sr(t,r,a);o[a]?(o[a].p(i,n),Ie(o[a],1)):(o[a]=Ir(i),o[a].c(),Ie(o[a],1),o[a].m(e.parentNode,e))}for(Se(),a=r.length;a<o.length;a+=1)i(a);Fe()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Ie(o[t]);n=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)Ne(o[t]);n=!1},d(t){Tt(o,t),t&&Ot(e)}}}function zr(t){let e,n,r=!t[4]&&Fr(t);return{c(){r&&r.c(),e=Ut()},l(t){r&&r.l(t),e=Ut()},m(t,o){r&&r.m(t,o),Jt(t,e,o),n=!0},p(t,n){let[o]=n;t[4]?r&&(Se(),Ne(r,1,1,(()=>{r=null})),Fe()):r?(r.p(t,o),16&o&&Ie(r,1)):(r=Fr(t),r.c(),Ie(r,1),r.m(e.parentNode,e))},i(t){n||(Ie(r),n=!0)},o(t){Ne(r),n=!1},d(t){r&&r.d(t),t&&Ot(e)}}}function Mr(t,e,n){let r,o,i,a,l,s,c,u,d,h,f,p,g,m=ct,v=ct,$=ct,y=ct,_=ct;t.$$.on_destroy.push((()=>m())),t.$$.on_destroy.push((()=>v())),t.$$.on_destroy.push((()=>$())),t.$$.on_destroy.push((()=>y())),t.$$.on_destroy.push((()=>_()));let{json:b={}}=e,{templateContext:x}=e,{origJson:w}=e,{layoutParams:k}=e;const C={left:"start",center:"center",right:"end"},E={top:"start",center:"center",bottom:"end"},A=fe(un);let j=!1,V="vertical",D="top",P="left",S={};return t.$$set=t=>{"json"in t&&n(0,b=t.json),"templateContext"in t&&n(1,x=t.templateContext),"origJson"in t&&n(2,w=t.origJson),"layoutParams"in t&&n(3,k=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty&&n(16,r=b.items),65536&t.$$.dirty&&((null==r?void 0:r.length)&&Array.isArray(r)?n(4,j=!1):(n(4,j=!0),A.logError(dn(new Error('Incorrect or empty "items" prop for div "container"'))))),65554&t.$$.dirty&&n(12,o=(!j&&r||[]).map((t=>{let e=t,n=x;return({templateContext:n,json:e}=A.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),1&t.$$.dirty&&(n(11,i=A.getDerivedFromVars(b.orientation)),_(),_=_t(i,(t=>n(21,g=t)))),2105344&t.$$.dirty&&n(13,V=function(t,e){return"vertical"===t||"horizontal"===t||"overlap"===t?t:e}(g,V)),1&t.$$.dirty&&(n(10,a=A.getDerivedFromVars(b.content_alignment_vertical)),y(),y=_t(a,(t=>n(20,p=t)))),1064960&t.$$.dirty&&n(14,D=$r(p,D)),1&t.$$.dirty&&(n(9,l=A.getDerivedFromVars(b.content_alignment_horizontal)),$(),$=_t(l,(t=>n(19,f=t)))),557056&t.$$.dirty&&n(15,P=vr(f,P)),1&t.$$.dirty&&(n(8,s=A.getDerivedFromVars(b.width)),m(),m=_t(s,(t=>n(17,d=t)))),1&t.$$.dirty&&(n(7,c=A.getDerivedFromVars(b.height)),v(),v=_t(c,(t=>n(18,h=t)))),450600&t.$$.dirty){let t={};"overlap"===V&&(t.overlapParent=!0),"horizontal"!==V&&(t.parentHAlign=C[P],(!h||"wrap_content"===h.type||"match_parent"===h.type&&(null==k?void 0:k.parentVerticalWrapContent))&&(t.parentVerticalWrapContent=!0)),"vertical"!==V&&(t.parentVAlign=E[D],("wrap_content"===(null==d?void 0:d.type)||"match_parent"===(null==d?void 0:d.type)&&(null==k?void 0:k.parentHorizontalWrapContent))&&(t.parentHorizontalWrapContent=!0)),"horizontal"===V&&(t.parentContainerOrientation="horizontal"),"vertical"===V&&(t.parentContainerOrientation="vertical"),n(5,S=Jn(t,S))}57344&t.$$.dirty&&n(6,u={orientation:V,valign:D,halign:P})},[b,x,w,k,j,S,u,c,s,l,a,i,o,V,D,P,r,d,h,f,p,g]}const Jr={separator:"divkit-a30b",separator_orientation_horizontal:"divkit-f529",separator_orientation_vertical:"divkit-e9e2",separator__inner:"divkit-db7d"};function Or(t,e){return"vertical"===t||"horizontal"===t?t:e}function Tr(t){let e,n,r;return{c(){e=Bt("span"),this.h()},l(t){e=Zt(t,"SPAN",{class:!0,style:!0}),Kt(e).forEach(Ot),this.h()},h(){Ht(e,"class",n=Jr.separator__inner),Ht(e,"style",r=pn(t[5]))},m(t,n){Jt(t,e,n)},p(t,n){32&n&&r!==(r=pn(t[5]))&&Ht(e,"style",r)},d(t){t&&Ot(e)}}}function Br(t){let e,n=t[6]&&Tr(t);return{c(){n&&n.c(),e=Ut()},l(t){n&&n.l(t),e=Ut()},m(t,r){n&&n.m(t,r),Jt(t,e,r)},p(t,r){t[6]?n?n.p(t,r):(n=Tr(t),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(t){n&&n.d(t),t&&Ot(e)}}}function Rr(t){let e,n;return e=new ar({props:{cls:jn("separator",Jr,t[4]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Br]},$$scope:{ctx:t}}}),{c(){Re(e.$$.fragment)},l(t){We(e.$$.fragment,t)},m(t,r){Le(e,t,r),n=!0},p(t,n){let[r]=n;const o={};16&r&&(o.cls=jn("separator",Jr,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||(Ie(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function Wr(t,e,n){let r,o,i,a,l,s,c,u=ct;t.$$.on_destroy.push((()=>u()));let{json:d={}}=e,{templateContext:h}=e,{origJson:f}=e,{layoutParams:p}=e;const g=fe(un);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,f=t.origJson),"layoutParams"in t&&n(3,p=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty&&(n(7,r=g.getDerivedFromVars(d.delimiter_style)),u(),u=_t(r,(t=>n(12,c=t)))),4352&t.$$.dirty&&n(8,m=Or(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=E(null==c?void 0:c.color,1,v)),256&t.$$.dirty&&n(11,i="horizontal"===m?"100%":gn(1)),256&t.$$.dirty&&n(10,a="horizontal"===m?gn(1):"100%"),3584&t.$$.dirty&&n(5,l={background:v,width:i,height:a}),256&t.$$.dirty&&n(4,s={orientation:m})},[d,h,f,p,s,l,o,r,m,v,a,i,c]}const Lr={image:"divkit-a448","image_is-width-content":"divkit-fe14","image_is-height-content":"divkit-f4d9",image__image:"divkit-ce04",image_error:"divkit-f10d","image__aspect-wrapper":"divkit-dc80",image_aspect:"divkit-ae78"};function Ur(t){let e,n;return e=new ar({props:{cls:jn("image",Lr,t[10]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customDescription:!0,$$slots:{default:[Gr]},$$scope:{ctx:t}}}),{c(){Re(e.$$.fragment)},l(t){We(e.$$.fragment,t)},m(t,r){Le(e,t,r),n=!0},p(t,n){const r={};1024&n[0]&&(r.cls=jn("image",Lr,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]),9968&n[0]|262144&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ie(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function qr(t){let e,n,r,o,i,a,l;return{c(){e=Bt("img"),this.h()},l(t){e=Zt(t,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,style:!0,alt:!0,"aria-hidden":!0}),this.h()},h(){Ht(e,"class",n=Lr.image__image),vt(e.src,r=t[4]?Xr:t[7])||Ht(e,"src",r),Ht(e,"loading","lazy"),Ht(e,"decoding","async"),Ht(e,"style",o=pn(t[6])),Ht(e,"alt",t[13]),Ht(e,"aria-hidden",i=t[13]?null:"true")},m(n,r){Jt(n,e,r),a||(l=[qt(e,"load",t[23]),qt(e,"error",t[24])],a=!0)},p(t,n){144&n[0]&&!vt(e.src,r=t[4]?Xr:t[7])&&Ht(e,"src",r),64&n[0]&&o!==(o=pn(t[6]))&&Ht(e,"style",o),8192&n[0]&&Ht(e,"alt",t[13]),8192&n[0]&&i!==(i=t[13]?null:"true")&&Ht(e,"aria-hidden",i)},d(t){t&&Ot(e),a=!1,pt(l)}}}function Hr(t){let e,n,r,o,i,a,l,s,c="".concat(t[5],"%");return{c(){e=Bt("span"),n=Bt("img"),this.h()},l(t){e=Zt(t,"SPAN",{class:!0});var r=Kt(e);n=Zt(r,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,style:!0,alt:!0,"aria-hidden":!0}),r.forEach(Ot),this.h()},h(){Ht(n,"class",r=Lr.image__image),vt(n.src,o=t[4]?Xr:t[7])||Ht(n,"src",o),Ht(n,"loading","lazy"),Ht(n,"decoding","async"),Ht(n,"style",t[9]),Ht(n,"alt",t[13]),Ht(n,"aria-hidden",i=t[13]?null:"true"),Ht(e,"class",a=Lr["image__aspect-wrapper"]),re(e,"padding-bottom",c,!1)},m(r,o){Jt(r,e,o),Mt(e,n),l||(s=[qt(n,"load",t[23]),qt(n,"error",t[24])],l=!0)},p(t,r){144&r[0]&&!vt(n.src,o=t[4]?Xr:t[7])&&Ht(n,"src",o),512&r[0]&&Ht(n,"style",t[9]),8192&r[0]&&Ht(n,"alt",t[13]),8192&r[0]&&i!==(i=t[13]?null:"true")&&Ht(n,"aria-hidden",i),32&r[0]&&c!==(c="".concat(t[5],"%"))&&re(e,"padding-bottom",c,!1)},d(t){t&&Ot(e),l=!1,pt(s)}}}function Gr(t){let e;function n(t,e){return t[10].aspect?Hr:qr}let r=n(t),o=r(t);return{c(){o.c(),e=Ut()},l(t){o.l(t),e=Ut()},m(t,n){o.m(t,n),Jt(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&&Ot(e)}}}function Kr(t){let e,n,r=!t[8]&&Ur(t);return{c(){r&&r.c(),e=Ut()},l(t){r&&r.l(t),e=Ut()},m(t,o){r&&r.m(t,o),Jt(t,e,o),n=!0},p(t,n){t[8]?r&&(Se(),Ne(r,1,1,(()=>{r=null})),Fe()):r?(r.p(t,n),256&n[0]&&Ie(r,1)):(r=Ur(t),r.c(),Ie(r,1),r.m(e.parentNode,e))},i(t){n||(Ie(r),n=!0)},o(t){Ne(r),n=!1},d(t){r&&r.d(t),t&&Ot(e)}}}const Xr="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";function Yr(t,e,n){let r,o,i,a,l,s,c,u,d,h,f,p,g,m,v,$,y,_,b,x,w,k,C,A,j,V,D,P,S,F=ct,I=ct,N=ct,z=ct,M=ct,J=ct,O=ct,T=ct,B=ct,R=ct,W=ct;t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>I())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>W()));let{json:L={}}=e,{templateContext:U}=e,{origJson:q}=e,{layoutParams:H}=e;const G=fe(un);let K=!1,X=!0,Y="rgba(0,0,0,0.08)",Z=!1,Q="",tt="none",et="50% 50%";let nt,rt="0",ot="";return de((()=>{G.removeSvgFilter(nt)})),t.$$set=t=>{"json"in t&&n(0,L=t.json),"templateContext"in t&&n(1,U=t.templateContext),"origJson"in t&&n(2,q=t.origJson),"layoutParams"in t&&n(3,H=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&(n(22,r=G.getDerivedFromVars(L.image_url)),W(),W=_t(r,(t=>n(44,S=t)))),1&t.$$.dirty[0]&&(n(21,o=G.getDerivedFromVars(L.gif_url)),R(),R=_t(o,(t=>n(43,P=t)))),12288&t.$$.dirty[1]&&n(7,i=S||P),128&t.$$.dirty[0]&&(n(25,X=!0),n(4,K=!1)),128&t.$$.dirty[0]&&(i?n(8,Z=!1):(n(8,Z=!0),G.logError(dn(new Error('Missing "image_url" for "image"'))))),1&t.$$.dirty[0]&&(n(20,a=G.getDerivedFromVars(L.width)),B(),B=_t(a,(t=>n(42,D=t)))),2048&t.$$.dirty[1]&&n(33,l="wrap_content"===(null==D?void 0:D.type)),1&t.$$.dirty[0]&&(n(19,s=G.getDerivedFromVars(L.height)),T(),T=_t(s,(t=>n(41,V=t)))),1024&t.$$.dirty[1]&&n(32,c="wrap_content"===(null==V?void 0:V.type)),1&t.$$.dirty[0]&&(n(18,u=G.getDerivedFromVars(L.preview)),O(),O=_t(u,(t=>n(40,j=t)))),33554448&t.$$.dirty[0]|512&t.$$.dirty[1]){const t=j;(X||K)&&t?t.startsWith("data:")?n(27,Q='url("'.concat(vn(t),'")')):n(27,Q='url("data:image/jpg;base64,'.concat(vn(t),'")')):n(27,Q="")}if(1&t.$$.dirty[0]&&(n(17,d=G.getDerivedFromVars(L.placeholder_color)),J(),J=_t(d,(t=>n(39,A=t)))),33554448&t.$$.dirty[0]|256&t.$$.dirty[1]&&function(t,e,r){n(26,Y=t||e?E(r,1,Y):"")}(X,K,A),1&t.$$.dirty[0]&&(n(16,h=G.getDerivedFromVars(L.scale)),M(),M=_t(h,(t=>n(38,C=t)))),268435456&t.$$.dirty[0]|128&t.$$.dirty[1]&&n(28,tt=xn(C)||tt),1&t.$$.dirty[0]&&(n(15,f=G.getDerivedFromVars({content_alignment_horizontal:L.content_alignment_horizontal,content_alignment_vertical:L.content_alignment_vertical})),z(),z=_t(f,(t=>n(37,k=t)))),64&t.$$.dirty[1]&&n(29,et=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:wn(t)}(k,et)),1&t.$$.dirty[0]&&(n(14,p=G.getDerivedFromVars(L.accessibility)),N(),N=_t(p,(t=>n(36,w=t)))),32&t.$$.dirty[1]&&n(13,g=(null==w?void 0:w.description)||""),1&t.$$.dirty[0]&&(n(12,m=G.getDerivedFromVars(L.aspect)),I(),I=_t(m,(t=>n(35,x=t)))),16&t.$$.dirty[1]){const t=null==x?void 0:x.ratio;t&&cr(t)?n(5,rt=(100/Number(t)).toFixed(2)):n(5,rt="0")}if(1&t.$$.dirty[0]&&(n(11,v=G.getDerivedFromVars(L.tint_color)),F(),F=_t(v,(t=>n(34,b=t)))),1073741824&t.$$.dirty[0]|8&t.$$.dirty[1]){const t=b,e=t?E(t):void 0;e!==nt&&(G.removeSvgFilter(nt),n(31,ot=e?G.addSvgFilter(e):""),n(30,nt=e))}32&t.$$.dirty[0]|6&t.$$.dirty[1]&&n(10,$={aspect:"0"!==rt,"is-width-content":l,"is-height-content":c}),1040187408&t.$$.dirty[0]|1&t.$$.dirty[1]&&n(6,y={"background-image":Q,"background-color":Y,"object-fit":tt,"object-position":et,filter:X||K||!ot?"":"url(#".concat(ot,")")}),64&t.$$.dirty[0]&&n(9,_=pn(y))},[L,U,q,H,K,rt,y,i,Z,_,$,v,m,g,p,f,h,d,u,s,a,o,r,function(){n(25,X=!1)},function(){n(4,K=!0)},X,Y,Q,tt,et,nt,ot,c,l,b,x,w,k,C,A,j,V,D,P,S]}const Zr=class extends He{constructor(t){super(),qe(this,t,Yr,Kr,$t,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},Qr={grid:"divkit-d908",grid_halign_left:"divkit-f63b",grid_halign_center:"divkit-a14a",grid_halign_right:"divkit-b071",grid_valign_top:"divkit-fbca",grid_valign_center:"divkit-d431",grid_valign_bottom:"divkit-e420"};function to(t){return t>0&&t<1}function eo(t){return String(Math.ceil(1e3*t)/1e3)}function no(t,e,n){if(t.some(to)){const e=Math.max(...t.filter(to).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(gn(r*t[e]/o),",").concat(eo(t[e]),"fr)"):t[e]?i[e]="".concat(eo(t[e]),"fr"):i[e]="auto";return i.join(" ")}function ro(t,e,n){const r=t.slice();return r[29]=e[n],r}function oo(t){let e,n;return e=new ar({props:{cls:jn("grid",Qr,t[8]),json:t[0],origJson:t[2],templateContext:t[1],style:t[7],layoutParams:t[3],$$slots:{default:[ao]},$$scope:{ctx:t}}}),{c(){Re(e.$$.fragment)},l(t){We(e.$$.fragment,t)},m(t,r){Le(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.cls=jn("grid",Qr,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||(Ie(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function io(t){let e,n;return e=new Qi({props:{layoutParams:t[29].layoutParams,div:t[29].json,templateContext:t[29].templateContext,origJson:t[29].origJson}}),{c(){Re(e.$$.fragment)},l(t){We(e.$$.fragment,t)},m(t,r){Le(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||(Ie(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function ao(t){let e,n,r=t[5],o=[];for(let e=0;e<r.length;e+=1)o[e]=io(ro(t,r,e));const i=t=>Ne(o[t],1,1,(()=>{o[t]=null}));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=Ut()},l(t){for(let e=0;e<o.length;e+=1)o[e].l(t);e=Ut()},m(t,r){for(let e=0;e<o.length;e+=1)o[e].m(t,r);Jt(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=ro(t,r,a);o[a]?(o[a].p(i,n),Ie(o[a],1)):(o[a]=io(i),o[a].c(),Ie(o[a],1),o[a].m(e.parentNode,e))}for(Se(),a=r.length;a<o.length;a+=1)i(a);Fe()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Ie(o[t]);n=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)Ne(o[t]);n=!1},d(t){Tt(o,t),t&&Ot(e)}}}function lo(t){let e,n,r=!t[6]&&oo(t);return{c(){r&&r.c(),e=Ut()},l(t){r&&r.l(t),e=Ut()},m(t,o){r&&r.m(t,o),Jt(t,e,o),n=!0},p(t,n){t[6]?r&&(Se(),Ne(r,1,1,(()=>{r=null})),Fe()):r?(r.p(t,n),64&n[0]&&Ie(r,1)):(r=oo(t),r.c(),Ie(r,1),r.m(e.parentNode,e))},i(t){n||(Ie(r),n=!0)},o(t){Ne(r),n=!1},d(t){r&&r.d(t),t&&Ot(e)}}}function so(t,e,n){let r,o,i,a,l,s,c,u,d,h,f,p,g=ct,m=ct,v=ct,$=ct;t.$$.on_destroy.push((()=>g())),t.$$.on_destroy.push((()=>m())),t.$$.on_destroy.push((()=>v())),t.$$.on_destroy.push((()=>$()));let{json:y={}}=e,{templateContext:_}=e,{origJson:b}=e,{layoutParams:x}=e;const w=fe(un);let k,C,E=!1,A=1,j=[],V=[],D=[],P=[],S=0,F=!1,I="top",N="left";return t.$$set=t=>{"json"in t&&n(0,y=t.json),"templateContext"in t&&n(1,_=t.templateContext),"origJson"in t&&n(2,b=t.origJson),"layoutParams"in t&&n(3,x=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&n(23,r=y.items),8388608&t.$$.dirty[0]&&((null==r?void 0:r.length)&&Array.isArray(r)?n(12,E=!1):(n(12,E=!0),w.logError(dn(new Error('Incorrect or empty "items" prop for div "grid"'))))),1&t.$$.dirty[0]&&(n(11,o=w.getDerivedFromVars(y.column_count)),$(),$=_t(o,(t=>n(27,p=t)))),134225920&t.$$.dirty[0]&&n(13,A=sr(p,A)),8392706&t.$$.dirty[0]&&n(22,i=(!E&&r||[]).map((t=>{let e=t,n=_;return({templateContext:n,json:e}=w.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),4194304&t.$$.dirty[0]){let t=[];i.forEach((e=>{t.push(w.getDerivedFromVars({rowSpan:e.json.row_span,columnSpan:e.json.column_span,width:e.json.width,height:e.json.height}))})),n(4,k=Xe(t,(t=>[...t]))),v(),v=_t(k,(t=>n(26,f=t)))}if(72081408&t.$$.dirty[0]){const t={};let e=0,r=0;n(14,j=[]),n(15,V=[]),n(16,D=[]),n(17,P=[]),n(19,F=!1),n(5,C=i.map(((o,i)=>{var a,l,s,c;const u=f[i],d=Number(u.columnSpan)||1,h=Number(u.rowSpan)||1,p={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,$=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,F=!0):(t[o+"_"+e]=!0,(!j[o]||j[o]<g)&&n(14,j[o]=g,j),(!V[e]||V[e]<m)&&n(15,V[e]=m,V),(!D[o]||D[o]<v)&&n(16,D[o]=v,D),(!P[e]||P[e]<$)&&n(17,P[e]=$,P));do{++e,e>=A&&(e=0,++r)}while(t[e+"_"+r]);return Object.assign(Object.assign({},o),{layoutParams:{gridArea:p}})}))),0!==e&&n(19,F=!0),F&&w.logError(dn(new Error('Mismatching "grid" rows/columns'))),n(18,S=r)}1&t.$$.dirty[0]&&(n(10,a=w.getDerivedFromVars(y.content_alignment_vertical)),m(),m=_t(a,(t=>n(25,h=t)))),34603008&t.$$.dirty[0]&&n(20,I=$r(h,I)),1&t.$$.dirty[0]&&(n(9,l=w.getDerivedFromVars(y.content_alignment_horizontal)),g(),g=_t(l,(t=>n(24,d=t)))),18874368&t.$$.dirty[0]&&n(21,N=vr(d,N)),3145728&t.$$.dirty[0]&&n(8,s={valign:I,halign:N}),516096&t.$$.dirty[0]&&n(7,c={"grid-template-columns":no(j,D,A),"grid-template-rows":no(V,P,S)}),528384&t.$$.dirty[0]&&n(6,u=E||F)},[y,_,b,x,k,C,u,c,s,l,a,o,E,A,j,V,D,P,S,F,I,N,i,r,d,h,f,p]}const co={gallery:"divkit-cbb0",gallery_orientation_horizontal:"divkit-c9be",gallery_orientation_vertical:"divkit-a72d",gallery__scroller:"divkit-a4e3","gallery_scroll-snap":"divkit-f606","gallery__items-grid":"divkit-eb4a",gallery__items:"divkit-af27",gallery__arrow:"divkit-b72d","gallery__arrow-icon":"divkit-d100",gallery__arrow_left:"divkit-a0a5",gallery__arrow_right:"divkit-f0f5","gallery__arrow-icon-path":"divkit-b417"};function uo(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(" ")}const{Boolean:ho}=Je;function fo(t,e,n){const r=t.slice();return r[57]=e[n],r[58]=e,r[59]=n,r}function po(t,e,n){const r=t.slice();return r[60]=e[n],r}function go(t){let e,n;return e=new ar({props:{cls:jn("gallery",co,t[14]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customPaddings:!0,customActions:"gallery",forceHeight:"vertical"===t[5],forceWidth:"horizontal"===t[5],$$slots:{default:[bo]},$$scope:{ctx:t}}}),{c(){Re(e.$$.fragment)},l(t){We(e.$$.fragment,t)},m(t,r){Le(e,t,r),n=!0},p(t,n){const r={};16384&n[0]&&(r.cls=jn("gallery",co,t[14])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),32&n[0]&&(r.forceHeight="vertical"===t[5]),32&n[0]&&(r.forceWidth="horizontal"===t[5]),4296672&n[0]|2&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ie(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function mo(t){let e,n;return e=new Qi({props:{layoutParams:t[7],div:t[60].json,templateContext:t[60].templateContext,origJson:t[60].origJson}}),{c(){Re(e.$$.fragment)},l(t){We(e.$$.fragment,t)},m(t,r){Le(e,t,r),n=!0},p(t,n){const r={};128&n[0]&&(r.layoutParams=t[7]),4194304&n[0]&&(r.div=t[60].json),4194304&n[0]&&(r.templateContext=t[60].templateContext),4194304&n[0]&&(r.origJson=t[60].origJson),e.$set(r)},i(t){n||(Ie(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function vo(t){let e,n,r,o,i,a=t[59],l=t[57],s=[];for(let e=0;e<l.length;e+=1)s[e]=mo(po(t,l,e));const c=t=>Ne(s[t],1,1,(()=>{s[t]=null})),u=()=>t[45](e,a),d=()=>t[45](null,a);return{c(){e=Bt("div");for(let t=0;t<s.length;t+=1)s[t].c();n=Lt(),this.h()},l(t){e=Zt(t,"DIV",{class:!0,style:!0});var r=Kt(e);for(let t=0;t<s.length;t+=1)s[t].l(r);n=ee(r),r.forEach(Ot),this.h()},h(){Ht(e,"class",r=co.gallery__items),Ht(e,"style",o=pn(t[15]))},m(t,r){Jt(t,e,r);for(let t=0;t<s.length;t+=1)s[t].m(e,null);Mt(e,n),u(),i=!0},p(r,h){if(t=r,4194432&h[0]){let r;for(l=t[57],r=0;r<l.length;r+=1){const o=po(t,l,r);s[r]?(s[r].p(o,h),Ie(s[r],1)):(s[r]=mo(o),s[r].c(),Ie(s[r],1),s[r].m(e,n))}for(Se(),r=l.length;r<s.length;r+=1)c(r);Fe()}(!i||32768&h[0]&&o!==(o=pn(t[15])))&&Ht(e,"style",o),a!==t[59]&&(d(),a=t[59],u())},i(t){if(!i){for(let t=0;t<l.length;t+=1)Ie(s[t]);i=!0}},o(t){s=s.filter(ho);for(let t=0;t<s.length;t+=1)Ne(s[t]);i=!1},d(t){t&&Ot(e),Tt(s,t),d()}}}function $o(t){let e,n,r=t[10]&&yo(t),o=t[11]&&_o(t);return{c(){r&&r.c(),e=Lt(),o&&o.c(),n=Ut()},l(t){r&&r.l(t),e=ee(t),o&&o.l(t),n=Ut()},m(t,i){r&&r.m(t,i),Jt(t,e,i),o&&o.m(t,i),Jt(t,n,i)},p(t,i){t[10]?r?r.p(t,i):(r=yo(t),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),t[11]?o?o.p(t,i):(o=_o(t),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},d(t){r&&r.d(t),t&&Ot(e),o&&o.d(t),t&&Ot(n)}}}function yo(t){let e,n,r,o,i,a,l,s;return{c(){e=Bt("div"),n=Rt("svg"),r=Rt("path"),this.h()},l(t){e=Zt(t,"DIV",{class:!0});var o=Kt(e);n=Qt(o,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var i=Kt(n);r=Qt(i,"path",{class:!0,d:!0}),Kt(r).forEach(Ot),i.forEach(Ot),o.forEach(Ot),this.h()},h(){Ht(r,"class",o=co["gallery__arrow-icon-path"]),Ht(r,"d","m10 16 8.3 8 1.03-1-4-6-.7-1 .7-1 4-6-1.03-1z"),Ht(n,"class",i=co["gallery__arrow-icon"]),Ht(n,"xmlns","http://www.w3.org/2000/svg"),Ht(n,"width","32"),Ht(n,"height","32"),Ht(n,"viewBox","0 0 32 32"),Ht(n,"fill","none"),Ht(e,"class",a=co.gallery__arrow+" "+co.gallery__arrow_left+" "+cn)},m(o,i){Jt(o,e,i),Mt(e,n),Mt(n,r),l||(s=qt(e,"click",t[47]),l=!0)},p:ct,d(t){t&&Ot(e),l=!1,s()}}}function _o(t){let e,n,r,o,i,a,l,s;return{c(){e=Bt("div"),n=Rt("svg"),r=Rt("path"),this.h()},l(t){e=Zt(t,"DIV",{class:!0});var o=Kt(e);n=Qt(o,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var i=Kt(n);r=Qt(i,"path",{class:!0,d:!0}),Kt(r).forEach(Ot),i.forEach(Ot),o.forEach(Ot),this.h()},h(){Ht(r,"class",o=co["gallery__arrow-icon-path"]),Ht(r,"d","M22 16l-8.3 8-1.03-1 4-6 .7-1-.7-1-4-6 1.03-1 8.3 8z"),Ht(n,"class",i=co["gallery__arrow-icon"]),Ht(n,"xmlns","http://www.w3.org/2000/svg"),Ht(n,"width","32"),Ht(n,"height","32"),Ht(n,"viewBox","0 0 32 32"),Ht(n,"fill","none"),Ht(e,"class",a=co.gallery__arrow+" "+co.gallery__arrow_right+" "+cn)},m(o,i){Jt(o,e,i),Mt(e,n),Mt(n,r),l||(s=qt(e,"click",t[48]),l=!0)},p:ct,d(t){t&&Ot(e),l=!1,s()}}}function bo(t){let e,n,r,o,i,a,l,s,c,u,d,h=t[22],f=[];for(let e=0;e<h.length;e+=1)f[e]=vo(fo(t,h,e));const p=t=>Ne(f[t],1,1,(()=>{f[t]=null}));let g="horizontal"===t[5]&&$o(t);return{c(){e=Bt("div"),n=Bt("div");for(let t=0;t<f.length;t+=1)f[t].c();l=Lt(),g&&g.c(),s=Ut(),this.h()},l(t){e=Zt(t,"DIV",{class:!0,style:!0});var r=Kt(e);n=Zt(r,"DIV",{class:!0,style:!0});var o=Kt(n);for(let t=0;t<f.length;t+=1)f[t].l(o);o.forEach(Ot),r.forEach(Ot),l=ee(t),g&&g.l(t),s=Ut(),this.h()},h(){Ht(n,"class",r=co["gallery__items-grid"]),Ht(n,"style",o=pn(t[16])),Ht(e,"class",i=co.gallery__scroller),Ht(e,"style",a=pn(t[6]))},m(r,o){Jt(r,e,o),Mt(e,n);for(let t=0;t<f.length;t+=1)f[t].m(n,null);t[46](e),Jt(r,l,o),g&&g.m(r,o),Jt(r,s,o),c=!0,u||(d=qt(e,"scroll",t[25]),u=!0)},p(t,r){if(4227712&r[0]){let e;for(h=t[22],e=0;e<h.length;e+=1){const o=fo(t,h,e);f[e]?(f[e].p(o,r),Ie(f[e],1)):(f[e]=vo(o),f[e].c(),Ie(f[e],1),f[e].m(n,null))}for(Se(),e=h.length;e<f.length;e+=1)p(e);Fe()}(!c||65536&r[0]&&o!==(o=pn(t[16])))&&Ht(n,"style",o),(!c||64&r[0]&&a!==(a=pn(t[6])))&&Ht(e,"style",a),"horizontal"===t[5]?g?g.p(t,r):(g=$o(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)Ie(f[t]);c=!0}},o(t){f=f.filter(ho);for(let t=0;t<f.length;t+=1)Ne(f[t]);c=!1},d(n){n&&Ot(e),Tt(f,n),t[46](null),n&&Ot(l),g&&g.d(n),n&&Ot(s),u=!1,d()}}}function xo(t){let e,n,r=!t[4]&&go(t);return{c(){r&&r.c(),e=Ut()},l(t){r&&r.l(t),e=Ut()},m(t,o){r&&r.m(t,o),Jt(t,e,o),n=!0},p(t,n){t[4]?r&&(Se(),Ne(r,1,1,(()=>{r=null})),Fe()):r?(r.p(t,n),16&n[0]&&Ie(r,1)):(r=go(t),r.c(),Ie(r,1),r.m(e.parentNode,e))},i(t){n||(Ie(r),n=!0)},o(t){Ne(r),n=!1},d(t){r&&r.d(t),t&&Ot(e)}}}function wo(t,e,n){let r,o,i,a,l,s,c,u,d,h,f,p,g,m,v,$,y,_,b,x,w,k,C=ct,E=ct,A=ct,j=ct,V=ct,D=ct,P=ct,S=ct;t.$$.on_destroy.push((()=>C())),t.$$.on_destroy.push((()=>E())),t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>S()));let{json:F={}}=e,{templateContext:I}=e,{origJson:N}=e,{layoutParams:z}=e;const M=fe(un);let J,O,T,B=[],R=!1,W=!1,L=!1,U=1,q="horizontal",H="start",G=8,K="",X=[],Y={},Z=!1,Q={},tt=0;function et(){const t=J.scrollLeft,e=J.scrollWidth,r=J.offsetWidth;n(10,R=t>2),n(11,W=t+r<e-2)}function nt(t){J.scroll({left:J.scrollLeft+.75*J.offsetWidth*("right"===t?1:-1),behavior:"smooth"})}function rt(){let t=[],e=B[0].children.length;for(let n=0;n<e;++n)for(let e=0;e<U;++e){const r=B[e].children[n];r&&t.push(r)}return t}function ot(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";const r="horizontal"===q,o=r?"offsetLeft":"offsetTop",i=r?"left":"top";J.scroll({[i]:Math.max(0,t[e][o]-G/2),behavior:n})}function it(t){const e=rt(),n=J.getBoundingClientRect(),r=e.findIndex((t=>function(t,e){return"horizontal"===q?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"===q?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 ue((()=>{!L&&(et(),tt)&&ot(rt(),tt,"auto")})),F.id&&!L&&M.registerInstance(F.id,{setCurrentItem(t){const e=rt();if(t<0||t>e.length-1)throw new Error('Item is out of range in "set-current-item" action');ot(e,t)},setPreviousItem(t){const e=it("prev"),n=rt();let r=e-1;r<0&&(r="ring"===t?n.length-1:e),ot(n,r)},setNextItem(t){const e="horizontal"===q?J.scrollLeft+J.offsetWidth===J.scrollWidth:J.scrollTop+J.offsetHeight===J.scrollHeight,n=rt();if(e&&"ring"===t)return void ot(n,0);const r=it("next");let o=r+1;o>n.length-1&&(o="ring"===t?0:r),ot(n,o)}}),t.$$set=t=>{"json"in t&&n(0,F=t.json),"templateContext"in t&&n(1,I=t.templateContext),"origJson"in t&&n(2,N=t.origJson),"layoutParams"in t&&n(3,z=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&n(36,r=F.items),32&t.$$.dirty[1]&&((null==r?void 0:r.length)&&Array.isArray(r)?n(4,L=!1):(n(4,L=!0),M.logError(dn(new Error('Incorrect or empty "items" prop for div "gallery"'))))),18&t.$$.dirty[0]|32&t.$$.dirty[1]&&n(35,o=(!L&&r||[]).map((t=>{let e=t,n=I;return({templateContext:n,json:e}=M.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),1&t.$$.dirty[0]&&(n(23,i=M.getDerivedFromVars(F.column_count)),S(),S=_t(i,(t=>n(44,k=t)))),67108864&t.$$.dirty[0]|8192&t.$$.dirty[1]&&n(26,U=sr(k,U)),67108864&t.$$.dirty[0]|16&t.$$.dirty[1]&&n(22,a=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,U)),1&t.$$.dirty[0]&&(n(21,l=M.getDerivedFromVars(F.orientation)),P(),P=_t(l,(t=>n(43,w=t)))),32&t.$$.dirty[0]|4096&t.$$.dirty[1]&&n(5,q=Or(w,q)),1&t.$$.dirty[0]&&(n(20,s=M.getDerivedFromVars(F.cross_content_alignment)),D(),D=_t(s,(t=>n(42,x=t)))),134217728&t.$$.dirty[0]|2048&t.$$.dirty[1]&&n(27,H=function(t,e){return"start"===t||"center"===t||"end"===t?t:e}(x,H)),1&t.$$.dirty[0]&&(n(19,c=M.getDerivedFromVars(F.item_spacing)),V(),V=_t(c,(t=>n(41,b=t)))),536870912&t.$$.dirty[0]|1024&t.$$.dirty[1]&&(n(29,G=Nn(b,G)),n(28,O=gn(G))),1&t.$$.dirty[0]&&(n(18,u=M.getDerivedFromVars(F.paddings)),j(),j=_t(u,(t=>n(40,_=t)))),1073741824&t.$$.dirty[0]|512&t.$$.dirty[1]&&n(30,K=In(_,K)),32&t.$$.dirty[0]&&n(34,d="horizontal"===q?"grid-template-columns":"grid-template-rows"),32&t.$$.dirty[0]|16&t.$$.dirty[1]){let t=[];o.forEach((e=>{const n="horizontal"===q?"width":"height";t.push(M.getDerivedFromVars(e.json[n]))})),n(12,T=Xe(t,(t=>t))),A(),A=_t(T,(t=>n(39,y=t)))}if(67108896&t.$$.dirty[0]|257&t.$$.dirty[1]&&(n(31,X=[]),U>1?X.push("auto"):y.forEach((t=>{!t&&"horizontal"===q||"match_parent"===(null==t?void 0:t.type)?X.push("100%"):X.push("max-content")}))),1&t.$$.dirty[0]&&(n(17,h=M.getDerivedFromVars(F.scroll_mode)),E(),E=_t(h,(t=>n(38,$=t)))),738197728&t.$$.dirty[0]|128&t.$$.dirty[1]){const t={};let e={};n(32,Z=!1),"horizontal"===q?e.parentVAlign=H:e.parentHAlign=H,"paging"===$&&(n(32,Z=!0),e.scrollSnap="start",t["horizontal"===q?"scroll-padding-left":"scroll-padding-top"]=gn(G/2)),1===U&&(e.parentLayoutOrientation=q),n(6,Y=Jn(t,Y)),n(7,Q=Jn(e,Q))}1342177280&t.$$.dirty[0]&&n(16,f={padding:K,"grid-gap":O}),268435456&t.$$.dirty[0]|9&t.$$.dirty[1]&&n(15,p={"grid-gap":O,[d]:uo(X)}),32&t.$$.dirty[0]|2&t.$$.dirty[1]&&n(14,g={orientation:q,"scroll-snap":Z}),1&t.$$.dirty[0]&&(n(13,m=M.getDerivedFromVars(F.default_item)),C(),C=_t(m,(t=>n(37,v=t)))),68&t.$$.dirty[1]&&n(33,tt=Nn(v,tt))},[F,I,N,z,L,q,Y,Q,J,B,R,W,T,m,g,p,f,h,u,c,s,l,a,i,nt,function(){et()},U,H,O,G,K,X,Z,tt,d,o,r,v,$,y,_,b,x,w,k,function(t,e){me[t?"unshift":"push"]((()=>{B[e]=t,n(9,B)}))},function(t){me[t?"unshift":"push"]((()=>{J=t,n(8,J)}))},()=>nt("left"),()=>nt("right")]}const ko={tabs:"divkit-e0df",tabs__list:"divkit-ea19",tabs__item:"divkit-c25c",tabs__item_selected:"divkit-d560",tabs__item_actionable:"divkit-dfda",tabs__panels:"divkit-f5dc",tabs__swiper:"divkit-eb42",tabs__swiper_animated:"divkit-b9f1",tabs__swiper_inited:"divkit-fa57",tabs__panel:"divkit-cc9f",tabs__panel_visible:"divkit-e730",tabs__separator:"divkit-b85b"},{Boolean:Co}=Je;function Eo(t,e,n){const r=t.slice();return r[77]=e[n],r[79]=n,r}function Ao(t,e,n){const r=t.slice();r[77]=e[n],r[79]=n;const o=r[79]===r[6];return r[80]=o,r}function jo(t){let e,n;return e=new ar({props:{cls:jn("tabs",ko,t[37]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customActions:"tabs",$$slots:{default:[Io]},$$scope:{ctx:t}}}),{c(){Re(e.$$.fragment)},l(t){We(e.$$.fragment,t)},m(t,r){Le(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]),805306338&n[0]|1048576&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ie(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function Vo(t){let e,n,r=t[77].title+"";return{c(){e=Wt(r),n=Lt()},l(t){e=te(t,r),n=ee(t)},m(t,r){Jt(t,e,r),Jt(t,n,r)},p(t,n){65536&n[0]&&r!==(r=t[77].title+"")&&ne(e,r)},d(t){t&&Ot(e),t&&Ot(n)}}}function Do(t){let e,n;return e=new Un({props:{cls:jn("tabs__item",ko,{selected:t[80],actionable:Boolean(t[77].title_click_action)}),actions:t[77].title_click_action?[t[77].title_click_action]:[],attrs:{id:"".concat(t[36],"-tab-").concat(t[79]),"aria-controls":"".concat(t[36],"-panel-").concat(t[79]),role:"tab",tabindex:t[80]?t[77].title_click_action?void 0:"0":"-1","aria-selected":t[80]?"true":"false"},customAction:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t[53](t[79],...n)},$$slots:{default:[Vo]},$$scope:{ctx:t}}}),e.$on("keydown",t[39]),{c(){Re(e.$$.fragment)},l(t){We(e.$$.fragment,t)},m(t,r){Le(e,t,r),n=!0},p(n,r){t=n;const o={};65600&r[0]&&(o.cls=jn("tabs__item",ko,{selected:t[80],actionable:Boolean(t[77].title_click_action)})),65536&r[0]&&(o.actions=t[77].title_click_action?[t[77].title_click_action]:[]),65600&r[0]&&(o.attrs={id:"".concat(t[36],"-tab-").concat(t[79]),"aria-controls":"".concat(t[36],"-panel-").concat(t[79]),role:"tab",tabindex:t[80]?t[77].title_click_action?void 0:"0":"-1","aria-selected":t[80]?"true":"false"}),65536&r[0]|1048576&r[2]&&(o.$$scope={dirty:r,ctx:t}),e.$set(o)},i(t){n||(Ie(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function Po(t){let e,n,r;return{c(){e=Bt("div"),this.h()},l(t){e=Zt(t,"DIV",{class:!0,style:!0}),Kt(e).forEach(Ot),this.h()},h(){Ht(e,"class",n=ko.tabs__separator),Ht(e,"style",r=pn(t[29]))},m(t,n){Jt(t,e,n)},p(t,n){536870912&n[0]&&r!==(r=pn(t[29]))&&Ht(e,"style",r)},d(t){t&&Ot(e)}}}function So(t){let e,n;return e=new Qi({props:{div:t[77].div,templateContext:t[1],layoutParams:t[5]}}),{c(){Re(e.$$.fragment)},l(t){We(e.$$.fragment,t)},m(t,r){Le(e,t,r),n=!0},p(t,n){const r={};65536&n[0]&&(r.div=t[77].div),2&n[0]&&(r.templateContext=t[1]),32&n[0]&&(r.layoutParams=t[5]),e.$set(r)},i(t){n||(Ie(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function Fo(t){let e,n,r,o,i,a,l=t[25][t[79]]&&So(t);return{c(){e=Bt("div"),l&&l.c(),n=Lt(),this.h()},l(t){e=Zt(t,"DIV",{class:!0,role:!0,id:!0,"aria-labelledby":!0,style:!0});var r=Kt(e);l&&l.l(r),n=ee(r),r.forEach(Ot),this.h()},h(){Ht(e,"class",r=jn("tabs__panel",ko,{visible:t[26][t[79]]})),Ht(e,"role","tabpanel"),Ht(e,"id",o=t[36]+"-panel-"+t[79]),Ht(e,"aria-labelledby",i=t[36]+"-tab-"+t[79]),re(e,"left",100*t[79]+"%")},m(t,r){Jt(t,e,r),l&&l.m(e,null),Mt(e,n),a=!0},p(t,o){t[25][t[79]]?l?(l.p(t,o),33554432&o[0]&&Ie(l,1)):(l=So(t),l.c(),Ie(l,1),l.m(e,n)):l&&(Se(),Ne(l,1,1,(()=>{l=null})),Fe()),(!a||67108864&o[0]&&r!==(r=jn("tabs__panel",ko,{visible:t[26][t[79]]})))&&Ht(e,"class",r)},i(t){a||(Ie(l),a=!0)},o(t){Ne(l),a=!1},d(t){t&&Ot(e),l&&l.d()}}}function Io(t){let e,n,r,o,i,a,l,s,c,u,d,h=t[16],f=[];for(let e=0;e<h.length;e+=1)f[e]=Do(Ao(t,h,e));const p=t=>Ne(f[t],1,1,(()=>{f[t]=null}));let g=t[17]&&Po(t),m=t[16],v=[];for(let e=0;e<m.length;e+=1)v[e]=Fo(Eo(t,m,e));const $=t=>Ne(v[t],1,1,(()=>{v[t]=null}));return{c(){e=Bt("div");for(let t=0;t<f.length;t+=1)f[t].c();r=Lt(),g&&g.c(),o=Lt(),i=Bt("div"),a=Bt("div");for(let t=0;t<v.length;t+=1)v[t].c();this.h()},l(t){e=Zt(t,"DIV",{class:!0,role:!0});var n=Kt(e);for(let t=0;t<f.length;t+=1)f[t].l(n);n.forEach(Ot),r=ee(t),g&&g.l(t),o=ee(t),i=Zt(t,"DIV",{class:!0});var l=Kt(i);a=Zt(l,"DIV",{class:!0});var s=Kt(a);for(let t=0;t<v.length;t+=1)v[t].l(s);s.forEach(Ot),l.forEach(Ot),this.h()},h(){Ht(e,"class",n=ko.tabs__list),Ht(e,"role","tablist"),re(e,"--divkit-tabs-font-size",gn(t[7]),!1),re(e,"--divkit-tabs-paddings",t[8],!1),re(e,"--divkit-tabs-line-height",t[21],!1),re(e,"--divkit-tabs-letter-spacing",t[22],!1),re(e,"--divkit-tabs-active-font-weight",t[10]||"",!1),re(e,"--divkit-tabs-inactive-font-weight",t[11]||"",!1),re(e,"--divkit-tabs-active-text-color",t[12],!1),re(e,"--divkit-tabs-inactive-text-color",t[13],!1),re(e,"--divkit-tabs-active-background-color",t[14],!1),re(e,"--divkit-tabs-inactive-background-color",t[15],!1),re(e,"--divkit-tabs-border-radius",t[9],!1),Ht(a,"class",l=jn("tabs__swiper",ko,{inited:t[23],animated:t[24]})),Ht(i,"class",s=ko.tabs__panels)},m(n,l){Jt(n,e,l);for(let t=0;t<f.length;t+=1)f[t].m(e,null);t[54](e),Jt(n,r,l),g&&g.m(n,l),Jt(n,o,l),Jt(n,i,l),Mt(i,a);for(let t=0;t<v.length;t+=1)v[t].m(a,null);t[55](a),t[56](i),c=!0,u||(d=[qt(a,"touchstart",(function(){gt(t[27]?t[40]:void 0)&&(t[27]?t[40]:void 0).apply(this,arguments)})),qt(a,"touchmove",(function(){gt(t[27]?t[41]:void 0)&&(t[27]?t[41]:void 0).apply(this,arguments)})),qt(a,"touchend",(function(){gt(t[27]?t[42]:void 0)&&(t[27]?t[42]:void 0).apply(this,arguments)})),qt(a,"touchcancel",(function(){gt(t[27]?t[42]:void 0)&&(t[27]?t[42]:void 0).apply(this,arguments)}))],u=!0)},p(n,r){if(t=n,65600&r[0]|416&r[1]){let n;for(h=t[16],n=0;n<h.length;n+=1){const o=Ao(t,h,n);f[n]?(f[n].p(o,r),Ie(f[n],1)):(f[n]=Do(o),f[n].c(),Ie(f[n],1),f[n].m(e,null))}for(Se(),n=h.length;n<f.length;n+=1)p(n);Fe()}if(128&r[0]&&re(e,"--divkit-tabs-font-size",gn(t[7]),!1),256&r[0]&&re(e,"--divkit-tabs-paddings",t[8],!1),2097152&r[0]&&re(e,"--divkit-tabs-line-height",t[21],!1),4194304&r[0]&&re(e,"--divkit-tabs-letter-spacing",t[22],!1),1024&r[0]&&re(e,"--divkit-tabs-active-font-weight",t[10]||"",!1),2048&r[0]&&re(e,"--divkit-tabs-inactive-font-weight",t[11]||"",!1),4096&r[0]&&re(e,"--divkit-tabs-active-text-color",t[12],!1),8192&r[0]&&re(e,"--divkit-tabs-inactive-text-color",t[13],!1),16384&r[0]&&re(e,"--divkit-tabs-active-background-color",t[14],!1),32768&r[0]&&re(e,"--divkit-tabs-inactive-background-color",t[15],!1),512&r[0]&&re(e,"--divkit-tabs-border-radius",t[9],!1),t[17]?g?g.p(t,r):(g=Po(t),g.c(),g.m(o.parentNode,o)):g&&(g.d(1),g=null),100728866&r[0]|32&r[1]){let e;for(m=t[16],e=0;e<m.length;e+=1){const n=Eo(t,m,e);v[e]?(v[e].p(n,r),Ie(v[e],1)):(v[e]=Fo(n),v[e].c(),Ie(v[e],1),v[e].m(a,null))}for(Se(),e=m.length;e<v.length;e+=1)$(e);Fe()}(!c||25165824&r[0]&&l!==(l=jn("tabs__swiper",ko,{inited:t[23],animated:t[24]})))&&Ht(a,"class",l)},i(t){if(!c){for(let t=0;t<h.length;t+=1)Ie(f[t]);for(let t=0;t<m.length;t+=1)Ie(v[t]);c=!0}},o(t){f=f.filter(Co);for(let t=0;t<f.length;t+=1)Ne(f[t]);v=v.filter(Co);for(let t=0;t<v.length;t+=1)Ne(v[t]);c=!1},d(n){n&&Ot(e),Tt(f,n),t[54](null),n&&Ot(r),g&&g.d(n),n&&Ot(o),n&&Ot(i),Tt(v,n),t[55](null),t[56](null),u=!1,pt(d)}}}function No(t){let e,n,r=!t[4]&&jo(t);return{c(){r&&r.c(),e=Ut()},l(t){r&&r.l(t),e=Ut()},m(t,o){r&&r.m(t,o),Jt(t,e,o),n=!0},p(t,n){t[4]?r&&(Se(),Ne(r,1,1,(()=>{r=null})),Fe()):r?(r.p(t,n),16&n[0]&&Ie(r,1)):(r=jo(t),r.c(),Ie(r,1),r.m(e.parentNode,e))},i(t){n||(Ie(r),n=!0)},o(t){Ne(r),n=!1},d(t){r&&r.d(t),t&&Ot(e)}}}function zo(t){const e=t.touches[0];return{x:e.clientX||e.pageX,y:e.clientY||e.pageY}}function Mo(t,e,n){let r,o,i,a,l,s,c,u,d,h,f,p,g,m,v,$,y,_,b=ct,x=ct,w=ct,k=ct,C=ct,A=ct,j=ct;var V;t.$$.on_destroy.push((()=>b())),t.$$.on_destroy.push((()=>x())),t.$$.on_destroy.push((()=>w())),t.$$.on_destroy.push((()=>k())),t.$$.on_destroy.push((()=>C())),t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>j()));let{json:D={}}=e,{templateContext:P}=e,{origJson:S}=e,{layoutParams:F}=e;const I=fe(un),N=I.genId("tabs");let z,M,J,O=!1,T={};const B=I.getJsonWithVars(D.selected_tab);let R,W,L=B&&Number(B)||0,U=12,q="",H="",G="",K="",X="",Y="",Z="",Q="",tt="",et="",nt=!1,rt=!1,ot=L,it=[],at=[];async function lt(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(ot=L,n(6,L=t),mt(),dt(),e){await xe();const t=z.querySelector(".".concat(ko.tabs__item_selected));t&&t.focus()}}function st(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=L+t;o>=n?o=0:o<0&&(o=n-1),lt(o,e)}function ut(t,e){return L===e||(lt(e),!1)}function dt(){n(24,rt=!0),ht(100*-L),ft(),async function(){await xe();const t=document.getElementById("".concat(N,"-panel-").concat(L));t&&n(19,M.style.height=gn(t.offsetHeight),M)}(),gt(),yt=-L*M.clientWidth}async function ht(t){await xe(),n(20,J.style.transform="translate3d(".concat(t,"%,0,0)"),J)}function ft(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const e=t?Math.max(0,L-1):Math.min(L,ot),o=t?Math.min(r.length-1,L+1):Math.max(L,ot);n(25,it=it.map(((t,n)=>t||n>=e&&n<=o))),n(26,at=at.map(((t,n)=>n>=e&&n<=o)))}let pt=null;function gt(){pt&&clearTimeout(pt),pt=window.setTimeout((()=>{n(26,at=r.map(((t,e)=>e===L)))}),400)}function mt(){nt||(n(23,nt=!0),n(19,M.style.height=gn(M.clientHeight),M),n(20,J.style.transform="translate3d(".concat(100*-ot,"%,0,0)"),J))}let vt,$t,yt,bt=null,xt=null,wt=!1,kt=!1;return D.id&&!O&&I.registerInstance(D.id,{setCurrentItem(t){if(t<0||t>r.length-1)throw new Error('Item is out of range in "set-current-item" action');lt(t)},setPreviousItem(t){let e=L-1;e<0&&(e="ring"===t?r.length-1:L),lt(e)},setNextItem(t){let e=L+1;e>r.length-1&&(e="ring"===t?0:L),lt(e)}}),t.$$set=t=>{"json"in t&&n(0,D=t.json),"templateContext"in t&&n(1,P=t.templateContext),"origJson"in t&&n(2,S=t.origJson),"layoutParams"in t&&n(3,F=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&n(16,r=D.items||[]),65536&t.$$.dirty[0]&&((null==r?void 0:r.length)&&Array.isArray(r)?n(4,O=!1):(n(4,O=!0),I.logError(dn(new Error('Incorrect or empty "items" prop for div "tabs"'))))),1&t.$$.dirty[0]&&(n(35,o=I.getDerivedFromVars(D.width)),j(),j=_t(o,(t=>n(52,_=t)))),1&t.$$.dirty[0]&&(n(34,i=I.getDerivedFromVars(D.height)),A(),A=_t(i,(t=>n(51,y=t)))),32&t.$$.dirty[0]|3145728&t.$$.dirty[1]){let t={};"wrap_content"===(null==_?void 0:_.type)&&(t.parentHorizontalWrapContent=!0),y&&"wrap_content"!==y.type||(t.parentVerticalWrapContent=!0),n(5,T=Jn(t,T))}if(65617&t.$$.dirty[0]&&!O&&(L<0||L>=r.length)&&(I.logError(dn(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:D.selected_tab,length:r.length}})),n(6,L=L<0?0:r.length-1)),1&t.$$.dirty[0]&&(n(33,a=I.getDerivedFromVars(D.tab_title_style)),C(),C=_t(a,(t=>n(50,$=t)))),524288&t.$$.dirty[1]&&n(46,l=$||{}),128&t.$$.dirty[0]|32768&t.$$.dirty[1]&&n(7,U=sr(l.font_size,U)),384&t.$$.dirty[0]|32768&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)/U*10,right:(Number(t.right)||0)/U*10,bottom:(Number(t.bottom)||0)/U*10,left:(Number(t.left)||0)/U*10};n(8,q=In(e,q))}if(128&t.$$.dirty[0]|32768&t.$$.dirty[1]){const t=l.line_height;void 0!==t&&cr(t)&&n(21,H=gn(t/U*10))}if(128&t.$$.dirty[0]|32768&t.$$.dirty[1]){const t=l.letter_spacing;void 0!==t&&Sn(t)&&n(22,G=gn(t/U*10))}if(640&t.$$.dirty[0]|36864&t.$$.dirty[1]&&(l.corner_radius||l.corners_radius||l.font_size)){const t=null!==n(43,V=l.corner_radius)&&void 0!==V?V:1e3;l.corners_radius?n(9,K=Fn(l.corners_radius,t,U,K)):Sn(t)&&n(9,K=gn(t/U*10))}1024&t.$$.dirty[0]|32768&t.$$.dirty[1]&&n(10,R=dr(l.active_font_weight||l.font_weight,R)),2048&t.$$.dirty[0]|32768&t.$$.dirty[1]&&n(11,W=dr(l.inactive_font_weight||l.font_weight,W)),4096&t.$$.dirty[0]|32768&t.$$.dirty[1]&&n(12,X=E(l.active_text_color,1,X)),8192&t.$$.dirty[0]|32768&t.$$.dirty[1]&&n(13,Y=E(l.inactive_text_color,1,Y)),16384&t.$$.dirty[0]|32768&t.$$.dirty[1]&&n(14,Z=E(l.active_background_color,1,Z)),32768&t.$$.dirty[0]|32768&t.$$.dirty[1]&&n(15,Q=E(l.inactive_background_color,1,Q)),1&t.$$.dirty[0]&&(n(32,s=I.getDerivedFromVars(D.has_separator)),k(),k=_t(s,(t=>n(17,v=t)))),1&t.$$.dirty[0]&&(n(31,c=I.getDerivedFromVars(D.separator_color)),w(),w=_t(c,(t=>n(49,m=t)))),1&t.$$.dirty[0]&&(n(30,u=I.getDerivedFromVars(D.separator_paddings)),x(),x=_t(u,(t=>n(48,g=t)))),131072&t.$$.dirty[0]|417792&t.$$.dirty[1]&&v&&(m&&n(44,tt=E(m,1,tt)),g&&n(45,et=In(g,et))),24576&t.$$.dirty[1]&&n(29,d={background:tt,margin:et}),1&t.$$.dirty[0]&&(n(28,h=I.getDerivedFromVars(D.switch_tabs_by_content_swipe_enabled)),b(),b=_t(h,(t=>n(47,p=t)))),65536&t.$$.dirty[1]&&n(27,f=void 0===p||Boolean(p)),65536&t.$$.dirty[0]&&(O||(n(25,it=r.map(((t,e)=>e===L))),n(26,at=r.map(((t,e)=>e===L)))))},[D,P,S,F,O,T,L,U,q,K,R,W,X,Y,Z,Q,r,v,z,M,J,H,G,nt,rt,it,at,f,h,d,u,c,s,a,i,o,N,{},ut,function(t){if(!(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)&&r){if(37===t.which)st(-1,!0);else if(39===t.which)st(1,!0);else if(36===t.which)lt(0,!0);else{if(35!==t.which)return;lt(r.length-1,!0)}t.preventDefault()}},function(t){r.length<2||t.touches.length>1||(wt=!1,kt=!1,bt=zo(t),xt=null,vt=Date.now(),$t=yt||-L*M.clientWidth,n(24,rt=!1),pt&&clearTimeout(pt))},function(t){const e=zo(t);if(!bt||xt&&xt.x===e.x&&xt.y===e.y)return;xt=e;const n=M.clientWidth;if(wt){yt=e.x-bt.x+$t;const t=n*r.length;if(yt>0)yt=yt*n/(yt+3*n);else if(-yt+n>t){let e=-yt+n-t;e=e*n/(e+3*n),yt=n-t-e}ht(100*yt/n)}else Math.abs(e.y-bt.y)>10?kt=!0:!kt&&Math.abs(e.x-bt.x)>8&&(mt(),wt=!0,bt=e,ht(100*-L),ft(!0));wt&&t.cancelable&&t.preventDefault()},function(){kt=!1,bt=null;let t=L;if(!wt)return;wt=!1;const e=Math.min(512,M.clientWidth);Math.abs($t-yt)>e/4*Math.min(1,(Date.now()-vt)/750)&&(t+=$t>yt?1:-1),t>=r.length?t=r.length-1:t<0&&(t=0),t===L?(yt=-t*e,ht(100*-t),gt()):lt(t)},V,tt,et,l,p,g,m,$,y,_,(t,e)=>ut(0,t),function(t){me[t?"unshift":"push"]((()=>{z=t,n(18,z)}))},function(t){me[t?"unshift":"push"]((()=>{J=t,n(20,J)}))},function(t){me[t?"unshift":"push"]((()=>{M=t,n(19,M)}))}]}const Jo="divkit-eb86",Oo="divkit-e08c";function To(t){return t<.5?4*t*t*t:.5*Math.pow(2*t-2,3)+1}function Bo(t){return t*t*t}function Ro(t){const e=t-1;return e*e*e+1}function Wo(t){return e=>{if(e<=0)return 0;if(e>=1)return 1;const n=e*t.length,r=Math.floor(n),o=n-r;return t[r]*o+t[r+1]*(1-o)}}const Lo=Wo([.0021,.0045,.0071,.01,.0131,.0165,.0202,.0242,.0284,.033,.0378,.0429,.0483,.054,.0601,.0664,.0731,.08,.0872,.0948,.1026,.1108,.1192,.1279,.1369,.1461,.1556,.1653,.1753,.1855,.1958,.2064,.2171,.2279,.2389,.25,.2612,.2725,.2839,.2952,.3067,.3181,.3295,.341,.3524,.3637,.375,.3863,.3974,.4085,.4195,.4304,.4412,.4519,.4624,.4729,.4832,.4934,.5034,.5133,.5231,.5327,.5422,.5516,.5608,.5699,.5788,.5876,.5963,.6048,.6132,.6214,.6295,.6375,.6453,.653,.6606,.668,.6754,.6825,.6896,.6965,.7034,.7101,.7166,.7231,.7295,.7357,.7418,.7479,.7538,.7596,.7653,.7709,.7764,.7818,.7871,.7923,.7974,.8024,.8073,.8122,.8169,.8216,.8261,.8306,.835,.8394,.8436,.8478,.8518,.8558,.8598,.8636,.8674,.8711,.8747,.8783,.8818,.8852,.8886,.8919,.8951,.8983,.9014,.9044,.9074,.9103,.9131,.9159,.9187,.9213,.924,.9265,.929,.9315,.9339,.9362,.9385,.9408,.943,.9451,.9472,.9492,.9512,.9532,.9551,.9569,.9587,.9605,.9622,.9638,.9655,.967,.9686,.9701,.9715,.9729,.9743,.9756,.9769,.9782,.9794,.9805,.9817,.9828,.9838,.9848,.9858,.9868,.9877,.9886,.9894,.9902,.991,.9917,.9924,.9931,.9937,.9943,.9949,.9954,.9959,.9964,.9969,.9973,.9977,.998,.9983,.9986,.9989,.9991,.9993,.9995,.9997,.9998,.9999,.9999,1,1]),Uo=Wo([5e-4,.002,.0045,.0078,.0119,.0168,.0224,.0286,.0355,.0429,.0508,.0592,.0681,.0774,.087,.0969,.1072,.1177,.1285,.1395,.1507,.1621,.1736,.1853,.197,.2089,.2208,.2328,.2448,.2569,.2689,.281,.293,.305,.317,.3289,.3408,.3526,.3644,.376,.3876,.3991,.4105,.4218,.433,.444,.455,.4658,.4765,.4871,.4975,.5078,.518,.528,.5379,.5477,.5573,.5668,.5761,.5853,.5944,.6033,.612,.6206,.6291,.6374,.6456,.6537,.6616,.6693,.677,.6845,.6918,.699,.7061,.713,.7199,.7265,.7331,.7395,.7458,.752,.758,.764,.7698,.7755,.781,.7865,.7918,.7971,.8022,.8072,.8121,.8169,.8216,.8262,.8307,.8351,.8394,.8436,.8477,.8517,.8557,.8595,.8633,.8669,.8705,.874,.8775,.8808,.8841,.8873,.8904,.8934,.8964,.8993,.9022,.9049,.9076,.9103,.9129,.9154,.9178,.9202,.9226,.9249,.9271,.9293,.9314,.9335,.9355,.9375,.9394,.9413,.9431,.9449,.9466,.9483,.95,.9516,.9532,.9547,.9562,.9576,.9591,.9605,.9618,.9631,.9644,.9657,.9669,.9681,.9692,.9703,.9714,.9725,.9736,.9746,.9756,.9765,.9775,.9784,.9793,.9802,.981,.9818,.9826,.9834,.9842,.9849,.9856,.9863,.987,.9877,.9883,.989,.9896,.9902,.9908,.9913,.9919,.9924,.993,.9935,.994,.9944,.9949,.9954,.9958,.9963,.9967,.9971,.9975,.9979,.9983,.9986,.999,.9993,.9997,1]),qo={linear:ut,ease:Lo,ease_in:Bo,ease_out:Ro,ease_in_out:To,spring:Uo};function Ho(t){return Math.max(...t.map((t=>(Number(t.duration)||200)+(Number(t.start_delay)||0))))}function Go(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=(qo[t.interpolator||"ease_in_out"]||To)(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,f;const e=1-u+u*(t.scale||0),n=null!==(h=t.pivot_x)&&void 0!==h?h:.5,o=null!==(f=t.pivot_y)&&void 0!==f?f:.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)),f=[u,h.length?h[h.length-1]:d].filter(Boolean).join(" ");return"transform:".concat(f||"none",";opacity:").concat(c)}}}function Ko(t,e,n){return t*(1-n)+e*n}const Xo={linear:ut,ease:Lo,ease_in:Bo,ease_out:Ro,ease_in_out:To,spring:Uo};function Yo(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 Xo?Xo[l.interpolator]:To,css:t=>["top:".concat(Ko(i.top,a.top,t)-o.top,"px"),"left:".concat(Ko(i.left,a.left,t)-o.left,"px"),"width:".concat(Ko(i.width,a.width,t),"px"),"height:".concat(Ko(i.height,a.height,t),"px")].join(";")}}function Zo(t){const e=[];return"set"===t.type?(t.items||[]).forEach((t=>{e.push(...Zo(t))})):e.push(t),e}const{Map:Qo}=Je;function ti(t,e,n){const r=t.slice();return r[26]=e[n],r}function ei(t){let e,n;return e=new ar({props:{cls:"divkit-b8ef",json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[li]},$$scope:{ctx:t}}}),{c(){Re(e.$$.fragment)},l(t){We(e.$$.fragment,t)},m(t,r){Le(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]),536871122&n&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ie(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function ni(t){let e,n,r=t[7],o=ri(t);return{c(){o.c(),e=Ut()},l(t){o.l(t),e=Ut()},m(t,r){o.m(t,r),Jt(t,e,r),n=!0},p(t,n){128&n&&$t(r,r=t[7])?(Se(),Ne(o,1,1,ct),Fe(),o=ri(t),o.c(),Ie(o,1),o.m(e.parentNode,e)):o.p(t,n)},i(t){n||(Ie(o),n=!0)},o(t){Ne(o),n=!1},d(t){t&&Ot(e),o.d(t)}}}function ri(t){let e,n;return e=new Qi({props:{div:t[7].div,templateContext:t[1]}}),{c(){Re(e.$$.fragment)},l(t){We(e.$$.fragment,t)},m(t,r){Le(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||(Ie(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function oi(t){let e,n,r,o,i,a,l,s,c,u;function d(){return t[11](t[26])}return r=new Qi({props:{div:t[26].json,templateContext:t[26].templateContext}}),{c(){e=Bt("div"),n=Bt("div"),Re(r.$$.fragment),i=Lt(),this.h()},l(t){e=Zt(t,"DIV",{class:!0});var o=Kt(e);n=Zt(o,"DIV",{class:!0});var a=Kt(n);We(r.$$.fragment,a),a.forEach(Ot),i=ee(o),o.forEach(Ot),this.h()},h(){Ht(n,"class",o=Oo),Ht(e,"class",a=Jo)},m(t,o){Jt(t,e,o),Mt(e,n),Le(r,n,null),Mt(e,i),s=!0,c||(u=qt(e,"introend",d),c=!0)},p(e,n){t=e;const o={};64&n&&(o.div=t[26].json),64&n&&(o.templateContext=t[26].templateContext),r.$set(o)},i(n){s||(Ie(r.$$.fragment,n),l||we((()=>{l=Me(e,Yo,t[26]),l.start()})),s=!0)},o(t){Ne(r.$$.fragment,t),s=!1},d(t){t&&Ot(e),Ue(r),c=!1,u()}}}function ii(t){let e,n,r,o,i,a,l,s,c,u;function d(){return t[10](t[26])}return r=new Qi({props:{div:t[26].json,templateContext:t[26].templateContext}}),{c(){e=Bt("div"),n=Bt("div"),Re(r.$$.fragment),i=Lt(),this.h()},l(t){e=Zt(t,"DIV",{class:!0,style:!0});var o=Kt(e);n=Zt(o,"DIV",{class:!0});var a=Kt(n);We(r.$$.fragment,a),a.forEach(Ot),i=ee(o),o.forEach(Ot),this.h()},h(){Ht(n,"class",o=Oo),Ht(e,"class",a=Jo),re(e,"left",t[26].offsetLeft+"px"),re(e,"top",t[26].offsetTop+"px"),re(e,"width",t[26].width+"px"),re(e,"height",t[26].height+"px")},m(t,o){Jt(t,e,o),Mt(e,n),Le(r,n,null),Mt(e,i),s=!0,c||(u=qt(e,"introend",d),c=!0)},p(n,o){t=n;const i={};64&o&&(i.div=t[26].json),64&o&&(i.templateContext=t[26].templateContext),r.$set(i),(!s||64&o)&&re(e,"left",t[26].offsetLeft+"px"),(!s||64&o)&&re(e,"top",t[26].offsetTop+"px"),(!s||64&o)&&re(e,"width",t[26].width+"px"),(!s||64&o)&&re(e,"height",t[26].height+"px")},i(n){s||(Ie(r.$$.fragment,n),l||we((()=>{l=Me(e,Go,t[26]),l.start()})),s=!0)},o(t){Ne(r.$$.fragment,t),s=!1},d(t){t&&Ot(e),Ue(r),c=!1,u()}}}function ai(t,e){let n,r,o,i,a;const l=[ii,oi],s=[];function c(t,e){return"direction"in t[26]?0:1}return r=c(e),o=s[r]=l[r](e),{key:t,first:null,c(){n=Ut(),o.c(),i=Ut(),this.h()},l(t){n=Ut(),o.l(t),i=Ut(),this.h()},h(){this.first=n},m(t,e){Jt(t,n,e),s[r].m(t,e),Jt(t,i,e),a=!0},p(t,n){let a=r;r=c(e=t),r===a?s[r].p(e,n):(Se(),Ne(s[a],1,1,(()=>{s[a]=null})),Fe(),o=s[r],o?o.p(e,n):(o=s[r]=l[r](e),o.c()),Ie(o,1),o.m(i.parentNode,i))},i(t){a||(Ie(o),a=!0)},o(t){Ne(o),a=!1},d(t){t&&Ot(n),s[r].d(t),t&&Ot(i)}}}function li(t){var e;let n,r,o,i,a=[],l=new Qo,s=(null===(e=t[7])||void 0===e?void 0:e.div)&&ni(t),c=t[6];const u=t=>t[26];for(let e=0;e<c.length;e+=1){let n=ti(t,c,e),r=u(n);l.set(r,a[e]=ai(r,n))}return{c(){s&&s.c(),n=Lt(),r=Bt("div");for(let t=0;t<a.length;t+=1)a[t].c();this.h()},l(t){s&&s.l(t),n=ee(t),r=Zt(t,"DIV",{class:!0});var e=Kt(r);for(let t=0;t<a.length;t+=1)a[t].l(e);e.forEach(Ot),this.h()},h(){Ht(r,"class",o="divkit-adaa")},m(e,o){s&&s.m(e,o),Jt(e,n,o),Jt(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&&Ie(s,1)):(s=ni(t),s.c(),Ie(s,1),s.m(n.parentNode,n)):s&&(Se(),Ne(s,1,1,(()=>{s=null})),Fe()),320&e&&(c=t[6],Se(),a=function(t,e,n,r,o,i,a,l,s,c,u,d){let h=t.length,f=i.length,p=h;const g={};for(;p--;)g[t[p].key]=p;const m=[],v=new Map,$=new Map;for(p=f;p--;){const t=d(o,i,p),r=n(t);let l=a.get(r);l?l.p(t,e):(l=c(r,t),l.c()),v.set(r,m[p]=l),r in g&&$.set(r,Math.abs(p-g[r]))}const y=new Set,_=new Set;function b(t){Ie(t,1),t.m(l,u),a.set(t.key,t),u=t.first,f--}for(;h&&f;){const e=m[f-1],n=t[h-1],r=e.key,o=n.key;e===n?(u=e.first,h--,f--):v.has(o)?!a.has(r)||y.has(r)?b(e):_.has(o)?h--:$.get(r)>$.get(o)?(_.add(r),b(e)):(y.add(o),h--):(s(n,a),h--)}for(;h--;){const e=t[h];v.has(e.key)||s(e,a)}for(;f;)b(m[f-1]);return m}(a,e,u,0,t,c,l,r,Oe,ai,null,ti),Fe())},i(t){if(!i){Ie(s);for(let t=0;t<c.length;t+=1)Ie(a[t]);i=!0}},o(t){Ne(s);for(let t=0;t<a.length;t+=1)Ne(a[t]);i=!1},d(e){s&&s.d(e),e&&Ot(n),e&&Ot(r);for(let t=0;t<a.length;t+=1)a[t].d();t[12](null)}}}function si(t){let e,n,r=!t[5]&&ei(t);return{c(){r&&r.c(),e=Ut()},l(t){r&&r.l(t),e=Ut()},m(t,o){r&&r.m(t,o),Jt(t,e,o),n=!0},p(t,n){let[o]=n;t[5]?r&&(Se(),Ne(r,1,1,(()=>{r=null})),Fe()):r?(r.p(t,o),32&o&&Ie(r,1)):(r=ei(t),r.c(),Ie(r,1),r.m(e.parentNode,e))},i(t){n||(Ie(r),n=!0)},o(t){Ne(r),n=!1},d(t){r&&r.d(t),t&&Ot(e)}}}function ci(t){return"change_bounds"===t.type?t:"set"===t.type?ci(t.items[0]):null}function ui(t,e,n){let r,{json:o={}}=e,{templateContext:i}=e,{origJson:a}=e,{layoutParams:l}=e;const s=fe(un);let c,u=new Map,d=new Set,h=!1,f=null,p=[],g=[],m=[],v=[];function $(t,e,n){let{json:r,templateContext:o,transitions:i,node:a}=e;r=s.getJsonWithVars(r),i=s.getJsonWithVars(i);const l=Zo(i),c=a.getBoundingClientRect();return{json:Object.assign(Object.assign({},r),{transition_in:void 0,transition_out:void 0,transition_change:void 0,margins:void 0,alpha:void 0}),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}}const y=o.div_id||o.id;y?(fe(Dn).registerInstance(y,{async setState(t){if(_===t)return;s.setRunning("stateChange",!0);const e=new Set(d);p.forEach((t=>{t.resolvePromise&&t.resolvePromise()})),n(6,p=[]);let o=[];if(c){const t=c.getBoundingClientRect();o=m.map((e=>$(t,e,"out")))}v.forEach((t=>{u.set(t.id,t.node.getBoundingClientRect())})),g=[],m=[],v=[];const i=r.find((e=>e.state_id===t))||null;if(i?(_=t,n(7,b=i)):s.logError(dn(new Error("Cannot find state with id"),{additional:{stateId:t}})),await xe(),!c)return;const a=c.getBoundingClientRect();let l=g.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||d.has(t.json.id))||(null===(e=t.resolvePromise)||void 0===e||e.call(t),!1)}));const h=o.concat(l),f=h.reduce(((t,e)=>Math.max(t,Ho(e.transitions))),0),y=v.filter((t=>u.has(t.id))).map((t=>({json:Object.assign(Object.assign({},t.json),{transition_in:void 0,transition_out:void 0,transition_change:void 0,margins:void 0,alpha:void 0,width:{type:"match_parent"},height:{type:"match_parent"}}),templateContext:t.templateContext,rootBbox:a,beforeBbox:u.get(t.id),afterBbox:t.node.getBoundingClientRect(),node:t.node,transition:ci(t.transitions),resolvePromise:t.resolvePromise})));n(6,p=[...h.map((t=>Object.assign(Object.assign({},t),{maxDuration:f}))),...y]),u.clear(),s.setRunning("stateChange",!1)},getChild(t){if(f&&f.has(t))return f.get(t);s.logError(dn(new Error("Missing state block with id"),{additional:{id:t}}))}}),he(Dn,{registerInstance(t,e){f||(f=new Map),f.has(t)?s.logError(dn(new Error("Duplicate state with id"),{additional:{id:t}})):f.set(t,e)},runVisibilityTransition(t,e,r,o,i){if(!c)return Promise.resolve();const a=$(c.getBoundingClientRect(),{json:t,templateContext:e,transitions:r,node:o},i),l=Ho(a.transitions),s=Object.assign(Object.assign({},a),{maxDuration:l});return n(6,p=[...p.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 g.push(o),new Promise((t=>{o.resolvePromise=t}))},registerChildWithTransitionOut(t,e,n,r){const o={json:t,templateContext:e,transitions:n,node:r};return m.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 v.push(i),new Promise((t=>{i.resolvePromise=t}))},hasTransitionChange:t=>!!t&&u.has(t),registerChild(t){d.add(t)},unregisterChild(t){d.delete(t)}})):(h=!0,s.logError(dn(new Error('Missing "id" prop for div "state"'))));let _,b=null;const x=s.getJsonWithVars(o.default_state_id);let w=!1;function k(t){n(6,p=p.filter((e=>e!==t))),t.resolvePromise&&t.resolvePromise()}return 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&&(d=new Set),1&t.$$.dirty&&n(9,r=o.states||[]),512&t.$$.dirty&&((null==r?void 0:r.length)?n(5,h=!1):(n(5,h=!0),s.logError(dn(new Error('Empty "states" prop for div "state"'))))),512&t.$$.dirty&&function(t){w||(w=!0,t.length&&(x?(_=x,n(7,b=t.find((t=>t.state_id===_))||null),b||s.logError(dn(new Error("Cannot find state for default_state_id"),{additional:{selectedId:_}}))):(n(7,b=t[0]),_=b.state_id)))}(r)},[o,i,a,l,c,h,p,b,k,r,t=>k(t),t=>k(t),function(t){me[t?"unshift":"push"]((()=>{c=t,n(4,c)}))}]}const di={pager:"divkit-c5fe",pager__items:"divkit-f698",pager__item:"divkit-feca",pager_orientation_horizontal:"divkit-b0a1",pager_orientation_vertical:"divkit-f772"},{Boolean:hi}=Je;function fi(t,e,n){const r=t.slice();return r[43]=e[n],r}function pi(t){let e,n;return e=new ar({props:{cls:jn("pager",di,t[8]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customPaddings:!0,$$slots:{default:[mi]},$$scope:{ctx:t}}}),{c(){Re(e.$$.fragment)},l(t){We(e.$$.fragment,t)},m(t,r){Le(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.cls=jn("pager",di,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]),560&n[0]|32768&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ie(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function gi(t){let e,n,r,o,i;return n=new Qi({props:{div:t[43].json,templateContext:t[43].templateContext,origJson:t[43].origJson}}),{c(){e=Bt("div"),Re(n.$$.fragment),r=Lt(),this.h()},l(t){e=Zt(t,"DIV",{class:!0});var o=Kt(e);We(n.$$.fragment,o),r=ee(o),o.forEach(Ot),this.h()},h(){Ht(e,"class",o=di.pager__item)},m(t,o){Jt(t,e,o),Le(n,e,null),Mt(e,r),i=!0},p(t,e){const r={};16&e[0]&&(r.div=t[43].json),16&e[0]&&(r.templateContext=t[43].templateContext),16&e[0]&&(r.origJson=t[43].origJson),n.$set(r)},i(t){i||(Ie(n.$$.fragment,t),i=!0)},o(t){Ne(n.$$.fragment,t),i=!1},d(t){t&&Ot(e),Ue(n)}}}function mi(t){let e,n,r,o,i,a,l=t[4],s=[];for(let e=0;e<l.length;e+=1)s[e]=gi(fi(t,l,e));const c=t=>Ne(s[t],1,1,(()=>{s[t]=null}));return{c(){e=Bt("div");for(let t=0;t<s.length;t+=1)s[t].c();this.h()},l(t){e=Zt(t,"DIV",{class:!0,style:!0});var n=Kt(e);for(let t=0;t<s.length;t+=1)s[t].l(n);n.forEach(Ot),this.h()},h(){Ht(e,"class",n=di.pager__items),Ht(e,"style",r=pn(t[9]))},m(n,r){Jt(n,e,r);for(let t=0;t<s.length;t+=1)s[t].m(e,null);t[34](e),o=!0,i||(a=qt(e,"scroll",t[14]),i=!0)},p(t,n){if(16&n[0]){let r;for(l=t[4],r=0;r<l.length;r+=1){const o=fi(t,l,r);s[r]?(s[r].p(o,n),Ie(s[r],1)):(s[r]=gi(o),s[r].c(),Ie(s[r],1),s[r].m(e,null))}for(Se(),r=l.length;r<s.length;r+=1)c(r);Fe()}(!o||512&n[0]&&r!==(r=pn(t[9])))&&Ht(e,"style",r)},i(t){if(!o){for(let t=0;t<l.length;t+=1)Ie(s[t]);o=!0}},o(t){s=s.filter(hi);for(let t=0;t<s.length;t+=1)Ne(s[t]);o=!1},d(n){n&&Ot(e),Tt(s,n),t[34](null),i=!1,a()}}}function vi(t){let e,n,r=!t[7]&&pi(t);return{c(){r&&r.c(),e=Ut()},l(t){r&&r.l(t),e=Ut()},m(t,o){r&&r.m(t,o),Jt(t,e,o),n=!0},p(t,n){t[7]?r&&(Se(),Ne(r,1,1,(()=>{r=null})),Fe()):r?(r.p(t,n),128&n[0]&&Ie(r,1)):(r=pi(t),r.c(),Ie(r,1),r.m(e.parentNode,e))},i(t){n||(Ie(r),n=!0)},o(t){Ne(r),n=!1},d(t){r&&r.d(t),t&&Ot(e)}}}function $i(t,e,n){let r,o,i,a,l,s,c,u,d,h,f,p,g,m,v,$=ct,y=ct,_=ct,b=ct,x=ct;var w,k,C,E,A,j,V;t.$$.on_destroy.push((()=>$())),t.$$.on_destroy.push((()=>y())),t.$$.on_destroy.push((()=>_())),t.$$.on_destroy.push((()=>b())),t.$$.on_destroy.push((()=>x()));let{json:D={}}=e,{templateContext:P}=e,{origJson:S}=e,{layoutParams:F}=e;const I=fe(un),N=I.genId("pager");let z,M=!1,J=0,O=!1,T="horizontal",B="",R="",W="";const L=function(t,e){let n;return function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];null!==n&&clearTimeout(n),n=setTimeout((()=>{t.apply(this,r),n=null}),50)}}((function(){const t=function(){const t=Array.from(z.children),e=z.getBoundingClientRect(),n=t.findIndex((t=>{return n=e,r=t.getBoundingClientRect(),"horizontal"===T?r.left>=n.left&&r.right<=n.right:r.top>=n.top&&r.bottom<=n.bottom;var n,r}));return-1!==n?n:J}();t!==J&&n(23,J=t)}));function U(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"smooth";const r="horizontal"===T,o=z.children[t],i=r?"offsetLeft":"offsetTop",a=r?"left":"top";z.scroll({[a]:o[i],behavior:e}),n(23,J=t)}return D.id&&I.registerInstance(D.id,{setCurrentItem(t){if(t<0||t>r.length-1)throw new Error('Item is out of range in "set-current-item" action');U(t)},setPreviousItem(t){let e=J-1;e<0&&(e="ring"===t?r.length-1:J),U(e)},setNextItem(t){let e=J+1;e>r.length-1&&(e="ring"===t?0:J),U(e)}}),ue((()=>{if(Boolean(document.getElementById("".concat(N,"-tab-0")))){const t=[...z.children];for(const[e,n]of t.entries())n.setAttribute("role","tabpanel"),n.setAttribute("id","".concat(N,"-panel-").concat(e)),n.setAttribute("aria-labelledby","".concat(N,"-tab-").concat(e))}})),t.$$set=t=>{"json"in t&&n(0,D=t.json),"templateContext"in t&&n(1,P=t.templateContext),"origJson"in t&&n(2,S=t.origJson),"layoutParams"in t&&n(3,F=t.layoutParams)},t.$$.update=()=>{if(32769&t.$$.dirty[0]&&((null===n(15,w=D.items)||void 0===w?void 0:w.length)&&Array.isArray(D.items)?n(22,M=!1):(n(22,M=!0),I.logError(dn(new Error('Incorrect or empty "items" prop for div "pager"'))))),4194307&t.$$.dirty[0]&&n(4,r=(!M&&D.items||[]).map((t=>{let e=t,n=P;return({templateContext:n,json:e}=I.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),1&t.$$.dirty[0]&&(n(13,o=I.getDerivedFromVars(D.layout_mode)),y(),y=_t(o,(t=>n(30,p=t)))),1073741824&t.$$.dirty[0]&&(p?"percentage"!==p.type&&"fixed"!==p.type?(n(24,O=!0),I.logError(dn(new Error('Incorrect value of "layout_mode.type" for div "pager"')))):n(24,O=!1):(n(24,O=!0),I.logError(dn(new Error('Empty "layout_mode" prop for div "pager"'))))),1&t.$$.dirty[0]&&(n(12,i=I.getDerivedFromVars(D.orientation)),x(),x=_t(i,(t=>n(33,v=t)))),33554432&t.$$.dirty[0]|4&t.$$.dirty[1]&&n(25,T=Or(v,T)),1&t.$$.dirty[0]&&(n(11,a=I.getDerivedFromVars(D.item_spacing)),b(),b=_t(a,(t=>n(32,m=t)))),2&t.$$.dirty[1]){const t=null==m?void 0:m.value;t&&Sn(t)&&n(26,B=gn(t||0))}if(1&t.$$.dirty[0]&&(n(10,l=I.getDerivedFromVars(D.paddings)),_(),_=_t(l,(t=>n(31,g=t)))),134217728&t.$$.dirty[0]|1&t.$$.dirty[1]&&n(27,R=In(g,R)),33554432&t.$$.dirty[0]&&n(29,s="horizontal"===T?"grid-auto-columns":"grid-auto-rows"),1178533889&t.$$.dirty[0])if("fixed"===(null==p?void 0:p.type)){const t=mn("horizontal"===T?((null===n(16,k=D.paddings)||void 0===k?void 0:k.left)||0)+((null===n(17,C=D.paddings)||void 0===C?void 0:C.right)||0):((null===n(18,E=D.paddings)||void 0===E?void 0:E.top)||0)+((null===n(19,A=D.paddings)||void 0===A?void 0:A.bottom)||0)),e=null===n(20,j=p.neighbour_page_width)||void 0===j?void 0:j.value;n(28,W=e?"calc(100% + ".concat(t," - 2 * ").concat(mn(e)," - 2 * ").concat(B,")"):"100%")}else if("percentage"===(null==p?void 0:p.type)){const t=null===n(21,V=p.page_width)||void 0===V?void 0:V.value;n(28,W="".concat(Number(t),"%"))}1006632960&t.$$.dirty[0]&&n(9,c={"grid-gap":B,padding:R,[s]:W}),33554432&t.$$.dirty[0]&&n(8,u={orientation:T}),20971520&t.$$.dirty[0]&&n(7,d=M||O),8388624&t.$$.dirty[0]&&function(t,e){const n=D.id;if(n){const i=new Map(f);r=h,f=i.set(n,{instId:N,size:t,currentItem:e,scrollToPagerItem:U}),o=f,r.set(o)}var r,o}(r.length,J)},n(6,h=I.getStore("pagers")),$(),$=_t(h,(t=>n(35,f=t))),[D,P,S,F,r,z,h,d,u,c,l,a,i,o,L,w,k,C,E,A,j,V,M,J,O,T,B,R,W,s,p,g,m,v,function(t){me[t?"unshift":"push"]((()=>{z=t,n(5,z)}))}]}const yi={indicator:"divkit-d8e3",indicator__scroller:"divkit-b5db",indicator__items:"divkit-d5d9",indicator__item:"divkit-f662",indicator__item_active:"divkit-b39c"};function _i(t,e,n){const r=t.slice();r[34]=e[n],r[37]=n;const o=r[37]===r[13].currentItem;return r[35]=o,r}function bi(t){let e,n=Array(t[13].size),r=[];for(let e=0;e<n.length;e+=1)r[e]=xi(_i(t,n,e));return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=Ut()},l(t){for(let e=0;e<r.length;e+=1)r[e].l(t);e=Ut()},m(t,n){for(let e=0;e<r.length;e+=1)r[e].m(t,n);Jt(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=_i(t,n,i);r[i]?r[i].p(a,o):(r[i]=xi(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){Tt(r,t),t&&Ot(e)}}}function xi(t){let e,n,r,o,i,a,l,s;function c(){return t[28](t[37])}return{c(){e=Bt("div"),this.h()},l(t){e=Zt(t,"DIV",{class:!0,role:!0,id:!0,"aria-controls":!0,"aria-selected":!0,tabindex:!0}),Kt(e).forEach(Ot),this.h()},h(){Ht(e,"class",n=jn("indicator__item",yi,{active:t[35]})+" "+an),Ht(e,"role","tab"),Ht(e,"id",r=t[13].instId+"-tab-"+t[37]),Ht(e,"aria-controls",o=t[13].instId+"-panel-"+t[37]),Ht(e,"aria-selected",i=t[35]?"true":"false"),Ht(e,"tabindex",a=t[35]?0:-1)},m(n,r){Jt(n,e,r),l||(s=[qt(e,"click",c),qt(e,"keydown",t[21])],l=!0)},p(l,s){t=l,8192&s[0]&&n!==(n=jn("indicator__item",yi,{active:t[35]})+" "+an)&&Ht(e,"class",n),8192&s[0]&&r!==(r=t[13].instId+"-tab-"+t[37])&&Ht(e,"id",r),8192&s[0]&&o!==(o=t[13].instId+"-panel-"+t[37])&&Ht(e,"aria-controls",o),8192&s[0]&&i!==(i=t[35]?"true":"false")&&Ht(e,"aria-selected",i),8192&s[0]&&a!==(a=t[35]?0:-1)&&Ht(e,"tabindex",a)},d(t){t&&Ot(e),l=!1,pt(s)}}}function wi(t){let e,n,r,o,i="0 ".concat(gn((t[10]-1)*t[4]/2)),a="0 ".concat(gn((t[9]-t[4])/2)),l=t[13]&&bi(t);return{c(){e=Bt("div"),n=Bt("div"),l&&l.c(),this.h()},l(t){e=Zt(t,"DIV",{class:!0});var r=Kt(e);n=Zt(r,"DIV",{class:!0,role:!0});var o=Kt(n);l&&l.l(o),o.forEach(Ot),r.forEach(Ot),this.h()},h(){Ht(n,"class",r=yi.indicator__items),Ht(n,"role","tablist"),re(n,"margin",i,!1),re(n,"--divkit-indicator-width",gn(t[4]),!1),re(n,"--divkit-indicator-height",gn(t[5]),!1),re(n,"--divkit-indicator-border-radius",gn(t[6]),!1),re(n,"--divkit-indicator-active-color",t[7],!1),re(n,"--divkit-indicator-inactive-color",t[8],!1),re(n,"--divkit-indicator-active-scale",t[10],!1),re(n,"--divkit-indicator-margin",a,!1),Ht(e,"class",o=yi.indicator__scroller)},m(r,o){Jt(r,e,o),Mt(e,n),l&&l.m(n,null),t[29](n),t[30](e)},p(t,e){t[13]?l?l.p(t,e):(l=bi(t),l.c(),l.m(n,null)):l&&(l.d(1),l=null),1040&e[0]&&i!==(i="0 ".concat(gn((t[10]-1)*t[4]/2)))&&re(n,"margin",i,!1),16&e[0]&&re(n,"--divkit-indicator-width",gn(t[4]),!1),32&e[0]&&re(n,"--divkit-indicator-height",gn(t[5]),!1),64&e[0]&&re(n,"--divkit-indicator-border-radius",gn(t[6]),!1),128&e[0]&&re(n,"--divkit-indicator-active-color",t[7],!1),256&e[0]&&re(n,"--divkit-indicator-inactive-color",t[8],!1),1024&e[0]&&re(n,"--divkit-indicator-active-scale",t[10],!1),528&e[0]&&a!==(a="0 ".concat(gn((t[9]-t[4])/2)))&&re(n,"--divkit-indicator-margin",a,!1)},d(n){n&&Ot(e),l&&l.d(),t[29](null),t[30](null)}}}function ki(t){let e,n;return e=new ar({props:{cls:jn("indicator",yi,{}),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[wi]},$$scope:{ctx:t}}}),{c(){Re(e.$$.fragment)},l(t){We(e.$$.fragment,t)},m(t,r){Le(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]|128&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ie(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function Ci(t,e,n){let r,o,i,a,l,s,c,u,d,h,f,p,g=ct,m=ct,v=ct,$=ct,y=ct,_=ct;t.$$.on_destroy.push((()=>g())),t.$$.on_destroy.push((()=>m())),t.$$.on_destroy.push((()=>v())),t.$$.on_destroy.push((()=>$())),t.$$.on_destroy.push((()=>y())),t.$$.on_destroy.push((()=>_()));let{json:b={}}=e,{templateContext:x}=e,{origJson:w}=e,{layoutParams:k}=e;const C=fe(un);let A,j,V,D=10,P=10,S=5,F="#ffdc60",I=E("#33919cb5"),N=15,z=1.3;function M(t){t!==V.currentItem&&V.scrollToPagerItem(t)}async function J(t){V.scrollToPagerItem(t),await xe();const e=j.querySelector(".".concat(yi.indicator__item_active));e&&e.focus()}return t.$$set=t=>{"json"in t&&n(0,b=t.json),"templateContext"in t&&n(1,x=t.templateContext),"origJson"in t&&n(2,w=t.origJson),"layoutParams"in t&&n(3,k=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty[0]&&(n(19,r=C.getDerivedFromVars(b.shape)),_(),_=_t(r,(t=>n(27,p=t)))),134217840&t.$$.dirty[0]&&p&&(p.item_width&&n(4,D=Nn(p.item_width.value,D)),p.item_height&&n(5,P=Nn(p.item_height.value,P)),p.corner_radius&&n(6,S=Nn(p.corner_radius.value,S))),1&t.$$.dirty[0]&&(n(18,o=C.getDerivedFromVars(b.active_item_color)),y(),y=_t(o,(t=>n(26,f=t)))),67108992&t.$$.dirty[0]&&n(7,F=E(f,1,F)),1&t.$$.dirty[0]&&(n(17,i=C.getDerivedFromVars(b.inactive_item_color)),$(),$=_t(i,(t=>n(25,h=t)))),33554688&t.$$.dirty[0]&&n(8,I=E(h,1,I)),1&t.$$.dirty[0]&&(n(16,a=C.getDerivedFromVars(b.space_between_centers)),v(),v=_t(a,(t=>n(24,d=t)))),16777728&t.$$.dirty[0]&&d&&n(9,N=Nn(d.value,N)),1&t.$$.dirty[0]&&(n(15,l=C.getDerivedFromVars(b.active_item_size)),m(),m=_t(l,(t=>n(23,u=t)))),8389632&t.$$.dirty[0]&&n(10,z=sr(u,z)),4194304&t.$$.dirty[0]&&async function(t){if(b.pager_id&&t.has(b.pager_id)){n(13,V=t.get(b.pager_id)),await xe();const e=j.children[V.currentItem].offsetLeft;A.scroll({left:e-A.clientWidth/2,behavior:"smooth"})}}(c)},n(14,s=C.getStore("pagers")),g(),g=_t(s,(t=>n(22,c=t))),[b,x,w,k,D,P,S,F,I,N,z,A,j,V,s,l,a,i,o,r,M,function(t){if(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)return;const{size:e,currentItem:n}=V;if(37===t.which)J(n-1<0?n:n-1);else if(39===t.which)J(n+1>=e?n:n+1);else if(36===t.which)J(0);else{if(35!==t.which)return;J(e-1)}t.preventDefault()},c,u,d,h,f,p,t=>M(t),function(t){me[t?"unshift":"push"]((()=>{j=t,n(12,j)}))},function(t){me[t?"unshift":"push"]((()=>{A=t,n(11,A)}))}]}const Ei={slider:"divkit-ef4f",slider__input:"divkit-d1d6",slider__input_secondary:"divkit-c798",slider__thumb:"divkit-f345",slider__thumb_secondary:"divkit-e198","slider__tracks-wrapper":"divkit-f733","slider__tracks-inner":"divkit-ac90",slider__track:"divkit-e956","slider__active-track":"divkit-ec5b","slider__thumb-text-wrapper":"divkit-ee57","slider__thumb-text":"divkit-c4af","slider__thumb-text_secondary":"divkit-d882",slider__tick:"divkit-bd9b",slider__tick_active:"divkit-d8ce",slider__tick_inactive:"divkit-e71e"};function Ai(t,e){var n,r,o;if(!t||!t.shape||!t.color)return e;const i=E(t.color),a=Number((null===(n=t.shape.item_width)||void 0===n?void 0:n.value)||10),l=Number((null===(r=t.shape.item_height)||void 0===r?void 0:r.value)||10),s=Number((null===(o=t.shape.corner_radius)||void 0===o?void 0:o.value)||5);if("shape_drawable"===t.type&&"transparent"!==i&&"rounded_rectangle"===t.shape.type){var c,u;const e={},n=null!==(c=t.stroke)&&void 0!==c&&c.color?E(t.stroke.color):"",r=null!==(u=t.stroke)&&void 0!==u&&u.width?Number(t.stroke.width||1):"";return e.width=a,e.height=l,e.borderRadius=s,e.background=i,n&&r&&(e.boxShadow="inset 0 0 0 ".concat(gn(r)," ").concat(n)),e}return e}function ji(t,e){if(!t||!t.font_size)return e;const n=t.offset,r=t.text_color&&E(t.text_color)||"#000",o=ur(t.font_weight);if(cr(t.font_size)&&"transparent"!==r){var i,a;const e={fontSize:gn(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 Vi(t,e,n){return Math.max(e,Math.min(n,t))}function Di(t,e,n){const r=t.slice();return r[81]=e[n],r}function Pi(t,e,n){const r=t.slice();return r[81]=e[n],r}function Si(t){let e,n;return e=new ar({props:{cls:jn("slider",Ei,t[21]),style:t[22],customDescription:!0,customActions:"slider",json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Mi]},$$scope:{ctx:t}}}),{c(){Re(e.$$.fragment)},l(t){We(e.$$.fragment,t)},m(t,r){Le(e,t,r),n=!0},p(t,n){const r={};2097152&n[0]&&(r.cls=jn("slider",Ei,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]|16777216&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ie(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function Fi(t){let e,n,r,o=t[12]&&Ii(t),i=t[37]&&function(t){let e,n,r,o,i;return{c(){e=Bt("div"),n=Bt("div"),r=Wt(t[7]),this.h()},l(o){e=Zt(o,"DIV",{class:!0});var i=Kt(e);n=Zt(i,"DIV",{class:!0});var a=Kt(n);r=te(a,t[7]),a.forEach(Ot),i.forEach(Ot),this.h()},h(){var r,a,l;Ht(n,"class",o=Ei["slider__thumb-text-inner"]),re(n,"font-size",(null===(r=t[13])||void 0===r?void 0:r.fontSize)||"1em",!1),re(n,"font-weight",(null===(a=t[13])||void 0===a?void 0:a.fontWeight)||"",!1),re(n,"color",(null===(l=t[13])||void 0===l?void 0:l.textColor)||"#000",!1),Ht(e,"class",i=Ei["slider__thumb-text"]+" "+Ei["slider__thumb-text_secondary"])},m(t,o){Jt(t,e,o),Mt(e,n),Mt(n,r)},p(t,e){var o,i,a;128&e[0]&&ne(r,t[7]),8192&e[0]&&re(n,"font-size",(null===(o=t[13])||void 0===o?void 0:o.fontSize)||"1em",!1),8192&e[0]&&re(n,"font-weight",(null===(i=t[13])||void 0===i?void 0:i.fontWeight)||"",!1),8192&e[0]&&re(n,"color",(null===(a=t[13])||void 0===a?void 0:a.textColor)||"#000",!1)},d(t){t&&Ot(e)}}}(t);return{c(){e=Bt("div"),o&&o.c(),n=Lt(),i&&i.c(),this.h()},l(t){e=Zt(t,"DIV",{class:!0,"aria-hidden":!0});var r=Kt(e);o&&o.l(r),n=ee(r),i&&i.l(r),r.forEach(Ot),this.h()},h(){Ht(e,"class",r=Ei["slider__thumb-text-wrapper"]),Ht(e,"aria-hidden","true")},m(t,r){Jt(t,e,r),o&&o.m(e,null),Mt(e,n),i&&i.m(e,null)},p(t,r){t[12]?o?o.p(t,r):(o=Ii(t),o.c(),o.m(e,n)):o&&(o.d(1),o=null),t[37]&&i.p(t,r)},d(t){t&&Ot(e),o&&o.d(),i&&i.d()}}}function Ii(t){let e,n,r,o,i;return{c(){e=Bt("div"),n=Bt("div"),r=Wt(t[6]),this.h()},l(o){e=Zt(o,"DIV",{class:!0});var i=Kt(e);n=Zt(i,"DIV",{class:!0});var a=Kt(n);r=te(a,t[6]),a.forEach(Ot),i.forEach(Ot),this.h()},h(){var r,a,l;Ht(n,"class",o=Ei["slider__thumb-text-inner"]),re(n,"font-size",(null===(r=t[12])||void 0===r?void 0:r.fontSize)||"1em",!1),re(n,"font-weight",(null===(a=t[12])||void 0===a?void 0:a.fontWeight)||"",!1),re(n,"color",(null===(l=t[12])||void 0===l?void 0:l.textColor)||"#000",!1),Ht(e,"class",i=Ei["slider__thumb-text"])},m(t,o){Jt(t,e,o),Mt(e,n),Mt(n,r)},p(t,e){var o,i,a;64&e[0]&&ne(r,t[6]),4096&e[0]&&re(n,"font-size",(null===(o=t[12])||void 0===o?void 0:o.fontSize)||"1em",!1),4096&e[0]&&re(n,"font-weight",(null===(i=t[12])||void 0===i?void 0:i.fontWeight)||"",!1),4096&e[0]&&re(n,"color",(null===(a=t[12])||void 0===a?void 0:a.textColor)||"#000",!1)},d(t){t&&Ot(e)}}}function Ni(t){let e,n;return{c(){e=Bt("div"),this.h()},l(t){e=Zt(t,"DIV",{class:!0}),Kt(e).forEach(Ot),this.h()},h(){Ht(e,"class",n=Ei.slider__tick+" "+Ei.slider__tick_active),re(e,"--divkit-slider-tick",t[81],!1)},m(t,n){Jt(t,e,n)},p(t,n){131072&n[0]&&re(e,"--divkit-slider-tick",t[81],!1)},d(t){t&&Ot(e)}}}function zi(t){let e,n;return{c(){e=Bt("div"),this.h()},l(t){e=Zt(t,"DIV",{class:!0}),Kt(e).forEach(Ot),this.h()},h(){Ht(e,"class",n=Ei.slider__tick+" "+Ei.slider__tick_inactive),re(e,"--divkit-slider-tick",t[81],!1)},m(t,n){Jt(t,e,n)},p(t,n){262144&n[0]&&re(e,"--divkit-slider-tick",t[81],!1)},d(t){t&&Ot(e)}}}function Mi(t){let e,n,r,o,i,a,l,s,c,u,d,h,f,p,g,m,v,$,y,_,b,x,w,k=(t[12]||t[37]&&t[13])&&Fi(t),C=t[17],E=[];for(let e=0;e<C.length;e+=1)E[e]=Ni(Pi(t,C,e));let A=t[18],j=[];for(let e=0;e<A.length;e+=1)j[e]=zi(Di(t,A,e));let V=t[37]&&function(t){let e,n;return{c(){e=Bt("div"),this.h()},l(t){e=Zt(t,"DIV",{class:!0}),Kt(e).forEach(Ot),this.h()},h(){Ht(e,"class",n=Ei.slider__thumb+" "+Ei.slider__thumb_secondary),re(e,"border-radius",gn(t[9].borderRadius),!1),re(e,"background",t[9].background,!1),re(e,"box-shadow",t[9].boxShadow||"",!1)},m(t,n){Jt(t,e,n)},p(t,n){512&n[0]&&re(e,"border-radius",gn(t[9].borderRadius),!1),512&n[0]&&re(e,"background",t[9].background,!1),512&n[0]&&re(e,"box-shadow",t[9].boxShadow||"",!1)},d(t){t&&Ot(e)}}}(t),D=t[37]&&function(t){let e,n,r,o,i;return{c(){e=Bt("input"),this.h()},l(t){e=Zt(t,"INPUT",{type:!0,class:!0,min:!0,max:!0,step:!0,"aria-label":!0}),this.h()},h(){Ht(e,"type","range"),Ht(e,"class",n=t[16]?Ei.slider__input:"".concat(Ei.slider__input," ").concat(Ei.slider__input_secondary)),Ht(e,"min",t[4]),Ht(e,"max",t[5]),Ht(e,"step","1"),e.value=r=t[16]?t[6]:t[7],Ht(e,"aria-label",t[20])},m(n,r){Jt(n,e,r),o||(i=[qt(e,"input",t[75]),qt(e,"mousedown",t[37]?t[40]:null),qt(e,"touchstart",t[37]?t[40]:null)],o=!0)},p(t,o){65536&o[0]&&n!==(n=t[16]?Ei.slider__input:"".concat(Ei.slider__input," ").concat(Ei.slider__input_secondary))&&Ht(e,"class",n),16&o[0]&&Ht(e,"min",t[4]),32&o[0]&&Ht(e,"max",t[5]),65728&o[0]&&r!==(r=t[16]?t[6]:t[7])&&(e.value=r),1048576&o[0]&&Ht(e,"aria-label",t[20])},d(t){t&&Ot(e),o=!1,pt(i)}}}(t);return{c(){e=Bt("div"),k&&k.c(),n=Lt(),r=Bt("div"),o=Bt("div"),a=Lt(),l=Bt("div"),c=Lt();for(let t=0;t<E.length;t+=1)E[t].c();u=Lt();for(let t=0;t<j.length;t+=1)j[t].c();d=Lt(),h=Bt("div"),p=Lt(),V&&V.c(),g=Lt(),m=Bt("input"),y=Lt(),D&&D.c(),this.h()},l(t){e=Zt(t,"DIV",{class:!0});var i=Kt(e);k&&k.l(i),n=ee(i),r=Zt(i,"DIV",{class:!0});var s=Kt(r);o=Zt(s,"DIV",{class:!0}),Kt(o).forEach(Ot),a=ee(s),l=Zt(s,"DIV",{class:!0}),Kt(l).forEach(Ot),c=ee(s);for(let t=0;t<E.length;t+=1)E[t].l(s);u=ee(s);for(let t=0;t<j.length;t+=1)j[t].l(s);d=ee(s),h=Zt(s,"DIV",{class:!0}),Kt(h).forEach(Ot),p=ee(s),V&&V.l(s),g=ee(s),m=Zt(s,"INPUT",{type:!0,class:!0,min:!0,max:!0,step:!0,"aria-label":!0}),y=ee(s),D&&D.l(s),s.forEach(Ot),i.forEach(Ot),this.h()},h(){Ht(o,"class",i=Ei.slider__track),re(o,"height",gn(t[10].height),!1),re(o,"border-radius",gn(t[10].borderRadius),!1),re(o,"background",t[10].background,!1),re(o,"box-shadow",t[10].boxShadow||"",!1),Ht(l,"class",s=Ei["slider__active-track"]),re(l,"left",(100*t[23]).toFixed(2)+"%",!1),re(l,"width",(100*t[24]).toFixed(2)+"%",!1),re(l,"height",gn(t[11].height),!1),re(l,"border-radius",gn(t[11].borderRadius),!1),re(l,"background",t[11].background,!1),re(l,"box-shadow",t[11].boxShadow||"",!1),Ht(h,"class",f=Ei.slider__thumb),re(h,"border-radius",gn(t[8].borderRadius),!1),re(h,"background",t[8].background,!1),re(h,"box-shadow",t[8].boxShadow||"",!1),Ht(m,"type","range"),Ht(m,"class",v=t[16]?"".concat(Ei.slider__input," ").concat(Ei.slider__input_secondary):Ei.slider__input),Ht(m,"min",t[4]),Ht(m,"max",t[5]),Ht(m,"step","1"),m.value=$=t[16]?t[7]:t[6],Ht(m,"aria-label",t[19]),Ht(r,"class",_=Ei["slider__tracks-inner"]),Ht(e,"class",b=Ei["slider__tracks-wrapper"])},m(i,s){Jt(i,e,s),k&&k.m(e,null),Mt(e,n),Mt(e,r),Mt(r,o),Mt(r,a),Mt(r,l),Mt(r,c);for(let t=0;t<E.length;t+=1)E[t].m(r,null);Mt(r,u);for(let t=0;t<j.length;t+=1)j[t].m(r,null);Mt(r,d),Mt(r,h),Mt(r,p),V&&V.m(r,null),Mt(r,g),Mt(r,m),Mt(r,y),D&&D.m(r,null),t[76](r),x||(w=qt(m,"input",t[74]),x=!0)},p(t,i){if(t[12]||t[37]&&t[13]?k?k.p(t,i):(k=Fi(t),k.c(),k.m(e,n)):k&&(k.d(1),k=null),1024&i[0]&&re(o,"height",gn(t[10].height),!1),1024&i[0]&&re(o,"border-radius",gn(t[10].borderRadius),!1),1024&i[0]&&re(o,"background",t[10].background,!1),1024&i[0]&&re(o,"box-shadow",t[10].boxShadow||"",!1),8388608&i[0]&&re(l,"left",(100*t[23]).toFixed(2)+"%",!1),16777216&i[0]&&re(l,"width",(100*t[24]).toFixed(2)+"%",!1),2048&i[0]&&re(l,"height",gn(t[11].height),!1),2048&i[0]&&re(l,"border-radius",gn(t[11].borderRadius),!1),2048&i[0]&&re(l,"background",t[11].background,!1),2048&i[0]&&re(l,"box-shadow",t[11].boxShadow||"",!1),131072&i[0]){let e;for(C=t[17],e=0;e<C.length;e+=1){const n=Pi(t,C,e);E[e]?E[e].p(n,i):(E[e]=Ni(n),E[e].c(),E[e].m(r,u))}for(;e<E.length;e+=1)E[e].d(1);E.length=C.length}if(262144&i[0]){let e;for(A=t[18],e=0;e<A.length;e+=1){const n=Di(t,A,e);j[e]?j[e].p(n,i):(j[e]=zi(n),j[e].c(),j[e].m(r,d))}for(;e<j.length;e+=1)j[e].d(1);j.length=A.length}256&i[0]&&re(h,"border-radius",gn(t[8].borderRadius),!1),256&i[0]&&re(h,"background",t[8].background,!1),256&i[0]&&re(h,"box-shadow",t[8].boxShadow||"",!1),t[37]&&V.p(t,i),65536&i[0]&&v!==(v=t[16]?"".concat(Ei.slider__input," ").concat(Ei.slider__input_secondary):Ei.slider__input)&&Ht(m,"class",v),16&i[0]&&Ht(m,"min",t[4]),32&i[0]&&Ht(m,"max",t[5]),65728&i[0]&&$!==($=t[16]?t[7]:t[6])&&(m.value=$),524288&i[0]&&Ht(m,"aria-label",t[19]),t[37]&&D.p(t,i)},d(n){n&&Ot(e),k&&k.d(),Tt(E,n),Tt(j,n),V&&V.d(),D&&D.d(),t[76](null),x=!1,w()}}}function Ji(t){let e,n,r=!t[14]&&Si(t);return{c(){r&&r.c(),e=Ut()},l(t){r&&r.l(t),e=Ut()},m(t,o){r&&r.m(t,o),Jt(t,e,o),n=!0},p(t,n){t[14]?r&&(Se(),Ne(r,1,1,(()=>{r=null})),Fe()):r?(r.p(t,n),16384&n[0]&&Ie(r,1)):(r=Si(t),r.c(),Ie(r,1),r.m(e.parentNode,e))},i(t){n||(Ie(r),n=!0)},o(t){Ne(r),n=!1},d(t){r&&r.d(t),t&&Ot(e)}}}function Oi(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 Ti(t,e,n){let r,o,i,a,l,s,c,u,d,h,f,p,g,m,v,$,y,_,b,x,w,k,C,E,A,j,V,D,P,S,F,I,N,z,M,J,O,T,B=ct,R=ct,W=ct,L=ct,U=ct,q=ct,H=ct,G=ct,K=ct,X=ct,Y=ct,Z=ct;var Q,tt,et,nt,rt,ot,it,at;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:lt={}}=e,{templateContext:st}=e,{origJson:ut}=e,{layoutParams:dt}=e;const ht={width:10,height:10,borderRadius:5,background:"#000"},ft=fe(un),pt=fe(Tn);let gt,mt=!1,vt=0,$t=100;const yt=ft.getJsonWithVars(lt.thumb_value_variable),xt=ft.getJsonWithVars(lt.thumb_secondary_value_variable);let wt=yt&&ft.getVariable(yt,"integer")||Qe("temp","integer",0);bt(t,wt,(t=>n(71,J=t)));let kt=xt&&ft.getVariable(xt,"integer")||Qe("temp","integer",0);bt(t,kt,(t=>n(70,M=t)));let Ct,Et,At,jt=Vi(J||0,vt,$t),Vt=Vi(M||0,vt,$t),Dt=ht,Pt=Dt,St=ht,Ft=ht,It=null,Nt=null,zt=At,Mt="",Jt="",Ot=!1;function Tt(t,e){const r=Number(t.target.value);mt===("first"===e)?(n(7,Vt=r),kt.setValue(r)):(n(6,jt=r),wt.setValue(r))}return t.$$set=t=>{"json"in t&&n(0,lt=t.json),"templateContext"in t&&n(1,st=t.templateContext),"origJson"in t&&n(2,ut=t.origJson),"layoutParams"in t&&n(3,dt=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&(n(36,r=ft.getDerivedFromVars(lt.min_value)),Z(),Z=_t(r,(t=>n(73,T=t)))),1&t.$$.dirty[0]&&(n(35,o=ft.getDerivedFromVars(lt.max_value)),Y(),Y=_t(o,(t=>n(72,O=t)))),48&t.$$.dirty[0]|3072&t.$$.dirty[2]&&(n(4,vt=tr(T,vt)),n(5,$t=tr(O,$t))),112&t.$$.dirty[0]|512&t.$$.dirty[2]){const t=Vi(J||0,vt,$t);t!==jt&&n(6,jt=t)}if(176&t.$$.dirty[0]|256&t.$$.dirty[2]){const t=Vi(M||0,vt,$t);t!==Vt&&n(7,Vt=t)}if(1&t.$$.dirty[0]&&(n(34,i=ft.getDerivedFromVars(lt.thumb_style)),X(),X=_t(i,(t=>n(69,z=t)))),256&t.$$.dirty[0]|128&t.$$.dirty[2]&&n(8,Dt=Ai(z,Dt)),1&t.$$.dirty[0]&&(n(33,a=ft.getDerivedFromVars(lt.thumb_secondary_style)),K(),K=_t(a,(t=>n(68,N=t)))),256&t.$$.dirty[0]|64&t.$$.dirty[2]&&n(9,Pt=Ai(N,Dt)),1&t.$$.dirty[0]&&(n(32,l=ft.getDerivedFromVars(lt.track_inactive_style)),G(),G=_t(l,(t=>n(67,I=t)))),1024&t.$$.dirty[0]|32&t.$$.dirty[2]&&n(10,St=Ai(I,St)),1&t.$$.dirty[0]&&(n(31,s=ft.getDerivedFromVars(lt.track_active_style)),H(),H=_t(s,(t=>n(66,F=t)))),2048&t.$$.dirty[0]|16&t.$$.dirty[2]&&n(11,Ft=Ai(F,Ft)),48&t.$$.dirty[0]&&n(59,c=$t-vt+1<=20),1&t.$$.dirty[0]&&(n(30,u=ft.getDerivedFromVars(lt.tick_mark_active_style)),q(),q=_t(u,(t=>n(65,S=t)))),268435456&t.$$.dirty[1]|8&t.$$.dirty[2])if(c){let t=Ai(S,ht);t!==ht&&n(50,It=t)}else n(50,It=null);if(240&t.$$.dirty[0]|524288&t.$$.dirty[1]&&n(17,Ct=It?xt?Oi(Math.min(jt,Vt),Math.max(jt,Vt)+1,vt,$t,!0):Oi(vt,jt,vt,$t,!0):[]),1&t.$$.dirty[0]&&(n(29,d=ft.getDerivedFromVars(lt.tick_mark_inactive_style)),U(),U=_t(d,(t=>n(64,P=t)))),268435456&t.$$.dirty[1]|4&t.$$.dirty[2])if(c){let t=Ai(P,ht);t!==ht&&n(51,Nt=t)}else n(51,Nt=null);if(240&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&n(18,Et=Nt?xt?Oi(Math.min(jt,Vt),Math.max(jt,Vt)+1,vt,$t,!1):Oi(jt+1,$t+1,vt,$t,!0):[]),1&t.$$.dirty[0]&&(n(28,h=ft.getDerivedFromVars(lt.thumb_text_style)),L(),L=_t(h,(t=>n(63,D=t)))),4096&t.$$.dirty[0]|2&t.$$.dirty[2]&&n(12,At=ji(D,At)),1&t.$$.dirty[0]&&(n(27,f=ft.getDerivedFromVars(lt.thumb_secondary_text_style)),W(),W=_t(f,(t=>n(62,V=t)))),4096&t.$$.dirty[0]|1&t.$$.dirty[2]&&n(13,zt=ji(V,At)),1&t.$$.dirty[0]&&(n(26,p=ft.getDerivedFromVars(lt.accessibility)),R(),R=_t(p,(t=>n(61,j=t)))),1073741824&t.$$.dirty[1]&&((null==j?void 0:j.description)?n(19,Mt=j.description):ft.logError(dn(new Error('Missing accessibility "description" for slider'),{level:"warn"}))),1&t.$$.dirty[0]&&(n(25,g=ft.getDerivedFromVars(lt.secondary_value_accessibility)),B(),B=_t(g,(t=>n(60,A=t)))),536870912&t.$$.dirty[1]&&((null==A?void 0:A.description)?n(20,Jt=A.description):xt&&ft.logError(dn(new Error('Missing second accessibility "description" for slider'),{level:"warn"}))),19712&t.$$.dirty[0]){let t=!1;pt.hasAction()?(ft.logError(dn(new Error('Cannot show "slider" inside component with action'))),t=!0):Dt===ht?(ft.logError(dn(new Error('Missing "thumb_style" in slider'))),t=!0):Ft===ht?(ft.logError(dn(new Error('Missing "track_active_style" in slider'))),t=!0):St===ht&&(ft.logError(dn(new Error('Missing "track_inactive_style" in slider'))),t=!0),t!==Ot&&n(14,Ot=t)}3840&t.$$.dirty[0]&&n(58,m=Math.max(...[Dt.height,Pt.height,St.height,Ft.height,0].filter(Sn))),768&t.$$.dirty[0]&&n(57,v=gn(Math.max(...[Dt.width,Pt.width,0].filter(Sn)))),768&t.$$.dirty[0]&&n(56,$=gn(Math.max(...[Dt.height,Pt.height,0].filter(Sn)))),112&t.$$.dirty[0]&&n(55,y=(jt-vt)/($t-vt)),176&t.$$.dirty[0]&&n(54,_=xt?(Vt-vt)/($t-vt):void 0),25165824&t.$$.dirty[1]&&n(24,b=void 0!==_?Math.abs(_-y):y),25165824&t.$$.dirty[1]&&n(23,x=void 0!==_?Math.min(_,y):0),13056&t.$$.dirty[0]|134223872&t.$$.dirty[1]&&n(53,w=-Math.min(...[(m-Dt.height)/2+((null===n(42,Q=null==At?void 0:At.offset)||void 0===Q?void 0:Q.y)||0),xt?(m-Pt.height)/2+((null===n(43,tt=null==zt?void 0:zt.offset)||void 0===tt?void 0:tt.y)||0):0,0].filter((t=>void 0!==t&&"number"==typeof t&&!isNaN(t))))),13056&t.$$.dirty[0]|134242304&t.$$.dirty[1]&&n(52,k=Math.max(...[((null===n(44,et=null==At?void 0:At.offset)||void 0===et?void 0:et.y)||0)-(m-Dt.height)/2,xt?((null===n(45,nt=null==zt?void 0:zt.offset)||void 0===nt?void 0:nt.y)||0)-(m-Pt.height)/2:0,0].filter((t=>void 0!==t&&"number"==typeof t&&!isNaN(t))))),13056&t.$$.dirty[0]|268402688&t.$$.dirty[1]&&n(22,C={"--divkit-slider-thumb-width":gn(Dt.width),"--divkit-slider-thumb-height":gn(Dt.height),"--divkit-slider-thumb-secondary-width":gn(Pt.width),"--divkit-slider-thumb-secondary-height":gn(Pt.height),"--divkit-slider-text-offset-x":(null===n(46,rt=null==At?void 0:At.offset)||void 0===rt?void 0:rt.x)?mn(At.offset.x):void 0,"--divkit-slider-text-offset-y":(null===n(47,ot=null==At?void 0:At.offset)||void 0===ot?void 0:ot.y)?mn(At.offset.y):void 0,"--divkit-slider-text-secondary-offset-x":(null===n(48,it=null==zt?void 0:zt.offset)||void 0===it?void 0:it.x)?mn(zt.offset.x):void 0,"--divkit-slider-text-secondary-offset-y":(null===n(49,at=null==zt?void 0:zt.offset)||void 0===at?void 0:at.y)?mn(zt.offset.y):void 0,"--divkit-slider-tick-active-width":It?gn(It.width):void 0,"--divkit-slider-tick-active-height":It?gn(It.height):void 0,"--divkit-slider-tick-active-border-radius":It?gn(It.borderRadius):void 0,"--divkit-slider-tick-active-background":(null==It?void 0:It.background)||void 0,"--divkit-slider-tick-active-box-shadow":(null==It?void 0:It.boxShadow)||void 0,"--divkit-slider-tick-inactive-width":Nt?gn(Nt.width):void 0,"--divkit-slider-tick-inactive-height":Nt?gn(Nt.height):void 0,"--divkit-slider-tick-inactive-border-radius":Nt?gn(Nt.borderRadius):void 0,"--divkit-slider-tick-inactive-background":(null==Nt?void 0:Nt.background)||void 0,"--divkit-slider-tick-inactive-box-shadow":(null==Nt?void 0:Nt.boxShadow)||void 0,"--divkit-slider-max-height":gn(m),"--divkit-slider-max-thumb-width":v,"--divkit-slider-max-thumb-height":$,"--divkit-slider-track-part":y,"--divkit-slider-track-secondary-part":_,"--divkit-slider-offset-top":mn(w),"--divkit-slider-offset-bottom":mn(k)})},n(21,E={}),[lt,st,ut,dt,vt,$t,jt,Vt,Dt,Pt,St,Ft,At,zt,Ot,gt,mt,Ct,Et,Mt,Jt,E,C,x,b,g,p,f,h,d,u,s,l,a,i,o,r,xt,wt,kt,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=gt.getBoundingClientRect(),a=(o-i.left)/i.width,l=($t-vt)*a,s=Math.round(Vi(l,vt,$t));n(16,mt=s<(jt+Vt)/2==jt<Vt)},Tt,Q,tt,et,nt,rt,ot,it,at,It,Nt,k,w,_,y,$,v,m,c,A,j,V,D,P,S,F,I,N,z,M,J,O,T,t=>Tt(t,"first"),t=>Tt(t,"second"),function(t){me[t?"unshift":"push"]((()=>{gt=t,n(15,gt)}))}]}const Bi={input:"divkit-c3a4",input__wrapper:"divkit-ef7e",input__holder:"divkit-bb3d",input_multiline:"divkit-e48a",input__input:"divkit-f11e","input_highlight-color":"divkit-cc00","input_vertical-overflow":"divkit-b707"};function Ri(t){let e,n;return e=new ar({props:{cls:jn("input",Bi,t[12]),style:t[11],customDescription:!0,customActions:"input",json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[qi]},$$scope:{ctx:t}}}),{c(){Re(e.$$.fragment)},l(t){We(e.$$.fragment,t)},m(t,r){Le(e,t,r),n=!0},p(t,n){const r={};4096&n[0]&&(r.cls=jn("input",Bi,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||(Ie(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function Wi(t){let e;return{c(){e=Wt("")},l(t){e=te(t,"")},m(t,n){Jt(t,e,n)},d(t){t&&Ot(e)}}}function Li(t){let e,n,r,o;return{c(){e=Bt("input"),this.h()},l(t){e=Zt(t,"INPUT",{type:!0,class:!0,autocomplete:!0,autocapitalize:!0,"aria-label":!0,placeholder:!0}),this.h()},h(){Ht(e,"type",t[9]),Ht(e,"class",n=Bi.input__input),Ht(e,"autocomplete","off"),Ht(e,"autocapitalize","off"),Ht(e,"aria-label",t[10]),Ht(e,"placeholder",t[15]),e.value=t[8]},m(n,i){Jt(n,e,i),t[57](e),r||(o=[qt(e,"input",t[29]),qt(e,"mousedown",(function(){gt(t[16]?t[30]:void 0)&&(t[16]?t[30]:void 0).apply(this,arguments)})),qt(e,"click",(function(){gt(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]&&Ht(e,"type",t[9]),1024&r[0]&&Ht(e,"aria-label",t[10]),32768&r[0]&&Ht(e,"placeholder",t[15]),256&r[0]&&e.value!==t[8]&&(e.value=t[8])},d(n){n&&Ot(e),t[57](null),r=!1,pt(o)}}}function Ui(t){let e,n,r,o;return{c(){e=Bt("textarea"),this.h()},l(t){e=Zt(t,"TEXTAREA",{class:!0,autocomplete:!0,autocapitalize:!0,"aria-label":!0,placeholder:!0}),Kt(e).forEach(Ot),this.h()},h(){Ht(e,"class",n=Bi.input__input),Ht(e,"autocomplete","off"),Ht(e,"autocapitalize","off"),Ht(e,"aria-label",t[10]),Ht(e,"placeholder",t[15]),e.value=t[8]},m(n,i){Jt(n,e,i),t[56](e),r||(o=[qt(e,"input",t[29]),qt(e,"mousedown",(function(){gt(t[16]?t[30]:void 0)&&(t[16]?t[30]:void 0).apply(this,arguments)})),qt(e,"click",(function(){gt(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]&&Ht(e,"aria-label",t[10]),32768&r[0]&&Ht(e,"placeholder",t[15]),256&r[0]&&(e.value=t[8])},d(n){n&&Ot(e),t[56](null),r=!1,pt(o)}}}function qi(t){let e,n,r,o,i,a,l=t[8].endsWith("\n")||!t[8],s=l&&Wi();function c(t,e){return t[4]?Ui:Li}let u=c(t),d=u(t);return{c(){e=Bt("span"),n=Bt("span"),r=Wt(t[8]),s&&s.c(),i=Lt(),d.c(),this.h()},l(o){e=Zt(o,"SPAN",{class:!0});var a=Kt(e);n=Zt(a,"SPAN",{class:!0,"aria-hidden":!0});var l=Kt(n);r=te(l,t[8]),s&&s.l(l),l.forEach(Ot),i=ee(a),d.l(a),a.forEach(Ot),this.h()},h(){Ht(n,"class",o=Bi.input__holder),Ht(n,"aria-hidden","true"),Ht(e,"class",a=Bi.input__wrapper)},m(o,a){Jt(o,e,a),Mt(e,n),Mt(n,r),s&&s.m(n,null),t[55](n),Mt(e,i),d.m(e,null)},p(t,o){256&o[0]&&ne(r,t[8]),256&o[0]&&(l=t[8].endsWith("\n")||!t[8]),l?s||(s=Wi(),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&&Ot(e),s&&s.d(),t[55](null),d.d()}}}function Hi(t){let e,n,r=!t[7]&&Ri(t);return{c(){r&&r.c(),e=Ut()},l(t){r&&r.l(t),e=Ut()},m(t,o){r&&r.m(t,o),Jt(t,e,o),n=!0},p(t,n){t[7]?r&&(Se(),Ne(r,1,1,(()=>{r=null})),Fe()):r?(r.p(t,n),128&n[0]&&Ie(r,1)):(r=Ri(t),r.c(),Ie(r,1),r.m(e.parentNode,e))},i(t){n||(Ie(r),n=!0)},o(t){Ne(r),n=!1},d(t){r&&r.d(t),t&&Ot(e)}}}function Gi(t,e,n){let r,o,i,a,l,s,c,u,d,h,f,p,g,m,v,$,y,_,b,x,w=ct,k=ct;t.$$.on_destroy.push((()=>w())),t.$$.on_destroy.push((()=>k()));let{json:C={}}=e,{templateContext:A}=e,{origJson:j}=e,{layoutParams:V}=e;const D=fe(un);let P,S,F=!1,I=!1;const N=D.getJsonWithVars(C.text_variable);let z=!1;N||(z=!0,D.logError(dn(new Error('Missing "text_variable" in "input"'))));let M=N&&D.getVariable(N,"string")||Qe("temp","string","");bt(t,M,(t=>n(54,b=t)));let J="";const O=D.getDerivedFromVars(C.hint_text);bt(t,O,(t=>n(53,_=t)));const T=D.getDerivedFromVars(C.hint_color);bt(t,T,(t=>n(52,y=t)));let B="";const R=D.getDerivedFromVars(C.font_size);bt(t,R,(t=>n(51,$=t)));let W=12;const L=D.getDerivedFromVars(C.font_weight);let U;bt(t,L,(t=>n(50,v=t)));const q=D.getDerivedFromVars(C.line_height);let H;bt(t,q,(t=>n(49,m=t)));const G=D.getDerivedFromVars(C.letter_spacing);bt(t,G,(t=>n(48,g=t)));let K="";const X=D.getDerivedFromVars(C.text_color);bt(t,X,(t=>n(47,p=t)));let Y="#000";const Z=D.getDerivedFromVars(C.highlight_color);bt(t,Z,(t=>n(46,f=t)));let Q="";const tt=D.getDerivedFromVars(C.keyboard_type);bt(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=D.getDerivedFromVars(C.max_visible_lines);bt(t,ot,(t=>n(44,d=t)));let it="",at="";const lt=D.getDerivedFromVars(C.select_all_on_focus);function st(){n(32,I=S.scrollHeight>S.offsetHeight)}return bt(t,lt,(t=>n(16,x=t))),ue((()=>{st()})),t.$$set=t=>{"json"in t&&n(0,C=t.json),"templateContext"in t&&n(1,A=t.templateContext),"origJson"in t&&n(2,j=t.origJson),"layoutParams"in t&&n(3,V=t.layoutParams)},t.$$.update=()=>{if(8388608&t.$$.dirty[1]&&n(8,J=b),4194304&t.$$.dirty[1]&&n(15,r=_),2097156&t.$$.dirty[1]&&n(33,B=E(y,1,B)),1048584&t.$$.dirty[1]&&n(34,W=sr($,W)),524304&t.$$.dirty[1]&&n(35,U=dr(v,U)),262152&t.$$.dirty[1]){const t=m;cr(t)&&n(36,H=t/W)}131080&t.$$.dirty[1]&&Pn(g)&&n(37,K=gn(g/W*10)),65664&t.$$.dirty[1]&&n(38,Y=E(p,1,Y)),33024&t.$$.dirty[1]&&n(39,Q=E(f,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=D.getDerivedFromVars(C.paddings)),k(),k=_t(i,(t=>n(43,u=t)))),12320&t.$$.dirty[1]&&cr(d)&&n(41,it="calc(".concat(d*(H||1.25)+"em"," + ").concat(mn(Nn(null==u?void 0:u.top,0)+Nn(null==u?void 0:u.bottom,0)),")")),1&t.$$.dirty[0]&&(n(13,a=D.getDerivedFromVars(C.accessibility)),w(),w=_t(a,(t=>n(42,c=t)))),2048&t.$$.dirty[1]&&((null==c?void 0:c.description)?n(10,at=c.description):D.logError(dn(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":I,multiline:o}),1532&t.$$.dirty[1]&&n(11,s={"--divkit-input-hint-color":B,"--divkit-input-highlight-color":Q,"font-size":gn(W),"font-weight":U,"line-height":H,"letter-spacing":K,color:Y,"max-height":it})},[C,A,j,V,o,P,S,z,J,rt,at,s,l,a,i,r,x,M,O,T,R,L,q,G,X,Z,tt,ot,lt,function(t){const e=t.target.value||"";M.setValue(e),st()},function(){F=!1,setTimeout((()=>{F=!0}),250)},function(){F||P.select()},I,B,W,U,H,K,Y,Q,nt,it,c,u,d,h,f,p,g,m,v,$,y,_,b,function(t){me[t?"unshift":"push"]((()=>{S=t,n(6,S)}))},function(t){me[t?"unshift":"push"]((()=>{P=t,n(5,P)}))},function(t){me[t?"unshift":"push"]((()=>{P=t,n(5,P)}))}]}const Ki={text:class extends He{constructor(t){super(),qe(this,t,Dr,Vr,$t,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},container:class extends He{constructor(t){super(),qe(this,t,Mr,zr,$t,{json:0,templateContext:1,origJson:2,layoutParams:3})}},separator:class extends He{constructor(t){super(),qe(this,t,Wr,Rr,$t,{json:0,templateContext:1,origJson:2,layoutParams:3})}},image:Zr,gif:Zr,grid:class extends He{constructor(t){super(),qe(this,t,so,lo,$t,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},gallery:class extends He{constructor(t){super(),qe(this,t,wo,xo,$t,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},tabs:class extends He{constructor(t){super(),qe(this,t,Mo,No,$t,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},state:class extends He{constructor(t){super(),qe(this,t,ui,si,$t,{json:0,templateContext:1,origJson:2,layoutParams:3})}},pager:class extends He{constructor(t){super(),qe(this,t,$i,vi,$t,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},indicator:class extends He{constructor(t){super(),qe(this,t,Ci,ki,$t,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},slider:class extends He{constructor(t){super(),qe(this,t,Ti,Ji,$t,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},input:class extends He{constructor(t){super(),qe(this,t,Gi,Hi,$t,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}}};function Xi(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&&Re(e.$$.fragment),n=Ut()},l(t){e&&We(e.$$.fragment,t),n=Ut()},m(t,o){e&&Le(e,t,o),Jt(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){Se();const t=e;Ne(t.$$.fragment,1,0,(()=>{Ue(t,1)})),Fe()}o?(e=new o(i(t)),Re(e.$$.fragment),Ie(e.$$.fragment,1),Le(e,n.parentNode,n)):e=null}else o&&e.$set(a)},i(t){r||(e&&Ie(e.$$.fragment,t),r=!0)},o(t){e&&Ne(e.$$.fragment,t),r=!1},d(t){t&&Ot(n),e&&Ue(e,t)}}}function Yi(t){let e,n,r=t[5]&&Xi(t);return{c(){r&&r.c(),e=Ut()},l(t){r&&r.l(t),e=Ut()},m(t,o){r&&r.m(t,o),Jt(t,e,o),n=!0},p(t,n){let[o]=n;t[5]?r?(r.p(t,o),32&o&&Ie(r,1)):(r=Xi(t),r.c(),Ie(r,1),r.m(e.parentNode,e)):r&&(Se(),Ne(r,1,1,(()=>{r=null})),Fe())},i(t){n||(Ie(r),n=!0)},o(t){Ne(r),n=!1},d(t){r&&r.d(t),t&&Ot(e)}}}function Zi(t,e,n){let{div:r}=e,{templateContext:o}=e,{origJson:i}=e,{layoutParams:a}=e;const l=fe(un);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&&Ki[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&&Ki[s.type]||void 0),!u))){let t;t=(null==s?void 0:s.type)&&l.hasTemplate(s.type)?"Recursive template":"Unknown component",l.logError(dn(new Error(t),{additional:{component:(null==s?void 0:s.type)||"<missing>"}}))}},[r,i,a,s,c,u,o]}const Qi=class extends He{constructor(t){super(),qe(this,t,Zi,Yi,$t,{div:0,templateContext:6,origJson:1,layoutParams:2})}};function ta(t,e,n){const r=t.slice();return r[1]=e[n],r}function ea(t){let e,n,r,o=[...Object.keys(t[0])],i=[];for(let e=0;e<o.length;e+=1)i[e]=na(ta(t,o,e));return{c(){e=Rt("svg"),n=Rt("defs");for(let t=0;t<i.length;t+=1)i[t].c();this.h()},l(t){e=Qt(t,"svg",{class:!0,"aria-hidden":!0});var r=Kt(e);n=Qt(r,"defs",{});var o=Kt(n);for(let t=0;t<i.length;t+=1)i[t].l(o);o.forEach(Ot),r.forEach(Ot),this.h()},h(){Ht(e,"class",r="divkit-dc22"),Ht(e,"aria-hidden","true")},m(t,r){Jt(t,e,r),Mt(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=ta(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&&Ot(e),Tt(i,t)}}}function na(t){let e,n,r,o,i;return{c(){e=Rt("filter"),n=Rt("feFlood"),o=Rt("feComposite"),this.h()},l(t){e=Qt(t,"filter",{id:!0});var r=Kt(e);n=Qt(r,"feFlood",{"flood-color":!0}),Kt(n).forEach(Ot),o=Qt(r,"feComposite",{in2:!0,operator:!0}),Kt(o).forEach(Ot),r.forEach(Ot),this.h()},h(){Ht(n,"flood-color",r=t[1]),Ht(o,"in2","SourceGraphic"),Ht(o,"operator","in"),Ht(e,"id",i=t[0][t[1]])},m(t,r){Jt(t,e,r),Mt(e,n),Mt(e,o)},p(t,o){1&o&&r!==(r=t[1])&&Ht(n,"flood-color",r),1&o&&i!==(i=t[0][t[1]])&&Ht(e,"id",i)},d(t){t&&Ot(e)}}}function ra(t){let e,n=Object.keys(t[0]).length,r=n&&ea(t);return{c(){r&&r.c(),e=Ut()},l(t){r&&r.l(t),e=Ut()},m(t,n){r&&r.m(t,n),Jt(t,e,n)},p(t,o){let[i]=o;1&i&&(n=Object.keys(t[0]).length),n?r?r.p(t,i):(r=ea(t),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null)},i:ct,o:ct,d(t){r&&r.d(t),t&&Ot(e)}}}function oa(t,e,n){let{svgFiltersMap:r}=e;return t.$$set=t=>{"svgFiltersMap"in t&&n(0,r=t.svgFiltersMap)},[r]}const ia=class extends He{constructor(t){super(),qe(this,t,oa,ra,$t,{svgFiltersMap:0})}};function aa(t,e,n,r){const o=n[t.type];if(!o)return r(dn(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(dn(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 la(){}function sa(t){return{subscribe:e=>(e(t),la)}}const ca=/(?:[^\\]|^)@{.+}/i;class ua{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=rn(t,this.ast);if("error"===n.type)return void e(dn(new Error("Expression execution error"),{additional:{message:n.value}}));const r=n.value;return r instanceof Date?D(r):r}catch(t){return void e(dn(new Error("Expression execution error")))}}}function da(t,e,n){if(t)if("string"==typeof t){if(r=t,ca.test(r))try{const n=y(t,{startRule:"JsonStringContents"}),r=M(n);return e.push(...r),new ua(n)}catch(e){return void n(dn(new Error("Unable to parse expression"),{additional:{expression:t}}))}}else{if(Array.isArray(t))return t.map((t=>da(t,e,n)));if("object"==typeof t){const r={};for(const o in t)r[o]=da(t[o],e,n);return r}}var r;return t}function ha(t,e,n){if(t){if(t instanceof ua)return t.apply(e,n);if(Array.isArray(t))return t.map((t=>ha(t,e,n)));if("object"==typeof t){const r={};for(const o in t)r[o]=ha(t[o],e,n);return r}}return t}function fa(t,e){let n=[];const r=da(t,n,e);return n=[...new Set(n)],{vars:n,applyVars:t=>ha(r,t,e)}}const pa={pagers:function(){return Ke(new Map)}},ga=new Map,ma=new Map;function va(t){const e=ga.get(t)||Ke("");return ga.has(t)||ga.set(t,e),e}function $a(t){const e=ma.get(t)||new Map;return ma.has(t)||ma.set(t,e),e}class ya{setVariable(t){const e=t.getName(),n=$a(this);if(n.has(e))throw new Error("Variable with the same name already exist");n.set(e,t),va(this).set(e)}getVariable(t){return $a(this).get(t)}}function _a(){return new ya}function ba(t){let e,n,r,o,i,a,l,s;return n=new ia({props:{svgFiltersMap:t[2]}}),o=new Qi({props:{div:t[4],templateContext:t[3]}}),{c(){e=Bt("div"),Re(n.$$.fragment),r=Lt(),Re(o.$$.fragment),this.h()},l(t){e=Zt(t,"DIV",{class:!0});var i=Kt(e);We(n.$$.fragment,i),r=ee(i),We(o.$$.fragment,i),i.forEach(Ot),this.h()},h(){Ht(e,"class",i=""+(on+(t[0]?" ".concat(sn):"")))},m(t,i){Jt(t,e,i),Le(n,e,null),Mt(e,r),Le(o,e,null),a=!0,l||(s=qt(e,"touchstart",wa,{passive:!0}),l=!0)},p(t,r){const o={};4&r[0]&&(o.svgFiltersMap=t[2]),n.$set(o),(!a||1&r[0]&&i!==(i=""+(on+(t[0]?" ".concat(sn):""))))&&Ht(e,"class",i)},i(t){a||(Ie(n.$$.fragment,t),Ie(o.$$.fragment,t),a=!0)},o(t){Ne(n.$$.fragment,t),Ne(o.$$.fragment,t),a=!1},d(t){t&&Ot(e),Ue(n),Ue(o),l=!1,s()}}}function xa(t){let e,n,r=!t[1]&&t[4]&&ba(t);return{c(){r&&r.c(),e=Ut()},l(t){r&&r.l(t),e=Ut()},m(t,o){r&&r.m(t,o),Jt(t,e,o),n=!0},p(t,n){!t[1]&&t[4]?r?(r.p(t,n),2&n[0]&&Ie(r,1)):(r=ba(t),r.c(),Ie(r,1),r.m(e.parentNode,e)):r&&(Se(),Ne(r,1,1,(()=>{r=null})),Fe())},i(t){n||(Ie(r),n=!0)},o(t){Ne(r),n=!1},d(t){r&&r.d(t),t&&Ot(e)}}}function wa(){}function ka(t,e,n){var r,o,i,a,l;let{id:s}=e,{json:c={}}=e,{platform:u="auto"}=e,{theme:d="system"}=e,{globalVariablesController:h=new ya}=e,{onError:f}=e,{onStat:p}=e,{onCustomAction:g}=e,{onComponent:m}=e,v="desktop"===u;if("auto"===u&&"undefined"!=typeof matchMedia){const t=matchMedia("(any-pointer: coarse)");v=!t.matches,t.addListener((()=>{n(0,v=!t.matches)}))}let $="light";if("light"===d||"dark"===d)$=d;else if("system"===d)if("undefined"!=typeof matchMedia){const t=matchMedia("(prefers-color-scheme: dark)");$=t.matches?"dark":"light",t.addListener((()=>{$=t.matches?"dark":"light",L&&L[$].forEach((t=>{const e=A.get(t.name);e&&e.setValue(t.color)}))}))}else $="light";else D(dn(new Error("Unsupported theme")));let _=!1;c||(_=!0,D(dn(new Error('"json" prop is required')))),s||(_=!0,D(dn(new Error('"id" prop is required'))));let b=function(t){if(!t)return dn(new Error("Missing object"));const e=t.card,n=t.templates||{};if(!e)return dn(new Error("Missing card"));if(!e.states||!e.states.length)return dn(new Error("Missing states"));for(const t in n)if(n.hasOwnProperty(t)&&t in Ki)return dn(new Error("Template name collision"),{additional:{templateName:t}});for(let t=0;t<e.states.length;++t)if(!e.states[t].div)return dn(new Error("Missing state div"),{additional:{stateId:e.states[t].state_id}});return null}(c);const x=c.templates||{};b&&(_=!0,D(b));const w={stateChange:!1},k=va(h),C=$a(h),E=new Map,A=new Map,j=new Map;function V(t){const e=fa(t,D);return e.vars.length?e.applyVars(A):t}function D(t){f?f({error:t}):"warn"===(null==t?void 0:t.level)?console.warn(t):console.error(t)}let P=0;function S(t){return"".concat(s,"-").concat(P++)}let F={},I={};function N(t){const e=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=t.split("/");const n=e.shift()||"";if(e=[n,"root","0",...e],e.length<5||e.length%2!=1)throw new Error("Incorrect state id format");let r=B;for(let t=1;t<e.length;t+=2){const n=e[t],o=e[t+1];let i=r.getChild(n);if(!i)return;i.setState(o),r=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=J(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=J(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=J(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=A.get(n);t?t.set(o):D(dn(new Error("Cannot find variable"),{additional:{name:n}}))}else D(dn(new Error("Incorrect set_variable_action"),{additional:{url:t}}));break;default:D(dn(new Error("Unknown type of action"),{additional:{url:e}}))}}catch(t){D(dn(t,{additional:{url:e}}))}}const z=new Map;function J(t){if(z.has(t))return z.get(t);D(dn(new Error("Missing instance with id"),{additional:{id:t}}))}const O=new Map;function T(t){for(const e of t)A.has(e)&&t.delete(e);return t}he(un,{logError:D,logStat:function(t,e){p&&p({type:t,action:e})},hasTemplate:function(t){return t in x},processTemplate:function(t,e){if(!t)return{json:t,templateContext:e};const n=new Set([t.type]);for(;t.type in x;){if(({json:t,templateContext:e}=aa(t,e,x,D)),n.has(t.type))return{json:t,templateContext:e};n.add(t.type)}return{json:t,templateContext:e}},genId:S,genClass:function(t){return"divkit-".concat(S())},execAction:N,execCustomAction:function(t){null==g||g(t)},isRunning:function(t){return w[t]},setRunning:function(t,e){w[t]=e},registerInstance:function(t,e){z.has(t)?D(dn(new Error("Duplicate instance id"),{additional:{id:t}})):z.set(t,e)},addSvgFilter:function(t){if(I[t]=I[t]||0,++I[t],F[t])return F[t];const e="".concat(S(),"-svg-filter");return n(2,F=Object.assign(Object.assign({},F),{[t]:e})),e},removeSvgFilter:function(t){t&&I[t]&&0==--I[t]&&n(2,F=Object.keys(F).reduce(((t,e)=>(I[e]&&(t[e]=F[e]),t)),{}))},getDerivedFromVars:function(t){if(!t)return sa(t);const e=fa(t,D);return e.vars.length?Xe(e.vars.map((t=>A.get(t)||function(t){const e=j.get(t)||Ke(void 0);return j.has(t)||j.set(t,e),e}(t))).filter($n),(()=>e.applyVars(A))):sa(t)},getJsonWithVars:V,getStore:function(t){return O.has(t)||function(t){O.has(t)||O.set(t,pa[t]())}(t),O.get(t)},getVariable:function(t,e){const n=A.get(t);if(n){const r=n.getType();if(r!==e)return void D(dn(new Error('Variable should have type "'.concat(e,'"')),{additional:{name:t,foundType:r}}))}return n},registerComponent:function(t){let{node:e,json:n,origJson:r,templateContext:o}=t;m&&m({type:"mount",node:e,json:n,origJson:r,templateContext:o})},unregisterComponent:function(t){let{node:e}=t;m&&m({type:"destroy",node:e})}}),he(Tn,{hasAction:()=>!1});const B={setState(t){throw new Error("Not implemented")},getChild(t){if(R&&R.has(t))return R.get(t);D(dn(new Error("Missing state block with id"),{additional:{id:t}}))}};let R=null;he(Dn,{registerInstance(t,e){R||(R=new Map),R.has(t)?D(dn(new Error("Duplicate state with id"),{additional:{id:t}})):R.set(t,e)},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 W=null===(r=null==c?void 0:c.card)||void 0===r?void 0:r.variables;Array.isArray(W)&&W.forEach((t=>{if(t&&t.type in Ze&&t.name){if(E.has(t.name))return void D(dn(new Error("Duplicate variable"),{additional:{name:t.name}}));try{const e=Qe(t.name,t.type,t.value);E.set(t.name,e),A.set(t.name,e)}catch(e){D(dn(e,{additional:{name:t.name}}))}}}));const L=c.palette;L&&L[$].forEach((t=>{if(E.has(t.name))D(dn(new Error("Duplicate variable"),{additional:{name:t.name}}));else try{const e=Qe(t.name,"color",t.color);E.set(t.name,e),A.set(t.name,e)}catch(e){D(dn(e,{additional:{name:t.name}}))}}));for(const[t,e]of C)A.has(t)||A.set(t,e);k.subscribe((t=>{if(t&&!A.has(t)){const e=C.get(t);A.set(t,e);const n=j.get(t);if(n){let t=0;e.subscribe((()=>{n.set(++t)}))}}}));const U=null===(o=null==c?void 0:c.card)||void 0===o?void 0:o.variable_triggers;Array.isArray(U)&&U.forEach((t=>{let e=!1;if("string"!=typeof t.condition)return void D(dn(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=y(t.condition,{startRule:"JsonStringContents"}),o=M(r);if(!o.length)return void D(dn(new Error("variable_trigger must have variables in the condition"),{additional:{condition:t.condition}}));(function(t){const e=new Set(t);return T(e),e.size?new Promise((t=>{const n=k.subscribe((()=>{T(e),e.size||(n(),t())}))})):Promise.resolve()})(o).then((()=>{Xe(o.map((t=>A.get(t))).filter($n),(()=>rn(A,r))).subscribe((r=>{"error"!==r.type?(r.value&&("on_variable"===n||"on_condition"===n&&!1===e)&&t.actions.forEach((t=>{const e=V(t);e.log_id&&N(e)})),e=Boolean(r.value)):D(dn(new Error("variable_trigger condition execution error"),{additional:{message:r.value}}))}))}))}catch(e){D(dn(new Error("Unable to parse variable_trigger"),{additional:{condition:t.condition}}))}else D(dn(new Error("variable_trigger has an unsupported mode"),{additional:{mode:n}}))}));let q=null===(l=null===(a=null===(i=null==c?void 0:c.card)||void 0===i?void 0:i.states)||void 0===a?void 0:a[0])||void 0===l?void 0:l.div,H=q&&{type:"state",id:"root",width:{type:"match_parent"},height:{type:"match_parent"},states:[{state_id:"0",div:q}]};return t.$$set=t=>{"id"in t&&n(5,s=t.id),"json"in t&&n(6,c=t.json),"platform"in t&&n(7,u=t.platform),"theme"in t&&n(8,d=t.theme),"globalVariablesController"in t&&n(9,h=t.globalVariablesController),"onError"in t&&n(10,f=t.onError),"onStat"in t&&n(11,p=t.onStat),"onCustomAction"in t&&n(12,g=t.onCustomAction),"onComponent"in t&&n(13,m=t.onComponent)},[v,_,F,{},H,s,c,u,d,h,f,p,g,m,function(t,e){if("string"==typeof e||"number"==typeof e||"boolean"==typeof e){const n=A.get(t);n&&n.setValue(e)}},function(t){const e=A.get(t);return null==e?void 0:e.getValue()},N]}const Ca=class extends He{constructor(t){super(),qe(this,t,ka,xa,$t,{id:5,json:6,platform:7,theme:8,globalVariablesController:9,onError:10,onStat:11,onCustomAction:12,onComponent:13,setVariable:14,getVariable:15,execAction:16},null,[-1,-1,-1])}get setVariable(){return this.$$.ctx[14]}get getVariable(){return this.$$.ctx[15]}get execAction(){return this.$$.ctx[16]}};function Ea(t){return new Ca({target:t.target,props:{id:t.id,json:t.json,globalVariablesController:t.globalVariablesController,onStat:t.onStat,onCustomAction:t.onCustomAction,onError:t.onError,onComponent:t.onComponent,platform:t.platform,theme:t.theme},hydrate:t.hydrate})}function Aa(t,e){let n;try{n=y(t,{startRule:"json"===(null==e?void 0:e.type)?"JsonStringContents":"start"})}catch(t){return{type:"error",value:"Unable to parse expression"}}return rn((null==e?void 0:e.variables)||new Map,n)}function ja(){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:()=>ka,createVariable:()=>Qe,evalExpression:()=>Pa,functionNames:()=>Sa,render:()=>Da,valToString:()=>P});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 p(t,e){return e.reduce(((t,e)=>({type:"BinaryExpression",operator:e[1],left:t,right:e[3]})),t)}function f(t,e){return e.reduce(((t,e)=>({type:"LogicalExpression",operator:e[1],left:t,right:e[3]})),t)}function h(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 $(t,e,n){return n=n||" ",t.length>e?t:(e-=t.length,t+(n+=n.repeat(e)).slice(0,e))}function y(t,e){var n,r={},o=(e=void 0!==e?e:{}).grammarSource,i={start:Nt,JsonStringContents:function(){var t,e,n;for(t=xt,e=[],n=zt();n!==r;)e.push(n),n=zt();return wt=t,e=bt(e)}},a=Nt,l="@{",s="}",c="@{}",u="\\",d="||",$="&&",y="==",_="!=",b=">=",x="<=",w="+",k="-",E="true",C="false",A=/^[^}]/,V=/^[^'}]/,j=/^[0-9]/,D=/^[a-zA-Z_0-9.]/,P=/^[a-zA-Z_]/,S=/^[ \t\r\n]/,F=jt("@{",!1),I=jt("}",!1),N=jt("@{}",!1),z=jt("\\",!1),M={type:"any"},J=Dt(["}"],!0,!1),O=jt("?",!1),T=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=Pt("string"),it=jt("'",!1),at=Dt(["'","}"],!0,!1),lt=Pt("integer"),st=Dt([["0","9"]],!1,!1),ct=Pt("number"),ut=jt(".",!1),dt=jt("e",!1),pt=jt("E",!1),ft=Pt("boolean"),ht=jt("true",!1),gt=jt("false",!1),mt=Dt([["a","z"],["A","Z"],"_",["0","9"],"."],!1,!1),vt=Pt("identifier"),$t=Dt([["a","z"],["A","Z"],"_"],!1,!1),yt=Pt("whitespace"),_t=Dt([" ","\t","\r","\n"],!1,!1),bt=function(t){return h(t)},xt=0,wt=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(wt,xt)}function jt(t,e){return{type:"literal",text:t,ignoreCase:e}}function Dt(t,e,n){return{type:"class",parts:t,inverted:e,ignoreCase:n}}function Pt(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 Ft(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 It(t){xt<Et||(xt>Et&&(Et=xt,Ct=[]),Ct.push(t))}function Nt(){var t,e;return t=xt,Kt(),(e=Mt())!==r?(Kt(),wt=t,t=e):(xt=t,t=r),t}function zt(){var e,n,o,i,a;if(e=xt,t.substr(xt,2)===l?(n=l,xt+=2):(n=r,0===At&&It(F)),n!==r?(o=Kt(),(i=Mt())!==r?(Kt(),125===t.charCodeAt(xt)?(a=s,xt++):(a=r,0===At&&It(I)),a!==r?(wt=e,e=i):(xt=e,e=r)):(xt=e,e=r)):(xt=e,e=r),e===r&&(e=xt,t.substr(xt,3)===c?(n=c,xt+=3):(n=r,0===At&&It(N)),n!==r&&(wt=e,n=""),(e=n)===r&&(e=xt,n=xt,At++,92===t.charCodeAt(xt)?(o=u,xt++):(o=r,0===At&&It(z)),o===r&&(t.substr(xt,2)===l?(o=l,xt+=2):(o=r,0===At&&It(F))),At--,o===r?n=void 0:(xt=n,n=r),n!==r?(t.length>xt?(o=t.charAt(xt),xt++):(o=r,0===At&&It(M)),o!==r?(wt=e,e=Vt()):(xt=e,e=r)):(xt=e,e=r),e===r))){if(e=xt,t.substr(xt,2)===l?(n=l,xt+=2):(n=r,0===At&&It(F)),n!==r){if(o=[],A.test(t.charAt(xt))?(i=t.charAt(xt),xt++):(i=r,0===At&&It(J)),i!==r)for(;i!==r;)o.push(i),A.test(t.charAt(xt))?(i=t.charAt(xt),xt++):(i=r,0===At&&It(J));else o=r;o!==r?(125===t.charCodeAt(xt)?(i=s,xt++):(i=r,0===At&&It(I)),i!==r?(wt=e,e=function(){throw new Error("Error tokenizing '"+t+"'.")}()):(xt=e,e=r)):(xt=e,e=r)}else xt=e,e=r;e===r&&(e=xt,t.substr(xt,2)===l?(n=l,xt+=2):(n=r,0===At&&It(F)),n!==r&&(wt=e,n=function(){throw new Error("Error tokenizing '"+t+"'.")}()),(e=n)===r&&(e=xt,92===t.charCodeAt(xt)?(n=u,xt++):(n=r,0===At&&It(z)),n!==r?(t.substr(xt,2)===l?(o=l,xt+=2):(o=r,0===At&&It(F)),o!==r?(wt=e,e=o):(xt=e,e=r)):(xt=e,e=r),e===r&&(e=xt,92===t.charCodeAt(xt)?(n=u,xt++):(n=r,0===At&&It(z)),n!==r?(t.length>xt?(o=t.charAt(xt),xt++):(o=r,0===At&&It(M)),o!==r?(wt=e,e=m(o)):(xt=e,e=r)):(xt=e,e=r),e===r&&(e=xt,92===t.charCodeAt(xt)?(n=u,xt++):(n=r,0===At&&It(z)),n!==r&&(wt=e,n=function(){throw new Error("Error tokenizing '"+t+"'.")}()),e=n))))}return e}function Mt(){var e,n,o,i,a,l;return e=xt,(n=Jt())!==r?(Kt(),63===t.charCodeAt(xt)?(o="?",xt++):(o=r,0===At&&It(O)),o!==r?(Kt(),(i=Mt())!==r?(Kt(),58===t.charCodeAt(xt)?(a=":",xt++):(a=r,0===At&&It(T)),a!==r?(Kt(),(l=Mt())!==r?(wt=e,e={type:"ConditionalExpression",test:n,consequent:i,alternate:l}):(xt=e,e=r)):(xt=e,e=r)):(xt=e,e=r)):(xt=e,e=r)):(xt=e,e=r),e===r&&(e=Jt()),e}function Jt(){var e,n,o,i,a,l,s,c;if(e=xt,(n=Ot())!==r){for(o=[],i=xt,a=Kt(),t.substr(xt,2)===d?(l=d,xt+=2):(l=r,0===At&&It(B)),l!==r?(s=Kt(),(c=Ot())!==r?i=a=[a,l,s,c]:(xt=i,i=r)):(xt=i,i=r);i!==r;)o.push(i),i=xt,a=Kt(),t.substr(xt,2)===d?(l=d,xt+=2):(l=r,0===At&&It(B)),l!==r?(s=Kt(),(c=Ot())!==r?i=a=[a,l,s,c]:(xt=i,i=r)):(xt=i,i=r);wt=e,e=f(n,o)}else xt=e,e=r;return e}function Ot(){var e,n,o,i,a,l,s,c;if(e=xt,(n=Tt())!==r){for(o=[],i=xt,a=Kt(),t.substr(xt,2)===$?(l=$,xt+=2):(l=r,0===At&&It(R)),l!==r?(s=Kt(),(c=Tt())!==r?i=a=[a,l,s,c]:(xt=i,i=r)):(xt=i,i=r);i!==r;)o.push(i),i=xt,a=Kt(),t.substr(xt,2)===$?(l=$,xt+=2):(l=r,0===At&&It(R)),l!==r?(s=Kt(),(c=Tt())!==r?i=a=[a,l,s,c]:(xt=i,i=r)):(xt=i,i=r);wt=e,e=f(n,o)}else xt=e,e=r;return e}function Tt(){var e,n,o,i,a,l,s,c;if(e=xt,(n=Bt())!==r){for(o=[],i=xt,a=Kt(),t.substr(xt,2)===y?(l=y,xt+=2):(l=r,0===At&&It(W)),l===r&&(t.substr(xt,2)===_?(l=_,xt+=2):(l=r,0===At&&It(L))),l!==r?(s=Kt(),(c=Bt())!==r?i=a=[a,l,s,c]:(xt=i,i=r)):(xt=i,i=r);i!==r;)o.push(i),i=xt,a=Kt(),t.substr(xt,2)===y?(l=y,xt+=2):(l=r,0===At&&It(W)),l===r&&(t.substr(xt,2)===_?(l=_,xt+=2):(l=r,0===At&&It(L))),l!==r?(s=Kt(),(c=Bt())!==r?i=a=[a,l,s,c]:(xt=i,i=r)):(xt=i,i=r);wt=e,e=p(n,o)}else xt=e,e=r;return e}function Bt(){var e,n,o,i,a,l,s,c;if(e=xt,(n=Rt())!==r){for(o=[],i=xt,a=Kt(),t.substr(xt,2)===b?(l=b,xt+=2):(l=r,0===At&&It(U)),l===r&&(62===t.charCodeAt(xt)?(l=">",xt++):(l=r,0===At&&It(q)),l===r&&(t.substr(xt,2)===x?(l=x,xt+=2):(l=r,0===At&&It(H)),l===r&&(60===t.charCodeAt(xt)?(l="<",xt++):(l=r,0===At&&It(G))))),l!==r?(s=Kt(),(c=Rt())!==r?i=a=[a,l,s,c]:(xt=i,i=r)):(xt=i,i=r);i!==r;)o.push(i),i=xt,a=Kt(),t.substr(xt,2)===b?(l=b,xt+=2):(l=r,0===At&&It(U)),l===r&&(62===t.charCodeAt(xt)?(l=">",xt++):(l=r,0===At&&It(q)),l===r&&(t.substr(xt,2)===x?(l=x,xt+=2):(l=r,0===At&&It(H)),l===r&&(60===t.charCodeAt(xt)?(l="<",xt++):(l=r,0===At&&It(G))))),l!==r?(s=Kt(),(c=Rt())!==r?i=a=[a,l,s,c]:(xt=i,i=r)):(xt=i,i=r);wt=e,e=p(n,o)}else xt=e,e=r;return e}function Rt(){var e,n,o,i,a,l,s,c;if(e=xt,(n=Wt())!==r){for(o=[],i=xt,a=Kt(),43===t.charCodeAt(xt)?(l=w,xt++):(l=r,0===At&&It(K)),l===r&&(45===t.charCodeAt(xt)?(l=k,xt++):(l=r,0===At&&It(X))),l!==r?(s=Kt(),(c=Wt())!==r?i=a=[a,l,s,c]:(xt=i,i=r)):(xt=i,i=r);i!==r;)o.push(i),i=xt,a=Kt(),43===t.charCodeAt(xt)?(l=w,xt++):(l=r,0===At&&It(K)),l===r&&(45===t.charCodeAt(xt)?(l=k,xt++):(l=r,0===At&&It(X))),l!==r?(s=Kt(),(c=Wt())!==r?i=a=[a,l,s,c]:(xt=i,i=r)):(xt=i,i=r);wt=e,e=p(n,o)}else xt=e,e=r;return e}function Wt(){var e,n,o,i,a,l,s,c;if(e=xt,(n=Lt())!==r){for(o=[],i=xt,a=Kt(),47===t.charCodeAt(xt)?(l="/",xt++):(l=r,0===At&&It(Y)),l===r&&(42===t.charCodeAt(xt)?(l="*",xt++):(l=r,0===At&&It(Z)),l===r&&(37===t.charCodeAt(xt)?(l="%",xt++):(l=r,0===At&&It(Q)))),l!==r?(s=Kt(),(c=Lt())!==r?i=a=[a,l,s,c]:(xt=i,i=r)):(xt=i,i=r);i!==r;)o.push(i),i=xt,a=Kt(),47===t.charCodeAt(xt)?(l="/",xt++):(l=r,0===At&&It(Y)),l===r&&(42===t.charCodeAt(xt)?(l="*",xt++):(l=r,0===At&&It(Z)),l===r&&(37===t.charCodeAt(xt)?(l="%",xt++):(l=r,0===At&&It(Q)))),l!==r?(s=Kt(),(c=Lt())!==r?i=a=[a,l,s,c]:(xt=i,i=r)):(xt=i,i=r);wt=e,e=p(n,o)}else xt=e,e=r;return e}function Lt(){var e,n,o;return(e=Ht())===r&&(e=qt())===r&&(e=xt,33===t.charCodeAt(xt)?(n="!",xt++):(n=r,0===At&&It(tt)),n===r&&(43===t.charCodeAt(xt)?(n=w,xt++):(n=r,0===At&&It(K)),n===r&&(45===t.charCodeAt(xt)?(n=k,xt++):(n=r,0===At&&It(X)))),n!==r?(Kt(),(o=Lt())!==r?(wt=e,e={type:"UnaryExpression",operator:n,argument:o}):(xt=e,e=r)):(xt=e,e=r),e===r&&(e=function(){var e,n,o,i,a;return e=xt,(n=Gt())!==r?(Kt(),40===t.charCodeAt(xt)?(o="(",xt++):(o=r,0===At&&It(et)),o!==r?(Kt(),i=function(){var e,n,o,i,a,l,s;if(e=xt,(n=Mt())!==r){for(o=[],i=xt,Kt(),44===t.charCodeAt(xt)?(a=",",xt++):(a=r,0===At&&It(rt)),a!==r?(Kt(),(l=Mt())!==r?i=l:(xt=i,i=r)):(xt=i,i=r);i!==r;)o.push(i),i=xt,Kt(),44===t.charCodeAt(xt)?(a=",",xt++):(a=r,0===At&&It(rt)),a!==r?(Kt(),(l=Mt())!==r?i=l:(xt=i,i=r)):(xt=i,i=r);wt=e,s=o,e=[n,...s]}else xt=e,e=r;return e===r&&(e=Kt()),e}(),i!==r?(Kt(),41===t.charCodeAt(xt)?(a=")",xt++):(a=r,0===At&&It(nt)),a!==r?(wt=e,e={type:"CallExpression",callee:n,arguments:i}):(xt=e,e=r)):(xt=e,e=r)):(xt=e,e=r)):(xt=e,e=r),e===r&&(e=xt,(n=Gt())!==r&&(wt=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=xt,39===t.charCodeAt(xt)?(n="'",xt++):(n=r,0===At&&It(it)),n!==r?(o=function(){var t,e,n;for(t=xt,e=[],n=Ut();n!==r;)e.push(n),n=Ut();return wt=t,e=h(e)}(),39===t.charCodeAt(xt)?(i="'",xt++):(i=r,0===At&&It(it)),i!==r?(wt=e,e=o):(xt=e,e=r)):(xt=e,e=r),At--,e===r&&(n=r,0===At&&It(ot)),e}(),e===r&&(e=Ht())===r&&(e=qt())===r&&(e=function(){var e,n;return At++,e=xt,t.substr(xt,4)===E?(n=E,xt+=4):(n=r,0===At&&It(ht)),n!==r&&(wt=e,n={type:"BooleanLiteral",value:!0}),(e=n)===r&&(e=xt,t.substr(xt,5)===C?(n=C,xt+=5):(n=r,0===At&&It(gt)),n!==r&&(wt=e,n={type:"BooleanLiteral",value:!1}),e=n),At--,e===r&&(n=r,0===At&&It(ft)),e}(),e===r&&(e=xt,40===t.charCodeAt(xt)?(n="(",xt++):(n=r,0===At&&It(et)),n!==r&&(o=Mt())!==r?(41===t.charCodeAt(xt)?(i=")",xt++):(i=r,0===At&&It(nt)),i!==r?(wt=e,e=o):(xt=e,e=r)):(xt=e,e=r))),e}())),e}())),e}function Ut(){var e,n,o,i,a;if(e=xt,t.substr(xt,2)===l?(n=l,xt+=2):(n=r,0===At&&It(F)),n!==r?(o=Kt(),(i=Mt())!==r?(Kt(),125===t.charCodeAt(xt)?(a=s,xt++):(a=r,0===At&&It(I)),a!==r?(wt=e,e=i):(xt=e,e=r)):(xt=e,e=r)):(xt=e,e=r),e===r&&(e=xt,t.substr(xt,3)===c?(n=c,xt+=3):(n=r,0===At&&It(N)),n!==r&&(wt=e,n=""),(e=n)===r&&(e=xt,n=xt,At++,92===t.charCodeAt(xt)?(o=u,xt++):(o=r,0===At&&It(z)),o===r&&(39===t.charCodeAt(xt)?(o="'",xt++):(o=r,0===At&&It(it)),o===r&&(t.substr(xt,2)===l?(o=l,xt+=2):(o=r,0===At&&It(F)))),At--,o===r?n=void 0:(xt=n,n=r),n!==r?(t.length>xt?(o=t.charAt(xt),xt++):(o=r,0===At&&It(M)),o!==r?(wt=e,e=Vt()):(xt=e,e=r)):(xt=e,e=r),e===r))){if(e=xt,t.substr(xt,2)===l?(n=l,xt+=2):(n=r,0===At&&It(F)),n!==r){if(o=[],V.test(t.charAt(xt))?(i=t.charAt(xt),xt++):(i=r,0===At&&It(at)),i!==r)for(;i!==r;)o.push(i),V.test(t.charAt(xt))?(i=t.charAt(xt),xt++):(i=r,0===At&&It(at));else o=r;o!==r?(125===t.charCodeAt(xt)?(i=s,xt++):(i=r,0===At&&It(I)),i!==r?(wt=e,e=function(){throw new Error("Error tokenizing '"+t+"'.")}()):(xt=e,e=r)):(xt=e,e=r)}else xt=e,e=r;e===r&&(e=xt,t.substr(xt,2)===l?(n=l,xt+=2):(n=r,0===At&&It(F)),n!==r&&(wt=e,n=function(){throw new Error("Error tokenizing '"+t+"'.")}()),(e=n)===r&&(e=xt,92===t.charCodeAt(xt)?(n=u,xt++):(n=r,0===At&&It(z)),n!==r?(t.substr(xt,2)===l?(o=l,xt+=2):(o=r,0===At&&It(F)),o!==r?(wt=e,e=o):(xt=e,e=r)):(xt=e,e=r),e===r&&(e=xt,92===t.charCodeAt(xt)?(n=u,xt++):(n=r,0===At&&It(z)),n!==r?(t.length>xt?(o=t.charAt(xt),xt++):(o=r,0===At&&It(M)),o!==r?(wt=e,e=m(o)):(xt=e,e=r)):(xt=e,e=r),e===r&&(e=xt,92===t.charCodeAt(xt)?(n=u,xt++):(n=r,0===At&&It(z)),n!==r&&(wt=e,n=function(){throw new Error("Error tokenizing '"+t+"'.")}()),e=n))))}return e}function qt(){var e,n,o,i;if(At++,e=xt,45===t.charCodeAt(xt)?(n=k,xt++):(n=r,0===At&&It(X)),n===r&&(n=null),o=[],j.test(t.charAt(xt))?(i=t.charAt(xt),xt++):(i=r,0===At&&It(st)),i!==r)for(;i!==r;)o.push(i),j.test(t.charAt(xt))?(i=t.charAt(xt),xt++):(i=r,0===At&&It(st));else o=r;return o!==r?(wt=e,e={type:"IntegerLiteral",value:g(Vt())}):(xt=e,e=r),At--,e===r&&(n=r,0===At&&It(lt)),e}function Ht(){var e,n,o,i,a,l,s,c,u,d;for(At++,e=xt,45===t.charCodeAt(xt)?(n=k,xt++):(n=r,0===At&&It(X)),n===r&&(n=null),o=[],j.test(t.charAt(xt))?(i=t.charAt(xt),xt++):(i=r,0===At&&It(st));i!==r;)o.push(i),j.test(t.charAt(xt))?(i=t.charAt(xt),xt++):(i=r,0===At&&It(st));if(46===t.charCodeAt(xt)?(i=".",xt++):(i=r,0===At&&It(ut)),i!==r){if(a=[],j.test(t.charAt(xt))?(l=t.charAt(xt),xt++):(l=r,0===At&&It(st)),l!==r)for(;l!==r;)a.push(l),j.test(t.charAt(xt))?(l=t.charAt(xt),xt++):(l=r,0===At&&It(st));else a=r;if(a!==r){if(l=xt,101===t.charCodeAt(xt)?(s="e",xt++):(s=r,0===At&&It(dt)),s===r&&(69===t.charCodeAt(xt)?(s="E",xt++):(s=r,0===At&&It(pt))),s!==r){if(43===t.charCodeAt(xt)?(c=w,xt++):(c=r,0===At&&It(K)),c===r&&(45===t.charCodeAt(xt)?(c=k,xt++):(c=r,0===At&&It(X))),c===r&&(c=null),u=[],j.test(t.charAt(xt))?(d=t.charAt(xt),xt++):(d=r,0===At&&It(st)),d!==r)for(;d!==r;)u.push(d),j.test(t.charAt(xt))?(d=t.charAt(xt),xt++):(d=r,0===At&&It(st));else u=r;u!==r?l=s=[s,c,u]:(xt=l,l=r)}else xt=l,l=r;l===r&&(l=null),wt=e,e={type:"NumberLiteral",value:parseFloat(Vt())}}else xt=e,e=r}else xt=e,e=r;if(e===r){if(e=xt,45===t.charCodeAt(xt)?(n=k,xt++):(n=r,0===At&&It(X)),n===r&&(n=null),o=[],j.test(t.charAt(xt))?(i=t.charAt(xt),xt++):(i=r,0===At&&It(st)),i!==r)for(;i!==r;)o.push(i),j.test(t.charAt(xt))?(i=t.charAt(xt),xt++):(i=r,0===At&&It(st));else o=r;if(o!==r)if(101===t.charCodeAt(xt)?(i="e",xt++):(i=r,0===At&&It(dt)),i===r&&(69===t.charCodeAt(xt)?(i="E",xt++):(i=r,0===At&&It(pt))),i!==r){if(43===t.charCodeAt(xt)?(a=w,xt++):(a=r,0===At&&It(K)),a===r&&(45===t.charCodeAt(xt)?(a=k,xt++):(a=r,0===At&&It(X))),a===r&&(a=null),l=[],j.test(t.charAt(xt))?(s=t.charAt(xt),xt++):(s=r,0===At&&It(st)),s!==r)for(;s!==r;)l.push(s),j.test(t.charAt(xt))?(s=t.charAt(xt),xt++):(s=r,0===At&&It(st));else l=r;l!==r?(wt=e,e={type:"NumberLiteral",value:parseFloat(Vt())}):(xt=e,e=r)}else xt=e,e=r;else xt=e,e=r}return At--,e===r&&(n=r,0===At&&It(ct)),e}function Gt(){var e,n,o,i,a;if(At++,e=xt,n=xt,At++,o=function(){var e,n,o,i;return e=xt,t.substr(xt,4)===E?(n=E,xt+=4):(n=r,0===At&&It(ht)),n===r&&(t.substr(xt,5)===C?(n=C,xt+=5):(n=r,0===At&&It(gt))),n!==r?(o=xt,At++,D.test(t.charAt(xt))?(i=t.charAt(xt),xt++):(i=r,0===At&&It(mt)),At--,i===r?o=void 0:(xt=o,o=r),o!==r?e=n=[n,o]:(xt=e,e=r)):(xt=e,e=r),e}(),At--,o===r?n=void 0:(xt=n,n=r),n!==r)if(P.test(t.charAt(xt))?(o=t.charAt(xt),xt++):(o=r,0===At&&It($t)),o!==r){for(i=[],D.test(t.charAt(xt))?(a=t.charAt(xt),xt++):(a=r,0===At&&It(mt));a!==r;)i.push(a),D.test(t.charAt(xt))?(a=t.charAt(xt),xt++):(a=r,0===At&&It(mt));wt=e,e={type:"Identifier",name:Vt()}}else xt=e,e=r;else xt=e,e=r;return At--,e===r&&(n=r,0===At&&It(vt)),e}function Kt(){var e,n;for(At++,e=[],S.test(t.charAt(xt))?(n=t.charAt(xt),xt++):(n=r,0===At&&It(_t));n!==r;)e.push(n),S.test(t.charAt(xt))?(n=t.charAt(xt),xt++):(n=r,0===At&&It(_t));return At--,n=r,0===At&&It(yt),e}if((n=a())!==r&&xt===t.length)return n;throw n!==r&&xt<t.length&&It({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?Ft(Et,Et+1):Ft(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=$("",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+" | "+$("",o.column-1," ")+$("",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 x(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 w(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 D(t){return t.toISOString().replace("T"," ").replace(/\.\d{3}Z$/,"")}function P(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 D(t.value);if("color"===t.type)return T(O(t.value));if("url"===t.type)return t.value;throw new Error("Unexpected type ".concat(t.type))}function S(t){let e=P(t);return"string"===t.type&&(e="'"+e.replace(/\\/g,"\\'").replace(/'/g,"\\'")+"'"),e}function F(t){return"datetime"===t?"DateTime":t.charAt(0).toUpperCase()+t.substring(1)}const I=new Int32Array(1);function N(t){return I[0]=t,I[0]}function z(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 J(t,e){throw new Error("Failed to evaluate [".concat(t,"]. ").concat(e))}function O(t){const e=V(t);if(e)return e;throw new Error("Unable to convert value to Color, expected format #AARRGGBB.")}function T(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:P(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){if(0===e.value)throw new Error("Division by zero is not supported.");let n=t.value/e.value;return t.type===l&&(n=N(n)),{type:t.type,value:n}}function L(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=N(n)),{type:t.type,value:n}}function U(){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=N(r));return{type:e[0].type,value:r}}function q(){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=N(r));return{type:e.length?e[0].type:l,value:r}}function H(){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=N(t));return{type:n.length?n[0].type:l,value:t}}function G(t){const e=Math.abs(t.value);return t.type===l&&z(e),{type:t.type,value:e}}function K(){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.");return{type:e[0].type,value:Math.max(...e.map((t=>t.value)))}}function X(){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.");return{type:e[0].type,value:Math.min(...e.map((t=>t.value)))}}function Y(t){return{type:t.type,value:Math.sign(t.value)}}function Z(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&&z(n),{type:t.type,value:n}}function Q(t){return e=>{const n=O(e.value);return{type:s,value:n[t]/255}}}function tt(t){return(e,n)=>{const r=O(e.value);return r[t]=255*n.value,{type:u,value:T(r)}}}const et=Q("a"),nt=Q("r"),rt=Q("g"),ot=Q("b"),it=tt("a"),at=tt("r"),lt=tt("g"),st=tt("b");function ct(){}const ut=t=>t;function dt(t,e){for(const n in e)t[n]=e[n];return t}function pt(t){return t()}function ft(){return Object.create(null)}function ht(t){t.forEach(pt)}function gt(t){return"function"==typeof t}let mt;function vt(t,e){return mt||(mt=document.createElement("a")),mt.href=e,t===mt.href}function $t(t,e){return t!=t?e==e:t!==e}function yt(t){return 0===Object.keys(t).length}function _t(t,...e){if(null==t)return ct;const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function bt(t,e,n){t.$$.on_destroy.push(_t(e,n))}function xt(t,e,n,r){if(t){const o=wt(t,e,n,r);return t[0](o)}}function wt(t,e,n,r){return t[1]&&r?dt(n.ctx.slice(),t[1](r(e))):n.ctx}function kt(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 Et(t,e,n,r,o,i){if(o){const a=wt(e,n,r,i);t.p(a,o)}}function Ct(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 At(t){return t&>(t.destroy)?t.destroy:ct}const Vt="undefined"!=typeof window;let jt=Vt?()=>window.performance.now():()=>Date.now(),Dt=Vt?t=>requestAnimationFrame(t):ct;const Pt=new Set;function St(t){Pt.forEach((e=>{e.c(t)||(Pt.delete(e),e.f())})),0!==Pt.size&&Dt(St)}let Ft=!1;function It(t,e,n,r){for(;t<e;){const o=t+(e-t>>1);n(o)<=r?t=o+1:e=o}return t}function Nt(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function zt(t){const e=Bt("style");return function(t,e){!function(t,e){t.appendChild(e)}(t.head||t,e)}(Nt(t),e),e.sheet}function Mt(t,e){if(Ft){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:It(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 Jt(t,e,n){Ft&&!n?Mt(t,e):e.parentNode===t&&e.nextSibling==n||t.insertBefore(e,n||null)}function Ot(t){t.parentNode.removeChild(t)}function Tt(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function Bt(t){return document.createElement(t)}function Rt(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Wt(t){return document.createTextNode(t)}function Lt(){return Wt(" ")}function Ut(){return Wt("")}function qt(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function Ht(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function Gt(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]:Ht(t,r,e[r])}function Kt(t){return Array.from(t.childNodes)}function Xt(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 Yt(t,e,n,r){return Xt(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 Zt(t,e,n){return Yt(t,e,n,Bt)}function Qt(t,e,n){return Yt(t,e,n,Rt)}function te(t,e){return Xt(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}),(()=>Wt(e)),!0)}function ee(t){return te(t," ")}function ne(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function re(t,e,n,r){null===n?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}const oe=new Map;let ie,ae=0;function le(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(", "),ae-=o,ae||Dt((()=>{ae||(oe.forEach((t=>{const{stylesheet:e}=t;let n=e.cssRules.length;for(;n--;)e.deleteRule(n);t.rules={}})),oe.clear())})))}function se(t){ie=t}function ce(){if(!ie)throw new Error("Function called outside component initialization");return ie}function ue(t){ce().$$.on_mount.push(t)}function de(t){ce().$$.on_destroy.push(t)}function pe(t,e){return ce().$$.context.set(t,e),e}function fe(t){return ce().$$.context.get(t)}function he(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((t=>t.call(this,e)))}const ge=[],me=[],ve=[],$e=[],ye=Promise.resolve();let _e=!1;function be(){_e||(_e=!0,ye.then(Ae))}function xe(){return be(),ye}function we(t){ve.push(t)}const ke=new Set;let Ee,Ce=0;function Ae(){const t=ie;do{for(;Ce<ge.length;){const t=ge[Ce];Ce++,se(t),Ve(t.$$)}for(se(null),ge.length=0,Ce=0;me.length;)me.pop()();for(let t=0;t<ve.length;t+=1){const e=ve[t];ke.has(e)||(ke.add(e),e())}ve.length=0}while(ge.length);for(;$e.length;)$e.pop()();_e=!1,ke.clear(),se(t)}function Ve(t){if(null!==t.fragment){t.update(),ht(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(we)}}function je(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 De=new Set;let Pe;function Se(){Pe={r:0,c:[],p:Pe}}function Fe(){Pe.r||ht(Pe.c),Pe=Pe.p}function Ie(t,e){t&&t.i&&(De.delete(t),t.i(e))}function Ne(t,e,n,r){if(t&&t.o){if(De.has(t))return;De.add(t),Pe.c.push((()=>{De.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}else r&&r()}const ze={duration:0};function Me(t,e,n){let r,o,i=e(t,n),a=!1,l=0;function s(){r&&le(t,r)}function c(){const{delay:e=0,duration:n=300,easing:c=ut,tick:u=ct,css:d}=i||ze;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}`,p=Nt(t),{stylesheet:f,rules:h}=oe.get(p)||function(t,e){const n={stylesheet:zt(e),rules:{}};return oe.set(t,n),n}(p,t);h[d]||(h[d]=!0,f.insertRule(`@keyframes ${d} ${u}`,f.cssRules.length));const g=t.style.animation||"";return t.style.animation=`${g?`${g}, `:""}${d} ${r}ms linear ${o}ms 1 both`,ae+=1,d}(t,0,1,n,e,c,d,l++)),u(0,1);const p=jt()+e,f=p+n;o&&o.abort(),a=!0,we((()=>je(t,!0,"start"))),o=function(t){let e;return 0===Pt.size&&Dt(St),{promise:new Promise((n=>{Pt.add(e={c:t,f:n})})),abort(){Pt.delete(e)}}}((e=>{if(a){if(e>=f)return u(1,0),je(t,!0,"end"),s(),a=!1;if(e>=p){const t=c((e-p)/n);u(t,1-t)}}return a}))}let u=!1;return{start(){u||(u=!0,le(t),gt(i)?(i=i(),(Ee||(Ee=Promise.resolve(),Ee.then((()=>{Ee=null}))),Ee).then(c)):c())},invalidate(){u=!1},end(){a&&(s(),a=!1)}}}const Je="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function Oe(t,e){Ne(t,1,1,(()=>{e.delete(t.key)}))}function Te(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 Be;function Re(t){t&&t.c()}function We(t,e){t&&t.l(e)}function Le(t,e,n,r){const{fragment:o,on_mount:i,on_destroy:a,after_update:l}=t.$$;o&&o.m(e,n),r||we((()=>{const e=i.map(pt).filter(gt);a?a.push(...e):ht(e),t.$$.on_mount=[]})),l.forEach(we)}function Ue(t,e){const n=t.$$;null!==n.fragment&&(ht(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function qe(t,e,n,r,o,i,a,l=[-1]){const s=ie;se(t);const c=t.$$={fragment:null,ctx:null,props:i,update:ct,not_equal:o,bound:ft(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:ft(),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]&&(ge.push(t),be(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(t,e)),n})):[],c.update(),u=!0,ht(c.before_update),c.fragment=!!r&&r(c.ctx),e.target){if(e.hydrate){Ft=!0;const t=Kt(e.target);c.fragment&&c.fragment.l(t),t.forEach(Ot)}else c.fragment&&c.fragment.c();e.intro&&Ie(t.$$.fragment),Le(t,e.target,e.anchor,e.customElement),Ft=!1,Ae()}se(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&&(Be=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(pt).filter(gt);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,n){this[t]=n}disconnectedCallback(){ht(this.$$.on_disconnect)}$destroy(){Ue(this,1),this.$destroy=ct}$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&&!yt(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});class He{$destroy(){Ue(this,1),this.$destroy=ct}$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&&!yt(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Ge=[];function Ke(t,e=ct){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=!Ge.length;for(const e of r)e[1](),Ge.push(e,t);if(e){for(let t=0;t<Ge.length;t+=2)Ge[t][0](Ge[t+1]);Ge.length=0}}var o,i}return{set:o,update:function(e){o(e(t))},subscribe:function(i,a=ct){const l=[i,a];return r.add(l),1===r.size&&(n=e(o)||ct),i(t),()=>{r.delete(l),0===r.size&&(n(),n=null)}}}}function Xe(t,e,n){const r=!Array.isArray(t),o=r?[t]:t,i=e.length<2;return{subscribe:Ke(n,(t=>{let n=!1;const a=[];let l=0,s=ct;const c=()=>{if(l)return;s();const n=e(r?a[0]:a,t);i?t(n):s=gt(n)?n:ct},u=o.map(((t,e)=>_t(t,(t=>{a[e]=t,l&=~(1<<e),n&&c()}),(()=>{l|=1<<e}))));return n=!0,c(),function(){ht(u),s()}})).subscribe}}class Ye{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=Ke(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 Ze={string:class extends Ye{convertValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value");return t}fromString(t){return t}getType(){return"string"}},number:class extends Ye{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 Ye{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 Ye{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 Ye{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 Ye{convertValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value");return t}fromString(t){return t}getType(){return"url"}}};function Qe(t,e,n){if(!(e in Ze))throw new Error("Unsupported variable type");return new Ze[e](t,n)}function tn(t){return t.map(S).join(", ")}x("toString",[l],B),x("toString",[s],B),x("toString",[c],B),x("toString",[u],B),x("toString",["url"],B),x("toNumber",[l],R),x("toNumber",[a],R),x("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}})),x("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}})),x("toInteger",[c],(function(t){return{type:l,value:t.value?1:0}})),x("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}})),x("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}})),x("encodeUri",[a],(function(t){try{return{type:a,value:encodeURIComponent(t.value)}}catch(t){throw new Error("Unable to encodeUri string.")}})),x("decodeUri",[a],(function(t){try{return{type:a,value:decodeURIComponent(t.value)}}catch(t){throw new Error("Unable to decodeUri string.")}})),x("parseUnixTime",[l],(function(t){return{type:d,value:new Date(1e3*t.value)}})),x("nowLocal",[],(function(){return{type:d,value:new Date}})),x("addMillis",[d,l],(function(t,e){return{type:d,value:new Date(t.value.getTime()+e.value)}})),x("setYear",[d,l],(function(t,e){const n=new Date(t.value);return n.setFullYear(e.value),{type:d,value:n}})),x("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}})),x("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(P(t),"."));return n.setDate(-1===e.value?0:e.value),{type:d,value:n}})),x("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}})),x("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}})),x("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}})),x("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}})),x("len",[a],(function(t){return{type:l,value:t.value.length}})),x("contains",[a,a],(function(t,e){return{type:c,value:t.value.includes(e.value)?1:0}})),x("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)}})),x("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}})),x("index",[a,a],(function(t,e){return{type:l,value:t.value.indexOf(e.value)}})),x("lastIndex",[a,a],(function(t,e){return{type:l,value:t.value.lastIndexOf(e.value)}})),x("trim",[a],(function(t){return{type:a,value:t.value.trim()}})),x("trimLeft",[a],(function(t){return{type:a,value:t.value.replace(/^\s+/,"")}})),x("trimRight",[a],(function(t){return{type:a,value:t.value.replace(/\s+$/,"")}})),x("toUpperCase",[a],(function(t){return{type:a,value:t.value.toUpperCase()}})),x("toLowerCase",[a],(function(t){return{type:a,value:t.value.toLowerCase()}})),x("div",[l,l],W),x("div",[s,s],W),x("mod",[l,l],L),x("mod",[s,s],L),x("mul",[{type:l,isVararg:!0}],U),x("mul",[{type:s,isVararg:!0}],U),x("sub",[{type:l,isVararg:!0}],q),x("sub",[{type:s,isVararg:!0}],q),x("sum",[{type:l,isVararg:!0}],H),x("sum",[{type:s,isVararg:!0}],H),x("abs",[l],G),x("abs",[s],G),x("max",[{type:l,isVararg:!0}],K),x("max",[{type:s,isVararg:!0}],K),x("min",[{type:l,isVararg:!0}],X),x("min",[{type:s,isVararg:!0}],X),x("maxNumber",[],(function(){return{type:s,value:o}})),x("minNumber",[],(function(){return{type:s,value:i}})),x("maxInteger",[],(function(){return{type:l,value:n}})),x("minInteger",[],(function(){return{type:l,value:r}})),x("round",[s],(function(t){const e=Math.sign(t.value);return{type:s,value:e*Math.round(Math.abs(t.value))}})),x("floor",[s],(function(t){return{type:s,value:Math.floor(t.value)}})),x("ceil",[s],(function(t){return{type:s,value:Math.ceil(t.value)}})),x("signum",[s],Y),x("signum",[l],Y),x("copySign",[s,s],Z),x("copySign",[l,l],Z),x("getColorAlpha",[a],et),x("getColorAlpha",[u],et),x("getColorRed",[a],nt),x("getColorRed",[u],nt),x("getColorGreen",[a],rt),x("getColorGreen",[u],rt),x("getColorBlue",[a],ot),x("getColorBlue",[u],ot),x("setColorAlpha",[a,s],it),x("setColorAlpha",[u,s],it),x("setColorRed",[a,s],at),x("setColorRed",[u,s],at),x("setColorGreen",[a,s],lt),x("setColorGreen",[u,s],lt),x("setColorBlue",[a,s],st),x("setColorBlue",[u,s],st),x("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:T(r)}})),x("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:T(o)}}));const en={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(nn(t,e.argument));switch(e.operator){case"!":if(n.type===c)return{type:c,value:n.value?0:1};J("".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};J("".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(nn(t,e.test));if(n.type===c)return n.value?nn(t,e.consequent):nn(t,e.alternate);J("".concat(S(n)," ? ").concat(S(nn(t,e.consequent))," : ").concat(S(nn(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 nn(t,e.expressions[0]);for(let r=0;r<e.expressions.length;++r)n+=e.quasis[r].value,n+=P(nn(t,e.expressions[r]));return n+=e.quasis[e.quasis.length-1].value,{type:a,value:n}},LogicalExpression:function(t,e){const n=j(nn(t,e.left));if(n.type!==c&&J("".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(nn(t,e.right));return r.type!==c&&J("".concat(S(n)," ").concat(e.operator," ").concat(S(r)),"Operator '".concat(e.operator,"' cannot be applied to different types: Boolean and ").concat(F(r.type),".")),{type:c,value:r.value}},BinaryExpression:function(t,e){const n=e.operator,r=nn(t,e.left),o=nn(t,e.right);if(r.type!==o.type&&J("".concat(S(r)," ").concat(e.operator," ").concat(S(o)),"Operator '".concat(n,"' cannot be applied to different types: ").concat(F(r.type)," and ").concat(F(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&&J("".concat(S(e)," ").concat(t," ").concat(S(n)),"Operator '".concat(t,"' cannot be applied to ").concat(F(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&&J("".concat(S(e)," ").concat(t," ").concat(S(n)),"Operator '".concat(t,"' cannot be applied to ").concat(F(e.type)," type.")),e.type===a)return"-"===t&&J("".concat(S(e)," - ").concat(S(n)),"Operator '".concat(t,"' cannot be applied to ").concat(F(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=N(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&&J("".concat(S(e)," ").concat(t," ").concat(S(n)),"Operator '".concat(t,"' cannot be applied to ").concat(F(e.type)," type.")),"*"===t)r=e.value*n.value;else{if("/"!==t&&"%"!==t)throw new Error("Unsupported operation ".concat(t));0===n.value&&J("".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=N(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=>nn(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=w(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=>F(t.type))).join(", "),r="".concat(n,"(").concat(tn(o),")");"few"===t.type&&0===o.length?J(r,"Non empty argument list is required for function '".concat(n,"'.")):(t.type,J(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){J("".concat(n,"(").concat(tn(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 nn(t,e){if(e.type in en)return en[e.type](t,e);throw new Error("Unsupported expression")}function rn(t,e){try{return nn(t,e)}catch(t){return{type:"error",value:t.message}}}const on="divkit-b023",an="divkit-bd25",ln="divkit-c016",sn="divkit-ee11",cn="divkit-aa14",un="divkit-f0cb",dn=Symbol("root");function pn(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 fn={text:"divkit-d9b0",text_halign_left:"divkit-a4cb",text_halign_center:"divkit-e165",text_halign_right:"divkit-ea28",text_valign_top:"divkit-d8ce",text_valign_center:"divkit-ef58",text_valign_bottom:"divkit-fe8e",text__inner:"divkit-b852",text_singleline:"divkit-ef11",text_truncate_none:"divkit-c6ea",text_multiline:"divkit-ee8e",text__inner_gradient:"divkit-cb8e",text__image:"divkit-bf6e",text__image_hidden:"divkit-f100"},hn={outer:"divkit-d65a","outer_hide-on-transition-in":"divkit-a6d1","outer_halign-self_start":"divkit-cc45","outer_halign-self_center":"divkit-b833","outer_halign-self_end":"divkit-c573","outer_halign-self_stretch":"divkit-dcc7","outer_valign-self_start":"divkit-e807","outer_valign-self_center":"divkit-d40a","outer_valign-self_end":"divkit-e9f8","outer_valign-self_stretch":"divkit-b7aa","outer_parent-flex_vertical":"divkit-c143","outer_parent-flex_horizontal":"divkit-ef30",outer_width_content:"divkit-b8f4",outer_height_content:"divkit-faa6","outer_width-constrained":"divkit-d321","outer_height-constrained":"divkit-a525","outer_parent-overlap":"divkit-dab2","outer_parent-overlap-absolute":"divkit-d43f","outer_scroll-snap_center":"divkit-d9e3","outer_scroll-snap_start":"divkit-efd1",outer__border:"divkit-d405",outer_visibility_invisible:"divkit-f018",outer_visibility_gone:"divkit-e784","outer_has-action-animation":"divkit-f498"};function gn(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 mn(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 vn(t){let e=mn(t);return"0"===e&&(e+="em"),e}function $n(t){let e=String(t);return e.indexOf("&")>-1&&(e=e.replace(/&/g,"&")),e.indexOf("<")>-1&&(e=e.replace(/</g,"<")),e.indexOf(">")>-1&&(e=e.replace(/>/g,">")),e.indexOf('"')>-1&&(e=e.replace(/"/g,""")),e}const yn=Boolean;function _n(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(yn);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:wn(t.bg.scale),pos:kn(t.bg),image:'url("'+$n(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(yn);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=vn(r.value):"relative"===r.type&&(o=bn[r.value]));const i=xn(t.bg.center_x),a=xn(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(yn).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 bn={nearest_corner:"closest-corner",farthest_corner:"farthest-corner",nearest_side:"closest-side",farthest_side:"farthest-side"};function xn(t){if(t&&"object"==typeof t&&"type"in t&&void 0!==t.value){if("fixed"===t.type)return vn(t.value);if("relative"===t.type)return"".concat(100*Number(t.value),"%")}return"50%"}function wn(t){return"fill"!==t&&t?"fit"===t?"contain":void 0:"cover"}function kn(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 En(t){const e=/^([^/]+):\/\//.exec(t);return e&&e[1]||""}const Cn=new Set(["http","https","tel","mailto","intent"]);function An(t){return Cn.has(t)}function Vn(t,e){e&&t.push(e)}function jn(t,e,n){const r=[];Vn(r,e[t]);for(const o in n)if(n.hasOwnProperty(o)){const i=n[o];i&&Vn(r,e["".concat(t,"_").concat(o)+("string"==typeof i?"_".concat(i):"")])}return r.join(" ")}const Dn=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})}}},Pn=Symbol("state");function Sn(t){if("number"!=typeof t&&"string"!=typeof t)return!1;const e=Number(t);return!isNaN(e)}function Fn(t){return Sn(t)&&t>=0}function In(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]&&!Fn(o[t]))return r;return function(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=>mn((t||e)/n*10))).join(" ")}(t,e,n)}function Nn(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]&&!Fn(n[t]))return e;return function(t){return mn(t.top||0)+" "+mn(t.right||0)+" "+mn(t.bottom||0)+" "+mn(t.left||0)}(t)}function zn(t,e){const n=Number(t);return isNaN(n)||n<0?e:n}const Mn=Object.prototype.hasOwnProperty;function Jn(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(!Mn.call(e,o)||!Jn(t[o],e[o]))return!1}return!0}function On(t,e){return Jn(t,e)?e:t}function Tn(){}const Bn=Symbol("action");function Rn(t){const e=t.touches[0];return{x:e.clientX||e.pageX,y:e.clientY||e.pageY}}function Wn(t){var e;let n,r,o,i,a,l,s,c;const u=t[19].default,d=xt(u,t,t[18],null);let p=[{class:r=t[2]+(t[9]?" ".concat(t[6]?"":an," ").concat(ln):"")+" "+(null!==(e=t[1])&&void 0!==e&&e.length?un:"")},{style:t[3]},{role:o=t[9]?"button":null},{tabindex:i=t[9]?0:null},t[4]],f={};for(let t=0;t<p.length;t+=1)f=dt(f,p[t]);return{c(){n=Bt("span"),d&&d.c(),this.h()},l(t){n=Zt(t,"SPAN",{class:!0,style:!0,role:!0,tabindex:!0});var e=Kt(n);d&&d.l(e),e.forEach(Ot),this.h()},h(){Gt(n,f)},m(e,r){Jt(e,n,r),d&&d.m(n,null),l=!0,s||(c=[At(a=t[5].call(null,n)),qt(n,"click",(function(){gt(t[9]?t[10]:null)&&(t[9]?t[10]:null).apply(this,arguments)})),qt(n,"click",t[21]),qt(n,"dblclick",(function(){var e,n;gt(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)})),qt(n,"touchstart",(function(){var e,n;gt(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)})),qt(n,"touchmove",(function(){var e,n;gt(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)})),qt(n,"touchend",(function(){var e,n;gt(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)})),qt(n,"touchcancel",(function(){var e,n;gt(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)})),qt(n,"keydown",t[15])],s=!0)},p(e,a){var s;t=e,d&&d.p&&(!l||262144&a)&&Et(d,u,t,t[18],l?kt(u,t[18],a,null):Ct(t[18]),null),Gt(n,f=Te(p,[(!l||582&a&&r!==(r=t[2]+(t[9]?" ".concat(t[6]?"":an," ").concat(ln):"")+" "+(null!==(s=t[1])&&void 0!==s&&s.length?un:"")))&&{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||(Ie(d,t),l=!0)},o(t){Ne(d,t),l=!1},d(t){t&&Ot(n),d&&d.d(t),s=!1,ht(c)}}}function Ln(t){var e;let n,r,o,i,a,l;const s=t[19].default,c=xt(s,t,t[18],null);let u=[{href:t[7]},{target:t[8]},{style:t[3]},{class:r=t[2]+" "+(t[6]?"":an)+" "+(null!==(e=t[1])&&void 0!==e&&e.length?un:"")},t[4]],d={};for(let t=0;t<u.length;t+=1)d=dt(d,u[t]);return{c(){n=Bt("a"),c&&c.c(),this.h()},l(t){n=Zt(t,"A",{href:!0,target:!0,style:!0,class:!0});var e=Kt(n);c&&c.l(e),e.forEach(Ot),this.h()},h(){Gt(n,d)},m(e,r){Jt(e,n,r),c&&c.m(n,null),i=!0,a||(l=[At(o=t[5].call(null,n)),qt(n,"click",t[10]),qt(n,"click",t[20]),qt(n,"dblclick",(function(){var e,n;gt(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)})),qt(n,"touchstart",(function(){var e,n;gt(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)})),qt(n,"touchmove",(function(){var e,n;gt(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)})),qt(n,"touchend",(function(){var e,n;gt(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)})),qt(n,"touchcancel",(function(){var e,n;gt(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)})),qt(n,"keydown",t[15])],a=!0)},p(e,o){var a;t=e,c&&c.p&&(!i||262144&o)&&Et(c,s,t,t[18],i?kt(s,t[18],o,null):Ct(t[18]),null),Gt(n,d=Te(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]?"":an)+" "+(null!==(a=t[1])&&void 0!==a&&a.length?un:"")))&&{class:r},16&o&&t[4]]))},i(t){i||(Ie(c,t),i=!0)},o(t){Ne(c,t),i=!1},d(t){t&&Ot(n),c&&c.d(t),a=!1,ht(l)}}}function Un(t){let e,n,r,o;const i=[Ln,Wn],a=[];function l(t,e){return t[7]?0:1}return e=l(t),n=a[e]=i[e](t),{c(){n.c(),r=Ut()},l(t){n.l(t),r=Ut()},m(t,n){a[e].m(t,n),Jt(t,r,n),o=!0},p(t,o){let[s]=o,c=e;e=l(t),e===c?a[e].p(t,s):(Se(),Ne(a[c],1,1,(()=>{a[c]=null})),Fe(),n=a[e],n?n.p(t,s):(n=a[e]=i[e](t),n.c()),Ie(n,1),n.m(r.parentNode,r))},i(t){o||(Ie(n),o=!0)},o(t){Ne(n),o=!1},d(t){a[e].d(t),t&&Ot(r)}}}function qn(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=Tn}=e,{customAction:p=null}=e,{hasActionAnimation:f=!1}=e;const h=fe(dn),g=fe(Bn);pe(Bn,{hasAction:()=>Boolean(g.hasAction()||(null==i?void 0:i.length))});let m,v="",$=-1,y=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="",h.logError(pn(new Error("Actionable element is forbidden inside other actionable element"),{level:"warn",additional:{actions:i}})));let b=Boolean(p);async function x(t,e){if(t){for(let n=0;n<t.length;++n){let r=t[n];const o=r.url;if(o){const t=En(o);if(t)if(An(t)){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?(h.execAction(r),await xe()):r.log_id&&(h.execCustomAction(r),await xe())}}t.forEach((t=>{h.logStat("click",t)}))}}return v&&!An(En(v))&&(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,p=t.customAction),"hasActionAnimation"in t&&n(6,f=t.hasActionAnimation),"$$scope"in t&&n(18,o=t.$$scope)},[a,l,s,c,u,d,f,v,m,b,async function(t){g.hasAction()||void 0!==t.button&&0!==t.button||(!1===(null==p?void 0:p(t))?t.preventDefault():i&&(i.some((t=>{const e=null==t?void 0:t.url;if(!e)return!1;const n=En(e);return n&&!An(n)}))&&t.preventDefault(),x(i)))},function(t){g.hasAction()||void 0!==t.button&&0!==t.button||x(a,!0)},function(t){t.touches.length>1||(y=Rn(t),_=!1,$=Date.now())},function(t){if(!y)return;const e=Rn(t);(Math.abs(y.x-e.x)>8||Math.abs(y.y-e.y)>8)&&(_=!0)},function(){!y||$<0||(!_&&Date.now()-$>=400&&x(l,!0),y=null,$=-1)},function(t){t.ctrlKey||t.metaKey||t.altKey||t.shiftKey||"Enter"===t.key&&(x(i),t.preventDefault())},i,p,o,r,function(e){he.call(this,t,e)},function(e){he.call(this,t,e)}]}const Hn=class extends He{constructor(t){super(),qe(this,t,qn,Un,$t,{actions:16,doubleTapActions:0,longTapActions:1,cls:2,style:3,attrs:4,use:5,customAction:17,hasActionAnimation:6})}},Gn="divkit-b921";function Kn(t,e,n){const r=t.slice();return r[3]=e[n],r}function Xn(t){let e,n,r;return{c(){e=Bt("span"),this.h()},l(t){e=Zt(t,"SPAN",{class:!0,style:!0}),Kt(e).forEach(Ot),this.h()},h(){Ht(e,"class",n=Gn),Ht(e,"style",r=gn(t[3].style))},m(t,n){Jt(t,e,n)},p:ct,d(t){t&&Ot(e)}}}function Yn(t){let e,n,r,o,i,a;return{c(){e=Bt("img"),this.h()},l(t){e=Zt(t,"IMG",{src:!0,alt:!0,"aria-hidden":!0,loading:!0,decoding:!0,class:!0,style:!0}),this.h()},h(){vt(e.src,n=t[3].image_url)||Ht(e,"src",n),Ht(e,"alt",""),Ht(e,"aria-hidden","true"),Ht(e,"loading","lazy"),Ht(e,"decoding","async"),Ht(e,"class",r=Gn),Ht(e,"style",o=gn(t[3].style))},m(n,r){Jt(n,e,r),i||(a=qt(e,"error",t[1]),i=!0)},p:ct,d(t){t&&Ot(e),i=!1,a()}}}function Zn(t){let e,n=function(t,e){return t[3].image_url?Yn:Xn}(t),r=n(t);return{c(){r.c(),e=Ut()},l(t){r.l(t),e=Ut()},m(t,n){r.m(t,n),Jt(t,e,n)},p(t,e){r.p(t,e)},d(t){r.d(t),t&&Ot(e)}}}function Qn(t){let e,n,r=t[0],o=[];for(let e=0;e<r.length;e+=1)o[e]=Zn(Kn(t,r,e));return{c(){e=Bt("span");for(let t=0;t<o.length;t+=1)o[t].c();this.h()},l(t){e=Zt(t,"SPAN",{class:!0});var n=Kt(e);for(let t=0;t<o.length;t+=1)o[t].l(n);n.forEach(Ot),this.h()},h(){Ht(e,"class",n="divkit-bf25")},m(t,n){Jt(t,e,n);for(let t=0;t<o.length;t+=1)o[t].m(e,null)},p(t,n){let[i]=n;if(3&i){let n;for(r=t[0],n=0;n<r.length;n+=1){const a=Kn(t,r,n);o[n]?o[n].p(a,i):(o[n]=Zn(a),o[n].c(),o[n].m(e,null))}for(;n<o.length;n+=1)o[n].d(1);o.length=r.length}},i:ct,o:ct,d(t){t&&Ot(e),Tt(o,t)}}}function tr(t,e,n){let{background:r=[]}=e;const o=r.map((t=>{const e={},n=_n([t]),r={style:e};return"solid"===t.type&&(e["background-color"]=n.color),"gradient"===t.type&&(e["background-image"]=n.image),"image"===t.type&&(e.opacity=Number(t.alpha),r.image_url=t.image_url,e["object-fit"]=n.size,e["object-position"]=n.position),r}));return t.$$set=t=>{"background"in t&&n(2,r=t.background)},[o,function(t){t.target&&"classList"in t.target&&t.target.classList.add("divkit-cd61")},r]}const er=class extends He{constructor(t){super(),qe(this,t,tr,Qn,$t,{background:2})}};function nr(t,e){return"linear"===t||"ease"===t||"ease_in_out"===t||"ease_in"===t||"ease_out"===t?t:e}function rr(t,e){const n=Number(t);return isNaN(n)?e:n}function or(t){let e,n;return e=new Hn({props:{use:t[31],cls:t[0]+" "+jn("outer",hn,t[14]),style:gn(t[12]),actions:t[9],doubleTapActions:t[10],longTapActions:t[11],attrs:t[5],hasActionAnimation:Boolean(t[3]),$$slots:{default:[lr]},$$scope:{ctx:t}}}),{c(){Re(e.$$.fragment)},l(t){We(e.$$.fragment,t)},m(t,r){Le(e,t,r),n=!0},p(t,n){const r={};16385&n[0]&&(r.cls=t[0]+" "+jn("outer",hn,t[14])),4096&n[0]&&(r.style=gn(t[12])),512&n[0]&&(r.actions=t[9]),1024&n[0]&&(r.doubleTapActions=t[10]),2048&n[0]&&(r.longTapActions=t[11]),32&n[0]&&(r.attrs=t[5]),8&n[0]&&(r.hasActionAnimation=Boolean(t[3])),86&n[0]|2048&n[3]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ie(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function ir(t){let e,n;return e=new er({props:{background:t[4]}}),{c(){Re(e.$$.fragment)},l(t){We(e.$$.fragment,t)},m(t,r){Le(e,t,r),n=!0},p(t,n){const r={};16&n[0]&&(r.background=t[4]),e.$set(r)},i(t){n||(Ie(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function ar(t){let e,n,r;return{c(){e=Bt("span"),this.h()},l(t){e=Zt(t,"SPAN",{class:!0,style:!0}),Kt(e).forEach(Ot),this.h()},h(){Ht(e,"class",n=hn.outer__border),Ht(e,"style",r=gn(t[1]))},m(t,n){Jt(t,e,n)},p(t,n){2&n[0]&&r!==(r=gn(t[1]))&&Ht(e,"style",r)},d(t){t&&Ot(e)}}}function lr(t){let e,n,r,o=t[2]&&ir(t);const i=t[103].default,a=xt(i,t,t[104],null);let l=t[6]&&ar(t);return{c(){o&&o.c(),e=Ut(),a&&a.c(),l&&l.c(),n=Ut()},l(t){o&&o.l(t),e=Ut(),a&&a.l(t),l&&l.l(t),n=Ut()},m(t,i){o&&o.m(t,i),Jt(t,e,i),a&&a.m(t,i),l&&l.m(t,i),Jt(t,n,i),r=!0},p(t,s){t[2]?o?(o.p(t,s),4&s[0]&&Ie(o,1)):(o=ir(t),o.c(),Ie(o,1),o.m(e.parentNode,e)):o&&(Se(),Ne(o,1,1,(()=>{o=null})),Fe()),a&&a.p&&(!r||2048&s[3])&&Et(a,i,t,t[104],r?kt(i,t[104],s,null):Ct(t[104]),null),t[6]?l?l.p(t,s):(l=ar(t),l.c(),l.m(n.parentNode,n)):l&&(l.d(1),l=null)},i(t){r||(Ie(o),Ie(a,t),r=!0)},o(t){Ne(o),Ne(a,t),r=!1},d(t){o&&o.d(t),t&&Ot(e),a&&a.d(t),l&&l.d(t),t&&Ot(n)}}}function sr(t){let e,n,r=!t[7]&&!t[8]&&or(t);return{c(){r&&r.c(),e=Ut()},l(t){r&&r.l(t),e=Ut()},m(t,o){r&&r.m(t,o),Jt(t,e,o),n=!0},p(t,n){t[7]||t[8]?r&&(Se(),Ne(r,1,1,(()=>{r=null})),Fe()):r?(r.p(t,n),384&n[0]&&Ie(r,1)):(r=or(t),r.c(),Ie(r,1),r.m(e.parentNode,e))},i(t){n||(Ie(r),n=!0)},o(t){Ne(r),n=!1},d(t){r&&r.d(t),t&&Ot(e)}}}function cr(t,e,n){let r,o,i,a,l,s,c,u,d,p,f,h,g,m,v,$,y,_,b,x,w,k,E,A,V,j,D,P,S,F,I,N,z,M,J,O,T,B,R,W,L=ct,U=ct,q=ct,H=ct,G=ct,K=ct,X=ct,Y=ct,Z=ct,Q=ct,tt=ct,et=ct,nt=ct,rt=ct,ot=ct,it=ct,at=ct;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())),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()));let{$$slots:lt={},$$scope:st}=e;var ut,dt,pt,ft,ht,gt;let{json:mt={}}=e,{origJson:vt}=e,{templateContext:$t}=e,{cls:yt=""}=e,{style:bt}=e,{layoutParams:xt={}}=e,{customDescription:wt=!1}=e,{customPaddings:kt=!1}=e,{customActions:Et=""}=e,{forceWidth:Ct=!1}=e,{forceHeight:At=!1}=e;const Vt={left:"start",center:"center",right:"end"},jt={top:"start",center:"center",bottom:"end"},Dt=fe(dn),Pt=fe(Pn);let St,Ft,It,Nt,zt,Mt,Jt,Ot={},Tt={},Bt=!1,Rt=1,Wt="transparent",Lt=0,Ut="",qt="",Ht="",Gt={},Kt=0,Xt=0,Yt=0,Zt=!1,Qt=!1,te={},ee=0,ne=0,re=0,oe=!1,ie=!1,ae=1;const le=xt.fakeElement?[]:mt.transition_triggers||["state_change","visibility_change"],se=-1!==le.indexOf("state_change")&&mt.id,ce=-1!==le.indexOf("visibility_change")&&mt.id;let ue,de,pe,he,ge,me,ve,$e=[],ye=[],_e=[],be="";function we(t){var e;const r=rr(t.start_value,1),o=rr(t.end_value,1),i=zn(t.start_delay,0),a=zn(t.duration,300),l=nr(t.interpolator,"ease_in_out").replace(/_/g,"-");switch(t.name){case"fade":return n(73,he=r),n(74,ge=o),"opacity ".concat(a,"ms ").concat(l," ").concat(i,"ms");case"scale":return n(75,me=r),n(76,ve=o),"transform ".concat(a,"ms ").concat(l," ").concat(i,"ms");case"set":return(null===(e=t.items)||void 0===e?void 0:e.length)?t.items.map(we).join(", "):(Dt.logError(pn(new Error("Empty items value for action_animation with name='set'"))),"");default:return Dt.logError(pn(new Error("Unknown action_animation name"),{additional:{animation:t.name}})),""}}let ke,Ee,Ce=!1,Ae="visible",Ve=0,je=0;return t.$$set=t=>{"json"in t&&n(32,mt=t.json),"origJson"in t&&n(33,vt=t.origJson),"templateContext"in t&&n(34,$t=t.templateContext),"cls"in t&&n(0,yt=t.cls),"style"in t&&n(35,bt=t.style),"layoutParams"in t&&n(36,xt=t.layoutParams),"customDescription"in t&&n(37,wt=t.customDescription),"customPaddings"in t&&n(38,kt=t.customPaddings),"customActions"in t&&n(39,Et=t.customActions),"forceWidth"in t&&n(40,Ct=t.forceWidth),"forceHeight"in t&&n(41,At=t.forceHeight),"$$scope"in t&&n(104,st=t.$$scope)},t.$$.update=()=>{if(2&t.$$.dirty[1]&&(n(30,r=Dt.getDerivedFromVars(mt.border)),at(),at=_t(r,(t=>n(102,W=t)))),2&t.$$.dirty[0]|4192256&t.$$.dirty[1]|512&t.$$.dirty[3]){let t={},e={},r=!1;if(W){if(W.has_shadow){const e=W.shadow;t["box-shadow"]=e?mn((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)+" "+mn((null===n(45,ft=null===n(44,pt=e.offset)||void 0===pt?void 0:pt.y)||void 0===ft?void 0:ft.value)||0)+" "+mn(null!==n(46,ht=e.blur)&&void 0!==ht?ht:2)+" "+C(e.color||"#000000",null!==n(47,gt=e.alpha)&&void 0!==gt?gt:.19):"0 1px 2px 0 rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.07)"}W.stroke&&(r=!0,n(49,Rt=zn(W.stroke.width,Rt)),n(50,Wt=C(W.stroke.color,1,Wt)),e.border="".concat(mn(Rt)," solid ").concat(Wt)),W.corners_radius?(n(52,Ut=In(W.corners_radius,0,10,Ut)),e["border-radius"]=t["border-radius"]=Ut):W.corner_radius&&(n(51,Lt=zn(W.corner_radius,Lt)),e["border-radius"]=t["border-radius"]=mn(Lt))}n(48,Ot=On(t,Ot)),n(1,Tt=On(e,Tt)),n(6,Bt=r)}if(2&t.$$.dirty[1]&&(n(29,o=Dt.getDerivedFromVars(mt.paddings)),it(),it=_t(o,(t=>n(101,R=t)))),4194432&t.$$.dirty[1]|256&t.$$.dirty[3]&&n(53,qt=Nn(R&&!kt?R:void 0,qt)),2&t.$$.dirty[1]&&(n(28,i=Dt.getDerivedFromVars(mt.margins)),rt(),rt=_t(i,(t=>n(99,T=t)))),8388608&t.$$.dirty[1]|64&t.$$.dirty[3]&&n(54,Ht=Nn(T,Ht)),2&t.$$.dirty[1]&&(n(27,a=Dt.getDerivedFromVars(mt.width)),et(),et=_t(a,(t=>n(97,J=t)))),2&t.$$.dirty[1]&&(n(26,l=Dt.getDerivedFromVars(mt.alignment_horizontal)),ot(),ot=_t(l,(t=>n(100,B=t)))),83886624&t.$$.dirty[1]|208&t.$$.dirty[3]){let t,e,r={},o=0,i=0,a=!1,l=!1;const s=null==J?void 0:J.type;if("fixed"===s?(n(57,Kt=zn(null==J?void 0:J.value,Kt)),e=mn(Kt)):"wrap_content"===s||!xt.overlapParent&&"match_parent"===s&&xt.parentHorizontalWrapContent?(t="content",("wrap_content"===s&&(null==J?void 0:J.constrained)||"match_parent"===s&&xt.parentHorizontalWrapContent)&&(r["width-constrained"]=!0,i=1),"match_parent"===s&&Dt.logError(pn(new Error("Cannot place child with match_parent size inside wrap_content"),{level:"warn"}))):(t="parent","vertical"===xt.parentContainerOrientation&&xt.parentContainerWrap&&(l=!0,Dt.logError(pn(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),"vertical"===xt.parentLayoutOrientation?e="calc(100% - ".concat(vn(((null==T?void 0:T.left)||0)+((null==T?void 0:T.right)||0)),")"):"horizontal"===xt.parentContainerOrientation&&(o=J&&"weight"in J&&J.weight||1,xt.parentContainerWrap&&(a=!0))),"content"===t&&Ct&&(t="parent",Dt.logError(pn(new Error("Incorrect usage of width with value 'wrap_content'"),{level:"warn"}))),"parent"===t)r["halign-self"]="stretch";else{const t=B;r["halign-self"]="left"===t||"center"===t||"right"===t?Vt[t]:xt.parentHAlign||"start"}t&&(r.width=t),n(56,It=e),n(58,Xt=o),n(59,Yt=i),n(55,Gt=On(r,Gt)),n(60,Zt=a),n(7,Qt=l)}if(2&t.$$.dirty[1]&&(n(25,s=Dt.getDerivedFromVars(mt.height)),tt(),tt=_t(s,(t=>n(96,M=t)))),2&t.$$.dirty[1]&&(n(24,c=Dt.getDerivedFromVars(mt.alignment_vertical)),nt(),nt=_t(c,(t=>n(98,O=t)))),1073742880&t.$$.dirty[1]|2&t.$$.dirty[2]|104&t.$$.dirty[3]){let t,e,r={},o=0,i=0,a=!1,l=!1;const s=null==M?void 0:M.type;if("fixed"===s?(n(63,ee=zn(null==M?void 0:M.value,ee)),e=mn(ee)):"match_parent"!==s||!xt.overlapParent&&xt.parentVerticalWrapContent?(t="content",("wrap_content"===s&&(null==M?void 0:M.constrained)||"match_parent"===s&&xt.parentVerticalWrapContent)&&(r["height-constrained"]=!0,i=1),"match_parent"===s&&Dt.logError(pn(new Error("Cannot place child with match_parent size inside wrap_content"),{level:"warn"}))):(t="parent","horizontal"===xt.parentContainerOrientation&&xt.parentContainerWrap&&(l=!0,Dt.logError(pn(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),"horizontal"===xt.parentLayoutOrientation?e="calc(100% - ".concat(vn(((null==T?void 0:T.top)||0)+((null==T?void 0:T.bottom)||0)),")"):"vertical"===xt.parentContainerOrientation&&(o=(null==M?void 0:M.weight)||1,xt.parentContainerWrap&&(a=!0))),"content"===t&&At&&(t="parent",Dt.logError(pn(new Error("Incorrect usage of height with value 'wrap_content'"),{level:"warn"}))),"parent"===t)r["valign-self"]="stretch";else{const t=O;r["valign-self"]="top"===t||"center"===t||"bottom"===t?jt[t]:xt.parentVAlign||"start"}t&&(r.height=t),n(62,Nt=e),n(64,ne=o),n(65,re=i),n(61,te=On(r,te)),n(66,oe=a),n(8,ie=l)}var e,lt;if(32&t.$$.dirty[1]&&n(86,u=!!xt.overlapParent||void 0),32&t.$$.dirty[1]|24&t.$$.dirty[3]&&n(85,d=xt.overlapParent&&(!J||"match_parent"===J.type)&&"match_parent"===(null==M?void 0:M.type)),32&t.$$.dirty[1]&&n(84,p=xt.gridArea?"".concat(xt.gridArea.y+1,"/").concat(xt.gridArea.x+1,"/span ").concat(xt.gridArea.rowSpan,"/span ").concat(xt.gridArea.colSpan):void 0),2&t.$$.dirty[1]&&(n(23,f=Dt.getDerivedFromVars(mt.alpha)),Q(),Q=_t(f,(t=>n(95,z=t)))),32&t.$$.dirty[2]|4&t.$$.dirty[3]&&(n(67,(lt=ae,ae=!Fn(e=z)||void 0===e||e>1?lt:Number(e))),n(68,zt=1===ae?void 0:ae)),2&t.$$.dirty[1]&&(n(22,h=Dt.getDerivedFromVars(mt.accessibility)),Z(),Z=_t(h,(t=>n(94,N=t)))),64&t.$$.dirty[1]|2&t.$$.dirty[3]&&(n(5,Ft=void 0),N&&!wt&&N.description&&(n(5,Ft={}),n(5,Ft["aria-label"]=N.description,Ft))),2&t.$$.dirty[1]&&(n(21,g=Dt.getDerivedFromVars(mt.background)),Y(),Y=_t(g,(t=>n(4,I=t)))),20&t.$$.dirty[0]&&(n(69,Mt={}),n(2,Jt=!1),I&&(n(2,Jt=I.some((t=>"image"===t.type))),!Jt))){const t=_n(I);n(69,Mt["background-color"]=t.color,Mt),n(69,Mt["background-image"]=t.image,Mt),n(69,Mt["background-size"]=t.size,Mt),n(69,Mt["background-position"]=t.position,Mt),n(69,Mt["background-repeat"]="no-repeat",Mt)}if(2&t.$$.dirty[1]&&(n(70,ue=void 0),se&&mt.transition_in&&Dt.isRunning("stateChange")&&n(70,ue=!0)),2&t.$$.dirty[1]&&(n(72,pe=void 0),se&&mt.transition_change&&Dt.isRunning("stateChange")&&Pt.hasTransitionChange(mt.id)&&n(72,pe=!0)),2&t.$$.dirty[1]&&(n(20,m=Dt.getDerivedFromVars(mt.action)),K(),K=_t(m,(t=>n(92,S=t)))),2&t.$$.dirty[1]&&(n(19,v=Dt.getDerivedFromVars(mt.actions)),X(),X=_t(v,(t=>n(93,F=t)))),2&t.$$.dirty[1]&&(n(18,$=Dt.getDerivedFromVars(mt.doubletap_actions)),G(),G=_t($,(t=>n(91,P=t)))),2&t.$$.dirty[1]&&(n(17,y=Dt.getDerivedFromVars(mt.longtap_actions)),H(),H=_t(y,(t=>n(90,D=t)))),288&t.$$.dirty[1]|1879048192&t.$$.dirty[2]|1&t.$$.dirty[3]){let t=F||S&&[S]||[],e=P||[],r=D||[];xt.fakeElement?(t=[],e=[],r=[]):(Array.isArray(t)||(t=[],Dt.logError(pn(new Error("Actions should be array")))),Array.isArray(e)||(e=[],Dt.logError(pn(new Error("DoubleTapActions should be array")))),Array.isArray(r)||(r=[],Dt.logError(pn(new Error("LongTapActions should be array"))))),(t.length||e.length||r.length)&&Et&&(t=[],e=[],r=[],Dt.logError(pn(new Error('Cannot use action on component "'.concat(Et,'"'))))),n(9,$e=t),n(10,ye=e),n(11,_e=r)}if(2&t.$$.dirty[1]&&(n(16,_=Dt.getDerivedFromVars(mt.action_animation)),q(),q=_t(_,(t=>n(89,j=t)))),134217728&t.$$.dirty[2]&&j&&n(3,be=we(j)),2&t.$$.dirty[1]&&(n(15,b=Dt.getDerivedFromVars(mt.visibility)),U(),U=_t(b,(t=>n(88,V=t)))),67207168&t.$$.dirty[2]){const t=Ae,e=function(t,e){return"visible"===t||"invisible"===t||"gone"===t?t:e}(V,Ae);t!==e&&(!Ce||"visible"!==Ae&&"visible"!==e?n(78,Ae=e):async function(t){n(78,Ae=t);const e="visible"===t?"in":"out",r="in"===e?mt.transition_in:mt.transition_out;ce&&r&&(await xe(),"in"===e&&n(71,de=!0),Pt.runVisibilityTransition(Object.assign(Object.assign({},mt),{visibility:"visible"}),$t,r,St,e).then((()=>{"in"===e&&n(71,de=!1)})).catch((t=>{throw"in"===e&&n(71,de=!1),t})))}(e)),Ce||n(77,Ce=!0)}if(8&t.$$.dirty[0]|1090519072&t.$$.dirty[1]|25233152&t.$$.dirty[2]&&n(14,x=Object.assign(Object.assign(Object.assign({},Gt),te),{"parent-overlap":u,"parent-overlap-absolute":d,"scroll-snap":xt.scrollSnap,"hide-on-transition-in":ue||de||pe,visibility:Ae,"has-action-animation":Boolean(be),"parent-flex":xt.parentContainerOrientation||void 0})),2&t.$$.dirty[1]&&(n(13,w=Dt.getDerivedFromVars(mt.transform)),L(),L=_t(w,(t=>n(87,A=t)))),33947648&t.$$.dirty[2]&&A&&void 0!==A.rotation){const t=A.pivot_x||{type:"pivot-percentage",value:50};n(79,Ve=rr(t.value,Ve));const e="pivot-fixed"===t.type?mn(Ve):"".concat(Ve,"%"),r=A.pivot_y||{type:"pivot-percentage",value:50};n(80,je=rr(r.value,je));const o="pivot-fixed"===r.type?mn(je):"".concat(je,"%");n(81,ke="".concat(e," ").concat(o)),n(82,Ee="rotate(".concat(A.rotation,"deg)"))}671088640&t.$$.dirty[1]|20&t.$$.dirty[2]&&n(83,k=Zt||oe?"100%":Xt||ne?0:void 0),8&t.$$.dirty[0]|448921616&t.$$.dirty[1]|7895245&t.$$.dirty[2]&&n(12,E=Object.assign(Object.assign(Object.assign(Object.assign({},bt),Mt),Ot),{width:It,height:Nt,"grid-area":p,padding:qt,margin:Ht,opacity:zt,transition:be,"transform-origin":ke,transform:Ee,"flex-grow":Xt||ne||void 0,"flex-shrink":Yt||re?1:void 0,"flex-basis":k,"--divkit-animation-opacity-start":he,"--divkit-animation-opacity-end":ge,"--divkit-animation-scale-start":me,"--divkit-animation-scale-end":ve}))},[yt,Tt,Jt,be,I,Ft,Bt,Qt,ie,$e,ye,_e,E,w,x,b,_,y,$,v,m,g,h,f,c,s,l,a,i,o,r,function(t){St=t,se&&mt.transition_in&&Pt.registerChildWithTransitionIn(mt,$t,mt.transition_in,t).then((()=>{n(70,ue=!1)})).catch((t=>{throw n(70,ue=!1),t})),se&&mt.transition_out&&Pt.registerChildWithTransitionOut(mt,$t,mt.transition_out,t),se&&mt.transition_change&&Pt.registerChildWithTransitionChange(mt,$t,mt.transition_change,t).then((()=>{n(72,pe=!1)})).catch((t=>{throw n(72,pe=!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=En(n);t&&!An(t)&&("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:xt.fakeElement?[]:Dt.getJsonWithVars(mt.visibility_actions||mt.visibility_action&&[mt.visibility_action]),rootCtx:Dt});const e=mt.id;e&&Pt.registerChild(e);let r=null;return Dn&&!xt.fakeElement&&(r=Dn(t,{json:mt,origJson:vt,rootCtx:Dt,templateContext:$t})),{destroy(){e&&Pt.unregisterChild(e),r&&r.destroy()}}},mt,vt,$t,bt,xt,wt,kt,Et,Ct,At,ut,dt,pt,ft,ht,gt,Ot,Rt,Wt,Lt,Ut,qt,Ht,Gt,It,Kt,Xt,Yt,Zt,te,Nt,ee,ne,re,oe,ae,zt,Mt,ue,de,pe,he,ge,me,ve,Ce,Ae,Ve,je,ke,Ee,k,p,d,u,A,V,j,D,P,S,F,N,z,M,J,O,T,B,R,W,lt,st]}const ur=class extends He{constructor(t){super(),qe(this,t,cr,sr,$t,{json:32,origJson:33,templateContext:34,cls:0,style:35,layoutParams:36,customDescription:37,customPaddings:38,customActions:39,forceWidth:40,forceHeight:41},null,[-1,-1,-1,-1])}},dr={"text-range":"divkit-faf0","text-range_singleline":"divkit-ccb6","text-range__top-offset":"divkit-d923","text-range_decoration_both":"divkit-d7e0","text-range_decoration_underline":"divkit-f3dd","text-range_decoration_strike":"divkit-d27b","text-range_decoration_none":"divkit-c6b0"};function pr(t,e){const n=Number(t);return isNaN(n)||n<=0?e:n}function fr(t){return Sn(t)&&t>0}function hr(t){if("light"===t||"medium"===t||"bold"===t||"regular"===t)return"medium"===t?500:"bold"===t?700:"light"===t?300:400}function gr(t,e){return hr(t)||e}function mr(t){let e,n;return{c(){e=Bt("span"),this.h()},l(t){e=Zt(t,"SPAN",{class:!0}),Kt(e).forEach(Ot),this.h()},h(){Ht(e,"class",n=dr["text-range__top-offset"]),re(e,"margin-top",t[4],!1)},m(t,n){Jt(t,e,n)},p(t,n){16&n&&re(e,"margin-top",t[4],!1)},d(t){t&&Ot(e)}}}function vr(t){let e;return{c(){e=Wt(t[0])},l(n){e=te(n,t[0])},m(t,n){Jt(t,e,n)},p(t,n){1&n&&ne(e,t[0])},d(t){t&&Ot(e)}}}function $r(t){let e,n,r,o=t[4]&&mr(t);return n=new Hn({props:{cls:jn("text-range",dr,t[3]),actions:t[1],style:gn(t[2]),$$slots:{default:[vr]},$$scope:{ctx:t}}}),{c(){o&&o.c(),e=Ut(),Re(n.$$.fragment)},l(t){o&&o.l(t),e=Ut(),We(n.$$.fragment,t)},m(t,i){o&&o.m(t,i),Jt(t,e,i),Le(n,t,i),r=!0},p(t,r){let[i]=r;t[4]?o?o.p(t,i):(o=mr(t),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null);const a={};8&i&&(a.cls=jn("text-range",dr,t[3])),2&i&&(a.actions=t[1]),4&i&&(a.style=gn(t[2])),16385&i&&(a.$$scope={dirty:i,ctx:t}),n.$set(a)},i(t){r||(Ie(n.$$.fragment,t),r=!0)},o(t){Ne(n.$$.fragment,t),r=!1},d(t){o&&o.d(t),t&&Ot(e),Ue(n,t)}}}function yr(t,e,n){let r,o,i,a,{text:l}=e,{rootFontSize:s}=e,{textStyles:c={}}=e,{singleline:u=!1}=e,{actions:d}=e,p="none",f=12,h=1.25,g="",m="";return t.$$set=t=>{"text"in t&&n(0,l=t.text),"rootFontSize"in t&&n(5,s=t.rootFontSize),"textStyles"in t&&n(6,c=t.textStyles),"singleline"in t&&n(7,u=t.singleline),"actions"in t&&n(1,d=t.actions)},t.$$.update=()=>{if(64&t.$$.dirty){let t="none";(c.underline||c.strike)&&("single"===c.underline&&"single"===c.strike?t="both":"single"===c.underline?t="underline":"single"===c.strike&&(t="strike")),n(8,p=t)}576&t.$$.dirty&&n(9,f=pr(c.font_size,f)),576&t.$$.dirty&&fr(c.line_height)&&n(10,h=Number(c.line_height)/f),64&t.$$.dirty&&Fn(c.letter_spacing)&&n(11,g=mn(c.letter_spacing)),4160&t.$$.dirty&&n(12,a=gr(c.font_weight,a)),8256&t.$$.dirty&&n(13,m=C(c.text_color,1,m)),64&t.$$.dirty&&n(4,r=c.top_offset?mn(c.top_offset):""),384&t.$$.dirty&&n(3,o={singleline:u,decoration:p}),15904&t.$$.dirty&&n(2,i={"font-size":mn(10*f/s),"line-height":h,"letter-spacing":g,"font-weight":a,color:m})},[l,d,i,o,r,s,c,u,p,f,h,g,a,m]}const _r=class extends He{constructor(t){super(),qe(this,t,yr,$r,$t,{text:0,rootFontSize:5,textStyles:6,singleline:7,actions:1})}};function br(t,e){return"left"===t||"center"===t||"right"===t?t:e}function xr(t,e){return"top"===t||"center"===t||"bottom"===t?t:e}const{Boolean:wr}=Je;function kr(t,e,n){const r=t.slice();return r[55]=e[n],r[57]=n,r}function Er(t){let e,n;return e=new ur({props:{cls:jn("text",fn,t[13])+" "+(t[6]?"":ln),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Sr]},$$scope:{ctx:t}}}),{c(){Re(e.$$.fragment)},l(t){We(e.$$.fragment,t)},m(t,r){Le(e,t,r),n=!0},p(t,n){const r={};8256&n[0]&&(r.cls=jn("text",fn,t[13])+" "+(t[6]?"":ln)),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||(Ie(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function Cr(t){let e,n;return e=new _r({props:{text:t[4],rootFontSize:t[5],textStyles:t[27],singleline:t[7]}}),{c(){Re(e.$$.fragment)},l(t){We(e.$$.fragment,t)},m(t,r){Le(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||(Ie(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function Ar(t){let e,n,r=t[10],o=[];for(let e=0;e<r.length;e+=1)o[e]=Pr(kr(t,r,e));const i=t=>Ne(o[t],1,1,(()=>{o[t]=null}));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=Ut()},l(t){for(let e=0;e<o.length;e+=1)o[e].l(t);e=Ut()},m(t,r){for(let e=0;e<o.length;e+=1)o[e].m(t,r);Jt(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=kr(t,r,a);o[a]?(o[a].p(i,n),Ie(o[a],1)):(o[a]=Pr(i),o[a].c(),Ie(o[a],1),o[a].m(e.parentNode,e))}for(Se(),a=r.length;a<o.length;a+=1)i(a);Fe()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Ie(o[t]);n=!0}},o(t){o=o.filter(wr);for(let t=0;t<o.length;t+=1)Ne(o[t]);n=!1},d(t){Tt(o,t),t&&Ot(e)}}}function Vr(t){let e,n,r,o,i,a,l,s;return{c(){e=Bt("span"),n=Bt("img"),this.h()},l(t){e=Zt(t,"SPAN",{style:!0});var r=Kt(e);n=Zt(r,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,"aria-hidden":!0,alt:!0,style:!0}),r.forEach(Ot),this.h()},h(){Ht(n,"class",r=fn.text__image),vt(n.src,o=t[55].image.url)||Ht(n,"src",o),Ht(n,"loading","lazy"),Ht(n,"decoding","async"),Ht(n,"aria-hidden","true"),Ht(n,"alt",""),Ht(n,"style",i=gn({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})),Ht(e,"style",a=gn(t[55].image.wrapperStyle))},m(r,o){Jt(r,e,o),Mt(e,n),l||(s=qt(n,"error",t[28]),l=!0)},p(t,r){1024&r[0]&&!vt(n.src,o=t[55].image.url)&&Ht(n,"src",o),1536&r[0]&&i!==(i=gn({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}))&&Ht(n,"style",i),1024&r[0]&&a!==(a=gn(t[55].image.wrapperStyle))&&Ht(e,"style",a)},i:ct,o:ct,d(t){t&&Ot(e),l=!1,s()}}}function jr(t){let e,n,r=t[55].text&&Dr(t);return{c(){r&&r.c(),e=Ut()},l(t){r&&r.l(t),e=Ut()},m(t,o){r&&r.m(t,o),Jt(t,e,o),n=!0},p(t,n){t[55].text?r?(r.p(t,n),1024&n[0]&&Ie(r,1)):(r=Dr(t),r.c(),Ie(r,1),r.m(e.parentNode,e)):r&&(Se(),Ne(r,1,1,(()=>{r=null})),Fe())},i(t){n||(Ie(r),n=!0)},o(t){Ne(r),n=!1},d(t){r&&r.d(t),t&&Ot(e)}}}function Dr(t){let e,n;return e=new _r({props:{text:t[55].text,rootFontSize:t[5],textStyles:t[55].textStyles,singleline:t[7],actions:t[55].actions}}),{c(){Re(e.$$.fragment)},l(t){We(e.$$.fragment,t)},m(t,r){Le(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||(Ie(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function Pr(t){let e,n,r,o;const i=[jr,Vr],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=Ut()},l(t){n&&n.l(t),r=Ut()},m(t,n){~e&&a[e].m(t,n),Jt(t,r,n),o=!0},p(t,o){let s=e;e=l(t),e===s?~e&&a[e].p(t,o):(n&&(Se(),Ne(a[s],1,1,(()=>{a[s]=null})),Fe()),~e?(n=a[e],n?n.p(t,o):(n=a[e]=i[e](t),n.c()),Ie(n,1),n.m(r.parentNode,r)):n=null)},i(t){o||(Ie(n),o=!0)},o(t){Ne(n),o=!1},d(t){~e&&a[e].d(t),t&&Ot(r)}}}function Sr(t){let e,n,r,o,i,a;const l=[Ar,Cr],s=[];function c(t,e){return t[10].length?0:1}return n=c(t),r=s[n]=l[n](t),{c(){e=Bt("span"),r.c(),this.h()},l(t){e=Zt(t,"SPAN",{class:!0,style:!0});var n=Kt(e);r.l(n),n.forEach(Ot),this.h()},h(){Ht(e,"class",o=jn("text__inner",fn,t[12])),Ht(e,"style",i=gn(t[11]))},m(t,r){Jt(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):(Se(),Ne(s[d],1,1,(()=>{s[d]=null})),Fe(),r=s[n],r?r.p(t,u):(r=s[n]=l[n](t),r.c()),Ie(r,1),r.m(e,null)),(!a||4096&u[0]&&o!==(o=jn("text__inner",fn,t[12])))&&Ht(e,"class",o),(!a||2048&u[0]&&i!==(i=gn(t[11])))&&Ht(e,"style",i)},i(t){a||(Ie(r),a=!0)},o(t){Ne(r),a=!1},d(t){t&&Ot(e),s[n].d()}}}function Fr(t){let e,n,r=!t[8]&&Er(t);return{c(){r&&r.c(),e=Ut()},l(t){r&&r.l(t),e=Ut()},m(t,o){r&&r.m(t,o),Jt(t,e,o),n=!0},p(t,n){t[8]?r&&(Se(),Ne(r,1,1,(()=>{r=null})),Fe()):r?(r.p(t,n),256&n[0]&&Ie(r,1)):(r=Er(t),r.c(),Ie(r,1),r.m(e.parentNode,e))},i(t){n||(Ie(r),n=!0)},o(t){Ne(r),n=!1},d(t){r&&r.d(t),t&&Ot(e)}}}function Ir(t,e,n){let r,o,i,a,l,s,c,u,d,p,f,h,g,m,v,$,y,_,b,x,w,k,E,A,V,j,D,P,S,F,I,N,z,M=ct,J=ct,O=ct,T=ct,B=ct,R=ct,W=ct,L=ct,U=ct,q=ct,H=ct,G=ct,K=ct;t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>T())),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=fe(dn);let et=!1,nt="",rt=12,ot=1.25,it=!1,at="",lt="",st=!1,ut="left",dt="top",pt="",ft="",ht=!1,gt=[],mt=[];return de((()=>{mt.forEach((t=>{tt.removeSvgFilter(t)}))})),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=_t(r,(t=>n(51,z=t)))),16&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&(n(4,(e=z,Y=nt,nt=String(null!=e?e:"")||Y)),nt?n(8,et=!1):(n(8,et=!0),tt.logError(pn(new Error('Missing "text" prop for div "text"'))))),1&t.$$.dirty[0]&&(n(25,o=tt.getDerivedFromVars(X.ranges)),J(),J=_t(o,(t=>n(41,k=t)))),1&t.$$.dirty[0]&&(n(24,i=tt.getDerivedFromVars(X.images)),M(),M=_t(i,(t=>n(40,w=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})),O(),O=_t(a,(t=>n(27,E=t)))),1&t.$$.dirty[0]&&(n(22,l=tt.getDerivedFromVars(X.font_size)),G(),G=_t(l,(t=>n(50,N=t)))),32&t.$$.dirty[0]|524288&t.$$.dirty[1]&&n(5,rt=pr(N,rt)),1&t.$$.dirty[0]&&(n(21,s=tt.getDerivedFromVars(X.line_height)),H(),H=_t(s,(t=>n(49,I=t)))),32&t.$$.dirty[0]|262144&t.$$.dirty[1]){const t=I;fr(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=_t(c,(t=>n(46,P=t)))),32768&t.$$.dirty[1]&&n(7,u=1===P),536870912&t.$$.dirty[0]|34304&t.$$.dirty[1]){let t="",e="",r=!1;if(P&&P>1){let n=Number(P);t=n*ot+"em",k||w||(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=_t(d,(t=>n(48,F=t)))),131076&t.$$.dirty[1]&&n(33,ut=br(F,ut)),1&t.$$.dirty[0]&&(n(18,p=tt.getDerivedFromVars(X.text_alignment_vertical)),U(),U=_t(p,(t=>n(47,S=t)))),65544&t.$$.dirty[1]&&n(34,dt=xr(S,dt)),16&t.$$.dirty[0]|1024&t.$$.dirty[1]&&n(39,f=!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,h=tt.getDerivedFromVars(X.text_color)),W(),W=_t(h,(t=>n(45,D=t)))),17408&t.$$.dirty[1]&&n(38,g=Boolean(D)!==Boolean(k&&k[0]&&k[0].text_color)),50576&t.$$.dirty[1]){let t="";P&&f&&g&&(t=C(D||k&&k[0]&&k[0].text_color,1,pt)),n(35,pt=t)}if(1&t.$$.dirty[0]&&(n(16,m=tt.getDerivedFromVars(X.truncate)),R(),R=_t(m,(t=>n(44,j=t)))),8192&t.$$.dirty[1]&&n(37,v="none"===j?"none":""),1&t.$$.dirty[0]&&(n(15,$=tt.getDerivedFromVars(X.text_gradient)),B(),B=_t($,(t=>n(43,V=t)))),4096&t.$$.dirty[1]){let t="";if(V){const e=_n([V]);e.image&&(t=e.image)}n(36,ft=t)}1&t.$$.dirty[0]&&(n(14,y=tt.getDerivedFromVars(X.selectable)),T(),T=_t(y,(t=>n(42,A=t)))),64&t.$$.dirty[0]|2048&t.$$.dirty[1]&&n(6,ht=function(t,e){return 1===t||0===t||!1===t||!0===t?Boolean(t):e}(A,ht)),16&t.$$.dirty[0]|1536&t.$$.dirty[1]&&function(t,e,r){let o=[];if(mt.forEach((t=>{tt.removeSvgFilter(t)})),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=mn(10*(t.image.width&&t.image.width.value||20)/(e.font_size||12)),r=mn(10*(t.image.height&&t.image.height.value||20)/(e.font_size||12));const i={"font-size":mn(10*(Number(e.font_size)||12)/rt)};let a="";if(t.image.tint_color){const e=C(t.image.tint_color);a=tt.addSvgFilter(e),mt.push(e)}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,w),128&t.$$.dirty[0]|78&t.$$.dirty[1]&&n(13,_={singleline:u,multiline:st,halign:ut,valign:dt,truncate:v}),32&t.$$.dirty[1]&&n(12,b={gradient:Boolean(ft)}),1610612768&t.$$.dirty[0]|49&t.$$.dirty[1]&&n(11,x={"font-size":mn(rt),"line-height":ot,"max-height":at,"-webkit-line-clamp":lt,color:pt,"background-image":ft})},[X,Y,Z,Q,nt,rt,ht,u,et,it,gt,x,b,_,y,$,m,h,p,d,c,s,l,a,i,o,r,E,function(t){t.target&&"classList"in t.target&&t.target.classList.add(fn.text__image_hidden)},ot,at,lt,st,ut,dt,pt,ft,v,g,f,w,k,A,V,j,D,P,S,F,I,N,z]}const Nr={container:"divkit-d37d",container_wrap:"divkit-c855",container_orientation_vertical:"divkit-ddc3",container_valign_top:"divkit-a331",container_valign_center:"divkit-aae6",container_valign_bottom:"divkit-c222",container_orientation_horizontal:"divkit-fe45",container_halign_left:"divkit-a309",container_halign_center:"divkit-bac9",container_halign_right:"divkit-f423",container_orientation_overlap:"divkit-a644"};function zr(t,e,n){const r=t.slice();return r[28]=e[n],r}function Mr(t){let e,n;return e=new ur({props:{cls:jn("container",Nr,t[6]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Or]},$$scope:{ctx:t}}}),{c(){Re(e.$$.fragment)},l(t){We(e.$$.fragment,t)},m(t,r){Le(e,t,r),n=!0},p(t,n){const r={};64&n[0]&&(r.cls=jn("container",Nr,t[6])),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]),8224&n[0]|1&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ie(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function Jr(t){let e,n;return e=new oa({props:{layoutParams:t[5],div:t[28].json,templateContext:t[28].templateContext,origJson:t[28].origJson}}),{c(){Re(e.$$.fragment)},l(t){We(e.$$.fragment,t)},m(t,r){Le(e,t,r),n=!0},p(t,n){const r={};32&n[0]&&(r.layoutParams=t[5]),8192&n[0]&&(r.div=t[28].json),8192&n[0]&&(r.templateContext=t[28].templateContext),8192&n[0]&&(r.origJson=t[28].origJson),e.$set(r)},i(t){n||(Ie(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function Or(t){let e,n,r=t[13],o=[];for(let e=0;e<r.length;e+=1)o[e]=Jr(zr(t,r,e));const i=t=>Ne(o[t],1,1,(()=>{o[t]=null}));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=Ut()},l(t){for(let e=0;e<o.length;e+=1)o[e].l(t);e=Ut()},m(t,r){for(let e=0;e<o.length;e+=1)o[e].m(t,r);Jt(t,e,r),n=!0},p(t,n){if(8224&n[0]){let a;for(r=t[13],a=0;a<r.length;a+=1){const i=zr(t,r,a);o[a]?(o[a].p(i,n),Ie(o[a],1)):(o[a]=Jr(i),o[a].c(),Ie(o[a],1),o[a].m(e.parentNode,e))}for(Se(),a=r.length;a<o.length;a+=1)i(a);Fe()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Ie(o[t]);n=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)Ne(o[t]);n=!1},d(t){Tt(o,t),t&&Ot(e)}}}function Tr(t){let e,n,r=!t[4]&&Mr(t);return{c(){r&&r.c(),e=Ut()},l(t){r&&r.l(t),e=Ut()},m(t,o){r&&r.m(t,o),Jt(t,e,o),n=!0},p(t,n){t[4]?r&&(Se(),Ne(r,1,1,(()=>{r=null})),Fe()):r?(r.p(t,n),16&n[0]&&Ie(r,1)):(r=Mr(t),r.c(),Ie(r,1),r.m(e.parentNode,e))},i(t){n||(Ie(r),n=!0)},o(t){Ne(r),n=!1},d(t){r&&r.d(t),t&&Ot(e)}}}function Br(t,e,n){let r,o,i,a,l,s,c,u,d,p,f,h,g,m,v,$,y=ct,_=ct,b=ct,x=ct,w=ct,k=ct;t.$$.on_destroy.push((()=>y())),t.$$.on_destroy.push((()=>_())),t.$$.on_destroy.push((()=>b())),t.$$.on_destroy.push((()=>x())),t.$$.on_destroy.push((()=>w())),t.$$.on_destroy.push((()=>k()));let{json:E={}}=e,{templateContext:C}=e,{origJson:A}=e,{layoutParams:V}=e;const j={left:"start",center:"center",right:"end"},D={top:"start",center:"center",bottom:"end"},P=fe(dn);let S=!1,F="vertical",I="top",N="left",z={};return t.$$set=t=>{"json"in t&&n(0,E=t.json),"templateContext"in t&&n(1,C=t.templateContext),"origJson"in t&&n(2,A=t.origJson),"layoutParams"in t&&n(3,V=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&n(18,r=E.items),262144&t.$$.dirty[0]&&((null==r?void 0:r.length)&&Array.isArray(r)?n(4,S=!1):(n(4,S=!0),P.logError(pn(new Error('Incorrect or empty "items" prop for div "container"'))))),262162&t.$$.dirty[0]&&n(13,o=(!S&&r||[]).map((t=>{let e=t,n=C;return({templateContext:n,json:e}=P.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),1&t.$$.dirty[0]&&(n(12,i=P.getDerivedFromVars(E.orientation)),k(),k=_t(i,(t=>n(24,$=t)))),16793600&t.$$.dirty[0]&&n(14,F=function(t,e){return"vertical"===t||"horizontal"===t||"overlap"===t?t:e}($,F)),1&t.$$.dirty[0]&&(n(11,a=P.getDerivedFromVars(E.content_alignment_vertical)),w(),w=_t(a,(t=>n(23,v=t)))),8421376&t.$$.dirty[0]&&n(15,I=xr(v,I)),1&t.$$.dirty[0]&&(n(10,l=P.getDerivedFromVars(E.content_alignment_horizontal)),x(),x=_t(l,(t=>n(22,m=t)))),4259840&t.$$.dirty[0]&&n(16,N=br(m,N)),1&t.$$.dirty[0]&&(n(9,s=P.getDerivedFromVars(E.layout_mode)),b(),b=_t(s,(t=>n(21,g=t)))),2097152&t.$$.dirty[0]&&n(17,c="wrap"===g),1&t.$$.dirty[0]&&(n(8,u=P.getDerivedFromVars(E.width)),y(),y=_t(u,(t=>n(19,f=t)))),1&t.$$.dirty[0]&&(n(7,d=P.getDerivedFromVars(E.height)),_(),_=_t(d,(t=>n(20,h=t)))),1818664&t.$$.dirty[0]){let t={};(null==V?void 0:V.fakeElement)&&(t.fakeElement=!0),"overlap"===F&&(t.overlapParent=!0),"horizontal"!==F&&(t.parentHAlign=j[N],(!h||"wrap_content"===h.type||"match_parent"===h.type&&(null==V?void 0:V.parentVerticalWrapContent))&&(t.parentVerticalWrapContent=!0)),"vertical"!==F&&(t.parentVAlign=D[I],("wrap_content"===(null==f?void 0:f.type)||"match_parent"===(null==f?void 0:f.type)&&(null==V?void 0:V.parentHorizontalWrapContent))&&(t.parentHorizontalWrapContent=!0)),"horizontal"===F&&(t.parentContainerOrientation="horizontal"),"vertical"===F&&(t.parentContainerOrientation="vertical"),c&&(t.parentContainerWrap=!0),n(5,z=On(t,z))}245760&t.$$.dirty[0]&&n(6,p={orientation:F,valign:I,halign:N,wrap:c})},[E,C,A,V,S,z,p,d,u,s,l,a,i,o,F,I,N,c,r,f,h,g,m,v,$]}const Rr={separator:"divkit-a30b",separator_orientation_horizontal:"divkit-f529",separator_orientation_vertical:"divkit-e9e2",separator__inner:"divkit-db7d"};function Wr(t,e){return"vertical"===t||"horizontal"===t?t:e}function Lr(t){let e,n,r;return{c(){e=Bt("span"),this.h()},l(t){e=Zt(t,"SPAN",{class:!0,style:!0}),Kt(e).forEach(Ot),this.h()},h(){Ht(e,"class",n=Rr.separator__inner),Ht(e,"style",r=gn(t[5]))},m(t,n){Jt(t,e,n)},p(t,n){32&n&&r!==(r=gn(t[5]))&&Ht(e,"style",r)},d(t){t&&Ot(e)}}}function Ur(t){let e,n=t[6]&&Lr(t);return{c(){n&&n.c(),e=Ut()},l(t){n&&n.l(t),e=Ut()},m(t,r){n&&n.m(t,r),Jt(t,e,r)},p(t,r){t[6]?n?n.p(t,r):(n=Lr(t),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(t){n&&n.d(t),t&&Ot(e)}}}function qr(t){let e,n;return e=new ur({props:{cls:jn("separator",Rr,t[4]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Ur]},$$scope:{ctx:t}}}),{c(){Re(e.$$.fragment)},l(t){We(e.$$.fragment,t)},m(t,r){Le(e,t,r),n=!0},p(t,n){let[r]=n;const o={};16&r&&(o.cls=jn("separator",Rr,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||(Ie(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function Hr(t,e,n){let r,o,i,a,l,s,c,u=ct;t.$$.on_destroy.push((()=>u()));let{json:d={}}=e,{templateContext:p}=e,{origJson:f}=e,{layoutParams:h}=e;const g=fe(dn);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,p=t.templateContext),"origJson"in t&&n(2,f=t.origJson),"layoutParams"in t&&n(3,h=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty&&(n(7,r=g.getDerivedFromVars(d.delimiter_style)),u(),u=_t(r,(t=>n(12,c=t)))),4352&t.$$.dirty&&n(8,m=Wr(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%":mn(1)),256&t.$$.dirty&&n(10,a="horizontal"===m?mn(1):"100%"),3584&t.$$.dirty&&n(5,l={background:v,width:i,height:a}),256&t.$$.dirty&&n(4,s={orientation:m})},[d,p,f,h,s,l,o,r,m,v,a,i,c]}const Gr={image:"divkit-a448","image_is-width-content":"divkit-fe14","image_is-height-content":"divkit-f4d9",image__image:"divkit-ce04",image_error:"divkit-f10d","image__aspect-wrapper":"divkit-dc80",image_aspect:"divkit-ae78",image_loaded:"divkit-cf4e","divkit-image-appearance":"divkit-e555","image_before-appearance":"divkit-ffe8"};function Kr(t){let e,n;return e=new ur({props:{cls:jn("image",Gr,t[10]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],style:t[9],customDescription:!0,$$slots:{default:[Zr]},$$scope:{ctx:t}}}),{c(){Re(e.$$.fragment)},l(t){We(e.$$.fragment,t)},m(t,r){Le(e,t,r),n=!0},p(t,n){const r={};1024&n[0]&&(r.cls=jn("image",Gr,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]),17776&n[0]|8388608&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ie(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function Xr(t){let e,n,r,o,i,a,l;return{c(){e=Bt("img"),this.h()},l(t){e=Zt(t,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,style:!0,alt:!0,"aria-hidden":!0}),this.h()},h(){Ht(e,"class",n=Gr.image__image),vt(e.src,r=t[4]===eo?to:t[6])||Ht(e,"src",r),Ht(e,"loading","lazy"),Ht(e,"decoding","async"),Ht(e,"style",o=gn(t[8])),Ht(e,"alt",t[14]),Ht(e,"aria-hidden",i=t[14]?null:"true")},m(n,r){Jt(n,e,r),a||(l=[qt(e,"load",t[24]),qt(e,"error",t[25])],a=!0)},p(t,n){80&n[0]&&!vt(e.src,r=t[4]===eo?to:t[6])&&Ht(e,"src",r),256&n[0]&&o!==(o=gn(t[8]))&&Ht(e,"style",o),16384&n[0]&&Ht(e,"alt",t[14]),16384&n[0]&&i!==(i=t[14]?null:"true")&&Ht(e,"aria-hidden",i)},d(t){t&&Ot(e),a=!1,ht(l)}}}function Yr(t){let e,n,r,o,i,a,l,s,c,u="".concat(t[5],"%");return{c(){e=Bt("span"),n=Bt("img"),this.h()},l(t){e=Zt(t,"SPAN",{class:!0});var r=Kt(e);n=Zt(r,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,style:!0,alt:!0,"aria-hidden":!0}),r.forEach(Ot),this.h()},h(){Ht(n,"class",r=Gr.image__image),vt(n.src,o=t[4]===eo?to:t[6])||Ht(n,"src",o),Ht(n,"loading","lazy"),Ht(n,"decoding","async"),Ht(n,"style",i=gn(t[8])),Ht(n,"alt",t[14]),Ht(n,"aria-hidden",a=t[14]?null:"true"),Ht(e,"class",l=Gr["image__aspect-wrapper"]),re(e,"padding-bottom",u,!1)},m(r,o){Jt(r,e,o),Mt(e,n),s||(c=[qt(n,"load",t[24]),qt(n,"error",t[25])],s=!0)},p(t,r){80&r[0]&&!vt(n.src,o=t[4]===eo?to:t[6])&&Ht(n,"src",o),256&r[0]&&i!==(i=gn(t[8]))&&Ht(n,"style",i),16384&r[0]&&Ht(n,"alt",t[14]),16384&r[0]&&a!==(a=t[14]?null:"true")&&Ht(n,"aria-hidden",a),32&r[0]&&u!==(u="".concat(t[5],"%"))&&re(e,"padding-bottom",u,!1)},d(t){t&&Ot(e),s=!1,ht(c)}}}function Zr(t){let e;function n(t,e){return t[10].aspect?Yr:Xr}let r=n(t),o=r(t);return{c(){o.c(),e=Ut()},l(t){o.l(t),e=Ut()},m(t,n){o.m(t,n),Jt(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&&Ot(e)}}}function Qr(t){let e,n,r=!t[7]&&Kr(t);return{c(){r&&r.c(),e=Ut()},l(t){r&&r.l(t),e=Ut()},m(t,o){r&&r.m(t,o),Jt(t,e,o),n=!0},p(t,n){t[7]?r&&(Se(),Ne(r,1,1,(()=>{r=null})),Fe()):r?(r.p(t,n),128&n[0]&&Ie(r,1)):(r=Kr(t),r.c(),Ie(r,1),r.m(e.parentNode,e))},i(t){n||(Ie(r),n=!0)},o(t){Ne(r),n=!1},d(t){r&&r.d(t),t&&Ot(e)}}}const to="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",eo=2;function no(t,e,n){let r,o,i,a,l,s,c,u,d,p,f,h,g,m,v,$,y,_,b,x,w,k,E,A,V,j,D,P,S,F,I,N=ct,z=ct,M=ct,J=ct,O=ct,T=ct,B=ct,R=ct,W=ct,L=ct,U=ct,q=ct;t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>T())),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()));let{json:H={}}=e,{templateContext:G}=e,{origJson:K}=e,{layoutParams:X}=e;const Y=fe(dn);let Z=0,Q="rgba(0,0,0,0.08)",tt=!1,et="",nt="none",rt="50% 50%";let ot,it="0",at="",lt="",st=0,ut=0,dt=0;return de((()=>{Y.removeSvgFilter(ot)})),t.$$set=t=>{"json"in t&&n(0,H=t.json),"templateContext"in t&&n(1,G=t.templateContext),"origJson"in t&&n(2,K=t.origJson),"layoutParams"in t&&n(3,X=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&(n(23,r=Y.getDerivedFromVars(H.image_url)),q(),q=_t(r,(t=>n(49,I=t)))),1&t.$$.dirty[0]&&(n(22,o=Y.getDerivedFromVars(H.gif_url)),U(),U=_t(o,(t=>n(48,F=t)))),393216&t.$$.dirty[1]&&n(6,i=I||F),64&t.$$.dirty[0]&&n(4,Z=0),64&t.$$.dirty[0]&&(i?n(7,tt=!1):(n(7,tt=!0),Y.logError(pn(new Error('Missing "image_url" for "image"'))))),1&t.$$.dirty[0]&&(n(21,a=Y.getDerivedFromVars(H.width)),L(),L=_t(a,(t=>n(47,S=t)))),65536&t.$$.dirty[1]&&n(37,l="wrap_content"===(null==S?void 0:S.type)),1&t.$$.dirty[0]&&(n(20,s=Y.getDerivedFromVars(H.height)),W(),W=_t(s,(t=>n(46,P=t)))),32768&t.$$.dirty[1]&&n(36,c="wrap_content"===(null==P?void 0:P.type)),1&t.$$.dirty[0]&&(n(19,u=Y.getDerivedFromVars(H.preview)),R(),R=_t(u,(t=>n(45,D=t)))),16&t.$$.dirty[0]|16384&t.$$.dirty[1]){const t=D;0!==Z&&Z!==eo||!t?n(27,et=""):t.startsWith("data:")?n(27,et='url("'.concat($n(t),'")')):n(27,et='url("data:image/jpg;base64,'.concat($n(t),'")'))}if(1&t.$$.dirty[0]&&(n(18,d=Y.getDerivedFromVars(H.placeholder_color)),B(),B=_t(d,(t=>n(44,j=t)))),16&t.$$.dirty[0]|8192&t.$$.dirty[1]&&function(t,e){n(26,Q=0===t||t===eo?C(e,1,Q):"")}(Z,j),1&t.$$.dirty[0]&&(n(17,p=Y.getDerivedFromVars(H.scale)),T(),T=_t(p,(t=>n(43,V=t)))),268435456&t.$$.dirty[0]|4096&t.$$.dirty[1]&&n(28,nt=wn(V)||nt),1&t.$$.dirty[0]&&(n(16,f=Y.getDerivedFromVars({content_alignment_horizontal:H.content_alignment_horizontal,content_alignment_vertical:H.content_alignment_vertical})),O(),O=_t(f,(t=>n(42,A=t)))),2048&t.$$.dirty[1]&&n(29,rt=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:kn(t)}(A,rt)),1&t.$$.dirty[0]&&(n(15,h=Y.getDerivedFromVars(H.accessibility)),J(),J=_t(h,(t=>n(41,E=t)))),1024&t.$$.dirty[1]&&n(14,g=(null==E?void 0:E.description)||""),1&t.$$.dirty[0]&&(n(13,m=Y.getDerivedFromVars(H.aspect)),M(),M=_t(m,(t=>n(40,k=t)))),512&t.$$.dirty[1]){const t=null==k?void 0:k.ratio;t&&fr(t)?n(5,it=(100/Number(t)).toFixed(2)):n(5,it="0")}if(1&t.$$.dirty[0]&&(n(12,v=Y.getDerivedFromVars(H.tint_color)),z(),z=_t(v,(t=>n(39,w=t)))),1073741824&t.$$.dirty[0]|256&t.$$.dirty[1]){const t=w,e=t?C(t):void 0;e!==ot&&(Y.removeSvgFilter(ot),n(31,at=e?Y.addSvgFilter(e):""),n(30,ot=e))}if(1&t.$$.dirty[0]&&(n(11,$=Y.getDerivedFromVars(H.appearance_animation)),N(),N=_t($,(t=>n(38,x=t)))),128&t.$$.dirty[1]&&x&&"fade"===x.type){const t=x;n(32,lt=nr(t.interpolator,"ease_in_out").replace(/_/g,"-")),n(35,dt=zn(t.duration,300)),n(34,ut=zn(t.start_delay,0)),n(33,st=zn(t.alpha,0))}48&t.$$.dirty[0]|98&t.$$.dirty[1]&&n(10,y={aspect:"0"!==it,"is-width-content":l,"is-height-content":c,loaded:1===Z,"before-appearance":Boolean(lt)&&0===Z}),201326592&t.$$.dirty[0]&&n(9,_={"background-image":et,"background-color":Q}),805306384&t.$$.dirty[0]|31&t.$$.dirty[1]&&n(8,b={"object-fit":nt,"object-position":rt,filter:1===Z&&at?"url(#".concat(at,")"):"","--divkit-appearance-interpolator":lt||void 0,"--divkit-appearance-fade-start":lt?st:void 0,"--divkit-appearance-delay":lt?"".concat(ut,"ms"):void 0,"--divkit-appearance-duration":lt?"".concat(dt,"ms"):void 0})},[H,G,K,X,Z,it,i,tt,b,_,y,$,v,m,g,h,f,p,d,u,s,a,o,r,function(){0===Z&&n(4,Z=1)},function(){0===Z&&n(4,Z=eo)},Q,et,nt,rt,ot,at,lt,st,ut,dt,c,l,x,w,k,E,A,V,j,D,P,S,F,I]}const ro=class extends He{constructor(t){super(),qe(this,t,no,Qr,$t,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},oo={grid:"divkit-d908",grid_halign_left:"divkit-f63b",grid_halign_center:"divkit-a14a",grid_halign_right:"divkit-b071",grid_valign_top:"divkit-fbca",grid_valign_center:"divkit-d431",grid_valign_bottom:"divkit-e420"};function io(t){return t>0&&t<1}function ao(t){return String(Math.ceil(1e3*t)/1e3)}function lo(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(mn(r*t[e]/o),",").concat(ao(t[e]),"fr)"):t[e]?i[e]="".concat(ao(t[e]),"fr"):i[e]="auto";return i.join(" ")}function so(t,e,n){const r=t.slice();return r[29]=e[n],r}function co(t){let e,n;return e=new ur({props:{cls:jn("grid",oo,t[8]),json:t[0],origJson:t[2],templateContext:t[1],style:t[7],layoutParams:t[3],$$slots:{default:[po]},$$scope:{ctx:t}}}),{c(){Re(e.$$.fragment)},l(t){We(e.$$.fragment,t)},m(t,r){Le(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.cls=jn("grid",oo,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||(Ie(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function uo(t){let e,n;return e=new oa({props:{layoutParams:t[29].layoutParams,div:t[29].json,templateContext:t[29].templateContext,origJson:t[29].origJson}}),{c(){Re(e.$$.fragment)},l(t){We(e.$$.fragment,t)},m(t,r){Le(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||(Ie(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function po(t){let e,n,r=t[5],o=[];for(let e=0;e<r.length;e+=1)o[e]=uo(so(t,r,e));const i=t=>Ne(o[t],1,1,(()=>{o[t]=null}));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=Ut()},l(t){for(let e=0;e<o.length;e+=1)o[e].l(t);e=Ut()},m(t,r){for(let e=0;e<o.length;e+=1)o[e].m(t,r);Jt(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=so(t,r,a);o[a]?(o[a].p(i,n),Ie(o[a],1)):(o[a]=uo(i),o[a].c(),Ie(o[a],1),o[a].m(e.parentNode,e))}for(Se(),a=r.length;a<o.length;a+=1)i(a);Fe()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Ie(o[t]);n=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)Ne(o[t]);n=!1},d(t){Tt(o,t),t&&Ot(e)}}}function fo(t){let e,n,r=!t[6]&&co(t);return{c(){r&&r.c(),e=Ut()},l(t){r&&r.l(t),e=Ut()},m(t,o){r&&r.m(t,o),Jt(t,e,o),n=!0},p(t,n){t[6]?r&&(Se(),Ne(r,1,1,(()=>{r=null})),Fe()):r?(r.p(t,n),64&n[0]&&Ie(r,1)):(r=co(t),r.c(),Ie(r,1),r.m(e.parentNode,e))},i(t){n||(Ie(r),n=!0)},o(t){Ne(r),n=!1},d(t){r&&r.d(t),t&&Ot(e)}}}function ho(t,e,n){let r,o,i,a,l,s,c,u,d,p,f,h,g=ct,m=ct,v=ct,$=ct;t.$$.on_destroy.push((()=>g())),t.$$.on_destroy.push((()=>m())),t.$$.on_destroy.push((()=>v())),t.$$.on_destroy.push((()=>$()));let{json:y={}}=e,{templateContext:_}=e,{origJson:b}=e,{layoutParams:x}=e;const w=fe(dn);let k,E,C=!1,A=1,V=[],j=[],D=[],P=[],S=0,F=!1,I="top",N="left";return t.$$set=t=>{"json"in t&&n(0,y=t.json),"templateContext"in t&&n(1,_=t.templateContext),"origJson"in t&&n(2,b=t.origJson),"layoutParams"in t&&n(3,x=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&n(23,r=y.items),8388608&t.$$.dirty[0]&&((null==r?void 0:r.length)&&Array.isArray(r)?n(12,C=!1):(n(12,C=!0),w.logError(pn(new Error('Incorrect or empty "items" prop for div "grid"'))))),1&t.$$.dirty[0]&&(n(11,o=w.getDerivedFromVars(y.column_count)),$(),$=_t(o,(t=>n(27,h=t)))),134225920&t.$$.dirty[0]&&n(13,A=pr(h,A)),8392706&t.$$.dirty[0]&&n(22,i=(!C&&r||[]).map((t=>{let e=t,n=_;return({templateContext:n,json:e}=w.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),4194304&t.$$.dirty[0]){let t=[];i.forEach((e=>{t.push(w.getDerivedFromVars({rowSpan:e.json.row_span,columnSpan:e.json.column_span,width:e.json.width,height:e.json.height}))})),n(4,k=Xe(t,(t=>[...t]))),v(),v=_t(k,(t=>n(26,f=t)))}if(72081416&t.$$.dirty[0]){const t={};let e=0,r=0;n(14,V=[]),n(15,j=[]),n(16,D=[]),n(17,P=[]),n(19,F=!1),n(5,E=i.map(((o,i)=>{var a,l,s,c;const u=f[i],d=Number(u.columnSpan)||1,p=Number(u.rowSpan)||1,h={x:e,y:r,colSpan:d,rowSpan:p},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)/p: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,$=1===p&&"fixed"===(null===(c=u.height)||void 0===c?void 0:c.type)&&u.height.value?Number(u.height.value)/p:0;for(let o=e;o<e+d;++o)for(let e=r;e<r+p;++e)t[o+"_"+e]?n(19,F=!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),(!D[o]||D[o]<v)&&n(16,D[o]=v,D),(!P[e]||P[e]<$)&&n(17,P[e]=$,P));do{++e,e>=A&&(e=0,++r)}while(t[e+"_"+r]);return Object.assign(Object.assign({},o),{layoutParams:{gridArea:h,fakeElement:(null==x?void 0:x.fakeElement)||!1}})}))),0!==e&&n(19,F=!0),F&&w.logError(pn(new Error('Mismatching "grid" rows/columns'))),n(18,S=r)}1&t.$$.dirty[0]&&(n(10,a=w.getDerivedFromVars(y.content_alignment_vertical)),m(),m=_t(a,(t=>n(25,p=t)))),34603008&t.$$.dirty[0]&&n(20,I=xr(p,I)),1&t.$$.dirty[0]&&(n(9,l=w.getDerivedFromVars(y.content_alignment_horizontal)),g(),g=_t(l,(t=>n(24,d=t)))),18874368&t.$$.dirty[0]&&n(21,N=br(d,N)),3145728&t.$$.dirty[0]&&n(8,s={valign:I,halign:N}),516096&t.$$.dirty[0]&&n(7,c={"grid-template-columns":lo(V,D,A),"grid-template-rows":lo(j,P,S)}),528384&t.$$.dirty[0]&&n(6,u=C||F)},[y,_,b,x,k,E,u,c,s,l,a,o,C,A,V,j,D,P,S,F,I,N,i,r,d,p,f,h]}const go={gallery:"divkit-cbb0",gallery_orientation_horizontal:"divkit-c9be",gallery_orientation_vertical:"divkit-a72d",gallery__scroller:"divkit-a4e3","gallery_scroll-snap":"divkit-f606","gallery__items-grid":"divkit-eb4a",gallery__items:"divkit-af27",gallery__arrow:"divkit-b72d","gallery__arrow-icon":"divkit-d100",gallery__arrow_left:"divkit-a0a5",gallery__arrow_right:"divkit-f0f5","gallery__arrow-icon-path":"divkit-b417"};function mo(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 vo(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:$o}=Je;function yo(t,e,n){const r=t.slice();return r[70]=e[n],r[71]=e,r[72]=n,r}function _o(t,e,n){const r=t.slice();return r[73]=e[n],r}function bo(t){let e,n;return e=new ur({props:{cls:jn("gallery",go,t[16]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customPaddings:!0,customActions:"gallery",forceHeight:"vertical"===t[6],forceWidth:"horizontal"===t[6],$$slots:{default:[Ao]},$$scope:{ctx:t}}}),{c(){Re(e.$$.fragment)},l(t){We(e.$$.fragment,t)},m(t,r){Le(e,t,r),n=!0},p(t,n){const r={};65536&n[0]&&(r.cls=jn("gallery",go,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]),64&n[0]&&(r.forceHeight="vertical"===t[6]),64&n[0]&&(r.forceWidth="horizontal"===t[6]),335953872&n[0]|16384&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ie(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function xo(t){let e,n;return e=new oa({props:{layoutParams:t[8],div:t[73].json,templateContext:t[73].templateContext,origJson:t[73].origJson}}),{c(){Re(e.$$.fragment)},l(t){We(e.$$.fragment,t)},m(t,r){Le(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.layoutParams=t[8]),67108864&n[0]&&(r.div=t[73].json),67108864&n[0]&&(r.templateContext=t[73].templateContext),67108864&n[0]&&(r.origJson=t[73].origJson),e.$set(r)},i(t){n||(Ie(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function wo(t){let e,n,r,o,i,a=t[72],l=t[70],s=[];for(let e=0;e<l.length;e+=1)s[e]=xo(_o(t,l,e));const c=t=>Ne(s[t],1,1,(()=>{s[t]=null})),u=()=>t[58](e,a),d=()=>t[58](null,a);return{c(){e=Bt("div");for(let t=0;t<s.length;t+=1)s[t].c();n=Lt(),this.h()},l(t){e=Zt(t,"DIV",{class:!0,style:!0});var r=Kt(e);for(let t=0;t<s.length;t+=1)s[t].l(r);n=ee(r),r.forEach(Ot),this.h()},h(){Ht(e,"class",r=go.gallery__items),Ht(e,"style",o=gn(t[17]))},m(t,r){Jt(t,e,r);for(let t=0;t<s.length;t+=1)s[t].m(e,null);Mt(e,n),u(),i=!0},p(r,p){if(t=r,67109120&p[0]){let r;for(l=t[70],r=0;r<l.length;r+=1){const o=_o(t,l,r);s[r]?(s[r].p(o,p),Ie(s[r],1)):(s[r]=xo(o),s[r].c(),Ie(s[r],1),s[r].m(e,n))}for(Se(),r=l.length;r<s.length;r+=1)c(r);Fe()}(!i||131072&p[0]&&o!==(o=gn(t[17])))&&Ht(e,"style",o),a!==t[72]&&(d(),a=t[72],u())},i(t){if(!i){for(let t=0;t<l.length;t+=1)Ie(s[t]);i=!0}},o(t){s=s.filter($o);for(let t=0;t<s.length;t+=1)Ne(s[t]);i=!1},d(t){t&&Ot(e),Tt(s,t),d()}}}function ko(t){let e,n,r=t[12]&&t[9]&&Eo(t),o=t[13]&&t[9]&&Co(t);return{c(){r&&r.c(),e=Lt(),o&&o.c(),n=Ut()},l(t){r&&r.l(t),e=ee(t),o&&o.l(t),n=Ut()},m(t,i){r&&r.m(t,i),Jt(t,e,i),o&&o.m(t,i),Jt(t,n,i)},p(t,i){t[12]&&t[9]?r?r.p(t,i):(r=Eo(t),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),t[13]&&t[9]?o?o.p(t,i):(o=Co(t),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},d(t){r&&r.d(t),t&&Ot(e),o&&o.d(t),t&&Ot(n)}}}function Eo(t){let e,n,r,o,i,a,l,s;return{c(){e=Bt("div"),n=Rt("svg"),r=Rt("path"),this.h()},l(t){e=Zt(t,"DIV",{class:!0});var o=Kt(e);n=Qt(o,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var i=Kt(n);r=Qt(i,"path",{class:!0,d:!0}),Kt(r).forEach(Ot),i.forEach(Ot),o.forEach(Ot),this.h()},h(){Ht(r,"class",o=go["gallery__arrow-icon-path"]),Ht(r,"d","m10 16 8.3 8 1.03-1-4-6-.7-1 .7-1 4-6-1.03-1z"),Ht(n,"class",i=go["gallery__arrow-icon"]),Ht(n,"xmlns","http://www.w3.org/2000/svg"),Ht(n,"width","32"),Ht(n,"height","32"),Ht(n,"viewBox","0 0 32 32"),Ht(n,"fill","none"),Ht(e,"class",a=go.gallery__arrow+" "+go.gallery__arrow_left)},m(o,i){Jt(o,e,i),Mt(e,n),Mt(n,r),l||(s=qt(e,"click",t[61]),l=!0)},p:ct,d(t){t&&Ot(e),l=!1,s()}}}function Co(t){let e,n,r,o,i,a,l,s;return{c(){e=Bt("div"),n=Rt("svg"),r=Rt("path"),this.h()},l(t){e=Zt(t,"DIV",{class:!0});var o=Kt(e);n=Qt(o,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var i=Kt(n);r=Qt(i,"path",{class:!0,d:!0}),Kt(r).forEach(Ot),i.forEach(Ot),o.forEach(Ot),this.h()},h(){Ht(r,"class",o=go["gallery__arrow-icon-path"]),Ht(r,"d","M22 16l-8.3 8-1.03-1 4-6 .7-1-.7-1-4-6 1.03-1 8.3 8z"),Ht(n,"class",i=go["gallery__arrow-icon"]),Ht(n,"xmlns","http://www.w3.org/2000/svg"),Ht(n,"width","32"),Ht(n,"height","32"),Ht(n,"viewBox","0 0 32 32"),Ht(n,"fill","none"),Ht(e,"class",a=go.gallery__arrow+" "+go.gallery__arrow_right)},m(o,i){Jt(o,e,i),Mt(e,n),Mt(n,r),l||(s=qt(e,"click",t[62]),l=!0)},p:ct,d(t){t&&Ot(e),l=!1,s()}}}function Ao(t){let e,n,r,o,i,a,l,s,c,u,d,p=t[26],f=[];for(let e=0;e<p.length;e+=1)f[e]=wo(yo(t,p,e));const h=t=>Ne(f[t],1,1,(()=>{f[t]=null}));let g="horizontal"===t[6]&&ko(t);return{c(){e=Bt("div"),n=Bt("div");for(let t=0;t<f.length;t+=1)f[t].c();l=Lt(),g&&g.c(),s=Ut(),this.h()},l(t){e=Zt(t,"DIV",{class:!0,style:!0});var r=Kt(e);n=Zt(r,"DIV",{class:!0,style:!0});var o=Kt(n);for(let t=0;t<f.length;t+=1)f[t].l(o);o.forEach(Ot),r.forEach(Ot),l=ee(t),g&&g.l(t),s=Ut(),this.h()},h(){Ht(n,"class",r=go["gallery__items-grid"]),Ht(n,"style",o=gn(t[18])),Ht(e,"class",i=go.gallery__scroller+" "+(t[28]?cn:"")),Ht(e,"style",a=gn(t[7]))},m(r,o){Jt(r,e,o),Mt(e,n);for(let t=0;t<f.length;t+=1)f[t].m(n,null);t[59](n),t[60](e),Jt(r,l,o),g&&g.m(r,o),Jt(r,s,o),c=!0,u||(d=qt(e,"scroll",(function(){gt(t[9]?t[30]:null)&&(t[9]?t[30]:null).apply(this,arguments)})),u=!0)},p(r,l){if(t=r,67242240&l[0]){let e;for(p=t[26],e=0;e<p.length;e+=1){const r=yo(t,p,e);f[e]?(f[e].p(r,l),Ie(f[e],1)):(f[e]=wo(r),f[e].c(),Ie(f[e],1),f[e].m(n,null))}for(Se(),e=p.length;e<f.length;e+=1)h(e);Fe()}(!c||262144&l[0]&&o!==(o=gn(t[18])))&&Ht(n,"style",o),(!c||268435456&l[0]&&i!==(i=go.gallery__scroller+" "+(t[28]?cn:"")))&&Ht(e,"class",i),(!c||128&l[0]&&a!==(a=gn(t[7])))&&Ht(e,"style",a),"horizontal"===t[6]?g?g.p(t,l):(g=ko(t),g.c(),g.m(s.parentNode,s)):g&&(g.d(1),g=null)},i(t){if(!c){for(let t=0;t<p.length;t+=1)Ie(f[t]);c=!0}},o(t){f=f.filter($o);for(let t=0;t<f.length;t+=1)Ne(f[t]);c=!1},d(n){n&&Ot(e),Tt(f,n),t[59](null),t[60](null),n&&Ot(l),g&&g.d(n),n&&Ot(s),u=!1,d()}}}function Vo(t){let e,n,r,o,i=!t[5]&&bo(t);return{c(){i&&i.c(),e=Ut()},l(t){i&&i.l(t),e=Ut()},m(a,l){i&&i.m(a,l),Jt(a,e,l),n=!0,r||(o=qt(window,"resize",(function(){gt(t[9]?t[31]:null)&&(t[9]?t[31]:null).apply(this,arguments)})),r=!0)},p(n,r){(t=n)[5]?i&&(Se(),Ne(i,1,1,(()=>{i=null})),Fe()):i?(i.p(t,r),32&r[0]&&Ie(i,1)):(i=bo(t),i.c(),Ie(i,1),i.m(e.parentNode,e))},i(t){n||(Ie(i),n=!0)},o(t){Ne(i),n=!1},d(t){i&&i.d(t),t&&Ot(e),r=!1,o()}}}function jo(t,e,n){let r,o,i,a,l,s,c,u,d,p,f,h,g,m,v,$,y,_,b,x,w,k,E,C,A,V,j,D,P=ct,S=ct,F=ct,I=ct,N=ct,z=ct,M=ct,J=ct,O=ct,T=ct;t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>S())),t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>I())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>T()));let{json:B={}}=e,{templateContext:R}=e,{origJson:W}=e,{layoutParams:L}=e;const U=fe(dn);let q,H,G=[],K=!1,X=!1,Y=null,Z=!1,Q=!1;const tt=U.isDesktop;bt(t,tt,(t=>n(57,j=t)));let et,nt,rt,ot,it=1,at="horizontal",lt="start",st=8,ut="",dt=[],pt={},ft=!1,ht={},gt=0;function mt(){const t=q.scrollLeft,e=q.scrollWidth,r=q.offsetWidth;n(12,K=t>2),n(13,X=t+r<e-2)}const vt=vo(mt,50);function $t(t){q.scroll({left:q.scrollLeft+.75*q.offsetWidth*("right"===t?1:-1),behavior:"smooth"})}function yt(){let t=[],e=G[0].children.length;for(let n=0;n<e;++n)for(let e=0;e<it;++e){const r=G[e].children[n];r&&t.push(r)}return t}function xt(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";const r="horizontal"===at,o=r?"offsetLeft":"offsetTop",i=r?"left":"top";q.scroll({[i]:Math.max(0,t[e][o]-st/2),behavior:n})}function wt(t){const e=yt(),n=q.getBoundingClientRect(),r=e.findIndex((t=>function(t,e){return"horizontal"===at?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"===at?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||Q||(null==L?void 0:L.fakeElement)||U.registerInstance(B.id,{setCurrentItem(t){const e=yt();if(t<0||t>e.length-1)throw new Error('Item is out of range in "set-current-item" action');xt(e,t)},setPreviousItem(t){const e=wt("prev"),n=yt();let r=e-1;r<0&&(r="ring"===t?n.length-1:e),xt(n,r)},setNextItem(t){const e="horizontal"===at?q.scrollLeft+q.offsetWidth===q.scrollWidth:q.scrollTop+q.offsetHeight===q.scrollHeight,n=yt();if(e&&"ring"===t)return void xt(n,0);const r=wt("next");let o=r+1;o>n.length-1&&(o="ring"===t?0:r),xt(n,o)}}),ue((()=>{n(34,Z=!0),!Q&&(vt(),gt)&&xt(yt(),gt,"auto")})),de((()=>{n(34,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(47,r=B.items),65536&t.$$.dirty[1]&&((null==r?void 0:r.length)&&Array.isArray(r)?n(5,Q=!1):(n(5,Q=!0),U.logError(pn(new Error('Incorrect or empty "items" prop for div "gallery"'))))),34&t.$$.dirty[0]|65536&t.$$.dirty[1]&&n(46,o=(!Q&&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]|67108872&t.$$.dirty[1]&&n(9,i=j&&Z&&!Q),528&t.$$.dirty[0]|4&t.$$.dirty[1]&&(i?"undefined"!=typeof ResizeObserver&&(n(33,Y=new ResizeObserver((()=>{vt()}))),Y.observe(H)):Y&&(Y.disconnect(),n(33,Y=null))),1&t.$$.dirty[0]&&(n(27,a=U.getDerivedFromVars(B.column_count)),O(),O=_t(a,(t=>n(56,V=t)))),33554448&t.$$.dirty[1]&&n(35,it=pr(V,it)),32784&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,it)),1&t.$$.dirty[0]&&(n(25,s=U.getDerivedFromVars(B.orientation)),J(),J=_t(s,(t=>n(55,A=t)))),64&t.$$.dirty[0]|16777216&t.$$.dirty[1]&&n(6,at=Wr(A,at)),1&t.$$.dirty[0]&&(n(24,c=U.getDerivedFromVars(B.cross_content_alignment)),M(),M=_t(c,(t=>n(54,C=t)))),8388640&t.$$.dirty[1]&&n(36,lt=function(t,e){return"start"===t||"center"===t||"end"===t?t:e}(C,lt)),1&t.$$.dirty[0]&&(n(23,u=U.getDerivedFromVars(B.item_spacing)),z(),z=_t(u,(t=>n(53,E=t)))),4194432&t.$$.dirty[1]&&(n(38,st=zn(E,st)),n(37,et=mn(st))),1&t.$$.dirty[0]&&(n(22,d=U.getDerivedFromVars(B.cross_spacing)),N(),N=_t(d,(t=>n(52,k=t)))),2097792&t.$$.dirty[1]&&(n(40,rt=zn(k,st)),n(39,nt=mn(rt))),1&t.$$.dirty[0]&&(n(21,p=U.getDerivedFromVars(B.paddings)),I(),I=_t(p,(t=>n(51,w=t)))),1049600&t.$$.dirty[1]&&n(41,ut=Nn(w,ut)),64&t.$$.dirty[0]&&n(45,f="horizontal"===at?"grid-template-columns":"grid-template-rows"),64&t.$$.dirty[0]|32768&t.$$.dirty[1]){let t=[];o.forEach((e=>{const n="horizontal"===at?"width":"height";t.push(U.getDerivedFromVars(e.json[n]))})),n(14,ot=Xe(t,(t=>t))),F(),F=_t(ot,(t=>n(50,x=t)))}if(64&t.$$.dirty[0]|526352&t.$$.dirty[1]&&(n(42,dt=[]),it>1?dt.push("auto"):x.forEach((t=>{!t&&"horizontal"===at||"match_parent"===(null==t?void 0:t.type)?dt.push("100%"):dt.push("max-content")}))),1&t.$$.dirty[0]&&(n(20,h=U.getDerivedFromVars(B.scroll_mode)),S(),S=_t(h,(t=>n(49,b=t)))),456&t.$$.dirty[0]|262320&t.$$.dirty[1]){const t={};let e={};n(43,ft=!1),(null==L?void 0:L.fakeElement)&&(e.fakeElement=!0),"horizontal"===at?e.parentVAlign=lt:e.parentHAlign=lt,"paging"===b&&(n(43,ft=!0),e.scrollSnap="start",t["horizontal"===at?"scroll-padding-left":"scroll-padding-top"]=mn(st/2)),1===it&&(e.parentLayoutOrientation=at),n(7,pt=On(t,pt)),n(8,ht=On(e,ht))}1&t.$$.dirty[0]&&(n(19,g=U.getDerivedFromVars(B.restrict_parent_scroll)),T(),T=_t(g,(t=>n(28,D=t)))),1280&t.$$.dirty[1]&&n(18,m={padding:ut,"grid-gap":nt}),18496&t.$$.dirty[1]&&n(17,v={"grid-gap":et,[f]:mo(dt)}),64&t.$$.dirty[0]|4096&t.$$.dirty[1]&&n(16,$={orientation:at,"scroll-snap":ft}),1&t.$$.dirty[0]&&(n(15,y=U.getDerivedFromVars(B.default_item)),P(),P=_t(y,(t=>n(48,_=t)))),139264&t.$$.dirty[1]&&n(44,gt=zn(_,gt))},[B,R,W,L,H,Q,at,pt,ht,i,q,G,K,X,ot,y,$,v,m,g,h,p,d,u,c,s,l,a,D,tt,mt,vt,$t,Y,Z,it,lt,et,st,nt,rt,ut,dt,ft,gt,f,o,r,_,b,x,w,k,E,C,A,V,j,function(t,e){me[t?"unshift":"push"]((()=>{G[e]=t,n(11,G)}))},function(t){me[t?"unshift":"push"]((()=>{H=t,n(4,H)}))},function(t){me[t?"unshift":"push"]((()=>{q=t,n(10,q)}))},()=>$t("left"),()=>$t("right")]}const Do={tabs:"divkit-e0df",tabs__list:"divkit-ea19",tabs__item:"divkit-c25c",tabs__item_selected:"divkit-d560",tabs__item_actionable:"divkit-dfda",tabs__panels:"divkit-f5dc",tabs__swiper:"divkit-eb42",tabs__swiper_animated:"divkit-b9f1",tabs__swiper_inited:"divkit-fa57",tabs__panel:"divkit-cc9f",tabs__panel_visible:"divkit-e730",tabs__separator:"divkit-b85b"},{Boolean:Po}=Je;function So(t,e,n){const r=t.slice();return r[79]=e[n],r[81]=n,r}function Fo(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 Io(t){let e,n;return e=new ur({props:{cls:jn("tabs",Do,t[39]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customActions:"tabs",$$slots:{default:[To]},$$scope:{ctx:t}}}),{c(){Re(e.$$.fragment)},l(t){We(e.$$.fragment,t)},m(t,r){Le(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||(Ie(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function No(t){let e,n,r=t[79].title+"";return{c(){e=Wt(r),n=Lt()},l(t){e=te(t,r),n=ee(t)},m(t,r){Jt(t,e,r),Jt(t,n,r)},p(t,n){65536&n[0]&&r!==(r=t[79].title+"")&&ne(e,r)},d(t){t&&Ot(e),t&&Ot(n)}}}function zo(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 Hn({props:{cls:jn("tabs__item",Do,{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:[No]},$$scope:{ctx:t}}}),{c(){Re(o.$$.fragment)},l(t){We(o.$$.fragment,t)},m(t,e){Le(o,t,e),i=!0},p(e,n){var r,i,l;t=e;const s={};65600&n[0]&&(s.cls=jn("tabs__item",Do,{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||(Ie(o.$$.fragment,t),i=!0)},o(t){Ne(o.$$.fragment,t),i=!1},d(t){Ue(o,t)}}}function Mo(t){let e,n,r;return{c(){e=Bt("div"),this.h()},l(t){e=Zt(t,"DIV",{class:!0,style:!0}),Kt(e).forEach(Ot),this.h()},h(){Ht(e,"class",n=Do.tabs__separator),Ht(e,"style",r=gn(t[30]))},m(t,n){Jt(t,e,n)},p(t,n){1073741824&n[0]&&r!==(r=gn(t[30]))&&Ht(e,"style",r)},d(t){t&&Ot(e)}}}function Jo(t){let e,n;return e=new oa({props:{div:t[79].div,templateContext:t[1],layoutParams:t[5]}}),{c(){Re(e.$$.fragment)},l(t){We(e.$$.fragment,t)},m(t,r){Le(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||(Ie(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function Oo(t){let e,n,r,o,i,a,l=t[25][t[81]]&&Jo(t);return{c(){e=Bt("div"),l&&l.c(),n=Lt(),this.h()},l(t){e=Zt(t,"DIV",{class:!0,role:!0,id:!0,"aria-labelledby":!0,style:!0});var r=Kt(e);l&&l.l(r),n=ee(r),r.forEach(Ot),this.h()},h(){Ht(e,"class",r=jn("tabs__panel",Do,{visible:t[26][t[81]]})),Ht(e,"role","tabpanel"),Ht(e,"id",o=t[38]+"-panel-"+t[81]),Ht(e,"aria-labelledby",i=t[38]+"-tab-"+t[81]),re(e,"left",100*t[81]+"%")},m(t,r){Jt(t,e,r),l&&l.m(e,null),Mt(e,n),a=!0},p(t,o){t[25][t[81]]?l?(l.p(t,o),33554432&o[0]&&Ie(l,1)):(l=Jo(t),l.c(),Ie(l,1),l.m(e,n)):l&&(Se(),Ne(l,1,1,(()=>{l=null})),Fe()),(!a||67108864&o[0]&&r!==(r=jn("tabs__panel",Do,{visible:t[26][t[81]]})))&&Ht(e,"class",r)},i(t){a||(Ie(l),a=!0)},o(t){Ne(l),a=!1},d(t){t&&Ot(e),l&&l.d()}}}function To(t){let e,n,r,o,i,a,l,s,c,u,d,p=t[16],f=[];for(let e=0;e<p.length;e+=1)f[e]=zo(Fo(t,p,e));const h=t=>Ne(f[t],1,1,(()=>{f[t]=null}));let g=t[17]&&Mo(t),m=t[16],v=[];for(let e=0;e<m.length;e+=1)v[e]=Oo(So(t,m,e));const $=t=>Ne(v[t],1,1,(()=>{v[t]=null}));return{c(){e=Bt("div");for(let t=0;t<f.length;t+=1)f[t].c();r=Lt(),g&&g.c(),o=Lt(),i=Bt("div"),a=Bt("div");for(let t=0;t<v.length;t+=1)v[t].c();this.h()},l(t){e=Zt(t,"DIV",{class:!0,role:!0});var n=Kt(e);for(let t=0;t<f.length;t+=1)f[t].l(n);n.forEach(Ot),r=ee(t),g&&g.l(t),o=ee(t),i=Zt(t,"DIV",{class:!0});var l=Kt(i);a=Zt(l,"DIV",{class:!0});var s=Kt(a);for(let t=0;t<v.length;t+=1)v[t].l(s);s.forEach(Ot),l.forEach(Ot),this.h()},h(){Ht(e,"class",n=Do.tabs__list+" "+(t[37]?cn:"")),Ht(e,"role","tablist"),re(e,"--divkit-tabs-font-size",mn(t[7]),!1),re(e,"--divkit-tabs-paddings",t[8],!1),re(e,"--divkit-tabs-line-height",t[21],!1),re(e,"--divkit-tabs-letter-spacing",t[22],!1),re(e,"--divkit-tabs-active-font-weight",t[10]||"",!1),re(e,"--divkit-tabs-inactive-font-weight",t[11]||"",!1),re(e,"--divkit-tabs-active-text-color",t[12],!1),re(e,"--divkit-tabs-inactive-text-color",t[13],!1),re(e,"--divkit-tabs-active-background-color",t[14],!1),re(e,"--divkit-tabs-inactive-background-color",t[15],!1),re(e,"--divkit-tabs-border-radius",t[9],!1),Ht(a,"class",l=jn("tabs__swiper",Do,{inited:t[23],animated:t[24]})),Ht(i,"class",s=Do.tabs__panels+" "+(t[37]?cn:""))},m(n,l){Jt(n,e,l);for(let t=0;t<f.length;t+=1)f[t].m(e,null);t[56](e),Jt(n,r,l),g&&g.m(n,l),Jt(n,o,l),Jt(n,i,l),Mt(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=[qt(e,"keydown",t[41]),qt(a,"touchstart",(function(){gt(t[28]?t[42]:void 0)&&(t[28]?t[42]:void 0).apply(this,arguments)})),qt(a,"touchmove",(function(){gt(t[28]?t[43]:void 0)&&(t[28]?t[43]:void 0).apply(this,arguments)})),qt(a,"touchend",(function(){gt(t[28]?t[44]:void 0)&&(t[28]?t[44]:void 0).apply(this,arguments)})),qt(a,"touchcancel",(function(){gt(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(p=t[16],n=0;n<p.length;n+=1){const r=Fo(t,p,n);f[n]?(f[n].p(r,u),Ie(f[n],1)):(f[n]=zo(r),f[n].c(),Ie(f[n],1),f[n].m(e,null))}for(Se(),n=p.length;n<f.length;n+=1)h(n);Fe()}if((!c||64&u[1]&&n!==(n=Do.tabs__list+" "+(t[37]?cn:"")))&&Ht(e,"class",n),128&u[0]&&re(e,"--divkit-tabs-font-size",mn(t[7]),!1),256&u[0]&&re(e,"--divkit-tabs-paddings",t[8],!1),2097152&u[0]&&re(e,"--divkit-tabs-line-height",t[21],!1),4194304&u[0]&&re(e,"--divkit-tabs-letter-spacing",t[22],!1),1024&u[0]&&re(e,"--divkit-tabs-active-font-weight",t[10]||"",!1),2048&u[0]&&re(e,"--divkit-tabs-inactive-font-weight",t[11]||"",!1),4096&u[0]&&re(e,"--divkit-tabs-active-text-color",t[12],!1),8192&u[0]&&re(e,"--divkit-tabs-inactive-text-color",t[13],!1),16384&u[0]&&re(e,"--divkit-tabs-active-background-color",t[14],!1),32768&u[0]&&re(e,"--divkit-tabs-inactive-background-color",t[15],!1),512&u[0]&&re(e,"--divkit-tabs-border-radius",t[9],!1),t[17]?g?g.p(t,u):(g=Mo(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=So(t,m,e);v[e]?(v[e].p(n,u),Ie(v[e],1)):(v[e]=Oo(n),v[e].c(),Ie(v[e],1),v[e].m(a,null))}for(Se(),e=m.length;e<v.length;e+=1)$(e);Fe()}(!c||25165824&u[0]&&l!==(l=jn("tabs__swiper",Do,{inited:t[23],animated:t[24]})))&&Ht(a,"class",l),(!c||64&u[1]&&s!==(s=Do.tabs__panels+" "+(t[37]?cn:"")))&&Ht(i,"class",s)},i(t){if(!c){for(let t=0;t<p.length;t+=1)Ie(f[t]);for(let t=0;t<m.length;t+=1)Ie(v[t]);c=!0}},o(t){f=f.filter(Po);for(let t=0;t<f.length;t+=1)Ne(f[t]);v=v.filter(Po);for(let t=0;t<v.length;t+=1)Ne(v[t]);c=!1},d(n){n&&Ot(e),Tt(f,n),t[56](null),n&&Ot(r),g&&g.d(n),n&&Ot(o),n&&Ot(i),Tt(v,n),t[57](null),t[58](null),u=!1,ht(d)}}}function Bo(t){let e,n,r=!t[4]&&Io(t);return{c(){r&&r.c(),e=Ut()},l(t){r&&r.l(t),e=Ut()},m(t,o){r&&r.m(t,o),Jt(t,e,o),n=!0},p(t,n){t[4]?r&&(Se(),Ne(r,1,1,(()=>{r=null})),Fe()):r?(r.p(t,n),16&n[0]&&Ie(r,1)):(r=Io(t),r.c(),Ie(r,1),r.m(e.parentNode,e))},i(t){n||(Ie(r),n=!0)},o(t){Ne(r),n=!1},d(t){r&&r.d(t),t&&Ot(e)}}}function Ro(t,e,n){let r,o,i,a,l,s,c,u,d,p,f,h,g,m,v,$,y,_,b,x,w=ct,k=ct,E=ct,A=ct,V=ct,j=ct,D=ct,P=ct;var S;t.$$.on_destroy.push((()=>w())),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((()=>D())),t.$$.on_destroy.push((()=>P()));let{json:F={}}=e,{templateContext:I}=e,{origJson:N}=e,{layoutParams:z}=e;const M=fe(dn),J=M.genId("tabs");let O,T,B,R=!1,W={};const L=M.getJsonWithVars(F.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=[],ut=[];async function dt(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(lt=H,n(6,H=t),yt(),ht(),e){await xe();const t=O.querySelector(".".concat(Do.tabs__item_selected));t&&t.focus()}}function pt(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),dt(o,e)}function ft(t,e){return H===e||(dt(e),!1)}function ht(){n(24,at=!0),gt(100*-H),mt(),async function(){await xe();const t=document.getElementById("".concat(J,"-panel-").concat(H));t&&n(19,T.style.height=mn(t.offsetHeight),T)}(),$t(),wt=-H*T.clientWidth}async function gt(t){await xe(),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,ut=ut.map(((t,n)=>n>=e&&n<=o)))}let vt=null;function $t(){vt&&clearTimeout(vt),vt=window.setTimeout((()=>{n(26,ut=r.map(((t,e)=>e===H)))}),400)}function yt(){it||(n(23,it=!0),n(19,T.style.height=mn(T.clientHeight),T),n(20,B.style.transform="translate3d(".concat(100*-lt,"%,0,0)"),B))}let bt,xt,wt,kt=null,Et=null,Ct=!1,At=!1;return!F.id||R||(null==z?void 0:z.fakeElement)||M.registerInstance(F.id,{setCurrentItem(t){if(t<0||t>r.length-1)throw new Error('Item is out of range in "set-current-item" action');dt(t)},setPreviousItem(t){let e=H-1;e<0&&(e="ring"===t?r.length-1:H),dt(e)},setNextItem(t){let e=H+1;e>r.length-1&&(e="ring"===t?0:H),dt(e)}}),de((()=>{F.id&&!(null==z?void 0:z.fakeElement)&&M.unregisterInstance(F.id)})),t.$$set=t=>{"json"in t&&n(0,F=t.json),"templateContext"in t&&n(1,I=t.templateContext),"origJson"in t&&n(2,N=t.origJson),"layoutParams"in t&&n(3,z=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&n(16,r=F.items||[]),65536&t.$$.dirty[0]&&((null==r?void 0:r.length)&&Array.isArray(r)?n(4,R=!1):(n(4,R=!0),M.logError(pn(new Error('Incorrect or empty "items" prop for div "tabs"'))))),1&t.$$.dirty[0]&&(n(36,o=M.getDerivedFromVars(F.width)),D(),D=_t(o,(t=>n(54,b=t)))),1&t.$$.dirty[0]&&(n(35,i=M.getDerivedFromVars(F.height)),j(),j=_t(i,(t=>n(53,_=t)))),40&t.$$.dirty[0]|12582912&t.$$.dirty[1]){let t={};(null==z?void 0:z.fakeElement)&&(t.fakeElement=!0),"wrap_content"===(null==b?void 0:b.type)&&(t.parentHorizontalWrapContent=!0),_&&"wrap_content"!==_.type||(t.parentVerticalWrapContent=!0),n(5,W=On(t,W))}if(65617&t.$$.dirty[0]&&!R&&(H<0||H>=r.length)&&(M.logError(pn(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:F.selected_tab,length:r.length}})),n(6,H=H<0?0:r.length-1)),1&t.$$.dirty[0]&&(n(34,a=M.getDerivedFromVars(F.tab_title_style)),V(),V=_t(a,(t=>n(52,y=t)))),2097152&t.$$.dirty[1]&&n(48,l=y||{}),128&t.$$.dirty[0]|131072&t.$$.dirty[1]&&n(7,G=pr(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=Nn(e,K))}if(128&t.$$.dirty[0]|131072&t.$$.dirty[1]){const t=l.line_height;void 0!==t&&fr(t)&&n(21,X=mn(t/G*10))}if(128&t.$$.dirty[0]|131072&t.$$.dirty[1]){const t=l.letter_spacing;void 0!==t&&Fn(t)&&n(22,Y=mn(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=In(l.corners_radius,t,G,Z)):Fn(t)&&n(9,Z=mn(t/G*10))}1024&t.$$.dirty[0]|131072&t.$$.dirty[1]&&n(10,U=gr(l.active_font_weight||l.font_weight,U)),2048&t.$$.dirty[0]|131072&t.$$.dirty[1]&&n(11,q=gr(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(F.has_separator)),A(),A=_t(s,(t=>n(17,$=t)))),1&t.$$.dirty[0]&&(n(32,c=M.getDerivedFromVars(F.separator_color)),E(),E=_t(c,(t=>n(51,v=t)))),1&t.$$.dirty[0]&&(n(31,u=M.getDerivedFromVars(F.separator_paddings)),k(),k=_t(u,(t=>n(50,m=t)))),131072&t.$$.dirty[0]|1671168&t.$$.dirty[1]&&$&&(v&&n(46,rt=C(v,1,rt)),m&&n(47,ot=Nn(m,ot))),98304&t.$$.dirty[1]&&n(30,d={background:rt,margin:ot}),1&t.$$.dirty[0]&&(n(29,p=M.getDerivedFromVars(F.switch_tabs_by_content_swipe_enabled)),w(),w=_t(p,(t=>n(49,g=t)))),262144&t.$$.dirty[1]&&n(28,f=void 0===g||Boolean(g)),1&t.$$.dirty[0]&&(n(27,h=M.getDerivedFromVars(F.restrict_parent_scroll)),P(),P=_t(h,(t=>n(37,x=t)))),65536&t.$$.dirty[0]&&(R||(n(25,st=r.map(((t,e)=>e===H))),n(26,ut=r.map(((t,e)=>e===H)))))},[F,I,N,z,R,W,H,G,K,Z,U,q,Q,tt,et,nt,r,$,O,T,B,X,Y,it,at,st,ut,h,f,p,d,u,c,s,a,i,o,x,J,{},ft,function(t){if(!(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)&&r){if(37===t.which)pt(-1,!0);else if(39===t.which)pt(1,!0);else if(36===t.which)dt(0,!0);else{if(35!==t.which)return;dt(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(cn));r.length<2||t.touches.length>1||i&&i!==T||(Ct=!1,At=!1,kt=Rn(t),Et=null,bt=Date.now(),xt=wt||-H*T.clientWidth,n(24,at=!1),vt&&clearTimeout(vt))},function(t){const e=Rn(t);if(!kt||Et&&Et.x===e.x&&Et.y===e.y)return;Et=e;const n=T.clientWidth;if(Ct){wt=e.x-kt.x+xt;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-kt.y)>10?At=!0:!At&&Math.abs(e.x-kt.x)>8&&(yt(),Ct=!0,kt=e,gt(100*-H),mt(!0));Ct&&t.cancelable&&t.preventDefault()},function(){At=!1,kt=null;let t=H;if(!Ct)return;Ct=!1;const e=Math.min(512,T.clientWidth);Math.abs(xt-wt)>e/4*Math.min(1,(Date.now()-bt)/750)&&(t+=xt>wt?1:-1),t>=r.length?t=r.length-1:t<0&&(t=0),t===H?(wt=-t*e,gt(100*-t),$t()):dt(t)},S,rt,ot,l,g,m,v,y,_,b,(t,e)=>ft(0,t),function(t){me[t?"unshift":"push"]((()=>{O=t,n(18,O)}))},function(t){me[t?"unshift":"push"]((()=>{B=t,n(20,B)}))},function(t){me[t?"unshift":"push"]((()=>{T=t,n(19,T)}))}]}const Wo="divkit-eb86",Lo="divkit-e08c";function Uo(t){return t<.5?4*t*t*t:.5*Math.pow(2*t-2,3)+1}function qo(t){return t*t*t}function Ho(t){const e=t-1;return e*e*e+1}function Go(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 Ko=Go([.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]),Xo=Go([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]),Yo={linear:ut,ease:Ko,ease_in:qo,ease_out:Ho,ease_in_out:Uo,spring:Xo};function Zo(t){return Math.max(...t.map((t=>(Number(t.duration)||200)+(Number(t.start_delay)||0))))}function Qo(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=(Yo[t.interpolator||"ease_in_out"]||Uo)(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 p,f;const e=1-u+u*(t.scale||0),n=null!==(p=t.pivot_x)&&void 0!==p?p:.5,o=null!==(f=t.pivot_y)&&void 0!==f?f:.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(" "),p=l.filter((t=>t.active)).map((t=>t.scale)).filter((t=>void 0!==t)),f=[u,p.length?p[p.length-1]:d].filter(Boolean).join(" ");return"transform:".concat(f||"none",";opacity:").concat(c)}}}function ti(t,e,n){return t*(1-n)+e*n}const ei={linear:ut,ease:Ko,ease_in:qo,ease_out:Ho,ease_in_out:Uo,spring:Xo};function ni(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 ei?ei[l.interpolator]:Uo,css:t=>["top:".concat(ti(i.top,a.top,t)-o.top,"px"),"left:".concat(ti(i.left,a.left,t)-o.left,"px"),"width:".concat(ti(i.width,a.width,t),"px"),"height:".concat(ti(i.height,a.height,t),"px")].join(";")}}function ri(t){const e=[];return"set"===t.type?(t.items||[]).forEach((t=>{e.push(...ri(t))})):e.push(t),e}const{Map:oi}=Je;function ii(t,e,n){const r=t.slice();return r[27]=e[n],r}function ai(t){let e,n;return e=new ur({props:{cls:"divkit-b8ef",json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[pi]},$$scope:{ctx:t}}}),{c(){Re(e.$$.fragment)},l(t){We(e.$$.fragment,t)},m(t,r){Le(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||(Ie(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function li(t){let e,n,r=t[7],o=si(t);return{c(){o.c(),e=Ut()},l(t){o.l(t),e=Ut()},m(t,r){o.m(t,r),Jt(t,e,r),n=!0},p(t,n){128&n&&$t(r,r=t[7])?(Se(),Ne(o,1,1,ct),Fe(),o=si(t),o.c(),Ie(o,1),o.m(e.parentNode,e)):o.p(t,n)},i(t){n||(Ie(o),n=!0)},o(t){Ne(o),n=!1},d(t){t&&Ot(e),o.d(t)}}}function si(t){let e,n;return e=new oa({props:{div:t[7].div,templateContext:t[1]}}),{c(){Re(e.$$.fragment)},l(t){We(e.$$.fragment,t)},m(t,r){Le(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||(Ie(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function ci(t){let e,n,r,o,i,a,l,s,c,u;function d(){return t[11](t[27])}return r=new oa({props:{div:t[27].json,templateContext:t[27].templateContext,layoutParams:{fakeElement:!0}}}),{c(){e=Bt("div"),n=Bt("div"),Re(r.$$.fragment),i=Lt(),this.h()},l(t){e=Zt(t,"DIV",{class:!0});var o=Kt(e);n=Zt(o,"DIV",{class:!0});var a=Kt(n);We(r.$$.fragment,a),a.forEach(Ot),i=ee(o),o.forEach(Ot),this.h()},h(){Ht(n,"class",o=Lo),Ht(e,"class",a=Wo)},m(t,o){Jt(t,e,o),Mt(e,n),Le(r,n,null),Mt(e,i),s=!0,c||(u=qt(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||(Ie(r.$$.fragment,n),l||we((()=>{l=Me(e,ni,t[27]),l.start()})),s=!0)},o(t){Ne(r.$$.fragment,t),s=!1},d(t){t&&Ot(e),Ue(r),c=!1,u()}}}function ui(t){let e,n,r,o,i,a,l,s,c,u;function d(){return t[10](t[27])}return r=new oa({props:{div:t[27].json,templateContext:t[27].templateContext,layoutParams:{fakeElement:!0}}}),{c(){e=Bt("div"),n=Bt("div"),Re(r.$$.fragment),i=Lt(),this.h()},l(t){e=Zt(t,"DIV",{class:!0,style:!0});var o=Kt(e);n=Zt(o,"DIV",{class:!0});var a=Kt(n);We(r.$$.fragment,a),a.forEach(Ot),i=ee(o),o.forEach(Ot),this.h()},h(){Ht(n,"class",o=Lo),Ht(e,"class",a=Wo),re(e,"left",t[27].offsetLeft+"px"),re(e,"top",t[27].offsetTop+"px"),re(e,"width",t[27].width+"px"),re(e,"height",t[27].height+"px")},m(t,o){Jt(t,e,o),Mt(e,n),Le(r,n,null),Mt(e,i),s=!0,c||(u=qt(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)&&re(e,"left",t[27].offsetLeft+"px"),(!s||64&o)&&re(e,"top",t[27].offsetTop+"px"),(!s||64&o)&&re(e,"width",t[27].width+"px"),(!s||64&o)&&re(e,"height",t[27].height+"px")},i(n){s||(Ie(r.$$.fragment,n),l||we((()=>{l=Me(e,Qo,t[27]),l.start()})),s=!0)},o(t){Ne(r.$$.fragment,t),s=!1},d(t){t&&Ot(e),Ue(r),c=!1,u()}}}function di(t,e){let n,r,o,i,a;const l=[ui,ci],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=Ut(),o.c(),i=Ut(),this.h()},l(t){n=Ut(),o.l(t),i=Ut(),this.h()},h(){this.first=n},m(t,e){Jt(t,n,e),s[r].m(t,e),Jt(t,i,e),a=!0},p(t,n){let a=r;r=c(e=t),r===a?s[r].p(e,n):(Se(),Ne(s[a],1,1,(()=>{s[a]=null})),Fe(),o=s[r],o?o.p(e,n):(o=s[r]=l[r](e),o.c()),Ie(o,1),o.m(i.parentNode,i))},i(t){a||(Ie(o),a=!0)},o(t){Ne(o),a=!1},d(t){t&&Ot(n),s[r].d(t),t&&Ot(i)}}}function pi(t){var e;let n,r,o,i,a=[],l=new oi,s=(null===(e=t[7])||void 0===e?void 0:e.div)&&li(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]=di(r,n))}return{c(){s&&s.c(),n=Lt(),r=Bt("div");for(let t=0;t<a.length;t+=1)a[t].c();this.h()},l(t){s&&s.l(t),n=ee(t),r=Zt(t,"DIV",{class:!0,"aria-hidden":!0});var e=Kt(r);for(let t=0;t<a.length;t+=1)a[t].l(e);e.forEach(Ot),this.h()},h(){Ht(r,"class",o="divkit-adaa"),Ht(r,"aria-hidden","true")},m(e,o){s&&s.m(e,o),Jt(e,n,o),Jt(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&&Ie(s,1)):(s=li(t),s.c(),Ie(s,1),s.m(n.parentNode,n)):s&&(Se(),Ne(s,1,1,(()=>{s=null})),Fe()),320&e&&(c=t[6],Se(),a=function(t,e,n,r,o,i,a,l,s,c,u,d){let p=t.length,f=i.length,h=p;const g={};for(;h--;)g[t[h].key]=h;const m=[],v=new Map,$=new Map;for(h=f;h--;){const t=d(o,i,h),r=n(t);let l=a.get(r);l?l.p(t,e):(l=c(r,t),l.c()),v.set(r,m[h]=l),r in g&&$.set(r,Math.abs(h-g[r]))}const y=new Set,_=new Set;function b(t){Ie(t,1),t.m(l,u),a.set(t.key,t),u=t.first,f--}for(;p&&f;){const e=m[f-1],n=t[p-1],r=e.key,o=n.key;e===n?(u=e.first,p--,f--):v.has(o)?!a.has(r)||y.has(r)?b(e):_.has(o)?p--:$.get(r)>$.get(o)?(_.add(r),b(e)):(y.add(o),p--):(s(n,a),p--)}for(;p--;){const e=t[p];v.has(e.key)||s(e,a)}for(;f;)b(m[f-1]);return m}(a,e,u,0,t,c,l,r,Oe,di,null,ii),Fe())},i(t){if(!i){Ie(s);for(let t=0;t<c.length;t+=1)Ie(a[t]);i=!0}},o(t){Ne(s);for(let t=0;t<a.length;t+=1)Ne(a[t]);i=!1},d(e){s&&s.d(e),e&&Ot(n),e&&Ot(r);for(let t=0;t<a.length;t+=1)a[t].d();t[12](null)}}}function fi(t){let e,n,r=!t[5]&&ai(t);return{c(){r&&r.c(),e=Ut()},l(t){r&&r.l(t),e=Ut()},m(t,o){r&&r.m(t,o),Jt(t,e,o),n=!0},p(t,n){let[o]=n;t[5]?r&&(Se(),Ne(r,1,1,(()=>{r=null})),Fe()):r?(r.p(t,o),32&o&&Ie(r,1)):(r=ai(t),r.c(),Ie(r,1),r.m(e.parentNode,e))},i(t){n||(Ie(r),n=!0)},o(t){Ne(r),n=!1},d(t){r&&r.d(t),t&&Ot(e)}}}function hi(t){return"change_bounds"===t.type?t:"set"===t.type?hi(t.items[0]):null}function gi(t,e,n){let r,{json:o={}}=e,{templateContext:i}=e,{origJson:a}=e,{layoutParams:l}=e;const s=fe(dn),c=fe(Pn);let u,d=new Map,p=new Set,f=!1,h=null,g=[],m=[],v=[],$=[];function y(t,e,n){let{json:r,templateContext:o,transitions:i,node:a}=e;r=s.getJsonWithVars(r),i=s.getJsonWithVars(i);const l=ri(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(p);g.forEach((t=>{t.resolvePromise&&t.resolvePromise()})),n(6,g=[]);let o=[];if(u){const t=u.getBoundingClientRect();o=v.map((e=>y(t,e,"out")))}$.forEach((t=>{d.set(t.id,t.node.getBoundingClientRect())})),m=[],v=[],$=[];const i=r.find((e=>e.state_id===t))||null;if(i?(b=t,n(7,x=i)):s.logError(pn(new Error("Cannot find state with id"),{additional:{stateId:t}})),await xe(),!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=>y(a,t,"in")));o=o.filter((t=>{var e;return!(!t.json.id||p.has(t.json.id))||(null===(e=t.resolvePromise)||void 0===e||e.call(t),!1)}));const c=o.concat(l),f=c.reduce(((t,e)=>Math.max(t,Zo(e.transitions))),0),h=$.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:hi(t.transitions),resolvePromise:t.resolvePromise})));n(6,g=[...c.map((t=>Object.assign(Object.assign({},t),{maxDuration:f}))),...h]),d.clear(),s.setRunning("stateChange",!1)},getChild(t){if(h&&h.has(t))return h.get(t);s.logError(pn(new Error("Missing state block with id"),{additional:{id:t}}))}}),pe(Pn,{registerInstance(t,e){h||(h=new Map),h.has(t)?s.logError(pn(new Error("Duplicate state with id"),{additional:{id:t}})):h.set(t,e)},unregisterInstance(t){null==h||h.delete(t)},runVisibilityTransition(t,e,r,o,i){if(!u)return Promise.resolve();const a=y(u.getBoundingClientRect(),{json:t,templateContext:e,transitions:r,node:o},i),l=Zo(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 $.push(i),new Promise((t=>{i.resolvePromise=t}))},hasTransitionChange:t=>!!t&&d.has(t),registerChild(t){p.add(t)},unregisterChild(t){p.delete(t)}})):(f=!0,s.logError(pn(new Error('Missing "id" prop for div "state"'))));let x=null;const w=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 de((()=>{_&&!(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&&(p=new Set),1&t.$$.dirty&&n(9,r=o.states||[]),512&t.$$.dirty&&((null==r?void 0:r.length)?n(5,f=!1):(n(5,f=!0),s.logError(pn(new Error('Empty "states" prop for div "state"'))))),512&t.$$.dirty&&function(t){k||(k=!0,t.length&&(w?(b=w,n(7,x=t.find((t=>t.state_id===b))||null),x||s.logError(pn(new Error("Cannot find state for default_state_id"),{additional:{selectedId:b}}))):(n(7,x=t[0]),b=x.state_id)))}(r)},[o,i,a,l,u,f,g,x,E,r,t=>E(t),t=>E(t),function(t){me[t?"unshift":"push"]((()=>{u=t,n(4,u)}))}]}const mi={pager:"divkit-c5fe",pager__items:"divkit-f698",pager__item:"divkit-feca",pager_orientation_horizontal:"divkit-b0a1",pager_orientation_vertical:"divkit-f772"},{Boolean:vi}=Je;function $i(t,e,n){const r=t.slice();return r[45]=e[n],r}function yi(t){let e,n;return e=new ur({props:{cls:jn("pager",mi,t[8]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customPaddings:!0,$$slots:{default:[bi]},$$scope:{ctx:t}}}),{c(){Re(e.$$.fragment)},l(t){We(e.$$.fragment,t)},m(t,r){Le(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.cls=jn("pager",mi,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]|131072&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ie(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function _i(t){var e;let n,r,o,i,a;return r=new oa({props:{div:t[45].json,templateContext:t[45].templateContext,origJson:t[45].origJson,layoutParams:null!==(e=t[3])&&void 0!==e&&e.fakeElement?{fakeElement:!0}:void 0}}),{c(){n=Bt("div"),Re(r.$$.fragment),o=Lt(),this.h()},l(t){n=Zt(t,"DIV",{class:!0});var e=Kt(n);We(r.$$.fragment,e),o=ee(e),e.forEach(Ot),this.h()},h(){Ht(n,"class",i=mi.pager__item)},m(t,e){Jt(t,n,e),Le(r,n,null),Mt(n,o),a=!0},p(t,e){var n;const o={};16&e[0]&&(o.div=t[45].json),16&e[0]&&(o.templateContext=t[45].templateContext),16&e[0]&&(o.origJson=t[45].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||(Ie(r.$$.fragment,t),a=!0)},o(t){Ne(r.$$.fragment,t),a=!1},d(t){t&&Ot(n),Ue(r)}}}function bi(t){let e,n,r,o,i,a,l=t[4],s=[];for(let e=0;e<l.length;e+=1)s[e]=_i($i(t,l,e));const c=t=>Ne(s[t],1,1,(()=>{s[t]=null}));return{c(){e=Bt("div");for(let t=0;t<s.length;t+=1)s[t].c();this.h()},l(t){e=Zt(t,"DIV",{class:!0,style:!0});var n=Kt(e);for(let t=0;t<s.length;t+=1)s[t].l(n);n.forEach(Ot),this.h()},h(){Ht(e,"class",n=mi.pager__items+" "+(t[15]?cn:"")),Ht(e,"style",r=gn(t[9]))},m(n,r){Jt(n,e,r);for(let t=0;t<s.length;t+=1)s[t].m(e,null);t[36](e),o=!0,i||(a=qt(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=$i(t,l,n);s[n]?(s[n].p(r,i),Ie(s[n],1)):(s[n]=_i(r),s[n].c(),Ie(s[n],1),s[n].m(e,null))}for(Se(),n=l.length;n<s.length;n+=1)c(n);Fe()}(!o||32768&i[0]&&n!==(n=mi.pager__items+" "+(t[15]?cn:"")))&&Ht(e,"class",n),(!o||512&i[0]&&r!==(r=gn(t[9])))&&Ht(e,"style",r)},i(t){if(!o){for(let t=0;t<l.length;t+=1)Ie(s[t]);o=!0}},o(t){s=s.filter(vi);for(let t=0;t<s.length;t+=1)Ne(s[t]);o=!1},d(n){n&&Ot(e),Tt(s,n),t[36](null),i=!1,a()}}}function xi(t){let e,n,r=!t[7]&&yi(t);return{c(){r&&r.c(),e=Ut()},l(t){r&&r.l(t),e=Ut()},m(t,o){r&&r.m(t,o),Jt(t,e,o),n=!0},p(t,n){t[7]?r&&(Se(),Ne(r,1,1,(()=>{r=null})),Fe()):r?(r.p(t,n),128&n[0]&&Ie(r,1)):(r=yi(t),r.c(),Ie(r,1),r.m(e.parentNode,e))},i(t){n||(Ie(r),n=!0)},o(t){Ne(r),n=!1},d(t){r&&r.d(t),t&&Ot(e)}}}function wi(t,e,n){let r,o,i,a,l,s,c,u,d,p,f,h,g,m,v,$,y,_=ct,b=ct,x=ct,w=ct,k=ct,E=ct;var C,A,V,j,D,P,S;t.$$.on_destroy.push((()=>_())),t.$$.on_destroy.push((()=>b())),t.$$.on_destroy.push((()=>x())),t.$$.on_destroy.push((()=>w())),t.$$.on_destroy.push((()=>k())),t.$$.on_destroy.push((()=>E()));let{json:F={}}=e,{templateContext:I}=e,{origJson:N}=e,{layoutParams:z}=e;const M=fe(dn),J=M.genId("pager");let O,T=!1,B=0,R=!1,W="horizontal",L="",U="",q="";const H=vo((function(){const t=function(){const t=Array.from(O.children),e=O.getBoundingClientRect(),n=t.findIndex((t=>{return n=e,r=t.getBoundingClientRect(),"horizontal"===W?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 G(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"smooth";const r="horizontal"===W,o=O.children[t],i=r?"offsetLeft":"offsetTop",a=r?"left":"top";O.scroll({[a]:o[i],behavior:e}),n(25,B=t)}return F.id&&!(null==z?void 0:z.fakeElement)&&M.registerInstance(F.id,{setCurrentItem(t){if(t<0||t>r.length-1)throw new Error('Item is out of range in "set-current-item" action');G(t)},setPreviousItem(t){let e=B-1;e<0&&(e="ring"===t?r.length-1:B),G(e)},setNextItem(t){let e=B+1;e>r.length-1&&(e="ring"===t?0:B),G(e)}}),ue((()=>{if(Boolean(document.getElementById("".concat(J,"-tab-0")))){const t=[...O.children];for(const[e,n]of t.entries())n.setAttribute("role","tabpanel"),n.setAttribute("id","".concat(J,"-panel-").concat(e)),n.setAttribute("aria-labelledby","".concat(J,"-tab-").concat(e))}})),de((()=>{F.id&&!(null==z?void 0:z.fakeElement)&&M.unregisterInstance(F.id)})),t.$$set=t=>{"json"in t&&n(0,F=t.json),"templateContext"in t&&n(1,I=t.templateContext),"origJson"in t&&n(2,N=t.origJson),"layoutParams"in t&&n(3,z=t.layoutParams)},t.$$.update=()=>{if(131073&t.$$.dirty[0]&&((null===n(17,C=F.items)||void 0===C?void 0:C.length)&&Array.isArray(F.items)?n(24,T=!1):(n(24,T=!0),M.logError(pn(new Error('Incorrect or empty "items" prop for div "pager"'))))),16777219&t.$$.dirty[0]&&n(4,r=(!T&&F.items||[]).map((t=>{let e=t,n=I;return({templateContext:n,json:e}=M.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),1&t.$$.dirty[0]&&(n(14,o=M.getDerivedFromVars(F.layout_mode)),b(),b=_t(o,(t=>n(32,g=t)))),2&t.$$.dirty[1]&&(g?"percentage"!==g.type&&"fixed"!==g.type?(n(26,R=!0),M.logError(pn(new Error('Incorrect value of "layout_mode.type" for div "pager"')))):n(26,R=!1):(n(26,R=!0),M.logError(pn(new Error('Empty "layout_mode" prop for div "pager"'))))),1&t.$$.dirty[0]&&(n(13,i=M.getDerivedFromVars(F.orientation)),k(),k=_t(i,(t=>n(35,$=t)))),134217728&t.$$.dirty[0]|16&t.$$.dirty[1]&&n(27,W=Wr($,W)),1&t.$$.dirty[0]&&(n(12,a=M.getDerivedFromVars(F.item_spacing)),w(),w=_t(a,(t=>n(34,v=t)))),8&t.$$.dirty[1]){const t=null==v?void 0:v.value;t&&Fn(t)&&n(28,L=mn(t||0))}if(1&t.$$.dirty[0]&&(n(11,l=M.getDerivedFromVars(F.paddings)),x(),x=_t(l,(t=>n(33,m=t)))),536870912&t.$$.dirty[0]|4&t.$$.dirty[1]&&n(29,U=Nn(m,U)),1&t.$$.dirty[0]&&(n(10,s=M.getDerivedFromVars(F.restrict_parent_scroll)),E(),E=_t(s,(t=>n(15,y=t)))),134217728&t.$$.dirty[0]&&n(31,c="horizontal"===W?"grid-auto-columns":"grid-auto-rows"),419168257&t.$$.dirty[0]|2&t.$$.dirty[1])if("fixed"===(null==g?void 0:g.type)){const t=vn("horizontal"===W?((null===n(18,A=F.paddings)||void 0===A?void 0:A.left)||0)+((null===n(19,V=F.paddings)||void 0===V?void 0:V.right)||0):((null===n(20,j=F.paddings)||void 0===j?void 0:j.top)||0)+((null===n(21,D=F.paddings)||void 0===D?void 0:D.bottom)||0)),e=null===n(22,P=g.neighbour_page_width)||void 0===P?void 0:P.value;n(30,q=e?"calc(100% + ".concat(t," - 2 * ").concat(vn(e)," - 2 * ").concat(L,")"):"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,q="".concat(Number(t),"%"))}1879048192&t.$$.dirty[0]|1&t.$$.dirty[1]&&n(9,u={"grid-gap":L,padding:U,[c]:q}),134217728&t.$$.dirty[0]&&n(8,d={orientation:W}),83886080&t.$$.dirty[0]&&n(7,p=T||R),33554448&t.$$.dirty[0]&&function(t,e){const n=F.id;if(n){const i=new Map(h);r=f,h=i.set(n,{instId:J,size:t,currentItem:e,scrollToPagerItem:G}),o=h,r.set(o)}var r,o}(r.length,B)},n(6,f=M.getStore("pagers")),_(),_=_t(f,(t=>n(37,h=t))),[F,I,N,z,r,O,f,p,d,u,s,l,a,i,o,y,H,C,A,V,j,D,P,S,T,B,R,W,L,U,q,c,g,m,v,$,function(t){me[t?"unshift":"push"]((()=>{O=t,n(5,O)}))}]}const ki={indicator:"divkit-d8e3",indicator__scroller:"divkit-b5db",indicator__items:"divkit-d5d9",indicator__item:"divkit-f662",indicator__item_active:"divkit-b39c"};function Ei(t,e,n){const r=t.slice();r[34]=e[n],r[37]=n;const o=r[37]===r[13].currentItem;return r[35]=o,r}function Ci(t){let e,n=Array(t[13].size),r=[];for(let e=0;e<n.length;e+=1)r[e]=Ai(Ei(t,n,e));return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=Ut()},l(t){for(let e=0;e<r.length;e+=1)r[e].l(t);e=Ut()},m(t,n){for(let e=0;e<r.length;e+=1)r[e].m(t,n);Jt(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=Ei(t,n,i);r[i]?r[i].p(a,o):(r[i]=Ai(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){Tt(r,t),t&&Ot(e)}}}function Ai(t){let e,n,r,o,i,a,l,s;function c(){return t[28](t[37])}return{c(){e=Bt("div"),this.h()},l(t){e=Zt(t,"DIV",{class:!0,role:!0,id:!0,"aria-controls":!0,"aria-selected":!0,tabindex:!0}),Kt(e).forEach(Ot),this.h()},h(){Ht(e,"class",n=jn("indicator__item",ki,{active:t[35]})+" "+an),Ht(e,"role","tab"),Ht(e,"id",r=t[13].instId+"-tab-"+t[37]),Ht(e,"aria-controls",o=t[13].instId+"-panel-"+t[37]),Ht(e,"aria-selected",i=t[35]?"true":"false"),Ht(e,"tabindex",a=t[35]?0:-1)},m(n,r){Jt(n,e,r),l||(s=[qt(e,"click",c),qt(e,"keydown",t[21])],l=!0)},p(l,s){t=l,8192&s[0]&&n!==(n=jn("indicator__item",ki,{active:t[35]})+" "+an)&&Ht(e,"class",n),8192&s[0]&&r!==(r=t[13].instId+"-tab-"+t[37])&&Ht(e,"id",r),8192&s[0]&&o!==(o=t[13].instId+"-panel-"+t[37])&&Ht(e,"aria-controls",o),8192&s[0]&&i!==(i=t[35]?"true":"false")&&Ht(e,"aria-selected",i),8192&s[0]&&a!==(a=t[35]?0:-1)&&Ht(e,"tabindex",a)},d(t){t&&Ot(e),l=!1,ht(s)}}}function Vi(t){let e,n,r,o,i="0 ".concat(mn((t[10]-1)*t[4]/2)),a="0 ".concat(mn((t[9]-t[4])/2)),l=t[13]&&Ci(t);return{c(){e=Bt("div"),n=Bt("div"),l&&l.c(),this.h()},l(t){e=Zt(t,"DIV",{class:!0});var r=Kt(e);n=Zt(r,"DIV",{class:!0,role:!0});var o=Kt(n);l&&l.l(o),o.forEach(Ot),r.forEach(Ot),this.h()},h(){Ht(n,"class",r=ki.indicator__items),Ht(n,"role","tablist"),re(n,"margin",i,!1),re(n,"--divkit-indicator-width",mn(t[4]),!1),re(n,"--divkit-indicator-height",mn(t[5]),!1),re(n,"--divkit-indicator-border-radius",mn(t[6]),!1),re(n,"--divkit-indicator-active-color",t[7],!1),re(n,"--divkit-indicator-inactive-color",t[8],!1),re(n,"--divkit-indicator-active-scale",t[10],!1),re(n,"--divkit-indicator-margin",a,!1),Ht(e,"class",o=ki.indicator__scroller)},m(r,o){Jt(r,e,o),Mt(e,n),l&&l.m(n,null),t[29](n),t[30](e)},p(t,e){t[13]?l?l.p(t,e):(l=Ci(t),l.c(),l.m(n,null)):l&&(l.d(1),l=null),1040&e[0]&&i!==(i="0 ".concat(mn((t[10]-1)*t[4]/2)))&&re(n,"margin",i,!1),16&e[0]&&re(n,"--divkit-indicator-width",mn(t[4]),!1),32&e[0]&&re(n,"--divkit-indicator-height",mn(t[5]),!1),64&e[0]&&re(n,"--divkit-indicator-border-radius",mn(t[6]),!1),128&e[0]&&re(n,"--divkit-indicator-active-color",t[7],!1),256&e[0]&&re(n,"--divkit-indicator-inactive-color",t[8],!1),1024&e[0]&&re(n,"--divkit-indicator-active-scale",t[10],!1),528&e[0]&&a!==(a="0 ".concat(mn((t[9]-t[4])/2)))&&re(n,"--divkit-indicator-margin",a,!1)},d(n){n&&Ot(e),l&&l.d(),t[29](null),t[30](null)}}}function ji(t){let e,n;return e=new ur({props:{cls:jn("indicator",ki,{}),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Vi]},$$scope:{ctx:t}}}),{c(){Re(e.$$.fragment)},l(t){We(e.$$.fragment,t)},m(t,r){Le(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]|128&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ie(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function Di(t,e,n){let r,o,i,a,l,s,c,u,d,p,f,h,g=ct,m=ct,v=ct,$=ct,y=ct,_=ct;t.$$.on_destroy.push((()=>g())),t.$$.on_destroy.push((()=>m())),t.$$.on_destroy.push((()=>v())),t.$$.on_destroy.push((()=>$())),t.$$.on_destroy.push((()=>y())),t.$$.on_destroy.push((()=>_()));let{json:b={}}=e,{templateContext:x}=e,{origJson:w}=e,{layoutParams:k}=e;const E=fe(dn);let A,V,j,D=10,P=10,S=5,F="#ffdc60",I=C("#33919cb5"),N=15,z=1.3;function M(t){t!==j.currentItem&&j.scrollToPagerItem(t)}async function J(t){j.scrollToPagerItem(t),await xe();const e=V.querySelector(".".concat(ki.indicator__item_active));e&&e.focus()}return t.$$set=t=>{"json"in t&&n(0,b=t.json),"templateContext"in t&&n(1,x=t.templateContext),"origJson"in t&&n(2,w=t.origJson),"layoutParams"in t&&n(3,k=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty[0]&&(n(19,r=E.getDerivedFromVars(b.shape)),_(),_=_t(r,(t=>n(27,h=t)))),134217840&t.$$.dirty[0]&&h&&(h.item_width&&n(4,D=zn(h.item_width.value,D)),h.item_height&&n(5,P=zn(h.item_height.value,P)),h.corner_radius&&n(6,S=zn(h.corner_radius.value,S))),1&t.$$.dirty[0]&&(n(18,o=E.getDerivedFromVars(b.active_item_color)),y(),y=_t(o,(t=>n(26,f=t)))),67108992&t.$$.dirty[0]&&n(7,F=C(f,1,F)),1&t.$$.dirty[0]&&(n(17,i=E.getDerivedFromVars(b.inactive_item_color)),$(),$=_t(i,(t=>n(25,p=t)))),33554688&t.$$.dirty[0]&&n(8,I=C(p,1,I)),1&t.$$.dirty[0]&&(n(16,a=E.getDerivedFromVars(b.space_between_centers)),v(),v=_t(a,(t=>n(24,d=t)))),16777728&t.$$.dirty[0]&&d&&n(9,N=zn(d.value,N)),1&t.$$.dirty[0]&&(n(15,l=E.getDerivedFromVars(b.active_item_size)),m(),m=_t(l,(t=>n(23,u=t)))),8389632&t.$$.dirty[0]&&n(10,z=pr(u,z)),4194304&t.$$.dirty[0]&&async function(t){if(b.pager_id&&t.has(b.pager_id)){n(13,j=t.get(b.pager_id)),await xe();const e=V.children[j.currentItem].offsetLeft;A.scroll({left:e-A.clientWidth/2,behavior:"smooth"})}}(c)},n(14,s=E.getStore("pagers")),g(),g=_t(s,(t=>n(22,c=t))),[b,x,w,k,D,P,S,F,I,N,z,A,V,j,s,l,a,i,o,r,M,function(t){if(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)return;const{size:e,currentItem:n}=j;if(37===t.which)J(n-1<0?n:n-1);else if(39===t.which)J(n+1>=e?n:n+1);else if(36===t.which)J(0);else{if(35!==t.which)return;J(e-1)}t.preventDefault()},c,u,d,p,f,h,t=>M(t),function(t){me[t?"unshift":"push"]((()=>{V=t,n(12,V)}))},function(t){me[t?"unshift":"push"]((()=>{A=t,n(11,A)}))}]}const Pi={slider:"divkit-ef4f",slider__input:"divkit-d1d6",slider__input_secondary:"divkit-c798",slider__thumb:"divkit-f345",slider__thumb_secondary:"divkit-e198","slider__tracks-wrapper":"divkit-f733","slider__tracks-inner":"divkit-ac90",slider__track:"divkit-e956","slider__active-track":"divkit-ec5b","slider__thumb-text":"divkit-c4af","slider__thumb-text_secondary":"divkit-d882",slider__tick:"divkit-bd9b",slider__tick_active:"divkit-d8ce",slider__tick_inactive:"divkit-e71e"};function Si(t,e){var n,r,o;if(!t||!t.shape||!t.color)return e;const i=C(t.color),a=Number((null===(n=t.shape.item_width)||void 0===n?void 0:n.value)||10),l=Number((null===(r=t.shape.item_height)||void 0===r?void 0:r.value)||10),s=Number((null===(o=t.shape.corner_radius)||void 0===o?void 0:o.value)||5);if("shape_drawable"===t.type&&"transparent"!==i&&"rounded_rectangle"===t.shape.type){var c,u;const e={},n=null!==(c=t.stroke)&&void 0!==c&&c.color?C(t.stroke.color):"",r=null!==(u=t.stroke)&&void 0!==u&&u.width?Number(t.stroke.width||1):"";return e.width=a,e.height=l,e.borderRadius=s,e.background=i,n&&r&&(e.boxShadow="inset 0 0 0 ".concat(mn(r)," ").concat(n)),e}return e}function Fi(t,e){if(!t||!t.font_size)return e;const n=t.offset,r=t.text_color&&C(t.text_color)||"#000",o=hr(t.font_weight);if(fr(t.font_size)&&"transparent"!==r){var i,a;const e={fontSize:mn(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 Ii(t,e,n){return Math.max(e,Math.min(n,t))}function Ni(t,e,n){const r=t.slice();return r[76]=e[n],r}function zi(t,e,n){const r=t.slice();return r[76]=e[n],r}function Mi(t){let e,n;return e=new ur({props:{cls:jn("slider",Pi,t[21]),style:t[22],customDescription:!0,customActions:"slider",json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Ri]},$$scope:{ctx:t}}}),{c(){Re(e.$$.fragment)},l(t){We(e.$$.fragment,t)},m(t,r){Le(e,t,r),n=!0},p(t,n){const r={};2097152&n[0]&&(r.cls=jn("slider",Pi,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]|524288&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ie(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function Ji(t){let e,n;return{c(){e=Bt("div"),this.h()},l(t){e=Zt(t,"DIV",{class:!0}),Kt(e).forEach(Ot),this.h()},h(){Ht(e,"class",n=Pi.slider__tick+" "+Pi.slider__tick_active),re(e,"--divkit-slider-tick",t[76],!1)},m(t,n){Jt(t,e,n)},p(t,n){131072&n[0]&&re(e,"--divkit-slider-tick",t[76],!1)},d(t){t&&Ot(e)}}}function Oi(t){let e,n;return{c(){e=Bt("div"),this.h()},l(t){e=Zt(t,"DIV",{class:!0}),Kt(e).forEach(Ot),this.h()},h(){Ht(e,"class",n=Pi.slider__tick+" "+Pi.slider__tick_inactive),re(e,"--divkit-slider-tick",t[76],!1)},m(t,n){Jt(t,e,n)},p(t,n){262144&n[0]&&re(e,"--divkit-slider-tick",t[76],!1)},d(t){t&&Ot(e)}}}function Ti(t){let e,n,r,o,i;return{c(){e=Bt("div"),n=Bt("div"),r=Wt(t[6]),this.h()},l(o){e=Zt(o,"DIV",{class:!0});var i=Kt(e);n=Zt(i,"DIV",{class:!0});var a=Kt(n);r=te(a,t[6]),a.forEach(Ot),i.forEach(Ot),this.h()},h(){var r,a,l;Ht(n,"class",o=Pi["slider__thumb-text-inner"]),re(n,"font-size",(null===(r=t[12])||void 0===r?void 0:r.fontSize)||"1em",!1),re(n,"font-weight",(null===(a=t[12])||void 0===a?void 0:a.fontWeight)||"",!1),re(n,"color",(null===(l=t[12])||void 0===l?void 0:l.textColor)||"#000",!1),Ht(e,"class",i=Pi["slider__thumb-text"])},m(t,o){Jt(t,e,o),Mt(e,n),Mt(n,r)},p(t,e){var o,i,a;64&e[0]&&ne(r,t[6]),4096&e[0]&&re(n,"font-size",(null===(o=t[12])||void 0===o?void 0:o.fontSize)||"1em",!1),4096&e[0]&&re(n,"font-weight",(null===(i=t[12])||void 0===i?void 0:i.fontWeight)||"",!1),4096&e[0]&&re(n,"color",(null===(a=t[12])||void 0===a?void 0:a.textColor)||"#000",!1)},d(t){t&&Ot(e)}}}function Bi(t){let e,n,r,o,i;return{c(){e=Bt("div"),n=Bt("div"),r=Wt(t[7]),this.h()},l(o){e=Zt(o,"DIV",{class:!0});var i=Kt(e);n=Zt(i,"DIV",{class:!0});var a=Kt(n);r=te(a,t[7]),a.forEach(Ot),i.forEach(Ot),this.h()},h(){var r,a,l;Ht(n,"class",o=Pi["slider__thumb-text-inner"]),re(n,"font-size",(null===(r=t[13])||void 0===r?void 0:r.fontSize)||"1em",!1),re(n,"font-weight",(null===(a=t[13])||void 0===a?void 0:a.fontWeight)||"",!1),re(n,"color",(null===(l=t[13])||void 0===l?void 0:l.textColor)||"#000",!1),Ht(e,"class",i=Pi["slider__thumb-text"]+" "+Pi["slider__thumb-text_secondary"])},m(t,o){Jt(t,e,o),Mt(e,n),Mt(n,r)},p(t,e){var o,i,a;128&e[0]&&ne(r,t[7]),8192&e[0]&&re(n,"font-size",(null===(o=t[13])||void 0===o?void 0:o.fontSize)||"1em",!1),8192&e[0]&&re(n,"font-weight",(null===(i=t[13])||void 0===i?void 0:i.fontWeight)||"",!1),8192&e[0]&&re(n,"color",(null===(a=t[13])||void 0===a?void 0:a.textColor)||"#000",!1)},d(t){t&&Ot(e)}}}function Ri(t){let e,n,r,o,i,a,l,s,c,u,d,p,f,h,g,m,v,$,y,_,b,x,w=t[17],k=[];for(let e=0;e<w.length;e+=1)k[e]=Ji(zi(t,w,e));let E=t[18],C=[];for(let e=0;e<E.length;e+=1)C[e]=Oi(Ni(t,E,e));let A=t[12]&&Ti(t),V=t[37]&&function(t){let e,n,r=t[13]&&Bi(t);return{c(){e=Bt("div"),r&&r.c(),this.h()},l(t){e=Zt(t,"DIV",{class:!0});var n=Kt(e);r&&r.l(n),n.forEach(Ot),this.h()},h(){Ht(e,"class",n=Pi.slider__thumb+" "+Pi.slider__thumb_secondary),re(e,"border-radius",mn(t[9].borderRadius),!1),re(e,"background",t[9].background,!1),re(e,"box-shadow",t[9].boxShadow||"",!1)},m(t,n){Jt(t,e,n),r&&r.m(e,null)},p(t,n){t[13]?r?r.p(t,n):(r=Bi(t),r.c(),r.m(e,null)):r&&(r.d(1),r=null),512&n[0]&&re(e,"border-radius",mn(t[9].borderRadius),!1),512&n[0]&&re(e,"background",t[9].background,!1),512&n[0]&&re(e,"box-shadow",t[9].boxShadow||"",!1)},d(t){t&&Ot(e),r&&r.d()}}}(t),j=t[37]&&function(t){let e,n,r,o,i;return{c(){e=Bt("input"),this.h()},l(t){e=Zt(t,"INPUT",{type:!0,class:!0,min:!0,max:!0,step:!0,"aria-label":!0}),this.h()},h(){Ht(e,"type","range"),Ht(e,"class",n=t[16]?Pi.slider__input:"".concat(Pi.slider__input," ").concat(Pi.slider__input_secondary)),Ht(e,"min",t[4]),Ht(e,"max",t[5]),Ht(e,"step","1"),e.value=r=t[16]?t[6]:t[7],Ht(e,"aria-label",t[20])},m(n,r){Jt(n,e,r),o||(i=[qt(e,"input",t[68]),qt(e,"mousedown",t[37]?t[40]:null),qt(e,"touchstart",t[37]?t[40]:null)],o=!0)},p(t,o){65536&o[0]&&n!==(n=t[16]?Pi.slider__input:"".concat(Pi.slider__input," ").concat(Pi.slider__input_secondary))&&Ht(e,"class",n),16&o[0]&&Ht(e,"min",t[4]),32&o[0]&&Ht(e,"max",t[5]),65728&o[0]&&r!==(r=t[16]?t[6]:t[7])&&(e.value=r),1048576&o[0]&&Ht(e,"aria-label",t[20])},d(t){t&&Ot(e),o=!1,ht(i)}}}(t);return{c(){e=Bt("div"),n=Bt("div"),r=Bt("div"),i=Lt(),a=Bt("div"),s=Lt();for(let t=0;t<k.length;t+=1)k[t].c();c=Lt();for(let t=0;t<C.length;t+=1)C[t].c();u=Lt(),d=Bt("div"),A&&A.c(),f=Lt(),V&&V.c(),h=Lt(),g=Bt("input"),$=Lt(),j&&j.c(),this.h()},l(t){e=Zt(t,"DIV",{class:!0});var o=Kt(e);n=Zt(o,"DIV",{class:!0});var l=Kt(n);r=Zt(l,"DIV",{class:!0}),Kt(r).forEach(Ot),i=ee(l),a=Zt(l,"DIV",{class:!0}),Kt(a).forEach(Ot),s=ee(l);for(let t=0;t<k.length;t+=1)k[t].l(l);c=ee(l);for(let t=0;t<C.length;t+=1)C[t].l(l);u=ee(l),d=Zt(l,"DIV",{class:!0});var p=Kt(d);A&&A.l(p),p.forEach(Ot),f=ee(l),V&&V.l(l),h=ee(l),g=Zt(l,"INPUT",{type:!0,class:!0,min:!0,max:!0,step:!0,"aria-label":!0}),$=ee(l),j&&j.l(l),l.forEach(Ot),o.forEach(Ot),this.h()},h(){Ht(r,"class",o=Pi.slider__track),re(r,"height",mn(t[10].height),!1),re(r,"border-radius",mn(t[10].borderRadius),!1),re(r,"background",t[10].background,!1),re(r,"box-shadow",t[10].boxShadow||"",!1),Ht(a,"class",l=Pi["slider__active-track"]),re(a,"left",(100*t[23]).toFixed(2)+"%",!1),re(a,"width",(100*t[24]).toFixed(2)+"%",!1),re(a,"height",mn(t[11].height),!1),re(a,"border-radius",mn(t[11].borderRadius),!1),re(a,"background",t[11].background,!1),re(a,"box-shadow",t[11].boxShadow||"",!1),Ht(d,"class",p=Pi.slider__thumb),re(d,"border-radius",mn(t[8].borderRadius),!1),re(d,"background",t[8].background,!1),re(d,"box-shadow",t[8].boxShadow||"",!1),Ht(g,"type","range"),Ht(g,"class",m=t[16]?"".concat(Pi.slider__input," ").concat(Pi.slider__input_secondary):Pi.slider__input),Ht(g,"min",t[4]),Ht(g,"max",t[5]),Ht(g,"step","1"),g.value=v=t[16]?t[7]:t[6],Ht(g,"aria-label",t[19]),Ht(n,"class",y=Pi["slider__tracks-inner"]),Ht(e,"class",_=Pi["slider__tracks-wrapper"])},m(o,l){Jt(o,e,l),Mt(e,n),Mt(n,r),Mt(n,i),Mt(n,a),Mt(n,s);for(let t=0;t<k.length;t+=1)k[t].m(n,null);Mt(n,c);for(let t=0;t<C.length;t+=1)C[t].m(n,null);Mt(n,u),Mt(n,d),A&&A.m(d,null),Mt(n,f),V&&V.m(n,null),Mt(n,h),Mt(n,g),Mt(n,$),j&&j.m(n,null),t[69](n),b||(x=qt(g,"input",t[67]),b=!0)},p(t,e){if(1024&e[0]&&re(r,"height",mn(t[10].height),!1),1024&e[0]&&re(r,"border-radius",mn(t[10].borderRadius),!1),1024&e[0]&&re(r,"background",t[10].background,!1),1024&e[0]&&re(r,"box-shadow",t[10].boxShadow||"",!1),8388608&e[0]&&re(a,"left",(100*t[23]).toFixed(2)+"%",!1),16777216&e[0]&&re(a,"width",(100*t[24]).toFixed(2)+"%",!1),2048&e[0]&&re(a,"height",mn(t[11].height),!1),2048&e[0]&&re(a,"border-radius",mn(t[11].borderRadius),!1),2048&e[0]&&re(a,"background",t[11].background,!1),2048&e[0]&&re(a,"box-shadow",t[11].boxShadow||"",!1),131072&e[0]){let r;for(w=t[17],r=0;r<w.length;r+=1){const o=zi(t,w,r);k[r]?k[r].p(o,e):(k[r]=Ji(o),k[r].c(),k[r].m(n,c))}for(;r<k.length;r+=1)k[r].d(1);k.length=w.length}if(262144&e[0]){let r;for(E=t[18],r=0;r<E.length;r+=1){const o=Ni(t,E,r);C[r]?C[r].p(o,e):(C[r]=Oi(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=Ti(t),A.c(),A.m(d,null)):A&&(A.d(1),A=null),256&e[0]&&re(d,"border-radius",mn(t[8].borderRadius),!1),256&e[0]&&re(d,"background",t[8].background,!1),256&e[0]&&re(d,"box-shadow",t[8].boxShadow||"",!1),t[37]&&V.p(t,e),65536&e[0]&&m!==(m=t[16]?"".concat(Pi.slider__input," ").concat(Pi.slider__input_secondary):Pi.slider__input)&&Ht(g,"class",m),16&e[0]&&Ht(g,"min",t[4]),32&e[0]&&Ht(g,"max",t[5]),65728&e[0]&&v!==(v=t[16]?t[7]:t[6])&&(g.value=v),524288&e[0]&&Ht(g,"aria-label",t[19]),t[37]&&j.p(t,e)},d(n){n&&Ot(e),Tt(k,n),Tt(C,n),A&&A.d(),V&&V.d(),j&&j.d(),t[69](null),b=!1,x()}}}function Wi(t){let e,n,r,o,i=!t[14]&&Mi(t);return{c(){i&&i.c(),e=Ut()},l(t){i&&i.l(t),e=Ut()},m(a,l){i&&i.m(a,l),Jt(a,e,l),n=!0,r||(o=qt(window,"resize",t[42]),r=!0)},p(t,n){t[14]?i&&(Se(),Ne(i,1,1,(()=>{i=null})),Fe()):i?(i.p(t,n),16384&n[0]&&Ie(i,1)):(i=Mi(t),i.c(),Ie(i,1),i.m(e.parentNode,e))},i(t){n||(Ie(i),n=!0)},o(t){Ne(i),n=!1},d(t){i&&i.d(t),t&&Ot(e),r=!1,o()}}}function Li(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 Ui(t,e,n){let r,o,i,a,l,s,c,u,d,p,f,h,g,m,v,$,y,_,b,x,w,k,E,C,A,V,j,D,P,S,F,I,N,z,M=ct,J=ct,O=ct,T=ct,B=ct,R=ct,W=ct,L=ct,U=ct,q=ct,H=ct,G=ct;var K,X,Y,Z;t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>T())),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=fe(dn),it=fe(Bn);let at,lt=!1,st=0,ut=100;const dt=ot.getJsonWithVars(Q.thumb_value_variable),pt=ot.getJsonWithVars(Q.thumb_secondary_value_variable);let ft=dt&&ot.getVariable(dt,"integer")||Qe("temp","integer",0);bt(t,ft,(t=>n(64,I=t)));let ht=pt&&ot.getVariable(pt,"integer")||Qe("temp","integer",0);bt(t,ht,(t=>n(63,F=t)));let gt,mt,vt,$t=Ii(I||0,st,ut),yt=Ii(F||0,st,ut),xt=rt,wt=xt,kt=rt,Et=rt,Ct=null,At=null,Vt=vt,jt="",Dt="",Pt=!1;function St(t,e){const r=Number(t.target.value);lt===("first"===e)?(n(7,yt=r),ht.setValue(r)):(n(6,$t=r),ft.setValue(r))}let Ft=!1;function It(){if(!at)return;const t=ut-st,e=(null==Ct?void 0:Ct.width)||0,n=(null==At?void 0:At.width)||0;Math.max(e,n)*t>=(null==at?void 0:at.clientWidth)?Ft||(ot.logError(pn(new Error("Slider ticks overlap each other"),{level:"warn"})),Ft=!0):Ft=!1}const Nt=vo(It,50);return ue((()=>{It()})),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=ot.getDerivedFromVars(Q.min_value)),G(),G=_t(r,(t=>n(66,z=t)))),1&t.$$.dirty[0]&&(n(35,o=ot.getDerivedFromVars(Q.max_value)),H(),H=_t(o,(t=>n(65,N=t)))),48&t.$$.dirty[0]|24&t.$$.dirty[2]&&(n(4,st=rr(z,st)),n(5,ut=rr(N,ut)),It()),112&t.$$.dirty[0]|4&t.$$.dirty[2]){const t=Ii(I||0,st,ut);t!==$t&&n(6,$t=t)}if(176&t.$$.dirty[0]|2&t.$$.dirty[2]){const t=Ii(F||0,st,ut);t!==yt&&n(7,yt=t)}if(1&t.$$.dirty[0]&&(n(34,i=ot.getDerivedFromVars(Q.thumb_style)),q(),q=_t(i,(t=>n(62,S=t)))),256&t.$$.dirty[0]|1&t.$$.dirty[2]&&n(8,xt=Si(S,xt)),1&t.$$.dirty[0]&&(n(33,a=ot.getDerivedFromVars(Q.thumb_secondary_style)),U(),U=_t(a,(t=>n(61,P=t)))),256&t.$$.dirty[0]|1073741824&t.$$.dirty[1]&&n(9,wt=Si(P,xt)),1&t.$$.dirty[0]&&(n(32,l=ot.getDerivedFromVars(Q.track_inactive_style)),L(),L=_t(l,(t=>n(60,D=t)))),1024&t.$$.dirty[0]|536870912&t.$$.dirty[1]&&n(10,kt=Si(D,kt)),1&t.$$.dirty[0]&&(n(31,s=ot.getDerivedFromVars(Q.track_active_style)),W(),W=_t(s,(t=>n(59,j=t)))),2048&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&n(11,Et=Si(j,Et)),1&t.$$.dirty[0]&&(n(30,c=ot.getDerivedFromVars(Q.tick_mark_active_style)),R(),R=_t(c,(t=>n(58,V=t)))),134217728&t.$$.dirty[1]){let t=Si(V,rt);t!==rt&&n(47,Ct=t)}if(240&t.$$.dirty[0]|65536&t.$$.dirty[1]&&(Ct?(n(17,gt=pt?Li(Math.min($t,yt),Math.max($t,yt)+1,st,ut,!0):Li(st,$t,st,ut,!0)),It()):n(17,gt=[])),1&t.$$.dirty[0]&&(n(29,u=ot.getDerivedFromVars(Q.tick_mark_inactive_style)),B(),B=_t(u,(t=>n(57,A=t)))),67108864&t.$$.dirty[1]){let t=Si(A,rt);t!==rt&&n(48,At=t)}if(240&t.$$.dirty[0]|131072&t.$$.dirty[1]&&(At?(n(18,mt=pt?Li(Math.min($t,yt),Math.max($t,yt)+1,st,ut,!1):Li($t+1,ut+1,st,ut,!0)),It()):n(18,mt=[])),1&t.$$.dirty[0]&&(n(28,d=ot.getDerivedFromVars(Q.thumb_text_style)),T(),T=_t(d,(t=>n(56,C=t)))),4096&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&n(12,vt=Fi(C,vt)),1&t.$$.dirty[0]&&(n(27,p=ot.getDerivedFromVars(Q.thumb_secondary_text_style)),O(),O=_t(p,(t=>n(55,E=t)))),4096&t.$$.dirty[0]|16777216&t.$$.dirty[1]&&n(13,Vt=Fi(E,vt)),1&t.$$.dirty[0]&&(n(26,f=ot.getDerivedFromVars(Q.accessibility)),J(),J=_t(f,(t=>n(54,k=t)))),8388608&t.$$.dirty[1]&&((null==k?void 0:k.description)?n(19,jt=k.description):ot.logError(pn(new Error('Missing accessibility "description" for slider'),{level:"warn"}))),1&t.$$.dirty[0]&&(n(25,h=ot.getDerivedFromVars(Q.secondary_value_accessibility)),M(),M=_t(h,(t=>n(53,w=t)))),4194304&t.$$.dirty[1]&&((null==w?void 0:w.description)?n(20,Dt=w.description):pt&&ot.logError(pn(new Error('Missing second accessibility "description" for slider'),{level:"warn"}))),19712&t.$$.dirty[0]){let t=!1;it.hasAction()?(ot.logError(pn(new Error('Cannot show "slider" inside component with action'))),t=!0):xt===rt?(ot.logError(pn(new Error('Missing "thumb_style" in slider'))),t=!0):Et===rt?(ot.logError(pn(new Error('Missing "track_active_style" in slider'))),t=!0):kt===rt&&(ot.logError(pn(new Error('Missing "track_inactive_style" in slider'))),t=!0),t!==Pt&&n(14,Pt=t)}768&t.$$.dirty[0]&&n(52,g=mn(Math.max(...[xt.width,wt.width,0].filter(Fn)))),768&t.$$.dirty[0]&&n(51,m=mn(Math.max(...[xt.height,wt.height,0].filter(Fn)))),112&t.$$.dirty[0]&&n(50,v=($t-st)/(ut-st)),176&t.$$.dirty[0]&&n(49,$=pt?(yt-st)/(ut-st):void 0),786432&t.$$.dirty[1]&&n(24,y=void 0!==$?Math.abs($-v):v),786432&t.$$.dirty[1]&&n(23,_=void 0!==$?Math.min($,v):0),13056&t.$$.dirty[0]|4190208&t.$$.dirty[1]&&n(22,b={"--divkit-slider-thumb-width":mn(xt.width),"--divkit-slider-thumb-height":mn(xt.height),"--divkit-slider-thumb-secondary-width":mn(wt.width),"--divkit-slider-thumb-secondary-height":mn(wt.height),"--divkit-slider-text-offset-x":(null===n(43,K=null==vt?void 0:vt.offset)||void 0===K?void 0:K.x)?vn(vt.offset.x):void 0,"--divkit-slider-text-offset-y":(null===n(44,X=null==vt?void 0:vt.offset)||void 0===X?void 0:X.y)?vn(vt.offset.y):void 0,"--divkit-slider-text-secondary-offset-x":(null===n(45,Y=null==Vt?void 0:Vt.offset)||void 0===Y?void 0:Y.x)?vn(Vt.offset.x):void 0,"--divkit-slider-text-secondary-offset-y":(null===n(46,Z=null==Vt?void 0:Vt.offset)||void 0===Z?void 0:Z.y)?vn(Vt.offset.y):void 0,"--divkit-slider-tick-active-width":Ct?mn(Ct.width):void 0,"--divkit-slider-tick-active-height":Ct?mn(Ct.height):void 0,"--divkit-slider-tick-active-border-radius":Ct?mn(Ct.borderRadius):void 0,"--divkit-slider-tick-active-background":(null==Ct?void 0:Ct.background)||void 0,"--divkit-slider-tick-active-box-shadow":(null==Ct?void 0:Ct.boxShadow)||void 0,"--divkit-slider-tick-inactive-width":At?mn(At.width):void 0,"--divkit-slider-tick-inactive-height":At?mn(At.height):void 0,"--divkit-slider-tick-inactive-border-radius":At?mn(At.borderRadius):void 0,"--divkit-slider-tick-inactive-background":(null==At?void 0:At.background)||void 0,"--divkit-slider-tick-inactive-box-shadow":(null==At?void 0:At.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":$})},n(21,x={}),[Q,tt,et,nt,st,ut,$t,yt,xt,wt,kt,Et,vt,Vt,Pt,at,lt,gt,mt,jt,Dt,x,b,_,y,h,f,p,d,u,c,s,l,a,i,o,r,pt,ft,ht,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=at.getBoundingClientRect(),a=(o-i.left)/i.width,l=(ut-st)*a,s=Math.round(Ii(l,st,ut));n(16,lt=s<($t+yt)/2==$t<yt)},St,Nt,K,X,Y,Z,Ct,At,$,v,m,g,w,k,E,C,A,V,j,D,P,S,F,I,N,z,t=>St(t,"first"),t=>St(t,"second"),function(t){me[t?"unshift":"push"]((()=>{at=t,n(15,at)}))}]}const qi={input:"divkit-c3a4",input__wrapper:"divkit-ef7e",input__holder:"divkit-bb3d",input_multiline:"divkit-e48a",input__input:"divkit-f11e","input_highlight-color":"divkit-cc00","input_vertical-overflow":"divkit-b707"};function Hi(t){let e,n;return e=new ur({props:{cls:jn("input",qi,t[12]),style:t[11],customDescription:!0,customActions:"input",json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Yi]},$$scope:{ctx:t}}}),{c(){Re(e.$$.fragment)},l(t){We(e.$$.fragment,t)},m(t,r){Le(e,t,r),n=!0},p(t,n){const r={};4096&n[0]&&(r.cls=jn("input",qi,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||(Ie(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function Gi(t){let e;return{c(){e=Wt("")},l(t){e=te(t,"")},m(t,n){Jt(t,e,n)},d(t){t&&Ot(e)}}}function Ki(t){let e,n,r,o;return{c(){e=Bt("input"),this.h()},l(t){e=Zt(t,"INPUT",{type:!0,class:!0,autocomplete:!0,autocapitalize:!0,"aria-label":!0,placeholder:!0}),this.h()},h(){Ht(e,"type",t[9]),Ht(e,"class",n=qi.input__input),Ht(e,"autocomplete","off"),Ht(e,"autocapitalize","off"),Ht(e,"aria-label",t[10]),Ht(e,"placeholder",t[15]),e.value=t[8]},m(n,i){Jt(n,e,i),t[57](e),r||(o=[qt(e,"input",t[29]),qt(e,"mousedown",(function(){gt(t[16]?t[30]:void 0)&&(t[16]?t[30]:void 0).apply(this,arguments)})),qt(e,"click",(function(){gt(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]&&Ht(e,"type",t[9]),1024&r[0]&&Ht(e,"aria-label",t[10]),32768&r[0]&&Ht(e,"placeholder",t[15]),256&r[0]&&e.value!==t[8]&&(e.value=t[8])},d(n){n&&Ot(e),t[57](null),r=!1,ht(o)}}}function Xi(t){let e,n,r,o;return{c(){e=Bt("textarea"),this.h()},l(t){e=Zt(t,"TEXTAREA",{class:!0,autocomplete:!0,autocapitalize:!0,"aria-label":!0,placeholder:!0}),Kt(e).forEach(Ot),this.h()},h(){Ht(e,"class",n=qi.input__input),Ht(e,"autocomplete","off"),Ht(e,"autocapitalize","off"),Ht(e,"aria-label",t[10]),Ht(e,"placeholder",t[15]),e.value=t[8]},m(n,i){Jt(n,e,i),t[56](e),r||(o=[qt(e,"input",t[29]),qt(e,"mousedown",(function(){gt(t[16]?t[30]:void 0)&&(t[16]?t[30]:void 0).apply(this,arguments)})),qt(e,"click",(function(){gt(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]&&Ht(e,"aria-label",t[10]),32768&r[0]&&Ht(e,"placeholder",t[15]),256&r[0]&&(e.value=t[8])},d(n){n&&Ot(e),t[56](null),r=!1,ht(o)}}}function Yi(t){let e,n,r,o,i,a,l=t[8].endsWith("\n")||!t[8],s=l&&Gi();function c(t,e){return t[4]?Xi:Ki}let u=c(t),d=u(t);return{c(){e=Bt("span"),n=Bt("span"),r=Wt(t[8]),s&&s.c(),i=Lt(),d.c(),this.h()},l(o){e=Zt(o,"SPAN",{class:!0});var a=Kt(e);n=Zt(a,"SPAN",{class:!0,"aria-hidden":!0});var l=Kt(n);r=te(l,t[8]),s&&s.l(l),l.forEach(Ot),i=ee(a),d.l(a),a.forEach(Ot),this.h()},h(){Ht(n,"class",o=qi.input__holder),Ht(n,"aria-hidden","true"),Ht(e,"class",a=qi.input__wrapper)},m(o,a){Jt(o,e,a),Mt(e,n),Mt(n,r),s&&s.m(n,null),t[55](n),Mt(e,i),d.m(e,null)},p(t,o){256&o[0]&&ne(r,t[8]),256&o[0]&&(l=t[8].endsWith("\n")||!t[8]),l?s||(s=Gi(),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&&Ot(e),s&&s.d(),t[55](null),d.d()}}}function Zi(t){let e,n,r=!t[7]&&Hi(t);return{c(){r&&r.c(),e=Ut()},l(t){r&&r.l(t),e=Ut()},m(t,o){r&&r.m(t,o),Jt(t,e,o),n=!0},p(t,n){t[7]?r&&(Se(),Ne(r,1,1,(()=>{r=null})),Fe()):r?(r.p(t,n),128&n[0]&&Ie(r,1)):(r=Hi(t),r.c(),Ie(r,1),r.m(e.parentNode,e))},i(t){n||(Ie(r),n=!0)},o(t){Ne(r),n=!1},d(t){r&&r.d(t),t&&Ot(e)}}}function Qi(t,e,n){let r,o,i,a,l,s,c,u,d,p,f,h,g,m,v,$,y,_,b,x,w=ct,k=ct;t.$$.on_destroy.push((()=>w())),t.$$.on_destroy.push((()=>k()));let{json:E={}}=e,{templateContext:A}=e,{origJson:V}=e,{layoutParams:j}=e;const D=fe(dn);let P,S,F=!1,I=!1;const N=D.getJsonWithVars(E.text_variable);let z=!1;N||(z=!0,D.logError(pn(new Error('Missing "text_variable" in "input"'))));let M=N&&D.getVariable(N,"string")||Qe("temp","string","");bt(t,M,(t=>n(54,b=t)));let J="";const O=D.getDerivedFromVars(E.hint_text);bt(t,O,(t=>n(53,_=t)));const T=D.getDerivedFromVars(E.hint_color);bt(t,T,(t=>n(52,y=t)));let B="";const R=D.getDerivedFromVars(E.font_size);bt(t,R,(t=>n(51,$=t)));let W=12;const L=D.getDerivedFromVars(E.font_weight);let U;bt(t,L,(t=>n(50,v=t)));const q=D.getDerivedFromVars(E.line_height);let H;bt(t,q,(t=>n(49,m=t)));const G=D.getDerivedFromVars(E.letter_spacing);bt(t,G,(t=>n(48,g=t)));let K="";const X=D.getDerivedFromVars(E.text_color);bt(t,X,(t=>n(47,h=t)));let Y="#000";const Z=D.getDerivedFromVars(E.highlight_color);bt(t,Z,(t=>n(46,f=t)));let Q="";const tt=D.getDerivedFromVars(E.keyboard_type);bt(t,tt,(t=>n(45,p=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=D.getDerivedFromVars(E.max_visible_lines);bt(t,ot,(t=>n(44,d=t)));let it="",at="";const lt=D.getDerivedFromVars(E.select_all_on_focus);function st(){n(32,I=S.scrollHeight>S.offsetHeight)}return bt(t,lt,(t=>n(16,x=t))),ue((()=>{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,J=b),4194304&t.$$.dirty[1]&&n(15,r=_),2097156&t.$$.dirty[1]&&n(33,B=C(y,1,B)),1048584&t.$$.dirty[1]&&n(34,W=pr($,W)),524304&t.$$.dirty[1]&&n(35,U=gr(v,U)),262152&t.$$.dirty[1]){const t=m;fr(t)&&n(36,H=t/W)}131080&t.$$.dirty[1]&&Sn(g)&&n(37,K=mn(g/W*10)),65664&t.$$.dirty[1]&&n(38,Y=C(h,1,Y)),33024&t.$$.dirty[1]&&n(39,Q=C(f,1,Q)),16384&t.$$.dirty[1]&&p&&p in et&&(n(9,rt=et[p]),n(40,nt=p)),512&t.$$.dirty[1]&&n(4,o="multi_line_text"===nt),1&t.$$.dirty[0]&&(n(14,i=D.getDerivedFromVars(E.paddings)),k(),k=_t(i,(t=>n(43,u=t)))),12320&t.$$.dirty[1]&&fr(d)&&n(41,it="calc(".concat(d*(H||1.25)+"em"," + ").concat(vn(zn(null==u?void 0:u.top,0)+zn(null==u?void 0:u.bottom,0)),")")),1&t.$$.dirty[0]&&(n(13,a=D.getDerivedFromVars(E.accessibility)),w(),w=_t(a,(t=>n(42,c=t)))),2048&t.$$.dirty[1]&&((null==c?void 0:c.description)?n(10,at=c.description):D.logError(pn(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":I,multiline:o}),1532&t.$$.dirty[1]&&n(11,s={"--divkit-input-hint-color":B,"--divkit-input-highlight-color":Q,"font-size":mn(W),"font-weight":U,"line-height":H,"letter-spacing":K,color:Y,"max-height":it})},[E,A,V,j,o,P,S,z,J,rt,at,s,l,a,i,r,x,M,O,T,R,L,q,G,X,Z,tt,ot,lt,function(t){const e=t.target.value||"";M.setValue(e),st()},function(){F=!1,setTimeout((()=>{F=!0}),250)},function(){F||P.select()},I,B,W,U,H,K,Y,Q,nt,it,c,u,d,p,f,h,g,m,v,$,y,_,b,function(t){me[t?"unshift":"push"]((()=>{S=t,n(6,S)}))},function(t){me[t?"unshift":"push"]((()=>{P=t,n(5,P)}))},function(t){me[t?"unshift":"push"]((()=>{P=t,n(5,P)}))}]}const ta={text:class extends He{constructor(t){super(),qe(this,t,Ir,Fr,$t,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},container:class extends He{constructor(t){super(),qe(this,t,Br,Tr,$t,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},separator:class extends He{constructor(t){super(),qe(this,t,Hr,qr,$t,{json:0,templateContext:1,origJson:2,layoutParams:3})}},image:ro,gif:ro,grid:class extends He{constructor(t){super(),qe(this,t,ho,fo,$t,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},gallery:class extends He{constructor(t){super(),qe(this,t,jo,Vo,$t,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},tabs:class extends He{constructor(t){super(),qe(this,t,Ro,Bo,$t,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},state:class extends He{constructor(t){super(),qe(this,t,gi,fi,$t,{json:0,templateContext:1,origJson:2,layoutParams:3})}},pager:class extends He{constructor(t){super(),qe(this,t,wi,xi,$t,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},indicator:class extends He{constructor(t){super(),qe(this,t,Di,ji,$t,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},slider:class extends He{constructor(t){super(),qe(this,t,Ui,Wi,$t,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},input:class extends He{constructor(t){super(),qe(this,t,Qi,Zi,$t,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}}};function ea(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&&Re(e.$$.fragment),n=Ut()},l(t){e&&We(e.$$.fragment,t),n=Ut()},m(t,o){e&&Le(e,t,o),Jt(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){Se();const t=e;Ne(t.$$.fragment,1,0,(()=>{Ue(t,1)})),Fe()}o?(e=new o(i(t)),Re(e.$$.fragment),Ie(e.$$.fragment,1),Le(e,n.parentNode,n)):e=null}else o&&e.$set(a)},i(t){r||(e&&Ie(e.$$.fragment,t),r=!0)},o(t){e&&Ne(e.$$.fragment,t),r=!1},d(t){t&&Ot(n),e&&Ue(e,t)}}}function na(t){let e,n,r=t[5]&&ea(t);return{c(){r&&r.c(),e=Ut()},l(t){r&&r.l(t),e=Ut()},m(t,o){r&&r.m(t,o),Jt(t,e,o),n=!0},p(t,n){let[o]=n;t[5]?r?(r.p(t,o),32&o&&Ie(r,1)):(r=ea(t),r.c(),Ie(r,1),r.m(e.parentNode,e)):r&&(Se(),Ne(r,1,1,(()=>{r=null})),Fe())},i(t){n||(Ie(r),n=!0)},o(t){Ne(r),n=!1},d(t){r&&r.d(t),t&&Ot(e)}}}function ra(t,e,n){let{div:r}=e,{templateContext:o}=e,{origJson:i}=e,{layoutParams:a}=e;const l=fe(dn);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&&ta[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&&ta[s.type]||void 0),!u))){let t;t=(null==s?void 0:s.type)&&l.hasTemplate(s.type)?"Recursive template":"Unknown component",l.logError(pn(new Error(t),{additional:{component:(null==s?void 0:s.type)||"<missing>"}}))}},[r,i,a,s,c,u,o]}const oa=class extends He{constructor(t){super(),qe(this,t,ra,na,$t,{div:0,templateContext:6,origJson:1,layoutParams:2})}};function ia(t,e,n){const r=t.slice();return r[1]=e[n],r}function aa(t){let e,n,r,o=[...Object.keys(t[0])],i=[];for(let e=0;e<o.length;e+=1)i[e]=la(ia(t,o,e));return{c(){e=Rt("svg"),n=Rt("defs");for(let t=0;t<i.length;t+=1)i[t].c();this.h()},l(t){e=Qt(t,"svg",{class:!0,"aria-hidden":!0});var r=Kt(e);n=Qt(r,"defs",{});var o=Kt(n);for(let t=0;t<i.length;t+=1)i[t].l(o);o.forEach(Ot),r.forEach(Ot),this.h()},h(){Ht(e,"class",r="divkit-dc22"),Ht(e,"aria-hidden","true")},m(t,r){Jt(t,e,r),Mt(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=ia(t,o,r);i[r]?i[r].p(a,e):(i[r]=la(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&&Ot(e),Tt(i,t)}}}function la(t){let e,n,r,o,i;return{c(){e=Rt("filter"),n=Rt("feFlood"),o=Rt("feComposite"),this.h()},l(t){e=Qt(t,"filter",{id:!0});var r=Kt(e);n=Qt(r,"feFlood",{"flood-color":!0}),Kt(n).forEach(Ot),o=Qt(r,"feComposite",{in2:!0,operator:!0}),Kt(o).forEach(Ot),r.forEach(Ot),this.h()},h(){Ht(n,"flood-color",r=t[1]),Ht(o,"in2","SourceGraphic"),Ht(o,"operator","in"),Ht(e,"id",i=t[0][t[1]])},m(t,r){Jt(t,e,r),Mt(e,n),Mt(e,o)},p(t,o){1&o&&r!==(r=t[1])&&Ht(n,"flood-color",r),1&o&&i!==(i=t[0][t[1]])&&Ht(e,"id",i)},d(t){t&&Ot(e)}}}function sa(t){let e,n=Object.keys(t[0]).length,r=n&&aa(t);return{c(){r&&r.c(),e=Ut()},l(t){r&&r.l(t),e=Ut()},m(t,n){r&&r.m(t,n),Jt(t,e,n)},p(t,o){let[i]=o;1&i&&(n=Object.keys(t[0]).length),n?r?r.p(t,i):(r=aa(t),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null)},i:ct,o:ct,d(t){r&&r.d(t),t&&Ot(e)}}}function ca(t,e,n){let{svgFiltersMap:r}=e;return t.$$set=t=>{"svgFiltersMap"in t&&n(0,r=t.svgFiltersMap)},[r]}const ua=class extends He{constructor(t){super(),qe(this,t,ca,sa,$t,{svgFiltersMap:0})}};function da(t,e,n,r){const o=n[t.type];if(!o)return r(pn(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(pn(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 pa(){}function fa(t){return{subscribe:e=>(e(t),pa)}}class ha{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=rn(t,this.ast);if("error"===n.type)return void e(pn(new Error("Expression execution error"),{additional:{message:n.value}}));const r=n.value;return r instanceof Date?D(r):"boolean"===n.type?Boolean(r):r}catch(t){return void e(pn(new Error("Expression execution error")))}}}function ga(t,e,n){if(t)if("string"==typeof t){if((r=t).indexOf("@{")>-1||r.indexOf("\\")>-1){e.hasExpression=!0;try{const n=y(t,{startRule:"JsonStringContents"}),r=M(n);return e.vars.push(...r),new ha(n)}catch(e){return void n(pn(new Error("Unable to parse expression"),{additional:{expression:t}}))}}}else{if(Array.isArray(t))return t.map((t=>ga(t,e,n)));if("object"==typeof t){const r={};for(const o in t)r[o]=ga(t[o],e,n);return r}}var r;return t}function ma(t,e,n){if(t){if(t instanceof ha)return t.apply(e,n);if(Array.isArray(t))return t.map((t=>ma(t,e,n)));if("object"==typeof t){const r={};for(const o in t)r[o]=ma(t[o],e,n);return r}}return t}function va(t,e){const n={vars:[],hasExpression:!1},r=ga(t,n,e);return{vars:[...new Set(n.vars)],hasExpression:n.hasExpression,applyVars:t=>ma(r,t,e)}}const $a={pagers:function(){return Ke(new Map)}},ya=new Map,_a=new Map;function ba(t){const e=ya.get(t)||Ke("");return ya.has(t)||ya.set(t,e),e}function xa(t){const e=_a.get(t)||new Map;return _a.has(t)||_a.set(t,e),e}class wa{setVariable(t){const e=t.getName(),n=xa(this);if(n.has(e))throw new Error("Variable with the same name already exist");n.set(e,t),ba(this).set(e)}getVariable(t){return xa(this).get(t)}}function ka(){return new wa}function Ea(t){let e,n,r,o,i,a,l,s;return n=new ua({props:{svgFiltersMap:t[1]}}),o=new oa({props:{div:t[5],templateContext:t[4]}}),{c(){e=Bt("div"),Re(n.$$.fragment),r=Lt(),Re(o.$$.fragment),this.h()},l(t){e=Zt(t,"DIV",{class:!0});var i=Kt(e);We(n.$$.fragment,i),r=ee(i),We(o.$$.fragment,i),i.forEach(Ot),this.h()},h(){Ht(e,"class",i=""+(on+(t[2]?" ".concat(sn):"")))},m(t,i){Jt(t,e,i),Le(n,e,null),Mt(e,r),Le(o,e,null),a=!0,l||(s=qt(e,"touchstart",Aa,{passive:!0}),l=!0)},p(t,r){const o={};2&r[0]&&(o.svgFiltersMap=t[1]),n.$set(o),(!a||4&r[0]&&i!==(i=""+(on+(t[2]?" ".concat(sn):""))))&&Ht(e,"class",i)},i(t){a||(Ie(n.$$.fragment,t),Ie(o.$$.fragment,t),a=!0)},o(t){Ne(n.$$.fragment,t),Ne(o.$$.fragment,t),a=!1},d(t){t&&Ot(e),Ue(n),Ue(o),l=!1,s()}}}function Ca(t){let e,n,r=!t[0]&&t[5]&&Ea(t);return{c(){r&&r.c(),e=Ut()},l(t){r&&r.l(t),e=Ut()},m(t,o){r&&r.m(t,o),Jt(t,e,o),n=!0},p(t,n){!t[0]&&t[5]?r?(r.p(t,n),1&n[0]&&Ie(r,1)):(r=Ea(t),r.c(),Ie(r,1),r.m(e.parentNode,e)):r&&(Se(),Ne(r,1,1,(()=>{r=null})),Fe())},i(t){n||(Ie(r),n=!0)},o(t){Ne(r),n=!1},d(t){r&&r.d(t),t&&Ot(e)}}}function Aa(){}function Va(t,e,n){let r;var o,i,a;let{id:l}=e,{json:s={}}=e,{platform:c="auto"}=e,{theme:u="system"}=e,{globalVariablesController:d=new wa}=e,{onError:p}=e,{onStat:f}=e,{onCustomAction:h}=e,{onComponent:g}=e,m=Ke("desktop"===c);if(bt(t,m,(t=>n(2,r=t))),"auto"===c&&"undefined"!=typeof matchMedia){const t=matchMedia("(any-pointer: coarse)");m.set(!t.matches),t.addListener((()=>{m.set(!t.matches)}))}let v="light";if("light"===u||"dark"===u)v=u;else if("system"===u)if("undefined"!=typeof matchMedia){const t=matchMedia("(prefers-color-scheme: dark)");v=t.matches?"dark":"light",t.addListener((()=>{v=t.matches?"dark":"light",W&&W[v].forEach((t=>{const e=C.get(t.name);e&&e.setValue(t.color)}))}))}else v="light";else j(pn(new Error("Unsupported theme")));let $=!1;s||($=!0,j(pn(new Error('"json" prop is required')))),l||($=!0,j(pn(new Error('"id" prop is required'))));let _=function(t){if(!t)return pn(new Error("Missing object"));const e=t.card,n=t.templates||{};if(!e)return pn(new Error("Missing card"));if(!e.states||!e.states.length)return pn(new Error("Missing states"));for(const t in n)if(n.hasOwnProperty(t)&&t in ta)return pn(new Error("Template name collision"),{additional:{templateName:t}});for(let t=0;t<e.states.length;++t){if(!e.states[t].div)return pn(new Error("Missing state div"),{additional:{stateId:e.states[t].state_id}});if("number"!=typeof e.states[t].state_id)return pn(new Error("Missing state_id"),{additional:{index:t}})}return null}(s);const b=s.templates||{};_&&($=!0,j(_));const x={stateChange:!1},w=ba(d),k=xa(d),E=new Map,C=new Map,A=new Map;function V(t){const e=va(t,j);return e.vars.length?e.applyVars(C):t}function j(t){p?p({error:t}):"warn"===(null==t?void 0:t.level)?console.warn(t):console.error(t)}let D=0;function P(t){return"".concat(l,"-").concat(D++)}let S={},F={};function I(t){const e=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=T,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=z(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=z(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=z(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=C.get(n);t?t.set(o):j(pn(new Error("Cannot find variable"),{additional:{name:n}}))}else j(pn(new Error("Incorrect set_variable_action"),{additional:{url:t}}));break;default:j(pn(new Error("Unknown type of action"),{additional:{url:e}}))}}catch(t){j(pn(t,{additional:{url:e}}))}}const N=new Map;function z(t){if(N.has(t))return N.get(t);j(pn(new Error("Missing instance with id"),{additional:{id:t}}))}const J=new Map;function O(t){for(const e of t)C.has(e)&&t.delete(e);return t}pe(dn,{logError:j,logStat:function(t,e){f&&f({type:t,action:e})},hasTemplate:function(t){return t in b},processTemplate:function(t,e){if(!t)return{json:t,templateContext:e};const n=new Set([t.type]);for(;t.type in b;){if(({json:t,templateContext:e}=da(t,e,b,j)),n.has(t.type))return{json:t,templateContext:e};n.add(t.type)}return{json:t,templateContext:e}},genId:P,genClass:function(t){return"divkit-".concat(P())},execAction:I,execCustomAction:function(t){null==h||h(t)},isRunning:function(t){return x[t]},setRunning:function(t,e){x[t]=e},registerInstance:function(t,e){N.has(t)?j(pn(new Error("Duplicate instance id"),{additional:{id:t}})):N.set(t,e)},unregisterInstance:function(t){N.delete(t)},addSvgFilter:function(t){if(F[t]=F[t]||0,++F[t],S[t])return S[t];const e="".concat(P(),"-svg-filter");return n(1,S=Object.assign(Object.assign({},S),{[t]:e})),e},removeSvgFilter:function(t){t&&F[t]&&0==--F[t]&&n(1,S=Object.keys(S).reduce(((t,e)=>(F[e]&&(t[e]=S[e]),t)),{}))},getDerivedFromVars:function(t){if(!t)return fa(t);const e=va(t,j);return e.vars.length?Xe(e.vars.map((t=>C.get(t)||function(t){const e=A.get(t)||Ke(void 0);return A.has(t)||A.set(t,e),e}(t))).filter(yn),(()=>e.applyVars(C))):e.hasExpression?fa(e.applyVars(C)):fa(t)},getJsonWithVars:V,getStore:function(t){return J.has(t)||function(t){J.has(t)||J.set(t,$a[t]())}(t),J.get(t)},getVariable:function(t,e){const n=C.get(t);if(n){const r=n.getType();if(r!==e)return void j(pn(new Error('Variable should have type "'.concat(e,'"')),{additional:{name:t,foundType:r}}))}return n},isDesktop:m,registerComponent:function(t){let{node:e,json:n,origJson:r,templateContext:o}=t;g&&g({type:"mount",node:e,json:n,origJson:r,templateContext:o})},unregisterComponent:function(t){let{node:e}=t;g&&g({type:"destroy",node:e})}}),pe(Bn,{hasAction:()=>!1});const T={setState(t){throw new Error("Not implemented")},getChild(t){if(B&&B.has(t))return B.get(t);j(pn(new Error("Missing state block with id"),{additional:{id:t}}))}};let B=null;pe(Pn,{registerInstance(t,e){B||(B=new Map),B.has(t)?j(pn(new Error("Duplicate state with id"),{additional:{id:t}})):B.set(t,e)},unregisterInstance(t){null==B||B.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 R=null===(o=null==s?void 0:s.card)||void 0===o?void 0:o.variables;Array.isArray(R)&&R.forEach((t=>{if(t&&t.type in Ze&&t.name){if(E.has(t.name))return void j(pn(new Error("Duplicate variable"),{additional:{name:t.name}}));try{const e=Qe(t.name,t.type,t.value);E.set(t.name,e),C.set(t.name,e)}catch(e){j(pn(e,{additional:{name:t.name}}))}}}));const W=s.palette;W&&W[v].forEach((t=>{if(E.has(t.name))j(pn(new Error("Duplicate variable"),{additional:{name:t.name}}));else try{const e=Qe(t.name,"color",t.color);E.set(t.name,e),C.set(t.name,e)}catch(e){j(pn(e,{additional:{name:t.name}}))}}));for(const[t,e]of k)C.has(t)||C.set(t,e);w.subscribe((t=>{if(t&&!C.has(t)){const e=k.get(t);C.set(t,e);const n=A.get(t);if(n){let t=0;e.subscribe((()=>{n.set(++t)}))}}}));const L=null===(i=null==s?void 0:s.card)||void 0===i?void 0:i.variable_triggers;Array.isArray(L)&&L.forEach((t=>{let e=!1;if("string"!=typeof t.condition)return void j(pn(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=y(t.condition,{startRule:"JsonStringContents"}),o=M(r);if(!o.length)return void j(pn(new Error("variable_trigger must have variables in the condition"),{additional:{condition:t.condition}}));(function(t){const e=new Set(t);return O(e),e.size?new Promise((t=>{const n=w.subscribe((()=>{O(e),e.size||(n(),t())}))})):Promise.resolve()})(o).then((()=>{Xe(o.map((t=>C.get(t))).filter(yn),(()=>rn(C,r))).subscribe((r=>{"error"!==r.type?(r.value&&("on_variable"===n||"on_condition"===n&&!1===e)&&t.actions.forEach((t=>{const e=V(t);e.log_id&&I(e)})),e=Boolean(r.value)):j(pn(new Error("variable_trigger condition execution error"),{additional:{message:r.value}}))}))}))}catch(e){j(pn(new Error("Unable to parse variable_trigger"),{additional:{condition:t.condition}}))}else j(pn(new Error("variable_trigger has an unsupported mode"),{additional:{mode:n}}))}));const U=null===(a=s.card)||void 0===a?void 0:a.states,q=U&&!$?{type:"state",id:"root",width:{type:"match_parent"},height:{type:"match_parent"},states:U.map((t=>({state_id:t.state_id.toString(),div:t.div})))}:void 0;return t.$$set=t=>{"id"in t&&n(6,l=t.id),"json"in t&&n(7,s=t.json),"platform"in t&&n(8,c=t.platform),"theme"in t&&n(9,u=t.theme),"globalVariablesController"in t&&n(10,d=t.globalVariablesController),"onError"in t&&n(11,p=t.onError),"onStat"in t&&n(12,f=t.onStat),"onCustomAction"in t&&n(13,h=t.onCustomAction),"onComponent"in t&&n(14,g=t.onComponent)},[$,S,r,m,{},q,l,s,c,u,d,p,f,h,g,function(t,e){if("string"==typeof e||"number"==typeof e||"boolean"==typeof e){const n=C.get(t);n&&n.setValue(e)}},function(t){const e=C.get(t);return null==e?void 0:e.getValue()},I]}const ja=class extends He{constructor(t){super(),qe(this,t,Va,Ca,$t,{id:6,json:7,platform:8,theme:9,globalVariablesController:10,onError:11,onStat:12,onCustomAction:13,onComponent:14,setVariable:15,getVariable:16,execAction:17},null,[-1,-1,-1])}get setVariable(){return this.$$.ctx[15]}get getVariable(){return this.$$.ctx[16]}get execAction(){return this.$$.ctx[17]}};function Da(t){return new ja({target:t.target,props:{id:t.id,json:t.json,globalVariablesController:t.globalVariablesController,onStat:t.onStat,onCustomAction:t.onCustomAction,onError:t.onError,onComponent:t.onComponent,platform:t.platform,theme:t.theme},hydrate:t.hydrate})}function Pa(t,e){let n;try{n=y(t,{startRule:"json"===(null==e?void 0:e.type)?"JsonStringContents":"start"})}catch(t){return{type:"error",value:"Unable to parse expression"}}return rn((null==e?void 0:e.variables)||new Map,n)}function Sa(){return Array.from(_.keys())}(window.Ya=window.Ya||{}).Divkit=e})();
|
|
2
2
|
//# sourceMappingURL=client-devtool.js.map
|