@divkitframework/divkit 29.3.0 → 29.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- 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
- package/typings/common.d.ts +2 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)},e={};t.d(e,{Hy:()=>eu,M:()=>Bc,Os:()=>mr,fz:()=>au,iL:()=>su,e4:()=>lu,_0:()=>ru,BJ:()=>cu,sY:()=>ou,Z3:()=>V,xn:()=>w});const n="function"==typeof BigInt;function r(t){return n?BigInt(t):Number(t)}const i=r("9223372036854775807"),o=r("-9223372036854775808");function a(t){const e=r(t);if(e>i||e<o)throw new Error("Integer overflow.");return e}const s=a(0);function l(t){let e=t;return e<0&&(e=-e),e}function c(t){let e=0;return t>0?e=1:t<0&&(e=-1),a(e)}function u(t,e){return e.reduce(((t,e)=>({type:"BinaryExpression",operator:e[1],left:t,right:e[3]})),t)}function d(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 p(t){try{return a(t)}catch(e){throw new Error("Value ".concat(t," can't be converted to Integer type."))}}function f(t){if("'"===t||"\\"===t)return t;throw new Error("Incorrect string escape")}function g(t,e,n,r){var i=Error.call(this,t);return Object.setPrototypeOf&&Object.setPrototypeOf(i,g.prototype),i.expected=e,i.found=n,i.location=r,i.name="SyntaxError",i}function m(t,e,n){return n=n||" ",t.length>e?t:(e-=t.length,t+(n+=n.repeat(e)).slice(0,e))}function v(t,e){var n,r={},i=(e=void 0!==e?e:{}).grammarSource,o={start:Oe,JsonStringContents:function(){var t,e,n;for(t=xe,e=[],n=Te();n!==r;)e.push(n),n=Te();return ke=t,e=zt(e)}},a=Oe,s="@{",l="}",c="@{}",m="\\",v="?",y=":",$="!:",_="||",b="&&",w="==",x="!=",k=">=",E=">",C="<=",A="<",V="+",D="-",j="/",F="*",P="%",S="!",I="(",N=")",O=",",T="'",M=".",z="e",J="E",B="true",R="false",L=/^[^}]/,U=/^[^'}]/,H=/^[0-9]/,W=/^[a-zA-Z_0-9.]/,q=/^[a-zA-Z_]/,G=/^[ \t\r\n]/,K=je("@{",!1),Y=je("}",!1),Z=je("@{}",!1),X=je("\\",!1),Q={type:"any"},tt=Fe(["}"],!0,!1),et=je("?",!1),nt=je(":",!1),rt=je("!:",!1),it=je("||",!1),ot=je("&&",!1),at=je("==",!1),st=je("!=",!1),lt=je(">=",!1),ct=je(">",!1),ut=je("<=",!1),dt=je("<",!1),ht=je("+",!1),pt=je("-",!1),ft=je("/",!1),gt=je("*",!1),mt=je("%",!1),vt=je("!",!1),yt=je("(",!1),$t=je(")",!1),_t=je(",",!1),bt=Pe("string"),wt=je("'",!1),xt=Fe(["'","}"],!0,!1),kt=Pe("integer"),Et=Fe([["0","9"]],!1,!1),Ct=Pe("number"),At=je(".",!1),Vt=je("e",!1),Dt=je("E",!1),jt=Pe("boolean"),Ft=je("true",!1),Pt=je("false",!1),St=Fe([["a","z"],["A","Z"],"_",["0","9"],"."],!1,!1),It=Pe("identifier"),Nt=Fe([["a","z"],["A","Z"],"_"],!1,!1),Ot=Pe("whitespace"),Tt=Fe([" ","\t","\r","\n"],!1,!1),Mt=function(t){return t},zt=function(t){return h(t)},Jt=function(t){return t},Bt=function(){return""},Rt=function(){return De()},Lt=function(){throw new Error("Error tokenizing '"+t+"'.")},Ut=function(){throw new Error("Error tokenizing '"+t+"'.")},Ht=function(t){return t},Wt=function(t){return f(t)},qt=function(){throw new Error("Error tokenizing '"+t+"'.")},Gt=function(t,e,n){return{type:"ConditionalExpression",test:t,consequent:e,alternate:n}},Kt=function(t,e){return{type:"TryExpression",test:t,alternate:e}},Yt=function(t,e){return d(t,e)},Zt=function(t,e){return d(t,e)},Xt=function(t,e){return u(t,e)},Qt=function(t,e){return u(t,e)},te=function(t,e){return u(t,e)},ee=function(t,e){return u(t,e)},ne=function(t,e){return{type:"UnaryExpression",operator:t,argument:e}},re=function(t,e){return{type:"CallExpression",callee:t,arguments:e}},ie=function(t){return{type:"Variable",id:t}},oe=function(t,e){return[t,...e]},ae=function(t){return t},se=function(t){return t},le=function(t){return h(t)},ce=function(t){return t},ue=function(){return""},de=function(){return De()},he=function(){throw new Error("Error tokenizing '"+t+"'.")},pe=function(){throw new Error("Error tokenizing '"+t+"'.")},fe=function(t){return t},ge=function(t){return f(t)},me=function(){throw new Error("Error tokenizing '"+t+"'.")},ve=function(){return{type:"IntegerLiteral",value:p(De())}},ye=function(){return{type:"NumberLiteral",value:parseFloat(De())}},$e=function(){return{type:"NumberLiteral",value:parseFloat(De())}},_e=function(){return{type:"BooleanLiteral",value:!0}},be=function(){return{type:"BooleanLiteral",value:!1}},we=function(){return{type:"Identifier",name:De()}},xe=0,ke=0,Ee=[{line:1,column:1}],Ce=0,Ae=[],Ve=0;if("startRule"in e){if(!(e.startRule in o))throw new Error("Can't start parsing from rule \""+e.startRule+'".');a=o[e.startRule]}function De(){return t.substring(ke,xe)}function je(t,e){return{type:"literal",text:t,ignoreCase:e}}function Fe(t,e,n){return{type:"class",parts:t,inverted:e,ignoreCase:n}}function Pe(t){return{type:"other",description:t}}function Se(e){var n,r=Ee[e];if(r)return r;for(n=e-1;!Ee[n];)n--;for(r={line:(r=Ee[n]).line,column:r.column};n<e;)10===t.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return Ee[e]=r,r}function Ie(t,e,n){var r=Se(t),o=Se(e),a={source:i,start:{offset:t,line:r.line,column:r.column},end:{offset:e,line:o.line,column:o.column}};return n&&i&&"function"==typeof i.offset&&(a.start=i.offset(a.start),a.end=i.offset(a.end)),a}function Ne(t){xe<Ce||(xe>Ce&&(Ce=xe,Ae=[]),Ae.push(t))}function Oe(){var t,e;return t=xe,Ze(),(e=Me())!==r?(Ze(),ke=t,t=Mt(e)):(xe=t,t=r),t}function Te(){var e,n,i,o,a;if(e=xe,t.substr(xe,2)===s?(n=s,xe+=2):(n=r,0===Ve&&Ne(K)),n!==r?(i=Ze(),(o=Me())!==r?(Ze(),125===t.charCodeAt(xe)?(a=l,xe++):(a=r,0===Ve&&Ne(Y)),a!==r?(ke=e,e=Jt(o)):(xe=e,e=r)):(xe=e,e=r)):(xe=e,e=r),e===r&&(e=xe,t.substr(xe,3)===c?(n=c,xe+=3):(n=r,0===Ve&&Ne(Z)),n!==r&&(ke=e,n=Bt()),(e=n)===r&&(e=xe,n=xe,Ve++,92===t.charCodeAt(xe)?(i=m,xe++):(i=r,0===Ve&&Ne(X)),i===r&&(t.substr(xe,2)===s?(i=s,xe+=2):(i=r,0===Ve&&Ne(K))),Ve--,i===r?n=void 0:(xe=n,n=r),n!==r?(t.length>xe?(i=t.charAt(xe),xe++):(i=r,0===Ve&&Ne(Q)),i!==r?(ke=e,e=Rt()):(xe=e,e=r)):(xe=e,e=r),e===r))){if(e=xe,t.substr(xe,2)===s?(n=s,xe+=2):(n=r,0===Ve&&Ne(K)),n!==r){if(i=[],L.test(t.charAt(xe))?(o=t.charAt(xe),xe++):(o=r,0===Ve&&Ne(tt)),o!==r)for(;o!==r;)i.push(o),L.test(t.charAt(xe))?(o=t.charAt(xe),xe++):(o=r,0===Ve&&Ne(tt));else i=r;i!==r?(125===t.charCodeAt(xe)?(o=l,xe++):(o=r,0===Ve&&Ne(Y)),o!==r?(ke=e,e=Lt()):(xe=e,e=r)):(xe=e,e=r)}else xe=e,e=r;e===r&&(e=xe,t.substr(xe,2)===s?(n=s,xe+=2):(n=r,0===Ve&&Ne(K)),n!==r&&(ke=e,n=Ut()),(e=n)===r&&(e=xe,92===t.charCodeAt(xe)?(n=m,xe++):(n=r,0===Ve&&Ne(X)),n!==r?(t.substr(xe,2)===s?(i=s,xe+=2):(i=r,0===Ve&&Ne(K)),i!==r?(ke=e,e=Ht(i)):(xe=e,e=r)):(xe=e,e=r),e===r&&(e=xe,92===t.charCodeAt(xe)?(n=m,xe++):(n=r,0===Ve&&Ne(X)),n!==r?(t.length>xe?(i=t.charAt(xe),xe++):(i=r,0===Ve&&Ne(Q)),i!==r?(ke=e,e=Wt(i)):(xe=e,e=r)):(xe=e,e=r),e===r&&(e=xe,92===t.charCodeAt(xe)?(n=m,xe++):(n=r,0===Ve&&Ne(X)),n!==r&&(ke=e,n=qt()),e=n))))}return e}function Me(){var e,n,i,o,a,s;return e=xe,(n=ze())!==r?(Ze(),63===t.charCodeAt(xe)?(i=v,xe++):(i=r,0===Ve&&Ne(et)),i!==r?(Ze(),(o=Me())!==r?(Ze(),58===t.charCodeAt(xe)?(a=y,xe++):(a=r,0===Ve&&Ne(nt)),a!==r?(Ze(),(s=Me())!==r?(ke=e,e=Gt(n,o,s)):(xe=e,e=r)):(xe=e,e=r)):(xe=e,e=r)):(xe=e,e=r)):(xe=e,e=r),e===r&&(e=ze()),e}function ze(){var e,n,i,o;return e=xe,(n=Je())!==r?(Ze(),t.substr(xe,2)===$?(i=$,xe+=2):(i=r,0===Ve&&Ne(rt)),i!==r?(Ze(),(o=Me())!==r?(ke=e,e=Kt(n,o)):(xe=e,e=r)):(xe=e,e=r)):(xe=e,e=r),e===r&&(e=Je()),e}function Je(){var e,n,i,o,a,s,l,c;if(e=xe,(n=Be())!==r){for(i=[],o=xe,a=Ze(),t.substr(xe,2)===_?(s=_,xe+=2):(s=r,0===Ve&&Ne(it)),s!==r?(l=Ze(),(c=Be())!==r?o=a=[a,s,l,c]:(xe=o,o=r)):(xe=o,o=r);o!==r;)i.push(o),o=xe,a=Ze(),t.substr(xe,2)===_?(s=_,xe+=2):(s=r,0===Ve&&Ne(it)),s!==r?(l=Ze(),(c=Be())!==r?o=a=[a,s,l,c]:(xe=o,o=r)):(xe=o,o=r);ke=e,e=Yt(n,i)}else xe=e,e=r;return e}function Be(){var e,n,i,o,a,s,l,c;if(e=xe,(n=Re())!==r){for(i=[],o=xe,a=Ze(),t.substr(xe,2)===b?(s=b,xe+=2):(s=r,0===Ve&&Ne(ot)),s!==r?(l=Ze(),(c=Re())!==r?o=a=[a,s,l,c]:(xe=o,o=r)):(xe=o,o=r);o!==r;)i.push(o),o=xe,a=Ze(),t.substr(xe,2)===b?(s=b,xe+=2):(s=r,0===Ve&&Ne(ot)),s!==r?(l=Ze(),(c=Re())!==r?o=a=[a,s,l,c]:(xe=o,o=r)):(xe=o,o=r);ke=e,e=Zt(n,i)}else xe=e,e=r;return e}function Re(){var e,n,i,o,a,s,l,c;if(e=xe,(n=Le())!==r){for(i=[],o=xe,a=Ze(),t.substr(xe,2)===w?(s=w,xe+=2):(s=r,0===Ve&&Ne(at)),s===r&&(t.substr(xe,2)===x?(s=x,xe+=2):(s=r,0===Ve&&Ne(st))),s!==r?(l=Ze(),(c=Le())!==r?o=a=[a,s,l,c]:(xe=o,o=r)):(xe=o,o=r);o!==r;)i.push(o),o=xe,a=Ze(),t.substr(xe,2)===w?(s=w,xe+=2):(s=r,0===Ve&&Ne(at)),s===r&&(t.substr(xe,2)===x?(s=x,xe+=2):(s=r,0===Ve&&Ne(st))),s!==r?(l=Ze(),(c=Le())!==r?o=a=[a,s,l,c]:(xe=o,o=r)):(xe=o,o=r);ke=e,e=Xt(n,i)}else xe=e,e=r;return e}function Le(){var e,n,i,o,a,s,l,c;if(e=xe,(n=Ue())!==r){for(i=[],o=xe,a=Ze(),t.substr(xe,2)===k?(s=k,xe+=2):(s=r,0===Ve&&Ne(lt)),s===r&&(62===t.charCodeAt(xe)?(s=E,xe++):(s=r,0===Ve&&Ne(ct)),s===r&&(t.substr(xe,2)===C?(s=C,xe+=2):(s=r,0===Ve&&Ne(ut)),s===r&&(60===t.charCodeAt(xe)?(s=A,xe++):(s=r,0===Ve&&Ne(dt))))),s!==r?(l=Ze(),(c=Ue())!==r?o=a=[a,s,l,c]:(xe=o,o=r)):(xe=o,o=r);o!==r;)i.push(o),o=xe,a=Ze(),t.substr(xe,2)===k?(s=k,xe+=2):(s=r,0===Ve&&Ne(lt)),s===r&&(62===t.charCodeAt(xe)?(s=E,xe++):(s=r,0===Ve&&Ne(ct)),s===r&&(t.substr(xe,2)===C?(s=C,xe+=2):(s=r,0===Ve&&Ne(ut)),s===r&&(60===t.charCodeAt(xe)?(s=A,xe++):(s=r,0===Ve&&Ne(dt))))),s!==r?(l=Ze(),(c=Ue())!==r?o=a=[a,s,l,c]:(xe=o,o=r)):(xe=o,o=r);ke=e,e=Qt(n,i)}else xe=e,e=r;return e}function Ue(){var e,n,i,o,a,s,l,c;if(e=xe,(n=He())!==r){for(i=[],o=xe,a=Ze(),43===t.charCodeAt(xe)?(s=V,xe++):(s=r,0===Ve&&Ne(ht)),s===r&&(45===t.charCodeAt(xe)?(s=D,xe++):(s=r,0===Ve&&Ne(pt))),s!==r?(l=Ze(),(c=He())!==r?o=a=[a,s,l,c]:(xe=o,o=r)):(xe=o,o=r);o!==r;)i.push(o),o=xe,a=Ze(),43===t.charCodeAt(xe)?(s=V,xe++):(s=r,0===Ve&&Ne(ht)),s===r&&(45===t.charCodeAt(xe)?(s=D,xe++):(s=r,0===Ve&&Ne(pt))),s!==r?(l=Ze(),(c=He())!==r?o=a=[a,s,l,c]:(xe=o,o=r)):(xe=o,o=r);ke=e,e=te(n,i)}else xe=e,e=r;return e}function He(){var e,n,i,o,a,s,l,c;if(e=xe,(n=We())!==r){for(i=[],o=xe,a=Ze(),47===t.charCodeAt(xe)?(s=j,xe++):(s=r,0===Ve&&Ne(ft)),s===r&&(42===t.charCodeAt(xe)?(s=F,xe++):(s=r,0===Ve&&Ne(gt)),s===r&&(37===t.charCodeAt(xe)?(s=P,xe++):(s=r,0===Ve&&Ne(mt)))),s!==r?(l=Ze(),(c=We())!==r?o=a=[a,s,l,c]:(xe=o,o=r)):(xe=o,o=r);o!==r;)i.push(o),o=xe,a=Ze(),47===t.charCodeAt(xe)?(s=j,xe++):(s=r,0===Ve&&Ne(ft)),s===r&&(42===t.charCodeAt(xe)?(s=F,xe++):(s=r,0===Ve&&Ne(gt)),s===r&&(37===t.charCodeAt(xe)?(s=P,xe++):(s=r,0===Ve&&Ne(mt)))),s!==r?(l=Ze(),(c=We())!==r?o=a=[a,s,l,c]:(xe=o,o=r)):(xe=o,o=r);ke=e,e=ee(n,i)}else xe=e,e=r;return e}function We(){var e,n,i;return(e=Ke())===r&&(e=Ge())===r&&(e=xe,33===t.charCodeAt(xe)?(n=S,xe++):(n=r,0===Ve&&Ne(vt)),n===r&&(43===t.charCodeAt(xe)?(n=V,xe++):(n=r,0===Ve&&Ne(ht)),n===r&&(45===t.charCodeAt(xe)?(n=D,xe++):(n=r,0===Ve&&Ne(pt)))),n!==r?(Ze(),(i=We())!==r?(ke=e,e=ne(n,i)):(xe=e,e=r)):(xe=e,e=r),e===r&&(e=function(){var e,n,i,o,a;return e=xe,(n=Ye())!==r?(Ze(),40===t.charCodeAt(xe)?(i=I,xe++):(i=r,0===Ve&&Ne(yt)),i!==r?(Ze(),o=function(){var e,n,i,o,a,s;if(e=xe,(n=Me())!==r){for(i=[],o=xe,Ze(),44===t.charCodeAt(xe)?(a=O,xe++):(a=r,0===Ve&&Ne(_t)),a!==r?(Ze(),(s=Me())!==r?o=s:(xe=o,o=r)):(xe=o,o=r);o!==r;)i.push(o),o=xe,Ze(),44===t.charCodeAt(xe)?(a=O,xe++):(a=r,0===Ve&&Ne(_t)),a!==r?(Ze(),(s=Me())!==r?o=s:(xe=o,o=r)):(xe=o,o=r);ke=e,e=oe(n,i)}else xe=e,e=r;return e===r&&(e=Ze()),e}(),o!==r?(Ze(),41===t.charCodeAt(xe)?(a=N,xe++):(a=r,0===Ve&&Ne($t)),a!==r?(ke=e,e=re(n,o)):(xe=e,e=r)):(xe=e,e=r)):(xe=e,e=r)):(xe=e,e=r),e===r&&(e=xe,(n=Ye())!==r&&(ke=e,n=ie(n)),(e=n)===r&&(e=function(){var e,n,i,o;return e=function(){var e,n,i,o;return Ve++,e=xe,39===t.charCodeAt(xe)?(n=T,xe++):(n=r,0===Ve&&Ne(wt)),n!==r?(i=function(){var t,e,n;for(t=xe,e=[],n=qe();n!==r;)e.push(n),n=qe();return ke=t,t=e=le(e)}(),39===t.charCodeAt(xe)?(o=T,xe++):(o=r,0===Ve&&Ne(wt)),o!==r?(ke=e,e=se(i)):(xe=e,e=r)):(xe=e,e=r),Ve--,e===r&&(n=r,0===Ve&&Ne(bt)),e}(),e===r&&(e=Ke())===r&&(e=Ge())===r&&(e=function(){var e,n;return Ve++,e=xe,t.substr(xe,4)===B?(n=B,xe+=4):(n=r,0===Ve&&Ne(Ft)),n!==r&&(ke=e,n=_e()),(e=n)===r&&(e=xe,t.substr(xe,5)===R?(n=R,xe+=5):(n=r,0===Ve&&Ne(Pt)),n!==r&&(ke=e,n=be()),e=n),Ve--,e===r&&(n=r,0===Ve&&Ne(jt)),e}(),e===r&&(e=xe,40===t.charCodeAt(xe)?(n=I,xe++):(n=r,0===Ve&&Ne(yt)),n!==r?(Ze(),(i=Me())!==r?(Ze(),41===t.charCodeAt(xe)?(o=N,xe++):(o=r,0===Ve&&Ne($t)),o!==r?(ke=e,e=ae(i)):(xe=e,e=r)):(xe=e,e=r)):(xe=e,e=r))),e}())),e}())),e}function qe(){var e,n,i,o,a;if(e=xe,t.substr(xe,2)===s?(n=s,xe+=2):(n=r,0===Ve&&Ne(K)),n!==r?(i=Ze(),(o=Me())!==r?(Ze(),125===t.charCodeAt(xe)?(a=l,xe++):(a=r,0===Ve&&Ne(Y)),a!==r?(ke=e,e=ce(o)):(xe=e,e=r)):(xe=e,e=r)):(xe=e,e=r),e===r&&(e=xe,t.substr(xe,3)===c?(n=c,xe+=3):(n=r,0===Ve&&Ne(Z)),n!==r&&(ke=e,n=ue()),(e=n)===r&&(e=xe,n=xe,Ve++,92===t.charCodeAt(xe)?(i=m,xe++):(i=r,0===Ve&&Ne(X)),i===r&&(39===t.charCodeAt(xe)?(i=T,xe++):(i=r,0===Ve&&Ne(wt)),i===r&&(t.substr(xe,2)===s?(i=s,xe+=2):(i=r,0===Ve&&Ne(K)))),Ve--,i===r?n=void 0:(xe=n,n=r),n!==r?(t.length>xe?(i=t.charAt(xe),xe++):(i=r,0===Ve&&Ne(Q)),i!==r?(ke=e,e=de()):(xe=e,e=r)):(xe=e,e=r),e===r))){if(e=xe,t.substr(xe,2)===s?(n=s,xe+=2):(n=r,0===Ve&&Ne(K)),n!==r){if(i=[],U.test(t.charAt(xe))?(o=t.charAt(xe),xe++):(o=r,0===Ve&&Ne(xt)),o!==r)for(;o!==r;)i.push(o),U.test(t.charAt(xe))?(o=t.charAt(xe),xe++):(o=r,0===Ve&&Ne(xt));else i=r;i!==r?(125===t.charCodeAt(xe)?(o=l,xe++):(o=r,0===Ve&&Ne(Y)),o!==r?(ke=e,e=he()):(xe=e,e=r)):(xe=e,e=r)}else xe=e,e=r;e===r&&(e=xe,t.substr(xe,2)===s?(n=s,xe+=2):(n=r,0===Ve&&Ne(K)),n!==r&&(ke=e,n=pe()),(e=n)===r&&(e=xe,92===t.charCodeAt(xe)?(n=m,xe++):(n=r,0===Ve&&Ne(X)),n!==r?(t.substr(xe,2)===s?(i=s,xe+=2):(i=r,0===Ve&&Ne(K)),i!==r?(ke=e,e=fe(i)):(xe=e,e=r)):(xe=e,e=r),e===r&&(e=xe,92===t.charCodeAt(xe)?(n=m,xe++):(n=r,0===Ve&&Ne(X)),n!==r?(t.length>xe?(i=t.charAt(xe),xe++):(i=r,0===Ve&&Ne(Q)),i!==r?(ke=e,e=ge(i)):(xe=e,e=r)):(xe=e,e=r),e===r&&(e=xe,92===t.charCodeAt(xe)?(n=m,xe++):(n=r,0===Ve&&Ne(X)),n!==r&&(ke=e,n=me()),e=n))))}return e}function Ge(){var e,n,i,o;if(Ve++,e=xe,45===t.charCodeAt(xe)?(n=D,xe++):(n=r,0===Ve&&Ne(pt)),n===r&&(n=null),i=[],H.test(t.charAt(xe))?(o=t.charAt(xe),xe++):(o=r,0===Ve&&Ne(Et)),o!==r)for(;o!==r;)i.push(o),H.test(t.charAt(xe))?(o=t.charAt(xe),xe++):(o=r,0===Ve&&Ne(Et));else i=r;return i!==r?(ke=e,e=ve()):(xe=e,e=r),Ve--,e===r&&(n=r,0===Ve&&Ne(kt)),e}function Ke(){var e,n,i,o,a,s,l,c,u,d;for(Ve++,e=xe,45===t.charCodeAt(xe)?(n=D,xe++):(n=r,0===Ve&&Ne(pt)),n===r&&(n=null),i=[],H.test(t.charAt(xe))?(o=t.charAt(xe),xe++):(o=r,0===Ve&&Ne(Et));o!==r;)i.push(o),H.test(t.charAt(xe))?(o=t.charAt(xe),xe++):(o=r,0===Ve&&Ne(Et));if(46===t.charCodeAt(xe)?(o=M,xe++):(o=r,0===Ve&&Ne(At)),o!==r){if(a=[],H.test(t.charAt(xe))?(s=t.charAt(xe),xe++):(s=r,0===Ve&&Ne(Et)),s!==r)for(;s!==r;)a.push(s),H.test(t.charAt(xe))?(s=t.charAt(xe),xe++):(s=r,0===Ve&&Ne(Et));else a=r;if(a!==r){if(s=xe,101===t.charCodeAt(xe)?(l=z,xe++):(l=r,0===Ve&&Ne(Vt)),l===r&&(69===t.charCodeAt(xe)?(l=J,xe++):(l=r,0===Ve&&Ne(Dt))),l!==r){if(43===t.charCodeAt(xe)?(c=V,xe++):(c=r,0===Ve&&Ne(ht)),c===r&&(45===t.charCodeAt(xe)?(c=D,xe++):(c=r,0===Ve&&Ne(pt))),c===r&&(c=null),u=[],H.test(t.charAt(xe))?(d=t.charAt(xe),xe++):(d=r,0===Ve&&Ne(Et)),d!==r)for(;d!==r;)u.push(d),H.test(t.charAt(xe))?(d=t.charAt(xe),xe++):(d=r,0===Ve&&Ne(Et));else u=r;u!==r?s=l=[l,c,u]:(xe=s,s=r)}else xe=s,s=r;s===r&&(s=null),ke=e,e=ye()}else xe=e,e=r}else xe=e,e=r;if(e===r){if(e=xe,45===t.charCodeAt(xe)?(n=D,xe++):(n=r,0===Ve&&Ne(pt)),n===r&&(n=null),i=[],H.test(t.charAt(xe))?(o=t.charAt(xe),xe++):(o=r,0===Ve&&Ne(Et)),o!==r)for(;o!==r;)i.push(o),H.test(t.charAt(xe))?(o=t.charAt(xe),xe++):(o=r,0===Ve&&Ne(Et));else i=r;if(i!==r)if(101===t.charCodeAt(xe)?(o=z,xe++):(o=r,0===Ve&&Ne(Vt)),o===r&&(69===t.charCodeAt(xe)?(o=J,xe++):(o=r,0===Ve&&Ne(Dt))),o!==r){if(43===t.charCodeAt(xe)?(a=V,xe++):(a=r,0===Ve&&Ne(ht)),a===r&&(45===t.charCodeAt(xe)?(a=D,xe++):(a=r,0===Ve&&Ne(pt))),a===r&&(a=null),s=[],H.test(t.charAt(xe))?(l=t.charAt(xe),xe++):(l=r,0===Ve&&Ne(Et)),l!==r)for(;l!==r;)s.push(l),H.test(t.charAt(xe))?(l=t.charAt(xe),xe++):(l=r,0===Ve&&Ne(Et));else s=r;s!==r?(ke=e,e=$e()):(xe=e,e=r)}else xe=e,e=r;else xe=e,e=r}return Ve--,e===r&&(n=r,0===Ve&&Ne(Ct)),e}function Ye(){var e,n,i,o,a;if(Ve++,e=xe,n=xe,Ve++,i=function(){var e,n,i,o;return e=xe,t.substr(xe,4)===B?(n=B,xe+=4):(n=r,0===Ve&&Ne(Ft)),n===r&&(t.substr(xe,5)===R?(n=R,xe+=5):(n=r,0===Ve&&Ne(Pt))),n!==r?(i=xe,Ve++,W.test(t.charAt(xe))?(o=t.charAt(xe),xe++):(o=r,0===Ve&&Ne(St)),Ve--,o===r?i=void 0:(xe=i,i=r),i!==r?e=n=[n,i]:(xe=e,e=r)):(xe=e,e=r),e}(),Ve--,i===r?n=void 0:(xe=n,n=r),n!==r)if(q.test(t.charAt(xe))?(i=t.charAt(xe),xe++):(i=r,0===Ve&&Ne(Nt)),i!==r){for(o=[],W.test(t.charAt(xe))?(a=t.charAt(xe),xe++):(a=r,0===Ve&&Ne(St));a!==r;)o.push(a),W.test(t.charAt(xe))?(a=t.charAt(xe),xe++):(a=r,0===Ve&&Ne(St));ke=e,e=we()}else xe=e,e=r;else xe=e,e=r;return Ve--,e===r&&(n=r,0===Ve&&Ne(It)),e}function Ze(){var e,n;for(Ve++,e=[],G.test(t.charAt(xe))?(n=t.charAt(xe),xe++):(n=r,0===Ve&&Ne(Tt));n!==r;)e.push(n),G.test(t.charAt(xe))?(n=t.charAt(xe),xe++):(n=r,0===Ve&&Ne(Tt));return Ve--,n=r,0===Ve&&Ne(Ot),e}if((n=a())!==r&&xe===t.length)return n;throw n!==r&&xe<t.length&&Ne({type:"end"}),function(t,e,n){return new g(g.buildMessage(t,e),t,e,n)}(Ae,Ce<t.length?t.charAt(Ce):null,Ce<t.length?Ie(Ce,Ce+1):Ie(Ce,Ce))}!function(t,e){function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n}(g,Error),g.prototype.format=function(t){var e="Error: "+this.message;if(this.location){var n,r=null;for(n=0;n<t.length;n++)if(t[n].source===this.location.source){r=t[n].text.split(/\r\n|\n|\r/g);break}var i=this.location.start,o=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(i):i,a=this.location.source+":"+o.line+":"+o.column;if(r){var s=this.location.end,l=m("",o.line.toString().length," "),c=r[i.line-1],u=(i.line===s.line?s.column:c.length+1)-i.column||1;e+="\n --\x3e "+a+"\n"+l+" |\n"+o.line+" | "+c+"\n"+l+" | "+m("",i.column-1," ")+m("",u,"^")}else e+="\n at "+a}return e},g.buildMessage=function(t,e){var n={literal:function(t){return'"'+i(t.text)+'"'},class:function(t){var e=t.parts.map((function(t){return Array.isArray(t)?o(t[0])+"-"+o(t[1]):o(t)}));return"["+(t.inverted?"^":"")+e.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(t){return t.description}};function r(t){return t.charCodeAt(0).toString(16).toUpperCase()}function i(t){return t.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(t){return"\\x0"+r(t)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(t){return"\\x"+r(t)}))}function o(t){return t.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(t){return"\\x0"+r(t)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(t){return"\\x"+r(t)}))}function a(t){return n[t.type](t)}return"Expected "+function(t){var e,n,r=t.map(a);if(r.sort(),r.length>0){for(e=1,n=1;e<r.length;e++)r[e-1]!==r[e]&&(r[n]=r[e],n++);r.length=n}switch(r.length){case 1:return r[0];case 2:return r[0]+" or "+r[1];default:return r.slice(0,-1).join(", ")+", or "+r[r.length-1]}}(t)+" but "+function(t){return t?'"'+i(t)+'"':"end of input"}(e)+" found."};const y=new Map,$=new Map;function _(t,e,n){const r={args:e,cb:n},i=y.get(t)||[];y.has(t)||y.set(t,i),i.push(r);const o=t+":"+e.map((t=>"object"==typeof t?t.type:t)).join("#");$.set(o,r)}function b(t,e){let n=t.args.length,r=t.args.length;const i=t.args[t.args.length-1];if("object"==typeof i&&i.isVararg&&(--n,r=1/0),e.length<n)return{type:"few",expected:n,found:e.length};if(e.length>r)return{type:"many",expected:r,found:e.length};for(let n=0;n<e.length;++n){let r=n>=t.args.length?t.args[t.args.length-1]:t.args[n];if("object"!=typeof r&&(r={type:r}),r.type!==e[n].type)return{type:"mismatch",expected:r.type,found:e[n].type}}return{type:"match"}}function w(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=>{w(t,e)}));break;case"BinaryExpression":case"LogicalExpression":w(t.left,e),w(t.right,e);break;case"UnaryExpression":w(t.argument,e);break;case"ConditionalExpression":w(t.test,e),w(t.consequent,e),w(t.alternate,e);break;case"TryExpression":w(t.test,e),w(t.alternate,e);break;case"CallExpression":t.arguments.forEach((t=>{w(t,e)}))}}function x(t,e){for(;t.length<e;)t="0"+t;return t}function k(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"transparent";if("#"!==(t=("string"==typeof t&&t||"").toLowerCase()).charAt(0))return n;const r=E(t);return r?(r.a*=e,function(t){return 255===t.a?"#".concat([t.r,t.g,t.b].map((t=>x(Math.round(t).toString(16),2))).join("")):"rgba(".concat(t.r,",").concat(t.g,",").concat(t.b,",").concat((t.a/255).toFixed(2),")")}(r)):n}function E(t){const e=t.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i)||t.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])$/i)||t.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i)||t.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i);if(e){if(5===e.length){const[t,n,r,i,o]=e,a=2===r.length?r:r+r,s=2===i.length?i:i+i,l=2===o.length?o:o+o,c=2===n.length?n:n+n;return{a:parseInt(c,16),r:parseInt(a,16),g:parseInt(s,16),b:parseInt(l,16)}}const[t,n,r,i]=e,o=2===n.length?n:n+n,a=2===r.length?r:r+r,s=2===i.length?i:i+i;return{a:255,r:parseInt(o,16),g:parseInt(a,16),b:parseInt(s,16)}}return null}function C(t){return"url"===t.type||"color"===t.type?{type:"string",value:t.value}:t}function A(t){return t.toISOString().replace("T"," ").replace(/\.\d{3}Z$/,"")}function V(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 A(t.value);if("color"===t.type)return O(N(t.value));if("url"===t.type)return t.value;if("dict"===t.type)return"<dict>";if("array"===t.type)return"<array>";throw new Error("Unexpected type ".concat(t.type))}function D(t){let e=V(t);return"string"===t.type&&(e="'"+e.replace(/\\/g,"\\\\").replace(/'/g,"\\'")+"'"),e}function j(t){return"datetime"===t?"DateTime":t.charAt(0).toUpperCase()+t.substring(1)}function F(t,e){if(n)return a(e);if(e<0){const t=-Math.floor(-e);return 0===t?0:t}return Math.floor(e)}function P(t,e){if(e<o||e>i)throw new Error("Integer overflow.");!n&&(e>Number.MAX_SAFE_INTEGER||e<Number.MIN_SAFE_INTEGER)&&(t.safeIntegerOverflow=!0)}function S(t){const e=[];return w(t,{Variable(t){e.push(t.id.name)}}),e}function I(t,e){throw new Error("Failed to evaluate [".concat(t,"]. ").concat(e))}function N(t){const e=E(t);if(e)return e;throw new Error("Unable to convert value to Color, expected format #AARRGGBB.")}function O(t){return"#".concat([t.a,t.r,t.g,t.b].map((t=>{if(t<0||t>255)throw new Error("Value out of range 0..1.");return x(Math.round(t).toString(16),2)})).join("").toUpperCase())}function T(t){return O(N(t))}const M=Number.MAX_VALUE,z=Number.MIN_VALUE,J="string",B="integer",R="number",L="boolean",U="color",H="url",W="datetime",q="dict",G="array";function K(t,e){return{type:J,value:V(e)}}function Y(t,e){const n=Number(e.value);if(isNaN(n)||!Number.isFinite(n))throw new Error("Unable to convert value to Number.");return{type:R,value:n}}function Z(t,e,n,r){const i=t.variables.get(e.value);let o;return o=i&&i.getType()===r?i.getValue():n.value,"color"===r&&(o=T(o)),{type:r,value:o}}function X(t,e,n){return Z(t,e,n,n.type)}function Q(t,e,n){return Z(t,e,n,"color")}function tt(t,e,n){return Z(t,e,n,"url")}const et=t=>(e,n)=>{let r=new Date(n.value.getTime())[t]();return"getUTCMonth"===t?++r:"getUTCDay"===t&&0===r&&(r=7),{type:B,value:a(r)}},nt=et("getUTCFullYear"),rt=et("getUTCMonth"),it=et("getUTCDate"),ot=et("getUTCDay"),at=et("getUTCHours"),st=et("getUTCMinutes"),lt=et("getUTCSeconds"),ct=et("getUTCMilliseconds");function ut(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}function dt(t,e,n,r){if(!r.value.length)return t.warnings.push(ut(new Error("String for padding is empty."),{level:"warn"})),"";let i="";const o=e.type===J?e.value:V(e);for(;i.length+o.length<n.value;)i+=r.value;return i.length>0&&i.length+o.length>n.value&&(i=i.substring(0,Number(n.value)-Number(o.length))),i}function ht(t,e,n,r){const i=dt(t,e,n,r);return{type:J,value:i+V(e)}}function pt(t,e,n,r){const i=dt(t,e,n,r);return{type:J,value:V(e)+i}}function ft(t){return(e,n)=>{const r=N(n.value);return{type:R,value:r[t]/255}}}function gt(t){return(e,n,r)=>{const i=N(n.value);return i[t]=255*r.value,{type:U,value:O(i)}}}const mt=ft("a"),vt=ft("r"),yt=ft("g"),$t=ft("b"),_t=gt("a"),bt=gt("r"),wt=gt("g"),xt=gt("b");function kt(t,e,n,r){if(e.value<0)throw new Error("Expecting non-negative number of milliseconds.");let i=a(e.value)/a(n);return P(t,i),"number"==typeof i&&(i=Math.floor(i)),r&&(i=a(i)%a(r)),{type:B,value:i}}const Et=36e5;function Ct(t,e){return function(n,r){for(var i=arguments.length,o=new Array(i>2?i-2:0),s=2;s<i;s++)o[s-2]=arguments[s];let l=function(t,e){let n=t;for(let t=0;t<e.length;++t){if(!n)throw new Error('Missing property "'.concat(e[t],'" in the dict.'));const r=n[e[t]];if(void 0===r)throw new Error('Missing property "'.concat(e[t],'" in the dict.'));n=r}return n}(r.value,o.map((t=>t.value))),c=typeof l;if(c!==t)throw"object"===c&&(c=Array.isArray(l)?"array":null===l?"null":"dict"),new Error('Incorrect value type: expected "'.concat(e,'", got "').concat(c,'".'));if("number"===t&&"integer"===e){if(l!==Math.round(l))throw new Error("Cannot convert value to integer.");P(n,l),l=a(l)}return"string"===t&&"color"===e&&(l=T(l)),{type:e,value:l}}}function At(t,e){return function(n,r,i){try{for(var o=arguments.length,a=new Array(o>3?o-3:0),s=3;s<o;s++)a[s-3]=arguments[s];return t(n,i,...a)}catch(t){let n=r.value;return"color"===e&&(n=T(n)),{type:e,value:n}}}}const Vt=Ct("string","string"),Dt=Ct("number","number"),jt=Ct("number","integer"),Ft=Ct("boolean","boolean"),Pt=Ct("string","color"),St=Ct("string","url"),It=At(Vt,"string"),Nt=At(Dt,"number"),Ot=At(jt,"integer"),Tt=At(Ft,"boolean"),Mt=At(Pt,"color"),zt=At(St,"url");function Jt(t,e){return(n,r,i)=>{if(i.value<0||i.value>=r.value.length)throw new Error("Requested index (".concat(i.value,") out of bounds array size (").concat(r.value.length,")."));let o=r.value[Number(i.value)],s=typeof o;if("array"===t&&!Array.isArray(o)||"array"!==t&&s!==t||"object"===s&&null===o)throw"object"===s&&(s=Array.isArray(o)?"array":null===o?"null":"dict"),new Error('Incorrect value type: expected "'.concat(e,'", got "').concat(s,'".'));if("number"===t&&"integer"===e){if(o!==Math.round(o))throw new Error("Cannot convert value to integer.");P(n,o),o=a(o)}return"string"===t&&"color"===e&&(o=T(o)),{type:e,value:o}}}function Bt(t,e){return(n,r,i,o)=>{try{return t(n,r,i)}catch(t){let n=o.value;return"color"===e&&(n=T(n)),{type:e,value:n}}}}const Rt=Jt("string","string"),Lt=Jt("number","number"),Ut=Jt("number","integer"),Ht=Jt("boolean","boolean"),Wt=Jt("string","color"),qt=Jt("string","url"),Gt=Jt("array","array"),Kt=Jt("object","dict"),Yt=Bt(Rt,"string"),Zt=Bt(Lt,"number"),Xt=Bt(Ut,"integer"),Qt=Bt(Ht,"boolean"),te=Bt(Wt,"color"),ee=Bt(qt,"url");function ne(){}const re=t=>t;function ie(t,e){for(const n in e)t[n]=e[n];return t}function oe(t){return t()}function ae(){return Object.create(null)}function se(t){t.forEach(oe)}function le(t){return"function"==typeof t}let ce;function ue(t,e){return t===e||(ce||(ce=document.createElement("a")),ce.href=e,t===ce.href)}function de(t,e){return t!=t?e==e:t!==e}function he(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(null==t){for(const t of n)t(void 0);return ne}const i=t.subscribe(...n);return i.unsubscribe?()=>i.unsubscribe():i}function pe(t,e,n){t.$$.on_destroy.push(he(e,n))}function fe(t,e,n,r){if(t){const i=ge(t,e,n,r);return t[0](i)}}function ge(t,e,n,r){return t[1]&&r?ie(n.ctx.slice(),t[1](r(e))):n.ctx}function me(t,e,n,r){if(t[2]&&r){const i=t[2](r(n));if(void 0===e.dirty)return i;if("object"==typeof i){const t=[],n=Math.max(e.dirty.length,i.length);for(let r=0;r<n;r+=1)t[r]=e.dirty[r]|i[r];return t}return e.dirty|i}return e.dirty}function ve(t,e,n,r,i,o){if(i){const a=ge(e,n,r,o);t.p(a,i)}}function ye(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 $e(t,e,n){return t.set(n),e}function _e(t){return t&&le(t.destroy)?t.destroy:ne}const be="undefined"!=typeof window;let we=be?()=>window.performance.now():()=>Date.now(),xe=be?t=>requestAnimationFrame(t):ne;const ke=new Set;function Ee(t){ke.forEach((e=>{e.c(t)||(ke.delete(e),e.f())})),0!==ke.size&&xe(Ee)}function Ce(t){let e;return 0===ke.size&&xe(Ee),{promise:new Promise((n=>{ke.add(e={c:t,f:n})})),abort(){ke.delete(e)}}}const Ae="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function Ve(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class De{constructor(t){Ve(this,"_listeners","WeakMap"in Ae?new WeakMap:void 0),Ve(this,"_observer",void 0),Ve(this,"options",void 0),this.options=t}observe(t,e){return this._listeners.set(t,e),this._getObserver().observe(t,this.options),()=>{this._listeners.delete(t),this._observer.unobserve(t)}}_getObserver(){var t;return null!==(t=this._observer)&&void 0!==t?t:this._observer=new ResizeObserver((t=>{for(const n of t){var e;De.entries.set(n.target,n),null===(e=this._listeners.get(n.target))||void 0===e||e(n)}}))}}function je(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}De.entries="WeakMap"in Ae?new WeakMap:void 0;let Fe=!1;function Pe(t,e,n,r){for(;t<e;){const i=t+(e-t>>1);n(i)<=r?t=i+1:e=i}return t}function Se(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function Ie(t){const e=Je("style");return e.textContent="/* empty */",function(t,e){(function(t,e){t.appendChild(e)})(t.head||t,e),e.sheet}(Se(t),e),e.sheet}function Ne(t,e){if(Fe){for(function(t){if(t.hydrate_init)return;t.hydrate_init=!0;let e=t.childNodes;if("HEAD"===t.nodeName){const t=[];for(let n=0;n<e.length;n++){const r=e[n];void 0!==r.claim_order&&t.push(r)}e=t}const n=new Int32Array(e.length+1),r=new Int32Array(e.length);n[0]=-1;let i=0;for(let t=0;t<e.length;t++){const o=e[t].claim_order,a=(i>0&&e[n[i]].claim_order<=o?i+1:Pe(1,i,(t=>e[n[t]].claim_order),o))-1;r[t]=n[a]+1;const s=a+1;n[s]=t,i=Math.max(s,i)}const o=[],a=[];let s=e.length-1;for(let t=n[i]+1;0!=t;t=r[t-1]){for(o.push(e[t-1]);s>=t;s--)a.push(e[s]);s--}for(;s>=0;s--)a.push(e[s]);o.reverse(),a.sort(((t,e)=>t.claim_order-e.claim_order));for(let e=0,n=0;e<a.length;e++){for(;n<o.length&&a[e].claim_order>=o[n].claim_order;)n++;const r=n<o.length?o[n]:null;t.insertBefore(a[e],r)}}(t),(void 0===t.actual_end_child||null!==t.actual_end_child&&t.actual_end_child.parentNode!==t)&&(t.actual_end_child=t.firstChild);null!==t.actual_end_child&&void 0===t.actual_end_child.claim_order;)t.actual_end_child=t.actual_end_child.nextSibling;e!==t.actual_end_child?void 0===e.claim_order&&e.parentNode===t||t.insertBefore(e,t.actual_end_child):t.actual_end_child=e.nextSibling}else e.parentNode===t&&null===e.nextSibling||t.appendChild(e)}function Oe(t,e,n){t.insertBefore(e,n||null)}function Te(t,e,n){Fe&&!n?Ne(t,e):e.parentNode===t&&e.nextSibling==n||t.insertBefore(e,n||null)}function Me(t){t.parentNode&&t.parentNode.removeChild(t)}function ze(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function Je(t){return document.createElement(t)}function Be(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Re(t){return document.createTextNode(t)}function Le(){return Re(" ")}function Ue(){return Re("")}function He(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function We(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}const qe=["width","height"];function Ge(t,e){const n=Object.getOwnPropertyDescriptors(t.__proto__);for(const r in e)null==e[r]?t.removeAttribute(r):"style"===r?t.style.cssText=e[r]:"__value"===r?t.value=t[r]=e[r]:n[r]&&n[r].set&&-1===qe.indexOf(r)?t[r]=e[r]:We(t,r,e[r])}function Ke(t,e){Object.keys(e).forEach((n=>{!function(t,e,n){e in t?t[e]="boolean"==typeof t[e]&&""===n||n:We(t,e,n)}(t,n,e[n])}))}function Ye(t){return/-/.test(t)?Ke:Ge}function Ze(t){return Array.from(t.childNodes)}function Xe(t){void 0===t.claim_info&&(t.claim_info={last_index:0,total_claimed:0})}function Qe(t,e,n,r){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];Xe(t);const o=(()=>{for(let r=t.claim_info.last_index;r<t.length;r++){const o=t[r];if(e(o)){const e=n(o);return void 0===e?t.splice(r,1):t[r]=e,i||(t.claim_info.last_index=r),o}}for(let r=t.claim_info.last_index-1;r>=0;r--){const o=t[r];if(e(o)){const e=n(o);return void 0===e?t.splice(r,1):t[r]=e,i?void 0===e&&t.claim_info.last_index--:t.claim_info.last_index=r,o}}return r()})();return o.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,o}function tn(t,e,n,r){return Qe(t,(t=>t.nodeName===e),(t=>{const e=[];for(let r=0;r<t.attributes.length;r++){const i=t.attributes[r];n[i.name]||e.push(i.name)}e.forEach((e=>t.removeAttribute(e)))}),(()=>r(e)))}function en(t,e,n){return tn(t,e,n,Je)}function nn(t,e,n){return tn(t,e,n,Be)}function rn(t,e){return Qe(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}),(()=>Re(e)),!0)}function on(t){return rn(t," ")}function an(t,e,n){for(let r=n;r<t.length;r+=1){const n=t[r];if(8===n.nodeType&&n.textContent.trim()===e)return r}return-1}function sn(t,e){e=""+e,t.data!==e&&(t.data=e)}function ln(t,e){t.value=null==e?"":e}function cn(t,e,n,r){null==n?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}function un(t,e,n){for(let n=0;n<t.options.length;n+=1){const r=t.options[n];if(r.__value===e)return void(r.selected=!0)}n&&void 0===e||(t.selectedIndex=-1)}class dn{constructor(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];je(this,"is_svg",!1),je(this,"e",void 0),je(this,"n",void 0),je(this,"t",void 0),je(this,"a",void 0),this.is_svg=t,this.e=this.n=null}c(t){this.h(t)}m(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.e||(this.is_svg?this.e=Be(e.nodeName):this.e=Je(11===e.nodeType?"TEMPLATE":e.nodeName),this.t="TEMPLATE"!==e.tagName?e:e.content,this.c(t)),this.i(n)}h(t){this.e.innerHTML=t,this.n=Array.from("TEMPLATE"===this.e.nodeName?this.e.content.childNodes:this.e.childNodes)}i(t){for(let e=0;e<this.n.length;e+=1)Oe(this.t,this.n[e],t)}p(t){this.d(),this.h(t),this.i(this.a)}d(){this.n.forEach(Me)}}class hn extends dn{constructor(){let t=arguments.length>1?arguments[1]:void 0;super(arguments.length>0&&void 0!==arguments[0]&&arguments[0]),je(this,"l",void 0),this.e=this.n=null,this.l=t}c(t){this.l?this.n=this.l:super.c(t)}i(t){for(let e=0;e<this.n.length;e+=1)Te(this.t,this.n[e],t)}}function pn(t,e){return new t(e)}const fn=new Map;let gn,mn=0;function vn(t,e,n,r,i,o,a){let s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0;const l=16.666/r;let c="{\n";for(let t=0;t<=1;t+=l){const r=e+(n-e)*o(t);c+=100*t+"%{".concat(a(r,1-r),"}\n")}const u=c+"100% {".concat(a(n,1-n),"}\n}"),d="__svelte_".concat(function(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}(u),"_").concat(s),h=Se(t),{stylesheet:p,rules:f}=fn.get(h)||function(t,e){const n={stylesheet:Ie(e),rules:{}};return fn.set(t,n),n}(h,t);f[d]||(f[d]=!0,p.insertRule("@keyframes ".concat(d," ").concat(u),p.cssRules.length));const g=t.style.animation||"";return t.style.animation="".concat(g?"".concat(g,", "):"").concat(d," ").concat(r,"ms linear ").concat(i,"ms 1 both"),mn+=1,d}function yn(t,e){const n=(t.style.animation||"").split(", "),r=n.filter(e?t=>t.indexOf(e)<0:t=>-1===t.indexOf("__svelte")),i=n.length-r.length;i&&(t.style.animation=r.join(", "),mn-=i,mn||xe((()=>{mn||(fn.forEach((t=>{const{ownerNode:e}=t.stylesheet;e&&Me(e)})),fn.clear())})))}function $n(t){gn=t}function _n(){if(!gn)throw new Error("Function called outside component initialization");return gn}function bn(t){_n().$$.on_mount.push(t)}function wn(t){_n().$$.on_destroy.push(t)}function xn(t,e){return _n().$$.context.set(t,e),e}function kn(t){return _n().$$.context.get(t)}function En(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((t=>t.call(this,e)))}const Cn=[],An=[];let Vn=[];const Dn=[],jn=Promise.resolve();let Fn=!1;function Pn(){Fn||(Fn=!0,jn.then(Mn))}function Sn(){return Pn(),jn}function In(t){Vn.push(t)}const Nn=new Set;let On,Tn=0;function Mn(){if(0!==Tn)return;const t=gn;do{try{for(;Tn<Cn.length;){const t=Cn[Tn];Tn++,$n(t),zn(t.$$)}}catch(t){throw Cn.length=0,Tn=0,t}for($n(null),Cn.length=0,Tn=0;An.length;)An.pop()();for(let t=0;t<Vn.length;t+=1){const e=Vn[t];Nn.has(e)||(Nn.add(e),e())}Vn.length=0}while(Cn.length);for(;Dn.length;)Dn.pop()();Fn=!1,Nn.clear(),$n(t)}function zn(t){if(null!==t.fragment){t.update(),se(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(In)}}function Jn(){return On||(On=Promise.resolve(),On.then((()=>{On=null}))),On}function Bn(t,e,n){t.dispatchEvent(function(t,e){let{bubbles:n=!1,cancelable:r=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new CustomEvent(t,{detail:e,bubbles:n,cancelable:r})}("".concat(e?"intro":"outro").concat(n)))}const Rn=new Set;let Ln;function Un(){Ln={r:0,c:[],p:Ln}}function Hn(){Ln.r||se(Ln.c),Ln=Ln.p}function Wn(t,e){t&&t.i&&(Rn.delete(t),t.i(e))}function qn(t,e,n,r){if(t&&t.o){if(Rn.has(t))return;Rn.add(t),Ln.c.push((()=>{Rn.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}else r&&r()}const Gn={duration:0};function Kn(t,e,n){const r={direction:"in"};let i,o,a=e(t,n,r),s=!1,l=0;function c(){i&&yn(t,i)}function u(){const{delay:e=0,duration:n=300,easing:r=re,tick:u=ne,css:d}=a||Gn;d&&(i=vn(t,0,1,n,e,r,d,l++)),u(0,1);const h=we()+e,p=h+n;o&&o.abort(),s=!0,In((()=>Bn(t,!0,"start"))),o=Ce((e=>{if(s){if(e>=p)return u(1,0),Bn(t,!0,"end"),c(),s=!1;if(e>=h){const t=r((e-h)/n);u(t,1-t)}}return s}))}let d=!1;return{start(){d||(d=!0,yn(t),le(a)?(a=a(r),Jn().then(u)):u())},invalidate(){d=!1},end(){s&&(c(),s=!1)}}}function Yn(t){return void 0!==(null==t?void 0:t.length)?t:Array.from(t)}function Zn(t,e){qn(t,1,1,(()=>{e.delete(t.key)}))}function Xn(t,e,n,r,i,o,a,s,l,c,u,d){let h=t.length,p=o.length,f=h;const g={};for(;f--;)g[t[f].key]=f;const m=[],v=new Map,y=new Map,$=[];for(f=p;f--;){const t=d(i,o,f),s=n(t);let l=a.get(s);l?r&&$.push((()=>l.p(t,e))):(l=c(s,t),l.c()),v.set(s,m[f]=l),s in g&&y.set(s,Math.abs(f-g[s]))}const _=new Set,b=new Set;function w(t){Wn(t,1),t.m(s,u),a.set(t.key,t),u=t.first,p--}for(;h&&p;){const e=m[p-1],n=t[h-1],r=e.key,i=n.key;e===n?(u=e.first,h--,p--):v.has(i)?!a.has(r)||_.has(r)?w(e):b.has(i)?h--:y.get(r)>y.get(i)?(b.add(r),w(e)):(_.add(i),h--):(l(n,a),h--)}for(;h--;){const e=t[h];v.has(e.key)||l(e,a)}for(;p;)w(m[p-1]);return se($),m}function Qn(t,e){const n={},r={},i={$$scope:1};let o=t.length;for(;o--;){const a=t[o],s=e[o];if(s){for(const t in a)t in s||(r[t]=1);for(const t in s)i[t]||(n[t]=s[t],i[t]=1);t[o]=s}else for(const t in a)i[t]=1}for(const t in r)t in n||(n[t]=void 0);return n}let tr;function er(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function nr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?er(Object(n),!0).forEach((function(e){rr(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):er(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function rr(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ir(t){t&&t.c()}function or(t,e){t&&t.l(e)}function ar(t,e,n){const{fragment:r,after_update:i}=t.$$;r&&r.m(e,n),In((()=>{const e=t.$$.on_mount.map(oe).filter(le);t.$$.on_destroy?t.$$.on_destroy.push(...e):se(e),t.$$.on_mount=[]})),i.forEach(In)}function sr(t,e){const n=t.$$;null!==n.fragment&&(function(t){const e=[],n=[];Vn.forEach((r=>-1===t.indexOf(r)?e.push(r):n.push(r))),n.forEach((t=>t())),Vn=e}(n.after_update),se(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function lr(t,e,n,r,i,o,a){let s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[-1];const l=gn;$n(t);const c=t.$$={fragment:null,ctx:[],props:o,update:ne,not_equal:i,bound:ae(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:ae(),dirty:s,skip_bound:!1,root:e.target||l.$$.root};a&&a(c.root);let u=!1;if(c.ctx=n?n(t,e.props||{},(function(e,n){const r=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:n;return c.ctx&&i(c.ctx[e],c.ctx[e]=r)&&(!c.skip_bound&&c.bound[e]&&c.bound[e](r),u&&function(t,e){-1===t.$$.dirty[0]&&(Cn.push(t),Pn(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(t,e)),n})):[],c.update(),u=!0,se(c.before_update),c.fragment=!!r&&r(c.ctx),e.target){if(e.hydrate){Fe=!0;const t=Ze(e.target);c.fragment&&c.fragment.l(t),t.forEach(Me)}else c.fragment&&c.fragment.c();e.intro&&Wn(t.$$.fragment),ar(t,e.target,e.anchor),Fe=!1,Mn()}$n(l)}function cr(t,e,n,r){var i;const o=null===(i=n[t])||void 0===i?void 0:i.type;if(e="Boolean"===o&&"boolean"!=typeof e?null!=e:e,!r||!n[t])return e;if("toAttribute"===r)switch(o){case"Object":case"Array":return null==e?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return null==e?null:e;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":default:return e;case"Number":return null!=e?+e:e}}new Set(["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"]),"function"==typeof HTMLElement&&(tr=class extends HTMLElement{constructor(t,e,n){super(),rr(this,"$$ctor",void 0),rr(this,"$$s",void 0),rr(this,"$$c",void 0),rr(this,"$$cn",!1),rr(this,"$$d",{}),rr(this,"$$r",!1),rr(this,"$$p_d",{}),rr(this,"$$l",{}),rr(this,"$$l_u",new Map),this.$$ctor=t,this.$$s=e,n&&this.attachShadow({mode:"open"})}addEventListener(t,e,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const n=this.$$c.$on(t,e);this.$$l_u.set(e,n)}super.addEventListener(t,e,n)}removeEventListener(t,e,n){if(super.removeEventListener(t,e,n),this.$$c){const t=this.$$l_u.get(e);t&&(t(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn)return;function t(t){return()=>{let e;return{c:function(){e=Je("slot"),"default"!==t&&We(e,"name",t)},m:function(t,n){Oe(t,e,n)},d:function(t){t&&Me(e)}}}}const e={},n=function(t){const e={};return t.childNodes.forEach((t=>{e[t.slot||"default"]=!0})),e}(this);for(const i of this.$$s)i in n&&(e[i]=[t(i)]);for(const o of this.attributes){const a=this.$$g_p(o.name);a in this.$$d||(this.$$d[a]=cr(a,o.value,this.$$p_d,"toProp"))}this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:nr(nr({},this.$$d),{},{$$slots:e,$$scope:{ctx:[]}})});const r=()=>{this.$$r=!0;for(const t in this.$$p_d)if(this.$$d[t]=this.$$c.$$.ctx[this.$$c.$$.props[t]],this.$$p_d[t].reflect){const e=cr(t,this.$$d[t],this.$$p_d,"toAttribute");null==e?this.removeAttribute(t):this.setAttribute(this.$$p_d[t].attribute||t,e)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(const s in this.$$l)for(const l of this.$$l[s]){const c=this.$$c.$on(s,l);this.$$l_u.set(l,c)}this.$$l={}}}attributeChangedCallback(t,e,n){var r;this.$$r||(t=this.$$g_p(t),this.$$d[t]=cr(t,n,this.$$p_d,"toProp"),null===(r=this.$$c)||void 0===r||r.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then((()=>{this.$$cn||(this.$$c.$destroy(),this.$$c=void 0)}))}$$g_p(t){return Object.keys(this.$$p_d).find((e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t))||t}});class ur{constructor(){rr(this,"$$",void 0),rr(this,"$$set",void 0)}$destroy(){sr(this,1),this.$destroy=ne}$on(t,e){if(!le(e))return ne;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){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const dr=[];function hr(t){let e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ne;const r=new Set;function i(n){if(o=n,((i=t)!=i?o==o:i!==o||i&&"object"==typeof i||"function"==typeof i)&&(t=n,e)){const e=!dr.length;for(const e of r)e[1](),dr.push(e,t);if(e){for(let t=0;t<dr.length;t+=2)dr[t][0](dr[t+1]);dr.length=0}}var i,o}function o(e){i(e(t))}return{set:i,update:o,subscribe:function(a){const s=[a,arguments.length>1&&void 0!==arguments[1]?arguments[1]:ne];return r.add(s),1===r.size&&(e=n(i,o)||ne),a(t),()=>{r.delete(s),0===r.size&&e&&(e(),e=null)}}}}function pr(t,e,n){const r=!Array.isArray(t),i=r?[t]:t;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=e.length<2;return a=(t,n)=>{let a=!1;const s=[];let l=0,c=ne;const u=()=>{if(l)return;c();const i=e(r?s[0]:s,t,n);o?t(i):c=le(i)?i:ne},d=i.map(((t,e)=>he(t,(t=>{s[e]=t,l&=~(1<<e),a&&u()}),(()=>{l|=1<<e}))));return a=!0,u(),function(){se(d),c(),a=!1}},{subscribe:hr(n,a).subscribe};var a}class fr{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=hr(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 gr={string:class extends fr{convertValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value");return t}fromString(t){return t}getType(){return"string"}},number:class extends fr{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 fr{convertValue(t){if("bigint"!=typeof t&&"number"!=typeof t||"number"==typeof t&&(isNaN(t)||t!==Math.round(t))||t>i||t<o)throw new Error("Incorrect variable value");return a(t)}fromString(t){const e=a(t);return this.convertValue(e)}getType(){return"integer"}},boolean:class extends fr{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 fr{convertValue(t){if("string"!=typeof t||!E(t))throw new Error("Incorrect variable value");return t}fromString(t){return this.convertValue(t)}getType(){return"color"}},url:class extends fr{convertValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value");return t}fromString(t){return t}getType(){return"url"}},dict:class extends fr{convertValue(t){if("object"!=typeof t||!t)throw new Error("Incorrect variable value");return t}fromString(t){throw new Error("Dict variable does not support setter from string")}getType(){return"dict"}},array:class extends fr{convertValue(t){if(!Array.isArray(t))throw new Error("Incorrect variable value");return t}fromString(t){throw new Error("Array variable does not support setter from string")}getType(){return"array"}}};function mr(t,e,n){if(!(e in gr))throw new Error("Unsupported variable type");return new gr[e](t,n)}function vr(t){return t.map(D).join(", ")}_("toString",[B],K),_("toString",[R],K),_("toString",[L],K),_("toString",[U],K),_("toString",[H],K),_("toNumber",[B],Y),_("toNumber",[J],Y),_("toInteger",[R],(function(t,e){if(e.value>i||e.value<o)throw new Error("Unable to convert value to Integer.");const n=e.value-e.value%1;return{type:B,value:a(n)}})),_("toInteger",[J],(function(t,e){let n;try{n=a(e.value)}catch(t){throw new Error("Unable to convert value to Integer.")}if("number"==typeof n&&(isNaN(n)||n%1!=0)||n>i||n<o)throw new Error("Unable to convert value to Integer.");return{type:B,value:n}})),_("toInteger",[L],(function(t,e){return{type:B,value:a(e.value?1:0)}})),_("toBoolean",[B],(function(t,e){const n=Number(e.value);if(1!==n&&0!==n)throw new Error("Unable to convert value to Boolean.");return{type:L,value:n}})),_("toBoolean",[J],(function(t,e){if("true"!==e.value&&"false"!==e.value)throw new Error("Unable to convert value to Boolean.");return{type:L,value:"true"===e.value?1:0}})),_("toColor",[J],(function(t,e){return{type:U,value:T(e.value)}})),_("toUrl",[J],(function(t,e){return{type:H,value:e.value}})),_("encodeUri",[J],(function(t,e){try{return{type:J,value:encodeURIComponent(e.value)}}catch(t){throw new Error("Unable to encodeUri string.")}})),_("decodeUri",[J],(function(t,e){try{return{type:J,value:decodeURIComponent(e.value)}}catch(t){throw new Error("Unable to decodeUri string.")}})),_("getIntegerValue",[J,B],X),_("getNumberValue",[J,R],X),_("getBooleanValue",[J,L],X),_("getStringValue",[J,J],X),_("getColorValue",[J,U],Q),_("getColorValue",[J,J],Q),_("getUrlValue",[J,H],tt),_("getUrlValue",[J,J],tt),_("parseUnixTime",[B],(function(t,e){return{type:W,value:new Date(1e3*Number(e.value))}})),_("nowLocal",[],(function(){return{type:W,value:new Date}})),_("addMillis",[W,B],(function(t,e,n){return{type:W,value:new Date(e.value.getTime()+Number(n.value))}})),_("setYear",[W,B],(function(t,e,n){const r=new Date(e.value);return r.setUTCFullYear(Number(n.value)),{type:W,value:r}})),_("setMonth",[W,B],(function(t,e,n){const r=Number(n.value);if(r<1||r>12)throw new Error("Expecting month in [1..12], instead got ".concat(r,"."));const i=new Date(e.value);return i.setUTCMonth(r-1),{type:W,value:i}})),_("setDay",[W,B],(function(t,e,n){const r=new Date(e.value),i=Number(n.value);if(i<=0&&-1!==i||i>function(t){const e=new Date(t);return e.setUTCMonth(e.getUTCMonth()+1),e.setUTCDate(0),e.getUTCDate()}(r))throw new Error("Unable to set day ".concat(i," for date ").concat(V(e),"."));return r.setUTCDate(-1===i?0:i),{type:W,value:r}})),_("setHours",[W,B],(function(t,e,n){const r=Number(n.value);if(r<0||r>23)throw new Error("Expecting hours in [0..23], instead got ".concat(r,"."));const i=new Date(e.value);return i.setUTCHours(r),{type:W,value:i}})),_("setMinutes",[W,B],(function(t,e,n){const r=Number(n.value);if(r<0||r>59)throw new Error("Expecting minutes in [0..59], instead got ".concat(r,"."));const i=new Date(e.value);return i.setUTCMinutes(r),{type:W,value:i}})),_("setSeconds",[W,B],(function(t,e,n){const r=Number(n.value);if(r<0||r>59)throw new Error("Expecting seconds in [0..59], instead got ".concat(r,"."));const i=new Date(e.value);return i.setUTCSeconds(r),{type:W,value:i}})),_("setMillis",[W,B],(function(t,e,n){const r=Number(n.value);if(r<0||r>999)throw new Error("Expecting millis in [0..999], instead got ".concat(r,"."));const i=new Date(e.value);return i.setUTCMilliseconds(r),{type:W,value:i}})),_("getYear",[W],nt),_("getMonth",[W],rt),_("getDay",[W],it),_("getDayOfWeek",[W],ot),_("getHours",[W],at),_("getMinutes",[W],st),_("getSeconds",[W],lt),_("getMillis",[W],ct),_("getIntervalSeconds",[B],(function(t,e){return kt(t,e,1e3,60)})),_("getIntervalTotalSeconds",[B],(function(t,e){return kt(t,e,1e3)})),_("getIntervalMinutes",[B],(function(t,e){return kt(t,e,6e4,60)})),_("getIntervalTotalMinutes",[B],(function(t,e){return kt(t,e,6e4)})),_("getIntervalHours",[B],(function(t,e){return kt(t,e,Et,24)})),_("getIntervalTotalHours",[B],(function(t,e){return kt(t,e,Et)})),_("getIntervalTotalDays",[B],(function(t,e){return kt(t,e,864e5)})),_("getIntervalTotalWeeks",[B],(function(t,e){return kt(t,e,6048e5)})),_("len",[J],(function(t,e){return{type:B,value:a(e.value.length)}})),_("contains",[J,J],(function(t,e,n){return{type:L,value:e.value.includes(n.value)?1:0}})),_("substring",[J,B,B],(function(t,e,n,r){if(r.value<n.value)throw new Error("Indexes should be in ascending order.");if(n.value<0||n.value>e.value.length||r.value<0||r.value>e.value.length)throw new Error("Indexes are out of bounds.");return{type:J,value:e.value.substring(Number(n.value),Number(r.value))}})),_("replaceAll",[J,J,J],(function(t,e,n,r){let i;return i=n.value?e.value.replace(new RegExp(function(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}(n.value),"g"),r.value):e.value,{type:J,value:i}})),_("index",[J,J],(function(t,e,n){return{type:B,value:a(e.value.indexOf(n.value))}})),_("lastIndex",[J,J],(function(t,e,n){return{type:B,value:a(e.value.lastIndexOf(n.value))}})),_("trim",[J],(function(t,e){return{type:J,value:e.value.trim()}})),_("trimLeft",[J],(function(t,e){return{type:J,value:e.value.replace(/^\s+/,"")}})),_("trimRight",[J],(function(t,e){return{type:J,value:e.value.replace(/\s+$/,"")}})),_("toUpperCase",[J],(function(t,e){return{type:J,value:e.value.toUpperCase()}})),_("toLowerCase",[J],(function(t,e){return{type:J,value:e.value.toLowerCase()}})),_("padStart",[J,B,J],ht),_("padStart",[B,B,J],ht),_("padEnd",[J,B,J],pt),_("padEnd",[B,B,J],pt),_("testRegex",[J,J],(function(t,e,n){let r;try{r=new RegExp(n.value)}catch(t){throw new Error("Invalid regular expression.")}return{type:L,value:r.test(e.value)?1:0}})),_("div",[B,B],(function(t,e,n){if(n.value===s)throw new Error("Division by zero is not supported.");let r=e.value/n.value;return r=F(0,r),P(t,r),{type:B,value:r}})),_("div",[R,R],(function(t,e,n){if(0===n.value)throw new Error("Division by zero is not supported.");const r=e.value/n.value;return{type:R,value:r}})),_("mod",[B,B],(function(t,e,n){if(n.value===s)throw new Error("Division by zero is not supported.");let r=e.value%n.value;return r=F(0,r),P(t,r),{type:B,value:r}})),_("mod",[R,R],(function(t,e,n){if(0===n.value)throw new Error("Division by zero is not supported.");const r=e.value%n.value;return{type:R,value:r}})),_("mul",[{type:B,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let i=n.length?n[0].value:s;for(let e=1;e<n.length;++e)i*=n[e].value,i=F(0,i),P(t,i);return{type:B,value:i}})),_("mul",[{type:R,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let i=n.length?n[0].value:0;for(let t=1;t<n.length;++t)i*=n[t].value;return{type:R,value:i}})),_("sub",[{type:B,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let i=n.length?n[0].value:s;for(let e=1;e<n.length;++e)i-=n[e].value,i=F(0,i),P(t,i);return{type:B,value:i}})),_("sub",[{type:R,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let i=n.length?n[0].value:0;for(let t=1;t<n.length;++t)i-=n[t].value;return{type:R,value:i}})),_("sum",[{type:B,isVararg:!0}],(function(t){let e=s;for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];for(let n=0;n<r.length;++n)e+=r[n].value,e=F(0,e),P(t,e);return{type:B,value:e}})),_("sum",[{type:R,isVararg:!0}],(function(t){let e=0;for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];for(let t=0;t<r.length;++t)e+=r[t].value;return{type:R,value:e}})),_("abs",[B],(function(t,e){const n=l(e.value);return P(t,n),{type:e.type,value:n}})),_("abs",[R],(function(t,e){const n=Math.abs(e.value);return{type:R,value:n}})),_("max",[{type:B,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!n.length)throw new Error("Non empty argument list is required for function 'max'.");let i=n[0].value;for(let t=1;t<n.length;++t)n[t].value>i&&(i=n[t].value);return{type:B,value:i}})),_("max",[{type:R,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!n.length)throw new Error("Non empty argument list is required for function 'max'.");return{type:R,value:Math.max(...n.map((t=>t.value)))}})),_("min",[{type:B,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!n.length)throw new Error("Non empty argument list is required for function 'min'.");let i=n[0].value;for(let t=1;t<n.length;++t)n[t].value<i&&(i=n[t].value);return{type:B,value:i}})),_("min",[{type:R,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!n.length)throw new Error("Non empty argument list is required for function 'min'.");return{type:R,value:Math.min(...n.map((t=>t.value)))}})),_("maxNumber",[],(function(){return{type:R,value:M}})),_("minNumber",[],(function(){return{type:R,value:z}})),_("maxInteger",[],(function(t){return P(t,i),{type:B,value:i}})),_("minInteger",[],(function(t){return P(t,o),{type:B,value:o}})),_("round",[R],(function(t,e){const n=Math.sign(e.value);return{type:R,value:n*Math.round(Math.abs(e.value))}})),_("floor",[R],(function(t,e){return{type:R,value:Math.floor(e.value)}})),_("ceil",[R],(function(t,e){return{type:R,value:Math.ceil(e.value)}})),_("signum",[B],(function(t,e){return{type:B,value:c(e.value)}})),_("signum",[R],(function(t,e){return{type:R,value:Math.sign(e.value)}})),_("copySign",[B,B],(function(t,e,n){let r;if(n.value===s)r=e.value;else if(e.value===s)r=a(0);else{const t=c(n.value);r=l(e.value)*t}return P(t,r),{type:B,value:r}})),_("copySign",[R,R],(function(t,e,n){let r=Math.sign(n.value);0===r&&(r=Object.is(r,0)?1:-1);const i=Math.abs(e.value)*r;return{type:R,value:i}})),_("getColorAlpha",[J],mt),_("getColorAlpha",[U],mt),_("getColorRed",[J],vt),_("getColorRed",[U],vt),_("getColorGreen",[J],yt),_("getColorGreen",[U],yt),_("getColorBlue",[J],$t),_("getColorBlue",[U],$t),_("setColorAlpha",[J,R],_t),_("setColorAlpha",[U,R],_t),_("setColorRed",[J,R],bt),_("setColorRed",[U,R],bt),_("setColorGreen",[J,R],wt),_("setColorGreen",[U,R],wt),_("setColorBlue",[J,R],xt),_("setColorBlue",[U,R],xt),_("rgb",[R,R,R],(function(t,e,n,r){const i={a:255,r:255*e.value,g:255*n.value,b:255*r.value};return{type:U,value:O(i)}})),_("argb",[R,R,R,R],(function(t,e,n,r,i){const o={a:255*e.value,r:255*n.value,g:255*r.value,b:255*i.value};return{type:U,value:O(o)}})),_("getDictString",[q,{type:J,isVararg:!0}],Vt),_("getStringFromDict",[q,{type:J,isVararg:!0}],Vt),_("getDictNumber",[q,{type:J,isVararg:!0}],Dt),_("getNumberFromDict",[q,{type:J,isVararg:!0}],Dt),_("getDictInteger",[q,{type:J,isVararg:!0}],jt),_("getIntegerFromDict",[q,{type:J,isVararg:!0}],jt),_("getDictBoolean",[q,{type:J,isVararg:!0}],Ft),_("getBooleanFromDict",[q,{type:J,isVararg:!0}],Ft),_("getDictColor",[q,{type:J,isVararg:!0}],Pt),_("getColorFromDict",[q,{type:J,isVararg:!0}],Pt),_("getDictUrl",[q,{type:J,isVararg:!0}],St),_("getUrlFromDict",[q,{type:J,isVararg:!0}],St),_("getDictOptString",[J,q,{type:J,isVararg:!0}],It),_("getOptStringFromDict",[J,q,{type:J,isVararg:!0}],It),_("getDictOptNumber",[R,q,{type:J,isVararg:!0}],Nt),_("getOptNumberFromDict",[R,q,{type:J,isVararg:!0}],Nt),_("getDictOptInteger",[B,q,{type:J,isVararg:!0}],Ot),_("getOptIntegerFromDict",[B,q,{type:J,isVararg:!0}],Ot),_("getDictOptBoolean",[L,q,{type:J,isVararg:!0}],Tt),_("getOptBooleanFromDict",[L,q,{type:J,isVararg:!0}],Tt),_("getDictOptColor",[U,q,{type:J,isVararg:!0}],Mt),_("getOptColorFromDict",[U,q,{type:J,isVararg:!0}],Mt),_("getDictOptColor",[J,q,{type:J,isVararg:!0}],Mt),_("getOptColorFromDict",[J,q,{type:J,isVararg:!0}],Mt),_("getDictOptUrl",[J,q,{type:J,isVararg:!0}],zt),_("getOptUrlFromDict",[J,q,{type:J,isVararg:!0}],zt),_("getDictOptUrl",[H,q,{type:J,isVararg:!0}],zt),_("getOptUrlFromDict",[H,q,{type:J,isVararg:!0}],zt),_("getArrayString",[G,B],Rt),_("getStringFromArray",[G,B],Rt),_("getArrayNumber",[G,B],Lt),_("getNumberFromArray",[G,B],Lt),_("getArrayInteger",[G,B],Ut),_("getIntegerFromArray",[G,B],Ut),_("getArrayBoolean",[G,B],Ht),_("getBooleanFromArray",[G,B],Ht),_("getArrayColor",[G,B],Wt),_("getColorFromArray",[G,B],Wt),_("getArrayUrl",[G,B],qt),_("getUrlFromArray",[G,B],qt),_("getArrayFromArray",[G,B],Gt),_("getDictFromArray",[G,B],Kt),_("getArrayOptString",[G,B,J],Yt),_("getOptStringFromArray",[G,B,J],Yt),_("getArrayOptNumber",[G,B,R],Zt),_("getOptNumberFromArray",[G,B,R],Zt),_("getArrayOptInteger",[G,B,B],Xt),_("getOptIntegerFromArray",[G,B,B],Xt),_("getArrayOptBoolean",[G,B,L],Qt),_("getOptBooleanFromArray",[G,B,L],Qt),_("getArrayOptColor",[G,B,U],te),_("getOptColorFromArray",[G,B,U],te),_("getArrayOptColor",[G,B,J],te),_("getOptColorFromArray",[G,B,J],te),_("getArrayOptUrl",[G,B,H],ee),_("getOptUrlFromArray",[G,B,H],ee),_("getArrayOptUrl",[G,B,J],ee),_("getOptUrlFromArray",[G,B,J],ee),_("getOptArrayFromArray",[G,B],(function(t,e,n){try{return Gt(t,e,n)}catch(t){return{type:G,value:[]}}})),_("getOptDictFromArray",[G,B],(function(t,e,n){try{return Kt(t,e,n)}catch(t){return{type:q,value:{}}}})),_("len",[G],(function(t,e){return{type:B,value:a(e.value.length)}}));const yr={StringLiteral:function(t,e){return{type:J,value:e.value}},NumberLiteral:function(t,e){return{type:R,value:e.value}},IntegerLiteral:function(t,e){return P(t,e.value),{type:B,value:e.value}},BooleanLiteral:function(t,e){return{type:L,value:e.value?1:0}},UnaryExpression:function(t,e){const n=C($r(t,e.argument));switch(e.operator){case"!":if(n.type===L)return{type:L,value:n.value?0:1};I("".concat(e.operator).concat(D(n)),"A Boolean is expected after a unary not.");case"+":case"-":const r="+"===e.operator?1:-1;if(n.type===B){const e=n.value*a(r);return P(t,e),{type:B,value:e}}if(n.type===R)return{type:R,value:n.value*r};I("".concat(e.operator).concat(D(n)),"A Number is expected after a unary ".concat("+"===e.operator?"plus":"minus","."))}},ConditionalExpression:function(t,e){const n=C($r(t,e.test));if(n.type===L)return n.value?$r(t,e.consequent):$r(t,e.alternate);I("".concat(D(n)," ? ").concat(D($r(t,e.consequent))," : ").concat(D($r(t,e.alternate))),"Ternary must be called with a Boolean value as a condition.")},TryExpression:function(t,e){try{return $r(t,e.test)}catch(n){return $r(t,e.alternate)}},TemplateLiteral:function(t,e){let n="";if(2===e.quasis.length&&""===e.quasis[0].value&&""===e.quasis[1].value)return $r(t,e.expressions[0]);for(let r=0;r<e.expressions.length;++r)n+=e.quasis[r].value,n+=V($r(t,e.expressions[r]));return n+=e.quasis[e.quasis.length-1].value,{type:J,value:n}},LogicalExpression:function(t,e){const n=C($r(t,e.left));if(n.type!==L&&I("".concat(D(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:L,value:0};const r=C($r(t,e.right));return r.type!==L&&I("".concat(D(n)," ").concat(e.operator," ").concat(D(r)),"Operator '".concat(e.operator,"' cannot be applied to different types: Boolean and ").concat(j(r.type),".")),{type:L,value:r.value}},BinaryExpression:function(t,e){const n=e.operator,r=$r(t,e.left),i=$r(t,e.right);if(r.type!==i.type&&I("".concat(D(r)," ").concat(e.operator," ").concat(D(i)),"Operator '".concat(n,"' cannot be applied to different types: ").concat(j(r.type)," and ").concat(j(i.type),".")),"=="===n||"!="===n)return function(t,e,n){let r;return r=e.type===W&&n.type===W?e.value.getTime()===n.value.getTime():e.value===n.value,"!="===t&&(r=!r),{type:L,value:r?1:0}}(n,r,i);if(">"===n||">="===n||"<"===n||"<="===n)return function(t,e,n){let r;e.type!==R&&e.type!==B&&e.type!==W&&I("".concat(D(e)," ").concat(t," ").concat(D(n)),"Operator '".concat(t,"' cannot be applied to ").concat(j(e.type)," type."));const i=e.type===W?e.value.getTime():e.value,o=n.type===W?n.value.getTime():n.value;return r=">"===t?i>o:">="===t?i>=o:"<"===t?i<o:i<=o,{type:L,value:r?1:0}}(n,r,i);if("+"===n||"-"===n)return function(t,e,n,r){if(n.type!==J&&n.type!==R&&n.type!==B&&I("".concat(D(n)," ").concat(e," ").concat(D(r)),"Operator '".concat(e,"' cannot be applied to ").concat(j(n.type)," type.")),n.type===J)return"-"===e&&I("".concat(D(n)," - ").concat(D(r)),"Operator '".concat(e,"' cannot be applied to ").concat(j(n.type)," type.")),{type:J,value:n.value+r.value};let i="+"===e?n.value+r.value:n.value-r.value;if(n.type===B)try{i=F(0,i),P(t,i)}catch(t){I("".concat(D(n)," ").concat(e," ").concat(D(r)),t.message)}return{type:n.type,value:i}}(t,n,r,i);if("/"===n||"*"===n||"%"===n)return function(t,e,n,r){let i;if(n.type!==B&&n.type!==R&&I("".concat(D(n)," ").concat(e," ").concat(D(r)),"Operator '".concat(e,"' cannot be applied to ").concat(j(n.type)," type.")),"*"===e)i=n.value*r.value;else{if("/"!==e&&"%"!==e)throw new Error("Unsupported operation ".concat(e));0===Number(r.value)&&I("".concat(D(n)," ").concat(e," ").concat(D(r)),"Division by zero is not supported."),i="/"===e?n.value/r.value:n.value%r.value}if(n.type===B)try{i=F(0,i),P(t,i)}catch(t){I("".concat(D(n)," ").concat(e," ").concat(D(r)),t.message)}return{type:n.type,value:i}}(t,n,r,i);throw new Error("Unsupported operation ".concat(n))},CallExpression:function(t,e){const n=e.callee.name;let r;const i=e.arguments.map((e=>$r(t,e))),o=n+":"+i.map((t=>t.type)).join("#");if($.has(o))r=$.get(o);else{const t=function(t,e){const n=y.get(t);if(!n)return{type:"missing"};let r=null;for(let t=0;t<n.length;++t){const i=b(n[t],e);if("match"===i.type)return n[t];r||(r=i)}if(!r)throw new Error("Missing function");return r}(n,i);if("expected"in t||"type"in t&&"missing"===t.type){const e=i.map((t=>j(t.type))).join(", "),r="".concat(n,"(").concat(vr(i),")");"few"===t.type&&0===i.length?I(r,"Non empty argument list is required for function '".concat(n,"'.")):"many"===t.type||"few"===t.type||"mismatch"===t.type?I(r,"Function '".concat(n,"' has no matching override for given argument types: ").concat(e,".")):I(r,"Unknown function name: ".concat(n,"."))}r=t}if(!r)throw new Error("Function not found");try{return r.cb(t,...i)}catch(t){I("".concat(n,"(").concat(vr(i),")"),t.message)}},Variable:function(t,e){const n=e.id.name,r=t.variables.get(n);if(r)return function(t){return{type:t.getType(),value:t.getValue()}}(r);throw new Error("Variable '".concat(n,"' is missing."))}};function $r(t,e){if(e.type in yr)return yr[e.type](t,e);throw new Error("Unsupported expression")}function _r(t,e){try{const n={variables:t,warnings:[],safeIntegerOverflow:!1},r=$r(n,e);return n.safeIntegerOverflow&&n.warnings.push(ut(new Error("Safe integer overflow, values may lose accuracy."),{level:"warn"})),{result:r,warnings:n.warnings}}catch(t){return{result:{type:"error",value:t.message},warnings:[]}}}const br={root:"divkit-b023c",root__clickable:"divkit-bd259","root__clickable-no-transition":"divkit-d9099",root__unselectable:"divkit-c016b",root_platform_desktop:"divkit-ee112","root__only-desktop":"divkit-fef1e","root_restrict-scroll":"divkit-aa145","root_disabled-context-menu":"divkit-f0cba"},wr=Symbol("root"),xr={"text-range":"divkit-faf07",text:"divkit-d9b0e",text_halign_left:"divkit-a4cb7",text_halign_center:"divkit-e1659",text_halign_right:"divkit-ea280",text_valign_top:"divkit-d8ce0",text_valign_center:"divkit-ef58e",text_valign_bottom:"divkit-fe8ed",text_valign_baseline:"divkit-e0c6c",text__inner:"divkit-b8528",text_singleline:"divkit-ef11c",text_multiline:"divkit-ee8e3",text_truncate_none:"divkit-c6ea1",text__inner_gradient:"divkit-cb8e0",text__image:"divkit-bf6e2",text__image_hidden:"divkit-f1002","text_has-focus-color":"divkit-cb341"},kr={outer:"divkit-d65a7","outer_hide-on-transition-in":"divkit-a6d12","outer_halign-self_start":"divkit-cc452","outer_halign-self_center":"divkit-b8331","outer_halign-self_end":"divkit-c573c","outer_halign-self_stretch":"divkit-dcc74","outer_valign-self_start":"divkit-e8077","outer_valign-self_center":"divkit-d40a7","outer_valign-self_end":"divkit-e9f84","outer_valign-self_stretch":"divkit-b7aa3","outer_parent-flex_vertical":"divkit-c143f","outer_parent-flex_horizontal":"divkit-ef302","outer_valign-self_baseline":"divkit-e72b5",outer_width_content:"divkit-b8f4d",outer_height_content:"divkit-faa66","outer_width-constrained":"divkit-d3211","outer_parent-grid":"divkit-ff439","outer_height-constrained":"divkit-a5256","outer_parent-overlap":"divkit-dab2d","outer_parent-overlap-absolute":"divkit-d43fb","outer_scroll-snap_center":"divkit-d9e38","outer_scroll-snap_start":"divkit-efd1e",outer__border:"divkit-d4056",outer_visibility_invisible:"divkit-f018b",outer_visibility_gone:"divkit-e784b","outer_has-action-animation":"divkit-f4980","outer_has-custom-focus":"divkit-c7f14"};function Er(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 Cr(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 Ar(t){let e=Cr(t);return"0"===e&&(e+="em"),e}function Vr(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 Dr=Boolean;function jr(t){if(1===t.length&&"solid"===t[0].type)return{color:k(t[0].color||"transparent"),size:"auto",position:"50% 50%"};const e=t.map((t=>"solid"===t.type?function(t){const e=k(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(Dr);return n.length?{size:void 0,pos:void 0,image:"linear-gradient("+(90-Number(t.bg.angle||0))+"deg,"+n.map((t=>k(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:Sr(t.bg.scale),pos:Ir(t.bg),image:'url("'+Vr(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(Dr);if(!n.length)return;const r=t.bg.radius;let i;r&&"object"==typeof r&&"type"in r&&void 0!==r.value&&("fixed"===r.type?i=Ar(r.value):"relative"===r.type&&(i=Fr[r.value]));const o=Pr(t.bg.center_x),a=Pr(t.bg.center_y);return{size:void 0,pos:void 0,image:"radial-gradient("+"circle ".concat(i||"farthest-corner"," at ").concat(o," ").concat(a)+","+n.map((t=>k(t))).join(",")+")"}}({bg:t}):void 0)).filter(Dr).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 Fr={nearest_corner:"closest-corner",farthest_corner:"farthest-corner",nearest_side:"closest-side",farthest_side:"farthest-side"};function Pr(t){if(t&&"object"==typeof t&&"type"in t&&void 0!==t.value){if("fixed"===t.type)return Ar(t.value);if("relative"===t.type)return"".concat(100*Number(t.value),"%")}return"50%"}function Sr(t){return"fit"===t?"contain":"stretch"===t?"fill":"no_scale"===t?"none":"cover"}function Ir(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 Nr(t){const e=/^([^/]+):\/\//.exec(t);return e&&e[1]||""}function Or(t,e){return e.has(t)}function Tr(t,e,n){return"number"==typeof e&&(t&&e>0&&e<=100||!t&&e>=0&&e<100)?e:n}function Mr(t){return 0!==t.is_enabled&&!1!==t.is_enabled&&void 0!==t.index}function zr(t,e){e&&t.push(e)}function Jr(t,e,n){const r=[];zr(r,e[t]);for(const i in n)if(n.hasOwnProperty(i)){const o=n[i];o&&zr(r,e["".concat(t,"_").concat(i)+("string"==typeof o?"_".concat(o):"")])}return r.join(" ")}const Br=function(t,e){var n;let{json:r,origJson:i,templateContext:o,rootCtx:a}=e;return null===(n=a.componentDevtool)||void 0===n||n.call(a,{type:"mount",node:t,json:r,origJson:i,templateContext:o}),{update(e){var n;let{json:r,origJson:i,templateContext:o}=e;null===(n=a.componentDevtool)||void 0===n||n.call(a,{type:"update",node:t,json:r,origJson:i,templateContext:o})},destroy(){var e;null===(e=a.componentDevtool)||void 0===e||e.call(a,{type:"destroy",node:t,json:r,origJson:i,templateContext:o})}}},Rr=Symbol("state");function Lr(t){const e=t.top||0,n=t.right||0,r=t.bottom||0,i=t.left||0;return 0===e&&0===n&&0===r&&0===i?"":Cr(e)+" "+Cr(n)+" "+Cr(r)+" "+Cr(i)}function Ur(t){if("number"!=typeof t&&"string"!=typeof t)return!1;const e=Number(t);return!isNaN(e)}function Hr(t){return Ur(t)&&t>=0}function Wr(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]&&!Hr(n[t]))return e;return Lr(t)}function qr(t,e){const n=Number(t);return isNaN(n)||n<0?e:n}const Gr=Object.prototype.hasOwnProperty;function Kr(t,e){if(Object.is(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return Object.is(t,e);const n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++){const i=n[r];if(!Gr.call(e,i)||!Kr(t[i],e[i]))return!1}return!0}function Yr(t,e){return Kr(t,e)?e:t}function Zr(t,e){return"linear"===t||"ease"===t||"ease_in_out"===t||"ease_in"===t||"ease_out"===t?t:e}function Xr(t,e){const n=Number(t);return isNaN(n)?e:n}function Qr(t){const e=[];return"set"===t.name?(t.items||[]).forEach((t=>{e.push(...Qr(t))})):e.push(t),e}function ti(t,e){if(!t||"object"!=typeof t)return e;const n=["top","right","bottom","left"];for(let r=0;r<n.length;++r)if(t[n[r]]&&!Hr(t[n[r]]))return e;return t}function ei(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=>Cr((t||e)/n*10))).join(" ")}function ni(t){return 0!==t.is_enabled&&!1!==t.is_enabled}let ri;function ii(){return"undefined"!=typeof matchMedia&&(ri||(ri=window.matchMedia("(prefers-reduced-motion)")),ri.matches)}function oi(){}const ai=Symbol("action");function si(t){const e=t.touches[0];return{x:e.clientX||e.pageX,y:e.clientY||e.pageY}}function li(t){var e;let n,r,i,o,a,s,l,c;const u=t[17].default,d=fe(u,t,t[16],null);let h=[{class:r=t[1]+(t[8]?" ".concat(t[5]?br.root__clickable:br["root__clickable-no-transition"]," ").concat(br.root__unselectable):"")+" "+(null!==(e=t[0])&&void 0!==e&&e.length?br["root_disabled-context-menu"]:"")},{style:t[2]},{role:i=t[8]?"button":null},{tabindex:o=t[8]?0:null},t[3]],p={};for(let t=0;t<h.length;t+=1)p=ie(p,h[t]);return{c(){n=Je("span"),d&&d.c(),this.h()},l(t){n=en(t,"SPAN",{class:!0,style:!0,role:!0,tabindex:!0});var e=Ze(n);d&&d.l(e),e.forEach(Me),this.h()},h(){Ge(n,p)},m(e,r){Te(e,n,r),d&&d.m(n,null),t[25](n),s=!0,l||(c=[_e(a=t[4].call(null,n)),He(n,"click",t[21]),He(n,"keydown",t[10]),He(n,"focus",t[22]),He(n,"blur",t[23])],l=!0)},p(t,e){var a;d&&d.p&&(!s||65536&e[0])&&ve(d,u,t,t[16],s?me(u,t[16],e,null):ye(t[16]),null),Ge(n,p=Qn(h,[(!s||291&e[0]&&r!==(r=t[1]+(t[8]?" ".concat(t[5]?br.root__clickable:br["root__clickable-no-transition"]," ").concat(br.root__unselectable):"")+" "+(null!==(a=t[0])&&void 0!==a&&a.length?br["root_disabled-context-menu"]:"")))&&{class:r},(!s||4&e[0])&&{style:t[2]},(!s||256&e[0]&&i!==(i=t[8]?"button":null))&&{role:i},(!s||256&e[0]&&o!==(o=t[8]?0:null))&&{tabindex:o},8&e[0]&&t[3]]))},i(t){s||(Wn(d,t),s=!0)},o(t){qn(d,t),s=!1},d(e){e&&Me(n),d&&d.d(e),t[25](null),l=!1,se(c)}}}function ci(t){var e;let n,r,i,o,a,s;const l=t[17].default,c=fe(l,t,t[16],null);let u=[{href:t[7]},{target:t[9]},{style:t[2]},{class:r=t[1]+" "+(t[5]?br.root__clickable:br["root__clickable-no-transition"])+" "+(null!==(e=t[0])&&void 0!==e&&e.length?br["root_disabled-context-menu"]:"")},t[3]],d={};for(let t=0;t<u.length;t+=1)d=ie(d,u[t]);return{c(){n=Je("a"),c&&c.c(),this.h()},l(t){n=en(t,"A",{href:!0,target:!0,style:!0,class:!0});var e=Ze(n);c&&c.l(e),e.forEach(Me),this.h()},h(){Ge(n,d)},m(e,r){Te(e,n,r),c&&c.m(n,null),t[24](n),o=!0,a||(s=[_e(i=t[4].call(null,n)),He(n,"click",t[18]),He(n,"keydown",t[10]),He(n,"focus",t[19]),He(n,"blur",t[20])],a=!0)},p(t,e){var i;c&&c.p&&(!o||65536&e[0])&&ve(c,l,t,t[16],o?me(l,t[16],e,null):ye(t[16]),null),Ge(n,d=Qn(u,[(!o||128&e[0])&&{href:t[7]},(!o||512&e[0])&&{target:t[9]},(!o||4&e[0])&&{style:t[2]},(!o||35&e[0]&&r!==(r=t[1]+" "+(t[5]?br.root__clickable:br["root__clickable-no-transition"])+" "+(null!==(i=t[0])&&void 0!==i&&i.length?br["root_disabled-context-menu"]:"")))&&{class:r},8&e[0]&&t[3]]))},i(t){o||(Wn(c,t),o=!0)},o(t){qn(c,t),o=!1},d(e){e&&Me(n),c&&c.d(e),t[24](null),a=!1,se(s)}}}function ui(t){let e,n,r,i;const o=[ci,li],a=[];function s(t,e){return t[7]?0:1}return e=s(t),n=a[e]=o[e](t),{c(){n.c(),r=Ue()},l(t){n.l(t),r=Ue()},m(t,n){a[e].m(t,n),Te(t,r,n),i=!0},p(t,i){let l=e;e=s(t),e===l?a[e].p(t,i):(Un(),qn(a[l],1,1,(()=>{a[l]=null})),Hn(),n=a[e],n?n.p(t,i):(n=a[e]=o[e](t),n.c()),Wn(n,1),n.m(r.parentNode,r))},i(t){i||(Wn(n),i=!0)},o(t){qn(n),i=!1},d(t){t&&Me(r),a[e].d(t)}}}function di(t,e,n){let{$$slots:r={},$$scope:i}=e,{id:o=""}=e,{actions:a}=e,{doubleTapActions:s}=e,{longTapActions:l}=e,{cls:c=""}=e,{style:u=null}=e,{attrs:d}=e,{use:h=oi}=e,{customAction:p=null}=e,{isNativeActionAnimation:f=!0}=e,{hasInnerFocusable:g=!1}=e;const m=kn(wr),v=kn(ai);let y;xn(ai,{hasAction:()=>Boolean(v.hasAction()||(null==a?void 0:a.length))});let $,_="",b=-1,w=null,x=!1,k=!1;async function E(t){v.hasAction()||void 0!==t.button&&0!==t.button||(!1===(null==p?void 0:p(t))?t.preventDefault():a&&(a.some((t=>{if(null==t?void 0:t.typed)return!0;const e=null==t?void 0:t.url;if(!e)return!1;const n=Nr(e);return n&&!Or(n,m.getBuiltinProtocols())}))&&t.preventDefault(),m.execAnyActions(a)))}function C(t){v.hasAction()||void 0!==t.button&&0!==t.button||m.execAnyActions(s,!0)}function A(t){t.touches.length>1||(w=si(t),x=!1,b=Date.now())}function V(t){if(!w)return;const e=si(t);(Math.abs(w.x-e.x)>8||Math.abs(w.y-e.y)>8)&&(x=!0)}function D(){!w||b<0||(!x&&Date.now()-b>=400&&m.execAnyActions(l,!0),w=null,b=-1)}return bn((()=>{o&&!g&&m.registerFocusable(o,{focus(){y&&(_||k)&&y.focus()}})})),wn((()=>{o&&!g&&m.unregisterFocusable(o)})),t.$$set=t=>{"id"in t&&n(11,o=t.id),"actions"in t&&n(12,a=t.actions),"doubleTapActions"in t&&n(13,s=t.doubleTapActions),"longTapActions"in t&&n(0,l=t.longTapActions),"cls"in t&&n(1,c=t.cls),"style"in t&&n(2,u=t.style),"attrs"in t&&n(3,d=t.attrs),"use"in t&&n(4,h=t.use),"customAction"in t&&n(14,p=t.customAction),"isNativeActionAnimation"in t&&n(5,f=t.isNativeActionAnimation),"hasInnerFocusable"in t&&n(15,g=t.hasInnerFocusable),"$$scope"in t&&n(16,i=t.$$scope)},t.$$.update=()=>{if(20608&t.$$.dirty[0]){if(Array.isArray(a)&&(null==a?void 0:a.length))for(let t=0;t<a.length;++t){const e=a[t].url;if(e){n(7,_=e),n(9,$=a[t].target||void 0);break}}Array.isArray(a)&&(null==a?void 0:a.length)&&v.hasAction()&&(n(7,_=""),m.logError(ut(new Error("Actionable element is forbidden inside other actionable element"),{level:"warn",additional:{actions:a}}))),n(8,k=Boolean(p)),_&&!Or(Nr(_),m.getBuiltinProtocols())?(n(7,_=""),n(8,k=!0)):!_&&Array.isArray(a)&&(null==a?void 0:a.length)&&(n(8,k=!0),a.some((t=>t.url||t.typed))||m.logError(ut(new Error("The component has a list of actions, but does not have a real action"),{level:"warn",additional:{actions:a}})))}8641&t.$$.dirty[0]&&y&&(_||k?y.addEventListener("click",E):y.removeEventListener("click",E),(null==s?void 0:s.length)?y.addEventListener("dblclick",C):y.removeEventListener("dblclick",C),(null==l?void 0:l.length)?(y.addEventListener("touchstart",A,{passive:!0}),y.addEventListener("touchmove",V,{passive:!0}),y.addEventListener("touchend",D,{passive:!0}),y.addEventListener("touchcancel",D,{passive:!0})):(y.removeEventListener("touchstart",A),y.removeEventListener("touchmove",V),y.removeEventListener("touchend",D),y.removeEventListener("touchcancel",D)))},[l,c,u,d,h,f,y,_,k,$,function(t){const e=t.target;e instanceof HTMLElement&&("INPUT"===e.tagName||"true"===e.contentEditable)||t.ctrlKey||t.metaKey||t.altKey||t.shiftKey||"Enter"===t.key&&Array.isArray(a)&&a.length&&(m.execAnyActions(a),t.preventDefault())},o,a,s,p,g,i,r,function(e){En.call(this,t,e)},function(e){En.call(this,t,e)},function(e){En.call(this,t,e)},function(e){En.call(this,t,e)},function(e){En.call(this,t,e)},function(e){En.call(this,t,e)},function(t){An[t?"unshift":"push"]((()=>{y=t,n(6,y)}))},function(t){An[t?"unshift":"push"]((()=>{y=t,n(6,y)}))}]}const hi=class extends ur{constructor(t){super(),lr(this,t,di,ui,de,{id:11,actions:12,doubleTapActions:13,longTapActions:0,cls:1,style:2,attrs:3,use:4,customAction:14,isNativeActionAnimation:5,hasInnerFocusable:15},null,[-1,-1])}},pi={"outer-background":"divkit-bf253","outer-background_clip":"divkit-dcad7","outer-background__item":"divkit-b921d","outer-background__item_hidden":"divkit-cd613"};function fi(t){return Ur(t)&&t>0}function gi(t,e){return t.map((t=>{if("blur"===(null==t?void 0:t.type)){if(fi(t.radius))return"blur(".concat(Ar(t.radius/2),")")}else e(ut(new Error("Unknown filter"),{level:"warn",additional:{filter:null==t?void 0:t.type}}))})).filter(Boolean).join(" ")}function mi(t,e,n){const r=t.slice();return r[5]=e[n],r}function vi(t){let e,n,r;return{c(){e=Je("span"),this.h()},l(t){e=en(t,"SPAN",{class:!0,style:!0}),Ze(e).forEach(Me),this.h()},h(){We(e,"class",n=pi["outer-background__item"]),We(e,"style",r=Er(t[5].style))},m(t,n){Te(t,e,n)},p(t,n){2&n&&r!==(r=Er(t[5].style))&&We(e,"style",r)},d(t){t&&Me(e)}}}function yi(t){let e,n,r,i,o,a;return{c(){e=Je("img"),this.h()},l(t){e=en(t,"IMG",{src:!0,alt:!0,"aria-hidden":!0,loading:!0,decoding:!0,class:!0,style:!0}),this.h()},h(){ue(e.src,n=t[5].image_url)||We(e,"src",n),We(e,"alt",""),We(e,"aria-hidden","true"),We(e,"loading","lazy"),We(e,"decoding","async"),We(e,"class",r=pi["outer-background__item"]),We(e,"style",i=Er(t[5].style))},m(n,r){Te(n,e,r),o||(a=He(e,"error",t[2]),o=!0)},p(t,r){2&r&&!ue(e.src,n=t[5].image_url)&&We(e,"src",n),2&r&&i!==(i=Er(t[5].style))&&We(e,"style",i)},d(t){t&&Me(e),o=!1,a()}}}function $i(t){let e;function n(t,e){return t[5].image_url?yi:vi}let r=n(t),i=r(t);return{c(){i.c(),e=Ue()},l(t){i.l(t),e=Ue()},m(t,n){i.m(t,n),Te(t,e,n)},p(t,o){r===(r=n(t))&&i?i.p(t,o):(i.d(1),i=r(t),i&&(i.c(),i.m(e.parentNode,e)))},d(t){t&&Me(e),i.d(t)}}}function _i(t){let e,n,r=Yn(t[1]),i=[];for(let e=0;e<r.length;e+=1)i[e]=$i(mi(t,r,e));return{c(){e=Je("span");for(let t=0;t<i.length;t+=1)i[t].c();this.h()},l(t){e=en(t,"SPAN",{class:!0});var n=Ze(e);for(let t=0;t<i.length;t+=1)i[t].l(n);n.forEach(Me),this.h()},h(){We(e,"class",n=pi["outer-background"]+(t[0]?" "+pi["outer-background_clip"]:"")),cn(e,"border-radius",t[0])},m(t,n){Te(t,e,n);for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(e,null)},p(t,o){let[a]=o;if(6&a){let n;for(r=Yn(t[1]),n=0;n<r.length;n+=1){const o=mi(t,r,n);i[n]?i[n].p(o,a):(i[n]=$i(o),i[n].c(),i[n].m(e,null))}for(;n<i.length;n+=1)i[n].d(1);i.length=r.length}1&a&&n!==(n=pi["outer-background"]+(t[0]?" "+pi["outer-background_clip"]:""))&&We(e,"class",n),1&a&&cn(e,"border-radius",t[0])},i:ne,o:ne,d(t){t&&Me(e),ze(i,t)}}}function bi(t,e,n){let r,{background:i=[]}=e,{radius:o=""}=e;const a=kn(wr);return t.$$set=t=>{"background"in t&&n(3,i=t.background),"radius"in t&&n(0,o=t.radius)},t.$$.update=()=>{8&t.$$.dirty&&n(1,r=i.map((t=>{const e={},n={style:e};if("nine_patch_image"===t.type&&t.insets)e["border-image"]='url("'.concat(t.image_url,'") ').concat(t.insets.top||0," ").concat(t.insets.right||0," ").concat(t.insets.bottom||0," ").concat(t.insets.left||0," fill"),e["border-image-width"]="auto";else{const r=jr([t]);"solid"===t.type&&(e["background-color"]=r.color),"gradient"===t.type&&(e["background-image"]=r.image),"image"===t.type&&(e.opacity=Number(t.alpha),n.image_url=t.image_url,e["object-fit"]=r.size,e["object-position"]=r.position,Array.isArray(t.filters)&&t.filters.length&&(e.filter=gi(t.filters,a.logError)))}return n})))},[o,r,function(t){t.target&&"classList"in t.target&&t.target.classList.add(pi["outer-background__item_hidden"])},i]}const wi=class extends ur{constructor(t){super(),lr(this,t,bi,_i,de,{background:3,radius:0})}},xi=t=>({hasCustomFocus:256&t[0]}),ki=t=>({focusHandler:t[38],blurHandler:t[39],hasCustomFocus:t[8]});function Ei(t){let e,n;return e=new hi({props:{id:t[0].id,use:t[37],cls:t[1]+" "+Jr("outer",kr,t[17]),style:Er(t[16]),actions:t[13],doubleTapActions:t[14],longTapActions:t[15],attrs:t[9],hasInnerFocusable:t[2],isNativeActionAnimation:!t[7].length||Pi(t[7]),$$slots:{default:[Vi]},$$scope:{ctx:t}}}),e.$on("focus",t[38]),e.$on("blur",t[39]),{c(){ir(e.$$.fragment)},l(t){or(e.$$.fragment,t)},m(t,r){ar(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.id=t[0].id),131074&n[0]&&(r.cls=t[1]+" "+Jr("outer",kr,t[17])),65536&n[0]&&(r.style=Er(t[16])),8192&n[0]&&(r.actions=t[13]),16384&n[0]&&(r.doubleTapActions=t[14]),32768&n[0]&&(r.longTapActions=t[15]),512&n[0]&&(r.attrs=t[9]),4&n[0]&&(r.hasInnerFocusable=t[2]),128&n[0]&&(r.isNativeActionAnimation=!t[7].length||Pi(t[7])),1400&n[0]|268435456&n[3]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Wn(e.$$.fragment,t),n=!0)},o(t){qn(e.$$.fragment,t),n=!1},d(t){sr(e,t)}}}function Ci(t){let e,n;return e=new wi({props:{background:t[5],radius:t[4]}}),{c(){ir(e.$$.fragment)},l(t){or(e.$$.fragment,t)},m(t,r){ar(e,t,r),n=!0},p(t,n){const r={};32&n[0]&&(r.background=t[5]),16&n[0]&&(r.radius=t[4]),e.$set(r)},i(t){n||(Wn(e.$$.fragment,t),n=!0)},o(t){qn(e.$$.fragment,t),n=!1},d(t){sr(e,t)}}}function Ai(t){let e,n,r;return{c(){e=Je("span"),this.h()},l(t){e=en(t,"SPAN",{class:!0,style:!0}),Ze(e).forEach(Me),this.h()},h(){We(e,"class",n=kr.outer__border),We(e,"style",r=Er(t[3]))},m(t,n){Te(t,e,n)},p(t,n){8&n[0]&&r!==(r=Er(t[3]))&&We(e,"style",r)},d(t){t&&Me(e)}}}function Vi(t){let e,n,r,i=t[6]&&Ci(t);const o=t[120].default,a=fe(o,t,t[121],ki);let s=t[10]&&Ai(t);return{c(){i&&i.c(),e=Ue(),a&&a.c(),s&&s.c(),n=Ue()},l(t){i&&i.l(t),e=Ue(),a&&a.l(t),s&&s.l(t),n=Ue()},m(t,o){i&&i.m(t,o),Te(t,e,o),a&&a.m(t,o),s&&s.m(t,o),Te(t,n,o),r=!0},p(t,l){t[6]?i?(i.p(t,l),64&l[0]&&Wn(i,1)):(i=Ci(t),i.c(),Wn(i,1),i.m(e.parentNode,e)):i&&(Un(),qn(i,1,1,(()=>{i=null})),Hn()),a&&a.p&&(!r||256&l[0]|268435456&l[3])&&ve(a,o,t,t[121],r?me(o,t[121],l,xi):ye(t[121]),ki),t[10]?s?s.p(t,l):(s=Ai(t),s.c(),s.m(n.parentNode,n)):s&&(s.d(1),s=null)},i(t){r||(Wn(i),Wn(a,t),r=!0)},o(t){qn(i),qn(a,t),r=!1},d(t){t&&(Me(e),Me(n)),i&&i.d(t),a&&a.d(t),s&&s.d(t)}}}function Di(t){let e,n,r=!t[11]&&!t[12]&&Ei(t);return{c(){r&&r.c(),e=Ue()},l(t){r&&r.l(t),e=Ue()},m(t,i){r&&r.m(t,i),Te(t,e,i),n=!0},p(t,n){t[11]||t[12]?r&&(Un(),qn(r,1,1,(()=>{r=null})),Hn()):r?(r.p(t,n),6144&n[0]&&Wn(r,1)):(r=Ei(t),r.c(),Wn(r,1),r.m(e.parentNode,e))},i(t){n||(Wn(r),n=!0)},o(t){qn(r),n=!1},d(t){t&&Me(e),r&&r.d(t)}}}const ji={left:"start",center:"center",right:"end"},Fi={top:"start",center:"center",bottom:"end",baseline:"baseline"};function Pi(t){return t.some((t=>"native"===t.name))}function Si(t,e,n){let r,i,o,a,s,l,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x,E,C,A,V,D,j,F,P,S,I,N,O,T,M,z,J,B,R,L,U,H,W,q,G=ne,K=ne,Y=ne,Z=ne,X=ne,Q=ne,tt=ne,et=ne,nt=ne,rt=ne,it=ne,ot=ne,at=ne,st=ne,lt=ne,ct=ne,dt=ne,ht=ne;t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>K())),t.$$.on_destroy.push((()=>Y())),t.$$.on_destroy.push((()=>Z())),t.$$.on_destroy.push((()=>X())),t.$$.on_destroy.push((()=>Q())),t.$$.on_destroy.push((()=>tt())),t.$$.on_destroy.push((()=>et())),t.$$.on_destroy.push((()=>nt())),t.$$.on_destroy.push((()=>rt())),t.$$.on_destroy.push((()=>it())),t.$$.on_destroy.push((()=>ot())),t.$$.on_destroy.push((()=>at())),t.$$.on_destroy.push((()=>st())),t.$$.on_destroy.push((()=>lt())),t.$$.on_destroy.push((()=>ct())),t.$$.on_destroy.push((()=>dt())),t.$$.on_destroy.push((()=>ht()));let{$$slots:pt={},$$scope:ft}=e,{json:gt={}}=e,{origJson:mt}=e,{templateContext:vt}=e,{cls:yt=""}=e,{style:$t}=e,{layoutParams:_t={}}=e,{customDescription:bt=!1}=e,{customPaddings:wt=!1}=e,{customActions:xt=""}=e,{additionalPaddings:kt=null}=e,{heightByAspect:Et=!1}=e,{parentOf:Ct}=e,{parentOfSimpleMode:At}=e,{replaceItems:Vt}=e,{hasInnerFocusable:Dt=!1}=e;const jt=kn(wr),Ft=kn(Rr),Pt=jt.isPointerFocus;let St,It;pe(t,Pt,(t=>n(127,D=t)));let Nt,Ot,Tt,Mt,zt,Jt,Bt,Rt,Lt,Ut,Ht,Wt,qt,Gt,Kt,Yt,Zt,Xt,Qt,te,ee=null,re=[],ie={},oe={},ae=!1,se=1,le="transparent",ce=0,ue={"top-left":0,"top-right":0,"bottom-right":0,"bottom-left":0},de="",fe=null,ge="",me={},ve=0,ye=0,$e=0,_e=!1,be=!1,we={},xe=0,ke=0,Ee=0,Ce=!1,Ae=!1,Ve=1,De=[],je=!1,Fe=!1,Pe=[],Se=[],Ie=[],Ne=[],Oe=[],Te=[],Me="",ze=!1,Je="visible",Be=0,Re=0,Le=!1,Ue=null;function He(t,e){if(!Array.isArray(Ct)||!Vt)return;if(At&&1!==(Array.isArray(e)&&e.length||0))return;const r=Ct.findIndex((e=>(null==e?void 0:e.id)===t)),i=Ct.slice();i.splice(r,1,...e||[]),n(40,Ct=i),Vt(i)}function We(t){const e=Xr(t.start_value,1),r=Xr(t.end_value,1),i=qr(t.start_delay,0),o=ii()?0:qr(t.duration,300),a=Zr(t.interpolator,"ease_in_out").replace(/_/g,"-");switch(t.name){case"fade":return n(86,Gt=e),n(87,Kt=r),"opacity ".concat(o,"ms ").concat(a," ").concat(i,"ms");case"scale":return n(88,Yt=e),n(89,Zt=r),"transform ".concat(o,"ms ").concat(a," ").concat(i,"ms");case"native":case"no_animation":return"";default:return jt.logError(ut(new Error("Unknown action_animation name"),{additional:{animation:t.name}})),""}}function qe(){if(ee&&St){const t=jt.getExtensionContext();ee.forEach((e=>{var n;null===(n=e.unmountView)||void 0===n||n.call(e,St,t)})),ee=null}}return wn((()=>{var t;re.forEach((t=>{jt.unregisterParentOf(t)})),n(53,re=[]),null===(t=gt.tooltips)||void 0===t||t.forEach((t=>{jt.unregisterTooltip(t)})),qe()})),t.$$set=t=>{"json"in t&&n(0,gt=t.json),"origJson"in t&&n(41,mt=t.origJson),"templateContext"in t&&n(42,vt=t.templateContext),"cls"in t&&n(1,yt=t.cls),"style"in t&&n(43,$t=t.style),"layoutParams"in t&&n(44,_t=t.layoutParams),"customDescription"in t&&n(45,bt=t.customDescription),"customPaddings"in t&&n(46,wt=t.customPaddings),"customActions"in t&&n(47,xt=t.customActions),"additionalPaddings"in t&&n(48,kt=t.additionalPaddings),"heightByAspect"in t&&n(49,Et=t.heightByAspect),"parentOf"in t&&n(40,Ct=t.parentOf),"parentOfSimpleMode"in t&&n(50,At=t.parentOfSimpleMode),"replaceItems"in t&&n(51,Vt=t.replaceItems),"hasInnerFocusable"in t&&n(2,Dt=t.hasInnerFocusable),"$$scope"in t&&n(121,ft=t.$$scope)},t.$$.update=()=>{if(1&t.$$.dirty[0]|8192&t.$$.dirty[1]|262144&t.$$.dirty[2]&>&&_t&&(n(59,fe=null),n(60,ge=""),n(77,Ve=1),n(90,ze=!1),n(91,Je="visible"),n(92,Be=0),n(93,Re=0),n(94,Xt=void 0),n(95,Qt=void 0),n(80,De=_t.fakeElement?[]:gt.transition_triggers||["state_change","visibility_change"]),n(81,je=Boolean(-1!==De.indexOf("state_change")&>.id)),Fe=Boolean(-1!==De.indexOf("visibility_change")&>.id)),1&t.$$.dirty[0]&&(n(35,r=jt.getDerivedFromVars(gt.focus)),Z(),Z=he(r,(t=>n(105,S=t)))),1&t.$$.dirty[0]&&(n(34,i=jt.getDerivedFromVars(gt.border)),ht(),ht=he(i,(t=>n(119,q=t)))),1&t.$$.dirty[0]&&(n(33,o=jt.getDerivedFromVars(gt.paddings)),dt(),dt=he(o,(t=>n(118,W=t)))),1&t.$$.dirty[0]&&(n(32,a=jt.getDerivedFromVars(gt.margins)),lt(),lt=he(a,(t=>n(116,U=t)))),1&t.$$.dirty[0]&&(n(31,s=jt.getDerivedFromVars(gt.width)),at(),at=he(s,(t=>n(114,R=t)))),1&t.$$.dirty[0]&&(n(30,l=jt.getDerivedFromVars(gt.alignment_horizontal)),ct(),ct=he(l,(t=>n(117,H=t)))),1&t.$$.dirty[0]&&(n(29,c=jt.getDerivedFromVars(gt.height)),ot(),ot=he(c,(t=>n(113,B=t)))),1&t.$$.dirty[0]&&(n(28,u=jt.getDerivedFromVars(gt.alignment_vertical)),st(),st=he(u,(t=>n(115,L=t)))),1&t.$$.dirty[0]&&(n(27,d=jt.getDerivedFromVars(gt.alpha)),it(),it=he(d,(t=>n(112,J=t)))),1&t.$$.dirty[0]&&(n(26,h=jt.getDerivedFromVars(gt.accessibility)),rt(),rt=he(h,(t=>n(111,z=t)))),1&t.$$.dirty[0]&&(n(25,p=jt.getDerivedFromVars(gt.background)),nt(),nt=he(p,(t=>n(110,M=t)))),1&t.$$.dirty[0]&&(n(24,f=jt.getDerivedFromVars(gt.action)),tt(),tt=he(f,(t=>n(108,O=t)))),1&t.$$.dirty[0]&&(n(23,g=jt.getDerivedFromVars(gt.actions)),et(),et=he(g,(t=>n(109,T=t)))),1&t.$$.dirty[0]&&(n(22,m=jt.getDerivedFromVars(gt.doubletap_actions)),Q(),Q=he(m,(t=>n(107,N=t)))),1&t.$$.dirty[0]&&(n(21,v=jt.getDerivedFromVars(gt.longtap_actions)),X(),X=he(v,(t=>n(106,I=t)))),1&t.$$.dirty[0]&&(n(20,y=jt.getDerivedFromVars(gt.action_animation)),Y(),Y=he(y,(t=>n(104,P=t)))),1&t.$$.dirty[0]&&(n(19,$=jt.getDerivedFromVars(gt.visibility)),K(),K=he($,(t=>n(103,F=t)))),1&t.$$.dirty[0]&&(n(18,_=jt.getDerivedFromVars(gt.transform)),G(),G=he(_,(t=>n(102,j=t)))),4719104&t.$$.dirty[1]&&(re.forEach((t=>{jt.unregisterParentOf(t)})),n(53,re=[]),Ct&&Ct.forEach((t=>{(null==t?void 0:t.id)&&(re.push(t.id),jt.registerParentOf(t.id,{replaceWith:He,isSingleMode:Boolean(At)}))}))),264&t.$$.dirty[0]|260046848&t.$$.dirty[1]|67112960&t.$$.dirty[3]){const t=Le&&(null==S?void 0:S.border)?S.border:q;let e={},r={},i=!1,o="";if(t){if(t.has_shadow){const n=t.shadow;e["box-shadow"]=n?function(t){var e,n,r,i,o,a;return Cr((null===(e=t.offset)||void 0===e||null===(n=e.x)||void 0===n?void 0:n.value)||0)+" "+Cr((null===(r=t.offset)||void 0===r||null===(i=r.y)||void 0===i?void 0:i.value)||0)+" "+Cr(null!==(o=t.blur)&&void 0!==o?o:2)+" "+k(t.color||"#000000",null!==(a=t.alpha)&&void 0!==a?a:.19)}(n):"0 1px 2px 0 rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.07)"}if(t.stroke&&(i=!0,n(55,se=qr(t.stroke.width,se)),n(56,le=k(t.stroke.color,1,le)),r.border="".concat(Cr(se)," solid ").concat(le)),t.corners_radius?(n(58,ue=function(t,e){const n=[t["top-left"],t["top-right"],t["bottom-right"],t["bottom-left"]];for(let t=0;t<n.length;++t)if(n[t]&&!Hr(n[t]))return e;return t}(t.corners_radius,ue)),r["border-radius"]=e["border-radius"]=ei(ue)):t.corner_radius&&(n(57,ce=qr(t.corner_radius,ce)),n(58,ue={"top-left":ce,"top-right":ce,"bottom-right":ce,"bottom-left":ce}),r["border-radius"]=e["border-radius"]=Cr(ce)),i&&se&&(t.corners_radius||t.corner_radius)){let t=Object.assign({},ue);["top-left","top-right","bottom-right","bottom-left"].forEach((e=>{t[e]=(t[e]||0)+se/2})),o=ei(t)}}n(54,ie=Yr(e,ie)),n(3,oe=Yr(r,oe)),n(10,ae=i),n(4,de=o)}if(268468224&t.$$.dirty[1]|33554432&t.$$.dirty[3]&&n(59,fe=ti(W&&!wt?W:void 0,fe)),268566528&t.$$.dirty[1]&&n(98,b=Lr(function(t,e){if(!t&&!e)return{};if(!e)return t;if(!t)return e;const n={};return["top","right","bottom","left"].forEach((r=>{const i=t[r];i&&(n[r]=i);const o=e[r];o&&(n[r]=(n[r]||0)+o)})),n}(fe,kt))),536870912&t.$$.dirty[1]|8388608&t.$$.dirty[3]&&n(60,ge=Wr(U,ge)),1073750016&t.$$.dirty[1]|8&t.$$.dirty[2]|27262976&t.$$.dirty[3]){let t,e,r,i,o={},a=0,s=0,l=!1,c=!1;const u=null==R?void 0:R.type;if("fixed"===u)n(65,ve=qr(null==R?void 0:R.value,ve)),e=Cr(ve);else if("wrap_content"===u||("match_parent"===u||!u)&&_t.parentHorizontalWrapContent){if(t="content",("wrap_content"===u&&(null==R?void 0:R.constrained)||("match_parent"===u||!u)&&_t.parentHorizontalWrapContent)&&(o["width-constrained"]=!0,"horizontal"===_t.parentContainerOrientation&&(s=1)),"wrap_content"===u){const t=R;t.min_size&&Hr(t.min_size.value)&&(r=Cr(t.min_size.value)),t.max_size&&Hr(t.max_size.value)&&(i=Cr(t.max_size.value))}"match_parent"!==u&&u||jt.logError(ut(new Error("Cannot place child with match_parent size inside wrap_content"),{level:"warn"}))}else t="parent","vertical"===_t.parentContainerOrientation&&_t.parentContainerWrap&&(c=!0,jt.logError(ut(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),"vertical"===_t.parentLayoutOrientation?e="calc(100% - ".concat(Ar(((null==U?void 0:U.left)||0)+((null==U?void 0:U.right)||0)),")"):"horizontal"===_t.parentContainerOrientation&&(a=R&&"weight"in R&&R.weight||1,_t.parentContainerWrap&&(l=!0));if("parent"===t)o["halign-self"]="stretch";else{const t=H;o["halign-self"]="left"===t||"center"===t||"right"===t?ji[t]:_t.parentHAlign||"start"}t&&(o.width=t),n(62,Nt=e),n(63,Ot=r),n(64,Tt=i),n(66,ye=a),n(67,$e=s),n(61,me=Yr(o,me)),n(68,_e=l),n(11,be=c)}if(270336&t.$$.dirty[1]|2176&t.$$.dirty[2]|13631488&t.$$.dirty[3]){let t,e,r,i,o={},a=0,s=0,l=!1,c=!1;const u=null==B?void 0:B.type;if(Et);else if("fixed"===u)n(73,xe=qr(null==B?void 0:B.value,xe)),e=Cr(xe);else if("match_parent"!==u||_t.parentVerticalWrapContent){if(t="content",("wrap_content"===u&&(null==B?void 0:B.constrained)||"match_parent"===u&&_t.parentVerticalWrapContent)&&(o["height-constrained"]=!0,"vertical"===_t.parentContainerOrientation&&(s=1)),"wrap_content"===u){const t=B;(null==t?void 0:t.min_size)&&Hr(t.min_size.value)&&(r=Cr(t.min_size.value)),(null==t?void 0:t.max_size)&&Hr(t.max_size.value)&&(i=Cr(t.max_size.value))}"match_parent"===u&&jt.logError(ut(new Error("Cannot place child with match_parent size inside wrap_content"),{level:"warn"}))}else t="parent","horizontal"===_t.parentContainerOrientation&&_t.parentContainerWrap&&(c=!0,jt.logError(ut(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),"horizontal"===_t.parentLayoutOrientation?e="calc(100% - ".concat(Ar(((null==U?void 0:U.top)||0)+((null==U?void 0:U.bottom)||0)),")"):"vertical"===_t.parentContainerOrientation&&(a=(null==B?void 0:B.weight)||1,_t.parentContainerWrap&&(l=!0));if("parent"===t)o["valign-self"]="stretch";else{const t=L;"top"===t||"center"===t||"bottom"===t||"baseline"===t&&"horizontal"===_t.parentContainerOrientation?o["valign-self"]=Fi[t]:o["valign-self"]=_t.parentVAlign||"start"}t&&(o.height=t),n(70,Mt=e),n(71,zt=r),n(72,Jt=i),n(74,ke=a),n(75,Ee=s),n(69,we=Yr(o,we)),n(76,Ce=l),n(12,Ae=c)}var e,D;if(8192&t.$$.dirty[1]&&n(101,w=!!_t.overlapParent||void 0),8192&t.$$.dirty[1]|3145728&t.$$.dirty[3]&&n(100,x=_t.overlapParent&&(!R||"match_parent"===R.type)&&!_t.parentHorizontalWrapContent&&"match_parent"===(null==B?void 0:B.type)&&!_t.parentVerticalWrapContent),8192&t.$$.dirty[1]&&n(99,E=_t.gridArea?"".concat(_t.gridArea.y+1,"/").concat(_t.gridArea.x+1,"/span ").concat(_t.gridArea.rowSpan,"/span ").concat(_t.gridArea.colSpan):void 0),32768&t.$$.dirty[2]|524288&t.$$.dirty[3]&&(n(77,(D=Ve,Ve=!Hr(e=J)||void 0===e||e>1?D:Number(e))),n(78,Bt=1===Ve?void 0:Ve)),16384&t.$$.dirty[1]|262144&t.$$.dirty[3]&&(n(9,It=void 0),z&&!bt&&z.description&&(n(9,It={}),n(9,It["aria-label"]=z.description,It))),368&t.$$.dirty[0]|135168&t.$$.dirty[3]&&(n(5,Rt=Le&&(null==S?void 0:S.background)?S.background:M),n(79,Lt={}),n(6,Ut=!1),Array.isArray(Rt)&&(n(6,Ut=Rt.some((t=>"image"===t.type||"nine_patch_image"===t.type))||Boolean(de)),!Ut))){const t=jr(Rt);n(79,Lt["background-color"]=t.color,Lt),n(79,Lt["background-image"]=t.image,Lt),n(79,Lt["background-size"]=t.size,Lt),n(79,Lt["background-position"]=t.position,Lt),n(79,Lt["background-repeat"]="no-repeat",Lt)}if(1&t.$$.dirty[0]|524288&t.$$.dirty[2]&&(n(82,Ht=void 0),je&>.transition_in&&jt.isRunning("stateChange")&&n(82,Ht=!0)),1&t.$$.dirty[0]|524288&t.$$.dirty[2]&&(n(84,qt=void 0),je&>.transition_change&&jt.isRunning("stateChange")&&Ft.hasTransitionChange(gt.id)&&n(84,qt=!0)),73728&t.$$.dirty[1]|126976&t.$$.dirty[3]){let t=T||O&&[O]||[],e=N||[],r=I||[],i=(null==S?void 0:S.on_focus)||[],o=(null==S?void 0:S.on_blur)||[];_t.fakeElement?(t=[],e=[],r=[],i=[],o=[]):(Array.isArray(t)||(t=[],jt.logError(ut(new Error("Actions should be array")))),Array.isArray(e)||(e=[],jt.logError(ut(new Error("DoubleTapActions should be array")))),Array.isArray(r)||(r=[],jt.logError(ut(new Error("LongTapActions should be array")))),Array.isArray(i)||(i=[],jt.logError(ut(new Error("FocusActions should be array")))),Array.isArray(o)||(o=[],jt.logError(ut(new Error("BlurActions should be array"))))),(t.length||e.length||r.length)&&xt&&(t=[],e=[],r=[],jt.logError(ut(new Error('Cannot use action on component "'.concat(xt,'"'))))),n(13,Pe=t.filter(ni)),n(14,Se=e.filter(ni)),n(15,Ie=r.filter(ni)),Ne=i.filter(ni),Oe=o.filter(ni)}if(128&t.$$.dirty[0]|2048&t.$$.dirty[3]&&P&&(n(7,Te=Qr(P)),n(85,Me=Te.map(We).filter(Boolean).join(", "))),805306368&t.$$.dirty[2]|1024&t.$$.dirty[3]){const t=Je,e=function(t,e){return"visible"===t||"invisible"===t||"gone"===t?t:e}(F,Je);t!==e&&(!ze||"visible"!==Je&&"visible"!==e?n(91,Je=e):async function(t){n(91,Je=t);const e="visible"===t?"in":"out",r="in"===e?gt.transition_in:gt.transition_out;Fe&&r&&(await Sn(),"in"===e&&n(83,Wt=!0),Ft.runVisibilityTransition(Object.assign(Object.assign({},gt),{visibility:"visible"}),vt,r,St,e).then((()=>{"in"===e&&n(83,Wt=!1)})).catch((t=>{throw"in"===e&&n(83,Wt=!1),t})))}(e)),ze||n(90,ze=!0)}if(1&t.$$.dirty[0]|2097152&t.$$.dirty[1]|8&t.$$.dirty[3]&>&&St&&!Kr(gt.extensions,te)){let t=n(96,te=gt.extensions);Sn().then((()=>{if(t===te&&St&&(qe(),Array.isArray(gt.extensions))){const t=jt.getExtensionContext();ee=gt.extensions.map((e=>{var n;const r=jt.getExtension(e.id,e.params);return r&&(null===(n=r.mountView)||void 0===n||n.call(r,St,t)),r})).filter(Dr)}}))}if(1&t.$$.dirty[0]|3072&t.$$.dirty[1]&>&&mt&&vt&&Ue&&Ue.update({json:gt,origJson:mt,templateContext:vt}),257&t.$$.dirty[0]|1073750016&t.$$.dirty[1]|552599680&t.$$.dirty[2]|384&t.$$.dirty[3]&&n(17,C=Object.assign(Object.assign(Object.assign({},me),we),{"parent-overlap":w,"parent-overlap-absolute":x,"scroll-snap":_t.scrollSnap,"hide-on-transition-in":Ht||Wt||qt,visibility:Je,"has-action-animation":Boolean(Me),"parent-flex":_t.parentContainerOrientation||void 0,"parent-grid":Boolean(_t.gridArea)||void 0,"has-custom-focus":Boolean(Le&>.focus)})),1073741824&t.$$.dirty[2]|513&t.$$.dirty[3]&&j&&void 0!==j.rotation){const t=j.pivot_x||{type:"pivot-percentage",value:50};n(92,Be=Xr(t.value,Be));const e="pivot-fixed"===t.type?Cr(Be):"".concat(Be,"%"),r=j.pivot_y||{type:"pivot-percentage",value:50};n(93,Re=Xr(r.value,Re));const i="pivot-fixed"===r.type?Cr(Re):"".concat(Re,"%");n(94,Xt="".concat(e," ").concat(i)),n(95,Qt="rotate(".concat(j.rotation,"deg)"))}20560&t.$$.dirty[2]&&n(97,A=_e||Ce?"100%":ye||ke?0:void 0),545263616&t.$$.dirty[1]|260257591&t.$$.dirty[2]|118&t.$$.dirty[3]&&n(16,V=Object.assign(Object.assign(Object.assign(Object.assign({},$t),Lt),ie),{width:Nt,"min-width":Ot,"max-width":Tt,height:Mt,"min-height":zt,"max-height":Jt||(null==$t?void 0:$t["max-height"]),"grid-area":E,padding:b,margin:ge,opacity:Bt,transition:Me,"transform-origin":Xt,transform:Qt,"flex-grow":ye||ke||void 0,"flex-shrink":$e||Ee?1:void 0,"flex-basis":A,"--divkit-animation-opacity-start":Gt,"--divkit-animation-opacity-end":Kt,"--divkit-animation-scale-start":Yt,"--divkit-animation-scale-end":Zt}))},[gt,yt,Dt,oe,de,Rt,Ut,Te,Le,It,ae,be,Ae,Pe,Se,Ie,V,C,_,$,y,v,m,g,f,p,h,d,u,c,l,s,a,o,i,r,Pt,function(t){var e;n(52,St=t),je&>.transition_in&&Ft.registerChildWithTransitionIn(gt,vt,gt.transition_in,t).then((()=>{n(82,Ht=!1)})).catch((t=>{throw n(82,Ht=!1),t})),je&>.transition_out&&Ft.registerChildWithTransitionOut(gt,vt,gt.transition_out,t),je&>.transition_change&&Ft.registerChildWithTransitionChange(gt,vt,gt.transition_change,t).then((()=>{n(84,qt=!1)})).catch((t=>{throw n(84,qt=!1),t}));const r=_t.fakeElement?[]:gt.visibility_actions||gt.visibility_action&&[gt.visibility_action],i=_t.fakeElement?[]:gt.disappear_actions;let o;(Array.isArray(r)&&r.length||Array.isArray(i)&&i.length)&&(o=function(t,e){let{visibilityActions:n,disappearActions:r,rootCtx:i}=e;const o=[];n&&n.forEach((t=>{o.push({type:"visibility",index:o.length,action:t,visible:!1,count:0,finished:!1})})),r&&r.forEach((t=>{o.push({type:"disappear",index:o.length,action:t,visible:!1,count:0,finished:!1})}));const a=o.map(((t,e)=>{const n="visibility"===t.type;return i.getDerivedFromVars({index:e,visibility_percentage:t.action.visibility_percentage,visibility_duration:n?t.action.visibility_duration:t.action.disappear_duration,log_limit:t.action.log_limit,is_enabled:t.action.is_enabled})}));let s;const l=()=>{s&&s.disconnect(),o.forEach((t=>{t.timer&&clearTimeout(t.timer)}))},c=pr(a,(t=>t)).subscribe((e=>{const n=e.filter(Mr),r={};n.forEach((t=>{r[t.index]=t})),l();const a=[...new Set(n.map((t=>{const e="visibility"===o[t.index].type;return Tr(e,t.visibility_percentage,e?50:0)/100})))];a.length&&(s=new IntersectionObserver((t=>{t.forEach((t=>{n.forEach((e=>{const n=o[e.index],r="visibility"===n.type,a=Tr(r,e.visibility_percentage,r?50:0);let s;s=0===a?t.intersectionRatio>=1e-12:t.intersectionRatio>=a/100;const l=r?!n.visible&&s:n.visible&&!s,c=r?!s:s;l?n.finished||(n.timer=setTimeout((()=>{++n.count;const t=0===e.log_limit?1/0:e.log_limit||1;++n.count>=t&&(n.finished=!0);const o=i.getJsonWithVars(n.action),a=o.url,s=o.typed;if(a){const t=Nr(a);t&&!Or(t,i.getBuiltinProtocols())&&("div-action"===t?i.execAction(o):o.log_id&&i.execCustomAction(o))}else s&&i.execAction(o);i.logStat(r?"visible":"disappear",o)}),e.visibility_duration||800)):c&&n.timer&&clearTimeout(n.timer),n.visible=s}))}))}),{threshold:a}),s.observe(t))}));return{destroy(){l(),c()}}}(t,{visibilityActions:r,disappearActions:i,rootCtx:jt}));const a=gt.id;return a&&Ft.registerChild(a),null===(e=gt.tooltips)||void 0===e||e.forEach((e=>{jt.registerTooltip(t,e)})),Br&&!_t.fakeElement&&(Ue=Br(t,{json:gt,origJson:mt,rootCtx:jt,templateContext:vt})),{destroy(){a&&Ft.unregisterChild(a),o&&o.destroy(),Ue&&Ue.destroy()}}},function(){gt.focus&&(D||n(8,Le=!0),jt.execAnyActions(Ne))},function(){gt.focus&&(n(8,Le=!1),jt.execAnyActions(Oe))},Ct,mt,vt,$t,_t,bt,wt,xt,kt,Et,At,Vt,St,re,ie,se,le,ce,ue,fe,ge,me,Nt,Ot,Tt,ve,ye,$e,_e,we,Mt,zt,Jt,xe,ke,Ee,Ce,Ve,Bt,Lt,De,je,Ht,Wt,qt,Me,Gt,Kt,Yt,Zt,ze,Je,Be,Re,Xt,Qt,te,A,b,E,x,w,j,F,P,S,I,N,O,T,M,z,J,B,R,L,U,H,W,q,pt,ft]}const Ii=class extends ur{constructor(t){super(),lr(this,t,Si,Di,de,{json:0,origJson:41,templateContext:42,cls:1,style:43,layoutParams:44,customDescription:45,customPaddings:46,customActions:47,additionalPaddings:48,heightByAspect:49,parentOf:40,parentOfSimpleMode:50,replaceItems:51,hasInnerFocusable:2},null,[-1,-1,-1,-1,-1])}},Ni={"text-range":"divkit-faf07","text-range_singleline":"divkit-ccb64","text-range__top-offset":"divkit-d9237","text-range_decoration_both":"divkit-d7e07","text-range_decoration_underline":"divkit-f3dde","text-range_decoration_strike":"divkit-d27b7","text-range_decoration_none":"divkit-c6b0f"};function Oi(t,e){const n=Number(t);return isNaN(n)||n<=0?e:n}function Ti(t){if("light"===t||"medium"===t||"bold"===t||"regular"===t)return"medium"===t?500:"bold"===t?700:"light"===t?300:400}function Mi(t,e){return Ti(t)||e}function zi(t){let e,n;return{c(){e=Je("span"),this.h()},l(t){e=en(t,"SPAN",{class:!0}),Ze(e).forEach(Me),this.h()},h(){We(e,"class",n=Ni["text-range__top-offset"]),cn(e,"margin-top",t[4])},m(t,n){Te(t,e,n)},p(t,n){16&n&&cn(e,"margin-top",t[4])},d(t){t&&Me(e)}}}function Ji(t){let e;return{c(){e=Re(t[0])},l(n){e=rn(n,t[0])},m(t,n){Te(t,e,n)},p(t,n){1&n&&sn(e,t[0])},d(t){t&&Me(e)}}}function Bi(t){let e,n,r,i=t[4]&&zi(t);return n=new hi({props:{cls:Jr("text-range",Ni,t[3]),actions:t[1],style:Er(t[2]),$$slots:{default:[Ji]},$$scope:{ctx:t}}}),{c(){i&&i.c(),e=Ue(),ir(n.$$.fragment)},l(t){i&&i.l(t),e=Ue(),or(n.$$.fragment,t)},m(t,o){i&&i.m(t,o),Te(t,e,o),ar(n,t,o),r=!0},p(t,r){let[o]=r;t[4]?i?i.p(t,o):(i=zi(t),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null);const a={};8&o&&(a.cls=Jr("text-range",Ni,t[3])),2&o&&(a.actions=t[1]),4&o&&(a.style=Er(t[2])),8388609&o&&(a.$$scope={dirty:o,ctx:t}),n.$set(a)},i(t){r||(Wn(n.$$.fragment,t),r=!0)},o(t){qn(n.$$.fragment,t),r=!1},d(t){t&&Me(e),i&&i.d(t),sr(n,t)}}}function Ri(t,e,n){let r,i,o,a,s,l;var c,u;let{json:d}=e,{text:h}=e,{rootFontSize:p}=e,{textStyles:f={}}=e,{singleline:g=!1}=e,{actions:m}=e;const v=kn(wr);let y,$="none",_=12,b=1.25,w="",x="",E="",C=null;return t.$$set=t=>{"json"in t&&n(5,d=t.json),"text"in t&&n(0,h=t.text),"rootFontSize"in t&&n(6,p=t.rootFontSize),"textStyles"in t&&n(7,f=t.textStyles),"singleline"in t&&n(8,g=t.singleline),"actions"in t&&n(1,m=t.actions)},t.$$.update=()=>{if(32&t.$$.dirty&&d&&(n(11,$="none"),n(12,_=12),n(13,b=1.25),n(14,w=""),n(15,y=void 0),n(16,x=""),n(17,E=""),n(18,C=null)),128&t.$$.dirty){let t="none";(f.underline||f.strike)&&("single"===f.underline&&"single"===f.strike?t="both":"single"===f.underline?t="underline":"single"===f.strike&&(t="strike")),n(11,$=t)}4224&t.$$.dirty&&n(12,_=Oi(f.font_size,_)),4224&t.$$.dirty&&fi(f.line_height)&&n(13,b=Number(f.line_height)/_),128&t.$$.dirty&&Hr(f.letter_spacing)&&n(14,w=Cr(f.letter_spacing)),32896&t.$$.dirty&&(n(15,y=Mi(f.font_weight,y)),"string"==typeof f.font_family&&f.font_family?n(16,x=v.typefaceProvider(f.font_family,{fontWeight:y||400})):n(16,x="")),131200&t.$$.dirty&&n(17,E=k(f.text_color,1,E)),128&t.$$.dirty&&n(4,r=f.top_offset?Cr(f.top_offset):""),128&t.$$.dirty&&n(20,i=f.background?jr([f.background]):null),640&t.$$.dirty&&((null===n(9,c=f.border)||void 0===c?void 0:c.stroke)&&f.border.stroke.color&&"transparent"!==k(f.border.stroke.color)&&fi(f.border.stroke.width)?n(18,C={color:f.border.stroke.color,width:f.border.stroke.width}):n(18,C=null)),1152&t.$$.dirty&&n(19,o=Oi(null===n(10,u=f.border)||void 0===u?void 0:u.corner_radius,0)),4224&t.$$.dirty&&n(21,a=f.text_shadow?function(t,e){var n,r,i,o,a,s;return"drop-shadow("+k(t.color||"#000000",null!==(n=t.alpha)&&void 0!==n?n:.19)+" "+Cr(10*((null===(r=t.offset)||void 0===r||null===(i=r.x)||void 0===i?void 0:i.value)||0)/e)+" "+Cr(10*((null===(o=t.offset)||void 0===o||null===(a=o.y)||void 0===a?void 0:a.value)||0)/e)+" "+Cr(10*(null!==(s=t.blur)&&void 0!==s?s:2)/e)+")"}(f.text_shadow,_):void 0),2304&t.$$.dirty&&n(3,s={singleline:g,decoration:$}),4190272&t.$$.dirty&&n(2,l={"font-size":Cr(10*_/p),"line-height":b,"letter-spacing":w,"font-weight":y,"font-family":x,filter:a,color:E,background:(null==i?void 0:i.color)||void 0,"box-shadow":C?"inset 0 0 0 ".concat(Cr(C.width)," ").concat(C.color):void 0,"border-radius":o?Cr(o):void 0})},[h,m,l,s,r,d,p,f,g,c,u,$,_,b,w,y,x,E,C,o,i,a]}const Li=class extends ur{constructor(t){super(),lr(this,t,Ri,Bi,de,{json:5,text:0,rootFontSize:6,textStyles:7,singleline:8,actions:1})}};function Ui(t,e){return"left"===t||"center"===t||"right"===t?t:e}function Hi(t,e){return"top"===t||"center"===t||"bottom"===t||"baseline"===t?t:e}function Wi(t,e){return 1===t||0===t||!1===t||!0===t?Boolean(t):e}function qi(t,e){return"source_in"===t||"source_atop"===t||"darken"===t||"lighten"===t||"multiply"===t||"screen"===t?t:e}function Gi(t,e){let n;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];null!==n&&clearTimeout(n),n=setTimeout((()=>{t.apply(this,i),n=null}),e)}}function Ki(t,e){let n=null;const r=()=>{t.style.webkitLineClamp="",t.style.maxHeight="";const e=t.offsetHeight,n=t.scrollHeight,r=parseFloat(getComputedStyle(t).lineHeight);if(n<=e+1e-9)return;const i=Math.max(1,Math.floor(e/r));t.style.webkitLineClamp=String(i),t.style.maxHeight=r*i+"px"},i=Gi(r,50),o=()=>{n&&(n.disconnect(),n=null)},a=()=>{if(o(),e.enabled){if(r(),"undefined"!=typeof ResizeObserver){n=new ResizeObserver(i);const e=t.parentElement;e&&n.observe(e)}}else t.style.webkitLineClamp=String(e.lineClamp||"")};return a(),{update(t){e=t,a()},destroy(){o()}}}const{Boolean:Yi}=Ae;function Zi(t,e,n){const r=t.slice();return r[59]=e[n],r}function Xi(t){let e,n;return e=new Li({props:{json:t[0],text:t[4],rootFontSize:t[5],textStyles:t[30],singleline:t[8]}}),{c(){ir(e.$$.fragment)},l(t){or(e.$$.fragment,t)},m(t,r){ar(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.json=t[0]),16&n[0]&&(r.text=t[4]),32&n[0]&&(r.rootFontSize=t[5]),1073741824&n[0]&&(r.textStyles=t[30]),256&n[0]&&(r.singleline=t[8]),e.$set(r)},i(t){n||(Wn(e.$$.fragment,t),n=!0)},o(t){qn(e.$$.fragment,t),n=!1},d(t){sr(e,t)}}}function Qi(t){let e,n,r=Yn(t[11]),i=[];for(let e=0;e<r.length;e+=1)i[e]=ro(Zi(t,r,e));const o=t=>qn(i[t],1,1,(()=>{i[t]=null}));return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=Ue()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);e=Ue()},m(t,r){for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(t,r);Te(t,e,r),n=!0},p(t,n){if(3361&n[0]|1&n[1]){let a;for(r=Yn(t[11]),a=0;a<r.length;a+=1){const o=Zi(t,r,a);i[a]?(i[a].p(o,n),Wn(i[a],1)):(i[a]=ro(o),i[a].c(),Wn(i[a],1),i[a].m(e.parentNode,e))}for(Un(),a=r.length;a<i.length;a+=1)o(a);Hn()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Wn(i[t]);n=!0}},o(t){i=i.filter(Yi);for(let t=0;t<i.length;t+=1)qn(i[t]);n=!1},d(t){t&&Me(e),ze(i,t)}}}function to(t){let e,n,r,i,o,a,s,l;return{c(){e=Je("span"),n=Je("img"),this.h()},l(t){e=en(t,"SPAN",{style:!0});var r=Ze(e);n=en(r,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,"aria-hidden":!0,alt:!0,style:!0}),r.forEach(Me),this.h()},h(){We(n,"class",r=xr.text__image),ue(n.src,i=t[59].image.url)||We(n,"src",i),We(n,"loading","lazy"),We(n,"decoding","async"),We(n,"aria-hidden","true"),We(n,"alt",""),We(n,"style",o=Er({width:t[59].image.width,height:t[59].image.height,"margin-top":t[10]?"-".concat(t[59].image.height):void 0,"margin-bottom":t[10]?"-".concat(t[59].image.height):void 0,filter:t[59].image.svgFilterId?"url(#".concat(t[59].image.svgFilterId,")"):void 0})),We(e,"style",a=Er(t[59].image.wrapperStyle))},m(r,i){Te(r,e,i),Ne(e,n),s||(l=He(n,"error",t[31]),s=!0)},p(t,r){2048&r[0]&&!ue(n.src,i=t[59].image.url)&&We(n,"src",i),3072&r[0]&&o!==(o=Er({width:t[59].image.width,height:t[59].image.height,"margin-top":t[10]?"-".concat(t[59].image.height):void 0,"margin-bottom":t[10]?"-".concat(t[59].image.height):void 0,filter:t[59].image.svgFilterId?"url(#".concat(t[59].image.svgFilterId,")"):void 0}))&&We(n,"style",o),2048&r[0]&&a!==(a=Er(t[59].image.wrapperStyle))&&We(e,"style",a)},i:ne,o:ne,d(t){t&&Me(e),s=!1,l()}}}function eo(t){let e,n,r=t[59].text&&no(t);return{c(){r&&r.c(),e=Ue()},l(t){r&&r.l(t),e=Ue()},m(t,i){r&&r.m(t,i),Te(t,e,i),n=!0},p(t,n){t[59].text?r?(r.p(t,n),2048&n[0]&&Wn(r,1)):(r=no(t),r.c(),Wn(r,1),r.m(e.parentNode,e)):r&&(Un(),qn(r,1,1,(()=>{r=null})),Hn())},i(t){n||(Wn(r),n=!0)},o(t){qn(r),n=!1},d(t){t&&Me(e),r&&r.d(t)}}}function no(t){let e,n;return e=new Li({props:{json:t[0],text:t[59].text,rootFontSize:t[5],textStyles:t[59].textStyles,singleline:t[8],actions:t[59].actions}}),{c(){ir(e.$$.fragment)},l(t){or(e.$$.fragment,t)},m(t,r){ar(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.json=t[0]),2048&n[0]&&(r.text=t[59].text),32&n[0]&&(r.rootFontSize=t[5]),2048&n[0]&&(r.textStyles=t[59].textStyles),256&n[0]&&(r.singleline=t[8]),2048&n[0]&&(r.actions=t[59].actions),e.$set(r)},i(t){n||(Wn(e.$$.fragment,t),n=!0)},o(t){qn(e.$$.fragment,t),n=!1},d(t){sr(e,t)}}}function ro(t){let e,n,r,i;const o=[eo,to],a=[];function s(t,e){return"text"in t[59]?0:t[59].image?1:-1}return~(e=s(t))&&(n=a[e]=o[e](t)),{c(){n&&n.c(),r=Ue()},l(t){n&&n.l(t),r=Ue()},m(t,n){~e&&a[e].m(t,n),Te(t,r,n),i=!0},p(t,i){let l=e;e=s(t),e===l?~e&&a[e].p(t,i):(n&&(Un(),qn(a[l],1,1,(()=>{a[l]=null})),Hn()),~e?(n=a[e],n?n.p(t,i):(n=a[e]=o[e](t),n.c()),Wn(n,1),n.m(r.parentNode,r)):n=null)},i(t){i||(Wn(n),i=!0)},o(t){qn(n),i=!1},d(t){t&&Me(r),~e&&a[e].d(t)}}}function io(t){let e,n,r,i,o,a,s,l,c;const u=[Qi,Xi],d=[];function h(t,e){return t[11].length?0:1}return n=h(t),r=d[n]=u[n](t),{c(){e=Je("span"),r.c(),this.h()},l(t){e=en(t,"SPAN",{class:!0,style:!0});var n=Ze(e);r.l(n),n.forEach(Me),this.h()},h(){We(e,"class",i=Jr("text__inner",xr,t[13])),We(e,"style",o=Er(t[12]))},m(r,i){Te(r,e,i),d[n].m(e,null),s=!0,l||(c=_e(a=Ki.call(null,e,{enabled:t[9],lineClamp:"number"==typeof t[6]?t[6]:void 0})),l=!0)},p(t,l){let c=n;n=h(t),n===c?d[n].p(t,l):(Un(),qn(d[c],1,1,(()=>{d[c]=null})),Hn(),r=d[n],r?r.p(t,l):(r=d[n]=u[n](t),r.c()),Wn(r,1),r.m(e,null)),(!s||8192&l[0]&&i!==(i=Jr("text__inner",xr,t[13])))&&We(e,"class",i),(!s||4096&l[0]&&o!==(o=Er(t[12])))&&We(e,"style",o),a&&le(a.update)&&576&l[0]&&a.update.call(null,{enabled:t[9],lineClamp:"number"==typeof t[6]?t[6]:void 0})},i(t){s||(Wn(r),s=!0)},o(t){qn(r),s=!1},d(t){t&&Me(e),d[n].d(),l=!1,c()}}}function oo(t){let e,n;return e=new Ii({props:{cls:Jr("text",xr,t[14])+" "+(t[7]?"":br.root__unselectable),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[io]},$$scope:{ctx:t}}}),{c(){ir(e.$$.fragment)},l(t){or(e.$$.fragment,t)},m(t,r){ar(e,t,r),n=!0},p(t,n){const r={};16512&n[0]&&(r.cls=Jr("text",xr,t[14])+" "+(t[7]?"":br.root__unselectable)),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),1073758065&n[0]|1&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Wn(e.$$.fragment,t),n=!0)},o(t){qn(e.$$.fragment,t),n=!1},d(t){sr(e,t)}}}function ao(t,e,n){let r,i,o,a,s,l,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x,E,C,A,V,D,j,F,P,S,I,N,O,T,M,z,J,B=ne,R=ne,L=ne,U=ne,H=ne,W=ne,q=ne,G=ne,K=ne,Y=ne,Z=ne,X=ne,Q=ne,tt=ne,et=ne;t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>K())),t.$$.on_destroy.push((()=>Y())),t.$$.on_destroy.push((()=>Z())),t.$$.on_destroy.push((()=>X())),t.$$.on_destroy.push((()=>Q())),t.$$.on_destroy.push((()=>tt())),t.$$.on_destroy.push((()=>et()));let{json:nt={}}=e,{templateContext:rt}=e,{origJson:it}=e,{layoutParams:ot}=e;const at=kn(wr);let st="",lt=12,ct=1.25,ut=!1,dt="",ht="",pt=!1,ft="left",gt="top",mt="",vt="",yt="",$t=!1,_t=[],bt=[];return wn((()=>{bt.forEach((t=>{let[e,n]=t;at.removeSvgFilter(e,n)}))})),t.$$set=t=>{"json"in t&&n(0,nt=t.json),"templateContext"in t&&n(1,rt=t.templateContext),"origJson"in t&&n(2,it=t.origJson),"layoutParams"in t&&n(3,ot=t.layoutParams)},t.$$.update=()=>{var e;if(1&t.$$.dirty[0]&&nt&&(n(5,lt=12),n(32,ct=1.25),n(10,ut=!1),n(33,dt=""),n(6,ht=""),n(34,pt=!1),n(35,ft="left"),n(36,gt="top"),n(37,mt=""),n(39,yt=""),n(7,$t=!1)),1&t.$$.dirty[0]&&(n(29,r=at.getDerivedFromVars(nt.text)),et(),et=he(r,(t=>n(55,J=t)))),1&t.$$.dirty[0]&&(n(28,i=at.getDerivedFromVars(nt.ranges)),R(),R=he(i,(t=>n(44,A=t)))),1&t.$$.dirty[0]&&(n(27,o=at.getDerivedFromVars(nt.images)),B(),B=he(o,(t=>n(43,C=t)))),1&t.$$.dirty[0]&&(n(26,a=at.getDerivedFromVars({font_size:nt.font_size,letter_spacing:nt.letter_spacing,font_weight:nt.font_weight,font_family:nt.font_family,text_color:nt.text_color,underline:nt.underline,strike:nt.strike,line_height:nt.line_height,text_shadow:nt.text_shadow})),L(),L=he(a,(t=>n(30,V=t)))),1&t.$$.dirty[0]&&(n(25,s=at.getDerivedFromVars(nt.font_size)),tt(),tt=he(s,(t=>n(54,z=t)))),1&t.$$.dirty[0]&&(n(24,l=at.getDerivedFromVars(nt.line_height)),Q(),Q=he(l,(t=>n(53,M=t)))),1&t.$$.dirty[0]&&(n(23,c=at.getDerivedFromVars(nt.max_lines)),K(),K=he(c,(t=>n(50,I=t)))),1&t.$$.dirty[0]&&(n(22,u=at.getDerivedFromVars(nt.text_alignment_horizontal)),Z(),Z=he(u,(t=>n(52,O=t)))),1&t.$$.dirty[0]&&(n(21,d=at.getDerivedFromVars(nt.text_alignment_vertical)),Y(),Y=he(d,(t=>n(51,N=t)))),1&t.$$.dirty[0]&&(n(20,h=at.getDerivedFromVars(nt.text_color)),G(),G=he(h,(t=>n(49,S=t)))),1&t.$$.dirty[0]&&(n(19,p=at.getDerivedFromVars(nt.focused_text_color)),q(),q=he(p,(t=>n(48,P=t)))),1&t.$$.dirty[0]&&(n(18,f=at.getDerivedFromVars(nt.truncate)),W(),W=he(f,(t=>n(47,F=t)))),1&t.$$.dirty[0]&&(n(17,g=at.getDerivedFromVars(nt.text_gradient)),H(),H=he(g,(t=>n(46,j=t)))),1&t.$$.dirty[0]&&(n(16,m=at.getDerivedFromVars(nt.selectable)),U(),U=he(m,(t=>n(45,D=t)))),1&t.$$.dirty[0]&&(n(15,v=at.getDerivedFromVars(nt.auto_ellipsize)),X(),X=he(v,(t=>n(9,T=t)))),16777216&t.$$.dirty[1]&&n(4,(e=J,st=String(null!=e?e:""))),32&t.$$.dirty[0]|8388608&t.$$.dirty[1]&&n(5,lt=Oi(z,lt)),32&t.$$.dirty[0]|4194304&t.$$.dirty[1]){const t=M;fi(t)?(n(32,ct=Number(t)/lt),n(10,ut=!0)):n(10,ut=!1)}if(524288&t.$$.dirty[1]&&n(8,y=1===I),512&t.$$.dirty[0]|524290&t.$$.dirty[1]){let t="",e="",r=!1;if(I&&I>1){let n=Number(I);t=n*ct+"em",e=n,r=!0}else T&&1!==I&&(r=!0);n(33,dt=t),n(6,ht=e),n(34,pt=r)}if(2097168&t.$$.dirty[1]&&n(35,ft=Ui(O,ft)),1048608&t.$$.dirty[1]&&n(36,gt=Hi(N,gt)),16&t.$$.dirty[0]|8192&t.$$.dirty[1]&&n(42,$=!A||st&&1===A.length&&A[0]&&0===A[0].start&&"number"==typeof A[0].end&&A[0].end>=st.length),270336&t.$$.dirty[1]&&n(41,_=Boolean(S)!==Boolean(A&&A[0]&&A[0].text_color)),797760&t.$$.dirty[1]){let t="";I&&$&&_&&(t=k(S||A&&A[0]&&A[0].text_color,1,mt)),n(37,mt=t)}if(131200&t.$$.dirty[1]&&n(38,vt=k(P,1,vt)),65536&t.$$.dirty[1]&&n(40,b="none"===F?"none":""),32768&t.$$.dirty[1]){let t="";if(j){const e=jr([j]);e.image&&(t=e.image)}n(39,yt=t)}128&t.$$.dirty[0]|16384&t.$$.dirty[1]&&n(7,$t=Wi(D,$t)),16&t.$$.dirty[0]|12288&t.$$.dirty[1]&&function(t,e,r){let i=[];if(bt.forEach((t=>{let[e,n]=t;at.removeSvgFilter(e,n)})),bt=[],!(Array.isArray(e)&&e.length||Array.isArray(r)&&r.length&&t))return void n(11,_t=[]);const o=t;let a=e||[{start:0,end:o.length}],s=r||[],l=0,c=[],u=[];a.forEach((t=>{void 0!==t.start&&void 0!==t.end&&(u.push({index:t.start,range:t,type:"rangeStart",isStart:!0}),u.push({index:t.end,range:t,type:"rangeEnd"}))})),s.forEach(((t,e)=>{void 0!==t.start&&t.url&&t.start<=o.length&&u.push({index:t.start,image:t,type:"image",arrayIndex:e})})),u.sort(((t,e)=>t.index===e.index?t.type!==e.type?"image"===t.type?-1:"image"===e.type?1:t.type<e.type?-1:1:"image"===t.type&&"image"===e.type?e.arrayIndex-t.arrayIndex:"rangeStart"===t.type&&"rangeStart"===e.type?t.range.end-e.range.end:"rangeStart"===t.type?1:"rangeStart"===e.type?-1:"image"!==t.type&&"image"!==e.type?t.range.start-e.range.start:0:t.index-e.index)),u.forEach((t=>{var e,n;let r="image"===t.type?null:t.range,a=t.index;if(a>l){let r=Object.assign(Object.assign({},V),...c);i.push({text:o.substring(l,a),textStyles:r,actions:"rangeEnd"===t.type&&(null===(n=null===(e=t.range)||void 0===e?void 0:e.actions)||void 0===n?void 0:n.filter(ni))||void 0})}if("rangeStart"===t.type&&r)c.push(r);else if("rangeEnd"===t.type)c=c.filter((e=>e!==t.range));else if("image"===t.type){let e=Object.assign(Object.assign({},V),...c),n=Cr(10*(t.image.width&&t.image.width.value||20)/(e.font_size||12)),r=Cr(10*(t.image.height&&t.image.height.value||20)/(e.font_size||12));const o={"font-size":Cr(10*(Number(e.font_size)||12)/lt)};let a="";const s=t.image.tint_color,l=qi(t.image.tint_mode,"source_in");if(s){const e=k(t.image.tint_color);a=at.addSvgFilter(e,l),bt.push([e,l])}i.push({image:{url:t.image.url,width:n,height:r,wrapperStyle:o,svgFilterId:a}})}l=a})),l<o.length&&i.push({text:o.substring(l),textStyles:Object.assign({},V)}),n(11,_t=i)}(st,A,C),256&t.$$.dirty[0]|696&t.$$.dirty[1]&&n(14,w={singleline:y,multiline:pt,halign:ft,valign:gt,truncate:b,"has-focus-color":Boolean(vt)}),256&t.$$.dirty[1]&&n(13,x={gradient:Boolean(yt)}),96&t.$$.dirty[0]|454&t.$$.dirty[1]&&n(12,E={"font-size":Cr(lt),"line-height":ct,"max-height":dt,"-webkit-line-clamp":ht,color:mt,"background-image":yt,"--divkit-text-focus-color":vt})},[nt,rt,it,ot,st,lt,ht,$t,y,T,ut,_t,E,x,w,v,m,g,f,p,h,d,u,c,l,s,a,o,i,r,V,function(t){t.target&&"classList"in t.target&&t.target.classList.add(xr.text__image_hidden)},ct,dt,pt,ft,gt,mt,vt,yt,b,_,$,C,A,D,j,F,P,S,I,N,O,M,z,J]}const so={container:"divkit-d37d6",container_wrap:"divkit-c8551",container_overflow_visible:"divkit-f315a",container_orientation_vertical:"divkit-ddc33",container_valign_top:"divkit-a331a",container_valign_center:"divkit-aae61",container_valign_bottom:"divkit-c2226","container_valign_space-between":"divkit-ce053","container_valign_space-around":"divkit-cf29b","container_valign_space-evenly":"divkit-b4b04",container_halign_left:"divkit-a3091",container_halign_center:"divkit-bac9d",container_halign_right:"divkit-f4230","container_halign_space-between":"divkit-e5c38","container_halign_space-around":"divkit-feff2","container_halign_space-evenly":"divkit-e5e05",container_orientation_horizontal:"divkit-fe458",container_orientation_overlap:"divkit-a644d"};function lo(t){return{top:Number(null==t?void 0:t.top)||0,right:Number(null==t?void 0:t.right)||0,bottom:Number(null==t?void 0:t.bottom)||0,left:Number(null==t?void 0:t.left)||0}}function co(t,e,n){const r=((null==e?void 0:e.margins.left)||0)+((null==e?void 0:e.margins.right)||0),i=((null==e?void 0:e.margins.top)||0)+((null==e?void 0:e.margins.bottom)||0);null!=e&&e.show_at_start&&(n?t.top=e.style.height+i:t.left=e.style.width+r),null!=e&&e.show_at_end&&(n?t.bottom=e.style.height+i:t.right=e.style.width+r)}function uo(t,e,n){let r;const i=((null==e?void 0:e.margins.left)||0)+((null==e?void 0:e.margins.right)||0),o=((null==e?void 0:e.margins.top)||0)+((null==e?void 0:e.margins.bottom)||0),a=((null==n?void 0:n.margins.left)||0)+((null==n?void 0:n.margins.right)||0),s=((null==n?void 0:n.margins.top)||0)+((null==n?void 0:n.margins.bottom)||0);return r="horizontal"===t?[null!=n&&n.show_between?n.style.height+s:0,null!=e&&e.show_between?e.style.width+i:0]:[null!=e&&e.show_between?e.style.height+o:0,null!=n&&n.show_between?n.style.width+a:0],r.map(Cr).join(" ")}function ho(t){var e;const n=null===(e=t.width)||void 0===e?void 0:e.type;return"wrap_content"===n||"fixed"===n}function po(t){var e;return"match_parent"!==(null===(e=t.height)||void 0===e?void 0:e.type)}function fo(t,e,n){if(!(t&&t.shape&&t.shape.type&&e.includes(t.shape.type)&&"shape_drawable"===t.type))return n;let r;if("rounded_rectangle"===t.shape.type)r={width:qr(null===(o=(i=t.shape).item_width)||void 0===o?void 0:o.value,10),height:qr(null===(a=i.item_height)||void 0===a?void 0:a.value,10),radius:qr(null===(s=i.corner_radius)||void 0===s?void 0:s.value,5)};else{if("circle"!==t.shape.type)return n;r=function(t){var e;const n=2*qr(null===(e=t.radius)||void 0===e?void 0:e.value,10);return{width:n,height:n,radius:n}}(t.shape)}var i,o,a,s;return function(t,e,n){var r;const i={},o=e.stroke||(null==n?void 0:n.stroke),a=null!=o&&o.color?k(o.color):"",s=null!=o&&o.width?Number(null!==(r=o.width)&&void 0!==r?r:1):"";i.width=t.width,i.height=t.height,i.borderRadius=t.radius;const l=e.background_color||(null==n?void 0:n.color);return i.background=k(l),a&&s&&(i.boxShadow="inset 0 0 0 ".concat(Cr(s)," ").concat(a)),i}(r,t.shape,{color:t.color,stroke:t.stroke})}let go;function mo(){if("undefined"==typeof document&&(go=!0),void 0!==go)return go;const t=document.createElement("div");return t.style.position="absolute",t.style.display="flex",t.style.flexDirection="column",t.style.gap="1px",t.appendChild(document.createElement("div")),t.appendChild(document.createElement("div")),document.body.appendChild(t),go=1===t.scrollHeight,document.body.removeChild(t),go}const vo={"container-separator":"divkit-a7719","container-separator__item":"divkit-c770e","container-separator__shape":"divkit-f6e9a"},{window:yo}=Ae;function $o(t,e,n){const r=t.slice();return r[15]=e[n],r}function _o(t){let e,n,r,i,o,a="".concat(t[15].style.width,"px"),s="".concat(t[15].style.height,"px"),l="".concat(t[15].style.borderRadius,"px"),c="".concat(t[15].left,"px"),u="".concat(t[15].top,"px"),d="".concat(t[15].width,"px"),h="".concat(t[15].height,"px");return{c(){e=Je("div"),n=Je("div"),i=Le(),this.h()},l(t){e=en(t,"DIV",{class:!0});var r=Ze(e);n=en(r,"DIV",{class:!0}),Ze(n).forEach(Me),i=on(r),r.forEach(Me),this.h()},h(){We(n,"class",r=vo["container-separator__shape"]),cn(n,"width",a),cn(n,"height",s),cn(n,"border-radius",l),cn(n,"background",t[15].style.background),cn(n,"box-shadow",t[15].style.boxShadow),We(e,"class",o=vo["container-separator__item"]),cn(e,"left",c),cn(e,"top",u),cn(e,"width",d),cn(e,"height",h)},m(t,r){Te(t,e,r),Ne(e,n),Ne(e,i)},p(t,r){2&r&&a!==(a="".concat(t[15].style.width,"px"))&&cn(n,"width",a),2&r&&s!==(s="".concat(t[15].style.height,"px"))&&cn(n,"height",s),2&r&&l!==(l="".concat(t[15].style.borderRadius,"px"))&&cn(n,"border-radius",l),2&r&&cn(n,"background",t[15].style.background),2&r&&cn(n,"box-shadow",t[15].style.boxShadow),2&r&&c!==(c="".concat(t[15].left,"px"))&&cn(e,"left",c),2&r&&u!==(u="".concat(t[15].top,"px"))&&cn(e,"top",u),2&r&&d!==(d="".concat(t[15].width,"px"))&&cn(e,"width",d),2&r&&h!==(h="".concat(t[15].height,"px"))&&cn(e,"height",h)},d(t){t&&Me(e)}}}function bo(t){let e,n,r,i,o=Yn(t[1]),a=[];for(let e=0;e<o.length;e+=1)a[e]=_o($o(t,o,e));return{c(){e=Je("div");for(let t=0;t<a.length;t+=1)a[t].c();this.h()},l(t){e=en(t,"DIV",{class:!0});var n=Ze(e);for(let t=0;t<a.length;t+=1)a[t].l(n);n.forEach(Me),this.h()},h(){We(e,"class",n=vo["container-separator"])},m(n,o){Te(n,e,o);for(let t=0;t<a.length;t+=1)a[t]&&a[t].m(e,null);t[12](e),r||(i=He(yo,"resize",t[2]),r=!0)},p(t,n){let[r]=n;if(2&r){let n;for(o=Yn(t[1]),n=0;n<o.length;n+=1){const i=$o(t,o,n);a[n]?a[n].p(i,r):(a[n]=_o(i),a[n].c(),a[n].m(e,null))}for(;n<a.length;n+=1)a[n].d(1);a.length=o.length}},i:ne,o:ne,d(n){n&&Me(e),ze(a,n),t[12](null),r=!1,i()}}}function wo(t,e,n,r,i,o){const a=e.margins.left,s=e.margins.right,l=e.margins.top,c=e.margins.bottom;o?t.push({top:n.bottom+l,left:i.left+a,width:Math.max(0,i.right-i.left-a-s),height:r.top-n.bottom-l-c,style:e.style}):t.push({top:i.top+l,left:n.right+a,width:r.left-n.right-a-s,height:Math.max(0,i.bottom-i.top-l-c),style:e.style})}function xo(t,e,n,r,i,o){const a={top:Math.min(...n.map((t=>t.top))),right:Math.max(...n.map((t=>t.right))),bottom:Math.max(...n.map((t=>t.bottom))),left:Math.min(...n.map((t=>t.left)))};if(null==e?void 0:e.show_at_start){let s,l;"space-around"===i||"space-evenly"===i?(s=o.left-e.style.width,l=o.top-e.style.height):(s=n[0].left-e.style.width-e.margins.left-e.margins.right,l=n[0].top-e.style.height-e.margins.top-e.margins.bottom),wo(t,e,{top:0,right:s,bottom:l,left:0},n[0],a,r)}if(null==e?void 0:e.show_between)for(let i=0;i<n.length-1;++i)wo(t,e,n[i],n[i+1],a,r);if(null==e?void 0:e.show_at_end){const s=n[n.length-1];let l,c;"space-around"===i||"space-evenly"===i?(l=o.bottom+e.style.height,c=o.right+e.style.width):(l=s.bottom+e.style.height+e.margins.top+e.margins.bottom,c=s.right+e.style.width+e.margins.left+e.margins.right),wo(t,e,s,{top:l,right:0,bottom:0,left:c},a,r)}}function ko(t,e,n){let r,{orientation:i}=e,{separator:o}=e,{lineSeparator:a}=e,{contentHAlign:s}=e,{contentVAlign:l}=e;const c=function(t,e){let n,r=0,i=!1;return function(){const e=Date.now();return!r||Math.abs(e-r)>10?(r=e,n=t.apply(this,arguments)):(i||(i=!0,setTimeout((()=>{i=!1,n=t.apply(this,arguments)}),10)),n)}}((function(){if(!r)return;const t=r.getBoundingClientRect(),e=window.getComputedStyle(r),c={top:t.top+parseFloat(e.paddingTop),right:t.right-parseFloat(e.paddingRight),bottom:t.bottom-parseFloat(e.paddingBottom),left:t.left+parseFloat(e.paddingLeft)};n(1,d=[]);let h=[...r.children].filter((t=>t!==u&&!t.classList.contains(kr.outer__border))),p=[];for(;h.length;){const t=[],e=h.shift();t.push(e);let n=e.getBoundingClientRect(),r=n.right,o=n.bottom;for(;h.length;){let e=h[0],n=e.getBoundingClientRect();if("vertical"===i){if(n.top<o)break}else if(n.left<r)break;r=Math.max(r,n.right),o=Math.max(o,n.bottom),t.push(e),h.shift()}p.push(t)}const f=[];p.forEach((t=>{const e=t.map((t=>function(t){const e=t.getBoundingClientRect(),n=getComputedStyle(t);return{top:e.top-parseFloat(n.marginTop),right:e.right+parseFloat(n.marginRight),bottom:e.bottom+parseFloat(n.marginBottom),left:e.left-parseFloat(n.marginLeft)}}(t)));o&&xo(d,o,e,"vertical"===i,"vertical"===i?l:s,c);const n={top:Math.min(...e.map((t=>t.top))),right:Math.max(...e.map((t=>t.right))),bottom:Math.max(...e.map((t=>t.bottom))),left:Math.min(...e.map((t=>t.left)))};f.push(n)})),a&&xo(d,a,f,"horizontal"===i,"vertical"===i?s:l,c),d.forEach((e=>{e.top-=t.top,e.left-=t.left}))}));let u,d=[],h=!1,p=null,f=null;function g(t){t.some((t=>{var e;const n=null===(e=t.target)||void 0===e?void 0:e.classList;return!(null==n?void 0:n.contains(vo["container-separator__shape"]))&&!(null==n?void 0:n.contains(vo["container-separator"]))}))&&c()}return bn((()=>{n(8,h=!0)})),wn((()=>{n(8,h=!1)})),t.$$set=t=>{"orientation"in t&&n(3,i=t.orientation),"separator"in t&&n(4,o=t.separator),"lineSeparator"in t&&n(5,a=t.lineSeparator),"contentHAlign"in t&&n(6,s=t.contentHAlign),"contentVAlign"in t&&n(7,l=t.contentVAlign)},t.$$.update=()=>{1&t.$$.dirty&&n(11,r=(null==u?void 0:u.parentElement)||null),3840&t.$$.dirty&&(h&&r||p||f)&&(p&&(p.disconnect(),n(9,p=null)),f&&(f.disconnect(),n(10,f=null)),h&&r&&("undefined"!=typeof MutationObserver&&(n(9,p=new MutationObserver(g)),p.observe(r,{childList:!0,attributes:!0,characterData:!0,subtree:!0})),"undefined"!=typeof ResizeObserver&&(n(10,f=new ResizeObserver(c)),f.observe(r)))),2304&t.$$.dirty&&h&&r&&c()},[u,d,c,i,o,a,s,l,h,p,f,r,function(t){An[t?"unshift":"push"]((()=>{u=t,n(0,u)}))}]}const Eo=class extends ur{constructor(t){super(),lr(this,t,ko,bo,de,{orientation:3,separator:4,lineSeparator:5,contentHAlign:6,contentVAlign:7})}},{Boolean:Co}=Ae;function Ao(t,e,n){const r=t.slice();return r[49]=e[n],r}function Vo(t){let e,n;return e=new vc({props:{layoutParams:t[10],div:t[49].json,templateContext:t[49].templateContext,origJson:t[49].origJson}}),{c(){ir(e.$$.fragment)},l(t){or(e.$$.fragment,t)},m(t,r){ar(e,t,r),n=!0},p(t,n){const r={};1024&n[0]&&(r.layoutParams=t[10]),4096&n[0]&&(r.div=t[49].json),4096&n[0]&&(r.templateContext=t[49].templateContext),4096&n[0]&&(r.origJson=t[49].origJson),e.$set(r)},i(t){n||(Wn(e.$$.fragment,t),n=!0)},o(t){qn(e.$$.fragment,t),n=!1},d(t){sr(e,t)}}}function Do(t){let e,n;return e=new Eo({props:{separator:t[7],lineSeparator:t[8],orientation:t[4],contentHAlign:t[6],contentVAlign:t[5]}}),{c(){ir(e.$$.fragment)},l(t){or(e.$$.fragment,t)},m(t,r){ar(e,t,r),n=!0},p(t,n){const r={};128&n[0]&&(r.separator=t[7]),256&n[0]&&(r.lineSeparator=t[8]),16&n[0]&&(r.orientation=t[4]),64&n[0]&&(r.contentHAlign=t[6]),32&n[0]&&(r.contentVAlign=t[5]),e.$set(r)},i(t){n||(Wn(e.$$.fragment,t),n=!0)},o(t){qn(e.$$.fragment,t),n=!1},d(t){sr(e,t)}}}function jo(t){let e,n,r,i=Yn(t[12]),o=[];for(let e=0;e<i.length;e+=1)o[e]=Vo(Ao(t,i,e));const a=t=>qn(o[t],1,1,(()=>{o[t]=null}));let s=(t[7]||t[8])&&Do(t);return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=Le(),s&&s.c(),n=Ue()},l(t){for(let e=0;e<o.length;e+=1)o[e].l(t);e=on(t),s&&s.l(t),n=Ue()},m(t,i){for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,i);Te(t,e,i),s&&s.m(t,i),Te(t,n,i),r=!0},p(t,r){if(5120&r[0]){let n;for(i=Yn(t[12]),n=0;n<i.length;n+=1){const a=Ao(t,i,n);o[n]?(o[n].p(a,r),Wn(o[n],1)):(o[n]=Vo(a),o[n].c(),Wn(o[n],1),o[n].m(e.parentNode,e))}for(Un(),n=i.length;n<o.length;n+=1)a(n);Hn()}t[7]||t[8]?s?(s.p(t,r),384&r[0]&&Wn(s,1)):(s=Do(t),s.c(),Wn(s,1),s.m(n.parentNode,n)):s&&(Un(),qn(s,1,1,(()=>{s=null})),Hn())},i(t){if(!r){for(let t=0;t<i.length;t+=1)Wn(o[t]);Wn(s),r=!0}},o(t){o=o.filter(Co);for(let t=0;t<o.length;t+=1)qn(o[t]);qn(s),r=!1},d(t){t&&(Me(e),Me(n)),ze(o,t),s&&s.d(t)}}}function Fo(t){let e,n;return e=new Ii({props:{cls:Jr("container",so,t[15]),style:t[11],json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],additionalPaddings:t[16],heightByAspect:Boolean(t[9]),parentOf:t[13],replaceItems:t[27],$$slots:{default:[jo]},$$scope:{ctx:t}}}),{c(){ir(e.$$.fragment)},l(t){or(e.$$.fragment,t)},m(t,r){ar(e,t,r),n=!0},p(t,n){const r={};32768&n[0]&&(r.cls=Jr("container",so,t[15])),2048&n[0]&&(r.style=t[11]),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),65536&n[0]&&(r.additionalPaddings=t[16]),512&n[0]&&(r.heightByAspect=Boolean(t[9])),8192&n[0]&&(r.parentOf=t[13]),5616&n[0]|2097152&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Wn(e.$$.fragment,t),n=!0)},o(t){qn(e.$$.fragment,t),n=!1},d(t){sr(e,t)}}}const Po={left:"start",center:"center",right:"end","space-between":"start","space-around":"start","space-evenly":"start"},So={top:"start",center:"center",bottom:"end",baseline:"baseline","space-between":"start","space-around":"start","space-evenly":"start"},Io=["rounded_rectangle","circle"];function No(t,e,n){let r,i,o,a,s,l,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x,k,E,C,A,V,D,j,F,P=ne,S=ne,I=ne,N=ne,O=ne,T=ne,M=ne,z=ne,J=ne,B=ne,R=ne;var L,U,H,W,q,G;t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>S())),t.$$.on_destroy.push((()=>I())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>R()));let{json:K={}}=e,{templateContext:Y}=e,{origJson:Z}=e,{layoutParams:X}=e;const Q=kn(wr);let tt,et,nt="vertical",rt="top",it="left",ot=null,at=null,st={};return t.$$set=t=>{"json"in t&&n(0,K=t.json),"templateContext"in t&&n(1,Y=t.templateContext),"origJson"in t&&n(2,Z=t.origJson),"layoutParams"in t&&n(3,X=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&K&&(n(4,nt="vertical"),n(5,rt="top"),n(6,it="left"),n(9,et=void 0)),1&t.$$.dirty[0]&&n(13,r=K.items),1&t.$$.dirty[0]&&(n(26,i=Q.getDerivedFromVars(K.orientation)),R(),R=he(i,(t=>n(47,F=t)))),1&t.$$.dirty[0]&&(n(25,o=Q.getDerivedFromVars(K.layout_mode)),B(),B=he(o,(t=>n(46,j=t)))),1&t.$$.dirty[0]&&(n(24,a=Q.getDerivedFromVars(K.content_alignment_vertical)),z(),z=he(a,(t=>n(44,V=t)))),1&t.$$.dirty[0]&&(n(23,s=Q.getDerivedFromVars(K.content_alignment_horizontal)),M(),M=he(s,(t=>n(43,A=t)))),1&t.$$.dirty[0]&&(n(22,l=Q.getDerivedFromVars(K.separator)),T(),T=he(l,(t=>n(42,C=t)))),1&t.$$.dirty[0]&&(n(21,c=Q.getDerivedFromVars(K.line_separator)),O(),O=he(c,(t=>n(41,E=t)))),1&t.$$.dirty[0]&&(n(20,u=Q.getDerivedFromVars(K.aspect)),N(),N=he(u,(t=>n(40,k=t)))),1&t.$$.dirty[0]&&(n(19,d=Q.getDerivedFromVars(K.width)),S(),S=he(d,(t=>n(38,w=t)))),1&t.$$.dirty[0]&&(n(18,h=Q.getDerivedFromVars(K.height)),I(),I=he(h,(t=>n(39,x=t)))),1&t.$$.dirty[0]&&(n(17,p=Q.getDerivedFromVars(K.clip_to_bounds)),P(),P=he(p,(t=>n(37,b=t)))),8194&t.$$.dirty[0]&&n(12,f=(r||[]).map((t=>{let e=t,n=Y;return({templateContext:n,json:e}=Q.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),4096&t.$$.dirty[0]){let t=[];f.forEach((e=>{t.push(Q.getDerivedFromVars({width:e.json.width,height:e.json.height}))})),n(14,tt=pr(t,(t=>[...t]))),J(),J=he(tt,(t=>n(45,D=t)))}if(16&t.$$.dirty[0]|65536&t.$$.dirty[1]&&n(4,nt=function(t,e){return"vertical"===t||"horizontal"===t||"overlap"===t?t:e}(F,nt)),32768&t.$$.dirty[1]&&n(34,g="wrap"===j),16&t.$$.dirty[0]|16392&t.$$.dirty[1]&&n(35,m="horizontal"!==nt&&!g&&D.some(ho)),16&t.$$.dirty[0]|16392&t.$$.dirty[1]&&n(36,v="vertical"!==nt&&!g&&D.some(po)),32&t.$$.dirty[0]|8192&t.$$.dirty[1]&&n(5,rt=function(t,e){return"top"===t||"center"===t||"bottom"===t||"baseline"===t||"space-between"===t||"space-around"===t||"space-evenly"===t?t:e}(V,rt)),64&t.$$.dirty[0]|4096&t.$$.dirty[1]&&n(6,it=function(t,e){return"left"===t||"center"===t||"right"===t||"space-between"===t||"space-around"===t||"space-evenly"===t?t:e}(A,it)),1879048336&t.$$.dirty[0]|2048&t.$$.dirty[1])if((null==C?void 0:C.style)&&"overlap"!==nt&&mo()){const t=fo(C.style,Io,(null==ot?void 0:ot.style)||null);n(7,ot=t?{show_at_start:Boolean(null!==n(28,L=C.show_at_start)&&void 0!==L&&L),show_at_end:Boolean(null!==n(29,U=C.show_at_end)&&void 0!==U&&U),show_between:Boolean(null===n(30,H=C.show_between)||void 0===H||H),style:t,margins:lo(C.margins)}:null)}else n(7,ot=null);if(272&t.$$.dirty[0]|1031&t.$$.dirty[1])if((null==E?void 0:E.style)&&"overlap"!==nt&&mo()){const t=fo(E.style,Io,(null==at?void 0:at.style)||null);n(8,at=t?{show_at_start:Boolean(null!==n(31,W=E.show_at_start)&&void 0!==W&&W),show_at_end:Boolean(null!==n(32,q=E.show_at_end)&&void 0!==q&&q),show_between:Boolean(null===n(33,G=E.show_between)||void 0===G||G),style:t,margins:lo(E.margins)}:null)}else n(8,at=null);if(400&t.$$.dirty[0]&&n(16,y=ot||at?function(t,e,n){const r={};return co(r,e,"vertical"===t),co(r,n,"horizontal"===t),r}(nt,ot,at):null),512&t.$$.dirty[1]){const t=null==k?void 0:k.ratio;t&&fi(t)?n(9,et=t):n(9,et=void 0)}if(1656&t.$$.dirty[0]|440&t.$$.dirty[1]){let t={};(null==X?void 0:X.fakeElement)&&(t.fakeElement=!0),"overlap"===nt&&(t.overlapParent=!0),"horizontal"!==nt&&(t.parentHAlign=g?"start":Po[it]),"vertical"!==nt&&(t.parentVAlign=g?"start":So[rt]),et||v||x&&"wrap_content"!==x.type&&("match_parent"!==x.type||!(null==X?void 0:X.parentVerticalWrapContent))||(t.parentVerticalWrapContent=!0),!m&&("wrap_content"===(null==w?void 0:w.type)||"match_parent"===(null==w?void 0:w.type)&&(null==X?void 0:X.parentHorizontalWrapContent))&&(t.parentHorizontalWrapContent=!0),"horizontal"===nt&&(t.parentContainerOrientation="horizontal"),"vertical"===nt&&(t.parentContainerOrientation="vertical"),g&&(t.parentContainerWrap=!0),n(10,st=Yr(t,st))}112&t.$$.dirty[0]|72&t.$$.dirty[1]&&n(15,$={orientation:nt,valign:rt,halign:it,wrap:g,overflow:!1===b||0===b?"visible":void 0}),912&t.$$.dirty[0]&&n(11,_={gap:ot||at?uo(nt,ot,at):void 0,"aspect-ratio":et})},[K,Y,Z,X,nt,rt,it,ot,at,et,st,_,f,r,tt,$,y,p,h,d,u,c,l,s,a,o,i,function(t){n(0,K=Object.assign(Object.assign({},K),{items:t.filter(Dr)}))},L,U,H,W,q,G,g,m,v,b,w,x,k,E,C,A,V,D,j,F]}const Oo={separator:"divkit-a30bb",separator_orientation_horizontal:"divkit-f529e",separator_orientation_vertical:"divkit-e9e27",separator__inner:"divkit-db7d8"};function To(t,e){return"vertical"===t||"horizontal"===t?t:e}function Mo(t){let e,n,r;return{c(){e=Je("span"),this.h()},l(t){e=en(t,"SPAN",{class:!0,style:!0}),Ze(e).forEach(Me),this.h()},h(){We(e,"class",n=Oo.separator__inner),We(e,"style",r=Er(t[5]))},m(t,n){Te(t,e,n)},p(t,n){32&n&&r!==(r=Er(t[5]))&&We(e,"style",r)},d(t){t&&Me(e)}}}function zo(t){let e,n=t[6]&&Mo(t);return{c(){n&&n.c(),e=Ue()},l(t){n&&n.l(t),e=Ue()},m(t,r){n&&n.m(t,r),Te(t,e,r)},p(t,r){t[6]?n?n.p(t,r):(n=Mo(t),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(t){t&&Me(e),n&&n.d(t)}}}function Jo(t){let e,n;return e=new Ii({props:{cls:Jr("separator",Oo,t[4]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[zo]},$$scope:{ctx:t}}}),{c(){ir(e.$$.fragment)},l(t){or(e.$$.fragment,t)},m(t,r){ar(e,t,r),n=!0},p(t,n){let[r]=n;const i={};16&r&&(i.cls=Jr("separator",Oo,t[4])),1&r&&(i.json=t[0]),4&r&&(i.origJson=t[2]),2&r&&(i.templateContext=t[1]),8&r&&(i.layoutParams=t[3]),16480&r&&(i.$$scope={dirty:r,ctx:t}),e.$set(i)},i(t){n||(Wn(e.$$.fragment,t),n=!0)},o(t){qn(e.$$.fragment,t),n=!1},d(t){sr(e,t)}}}function Bo(t,e,n){let r,i,o,a,s,l,c,u=ne;t.$$.on_destroy.push((()=>u()));let{json:d={}}=e,{templateContext:h}=e,{origJson:p}=e,{layoutParams:f}=e;const g=kn(wr);let m="horizontal",v="rgba(0,0,0,0.08)";return t.$$set=t=>{"json"in t&&n(0,d=t.json),"templateContext"in t&&n(1,h=t.templateContext),"origJson"in t&&n(2,p=t.origJson),"layoutParams"in t&&n(3,f=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty&&d&&(n(8,m="horizontal"),n(9,v="rgba(0,0,0,0.08)")),1&t.$$.dirty&&(n(7,r=g.getDerivedFromVars(d.delimiter_style)),u(),u=he(r,(t=>n(12,c=t)))),4352&t.$$.dirty&&n(8,m=To(null==c?void 0:c.orientation,m)),4096&t.$$.dirty&&n(6,i=!((null==c?void 0:c.color)&&("transparent"===c.color||9===c.color.length&&0===c.color.indexOf("#00")))),4608&t.$$.dirty&&n(9,v=k(null==c?void 0:c.color,1,v)),256&t.$$.dirty&&n(11,o="horizontal"===m?"100%":Cr(1)),256&t.$$.dirty&&n(10,a="horizontal"===m?Cr(1):"100%"),3584&t.$$.dirty&&n(5,s={background:v,width:o,height:a}),256&t.$$.dirty&&n(4,l={orientation:m})},[d,h,p,f,l,s,i,r,m,v,a,o,c]}const Ro={image:"divkit-a448f","image_is-width-content":"divkit-fe14a","image_is-height-content":"divkit-f4d92",image__image:"divkit-ce046",image_error:"divkit-f10d9","image__aspect-wrapper":"divkit-dc808",image_aspect:"divkit-ae784",image_loaded:"divkit-cf4e0","divkit-image-appearance":"divkit-e555f","image_before-appearance":"divkit-ffe8a"};function Lo(t){return t.startsWith("data:")?Vr(t):"data:image/jpg;base64,".concat(Vr(t))}function Uo(t){let e,n;return e=new Ii({props:{cls:Jr("image",Ro,t[11]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customDescription:!0,$$slots:{default:[Go]},$$scope:{ctx:t}}}),{c(){ir(e.$$.fragment)},l(t){or(e.$$.fragment,t)},m(t,r){ar(e,t,r),n=!0},p(t,n){const r={};2048&n[0]&&(r.cls=Jr("image",Ro,t[11])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),7664&n[0]|2&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Wn(e.$$.fragment,t),n=!0)},o(t){qn(e.$$.fragment,t),n=!1},d(t){sr(e,t)}}}function Ho(t){let e,n,r,i,o,a,s;return{c(){e=Je("img"),this.h()},l(t){e=en(t,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,style:!0,alt:!0,"aria-hidden":!0}),this.h()},h(){We(e,"class",n=Ro.image__image),ue(e.src,r=t[5]===Zo?Yo:t[6])||We(e,"src",r),We(e,"loading","lazy"),We(e,"decoding","async"),We(e,"style",i=Er(t[10])),We(e,"alt",t[12]),We(e,"aria-hidden",o=t[12]?null:"true")},m(n,r){Te(n,e,r),t[59](e),a||(s=[He(e,"load",t[27]),He(e,"error",t[28])],a=!0)},p(t,n){96&n[0]&&!ue(e.src,r=t[5]===Zo?Yo:t[6])&&We(e,"src",r),1024&n[0]&&i!==(i=Er(t[10]))&&We(e,"style",i),4096&n[0]&&We(e,"alt",t[12]),4096&n[0]&&o!==(o=t[12]?null:"true")&&We(e,"aria-hidden",o)},d(n){n&&Me(e),t[59](null),a=!1,se(s)}}}function Wo(t){let e,n,r,i,o,a,s,l,c,u="".concat(t[7],"%");return{c(){e=Je("span"),n=Je("img"),this.h()},l(t){e=en(t,"SPAN",{class:!0});var r=Ze(e);n=en(r,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,style:!0,alt:!0,"aria-hidden":!0}),r.forEach(Me),this.h()},h(){We(n,"class",r=Ro.image__image),ue(n.src,i=t[5]===Zo?Yo:t[6])||We(n,"src",i),We(n,"loading","lazy"),We(n,"decoding","async"),We(n,"style",o=Er(t[10])),We(n,"alt",t[12]),We(n,"aria-hidden",a=t[12]?null:"true"),We(e,"class",s=Ro["image__aspect-wrapper"]),cn(e,"padding-bottom",u)},m(r,i){Te(r,e,i),Ne(e,n),t[58](n),l||(c=[He(n,"load",t[27]),He(n,"error",t[28])],l=!0)},p(t,r){96&r[0]&&!ue(n.src,i=t[5]===Zo?Yo:t[6])&&We(n,"src",i),1024&r[0]&&o!==(o=Er(t[10]))&&We(n,"style",o),4096&r[0]&&We(n,"alt",t[12]),4096&r[0]&&a!==(a=t[12]?null:"true")&&We(n,"aria-hidden",a),128&r[0]&&u!==(u="".concat(t[7],"%"))&&cn(e,"padding-bottom",u)},d(n){n&&Me(e),t[58](null),l=!1,se(c)}}}function qo(t){let e;function n(t,e){return t[11].aspect?Wo:Ho}let r=n(t),i=r(t);return{c(){i.c(),e=Ue()},l(t){i.l(t),e=Ue()},m(t,n){i.m(t,n),Te(t,e,n)},p(t,o){r===(r=n(t))&&i?i.p(t,o):(i.d(1),i=r(t),i&&(i.c(),i.m(e.parentNode,e)))},d(t){t&&Me(e),i.d(t)}}}function Go(t){let e,n=t[8],r=qo(t);return{c(){r.c(),e=Ue()},l(t){r.l(t),e=Ue()},m(t,n){r.m(t,n),Te(t,e,n)},p(t,i){256&i[0]&&de(n,n=t[8])?(r.d(1),r=qo(t),r.c(),r.m(e.parentNode,e)):r.p(t,i)},d(t){t&&Me(e),r.d(t)}}}function Ko(t){let e,n,r=!t[9]&&Uo(t);return{c(){r&&r.c(),e=Ue()},l(t){r&&r.l(t),e=Ue()},m(t,i){r&&r.m(t,i),Te(t,e,i),n=!0},p(t,n){t[9]?r&&(Un(),qn(r,1,1,(()=>{r=null})),Hn()):r?(r.p(t,n),512&n[0]&&Wn(r,1)):(r=Uo(t),r.c(),Wn(r,1),r.m(e.parentNode,e))},i(t){n||(Wn(r),n=!0)},o(t){qn(r),n=!1},d(t){t&&Me(e),r&&r.d(t)}}}const Yo="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Zo=2;function Xo(t,e,n){let r,i,o,a,s,l,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x,E,C,A,V,D,j,F,P,S,I,N,O,T=ne,M=ne,z=ne,J=ne,B=ne,R=ne,L=ne,U=ne,H=ne,W=ne,q=ne,G=ne,K=ne,Y=ne;t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>K())),t.$$.on_destroy.push((()=>Y()));let{json:Z={}}=e,{templateContext:X}=e,{origJson:Q}=e,{layoutParams:tt}=e;const et=kn(wr);let nt,rt,it,ot=0,at=!1,st="rgba(0,0,0,0.08)",lt=!1,ct="",dt="none",ht="50% 50%",pt="0",ft="source_in",gt="",mt="",vt=0,yt=0,$t=0,_t="",bt="";return wn((()=>{et.removeSvgFilter(it,ft)})),t.$$set=t=>{"json"in t&&n(0,Z=t.json),"templateContext"in t&&n(1,X=t.templateContext),"origJson"in t&&n(2,Q=t.origJson),"layoutParams"in t&&n(3,tt=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&Z&&(n(32,dt="none"),n(33,ht="50% 50%"),n(35,ft="source_in")),1&t.$$.dirty[0]&&(n(26,r=et.getDerivedFromVars(Z.image_url)),K(),K=he(r,(t=>n(56,N=t)))),1&t.$$.dirty[0]&&(n(25,i=et.getDerivedFromVars(Z.gif_url)),Y(),Y=he(i,(t=>n(57,O=t)))),1&t.$$.dirty[0]&&(n(24,o=et.getDerivedFromVars(Z.width)),G(),G=he(o,(t=>n(55,I=t)))),1&t.$$.dirty[0]&&(n(23,a=et.getDerivedFromVars(Z.height)),q(),q=he(a,(t=>n(54,S=t)))),1&t.$$.dirty[0]&&(n(22,s=et.getDerivedFromVars(Z.preview)),W(),W=he(s,(t=>n(53,P=t)))),1&t.$$.dirty[0]&&(n(21,l=et.getDerivedFromVars(Z.placeholder_color)),H(),H=he(l,(t=>n(52,F=t)))),1&t.$$.dirty[0]&&(n(20,c=et.getDerivedFromVars(Z.scale)),U(),U=he(c,(t=>n(51,j=t)))),1&t.$$.dirty[0]&&(n(19,u=et.getDerivedFromVars({content_alignment_horizontal:Z.content_alignment_horizontal,content_alignment_vertical:Z.content_alignment_vertical})),L(),L=he(u,(t=>n(50,D=t)))),1&t.$$.dirty[0]&&(n(18,d=et.getDerivedFromVars(Z.accessibility)),R(),R=he(d,(t=>n(49,V=t)))),1&t.$$.dirty[0]&&(n(17,h=et.getDerivedFromVars(Z.aspect)),B(),B=he(h,(t=>n(48,A=t)))),1&t.$$.dirty[0]&&(n(16,p=et.getDerivedFromVars(Z.tint_color)),J(),J=he(p,(t=>n(47,C=t)))),1&t.$$.dirty[0]&&(n(15,f=et.getDerivedFromVars(Z.tint_mode)),z(),z=he(f,(t=>n(46,E=t)))),1&t.$$.dirty[0]&&(n(14,g=et.getDerivedFromVars(Z.appearance_animation)),M(),M=he(g,(t=>n(45,x=t)))),1&t.$$.dirty[0]&&(n(13,m=et.getDerivedFromVars(Z.filters)),T(),T=he(m,(t=>n(44,w=t)))),536870913&t.$$.dirty[0]|100663296&t.$$.dirty[1]){let t="gif"===Z.type?O:N;n(29,at="empty://"===t),at&&(t=Yo),n(6,rt=t)}if(64&t.$$.dirty[0]&&n(5,ot=0),65&t.$$.dirty[0]&&(rt?n(9,lt=!1):(n(9,lt=!0),et.logError(ut(new Error('Missing "'.concat("gif"===Z.type?"gif_url":"image_url",'" for "').concat(Z.type,'"')))))),16777216&t.$$.dirty[1]&&n(43,v="wrap_content"===(null==I?void 0:I.type)),8388608&t.$$.dirty[1]&&n(42,y="wrap_content"===(null==S?void 0:S.type)),536870944&t.$$.dirty[0]|4194304&t.$$.dirty[1]&&n(31,ct=(0===ot||ot===Zo||at)&&P?'url("'.concat(Lo(P),'")'):""),1610612768&t.$$.dirty[0]|2097152&t.$$.dirty[1]&&n(30,st=0===ot||ot===Zo||at?k(F,1,st):""),1048578&t.$$.dirty[1]&&n(32,dt=Sr(j)||dt),524288&t.$$.dirty[1]&&n(33,ht=function(t,e){const n=t.content_alignment_horizontal,r=t.content_alignment_vertical;return n&&"left"!==n&&"center"!==n&&"right"!==n||r&&"top"!==r&&"center"!==r&&"bottom"!==r?e:Ir(t)}(D,ht)),262144&t.$$.dirty[1]&&n(12,$=(null==V?void 0:V.description)||""),131072&t.$$.dirty[1]){const t=null==A?void 0:A.ratio;t&&fi(t)?n(7,pt=(100/Number(t)).toFixed(2)):n(7,pt="0")}if(98328&t.$$.dirty[1]){const t=C?k(C):void 0,e=qi(E,ft);t===it&&e===ft||(et.removeSvgFilter(it,ft),n(8,gt=t?et.addSvgFilter(t,e):""),n(34,it=t),n(35,ft=e))}if(16384&t.$$.dirty[1]&&x&&"fade"===x.type){const t=x;n(36,mt=Zr(t.interpolator,"ease_in_out").replace(/_/g,"-")),n(39,$t=qr(t.duration,300)),n(38,yt=qr(t.start_delay,0)),n(37,vt=qr(t.alpha,0))}if(8192&t.$$.dirty[1]){let t="",e="";Array.isArray(w)&&w.length&&(t=gi(w,et.logError)),t&&(e="polygon(0% 0%, 0% 100%, 100% 100%, 100% 0%)"),n(40,_t=t),n(41,bt=e)}160&t.$$.dirty[0]|6176&t.$$.dirty[1]&&n(11,_={aspect:"0"!==pt,"is-width-content":v,"is-height-content":y,loaded:1===ot,"before-appearance":Boolean(mt)&&0===ot}),1073742112&t.$$.dirty[0]|2023&t.$$.dirty[1]&&n(10,b={"background-image":ct,"background-color":ct?void 0:st,"background-size":dt,"clip-path":bt||void 0,"object-fit":dt,"object-position":ht,filter:[1===ot&>?"url(#".concat(gt,")"):"",_t].filter(Boolean).join(" "),"--divkit-appearance-interpolator":mt||void 0,"--divkit-appearance-fade-start":mt?vt:void 0,"--divkit-appearance-delay":mt?"".concat(yt,"ms"):void 0,"--divkit-appearance-duration":mt?"".concat($t,"ms"):void 0})},[Z,X,Q,tt,nt,ot,rt,pt,gt,lt,b,_,$,m,g,f,p,h,d,u,c,l,s,a,o,i,r,function(){0===ot&&n(5,ot=1)},function(){0===ot&&n(5,ot=Zo)},at,st,ct,dt,ht,it,ft,mt,vt,yt,$t,_t,bt,y,v,w,x,E,C,A,V,D,j,F,P,S,I,N,O,function(t){An[t?"unshift":"push"]((()=>{nt=t,n(4,nt),n(0,Z),n(57,O),n(56,N),n(29,at)}))},function(t){An[t?"unshift":"push"]((()=>{nt=t,n(4,nt),n(0,Z),n(57,O),n(56,N),n(29,at)}))}]}const Qo=class extends ur{constructor(t){super(),lr(this,t,Xo,Ko,de,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},ta={grid:"divkit-d9080",grid_halign_left:"divkit-f63b3",grid_halign_center:"divkit-a14a6",grid_halign_right:"divkit-b0717",grid_valign_top:"divkit-fbca8",grid_valign_center:"divkit-d4310",grid_valign_bottom:"divkit-e4205"};function ea(t){return t>0&&t<1}function na(t){return String(Math.ceil(1e3*t)/1e3)}function ra(t,e,n){if(t.some(ea)){const e=Math.max(...t.filter(ea).map((t=>1/t)));t=t.map((t=>t*e))}let r=0,i=0;const o=[];if(t.every(Boolean)){i=t.reduce(((t,e)=>t+e),0);for(let o=0;o<n;++o){if(!e[o])continue;const n=e[o]/t[o]*i;n>r&&(r=n)}}for(let e=0;e<n;++e)r?o[e]="minmax(".concat(Cr(r*t[e]/i),",").concat(na(t[e]),"fr)"):t[e]?o[e]="".concat(na(t[e]),"fr"):o[e]="auto";return o.join(" ")}function ia(t,e,n){const r=t.slice();return r[29]=e[n],r}function oa(t){let e,n;return e=new Ii({props:{cls:Jr("grid",ta,t[8]),json:t[0],origJson:t[2],templateContext:t[1],style:t[7],layoutParams:t[3],parentOf:t[0].items,replaceItems:t[12],$$slots:{default:[sa]},$$scope:{ctx:t}}}),{c(){ir(e.$$.fragment)},l(t){or(e.$$.fragment,t)},m(t,r){ar(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.cls=Jr("grid",ta,t[8])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),128&n[0]&&(r.style=t[7]),8&n[0]&&(r.layoutParams=t[3]),1&n[0]&&(r.parentOf=t[0].items),32&n[0]|2&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Wn(e.$$.fragment,t),n=!0)},o(t){qn(e.$$.fragment,t),n=!1},d(t){sr(e,t)}}}function aa(t){let e,n;return e=new vc({props:{layoutParams:t[29].layoutParams,div:t[29].json,templateContext:t[29].templateContext,origJson:t[29].origJson}}),{c(){ir(e.$$.fragment)},l(t){or(e.$$.fragment,t)},m(t,r){ar(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||(Wn(e.$$.fragment,t),n=!0)},o(t){qn(e.$$.fragment,t),n=!1},d(t){sr(e,t)}}}function sa(t){let e,n,r=Yn(t[5]),i=[];for(let e=0;e<r.length;e+=1)i[e]=aa(ia(t,r,e));const o=t=>qn(i[t],1,1,(()=>{i[t]=null}));return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=Ue()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);e=Ue()},m(t,r){for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(t,r);Te(t,e,r),n=!0},p(t,n){if(32&n[0]){let a;for(r=Yn(t[5]),a=0;a<r.length;a+=1){const o=ia(t,r,a);i[a]?(i[a].p(o,n),Wn(i[a],1)):(i[a]=aa(o),i[a].c(),Wn(i[a],1),i[a].m(e.parentNode,e))}for(Un(),a=r.length;a<i.length;a+=1)o(a);Hn()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Wn(i[t]);n=!0}},o(t){i=i.filter(Boolean);for(let t=0;t<i.length;t+=1)qn(i[t]);n=!1},d(t){t&&Me(e),ze(i,t)}}}function la(t){let e,n,r=!t[6]&&oa(t);return{c(){r&&r.c(),e=Ue()},l(t){r&&r.l(t),e=Ue()},m(t,i){r&&r.m(t,i),Te(t,e,i),n=!0},p(t,n){t[6]?r&&(Un(),qn(r,1,1,(()=>{r=null})),Hn()):r?(r.p(t,n),64&n[0]&&Wn(r,1)):(r=oa(t),r.c(),Wn(r,1),r.m(e.parentNode,e))},i(t){n||(Wn(r),n=!0)},o(t){qn(r),n=!1},d(t){t&&Me(e),r&&r.d(t)}}}function ca(t,e,n){let r,i,o,a,s,l,c,u,d,h,p,f,g=ne,m=ne,v=ne,y=ne;t.$$.on_destroy.push((()=>g())),t.$$.on_destroy.push((()=>m())),t.$$.on_destroy.push((()=>v())),t.$$.on_destroy.push((()=>y()));let{json:$={}}=e,{templateContext:_}=e,{origJson:b}=e,{layoutParams:w}=e;const x=kn(wr);let k,E,C=1,A=[],V=[],D=[],j=[],F=0,P=!1,S="top",I="left";return t.$$set=t=>{"json"in t&&n(0,$=t.json),"templateContext"in t&&n(1,_=t.templateContext),"origJson"in t&&n(2,b=t.origJson),"layoutParams"in t&&n(3,w=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&$&&(n(13,C=1),n(20,S="top"),n(21,I="left")),1&t.$$.dirty[0]&&n(23,r=Array.isArray($.items)&&$.items||[]),1&t.$$.dirty[0]&&(n(11,i=x.getDerivedFromVars($.column_count)),y(),y=he(i,(t=>n(27,f=t)))),1&t.$$.dirty[0]&&(n(10,o=x.getDerivedFromVars($.content_alignment_vertical)),m(),m=he(o,(t=>n(25,h=t)))),1&t.$$.dirty[0]&&(n(9,a=x.getDerivedFromVars($.content_alignment_horizontal)),g(),g=he(a,(t=>n(24,d=t)))),134225920&t.$$.dirty[0]&&n(13,C=Oi(f,C)),8388610&t.$$.dirty[0]&&n(22,s=r.map((t=>{let e=t,n=_;return({templateContext:n,json:e}=x.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),4194304&t.$$.dirty[0]){let t=[];s.forEach((e=>{t.push(x.getDerivedFromVars({rowSpan:e.json.row_span,columnSpan:e.json.column_span,width:e.json.width,height:e.json.height}))})),n(4,k=pr(t,(t=>[...t]))),v(),v=he(k,(t=>n(26,p=t)))}if(72081416&t.$$.dirty[0]){const t={};let e=0,r=0;n(14,A=[]),n(15,V=[]),n(16,D=[]),n(17,j=[]),n(19,P=!1),n(5,E=s.map(((i,o)=>{var a,s,l,c;const u=p[o],d=Number(u.columnSpan)||1,h=Number(u.rowSpan)||1,f={x:e,y:r,colSpan:d,rowSpan:h},g="match_parent"===(null===(a=u.width)||void 0===a?void 0:a.type)?Number(u.width.weight||1)/d:0,m="match_parent"===(null===(s=u.height)||void 0===s?void 0:s.type)?Number(u.height.weight||1)/h:0,v=1===d&&"fixed"===(null===(l=u.width)||void 0===l?void 0:l.type)&&u.width.value?Number(u.width.value)/d:0,y=1===h&&"fixed"===(null===(c=u.height)||void 0===c?void 0:c.type)&&u.height.value?Number(u.height.value)/h:0;for(let i=e;i<e+d;++i)for(let e=r;e<r+h;++e)t[i+"_"+e]?n(19,P=!0):(t[i+"_"+e]=!0,(!A[i]||A[i]<g)&&n(14,A[i]=g,A),(!V[e]||V[e]<m)&&n(15,V[e]=m,V),(!D[i]||D[i]<v)&&n(16,D[i]=v,D),(!j[e]||j[e]<y)&&n(17,j[e]=y,j));do{++e,e>=C&&(e=0,++r)}while(t[e+"_"+r]);return Object.assign(Object.assign({},i),{layoutParams:{gridArea:f,fakeElement:(null==w?void 0:w.fakeElement)||!1}})}))),0!==e&&n(19,P=!0),P&&x.logError(ut(new Error('Mismatching "grid" rows/columns'))),n(18,F=r)}34603008&t.$$.dirty[0]&&n(20,S=Hi(h,S)),18874368&t.$$.dirty[0]&&n(21,I=Ui(d,I)),3145728&t.$$.dirty[0]&&n(8,l={valign:S,halign:I}),516096&t.$$.dirty[0]&&n(7,c={"grid-template-columns":ra(A,D,C),"grid-template-rows":ra(V,j,F)}),524288&t.$$.dirty[0]&&n(6,u=P)},[$,_,b,w,k,E,u,c,l,a,o,i,function(t){n(0,$=Object.assign(Object.assign({},$),{items:t.filter(Dr)}))},C,A,V,D,j,F,P,S,I,s,r,d,h,p,f]}const ua={gallery__scroller:"divkit-a4e39",gallery_scrollbar_none:"divkit-f49e7",gallery_orientation_horizontal:"divkit-c9be7",gallery_orientation_vertical:"divkit-a72d5","gallery_scroll-snap":"divkit-f606e","gallery__items-grid":"divkit-eb4a5",gallery__items:"divkit-af276",gallery__arrow:"divkit-b72d7","gallery__arrow-icon-path":"divkit-b4173"},da={arrow:"divkit-bf36b",arrow__icon:"divkit-a67bf",arrow_left:"divkit-e2a31",arrow_right:"divkit-c684b"};function ha(t){const e=[];let n=t[0],r=1;for(let i=1;i<=t.length;i++)t[i]!==n?(e.push(r>1?"repeat(".concat(r,", ").concat(n,")"):n),n=t[i],r=1):r++;return e.join(" ")}const{Boolean:pa}=Ae;function fa(t,e,n){const r=t.slice();return r[75]=e[n],r[76]=e,r[77]=n,r}function ga(t,e,n){const r=t.slice();return r[78]=e[n],r}function ma(t){let e,n;return e=new vc({props:{layoutParams:t[8],div:t[78].json,templateContext:t[78].templateContext,origJson:t[78].origJson}}),{c(){ir(e.$$.fragment)},l(t){or(e.$$.fragment,t)},m(t,r){ar(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.layoutParams=t[8]),262144&n[0]&&(r.div=t[78].json),262144&n[0]&&(r.templateContext=t[78].templateContext),262144&n[0]&&(r.origJson=t[78].origJson),e.$set(r)},i(t){n||(Wn(e.$$.fragment,t),n=!0)},o(t){qn(e.$$.fragment,t),n=!1},d(t){sr(e,t)}}}function va(t){let e,n,r,i,o,a=t[77],s=Yn(t[75]),l=[];for(let e=0;e<s.length;e+=1)l[e]=ma(ga(t,s,e));const c=t=>qn(l[t],1,1,(()=>{l[t]=null})),u=()=>t[63](e,a),d=()=>t[63](null,a);return{c(){e=Je("div");for(let t=0;t<l.length;t+=1)l[t].c();n=Le(),this.h()},l(t){e=en(t,"DIV",{class:!0,style:!0});var r=Ze(e);for(let t=0;t<l.length;t+=1)l[t].l(r);n=on(r),r.forEach(Me),this.h()},h(){We(e,"class",r=ua.gallery__items),We(e,"style",i=Er(t[16]))},m(t,r){Te(t,e,r);for(let t=0;t<l.length;t+=1)l[t]&&l[t].m(e,null);Ne(e,n),u(),o=!0},p(r,h){if(t=r,262400&h[0]){let r;for(s=Yn(t[75]),r=0;r<s.length;r+=1){const i=ga(t,s,r);l[r]?(l[r].p(i,h),Wn(l[r],1)):(l[r]=ma(i),l[r].c(),Wn(l[r],1),l[r].m(e,n))}for(Un(),r=s.length;r<l.length;r+=1)c(r);Hn()}(!o||65536&h[0]&&i!==(i=Er(t[16])))&&We(e,"style",i),a!==t[77]&&(d(),a=t[77],u())},i(t){if(!o){for(let t=0;t<s.length;t+=1)Wn(l[t]);o=!0}},o(t){l=l.filter(pa);for(let t=0;t<l.length;t+=1)qn(l[t]);o=!1},d(t){t&&Me(e),ze(l,t),d()}}}function ya(t){let e,n,r=t[12]&&t[9]&&$a(t),i=t[13]&&t[9]&&_a(t);return{c(){r&&r.c(),e=Le(),i&&i.c(),n=Ue()},l(t){r&&r.l(t),e=on(t),i&&i.l(t),n=Ue()},m(t,o){r&&r.m(t,o),Te(t,e,o),i&&i.m(t,o),Te(t,n,o)},p(t,o){t[12]&&t[9]?r?r.p(t,o):(r=$a(t),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),t[13]&&t[9]?i?i.p(t,o):(i=_a(t),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null)},d(t){t&&(Me(e),Me(n)),r&&r.d(t),i&&i.d(t)}}}function $a(t){let e,n,r,i,o=!t[30]&&function(t){let e,n,r,i;return{c(){e=Be("svg"),n=Be("path"),this.h()},l(t){e=nn(t,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var r=Ze(e);n=nn(r,"path",{class:!0,d:!0}),Ze(n).forEach(Me),r.forEach(Me),this.h()},h(){We(n,"class",r=ua["gallery__arrow-icon-path"]),We(n,"d","m10 16 8.3 8 1.03-1-4-6-.7-1 .7-1 4-6-1.03-1z"),We(e,"class",i=da.arrow__icon),We(e,"xmlns","http://www.w3.org/2000/svg"),We(e,"width","32"),We(e,"height","32"),We(e,"viewBox","0 0 32 32"),We(e,"fill","none")},m(t,r){Te(t,e,r),Ne(e,n)},d(t){t&&Me(e)}}}();return{c(){e=Je("div"),o&&o.c(),this.h()},l(t){e=en(t,"DIV",{class:!0});var n=Ze(e);o&&o.l(n),n.forEach(Me),this.h()},h(){We(e,"class",n=t[30]||"".concat(ua.gallery__arrow," ").concat(da.arrow," ").concat(da.arrow_left))},m(n,a){Te(n,e,a),o&&o.m(e,null),r||(i=He(e,"click",t[66]),r=!0)},p:ne,d(t){t&&Me(e),o&&o.d(),r=!1,i()}}}function _a(t){let e,n,r,i,o=!t[31]&&function(t){let e,n,r,i;return{c(){e=Be("svg"),n=Be("path"),this.h()},l(t){e=nn(t,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var r=Ze(e);n=nn(r,"path",{class:!0,d:!0}),Ze(n).forEach(Me),r.forEach(Me),this.h()},h(){We(n,"class",r=ua["gallery__arrow-icon-path"]),We(n,"d","M22 16l-8.3 8-1.03-1 4-6 .7-1-.7-1-4-6 1.03-1 8.3 8z"),We(e,"class",i=da.arrow__icon),We(e,"xmlns","http://www.w3.org/2000/svg"),We(e,"width","32"),We(e,"height","32"),We(e,"viewBox","0 0 32 32"),We(e,"fill","none")},m(t,r){Te(t,e,r),Ne(e,n)},d(t){t&&Me(e)}}}();return{c(){e=Je("div"),o&&o.c(),this.h()},l(t){e=en(t,"DIV",{class:!0});var n=Ze(e);o&&o.l(n),n.forEach(Me),this.h()},h(){We(e,"class",n=t[31]||"".concat(ua.gallery__arrow," ").concat(da.arrow," ").concat(da.arrow_right))},m(n,a){Te(n,e,a),o&&o.m(e,null),r||(i=He(e,"click",t[67]),r=!0)},p:ne,d(t){t&&Me(e),o&&o.d(),r=!1,i()}}}function ba(t){let e,n,r,i,o,a,s,l,c,u,d,h=Yn(t[18]),p=[];for(let e=0;e<h.length;e+=1)p[e]=va(fa(t,h,e));const f=t=>qn(p[t],1,1,(()=>{p[t]=null}));let g="horizontal"===t[6]&&ya(t);return{c(){e=Je("div"),n=Je("div");for(let t=0;t<p.length;t+=1)p[t].c();s=Le(),g&&g.c(),l=Ue(),this.h()},l(t){e=en(t,"DIV",{class:!0,style:!0});var r=Ze(e);n=en(r,"DIV",{class:!0,style:!0});var i=Ze(n);for(let t=0;t<p.length;t+=1)p[t].l(i);i.forEach(Me),r.forEach(Me),s=on(t),g&&g.l(t),l=Ue(),this.h()},h(){We(n,"class",r=ua["gallery__items-grid"]),We(n,"style",i=Er(t[17])),We(e,"class",o=ua.gallery__scroller+" "+(t[29]?br["root_restrict-scroll"]:"")),We(e,"style",a=Er(t[7]))},m(r,i){Te(r,e,i),Ne(e,n);for(let t=0;t<p.length;t+=1)p[t]&&p[t].m(n,null);t[64](n),t[65](e),Te(r,s,i),g&&g.m(r,i),Te(r,l,i),c=!0,u||(d=He(e,"scroll",(function(){le(t[9]?t[34]:null)&&(t[9]?t[34]:null).apply(this,arguments)})),u=!0)},p(r,s){if(t=r,329984&s[0]){let e;for(h=Yn(t[18]),e=0;e<h.length;e+=1){const r=fa(t,h,e);p[e]?(p[e].p(r,s),Wn(p[e],1)):(p[e]=va(r),p[e].c(),Wn(p[e],1),p[e].m(n,null))}for(Un(),e=h.length;e<p.length;e+=1)f(e);Hn()}(!c||131072&s[0]&&i!==(i=Er(t[17])))&&We(n,"style",i),(!c||536870912&s[0]&&o!==(o=ua.gallery__scroller+" "+(t[29]?br["root_restrict-scroll"]:"")))&&We(e,"class",o),(!c||128&s[0]&&a!==(a=Er(t[7])))&&We(e,"style",a),"horizontal"===t[6]?g?g.p(t,s):(g=ya(t),g.c(),g.m(l.parentNode,l)):g&&(g.d(1),g=null)},i(t){if(!c){for(let t=0;t<h.length;t+=1)Wn(p[t]);c=!0}},o(t){p=p.filter(pa);for(let t=0;t<p.length;t+=1)qn(p[t]);c=!1},d(n){n&&(Me(e),Me(s),Me(l)),ze(p,n),t[64](null),t[65](null),g&&g.d(n),u=!1,d()}}}function wa(t){let e,n,r,i;return e=new Ii({props:{cls:Jr("gallery",ua,t[15]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customPaddings:!0,customActions:"gallery",parentOf:t[10],replaceItems:t[32],$$slots:{default:[ba]},$$scope:{ctx:t}}}),{c(){ir(e.$$.fragment)},l(t){or(e.$$.fragment,t)},m(o,a){ar(e,o,a),n=!0,r||(i=He(window,"resize",(function(){le(t[9]?t[35]:null)&&(t[9]?t[35]:null).apply(this,arguments)})),r=!0)},p(n,r){t=n;const i={};32768&r[0]&&(i.cls=Jr("gallery",ua,t[15])),1&r[0]&&(i.json=t[0]),4&r[0]&&(i.origJson=t[2]),2&r[0]&&(i.templateContext=t[1]),8&r[0]&&(i.layoutParams=t[3]),1024&r[0]&&(i.parentOf=t[10]),537345008&r[0]|524288&r[2]&&(i.$$scope={dirty:r,ctx:t}),e.$set(i)},i(t){n||(Wn(e.$$.fragment,t),n=!0)},o(t){qn(e.$$.fragment,t),n=!1},d(t){sr(e,t),r=!1,i()}}}function xa(t,e,n){let r,i,o,a,s,l,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x,k,E,C,A,V,D,j,F,P,S=ne,I=ne,N=ne,O=ne,T=ne,M=ne,z=ne,J=ne,B=ne,R=ne,L=ne;t.$$.on_destroy.push((()=>S())),t.$$.on_destroy.push((()=>I())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>L()));let{json:U={}}=e,{templateContext:H}=e,{origJson:W}=e,{layoutParams:q}=e;const G=kn(wr);let K,Y,Z=[],X=!1,Q=!1,tt=null,et=!1;const nt=G.getCustomization("galleryLeftClass"),rt=G.getCustomization("galleryRightClass");let it,ot,at,st,lt,ct=1,ut="horizontal",dt="start",ht=8,pt="",ft=[],gt={},mt=!1,vt={},yt=0;const $t=G.isDesktop;function _t(){if(!K)return;const t=K.scrollLeft,e=K.scrollWidth,r=K.offsetWidth;n(12,X=t>2),n(13,Q=t+r<e-2)}pe(t,$t,(t=>n(62,F=t)));const bt=Gi(_t,50);function wt(t){K.scroll({left:K.scrollLeft+.75*K.offsetWidth*("right"===t?1:-1),behavior:"smooth"})}function xt(){let t=[],e=Z[0].children.length;for(let n=0;n<e;++n)for(let e=0;e<ct;++e){const r=Z[e].children[n];r&&t.push(r)}return t}function kt(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";const r="horizontal"===ut,i=r?"offsetLeft":"offsetTop",o=r?"left":"top",a=t[e];a&&K.scroll({[o]:Math.max(0,a[i]+.01-ht/2),behavior:n})}function Et(t){const e=xt(),n=K.getBoundingClientRect(),r=e.findIndex((t=>function(t,e){return"horizontal"===ut?e.left>=t.left&&e.right<=t.right:e.top>=t.top&&e.bottom<=t.bottom}(n,t.getBoundingClientRect())));if(-1!==r)return r;const i=e.map((t=>function(t,e){return"horizontal"===ut?e.right>t.left&&t.right>e.left:e.bottom>t.top&&t.bottom>e.top}(n,t.getBoundingClientRect()))),o=i.findIndex(Boolean);return-1!==o?"prev"===t&&2===i.filter(Boolean).length?o+1:o:"prev"===t?1:e.length-2}return bn((()=>{n(38,et=!0),_t(),yt&&kt(xt(),yt,"auto")})),wn((()=>{n(38,et=!1),it&&!(null==q?void 0:q.fakeElement)&&(G.unregisterInstance(it),n(39,it=void 0))})),t.$$set=t=>{"json"in t&&n(0,U=t.json),"templateContext"in t&&n(1,H=t.templateContext),"origJson"in t&&n(2,W=t.origJson),"layoutParams"in t&&n(3,q=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&U&&(n(40,ct=1),n(6,ut="horizontal"),n(41,dt="start"),n(43,ht=8),n(46,pt="")),1&t.$$.dirty[0]&&n(10,r=Array.isArray(U.items)&&U.items||[]),1&t.$$.dirty[0]&&(n(28,i=G.getDerivedFromVars(U.column_count)),R(),R=he(i,(t=>n(61,j=t)))),1&t.$$.dirty[0]&&(n(27,o=G.getDerivedFromVars(U.orientation)),B(),B=he(o,(t=>n(60,D=t)))),1&t.$$.dirty[0]&&(n(26,a=G.getDerivedFromVars(U.cross_content_alignment)),J(),J=he(a,(t=>n(59,V=t)))),1&t.$$.dirty[0]&&(n(25,s=G.getDerivedFromVars(U.item_spacing)),z(),z=he(s,(t=>n(58,A=t)))),1&t.$$.dirty[0]&&(n(24,l=G.getDerivedFromVars(U.cross_spacing)),M(),M=he(l,(t=>n(57,C=t)))),1&t.$$.dirty[0]&&(n(23,c=G.getDerivedFromVars(U.paddings)),T(),T=he(c,(t=>n(56,E=t)))),1&t.$$.dirty[0]&&(n(22,u=G.getDerivedFromVars(U.scroll_mode)),N(),N=he(u,(t=>n(54,x=t)))),1&t.$$.dirty[0]&&(n(21,d=G.getDerivedFromVars(U.restrict_parent_scroll)),L(),L=he(d,(t=>n(29,P=t)))),1&t.$$.dirty[0]&&(n(20,h=G.getDerivedFromVars(U.scrollbar)),I(),I=he(h,(t=>n(53,w=t)))),1&t.$$.dirty[0]&&(n(19,p=G.getDerivedFromVars(U.default_item)),S(),S=he(p,(t=>n(52,b=t)))),1026&t.$$.dirty[0]&&n(51,f=r.map((t=>{let e=t,n=H;return({templateContext:n,json:e}=G.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),128&t.$$.dirty[1]|1&t.$$.dirty[2]&&n(9,g=F&&et),544&t.$$.dirty[0]|64&t.$$.dirty[1]&&(g?"undefined"!=typeof ResizeObserver&&(n(37,tt=new ResizeObserver((()=>{bt()}))),tt.observe(Y)):tt&&(tt.disconnect(),n(37,tt=null))),1073742336&t.$$.dirty[1]&&n(40,ct=Oi(j,ct)),1049088&t.$$.dirty[1]&&n(18,m=function(t,e){let n=0,r=[];for(let i=0;i<t.length;++i)r[n]||(r[n]=[]),r[n].push(t[i]),++n>=e&&(n=0);return r}(f,ct)),64&t.$$.dirty[0]|536870912&t.$$.dirty[1]&&n(6,ut=To(D,ut)),268436480&t.$$.dirty[1]&&n(41,dt=function(t,e){return"start"===t||"center"===t||"end"===t?t:e}(V,dt)),134221824&t.$$.dirty[1]&&(n(43,ht=qr(A,ht)),n(42,ot=Cr(ht))),67129344&t.$$.dirty[1]&&(n(45,st=qr(C,ht)),n(44,at=Cr(st))),33587200&t.$$.dirty[1]&&n(46,pt=Wr(E,pt)),64&t.$$.dirty[0]&&n(50,v="horizontal"===ut?"grid-template-columns":"grid-template-rows"),64&t.$$.dirty[0]|1048576&t.$$.dirty[1]){let t=[];f.forEach((e=>{const n="horizontal"===ut?"width":"height";t.push(G.getDerivedFromVars(e.json[n]))})),n(14,lt=pr(t,(t=>t))),O(),O=he(lt,(t=>n(55,k=t)))}if(64&t.$$.dirty[0]|16843264&t.$$.dirty[1]&&(n(47,ft=[]),ct>1?ft.push("auto"):k.forEach((t=>{!t&&"horizontal"===ut||"match_parent"===(null==t?void 0:t.type)?ft.push("100%"):ft.push("max-content")}))),456&t.$$.dirty[0]|8394240&t.$$.dirty[1]){const t={};let e={};n(48,mt=!1),(null==q?void 0:q.fakeElement)&&(e.fakeElement=!0),"horizontal"===ut?e.parentVAlign=dt:e.parentHAlign=dt,"paging"===x&&(n(48,mt=!0),e.scrollSnap="start",t["horizontal"===ut?"scroll-padding-left":"scroll-padding-top"]=Cr(ht/2)),1===ct&&(e.parentLayoutOrientation=ut),n(7,gt=Yr(t,gt)),n(8,vt=Yr(e,vt))}40960&t.$$.dirty[1]&&n(17,y={padding:pt,"grid-gap":at}),591872&t.$$.dirty[1]&&n(16,$={"grid-gap":ot,[v]:ha(ft)}),64&t.$$.dirty[0]|4325376&t.$$.dirty[1]&&n(15,_={orientation:ut,"scroll-snap":mt,scrollbar:"auto"===w?"auto":"none"}),2359296&t.$$.dirty[1]&&n(49,yt=qr(b,yt)),1&t.$$.dirty[0]&&U&&bt(),89&t.$$.dirty[0]|256&t.$$.dirty[1]&&U&&(it&&(G.unregisterInstance(it),n(39,it=void 0)),U.id&&!(null==q?void 0:q.fakeElement)&&(n(39,it=U.id),G.registerInstance(U.id,{setCurrentItem(t){const e=xt();if(t<0||t>e.length-1)throw new Error('Item is out of range in "set-current-item" action');kt(e,t)},setPreviousItem(t){const e=Et("prev"),n=xt();let r=e-1;r<0&&(r="ring"===t?n.length-1:e),kt(n,r)},setNextItem(t){const e="horizontal"===ut?K.scrollLeft+K.offsetWidth===K.scrollWidth:K.scrollTop+K.offsetHeight===K.scrollHeight,n=xt();if(e&&"ring"===t)return void kt(n,0);const r=Et("next");let i=r+1;i>n.length-1&&(i="ring"===t?0:r),kt(n,i)}})))},[U,H,W,q,K,Y,ut,gt,vt,g,r,Z,X,Q,lt,_,$,y,m,p,h,d,u,c,l,s,a,o,i,P,nt,rt,function(t){n(0,U=Object.assign(Object.assign({},U),{items:t.filter(Dr)}))},$t,_t,bt,wt,tt,et,it,ct,dt,ot,ht,at,st,pt,ft,mt,yt,v,f,b,w,x,k,E,C,A,V,D,j,F,function(t,e){An[t?"unshift":"push"]((()=>{Z[e]=t,n(11,Z)}))},function(t){An[t?"unshift":"push"]((()=>{Y=t,n(5,Y)}))},function(t){An[t?"unshift":"push"]((()=>{K=t,n(4,K)}))},()=>wt("left"),()=>wt("right")]}const ka={tabs:"divkit-e0df5",tabs__list:"divkit-ea19b",tabs__item:"divkit-c25c7",tabs__item_selected:"divkit-d560a",tabs__item_actionable:"divkit-dfda0",tabs__panels:"divkit-f5dc0",tabs__swiper:"divkit-eb42c",tabs__swiper_animated:"divkit-b9f18",tabs__swiper_inited:"divkit-fa574",tabs__panel:"divkit-cc9fb",tabs__panel_visible:"divkit-e7306",tabs__separator:"divkit-b85bf"},Ea=37,Ca=39,Aa=36,Va=35,{Boolean:Da}=Ae;function ja(t,e,n){const r=t.slice();r[91]=e[n];const i=r[91].index;return r[92]=i,r}function Fa(t,e,n){const r=t.slice();r[91]=e[n];const i=r[91].index;r[92]=i;const o=r[92]===r[17];return r[95]=o,r}function Pa(t){let e,n;return e=new Ii({props:{cls:Jr("tabs",ka,t[47]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customActions:"tabs",parentOf:t[43],parentOfSimpleMode:!0,replaceItems:t[48],$$slots:{default:[Ma]},$$scope:{ctx:t}}}),{c(){ir(e.$$.fragment)},l(t){or(e.$$.fragment,t)},m(t,r){ar(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),4096&n[1]&&(r.parentOf=t[43]),2147483626&n[0]|8199&n[1]|32&n[3]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Wn(e.$$.fragment,t),n=!0)},o(t){qn(e.$$.fragment,t),n=!1},d(t){sr(e,t)}}}function Sa(t){let e,n,r=t[91].title+"";return{c(){e=Re(r),n=Le()},l(t){e=rn(t,r),n=on(t)},m(t,r){Te(t,e,r),Te(t,n,r)},p(t,n){524288&n[0]&&r!==(r=t[91].title+"")&&sn(e,r)},d(t){t&&(Me(e),Me(n))}}}function Ia(t){var e,n,r;let i,o;function a(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t[68](t[92],...n)}return i=new hi({props:{cls:Jr("tabs__item",ka,{selected:t[95],actionable:Boolean(t[91].title_click_action)}),actions:!t[91].title_click_action||null!==(e=t[3])&&void 0!==e&&e.fakeElement?[]:[t[91].title_click_action].filter(ni),attrs:{id:"".concat(t[45],"-tab-").concat(t[92]),"aria-controls":"".concat(t[45],"-panel-").concat(t[92]),role:"tab",tabindex:!t[95]||null!==(n=t[3])&&void 0!==n&&n.fakeElement?"-1":t[91].title_click_action?void 0:"0","aria-selected":t[95]?"true":"false"},customAction:null!==(r=t[3])&&void 0!==r&&r.fakeElement?null:a,$$slots:{default:[Sa]},$$scope:{ctx:t}}}),{c(){ir(i.$$.fragment)},l(t){or(i.$$.fragment,t)},m(t,e){ar(i,t,e),o=!0},p(e,n){var r,o,s;t=e;const l={};655360&n[0]&&(l.cls=Jr("tabs__item",ka,{selected:t[95],actionable:Boolean(t[91].title_click_action)})),524296&n[0]&&(l.actions=!t[91].title_click_action||null!==(r=t[3])&&void 0!==r&&r.fakeElement?[]:[t[91].title_click_action].filter(ni)),655368&n[0]&&(l.attrs={id:"".concat(t[45],"-tab-").concat(t[92]),"aria-controls":"".concat(t[45],"-panel-").concat(t[92]),role:"tab",tabindex:!t[95]||null!==(o=t[3])&&void 0!==o&&o.fakeElement?"-1":t[91].title_click_action?void 0:"0","aria-selected":t[95]?"true":"false"}),524296&n[0]&&(l.customAction=null!==(s=t[3])&&void 0!==s&&s.fakeElement?null:a),524288&n[0]|32&n[3]&&(l.$$scope={dirty:n,ctx:t}),i.$set(l)},i(t){o||(Wn(i.$$.fragment,t),o=!0)},o(t){qn(i.$$.fragment,t),o=!1},d(t){sr(i,t)}}}function Na(t){let e,n,r;return{c(){e=Je("div"),this.h()},l(t){e=en(t,"DIV",{class:!0,style:!0}),Ze(e).forEach(Me),this.h()},h(){We(e,"class",n=ka.tabs__separator),We(e,"style",r=Er(t[33]))},m(t,n){Te(t,e,n)},p(t,n){4&n[1]&&r!==(r=Er(t[33]))&&We(e,"style",r)},d(t){t&&Me(e)}}}function Oa(t){let e,n;return e=new vc({props:{div:t[18][t[92]].div,templateContext:t[1],layoutParams:t[5]}}),{c(){ir(e.$$.fragment)},l(t){or(e.$$.fragment,t)},m(t,r){ar(e,t,r),n=!0},p(t,n){const r={};786432&n[0]&&(r.div=t[18][t[92]].div),2&n[0]&&(r.templateContext=t[1]),32&n[0]&&(r.layoutParams=t[5]),e.$set(r)},i(t){n||(Wn(e.$$.fragment,t),n=!0)},o(t){qn(e.$$.fragment,t),n=!1},d(t){sr(e,t)}}}function Ta(t){let e,n,r,i,o,a,s=t[30][t[92]]&&Oa(t);return{c(){e=Je("div"),s&&s.c(),n=Le(),this.h()},l(t){e=en(t,"DIV",{class:!0,role:!0,id:!0,"aria-labelledby":!0,style:!0});var r=Ze(e);s&&s.l(r),n=on(r),r.forEach(Me),this.h()},h(){We(e,"class",r=Jr("tabs__panel",ka,{visible:t[31][t[92]]})),We(e,"role","tabpanel"),We(e,"id",i=t[45]+"-panel-"+t[92]),We(e,"aria-labelledby",o=t[45]+"-tab-"+t[92]),cn(e,"left",100*t[92]+"%")},m(t,r){Te(t,e,r),s&&s.m(e,null),Ne(e,n),a=!0},p(t,l){t[30][t[92]]?s?(s.p(t,l),1074266112&l[0]&&Wn(s,1)):(s=Oa(t),s.c(),Wn(s,1),s.m(e,n)):s&&(Un(),qn(s,1,1,(()=>{s=null})),Hn()),(!a||524288&l[0]|1&l[1]&&r!==(r=Jr("tabs__panel",ka,{visible:t[31][t[92]]})))&&We(e,"class",r),(!a||524288&l[0]&&i!==(i=t[45]+"-panel-"+t[92]))&&We(e,"id",i),(!a||524288&l[0]&&o!==(o=t[45]+"-tab-"+t[92]))&&We(e,"aria-labelledby",o),(!a||524288&l[0])&&cn(e,"left",100*t[92]+"%")},i(t){a||(Wn(s),a=!0)},o(t){qn(s),a=!1},d(t){t&&Me(e),s&&s.d()}}}function Ma(t){let e,n,r,i,o,a,s,l,c,u,d,h=Yn(t[19]),p=[];for(let e=0;e<h.length;e+=1)p[e]=Ia(Fa(t,h,e));const f=t=>qn(p[t],1,1,(()=>{p[t]=null}));let g=t[20]&&Na(t),m=Yn(t[19]),v=[];for(let e=0;e<m.length;e+=1)v[e]=Ta(ja(t,m,e));const y=t=>qn(v[t],1,1,(()=>{v[t]=null}));return{c(){e=Je("div");for(let t=0;t<p.length;t+=1)p[t].c();r=Le(),g&&g.c(),i=Le(),o=Je("div"),a=Je("div");for(let t=0;t<v.length;t+=1)v[t].c();this.h()},l(t){e=en(t,"DIV",{class:!0,role:!0});var n=Ze(e);for(let t=0;t<p.length;t+=1)p[t].l(n);n.forEach(Me),r=on(t),g&&g.l(t),i=on(t),o=en(t,"DIV",{class:!0});var s=Ze(o);a=en(s,"DIV",{class:!0});var l=Ze(a);for(let t=0;t<v.length;t+=1)v[t].l(l);l.forEach(Me),s.forEach(Me),this.h()},h(){We(e,"class",n=ka.tabs__list+" "+(t[44]?br["root_restrict-scroll"]:"")),We(e,"role","tablist"),cn(e,"--divkit-tabs-title-padding",t[16]?Lr(t[16]):""),cn(e,"--divkit-tabs-font-size",Cr(t[6])),cn(e,"--divkit-tabs-paddings",t[7]),cn(e,"--divkit-tabs-line-height",t[24]),cn(e,"--divkit-tabs-letter-spacing",t[25]),cn(e,"--divkit-tabs-active-font-weight",t[9]||""),cn(e,"--divkit-tabs-inactive-font-weight",t[10]||""),cn(e,"--divkit-tabs-active-font-family",t[26]||""),cn(e,"--divkit-tabs-inactive-font-family",t[27]||""),cn(e,"--divkit-tabs-active-text-color",t[11]),cn(e,"--divkit-tabs-inactive-text-color",t[12]),cn(e,"--divkit-tabs-active-background-color",t[13]),cn(e,"--divkit-tabs-inactive-background-color",t[14]),cn(e,"--divkit-tabs-border-radius",t[8]),cn(e,"--divkit-tabs-items-spacing",t[15]?Ar(t[15]):""),We(a,"class",s=Jr("tabs__swiper",ka,{inited:t[28],animated:t[29]})),We(o,"class",l=ka.tabs__panels+" "+(t[44]?br["root_restrict-scroll"]:""))},m(n,s){Te(n,e,s);for(let t=0;t<p.length;t+=1)p[t]&&p[t].m(e,null);t[69](e),Te(n,r,s),g&&g.m(n,s),Te(n,i,s),Te(n,o,s),Ne(o,a);for(let t=0;t<v.length;t+=1)v[t]&&v[t].m(a,null);t[70](a),t[71](o),c=!0,u||(d=[He(e,"keydown",t[50]),He(a,"touchstart",(function(){le(t[32]?t[51]:void 0)&&(t[32]?t[51]:void 0).apply(this,arguments)})),He(a,"touchmove",(function(){le(t[32]?t[52]:void 0)&&(t[32]?t[52]:void 0).apply(this,arguments)})),He(a,"touchend",(function(){le(t[32]?t[53]:void 0)&&(t[32]?t[53]:void 0).apply(this,arguments)})),He(a,"touchcancel",(function(){le(t[32]?t[53]:void 0)&&(t[32]?t[53]:void 0).apply(this,arguments)}))],u=!0)},p(r,u){if(t=r,655368&u[0]|278528&u[1]){let n;for(h=Yn(t[19]),n=0;n<h.length;n+=1){const r=Fa(t,h,n);p[n]?(p[n].p(r,u),Wn(p[n],1)):(p[n]=Ia(r),p[n].c(),Wn(p[n],1),p[n].m(e,null))}for(Un(),n=h.length;n<p.length;n+=1)f(n);Hn()}if((!c||8192&u[1]&&n!==(n=ka.tabs__list+" "+(t[44]?br["root_restrict-scroll"]:"")))&&We(e,"class",n),65536&u[0]&&cn(e,"--divkit-tabs-title-padding",t[16]?Lr(t[16]):""),64&u[0]&&cn(e,"--divkit-tabs-font-size",Cr(t[6])),128&u[0]&&cn(e,"--divkit-tabs-paddings",t[7]),16777216&u[0]&&cn(e,"--divkit-tabs-line-height",t[24]),33554432&u[0]&&cn(e,"--divkit-tabs-letter-spacing",t[25]),512&u[0]&&cn(e,"--divkit-tabs-active-font-weight",t[9]||""),1024&u[0]&&cn(e,"--divkit-tabs-inactive-font-weight",t[10]||""),67108864&u[0]&&cn(e,"--divkit-tabs-active-font-family",t[26]||""),134217728&u[0]&&cn(e,"--divkit-tabs-inactive-font-family",t[27]||""),2048&u[0]&&cn(e,"--divkit-tabs-active-text-color",t[11]),4096&u[0]&&cn(e,"--divkit-tabs-inactive-text-color",t[12]),8192&u[0]&&cn(e,"--divkit-tabs-active-background-color",t[13]),16384&u[0]&&cn(e,"--divkit-tabs-inactive-background-color",t[14]),256&u[0]&&cn(e,"--divkit-tabs-border-radius",t[8]),32768&u[0]&&cn(e,"--divkit-tabs-items-spacing",t[15]?Ar(t[15]):""),t[20]?g?g.p(t,u):(g=Na(t),g.c(),g.m(i.parentNode,i)):g&&(g.d(1),g=null),1074528290&u[0]|16385&u[1]){let e;for(m=Yn(t[19]),e=0;e<m.length;e+=1){const n=ja(t,m,e);v[e]?(v[e].p(n,u),Wn(v[e],1)):(v[e]=Ta(n),v[e].c(),Wn(v[e],1),v[e].m(a,null))}for(Un(),e=m.length;e<v.length;e+=1)y(e);Hn()}(!c||805306368&u[0]&&s!==(s=Jr("tabs__swiper",ka,{inited:t[28],animated:t[29]})))&&We(a,"class",s),(!c||8192&u[1]&&l!==(l=ka.tabs__panels+" "+(t[44]?br["root_restrict-scroll"]:"")))&&We(o,"class",l)},i(t){if(!c){for(let t=0;t<h.length;t+=1)Wn(p[t]);for(let t=0;t<m.length;t+=1)Wn(v[t]);c=!0}},o(t){p=p.filter(Da);for(let t=0;t<p.length;t+=1)qn(p[t]);v=v.filter(Da);for(let t=0;t<v.length;t+=1)qn(v[t]);c=!1},d(n){n&&(Me(e),Me(r),Me(i),Me(o)),ze(p,n),t[69](null),g&&g.d(n),ze(v,n),t[70](null),t[71](null),u=!1,se(d)}}}function za(t){let e,n,r=!t[4]&&Pa(t);return{c(){r&&r.c(),e=Ue()},l(t){r&&r.l(t),e=Ue()},m(t,i){r&&r.m(t,i),Te(t,e,i),n=!0},p(t,n){t[4]?r&&(Un(),qn(r,1,1,(()=>{r=null})),Hn()):r?(r.p(t,n),16&n[0]&&Wn(r,1)):(r=Pa(t),r.c(),Wn(r,1),r.m(e.parentNode,e))},i(t){n||(Wn(r),n=!0)},o(t){qn(r),n=!1},d(t){t&&Me(e),r&&r.d(t)}}}function Ja(t,e,n){let r,i,o,a,s,l,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x,E,C,A,V,D,j=ne,F=ne,P=ne,S=ne,I=ne,N=ne,O=ne,T=ne,M=ne;var z,J;t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>S())),t.$$.on_destroy.push((()=>I())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>M()));let{json:B={}}=e,{templateContext:R}=e,{origJson:L}=e,{layoutParams:U}=e;const H=kn(wr),W=H.genId("tabs");let q,G=!1,K=hr([]);pe(t,K,(t=>n(19,$=t)));let Y,Z,X,Q,tt,et,nt,rt,it,ot={},at=12,st="",lt="",ct="",dt="",ht="",pt="",ft="",gt="",mt="",vt="",yt=0,$t="",_t="",bt=null,wt=!1,xt=!1,kt=[],Et=[],Ct=null,At=null,Vt=null,Dt=!1,jt=!1;async function Ft(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(et=g,n(17,g=t),Tt(),n(29,xt=!0),It(100*-g),Nt(),async function(){await Sn();const t=document.getElementById("".concat(W,"-panel-").concat(g));t&&n(22,Z.style.height=Cr(t.offsetHeight),Z)}(),Ot(),it=-g*Z.clientWidth,e){await Sn();const t=Y.querySelector(".".concat(ka.tabs__item_selected));t&&t.focus()}}function Pt(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=null==$?void 0:$.length;if(!n)return;const r=$.map((t=>t.index));let i=r.indexOf(g)+t;i>=n?i=0:i<0&&(i=n-1),Ft(r[i],e)}function St(t,e){return g===e||(Ft(e),!1)}async function It(t){await Sn(),n(23,X.style.transform="translate3d(".concat(t,"%,0,0)"),X)}function Nt(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const e=t?Math.max(0,g-1):Math.min(g,null!=et?et:g),i=t?Math.min(r.length-1,g+1):Math.max(g,null!=et?et:g);n(30,kt=kt.map(((t,n)=>t||n>=e&&n<=i))),n(31,Et=Et.map(((t,n)=>n>=e&&n<=i)))}function Ot(){Ct&&clearTimeout(Ct),Ct=window.setTimeout((()=>{n(31,Et=r.map(((t,e)=>e===g)))}),400)}function Tt(){wt||(n(28,wt=!0),n(22,Z.style.height=Cr(Z.clientHeight),Z),n(23,X.style.transform="translate3d(".concat(100*-(null!=et?et:g),"%,0,0)"),X))}return wn((()=>{q&&(H.unregisterInstance(q),n(56,q=void 0))})),t.$$set=t=>{"json"in t&&n(0,B=t.json),"templateContext"in t&&n(1,R=t.templateContext),"origJson"in t&&n(2,L=t.origJson),"layoutParams"in t&&n(3,U=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&B&&(n(6,at=12),n(7,st=""),n(8,dt=""),n(9,Q=void 0),n(26,ht=""),n(10,tt=void 0),n(27,pt=""),n(11,ft=""),n(12,gt=""),n(13,mt=""),n(14,vt=""),n(15,yt=0),n(57,$t=""),n(58,_t=""),n(16,bt=null)),1&t.$$.dirty[0]&&n(18,r=B.items||[]),262144&t.$$.dirty[0]&&n(43,i=r.map((t=>t.div))),1&t.$$.dirty[0]&&(n(42,o=H.getDerivedFromVars(B.width)),T(),T=he(o,(t=>n(67,V=t)))),1&t.$$.dirty[0]&&(n(41,a=H.getDerivedFromVars(B.height)),O(),O=he(a,(t=>n(66,A=t)))),1&t.$$.dirty[0]&&n(60,s=H.getJsonWithVars(B.selected_tab)),1&t.$$.dirty[0]&&(n(40,l=H.getDerivedFromVars(B.tab_title_style)),N(),N=he(l,(t=>n(65,C=t)))),1&t.$$.dirty[0]&&(n(39,c=H.getDerivedFromVars(B.has_separator)),I(),I=he(c,(t=>n(20,E=t)))),1&t.$$.dirty[0]&&(n(38,u=H.getDerivedFromVars(B.separator_color)),S(),S=he(u,(t=>n(64,x=t)))),1&t.$$.dirty[0]&&(n(37,d=H.getDerivedFromVars(B.separator_paddings)),P(),P=he(d,(t=>n(63,w=t)))),1&t.$$.dirty[0]&&(n(36,h=H.getDerivedFromVars(B.switch_tabs_by_content_swipe_enabled)),F(),F=he(h,(t=>n(62,b=t)))),1&t.$$.dirty[0]&&(n(35,p=H.getDerivedFromVars(B.restrict_parent_scroll)),M(),M=he(p,(t=>n(44,D=t)))),1&t.$$.dirty[0]&&(n(34,f=H.getDerivedFromVars(B.title_paddings)),j(),j=he(f,(t=>n(61,_=t)))),536870912&t.$$.dirty[1]&&n(17,g=s&&Number(s)||0),262144&t.$$.dirty[0])if(Array.isArray(r)&&r.length){let t=[];r.forEach(((e,n)=>{const r=H.getJsonWithVars({index:n,title:e.title,title_click_action:e.title_click_action});r.title&&"string"==typeof r.title?t.push(r):H.logError(ut(new Error("Incorrect title for the tab"),{additional:{index:n}}))})),K.set(t)}else K.set([]);if(524288&t.$$.dirty[0]&&((null==$?void 0:$.length)?n(4,G=!1):(n(4,G=!0),H.logError(ut(new Error('Incorrect or empty "items" prop for div "tabs"'))))),40&t.$$.dirty[0]|48&t.$$.dirty[2]){let t={};(null==U?void 0:U.fakeElement)&&(t.fakeElement=!0),"wrap_content"===(null==V?void 0:V.type)&&(t.parentHorizontalWrapContent=!0),A&&"wrap_content"!==A.type||(t.parentVerticalWrapContent=!0),n(5,ot=Yr(t,ot))}if(393233&t.$$.dirty[0]&&!G&&(g<0||g>=r.length)&&(H.logError(ut(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:B.selected_tab,length:r.length}})),n(17,g=g<0?0:r.length-1)),655377&t.$$.dirty[0]|8388608&t.$$.dirty[1]&&(G||$.some((t=>g===t.index))||(H.logError(ut(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:B.selected_tab}})),n(17,g=(null===n(54,z=$[0])||void 0===z?void 0:z.index)||0))),8&t.$$.dirty[2]&&n(59,m=C||{}),64&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&n(6,at=Oi(m.font_size,at)),192&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&(m.font_size||m.paddings)){const t=m.paddings||{top:6,right:8,bottom:6,left:8},e={top:(Number(t.top)||0)/at*10,right:(Number(t.right)||0)/at*10,bottom:(Number(t.bottom)||0)/at*10,left:(Number(t.left)||0)/at*10};n(7,st=Wr(e,st))}if(64&t.$$.dirty[0]|268435456&t.$$.dirty[1]){const t=m.line_height;void 0!==t&&fi(t)&&n(24,lt=Cr(t/at*10))}if(64&t.$$.dirty[0]|268435456&t.$$.dirty[1]){const t=m.letter_spacing;void 0!==t&&Hr(t)&&n(25,ct=Cr(t/at*10))}if(320&t.$$.dirty[0]|285212672&t.$$.dirty[1]&&(m.corner_radius||m.corners_radius||m.font_size)){const t=null!==n(55,J=m.corner_radius)&&void 0!==J?J:1e3;m.corners_radius?n(8,dt=function(t,e,n,r){const i=[t["top-left"],t["top-right"],t["bottom-right"],t["bottom-left"]];for(let t=0;t<i.length;++t)if(i[t]&&!Hr(i[t]))return r;return ei(t,e,n)}(m.corners_radius,t,at,dt)):Hr(t)&&n(8,dt=Cr(t/at*10))}512&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&(n(9,Q=Mi(m.active_font_weight||m.font_weight,Q)),m.font_family&&"string"==typeof m.font_family?n(26,ht=H.typefaceProvider(m.font_family,{fontWeight:Q||400})):n(26,ht="")),1024&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&(n(10,tt=Mi(m.inactive_font_weight||m.font_weight,tt)),m.font_family&&"string"==typeof m.font_family?n(27,pt=H.typefaceProvider(m.font_family,{fontWeight:tt||400})):n(27,pt="")),2048&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&n(11,ft=k(m.active_text_color,1,ft)),4096&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&n(12,gt=k(m.inactive_text_color,1,gt)),8192&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&n(13,mt=k(m.active_background_color,1,mt)),16384&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&n(14,vt=k(m.inactive_background_color,1,vt)),32768&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&n(15,yt=qr(m.item_spacing,yt)),1048576&t.$$.dirty[0]|201326592&t.$$.dirty[1]|6&t.$$.dirty[2]&&E&&(x&&n(57,$t=k(x,1,$t)),w&&n(58,_t=Wr(w,_t))),201326592&t.$$.dirty[1]&&n(33,v={background:$t,margin:_t}),1&t.$$.dirty[2]&&n(32,y=void 0===b||Boolean(b)),65536&t.$$.dirty[0]|1073741824&t.$$.dirty[1]&&n(16,bt=ti(_||void 0,bt)),262144&t.$$.dirty[0]&&(G||(n(30,kt=r.map(((t,e)=>e===g))),n(31,Et=r.map(((t,e)=>e===g))))),393241&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&B&&(q&&(H.unregisterInstance(q),n(56,q=void 0)),!B.id||G||(null==U?void 0:U.fakeElement)||(n(56,q=B.id),H.registerInstance(B.id,{setCurrentItem(t){if(t<0||t>r.length-1)throw new Error('Item is out of range in "set-current-item" action');Ft(t)},setPreviousItem(t){let e=g-1;e<0&&(e="ring"===t?r.length-1:g),Ft(e)},setNextItem(t){let e=g+1;e>r.length-1&&(e="ring"===t?0:g),Ft(e)}})))},[B,R,L,U,G,ot,at,st,dt,Q,tt,ft,gt,mt,vt,yt,bt,g,r,$,E,Y,Z,X,lt,ct,ht,pt,wt,xt,kt,Et,y,v,f,p,h,d,u,c,l,a,o,i,D,W,K,{},function(t){B.items&&n(0,B=Object.assign(Object.assign({},B),{items:B.items.map(((e,n)=>Object.assign(Object.assign({},e),{div:t[n]})))}))},St,function(t){if(!(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)&&r){if(t.which===Ea)Pt(-1,!0);else if(t.which===Ca)Pt(1,!0);else if(t.which===Aa)Ft(0,!0);else{if(t.which!==Va)return;Ft(r.length-1,!0)}t.preventDefault()}},function(t){var e;const i=t.target,o=null===(e=null==i?void 0:i.closest)||void 0===e?void 0:e.call(i,".".concat(br["root_restrict-scroll"]));r.length<2||t.touches.length>1||o&&o!==Z||(Dt=!1,jt=!1,At=si(t),Vt=null,nt=Date.now(),rt=it||-g*Z.clientWidth,n(29,xt=!1),Ct&&clearTimeout(Ct))},function(t){const e=si(t);if(!At||Vt&&Vt.x===e.x&&Vt.y===e.y)return;Vt=e;const n=Z.clientWidth;if(Dt){it=e.x-At.x+rt;const t=n*r.length;if(it>0)it=it*n/(it+3*n);else if(-it+n>t){let e=-it+n-t;e=e*n/(e+3*n),it=n-t-e}It(100*it/n)}else Math.abs(e.y-At.y)>10?jt=!0:!jt&&Math.abs(e.x-At.x)>8&&(Tt(),Dt=!0,At=e,It(100*-g),Nt(!0));Dt&&t.cancelable&&t.preventDefault()},function(){jt=!1,At=null;let t=g;if(!Dt)return;Dt=!1;const e=Math.min(512,Z.clientWidth);Math.abs(rt-it)>e/4*Math.min(1,(Date.now()-nt)/750)&&(t+=rt>it?1:-1),t>=r.length?t=r.length-1:t<0&&(t=0),t===g?(it=-t*e,It(100*-t),Ot()):Ft(t)},z,J,q,$t,_t,m,s,_,b,w,x,C,A,V,(t,e)=>St(0,t),function(t){An[t?"unshift":"push"]((()=>{Y=t,n(21,Y)}))},function(t){An[t?"unshift":"push"]((()=>{X=t,n(23,X)}))},function(t){An[t?"unshift":"push"]((()=>{Z=t,n(22,Z)}))}]}const Ba={state:"divkit-b8efc",state__animations:"divkit-adaae","state__animation-child":"divkit-eb860","state__animation-child-inner":"divkit-e08c6"};function Ra(t){return t<.5?4*t*t*t:.5*Math.pow(2*t-2,3)+1}function La(t){return t*t*t}function Ua(t){const e=t-1;return e*e*e+1}function Ha(t){return e=>{if(e<=0)return 0;if(e>=1)return 1;const n=e*t.length,r=Math.floor(n),i=n-r;return t[r]*i+t[r+1]*(1-i)}}const Wa=Ha([.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]),qa=Ha([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]),Ga={linear:re,ease:Wa,ease_in:La,ease_out:Ua,ease_in_out:Ra,spring:qa},Ka=200,Ya=0,Za=0,Xa=0;function Qa(t){return Math.max(...t.map((t=>(Number(t.duration)||Ka)+(Number(t.start_delay)||Ya))))}function ts(t,e){let{transitions:n,elementBbox:r,rootBbox:i,direction:o,maxDuration:a,alpha:s}=e;const l=null!=s?s:1;return{duration:ii()?0:a,css:t=>{const e=t*a,s=n.map((t=>{const n=Number(t.start_delay)||Ya,a=Number(t.duration)||Ka,s=Math.max(0,Math.min(1,(e-n)/a)),c="in"===o?1-s:s,u=(Ga[t.interpolator||"ease_in_out"]||Ra)(c);if("fade"===t.type)return u>=1?{active:!1,opacity:0}:{active:u>0&&u<1,opacity:(1-u)*l+u*(t.alpha||Za)};if("slide"===t.type){var d;const e="top"===t.edge||"left"===t.edge?-1:1,n="top"!==t.edge&&"bottom"!==t.edge&&t.edge?"translateX":"translateY";let o=null===(d=t.distance)||void 0===d?void 0:d.value;void 0===o&&(o="top"!==t.edge&&"bottom"!==t.edge&&t.edge?Math.abs(i["left"===t.edge?"left":"right"]-r["left"===t.edge?"right":"left"]):Math.abs(i["bottom"===t.edge?"bottom":"top"]-r["bottom"===t.edge?"top":"bottom"]));const a=o*u;return{active:u>0&&u<1,translate:"".concat(n,"(").concat(a*e,"px)")}}if("scale"===t.type){var h,p;const e=1-u+u*(t.scale||Xa),n=null!==(h=t.pivot_x)&&void 0!==h?h:.5,i=null!==(p=t.pivot_y)&&void 0!==p?p:.5,o=(1-e)*r.width*n,a=(1-e)*r.height*i;return{active:u>0&&u<1,scale:"translate(".concat(o,"px, ").concat(a,"px) scale(").concat(e,")")}}return{}})),c=s.map((t=>t.opacity)).filter((t=>void 0!==t)).reduce(((t,e)=>t*e),1),u=s.map((t=>t.translate)).filter((t=>void 0!==t)).join(" "),d=s.map((t=>t.scale)).filter((t=>void 0!==t)).join(" "),h=s.filter((t=>t.active)).map((t=>t.scale)).filter((t=>void 0!==t)),p=[u,h.length?h[h.length-1]:d].filter(Boolean).join(" ");return"transform:".concat(p||"none",";opacity:").concat(c)}}}function es(t,e,n){return t*(1-n)+e*n}const ns={linear:re,ease:Wa,ease_in:La,ease_out:Ua,ease_in_out:Ra,spring:qa},rs=200,is=0;function os(t,e){var n,r;let{rootBbox:i,beforeBbox:o,afterBbox:a,transition:s}=e;return{delay:null!==(n=s.start_delay)&&void 0!==n?n:is,duration:ii()?0:null!==(r=s.duration)&&void 0!==r?r:rs,easing:s.interpolator&&s.interpolator in ns?ns[s.interpolator]:Ra,css:t=>["top:".concat(es(o.top,a.top,t)-i.top,"px"),"left:".concat(es(o.left,a.left,t)-i.left,"px"),"width:".concat(es(o.width,a.width,t),"px"),"height:".concat(es(o.height,a.height,t),"px")].join(";")}}function as(t){const e=[];return"set"===t.type?(t.items||[]).forEach((t=>{e.push(...as(t))})):e.push(t),e}const ss={tooltip:"divkit-f1907",tooltip_visible:"divkit-e5914"},ls={linear:re,ease:Wa,ease_in:La,ease_out:Ua,ease_in_out:Ra,spring:qa},cs=300,us=0;function ds(t,e){let{animations:n,direction:r}=e;if(!n)return{};const i=Qr(n),o=(a=i,Math.max(...a.map((t=>(Number(t.duration)||cs)+(Number(t.start_delay)||us)))));var a;return i.some((t=>"no_animation"===t.name))?{}:{duration:ii()?0:o,css:t=>{const e=t*o,n=i.map((t=>{const n=Number(t.start_delay)||us,i=Number(t.duration)||cs,o=Math.max(0,Math.min(1,(e-n)/i)),a=(ls[t.interpolator||"ease_in_out"]||Ra)(o);var s,l;if("fade"===t.name)return{active:a>0&&a<1,opacity:(1-a)*("in"===r&&null!==(s=t.start_value)&&void 0!==s?s:0)+a*("in"===r?1:null!==(l=t.end_value)&&void 0!==l?l:1)};if("translate"===t.name){var c,u;const e=-("in"===r&&null!==(c=t.start_value)&&void 0!==c?c:10),n=-("in"===r?0:null!==(u=t.end_value)&&void 0!==u?u:0);return{active:a>0&&a<1,translate:"translateY(".concat((1-a)*e+a*n).concat("in"===r&&void 0!==t.start_value||"out"===r&&void 0!==t.end_value?"%":"px",")")}}if("scale"===t.name){var d,h;const e="in"===r&&null!==(d=t.start_value)&&void 0!==d?d:0,n="in"===r?1:null!==(h=t.end_value)&&void 0!==h?h:1;return{active:a>0&&a<1,scale:"scale(".concat((1-a)*e+a*n,")")}}return{}})),a=n.map((t=>t.opacity)).filter((t=>void 0!==t)).reduce(((t,e)=>t*e),1),s=n.map((t=>t.translate)).filter((t=>void 0!==t)).join(" "),l=n.map((t=>t.scale)).filter((t=>void 0!==t)).join(" "),c=n.filter((t=>t.active)).map((t=>t.scale)).filter((t=>void 0!==t)),u=[s,c.length?c[c.length-1]:l].filter(Boolean).join(" ");return"transform:".concat(u||"none",";opacity:").concat(a)}}}const{window:hs}=Ae;function ps(t){let e,n,r,i,o,a,s,l;return n=new vc({props:{div:t[0].div,templateContext:t[1]}}),{c(){e=Je("div"),ir(n.$$.fragment),this.h()},l(t){e=en(t,"DIV",{class:!0});var r=Ze(e);or(n.$$.fragment,r),r.forEach(Me),this.h()},h(){We(e,"class",r=Jr("tooltip",ss,t[7])+" "+(t[13]?br.root_platform_desktop:"")),cn(e,"top",t[4]),cn(e,"left",t[3]),cn(e,"width",t[5]),cn(e,"height",t[6])},m(r,i){Te(r,e,i),ar(n,e,null),t[26](e),a=!0,s||(l=[He(hs,"click",t[17]),He(hs,"resize",t[18])],s=!0)},p(i,o){t=i;const s={};1&o[0]&&(s.div=t[0].div),2&o[0]&&(s.templateContext=t[1]),n.$set(s),(!a||8320&o[0]&&r!==(r=Jr("tooltip",ss,t[7])+" "+(t[13]?br.root_platform_desktop:"")))&&We(e,"class",r),16&o[0]&&cn(e,"top",t[4]),8&o[0]&&cn(e,"left",t[3]),32&o[0]&&cn(e,"width",t[5]),64&o[0]&&cn(e,"height",t[6])},i(r){a||(Wn(n.$$.fragment,r),r&&In((()=>{a&&(o&&o.end(1),i=Kn(e,ds,{animations:t[14]||fs,direction:"in"}),i.start())})),a=!0)},o(r){qn(n.$$.fragment,r),i&&i.invalidate(),r&&(o=function(t,e,n){const r={direction:"out"};let i,o=e(t,n,r),a=!0;const s=Ln;let l;function c(){const{delay:e=0,duration:n=300,easing:r=re,tick:c=ne,css:u}=o||Gn;u&&(i=vn(t,1,0,n,e,r,u));const d=we()+e,h=d+n;In((()=>Bn(t,!1,"start"))),"inert"in t&&(l=t.inert,t.inert=!0),Ce((e=>{if(a){if(e>=h)return c(0,1),Bn(t,!1,"end"),--s.r||se(s.c),!1;if(e>=d){const t=r((e-d)/n);c(1-t,t)}}return a}))}return s.r+=1,le(o)?Jn().then((()=>{o=o(r),c()})):c(),{end(e){e&&"inert"in t&&(t.inert=l),e&&o.tick&&o.tick(1,0),a&&(i&&yn(t,i),a=!1)}}}(e,ds,{animations:t[15]||fs,direction:"out"})),a=!1},d(r){r&&Me(e),sr(n),t[26](null),r&&o&&o.end(),s=!1,se(l)}}}const fs={name:"set",items:[{name:"translate"},{name:"fade"}]};function gs(t,e,n){let r,i,o,a,s,l,c,u,d,h,p,f,g=ne,m=ne,v=ne,y=ne,$=ne;var _,b,w,x;t.$$.on_destroy.push((()=>g())),t.$$.on_destroy.push((()=>m())),t.$$.on_destroy.push((()=>v())),t.$$.on_destroy.push((()=>y())),t.$$.on_destroy.push((()=>$()));let{ownerNode:k}=e,{data:E}=e,{internalId:C}=e,{templateContext:A}=e;const V=kn(wr),D=V.isDesktop;pe(t,D,(t=>n(13,h=t)));const j=Date.now();let F,P=!1,S="",I="",N="",O="",T=null;function M(){var t,e;if(!F||!k)return;const r=F.parentElement;if(!r)return;const i=F.style.cssText;n(2,F.style.cssText+=";transform: none !important",F);const o=k.getBoundingClientRect(),a=F.getBoundingClientRect(),s=r.getBoundingClientRect();n(2,F.style.cssText=i,F);let l=0,h=0,p=null,f=null,g=0,m=0;const v=V.getJsonWithVars(null===(t=E.div)||void 0===t?void 0:t.width),y=V.getJsonWithVars(null===(e=E.div)||void 0===e?void 0:e.width);if(g=v&&"match_parent"!==v.type?"fixed"===v.type&&v.value?p=v.value:a.width:p=o.width,m="match_parent"===(null==y?void 0:y.type)?f=o.height:"fixed"===(null==y?void 0:y.type)&&y.value?f=y.value:a.height,"left"===d||"bottom-left"===d||"top-left"===d)l=o.left-g;else if("top"===d||"bottom"===d||"center"===d)l=(o.left+o.right)/2-g/2;else{if("right"!==d&&"bottom-right"!==d&&"top-right"!==d)return;l=o.right}if("top"===d||"top-left"===d||"top-right"===d)h=o.top-m;else if("left"===d||"right"===d||"center"===d)h=(o.top+o.bottom)/2-m/2;else{if("bottom-left"!==d&&"bottom"!==d&&"bottom-right"!==d)return;h=o.bottom}l-=s.left,h-=s.top,l+=u||0,h+=c||0,n(3,S="".concat(l,"px")),n(4,I="".concat(h,"px")),n(5,N=null!==p?"".concat(p,"px"):""),n(6,O=null!==f?"".concat(f,"px"):""),n(25,P=!0),null===p||null===f?"undefined"==typeof ResizeObserver||T||(T=new ResizeObserver((()=>{requestAnimationFrame(M)})),T.observe(F)):null==T||T.disconnect()}var z;return bn((()=>{if(V.tooltipRoot){const t=window.getComputedStyle(F);n(2,F.style.fontSize=t.fontSize,F),n(2,F.style.fontFamily=t.fontFamily,F),n(2,F.style.lineHeight=t.lineHeight,F),V.tooltipRoot.appendChild(F)}})),z=()=>{P||M()},_n().$$.after_update.push(z),wn((()=>{null==T||T.disconnect()})),t.$$set=t=>{"ownerNode"in t&&n(19,k=t.ownerNode),"data"in t&&n(0,E=t.data),"internalId"in t&&n(20,C=t.internalId),"templateContext"in t&&n(1,A=t.templateContext)},t.$$.update=()=>{1&t.$$.dirty[0]&&(n(12,r=V.getDerivedFromVars(E.position)),v(),v=he(r,(t=>n(30,d=t)))),6291457&t.$$.dirty[0]&&(n(11,i=V.getDerivedFromVars(null===n(22,b=null===n(21,_=E.offset)||void 0===_?void 0:_.x)||void 0===b?void 0:b.value)),m(),m=he(i,(t=>n(29,u=t)))),25165825&t.$$.dirty[0]&&(n(10,o=V.getDerivedFromVars(null===n(24,x=null===n(23,w=E.offset)||void 0===w?void 0:w.y)||void 0===x?void 0:x.value)),g(),g=he(o,(t=>n(28,c=t)))),1&t.$$.dirty[0]&&(n(9,a=V.getDerivedFromVars(E.animation_in)),y(),y=he(a,(t=>n(14,p=t)))),1&t.$$.dirty[0]&&(n(8,s=V.getDerivedFromVars(E.animation_out)),$(),$=he(s,(t=>n(15,f=t)))),33554432&t.$$.dirty[0]&&n(7,l={visible:P})},[E,A,F,S,I,N,O,l,s,a,o,i,r,h,p,f,D,function(t){Date.now()-j<100||t.composedPath().includes(F)||V.onTooltipClose(C)},function(){M()},k,C,_,b,w,x,P,function(t){An[t?"unshift":"push"]((()=>{F=t,n(2,F)}))}]}const ms=class extends ur{constructor(t){super(),lr(this,t,gs,ps,de,{ownerNode:19,data:0,internalId:20,templateContext:1},null,[-1,-1])}},{Map:vs}=Ae;function ys(t,e,n){const r=t.slice();return r[34]=e[n],r}function $s(t,e,n){const r=t.slice();return r[34]=e[n],r}function _s(t){var e;let n,r,i,o;n=new Ii({props:{cls:Ba.state,json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],parentOf:t[9],parentOfSimpleMode:!0,replaceItems:t[10],$$slots:{default:[Cs]},$$scope:{ctx:t}}});let a=(null===(e=t[3])||void 0===e?void 0:e.tooltips)&&As(t);return{c(){ir(n.$$.fragment),r=Le(),a&&a.c(),i=Ue()},l(t){or(n.$$.fragment,t),r=on(t),a&&a.l(t),i=Ue()},m(t,e){ar(n,t,e),Te(t,r,e),a&&a.m(t,e),Te(t,i,e),o=!0},p(t,e){var r;const o={};1&e[0]&&(o.json=t[0]),4&e[0]&&(o.origJson=t[2]),2&e[0]&&(o.templateContext=t[1]),8&e[0]&&(o.layoutParams=t[3]),512&e[0]&&(o.parentOf=t[9]),482&e[0]|256&e[1]&&(o.$$scope={dirty:e,ctx:t}),n.$set(o),null!==(r=t[3])&&void 0!==r&&r.tooltips?a?(a.p(t,e),8&e[0]&&Wn(a,1)):(a=As(t),a.c(),Wn(a,1),a.m(i.parentNode,i)):a&&(Un(),qn(a,1,1,(()=>{a=null})),Hn())},i(t){o||(Wn(n.$$.fragment,t),Wn(a),o=!0)},o(t){qn(n.$$.fragment,t),qn(a),o=!1},d(t){t&&(Me(r),Me(i)),sr(n,t),a&&a.d(t)}}}function bs(t){let e,n,r=t[7],i=ws(t);return{c(){i.c(),e=Ue()},l(t){i.l(t),e=Ue()},m(t,r){i.m(t,r),Te(t,e,r),n=!0},p(t,n){128&n[0]&&de(r,r=t[7])?(Un(),qn(i,1,1,ne),Hn(),i=ws(t),i.c(),Wn(i,1),i.m(e.parentNode,e)):i.p(t,n)},i(t){n||(Wn(i),n=!0)},o(t){qn(i),n=!1},d(t){t&&Me(e),i.d(t)}}}function ws(t){let e,n;return e=new vc({props:{div:t[8].div,templateContext:t[1]}}),{c(){ir(e.$$.fragment)},l(t){or(e.$$.fragment,t)},m(t,r){ar(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.div=t[8].div),2&n[0]&&(r.templateContext=t[1]),e.$set(r)},i(t){n||(Wn(e.$$.fragment,t),n=!0)},o(t){qn(e.$$.fragment,t),n=!1},d(t){sr(e,t)}}}function xs(t){let e,n,r,i,o,a,s,l,c,u;function d(){return t[18](t[34])}return r=new vc({props:{div:t[34].json,templateContext:t[34].templateContext,layoutParams:{fakeElement:!0}}}),{c(){e=Je("div"),n=Je("div"),ir(r.$$.fragment),o=Le(),this.h()},l(t){e=en(t,"DIV",{class:!0});var i=Ze(e);n=en(i,"DIV",{class:!0});var a=Ze(n);or(r.$$.fragment,a),a.forEach(Me),o=on(i),i.forEach(Me),this.h()},h(){We(n,"class",i=Ba["state__animation-child-inner"]),We(e,"class",a=Ba["state__animation-child"])},m(t,i){Te(t,e,i),Ne(e,n),ar(r,n,null),Ne(e,o),l=!0,c||(u=He(e,"introend",d),c=!0)},p(e,n){t=e;const i={};64&n[0]&&(i.div=t[34].json),64&n[0]&&(i.templateContext=t[34].templateContext),r.$set(i)},i(n){l||(Wn(r.$$.fragment,n),s||In((()=>{s=Kn(e,os,t[34]),s.start()})),l=!0)},o(t){qn(r.$$.fragment,t),l=!1},d(t){t&&Me(e),sr(r),c=!1,u()}}}function ks(t){let e,n,r,i,o,a,s,l,c,u,d="".concat(t[34].offsetLeft,"px"),h="".concat(t[34].offsetTop,"px"),p="".concat(t[34].width,"px"),f="".concat(t[34].height,"px");function g(){return t[17](t[34])}return r=new vc({props:{div:t[34].json,templateContext:t[34].templateContext,layoutParams:{fakeElement:!0}}}),{c(){e=Je("div"),n=Je("div"),ir(r.$$.fragment),o=Le(),this.h()},l(t){e=en(t,"DIV",{class:!0});var i=Ze(e);n=en(i,"DIV",{class:!0});var a=Ze(n);or(r.$$.fragment,a),a.forEach(Me),o=on(i),i.forEach(Me),this.h()},h(){We(n,"class",i=Ba["state__animation-child-inner"]),We(e,"class",a=Ba["state__animation-child"]),cn(e,"left",d),cn(e,"top",h),cn(e,"width",p),cn(e,"height",f)},m(t,i){Te(t,e,i),Ne(e,n),ar(r,n,null),Ne(e,o),l=!0,c||(u=He(e,"introend",g),c=!0)},p(n,i){t=n;const o={};64&i[0]&&(o.div=t[34].json),64&i[0]&&(o.templateContext=t[34].templateContext),r.$set(o),64&i[0]&&d!==(d="".concat(t[34].offsetLeft,"px"))&&cn(e,"left",d),64&i[0]&&h!==(h="".concat(t[34].offsetTop,"px"))&&cn(e,"top",h),64&i[0]&&p!==(p="".concat(t[34].width,"px"))&&cn(e,"width",p),64&i[0]&&f!==(f="".concat(t[34].height,"px"))&&cn(e,"height",f)},i(n){l||(Wn(r.$$.fragment,n),s||In((()=>{s=Kn(e,ts,t[34]),s.start()})),l=!0)},o(t){qn(r.$$.fragment,t),l=!1},d(t){t&&Me(e),sr(r),c=!1,u()}}}function Es(t,e){let n,r,i,o,a;const s=[ks,xs],l=[];function c(t,e){return"direction"in t[34]?0:1}return r=c(e),i=l[r]=s[r](e),{key:t,first:null,c(){n=Ue(),i.c(),o=Ue(),this.h()},l(t){n=Ue(),i.l(t),o=Ue(),this.h()},h(){this.first=n},m(t,e){Te(t,n,e),l[r].m(t,e),Te(t,o,e),a=!0},p(t,n){let a=r;r=c(e=t),r===a?l[r].p(e,n):(Un(),qn(l[a],1,1,(()=>{l[a]=null})),Hn(),i=l[r],i?i.p(e,n):(i=l[r]=s[r](e),i.c()),Wn(i,1),i.m(o.parentNode,o))},i(t){a||(Wn(i),a=!0)},o(t){qn(i),a=!1},d(t){t&&(Me(n),Me(o)),l[r].d(t)}}}function Cs(t){var e;let n,r,i,o,a=[],s=new vs,l=(null===(e=t[8])||void 0===e?void 0:e.div)&&bs(t),c=Yn(t[6]);const u=t=>t[34];for(let e=0;e<c.length;e+=1){let n=$s(t,c,e),r=u(n);s.set(r,a[e]=Es(r,n))}return{c(){l&&l.c(),n=Le(),r=Je("div");for(let t=0;t<a.length;t+=1)a[t].c();this.h()},l(t){l&&l.l(t),n=on(t),r=en(t,"DIV",{class:!0,"aria-hidden":!0});var e=Ze(r);for(let t=0;t<a.length;t+=1)a[t].l(e);e.forEach(Me),this.h()},h(){We(r,"class",i=Ba.state__animations),We(r,"aria-hidden","true")},m(e,i){l&&l.m(e,i),Te(e,n,i),Te(e,r,i);for(let t=0;t<a.length;t+=1)a[t]&&a[t].m(r,null);t[19](r),o=!0},p(t,e){var i;null!==(i=t[8])&&void 0!==i&&i.div?l?(l.p(t,e),256&e[0]&&Wn(l,1)):(l=bs(t),l.c(),Wn(l,1),l.m(n.parentNode,n)):l&&(Un(),qn(l,1,1,(()=>{l=null})),Hn()),2112&e[0]&&(c=Yn(t[6]),Un(),a=Xn(a,e,u,1,t,c,s,r,Zn,Es,null,$s),Hn())},i(t){if(!o){Wn(l);for(let t=0;t<c.length;t+=1)Wn(a[t]);o=!0}},o(t){qn(l);for(let t=0;t<a.length;t+=1)qn(a[t]);o=!1},d(e){e&&(Me(n),Me(r)),l&&l.d(e);for(let t=0;t<a.length;t+=1)a[t].d();t[19](null)}}}function As(t){var e;let n,r,i=[],o=new vs,a=Yn(null===(e=t[3])||void 0===e?void 0:e.tooltips);const s=t=>t[34].internalId;for(let e=0;e<a.length;e+=1){let n=ys(t,a,e),r=s(n);o.set(r,i[e]=Vs(r,n))}return{c(){for(let t=0;t<i.length;t+=1)i[t].c();n=Ue()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);n=Ue()},m(t,e){for(let n=0;n<i.length;n+=1)i[n]&&i[n].m(t,e);Te(t,n,e),r=!0},p(t,e){var r;10&e[0]&&(a=Yn(null===(r=t[3])||void 0===r?void 0:r.tooltips),Un(),i=Xn(i,e,s,1,t,a,o,n.parentNode,Zn,Vs,n,ys),Hn())},i(t){if(!r){for(let t=0;t<a.length;t+=1)Wn(i[t]);r=!0}},o(t){for(let t=0;t<i.length;t+=1)qn(i[t]);r=!1},d(t){t&&Me(n);for(let e=0;e<i.length;e+=1)i[e].d(t)}}}function Vs(t,e){let n,r,i;return r=new ms({props:{ownerNode:e[34].ownerNode,data:e[34].desc,internalId:e[34].internalId,templateContext:e[1]}}),{key:t,first:null,c(){n=Ue(),ir(r.$$.fragment),this.h()},l(t){n=Ue(),or(r.$$.fragment,t),this.h()},h(){this.first=n},m(t,e){Te(t,n,e),ar(r,t,e),i=!0},p(t,n){e=t;const i={};8&n[0]&&(i.ownerNode=e[34].ownerNode),8&n[0]&&(i.data=e[34].desc),8&n[0]&&(i.internalId=e[34].internalId),2&n[0]&&(i.templateContext=e[1]),r.$set(i)},i(t){i||(Wn(r.$$.fragment,t),i=!0)},o(t){qn(r.$$.fragment,t),i=!1},d(t){t&&Me(n),sr(r,t)}}}function Ds(t){let e,n,r=!t[4]&&_s(t);return{c(){r&&r.c(),e=Ue()},l(t){r&&r.l(t),e=Ue()},m(t,i){r&&r.m(t,i),Te(t,e,i),n=!0},p(t,n){t[4]?r&&(Un(),qn(r,1,1,(()=>{r=null})),Hn()):r?(r.p(t,n),16&n[0]&&Wn(r,1)):(r=_s(t),r.c(),Wn(r,1),r.m(e.parentNode,e))},i(t){n||(Wn(r),n=!0)},o(t){qn(r),n=!1},d(t){t&&Me(e),r&&r.d(t)}}}function js(t){return"change_bounds"===t.type?t:"set"===t.type?js(t.items[0]):null}function Fs(t,e,n){let r,i,o,a,s,l,{json:c={}}=e,{templateContext:u}=e,{origJson:d}=e,{layoutParams:h}=e;const p=kn(wr),f=kn(Rr);let g,m,v,y=!1,$=new Map,_=new Set,b=null,w=[],x=[],k=[],E=[],C=null,A=!1;function V(t,e,n){let{json:r,templateContext:i,transitions:o,node:a}=e;r=p.getJsonWithVars(r),o=p.getJsonWithVars(o);const s=as(o),l=a.getBoundingClientRect();return{json:Object.assign(Object.assign({},r),{margins:void 0,alpha:(c=s,c.some((t=>"fade"===t.type))?void 0:r.alpha)}),templateContext:i,elementBbox:l,rootBbox:t,transitions:s,alpha:r.alpha,width:l.width,height:l.height,offsetTop:l.top-t.top,offsetLeft:l.left-t.left,direction:n,resolvePromise:e.resolvePromise,node:e.node};var c}async function D(t){if(v===t)return;p.setRunning("stateChange",!0);const e=new Set(_);w.forEach((t=>{t.resolvePromise&&t.resolvePromise()})),n(6,w=[]);let r=[];if(g){const t=g.getBoundingClientRect();r=k.map((e=>V(t,e,"out")))}E.forEach((t=>{$.set(t.id,t.node.getBoundingClientRect())})),x=[],k=[],E=[];const i=s.find((e=>e.state_id===t))||null;if(i?(n(7,v=t),null==a||a.setValue(v),n(8,C=i)):p.logError(ut(new Error("Cannot find state with id"),{additional:{stateId:t}})),await Sn(),!g)return;const o=g.getBoundingClientRect();let l=x.filter((t=>{var n;return!(!t.json.id||e.has(t.json.id))||(null===(n=t.resolvePromise)||void 0===n||n.call(t),!1)})).map((t=>V(o,t,"in")));r=r.filter((t=>{var e;return!(!t.json.id||_.has(t.json.id))||(null===(e=t.resolvePromise)||void 0===e||e.call(t),!1)}));const c=r.concat(l),u=c.reduce(((t,e)=>Math.max(t,Qa(e.transitions))),0),d=E.filter((t=>$.has(t.id))).map((t=>({json:Object.assign(Object.assign({},t.json),{margins:void 0,width:{type:"match_parent"},height:{type:"match_parent"}}),templateContext:t.templateContext,rootBbox:o,beforeBbox:$.get(t.id),afterBbox:t.node.getBoundingClientRect(),node:t.node,transition:p.getJsonWithVars(js(t.transitions)),resolvePromise:t.resolvePromise})));n(6,w=[...c.map((t=>Object.assign(Object.assign({},t),{maxDuration:u}))),...d]),$.clear(),p.setRunning("stateChange",!1)}function j(t){if(b&&b.has(t))return b.get(t);p.logError(ut(new Error("Missing state block with id"),{additional:{id:t}}))}function F(t){n(6,w=w.filter((e=>e!==t))),t.resolvePromise&&t.resolvePromise()}return xn(Rr,{registerInstance(t,e){b||(b=new Map),b.has(t)?p.logError(ut(new Error("Duplicate state with id"),{additional:{id:t}})):b.set(t,e)},unregisterInstance(t){null==b||b.delete(t)},runVisibilityTransition(t,e,r,i,o){if(!g)return Promise.resolve();const a=V(g.getBoundingClientRect(),{json:t,templateContext:e,transitions:r,node:i},o),s=Qa(a.transitions),l=Object.assign(Object.assign({},a),{maxDuration:s});return n(6,w=[...w.filter((t=>t.node!==a.node)),l]),new Promise((t=>{l.resolvePromise=t}))},registerChildWithTransitionIn(t,e,n,r){const i={json:t,templateContext:e,transitions:n,node:r};return x.push(i),new Promise((t=>{i.resolvePromise=t}))},registerChildWithTransitionOut(t,e,n,r){const i={json:t,templateContext:e,transitions:n,node:r};return k.push(i),new Promise((t=>{i.resolvePromise=t}))},registerChildWithTransitionChange(t,e,n,r){const i=t.id;if(!i)return Promise.resolve();const o={id:i,json:t,templateContext:e,transitions:n,node:r};return E.push(o),new Promise((t=>{o.resolvePromise=t}))},hasTransitionChange:t=>!!t&&$.has(t),registerChild(t){_.add(t)},unregisterChild(t){_.delete(t)}}),wn((()=>{m&&f.unregisterInstance(m)})),t.$$set=t=>{"json"in t&&n(0,c=t.json),"templateContext"in t&&n(1,u=t.templateContext),"origJson"in t&&n(2,d=t.origJson),"layoutParams"in t&&n(3,h=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty[0]&&n(15,r=c.div_id||c.id),1&t.$$.dirty[0]&&(i=p.getJsonWithVars(c.default_state_id)),1&t.$$.dirty[0]&&n(16,o=c.state_id_variable),65536&t.$$.dirty[0]&&(a=o?p.getVariable(o,"string"):null),1&t.$$.dirty[0]&&c&&n(13,A=!1),32768&t.$$.dirty[0]&&(r?n(4,y=!1):(n(4,y=!0),p.logError(ut(new Error('Missing "id" prop for div "state"'))))),1&t.$$.dirty[0]&&c&&(_=new Set),1&t.$$.dirty[0]&&n(14,s=c.states||[]),16384&t.$$.dirty[0]&&n(9,l=s.map((t=>t.div))),16384&t.$$.dirty[0]&&((null==s?void 0:s.length)?n(4,y=!1):(n(4,y=!0),p.logError(ut(new Error('Empty "states" prop for div "state"'))))),36873&t.$$.dirty[0]&&c&&(m&&(f.unregisterInstance(m),n(12,m=void 0)),r&&!(null==h?void 0:h.fakeElement)&&(n(12,m=r),f.registerInstance(r,{setState:D,getChild:j}))),24576&t.$$.dirty[0]&&!A&&function(t){if(!A&&(n(13,A=!0),t.length)){const e=(null==a?void 0:a.getValue())||i;e?(n(7,v=e),n(8,C=t.find((t=>t.state_id===v))||null),C||p.logError(ut(new Error("Cannot find state for default_state_id"),{additional:{selectedId:v}}))):(n(8,C=t[0]),n(7,v=C.state_id)),a&&(a.setValue(v),a.subscribe((t=>{D(t)})))}}(s)},[c,u,d,h,y,g,w,v,C,l,function(t){const e=c.states;if(!e)return;const r=e.map(((e,n)=>Object.assign(Object.assign({},e),{div:t[n]})));n(0,c=Object.assign(Object.assign({},c),{states:r})),v&&n(8,C=r.find((t=>t.state_id===v))||null)},F,m,A,s,r,o,t=>F(t),t=>F(t),function(t){An[t?"unshift":"push"]((()=>{g=t,n(5,g)}))}]}const Ps={pager:"divkit-c5feb",pager__items:"divkit-f6987",pager__item:"divkit-feca7",pager_orientation_horizontal:"divkit-b0a1c",pager_orientation_vertical:"divkit-f772f",pager__arrow:"divkit-d78c2","pager__arrow-icon-path":"divkit-a94d9"},{Boolean:Ss}=Ae;function Is(t,e,n){const r=t.slice();return r[59]=e[n],r}function Ns(t){let e,n;return e=new Ii({props:{cls:Jr("pager",Ps,t[11]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customPaddings:!0,parentOf:t[0].items,replaceItems:t[23],$$slots:{default:[zs]},$$scope:{ctx:t}}}),{c(){ir(e.$$.fragment)},l(t){or(e.$$.fragment,t)},m(t,r){ar(e,t,r),n=!0},p(t,n){const r={};2048&n[0]&&(r.cls=Jr("pager",Ps,t[11])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),1&n[0]&&(r.parentOf=t[0].items),268120&n[0]|1&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Wn(e.$$.fragment,t),n=!0)},o(t){qn(e.$$.fragment,t),n=!1},d(t){sr(e,t)}}}function Os(t){var e;let n,r,i,o,a;return r=new vc({props:{div:t[59].json,templateContext:t[59].templateContext,origJson:t[59].origJson,layoutParams:null!==(e=t[3])&&void 0!==e&&e.fakeElement?{fakeElement:!0}:void 0}}),{c(){n=Je("div"),ir(r.$$.fragment),i=Le(),this.h()},l(t){n=en(t,"DIV",{class:!0});var e=Ze(n);or(r.$$.fragment,e),i=on(e),e.forEach(Me),this.h()},h(){We(n,"class",o=Ps.pager__item)},m(t,e){Te(t,n,e),ar(r,n,null),Ne(n,i),a=!0},p(t,e){var n;const i={};16&e[0]&&(i.div=t[59].json),16&e[0]&&(i.templateContext=t[59].templateContext),16&e[0]&&(i.origJson=t[59].origJson),8&e[0]&&(i.layoutParams=null!==(n=t[3])&&void 0!==n&&n.fakeElement?{fakeElement:!0}:void 0),r.$set(i)},i(t){a||(Wn(r.$$.fragment,t),a=!0)},o(t){qn(r.$$.fragment,t),a=!1},d(t){t&&Me(n),sr(r)}}}function Ts(t){let e,n,r,i,o=!t[19]&&function(t){let e,n,r,i;return{c(){e=Be("svg"),n=Be("path"),this.h()},l(t){e=nn(t,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var r=Ze(e);n=nn(r,"path",{class:!0,d:!0}),Ze(n).forEach(Me),r.forEach(Me),this.h()},h(){We(n,"class",r=Ps["pager__arrow-icon-path"]),We(n,"d","m10 16 8.3 8 1.03-1-4-6-.7-1 .7-1 4-6-1.03-1z"),We(e,"class",i=da.arrow__icon),We(e,"xmlns","http://www.w3.org/2000/svg"),We(e,"width","32"),We(e,"height","32"),We(e,"viewBox","0 0 32 32"),We(e,"fill","none")},m(t,r){Te(t,e,r),Ne(e,n)},d(t){t&&Me(e)}}}();return{c(){e=Je("div"),o&&o.c(),this.h()},l(t){e=en(t,"DIV",{class:!0});var n=Ze(e);o&&o.l(n),n.forEach(Me),this.h()},h(){We(e,"class",n=t[19]||"".concat(Ps.pager__arrow," ").concat(da.arrow," ").concat(da.arrow_left))},m(n,a){Te(n,e,a),o&&o.m(e,null),r||(i=He(e,"click",t[47]),r=!0)},p:ne,d(t){t&&Me(e),o&&o.d(),r=!1,i()}}}function Ms(t){let e,n,r,i,o=!t[20]&&function(t){let e,n,r,i;return{c(){e=Be("svg"),n=Be("path"),this.h()},l(t){e=nn(t,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var r=Ze(e);n=nn(r,"path",{class:!0,d:!0}),Ze(n).forEach(Me),r.forEach(Me),this.h()},h(){We(n,"class",r=Ps["pager__arrow-icon-path"]),We(n,"d","M22 16l-8.3 8-1.03-1 4-6 .7-1-.7-1-4-6 1.03-1 8.3 8z"),We(e,"class",i=da.arrow__icon),We(e,"xmlns","http://www.w3.org/2000/svg"),We(e,"width","32"),We(e,"height","32"),We(e,"viewBox","0 0 32 32"),We(e,"fill","none")},m(t,r){Te(t,e,r),Ne(e,n)},d(t){t&&Me(e)}}}();return{c(){e=Je("div"),o&&o.c(),this.h()},l(t){e=en(t,"DIV",{class:!0});var n=Ze(e);o&&o.l(n),n.forEach(Me),this.h()},h(){We(e,"class",n=t[20]||"".concat(Ps.pager__arrow," ").concat(da.arrow," ").concat(da.arrow_right))},m(n,a){Te(n,e,a),o&&o.m(e,null),r||(i=He(e,"click",t[48]),r=!0)},p:ne,d(t){t&&Me(e),o&&o.d(),r=!1,i()}}}function zs(t){let e,n,r,i,o,a,s,l,c,u=Yn(t[4]),d=[];for(let e=0;e<u.length;e+=1)d[e]=Os(Is(t,u,e));const h=t=>qn(d[t],1,1,(()=>{d[t]=null}));let p=t[9]&&t[10]&&Ts(t),f=t[8]&&t[10]&&Ms(t);return{c(){e=Je("div");for(let t=0;t<d.length;t+=1)d[t].c();i=Le(),p&&p.c(),o=Le(),f&&f.c(),a=Ue(),this.h()},l(t){e=en(t,"DIV",{class:!0,style:!0});var n=Ze(e);for(let t=0;t<d.length;t+=1)d[t].l(n);n.forEach(Me),i=on(t),p&&p.l(t),o=on(t),f&&f.l(t),a=Ue(),this.h()},h(){We(e,"class",n=Ps.pager__items+" "+(t[18]?br["root_restrict-scroll"]:"")),We(e,"style",r=Er(t[12]))},m(n,r){Te(n,e,r);for(let t=0;t<d.length;t+=1)d[t]&&d[t].m(e,null);t[46](e),Te(n,i,r),p&&p.m(n,r),Te(n,o,r),f&&f.m(n,r),Te(n,a,r),s=!0,l||(c=He(e,"scroll",t[22]),l=!0)},p(t,i){if(24&i[0]){let n;for(u=Yn(t[4]),n=0;n<u.length;n+=1){const r=Is(t,u,n);d[n]?(d[n].p(r,i),Wn(d[n],1)):(d[n]=Os(r),d[n].c(),Wn(d[n],1),d[n].m(e,null))}for(Un(),n=u.length;n<d.length;n+=1)h(n);Hn()}(!s||262144&i[0]&&n!==(n=Ps.pager__items+" "+(t[18]?br["root_restrict-scroll"]:"")))&&We(e,"class",n),(!s||4096&i[0]&&r!==(r=Er(t[12])))&&We(e,"style",r),t[9]&&t[10]?p?p.p(t,i):(p=Ts(t),p.c(),p.m(o.parentNode,o)):p&&(p.d(1),p=null),t[8]&&t[10]?f?f.p(t,i):(f=Ms(t),f.c(),f.m(a.parentNode,a)):f&&(f.d(1),f=null)},i(t){if(!s){for(let t=0;t<u.length;t+=1)Wn(d[t]);s=!0}},o(t){d=d.filter(Ss);for(let t=0;t<d.length;t+=1)qn(d[t]);s=!1},d(n){n&&(Me(e),Me(i),Me(o),Me(a)),ze(d,n),t[46](null),p&&p.d(n),f&&f.d(n),l=!1,c()}}}function Js(t){let e,n,r=!t[5]&&Ns(t);return{c(){r&&r.c(),e=Ue()},l(t){r&&r.l(t),e=Ue()},m(t,i){r&&r.m(t,i),Te(t,e,i),n=!0},p(t,n){t[5]?r&&(Un(),qn(r,1,1,(()=>{r=null})),Hn()):r?(r.p(t,n),32&n[0]&&Wn(r,1)):(r=Ns(t),r.c(),Wn(r,1),r.m(e.parentNode,e))},i(t){n||(Wn(r),n=!0)},o(t){qn(r),n=!1},d(t){t&&Me(e),r&&r.d(t)}}}function Bs(t,e,n){let r,i,o,a,s,l,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x,k=ne,E=ne,C=ne,A=ne,V=ne,D=ne;var j,F,P,S,I,N;t.$$.on_destroy.push((()=>k())),t.$$.on_destroy.push((()=>E())),t.$$.on_destroy.push((()=>C())),t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>D()));let{json:O={}}=e,{templateContext:T}=e,{origJson:M}=e,{layoutParams:z}=e;const J=kn(wr),B=J.genId("pager"),R=J.getCustomization("pagerLeftClass"),L=J.getCustomization("pagerRightClass"),U=J.isDesktop;pe(t,U,(t=>n(41,y=t)));const H=Gi((function(){if(!G)return;const t=function(){const t=Array.from(q.children),e=q.getBoundingClientRect(),n=t.findIndex((t=>{return n=e,r=t.getBoundingClientRect(),"horizontal"===X?r.left>=n.left&&r.right<=n.right:r.top>=n.top&&r.bottom<=n.bottom;var n,r}));return-1!==n?n:K}();t!==K&&n(34,K=t)}),50);let W,q,G=!1,K=0,Y=0,Z=!1,X="horizontal",Q="",tt="",et="";function nt(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"smooth";const r="horizontal"===X,i=q.children[t],o=r?"offsetLeft":"offsetTop",a=r?"left":"top";q.scroll({[a]:i[o],behavior:e}),n(34,K=t)}function rt(t){let e=K-1;e<0&&(e="ring"===t?l.length-1:K),nt(e)}function it(t){let e=K+1;e>l.length-1&&(e="ring"===t?0:K),nt(e)}return bn((()=>{if(n(33,G=!0),Boolean(document.getElementById("".concat(B,"-tab-0")))){const t=[...q.children];for(const[e,n]of t.entries())n.setAttribute("role","tabpanel"),n.setAttribute("id","".concat(B,"-panel-").concat(e)),n.setAttribute("aria-labelledby","".concat(B,"-tab-").concat(e))}})),wn((()=>{n(33,G=!1),W&&(J.unregisterInstance(W),n(32,W=void 0))})),t.$$set=t=>{"json"in t&&n(0,O=t.json),"templateContext"in t&&n(1,T=t.templateContext),"origJson"in t&&n(2,M=t.origJson),"layoutParams"in t&&n(3,z=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&O&&n(38,tt=""),1&t.$$.dirty[0]&&(n(17,r=J.getDerivedFromVars(O.layout_mode)),E(),E=he(r,(t=>n(42,$=t)))),1&t.$$.dirty[0]&&(n(16,i=J.getDerivedFromVars(O.orientation)),V(),V=he(i,(t=>n(45,w=t)))),1&t.$$.dirty[0]&&(n(15,o=J.getDerivedFromVars(O.item_spacing)),A(),A=he(o,(t=>n(44,b=t)))),1&t.$$.dirty[0]&&(n(14,a=J.getDerivedFromVars(O.paddings)),C(),C=he(a,(t=>n(43,_=t)))),1&t.$$.dirty[0]&&(n(13,s=J.getDerivedFromVars(O.restrict_parent_scroll)),D(),D=he(s,(t=>n(18,x=t)))),3&t.$$.dirty[0]&&n(4,l=(Array.isArray(O.items)&&O.items||[]).map((t=>{let e=t,n=T;return({templateContext:n,json:e}=J.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),2048&t.$$.dirty[1]&&($?"percentage"!==$.type&&"fixed"!==$.type?(n(35,Z=!0),J.logError(ut(new Error('Incorrect value of "layout_mode.type" for div "pager"')))):n(35,Z=!1):(n(35,Z=!0),J.logError(ut(new Error('Empty "layout_mode" prop for div "pager"'))))),16416&t.$$.dirty[1]&&n(36,X=To(w,X)),8192&t.$$.dirty[1]){const t=null==b?void 0:b.value;t&&Hr(t)&&n(37,Q=Cr(t||0))}if(4224&t.$$.dirty[1]&&n(38,tt=Wr(_,tt)),32&t.$$.dirty[1]&&n(40,c="horizontal"===X?"grid-auto-columns":"grid-auto-rows"),2080374785&t.$$.dirty[0]|2145&t.$$.dirty[1])if("fixed"===(null==$?void 0:$.type)){const t=Ar("horizontal"===X?((null===n(26,j=O.paddings)||void 0===j?void 0:j.left)||0)+((null===n(27,F=O.paddings)||void 0===F?void 0:F.right)||0):((null===n(28,P=O.paddings)||void 0===P?void 0:P.top)||0)+((null===n(29,S=O.paddings)||void 0===S?void 0:S.bottom)||0)),e=null===n(30,I=$.neighbour_page_width)||void 0===I?void 0:I.value;n(39,et=e?"calc(100% + ".concat(t," - 2 * ").concat(Ar(e)," - 2 * ").concat(Q,")"):"100%")}else if("percentage"===(null==$?void 0:$.type)){const t=null===n(31,N=$.page_width)||void 0===N?void 0:N.value;n(39,et="".concat(Number(t),"%"))}960&t.$$.dirty[1]&&n(12,u={"grid-gap":Q,padding:tt,[c]:et}),32&t.$$.dirty[1]&&n(11,d={orientation:X}),16&t.$$.dirty[1]&&n(5,h=Z),32&t.$$.dirty[0]|1028&t.$$.dirty[1]&&n(10,p=y&&G&&!h),8&t.$$.dirty[1]&&n(9,f=K>0),16&t.$$.dirty[0]|8&t.$$.dirty[1]&&n(8,g=K+1<l.length),16&t.$$.dirty[0]|8&t.$$.dirty[1]&&function(t,e){const n=O.id;if(n){const r=new Map(v);$e(m,v=r.set(n,{instId:B,size:t,currentItem:e,scrollToPagerItem:nt}),v)}}(l.length,K),8&t.$$.dirty[1]&&function(t){var e;if(t===Y)return;Y=t;const n=J.getJsonWithVars(null===(e=l[t].json)||void 0===e?void 0:e.selected_actions);(null==n?void 0:n.length)&&J.execAnyActions(n)}(K),25&t.$$.dirty[0]|2&t.$$.dirty[1]&&O&&(W&&(J.unregisterInstance(W),n(32,W=void 0)),O.id&&!(null==z?void 0:z.fakeElement)&&(n(32,W=O.id),J.registerInstance(O.id,{setCurrentItem(t){if(t<0||t>l.length-1)throw new Error('Item is out of range in "set-current-item" action');nt(t)},setPreviousItem:rt,setNextItem:it})))},n(7,m=J.getStore("pagers")),k(),k=he(m,(t=>n(50,v=t))),[O,T,M,z,l,h,q,m,g,f,p,d,u,s,a,o,i,r,x,R,L,U,H,function(t){n(0,O=Object.assign(Object.assign({},O),{items:t.filter(Dr)}))},rt,it,j,F,P,S,I,N,W,G,K,Z,X,Q,tt,et,c,y,$,_,b,w,function(t){An[t?"unshift":"push"]((()=>{q=t,n(6,q)}))},()=>rt("clamp"),()=>it("clamp")]}const Rs={indicator:"divkit-d8e3f",indicator__scroller:"divkit-b5db0",indicator__items:"divkit-d5d94",indicator__item:"divkit-f6629",indicator_placement_default:"divkit-c1670",indicator__item_active:"divkit-b39cd",indicator_placement_stretch:"divkit-b6bd3"};function Ls(t,e,n){const r=t.slice();r[42]=e[n],r[45]=n;const i=r[45]===r[12].currentItem;return r[43]=i,r}function Us(t){let e,n=Yn(Array(t[12].size)),r=[];for(let e=0;e<n.length;e+=1)r[e]=Hs(Ls(t,n,e));return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=Ue()},l(t){for(let e=0;e<r.length;e+=1)r[e].l(t);e=Ue()},m(t,n){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,n);Te(t,e,n)},p(t,i){if(25169920&i[0]){let o;for(n=Yn(Array(t[12].size)),o=0;o<n.length;o+=1){const a=Ls(t,n,o);r[o]?r[o].p(a,i):(r[o]=Hs(a),r[o].c(),r[o].m(e.parentNode,e))}for(;o<r.length;o+=1)r[o].d(1);r.length=n.length}},d(t){t&&Me(e),ze(r,t)}}}function Hs(t){let e,n,r,i,o,a,s,l;function c(){return t[36](t[45])}return{c(){e=Je("div"),this.h()},l(t){e=en(t,"DIV",{class:!0,role:!0,id:!0,"aria-controls":!0,"aria-selected":!0,tabindex:!0}),Ze(e).forEach(Me),this.h()},h(){We(e,"class",n=Jr("indicator__item",Rs,{active:t[43]})+" "+br.root__clickable),We(e,"role","tab"),We(e,"id",r=t[12].instId+"-tab-"+t[45]),We(e,"aria-controls",i=t[12].instId+"-panel-"+t[45]),We(e,"aria-selected",o=t[43]?"true":"false"),We(e,"tabindex",a=t[43]?0:-1)},m(n,r){Te(n,e,r),s||(l=[He(e,"click",c),He(e,"keydown",t[24])],s=!0)},p(s,l){t=s,4096&l[0]&&n!==(n=Jr("indicator__item",Rs,{active:t[43]})+" "+br.root__clickable)&&We(e,"class",n),4096&l[0]&&r!==(r=t[12].instId+"-tab-"+t[45])&&We(e,"id",r),4096&l[0]&&i!==(i=t[12].instId+"-panel-"+t[45])&&We(e,"aria-controls",i),4096&l[0]&&o!==(o=t[43]?"true":"false")&&We(e,"aria-selected",o),4096&l[0]&&a!==(a=t[43]?0:-1)&&We(e,"tabindex",a)},d(t){t&&Me(e),s=!1,se(l)}}}function Ws(t){let e,n,r,i,o=t[12]&&Us(t);return{c(){e=Je("div"),n=Je("div"),o&&o.c(),this.h()},l(t){e=en(t,"DIV",{class:!0});var r=Ze(e);n=en(r,"DIV",{class:!0,role:!0});var i=Ze(n);o&&o.l(i),i.forEach(Me),r.forEach(Me),this.h()},h(){We(n,"class",r=Rs.indicator__items),We(n,"role","tablist"),cn(n,"margin","default"===t[6]?"0 ".concat(Cr(Math.max(0,t[4].width-t[5].width)/2)):""),cn(n,"--divkit-indicator-inactive-width",Cr(t[5].width)),cn(n,"--divkit-indicator-inactive-height",Cr(t[5].height)),cn(n,"--divkit-indicator-inactive-border-radius",Cr(t[5].borderRadius)),cn(n,"--divkit-indicator-inactive-background",t[5].background||""),cn(n,"--divkit-indicator-inactive-box-shadow",t[5].boxShadow||""),cn(n,"--divkit-indicator-active-width",Cr(t[4].width)),cn(n,"--divkit-indicator-active-height",Cr(t[4].height)),cn(n,"--divkit-indicator-active-border-radius",Cr(t[4].borderRadius)),cn(n,"--divkit-indicator-active-background",t[4].background||""),cn(n,"--divkit-indicator-active-box-shadow",t[4].boxShadow||""),cn(n,"--divkit-indicator-active-scale",t[4].width/t[5].width),cn(n,"--divkit-indicator-default-margin","default"===t[6]?"0 ".concat(Cr((t[7]-t[5].width)/2)):""),cn(n,"--divkit-indicator-stretch-margin","stretch"===t[6]?Cr(t[9]):""),cn(n,"--divkit-indicator-stretch-max-count","stretch"===t[6]?t[8]:""),cn(n,"--divkit-indicator-stretch-max-spacer","stretch"===t[6]?Cr((t[8]-1)*t[9]):""),We(e,"class",i=Rs.indicator__scroller)},m(r,i){Te(r,e,i),Ne(e,n),o&&o.m(n,null),t[37](n),t[38](e)},p(t,e){t[12]?o?o.p(t,e):(o=Us(t),o.c(),o.m(n,null)):o&&(o.d(1),o=null),112&e[0]&&cn(n,"margin","default"===t[6]?"0 ".concat(Cr(Math.max(0,t[4].width-t[5].width)/2)):""),32&e[0]&&cn(n,"--divkit-indicator-inactive-width",Cr(t[5].width)),32&e[0]&&cn(n,"--divkit-indicator-inactive-height",Cr(t[5].height)),32&e[0]&&cn(n,"--divkit-indicator-inactive-border-radius",Cr(t[5].borderRadius)),32&e[0]&&cn(n,"--divkit-indicator-inactive-background",t[5].background||""),32&e[0]&&cn(n,"--divkit-indicator-inactive-box-shadow",t[5].boxShadow||""),16&e[0]&&cn(n,"--divkit-indicator-active-width",Cr(t[4].width)),16&e[0]&&cn(n,"--divkit-indicator-active-height",Cr(t[4].height)),16&e[0]&&cn(n,"--divkit-indicator-active-border-radius",Cr(t[4].borderRadius)),16&e[0]&&cn(n,"--divkit-indicator-active-background",t[4].background||""),16&e[0]&&cn(n,"--divkit-indicator-active-box-shadow",t[4].boxShadow||""),48&e[0]&&cn(n,"--divkit-indicator-active-scale",t[4].width/t[5].width),224&e[0]&&cn(n,"--divkit-indicator-default-margin","default"===t[6]?"0 ".concat(Cr((t[7]-t[5].width)/2)):""),576&e[0]&&cn(n,"--divkit-indicator-stretch-margin","stretch"===t[6]?Cr(t[9]):""),320&e[0]&&cn(n,"--divkit-indicator-stretch-max-count","stretch"===t[6]?t[8]:""),832&e[0]&&cn(n,"--divkit-indicator-stretch-max-spacer","stretch"===t[6]?Cr((t[8]-1)*t[9]):"")},d(n){n&&Me(e),o&&o.d(),t[37](null),t[38](null)}}}function qs(t){let e,n;return e=new Ii({props:{cls:Jr("indicator",Rs,t[13]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Ws]},$$scope:{ctx:t}}}),{c(){ir(e.$$.fragment)},l(t){or(e.$$.fragment,t)},m(t,r){ar(e,t,r),n=!0},p(t,n){const r={};8192&n[0]&&(r.cls=Jr("indicator",Rs,t[13])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),8176&n[0]|32768&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Wn(e.$$.fragment,t),n=!0)},o(t){qn(e.$$.fragment,t),n=!1},d(t){sr(e,t)}}}const Gs=["rounded_rectangle","circle"];function Ks(t,e,n){let r,i,o,a,s,l,c,u,d,h,p,f,g,m,v,y,$,_,b,w=ne,x=ne,E=ne,C=ne,A=ne,V=ne,D=ne,j=ne,F=ne;var P,S;t.$$.on_destroy.push((()=>w())),t.$$.on_destroy.push((()=>x())),t.$$.on_destroy.push((()=>E())),t.$$.on_destroy.push((()=>C())),t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>F()));let{json:I={}}=e,{templateContext:N}=e,{origJson:O}=e,{layoutParams:T}=e;const M=kn(wr);let z,J,B,R={width:13,height:13,borderRadius:6.5,background:"#ffdc60"},L={width:10,height:10,borderRadius:5,background:"#33919cb5"},U="default",H=15,W=10,q=5;function G(t){t!==B.currentItem&&B.scrollToPagerItem(t)}async function K(t){B.scrollToPagerItem(t),await Sn();const e=J.querySelector(".".concat(Rs.indicator__item_active));e&&e.focus()}return t.$$set=t=>{"json"in t&&n(0,I=t.json),"templateContext"in t&&n(1,N=t.templateContext),"origJson"in t&&n(2,O=t.origJson),"layoutParams"in t&&n(3,T=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&I&&(n(6,U="default"),n(7,H=15),n(8,W=10),n(9,q=5),n(4,R={width:13,height:13,borderRadius:6.5,background:"#ffdc60"}),n(5,L={width:10,height:10,borderRadius:5,background:"#33919cb5"})),1&t.$$.dirty[0]&&(n(22,r=M.getDerivedFromVars(I.shape)),V(),V=he(r,(t=>n(32,y=t)))),1&t.$$.dirty[0]&&(n(21,i=M.getDerivedFromVars(I.active_item_color)),C(),C=he(i,(t=>n(30,m=t)))),1&t.$$.dirty[0]&&(n(20,o=M.getDerivedFromVars(I.inactive_item_color)),A(),A=he(o,(t=>n(31,v=t)))),1&t.$$.dirty[0]&&(n(19,a=M.getDerivedFromVars(I.active_item_size)),D(),D=he(a,(t=>n(33,$=t)))),1&t.$$.dirty[0]&&(n(18,s=M.getDerivedFromVars(I.active_shape)),F(),F=he(s,(t=>n(35,b=t)))),1&t.$$.dirty[0]&&(n(17,l=M.getDerivedFromVars(I.inactive_shape)),j(),j=he(l,(t=>n(34,_=t)))),1&t.$$.dirty[0]&&(n(16,c=M.getDerivedFromVars(I.space_between_centers)),x(),x=he(c,(t=>n(28,f=t)))),1&t.$$.dirty[0]&&(n(15,u=M.getDerivedFromVars(I.items_placement)),E(),E=he(u,(t=>n(29,g=t)))),1073741872&t.$$.dirty[0]|31&t.$$.dirty[1]&&(b&&n(4,R=fo({type:"shape_drawable",shape:b},Gs,R)),_&&n(5,L=fo({type:"shape_drawable",shape:_},Gs,L)),!b&&!_&&y)){const t=Oi($,1.3);n(5,L=fo({type:"shape_drawable",shape:y,color:L.background},Gs,L)),n(5,L.background=k(v,1,L.background),L),n(4,R=Object.assign(Object.assign({},L),{width:L.width*t,height:L.height*t,borderRadius:L.borderRadius*t,background:R.background})),n(4,R.background=k(m,1,R.background),R)}if(905970624&t.$$.dirty[0])if(!g||"default"!==g.type&&"stretch"!==g.type)n(6,U="default"),f&&n(7,H=qr(f.value,H));else if(n(6,U=g.type),"default"===U)n(7,H=qr(null===n(25,P=g.space_between_centers)||void 0===P?void 0:P.value,H));else if("stretch"===U){const t=g;n(8,W=Oi(t.max_visible_items,W)),n(9,q=qr(null===n(26,S=t.item_spacing)||void 0===S?void 0:S.value,q))}134217728&t.$$.dirty[0]&&async function(t){if(I.pager_id&&t.has(I.pager_id)&&(n(12,B=t.get(I.pager_id)),await Sn(),J)){const t=J.children[B.currentItem];if(t){const e=t.offsetLeft;z.scroll({left:e-z.clientWidth/2,behavior:"smooth"})}}}(p),64&t.$$.dirty[0]&&n(13,h={placement:U})},n(14,d=M.getStore("pagers")),w(),w=he(d,(t=>n(27,p=t))),[I,N,O,T,R,L,U,H,W,q,z,J,B,h,d,u,c,l,s,a,o,i,r,G,function(t){if(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)return;const{size:e,currentItem:n}=B;if(t.which===Ea)K(n-1<0?n:n-1);else if(t.which===Ca)K(n+1>=e?n:n+1);else if(t.which===Aa)K(0);else{if(t.which!==Va)return;K(e-1)}t.preventDefault()},P,S,p,f,g,m,v,y,$,_,b,t=>G(t),function(t){An[t?"unshift":"push"]((()=>{J=t,n(11,J)}))},function(t){An[t?"unshift":"push"]((()=>{z=t,n(10,z)}))}]}const Ys={slider:"divkit-ef4f7",slider__input:"divkit-d1d65",slider__input_secondary:"divkit-c7980",slider__thumb:"divkit-f3453",slider__thumb_secondary:"divkit-e1984","slider__tracks-wrapper":"divkit-f7338","slider__tracks-inner":"divkit-ac903",slider__track:"divkit-e956c","slider__active-track":"divkit-ec5bf","slider__thumb-text":"divkit-c4af5","slider__thumb-text_secondary":"divkit-d8821",slider__tick:"divkit-bd9bf",slider__tick_active:"divkit-d8ce2",slider__tick_inactive:"divkit-e71e7"};function Zs(t,e){if(!t||!t.font_size)return e;const n=t.offset,r=t.text_color&&k(t.text_color)||"#000",i=Ti(t.font_weight);if(fi(t.font_size)&&"transparent"!==r){var o,a;const e={fontSize:Cr(t.font_size),fontWeight:i,textColor:r};return"number"==typeof(null==n||null===(o=n.x)||void 0===o?void 0:o.value)&&"number"==typeof(null==n||null===(a=n.y)||void 0===a?void 0:a.value)&&(e.offset={x:n.x.value,y:n.y.value}),e}}function Xs(t,e,n){return Math.max(e,Math.min(n,Number(t)))}function Qs(t,e,n){const r=t.slice();return r[80]=e[n],r}function tl(t,e,n){const r=t.slice();return r[80]=e[n],r}function el(t){let e,n;return e=new Ii({props:{cls:Jr("slider",Ys,t[25]),style:t[26],customDescription:!0,customActions:"slider",hasInnerFocusable:!0,json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[ll,t=>{let{focusHandler:e,blurHandler:n}=t;return{78:e,79:n}},t=>{let{focusHandler:e,blurHandler:n}=t;return[0,0,(e?65536:0)|(n?131072:0)]}]},$$scope:{ctx:t}}}),{c(){ir(e.$$.fragment)},l(t){or(e.$$.fragment,t)},m(t,r){ar(e,t,r),n=!0},p(t,n){const r={};33554432&n[0]&&(r.cls=Jr("slider",Ys,t[25])),67108864&n[0]&&(r.style=t[26]),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),411033584&n[0]|8585216&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Wn(e.$$.fragment,t),n=!0)},o(t){qn(e.$$.fragment,t),n=!1},d(t){sr(e,t)}}}function nl(t){let e,n;return{c(){e=Je("div"),this.h()},l(t){e=en(t,"DIV",{class:!0}),Ze(e).forEach(Me),this.h()},h(){We(e,"class",n=Ys.slider__tick+" "+Ys.slider__tick_active),cn(e,"--divkit-slider-tick",t[80])},m(t,n){Te(t,e,n)},p(t,n){524288&n[0]&&cn(e,"--divkit-slider-tick",t[80])},d(t){t&&Me(e)}}}function rl(t){let e,n;return{c(){e=Je("div"),this.h()},l(t){e=en(t,"DIV",{class:!0}),Ze(e).forEach(Me),this.h()},h(){We(e,"class",n=Ys.slider__tick+" "+Ys.slider__tick_inactive),cn(e,"--divkit-slider-tick",t[80])},m(t,n){Te(t,e,n)},p(t,n){1048576&n[0]&&cn(e,"--divkit-slider-tick",t[80])},d(t){t&&Me(e)}}}function il(t){let e,n,r,i,o;return{c(){e=Je("div"),n=Je("div"),r=Re(t[14]),this.h()},l(i){e=en(i,"DIV",{class:!0});var o=Ze(e);n=en(o,"DIV",{class:!0});var a=Ze(n);r=rn(a,t[14]),a.forEach(Me),o.forEach(Me),this.h()},h(){var r,a,s;We(n,"class",i=Ys["slider__thumb-text-inner"]),cn(n,"font-size",(null===(r=t[11])||void 0===r?void 0:r.fontSize)||"1em"),cn(n,"font-weight",(null===(a=t[11])||void 0===a?void 0:a.fontWeight)||""),cn(n,"color",(null===(s=t[11])||void 0===s?void 0:s.textColor)||"#000"),We(e,"class",o=Ys["slider__thumb-text"])},m(t,i){Te(t,e,i),Ne(e,n),Ne(n,r)},p(t,e){var i,o,a;16384&e[0]&&sn(r,t[14]),2048&e[0]&&cn(n,"font-size",(null===(i=t[11])||void 0===i?void 0:i.fontSize)||"1em"),2048&e[0]&&cn(n,"font-weight",(null===(o=t[11])||void 0===o?void 0:o.fontWeight)||""),2048&e[0]&&cn(n,"color",(null===(a=t[11])||void 0===a?void 0:a.textColor)||"#000")},d(t){t&&Me(e)}}}function ol(t){let e,n,r=t[12]&&al(t);return{c(){e=Je("div"),r&&r.c(),this.h()},l(t){e=en(t,"DIV",{class:!0});var n=Ze(e);r&&r.l(n),n.forEach(Me),this.h()},h(){We(e,"class",n=Ys.slider__thumb+" "+Ys.slider__thumb_secondary),cn(e,"border-radius",Cr(t[8].borderRadius)),cn(e,"background",t[8].background),cn(e,"box-shadow",t[8].boxShadow||"")},m(t,n){Te(t,e,n),r&&r.m(e,null)},p(t,n){t[12]?r?r.p(t,n):(r=al(t),r.c(),r.m(e,null)):r&&(r.d(1),r=null),256&n[0]&&cn(e,"border-radius",Cr(t[8].borderRadius)),256&n[0]&&cn(e,"background",t[8].background),256&n[0]&&cn(e,"box-shadow",t[8].boxShadow||"")},d(t){t&&Me(e),r&&r.d()}}}function al(t){let e,n,r,i,o;return{c(){e=Je("div"),n=Je("div"),r=Re(t[15]),this.h()},l(i){e=en(i,"DIV",{class:!0});var o=Ze(e);n=en(o,"DIV",{class:!0});var a=Ze(n);r=rn(a,t[15]),a.forEach(Me),o.forEach(Me),this.h()},h(){var r,a,s;We(n,"class",i=Ys["slider__thumb-text-inner"]),cn(n,"font-size",(null===(r=t[12])||void 0===r?void 0:r.fontSize)||"1em"),cn(n,"font-weight",(null===(a=t[12])||void 0===a?void 0:a.fontWeight)||""),cn(n,"color",(null===(s=t[12])||void 0===s?void 0:s.textColor)||"#000"),We(e,"class",o=Ys["slider__thumb-text"]+" "+Ys["slider__thumb-text_secondary"])},m(t,i){Te(t,e,i),Ne(e,n),Ne(n,r)},p(t,e){var i,o,a;32768&e[0]&&sn(r,t[15]),4096&e[0]&&cn(n,"font-size",(null===(i=t[12])||void 0===i?void 0:i.fontSize)||"1em"),4096&e[0]&&cn(n,"font-weight",(null===(o=t[12])||void 0===o?void 0:o.fontWeight)||""),4096&e[0]&&cn(n,"color",(null===(a=t[12])||void 0===a?void 0:a.textColor)||"#000")},d(t){t&&Me(e)}}}function sl(t){let e,n,r,i,o;return{c(){e=Je("input"),this.h()},l(t){e=en(t,"INPUT",{type:!0,class:!0,min:!0,max:!0,step:!0,"aria-label":!0}),this.h()},h(){We(e,"type","range"),We(e,"class",n=t[18]?Ys.slider__input:"".concat(Ys.slider__input," ").concat(Ys.slider__input_secondary)),We(e,"min",t[5]),We(e,"max",t[6]),We(e,"step","1"),e.value=r=t[18]?t[14]:t[15],We(e,"aria-label",t[22])},m(n,r){Te(n,e,r),i||(o=[He(e,"input",t[72]),He(e,"mousedown",(function(){le(t[16]?t[41]:null)&&(t[16]?t[41]:null).apply(this,arguments)})),He(e,"touchstart",(function(){le(t[16]?t[41]:null)&&(t[16]?t[41]:null).apply(this,arguments)})),He(e,"focus",(function(){le(t[78])&&t[78].apply(this,arguments)})),He(e,"blur",(function(){le(t[79])&&t[79].apply(this,arguments)}))],i=!0)},p(i,o){t=i,262144&o[0]&&n!==(n=t[18]?Ys.slider__input:"".concat(Ys.slider__input," ").concat(Ys.slider__input_secondary))&&We(e,"class",n),32&o[0]&&We(e,"min",t[5]),64&o[0]&&We(e,"max",t[6]),311296&o[0]&&r!==(r=t[18]?t[14]:t[15])&&(e.value=r),4194304&o[0]&&We(e,"aria-label",t[22])},d(t){t&&Me(e),i=!1,se(o)}}}function ll(t){let e,n,r,i,o,a,s,l,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x=Yn(t[19]),k=[];for(let e=0;e<x.length;e+=1)k[e]=nl(tl(t,x,e));let E=Yn(t[20]),C=[];for(let e=0;e<E.length;e+=1)C[e]=rl(Qs(t,E,e));let A=t[11]&&il(t),V=t[16]&&ol(t),D=t[16]&&sl(t);return{c(){e=Je("div"),n=Je("div"),r=Je("div"),o=Le(),a=Je("div"),l=Le();for(let t=0;t<k.length;t+=1)k[t].c();c=Le();for(let t=0;t<C.length;t+=1)C[t].c();u=Le(),d=Je("div"),A&&A.c(),p=Le(),V&&V.c(),f=Le(),g=Je("input"),y=Le(),D&&D.c(),this.h()},l(t){e=en(t,"DIV",{class:!0});var i=Ze(e);n=en(i,"DIV",{class:!0});var s=Ze(n);r=en(s,"DIV",{class:!0}),Ze(r).forEach(Me),o=on(s),a=en(s,"DIV",{class:!0}),Ze(a).forEach(Me),l=on(s);for(let t=0;t<k.length;t+=1)k[t].l(s);c=on(s);for(let t=0;t<C.length;t+=1)C[t].l(s);u=on(s),d=en(s,"DIV",{class:!0});var h=Ze(d);A&&A.l(h),h.forEach(Me),p=on(s),V&&V.l(s),f=on(s),g=en(s,"INPUT",{type:!0,class:!0,min:!0,max:!0,step:!0,"aria-label":!0}),y=on(s),D&&D.l(s),s.forEach(Me),i.forEach(Me),this.h()},h(){We(r,"class",i=Ys.slider__track),cn(r,"height",Cr(t[9].height)),cn(r,"border-radius",Cr(t[9].borderRadius)),cn(r,"background",t[9].background),cn(r,"box-shadow",t[9].boxShadow||""),We(a,"class",s=Ys["slider__active-track"]),cn(a,"left",(100*t[27]).toFixed(2)+"%"),cn(a,"width",(100*t[28]).toFixed(2)+"%"),cn(a,"height",Cr(t[10].height)),cn(a,"border-radius",Cr(t[10].borderRadius)),cn(a,"background",t[10].background),cn(a,"box-shadow",t[10].boxShadow||""),We(d,"class",h=Ys.slider__thumb),cn(d,"border-radius",Cr(t[7].borderRadius)),cn(d,"background",t[7].background),cn(d,"box-shadow",t[7].boxShadow||""),We(g,"type","range"),We(g,"class",m=t[18]?"".concat(Ys.slider__input," ").concat(Ys.slider__input_secondary):Ys.slider__input),We(g,"min",t[5]),We(g,"max",t[6]),We(g,"step","1"),g.value=v=t[18]?t[15]:t[14],We(g,"aria-label",t[21]),We(n,"class",$=Ys["slider__tracks-inner"]),We(e,"class",_=Ys["slider__tracks-wrapper"])},m(i,s){Te(i,e,s),Ne(e,n),Ne(n,r),Ne(n,o),Ne(n,a),Ne(n,l);for(let t=0;t<k.length;t+=1)k[t]&&k[t].m(n,null);Ne(n,c);for(let t=0;t<C.length;t+=1)C[t]&&C[t].m(n,null);Ne(n,u),Ne(n,d),A&&A.m(d,null),Ne(n,p),V&&V.m(n,null),Ne(n,f),Ne(n,g),t[71](g),Ne(n,y),D&&D.m(n,null),t[73](n),b||(w=[He(g,"input",t[70]),He(g,"focus",(function(){le(t[78])&&t[78].apply(this,arguments)})),He(g,"blur",(function(){le(t[79])&&t[79].apply(this,arguments)}))],b=!0)},p(e,i){if(t=e,512&i[0]&&cn(r,"height",Cr(t[9].height)),512&i[0]&&cn(r,"border-radius",Cr(t[9].borderRadius)),512&i[0]&&cn(r,"background",t[9].background),512&i[0]&&cn(r,"box-shadow",t[9].boxShadow||""),134217728&i[0]&&cn(a,"left",(100*t[27]).toFixed(2)+"%"),268435456&i[0]&&cn(a,"width",(100*t[28]).toFixed(2)+"%"),1024&i[0]&&cn(a,"height",Cr(t[10].height)),1024&i[0]&&cn(a,"border-radius",Cr(t[10].borderRadius)),1024&i[0]&&cn(a,"background",t[10].background),1024&i[0]&&cn(a,"box-shadow",t[10].boxShadow||""),524288&i[0]){let e;for(x=Yn(t[19]),e=0;e<x.length;e+=1){const r=tl(t,x,e);k[e]?k[e].p(r,i):(k[e]=nl(r),k[e].c(),k[e].m(n,c))}for(;e<k.length;e+=1)k[e].d(1);k.length=x.length}if(1048576&i[0]){let e;for(E=Yn(t[20]),e=0;e<E.length;e+=1){const r=Qs(t,E,e);C[e]?C[e].p(r,i):(C[e]=rl(r),C[e].c(),C[e].m(n,u))}for(;e<C.length;e+=1)C[e].d(1);C.length=E.length}t[11]?A?A.p(t,i):(A=il(t),A.c(),A.m(d,null)):A&&(A.d(1),A=null),128&i[0]&&cn(d,"border-radius",Cr(t[7].borderRadius)),128&i[0]&&cn(d,"background",t[7].background),128&i[0]&&cn(d,"box-shadow",t[7].boxShadow||""),t[16]?V?V.p(t,i):(V=ol(t),V.c(),V.m(n,f)):V&&(V.d(1),V=null),262144&i[0]&&m!==(m=t[18]?"".concat(Ys.slider__input," ").concat(Ys.slider__input_secondary):Ys.slider__input)&&We(g,"class",m),32&i[0]&&We(g,"min",t[5]),64&i[0]&&We(g,"max",t[6]),311296&i[0]&&v!==(v=t[18]?t[15]:t[14])&&(g.value=v),2097152&i[0]&&We(g,"aria-label",t[21]),t[16]?D?D.p(t,i):(D=sl(t),D.c(),D.m(n,null)):D&&(D.d(1),D=null)},d(n){n&&Me(e),ze(k,n),ze(C,n),A&&A.d(),V&&V.d(),t[71](null),D&&D.d(),t[73](null),b=!1,se(w)}}}function cl(t){let e,n,r,i,o=!t[13]&&el(t);return{c(){o&&o.c(),e=Ue()},l(t){o&&o.l(t),e=Ue()},m(a,s){o&&o.m(a,s),Te(a,e,s),n=!0,r||(i=He(window,"resize",t[43]),r=!0)},p(t,n){t[13]?o&&(Un(),qn(o,1,1,(()=>{o=null})),Hn()):o?(o.p(t,n),8192&n[0]&&Wn(o,1)):(o=el(t),o.c(),Wn(o,1),o.m(e.parentNode,e))},i(t){n||(Wn(o),n=!0)},o(t){qn(o),n=!1},d(t){t&&Me(e),o&&o.d(t),r=!1,i()}}}const ul={width:10,height:10,borderRadius:5,background:"#000"},dl=["rounded_rectangle","circle"],hl=["rounded_rectangle"];function pl(t,e,n,r,i){let o=[];if(i)for(let i=t;i<e;++i)o.push((i-n)/(r-n));else{for(let e=n;e<t;++e)o.push((e-n)/(r-n));for(let t=e;t<r+1;++t)o.push((t-n)/(r-n))}return o}function fl(t,e,n){let r,i,o,a,s,l,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x,k,E,C,A,V,D,j,F,P,S,I,N,O,T,M,z,J,B=ne,R=ne,L=ne,U=ne,H=ne,W=ne,q=ne,G=ne,K=ne,Y=ne,Z=ne,X=ne,Q=ne,tt=ne;var et,nt,rt,it;t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>K())),t.$$.on_destroy.push((()=>Y())),t.$$.on_destroy.push((()=>Z())),t.$$.on_destroy.push((()=>X())),t.$$.on_destroy.push((()=>Q())),t.$$.on_destroy.push((()=>tt()));let{json:ot={}}=e,{templateContext:at}=e,{origJson:st}=e,{layoutParams:lt}=e;const ct=kn(wr),dt=kn(ai);let ht,pt,ft,gt,mt,vt,yt=!1,$t=0,_t=100,bt=ul,wt=bt,xt=ul,kt=ul,Et=null,Ct=null,At=vt,Vt="",Dt="",jt=!1,Ft=Xs(M||0,$t,_t),Pt=Xs(T||0,$t,_t);function St(t,e){const r=Number(t.target.value);yt===("first"===e)?(n(15,Pt=r),a.setValue(r)):(n(14,Ft=r),o.setValue(r))}let It=!1;function Nt(){if(!ft)return;const t=_t-$t,e=(null==Et?void 0:Et.width)||0,n=(null==Ct?void 0:Ct.width)||0;Math.max(e,n)*t>=(null==ft?void 0:ft.clientWidth)?It||(ct.logError(ut(new Error("Slider ticks overlap each other"),{level:"warn"})),It=!0):It=!1}const Ot=Gi(Nt,50);return bn((()=>{Nt()})),wn((()=>{ht&&(ct.unregisterFocusable(ht),n(48,ht=void 0))})),t.$$set=t=>{"json"in t&&n(0,ot=t.json),"templateContext"in t&&n(1,at=t.templateContext),"origJson"in t&&n(2,st=t.origJson),"layoutParams"in t&&n(3,lt=t.layoutParams)},t.$$.update=()=>{if(129&t.$$.dirty[0]&&ot&&(n(7,bt=ul),n(8,wt=bt),n(9,xt=ul),n(10,kt=ul),n(49,Et=null),n(50,Ct=null),n(11,vt=void 0),n(12,At=void 0),n(21,Vt=""),n(22,Dt="")),1&t.$$.dirty[0]&&n(55,r=ot.thumb_value_variable),1&t.$$.dirty[0]&&n(16,i=ot.thumb_secondary_value_variable),16777216&t.$$.dirty[1]&&(n(23,o=r&&ct.getVariable(r,"integer")||mr("temp","integer",0)),X(),X=he(o,(t=>n(67,M=t)))),65536&t.$$.dirty[0]&&(n(24,a=i&&ct.getVariable(i,"integer")||mr("temp","integer",0)),Z(),Z=he(a,(t=>n(66,T=t)))),1&t.$$.dirty[0]&&(n(40,s=ct.getDerivedFromVars(ot.min_value)),tt(),tt=he(s,(t=>n(69,J=t)))),1&t.$$.dirty[0]&&(n(39,l=ct.getDerivedFromVars(ot.max_value)),Q(),Q=he(l,(t=>n(68,z=t)))),1&t.$$.dirty[0]&&(n(38,c=ct.getDerivedFromVars(ot.thumb_style)),Y(),Y=he(c,(t=>n(65,O=t)))),1&t.$$.dirty[0]&&(n(37,u=ct.getDerivedFromVars(ot.thumb_secondary_style)),K(),K=he(u,(t=>n(64,N=t)))),1&t.$$.dirty[0]&&(n(36,d=ct.getDerivedFromVars(ot.track_inactive_style)),G(),G=he(d,(t=>n(63,I=t)))),1&t.$$.dirty[0]&&(n(35,h=ct.getDerivedFromVars(ot.track_active_style)),q(),q=he(h,(t=>n(62,S=t)))),1&t.$$.dirty[0]&&(n(34,p=ct.getDerivedFromVars(ot.tick_mark_active_style)),W(),W=he(p,(t=>n(61,P=t)))),1&t.$$.dirty[0]&&(n(33,f=ct.getDerivedFromVars(ot.tick_mark_inactive_style)),H(),H=he(f,(t=>n(60,F=t)))),1&t.$$.dirty[0]&&(n(32,g=ct.getDerivedFromVars(ot.thumb_text_style)),U(),U=he(g,(t=>n(59,j=t)))),1&t.$$.dirty[0]&&(n(31,m=ct.getDerivedFromVars(ot.thumb_secondary_text_style)),L(),L=he(m,(t=>n(58,D=t)))),1&t.$$.dirty[0]&&(n(30,v=ct.getDerivedFromVars(ot.accessibility)),R(),R=he(v,(t=>n(57,V=t)))),1&t.$$.dirty[0]&&(n(29,y=ct.getDerivedFromVars(ot.secondary_value_accessibility)),B(),B=he(y,(t=>n(56,A=t)))),96&t.$$.dirty[0]|192&t.$$.dirty[2]&&(n(5,$t=Xr(J,$t)),n(6,_t=Xr(z,_t)),Nt()),16480&t.$$.dirty[0]|32&t.$$.dirty[2]){const t=Xs(M||0,$t,_t);t!==Ft&&n(14,Ft=t)}if(32864&t.$$.dirty[0]|16&t.$$.dirty[2]){const t=Xs(T||0,$t,_t);t!==Pt&&n(15,Pt=t)}if(128&t.$$.dirty[0]|8&t.$$.dirty[2]&&n(7,bt=fo(O,dl,bt)),128&t.$$.dirty[0]|4&t.$$.dirty[2]&&n(8,wt=fo(N,dl,bt)),512&t.$$.dirty[0]|2&t.$$.dirty[2]&&n(9,xt=fo(I,hl,xt)),1024&t.$$.dirty[0]|1&t.$$.dirty[2]&&n(10,kt=fo(S,hl,kt)),1073741824&t.$$.dirty[1]){let t=fo(P,dl,ul);t!==ul&&n(49,Et=t)}if(114784&t.$$.dirty[0]|262144&t.$$.dirty[1]&&(Et?(n(19,gt=i?pl(Math.min(Ft,Pt),Math.max(Ft,Pt)+1,$t,_t,!0):pl($t,Ft,$t,_t,!0)),Nt()):n(19,gt=[])),536870912&t.$$.dirty[1]){let t=fo(F,dl,ul);t!==ul&&n(50,Ct=t)}if(114784&t.$$.dirty[0]|524288&t.$$.dirty[1]&&(Ct?(n(20,mt=i?pl(Math.min(Ft,Pt),Math.max(Ft,Pt)+1,$t,_t,!1):pl(Ft+1,_t+1,$t,_t,!0)),Nt()):n(20,mt=[])),2048&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&n(11,vt=Zs(j,vt)),2048&t.$$.dirty[0]|134217728&t.$$.dirty[1]&&n(12,At=Zs(D,vt)),67108864&t.$$.dirty[1]&&((null==V?void 0:V.description)?n(21,Vt=V.description):ct.logError(ut(new Error('Missing accessibility "description" for slider'),{level:"warn"}))),65536&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&((null==A?void 0:A.description)?n(22,Dt=A.description):i&&ct.logError(ut(new Error('Missing second accessibility "description" for slider'),{level:"warn"}))),9856&t.$$.dirty[0]){let t=!1;dt.hasAction()?(ct.logError(ut(new Error('Cannot show "slider" inside component with action'))),t=!0):bt===ul?(ct.logError(ut(new Error('Missing "thumb_style" in slider'))),t=!0):kt===ul?(ct.logError(ut(new Error('Missing "track_active_style" in slider'))),t=!0):xt===ul&&(ct.logError(ut(new Error('Missing "track_inactive_style" in slider'))),t=!0),t!==jt&&n(13,jt=t)}384&t.$$.dirty[0]&&n(54,$=Cr(Math.max(...[bt.width,wt.width,0].filter(Hr)))),384&t.$$.dirty[0]&&n(53,_=Cr(Math.max(...[bt.height,wt.height,0].filter(Hr)))),16480&t.$$.dirty[0]&&n(52,b=(Ft-$t)/(_t-$t)),98400&t.$$.dirty[0]&&n(51,w=i?(Pt-$t)/(_t-$t):void 0),3145728&t.$$.dirty[1]&&n(28,x=void 0!==w?Math.abs(w-b):b),3145728&t.$$.dirty[1]&&n(27,k=void 0!==w?Math.min(w,b):0),6528&t.$$.dirty[0]|16637952&t.$$.dirty[1]&&n(26,E={"--divkit-slider-thumb-width":Cr(bt.width),"--divkit-slider-thumb-height":Cr(bt.height),"--divkit-slider-thumb-secondary-width":Cr(wt.width),"--divkit-slider-thumb-secondary-height":Cr(wt.height),"--divkit-slider-text-offset-x":(null===n(44,et=null==vt?void 0:vt.offset)||void 0===et?void 0:et.x)?Ar(vt.offset.x):void 0,"--divkit-slider-text-offset-y":(null===n(45,nt=null==vt?void 0:vt.offset)||void 0===nt?void 0:nt.y)?Ar(vt.offset.y):void 0,"--divkit-slider-text-secondary-offset-x":(null===n(46,rt=null==At?void 0:At.offset)||void 0===rt?void 0:rt.x)?Ar(At.offset.x):void 0,"--divkit-slider-text-secondary-offset-y":(null===n(47,it=null==At?void 0:At.offset)||void 0===it?void 0:it.y)?Ar(At.offset.y):void 0,"--divkit-slider-tick-active-width":Et?Cr(Et.width):void 0,"--divkit-slider-tick-active-height":Et?Cr(Et.height):void 0,"--divkit-slider-tick-active-border-radius":Et?Cr(Et.borderRadius):void 0,"--divkit-slider-tick-active-background":(null==Et?void 0:Et.background)||void 0,"--divkit-slider-tick-active-box-shadow":(null==Et?void 0:Et.boxShadow)||void 0,"--divkit-slider-tick-inactive-width":Ct?Cr(Ct.width):void 0,"--divkit-slider-tick-inactive-height":Ct?Cr(Ct.height):void 0,"--divkit-slider-tick-inactive-border-radius":Ct?Cr(Ct.borderRadius):void 0,"--divkit-slider-tick-inactive-background":(null==Ct?void 0:Ct.background)||void 0,"--divkit-slider-tick-inactive-box-shadow":(null==Ct?void 0:Ct.boxShadow)||void 0,"--divkit-slider-max-thumb-width":$,"--divkit-slider-max-thumb-height":_,"--divkit-slider-track-part":b,"--divkit-slider-track-secondary-part":w}),25&t.$$.dirty[0]|131072&t.$$.dirty[1]&&ot&&pt&&(ht&&(ct.unregisterFocusable(ht),n(48,ht=void 0)),ot.id&&!(null==lt?void 0:lt.fakeElement)&&(n(48,ht=ot.id),ct.registerFocusable(ot.id,{focus(){pt&&pt.focus()}})))},n(25,C={}),[ot,at,st,lt,pt,$t,_t,bt,wt,xt,kt,vt,At,jt,Ft,Pt,i,ft,yt,gt,mt,Vt,Dt,o,a,C,E,k,x,y,v,m,g,f,p,h,d,u,c,l,s,function(t){var e,r;const i="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===i)return;const o=ft.getBoundingClientRect(),a=(i-o.left)/o.width,s=(_t-$t)*a,l=Math.round(Xs(s,$t,_t));n(18,yt=l<(Ft+Pt)/2==Ft<Pt)},St,Ot,et,nt,rt,it,ht,Et,Ct,w,b,_,$,r,A,V,D,j,F,P,S,I,N,O,T,M,z,J,t=>St(t,"first"),function(t){An[t?"unshift":"push"]((()=>{pt=t,n(4,pt)}))},t=>St(t,"second"),function(t){An[t?"unshift":"push"]((()=>{ft=t,n(17,ft)}))}]}const gl={input:"divkit-c3a4c","input_alignment-horizontal_center":"divkit-fc52a","input_alignment-horizontal_right":"divkit-e8038",input__input:"divkit-f11e0",input__placeholder:"divkit-b7593","input_alignment-vertical_top":"divkit-bdccd","input_alignment-vertical_bottom":"divkit-fc670","input_alignment-vertical_baseline":"divkit-dd6af","input_highlight-color":"divkit-cc00f",input__input_singleline:"divkit-ffd1e","input__scroll-wrapper":"divkit-ad8a3",input__input_multiline:"divkit-f61f0","input__input_has-custom-focus":"divkit-e6b50"};function ml(t,e){if(t===e)return{start:t.length,added:0,removed:0};if(t.length>e.length){const n=ml(e,t);return{start:n.start,added:n.removed,removed:n.added}}let n=0,r=e.length-1;const i=e.length-t.length;for(;n<r&&n<t.length&&t[n]===e[n];)++n;for(;r-i>=n&&t[r-i]===e[r];)--r;return++r,{start:n,added:r-n,removed:r-n-i}}function vl(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class yl{constructor(t){this.char=t}}class $l{constructor(t,e,n){this.char=t,this.filter=e,this.placeholder=n}}class _l{constructor(t){vl(this,"filters",new Map),vl(this,"destructedValue",[]),vl(this,"cursorPos",0),this.maskData=t,this.updateMaskData(t)}get cursorPosition(){return this.cursorPos}get rawValue(){return this.collectValueRange(0,this.destructedValue.length-1)}get value(){let t="";for(let e=0;e<this.destructedValue.length;++e){const n=this.destructedValue[e];if(n instanceof yl)t+=n.char;else if(n instanceof $l)if(n.char)t+=n.char;else{if(!this.maskData.alwaysVisible)break;t+=n.placeholder}}return t}firstEmptyHolderIndex(){const t=this.destructedValue.findIndex((t=>t instanceof $l&&!t.char));return-1!==t?t:this.destructedValue.length}updateMaskData(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=this.maskData!==t&&e?this.rawValue:null;this.filters=new Map,this.maskData=t,this.maskData.decoding.forEach((t=>{if(t.filter)try{const e=new RegExp(t.filter);this.filters.set(t.key,e)}catch(e){this.onException(ut(e,{level:"error",additional:{key:t.key}}))}})),this.destructedValue=this.maskData.pattern.split("").map((t=>{const e=this.maskData.decoding.find((e=>e.key===t));return e?new $l(null,this.filters.get(e.key),e.placeholder):new yl(t)})),null!==n&&this.overrideRawValue(n)}overrideRawValue(t){this.clearRange(0,this.destructedValue.length),this.replaceChars(t,0),this.cursorPos=Math.min(this.cursorPos,this.value.length)}applyChangeFrom(t,e){const n=ml(this.value,t);void 0!==e&&(n.start=Math.max(0,e-n.added));const r=this.buildBodySubstring(n,t),i=this.buildTailSubstring(n);this.cleanup(n);const o=this.firstEmptyHolderIndex(),a=i?this.calculateMaxShift(i,o):void 0;this.replaceChars(r,o,a);const s=this.firstEmptyHolderIndex();this.replaceChars(i,s),this.calculateCursorPosition(n,s)}buildBodySubstring(t,e){return e.substring(t.start,t.start+t.added)}buildTailSubstring(t){return this.collectValueRange(t.start+t.removed,this.destructedValue.length-1)}calculateMaxShift(t,e){if(this.filters.size<=1){let n=0,r=e;for(;r<this.destructedValue.length;)this.destructedValue[r]instanceof $l&&++n,++r;return Math.max(0,n-t.length)}const n=this.calculateInsertableSubstring(t,e);let r=0;for(;r<this.destructedValue.length&&n===this.calculateInsertableSubstring(t,e+r);)++r;return Math.max(0,r-1)}cleanup(t){if(0===t.added&&1===t.removed){let e=t.start;for(;e>=0;){const t=this.destructedValue[e];if(t instanceof $l&&null!==t.char){t.char=null;break}--e}}this.clearRange(t.start,this.destructedValue.length)}clearRange(t,e){let n=t;for(;n<e&&n<this.destructedValue.length;){const t=this.destructedValue[n];t instanceof $l&&(t.char=null),++n}}calculateCursorPosition(t,e){const n=this.firstEmptyHolderIndex();let r;r=t.start<n?Math.min(this.firstHolderAfter(e),this.value.length):n,this.cursorPos=r}calculateInsertableSubstring(t,e){let n="",r=e;const i=()=>{for(var t;r<this.destructedValue.length&&!(this.destructedValue[r]instanceof $l);)++r;return null===(t=this.destructedValue[r])||void 0===t?void 0:t.filter};return t.split("").forEach((t=>{const e=i();null!=e&&e.test(t)&&(n+=t,++r)})),n}collectValueRange(t,e){let n="",r=t;for(;r<=e;){const t=this.destructedValue[r];t instanceof $l&&null!==t.char&&(n+=t.char),++r}return n}replaceChars(t,e,n){let r=this.calculateInsertableSubstring(t,e);void 0!==n&&(r=r.substring(0,n));let i=e,o=0;for(;i<this.destructedValue.length&&o<r.length;){const t=this.destructedValue[i],e=r[o];t instanceof $l&&(t.char=e,++o),++i}}firstHolderAfter(t){let e=t;for(;e<this.destructedValue.length&&!(this.destructedValue[e]instanceof $l);)++e;return e}}class bl extends _l{constructor(t,e){super(t),this.logError=e}onException(t){this.logError(t)}}function wl(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class xl extends _l{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,e=arguments.length>1?arguments[1]:void 0;super({pattern:"",decoding:[],alwaysVisible:!1}),wl(this,"currencyFormatter",new Intl.NumberFormat),wl(this,"decimalSeparator","."),wl(this,"localeDigits",{}),wl(this,"trimZeroRegExp",new RegExp("")),this.logError=e,this.initFormatter(t)}updateCurrencyParams(t){const e=this.parseFormat(this.rawValue)||0;this.initFormatter(t);const n=e.toString().replace(".",this.decimalSeparator);this.applyChangeFrom(n)}initFormatter(t){try{this.currencyFormatter=new Intl.NumberFormat(t,{minimumFractionDigits:2,maximumFractionDigits:2}),this.decimalSeparator=this.currencyFormatter.format(0)[1],this.localeDigits=new Array(10).fill("").reduce(((t,e,n)=>(t[n]=this.currencyFormatter.format(n)[0],t)),{}),this.trimZeroRegExp=new RegExp("^".concat(this.localeDigits[0],"+"))}catch(e){this.onException(ut(e,{level:"error",additional:{locale:t}}))}}invalidateMaskDataForFormatted(t){const e=this.currencyFormatter.format(t),n=this.formatPattern(e),r=[{key:"#",filter:"[".concat([...Object.values(this.localeDigits)].join(""),"]"),placeholder:this.localeDigits[0]},{key:this.decimalSeparator,filter:"[".concat(this.decimalSeparator,"]"),placeholder:this.decimalSeparator}];this.updateMaskData({pattern:n,decoding:r,alwaysVisible:this.maskData.alwaysVisible},!1)}overrideRawValue(t){const e=this.parseFormat(t)||0;this.invalidateMaskDataForFormatted(e),super.overrideRawValue(t)}applyChangeFrom(t,e){const n=ml(this.value,t),r=this.value.lastIndexOf(this.decimalSeparator),i=t.lastIndexOf(this.decimalSeparator),o=r!==i||-1===r&&-1===i,a=this.validFormat(t,n);this.cleanup(n);const s=this.parseFormat(a)||0;o&&this.invalidateMaskDataForFormatted(s),this.replaceChars(a,0),this.value.length>n.start&&!this.isDigit(this.value[n.start])?this.cursorPos=null!=e?e:this.cursorPosition:this.cursorPos=Math.abs(this.value.length-(t.length-(null!=e?e:this.cursorPosition)))}parseFormat(t){return parseFloat(t.replace(/./g,(t=>this.localeDigits[t]||(t===this.decimalSeparator?".":""))))}formatPattern(t){let e="";for(const n of t)e+=this.isDigit(n)?"#":n;return e}validFormat(t,e){if(!t)return"";let n=-1,r=0;for(;r<t.length;){if(t[r]===this.decimalSeparator&&!this.inDiff(e,r)){n=r;break}r++}let i=-1;1===e.added&&0===e.removed&&[",","."].includes(t[e.start])&&(i=e.start);const o=this.currencyFormatter.resolvedOptions().maximumFractionDigits;let a=o;if(-1!==n)for(r=n;r<t.length;)this.isDigit(t[r])&&!this.inDiff(e,r)&&a--,r++;else{let n=!1;for(let r=0;r<t.length;r++){const i=t[r];i===this.decimalSeparator?n=!0:!this.inDiff(e,r)&&n&&this.isDigit(i)&&a--}}const s=t.includes(this.decimalSeparator)||-1!==i,l=[];r=t.length-1;let c=!1;for(;r>=0;){const u=t[r],d=l.length<=o;this.isDigit(u)?this.inDiff(e,r)&&!c&&s?a>0&&(l.push(u),a--):l.push(u):d&&-1===n&&r===i?(l.push(this.decimalSeparator),c=!0):!d||u!==this.decimalSeparator||n!==r&&-1!==n||(l.push(this.decimalSeparator),c=!0,n=r),r--}return l.reverse().join("").replace(this.trimZeroRegExp,"")}inDiff(t,e){return t.start<=e&&e<t.start+t.added}isDigit(t){return Boolean(this.localeDigits[t])}onException(t){this.logError(t)}}const kl=3;function El(t){const e=t.textContent;let n=0;return"string"==typeof e&&(n+=e.length,t instanceof HTMLElement&&("DIV"===t.tagName||"BR"===t.tagName)&&++n),n}function Cl(t,e){if(t.nodeType!==kl)if(t instanceof HTMLElement&&"BR"===t.tagName)try{const e=window.getSelection();if(e){e.removeAllRanges();const n=document.createRange(),r=t.parentNode,i=Array.from(r.childNodes).indexOf(t)+1;n.setStart(r,i),n.setEnd(r,i),e.addRange(n)}}catch(t){}else for(let n=0,r=t.childNodes.length;n<r;++n){const r=t.childNodes[n],i=El(r);if(e<=i)return void Cl(r,e);e-=i}else try{const n=window.getSelection();if(n){n.removeAllRanges();const r=document.createRange();r.setStart(t,e),r.setEnd(t,e),n.addRange(r)}}catch(t){}}function Al(t){let e,n;return e=new Ii({props:{cls:Jr("input",gl,t[17]),style:t[16],customDescription:!0,customActions:"input",customPaddings:!0,hasInnerFocusable:!0,json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Fl,t=>{let{focusHandler:e,blurHandler:n,hasCustomFocus:r}=t;return{88:e,89:n,90:r}},t=>{let{focusHandler:e,blurHandler:n,hasCustomFocus:r}=t;return[0,0,(e?67108864:0)|(n?134217728:0)|(r?268435456:0)]}]},$$scope:{ctx:t}}}),{c(){ir(e.$$.fragment)},l(t){or(e.$$.fragment,t)},m(t,r){ar(e,t,r),n=!0},p(t,n){const r={};131072&n[0]&&(r.cls=Jr("input",gl,t[17])),65536&n[0]&&(r.style=t[16]),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),315120&n[0]|32&n[1]|1006632960&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Wn(e.$$.fragment,t),n=!0)},o(t){qn(e.$$.fragment,t),n=!1},d(t){sr(e,t)}}}function Vl(t){let e,n,r,i,o;return{c(){e=Je("input"),this.h()},l(t){e=en(t,"INPUT",{type:!0,inputmode:!0,class:!0,autocomplete:!0,autocapitalize:!0,"aria-label":!0,style:!0,placeholder:!0}),this.h()},h(){We(e,"type",t[9]),We(e,"inputmode",t[10]),We(e,"class",n=Jr("input__input",gl,{"has-custom-focus":t[90],singleline:!0})),We(e,"autocomplete","off"),We(e,"autocapitalize","off"),We(e,"aria-label",t[11]),We(e,"style",r=Er(t[15])),We(e,"placeholder",t[18]),e.value=t[5]},m(n,r){Te(n,e,r),t[80](e),i||(o=[He(e,"input",t[37]),He(e,"mousedown",(function(){le(t[36]?t[38]:void 0)&&(t[36]?t[38]:void 0).apply(this,arguments)})),He(e,"click",(function(){le(t[36]?t[39]:void 0)&&(t[36]?t[39]:void 0).apply(this,arguments)})),He(e,"focus",(function(){le(t[88])&&t[88].apply(this,arguments)})),He(e,"blur",(function(){le(t[89])&&t[89].apply(this,arguments)}))],i=!0)},p(i,o){t=i,512&o[0]&&We(e,"type",t[9]),1024&o[0]&&We(e,"inputmode",t[10]),268435456&o[2]&&n!==(n=Jr("input__input",gl,{"has-custom-focus":t[90],singleline:!0}))&&We(e,"class",n),2048&o[0]&&We(e,"aria-label",t[11]),32768&o[0]&&r!==(r=Er(t[15]))&&We(e,"style",r),262144&o[0]&&We(e,"placeholder",t[18]),32&o[0]&&e.value!==t[5]&&(e.value=t[5])},d(n){n&&Me(e),t[80](null),i=!1,se(o)}}}function Dl(t){let e,n,r,i,o,a,s,l,c,u,d,h,p=!t[7]&&t[18]&&jl(t);return{c(){e=Je("span"),p&&p.c(),n=Le(),r=Je("span"),i=Re(""),a=Le(),s=Je("span"),this.h()},l(t){e=en(t,"SPAN",{class:!0});var o=Ze(e);p&&p.l(o),n=on(o),r=en(o,"SPAN",{"aria-hidden":!0,style:!0});var l=Ze(r);i=rn(l,""),l.forEach(Me),a=on(o),s=en(o,"SPAN",{class:!0,autocapitalize:!0,contenteditable:!0,"aria-label":!0,style:!0}),Ze(s).forEach(Me),o.forEach(Me),this.h()},h(){We(r,"aria-hidden","true"),We(r,"style",o=Er(t[14])),We(s,"class",l=Jr("input__input",gl,{"has-custom-focus":t[90],multiline:!0})),We(s,"autocapitalize","off"),We(s,"contenteditable","true"),We(s,"aria-label",t[11]),We(s,"style",c=Er(t[15])),void 0===t[7]&&In((()=>t[79].call(s))),We(e,"class",u=gl["input__scroll-wrapper"])},m(o,l){Te(o,e,l),p&&p.m(e,null),Ne(e,n),Ne(e,r),Ne(r,i),Ne(e,a),Ne(e,s),t[78](s),void 0!==t[7]&&(s.innerText=t[7]),d||(h=[He(s,"input",t[79]),He(s,"input",t[37]),He(s,"paste",Nl),He(s,"mousedown",(function(){le(t[36]?t[38]:void 0)&&(t[36]?t[38]:void 0).apply(this,arguments)})),He(s,"click",(function(){le(t[36]?t[39]:void 0)&&(t[36]?t[39]:void 0).apply(this,arguments)})),He(s,"focus",(function(){le(t[88])&&t[88].apply(this,arguments)})),He(s,"blur",(function(){le(t[89])&&t[89].apply(this,arguments)}))],d=!0)},p(i,a){!(t=i)[7]&&t[18]?p?p.p(t,a):(p=jl(t),p.c(),p.m(e,n)):p&&(p.d(1),p=null),16384&a[0]&&o!==(o=Er(t[14]))&&We(r,"style",o),268435456&a[2]&&l!==(l=Jr("input__input",gl,{"has-custom-focus":t[90],multiline:!0}))&&We(s,"class",l),2048&a[0]&&We(s,"aria-label",t[11]),32768&a[0]&&c!==(c=Er(t[15]))&&We(s,"style",c),128&a[0]&&t[7]!==s.innerText&&(s.innerText=t[7])},d(n){n&&Me(e),p&&p.d(),t[78](null),d=!1,se(h)}}}function jl(t){let e,n,r,i;return{c(){e=Je("div"),n=Re(t[18]),this.h()},l(r){e=en(r,"DIV",{class:!0,"aria-hidden":!0,style:!0});var i=Ze(e);n=rn(i,t[18]),i.forEach(Me),this.h()},h(){We(e,"class",r=gl.input__placeholder),We(e,"aria-hidden","true"),We(e,"style",i=Er(t[15]))},m(t,r){Te(t,e,r),Ne(e,n)},p(t,r){262144&r[0]&&sn(n,t[18]),32768&r[0]&&i!==(i=Er(t[15]))&&We(e,"style",i)},d(t){t&&Me(e)}}}function Fl(t){let e;function n(t,e){return t[6]?Dl:Vl}let r=n(t),i=r(t);return{c(){i.c(),e=Ue()},l(t){i.l(t),e=Ue()},m(t,n){i.m(t,n),Te(t,e,n)},p(t,o){r===(r=n(t))&&i?i.p(t,o):(i.d(1),i=r(t),i&&(i.c(),i.m(e.parentNode,e)))},d(t){t&&Me(e),i.d(t)}}}function Pl(t){let e,n,r=!t[8]&&Al(t);return{c(){r&&r.c(),e=Ue()},l(t){r&&r.l(t),e=Ue()},m(t,i){r&&r.m(t,i),Te(t,e,i),n=!0},p(t,n){t[8]?r&&(Un(),qn(r,1,1,(()=>{r=null})),Hn()):r?(r.p(t,n),256&n[0]&&Wn(r,1)):(r=Al(t),r.c(),Wn(r,1),r.m(e.parentNode,e))},i(t){n||(Wn(r),n=!0)},o(t){qn(r),n=!1},d(t){t&&Me(e),r&&r.d(t)}}}const Sl="undefined"!=typeof document&&"inputMode"in document.createElement("input"),Il={email:"email",number:"number",phone:"tel",single_line_text:"text",multi_line_text:"text",uri:"url"};function Nl(t){if(t.preventDefault(),t.clipboardData){let e=t.clipboardData.getData("text/plain");e=e.trim(),document.execCommand("inserttext",!1,e)}}function Ol(t,e,n){let r,i,o,a,s,l,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x,E,C,A,V,D,j,F,P,S,I,N,O,T,M,z,J,B,R,L,U,H,W,q,G,K,Y=ne,Z=ne,X=ne,Q=ne,tt=ne,et=ne,nt=ne,rt=ne,it=ne,ot=ne,at=ne,st=ne,lt=ne,ct=ne,dt=ne,ht=ne,pt=ne,ft=ne,gt=ne;var mt;t.$$.on_destroy.push((()=>Y())),t.$$.on_destroy.push((()=>Z())),t.$$.on_destroy.push((()=>X())),t.$$.on_destroy.push((()=>Q())),t.$$.on_destroy.push((()=>tt())),t.$$.on_destroy.push((()=>et())),t.$$.on_destroy.push((()=>nt())),t.$$.on_destroy.push((()=>rt())),t.$$.on_destroy.push((()=>it())),t.$$.on_destroy.push((()=>ot())),t.$$.on_destroy.push((()=>at())),t.$$.on_destroy.push((()=>st())),t.$$.on_destroy.push((()=>lt())),t.$$.on_destroy.push((()=>ct())),t.$$.on_destroy.push((()=>dt())),t.$$.on_destroy.push((()=>ht())),t.$$.on_destroy.push((()=>pt())),t.$$.on_destroy.push((()=>ft())),t.$$.on_destroy.push((()=>gt()));let{json:vt={}}=e,{templateContext:yt}=e,{origJson:$t}=e,{layoutParams:_t}=e;const bt=kn(wr);let wt,xt,kt,Et,Ct,At=!1,Vt=null,Dt="",jt="",Ft=!1,Pt="",St=12,It="",Nt="",Ot="#000",Tt="",Mt="left",zt="center",Jt="multi_line_text",Bt="text",Rt="",Lt=null,Ut="",Ht="",Wt="";function qt(t){xt instanceof HTMLInputElement?n(4,xt.selectionStart=n(4,xt.selectionEnd=t,xt),xt):Cl(xt,t)}async function Gt(){if(!xt||!Vt)return;Vt.overrideRawValue(P),a.set(Vt.rawValue),$e(o,F=n(5,Dt=n(7,jt=Vt.value)),F);const t=Vt.cursorPosition;await Sn(),document.activeElement===xt&&qt(t)}return bn((()=>{xt&&Vt&&P&&(Vt.overrideRawValue(P),$e(o,F=n(5,Dt=n(7,jt=Vt.value)),F))})),wn((()=>{wt&&(bt.unregisterFocusable(wt),n(41,wt=void 0))})),t.$$set=t=>{"json"in t&&n(0,vt=t.json),"templateContext"in t&&n(1,yt=t.templateContext),"origJson"in t&&n(2,$t=t.origJson),"layoutParams"in t&&n(3,_t=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&vt&&(n(43,Pt=""),n(44,St=12),n(45,kt=void 0),n(46,It=""),n(47,Et=void 0),n(49,Ot="#000"),n(50,Tt=""),n(51,Mt="left"),n(52,zt="center"),n(53,Jt="multi_line_text"),n(9,Bt="text"),n(10,Ct=void 0)),1&t.$$.dirty[0]&&n(58,r=vt.text_variable),1&t.$$.dirty[0]|512&t.$$.dirty[1]&&n(59,i=null===n(40,mt=vt.mask)||void 0===mt?void 0:mt.raw_text_variable),134217728&t.$$.dirty[1]&&(n(13,o=r&&bt.getVariable(r,"string")||mr("temp","string","")),Y(),Y=he(o,(t=>n(60,F=t)))),268435456&t.$$.dirty[1]&&(n(12,a=i&&bt.getVariable(i,"string")||mr("temp","string","")),Z(),Z=he(a,(t=>n(61,P=t)))),1&t.$$.dirty[0]&&(n(35,s=bt.getDerivedFromVars(vt.hint_text)),ft(),ft=he(s,(t=>n(77,G=t)))),1&t.$$.dirty[0]&&(n(34,l=bt.getDerivedFromVars(vt.hint_color)),pt(),pt=he(l,(t=>n(76,q=t)))),1&t.$$.dirty[0]&&(n(33,c=bt.getDerivedFromVars(vt.font_size)),ht(),ht=he(c,(t=>n(75,W=t)))),1&t.$$.dirty[0]&&(n(32,u=bt.getDerivedFromVars(vt.font_weight)),dt(),dt=he(u,(t=>n(74,H=t)))),1&t.$$.dirty[0]&&(n(31,d=bt.getDerivedFromVars(vt.font_family)),ct(),ct=he(d,(t=>n(73,U=t)))),1&t.$$.dirty[0]&&(n(30,h=bt.getDerivedFromVars(vt.line_height)),lt(),lt=he(h,(t=>n(72,L=t)))),1&t.$$.dirty[0]&&(n(29,p=bt.getDerivedFromVars(vt.letter_spacing)),st(),st=he(p,(t=>n(71,R=t)))),1&t.$$.dirty[0]&&(n(28,f=bt.getDerivedFromVars(vt.text_color)),at(),at=he(f,(t=>n(70,B=t)))),1&t.$$.dirty[0]&&(n(27,g=bt.getDerivedFromVars(vt.highlight_color)),ot(),ot=he(g,(t=>n(69,J=t)))),1&t.$$.dirty[0]&&(n(26,m=bt.getDerivedFromVars(vt.text_alignment_horizontal)),it(),it=he(m,(t=>n(68,z=t)))),1&t.$$.dirty[0]&&(n(25,v=bt.getDerivedFromVars(vt.text_alignment_vertical)),rt(),rt=he(v,(t=>n(67,M=t)))),1&t.$$.dirty[0]&&(n(24,y=bt.getDerivedFromVars(vt.keyboard_type)),nt(),nt=he(y,(t=>n(66,T=t)))),1&t.$$.dirty[0]&&(n(23,$=bt.getDerivedFromVars(vt.mask)),et(),et=he($,(t=>n(65,O=t)))),1&t.$$.dirty[0]&&(n(22,_=bt.getDerivedFromVars(vt.max_visible_lines)),tt(),tt=he(_,(t=>n(64,N=t)))),1&t.$$.dirty[0]&&(n(21,b=bt.getDerivedFromVars(vt.paddings)),Q(),Q=he(b,(t=>n(63,I=t)))),1&t.$$.dirty[0]&&(n(20,w=bt.getDerivedFromVars(vt.accessibility)),X(),X=he(w,(t=>n(62,S=t)))),1&t.$$.dirty[0]&&(n(19,x=bt.getDerivedFromVars(vt.select_all_on_focus)),gt(),gt=he(x,(t=>n(36,K=t)))),134217728&t.$$.dirty[1]&&(r?n(8,Ft=!1):(n(8,Ft=!0),bt.logError(ut(new Error('Missing "text_variable" in "input"'))))),8&t.$$.dirty[2]&&("fixed_length"===(null==(e=O)?void 0:e.type)?n(42,Vt=function(t,e,n){if("string"==typeof t.pattern&&Array.isArray(t.pattern_elements)&&t.pattern_elements.every((t=>t.key&&"string"==typeof t.key))){const r={pattern:t.pattern,alwaysVisible:Boolean(t.always_visible),decoding:t.pattern_elements.map((t=>({key:t.key,filter:t.regex&&"string"==typeof t.regex?t.regex:void 0,placeholder:t.placeholder&&"string"==typeof t.placeholder?t.placeholder:"_"})))};return n?(n.updateMaskData(r),n):new bl(r,e)}return n||null}(e,bt.logError,Vt)):"currency"===(null==e?void 0:e.type)&&n(42,Vt=function(t,e,n){return n?(n.updateCurrencyParams(t.locale),n):new xl(t.locale,e)}(e,bt.logError,Vt)),Vt&&Gt()),32&t.$$.dirty[0]|536872960&t.$$.dirty[1]&&(Vt||Dt===F||n(5,Dt=n(7,jt=F))),1073743872&t.$$.dirty[1]&&Vt&&Vt.rawValue!==P&&Gt(),32768&t.$$.dirty[2]&&n(18,E=G),4096&t.$$.dirty[1]|16384&t.$$.dirty[2]&&n(43,Pt=k(q,1,Pt)),8192&t.$$.dirty[1]|8192&t.$$.dirty[2]&&n(44,St=Oi(W,St)),16384&t.$$.dirty[1]|6144&t.$$.dirty[2]&&(n(45,kt=Mi(H,kt)),n(46,It=U&&"string"==typeof U?bt.typefaceProvider(U,{fontWeight:kt||400}):"")),8192&t.$$.dirty[1]|1024&t.$$.dirty[2]){const t=L;fi(t)&&n(47,Et=t/St)}var e;512&t.$$.dirty[2]&&Ur(R)&&n(48,Nt=Cr(R)),262144&t.$$.dirty[1]|256&t.$$.dirty[2]&&n(49,Ot=k(B,1,Ot)),524288&t.$$.dirty[1]|128&t.$$.dirty[2]&&n(50,Tt=k(J,1,Tt)),1048576&t.$$.dirty[1]|64&t.$$.dirty[2]&&n(51,Mt=Ui(z,Mt)),2097152&t.$$.dirty[1]|32&t.$$.dirty[2]&&n(52,zt=Hi(M,zt)),24&t.$$.dirty[2]&&(T&&T in Il&&(n(9,Bt=Il[T]),n(53,Jt=T)),"currency"===(null==O?void 0:O.type)&&(n(9,Bt=Sl?"text":"tel"),n(10,Ct="decimal"))),4194304&t.$$.dirty[1]&&n(6,C="multi_line_text"===Jt),16850944&t.$$.dirty[1]|6&t.$$.dirty[2]&&(fi(N)?n(54,Rt="calc(".concat(N*(Et||1.25)*(St/10)+"em"," + ").concat(Ar(qr(null==I?void 0:I.top,0)+qr(null==I?void 0:I.bottom,0)),")")):n(54,Rt=""),n(55,Lt=ti(I||void 0,Lt)),n(56,Ut=Lt?Lr({top:(Number(Lt.top)||0)/St*10,right:(Number(Lt.right)||0)/St*10,bottom:(Number(Lt.bottom)||0)/St*10,left:(Number(Lt.left)||0)/St*10}):""),n(57,Ht=Lt?Lr({top:(Number(Lt.top)||0)/St*10,bottom:(Number(Lt.bottom)||0)/St*10}):"")),1&t.$$.dirty[2]&&((null==S?void 0:S.description)?n(11,Wt=S.description):bt.logError(ut(new Error('Missing accessibility "description" for input'),{level:"warn"}))),64&t.$$.dirty[0]|3670016&t.$$.dirty[1]&&n(17,A={"highlight-color":Boolean(Tt),multiline:C,"alignment-horizontal":Mt,"alignment-vertical":zt}),9424896&t.$$.dirty[1]&&n(16,V={"--divkit-input-hint-color":Pt,"--divkit-input-highlight-color":Tt,"--divkit-input-line-height":Et,"font-weight":kt,"font-family":It,"letter-spacing":Nt,color:Ot,"max-height":Rt}),33562624&t.$$.dirty[1]&&n(15,D={"font-size":Cr(St),padding:Ut}),67117056&t.$$.dirty[1]&&n(14,j={"font-size":Cr(St),padding:Ht}),25&t.$$.dirty[0]|1024&t.$$.dirty[1]&&xt&&vt&&(wt&&(bt.unregisterFocusable(wt),n(41,wt=void 0)),vt.id&&!(null==_t?void 0:_t.fakeElement)&&(n(41,wt=vt.id),bt.registerFocusable(vt.id,{focus(){xt&&xt.focus()}})))},[vt,yt,$t,_t,xt,Dt,C,jt,Ft,Bt,Ct,Wt,a,o,j,D,V,A,E,x,w,b,_,$,y,v,m,g,f,p,h,d,u,c,l,s,K,function(t){let e=(C?t.target.innerText:t.target.value)||"";"\n"===e&&(e=""),Dt!==e&&(n(5,Dt=n(7,jt=e)),o.setValue(e),Vt&&async function(){if(!xt||!Vt)return;Vt.applyChangeFrom(Dt,xt instanceof HTMLInputElement?null===xt.selectionEnd?void 0:xt.selectionEnd:function(t){try{let n=0;const r=window.getSelection();if(!r)return 0;const i=r.getRangeAt(0);let o;if(i){if(!i.collapsed)return 0;n+=i.endOffset,o=i.endContainer}if(o instanceof HTMLElement){let t=0;for(let e=0,r=Math.min(n,o.childNodes.length);e<r;++e)t+=El(o.childNodes[e]);n=t}for(;o&&o!==t;){var e;const t=o.parentNode;if(!t)return 0;const r=Array.from(t.childNodes).indexOf(o);for(let e=0;e<r;++e)n+=El(t.childNodes[e]);o instanceof HTMLElement&&("DIV"===o.tagName&&(null===(e=t.childNodes[r-1])||void 0===e?void 0:e.nodeType)===kl||"BR"===o.tagName)&&++n,o=t}return n}catch(t){return 0}}(xt)),a.set(Vt.rawValue),$e(o,F=n(5,Dt=n(7,jt=Vt.value)),F);const t=Vt.cursorPosition;await Sn(),document.activeElement===xt&&qt(t)}())},function(){At=!1,setTimeout((()=>{At=!0}),250)},function(){if(!At)if(xt instanceof HTMLInputElement)xt.select();else{const t=window.getSelection(),e=document.createRange();e.selectNodeContents(xt),t&&(t.removeAllRanges(),t.addRange(e))}},mt,wt,Vt,Pt,St,kt,It,Et,Nt,Ot,Tt,Mt,zt,Jt,Rt,Lt,Ut,Ht,r,i,F,P,S,I,N,O,T,M,z,J,B,R,L,U,H,W,q,G,function(t){An[t?"unshift":"push"]((()=>{xt=t,n(4,xt)}))},function(){jt=this.innerText,n(7,jt),n(42,Vt),n(5,Dt),n(60,F)},function(t){An[t?"unshift":"push"]((()=>{xt=t,n(4,xt)}))}]}const Tl={select:"divkit-feef3","select__select-text":"divkit-cd862",select_hint:"divkit-a3cf6",select__select:"divkit-bdb72","select__select_has-custom-focused":"divkit-a46ad","has-custom-focused":"divkit-fc5dc",select__option:"divkit-e774b"};function Ml(t,e,n){const r=t.slice();return r[53]=e[n],r}function zl(t){let e,n;return e=new Ii({props:{cls:Jr("select",Tl,t[13]),style:t[12],customDescription:!0,customActions:"select",customPaddings:!0,hasInnerFocusable:!0,json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Bl,t=>{let{hasCustomFocus:e,focusHandler:n,blurHandler:r}=t;return{50:e,51:n,52:r}},t=>{let{hasCustomFocus:e,focusHandler:n,blurHandler:r}=t;return[0,(e?524288:0)|(n?1048576:0)|(r?2097152:0)]}]},$$scope:{ctx:t}}}),{c(){ir(e.$$.fragment)},l(t){or(e.$$.fragment,t)},m(t,r){ar(e,t,r),n=!0},p(t,n){const r={};8192&n[0]&&(r.cls=Jr("select",Tl,t[13])),4096&n[0]&&(r.style=t[12]),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),33558256&n[0]|37224448&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Wn(e.$$.fragment,t),n=!0)},o(t){qn(e.$$.fragment,t),n=!1},d(t){sr(e,t)}}}function Jl(t){let e,n,r,i,o=(t[53].text||t[53].value)+"";return{c(){e=Je("option"),n=Re(o),this.h()},l(t){e=en(t,"OPTION",{class:!0});var r=Ze(e);n=rn(r,o),r.forEach(Me),this.h()},h(){We(e,"class",r=Tl.select__option),e.__value=i=t[53].value,ln(e,e.__value)},m(t,r){Te(t,e,r),Ne(e,n)},p(t,r){64&r[0]&&o!==(o=(t[53].text||t[53].value)+"")&&sn(n,o),64&r[0]&&i!==(i=t[53].value)&&(e.__value=i,ln(e,e.__value))},d(t){t&&Me(e)}}}function Bl(t){let e,n,r,i,o,a,s,l,c,u,d=(t[5]||t[25]||"")+"",h=Yn(t[6]),p=[];for(let e=0;e<h.length;e+=1)p[e]=Jl(Ml(t,h,e));return{c(){e=Je("span"),n=Re(d),o=Le(),a=Je("select");for(let t=0;t<p.length;t+=1)p[t].c();this.h()},l(t){e=en(t,"SPAN",{class:!0,style:!0,"aria-hidden":!0});var r=Ze(e);n=rn(r,d),r.forEach(Me),o=on(t),a=en(t,"SELECT",{class:!0,"aria-label":!0,style:!0});var i=Ze(a);for(let t=0;t<p.length;t+=1)p[t].l(i);i.forEach(Me),this.h()},h(){We(e,"class",r=Tl["select__select-text"]),We(e,"style",i=Er(t[11])),We(e,"aria-hidden","true"),We(a,"class",s=Jr("select__select",Tl,{"has-custom-focus":t[50]})),We(a,"aria-label",t[9]),We(a,"style",l=Er(t[10])),void 0===t[7]&&In((()=>t[48].call(a)))},m(r,i){Te(r,e,i),Ne(e,n),Te(r,o,i),Te(r,a,i);for(let t=0;t<p.length;t+=1)p[t]&&p[t].m(a,null);t[47](a),un(a,t[7],!0),c||(u=[He(a,"change",t[48]),He(a,"focus",(function(){le(t[51])&&t[51].apply(this,arguments)})),He(a,"blur",(function(){le(t[52])&&t[52].apply(this,arguments)}))],c=!0)},p(r,o){if(t=r,33554464&o[0]&&d!==(d=(t[5]||t[25]||"")+"")&&sn(n,d),2048&o[0]&&i!==(i=Er(t[11]))&&We(e,"style",i),64&o[0]){let e;for(h=Yn(t[6]),e=0;e<h.length;e+=1){const n=Ml(t,h,e);p[e]?p[e].p(n,o):(p[e]=Jl(n),p[e].c(),p[e].m(a,null))}for(;e<p.length;e+=1)p[e].d(1);p.length=h.length}524288&o[1]&&s!==(s=Jr("select__select",Tl,{"has-custom-focus":t[50]}))&&We(a,"class",s),512&o[0]&&We(a,"aria-label",t[9]),1024&o[0]&&l!==(l=Er(t[10]))&&We(a,"style",l),192&o[0]&&un(a,t[7])},d(n){n&&(Me(e),Me(o),Me(a)),ze(p,n),t[47](null),c=!1,se(u)}}}function Rl(t){let e,n,r=!t[8]&&zl(t);return{c(){r&&r.c(),e=Ue()},l(t){r&&r.l(t),e=Ue()},m(t,i){r&&r.m(t,i),Te(t,e,i),n=!0},p(t,n){t[8]?r&&(Un(),qn(r,1,1,(()=>{r=null})),Hn()):r?(r.p(t,n),256&n[0]&&Wn(r,1)):(r=zl(t),r.c(),Wn(r,1),r.m(e.parentNode,e))},i(t){n||(Wn(r),n=!0)},o(t){qn(r),n=!1},d(t){t&&Me(e),r&&r.d(t)}}}function Ll(t,e,n){let r,i,o,a,s,l,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x,E,C,A,V,D,j,F,P,S=ne,I=ne,N=ne,O=ne,T=ne,M=ne,z=ne,J=ne,B=ne,R=ne,L=ne;t.$$.on_destroy.push((()=>S())),t.$$.on_destroy.push((()=>I())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>L()));let{json:U={}}=e,{templateContext:H}=e,{origJson:W}=e,{layoutParams:q}=e;const G=kn(wr);let K,Y,Z,X,Q=!1,tt="",et=null,nt="",rt="rgba(0,0,0,.45)",it=12,ot="",at="",st="#000",lt="";return wn((()=>{K&&(G.unregisterFocusable(K),n(26,K=void 0))})),t.$$set=t=>{"json"in t&&n(0,U=t.json),"templateContext"in t&&n(1,H=t.templateContext),"origJson"in t&&n(2,W=t.origJson),"layoutParams"in t&&n(3,q=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&U&&(n(27,et=null),n(29,rt="rgba(0,0,0,.45)"),n(30,it=12),n(31,Z=void 0),n(32,ot=""),n(33,X=void 0),n(34,at=""),n(35,st="#000"),n(9,lt="")),1&t.$$.dirty[0]&&n(36,r=U.value_variable),1&t.$$.dirty[0]&&n(37,i=U.options),64&t.$$.dirty[1]&&n(6,o=Array.isArray(i)&&i.filter((t=>"string"==typeof t.value))||[]),32&t.$$.dirty[1]&&(n(24,a=r&&G.getVariable(r,"string")||mr("temp","string","")),R(),R=he(a,(t=>n(7,F=t)))),1&t.$$.dirty[0]&&(n(23,s=G.getDerivedFromVars(U.paddings)),B(),B=he(s,(t=>n(46,j=t)))),1&t.$$.dirty[0]&&(n(22,l=G.getDerivedFromVars(U.hint_text)),L(),L=he(l,(t=>n(25,P=t)))),1&t.$$.dirty[0]&&(n(21,c=G.getDerivedFromVars(U.hint_color)),J(),J=he(c,(t=>n(45,D=t)))),1&t.$$.dirty[0]&&(n(20,u=G.getDerivedFromVars(U.font_size)),z(),z=he(u,(t=>n(44,V=t)))),1&t.$$.dirty[0]&&(n(19,d=G.getDerivedFromVars(U.font_weight)),M(),M=he(d,(t=>n(43,A=t)))),1&t.$$.dirty[0]&&(n(18,h=G.getDerivedFromVars(U.font_family)),T(),T=he(h,(t=>n(42,C=t)))),1&t.$$.dirty[0]&&(n(17,p=G.getDerivedFromVars(U.line_height)),O(),O=he(p,(t=>n(41,E=t)))),1&t.$$.dirty[0]&&(n(16,f=G.getDerivedFromVars(U.letter_spacing)),N(),N=he(f,(t=>n(40,x=t)))),1&t.$$.dirty[0]&&(n(15,g=G.getDerivedFromVars(U.text_color)),I(),I=he(g,(t=>n(39,w=t)))),1&t.$$.dirty[0]&&(n(14,m=G.getDerivedFromVars(U.accessibility)),S(),S=he(m,(t=>n(38,b=t)))),64&t.$$.dirty[0]&&(Array.isArray(o)&&o.length||G.logError(ut(new Error('Empty selection "items" in "select"')))),32&t.$$.dirty[1]&&(r?n(8,Q=!1):(n(8,Q=!0),G.logError(ut(new Error('Missing "value_variable" in "select"'))))),192&t.$$.dirty[0]){const t=o.find((t=>t.value===F));t?n(5,tt="string"==typeof t.text?t.text:t.value):(n(5,tt=""),F&&G.logError(ut(new Error('Value from the variable was not found in the selection items for "select"'))))}if(1073741824&t.$$.dirty[0]|8192&t.$$.dirty[1]&&n(30,it=Oi(V,it)),1207959552&t.$$.dirty[0]|32768&t.$$.dirty[1]&&(n(27,et=ti(j||void 0,et)),n(28,nt=et?Lr({top:(Number(et.top)||0)/it*10,right:(Number(et.right)||0)/it*10,bottom:(Number(et.bottom)||0)/it*10,left:(Number(et.left)||0)/it*10}):"")),536870912&t.$$.dirty[0]|16384&t.$$.dirty[1]&&n(29,rt=k(D,1,rt)),6145&t.$$.dirty[1]&&(n(31,Z=Mi(A,Z)),n(32,ot=C&&"string"==typeof C?G.typefaceProvider(C,{fontWeight:Z||400}):"")),1073741824&t.$$.dirty[0]|1024&t.$$.dirty[1]){const t=E;fi(t)&&n(33,X=t/it)}1073741824&t.$$.dirty[0]|512&t.$$.dirty[1]&&Ur(x)&&n(34,at=Cr(x/it*10)),272&t.$$.dirty[1]&&n(35,st=k(w,1,st)),128&t.$$.dirty[1]&&((null==b?void 0:b.description)?n(9,lt=b.description):G.logError(ut(new Error('Missing accessibility "description" for select'),{level:"warn"}))),32&t.$$.dirty[0]&&n(13,v={hint:!tt}),536870912&t.$$.dirty[0]|19&t.$$.dirty[1]&&n(12,y={"--divkit-input-hint-color":rt,"font-weight":Z,"font-family":ot,color:st}),1342177280&t.$$.dirty[0]|12&t.$$.dirty[1]&&n(11,$={padding:nt,"font-size":Cr(it),"line-height":X,"letter-spacing":at}),1073741824&t.$$.dirty[0]|12&t.$$.dirty[1]&&n(10,_={"font-size":Cr(it),"line-height":X,"letter-spacing":at}),67108889&t.$$.dirty[0]&&U&&Y&&(K&&(G.unregisterFocusable(K),n(26,K=void 0)),U.id&&!(null==q?void 0:q.fakeElement)&&(n(26,K=U.id),G.registerFocusable(U.id,{focus(){Y&&Y.focus()}})))},[U,H,W,q,Y,tt,o,F,Q,lt,_,$,y,v,m,g,f,p,h,d,u,c,l,s,a,P,K,et,nt,rt,it,Z,ot,X,at,st,r,i,b,w,x,E,C,A,V,D,j,function(t){An[t?"unshift":"push"]((()=>{Y=t,n(4,Y)}))},function(){F=function(t){const e=t.querySelector(":checked");return e&&e.__value}(this),a.set(F),n(6,o),n(37,i),n(0,U)}]}const Ul={video__video:"divkit-c11f9","video__aspect-wrapper":"divkit-cfe32",video_aspect:"divkit-a4f5c"};function Hl(t,e,n){const r=t.slice();return r[46]=e[n],r}function Wl(t,e,n){const r=t.slice();return r[46]=e[n],r}function ql(t){let e,n;return e=new Ii({props:{cls:Jr("video",Ul,t[13]),customActions:"video",json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[tc]},$$scope:{ctx:t}}}),{c(){ir(e.$$.fragment)},l(t){or(e.$$.fragment,t)},m(t,r){ar(e,t,r),n=!0},p(t,n){const r={};8192&n[0]&&(r.cls=Jr("video",Ul,t[13])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),16352&n[0]|1048576&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Wn(e.$$.fragment,t),n=!0)},o(t){qn(e.$$.fragment,t),n=!1},d(t){sr(e,t)}}}function Gl(t){let e,n,r,i,o,a=Yn(t[6]),s=[];for(let e=0;e<a.length;e+=1)s[e]=Zl(Hl(t,a,e));return{c(){e=Je("video");for(let t=0;t<s.length;t+=1)s[t].c();this.h()},l(t){e=en(t,"VIDEO",{class:!0,style:!0,poster:!0});var n=Ze(e);for(let t=0;t<s.length;t+=1)s[t].l(n);n.forEach(Me),this.h()},h(){We(e,"class",n=Ul.video__video),We(e,"style",r=Er(t[12])),e.playsInline=!0,e.loop=t[7],e.autoplay=t[8],e.muted=t[9],We(e,"poster",t[10])},m(n,r){Te(n,e,r);for(let t=0;t<s.length;t+=1)s[t]&&s[t].m(e,null);t[40](e),i||(o=[He(e,"timeupdate",t[21]),He(e,"ended",t[22]),He(e,"playing",t[23]),He(e,"pause",t[24]),He(e,"waiting",t[25]),He(e,"error",t[26])],i=!0)},p(t,n){if(67108928&n[0]){let r;for(a=Yn(t[6]),r=0;r<a.length;r+=1){const i=Hl(t,a,r);s[r]?s[r].p(i,n):(s[r]=Zl(i),s[r].c(),s[r].m(e,null))}for(;r<s.length;r+=1)s[r].d(1);s.length=a.length}4096&n[0]&&r!==(r=Er(t[12]))&&We(e,"style",r),128&n[0]&&(e.loop=t[7]),256&n[0]&&(e.autoplay=t[8]),512&n[0]&&(e.muted=t[9]),1024&n[0]&&We(e,"poster",t[10])},d(n){n&&Me(e),ze(s,n),t[40](null),i=!1,se(o)}}}function Kl(t){let e,n,r,i,o,a,s,l="".concat(t[11],"%"),c=Yn(t[6]),u=[];for(let e=0;e<c.length;e+=1)u[e]=Ql(Wl(t,c,e));return{c(){e=Je("div"),n=Je("video");for(let t=0;t<u.length;t+=1)u[t].c();this.h()},l(t){e=en(t,"DIV",{class:!0});var r=Ze(e);n=en(r,"VIDEO",{class:!0,style:!0,poster:!0});var i=Ze(n);for(let t=0;t<u.length;t+=1)u[t].l(i);i.forEach(Me),r.forEach(Me),this.h()},h(){We(n,"class",r=Ul.video__video),We(n,"style",i=Er(t[12])),n.playsInline=!0,n.loop=t[7],n.autoplay=t[8],n.muted=t[9],We(n,"poster",t[10]),We(e,"class",o=Ul["video__aspect-wrapper"]),cn(e,"padding-bottom",l)},m(r,i){Te(r,e,i),Ne(e,n);for(let t=0;t<u.length;t+=1)u[t]&&u[t].m(n,null);t[39](n),a||(s=[He(n,"timeupdate",t[21]),He(n,"ended",t[22]),He(n,"playing",t[23]),He(n,"pause",t[24]),He(n,"waiting",t[25]),He(n,"error",t[26])],a=!0)},p(t,r){if(67108928&r[0]){let e;for(c=Yn(t[6]),e=0;e<c.length;e+=1){const i=Wl(t,c,e);u[e]?u[e].p(i,r):(u[e]=Ql(i),u[e].c(),u[e].m(n,null))}for(;e<u.length;e+=1)u[e].d(1);u.length=c.length}4096&r[0]&&i!==(i=Er(t[12]))&&We(n,"style",i),128&r[0]&&(n.loop=t[7]),256&r[0]&&(n.autoplay=t[8]),512&r[0]&&(n.muted=t[9]),1024&r[0]&&We(n,"poster",t[10]),2048&r[0]&&l!==(l="".concat(t[11],"%"))&&cn(e,"padding-bottom",l)},d(n){n&&Me(e),ze(u,n),t[39](null),a=!1,se(s)}}}function Yl(t){let e,n,r,i,o;return{c(){e=Je("source"),this.h()},l(t){e=en(t,"SOURCE",{src:!0,type:!0}),this.h()},h(){ue(e.src,n=t[46].src)||We(e,"src",n),We(e,"type",r=t[46].type)},m(n,r){Te(n,e,r),i||(o=He(e,"error",t[26]),i=!0)},p(t,i){64&i[0]&&!ue(e.src,n=t[46].src)&&We(e,"src",n),64&i[0]&&r!==(r=t[46].type)&&We(e,"type",r)},d(t){t&&Me(e),i=!1,o()}}}function Zl(t){let e,n=t[46],r=Yl(t);return{c(){r.c(),e=Ue()},l(t){r.l(t),e=Ue()},m(t,n){r.m(t,n),Te(t,e,n)},p(t,i){64&i[0]&&de(n,n=t[46])?(r.d(1),r=Yl(t),r.c(),r.m(e.parentNode,e)):r.p(t,i)},d(t){t&&Me(e),r.d(t)}}}function Xl(t){let e,n,r,i,o;return{c(){e=Je("source"),this.h()},l(t){e=en(t,"SOURCE",{src:!0,type:!0}),this.h()},h(){ue(e.src,n=t[46].src)||We(e,"src",n),We(e,"type",r=t[46].type)},m(n,r){Te(n,e,r),i||(o=He(e,"error",t[26]),i=!0)},p(t,i){64&i[0]&&!ue(e.src,n=t[46].src)&&We(e,"src",n),64&i[0]&&r!==(r=t[46].type)&&We(e,"type",r)},d(t){t&&Me(e),i=!1,o()}}}function Ql(t){let e,n=t[46],r=Xl(t);return{c(){r.c(),e=Ue()},l(t){r.l(t),e=Ue()},m(t,n){r.m(t,n),Te(t,e,n)},p(t,i){64&i[0]&&de(n,n=t[46])?(r.d(1),r=Xl(t),r.c(),r.m(e.parentNode,e)):r.p(t,i)},d(t){t&&Me(e),r.d(t)}}}function tc(t){let e;function n(t,e){return t[13].aspect?Kl:Gl}let r=n(t),i=r(t);return{c(){i.c(),e=Ue()},l(t){i.l(t),e=Ue()},m(t,n){i.m(t,n),Te(t,e,n)},p(t,o){r===(r=n(t))&&i?i.p(t,o):(i.d(1),i=r(t),i&&(i.c(),i.m(e.parentNode,e)))},d(t){t&&Me(e),i.d(t)}}}function ec(t){let e,n,r=!t[4]&&ql(t);return{c(){r&&r.c(),e=Ue()},l(t){r&&r.l(t),e=Ue()},m(t,i){r&&r.m(t,i),Te(t,e,i),n=!0},p(t,n){t[4]?r&&(Un(),qn(r,1,1,(()=>{r=null})),Hn()):r?(r.p(t,n),16&n[0]&&Wn(r,1)):(r=ql(t),r.c(),Wn(r,1),r.m(e.parentNode,e))},i(t){n||(Wn(r),n=!0)},o(t){qn(r),n=!1},d(t){t&&Me(e),r&&r.d(t)}}}function nc(t,e,n){let r,i,o,a,s,l,c,u,d,h,p,f,g,m,v,y,$,_,b=ne,w=ne,x=ne,k=ne,E=ne,C=ne,A=ne;t.$$.on_destroy.push((()=>b())),t.$$.on_destroy.push((()=>w())),t.$$.on_destroy.push((()=>x())),t.$$.on_destroy.push((()=>k())),t.$$.on_destroy.push((()=>E())),t.$$.on_destroy.push((()=>C())),t.$$.on_destroy.push((()=>A()));let{json:V={}}=e,{templateContext:D}=e,{origJson:j}=e,{layoutParams:F}=e;const P=kn(wr);let S,I,N,O,T=!1,M=!1,z=[],J=!1,B=!1,R=!1,L="fit",U="0";function H(t){M?M=!1:I&&n(5,I.currentTime=Number(t)/1e3,I)}function W(){null==I||I.pause()}function q(){const t=null==I?void 0:I.play();t&&t.catch((t=>{P.logError(ut(new Error("Video playing error"),{level:"error",additional:{originalText:String(t)}}))}))}return wn((()=>{S&&(P.unregisterInstance(S),n(27,S=void 0)),O&&(O(),n(29,O=void 0))})),t.$$set=t=>{"json"in t&&n(0,V=t.json),"templateContext"in t&&n(1,D=t.templateContext),"origJson"in t&&n(2,j=t.origJson),"layoutParams"in t&&n(3,F=t.layoutParams)},t.$$.update=()=>{var e,D;if(1&t.$$.dirty[0]&&V&&(n(7,J=!1),n(8,B=!1),n(9,R=!1),n(10,N=void 0),n(28,L="fit")),1&t.$$.dirty[0]&&n(31,r=V.elapsed_time_variable),1&t.$$.dirty[1]&&n(30,i=r&&P.getVariable(r,"integer")||mr("temp","integer",0)),1610612736&t.$$.dirty[0]&&i&&(O&&O(),n(29,O=i.subscribe(H))),1&t.$$.dirty[0]&&(n(20,o=P.getDerivedFromVars(V.video_sources)),A(),A=he(o,(t=>n(38,_=t)))),1&t.$$.dirty[0]&&(n(19,a=P.getDerivedFromVars(V.repeatable)),C(),C=he(a,(t=>n(37,$=t)))),1&t.$$.dirty[0]&&(n(18,s=P.getDerivedFromVars(V.autostart)),b(),b=he(s,(t=>n(32,f=t)))),1&t.$$.dirty[0]&&(n(17,l=P.getDerivedFromVars(V.muted)),E(),E=he(l,(t=>n(36,y=t)))),1&t.$$.dirty[0]&&(n(16,c=P.getDerivedFromVars(V.preview)),k(),k=he(c,(t=>n(35,v=t)))),1&t.$$.dirty[0]&&(n(15,u=P.getDerivedFromVars(V.scale)),x(),x=he(u,(t=>n(34,m=t)))),1&t.$$.dirty[0]&&(n(14,d=P.getDerivedFromVars(V.aspect)),w(),w=he(d,(t=>n(33,g=t)))),64&t.$$.dirty[0]|128&t.$$.dirty[1]&&(n(6,(e=_,D=z,z=Array.isArray(e)&&e.length?e.filter((t=>"video_source"===(null==t?void 0:t.type)&&"string"==typeof t.url&&"string"==typeof t.mime_type)).map((t=>{const e={src:t.url};return t.mime_type&&(e.type=t.mime_type),e})):D)),z.length?n(4,T=!1):(n(4,T=!0),P.logError(ut(new Error('Missing "video_sources" in "video"'))))),128&t.$$.dirty[0]|64&t.$$.dirty[1]&&n(7,J=Wi($,J)),256&t.$$.dirty[0]|2&t.$$.dirty[1]&&n(8,B=Wi(f,B)),512&t.$$.dirty[0]|32&t.$$.dirty[1]&&n(9,R=Wi(y,R)),1024&t.$$.dirty[0]|16&t.$$.dirty[1]&&n(10,N="string"==typeof v?Lo(v):N),268435456&t.$$.dirty[0]|8&t.$$.dirty[1]&&n(28,L=function(t){return"fill"===t?"cover":"no_scale"===t?"none":"contain"}(m)||L),4&t.$$.dirty[1]){const t=null==g?void 0:g.ratio;t&&fi(t)?n(11,U=(100/Number(t)).toFixed(2)):n(11,U="0")}134217753&t.$$.dirty[0]&&V&&(S&&(P.unregisterInstance(S),n(27,S=void 0)),!V.id||T||(null==F?void 0:F.fakeElement)||(n(27,S=V.id),P.registerInstance(V.id,{pause:W,start:q}))),33&t.$$.dirty[0]|2&t.$$.dirty[1]&&V&&f&&I&&q(),2048&t.$$.dirty[0]&&n(13,h={aspect:"0"!==U}),268435456&t.$$.dirty[0]&&n(12,p={"object-fit":L})},[V,D,j,F,T,I,z,J,B,R,N,U,p,h,d,u,c,l,s,a,o,function(){I&&(M=!0,i.setValue(Math.floor(1e3*I.currentTime)))},function(){const t=P.getJsonWithVars(V.end_actions);P.execAnyActions(t)},function(){const t=P.getJsonWithVars(V.resume_actions);P.execAnyActions(t)},function(){const t=P.getJsonWithVars(V.pause_actions);P.execAnyActions(t)},function(){const t=P.getJsonWithVars(V.buffering_actions);P.execAnyActions(t)},function(){const t=P.getJsonWithVars(V.fatal_actions);P.execAnyActions(t)},S,L,O,i,r,f,g,m,v,y,$,_,function(t){An[t?"unshift":"push"]((()=>{I=t,n(5,I)}))},function(t){An[t?"unshift":"push"]((()=>{I=t,n(5,I)}))}]}function rc(t,e,n){const r=t.slice();return r[15]=e[n],r}function ic(t){let e,n;return e=new Ii({props:{json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[uc]},$$scope:{ctx:t}}}),{c(){ir(e.$$.fragment)},l(t){or(e.$$.fragment,t)},m(t,r){ar(e,t,r),n=!0},p(t,n){const r={};1&n&&(r.json=t[0]),4&n&&(r.origJson=t[2]),2&n&&(r.templateContext=t[1]),8&n&&(r.layoutParams=t[3]),266225&n&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Wn(e.$$.fragment,t),n=!0)},o(t){qn(e.$$.fragment,t),n=!1},d(t){sr(e,t)}}}function oc(t){let e,n,r=[t[9]],i={};for(let t=0;t<r.length;t+=1)i=ie(i,r[t]);return{c(){e=Je("template"),n=new hn(!1),this.h()},l(t){e=en(t,"TEMPLATE",{});var r=Ze(e.content);n=function(t,e){const n=an(t,"HTML_TAG_START",0),r=an(t,"HTML_TAG_END",n+1);if(-1===n||-1===r)return new hn(false);Xe(t);const i=t.splice(n,r-n+1);Me(i[0]),Me(i[i.length-1]);const o=i.slice(1,i.length-1);for(const e of o)e.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1;return new hn(false,o)}(r),r.forEach(Me),this.h()},h(){n.a=null,Ge(e,i)},m(r,i){Te(r,e,i),n.m(t[8],e.content)},p(t,o){256&o&&n.p(t[8]),Ge(e,i=Qn(r,[512&o&&t[9]]))},d(t){t&&Me(e)}}}function ac(t){let e,n,r=t[6],i=lc(t);return{c(){i.c(),e=Ue()},l(t){i.l(t),e=Ue()},m(t,r){i.m(t,r),Te(t,e,r),n=!0},p(t,n){64&n&&de(r,r=t[6])?(Un(),qn(i,1,1,ne),Hn(),i=lc(t),i.c(),Wn(i,1),i.m(e.parentNode,e)):i.p(t,n)},i(t){n||(Wn(i),n=!0)},o(t){qn(i),n=!1},d(t){t&&Me(e),i.d(t)}}}function sc(t){let e,n;return e=new vc({props:{layoutParams:t[10],div:t[15].json,templateContext:t[15].templateContext,origJson:t[15].origJson}}),{c(){ir(e.$$.fragment)},l(t){or(e.$$.fragment,t)},m(t,r){ar(e,t,r),n=!0},p(t,n){const r={};1024&n&&(r.layoutParams=t[10]),2048&n&&(r.div=t[15].json),2048&n&&(r.templateContext=t[15].templateContext),2048&n&&(r.origJson=t[15].origJson),e.$set(r)},i(t){n||(Wn(e.$$.fragment,t),n=!0)},o(t){qn(e.$$.fragment,t),n=!1},d(t){sr(e,t)}}}function lc(t){let e,n,r=Yn(t[11]),i=[];for(let e=0;e<r.length;e+=1)i[e]=sc(rc(t,r,e));const o=t=>qn(i[t],1,1,(()=>{i[t]=null}));return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=Ue()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);e=Ue()},m(t,r){for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(t,r);Te(t,e,r),n=!0},p(t,n){if(3072&n){let a;for(r=Yn(t[11]),a=0;a<r.length;a+=1){const o=rc(t,r,a);i[a]?(i[a].p(o,n),Wn(i[a],1)):(i[a]=sc(o),i[a].c(),Wn(i[a],1),i[a].m(e.parentNode,e))}for(Un(),a=r.length;a<i.length;a+=1)o(a);Hn()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Wn(i[t]);n=!0}},o(t){i=i.filter(Boolean);for(let t=0;t<i.length;t+=1)qn(i[t]);n=!1},d(t){t&&Me(e),ze(i,t)}}}function cc(t){let e,n,r,i=t[8]&&oc(t),o=!t[5]&&t[6]&&ac(t),a=[t[0].custom_props||{}],s={};for(let t=0;t<a.length;t+=1)s=ie(s,a[t]);return{c(){e=Je(t[4].element),i&&i.c(),n=Le(),o&&o.c(),this.h()},l(r){e=en(r,(t[4].element||"null").toUpperCase(),{});var a=Ze(e);i&&i.l(a),n=on(a),o&&o.l(a),a.forEach(Me),this.h()},h(){Ye(t[4].element)(e,s)},m(a,s){Te(a,e,s),i&&i.m(e,null),Ne(e,n),o&&o.m(e,null),t[13](e),r=!0},p(t,r){t[8]?i?i.p(t,r):(i=oc(t),i.c(),i.m(e,n)):i&&(i.d(1),i=null),!t[5]&&t[6]?o?(o.p(t,r),96&r&&Wn(o,1)):(o=ac(t),o.c(),Wn(o,1),o.m(e,null)):o&&(Un(),qn(o,1,1,(()=>{o=null})),Hn()),Ye(t[4].element)(e,s=Qn(a,[1&r&&(t[0].custom_props||{})]))},i(t){r||(Wn(o),r=!0)},o(t){qn(o),r=!1},d(n){n&&Me(e),i&&i.d(),o&&o.d(),t[13](null)}}}function uc(t){let e,n,r=t[4].element,i=t[4].element&&cc(t);return{c(){i&&i.c(),e=Ue()},l(t){i&&i.l(t),e=Ue()},m(t,n){i&&i.m(t,n),Te(t,e,n)},p(t,n){t[4].element?r?de(r,t[4].element)?(i.d(1),i=cc(t),r=t[4].element,i.c(),i.m(e.parentNode,e)):i.p(t,n):(i=cc(t),r=t[4].element,i.c(),i.m(e.parentNode,e)):r&&(i.d(1),i=null,r=t[4].element)},i:ne,o(t){qn(i,t),n=!1},d(t){t&&Me(e),i&&i.d(t)}}}function dc(t){let e,n,r=t[4]&&ic(t);return{c(){r&&r.c(),e=Ue()},l(t){r&&r.l(t),e=Ue()},m(t,i){r&&r.m(t,i),Te(t,e,i),n=!0},p(t,n){let[i]=n;t[4]?r?(r.p(t,i),16&i&&Wn(r,1)):(r=ic(t),r.c(),Wn(r,1),r.m(e.parentNode,e)):r&&(Un(),qn(r,1,1,(()=>{r=null})),Hn())},i(t){n||(Wn(r),n=!0)},o(t){qn(r),n=!1},d(t){t&&Me(e),r&&r.d(t)}}}function hc(t,e,n){let r,i,o;var a;let{json:s={}}=e,{templateContext:l}=e,{origJson:c}=e,{layoutParams:u}=e;const d=kn(wr);let h,p=null,f="",g={},m=!1;return bn((()=>{if(h&&"divKitApiCallback"in h&&"function"==typeof h.divKitApiCallback){const t=d.getExtensionContext();h.divKitApiCallback(t)}})),t.$$set=t=>{"json"in t&&n(0,s=t.json),"templateContext"in t&&n(1,l=t.templateContext),"origJson"in t&&n(2,c=t.origJson),"layoutParams"in t&&n(3,u=t.layoutParams)},t.$$.update=()=>{if(4113&t.$$.dirty)if("string"==typeof s.custom_type&&s.custom_type&&(null===n(12,a=d.customComponents)||void 0===a?void 0:a.has(s.custom_type))){if(n(4,p=d.customComponents.get(s.custom_type)),"function"==typeof p.template){const t=d.getExtensionContext(),e=new Map;for(const[n,r]of t.variables)e.set(n,r.getValue());n(8,f=p.template({props:s.custom_props,variables:e}))}else p.template&&"string"==typeof p.template?n(8,f=p.template):n(8,f="");n(9,g={shadowrootmode:p.shadowRootMode||"open"})}else n(4,p=null),n(8,f=";"),d.logError(ut(new Error('Unknown or incorrect "custom_type" prop for div "custom"')));1&t.$$.dirty&&n(6,r=s.items),64&t.$$.dirty&&(void 0===r||Array.isArray(r)?n(5,m=!1):(n(5,m=!0),d.logError(ut(new Error('Incorrect "items" prop for div "custom"'))))),98&t.$$.dirty&&n(11,i=(!m&&r||[]).map((t=>{let e=t,n=l;return({templateContext:n,json:e}=d.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),8&t.$$.dirty&&n(10,o={fakeElement:null==u?void 0:u.fakeElement})},[s,l,c,u,p,m,r,h,f,g,o,i,a,function(t){An[t?"unshift":"push"]((()=>{h=t,n(7,h)}))}]}const pc={};function fc(t){let e,n,r;var i=t[5];function o(t,e){return{props:{json:t[3],templateContext:t[4],layoutParams:t[2],origJson:t[1]||t[0]}}}return i&&(e=pn(i,o(t))),{c(){e&&ir(e.$$.fragment),n=Ue()},l(t){e&&or(e.$$.fragment,t),n=Ue()},m(t,i){e&&ar(e,t,i),Te(t,n,i),r=!0},p(t,r){if(32&r&&i!==(i=t[5])){if(e){Un();const t=e;qn(t.$$.fragment,1,0,(()=>{sr(t,1)})),Hn()}i?(e=pn(i,o(t)),ir(e.$$.fragment),Wn(e.$$.fragment,1),ar(e,n.parentNode,n)):e=null}else if(i){const n={};8&r&&(n.json=t[3]),16&r&&(n.templateContext=t[4]),4&r&&(n.layoutParams=t[2]),3&r&&(n.origJson=t[1]||t[0]),e.$set(n)}},i(t){r||(e&&Wn(e.$$.fragment,t),r=!0)},o(t){e&&qn(e.$$.fragment,t),r=!1},d(t){t&&Me(n),e&&sr(e,t)}}}function gc(t){let e,n,r=t[5]&&fc(t);return{c(){r&&r.c(),e=Ue()},l(t){r&&r.l(t),e=Ue()},m(t,i){r&&r.m(t,i),Te(t,e,i),n=!0},p(t,n){let[i]=n;t[5]?r?(r.p(t,i),32&i&&Wn(r,1)):(r=fc(t),r.c(),Wn(r,1),r.m(e.parentNode,e)):r&&(Un(),qn(r,1,1,(()=>{r=null})),Hn())},i(t){n||(Wn(r),n=!0)},o(t){qn(r),n=!1},d(t){t&&Me(e),r&&r.d(t)}}}function mc(t,e,n){let{div:r}=e,{templateContext:i}=e,{origJson:o}=e,{layoutParams:a}=e;const s=kn(wr);let l,c,u;return t.$$set=t=>{"div"in t&&n(0,r=t.div),"templateContext"in t&&n(6,i=t.templateContext),"origJson"in t&&n(1,o=t.origJson),"layoutParams"in t&&n(2,a=t.layoutParams)},t.$$.update=()=>{if(121&t.$$.dirty&&(n(3,l=r),n(4,c=i),n(5,u=l&&pc[l.type]||void 0),!u&&(n(4,({templateContext:c,json:l}=s.processTemplate(l,c)),c,(n(3,l),n(0,r),n(6,i),n(5,u),n(4,c))),n(5,u=l&&pc[l.type]||void 0),!u))){let t;t=(null==l?void 0:l.type)&&s.hasTemplate(l.type)?"Recursive template":"Unknown component",s.logError(ut(new Error(t),{additional:{component:(null==l?void 0:l.type)||"<missing>"}}))}},[r,o,a,l,c,u,i]}pc.text=class extends ur{constructor(t){super(),lr(this,t,ao,oo,de,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},pc.container=class extends ur{constructor(t){super(),lr(this,t,No,Fo,de,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},pc.separator=class extends ur{constructor(t){super(),lr(this,t,Bo,Jo,de,{json:0,templateContext:1,origJson:2,layoutParams:3})}},pc.image=Qo,pc.gif=Qo,pc.grid=class extends ur{constructor(t){super(),lr(this,t,ca,la,de,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},pc.gallery=class extends ur{constructor(t){super(),lr(this,t,xa,wa,de,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},pc.tabs=class extends ur{constructor(t){super(),lr(this,t,Ja,za,de,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1,-1])}},pc.state=class extends ur{constructor(t){super(),lr(this,t,Fs,Ds,de,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},pc.pager=class extends ur{constructor(t){super(),lr(this,t,Bs,Js,de,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},pc.indicator=class extends ur{constructor(t){super(),lr(this,t,Ks,qs,de,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},pc.slider=class extends ur{constructor(t){super(),lr(this,t,fl,cl,de,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},pc.input=class extends ur{constructor(t){super(),lr(this,t,Ol,Pl,de,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},pc.select=class extends ur{constructor(t){super(),lr(this,t,Ll,Rl,de,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},pc.video=class extends ur{constructor(t){super(),lr(this,t,nc,ec,de,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},pc.custom=class extends ur{constructor(t){super(),lr(this,t,hc,dc,de,{json:0,templateContext:1,origJson:2,layoutParams:3})}};const vc=class extends ur{constructor(t){super(),lr(this,t,mc,gc,de,{div:0,templateContext:6,origJson:1,layoutParams:2})}},yc={"root-svg-filters":"divkit-dc22b"};function $c(t,e,n){const r=t.slice();r[1]=e[n];const i=r[1].split(":");return r[2]=i[0],r[3]=i[1],r}function _c(t){let e,n,r,i=Yn([...Object.keys(t[0])]),o=[];for(let e=0;e<i.length;e+=1)o[e]=kc($c(t,i,e));return{c(){e=Be("svg"),n=Be("defs");for(let t=0;t<o.length;t+=1)o[t].c();this.h()},l(t){e=nn(t,"svg",{class:!0,"aria-hidden":!0});var r=Ze(e);n=nn(r,"defs",{});var i=Ze(n);for(let t=0;t<o.length;t+=1)o[t].l(i);i.forEach(Me),r.forEach(Me),this.h()},h(){We(e,"class",r=yc["root-svg-filters"]),We(e,"aria-hidden","true")},m(t,r){Te(t,e,r),Ne(e,n);for(let t=0;t<o.length;t+=1)o[t]&&o[t].m(n,null)},p(t,e){if(1&e){let r;for(i=Yn([...Object.keys(t[0])]),r=0;r<i.length;r+=1){const a=$c(t,i,r);o[r]?o[r].p(a,e):(o[r]=kc(a),o[r].c(),o[r].m(n,null))}for(;r<o.length;r+=1)o[r].d(1);o.length=i.length}},d(t){t&&Me(e),ze(o,t)}}}function bc(t){let e,n;return{c(){e=Be("feBlend"),this.h()},l(t){e=nn(t,"feBlend",{in2:!0,mode:!0}),Ze(e).forEach(Me),this.h()},h(){We(e,"in2","SourceGraphic"),We(e,"mode",n=t[3])},m(t,n){Te(t,e,n)},p(t,r){1&r&&n!==(n=t[3])&&We(e,"mode",n)},d(t){t&&Me(e)}}}function wc(t){let e;return{c(){e=Be("feComposite"),this.h()},l(t){e=nn(t,"feComposite",{in2:!0,operator:!0,k1:!0,k2:!0,k3:!0,k4:!0}),Ze(e).forEach(Me),this.h()},h(){We(e,"in2","SourceGraphic"),We(e,"operator","arithmetic"),We(e,"k1","1"),We(e,"k2","0"),We(e,"k3","0"),We(e,"k4","0")},m(t,n){Te(t,e,n)},p:ne,d(t){t&&Me(e)}}}function xc(t){let e,n;return{c(){e=Be("feComposite"),this.h()},l(t){e=nn(t,"feComposite",{in2:!0,operator:!0}),Ze(e).forEach(Me),this.h()},h(){We(e,"in2","SourceGraphic"),We(e,"operator",n=t[3].split("_")[1])},m(t,n){Te(t,e,n)},p(t,r){1&r&&n!==(n=t[3].split("_")[1])&&We(e,"operator",n)},d(t){t&&Me(e)}}}function kc(t){let e,n,r,i;function o(t,e){return"source_in"===t[3]||"source_atop"===t[3]?xc:"multiply"===t[3]?wc:bc}let a=o(t),s=a(t);return{c(){e=Be("filter"),n=Be("feFlood"),s.c(),this.h()},l(t){e=nn(t,"filter",{id:!0});var r=Ze(e);n=nn(r,"feFlood",{"flood-color":!0}),Ze(n).forEach(Me),s.l(r),r.forEach(Me),this.h()},h(){We(n,"flood-color",r=t[2]),We(e,"id",i=t[0][t[1]])},m(t,r){Te(t,e,r),Ne(e,n),s.m(e,null)},p(t,l){1&l&&r!==(r=t[2])&&We(n,"flood-color",r),a===(a=o(t))&&s?s.p(t,l):(s.d(1),s=a(t),s&&(s.c(),s.m(e,null))),1&l&&i!==(i=t[0][t[1]])&&We(e,"id",i)},d(t){t&&Me(e),s.d()}}}function Ec(t){let e,n=Object.keys(t[0]).length,r=n&&_c(t);return{c(){r&&r.c(),e=Ue()},l(t){r&&r.l(t),e=Ue()},m(t,n){r&&r.m(t,n),Te(t,e,n)},p(t,i){let[o]=i;1&o&&(n=Object.keys(t[0]).length),n?r?r.p(t,o):(r=_c(t),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null)},i:ne,o:ne,d(t){t&&Me(e),r&&r.d(t)}}}function Cc(t,e,n){let{svgFiltersMap:r}=e;return t.$$set=t=>{"svgFiltersMap"in t&&n(0,r=t.svgFiltersMap)},[r]}const Ac=class extends ur{constructor(t){super(),lr(this,t,Cc,Ec,de,{svgFiltersMap:0})}};function Vc(t,e,n,r){const i=n[t.type];if(!i)return r(ut(new Error("No such template"),{additional:{template:t.type}})),{json:t,templateContext:e};let o;const a={};for(o in e)e.hasOwnProperty(o)&&(a[o]=e[o]);for(o in t)"type"!==o&&"__proto__"!==o&&t.hasOwnProperty(o)&&(a[o]=t[o]);const s=function t(e,n){const r=Object.keys(n).filter((t=>"__proto__"!==t)),i=r.filter((t=>"$"!==t.charAt(0))),o=r.filter((t=>"$"===t.charAt(0)));return i.forEach((r=>{const i=n[r];"object"==typeof i&&null!==i?(e[r]=Array.isArray(i)?[]:{},t(e[r],i)):e[r]=i})),o.forEach((t=>{const r=n[t],i=a[r];if(void 0!==i){const n=t.substring(1);e[n]=i}})),e}({},i);for(o in t)"type"!==o&&"__proto__"!==o&&t.hasOwnProperty(o)&&(s[o]=t[o]);return{json:s,templateContext:a}}function Dc(){}function jc(t){return{subscribe:e=>(e(t),Dc)}}jc(void 0);class Fc{constructor(t){this.ast=t}apply(t,e){try{const n=_r(t,this.ast);n.warnings.forEach(e);const r=n.result;if("error"===r.type)return void e(ut(new Error("Expression execution error"),{additional:{message:r.value}}));const i=r.value;if(i instanceof Date)return A(i);if("boolean"===r.type)return Boolean(i);if("color"===r.type){const t=E(String(i));if(t)return O(t);e(ut(new Error("Expression execution error")))}if("integer"===r.type)return i>2147483647||i<-2147483648?void e(ut(new Error("Expression result is out of 32-bit int range"))):Number(i);if("array"===r.type||"dict"===r.type)try{return JSON.stringify(i)}catch(t){return e(ut(new Error("Failed to stringify ".concat(r.type)))),"<".concat(r.type,">")}return i}catch(t){return void e(ut(new Error("Expression execution error")))}}}function Pc(t,e,n){if(t)if("string"==typeof t){if((r=t).indexOf("@{")>-1||r.indexOf("\\")>-1){e.hasExpression=!0;try{const n=v(t,{startRule:"JsonStringContents"}),r=S(n);return e.vars.push(...r),new Fc(n)}catch(e){return void n(ut(new Error("Unable to parse expression"),{additional:{expression:t}}))}}}else{if(Array.isArray(t))return t.map((t=>Pc(t,e,n)));if("object"==typeof t){const r={};for(const i in t)r[i]=Pc(t[i],e,n);return r}}var r;return t}function Sc(t,e,n){if(t){if(t instanceof Fc)return t.apply(e,n);if(Array.isArray(t))return t.map((t=>Sc(t,e,n)));if("object"==typeof t){const r={};for(const i in t)r[i]=Sc(t[i],e,n);return r}}return t}function Ic(t,e){const n={vars:[],hasExpression:!1},r=Pc(t,n,e);return{vars:[...new Set(n.vars)],hasExpression:n.hasExpression,applyVars:t=>Sc(r,t,e)}}const Nc={pagers:function(){return hr(new Map)}},Oc=new Map,Tc=new Map;function Mc(t){const e=Oc.get(t)||hr("");return Oc.has(t)||Oc.set(t,e),e}function zc(t){const e=Tc.get(t)||new Map;return Tc.has(t)||Tc.set(t,e),e}class Jc{setVariable(t){const e=t.getName(),n=zc(this);if(n.has(e))throw new Error("Variable with the same name already exist");n.set(e,t),Mc(this).set(e)}getVariable(t){return zc(this).get(t)}list(){return zc(this).values()}}function Bc(){return new Jc}function Rc(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Lc=new Set(["start","stop","pause","resume","cancel","reset"]);class Uc{constructor(t){Rc(this,"timers",new Map),Rc(this,"awaitActions",[]),this.logError=t.logError,this.applyVars=t.applyVars,this.hasVariableWithType=t.hasVariableWithType,this.setVariableValue=t.setVariableValue,this.execAnyActions=t.execAnyActions,this.visibilityHandler=()=>{"visible"===document.visibilityState?(this.awaitActions.forEach((t=>{let{id:e,action:n}=t;this.execTimerAction(e,n)})),this.awaitActions=[],this.unholdAll()):this.holdAll()},document.addEventListener("visibilitychange",this.visibilityHandler)}destroy(){document.removeEventListener("visibilitychange",this.visibilityHandler);for(const[t,e]of this.timers)this.stopTimerTimeouts(e)}createTimer(t){null!=t&&t.id?t.duration||t.tick_interval&&(t.value_variable||t.tick_actions)?this.timers.set(t.id,{state:"stopped",definition:t}):this.logError(ut(new Error("Misconfigured timer"),{additional:{id:t.id}})):this.logError(ut(new Error("Missing timer id")))}execTimerAction(t,e){if(!(t&&e&&this.timers.has(t)&&Lc.has(e)))return void this.logError(ut(new Error("Incorrect timer action"),{additional:{id:t,action:e}}));const n=e;if("visible"!==document.visibilityState)return void this.awaitActions.push({id:t,action:n});const r=this.timers.get(t);this[n](r)}stopTimerTimeouts(t){t.durationTimeout&&(clearTimeout(t.durationTimeout),t.durationTimeout=void 0),t.tickTimeout&&(clearTimeout(t.tickTimeout),t.tickTimeout=void 0)}tickOrUnholdAction(t){const e=performance.now(),n=(t.durationPassed||0)+e-(t.durationStarted||0);t.duration&&n>t.duration||(this.updateVariable(t,n),this.callActions(t,"tick"),void 0!==t.tickCount&&++t.tickCount)}startOrResume(t){t.state="running",t.hold=!1,t.durationStarted=performance.now();const e=t.duration;e&&(t.durationTimeout=window.setTimeout((()=>{this.updateVariable(t,e),t.tickCountPredict&&void 0!==t.tickCount&&t.tickCount<t.tickCountPredict&&this.callActions(t,"tick"),this.stop(t)}),Math.max(0,e-(t.durationPassed||0))));const n=t.tick;if(n){const e=()=>{const r=t.tickStarted=performance.now(),i=Math.max(0,n-(t.tickPassed||0));t.tickTimeout=window.setTimeout((()=>{this.tickOrUnholdAction(t),t.tickPassed=(performance.now()-r-i)%n,e()}),i)};e()}}start(t){if("running"===t.state)return void this.logError(ut(new Error("The timer is already running")));if("paused"===t.state)return void this.logError(ut(new Error("The timer is paused")));const e=t.definition.value_variable;!e||this.hasVariableWithType(e,"integer")?(e&&this.setVariableValue(e,0),t.definition.duration&&(t.duration=this.applyVars(t.definition.duration)),t.definition.tick_interval&&(t.tick=this.applyVars(t.definition.tick_interval)),void 0!==t.duration&&t.duration<0||void 0!==t.tick&&t.tick<=0?this.logError(ut(new Error("Incorrect timer properties"),{additional:{id:t.definition.id}})):(void 0!==t.duration&&void 0!==t.tick&&(t.tickCount=0,t.tickCountPredict=Math.floor(t.duration/t.tick)),this.startOrResume(t))):this.logError(ut(new Error("Cannot find variable"),{additional:{name:e}}))}stop(t){"stopped"!==t.state?(t.state="stopped",t.durationPassed=0,t.tickPassed=0,this.stopTimerTimeouts(t),this.callActions(t,"end")):this.logError(ut(new Error("The timer has already been stopped")))}pause(t){if("stopped"===t.state)return void this.logError(ut(new Error("The timer has already been stopped")));if("paused"===t.state)return void this.logError(ut(new Error("The timer has already been paused")));t.state="paused",this.stopTimerTimeouts(t);const e=performance.now();t.durationStarted&&(t.durationPassed=(t.durationPassed||0)+e-t.durationStarted),t.tickStarted&&(t.tickPassed=(t.tickPassed||0)+e-t.tickStarted);const n=t.definition.value_variable;n&&t.durationPassed&&this.setVariableValue(n,Math.round(t.durationPassed))}resume(t){"stopped"!==t.state?"running"!==t.state?this.startOrResume(t):this.logError(ut(new Error("The timer is already running"))):this.logError(ut(new Error("The timer has already been stopped")))}cancel(t){"stopped"!==t.state&&(t.state="stopped",t.durationPassed=0,t.tickPassed=0,this.stopTimerTimeouts(t))}reset(t){this.cancel(t),this.start(t)}updateVariable(t,e){const n=t.definition.value_variable;n&&this.setVariableValue(n,Math.round(e))}callActions(t,e){const n=t.definition["end"===e?"end_actions":"tick_actions"];if(n){const t=this.applyVars(n);this.execAnyActions(t,!1)}}holdAll(){for(const[t,e]of this.timers)"running"===e.state&&(e.hold=!0,this.stopTimerTimeouts(e))}unholdAll(){for(const[t,e]of this.timers)if("running"===e.state&&e.hold){const t=performance.now();e.durationStarted&&(e.durationPassed=(e.durationPassed||0)+t-e.durationStarted),e.tickStarted&&(e.tickPassed=(e.tickPassed||0)+t-e.tickStarted),e.tick&&this.tickOrUnholdAction(e),this.startOrResume(e)}}}function Hc(t,e,n,r){const{variable_name:i}=n;if(!i)return void e(ut(new Error("Incorrect ".concat(n.type," action")),{additional:{name:i}}));const o=t.get(i);if(!o)return void e(ut(new Error("Cannot find variable"),{additional:{name:i}}));const a=o.getType();"array"===a?r(o):e(ut(new Error("Trying to insert value into the non-array"),{additional:{name:i,type:a}}))}function Wc(t){let e,n,r,i,o,a,s,l;return n=new Ac({props:{svgFiltersMap:t[4]}}),i=new vc({props:{div:t[5],templateContext:t[8],layoutParams:{tooltips:t[3]}}}),{c(){e=Je("div"),ir(n.$$.fragment),r=Le(),ir(i.$$.fragment),this.h()},l(t){e=en(t,"DIV",{class:!0});var o=Ze(e);or(n.$$.fragment,o),r=on(o),or(i.$$.fragment,o),o.forEach(Me),this.h()},h(){We(e,"class",o=""+(br.root+(t[6]?" ".concat(br.root_platform_desktop):"")+(t[0]?" ".concat(t[0]):"")))},m(t,o){Te(t,e,o),ar(n,e,null),Ne(e,r),ar(i,e,null),a=!0,s||(l=He(e,"touchstart",Xc,{passive:!0}),s=!0)},p(t,r){const s={};16&r[0]&&(s.svgFiltersMap=t[4]),n.$set(s);const l={};32&r[0]&&(l.div=t[5]),8&r[0]&&(l.layoutParams={tooltips:t[3]}),i.$set(l),(!a||65&r[0]&&o!==(o=""+(br.root+(t[6]?" ".concat(br.root_platform_desktop):"")+(t[0]?" ".concat(t[0]):""))))&&We(e,"class",o)},i(t){a||(Wn(n.$$.fragment,t),Wn(i.$$.fragment,t),a=!0)},o(t){qn(n.$$.fragment,t),qn(i.$$.fragment,t),a=!1},d(t){t&&Me(e),sr(n),sr(i),s=!1,l()}}}function qc(t){let e,n,r=!t[1]&&!t[2]&&t[5]&&Wc(t);return{c(){r&&r.c(),e=Ue()},l(t){r&&r.l(t),e=Ue()},m(t,i){r&&r.m(t,i),Te(t,e,i),n=!0},p(t,n){t[1]||t[2]||!t[5]?r&&(Un(),qn(r,1,1,(()=>{r=null})),Hn()):r?(r.p(t,n),38&n[0]&&Wn(r,1)):(r=Wc(t),r.c(),Wn(r,1),r.m(e.parentNode,e))},i(t){n||(Wn(r),n=!0)},o(t){qn(r),n=!1},d(t){t&&Me(e),r&&r.d(t)}}}let Gc=hr(!0),Kc=0;function Yc(){Gc.set(!1)}function Zc(){Gc.set(!0)}function Xc(){}function Qc(t,e,n){let r,i,o;var a,s,l,c;let{id:u}=e,{json:d={}}=e,{platform:h="auto"}=e,{theme:p="system"}=e,{globalVariablesController:f=new Jc}=e,{mix:g=""}=e,{customization:m={}}=e,{builtinProtocols:y=["http","https","tel","mailto","intent"]}=e,{extensions:$=new Map}=e,{onError:_}=e,{onStat:b}=e,{onCustomAction:w}=e,{onComponent:x}=e,{typefaceProvider:k=(t=>"")}=e,{fetchInit:E={}}=e,{tooltipRoot:C}=e,{customComponents:A}=e,V=hr("desktop"===h);if(pe(t,V,(t=>n(6,o=t))),"auto"===h&&"undefined"!=typeof matchMedia){const t=matchMedia("(any-pointer: coarse)");V.set(!t.matches),t.addListener((()=>{V.set(!t.matches)}))}let D="light",j=null;function F(){"system"===p&&j&&n(32,D=j.matches?"dark":"light")}const P=new Set(y);let I=!1,N=!1;u||(N=!0,W(ut(new Error('"id" prop is required'))));const O={stateChange:!1},T=Mc(f),M=zc(f),z=new Map,J=new Map,B=new Map;let R=null,L=0,U=[];function H(t){const e=Ic(t,W);return e.hasExpression?e.applyVars(J):t}function W(t){_?_({error:t}):"warn"===(null==t?void 0:t.level)?console.warn(t):console.error(t)}function q(t,e){b&&b({type:t,action:e})}let G=0;function K(t){return"".concat(u,"-").concat(G++)}let Y={},Z={};function X(t){const e=t.url?String(t.url):"",i=t.typed;if(ni(t))if(e)try{const i=e.replace(/div-action:\/\//,""),o=/([^?]+)\?(.+)/.exec(i);if(!o)return;const a=new URLSearchParams(o[2]);switch(o[1]){case"set_state":!function(t){if(!t)throw new Error("Missing state id");let e=lt,n=t.split("/");if(n=["root",...n],n.length<2||n.length%2!=0)throw new Error("Incorrect state id format");for(let t=0;t<n.length;t+=2){const r=n[t],i=n[t+1];let o=e.getChild(r);if(!o)return;o.setState(i),e=o}}(a.get("state_id"));break;case"set_current_item":!function(t,e){if(!t||!e)throw new Error('Missing data for "set-current-item" action');if(isNaN(Number(e)))throw new Error('Incorrect item for "set-current-item" action');const n=ot(t);n&&n.setCurrentItem(Number(e))}(a.get("id"),a.get("item"));break;case"set_previous_item":!function(t,e){if(!t)throw new Error('Missing id for "set-previous-item" action');if(e&&"clamp"!==e&&"ring"!==e)throw new Error('Incorrect overflow value for "set-previous-item" action');e=e||"clamp";const n=ot(t);n&&n.setPreviousItem(e)}(a.get("id"),a.get("overflow"));break;case"set_next_item":!function(t,e){if(!t)throw new Error('Missing id for "set-next-item" action');if(e&&"clamp"!==e&&"ring"!==e)throw new Error('Incorrect overflow value for "set-next-item" action');e=e||"clamp";const n=ot(t);n&&n.setNextItem(e)}(a.get("id"),a.get("overflow"));break;case"set_variable":const o=a.get("name"),s=a.get("value");if(o&&null!==s){const t=J.get(o);if(t){const e=t.getType();"dict"===e||"array"===e?W(ut(new Error("Setting ".concat(e," variables is not supported")),{additional:{name:o}})):t.set(s)}else W(ut(new Error("Cannot find variable"),{additional:{name:o}}))}else W(ut(new Error("Incorrect set_variable_action"),{additional:{url:i}}));break;case"timer":const l=a.get("action"),c=a.get("id");R?R.execTimerAction(c,l):W(ut(new Error("Incorrect timer action"),{additional:{id:c,action:l}}));break;case"video":!function(t,e){if(t){const n=ot(t);n?"start"===e?n.start():"pause"===e?n.pause():W(ut(new Error("Unknown video action"),{additional:{id:t,action:e}})):W(ut(new Error("Video component is not found"),{additional:{id:t,action:e}}))}else W(ut(new Error("Missing id in video action"),{additional:{action:e}}))}(a.get("id"),a.get("action"));break;case"download":!function(t,e){if(t){let n;n="function"==typeof E?E(t):E,fetch(t,n).then((t=>{if(!t.ok)throw new Error("Response is not ok");return t.json()})).then((n=>{var i,o,a;if(n){if(n.templates)for(const t in n.templates)r.hasOwnProperty(t)||(r[t]=n.templates[t]);if(Array.isArray(null===(i=n.patch)||void 0===i?void 0:i.changes)){if("transactional"===n.patch.mode){const r=n.patch.changes.find((t=>{const e=nt.get(t.id);if(!e)return!0;const n=Array.isArray(t.items)?t.items.length:0;return!(!e.isSingleMode||1===n)}));if(r)return W(ut(new Error("Skipping transactional, child is not found or broken"),{additional:{url:t,id:r.id}})),void Q(null===(o=e.download_callbacks)||void 0===o?void 0:o.on_fail_actions)}n.patch.changes.forEach((t=>{const e=nt.get(t.id);e&&e.replaceWith(t.id,t.items)})),Q(null===(a=e.download_callbacks)||void 0===a?void 0:a.on_success_actions)}}else W(ut(new Error("Incorrect patch"),{additional:{url:t}}))})).catch((n=>{var r;W(ut(new Error("Failed to download the patch"),{additional:{url:t,originalError:n}})),Q(null===(r=e.download_callbacks)||void 0===r?void 0:r.on_fail_actions)}))}else W(ut(new Error("Missing url in download action"),{additional:{url:t}}))}(a.get("url"),t);break;case"show_tooltip":!function(t,e){var r;if(!t)return void W(ut(new Error("Missing id in show_tooltip action")));const i=it.get(t);if(!i)return void W(ut(new Error("Tooltip with the provided id is not found"),{additional:{id:t}}));if("true"!==e&&U.some((e=>e.desc.id===t)))return;const o={internalId:++L,ownerNode:i.onwerNode,desc:i.tooltip,timeoutId:0};n(3,U=[...U,o]);const a=null!==(r=i.tooltip.duration)&&void 0!==r?r:5e3;a&&(o.timeoutId=window.setTimeout((()=>{o.timeoutId=0,n(3,U=U.filter((t=>t.internalId!==o.internalId)))}),a))}(a.get("id"),a.get("multiple"));break;case"hide_tooltip":!function(t){t?n(3,U=U.filter((e=>{const n=e.desc.id!==t;return!n&&e.timeoutId&&(clearTimeout(e.timeoutId),e.timeoutId=null),n}))):W(ut(new Error("Missing id in hide_tooltip action")))}(a.get("id"));break;default:W(ut(new Error("Unknown type of action"),{additional:{url:e}}))}}catch(t){W(ut(t,{additional:{url:e}}))}else if(i)switch(i.type){case"set_variable":{const{variable_name:t,value:e}=i;if(t&&e){const n=J.get(t);n?n.getType()===e.type?n.setValue(e.value):W(ut(new Error("Trying to set value with invalid type"),{additional:{name:t,type:e.type}})):W(ut(new Error("Cannot find variable"),{additional:{name:t}}))}else W(ut(new Error("Incorrect set_variable action"),{additional:{name:t}}));break}case"array_insert_value":!function(t,e,n){const{variable_name:r,index:i,value:o}=n;!o||"number"!=typeof i&&void 0!==i?e(ut(new Error("Incorrect array_insert_value action"),{additional:{name:r}})):Hc(t,e,n,(t=>{const a=t.getValue();if("number"==typeof i&&(i<0||i>a.length))e(ut(new Error("Index out of bound for mutation ".concat(n.type)),{additional:{name:r,index:i,length:a.length}}));else{const e=a.slice();"number"==typeof i?e.splice(i,0,o.value):e.push(o.value),t.setValue(e)}}))}(J,W,i);break;case"array_remove_value":!function(t,e,n){const{variable_name:r,index:i}=n;"number"==typeof i?Hc(t,e,n,(t=>{const o=t.getValue();if("number"==typeof i&&(i<0||i>=o.length))e(ut(new Error("Index out of bound for mutation ".concat(n.type)),{additional:{name:r,index:i,length:o.length}}));else{const e=o.slice();e.splice(i,1),t.setValue(e)}})):e(ut(new Error("Incorrect array_remove_value action"),{additional:{name:r}}))}(J,W,i);break;case"copy_to_clipboard":!function(t,e){!e.content||"text"!==e.content.type&&"url"!==e.content.type||"string"!=typeof e.content.value?t(ut(new Error("Incorrect action"),{additional:{action:e}})):"undefined"!=typeof navigator&&"clipboard"in navigator&&navigator.clipboard&&"writeText"in navigator.clipboard&&"function"==typeof navigator.clipboard.writeText?navigator.clipboard.writeText(e.content.value).catch((e=>{t(ut(new Error("Failed to copy to the clipboard"),{additional:{originalError:String(e)}}))})):t(ut(new Error("Clipboard is unavailable"),{additional:{action:e}}))}(W,i);break;case"focus_element":{const t=i.element_id&&rt.get(i.element_id);t?t.focus():W(ut(new Error("Incorrect focus_element action"),{additional:{elementId:i.element_id}}));break}default:W(ut(new Error("Unknown type of action"),{additional:{type:i.type}}))}}async function Q(t,e){if(!t||!Array.isArray(t))return;const n=t.filter(ni);for(let t=0;t<n.length;++t){let r=n[t];const i=r.url,o=r.typed;if(i){const t=Nr(i);if(t)if(Or(t,P)){if(e)if("_blank"===r.target){const t=window.open("","_blank");t&&(t.opener=null,t.location=i)}else location.href=i}else"div-action"===t?(X(r),await Sn()):r.log_id&&(tt(r),await Sn())}else o&&X(r)}n.forEach((t=>{t.log_id&&q("click",t)}))}function tt(t){null==w||w(t)}const et=new Map,nt=new Map,rt=new Map,it=new Map;function ot(t){if(et.has(t))return et.get(t);W(ut(new Error("Missing instance with id"),{additional:{id:t}}))}const at=new Map;function st(t){const e=B.get(t)||hr(void 0);return B.has(t)||B.set(t,e),e}xn(wr,{logError:W,logStat:q,hasTemplate:function(t){return t in r},processTemplate:function(t,e){if(!t)return{json:t,templateContext:e};const n=new Set([t.type]);for(;t.type in r;){if(({json:t,templateContext:e}=Vc(t,e,r,W)),n.has(t.type))return{json:t,templateContext:e};n.add(t.type)}return{json:t,templateContext:e}},genId:K,genClass:function(t){return"divkit-".concat(K())},execAction:X,execAnyActions:Q,execCustomAction:tt,isRunning:function(t){return O[t]},setRunning:function(t,e){O[t]=e},registerInstance:function(t,e){et.has(t)?W(ut(new Error("Duplicate instance id"),{additional:{id:t}})):et.set(t,e)},unregisterInstance:function(t){et.delete(t)},registerParentOf:function(t,e){nt.set(t,e)},unregisterParentOf:function(t){nt.delete(t)},registerTooltip:function(t,e){it.has(e.id)&&W(ut(new Error("Duplicate tooltip id"),{additional:{id:e.id}})),it.set(e.id,{onwerNode:t,tooltip:e})},unregisterTooltip:function(t){it.delete(t.id),U.some((e=>e.desc.id===t.id))&&n(3,U=U.filter((e=>e.desc.id!==t.id)))},onTooltipClose:function(t){n(3,U=U.filter((e=>e.internalId!==t)))},tooltipRoot:C,registerFocusable:function(t,e){rt.set(t,e)},unregisterFocusable:function(t){rt.delete(t)},addSvgFilter:function(t,e){const r="".concat(t,":").concat(e);if(Z[r]=Z[r]||0,++Z[r],Y[r])return Y[r];const i="".concat(K(),"-svg-filter");return n(4,Y=Object.assign(Object.assign({},Y),{[r]:i})),i},removeSvgFilter:function(t,e){if(!t)return;const r="".concat(t,":").concat(e);Z[r]&&0==--Z[r]&&n(4,Y=Object.keys(Y).reduce(((t,e)=>(Z[e]&&(t[e]=Y[e]),t)),{}))},getDerivedFromVars:function(t){if(!t)return jc(t);const e=Ic(t,W);return e.vars.length?pr(e.vars.map((t=>J.get(t)||st(t))).filter(Dr),(()=>e.applyVars(J))):e.hasExpression?jc(e.applyVars(J)):jc(t)},getJsonWithVars:H,getStore:function(t){return at.has(t)||function(t){at.has(t)||at.set(t,Nc[t]())}(t),at.get(t)},getVariable:function(t,e){const n=J.get(t);if(n){const r=n.getType();if(r!==e)return void W(ut(new Error('Variable should have type "'.concat(e,'"')),{additional:{name:t,foundType:r}}))}return n},getCustomization:function(t){return null==m?void 0:m[t]},getBuiltinProtocols:function(){return P},getExtension:function(t,e){const n=$.get(t);if(n)return new n(e||{})},getExtensionContext:function(){return{variables:J,logError:W}},typefaceProvider:k,isDesktop:V,isPointerFocus:Gc,customComponents:A,componentDevtool:function(t){let{type:e,node:n,json:r,origJson:i,templateContext:o}=t;x&&x({type:e,node:n,json:r,origJson:i,templateContext:o})}}),xn(ai,{hasAction:()=>!1});const lt={setState(t){throw new Error("Not implemented")},getChild(t){if(ct&&ct.has(t))return ct.get(t);W(ut(new Error("Missing state block with id"),{additional:{id:t}}))}};let ct=null;function dt(t){if(t.type in gr){"integer"===t.type&&"number"==typeof t.value&&(t.value>Number.MAX_SAFE_INTEGER||t.value<Number.MIN_SAFE_INTEGER)&&W(ut(new Error("The value of the integer variable could lose accuracy"),{level:"warn",additional:{name:t.name,value:t.value}}));try{const e=mr(t.name,t.type,t.value);z.set(t.name,e),J.set(t.name,e)}catch(e){W(ut(e,{additional:{name:t.name}}))}}}xn(Rr,{registerInstance(t,e){ct||(ct=new Map),ct.has(t)?W(ut(new Error("Duplicate state with id"),{additional:{id:t}})):ct.set(t,e)},unregisterInstance(t){null==ct||ct.delete(t)},runVisibilityTransition:(t,e,n,r,i)=>Promise.resolve(),registerChildWithTransitionIn:(t,e,n,r)=>Promise.resolve(),registerChildWithTransitionOut:(t,e,n,r)=>Promise.resolve(),registerChildWithTransitionChange:(t,e,n,r)=>Promise.resolve(),hasTransitionChange:t=>!1,registerChild(t){},unregisterChild(t){}});const ht=null===(a=null==d?void 0:d.card)||void 0===a?void 0:a.variables;Array.isArray(ht)&&ht.forEach((t=>{if(t&&t.name){if(z.has(t.name))return void W(ut(new Error("Duplicate variable"),{additional:{name:t.name}}));dt(t)}}));const pt=d.palette;pt&&pt[D].forEach((t=>{if(z.has(t.name))W(ut(new Error("Duplicate variable"),{additional:{name:t.name}}));else try{const e=mr(t.name,"color",t.color);z.set(t.name,e),J.set(t.name,e)}catch(e){W(ut(e,{additional:{name:t.name}}))}}));for(const[t,e]of M)J.has(t)||J.set(t,e);T.subscribe((t=>{if(t&&!J.has(t)){const e=M.get(t);J.set(t,e);const n=B.get(t);if(n){let t=0;e.subscribe((()=>{n.set(++t)}))}}}));const ft=null===(l=null==d?void 0:d.card)||void 0===l?void 0:l.timers;if(ft&&"undefined"!=typeof document){const t=R=new Uc({logError:W,applyVars:H,hasVariableWithType:function(t,e){const n=J.get(t);return(null==n?void 0:n.getType())===e},setVariableValue:function(t,e){const n=J.get(t);n?n.setValue(e):W(ut(new Error("Cannot find variable"),{additional:{name:t}}))},execAnyActions:Q});ft.forEach((e=>t.createTimer(e)))}let gt;return bn((()=>{Kc++,1===Kc&&(window.addEventListener("keydown",Yc),window.addEventListener("pointerdown",Zc)),(()=>{var t;const e=null===(t=null==d?void 0:d.card)||void 0===t?void 0:t.variable_triggers;Array.isArray(e)&&e.forEach((t=>{let e=!1;if("string"!=typeof t.condition)return void W(ut(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=v(t.condition,{startRule:"JsonStringContents"}),i=S(r);if(!i.length)return void W(ut(new Error("variable_trigger must have variables in the condition"),{additional:{condition:t.condition}}));pr(i.map((t=>J.get(t)||st(t))),(()=>{const t=_r(J,r);return t.warnings.forEach(W),t.result})).subscribe((r=>{"error"!==r.type?(r.value&&("on_variable"===n||"on_condition"===n&&!1===e)&&t.actions.forEach((t=>{const e=H(t);e.log_id&&X(e)})),e=Boolean(r.value)):W(ut(new Error("variable_trigger condition execution error"),{additional:{message:r.value}}))}))}catch(e){W(ut(new Error("Unable to parse variable_trigger"),{additional:{condition:t.condition}}))}else W(ut(new Error("variable_trigger has an unsupported mode"),{additional:{mode:n}}))}))})()})),wn((()=>{Kc--,Kc||(window.removeEventListener("keydown",Yc),window.removeEventListener("pointerdown",Zc)),R&&R.destroy(),U.forEach((t=>{t.timeoutId&&(clearTimeout(t.timeoutId),t.timeoutId=null)}))})),t.$$set=t=>{"id"in t&&n(11,u=t.id),"json"in t&&n(9,d=t.json),"platform"in t&&n(12,h=t.platform),"theme"in t&&n(10,p=t.theme),"globalVariablesController"in t&&n(13,f=t.globalVariablesController),"mix"in t&&n(0,g=t.mix),"customization"in t&&n(14,m=t.customization),"builtinProtocols"in t&&n(15,y=t.builtinProtocols),"extensions"in t&&n(16,$=t.extensions),"onError"in t&&n(17,_=t.onError),"onStat"in t&&n(18,b=t.onStat),"onCustomAction"in t&&n(19,w=t.onCustomAction),"onComponent"in t&&n(20,x=t.onComponent),"typefaceProvider"in t&&n(21,k=t.typefaceProvider),"fetchInit"in t&&n(22,E=t.fetchInit),"tooltipRoot"in t&&n(23,C=t.tooltipRoot),"customComponents"in t&&n(24,A=t.customComponents)},t.$$.update=()=>{if(1024&t.$$.dirty[0]|4&t.$$.dirty[1]&&("light"===p||"dark"===p?n(32,D=p):"system"===p?"undefined"!=typeof matchMedia?(j||(n(33,j=matchMedia("(prefers-color-scheme: dark)")),j.addListener(F)),n(32,D=j.matches?"dark":"light")):n(32,D="light"):W(ut(new Error("Unsupported theme")))),2&t.$$.dirty[1]&&D&&(pt&&pt[D].forEach((t=>{const e=J.get(t.name);e&&e.setValue(t.color)}))),512&t.$$.dirty[0]){n(1,I=!1);const t=function(t){if(!t)return ut(new Error("Missing object"));const e=t.card,n=t.templates||{};if(!e)return ut(new Error("Missing card"));if(!e.states||!e.states.length)return ut(new Error("Missing states"));for(const t in n)if(n.hasOwnProperty(t)&&t in pc)return ut(new Error("Template name collision"),{additional:{templateName:t}});for(let t=0;t<e.states.length;++t){if(!e.states[t].div)return ut(new Error("Missing state div"),{additional:{stateId:e.states[t].state_id}});if("number"!=typeof e.states[t].state_id)return ut(new Error("Missing state_id"),{additional:{index:t}})}return null}(d);t&&(n(1,I=!0),W(t))}512&t.$$.dirty[0]&&(r=d.templates||{}),1073742336&t.$$.dirty[0]&&(null===n(30,s=null==d?void 0:d.card)||void 0===s?void 0:s.variables)&&Array.isArray(d.card.variables)&&d.card.variables!==ht&&d.card.variables.forEach((t=>{t&&t.name&&!z.has(t.name)&&dt(t)})),512&t.$$.dirty[0]|1&t.$$.dirty[1]&&n(34,i=null===n(31,c=null==d?void 0:d.card)||void 0===c?void 0:c.states),6&t.$$.dirty[0]|8&t.$$.dirty[1]&&(!i||I||N||n(5,gt={type:"state",id:"root",width:{type:"match_parent"},height:{type:"match_parent"},states:i.map((t=>({state_id:t.state_id.toString(),div:t.div})))}))},[g,I,N,U,Y,gt,o,V,{},d,p,u,h,f,m,y,$,_,b,w,x,k,E,C,A,function(t){n(10,p=t)},function(){return z},function(){return J},function(t){n(9,d=t)},function(t){X(H(t))},s,c,D,j,i]}const tu=class extends ur{constructor(t){super(),lr(this,t,Qc,qc,de,{id:11,json:9,platform:12,theme:10,globalVariablesController:13,mix:0,customization:14,builtinProtocols:15,extensions:16,onError:17,onStat:18,onCustomAction:19,onComponent:20,typefaceProvider:21,fetchInit:22,tooltipRoot:23,customComponents:24,setTheme:25,getDebugVariables:26,getDebugAllVariables:27,setData:28,execAction:29},null,[-1,-1,-1,-1])}get setTheme(){return this.$$.ctx[25]}get getDebugVariables(){return this.$$.ctx[26]}get getDebugAllVariables(){return this.$$.ctx[27]}get setData(){return this.$$.ctx[28]}get execAction(){return this.$$.ctx[29]}};class eu{constructor(t){var e,n,r;e=this,r={},n=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(n="sizeHistory"),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,this.widthVariableName=t.width_variable_name,this.heightVariableName=t.height_variable_name}setVariable(t,e){if(!this.context)return!1;if(t){const n=this.context.variables.get(t);if(n&&"integer"===n.getType()){if(e=Math.round(e),this.sizeHistory[t]||(this.sizeHistory[t]=new Set),!this.sizeHistory[t].has(e))return n.setValue(e),this.sizeHistory[t].add(e),!0}else{const e=new Error("Missing variable");e.level="error",e.additional={variableName:t},this.context.logError(e)}}return!1}recalcProps(){if(!this.node||!this.context)return!1;const t=this.node.getBoundingClientRect(),e=this.setVariable(this.widthVariableName,t.width),n=this.setVariable(this.heightVariableName,t.height);return e||n}mountView(t,e){var n;this.node=t,this.context=e,this.resizeObserver||"undefined"==typeof ResizeObserver||(this.resizeObserver=new ResizeObserver((async()=>{let t=0;for(;this.recalcProps();){if(++t>8){const t=new Error("Recursive layout in size_provider");t.level="warn",t.additional={widthVariableName:this.widthVariableName,heightVariableName:this.heightVariableName},e.logError(t);break}await Sn()}this.sizeHistory={}}))),null===(n=this.resizeObserver)||void 0===n||n.observe(t),this.recalcProps()}unmountView(t,e){var n;null===(n=this.resizeObserver)||void 0===n||n.disconnect(),this.resizeObserver=void 0}}function nu(t){return t instanceof HTMLElement}function ru(t){return class{constructor(t){this.params=t}loadData(){if(this.params.lottie_json)return Promise.resolve(this.params.lottie_json);const t=this.params.lottie_url;return t?fetch(t).then((t=>{if(!t.ok)throw new Error("Response is not ok");return t.json()})):Promise.reject("Missing data")}mountView(e,n){if(!this.params.lottie_url&&!this.params.lottie_json)return;const r=Array.from(e.children).filter(nu);r.forEach((t=>{t.style.display="none"})),e.setAttribute("data-lottie","true");const i=this.wrapper=document.createElement("div");this.wrapper.style.width="100%",this.wrapper.style.height="100%",e.appendChild(this.wrapper);const o=Number(this.params.repeat_count||-1),a=()=>{var t,i;null===(t=this.animItem)||void 0===t||t.destroy(),r.forEach((t=>{t.style.display=""})),e.removeAttribute("data-lottie"),this.wrapper&&(null===(i=this.wrapper.parentNode)||void 0===i||i.removeChild(this.wrapper),this.wrapper=void 0);const o=new Error("Failed to load lottie animation");o.level="error",o.additional={url:this.params.lottie_url},n.logError(o)};this.loadData().then((e=>{const n=this.animItem=t({container:i,animationData:e,renderer:"svg",loop:!0});if(this.animItem.addEventListener("data_failed",a),"reverse"===this.params.repeat_mode||-1!==o){let t=1,e=0;n.addEventListener("loopComplete",(()=>{++e,-1!==o&&e===o?(n.stop(),n.goToAndStop(n.totalFrames,!0)):("reverse"===this.params.repeat_mode&&(t*=-1,n.setDirection(t)),n.goToAndPlay(1===t?0:n.totalFrames,!0))}))}})).catch(a)}unmountView(t,e){var n,r;null===(n=this.animItem)||void 0===n||n.destroy(),this.wrapper&&(null===(r=this.wrapper.parentNode)||void 0===r||r.removeChild(this.wrapper),this.wrapper=void 0),t.removeAttribute("data-lottie")}}}const iu=["target","hydrate"];function ou(t){const{target:e,hydrate:n}=t,r=function(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(t,iu),i=new tu({target:e,props:r,hydrate:n});return{$destroy(){i.$destroy()},execAction(t){i.execAction(t)},setTheme(t){i.setTheme(t)},setData(t){i.setData(t)},getDebugVariables:()=>i.getDebugVariables(),getDebugAllVariables:()=>i.getDebugAllVariables()}}function au(t,e){return su(t,e).result}function su(t,e){let n;try{n=v(t,{startRule:"json"===(null==e?void 0:e.type)?"JsonStringContents":"start"})}catch(t){return{result:{type:"error",value:"Unable to parse expression"},warnings:[]}}return _r((null==e?void 0:e.variables)||new Map,n)}function lu(){return Array.from(y.keys())}function cu(t,e){return v(t,{startRule:"json"===(null==e?void 0:e.type)?"JsonStringContents":"start"})}var uu=e.Hy,du=e.M,hu=e.Os,pu=e.fz,fu=e.iL,gu=e.e4,mu=e._0,vu=e.BJ,yu=e.sY,$u=e.Z3,_u=e.xn;export{uu as SizeProvider,du as createGlobalVariablesController,hu as createVariable,pu as evalExpression,fu as evalExpressionWithFullResult,gu as functionNames,mu as lottieExtensionBuilder,vu as parseExpression,yu as render,$u as valToString,_u as walkExpression};
|
|
1
|
+
var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)},e={};t.d(e,{Hy:()=>bu,M:()=>iu,Os:()=>Cr,fz:()=>Eu,iL:()=>Cu,e4:()=>Au,_0:()=>wu,BJ:()=>ju,sY:()=>ku,Z3:()=>j,xn:()=>w});const n="function"==typeof BigInt;function r(t){return n?BigInt(t):Number(t)}const o=r("9223372036854775807"),i=r("-9223372036854775808");function a(t){const e=r(t);if(e>o||e<i)throw new Error("Integer overflow.");return e}const s=a(0);function l(t){let e=t;return e<0&&(e=-e),e}function c(t){let e=0;return t>0?e=1:t<0&&(e=-1),a(e)}function u(t,e){return e.reduce(((t,e)=>({type:"BinaryExpression",operator:e[1],left:t,right:e[3]})),t)}function d(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 h(t){try{return a(t)}catch(e){throw new Error("Value ".concat(t," can't be converted to Integer type."))}}function f(t){if("'"===t||"\\"===t)return t;throw new Error("Incorrect string escape")}function g(t,e,n,r){var o=Error.call(this,t);return Object.setPrototypeOf&&Object.setPrototypeOf(o,g.prototype),o.expected=e,o.found=n,o.location=r,o.name="SyntaxError",o}function m(t,e,n){return n=n||" ",t.length>e?t:(e-=t.length,t+(n+=n.repeat(e)).slice(0,e))}function v(t,e){var n,r={},o=(e=void 0!==e?e:{}).grammarSource,i={start:Oe,JsonStringContents:function(){var t,e,n;for(t=xe,e=[],n=Me();n!==r;)e.push(n),n=Me();return ke=t,e=zt(e)}},a=Oe,s="@{",l="}",c="@{}",m="\\",v="?",y=":",$="!:",b="||",_="&&",w="==",x="!=",k=">=",E=">",C="<=",A="<",j="+",V="-",D="/",F="*",P="%",S="!",I="(",N=")",O=",",M="'",T=".",z="e",R="E",B="true",L="false",U=/^[^}]/,H=/^[^'}]/,W=/^[0-9]/,J=/^[a-zA-Z_0-9.]/,q=/^[a-zA-Z_]/,G=/^[ \t\r\n]/,K=De("@{",!1),Y=De("}",!1),Z=De("@{}",!1),X=De("\\",!1),Q={type:"any"},tt=Fe(["}"],!0,!1),et=De("?",!1),nt=De(":",!1),rt=De("!:",!1),ot=De("||",!1),it=De("&&",!1),at=De("==",!1),st=De("!=",!1),lt=De(">=",!1),ct=De(">",!1),ut=De("<=",!1),dt=De("<",!1),pt=De("+",!1),ht=De("-",!1),ft=De("/",!1),gt=De("*",!1),mt=De("%",!1),vt=De("!",!1),yt=De("(",!1),$t=De(")",!1),bt=De(",",!1),_t=Pe("string"),wt=De("'",!1),xt=Fe(["'","}"],!0,!1),kt=Pe("integer"),Et=Fe([["0","9"]],!1,!1),Ct=Pe("number"),At=De(".",!1),jt=De("e",!1),Vt=De("E",!1),Dt=Pe("boolean"),Ft=De("true",!1),Pt=De("false",!1),St=Fe([["a","z"],["A","Z"],"_",["0","9"],"."],!1,!1),It=Pe("identifier"),Nt=Fe([["a","z"],["A","Z"],"_"],!1,!1),Ot=Pe("whitespace"),Mt=Fe([" ","\t","\r","\n"],!1,!1),Tt=function(t){return t},zt=function(t){return p(t)},Rt=function(t){return t},Bt=function(){return""},Lt=function(){return Ve()},Ut=function(){throw new Error("Error tokenizing '"+t+"'.")},Ht=function(){throw new Error("Error tokenizing '"+t+"'.")},Wt=function(t){return t},Jt=function(t){return f(t)},qt=function(){throw new Error("Error tokenizing '"+t+"'.")},Gt=function(t,e,n){return{type:"ConditionalExpression",test:t,consequent:e,alternate:n}},Kt=function(t,e){return{type:"TryExpression",test:t,alternate:e}},Yt=function(t,e){return d(t,e)},Zt=function(t,e){return d(t,e)},Xt=function(t,e){return u(t,e)},Qt=function(t,e){return u(t,e)},te=function(t,e){return u(t,e)},ee=function(t,e){return u(t,e)},ne=function(t,e){return{type:"UnaryExpression",operator:t,argument:e}},re=function(t,e){return{type:"CallExpression",callee:t,arguments:e}},oe=function(t){return{type:"Variable",id:t}},ie=function(t,e){return[t,...e]},ae=function(t){return t},se=function(t){return t},le=function(t){return p(t)},ce=function(t){return t},ue=function(){return""},de=function(){return Ve()},pe=function(){throw new Error("Error tokenizing '"+t+"'.")},he=function(){throw new Error("Error tokenizing '"+t+"'.")},fe=function(t){return t},ge=function(t){return f(t)},me=function(){throw new Error("Error tokenizing '"+t+"'.")},ve=function(){return{type:"IntegerLiteral",value:h(Ve())}},ye=function(){return{type:"NumberLiteral",value:parseFloat(Ve())}},$e=function(){return{type:"NumberLiteral",value:parseFloat(Ve())}},be=function(){return{type:"BooleanLiteral",value:!0}},_e=function(){return{type:"BooleanLiteral",value:!1}},we=function(){return{type:"Identifier",name:Ve()}},xe=0,ke=0,Ee=[{line:1,column:1}],Ce=0,Ae=[],je=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 Ve(){return t.substring(ke,xe)}function De(t,e){return{type:"literal",text:t,ignoreCase:e}}function Fe(t,e,n){return{type:"class",parts:t,inverted:e,ignoreCase:n}}function Pe(t){return{type:"other",description:t}}function Se(e){var n,r=Ee[e];if(r)return r;for(n=e-1;!Ee[n];)n--;for(r={line:(r=Ee[n]).line,column:r.column};n<e;)10===t.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return Ee[e]=r,r}function Ie(t,e,n){var r=Se(t),i=Se(e),a={source:o,start:{offset:t,line:r.line,column:r.column},end:{offset:e,line:i.line,column:i.column}};return n&&o&&"function"==typeof o.offset&&(a.start=o.offset(a.start),a.end=o.offset(a.end)),a}function Ne(t){xe<Ce||(xe>Ce&&(Ce=xe,Ae=[]),Ae.push(t))}function Oe(){var t,e;return t=xe,Ze(),(e=Te())!==r?(Ze(),ke=t,t=Tt(e)):(xe=t,t=r),t}function Me(){var e,n,o,i,a;if(e=xe,t.substr(xe,2)===s?(n=s,xe+=2):(n=r,0===je&&Ne(K)),n!==r?(o=Ze(),(i=Te())!==r?(Ze(),125===t.charCodeAt(xe)?(a=l,xe++):(a=r,0===je&&Ne(Y)),a!==r?(ke=e,e=Rt(i)):(xe=e,e=r)):(xe=e,e=r)):(xe=e,e=r),e===r&&(e=xe,t.substr(xe,3)===c?(n=c,xe+=3):(n=r,0===je&&Ne(Z)),n!==r&&(ke=e,n=Bt()),(e=n)===r&&(e=xe,n=xe,je++,92===t.charCodeAt(xe)?(o=m,xe++):(o=r,0===je&&Ne(X)),o===r&&(t.substr(xe,2)===s?(o=s,xe+=2):(o=r,0===je&&Ne(K))),je--,o===r?n=void 0:(xe=n,n=r),n!==r?(t.length>xe?(o=t.charAt(xe),xe++):(o=r,0===je&&Ne(Q)),o!==r?(ke=e,e=Lt()):(xe=e,e=r)):(xe=e,e=r),e===r))){if(e=xe,t.substr(xe,2)===s?(n=s,xe+=2):(n=r,0===je&&Ne(K)),n!==r){if(o=[],U.test(t.charAt(xe))?(i=t.charAt(xe),xe++):(i=r,0===je&&Ne(tt)),i!==r)for(;i!==r;)o.push(i),U.test(t.charAt(xe))?(i=t.charAt(xe),xe++):(i=r,0===je&&Ne(tt));else o=r;o!==r?(125===t.charCodeAt(xe)?(i=l,xe++):(i=r,0===je&&Ne(Y)),i!==r?(ke=e,e=Ut()):(xe=e,e=r)):(xe=e,e=r)}else xe=e,e=r;e===r&&(e=xe,t.substr(xe,2)===s?(n=s,xe+=2):(n=r,0===je&&Ne(K)),n!==r&&(ke=e,n=Ht()),(e=n)===r&&(e=xe,92===t.charCodeAt(xe)?(n=m,xe++):(n=r,0===je&&Ne(X)),n!==r?(t.substr(xe,2)===s?(o=s,xe+=2):(o=r,0===je&&Ne(K)),o!==r?(ke=e,e=Wt(o)):(xe=e,e=r)):(xe=e,e=r),e===r&&(e=xe,92===t.charCodeAt(xe)?(n=m,xe++):(n=r,0===je&&Ne(X)),n!==r?(t.length>xe?(o=t.charAt(xe),xe++):(o=r,0===je&&Ne(Q)),o!==r?(ke=e,e=Jt(o)):(xe=e,e=r)):(xe=e,e=r),e===r&&(e=xe,92===t.charCodeAt(xe)?(n=m,xe++):(n=r,0===je&&Ne(X)),n!==r&&(ke=e,n=qt()),e=n))))}return e}function Te(){var e,n,o,i,a,s;return e=xe,(n=ze())!==r?(Ze(),63===t.charCodeAt(xe)?(o=v,xe++):(o=r,0===je&&Ne(et)),o!==r?(Ze(),(i=Te())!==r?(Ze(),58===t.charCodeAt(xe)?(a=y,xe++):(a=r,0===je&&Ne(nt)),a!==r?(Ze(),(s=Te())!==r?(ke=e,e=Gt(n,i,s)):(xe=e,e=r)):(xe=e,e=r)):(xe=e,e=r)):(xe=e,e=r)):(xe=e,e=r),e===r&&(e=ze()),e}function ze(){var e,n,o,i;return e=xe,(n=Re())!==r?(Ze(),t.substr(xe,2)===$?(o=$,xe+=2):(o=r,0===je&&Ne(rt)),o!==r?(Ze(),(i=Te())!==r?(ke=e,e=Kt(n,i)):(xe=e,e=r)):(xe=e,e=r)):(xe=e,e=r),e===r&&(e=Re()),e}function Re(){var e,n,o,i,a,s,l,c;if(e=xe,(n=Be())!==r){for(o=[],i=xe,a=Ze(),t.substr(xe,2)===b?(s=b,xe+=2):(s=r,0===je&&Ne(ot)),s!==r?(l=Ze(),(c=Be())!==r?i=a=[a,s,l,c]:(xe=i,i=r)):(xe=i,i=r);i!==r;)o.push(i),i=xe,a=Ze(),t.substr(xe,2)===b?(s=b,xe+=2):(s=r,0===je&&Ne(ot)),s!==r?(l=Ze(),(c=Be())!==r?i=a=[a,s,l,c]:(xe=i,i=r)):(xe=i,i=r);ke=e,e=Yt(n,o)}else xe=e,e=r;return e}function Be(){var e,n,o,i,a,s,l,c;if(e=xe,(n=Le())!==r){for(o=[],i=xe,a=Ze(),t.substr(xe,2)===_?(s=_,xe+=2):(s=r,0===je&&Ne(it)),s!==r?(l=Ze(),(c=Le())!==r?i=a=[a,s,l,c]:(xe=i,i=r)):(xe=i,i=r);i!==r;)o.push(i),i=xe,a=Ze(),t.substr(xe,2)===_?(s=_,xe+=2):(s=r,0===je&&Ne(it)),s!==r?(l=Ze(),(c=Le())!==r?i=a=[a,s,l,c]:(xe=i,i=r)):(xe=i,i=r);ke=e,e=Zt(n,o)}else xe=e,e=r;return e}function Le(){var e,n,o,i,a,s,l,c;if(e=xe,(n=Ue())!==r){for(o=[],i=xe,a=Ze(),t.substr(xe,2)===w?(s=w,xe+=2):(s=r,0===je&&Ne(at)),s===r&&(t.substr(xe,2)===x?(s=x,xe+=2):(s=r,0===je&&Ne(st))),s!==r?(l=Ze(),(c=Ue())!==r?i=a=[a,s,l,c]:(xe=i,i=r)):(xe=i,i=r);i!==r;)o.push(i),i=xe,a=Ze(),t.substr(xe,2)===w?(s=w,xe+=2):(s=r,0===je&&Ne(at)),s===r&&(t.substr(xe,2)===x?(s=x,xe+=2):(s=r,0===je&&Ne(st))),s!==r?(l=Ze(),(c=Ue())!==r?i=a=[a,s,l,c]:(xe=i,i=r)):(xe=i,i=r);ke=e,e=Xt(n,o)}else xe=e,e=r;return e}function Ue(){var e,n,o,i,a,s,l,c;if(e=xe,(n=He())!==r){for(o=[],i=xe,a=Ze(),t.substr(xe,2)===k?(s=k,xe+=2):(s=r,0===je&&Ne(lt)),s===r&&(62===t.charCodeAt(xe)?(s=E,xe++):(s=r,0===je&&Ne(ct)),s===r&&(t.substr(xe,2)===C?(s=C,xe+=2):(s=r,0===je&&Ne(ut)),s===r&&(60===t.charCodeAt(xe)?(s=A,xe++):(s=r,0===je&&Ne(dt))))),s!==r?(l=Ze(),(c=He())!==r?i=a=[a,s,l,c]:(xe=i,i=r)):(xe=i,i=r);i!==r;)o.push(i),i=xe,a=Ze(),t.substr(xe,2)===k?(s=k,xe+=2):(s=r,0===je&&Ne(lt)),s===r&&(62===t.charCodeAt(xe)?(s=E,xe++):(s=r,0===je&&Ne(ct)),s===r&&(t.substr(xe,2)===C?(s=C,xe+=2):(s=r,0===je&&Ne(ut)),s===r&&(60===t.charCodeAt(xe)?(s=A,xe++):(s=r,0===je&&Ne(dt))))),s!==r?(l=Ze(),(c=He())!==r?i=a=[a,s,l,c]:(xe=i,i=r)):(xe=i,i=r);ke=e,e=Qt(n,o)}else xe=e,e=r;return e}function He(){var e,n,o,i,a,s,l,c;if(e=xe,(n=We())!==r){for(o=[],i=xe,a=Ze(),43===t.charCodeAt(xe)?(s=j,xe++):(s=r,0===je&&Ne(pt)),s===r&&(45===t.charCodeAt(xe)?(s=V,xe++):(s=r,0===je&&Ne(ht))),s!==r?(l=Ze(),(c=We())!==r?i=a=[a,s,l,c]:(xe=i,i=r)):(xe=i,i=r);i!==r;)o.push(i),i=xe,a=Ze(),43===t.charCodeAt(xe)?(s=j,xe++):(s=r,0===je&&Ne(pt)),s===r&&(45===t.charCodeAt(xe)?(s=V,xe++):(s=r,0===je&&Ne(ht))),s!==r?(l=Ze(),(c=We())!==r?i=a=[a,s,l,c]:(xe=i,i=r)):(xe=i,i=r);ke=e,e=te(n,o)}else xe=e,e=r;return e}function We(){var e,n,o,i,a,s,l,c;if(e=xe,(n=Je())!==r){for(o=[],i=xe,a=Ze(),47===t.charCodeAt(xe)?(s=D,xe++):(s=r,0===je&&Ne(ft)),s===r&&(42===t.charCodeAt(xe)?(s=F,xe++):(s=r,0===je&&Ne(gt)),s===r&&(37===t.charCodeAt(xe)?(s=P,xe++):(s=r,0===je&&Ne(mt)))),s!==r?(l=Ze(),(c=Je())!==r?i=a=[a,s,l,c]:(xe=i,i=r)):(xe=i,i=r);i!==r;)o.push(i),i=xe,a=Ze(),47===t.charCodeAt(xe)?(s=D,xe++):(s=r,0===je&&Ne(ft)),s===r&&(42===t.charCodeAt(xe)?(s=F,xe++):(s=r,0===je&&Ne(gt)),s===r&&(37===t.charCodeAt(xe)?(s=P,xe++):(s=r,0===je&&Ne(mt)))),s!==r?(l=Ze(),(c=Je())!==r?i=a=[a,s,l,c]:(xe=i,i=r)):(xe=i,i=r);ke=e,e=ee(n,o)}else xe=e,e=r;return e}function Je(){var e,n,o;return(e=Ke())===r&&(e=Ge())===r&&(e=xe,33===t.charCodeAt(xe)?(n=S,xe++):(n=r,0===je&&Ne(vt)),n===r&&(43===t.charCodeAt(xe)?(n=j,xe++):(n=r,0===je&&Ne(pt)),n===r&&(45===t.charCodeAt(xe)?(n=V,xe++):(n=r,0===je&&Ne(ht)))),n!==r?(Ze(),(o=Je())!==r?(ke=e,e=ne(n,o)):(xe=e,e=r)):(xe=e,e=r),e===r&&(e=function(){var e,n,o,i,a;return e=xe,(n=Ye())!==r?(Ze(),40===t.charCodeAt(xe)?(o=I,xe++):(o=r,0===je&&Ne(yt)),o!==r?(Ze(),i=function(){var e,n,o,i,a,s;if(e=xe,(n=Te())!==r){for(o=[],i=xe,Ze(),44===t.charCodeAt(xe)?(a=O,xe++):(a=r,0===je&&Ne(bt)),a!==r?(Ze(),(s=Te())!==r?i=s:(xe=i,i=r)):(xe=i,i=r);i!==r;)o.push(i),i=xe,Ze(),44===t.charCodeAt(xe)?(a=O,xe++):(a=r,0===je&&Ne(bt)),a!==r?(Ze(),(s=Te())!==r?i=s:(xe=i,i=r)):(xe=i,i=r);ke=e,e=ie(n,o)}else xe=e,e=r;return e===r&&(e=Ze()),e}(),i!==r?(Ze(),41===t.charCodeAt(xe)?(a=N,xe++):(a=r,0===je&&Ne($t)),a!==r?(ke=e,e=re(n,i)):(xe=e,e=r)):(xe=e,e=r)):(xe=e,e=r)):(xe=e,e=r),e===r&&(e=xe,(n=Ye())!==r&&(ke=e,n=oe(n)),(e=n)===r&&(e=function(){var e,n,o,i;return e=function(){var e,n,o,i;return je++,e=xe,39===t.charCodeAt(xe)?(n=M,xe++):(n=r,0===je&&Ne(wt)),n!==r?(o=function(){var t,e,n;for(t=xe,e=[],n=qe();n!==r;)e.push(n),n=qe();return ke=t,t=e=le(e)}(),39===t.charCodeAt(xe)?(i=M,xe++):(i=r,0===je&&Ne(wt)),i!==r?(ke=e,e=se(o)):(xe=e,e=r)):(xe=e,e=r),je--,e===r&&(n=r,0===je&&Ne(_t)),e}(),e===r&&(e=Ke())===r&&(e=Ge())===r&&(e=function(){var e,n;return je++,e=xe,t.substr(xe,4)===B?(n=B,xe+=4):(n=r,0===je&&Ne(Ft)),n!==r&&(ke=e,n=be()),(e=n)===r&&(e=xe,t.substr(xe,5)===L?(n=L,xe+=5):(n=r,0===je&&Ne(Pt)),n!==r&&(ke=e,n=_e()),e=n),je--,e===r&&(n=r,0===je&&Ne(Dt)),e}(),e===r&&(e=xe,40===t.charCodeAt(xe)?(n=I,xe++):(n=r,0===je&&Ne(yt)),n!==r?(Ze(),(o=Te())!==r?(Ze(),41===t.charCodeAt(xe)?(i=N,xe++):(i=r,0===je&&Ne($t)),i!==r?(ke=e,e=ae(o)):(xe=e,e=r)):(xe=e,e=r)):(xe=e,e=r))),e}())),e}())),e}function qe(){var e,n,o,i,a;if(e=xe,t.substr(xe,2)===s?(n=s,xe+=2):(n=r,0===je&&Ne(K)),n!==r?(o=Ze(),(i=Te())!==r?(Ze(),125===t.charCodeAt(xe)?(a=l,xe++):(a=r,0===je&&Ne(Y)),a!==r?(ke=e,e=ce(i)):(xe=e,e=r)):(xe=e,e=r)):(xe=e,e=r),e===r&&(e=xe,t.substr(xe,3)===c?(n=c,xe+=3):(n=r,0===je&&Ne(Z)),n!==r&&(ke=e,n=ue()),(e=n)===r&&(e=xe,n=xe,je++,92===t.charCodeAt(xe)?(o=m,xe++):(o=r,0===je&&Ne(X)),o===r&&(39===t.charCodeAt(xe)?(o=M,xe++):(o=r,0===je&&Ne(wt)),o===r&&(t.substr(xe,2)===s?(o=s,xe+=2):(o=r,0===je&&Ne(K)))),je--,o===r?n=void 0:(xe=n,n=r),n!==r?(t.length>xe?(o=t.charAt(xe),xe++):(o=r,0===je&&Ne(Q)),o!==r?(ke=e,e=de()):(xe=e,e=r)):(xe=e,e=r),e===r))){if(e=xe,t.substr(xe,2)===s?(n=s,xe+=2):(n=r,0===je&&Ne(K)),n!==r){if(o=[],H.test(t.charAt(xe))?(i=t.charAt(xe),xe++):(i=r,0===je&&Ne(xt)),i!==r)for(;i!==r;)o.push(i),H.test(t.charAt(xe))?(i=t.charAt(xe),xe++):(i=r,0===je&&Ne(xt));else o=r;o!==r?(125===t.charCodeAt(xe)?(i=l,xe++):(i=r,0===je&&Ne(Y)),i!==r?(ke=e,e=pe()):(xe=e,e=r)):(xe=e,e=r)}else xe=e,e=r;e===r&&(e=xe,t.substr(xe,2)===s?(n=s,xe+=2):(n=r,0===je&&Ne(K)),n!==r&&(ke=e,n=he()),(e=n)===r&&(e=xe,92===t.charCodeAt(xe)?(n=m,xe++):(n=r,0===je&&Ne(X)),n!==r?(t.substr(xe,2)===s?(o=s,xe+=2):(o=r,0===je&&Ne(K)),o!==r?(ke=e,e=fe(o)):(xe=e,e=r)):(xe=e,e=r),e===r&&(e=xe,92===t.charCodeAt(xe)?(n=m,xe++):(n=r,0===je&&Ne(X)),n!==r?(t.length>xe?(o=t.charAt(xe),xe++):(o=r,0===je&&Ne(Q)),o!==r?(ke=e,e=ge(o)):(xe=e,e=r)):(xe=e,e=r),e===r&&(e=xe,92===t.charCodeAt(xe)?(n=m,xe++):(n=r,0===je&&Ne(X)),n!==r&&(ke=e,n=me()),e=n))))}return e}function Ge(){var e,n,o,i;if(je++,e=xe,45===t.charCodeAt(xe)?(n=V,xe++):(n=r,0===je&&Ne(ht)),n===r&&(n=null),o=[],W.test(t.charAt(xe))?(i=t.charAt(xe),xe++):(i=r,0===je&&Ne(Et)),i!==r)for(;i!==r;)o.push(i),W.test(t.charAt(xe))?(i=t.charAt(xe),xe++):(i=r,0===je&&Ne(Et));else o=r;return o!==r?(ke=e,e=ve()):(xe=e,e=r),je--,e===r&&(n=r,0===je&&Ne(kt)),e}function Ke(){var e,n,o,i,a,s,l,c,u,d;for(je++,e=xe,45===t.charCodeAt(xe)?(n=V,xe++):(n=r,0===je&&Ne(ht)),n===r&&(n=null),o=[],W.test(t.charAt(xe))?(i=t.charAt(xe),xe++):(i=r,0===je&&Ne(Et));i!==r;)o.push(i),W.test(t.charAt(xe))?(i=t.charAt(xe),xe++):(i=r,0===je&&Ne(Et));if(46===t.charCodeAt(xe)?(i=T,xe++):(i=r,0===je&&Ne(At)),i!==r){if(a=[],W.test(t.charAt(xe))?(s=t.charAt(xe),xe++):(s=r,0===je&&Ne(Et)),s!==r)for(;s!==r;)a.push(s),W.test(t.charAt(xe))?(s=t.charAt(xe),xe++):(s=r,0===je&&Ne(Et));else a=r;if(a!==r){if(s=xe,101===t.charCodeAt(xe)?(l=z,xe++):(l=r,0===je&&Ne(jt)),l===r&&(69===t.charCodeAt(xe)?(l=R,xe++):(l=r,0===je&&Ne(Vt))),l!==r){if(43===t.charCodeAt(xe)?(c=j,xe++):(c=r,0===je&&Ne(pt)),c===r&&(45===t.charCodeAt(xe)?(c=V,xe++):(c=r,0===je&&Ne(ht))),c===r&&(c=null),u=[],W.test(t.charAt(xe))?(d=t.charAt(xe),xe++):(d=r,0===je&&Ne(Et)),d!==r)for(;d!==r;)u.push(d),W.test(t.charAt(xe))?(d=t.charAt(xe),xe++):(d=r,0===je&&Ne(Et));else u=r;u!==r?s=l=[l,c,u]:(xe=s,s=r)}else xe=s,s=r;s===r&&(s=null),ke=e,e=ye()}else xe=e,e=r}else xe=e,e=r;if(e===r){if(e=xe,45===t.charCodeAt(xe)?(n=V,xe++):(n=r,0===je&&Ne(ht)),n===r&&(n=null),o=[],W.test(t.charAt(xe))?(i=t.charAt(xe),xe++):(i=r,0===je&&Ne(Et)),i!==r)for(;i!==r;)o.push(i),W.test(t.charAt(xe))?(i=t.charAt(xe),xe++):(i=r,0===je&&Ne(Et));else o=r;if(o!==r)if(101===t.charCodeAt(xe)?(i=z,xe++):(i=r,0===je&&Ne(jt)),i===r&&(69===t.charCodeAt(xe)?(i=R,xe++):(i=r,0===je&&Ne(Vt))),i!==r){if(43===t.charCodeAt(xe)?(a=j,xe++):(a=r,0===je&&Ne(pt)),a===r&&(45===t.charCodeAt(xe)?(a=V,xe++):(a=r,0===je&&Ne(ht))),a===r&&(a=null),s=[],W.test(t.charAt(xe))?(l=t.charAt(xe),xe++):(l=r,0===je&&Ne(Et)),l!==r)for(;l!==r;)s.push(l),W.test(t.charAt(xe))?(l=t.charAt(xe),xe++):(l=r,0===je&&Ne(Et));else s=r;s!==r?(ke=e,e=$e()):(xe=e,e=r)}else xe=e,e=r;else xe=e,e=r}return je--,e===r&&(n=r,0===je&&Ne(Ct)),e}function Ye(){var e,n,o,i,a;if(je++,e=xe,n=xe,je++,o=function(){var e,n,o,i;return e=xe,t.substr(xe,4)===B?(n=B,xe+=4):(n=r,0===je&&Ne(Ft)),n===r&&(t.substr(xe,5)===L?(n=L,xe+=5):(n=r,0===je&&Ne(Pt))),n!==r?(o=xe,je++,J.test(t.charAt(xe))?(i=t.charAt(xe),xe++):(i=r,0===je&&Ne(St)),je--,i===r?o=void 0:(xe=o,o=r),o!==r?e=n=[n,o]:(xe=e,e=r)):(xe=e,e=r),e}(),je--,o===r?n=void 0:(xe=n,n=r),n!==r)if(q.test(t.charAt(xe))?(o=t.charAt(xe),xe++):(o=r,0===je&&Ne(Nt)),o!==r){for(i=[],J.test(t.charAt(xe))?(a=t.charAt(xe),xe++):(a=r,0===je&&Ne(St));a!==r;)i.push(a),J.test(t.charAt(xe))?(a=t.charAt(xe),xe++):(a=r,0===je&&Ne(St));ke=e,e=we()}else xe=e,e=r;else xe=e,e=r;return je--,e===r&&(n=r,0===je&&Ne(It)),e}function Ze(){var e,n;for(je++,e=[],G.test(t.charAt(xe))?(n=t.charAt(xe),xe++):(n=r,0===je&&Ne(Mt));n!==r;)e.push(n),G.test(t.charAt(xe))?(n=t.charAt(xe),xe++):(n=r,0===je&&Ne(Mt));return je--,n=r,0===je&&Ne(Ot),e}if((n=a())!==r&&xe===t.length)return n;throw n!==r&&xe<t.length&&Ne({type:"end"}),function(t,e,n){return new g(g.buildMessage(t,e),t,e,n)}(Ae,Ce<t.length?t.charAt(Ce):null,Ce<t.length?Ie(Ce,Ce+1):Ie(Ce,Ce))}!function(t,e){function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n}(g,Error),g.prototype.format=function(t){var e="Error: "+this.message;if(this.location){var n,r=null;for(n=0;n<t.length;n++)if(t[n].source===this.location.source){r=t[n].text.split(/\r\n|\n|\r/g);break}var o=this.location.start,i=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(o):o,a=this.location.source+":"+i.line+":"+i.column;if(r){var s=this.location.end,l=m("",i.line.toString().length," "),c=r[o.line-1],u=(o.line===s.line?s.column:c.length+1)-o.column||1;e+="\n --\x3e "+a+"\n"+l+" |\n"+i.line+" | "+c+"\n"+l+" | "+m("",o.column-1," ")+m("",u,"^")}else e+="\n at "+a}return e},g.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 y=new Map,$=new Map;function b(t,e,n){const r={args:e,cb:n},o=y.get(t)||[];y.has(t)||y.set(t,o),o.push(r);const i=t+":"+e.map((t=>"object"==typeof t?t.type:t)).join("#");$.set(i,r)}function _(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 w(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=>{w(t,e)}));break;case"BinaryExpression":case"LogicalExpression":w(t.left,e),w(t.right,e);break;case"UnaryExpression":w(t.argument,e);break;case"ConditionalExpression":w(t.test,e),w(t.consequent,e),w(t.alternate,e);break;case"TryExpression":w(t.test,e),w(t.alternate,e);break;case"CallExpression":t.arguments.forEach((t=>{w(t,e)}))}}function x(t,e){for(;t.length<e;)t="0"+t;return t}function k(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"transparent";if("#"!==(t=("string"==typeof t&&t||"").toLowerCase()).charAt(0))return n;const r=E(t);return r?(r.a*=e,function(t){return 255===t.a?"#".concat([t.r,t.g,t.b].map((t=>x(Math.round(t).toString(16),2))).join("")):"rgba(".concat(t.r,",").concat(t.g,",").concat(t.b,",").concat((t.a/255).toFixed(2),")")}(r)):n}function E(t){const e=t.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i)||t.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])$/i)||t.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i)||t.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i);if(e){if(5===e.length){const[t,n,r,o,i]=e,a=2===r.length?r:r+r,s=2===o.length?o:o+o,l=2===i.length?i:i+i,c=2===n.length?n:n+n;return{a:parseInt(c,16),r:parseInt(a,16),g:parseInt(s,16),b:parseInt(l,16)}}const[t,n,r,o]=e,i=2===n.length?n:n+n,a=2===r.length?r:r+r,s=2===o.length?o:o+o;return{a:255,r:parseInt(i,16),g:parseInt(a,16),b:parseInt(s,16)}}return null}function C(t){return"url"===t.type||"color"===t.type?{type:"string",value:t.value}:t}function A(t){return t.toISOString().replace("T"," ").replace(/\.\d{3}Z$/,"")}function j(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 A(t.value);if("color"===t.type)return O(N(t.value));if("url"===t.type)return t.value;if("dict"===t.type)return"<dict>";if("array"===t.type)return"<array>";throw new Error("Unexpected type ".concat(t.type))}function V(t){let e=j(t);return"string"===t.type&&(e="'"+e.replace(/\\/g,"\\\\").replace(/'/g,"\\'")+"'"),e}function D(t){return"datetime"===t?"DateTime":t.charAt(0).toUpperCase()+t.substring(1)}function F(t,e){if(n)return a(e);if(e<0){const t=-Math.floor(-e);return 0===t?0:t}return Math.floor(e)}function P(t,e){if(e<i||e>o)throw new Error("Integer overflow.");!n&&(e>Number.MAX_SAFE_INTEGER||e<Number.MIN_SAFE_INTEGER)&&(t.safeIntegerOverflow=!0)}function S(t){const e=[];return w(t,{Variable(t){e.push(t.id.name)}}),e}function I(t,e){throw new Error("Failed to evaluate [".concat(t,"]. ").concat(e))}function N(t){const e=E(t);if(e)return e;throw new Error("Unable to convert value to Color, expected format #AARRGGBB.")}function O(t){return"#".concat([t.a,t.r,t.g,t.b].map((t=>{if(t<0||t>255)throw new Error("Value out of range 0..1.");return x(Math.round(t).toString(16),2)})).join("").toUpperCase())}function M(t){return O(N(t))}const T=Number.MAX_VALUE,z=Number.MIN_VALUE,R="string",B="integer",L="number",U="boolean",H="color",W="url",J="datetime",q="dict",G="array";function K(t,e){return{type:R,value:j(e)}}function Y(t,e){const n=Number(e.value);if(isNaN(n)||!Number.isFinite(n))throw new Error("Unable to convert value to Number.");return{type:L,value:n}}function Z(t,e,n,r){const o=t.variables.get(e.value);let i;return i=o&&o.getType()===r?o.getValue():n.value,"color"===r&&(i=M(i)),{type:r,value:i}}function X(t,e,n){return Z(t,e,n,n.type)}function Q(t,e,n){return Z(t,e,n,"color")}function tt(t,e,n){return Z(t,e,n,"url")}const et=t=>(e,n)=>{let r=new Date(n.value.getTime())[t]();return"getUTCMonth"===t?++r:"getUTCDay"===t&&0===r&&(r=7),{type:B,value:a(r)}},nt=et("getUTCFullYear"),rt=et("getUTCMonth"),ot=et("getUTCDate"),it=et("getUTCDay"),at=et("getUTCHours"),st=et("getUTCMinutes"),lt=et("getUTCSeconds"),ct=et("getUTCMilliseconds");function ut(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}function dt(t,e,n,r){if(!r.value.length)return t.warnings.push(ut(new Error("String for padding is empty."),{level:"warn"})),"";let o="";const i=e.type===R?e.value:j(e);for(;o.length+i.length<n.value;)o+=r.value;return o.length>0&&o.length+i.length>n.value&&(o=o.substring(0,Number(n.value)-Number(i.length))),o}function pt(t,e,n,r){const o=dt(t,e,n,r);return{type:R,value:o+j(e)}}function ht(t,e,n,r){const o=dt(t,e,n,r);return{type:R,value:j(e)+o}}function ft(t){return(e,n)=>{const r=N(n.value);return{type:L,value:r[t]/255}}}function gt(t){return(e,n,r)=>{const o=N(n.value);return o[t]=255*r.value,{type:H,value:O(o)}}}const mt=ft("a"),vt=ft("r"),yt=ft("g"),$t=ft("b"),bt=gt("a"),_t=gt("r"),wt=gt("g"),xt=gt("b");function kt(t,e,n,r){if(e.value<0)throw new Error("Expecting non-negative number of milliseconds.");let o=a(e.value)/a(n);return P(t,o),"number"==typeof o&&(o=Math.floor(o)),r&&(o=a(o)%a(r)),{type:B,value:o}}const Et=36e5;function Ct(t,e){return function(n,r){for(var o=arguments.length,i=new Array(o>2?o-2:0),s=2;s<o;s++)i[s-2]=arguments[s];let l=function(t,e){let n=t;for(let t=0;t<e.length;++t){if(!n)throw new Error('Missing property "'.concat(e[t],'" in the dict.'));const r=n[e[t]];if(void 0===r)throw new Error('Missing property "'.concat(e[t],'" in the dict.'));n=r}return n}(r.value,i.map((t=>t.value))),c=typeof l;if("array"===t&&!Array.isArray(l)||"array"!==t&&c!==t||"object"===c&&null===l)throw"object"===c&&(c=Array.isArray(l)?"array":null===l?"null":"dict"),new Error('Incorrect value type: expected "'.concat(e,'", got "').concat(c,'".'));if("number"===t&&"integer"===e){if(l!==Math.round(l))throw new Error("Cannot convert value to integer.");P(n,l),l=a(l)}return"string"===t&&"color"===e&&(l=M(l)),{type:e,value:l}}}function At(t,e){return function(n,r,o){try{for(var i=arguments.length,a=new Array(i>3?i-3:0),s=3;s<i;s++)a[s-3]=arguments[s];return t(n,o,...a)}catch(t){let n=r.value;return"color"===e&&(n=M(n)),{type:e,value:n}}}}const jt=Ct("string","string"),Vt=Ct("number","number"),Dt=Ct("number","integer"),Ft=Ct("boolean","boolean"),Pt=Ct("string","color"),St=Ct("string","url"),It=Ct("array","array"),Nt=Ct("object","dict"),Ot=At(jt,"string"),Mt=At(Vt,"number"),Tt=At(Dt,"integer"),zt=At(Ft,"boolean"),Rt=At(Pt,"color"),Bt=At(St,"url");function Lt(t,e){return(n,r,o)=>{if(o.value<0||o.value>=r.value.length)throw new Error("Requested index (".concat(o.value,") out of bounds array size (").concat(r.value.length,")."));let i=r.value[Number(o.value)],s=typeof i;if("array"===t&&!Array.isArray(i)||"array"!==t&&s!==t||"object"===s&&null===i)throw"object"===s&&(s=Array.isArray(i)?"array":null===i?"null":"dict"),new Error('Incorrect value type: expected "'.concat(e,'", got "').concat(s,'".'));if("number"===t&&"integer"===e){if(i!==Math.round(i))throw new Error("Cannot convert value to integer.");P(n,i),i=a(i)}return"string"===t&&"color"===e&&(i=M(i)),{type:e,value:i}}}function Ut(t,e){return(n,r,o,i)=>{try{return t(n,r,o)}catch(t){let n=i.value;return"color"===e&&(n=M(n)),{type:e,value:n}}}}const Ht=Lt("string","string"),Wt=Lt("number","number"),Jt=Lt("number","integer"),qt=Lt("boolean","boolean"),Gt=Lt("string","color"),Kt=Lt("string","url"),Yt=Lt("array","array"),Zt=Lt("object","dict"),Xt=Ut(Ht,"string"),Qt=Ut(Wt,"number"),te=Ut(Jt,"integer"),ee=Ut(qt,"boolean"),ne=Ut(Gt,"color"),re=Ut(Kt,"url");function oe(){}const ie=t=>t;function ae(t,e){for(const n in e)t[n]=e[n];return t}function se(t){return t()}function le(){return Object.create(null)}function ce(t){t.forEach(se)}function ue(t){return"function"==typeof t}let de;function pe(t,e){return t===e||(de||(de=document.createElement("a")),de.href=e,t===de.href)}function he(t,e){return t!=t?e==e:t!==e}function fe(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(null==t){for(const t of n)t(void 0);return oe}const o=t.subscribe(...n);return o.unsubscribe?()=>o.unsubscribe():o}function ge(t,e,n){t.$$.on_destroy.push(fe(e,n))}function me(t,e,n,r){if(t){const o=ve(t,e,n,r);return t[0](o)}}function ve(t,e,n,r){return t[1]&&r?ae(n.ctx.slice(),t[1](r(e))):n.ctx}function ye(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 $e(t,e,n,r,o,i){if(o){const a=ve(e,n,r,i);t.p(a,o)}}function be(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 _e(t,e,n){return t.set(n),e}function we(t){return t&&ue(t.destroy)?t.destroy:oe}const xe="undefined"!=typeof window;let ke=xe?()=>window.performance.now():()=>Date.now(),Ee=xe?t=>requestAnimationFrame(t):oe;const Ce=new Set;function Ae(t){Ce.forEach((e=>{e.c(t)||(Ce.delete(e),e.f())})),0!==Ce.size&&Ee(Ae)}function je(t){let e;return 0===Ce.size&&Ee(Ae),{promise:new Promise((n=>{Ce.add(e={c:t,f:n})})),abort(){Ce.delete(e)}}}const Ve="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function De(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class Fe{constructor(t){De(this,"_listeners","WeakMap"in Ve?new WeakMap:void 0),De(this,"_observer",void 0),De(this,"options",void 0),this.options=t}observe(t,e){return this._listeners.set(t,e),this._getObserver().observe(t,this.options),()=>{this._listeners.delete(t),this._observer.unobserve(t)}}_getObserver(){var t;return null!==(t=this._observer)&&void 0!==t?t:this._observer=new ResizeObserver((t=>{for(const n of t){var e;Fe.entries.set(n.target,n),null===(e=this._listeners.get(n.target))||void 0===e||e(n)}}))}}function Pe(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Fe.entries="WeakMap"in Ve?new WeakMap:void 0;let Se=!1;function Ie(t,e,n,r){for(;t<e;){const o=t+(e-t>>1);n(o)<=r?t=o+1:e=o}return t}function Ne(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function Oe(t){const e=Le("style");return e.textContent="/* empty */",function(t,e){(function(t,e){t.appendChild(e)})(t.head||t,e),e.sheet}(Ne(t),e),e.sheet}function Me(t,e){if(Se){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:Ie(1,o,(t=>e[n[t]].claim_order),i))-1;r[t]=n[a]+1;const s=a+1;n[s]=t,o=Math.max(s,o)}const i=[],a=[];let s=e.length-1;for(let t=n[o]+1;0!=t;t=r[t-1]){for(i.push(e[t-1]);s>=t;s--)a.push(e[s]);s--}for(;s>=0;s--)a.push(e[s]);i.reverse(),a.sort(((t,e)=>t.claim_order-e.claim_order));for(let e=0,n=0;e<a.length;e++){for(;n<i.length&&a[e].claim_order>=i[n].claim_order;)n++;const r=n<i.length?i[n]:null;t.insertBefore(a[e],r)}}(t),(void 0===t.actual_end_child||null!==t.actual_end_child&&t.actual_end_child.parentNode!==t)&&(t.actual_end_child=t.firstChild);null!==t.actual_end_child&&void 0===t.actual_end_child.claim_order;)t.actual_end_child=t.actual_end_child.nextSibling;e!==t.actual_end_child?void 0===e.claim_order&&e.parentNode===t||t.insertBefore(e,t.actual_end_child):t.actual_end_child=e.nextSibling}else e.parentNode===t&&null===e.nextSibling||t.appendChild(e)}function Te(t,e,n){t.insertBefore(e,n||null)}function ze(t,e,n){Se&&!n?Me(t,e):e.parentNode===t&&e.nextSibling==n||t.insertBefore(e,n||null)}function Re(t){t.parentNode&&t.parentNode.removeChild(t)}function Be(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function Le(t){return document.createElement(t)}function Ue(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function He(t){return document.createTextNode(t)}function We(){return He(" ")}function Je(){return He("")}function qe(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function Ge(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}const Ke=["width","height"];function Ye(t,e){const n=Object.getOwnPropertyDescriptors(t.__proto__);for(const r in e)null==e[r]?t.removeAttribute(r):"style"===r?t.style.cssText=e[r]:"__value"===r?t.value=t[r]=e[r]:n[r]&&n[r].set&&-1===Ke.indexOf(r)?t[r]=e[r]:Ge(t,r,e[r])}function Ze(t,e){Object.keys(e).forEach((n=>{!function(t,e,n){e in t?t[e]="boolean"==typeof t[e]&&""===n||n:Ge(t,e,n)}(t,n,e[n])}))}function Xe(t){return/-/.test(t)?Ze:Ye}function Qe(t){return Array.from(t.childNodes)}function tn(t){void 0===t.claim_info&&(t.claim_info={last_index:0,total_claimed:0})}function en(t,e,n,r){let o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];tn(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 nn(t,e,n,r){return en(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 rn(t,e,n){return nn(t,e,n,Le)}function on(t,e,n){return nn(t,e,n,Ue)}function an(t,e){return en(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}),(()=>He(e)),!0)}function sn(t){return an(t," ")}function ln(t,e,n){for(let r=n;r<t.length;r+=1){const n=t[r];if(8===n.nodeType&&n.textContent.trim()===e)return r}return-1}function cn(t,e){e=""+e,t.data!==e&&(t.data=e)}function un(t,e){t.value=null==e?"":e}function dn(t,e,n,r){null==n?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}function pn(t,e,n){for(let n=0;n<t.options.length;n+=1){const r=t.options[n];if(r.__value===e)return void(r.selected=!0)}n&&void 0===e||(t.selectedIndex=-1)}class hn{constructor(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Pe(this,"is_svg",!1),Pe(this,"e",void 0),Pe(this,"n",void 0),Pe(this,"t",void 0),Pe(this,"a",void 0),this.is_svg=t,this.e=this.n=null}c(t){this.h(t)}m(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.e||(this.is_svg?this.e=Ue(e.nodeName):this.e=Le(11===e.nodeType?"TEMPLATE":e.nodeName),this.t="TEMPLATE"!==e.tagName?e:e.content,this.c(t)),this.i(n)}h(t){this.e.innerHTML=t,this.n=Array.from("TEMPLATE"===this.e.nodeName?this.e.content.childNodes:this.e.childNodes)}i(t){for(let e=0;e<this.n.length;e+=1)Te(this.t,this.n[e],t)}p(t){this.d(),this.h(t),this.i(this.a)}d(){this.n.forEach(Re)}}class fn extends hn{constructor(){let t=arguments.length>1?arguments[1]:void 0;super(arguments.length>0&&void 0!==arguments[0]&&arguments[0]),Pe(this,"l",void 0),this.e=this.n=null,this.l=t}c(t){this.l?this.n=this.l:super.c(t)}i(t){for(let e=0;e<this.n.length;e+=1)ze(this.t,this.n[e],t)}}function gn(t,e){return new t(e)}const mn=new Map;let vn,yn=0;function $n(t,e,n,r,o,i,a){let s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0;const l=16.666/r;let c="{\n";for(let t=0;t<=1;t+=l){const r=e+(n-e)*i(t);c+=100*t+"%{".concat(a(r,1-r),"}\n")}const u=c+"100% {".concat(a(n,1-n),"}\n}"),d="__svelte_".concat(function(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}(u),"_").concat(s),p=Ne(t),{stylesheet:h,rules:f}=mn.get(p)||function(t,e){const n={stylesheet:Oe(e),rules:{}};return mn.set(t,n),n}(p,t);f[d]||(f[d]=!0,h.insertRule("@keyframes ".concat(d," ").concat(u),h.cssRules.length));const g=t.style.animation||"";return t.style.animation="".concat(g?"".concat(g,", "):"").concat(d," ").concat(r,"ms linear ").concat(o,"ms 1 both"),yn+=1,d}function bn(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(", "),yn-=o,yn||Ee((()=>{yn||(mn.forEach((t=>{const{ownerNode:e}=t.stylesheet;e&&Re(e)})),mn.clear())})))}function _n(t){vn=t}function wn(){if(!vn)throw new Error("Function called outside component initialization");return vn}function xn(t){wn().$$.on_mount.push(t)}function kn(t){wn().$$.on_destroy.push(t)}function En(t,e){return wn().$$.context.set(t,e),e}function Cn(t){return wn().$$.context.get(t)}function An(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((t=>t.call(this,e)))}const jn=[],Vn=[];let Dn=[];const Fn=[],Pn=Promise.resolve();let Sn=!1;function In(){Sn||(Sn=!0,Pn.then(Rn))}function Nn(){return In(),Pn}function On(t){Dn.push(t)}const Mn=new Set;let Tn,zn=0;function Rn(){if(0!==zn)return;const t=vn;do{try{for(;zn<jn.length;){const t=jn[zn];zn++,_n(t),Bn(t.$$)}}catch(t){throw jn.length=0,zn=0,t}for(_n(null),jn.length=0,zn=0;Vn.length;)Vn.pop()();for(let t=0;t<Dn.length;t+=1){const e=Dn[t];Mn.has(e)||(Mn.add(e),e())}Dn.length=0}while(jn.length);for(;Fn.length;)Fn.pop()();Sn=!1,Mn.clear(),_n(t)}function Bn(t){if(null!==t.fragment){t.update(),ce(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(On)}}function Ln(){return Tn||(Tn=Promise.resolve(),Tn.then((()=>{Tn=null}))),Tn}function Un(t,e,n){t.dispatchEvent(function(t,e){let{bubbles:n=!1,cancelable:r=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new CustomEvent(t,{detail:e,bubbles:n,cancelable:r})}("".concat(e?"intro":"outro").concat(n)))}const Hn=new Set;let Wn;function Jn(){Wn={r:0,c:[],p:Wn}}function qn(){Wn.r||ce(Wn.c),Wn=Wn.p}function Gn(t,e){t&&t.i&&(Hn.delete(t),t.i(e))}function Kn(t,e,n,r){if(t&&t.o){if(Hn.has(t))return;Hn.add(t),Wn.c.push((()=>{Hn.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}else r&&r()}const Yn={duration:0};function Zn(t,e,n){const r={direction:"in"};let o,i,a=e(t,n,r),s=!1,l=0;function c(){o&&bn(t,o)}function u(){const{delay:e=0,duration:n=300,easing:r=ie,tick:u=oe,css:d}=a||Yn;d&&(o=$n(t,0,1,n,e,r,d,l++)),u(0,1);const p=ke()+e,h=p+n;i&&i.abort(),s=!0,On((()=>Un(t,!0,"start"))),i=je((e=>{if(s){if(e>=h)return u(1,0),Un(t,!0,"end"),c(),s=!1;if(e>=p){const t=r((e-p)/n);u(t,1-t)}}return s}))}let d=!1;return{start(){d||(d=!0,bn(t),ue(a)?(a=a(r),Ln().then(u)):u())},invalidate(){d=!1},end(){s&&(c(),s=!1)}}}function Xn(t){return void 0!==(null==t?void 0:t.length)?t:Array.from(t)}function Qn(t,e){Kn(t,1,1,(()=>{e.delete(t.key)}))}function tr(t,e,n,r,o,i,a,s,l,c,u,d){let p=t.length,h=i.length,f=p;const g={};for(;f--;)g[t[f].key]=f;const m=[],v=new Map,y=new Map,$=[];for(f=h;f--;){const t=d(o,i,f),s=n(t);let l=a.get(s);l?r&&$.push((()=>l.p(t,e))):(l=c(s,t),l.c()),v.set(s,m[f]=l),s in g&&y.set(s,Math.abs(f-g[s]))}const b=new Set,_=new Set;function w(t){Gn(t,1),t.m(s,u),a.set(t.key,t),u=t.first,h--}for(;p&&h;){const e=m[h-1],n=t[p-1],r=e.key,o=n.key;e===n?(u=e.first,p--,h--):v.has(o)?!a.has(r)||b.has(r)?w(e):_.has(o)?p--:y.get(r)>y.get(o)?(_.add(r),w(e)):(b.add(o),p--):(l(n,a),p--)}for(;p--;){const e=t[p];v.has(e.key)||l(e,a)}for(;h;)w(m[h-1]);return ce($),m}function er(t,e){const n={},r={},o={$$scope:1};let i=t.length;for(;i--;){const a=t[i],s=e[i];if(s){for(const t in a)t in s||(r[t]=1);for(const t in s)o[t]||(n[t]=s[t],o[t]=1);t[i]=s}else for(const t in a)o[t]=1}for(const t in r)t in n||(n[t]=void 0);return n}let nr;function rr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function or(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?rr(Object(n),!0).forEach((function(e){ir(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):rr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ir(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ar(t){t&&t.c()}function sr(t,e){t&&t.l(e)}function lr(t,e,n){const{fragment:r,after_update:o}=t.$$;r&&r.m(e,n),On((()=>{const e=t.$$.on_mount.map(se).filter(ue);t.$$.on_destroy?t.$$.on_destroy.push(...e):ce(e),t.$$.on_mount=[]})),o.forEach(On)}function cr(t,e){const n=t.$$;null!==n.fragment&&(function(t){const e=[],n=[];Dn.forEach((r=>-1===t.indexOf(r)?e.push(r):n.push(r))),n.forEach((t=>t())),Dn=e}(n.after_update),ce(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function ur(t,e,n,r,o,i,a){let s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[-1];const l=vn;_n(t);const c=t.$$={fragment:null,ctx:[],props:i,update:oe,not_equal:o,bound:le(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:le(),dirty:s,skip_bound:!1,root:e.target||l.$$.root};a&&a(c.root);let u=!1;if(c.ctx=n?n(t,e.props||{},(function(e,n){const r=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:n;return c.ctx&&o(c.ctx[e],c.ctx[e]=r)&&(!c.skip_bound&&c.bound[e]&&c.bound[e](r),u&&function(t,e){-1===t.$$.dirty[0]&&(jn.push(t),In(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(t,e)),n})):[],c.update(),u=!0,ce(c.before_update),c.fragment=!!r&&r(c.ctx),e.target){if(e.hydrate){Se=!0;const t=Qe(e.target);c.fragment&&c.fragment.l(t),t.forEach(Re)}else c.fragment&&c.fragment.c();e.intro&&Gn(t.$$.fragment),lr(t,e.target,e.anchor),Se=!1,Rn()}_n(l)}function dr(t,e,n,r){var o;const i=null===(o=n[t])||void 0===o?void 0:o.type;if(e="Boolean"===i&&"boolean"!=typeof e?null!=e:e,!r||!n[t])return e;if("toAttribute"===r)switch(i){case"Object":case"Array":return null==e?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return null==e?null:e;default:return e}else switch(i){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":default:return e;case"Number":return null!=e?+e:e}}new Set(["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"]),"function"==typeof HTMLElement&&(nr=class extends HTMLElement{constructor(t,e,n){super(),ir(this,"$$ctor",void 0),ir(this,"$$s",void 0),ir(this,"$$c",void 0),ir(this,"$$cn",!1),ir(this,"$$d",{}),ir(this,"$$r",!1),ir(this,"$$p_d",{}),ir(this,"$$l",{}),ir(this,"$$l_u",new Map),this.$$ctor=t,this.$$s=e,n&&this.attachShadow({mode:"open"})}addEventListener(t,e,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const n=this.$$c.$on(t,e);this.$$l_u.set(e,n)}super.addEventListener(t,e,n)}removeEventListener(t,e,n){if(super.removeEventListener(t,e,n),this.$$c){const t=this.$$l_u.get(e);t&&(t(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn)return;function t(t){return()=>{let e;return{c:function(){e=Le("slot"),"default"!==t&&Ge(e,"name",t)},m:function(t,n){Te(t,e,n)},d:function(t){t&&Re(e)}}}}const e={},n=function(t){const e={};return t.childNodes.forEach((t=>{e[t.slot||"default"]=!0})),e}(this);for(const o of this.$$s)o in n&&(e[o]=[t(o)]);for(const i of this.attributes){const a=this.$$g_p(i.name);a in this.$$d||(this.$$d[a]=dr(a,i.value,this.$$p_d,"toProp"))}this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:or(or({},this.$$d),{},{$$slots:e,$$scope:{ctx:[]}})});const r=()=>{this.$$r=!0;for(const t in this.$$p_d)if(this.$$d[t]=this.$$c.$$.ctx[this.$$c.$$.props[t]],this.$$p_d[t].reflect){const e=dr(t,this.$$d[t],this.$$p_d,"toAttribute");null==e?this.removeAttribute(t):this.setAttribute(this.$$p_d[t].attribute||t,e)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(const s in this.$$l)for(const l of this.$$l[s]){const c=this.$$c.$on(s,l);this.$$l_u.set(l,c)}this.$$l={}}}attributeChangedCallback(t,e,n){var r;this.$$r||(t=this.$$g_p(t),this.$$d[t]=dr(t,n,this.$$p_d,"toProp"),null===(r=this.$$c)||void 0===r||r.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then((()=>{this.$$cn||(this.$$c.$destroy(),this.$$c=void 0)}))}$$g_p(t){return Object.keys(this.$$p_d).find((e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t))||t}});class pr{constructor(){ir(this,"$$",void 0),ir(this,"$$set",void 0)}$destroy(){cr(this,1),this.$destroy=oe}$on(t,e){if(!ue(e))return oe;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){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const hr=[];function fr(t){let e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:oe;const r=new Set;function o(n){if(i=n,((o=t)!=o?i==i:o!==i||o&&"object"==typeof o||"function"==typeof o)&&(t=n,e)){const e=!hr.length;for(const e of r)e[1](),hr.push(e,t);if(e){for(let t=0;t<hr.length;t+=2)hr[t][0](hr[t+1]);hr.length=0}}var o,i}function i(e){o(e(t))}return{set:o,update:i,subscribe:function(a){const s=[a,arguments.length>1&&void 0!==arguments[1]?arguments[1]:oe];return r.add(s),1===r.size&&(e=n(o,i)||oe),a(t),()=>{r.delete(s),0===r.size&&e&&(e(),e=null)}}}}function gr(t,e,n){const r=!Array.isArray(t),o=r?[t]:t;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const i=e.length<2;return a=(t,n)=>{let a=!1;const s=[];let l=0,c=oe;const u=()=>{if(l)return;c();const o=e(r?s[0]:s,t,n);i?t(o):c=ue(o)?o:oe},d=o.map(((t,e)=>fe(t,(t=>{s[e]=t,l&=~(1<<e),a&&u()}),(()=>{l|=1<<e}))));return a=!0,u(),function(){ce(d),c(),a=!1}},{subscribe:fr(n,a).subscribe};var a}class mr{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=fr(this.value)),this.store.subscribe(t)}set(t){const e=this.fromString(t);this.setValue(e)}setValue(t){const e=this.convertValue(t);this.value=e,this.store&&this.store.set(e)}getValue(){return this.value}}class vr extends mr{convertValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value");return t}fromString(t){return t}getType(){return"string"}}class yr extends mr{convertValue(t){if("bigint"!=typeof t&&"number"!=typeof t||"number"==typeof t&&(isNaN(t)||t!==Math.round(t))||t>o||t<i)throw new Error("Incorrect variable value");return a(t)}fromString(t){const e=a(t);return this.convertValue(e)}getType(){return"integer"}}class $r extends mr{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"}}class br extends mr{convertValue(t){if(1!==t&&0!==t&&!0!==t&&!1!==t)throw new Error("Incorrect variable value");return Number(t)}fromString(t){if("1"===t||"true"===t)return 1;if("0"===t||"false"===t)return 0;throw new Error("Incorrect variable value")}getType(){return"boolean"}}class _r extends mr{convertValue(t){if("string"!=typeof t||!E(t))throw new Error("Incorrect variable value");return t}fromString(t){return this.convertValue(t)}getType(){return"color"}}class wr extends mr{convertValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value");return t}fromString(t){return t}getType(){return"url"}}class xr extends mr{convertValue(t){if("object"!=typeof t||!t)throw new Error("Incorrect variable value");return t}fromString(t){throw new Error("Dict variable does not support setter from string")}getType(){return"dict"}}class kr extends mr{convertValue(t){if(!Array.isArray(t))throw new Error("Incorrect variable value");return t}fromString(t){throw new Error("Array variable does not support setter from string")}getType(){return"array"}}const Er={string:vr,number:$r,integer:yr,boolean:br,color:_r,url:wr,dict:xr,array:kr};function Cr(t,e,n){if(!(e in Er))throw new Error("Unsupported variable type");return new Er[e](t,n)}function Ar(){}function jr(t){return t(this.value),Ar}function Vr(){throw new Error("Cannot change the value of this type of variable")}const Dr={string:class extends vr{},number:class extends $r{},integer:class extends yr{},boolean:class extends br{},color:class extends _r{},url:class extends wr{},dict:class extends xr{},array:class extends kr{}};for(const t in Dr){const e=Dr[t];e.prototype.subscribe=jr,e.prototype.set=Vr,e.prototype.setValue=Vr}function Fr(t){return t.map(V).join(", ")}b("toString",[B],K),b("toString",[L],K),b("toString",[U],K),b("toString",[H],K),b("toString",[W],K),b("toNumber",[B],Y),b("toNumber",[R],Y),b("toInteger",[L],(function(t,e){if(e.value>o||e.value<i)throw new Error("Unable to convert value to Integer.");const n=e.value-e.value%1;return{type:B,value:a(n)}})),b("toInteger",[R],(function(t,e){let n;try{n=a(e.value)}catch(t){throw new Error("Unable to convert value to Integer.")}if("number"==typeof n&&(isNaN(n)||n%1!=0)||n>o||n<i)throw new Error("Unable to convert value to Integer.");return{type:B,value:n}})),b("toInteger",[U],(function(t,e){return{type:B,value:a(e.value?1:0)}})),b("toBoolean",[B],(function(t,e){const n=Number(e.value);if(1!==n&&0!==n)throw new Error("Unable to convert value to Boolean.");return{type:U,value:n}})),b("toBoolean",[R],(function(t,e){if("true"!==e.value&&"false"!==e.value)throw new Error("Unable to convert value to Boolean.");return{type:U,value:"true"===e.value?1:0}})),b("toColor",[R],(function(t,e){return{type:H,value:M(e.value)}})),b("toUrl",[R],(function(t,e){return{type:W,value:e.value}})),b("encodeUri",[R],(function(t,e){try{return{type:R,value:encodeURIComponent(e.value)}}catch(t){throw new Error("Unable to encodeUri string.")}})),b("decodeUri",[R],(function(t,e){try{return{type:R,value:decodeURIComponent(e.value)}}catch(t){throw new Error("Unable to decodeUri string.")}})),b("getIntegerValue",[R,B],X),b("getNumberValue",[R,L],X),b("getBooleanValue",[R,U],X),b("getStringValue",[R,R],X),b("getColorValue",[R,H],Q),b("getColorValue",[R,R],Q),b("getUrlValue",[R,W],tt),b("getUrlValue",[R,R],tt),b("parseUnixTime",[B],(function(t,e){return{type:J,value:new Date(1e3*Number(e.value))}})),b("nowLocal",[],(function(){return{type:J,value:new Date}})),b("addMillis",[J,B],(function(t,e,n){return{type:J,value:new Date(e.value.getTime()+Number(n.value))}})),b("setYear",[J,B],(function(t,e,n){const r=new Date(e.value);return r.setUTCFullYear(Number(n.value)),{type:J,value:r}})),b("setMonth",[J,B],(function(t,e,n){const r=Number(n.value);if(r<1||r>12)throw new Error("Expecting month in [1..12], instead got ".concat(r,"."));const o=new Date(e.value);return o.setUTCMonth(r-1),{type:J,value:o}})),b("setDay",[J,B],(function(t,e,n){const r=new Date(e.value),o=Number(n.value);if(o<=0&&-1!==o||o>function(t){const e=new Date(t);return e.setUTCMonth(e.getUTCMonth()+1),e.setUTCDate(0),e.getUTCDate()}(r))throw new Error("Unable to set day ".concat(o," for date ").concat(j(e),"."));return r.setUTCDate(-1===o?0:o),{type:J,value:r}})),b("setHours",[J,B],(function(t,e,n){const r=Number(n.value);if(r<0||r>23)throw new Error("Expecting hours in [0..23], instead got ".concat(r,"."));const o=new Date(e.value);return o.setUTCHours(r),{type:J,value:o}})),b("setMinutes",[J,B],(function(t,e,n){const r=Number(n.value);if(r<0||r>59)throw new Error("Expecting minutes in [0..59], instead got ".concat(r,"."));const o=new Date(e.value);return o.setUTCMinutes(r),{type:J,value:o}})),b("setSeconds",[J,B],(function(t,e,n){const r=Number(n.value);if(r<0||r>59)throw new Error("Expecting seconds in [0..59], instead got ".concat(r,"."));const o=new Date(e.value);return o.setUTCSeconds(r),{type:J,value:o}})),b("setMillis",[J,B],(function(t,e,n){const r=Number(n.value);if(r<0||r>999)throw new Error("Expecting millis in [0..999], instead got ".concat(r,"."));const o=new Date(e.value);return o.setUTCMilliseconds(r),{type:J,value:o}})),b("getYear",[J],nt),b("getMonth",[J],rt),b("getDay",[J],ot),b("getDayOfWeek",[J],it),b("getHours",[J],at),b("getMinutes",[J],st),b("getSeconds",[J],lt),b("getMillis",[J],ct),b("getIntervalSeconds",[B],(function(t,e){return kt(t,e,1e3,60)})),b("getIntervalTotalSeconds",[B],(function(t,e){return kt(t,e,1e3)})),b("getIntervalMinutes",[B],(function(t,e){return kt(t,e,6e4,60)})),b("getIntervalTotalMinutes",[B],(function(t,e){return kt(t,e,6e4)})),b("getIntervalHours",[B],(function(t,e){return kt(t,e,Et,24)})),b("getIntervalTotalHours",[B],(function(t,e){return kt(t,e,Et)})),b("getIntervalTotalDays",[B],(function(t,e){return kt(t,e,864e5)})),b("getIntervalTotalWeeks",[B],(function(t,e){return kt(t,e,6048e5)})),b("len",[R],(function(t,e){return{type:B,value:a(e.value.length)}})),b("contains",[R,R],(function(t,e,n){return{type:U,value:e.value.includes(n.value)?1:0}})),b("substring",[R,B,B],(function(t,e,n,r){if(r.value<n.value)throw new Error("Indexes should be in ascending order.");if(n.value<0||n.value>e.value.length||r.value<0||r.value>e.value.length)throw new Error("Indexes are out of bounds.");return{type:R,value:e.value.substring(Number(n.value),Number(r.value))}})),b("replaceAll",[R,R,R],(function(t,e,n,r){let o;return o=n.value?e.value.replace(new RegExp(function(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}(n.value),"g"),r.value):e.value,{type:R,value:o}})),b("index",[R,R],(function(t,e,n){return{type:B,value:a(e.value.indexOf(n.value))}})),b("lastIndex",[R,R],(function(t,e,n){return{type:B,value:a(e.value.lastIndexOf(n.value))}})),b("trim",[R],(function(t,e){return{type:R,value:e.value.trim()}})),b("trimLeft",[R],(function(t,e){return{type:R,value:e.value.replace(/^\s+/,"")}})),b("trimRight",[R],(function(t,e){return{type:R,value:e.value.replace(/\s+$/,"")}})),b("toUpperCase",[R],(function(t,e){return{type:R,value:e.value.toUpperCase()}})),b("toLowerCase",[R],(function(t,e){return{type:R,value:e.value.toLowerCase()}})),b("padStart",[R,B,R],pt),b("padStart",[B,B,R],pt),b("padEnd",[R,B,R],ht),b("padEnd",[B,B,R],ht),b("testRegex",[R,R],(function(t,e,n){let r;try{r=new RegExp(n.value)}catch(t){throw new Error("Invalid regular expression.")}return{type:U,value:r.test(e.value)?1:0}})),b("div",[B,B],(function(t,e,n){if(n.value===s)throw new Error("Division by zero is not supported.");let r=e.value/n.value;return r=F(0,r),P(t,r),{type:B,value:r}})),b("div",[L,L],(function(t,e,n){if(0===n.value)throw new Error("Division by zero is not supported.");const r=e.value/n.value;return{type:L,value:r}})),b("mod",[B,B],(function(t,e,n){if(n.value===s)throw new Error("Division by zero is not supported.");let r=e.value%n.value;return r=F(0,r),P(t,r),{type:B,value:r}})),b("mod",[L,L],(function(t,e,n){if(0===n.value)throw new Error("Division by zero is not supported.");const r=e.value%n.value;return{type:L,value:r}})),b("mul",[{type:B,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let o=n.length?n[0].value:s;for(let e=1;e<n.length;++e)o*=n[e].value,o=F(0,o),P(t,o);return{type:B,value:o}})),b("mul",[{type:L,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let o=n.length?n[0].value:0;for(let t=1;t<n.length;++t)o*=n[t].value;return{type:L,value:o}})),b("sub",[{type:B,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let o=n.length?n[0].value:s;for(let e=1;e<n.length;++e)o-=n[e].value,o=F(0,o),P(t,o);return{type:B,value:o}})),b("sub",[{type:L,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let o=n.length?n[0].value:0;for(let t=1;t<n.length;++t)o-=n[t].value;return{type:L,value:o}})),b("sum",[{type:B,isVararg:!0}],(function(t){let e=s;for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];for(let n=0;n<r.length;++n)e+=r[n].value,e=F(0,e),P(t,e);return{type:B,value:e}})),b("sum",[{type:L,isVararg:!0}],(function(t){let e=0;for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];for(let t=0;t<r.length;++t)e+=r[t].value;return{type:L,value:e}})),b("abs",[B],(function(t,e){const n=l(e.value);return P(t,n),{type:e.type,value:n}})),b("abs",[L],(function(t,e){const n=Math.abs(e.value);return{type:L,value:n}})),b("max",[{type:B,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!n.length)throw new Error("Non empty argument list is required for function 'max'.");let o=n[0].value;for(let t=1;t<n.length;++t)n[t].value>o&&(o=n[t].value);return{type:B,value:o}})),b("max",[{type:L,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!n.length)throw new Error("Non empty argument list is required for function 'max'.");return{type:L,value:Math.max(...n.map((t=>t.value)))}})),b("min",[{type:B,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!n.length)throw new Error("Non empty argument list is required for function 'min'.");let o=n[0].value;for(let t=1;t<n.length;++t)n[t].value<o&&(o=n[t].value);return{type:B,value:o}})),b("min",[{type:L,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!n.length)throw new Error("Non empty argument list is required for function 'min'.");return{type:L,value:Math.min(...n.map((t=>t.value)))}})),b("maxNumber",[],(function(){return{type:L,value:T}})),b("minNumber",[],(function(){return{type:L,value:z}})),b("maxInteger",[],(function(t){return P(t,o),{type:B,value:o}})),b("minInteger",[],(function(t){return P(t,i),{type:B,value:i}})),b("round",[L],(function(t,e){const n=Math.sign(e.value);return{type:L,value:n*Math.round(Math.abs(e.value))}})),b("floor",[L],(function(t,e){return{type:L,value:Math.floor(e.value)}})),b("ceil",[L],(function(t,e){return{type:L,value:Math.ceil(e.value)}})),b("signum",[B],(function(t,e){return{type:B,value:c(e.value)}})),b("signum",[L],(function(t,e){return{type:L,value:Math.sign(e.value)}})),b("copySign",[B,B],(function(t,e,n){let r;if(n.value===s)r=e.value;else if(e.value===s)r=a(0);else{const t=c(n.value);r=l(e.value)*t}return P(t,r),{type:B,value:r}})),b("copySign",[L,L],(function(t,e,n){let r=Math.sign(n.value);0===r&&(r=Object.is(r,0)?1:-1);const o=Math.abs(e.value)*r;return{type:L,value:o}})),b("getColorAlpha",[R],mt),b("getColorAlpha",[H],mt),b("getColorRed",[R],vt),b("getColorRed",[H],vt),b("getColorGreen",[R],yt),b("getColorGreen",[H],yt),b("getColorBlue",[R],$t),b("getColorBlue",[H],$t),b("setColorAlpha",[R,L],bt),b("setColorAlpha",[H,L],bt),b("setColorRed",[R,L],_t),b("setColorRed",[H,L],_t),b("setColorGreen",[R,L],wt),b("setColorGreen",[H,L],wt),b("setColorBlue",[R,L],xt),b("setColorBlue",[H,L],xt),b("rgb",[L,L,L],(function(t,e,n,r){const o={a:255,r:255*e.value,g:255*n.value,b:255*r.value};return{type:H,value:O(o)}})),b("argb",[L,L,L,L],(function(t,e,n,r,o){const i={a:255*e.value,r:255*n.value,g:255*r.value,b:255*o.value};return{type:H,value:O(i)}})),b("getDictString",[q,{type:R,isVararg:!0}],jt),b("getStringFromDict",[q,{type:R,isVararg:!0}],jt),b("getDictNumber",[q,{type:R,isVararg:!0}],Vt),b("getNumberFromDict",[q,{type:R,isVararg:!0}],Vt),b("getDictInteger",[q,{type:R,isVararg:!0}],Dt),b("getIntegerFromDict",[q,{type:R,isVararg:!0}],Dt),b("getDictBoolean",[q,{type:R,isVararg:!0}],Ft),b("getBooleanFromDict",[q,{type:R,isVararg:!0}],Ft),b("getDictColor",[q,{type:R,isVararg:!0}],Pt),b("getColorFromDict",[q,{type:R,isVararg:!0}],Pt),b("getDictUrl",[q,{type:R,isVararg:!0}],St),b("getUrlFromDict",[q,{type:R,isVararg:!0}],St),b("getDictOptString",[R,q,{type:R,isVararg:!0}],Ot),b("getOptStringFromDict",[R,q,{type:R,isVararg:!0}],Ot),b("getDictOptNumber",[L,q,{type:R,isVararg:!0}],Mt),b("getOptNumberFromDict",[L,q,{type:R,isVararg:!0}],Mt),b("getDictOptInteger",[B,q,{type:R,isVararg:!0}],Tt),b("getOptIntegerFromDict",[B,q,{type:R,isVararg:!0}],Tt),b("getDictOptBoolean",[U,q,{type:R,isVararg:!0}],zt),b("getOptBooleanFromDict",[U,q,{type:R,isVararg:!0}],zt),b("getDictOptColor",[H,q,{type:R,isVararg:!0}],Rt),b("getOptColorFromDict",[H,q,{type:R,isVararg:!0}],Rt),b("getDictOptColor",[R,q,{type:R,isVararg:!0}],Rt),b("getOptColorFromDict",[R,q,{type:R,isVararg:!0}],Rt),b("getDictOptUrl",[R,q,{type:R,isVararg:!0}],Bt),b("getOptUrlFromDict",[R,q,{type:R,isVararg:!0}],Bt),b("getDictOptUrl",[W,q,{type:R,isVararg:!0}],Bt),b("getOptUrlFromDict",[W,q,{type:R,isVararg:!0}],Bt),b("getDictFromDict",[q,{type:R,isVararg:!0}],Nt),b("getArrayFromDict",[q,{type:R,isVararg:!0}],It),b("getOptArrayFromDict",[q,{type:R,isVararg:!0}],(function(t,e){try{for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return It(t,e,...r)}catch(t){return{type:G,value:[]}}})),b("getOptDictFromDict",[q,{type:R,isVararg:!0}],(function(t,e){try{for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return Nt(t,e,...r)}catch(t){return{type:q,value:{}}}})),b("getArrayString",[G,B],Ht),b("getStringFromArray",[G,B],Ht),b("getArrayNumber",[G,B],Wt),b("getNumberFromArray",[G,B],Wt),b("getArrayInteger",[G,B],Jt),b("getIntegerFromArray",[G,B],Jt),b("getArrayBoolean",[G,B],qt),b("getBooleanFromArray",[G,B],qt),b("getArrayColor",[G,B],Gt),b("getColorFromArray",[G,B],Gt),b("getArrayUrl",[G,B],Kt),b("getUrlFromArray",[G,B],Kt),b("getArrayFromArray",[G,B],Yt),b("getDictFromArray",[G,B],Zt),b("getArrayOptString",[G,B,R],Xt),b("getOptStringFromArray",[G,B,R],Xt),b("getArrayOptNumber",[G,B,L],Qt),b("getOptNumberFromArray",[G,B,L],Qt),b("getArrayOptInteger",[G,B,B],te),b("getOptIntegerFromArray",[G,B,B],te),b("getArrayOptBoolean",[G,B,U],ee),b("getOptBooleanFromArray",[G,B,U],ee),b("getArrayOptColor",[G,B,H],ne),b("getOptColorFromArray",[G,B,H],ne),b("getArrayOptColor",[G,B,R],ne),b("getOptColorFromArray",[G,B,R],ne),b("getArrayOptUrl",[G,B,W],re),b("getOptUrlFromArray",[G,B,W],re),b("getArrayOptUrl",[G,B,R],re),b("getOptUrlFromArray",[G,B,R],re),b("getOptArrayFromArray",[G,B],(function(t,e,n){try{return Yt(t,e,n)}catch(t){return{type:G,value:[]}}})),b("getOptDictFromArray",[G,B],(function(t,e,n){try{return Zt(t,e,n)}catch(t){return{type:q,value:{}}}})),b("len",[G],(function(t,e){return{type:B,value:a(e.value.length)}}));const Pr={StringLiteral:function(t,e){return{type:R,value:e.value}},NumberLiteral:function(t,e){return{type:L,value:e.value}},IntegerLiteral:function(t,e){return P(t,e.value),{type:B,value:e.value}},BooleanLiteral:function(t,e){return{type:U,value:e.value?1:0}},UnaryExpression:function(t,e){const n=C(Sr(t,e.argument));switch(e.operator){case"!":if(n.type===U)return{type:U,value:n.value?0:1};I("".concat(e.operator).concat(V(n)),"A Boolean is expected after a unary not.");case"+":case"-":const r="+"===e.operator?1:-1;if(n.type===B){const e=n.value*a(r);return P(t,e),{type:B,value:e}}if(n.type===L)return{type:L,value:n.value*r};I("".concat(e.operator).concat(V(n)),"A Number is expected after a unary ".concat("+"===e.operator?"plus":"minus","."))}},ConditionalExpression:function(t,e){const n=C(Sr(t,e.test));if(n.type===U)return n.value?Sr(t,e.consequent):Sr(t,e.alternate);I("".concat(V(n)," ? ").concat(V(Sr(t,e.consequent))," : ").concat(V(Sr(t,e.alternate))),"Ternary must be called with a Boolean value as a condition.")},TryExpression:function(t,e){try{return Sr(t,e.test)}catch(n){return Sr(t,e.alternate)}},TemplateLiteral:function(t,e){let n="";if(2===e.quasis.length&&""===e.quasis[0].value&&""===e.quasis[1].value)return Sr(t,e.expressions[0]);for(let r=0;r<e.expressions.length;++r)n+=e.quasis[r].value,n+=j(Sr(t,e.expressions[r]));return n+=e.quasis[e.quasis.length-1].value,{type:R,value:n}},LogicalExpression:function(t,e){const n=C(Sr(t,e.left));if(n.type!==U&&I("".concat(V(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:U,value:0};const r=C(Sr(t,e.right));return r.type!==U&&I("".concat(V(n)," ").concat(e.operator," ").concat(V(r)),"Operator '".concat(e.operator,"' cannot be applied to different types: Boolean and ").concat(D(r.type),".")),{type:U,value:r.value}},BinaryExpression:function(t,e){const n=e.operator,r=Sr(t,e.left),o=Sr(t,e.right);if(r.type!==o.type&&I("".concat(V(r)," ").concat(e.operator," ").concat(V(o)),"Operator '".concat(n,"' cannot be applied to different types: ").concat(D(r.type)," and ").concat(D(o.type),".")),"=="===n||"!="===n)return function(t,e,n){let r;return r=e.type===J&&n.type===J?e.value.getTime()===n.value.getTime():e.value===n.value,"!="===t&&(r=!r),{type:U,value:r?1:0}}(n,r,o);if(">"===n||">="===n||"<"===n||"<="===n)return function(t,e,n){let r;e.type!==L&&e.type!==B&&e.type!==J&&I("".concat(V(e)," ").concat(t," ").concat(V(n)),"Operator '".concat(t,"' cannot be applied to ").concat(D(e.type)," type."));const o=e.type===J?e.value.getTime():e.value,i=n.type===J?n.value.getTime():n.value;return r=">"===t?o>i:">="===t?o>=i:"<"===t?o<i:o<=i,{type:U,value:r?1:0}}(n,r,o);if("+"===n||"-"===n)return function(t,e,n,r){if(n.type!==R&&n.type!==L&&n.type!==B&&I("".concat(V(n)," ").concat(e," ").concat(V(r)),"Operator '".concat(e,"' cannot be applied to ").concat(D(n.type)," type.")),n.type===R)return"-"===e&&I("".concat(V(n)," - ").concat(V(r)),"Operator '".concat(e,"' cannot be applied to ").concat(D(n.type)," type.")),{type:R,value:n.value+r.value};let o="+"===e?n.value+r.value:n.value-r.value;if(n.type===B)try{o=F(0,o),P(t,o)}catch(t){I("".concat(V(n)," ").concat(e," ").concat(V(r)),t.message)}return{type:n.type,value:o}}(t,n,r,o);if("/"===n||"*"===n||"%"===n)return function(t,e,n,r){let o;if(n.type!==B&&n.type!==L&&I("".concat(V(n)," ").concat(e," ").concat(V(r)),"Operator '".concat(e,"' cannot be applied to ").concat(D(n.type)," type.")),"*"===e)o=n.value*r.value;else{if("/"!==e&&"%"!==e)throw new Error("Unsupported operation ".concat(e));0===Number(r.value)&&I("".concat(V(n)," ").concat(e," ").concat(V(r)),"Division by zero is not supported."),o="/"===e?n.value/r.value:n.value%r.value}if(n.type===B)try{o=F(0,o),P(t,o)}catch(t){I("".concat(V(n)," ").concat(e," ").concat(V(r)),t.message)}return{type:n.type,value:o}}(t,n,r,o);throw new Error("Unsupported operation ".concat(n))},CallExpression:function(t,e){const n=e.callee.name;let r;const o=e.arguments.map((e=>Sr(t,e))),i=n+":"+o.map((t=>t.type)).join("#");if($.has(i))r=$.get(i);else{const t=function(t,e){const n=y.get(t);if(!n)return{type:"missing"};let r=null;for(let t=0;t<n.length;++t){const o=_(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||"type"in t&&"missing"===t.type){const e=o.map((t=>D(t.type))).join(", "),r="".concat(n,"(").concat(Fr(o),")");"few"===t.type&&0===o.length?I(r,"Non empty argument list is required for function '".concat(n,"'.")):"many"===t.type||"few"===t.type||"mismatch"===t.type?I(r,"Function '".concat(n,"' has no matching override for given argument types: ").concat(e,".")):I(r,"Unknown function name: ".concat(n,"."))}r=t}if(!r)throw new Error("Function not found");try{return r.cb(t,...o)}catch(t){I("".concat(n,"(").concat(Fr(o),")"),t.message)}},Variable:function(t,e){const n=e.id.name,r=t.variables.get(n);if(r)return function(t){return{type:t.getType(),value:t.getValue()}}(r);throw new Error("Variable '".concat(n,"' is missing."))}};function Sr(t,e){if(e.type in Pr)return Pr[e.type](t,e);throw new Error("Unsupported expression")}function Ir(t,e){try{const n={variables:t,warnings:[],safeIntegerOverflow:!1},r=Sr(n,e);return n.safeIntegerOverflow&&n.warnings.push(ut(new Error("Safe integer overflow, values may lose accuracy."),{level:"warn"})),{result:r,warnings:n.warnings}}catch(t){return{result:{type:"error",value:t.message},warnings:[]}}}const Nr={root:"divkit-b023c",root__clickable:"divkit-bd259","root__clickable-no-transition":"divkit-d9099",root__unselectable:"divkit-c016b",root_platform_desktop:"divkit-ee112","root__only-desktop":"divkit-fef1e","root_restrict-scroll":"divkit-aa145","root_disabled-context-menu":"divkit-f0cba"},Or=Symbol("root"),Mr={"text-range":"divkit-faf07",text:"divkit-d9b0e",text_halign_start:"divkit-e70de",text_halign_center:"divkit-e1659",text_halign_end:"divkit-e48b4",text_valign_start:"divkit-b7b70",text_valign_center:"divkit-ef58e",text_valign_end:"divkit-d4206",text_valign_baseline:"divkit-e0c6c",text__inner:"divkit-b8528",text_singleline:"divkit-ef11c",text_multiline:"divkit-ee8e3",text_truncate_none:"divkit-c6ea1",text__inner_gradient:"divkit-cb8e0",text__image:"divkit-bf6e2",text__image_hidden:"divkit-f1002","text_has-focus-color":"divkit-cb341"},Tr={outer:"divkit-d65a7","outer_hide-on-transition-in":"divkit-a6d12","outer_halign-self_start":"divkit-cc452","outer_halign-self_center":"divkit-b8331","outer_halign-self_end":"divkit-c573c","outer_halign-self_stretch":"divkit-dcc74","outer_valign-self_start":"divkit-e8077","outer_valign-self_center":"divkit-d40a7","outer_valign-self_end":"divkit-e9f84","outer_valign-self_stretch":"divkit-b7aa3","outer_parent-flex_vertical":"divkit-c143f","outer_parent-flex_horizontal":"divkit-ef302","outer_valign-self_baseline":"divkit-e72b5",outer_width_content:"divkit-b8f4d",outer_height_content:"divkit-faa66","outer_width-constrained":"divkit-d3211","outer_parent-grid":"divkit-ff439","outer_height-constrained":"divkit-a5256","outer_parent-overlap":"divkit-dab2d","outer_parent-overlap-absolute":"divkit-d43fb","outer_scroll-snap_center":"divkit-d9e38","outer_scroll-snap_start":"divkit-efd1e",outer__border:"divkit-d4056",outer_visibility_invisible:"divkit-f018b",outer_visibility_gone:"divkit-e784b","outer_has-action-animation":"divkit-f4980","outer_has-custom-focus":"divkit-c7f14"};function zr(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 Rr(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 Br(t){let e=Rr(t);return"0"===e&&(e+="em"),e}function Lr(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 Ur=Boolean;function Hr(t){if(1===t.length&&"solid"===t[0].type)return{color:k(t[0].color||"transparent"),size:"auto",position:"50% 50%"};const e=t.map((t=>"solid"===t.type?function(t){const e=k(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(Ur);return n.length?{size:void 0,pos:void 0,image:"linear-gradient("+(90-Number(t.bg.angle||0))+"deg,"+n.map((t=>k(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:qr(t.bg.scale),pos:Gr(t.bg),image:'url("'+Lr(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(Ur);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=Br(r.value):"relative"===r.type&&(o=Wr[r.value]));const i=Jr(t.bg.center_x),a=Jr(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=>k(t))).join(",")+")"}}({bg:t}):void 0)).filter(Ur).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 Wr={nearest_corner:"closest-corner",farthest_corner:"farthest-corner",nearest_side:"closest-side",farthest_side:"farthest-side"};function Jr(t){if(t&&"object"==typeof t&&"type"in t&&void 0!==t.value){if("fixed"===t.type)return Br(t.value);if("relative"===t.type)return"".concat(100*Number(t.value),"%")}return"50%"}function qr(t){return"fit"===t?"contain":"stretch"===t?"fill":"no_scale"===t?"none":"cover"}function Gr(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 Kr(t){const e=/^([^/]+):\/\//.exec(t);return e&&e[1]||""}function Yr(t,e){return e.has(t)}function Zr(t,e,n){return"number"==typeof e&&(t&&e>0&&e<=100||!t&&e>=0&&e<100)?e:n}function Xr(t){return 0!==t.is_enabled&&!1!==t.is_enabled&&void 0!==t.index}function Qr(t,e){e&&t.push(e)}function to(t,e,n){const r=[];Qr(r,e[t]);for(const o in n)if(n.hasOwnProperty(o)){const i=n[o];i&&Qr(r,e["".concat(t,"_").concat(o)+("string"==typeof i?"_".concat(i):"")])}return r.join(" ")}const eo=function(t,e,n){var r;return null===(r=e.componentDevtool)||void 0===r||r.call(e,{type:"mount",node:t,json:n.json,origJson:n.origJson,templateContext:n.templateContext}),{update(n){var r;null===(r=e.componentDevtool)||void 0===r||r.call(e,{type:"update",node:t,json:n.json,origJson:n.origJson,templateContext:n.templateContext})},destroy(){var r;null===(r=e.componentDevtool)||void 0===r||r.call(e,{type:"destroy",node:t,json:n.json,origJson:n.origJson,templateContext:n.templateContext})}}},no=Symbol("state");function ro(t,e){var n,r;const o=t.top||0,i=(null!==(n="ltr"===e?t.end:t.start)&&void 0!==n?n:t.right)||0,a=t.bottom||0,s=(null!==(r="ltr"===e?t.start:t.end)&&void 0!==r?r:t.left)||0;return 0===o&&0===i&&0===a&&0===s?"":Rr(o)+" "+Rr(i)+" "+Rr(a)+" "+Rr(s)}function oo(t){if("number"!=typeof t&&"string"!=typeof t)return!1;const e=Number(t);return!isNaN(e)}function io(t){return oo(t)&&t>=0}function ao(t,e,n){var r,o;if(!t)return n;const i=[t.top,null!==(r="ltr"===e?t.end:t.start)&&void 0!==r?r:t.right,t.bottom,null!==(o="ltr"===e?t.start:t.end)&&void 0!==o?o:t.left];for(let t=0;t<i.length;++t)if(i[t]&&!io(i[t]))return n;return ro(t,e)}function so(t,e){const n=Number(t);return isNaN(n)||n<0?e:n}const lo=Object.prototype.hasOwnProperty;function co(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(!lo.call(e,o)||!co(t[o],e[o]))return!1}return!0}function uo(t,e){return co(t,e)?e:t}function po(t,e){return"linear"===t||"ease"===t||"ease_in_out"===t||"ease_in"===t||"ease_out"===t?t:e}function ho(t,e){const n=Number(t);return isNaN(n)?e:n}function fo(t){const e=[];return"set"===t.name?(t.items||[]).forEach((t=>{e.push(...fo(t))})):e.push(t),e}function go(t,e){if(!t||"object"!=typeof t)return e;const n=["top","right","bottom","left"];for(let r=0;r<n.length;++r)if(t[n[r]]&&!io(t[n[r]]))return e;return t}function mo(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=>Rr((t||e)/n*10))).join(" ")}function vo(t){return 0!==t.is_enabled&&!1!==t.is_enabled}let yo;function $o(){return"undefined"!=typeof matchMedia&&(yo||(yo=window.matchMedia("(prefers-reduced-motion)")),yo.matches)}function bo(){}const _o=Symbol("action");function wo(t){const e=t.touches[0];return{x:e.clientX||e.pageX,y:e.clientY||e.pageY}}function xo(t){var e;let n,r,o,i,a,s,l,c;const u=t[18].default,d=me(u,t,t[17],null);let p=[{class:r=t[1]+(t[8]?" ".concat(t[5]?Nr.root__clickable:Nr["root__clickable-no-transition"]," ").concat(Nr.root__unselectable):"")+" "+(null!==(e=t[0])&&void 0!==e&&e.length?Nr["root_disabled-context-menu"]:"")},{style:t[2]},{role:o=t[8]?"button":null},{tabindex:i=t[8]?0:null},t[3]],h={};for(let t=0;t<p.length;t+=1)h=ae(h,p[t]);return{c(){n=Le("span"),d&&d.c(),this.h()},l(t){n=rn(t,"SPAN",{class:!0,style:!0,role:!0,tabindex:!0});var e=Qe(n);d&&d.l(e),e.forEach(Re),this.h()},h(){Ye(n,h)},m(e,r){ze(e,n,r),d&&d.m(n,null),t[26](n),s=!0,l||(c=[we(a=t[4].call(null,n)),qe(n,"click",t[22]),qe(n,"keydown",t[10]),qe(n,"focus",t[23]),qe(n,"blur",t[24])],l=!0)},p(t,e){var a;d&&d.p&&(!s||131072&e[0])&&$e(d,u,t,t[17],s?ye(u,t[17],e,null):be(t[17]),null),Ye(n,h=er(p,[(!s||291&e[0]&&r!==(r=t[1]+(t[8]?" ".concat(t[5]?Nr.root__clickable:Nr["root__clickable-no-transition"]," ").concat(Nr.root__unselectable):"")+" "+(null!==(a=t[0])&&void 0!==a&&a.length?Nr["root_disabled-context-menu"]:"")))&&{class:r},(!s||4&e[0])&&{style:t[2]},(!s||256&e[0]&&o!==(o=t[8]?"button":null))&&{role:o},(!s||256&e[0]&&i!==(i=t[8]?0:null))&&{tabindex:i},8&e[0]&&t[3]]))},i(t){s||(Gn(d,t),s=!0)},o(t){Kn(d,t),s=!1},d(e){e&&Re(n),d&&d.d(e),t[26](null),l=!1,ce(c)}}}function ko(t){var e;let n,r,o,i,a,s;const l=t[18].default,c=me(l,t,t[17],null);let u=[{href:t[7]},{target:t[9]},{style:t[2]},{class:r=t[1]+" "+(t[5]?Nr.root__clickable:Nr["root__clickable-no-transition"])+" "+(null!==(e=t[0])&&void 0!==e&&e.length?Nr["root_disabled-context-menu"]:"")},t[3]],d={};for(let t=0;t<u.length;t+=1)d=ae(d,u[t]);return{c(){n=Le("a"),c&&c.c(),this.h()},l(t){n=rn(t,"A",{href:!0,target:!0,style:!0,class:!0});var e=Qe(n);c&&c.l(e),e.forEach(Re),this.h()},h(){Ye(n,d)},m(e,r){ze(e,n,r),c&&c.m(n,null),t[25](n),i=!0,a||(s=[we(o=t[4].call(null,n)),qe(n,"click",t[19]),qe(n,"keydown",t[10]),qe(n,"focus",t[20]),qe(n,"blur",t[21])],a=!0)},p(t,e){var o;c&&c.p&&(!i||131072&e[0])&&$e(c,l,t,t[17],i?ye(l,t[17],e,null):be(t[17]),null),Ye(n,d=er(u,[(!i||128&e[0])&&{href:t[7]},(!i||512&e[0])&&{target:t[9]},(!i||4&e[0])&&{style:t[2]},(!i||35&e[0]&&r!==(r=t[1]+" "+(t[5]?Nr.root__clickable:Nr["root__clickable-no-transition"])+" "+(null!==(o=t[0])&&void 0!==o&&o.length?Nr["root_disabled-context-menu"]:"")))&&{class:r},8&e[0]&&t[3]]))},i(t){i||(Gn(c,t),i=!0)},o(t){Kn(c,t),i=!1},d(e){e&&Re(n),c&&c.d(e),t[25](null),a=!1,ce(s)}}}function Eo(t){let e,n,r,o;const i=[ko,xo],a=[];function s(t,e){return t[7]?0:1}return e=s(t),n=a[e]=i[e](t),{c(){n.c(),r=Je()},l(t){n.l(t),r=Je()},m(t,n){a[e].m(t,n),ze(t,r,n),o=!0},p(t,o){let l=e;e=s(t),e===l?a[e].p(t,o):(Jn(),Kn(a[l],1,1,(()=>{a[l]=null})),qn(),n=a[e],n?n.p(t,o):(n=a[e]=i[e](t),n.c()),Gn(n,1),n.m(r.parentNode,r))},i(t){o||(Gn(n),o=!0)},o(t){Kn(n),o=!1},d(t){t&&Re(r),a[e].d(t)}}}function Co(t,e,n){let{$$slots:r={},$$scope:o}=e,{componentContext:i}=e,{id:a=""}=e,{actions:s}=e,{doubleTapActions:l}=e,{longTapActions:c}=e,{cls:u=""}=e,{style:d=null}=e,{attrs:p}=e,{use:h=bo}=e,{customAction:f=null}=e,{isNativeActionAnimation:g=!0}=e,{hasInnerFocusable:m=!1}=e;const v=Cn(Or),y=Cn(_o);let $;En(_o,{hasAction:()=>Boolean(y.hasAction()||(null==s?void 0:s.length))});let b,_="",w=-1,x=null,k=!1,E=!1;async function C(t){y.hasAction()||void 0!==t.button&&0!==t.button||(!1===(null==f?void 0:f(t))?t.preventDefault():s&&(s.some((t=>{if(null==t?void 0:t.typed)return!0;const e=null==t?void 0:t.url;if(!e)return!1;const n=Kr(e);return n&&!Yr(n,v.getBuiltinProtocols())}))&&t.preventDefault(),i.execAnyActions(s)))}function A(t){y.hasAction()||void 0!==t.button&&0!==t.button||i.execAnyActions(l,{processUrls:!0})}function j(t){t.touches.length>1||(x=wo(t),k=!1,w=Date.now())}function V(t){if(!x)return;const e=wo(t);(Math.abs(x.x-e.x)>8||Math.abs(x.y-e.y)>8)&&(k=!0)}function D(){!x||w<0||(!k&&Date.now()-w>=400&&i.execAnyActions(c,{processUrls:!0}),x=null,w=-1)}return xn((()=>{a&&!m&&v.registerFocusable(a,{focus(){$&&(_||E)&&$.focus()}})})),kn((()=>{a&&!m&&v.unregisterFocusable(a)})),t.$$set=t=>{"componentContext"in t&&n(11,i=t.componentContext),"id"in t&&n(12,a=t.id),"actions"in t&&n(13,s=t.actions),"doubleTapActions"in t&&n(14,l=t.doubleTapActions),"longTapActions"in t&&n(0,c=t.longTapActions),"cls"in t&&n(1,u=t.cls),"style"in t&&n(2,d=t.style),"attrs"in t&&n(3,p=t.attrs),"use"in t&&n(4,h=t.use),"customAction"in t&&n(15,f=t.customAction),"isNativeActionAnimation"in t&&n(5,g=t.isNativeActionAnimation),"hasInnerFocusable"in t&&n(16,m=t.hasInnerFocusable),"$$scope"in t&&n(17,o=t.$$scope)},t.$$.update=()=>{if(43136&t.$$.dirty[0]){if(Array.isArray(s)&&(null==s?void 0:s.length))for(let t=0;t<s.length;++t){const e=s[t].url;if(e){n(7,_=e),n(9,b=s[t].target||void 0);break}}Array.isArray(s)&&(null==s?void 0:s.length)&&y.hasAction()&&(n(7,_=""),i.logError(ut(new Error("Actionable element is forbidden inside other actionable element"),{level:"warn",additional:{actions:s}}))),n(8,E=Boolean(f)),_&&!Yr(Kr(_),v.getBuiltinProtocols())?(n(7,_=""),n(8,E=!0)):!_&&Array.isArray(s)&&(null==s?void 0:s.length)&&(n(8,E=!0),s.some((t=>t.url||t.typed))||i.logError(ut(new Error("The component has a list of actions, but does not have a real action"),{level:"warn",additional:{actions:s}})))}16833&t.$$.dirty[0]&&$&&(_||E?$.addEventListener("click",C):$.removeEventListener("click",C),(null==l?void 0:l.length)?$.addEventListener("dblclick",A):$.removeEventListener("dblclick",A),(null==c?void 0:c.length)?($.addEventListener("touchstart",j,{passive:!0}),$.addEventListener("touchmove",V,{passive:!0}),$.addEventListener("touchend",D,{passive:!0}),$.addEventListener("touchcancel",D,{passive:!0})):($.removeEventListener("touchstart",j),$.removeEventListener("touchmove",V),$.removeEventListener("touchend",D),$.removeEventListener("touchcancel",D)))},[c,u,d,p,h,g,$,_,E,b,function(t){const e=t.target;e instanceof HTMLElement&&("INPUT"===e.tagName||"true"===e.contentEditable)||t.ctrlKey||t.metaKey||t.altKey||t.shiftKey||"Enter"===t.key&&Array.isArray(s)&&s.length&&(i.execAnyActions(s),t.preventDefault())},i,a,s,l,f,m,o,r,function(e){An.call(this,t,e)},function(e){An.call(this,t,e)},function(e){An.call(this,t,e)},function(e){An.call(this,t,e)},function(e){An.call(this,t,e)},function(e){An.call(this,t,e)},function(t){Vn[t?"unshift":"push"]((()=>{$=t,n(6,$)}))},function(t){Vn[t?"unshift":"push"]((()=>{$=t,n(6,$)}))}]}const Ao=class extends pr{constructor(t){super(),ur(this,t,Co,Eo,he,{componentContext:11,id:12,actions:13,doubleTapActions:14,longTapActions:0,cls:1,style:2,attrs:3,use:4,customAction:15,isNativeActionAnimation:5,hasInnerFocusable:16},null,[-1,-1])}},jo={"outer-background":"divkit-bf253","outer-background_clip":"divkit-dcad7","outer-background__item":"divkit-b921d","outer-background__item_hidden":"divkit-cd613"};function Vo(t){return oo(t)&&t>0}function Do(t,e){return t.map((t=>{if(t)if("blur"===t.type){if(Vo(t.radius))return"blur(".concat(Br(t.radius/2),")")}else{if("rtl_mirror"===t.type)return;e(ut(new Error("Unknown filter"),{level:"warn",additional:{filter:t.type}}))}else e(ut(new Error("Incorrect filter"),{level:"warn"}))})).filter(Boolean).join(" ")}function Fo(t,e,n){const r=t.slice();return r[7]=e[n],r}function Po(t){let e,n,r;return{c(){e=Le("span"),this.h()},l(t){e=rn(t,"SPAN",{class:!0,style:!0}),Qe(e).forEach(Re),this.h()},h(){Ge(e,"class",n=jo["outer-background__item"]),Ge(e,"style",r=zr(t[7].style))},m(t,n){ze(t,e,n)},p(t,n){2&n&&r!==(r=zr(t[7].style))&&Ge(e,"style",r)},d(t){t&&Re(e)}}}function So(t){let e,n,r,o,i,a;return{c(){e=Le("img"),this.h()},l(t){e=rn(t,"IMG",{src:!0,alt:!0,"aria-hidden":!0,loading:!0,decoding:!0,class:!0,style:!0}),this.h()},h(){pe(e.src,n=t[7].image_url)||Ge(e,"src",n),Ge(e,"alt",""),Ge(e,"aria-hidden","true"),Ge(e,"loading","lazy"),Ge(e,"decoding","async"),Ge(e,"class",r=jo["outer-background__item"]),Ge(e,"style",o=zr(t[7].style))},m(n,r){ze(n,e,r),i||(a=qe(e,"error",t[2]),i=!0)},p(t,r){2&r&&!pe(e.src,n=t[7].image_url)&&Ge(e,"src",n),2&r&&o!==(o=zr(t[7].style))&&Ge(e,"style",o)},d(t){t&&Re(e),i=!1,a()}}}function Io(t){let e;function n(t,e){return t[7].image_url?So:Po}let r=n(t),o=r(t);return{c(){o.c(),e=Je()},l(t){o.l(t),e=Je()},m(t,n){o.m(t,n),ze(t,e,n)},p(t,i){r===(r=n(t))&&o?o.p(t,i):(o.d(1),o=r(t),o&&(o.c(),o.m(e.parentNode,e)))},d(t){t&&Re(e),o.d(t)}}}function No(t){let e,n,r=Xn(t[1]),o=[];for(let e=0;e<r.length;e+=1)o[e]=Io(Fo(t,r,e));return{c(){e=Le("span");for(let t=0;t<o.length;t+=1)o[t].c();this.h()},l(t){e=rn(t,"SPAN",{class:!0});var n=Qe(e);for(let t=0;t<o.length;t+=1)o[t].l(n);n.forEach(Re),this.h()},h(){Ge(e,"class",n=jo["outer-background"]+(t[0]?" "+jo["outer-background_clip"]:"")),dn(e,"border-radius",t[0])},m(t,n){ze(t,e,n);for(let t=0;t<o.length;t+=1)o[t]&&o[t].m(e,null)},p(t,i){let[a]=i;if(6&a){let n;for(r=Xn(t[1]),n=0;n<r.length;n+=1){const i=Fo(t,r,n);o[n]?o[n].p(i,a):(o[n]=Io(i),o[n].c(),o[n].m(e,null))}for(;n<o.length;n+=1)o[n].d(1);o.length=r.length}1&a&&n!==(n=jo["outer-background"]+(t[0]?" "+jo["outer-background_clip"]:""))&&Ge(e,"class",n),1&a&&dn(e,"border-radius",t[0])},i:oe,o:oe,d(t){t&&Re(e),Be(o,t)}}}function Oo(t,e,n){let r,{direction:o}=e,{componentContext:i}=e,{background:a=[]}=e,{radius:s=""}=e;return Cn(Or),t.$$set=t=>{"direction"in t&&n(3,o=t.direction),"componentContext"in t&&n(4,i=t.componentContext),"background"in t&&n(5,a=t.background),"radius"in t&&n(0,s=t.radius)},t.$$.update=()=>{56&t.$$.dirty&&n(1,r=a.map((t=>{const e={},n={style:e};if("nine_patch_image"===t.type&&t.insets)e["border-image"]='url("'.concat(t.image_url,'") ').concat(t.insets.top||0," ").concat(t.insets.right||0," ").concat(t.insets.bottom||0," ").concat(t.insets.left||0," fill"),e["border-image-width"]="auto";else{const r=Hr([t]);"solid"===t.type&&(e["background-color"]=r.color),"gradient"===t.type&&(e["background-image"]=r.image),"image"===t.type&&(e.opacity=Number(t.alpha),n.image_url=t.image_url,e["object-fit"]=r.size,e["object-position"]=r.position,Array.isArray(t.filters)&&t.filters.length&&(e.filter=Do(t.filters,i.logError),"rtl"===o&&t.filters.some((t=>"rtl_mirror"===t.type))&&(e.transform="scale(-1,1)")))}return n})))},[s,r,function(t){t.target&&"classList"in t.target&&t.target.classList.add(jo["outer-background__item_hidden"])},o,i,a]}const Mo=class extends pr{constructor(t){super(),ur(this,t,Oo,No,he,{direction:3,componentContext:4,background:5,radius:0})}},To=t=>({hasCustomFocus:256&t[0]}),zo=t=>({focusHandler:t[40],blurHandler:t[41],hasCustomFocus:t[8]});function Ro(t){let e,n;return e=new Ao({props:{componentContext:t[0],id:t[0].json.id,use:t[39],cls:t[1]+" "+to("outer",Tr,t[18]),style:zr(t[17]),actions:t[14],doubleTapActions:t[15],longTapActions:t[16],attrs:t[10],hasInnerFocusable:t[2],isNativeActionAnimation:!t[7].length||Go(t[7]),$$slots:{default:[Uo]},$$scope:{ctx:t}}}),e.$on("focus",t[40]),e.$on("blur",t[41]),{c(){ar(e.$$.fragment)},l(t){sr(e.$$.fragment,t)},m(t,r){lr(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.componentContext=t[0]),1&n[0]&&(r.id=t[0].json.id),262146&n[0]&&(r.cls=t[1]+" "+to("outer",Tr,t[18])),131072&n[0]&&(r.style=zr(t[17])),16384&n[0]&&(r.actions=t[14]),32768&n[0]&&(r.doubleTapActions=t[15]),65536&n[0]&&(r.longTapActions=t[16]),1024&n[0]&&(r.attrs=t[10]),4&n[0]&&(r.hasInnerFocusable=t[2]),128&n[0]&&(r.isNativeActionAnimation=!t[7].length||Go(t[7])),2937&n[0]|268435456&n[3]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Gn(e.$$.fragment,t),n=!0)},o(t){Kn(e.$$.fragment,t),n=!1},d(t){cr(e,t)}}}function Bo(t){let e,n;return e=new Mo({props:{componentContext:t[0],direction:t[9],background:t[5],radius:t[4]}}),{c(){ar(e.$$.fragment)},l(t){sr(e.$$.fragment,t)},m(t,r){lr(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.componentContext=t[0]),512&n[0]&&(r.direction=t[9]),32&n[0]&&(r.background=t[5]),16&n[0]&&(r.radius=t[4]),e.$set(r)},i(t){n||(Gn(e.$$.fragment,t),n=!0)},o(t){Kn(e.$$.fragment,t),n=!1},d(t){cr(e,t)}}}function Lo(t){let e,n,r;return{c(){e=Le("span"),this.h()},l(t){e=rn(t,"SPAN",{class:!0,style:!0}),Qe(e).forEach(Re),this.h()},h(){Ge(e,"class",n=Tr.outer__border),Ge(e,"style",r=zr(t[3]))},m(t,n){ze(t,e,n)},p(t,n){8&n[0]&&r!==(r=zr(t[3]))&&Ge(e,"style",r)},d(t){t&&Re(e)}}}function Uo(t){let e,n,r,o=t[6]&&Bo(t);const i=t[120].default,a=me(i,t,t[121],zo);let s=t[11]&&Lo(t);return{c(){o&&o.c(),e=Je(),a&&a.c(),s&&s.c(),n=Je()},l(t){o&&o.l(t),e=Je(),a&&a.l(t),s&&s.l(t),n=Je()},m(t,i){o&&o.m(t,i),ze(t,e,i),a&&a.m(t,i),s&&s.m(t,i),ze(t,n,i),r=!0},p(t,l){t[6]?o?(o.p(t,l),64&l[0]&&Gn(o,1)):(o=Bo(t),o.c(),Gn(o,1),o.m(e.parentNode,e)):o&&(Jn(),Kn(o,1,1,(()=>{o=null})),qn()),a&&a.p&&(!r||256&l[0]|268435456&l[3])&&$e(a,i,t,t[121],r?ye(i,t[121],l,To):be(t[121]),zo),t[11]?s?s.p(t,l):(s=Lo(t),s.c(),s.m(n.parentNode,n)):s&&(s.d(1),s=null)},i(t){r||(Gn(o),Gn(a,t),r=!0)},o(t){Kn(o),Kn(a,t),r=!1},d(t){t&&(Re(e),Re(n)),o&&o.d(t),a&&a.d(t),s&&s.d(t)}}}function Ho(t){let e,n,r=!t[12]&&!t[13]&&Ro(t);return{c(){r&&r.c(),e=Je()},l(t){r&&r.l(t),e=Je()},m(t,o){r&&r.m(t,o),ze(t,e,o),n=!0},p(t,n){t[12]||t[13]?r&&(Jn(),Kn(r,1,1,(()=>{r=null})),qn()):r?(r.p(t,n),12288&n[0]&&Gn(r,1)):(r=Ro(t),r.c(),Gn(r,1),r.m(e.parentNode,e))},i(t){n||(Gn(r),n=!0)},o(t){Kn(r),n=!1},d(t){t&&Re(e),r&&r.d(t)}}}const Wo={left:"start",center:"center",right:"end",start:"start",end:"end"},Jo={left:"end",center:"center",right:"start",start:"start",end:"end"},qo={top:"start",center:"center",bottom:"end",baseline:"baseline"};function Go(t){return t.some((t=>"native"===t.name))}function Ko(t,e,n){let r,o,i,a,s,l,c,u,d,p,h,f,g,m,v,y,$,b,_,w,x,E,C,A,j,V,D,F,P,S,I,N,O,M,T,z,R,B,L,U,H,W,J,q,G,K=oe,Y=oe,Z=oe,X=oe,Q=oe,tt=oe,et=oe,nt=oe,rt=oe,ot=oe,it=oe,at=oe,st=oe,lt=oe,ct=oe,dt=oe,pt=oe,ht=oe;t.$$.on_destroy.push((()=>K())),t.$$.on_destroy.push((()=>Y())),t.$$.on_destroy.push((()=>Z())),t.$$.on_destroy.push((()=>X())),t.$$.on_destroy.push((()=>Q())),t.$$.on_destroy.push((()=>tt())),t.$$.on_destroy.push((()=>et())),t.$$.on_destroy.push((()=>nt())),t.$$.on_destroy.push((()=>rt())),t.$$.on_destroy.push((()=>ot())),t.$$.on_destroy.push((()=>it())),t.$$.on_destroy.push((()=>at())),t.$$.on_destroy.push((()=>st())),t.$$.on_destroy.push((()=>lt())),t.$$.on_destroy.push((()=>ct())),t.$$.on_destroy.push((()=>dt())),t.$$.on_destroy.push((()=>pt())),t.$$.on_destroy.push((()=>ht()));let{$$slots:ft={},$$scope:gt}=e,{componentContext:mt}=e,{cls:vt=""}=e,{style:yt}=e,{layoutParams:$t={}}=e,{customDescription:bt=!1}=e,{customPaddings:_t=!1}=e,{customActions:wt=""}=e,{additionalPaddings:xt=null}=e,{heightByAspect:kt=!1}=e,{parentOf:Et}=e,{parentOfSimpleMode:Ct}=e,{replaceItems:At}=e,{hasInnerFocusable:jt=!1}=e;const Vt=Cn(Or),Dt=Cn(no),Ft=Vt.isPointerFocus;ge(t,Ft,(t=>n(127,V=t)));const Pt=Vt.direction;let St,It;ge(t,Pt,(t=>n(9,W=t)));let Nt,Ot,Mt,Tt,zt,Rt,Bt,Lt,Ut,Ht,Wt,Jt,qt,Gt,Kt,Yt,Zt,Xt,Qt,te,ee=null,ne=[],re={},ie={},ae=!1,se=1,le="transparent",ce=0,ue={"top-left":0,"top-right":0,"bottom-right":0,"bottom-left":0},de="",pe=null,he="",me={},ve=0,ye=0,$e=0,be=!1,_e=!1,we={},xe=0,ke=0,Ee=0,Ce=!1,Ae=!1,je=1,Ve=[],De=!1,Fe=!1,Pe=[],Se=[],Ie=[],Ne=[],Oe=[],Me=[],Te="",ze=!1,Re="visible",Be=0,Le=0,Ue=!1,He=null;function We(t,e){if(!Array.isArray(Et)||!At)return;if(Ct&&1!==(Array.isArray(e)&&e.length||0))return;const r=Et.findIndex((e=>(null==e?void 0:e.id)===t)),o=Et.slice();o.splice(r,1,...e||[]),n(42,Et=o),At(o)}function Je(t){const e=ho(t.start_value,1),r=ho(t.end_value,1),o=so(t.start_delay,0),i=$o()?0:so(t.duration,300),a=po(t.interpolator,"ease_in_out").replace(/_/g,"-");switch(t.name){case"fade":return n(86,Gt=e),n(87,Kt=r),"opacity ".concat(i,"ms ").concat(a," ").concat(o,"ms");case"scale":return n(88,Yt=e),n(89,Zt=r),"transform ".concat(i,"ms ").concat(a," ").concat(o,"ms");case"native":case"no_animation":return"";default:return mt.logError(ut(new Error("Unknown action_animation name"),{additional:{animation:t.name}})),""}}function qe(){if(ee&&St){const t=Vt.getExtensionContext();ee.forEach((e=>{var n;null===(n=e.unmountView)||void 0===n||n.call(e,St,t)})),ee=null}}return kn((()=>{var t;ne.forEach((t=>{Vt.unregisterParentOf(t)})),n(53,ne=[]),null===(t=mt.json.tooltips)||void 0===t||t.forEach((t=>{Vt.unregisterTooltip(t)})),qe()})),t.$$set=t=>{"componentContext"in t&&n(0,mt=t.componentContext),"cls"in t&&n(1,vt=t.cls),"style"in t&&n(43,yt=t.style),"layoutParams"in t&&n(44,$t=t.layoutParams),"customDescription"in t&&n(45,bt=t.customDescription),"customPaddings"in t&&n(46,_t=t.customPaddings),"customActions"in t&&n(47,wt=t.customActions),"additionalPaddings"in t&&n(48,xt=t.additionalPaddings),"heightByAspect"in t&&n(49,kt=t.heightByAspect),"parentOf"in t&&n(42,Et=t.parentOf),"parentOfSimpleMode"in t&&n(50,Ct=t.parentOfSimpleMode),"replaceItems"in t&&n(51,At=t.replaceItems),"hasInnerFocusable"in t&&n(2,jt=t.hasInnerFocusable),"$$scope"in t&&n(121,gt=t.$$scope)},t.$$.update=()=>{if(1&t.$$.dirty[0]|8192&t.$$.dirty[1]|262144&t.$$.dirty[2]&&mt.json&&$t&&(n(59,pe=null),n(60,he=""),n(77,je=1),n(90,ze=!1),n(91,Re="visible"),n(92,Be=0),n(93,Le=0),n(94,Xt=void 0),n(95,Qt=void 0),n(80,Ve=mt.fakeElement?[]:mt.json.transition_triggers||["state_change","visibility_change"]),n(81,De=Boolean(-1!==Ve.indexOf("state_change")&&mt.json.id)),Fe=Boolean(-1!==Ve.indexOf("visibility_change")&&mt.json.id)),1&t.$$.dirty[0]&&(n(36,r=mt.getDerivedFromVars(mt.json.focus)),X(),X=fe(r,(t=>n(105,S=t)))),1&t.$$.dirty[0]&&(n(35,o=mt.getDerivedFromVars(mt.json.border)),ht(),ht=fe(o,(t=>n(119,G=t)))),1&t.$$.dirty[0]&&(n(34,i=mt.getDerivedFromVars(mt.json.paddings)),pt(),pt=fe(i,(t=>n(118,q=t)))),1&t.$$.dirty[0]&&(n(33,a=mt.getDerivedFromVars(mt.json.margins)),ct(),ct=fe(a,(t=>n(116,H=t)))),1&t.$$.dirty[0]&&(n(32,s=mt.getDerivedFromVars(mt.json.width)),st(),st=fe(s,(t=>n(114,L=t)))),1&t.$$.dirty[0]&&(n(31,l=mt.getDerivedFromVars(mt.json.alignment_horizontal)),dt(),dt=fe(l,(t=>n(117,J=t)))),1&t.$$.dirty[0]&&(n(30,c=mt.getDerivedFromVars(mt.json.height)),at(),at=fe(c,(t=>n(113,B=t)))),1&t.$$.dirty[0]&&(n(29,u=mt.getDerivedFromVars(mt.json.alignment_vertical)),lt(),lt=fe(u,(t=>n(115,U=t)))),1&t.$$.dirty[0]&&(n(28,d=mt.getDerivedFromVars(mt.json.alpha)),it(),it=fe(d,(t=>n(112,R=t)))),1&t.$$.dirty[0]&&(n(27,p=mt.getDerivedFromVars(mt.json.accessibility)),ot(),ot=fe(p,(t=>n(111,z=t)))),1&t.$$.dirty[0]&&(n(26,h=mt.getDerivedFromVars(mt.json.background)),rt(),rt=fe(h,(t=>n(110,T=t)))),1&t.$$.dirty[0]&&(n(25,f=mt.getDerivedFromVars(mt.json.action)),et(),et=fe(f,(t=>n(108,O=t)))),1&t.$$.dirty[0]&&(n(24,g=mt.getDerivedFromVars(mt.json.actions)),nt(),nt=fe(g,(t=>n(109,M=t)))),1&t.$$.dirty[0]&&(n(23,m=mt.getDerivedFromVars(mt.json.doubletap_actions)),tt(),tt=fe(m,(t=>n(107,N=t)))),1&t.$$.dirty[0]&&(n(22,v=mt.getDerivedFromVars(mt.json.longtap_actions)),Q(),Q=fe(v,(t=>n(106,I=t)))),1&t.$$.dirty[0]&&(n(21,y=mt.getDerivedFromVars(mt.json.action_animation)),Z(),Z=fe(y,(t=>n(104,P=t)))),1&t.$$.dirty[0]&&(n(20,$=mt.getDerivedFromVars(mt.json.visibility)),Y(),Y=fe($,(t=>n(103,F=t)))),1&t.$$.dirty[0]&&(n(19,b=mt.getDerivedFromVars(mt.json.transform)),K(),K=fe(b,(t=>n(102,D=t)))),4720640&t.$$.dirty[1]&&(ne.forEach((t=>{Vt.unregisterParentOf(t)})),n(53,ne=[]),Et&&Et.forEach((t=>{(null==t?void 0:t.id)&&(ne.push(t.id),Vt.registerParentOf(t.id,{replaceWith:We,isSingleMode:Boolean(Ct)}))}))),264&t.$$.dirty[0]|260046848&t.$$.dirty[1]|67112960&t.$$.dirty[3]){const t=Ue&&(null==S?void 0:S.border)?S.border:G;let e={},r={},o=!1,i="";if(t){if(t.has_shadow){const n=t.shadow;e["box-shadow"]=n?function(t){var e,n,r,o,i,a;return Rr((null===(e=t.offset)||void 0===e||null===(n=e.x)||void 0===n?void 0:n.value)||0)+" "+Rr((null===(r=t.offset)||void 0===r||null===(o=r.y)||void 0===o?void 0:o.value)||0)+" "+Rr(null!==(i=t.blur)&&void 0!==i?i:2)+" "+k(t.color||"#000000",null!==(a=t.alpha)&&void 0!==a?a:.19)}(n):"0 1px 2px 0 rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.07)"}if(t.stroke&&(o=!0,n(55,se=so(t.stroke.width,se)),n(56,le=k(t.stroke.color,1,le)),r.border="".concat(Rr(se)," solid ").concat(le)),t.corners_radius?(n(58,ue=function(t,e){const n=[t["top-left"],t["top-right"],t["bottom-right"],t["bottom-left"]];for(let t=0;t<n.length;++t)if(n[t]&&!io(n[t]))return e;return t}(t.corners_radius,ue)),r["border-radius"]=e["border-radius"]=mo(ue)):t.corner_radius&&(n(57,ce=so(t.corner_radius,ce)),n(58,ue={"top-left":ce,"top-right":ce,"bottom-right":ce,"bottom-left":ce}),r["border-radius"]=e["border-radius"]=Rr(ce)),o&&se&&(t.corners_radius||t.corner_radius)){let t=Object.assign({},ue);["top-left","top-right","bottom-right","bottom-left"].forEach((e=>{t[e]=(t[e]||0)+se/2})),i=mo(t)}}n(54,re=uo(e,re)),n(3,ie=uo(r,ie)),n(11,ae=o),n(4,de=i)}if(268468224&t.$$.dirty[1]|33554432&t.$$.dirty[3]&&n(59,pe=go(q&&!_t?q:void 0,pe)),512&t.$$.dirty[0]|268566528&t.$$.dirty[1]&&n(98,_=ro(function(t,e){if(!t&&!e)return{};if(!e)return t;if(!t)return e;const n={};return["top","right","bottom","left","start","end"].forEach((r=>{const o=t[r];o&&(n[r]=o);const i=e[r];i&&(n[r]=(n[r]||0)+i)})),n}(pe,xt),W)),512&t.$$.dirty[0]|536870912&t.$$.dirty[1]|8388608&t.$$.dirty[3]&&n(60,he=ao(H,W,he)),513&t.$$.dirty[0]|1073750016&t.$$.dirty[1]|8&t.$$.dirty[2]|27262976&t.$$.dirty[3]){let t,e,r,o,i={},a=0,s=0,l=!1,c=!1;const u=null==L?void 0:L.type;if("fixed"===u)n(65,ve=so(null==L?void 0:L.value,ve)),e=Rr(ve);else if("wrap_content"===u||("match_parent"===u||!u)&&$t.parentHorizontalWrapContent){if(t="content",("wrap_content"===u&&(null==L?void 0:L.constrained)||("match_parent"===u||!u)&&$t.parentHorizontalWrapContent)&&(i["width-constrained"]=!0,"horizontal"===$t.parentContainerOrientation&&(s=1)),"wrap_content"===u){const t=L;t.min_size&&io(t.min_size.value)&&(r=Rr(t.min_size.value)),t.max_size&&io(t.max_size.value)&&(o=Rr(t.max_size.value))}"match_parent"!==u&&u||mt.logError(ut(new Error("Cannot place child with match_parent size inside wrap_content"),{level:"warn"}))}else t="parent","vertical"===$t.parentContainerOrientation&&$t.parentContainerWrap&&(c=!0,mt.logError(ut(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),"vertical"===$t.parentLayoutOrientation?e="calc(100% - ".concat(Br(((null==H?void 0:H.left)||0)+((null==H?void 0:H.right)||0)),")"):"horizontal"===$t.parentContainerOrientation&&(a=L&&"weight"in L&&L.weight||1,$t.parentContainerWrap&&(l=!0));if("parent"===t)i["halign-self"]="stretch";else{const t=J;i["halign-self"]="left"===t||"center"===t||"right"===t||"start"===t||"end"===t?("ltr"===W?Wo:Jo)[t]:$t.parentHAlign||"start"}t&&(i.width=t),n(62,Nt=e),n(63,Ot=r),n(64,Mt=o),n(66,ye=a),n(67,$e=s),n(61,me=uo(i,me)),n(68,be=l),n(12,_e=c)}if(1&t.$$.dirty[0]|270336&t.$$.dirty[1]|2176&t.$$.dirty[2]|13631488&t.$$.dirty[3]){let t,e,r,o,i={},a=0,s=0,l=!1,c=!1;const u=null==B?void 0:B.type;if(kt);else if("fixed"===u)n(73,xe=so(null==B?void 0:B.value,xe)),e=Rr(xe);else if("match_parent"!==u||$t.parentVerticalWrapContent){if(t="content",("wrap_content"===u&&(null==B?void 0:B.constrained)||"match_parent"===u&&$t.parentVerticalWrapContent)&&(i["height-constrained"]=!0,"vertical"===$t.parentContainerOrientation&&(s=1)),"wrap_content"===u){const t=B;(null==t?void 0:t.min_size)&&io(t.min_size.value)&&(r=Rr(t.min_size.value)),(null==t?void 0:t.max_size)&&io(t.max_size.value)&&(o=Rr(t.max_size.value))}"match_parent"===u&&mt.logError(ut(new Error("Cannot place child with match_parent size inside wrap_content"),{level:"warn"}))}else t="parent","horizontal"===$t.parentContainerOrientation&&$t.parentContainerWrap&&(c=!0,mt.logError(ut(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),"horizontal"===$t.parentLayoutOrientation?e="calc(100% - ".concat(Br(((null==H?void 0:H.top)||0)+((null==H?void 0:H.bottom)||0)),")"):"vertical"===$t.parentContainerOrientation&&(a=(null==B?void 0:B.weight)||1,$t.parentContainerWrap&&(l=!0));if("parent"===t)i["valign-self"]="stretch";else{const t=U;"top"===t||"center"===t||"bottom"===t||"baseline"===t&&"horizontal"===$t.parentContainerOrientation?i["valign-self"]=qo[t]:i["valign-self"]=$t.parentVAlign||"start"}t&&(i.height=t),n(70,Tt=e),n(71,zt=r),n(72,Rt=o),n(74,ke=a),n(75,Ee=s),n(69,we=uo(i,we)),n(76,Ce=l),n(13,Ae=c)}var e,V;if(8192&t.$$.dirty[1]&&n(101,w=!!$t.overlapParent||void 0),8192&t.$$.dirty[1]|3145728&t.$$.dirty[3]&&n(100,x=$t.overlapParent&&(!L||"match_parent"===L.type)&&!$t.parentHorizontalWrapContent&&"match_parent"===(null==B?void 0:B.type)&&!$t.parentVerticalWrapContent),8192&t.$$.dirty[1]&&n(99,E=$t.gridArea?"".concat($t.gridArea.y+1,"/").concat($t.gridArea.x+1,"/span ").concat($t.gridArea.rowSpan,"/span ").concat($t.gridArea.colSpan):void 0),32768&t.$$.dirty[2]|524288&t.$$.dirty[3]&&(n(77,(V=je,je=!io(e=R)||void 0===e||e>1?V:Number(e))),n(78,Bt=1===je?void 0:je)),16384&t.$$.dirty[1]|262144&t.$$.dirty[3]&&(n(10,It=void 0),z&&!bt&&z.description&&(n(10,It={}),n(10,It["aria-label"]=z.description,It))),368&t.$$.dirty[0]|135168&t.$$.dirty[3]&&(n(5,Lt=Ue&&(null==S?void 0:S.background)?S.background:T),n(79,Ut={}),n(6,Ht=!1),Array.isArray(Lt)&&(n(6,Ht=Lt.some((t=>"image"===t.type||"nine_patch_image"===t.type))||Boolean(de)),!Ht))){const t=Hr(Lt);n(79,Ut["background-color"]=t.color,Ut),n(79,Ut["background-image"]=t.image,Ut),n(79,Ut["background-size"]=t.size,Ut),n(79,Ut["background-position"]=t.position,Ut),n(79,Ut["background-repeat"]="no-repeat",Ut)}if(1&t.$$.dirty[0]|524288&t.$$.dirty[2]&&(n(82,Wt=void 0),De&&mt.json.transition_in&&Vt.isRunning("stateChange")&&n(82,Wt=!0)),1&t.$$.dirty[0]|524288&t.$$.dirty[2]&&(n(84,qt=void 0),De&&mt.json.transition_change&&Vt.isRunning("stateChange")&&Dt.hasTransitionChange(mt.json.id)&&n(84,qt=!0)),1&t.$$.dirty[0]|65536&t.$$.dirty[1]|126976&t.$$.dirty[3]){let t=M||O&&[O]||[],e=N||[],r=I||[],o=(null==S?void 0:S.on_focus)||[],i=(null==S?void 0:S.on_blur)||[];mt.fakeElement?(t=[],e=[],r=[],o=[],i=[]):(Array.isArray(t)||(t=[],mt.logError(ut(new Error("Actions should be array")))),Array.isArray(e)||(e=[],mt.logError(ut(new Error("DoubleTapActions should be array")))),Array.isArray(r)||(r=[],mt.logError(ut(new Error("LongTapActions should be array")))),Array.isArray(o)||(o=[],mt.logError(ut(new Error("FocusActions should be array")))),Array.isArray(i)||(i=[],mt.logError(ut(new Error("BlurActions should be array"))))),(t.length||e.length||r.length)&&wt&&(t=[],e=[],r=[],mt.logError(ut(new Error('Cannot use action on component "'.concat(wt,'"'))))),n(14,Pe=t.filter(vo)),n(15,Se=e.filter(vo)),n(16,Ie=r.filter(vo)),Ne=o.filter(vo),Oe=i.filter(vo)}if(128&t.$$.dirty[0]|2048&t.$$.dirty[3]&&P&&(n(7,Me=fo(P)),n(85,Te=Me.map(Je).filter(Boolean).join(", "))),805306368&t.$$.dirty[2]|1024&t.$$.dirty[3]){const t=Re,e=function(t,e){return"visible"===t||"invisible"===t||"gone"===t?t:e}(F,Re);t!==e&&(!ze||"visible"!==Re&&"visible"!==e?n(91,Re=e):async function(t){n(91,Re=t);const e="visible"===t?"in":"out",r="in"===e?mt.json.transition_in:mt.json.transition_out;Fe&&r&&(await Nn(),"in"===e&&n(83,Jt=!0),Dt.runVisibilityTransition(Object.assign(Object.assign({},mt.json),{visibility:"visible"}),mt,r,St,e).then((()=>{"in"===e&&n(83,Jt=!1)})).catch((t=>{throw"in"===e&&n(83,Jt=!1),t})))}(e)),ze||n(90,ze=!0)}if(1&t.$$.dirty[0]|2097152&t.$$.dirty[1]|8&t.$$.dirty[3]&&mt.json&&St&&!co(mt.json.extensions,te)){let t=n(96,te=mt.json.extensions);Nn().then((()=>{if(t===te&&St&&(qe(),Array.isArray(mt.json.extensions))){const t=Vt.getExtensionContext();ee=mt.json.extensions.map((e=>{var n;const r=e.id;if(!r)return;const o=Vt.getExtension(r,e.params);return o&&(null===(n=o.mountView)||void 0===n||n.call(o,St,t)),o})).filter(Ur)}}))}if(1&t.$$.dirty[0]&&mt&&He&&He.update(mt),257&t.$$.dirty[0]|1073750016&t.$$.dirty[1]|552599680&t.$$.dirty[2]|384&t.$$.dirty[3]&&n(18,C=Object.assign(Object.assign(Object.assign({},me),we),{"parent-overlap":w,"parent-overlap-absolute":x,"scroll-snap":$t.scrollSnap,"hide-on-transition-in":Wt||Jt||qt,visibility:Re,"has-action-animation":Boolean(Te),"parent-flex":$t.parentContainerOrientation||void 0,"parent-grid":Boolean($t.gridArea)||void 0,"has-custom-focus":Boolean(Ue&&mt.json.focus)})),1073741824&t.$$.dirty[2]|513&t.$$.dirty[3]&&D&&void 0!==D.rotation){const t=D.pivot_x||{type:"pivot-percentage",value:50};n(92,Be=ho(t.value,Be));const e="pivot-fixed"===t.type?Rr(Be):"".concat(Be,"%"),r=D.pivot_y||{type:"pivot-percentage",value:50};n(93,Le=ho(r.value,Le));const o="pivot-fixed"===r.type?Rr(Le):"".concat(Le,"%");n(94,Xt="".concat(e," ").concat(o)),n(95,Qt="rotate(".concat(D.rotation,"deg)"))}20560&t.$$.dirty[2]&&n(97,A=be||Ce?"100%":ye||ke?0:void 0),545263616&t.$$.dirty[1]|260257591&t.$$.dirty[2]|118&t.$$.dirty[3]&&n(17,j=Object.assign(Object.assign(Object.assign(Object.assign({},yt),Ut),re),{width:Nt,"min-width":Ot,"max-width":Mt,height:Tt,"min-height":zt,"max-height":Rt||(null==yt?void 0:yt["max-height"]),"grid-area":E,padding:_,margin:he,opacity:Bt,transition:Te,"transform-origin":Xt,transform:Qt,"flex-grow":ye||ke||void 0,"flex-shrink":$e||Ee?1:void 0,"flex-basis":A,"--divkit-animation-opacity-start":Gt,"--divkit-animation-opacity-end":Kt,"--divkit-animation-scale-start":Yt,"--divkit-animation-scale-end":Zt}))},[mt,vt,jt,ie,de,Lt,Ht,Me,Ue,W,It,ae,_e,Ae,Pe,Se,Ie,j,C,b,$,y,v,m,g,f,h,p,d,u,c,l,s,a,i,o,r,Ft,Pt,function(t){var e;n(52,St=t),De&&mt.json.transition_in&&Dt.registerChildWithTransitionIn(mt.json,mt,mt.json.transition_in,t).then((()=>{n(82,Wt=!1)})).catch((t=>{throw n(82,Wt=!1),t})),De&&mt.json.transition_out&&Dt.registerChildWithTransitionOut(mt.json,mt,mt.json.transition_out,t),De&&mt.json.transition_change&&Dt.registerChildWithTransitionChange(mt.json,mt,mt.json.transition_change,t).then((()=>{n(84,qt=!1)})).catch((t=>{throw n(84,qt=!1),t}));const r=mt.fakeElement?[]:mt.json.visibility_actions||mt.json.visibility_action&&[mt.json.visibility_action],o=mt.fakeElement?[]:mt.json.disappear_actions;let i;(Array.isArray(r)&&r.length||Array.isArray(o)&&o.length)&&(i=function(t,e){let{visibilityActions:n,disappearActions:r,rootCtx:o,componentContext:i}=e;const a=[];n&&n.forEach((t=>{a.push({type:"visibility",index:a.length,action:t,visible:!1,count:0,finished:!1})})),r&&r.forEach((t=>{a.push({type:"disappear",index:a.length,action:t,visible:!1,count:0,finished:!1})}));const s=a.map(((t,e)=>{const n="visibility"===t.type;return i.getDerivedFromVars({index:e,visibility_percentage:t.action.visibility_percentage,visibility_duration:n?t.action.visibility_duration:t.action.disappear_duration,log_limit:t.action.log_limit,is_enabled:t.action.is_enabled})}));let l;const c=()=>{l&&l.disconnect(),a.forEach((t=>{t.timer&&clearTimeout(t.timer)}))},u=gr(s,(t=>t)).subscribe((e=>{const n=e.filter(Xr),r={};n.forEach((t=>{r[t.index]=t})),c();const s=[...new Set(n.map((t=>{const e="visibility"===a[t.index].type;return Zr(e,t.visibility_percentage,e?50:0)/100})))];s.length&&(l=new IntersectionObserver((t=>{t.forEach((t=>{n.forEach((e=>{const n=a[e.index],r="visibility"===n.type,s=Zr(r,e.visibility_percentage,r?50:0);let l;l=0===s?t.intersectionRatio>=1e-12:t.intersectionRatio>=s/100;const c=r?!n.visible&&l:n.visible&&!l,u=r?!l:l;c?n.finished||(n.timer=setTimeout((()=>{++n.count;const t=0===e.log_limit?1/0:e.log_limit||1;++n.count>=t&&(n.finished=!0);const a=i.getJsonWithVars(n.action),s=a.url,l=a.typed;if(s){const t=Kr(s);t&&!Yr(t,o.getBuiltinProtocols())&&("div-action"===t?o.execAction(a):a.log_id&&o.execCustomAction(a))}else l&&o.execAction(a);o.logStat(r?"visible":"disappear",a)}),e.visibility_duration||800)):u&&n.timer&&clearTimeout(n.timer),n.visible=l}))}))}),{threshold:s}),l.observe(t))}));return{destroy(){c(),u()}}}(t,{visibilityActions:r,disappearActions:o,rootCtx:Vt,componentContext:mt}));const a=mt.json.id;return a&&Dt.registerChild(a),null===(e=mt.json.tooltips)||void 0===e||e.forEach((e=>{Vt.registerTooltip(t,e)})),eo&&!mt.fakeElement&&(He=eo(t,Vt,mt)),{destroy(){a&&Dt.unregisterChild(a),i&&i.destroy(),He&&He.destroy()}}},function(){mt.json.focus&&(V||n(8,Ue=!0),mt.execAnyActions(Ne))},function(){mt.json.focus&&(n(8,Ue=!1),mt.execAnyActions(Oe))},Et,yt,$t,bt,_t,wt,xt,kt,Ct,At,St,ne,re,se,le,ce,ue,pe,he,me,Nt,Ot,Mt,ve,ye,$e,be,we,Tt,zt,Rt,xe,ke,Ee,Ce,je,Bt,Ut,Ve,De,Wt,Jt,qt,Te,Gt,Kt,Yt,Zt,ze,Re,Be,Le,Xt,Qt,te,A,_,E,x,w,D,F,P,S,I,N,O,M,T,z,R,B,L,U,H,J,q,G,ft,gt]}const Yo=class extends pr{constructor(t){super(),ur(this,t,Ko,Ho,he,{componentContext:0,cls:1,style:43,layoutParams:44,customDescription:45,customPaddings:46,customActions:47,additionalPaddings:48,heightByAspect:49,parentOf:42,parentOfSimpleMode:50,replaceItems:51,hasInnerFocusable:2},null,[-1,-1,-1,-1,-1])}},Zo={"text-range":"divkit-faf07","text-range_singleline":"divkit-ccb64","text-range__top-offset":"divkit-d9237","text-range_decoration_both":"divkit-d7e07","text-range_decoration_underline":"divkit-f3dde","text-range_decoration_strike":"divkit-d27b7","text-range_decoration_none":"divkit-c6b0f"};function Xo(t,e){const n=Number(t);return isNaN(n)||n<=0?e:n}function Qo(t){if("light"===t||"medium"===t||"bold"===t||"regular"===t)return"medium"===t?500:"bold"===t?700:"light"===t?300:400}function ti(t,e){return Qo(t)||e}function ei(t){let e,n;return{c(){e=Le("span"),this.h()},l(t){e=rn(t,"SPAN",{class:!0}),Qe(e).forEach(Re),this.h()},h(){Ge(e,"class",n=Zo["text-range__top-offset"]),dn(e,"margin-top",t[5])},m(t,n){ze(t,e,n)},p(t,n){32&n&&dn(e,"margin-top",t[5])},d(t){t&&Re(e)}}}function ni(t){let e;return{c(){e=He(t[1])},l(n){e=an(n,t[1])},m(t,n){ze(t,e,n)},p(t,n){2&n&&cn(e,t[1])},d(t){t&&Re(e)}}}function ri(t){let e,n,r,o=t[5]&&ei(t);return n=new Ao({props:{componentContext:t[0],cls:to("text-range",Zo,t[4]),actions:t[2],style:zr(t[3]),$$slots:{default:[ni]},$$scope:{ctx:t}}}),{c(){o&&o.c(),e=Je(),ar(n.$$.fragment)},l(t){o&&o.l(t),e=Je(),sr(n.$$.fragment,t)},m(t,i){o&&o.m(t,i),ze(t,e,i),lr(n,t,i),r=!0},p(t,r){let[i]=r;t[5]?o?o.p(t,i):(o=ei(t),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null);const a={};1&i&&(a.componentContext=t[0]),16&i&&(a.cls=to("text-range",Zo,t[4])),4&i&&(a.actions=t[2]),8&i&&(a.style=zr(t[3])),8388610&i&&(a.$$scope={dirty:i,ctx:t}),n.$set(a)},i(t){r||(Gn(n.$$.fragment,t),r=!0)},o(t){Kn(n.$$.fragment,t),r=!1},d(t){t&&Re(e),o&&o.d(t),cr(n,t)}}}function oi(t,e,n){let r,o,i,a,s,l;var c,u;let{componentContext:d}=e,{text:p}=e,{rootFontSize:h}=e,{textStyles:f={}}=e,{singleline:g=!1}=e,{actions:m}=e;const v=Cn(Or);let y,$="none",b=12,_=1.25,w="",x="",E="",C=null;return t.$$set=t=>{"componentContext"in t&&n(0,d=t.componentContext),"text"in t&&n(1,p=t.text),"rootFontSize"in t&&n(6,h=t.rootFontSize),"textStyles"in t&&n(7,f=t.textStyles),"singleline"in t&&n(8,g=t.singleline),"actions"in t&&n(2,m=t.actions)},t.$$.update=()=>{if(1&t.$$.dirty&&d.json&&(n(11,$="none"),n(12,b=12),n(13,_=1.25),n(14,w=""),n(15,y=void 0),n(16,x=""),n(17,E=""),n(18,C=null)),128&t.$$.dirty){let t="none";(f.underline||f.strike)&&("single"===f.underline&&"single"===f.strike?t="both":"single"===f.underline?t="underline":"single"===f.strike&&(t="strike")),n(11,$=t)}4224&t.$$.dirty&&n(12,b=Xo(f.font_size,b)),4224&t.$$.dirty&&Vo(f.line_height)&&n(13,_=Number(f.line_height)/b),128&t.$$.dirty&&io(f.letter_spacing)&&n(14,w=Rr(f.letter_spacing)),32896&t.$$.dirty&&(n(15,y=ti(f.font_weight,y)),"string"==typeof f.font_family&&f.font_family?n(16,x=v.typefaceProvider(f.font_family,{fontWeight:y||400})):n(16,x="")),131200&t.$$.dirty&&n(17,E=k(f.text_color,1,E)),128&t.$$.dirty&&n(5,r=f.top_offset?Rr(f.top_offset):""),128&t.$$.dirty&&n(20,o=f.background?Hr([f.background]):null),640&t.$$.dirty&&((null===n(9,c=f.border)||void 0===c?void 0:c.stroke)&&f.border.stroke.color&&"transparent"!==k(f.border.stroke.color)&&Vo(f.border.stroke.width)?n(18,C={color:f.border.stroke.color,width:f.border.stroke.width}):n(18,C=null)),1152&t.$$.dirty&&n(19,i=Xo(null===n(10,u=f.border)||void 0===u?void 0:u.corner_radius,0)),4224&t.$$.dirty&&n(21,a=f.text_shadow?function(t,e){var n,r,o,i,a,s;return"drop-shadow("+k(t.color||"#000000",null!==(n=t.alpha)&&void 0!==n?n:.19)+" "+Rr(10*((null===(r=t.offset)||void 0===r||null===(o=r.x)||void 0===o?void 0:o.value)||0)/e)+" "+Rr(10*((null===(i=t.offset)||void 0===i||null===(a=i.y)||void 0===a?void 0:a.value)||0)/e)+" "+Rr(10*(null!==(s=t.blur)&&void 0!==s?s:2)/e)+")"}(f.text_shadow,b):void 0),2304&t.$$.dirty&&n(4,s={singleline:g,decoration:$}),4190272&t.$$.dirty&&n(3,l={"font-size":Rr(10*b/h),"line-height":_,"letter-spacing":w,"font-weight":y,"font-family":x,filter:a,color:E,background:(null==o?void 0:o.color)||void 0,"box-shadow":C?"inset 0 0 0 ".concat(Rr(C.width)," ").concat(C.color):void 0,"border-radius":i?Rr(i):void 0})},[d,p,m,l,s,r,h,f,g,c,u,$,b,_,w,y,x,E,C,i,o,a]}const ii=class extends pr{constructor(t){super(),ur(this,t,oi,ri,he,{componentContext:0,text:1,rootFontSize:6,textStyles:7,singleline:8,actions:2})}};function ai(t,e,n){return"left"===t||"center"===t||"right"===t||"start"===t||"end"===t?"left"===t?"ltr"===e?"start":"end":"right"===t?"ltr"===e?"end":"start":t:n}function si(t,e){return"top"===t||"center"===t||"bottom"===t||"baseline"===t?"top"===t?"start":"bottom"===t?"end":t:e}function li(t,e){return 1===t||0===t||!1===t||!0===t?Boolean(t):e}function ci(t,e){return"source_in"===t||"source_atop"===t||"darken"===t||"lighten"===t||"multiply"===t||"screen"===t?t:e}function ui(t,e){let n;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];null!==n&&clearTimeout(n),n=setTimeout((()=>{t.apply(this,o),n=null}),e)}}function di(t,e){let n=null;const r=()=>{t.style.webkitLineClamp="",t.style.maxHeight="";const e=t.offsetHeight,n=t.scrollHeight,r=parseFloat(getComputedStyle(t).lineHeight);if(n<=e+1e-9)return;const o=Math.max(1,Math.floor(e/r));t.style.webkitLineClamp=String(o),t.style.maxHeight=r*o+"px"},o=ui(r,50),i=()=>{n&&(n.disconnect(),n=null)},a=()=>{if(i(),e.enabled){if(r(),"undefined"!=typeof ResizeObserver){n=new ResizeObserver(o);const e=t.parentElement;e&&n.observe(e)}}else t.style.webkitLineClamp=String(e.lineClamp||"")};return a(),{update(t){e=t,a()},destroy(){i()}}}const{Boolean:pi}=Ve;function hi(t,e,n){const r=t.slice();return r[59]=e[n],r}function fi(t){let e,n;return e=new ii({props:{componentContext:t[0],text:t[2],rootFontSize:t[3],textStyles:t[28],singleline:t[6]}}),{c(){ar(e.$$.fragment)},l(t){sr(e.$$.fragment,t)},m(t,r){lr(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.componentContext=t[0]),4&n[0]&&(r.text=t[2]),8&n[0]&&(r.rootFontSize=t[3]),268435456&n[0]&&(r.textStyles=t[28]),64&n[0]&&(r.singleline=t[6]),e.$set(r)},i(t){n||(Gn(e.$$.fragment,t),n=!0)},o(t){Kn(e.$$.fragment,t),n=!1},d(t){cr(e,t)}}}function gi(t){let e,n,r=Xn(t[9]),o=[];for(let e=0;e<r.length;e+=1)o[e]=$i(hi(t,r,e));const i=t=>Kn(o[t],1,1,(()=>{o[t]=null}));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=Je()},l(t){for(let e=0;e<o.length;e+=1)o[e].l(t);e=Je()},m(t,r){for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,r);ze(t,e,r),n=!0},p(t,n){if(1073742665&n[0]){let a;for(r=Xn(t[9]),a=0;a<r.length;a+=1){const i=hi(t,r,a);o[a]?(o[a].p(i,n),Gn(o[a],1)):(o[a]=$i(i),o[a].c(),Gn(o[a],1),o[a].m(e.parentNode,e))}for(Jn(),a=r.length;a<o.length;a+=1)i(a);qn()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Gn(o[t]);n=!0}},o(t){o=o.filter(pi);for(let t=0;t<o.length;t+=1)Kn(o[t]);n=!1},d(t){t&&Re(e),Be(o,t)}}}function mi(t){let e,n,r,o,i,a,s,l;return{c(){e=Le("span"),n=Le("img"),this.h()},l(t){e=rn(t,"SPAN",{style:!0});var r=Qe(e);n=rn(r,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,"aria-hidden":!0,alt:!0,style:!0}),r.forEach(Re),this.h()},h(){Ge(n,"class",r=Mr.text__image),pe(n.src,o=t[59].image.url)||Ge(n,"src",o),Ge(n,"loading","lazy"),Ge(n,"decoding","async"),Ge(n,"aria-hidden","true"),Ge(n,"alt",""),Ge(n,"style",i=zr({width:t[59].image.width,height:t[59].image.height,"margin-top":t[8]?"-".concat(t[59].image.height):void 0,"margin-bottom":t[8]?"-".concat(t[59].image.height):void 0,filter:t[59].image.svgFilterId?"url(#".concat(t[59].image.svgFilterId,")"):void 0})),Ge(e,"style",a=zr(t[59].image.wrapperStyle))},m(r,o){ze(r,e,o),Me(e,n),s||(l=qe(n,"error",t[30]),s=!0)},p(t,r){512&r[0]&&!pe(n.src,o=t[59].image.url)&&Ge(n,"src",o),768&r[0]&&i!==(i=zr({width:t[59].image.width,height:t[59].image.height,"margin-top":t[8]?"-".concat(t[59].image.height):void 0,"margin-bottom":t[8]?"-".concat(t[59].image.height):void 0,filter:t[59].image.svgFilterId?"url(#".concat(t[59].image.svgFilterId,")"):void 0}))&&Ge(n,"style",i),512&r[0]&&a!==(a=zr(t[59].image.wrapperStyle))&&Ge(e,"style",a)},i:oe,o:oe,d(t){t&&Re(e),s=!1,l()}}}function vi(t){let e,n,r=t[59].text&&yi(t);return{c(){r&&r.c(),e=Je()},l(t){r&&r.l(t),e=Je()},m(t,o){r&&r.m(t,o),ze(t,e,o),n=!0},p(t,n){t[59].text?r?(r.p(t,n),512&n[0]&&Gn(r,1)):(r=yi(t),r.c(),Gn(r,1),r.m(e.parentNode,e)):r&&(Jn(),Kn(r,1,1,(()=>{r=null})),qn())},i(t){n||(Gn(r),n=!0)},o(t){Kn(r),n=!1},d(t){t&&Re(e),r&&r.d(t)}}}function yi(t){let e,n;return e=new ii({props:{componentContext:t[0],text:t[59].text,rootFontSize:t[3],textStyles:t[59].textStyles,singleline:t[6],actions:t[59].actions}}),{c(){ar(e.$$.fragment)},l(t){sr(e.$$.fragment,t)},m(t,r){lr(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.componentContext=t[0]),512&n[0]&&(r.text=t[59].text),8&n[0]&&(r.rootFontSize=t[3]),512&n[0]&&(r.textStyles=t[59].textStyles),64&n[0]&&(r.singleline=t[6]),512&n[0]&&(r.actions=t[59].actions),e.$set(r)},i(t){n||(Gn(e.$$.fragment,t),n=!0)},o(t){Kn(e.$$.fragment,t),n=!1},d(t){cr(e,t)}}}function $i(t){let e,n,r,o;const i=[vi,mi],a=[];function s(t,e){return"text"in t[59]?0:t[59].image?1:-1}return~(e=s(t))&&(n=a[e]=i[e](t)),{c(){n&&n.c(),r=Je()},l(t){n&&n.l(t),r=Je()},m(t,n){~e&&a[e].m(t,n),ze(t,r,n),o=!0},p(t,o){let l=e;e=s(t),e===l?~e&&a[e].p(t,o):(n&&(Jn(),Kn(a[l],1,1,(()=>{a[l]=null})),qn()),~e?(n=a[e],n?n.p(t,o):(n=a[e]=i[e](t),n.c()),Gn(n,1),n.m(r.parentNode,r)):n=null)},i(t){o||(Gn(n),o=!0)},o(t){Kn(n),o=!1},d(t){t&&Re(r),~e&&a[e].d(t)}}}function bi(t){let e,n,r,o,i,a,s,l,c;const u=[gi,fi],d=[];function p(t,e){return t[9].length?0:1}return n=p(t),r=d[n]=u[n](t),{c(){e=Le("span"),r.c(),this.h()},l(t){e=rn(t,"SPAN",{class:!0,style:!0});var n=Qe(e);r.l(n),n.forEach(Re),this.h()},h(){Ge(e,"class",o=to("text__inner",Mr,t[11])),Ge(e,"style",i=zr(t[10]))},m(r,o){ze(r,e,o),d[n].m(e,null),s=!0,l||(c=we(a=di.call(null,e,{enabled:t[7],lineClamp:"number"==typeof t[4]?t[4]:void 0})),l=!0)},p(t,l){let c=n;n=p(t),n===c?d[n].p(t,l):(Jn(),Kn(d[c],1,1,(()=>{d[c]=null})),qn(),r=d[n],r?r.p(t,l):(r=d[n]=u[n](t),r.c()),Gn(r,1),r.m(e,null)),(!s||2048&l[0]&&o!==(o=to("text__inner",Mr,t[11])))&&Ge(e,"class",o),(!s||1024&l[0]&&i!==(i=zr(t[10])))&&Ge(e,"style",i),a&&ue(a.update)&&144&l[0]&&a.update.call(null,{enabled:t[7],lineClamp:"number"==typeof t[4]?t[4]:void 0})},i(t){s||(Gn(r),s=!0)},o(t){Kn(r),s=!1},d(t){t&&Re(e),d[n].d(),l=!1,c()}}}function _i(t){let e,n;return e=new Yo({props:{cls:to("text",Mr,t[12])+" "+(t[5]?"":Nr.root__unselectable),componentContext:t[0],layoutParams:t[1],$$slots:{default:[bi]},$$scope:{ctx:t}}}),{c(){ar(e.$$.fragment)},l(t){sr(e.$$.fragment,t)},m(t,r){lr(e,t,r),n=!0},p(t,n){const r={};4128&n[0]&&(r.cls=to("text",Mr,t[12])+" "+(t[5]?"":Nr.root__unselectable)),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),268439517&n[0]|1&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Gn(e.$$.fragment,t),n=!0)},o(t){Kn(e.$$.fragment,t),n=!1},d(t){cr(e,t)}}}function wi(t,e,n){let r,o,i,a,s,l,c,u,d,p,h,f,g,m,v,y,$,b,_,w,x,E,C,A,j,V,D,F,P,S,I,N,O,M,T,z,R,B,L=oe,U=oe,H=oe,W=oe,J=oe,q=oe,G=oe,K=oe,Y=oe,Z=oe,X=oe,Q=oe,tt=oe,et=oe,nt=oe;t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>K())),t.$$.on_destroy.push((()=>Y())),t.$$.on_destroy.push((()=>Z())),t.$$.on_destroy.push((()=>X())),t.$$.on_destroy.push((()=>Q())),t.$$.on_destroy.push((()=>tt())),t.$$.on_destroy.push((()=>et())),t.$$.on_destroy.push((()=>nt()));let{componentContext:rt}=e,{layoutParams:ot}=e;const it=Cn(Or),at=it.direction;ge(t,at,(t=>n(51,O=t)));let st="",lt=12,ct=1.25,ut=!1,dt="",pt="",ht=!1,ft="start",gt="start",mt="",vt="",yt="",$t=!1,bt=[],_t=[];return kn((()=>{_t.forEach((t=>{let[e,n]=t;it.removeSvgFilter(e,n)}))})),t.$$set=t=>{"componentContext"in t&&n(0,rt=t.componentContext),"layoutParams"in t&&n(1,ot=t.layoutParams)},t.$$.update=()=>{var e;if(1&t.$$.dirty[0]&&rt.json&&(n(3,lt=12),n(31,ct=1.25),n(8,ut=!1),n(32,dt=""),n(4,pt=""),n(33,ht=!1),n(34,ft="start"),n(35,gt="start"),n(36,mt=""),n(38,yt=""),n(5,$t=!1)),1&t.$$.dirty[0]&&(n(27,r=rt.getDerivedFromVars(rt.json.text)),nt(),nt=fe(r,(t=>n(55,B=t)))),1&t.$$.dirty[0]&&(n(26,o=rt.getDerivedFromVars(rt.json.ranges)),U(),U=fe(o,(t=>n(43,A=t)))),1&t.$$.dirty[0]&&(n(25,i=rt.getDerivedFromVars(rt.json.images)),L(),L=fe(i,(t=>n(42,C=t)))),1&t.$$.dirty[0]&&(n(24,a=rt.getDerivedFromVars({font_size:rt.json.font_size,letter_spacing:rt.json.letter_spacing,font_weight:rt.json.font_weight,font_family:rt.json.font_family,text_color:rt.json.text_color,underline:rt.json.underline,strike:rt.json.strike,line_height:rt.json.line_height,text_shadow:rt.json.text_shadow})),H(),H=fe(a,(t=>n(28,j=t)))),1&t.$$.dirty[0]&&(n(23,s=rt.getDerivedFromVars(rt.json.font_size)),et(),et=fe(s,(t=>n(54,R=t)))),1&t.$$.dirty[0]&&(n(22,l=rt.getDerivedFromVars(rt.json.line_height)),tt(),tt=fe(l,(t=>n(53,z=t)))),1&t.$$.dirty[0]&&(n(21,c=rt.getDerivedFromVars(rt.json.max_lines)),Y(),Y=fe(c,(t=>n(49,I=t)))),1&t.$$.dirty[0]&&(n(20,u=rt.getDerivedFromVars(rt.json.text_alignment_horizontal)),X(),X=fe(u,(t=>n(52,M=t)))),1&t.$$.dirty[0]&&(n(19,d=rt.getDerivedFromVars(rt.json.text_alignment_vertical)),Z(),Z=fe(d,(t=>n(50,N=t)))),1&t.$$.dirty[0]&&(n(18,p=rt.getDerivedFromVars(rt.json.text_color)),K(),K=fe(p,(t=>n(48,S=t)))),1&t.$$.dirty[0]&&(n(17,h=rt.getDerivedFromVars(rt.json.focused_text_color)),G(),G=fe(h,(t=>n(47,P=t)))),1&t.$$.dirty[0]&&(n(16,f=rt.getDerivedFromVars(rt.json.truncate)),q(),q=fe(f,(t=>n(46,F=t)))),1&t.$$.dirty[0]&&(n(15,g=rt.getDerivedFromVars(rt.json.text_gradient)),J(),J=fe(g,(t=>n(45,D=t)))),1&t.$$.dirty[0]&&(n(14,m=rt.getDerivedFromVars(rt.json.selectable)),W(),W=fe(m,(t=>n(44,V=t)))),1&t.$$.dirty[0]&&(n(13,v=rt.getDerivedFromVars(rt.json.auto_ellipsize)),Q(),Q=fe(v,(t=>n(7,T=t)))),16777216&t.$$.dirty[1]&&n(2,(e=B,st=String(null!=e?e:""))),8&t.$$.dirty[0]|8388608&t.$$.dirty[1]&&n(3,lt=Xo(R,lt)),8&t.$$.dirty[0]|4194304&t.$$.dirty[1]){const t=z;Vo(t)?(n(31,ct=Number(t)/lt),n(8,ut=!0)):n(8,ut=!1)}if(262144&t.$$.dirty[1]&&n(6,y=1===I),128&t.$$.dirty[0]|262145&t.$$.dirty[1]){let t="",e="",r=!1;if(I&&I>1){let n=Number(I);t=n*ct+"em",e=n,r=!0}else T&&1!==I&&(r=!0);n(32,dt=t),n(4,pt=e),n(33,ht=r)}if(3145736&t.$$.dirty[1]&&n(34,ft=ai(M,O,ft)),524304&t.$$.dirty[1]&&n(35,gt=si(N,gt)),4&t.$$.dirty[0]|4096&t.$$.dirty[1]&&n(41,$=!A||st&&1===A.length&&A[0]&&0===A[0].start&&"number"==typeof A[0].end&&A[0].end>=st.length),135168&t.$$.dirty[1]&&n(40,b=Boolean(S)!==Boolean(A&&A[0]&&A[0].text_color)),398880&t.$$.dirty[1]){let t="";I&&$&&b&&(t=k(S||A&&A[0]&&A[0].text_color,1,mt)),n(36,mt=t)}if(65600&t.$$.dirty[1]&&n(37,vt=k(P,1,vt)),32768&t.$$.dirty[1]&&n(39,_="none"===F?"none":""),16384&t.$$.dirty[1]){let t="";if(D){const e=Hr([D]);e.image&&(t=e.image)}n(38,yt=t)}32&t.$$.dirty[0]|8192&t.$$.dirty[1]&&n(5,$t=li(V,$t)),4&t.$$.dirty[0]|6144&t.$$.dirty[1]&&function(t,e,r){let o=[];if(_t.forEach((t=>{let[e,n]=t;it.removeSvgFilter(e,n)})),_t=[],!(Array.isArray(e)&&e.length||Array.isArray(r)&&r.length&&t))return void n(9,bt=[]);const i=t;let a=e||[{start:0,end:i.length}],s=r||[],l=0,c=[],u=[];a.forEach((t=>{void 0!==t.start&&void 0!==t.end&&(u.push({index:t.start,range:t,type:"rangeStart",isStart:!0}),u.push({index:t.end,range:t,type:"rangeEnd"}))})),s.forEach(((t,e)=>{void 0!==t.start&&t.url&&t.start<=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,n;let r="image"===t.type?null:t.range,a=t.index;if(a>l){let r=Object.assign(Object.assign({},j),...c);o.push({text:i.substring(l,a),textStyles:r,actions:"rangeEnd"===t.type&&(null===(n=null===(e=t.range)||void 0===e?void 0:e.actions)||void 0===n?void 0:n.filter(vo))||void 0})}if("rangeStart"===t.type&&r)c.push(r);else if("rangeEnd"===t.type)c=c.filter((e=>e!==t.range));else if("image"===t.type){let e=Object.assign(Object.assign({},j),...c),n=Rr(10*(t.image.width&&t.image.width.value||20)/(e.font_size||12)),r=Rr(10*(t.image.height&&t.image.height.value||20)/(e.font_size||12));const i={"font-size":Rr(10*(Number(e.font_size)||12)/lt)};let a="";const s=t.image.tint_color,l=ci(t.image.tint_mode,"source_in");if(s){const e=k(t.image.tint_color);a=it.addSvgFilter(e,l),_t.push([e,l])}o.push({image:{url:t.image.url,width:n,height:r,wrapperStyle:i,svgFilterId:a}})}l=a})),l<i.length&&o.push({text:i.substring(l),textStyles:Object.assign({},j)}),n(9,bt=o)}(st,A,C),64&t.$$.dirty[0]|348&t.$$.dirty[1]&&n(12,w={singleline:y,multiline:ht,halign:ft,valign:gt,truncate:_,"has-focus-color":Boolean(vt)}),128&t.$$.dirty[1]&&n(11,x={gradient:Boolean(yt)}),24&t.$$.dirty[0]|227&t.$$.dirty[1]&&n(10,E={"font-size":Rr(lt),"line-height":ct,"max-height":dt,"-webkit-line-clamp":pt,color:mt,"background-image":yt,"--divkit-text-focus-color":vt})},[rt,ot,st,lt,pt,$t,y,T,ut,bt,E,x,w,v,m,g,f,h,p,d,u,c,l,s,a,i,o,r,j,at,function(t){t.target&&"classList"in t.target&&t.target.classList.add(Mr.text__image_hidden)},ct,dt,ht,ft,gt,mt,vt,yt,_,b,$,C,A,V,D,F,P,S,I,N,O,M,z,R,B]}const xi={container:"divkit-d37d6",container_wrap:"divkit-c8551",container_overflow_visible:"divkit-f315a",container_orientation_vertical:"divkit-ddc33",container_valign_start:"divkit-a31f0",container_valign_center:"divkit-aae61",container_valign_end:"divkit-eac00","container_valign_space-between":"divkit-ce053","container_valign_space-around":"divkit-cf29b","container_valign_space-evenly":"divkit-b4b04",container_halign_start:"divkit-efaf5",container_halign_center:"divkit-bac9d",container_halign_end:"divkit-ca36b","container_halign_space-between":"divkit-e5c38","container_halign_space-around":"divkit-feff2","container_halign_space-evenly":"divkit-e5e05",container_orientation_horizontal:"divkit-fe458",container_orientation_overlap:"divkit-a644d"};function ki(t){return{top:Number(null==t?void 0:t.top)||0,right:Number(null==t?void 0:t.right)||0,bottom:Number(null==t?void 0:t.bottom)||0,left:Number(null==t?void 0:t.left)||0}}function Ei(t,e,n){const r=((null==e?void 0:e.margins.left)||0)+((null==e?void 0:e.margins.right)||0),o=((null==e?void 0:e.margins.top)||0)+((null==e?void 0:e.margins.bottom)||0);null!=e&&e.show_at_start&&(n?t.top=e.style.height+o:t.left=e.style.width+r),null!=e&&e.show_at_end&&(n?t.bottom=e.style.height+o:t.right=e.style.width+r)}function Ci(t,e,n){let r;const o=((null==e?void 0:e.margins.left)||0)+((null==e?void 0:e.margins.right)||0),i=((null==e?void 0:e.margins.top)||0)+((null==e?void 0:e.margins.bottom)||0),a=((null==n?void 0:n.margins.left)||0)+((null==n?void 0:n.margins.right)||0),s=((null==n?void 0:n.margins.top)||0)+((null==n?void 0:n.margins.bottom)||0);return r="horizontal"===t?[null!=n&&n.show_between?n.style.height+s:0,null!=e&&e.show_between?e.style.width+o:0]:[null!=e&&e.show_between?e.style.height+i:0,null!=n&&n.show_between?n.style.width+a:0],r.map(Rr).join(" ")}function Ai(t){var e;const n=null===(e=t.width)||void 0===e?void 0:e.type;return"wrap_content"===n||"fixed"===n}function ji(t){var e;return"match_parent"!==(null===(e=t.height)||void 0===e?void 0:e.type)}function Vi(t,e,n){if(!(t&&t.shape&&t.shape.type&&e.includes(t.shape.type)&&"shape_drawable"===t.type))return n;let r;if("rounded_rectangle"===t.shape.type)r={width:so(null===(i=(o=t.shape).item_width)||void 0===i?void 0:i.value,10),height:so(null===(a=o.item_height)||void 0===a?void 0:a.value,10),radius:so(null===(s=o.corner_radius)||void 0===s?void 0:s.value,5)};else{if("circle"!==t.shape.type)return n;r=function(t){var e;const n=2*so(null===(e=t.radius)||void 0===e?void 0:e.value,10);return{width:n,height:n,radius:n}}(t.shape)}var o,i,a,s;return function(t,e,n){var r;const o={},i=e.stroke||(null==n?void 0:n.stroke),a=null!=i&&i.color?k(i.color):"",s=null!=i&&i.width?Number(null!==(r=i.width)&&void 0!==r?r:1):"";o.width=t.width,o.height=t.height,o.borderRadius=t.radius;const l=e.background_color||(null==n?void 0:n.color);return o.background=k(l),a&&s&&(o.boxShadow="inset 0 0 0 ".concat(Rr(s)," ").concat(a)),o}(r,t.shape,{color:t.color,stroke:t.stroke})}let Di;function Fi(){if("undefined"==typeof document&&(Di=!0),void 0!==Di)return Di;const t=document.createElement("div");return t.style.position="absolute",t.style.display="flex",t.style.flexDirection="column",t.style.gap="1px",t.appendChild(document.createElement("div")),t.appendChild(document.createElement("div")),document.body.appendChild(t),Di=1===t.scrollHeight,document.body.removeChild(t),Di}const Pi={"container-separator":"divkit-a7719","container-separator__item":"divkit-c770e","container-separator__shape":"divkit-f6e9a"},{window:Si}=Ve;function Ii(t,e,n){const r=t.slice();return r[16]=e[n],r}function Ni(t){let e,n,r,o,i,a="".concat(t[16].style.width,"px"),s="".concat(t[16].style.height,"px"),l="".concat(t[16].style.borderRadius,"px"),c="".concat(t[16].left,"px"),u="".concat(t[16].top,"px"),d="".concat(t[16].width,"px"),p="".concat(t[16].height,"px");return{c(){e=Le("div"),n=Le("div"),o=We(),this.h()},l(t){e=rn(t,"DIV",{class:!0});var r=Qe(e);n=rn(r,"DIV",{class:!0}),Qe(n).forEach(Re),o=sn(r),r.forEach(Re),this.h()},h(){Ge(n,"class",r=Pi["container-separator__shape"]),dn(n,"width",a),dn(n,"height",s),dn(n,"border-radius",l),dn(n,"background",t[16].style.background),dn(n,"box-shadow",t[16].style.boxShadow),Ge(e,"class",i=Pi["container-separator__item"]),dn(e,"left",c),dn(e,"top",u),dn(e,"width",d),dn(e,"height",p)},m(t,r){ze(t,e,r),Me(e,n),Me(e,o)},p(t,r){2&r&&a!==(a="".concat(t[16].style.width,"px"))&&dn(n,"width",a),2&r&&s!==(s="".concat(t[16].style.height,"px"))&&dn(n,"height",s),2&r&&l!==(l="".concat(t[16].style.borderRadius,"px"))&&dn(n,"border-radius",l),2&r&&dn(n,"background",t[16].style.background),2&r&&dn(n,"box-shadow",t[16].style.boxShadow),2&r&&c!==(c="".concat(t[16].left,"px"))&&dn(e,"left",c),2&r&&u!==(u="".concat(t[16].top,"px"))&&dn(e,"top",u),2&r&&d!==(d="".concat(t[16].width,"px"))&&dn(e,"width",d),2&r&&p!==(p="".concat(t[16].height,"px"))&&dn(e,"height",p)},d(t){t&&Re(e)}}}function Oi(t){let e,n,r,o,i=Xn(t[1]),a=[];for(let e=0;e<i.length;e+=1)a[e]=Ni(Ii(t,i,e));return{c(){e=Le("div");for(let t=0;t<a.length;t+=1)a[t].c();this.h()},l(t){e=rn(t,"DIV",{class:!0});var n=Qe(e);for(let t=0;t<a.length;t+=1)a[t].l(n);n.forEach(Re),this.h()},h(){Ge(e,"class",n=Pi["container-separator"])},m(n,i){ze(n,e,i);for(let t=0;t<a.length;t+=1)a[t]&&a[t].m(e,null);t[13](e),r||(o=qe(Si,"resize",t[2]),r=!0)},p(t,n){let[r]=n;if(2&r){let n;for(i=Xn(t[1]),n=0;n<i.length;n+=1){const o=Ii(t,i,n);a[n]?a[n].p(o,r):(a[n]=Ni(o),a[n].c(),a[n].m(e,null))}for(;n<a.length;n+=1)a[n].d(1);a.length=i.length}},i:oe,o:oe,d(n){n&&Re(e),Be(a,n),t[13](null),r=!1,o()}}}function Mi(t,e,n,r,o,i){const a=e.margins.left,s=e.margins.right,l=e.margins.top,c=e.margins.bottom;i?t.push({top:n.bottom+l,left:o.left+a,width:Math.max(0,o.right-o.left-a-s),height:r.top-n.bottom-l-c,style:e.style}):t.push({top:o.top+l,left:n.right+a,width:r.left-n.right-a-s,height:Math.max(0,o.bottom-o.top-l-c),style:e.style})}function Ti(t,e,n,r,o,i){const a={top:Math.min(...n.map((t=>t.top))),right:Math.max(...n.map((t=>t.right))),bottom:Math.max(...n.map((t=>t.bottom))),left:Math.min(...n.map((t=>t.left)))};if(null==e?void 0:e.show_at_start){let s,l;"space-around"===o||"space-evenly"===o?(s=i.left-e.style.width,l=i.top-e.style.height):(s=n[0].left-e.style.width-e.margins.left-e.margins.right,l=n[0].top-e.style.height-e.margins.top-e.margins.bottom),Mi(t,e,{top:0,right:s,bottom:l,left:0},n[0],a,r)}if(null==e?void 0:e.show_between)for(let o=0;o<n.length-1;++o)Mi(t,e,n[o],n[o+1],a,r);if(null==e?void 0:e.show_at_end){const s=n[n.length-1];let l,c;"space-around"===o||"space-evenly"===o?(l=i.bottom+e.style.height,c=i.right+e.style.width):(l=s.bottom+e.style.height+e.margins.top+e.margins.bottom,c=s.right+e.style.width+e.margins.left+e.margins.right),Mi(t,e,s,{top:l,right:0,bottom:0,left:c},a,r)}}function zi(t,e,n){let r,{orientation:o}=e,{separator:i}=e,{lineSeparator:a}=e,{contentHAlign:s}=e,{contentVAlign:l}=e,{direction:c}=e;const u=function(t,e){let n,r=0,o=!1;return function(){const e=Date.now();return!r||Math.abs(e-r)>10?(r=e,n=t.apply(this,arguments)):(o||(o=!0,setTimeout((()=>{o=!1,n=t.apply(this,arguments)}),10)),n)}}((function(){if(!r)return;const t=r.getBoundingClientRect(),e=window.getComputedStyle(r),u={top:t.top+parseFloat(e.paddingTop),right:t.right-parseFloat(e.paddingRight),bottom:t.bottom-parseFloat(e.paddingBottom),left:t.left+parseFloat(e.paddingLeft)};n(1,p=[]);let h=[...r.children].filter((t=>t!==d&&!t.classList.contains(Tr.outer__border))),f=[];for(;h.length;){const t=[],e=h.shift();t.push(e);let n=e.getBoundingClientRect(),r=n.left,i=n.right,a=n.bottom;for(;h.length;){let e=h[0],n=e.getBoundingClientRect();if("vertical"===o){if(n.top<a)break}else if("ltr"===c?n.left<i:n.right>r)break;i=Math.max(i,n.right),r=Math.min(r,n.left),a=Math.max(a,n.bottom),t.push(e),h.shift()}f.push(t)}const g=[];f.forEach((t=>{const e=t.map((t=>function(t){const e=t.getBoundingClientRect(),n=getComputedStyle(t);return{top:e.top-parseFloat(n.marginTop),right:e.right+parseFloat(n.marginRight),bottom:e.bottom+parseFloat(n.marginBottom),left:e.left-parseFloat(n.marginLeft)}}(t)));"rtl"===c&&"horizontal"===o&&e.reverse(),i&&Ti(p,i,e,"vertical"===o,"vertical"===o?l:s,u);const n={top:Math.min(...e.map((t=>t.top))),right:Math.max(...e.map((t=>t.right))),bottom:Math.max(...e.map((t=>t.bottom))),left:Math.min(...e.map((t=>t.left)))};g.push(n)})),"rtl"===c&&"vertical"===o&&g.reverse(),a&&Ti(p,a,g,"horizontal"===o,"vertical"===o?s:l,u),p.forEach((e=>{e.top-=t.top,e.left-=t.left}))}));let d,p=[],h=!1,f=null,g=null;function m(t){t.some((t=>{var e;const n=null===(e=t.target)||void 0===e?void 0:e.classList;return!(null==n?void 0:n.contains(Pi["container-separator__shape"]))&&!(null==n?void 0:n.contains(Pi["container-separator"]))}))&&u()}return xn((()=>{n(9,h=!0)})),kn((()=>{n(9,h=!1)})),t.$$set=t=>{"orientation"in t&&n(3,o=t.orientation),"separator"in t&&n(4,i=t.separator),"lineSeparator"in t&&n(5,a=t.lineSeparator),"contentHAlign"in t&&n(6,s=t.contentHAlign),"contentVAlign"in t&&n(7,l=t.contentVAlign),"direction"in t&&n(8,c=t.direction)},t.$$.update=()=>{1&t.$$.dirty&&n(12,r=(null==d?void 0:d.parentElement)||null),7680&t.$$.dirty&&(h&&r||f||g)&&(f&&(f.disconnect(),n(10,f=null)),g&&(g.disconnect(),n(11,g=null)),h&&r&&("undefined"!=typeof MutationObserver&&(n(10,f=new MutationObserver(m)),f.observe(r,{childList:!0,attributes:!0,characterData:!0,subtree:!0})),"undefined"!=typeof ResizeObserver&&(n(11,g=new ResizeObserver(u)),g.observe(r)))),4608&t.$$.dirty&&h&&r&&u()},[d,p,u,o,i,a,s,l,c,h,f,g,r,function(t){Vn[t?"unshift":"push"]((()=>{d=t,n(0,d)}))}]}const Ri=class extends pr{constructor(t){super(),ur(this,t,zi,Oi,he,{orientation:3,separator:4,lineSeparator:5,contentHAlign:6,contentVAlign:7,direction:8})}},{Boolean:Bi}=Ve;function Li(t,e,n){const r=t.slice();return r[52]=e[n],r}function Ui(t){let e,n;return e=new Nc({props:{componentContext:t[52],layoutParams:t[8]}}),{c(){ar(e.$$.fragment)},l(t){sr(e.$$.fragment,t)},m(t,r){lr(e,t,r),n=!0},p(t,n){const r={};512&n[0]&&(r.componentContext=t[52]),256&n[0]&&(r.layoutParams=t[8]),e.$set(r)},i(t){n||(Gn(e.$$.fragment,t),n=!0)},o(t){Kn(e.$$.fragment,t),n=!1},d(t){cr(e,t)}}}function Hi(t){let e,n;return e=new Ri({props:{direction:t[11],separator:t[5],lineSeparator:t[6],orientation:t[2],contentHAlign:t[4],contentVAlign:t[3]}}),{c(){ar(e.$$.fragment)},l(t){sr(e.$$.fragment,t)},m(t,r){lr(e,t,r),n=!0},p(t,n){const r={};2048&n[0]&&(r.direction=t[11]),32&n[0]&&(r.separator=t[5]),64&n[0]&&(r.lineSeparator=t[6]),4&n[0]&&(r.orientation=t[2]),16&n[0]&&(r.contentHAlign=t[4]),8&n[0]&&(r.contentVAlign=t[3]),e.$set(r)},i(t){n||(Gn(e.$$.fragment,t),n=!0)},o(t){Kn(e.$$.fragment,t),n=!1},d(t){cr(e,t)}}}function Wi(t){let e,n,r,o=Xn(t[9]),i=[];for(let e=0;e<o.length;e+=1)i[e]=Ui(Li(t,o,e));const a=t=>Kn(i[t],1,1,(()=>{i[t]=null}));let s=(t[5]||t[6])&&Hi(t);return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=We(),s&&s.c(),n=Je()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);e=sn(t),s&&s.l(t),n=Je()},m(t,o){for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(t,o);ze(t,e,o),s&&s.m(t,o),ze(t,n,o),r=!0},p(t,r){if(768&r[0]){let n;for(o=Xn(t[9]),n=0;n<o.length;n+=1){const a=Li(t,o,n);i[n]?(i[n].p(a,r),Gn(i[n],1)):(i[n]=Ui(a),i[n].c(),Gn(i[n],1),i[n].m(e.parentNode,e))}for(Jn(),n=o.length;n<i.length;n+=1)a(n);qn()}t[5]||t[6]?s?(s.p(t,r),96&r[0]&&Gn(s,1)):(s=Hi(t),s.c(),Gn(s,1),s.m(n.parentNode,n)):s&&(Jn(),Kn(s,1,1,(()=>{s=null})),qn())},i(t){if(!r){for(let t=0;t<o.length;t+=1)Gn(i[t]);Gn(s),r=!0}},o(t){i=i.filter(Bi);for(let t=0;t<i.length;t+=1)Kn(i[t]);Kn(s),r=!1},d(t){t&&(Re(e),Re(n)),Be(i,t),s&&s.d(t)}}}function Ji(t){let e,n;return e=new Yo({props:{cls:to("container",xi,t[13]),componentContext:t[0],layoutParams:t[1],style:t[10],additionalPaddings:t[14],heightByAspect:Boolean(t[7]),parentOf:t[9].map(Yi),replaceItems:t[27],$$slots:{default:[Wi]},$$scope:{ctx:t}}}),{c(){ar(e.$$.fragment)},l(t){sr(e.$$.fragment,t)},m(t,r){lr(e,t,r),n=!0},p(t,n){const r={};8192&n[0]&&(r.cls=to("container",xi,t[13])),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),1024&n[0]&&(r.style=t[10]),16384&n[0]&&(r.additionalPaddings=t[14]),128&n[0]&&(r.heightByAspect=Boolean(t[7])),512&n[0]&&(r.parentOf=t[9].map(Yi)),2940&n[0]|16777216&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Gn(e.$$.fragment,t),n=!0)},o(t){Kn(e.$$.fragment,t),n=!1},d(t){cr(e,t)}}}const qi={start:"start",center:"center",end:"end","space-between":"start","space-around":"start","space-evenly":"start"},Gi={start:"start",center:"center",end:"end",baseline:"baseline","space-between":"start","space-around":"start","space-evenly":"start"},Ki=["rounded_rectangle","circle"],Yi=t=>t.json;function Zi(t,e,n){let r,o,i,a,s,l,c,u,d,p,h,f,g,m,v,y,$,b,_,w,x,k,E,C,A,j,V,D,F,P,S,I=oe,N=oe,O=oe,M=oe,T=oe,z=oe,R=oe,B=oe,L=oe,U=oe,H=oe,W=oe;var J,q,G,K,Y,Z,X;t.$$.on_destroy.push((()=>I())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>W()));let{componentContext:Q}=e,{layoutParams:tt}=e;const et=Cn(Or),nt=et.direction;let rt;ge(t,nt,(t=>n(11,A=t)));let ot,it="vertical",at="start",st="start",lt=null,ct=null,ut={},dt=[];return t.$$set=t=>{"componentContext"in t&&n(0,Q=t.componentContext),"layoutParams"in t&&n(1,tt=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&Q.json&&(n(2,it="vertical"),n(3,at="start"),n(4,st="start"),n(7,ot=void 0)),1&t.$$.dirty[0]&&n(38,r=Q.json.items),268435457&t.$$.dirty[0]&&(n(25,o=Q.getDerivedFromVars(null===n(28,J=Q.json.item_builder)||void 0===J?void 0:J.data,void 0,!0)),W(),W=fe(o,(t=>n(50,S=t)))),1&t.$$.dirty[0]&&(n(24,i=Q.getDerivedFromVars(Q.json.orientation)),H(),H=fe(i,(t=>n(49,P=t)))),1&t.$$.dirty[0]&&(n(23,a=Q.getDerivedFromVars(Q.json.layout_mode)),U(),U=fe(a,(t=>n(48,F=t)))),1&t.$$.dirty[0]&&(n(22,s=Q.getDerivedFromVars(Q.json.content_alignment_vertical)),B(),B=fe(s,(t=>n(46,V=t)))),1&t.$$.dirty[0]&&(n(21,l=Q.getDerivedFromVars(Q.json.content_alignment_horizontal)),R(),R=fe(l,(t=>n(45,j=t)))),1&t.$$.dirty[0]&&(n(20,c=Q.getDerivedFromVars(Q.json.separator)),z(),z=fe(c,(t=>n(44,C=t)))),1&t.$$.dirty[0]&&(n(19,u=Q.getDerivedFromVars(Q.json.line_separator)),T(),T=fe(u,(t=>n(43,E=t)))),1&t.$$.dirty[0]&&(n(18,d=Q.getDerivedFromVars(Q.json.aspect)),M(),M=fe(d,(t=>n(42,k=t)))),1&t.$$.dirty[0]&&(n(17,p=Q.getDerivedFromVars(Q.json.width)),N(),N=fe(p,(t=>n(40,w=t)))),1&t.$$.dirty[0]&&(n(16,h=Q.getDerivedFromVars(Q.json.height)),O(),O=fe(h,(t=>n(41,x=t)))),1&t.$$.dirty[0]&&(n(15,f=Q.getDerivedFromVars(Q.json.clip_to_bounds)),I(),I=fe(f,(t=>n(39,_=t)))),1&t.$$.dirty[0]|524416&t.$$.dirty[1]){let t=[];if(Q.json.item_builder&&Array.isArray(S)&&Array.isArray(Q.json.item_builder.prototypes)){const e=Q.json.item_builder;t=[],S.forEach((n=>{if(null===n||"object"!=typeof n)return;const r=et.preparePrototypeVariables(e.data_element_name||"it",n);let o;for(let t=0;t<e.prototypes.length;++t){const n=e.prototypes[t];if(n.div){if(void 0===n.selector){o=n.div;break}if(Q.getJsonWithVars(n.selector,r)){o=n.div;break}}}o&&t.push({div:o,vars:r})}))}else t=(r||[]).map((t=>({div:t})));n(9,dt=t.map(((t,e)=>Q.produceChildContext(t.div,{path:e,variables:t.vars}))))}if(513&t.$$.dirty[0]){let t=[];dt.forEach((e=>{t.push(Q.getDerivedFromVars({width:e.json.width,height:e.json.height}))})),n(12,rt=gr(t,(t=>[...t]))),L(),L=fe(rt,(t=>n(47,D=t)))}if(4&t.$$.dirty[0]|262144&t.$$.dirty[1]&&n(2,it=function(t,e){return"vertical"===t||"horizontal"===t||"overlap"===t?t:e}(P,it)),131072&t.$$.dirty[1]&&n(35,g="wrap"===F),4&t.$$.dirty[0]|65552&t.$$.dirty[1]&&n(36,m="horizontal"!==it&&!g&&D.some(Ai)),4&t.$$.dirty[0]|65552&t.$$.dirty[1]&&n(37,v="vertical"!==it&&!g&&D.some(ji)),8&t.$$.dirty[0]|32768&t.$$.dirty[1]&&n(3,at=function(t,e){return"top"===t||"center"===t||"bottom"===t||"baseline"===t||"space-between"===t||"space-around"===t||"space-evenly"===t?"top"===t?"start":"bottom"===t?"end":t:e}(V,at)),2064&t.$$.dirty[0]|16384&t.$$.dirty[1]&&n(4,st=function(t,e,n){return"left"===t||"center"===t||"right"===t||"space-between"===t||"space-around"===t||"space-evenly"===t||"start"===t||"end"===t?"left"===t?"ltr"===e?"start":"end":"right"===t?"ltr"===e?"end":"start":t:n}(j,A,st)),1610612772&t.$$.dirty[0]|8193&t.$$.dirty[1])if((null==C?void 0:C.style)&&"overlap"!==it&&Fi()){const t=Vi(C.style,Ki,(null==lt?void 0:lt.style)||null);n(5,lt=t?{show_at_start:Boolean(null!==n(29,q=C.show_at_start)&&void 0!==q&&q),show_at_end:Boolean(null!==n(30,G=C.show_at_end)&&void 0!==G&&G),show_between:Boolean(null===n(31,K=C.show_between)||void 0===K||K),style:t,margins:ki(C.margins)}:null)}else n(5,lt=null);if(68&t.$$.dirty[0]|4110&t.$$.dirty[1])if((null==E?void 0:E.style)&&"overlap"!==it&&Fi()){const t=Vi(E.style,Ki,(null==ct?void 0:ct.style)||null);n(6,ct=t?{show_at_start:Boolean(null!==n(32,Y=E.show_at_start)&&void 0!==Y&&Y),show_at_end:Boolean(null!==n(33,Z=E.show_at_end)&&void 0!==Z&&Z),show_between:Boolean(null===n(34,X=E.show_between)||void 0===X||X),style:t,margins:ki(E.margins)}:null)}else n(6,ct=null);if(100&t.$$.dirty[0]&&n(14,y=lt||ct?function(t,e,n){const r={};return Ei(r,e,"vertical"===t),Ei(r,n,"horizontal"===t),r}(it,lt,ct):null),2048&t.$$.dirty[1]){const t=null==k?void 0:k.ratio;t&&Vo(t)?n(7,ot=t):n(7,ot=void 0)}if(414&t.$$.dirty[0]|1648&t.$$.dirty[1]){let t={};"overlap"===it&&(t.overlapParent=!0),"horizontal"!==it&&(t.parentHAlign=g?"start":qi[st]),"vertical"!==it&&(t.parentVAlign=g?"start":Gi[at]),ot||v||x&&"wrap_content"!==x.type&&("match_parent"!==x.type||!(null==tt?void 0:tt.parentVerticalWrapContent))||(t.parentVerticalWrapContent=!0),!m&&("wrap_content"===(null==w?void 0:w.type)||"match_parent"===(null==w?void 0:w.type)&&(null==tt?void 0:tt.parentHorizontalWrapContent))&&(t.parentHorizontalWrapContent=!0),"horizontal"===it&&(t.parentContainerOrientation="horizontal"),"vertical"===it&&(t.parentContainerOrientation="vertical"),g&&(t.parentContainerWrap=!0),n(8,ut=uo(t,ut))}28&t.$$.dirty[0]|272&t.$$.dirty[1]&&n(13,$={orientation:it,valign:at,halign:st,wrap:g,overflow:!1===_||0===_?"visible":void 0}),228&t.$$.dirty[0]&&n(10,b={gap:lt||ct?Ci(it,lt,ct):void 0,"aspect-ratio":ot})},[Q,tt,it,at,st,lt,ct,ot,ut,dt,b,A,rt,$,y,f,h,p,d,u,c,l,s,a,i,o,nt,function(t){n(0,Q=Object.assign(Object.assign({},Q),{json:Object.assign(Object.assign({},Q.json),{items:t.filter(Ur)})}))},J,q,G,K,Y,Z,X,g,m,v,r,_,w,x,k,E,C,j,V,D,F,P,S]}const Xi={separator:"divkit-a30bb",separator_orientation_horizontal:"divkit-f529e",separator_orientation_vertical:"divkit-e9e27",separator__inner:"divkit-db7d8"};function Qi(t,e){return"vertical"===t||"horizontal"===t?t:e}function ta(t){let e,n,r;return{c(){e=Le("span"),this.h()},l(t){e=rn(t,"SPAN",{class:!0,style:!0}),Qe(e).forEach(Re),this.h()},h(){Ge(e,"class",n=Xi.separator__inner),Ge(e,"style",r=zr(t[3]))},m(t,n){ze(t,e,n)},p(t,n){8&n&&r!==(r=zr(t[3]))&&Ge(e,"style",r)},d(t){t&&Re(e)}}}function ea(t){let e,n=t[4]&&ta(t);return{c(){n&&n.c(),e=Je()},l(t){n&&n.l(t),e=Je()},m(t,r){n&&n.m(t,r),ze(t,e,r)},p(t,r){t[4]?n?n.p(t,r):(n=ta(t),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(t){t&&Re(e),n&&n.d(t)}}}function na(t){let e,n;return e=new Yo({props:{cls:to("separator",Xi,t[2]),componentContext:t[0],layoutParams:t[1],$$slots:{default:[ea]},$$scope:{ctx:t}}}),{c(){ar(e.$$.fragment)},l(t){sr(e.$$.fragment,t)},m(t,r){lr(e,t,r),n=!0},p(t,n){let[r]=n;const o={};4&r&&(o.cls=to("separator",Xi,t[2])),1&r&&(o.componentContext=t[0]),2&r&&(o.layoutParams=t[1]),2072&r&&(o.$$scope={dirty:r,ctx:t}),e.$set(o)},i(t){n||(Gn(e.$$.fragment,t),n=!0)},o(t){Kn(e.$$.fragment,t),n=!1},d(t){cr(e,t)}}}function ra(t,e,n){let r,o,i,a,s,l,c,u=oe;t.$$.on_destroy.push((()=>u()));let{componentContext:d}=e,{layoutParams:p}=e,h="horizontal",f="rgba(0,0,0,0.08)";return t.$$set=t=>{"componentContext"in t&&n(0,d=t.componentContext),"layoutParams"in t&&n(1,p=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty&&d.json&&(n(6,h="horizontal"),n(7,f="rgba(0,0,0,0.08)")),1&t.$$.dirty&&(n(5,r=d.getDerivedFromVars(d.json.delimiter_style)),u(),u=fe(r,(t=>n(10,c=t)))),1088&t.$$.dirty&&n(6,h=Qi(null==c?void 0:c.orientation,h)),1024&t.$$.dirty&&n(4,o=!((null==c?void 0:c.color)&&("transparent"===c.color||9===c.color.length&&0===c.color.indexOf("#00")))),1152&t.$$.dirty&&n(7,f=k(null==c?void 0:c.color,1,f)),64&t.$$.dirty&&n(9,i="horizontal"===h?"100%":Rr(1)),64&t.$$.dirty&&n(8,a="horizontal"===h?Rr(1):"100%"),896&t.$$.dirty&&n(3,s={background:f,width:i,height:a}),64&t.$$.dirty&&n(2,l={orientation:h})},[d,p,l,s,o,r,h,f,a,i,c]}const oa={image:"divkit-a448f","image_is-width-content":"divkit-fe14a","image_is-height-content":"divkit-f4d92",image__image:"divkit-ce046",image_error:"divkit-f10d9","image_is-rtl-mirror":"divkit-ae78c","image__aspect-wrapper":"divkit-dc808",image_aspect:"divkit-ae784",image_loaded:"divkit-cf4e0","divkit-image-appearance":"divkit-e555f","image_before-appearance":"divkit-ffe8a"};function ia(t){return t.startsWith("data:")?Lr(t):"data:image/jpg;base64,".concat(Lr(t))}function aa(t){let e,n;return e=new Yo({props:{cls:to("image",oa,t[9]),componentContext:t[0],layoutParams:t[1],customDescription:!0,$$slots:{default:[ua]},$$scope:{ctx:t}}}),{c(){ar(e.$$.fragment)},l(t){sr(e.$$.fragment,t)},m(t,r){lr(e,t,r),n=!0},p(t,n){const r={};512&n[0]&&(r.cls=to("image",oa,t[9])),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),1916&n[0]|4&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Gn(e.$$.fragment,t),n=!0)},o(t){Kn(e.$$.fragment,t),n=!1},d(t){cr(e,t)}}}function sa(t){let e,n,r,o,i,a,s;return{c(){e=Le("img"),this.h()},l(t){e=rn(t,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,style:!0,alt:!0,"aria-hidden":!0}),this.h()},h(){Ge(e,"class",n=oa.image__image),pe(e.src,r=t[3]===ha?pa:t[4])||Ge(e,"src",r),Ge(e,"loading","lazy"),Ge(e,"decoding","async"),Ge(e,"style",o=zr(t[8])),Ge(e,"alt",t[10]),Ge(e,"aria-hidden",i=t[10]?null:"true")},m(n,r){ze(n,e,r),t[60](e),a||(s=[qe(e,"load",t[26]),qe(e,"error",t[27])],a=!0)},p(t,n){24&n[0]&&!pe(e.src,r=t[3]===ha?pa:t[4])&&Ge(e,"src",r),256&n[0]&&o!==(o=zr(t[8]))&&Ge(e,"style",o),1024&n[0]&&Ge(e,"alt",t[10]),1024&n[0]&&i!==(i=t[10]?null:"true")&&Ge(e,"aria-hidden",i)},d(n){n&&Re(e),t[60](null),a=!1,ce(s)}}}function la(t){let e,n,r,o,i,a,s,l,c,u="".concat(t[5],"%");return{c(){e=Le("span"),n=Le("img"),this.h()},l(t){e=rn(t,"SPAN",{class:!0});var r=Qe(e);n=rn(r,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,style:!0,alt:!0,"aria-hidden":!0}),r.forEach(Re),this.h()},h(){Ge(n,"class",r=oa.image__image),pe(n.src,o=t[3]===ha?pa:t[4])||Ge(n,"src",o),Ge(n,"loading","lazy"),Ge(n,"decoding","async"),Ge(n,"style",i=zr(t[8])),Ge(n,"alt",t[10]),Ge(n,"aria-hidden",a=t[10]?null:"true"),Ge(e,"class",s=oa["image__aspect-wrapper"]),dn(e,"padding-bottom",u)},m(r,o){ze(r,e,o),Me(e,n),t[59](n),l||(c=[qe(n,"load",t[26]),qe(n,"error",t[27])],l=!0)},p(t,r){24&r[0]&&!pe(n.src,o=t[3]===ha?pa:t[4])&&Ge(n,"src",o),256&r[0]&&i!==(i=zr(t[8]))&&Ge(n,"style",i),1024&r[0]&&Ge(n,"alt",t[10]),1024&r[0]&&a!==(a=t[10]?null:"true")&&Ge(n,"aria-hidden",a),32&r[0]&&u!==(u="".concat(t[5],"%"))&&dn(e,"padding-bottom",u)},d(n){n&&Re(e),t[59](null),l=!1,ce(c)}}}function ca(t){let e;function n(t,e){return t[9].aspect?la:sa}let r=n(t),o=r(t);return{c(){o.c(),e=Je()},l(t){o.l(t),e=Je()},m(t,n){o.m(t,n),ze(t,e,n)},p(t,i){r===(r=n(t))&&o?o.p(t,i):(o.d(1),o=r(t),o&&(o.c(),o.m(e.parentNode,e)))},d(t){t&&Re(e),o.d(t)}}}function ua(t){let e,n=t[6],r=ca(t);return{c(){r.c(),e=Je()},l(t){r.l(t),e=Je()},m(t,n){r.m(t,n),ze(t,e,n)},p(t,o){64&o[0]&&he(n,n=t[6])?(r.d(1),r=ca(t),r.c(),r.m(e.parentNode,e)):r.p(t,o)},d(t){t&&Re(e),r.d(t)}}}function da(t){let e,n,r=!t[7]&&aa(t);return{c(){r&&r.c(),e=Je()},l(t){r&&r.l(t),e=Je()},m(t,o){r&&r.m(t,o),ze(t,e,o),n=!0},p(t,n){t[7]?r&&(Jn(),Kn(r,1,1,(()=>{r=null})),qn()):r?(r.p(t,n),128&n[0]&&Gn(r,1)):(r=aa(t),r.c(),Gn(r,1),r.m(e.parentNode,e))},i(t){n||(Gn(r),n=!0)},o(t){Kn(r),n=!1},d(t){t&&Re(e),r&&r.d(t)}}}const pa="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",ha=2;function fa(t,e,n){let r,o,i,a,s,l,c,u,d,p,h,f,g,m,v,y,$,b,_,w,x,E,C,A,j,V,D,F,P,S,I,N,O,M,T=oe,z=oe,R=oe,B=oe,L=oe,U=oe,H=oe,W=oe,J=oe,q=oe,G=oe,K=oe,Y=oe,Z=oe;t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>K())),t.$$.on_destroy.push((()=>Y())),t.$$.on_destroy.push((()=>Z()));let{componentContext:X}=e,{layoutParams:Q}=e;const tt=Cn(Or),et=tt.direction;let nt;ge(t,et,(t=>n(45,x=t)));let rt,ot,it=0,at=!1,st="rgba(0,0,0,0.08)",lt=!1,ct="",dt="none",pt="50% 50%",ht="0",ft="source_in",gt="",mt="",vt=0,yt=0,$t=0,bt="",_t="",wt=!1;return kn((()=>{tt.removeSvgFilter(ot,ft)})),t.$$set=t=>{"componentContext"in t&&n(0,X=t.componentContext),"layoutParams"in t&&n(1,Q=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&X.json&&(n(31,dt="none"),n(32,pt="50% 50%"),n(34,ft="source_in")),1&t.$$.dirty[0]&&(n(24,r=X.getDerivedFromVars(X.json.image_url)),Y(),Y=fe(r,(t=>n(57,O=t)))),1&t.$$.dirty[0]&&(n(23,o=X.getDerivedFromVars(X.json.gif_url)),Z(),Z=fe(o,(t=>n(58,M=t)))),1&t.$$.dirty[0]&&(n(22,i=X.getDerivedFromVars(X.json.width)),K(),K=fe(i,(t=>n(56,N=t)))),1&t.$$.dirty[0]&&(n(21,a=X.getDerivedFromVars(X.json.height)),G(),G=fe(a,(t=>n(55,I=t)))),1&t.$$.dirty[0]&&(n(20,s=X.getDerivedFromVars(X.json.preview)),q(),q=fe(s,(t=>n(54,S=t)))),1&t.$$.dirty[0]&&(n(19,l=X.getDerivedFromVars(X.json.placeholder_color)),J(),J=fe(l,(t=>n(53,P=t)))),1&t.$$.dirty[0]&&(n(18,c=X.getDerivedFromVars(X.json.scale)),W(),W=fe(c,(t=>n(52,F=t)))),1&t.$$.dirty[0]&&(n(17,u=X.getDerivedFromVars({content_alignment_horizontal:X.json.content_alignment_horizontal,content_alignment_vertical:X.json.content_alignment_vertical})),H(),H=fe(u,(t=>n(51,D=t)))),1&t.$$.dirty[0]&&(n(16,d=X.getDerivedFromVars(X.json.accessibility)),U(),U=fe(d,(t=>n(50,V=t)))),1&t.$$.dirty[0]&&(n(15,p=X.getDerivedFromVars(X.json.aspect)),L(),L=fe(p,(t=>n(49,j=t)))),1&t.$$.dirty[0]&&(n(14,h=X.getDerivedFromVars(X.json.tint_color)),B(),B=fe(h,(t=>n(48,A=t)))),1&t.$$.dirty[0]&&(n(13,f=X.getDerivedFromVars(X.json.tint_mode)),R(),R=fe(f,(t=>n(47,C=t)))),1&t.$$.dirty[0]&&(n(12,g=X.getDerivedFromVars(X.json.appearance_animation)),z(),z=fe(g,(t=>n(46,E=t)))),1&t.$$.dirty[0]&&(n(11,m=X.getDerivedFromVars(X.json.filters)),T(),T=fe(m,(t=>n(44,w=t)))),268435457&t.$$.dirty[0]|201326592&t.$$.dirty[1]){let t="gif"===X.json.type?M:O;n(28,at="empty://"===t),at&&(t=pa),n(4,rt=t)}if(16&t.$$.dirty[0]&&n(3,it=0),17&t.$$.dirty[0]&&(rt?n(7,lt=!1):(n(7,lt=!0),X.logError(ut(new Error('Missing "'.concat("gif"===X.json.type?"gif_url":"image_url",'" for "').concat(X.json.type,'"')))))),33554432&t.$$.dirty[1]&&n(43,v="wrap_content"===(null==N?void 0:N.type)),16777216&t.$$.dirty[1]&&n(42,y="wrap_content"===(null==I?void 0:I.type)),268435464&t.$$.dirty[0]|8388608&t.$$.dirty[1]&&n(30,ct=(0===it||it===ha||at)&&S?'url("'.concat(ia(S),'")'):""),805306376&t.$$.dirty[0]|4194304&t.$$.dirty[1]&&n(29,st=0===it||it===ha||at?k(P,1,st):""),2097153&t.$$.dirty[1]&&n(31,dt=qr(F)||dt),1048576&t.$$.dirty[1]&&n(32,pt=function(t,e,n){let r=t.content_alignment_horizontal;const o=t.content_alignment_vertical;return"start"===r?r="ltr"===e?"left":"right":"end"===r&&(r="ltr"===e?"right":"left"),r&&"left"!==r&&"center"!==r&&"right"!==r||o&&"top"!==o&&"center"!==o&&"bottom"!==o?n:Gr({content_alignment_horizontal:r,content_alignment_vertical:o})}(D,x,pt)),524288&t.$$.dirty[1]&&n(10,$=(null==V?void 0:V.description)||""),262144&t.$$.dirty[1]){const t=null==j?void 0:j.ratio;t&&Vo(t)?n(5,ht=(100/Number(t)).toFixed(2)):n(5,ht="0")}if(196620&t.$$.dirty[1]){const t=A?k(A):void 0,e=ci(C,ft);t===ot&&e===ft||(tt.removeSvgFilter(ot,ft),n(6,gt=t?tt.addSvgFilter(t,e):""),n(33,ot=t),n(34,ft=e))}if(32768&t.$$.dirty[1]&&E&&"fade"===E.type){const t=E;n(35,mt=po(t.interpolator,"ease_in_out").replace(/_/g,"-")),n(38,$t=so(t.duration,300)),n(37,yt=so(t.start_delay,0)),n(36,vt=so(t.alpha,0))}if(1&t.$$.dirty[0]|24576&t.$$.dirty[1]){let t="",e="";Array.isArray(w)&&w.length&&(t=Do(w,X.logError)),t&&(e="polygon(0% 0%, 0% 100%, 100% 100%, 100% 0%)"),n(39,bt=t),n(40,_t=e),n(41,wt="rtl"===x&&Array.isArray(w)&&w.some((t=>"rtl_mirror"===t.type)))}40&t.$$.dirty[0]|7184&t.$$.dirty[1]&&n(9,b={aspect:"0"!==ht,"is-width-content":v,"is-height-content":y,loaded:1===it,"before-appearance":Boolean(mt)&&0===it,"is-rtl-mirror":wt}),1610612808&t.$$.dirty[0]|1011&t.$$.dirty[1]&&n(8,_={"background-image":ct,"background-color":ct?void 0:st,"background-size":dt,"clip-path":_t||void 0,"object-fit":dt,"object-position":pt,filter:[1===it&>?"url(#".concat(gt,")"):"",bt].filter(Boolean).join(" "),"--divkit-appearance-interpolator":mt||void 0,"--divkit-appearance-fade-start":mt?vt:void 0,"--divkit-appearance-delay":mt?"".concat(yt,"ms"):void 0,"--divkit-appearance-duration":mt?"".concat($t,"ms"):void 0})},[X,Q,nt,it,rt,ht,gt,lt,_,b,$,m,g,f,h,p,d,u,c,l,s,a,i,o,r,et,function(){0===it&&n(3,it=1)},function(){0===it&&n(3,it=ha)},at,st,ct,dt,pt,ot,ft,mt,vt,yt,$t,bt,_t,wt,y,v,w,x,E,C,A,j,V,D,F,P,S,I,N,O,M,function(t){Vn[t?"unshift":"push"]((()=>{nt=t,n(2,nt),n(0,X),n(58,M),n(57,O),n(28,at)}))},function(t){Vn[t?"unshift":"push"]((()=>{nt=t,n(2,nt),n(0,X),n(58,M),n(57,O),n(28,at)}))}]}const ga=class extends pr{constructor(t){super(),ur(this,t,fa,da,he,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}},ma={grid:"divkit-d9080",grid_halign_start:"divkit-fc24d",grid_halign_center:"divkit-a14a6",grid_halign_end:"divkit-cfd04",grid_valign_start:"divkit-c3106",grid_valign_center:"divkit-d4310",grid_valign_end:"divkit-fa9cf"};function va(t){return t>0&&t<1}function ya(t){return String(Math.ceil(1e3*t)/1e3)}function $a(t,e,n){if(t.some(va)){const e=Math.max(...t.filter(va).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(Rr(r*t[e]/o),",").concat(ya(t[e]),"fr)"):t[e]?i[e]="".concat(ya(t[e]),"fr"):i[e]="auto";return i.join(" ")}function ba(t,e,n){const r=t.slice();return r[29]=e[n],r}function _a(t){let e,n;return e=new Yo({props:{cls:to("grid",ma,t[7]),componentContext:t[0],style:t[6],layoutParams:t[1],parentOf:t[2].map(Ea),replaceItems:t[12],$$slots:{default:[xa]},$$scope:{ctx:t}}}),{c(){ar(e.$$.fragment)},l(t){sr(e.$$.fragment,t)},m(t,r){lr(e,t,r),n=!0},p(t,n){const r={};128&n[0]&&(r.cls=to("grid",ma,t[7])),1&n[0]&&(r.componentContext=t[0]),64&n[0]&&(r.style=t[6]),2&n[0]&&(r.layoutParams=t[1]),4&n[0]&&(r.parentOf=t[2].map(Ea)),16&n[0]|2&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Gn(e.$$.fragment,t),n=!0)},o(t){Kn(e.$$.fragment,t),n=!1},d(t){cr(e,t)}}}function wa(t){let e,n;return e=new Nc({props:{componentContext:t[29].componentContext,layoutParams:t[29].layoutParams}}),{c(){ar(e.$$.fragment)},l(t){sr(e.$$.fragment,t)},m(t,r){lr(e,t,r),n=!0},p(t,n){const r={};16&n[0]&&(r.componentContext=t[29].componentContext),16&n[0]&&(r.layoutParams=t[29].layoutParams),e.$set(r)},i(t){n||(Gn(e.$$.fragment,t),n=!0)},o(t){Kn(e.$$.fragment,t),n=!1},d(t){cr(e,t)}}}function xa(t){let e,n,r=Xn(t[4]),o=[];for(let e=0;e<r.length;e+=1)o[e]=wa(ba(t,r,e));const i=t=>Kn(o[t],1,1,(()=>{o[t]=null}));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=Je()},l(t){for(let e=0;e<o.length;e+=1)o[e].l(t);e=Je()},m(t,r){for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,r);ze(t,e,r),n=!0},p(t,n){if(16&n[0]){let a;for(r=Xn(t[4]),a=0;a<r.length;a+=1){const i=ba(t,r,a);o[a]?(o[a].p(i,n),Gn(o[a],1)):(o[a]=wa(i),o[a].c(),Gn(o[a],1),o[a].m(e.parentNode,e))}for(Jn(),a=r.length;a<o.length;a+=1)i(a);qn()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Gn(o[t]);n=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)Kn(o[t]);n=!1},d(t){t&&Re(e),Be(o,t)}}}function ka(t){let e,n,r=!t[5]&&_a(t);return{c(){r&&r.c(),e=Je()},l(t){r&&r.l(t),e=Je()},m(t,o){r&&r.m(t,o),ze(t,e,o),n=!0},p(t,n){t[5]?r&&(Jn(),Kn(r,1,1,(()=>{r=null})),qn()):r?(r.p(t,n),32&n[0]&&Gn(r,1)):(r=_a(t),r.c(),Gn(r,1),r.m(e.parentNode,e))},i(t){n||(Gn(r),n=!0)},o(t){Kn(r),n=!1},d(t){t&&Re(e),r&&r.d(t)}}}const Ea=t=>t.json;function Ca(t,e,n){let r,o,i,a,s,l,c,u,d,p,h,f,g,m=oe,v=oe,y=oe,$=oe;t.$$.on_destroy.push((()=>m())),t.$$.on_destroy.push((()=>v())),t.$$.on_destroy.push((()=>y())),t.$$.on_destroy.push((()=>$()));let{componentContext:b}=e,{layoutParams:_}=e;const w=Cn(Or).direction;ge(t,w,(t=>n(23,d=t)));let x,k,E=1,C=[],A=[],j=[],V=[],D=0,F=!1,P="start",S="start";return t.$$set=t=>{"componentContext"in t&&n(0,b=t.componentContext),"layoutParams"in t&&n(1,_=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&b.json&&(n(13,E=1),n(20,P="start"),n(21,S="start")),1&t.$$.dirty[0]&&n(22,r=Array.isArray(b.json.items)&&b.json.items||[]),1&t.$$.dirty[0]&&(n(10,o=b.getDerivedFromVars(b.json.column_count)),$(),$=fe(o,(t=>n(27,g=t)))),1&t.$$.dirty[0]&&(n(9,i=b.getDerivedFromVars(b.json.content_alignment_vertical)),v(),v=fe(i,(t=>n(25,h=t)))),1&t.$$.dirty[0]&&(n(8,a=b.getDerivedFromVars(b.json.content_alignment_horizontal)),m(),m=fe(a,(t=>n(24,p=t)))),134225920&t.$$.dirty[0]&&n(13,E=Xo(g,E)),4194305&t.$$.dirty[0]&&n(2,s=r.map(((t,e)=>b.produceChildContext(t,{path:e})))),5&t.$$.dirty[0]){let t=[];s.forEach((e=>{t.push(b.getDerivedFromVars({rowSpan:e.json.row_span,columnSpan:e.json.column_span,width:e.json.width,height:e.json.height}))})),n(3,x=gr(t,(t=>[...t]))),y(),y=fe(x,(t=>n(26,f=t)))}if(67887109&t.$$.dirty[0]){const t={};let e=0,r=0;n(14,C=[]),n(15,A=[]),n(16,j=[]),n(17,V=[]),n(19,F=!1),n(4,k=s.map(((o,i)=>{var a,s,l,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===(s=u.height)||void 0===s?void 0:s.type)?Number(u.height.weight||1)/p:0,v=1===d&&"fixed"===(null===(l=u.width)||void 0===l?void 0:l.type)&&u.width.value?Number(u.width.value)/d:0,y=1===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,(!C[o]||C[o]<g)&&n(14,C[o]=g,C),(!A[e]||A[e]<m)&&n(15,A[e]=m,A),(!j[o]||j[o]<v)&&n(16,j[o]=v,j),(!V[e]||V[e]<y)&&n(17,V[e]=y,V));do{++e,e>=E&&(e=0,++r)}while(t[e+"_"+r]);return{componentContext:o,layoutParams:{gridArea:h}}}))),0!==e&&n(19,F=!0),F&&b.logError(ut(new Error('Mismatching "grid" rows/columns'))),n(18,D=r)}34603008&t.$$.dirty[0]&&n(20,P=si(h,P)),27262976&t.$$.dirty[0]&&n(21,S=ai(p,d,S)),3145728&t.$$.dirty[0]&&n(7,l={valign:P,halign:S}),516096&t.$$.dirty[0]&&n(6,c={"grid-template-columns":$a(C,j,E),"grid-template-rows":$a(A,V,D)}),524288&t.$$.dirty[0]&&n(5,u=F)},[b,_,s,x,k,u,c,l,a,i,o,w,function(t){n(0,b=Object.assign(Object.assign({},b),{json:Object.assign(Object.assign({},b.json),{items:t.filter(Ur)})}))},E,C,A,j,V,D,F,P,S,r,d,p,h,f,g]}const Aa={gallery__scroller:"divkit-a4e39",gallery_scrollbar_none:"divkit-f49e7",gallery_orientation_horizontal:"divkit-c9be7",gallery_orientation_vertical:"divkit-a72d5","gallery_scroll-snap":"divkit-f606e","gallery__items-grid":"divkit-eb4a5",gallery__items:"divkit-af276",gallery__arrow:"divkit-b72d7","gallery__arrow-icon-path":"divkit-b4173"},ja={arrow:"divkit-bf36b",arrow__icon:"divkit-a67bf",arrow_left:"divkit-e2a31",arrow_right:"divkit-c684b"};function Va(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:Da}=Ve;function Fa(t,e,n){const r=t.slice();return r[75]=e[n],r[76]=e,r[77]=n,r}function Pa(t,e,n){const r=t.slice();return r[78]=e[n],r}function Sa(t){let e,n;return e=new Nc({props:{componentContext:t[78],layoutParams:t[6]}}),{c(){ar(e.$$.fragment)},l(t){sr(e.$$.fragment,t)},m(t,r){lr(e,t,r),n=!0},p(t,n){const r={};65536&n[0]&&(r.componentContext=t[78]),64&n[0]&&(r.layoutParams=t[6]),e.$set(r)},i(t){n||(Gn(e.$$.fragment,t),n=!0)},o(t){Kn(e.$$.fragment,t),n=!1},d(t){cr(e,t)}}}function Ia(t){let e,n,r,o,i,a=t[77],s=Xn(t[75]),l=[];for(let e=0;e<s.length;e+=1)l[e]=Sa(Pa(t,s,e));const c=t=>Kn(l[t],1,1,(()=>{l[t]=null})),u=()=>t[63](e,a),d=()=>t[63](null,a);return{c(){e=Le("div");for(let t=0;t<l.length;t+=1)l[t].c();n=We(),this.h()},l(t){e=rn(t,"DIV",{class:!0,style:!0});var r=Qe(e);for(let t=0;t<l.length;t+=1)l[t].l(r);n=sn(r),r.forEach(Re),this.h()},h(){Ge(e,"class",r=Aa.gallery__items),Ge(e,"style",o=zr(t[14]))},m(t,r){ze(t,e,r);for(let t=0;t<l.length;t+=1)l[t]&&l[t].m(e,null);Me(e,n),u(),i=!0},p(r,p){if(t=r,65600&p[0]){let r;for(s=Xn(t[75]),r=0;r<s.length;r+=1){const o=Pa(t,s,r);l[r]?(l[r].p(o,p),Gn(l[r],1)):(l[r]=Sa(o),l[r].c(),Gn(l[r],1),l[r].m(e,n))}for(Jn(),r=s.length;r<l.length;r+=1)c(r);qn()}(!i||16384&p[0]&&o!==(o=zr(t[14])))&&Ge(e,"style",o),a!==t[77]&&(d(),a=t[77],u())},i(t){if(!i){for(let t=0;t<s.length;t+=1)Gn(l[t]);i=!0}},o(t){l=l.filter(Da);for(let t=0;t<l.length;t+=1)Kn(l[t]);i=!1},d(t){t&&Re(e),Be(l,t),d()}}}function Na(t){let e,n,r=t[10]&&t[7]&&Oa(t),o=t[11]&&t[7]&&Ma(t);return{c(){r&&r.c(),e=We(),o&&o.c(),n=Je()},l(t){r&&r.l(t),e=sn(t),o&&o.l(t),n=Je()},m(t,i){r&&r.m(t,i),ze(t,e,i),o&&o.m(t,i),ze(t,n,i)},p(t,i){t[10]&&t[7]?r?r.p(t,i):(r=Oa(t),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),t[11]&&t[7]?o?o.p(t,i):(o=Ma(t),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},d(t){t&&(Re(e),Re(n)),r&&r.d(t),o&&o.d(t)}}}function Oa(t){let e,n,r,o,i=!t[29]&&function(t){let e,n,r,o;return{c(){e=Ue("svg"),n=Ue("path"),this.h()},l(t){e=on(t,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var r=Qe(e);n=on(r,"path",{class:!0,d:!0}),Qe(n).forEach(Re),r.forEach(Re),this.h()},h(){Ge(n,"class",r=Aa["gallery__arrow-icon-path"]),Ge(n,"d","m10 16 8.3 8 1.03-1-4-6-.7-1 .7-1 4-6-1.03-1z"),Ge(e,"class",o=ja.arrow__icon),Ge(e,"xmlns","http://www.w3.org/2000/svg"),Ge(e,"width","32"),Ge(e,"height","32"),Ge(e,"viewBox","0 0 32 32"),Ge(e,"fill","none")},m(t,r){ze(t,e,r),Me(e,n)},d(t){t&&Re(e)}}}();return{c(){e=Le("div"),i&&i.c(),this.h()},l(t){e=rn(t,"DIV",{class:!0});var n=Qe(e);i&&i.l(n),n.forEach(Re),this.h()},h(){Ge(e,"class",n=t[29]||"".concat(Aa.gallery__arrow," ").concat(ja.arrow," ").concat(ja.arrow_left))},m(n,a){ze(n,e,a),i&&i.m(e,null),r||(o=qe(e,"click",t[66]),r=!0)},p:oe,d(t){t&&Re(e),i&&i.d(),r=!1,o()}}}function Ma(t){let e,n,r,o,i=!t[30]&&function(t){let e,n,r,o;return{c(){e=Ue("svg"),n=Ue("path"),this.h()},l(t){e=on(t,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var r=Qe(e);n=on(r,"path",{class:!0,d:!0}),Qe(n).forEach(Re),r.forEach(Re),this.h()},h(){Ge(n,"class",r=Aa["gallery__arrow-icon-path"]),Ge(n,"d","M22 16l-8.3 8-1.03-1 4-6 .7-1-.7-1-4-6 1.03-1 8.3 8z"),Ge(e,"class",o=ja.arrow__icon),Ge(e,"xmlns","http://www.w3.org/2000/svg"),Ge(e,"width","32"),Ge(e,"height","32"),Ge(e,"viewBox","0 0 32 32"),Ge(e,"fill","none")},m(t,r){ze(t,e,r),Me(e,n)},d(t){t&&Re(e)}}}();return{c(){e=Le("div"),i&&i.c(),this.h()},l(t){e=rn(t,"DIV",{class:!0});var n=Qe(e);i&&i.l(n),n.forEach(Re),this.h()},h(){Ge(e,"class",n=t[30]||"".concat(Aa.gallery__arrow," ").concat(ja.arrow," ").concat(ja.arrow_right))},m(n,a){ze(n,e,a),i&&i.m(e,null),r||(o=qe(e,"click",t[67]),r=!0)},p:oe,d(t){t&&Re(e),i&&i.d(),r=!1,o()}}}function Ta(t){let e,n,r,o,i,a,s,l,c,u,d,p=Xn(t[16]),h=[];for(let e=0;e<p.length;e+=1)h[e]=Ia(Fa(t,p,e));const f=t=>Kn(h[t],1,1,(()=>{h[t]=null}));let g="horizontal"===t[4]&&Na(t);return{c(){e=Le("div"),n=Le("div");for(let t=0;t<h.length;t+=1)h[t].c();s=We(),g&&g.c(),l=Je(),this.h()},l(t){e=rn(t,"DIV",{class:!0,style:!0});var r=Qe(e);n=rn(r,"DIV",{class:!0,style:!0});var o=Qe(n);for(let t=0;t<h.length;t+=1)h[t].l(o);o.forEach(Re),r.forEach(Re),s=sn(t),g&&g.l(t),l=Je(),this.h()},h(){Ge(n,"class",r=Aa["gallery__items-grid"]),Ge(n,"style",o=zr(t[15])),Ge(e,"class",i=Aa.gallery__scroller+" "+(t[27]?Nr["root_restrict-scroll"]:"")),Ge(e,"style",a=zr(t[5]))},m(r,o){ze(r,e,o),Me(e,n);for(let t=0;t<h.length;t+=1)h[t]&&h[t].m(n,null);t[64](n),t[65](e),ze(r,s,o),g&&g.m(r,o),ze(r,l,o),c=!0,u||(d=qe(e,"scroll",(function(){ue(t[7]?t[33]:null)&&(t[7]?t[33]:null).apply(this,arguments)})),u=!0)},p(r,s){if(t=r,82496&s[0]){let e;for(p=Xn(t[16]),e=0;e<p.length;e+=1){const r=Fa(t,p,e);h[e]?(h[e].p(r,s),Gn(h[e],1)):(h[e]=Ia(r),h[e].c(),Gn(h[e],1),h[e].m(n,null))}for(Jn(),e=p.length;e<h.length;e+=1)f(e);qn()}(!c||32768&s[0]&&o!==(o=zr(t[15])))&&Ge(n,"style",o),(!c||134217728&s[0]&&i!==(i=Aa.gallery__scroller+" "+(t[27]?Nr["root_restrict-scroll"]:"")))&&Ge(e,"class",i),(!c||32&s[0]&&a!==(a=zr(t[5])))&&Ge(e,"style",a),"horizontal"===t[4]?g?g.p(t,s):(g=Na(t),g.c(),g.m(l.parentNode,l)):g&&(g.d(1),g=null)},i(t){if(!c){for(let t=0;t<p.length;t+=1)Gn(h[t]);c=!0}},o(t){h=h.filter(Da);for(let t=0;t<h.length;t+=1)Kn(h[t]);c=!1},d(n){n&&(Re(e),Re(s),Re(l)),Be(h,n),t[64](null),t[65](null),g&&g.d(n),u=!1,d()}}}function za(t){let e,n,r,o;return e=new Yo({props:{cls:to("gallery",Aa,t[13]),componentContext:t[0],layoutParams:t[1],customPaddings:!0,customActions:"gallery",parentOf:t[8],replaceItems:t[31],$$slots:{default:[Ta]},$$scope:{ctx:t}}}),{c(){ar(e.$$.fragment)},l(t){sr(e.$$.fragment,t)},m(i,a){lr(e,i,a),n=!0,r||(o=qe(window,"resize",(function(){ue(t[7]?t[34]:null)&&(t[7]?t[34]:null).apply(this,arguments)})),r=!0)},p(n,r){t=n;const o={};8192&r[0]&&(o.cls=to("gallery",Aa,t[13])),1&r[0]&&(o.componentContext=t[0]),2&r[0]&&(o.layoutParams=t[1]),256&r[0]&&(o.parentOf=t[8]),134336252&r[0]|524288&r[2]&&(o.$$scope={dirty:r,ctx:t}),e.$set(o)},i(t){n||(Gn(e.$$.fragment,t),n=!0)},o(t){Kn(e.$$.fragment,t),n=!1},d(t){cr(e,t),r=!1,o()}}}function Ra(t,e,n){let r,o,i,a,s,l,c,u,d,p,h,f,g,m,v,y,$,b,_,w,x,k,E,C,A,j,V,D,F,P,S,I=oe,N=oe,O=oe,M=oe,T=oe,z=oe,R=oe,B=oe,L=oe,U=oe,H=oe;t.$$.on_destroy.push((()=>I())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>H()));let{componentContext:W}=e,{layoutParams:J}=e;const q=Cn(Or),G=q.direction;let K;ge(t,G,(t=>n(51,_=t)));let Y,Z=[],X=!1,Q=!1,tt=null,et=!1;const nt=q.getCustomization("galleryLeftClass"),rt=q.getCustomization("galleryRightClass");let ot,it,at,st,lt,ct=1,ut="horizontal",dt="start",pt=8,ht="",ft=[],gt={},mt=!1,vt={},yt=0;const $t=q.isDesktop;function bt(){if(!K)return;let t=K.scrollLeft;"rtl"===_&&(t*=-1);const e=K.scrollWidth,r=K.offsetWidth;"ltr"===_?(n(10,X=t>2),n(11,Q=t+r<e-2)):(n(11,Q=t>2),n(10,X=t+r<e-2))}ge(t,$t,(t=>n(62,P=t)));const _t=ui(bt,50);function wt(t){K.scroll({left:K.scrollLeft+.75*K.offsetWidth*("right"===t?1:-1),behavior:"smooth"})}function xt(){let t=[],e=Z[0].children.length;for(let n=0;n<e;++n)for(let e=0;e<ct;++e){const r=Z[e].children[n];r&&t.push(r)}return t}function kt(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";const r="horizontal"===ut,o=r?"offsetLeft":"offsetTop",i=r?"left":"top",a=t[e];a&&K.scroll({[i]:Math.max(0,a[o]+.01-pt/2),behavior:n})}function Et(t){const e=xt(),n=K.getBoundingClientRect(),r=e.findIndex((t=>function(t,e){return"horizontal"===ut?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"===ut?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 xn((()=>{n(37,et=!0),bt(),yt&&kt(xt(),yt,"auto")})),kn((()=>{n(37,et=!1),ot&&!W.fakeElement&&(q.unregisterInstance(ot),n(38,ot=void 0))})),t.$$set=t=>{"componentContext"in t&&n(0,W=t.componentContext),"layoutParams"in t&&n(1,J=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&W.json&&(n(39,ct=1),n(4,ut="horizontal"),n(40,dt="start"),n(42,pt=8),n(45,ht="")),1&t.$$.dirty[0]&&n(8,r=Array.isArray(W.json.items)&&W.json.items||[]),1&t.$$.dirty[0]&&(n(26,o=W.getDerivedFromVars(W.json.column_count)),U(),U=fe(o,(t=>n(61,F=t)))),1&t.$$.dirty[0]&&(n(25,i=W.getDerivedFromVars(W.json.orientation)),L(),L=fe(i,(t=>n(60,D=t)))),1&t.$$.dirty[0]&&(n(24,a=W.getDerivedFromVars(W.json.cross_content_alignment)),B(),B=fe(a,(t=>n(59,V=t)))),1&t.$$.dirty[0]&&(n(23,s=W.getDerivedFromVars(W.json.item_spacing)),R(),R=fe(s,(t=>n(58,j=t)))),1&t.$$.dirty[0]&&(n(22,l=W.getDerivedFromVars(W.json.cross_spacing)),z(),z=fe(l,(t=>n(57,A=t)))),1&t.$$.dirty[0]&&(n(21,c=W.getDerivedFromVars(W.json.paddings)),T(),T=fe(c,(t=>n(56,C=t)))),1&t.$$.dirty[0]&&(n(20,u=W.getDerivedFromVars(W.json.scroll_mode)),O(),O=fe(u,(t=>n(54,k=t)))),1&t.$$.dirty[0]&&(n(19,d=W.getDerivedFromVars(W.json.restrict_parent_scroll)),H(),H=fe(d,(t=>n(27,S=t)))),1&t.$$.dirty[0]&&(n(18,p=W.getDerivedFromVars(W.json.scrollbar)),N(),N=fe(p,(t=>n(53,x=t)))),1&t.$$.dirty[0]&&(n(17,h=W.getDerivedFromVars(W.json.default_item)),I(),I=fe(h,(t=>n(52,w=t)))),257&t.$$.dirty[0]&&n(50,f=r.map(((t,e)=>W.produceChildContext(t,{path:e})))),64&t.$$.dirty[1]|1&t.$$.dirty[2]&&n(7,g=P&&et),136&t.$$.dirty[0]|32&t.$$.dirty[1]&&(g?"undefined"!=typeof ResizeObserver&&(n(36,tt=new ResizeObserver((()=>{_t()}))),tt.observe(Y)):tt&&(tt.disconnect(),n(36,tt=null))),1073742080&t.$$.dirty[1]&&n(39,ct=Xo(F,ct)),524544&t.$$.dirty[1]&&n(16,m=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}(f,ct)),16&t.$$.dirty[0]|536870912&t.$$.dirty[1]&&n(4,ut=Qi(D,ut)),268435968&t.$$.dirty[1]&&n(40,dt=function(t,e){return"start"===t||"center"===t||"end"===t?t:e}(V,dt)),134219776&t.$$.dirty[1]&&(n(42,pt=so(j,pt)),n(41,it=Rr(pt))),67119104&t.$$.dirty[1]&&(n(44,st=so(A,pt)),n(43,at=Rr(st))),34619392&t.$$.dirty[1]&&n(45,ht=ao(C,_,ht)),16&t.$$.dirty[0]&&n(49,v="horizontal"===ut?"grid-template-columns":"grid-template-rows"),17&t.$$.dirty[0]|524288&t.$$.dirty[1]){let t=[];f.forEach((e=>{const n="horizontal"===ut?"width":"height";t.push(W.getDerivedFromVars(e.json[n]))})),n(12,lt=gr(t,(t=>t))),M(),M=fe(lt,(t=>n(55,E=t)))}if(16&t.$$.dirty[0]|16810240&t.$$.dirty[1]&&(n(46,ft=[]),ct>1?ft.push("auto"):E.forEach((t=>{!t&&"horizontal"===ut||"match_parent"===(null==t?void 0:t.type)?ft.push("100%"):ft.push("max-content")}))),112&t.$$.dirty[0]|8391424&t.$$.dirty[1]){const t={};let e={};n(47,mt=!1),"horizontal"===ut?e.parentVAlign=dt:e.parentHAlign=dt,"paging"===k&&(n(47,mt=!0),e.scrollSnap="start",t["horizontal"===ut?"scroll-padding-left":"scroll-padding-top"]=Rr(pt/2)),1===ct&&(e.parentLayoutOrientation=ut),n(5,gt=uo(t,gt)),n(6,vt=uo(e,vt))}20480&t.$$.dirty[1]&&n(15,y={padding:ht,"grid-gap":at}),295936&t.$$.dirty[1]&&n(14,$={"grid-gap":it,[v]:Va(ft)}),16&t.$$.dirty[0]|4259840&t.$$.dirty[1]&&n(13,b={orientation:ut,"scroll-snap":mt,scrollbar:"auto"===x?"auto":"none"}),2228224&t.$$.dirty[1]&&n(48,yt=so(w,yt)),1&t.$$.dirty[0]&&W.json&&_t(),21&t.$$.dirty[0]|128&t.$$.dirty[1]&&W.json&&(ot&&(q.unregisterInstance(ot),n(38,ot=void 0)),W.json.id&&!W.fakeElement&&(n(38,ot=W.json.id),q.registerInstance(ot,{setCurrentItem(t){const e=xt();if(t<0||t>e.length-1)throw new Error('Item is out of range in "set-current-item" action');kt(e,t)},setPreviousItem(t){const e=Et("prev"),n=xt();let r=e-1;r<0&&(r="ring"===t?n.length-1:e),kt(n,r)},setNextItem(t){const e="horizontal"===ut?K.scrollLeft+K.offsetWidth===K.scrollWidth:K.scrollTop+K.offsetHeight===K.scrollHeight,n=xt();if(e&&"ring"===t)return void kt(n,0);const r=Et("next");let o=r+1;o>n.length-1&&(o="ring"===t?0:r),kt(n,o)}})))},[W,J,K,Y,ut,gt,vt,g,r,Z,X,Q,lt,b,$,y,m,h,p,d,u,c,l,s,a,i,o,S,G,nt,rt,function(t){n(0,W=Object.assign(Object.assign({},W),{json:Object.assign(Object.assign({},W.json),{items:t.filter(Ur)})}))},$t,bt,_t,wt,tt,et,ot,ct,dt,it,pt,at,st,ht,ft,mt,yt,v,f,_,w,x,k,E,C,A,j,V,D,F,P,function(t,e){Vn[t?"unshift":"push"]((()=>{Z[e]=t,n(9,Z)}))},function(t){Vn[t?"unshift":"push"]((()=>{Y=t,n(3,Y)}))},function(t){Vn[t?"unshift":"push"]((()=>{K=t,n(2,K)}))},()=>wt("left"),()=>wt("right")]}const Ba={tabs:"divkit-e0df5",tabs__list:"divkit-ea19b",tabs__item:"divkit-c25c7",tabs__item_selected:"divkit-d560a",tabs__item_actionable:"divkit-dfda0",tabs__panels:"divkit-f5dc0",tabs__swiper:"divkit-eb42c",tabs__swiper_animated:"divkit-b9f18",tabs__swiper_inited:"divkit-fa574",tabs__panel:"divkit-cc9fb",tabs__panel_visible:"divkit-e7306",tabs__separator:"divkit-b85bf"},La=37,Ua=39,Ha=36,Wa=35,{Boolean:Ja}=Ve;function qa(t,e,n){const r=t.slice();r[91]=e[n];const o=r[91].index;r[92]=o;const i=r[28][r[92]];return r[93]=i,r}function Ga(t,e,n){const r=t.slice();r[91]=e[n];const o=r[91].index;r[92]=o;const i=r[92]===r[15];return r[96]=i,r}function Ka(t){let e,n;return e=new Yo({props:{cls:to("tabs",Ba,t[46]),componentContext:t[0],layoutParams:t[1],customActions:"tabs",parentOf:t[41],parentOfSimpleMode:!0,replaceItems:t[47],$$slots:{default:[es]},$$scope:{ctx:t}}}),{c(){ar(e.$$.fragment)},l(t){sr(e.$$.fragment,t)},m(t,r){lr(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),1024&n[1]&&(r.parentOf=t[41]),2147483641&n[0]|2049&n[1]|64&n[3]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Gn(e.$$.fragment,t),n=!0)},o(t){Kn(e.$$.fragment,t),n=!1},d(t){cr(e,t)}}}function Ya(t){let e,n,r=t[91].title+"";return{c(){e=He(r),n=We()},l(t){e=an(t,r),n=sn(t)},m(t,r){ze(t,e,r),ze(t,n,r)},p(t,n){65536&n[0]&&r!==(r=t[91].title+"")&&cn(e,r)},d(t){t&&(Re(e),Re(n))}}}function Za(t){let e,n;function r(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t[68](t[92],...n)}return e=new Ao({props:{componentContext:t[0],cls:to("tabs__item",Ba,{selected:t[96],actionable:Boolean(t[91].title_click_action)}),actions:t[91].title_click_action&&!t[0].fakeElement?[t[91].title_click_action].filter(vo):[],attrs:{id:"".concat(t[44],"-tab-").concat(t[92]),"aria-controls":"".concat(t[44],"-panel-").concat(t[92]),role:"tab",tabindex:t[96]&&!t[0].fakeElement?t[91].title_click_action?void 0:"0":"-1","aria-selected":t[96]?"true":"false"},customAction:t[0].fakeElement?null:r,$$slots:{default:[Ya]},$$scope:{ctx:t}}}),{c(){ar(e.$$.fragment)},l(t){sr(e.$$.fragment,t)},m(t,r){lr(e,t,r),n=!0},p(n,o){t=n;const i={};1&o[0]&&(i.componentContext=t[0]),98304&o[0]&&(i.cls=to("tabs__item",Ba,{selected:t[96],actionable:Boolean(t[91].title_click_action)})),65537&o[0]&&(i.actions=t[91].title_click_action&&!t[0].fakeElement?[t[91].title_click_action].filter(vo):[]),98305&o[0]&&(i.attrs={id:"".concat(t[44],"-tab-").concat(t[92]),"aria-controls":"".concat(t[44],"-panel-").concat(t[92]),role:"tab",tabindex:t[96]&&!t[0].fakeElement?t[91].title_click_action?void 0:"0":"-1","aria-selected":t[96]?"true":"false"}),65537&o[0]&&(i.customAction=t[0].fakeElement?null:r),65536&o[0]|64&o[3]&&(i.$$scope={dirty:o,ctx:t}),e.$set(i)},i(t){n||(Gn(e.$$.fragment,t),n=!0)},o(t){Kn(e.$$.fragment,t),n=!1},d(t){cr(e,t)}}}function Xa(t){let e,n,r;return{c(){e=Le("div"),this.h()},l(t){e=rn(t,"DIV",{class:!0,style:!0}),Qe(e).forEach(Re),this.h()},h(){Ge(e,"class",n=Ba.tabs__separator),Ge(e,"style",r=zr(t[31]))},m(t,n){ze(t,e,n)},p(t,n){1&n[1]&&r!==(r=zr(t[31]))&&Ge(e,"style",r)},d(t){t&&Re(e)}}}function Qa(t){let e,n;return e=new Nc({props:{componentContext:t[93],layoutParams:t[3]}}),{c(){ar(e.$$.fragment)},l(t){sr(e.$$.fragment,t)},m(t,r){lr(e,t,r),n=!0},p(t,n){const r={};268500992&n[0]&&(r.componentContext=t[93]),8&n[0]&&(r.layoutParams=t[3]),e.$set(r)},i(t){n||(Gn(e.$$.fragment,t),n=!0)},o(t){Kn(e.$$.fragment,t),n=!1},d(t){cr(e,t)}}}function ts(t){let e,n,r,o,i,a,s=t[93]&&Qa(t);return{c(){e=Le("div"),s&&s.c(),n=We(),this.h()},l(t){e=rn(t,"DIV",{class:!0,role:!0,id:!0,"aria-labelledby":!0,style:!0});var r=Qe(e);s&&s.l(r),n=sn(r),r.forEach(Re),this.h()},h(){Ge(e,"class",r=to("tabs__panel",Ba,{visible:t[29][t[92]]})),Ge(e,"role","tabpanel"),Ge(e,"id",o=t[44]+"-panel-"+t[92]),Ge(e,"aria-labelledby",i=t[44]+"-tab-"+t[92]),dn(e,"left",100*t[92]+"%")},m(t,r){ze(t,e,r),s&&s.m(e,null),Me(e,n),a=!0},p(t,l){t[93]?s?(s.p(t,l),268500992&l[0]&&Gn(s,1)):(s=Qa(t),s.c(),Gn(s,1),s.m(e,n)):s&&(Jn(),Kn(s,1,1,(()=>{s=null})),qn()),(!a||536936448&l[0]&&r!==(r=to("tabs__panel",Ba,{visible:t[29][t[92]]})))&&Ge(e,"class",r),(!a||65536&l[0]&&o!==(o=t[44]+"-panel-"+t[92]))&&Ge(e,"id",o),(!a||65536&l[0]&&i!==(i=t[44]+"-tab-"+t[92]))&&Ge(e,"aria-labelledby",i),(!a||65536&l[0])&&dn(e,"left",100*t[92]+"%")},i(t){a||(Gn(s),a=!0)},o(t){Kn(s),a=!1},d(t){t&&Re(e),s&&s.d()}}}function es(t){let e,n,r,o,i,a,s,l,c,u,d,p=Xn(t[16]),h=[];for(let e=0;e<p.length;e+=1)h[e]=Za(Ga(t,p,e));const f=t=>Kn(h[t],1,1,(()=>{h[t]=null}));let g=t[18]&&Xa(t),m=Xn(t[16]),v=[];for(let e=0;e<m.length;e+=1)v[e]=ts(qa(t,m,e));const y=t=>Kn(v[t],1,1,(()=>{v[t]=null}));return{c(){e=Le("div");for(let t=0;t<h.length;t+=1)h[t].c();r=We(),g&&g.c(),o=We(),i=Le("div"),a=Le("div");for(let t=0;t<v.length;t+=1)v[t].c();this.h()},l(t){e=rn(t,"DIV",{class:!0,role:!0});var n=Qe(e);for(let t=0;t<h.length;t+=1)h[t].l(n);n.forEach(Re),r=sn(t),g&&g.l(t),o=sn(t),i=rn(t,"DIV",{class:!0});var s=Qe(i);a=rn(s,"DIV",{class:!0});var l=Qe(a);for(let t=0;t<v.length;t+=1)v[t].l(l);l.forEach(Re),s.forEach(Re),this.h()},h(){Ge(e,"class",n=Ba.tabs__list+" "+(t[42]?Nr["root_restrict-scroll"]:"")),Ge(e,"role","tablist"),dn(e,"--divkit-tabs-title-padding",t[14]?ro(t[14],t[17]):""),dn(e,"--divkit-tabs-font-size",Rr(t[4])),dn(e,"--divkit-tabs-paddings",t[5]),dn(e,"--divkit-tabs-line-height",t[22]),dn(e,"--divkit-tabs-letter-spacing",t[23]),dn(e,"--divkit-tabs-active-font-weight",t[7]||""),dn(e,"--divkit-tabs-inactive-font-weight",t[8]||""),dn(e,"--divkit-tabs-active-font-family",t[24]||""),dn(e,"--divkit-tabs-inactive-font-family",t[25]||""),dn(e,"--divkit-tabs-active-text-color",t[9]),dn(e,"--divkit-tabs-inactive-text-color",t[10]),dn(e,"--divkit-tabs-active-background-color",t[11]),dn(e,"--divkit-tabs-inactive-background-color",t[12]),dn(e,"--divkit-tabs-border-radius",t[6]),dn(e,"--divkit-tabs-items-spacing",t[13]?Br(t[13]):""),Ge(a,"class",s=to("tabs__swiper",Ba,{inited:t[26],animated:t[27]})),Ge(i,"class",l=Ba.tabs__panels+" "+(t[42]?Nr["root_restrict-scroll"]:""))},m(n,s){ze(n,e,s);for(let t=0;t<h.length;t+=1)h[t]&&h[t].m(e,null);t[69](e),ze(n,r,s),g&&g.m(n,s),ze(n,o,s),ze(n,i,s),Me(i,a);for(let t=0;t<v.length;t+=1)v[t]&&v[t].m(a,null);t[70](a),t[71](i),c=!0,u||(d=[qe(e,"keydown",t[49]),qe(a,"touchstart",(function(){ue(t[30]?t[50]:void 0)&&(t[30]?t[50]:void 0).apply(this,arguments)})),qe(a,"touchmove",(function(){ue(t[30]?t[51]:void 0)&&(t[30]?t[51]:void 0).apply(this,arguments)})),qe(a,"touchend",(function(){ue(t[30]?t[52]:void 0)&&(t[30]?t[52]:void 0).apply(this,arguments)})),qe(a,"touchcancel",(function(){ue(t[30]?t[52]:void 0)&&(t[30]?t[52]:void 0).apply(this,arguments)}))],u=!0)},p(r,u){if(t=r,98305&u[0]|139264&u[1]){let n;for(p=Xn(t[16]),n=0;n<p.length;n+=1){const r=Ga(t,p,n);h[n]?(h[n].p(r,u),Gn(h[n],1)):(h[n]=Za(r),h[n].c(),Gn(h[n],1),h[n].m(e,null))}for(Jn(),n=p.length;n<h.length;n+=1)f(n);qn()}if((!c||2048&u[1]&&n!==(n=Ba.tabs__list+" "+(t[42]?Nr["root_restrict-scroll"]:"")))&&Ge(e,"class",n),147456&u[0]&&dn(e,"--divkit-tabs-title-padding",t[14]?ro(t[14],t[17]):""),16&u[0]&&dn(e,"--divkit-tabs-font-size",Rr(t[4])),32&u[0]&&dn(e,"--divkit-tabs-paddings",t[5]),4194304&u[0]&&dn(e,"--divkit-tabs-line-height",t[22]),8388608&u[0]&&dn(e,"--divkit-tabs-letter-spacing",t[23]),128&u[0]&&dn(e,"--divkit-tabs-active-font-weight",t[7]||""),256&u[0]&&dn(e,"--divkit-tabs-inactive-font-weight",t[8]||""),16777216&u[0]&&dn(e,"--divkit-tabs-active-font-family",t[24]||""),33554432&u[0]&&dn(e,"--divkit-tabs-inactive-font-family",t[25]||""),512&u[0]&&dn(e,"--divkit-tabs-active-text-color",t[9]),1024&u[0]&&dn(e,"--divkit-tabs-inactive-text-color",t[10]),2048&u[0]&&dn(e,"--divkit-tabs-active-background-color",t[11]),4096&u[0]&&dn(e,"--divkit-tabs-inactive-background-color",t[12]),64&u[0]&&dn(e,"--divkit-tabs-border-radius",t[6]),8192&u[0]&&dn(e,"--divkit-tabs-items-spacing",t[13]?Br(t[13]):""),t[18]?g?g.p(t,u):(g=Xa(t),g.c(),g.m(o.parentNode,o)):g&&(g.d(1),g=null),805371912&u[0]|8192&u[1]){let e;for(m=Xn(t[16]),e=0;e<m.length;e+=1){const n=qa(t,m,e);v[e]?(v[e].p(n,u),Gn(v[e],1)):(v[e]=ts(n),v[e].c(),Gn(v[e],1),v[e].m(a,null))}for(Jn(),e=m.length;e<v.length;e+=1)y(e);qn()}(!c||201326592&u[0]&&s!==(s=to("tabs__swiper",Ba,{inited:t[26],animated:t[27]})))&&Ge(a,"class",s),(!c||2048&u[1]&&l!==(l=Ba.tabs__panels+" "+(t[42]?Nr["root_restrict-scroll"]:"")))&&Ge(i,"class",l)},i(t){if(!c){for(let t=0;t<p.length;t+=1)Gn(h[t]);for(let t=0;t<m.length;t+=1)Gn(v[t]);c=!0}},o(t){h=h.filter(Ja);for(let t=0;t<h.length;t+=1)Kn(h[t]);v=v.filter(Ja);for(let t=0;t<v.length;t+=1)Kn(v[t]);c=!1},d(n){n&&(Re(e),Re(r),Re(o),Re(i)),Be(h,n),t[69](null),g&&g.d(n),Be(v,n),t[70](null),t[71](null),u=!1,ce(d)}}}function ns(t){let e,n,r=!t[2]&&Ka(t);return{c(){r&&r.c(),e=Je()},l(t){r&&r.l(t),e=Je()},m(t,o){r&&r.m(t,o),ze(t,e,o),n=!0},p(t,n){t[2]?r&&(Jn(),Kn(r,1,1,(()=>{r=null})),qn()):r?(r.p(t,n),4&n[0]&&Gn(r,1)):(r=Ka(t),r.c(),Gn(r,1),r.m(e.parentNode,e))},i(t){n||(Gn(r),n=!0)},o(t){Kn(r),n=!1},d(t){t&&Re(e),r&&r.d(t)}}}function rs(t,e,n){let r,o,i,a,s,l,c,u,d,p,h,f,g,m,v,y,$,b,_,w,x,E,C,A,j,V,D,F=oe,P=oe,S=oe,I=oe,N=oe,O=oe,M=oe,T=oe,z=oe;var R,B;t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>S())),t.$$.on_destroy.push((()=>I())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>z()));let{componentContext:L}=e,{layoutParams:U}=e;const H=Cn(Or),W=H.direction;ge(t,W,(t=>n(17,w=t)));const J=H.genId("tabs");let q,G=!1,K=fr([]);ge(t,K,(t=>n(16,$=t)));let Y,Z,X,Q,tt,et,nt,rt,ot,it={},at=12,st="",lt="",ct="",dt="",pt="",ht="",ft="",gt="",mt="",vt="",yt=0,$t="",bt="",_t=null,wt=!1,xt=!1,kt=[],Et=[],Ct=null,At=null,jt=null,Vt=!1,Dt=!1;async function Ft(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(et=g,n(15,g=t),Mt(),n(27,xt=!0),It(100*-g),Nt(),async function(){await Nn();const t=document.getElementById("".concat(J,"-panel-").concat(g));t&&n(20,Z.style.height=Rr(t.offsetHeight),Z)}(),Ot(),ot=-g*Z.clientWidth,e){await Nn();const t=Y.querySelector(".".concat(Ba.tabs__item_selected));t&&t.focus()}}function Pt(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=null==$?void 0:$.length;if(!n)return;const r=$.map((t=>t.index));let o=r.indexOf(g)+t;o>=n?o=0:o<0&&(o=n-1),Ft(r[o],e)}function St(t,e){return g===e||(Ft(e),!1)}async function It(t){await Nn(),n(21,X.style.transform="translate3d(".concat(t,"%,0,0)"),X)}function Nt(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const e=t?Math.max(0,g-1):Math.min(g,null!=et?et:g),o=t?Math.min(r.length-1,g+1):Math.max(g,null!=et?et:g);n(28,kt=kt.map(((t,n)=>{var i;return t||(n>=e&&n<=o&&(null===(i=r[n])||void 0===i?void 0:i.div)?L.produceChildContext(r[n].div,{path:n}):void 0)}))),n(29,Et=Et.map(((t,n)=>n>=e&&n<=o)))}function Ot(){Ct&&clearTimeout(Ct),Ct=window.setTimeout((()=>{n(29,Et=r.map(((t,e)=>e===g)))}),400)}function Mt(){wt||(n(26,wt=!0),n(20,Z.style.height=Rr(Z.clientHeight),Z),n(21,X.style.transform="translate3d(".concat(100*-(null!=et?et:g),"%,0,0)"),X))}return kn((()=>{q&&(H.unregisterInstance(q),n(55,q=void 0))})),t.$$set=t=>{"componentContext"in t&&n(0,L=t.componentContext),"layoutParams"in t&&n(1,U=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&L.json&&(n(4,at=12),n(5,st=""),n(6,dt=""),n(7,Q=void 0),n(24,pt=""),n(8,tt=void 0),n(25,ht=""),n(9,ft=""),n(10,gt=""),n(11,mt=""),n(12,vt=""),n(13,yt=0),n(56,$t=""),n(57,bt=""),n(14,_t=null)),1&t.$$.dirty[0]&&n(58,r=L.json.items||[]),134217728&t.$$.dirty[1]&&n(41,o=r.map((t=>t.div))),1&t.$$.dirty[0]&&(n(40,i=L.getDerivedFromVars(L.json.width)),T(),T=fe(i,(t=>n(67,V=t)))),1&t.$$.dirty[0]&&(n(39,a=L.getDerivedFromVars(L.json.height)),M(),M=fe(a,(t=>n(66,j=t)))),1&t.$$.dirty[0]&&n(60,s=L.getJsonWithVars(L.json.selected_tab)),1&t.$$.dirty[0]&&(n(38,l=L.getDerivedFromVars(L.json.tab_title_style)),O(),O=fe(l,(t=>n(65,A=t)))),1&t.$$.dirty[0]&&(n(37,c=L.getDerivedFromVars(L.json.has_separator)),N(),N=fe(c,(t=>n(18,C=t)))),1&t.$$.dirty[0]&&(n(36,u=L.getDerivedFromVars(L.json.separator_color)),I(),I=fe(u,(t=>n(64,E=t)))),1&t.$$.dirty[0]&&(n(35,d=L.getDerivedFromVars(L.json.separator_paddings)),S(),S=fe(d,(t=>n(63,x=t)))),1&t.$$.dirty[0]&&(n(34,p=L.getDerivedFromVars(L.json.switch_tabs_by_content_swipe_enabled)),P(),P=fe(p,(t=>n(62,_=t)))),1&t.$$.dirty[0]&&(n(33,h=L.getDerivedFromVars(L.json.restrict_parent_scroll)),z(),z=fe(h,(t=>n(42,D=t)))),1&t.$$.dirty[0]&&(n(32,f=L.getDerivedFromVars(L.json.title_paddings)),F(),F=fe(f,(t=>n(61,b=t)))),536870912&t.$$.dirty[1]&&n(15,g=s&&Number(s)||0),1&t.$$.dirty[0]|134217728&t.$$.dirty[1])if(Array.isArray(r)&&r.length){let t=[];r.forEach(((e,n)=>{const r=L.getJsonWithVars({index:n,title:e.title,title_click_action:e.title_click_action});r.title&&"string"==typeof r.title?t.push(r):L.logError(ut(new Error("Incorrect title for the tab"),{additional:{index:n}}))})),K.set(t)}else K.set([]);if(65537&t.$$.dirty[0]&&((null==$?void 0:$.length)?n(2,G=!1):(n(2,G=!0),L.logError(ut(new Error('Incorrect or empty "items" prop for div "tabs"'))))),8&t.$$.dirty[0]|48&t.$$.dirty[2]){let t={};"wrap_content"===(null==V?void 0:V.type)&&(t.parentHorizontalWrapContent=!0),j&&"wrap_content"!==j.type||(t.parentVerticalWrapContent=!0),n(3,it=uo(t,it))}if(32773&t.$$.dirty[0]|134217728&t.$$.dirty[1]&&!G&&(g<0||g>=r.length)&&(L.logError(ut(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:L.json.selected_tab,length:r.length}})),n(15,g=g<0?0:r.length-1)),98309&t.$$.dirty[0]|4194304&t.$$.dirty[1]&&(G||$.some((t=>g===t.index))||(L.logError(ut(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:L.json.selected_tab}})),n(15,g=(null===n(53,R=$[0])||void 0===R?void 0:R.index)||0))),8&t.$$.dirty[2]&&n(59,m=A||{}),16&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&n(4,at=Xo(m.font_size,at)),131120&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&(m.font_size||m.paddings)){const t=m.paddings||{top:6,right:8,bottom:6,left:8},e={top:(Number(t.top)||0)/at*10,right:(Number("ltr"===w?t.end:t.start)||Number(t.right)||0)/at*10,bottom:(Number(t.bottom)||0)/at*10,left:(Number("ltr"===w?t.start:t.end)||Number(t.left)||0)/at*10};n(5,st=ao(e,w,st))}if(16&t.$$.dirty[0]|268435456&t.$$.dirty[1]){const t=m.line_height;void 0!==t&&Vo(t)&&n(22,lt=Rr(t/at*10))}if(16&t.$$.dirty[0]|268435456&t.$$.dirty[1]){const t=m.letter_spacing;void 0!==t&&io(t)&&n(23,ct=Rr(t/at*10))}if(80&t.$$.dirty[0]|276824064&t.$$.dirty[1]&&(m.corner_radius||m.corners_radius||m.font_size)){const t=null!==n(54,B=m.corner_radius)&&void 0!==B?B:1e3;m.corners_radius?n(6,dt=function(t,e,n,r){const o=[t["top-left"],t["top-right"],t["bottom-right"],t["bottom-left"]];for(let t=0;t<o.length;++t)if(o[t]&&!io(o[t]))return r;return mo(t,e,n)}(m.corners_radius,t,at,dt)):io(t)&&n(6,dt=Rr(t/at*10))}128&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&(n(7,Q=ti(m.active_font_weight||m.font_weight,Q)),m.font_family&&"string"==typeof m.font_family?n(24,pt=H.typefaceProvider(m.font_family,{fontWeight:Q||400})):n(24,pt="")),256&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&(n(8,tt=ti(m.inactive_font_weight||m.font_weight,tt)),m.font_family&&"string"==typeof m.font_family?n(25,ht=H.typefaceProvider(m.font_family,{fontWeight:tt||400})):n(25,ht="")),512&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&n(9,ft=k(m.active_text_color,1,ft)),1024&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&n(10,gt=k(m.inactive_text_color,1,gt)),2048&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&n(11,mt=k(m.active_background_color,1,mt)),4096&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&n(12,vt=k(m.inactive_background_color,1,vt)),8192&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&n(13,yt=so(m.item_spacing,yt)),393216&t.$$.dirty[0]|100663296&t.$$.dirty[1]|6&t.$$.dirty[2]&&C&&(E&&n(56,$t=k(E,1,$t)),x&&n(57,bt=ao(x,w,bt))),100663296&t.$$.dirty[1]&&n(31,v={background:$t,margin:bt}),1&t.$$.dirty[2]&&n(30,y=void 0===_||Boolean(_)),16384&t.$$.dirty[0]|1073741824&t.$$.dirty[1]&&n(14,_t=go(b||void 0,_t)),134217728&t.$$.dirty[1]&&function(t){G||(n(28,kt=t.map(((t,e)=>{if(e===g&&(null==t?void 0:t.div))return L.produceChildContext(t.div,{path:e})}))),n(29,Et=t.map(((t,e)=>e===g))))}(r),32773&t.$$.dirty[0]|150994944&t.$$.dirty[1]&&L.json&&(q&&(H.unregisterInstance(q),n(55,q=void 0)),!L.json.id||G||L.fakeElement||(n(55,q=L.json.id),H.registerInstance(q,{setCurrentItem(t){if(t<0||t>r.length-1)throw new Error('Item is out of range in "set-current-item" action');Ft(t)},setPreviousItem(t){let e=g-1;e<0&&(e="ring"===t?r.length-1:g),Ft(e)},setNextItem(t){let e=g+1;e>r.length-1&&(e="ring"===t?0:g),Ft(e)}})))},[L,U,G,it,at,st,dt,Q,tt,ft,gt,mt,vt,yt,_t,g,$,w,C,Y,Z,X,lt,ct,pt,ht,wt,xt,kt,Et,y,v,f,h,p,d,u,c,l,a,i,o,D,W,J,K,{},function(t){L.json.items&&n(0,L=Object.assign(Object.assign({},L),{json:Object.assign(Object.assign({},L.json),{items:L.json.items.map(((e,n)=>Object.assign(Object.assign({},e),{div:t[n]})))})}))},St,function(t){if(!(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)&&r){if(t.which===La)Pt(-1,!0);else if(t.which===Ua)Pt(1,!0);else if(t.which===Ha)Ft(0,!0);else{if(t.which!==Wa)return;Ft(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(Nr["root_restrict-scroll"]));r.length<2||t.touches.length>1||i&&i!==Z||(Vt=!1,Dt=!1,At=wo(t),jt=null,nt=Date.now(),rt=ot||-g*Z.clientWidth,n(27,xt=!1),Ct&&clearTimeout(Ct))},function(t){const e=wo(t);if(!At||jt&&jt.x===e.x&&jt.y===e.y)return;jt=e;const n=Z.clientWidth;if(Vt){ot=e.x-At.x+rt;const t=n*r.length;if(ot>0)ot=ot*n/(ot+3*n);else if(-ot+n>t){let e=-ot+n-t;e=e*n/(e+3*n),ot=n-t-e}It(100*ot/n)}else Math.abs(e.y-At.y)>10?Dt=!0:!Dt&&Math.abs(e.x-At.x)>8&&(Mt(),Vt=!0,At=e,It(100*-g),Nt(!0));Vt&&t.cancelable&&t.preventDefault()},function(){Dt=!1,At=null;let t=g;if(!Vt)return;Vt=!1;const e=Math.min(512,Z.clientWidth);Math.abs(rt-ot)>e/4*Math.min(1,(Date.now()-nt)/750)&&(t+=rt>ot?1:-1),t>=r.length?t=r.length-1:t<0&&(t=0),t===g?(ot=-t*e,It(100*-t),Ot()):Ft(t)},R,B,q,$t,bt,r,m,s,b,_,x,E,A,j,V,(t,e)=>St(0,t),function(t){Vn[t?"unshift":"push"]((()=>{Y=t,n(19,Y)}))},function(t){Vn[t?"unshift":"push"]((()=>{X=t,n(21,X)}))},function(t){Vn[t?"unshift":"push"]((()=>{Z=t,n(20,Z)}))}]}const os={state:"divkit-b8efc",state__animations:"divkit-adaae","state__animation-child":"divkit-eb860","state__animation-child-inner":"divkit-e08c6"};function is(t){return t<.5?4*t*t*t:.5*Math.pow(2*t-2,3)+1}function as(t){return t*t*t}function ss(t){const e=t-1;return e*e*e+1}function ls(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 cs=ls([.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]),us=ls([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]),ds={linear:ie,ease:cs,ease_in:as,ease_out:ss,ease_in_out:is,spring:us},ps=200,hs=0,fs=0,gs=0;function ms(t){return Math.max(...t.map((t=>(Number(t.duration)||ps)+(Number(t.start_delay)||hs))))}function vs(t,e){let{transitions:n,elementBbox:r,rootBbox:o,direction:i,maxDuration:a,alpha:s}=e;const l=null!=s?s:1;return{duration:$o()?0:a,css:t=>{const e=t*a,s=n.map((t=>{const n=Number(t.start_delay)||hs,a=Number(t.duration)||ps,s=Math.max(0,Math.min(1,(e-n)/a)),c="in"===i?1-s:s,u=(ds[t.interpolator||"ease_in_out"]||is)(c);if("fade"===t.type)return u>=1?{active:!1,opacity:0}:{active:u>0&&u<1,opacity:(1-u)*l+u*(t.alpha||fs)};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,h;const e=1-u+u*(t.scale||gs),n=null!==(p=t.pivot_x)&&void 0!==p?p:.5,o=null!==(h=t.pivot_y)&&void 0!==h?h:.5,i=(1-e)*r.width*n,a=(1-e)*r.height*o;return{active:u>0&&u<1,scale:"translate(".concat(i,"px, ").concat(a,"px) scale(").concat(e,")")}}return{}})),c=s.map((t=>t.opacity)).filter((t=>void 0!==t)).reduce(((t,e)=>t*e),1),u=s.map((t=>t.translate)).filter((t=>void 0!==t)).join(" "),d=s.map((t=>t.scale)).filter((t=>void 0!==t)).join(" "),p=s.filter((t=>t.active)).map((t=>t.scale)).filter((t=>void 0!==t)),h=[u,p.length?p[p.length-1]:d].filter(Boolean).join(" ");return"transform:".concat(h||"none",";opacity:").concat(c)}}}function ys(t,e,n){return t*(1-n)+e*n}const $s={linear:ie,ease:cs,ease_in:as,ease_out:ss,ease_in_out:is,spring:us},bs=200,_s=0;function ws(t,e){var n,r;let{rootBbox:o,beforeBbox:i,afterBbox:a,transition:s}=e;return{delay:null!==(n=s.start_delay)&&void 0!==n?n:_s,duration:$o()?0:null!==(r=s.duration)&&void 0!==r?r:bs,easing:s.interpolator&&s.interpolator in $s?$s[s.interpolator]:is,css:t=>["top:".concat(ys(i.top,a.top,t)-o.top,"px"),"left:".concat(ys(i.left,a.left,t)-o.left,"px"),"width:".concat(ys(i.width,a.width,t),"px"),"height:".concat(ys(i.height,a.height,t),"px")].join(";")}}function xs(t){const e=[];return"set"===t.type?(t.items||[]).forEach((t=>{e.push(...xs(t))})):e.push(t),e}const ks={tooltip:"divkit-f1907",tooltip_visible:"divkit-e5914"},Es={linear:ie,ease:cs,ease_in:as,ease_out:ss,ease_in_out:is,spring:us},Cs=300,As=0;function js(t,e){let{animations:n,direction:r}=e;if(!n)return{};const o=fo(n),i=(a=o,Math.max(...a.map((t=>(Number(t.duration)||Cs)+(Number(t.start_delay)||As)))));var a;return o.some((t=>"no_animation"===t.name))?{}:{duration:$o()?0:i,css:t=>{const e=t*i,n=o.map((t=>{const n=Number(t.start_delay)||As,o=Number(t.duration)||Cs,i=Math.max(0,Math.min(1,(e-n)/o)),a=(Es[t.interpolator||"ease_in_out"]||is)(i);var s,l;if("fade"===t.name)return{active:a>0&&a<1,opacity:(1-a)*("in"===r&&null!==(s=t.start_value)&&void 0!==s?s:0)+a*("in"===r?1:null!==(l=t.end_value)&&void 0!==l?l:1)};if("translate"===t.name){var c,u;const e=-("in"===r&&null!==(c=t.start_value)&&void 0!==c?c:10),n=-("in"===r?0:null!==(u=t.end_value)&&void 0!==u?u:0);return{active:a>0&&a<1,translate:"translateY(".concat((1-a)*e+a*n).concat("in"===r&&void 0!==t.start_value||"out"===r&&void 0!==t.end_value?"%":"px",")")}}if("scale"===t.name){var d,p;const e="in"===r&&null!==(d=t.start_value)&&void 0!==d?d:0,n="in"===r?1:null!==(p=t.end_value)&&void 0!==p?p:1;return{active:a>0&&a<1,scale:"scale(".concat((1-a)*e+a*n,")")}}return{}})),a=n.map((t=>t.opacity)).filter((t=>void 0!==t)).reduce(((t,e)=>t*e),1),s=n.map((t=>t.translate)).filter((t=>void 0!==t)).join(" "),l=n.map((t=>t.scale)).filter((t=>void 0!==t)).join(" "),c=n.filter((t=>t.active)).map((t=>t.scale)).filter((t=>void 0!==t)),u=[s,c.length?c[c.length-1]:l].filter(Boolean).join(" ");return"transform:".concat(u||"none",";opacity:").concat(a)}}}const{window:Vs}=Ve;function Ds(t){let e,n,r,o,i,a,s,l;return n=new Nc({props:{componentContext:t[11]}}),{c(){e=Le("div"),ar(n.$$.fragment),this.h()},l(t){e=rn(t,"DIV",{class:!0});var r=Qe(e);sr(n.$$.fragment,r),r.forEach(Re),this.h()},h(){Ge(e,"class",r=to("tooltip",ks,t[5])+" "+(t[12]?Nr.root_platform_desktop:"")),dn(e,"top",t[2]),dn(e,"left",t[1]),dn(e,"width",t[3]),dn(e,"height",t[4])},m(r,o){ze(r,e,o),lr(n,e,null),t[27](e),a=!0,s||(l=[qe(Vs,"click",t[16]),qe(Vs,"resize",t[17])],s=!0)},p(o,i){t=o;const s={};2048&i[0]&&(s.componentContext=t[11]),n.$set(s),(!a||4128&i[0]&&r!==(r=to("tooltip",ks,t[5])+" "+(t[12]?Nr.root_platform_desktop:"")))&&Ge(e,"class",r),4&i[0]&&dn(e,"top",t[2]),2&i[0]&&dn(e,"left",t[1]),8&i[0]&&dn(e,"width",t[3]),16&i[0]&&dn(e,"height",t[4])},i(r){a||(Gn(n.$$.fragment,r),r&&On((()=>{a&&(i&&i.end(1),o=Zn(e,js,{animations:t[13]||Fs,direction:"in"}),o.start())})),a=!0)},o(r){Kn(n.$$.fragment,r),o&&o.invalidate(),r&&(i=function(t,e,n){const r={direction:"out"};let o,i=e(t,n,r),a=!0;const s=Wn;let l;function c(){const{delay:e=0,duration:n=300,easing:r=ie,tick:c=oe,css:u}=i||Yn;u&&(o=$n(t,1,0,n,e,r,u));const d=ke()+e,p=d+n;On((()=>Un(t,!1,"start"))),"inert"in t&&(l=t.inert,t.inert=!0),je((e=>{if(a){if(e>=p)return c(0,1),Un(t,!1,"end"),--s.r||ce(s.c),!1;if(e>=d){const t=r((e-d)/n);c(1-t,t)}}return a}))}return s.r+=1,ue(i)?Ln().then((()=>{i=i(r),c()})):c(),{end(e){e&&"inert"in t&&(t.inert=l),e&&i.tick&&i.tick(1,0),a&&(o&&bn(t,o),a=!1)}}}(e,js,{animations:t[14]||Fs,direction:"out"})),a=!1},d(r){r&&Re(e),cr(n),t[27](null),r&&i&&i.end(),s=!1,ce(l)}}}const Fs={name:"set",items:[{name:"translate"},{name:"fade"}]};function Ps(t,e,n){let r,o,i,a,s,l,c,u,d,p,h,f,g,m=oe,v=oe,y=oe,$=oe,b=oe;var _,w,x,k;t.$$.on_destroy.push((()=>m())),t.$$.on_destroy.push((()=>v())),t.$$.on_destroy.push((()=>y())),t.$$.on_destroy.push((()=>$())),t.$$.on_destroy.push((()=>b()));let{ownerNode:E}=e,{data:C}=e,{internalId:A}=e,{parentComponentContext:j}=e;const V=Cn(Or),D=V.isDesktop;ge(t,D,(t=>n(12,h=t)));const F=Date.now();let P,S=!1,I="",N="",O="",M="",T=null;function z(){var t,e;if(!P||!E)return;const r=P.parentElement;if(!r)return;const o=P.style.cssText;n(0,P.style.cssText+=";transform: none !important",P);const i=E.getBoundingClientRect(),a=P.getBoundingClientRect(),s=r.getBoundingClientRect();n(0,P.style.cssText=o,P);let l=0,c=0,h=null,f=null,g=0,m=0;const v=j.getJsonWithVars(null===(t=C.div)||void 0===t?void 0:t.width),y=j.getJsonWithVars(null===(e=C.div)||void 0===e?void 0:e.width);if(g=v&&"match_parent"!==v.type?"fixed"===v.type&&v.value?h=v.value:a.width:h=i.width,m="match_parent"===(null==y?void 0:y.type)?f=i.height:"fixed"===(null==y?void 0:y.type)&&y.value?f=y.value:a.height,"left"===p||"bottom-left"===p||"top-left"===p)l=i.left-g;else if("top"===p||"bottom"===p||"center"===p)l=(i.left+i.right)/2-g/2;else{if("right"!==p&&"bottom-right"!==p&&"top-right"!==p)return;l=i.right}if("top"===p||"top-left"===p||"top-right"===p)c=i.top-m;else if("left"===p||"right"===p||"center"===p)c=(i.top+i.bottom)/2-m/2;else{if("bottom-left"!==p&&"bottom"!==p&&"bottom-right"!==p)return;c=i.bottom}l-=s.left,c-=s.top,l+=d||0,c+=u||0,n(1,I="".concat(l,"px")),n(2,N="".concat(c,"px")),n(3,O=null!==h?"".concat(h,"px"):""),n(4,M=null!==f?"".concat(f,"px"):""),n(26,S=!0),null===h||null===f?"undefined"==typeof ResizeObserver||T||(T=new ResizeObserver((()=>{requestAnimationFrame(z)})),T.observe(P)):null==T||T.disconnect()}var R;return xn((()=>{if(V.tooltipRoot){const t=window.getComputedStyle(P);n(0,P.style.fontSize=t.fontSize,P),n(0,P.style.fontFamily=t.fontFamily,P),n(0,P.style.lineHeight=t.lineHeight,P),V.tooltipRoot.appendChild(P)}})),R=()=>{S||z()},wn().$$.after_update.push(R),kn((()=>{null==T||T.disconnect()})),t.$$set=t=>{"ownerNode"in t&&n(18,E=t.ownerNode),"data"in t&&n(19,C=t.data),"internalId"in t&&n(20,A=t.internalId),"parentComponentContext"in t&&n(21,j=t.parentComponentContext)},t.$$.update=()=>{2621440&t.$$.dirty[0]&&n(11,r=j.produceChildContext(C.div)),2621440&t.$$.dirty[0]&&(n(10,o=j.getDerivedFromVars(C.position)),y(),y=fe(o,(t=>n(31,p=t)))),15204352&t.$$.dirty[0]&&(n(9,i=j.getDerivedFromVars(null===n(23,w=null===n(22,_=C.offset)||void 0===_?void 0:_.x)||void 0===w?void 0:w.value)),v(),v=fe(i,(t=>n(30,d=t)))),52953088&t.$$.dirty[0]&&(n(8,a=j.getDerivedFromVars(null===n(25,k=null===n(24,x=C.offset)||void 0===x?void 0:x.y)||void 0===k?void 0:k.value)),m(),m=fe(a,(t=>n(29,u=t)))),2621440&t.$$.dirty[0]&&(n(7,s=j.getDerivedFromVars(C.animation_in)),$(),$=fe(s,(t=>n(13,f=t)))),2621440&t.$$.dirty[0]&&(n(6,l=j.getDerivedFromVars(C.animation_out)),b(),b=fe(l,(t=>n(14,g=t)))),67108864&t.$$.dirty[0]&&n(5,c={visible:S})},[P,I,N,O,M,c,l,s,a,i,o,r,h,f,g,D,function(t){Date.now()-F<100||t.composedPath().includes(P)||V.onTooltipClose(A)},function(){z()},E,C,A,j,_,w,x,k,S,function(t){Vn[t?"unshift":"push"]((()=>{P=t,n(0,P)}))}]}const Ss=class extends pr{constructor(t){super(),ur(this,t,Ps,Ds,he,{ownerNode:18,data:19,internalId:20,parentComponentContext:21},null,[-1,-1])}},{Map:Is}=Ve;function Ns(t,e,n){const r=t.slice();return r[33]=e[n],r}function Os(t,e,n){const r=t.slice();return r[33]=e[n],r}function Ms(t){var e;let n,r,o,i;n=new Yo({props:{cls:os.state,componentContext:t[0],layoutParams:t[1],parentOf:t[7],parentOfSimpleMode:!0,replaceItems:t[8],$$slots:{default:[Us]},$$scope:{ctx:t}}});let a=(null===(e=t[0])||void 0===e?void 0:e.tooltips)&&Hs(t);return{c(){ar(n.$$.fragment),r=We(),a&&a.c(),o=Je()},l(t){sr(n.$$.fragment,t),r=sn(t),a&&a.l(t),o=Je()},m(t,e){lr(n,t,e),ze(t,r,e),a&&a.m(t,e),ze(t,o,e),i=!0},p(t,e){var r;const i={};1&e[0]&&(i.componentContext=t[0]),2&e[0]&&(i.layoutParams=t[1]),128&e[0]&&(i.parentOf=t[7]),120&e[0]|128&e[1]&&(i.$$scope={dirty:e,ctx:t}),n.$set(i),null!==(r=t[0])&&void 0!==r&&r.tooltips?a?(a.p(t,e),1&e[0]&&Gn(a,1)):(a=Hs(t),a.c(),Gn(a,1),a.m(o.parentNode,o)):a&&(Jn(),Kn(a,1,1,(()=>{a=null})),qn())},i(t){i||(Gn(n.$$.fragment,t),Gn(a),i=!0)},o(t){Kn(n.$$.fragment,t),Kn(a),i=!1},d(t){t&&(Re(r),Re(o)),cr(n,t),a&&a.d(t)}}}function Ts(t){let e,n,r=t[5],o=zs(t);return{c(){o.c(),e=Je()},l(t){o.l(t),e=Je()},m(t,r){o.m(t,r),ze(t,e,r),n=!0},p(t,n){32&n[0]&&he(r,r=t[5])?(Jn(),Kn(o,1,1,oe),qn(),o=zs(t),o.c(),Gn(o,1),o.m(e.parentNode,e)):o.p(t,n)},i(t){n||(Gn(o),n=!0)},o(t){Kn(o),n=!1},d(t){t&&Re(e),o.d(t)}}}function zs(t){let e,n;return e=new Nc({props:{componentContext:t[6]}}),{c(){ar(e.$$.fragment)},l(t){sr(e.$$.fragment,t)},m(t,r){lr(e,t,r),n=!0},p(t,n){const r={};64&n[0]&&(r.componentContext=t[6]),e.$set(r)},i(t){n||(Gn(e.$$.fragment,t),n=!0)},o(t){Kn(e.$$.fragment,t),n=!1},d(t){cr(e,t)}}}function Rs(t){let e,n,r,o,i,a,s,l,c,u;function d(){return t[16](t[33])}return r=new Nc({props:{componentContext:t[33].componentContextCopy}}),{c(){e=Le("div"),n=Le("div"),ar(r.$$.fragment),i=We(),this.h()},l(t){e=rn(t,"DIV",{class:!0});var o=Qe(e);n=rn(o,"DIV",{class:!0});var a=Qe(n);sr(r.$$.fragment,a),a.forEach(Re),i=sn(o),o.forEach(Re),this.h()},h(){Ge(n,"class",o=os["state__animation-child-inner"]),Ge(e,"class",a=os["state__animation-child"])},m(t,o){ze(t,e,o),Me(e,n),lr(r,n,null),Me(e,i),l=!0,c||(u=qe(e,"introend",d),c=!0)},p(e,n){t=e;const o={};16&n[0]&&(o.componentContext=t[33].componentContextCopy),r.$set(o)},i(n){l||(Gn(r.$$.fragment,n),s||On((()=>{s=Zn(e,ws,t[33]),s.start()})),l=!0)},o(t){Kn(r.$$.fragment,t),l=!1},d(t){t&&Re(e),cr(r),c=!1,u()}}}function Bs(t){let e,n,r,o,i,a,s,l,c,u,d="".concat(t[33].offsetLeft,"px"),p="".concat(t[33].offsetTop,"px"),h="".concat(t[33].width,"px"),f="".concat(t[33].height,"px");function g(){return t[15](t[33])}return r=new Nc({props:{componentContext:t[33].componentContextCopy}}),{c(){e=Le("div"),n=Le("div"),ar(r.$$.fragment),i=We(),this.h()},l(t){e=rn(t,"DIV",{class:!0});var o=Qe(e);n=rn(o,"DIV",{class:!0});var a=Qe(n);sr(r.$$.fragment,a),a.forEach(Re),i=sn(o),o.forEach(Re),this.h()},h(){Ge(n,"class",o=os["state__animation-child-inner"]),Ge(e,"class",a=os["state__animation-child"]),dn(e,"left",d),dn(e,"top",p),dn(e,"width",h),dn(e,"height",f)},m(t,o){ze(t,e,o),Me(e,n),lr(r,n,null),Me(e,i),l=!0,c||(u=qe(e,"introend",g),c=!0)},p(n,o){t=n;const i={};16&o[0]&&(i.componentContext=t[33].componentContextCopy),r.$set(i),16&o[0]&&d!==(d="".concat(t[33].offsetLeft,"px"))&&dn(e,"left",d),16&o[0]&&p!==(p="".concat(t[33].offsetTop,"px"))&&dn(e,"top",p),16&o[0]&&h!==(h="".concat(t[33].width,"px"))&&dn(e,"width",h),16&o[0]&&f!==(f="".concat(t[33].height,"px"))&&dn(e,"height",f)},i(n){l||(Gn(r.$$.fragment,n),s||On((()=>{s=Zn(e,vs,t[33]),s.start()})),l=!0)},o(t){Kn(r.$$.fragment,t),l=!1},d(t){t&&Re(e),cr(r),c=!1,u()}}}function Ls(t,e){let n,r,o,i,a;const s=[Bs,Rs],l=[];function c(t,e){return"direction"in t[33]?0:1}return r=c(e),o=l[r]=s[r](e),{key:t,first:null,c(){n=Je(),o.c(),i=Je(),this.h()},l(t){n=Je(),o.l(t),i=Je(),this.h()},h(){this.first=n},m(t,e){ze(t,n,e),l[r].m(t,e),ze(t,i,e),a=!0},p(t,n){let a=r;r=c(e=t),r===a?l[r].p(e,n):(Jn(),Kn(l[a],1,1,(()=>{l[a]=null})),qn(),o=l[r],o?o.p(e,n):(o=l[r]=s[r](e),o.c()),Gn(o,1),o.m(i.parentNode,i))},i(t){a||(Gn(o),a=!0)},o(t){Kn(o),a=!1},d(t){t&&(Re(n),Re(i)),l[r].d(t)}}}function Us(t){let e,n,r,o,i=[],a=new Is,s=t[6]&&Ts(t),l=Xn(t[4]);const c=t=>t[33];for(let e=0;e<l.length;e+=1){let n=Os(t,l,e),r=c(n);a.set(r,i[e]=Ls(r,n))}return{c(){s&&s.c(),e=We(),n=Le("div");for(let t=0;t<i.length;t+=1)i[t].c();this.h()},l(t){s&&s.l(t),e=sn(t),n=rn(t,"DIV",{class:!0,"aria-hidden":!0});var r=Qe(n);for(let t=0;t<i.length;t+=1)i[t].l(r);r.forEach(Re),this.h()},h(){Ge(n,"class",r=os.state__animations),Ge(n,"aria-hidden","true")},m(r,a){s&&s.m(r,a),ze(r,e,a),ze(r,n,a);for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(n,null);t[17](n),o=!0},p(t,r){t[6]?s?(s.p(t,r),64&r[0]&&Gn(s,1)):(s=Ts(t),s.c(),Gn(s,1),s.m(e.parentNode,e)):s&&(Jn(),Kn(s,1,1,(()=>{s=null})),qn()),528&r[0]&&(l=Xn(t[4]),Jn(),i=tr(i,r,c,1,t,l,a,n,Qn,Ls,null,Os),qn())},i(t){if(!o){Gn(s);for(let t=0;t<l.length;t+=1)Gn(i[t]);o=!0}},o(t){Kn(s);for(let t=0;t<i.length;t+=1)Kn(i[t]);o=!1},d(r){r&&(Re(e),Re(n)),s&&s.d(r);for(let t=0;t<i.length;t+=1)i[t].d();t[17](null)}}}function Hs(t){let e,n,r=[],o=new Is,i=Xn(t[0].tooltips);const a=t=>t[33].internalId;for(let e=0;e<i.length;e+=1){let n=Ns(t,i,e),s=a(n);o.set(s,r[e]=Ws(s,n))}return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=Je()},l(t){for(let e=0;e<r.length;e+=1)r[e].l(t);e=Je()},m(t,o){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,o);ze(t,e,o),n=!0},p(t,n){1&n[0]&&(i=Xn(t[0].tooltips),Jn(),r=tr(r,n,a,1,t,i,o,e.parentNode,Qn,Ws,e,Ns),qn())},i(t){if(!n){for(let t=0;t<i.length;t+=1)Gn(r[t]);n=!0}},o(t){for(let t=0;t<r.length;t+=1)Kn(r[t]);n=!1},d(t){t&&Re(e);for(let e=0;e<r.length;e+=1)r[e].d(t)}}}function Ws(t,e){let n,r,o;return r=new Ss({props:{ownerNode:e[33].ownerNode,data:e[33].desc,internalId:e[33].internalId,parentComponentContext:e[0]}}),{key:t,first:null,c(){n=Je(),ar(r.$$.fragment),this.h()},l(t){n=Je(),sr(r.$$.fragment,t),this.h()},h(){this.first=n},m(t,e){ze(t,n,e),lr(r,t,e),o=!0},p(t,n){e=t;const o={};1&n[0]&&(o.ownerNode=e[33].ownerNode),1&n[0]&&(o.data=e[33].desc),1&n[0]&&(o.internalId=e[33].internalId),1&n[0]&&(o.parentComponentContext=e[0]),r.$set(o)},i(t){o||(Gn(r.$$.fragment,t),o=!0)},o(t){Kn(r.$$.fragment,t),o=!1},d(t){t&&Re(n),cr(r,t)}}}function Js(t){let e,n,r=!t[2]&&Ms(t);return{c(){r&&r.c(),e=Je()},l(t){r&&r.l(t),e=Je()},m(t,o){r&&r.m(t,o),ze(t,e,o),n=!0},p(t,n){t[2]?r&&(Jn(),Kn(r,1,1,(()=>{r=null})),qn()):r?(r.p(t,n),4&n[0]&&Gn(r,1)):(r=Ms(t),r.c(),Gn(r,1),r.m(e.parentNode,e))},i(t){n||(Gn(r),n=!0)},o(t){Kn(r),n=!1},d(t){t&&Re(e),r&&r.d(t)}}}function qs(t){return"change_bounds"===t.type?t:"set"===t.type?qs(t.items[0]):null}function Gs(t,e,n){let r,o,i,a,s,l,{componentContext:c}=e,{layoutParams:u}=e;const d=Cn(Or),p=Cn(no);let h,f,g,m,v=!1,y=new Map,$=new Set,b=null,_=[],w=[],x=[],k=[],E=!1;function C(t){n(6,m=(null==t?void 0:t.div)?c.produceChildContext(t.div,{path:t.state_id||"<unknown>"}):void 0)}function A(t,e,n){let{json:r,parentComponentContext:o,transitions:i,node:a}=e;r=c.getJsonWithVars(r),i=c.getJsonWithVars(i);const s=xs(i),l=a.getBoundingClientRect(),u=Object.assign(Object.assign({},r),{margins:void 0,alpha:(d=s,d.some((t=>"fade"===t.type))?void 0:r.alpha)});var d;return{json:u,componentContextCopy:o.produceChildContext(u,{fake:!0}),elementBbox:l,rootBbox:t,transitions:s,alpha:r.alpha,width:l.width,height:l.height,offsetTop:l.top-t.top,offsetLeft:l.left-t.left,direction:n,resolvePromise:e.resolvePromise,node:e.node}}async function j(t){if(g===t)return;d.setRunning("stateChange",!0);const e=new Set($);_.forEach((t=>{t.resolvePromise&&t.resolvePromise()})),n(4,_=[]);let r=[];if(h){const t=h.getBoundingClientRect();r=x.map((e=>A(t,e,"out")))}k.forEach((t=>{y.set(t.id,t.node.getBoundingClientRect())})),w=[],x=[],k=[];const o=s.find((e=>e.state_id===t))||null;if(o?(n(5,g=t),null==a||a.setValue(g),C(o)):c.logError(ut(new Error("Cannot find state with id"),{additional:{stateId:t}})),await Nn(),!h)return;const i=h.getBoundingClientRect();let l=w.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(i,t,"in")));r=r.filter((t=>{var e;return!(!t.json.id||$.has(t.json.id))||(null===(e=t.resolvePromise)||void 0===e||e.call(t),!1)}));const u=r.concat(l),p=u.reduce(((t,e)=>Math.max(t,ms(e.transitions))),0),f=k.filter((t=>y.has(t.id))).map((t=>{const e=Object.assign(Object.assign({},t.json),{margins:void 0,width:{type:"match_parent"},height:{type:"match_parent"}});return{json:e,componentContextCopy:t.parentComponentContext.produceChildContext(e,{fake:!0}),rootBbox:i,beforeBbox:y.get(t.id),afterBbox:t.node.getBoundingClientRect(),node:t.node,transition:c.getJsonWithVars(qs(t.transitions)),resolvePromise:t.resolvePromise}}));n(4,_=[...u.map((t=>Object.assign(Object.assign({},t),{maxDuration:p}))),...f]),y.clear(),d.setRunning("stateChange",!1)}function V(t){if(b&&b.has(t))return b.get(t);c.logError(ut(new Error("Missing state block with id"),{additional:{id:t}}))}function D(t){n(4,_=_.filter((e=>e!==t))),t.resolvePromise&&t.resolvePromise()}return En(no,{registerInstance(t,e){b||(b=new Map),b.has(t)?c.logError(ut(new Error("Duplicate state with id"),{additional:{id:t}})):b.set(t,e)},unregisterInstance(t){null==b||b.delete(t)},runVisibilityTransition(t,e,r,o,i){if(!h)return Promise.resolve();const a=A(h.getBoundingClientRect(),{json:t,parentComponentContext:e,transitions:r,node:o},i),s=ms(a.transitions),l=Object.assign(Object.assign({},a),{maxDuration:s});return n(4,_=[..._.filter((t=>t.node!==a.node)),l]),new Promise((t=>{l.resolvePromise=t}))},registerChildWithTransitionIn(t,e,n,r){const o={json:t,parentComponentContext:e,transitions:n,node:r};return w.push(o),new Promise((t=>{o.resolvePromise=t}))},registerChildWithTransitionOut(t,e,n,r){const o={json:t,parentComponentContext:e,transitions:n,node:r};return x.push(o),new Promise((t=>{o.resolvePromise=t}))},registerChildWithTransitionChange(t,e,n,r){const o=t.id;if(!o)return Promise.resolve();const i={id:o,json:t,parentComponentContext:e,transitions:n,node:r};return k.push(i),new Promise((t=>{i.resolvePromise=t}))},hasTransitionChange:t=>!!t&&y.has(t),registerChild(t){$.add(t)},unregisterChild(t){$.delete(t)}}),kn((()=>{f&&p.unregisterInstance(f)})),t.$$set=t=>{"componentContext"in t&&n(0,c=t.componentContext),"layoutParams"in t&&n(1,u=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty[0]&&n(13,r=c.json.div_id||c.json.id),1&t.$$.dirty[0]&&(o=c.getJsonWithVars(c.json.default_state_id)),1&t.$$.dirty[0]&&n(14,i=c.json.state_id_variable),16385&t.$$.dirty[0]&&(a=i?c.getVariable(i,"string"):null),1&t.$$.dirty[0]&&c.json&&n(11,E=!1),8193&t.$$.dirty[0]&&(r?n(2,v=!1):(n(2,v=!0),c.logError(ut(new Error('Missing "id" prop for div "state"'))))),1&t.$$.dirty[0]&&c.json&&($=new Set),1&t.$$.dirty[0]&&n(12,s=c.json.states||[]),4096&t.$$.dirty[0]&&n(7,l=s.map((t=>t.div))),4097&t.$$.dirty[0]&&((null==s?void 0:s.length)?n(2,v=!1):(n(2,v=!0),c.logError(ut(new Error('Empty "states" prop for div "state"'))))),9217&t.$$.dirty[0]&&c.json&&(f&&(p.unregisterInstance(f),n(10,f=void 0)),r&&!(null==c?void 0:c.fakeElement)&&(n(10,f=r),p.registerInstance(r,{setState:j,getChild:V}))),6144&t.$$.dirty[0]&&!E&&function(t){if(!E&&(n(11,E=!0),t.length)){const e=(null==a?void 0:a.getValue())||o;if(e){n(5,g=e);const r=t.find((t=>t.state_id===g))||null;C(r),r||c.logError(ut(new Error("Cannot find state for default_state_id"),{additional:{selectedId:g}}))}else{const e=t[0];n(5,g=e.state_id),C(e)}a&&(a.setValue(g),a.subscribe((t=>{j(t)})))}}(s)},[c,u,v,h,_,g,m,l,function(t){const e=c.json.states;if(!e)return;const r=e.map(((e,n)=>Object.assign(Object.assign({},e),{div:t[n]})));n(0,c.json=Object.assign(Object.assign({},c.json),{states:r}),c),g&&C(r.find((t=>t.state_id===g))||null)},D,f,E,s,r,i,t=>D(t),t=>D(t),function(t){Vn[t?"unshift":"push"]((()=>{h=t,n(3,h)}))}]}const Ks={pager:"divkit-c5feb",pager__items:"divkit-f6987",pager__item:"divkit-feca7",pager_orientation_horizontal:"divkit-b0a1c",pager_orientation_vertical:"divkit-f772f",pager__arrow:"divkit-d78c2","pager__arrow-icon-path":"divkit-a94d9"},{Boolean:Ys}=Ve;function Zs(t,e,n){const r=t.slice();return r[63]=e[n],r}function Xs(t){let e,n;return e=new Yo({props:{cls:to("pager",Ks,t[10]),componentContext:t[0],layoutParams:t[1],customPaddings:!0,parentOf:t[2].map(ol),replaceItems:t[23],$$slots:{default:[nl]},$$scope:{ctx:t}}}),{c(){ar(e.$$.fragment)},l(t){sr(e.$$.fragment,t)},m(t,r){lr(e,t,r),n=!0},p(t,n){const r={};1024&n[0]&&(r.cls=to("pager",Ks,t[10])),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),4&n[0]&&(r.parentOf=t[2].map(ol)),134068&n[0]|16&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Gn(e.$$.fragment,t),n=!0)},o(t){Kn(e.$$.fragment,t),n=!1},d(t){cr(e,t)}}}function Qs(t){let e,n,r,o,i;return n=new Nc({props:{componentContext:t[63]}}),{c(){e=Le("div"),ar(n.$$.fragment),r=We(),this.h()},l(t){e=rn(t,"DIV",{class:!0});var o=Qe(e);sr(n.$$.fragment,o),r=sn(o),o.forEach(Re),this.h()},h(){Ge(e,"class",o=Ks.pager__item)},m(t,o){ze(t,e,o),lr(n,e,null),Me(e,r),i=!0},p(t,e){const r={};4&e[0]&&(r.componentContext=t[63]),n.$set(r)},i(t){i||(Gn(n.$$.fragment,t),i=!0)},o(t){Kn(n.$$.fragment,t),i=!1},d(t){t&&Re(e),cr(n)}}}function tl(t){let e,n,r,o,i=!t[19]&&function(t){let e,n,r,o;return{c(){e=Ue("svg"),n=Ue("path"),this.h()},l(t){e=on(t,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var r=Qe(e);n=on(r,"path",{class:!0,d:!0}),Qe(n).forEach(Re),r.forEach(Re),this.h()},h(){Ge(n,"class",r=Ks["pager__arrow-icon-path"]),Ge(n,"d","m10 16 8.3 8 1.03-1-4-6-.7-1 .7-1 4-6-1.03-1z"),Ge(e,"class",o=ja.arrow__icon),Ge(e,"xmlns","http://www.w3.org/2000/svg"),Ge(e,"width","32"),Ge(e,"height","32"),Ge(e,"viewBox","0 0 32 32"),Ge(e,"fill","none")},m(t,r){ze(t,e,r),Me(e,n)},d(t){t&&Re(e)}}}();return{c(){e=Le("div"),i&&i.c(),this.h()},l(t){e=rn(t,"DIV",{class:!0});var n=Qe(e);i&&i.l(n),n.forEach(Re),this.h()},h(){Ge(e,"class",n=t[19]||"".concat(Ks.pager__arrow," ").concat(ja.arrow," ").concat(ja.arrow_left))},m(n,a){ze(n,e,a),i&&i.m(e,null),r||(o=qe(e,"click",t[51]),r=!0)},p:oe,d(t){t&&Re(e),i&&i.d(),r=!1,o()}}}function el(t){let e,n,r,o,i=!t[20]&&function(t){let e,n,r,o;return{c(){e=Ue("svg"),n=Ue("path"),this.h()},l(t){e=on(t,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var r=Qe(e);n=on(r,"path",{class:!0,d:!0}),Qe(n).forEach(Re),r.forEach(Re),this.h()},h(){Ge(n,"class",r=Ks["pager__arrow-icon-path"]),Ge(n,"d","M22 16l-8.3 8-1.03-1 4-6 .7-1-.7-1-4-6 1.03-1 8.3 8z"),Ge(e,"class",o=ja.arrow__icon),Ge(e,"xmlns","http://www.w3.org/2000/svg"),Ge(e,"width","32"),Ge(e,"height","32"),Ge(e,"viewBox","0 0 32 32"),Ge(e,"fill","none")},m(t,r){ze(t,e,r),Me(e,n)},d(t){t&&Re(e)}}}();return{c(){e=Le("div"),i&&i.c(),this.h()},l(t){e=rn(t,"DIV",{class:!0});var n=Qe(e);i&&i.l(n),n.forEach(Re),this.h()},h(){Ge(e,"class",n=t[20]||"".concat(Ks.pager__arrow," ").concat(ja.arrow," ").concat(ja.arrow_right))},m(n,a){ze(n,e,a),i&&i.m(e,null),r||(o=qe(e,"click",t[52]),r=!0)},p:oe,d(t){t&&Re(e),i&&i.d(),r=!1,o()}}}function nl(t){let e,n,r,o,i,a,s,l,c,u=Xn(t[2]),d=[];for(let e=0;e<u.length;e+=1)d[e]=Qs(Zs(t,u,e));const p=t=>Kn(d[t],1,1,(()=>{d[t]=null}));let h=t[8]&&t[9]&&tl(t),f=t[7]&&t[9]&&el(t);return{c(){e=Le("div");for(let t=0;t<d.length;t+=1)d[t].c();o=We(),h&&h.c(),i=We(),f&&f.c(),a=Je(),this.h()},l(t){e=rn(t,"DIV",{class:!0,style:!0});var n=Qe(e);for(let t=0;t<d.length;t+=1)d[t].l(n);n.forEach(Re),o=sn(t),h&&h.l(t),i=sn(t),f&&f.l(t),a=Je(),this.h()},h(){Ge(e,"class",n=Ks.pager__items+" "+(t[17]?Nr["root_restrict-scroll"]:"")),Ge(e,"style",r=zr(t[11]))},m(n,r){ze(n,e,r);for(let t=0;t<d.length;t+=1)d[t]&&d[t].m(e,null);t[50](e),ze(n,o,r),h&&h.m(n,r),ze(n,i,r),f&&f.m(n,r),ze(n,a,r),s=!0,l||(c=qe(e,"scroll",t[22]),l=!0)},p(t,o){if(4&o[0]){let n;for(u=Xn(t[2]),n=0;n<u.length;n+=1){const r=Zs(t,u,n);d[n]?(d[n].p(r,o),Gn(d[n],1)):(d[n]=Qs(r),d[n].c(),Gn(d[n],1),d[n].m(e,null))}for(Jn(),n=u.length;n<d.length;n+=1)p(n);qn()}(!s||131072&o[0]&&n!==(n=Ks.pager__items+" "+(t[17]?Nr["root_restrict-scroll"]:"")))&&Ge(e,"class",n),(!s||2048&o[0]&&r!==(r=zr(t[11])))&&Ge(e,"style",r),t[8]&&t[9]?h?h.p(t,o):(h=tl(t),h.c(),h.m(i.parentNode,i)):h&&(h.d(1),h=null),t[7]&&t[9]?f?f.p(t,o):(f=el(t),f.c(),f.m(a.parentNode,a)):f&&(f.d(1),f=null)},i(t){if(!s){for(let t=0;t<u.length;t+=1)Gn(d[t]);s=!0}},o(t){d=d.filter(Ys);for(let t=0;t<d.length;t+=1)Kn(d[t]);s=!1},d(n){n&&(Re(e),Re(o),Re(i),Re(a)),Be(d,n),t[50](null),h&&h.d(n),f&&f.d(n),l=!1,c()}}}function rl(t){let e,n,r=!t[3]&&Xs(t);return{c(){r&&r.c(),e=Je()},l(t){r&&r.l(t),e=Je()},m(t,o){r&&r.m(t,o),ze(t,e,o),n=!0},p(t,n){t[3]?r&&(Jn(),Kn(r,1,1,(()=>{r=null})),qn()):r?(r.p(t,n),8&n[0]&&Gn(r,1)):(r=Xs(t),r.c(),Gn(r,1),r.m(e.parentNode,e))},i(t){n||(Gn(r),n=!0)},o(t){Kn(r),n=!1},d(t){t&&Re(e),r&&r.d(t)}}}const ol=t=>t.json;function il(t,e,n){let r,o,i,a,s,l,c,u,d,p,h,f,g,m,v,y,$,b,_,w,x,k,E=oe,C=oe,A=oe,j=oe,V=oe,D=oe;var F,P,S,I,N,O,M,T,z,R;t.$$.on_destroy.push((()=>E())),t.$$.on_destroy.push((()=>C())),t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>D()));let{componentContext:B}=e,{layoutParams:L}=e;const U=Cn(Or),H=U.direction;ge(t,H,(t=>n(4,y=t)));const W=U.genId("pager"),J=U.getCustomization("pagerLeftClass"),q=U.getCustomization("pagerRightClass"),G=U.isDesktop;ge(t,G,(t=>n(45,$=t)));const K=ui((function(){if(!X)return;const t=function(){const t=Array.from(Z.children),e=Z.getBoundingClientRect(),n=t.findIndex((t=>{return n=e,r=t.getBoundingClientRect(),"horizontal"===nt?r.left>=n.left&&r.right<=n.right:r.top>=n.top&&r.bottom<=n.bottom;var n,r}));return-1!==n?n:Q}();t!==Q&&n(38,Q=t)}),50);let Y,Z,X=!1,Q=0,tt=0,et=!1,nt="horizontal",rt="",ot="",it="";function at(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"smooth";const r="horizontal"===nt,o=Z.children[t],i=r?"offsetLeft":"offsetTop",a=r?"left":"top";Z.scroll({[a]:o[i],behavior:e}),n(38,Q=t)}function st(t){let e=Q-1;e<0&&(e="ring"===t?l.length-1:Q),at(e)}function lt(t){let e=Q+1;e>l.length-1&&(e="ring"===t?0:Q),at(e)}return xn((()=>{if(n(37,X=!0),Boolean(document.getElementById("".concat(W,"-tab-0")))){const t=[...Z.children];for(const[e,n]of t.entries())n.setAttribute("role","tabpanel"),n.setAttribute("id","".concat(W,"-panel-").concat(e)),n.setAttribute("aria-labelledby","".concat(W,"-tab-").concat(e))}})),kn((()=>{n(37,X=!1),Y&&(U.unregisterInstance(Y),n(36,Y=void 0))})),t.$$set=t=>{"componentContext"in t&&n(0,B=t.componentContext),"layoutParams"in t&&n(1,L=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&B.json&&n(42,ot=""),1&t.$$.dirty[0]&&(n(16,r=B.getDerivedFromVars(B.json.layout_mode)),C(),C=fe(r,(t=>n(46,b=t)))),1&t.$$.dirty[0]&&(n(15,o=B.getDerivedFromVars(B.json.orientation)),V(),V=fe(o,(t=>n(49,x=t)))),1&t.$$.dirty[0]&&(n(14,i=B.getDerivedFromVars(B.json.item_spacing)),j(),j=fe(i,(t=>n(48,w=t)))),1&t.$$.dirty[0]&&(n(13,a=B.getDerivedFromVars(B.json.paddings)),A(),A=fe(a,(t=>n(47,_=t)))),1&t.$$.dirty[0]&&(n(12,s=B.getDerivedFromVars(B.json.restrict_parent_scroll)),D(),D=fe(s,(t=>n(17,k=t)))),1&t.$$.dirty[0]&&n(2,l=(Array.isArray(B.json.items)&&B.json.items||[]).map(((t,e)=>B.produceChildContext(t,{path:e})))),1&t.$$.dirty[0]|32768&t.$$.dirty[1]&&(b?"percentage"!==b.type&&"fixed"!==b.type?(n(39,et=!0),B.logError(ut(new Error('Incorrect value of "layout_mode.type" for div "pager"')))):n(39,et=!1):(n(39,et=!0),B.logError(ut(new Error('Empty "layout_mode" prop for div "pager"'))))),262656&t.$$.dirty[1]&&n(40,nt=Qi(x,nt)),131072&t.$$.dirty[1]){const t=null==w?void 0:w.value;t&&io(t)&&n(41,rt=Rr(t||0))}if(16&t.$$.dirty[0]|67584&t.$$.dirty[1]&&n(42,ot=ao(_,y,ot)),512&t.$$.dirty[1]&&n(44,c="horizontal"===nt?"grid-auto-columns":"grid-auto-rows"),2080374801&t.$$.dirty[0]|34335&t.$$.dirty[1])if("fixed"===(null==b?void 0:b.type)){const t=Br("horizontal"===nt?(("ltr"===y?null===n(26,F=B.json.paddings)||void 0===F?void 0:F.start:null===n(27,P=B.json.paddings)||void 0===P?void 0:P.end)||(null===n(28,S=B.json.paddings)||void 0===S?void 0:S.left)||0)+(("ltr"===y?null===n(29,I=B.json.paddings)||void 0===I?void 0:I.end:null===n(30,N=B.json.paddings)||void 0===N?void 0:N.start)||(null===n(31,O=B.json.paddings)||void 0===O?void 0:O.right)||0):((null===n(32,M=B.json.paddings)||void 0===M?void 0:M.top)||0)+((null===n(33,T=B.json.paddings)||void 0===T?void 0:T.bottom)||0)),e=null===n(34,z=b.neighbour_page_width)||void 0===z?void 0:z.value;n(43,it=e?"calc(100% + ".concat(t," - 2 * ").concat(Br(e)," - 2 * ").concat(rt,")"):"100%")}else if("percentage"===(null==b?void 0:b.type)){const t=null===n(35,R=b.page_width)||void 0===R?void 0:R.value;n(43,it="".concat(Number(t),"%"))}15360&t.$$.dirty[1]&&n(11,u={"grid-gap":rt,padding:ot,[c]:it}),512&t.$$.dirty[1]&&n(10,d={orientation:nt}),256&t.$$.dirty[1]&&n(3,p=et),8&t.$$.dirty[0]|16448&t.$$.dirty[1]&&n(9,h=$&&X&&!p),20&t.$$.dirty[0]|128&t.$$.dirty[1]&&n(8,f="ltr"===y?Q>0:Q+1<l.length),20&t.$$.dirty[0]|128&t.$$.dirty[1]&&n(7,g="ltr"===y?Q+1<l.length:Q>0),4&t.$$.dirty[0]|128&t.$$.dirty[1]&&function(t,e){const n=B.json.id;if(n){const r=new Map(v);_e(m,v=r.set(n,{instId:W,size:t,currentItem:e,scrollToPagerItem:at}),v)}}(l.length,Q),128&t.$$.dirty[1]&&function(t){var e;if(t===tt)return;tt=t;const n=B.getJsonWithVars(null===(e=l[t].json)||void 0===e?void 0:e.selected_actions);(null==n?void 0:n.length)&&B.execAnyActions(n)}(Q),5&t.$$.dirty[0]|32&t.$$.dirty[1]&&B.json&&(Y&&(U.unregisterInstance(Y),n(36,Y=void 0)),B.json.id&&!B.fakeElement&&(n(36,Y=B.json.id),U.registerInstance(Y,{setCurrentItem(t){if(t<0||t>l.length-1)throw new Error('Item is out of range in "set-current-item" action');at(t)},setPreviousItem:st,setNextItem:lt})))},n(6,m=U.getStore("pagers")),E(),E=fe(m,(t=>n(54,v=t))),[B,L,l,p,y,Z,m,g,f,h,d,u,s,a,i,o,r,k,H,J,q,G,K,function(t){n(0,B=Object.assign(Object.assign({},B),{json:Object.assign(Object.assign({},B.json),{items:t.filter(Ur)})}))},st,lt,F,P,S,I,N,O,M,T,z,R,Y,X,Q,et,nt,rt,ot,it,c,$,b,_,w,x,function(t){Vn[t?"unshift":"push"]((()=>{Z=t,n(5,Z)}))},()=>("ltr"===y?st:lt)("clamp"),()=>("ltr"===y?lt:st)("clamp")]}const al={indicator:"divkit-d8e3f",indicator__scroller:"divkit-b5db0",indicator__items:"divkit-d5d94",indicator__item:"divkit-f6629",indicator_placement_default:"divkit-c1670",indicator__item_active:"divkit-b39cd",indicator_direction_ltr:"divkit-a7473",indicator_direction_rtl:"divkit-a7d63",indicator_placement_stretch:"divkit-b6bd3"};function sl(t,e,n){const r=t.slice();r[42]=e[n],r[45]=n;const o=r[45]===r[10].currentItem;return r[43]=o,r}function ll(t){let e,n=Xn(Array(t[10].size)),r=[];for(let e=0;e<n.length;e+=1)r[e]=cl(sl(t,n,e));return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=Je()},l(t){for(let e=0;e<r.length;e+=1)r[e].l(t);e=Je()},m(t,n){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,n);ze(t,e,n)},p(t,o){if(12583936&o[0]){let i;for(n=Xn(Array(t[10].size)),i=0;i<n.length;i+=1){const a=sl(t,n,i);r[i]?r[i].p(a,o):(r[i]=cl(a),r[i].c(),r[i].m(e.parentNode,e))}for(;i<r.length;i+=1)r[i].d(1);r.length=n.length}},d(t){t&&Re(e),Be(r,t)}}}function cl(t){let e,n,r,o,i,a,s,l;function c(){return t[36](t[45])}return{c(){e=Le("div"),this.h()},l(t){e=rn(t,"DIV",{class:!0,role:!0,id:!0,"aria-controls":!0,"aria-selected":!0,tabindex:!0}),Qe(e).forEach(Re),this.h()},h(){Ge(e,"class",n=to("indicator__item",al,{active:t[43]})+" "+Nr.root__clickable),Ge(e,"role","tab"),Ge(e,"id",r=t[10].instId+"-tab-"+t[45]),Ge(e,"aria-controls",o=t[10].instId+"-panel-"+t[45]),Ge(e,"aria-selected",i=t[43]?"true":"false"),Ge(e,"tabindex",a=t[43]?0:-1)},m(n,r){ze(n,e,r),s||(l=[qe(e,"click",c),qe(e,"keydown",t[23])],s=!0)},p(s,l){t=s,1024&l[0]&&n!==(n=to("indicator__item",al,{active:t[43]})+" "+Nr.root__clickable)&&Ge(e,"class",n),1024&l[0]&&r!==(r=t[10].instId+"-tab-"+t[45])&&Ge(e,"id",r),1024&l[0]&&o!==(o=t[10].instId+"-panel-"+t[45])&&Ge(e,"aria-controls",o),1024&l[0]&&i!==(i=t[43]?"true":"false")&&Ge(e,"aria-selected",i),1024&l[0]&&a!==(a=t[43]?0:-1)&&Ge(e,"tabindex",a)},d(t){t&&Re(e),s=!1,ce(l)}}}function ul(t){let e,n,r,o,i=t[10]&&ll(t);return{c(){e=Le("div"),n=Le("div"),i&&i.c(),this.h()},l(t){e=rn(t,"DIV",{class:!0});var r=Qe(e);n=rn(r,"DIV",{class:!0,role:!0});var o=Qe(n);i&&i.l(o),o.forEach(Re),r.forEach(Re),this.h()},h(){Ge(n,"class",r=al.indicator__items),Ge(n,"role","tablist"),dn(n,"margin","default"===t[4]?"0 ".concat(Rr(Math.max(0,t[2].width-t[3].width)/2)):""),dn(n,"--divkit-indicator-inactive-width",Rr(t[3].width)),dn(n,"--divkit-indicator-inactive-height",Rr(t[3].height)),dn(n,"--divkit-indicator-inactive-border-radius",Rr(t[3].borderRadius)),dn(n,"--divkit-indicator-inactive-background",t[3].background||""),dn(n,"--divkit-indicator-inactive-box-shadow",t[3].boxShadow||""),dn(n,"--divkit-indicator-active-width",Rr(t[2].width)),dn(n,"--divkit-indicator-active-height",Rr(t[2].height)),dn(n,"--divkit-indicator-active-border-radius",Rr(t[2].borderRadius)),dn(n,"--divkit-indicator-active-background",t[2].background||""),dn(n,"--divkit-indicator-active-box-shadow",t[2].boxShadow||""),dn(n,"--divkit-indicator-active-scale",t[2].width/t[3].width),dn(n,"--divkit-indicator-default-margin","default"===t[4]?"0 ".concat(Rr((t[5]-t[3].width)/2)):""),dn(n,"--divkit-indicator-stretch-margin","stretch"===t[4]?Rr(t[7]):""),dn(n,"--divkit-indicator-stretch-max-count","stretch"===t[4]?t[6]:""),dn(n,"--divkit-indicator-stretch-max-spacer","stretch"===t[4]?Rr((t[6]-1)*t[7]):""),Ge(e,"class",o=al.indicator__scroller)},m(r,o){ze(r,e,o),Me(e,n),i&&i.m(n,null),t[37](n),t[38](e)},p(t,e){t[10]?i?i.p(t,e):(i=ll(t),i.c(),i.m(n,null)):i&&(i.d(1),i=null),28&e[0]&&dn(n,"margin","default"===t[4]?"0 ".concat(Rr(Math.max(0,t[2].width-t[3].width)/2)):""),8&e[0]&&dn(n,"--divkit-indicator-inactive-width",Rr(t[3].width)),8&e[0]&&dn(n,"--divkit-indicator-inactive-height",Rr(t[3].height)),8&e[0]&&dn(n,"--divkit-indicator-inactive-border-radius",Rr(t[3].borderRadius)),8&e[0]&&dn(n,"--divkit-indicator-inactive-background",t[3].background||""),8&e[0]&&dn(n,"--divkit-indicator-inactive-box-shadow",t[3].boxShadow||""),4&e[0]&&dn(n,"--divkit-indicator-active-width",Rr(t[2].width)),4&e[0]&&dn(n,"--divkit-indicator-active-height",Rr(t[2].height)),4&e[0]&&dn(n,"--divkit-indicator-active-border-radius",Rr(t[2].borderRadius)),4&e[0]&&dn(n,"--divkit-indicator-active-background",t[2].background||""),4&e[0]&&dn(n,"--divkit-indicator-active-box-shadow",t[2].boxShadow||""),12&e[0]&&dn(n,"--divkit-indicator-active-scale",t[2].width/t[3].width),56&e[0]&&dn(n,"--divkit-indicator-default-margin","default"===t[4]?"0 ".concat(Rr((t[5]-t[3].width)/2)):""),144&e[0]&&dn(n,"--divkit-indicator-stretch-margin","stretch"===t[4]?Rr(t[7]):""),80&e[0]&&dn(n,"--divkit-indicator-stretch-max-count","stretch"===t[4]?t[6]:""),208&e[0]&&dn(n,"--divkit-indicator-stretch-max-spacer","stretch"===t[4]?Rr((t[6]-1)*t[7]):"")},d(n){n&&Re(e),i&&i.d(),t[37](null),t[38](null)}}}function dl(t){let e,n;return e=new Yo({props:{cls:to("indicator",al,t[11]),componentContext:t[0],layoutParams:t[1],$$slots:{default:[ul]},$$scope:{ctx:t}}}),{c(){ar(e.$$.fragment)},l(t){sr(e.$$.fragment,t)},m(t,r){lr(e,t,r),n=!0},p(t,n){const r={};2048&n[0]&&(r.cls=to("indicator",al,t[11])),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),2044&n[0]|32768&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Gn(e.$$.fragment,t),n=!0)},o(t){Kn(e.$$.fragment,t),n=!1},d(t){cr(e,t)}}}const pl=["rounded_rectangle","circle"];function hl(t,e,n){let r,o,i,a,s,l,c,u,d,p,h,f,g,m,v,y,$,b,_,w,x=oe,E=oe,C=oe,A=oe,j=oe,V=oe,D=oe,F=oe,P=oe;var S,I;t.$$.on_destroy.push((()=>x())),t.$$.on_destroy.push((()=>E())),t.$$.on_destroy.push((()=>C())),t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>P()));let{componentContext:N}=e,{layoutParams:O}=e;const M=Cn(Or),T=M.direction;ge(t,T,(t=>n(26,h=t)));let z,R,B,L={width:13,height:13,borderRadius:6.5,background:"#ffdc60"},U={width:10,height:10,borderRadius:5,background:"#33919cb5"},H="default",W=15,J=10,q=5;function G(t){t!==B.currentItem&&B.scrollToPagerItem(t)}async function K(t){B.scrollToPagerItem(t),await Nn();const e=R.querySelector(".".concat(al.indicator__item_active));e&&e.focus()}return t.$$set=t=>{"componentContext"in t&&n(0,N=t.componentContext),"layoutParams"in t&&n(1,O=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&N.json&&(n(4,H="default"),n(5,W=15),n(6,J=10),n(7,q=5),n(2,L={width:13,height:13,borderRadius:6.5,background:"#ffdc60"}),n(3,U={width:10,height:10,borderRadius:5,background:"#33919cb5"})),1&t.$$.dirty[0]&&(n(20,r=N.getDerivedFromVars(N.json.shape)),V(),V=fe(r,(t=>n(32,$=t)))),1&t.$$.dirty[0]&&(n(19,o=N.getDerivedFromVars(N.json.active_item_color)),A(),A=fe(o,(t=>n(30,v=t)))),1&t.$$.dirty[0]&&(n(18,i=N.getDerivedFromVars(N.json.inactive_item_color)),j(),j=fe(i,(t=>n(31,y=t)))),1&t.$$.dirty[0]&&(n(17,a=N.getDerivedFromVars(N.json.active_item_size)),D(),D=fe(a,(t=>n(33,b=t)))),1&t.$$.dirty[0]&&(n(16,s=N.getDerivedFromVars(N.json.active_shape)),P(),P=fe(s,(t=>n(35,w=t)))),1&t.$$.dirty[0]&&(n(15,l=N.getDerivedFromVars(N.json.inactive_shape)),F(),F=fe(l,(t=>n(34,_=t)))),1&t.$$.dirty[0]&&(n(14,c=N.getDerivedFromVars(N.json.space_between_centers)),E(),E=fe(c,(t=>n(28,g=t)))),1&t.$$.dirty[0]&&(n(13,u=N.getDerivedFromVars(N.json.items_placement)),C(),C=fe(u,(t=>n(29,m=t)))),1073741836&t.$$.dirty[0]|31&t.$$.dirty[1]&&(w&&n(2,L=Vi({type:"shape_drawable",shape:w},pl,L)),_&&n(3,U=Vi({type:"shape_drawable",shape:_},pl,U)),!w&&!_&&$)){const t=Xo(b,1.3);n(3,U=Vi({type:"shape_drawable",shape:$,color:U.background},pl,U)),n(3,U.background=k(y,1,U.background),U),n(2,L=Object.assign(Object.assign({},U),{width:U.width*t,height:U.height*t,borderRadius:U.borderRadius*t,background:L.background})),n(2,L.background=k(v,1,L.background),L)}if(855638256&t.$$.dirty[0])if(!m||"default"!==m.type&&"stretch"!==m.type)n(4,H="default"),g&&n(5,W=so(g.value,W));else if(n(4,H=m.type),"default"===H)n(5,W=so(null===n(24,S=m.space_between_centers)||void 0===S?void 0:S.value,W));else if("stretch"===H){const t=m;n(6,J=Xo(t.max_visible_items,J)),n(7,q=so(null===n(25,I=t.item_spacing)||void 0===I?void 0:I.value,q))}134217728&t.$$.dirty[0]&&async function(t){if(N.json.pager_id&&t.has(N.json.pager_id)&&(n(10,B=t.get(N.json.pager_id)),await Nn(),R)){const t=R.children[B.currentItem];if(t){const e=t.offsetLeft;z.scroll({left:e-z.clientWidth/2,behavior:"smooth"})}}}(f),67108880&t.$$.dirty[0]&&n(11,p={placement:H,direction:h})},n(12,d=M.getStore("pagers")),x(),x=fe(d,(t=>n(27,f=t))),[N,O,L,U,H,W,J,q,z,R,B,p,d,u,c,l,s,a,i,o,r,T,G,function(t){if(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)return;const{size:e,currentItem:n}=B;if(t.which===La)K(n-1<0?n:n-1);else if(t.which===Ua)K(n+1>=e?n:n+1);else if(t.which===Ha)K(0);else{if(t.which!==Wa)return;K(e-1)}t.preventDefault()},S,I,h,f,g,m,v,y,$,b,_,w,t=>G(t),function(t){Vn[t?"unshift":"push"]((()=>{R=t,n(9,R)}))},function(t){Vn[t?"unshift":"push"]((()=>{z=t,n(8,z)}))}]}const fl={slider:"divkit-ef4f7",slider__input:"divkit-d1d65",slider__input_secondary:"divkit-c7980",slider__thumb:"divkit-f3453",slider_direction_rtl:"divkit-fb7b5",slider__thumb_secondary:"divkit-e1984","slider__tracks-wrapper":"divkit-f7338","slider__tracks-inner":"divkit-ac903",slider__track:"divkit-e956c","slider__active-track":"divkit-ec5bf","slider__thumb-text":"divkit-c4af5","slider__thumb-text_secondary":"divkit-d8821",slider__tick:"divkit-bd9bf",slider__tick_active:"divkit-d8ce2",slider__tick_inactive:"divkit-e71e7"};function gl(t,e){if(!t||!t.font_size)return e;const n=t.offset,r=t.text_color&&k(t.text_color)||"#000",o=Qo(t.font_weight);if(Vo(t.font_size)&&"transparent"!==r){var i,a;const e={fontSize:Rr(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 ml(t,e,n){return Math.max(e,Math.min(n,Number(t)))}function vl(t,e,n){const r=t.slice();return r[80]=e[n],r}function yl(t,e,n){const r=t.slice();return r[80]=e[n],r}function $l(t){let e,n;return e=new Yo({props:{cls:to("slider",fl,t[24]),style:t[25],customDescription:!0,customActions:"slider",hasInnerFocusable:!0,componentContext:t[0],layoutParams:t[1],$$slots:{default:[Cl,t=>{let{focusHandler:e,blurHandler:n}=t;return{78:e,79:n}},t=>{let{focusHandler:e,blurHandler:n}=t;return[0,0,(e?65536:0)|(n?131072:0)]}]},$$scope:{ctx:t}}}),{c(){ar(e.$$.fragment)},l(t){sr(e.$$.fragment,t)},m(t,r){lr(e,t,r),n=!0},p(t,n){const r={};16777216&n[0]&&(r.cls=to("slider",fl,t[24])),33554432&n[0]&&(r.style=t[25]),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),205518844&n[0]|8585216&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Gn(e.$$.fragment,t),n=!0)},o(t){Kn(e.$$.fragment,t),n=!1},d(t){cr(e,t)}}}function bl(t){let e,n;return{c(){e=Le("div"),this.h()},l(t){e=rn(t,"DIV",{class:!0}),Qe(e).forEach(Re),this.h()},h(){Ge(e,"class",n=fl.slider__tick+" "+fl.slider__tick_active),dn(e,"--divkit-slider-tick",t[80])},m(t,n){ze(t,e,n)},p(t,n){262144&n[0]&&dn(e,"--divkit-slider-tick",t[80])},d(t){t&&Re(e)}}}function _l(t){let e,n;return{c(){e=Le("div"),this.h()},l(t){e=rn(t,"DIV",{class:!0}),Qe(e).forEach(Re),this.h()},h(){Ge(e,"class",n=fl.slider__tick+" "+fl.slider__tick_inactive),dn(e,"--divkit-slider-tick",t[80])},m(t,n){ze(t,e,n)},p(t,n){524288&n[0]&&dn(e,"--divkit-slider-tick",t[80])},d(t){t&&Re(e)}}}function wl(t){let e,n,r,o,i;return{c(){e=Le("div"),n=Le("div"),r=He(t[12]),this.h()},l(o){e=rn(o,"DIV",{class:!0});var i=Qe(e);n=rn(i,"DIV",{class:!0});var a=Qe(n);r=an(a,t[12]),a.forEach(Re),i.forEach(Re),this.h()},h(){var r,a,s;Ge(n,"class",o=fl["slider__thumb-text-inner"]),dn(n,"font-size",(null===(r=t[9])||void 0===r?void 0:r.fontSize)||"1em"),dn(n,"font-weight",(null===(a=t[9])||void 0===a?void 0:a.fontWeight)||""),dn(n,"color",(null===(s=t[9])||void 0===s?void 0:s.textColor)||"#000"),Ge(e,"class",i=fl["slider__thumb-text"])},m(t,o){ze(t,e,o),Me(e,n),Me(n,r)},p(t,e){var o,i,a;4096&e[0]&&cn(r,t[12]),512&e[0]&&dn(n,"font-size",(null===(o=t[9])||void 0===o?void 0:o.fontSize)||"1em"),512&e[0]&&dn(n,"font-weight",(null===(i=t[9])||void 0===i?void 0:i.fontWeight)||""),512&e[0]&&dn(n,"color",(null===(a=t[9])||void 0===a?void 0:a.textColor)||"#000")},d(t){t&&Re(e)}}}function xl(t){let e,n,r=t[10]&&kl(t);return{c(){e=Le("div"),r&&r.c(),this.h()},l(t){e=rn(t,"DIV",{class:!0});var n=Qe(e);r&&r.l(n),n.forEach(Re),this.h()},h(){Ge(e,"class",n=fl.slider__thumb+" "+fl.slider__thumb_secondary),dn(e,"border-radius",Rr(t[6].borderRadius)),dn(e,"background",t[6].background),dn(e,"box-shadow",t[6].boxShadow||"")},m(t,n){ze(t,e,n),r&&r.m(e,null)},p(t,n){t[10]?r?r.p(t,n):(r=kl(t),r.c(),r.m(e,null)):r&&(r.d(1),r=null),64&n[0]&&dn(e,"border-radius",Rr(t[6].borderRadius)),64&n[0]&&dn(e,"background",t[6].background),64&n[0]&&dn(e,"box-shadow",t[6].boxShadow||"")},d(t){t&&Re(e),r&&r.d()}}}function kl(t){let e,n,r,o,i;return{c(){e=Le("div"),n=Le("div"),r=He(t[13]),this.h()},l(o){e=rn(o,"DIV",{class:!0});var i=Qe(e);n=rn(i,"DIV",{class:!0});var a=Qe(n);r=an(a,t[13]),a.forEach(Re),i.forEach(Re),this.h()},h(){var r,a,s;Ge(n,"class",o=fl["slider__thumb-text-inner"]),dn(n,"font-size",(null===(r=t[10])||void 0===r?void 0:r.fontSize)||"1em"),dn(n,"font-weight",(null===(a=t[10])||void 0===a?void 0:a.fontWeight)||""),dn(n,"color",(null===(s=t[10])||void 0===s?void 0:s.textColor)||"#000"),Ge(e,"class",i=fl["slider__thumb-text"]+" "+fl["slider__thumb-text_secondary"])},m(t,o){ze(t,e,o),Me(e,n),Me(n,r)},p(t,e){var o,i,a;8192&e[0]&&cn(r,t[13]),1024&e[0]&&dn(n,"font-size",(null===(o=t[10])||void 0===o?void 0:o.fontSize)||"1em"),1024&e[0]&&dn(n,"font-weight",(null===(i=t[10])||void 0===i?void 0:i.fontWeight)||""),1024&e[0]&&dn(n,"color",(null===(a=t[10])||void 0===a?void 0:a.textColor)||"#000")},d(t){t&&Re(e)}}}function El(t){let e,n,r,o,i;return{c(){e=Le("input"),this.h()},l(t){e=rn(t,"INPUT",{type:!0,class:!0,min:!0,max:!0,step:!0,"aria-label":!0}),this.h()},h(){Ge(e,"type","range"),Ge(e,"class",n=t[17]?fl.slider__input:"".concat(fl.slider__input," ").concat(fl.slider__input_secondary)),Ge(e,"min",t[3]),Ge(e,"max",t[4]),Ge(e,"step","1"),e.value=r=t[17]?t[12]:t[13],Ge(e,"aria-label",t[21])},m(n,r){ze(n,e,r),o||(i=[qe(e,"input",t[72]),qe(e,"mousedown",(function(){ue(t[14]?t[41]:null)&&(t[14]?t[41]:null).apply(this,arguments)})),qe(e,"touchstart",(function(){ue(t[14]?t[41]:null)&&(t[14]?t[41]:null).apply(this,arguments)})),qe(e,"focus",(function(){ue(t[78])&&t[78].apply(this,arguments)})),qe(e,"blur",(function(){ue(t[79])&&t[79].apply(this,arguments)}))],o=!0)},p(o,i){t=o,131072&i[0]&&n!==(n=t[17]?fl.slider__input:"".concat(fl.slider__input," ").concat(fl.slider__input_secondary))&&Ge(e,"class",n),8&i[0]&&Ge(e,"min",t[3]),16&i[0]&&Ge(e,"max",t[4]),143360&i[0]&&r!==(r=t[17]?t[12]:t[13])&&(e.value=r),2097152&i[0]&&Ge(e,"aria-label",t[21])},d(t){t&&Re(e),o=!1,ce(i)}}}function Cl(t){let e,n,r,o,i,a,s,l,c,u,d,p,h,f,g,m,v,y,$,b,_,w,x=Xn(t[18]),k=[];for(let e=0;e<x.length;e+=1)k[e]=bl(yl(t,x,e));let E=Xn(t[19]),C=[];for(let e=0;e<E.length;e+=1)C[e]=_l(vl(t,E,e));let A=t[9]&&wl(t),j=t[14]&&xl(t),V=t[14]&&El(t);return{c(){e=Le("div"),n=Le("div"),r=Le("div"),i=We(),a=Le("div"),l=We();for(let t=0;t<k.length;t+=1)k[t].c();c=We();for(let t=0;t<C.length;t+=1)C[t].c();u=We(),d=Le("div"),A&&A.c(),h=We(),j&&j.c(),f=We(),g=Le("input"),y=We(),V&&V.c(),this.h()},l(t){e=rn(t,"DIV",{class:!0});var o=Qe(e);n=rn(o,"DIV",{class:!0});var s=Qe(n);r=rn(s,"DIV",{class:!0}),Qe(r).forEach(Re),i=sn(s),a=rn(s,"DIV",{class:!0}),Qe(a).forEach(Re),l=sn(s);for(let t=0;t<k.length;t+=1)k[t].l(s);c=sn(s);for(let t=0;t<C.length;t+=1)C[t].l(s);u=sn(s),d=rn(s,"DIV",{class:!0});var p=Qe(d);A&&A.l(p),p.forEach(Re),h=sn(s),j&&j.l(s),f=sn(s),g=rn(s,"INPUT",{type:!0,class:!0,min:!0,max:!0,step:!0,"aria-label":!0}),y=sn(s),V&&V.l(s),s.forEach(Re),o.forEach(Re),this.h()},h(){Ge(r,"class",o=fl.slider__track),dn(r,"height",Rr(t[7].height)),dn(r,"border-radius",Rr(t[7].borderRadius)),dn(r,"background",t[7].background),dn(r,"box-shadow",t[7].boxShadow||""),Ge(a,"class",s=fl["slider__active-track"]),dn(a,"left","ltr"===t[15]?(100*t[26]).toFixed(2)+"%":void 0),dn(a,"right","ltr"===t[15]?void 0:(100*t[26]).toFixed(2)+"%"),dn(a,"width",(100*t[27]).toFixed(2)+"%"),dn(a,"height",Rr(t[8].height)),dn(a,"border-radius",Rr(t[8].borderRadius)),dn(a,"background",t[8].background),dn(a,"box-shadow",t[8].boxShadow||""),Ge(d,"class",p=fl.slider__thumb),dn(d,"border-radius",Rr(t[5].borderRadius)),dn(d,"background",t[5].background),dn(d,"box-shadow",t[5].boxShadow||""),Ge(g,"type","range"),Ge(g,"class",m=t[17]?"".concat(fl.slider__input," ").concat(fl.slider__input_secondary):fl.slider__input),Ge(g,"min",t[3]),Ge(g,"max",t[4]),Ge(g,"step","1"),g.value=v=t[17]?t[13]:t[12],Ge(g,"aria-label",t[20]),Ge(n,"class",$=fl["slider__tracks-inner"]),Ge(e,"class",b=fl["slider__tracks-wrapper"])},m(o,s){ze(o,e,s),Me(e,n),Me(n,r),Me(n,i),Me(n,a),Me(n,l);for(let t=0;t<k.length;t+=1)k[t]&&k[t].m(n,null);Me(n,c);for(let t=0;t<C.length;t+=1)C[t]&&C[t].m(n,null);Me(n,u),Me(n,d),A&&A.m(d,null),Me(n,h),j&&j.m(n,null),Me(n,f),Me(n,g),t[71](g),Me(n,y),V&&V.m(n,null),t[73](n),_||(w=[qe(g,"input",t[70]),qe(g,"focus",(function(){ue(t[78])&&t[78].apply(this,arguments)})),qe(g,"blur",(function(){ue(t[79])&&t[79].apply(this,arguments)}))],_=!0)},p(e,o){if(t=e,128&o[0]&&dn(r,"height",Rr(t[7].height)),128&o[0]&&dn(r,"border-radius",Rr(t[7].borderRadius)),128&o[0]&&dn(r,"background",t[7].background),128&o[0]&&dn(r,"box-shadow",t[7].boxShadow||""),67141632&o[0]&&dn(a,"left","ltr"===t[15]?(100*t[26]).toFixed(2)+"%":void 0),67141632&o[0]&&dn(a,"right","ltr"===t[15]?void 0:(100*t[26]).toFixed(2)+"%"),134217728&o[0]&&dn(a,"width",(100*t[27]).toFixed(2)+"%"),256&o[0]&&dn(a,"height",Rr(t[8].height)),256&o[0]&&dn(a,"border-radius",Rr(t[8].borderRadius)),256&o[0]&&dn(a,"background",t[8].background),256&o[0]&&dn(a,"box-shadow",t[8].boxShadow||""),262144&o[0]){let e;for(x=Xn(t[18]),e=0;e<x.length;e+=1){const r=yl(t,x,e);k[e]?k[e].p(r,o):(k[e]=bl(r),k[e].c(),k[e].m(n,c))}for(;e<k.length;e+=1)k[e].d(1);k.length=x.length}if(524288&o[0]){let e;for(E=Xn(t[19]),e=0;e<E.length;e+=1){const r=vl(t,E,e);C[e]?C[e].p(r,o):(C[e]=_l(r),C[e].c(),C[e].m(n,u))}for(;e<C.length;e+=1)C[e].d(1);C.length=E.length}t[9]?A?A.p(t,o):(A=wl(t),A.c(),A.m(d,null)):A&&(A.d(1),A=null),32&o[0]&&dn(d,"border-radius",Rr(t[5].borderRadius)),32&o[0]&&dn(d,"background",t[5].background),32&o[0]&&dn(d,"box-shadow",t[5].boxShadow||""),t[14]?j?j.p(t,o):(j=xl(t),j.c(),j.m(n,f)):j&&(j.d(1),j=null),131072&o[0]&&m!==(m=t[17]?"".concat(fl.slider__input," ").concat(fl.slider__input_secondary):fl.slider__input)&&Ge(g,"class",m),8&o[0]&&Ge(g,"min",t[3]),16&o[0]&&Ge(g,"max",t[4]),143360&o[0]&&v!==(v=t[17]?t[13]:t[12])&&(g.value=v),1048576&o[0]&&Ge(g,"aria-label",t[20]),t[14]?V?V.p(t,o):(V=El(t),V.c(),V.m(n,null)):V&&(V.d(1),V=null)},d(n){n&&Re(e),Be(k,n),Be(C,n),A&&A.d(),j&&j.d(),t[71](null),V&&V.d(),t[73](null),_=!1,ce(w)}}}function Al(t){let e,n,r,o,i=!t[11]&&$l(t);return{c(){i&&i.c(),e=Je()},l(t){i&&i.l(t),e=Je()},m(a,s){i&&i.m(a,s),ze(a,e,s),n=!0,r||(o=qe(window,"resize",t[43]),r=!0)},p(t,n){t[11]?i&&(Jn(),Kn(i,1,1,(()=>{i=null})),qn()):i?(i.p(t,n),2048&n[0]&&Gn(i,1)):(i=$l(t),i.c(),Gn(i,1),i.m(e.parentNode,e))},i(t){n||(Gn(i),n=!0)},o(t){Kn(i),n=!1},d(t){t&&Re(e),i&&i.d(t),r=!1,o()}}}const jl={width:10,height:10,borderRadius:5,background:"#000"},Vl=["rounded_rectangle","circle"],Dl=["rounded_rectangle"];function Fl(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 Pl(t,e,n){let r,o,i,a,s,l,c,u,d,p,h,f,g,m,v,y,$,b,_,w,x,k,E,C,A,j,V,D,F,P,S,I,N,O,M,T,z,R,B,L=oe,U=oe,H=oe,W=oe,J=oe,q=oe,G=oe,K=oe,Y=oe,Z=oe,X=oe,Q=oe,tt=oe,et=oe;var nt,rt,ot,it;t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>K())),t.$$.on_destroy.push((()=>Y())),t.$$.on_destroy.push((()=>Z())),t.$$.on_destroy.push((()=>X())),t.$$.on_destroy.push((()=>Q())),t.$$.on_destroy.push((()=>tt())),t.$$.on_destroy.push((()=>et()));let{componentContext:at}=e,{layoutParams:st}=e;const lt=Cn(Or),ct=Cn(_o),dt=lt.direction;let pt,ht,ft;ge(t,dt,(t=>n(15,A=t)));let gt,mt,vt,yt=!1,$t=0,bt=100,_t=jl,wt=_t,xt=jl,kt=jl,Et=null,Ct=null,At=vt,jt="",Vt="",Dt=!1,Ft=ml(z||0,$t,bt),Pt=ml(T||0,$t,bt);function St(t,e){const r=Number(t.target.value);yt===("first"===e)?(n(13,Pt=r),a.setValue(r)):(n(12,Ft=r),i.setValue(r))}let It=!1;function Nt(){if(!ft)return;const t=bt-$t,e=(null==Et?void 0:Et.width)||0,n=(null==Ct?void 0:Ct.width)||0;Math.max(e,n)*t>=(null==ft?void 0:ft.clientWidth)?It||(at.logError(ut(new Error("Slider ticks overlap each other"),{level:"warn"})),It=!0):It=!1}const Ot=ui(Nt,50);return xn((()=>{Nt()})),kn((()=>{pt&&(lt.unregisterFocusable(pt),n(48,pt=void 0))})),t.$$set=t=>{"componentContext"in t&&n(0,at=t.componentContext),"layoutParams"in t&&n(1,st=t.layoutParams)},t.$$.update=()=>{if(33&t.$$.dirty[0]&&at.json&&(n(5,_t=jl),n(6,wt=_t),n(7,xt=jl),n(8,kt=jl),n(49,Et=null),n(50,Ct=null),n(9,vt=void 0),n(10,At=void 0),n(20,jt=""),n(21,Vt="")),1&t.$$.dirty[0]&&n(55,r=at.json.thumb_value_variable),1&t.$$.dirty[0]&&n(14,o=at.json.thumb_secondary_value_variable),1&t.$$.dirty[0]|16777216&t.$$.dirty[1]&&(n(22,i=r&&at.getVariable(r,"integer")||Cr("temp","integer",0)),Q(),Q=fe(i,(t=>n(67,z=t)))),16385&t.$$.dirty[0]&&(n(23,a=o&&at.getVariable(o,"integer")||Cr("temp","integer",0)),X(),X=fe(a,(t=>n(66,T=t)))),1&t.$$.dirty[0]&&(n(39,s=at.getDerivedFromVars(at.json.min_value)),et(),et=fe(s,(t=>n(69,B=t)))),1&t.$$.dirty[0]&&(n(38,l=at.getDerivedFromVars(at.json.max_value)),tt(),tt=fe(l,(t=>n(68,R=t)))),1&t.$$.dirty[0]&&(n(37,c=at.getDerivedFromVars(at.json.thumb_style)),Z(),Z=fe(c,(t=>n(65,M=t)))),1&t.$$.dirty[0]&&(n(36,u=at.getDerivedFromVars(at.json.thumb_secondary_style)),Y(),Y=fe(u,(t=>n(64,O=t)))),1&t.$$.dirty[0]&&(n(35,d=at.getDerivedFromVars(at.json.track_inactive_style)),K(),K=fe(d,(t=>n(63,N=t)))),1&t.$$.dirty[0]&&(n(34,p=at.getDerivedFromVars(at.json.track_active_style)),G(),G=fe(p,(t=>n(62,I=t)))),1&t.$$.dirty[0]&&(n(33,h=at.getDerivedFromVars(at.json.tick_mark_active_style)),q(),q=fe(h,(t=>n(61,S=t)))),1&t.$$.dirty[0]&&(n(32,f=at.getDerivedFromVars(at.json.tick_mark_inactive_style)),J(),J=fe(f,(t=>n(60,P=t)))),1&t.$$.dirty[0]&&(n(31,g=at.getDerivedFromVars(at.json.thumb_text_style)),W(),W=fe(g,(t=>n(59,F=t)))),1&t.$$.dirty[0]&&(n(30,m=at.getDerivedFromVars(at.json.thumb_secondary_text_style)),H(),H=fe(m,(t=>n(58,D=t)))),1&t.$$.dirty[0]&&(n(29,v=at.getDerivedFromVars(at.json.accessibility)),U(),U=fe(v,(t=>n(57,V=t)))),1&t.$$.dirty[0]&&(n(28,y=at.getDerivedFromVars(at.json.secondary_value_accessibility)),L(),L=fe(y,(t=>n(56,j=t)))),24&t.$$.dirty[0]|192&t.$$.dirty[2]&&(n(3,$t=ho(B,$t)),n(4,bt=ho(R,bt)),Nt()),4120&t.$$.dirty[0]|32&t.$$.dirty[2]){const t=ml(z||0,$t,bt);t!==Ft&&n(12,Ft=t)}if(8216&t.$$.dirty[0]|16&t.$$.dirty[2]){const t=ml(T||0,$t,bt);t!==Pt&&n(13,Pt=t)}if(32&t.$$.dirty[0]|8&t.$$.dirty[2]&&n(5,_t=Vi(M,Vl,_t)),32&t.$$.dirty[0]|4&t.$$.dirty[2]&&n(6,wt=Vi(O,Vl,_t)),128&t.$$.dirty[0]|2&t.$$.dirty[2]&&n(7,xt=Vi(N,Dl,xt)),256&t.$$.dirty[0]|1&t.$$.dirty[2]&&n(8,kt=Vi(I,Dl,kt)),1073741824&t.$$.dirty[1]){let t=Vi(S,Vl,jl);t!==jl&&n(49,Et=t)}if(28696&t.$$.dirty[0]|262144&t.$$.dirty[1]&&(Et?(n(18,gt=o?Fl(Math.min(Ft,Pt),Math.max(Ft,Pt)+1,$t,bt,!0):Fl($t,Ft,$t,bt,!0)),Nt()):n(18,gt=[])),536870912&t.$$.dirty[1]){let t=Vi(P,Vl,jl);t!==jl&&n(50,Ct=t)}if(28696&t.$$.dirty[0]|524288&t.$$.dirty[1]&&(Ct?(n(19,mt=o?Fl(Math.min(Ft,Pt),Math.max(Ft,Pt)+1,$t,bt,!1):Fl(Ft+1,bt+1,$t,bt,!0)),Nt()):n(19,mt=[])),512&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&n(9,vt=gl(F,vt)),512&t.$$.dirty[0]|134217728&t.$$.dirty[1]&&n(10,At=gl(D,vt)),1&t.$$.dirty[0]|67108864&t.$$.dirty[1]&&((null==V?void 0:V.description)?n(20,jt=V.description):at.logError(ut(new Error('Missing accessibility "description" for slider'),{level:"warn"}))),16385&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&((null==j?void 0:j.description)?n(21,Vt=j.description):o&&at.logError(ut(new Error('Missing second accessibility "description" for slider'),{level:"warn"}))),2465&t.$$.dirty[0]){let t=!1;ct.hasAction()?(at.logError(ut(new Error('Cannot show "slider" inside component with action'))),t=!0):_t===jl?(at.logError(ut(new Error('Missing "thumb_style" in slider'))),t=!0):kt===jl?(at.logError(ut(new Error('Missing "track_active_style" in slider'))),t=!0):xt===jl&&(at.logError(ut(new Error('Missing "track_inactive_style" in slider'))),t=!0),t!==Dt&&n(11,Dt=t)}96&t.$$.dirty[0]&&n(54,$=Rr(Math.max(...[_t.width,wt.width,0].filter(io)))),96&t.$$.dirty[0]&&n(53,b=Rr(Math.max(...[_t.height,wt.height,0].filter(io)))),4120&t.$$.dirty[0]&&n(52,_=(Ft-$t)/(bt-$t)),24600&t.$$.dirty[0]&&n(51,w=o?(Pt-$t)/(bt-$t):void 0),3145728&t.$$.dirty[1]&&n(27,x=void 0!==w?Math.abs(w-_):_),3145728&t.$$.dirty[1]&&n(26,k=void 0!==w?Math.min(w,_):0),1632&t.$$.dirty[0]|16637952&t.$$.dirty[1]&&n(25,E={"--divkit-slider-thumb-width":Rr(_t.width),"--divkit-slider-thumb-height":Rr(_t.height),"--divkit-slider-thumb-secondary-width":Rr(wt.width),"--divkit-slider-thumb-secondary-height":Rr(wt.height),"--divkit-slider-text-offset-x":(null===n(44,nt=null==vt?void 0:vt.offset)||void 0===nt?void 0:nt.x)?Br(vt.offset.x):void 0,"--divkit-slider-text-offset-y":(null===n(45,rt=null==vt?void 0:vt.offset)||void 0===rt?void 0:rt.y)?Br(vt.offset.y):void 0,"--divkit-slider-text-secondary-offset-x":(null===n(46,ot=null==At?void 0:At.offset)||void 0===ot?void 0:ot.x)?Br(At.offset.x):void 0,"--divkit-slider-text-secondary-offset-y":(null===n(47,it=null==At?void 0:At.offset)||void 0===it?void 0:it.y)?Br(At.offset.y):void 0,"--divkit-slider-tick-active-width":Et?Rr(Et.width):void 0,"--divkit-slider-tick-active-height":Et?Rr(Et.height):void 0,"--divkit-slider-tick-active-border-radius":Et?Rr(Et.borderRadius):void 0,"--divkit-slider-tick-active-background":(null==Et?void 0:Et.background)||void 0,"--divkit-slider-tick-active-box-shadow":(null==Et?void 0:Et.boxShadow)||void 0,"--divkit-slider-tick-inactive-width":Ct?Rr(Ct.width):void 0,"--divkit-slider-tick-inactive-height":Ct?Rr(Ct.height):void 0,"--divkit-slider-tick-inactive-border-radius":Ct?Rr(Ct.borderRadius):void 0,"--divkit-slider-tick-inactive-background":(null==Ct?void 0:Ct.background)||void 0,"--divkit-slider-tick-inactive-box-shadow":(null==Ct?void 0:Ct.boxShadow)||void 0,"--divkit-slider-max-thumb-width":$,"--divkit-slider-max-thumb-height":b,"--divkit-slider-track-part":_,"--divkit-slider-track-secondary-part":w}),32768&t.$$.dirty[0]&&n(24,C={direction:A}),5&t.$$.dirty[0]|131072&t.$$.dirty[1]&&at.json&&ht&&(pt&&(lt.unregisterFocusable(pt),n(48,pt=void 0)),at.json.id&&!at.fakeElement&&(n(48,pt=at.json.id),lt.registerFocusable(pt,{focus(){ht&&ht.focus()}})))},[at,st,ht,$t,bt,_t,wt,xt,kt,vt,At,Dt,Ft,Pt,o,A,ft,yt,gt,mt,jt,Vt,i,a,C,E,k,x,y,v,m,g,f,h,p,d,u,c,l,s,dt,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=ft.getBoundingClientRect(),a=(o-i.left)/i.width,s=(bt-$t)*a,l=Math.round(ml(s,$t,bt));n(17,yt=l<(Ft+Pt)/2==Ft<Pt)},St,Ot,nt,rt,ot,it,pt,Et,Ct,w,_,b,$,r,j,V,D,F,P,S,I,N,O,M,T,z,R,B,t=>St(t,"first"),function(t){Vn[t?"unshift":"push"]((()=>{ht=t,n(2,ht)}))},t=>St(t,"second"),function(t){Vn[t?"unshift":"push"]((()=>{ft=t,n(16,ft)}))}]}const Sl={input:"divkit-c3a4c","input_alignment-horizontal_center":"divkit-fc52a","input_alignment-horizontal_end":"divkit-e9096",input__input:"divkit-f11e0",input__placeholder:"divkit-b7593","input_alignment-vertical_start":"divkit-cd14f","input_alignment-vertical_end":"divkit-cd38f","input_alignment-vertical_baseline":"divkit-dd6af","input_highlight-color":"divkit-cc00f",input__input_singleline:"divkit-ffd1e","input__scroll-wrapper":"divkit-ad8a3",input__input_multiline:"divkit-f61f0","input__input_has-custom-focus":"divkit-e6b50"};function Il(t,e){if(t===e)return{start:t.length,added:0,removed:0};if(t.length>e.length){const n=Il(e,t);return{start:n.start,added:n.removed,removed:n.added}}let n=0,r=e.length-1;const o=e.length-t.length;for(;n<r&&n<t.length&&t[n]===e[n];)++n;for(;r-o>=n&&t[r-o]===e[r];)--r;return++r,{start:n,added:r-n,removed:r-n-o}}function Nl(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class Ol{constructor(t){this.char=t}}class Ml{constructor(t,e,n){this.char=t,this.filter=e,this.placeholder=n}}class Tl{constructor(t){Nl(this,"filters",new Map),Nl(this,"destructedValue",[]),Nl(this,"cursorPos",0),this.maskData=t,this.updateMaskData(t)}get cursorPosition(){return this.cursorPos}get rawValue(){return this.collectValueRange(0,this.destructedValue.length-1)}get value(){let t="";for(let e=0;e<this.destructedValue.length;++e){const n=this.destructedValue[e];if(n instanceof Ol)t+=n.char;else if(n instanceof Ml)if(n.char)t+=n.char;else{if(!this.maskData.alwaysVisible)break;t+=n.placeholder}}return t}firstEmptyHolderIndex(){const t=this.destructedValue.findIndex((t=>t instanceof Ml&&!t.char));return-1!==t?t:this.destructedValue.length}updateMaskData(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=this.maskData!==t&&e?this.rawValue:null;this.filters=new Map,this.maskData=t,this.maskData.decoding.forEach((t=>{if(t.filter)try{const e=new RegExp(t.filter);this.filters.set(t.key,e)}catch(e){this.onException(ut(e,{level:"error",additional:{key:t.key}}))}})),this.destructedValue=this.maskData.pattern.split("").map((t=>{const e=this.maskData.decoding.find((e=>e.key===t));return e?new Ml(null,this.filters.get(e.key),e.placeholder):new Ol(t)})),null!==n&&this.overrideRawValue(n)}overrideRawValue(t){this.clearRange(0,this.destructedValue.length),this.replaceChars(t,0),this.cursorPos=Math.min(this.cursorPos,this.value.length)}applyChangeFrom(t,e){const n=Il(this.value,t);void 0!==e&&(n.start=Math.max(0,e-n.added));const r=this.buildBodySubstring(n,t),o=this.buildTailSubstring(n);this.cleanup(n);const i=this.firstEmptyHolderIndex(),a=o?this.calculateMaxShift(o,i):void 0;this.replaceChars(r,i,a);const s=this.firstEmptyHolderIndex();this.replaceChars(o,s),this.calculateCursorPosition(n,s)}buildBodySubstring(t,e){return e.substring(t.start,t.start+t.added)}buildTailSubstring(t){return this.collectValueRange(t.start+t.removed,this.destructedValue.length-1)}calculateMaxShift(t,e){if(this.filters.size<=1){let n=0,r=e;for(;r<this.destructedValue.length;)this.destructedValue[r]instanceof Ml&&++n,++r;return Math.max(0,n-t.length)}const n=this.calculateInsertableSubstring(t,e);let r=0;for(;r<this.destructedValue.length&&n===this.calculateInsertableSubstring(t,e+r);)++r;return Math.max(0,r-1)}cleanup(t){if(0===t.added&&1===t.removed){let e=t.start;for(;e>=0;){const t=this.destructedValue[e];if(t instanceof Ml&&null!==t.char){t.char=null;break}--e}}this.clearRange(t.start,this.destructedValue.length)}clearRange(t,e){let n=t;for(;n<e&&n<this.destructedValue.length;){const t=this.destructedValue[n];t instanceof Ml&&(t.char=null),++n}}calculateCursorPosition(t,e){const n=this.firstEmptyHolderIndex();let r;r=t.start<n?Math.min(this.firstHolderAfter(e),this.value.length):n,this.cursorPos=r}calculateInsertableSubstring(t,e){let n="",r=e;const o=()=>{for(var t;r<this.destructedValue.length&&!(this.destructedValue[r]instanceof Ml);)++r;return null===(t=this.destructedValue[r])||void 0===t?void 0:t.filter};return t.split("").forEach((t=>{const e=o();null!=e&&e.test(t)&&(n+=t,++r)})),n}collectValueRange(t,e){let n="",r=t;for(;r<=e;){const t=this.destructedValue[r];t instanceof Ml&&null!==t.char&&(n+=t.char),++r}return n}replaceChars(t,e,n){let r=this.calculateInsertableSubstring(t,e);void 0!==n&&(r=r.substring(0,n));let o=e,i=0;for(;o<this.destructedValue.length&&i<r.length;){const t=this.destructedValue[o],e=r[i];t instanceof Ml&&(t.char=e,++i),++o}}firstHolderAfter(t){let e=t;for(;e<this.destructedValue.length&&!(this.destructedValue[e]instanceof Ml);)++e;return e}}class zl extends Tl{constructor(t,e){super(t),this.logError=e}onException(t){this.logError(t)}}function Rl(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class Bl extends Tl{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,e=arguments.length>1?arguments[1]:void 0;super({pattern:"",decoding:[],alwaysVisible:!1}),Rl(this,"currencyFormatter",new Intl.NumberFormat),Rl(this,"decimalSeparator","."),Rl(this,"localeDigits",{}),Rl(this,"trimZeroRegExp",new RegExp("")),this.logError=e,this.initFormatter(t)}updateCurrencyParams(t){const e=this.parseFormat(this.rawValue)||0;this.initFormatter(t);const n=e.toString().replace(".",this.decimalSeparator);this.applyChangeFrom(n)}initFormatter(t){try{this.currencyFormatter=new Intl.NumberFormat(t,{minimumFractionDigits:2,maximumFractionDigits:2}),this.decimalSeparator=this.currencyFormatter.format(0)[1],this.localeDigits=new Array(10).fill("").reduce(((t,e,n)=>(t[n]=this.currencyFormatter.format(n)[0],t)),{}),this.trimZeroRegExp=new RegExp("^".concat(this.localeDigits[0],"+"))}catch(e){this.onException(ut(e,{level:"error",additional:{locale:t}}))}}invalidateMaskDataForFormatted(t){const e=this.currencyFormatter.format(t),n=this.formatPattern(e),r=[{key:"#",filter:"[".concat([...Object.values(this.localeDigits)].join(""),"]"),placeholder:this.localeDigits[0]},{key:this.decimalSeparator,filter:"[".concat(this.decimalSeparator,"]"),placeholder:this.decimalSeparator}];this.updateMaskData({pattern:n,decoding:r,alwaysVisible:this.maskData.alwaysVisible},!1)}overrideRawValue(t){const e=this.parseFormat(t)||0;this.invalidateMaskDataForFormatted(e),super.overrideRawValue(t)}applyChangeFrom(t,e){const n=Il(this.value,t),r=this.value.lastIndexOf(this.decimalSeparator),o=t.lastIndexOf(this.decimalSeparator),i=r!==o||-1===r&&-1===o,a=this.validFormat(t,n);this.cleanup(n);const s=this.parseFormat(a)||0;i&&this.invalidateMaskDataForFormatted(s),this.replaceChars(a,0),this.value.length>n.start&&!this.isDigit(this.value[n.start])?this.cursorPos=null!=e?e:this.cursorPosition:this.cursorPos=Math.abs(this.value.length-(t.length-(null!=e?e:this.cursorPosition)))}parseFormat(t){return parseFloat(t.replace(/./g,(t=>this.localeDigits[t]||(t===this.decimalSeparator?".":""))))}formatPattern(t){let e="";for(const n of t)e+=this.isDigit(n)?"#":n;return e}validFormat(t,e){if(!t)return"";let n=-1,r=0;for(;r<t.length;){if(t[r]===this.decimalSeparator&&!this.inDiff(e,r)){n=r;break}r++}let o=-1;1===e.added&&0===e.removed&&[",","."].includes(t[e.start])&&(o=e.start);const i=this.currencyFormatter.resolvedOptions().maximumFractionDigits;let a=i;if(-1!==n)for(r=n;r<t.length;)this.isDigit(t[r])&&!this.inDiff(e,r)&&a--,r++;else{let n=!1;for(let r=0;r<t.length;r++){const o=t[r];o===this.decimalSeparator?n=!0:!this.inDiff(e,r)&&n&&this.isDigit(o)&&a--}}const s=t.includes(this.decimalSeparator)||-1!==o,l=[];r=t.length-1;let c=!1;for(;r>=0;){const u=t[r],d=l.length<=i;this.isDigit(u)?this.inDiff(e,r)&&!c&&s?a>0&&(l.push(u),a--):l.push(u):d&&-1===n&&r===o?(l.push(this.decimalSeparator),c=!0):!d||u!==this.decimalSeparator||n!==r&&-1!==n||(l.push(this.decimalSeparator),c=!0,n=r),r--}return l.reverse().join("").replace(this.trimZeroRegExp,"")}inDiff(t,e){return t.start<=e&&e<t.start+t.added}isDigit(t){return Boolean(this.localeDigits[t])}onException(t){this.logError(t)}}const Ll=3;function Ul(t){const e=t.textContent;let n=0;return"string"==typeof e&&(n+=e.length,t instanceof HTMLElement&&("DIV"===t.tagName||"BR"===t.tagName)&&++n),n}function Hl(t,e){if(t.nodeType!==Ll)if(t instanceof HTMLElement&&"BR"===t.tagName)try{const e=window.getSelection();if(e){e.removeAllRanges();const n=document.createRange(),r=t.parentNode,o=Array.from(r.childNodes).indexOf(t)+1;n.setStart(r,o),n.setEnd(r,o),e.addRange(n)}}catch(t){}else for(let n=0,r=t.childNodes.length;n<r;++n){const r=t.childNodes[n],o=Ul(r);if(e<=o)return void Hl(r,e);e-=o}else try{const n=window.getSelection();if(n){n.removeAllRanges();const r=document.createRange();r.setStart(t,e),r.setEnd(t,e),n.addRange(r)}}catch(t){}}function Wl(t){let e,n;return e=new Yo({props:{cls:to("input",Sl,t[15]),style:t[14],customDescription:!0,customActions:"input",customPaddings:!0,hasInnerFocusable:!0,componentContext:t[0],layoutParams:t[1],$$slots:{default:[Kl,t=>{let{focusHandler:e,blurHandler:n,hasCustomFocus:r}=t;return{88:e,89:n,90:r}},t=>{let{focusHandler:e,blurHandler:n,hasCustomFocus:r}=t;return[0,0,(e?67108864:0)|(n?134217728:0)|(r?268435456:0)]}]},$$scope:{ctx:t}}}),{c(){ar(e.$$.fragment)},l(t){sr(e.$$.fragment,t)},m(t,r){lr(e,t,r),n=!0},p(t,n){const r={};32768&n[0]&&(r.cls=to("input",Sl,t[15])),16384&n[0]&&(r.style=t[14]),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),78780&n[0]|8&n[1]|1006632960&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Gn(e.$$.fragment,t),n=!0)},o(t){Kn(e.$$.fragment,t),n=!1},d(t){cr(e,t)}}}function Jl(t){let e,n,r,o,i;return{c(){e=Le("input"),this.h()},l(t){e=rn(t,"INPUT",{type:!0,inputmode:!0,class:!0,autocomplete:!0,autocapitalize:!0,"aria-label":!0,style:!0,placeholder:!0}),this.h()},h(){Ge(e,"type",t[7]),Ge(e,"inputmode",t[8]),Ge(e,"class",n=to("input__input",Sl,{"has-custom-focus":t[90],singleline:!0})),Ge(e,"autocomplete","off"),Ge(e,"autocapitalize","off"),Ge(e,"aria-label",t[9]),Ge(e,"style",r=zr(t[13])),Ge(e,"placeholder",t[16]),e.value=t[3]},m(n,r){ze(n,e,r),t[80](e),o||(i=[qe(e,"input",t[36]),qe(e,"mousedown",(function(){ue(t[34]?t[37]:void 0)&&(t[34]?t[37]:void 0).apply(this,arguments)})),qe(e,"click",(function(){ue(t[34]?t[38]:void 0)&&(t[34]?t[38]:void 0).apply(this,arguments)})),qe(e,"focus",(function(){ue(t[88])&&t[88].apply(this,arguments)})),qe(e,"blur",(function(){ue(t[89])&&t[89].apply(this,arguments)}))],o=!0)},p(o,i){t=o,128&i[0]&&Ge(e,"type",t[7]),256&i[0]&&Ge(e,"inputmode",t[8]),268435456&i[2]&&n!==(n=to("input__input",Sl,{"has-custom-focus":t[90],singleline:!0}))&&Ge(e,"class",n),512&i[0]&&Ge(e,"aria-label",t[9]),8192&i[0]&&r!==(r=zr(t[13]))&&Ge(e,"style",r),65536&i[0]&&Ge(e,"placeholder",t[16]),8&i[0]&&e.value!==t[3]&&(e.value=t[3])},d(n){n&&Re(e),t[80](null),o=!1,ce(i)}}}function ql(t){let e,n,r,o,i,a,s,l,c,u,d,p,h=!t[5]&&t[16]&&Gl(t);return{c(){e=Le("span"),h&&h.c(),n=We(),r=Le("span"),o=He(""),a=We(),s=Le("span"),this.h()},l(t){e=rn(t,"SPAN",{class:!0});var i=Qe(e);h&&h.l(i),n=sn(i),r=rn(i,"SPAN",{"aria-hidden":!0,style:!0});var l=Qe(r);o=an(l,""),l.forEach(Re),a=sn(i),s=rn(i,"SPAN",{class:!0,autocapitalize:!0,contenteditable:!0,"aria-label":!0,style:!0}),Qe(s).forEach(Re),i.forEach(Re),this.h()},h(){Ge(r,"aria-hidden","true"),Ge(r,"style",i=zr(t[12])),Ge(s,"class",l=to("input__input",Sl,{"has-custom-focus":t[90],multiline:!0})),Ge(s,"autocapitalize","off"),Ge(s,"contenteditable","true"),Ge(s,"aria-label",t[9]),Ge(s,"style",c=zr(t[13])),void 0===t[5]&&On((()=>t[79].call(s))),Ge(e,"class",u=Sl["input__scroll-wrapper"])},m(i,l){ze(i,e,l),h&&h.m(e,null),Me(e,n),Me(e,r),Me(r,o),Me(e,a),Me(e,s),t[78](s),void 0!==t[5]&&(s.innerText=t[5]),d||(p=[qe(s,"input",t[79]),qe(s,"input",t[36]),qe(s,"paste",Ql),qe(s,"mousedown",(function(){ue(t[34]?t[37]:void 0)&&(t[34]?t[37]:void 0).apply(this,arguments)})),qe(s,"click",(function(){ue(t[34]?t[38]:void 0)&&(t[34]?t[38]:void 0).apply(this,arguments)})),qe(s,"focus",(function(){ue(t[88])&&t[88].apply(this,arguments)})),qe(s,"blur",(function(){ue(t[89])&&t[89].apply(this,arguments)}))],d=!0)},p(o,a){!(t=o)[5]&&t[16]?h?h.p(t,a):(h=Gl(t),h.c(),h.m(e,n)):h&&(h.d(1),h=null),4096&a[0]&&i!==(i=zr(t[12]))&&Ge(r,"style",i),268435456&a[2]&&l!==(l=to("input__input",Sl,{"has-custom-focus":t[90],multiline:!0}))&&Ge(s,"class",l),512&a[0]&&Ge(s,"aria-label",t[9]),8192&a[0]&&c!==(c=zr(t[13]))&&Ge(s,"style",c),32&a[0]&&t[5]!==s.innerText&&(s.innerText=t[5])},d(n){n&&Re(e),h&&h.d(),t[78](null),d=!1,ce(p)}}}function Gl(t){let e,n,r,o;return{c(){e=Le("div"),n=He(t[16]),this.h()},l(r){e=rn(r,"DIV",{class:!0,"aria-hidden":!0,style:!0});var o=Qe(e);n=an(o,t[16]),o.forEach(Re),this.h()},h(){Ge(e,"class",r=Sl.input__placeholder),Ge(e,"aria-hidden","true"),Ge(e,"style",o=zr(t[13]))},m(t,r){ze(t,e,r),Me(e,n)},p(t,r){65536&r[0]&&cn(n,t[16]),8192&r[0]&&o!==(o=zr(t[13]))&&Ge(e,"style",o)},d(t){t&&Re(e)}}}function Kl(t){let e;function n(t,e){return t[4]?ql:Jl}let r=n(t),o=r(t);return{c(){o.c(),e=Je()},l(t){o.l(t),e=Je()},m(t,n){o.m(t,n),ze(t,e,n)},p(t,i){r===(r=n(t))&&o?o.p(t,i):(o.d(1),o=r(t),o&&(o.c(),o.m(e.parentNode,e)))},d(t){t&&Re(e),o.d(t)}}}function Yl(t){let e,n,r=!t[6]&&Wl(t);return{c(){r&&r.c(),e=Je()},l(t){r&&r.l(t),e=Je()},m(t,o){r&&r.m(t,o),ze(t,e,o),n=!0},p(t,n){t[6]?r&&(Jn(),Kn(r,1,1,(()=>{r=null})),qn()):r?(r.p(t,n),64&n[0]&&Gn(r,1)):(r=Wl(t),r.c(),Gn(r,1),r.m(e.parentNode,e))},i(t){n||(Gn(r),n=!0)},o(t){Kn(r),n=!1},d(t){t&&Re(e),r&&r.d(t)}}}const Zl="undefined"!=typeof document&&"inputMode"in document.createElement("input"),Xl={email:"email",number:"number",phone:"tel",single_line_text:"text",multi_line_text:"text",uri:"url"};function Ql(t){if(t.preventDefault(),t.clipboardData){let e=t.clipboardData.getData("text/plain");e=e.trim(),document.execCommand("inserttext",!1,e)}}function tc(t,e,n){let r,o,i,a,s,l,c,u,d,p,h,f,g,m,v,y,$,b,_,w,x,E,C,A,j,V,D,F,P,S,I,N,O,M,T,z,R,B,L,U,H,W,J,q,G,K,Y,Z=oe,X=oe,Q=oe,tt=oe,et=oe,nt=oe,rt=oe,ot=oe,it=oe,at=oe,st=oe,lt=oe,ct=oe,dt=oe,pt=oe,ht=oe,ft=oe,gt=oe,mt=oe;var vt;t.$$.on_destroy.push((()=>Z())),t.$$.on_destroy.push((()=>X())),t.$$.on_destroy.push((()=>Q())),t.$$.on_destroy.push((()=>tt())),t.$$.on_destroy.push((()=>et())),t.$$.on_destroy.push((()=>nt())),t.$$.on_destroy.push((()=>rt())),t.$$.on_destroy.push((()=>ot())),t.$$.on_destroy.push((()=>it())),t.$$.on_destroy.push((()=>at())),t.$$.on_destroy.push((()=>st())),t.$$.on_destroy.push((()=>lt())),t.$$.on_destroy.push((()=>ct())),t.$$.on_destroy.push((()=>dt())),t.$$.on_destroy.push((()=>pt())),t.$$.on_destroy.push((()=>ht())),t.$$.on_destroy.push((()=>ft())),t.$$.on_destroy.push((()=>gt())),t.$$.on_destroy.push((()=>mt()));let{componentContext:yt}=e,{layoutParams:$t}=e;const bt=Cn(Or),_t=bt.direction;let wt,xt;ge(t,_t,(t=>n(62,I=t)));let kt,Et,Ct,At=!1,jt=null,Vt="",Dt="",Ft=!1,Pt="",St=12,It="",Nt="",Ot="#000",Mt="",Tt="start",zt="center",Rt="multi_line_text",Bt="text",Lt="",Ut=null,Ht="",Wt="",Jt="";function qt(t){xt instanceof HTMLInputElement?n(2,xt.selectionStart=n(2,xt.selectionEnd=t,xt),xt):Hl(xt,t)}async function Gt(){if(!xt||!jt)return;jt.overrideRawValue(P),a.set(jt.rawValue),_e(i,F=n(3,Vt=n(5,Dt=jt.value)),F);const t=jt.cursorPosition;await Nn(),document.activeElement===xt&&qt(t)}return xn((()=>{xt&&jt&&P&&(jt.overrideRawValue(P),_e(i,F=n(3,Vt=n(5,Dt=jt.value)),F))})),kn((()=>{wt&&(bt.unregisterFocusable(wt),n(40,wt=void 0))})),t.$$set=t=>{"componentContext"in t&&n(0,yt=t.componentContext),"layoutParams"in t&&n(1,$t=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&yt.json&&(n(42,Pt=""),n(43,St=12),n(44,kt=void 0),n(45,It=""),n(46,Et=void 0),n(48,Ot="#000"),n(49,Mt=""),n(50,Tt="left"),n(51,zt="center"),n(52,Rt="multi_line_text"),n(7,Bt="text"),n(8,Ct=void 0)),1&t.$$.dirty[0]&&n(57,r=yt.json.text_variable),1&t.$$.dirty[0]|256&t.$$.dirty[1]&&n(58,o=null===n(39,vt=yt.json.mask)||void 0===vt?void 0:vt.raw_text_variable),1&t.$$.dirty[0]|67108864&t.$$.dirty[1]&&(n(11,i=r&&yt.getVariable(r,"string")||Cr("temp","string","")),Z(),Z=fe(i,(t=>n(59,F=t)))),1&t.$$.dirty[0]|134217728&t.$$.dirty[1]&&(n(10,a=o&&yt.getVariable(o,"string")||Cr("temp","string","")),X(),X=fe(a,(t=>n(60,P=t)))),1&t.$$.dirty[0]&&(n(33,s=yt.getDerivedFromVars(yt.json.hint_text)),gt(),gt=fe(s,(t=>n(77,K=t)))),1&t.$$.dirty[0]&&(n(32,l=yt.getDerivedFromVars(yt.json.hint_color)),ft(),ft=fe(l,(t=>n(76,G=t)))),1&t.$$.dirty[0]&&(n(31,c=yt.getDerivedFromVars(yt.json.font_size)),ht(),ht=fe(c,(t=>n(75,q=t)))),1&t.$$.dirty[0]&&(n(30,u=yt.getDerivedFromVars(yt.json.font_weight)),pt(),pt=fe(u,(t=>n(74,J=t)))),1&t.$$.dirty[0]&&(n(29,d=yt.getDerivedFromVars(yt.json.font_family)),dt(),dt=fe(d,(t=>n(73,W=t)))),1&t.$$.dirty[0]&&(n(28,p=yt.getDerivedFromVars(yt.json.line_height)),ct(),ct=fe(p,(t=>n(72,H=t)))),1&t.$$.dirty[0]&&(n(27,h=yt.getDerivedFromVars(yt.json.letter_spacing)),lt(),lt=fe(h,(t=>n(71,U=t)))),1&t.$$.dirty[0]&&(n(26,f=yt.getDerivedFromVars(yt.json.text_color)),st(),st=fe(f,(t=>n(70,L=t)))),1&t.$$.dirty[0]&&(n(25,g=yt.getDerivedFromVars(yt.json.highlight_color)),at(),at=fe(g,(t=>n(69,B=t)))),1&t.$$.dirty[0]&&(n(24,m=yt.getDerivedFromVars(yt.json.text_alignment_horizontal)),it(),it=fe(m,(t=>n(68,R=t)))),1&t.$$.dirty[0]&&(n(23,v=yt.getDerivedFromVars(yt.json.text_alignment_vertical)),ot(),ot=fe(v,(t=>n(67,z=t)))),1&t.$$.dirty[0]&&(n(22,y=yt.getDerivedFromVars(yt.json.keyboard_type)),rt(),rt=fe(y,(t=>n(66,T=t)))),1&t.$$.dirty[0]&&(n(21,$=yt.getDerivedFromVars(yt.json.mask)),nt(),nt=fe($,(t=>n(65,M=t)))),1&t.$$.dirty[0]&&(n(20,b=yt.getDerivedFromVars(yt.json.max_visible_lines)),et(),et=fe(b,(t=>n(64,O=t)))),1&t.$$.dirty[0]&&(n(19,_=yt.getDerivedFromVars(yt.json.paddings)),tt(),tt=fe(_,(t=>n(63,N=t)))),1&t.$$.dirty[0]&&(n(18,w=yt.getDerivedFromVars(yt.json.accessibility)),Q(),Q=fe(w,(t=>n(61,S=t)))),1&t.$$.dirty[0]&&(n(17,x=yt.getDerivedFromVars(yt.json.select_all_on_focus)),mt(),mt=fe(x,(t=>n(34,Y=t)))),1&t.$$.dirty[0]|67108864&t.$$.dirty[1]&&(r?n(6,Ft=!1):(n(6,Ft=!0),yt.logError(ut(new Error('Missing "text_variable" in "input"'))))),8&t.$$.dirty[2]&&("fixed_length"===(null==(e=M)?void 0:e.type)?n(41,jt=function(t,e,n){if("string"==typeof t.pattern&&Array.isArray(t.pattern_elements)&&t.pattern_elements.every((t=>t.key&&"string"==typeof t.key))){const r={pattern:t.pattern,alwaysVisible:Boolean(t.always_visible),decoding:t.pattern_elements.map((t=>({key:t.key,filter:t.regex&&"string"==typeof t.regex?t.regex:void 0,placeholder:t.placeholder&&"string"==typeof t.placeholder?t.placeholder:"_"})))};return n?(n.updateMaskData(r),n):new zl(r,e)}return n||null}(e,yt.logError,jt)):"currency"===(null==e?void 0:e.type)&&n(41,jt=function(t,e,n){return n?(n.updateCurrencyParams(t.locale),n):new Bl(t.locale,e)}(e,yt.logError,jt)),jt&&Gt()),8&t.$$.dirty[0]|268436480&t.$$.dirty[1]&&(jt||Vt===F||n(3,Vt=n(5,Dt=F))),536871936&t.$$.dirty[1]&&jt&&jt.rawValue!==P&&Gt(),32768&t.$$.dirty[2]&&n(16,E=K),2048&t.$$.dirty[1]|16384&t.$$.dirty[2]&&n(42,Pt=k(G,1,Pt)),4096&t.$$.dirty[1]|8192&t.$$.dirty[2]&&n(43,St=Xo(q,St)),8192&t.$$.dirty[1]|6144&t.$$.dirty[2]&&(n(44,kt=ti(J,kt)),n(45,It=W&&"string"==typeof W?bt.typefaceProvider(W,{fontWeight:kt||400}):"")),4096&t.$$.dirty[1]|1024&t.$$.dirty[2]){const t=H;Vo(t)&&n(46,Et=t/St)}var e;512&t.$$.dirty[2]&&oo(U)&&n(47,Nt=Rr(U)),131072&t.$$.dirty[1]|256&t.$$.dirty[2]&&n(48,Ot=k(L,1,Ot)),262144&t.$$.dirty[1]|128&t.$$.dirty[2]&&n(49,Mt=k(B,1,Mt)),524288&t.$$.dirty[1]|65&t.$$.dirty[2]&&n(50,Tt=ai(R,I,Tt)),1048576&t.$$.dirty[1]|32&t.$$.dirty[2]&&n(51,zt=si(z,zt)),24&t.$$.dirty[2]&&(T&&T in Xl&&(n(7,Bt=Xl[T]),n(52,Rt=T)),"currency"===(null==M?void 0:M.type)&&(n(7,Bt=Zl?"text":"tel"),n(8,Ct="decimal"))),2097152&t.$$.dirty[1]&&n(4,C="multi_line_text"===Rt),8425472&t.$$.dirty[1]|7&t.$$.dirty[2]&&(Vo(O)?n(53,Lt="calc(".concat(O*(Et||1.25)*(St/10)+"em"," + ").concat(Br(so(null==N?void 0:N.top,0)+so(null==N?void 0:N.bottom,0)),")")):n(53,Lt=""),n(54,Ut=go(N||void 0,Ut)),n(55,Ht=Ut?ro({top:(Number(Ut.top)||0)/St*10,right:(Number("ltr"===I?Ut.end:Ut.start)||Number(Ut.right)||0)/St*10,bottom:(Number(Ut.bottom)||0)/St*10,left:(Number("ltr"===I?Ut.start:Ut.end)||Number(Ut.left)||0)/St*10},I):""),n(56,Wt=Ut?ro({top:(Number(Ut.top)||0)/St*10,bottom:(Number(Ut.bottom)||0)/St*10},I):"")),1&t.$$.dirty[0]|1073741824&t.$$.dirty[1]&&((null==S?void 0:S.description)?n(9,Jt=S.description):yt.logError(ut(new Error('Missing accessibility "description" for input'),{level:"warn"}))),16&t.$$.dirty[0]|1835008&t.$$.dirty[1]&&n(15,A={"highlight-color":Boolean(Mt),multiline:C,"alignment-horizontal":Tt,"alignment-vertical":zt}),4712448&t.$$.dirty[1]&&n(14,j={"--divkit-input-hint-color":Pt,"--divkit-input-highlight-color":Mt,"--divkit-input-line-height":Et,"font-weight":kt,"font-family":It,"letter-spacing":Nt,color:Ot,"max-height":Lt}),16781312&t.$$.dirty[1]&&n(13,V={"font-size":Rr(St),padding:Ht}),33558528&t.$$.dirty[1]&&n(12,D={"font-size":Rr(St),padding:Wt}),5&t.$$.dirty[0]|512&t.$$.dirty[1]&&xt&&yt.json&&(wt&&(bt.unregisterFocusable(wt),n(40,wt=void 0)),yt.json.id&&!yt.fakeElement&&(n(40,wt=yt.json.id),bt.registerFocusable(wt,{focus(){xt&&xt.focus()}})))},[yt,$t,xt,Vt,C,Dt,Ft,Bt,Ct,Jt,a,i,D,V,j,A,E,x,w,_,b,$,y,v,m,g,f,h,p,d,u,c,l,s,Y,_t,function(t){let e=(C?t.target.innerText:t.target.value)||"";"\n"===e&&(e=""),Vt!==e&&(n(3,Vt=n(5,Dt=e)),i.setValue(e),jt&&async function(){if(!xt||!jt)return;jt.applyChangeFrom(Vt,xt instanceof HTMLInputElement?null===xt.selectionEnd?void 0:xt.selectionEnd:function(t){try{let n=0;const r=window.getSelection();if(!r)return 0;const o=r.getRangeAt(0);let i;if(o){if(!o.collapsed)return 0;n+=o.endOffset,i=o.endContainer}if(i instanceof HTMLElement){let t=0;for(let e=0,r=Math.min(n,i.childNodes.length);e<r;++e)t+=Ul(i.childNodes[e]);n=t}for(;i&&i!==t;){var e;const t=i.parentNode;if(!t)return 0;const r=Array.from(t.childNodes).indexOf(i);for(let e=0;e<r;++e)n+=Ul(t.childNodes[e]);i instanceof HTMLElement&&("DIV"===i.tagName&&(null===(e=t.childNodes[r-1])||void 0===e?void 0:e.nodeType)===Ll||"BR"===i.tagName)&&++n,i=t}return n}catch(t){return 0}}(xt)),a.set(jt.rawValue),_e(i,F=n(3,Vt=n(5,Dt=jt.value)),F);const t=jt.cursorPosition;await Nn(),document.activeElement===xt&&qt(t)}())},function(){At=!1,setTimeout((()=>{At=!0}),250)},function(){if(!At)if(xt instanceof HTMLInputElement)xt.select();else{const t=window.getSelection(),e=document.createRange();e.selectNodeContents(xt),t&&(t.removeAllRanges(),t.addRange(e))}},vt,wt,jt,Pt,St,kt,It,Et,Nt,Ot,Mt,Tt,zt,Rt,Lt,Ut,Ht,Wt,r,o,F,P,S,I,N,O,M,T,z,R,B,L,U,H,W,J,q,G,K,function(t){Vn[t?"unshift":"push"]((()=>{xt=t,n(2,xt)}))},function(){Dt=this.innerText,n(5,Dt),n(41,jt),n(3,Vt),n(59,F)},function(t){Vn[t?"unshift":"push"]((()=>{xt=t,n(2,xt)}))}]}const ec={select:"divkit-feef3","select__select-text":"divkit-cd862",select_hint:"divkit-a3cf6",select__select:"divkit-bdb72","select__select_has-custom-focused":"divkit-a46ad","has-custom-focused":"divkit-fc5dc",select__option:"divkit-e774b"};function nc(t,e,n){const r=t.slice();return r[53]=e[n],r}function rc(t){let e,n;return e=new Yo({props:{cls:to("select",ec,t[11]),style:t[10],customDescription:!0,customActions:"select",customPaddings:!0,hasInnerFocusable:!0,componentContext:t[0],layoutParams:t[1],$$slots:{default:[ic,t=>{let{hasCustomFocus:e,focusHandler:n,blurHandler:r}=t;return{50:e,51:n,52:r}},t=>{let{hasCustomFocus:e,focusHandler:n,blurHandler:r}=t;return[0,(e?524288:0)|(n?1048576:0)|(r?2097152:0)]}]},$$scope:{ctx:t}}}),{c(){ar(e.$$.fragment)},l(t){sr(e.$$.fragment,t)},m(t,r){lr(e,t,r),n=!0},p(t,n){const r={};2048&n[0]&&(r.cls=to("select",ec,t[11])),1024&n[0]&&(r.style=t[10]),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),8389564&n[0]|37224448&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Gn(e.$$.fragment,t),n=!0)},o(t){Kn(e.$$.fragment,t),n=!1},d(t){cr(e,t)}}}function oc(t){let e,n,r,o,i=(t[53].text||t[53].value)+"";return{c(){e=Le("option"),n=He(i),this.h()},l(t){e=rn(t,"OPTION",{class:!0});var r=Qe(e);n=an(r,i),r.forEach(Re),this.h()},h(){Ge(e,"class",r=ec.select__option),e.__value=o=t[53].value,un(e,e.__value)},m(t,r){ze(t,e,r),Me(e,n)},p(t,r){16&r[0]&&i!==(i=(t[53].text||t[53].value)+"")&&cn(n,i),16&r[0]&&o!==(o=t[53].value)&&(e.__value=o,un(e,e.__value))},d(t){t&&Re(e)}}}function ic(t){let e,n,r,o,i,a,s,l,c,u,d=(t[3]||t[23]||"")+"",p=Xn(t[4]),h=[];for(let e=0;e<p.length;e+=1)h[e]=oc(nc(t,p,e));return{c(){e=Le("span"),n=He(d),i=We(),a=Le("select");for(let t=0;t<h.length;t+=1)h[t].c();this.h()},l(t){e=rn(t,"SPAN",{class:!0,style:!0,"aria-hidden":!0});var r=Qe(e);n=an(r,d),r.forEach(Re),i=sn(t),a=rn(t,"SELECT",{class:!0,"aria-label":!0,style:!0});var o=Qe(a);for(let t=0;t<h.length;t+=1)h[t].l(o);o.forEach(Re),this.h()},h(){Ge(e,"class",r=ec["select__select-text"]),Ge(e,"style",o=zr(t[9])),Ge(e,"aria-hidden","true"),Ge(a,"class",s=to("select__select",ec,{"has-custom-focus":t[50]})),Ge(a,"aria-label",t[7]),Ge(a,"style",l=zr(t[8])),void 0===t[5]&&On((()=>t[48].call(a)))},m(r,o){ze(r,e,o),Me(e,n),ze(r,i,o),ze(r,a,o);for(let t=0;t<h.length;t+=1)h[t]&&h[t].m(a,null);t[47](a),pn(a,t[5],!0),c||(u=[qe(a,"change",t[48]),qe(a,"focus",(function(){ue(t[51])&&t[51].apply(this,arguments)})),qe(a,"blur",(function(){ue(t[52])&&t[52].apply(this,arguments)}))],c=!0)},p(r,i){if(t=r,8388616&i[0]&&d!==(d=(t[3]||t[23]||"")+"")&&cn(n,d),512&i[0]&&o!==(o=zr(t[9]))&&Ge(e,"style",o),16&i[0]){let e;for(p=Xn(t[4]),e=0;e<p.length;e+=1){const n=nc(t,p,e);h[e]?h[e].p(n,i):(h[e]=oc(n),h[e].c(),h[e].m(a,null))}for(;e<h.length;e+=1)h[e].d(1);h.length=p.length}524288&i[1]&&s!==(s=to("select__select",ec,{"has-custom-focus":t[50]}))&&Ge(a,"class",s),128&i[0]&&Ge(a,"aria-label",t[7]),256&i[0]&&l!==(l=zr(t[8]))&&Ge(a,"style",l),48&i[0]&&pn(a,t[5])},d(n){n&&(Re(e),Re(i),Re(a)),Be(h,n),t[47](null),c=!1,ce(u)}}}function ac(t){let e,n,r=!t[6]&&rc(t);return{c(){r&&r.c(),e=Je()},l(t){r&&r.l(t),e=Je()},m(t,o){r&&r.m(t,o),ze(t,e,o),n=!0},p(t,n){t[6]?r&&(Jn(),Kn(r,1,1,(()=>{r=null})),qn()):r?(r.p(t,n),64&n[0]&&Gn(r,1)):(r=rc(t),r.c(),Gn(r,1),r.m(e.parentNode,e))},i(t){n||(Gn(r),n=!0)},o(t){Kn(r),n=!1},d(t){t&&Re(e),r&&r.d(t)}}}function sc(t,e,n){let r,o,i,a,s,l,c,u,d,p,h,f,g,m,v,y,$,b,_,w,x,E,C,A,j,V,D,F,P,S,I=oe,N=oe,O=oe,M=oe,T=oe,z=oe,R=oe,B=oe,L=oe,U=oe,H=oe;t.$$.on_destroy.push((()=>I())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>H()));let{componentContext:W}=e,{layoutParams:J}=e;const q=Cn(Or),G=q.direction;let K,Y;ge(t,G,(t=>n(45,D=t)));let Z,X,Q=!1,tt="",et=null,nt="",rt="rgba(0,0,0,.45)",ot=12,it="",at="",st="#000",lt="";return kn((()=>{K&&(q.unregisterFocusable(K),n(25,K=void 0))})),t.$$set=t=>{"componentContext"in t&&n(0,W=t.componentContext),"layoutParams"in t&&n(1,J=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&W.json&&(n(26,et=null),n(28,rt="rgba(0,0,0,.45)"),n(29,ot=12),n(30,Z=void 0),n(31,it=""),n(32,X=void 0),n(33,at=""),n(34,st="#000"),n(7,lt="")),1&t.$$.dirty[0]&&n(35,r=W.json.value_variable),1&t.$$.dirty[0]&&n(36,o=W.json.options),32&t.$$.dirty[1]&&n(4,i=Array.isArray(o)&&o.filter((t=>"string"==typeof t.value))||[]),1&t.$$.dirty[0]|16&t.$$.dirty[1]&&(n(22,a=r&&W.getVariable(r,"string")||Cr("temp","string","")),U(),U=fe(a,(t=>n(5,P=t)))),1&t.$$.dirty[0]&&(n(21,s=W.getDerivedFromVars(W.json.paddings)),L(),L=fe(s,(t=>n(46,F=t)))),1&t.$$.dirty[0]&&(n(20,l=W.getDerivedFromVars(W.json.hint_text)),H(),H=fe(l,(t=>n(23,S=t)))),1&t.$$.dirty[0]&&(n(19,c=W.getDerivedFromVars(W.json.hint_color)),B(),B=fe(c,(t=>n(44,V=t)))),1&t.$$.dirty[0]&&(n(18,u=W.getDerivedFromVars(W.json.font_size)),R(),R=fe(u,(t=>n(43,j=t)))),1&t.$$.dirty[0]&&(n(17,d=W.getDerivedFromVars(W.json.font_weight)),z(),z=fe(d,(t=>n(42,A=t)))),1&t.$$.dirty[0]&&(n(16,p=W.getDerivedFromVars(W.json.font_family)),T(),T=fe(p,(t=>n(41,C=t)))),1&t.$$.dirty[0]&&(n(15,h=W.getDerivedFromVars(W.json.line_height)),M(),M=fe(h,(t=>n(40,E=t)))),1&t.$$.dirty[0]&&(n(14,f=W.getDerivedFromVars(W.json.letter_spacing)),O(),O=fe(f,(t=>n(39,x=t)))),1&t.$$.dirty[0]&&(n(13,g=W.getDerivedFromVars(W.json.text_color)),N(),N=fe(g,(t=>n(38,w=t)))),1&t.$$.dirty[0]&&(n(12,m=W.getDerivedFromVars(W.json.accessibility)),I(),I=fe(m,(t=>n(37,_=t)))),17&t.$$.dirty[0]&&(Array.isArray(i)&&i.length||W.logError(ut(new Error('Empty selection "items" in "select"')))),1&t.$$.dirty[0]|16&t.$$.dirty[1]&&(r?n(6,Q=!1):(n(6,Q=!0),W.logError(ut(new Error('Missing "value_variable" in "select"'))))),49&t.$$.dirty[0]){const t=i.find((t=>t.value===P));t?n(3,tt=("string"==typeof t.text?t.text:t.value)||""):(n(3,tt=""),P&&W.logError(ut(new Error('Value from the variable was not found in the selection items for "select"'))))}if(536870912&t.$$.dirty[0]|4096&t.$$.dirty[1]&&n(29,ot=Xo(j,ot)),603979776&t.$$.dirty[0]|49152&t.$$.dirty[1]&&(n(26,et=go(F||void 0,et)),n(27,nt=et?ro({top:(Number(et.top)||0)/ot*10,right:(Number("ltr"===D?et.end:et.start)||Number(et.right)||0)/ot*10,bottom:(Number(et.bottom)||0)/ot*10,left:(Number("ltr"===D?et.start:et.end)||Number(et.left)||0)/ot*10},D):"")),268435456&t.$$.dirty[0]|8192&t.$$.dirty[1]&&n(28,rt=k(V,1,rt)),1073741824&t.$$.dirty[0]|3072&t.$$.dirty[1]&&(n(30,Z=ti(A,Z)),n(31,it=C&&"string"==typeof C?q.typefaceProvider(C,{fontWeight:Z||400}):"")),536870912&t.$$.dirty[0]|512&t.$$.dirty[1]){const t=E;Vo(t)&&n(32,X=t/ot)}536870912&t.$$.dirty[0]|256&t.$$.dirty[1]&&oo(x)&&n(33,at=Rr(x/ot*10)),136&t.$$.dirty[1]&&n(34,st=k(w,1,st)),1&t.$$.dirty[0]|64&t.$$.dirty[1]&&((null==_?void 0:_.description)?n(7,lt=_.description):W.logError(ut(new Error('Missing accessibility "description" for select'),{level:"warn"}))),8&t.$$.dirty[0]&&n(11,v={hint:!tt}),1342177280&t.$$.dirty[0]|9&t.$$.dirty[1]&&n(10,y={"--divkit-input-hint-color":rt,"font-weight":Z,"font-family":it,color:st}),671088640&t.$$.dirty[0]|6&t.$$.dirty[1]&&n(9,$={padding:nt,"font-size":Rr(ot),"line-height":X,"letter-spacing":at}),536870912&t.$$.dirty[0]|6&t.$$.dirty[1]&&n(8,b={"font-size":Rr(ot),"line-height":X,"letter-spacing":at}),33554437&t.$$.dirty[0]&&W.json&&Y&&(K&&(q.unregisterFocusable(K),n(25,K=void 0)),W.json.id&&!W.fakeElement&&(n(25,K=W.json.id),q.registerFocusable(K,{focus(){Y&&Y.focus()}})))},[W,J,Y,tt,i,P,Q,lt,b,$,y,v,m,g,f,h,p,d,u,c,l,s,a,S,G,K,et,nt,rt,ot,Z,it,X,at,st,r,o,_,w,x,E,C,A,j,V,D,F,function(t){Vn[t?"unshift":"push"]((()=>{Y=t,n(2,Y)}))},function(){P=function(t){const e=t.querySelector(":checked");return e&&e.__value}(this),a.set(P),n(4,i),n(36,o),n(0,W)}]}const lc={video__video:"divkit-c11f9","video__aspect-wrapper":"divkit-cfe32",video_aspect:"divkit-a4f5c"};function cc(t,e,n){const r=t.slice();return r[44]=e[n],r}function uc(t,e,n){const r=t.slice();return r[44]=e[n],r}function dc(t){let e,n;return e=new Yo({props:{cls:to("video",lc,t[11]),customActions:"video",componentContext:t[0],layoutParams:t[1],$$slots:{default:[yc]},$$scope:{ctx:t}}}),{c(){ar(e.$$.fragment)},l(t){sr(e.$$.fragment,t)},m(t,r){lr(e,t,r),n=!0},p(t,n){const r={};2048&n[0]&&(r.cls=to("video",lc,t[11])),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),4088&n[0]|262144&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Gn(e.$$.fragment,t),n=!0)},o(t){Kn(e.$$.fragment,t),n=!1},d(t){cr(e,t)}}}function pc(t){let e,n,r,o,i,a=Xn(t[4]),s=[];for(let e=0;e<a.length;e+=1)s[e]=gc(cc(t,a,e));return{c(){e=Le("video");for(let t=0;t<s.length;t+=1)s[t].c();this.h()},l(t){e=rn(t,"VIDEO",{class:!0,style:!0,poster:!0});var n=Qe(e);for(let t=0;t<s.length;t+=1)s[t].l(n);n.forEach(Re),this.h()},h(){Ge(e,"class",n=lc.video__video),Ge(e,"style",r=zr(t[10])),e.playsInline=!0,e.loop=t[5],e.autoplay=t[6],e.muted=t[7],Ge(e,"poster",t[8])},m(n,r){ze(n,e,r);for(let t=0;t<s.length;t+=1)s[t]&&s[t].m(e,null);t[38](e),o||(i=[qe(e,"timeupdate",t[19]),qe(e,"ended",t[20]),qe(e,"playing",t[21]),qe(e,"pause",t[22]),qe(e,"waiting",t[23]),qe(e,"error",t[24])],o=!0)},p(t,n){if(16777232&n[0]){let r;for(a=Xn(t[4]),r=0;r<a.length;r+=1){const o=cc(t,a,r);s[r]?s[r].p(o,n):(s[r]=gc(o),s[r].c(),s[r].m(e,null))}for(;r<s.length;r+=1)s[r].d(1);s.length=a.length}1024&n[0]&&r!==(r=zr(t[10]))&&Ge(e,"style",r),32&n[0]&&(e.loop=t[5]),64&n[0]&&(e.autoplay=t[6]),128&n[0]&&(e.muted=t[7]),256&n[0]&&Ge(e,"poster",t[8])},d(n){n&&Re(e),Be(s,n),t[38](null),o=!1,ce(i)}}}function hc(t){let e,n,r,o,i,a,s,l="".concat(t[9],"%"),c=Xn(t[4]),u=[];for(let e=0;e<c.length;e+=1)u[e]=vc(uc(t,c,e));return{c(){e=Le("div"),n=Le("video");for(let t=0;t<u.length;t+=1)u[t].c();this.h()},l(t){e=rn(t,"DIV",{class:!0});var r=Qe(e);n=rn(r,"VIDEO",{class:!0,style:!0,poster:!0});var o=Qe(n);for(let t=0;t<u.length;t+=1)u[t].l(o);o.forEach(Re),r.forEach(Re),this.h()},h(){Ge(n,"class",r=lc.video__video),Ge(n,"style",o=zr(t[10])),n.playsInline=!0,n.loop=t[5],n.autoplay=t[6],n.muted=t[7],Ge(n,"poster",t[8]),Ge(e,"class",i=lc["video__aspect-wrapper"]),dn(e,"padding-bottom",l)},m(r,o){ze(r,e,o),Me(e,n);for(let t=0;t<u.length;t+=1)u[t]&&u[t].m(n,null);t[37](n),a||(s=[qe(n,"timeupdate",t[19]),qe(n,"ended",t[20]),qe(n,"playing",t[21]),qe(n,"pause",t[22]),qe(n,"waiting",t[23]),qe(n,"error",t[24])],a=!0)},p(t,r){if(16777232&r[0]){let e;for(c=Xn(t[4]),e=0;e<c.length;e+=1){const o=uc(t,c,e);u[e]?u[e].p(o,r):(u[e]=vc(o),u[e].c(),u[e].m(n,null))}for(;e<u.length;e+=1)u[e].d(1);u.length=c.length}1024&r[0]&&o!==(o=zr(t[10]))&&Ge(n,"style",o),32&r[0]&&(n.loop=t[5]),64&r[0]&&(n.autoplay=t[6]),128&r[0]&&(n.muted=t[7]),256&r[0]&&Ge(n,"poster",t[8]),512&r[0]&&l!==(l="".concat(t[9],"%"))&&dn(e,"padding-bottom",l)},d(n){n&&Re(e),Be(u,n),t[37](null),a=!1,ce(s)}}}function fc(t){let e,n,r,o,i;return{c(){e=Le("source"),this.h()},l(t){e=rn(t,"SOURCE",{src:!0,type:!0}),this.h()},h(){pe(e.src,n=t[44].src)||Ge(e,"src",n),Ge(e,"type",r=t[44].type)},m(n,r){ze(n,e,r),o||(i=qe(e,"error",t[24]),o=!0)},p(t,o){16&o[0]&&!pe(e.src,n=t[44].src)&&Ge(e,"src",n),16&o[0]&&r!==(r=t[44].type)&&Ge(e,"type",r)},d(t){t&&Re(e),o=!1,i()}}}function gc(t){let e,n=t[44],r=fc(t);return{c(){r.c(),e=Je()},l(t){r.l(t),e=Je()},m(t,n){r.m(t,n),ze(t,e,n)},p(t,o){16&o[0]&&he(n,n=t[44])?(r.d(1),r=fc(t),r.c(),r.m(e.parentNode,e)):r.p(t,o)},d(t){t&&Re(e),r.d(t)}}}function mc(t){let e,n,r,o,i;return{c(){e=Le("source"),this.h()},l(t){e=rn(t,"SOURCE",{src:!0,type:!0}),this.h()},h(){pe(e.src,n=t[44].src)||Ge(e,"src",n),Ge(e,"type",r=t[44].type)},m(n,r){ze(n,e,r),o||(i=qe(e,"error",t[24]),o=!0)},p(t,o){16&o[0]&&!pe(e.src,n=t[44].src)&&Ge(e,"src",n),16&o[0]&&r!==(r=t[44].type)&&Ge(e,"type",r)},d(t){t&&Re(e),o=!1,i()}}}function vc(t){let e,n=t[44],r=mc(t);return{c(){r.c(),e=Je()},l(t){r.l(t),e=Je()},m(t,n){r.m(t,n),ze(t,e,n)},p(t,o){16&o[0]&&he(n,n=t[44])?(r.d(1),r=mc(t),r.c(),r.m(e.parentNode,e)):r.p(t,o)},d(t){t&&Re(e),r.d(t)}}}function yc(t){let e;function n(t,e){return t[11].aspect?hc:pc}let r=n(t),o=r(t);return{c(){o.c(),e=Je()},l(t){o.l(t),e=Je()},m(t,n){o.m(t,n),ze(t,e,n)},p(t,i){r===(r=n(t))&&o?o.p(t,i):(o.d(1),o=r(t),o&&(o.c(),o.m(e.parentNode,e)))},d(t){t&&Re(e),o.d(t)}}}function $c(t){let e,n,r=!t[2]&&dc(t);return{c(){r&&r.c(),e=Je()},l(t){r&&r.l(t),e=Je()},m(t,o){r&&r.m(t,o),ze(t,e,o),n=!0},p(t,n){t[2]?r&&(Jn(),Kn(r,1,1,(()=>{r=null})),qn()):r?(r.p(t,n),4&n[0]&&Gn(r,1)):(r=dc(t),r.c(),Gn(r,1),r.m(e.parentNode,e))},i(t){n||(Gn(r),n=!0)},o(t){Kn(r),n=!1},d(t){t&&Re(e),r&&r.d(t)}}}function bc(t,e,n){let r,o,i,a,s,l,c,u,d,p,h,f,g,m,v,y,$,b,_=oe,w=oe,x=oe,k=oe,E=oe,C=oe,A=oe;t.$$.on_destroy.push((()=>_())),t.$$.on_destroy.push((()=>w())),t.$$.on_destroy.push((()=>x())),t.$$.on_destroy.push((()=>k())),t.$$.on_destroy.push((()=>E())),t.$$.on_destroy.push((()=>C())),t.$$.on_destroy.push((()=>A()));let{componentContext:j}=e,{layoutParams:V}=e;const D=Cn(Or);let F,P,S,I,N=!1,O=!1,M=[],T=!1,z=!1,R=!1,B="fit",L="0";function U(t){O?O=!1:P&&n(3,P.currentTime=Number(t)/1e3,P)}function H(){null==P||P.pause()}function W(){const t=null==P?void 0:P.play();t&&t.catch((t=>{j.logError(ut(new Error("Video playing error"),{level:"error",additional:{originalText:String(t)}}))}))}return kn((()=>{F&&(D.unregisterInstance(F),n(25,F=void 0)),I&&(I(),n(27,I=void 0))})),t.$$set=t=>{"componentContext"in t&&n(0,j=t.componentContext),"layoutParams"in t&&n(1,V=t.layoutParams)},t.$$.update=()=>{var e,V;if(1&t.$$.dirty[0]&&j.json&&(n(5,T=!1),n(6,z=!1),n(7,R=!1),n(8,S=void 0),n(26,B="fit")),1&t.$$.dirty[0]&&n(29,r=j.json.elapsed_time_variable),536870913&t.$$.dirty[0]&&n(28,o=r&&j.getVariable(r,"integer")||Cr("temp","integer",0)),402653184&t.$$.dirty[0]&&o&&(I&&I(),n(27,I=o.subscribe(U))),1&t.$$.dirty[0]&&(n(18,i=j.getDerivedFromVars(j.json.video_sources)),A(),A=fe(i,(t=>n(36,b=t)))),1&t.$$.dirty[0]&&(n(17,a=j.getDerivedFromVars(j.json.repeatable)),C(),C=fe(a,(t=>n(35,$=t)))),1&t.$$.dirty[0]&&(n(16,s=j.getDerivedFromVars(j.json.autostart)),_(),_=fe(s,(t=>n(30,f=t)))),1&t.$$.dirty[0]&&(n(15,l=j.getDerivedFromVars(j.json.muted)),E(),E=fe(l,(t=>n(34,y=t)))),1&t.$$.dirty[0]&&(n(14,c=j.getDerivedFromVars(j.json.preview)),k(),k=fe(c,(t=>n(33,v=t)))),1&t.$$.dirty[0]&&(n(13,u=j.getDerivedFromVars(j.json.scale)),x(),x=fe(u,(t=>n(32,m=t)))),1&t.$$.dirty[0]&&(n(12,d=j.getDerivedFromVars(j.json.aspect)),w(),w=fe(d,(t=>n(31,g=t)))),17&t.$$.dirty[0]|32&t.$$.dirty[1]&&(n(4,(e=b,V=M,M=Array.isArray(e)&&e.length?e.filter((t=>"video_source"===(null==t?void 0:t.type)&&"string"==typeof t.url&&"string"==typeof t.mime_type)).map((t=>{const e={src:t.url};return t.mime_type&&(e.type=t.mime_type),e})):V)),M.length?n(2,N=!1):(n(2,N=!0),j.logError(ut(new Error('Missing "video_sources" in "video"'))))),32&t.$$.dirty[0]|16&t.$$.dirty[1]&&n(5,T=li($,T)),1073741888&t.$$.dirty[0]&&n(6,z=li(f,z)),128&t.$$.dirty[0]|8&t.$$.dirty[1]&&n(7,R=li(y,R)),256&t.$$.dirty[0]|4&t.$$.dirty[1]&&n(8,S="string"==typeof v?ia(v):S),67108864&t.$$.dirty[0]|2&t.$$.dirty[1]&&n(26,B=function(t){return"fill"===t?"cover":"no_scale"===t?"none":"contain"}(m)||B),1&t.$$.dirty[1]){const t=null==g?void 0:g.ratio;t&&Vo(t)?n(9,L=(100/Number(t)).toFixed(2)):n(9,L="0")}33554437&t.$$.dirty[0]&&j.json&&(F&&(D.unregisterInstance(F),n(25,F=void 0)),!j.json.id||N||j.fakeElement||(n(25,F=j.json.id),D.registerInstance(F,{pause:H,start:W}))),1073741833&t.$$.dirty[0]&&j.json&&f&&P&&W(),512&t.$$.dirty[0]&&n(11,p={aspect:"0"!==L}),67108864&t.$$.dirty[0]&&n(10,h={"object-fit":B})},[j,V,N,P,M,T,z,R,S,L,h,p,d,u,c,l,s,a,i,function(){P&&(O=!0,o.setValue(Math.floor(1e3*P.currentTime)))},function(){const t=j.getJsonWithVars(j.json.end_actions);j.execAnyActions(t)},function(){const t=j.getJsonWithVars(j.json.resume_actions);j.execAnyActions(t)},function(){const t=j.getJsonWithVars(j.json.pause_actions);j.execAnyActions(t)},function(){const t=j.getJsonWithVars(j.json.buffering_actions);j.execAnyActions(t)},function(){const t=j.getJsonWithVars(j.json.fatal_actions);j.execAnyActions(t)},F,B,I,o,r,f,g,m,v,y,$,b,function(t){Vn[t?"unshift":"push"]((()=>{P=t,n(3,P)}))},function(t){Vn[t?"unshift":"push"]((()=>{P=t,n(3,P)}))}]}function _c(t,e,n){const r=t.slice();return r[12]=e[n],r}function wc(t){let e,n;return e=new Yo({props:{componentContext:t[0],layoutParams:t[1],$$slots:{default:[jc]},$$scope:{ctx:t}}}),{c(){ar(e.$$.fragment)},l(t){sr(e.$$.fragment,t)},m(t,r){lr(e,t,r),n=!0},p(t,n){const r={};1&n&&(r.componentContext=t[0]),2&n&&(r.layoutParams=t[1]),33277&n&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Gn(e.$$.fragment,t),n=!0)},o(t){Kn(e.$$.fragment,t),n=!1},d(t){cr(e,t)}}}function xc(t){let e,n,r=[t[7]],o={};for(let t=0;t<r.length;t+=1)o=ae(o,r[t]);return{c(){e=Le("template"),n=new fn(!1),this.h()},l(t){e=rn(t,"TEMPLATE",{});var r=Qe(e.content);n=function(t,e){const n=ln(t,"HTML_TAG_START",0),r=ln(t,"HTML_TAG_END",n+1);if(-1===n||-1===r)return new fn(false);tn(t);const o=t.splice(n,r-n+1);Re(o[0]),Re(o[o.length-1]);const i=o.slice(1,o.length-1);for(const e of i)e.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1;return new fn(false,i)}(r),r.forEach(Re),this.h()},h(){n.a=null,Ye(e,o)},m(r,o){ze(r,e,o),n.m(t[6],e.content)},p(t,i){64&i&&n.p(t[6]),Ye(e,o=er(r,[128&i&&t[7]]))},d(t){t&&Re(e)}}}function kc(t){let e,n,r=t[4],o=Cc(t);return{c(){o.c(),e=Je()},l(t){o.l(t),e=Je()},m(t,r){o.m(t,r),ze(t,e,r),n=!0},p(t,n){16&n&&he(r,r=t[4])?(Jn(),Kn(o,1,1,oe),qn(),o=Cc(t),o.c(),Gn(o,1),o.m(e.parentNode,e)):o.p(t,n)},i(t){n||(Gn(o),n=!0)},o(t){Kn(o),n=!1},d(t){t&&Re(e),o.d(t)}}}function Ec(t){let e,n;return e=new Nc({props:{componentContext:t[12]}}),{c(){ar(e.$$.fragment)},l(t){sr(e.$$.fragment,t)},m(t,r){lr(e,t,r),n=!0},p(t,n){const r={};256&n&&(r.componentContext=t[12]),e.$set(r)},i(t){n||(Gn(e.$$.fragment,t),n=!0)},o(t){Kn(e.$$.fragment,t),n=!1},d(t){cr(e,t)}}}function Cc(t){let e,n,r=Xn(t[8]),o=[];for(let e=0;e<r.length;e+=1)o[e]=Ec(_c(t,r,e));const i=t=>Kn(o[t],1,1,(()=>{o[t]=null}));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=Je()},l(t){for(let e=0;e<o.length;e+=1)o[e].l(t);e=Je()},m(t,r){for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,r);ze(t,e,r),n=!0},p(t,n){if(256&n){let a;for(r=Xn(t[8]),a=0;a<r.length;a+=1){const i=_c(t,r,a);o[a]?(o[a].p(i,n),Gn(o[a],1)):(o[a]=Ec(i),o[a].c(),Gn(o[a],1),o[a].m(e.parentNode,e))}for(Jn(),a=r.length;a<o.length;a+=1)i(a);qn()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Gn(o[t]);n=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)Kn(o[t]);n=!1},d(t){t&&Re(e),Be(o,t)}}}function Ac(t){let e,n,r,o=t[6]&&xc(t),i=!t[3]&&t[4]&&kc(t),a=[t[0].json.custom_props||{}],s={};for(let t=0;t<a.length;t+=1)s=ae(s,a[t]);return{c(){e=Le(t[2].element),o&&o.c(),n=We(),i&&i.c(),this.h()},l(r){e=rn(r,(t[2].element||"null").toUpperCase(),{});var a=Qe(e);o&&o.l(a),n=sn(a),i&&i.l(a),a.forEach(Re),this.h()},h(){Xe(t[2].element)(e,s)},m(a,s){ze(a,e,s),o&&o.m(e,null),Me(e,n),i&&i.m(e,null),t[10](e),r=!0},p(t,r){t[6]?o?o.p(t,r):(o=xc(t),o.c(),o.m(e,n)):o&&(o.d(1),o=null),!t[3]&&t[4]?i?(i.p(t,r),24&r&&Gn(i,1)):(i=kc(t),i.c(),Gn(i,1),i.m(e,null)):i&&(Jn(),Kn(i,1,1,(()=>{i=null})),qn()),Xe(t[2].element)(e,s=er(a,[1&r&&(t[0].json.custom_props||{})]))},i(t){r||(Gn(i),r=!0)},o(t){Kn(i),r=!1},d(n){n&&Re(e),o&&o.d(),i&&i.d(),t[10](null)}}}function jc(t){let e,n,r=t[2].element,o=t[2].element&&Ac(t);return{c(){o&&o.c(),e=Je()},l(t){o&&o.l(t),e=Je()},m(t,n){o&&o.m(t,n),ze(t,e,n)},p(t,n){t[2].element?r?he(r,t[2].element)?(o.d(1),o=Ac(t),r=t[2].element,o.c(),o.m(e.parentNode,e)):o.p(t,n):(o=Ac(t),r=t[2].element,o.c(),o.m(e.parentNode,e)):r&&(o.d(1),o=null,r=t[2].element)},i:oe,o(t){Kn(o,t),n=!1},d(t){t&&Re(e),o&&o.d(t)}}}function Vc(t){let e,n,r=t[2]&&wc(t);return{c(){r&&r.c(),e=Je()},l(t){r&&r.l(t),e=Je()},m(t,o){r&&r.m(t,o),ze(t,e,o),n=!0},p(t,n){let[o]=n;t[2]?r?(r.p(t,o),4&o&&Gn(r,1)):(r=wc(t),r.c(),Gn(r,1),r.m(e.parentNode,e)):r&&(Jn(),Kn(r,1,1,(()=>{r=null})),qn())},i(t){n||(Gn(r),n=!0)},o(t){Kn(r),n=!1},d(t){t&&Re(e),r&&r.d(t)}}}function Dc(t,e,n){let r,o;var i;let{componentContext:a}=e,{layoutParams:s}=e;const l=Cn(Or);let c,u=null,d="",p={},h=!1;return xn((()=>{if(c&&"divKitApiCallback"in c&&"function"==typeof c.divKitApiCallback){const t=l.getExtensionContext();c.divKitApiCallback(t)}})),t.$$set=t=>{"componentContext"in t&&n(0,a=t.componentContext),"layoutParams"in t&&n(1,s=t.layoutParams)},t.$$.update=()=>{if(517&t.$$.dirty)if("string"==typeof a.json.custom_type&&a.json.custom_type&&(null===n(9,i=l.customComponents)||void 0===i?void 0:i.has(a.json.custom_type))){if(n(2,u=l.customComponents.get(a.json.custom_type)),"function"==typeof u.template){const t=l.getExtensionContext(),e=new Map;for(const[n,r]of t.variables)e.set(n,r.getValue());n(6,d=u.template({props:a.json.custom_props,variables:e}))}else u.template&&"string"==typeof u.template?n(6,d=u.template):n(6,d="");n(7,p={shadowrootmode:u.shadowRootMode||"open"})}else n(2,u=null),n(6,d=";"),a.logError(ut(new Error('Unknown or incorrect "custom_type" prop for div "custom"')));1&t.$$.dirty&&n(4,r=a.json.items),17&t.$$.dirty&&(void 0===r||Array.isArray(r)?n(3,h=!1):(n(3,h=!0),a.logError(ut(new Error('Incorrect "items" prop for div "custom"'))))),25&t.$$.dirty&&n(8,o=(!h&&r||[]).map(((t,e)=>a.produceChildContext(t,{path:e}))))},[a,s,u,h,r,c,d,p,o,i,function(t){Vn[t?"unshift":"push"]((()=>{c=t,n(5,c)}))}]}const Fc={};function Pc(t){let e,n,r;var o=t[2];function i(t,e){return{props:{componentContext:t[0],layoutParams:t[1]}}}return o&&(e=gn(o,i(t))),{c(){e&&ar(e.$$.fragment),n=Je()},l(t){e&&sr(e.$$.fragment,t),n=Je()},m(t,o){e&&lr(e,t,o),ze(t,n,o),r=!0},p(t,r){if(4&r&&o!==(o=t[2])){if(e){Jn();const t=e;Kn(t.$$.fragment,1,0,(()=>{cr(t,1)})),qn()}o?(e=gn(o,i(t)),ar(e.$$.fragment),Gn(e.$$.fragment,1),lr(e,n.parentNode,n)):e=null}else if(o){const n={};1&r&&(n.componentContext=t[0]),2&r&&(n.layoutParams=t[1]),e.$set(n)}},i(t){r||(e&&Gn(e.$$.fragment,t),r=!0)},o(t){e&&Kn(e.$$.fragment,t),r=!1},d(t){t&&Re(n),e&&cr(e,t)}}}function Sc(t){let e,n,r=t[2]&&Pc(t);return{c(){r&&r.c(),e=Je()},l(t){r&&r.l(t),e=Je()},m(t,o){r&&r.m(t,o),ze(t,e,o),n=!0},p(t,n){let[o]=n;t[2]?r?(r.p(t,o),4&o&&Gn(r,1)):(r=Pc(t),r.c(),Gn(r,1),r.m(e.parentNode,e)):r&&(Jn(),Kn(r,1,1,(()=>{r=null})),qn())},i(t){n||(Gn(r),n=!0)},o(t){Kn(r),n=!1},d(t){t&&Re(e),r&&r.d(t)}}}function Ic(t,e,n){let{componentContext:r}=e,{layoutParams:o}=e;const i=Cn(Or);let a;return t.$$set=t=>{"componentContext"in t&&n(0,r=t.componentContext),"layoutParams"in t&&n(1,o=t.layoutParams)},t.$$.update=()=>{if(5&t.$$.dirty){const t=r.json;if(n(2,a=(null==t?void 0:t.type)&&Fc[t.type]||void 0),!a){let e;e=(null==t?void 0:t.type)&&i.hasTemplate(t.type)?"Recursive template":"Unknown component",r.logError(ut(new Error(e),{additional:{component:(null==t?void 0:t.type)||"<missing>"}}))}}},[r,o,a]}Fc.text=class extends pr{constructor(t){super(),ur(this,t,wi,_i,he,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}},Fc.container=class extends pr{constructor(t){super(),ur(this,t,Zi,Ji,he,{componentContext:0,layoutParams:1},null,[-1,-1])}},Fc.separator=class extends pr{constructor(t){super(),ur(this,t,ra,na,he,{componentContext:0,layoutParams:1})}},Fc.image=ga,Fc.gif=ga,Fc.grid=class extends pr{constructor(t){super(),ur(this,t,Ca,ka,he,{componentContext:0,layoutParams:1},null,[-1,-1])}},Fc.gallery=class extends pr{constructor(t){super(),ur(this,t,Ra,za,he,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}},Fc.tabs=class extends pr{constructor(t){super(),ur(this,t,rs,ns,he,{componentContext:0,layoutParams:1},null,[-1,-1,-1,-1])}},Fc.state=class extends pr{constructor(t){super(),ur(this,t,Gs,Js,he,{componentContext:0,layoutParams:1},null,[-1,-1])}},Fc.pager=class extends pr{constructor(t){super(),ur(this,t,il,rl,he,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}},Fc.indicator=class extends pr{constructor(t){super(),ur(this,t,hl,dl,he,{componentContext:0,layoutParams:1},null,[-1,-1])}},Fc.slider=class extends pr{constructor(t){super(),ur(this,t,Pl,Al,he,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}},Fc.input=class extends pr{constructor(t){super(),ur(this,t,tc,Yl,he,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}},Fc.select=class extends pr{constructor(t){super(),ur(this,t,sc,ac,he,{componentContext:0,layoutParams:1},null,[-1,-1])}},Fc.video=class extends pr{constructor(t){super(),ur(this,t,bc,$c,he,{componentContext:0,layoutParams:1},null,[-1,-1])}},Fc.custom=class extends pr{constructor(t){super(),ur(this,t,Dc,Vc,he,{componentContext:0,layoutParams:1})}};const Nc=class extends pr{constructor(t){super(),ur(this,t,Ic,Sc,he,{componentContext:0,layoutParams:1})}},Oc={"root-svg-filters":"divkit-dc22b"};function Mc(t,e,n){const r=t.slice();r[1]=e[n];const o=r[1].split(":");return r[2]=o[0],r[3]=o[1],r}function Tc(t){let e,n,r,o=Xn([...Object.keys(t[0])]),i=[];for(let e=0;e<o.length;e+=1)i[e]=Lc(Mc(t,o,e));return{c(){e=Ue("svg"),n=Ue("defs");for(let t=0;t<i.length;t+=1)i[t].c();this.h()},l(t){e=on(t,"svg",{class:!0,"aria-hidden":!0});var r=Qe(e);n=on(r,"defs",{});var o=Qe(n);for(let t=0;t<i.length;t+=1)i[t].l(o);o.forEach(Re),r.forEach(Re),this.h()},h(){Ge(e,"class",r=Oc["root-svg-filters"]),Ge(e,"aria-hidden","true")},m(t,r){ze(t,e,r),Me(e,n);for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(n,null)},p(t,e){if(1&e){let r;for(o=Xn([...Object.keys(t[0])]),r=0;r<o.length;r+=1){const a=Mc(t,o,r);i[r]?i[r].p(a,e):(i[r]=Lc(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&&Re(e),Be(i,t)}}}function zc(t){let e,n;return{c(){e=Ue("feBlend"),this.h()},l(t){e=on(t,"feBlend",{in2:!0,mode:!0}),Qe(e).forEach(Re),this.h()},h(){Ge(e,"in2","SourceGraphic"),Ge(e,"mode",n=t[3])},m(t,n){ze(t,e,n)},p(t,r){1&r&&n!==(n=t[3])&&Ge(e,"mode",n)},d(t){t&&Re(e)}}}function Rc(t){let e;return{c(){e=Ue("feComposite"),this.h()},l(t){e=on(t,"feComposite",{in2:!0,operator:!0,k1:!0,k2:!0,k3:!0,k4:!0}),Qe(e).forEach(Re),this.h()},h(){Ge(e,"in2","SourceGraphic"),Ge(e,"operator","arithmetic"),Ge(e,"k1","1"),Ge(e,"k2","0"),Ge(e,"k3","0"),Ge(e,"k4","0")},m(t,n){ze(t,e,n)},p:oe,d(t){t&&Re(e)}}}function Bc(t){let e,n;return{c(){e=Ue("feComposite"),this.h()},l(t){e=on(t,"feComposite",{in2:!0,operator:!0}),Qe(e).forEach(Re),this.h()},h(){Ge(e,"in2","SourceGraphic"),Ge(e,"operator",n=t[3].split("_")[1])},m(t,n){ze(t,e,n)},p(t,r){1&r&&n!==(n=t[3].split("_")[1])&&Ge(e,"operator",n)},d(t){t&&Re(e)}}}function Lc(t){let e,n,r,o;function i(t,e){return"source_in"===t[3]||"source_atop"===t[3]?Bc:"multiply"===t[3]?Rc:zc}let a=i(t),s=a(t);return{c(){e=Ue("filter"),n=Ue("feFlood"),s.c(),this.h()},l(t){e=on(t,"filter",{id:!0});var r=Qe(e);n=on(r,"feFlood",{"flood-color":!0}),Qe(n).forEach(Re),s.l(r),r.forEach(Re),this.h()},h(){Ge(n,"flood-color",r=t[2]),Ge(e,"id",o=t[0][t[1]])},m(t,r){ze(t,e,r),Me(e,n),s.m(e,null)},p(t,l){1&l&&r!==(r=t[2])&&Ge(n,"flood-color",r),a===(a=i(t))&&s?s.p(t,l):(s.d(1),s=a(t),s&&(s.c(),s.m(e,null))),1&l&&o!==(o=t[0][t[1]])&&Ge(e,"id",o)},d(t){t&&Re(e),s.d()}}}function Uc(t){let e,n=Object.keys(t[0]).length,r=n&&Tc(t);return{c(){r&&r.c(),e=Je()},l(t){r&&r.l(t),e=Je()},m(t,n){r&&r.m(t,n),ze(t,e,n)},p(t,o){let[i]=o;1&i&&(n=Object.keys(t[0]).length),n?r?r.p(t,i):(r=Tc(t),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null)},i:oe,o:oe,d(t){t&&Re(e),r&&r.d(t)}}}function Hc(t,e,n){let{svgFiltersMap:r}=e;return t.$$set=t=>{"svgFiltersMap"in t&&n(0,r=t.svgFiltersMap)},[r]}const Wc=class extends pr{constructor(t){super(),ur(this,t,Hc,Uc,he,{svgFiltersMap:0})}};function Jc(t,e,n,r){const o=n[t.type];if(!o)return r(ut(new Error("No such template"),{additional:{template:t.type}})),{json:t,templateContext:e};let i;const a={};for(i in e)e.hasOwnProperty(i)&&(a[i]=e[i]);for(i in t)"type"!==i&&"__proto__"!==i&&t.hasOwnProperty(i)&&(a[i]=t[i]);const s=function t(e,n){const r=Object.keys(n).filter((t=>"__proto__"!==t)),o=r.filter((t=>"$"!==t.charAt(0))),i=r.filter((t=>"$"===t.charAt(0)));return o.forEach((r=>{const o=n[r];"object"==typeof o&&null!==o?(e[r]=Array.isArray(o)?[]:{},t(e[r],o)):e[r]=o})),i.forEach((t=>{const r=n[t],o=a[r];if(void 0!==o){const n=t.substring(1);e[n]=o}})),e}({},o);for(i in t)"type"!==i&&"__proto__"!==i&&t.hasOwnProperty(i)&&(s[i]=t[i]);return{json:s,templateContext:a}}function qc(){}function Gc(t){return{subscribe:e=>(e(t),qc)}}Gc(void 0);class Kc{constructor(t){this.ast=t}apply(t,e){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];try{const r=Ir(t,this.ast);r.warnings.forEach(e);const o=r.result;if("error"===o.type)return void e(ut(new Error("Expression execution error"),{additional:{message:o.value}}));const i=o.value;if(i instanceof Date)return A(i);if("boolean"===o.type)return Boolean(i);if("color"===o.type){const t=E(String(i));if(t)return O(t);e(ut(new Error("Expression execution error")))}if("integer"===o.type)return i>2147483647||i<-2147483648?void e(ut(new Error("Expression result is out of 32-bit int range"))):Number(i);if(!n&&("array"===o.type||"dict"===o.type))try{return JSON.stringify(i)}catch(t){return e(ut(new Error("Failed to stringify ".concat(o.type)))),"<".concat(o.type,">")}return i}catch(t){return void e(ut(new Error("Expression execution error")))}}}function Yc(t,e,n){if(t)if("string"==typeof t){if((r=t).indexOf("@{")>-1||r.indexOf("\\")>-1){e.hasExpression=!0;try{const n=v(t,{startRule:"JsonStringContents"}),r=S(n);return e.vars.push(...r),new Kc(n)}catch(e){return void n(ut(new Error("Unable to parse expression"),{additional:{expression:t}}))}}}else{if(Array.isArray(t))return t.map((t=>Yc(t,e,n)));if("object"==typeof t){const r={};for(const o in t)r[o]=Yc(t[o],e,n);return r}}var r;return t}function Zc(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(t){if(t instanceof Kc)return t.apply(e,n,r);if(Array.isArray(t))return t.map((t=>Zc(t,e,n)));if("object"==typeof t){const r={};for(const o in t)r[o]=Zc(t[o],e,n);return r}}return t}function Xc(t,e){const n={vars:[],hasExpression:!1},r=Yc(t,n,e);return{vars:[...new Set(n.vars)],hasExpression:n.hasExpression,applyVars:(t,n)=>Zc(r,t,e,n)}}const Qc={pagers:function(){return fr(new Map)}},tu=new Map,eu=new Map;function nu(t){const e=tu.get(t)||fr("");return tu.has(t)||tu.set(t,e),e}function ru(t){const e=eu.get(t)||new Map;return eu.has(t)||eu.set(t,e),e}class ou{setVariable(t){const e=t.getName(),n=ru(this);if(n.has(e))throw new Error("Variable with the same name already exist");n.set(e,t),nu(this).set(e)}getVariable(t){return ru(this).get(t)}list(){return ru(this).values()}}function iu(){return new ou}function au(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const su=new Set(["start","stop","pause","resume","cancel","reset"]);class lu{constructor(t){au(this,"timers",new Map),au(this,"awaitActions",[]),this.logError=t.logError,this.applyVars=t.applyVars,this.hasVariableWithType=t.hasVariableWithType,this.setVariableValue=t.setVariableValue,this.execAnyActions=t.execAnyActions,this.visibilityHandler=()=>{"visible"===document.visibilityState?(this.awaitActions.forEach((t=>{let{id:e,action:n}=t;this.execTimerAction(e,n)})),this.awaitActions=[],this.unholdAll()):this.holdAll()},document.addEventListener("visibilitychange",this.visibilityHandler)}destroy(){document.removeEventListener("visibilitychange",this.visibilityHandler);for(const[t,e]of this.timers)this.stopTimerTimeouts(e)}createTimer(t){null!=t&&t.id?t.duration||t.tick_interval&&(t.value_variable||t.tick_actions)?this.timers.set(t.id,{state:"stopped",definition:t}):this.logError(ut(new Error("Misconfigured timer"),{additional:{id:t.id}})):this.logError(ut(new Error("Missing timer id")))}execTimerAction(t,e){if(!(t&&e&&this.timers.has(t)&&su.has(e)))return void this.logError(ut(new Error("Incorrect timer action"),{additional:{id:t,action:e}}));const n=e;if("visible"!==document.visibilityState)return void this.awaitActions.push({id:t,action:n});const r=this.timers.get(t);this[n](r)}stopTimerTimeouts(t){t.durationTimeout&&(clearTimeout(t.durationTimeout),t.durationTimeout=void 0),t.tickTimeout&&(clearTimeout(t.tickTimeout),t.tickTimeout=void 0)}tickOrUnholdAction(t){const e=performance.now(),n=(t.durationPassed||0)+e-(t.durationStarted||0);t.duration&&n>t.duration||(this.updateVariable(t,n),this.callActions(t,"tick"),void 0!==t.tickCount&&++t.tickCount)}startOrResume(t){t.state="running",t.hold=!1,t.durationStarted=performance.now();const e=t.duration;e&&(t.durationTimeout=window.setTimeout((()=>{this.updateVariable(t,e),t.tickCountPredict&&void 0!==t.tickCount&&t.tickCount<t.tickCountPredict&&this.callActions(t,"tick"),this.stop(t)}),Math.max(0,e-(t.durationPassed||0))));const n=t.tick;if(n){const e=()=>{const r=t.tickStarted=performance.now(),o=Math.max(0,n-(t.tickPassed||0));t.tickTimeout=window.setTimeout((()=>{this.tickOrUnholdAction(t),t.tickPassed=(performance.now()-r-o)%n,e()}),o)};e()}}start(t){if("running"===t.state)return void this.logError(ut(new Error("The timer is already running")));if("paused"===t.state)return void this.logError(ut(new Error("The timer is paused")));const e=t.definition.value_variable;!e||this.hasVariableWithType(e,"integer")?(e&&this.setVariableValue(e,0),t.definition.duration&&(t.duration=this.applyVars(t.definition.duration)),t.definition.tick_interval&&(t.tick=this.applyVars(t.definition.tick_interval)),void 0!==t.duration&&t.duration<0||void 0!==t.tick&&t.tick<=0?this.logError(ut(new Error("Incorrect timer properties"),{additional:{id:t.definition.id}})):(void 0!==t.duration&&void 0!==t.tick&&(t.tickCount=0,t.tickCountPredict=Math.floor(t.duration/t.tick)),this.startOrResume(t))):this.logError(ut(new Error("Cannot find variable"),{additional:{name:e}}))}stop(t){"stopped"!==t.state?(t.state="stopped",t.durationPassed=0,t.tickPassed=0,this.stopTimerTimeouts(t),this.callActions(t,"end")):this.logError(ut(new Error("The timer has already been stopped")))}pause(t){if("stopped"===t.state)return void this.logError(ut(new Error("The timer has already been stopped")));if("paused"===t.state)return void this.logError(ut(new Error("The timer has already been paused")));t.state="paused",this.stopTimerTimeouts(t);const e=performance.now();t.durationStarted&&(t.durationPassed=(t.durationPassed||0)+e-t.durationStarted),t.tickStarted&&(t.tickPassed=(t.tickPassed||0)+e-t.tickStarted);const n=t.definition.value_variable;n&&t.durationPassed&&this.setVariableValue(n,Math.round(t.durationPassed))}resume(t){"stopped"!==t.state?"running"!==t.state?this.startOrResume(t):this.logError(ut(new Error("The timer is already running"))):this.logError(ut(new Error("The timer has already been stopped")))}cancel(t){"stopped"!==t.state&&(t.state="stopped",t.durationPassed=0,t.tickPassed=0,this.stopTimerTimeouts(t))}reset(t){this.cancel(t),this.start(t)}updateVariable(t,e){const n=t.definition.value_variable;n&&this.setVariableValue(n,Math.round(e))}callActions(t,e){const n=t.definition["end"===e?"end_actions":"tick_actions"];if(n){const t=this.applyVars(n);this.execAnyActions(t,{processUrls:!1})}}holdAll(){for(const[t,e]of this.timers)"running"===e.state&&(e.hold=!0,this.stopTimerTimeouts(e))}unholdAll(){for(const[t,e]of this.timers)if("running"===e.state&&e.hold){const t=performance.now();e.durationStarted&&(e.durationPassed=(e.durationPassed||0)+t-e.durationStarted),e.tickStarted&&(e.tickPassed=(e.tickPassed||0)+t-e.tickStarted),e.tick&&this.tickOrUnholdAction(e),this.startOrResume(e)}}}function cu(t,e,n,r){const{variable_name:o}=n;if(!o)return void e(ut(new Error("Incorrect ".concat(n.type," action")),{additional:{name:o}}));const i=t.get(o);if(!i)return void e(ut(new Error("Cannot find variable"),{additional:{name:o}}));const a=i.getType();"array"===a?r(i):e(ut(new Error("Trying to insert value into the non-array"),{additional:{name:o,type:a}}))}function uu(t){let e,n,r,o,i,a,s,l;return n=new Wc({props:{svgFiltersMap:t[3]}}),o=new Nc({props:{componentContext:t[4]}}),{c(){e=Le("div"),ar(n.$$.fragment),r=We(),ar(o.$$.fragment),this.h()},l(t){e=rn(t,"DIV",{class:!0,dir:!0});var i=Qe(e);sr(n.$$.fragment,i),r=sn(i),sr(o.$$.fragment,i),i.forEach(Re),this.h()},h(){Ge(e,"class",i=""+(Nr.root+(t[5]?" ".concat(Nr.root_platform_desktop):"")+(t[0]?" ".concat(t[0]):""))),Ge(e,"dir",t[6])},m(t,i){ze(t,e,i),lr(n,e,null),Me(e,r),lr(o,e,null),a=!0,s||(l=qe(e,"touchstart",vu,{passive:!0}),s=!0)},p(t,r){const s={};8&r[0]&&(s.svgFiltersMap=t[3]),n.$set(s);const l={};16&r[0]&&(l.componentContext=t[4]),o.$set(l),(!a||33&r[0]&&i!==(i=""+(Nr.root+(t[5]?" ".concat(Nr.root_platform_desktop):"")+(t[0]?" ".concat(t[0]):""))))&&Ge(e,"class",i),(!a||64&r[0])&&Ge(e,"dir",t[6])},i(t){a||(Gn(n.$$.fragment,t),Gn(o.$$.fragment,t),a=!0)},o(t){Kn(n.$$.fragment,t),Kn(o.$$.fragment,t),a=!1},d(t){t&&Re(e),cr(n),cr(o),s=!1,l()}}}function du(t){let e,n,r=!t[1]&&!t[2]&&t[4]&&uu(t);return{c(){r&&r.c(),e=Je()},l(t){r&&r.l(t),e=Je()},m(t,o){r&&r.m(t,o),ze(t,e,o),n=!0},p(t,n){t[1]||t[2]||!t[4]?r&&(Jn(),Kn(r,1,1,(()=>{r=null})),qn()):r?(r.p(t,n),22&n[0]&&Gn(r,1)):(r=uu(t),r.c(),Gn(r,1),r.m(e.parentNode,e))},i(t){n||(Gn(r),n=!0)},o(t){Kn(r),n=!1},d(t){t&&Re(e),r&&r.d(t)}}}let pu=fr(!0),hu=0;function fu(){pu.set(!1)}function gu(){pu.set(!0)}function mu(t,e){return t&&e?new Map([...t,...e]):t||e||void 0}function vu(){}function yu(t,e,n){let r,o,i,a;var s,l,c,u;let{id:d}=e,{json:p={}}=e,{platform:h="auto"}=e,{theme:f="system"}=e,{globalVariablesController:g=new ou}=e,{mix:m=""}=e,{customization:y={}}=e,{builtinProtocols:$=["http","https","tel","mailto","intent"]}=e,{extensions:b=new Map}=e,{onError:_}=e,{onStat:w}=e,{onCustomAction:x}=e,{onComponent:k}=e,{typefaceProvider:E=(t=>"")}=e,{fetchInit:C={}}=e,{tooltipRoot:A}=e,{customComponents:j}=e,{direction:V="ltr"}=e,D=fr("desktop"===h);if(ge(t,D,(t=>n(5,i=t))),"auto"===h&&"undefined"!=typeof matchMedia){const t=matchMedia("(any-pointer: coarse)");D.set(!t.matches),t.addListener((()=>{D.set(!t.matches)}))}let F="light",P=null;const I=fr("rtl"===V?"rtl":"ltr");function N(){"system"===f&&P&&n(33,F=P.matches?"dark":"light")}ge(t,I,(t=>n(6,a=t)));const O=new Set($);let M=!1,T=!1;d||(T=!0,K(ut(new Error('"id" prop is required'))));const z={stateChange:!1},R=nu(g),B=ru(g),L=new Map,U=new Map,H=new Map;let W=null,J=0,q=[];function G(t,e){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=Xc(t,K);if(!r.hasExpression)return t;const o=mu(U,e);return r.applyVars(o,n)}function K(t){_?_({error:t}):"warn"===(null==t?void 0:t.level)?console.warn(t):console.error(t)}function Y(t,e){w&&w({type:t,action:e})}function Z(t,e){if(!t)return{json:t,templateContext:e};const n=new Set([t.type]);for(;t.type&&t.type in r;){if(({json:t,templateContext:e}=Jc(t,e,r,K)),n.has(t.type))return{json:t,templateContext:e};n.add(t.type)}return{json:t,templateContext:e}}let X=0;function Q(t){return"".concat(d,"-").concat(X++)}let tt={},et={};function nt(t,e){const o=t.url?String(t.url):"",i=t.typed;if(!vo(t))return;const a=(null==e?void 0:e.logError)||K;if(o)try{const i=o.replace(/div-action:\/\//,""),s=/([^?]+)\?(.+)/.exec(i);if(!s)return;const l=new URLSearchParams(s[2]);switch(s[1]){case"set_state":!function(t){if(!t)throw new Error("Missing state id");let e=ht,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}}(l.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=ct(t);n&&n.setCurrentItem(Number(e))}(l.get("id"),l.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=ct(t);n&&n.setPreviousItem(e)}(l.get("id"),l.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=ct(t);n&&n.setNextItem(e)}(l.get("id"),l.get("overflow"));break;case"set_variable":const s=l.get("name"),c=l.get("value");if(s&&null!==c){const t=U.get(s);if(t){const e=t.getType();"dict"===e||"array"===e?a(ut(new Error("Setting ".concat(e," variables is not supported")),{additional:{name:s}})):t.set(c)}else a(ut(new Error("Cannot find variable"),{additional:{name:s}}))}else a(ut(new Error("Incorrect set_variable_action"),{additional:{url:i}}));break;case"timer":const u=l.get("action"),d=l.get("id");W?W.execTimerAction(d,u):a(ut(new Error("Incorrect timer action"),{additional:{id:d,action:u}}));break;case"video":!function(t,e,n){const r=(null==n?void 0:n.logError)||K;if(t){const n=ct(t);n?"start"===e?n.start():"pause"===e?n.pause():r(ut(new Error("Unknown video action"),{additional:{id:t,action:e}})):r(ut(new Error("Video component is not found"),{additional:{id:t,action:e}}))}else r(ut(new Error("Missing id in video action"),{additional:{action:e}}))}(l.get("id"),l.get("action"),e);break;case"download":!function(t,e,n){const o=(null==n?void 0:n.logError)||K;if(t){let n;n="function"==typeof C?C(t):C,fetch(t,n).then((t=>{if(!t.ok)throw new Error("Response is not ok");return t.json()})).then((n=>{var i,a,s;if(n){if(n.templates)for(const t in n.templates)r.hasOwnProperty(t)||(r[t]=n.templates[t]);if(Array.isArray(null===(i=n.patch)||void 0===i?void 0:i.changes)){if("transactional"===n.patch.mode){const r=n.patch.changes.find((t=>{const e=at.get(t.id);if(!e)return!0;const n=Array.isArray(t.items)?t.items.length:0;return!(!e.isSingleMode||1===n)}));if(r)return o(ut(new Error("Skipping transactional, child is not found or broken"),{additional:{url:t,id:r.id}})),void rt(null===(a=e.download_callbacks)||void 0===a?void 0:a.on_fail_actions)}n.patch.changes.forEach((t=>{const e=at.get(t.id);e&&e.replaceWith(t.id,t.items)})),rt(null===(s=e.download_callbacks)||void 0===s?void 0:s.on_success_actions)}}else o(ut(new Error("Incorrect patch"),{additional:{url:t}}))})).catch((n=>{var r;o(ut(new Error("Failed to download the patch"),{additional:{url:t,originalError:n}})),rt(null===(r=e.download_callbacks)||void 0===r?void 0:r.on_fail_actions)}))}else o(ut(new Error("Missing url in download action"),{additional:{url:t}}))}(l.get("url"),t,e);break;case"show_tooltip":!function(t,e,r){var o;const i=(null==r?void 0:r.logError)||K;if(!t)return void i(ut(new Error("Missing id in show_tooltip action")));const a=lt.get(t);if(!a)return void i(ut(new Error("Tooltip with the provided id is not found"),{additional:{id:t}}));if("true"!==e&&q.some((e=>e.desc.id===t)))return;const s={internalId:++J,ownerNode:a.onwerNode,desc:a.tooltip,timeoutId:0};n(35,q=[...q,s]);const l=null!==(o=a.tooltip.duration)&&void 0!==o?o:5e3;l&&(s.timeoutId=window.setTimeout((()=>{s.timeoutId=0,n(35,q=q.filter((t=>t.internalId!==s.internalId)))}),l))}(l.get("id"),l.get("multiple"),e);break;case"hide_tooltip":!function(t,e){const r=(null==e?void 0:e.logError)||K;t?n(35,q=q.filter((e=>{const n=e.desc.id!==t;return!n&&e.timeoutId&&(clearTimeout(e.timeoutId),e.timeoutId=null),n}))):r(ut(new Error("Missing id in hide_tooltip action")))}(l.get("id"),e);break;default:a(ut(new Error("Unknown type of action"),{additional:{url:o}}))}}catch(t){a(ut(t,{additional:{url:o}}))}else if(i)switch(i.type){case"set_variable":{const{variable_name:t,value:e}=i;if(t&&e){const n=U.get(t);n?n.getType()===e.type?n.setValue(e.value):a(ut(new Error("Trying to set value with invalid type"),{additional:{name:t,type:e.type}})):a(ut(new Error("Cannot find variable"),{additional:{name:t}}))}else a(ut(new Error("Incorrect set_variable action"),{additional:{name:t}}));break}case"array_insert_value":!function(t,e,n){const{variable_name:r,index:o,value:i}=n;!i||"number"!=typeof o&&void 0!==o?e(ut(new Error("Incorrect array_insert_value action"),{additional:{name:r}})):cu(t,e,n,(t=>{const a=t.getValue();if("number"==typeof o&&(o<0||o>a.length))e(ut(new Error("Index out of bound for mutation ".concat(n.type)),{additional:{name:r,index:o,length:a.length}}));else{const e=a.slice();"number"==typeof o?e.splice(o,0,i.value):e.push(i.value),t.setValue(e)}}))}(U,a,i);break;case"array_remove_value":!function(t,e,n){const{variable_name:r,index:o}=n;"number"==typeof o?cu(t,e,n,(t=>{const i=t.getValue();if("number"==typeof o&&(o<0||o>=i.length))e(ut(new Error("Index out of bound for mutation ".concat(n.type)),{additional:{name:r,index:o,length:i.length}}));else{const e=i.slice();e.splice(o,1),t.setValue(e)}})):e(ut(new Error("Incorrect array_remove_value action"),{additional:{name:r}}))}(U,a,i);break;case"copy_to_clipboard":!function(t,e){!e.content||"text"!==e.content.type&&"url"!==e.content.type||"string"!=typeof e.content.value?t(ut(new Error("Incorrect action"),{additional:{action:e}})):"undefined"!=typeof navigator&&"clipboard"in navigator&&navigator.clipboard&&"writeText"in navigator.clipboard&&"function"==typeof navigator.clipboard.writeText?navigator.clipboard.writeText(e.content.value).catch((e=>{t(ut(new Error("Failed to copy to the clipboard"),{additional:{originalError:String(e)}}))})):t(ut(new Error("Clipboard is unavailable"),{additional:{action:e}}))}(a,i);break;case"focus_element":{const t=i.element_id&&st.get(i.element_id);t?t.focus():a(ut(new Error("Incorrect focus_element action"),{additional:{elementId:i.element_id}}));break}default:a(ut(new Error("Unknown type of action"),{additional:{type:i.type}}))}}async function rt(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t||!Array.isArray(t))return;const n=t.filter(vo);for(let t=0;t<n.length;++t){let r=n[t];const o=r.url,i=r.typed;if(o){const t=Kr(o);if(t)if(Yr(t,O)){if(e.processUrls)if("_blank"===r.target){const t=window.open("","_blank");t&&(t.opener=null,t.location=o)}else location.href=o}else"div-action"===t?(nt(r,e.componentContext),await Nn()):r.log_id&&(ot(r),await Nn())}else i&&nt(r,e.componentContext)}n.forEach((t=>{t.log_id&&Y("click",t)}))}function ot(t){null==x||x(t)}const it=new Map,at=new Map,st=new Map,lt=new Map;function ct(t){if(it.has(t))return it.get(t);K(ut(new Error("Missing instance with id"),{additional:{id:t}}))}const dt=new Map;function pt(t){const e=H.get(t)||fr(void 0);return H.has(t)||H.set(t,e),e}En(Or,{logStat:Y,hasTemplate:function(t){return t in r},processTemplate:Z,genId:Q,genClass:function(t){return"divkit-".concat(Q())},execAction:nt,execCustomAction:ot,isRunning:function(t){return z[t]},setRunning:function(t,e){z[t]=e},registerInstance:function(t,e){it.has(t)?K(ut(new Error("Duplicate instance id"),{additional:{id:t}})):it.set(t,e)},unregisterInstance:function(t){it.delete(t)},registerParentOf:function(t,e){at.set(t,e)},unregisterParentOf:function(t){at.delete(t)},registerTooltip:function(t,e){const n=e.id;n&&(lt.has(n)&&K(ut(new Error("Duplicate tooltip id"),{additional:{id:n}})),lt.set(n,{onwerNode:t,tooltip:e}))},unregisterTooltip:function(t){const e=t.id;e&&(lt.delete(e),q.some((t=>t.desc.id===e))&&n(35,q=q.filter((t=>t.desc.id!==e))))},onTooltipClose:function(t){n(35,q=q.filter((e=>e.internalId!==t)))},tooltipRoot:A,registerFocusable:function(t,e){st.set(t,e)},unregisterFocusable:function(t){st.delete(t)},addSvgFilter:function(t,e){const r="".concat(t,":").concat(e);if(et[r]=et[r]||0,++et[r],tt[r])return tt[r];const o="".concat(Q(),"-svg-filter");return n(3,tt=Object.assign(Object.assign({},tt),{[r]:o})),o},removeSvgFilter:function(t,e){if(!t)return;const r="".concat(t,":").concat(e);et[r]&&0==--et[r]&&n(3,tt=Object.keys(tt).reduce(((t,e)=>(et[e]&&(t[e]=tt[e]),t)),{}))},preparePrototypeVariables:function(t,e){const n=new Map,r=function(t,e,n){if(!(e in Dr))throw new Error("Unsupported variable type");return new Dr[e](t,n)}(t,"dict",e);return n.set(t,r),n},getStore:function(t){return dt.has(t)||function(t){dt.has(t)||dt.set(t,Qc[t]())}(t),dt.get(t)},getCustomization:function(t){return null==y?void 0:y[t]},getBuiltinProtocols:function(){return O},getExtension:function(t,e){const n=b.get(t);if(n)return new n(e||{})},getExtensionContext:function(){return{variables:U,logError:K}},typefaceProvider:E,isDesktop:D,isPointerFocus:pu,customComponents:j,direction:I,componentDevtool:function(t){let{type:e,node:n,json:r,origJson:o,templateContext:i}=t;k&&k({type:e,node:n,json:r,origJson:o,templateContext:i})}}),En(_o,{hasAction:()=>!1});const ht={setState(t){throw new Error("Not implemented")},getChild(t){if(ft&&ft.has(t))return ft.get(t);K(ut(new Error("Missing state block with id"),{additional:{id:t}}))}};let ft=null;function gt(t){if(t.type in Er){"integer"===t.type&&"number"==typeof t.value&&(t.value>Number.MAX_SAFE_INTEGER||t.value<Number.MIN_SAFE_INTEGER)&&K(ut(new Error("The value of the integer variable could lose accuracy"),{level:"warn",additional:{name:t.name,value:t.value}}));try{const e=Cr(t.name,t.type,t.value);L.set(t.name,e),U.set(t.name,e)}catch(e){K(ut(e,{additional:{name:t.name}}))}}}En(no,{registerInstance(t,e){ft||(ft=new Map),ft.has(t)?K(ut(new Error("Duplicate state with id"),{additional:{id:t}})):ft.set(t,e)},unregisterInstance(t){null==ft||ft.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 mt=null===(s=null==p?void 0:p.card)||void 0===s?void 0:s.variables;Array.isArray(mt)&&mt.forEach((t=>{if(t&&t.name){if(L.has(t.name))return void K(ut(new Error("Duplicate variable"),{additional:{name:t.name}}));gt(t)}}));const vt=p.palette;vt&&vt[F].forEach((t=>{if(L.has(t.name))K(ut(new Error("Duplicate variable"),{additional:{name:t.name}}));else try{const e=Cr(t.name,"color",t.color);L.set(t.name,e),U.set(t.name,e)}catch(e){K(ut(e,{additional:{name:t.name}}))}}));for(const[t,e]of B)U.has(t)||U.set(t,e);R.subscribe((t=>{if(t&&!U.has(t)){const e=B.get(t);U.set(t,e);const n=H.get(t);if(n){let t=0;e.subscribe((()=>{n.set(++t)}))}}}));const yt=null===(c=null==p?void 0:p.card)||void 0===c?void 0:c.timers;if(yt&&"undefined"!=typeof document){const t=W=new lu({logError:K,applyVars:G,hasVariableWithType:function(t,e){const n=U.get(t);return(null==n?void 0:n.getType())===e},setVariableValue:function(t,e){const n=U.get(t);n?n.setValue(e):K(ut(new Error("Cannot find variable"),{additional:{name:t}}))},execAnyActions:rt});yt.forEach((e=>t.createTimer(e)))}const $t=function t(e){const n={json:{},path:[],templateContext:{},logError(t){t.additional=t.additional||{},t.additional.path=n.path.join("/"),t.additional.json=n.json,t.additional.origJson=n.origJson,K(t)},execAnyActions(t){return rt(t,{componentContext:n,processUrls:(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).processUrls})},getDerivedFromVars(t,e){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(t,e){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!t)return Gc(t);const r=mu(U,e),o=Xc(t,K);return o.vars.length?gr(o.vars.map((t=>r.get(t)||pt(t))).filter(Ur),(()=>o.applyVars(r,n))):o.hasExpression?Gc(o.applyVars(r)):Gc(t)}(t,mu(n.variables,e),r)},getJsonWithVars(t,e){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return G(t,mu(n.variables,e),r)},produceChildContext(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o=t(n);let i=e,a=n.templateContext;const{templateContext:s,json:l}=Z(i,a);return o.json=l,o.templateContext=s,o.origJson=e,void 0!==r.path&&o.path.push(String(r.path)),e.type&&!r.isRootState&&o.path.push(e.type),o.variables=mu(n.variables,r.variables),r.tooltips&&(o.tooltips=r.tooltips),r.fake&&(o.fakeElement=!0),r.isRootState&&(o.isRootState=!0),o},getVariable(t,e){const r=(n.variables||U).get(t);if(r){const o=r.getType();if(o!==e)return void n.logError(ut(new Error('Variable should have type "'.concat(e,'"')),{additional:{name:t,foundType:o}}))}return r}};return e?(n.path=e.path.slice(),e.fakeElement&&(n.fakeElement=!0)):(n.json={type:"root"},n.isRootState=!0),n}();let bt;return xn((()=>{hu++,1===hu&&(window.addEventListener("keydown",fu),window.addEventListener("pointerdown",gu)),(()=>{var t;const e=null===(t=null==p?void 0:p.card)||void 0===t?void 0:t.variable_triggers;Array.isArray(e)&&e.forEach((t=>{let e=!1;if("string"!=typeof t.condition)return void K(ut(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=v(t.condition,{startRule:"JsonStringContents"}),o=S(r);if(!o.length)return void K(ut(new Error("variable_trigger must have variables in the condition"),{additional:{condition:t.condition}}));gr(o.map((t=>U.get(t)||pt(t))),(()=>{const t=Ir(U,r);return t.warnings.forEach(K),t.result})).subscribe((r=>{"error"!==r.type?(r.value&&("on_variable"===n||"on_condition"===n&&!1===e)&&t.actions.forEach((t=>{const e=G(t);e.log_id&&nt(e)})),e=Boolean(r.value)):K(ut(new Error("variable_trigger condition execution error"),{additional:{message:r.value}}))}))}catch(e){K(ut(new Error("Unable to parse variable_trigger"),{additional:{condition:t.condition}}))}else K(ut(new Error("variable_trigger has an unsupported mode"),{additional:{mode:n}}))}))})()})),kn((()=>{hu--,hu||(window.removeEventListener("keydown",fu),window.removeEventListener("pointerdown",gu)),W&&W.destroy(),q.forEach((t=>{t.timeoutId&&(clearTimeout(t.timeoutId),t.timeoutId=null)}))})),t.$$set=t=>{"id"in t&&n(11,d=t.id),"json"in t&&n(9,p=t.json),"platform"in t&&n(12,h=t.platform),"theme"in t&&n(10,f=t.theme),"globalVariablesController"in t&&n(13,g=t.globalVariablesController),"mix"in t&&n(0,m=t.mix),"customization"in t&&n(14,y=t.customization),"builtinProtocols"in t&&n(15,$=t.builtinProtocols),"extensions"in t&&n(16,b=t.extensions),"onError"in t&&n(17,_=t.onError),"onStat"in t&&n(18,w=t.onStat),"onCustomAction"in t&&n(19,x=t.onCustomAction),"onComponent"in t&&n(20,k=t.onComponent),"typefaceProvider"in t&&n(21,E=t.typefaceProvider),"fetchInit"in t&&n(22,C=t.fetchInit),"tooltipRoot"in t&&n(23,A=t.tooltipRoot),"customComponents"in t&&n(24,j=t.customComponents),"direction"in t&&n(25,V=t.direction)},t.$$.update=()=>{if(1024&t.$$.dirty[0]|8&t.$$.dirty[1]&&("light"===f||"dark"===f?n(33,F=f):"system"===f?"undefined"!=typeof matchMedia?(P||(n(34,P=matchMedia("(prefers-color-scheme: dark)")),P.addListener(N)),n(33,F=P.matches?"dark":"light")):n(33,F="light"):K(ut(new Error("Unsupported theme")))),4&t.$$.dirty[1]&&F&&(vt&&vt[F].forEach((t=>{const e=U.get(t.name);e&&e.setValue(t.color)}))),512&t.$$.dirty[0]){n(1,M=!1);const t=function(t){if(!t)return ut(new Error("Missing object"));const e=t.card,n=t.templates||{};if(!e)return ut(new Error("Missing card"));if(!e.states||!e.states.length)return ut(new Error("Missing states"));for(const t in n)if(n.hasOwnProperty(t)&&t in Fc)return ut(new Error("Template name collision"),{additional:{templateName:t}});for(let t=0;t<e.states.length;++t){if(!e.states[t].div)return ut(new Error("Missing state div"),{additional:{stateId:e.states[t].state_id}});if("number"!=typeof e.states[t].state_id)return ut(new Error("Missing state_id"),{additional:{index:t}})}return null}(p);t&&(n(1,M=!0),K(t))}if(512&t.$$.dirty[0]&&(r=p.templates||{}),512&t.$$.dirty[0]|1&t.$$.dirty[1]&&(null===n(31,l=null==p?void 0:p.card)||void 0===l?void 0:l.variables)&&Array.isArray(p.card.variables)&&p.card.variables!==mt&&p.card.variables.forEach((t=>{t&&t.name&&!L.has(t.name)&>(t)})),512&t.$$.dirty[0]|2&t.$$.dirty[1]&&n(36,o=null===n(32,u=null==p?void 0:p.card)||void 0===u?void 0:u.states),6&t.$$.dirty[0]|48&t.$$.dirty[1]&&o&&!M&&!T){const t={type:"state",id:"root",width:{type:"match_parent"},height:{type:"match_parent"},states:o.map((t=>({state_id:t.state_id.toString(),div:t.div})))};n(4,bt=$t.produceChildContext(t,{tooltips:q,isRootState:!0}))}},[m,M,T,tt,bt,i,a,D,I,p,f,d,h,g,y,$,b,_,w,x,k,E,C,A,j,V,function(t){n(10,f=t)},function(){return L},function(){return U},function(t){n(9,p=t)},function(t){nt(G(t))},l,u,F,P,q,o]}const $u=class extends pr{constructor(t){super(),ur(this,t,yu,du,he,{id:11,json:9,platform:12,theme:10,globalVariablesController:13,mix:0,customization:14,builtinProtocols:15,extensions:16,onError:17,onStat:18,onCustomAction:19,onComponent:20,typefaceProvider:21,fetchInit:22,tooltipRoot:23,customComponents:24,direction:25,setTheme:26,getDebugVariables:27,getDebugAllVariables:28,setData:29,execAction:30},null,[-1,-1,-1,-1])}get setTheme(){return this.$$.ctx[26]}get getDebugVariables(){return this.$$.ctx[27]}get getDebugAllVariables(){return this.$$.ctx[28]}get setData(){return this.$$.ctx[29]}get execAction(){return this.$$.ctx[30]}};class bu{constructor(t){var e,n,r;e=this,r={},n=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(n="sizeHistory"),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,this.widthVariableName=t.width_variable_name,this.heightVariableName=t.height_variable_name}setVariable(t,e){if(!this.context)return!1;if(t){const n=this.context.variables.get(t);if(n&&"integer"===n.getType()){if(e=Math.round(e),this.sizeHistory[t]||(this.sizeHistory[t]=new Set),!this.sizeHistory[t].has(e))return n.setValue(e),this.sizeHistory[t].add(e),!0}else{const e=new Error("Missing variable");e.level="error",e.additional={variableName:t},this.context.logError(e)}}return!1}recalcProps(){if(!this.node||!this.context)return!1;const t=this.node.getBoundingClientRect(),e=this.setVariable(this.widthVariableName,t.width),n=this.setVariable(this.heightVariableName,t.height);return e||n}mountView(t,e){var n;this.node=t,this.context=e,this.resizeObserver||"undefined"==typeof ResizeObserver||(this.resizeObserver=new ResizeObserver((async()=>{let t=0;for(;this.recalcProps();){if(++t>8){const t=new Error("Recursive layout in size_provider");t.level="warn",t.additional={widthVariableName:this.widthVariableName,heightVariableName:this.heightVariableName},e.logError(t);break}await Nn()}this.sizeHistory={}}))),null===(n=this.resizeObserver)||void 0===n||n.observe(t),this.recalcProps()}unmountView(t,e){var n;null===(n=this.resizeObserver)||void 0===n||n.disconnect(),this.resizeObserver=void 0}}function _u(t){return t instanceof HTMLElement}function wu(t){return class{constructor(t){this.params=t}loadData(){if(this.params.lottie_json)return Promise.resolve(this.params.lottie_json);const t=this.params.lottie_url;return t?fetch(t).then((t=>{if(!t.ok)throw new Error("Response is not ok");return t.json()})):Promise.reject("Missing data")}mountView(e,n){if(!this.params.lottie_url&&!this.params.lottie_json)return;const r=Array.from(e.children).filter(_u);r.forEach((t=>{t.style.display="none"})),e.setAttribute("data-lottie","true");const o=this.wrapper=document.createElement("div");this.wrapper.style.width="100%",this.wrapper.style.height="100%",e.appendChild(this.wrapper);const i=Number(this.params.repeat_count||-1),a=()=>{var t,o;null===(t=this.animItem)||void 0===t||t.destroy(),r.forEach((t=>{t.style.display=""})),e.removeAttribute("data-lottie"),this.wrapper&&(null===(o=this.wrapper.parentNode)||void 0===o||o.removeChild(this.wrapper),this.wrapper=void 0);const i=new Error("Failed to load lottie animation");i.level="error",i.additional={url:this.params.lottie_url},n.logError(i)};this.loadData().then((e=>{const n=this.animItem=t({container:o,animationData:e,renderer:"svg",loop:!0});if(this.animItem.addEventListener("data_failed",a),"reverse"===this.params.repeat_mode||-1!==i){let t=1,e=0;n.addEventListener("loopComplete",(()=>{++e,-1!==i&&e===i?(n.stop(),n.goToAndStop(n.totalFrames,!0)):("reverse"===this.params.repeat_mode&&(t*=-1,n.setDirection(t)),n.goToAndPlay(1===t?0:n.totalFrames,!0))}))}})).catch(a)}unmountView(t,e){var n,r;null===(n=this.animItem)||void 0===n||n.destroy(),this.wrapper&&(null===(r=this.wrapper.parentNode)||void 0===r||r.removeChild(this.wrapper),this.wrapper=void 0),t.removeAttribute("data-lottie")}}}const xu=["target","hydrate"];function ku(t){const{target:e,hydrate:n}=t,r=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,xu),o=new $u({target:e,props:r,hydrate:n});return{$destroy(){o.$destroy()},execAction(t){o.execAction(t)},setTheme(t){o.setTheme(t)},setData(t){o.setData(t)},getDebugVariables:()=>o.getDebugVariables(),getDebugAllVariables:()=>o.getDebugAllVariables()}}function Eu(t,e){return Cu(t,e).result}function Cu(t,e){let n;try{n=v(t,{startRule:"json"===(null==e?void 0:e.type)?"JsonStringContents":"start"})}catch(t){return{result:{type:"error",value:"Unable to parse expression"},warnings:[]}}return Ir((null==e?void 0:e.variables)||new Map,n)}function Au(){return Array.from(y.keys())}function ju(t,e){return v(t,{startRule:"json"===(null==e?void 0:e.type)?"JsonStringContents":"start"})}var Vu=e.Hy,Du=e.M,Fu=e.Os,Pu=e.fz,Su=e.iL,Iu=e.e4,Nu=e._0,Ou=e.BJ,Mu=e.sY,Tu=e.Z3,zu=e.xn;export{Vu as SizeProvider,Du as createGlobalVariablesController,Fu as createVariable,Pu as evalExpression,Su as evalExpressionWithFullResult,Iu as functionNames,Nu as lottieExtensionBuilder,Ou as parseExpression,Mu as render,Tu as valToString,zu as walkExpression};
|
|
2
2
|
//# sourceMappingURL=client-devtool.mjs.map
|