@divkitframework/visual-editor 0.4.7 → 0.4.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/divkit-editor.css +1 -1
- package/dist/divkit-editor.d.ts +6 -1
- package/dist/divkit-editor.js +1 -6
- package/dist/editor.js +1 -1
- package/dist/lib.js +73282 -0
- package/package.json +14 -6
package/dist/divkit-editor.js
CHANGED
|
@@ -1,6 +1 @@
|
|
|
1
|
-
var GV=Object.defineProperty;var XV=(t,e,n)=>e in t?GV(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var on=(t,e,n)=>(XV(t,typeof e!="symbol"?e+"":e,n),n),vd=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)};var Gi=(t,e,n)=>(vd(t,e,"read from private field"),n?n.call(t):e.get(t)),er=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},Qs=(t,e,n,i)=>(vd(t,e,"write to private field"),i?i.call(t,n):e.set(t,n),n);var Nl=(t,e,n,i)=>({set _(o){Qs(t,e,o,n)},get _(){return Gi(t,e,i)}}),up=(t,e,n)=>(vd(t,e,"access private method"),n);function tn(){}const ku=t=>t;function _s(t,e){for(const n in e)t[n]=e[n];return t}function r1(t){return t()}function pp(){return Object.create(null)}function Rn(t){t.forEach(r1)}function Yo(t){return typeof t=="function"}function Rt(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let ja;function dc(t,e){return t===e?!0:(ja||(ja=document.createElement("a")),ja.href=e,t===ja.href)}function Jc(t,e){return t!=t?e==e:t!==e}function ZV(t){return Object.keys(t).length===0}function ju(t,...e){if(t==null){for(const i of e)i(void 0);return tn}const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function wn(t){let e;return ju(t,(n=>e=n))(),e}function De(t,e,n){t.$$.on_destroy.push(ju(e,n))}function qs(t,e,n,i){if(t){const o=s1(t,e,n,i);return t[0](o)}}function s1(t,e,n,i){return t[1]&&i?_s(n.ctx.slice(),t[1](i(e))):n.ctx}function Rs(t,e,n,i){if(t[2]&&i){const o=t[2](i(n));if(e.dirty===void 0)return o;if(typeof o=="object"){const r=[],s=Math.max(e.dirty.length,o.length);for(let l=0;l<s;l+=1)r[l]=e.dirty[l]|o[l];return r}return e.dirty|o}return e.dirty}function Bs(t,e,n,i,o,r){if(o){const s=s1(e,n,i,r);t.p(s,o)}}function Hs(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let i=0;i<n;i++)e[i]=-1;return e}return-1}function Mi(t,e,n){return t.set(n),e}function l1(t){return t&&Yo(t.destroy)?t.destroy:tn}function _p(t){const e=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}const xV=["",!0,1,"true","contenteditable"],a1=typeof window<"u";let c1=a1?()=>window.performance.now():()=>Date.now(),Su=a1?t=>requestAnimationFrame(t):tn;const ul=new Set;function d1(t){ul.forEach((e=>{e.c(t)||(ul.delete(e),e.f())})),ul.size!==0&&Su(d1)}function u1(t){let e;return ul.size===0&&Su(d1),{promise:new Promise((n=>{ul.add(e={c:t,f:n})})),abort(){ul.delete(e)}}}const va=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function $(t,e){t.appendChild(e)}function p1(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function QV(t){const e=S("style");return e.textContent="/* empty */",eL(p1(t),e),e.sheet}function eL(t,e){return $(t.head||t,e),e.sheet}function F(t,e,n){t.insertBefore(e,n||null)}function V(t){t.parentNode&&t.parentNode.removeChild(t)}function Bi(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function S(t){return document.createElement(t)}function Vr(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function xe(t){return document.createTextNode(t)}function G(){return xe(" ")}function Vn(){return xe("")}function te(t,e,n,i){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n,i)}function zi(t){return function(e){return e.preventDefault(),t.call(this,e)}}function Eo(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function h(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}const tL=["width","height"];function fs(t,e){const n=Object.getOwnPropertyDescriptors(t.__proto__);for(const i in e)e[i]==null?t.removeAttribute(i):i==="style"?t.style.cssText=e[i]:i==="__value"?t.value=t[i]=e[i]:n[i]&&n[i].set&&tL.indexOf(i)===-1?t[i]=e[i]:h(t,i,e[i])}function nL(t,e){Object.keys(e).forEach((n=>{iL(t,n,e[n])}))}function iL(t,e,n){const i=e.toLowerCase();i in t?t[i]=typeof t[i]=="boolean"&&n===""?!0:n:e in t?t[e]=typeof t[e]=="boolean"&&n===""?!0:n:h(t,e,n)}function uc(t){return/-/.test(t)?nL:fs}function _1(t){let e;return{p(...n){e=n,e.forEach((i=>t.push(i)))},r(){e.forEach((n=>t.splice(t.indexOf(n),1)))}}}function Ui(t){return t===""?null:+t}function oL(t){return Array.from(t.childNodes)}function at(t,e){e=""+e,t.data!==e&&(t.data=e)}function f1(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function rL(t,e,n){~xV.indexOf(n)?f1(t,e):at(t,e)}function Hn(t,e){t.value=e??""}function ke(t,e,n,i){n==null?t.style.removeProperty(e):t.style.setProperty(e,n,"")}function pc(t,e,n){for(let i=0;i<t.options.length;i+=1){const o=t.options[i];if(o.__value===e){o.selected=!0;return}}(!n||e!==void 0)&&(t.selectedIndex=-1)}function m1(t){const e=t.querySelector(":checked");return e&&e.__value}let Sa;function sL(){if(Sa===void 0){Sa=!1;try{typeof window<"u"&&window.parent&&window.parent.document}catch{Sa=!0}}return Sa}function Tu(t,e){getComputedStyle(t).position==="static"&&(t.style.position="relative");const i=S("iframe");i.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),i.setAttribute("aria-hidden","true"),i.tabIndex=-1;const o=sL();let r;return o?(i.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",r=te(window,"message",(s=>{s.source===i.contentWindow&&e()}))):(i.src="about:blank",i.onload=()=>{r=te(i.contentWindow,"resize",e),e()}),$(t,i),()=>{(o||r&&i.contentWindow)&&r(),V(i)}}function ne(t,e,n){t.classList.toggle(e,!!n)}function g1(t,e,{bubbles:n=!1,cancelable:i=!1}={}){return new CustomEvent(t,{detail:e,bubbles:n,cancelable:i})}class Cu{constructor(e=!1){on(this,"is_svg",!1);on(this,"e");on(this,"n");on(this,"t");on(this,"a");this.is_svg=e,this.e=this.n=null}c(e){this.h(e)}m(e,n,i=null){this.e||(this.is_svg?this.e=Vr(n.nodeName):this.e=S(n.nodeType===11?"TEMPLATE":n.nodeName),this.t=n.tagName!=="TEMPLATE"?n:n.content,this.c(e)),this.i(i)}h(e){this.e.innerHTML=e,this.n=Array.from(this.e.nodeName==="TEMPLATE"?this.e.content.childNodes:this.e.childNodes)}i(e){for(let n=0;n<this.n.length;n+=1)F(this.t,this.n[n],e)}p(e){this.d(),this.h(e),this.i(this.a)}d(){this.n.forEach(V)}}function bl(t,e){return new t(e)}const _c=new Map;let fc=0;function lL(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}function aL(t,e){const n={stylesheet:QV(e),rules:{}};return _c.set(t,n),n}function Jd(t,e,n,i,o,r,s,l=0){const a=16.666/i;let c=`{\n`;for(let g=0;g<=1;g+=a){const v=e+(n-e)*r(g);c+=g*100+`%{${s(v,1-v)}}\n`}const d=c+`100% {${s(n,1-n)}}\n}`,u=`__svelte_${lL(d)}_${l}`,p=p1(t),{stylesheet:_,rules:f}=_c.get(p)||aL(p,t);f[u]||(f[u]=!0,_.insertRule(`@keyframes ${u} ${d}`,_.cssRules.length));const m=t.style.animation||"";return t.style.animation=`${m?`${m}, `:""}${u} ${i}ms linear ${o}ms 1 both`,fc+=1,u}function h1(t,e){const n=(t.style.animation||"").split(", "),i=n.filter(e?r=>r.indexOf(e)<0:r=>r.indexOf("__svelte")===-1),o=n.length-i.length;o&&(t.style.animation=i.join(", "),fc-=o,fc||cL())}function cL(){Su((()=>{fc||(_c.forEach((t=>{const{ownerNode:e}=t.stylesheet;e&&V(e)})),_c.clear())}))}function dL(t,e,n,i){if(!e)return tn;const o=t.getBoundingClientRect();if(e.left===o.left&&e.right===o.right&&e.top===o.top&&e.bottom===o.bottom)return tn;const{delay:r=0,duration:s=300,easing:l=ku,start:a=c1()+r,end:c=a+s,tick:d=tn,css:u}=n(t,{from:e,to:o},i);let p=!0,_=!1,f;function m(){u&&(f=Jd(t,0,1,s,r,l,u)),r||(_=!0)}function g(){u&&h1(t,f),p=!1}return u1((v=>{if(!_&&v>=a&&(_=!0),_&&v>=c&&(d(1,0),g()),!p)return!1;if(_){const y=v-a,b=0+1*l(y/s);d(b,1-b)}return!0})),m(),d(0,1),g}function uL(t){const e=getComputedStyle(t);if(e.position!=="absolute"&&e.position!=="fixed"){const{width:n,height:i}=e,o=t.getBoundingClientRect();t.style.position="absolute",t.style.width=n,t.style.height=i,v1(t,o)}}function v1(t,e){const n=t.getBoundingClientRect();if(e.left!==n.left||e.top!==n.top){const i=getComputedStyle(t),o=i.transform==="none"?"":i.transform;t.style.transform=`${o} translate(${e.left-n.left}px, ${e.top-n.top}px)`}}let Ql;function Wl(t){Ql=t}function Cl(){if(!Ql)throw new Error("Function called outside component initialization");return Ql}function Uc(t){Cl().$$.on_mount.push(t)}function gs(t){Cl().$$.after_update.push(t)}function Js(t){Cl().$$.on_destroy.push(t)}function _i(){const t=Cl();return(e,n,{cancelable:i=!1}={})=>{const o=t.$$.callbacks[e];if(o){const r=g1(e,n,{cancelable:i});return o.slice().forEach((s=>{s.call(t,r)})),!r.defaultPrevented}return!0}}function mc(t,e){return Cl().$$.context.set(t,e),e}function yt(t){return Cl().$$.context.get(t)}function mn(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((i=>i.call(this,e)))}const rl=[],pt=[];let pl=[];const Ud=[],b1=Promise.resolve();let Wd=!1;function y1(){Wd||(Wd=!0,b1.then(w1))}function ur(){return y1(),b1}function _o(t){pl.push(t)}function Xn(t){Ud.push(t)}const bd=new Set;let el=0;function w1(){if(el!==0)return;const t=Ql;do{try{for(;el<rl.length;){const e=rl[el];el++,Wl(e),pL(e.$$)}}catch(e){throw rl.length=0,el=0,e}for(Wl(null),rl.length=0,el=0;pt.length;)pt.pop()();for(let e=0;e<pl.length;e+=1){const n=pl[e];bd.has(n)||(bd.add(n),n())}pl.length=0}while(rl.length);for(;Ud.length;)Ud.pop()();Wd=!1,bd.clear(),Wl(t)}function pL(t){if(t.fragment!==null){t.update(),Rn(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(_o)}}function _L(t){const e=[],n=[];pl.forEach((i=>t.indexOf(i)===-1?e.push(i):n.push(i))),n.forEach((i=>i())),pl=e}let ql;function fL(){return ql||(ql=Promise.resolve(),ql.then((()=>{ql=null}))),ql}function yd(t,e,n){t.dispatchEvent(g1(`${e?"intro":"outro"}${n}`))}const Ba=new Set;let es;function Dt(){es={r:0,c:[],p:es}}function Vt(){es.r||Rn(es.c),es=es.p}function I(t,e){t&&t.i&&(Ba.delete(t),t.i(e))}function H(t,e,n,i){if(t&&t.o){if(Ba.has(t))return;Ba.add(t),es.c.push((()=>{Ba.delete(t),i&&(n&&t.d(1),i())})),t.o(e)}else i&&i()}const mL={duration:0};function Zi(t,e,n,i){let r=e(t,n,{direction:"both"}),s=i?0:1,l=null,a=null,c=null,d;function u(){c&&h1(t,c)}function p(f,m){const g=f.b-s;return m*=Math.abs(g),{a:s,b:f.b,d:g,duration:m,start:f.start,end:f.start+m,group:f.group}}function _(f){const{delay:m=0,duration:g=300,easing:v=ku,tick:y=tn,css:b}=r||mL,w={start:c1()+m,b:f};f||(w.group=es,es.r+=1),"inert"in t&&(f?d!==void 0&&(t.inert=d):(d=t.inert,t.inert=!0)),l||a?a=w:(b&&(u(),c=Jd(t,s,f,g,m,v,b)),f&&y(0,1),l=p(w,g),_o((()=>yd(t,f,"start"))),u1((k=>{if(a&&k>a.start&&(l=p(a,g),a=null,yd(t,l.b,"start"),b&&(u(),c=Jd(t,s,l.b,l.duration,0,v,r.css))),l){if(k>=l.end)y(s=l.b,1-s),yd(t,l.b,"end"),a||(l.b?u():--l.group.r||Rn(l.group.c)),l=null;else if(k>=l.start){const A=k-l.start;s=l.a+l.d*v(A/l.duration),y(s,1-s)}}return!!(l||a)})))}return{run(f){Yo(r)?fL().then((()=>{r=r({direction:f?"in":"out"}),_(f)})):_(f)},end(){u(),l=a=null}}}function ln(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function gL(t,e){t.d(1),e.delete(t.key)}function zl(t,e){H(t,1,1,(()=>{e.delete(t.key)}))}function hL(t,e){t.f(),zl(t,e)}function Us(t,e,n,i,o,r,s,l,a,c,d,u){let p=t.length,_=r.length,f=p;const m={};for(;f--;)m[t[f].key]=f;const g=[],v=new Map,y=new Map,b=[];for(f=_;f--;){const j=u(o,r,f),T=n(j);let E=s.get(T);E?b.push((()=>E.p(j,e))):(E=c(T,j),E.c()),v.set(T,g[f]=E),T in m&&y.set(T,Math.abs(f-m[T]))}const w=new Set,k=new Set;function A(j){I(j,1),j.m(l,d),s.set(j.key,j),d=j.first,_--}for(;p&&_;){const j=g[_-1],T=t[p-1],E=j.key,O=T.key;j===T?(d=j.first,p--,_--):v.has(O)?!s.has(E)||w.has(E)?A(j):k.has(O)?p--:y.get(E)>y.get(O)?(k.add(E),A(j)):(w.add(O),p--):(a(T,s),p--)}for(;p--;){const j=t[p];v.has(j.key)||a(j,s)}for(;_;)A(g[_-1]);return Rn(b),g}function yl(t,e){const n={},i={},o={$$scope:1};let r=t.length;for(;r--;){const s=t[r],l=e[r];if(l){for(const a in s)a in l||(i[a]=1);for(const a in l)o[a]||(n[a]=l[a],o[a]=1);t[r]=l}else for(const a in s)o[a]=1}for(const s in i)s in n||(n[s]=void 0);return n}function fp(t){return typeof t=="object"&&t!==null?t:{}}function Gn(t,e,n){const i=t.$$.props[e];i!==void 0&&(t.$$.bound[i]=n,n(t.$$.ctx[i]))}function Pe(t){t&&t.c()}function Ee(t,e,n){const{fragment:i,after_update:o}=t.$$;i&&i.m(e,n),_o((()=>{const r=t.$$.on_mount.map(r1).filter(Yo);t.$$.on_destroy?t.$$.on_destroy.push(...r):Rn(r),t.$$.on_mount=[]})),o.forEach(_o)}function Ae(t,e){const n=t.$$;n.fragment!==null&&(_L(n.after_update),Rn(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function vL(t,e){t.$$.dirty[0]===-1&&(rl.push(t),y1(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function Yt(t,e,n,i,o,r,s=null,l=[-1]){const a=Ql;Wl(t);const c=t.$$={fragment:null,ctx:[],props:r,update:tn,not_equal:o,bound:pp(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(a?a.$$.context:[])),callbacks:pp(),dirty:l,skip_bound:!1,root:e.target||a.$$.root};s&&s(c.root);let d=!1;if(c.ctx=n?n(t,e.props||{},((u,p,..._)=>{const f=_.length?_[0]:p;return c.ctx&&o(c.ctx[u],c.ctx[u]=f)&&(!c.skip_bound&&c.bound[u]&&c.bound[u](f),d&&vL(t,u)),p})):[],c.update(),d=!0,Rn(c.before_update),c.fragment=i?i(c.ctx):!1,e.target){if(e.hydrate){const u=oL(e.target);c.fragment&&c.fragment.l(u),u.forEach(V)}else c.fragment&&c.fragment.c();e.intro&&I(t.$$.fragment),Ee(t,e.target,e.anchor),w1()}Wl(a)}class Gt{constructor(){on(this,"$$");on(this,"$$set")}$destroy(){Ae(this,1),this.$destroy=tn}$on(e,n){if(!Yo(n))return tn;const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(n),()=>{const o=i.indexOf(n);o!==-1&&i.splice(o,1)}}$set(e){this.$$set&&!ZV(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const bL="4",tl=[];function yL(t,e){return{subscribe:Si(t,e).subscribe}}function Si(t,e=tn){let n;const i=new Set;function o(l){if(Rt(t,l)&&(t=l,n)){const a=!tl.length;for(const c of i)c[1](),tl.push(c,t);if(a){for(let c=0;c<tl.length;c+=2)tl[c][0](tl[c+1]);tl.length=0}}}function r(l){o(l(t))}function s(l,a=tn){const c=[l,a];return i.add(c),i.size===1&&(n=e(o,r)||tn),l(t),()=>{i.delete(c),i.size===0&&n&&(n(),n=null)}}return{set:o,update:r,subscribe:s}}function as(t,e,n){const i=!Array.isArray(t),o=i?[t]:t;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const r=e.length<2;return yL(n,((s,l)=>{let a=!1;const c=[];let d=0,u=tn;const p=()=>{if(d)return;u();const f=e(i?c[0]:c,s,l);r?s(f):u=Yo(f)?f:tn},_=o.map(((f,m)=>ju(f,(g=>{c[m]=g,d&=~(1<<m),a&&p()}),(()=>{d|=1<<m}))));return a=!0,p(),function(){Rn(_),u(),a=!1}}))}typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(bL);function mp(t,e,n){const i=t.slice();return i[7]=e[n],i[8]=e,i[9]=n,i}function gp(t){let e,n,i;function o(...r){return t[5](t[9],...r)}return{c(){e=S("div"),h(e,"class","split-view__splitter svelte-1rid2da")},m(r,s){F(r,e,s),n||(i=[te(e,"pointerdown",zi(o)),te(e,"dblclick",zi(t[4]))],n=!0)},p(r,s){t=r},d(r){r&&V(e),n=!1,Rn(i)}}}function hp(t,e){let n,i,o,r,s,l=e[9],a,c=e[9]>0&&gp(e);const d=[e[7].props];var u=e[7].component;function p(m,g){let v={};for(let y=0;y<d.length;y+=1)v=_s(v,d[y]);return g!==void 0&&g&1&&(v=_s(v,yl(d,[fp(m[7].props)]))),{props:v}}u&&(r=bl(u,p(e)));const _=()=>e[6](o,l),f=()=>e[6](null,l);return{key:t,first:null,c(){n=Vn(),c&&c.c(),i=G(),o=S("div"),r&&Pe(r.$$.fragment),s=G(),h(o,"class","split-view__part svelte-1rid2da"),ke(o,"--grow",e[7].weight),ke(o,"min-width",e[1]==="horizontal"?`${e[7].minSize||al}px`:void 0),ke(o,"min-height",e[1]==="vertical"?`${e[7].minSize||al}px`:void 0),this.first=n},m(m,g){F(m,n,g),c&&c.m(m,g),F(m,i,g),F(m,o,g),r&&Ee(r,o,null),$(o,s),_(),a=!0},p(m,g){if(e=m,e[9]>0?c?c.p(e,g):(c=gp(e),c.c(),c.m(i.parentNode,i)):c&&(c.d(1),c=null),g&1&&u!==(u=e[7].component)){if(r){Dt();const v=r;H(v.$$.fragment,1,0,(()=>{Ae(v,1)})),Vt()}u?(r=bl(u,p(e,g)),Pe(r.$$.fragment),I(r.$$.fragment,1),Ee(r,o,s)):r=null}else if(u){const v=g&1?yl(d,[fp(e[7].props)]):{};r.$set(v)}l!==e[9]&&(f(),l=e[9],_()),g&1&&ke(o,"--grow",e[7].weight),g&3&&ke(o,"min-width",e[1]==="horizontal"?`${e[7].minSize||al}px`:void 0),g&3&&ke(o,"min-height",e[1]==="vertical"?`${e[7].minSize||al}px`:void 0)},i(m){a||(r&&I(r.$$.fragment,m),a=!0)},o(m){r&&H(r.$$.fragment,m),a=!1},d(m){m&&(V(n),V(i),V(o)),c&&c.d(m),r&&Ae(r),f()}}}function wL(t){let e,n=[],i=new Map,o,r=ln(t[0]);const s=l=>l[7].key||l[9];for(let l=0;l<r.length;l+=1){let a=mp(t,r,l),c=s(a);i.set(c,n[l]=hp(c,a))}return{c(){e=S("div");for(let l=0;l<n.length;l+=1)n[l].c();h(e,"class","split-view svelte-1rid2da"),ne(e,"split-view_vertical",t[1]==="vertical")},m(l,a){F(l,e,a);for(let c=0;c<n.length;c+=1)n[c]&&n[c].m(e,null);o=!0},p(l,[a]){a&31&&(r=ln(l[0]),Dt(),n=Us(n,a,s,1,l,r,i,e,zl,hp,null,mp),Vt()),(!o||a&2)&&ne(e,"split-view_vertical",l[1]==="vertical")},i(l){if(!o){for(let a=0;a<r.length;a+=1)I(n[a]);o=!0}},o(l){for(let a=0;a<n.length;a+=1)H(n[a]);o=!1},d(l){l&&V(e);for(let a=0;a<n.length;a+=1)n[a].d()}}}const al=300;function $L(t,e,n){let{components:i}=e,{orientation:o="horizontal"}=e,r=[];function s(d,u){if(d.button!==0)return;const p=o==="horizontal"?"pageX":"pageY",_=o==="horizontal"?"offsetWidth":"offsetHeight",f=d[p],m=r.map((w=>w[_])),g=i[u].minSize??al,v=i[u+1].minSize??al,y=w=>{w.preventDefault();let k=w[p]-f;m[u]+k<g&&(k=g-m[u]),m[u+1]-k<v&&(k=m[u+1]-v),r.forEach(((A,j)=>{let T;j===u?T=m[j]+k:j===u+1&&(T=m[j]-k),T?A.style.flexBasis=`${T}px`:A.style.flexBasis=`${m[j]}px`}))},b=()=>{window.removeEventListener("pointermove",y),window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",b)};window.addEventListener("pointermove",y),window.addEventListener("pointerup",b),window.addEventListener("pointercancel",b)}function l(){r.forEach((d=>{d.style.flexBasis=""}))}const a=(d,u)=>s(u,d-1);function c(d,u){pt[d?"unshift":"push"]((()=>{r[u]=d,n(2,r)}))}return t.$$set=d=>{"components"in d&&n(0,i=d.components),"orientation"in d&&n(1,o=d.orientation)},[i,o,r,s,l,a,c]}class $1 extends Gt{constructor(e){super(),Yt(this,e,$L,wL,Rt,{components:0,orientation:1})}}const oi=Symbol("language"),kL={collapse:"Свернуть",expand:"Развернуть",treeMenu:"Меню","treeItem.warnings":"Предупреждения","treeItem.errors":"Ошибки",addComponent:"Добавить компонент",removeComponent:"Удалить",cloneComponent:"Дублировать компонент",copyComponent:"Копировать компонент",pasteComponent:"Вставить компонент",newComponentTitle:"Новый компонент",components:"Дерево компонентов",basicComponents:"Базовые компоненты",additionalComponents:"Дополнительные компоненты",lightTheme:"Светлая тема",darkTheme:"Тёмная тема",componentProperties:"Свойства",complexComponentProperties:"Сложные свойства",code:"Исходный код",chooseComponent:"Выберите элемент",inset_top:"сверху",inset_right:"справа",inset_bottom:"снизу",inset_left:"слева",inset_content:"содержимое","props.width":"Ширина","props.height":"Высота","props.size_fixed":"Точное","props.size_match_parent":"Растянуть","props.size_wrap_content":"Содержимое","props.size_constrained":"Сжимается","props.alignment":"Выравнивание","props.alignment_horizontal":"Своё горизонтальное выравнивание","props.alignment_vertical":"Своё вертикальное выравнивание","props.align_left":"Слева","props.align_center":"По центру","props.align_right":"Справа","props.align_top":"Сверху","props.align_bottom":"Снизу","props.align_start":"В начале","props.align_end":"В конце","props.alpha":"Непрозрачность","props.rotation":"Поворот","props.insets":"Отступы","props.paddings":"Внутренние","props.margins":"Внешние","props.text":"Текст","props.font_size":"Размер текста","props.font_size_small":"Маленький","props.font_size_medium":"Средний","props.font_size_large":"Большой","props.font_weight":"Насыщенность","props.font_weight_light":"300 — Лёгкий","props.font_weight_normal":"400 — Обычный","props.font_weight_medium":"500 — Полужирный","props.font_weight_bold":"700 — Жирный","props.font_family":"Шрифт","props.text_color":"Цвет текста","props.text_alignment_horizontal":"Выравнивание","props.underline":"Подчёркивание","props.strike":"Зачёркивание","props.image_url":"Картинка","props.preview":"Предпросмотр","props.image_scale":"Масштабирование","props.scale_fit":"Поместить","props.scale_fill":"Заполнить","props.scale_no_scale":"Оригинал","props.scale_stretch":"Растянуть","props.image_alignment":"Выравнивание картинки","props.image_alignment_horizontal":"Выравнивание картинки по горизонтали","props.image_alignment_vertical":"Выравнивание картинки по вертикали","props.lottie_url":"Анимация","props.background":"Фон","props.background_solid":"Цвет","props.background_gradient":"Градиент","props.background_gradient_angle":"Угол наклона","props.background_gradient_count":"Кол-во цветов","props.background_image":"Картинка","props.corners":"Скругление углов","props.actions":"Действия","props.orientation":"Ориентация","props.orientation_horizontal":"Горзонтальная","props.orientation_vertical":"Вертикальная","props.orientation_overlap":"Наложение","props.content_alignment":"Выравнивание содержимого","props.cross_content_alignment":"Выравнивание содержимого по поперечной оси","props.content_alignment_horizontal":"Горизонтальное выравнивание содержимого","props.content_alignment_vertical":"Вертикальное выравнивание содержимого","props.orientation_start":"Начало","props.orientation_center":"По центру","props.orientation_end":"Конец","props.separator_color":"Цвет","props.line_height":"Высота линии","props.spacing":"Отступ между элементами","props.video_repeatable":"Повторять с начала","props.video_autostart":"Автостарт","props.video_muted":"Без звука","props.video_sources":"Источник видео","props.column_count":"Количество колонок","props.column_span":"Растянуть по колонкам","props.row_span":"Растянуть по строкам","props.text_variable":"Связанная переменная","props.keyboard_type":"Тип поля","props.keyboard_single_line_text":"Однострочное","props.keyboard_multi_line_text":"Многострочное","props.keyboard_phone":"Телефон","props.keyboard_number":"Число","props.keyboard_email":"Электронная почта","props.keyboard_uri":"Ссылка","props.keyboard_password":"Пароль","props.max_length":"Максимальное число символов","props.hint_text":"Текст подсказки","props.a11y_description":"Описание","props.select_options":"Список опций","props.is_enabled":"Включён","props.on_color":"Цвет включённого состояния","props.high_priority_preview_show":"Ускоренный предпросмотр",actions_count:["%s действие","%s действия","%s действий","Нет действий"],actions_no_url:"<нет ссылки>","actions-url":"Ссылка","actions-unknown":"Неизвестно","actions-log-id":"ID для логирования","actions-log-url":"Url для логирования","actions.focus_element":"Установить фокус","actions.clear_focus":"Убрать фокус","actions.set_variable":"Установить переменную","actions.array_insert_value":"Вставить значение в массив","actions.array_remove_value":"Удалить значение из массива","actions.copy_to_clipboard":"Копировать","actions.dict_set_value":"Установить значение в объекте","actions.array_set_value":"Установить значение в массиве","actions.show_tooltip":"Показать тултип","actions.hide_tooltip":"Скрыть тултип","video-url":"Url источника","video-mime-type":"Mime type источника","select.text":"Текст опции","select.value":"Значение опции",cancel:"Отмена",save:"Сохранить",close:"Закрыть",color:"Цвет",image:"Картинка",animation:"Анимация",delete:"Удалить",add_color:"Добавить цвет",add_background:"Добавить слой",add_action:"Добавить действие",add_video:"Добавить источник",add_select_option:"Добавить опцию",no_background:"Нет фона",multiple_backgrounds:"Несколько слоёв",unknown_background:"Неизвестный фон",background_solid:"Цвет: %s",background_gradient:"Градиент",background_image:"Картинка: %s",background_image_no_url:"<нет ссылки>",errors:"Ошибки",no_errors:"Нет ошибок",undo:"Отменить",redo:"Вернуть",previewSize:"Размер окна предварительного просмотра",previewLang:"Выбранный язык для отображения",previewDirection:"Направление ввода текст","components.image":"Картинка","components.gif":"Gif-картинка","components.text":"Текст","components.separator":"Разделитель","components.container":"Контейнер","components.grid":"Сетка","components.gallery":"Галерея","components.pager":"Пейджер","components.tabs":"Табы","components.state":"Набор состояний","components.custom":"Кастом","components.indicator":"Индикатор","components.slider":"Слайдер","components.input":"Поле ввода","components.select":"Выпадающий список","components.video":"Видео","components.switch":"Переключатель","templates.lottie":"Lottie-анимация","templates.button":"Кнопка","templates.close":"Крестик","templates.list_item":"Элемент списка",rootComponent:"Корневой компонент",palette:"Палитра",localPalette:"Локальная палитра",missingPaletteColor:"Отсутствует цвет из палитры '%s'",addColor:"Добавить цвет","baseProps.title":"Базовые свойства и выравнивание","textProps.title":"Свойства текста","imageProps.title":"Свойства картинки","videoProps.title":"Свойства видео","containerProps.title":"Свойства контейнера","gridProps.title":"Свойства сетки","galleryProps.title":"Свойства галереи","separatorProps.title":"Свойства разделителя","lottieProps.title":"Свойства Lottie","buttonProps.title":"Свойства кнопки","closeProps.title":"Свойства крестика","listItemProps.title":"Свойства элемента списка","inputProps.title":"Свойства поля ввода","selectProps.title":"Свойства выпадающего списка","switchProps.title":"Свойства переключателя","a11yProps.title":"Свойства доступности",default:"По умолчанию","background.image":"Картинка","background.gradient":"Линейный градиент","background.solid_first_title":"Цвет","background.solid_second_title":"Непрозрачность","background.gradient_second_title":"Угол градиента","background.image_second_title":"Непрозрачность","file.image_placeholder":"Ссылка на изображение","file.gif_placeholder":"Ссылка на Gif-анимацию","file.lottie_placeholder":"Ссылка на lottie-анимацию","file.video_placeholder":"Ссылка на видео","file.image_label":"Перетащите сюда изображение","file.gif_label":"Перетащите сюда Gif-анимацию","file.lottie_label":"Перетащите сюда lottie-анимацию","file.video_label":"Перетащите сюда видео-файл","file.image_error":"Не удалось загрузить изображение","file.gif_error":"Не удалось загрузить Gif-анимацию","file.lottie_error":"Не удалось загрузить lottie-анимацию","file.video_error":"Не удалось загрузить видео","file.image_upload":"Загрузить изображение","file.gif_upload":"Загрузить Gif","file.lottie_upload":"Загрузить Lottie","file.video_upload":"Загрузить видео","file.select":"Выбрать файл","file.insert_image":"Вставить изображение","file.too_big":"Слишком большой файл","file.generate_from_video":"Сгенерировать из видео","file.generate_from_lottie":"Сгенерировать из анимации","link.placeholder":"Введите адрес ссылки",textStyle:"Стилизация","commands.add_component":"Добавление компонента","commands.move_component":"Перемещение компонента","commands.remove_component":"Удаление компонента","commands.set_json":"Изменение json","commands.set_property":"Изменение свойств","commands.add_palette_item":"Добавление цвета в палитру","commands.delete_palette_item":"Удаление цвета из палитры","commands.reorder_palette_item":"Изменение порядка цветов в палитре","commands.rename_palette_item":"Изменение названия цвета в палитре","commands.change_palette_item":"Изменение цвета в палитре","commands.change_custom_variables":"Изменение переменных","commands.change_timers":"Изменение таймеров",tankerTitle:"Танкер",perThemeProps:"Тема",tankerEnterValue:"Введите ключ",tankerKey:"Ключ:",tankerDialogTitle:"Введите ключ из танкера",tankerPlaceholder:"Ключ от танкера",tankerMissing:"Ключ не найден",tankerOverview:"Подключенные ключи танкера",tankerOverviewEmpty:"Нет использованных ключей из танкера",tankerUpdate:"Обновить ключи",expressionTitle:"Выражение",sourcesTitle:"Источники данных",sourcesEmpty:"Отсутствуют источники интеграции данных",sourcesName:"Название",sourcesUrl:"Источник",inplaceEditorDisabled:"Текст из танкера и выражений можно отредактировать только через соответствующий интерфейс",customVariablesTitle:"Переменные",customVariablesAdd:"Добавить переменную",customVariablesEmptyName:"Пустое название переменной",customVariablesName:"Название",customVariablesType:"Типа",customVariablesValue:"Значение",customVariablesTypeString:"строка",customVariablesTypeNumber:"число с плавающей точкой",customVariablesTypeInteger:"целое число",customVariablesTypeBoolean:"булево",customVariablesTypeUrl:"url",customVariablesTypeColor:"цвет",customVariablesTypeDict:"объект",customVariablesTypeArray:"массив",customVariablesBooleanValidation:'Должно быть значение "true" или "false"',customVariablesJsonValidation:"Не удалось разобрать значение",canvasCustomSize:"Своё","props.add":"добавить","props.remove":"удалить","props.supports":"Поддержано только на ","props.not_supported":"Не поддержано","props.deprecated":"Устарело","errors.selectedTitle":"Показаны события только от одного компонента","errors.clear":"Показать все","errors.noDetails":"Нет деталей","errors.select":"Выбрать компонент",userDefinedComponents:"Пользовательские компоненты",timersTitle:"Таймеры",timersAdd:"Добавить таймер",timersEmptyId:"Пустой идентифекатор переменной",timersId:"Идентификатор",timersDuration:"Длительность",timersTickInterval:"Периодический интервал",timersValueVariable:"Переменная",timersTickActions:"Периодические действия",timersEndActions:"Действия при окончании","rtl.switchToRtl":"Включить написание справа-налево","rtl.switchToLTR":"Включить написание слева-направо"},jL={collapse:"Collapse",expand:"Expand",treeMenu:"Menu","treeItem.warnings":"Warnings","treeItem.errors":"Errors",addComponent:"Add component",removeComponent:"Remove",cloneComponent:"Duplicate component",copyComponent:"Copy component",pasteComponent:"Paste component",newComponentTitle:"New component",components:"Components tree",basicComponents:"Basic components",additionalComponents:"Additional components",lightTheme:"Light theme",darkTheme:"Dark theme",componentProperties:"Properties",complexComponentProperties:"Complex properties",code:"Code",chooseComponent:"Choose the element",inset_top:"top",inset_right:"right",inset_bottom:"bottom",inset_left:"left",inset_content:"content","props.width":"Width","props.height":"Height","props.size_fixed":"Fixed","props.size_match_parent":"Fill","props.size_wrap_content":"Content","props.size_constrained":"Constrained","props.alignment":"Alignment","props.alignment_horizontal":"Self horizontal align","props.alignment_vertical":"Self vertical align","props.align_left":"Left","props.align_center":"Center","props.align_right":"Right","props.align_top":"Top","props.align_bottom":"Bottom","props.align_start":"Start","props.align_end":"End","props.alpha":"Alpha","props.rotation":"Rotation","props.insets":"Margins and paddings","props.paddings":"Paddings","props.margins":"Margins","props.text":"Text","props.font_size":"Text size","props.font_size_small":"Small","props.font_size_medium":"Medium","props.font_size_large":"Large","props.font_weight":"Weight","props.font_weight_light":"300 — Light","props.font_weight_normal":"400 — Normal","props.font_weight_medium":"500 — Medium","props.font_weight_bold":"700 — Bold","props.font_family":"Font family","props.text_color":"Text color","props.text_alignment_horizontal":"Alignment","props.underline":"Underline","props.strike":"Strikethrough","props.image_url":"Image","props.preview":"Preview","props.image_scale":"Scale","props.scale_fit":"Fit","props.scale_fill":"Fill","props.scale_no_scale":"No scale","props.scale_stretch":"Stretch","props.image_alignment":"Image align","props.image_alignment_horizontal":"Image horizontal align","props.image_alignment_vertical":"Image vertical align","props.lottie_url":"Animation","props.background":"Background","props.background_solid":"Color","props.background_gradient":"Gradient","props.background_gradient_angle":"Angle","props.background_gradient_count":"Stops count","props.background_image":"Image","props.corners":"Corners radius","props.actions":"Actions","props.orientation":"Orientation","props.orientation_horizontal":"Horizontal","props.orientation_vertical":"Vertical","props.orientation_overlap":"Overlap","props.content_alignment":"Content align","props.cross_content_alignment":"Cross content align","props.content_alignment_horizontal":"Content horizontal align","props.content_alignment_vertical":"Content vertical align","props.orientation_start":"Start","props.orientation_center":"Center","props.orientation_end":"End","props.separator_color":"Color","props.line_height":"Line height","props.spacing":"Item spacing","props.video_repeatable":"Repeat","props.video_autostart":"Autostart","props.video_muted":"Mute","props.video_sources":"Video source","props.column_count":"Column count","props.column_span":"Column span","props.row_span":"Row span","props.text_variable":"Bound variable","props.keyboard_type":"Input type","props.keyboard_single_line_text":"Single line","props.keyboard_multi_line_text":"Multi line","props.keyboard_phone":"Phone","props.keyboard_number":"Number","props.keyboard_email":"Email","props.keyboard_uri":"Uri","props.keyboard_password":"Password","props.max_length":"Max length","props.hint_text":"Hint text","props.a11y_description":"Description","props.select_options":"Select options","props.is_enabled":"Is enabled","props.on_color":"Color of the enabled state","props.high_priority_preview_show":"Faster preview",actions_count:["%s action","%s actions","%s actions","No actions"],actions_no_url:"<no url>","actions-url":"Url","actions-unknown":"Unknown","actions-log-id":"Log ID","actions-log-url":"Log url","actions.focus_element":"Focus element","actions.clear_focus":"Clear focus","actions.set_variable":"Set variable","actions.array_insert_value":"Insert value into array","actions.array_remove_value":"Remove value from array","actions.copy_to_clipboard":"Copy to clipboard","actions.dict_set_value":"Set value in dict","actions.array_set_value":"Set value in array","actions.show_tooltip":"Show tooltip","actions.hide_tooltip":"Hide tooltip","video-url":"Source url","video-mime-type":"Source mime type","select.text":"Select text","select.value":"Select value",cancel:"Cancel",save:"Save",close:"Close",color:"Color",image:"Image",animation:"Animation",delete:"Delete",add_color:"Add color",add_background:"Add layer",add_action:"Add action",add_video:"Add source",add_select_option:"Add option",no_background:"No background",multiple_backgrounds:"Multiple layers",unknown_background:"Unknown background",background_solid:"Color: %s",background_gradient:"Gradient",background_image:"Image: %s",background_image_no_url:"<no url>",errors:"Errors",no_errors:"No errors",undo:"Undo",redo:"Redo",previewSize:"Preview size",previewLang:"Preview language",previewDirection:"Text direction","components.image":"Image","components.gif":"Gif-image","components.text":"Text","components.separator":"Separator","components.container":"Container","components.grid":"Grid","components.gallery":"Gallery","components.pager":"Pager","components.tabs":"Tabs","components.state":"State","components.custom":"Custom","components.indicator":"Indicator","components.slider":"Slider","components.input":"Input","components.select":"Select","components.video":"Video","components.switch":"Switch","templates.lottie":"Lottie","templates.button":"Button","templates.close":"Cross button","templates.list_item":"List item",rootComponent:"Root component",palette:"Palette",localPalette:"Local palette",missingPaletteColor:"Missing palette color '%s'",addColor:"Add color","baseProps.title":"Basic properties and alignment","textProps.title":"Text properties","imageProps.title":"Image properties","videoProps.title":"Video properties","containerProps.title":"Container properties","gridProps.title":"Grid properties","galleryProps.title":"Gallery properties","separatorProps.title":"Separator properties","lottieProps.title":"Lottie properties","buttonProps.title":"Button properties","closeProps.title":"Cross button properties","listItemProps.title":"List item properties","inputProps.title":"Input properties","selectProps.title":"Select properties","switchProps.title":"Switch properties","a11yProps.title":"Accessibility properties",default:"Default","background.image":"Image","background.gradient":"Linear gradient","background.solid_first_title":"Color","background.solid_second_title":"Alpha","background.gradient_second_title":"Gradient angle","background.image_second_title":"Alpha","file.image_placeholder":"Image link","file.gif_placeholder":"Gif-animation link","file.lottie_placeholder":"Lottie-animation link","file.video_placeholder":"Video link","file.image_label":"Drop image here","file.gif_label":"Drop Gif animation here","file.lottie_label":"Drop Lottie animation here","file.video_label":"Drop video here","file.image_error":"Unable to load an image","file.gif_error":"Unable to load a Gif-animation","file.lottie_error":"Unable to load a Lottie-animation","file.video_error":"Unable to load a video","file.image_upload":"Upload an image","file.gif_upload":"Upload Gif","file.lottie_upload":"Upload Lottie","file.video_upload":"Upload video","file.select":"Select file","file.insert_image":"Insert image","file.too_big":"The file is too large","file.generate_from_video":"Generate from video","file.generate_from_lottie":"Generate from animation","link.placeholder":"Input link address",textStyle:"Styles","commands.add_component":"Component addition","commands.move_component":"Component move","commands.remove_component":"Component removal","commands.set_json":"Json change","commands.set_property":"Property change","commands.add_palette_item":"Palette color addition","commands.delete_palette_item":"Palette color removal","commands.reorder_palette_item":"Reorder palette list","commands.rename_palette_item":"Rename palette item","commands.change_palette_item":"Change palette item","commands.change_custom_variables":"Change variables","commands.change_timers":"Change timers",tankerTitle:"Tanker",perThemeProps:"Theme",tankerEnterValue:"Input a key",tankerKey:"Key:",tankerDialogTitle:"Enter tanker key",tankerPlaceholder:"Tanker key",tankerMissing:"Key is not found",tankerOverview:"Tanker keys",tankerOverviewEmpty:"No used tanker keys",tankerUpdate:"Update keys",expressionTitle:"Expression",sourcesTitle:"External sources",sourcesEmpty:"No external sources integrated",sourcesName:"Name",sourcesUrl:"Source",inplaceEditorDisabled:"Text from tanker or expressions can be edited only through a suitable interface",customVariablesTitle:"Variables",customVariablesAdd:"Add variable",customVariablesEmptyName:"Empty variable name",customVariablesName:"Name",customVariablesType:"Type",customVariablesValue:"Value",customVariablesTypeString:"string",customVariablesTypeNumber:"number",customVariablesTypeInteger:"integer",customVariablesTypeBoolean:"boolean",customVariablesTypeUrl:"url",customVariablesTypeColor:"color",customVariablesTypeDict:"dict",customVariablesTypeArray:"array",customVariablesBooleanValidation:'Should be "true" or "false"',customVariablesJsonValidation:"Failed to parse",canvasCustomSize:"Custom","props.add":"add","props.remove":"remove","props.supports":"Supported only on ","props.not_supported":"Not supported","props.deprecated":"Deprecated","errors.selectedTitle":"Displaying only events from the one leaf","errors.clear":"Show all","errors.noDetails":"No details","errors.select":"Select component",userDefinedComponents:"User components",timersTitle:"Timers",timersAdd:"Add timer",timersEmptyId:"Empty timer id",timersId:"Id",timersDuration:"Duration",timersTickInterval:"Tick interval",timersValueVariable:"Value variable",timersTickActions:"Tick actions",timersEndActions:"End actions","rtl.switchToRTL":"Turn on RTL layout","rtl.switchToLTR":"Turn on LTR layout"},SL={ru:kL,en:jL};function zu(t){const e=t-1;return e*e*e+1}function vp(t,{delay:e=0,duration:n=400,easing:i=ku}={}){const o=+getComputedStyle(t).opacity;return{delay:e,duration:n,easing:i,css:r=>`opacity: ${r*o}`}}function fr(t,{delay:e=0,duration:n=400,easing:i=zu,x:o=0,y:r=0,opacity:s=0}={}){const l=getComputedStyle(t),a=+l.opacity,c=l.transform==="none"?"":l.transform,d=a*(1-s),[u,p]=_p(o),[_,f]=_p(r);return{delay:e,duration:n,easing:i,css:(m,g)=>`\n\t\t\ttransform: ${c} translate(${(1-m)*u}${p}, ${(1-m)*_}${f});\n\t\t\topacity: ${a-d*g}`}}function Go(t,{delay:e=0,duration:n=400,easing:i=zu,axis:o="y"}={}){const r=getComputedStyle(t),s=+r.opacity,l=o==="y"?"height":"width",a=parseFloat(r[l]),c=o==="y"?["top","bottom"]:["left","right"],d=c.map((v=>`${v[0].toUpperCase()}${v.slice(1)}`)),u=parseFloat(r[`padding${d[0]}`]),p=parseFloat(r[`padding${d[1]}`]),_=parseFloat(r[`margin${d[0]}`]),f=parseFloat(r[`margin${d[1]}`]),m=parseFloat(r[`border${d[0]}Width`]),g=parseFloat(r[`border${d[1]}Width`]);return{delay:e,duration:n,easing:i,css:v=>`overflow: hidden;opacity: ${Math.min(v*20,1)*s};${l}: ${v*a}px;padding-${c[0]}: ${v*u}px;padding-${c[1]}: ${v*p}px;margin-${c[0]}: ${v*_}px;margin-${c[1]}: ${v*f}px;border-${c[0]}-width: ${v*m}px;border-${c[1]}-width: ${v*g}px;`}}const Kd=new Set;function TL(t){if(t.defaultPrevented)return;const e=[];for(const{shortcut:n,handler:i,prio:o}of Kd)n.isPressed(t)&&e.push({handler:i,prio:o});e.sort(((n,i)=>{if(n.prio){if(!i.prio)return-1}else return 1;return i.prio-n.prio})),e.length&&setTimeout((()=>{}));for(let n=0;n<e.length;++n){const{handler:i}=e[n];if(i(t)!==!1){t.preventDefault();break}}}function CL(t,e,n){const i={shortcut:t,handler:e,prio:n};return Kd.add(i),{unbind:()=>{Kd.delete(i)}}}function k1(t,e){const n=e.map((i=>CL(i[0],(o=>{const r=!!t.closest("dialog"),s=!!document.querySelector("dialog");if(r===s)i[1](o);else return!1}),i[2]).unbind));return{destroy(){for(const i of n)i()}}}function wl(t){return t.charAt(0).toUpperCase()+t.substring(1)}const bp=/Mac OS/i.test(navigator.userAgent),Xr={SHIFT:{val:4,field:"shiftKey",str:"⇧"},CTRL:{val:1,field:"ctrlKey",str:"⌃"},ALT:{val:2,field:"altKey",str:"⌥"},CMD:{val:8,field:"metaKey",str:"⌘"}},gc={BACKSPACE:8,TAB:9,ENTER:13,ESC:27,SPACE:32,HOME:36,END:35,PAGEUP:33,PAGEDOWN:34,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,S:83,T:84,U:85,V:86,X:88,Y:89,Z:90,1:49,2:50,3:51,"/":191},zL=Object.keys(gc).reduce(((t,e)=>(t[gc[e]]=e,t)),{}),ds=class ds{constructor(e){on(this,"_parts");on(this,"_strParts");on(this,"_str");e.includes(ds.MAC_SPLITTER)&&(e=e.split(ds.MAC_SPLITTER)[bp?1:0].trim()),this._parts=[],this._strParts=[];for(const n of e.split(ds.SEVERAL_SPLITTER)){const i=n.trim();this._parts.push(this._parse(i)),this._strParts.push(i.split("+"))}bp?this._str=this._genMacStr():this._str=e}_parse(e){const n=e.split("+");let i=0,o;for(const r of n){const s=r.toUpperCase();if(!(s in Xr)&&!(s in gc))throw new Error(`Unknown key ${e}`);s in Xr?i+=Xr[s].val:o=gc[s]}if(!o)throw new Error(`Incorrect shortcut ${e}`);return{which:o,modifiers:i}}_genMacStr(){return this._parts.map((e=>{let n="";const i=e.modifiers;for(const o in Xr)i&Xr[o].val&&(n+=Xr[o].str);return n+=wl(zL[e.which].toLowerCase()),n})).join(ds.SEVERAL_SPLITTER)}toString(){return this._str}isPressed(e){for(const n of this._parts){if(e.which!==n.which)continue;let i=0;for(const o in Xr)e[Xr[o].field]&&(i+=Xr[o].val);if(i===n.modifiers)return!0}return!1}getList(){return this._strParts}};on(ds,"MAC_SPLITTER",":"),on(ds,"SEVERAL_SPLITTER"," / ");let di=ds;const j1=new di("Esc"),Eu=new di("Esc"),Wc=new di("Enter"),EL=new di("Ctrl+Enter : Cmd+Enter"),yp=new di("Up"),AL=new di("Down"),OL=new di("Left"),ML=new di("Right"),PL=new di("Up"),IL=new di("Down"),DL=new di("Left"),VL=new di("Right"),wp=new di("Shift+Up"),$p=new di("Shift+Down"),kp=new di("Shift+Left"),jp=new di("Shift+Right"),LL=new di("Ctrl+Up"),FL=new di("Ctrl+Down"),NL=new di("Ctrl+Left"),qL=new di("Ctrl+Right"),Sp=new di("Ctrl+Shift+Up"),Tp=new di("Ctrl+Shift+Down"),Cp=new di("Ctrl+Shift+Left"),zp=new di("Ctrl+Shift+Right"),S1=new di("Delete / Backspace"),T1=new di("Ctrl+Z : Cmd+Z"),C1=new di("Ctrl+Y / Ctrl+Shift+Z : Cmd+Y / Cmd+Shift+Z"),z1=new di("Ctrl+C : Cmd+C"),E1=new di("Ctrl+V : Cmd+V"),RL=new di("Up"),BL=new di("Down"),HL=new di("Left"),JL=new di("Right"),UL=new di("Up"),WL=new di("Down"),KL=new di("Left"),YL=new di("Right"),A1=new di("Up"),O1=new di("Down"),GL=new di("Home"),XL=new di("End"),ZL=new di("Delete / Backspace"),Cn=Symbol("app");function po(t){return t.replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29")}function Ep(t){let e,n=`url(${po(t[0].icon)})`;return{c(){e=S("span"),h(e,"class","menu-item__icon svelte-1o1lgms"),ke(e,"background-image",n)},m(i,o){F(i,e,o)},p(i,o){o&1&&n!==(n=`url(${po(i[0].icon)})`)&&ke(e,"background-image",n)},d(i){i&&V(e)}}}function Ap(t){let e;return{c(){e=S("span"),h(e,"class","menu-item__submenu-icon svelte-1o1lgms")},m(n,i){F(n,e,i)},d(n){n&&V(e)}}}function xL(t){let e,n,i=t[0].text+"",o,r,s,l,a=t[0].icon&&Ep(t),c=t[0].submenu&&Ap();return{c(){e=S("li"),a&&a.c(),n=G(),o=xe(i),r=G(),c&&c.c(),h(e,"class","menu-item svelte-1o1lgms"),ne(e,"menu-item_icon",t[0].icon),ne(e,"menu-item_enabled",t[0].enabled!==!1),ne(e,"menu-item_selected",t[1])},m(d,u){F(d,e,u),a&&a.m(e,null),$(e,n),$(e,o),$(e,r),c&&c.m(e,null),t[5](e),s||(l=[te(e,"click",Eo(zi(t[6]))),te(e,"mouseenter",(function(){Yo(t[0].submenu?t[7]:null)&&(t[0].submenu?t[7]:null).apply(this,arguments)})),te(e,"mouseleave",(function(){Yo(t[0].submenu?t[8]:null)&&(t[0].submenu?t[8]:null).apply(this,arguments)}))],s=!0)},p(d,[u]){t=d,t[0].icon?a?a.p(t,u):(a=Ep(t),a.c(),a.m(e,n)):a&&(a.d(1),a=null),u&1&&i!==(i=t[0].text+"")&&at(o,i),t[0].submenu?c||(c=Ap(),c.c(),c.m(e,null)):c&&(c.d(1),c=null),u&1&&ne(e,"menu-item_icon",t[0].icon),u&1&&ne(e,"menu-item_enabled",t[0].enabled!==!1),u&2&&ne(e,"menu-item_selected",t[1])},i:tn,o:tn,d(d){d&&V(e),a&&a.d(),c&&c.d(),t[5](null),s=!1,Rn(l)}}}function QL(t,e,n){let{item:i}=e,{selected:o=!1}=e;const{contextMenu:r}=yt(Cn);let s;const l=_i();function a(p){pt[p?"unshift":"push"]((()=>{s=p,n(2,s)}))}const c=()=>{var p;i.enabled!==!1&&((p=i.callback)==null?void 0:p.call(i))!==!1&&r().hide()},d=()=>{l("showsubmenu",{elem:s})},u=()=>{l("hidesubmenu")};return t.$$set=p=>{"item"in p&&n(0,i=p.item),"selected"in p&&n(1,o=p.selected)},[i,o,s,r,l,a,c,d,u]}class M1 extends Gt{constructor(e){super(),Yt(this,e,QL,xL,Rt,{item:0,selected:1})}}const{window:eF}=va;function Op(t,e,n){const i=t.slice();return i[27]=e[n],i}function Mp(t,e,n){const i=t.slice();return i[27]=e[n],i}function Pp(t){var p;let e,n,i,o,r,s,l,a=ln(t[1].items),c=[];for(let _=0;_<a.length;_+=1)c[_]=Ip(Mp(t,a,_));const d=_=>H(c[_],1,1,(()=>{c[_]=null}));let u=((p=t[5])==null?void 0:p.submenu)&&Dp(t);return{c(){e=S("div"),n=S("ul");for(let _=0;_<c.length;_+=1)c[_].c();o=G(),u&&u.c(),h(n,"class","menu svelte-1306v9l"),ke(n,"left",t[2].left),ke(n,"top",t[2].top),ke(n,"width",t[2].width),ke(n,"height",t[2].height),h(e,"class","menu-controller svelte-1306v9l")},m(_,f){F(_,e,f),$(e,n);for(let m=0;m<c.length;m+=1)c[m]&&c[m].m(n,null);t[14](n),$(e,o),u&&u.m(e,null),t[16](e),r=!0,s||(l=l1(k1.call(null,e,t[12])),s=!0)},p(_,f){var m;if(f[0]&1570){a=ln(_[1].items);let g;for(g=0;g<a.length;g+=1){const v=Mp(_,a,g);c[g]?(c[g].p(v,f),I(c[g],1)):(c[g]=Ip(v),c[g].c(),I(c[g],1),c[g].m(n,null))}for(Dt(),g=a.length;g<c.length;g+=1)d(g);Vt()}f[0]&4&&ke(n,"left",_[2].left),f[0]&4&&ke(n,"top",_[2].top),f[0]&4&&ke(n,"width",_[2].width),f[0]&4&&ke(n,"height",_[2].height),(m=_[5])!=null&&m.submenu?u?(u.p(_,f),f[0]&32&&I(u,1)):(u=Dp(_),u.c(),I(u,1),u.m(e,null)):u&&(Dt(),H(u,1,1,(()=>{u=null})),Vt())},i(_){if(!r){for(let f=0;f<a.length;f+=1)I(c[f]);_&&_o((()=>{r&&(i||(i=Zi(n,fr,{y:10,duration:150},!0)),i.run(1))})),I(u),r=!0}},o(_){c=c.filter(Boolean);for(let f=0;f<c.length;f+=1)H(c[f]);_&&(i||(i=Zi(n,fr,{y:10,duration:150},!1)),i.run(0)),H(u),r=!1},d(_){_&&V(e),Bi(c,_),t[14](null),_&&i&&i.end(),u&&u.d(),t[16](null),s=!1,l()}}}function Ip(t){let e,n;function i(...o){return t[13](t[27],...o)}return e=new M1({props:{item:t[27],selected:t[27]===t[5]}}),e.$on("showsubmenu",i),e.$on("hidesubmenu",t[10]),{c(){Pe(e.$$.fragment)},m(o,r){Ee(e,o,r),n=!0},p(o,r){t=o;const s={};r[0]&2&&(s.item=t[27]),r[0]&34&&(s.selected=t[27]===t[5]),e.$set(s)},i(o){n||(I(e.$$.fragment,o),n=!0)},o(o){H(e.$$.fragment,o),n=!1},d(o){Ae(e,o)}}}function Dp(t){let e,n,i,o,r,s=ln(t[5].submenu),l=[];for(let c=0;c<s.length;c+=1)l[c]=Vp(Op(t,s,c));const a=c=>H(l[c],1,1,(()=>{l[c]=null}));return{c(){e=S("ul");for(let c=0;c<l.length;c+=1)l[c].c();h(e,"class","menu menu_submenu svelte-1306v9l"),ke(e,"left",t[6].left),ke(e,"top",t[6].top),ke(e,"width",t[6].width),ke(e,"height",t[6].height)},m(c,d){F(c,e,d);for(let u=0;u<l.length;u+=1)l[u]&&l[u].m(e,null);t[15](e),i=!0,o||(r=[te(e,"mouseenter",t[11]),te(e,"mouseleave",t[10])],o=!0)},p(c,d){if(d[0]&32){s=ln(c[5].submenu);let u;for(u=0;u<s.length;u+=1){const p=Op(c,s,u);l[u]?(l[u].p(p,d),I(l[u],1)):(l[u]=Vp(p),l[u].c(),I(l[u],1),l[u].m(e,null))}for(Dt(),u=s.length;u<l.length;u+=1)a(u);Vt()}d[0]&64&&ke(e,"left",c[6].left),d[0]&64&&ke(e,"top",c[6].top),d[0]&64&&ke(e,"width",c[6].width),d[0]&64&&ke(e,"height",c[6].height)},i(c){if(!i){for(let d=0;d<s.length;d+=1)I(l[d]);c&&_o((()=>{i&&(n||(n=Zi(e,fr,{y:10,duration:150},!0)),n.run(1))})),i=!0}},o(c){l=l.filter(Boolean);for(let d=0;d<l.length;d+=1)H(l[d]);c&&(n||(n=Zi(e,fr,{y:10,duration:150},!1)),n.run(0)),i=!1},d(c){c&&V(e),Bi(l,c),t[15](null),c&&n&&n.end(),o=!1,Rn(r)}}}function Vp(t){let e,n;return e=new M1({props:{item:t[27]}}),{c(){Pe(e.$$.fragment)},m(i,o){Ee(e,i,o),n=!0},p(i,o){const r={};o[0]&32&&(r.item=i[27]),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Ae(e,i)}}}function tF(t){let e,n,i,o,r=t[0]&&t[1]&&Pp(t);return{c(){r&&r.c(),e=Vn()},m(s,l){r&&r.m(s,l),F(s,e,l),n=!0,i||(o=te(eF,"click",t[8]),i=!0)},p(s,l){s[0]&&s[1]?r?(r.p(s,l),l[0]&3&&I(r,1)):(r=Pp(s),r.c(),I(r,1),r.m(e.parentNode,e)):r&&(Dt(),H(r,1,1,(()=>{r=null})),Vt())},i(s){n||(I(r),n=!0)},o(s){H(r),n=!1},d(s){s&&V(e),r&&r.d(s),i=!1,o()}}}function nF(t,e,n){const{setContextMenuApi:i}=yt(Cn);i({toggle:v,hide:b});let o="",r=null,s,l,a={},c,d,u=null,p={},_,f,m,g;function v(J){o?b():y(J)}function y(J){J.owner instanceof HTMLElement&&(n(0,o=J.name||"<unknown>"),n(1,r=J),s=J.owner.getBoundingClientRect(),l=null,n(2,a={}),n(6,p={}))}function b(){n(0,o=""),n(1,r=null),n(5,u=null),f=null}function w(J){const B=J.composedPath();!B.includes(d)&&!(r!=null&&r.owner&&B.includes(r.owner))&&b()}function k(J,B){g=J.getBoundingClientRect(),clearTimeout(_),n(5,u=B),f=null}function A(){clearTimeout(_),_=setTimeout((()=>{n(5,u=null),f=null}),300)}function j(){clearTimeout(_)}const T=[[j1,()=>{if(o){b();return}return!1}]];function E(J,B,z){var de,pe;const q=((de=r==null?void 0:r.offset)==null?void 0:de.x)??-8,N=((pe=r==null?void 0:r.offset)==null?void 0:pe.y)??8,Y=window.scrollY;let x="auto",ce="auto",ue,Z,Q=window.innerWidth,se=window.innerHeight,_e=J.left+q,Oe=J.right+q,W=J.width;_e<0&&(_e=0,W=Oe-_e),Oe>Q&&(Oe=Q,W=Oe-_e);let ge=B.width;ge>Q?(ge=Q,x=ge+"px"):ge<W&&W<=500&&(ge=W,x=ge+"px");const it=z==="bottom"?_e:_e+W;it+ge<Q?ue=it:Oe>ge?ue=Oe-ge:_e-(Q-ge)<ge-Oe?ue=Q-ge:ue=0;let ye=J.bottom+Y+N;ye>se+Y&&(ye=se+Y);let rt=B.height;rt>se&&(rt=se,ce=se+"px"),z==="bottom"?ye+rt<se+Y?Z=ye:J.top+Y+N>rt?Z=J.top+Y+N-rt:Z=0:z==="right"?J.top+rt<se+Y?Z=J.top:se>rt?Z=se-rt:Z=0:Z=0;const U=d.getBoundingClientRect();return ue-=U.left,Z-=U.top,{top:Z+"px",left:ue+"px",width:x,height:ce}}gs((()=>{!l&&c&&d&&(l=c.getBoundingClientRect(),n(2,a=E(s,l,"bottom"))),!f&&m&&d&&(f=m.getBoundingClientRect(),n(6,p=E(g,f,"right")))}));const O=(J,B)=>k(B.detail.elem,J);function M(J){pt[J?"unshift":"push"]((()=>{c=J,n(3,c)}))}function D(J){pt[J?"unshift":"push"]((()=>{m=J,n(7,m)}))}function R(J){pt[J?"unshift":"push"]((()=>{d=J,n(4,d)}))}return[o,r,a,c,d,u,p,m,w,k,A,j,T,O,M,D,R]}class iF extends Gt{constructor(e){super(),Yt(this,e,nF,tF,Rt,{},null,[-1,-1])}}function oF(t,e){let n=0,i,o=!1;return function(){const r=Date.now();return!n||Math.abs(r-n)>e?(n=r,i=t.apply(this,arguments)):(o||(o=!0,setTimeout((()=>{o=!1,i=t.apply(this,arguments)}),e)),i)}}const{window:wd}=va;function Lp(t,e,n){const i=t.slice();return i[31]=e[n],i}function Fp(t){let e,n,i=`url(${po(t[13])})`;return{c(){e=S("div"),n=S("div"),h(n,"class","select__icon svelte-1fdlshr"),ke(n,"background-image",i),h(e,"class","select__icon-wrapper svelte-1fdlshr")},m(o,r){F(o,e,r),$(e,n)},p(o,r){r[0]&8192&&i!==(i=`url(${po(o[13])})`)&&ke(n,"background-image",i)},d(o){o&&V(e)}}}function Np(t){let e,n,i,o,r,s=ln(t[1]),l=[];for(let a=0;a<s.length;a+=1)l[a]=Rp(Lp(t,s,a));return{c(){e=S("div"),n=S("ul");for(let a=0;a<l.length;a+=1)l[a].c();h(n,"class","select__list svelte-1fdlshr"),h(e,"class",i="select__popup select__popup_direction_"+t[8]+" svelte-1fdlshr"),h(e,"id","popup_"+t[15])},m(a,c){F(a,e,c),$(e,n);for(let d=0;d<l.length;d+=1)l[d]&&l[d].m(n,null);t[25](e),r=!0},p(a,c){if(c[0]&524291){s=ln(a[1]);let d;for(d=0;d<s.length;d+=1){const u=Lp(a,s,d);l[d]?l[d].p(u,c):(l[d]=Rp(u),l[d].c(),l[d].m(n,null))}for(;d<l.length;d+=1)l[d].d(1);l.length=s.length}(!r||c[0]&256&&i!==(i="select__popup select__popup_direction_"+a[8]+" svelte-1fdlshr"))&&h(e,"class",i)},i(a){r||(a&&_o((()=>{r&&(o||(o=Zi(e,fr,{duration:200,y:10},!0)),o.run(1))})),r=!0)},o(a){a&&(o||(o=Zi(e,fr,{duration:200,y:10},!1)),o.run(0)),r=!1},d(a){a&&V(e),Bi(l,a),t[25](null),a&&o&&o.end()}}}function qp(t){let e,n,i=`url(${po(t[31].icon)})`;return{c(){e=S("div"),n=S("div"),h(n,"class","select__icon svelte-1fdlshr"),ke(n,"background-image",i),h(e,"class","select__icon-wrapper svelte-1fdlshr")},m(o,r){F(o,e,r),$(e,n)},p(o,r){r[0]&2&&i!==(i=`url(${po(o[31].icon)})`)&&ke(n,"background-image",i)},d(o){o&&V(e)}}}function Rp(t){let e,n,i=(t[31].text??t[31].value)+"",o,r,s,l,a=t[31].icon&&qp(t);function c(){return t[24](t[31])}return{c(){e=S("li"),a&&a.c(),n=G(),o=xe(i),r=G(),h(e,"class","select__item svelte-1fdlshr"),ne(e,"select__item_selected",t[31].value===t[0]),ne(e,"select__item_icon",t[31].icon)},m(d,u){F(d,e,u),a&&a.m(e,null),$(e,n),$(e,o),$(e,r),s||(l=te(e,"click",zi(c)),s=!0)},p(d,u){t=d,t[31].icon?a?a.p(t,u):(a=qp(t),a.c(),a.m(e,n)):a&&(a.d(1),a=null),u[0]&2&&i!==(i=(t[31].text??t[31].value)+"")&&at(o,i),u[0]&3&&ne(e,"select__item_selected",t[31].value===t[0]),u[0]&2&&ne(e,"select__item_icon",t[31].icon)},d(d){d&&V(e),a&&a.d(),s=!1,l()}}}function rF(t){let e,n,i,o,r,s,l,a,c,d,u,p=t[13]&&Fp(t),_=t[7]&&Np(t);return{c(){e=S("div"),n=S("div"),p&&p.c(),i=G(),o=xe(t[14]),s=G(),l=S("div"),a=G(),_&&_.c(),h(n,"class","select__select svelte-1fdlshr"),h(n,"tabindex","0"),h(n,"aria-disabled",t[4]),h(n,"aria-expanded",t[7]),h(n,"aria-autocomplete","list"),h(n,"aria-controls","popup_"+t[15]),h(n,"aria-label",t[6]),h(n,"data-custom-tooltip",r=t[7]?void 0:t[6]),h(n,"role","combobox"),ne(n,"select__select_icon",t[13]),h(l,"class","select__arrow svelte-1fdlshr"),h(e,"class",c="select select_theme_"+t[2]+" select_size_"+t[3]+" "+t[5]+" svelte-1fdlshr"),ne(e,"select_disabled",t[4]),ne(e,"select_error",t[12])},m(f,m){F(f,e,m),$(e,n),p&&p.m(n,null),$(n,i),$(n,o),t[23](n),$(e,s),$(e,l),$(e,a),_&&_.m(e,null),t[26](e),d||(u=[te(wd,"keydown",(function(){Yo(t[7]?t[17]:void 0)&&(t[7]?t[17]:void 0).apply(this,arguments)})),te(wd,"click",(function(){Yo(t[7]?t[18]:void 0)&&(t[7]?t[18]:void 0).apply(this,arguments)})),te(wd,"resize",(function(){Yo(t[7]?t[21]:void 0)&&(t[7]?t[21]:void 0).apply(this,arguments)})),te(n,"click",zi(t[20])),te(n,"keydown",t[16])],d=!0)},p(f,m){t=f,t[13]?p?p.p(t,m):(p=Fp(t),p.c(),p.m(n,i)):p&&(p.d(1),p=null),m[0]&16384&&at(o,t[14]),m[0]&16&&h(n,"aria-disabled",t[4]),m[0]&128&&h(n,"aria-expanded",t[7]),m[0]&64&&h(n,"aria-label",t[6]),m[0]&192&&r!==(r=t[7]?void 0:t[6])&&h(n,"data-custom-tooltip",r),m[0]&8192&&ne(n,"select__select_icon",t[13]),t[7]?_?(_.p(t,m),m[0]&128&&I(_,1)):(_=Np(t),_.c(),I(_,1),_.m(e,null)):_&&(Dt(),H(_,1,1,(()=>{_=null})),Vt()),m[0]&44&&c!==(c="select select_theme_"+t[2]+" select_size_"+t[3]+" "+t[5]+" svelte-1fdlshr")&&h(e,"class",c),m[0]&60&&ne(e,"select_disabled",t[4]),m[0]&4140&&ne(e,"select_error",t[12])},i(f){I(_)},o(f){H(_)},d(f){f&&V(e),p&&p.d(),t[23](null),_&&_.d(),t[26](null),d=!1,Rn(u)}}}const sF=24;function lF(t,e,n){let i,o,r,{items:s}=e,{value:l}=e,{theme:a}=e,{size:c="small"}=e,{disabled:d=!1}=e,{mix:u=""}=e,{title:p=""}=e,{required:_=!1}=e;const f="select"+Math.random(),m=_i();let g=!1,v="down",y,b,w;function k(N){let Y=s.findIndex((x=>x.value===l));Y!==-1&&(Y+=N,Y>=s.length&&(Y=0),Y<0&&(Y=s.length-1),E(s[Y].value))}function A(N){if(!d){if(A1.isPressed(N))k(-1);else if(O1.isPressed(N))k(1);else if(GL.isPressed(N))E(s[0].value);else if(XL.isPressed(N))E(s[s.length-1].value);else if(Wc.isPressed(N))n(7,g=!g);else return;N.preventDefault()}}function j(N){j1.isPressed(N)&&(n(7,g=!1),N.preventDefault())}function T(N){N.composedPath().includes(y)||n(7,g=!1)}function E(N){n(0,l=N),Promise.resolve().then((()=>m("change",N)))}function O(N){N!==l&&E(N),n(7,g=!1),ur().then((()=>{b==null||b.focus()}))}function M(){d||n(7,g=!g)}const D=()=>{if(!g)return;const N=y.getBoundingClientRect().bottom,Y=w.offsetHeight;N+Y+sF>window.innerHeight?n(8,v="up"):n(8,v="down")},R=oF(D,100);gs((()=>{D()}));function J(N){pt[N?"unshift":"push"]((()=>{b=N,n(10,b)}))}const B=N=>O(N.value);function z(N){pt[N?"unshift":"push"]((()=>{w=N,n(11,w)}))}function q(N){pt[N?"unshift":"push"]((()=>{y=N,n(9,y)}))}return t.$$set=N=>{"items"in N&&n(1,s=N.items),"value"in N&&n(0,l=N.value),"theme"in N&&n(2,a=N.theme),"size"in N&&n(3,c=N.size),"disabled"in N&&n(4,d=N.disabled),"mix"in N&&n(5,u=N.mix),"title"in N&&n(6,p=N.title),"required"in N&&n(22,_=N.required)},t.$$.update=()=>{var N,Y,x;t.$$.dirty[0]&3&&n(14,i=((N=s.find((ce=>ce.value===l)))==null?void 0:N.text)||l||""),t.$$.dirty[0]&3&&n(13,o=(Y=s.find((ce=>ce.value===l)))==null?void 0:Y.icon),t.$$.dirty[0]&4194307&&n(12,r=_&&!((x=s.find((ce=>ce.value===l)))!=null&&x.value))},[l,s,a,c,d,u,p,g,v,y,b,w,r,o,i,f,A,j,T,O,M,R,_,J,B,z,q]}class Hr extends Gt{constructor(e){super(),Yt(this,e,lF,rF,Rt,{items:1,value:0,theme:2,size:3,disabled:4,mix:5,title:6,required:22},null,[-1,-1])}}var aF=Object.defineProperty,cF=(t,e,n)=>e in t?aF(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Xi=(t,e,n)=>cF(t,typeof e!="symbol"?e+"":e,n)
|
|
2
|
-
/*!
|
|
3
|
-
DivKit v31.2.0
|
|
4
|
-
https://github.com/divkit/divkit
|
|
5
|
-
@licence Apache-2.0
|
|
6
|
-
*/;function Au(t){return BigInt(t)}const ea=Au("9223372036854775807"),ta=Au("-9223372036854775808");function bo(t){const e=Au(t);if(e>ea||e<ta)throw new Error("Integer overflow.");return e}const Os=bo(0);function P1(t){let e=t;return e<0&&(e=-e),e}function I1(t){let e=0;return t>0?e=1:t<0&&(e=-1),bo(e)}function dF(t,e){return e&&e[3]&&e[7]?{type:"ConditionalExpression",test:t,consequent:e[3],alternate:e[7]}:t}function uF(t,e){return e&&e[3]?{type:"TryExpression",test:t,alternate:e[3]}:t}function Ta(t,e){return e.length?e.reduce(((n,i)=>({type:"BinaryExpression",operator:i[1],left:n,right:i[3]})),t):t}function Bp(t,e){return e.length?e.reduce(((n,i)=>({type:"LogicalExpression",operator:i[1],left:n,right:i[3]})),t):t}function pF(t,e){return e.length?e.reduce(((n,i)=>{if(!i[5])throw new Error("Method expected after .");return{type:"MethodExpression",object:n,method:i[3],arguments:i[5][2]}}),t):t}function _F(t){return t==="true"||t==="false"?{type:"BooleanLiteral",value:t==="true"}:{type:"Variable",id:{type:"Identifier",name:t}}}function Hp(t){if(t.every((n=>typeof n=="string")))return{type:"StringLiteral",value:t.join("")};let e=t.reduce(((n,i)=>(typeof i=="string"&&typeof n[n.length-1]=="string"?n[n.length-1]+=i:n.push(i),n)),[]).reduce(((n,i)=>(typeof i=="string"?n.quasis.push({type:"StringLiteral",value:i}):(n.quasis.length===n.expressions.length&&n.quasis.push({type:"StringLiteral",value:""}),n.expressions.push(i)),n)),{type:"TemplateLiteral",quasis:[],expressions:[]});return e.quasis.length===e.expressions.length&&e.quasis.push({type:"StringLiteral",value:""}),e}function fF(t){try{return bo(t)}catch{throw new Error(`Value ${t} can't be converted to Integer type.`)}}function Jp(t){if(t==="'"||t==="\\")return t;throw new Error("Incorrect string escape")}function mF(t,e){function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n}function $l(t,e,n,i){var o=Error.call(this,t);return Object.setPrototypeOf&&Object.setPrototypeOf(o,$l.prototype),o.expected=e,o.found=n,o.location=i,o.name="SyntaxError",o}mF($l,Error);function $d(t,e,n){return n=n||" ",t.length>e?t:(e-=t.length,n+=n.repeat(e),t+n.slice(0,e))}$l.prototype.format=function(t){var e="Error: "+this.message;if(this.location){var n=null,i;for(i=0;i<t.length;i++)if(t[i].source===this.location.source){n=t[i].text.split(/\r\n|\n|\r/g);break}var o=this.location.start,r=this.location.source&&typeof this.location.source.offset=="function"?this.location.source.offset(o):o,s=this.location.source+":"+r.line+":"+r.column;if(n){var l=this.location.end,a=$d("",r.line.toString().length," "),c=n[o.line-1],d=o.line===l.line?l.column:c.length+1,u=d-o.column||1;e+=`\n --\x3e `+s+`\n`+a+` |\n`+r.line+" | "+c+`\n`+a+" | "+$d("",o.column-1," ")+$d("",u,"^")}else e+=`\n at `+s}return e};$l.buildMessage=function(t,e){var n={literal:function(c){return'"'+o(c.text)+'"'},class:function(c){var d=c.parts.map((function(u){return Array.isArray(u)?r(u[0])+"-"+r(u[1]):r(u)}));return"["+(c.inverted?"^":"")+d.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(c){return c.description}};function i(c){return c.charCodeAt(0).toString(16).toUpperCase()}function o(c){return c.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(d){return"\\x0"+i(d)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(d){return"\\x"+i(d)}))}function r(c){return c.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(d){return"\\x0"+i(d)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(d){return"\\x"+i(d)}))}function s(c){return n[c.type](c)}function l(c){var d=c.map(s),u,p;if(d.sort(),d.length>0){for(u=1,p=1;u<d.length;u++)d[u-1]!==d[u]&&(d[p]=d[u],p++);d.length=p}switch(d.length){case 1:return d[0];case 2:return d[0]+" or "+d[1];default:return d.slice(0,-1).join(", ")+", or "+d[d.length-1]}}function a(c){return c?'"'+o(c)+'"':"end of input"}return"Expected "+l(t)+" but "+a(e)+" found."};function ba(t,e){e=e!==void 0?e:{};var n={},i=e.grammarSource,o={start:Me,JsonStringContents:Le},r=Me,s="@{",l="}",a="@{}",c="\\",d="?",u=":",p="!:",_="||",f="&&",m="==",g="!=",v=">=",y=">",b="<=",w="<",k="+",A="-",j="/",T="*",E="%",O="!",M=".",D="(",R=")",J=",",B="'",z="e",q="E",N=/^[^}]/,Y=/^[^'}]/,x=/^[0-9]/,ce=/^[a-zA-Z_]/,ue=/^[a-zA-Z_0-9]/,Z=/^[ \t\r\n]/,Q=ze("@{",!1),se=ze("}",!1),_e=ze("@{}",!1),Oe=ze("\\",!1),W=X(),ge=P(["}"],!0,!1),it=ze("?",!1),ye=ze(":",!1),rt=ze("!:",!1),U=ze("||",!1),de=ze("&&",!1),pe=ze("==",!1),et=ze("!=",!1),we=ze(">=",!1),Ie=ze(">",!1),Xe=ze("<=",!1),vt=ze("<",!1),Qe=ze("+",!1),fe=ze("-",!1),me=ze("/",!1),ve=ze("*",!1),Ge=ze("%",!1),gt=ze("!",!1),ee=ze(".",!1),Je=ze("(",!1),We=ze(")",!1),jt=ze(",",!1),zt=$e("string"),an=ze("'",!1),sn=P(["'","}"],!0,!1),It=$e("integer"),cn=P([["0","9"]],!1,!1),pn=$e("number"),Sn=ze("e",!1),Fn=ze("E",!1),Re=P([["a","z"],["A","Z"],"_"],!1,!1),lt=P([["a","z"],["A","Z"],"_",["0","9"]],!1,!1),li=$e("whitespace"),wt=P([" ","\t","\r",`\n`],!1,!1),zn=function(L){return L},Jt=function(L){return Hp(L)},gn=function(L){return L},Lt=function(){return""},$n=function(){return oe()},hn=function(){throw new Error("Error tokenizing '"+t+"'.")},Ut=function(){throw new Error("Error tokenizing '"+t+"'.")},Kt=function(L){return L},Jn=function(L){return Jp(L)},Kn=function(){throw new Error("Error tokenizing '"+t+"'.")},fi=function(L,ie){return dF(L,ie)},Ke=function(L,ie){return uF(L,ie)},bt=function(L,ie){return Bp(L,ie)},ct=function(L,ie){return Bp(L,ie)},ht=function(L,ie){return Ta(L,ie)},qt=function(L,ie){return Ta(L,ie)},St=function(L,ie){return Ta(L,ie)},Ot=function(L,ie){return Ta(L,ie)},nn=function(L){return L},ei=function(L){return L},Ft=function(L,ie){return{type:"UnaryExpression",operator:L,argument:ie}},xt=function(){throw new Error("Incorrect unary operator")},dt=function(L,ie){return pF(L,ie)},Ye=function(L,ie){return{type:"CallExpression",callee:L,arguments:ie}},bi=function(L,ie){return[L,...ie]},hi=function(L){return L},Bn=function(L){return L},eo=function(L){return Hp(L)},Tt=function(L){return L},Wn=function(){return""},gi=function(){return oe()},rn=function(){throw new Error("Error tokenizing '"+t+"'.")},Nn=function(){throw new Error("Error tokenizing '"+t+"'.")},Bt=function(L){return L},vn=function(L){return Jp(L)},un=function(){throw new Error("Error tokenizing '"+t+"'.")},En=function(){return{type:"IntegerLiteral",value:fF(oe())}},Yn=function(){return{type:"NumberLiteral",value:parseFloat(oe())}},Ce=function(){return{type:"NumberLiteral",value:parseFloat(oe())}},bn=function(){const L=oe();if(/\.\./.test(L)||/\.$/.test(L))throw new Error("Unexpected token: .");return _F(L)},ft=function(){return{type:"Identifier",name:oe()}},C=0,Mt=0,An=[{line:1,column:1}],Ni=0,mi=[],Ne=0,Ii;if("startRule"in e){if(!(e.startRule in o))throw new Error(`Can't start parsing from rule "`+e.startRule+'".');r=o[e.startRule]}function oe(){return t.substring(Mt,C)}function ze(L,ie){return{type:"literal",text:L,ignoreCase:ie}}function P(L,ie,Se){return{type:"class",parts:L,inverted:ie,ignoreCase:Se}}function X(){return{type:"any"}}function ae(){return{type:"end"}}function $e(L){return{type:"other",description:L}}function be(L){var ie=An[L],Se;if(ie)return ie;for(Se=L-1;!An[Se];)Se--;for(ie=An[Se],ie={line:ie.line,column:ie.column};Se<L;)t.charCodeAt(Se)===10?(ie.line++,ie.column=1):ie.column++,Se++;return An[L]=ie,ie}function Be(L,ie,Se){var le=be(L),qe=be(ie),Fe={source:i,start:{offset:L,line:le.line,column:le.column},end:{offset:ie,line:qe.line,column:qe.column}};return Fe}function re(L){C<Ni||(C>Ni&&(Ni=C,mi=[]),mi.push(L))}function je(L,ie,Se){return new $l($l.buildMessage(L,ie),L,ie,Se)}function Me(){var L,ie;return L=C,Wt(),ie=Ze(),ie!==n?(Wt(),Mt=L,L=zn(ie)):(C=L,L=n),L}function Le(){var L,ie,Se;for(L=C,ie=[],Se=ut();Se!==n;)ie.push(Se),Se=ut();return Mt=L,ie=Jt(ie),L=ie,L}function ut(){var L,ie,Se,le,qe;if(L=C,t.substr(C,2)===s?(ie=s,C+=2):(ie=n,Ne===0&&re(Q)),ie!==n?(Se=Wt(),le=Ze(),le!==n?(Wt(),t.charCodeAt(C)===125?(qe=l,C++):(qe=n,Ne===0&&re(se)),qe!==n?(Mt=L,L=gn(le)):(C=L,L=n)):(C=L,L=n)):(C=L,L=n),L===n&&(L=C,t.substr(C,3)===a?(ie=a,C+=3):(ie=n,Ne===0&&re(_e)),ie!==n&&(Mt=L,ie=Lt()),L=ie,L===n&&(L=C,ie=C,Ne++,t.charCodeAt(C)===92?(Se=c,C++):(Se=n,Ne===0&&re(Oe)),Se===n&&(t.substr(C,2)===s?(Se=s,C+=2):(Se=n,Ne===0&&re(Q))),Ne--,Se===n?ie=void 0:(C=ie,ie=n),ie!==n?(t.length>C?(Se=t.charAt(C),C++):(Se=n,Ne===0&&re(W)),Se!==n?(Mt=L,L=$n()):(C=L,L=n)):(C=L,L=n),L===n))){if(L=C,t.substr(C,2)===s?(ie=s,C+=2):(ie=n,Ne===0&&re(Q)),ie!==n){if(Se=[],N.test(t.charAt(C))?(le=t.charAt(C),C++):(le=n,Ne===0&&re(ge)),le!==n)for(;le!==n;)Se.push(le),N.test(t.charAt(C))?(le=t.charAt(C),C++):(le=n,Ne===0&&re(ge));else Se=n;Se!==n?(t.charCodeAt(C)===125?(le=l,C++):(le=n,Ne===0&&re(se)),le!==n?(Mt=L,L=hn()):(C=L,L=n)):(C=L,L=n)}else C=L,L=n;L===n&&(L=C,t.substr(C,2)===s?(ie=s,C+=2):(ie=n,Ne===0&&re(Q)),ie!==n&&(Mt=L,ie=Ut()),L=ie,L===n&&(L=C,t.charCodeAt(C)===92?(ie=c,C++):(ie=n,Ne===0&&re(Oe)),ie!==n?(t.substr(C,2)===s?(Se=s,C+=2):(Se=n,Ne===0&&re(Q)),Se!==n?(Mt=L,L=Kt(Se)):(C=L,L=n)):(C=L,L=n),L===n&&(L=C,t.charCodeAt(C)===92?(ie=c,C++):(ie=n,Ne===0&&re(Oe)),ie!==n?(t.length>C?(Se=t.charAt(C),C++):(Se=n,Ne===0&&re(W)),Se!==n?(Mt=L,L=Jn(Se)):(C=L,L=n)):(C=L,L=n),L===n&&(L=C,t.charCodeAt(C)===92?(ie=c,C++):(ie=n,Ne===0&&re(Oe)),ie!==n&&(Mt=L,ie=Kn()),L=ie))))}return L}function Ze(){var L,ie,Se,le,qe,Fe,Et,Nt,On,yn,wi;return L=C,ie=Ct(),ie!==n?(Se=C,le=Wt(),t.charCodeAt(C)===63?(qe=d,C++):(qe=n,Ne===0&&re(it)),qe!==n?(Fe=Wt(),Et=Ze(),Et!==n?(Nt=Wt(),t.charCodeAt(C)===58?(On=u,C++):(On=n,Ne===0&&re(ye)),On!==n?(yn=Wt(),wi=Ze(),wi!==n?(le=[le,qe,Fe,Et,Nt,On,yn,wi],Se=le):(C=Se,Se=n)):(C=Se,Se=n)):(C=Se,Se=n)):(C=Se,Se=n),Se===n&&(Se=null),Mt=L,L=fi(ie,Se)):(C=L,L=n),L}function Ct(){var L,ie,Se,le,qe,Fe,Et;return L=C,ie=fn(),ie!==n?(Se=C,le=Wt(),t.substr(C,2)===p?(qe=p,C+=2):(qe=n,Ne===0&&re(rt)),qe!==n?(Fe=Wt(),Et=Ze(),Et!==n?(le=[le,qe,Fe,Et],Se=le):(C=Se,Se=n)):(C=Se,Se=n),Se===n&&(Se=null),Mt=L,L=Ke(ie,Se)):(C=L,L=n),L}function fn(){var L,ie,Se,le,qe,Fe,Et,Nt;if(L=C,ie=Ht(),ie!==n){for(Se=[],le=C,qe=Wt(),t.substr(C,2)===_?(Fe=_,C+=2):(Fe=n,Ne===0&&re(U)),Fe!==n?(Et=Wt(),Nt=Ht(),Nt!==n?(qe=[qe,Fe,Et,Nt],le=qe):(C=le,le=n)):(C=le,le=n);le!==n;)Se.push(le),le=C,qe=Wt(),t.substr(C,2)===_?(Fe=_,C+=2):(Fe=n,Ne===0&&re(U)),Fe!==n?(Et=Wt(),Nt=Ht(),Nt!==n?(qe=[qe,Fe,Et,Nt],le=qe):(C=le,le=n)):(C=le,le=n);Mt=L,L=bt(ie,Se)}else C=L,L=n;return L}function Ht(){var L,ie,Se,le,qe,Fe,Et,Nt;if(L=C,ie=Mn(),ie!==n){for(Se=[],le=C,qe=Wt(),t.substr(C,2)===f?(Fe=f,C+=2):(Fe=n,Ne===0&&re(de)),Fe!==n?(Et=Wt(),Nt=Mn(),Nt!==n?(qe=[qe,Fe,Et,Nt],le=qe):(C=le,le=n)):(C=le,le=n);le!==n;)Se.push(le),le=C,qe=Wt(),t.substr(C,2)===f?(Fe=f,C+=2):(Fe=n,Ne===0&&re(de)),Fe!==n?(Et=Wt(),Nt=Mn(),Nt!==n?(qe=[qe,Fe,Et,Nt],le=qe):(C=le,le=n)):(C=le,le=n);Mt=L,L=ct(ie,Se)}else C=L,L=n;return L}function Mn(){var L,ie,Se,le,qe,Fe,Et,Nt;if(L=C,ie=Qt(),ie!==n){for(Se=[],le=C,qe=Wt(),t.substr(C,2)===m?(Fe=m,C+=2):(Fe=n,Ne===0&&re(pe)),Fe===n&&(t.substr(C,2)===g?(Fe=g,C+=2):(Fe=n,Ne===0&&re(et))),Fe!==n?(Et=Wt(),Nt=Qt(),Nt!==n?(qe=[qe,Fe,Et,Nt],le=qe):(C=le,le=n)):(C=le,le=n);le!==n;)Se.push(le),le=C,qe=Wt(),t.substr(C,2)===m?(Fe=m,C+=2):(Fe=n,Ne===0&&re(pe)),Fe===n&&(t.substr(C,2)===g?(Fe=g,C+=2):(Fe=n,Ne===0&&re(et))),Fe!==n?(Et=Wt(),Nt=Qt(),Nt!==n?(qe=[qe,Fe,Et,Nt],le=qe):(C=le,le=n)):(C=le,le=n);Mt=L,L=ht(ie,Se)}else C=L,L=n;return L}function Qt(){var L,ie,Se,le,qe,Fe,Et,Nt;if(L=C,ie=Pn(),ie!==n){for(Se=[],le=C,qe=Wt(),t.substr(C,2)===v?(Fe=v,C+=2):(Fe=n,Ne===0&&re(we)),Fe===n&&(t.charCodeAt(C)===62?(Fe=y,C++):(Fe=n,Ne===0&&re(Ie)),Fe===n&&(t.substr(C,2)===b?(Fe=b,C+=2):(Fe=n,Ne===0&&re(Xe)),Fe===n&&(t.charCodeAt(C)===60?(Fe=w,C++):(Fe=n,Ne===0&&re(vt))))),Fe!==n?(Et=Wt(),Nt=Pn(),Nt!==n?(qe=[qe,Fe,Et,Nt],le=qe):(C=le,le=n)):(C=le,le=n);le!==n;)Se.push(le),le=C,qe=Wt(),t.substr(C,2)===v?(Fe=v,C+=2):(Fe=n,Ne===0&&re(we)),Fe===n&&(t.charCodeAt(C)===62?(Fe=y,C++):(Fe=n,Ne===0&&re(Ie)),Fe===n&&(t.substr(C,2)===b?(Fe=b,C+=2):(Fe=n,Ne===0&&re(Xe)),Fe===n&&(t.charCodeAt(C)===60?(Fe=w,C++):(Fe=n,Ne===0&&re(vt))))),Fe!==n?(Et=Wt(),Nt=Pn(),Nt!==n?(qe=[qe,Fe,Et,Nt],le=qe):(C=le,le=n)):(C=le,le=n);Mt=L,L=qt(ie,Se)}else C=L,L=n;return L}function Pn(){var L,ie,Se,le,qe,Fe,Et,Nt;if(L=C,ie=_n(),ie!==n){for(Se=[],le=C,qe=Wt(),t.charCodeAt(C)===43?(Fe=k,C++):(Fe=n,Ne===0&&re(Qe)),Fe===n&&(t.charCodeAt(C)===45?(Fe=A,C++):(Fe=n,Ne===0&&re(fe))),Fe!==n?(Et=Wt(),Nt=_n(),Nt!==n?(qe=[qe,Fe,Et,Nt],le=qe):(C=le,le=n)):(C=le,le=n);le!==n;)Se.push(le),le=C,qe=Wt(),t.charCodeAt(C)===43?(Fe=k,C++):(Fe=n,Ne===0&&re(Qe)),Fe===n&&(t.charCodeAt(C)===45?(Fe=A,C++):(Fe=n,Ne===0&&re(fe))),Fe!==n?(Et=Wt(),Nt=_n(),Nt!==n?(qe=[qe,Fe,Et,Nt],le=qe):(C=le,le=n)):(C=le,le=n);Mt=L,L=St(ie,Se)}else C=L,L=n;return L}function _n(){var L,ie,Se,le,qe,Fe,Et,Nt;if(L=C,ie=Pt(),ie!==n){for(Se=[],le=C,qe=Wt(),t.charCodeAt(C)===47?(Fe=j,C++):(Fe=n,Ne===0&&re(me)),Fe===n&&(t.charCodeAt(C)===42?(Fe=T,C++):(Fe=n,Ne===0&&re(ve)),Fe===n&&(t.charCodeAt(C)===37?(Fe=E,C++):(Fe=n,Ne===0&&re(Ge)))),Fe!==n?(Et=Wt(),Nt=Pt(),Nt!==n?(qe=[qe,Fe,Et,Nt],le=qe):(C=le,le=n)):(C=le,le=n);le!==n;)Se.push(le),le=C,qe=Wt(),t.charCodeAt(C)===47?(Fe=j,C++):(Fe=n,Ne===0&&re(me)),Fe===n&&(t.charCodeAt(C)===42?(Fe=T,C++):(Fe=n,Ne===0&&re(ve)),Fe===n&&(t.charCodeAt(C)===37?(Fe=E,C++):(Fe=n,Ne===0&&re(Ge)))),Fe!==n?(Et=Wt(),Nt=Pt(),Nt!==n?(qe=[qe,Fe,Et,Nt],le=qe):(C=le,le=n)):(C=le,le=n);Mt=L,L=Ot(ie,Se)}else C=L,L=n;return L}function Pt(){var L,ie,Se,le;return L=C,ie=C,Ne++,t.charCodeAt(C)===45?(Se=A,C++):(Se=n,Ne===0&&re(fe)),Ne--,Se!==n?(C=ie,ie=void 0):ie=n,ie!==n?(Se=Ei(),Se!==n?(Mt=L,L=nn(Se)):(C=L,L=n)):(C=L,L=n),L===n&&(L=C,ie=C,Ne++,t.charCodeAt(C)===45?(Se=A,C++):(Se=n,Ne===0&&re(fe)),Ne--,Se!==n?(C=ie,ie=void 0):ie=n,ie!==n?(Se=Yi(),Se!==n?(Mt=L,L=ei(Se)):(C=L,L=n)):(C=L,L=n),L===n&&(L=C,t.charCodeAt(C)===33?(ie=O,C++):(ie=n,Ne===0&&re(gt)),ie===n&&(t.charCodeAt(C)===43?(ie=k,C++):(ie=n,Ne===0&&re(Qe)),ie===n&&(t.charCodeAt(C)===45?(ie=A,C++):(ie=n,Ne===0&&re(fe)))),ie!==n?(Se=Wt(),le=jn(),le===n&&(le=In()),le!==n?(Mt=L,L=Ft(ie,le)):(C=L,L=n)):(C=L,L=n),L===n&&(L=In()))),L}function jn(){var L,ie;return L=C,t.charCodeAt(C)===43?(ie=k,C++):(ie=n,Ne===0&&re(Qe)),ie===n&&(t.charCodeAt(C)===45?(ie=A,C++):(ie=n,Ne===0&&re(fe))),ie!==n&&(Mt=L,ie=xt()),L=ie,L}function In(){var L,ie,Se,le,qe,Fe,Et,Nt,On,yn,wi,Ao,_t,ti,$i;if(L=C,ie=Dn(),ie!==n){for(Se=[],le=C,qe=Wt(),t.charCodeAt(C)===46?(Fe=M,C++):(Fe=n,Ne===0&&re(ee)),Fe!==n?(Et=Wt(),Nt=vi(),Nt!==n?(On=Wt(),yn=C,t.charCodeAt(C)===40?(wi=D,C++):(wi=n,Ne===0&&re(Je)),wi!==n?(Ao=Wt(),_t=Un(),_t!==n?(ti=Wt(),t.charCodeAt(C)===41?($i=R,C++):($i=n,Ne===0&&re(We)),$i!==n?(wi=[wi,Ao,_t,ti,$i],yn=wi):(C=yn,yn=n)):(C=yn,yn=n)):(C=yn,yn=n),yn===n&&(yn=null),qe=[qe,Fe,Et,Nt,On,yn],le=qe):(C=le,le=n)):(C=le,le=n);le!==n;)Se.push(le),le=C,qe=Wt(),t.charCodeAt(C)===46?(Fe=M,C++):(Fe=n,Ne===0&&re(ee)),Fe!==n?(Et=Wt(),Nt=vi(),Nt!==n?(On=Wt(),yn=C,t.charCodeAt(C)===40?(wi=D,C++):(wi=n,Ne===0&&re(Je)),wi!==n?(Ao=Wt(),_t=Un(),_t!==n?(ti=Wt(),t.charCodeAt(C)===41?($i=R,C++):($i=n,Ne===0&&re(We)),$i!==n?(wi=[wi,Ao,_t,ti,$i],yn=wi):(C=yn,yn=n)):(C=yn,yn=n)):(C=yn,yn=n),yn===n&&(yn=null),qe=[qe,Fe,Et,Nt,On,yn],le=qe):(C=le,le=n)):(C=le,le=n);Mt=L,L=dt(ie,Se)}else C=L,L=n;return L}function Dn(){var L,ie,Se,le,qe;return L=C,ie=vi(),ie!==n?(Wt(),t.charCodeAt(C)===40?(Se=D,C++):(Se=n,Ne===0&&re(Je)),Se!==n?(Wt(),le=Un(),le!==n?(Wt(),t.charCodeAt(C)===41?(qe=R,C++):(qe=n,Ne===0&&re(We)),qe!==n?(Mt=L,L=Ye(ie,le)):(C=L,L=n)):(C=L,L=n)):(C=L,L=n)):(C=L,L=n),L===n&&(L=ri()),L}function Un(){var L,ie,Se,le,qe,Fe;if(L=C,ie=Ze(),ie!==n){for(Se=[],le=C,Wt(),t.charCodeAt(C)===44?(qe=J,C++):(qe=n,Ne===0&&re(jt)),qe!==n?(Wt(),Fe=Ze(),Fe!==n?le=Fe:(C=le,le=n)):(C=le,le=n);le!==n;)Se.push(le),le=C,Wt(),t.charCodeAt(C)===44?(qe=J,C++):(qe=n,Ne===0&&re(jt)),qe!==n?(Wt(),Fe=Ze(),Fe!==n?le=Fe:(C=le,le=n)):(C=le,le=n);Mt=L,L=bi(ie,Se)}else C=L,L=n;return L===n&&(L=Wt()),L}function ri(){var L,ie,Se,le;return L=dn(),L===n&&(L=yi(),L===n&&(L=Ei(),L===n&&(L=Yi(),L===n&&(L=C,t.charCodeAt(C)===40?(ie=D,C++):(ie=n,Ne===0&&re(Je)),ie!==n?(Wt(),Se=Ze(),Se!==n?(Wt(),t.charCodeAt(C)===41?(le=R,C++):(le=n,Ne===0&&re(We)),le!==n?(Mt=L,L=hi(Se)):(C=L,L=n)):(C=L,L=n)):(C=L,L=n))))),L}function yi(){var L,ie,Se,le;return Ne++,L=C,t.charCodeAt(C)===39?(ie=B,C++):(ie=n,Ne===0&&re(an)),ie!==n?(Se=yo(),t.charCodeAt(C)===39?(le=B,C++):(le=n,Ne===0&&re(an)),le!==n?(Mt=L,L=Bn(Se)):(C=L,L=n)):(C=L,L=n),Ne--,L===n&&(ie=n,Ne===0&&re(zt)),L}function yo(){var L,ie,Se;for(L=C,ie=[],Se=Oi();Se!==n;)ie.push(Se),Se=Oi();return Mt=L,ie=eo(ie),L=ie,L}function Oi(){var L,ie,Se,le,qe;if(L=C,t.substr(C,2)===s?(ie=s,C+=2):(ie=n,Ne===0&&re(Q)),ie!==n?(Se=Wt(),le=Ze(),le!==n?(Wt(),t.charCodeAt(C)===125?(qe=l,C++):(qe=n,Ne===0&&re(se)),qe!==n?(Mt=L,L=Tt(le)):(C=L,L=n)):(C=L,L=n)):(C=L,L=n),L===n&&(L=C,t.substr(C,3)===a?(ie=a,C+=3):(ie=n,Ne===0&&re(_e)),ie!==n&&(Mt=L,ie=Wn()),L=ie,L===n&&(L=C,ie=C,Ne++,t.charCodeAt(C)===92?(Se=c,C++):(Se=n,Ne===0&&re(Oe)),Se===n&&(t.charCodeAt(C)===39?(Se=B,C++):(Se=n,Ne===0&&re(an)),Se===n&&(t.substr(C,2)===s?(Se=s,C+=2):(Se=n,Ne===0&&re(Q)))),Ne--,Se===n?ie=void 0:(C=ie,ie=n),ie!==n?(t.length>C?(Se=t.charAt(C),C++):(Se=n,Ne===0&&re(W)),Se!==n?(Mt=L,L=gi()):(C=L,L=n)):(C=L,L=n),L===n))){if(L=C,t.substr(C,2)===s?(ie=s,C+=2):(ie=n,Ne===0&&re(Q)),ie!==n){if(Se=[],Y.test(t.charAt(C))?(le=t.charAt(C),C++):(le=n,Ne===0&&re(sn)),le!==n)for(;le!==n;)Se.push(le),Y.test(t.charAt(C))?(le=t.charAt(C),C++):(le=n,Ne===0&&re(sn));else Se=n;Se!==n?(t.charCodeAt(C)===125?(le=l,C++):(le=n,Ne===0&&re(se)),le!==n?(Mt=L,L=rn()):(C=L,L=n)):(C=L,L=n)}else C=L,L=n;L===n&&(L=C,t.substr(C,2)===s?(ie=s,C+=2):(ie=n,Ne===0&&re(Q)),ie!==n&&(Mt=L,ie=Nn()),L=ie,L===n&&(L=C,t.charCodeAt(C)===92?(ie=c,C++):(ie=n,Ne===0&&re(Oe)),ie!==n?(t.substr(C,2)===s?(Se=s,C+=2):(Se=n,Ne===0&&re(Q)),Se!==n?(Mt=L,L=Bt(Se)):(C=L,L=n)):(C=L,L=n),L===n&&(L=C,t.charCodeAt(C)===92?(ie=c,C++):(ie=n,Ne===0&&re(Oe)),ie!==n?(t.length>C?(Se=t.charAt(C),C++):(Se=n,Ne===0&&re(W)),Se!==n?(Mt=L,L=vn(Se)):(C=L,L=n)):(C=L,L=n),L===n&&(L=C,t.charCodeAt(C)===92?(ie=c,C++):(ie=n,Ne===0&&re(Oe)),ie!==n&&(Mt=L,ie=un()),L=ie))))}return L}function Yi(){var L,ie,Se;if(Ne++,L=C,t.charCodeAt(C)===45?C++:Ne===0&&re(fe),ie=[],x.test(t.charAt(C))?(Se=t.charAt(C),C++):(Se=n,Ne===0&&re(cn)),Se!==n)for(;Se!==n;)ie.push(Se),x.test(t.charAt(C))?(Se=t.charAt(C),C++):(Se=n,Ne===0&&re(cn));else ie=n;return ie!==n?(Mt=L,L=En()):(C=L,L=n),Ne--,L===n&&Ne===0&&re(It),L}function Ei(){var L,ie,Se,le,qe,Fe,Et,Nt,On;for(Ne++,L=C,t.charCodeAt(C)===45?C++:Ne===0&&re(fe),ie=[],x.test(t.charAt(C))?(Se=t.charAt(C),C++):(Se=n,Ne===0&&re(cn));Se!==n;)ie.push(Se),x.test(t.charAt(C))?(Se=t.charAt(C),C++):(Se=n,Ne===0&&re(cn));if(t.charCodeAt(C)===46?(Se=M,C++):(Se=n,Ne===0&&re(ee)),Se!==n){if(le=[],x.test(t.charAt(C))?(qe=t.charAt(C),C++):(qe=n,Ne===0&&re(cn)),qe!==n)for(;qe!==n;)le.push(qe),x.test(t.charAt(C))?(qe=t.charAt(C),C++):(qe=n,Ne===0&&re(cn));else le=n;if(le!==n){if(qe=C,t.charCodeAt(C)===101?(Fe=z,C++):(Fe=n,Ne===0&&re(Sn)),Fe===n&&(t.charCodeAt(C)===69?(Fe=q,C++):(Fe=n,Ne===0&&re(Fn))),Fe!==n){if(t.charCodeAt(C)===43?(Et=k,C++):(Et=n,Ne===0&&re(Qe)),Et===n&&(t.charCodeAt(C)===45?(Et=A,C++):(Et=n,Ne===0&&re(fe))),Et===n&&(Et=null),Nt=[],x.test(t.charAt(C))?(On=t.charAt(C),C++):(On=n,Ne===0&&re(cn)),On!==n)for(;On!==n;)Nt.push(On),x.test(t.charAt(C))?(On=t.charAt(C),C++):(On=n,Ne===0&&re(cn));else Nt=n;Nt!==n?(Fe=[Fe,Et,Nt],qe=Fe):(C=qe,qe=n)}else C=qe,qe=n;qe===n&&(qe=null),Mt=L,L=Yn()}else C=L,L=n}else C=L,L=n;if(L===n){if(L=C,t.charCodeAt(C)===45?C++:Ne===0&&re(fe),ie=[],x.test(t.charAt(C))?(Se=t.charAt(C),C++):(Se=n,Ne===0&&re(cn)),Se!==n)for(;Se!==n;)ie.push(Se),x.test(t.charAt(C))?(Se=t.charAt(C),C++):(Se=n,Ne===0&&re(cn));else ie=n;if(ie!==n)if(t.charCodeAt(C)===101?(Se=z,C++):(Se=n,Ne===0&&re(Sn)),Se===n&&(t.charCodeAt(C)===69?(Se=q,C++):(Se=n,Ne===0&&re(Fn))),Se!==n){if(t.charCodeAt(C)===43?(le=k,C++):(le=n,Ne===0&&re(Qe)),le===n&&(t.charCodeAt(C)===45?(le=A,C++):(le=n,Ne===0&&re(fe))),le===n&&(le=null),qe=[],x.test(t.charAt(C))?(Fe=t.charAt(C),C++):(Fe=n,Ne===0&&re(cn)),Fe!==n)for(;Fe!==n;)qe.push(Fe),x.test(t.charAt(C))?(Fe=t.charAt(C),C++):(Fe=n,Ne===0&&re(cn));else qe=n;qe!==n?(Mt=L,L=Ce()):(C=L,L=n)}else C=L,L=n;else C=L,L=n}return Ne--,L===n&&Ne===0&&re(pn),L}function dn(){var L,ie,Se,le,qe,Fe,Et,Nt,On,yn,wi;if(L=C,ce.test(t.charAt(C))?(ie=t.charAt(C),C++):(ie=n,Ne===0&&re(Re)),ie!==n){if(Se=[],le=[],ue.test(t.charAt(C))?(qe=t.charAt(C),C++):(qe=n,Ne===0&&re(lt)),qe!==n)for(;qe!==n;)le.push(qe),ue.test(t.charAt(C))?(qe=t.charAt(C),C++):(qe=n,Ne===0&&re(lt));else le=n;for(le===n&&(le=C,t.charCodeAt(C)===46?(qe=M,C++):(qe=n,Ne===0&&re(ee)),qe!==n?(Fe=C,Ne++,Et=C,Nt=Wt(),On=vi(),On!==n?(yn=Wt(),t.charCodeAt(C)===40?(wi=D,C++):(wi=n,Ne===0&&re(Je)),wi!==n?(Nt=[Nt,On,yn,wi],Et=Nt):(C=Et,Et=n)):(C=Et,Et=n),Ne--,Et===n?Fe=void 0:(C=Fe,Fe=n),Fe!==n?(qe=[qe,Fe],le=qe):(C=le,le=n)):(C=le,le=n));le!==n;){if(Se.push(le),le=[],ue.test(t.charAt(C))?(qe=t.charAt(C),C++):(qe=n,Ne===0&&re(lt)),qe!==n)for(;qe!==n;)le.push(qe),ue.test(t.charAt(C))?(qe=t.charAt(C),C++):(qe=n,Ne===0&&re(lt));else le=n;le===n&&(le=C,t.charCodeAt(C)===46?(qe=M,C++):(qe=n,Ne===0&&re(ee)),qe!==n?(Fe=C,Ne++,Et=C,Nt=Wt(),On=vi(),On!==n?(yn=Wt(),t.charCodeAt(C)===40?(wi=D,C++):(wi=n,Ne===0&&re(Je)),wi!==n?(Nt=[Nt,On,yn,wi],Et=Nt):(C=Et,Et=n)):(C=Et,Et=n),Ne--,Et===n?Fe=void 0:(C=Fe,Fe=n),Fe!==n?(qe=[qe,Fe],le=qe):(C=le,le=n)):(C=le,le=n))}Mt=L,L=bn()}else C=L,L=n;return L}function vi(){var L,ie,Se,le;if(L=C,ce.test(t.charAt(C))?(ie=t.charAt(C),C++):(ie=n,Ne===0&&re(Re)),ie!==n){for(Se=[],ue.test(t.charAt(C))?(le=t.charAt(C),C++):(le=n,Ne===0&&re(lt));le!==n;)Se.push(le),ue.test(t.charAt(C))?(le=t.charAt(C),C++):(le=n,Ne===0&&re(lt));Mt=L,L=ft()}else C=L,L=n;return L}function Wt(){var L,ie;for(Ne++,L=[],Z.test(t.charAt(C))?(ie=t.charAt(C),C++):(ie=n,Ne===0&&re(wt));ie!==n;)L.push(ie),Z.test(t.charAt(C))?(ie=t.charAt(C),C++):(ie=n,Ne===0&&re(wt));return Ne--,ie=n,Ne===0&&re(li),L}if(Ii=r(),Ii!==n&&C===t.length)return Ii;throw Ii!==n&&C<t.length&&re(ae()),je(mi,Ni<t.length?t.charAt(Ni):null,Ni<t.length?Be(Ni,Ni+1):Be(Ni,Ni))}const gF=2147483647,hF=-2147483648,vF=Number.MAX_VALUE,bF=Number.MIN_VALUE,kt="string",mt="integer",Xt="number",Ki="boolean",go="color",rr="url",Ti="datetime",ni="dict",ii="array";function Ko(t,e){var n;switch((n=e[t.type])==null||n.call(e,t),t.type){case"TemplateLiteral":t.expressions.forEach((i=>{Ko(i,e)}));break;case"BinaryExpression":case"LogicalExpression":Ko(t.left,e),Ko(t.right,e);break;case"UnaryExpression":Ko(t.argument,e);break;case"ConditionalExpression":Ko(t.test,e),Ko(t.consequent,e),Ko(t.alternate,e);break;case"TryExpression":Ko(t.test,e),Ko(t.alternate,e);break;case"CallExpression":t.arguments.forEach((i=>{Ko(i,e)}));break;case"MethodExpression":Ko(t.object,e),t.arguments.forEach((i=>{Ko(i,e)}));break}}function D1(t,e){for(;t.length<e;)t="0"+t;return t}function Ri(t,e=1,n="transparent"){if(t=(typeof t=="string"&&t||"").toLowerCase(),t.charAt(0)!=="#")return n;const i=ns(t);return i?(i.a*=e,Ou(i)):n}function yF(t,e,n="transparent"){if(t=(typeof t=="string"&&t||"").toLowerCase(),t.charAt(0)!=="#")return n;const i=ns(t);return i?(i.a=e,Ou(i)):n}function Ou(t){return t.a===255?`#${[t.r,t.g,t.b].map((e=>D1(Math.round(e).toString(16),2))).join("")}`:`rgba(${t.r},${t.g},${t.b},${(t.a/255).toFixed(2)})`}function ns(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(e.length===5){const[c,d,u,p,_]=e,f=u.length===2?u:u+u,m=p.length===2?p:p+p,g=_.length===2?_:_+_,v=d.length===2?d:d+d;return{a:parseInt(v,16),r:parseInt(f,16),g:parseInt(m,16),b:parseInt(g,16)}}const[n,i,o,r]=e,s=i.length===2?i:i+i,l=o.length===2?o:o+o,a=r.length===2?r:r+r;return{a:255,r:parseInt(s,16),g:parseInt(l,16),b:parseInt(a,16)}}return null}function hc(t){return t.type==="url"||t.type==="color"?{type:"string",value:t.value}:t}function V1(t){return t.toISOString().replace("T"," ").replace(/\.\d{3}Z$/,"")}function Ws(t){if(t.type==="string")return t.value;if(t.type==="integer")return String(t.value);if(t.type==="number"){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}else{if(t.type==="boolean")return t.value?"true":"false";if(t.type==="datetime")return V1(t.value);if(t.type==="color")return Ys(Kc(t.value));if(t.type==="url")return t.value;if(t.type==="dict")return"<dict>";if(t.type==="array")return"<array>"}throw new Error(`Unexpected type ${t.type}`)}function ao(t){let e=Ws(t);return t.type==="string"&&(e="'"+e.replace(/\\/g,"\\\\").replace(/'/g,"\\'")+"'"),e}function Xo(t){return t==="datetime"?"DateTime":t.charAt(0).toUpperCase()+t.substring(1)}function Ks(t,e){return bo(e)}function No(t,e){if(e<ta||e>ea)throw new Error("Integer overflow.")}function L1(t){const e=new Set;return Ko(t,{Variable(n){e.add(n.id.name)}}),[...e]}function co(t,e){throw new Error(`Failed to evaluate [${t}]. ${e}`)}function Kc(t){const e=ns(t);if(e)return e;throw new Error("Unable to convert value to Color, expected format #AARRGGBB.")}function Ys(t){return`#${[t.a,t.r,t.g,t.b].map((e=>{if(e<0||e>255)throw new Error("Value out of range 0..1.");return D1(Math.round(e).toString(16),2)})).join("").toUpperCase()}`}function El(t){return Ys(Kc(t))}function Yd(t){return{type:Xt,value:Number(t.value)}}const wF={string:"string",number:"number",integer:"number",boolean:"boolean",color:"string",url:"string",array:"array",dict:"object"};function F1(t,e,n){const i=wF[n];let o=typeof e;if(i==="array"&&!Array.isArray(e)||i!=="array"&&o!==i||o==="object"&&e===null)throw o==="object"&&(Array.isArray(e)?o="array":e===null?o="null":o="dict"),new Error(`Incorrect value type: expected ${Xo(n)}, got ${Xo(o)}.`);if(i==="number"&&n==="integer"){No(t,e);try{e=bo(e)}catch{throw new Error("Cannot convert value to integer.")}}return i==="string"&&n==="color"&&(e=El(e)),{type:n,value:e}}const Kl=new Map,Gd=new Map,Ha=new Map,Xd=new Map;function Te(t,e,n){const i={args:e,cb:n},o=Kl.get(t)||[];Kl.has(t)||Kl.set(t,o),o.push(i);const r=t+":"+e.map((s=>typeof s=="object"?s.type:s)).join("#");Gd.set(r,i)}function to(t,e,n){const i={args:e,cb:n},o=Ha.get(t)||[];Ha.has(t)||Ha.set(t,o),o.push(i);const r=t+":"+e.map((s=>typeof s=="object"?s.type:s)).join("#");Xd.set(r,i)}function $F(t,e){const n=t.args.length;let i=t.args.length,o=0;const r=t.args[t.args.length-1];if(typeof r=="object"&&r.isVararg&&(i=1/0),e.length<n)return{type:"few",expected:n,found:e.length};if(e.length>i)return{type:"many",expected:i,found:e.length};for(let s=0;s<e.length;++s){let l=s>=t.args.length?t.args[t.args.length-1]:t.args[s];if(typeof l!="object"&&(l={type:l}),l.type===Xt&&e[s].type===mt){++o;continue}if(l.type!==e[s].type)return{type:"mismatch",expected:l.type,found:e[s].type}}return{type:"match",conversions:o}}function Zd(t,e,n){const i=t.get(e);if(!i)return{type:"missing"};let o=null,r=null;for(let s=0;s<i.length;++s){const l=$F(i[s],n);if(l.type==="match"){(!r||r.conversions>l.conversions)&&(r={func:i[s],conversions:l.conversions});continue}o||(o=l)}if(!r){if(o)return o;throw new Error("Missing function")}return r}function N1(t,e){return e.map(((n,i)=>{let o=i>=t.args.length?t.args[t.args.length-1]:t.args[i];return typeof o!="object"&&(o={type:o}),o.type===Xt&&n.type===mt?Yd(n):n}))}function Up(t,e){return t+":"+e.args.map((n=>typeof n=="string"?n:n.type)).join("#")}function Do(t,e){return e.type===ii||e.type===ni?{type:kt,value:JSON.stringify(e.value)}:{type:kt,value:Ws(e)}}function Wp(t,e){const n=Number(e.value);if(Number.isNaN(n)||!Number.isFinite(n))throw new Error("Unable to convert value to Number.");if(e.value==="")throw new Error("Unable to convert value to Number.");return{type:Xt,value:n}}function kF(t,e){if(e.value>ea||e.value<ta)throw new Error("Unable to convert value to Integer.");const n=e.value-e.value%1;return{type:mt,value:bo(n)}}function jF(t,e){let n;try{n=bo(e.value)}catch{throw new Error("Unable to convert value to Integer.")}return{type:mt,value:n}}function SF(t,e){return{type:mt,value:bo(e.value?1:0)}}function TF(t,e){const n=Number(e.value);if(n!==1&&n!==0)throw new Error("Unable to convert value to Boolean.");return{type:Ki,value:n}}function CF(t,e){if(e.value!=="true"&&e.value!=="false")throw new Error("Unable to convert value to Boolean.");return{type:Ki,value:e.value==="true"?1:0}}function zF(t,e){return{type:go,value:El(e.value)}}function EF(t,e){return{type:rr,value:e.value}}function AF(t,e){try{return{type:kt,value:encodeURIComponent(e.value)}}catch{throw new Error("Unable to encodeUri string.")}}function OF(t,e){try{return{type:kt,value:decodeURIComponent(e.value)}}catch{throw new Error("Unable to decodeUri string.")}}function Mu(t,e,n,i){const o=t.variables.get(e.value);let r;return o&&o.getType()===i?r=o.getValue():r=n.value,i==="color"&&(r=El(r)),{type:i,value:r}}function Ca(t,e,n){return Mu(t,e,n,n.type)}function Kp(t,e,n){return Mu(t,e,n,"color")}function Yp(t,e,n){return Mu(t,e,n,"url")}function MF(){Te("toString",[mt],Do),Te("toString",[Xt],Do),Te("toString",[Ki],Do),Te("toString",[go],Do),Te("toString",[rr],Do),Te("toString",[kt],Do),Te("toString",[ii],Do),Te("toString",[ni],Do),Te("toNumber",[mt],Wp),Te("toNumber",[kt],Wp),Te("toInteger",[Xt],kF),Te("toInteger",[kt],jF),Te("toInteger",[Ki],SF),Te("toBoolean",[mt],TF),Te("toBoolean",[kt],CF),Te("toColor",[kt],zF),Te("toUrl",[kt],EF),Te("encodeUri",[kt],AF),Te("decodeUri",[kt],OF),Te("getIntegerValue",[kt,mt],Ca),Te("getNumberValue",[kt,Xt],Ca),Te("getBooleanValue",[kt,Ki],Ca),Te("getStringValue",[kt,kt],Ca),Te("getColorValue",[kt,go],Kp),Te("getColorValue",[kt,kt],Kp),Te("getUrlValue",[kt,rr],Yp),Te("getUrlValue",[kt,kt],Yp),to("toString",[mt],Do),to("toString",[Xt],Do),to("toString",[Ki],Do),to("toString",[go],Do),to("toString",[rr],Do),to("toString",[kt],Do),to("toString",[ii],Do),to("toString",[ni],Do)}function Vo(t,e){return!t||!e?t:t.padStart(e,"0")}const xd={G(t,e){let n;return t<4?n="short":t===5?n="narrow":n="long",e({era:n},"era")},d(t,e){return Vo(e({day:"numeric"},"day"),t>1?t:0)},D(t,e){return Vo(e({},"dayofyear"),t>1?t:0)},F(t,e){return Vo(e({},"dayofweekinmonth"),t>1?t:0)},M(t,e){let n;return t===1?n="numeric":t===2?n="2-digit":t===3?n="short":t===5?n="narrow":n="long",e({month:n,day:"numeric"},"month")},y(t,e){return Vo(e({year:t===2?"2-digit":"numeric"},"year"),t>2?t:void 0)},Y(t,e){return Vo(e({year:t===2?"2-digit":"numeric"},"weekyear"),t>2?t:void 0)},u(t,e){return Vo(e({year:"numeric"},"extendedyear"),t>1?t:void 0)},E(t,e){let n;return t<=3?n="short":t===5?n="narrow":n="long",e({weekday:n},"weekday")},e(t,e){return t>2?xd.E(t,e):Vo(e({},"weekdaynumeric"),t>1?t:void 0)},w(t,e){return Vo(e({},"week"),t>1?t:void 0)},W(t,e){return Vo(e({},"weekofmonth"),t>1?t:void 0)},H(t,e){const n=e({hour:"numeric",hour12:!1,hourCycle:"h23"},"hour");if(!n)return;const i=String(Number(n)%24);return Vo(i,t>1?t:void 0)},h(t,e){return Vo(e({hour:"numeric",hour12:!0,hourCycle:"h12"},"hour"),t>1?t:void 0)},K(t,e){const n=e({hour:"numeric",hour12:!0,hourCycle:"h11"},"hour");if(!n)return;const i=String(Number(n)%12);return Vo(i,t>1?t:void 0)},k(t,e){return Vo(e({hour:"numeric",hour12:!1,hourCycle:"h24"},"hour"),t>2?t:void 0)},a(t,e){return e({hour:"numeric",hour12:!0,hourCycle:"h11",dayPeriod:void 0},"dayPeriod")},m(t,e){return Vo(e({minute:"numeric"},"minute"),t>1?t:void 0)},s(t,e){return Vo(e({second:"numeric"},"second"),t>1?t:void 0)},S(t,e){const n=e({fractionalSecondDigits:Math.min(3,t)},"fractionalSecond");return n&&t>3?n.padEnd(t,"0"):n},z(t,e){return e({timeZoneName:t===4?"long":"short"},"timeZoneName")},Z(t,e){const n=-Number(e({},"timezoneoffset")),i=Math.abs(n/60),o=Math.floor(i)*100+(i-Math.floor(i))*60;return(n>=0?"+":"-")+Vo(String(o),4)}},PF=/(\w)\1*|''|'(''|[^'])+('|$)|./g,IF=/^'([^]*?)'?$/,DF=/''/g,VF=/[a-zA-Z]/,Pu=1e3*60*60*24;function LF(t){const e=t.match(IF);return e?e[1].replace(DF,"'"):t}function Qd(t,e,n){const i=t[e?"getUTCDay":"getDay"](),o=i<n?n-i-7:n-i;return new Date(t.getTime()+Pu*o)}function Gp(t,e,n){const i=new Date(t);return i[e?"setUTCDate":"setDate"](1),i[e?"setUTCMonth":"setMonth"](0),Qd(i,e,n)}function Xp(t,e){return Math.round((t.getTime()-e.getTime())/Pu)}function Zp(t,e,n){let i=0;const o=Gp(t,e||!1,n),r=new Date(t);r[e?"setUTCFullYear":"setFullYear"](t[e?"getUTCFullYear":"getFullYear"]()+1);const s=Gp(r,e||!1,n),l=t.getTime()<o.getTime(),a=t.getTime()>=s.getTime();let c=t[e?"getUTCFullYear":"getFullYear"]();if(l){--c,o[e?"setUTCFullYear":"setFullYear"](o[e?"getUTCFullYear":"getFullYear"]()-1);const d=Xp(Qd(t,e,n),o);i=Math.round(d/7)+1}else if(a)++c,i=1;else{const d=Xp(Qd(t,e,n),o);i=Math.round(d/7)+1}return{week:i,year:c}}function FF(t,e,{locale:n,isUTC:i,weekStartDay:o=0}={}){const r=(s,l)=>{if(l==="week"){const{week:c}=Zp(t,i||!1,o);return String(c)}if(l==="weekofmonth"){const c=t[i?"getUTCDay":"getDay"](),d=new Date(t);d[i?"setUTCDate":"setDate"](1);const u=d[i?"getUTCDay":"getDay"](),p=t[i?"getUTCDate":"getDate"]();return String(Math.ceil(p/7)+(c<u?1:0))}if(l==="dayofweekinmonth"){const c=t[i?"getUTCDate":"getDate"]();return String(Math.ceil(c/7))}if(l==="weekdaynumeric"){let c=t[i?"getUTCDay":"getDay"]();return c<o&&(c+=7),String(c-o+1)}if(l==="dayofyear"){const c=new Date(t);c[i?"setUTCMonth":"setMonth"](0),c[i?"setUTCDate":"setDate"](1),c[i?"setUTCHours":"setHours"](1),c[i?"setUTCMinutes":"setMinutes"](1),c[i?"setUTCSeconds":"setSeconds"](1);const d=Math.ceil((t.getTime()-c.getTime())/Pu);return String(d)}if(l==="weekyear"){let{year:c}=Zp(t,i||!1,o);return c<1&&(c=1-c),s.year==="2-digit"?String(c%100):String(c)}if(l==="extendedyear"){const c=t[i?"getUTCFullYear":"getFullYear"]();return s.year==="2-digit"?String(c%100):String(c)}if(l==="timezoneoffset")return i?"0":String(t.getTimezoneOffset());i&&(s.timeZone="UTC");const a=new Intl.DateTimeFormat(n,s).formatToParts(t);for(let c=0;c<a.length;++c)if(a[c].type===l)return a[c].value};return(e.match(PF)||[]).map((s=>{if(s==="''")return"'";const l=s[0];if(l==="'")return LF(s);if(xd[l])return xd[l](s.length,r);if(l.match(VF))throw new Error(`Format string contains an unescaped latin alphabet character "${l}"`);return s})).join("")}function NF(t){const e=new Date(t);return e.setUTCMonth(e.getUTCMonth()+1),e.setUTCDate(0),e.getUTCDate()}function qF(t,e){return{type:Ti,value:new Date(Number(e.value)*1e3)}}function RF(t,e){const n=new Date(Number(e.value)*1e3),i=n.getTimezoneOffset();return n.setMinutes(n.getMinutes()-i),{type:Ti,value:n}}function BF(){return{type:Ti,value:new Date}}function HF(t,e,n){return{type:Ti,value:new Date(e.value.getTime()+Number(n.value))}}function JF(t,e,n){const i=new Date(e.value);return i.setUTCFullYear(Number(n.value)),{type:Ti,value:i}}function UF(t,e,n){const i=Number(n.value);if(i<1||i>12)throw new Error(`Expecting month in [1..12], instead got ${i}.`);const o=new Date(e.value);return o.setUTCMonth(i-1),{type:Ti,value:o}}function WF(t,e,n){const i=new Date(e.value),o=Number(n.value);if(o<=0&&o!==-1||o>NF(i))throw new Error(`Unable to set day ${o} for date ${Ws(e)}.`);return i.setUTCDate(o===-1?0:o),{type:Ti,value:i}}function KF(t,e,n){const i=Number(n.value);if(i<0||i>23)throw new Error(`Expecting hours in [0..23], instead got ${i}.`);const o=new Date(e.value);return o.setUTCHours(i),{type:Ti,value:o}}function YF(t,e,n){const i=Number(n.value);if(i<0||i>59)throw new Error(`Expecting minutes in [0..59], instead got ${i}.`);const o=new Date(e.value);return o.setUTCMinutes(i),{type:Ti,value:o}}function GF(t,e,n){const i=Number(n.value);if(i<0||i>59)throw new Error(`Expecting seconds in [0..59], instead got ${i}.`);const o=new Date(e.value);return o.setUTCSeconds(i),{type:Ti,value:o}}function XF(t,e,n){const i=Number(n.value);if(i<0||i>999)throw new Error(`Expecting millis in [0..999], instead got ${i}.`);const o=new Date(e.value);return o.setUTCMilliseconds(i),{type:Ti,value:o}}const hs=t=>(e,n)=>{let i=new Date(n.value.getTime())[t]();return t==="getUTCMonth"?++i:t==="getUTCDay"&&i===0&&(i=7),{type:mt,value:bo(i)}};function q1(t){return(e,n,i,o)=>({type:kt,value:FF(n.value,i.value,{locale:o==null?void 0:o.value,isUTC:t,weekStartDay:e.weekStartDay})})}const ZF=hs("getUTCFullYear"),xF=hs("getUTCMonth"),QF=hs("getUTCDate"),eN=hs("getUTCDay"),tN=hs("getUTCHours"),nN=hs("getUTCMinutes"),iN=hs("getUTCSeconds"),oN=hs("getUTCMilliseconds"),xp=q1(!1),Qp=q1(!0);function rN(){Te("parseUnixTime",[mt],qF),Te("parseUnixTimeAsLocal",[mt],RF),Te("nowLocal",[],BF),Te("addMillis",[Ti,mt],HF),Te("setYear",[Ti,mt],JF),Te("setMonth",[Ti,mt],UF),Te("setDay",[Ti,mt],WF),Te("setHours",[Ti,mt],KF),Te("setMinutes",[Ti,mt],YF),Te("setSeconds",[Ti,mt],GF),Te("setMillis",[Ti,mt],XF),Te("getYear",[Ti],ZF),Te("getMonth",[Ti],xF),Te("getDay",[Ti],QF),Te("getDayOfWeek",[Ti],eN),Te("getHours",[Ti],tN),Te("getMinutes",[Ti],nN),Te("getSeconds",[Ti],iN),Te("getMillis",[Ti],oN),Te("formatDateAsLocal",[Ti,kt],xp),Te("formatDateAsUTC",[Ti,kt],Qp),Te("formatDateAsLocalWithLocale",[Ti,kt,kt],xp),Te("formatDateAsUTCWithLocale",[Ti,kt,kt],Qp)}function sN(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function tt(t,e={}){const n=t;return n.level=e.level||"error",e.additional&&(n.additional=e.additional),n}function lN(t,e){return{type:mt,value:bo(e.value.length)}}function aN(t,e,n){return{type:Ki,value:e.value.includes(n.value)?1:0}}function cN(t,e,n,i){if(i.value<n.value)throw new Error("Indexes should be in ascending order.");if(n.value<0||n.value>e.value.length||i.value<0||i.value>e.value.length)throw new Error("Indexes are out of bounds.");return{type:kt,value:e.value.substring(Number(n.value),Number(i.value))}}function dN(t,e,n,i){let o;return n.value?o=e.value.replace(new RegExp(sN(n.value),"g"),i.value):o=e.value,{type:kt,value:o}}function uN(t,e,n){return{type:mt,value:bo(e.value.indexOf(n.value))}}function pN(t,e,n){return{type:mt,value:bo(e.value.lastIndexOf(n.value))}}function _N(t,e){return{type:kt,value:e.value.trim()}}function fN(t,e){return{type:kt,value:e.value.replace(/^\s+/,"")}}function mN(t,e){return{type:kt,value:e.value.replace(/\s+$/,"")}}function gN(t,e){return{type:kt,value:e.value.toUpperCase()}}function hN(t,e){return{type:kt,value:e.value.toLowerCase()}}function R1(t,e,n,i){if(!i.value.length)return t.warnings.push(tt(new Error("String for padding is empty."),{level:"warn"})),"";let o="";const r=e.type===kt?e.value:Ws(e);for(;o.length+r.length<n.value;)o+=i.value;return o.length>0&&o.length+r.length>n.value&&(o=o.substring(0,Number(n.value)-Number(r.length))),o}function e_(t,e,n,i){const o=R1(t,e,n,i);return{type:kt,value:o+Ws(e)}}function t_(t,e,n,i){const o=R1(t,e,n,i);return{type:kt,value:Ws(e)+o}}function vN(t,e,n){let i;try{i=new RegExp(n.value)}catch{throw new Error("Invalid regular expression.")}return{type:Ki,value:i.test(e.value)?1:0}}function bN(t,e){return{type:kt,value:e.value.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}}function yN(){Te("len",[kt],lN),Te("contains",[kt,kt],aN),Te("substring",[kt,mt,mt],cN),Te("replaceAll",[kt,kt,kt],dN),Te("index",[kt,kt],uN),Te("lastIndex",[kt,kt],pN),Te("trim",[kt],_N),Te("trimLeft",[kt],fN),Te("trimRight",[kt],mN),Te("toUpperCase",[kt],gN),Te("toLowerCase",[kt],hN),Te("padStart",[kt,mt,kt],e_),Te("padStart",[mt,mt,kt],e_),Te("padEnd",[kt,mt,kt],t_),Te("padEnd",[mt,mt,kt],t_),Te("testRegex",[kt,kt],vN),Te("encodeRegex",[kt],bN)}function wN(t,e,n){if(n.value===Os)throw new Error("Division by zero is not supported.");let i=e.value/n.value;return i=Ks(t,i),No(t,i),{type:mt,value:i}}function $N(t,e,n){if(n.value===0)throw new Error("Division by zero is not supported.");const i=e.value/n.value;return{type:Xt,value:i}}function kN(t,e,n){if(n.value===Os)throw new Error("Division by zero is not supported.");let i=e.value%n.value;return i=Ks(t,i),No(t,i),{type:mt,value:i}}function jN(t,e,n){if(n.value===0)throw new Error("Division by zero is not supported.");const i=e.value%n.value;return{type:Xt,value:i}}function SN(t,...e){let n=e.length?e[0].value:Os;for(let i=1;i<e.length;++i)n*=e[i].value,n=Ks(t,n),No(t,n);return{type:mt,value:n}}function TN(t,...e){let n=e.length?e[0].value:0;for(let i=1;i<e.length;++i)n*=e[i].value;return{type:Xt,value:n}}function CN(t,...e){let n=e.length?e[0].value:Os;for(let i=1;i<e.length;++i)n-=e[i].value,n=Ks(t,n),No(t,n);return{type:mt,value:n}}function zN(t,...e){let n=e.length?e[0].value:0;for(let i=1;i<e.length;++i)n-=e[i].value;return{type:Xt,value:n}}function EN(t,...e){let n=Os;for(let i=0;i<e.length;++i)n+=e[i].value,n=Ks(t,n),No(t,n);return{type:mt,value:n}}function AN(t,...e){let n=0;for(let i=0;i<e.length;++i)n+=e[i].value;return{type:Xt,value:n}}function ON(t,e){const n=P1(e.value);return No(t,n),{type:e.type,value:n}}function MN(t,e){const n=Math.abs(e.value);return{type:Xt,value:n}}function PN(t,...e){if(!e.length)throw new Error("Function requires non empty argument list.");let n=e[0].value;for(let i=1;i<e.length;++i)e[i].value>n&&(n=e[i].value);return{type:mt,value:n}}function IN(t,...e){if(!e.length)throw new Error("Function requires non empty argument list.");return{type:Xt,value:Math.max(...e.map((n=>n.value)))}}function DN(t,...e){if(!e.length)throw new Error("Function requires non empty argument list.");let n=e[0].value;for(let i=1;i<e.length;++i)e[i].value<n&&(n=e[i].value);return{type:mt,value:n}}function VN(t,...e){if(!e.length)throw new Error("Function requires non empty argument list.");return{type:Xt,value:Math.min(...e.map((n=>n.value)))}}function LN(){return{type:Xt,value:vF}}function FN(){return{type:Xt,value:bF}}function NN(t){return No(t,ea),{type:mt,value:ea}}function qN(t){return No(t,ta),{type:mt,value:ta}}function RN(t,e){const n=Math.sign(e.value);return{type:Xt,value:n*Math.round(Math.abs(e.value))}}function BN(t,e){return{type:Xt,value:Math.floor(e.value)}}function HN(t,e){return{type:Xt,value:Math.ceil(e.value)}}function JN(t,e){return{type:mt,value:I1(e.value)}}function UN(t,e){return{type:Xt,value:Math.sign(e.value)}}function WN(t,e,n){let i;if(n.value===Os)i=e.value;else if(e.value===Os)i=bo(0);else{const o=I1(n.value);i=P1(e.value)*o}return No(t,i),{type:mt,value:i}}function KN(t,e,n){let i=Math.sign(n.value);i===0&&(i=Object.is(i,0)?1:-1);const o=Math.abs(e.value)*i;return{type:Xt,value:o}}function YN(){Te("div",[mt,mt],wN),Te("div",[Xt,Xt],$N),Te("mod",[mt,mt],kN),Te("mod",[Xt,Xt],jN),Te("mul",[{type:mt,isVararg:!0}],SN),Te("mul",[{type:Xt,isVararg:!0}],TN),Te("sub",[{type:mt,isVararg:!0}],CN),Te("sub",[{type:Xt,isVararg:!0}],zN),Te("sum",[{type:mt,isVararg:!0}],EN),Te("sum",[{type:Xt,isVararg:!0}],AN),Te("abs",[mt],ON),Te("abs",[Xt],MN),Te("max",[{type:mt,isVararg:!0}],PN),Te("max",[{type:Xt,isVararg:!0}],IN),Te("min",[{type:mt,isVararg:!0}],DN),Te("min",[{type:Xt,isVararg:!0}],VN),Te("maxNumber",[],LN),Te("minNumber",[],FN),Te("maxInteger",[],NN),Te("minInteger",[],qN),Te("round",[Xt],RN),Te("floor",[Xt],BN),Te("ceil",[Xt],HN),Te("signum",[mt],JN),Te("signum",[Xt],UN),Te("copySign",[mt,mt],WN),Te("copySign",[Xt,Xt],KN)}function Yc(t){return(e,n)=>{const i=Kc(n.value);return{type:Xt,value:i[t]/255}}}function Gc(t){return(e,n,i)=>{const o=Kc(n.value);return o[t]=i.value*255,{type:go,value:Ys(o)}}}const n_=Yc("a"),i_=Yc("r"),o_=Yc("g"),r_=Yc("b"),s_=Gc("a"),l_=Gc("r"),a_=Gc("g"),c_=Gc("b");function GN(t,e,n,i){const o={a:255,r:e.value*255,g:n.value*255,b:i.value*255};return{type:go,value:Ys(o)}}function XN(t,e,n,i,o){const r={a:e.value*255,r:n.value*255,g:i.value*255,b:o.value*255};return{type:go,value:Ys(r)}}function ZN(){Te("getColorAlpha",[kt],n_),Te("getColorAlpha",[go],n_),Te("getColorRed",[kt],i_),Te("getColorRed",[go],i_),Te("getColorGreen",[kt],o_),Te("getColorGreen",[go],o_),Te("getColorBlue",[kt],r_),Te("getColorBlue",[go],r_),Te("setColorAlpha",[kt,Xt],s_),Te("setColorAlpha",[go,Xt],s_),Te("setColorRed",[kt,Xt],l_),Te("setColorRed",[go,Xt],l_),Te("setColorGreen",[kt,Xt],a_),Te("setColorGreen",[go,Xt],a_),Te("setColorBlue",[kt,Xt],c_),Te("setColorBlue",[go,Xt],c_),Te("rgb",[Xt,Xt,Xt],GN),Te("argb",[Xt,Xt,Xt,Xt],XN)}function vs(t,e,n,i){if(e.value<0)throw new Error("Expecting non-negative number of milliseconds.");let o=bo(e.value)/bo(n);return No(t,o),i&&(o=bo(o)%bo(i)),{type:mt,value:o}}const B1=1e3,xN=60,H1=1e3*60,QN=60,J1=1e3*60*60,eq=24,tq=1e3*60*60*24,nq=1e3*60*60*24*7;function iq(t,e){return vs(t,e,B1,xN)}function oq(t,e){return vs(t,e,B1)}function rq(t,e){return vs(t,e,H1,QN)}function sq(t,e){return vs(t,e,H1)}function lq(t,e){return vs(t,e,J1,eq)}function aq(t,e){return vs(t,e,J1)}function cq(t,e){return vs(t,e,tq)}function dq(t,e){return vs(t,e,nq)}function uq(){Te("getIntervalSeconds",[mt],iq),Te("getIntervalTotalSeconds",[mt],oq),Te("getIntervalMinutes",[mt],rq),Te("getIntervalTotalMinutes",[mt],sq),Te("getIntervalHours",[mt],lq),Te("getIntervalTotalHours",[mt],aq),Te("getIntervalTotalDays",[mt],cq),Te("getIntervalTotalWeeks",[mt],dq)}function pq(t,e){let n=t;for(let i=0;i<e.length;++i){if(!n)throw new Error(`Missing property "${e[i]}" in the dict.`);const o=n[e[i]];if(o===void 0)throw new Error(`Missing property "${e[i]}" in the dict.`);n=o}return n}function bs(t){return(e,n,...i)=>{if(i.length===0)throw new Error("Non empty argument list is required.");const o=pq(n.value,i.map((r=>r.value)));return F1(e,o,t)}}function Al(t,e){return(n,i,o,...r)=>{try{return t(n,o,...r)}catch{let s=i.value;return e==="color"&&(s=El(s)),{type:e,value:s}}}}const Ja=bs(kt),Ua=bs(Xt),Wa=bs(mt),Ka=bs(Ki),Ya=bs(go),Ga=bs(rr),eu=bs(ii),tu=bs(ni),d_=Al(Ja,kt),u_=Al(Ua,Xt),p_=Al(Wa,mt),__=Al(Ka,Ki),za=Al(Ya,go),Ea=Al(Ga,rr);function _q(t,e,...n){try{return eu(t,e,...n)}catch{return{type:ii,value:[]}}}function fq(t,e,...n){try{return tu(t,e,...n)}catch{return{type:ni,value:{}}}}function mq(t,e,n){return{type:Ki,value:n.value in e.value?1:0}}function gq(t,e){return{type:Ki,value:Object.keys(e.value).length?0:1}}function hq(){const t={type:kt,isVararg:!0};Te("getDictString",[ni,t],Ja),Te("getStringFromDict",[ni,t],Ja),Te("getDictNumber",[ni,t],Ua),Te("getNumberFromDict",[ni,t],Ua),Te("getDictInteger",[ni,t],Wa),Te("getIntegerFromDict",[ni,t],Wa),Te("getDictBoolean",[ni,t],Ka),Te("getBooleanFromDict",[ni,t],Ka),Te("getDictColor",[ni,t],Ya),Te("getColorFromDict",[ni,t],Ya),Te("getDictUrl",[ni,t],Ga),Te("getUrlFromDict",[ni,t],Ga),Te("getDictOptString",[kt,ni,t],d_),Te("getOptStringFromDict",[kt,ni,t],d_),Te("getDictOptNumber",[Xt,ni,t],u_),Te("getOptNumberFromDict",[Xt,ni,t],u_),Te("getDictOptInteger",[mt,ni,t],p_),Te("getOptIntegerFromDict",[mt,ni,t],p_),Te("getDictOptBoolean",[Ki,ni,t],__),Te("getOptBooleanFromDict",[Ki,ni,t],__),Te("getDictOptColor",[go,ni,t],za),Te("getOptColorFromDict",[go,ni,t],za),Te("getDictOptColor",[kt,ni,t],za),Te("getOptColorFromDict",[kt,ni,t],za),Te("getDictOptUrl",[kt,ni,t],Ea),Te("getOptUrlFromDict",[kt,ni,t],Ea),Te("getDictOptUrl",[rr,ni,t],Ea),Te("getOptUrlFromDict",[rr,ni,t],Ea),Te("getDictFromDict",[ni,t],tu),Te("getArrayFromDict",[ni,t],eu),Te("getOptArrayFromDict",[ni,t],_q),Te("getOptDictFromDict",[ni,t],fq),to("getString",[ni,t],Ja),to("getBoolean",[ni,t],Ka),to("getInteger",[ni,t],Wa),to("getNumber",[ni,t],Ua),to("getUrl",[ni,t],Ga),to("getColor",[ni,t],Ya),to("getArray",[ni,t],eu),to("getDict",[ni,t],tu),to("containsKey",[ni,kt],mq),to("isEmpty",[ni],gq)}function ys(t,e){return(n,i,o)=>{if(o.value<0||o.value>=i.value.length)throw new Error(`Requested index (${o.value}) out of bounds array size (${i.value.length}).`);let r=i.value[Number(o.value)],s=typeof r;if(t==="array"&&!Array.isArray(r)||t!=="array"&&s!==t||s==="object"&&r===null)throw s==="object"&&(Array.isArray(r)?s="Array":r===null?s="Null":s="Dict"),new Error(`Incorrect value type: expected ${Xo(e)}, got ${Xo(s)}.`);if(t==="number"&&e==="integer"){No(n,r);try{r=bo(r)}catch{throw new Error("Cannot convert value to integer.")}}return t==="string"&&e==="color"&&(r=El(r)),{type:e,value:r}}}function Ol(t,e){return(n,i,o,r)=>{try{return t(n,i,o)}catch{let s=r.value;return e==="color"&&(s=El(s)),{type:e,value:s}}}}const Xa=ys("string","string"),Za=ys("number","number"),xa=ys("number","integer"),Qa=ys("boolean","boolean"),ec=ys("string","color"),tc=ys("string","url"),nu=ys("array","array"),iu=ys("object","dict"),f_=Ol(Xa,"string"),m_=Ol(Za,"number"),g_=Ol(xa,"integer"),h_=Ol(Qa,"boolean"),Aa=Ol(ec,"color"),Oa=Ol(tc,"url");function vq(t,e,n){try{return nu(t,e,n)}catch{return{type:ii,value:[]}}}function bq(t,e,n){try{return iu(t,e,n)}catch{return{type:ni,value:{}}}}function yq(t,e){return{type:mt,value:bo(e.value.length)}}function wq(t,e){return{type:Ki,value:e.value.length===0?1:0}}function $q(){Te("getArrayString",[ii,mt],Xa),Te("getStringFromArray",[ii,mt],Xa),Te("getArrayNumber",[ii,mt],Za),Te("getNumberFromArray",[ii,mt],Za),Te("getArrayInteger",[ii,mt],xa),Te("getIntegerFromArray",[ii,mt],xa),Te("getArrayBoolean",[ii,mt],Qa),Te("getBooleanFromArray",[ii,mt],Qa),Te("getArrayColor",[ii,mt],ec),Te("getColorFromArray",[ii,mt],ec),Te("getArrayUrl",[ii,mt],tc),Te("getUrlFromArray",[ii,mt],tc),Te("getArrayFromArray",[ii,mt],nu),Te("getDictFromArray",[ii,mt],iu),Te("getArrayOptString",[ii,mt,kt],f_),Te("getOptStringFromArray",[ii,mt,kt],f_),Te("getArrayOptNumber",[ii,mt,Xt],m_),Te("getOptNumberFromArray",[ii,mt,Xt],m_),Te("getArrayOptInteger",[ii,mt,mt],g_),Te("getOptIntegerFromArray",[ii,mt,mt],g_),Te("getArrayOptBoolean",[ii,mt,Ki],h_),Te("getOptBooleanFromArray",[ii,mt,Ki],h_),Te("getArrayOptColor",[ii,mt,go],Aa),Te("getOptColorFromArray",[ii,mt,go],Aa),Te("getArrayOptColor",[ii,mt,kt],Aa),Te("getOptColorFromArray",[ii,mt,kt],Aa),Te("getArrayOptUrl",[ii,mt,rr],Oa),Te("getOptUrlFromArray",[ii,mt,rr],Oa),Te("getArrayOptUrl",[ii,mt,kt],Oa),Te("getOptUrlFromArray",[ii,mt,kt],Oa),Te("getOptArrayFromArray",[ii,mt],vq),Te("getOptDictFromArray",[ii,mt],bq),Te("len",[ii],yq),to("getString",[ii,mt],Xa),to("getInteger",[ii,mt],xa),to("getNumber",[ii,mt],Za),to("getBoolean",[ii,mt],Qa),to("getUrl",[ii,mt],tc),to("getColor",[ii,mt],ec),to("getArray",[ii,mt],nu),to("getDict",[ii,mt],iu),to("isEmpty",[ii],wq)}function Or(t){return(e,n,i)=>{if(!e.store){if(!i)throw new Error("Missing value.");return{type:t,value:i.value}}let o;t==="boolean"?o="boolean":t==="number"||t==="integer"?o="number":o="string";let r;if(e.store.get?r=e.store.get(n.value,t):e.store.getValue&&(r=e.store.getValue(n.value,o)),r===void 0){if(!i)throw new Error("Missing value.");return{type:t,value:i.value}}return F1(e,r,t)}}function kq(){Te("getStoredIntegerValue",[kt,mt],Or(mt)),Te("getStoredNumberValue",[kt,Xt],Or(Xt)),Te("getStoredStringValue",[kt,kt],Or(kt)),Te("getStoredUrlValue",[kt,rr],Or(rr)),Te("getStoredUrlValue",[kt,kt],Or(rr)),Te("getStoredColorValue",[kt,go],Or(go)),Te("getStoredColorValue",[kt,kt],Or(go)),Te("getStoredBooleanValue",[kt,Ki],Or(Ki)),Te("getStoredArrayValue",[kt],Or(ii)),Te("getStoredDictValue",[kt],Or(ni))}function jq(){return{type:Xt,value:Math.PI}}function Sq(t,e){return{type:Xt,value:e.value/180*Math.PI}}function Tq(t,e){return{type:Xt,value:e.value/Math.PI*180}}function Cq(t,e){return{type:Xt,value:Math.sin(e.value)}}function zq(t,e){return{type:Xt,value:Math.cos(e.value)}}function Eq(t,e){return{type:Xt,value:Math.tan(e.value)}}function Aq(t,e){return{type:Xt,value:Math.atan(e.value)}}function Oq(t,e){if(e.value>1||e.value<-1)throw new Error("Arcsine is undefined for the given value.");return{type:Xt,value:Math.asin(e.value)}}function Mq(t,e){if(e.value>1||e.value<-1)throw new Error("Arccosine is undefined for the given value.");return{type:Xt,value:Math.acos(e.value)}}function Pq(){Te("pi",[],jq),Te("toRadians",[Xt],Sq),Te("toDegrees",[Xt],Tq),Te("sin",[Xt],Cq),Te("cos",[Xt],zq),Te("tan",[Xt],Eq),Te("atan",[Xt],Aq),Te("asin",[Xt],Oq),Te("acos",[Xt],Mq)}function Iq(){MF(),rN(),uq(),yN(),YN(),ZN(),hq(),$q(),kq(),Pq()}function he(){}const Xc=t=>t;function Gs(t,e){for(const n in e)t[n]=e[n];return t}function U1(t){return t()}function v_(){return Object.create(null)}function so(t){t.forEach(U1)}function Fi(t){return typeof t=="function"}function Dq(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let Ma;function sr(t,e){return t===e?!0:(Ma||(Ma=document.createElement("a")),Ma.href=e,t===Ma.href)}function Pi(t,e){return t!=t?e==e:t!==e}function Vq(t){return Object.keys(t).length===0}function Ve(t,...e){if(t==null){for(const i of e)i(void 0);return he}const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function Lq(t){let e;return Ve(t,(n=>e=n))(),e}function ko(t,e,n){t.$$.on_destroy.push(Ve(e,n))}function Zc(t,e,n,i){if(t){const o=W1(t,e,n,i);return t[0](o)}}function W1(t,e,n,i){return t[1]&&i?Gs(n.ctx.slice(),t[1](i(e))):n.ctx}function xc(t,e,n,i){if(t[2]&&i){const o=t[2](i(n));if(e.dirty===void 0)return o;if(typeof o=="object"){const r=[],s=Math.max(e.dirty.length,o.length);for(let l=0;l<s;l+=1)r[l]=e.dirty[l]|o[l];return r}return e.dirty|o}return e.dirty}function Qc(t,e,n,i,o,r){if(o){const s=W1(e,n,i,r);t.p(s,o)}}function ed(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let i=0;i<n;i++)e[i]=-1;return e}return-1}function nc(t,e,n){return t.set(n),e}function td(t){return t&&Fi(t.destroy)?t.destroy:he}function b_(t){const e=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}const K1=typeof window<"u";let Iu=K1?()=>window.performance.now():()=>Date.now(),Du=K1?t=>requestAnimationFrame(t):he;const _l=new Set;function Y1(t){_l.forEach((e=>{e.c(t)||(_l.delete(e),e.f())})),_l.size!==0&&Du(Y1)}function Vu(t){let e;return _l.size===0&&Du(Y1),{promise:new Promise((n=>{_l.add(e={c:t,f:n})})),abort(){_l.delete(e)}}}const Jr=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function Ln(t,e){t.appendChild(e)}function G1(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function Fq(t){const e=Zt("style");return e.textContent="/* empty */",Nq(G1(t),e),e.sheet}function Nq(t,e){return Ln(t.head||t,e),e.sheet}function st(t,e,n){t.insertBefore(e,n||null)}function ot(t){t.parentNode&&t.parentNode.removeChild(t)}function To(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function Zt(t){return document.createElement(t)}function $o(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function jr(t){return document.createTextNode(t)}function Ai(){return jr(" ")}function si(){return jr("")}function en(t,e,n,i){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n,i)}function K(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}const qq=["width","height"];function $r(t,e){const n=Object.getOwnPropertyDescriptors(t.__proto__);for(const i in e)e[i]==null?t.removeAttribute(i):i==="style"?t.style.cssText=e[i]:i==="__value"?t.value=t[i]=e[i]:n[i]&&n[i].set&&qq.indexOf(i)===-1?t[i]=e[i]:K(t,i,e[i])}function Rq(t,e){Object.keys(e).forEach((n=>{Bq(t,n,e[n])}))}function Bq(t,e,n){const i=e.toLowerCase();i in t?t[i]=typeof t[i]=="boolean"&&n===""?!0:n:e in t?t[e]=typeof t[e]=="boolean"&&n===""?!0:n:K(t,e,n)}function y_(t){return/-/.test(t)?Rq:$r}function Hq(t){return Array.from(t.childNodes)}function ws(t,e){e=""+e,t.data!==e&&(t.data=e)}function w_(t,e){t.value=e??""}function He(t,e,n,i){n==null?t.style.removeProperty(e):t.style.setProperty(e,n,"")}function $_(t,e,n){for(let i=0;i<t.options.length;i+=1){const o=t.options[i];if(o.__value===e){o.selected=!0;return}}(!n||e!==void 0)&&(t.selectedIndex=-1)}function Jq(t){const e=t.querySelector(":checked");return e&&e.__value}function X1(t,e,{bubbles:n=!1,cancelable:i=!1}={}){return new CustomEvent(t,{detail:e,bubbles:n,cancelable:i})}function k_(t,e){return new t(e)}const vc=new Map;let bc=0;function Uq(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}function Wq(t,e){const n={stylesheet:Fq(e),rules:{}};return vc.set(t,n),n}function yc(t,e,n,i,o,r,s,l=0){const a=16.666/i;let c=`{\n`;for(let g=0;g<=1;g+=a){const v=e+(n-e)*r(g);c+=g*100+`%{${s(v,1-v)}}\n`}const d=c+`100% {${s(n,1-n)}}\n}`,u=`__svelte_${Uq(d)}_${l}`,p=G1(t),{stylesheet:_,rules:f}=vc.get(p)||Wq(p,t);f[u]||(f[u]=!0,_.insertRule(`@keyframes ${u} ${d}`,_.cssRules.length));const m=t.style.animation||"";return t.style.animation=`${m?`${m}, `:""}${u} ${i}ms linear ${o}ms 1 both`,bc+=1,u}function wc(t,e){const n=(t.style.animation||"").split(", "),i=n.filter(e?r=>r.indexOf(e)<0:r=>r.indexOf("__svelte")===-1),o=n.length-i.length;o&&(t.style.animation=i.join(", "),bc-=o,bc||Kq())}function Kq(){Du((()=>{bc||(vc.forEach((t=>{const{ownerNode:e}=t.stylesheet;e&&ot(e)})),vc.clear())}))}let na;function Yl(t){na=t}function Ml(){if(!na)throw new Error("Function called outside component initialization");return na}function Sr(t){Ml().$$.on_mount.push(t)}function nd(t){Ml().$$.after_update.push(t)}function jo(t){Ml().$$.on_destroy.push(t)}function Yq(){const t=Ml();return(e,n,{cancelable:i=!1}={})=>{const o=t.$$.callbacks[e];if(o){const r=X1(e,n,{cancelable:i});return o.slice().forEach((s=>{s.call(t,r)})),!r.defaultPrevented}return!0}}function Ss(t,e){return Ml().$$.context.set(t,e),e}function ro(t){return Ml().$$.context.get(t)}function Zr(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((i=>i.call(this,e)))}const sl=[],Wi=[];let fl=[];const j_=[],Z1=Promise.resolve();let ou=!1;function x1(){ou||(ou=!0,Z1.then(Q1))}function Fo(){return x1(),Z1}function lr(t){fl.push(t)}const kd=new Set;let nl=0;function Q1(){if(nl!==0)return;const t=na;do{try{for(;nl<sl.length;){const e=sl[nl];nl++,Yl(e),Gq(e.$$)}}catch(e){throw sl.length=0,nl=0,e}for(Yl(null),sl.length=0,nl=0;Wi.length;)Wi.pop()();for(let e=0;e<fl.length;e+=1){const n=fl[e];kd.has(n)||(kd.add(n),n())}fl.length=0}while(sl.length);for(;j_.length;)j_.pop()();ou=!1,kd.clear(),Yl(t)}function Gq(t){if(t.fragment!==null){t.update(),so(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(lr)}}function Xq(t){const e=[],n=[];fl.forEach((i=>t.indexOf(i)===-1?e.push(i):n.push(i))),n.forEach((i=>i())),fl=e}let Rl;function Lu(){return Rl||(Rl=Promise.resolve(),Rl.then((()=>{Rl=null}))),Rl}function zs(t,e,n){t.dispatchEvent(X1(`${e?"intro":"outro"}${n}`))}const ic=new Set;let Lr;function ui(){Lr={r:0,c:[],p:Lr}}function pi(){Lr.r||so(Lr.c),Lr=Lr.p}function Ue(t,e){t&&t.i&&(ic.delete(t),t.i(e))}function nt(t,e,n,i){if(t&&t.o){if(ic.has(t))return;ic.add(t),Lr.c.push((()=>{ic.delete(t),i&&(n&&t.d(1),i())})),t.o(e)}else i&&i()}const Fu={duration:0};function Nu(t,e,n){const i={direction:"in"};let o=e(t,n,i),r=!1,s,l,a=0;function c(){s&&wc(t,s)}function d(){const{delay:p=0,duration:_=300,easing:f=Xc,tick:m=he,css:g}=o||Fu;g&&(s=yc(t,0,1,_,p,f,g,a++)),m(0,1);const v=Iu()+p,y=v+_;l&&l.abort(),r=!0,lr((()=>zs(t,!0,"start"))),l=Vu((b=>{if(r){if(b>=y)return m(1,0),zs(t,!0,"end"),c(),r=!1;if(b>=v){const w=f((b-v)/_);m(w,1-w)}}return r}))}let u=!1;return{start(){u||(u=!0,wc(t),Fi(o)?(o=o(i),Lu().then(d)):d())},invalidate(){u=!1},end(){r&&(c(),r=!1)}}}function Zq(t,e,n){const i={direction:"out"};let o=e(t,n,i),r=!0,s;const l=Lr;l.r+=1;let a;function c(){const{delay:d=0,duration:u=300,easing:p=Xc,tick:_=he,css:f}=o||Fu;f&&(s=yc(t,1,0,u,d,p,f));const m=Iu()+d,g=m+u;lr((()=>zs(t,!1,"start"))),"inert"in t&&(a=t.inert,t.inert=!0),Vu((v=>{if(r){if(v>=g)return _(0,1),zs(t,!1,"end"),--l.r||so(l.c),!1;if(v>=m){const y=p((v-m)/u);_(1-y,y)}}return r}))}return Fi(o)?Lu().then((()=>{o=o(i),c()})):c(),{end(d){d&&"inert"in t&&(t.inert=a),d&&o.tick&&o.tick(1,0),r&&(s&&wc(t,s),r=!1)}}}function S_(t,e,n,i){let o=e(t,n,{direction:"both"}),r=i?0:1,s=null,l=null,a=null,c;function d(){a&&wc(t,a)}function u(_,f){const m=_.b-r;return f*=Math.abs(m),{a:r,b:_.b,d:m,duration:f,start:_.start,end:_.start+f,group:_.group}}function p(_){const{delay:f=0,duration:m=300,easing:g=Xc,tick:v=he,css:y}=o||Fu,b={start:Iu()+f,b:_};_||(b.group=Lr,Lr.r+=1),"inert"in t&&(_?c!==void 0&&(t.inert=c):(c=t.inert,t.inert=!0)),s||l?l=b:(y&&(d(),a=yc(t,r,_,m,f,g,y)),_&&v(0,1),s=u(b,m),lr((()=>zs(t,_,"start"))),Vu((w=>{if(l&&w>l.start&&(s=u(l,m),l=null,zs(t,s.b,"start"),y&&(d(),a=yc(t,r,s.b,s.duration,0,g,o.css))),s){if(w>=s.end)v(r=s.b,1-r),zs(t,s.b,"end"),l||(s.b?d():--s.group.r||so(s.group.c)),s=null;else if(w>=s.start){const k=w-s.start;r=s.a+s.d*g(k/s.duration),v(r,1-r)}}return!!(s||l)})))}return{run(_){Fi(o)?Lu().then((()=>{o=o({direction:_?"in":"out"}),p(_)})):p(_)},end(){d(),s=l=null}}}function ci(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function e2(t,e){nt(t,1,1,(()=>{e.delete(t.key)}))}function t2(t,e,n,i,o,r,s,l,a,c,d,u){let p=t.length,_=r.length,f=p;const m={};for(;f--;)m[t[f].key]=f;const g=[],v=new Map,y=new Map,b=[];for(f=_;f--;){const j=u(o,r,f),T=n(j);let E=s.get(T);E?b.push((()=>E.p(j,e))):(E=c(T,j),E.c()),v.set(T,g[f]=E),T in m&&y.set(T,Math.abs(f-m[T]))}const w=new Set,k=new Set;function A(j){Ue(j,1),j.m(l,d),s.set(j.key,j),d=j.first,_--}for(;p&&_;){const j=g[_-1],T=t[p-1],E=j.key,O=T.key;j===T?(d=j.first,p--,_--):v.has(O)?!s.has(E)||w.has(E)?A(j):k.has(O)?p--:y.get(E)>y.get(O)?(k.add(E),A(j)):(w.add(O),p--):(a(T,s),p--)}for(;p--;){const j=t[p];v.has(j.key)||a(j,s)}for(;_;)A(g[_-1]);return so(b),g}function Pl(t,e){const n={},i={},o={$$scope:1};let r=t.length;for(;r--;){const s=t[r],l=e[r];if(l){for(const a in s)a in l||(i[a]=1);for(const a in l)o[a]||(n[a]=l[a],o[a]=1);t[r]=l}else for(const a in s)o[a]=1}for(const s in i)s in n||(n[s]=void 0);return n}function Qn(t){t&&t.c()}function Zn(t,e,n){const{fragment:i,after_update:o}=t.$$;i&&i.m(e,n),lr((()=>{const r=t.$$.on_mount.map(U1).filter(Fi);t.$$.on_destroy?t.$$.on_destroy.push(...r):so(r),t.$$.on_mount=[]})),o.forEach(lr)}function xn(t,e){const n=t.$$;n.fragment!==null&&(Xq(n.after_update),so(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function xq(t,e){t.$$.dirty[0]===-1&&(sl.push(t),x1(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function xi(t,e,n,i,o,r,s=null,l=[-1]){const a=na;Yl(t);const c=t.$$={fragment:null,ctx:[],props:r,update:he,not_equal:o,bound:v_(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(a?a.$$.context:[])),callbacks:v_(),dirty:l,skip_bound:!1,root:e.target||a.$$.root};s&&s(c.root);let d=!1;if(c.ctx=n?n(t,e.props||{},((u,p,..._)=>{const f=_.length?_[0]:p;return c.ctx&&o(c.ctx[u],c.ctx[u]=f)&&(!c.skip_bound&&c.bound[u]&&c.bound[u](f),d&&xq(t,u)),p})):[],c.update(),d=!0,so(c.before_update),c.fragment=i?i(c.ctx):!1,e.target){if(e.hydrate){const u=Hq(e.target);c.fragment&&c.fragment.l(u),u.forEach(ot)}else c.fragment&&c.fragment.c();e.intro&&Ue(t.$$.fragment),Zn(t,e.target,e.anchor),Q1()}Yl(a)}class Qi{constructor(){Xi(this,"$$"),Xi(this,"$$set")}$destroy(){xn(this,1),this.$destroy=he}$on(e,n){if(!Fi(n))return he;const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(n),()=>{const o=i.indexOf(n);o!==-1&&i.splice(o,1)}}$set(e){this.$$set&&!Vq(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const Qq="4",il=[];function eR(t,e){return{subscribe:Fr(t,e).subscribe}}function Fr(t,e=he){let n;const i=new Set;function o(l){if(Dq(t,l)&&(t=l,n)){const a=!il.length;for(const c of i)c[1](),il.push(c,t);if(a){for(let c=0;c<il.length;c+=2)il[c][0](il[c+1]);il.length=0}}}function r(l){o(l(t))}function s(l,a=he){const c=[l,a];return i.add(c),i.size===1&&(n=e(o,r)||he),l(t),()=>{i.delete(c),i.size===0&&n&&(n(),n=null)}}return{set:o,update:r,subscribe:s}}function Ms(t,e,n){const i=!Array.isArray(t),o=i?[t]:t;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const r=e.length<2;return eR(n,((s,l)=>{let a=!1;const c=[];let d=0,u=he;const p=()=>{if(d)return;u();const f=e(i?c[0]:c,s,l);r?s(f):u=Fi(f)?f:he},_=o.map(((f,m)=>Ve(f,(g=>{c[m]=g,d&=~(1<<m),a&&p()}),(()=>{d|=1<<m}))));return a=!0,p(),function(){so(_),u(),a=!1}}))}class is{constructor(e,n){Xi(this,"name"),Xi(this,"value"),Xi(this,"store");const i=this.convertValue(n);this.name=e,this.value=i}getName(){return this.name}subscribe(e){return this.store||(this.store=Fr(this.value)),this.store.subscribe(e)}set(e){const n=this.fromString(e);this.setValue(n)}setValue(e){const n=this.convertValue(e);this.value=n,this.store&&this.store.set(n)}getValue(){return this.value}}class n2 extends is{convertValue(e){if(typeof e!="string")throw new Error("Incorrect variable value");return e}fromString(e){return e}getType(){return"string"}}class i2 extends is{convertValue(e){if(typeof e!="bigint"&&typeof e!="number")throw new Error("Incorrect variable value");try{return bo(e)}catch{throw new Error("Incorrect variable value")}}fromString(e){try{return bo(e)}catch{throw new Error("Incorrect variable value")}}getType(){return"integer"}}class o2 extends is{convertValue(e){if(typeof e!="number"||Number.isNaN(e)||!isFinite(e))throw new Error("Incorrect variable value");return e}fromString(e){const n=Number(e);return this.convertValue(n)}getType(){return"number"}}class r2 extends is{convertValue(e){if(e!==1&&e!==0&&e!==!0&&e!==!1)throw new Error("Incorrect variable value");return Number(e)}fromString(e){if(e==="1"||e==="true")return 1;if(e==="0"||e==="false")return 0;throw new Error("Incorrect variable value")}getType(){return"boolean"}}class s2 extends is{convertValue(e){if(typeof e!="string"||!ns(e))throw new Error("Incorrect variable value");return e}fromString(e){return this.convertValue(e)}getType(){return"color"}}class l2 extends is{convertValue(e){if(typeof e!="string")throw new Error("Incorrect variable value");return e}fromString(e){return e}getType(){return"url"}}class a2 extends is{convertValue(e){if(typeof e!="object"||!e)throw new Error("Incorrect variable value");return e}fromString(e){throw new Error("Dict variable does not support setter from string")}getType(){return"dict"}}class c2 extends is{convertValue(e){if(!Array.isArray(e))throw new Error("Incorrect variable value");return e}fromString(e){throw new Error("Array variable does not support setter from string")}getType(){return"array"}}const ru={string:n2,number:o2,integer:i2,boolean:r2,color:s2,url:l2,dict:a2,array:c2};function Ho(t,e,n){if(!(e in ru))throw new Error("Unsupported variable type");return new ru[e](t,n)}function tR(){}function nR(t){return t(this.value),tR}function T_(){throw new Error("Cannot change the value of this type of variable")}class iR extends n2{}class oR extends o2{}class rR extends i2{}class sR extends r2{}class lR extends s2{}class aR extends l2{}class cR extends a2{}class dR extends c2{}class uR extends is{convertValue(e){if(!(e instanceof Date))throw new Error("Incorrect variable value");return e}fromString(){throw new Error("Datetime variable does not support setter from string")}getType(){return"datetime"}}const $c={string:iR,number:oR,integer:rR,boolean:sR,color:lR,url:aR,dict:cR,array:dR,datetime:uR};for(const t in $c){const e=$c[t];e.prototype.subscribe=nR,e.prototype.set=T_,e.prototype.setValue=T_}function su(t,e,n){if(!(e in $c))throw new Error("Unsupported variable type");return new $c[e](t,n)}function pR(t){return{type:t.getType(),value:t.getValue()}}Iq();function _R(t,e){return{type:kt,value:e.value}}function fR(t,e){return{type:Xt,value:e.value}}function mR(t,e){return No(t,e.value),{type:mt,value:e.value}}function gR(t,e){return{type:Ki,value:e.value?1:0}}function hR(t,e){const n=hc(Io(t,e.argument));switch(e.operator){case"!":if(n.type===Ki)return{type:Ki,value:n.value?0:1};co(`${e.operator}${ao(n)}`,"A Boolean is expected after a unary not.");case"+":case"-":const i=e.operator==="+"?1:-1;if(n.type===mt){const o=n.value*bo(i);return No(t,o),{type:mt,value:o}}else{if(n.type===Xt)return{type:Xt,value:n.value*i};co(`${e.operator}${ao(n)}`,`A Number is expected after a unary ${e.operator==="+"?"plus":"minus"}.`)}}}function vR(t,e){const n=hc(Io(t,e.test));if(n.type===Ki)return n.value?Io(t,e.consequent):Io(t,e.alternate);co(`${ao(n)} ? ${ao(Io(t,e.consequent))} : ${ao(Io(t,e.alternate))}`,"Ternary must be called with a Boolean value as a condition.")}function bR(t,e){try{return Io(t,e.test)}catch{return Io(t,e.alternate)}}function yR(t,e){let n="";if(e.quasis.length===2&&e.quasis[0].value===""&&e.quasis[1].value==="")return Io(t,e.expressions[0]);for(let i=0;i<e.expressions.length;++i)n+=e.quasis[i].value,n+=Ws(Io(t,e.expressions[i]));return n+=e.quasis[e.quasis.length-1].value,{type:kt,value:n}}function wR(t,e){const n=hc(Io(t,e.left));if(n.type!==Ki&&co(`${ao(n)} ${e.operator} ...`,`'${e.operator}' must be called with boolean operands.`),e.operator==="||"&&n.value)return n;if(e.operator==="&&"&&!n.value)return{type:Ki,value:0};const i=hc(Io(t,e.right));return i.type!==Ki&&co(`${ao(n)} ${e.operator} ${ao(i)}`,`Operator '${e.operator}' cannot be applied to different types: Boolean and ${Xo(i.type)}.`),{type:Ki,value:i.value}}function $R(t,e,n){let i;return e.type===Ti&&n.type===Ti?i=e.value.getTime()===n.value.getTime():i=e.value===n.value,t==="!="&&(i=!i),{type:Ki,value:i?1:0}}function kR(t,e,n){(e.type!==Xt&&e.type!==mt&&e.type!==Ti||n.type!==Xt&&n.type!==mt&&n.type!==Ti)&&co(`${ao(e)} ${t} ${ao(n)}`,`Operator '${t}' cannot be applied to ${Xo(e.type)} type.`);let i;const o=e.type===Ti?e.value.getTime():e.value,r=n.type===Ti?n.value.getTime():n.value;return t===">"?i=o>r:t===">="?i=o>=r:t==="<"?i=o<r:i=o<=r,{type:Ki,value:i?1:0}}function jR(t,e,n,i){if(n.type!==kt&&n.type!==Xt&&n.type!==mt&&co(`${ao(n)} ${e} ${ao(i)}`,`Operator '${e}' cannot be applied to ${Xo(n.type)} type.`),n.type===kt)return e==="-"&&co(`${ao(n)} - ${ao(i)}`,`Operator '${e}' cannot be applied to ${Xo(n.type)} type.`),{type:kt,value:n.value+i.value};let o=e==="+"?n.value+i.value:n.value-i.value;if(n.type===mt)try{o=Ks(t,o),No(t,o)}catch(r){co(`${ao(n)} ${e} ${ao(i)}`,r.message)}return{type:n.type,value:o}}function SR(t,e,n,i){n.type!==mt&&n.type!==Xt&&co(`${ao(n)} ${e} ${ao(i)}`,`Operator '${e}' cannot be applied to ${Xo(n.type)} type.`);let o;if(e==="*")o=n.value*i.value;else if(e==="/"||e==="%")Number(i.value)===0&&co(`${ao(n)} ${e} ${ao(i)}`,"Division by zero is not supported."),e==="/"?o=n.value/i.value:o=n.value%i.value;else throw new Error(`Unsupported operation ${e}`);if(n.type===mt)try{o=Ks(t,o),No(t,o)}catch(r){co(`${ao(n)} ${e} ${ao(i)}`,r.message)}return{type:n.type,value:o}}function TR(t,e){const n=e.operator;let i=Io(t,e.left),o=Io(t,e.right);if((i.type==="number"&&o.type==="integer"||i.type==="integer"&&o.type==="number")&&(i.type==="integer"?i=Yd(i):o.type==="integer"&&(o=Yd(o))),i.type!==o.type&&co(`${ao(i)} ${e.operator} ${ao(o)}`,`Operator '${n}' cannot be applied to different types: ${Xo(i.type)} and ${Xo(o.type)}.`),n==="=="||n==="!=")return $R(n,i,o);if(n===">"||n===">="||n==="<"||n==="<=")return kR(n,i,o);if(n==="+"||n==="-")return jR(t,n,i,o);if(n==="/"||n==="*"||n==="%")return SR(t,n,i,o);throw new Error(`Unsupported operation ${n}`)}function kc(t){return t.map(ao).join(", ")}function CR(t,e){const n=e.callee.name;let i,o=e.arguments.map((l=>Io(t,l)));const r=n+":"+o.map((l=>l.type)).join("#");let s;if(t.customFunctions&&(s=Zd(t.customFunctions,n,o)),!s||!("func"in s))if(Gd.has(r))s={func:Gd.get(r),conversions:0};else{const l=Zd(Kl,n,o);("func"in l||!s)&&(s=l)}if(s&&(("expected"in s||"type"in s&&s.type==="missing")&&zR(n,o,s),i=s.func,s.conversions&&(o=N1(i,o))),!i)throw new Error("Function not found");try{return i.cb(t,...o)}catch(l){const a=`${n}(${kc(o)})`;co(a,l.message)}}function zR(t,e,n){const i=e.map((a=>Xo(a.type))).join(", "),o=`${t}(${kc(e)})`,r=Kl.get(t)||[],s=r[0],l=r.length>1;if(n.type==="few"&&e.length===0&&l)co(o,"Function requires non empty argument list.");else if(s&&(n.type==="many"||n.type==="few"||n.type==="mismatch"))if(l)co(o,`Function has no matching overload for given argument types: ${i}.`);else if(n.type==="many"||n.type==="few")s.args.some((a=>typeof a=="object"&&a.isVararg))?co(o,`At least ${s.args.length} argument(s) expected.`):co(o,`Exactly ${s.args.length} argument(s) expected.`);else{const a=s.args.map((c=>Xo(typeof c=="string"?c:c.type))).join(", ");co(o,`Invalid argument type: expected ${a}, got ${i}.`)}else co(o,`Unknown function name: ${t}.`)}function ER(t,e){const n=e.method.name;let i,o=[e.object,...e.arguments].map((s=>Io(t,s)));const r=n+":"+o.map((s=>s.type)).join("#");if(Xd.has(r))i=Xd.get(r);else{const s=Zd(Ha,n,o);if("expected"in s||"type"in s&&s.type==="missing"){const l=o.slice(1).map((c=>Xo(c.type))).join(", "),a=`${n}(${kc(o.slice(1))})`;s.type==="few"&&o.length===1?co(a,"Method requires non empty argument list."):s.type==="many"?co(a,`Method has no matching overload for given argument types: ${l}.`):s.type==="few"||s.type==="mismatch"?co(a,`Method has no matching overload for given argument types: ${l}.`):co(a,`Unknown method name: ${n}.`)}i=s.func,s.conversions&&(o=N1(i,o))}if(!i)throw new Error("Method not found");try{return i.cb(t,...o)}catch(s){const l=`${n}(${kc(o.slice(1))})`;co(l,s.message)}}function AR(t,e){const n=e.id.name,i=t.variables.get(n);if(i)return pR(i);throw new Error(`Variable '${n}' is missing.`)}const C_={StringLiteral:_R,NumberLiteral:fR,IntegerLiteral:mR,BooleanLiteral:gR,UnaryExpression:hR,ConditionalExpression:vR,TryExpression:bR,TemplateLiteral:yR,LogicalExpression:wR,BinaryExpression:TR,CallExpression:CR,MethodExpression:ER,Variable:AR};function Io(t,e){if(e.type in C_)return C_[e.type](t,e);throw new Error("Unsupported expression")}function ia(t,e,n,i,o){try{const r={variables:t,customFunctions:e,warnings:[],store:n,weekStartDay:(o==null?void 0:o.weekStartDay)||0};return{result:Io(r,i),warnings:r.warnings}}catch(r){return{result:{type:"error",value:r.message},warnings:[]}}}typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Qq);const OR="divkit-6d515",MR="divkit-27458",PR="divkit-82db1",IR="divkit-be734",DR="divkit-9a652",ai={root_platform_desktop:OR,root__clickable:MR,"root__clickable-no-transition":"divkit-3bb57",root:PR,"root__any-actions":"divkit-3b9c1",root__selectable:IR,root__unselectable:DR,"root_restrict-scroll":"divkit-0a135","root_disabled-context-menu":"divkit-f5cb3"},vo=Symbol("root"),VR="divkit-bf0ea",LR="divkit-27458",FR="divkit-05991",NR="divkit-80cac",qR="divkit-90c49",RR="divkit-b33bc",BR="divkit-f6ff9",jc={outer:VR,root__clickable:LR,"root__clickable-no-transition":"divkit-3bb57","outer_hide-on-transition-in":"divkit-c5f24","outer_halign-self_start":"divkit-002ec","outer_halign-self_center":"divkit-204f8","outer_halign-self_end":"divkit-bd7ba","outer_halign-self_stretch":"divkit-02d12","outer_valign-self_start":"divkit-fd8aa","outer_valign-self_center":"divkit-62df2","outer_valign-self_end":"divkit-819a0","outer_valign-self_stretch":"divkit-8a331","outer_parent-flex_vertical":"divkit-46b27","outer_parent-flex_horizontal":"divkit-be075","outer_valign-self_baseline":"divkit-2b876",outer_width_content:FR,outer_height_content:NR,"outer_width-constrained":"divkit-5bdb7","outer_parent-grid":"divkit-47ef2","outer_height-constrained":"divkit-351c8","outer_parent-overlap":"divkit-747b0","outer_scroll-snap_center":"divkit-c525d","outer_scroll-snap_start":"divkit-91fd4",outer__border:qR,outer_visibility_invisible:RR,outer_visibility_gone:BR,"outer_has-action-animation":"divkit-4d4f3","outer_has-custom-focus":"divkit-b630e"};function qn(t){if(!t)return;let e="";for(const n in t)if(t.hasOwnProperty(n)){if(!t[n]&&t[n]!==0)continue;e&&(e+=";"),e+=n+":"+String(t[n])}return e||void 0}function At(t){if(typeof t!="number"&&typeof t!="string"||!t)return"0";const e=Number(t);return Number.isNaN(e)?"0":Math.ceil(e*1e3)/1e4+"em"}function Uo(t){let e=At(t);return e==="0"&&(e+="em"),e}function lu(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 os=Boolean;function id(t){if(t.length===1&&t[0].type==="solid")return JR({bg:t[0]});const e=t.map((n=>{if(n.type==="solid")return HR({bg:n});if(n.type==="gradient")return UR({bg:n});if(n.type==="image")return YR({bg:n});if(n.type==="radial_gradient")return KR({bg:n})})).filter(os).reverse().reduce((function(n,i){return n.image.push(i.image),n.size.push(i.size||"auto"),n.position.push(i.pos||"50% 50%"),n}),{image:[],size:[],position:[]});return{image:e.image.join(","),size:e.size.join(","),position:e.position.join(",")}}function HR(t){const e=Ri(t.bg.color||"transparent");return{size:void 0,pos:void 0,image:`linear-gradient(to bottom,${e},${e})`}}function JR(t){return{color:Ri(t.bg.color||"transparent"),size:"auto",position:"50% 50%"}}function UR(t){var e;if(!Array.isArray((e=t.bg)==null?void 0:e.colors))return;const n=t.bg.colors.filter(os);if(n.length)return{size:void 0,pos:void 0,image:"linear-gradient("+(90-Number(t.bg.angle||0)+"deg")+","+n.map((i=>Ri(i))).join(",")+")"}}const WR={nearest_corner:"closest-corner",farthest_corner:"farthest-corner",nearest_side:"closest-side",farthest_side:"farthest-side"};function z_(t){if(t&&typeof t=="object"&&"type"in t&&t.value!==void 0){if(t.type==="fixed")return Uo(t.value);if(t.type==="relative")return`${Number(t.value)*100}%`}return"50%"}function KR(t){var e;if(!Array.isArray((e=t.bg)==null?void 0:e.colors))return;const n=t.bg.colors.filter(os);if(!n.length)return;const i=t.bg.radius;let o;i&&typeof i=="object"&&"type"in i&&i.value!==void 0&&(i.type==="fixed"?o=Uo(i.value):i.type==="relative"&&(o=WR[i.value]));const r=z_(t.bg.center_x),s=z_(t.bg.center_y);return{size:void 0,pos:void 0,image:`radial-gradient(circle ${o||"farthest-corner"} at ${r} ${s},`+n.map((l=>Ri(l))).join(",")+")"}}function YR(t){var e;const n=(e=t.bg)==null?void 0:e.image_url;if(n)return{size:d2(t.bg.scale),pos:u2(t.bg),image:'url("'+lu(n)+'")'}}function d2(t){return t==="fit"?"contain":t==="stretch"?"fill":t==="no_scale"?"none":"cover"}function u2(t){let e,n;return t.content_alignment_horizontal==="left"?e="0%":t.content_alignment_horizontal==="right"?e="100%":e="50%",t.content_alignment_vertical==="top"?n="0%":t.content_alignment_vertical==="bottom"?n="100%":n="50%",e+" "+n}function uo(t,e){const n=Number(t);return Number.isNaN(n)||n<0?e:n}function E_(t,e,n){return typeof e=="number"&&(t&&e>0&&e<=100||!t&&e>=0&&e<100)?e:n}function GR(t){return t.is_enabled!==0&&t.is_enabled!==!1&&t.index!==void 0}function XR(t,{visibilityActions:e,disappearActions:n,rootCtx:i,componentContext:o}){const r=[];e&&e.forEach((_=>{r.push({type:"visibility",index:r.length,action:_,visible:!1,count:0,finished:!1})})),n&&n.forEach((_=>{r.push({type:"disappear",index:r.length,action:_,visible:!1,count:0,finished:!1})}));const s=r.map(((_,f)=>{const m=_.type==="visibility";return o.getDerivedFromVars({index:f,visibility_percentage:_.action.visibility_percentage,visibility_duration:m?_.action.visibility_duration:_.action.disappear_duration,log_limit:_.action.log_limit,is_enabled:_.action.is_enabled})}));let l;const a=()=>{l&&l.disconnect(),r.forEach((_=>{_.timer&&clearTimeout(_.timer)}))},c=Ms(s,(_=>_));let d;const u=_=>{const f=_.type==="visibility",m=o.getJsonWithVars(_.action);o.execAnyActions([m],{logType:f?"visible":"disappear",node:t,processUrls:!1})},p=c.subscribe((_=>{d=_.filter(GR);const f={};d.forEach((v=>{f[v.index]=v})),a();const m=[...new Set(d.map((v=>{const y=r[v.index].type==="visibility";return E_(y,v.visibility_percentage,y?50:0)/100})))];if(!m.length)return;const g=v=>{v.forEach((y=>{d.forEach((b=>{const w=r[b.index],k=w.type==="visibility",A=E_(k,b.visibility_percentage,k?50:0);let j;A===0?j=y.intersectionRatio>=1e-12:j=y.intersectionRatio>=A/100,(k?!w.visible&&j:w.visible&&!j)?w.finished||(w.timer=setTimeout((()=>{++w.count;const T=b.log_limit===0?1/0:b.log_limit||1;++w.count>=T&&(w.finished=!0),u(w)}),uo(b.visibility_duration,800))):(k?!j:j)&&w.timer&&clearTimeout(w.timer),w.visible=j}))}))};l=new IntersectionObserver(g,{threshold:m}),l.observe(t)}));return{destroy(){d==null||d.forEach((_=>{const f=r[_.index];!f||f.type!=="disappear"||!f.visible||f.finished||i.registerTimeout(window.setTimeout((()=>{u(f)}),_.visibility_duration))})),a(),p()}}}function A_(t,e){e&&t.push(e)}function kn(t,e,n){const i=[];A_(i,e[t]);for(const o in n)if(n.hasOwnProperty(o)){const r=n[o];if(r){const s=`${t}_${o}`+(typeof r=="string"?`_${r}`:"");A_(i,e[s])}}return i.join(" ")}function ZR(t,e,n){var i;return(i=e.componentDevtool)==null||i.call(e,{type:"mount",node:t,json:n.json,origJson:n.origJson,templateContext:n.templateContext}),{update(o){var r;(r=e.componentDevtool)==null||r.call(e,{type:"update",node:t,json:o.json,origJson:o.origJson,templateContext:o.templateContext})},destroy(){var o;(o=e.componentDevtool)==null||o.call(e,{type:"destroy",node:t,json:n.json,origJson:n.origJson,templateContext:n.templateContext})}}}const p2=ZR,qu=Symbol("state");function qr(t,e){var n,i;const o=t.top||0,r=((n=e==="ltr"?t.end:t.start)!=null?n:t.right)||0,s=t.bottom||0,l=((i=e==="ltr"?t.start:t.end)!=null?i:t.left)||0;return o===0&&r===0&&s===0&&l===0?"":At(o)+" "+At(r)+" "+At(s)+" "+At(l)}function od(t){if(typeof t!="number"&&typeof t!="string")return!1;const e=Number(t);return!Number.isNaN(e)}function Wo(t){return od(t)&&t>=0}function oa(t,e,n){var i,o;if(!t)return n;const r=[t.top,(i=e==="ltr"?t.end:t.start)!=null?i:t.right,t.bottom,(o=e==="ltr"?t.start:t.end)!=null?o:t.left];for(let s=0;s<r.length;++s)if(r[s]&&!Wo(r[s]))return n;return qr(t,e)}function xR(t,e){return!Wo(t)||t===void 0||t>1?e:Number(t)}const QR=Object.prototype.hasOwnProperty;function Ru(t,e){if(Object.is(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return Object.is(t,e);const n=Object.keys(t),i=Object.keys(e);if(n.length!==i.length)return!1;for(let o=0;o<n.length;o++){const r=n[o];if(!QR.call(e,r)||!Ru(t[r],e[r]))return!1}return!0}function us(t,e){return Ru(t,e)?e:t}function eB(t,e){return t==="visible"||t==="invisible"||t==="gone"?t:e}function _2(t,e){return t==="linear"||t==="ease"||t==="ease_in_out"||t==="ease_in"||t==="ease_out"?t:e}function cl(t,e){const n=Number(t);return Number.isNaN(n)?e:n}function Bu(t){const e=[];return t.name==="set"?(t.items||[]).forEach((n=>{e.push(...Bu(n))})):e.push(t),e}function ya(t,e){if(!t||typeof t!="object")return e;const n=["top","right","bottom","left"];for(let i=0;i<n.length;++i)if(t[n[i]]&&!Wo(t[n[i]]))return e;return t}function tB(t,e){if(!t&&!e)return{};if(!e)return t;if(!t)return e;const n={};return["top","right","bottom","left","start","end"].forEach((i=>{const o=t[i];o&&(n[i]=o);const r=e[i];r&&(n[i]=(n[i]||0)+r)})),n}function nB(t,e){const n=[t["top-left"],t["top-right"],t["bottom-right"],t["bottom-left"]];for(let i=0;i<n.length;++i)if(n[i]&&!Wo(n[i]))return e;return t}function oc(t,e=0,n=10){return[t["top-left"],t["top-right"],t["bottom-right"],t["bottom-left"]].map((i=>At((i||e)/n*10))).join(" ")}function iB(t){var e,n,i,o,r,s;return At(((n=(e=t.offset)==null?void 0:e.x)==null?void 0:n.value)||0)+" "+At(((o=(i=t.offset)==null?void 0:i.y)==null?void 0:o.value)||0)+" "+At((r=t.blur)!=null?r:2)+" "+Ri(t.color||"#000000",(s=t.alpha)!=null?s:.19)}function oB(t,e){var n,i,o,r,s,l;return"drop-shadow("+Ri(t.color||"#000000",(n=t.alpha)!=null?n:.19)+" "+At((((o=(i=t.offset)==null?void 0:i.x)==null?void 0:o.value)||0)*10/e)+" "+At((((s=(r=t.offset)==null?void 0:r.y)==null?void 0:s.value)||0)*10/e)+" "+At(((l=t.blur)!=null?l:2)*10/e)+")"}function Bo(t){return t.is_enabled!==0&&t.is_enabled!==!1}let jd;function rd(){return typeof matchMedia>"u"?!1:(jd||(jd=window.matchMedia("(prefers-reduced-motion)")),jd.matches)}const rB=8,sB=(t,e,n,i)=>{let o;return(n||i)&&typeof ResizeObserver<"u"&&(o=new ResizeObserver((async()=>{let r=0;const s={},l=(c,d)=>{if(c){const u=e.getVariable(c,"integer");if(u){if(d=Math.round(d),s[c]||(s[c]=new Set),!s[c].has(d))return u.setValue(d),s[c].add(d),!0}else{const p=new Error("Missing variable");p.level="error",p.additional={variableName:c},e.logError(p)}}return!1},a=()=>{if(!t)return!1;const c=t.getBoundingClientRect(),d=l(n,c.width),u=l(i,c.height);return d||u};for(;a();){if(++r>rB){const c=new Error("Recursive layout in size_provider");c.level="warn",c.additional={widthVariableName:n,heightVariableName:i},e.logError(c);break}await Fo()}})),o.observe(t)),o},Hu=Symbol("enabled");function br(t,e){return t===1||t===0||t===!1||t===!0?!!t:e}const lB="divkit-ee5cc",O_={actionable__button:lB};function aB(){}const Sc=Symbol("action");function au(t){if(t.startsWith("tel:"))return"tel";const e=/^([^/]+):\/\//.exec(t);return e&&e[1]||""}function cu(t,e){return e.has(t)}function cB(t){var e;let n,i,o,r,s;const l=t[26].default,a=Zc(l,t,t[25],null);let c=[{class:i=t[1]+" "+((e=t[0])!=null&&e.length?ai["root_disabled-context-menu"]:"")+" "+(t[11]?ai["root__any-actions"]:"")},{style:t[2]},{role:t[9]},{"aria-checked":t[12]},t[3]],d={};for(let u=0;u<c.length;u+=1)d=Gs(d,c[u]);return{c(){n=Zt("span"),a&&a.c(),$r(n,d)},m(u,p){st(u,n,p),a&&a.m(n,null),t[38](n),o=!0,r||(s=[td(t[4].call(null,n)),en(n,"click",t[33]),en(n,"keydown",t[13]),en(n,"focus",t[34]),en(n,"blur",t[35])],r=!0)},p(u,p){var _;a&&a.p&&(!o||p[0]&33554432)&&Qc(a,l,u,u[25],o?xc(l,u[25],p,null):ed(u[25]),null),$r(n,d=Pl(c,[(!o||p[0]&2051&&i!==(i=u[1]+" "+((_=u[0])!=null&&_.length?ai["root_disabled-context-menu"]:"")+" "+(u[11]?ai["root__any-actions"]:"")))&&{class:i},(!o||p[0]&4)&&{style:u[2]},(!o||p[0]&512)&&{role:u[9]},(!o||p[0]&4096)&&{"aria-checked":u[12]},p[0]&8&&u[3]]))},i(u){o||(Ue(a,u),o=!0)},o(u){nt(a,u),o=!1},d(u){u&&ot(n),a&&a.d(u),t[38](null),r=!1,so(s)}}}function dB(t){var e;let n,i,o,r,s;const l=t[26].default,a=Zc(l,t,t[25],null);let c=[{class:i=t[1]+" "+O_.actionable__button+" "+ai["root__any-actions"]+` ${t[5]?ai.root__clickable:ai["root__clickable-no-transition"]} ${ai.root__unselectable} `+((e=t[0])!=null&&e.length?ai["root_disabled-context-menu"]:"")},{style:t[2]},{role:t[9]},{"aria-checked":t[12]},{type:"button"},t[3]],d={};for(let u=0;u<c.length;u+=1)d=Gs(d,c[u]);return{c(){n=Zt("button"),a&&a.c(),$r(n,d)},m(u,p){st(u,n,p),a&&a.m(n,null),n.autofocus&&n.focus(),t[37](n),o=!0,r||(s=[td(t[4].call(null,n)),en(n,"click",t[30]),en(n,"keydown",t[13]),en(n,"focus",t[31]),en(n,"blur",t[32])],r=!0)},p(u,p){var _;a&&a.p&&(!o||p[0]&33554432)&&Qc(a,l,u,u[25],o?xc(l,u[25],p,null):ed(u[25]),null),$r(n,d=Pl(c,[(!o||p[0]&35&&i!==(i=u[1]+" "+O_.actionable__button+" "+ai["root__any-actions"]+` ${u[5]?ai.root__clickable:ai["root__clickable-no-transition"]} ${ai.root__unselectable} `+((_=u[0])!=null&&_.length?ai["root_disabled-context-menu"]:"")))&&{class:i},(!o||p[0]&4)&&{style:u[2]},(!o||p[0]&512)&&{role:u[9]},(!o||p[0]&4096)&&{"aria-checked":u[12]},{type:"button"},p[0]&8&&u[3]]))},i(u){o||(Ue(a,u),o=!0)},o(u){nt(a,u),o=!1},d(u){u&&ot(n),a&&a.d(u),t[37](null),r=!1,so(s)}}}function uB(t){var e;let n,i,o,r,s;const l=t[26].default,a=Zc(l,t,t[25],null);let c=[{href:t[7]},{target:t[10]},{style:t[2]},{role:t[9]},{"aria-checked":t[12]},{class:i=t[1]+" "+ai["root__any-actions"]+" "+(t[5]?ai.root__clickable:ai["root__clickable-no-transition"])+" "+((e=t[0])!=null&&e.length?ai["root_disabled-context-menu"]:"")},t[3]],d={};for(let u=0;u<c.length;u+=1)d=Gs(d,c[u]);return{c(){n=Zt("a"),a&&a.c(),$r(n,d)},m(u,p){st(u,n,p),a&&a.m(n,null),t[36](n),o=!0,r||(s=[td(t[4].call(null,n)),en(n,"click",t[27]),en(n,"keydown",t[13]),en(n,"focus",t[28]),en(n,"blur",t[29])],r=!0)},p(u,p){var _;a&&a.p&&(!o||p[0]&33554432)&&Qc(a,l,u,u[25],o?xc(l,u[25],p,null):ed(u[25]),null),$r(n,d=Pl(c,[(!o||p[0]&128)&&{href:u[7]},(!o||p[0]&1024)&&{target:u[10]},(!o||p[0]&4)&&{style:u[2]},(!o||p[0]&512)&&{role:u[9]},(!o||p[0]&4096)&&{"aria-checked":u[12]},(!o||p[0]&35&&i!==(i=u[1]+" "+ai["root__any-actions"]+" "+(u[5]?ai.root__clickable:ai["root__clickable-no-transition"])+" "+((_=u[0])!=null&&_.length?ai["root_disabled-context-menu"]:"")))&&{class:i},p[0]&8&&u[3]]))},i(u){o||(Ue(a,u),o=!0)},o(u){nt(a,u),o=!1},d(u){u&&ot(n),a&&a.d(u),t[36](null),r=!1,so(s)}}}function pB(t){let e,n,i,o;const r=[uB,dB,cB],s=[];function l(a,c){return a[7]?0:a[8]?1:2}return e=l(t),n=s[e]=r[e](t),{c(){n.c(),i=si()},m(a,c){s[e].m(a,c),st(a,i,c),o=!0},p(a,c){let d=e;e=l(a),e===d?s[e].p(a,c):(ui(),nt(s[d],1,1,(()=>{s[d]=null})),pi(),n=s[e],n?n.p(a,c):(n=s[e]=r[e](a),n.c()),Ue(n,1),n.m(i.parentNode,i))},i(a){o||(Ue(n),o=!0)},o(a){nt(n),o=!1},d(a){a&&ot(i),s[e].d(a)}}}const M_=8,P_=400,Sd=400,_B=new Set(["button","image","checkbox","radio"]);function fB(t,e,n){let{$$slots:i={},$$scope:o}=e,{componentContext:r}=e,{id:s=""}=e,{actions:l=void 0}=e,{doubleTapActions:a=void 0}=e,{longTapActions:c=void 0}=e,{pressStartActions:d=void 0}=e,{pressEndActions:u=void 0}=e,{hoverStartActions:p=void 0}=e,{hoverEndActions:_=void 0}=e,{cls:f=""}=e,{style:m=null}=e,{attrs:g=void 0}=e,{use:v=aB}=e,{customAction:y=null}=e,{isNativeActionAnimation:b=!0}=e,{hasInnerFocusable:w=!1}=e,{customAccessibility:k=void 0}=e;const A=ro(vo),j=ro(Sc);Ss(Sc,{hasAction(){return!!(j.hasAction()||l!=null&&l.length)}});let T,E="",O,M=-1,D=-1,R=null,J=!1,B=!1,z=!1,q,N,Y,x;function ce(){return(l==null?void 0:l.some((fe=>{if(fe!=null&&fe.typed)return!0;const me=fe==null?void 0:fe.url;if(!me)return!1;const ve=au(me);return ve&&!cu(ve,A.getBuiltinProtocols())})))||!1}async function ue(fe,me){l&&(fe&&ce()&&fe.preventDefault(),r.execAnyActions(l,{node:T,processUrls:me}))}async function Z(fe){if(j.hasAction()||fe.button!==void 0&&fe.button!==0)return;const me=Date.now();if(M>0&&me>M+P_){fe.preventDefault();return}if(a!=null&&a.length&&D>0&&me-D<Sd){fe.preventDefault(),r.execAnyActions(a,{processUrls:!0,node:T}),D=-1;return}if(D=me,a!=null&&a.length&&M>0&&me<M+Sd){fe.preventDefault(),clearTimeout(N),N=window.setTimeout((()=>{ue(void 0,!0)}),Sd);return}(y==null?void 0:y(fe))===!1?fe.preventDefault():ue(fe,!1)}function Q(fe){j.hasAction()||(R={x:fe.clientX,y:fe.clientY},J=!1,M=Date.now(),q&&clearTimeout(q),clearTimeout(N),r.execAnyActions(d,{node:T}))}function se(fe){R&&(Math.abs(R.x-fe.clientX)>M_||Math.abs(R.y-fe.clientY)>M_)&&(J=!0)}function _e(fe){j.hasAction()||!R||M<0||(!J&&Date.now()-M>=P_&&(fe.stopImmediatePropagation(),r.execAnyActions(c,{processUrls:!0,node:T})),q&&clearTimeout(q),q=window.setTimeout((()=>{R=null,M=-1}),100),r.execAnyActions(u,{node:T}))}function Oe(){j.hasAction()||r.execAnyActions(p,{node:T})}function W(){j.hasAction()||r.execAnyActions(_,{node:T})}function ge(fe){const me=fe.target;me instanceof HTMLElement&&(me.tagName==="INPUT"||me.contentEditable==="true")||fe.ctrlKey||fe.metaKey||fe.altKey||fe.shiftKey||fe.key==="Enter"&&Array.isArray(l)&&l.length&&(r.execAnyActions(l),fe.preventDefault())}Sr((()=>{s&&!w&&A.registerFocusable(s,{focus(){T&&(E||B)&&T.focus()}})})),jo((()=>{typeof window<"u"&&(window.removeEventListener("pointermove",se),window.removeEventListener("pointerup",_e),window.removeEventListener("pointercancel",_e)),s&&!w&&A.unregisterFocusable(s),q&&clearTimeout(q),N&&clearTimeout(N)}));function it(fe){Zr.call(this,t,fe)}function ye(fe){Zr.call(this,t,fe)}function rt(fe){Zr.call(this,t,fe)}function U(fe){Zr.call(this,t,fe)}function de(fe){Zr.call(this,t,fe)}function pe(fe){Zr.call(this,t,fe)}function et(fe){Zr.call(this,t,fe)}function we(fe){Zr.call(this,t,fe)}function Ie(fe){Zr.call(this,t,fe)}function Xe(fe){Wi[fe?"unshift":"push"]((()=>{T=fe,n(6,T)}))}function vt(fe){Wi[fe?"unshift":"push"]((()=>{T=fe,n(6,T)}))}function Qe(fe){Wi[fe?"unshift":"push"]((()=>{T=fe,n(6,T)}))}return t.$$set=fe=>{"componentContext"in fe&&n(14,r=fe.componentContext),"id"in fe&&n(15,s=fe.id),"actions"in fe&&n(16,l=fe.actions),"doubleTapActions"in fe&&n(17,a=fe.doubleTapActions),"longTapActions"in fe&&n(0,c=fe.longTapActions),"pressStartActions"in fe&&n(18,d=fe.pressStartActions),"pressEndActions"in fe&&n(19,u=fe.pressEndActions),"hoverStartActions"in fe&&n(20,p=fe.hoverStartActions),"hoverEndActions"in fe&&n(21,_=fe.hoverEndActions),"cls"in fe&&n(1,f=fe.cls),"style"in fe&&n(2,m=fe.style),"attrs"in fe&&n(3,g=fe.attrs),"use"in fe&&n(4,v=fe.use),"customAction"in fe&&n(22,y=fe.customAction),"isNativeActionAnimation"in fe&&n(5,b=fe.isNativeActionAnimation),"hasInnerFocusable"in fe&&n(23,w=fe.hasInnerFocusable),"customAccessibility"in fe&&n(24,k=fe.customAccessibility),"$$scope"in fe&&n(25,o=fe.$$scope)},t.$$.update=()=>{if(t.$$.dirty[0]&4276352){if(Array.isArray(l)&&l!=null&&l.length)for(let fe=0;fe<l.length;++fe){const me=l[fe].url;if(me){n(7,E=me),n(10,O=l[fe].target||void 0);break}}Array.isArray(l)&&l!=null&&l.length&&j.hasAction()&&(n(7,E=""),r.logError(tt(new Error("Actionable element is forbidden inside other actionable element"),{level:"warn",additional:{actions:l}}))),n(8,B=!!y),E&&!cu(au(E),A.getBuiltinProtocols())?(n(7,E=""),n(8,B=!0)):!E&&Array.isArray(l)&&l!=null&&l.length&&(n(8,B=!0),l.some((fe=>fe.url||fe.typed||fe.menu_items))||r.logError(tt(new Error("The component has a list of actions, but does not have a real action"),{level:"warn",additional:{actions:l}})))}t.$$.dirty[0]&16778112&&(k!=null&&k.type&&_B.has(k.type)?n(9,Y=k.type):E?n(9,Y=void 0):B&&n(9,Y="button"),(Y==="checkbox"||Y==="radio")&&typeof(k==null?void 0:k.is_checked)=="boolean"?n(12,x=k.is_checked):n(12,x=void 0)),t.$$.dirty[0]&4063681&&T&&(E||B||a!=null&&a.length?T.addEventListener("click",Z):T.removeEventListener("click",Z),a!=null&&a.length||c!=null&&c.length||d!=null&&d.length||u!=null&&u.length?(T.addEventListener("pointerdown",Q,{passive:!0}),window.addEventListener("pointermove",se,{passive:!0}),window.addEventListener("pointerup",_e,{passive:!0}),window.addEventListener("pointercancel",_e,{passive:!0})):(T.removeEventListener("pointerdown",Q),window.removeEventListener("pointerup",_e),window.removeEventListener("pointermove",se),window.removeEventListener("pointercancel",_e)),p!=null&&p.length?T.addEventListener("pointerenter",Oe):T.removeEventListener("pointerenter",Oe),_!=null&&_.length?T.addEventListener("pointerleave",W):T.removeEventListener("pointerleave",W),n(11,z=!!(E||B||a!=null&&a.length||c!=null&&c.length||d!=null&&d.length||u!=null&&u.length||p!=null&&p.length||_!=null&&_.length)))},[c,f,m,g,v,b,T,E,B,Y,O,z,x,ge,r,s,l,a,d,u,p,_,y,w,k,o,i,it,ye,rt,U,de,pe,et,we,Ie,Xe,vt,Qe]}class sd extends Qi{constructor(e){super(),xi(this,e,fB,pB,Pi,{componentContext:14,id:15,actions:16,doubleTapActions:17,longTapActions:0,pressStartActions:18,pressEndActions:19,hoverStartActions:20,hoverEndActions:21,cls:1,style:2,attrs:3,use:4,customAction:22,isNativeActionAnimation:5,hasInnerFocusable:23,customAccessibility:24},null,[-1,-1])}}const Ts={"outer-background":"divkit-7b038","outer-background_clip":"divkit-8fdbd","outer-background__item":"divkit-f9881","outer-background__item_hidden":"divkit-ea047"};function Zo(t){return od(t)&&t>0}function f2(t,e){return t.map((n=>{if(!n){e(tt(new Error("Incorrect filter"),{level:"warn"}));return}if(n.type==="blur"){if(Zo(n.radius))return`blur(${Uo(n.radius/2)})`}else{if(n.type==="rtl_mirror")return;e(tt(new Error("Unknown filter"),{level:"warn",additional:{filter:n.type}}))}})).filter(Boolean).join(" ")}function I_(t,e,n){const i=t.slice();return i[6]=e[n],i}function mB(t){let e,n;return{c(){e=Zt("span"),K(e,"class",Ts["outer-background__item"]),K(e,"style",n=qn(t[6].style))},m(i,o){st(i,e,o)},p(i,o){o&2&&n!==(n=qn(i[6].style))&&K(e,"style",n)},d(i){i&&ot(e)}}}function gB(t){let e,n,i,o,r;return{c(){e=Zt("img"),sr(e.src,n=t[6].image_url)||K(e,"src",n),K(e,"alt",""),K(e,"aria-hidden","true"),K(e,"loading","lazy"),K(e,"decoding","async"),K(e,"class",Ts["outer-background__item"]),K(e,"style",i=qn(t[6].style))},m(s,l){st(s,e,l),o||(r=en(e,"error",t[2]),o=!0)},p(s,l){l&2&&!sr(e.src,n=s[6].image_url)&&K(e,"src",n),l&2&&i!==(i=qn(s[6].style))&&K(e,"style",i)},d(s){s&&ot(e),o=!1,r()}}}function D_(t){let e;function n(r,s){return r[6].image_url?gB:mB}let i=n(t),o=i(t);return{c(){o.c(),e=si()},m(r,s){o.m(r,s),st(r,e,s)},p(r,s){i===(i=n(r))&&o?o.p(r,s):(o.d(1),o=i(r),o&&(o.c(),o.m(e.parentNode,e)))},d(r){r&&ot(e),o.d(r)}}}function hB(t){let e,n,i=ci(t[1]),o=[];for(let r=0;r<i.length;r+=1)o[r]=D_(I_(t,i,r));return{c(){e=Zt("span");for(let r=0;r<o.length;r+=1)o[r].c();K(e,"class",n=Ts["outer-background"]+(t[0]?" "+Ts["outer-background_clip"]:"")),He(e,"border-radius",t[0])},m(r,s){st(r,e,s);for(let l=0;l<o.length;l+=1)o[l]&&o[l].m(e,null)},p(r,[s]){if(s&6){i=ci(r[1]);let l;for(l=0;l<i.length;l+=1){const a=I_(r,i,l);o[l]?o[l].p(a,s):(o[l]=D_(a),o[l].c(),o[l].m(e,null))}for(;l<o.length;l+=1)o[l].d(1);o.length=i.length}s&1&&n!==(n=Ts["outer-background"]+(r[0]?" "+Ts["outer-background_clip"]:""))&&K(e,"class",n),s&1&&He(e,"border-radius",r[0])},i:he,o:he,d(r){r&&ot(e),To(o,r)}}}function vB(t,e,n){let i,{direction:o}=e,{componentContext:r}=e,{background:s=[]}=e,{radius:l=""}=e;function a(c){c.target&&"classList"in c.target&&c.target.classList.add(Ts["outer-background__item_hidden"])}return t.$$set=c=>{"direction"in c&&n(3,o=c.direction),"componentContext"in c&&n(4,r=c.componentContext),"background"in c&&n(5,s=c.background),"radius"in c&&n(0,l=c.radius)},t.$$.update=()=>{t.$$.dirty&56&&n(1,i=s.map((c=>{const d={},u={style:d};if(c.type==="nine_patch_image"&&c.insets)d["border-image"]=`url("${c.image_url}") ${c.insets.top||0} ${c.insets.right||0} ${c.insets.bottom||0} ${c.insets.left||0} fill`,d["border-image-width"]="auto";else{const p=id([c]);c.type==="solid"&&(d["background-color"]=p.color),c.type==="gradient"&&(d["background-image"]=p.image),c.type==="image"&&(d.opacity=Number(c.alpha),u.image_url=c.image_url,d["object-fit"]=p.size,d["object-position"]=p.position,Array.isArray(c.filters)&&c.filters.length&&(d.filter=f2(c.filters,r.logError),o==="rtl"&&c.filters.some((_=>_.type==="rtl_mirror"))&&(d.transform="scale(-1,1)")))}return u})))},[l,i,a,o,r,s]}class bB extends Qi{constructor(e){super(),xi(this,e,vB,hB,Pi,{direction:3,componentContext:4,background:5,radius:0})}}const yB=t=>({hasCustomFocus:t[0]&4096}),V_=t=>({focusHandler:t[49],blurHandler:t[50],hasCustomFocus:t[12]});function L_(t){let e,n;return e=new sd({props:{componentContext:t[0],id:t[0].json.id,use:t[48],cls:t[1]+" "+kn("outer",jc,t[23]),style:qn(t[22]),actions:t[19],doubleTapActions:t[20],longTapActions:t[21],pressStartActions:t[7],pressEndActions:t[8],hoverStartActions:t[9],hoverEndActions:t[10],attrs:t[15],hasInnerFocusable:t[2],isNativeActionAnimation:!t[11].length||q_(t[11]),customAccessibility:t[13],$$slots:{default:[wB]},$$scope:{ctx:t}}}),e.$on("focus",t[49]),e.$on("blur",t[50]),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o[0]&1&&(r.componentContext=i[0]),o[0]&1&&(r.id=i[0].json.id),o[0]&8388610&&(r.cls=i[1]+" "+kn("outer",jc,i[23])),o[0]&4194304&&(r.style=qn(i[22])),o[0]&524288&&(r.actions=i[19]),o[0]&1048576&&(r.doubleTapActions=i[20]),o[0]&2097152&&(r.longTapActions=i[21]),o[0]&128&&(r.pressStartActions=i[7]),o[0]&256&&(r.pressEndActions=i[8]),o[0]&512&&(r.hoverStartActions=i[9]),o[0]&1024&&(r.hoverEndActions=i[10]),o[0]&32768&&(r.attrs=i[15]),o[0]&4&&(r.hasInnerFocusable=i[2]),o[0]&2048&&(r.isNativeActionAnimation=!i[11].length||q_(i[11])),o[0]&8192&&(r.customAccessibility=i[13]),o[0]&86137|o[4]&1024&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function F_(t){let e,n;return e=new bB({props:{componentContext:t[0],direction:t[14],background:t[5],radius:t[4]}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o[0]&1&&(r.componentContext=i[0]),o[0]&16384&&(r.direction=i[14]),o[0]&32&&(r.background=i[5]),o[0]&16&&(r.radius=i[4]),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function N_(t){let e,n;return{c(){e=Zt("span"),K(e,"class",jc.outer__border),K(e,"style",n=qn(t[3]))},m(i,o){st(i,e,o)},p(i,o){o[0]&8&&n!==(n=qn(i[3]))&&K(e,"style",n)},d(i){i&&ot(e)}}}function wB(t){let e,n,i,o=t[6]&&F_(t);const r=t[133].default,s=Zc(r,t,t[134],V_);let l=t[16]&&N_(t);return{c(){o&&o.c(),e=si(),s&&s.c(),l&&l.c(),n=si()},m(a,c){o&&o.m(a,c),st(a,e,c),s&&s.m(a,c),l&&l.m(a,c),st(a,n,c),i=!0},p(a,c){a[6]?o?(o.p(a,c),c[0]&64&&Ue(o,1)):(o=F_(a),o.c(),Ue(o,1),o.m(e.parentNode,e)):o&&(ui(),nt(o,1,1,(()=>{o=null})),pi()),s&&s.p&&(!i||c[0]&4096|c[4]&1024)&&Qc(s,r,a,a[134],i?xc(r,a[134],c,yB):ed(a[134]),V_),a[16]?l?l.p(a,c):(l=N_(a),l.c(),l.m(n.parentNode,n)):l&&(l.d(1),l=null)},i(a){i||(Ue(o),Ue(s,a),i=!0)},o(a){nt(o),nt(s,a),i=!1},d(a){a&&(ot(e),ot(n)),o&&o.d(a),s&&s.d(a),l&&l.d(a)}}}function $B(t){let e,n,i=!t[17]&&!t[18]&&L_(t);return{c(){i&&i.c(),e=si()},m(o,r){i&&i.m(o,r),st(o,e,r),n=!0},p(o,r){!o[17]&&!o[18]?i?(i.p(o,r),r[0]&393216&&Ue(i,1)):(i=L_(o),i.c(),Ue(i,1),i.m(e.parentNode,e)):i&&(ui(),nt(i,1,1,(()=>{i=null})),pi())},i(o){n||(Ue(i),n=!0)},o(o){nt(i),n=!1},d(o){o&&ot(e),i&&i.d(o)}}}const kB={left:"start",center:"center",right:"end",start:"start",end:"end"},jB={left:"end",center:"center",right:"start",start:"start",end:"end"},SB={top:"start",center:"center",bottom:"end",baseline:"baseline"};function q_(t){return t.some((e=>e.name==="native"))}function TB(t,e,n){let i,o,r,s,l,a,c,d,u,p,_,f,m,g,v,y,b,w,k,A,j,T,E,O,M,D,R,J,B,z,q=he,N=()=>(q(),q=Ve(E,($t=>n(111,z=$t))),E),Y,x=he,ce=()=>(x(),x=Ve(T,($t=>n(112,Y=$t))),T),ue,Z=he,Q=()=>(Z(),Z=Ve(j,($t=>n(113,ue=$t))),j),se,_e=he,Oe=()=>(_e(),_e=Ve(A,($t=>n(114,se=$t))),A),W,ge=he,it=()=>(ge(),ge=Ve(k,($t=>n(115,W=$t))),k),ye,rt=he,U=()=>(rt(),rt=Ve(w,($t=>n(116,ye=$t))),w),de,pe=he,et=()=>(pe(),pe=Ve(b,($t=>n(117,de=$t))),b),we,Ie=he,Xe=()=>(Ie(),Ie=Ve(o,($t=>n(118,we=$t))),o),vt,Qe=he,fe=()=>(Qe(),Qe=Ve(y,($t=>n(119,vt=$t))),y),me,ve=he,Ge=()=>(ve(),ve=Ve(v,($t=>n(120,me=$t))),v),gt,ee=he,Je=()=>(ee(),ee=Ve(m,($t=>n(121,gt=$t))),m),We,jt=he,zt=()=>(jt(),jt=Ve(g,($t=>n(122,We=$t))),g),an,sn=he,It=()=>(sn(),sn=Ve(f,($t=>n(123,an=$t))),f),cn,pn=he,Sn=()=>(pn(),pn=Ve(_,($t=>n(13,cn=$t))),_),Fn,Re=he,lt=()=>(Re(),Re=Ve(p,($t=>n(124,Fn=$t))),p),li,wt=he,zn=()=>(wt(),wt=Ve(u,($t=>n(125,li=$t))),u),Jt,gn=he,Lt=()=>(gn(),gn=Ve(d,($t=>n(126,Jt=$t))),d),$n,hn=he,Ut=()=>(hn(),hn=Ve(l,($t=>n(127,$n=$t))),l),Kt,Jn,Kn=he,fi=()=>(Kn(),Kn=Ve(c,($t=>n(128,Jn=$t))),c),Ke,bt=he,ct=()=>(bt(),bt=Ve(a,($t=>n(129,Ke=$t))),a),ht,qt=he,St=()=>(qt(),qt=Ve(s,($t=>n(130,ht=$t))),s),Ot,nn=he,ei=()=>(nn(),nn=Ve(r,($t=>n(131,Ot=$t))),r),Ft;t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>x())),t.$$.on_destroy.push((()=>Z())),t.$$.on_destroy.push((()=>_e())),t.$$.on_destroy.push((()=>ge())),t.$$.on_destroy.push((()=>rt())),t.$$.on_destroy.push((()=>pe())),t.$$.on_destroy.push((()=>Ie())),t.$$.on_destroy.push((()=>Qe())),t.$$.on_destroy.push((()=>ve())),t.$$.on_destroy.push((()=>ee())),t.$$.on_destroy.push((()=>jt())),t.$$.on_destroy.push((()=>sn())),t.$$.on_destroy.push((()=>pn())),t.$$.on_destroy.push((()=>Re())),t.$$.on_destroy.push((()=>wt())),t.$$.on_destroy.push((()=>gn())),t.$$.on_destroy.push((()=>hn())),t.$$.on_destroy.push((()=>Kn())),t.$$.on_destroy.push((()=>bt())),t.$$.on_destroy.push((()=>qt())),t.$$.on_destroy.push((()=>nn()));let{$$slots:xt={},$$scope:dt}=e,{componentContext:Ye}=e,{cls:bi=""}=e,{style:hi=void 0}=e,{layoutParams:Bn={}}=e,{customDescription:eo=!1}=e,{customPaddings:Tt=!1}=e,{customActions:Wn=""}=e,{additionalPaddings:gi=null}=e,{heightByAspect:rn=!1}=e,{parentOf:Nn=void 0}=e,{parentOfSimpleMode:Bt=void 0}=e,{replaceItems:vn=void 0}=e,{hasInnerFocusable:un=!1}=e;const En=ro(vo),Yn=ro(qu),{isEnabled:Ce}=ro(Hu);ko(t,Ce,($t=>n(132,Ft=$t)));const bn=En.direction;ko(t,bn,($t=>n(14,Kt=$t)));let ft,C,Mt=null,An=[],Ni={},mi={},Ne=!1,Ii=1,oe="transparent",ze=0,P={"top-left":0,"top-right":0,"bottom-right":0,"bottom-left":0},X="",ae=null,$e="",be={},Be,re,je,Me=0,Le=0,ut=0,Ze=!1,Ct=!1,fn={},Ht,Mn,Qt,Pn=0,_n=0,Pt=0,jn=!1,In=!1,Dn=1,Un,ri,yi,yo,Oi=[],Yi=!1,Ei=!1,dn,vi,Wt,L=[],ie=[],Se=[],le=[],qe=[],Fe=[],Et=[],Nt=[],On=[],yn=[],wi="",Ao,_t,ti,$i,Co=!1,Di="visible",Qo=0,Oo=0,zr,$s,Er,Ci=!1,io,Mo,Ar,rs=null;function Vl(){n(68,ae=null),n(69,$e=""),n(86,Dn=1),n(98,Co=!1),n(99,Di="visible"),n(100,Qo=0),n(101,Oo=0),n(102,zr=void 0),n(103,$s=void 0),Oi=Ye.fakeElement?[]:Ye.json.transition_triggers||["state_change","visibility_change"],n(89,Yi=!!(Oi.indexOf("state_change")!==-1&&Ye.id)),Ei=Oi.indexOf("visibility_change")!==-1,ft&&xs(ft),Mo==null||Mo(),Ft&&n(105,Mo=En.processVariableTriggers(Ye,Ye.json.variable_triggers))}function fd($t,Vi){if(!Array.isArray(Nn)||!vn||Bt&&(Array.isArray(Vi)&&Vi.length||0)!==1)return;const ji=Nn.findIndex((oo=>(oo==null?void 0:oo.id)===$t)),lo=Nn.slice();lo.splice(ji,1,...(Vi||[]).map((oo=>({json:oo,id:oo==null?void 0:oo.id})))),n(51,Nn=lo),vn(lo.map((oo=>oo==null?void 0:oo.json)))}function md($t){const Vi=cl($t.start_value,1),ji=cl($t.end_value,1),lo=uo($t.start_delay,0),oo=rd()?0:uo($t.duration,300),wo=_2($t.interpolator,"ease_in_out").replace(/_/g,"-");switch($t.name){case"fade":return n(94,Ao=Vi),n(95,_t=ji),`opacity ${oo}ms ${wo} ${lo}ms`;case"scale":return n(96,ti=Vi),n(97,$i=ji),`transform ${oo}ms ${wo} ${lo}ms`;case"native":case"no_animation":return"";default:return Ye.logError(tt(new Error("Unknown action_animation name"),{additional:{animation:$t.name}})),""}}async function gd($t){n(99,Di=$t);const Vi=$t==="visible"?"in":"out",ji=Vi==="in"?Ye.json.transition_in:Ye.json.transition_out;if(Ei&&ji){let lo;$t==="gone"&&(lo=ft.getBoundingClientRect()),await Fo(),Vi==="in"&&n(91,vi=!0),Yn.runVisibilityTransition({...Ye.json,visibility:"visible"},Ye,ji,ft,Vi,lo).then((()=>{Vi==="in"&&n(91,vi=!1)})).catch((oo=>{throw Vi==="in"&&n(91,vi=!1),oo}))}}function ka(){if(Mt&&ft){const $t=En.getExtensionContext(Ye);Mt.forEach((Vi=>{var ji;(ji=Vi.unmountView)==null||ji.call(Vi,ft,$t)})),Mt=null}}function Wr(){if(Mt!=null&&Mt.length){const $t=En.getExtensionContext(Ye);Mt.forEach((Vi=>{var ji;(ji=Vi.updateView)==null||ji.call(Vi,ft,$t)}))}rs&&rs.update(Ye)}function xs($t){var Vi,ji,lo;Ar==null||Ar.destroy(),n(61,ft=$t),Yi&&Ye.json.transition_in&&Yn.registerChildWithTransitionIn(Ye.json,Ye,Ye.json.transition_in,$t).then((()=>{n(90,dn=!1)})).catch((qi=>{throw n(90,dn=!1),qi})),Yi&&Ye.json.transition_out&&Yn.registerChildWithTransitionOut(Ye.json,Ye,Ye.json.transition_out,$t),Ye.fakeElement||Yn.registerChildWithTransitionChange(Ye.json,Ye,Ye.json.transition_change,$t).then((()=>{n(92,Wt=!1)})).catch((qi=>{throw n(92,Wt=!1),qi}));const oo=Ye.fakeElement?[]:Ye.json.visibility_actions||Ye.json.visibility_action&&[Ye.json.visibility_action],wo=Ye.fakeElement?[]:Ye.json.disappear_actions;let Tn;(Array.isArray(oo)&&oo.length||Array.isArray(wo)&&wo.length)&&(Tn=XR($t,{visibilityActions:oo,disappearActions:wo,rootCtx:En,componentContext:Ye}));const ki=Ye.id;return ki&&(En.registerId(ki,(()=>ft)),Yn.registerChild(ki)),(Vi=Ye.json.tooltips)==null||Vi.forEach((qi=>{En.registerTooltip($t,qi)})),Er&&(Er.disconnect(),Er=void 0),Er=sB(ft,Ye,(ji=Ye.json.layout_provider)==null?void 0:ji.width_variable_name,(lo=Ye.json.layout_provider)==null?void 0:lo.height_variable_name),Ye.fakeElement||(rs=p2($t,En,Ye)),Ar={destroy(){ki&&(En.unregisterId(ki),Yn.unregisterChild(ki)),Tn&&Tn.destroy(),rs&&rs.destroy()}},Ar}function Kr(){Ye.json.focus&&(Lq(En.isPointerFocus)||n(12,Ci=!0),Ye.execAnyActions(le))}function Ll(){Ye.json.focus&&(n(12,Ci=!1),Ye.execAnyActions(qe))}return nd(Wr),jo((()=>{var $t;An.forEach((Vi=>{En.unregisterParentOf(Vi)})),n(62,An=[]),Er&&(Er.disconnect(),Er=void 0),($t=Ye.json.tooltips)==null||$t.forEach((Vi=>{En.unregisterTooltip(Vi)})),Mo==null||Mo(),ka()})),t.$$set=$t=>{"componentContext"in $t&&n(0,Ye=$t.componentContext),"cls"in $t&&n(1,bi=$t.cls),"style"in $t&&n(52,hi=$t.style),"layoutParams"in $t&&n(53,Bn=$t.layoutParams),"customDescription"in $t&&n(54,eo=$t.customDescription),"customPaddings"in $t&&n(55,Tt=$t.customPaddings),"customActions"in $t&&n(56,Wn=$t.customActions),"additionalPaddings"in $t&&n(57,gi=$t.additionalPaddings),"heightByAspect"in $t&&n(58,rn=$t.heightByAspect),"parentOf"in $t&&n(51,Nn=$t.parentOf),"parentOfSimpleMode"in $t&&n(59,Bt=$t.parentOfSimpleMode),"replaceItems"in $t&&n(60,vn=$t.replaceItems),"hasInnerFocusable"in $t&&n(2,un=$t.hasInnerFocusable),"$$scope"in $t&&n(134,dt=$t.$$scope)},t.$$.update=()=>{var $t,Vi,ji,lo,oo,wo;if(t.$$.dirty[0]&1&&n(110,i=Ye.origJson),t.$$.dirty[3]&131072&&i&&Vl(),t.$$.dirty[0]&1|t.$$.dirty[3]&4096|t.$$.dirty[4]&256&&(Ft?(Mo==null||Mo(),n(105,Mo=En.processVariableTriggers(Ye,Ye.json.variable_triggers))):Mo==null||Mo()),t.$$.dirty[0]&1&&Xe(n(45,o=Ye.getDerivedFromVars(Ye.json.focus))),t.$$.dirty[0]&1&&ei(n(44,r=Ye.getDerivedFromVars(Ye.json.border))),t.$$.dirty[0]&1&&St(n(43,s=Ye.getDerivedFromVars(Ye.json.paddings))),t.$$.dirty[0]&1&&Ut(n(42,l=Ye.getDerivedFromVars(Ye.json.margins))),t.$$.dirty[0]&1&&ct(n(41,a=Ye.getDerivedFromVars(Ye.json.width))),t.$$.dirty[0]&1&&fi(n(40,c=Ye.getDerivedFromVars(Ye.json.alignment_horizontal))),t.$$.dirty[0]&1&&Lt(n(39,d=Ye.getDerivedFromVars(Ye.json.height))),t.$$.dirty[0]&1&&zn(n(38,u=Ye.getDerivedFromVars(Ye.json.alignment_vertical))),t.$$.dirty[0]&1&<(n(37,p=Ye.getDerivedFromVars(Ye.json.alpha))),t.$$.dirty[0]&1&&Sn(n(36,_=Ye.getDerivedFromVars(Ye.json.accessibility))),t.$$.dirty[0]&1&&It(n(35,f=Ye.getDerivedFromVars(Ye.json.background))),t.$$.dirty[0]&1&&Je(n(34,m=Ye.getDerivedFromVars(Ye.json.action))),t.$$.dirty[0]&1&&zt(n(33,g=Ye.getDerivedFromVars(Ye.json.actions))),t.$$.dirty[0]&1&&Ge(n(32,v=Ye.getDerivedFromVars(Ye.json.doubletap_actions))),t.$$.dirty[0]&1&&fe(n(31,y=Ye.getDerivedFromVars(Ye.json.longtap_actions))),t.$$.dirty[0]&1&&et(n(30,b=Ye.getDerivedFromVars(Ye.json.press_start_actions))),t.$$.dirty[0]&1&&U(n(29,w=Ye.getDerivedFromVars(Ye.json.press_end_actions))),t.$$.dirty[0]&1&&it(n(28,k=Ye.getDerivedFromVars(Ye.json.hover_start_actions))),t.$$.dirty[0]&1&&Oe(n(27,A=Ye.getDerivedFromVars(Ye.json.hover_end_actions))),t.$$.dirty[0]&1&&Q(n(26,j=Ye.getDerivedFromVars(Ye.json.action_animation))),t.$$.dirty[0]&1&&ce(n(25,T=Ye.getDerivedFromVars(Ye.json.visibility))),t.$$.dirty[0]&1&&N(n(24,E=Ye.getDerivedFromVars(Ye.json.transform))),t.$$.dirty[1]&269484032|t.$$.dirty[2]&1&&(An.forEach((Tn=>{En.unregisterParentOf(Tn)})),n(62,An=[]),Nn&&Nn.forEach((Tn=>{Tn!=null&&Tn.id&&(An.push(Tn.id),En.registerParentOf(Tn.id,{replaceWith:fd,isSingleMode:!!Bt}))}))),t.$$.dirty[0]&4104|t.$$.dirty[2]&62|t.$$.dirty[3]&33554432|t.$$.dirty[4]&128){const Tn=Ci&&we!=null&&we.border?we.border:Ot;let ki={},qi={},zo=!1,fo="";if(Tn){if(br(Tn.has_shadow,!1)){const mo=Tn.shadow;mo?ki["box-shadow"]=iB(mo):ki["box-shadow"]="0 1px 2px 0 rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.07)"}if(Tn.stroke&&(zo=!0,n(64,Ii=uo(Tn.stroke.width,Ii)),n(65,oe=Ri(Tn.stroke.color,1,oe)),qi["--divkit-border"]=`${At(Ii+1)} solid ${oe}`),Tn.corners_radius&&typeof Tn.corners_radius=="object"){n(67,P=nB(Tn.corners_radius,P)),ki["border-radius"]=oc(P);const mo={};["top-left","top-right","bottom-right","bottom-left"].forEach((Ro=>{mo[Ro]=(P[Ro]||0)+1})),qi["--divkit-border-radius"]=oc(mo)}else Tn.corner_radius&&(n(66,ze=uo(Tn.corner_radius,ze)),n(67,P={"top-left":ze,"top-right":ze,"bottom-right":ze,"bottom-left":ze}),ki["border-radius"]=At(ze),qi["--divkit-border-radius"]=At(ze+1));if(zo&&Ii&&(Tn.corners_radius||Tn.corner_radius)){let mo={...P};["top-left","top-right","bottom-right","bottom-left"].forEach((Ro=>{mo[Ro]=(mo[Ro]||0)+Ii/2})),fo=oc(mo)}}n(63,Ni=us(ki,Ni)),n(3,mi=us(qi,mi)),n(16,Ne=zo),n(4,X=fo)}if(t.$$.dirty[1]&16777216|t.$$.dirty[2]&64|t.$$.dirty[4]&64&&n(68,ae=ya(ht&&!Tt?ht:void 0,ae)),t.$$.dirty[0]&16384|t.$$.dirty[1]&67108864|t.$$.dirty[2]&64&&n(107,O=qr(tB(ae,gi),Kt)),t.$$.dirty[0]&16384|t.$$.dirty[2]&128|t.$$.dirty[4]&8&&n(69,$e=oa($n,Kt,$e)),t.$$.dirty[0]&16385|t.$$.dirty[1]&4194304|t.$$.dirty[2]&4352|t.$$.dirty[4]&56){let Tn,ki,qi,zo,fo={},mo=0,Ro=0,Yr=!1,Gr=!1;const Po=Ke==null?void 0:Ke.type;if(Po==="fixed")n(74,Me=uo(Ke==null?void 0:Ke.value,Me)),ki=At(Me);else if(Po==="wrap_content"||(Po==="match_parent"||!Po)&&Bn.parentHorizontalWrapContent){if(Tn="content",(Po==="wrap_content"&&Ke!=null&&Ke.constrained||(Po==="match_parent"||!Po)&&Bn.parentHorizontalWrapContent)&&(fo["width-constrained"]=!0,Bn.parentContainerOrientation==="horizontal"&&(Ro=1)),Po==="wrap_content"){const Li=Ke;Li.min_size&&Wo(Li.min_size.value)&&(qi=At(Li.min_size.value)),Li.max_size&&Wo(Li.max_size.value)&&(zo=At(Li.max_size.value))}(Po==="match_parent"||!Po)&&Ye.logError(tt(new Error("Incorrect child size. Container with wrap_content size contains child with match_parent size along the main axis"),{level:"warn"}))}else if(Tn="parent",Bn.parentContainerOrientation==="vertical"&&Bn.parentContainerWrap&&(Gr=!0,Ye.logError(tt(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),Bn.parentLayoutOrientation==="vertical"||Bn.stretchWidth){const Li=(Vi=($t=Kt==="ltr"?$n==null?void 0:$n.start:$n==null?void 0:$n.end)!=null?$t:$n==null?void 0:$n.left)!=null?Vi:0,hd=(lo=(ji=Kt==="ltr"?$n==null?void 0:$n.end:$n==null?void 0:$n.start)!=null?ji:$n==null?void 0:$n.right)!=null?lo:0,Fl=`calc(100% - ${Uo(Li+hd)})`;Bn.stretchWidth?(ki="0",qi=Fl):ki=Fl}else Bn.parentContainerOrientation==="horizontal"&&(mo=Ke&&"weight"in Ke&&Ke.weight||1,Bn.parentContainerWrap&&(Yr=!0));if(Tn==="parent")fo["halign-self"]="stretch";else{const Li=Jn;Li==="left"||Li==="center"||Li==="right"||Li==="start"||Li==="end"?fo["halign-self"]=(Kt==="ltr"?kB:jB)[Li]:fo["halign-self"]=Bn.parentHAlign||"start"}Tn&&(fo.width=Tn),n(71,Be=ki),n(72,re=qi),n(73,je=zo),n(75,Le=mo),n(76,ut=Ro),n(70,be=us(fo,be)),n(77,Ze=Yr),n(17,Ct=Gr)}if(t.$$.dirty[0]&1|t.$$.dirty[1]&138412032|t.$$.dirty[2]&1114112|t.$$.dirty[4]&14){let Tn,ki,qi,zo,fo={},mo=0,Ro=0,Yr=!1,Gr=!1;const Po=Jt==null?void 0:Jt.type;if(!rn)if(Po==="fixed")n(82,Pn=uo(Jt==null?void 0:Jt.value,Pn)),ki=At(Pn);else if(Po==="match_parent"&&!Bn.parentVerticalWrapContent)if(Tn="parent",Bn.parentContainerOrientation==="horizontal"&&Bn.parentContainerWrap&&(Gr=!0,Ye.logError(tt(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),Bn.parentLayoutOrientation==="horizontal"||Bn.stretchHeight){const Li=(oo=$n==null?void 0:$n.top)!=null?oo:0,hd=(wo=$n==null?void 0:$n.bottom)!=null?wo:0,Fl=`calc(100% - ${Uo(Li+hd)})`;Bn.stretchHeight?(ki="0",qi=Fl):ki=Fl}else Bn.parentContainerOrientation==="vertical"&&(mo=(Jt==null?void 0:Jt.weight)||1,Bn.parentContainerWrap&&(Yr=!0));else{if(Tn="content",(Po==="wrap_content"&&Jt!=null&&Jt.constrained||Po==="match_parent"&&Bn.parentVerticalWrapContent)&&(fo["height-constrained"]=!0,Bn.parentContainerOrientation==="vertical"&&(Ro=1)),Po==="wrap_content"){const Li=Jt;Li!=null&&Li.min_size&&Wo(Li.min_size.value)&&(qi=At(Li.min_size.value)),Li!=null&&Li.max_size&&Wo(Li.max_size.value)&&(zo=At(Li.max_size.value))}Po==="match_parent"&&Ye.logError(tt(new Error("Incorrect child size. Container with wrap_content size contains child with match_parent size along the main axis"),{level:"warn"}))}if(Tn==="parent")fo["valign-self"]="stretch";else{const Li=li;Li==="top"||Li==="center"||Li==="bottom"||Li==="baseline"&&Bn.parentContainerOrientation==="horizontal"?fo["valign-self"]=SB[Li]:fo["valign-self"]=Bn.parentVAlign||"start"}Tn&&(fo.height=Tn),n(79,Ht=ki),n(80,Mn=qi),n(81,Qt=zo),n(83,_n=mo),n(84,Pt=Ro),n(78,fn=us(fo,fn)),n(85,jn=Yr),n(18,In=Gr)}if(t.$$.dirty[1]&4194304&&n(109,M=Bn.overlapParent?!0:void 0),t.$$.dirty[1]&4194304&&n(108,D=Bn.gridArea?`${Bn.gridArea.y+1}/${Bn.gridArea.x+1}/span ${Bn.gridArea.rowSpan}/span ${Bn.gridArea.colSpan}`:void 0),t.$$.dirty[2]&16777216|t.$$.dirty[4]&1&&(n(86,Dn=xR(Fn,Dn)),n(87,Un=Dn===1?void 0:Dn)),t.$$.dirty[0]&8192|t.$$.dirty[1]&8388608&&(n(15,C=void 0),cn&&!eo&&cn.description&&(n(15,C={}),n(15,C["aria-label"]=cn.description,C))),t.$$.dirty[0]&4208|t.$$.dirty[3]&1107296256&&(n(5,ri=Ci&&we!=null&&we.background?we.background:an),n(88,yi={}),n(6,yo=!1),Array.isArray(ri)&&(n(6,yo=ri.some((Tn=>Tn.type==="image"||Tn.type==="nine_patch_image"))||!!X),!yo))){const Tn=id(ri);n(88,yi["background-color"]=Tn.color,yi),n(88,yi["background-image"]=Tn.image,yi),n(88,yi["background-size"]=Tn.size,yi),n(88,yi["background-position"]=Tn.position,yi),n(88,yi["background-repeat"]="no-repeat",yi)}if(t.$$.dirty[0]&1|t.$$.dirty[2]&134217728&&(n(90,dn=void 0),Yi&&Ye.json.transition_in&&En.isRunning("stateChange")&&n(90,dn=!0)),t.$$.dirty[0]&1|t.$$.dirty[2]&134217728&&(n(92,Wt=void 0),Yi&&En.isRunning("stateChange")&&Yn.hasTransitionChange(Ye.id)&&n(92,Wt=!0)),t.$$.dirty[0]&1921|t.$$.dirty[1]&33554432|t.$$.dirty[3]&1071644672){let Tn=We||gt&&[gt]||[],ki=me||[],qi=vt||[],zo=(we==null?void 0:we.on_focus)||[],fo=(we==null?void 0:we.on_blur)||[],mo=de||[],Ro=ye||[],Yr=W||[],Gr=se||[];Ye.fakeElement?(Tn=[],ki=[],qi=[],zo=[],fo=[]):(Array.isArray(Tn)||(Tn=[],Ye.logError(tt(new Error("Actions should be array")))),Array.isArray(ki)||(ki=[],Ye.logError(tt(new Error("DoubleTapActions should be array")))),Array.isArray(qi)||(qi=[],Ye.logError(tt(new Error("LongTapActions should be array")))),Array.isArray(zo)||(zo=[],Ye.logError(tt(new Error("FocusActions should be array")))),Array.isArray(fo)||(fo=[],Ye.logError(tt(new Error("BlurActions should be array")))),Array.isArray(mo)||(mo=[],Ye.logError(tt(new Error("PressStartActions should be array")))),Array.isArray(Ro)||(Ro=[],Ye.logError(tt(new Error("PressEndActions should be array")))),Array.isArray(Yr)||(Yr=[],Ye.logError(tt(new Error("HoverStartActions should be array")))),Array.isArray(Gr)||(Gr=[],Ye.logError(tt(new Error("HoverEndActions should be array"))))),(Tn.length||ki.length||qi.length||Fe.length||Et.length||Nt.length||On.length)&&Wn&&(Tn=[],ki=[],qi=[],n(7,Fe=[]),n(8,Et=[]),n(9,Nt=[]),n(10,On=[]),Ye.logError(tt(new Error(`Cannot use action on component "${Wn}"`)))),n(19,L=Tn.filter(Bo)),n(20,ie=ki.filter(Bo)),n(21,Se=qi.filter(Bo)),le=zo.filter(Bo),qe=fo.filter(Bo),n(7,Fe=mo.filter(Bo)),n(8,Et=Ro.filter(Bo)),n(9,Nt=Yr.filter(Bo)),n(10,On=Gr.filter(Bo))}if(t.$$.dirty[0]&2048|t.$$.dirty[3]&1048576&&ue&&(n(11,yn=Bu(ue)),n(93,wi=yn.map(md).filter(Boolean).join(", "))),t.$$.dirty[3]&524384){const Tn=Di,ki=eB(Y,Di);Tn!==ki&&(Co&&(Di==="visible"||ki==="visible")?gd(ki):n(99,Di=ki)),Co||n(98,Co=!0)}if(t.$$.dirty[0]&1|t.$$.dirty[1]&1073741824|t.$$.dirty[3]&2048&&Ye.json&&ft&&!Ru(Ye.json.extensions,io)){let Tn=n(104,io=Ye.json.extensions);Fo().then((()=>{if(!(Tn!==io||!ft)&&(ka(),Array.isArray(Ye.json.extensions))){const ki=En.getExtensionContext(Ye);Mt=Ye.json.extensions.map((qi=>{var zo;const fo=qi.id;if(!fo)return;const mo=En.getExtension(fo,qi.params);return mo&&((zo=mo.mountView)==null||zo.call(mo,ft,ki)),mo})).filter(os)}}))}if(t.$$.dirty[0]&4097|t.$$.dirty[1]&4194304|t.$$.dirty[2]&1879113984|t.$$.dirty[3]&65601&&n(23,R={...be,...fn,"parent-overlap":M,"scroll-snap":Bn.scrollSnap,"hide-on-transition-in":dn||vi||Wt,visibility:Di,"has-action-animation":!!wi,"parent-flex":Bn.parentContainerOrientation||void 0,"parent-grid":!!Bn.gridArea||void 0,"has-custom-focus":!!(Ci&&Ye.json.focus)}),t.$$.dirty[3]&262528&&z&&z.rotation!==void 0){const Tn=z.pivot_x||{type:"pivot-percentage",value:50};n(100,Qo=cl(Tn.value,Qo));const ki=Tn.type==="pivot-fixed"?At(Qo):`${Qo}%`,qi=z.pivot_y||{type:"pivot-percentage",value:50};n(101,Oo=cl(qi.value,Oo));const zo=qi.type==="pivot-fixed"?At(Oo):`${Oo}%`;n(102,zr=`${ki} ${zo}`),n(103,$s=`rotate(${z.rotation}deg)`)}t.$$.dirty[2]&10526720&&n(106,J=Ze||jn?"100%":Le||_n?0:void 0),t.$$.dirty[1]&2097152|t.$$.dirty[2]&107900546|t.$$.dirty[3]&58911&&n(22,B={...hi,...yi,...Ni,width:Be,"min-width":re,"max-width":je,height:Ht,"min-height":Mn,"max-height":Qt||(hi==null?void 0:hi["max-height"]),"grid-area":D,padding:O,margin:$e,opacity:Un,transition:wi,"transform-origin":zr,transform:$s,"flex-grow":Le||_n||void 0,"flex-shrink":ut||Pt?1:void 0,"flex-basis":J,"--divkit-animation-opacity-start":Ao,"--divkit-animation-opacity-end":_t,"--divkit-animation-scale-start":ti,"--divkit-animation-scale-end":$i})},[Ye,bi,un,mi,X,ri,yo,Fe,Et,Nt,On,yn,Ci,cn,Kt,C,Ne,Ct,In,L,ie,Se,B,R,E,T,j,A,k,w,b,y,v,g,m,f,_,p,u,d,c,a,l,s,r,o,Ce,bn,xs,Kr,Ll,Nn,hi,Bn,eo,Tt,Wn,gi,rn,Bt,vn,ft,An,Ni,Ii,oe,ze,P,ae,$e,be,Be,re,je,Me,Le,ut,Ze,fn,Ht,Mn,Qt,Pn,_n,Pt,jn,Dn,Un,yi,Yi,dn,vi,Wt,wi,Ao,_t,ti,$i,Co,Di,Qo,Oo,zr,$s,io,Mo,J,O,D,M,i,z,Y,ue,se,W,ye,de,we,vt,me,gt,We,an,Fn,li,Jt,$n,Jn,Ke,ht,Ot,Ft,xt,dt]}class qo extends Qi{constructor(e){super(),xi(this,e,TB,$B,Pi,{componentContext:0,cls:1,style:52,layoutParams:53,customDescription:54,customPaddings:55,customActions:56,additionalPaddings:57,heightByAspect:58,parentOf:51,parentOfSimpleMode:59,replaceItems:60,hasInnerFocusable:2},null,[-1,-1,-1,-1,-1])}}const CB="divkit-6d029",zB="divkit-d7771",EB="divkit-11aee",AB="divkit-a2b0d",OB="divkit-b93c2",MB="divkit-a5aa6",PB="divkit-02228",IB="divkit-c5739",DB="divkit-ccc67",VB="divkit-a6f25",LB="divkit-b9e37",FB="divkit-fa1ec",NB="divkit-3f0b7",qB="divkit-d491d",RB="divkit-f6859",pr={"text-range":"divkit-251c6",text:CB,text_halign_start:zB,text_halign_center:EB,text_halign_end:AB,text_valign_start:OB,text_valign_center:MB,text_valign_end:PB,text_valign_baseline:IB,text__inner:DB,text_singleline:VB,text_multiline:LB,text_truncate_none:FB,"text__inner_has-cloud-bg":"divkit-e75f8","text__inner_cloud-bg":"divkit-ca4e7",text__inner_gradient:NB,"text__image-wrapper":"divkit-632c6","text__image-wrapper_crop":"divkit-9125a","text__image-wrapper_align_top":"divkit-6956e","text__image-wrapper_align_center":"divkit-2be31","text__image-wrapper_align_bottom":"divkit-1719d","text__image-wrapper_align_baseline":"divkit-a0e9f",text__image:qB,text__image_hidden:RB,"text_has-focus-color":"divkit-32858"},Tc={"text-range":"divkit-251c6","text-range_cloud":"divkit-96ef6","text-range_singleline":"divkit-645b9","text-range__top-offset":"divkit-13a2b","text-range_decoration_both":"divkit-9d257","text-range_decoration_underline":"divkit-c65cf","text-range_decoration_strike":"divkit-d264e","text-range_decoration_none":"divkit-2cfc4","text-range_align_top":"divkit-cb312","text-range_align_center":"divkit-640d4","text-range_align_bottom":"divkit-069e7","text-range_align_baseline":"divkit-3f853","text-range__cloud-svg":"divkit-82b28","text-range_relative-vertical-align":"divkit-98760"};function mr(t,e){const n=Number(t);return Number.isNaN(n)||n<=0?e:n}function BB(t){if(t==="light"||t==="medium"||t==="bold"||t==="regular")return t==="medium"?500:t==="bold"?700:t==="light"?300:400}function kl(t,e,n){return typeof e=="number"&&e>0?e:BB(t)||n}function du(t,e){if(!t)return{};const n={};for(const i of["left","top","right","bottom","start","end"]){const o=t[i];o&&(n[i]=o*e)}return n}function R_(t){let e,n,i,o,r,s,l;return{c(){e=$o("svg"),n=$o("defs"),i=$o("filter"),o=$o("feGaussianBlur"),r=$o("feColorMatrix"),l=$o("feBlend"),K(o,"in","SourceGraphic"),K(o,"result","blurred"),K(o,"stdDeviation","3"),K(r,"in","blurred"),K(r,"result","withMatrix"),K(r,"type","matrix"),K(r,"values",s="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 "+2*t[4]+" -"+t[4]),K(l,"in","SourceGraphic"),K(l,"in2","withMatrix"),K(i,"id",t[10]),K(e,"class",Tc["text-range__cloud-svg"])},m(a,c){st(a,e,c),Ln(e,n),Ln(n,i),Ln(i,o),Ln(i,r),Ln(i,l)},p(a,c){c&16&&s!==(s="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 "+2*a[4]+" -"+a[4])&&K(r,"values",s)},d(a){a&&ot(e)}}}function B_(t){let e;return{c(){e=Zt("span"),K(e,"class",Tc["text-range__top-offset"]),He(e,"margin-top",t[8])},m(n,i){st(n,e,i)},p(n,i){i&256&&He(e,"margin-top",n[8])},d(n){n&&ot(e)}}}function HB(t){let e;return{c(){e=jr(t[1])},m(n,i){st(n,e,i)},p(n,i){i&2&&ws(e,n[1])},d(n){n&&ot(e)}}}function JB(t){let e,n,i,o,r=t[3]&&t[5]&&R_(t),s=t[8]&&B_(t);return i=new sd({props:{componentContext:t[0],cls:kn("text-range",Tc,t[7]),actions:t[2],style:qn(t[6]),$$slots:{default:[HB]},$$scope:{ctx:t}}}),{c(){r&&r.c(),e=si(),s&&s.c(),n=si(),Qn(i.$$.fragment)},m(l,a){r&&r.m(l,a),st(l,e,a),s&&s.m(l,a),st(l,n,a),Zn(i,l,a),o=!0},p(l,[a]){l[3]&&l[5]?r?r.p(l,a):(r=R_(l),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),l[8]?s?s.p(l,a):(s=B_(l),s.c(),s.m(n.parentNode,n)):s&&(s.d(1),s=null);const c={};a&1&&(c.componentContext=l[0]),a&128&&(c.cls=kn("text-range",Tc,l[7])),a&4&&(c.actions=l[2]),a&64&&(c.style=qn(l[6])),a&1073741826&&(c.$$scope={dirty:a,ctx:l}),i.$set(c)},i(l){o||(Ue(i.$$.fragment,l),o=!0)},o(l){nt(i.$$.fragment,l),o=!1},d(l){l&&(ot(e),ot(n)),r&&r.d(l),s&&s.d(l),xn(i,l)}}}function UB(t,e,n){let i,o,r,s,l,a,c,d,u,p,{componentContext:_}=e,{text:f}=e,{rootFontSize:m}=e,{textStyles:g={}}=e,{singleline:v=!1}=e,{actions:y=void 0}=e,{cloudBg:b=!1}=e,{customLineHeight:w=null}=e;const k=ro(vo),A=k.direction;ko(t,A,(q=>n(28,p=q)));const j=b&&k.genId("text-range")||"";let T="none",E=12,O=1.25,M="",D,R="",J="",B=null,z;return t.$$set=q=>{"componentContext"in q&&n(0,_=q.componentContext),"text"in q&&n(1,f=q.text),"rootFontSize"in q&&n(11,m=q.rootFontSize),"textStyles"in q&&n(12,g=q.textStyles),"singleline"in q&&n(13,v=q.singleline),"actions"in q&&n(2,y=q.actions),"cloudBg"in q&&n(3,b=q.cloudBg),"customLineHeight"in q&&n(14,w=q.customLineHeight)},t.$$.update=()=>{var q,N,Y,x,ce,ue,Z;if(t.$$.dirty&1&&_.json&&(n(15,T="none"),n(16,E=12),n(17,O=1.25),n(18,M=""),n(19,D=void 0),n(20,R=""),n(21,J=""),n(22,B=null),n(23,z=void 0)),t.$$.dirty&4096){let Q="none";(g.underline||g.strike)&&(g.underline==="single"&&g.strike==="single"?Q="both":g.underline==="single"?Q="underline":g.strike==="single"&&(Q="strike")),n(15,T=Q)}t.$$.dirty&69632&&n(16,E=mr(g.font_size,E)),t.$$.dirty&69632&&Zo(g.line_height)&&n(17,O=Number(g.line_height)/E),t.$$.dirty&4096&&Wo(g.letter_spacing)&&n(18,M=At(g.letter_spacing)),t.$$.dirty&528384&&(n(19,D=kl(g.font_weight,g.font_weight_value,D)),typeof g.font_family=="string"&&g.font_family?n(20,R=k.typefaceProvider(g.font_family,{fontWeight:D||400})):n(20,R="")),t.$$.dirty&2101256&&n(21,J=b?"transparent":Ri(g.text_color,1,J)),t.$$.dirty&4096&&n(8,i=g.top_offset?At(g.top_offset):""),t.$$.dirty&4096&&n(5,o=((q=g.background)==null?void 0:q.type)==="cloud"),t.$$.dirty&4096&&n(26,r=((N=g.background)==null?void 0:N.type)==="cloud"?g.background.paddings:void 0),t.$$.dirty&4096&&n(24,s=((Y=g.background)==null?void 0:Y.type)==="solid"?id([g.background]):null),t.$$.dirty&4096&&((x=g.border)!=null&&x.stroke&&g.border.stroke.color&&Ri(g.border.stroke.color)!=="transparent"&&Zo(g.border.stroke.width)&&((ce=g.background)==null?void 0:ce.type)!=="cloud"?n(22,B={color:g.border.stroke.color,width:g.border.stroke.width,corner_radius:g.border.corner_radius}):n(22,B=null)),t.$$.dirty&4198440&&n(4,l=b?o&&g.background.corner_radius||0:B?mr(B.corner_radius,0):0),t.$$.dirty&69632&&n(25,a=g.text_shadow?oB(g.text_shadow,E):void 0),t.$$.dirty&4096&&typeof g.baseline_offset=="number"&&n(23,z=g.baseline_offset),t.$$.dirty&4096&&n(27,c=typeof g.baseline_offset=="number"?void 0:g.alignment_vertical),t.$$.dirty&142663712&&n(7,d={singleline:v,decoration:T,align:c,cloud:o,"relative-vertical-align":!!(w&&z)}),t.$$.dirty&536827960&&n(6,u={"font-size":At(E*10/m),"line-height":c?"normal":O,"letter-spacing":M,"font-weight":D,"font-family":R,"vertical-align":w||z===void 0?void 0:At(z*10/E),top:w&&z!==void 0?At(-z*10/E):void 0,margin:r?qr(du(r,-10/E),p):void 0,padding:r?qr(du(r,10/E),p):void 0,filter:b&&o?`url(#${j})`:a,color:J,background:b?o?yF(g.background.color,255,"transparent"):void 0:(s==null?void 0:s.color)||void 0,opacity:b&&o?((Z=(ue=ns(g.background.color))==null?void 0:ue.a)!=null?Z:255)/255:void 0,"box-shadow":B?`inset 0 0 0 ${At(B.width*10/E)} ${B.color}`:void 0,"border-radius":l?At(l*10/E):void 0,"font-feature-settings":g.font_feature_settings||void 0})},[_,f,y,b,l,o,u,d,i,A,j,m,g,v,w,T,E,O,M,D,R,J,B,z,s,a,r,c,p]}class Ju extends Qi{constructor(e){super(),xi(this,e,UB,JB,Pi,{componentContext:0,text:1,rootFontSize:11,textStyles:12,singleline:13,actions:2,cloudBg:3,customLineHeight:14})}}function Uu(t,e,n){return t==="left"||t==="center"||t==="right"||t==="start"||t==="end"?t==="left"?e==="ltr"?"start":"end":t==="right"?e==="ltr"?"end":"start":t:n}function Wu(t,e){return t==="top"||t==="center"||t==="bottom"||t==="baseline"?t==="top"?"start":t==="bottom"?"end":t:e}function WB(t){return String(t??"")}function m2(t,e){return t==="source_in"||t==="source_atop"||t==="darken"||t==="lighten"||t==="multiply"||t==="screen"?t:e}function ld(t,e){let n;return function(...i){n!==null&&clearTimeout(n),n=setTimeout((()=>{t.apply(this,i),n=null}),e)}}function KB(t,e){let n=null;const i=()=>{const l=getComputedStyle(t),a=parseFloat(l.lineHeight);t.style.webkitLineClamp="",t.style.maxHeight="";const c=t.offsetHeight,d=t.scrollHeight;let u=Math.max(1,Math.floor(c/a));e.maxLines&&e.maxLines<u&&(u=e.maxLines),d>u*a+1e-9&&(t.style.webkitLineClamp=String(u),t.style.maxHeight=a*u+"px")},o=ld(i,50),r=()=>{n&&(n.disconnect(),n=null)},s=()=>{if(r(),e.enabled){if(i(),typeof ResizeObserver<"u"){n=new ResizeObserver(o);const l=t.parentElement;l&&n.observe(l)}}else t.style.webkitLineClamp=String(e.lineClamp||"")};return s(),{update(l){e=l,s()},destroy(){r()}}}const{Boolean:g2}=Jr;function H_(t,e,n){const i=t.slice();return i[64]=e[n],i}function J_(t,e,n){const i=t.slice();return i[64]=e[n],i}function U_(t){let e,n,i,o,r=ci(t[12]),s=[];for(let a=0;a<r.length;a+=1)s[a]=K_(J_(t,r,a));const l=a=>nt(s[a],1,1,(()=>{s[a]=null}));return{c(){e=Zt("span");for(let a=0;a<s.length;a+=1)s[a].c();K(e,"class",n=kn("text__inner",pr,{...t[15],"cloud-bg":!0})),K(e,"style",i=qn({...t[14],padding:t[13]}))},m(a,c){st(a,e,c);for(let d=0;d<s.length;d+=1)s[d]&&s[d].m(e,null);o=!0},p(a,c){if(c[0]&5257){r=ci(a[12]);let d;for(d=0;d<r.length;d+=1){const u=J_(a,r,d);s[d]?(s[d].p(u,c),Ue(s[d],1)):(s[d]=K_(u),s[d].c(),Ue(s[d],1),s[d].m(e,null))}for(ui(),d=r.length;d<s.length;d+=1)l(d);pi()}(!o||c[0]&32768&&n!==(n=kn("text__inner",pr,{...a[15],"cloud-bg":!0})))&&K(e,"class",n),(!o||c[0]&24576&&i!==(i=qn({...a[14],padding:a[13]})))&&K(e,"style",i)},i(a){if(!o){for(let c=0;c<r.length;c+=1)Ue(s[c]);o=!0}},o(a){s=s.filter(g2);for(let c=0;c<s.length;c+=1)nt(s[c]);o=!1},d(a){a&&ot(e),To(s,a)}}}function YB(t){let e,n,i,o,r;return{c(){e=Zt("span"),n=Zt("span"),K(n,"class",i=kn("text__image-wrapper",pr,{align:t[64].image.verticalAlign,crop:t[10]!==null})),K(n,"style",o=qn({width:t[64].image.width,height:t[10]&&t[64].image.verticalAlign!=="baseline"?t[10]+"em":void 0})),K(e,"style",r=qn(t[64].image.wrapperStyle))},m(s,l){st(s,e,l),Ln(e,n)},p(s,l){l[0]&5120&&i!==(i=kn("text__image-wrapper",pr,{align:s[64].image.verticalAlign,crop:s[10]!==null}))&&K(n,"class",i),l[0]&5120&&o!==(o=qn({width:s[64].image.width,height:s[10]&&s[64].image.verticalAlign!=="baseline"?s[10]+"em":void 0}))&&K(n,"style",o),l[0]&4096&&r!==(r=qn(s[64].image.wrapperStyle))&&K(e,"style",r)},i:he,o:he,d(s){s&&ot(e)}}}function GB(t){let e,n,i=t[64].text&&W_(t);return{c(){i&&i.c(),e=si()},m(o,r){i&&i.m(o,r),st(o,e,r),n=!0},p(o,r){o[64].text?i?(i.p(o,r),r[0]&4096&&Ue(i,1)):(i=W_(o),i.c(),Ue(i,1),i.m(e.parentNode,e)):i&&(ui(),nt(i,1,1,(()=>{i=null})),pi())},i(o){n||(Ue(i),n=!0)},o(o){nt(i),n=!1},d(o){o&&ot(e),i&&i.d(o)}}}function W_(t){let e,n;return e=new Ju({props:{componentContext:t[0],text:t[64].text,rootFontSize:t[3],textStyles:t[64].textStyles,singleline:t[7],cloudBg:!0}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o[0]&1&&(r.componentContext=i[0]),o[0]&4096&&(r.text=i[64].text),o[0]&8&&(r.rootFontSize=i[3]),o[0]&4096&&(r.textStyles=i[64].textStyles),o[0]&128&&(r.singleline=i[7]),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function K_(t){let e,n,i,o;const r=[GB,YB],s=[];function l(a,c){return"text"in a[64]?0:a[64].image?1:-1}return~(e=l(t))&&(n=s[e]=r[e](t)),{c(){n&&n.c(),i=si()},m(a,c){~e&&s[e].m(a,c),st(a,i,c),o=!0},p(a,c){let d=e;e=l(a),e===d?~e&&s[e].p(a,c):(n&&(ui(),nt(s[d],1,1,(()=>{s[d]=null})),pi()),~e?(n=s[e],n?n.p(a,c):(n=s[e]=r[e](a),n.c()),Ue(n,1),n.m(i.parentNode,i)):n=null)},i(a){o||(Ue(n),o=!0)},o(a){nt(n),o=!1},d(a){a&&ot(i),~e&&s[e].d(a)}}}function XB(t){let e,n;return e=new Ju({props:{componentContext:t[0],text:t[2],rootFontSize:t[3],textStyles:t[8],singleline:t[7],customLineHeight:t[10]}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o[0]&1&&(r.componentContext=i[0]),o[0]&4&&(r.text=i[2]),o[0]&8&&(r.rootFontSize=i[3]),o[0]&256&&(r.textStyles=i[8]),o[0]&128&&(r.singleline=i[7]),o[0]&1024&&(r.customLineHeight=i[10]),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function ZB(t){let e,n,i=ci(t[12]),o=[];for(let s=0;s<i.length;s+=1)o[s]=G_(H_(t,i,s));const r=s=>nt(o[s],1,1,(()=>{o[s]=null}));return{c(){for(let s=0;s<o.length;s+=1)o[s].c();e=si()},m(s,l){for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(s,l);st(s,e,l),n=!0},p(s,l){if(l[0]&5257|l[1]&8){i=ci(s[12]);let a;for(a=0;a<i.length;a+=1){const c=H_(s,i,a);o[a]?(o[a].p(c,l),Ue(o[a],1)):(o[a]=G_(c),o[a].c(),Ue(o[a],1),o[a].m(e.parentNode,e))}for(ui(),a=i.length;a<o.length;a+=1)r(a);pi()}},i(s){if(!n){for(let l=0;l<i.length;l+=1)Ue(o[l]);n=!0}},o(s){o=o.filter(g2);for(let l=0;l<o.length;l+=1)nt(o[l]);n=!1},d(s){s&&ot(e),To(o,s)}}}function xB(t){let e,n,i,o,r,s,l,a,c,d,u,p,_,f=[{class:o=pr.text__image},{src:r=t[64].image.url},{loading:s=t[64].image.preloadRequired?"eager":"lazy"},{decoding:"async"},{alt:l=t[64].image.description},t[64].image.a11yAttrs,{style:a=qn({height:t[64].image.height,filter:t[64].image.svgFilterId?`url(#${t[64].image.svgFilterId})`:void 0})}],m={};for(let g=0;g<f.length;g+=1)m=Gs(m,f[g]);return{c(){e=Zt("span"),n=Zt("span"),i=Zt("img"),$r(i,m),K(n,"class",c=kn("text__image-wrapper",pr,{align:t[64].image.verticalAlign,crop:t[10]!==null})),K(n,"style",d=qn({width:t[64].image.width,height:t[10]&&t[64].image.verticalAlign!=="baseline"?t[10]+"em":void 0})),K(e,"style",u=qn(t[64].image.wrapperStyle))},m(g,v){st(g,e,v),Ln(e,n),Ln(n,i),p||(_=en(i,"error",t[34]),p=!0)},p(g,v){$r(i,m=Pl(f,[{class:o},v[0]&4096&&!sr(i.src,r=g[64].image.url)&&{src:r},v[0]&4096&&s!==(s=g[64].image.preloadRequired?"eager":"lazy")&&{loading:s},{decoding:"async"},v[0]&4096&&l!==(l=g[64].image.description)&&{alt:l},v[0]&4096&&g[64].image.a11yAttrs,v[0]&4096&&a!==(a=qn({height:g[64].image.height,filter:g[64].image.svgFilterId?`url(#${g[64].image.svgFilterId})`:void 0}))&&{style:a}])),v[0]&5120&&c!==(c=kn("text__image-wrapper",pr,{align:g[64].image.verticalAlign,crop:g[10]!==null}))&&K(n,"class",c),v[0]&5120&&d!==(d=qn({width:g[64].image.width,height:g[10]&&g[64].image.verticalAlign!=="baseline"?g[10]+"em":void 0}))&&K(n,"style",d),v[0]&4096&&u!==(u=qn(g[64].image.wrapperStyle))&&K(e,"style",u)},i:he,o:he,d(g){g&&ot(e),p=!1,_()}}}function QB(t){let e,n,i=t[64].text&&Y_(t);return{c(){i&&i.c(),e=si()},m(o,r){i&&i.m(o,r),st(o,e,r),n=!0},p(o,r){o[64].text?i?(i.p(o,r),r[0]&4096&&Ue(i,1)):(i=Y_(o),i.c(),Ue(i,1),i.m(e.parentNode,e)):i&&(ui(),nt(i,1,1,(()=>{i=null})),pi())},i(o){n||(Ue(i),n=!0)},o(o){nt(i),n=!1},d(o){o&&ot(e),i&&i.d(o)}}}function Y_(t){let e,n;return e=new Ju({props:{componentContext:t[0],text:t[64].text,rootFontSize:t[3],textStyles:t[64].textStyles,singleline:t[7],actions:t[64].actions,customLineHeight:t[10]}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o[0]&1&&(r.componentContext=i[0]),o[0]&4096&&(r.text=i[64].text),o[0]&8&&(r.rootFontSize=i[3]),o[0]&4096&&(r.textStyles=i[64].textStyles),o[0]&128&&(r.singleline=i[7]),o[0]&4096&&(r.actions=i[64].actions),o[0]&1024&&(r.customLineHeight=i[10]),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function G_(t){let e,n,i,o;const r=[QB,xB],s=[];function l(a,c){return"text"in a[64]?0:a[64].image?1:-1}return~(e=l(t))&&(n=s[e]=r[e](t)),{c(){n&&n.c(),i=si()},m(a,c){~e&&s[e].m(a,c),st(a,i,c),o=!0},p(a,c){let d=e;e=l(a),e===d?~e&&s[e].p(a,c):(n&&(ui(),nt(s[d],1,1,(()=>{s[d]=null})),pi()),~e?(n=s[e],n?n.p(a,c):(n=s[e]=r[e](a),n.c()),Ue(n,1),n.m(i.parentNode,i)):n=null)},i(a){o||(Ue(n),o=!0)},o(a){nt(n),o=!1},d(a){a&&ot(i),~e&&s[e].d(a)}}}function eH(t){let e,n,i,o,r,s,l,a,c,d,u=t[6]&&U_(t);const p=[ZB,XB],_=[];function f(m,g){return m[12].length?0:1}return i=f(t),o=_[i]=p[i](t),{c(){u&&u.c(),e=Ai(),n=Zt("span"),o.c(),K(n,"class",r=kn("text__inner",pr,t[15])),K(n,"style",s=qn(t[14]))},m(m,g){u&&u.m(m,g),st(m,e,g),st(m,n,g),_[i].m(n,null),a=!0,c||(d=td(l=KB.call(null,n,{enabled:t[9],lineClamp:typeof t[4]=="number"?t[4]:void 0,maxLines:t[11]})),c=!0)},p(m,g){m[6]?u?(u.p(m,g),g[0]&64&&Ue(u,1)):(u=U_(m),u.c(),Ue(u,1),u.m(e.parentNode,e)):u&&(ui(),nt(u,1,1,(()=>{u=null})),pi());let v=i;i=f(m),i===v?_[i].p(m,g):(ui(),nt(_[v],1,1,(()=>{_[v]=null})),pi(),o=_[i],o?o.p(m,g):(o=_[i]=p[i](m),o.c()),Ue(o,1),o.m(n,null)),(!a||g[0]&32768&&r!==(r=kn("text__inner",pr,m[15])))&&K(n,"class",r),(!a||g[0]&16384&&s!==(s=qn(m[14])))&&K(n,"style",s),l&&Fi(l.update)&&g[0]&2576&&l.update.call(null,{enabled:m[9],lineClamp:typeof m[4]=="number"?m[4]:void 0,maxLines:m[11]})},i(m){a||(Ue(u),Ue(o),a=!0)},o(m){nt(u),nt(o),a=!1},d(m){m&&(ot(e),ot(n)),u&&u.d(m),_[i].d(),c=!1,d()}}}function tH(t){let e,n;return e=new qo({props:{cls:kn("text",pr,t[16])+" "+(t[5]?ai.root__selectable:ai.root__unselectable),componentContext:t[0],layoutParams:t[1],$$slots:{default:[eH]},$$scope:{ctx:t}}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o[0]&65568&&(r.cls=kn("text",pr,i[16])+" "+(i[5]?ai.root__selectable:ai.root__unselectable)),o[0]&1&&(r.componentContext=i[0]),o[0]&2&&(r.layoutParams=i[1]),o[0]&65501|o[2]&128&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function nH(t,e,n){let i,o,r,s,l,a,c,d,u,p,_,f,m,g,v,y,b,w,k,A,j,T,E,O,M,D,R=he,J=()=>(R(),R=Ve(y,(Ft=>n(47,D=Ft))),y),B,z=he,q=()=>(z(),z=Ve(s,(Ft=>n(8,B=Ft))),s),N,Y=he,x=()=>(Y(),Y=Ve(r,(Ft=>n(48,N=Ft))),r),ce,ue=he,Z=()=>(ue(),ue=Ve(o,(Ft=>n(49,ce=Ft))),o),Q,se=he,_e=()=>(se(),se=Ve(g,(Ft=>n(50,Q=Ft))),g),Oe,W=he,ge=()=>(W(),W=Ve(m,(Ft=>n(51,Oe=Ft))),m),it,ye=he,rt=()=>(ye(),ye=Ve(f,(Ft=>n(52,it=Ft))),f),U,de=he,pe=()=>(de(),de=Ve(_,(Ft=>n(53,U=Ft))),_),et,we=he,Ie=()=>(we(),we=Ve(p,(Ft=>n(54,et=Ft))),p),Xe,vt=he,Qe=()=>(vt(),vt=Ve(c,(Ft=>n(55,Xe=Ft))),c),fe,me=he,ve=()=>(me(),me=Ve(u,(Ft=>n(56,fe=Ft))),u),Ge,gt=he,ee=()=>(gt(),gt=Ve(d,(Ft=>n(57,Ge=Ft))),d),Je,We=he,jt=()=>(We(),We=Ve(v,(Ft=>n(9,Je=Ft))),v),zt,an=he,sn=()=>(an(),an=Ve(a,(Ft=>n(58,zt=Ft))),a),It,cn=he,pn=()=>(cn(),cn=Ve(l,(Ft=>n(59,It=Ft))),l),Sn,Fn=he,Re=()=>(Fn(),Fn=Ve(i,(Ft=>n(60,Sn=Ft))),i);t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>Y())),t.$$.on_destroy.push((()=>ue())),t.$$.on_destroy.push((()=>se())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>ye())),t.$$.on_destroy.push((()=>de())),t.$$.on_destroy.push((()=>we())),t.$$.on_destroy.push((()=>vt())),t.$$.on_destroy.push((()=>me())),t.$$.on_destroy.push((()=>gt())),t.$$.on_destroy.push((()=>We())),t.$$.on_destroy.push((()=>an())),t.$$.on_destroy.push((()=>cn())),t.$$.on_destroy.push((()=>Fn()));let{componentContext:lt}=e,{layoutParams:li=void 0}=e;const wt=ro(vo),zn=wt.direction;ko(t,zn,(Ft=>n(46,M=Ft)));let Jt="",gn=12,Lt=1.25,$n=null,hn="",Ut,Kt="",Jn=!1,Kn="start",fi="start",Ke="",bt="",ct="",ht=!1,qt=[],St=!1,Ot=[];function nn(Ft,xt,dt,Ye){let bi=[];if(Ot.forEach((([rn,Nn])=>{wt.removeSvgFilter(rn,Nn)})),Ot=[],!(Array.isArray(xt)&&xt.length||Array.isArray(dt)&&dt.length&&Ft)){n(12,qt=[]);return}const hi=Ft;let Bn=xt||[{start:0,end:hi.length}],eo=dt||[],Tt=0,Wn=[],gi=[];Bn.forEach((rn=>{const Nn=rn.start||0,Bt=rn.end||Ft.length,vn={top_offset:0,...rn,start:Nn,end:Bt};gi.push({index:Nn,range:vn,type:"rangeStart",isStart:!0}),gi.push({index:Bt,range:vn,type:"rangeEnd"})})),eo.forEach(((rn,Nn)=>{rn.start!==void 0&&rn.url&&rn.start<=hi.length&&gi.push({index:rn.indexing_direction==="reversed"?Ft.length-rn.start:rn.start,image:rn,type:"image",arrayIndex:Nn})})),gi.sort(((rn,Nn)=>rn.index===Nn.index?rn.type!==Nn.type?rn.type==="image"?-1:Nn.type==="image"?1:rn.type<Nn.type?-1:1:rn.type==="image"&&Nn.type==="image"?Nn.arrayIndex-rn.arrayIndex:rn.type==="rangeStart"&&Nn.type==="rangeStart"?rn.range.end-Nn.range.end:rn.type==="rangeStart"?1:Nn.type==="rangeStart"?-1:rn.type!=="image"&&Nn.type!=="image"?rn.range.start-Nn.range.start:0:rn.index-Nn.index)),gi.forEach((rn=>{var Nn,Bt,vn,un;let En=rn.type==="image"?null:rn.range,Yn=rn.index;if(Yn>Tt){let Ce=Object.assign({...Ye},...Wn);Wn.length&&Wn[Wn.length-1].start!==Tt&&(Ce.top_offset=0),bi.push({text:hi.substring(Tt,Yn),textStyles:Ce,actions:rn.type==="rangeEnd"&&((Bt=(Nn=rn.range)==null?void 0:Nn.actions)==null?void 0:Bt.filter(Bo))||void 0})}if(rn.type==="rangeStart"&&En)Wn.push(En);else if(rn.type==="rangeEnd")Wn=Wn.filter((Ce=>Ce!==rn.range));else if(rn.type==="image"){let Ce=Object.assign({...Ye},...Wn),bn=At((rn.image.width&&rn.image.width.value||20)*10/(Ce.font_size||12)),ft=At((rn.image.height&&rn.image.height.value||20)*10/(Ce.font_size||12));const C={"font-size":At((Number(Ce.font_size)||12)*10/gn)};let Mt="";const An=rn.image.tint_color,Ni=m2(rn.image.tint_mode,"source_in");if(An){const oe=Ri(rn.image.tint_color);Mt=wt.addSvgFilter(oe,Ni),Ot.push([oe,Ni])}const mi={},Ne=(vn=rn.image.accessibility)==null?void 0:vn.type,Ii=((un=rn.image.accessibility)==null?void 0:un.description)||"";(Ne==="button"||Ne==="image")&&Ii?mi.role=Ne:(!Ii||Ne==="none")&&(mi["aria-hidden"]="true"),bi.push({image:{url:rn.image.url,width:bn,height:ft,wrapperStyle:C,svgFilterId:Mt,preloadRequired:!!rn.image.preload_required,verticalAlign:rn.image.alignment_vertical,description:Ii,a11yAttrs:mi}})}Tt=Yn})),Tt<hi.length&&bi.push({text:hi.substring(Tt),textStyles:{...Ye}}),n(12,qt=bi),n(6,St=bi.some((rn=>{var Nn;return"text"in rn&&((Nn=rn.textStyles.background)==null?void 0:Nn.type)==="cloud"})))}function ei(Ft){Ft.target&&"classList"in Ft.target&&Ft.target.classList.add(pr.text__image_hidden)}return jo((()=>{Ot.forEach((([Ft,xt])=>{wt.removeSvgFilter(Ft,xt)}))})),t.$$set=Ft=>{"componentContext"in Ft&&n(0,lt=Ft.componentContext),"layoutParams"in Ft&&n(1,li=Ft.layoutParams)},t.$$.update=()=>{if(t.$$.dirty[0]&1&<.json&&(n(3,gn=12),n(35,Lt=1.25),n(10,$n=null),n(36,hn=""),n(11,Ut=void 0),n(4,Kt=""),n(37,Jn=!1),n(38,Kn="start"),n(39,fi="start"),n(40,Ke=""),n(42,ct=""),n(5,ht=!1)),t.$$.dirty[0]&1&&Re(n(32,i=lt.getDerivedFromVars(lt.json.text))),t.$$.dirty[0]&1&&Z(n(31,o=lt.getDerivedFromVars(lt.json.ranges))),t.$$.dirty[0]&1&&x(n(30,r=lt.getDerivedFromVars(lt.json.images))),t.$$.dirty[0]&1&&q(n(29,s=lt.getDerivedFromVars({font_size:lt.json.font_size,letter_spacing:lt.json.letter_spacing,font_weight:lt.json.font_weight,font_weight_value:lt.json.font_weight_value,font_family:lt.json.font_family,text_color:lt.json.text_color,underline:lt.json.underline,strike:lt.json.strike,line_height:lt.json.line_height,text_shadow:lt.json.text_shadow,font_feature_settings:lt.json.font_feature_settings}))),t.$$.dirty[0]&1&&pn(n(28,l=lt.getDerivedFromVars(lt.json.font_size))),t.$$.dirty[0]&1&&sn(n(27,a=lt.getDerivedFromVars(lt.json.line_height))),t.$$.dirty[0]&1&&Qe(n(26,c=lt.getDerivedFromVars(lt.json.max_lines))),t.$$.dirty[0]&1&&ee(n(25,d=lt.getDerivedFromVars(lt.json.text_alignment_horizontal))),t.$$.dirty[0]&1&&ve(n(24,u=lt.getDerivedFromVars(lt.json.text_alignment_vertical))),t.$$.dirty[0]&1&&Ie(n(23,p=lt.getDerivedFromVars(lt.json.text_color))),t.$$.dirty[0]&1&&pe(n(22,_=lt.getDerivedFromVars(lt.json.focused_text_color))),t.$$.dirty[0]&1&&rt(n(21,f=lt.getDerivedFromVars(lt.json.truncate))),t.$$.dirty[0]&1&&ge(n(20,m=lt.getDerivedFromVars(lt.json.text_gradient))),t.$$.dirty[0]&1&&_e(n(19,g=lt.getDerivedFromVars(lt.json.selectable))),t.$$.dirty[0]&1&&jt(n(18,v=lt.getDerivedFromVars(lt.json.auto_ellipsize))),t.$$.dirty[0]&1&&J(n(17,y=lt.getDerivedFromVars(lt.json.paddings))),t.$$.dirty[0]&1|t.$$.dirty[1]&536870912&&(typeof lt.json.text=="string"?n(2,Jt=WB(Sn)):(n(2,Jt=""),lt.logError(tt(new Error("Incorrect text value type"))))),t.$$.dirty[0]&8|t.$$.dirty[1]&268435456&&n(3,gn=mr(It,gn)),t.$$.dirty[0]&8|t.$$.dirty[1]&134217744){const Ft=zt;Zo(Ft)?(n(35,Lt=Number(Ft)/gn),n(10,$n=Lt)):n(10,$n=null)}if(t.$$.dirty[1]&16777216&&n(7,b=Xe===1),t.$$.dirty[0]&512|t.$$.dirty[1]&16777232){let Ft="",xt,dt="",Ye=!1;if(Xe&&Xe>1){const bi=Number(Xe);Ft=bi*Lt+"em",xt=bi,dt=bi,Ye=!0}else Je&&Xe!==1&&(Ye=!0);n(36,hn=Ft),n(11,Ut=xt),n(4,Kt=dt),n(37,Jn=Ye)}if(t.$$.dirty[1]&67141760&&n(38,Kn=Uu(Ge,M,Kn)),t.$$.dirty[1]&33554688&&n(39,fi=Wu(fe,fi)),t.$$.dirty[0]&4|t.$$.dirty[1]&262144&&n(45,w=!ce||Jt&&ce.length===1&&ce[0]&&(!ce[0].start||ce[0].start===0)&&(!ce[0].end||typeof ce[0].end=="number"&&ce[0].end>=Jt.length)),t.$$.dirty[1]&8650752&&n(44,k=!!et!=!!(ce&&ce[0]&&ce[0].text_color)),t.$$.dirty[1]&25453056){let Ft="";Xe&&w&&k&&(Ft=Ri(et||ce&&ce[0]&&ce[0].text_color,1,Ke)),n(40,Ke=Ft)}if(t.$$.dirty[1]&4195328&&n(41,bt=Ri(U,1,bt)),t.$$.dirty[1]&2097152&&n(43,A=it==="none"?"none":""),t.$$.dirty[1]&1048576){let Ft="";if(Oe){const xt=id([Oe]);xt.image&&(Ft=xt.image)}n(42,ct=Ft)}t.$$.dirty[0]&32|t.$$.dirty[1]&524288&&n(5,ht=br(Q,ht)),t.$$.dirty[0]&260|t.$$.dirty[1]&393216&&nn(Jt,ce,N,B),t.$$.dirty[0]&128|t.$$.dirty[1]&5568&&n(16,j={singleline:b,multiline:Jn,halign:Kn,valign:fi,truncate:A,"has-focus-color":!!bt}),t.$$.dirty[0]&64|t.$$.dirty[1]&2048&&n(15,T={gradient:!!ct,"has-cloud-bg":St}),t.$$.dirty[0]&24|t.$$.dirty[1]&3632&&n(14,E={"font-size":At(gn),"line-height":Lt,"max-height":hn,"-webkit-line-clamp":Kt,color:Ke,"background-image":ct,"--divkit-text-focus-color":bt}),t.$$.dirty[0]&8|t.$$.dirty[1]&98304&&n(13,O=qr(du(ya(D,{})||{},10/gn),M))},[lt,li,Jt,gn,Kt,ht,St,b,B,Je,$n,Ut,qt,O,E,T,j,y,v,g,m,f,_,p,u,d,c,a,l,s,r,o,i,zn,ei,Lt,hn,Jn,Kn,fi,Ke,bt,ct,A,k,w,M,D,N,ce,Q,Oe,it,U,et,Xe,fe,Ge,zt,It,Sn]}class iH extends Qi{constructor(e){super(),xi(this,e,nH,tH,Pi,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}}const oH="divkit-a6270",rH="divkit-758dd",sH="divkit-34175",lH="divkit-5d3b3",aH="divkit-76f26",cH="divkit-71fc3",dH="divkit-d66e1",uH="divkit-4d9fa",pH="divkit-f82bf",_H="divkit-221f7",fH="divkit-88fee",mH="divkit-825b7",X_={container:oH,container_wrap:rH,container_overflow_visible:sH,container_orientation_vertical:lH,container_valign_start:aH,container_valign_center:cH,container_valign_end:dH,"container_valign_space-between":"divkit-4aa6d","container_valign_space-around":"divkit-846d1","container_valign_space-evenly":"divkit-e04b5",container_halign_start:uH,container_halign_center:pH,container_halign_end:_H,"container_halign_space-between":"divkit-2daed","container_halign_space-around":"divkit-359ca","container_halign_space-evenly":"divkit-82605",container_orientation_horizontal:fH,container_orientation_overlap:mH};function Z_(t){return{top:Number(t==null?void 0:t.top)||0,right:Number(t==null?void 0:t.right)||0,bottom:Number(t==null?void 0:t.bottom)||0,left:Number(t==null?void 0:t.left)||0}}function x_(t,e,n){const i=((e==null?void 0:e.margins.left)||0)+((e==null?void 0:e.margins.right)||0),o=((e==null?void 0:e.margins.top)||0)+((e==null?void 0:e.margins.bottom)||0);e!=null&&e.show_at_start&&(n?t.top=e.style.height+o:t.left=e.style.width+i),e!=null&&e.show_at_end&&(n?t.bottom=e.style.height+o:t.right=e.style.width+i)}function gH(t,e,n){const i={};return x_(i,e,t==="vertical"),x_(i,n,t==="horizontal"),i}function hH(t,e,n){let i;const o=((e==null?void 0:e.margins.left)||0)+((e==null?void 0:e.margins.right)||0),r=((e==null?void 0:e.margins.top)||0)+((e==null?void 0:e.margins.bottom)||0),s=((n==null?void 0:n.margins.left)||0)+((n==null?void 0:n.margins.right)||0),l=((n==null?void 0:n.margins.top)||0)+((n==null?void 0:n.margins.bottom)||0);return t==="horizontal"?i=[n!=null&&n.show_between?n.style.height+l:0,e!=null&&e.show_between?e.style.width+o:0]:i=[e!=null&&e.show_between?e.style.height+r:0,n!=null&&n.show_between?n.style.width+s:0],i.map(At).join(" ")}function vH(t){var e;const n=(e=t.width)==null?void 0:e.type;return n!=="wrap_content"&&n!=="fixed"}function bH(t){var e;return((e=t.height)==null?void 0:e.type)==="match_parent"}function yH(t,e){return t==="vertical"||t==="horizontal"||t==="overlap"?t:e}function wH(t){var e,n,i;return{width:uo((e=t.item_width)==null?void 0:e.value,10),height:uo((n=t.item_height)==null?void 0:n.value,10),radius:uo((i=t.corner_radius)==null?void 0:i.value,5)}}function $H(t){var e;const n=uo((e=t.radius)==null?void 0:e.value,10)*2;return{width:n,height:n,radius:n}}function kH(t,e,n){var i;const o={},r=e.stroke||(n==null?void 0:n.stroke),s=r!=null&&r.color?Ri(r.color):"",l=r!=null&&r.width?Number((i=r.width)!=null?i:1):"";o.width=t.width,o.height=t.height,o.borderRadius=t.radius;const a=e.background_color||(n==null?void 0:n.color);return o.background=Ri(a),s&&l&&(o.boxShadow=`inset 0 0 0 ${At(l)} ${s}`),o}function vr(t,e,n){if(!t||!t.shape||!t.shape.type||!e.includes(t.shape.type)||t.type!=="shape_drawable")return n;let i;if(t.shape.type==="rounded_rectangle")i=wH(t.shape);else if(t.shape.type==="circle")i=$H(t.shape);else return n;return kH(i,t.shape,{color:t.color,stroke:t.stroke})}let Bl;function Q_(){if(typeof document>"u"&&(Bl=!0),Bl!==void 0)return Bl;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),Bl=t.scrollHeight===1,document.body.removeChild(t),Bl}function jH(t,e){return t==="top"||t==="center"||t==="bottom"||t==="baseline"||t==="space-between"||t==="space-around"||t==="space-evenly"?t==="top"?"start":t==="bottom"?"end":t:e}function SH(t,e,n){return t==="left"||t==="center"||t==="right"||t==="space-between"||t==="space-around"||t==="space-evenly"||t==="start"||t==="end"?t==="left"?e==="ltr"?"start":"end":t==="right"?e==="ltr"?"end":"start":t:n}function TH(){}function Cs(t){return{subscribe(e){return e(t),TH}}}function Ku(t,e,n,i){const o=[],r=i.prototypes;return r&&t.forEach(((s,l)=>{if(s===null||typeof s!="object")return;const a=e.preparePrototypeVariables(i.data_element_name||"it",s,l);let c,d;for(let u=0;u<r.length;++u){const p=r[u];if(p.div){if(p.selector===void 0){c=p.div,d=n.getJsonWithVars(p.id,a);break}if(n.getJsonWithVars(p.selector,a)){c=p.div,d=n.getJsonWithVars(p.id,a);break}}}c&&o.push({div:c,id:d,vars:a})})),o}const ra={"container-separator":"divkit-e4041","container-separator__item":"divkit-566e3","container-separator__shape":"divkit-4178a"};function CH(t,e){let n=0,i,o=!1;return function(){const r=Date.now();return!n||Math.abs(r-n)>e?(n=r,i=t.apply(this,arguments)):(o||(o=!0,setTimeout((()=>{o=!1,i=t.apply(this,arguments)}),e)),i)}}function zH(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)}}const{window:EH}=Jr;function ef(t,e,n){const i=t.slice();return i[16]=e[n],i}function tf(t){let e,n,i=`${t[16].style.width}px`,o=`${t[16].style.height}px`,r=`${t[16].style.borderRadius}px`,s,l=`${t[16].left}px`,a=`${t[16].top}px`,c=`${t[16].width}px`,d=`${t[16].height}px`;return{c(){e=Zt("div"),n=Zt("div"),s=Ai(),K(n,"class",ra["container-separator__shape"]),He(n,"width",i),He(n,"height",o),He(n,"border-radius",r),He(n,"background",t[16].style.background),He(n,"box-shadow",t[16].style.boxShadow),K(e,"class",ra["container-separator__item"]),He(e,"left",l),He(e,"top",a),He(e,"width",c),He(e,"height",d)},m(u,p){st(u,e,p),Ln(e,n),Ln(e,s)},p(u,p){p&2&&i!==(i=`${u[16].style.width}px`)&&He(n,"width",i),p&2&&o!==(o=`${u[16].style.height}px`)&&He(n,"height",o),p&2&&r!==(r=`${u[16].style.borderRadius}px`)&&He(n,"border-radius",r),p&2&&He(n,"background",u[16].style.background),p&2&&He(n,"box-shadow",u[16].style.boxShadow),p&2&&l!==(l=`${u[16].left}px`)&&He(e,"left",l),p&2&&a!==(a=`${u[16].top}px`)&&He(e,"top",a),p&2&&c!==(c=`${u[16].width}px`)&&He(e,"width",c),p&2&&d!==(d=`${u[16].height}px`)&&He(e,"height",d)},d(u){u&&ot(e)}}}function AH(t){let e,n,i,o=ci(t[1]),r=[];for(let s=0;s<o.length;s+=1)r[s]=tf(ef(t,o,s));return{c(){e=Zt("div");for(let s=0;s<r.length;s+=1)r[s].c();K(e,"class",ra["container-separator"])},m(s,l){st(s,e,l);for(let a=0;a<r.length;a+=1)r[a]&&r[a].m(e,null);t[13](e),n||(i=en(EH,"resize",t[2]),n=!0)},p(s,[l]){if(l&2){o=ci(s[1]);let a;for(a=0;a<o.length;a+=1){const c=ef(s,o,a);r[a]?r[a].p(c,l):(r[a]=tf(c),r[a].c(),r[a].m(e,null))}for(;a<r.length;a+=1)r[a].d(1);r.length=o.length}},i:he,o:he,d(s){s&&ot(e),To(r,s),t[13](null),n=!1,i()}}}const OH=10;function Td(t,e,n,i,o,r){const s=e.margins.left,l=e.margins.right,a=e.margins.top,c=e.margins.bottom;r?t.push({top:n.bottom+a,left:o.left+s,width:Math.max(0,o.right-o.left-s-l),height:i.top-n.bottom-a-c,style:e.style}):t.push({top:o.top+a,left:n.right+s,width:i.left-n.right-s-l,height:Math.max(0,o.bottom-o.top-a-c),style:e.style})}function nf(t,e,n,i,o,r){const s={top:Math.min(...n.map((l=>l.top))),right:Math.max(...n.map((l=>l.right))),bottom:Math.max(...n.map((l=>l.bottom))),left:Math.min(...n.map((l=>l.left)))};if(e!=null&&e.show_at_start){let l,a;o==="space-around"||o==="space-evenly"?(l=r.left-e.style.width,a=r.top-e.style.height):(l=n[0].left-e.style.width-e.margins.left-e.margins.right,a=n[0].top-e.style.height-e.margins.top-e.margins.bottom),Td(t,e,{right:l,bottom:a},n[0],s,i)}if(e!=null&&e.show_between)for(let l=0;l<n.length-1;++l)Td(t,e,n[l],n[l+1],s,i);if(e!=null&&e.show_at_end){const l=n[n.length-1];let a,c;o==="space-around"||o==="space-evenly"?(a=r.bottom+e.style.height,c=r.right+e.style.width):(a=l.bottom+e.style.height+e.margins.top+e.margins.bottom,c=l.right+e.style.width+e.margins.left+e.margins.right),Td(t,e,l,{top:a,left:c},s,i)}}function MH(t,e,n){let i,{orientation:o}=e,{separator:r}=e,{lineSeparator:s}=e,{contentHAlign:l}=e,{contentVAlign:a}=e,{direction:c}=e;const d=CH(v,OH);let u=[],p,_=!1,f=null,m=null;function g(b){b.some((w=>{var k;const A=(k=w.target)==null?void 0:k.classList;return!(A!=null&&A.contains(ra["container-separator__shape"]))&&!(A!=null&&A.contains(ra["container-separator"]))}))&&d()}function v(){if(!i)return;const b=i.getBoundingClientRect(),w=window.getComputedStyle(i),k={top:b.top+parseFloat(w.paddingTop),right:b.right-parseFloat(w.paddingRight),bottom:b.bottom-parseFloat(w.paddingBottom),left:b.left+parseFloat(w.paddingLeft)};n(1,u=[]);let A=[...i.children].filter((E=>E!==p&&!E.classList.contains(jc.outer__border))),j=[];for(;A.length;){const E=[],O=A.shift();E.push(O);let M=O.getBoundingClientRect(),D=M.left,R=M.right,J=M.bottom;for(;A.length;){let B=A[0],z=B.getBoundingClientRect();if(o==="vertical"){if(z.top<J)break}else if(c==="ltr"?z.left<R:z.right>D)break;R=Math.max(R,z.right),D=Math.min(D,z.left),J=Math.max(J,z.bottom),E.push(B),A.shift()}j.push(E)}const T=[];j.forEach((E=>{const O=E.map((D=>zH(D)));c==="rtl"&&o==="horizontal"&&O.reverse(),r&&nf(u,r,O,o==="vertical",o==="vertical"?a:l,k);const M={top:Math.min(...O.map((D=>D.top))),right:Math.max(...O.map((D=>D.right))),bottom:Math.max(...O.map((D=>D.bottom))),left:Math.min(...O.map((D=>D.left)))};T.push(M)})),c==="rtl"&&o==="vertical"&&T.reverse(),s&&nf(u,s,T,o==="horizontal",o==="vertical"?l:a,k),u.forEach((E=>{E.top-=b.top,E.left-=b.left}))}Sr((()=>{n(9,_=!0)})),jo((()=>{n(9,_=!1)}));function y(b){Wi[b?"unshift":"push"]((()=>{p=b,n(0,p)}))}return t.$$set=b=>{"orientation"in b&&n(3,o=b.orientation),"separator"in b&&n(4,r=b.separator),"lineSeparator"in b&&n(5,s=b.lineSeparator),"contentHAlign"in b&&n(6,l=b.contentHAlign),"contentVAlign"in b&&n(7,a=b.contentVAlign),"direction"in b&&n(8,c=b.direction)},t.$$.update=()=>{t.$$.dirty&1&&n(12,i=(p==null?void 0:p.parentElement)||null),t.$$.dirty&7680&&(_&&i||f||m)&&(f&&(f.disconnect(),n(10,f=null)),m&&(m.disconnect(),n(11,m=null)),_&&i&&(typeof MutationObserver<"u"&&(n(10,f=new MutationObserver(g)),f.observe(i,{childList:!0,attributes:!0,characterData:!0,subtree:!0})),typeof ResizeObserver<"u"&&(n(11,m=new ResizeObserver(d)),m.observe(i)))),t.$$.dirty&4608&&_&&i&&d()},[p,u,d,o,r,s,l,a,c,_,f,m,i,y]}class PH extends Qi{constructor(e){super(),xi(this,e,MH,AH,Pi,{orientation:3,separator:4,lineSeparator:5,contentHAlign:6,contentVAlign:7,direction:8})}}const{Boolean:IH}=Jr;function of(t,e,n){const i=t.slice();return i[49]=e[n],i}function rf(t){let e,n;return e=new Tr({props:{componentContext:t[49],layoutParams:t[8]}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o[0]&512&&(r.componentContext=i[49]),o[0]&256&&(r.layoutParams=i[8]),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function sf(t){let e,n;return e=new PH({props:{direction:t[10],separator:t[5],lineSeparator:t[6],orientation:t[2],contentHAlign:t[4],contentVAlign:t[3]}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o[0]&1024&&(r.direction=i[10]),o[0]&32&&(r.separator=i[5]),o[0]&64&&(r.lineSeparator=i[6]),o[0]&4&&(r.orientation=i[2]),o[0]&16&&(r.contentHAlign=i[4]),o[0]&8&&(r.contentVAlign=i[3]),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function DH(t){let e,n,i,o=ci(t[9]),r=[];for(let a=0;a<o.length;a+=1)r[a]=rf(of(t,o,a));const s=a=>nt(r[a],1,1,(()=>{r[a]=null}));let l=(t[5]||t[6])&&sf(t);return{c(){for(let a=0;a<r.length;a+=1)r[a].c();e=Ai(),l&&l.c(),n=si()},m(a,c){for(let d=0;d<r.length;d+=1)r[d]&&r[d].m(a,c);st(a,e,c),l&&l.m(a,c),st(a,n,c),i=!0},p(a,c){if(c[0]&768){o=ci(a[9]);let d;for(d=0;d<o.length;d+=1){const u=of(a,o,d);r[d]?(r[d].p(u,c),Ue(r[d],1)):(r[d]=rf(u),r[d].c(),Ue(r[d],1),r[d].m(e.parentNode,e))}for(ui(),d=o.length;d<r.length;d+=1)s(d);pi()}a[5]||a[6]?l?(l.p(a,c),c[0]&96&&Ue(l,1)):(l=sf(a),l.c(),Ue(l,1),l.m(n.parentNode,n)):l&&(ui(),nt(l,1,1,(()=>{l=null})),pi())},i(a){if(!i){for(let c=0;c<o.length;c+=1)Ue(r[c]);Ue(l),i=!0}},o(a){r=r.filter(IH);for(let c=0;c<r.length;c+=1)nt(r[c]);nt(l),i=!1},d(a){a&&(ot(e),ot(n)),To(r,a),l&&l.d(a)}}}function VH(t){let e,n;return e=new qo({props:{cls:kn("container",X_,t[13]),componentContext:t[0],layoutParams:t[1],style:t[12],additionalPaddings:t[14],heightByAspect:!!t[7],parentOf:t[9],replaceItems:t[27],$$slots:{default:[DH]},$$scope:{ctx:t}}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o[0]&8192&&(r.cls=kn("container",X_,i[13])),o[0]&1&&(r.componentContext=i[0]),o[0]&2&&(r.layoutParams=i[1]),o[0]&4096&&(r.style=i[12]),o[0]&16384&&(r.additionalPaddings=i[14]),o[0]&128&&(r.heightByAspect=!!i[7]),o[0]&512&&(r.parentOf=i[9]),o[0]&1916|o[1]&2097152&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}const LH={start:"start",center:"center",end:"end","space-between":"start","space-around":"start","space-evenly":"start"},FH={start:"start",center:"center",end:"end",baseline:"baseline","space-between":"start","space-around":"start","space-evenly":"start"},lf=["rounded_rectangle","circle"];function NH(t,e,n){let i,o,r,s,l,a,c,d,u,p,_,f,m,g,v,y,b,w,k,A,j,T,E=he,O=()=>(E(),E=Ve(m,(lt=>n(35,T=lt))),m),M,D=he,R=()=>(D(),D=Ve(f,(lt=>n(36,M=lt))),f),J,B=he,z=()=>(B(),B=Ve(_,(lt=>n(37,J=lt))),_),q,N=he,Y=()=>(N(),N=Ve(p,(lt=>n(38,q=lt))),p),x,ce=he,ue=()=>(ce(),ce=Ve(u,(lt=>n(39,x=lt))),u),Z,Q=he,se=()=>(Q(),Q=Ve(d,(lt=>n(40,Z=lt))),d),_e,Oe,W=he,ge=()=>(W(),W=Ve(c,(lt=>n(41,Oe=lt))),c),it,ye=he,rt=()=>(ye(),ye=Ve(a,(lt=>n(42,it=lt))),a),U,de=he,pe=()=>(de(),de=Ve(We,(lt=>n(43,U=lt))),We),et,we=he,Ie=()=>(we(),we=Ve(l,(lt=>n(44,et=lt))),l),Xe,vt=he,Qe=()=>(vt(),vt=Ve(s,(lt=>n(45,Xe=lt))),s),fe,me=he,ve=()=>(me(),me=Ve(r,(lt=>n(46,fe=lt))),r);t.$$.on_destroy.push((()=>E())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>ce())),t.$$.on_destroy.push((()=>Q())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>ye())),t.$$.on_destroy.push((()=>de())),t.$$.on_destroy.push((()=>we())),t.$$.on_destroy.push((()=>vt())),t.$$.on_destroy.push((()=>me()));let{componentContext:Ge}=e,{layoutParams:gt=void 0}=e;const ee=ro(vo),Je=ee.direction;ko(t,Je,(lt=>n(10,_e=lt)));let We,jt="vertical",zt="start",an="start",sn=null,It=null,cn,pn={};function Sn(){n(2,jt="vertical"),n(3,zt="start"),n(4,an="start"),n(7,cn=void 0)}function Fn(lt){n(0,Ge={...Ge,json:{...Ge.json,items:lt.filter(os)}})}let Re=[];return jo((()=>{Re.forEach((lt=>{lt.destroy()}))})),t.$$set=lt=>{"componentContext"in lt&&n(0,Ge=lt.componentContext),"layoutParams"in lt&&n(1,gt=lt.layoutParams)},t.$$.update=()=>{var lt,li,wt,zn,Jt,gn,Lt,$n,hn;if(t.$$.dirty[0]&1&&n(34,i=Ge.origJson),t.$$.dirty[1]&8&&i&&Sn(),t.$$.dirty[0]&1&&n(33,o=Ge.json.items),t.$$.dirty[0]&1&&ve(n(25,r=typeof((lt=Ge.json.item_builder)==null?void 0:lt.data)=="string"?Ge.getDerivedFromVars((li=Ge.json.item_builder)==null?void 0:li.data,void 0,!0):(wt=Ge.json.item_builder)!=null&&wt.data?Cs(Ge.json.item_builder.data):void 0)),t.$$.dirty[0]&1&&Qe(n(24,s=Ge.getDerivedFromVars(Ge.json.orientation))),t.$$.dirty[0]&1&&Ie(n(23,l=Ge.getDerivedFromVars(Ge.json.layout_mode))),t.$$.dirty[0]&1&&rt(n(22,a=Ge.getDerivedFromVars(Ge.json.content_alignment_vertical))),t.$$.dirty[0]&1&&ge(n(21,c=Ge.getDerivedFromVars(Ge.json.content_alignment_horizontal))),t.$$.dirty[0]&1&&se(n(20,d=Ge.getDerivedFromVars(Ge.json.separator))),t.$$.dirty[0]&1&&ue(n(19,u=Ge.getDerivedFromVars(Ge.json.line_separator))),t.$$.dirty[0]&1&&Y(n(18,p=Ge.getDerivedFromVars(Ge.json.aspect))),t.$$.dirty[0]&1&&z(n(17,_=Ge.getDerivedFromVars(Ge.json.width))),t.$$.dirty[0]&1&&R(n(16,f=Ge.getDerivedFromVars(Ge.json.height))),t.$$.dirty[0]&1&&O(n(15,m=Ge.getDerivedFromVars(Ge.json.clip_to_bounds))),t.$$.dirty[0]&513|t.$$.dirty[1]&32772){let Ut=[];if(Ge.json.item_builder&&Array.isArray(fe)&&Array.isArray(Ge.json.item_builder.prototypes)){const Kt=Ge.json.item_builder;Ut=Ku(fe,ee,Ge,Kt)}else Ut=(Array.isArray(o)&&o||[]).map((Kt=>({div:Kt})));Re.forEach((Kt=>{Kt.destroy()})),n(9,Re=Ut.map(((Kt,Jn)=>Ge.produceChildContext(Kt.div,{path:Jn,variables:Kt.vars,id:Kt.id}))))}if(t.$$.dirty[0]&513){let Ut=[];Re.forEach((Kt=>{Ut.push(Ge.getDerivedFromVars({width:Kt.json.width,height:Kt.json.height}))})),pe(n(11,We=Ms(Ut,(Kt=>[...Kt]))))}if(t.$$.dirty[0]&4|t.$$.dirty[1]&16384&&n(2,jt=yH(Xe,jt)),t.$$.dirty[1]&8192&&n(28,g=et==="wrap"),t.$$.dirty[0]&268435460&&n(32,v=jt!=="horizontal"&&!g),t.$$.dirty[0]&268435460&&n(31,y=jt!=="vertical"&&!g),t.$$.dirty[0]&4|t.$$.dirty[1]&4096&&n(30,b=jt==="overlap"&&!U.every(vH)),t.$$.dirty[0]&4|t.$$.dirty[1]&4096&&n(29,w=jt==="overlap"&&!U.every(bH)),t.$$.dirty[0]&8|t.$$.dirty[1]&2048&&n(3,zt=jH(it,zt)),t.$$.dirty[0]&1040|t.$$.dirty[1]&1024&&n(4,an=SH(Oe,_e,an)),t.$$.dirty[0]&36|t.$$.dirty[1]&512)if(Z!=null&&Z.style&&jt!=="overlap"&&Q_()){const Ut=vr(Z.style,lf,(sn==null?void 0:sn.style)||null);Ut?n(5,sn={show_at_start:!!((zn=Z.show_at_start)!=null&&zn),show_at_end:!!((Jt=Z.show_at_end)!=null&&Jt),show_between:!!((gn=Z.show_between)==null||gn),style:Ut,margins:Z_(Z.margins)}):n(5,sn=null)}else n(5,sn=null);if(t.$$.dirty[0]&68|t.$$.dirty[1]&256)if(x!=null&&x.style&&jt!=="overlap"&&Q_()){const Ut=vr(x.style,lf,(It==null?void 0:It.style)||null);Ut?n(6,It={show_at_start:!!((Lt=x.show_at_start)!=null&&Lt),show_at_end:!!(($n=x.show_at_end)!=null&&$n),show_between:!!((hn=x.show_between)==null||hn),style:Ut,margins:Z_(x.margins)}):n(6,It=null)}else n(6,It=null);if(t.$$.dirty[0]&100&&n(14,k=sn||It?gH(jt,sn,It):null),t.$$.dirty[1]&128){const Ut=q==null?void 0:q.ratio;Ut&&Zo(Ut)?n(7,cn=Ut):n(7,cn=void 0)}if(t.$$.dirty[0]&1879048606|t.$$.dirty[1]&99){let Ut={};jt==="overlap"&&(Ut.overlapParent=!0),jt!=="horizontal"&&(Ut.parentHAlign=g?"start":LH[an]),jt!=="vertical"&&(Ut.parentVAlign=g?"start":FH[zt]);const Kt=(J==null?void 0:J.type)==="wrap_content"||(J==null?void 0:J.type)==="match_parent"&&(gt==null?void 0:gt.parentHorizontalWrapContent),Jn=!M||M.type==="wrap_content"||M.type==="match_parent"&&(gt==null?void 0:gt.parentVerticalWrapContent);!v&&Kt&&(Ut.parentHorizontalWrapContent=!0),!cn&&!y&&Jn&&(Ut.parentVerticalWrapContent=!0),Ut.stretchWidth=b,Ut.stretchHeight=w,jt==="horizontal"&&(Ut.parentContainerOrientation="horizontal"),jt==="vertical"&&(Ut.parentContainerOrientation="vertical"),g&&(Ut.parentContainerWrap=!0),n(8,pn=us(Ut,pn))}t.$$.dirty[0]&268435484|t.$$.dirty[1]&16&&n(13,A={orientation:jt,valign:zt,halign:an,wrap:g,overflow:T===!1||T===0?"visible":void 0}),t.$$.dirty[0]&228&&n(12,j={gap:sn||It?hH(jt,sn,It):void 0,"aspect-ratio":cn})},[Ge,gt,jt,zt,an,sn,It,cn,pn,Re,_e,We,j,A,k,m,f,_,p,u,d,c,a,l,s,r,Je,Fn,g,w,b,y,v,o,i,T,M,J,q,x,Z,Oe,it,U,et,Xe,fe]}class qH extends Qi{constructor(e){super(),xi(this,e,NH,VH,Pi,{componentContext:0,layoutParams:1},null,[-1,-1])}}const RH="divkit-5196a",BH="divkit-8d569",HH="divkit-f0c05",JH="divkit-563bc",uu={separator:RH,separator_orientation_horizontal:BH,separator_orientation_vertical:HH,separator__inner:JH};function Yu(t,e){return t==="vertical"||t==="horizontal"?t:e}function af(t){let e,n;return{c(){e=Zt("span"),K(e,"class",uu.separator__inner),K(e,"style",n=qn(t[3]))},m(i,o){st(i,e,o)},p(i,o){o&8&&n!==(n=qn(i[3]))&&K(e,"style",n)},d(i){i&&ot(e)}}}function UH(t){let e,n=t[4]&&af(t);return{c(){n&&n.c(),e=si()},m(i,o){n&&n.m(i,o),st(i,e,o)},p(i,o){i[4]?n?n.p(i,o):(n=af(i),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(i){i&&ot(e),n&&n.d(i)}}}function WH(t){let e,n;return e=new qo({props:{cls:kn("separator",uu,t[2]),componentContext:t[0],layoutParams:t[1],$$slots:{default:[UH]},$$scope:{ctx:t}}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,[o]){const r={};o&4&&(r.cls=kn("separator",uu,i[2])),o&1&&(r.componentContext=i[0]),o&2&&(r.layoutParams=i[1]),o&8216&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function KH(t,e,n){let i,o,r,s,l,a,c,d,u=he,p=()=>(u(),u=Ve(o,(y=>n(11,d=y))),o);t.$$.on_destroy.push((()=>u()));let{componentContext:_}=e,{layoutParams:f=void 0}=e,m="horizontal",g="rgba(0,0,0,0.08)";function v(){n(6,m="horizontal"),n(7,g="rgba(0,0,0,0.08)")}return t.$$set=y=>{"componentContext"in y&&n(0,_=y.componentContext),"layoutParams"in y&&n(1,f=y.layoutParams)},t.$$.update=()=>{t.$$.dirty&1&&n(10,i=_.origJson),t.$$.dirty&1024&&i&&v(),t.$$.dirty&1&&p(n(5,o=_.getDerivedFromVars(_.json.delimiter_style))),t.$$.dirty&2112&&n(6,m=Yu(d==null?void 0:d.orientation,m)),t.$$.dirty&2048&&n(4,r=!(d!=null&&d.color&&(d.color==="transparent"||d.color.length===9&&d.color.indexOf("#00")===0))),t.$$.dirty&2176&&n(7,g=Ri(d==null?void 0:d.color,1,g)),t.$$.dirty&64&&n(9,s=m==="horizontal"?"100%":At(1)),t.$$.dirty&64&&n(8,l=m==="horizontal"?At(1):"100%"),t.$$.dirty&896&&n(3,a={background:g,width:s,height:l}),t.$$.dirty&64&&n(2,c={orientation:m})},[_,f,c,a,r,o,m,g,l,s,i,d]}class YH extends Qi{constructor(e){super(),xi(this,e,KH,WH,Pi,{componentContext:0,layoutParams:1})}}const GH="divkit-8ae57",XH="divkit-4eb06",ZH="divkit-eba6b",xH="divkit-37495",QH="divkit-cdd4f",sa={image:GH,"image_is-width-content":"divkit-0a28e","image_is-height-content":"divkit-f167b",image__image:XH,image_error:ZH,"image_is-rtl-mirror":"divkit-1b179","image__aspect-wrapper":"divkit-1afad",image_aspect:xH,image_loaded:QH,"divkit-image-appearance":"divkit-e49b3","image_before-appearance":"divkit-8ea57"};function eJ(t,e,n){let i=t.content_alignment_horizontal;const o=t.content_alignment_vertical;return i==="start"?i=e==="ltr"?"left":"right":i==="end"&&(i=e==="ltr"?"right":"left"),i&&i!=="left"&&i!=="center"&&i!=="right"||o&&o!=="top"&&o!=="center"&&o!=="bottom"?n:u2({content_alignment_horizontal:i,content_alignment_vertical:o})}function h2(t){return t.startsWith("data:")?lu(t):`data:image/jpg;base64,${lu(t)}`}function tJ(t,e,n){let{componentContext:i}=e;const o=ro(vo);let r=null;function s(){r&&r.update(i)}return Sr((()=>{i.fakeElement||(r=p2(null,o,i))})),nd(s),jo((()=>{r&&r.destroy()})),t.$$set=l=>{"componentContext"in l&&n(0,i=l.componentContext)},[i]}class Ur extends Qi{constructor(e){super(),xi(this,e,tJ,null,Pi,{componentContext:0})}}function nJ(t){let e,n;return e=new Ur({props:{componentContext:t[0]}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o[0]&1&&(r.componentContext=i[0]),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function iJ(t){let e,n;return e=new qo({props:{cls:kn("image",sa,t[9]),componentContext:t[0],layoutParams:t[1],customDescription:!0,$$slots:{default:[sJ]},$$scope:{ctx:t}}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o[0]&512&&(r.cls=kn("image",sa,i[9])),o[0]&1&&(r.componentContext=i[0]),o[0]&2&&(r.layoutParams=i[1]),o[0]&67110780|o[2]&64&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function oJ(t){let e,n,i,o,r,s,l;return{c(){e=Zt("img"),K(e,"class",sa.image__image),sr(e.src,n=t[2]===Es?la:t[3])||K(e,"src",n),K(e,"loading",i=t[26]?"eager":"lazy"),K(e,"decoding","async"),K(e,"style",o=qn(t[8])),K(e,"alt",t[10]),K(e,"aria-hidden",r=t[10]?null:"true")},m(a,c){st(a,e,c),t[63](e),s||(l=[en(e,"load",t[28]),en(e,"error",t[29])],s=!0)},p(a,c){c[0]&12&&!sr(e.src,n=a[2]===Es?la:a[3])&&K(e,"src",n),c[0]&67108864&&i!==(i=a[26]?"eager":"lazy")&&K(e,"loading",i),c[0]&256&&o!==(o=qn(a[8]))&&K(e,"style",o),c[0]&1024&&K(e,"alt",a[10]),c[0]&1024&&r!==(r=a[10]?null:"true")&&K(e,"aria-hidden",r)},d(a){a&&ot(e),t[63](null),s=!1,so(l)}}}function rJ(t){let e,n,i,o,r,s,l=`${t[4]}%`,a,c;return{c(){e=Zt("span"),n=Zt("img"),K(n,"class",sa.image__image),sr(n.src,i=t[2]===Es?la:t[3])||K(n,"src",i),K(n,"loading",o=t[26]?"eager":"lazy"),K(n,"decoding","async"),K(n,"style",r=qn(t[8])),K(n,"alt",t[10]),K(n,"aria-hidden",s=t[10]?null:"true"),K(e,"class",sa["image__aspect-wrapper"]),He(e,"padding-bottom",l)},m(d,u){st(d,e,u),Ln(e,n),t[62](n),a||(c=[en(n,"load",t[28]),en(n,"error",t[29])],a=!0)},p(d,u){u[0]&12&&!sr(n.src,i=d[2]===Es?la:d[3])&&K(n,"src",i),u[0]&67108864&&o!==(o=d[26]?"eager":"lazy")&&K(n,"loading",o),u[0]&256&&r!==(r=qn(d[8]))&&K(n,"style",r),u[0]&1024&&K(n,"alt",d[10]),u[0]&1024&&s!==(s=d[10]?null:"true")&&K(n,"aria-hidden",s),u[0]&16&&l!==(l=`${d[4]}%`)&&He(e,"padding-bottom",l)},d(d){d&&ot(e),t[62](null),a=!1,so(c)}}}function cf(t){let e;function n(r,s){return r[9].aspect?rJ:oJ}let i=n(t),o=i(t);return{c(){o.c(),e=si()},m(r,s){o.m(r,s),st(r,e,s)},p(r,s){i===(i=n(r))&&o?o.p(r,s):(o.d(1),o=i(r),o&&(o.c(),o.m(e.parentNode,e)))},d(r){r&&ot(e),o.d(r)}}}function sJ(t){let e=t[5],n,i=cf(t);return{c(){i.c(),n=si()},m(o,r){i.m(o,r),st(o,n,r)},p(o,r){r[0]&32&&Pi(e,e=o[5])?(i.d(1),i=cf(o),i.c(),i.m(n.parentNode,n)):i.p(o,r)},d(o){o&&ot(n),i.d(o)}}}function lJ(t){let e,n,i,o;const r=[iJ,nJ],s=[];function l(a,c){return a[7]?1:0}return~(e=l(t))&&(n=s[e]=r[e](t)),{c(){n&&n.c(),i=si()},m(a,c){~e&&s[e].m(a,c),st(a,i,c),o=!0},p(a,c){let d=e;e=l(a),e===d?~e&&s[e].p(a,c):(n&&(ui(),nt(s[d],1,1,(()=>{s[d]=null})),pi()),~e?(n=s[e],n?n.p(a,c):(n=s[e]=r[e](a),n.c()),Ue(n,1),n.m(i.parentNode,i)):n=null)},i(a){o||(Ue(n),o=!0)},o(a){nt(n),o=!1},d(a){a&&ot(i),~e&&s[e].d(a)}}}const la="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",aJ="empty://",cJ="rgba(0,0,0,0.08)",ks=0,Cd=1,Es=2;function dJ(t,e,n){let i,o,r,s,l,a,c,d,u,p,_,f,m,g,v,y,b,w,k,A,j,T,E=he,O=()=>(E(),E=Ve(v,(dt=>n(47,T=dt))),v),M,D,R=he,J=()=>(R(),R=Ve(g,(dt=>n(49,D=dt))),g),B,z=he,q=()=>(z(),z=Ve(m,(dt=>n(50,B=dt))),m),N,Y=he,x=()=>(Y(),Y=Ve(f,(dt=>n(51,N=dt))),f),ce,ue=he,Z=()=>(ue(),ue=Ve(_,(dt=>n(52,ce=dt))),_),Q,se=he,_e=()=>(se(),se=Ve(p,(dt=>n(53,Q=dt))),p),Oe,W=he,ge=()=>(W(),W=Ve(u,(dt=>n(54,Oe=dt))),u),it,ye=he,rt=()=>(ye(),ye=Ve(d,(dt=>n(55,it=dt))),d),U,de=he,pe=()=>(de(),de=Ve(c,(dt=>n(56,U=dt))),c),et,we=he,Ie=()=>(we(),we=Ve(a,(dt=>n(57,et=dt))),a),Xe,vt=he,Qe=()=>(vt(),vt=Ve(l,(dt=>n(58,Xe=dt))),l),fe,me=he,ve=()=>(me(),me=Ve(s,(dt=>n(59,fe=dt))),s),Ge,gt=he,ee=()=>(gt(),gt=Ve(o,(dt=>n(60,Ge=dt))),o),Je,We=he,jt=()=>(We(),We=Ve(r,(dt=>n(61,Je=dt))),r),zt,an=he,sn=()=>(an(),an=Ve(y,(dt=>n(26,zt=dt))),y);t.$$.on_destroy.push((()=>E())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>Y())),t.$$.on_destroy.push((()=>ue())),t.$$.on_destroy.push((()=>se())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>ye())),t.$$.on_destroy.push((()=>de())),t.$$.on_destroy.push((()=>we())),t.$$.on_destroy.push((()=>vt())),t.$$.on_destroy.push((()=>me())),t.$$.on_destroy.push((()=>gt())),t.$$.on_destroy.push((()=>We())),t.$$.on_destroy.push((()=>an()));let{componentContext:It}=e,{layoutParams:cn=void 0}=e;const pn=ro(vo),Sn=pn.direction;ko(t,Sn,(dt=>n(48,M=dt)));let Fn,Re=ks,lt=!1,li=cJ,wt=!1,zn,Jt="",gn="none",Lt="50% 50%",$n="0",hn,Ut="source_in",Kt="",Jn="",Kn=0,fi=0,Ke=0,bt="",ct="",ht=!1;function qt(){n(33,gn="none"),n(34,Lt="50% 50%"),n(36,Ut="source_in")}function St(dt){n(2,Re=ks)}function Ot(dt){n(34,Lt=eJ(dt,M,Lt))}function nn(){Re===ks&&n(2,Re=Cd)}function ei(){Re===ks&&n(2,Re=Es)}jo((()=>{pn.removeSvgFilter(hn,Ut)}));function Ft(dt){Wi[dt?"unshift":"push"]((()=>{Fn=dt,n(6,Fn)}))}function xt(dt){Wi[dt?"unshift":"push"]((()=>{Fn=dt,n(6,Fn)}))}return t.$$set=dt=>{"componentContext"in dt&&n(0,It=dt.componentContext),"layoutParams"in dt&&n(1,cn=dt.layoutParams)},t.$$.update=()=>{if(t.$$.dirty[0]&1&&n(46,i=It.origJson),t.$$.dirty[1]&32768&&i&&qt(),t.$$.dirty[0]&1&&ee(n(25,o=It.getDerivedFromVars(It.json.image_url))),t.$$.dirty[0]&1&&jt(n(24,r=It.getDerivedFromVars(It.json.gif_url))),t.$$.dirty[0]&1&&ve(n(23,s=It.getDerivedFromVars(It.json.width))),t.$$.dirty[0]&1&&Qe(n(22,l=It.getDerivedFromVars(It.json.height))),t.$$.dirty[0]&1&&Ie(n(21,a=It.getDerivedFromVars(It.json.preview))),t.$$.dirty[0]&1&&pe(n(20,c=It.getDerivedFromVars(It.json.placeholder_color))),t.$$.dirty[0]&1&&rt(n(19,d=It.getDerivedFromVars(It.json.scale))),t.$$.dirty[0]&1&&ge(n(18,u=It.getDerivedFromVars({content_alignment_horizontal:It.json.content_alignment_horizontal,content_alignment_vertical:It.json.content_alignment_vertical}))),t.$$.dirty[0]&1&&_e(n(17,p=It.getDerivedFromVars(It.json.accessibility))),t.$$.dirty[0]&1&&Z(n(16,_=It.getDerivedFromVars(It.json.aspect))),t.$$.dirty[0]&1&&x(n(15,f=It.getDerivedFromVars(It.json.tint_color))),t.$$.dirty[0]&1&&q(n(14,m=It.getDerivedFromVars(It.json.tint_mode))),t.$$.dirty[0]&1&&J(n(13,g=It.getDerivedFromVars(It.json.appearance_animation))),t.$$.dirty[0]&1&&O(n(12,v=It.getDerivedFromVars(It.json.filters))),t.$$.dirty[0]&1&&sn(n(11,y=It.getDerivedFromVars(It.json.preload_required))),t.$$.dirty[0]&1073741825|t.$$.dirty[1]&1610612736){let dt=It.json.type==="gif"?Je:Ge;n(30,lt=dt===aJ),lt&&(dt=la),n(3,zn=dt)}if(t.$$.dirty[0]&8&&St(),t.$$.dirty[0]&9&&(zn?n(7,wt=!1):(n(7,wt=!0),It.logError(tt(new Error(`Missing "${It.json.type==="gif"?"gif_url":"image_url"}" for "${It.json.type}"`))))),t.$$.dirty[1]&268435456&&n(45,b=(fe==null?void 0:fe.type)==="wrap_content"),t.$$.dirty[1]&134217728&&n(44,w=(Xe==null?void 0:Xe.type)==="wrap_content"),t.$$.dirty[0]&1073741828|t.$$.dirty[1]&67108864){const dt=et;(Re===ks||Re===Es||lt)&&dt?n(32,Jt=`url("${h2(dt)}")`):n(32,Jt="")}if(t.$$.dirty[0]&1073741828|t.$$.dirty[1]&33554433&&(Re===ks||Re===Es||lt?n(31,li=Ri(U,1,li)):n(31,li="")),t.$$.dirty[1]&16777220&&n(33,gn=d2(it)||gn),t.$$.dirty[1]&8388608&&Ot(Oe),t.$$.dirty[1]&4194304&&n(10,k=(Q==null?void 0:Q.description)||""),t.$$.dirty[1]&2097152){const dt=ce==null?void 0:ce.ratio;dt&&Zo(dt)?n(4,$n=(100/Number(dt)).toFixed(2)):n(4,$n="0")}if(t.$$.dirty[1]&1572912){const dt=N,Ye=dt?Ri(dt):void 0,bi=m2(B,Ut);(Ye!==hn||bi!==Ut)&&(pn.removeSvgFilter(hn,Ut),n(5,Kt=Ye?pn.addSvgFilter(Ye,bi):""),n(35,hn=Ye),n(36,Ut=bi))}if(t.$$.dirty[1]&262144&&D&&D.type==="fade"){const dt=D;n(37,Jn=_2(dt.interpolator,"ease_in_out").replace(/_/g,"-")),n(40,Ke=uo(dt.duration,300)),n(39,fi=uo(dt.start_delay,0)),n(38,Kn=uo(dt.alpha,0))}if(t.$$.dirty[0]&1|t.$$.dirty[1]&196608){let dt="",Ye="";Array.isArray(T)&&T.length&&(dt=f2(T,It.logError)),dt&&(Ye="polygon(0% 0%, 0% 100%, 100% 100%, 100% 0%)"),n(41,bt=dt),n(42,ct=Ye),n(43,ht=M==="rtl"&&Array.isArray(T)&&T.some((bi=>bi.type==="rtl_mirror")))}t.$$.dirty[0]&20|t.$$.dirty[1]&28736&&n(9,A={aspect:$n!=="0","is-width-content":b,"is-height-content":w,loaded:Re===Cd,"before-appearance":!!Jn&&Re===ks,"is-rtl-mirror":ht}),t.$$.dirty[0]&36|t.$$.dirty[1]&4047&&n(8,j={"background-image":Jt,"background-color":Jt?void 0:li,"background-size":gn,"clip-path":ct||void 0,"object-fit":gn,"object-position":Lt,filter:[Re===Cd&&Kt?`url(#${Kt})`:"",bt].filter(Boolean).join(" "),"--divkit-appearance-interpolator":Jn||void 0,"--divkit-appearance-fade-start":Jn?Kn:void 0,"--divkit-appearance-delay":Jn?`${fi}ms`:void 0,"--divkit-appearance-duration":Jn?`${Ke}ms`:void 0})},[It,cn,Re,zn,$n,Kt,Fn,wt,j,A,k,y,v,g,m,f,_,p,u,d,c,a,l,s,r,o,zt,Sn,nn,ei,lt,li,Jt,gn,Lt,hn,Ut,Jn,Kn,fi,Ke,bt,ct,ht,w,b,i,T,M,D,B,N,ce,Q,Oe,it,U,et,Xe,fe,Ge,Je,Ft,xt]}class df extends Qi{constructor(e){super(),xi(this,e,dJ,lJ,Pi,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}}const uJ="divkit-ec408",pJ="divkit-fde92",_J="divkit-800a9",fJ="divkit-74c34",mJ="divkit-82c25",gJ="divkit-6ea46",hJ="divkit-96d7e",uf={grid:uJ,grid_halign_start:pJ,grid_halign_center:_J,grid_halign_end:fJ,grid_valign_start:mJ,grid_valign_center:gJ,grid_valign_end:hJ};function pf(t){return t>0&&t<1}function _f(t){return String(Math.ceil(t*1e3)/1e3)}function ff(t,e,n){if(t.some(pf)){const l=Math.max(...t.filter(pf).map((a=>1/a)));t=t.map((a=>a*l))}const i=t.every(Boolean);let o=0,r=0;const s=[];if(i){r=t.reduce(((l,a)=>l+a),0);for(let l=0;l<n;++l){if(!e[l])continue;const a=e[l]/t[l]*r;a>o&&(o=a)}}for(let l=0;l<n;++l)o?s[l]=`minmax(${At(o*t[l]/r)},${_f(t[l])}fr)`:t[l]?s[l]=`${_f(t[l])}fr`:s[l]="auto";return s.join(" ")}function mf(t,e,n){const i=t.slice();return i[29]=e[n],i}function gf(t){let e,n;return e=new Tr({props:{componentContext:t[29].componentContext,layoutParams:t[29].layoutParams}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o[0]&16&&(r.componentContext=i[29].componentContext),o[0]&16&&(r.layoutParams=i[29].layoutParams),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function vJ(t){let e,n,i=ci(t[4]),o=[];for(let s=0;s<i.length;s+=1)o[s]=gf(mf(t,i,s));const r=s=>nt(o[s],1,1,(()=>{o[s]=null}));return{c(){for(let s=0;s<o.length;s+=1)o[s].c();e=si()},m(s,l){for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(s,l);st(s,e,l),n=!0},p(s,l){if(l[0]&16){i=ci(s[4]);let a;for(a=0;a<i.length;a+=1){const c=mf(s,i,a);o[a]?(o[a].p(c,l),Ue(o[a],1)):(o[a]=gf(c),o[a].c(),Ue(o[a],1),o[a].m(e.parentNode,e))}for(ui(),a=i.length;a<o.length;a+=1)r(a);pi()}},i(s){if(!n){for(let l=0;l<i.length;l+=1)Ue(o[l]);n=!0}},o(s){o=o.filter(Boolean);for(let l=0;l<o.length;l+=1)nt(o[l]);n=!1},d(s){s&&ot(e),To(o,s)}}}function bJ(t){let e,n;return e=new qo({props:{cls:kn("grid",uf,t[6]),componentContext:t[0],style:t[5],layoutParams:t[1],parentOf:t[2],replaceItems:t[11],$$slots:{default:[vJ]},$$scope:{ctx:t}}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o[0]&64&&(r.cls=kn("grid",uf,i[6])),o[0]&1&&(r.componentContext=i[0]),o[0]&32&&(r.style=i[5]),o[0]&2&&(r.layoutParams=i[1]),o[0]&4&&(r.parentOf=i[2]),o[0]&16|o[1]&2&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function yJ(t,e,n){let i,o,r,s,l,a,c,d,u,p=he,_=()=>(p(),p=Ve(l,(Z=>n(23,u=Z))),l),f,m=he,g=()=>(m(),m=Ve(s,(Z=>n(24,f=Z))),s),v,y=he,b=()=>(y(),y=Ve(M,(Z=>n(25,v=Z))),M),w,k=he,A=()=>(k(),k=Ve(r,(Z=>n(26,w=Z))),r);t.$$.on_destroy.push((()=>p())),t.$$.on_destroy.push((()=>m())),t.$$.on_destroy.push((()=>y())),t.$$.on_destroy.push((()=>k()));let{componentContext:j}=e,{layoutParams:T=void 0}=e;const E=ro(vo).direction;ko(t,E,(Z=>n(22,d=Z)));let O=1,M,D,R=[],J=[],B=[],z=[],q=0,N="start",Y="start",x=[];function ce(){n(12,O=1),n(18,N="start"),n(19,Y="start")}function ue(Z){n(0,j={...j,json:{...j.json,items:Z.filter(os)}})}return jo((()=>{x.forEach((Z=>{Z.destroy()}))})),t.$$set=Z=>{"componentContext"in Z&&n(0,j=Z.componentContext),"layoutParams"in Z&&n(1,T=Z.layoutParams)},t.$$.update=()=>{if(t.$$.dirty[0]&1&&n(21,i=j.origJson),t.$$.dirty[0]&2097152&&i&&ce(),t.$$.dirty[0]&1&&n(20,o=Array.isArray(j.json.items)&&j.json.items||[]),t.$$.dirty[0]&1&&A(n(9,r=j.getDerivedFromVars(j.json.column_count))),t.$$.dirty[0]&1&&g(n(8,s=j.getDerivedFromVars(j.json.content_alignment_vertical))),t.$$.dirty[0]&1&&_(n(7,l=j.getDerivedFromVars(j.json.content_alignment_horizontal))),t.$$.dirty[0]&67112960&&n(12,O=mr(w,O)),t.$$.dirty[0]&1048581&&(x.forEach((Z=>{Z.destroy()})),n(2,x=o.map(((Z,Q)=>j.produceChildContext(Z,{path:Q}))))),t.$$.dirty[0]&5){let Z=[];x.forEach((Q=>{Z.push(j.getDerivedFromVars({rowSpan:Q.json.row_span,columnSpan:Q.json.column_span,width:Q.json.width,height:Q.json.height}))})),b(n(3,M=Ms(Z,(Q=>[...Q]))))}if(t.$$.dirty[0]&33681412){const Z={};let Q=0,se=0;n(13,R=[]),n(14,J=[]),n(15,B=[]),n(16,z=[]),n(4,D=x.map(((_e,Oe)=>{var W,ge,it,ye;const rt=v[Oe],U=Math.min(O,Number(rt.columnSpan)||1),de=Number(rt.rowSpan)||1,pe=((W=rt.width)==null?void 0:W.type)==="match_parent"?Number(rt.width.weight||1)/U:0,et=((ge=rt.height)==null?void 0:ge.type)==="match_parent"?Number(rt.height.weight||1)/de:0,we=U===1&&((it=rt.width)==null?void 0:it.type)==="fixed"&&rt.width.value?Number(rt.width.value)/U:0,Ie=de===1&&((ye=rt.height)==null?void 0:ye.type)==="fixed"&&rt.height.value?Number(rt.height.value)/de:0;for(;;){let vt=!0;e:for(let Qe=Q;Qe<Q+U;++Qe)for(let fe=se;fe<se+de;++fe)if(Z[Qe+"_"+fe]){vt=!1;break e}if(vt)break;++Q,Q>O-U&&(Q=0,++se)}const Xe={x:Q,y:se,colSpan:U,rowSpan:de};for(let vt=Q;vt<Q+U;++vt)for(let Qe=se;Qe<se+de;++Qe)Z[vt+"_"+Qe]=!0,(!R[vt]||R[vt]<pe)&&n(13,R[vt]=pe,R),(!J[Qe]||J[Qe]<et)&&n(14,J[Qe]=et,J),(!B[vt]||B[vt]<we)&&n(15,B[vt]=we,B),(!z[Qe]||z[Qe]<Ie)&&n(16,z[Qe]=Ie,z);return{componentContext:_e,layoutParams:{gridArea:Xe}}}))),n(17,q=se+1)}t.$$.dirty[0]&17039360&&n(18,N=Wu(f,N)),t.$$.dirty[0]&13107200&&n(19,Y=Uu(u,d,Y)),t.$$.dirty[0]&786432&&n(6,a={valign:N,halign:Y}),t.$$.dirty[0]&258048&&n(5,c={"grid-template-columns":ff(R,B,O),"grid-template-rows":ff(J,z,q)})},[j,T,x,M,D,c,a,l,s,r,E,ue,O,R,J,B,z,q,N,Y,o,i,d,u,f,v,w]}class wJ extends Qi{constructor(e){super(),xi(this,e,yJ,bJ,Pi,{componentContext:0,layoutParams:1},null,[-1,-1])}}const $J="divkit-0bfe5",kJ="divkit-2b11a",jJ="divkit-dbcd8",SJ="divkit-6df4b",TJ="divkit-47152",CJ="divkit-23231",zJ="divkit-b29e2",wr={gallery:$J,gallery__scroller:kJ,gallery_scrollbar_none:jJ,gallery_orientation_horizontal:SJ,gallery_orientation_vertical:TJ,"gallery_scroll-snap":"divkit-e6acd","gallery__items-grid":"divkit-2d0b9",gallery__items:CJ,gallery__arrow:zJ,"gallery__arrow-icon-path":"divkit-9bb64"},EJ="divkit-ff821",AJ="divkit-baff3",OJ="divkit-70d07",MJ="divkit-da11c",gr={arrow:EJ,arrow__icon:AJ,arrow_left:OJ,arrow_right:MJ};function PJ(t,e){return t==="start"||t==="center"||t==="end"?t:e}function IJ(t){const e=[];let n=t[0],i=1;for(let o=1;o<=t.length;o++)t[o]!==n?(e.push(i>1?`repeat(${i}, ${n})`:n),n=t[o],i=1):i++;return e.join(" ")}function ps(t,e){let n=t%e;return n<0&&(n+=e),n}const{Boolean:v2}=Jr;function hf(t,e,n){const i=t.slice();return i[80]=e[n],i[81]=e,i[82]=n,i}function vf(t,e,n){const i=t.slice();return i[83]=e[n],i}function bf(t){let e;return{c(){e=Zt("div"),K(e,"class",wr.gallery__gap),He(e,"width",t[4]==="horizontal"?t[12]:void 0),He(e,"height",t[4]!=="horizontal"?t[12]:void 0)},m(n,i){st(n,e,i)},p(n,i){i[0]&4112&&He(e,"width",n[4]==="horizontal"?n[12]:void 0),i[0]&4112&&He(e,"height",n[4]!=="horizontal"?n[12]:void 0)},d(n){n&&ot(e)}}}function yf(t){let e,n,i,o=t[83].hasGapBefore&&bf(t);return n=new Tr({props:{componentContext:t[83].componentContext,layoutParams:t[6]}}),{c(){o&&o.c(),e=Ai(),Qn(n.$$.fragment)},m(r,s){o&&o.m(r,s),st(r,e,s),Zn(n,r,s),i=!0},p(r,s){r[83].hasGapBefore?o?o.p(r,s):(o=bf(r),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null);const l={};s[0]&262144&&(l.componentContext=r[83].componentContext),s[0]&64&&(l.layoutParams=r[6]),n.$set(l)},i(r){i||(Ue(n.$$.fragment,r),i=!0)},o(r){nt(n.$$.fragment,r),i=!1},d(r){r&&ot(e),o&&o.d(r),xn(n,r)}}}function wf(t){let e,n,i,o,r,s,l=t[82],a,c=ci(t[80]),d=[];for(let f=0;f<c.length;f+=1)d[f]=yf(vf(t,c,f));const u=f=>nt(d[f],1,1,(()=>{d[f]=null})),p=()=>t[67](e,l),_=()=>t[67](null,l);return{c(){e=Zt("div");for(let f=0;f<d.length;f+=1)d[f].c();n=Ai(),i=Zt("div"),r=Ai(),K(i,"style",o=qn(t[13])),K(e,"class",wr.gallery__items),K(e,"style",s=qn(t[16]))},m(f,m){st(f,e,m);for(let g=0;g<d.length;g+=1)d[g]&&d[g].m(e,null);Ln(e,n),Ln(e,i),Ln(e,r),p(),a=!0},p(f,m){if(t=f,m[0]&266320){c=ci(t[80]);let g;for(g=0;g<c.length;g+=1){const v=vf(t,c,g);d[g]?(d[g].p(v,m),Ue(d[g],1)):(d[g]=yf(v),d[g].c(),Ue(d[g],1),d[g].m(e,n))}for(ui(),g=c.length;g<d.length;g+=1)u(g);pi()}(!a||m[0]&8192&&o!==(o=qn(t[13])))&&K(i,"style",o),(!a||m[0]&65536&&s!==(s=qn(t[16])))&&K(e,"style",s),l!==t[82]&&(_(),l=t[82],p())},i(f){if(!a){for(let m=0;m<c.length;m+=1)Ue(d[m]);a=!0}},o(f){d=d.filter(v2);for(let m=0;m<d.length;m+=1)nt(d[m]);a=!1},d(f){f&&ot(e),To(d,f),_()}}}function $f(t){let e,n,i=t[10]&&t[8]&&kf(t),o=t[11]&&t[8]&&jf(t);return{c(){i&&i.c(),e=Ai(),o&&o.c(),n=si()},m(r,s){i&&i.m(r,s),st(r,e,s),o&&o.m(r,s),st(r,n,s)},p(r,s){r[10]&&r[8]?i?i.p(r,s):(i=kf(r),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null),r[11]&&r[8]?o?o.p(r,s):(o=jf(r),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},d(r){r&&(ot(e),ot(n)),i&&i.d(r),o&&o.d(r)}}}function kf(t){let e,n,i,o=!t[32]&&DJ();return{c(){e=Zt("div"),o&&o.c(),K(e,"class",t[32]||`${wr.gallery__arrow} ${gr.arrow} ${gr.arrow_left}`)},m(r,s){st(r,e,s),o&&o.m(e,null),n||(i=en(e,"click",t[70]),n=!0)},p:he,d(r){r&&ot(e),o&&o.d(),n=!1,i()}}}function DJ(t){let e,n;return{c(){e=$o("svg"),n=$o("path"),K(n,"class",wr["gallery__arrow-icon-path"]),K(n,"d","m10 16 8.3 8 1.03-1-4-6-.7-1 .7-1 4-6-1.03-1z"),K(e,"class",gr.arrow__icon),K(e,"xmlns","http://www.w3.org/2000/svg"),K(e,"width","32"),K(e,"height","32"),K(e,"viewBox","0 0 32 32"),K(e,"fill","none")},m(i,o){st(i,e,o),Ln(e,n)},d(i){i&&ot(e)}}}function jf(t){let e,n,i,o=!t[33]&&VJ();return{c(){e=Zt("div"),o&&o.c(),K(e,"class",t[33]||`${wr.gallery__arrow} ${gr.arrow} ${gr.arrow_right}`)},m(r,s){st(r,e,s),o&&o.m(e,null),n||(i=en(e,"click",t[71]),n=!0)},p:he,d(r){r&&ot(e),o&&o.d(),n=!1,i()}}}function VJ(t){let e,n;return{c(){e=$o("svg"),n=$o("path"),K(n,"class",wr["gallery__arrow-icon-path"]),K(n,"d","M22 16l-8.3 8-1.03-1 4-6 .7-1-.7-1-4-6 1.03-1 8.3 8z"),K(e,"class",gr.arrow__icon),K(e,"xmlns","http://www.w3.org/2000/svg"),K(e,"width","32"),K(e,"height","32"),K(e,"viewBox","0 0 32 32"),K(e,"fill","none")},m(i,o){st(i,e,o),Ln(e,n)},d(i){i&&ot(e)}}}function LJ(t){let e,n,i,o,r,s,l,a,c,d,u=ci(t[18]),p=[];for(let m=0;m<u.length;m+=1)p[m]=wf(hf(t,u,m));const _=m=>nt(p[m],1,1,(()=>{p[m]=null}));let f=t[4]==="horizontal"&&$f(t);return{c(){e=Zt("div"),n=Zt("div");for(let m=0;m<p.length;m+=1)p[m].c();s=Ai(),f&&f.c(),l=si(),K(n,"class",wr["gallery__items-grid"]),K(n,"style",i=qn(t[17])),K(e,"class",o=wr.gallery__scroller+" "+(t[30]?ai["root_restrict-scroll"]:"")),K(e,"style",r=qn(t[5]))},m(m,g){st(m,e,g),Ln(e,n);for(let v=0;v<p.length;v+=1)p[v]&&p[v].m(n,null);t[68](n),t[69](e),st(m,s,g),f&&f.m(m,g),st(m,l,g),a=!0,c||(d=en(e,"scroll",(function(){Fi(t[8]?t[36]:null)&&(t[8]?t[36]:null).apply(this,arguments)})),c=!0)},p(m,g){if(t=m,g[0]&340560){u=ci(t[18]);let v;for(v=0;v<u.length;v+=1){const y=hf(t,u,v);p[v]?(p[v].p(y,g),Ue(p[v],1)):(p[v]=wf(y),p[v].c(),Ue(p[v],1),p[v].m(n,null))}for(ui(),v=u.length;v<p.length;v+=1)_(v);pi()}(!a||g[0]&131072&&i!==(i=qn(t[17])))&&K(n,"style",i),(!a||g[0]&1073741824&&o!==(o=wr.gallery__scroller+" "+(t[30]?ai["root_restrict-scroll"]:"")))&&K(e,"class",o),(!a||g[0]&32&&r!==(r=qn(t[5])))&&K(e,"style",r),t[4]==="horizontal"?f?f.p(t,g):(f=$f(t),f.c(),f.m(l.parentNode,l)):f&&(f.d(1),f=null)},i(m){if(!a){for(let g=0;g<u.length;g+=1)Ue(p[g]);a=!0}},o(m){p=p.filter(v2);for(let g=0;g<p.length;g+=1)nt(p[g]);a=!1},d(m){m&&(ot(e),ot(s),ot(l)),To(p,m),t[68](null),t[69](null),f&&f.d(m),c=!1,d()}}}function FJ(t){let e,n,i,o;return e=new qo({props:{cls:kn("gallery",wr,t[15]),componentContext:t[0],layoutParams:t[1],customPaddings:!0,customActions:"gallery",parentOf:t[7],replaceItems:t[34],$$slots:{default:[LJ]},$$scope:{ctx:t}}}),{c(){Qn(e.$$.fragment)},m(r,s){Zn(e,r,s),n=!0,i||(o=en(window,"resize",(function(){Fi(t[8]?t[37]:null)&&(t[8]?t[37]:null).apply(this,arguments)})),i=!0)},p(r,s){t=r;const l={};s[0]&32768&&(l.cls=kn("gallery",wr,t[15])),s[0]&1&&(l.componentContext=t[0]),s[0]&2&&(l.layoutParams=t[1]),s[0]&128&&(l.parentOf=t[7]),s[0]&1074216828|s[2]&16777216&&(l.$$scope={dirty:s,ctx:t}),e.$set(l)},i(r){n||(Ue(e.$$.fragment,r),n=!0)},o(r){nt(e.$$.fragment,r),n=!1},d(r){xn(e,r),i=!1,o()}}}function NJ(t,e,n){let i=0,o=[],r=[];for(let s=0;s<t.length;++s)o[i]||(o[i]=[]),o[i].push({index:s,hasGapBefore:r[i]&&e[s].visibility!=="gone",componentContext:t[s]}),!r[i]&&e[s].visibility!=="gone"&&(r[i]=!0),++i>=n&&(i=0);return o}function qJ(t,e,n){let i,o,r,s,l,a,c,d,u,p,_,f,m,g,v,y,b,w,k,A,j,T=he,E=()=>(T(),T=Ve(m,(Tt=>n(55,j=Tt))),m),O,M=he,D=()=>(M(),M=Ve(f,(Tt=>n(56,O=Tt))),f),R,J=he,B=()=>(J(),J=Ve(p,(Tt=>n(57,R=Tt))),p),z,q=he,N=()=>(q(),q=Ve(hn,(Tt=>n(58,z=Tt))),hn),Y,x=he,ce=()=>(x(),x=Ve(u,(Tt=>n(59,Y=Tt))),u),ue,Z=he,Q=()=>(Z(),Z=Ve(d,(Tt=>n(60,ue=Tt))),d),se,_e=he,Oe=()=>(_e(),_e=Ve(c,(Tt=>n(61,se=Tt))),c),W,ge=he,it=()=>(ge(),ge=Ve(a,(Tt=>n(62,W=Tt))),a),ye,rt=he,U=()=>(rt(),rt=Ve(l,(Tt=>n(63,ye=Tt))),l),de,pe=he,et=()=>(pe(),pe=Ve(s,(Tt=>n(64,de=Tt))),s),we,Ie,Xe=he,vt=()=>(Xe(),Xe=Ve(r,(Tt=>n(66,Ie=Tt))),r),Qe,fe=he,me=()=>(fe(),fe=Ve(_,(Tt=>n(30,Qe=Tt))),_);t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>x())),t.$$.on_destroy.push((()=>Z())),t.$$.on_destroy.push((()=>_e())),t.$$.on_destroy.push((()=>ge())),t.$$.on_destroy.push((()=>rt())),t.$$.on_destroy.push((()=>pe())),t.$$.on_destroy.push((()=>Xe())),t.$$.on_destroy.push((()=>fe()));let{componentContext:ve}=e,{layoutParams:Ge=void 0}=e;const gt=ro(vo),ee=gt.direction;ko(t,ee,(Tt=>n(54,A=Tt)));let Je,We=[],jt=!1,zt=!1,an=null,sn,It=!1;const cn=gt.getCustomization("galleryLeftClass"),pn=gt.getCustomization("galleryRightClass");let Sn,Fn=1,Re="horizontal",lt="start",li,wt=8,zn,Jt,gn="",Lt,$n=[],hn,Ut={},Kt=!1,Jn={},Kn=0;function fi(){n(42,Fn=1),n(4,Re="horizontal"),n(43,lt="start"),n(44,wt=8),n(47,gn="")}function Ke(Tt){n(0,ve={...ve,json:{...ve.json,items:Tt.filter(os)}})}const bt=gt.isDesktop;ko(t,bt,(Tt=>n(65,we=Tt)));let ct=[];function ht(){if(!Je)return;let Tt=Je.scrollLeft;A==="rtl"&&(Tt*=-1);const Wn=Je.scrollWidth,gi=Je.offsetWidth;A==="ltr"?(n(10,jt=Tt>2),n(11,zt=Tt+gi<Wn-2)):(n(11,zt=Tt>2),n(10,jt=Tt+gi<Wn-2))}const qt=ld(ht,50);function St(Tt){Je.scroll({left:Je.scrollLeft+Je.offsetWidth*.75*(Tt==="right"?1:-1),behavior:"smooth"})}function Ot(){let Tt=[],Wn=We[0].children.length;for(let gi=0;gi<Wn;gi+=2)for(let rn=0;rn<Fn;++rn){const Nn=We[rn].children[gi];Nn&&Tt.push(Nn)}return Tt}function nn(Tt,Wn="smooth"){const gi=Re==="horizontal"?"left":"top";Je.scroll({[gi]:Tt,behavior:Wn})}function ei(Tt,Wn,gi="smooth"){const rn=Re==="horizontal",Nn=rn?"offsetLeft":"offsetTop",Bt=Tt[Wn];if(Bt){let vn;if(A==="ltr"||!rn)vn=Bt[Nn]+.01-wt/2;else{const un=Je.offsetWidth;vn=Bt[Nn]+Bt.offsetWidth+.01-wt/2-un}nn(vn,gi)}}function Ft(Tt,Wn){return Re==="horizontal"?Wn.right>Tt.left&&Tt.right>Wn.left:Wn.bottom>Tt.top&&Tt.bottom>Wn.top}function xt(Tt,Wn){return Re==="horizontal"?Wn.left>=Tt.left&&Wn.right<=Tt.right:Wn.top>=Tt.top&&Wn.bottom<=Tt.bottom}function dt(Tt){const Wn=Ot(),gi=Je.getBoundingClientRect(),rn=Wn.findIndex((vn=>xt(gi,vn.getBoundingClientRect())));if(rn!==-1)return rn;const Nn=Wn.map((vn=>Ft(gi,vn.getBoundingClientRect()))),Bt=Nn.findIndex(Boolean);return Bt!==-1?Tt==="prev"&&Nn.filter(Boolean).length===2?Bt+1:Bt:Tt==="prev"?1:Wn.length-2}Sr((()=>{if(n(40,It=!0),ht(),Kn){const Tt=Ot();ei(Tt,Kn,"auto")}})),jo((()=>{n(40,It=!1),ct.forEach((Tt=>{Tt.destroy()})),Sn&&!ve.fakeElement&&(gt.unregisterInstance(Sn),n(41,Sn=void 0))}));function Ye(Tt,Wn){Wi[Tt?"unshift":"push"]((()=>{We[Wn]=Tt,n(9,We)}))}function bi(Tt){Wi[Tt?"unshift":"push"]((()=>{sn=Tt,n(3,sn)}))}function hi(Tt){Wi[Tt?"unshift":"push"]((()=>{Je=Tt,n(2,Je)}))}const Bn=()=>St("left"),eo=()=>St("right");return t.$$set=Tt=>{"componentContext"in Tt&&n(0,ve=Tt.componentContext),"layoutParams"in Tt&&n(1,Ge=Tt.layoutParams)},t.$$.update=()=>{var Tt,Wn,gi,rn,Nn,Bt;if(t.$$.dirty[0]&1&&n(53,i=ve.origJson),t.$$.dirty[1]&4194304&&i&&fi(),t.$$.dirty[0]&1&&n(52,o=Array.isArray(ve.json.items)&&ve.json.items||[]),t.$$.dirty[0]&1&&vt(n(29,r=typeof((Tt=ve.json.item_builder)==null?void 0:Tt.data)=="string"?ve.getDerivedFromVars((Wn=ve.json.item_builder)==null?void 0:Wn.data,void 0,!0):(gi=ve.json.item_builder)!=null&&gi.data?Cs(ve.json.item_builder.data):void 0)),t.$$.dirty[0]&1&&et(n(28,s=ve.getDerivedFromVars(ve.json.column_count))),t.$$.dirty[0]&1&&U(n(27,l=ve.getDerivedFromVars(ve.json.orientation))),t.$$.dirty[0]&1&&it(n(26,a=ve.getDerivedFromVars(ve.json.cross_content_alignment))),t.$$.dirty[0]&1&&Oe(n(25,c=ve.getDerivedFromVars(ve.json.item_spacing))),t.$$.dirty[0]&1&&Q(n(24,d=ve.getDerivedFromVars(ve.json.cross_spacing))),t.$$.dirty[0]&1&&ce(n(23,u=ve.getDerivedFromVars(ve.json.paddings))),t.$$.dirty[0]&1&&B(n(22,p=ve.getDerivedFromVars(ve.json.scroll_mode))),t.$$.dirty[0]&1&&me(n(21,_=ve.getDerivedFromVars(ve.json.restrict_parent_scroll))),t.$$.dirty[0]&1&&D(n(20,f=ve.getDerivedFromVars(ve.json.scrollbar))),t.$$.dirty[0]&1&&E(n(19,m=ve.getDerivedFromVars(ve.json.default_item))),t.$$.dirty[0]&129|t.$$.dirty[1]&2097152|t.$$.dirty[2]&16){let vn=[];if(ve.json.item_builder&&Array.isArray(Ie)&&Array.isArray(ve.json.item_builder.prototypes)){const un=ve.json.item_builder;vn=Ku(Ie,gt,ve,un)}else vn=(Array.isArray(o)&&o||[]).map((un=>({div:un})));ct.forEach((un=>{un.destroy()})),n(7,ct=vn.map(((un,En)=>ve.produceChildContext(un.div,{path:En,variables:un.vars,id:un.id}))))}if(t.$$.dirty[1]&512|t.$$.dirty[2]&8&&n(8,g=we&&It),t.$$.dirty[0]&264|t.$$.dirty[1]&256&&(g?typeof ResizeObserver<"u"&&(n(39,an=new ResizeObserver((()=>{qt()}))),an.observe(sn)):an&&(an.disconnect(),n(39,an=null))),t.$$.dirty[1]&2048|t.$$.dirty[2]&4&&n(42,Fn=mr(de,Fn)),t.$$.dirty[0]&16|t.$$.dirty[2]&2&&n(4,Re=Yu(ye,Re)),t.$$.dirty[1]&4096|t.$$.dirty[2]&1&&n(43,lt=PJ(W,lt)),t.$$.dirty[1]&1073750016&&(n(44,wt=uo(se,wt)),n(12,li=At(wt))),t.$$.dirty[1]&536911872&&(n(46,Jt=uo(ue,wt)),n(45,zn=At(Jt))),t.$$.dirty[0]&16|t.$$.dirty[1]&276889600){n(47,gn=oa(Y,A,gn));const vn=Re==="horizontal"?(Nn=(rn=Y==null?void 0:Y.end)!=null?rn:Y==null?void 0:Y[A==="ltr"?"right":"left"])!=null?Nn:0:(Bt=Y==null?void 0:Y.bottom)!=null?Bt:0,un=At(vn);n(13,Lt={width:Re==="horizontal"?un:"1px",height:Re==="horizontal"?"1px":un,"margin-right":Re==="horizontal"&&A==="ltr"?"-"+un:void 0,"margin-left":Re==="horizontal"&&A==="rtl"?"-"+un:void 0,"margin-bottom":Re==="vertical"?"-"+un:void 0})}if(t.$$.dirty[0]&16&&n(51,v=Re==="horizontal"?"grid-template-columns":"grid-template-rows"),t.$$.dirty[0]&145){let vn=[];ct.forEach((un=>{const En=Re==="horizontal"?"width":"height";vn.push(ve.getDerivedFromVars({size:un.json[En],visibility:un.json.visibility}))})),N(n(14,hn=Ms(vn,(un=>[...un]))))}if(t.$$.dirty[0]&128|t.$$.dirty[1]&134219776&&n(18,y=NJ(ct,z,Fn)),t.$$.dirty[0]&16|t.$$.dirty[1]&134350848&&(n(48,$n=[]),Fn>1||z.forEach(((vn,un)=>{var En;vn.visibility!=="gone"&&(!vn.size&&Re==="horizontal"||((En=vn.size)==null?void 0:En.type)==="match_parent"?$n.push("100%"):$n.push("max-content"),un+1<z.length&&$n.push("auto"))})),$n.push("auto")),t.$$.dirty[0]&112|t.$$.dirty[1]&67123200){const vn={};let un={};if(n(49,Kt=!1),Re==="horizontal"?un.parentVAlign=lt:un.parentHAlign=lt,R==="paging"){n(49,Kt=!0),un.scrollSnap="start";const En=Re==="horizontal"?"scroll-padding-left":"scroll-padding-top";vn[En]=At(wt/2)}Fn===1&&(un.parentLayoutOrientation=Re),n(5,Ut=us(vn,Ut)),n(6,Jn=us(un,Jn))}t.$$.dirty[1]&81920&&n(17,b={padding:gn,"grid-gap":zn}),t.$$.dirty[1]&1179648&&n(16,w={[v]:IJ($n)}),t.$$.dirty[0]&16|t.$$.dirty[1]&33816576&&n(15,k={orientation:Re,"scroll-snap":Kt,scrollbar:O==="auto"?"auto":"none"}),t.$$.dirty[1]&17301504&&n(50,Kn=uo(j,Kn)),t.$$.dirty[0]&1&&ve.json&&qt(),t.$$.dirty[0]&21|t.$$.dirty[1]&8389632&&ve.json&&(Sn&&(gt.unregisterInstance(Sn),n(41,Sn=void 0)),ve.id&&!ve.fakeElement&&(n(41,Sn=ve.id),gt.registerInstance(Sn,{setCurrentItem(vn){const un=Ot();if(vn<0||vn>un.length-1)throw new Error('Item is out of range in "set-current-item" action');ei(un,vn)},setPreviousItem(vn,un){const En=dt("prev"),Yn=Ot();let Ce=En-vn;Ce<0&&(Ce=un==="ring"?ps(Ce,Yn.length):0),ei(Yn,Ce)},setNextItem(vn,un){const En=Re==="horizontal",Yn=A==="ltr"||!En?1:-1,Ce=En?Je.scrollLeft*Yn+Je.offsetWidth===Je.scrollWidth:Je.scrollTop+Je.offsetHeight===Je.scrollHeight,bn=Ot();if(Ce&&un==="ring"){ei(bn,0);return}let ft=dt("next")+vn;ft>bn.length-1&&(ft=un==="ring"?ps(ft,bn.length):bn.length-1),ei(bn,ft)},scrollToStart(){nn(0)},scrollToEnd(){nn(A==="ltr"||Re!=="horizontal"?1e6:-1e6)},scrollBackward(vn,un){const En=Re==="horizontal",Yn=A==="ltr"||!En?1:-1,Ce=En?Je.scrollLeft:Je.scrollTop,bn=En?Je.scrollWidth-Je.offsetWidth:Je.scrollHeight-Je.offsetHeight;let ft=Ce*Yn-vn;ft<0&&(un==="clamp"?ft=0:un==="ring"&&(ft=ps(ft,bn))),nn(ft*Yn)},scrollForward(vn,un){const En=Re==="horizontal",Yn=A==="ltr"||!En?1:-1,Ce=En?Je.scrollLeft:Je.scrollTop,bn=En?Je.scrollWidth-Je.offsetWidth:Je.scrollHeight-Je.offsetHeight;let ft=Ce*Yn+vn;ft>bn&&(un==="clamp"?ft=bn:un==="ring"&&(ft=ps(ft,bn))),nn(ft*Yn)},scrollToPosition(vn){nn(A==="ltr"||Re!=="horizontal"?vn:-vn)}})))},[ve,Ge,Je,sn,Re,Ut,Jn,ct,g,We,jt,zt,li,Lt,hn,k,w,b,y,m,f,_,p,u,d,c,a,l,s,r,Qe,ee,cn,pn,Ke,bt,ht,qt,St,an,It,Sn,Fn,lt,wt,zn,Jt,gn,$n,Kt,Kn,v,o,i,A,j,O,R,z,Y,ue,se,W,ye,de,we,Ie,Ye,bi,hi,Bn,eo]}class RJ extends Qi{constructor(e){super(),xi(this,e,qJ,FJ,Pi,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}}const BJ="divkit-bf0ea",HJ="divkit-8a75d",JJ="divkit-26f55",UJ="divkit-a22f9",WJ="divkit-4108d",KJ="divkit-4f7ae",YJ="divkit-daded",GJ="divkit-5c791",XJ="divkit-763f3",ZJ="divkit-c3cc6",xJ="divkit-4ca7a",QJ="divkit-0c7b1",eU="divkit-41351",tU="divkit-37bf2",Jo={outer:BJ,tabs:HJ,tabs__list:JJ,tabs__item:UJ,tabs__item_selected:WJ,tabs__item_actionable:KJ,tabs__panels:YJ,tabs__swiper:GJ,tabs__swiper_animated:XJ,tabs__swiper_inited:ZJ,tabs__panel:xJ,tabs__panel_visible:QJ,"tabs_height-parent_yes":"divkit-ceaff",tabs__separator:eU,tabs__delimitier:tU};function nU(t,e){var n,i;if(!t||!t.image_url||typeof t.image_url!="string")return e;const o={url:t.image_url};return((n=t.width)==null?void 0:n.type)==="fixed"&&Zo(t.width.value)&&(o.width=t.width.value),((i=t.height)==null?void 0:i.type)==="fixed"&&Zo(t.height.value)&&(o.height=t.height.value),o}const b2=37,y2=39,w2=36,$2=35;function iU(t,e,n,i){const o=[t["top-left"],t["top-right"],t["bottom-right"],t["bottom-left"]];for(let r=0;r<o.length;++r)if(o[r]&&!Wo(o[r]))return i;return oc(t,e,n)}function Sf(t){const e=t.touches[0],n=e.clientX||e.pageX,i=e.clientY||e.pageY;return{x:n,y:i}}function oU(t){let e,n;return e=new Tr({props:{componentContext:t[0],layoutParams:t[1]}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,[o]){const r={};o&1&&(r.componentContext=i[0]),o&2&&(r.layoutParams=i[1]),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function rU(t,e,n){let{componentContext:i}=e,{layoutParams:o=void 0}=e,{enabled:r}=e;const s=Fr(r);return Ss(Hu,{isEnabled:s}),t.$$set=l=>{"componentContext"in l&&n(0,i=l.componentContext),"layoutParams"in l&&n(1,o=l.layoutParams),"enabled"in l&&n(2,r=l.enabled)},t.$$.update=()=>{t.$$.dirty&4&&s.set(r)},[i,o,r]}class sU extends Qi{constructor(e){super(),xi(this,e,rU,oU,Pi,{componentContext:0,layoutParams:1,enabled:2})}}const{Boolean:Tf}=Jr;function Cf(t,e,n){const i=t.slice();i[94]=e[n];const o=i[94].index;i[95]=o;const r=i[30][i[95]];return i[96]=r,i}function zf(t,e,n){const i=t.slice();i[94]=e[n];const o=i[94].index;i[95]=o;const r=i[95]===i[16];return i[99]=r,i}function lU(t){let e,n;return e=new Ur({props:{componentContext:t[0]}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o[0]&1&&(r.componentContext=i[0]),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function aU(t){let e,n;return e=new qo({props:{cls:kn("tabs",Jo,t[23]),componentContext:t[0],layoutParams:t[1],customActions:"tabs",parentOf:t[44],parentOfSimpleMode:!0,replaceItems:t[49],$$slots:{default:[dU]},$$scope:{ctx:t}}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o[0]&8388608&&(r.cls=kn("tabs",Jo,i[23])),o[0]&1&&(r.componentContext=i[0]),o[0]&2&&(r.layoutParams=i[1]),o[1]&8192&&(r.parentOf=i[44]),o[0]&2139095033|o[1]&16391|o[3]&512&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function Ef(t){let e,n;return{c(){e=Zt("img"),K(e,"class",Jo.tabs__delimitier),K(e,"alt",""),K(e,"loading","lazy"),K(e,"decoding","async"),sr(e.src,n=t[15].url)||K(e,"src",n),He(e,"width",t[15].width?At(t[15].width):void 0),He(e,"height",t[15].height?At(t[15].height):void 0)},m(i,o){st(i,e,o)},p(i,o){o[0]&32768&&!sr(e.src,n=i[15].url)&&K(e,"src",n),o[0]&32768&&He(e,"width",i[15].width?At(i[15].width):void 0),o[0]&32768&&He(e,"height",i[15].height?At(i[15].height):void 0)},d(i){i&&ot(e)}}}function cU(t){let e=t[94].title+"",n;return{c(){n=jr(e)},m(i,o){st(i,n,o)},p(i,o){o[0]&131072&&e!==(e=i[94].title+"")&&ws(n,e)},d(i){i&&ot(n)}}}function Af(t){let e,n,i,o=t[15]&&t[95]>0&&Ef(t);function r(...s){return t[70](t[95],...s)}return n=new sd({props:{componentContext:t[0],cls:kn("tabs__item",Jo,{selected:t[99],actionable:!!t[94].title_click_action}),actions:t[94].title_click_action&&!t[0].fakeElement?[t[94].title_click_action].filter(Bo):[],attrs:{id:`${t[47]}-tab-${t[95]}`,"aria-controls":`${t[47]}-panel-${t[95]}`,role:"tab",tabindex:t[99]&&!t[0].fakeElement?t[94].title_click_action?void 0:"0":"-1","aria-selected":t[99]?"true":"false"},customAction:t[0].fakeElement?null:r,$$slots:{default:[cU]},$$scope:{ctx:t}}}),{c(){o&&o.c(),e=Ai(),Qn(n.$$.fragment)},m(s,l){o&&o.m(s,l),st(s,e,l),Zn(n,s,l),i=!0},p(s,l){t=s,t[15]&&t[95]>0?o?o.p(t,l):(o=Ef(t),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null);const a={};l[0]&1&&(a.componentContext=t[0]),l[0]&196608&&(a.cls=kn("tabs__item",Jo,{selected:t[99],actionable:!!t[94].title_click_action})),l[0]&131073&&(a.actions=t[94].title_click_action&&!t[0].fakeElement?[t[94].title_click_action].filter(Bo):[]),l[0]&196609&&(a.attrs={id:`${t[47]}-tab-${t[95]}`,"aria-controls":`${t[47]}-panel-${t[95]}`,role:"tab",tabindex:t[99]&&!t[0].fakeElement?t[94].title_click_action?void 0:"0":"-1","aria-selected":t[99]?"true":"false"}),l[0]&131073&&(a.customAction=t[0].fakeElement?null:r),l[0]&131072|l[3]&512&&(a.$$scope={dirty:l,ctx:t}),n.$set(a)},i(s){i||(Ue(n.$$.fragment,s),i=!0)},o(s){nt(n.$$.fragment,s),i=!1},d(s){s&&ot(e),o&&o.d(s),xn(n,s)}}}function Of(t){let e,n;return{c(){e=Zt("div"),K(e,"class",Jo.tabs__separator),K(e,"style",n=qn(t[33]))},m(i,o){st(i,e,o)},p(i,o){o[1]&4&&n!==(n=qn(i[33]))&&K(e,"style",n)},d(i){i&&ot(e)}}}function Mf(t){let e,n;return e=new sU({props:{componentContext:t[96],layoutParams:t[3],enabled:t[95]===t[16]}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o[0]&1073872896&&(r.componentContext=i[96]),o[0]&8&&(r.layoutParams=i[3]),o[0]&196608&&(r.enabled=i[95]===i[16]),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function Pf(t){let e,n,i,o,r,s,l=t[96]&&Mf(t);return{c(){e=Zt("div"),l&&l.c(),n=Ai(),K(e,"class",i=kn("tabs__panel",Jo,{visible:t[31][t[95]]})),K(e,"role","tabpanel"),K(e,"id",o=t[47]+"-panel-"+t[95]),K(e,"aria-labelledby",r=t[47]+"-tab-"+t[95]),He(e,"left",t[95]*100+"%")},m(a,c){st(a,e,c),l&&l.m(e,null),Ln(e,n),s=!0},p(a,c){a[96]?l?(l.p(a,c),c[0]&1073872896&&Ue(l,1)):(l=Mf(a),l.c(),Ue(l,1),l.m(e,n)):l&&(ui(),nt(l,1,1,(()=>{l=null})),pi()),(!s||c[0]&131072|c[1]&1&&i!==(i=kn("tabs__panel",Jo,{visible:a[31][a[95]]})))&&K(e,"class",i),(!s||c[0]&131072&&o!==(o=a[47]+"-panel-"+a[95]))&&K(e,"id",o),(!s||c[0]&131072&&r!==(r=a[47]+"-tab-"+a[95]))&&K(e,"aria-labelledby",r),(!s||c[0]&131072)&&He(e,"left",a[95]*100+"%")},i(a){s||(Ue(l),s=!0)},o(a){nt(l),s=!1},d(a){a&&ot(e),l&&l.d()}}}function dU(t){let e,n,i,o,r,s,l,a,c,d,u,p=ci(t[17]),_=[];for(let b=0;b<p.length;b+=1)_[b]=Af(zf(t,p,b));const f=b=>nt(_[b],1,1,(()=>{_[b]=null}));let m=t[19]&&Of(t),g=ci(t[17]),v=[];for(let b=0;b<g.length;b+=1)v[b]=Pf(Cf(t,g,b));const y=b=>nt(v[b],1,1,(()=>{v[b]=null}));return{c(){e=Zt("div");for(let b=0;b<_.length;b+=1)_[b].c();i=Ai(),m&&m.c(),o=Ai(),r=Zt("div"),s=Zt("div");for(let b=0;b<v.length;b+=1)v[b].c();K(e,"class",n=Jo.tabs__list+" "+(t[45]?ai["root_restrict-scroll"]:"")),K(e,"role","tablist"),He(e,"--divkit-tabs-title-padding",t[14]?qr(t[14],t[18]):""),He(e,"--divkit-tabs-font-size",At(t[4])),He(e,"--divkit-tabs-paddings",t[5]),He(e,"--divkit-tabs-line-height",t[24]),He(e,"--divkit-tabs-letter-spacing",t[25]),He(e,"--divkit-tabs-active-font-weight",t[7]||""),He(e,"--divkit-tabs-inactive-font-weight",t[8]||""),He(e,"--divkit-tabs-active-font-family",t[26]||""),He(e,"--divkit-tabs-inactive-font-family",t[27]||""),He(e,"--divkit-tabs-active-text-color",t[9]),He(e,"--divkit-tabs-inactive-text-color",t[10]),He(e,"--divkit-tabs-active-background-color",t[11]),He(e,"--divkit-tabs-inactive-background-color",t[12]),He(e,"--divkit-tabs-border-radius",t[6]),He(e,"--divkit-tabs-items-spacing",t[13]?Uo(t[13]*10/t[4]):""),K(s,"class",l=kn("tabs__swiper",Jo,{inited:t[28],animated:t[29]})),K(r,"class",a=Jo.tabs__panels+" "+(t[45]?ai["root_restrict-scroll"]:""))},m(b,w){st(b,e,w);for(let k=0;k<_.length;k+=1)_[k]&&_[k].m(e,null);t[71](e),st(b,i,w),m&&m.m(b,w),st(b,o,w),st(b,r,w),Ln(r,s);for(let k=0;k<v.length;k+=1)v[k]&&v[k].m(s,null);t[72](s),t[73](r),c=!0,d||(u=[en(e,"keydown",t[51]),en(r,"touchstart",(function(){Fi(t[32]?t[52]:void 0)&&(t[32]?t[52]:void 0).apply(this,arguments)})),en(r,"touchmove",(function(){Fi(t[32]?t[53]:void 0)&&(t[32]?t[53]:void 0).apply(this,arguments)})),en(r,"touchend",(function(){Fi(t[32]?t[54]:void 0)&&(t[32]?t[54]:void 0).apply(this,arguments)})),en(r,"touchcancel",(function(){Fi(t[32]?t[54]:void 0)&&(t[32]?t[54]:void 0).apply(this,arguments)}))],d=!0)},p(b,w){if(t=b,w[0]&229377|w[1]&589824){p=ci(t[17]);let k;for(k=0;k<p.length;k+=1){const A=zf(t,p,k);_[k]?(_[k].p(A,w),Ue(_[k],1)):(_[k]=Af(A),_[k].c(),Ue(_[k],1),_[k].m(e,null))}for(ui(),k=p.length;k<_.length;k+=1)f(k);pi()}if((!c||w[1]&16384&&n!==(n=Jo.tabs__list+" "+(t[45]?ai["root_restrict-scroll"]:"")))&&K(e,"class",n),w[0]&278528&&He(e,"--divkit-tabs-title-padding",t[14]?qr(t[14],t[18]):""),w[0]&16&&He(e,"--divkit-tabs-font-size",At(t[4])),w[0]&32&&He(e,"--divkit-tabs-paddings",t[5]),w[0]&16777216&&He(e,"--divkit-tabs-line-height",t[24]),w[0]&33554432&&He(e,"--divkit-tabs-letter-spacing",t[25]),w[0]&128&&He(e,"--divkit-tabs-active-font-weight",t[7]||""),w[0]&256&&He(e,"--divkit-tabs-inactive-font-weight",t[8]||""),w[0]&67108864&&He(e,"--divkit-tabs-active-font-family",t[26]||""),w[0]&134217728&&He(e,"--divkit-tabs-inactive-font-family",t[27]||""),w[0]&512&&He(e,"--divkit-tabs-active-text-color",t[9]),w[0]&1024&&He(e,"--divkit-tabs-inactive-text-color",t[10]),w[0]&2048&&He(e,"--divkit-tabs-active-background-color",t[11]),w[0]&4096&&He(e,"--divkit-tabs-inactive-background-color",t[12]),w[0]&64&&He(e,"--divkit-tabs-border-radius",t[6]),w[0]&8208&&He(e,"--divkit-tabs-items-spacing",t[13]?Uo(t[13]*10/t[4]):""),t[19]?m?m.p(t,w):(m=Of(t),m.c(),m.m(o.parentNode,o)):m&&(m.d(1),m=null),w[0]&1073938440|w[1]&65537){g=ci(t[17]);let k;for(k=0;k<g.length;k+=1){const A=Cf(t,g,k);v[k]?(v[k].p(A,w),Ue(v[k],1)):(v[k]=Pf(A),v[k].c(),Ue(v[k],1),v[k].m(s,null))}for(ui(),k=g.length;k<v.length;k+=1)y(k);pi()}(!c||w[0]&805306368&&l!==(l=kn("tabs__swiper",Jo,{inited:t[28],animated:t[29]})))&&K(s,"class",l),(!c||w[1]&16384&&a!==(a=Jo.tabs__panels+" "+(t[45]?ai["root_restrict-scroll"]:"")))&&K(r,"class",a)},i(b){if(!c){for(let w=0;w<p.length;w+=1)Ue(_[w]);for(let w=0;w<g.length;w+=1)Ue(v[w]);c=!0}},o(b){_=_.filter(Tf);for(let w=0;w<_.length;w+=1)nt(_[w]);v=v.filter(Tf);for(let w=0;w<v.length;w+=1)nt(v[w]);c=!1},d(b){b&&(ot(e),ot(i),ot(o),ot(r)),To(_,b),t[71](null),m&&m.d(b),To(v,b),t[72](null),t[73](null),d=!1,so(u)}}}function uU(t){let e,n,i,o;const r=[aU,lU],s=[];function l(a,c){return a[2]?1:0}return~(e=l(t))&&(n=s[e]=r[e](t)),{c(){n&&n.c(),i=si()},m(a,c){~e&&s[e].m(a,c),st(a,i,c),o=!0},p(a,c){let d=e;e=l(a),e===d?~e&&s[e].p(a,c):(n&&(ui(),nt(s[d],1,1,(()=>{s[d]=null})),pi()),~e?(n=s[e],n?n.p(a,c):(n=s[e]=r[e](a),n.c()),Ue(n,1),n.m(i.parentNode,i)):n=null)},i(a){o||(Ue(n),o=!0)},o(a){nt(n),o=!1},d(a){a&&ot(i),~e&&s[e].d(a)}}}function pU(t,e,n){let i,o,r,s,l,a,c,d,u,p,_,f,m,g,v,y,b,w,k,A=he,j=()=>(A(),A=Ve(l,(Ce=>n(62,k=Ce))),l),T,E,O=he,M=()=>(O(),O=Ve(g,(Ce=>n(63,E=Ce))),g),D,R=he,J=()=>(R(),R=Ve(m,(Ce=>n(64,D=Ce))),m),B,z=he,q=()=>(z(),z=Ve(_,(Ce=>n(65,B=Ce))),_),N,Y,x=he,ce=()=>(x(),x=Ve(p,(Ce=>n(66,Y=Ce))),p),ue,Z=he,Q=()=>(Z(),Z=Ve(u,(Ce=>n(67,ue=Ce))),u),se,_e=he,Oe=()=>(_e(),_e=Ve(d,(Ce=>n(19,se=Ce))),d),W,ge=he,it=()=>(ge(),ge=Ve(c,(Ce=>n(68,W=Ce))),c),ye,rt=he,U=()=>(rt(),rt=Ve(s,(Ce=>n(69,ye=Ce))),s),de,pe=he,et=()=>(pe(),pe=Ve(f,(Ce=>n(45,de=Ce))),f);t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>x())),t.$$.on_destroy.push((()=>Z())),t.$$.on_destroy.push((()=>_e())),t.$$.on_destroy.push((()=>ge())),t.$$.on_destroy.push((()=>rt())),t.$$.on_destroy.push((()=>pe()));let{componentContext:we}=e,{layoutParams:Ie=void 0}=e;const Xe=ro(vo),vt=Xe.direction;ko(t,vt,(Ce=>n(18,N=Ce)));const Qe=Xe.genId("tabs");let fe,me=!1,ve=Fr([]);ko(t,ve,(Ce=>n(17,T=Ce)));let Ge={},gt,ee,Je,We={},jt=12,zt="",an="",sn="",It="",cn,pn="",Sn,Fn="",Re="",lt="",li="",wt="",zn=0,Jt="",gn="",Lt=null,$n=!1,hn=!1,Ut,Kt=[],Jn=[],Kn=null,fi=null,Ke=null,bt,ct=!1,ht=!1,qt,St,Ot;function nn(){n(4,jt=12),n(5,zt=""),n(6,It=""),n(7,cn=void 0),n(26,pn=""),n(8,Sn=void 0),n(27,Fn=""),n(9,Re=""),n(10,lt=""),n(11,li=""),n(12,wt=""),n(13,zn=0),n(56,Jt=""),n(57,gn=""),n(14,Lt=null),n(15,Ot=void 0)}function ei(Ce){we.json.items&&n(0,we={...we,json:{...we.json,items:we.json.items.map(((bn,ft)=>({...bn,div:Ce[ft]})))}})}function Ft(Ce){me||(Kt.forEach((bn=>{bn==null||bn.destroy()})),n(30,Kt=Ce.map(((bn,ft)=>{if(ft===v&&bn!=null&&bn.div)return we.produceChildContext(bn.div,{path:ft})}))),n(31,Jn=Ce.map(((bn,ft)=>ft===v))))}async function xt(Ce,bn=!1){if(Ut=v,n(16,v=Ce),gi(),bi(),bn){await Fo();const ft=gt.querySelector(`.${Jo.tabs__item_selected}`);ft&&ft.focus()}}function dt(Ce,bn=!1){const ft=T==null?void 0:T.length;if(!ft)return;const C=T.map((Ni=>Ni.index));let Mt=C.indexOf(v)+Ce;Mt>=ft?Mt=0:Mt<0&&(Mt=ft-1);const An=C[Mt];xt(An,bn)}function Ye(Ce,bn){return v!==bn?(xt(bn),!1):!0}function bi(){n(29,hn=!0),hi(-v*100),Bn(),eo(),Tt(),St=-v*ee.clientWidth}async function hi(Ce){await Fo(),n(22,Je.style.transform=`translate3d(${Ce}%,0,0)`,Je)}function Bn(Ce=!1){const bn=Ce?Math.max(0,v-1):Math.min(v,Ut??v),ft=Ce?Math.min(o.length-1,v+1):Math.max(v,Ut??v);Kt.forEach((C=>{C==null||C.destroy()})),n(30,Kt=Kt.map(((C,Mt)=>{var An;if(C)return C;const Ni=(An=o[Mt])==null?void 0:An.div;if(Mt>=bn&&Mt<=ft&&Ni)return we.produceChildContext(Ni,{path:Mt})}))),n(31,Jn=Jn.map(((C,Mt)=>Mt>=bn&&Mt<=ft)))}async function eo(){if((k==null?void 0:k.type)==="match_parent")return;await Fo();const Ce=document.getElementById(`${Qe}-panel-${v}`);Ce&&n(21,ee.style.height=At(Ce.offsetHeight),ee)}function Tt(){Kn&&clearTimeout(Kn),Kn=window.setTimeout((()=>{n(31,Jn=o.map(((Ce,bn)=>bn===v)))}),400)}function Wn(Ce){if(!(Ce.ctrlKey||Ce.shiftKey||Ce.altKey||Ce.metaKey)&&o){if(Ce.which===b2)dt(-1,!0);else if(Ce.which===y2)dt(1,!0);else if(Ce.which===w2)xt(0,!0);else if(Ce.which===$2)xt(o.length-1,!0);else return;Ce.preventDefault()}}function gi(){$n||(n(28,$n=!0),n(21,ee.style.height=At(ee.clientHeight),ee),n(22,Je.style.transform=`translate3d(${-(Ut??v)*100}%,0,0)`,Je))}function rn(Ce){var bn;const ft=Ce.target,C=(bn=ft==null?void 0:ft.closest)==null?void 0:bn.call(ft,`.${ai["root_restrict-scroll"]}`);o.length<2||Ce.touches.length>1||C&&C!==ee||(ct=!1,ht=!1,fi=Sf(Ce),Ke=null,bt=Date.now(),qt=St||-v*ee.clientWidth,n(29,hn=!1),Kn&&clearTimeout(Kn))}function Nn(Ce){const bn=Sf(Ce);if(!fi||Ke&&Ke.x===bn.x&&Ke.y===bn.y)return;Ke=bn;const ft=ee.clientWidth;if(ct){St=bn.x-fi.x+qt;const C=ft*o.length;if(St>0)St=St*ft/(St+ft*3);else if(-St+ft>C){let Mt=-St+ft-C;Mt=Mt*ft/(Mt+ft*3),St=ft-C-Mt}hi(St*100/ft)}else Math.abs(bn.y-fi.y)>10?ht=!0:!ht&&Math.abs(bn.x-fi.x)>8&&(gi(),ct=!0,fi=bn,hi(-v*100),Bn(!0));ct&&Ce.cancelable&&Ce.preventDefault()}function Bt(){ht=!1,fi=null;let Ce=v;if(!ct)return;ct=!1;const bn=Math.min(512,ee.clientWidth),ft=Math.abs(qt-St),C=Math.min(1,(Date.now()-bt)/750);ft>bn/4*C&&(Ce+=qt>St?1:-1),Ce>=o.length?Ce=o.length-1:Ce<0&&(Ce=0),Ce===v?(n(29,hn=!0),St=-Ce*bn,hi(-Ce*100),Tt()):xt(Ce)}jo((()=>{Kt.forEach((Ce=>{Ce==null||Ce.destroy()})),fe&&(Xe.unregisterInstance(fe),n(55,fe=void 0))}));const vn=(Ce,bn)=>Ye(bn,Ce);function un(Ce){Wi[Ce?"unshift":"push"]((()=>{gt=Ce,n(20,gt)}))}function En(Ce){Wi[Ce?"unshift":"push"]((()=>{Je=Ce,n(22,Je)}))}function Yn(Ce){Wi[Ce?"unshift":"push"]((()=>{ee=Ce,n(21,ee)}))}return t.$$set=Ce=>{"componentContext"in Ce&&n(0,we=Ce.componentContext),"layoutParams"in Ce&&n(1,Ie=Ce.layoutParams)},t.$$.update=()=>{var Ce,bn;if(t.$$.dirty[0]&1&&n(61,i=we.origJson),t.$$.dirty[1]&1073741824&&i&&nn(),t.$$.dirty[0]&1&&n(58,o=Array.isArray(we.json.items)&&we.json.items||[]),t.$$.dirty[1]&134217728&&n(44,r=o.map((ft=>{var C;return{json:ft.div,id:(C=ft.div)==null?void 0:C.id}}))),t.$$.dirty[0]&1&&U(n(43,s=we.getDerivedFromVars(we.json.width))),t.$$.dirty[0]&1&&j(n(42,l=we.getDerivedFromVars(we.json.height))),t.$$.dirty[0]&1&&n(60,a=we.getJsonWithVars(we.json.selected_tab)),t.$$.dirty[0]&1&&it(n(41,c=we.getDerivedFromVars(we.json.tab_title_style))),t.$$.dirty[0]&1&&Oe(n(40,d=we.getDerivedFromVars(we.json.has_separator))),t.$$.dirty[0]&1&&Q(n(39,u=we.getDerivedFromVars(we.json.separator_color))),t.$$.dirty[0]&1&&ce(n(38,p=we.getDerivedFromVars(we.json.separator_paddings))),t.$$.dirty[0]&1&&q(n(37,_=we.getDerivedFromVars(we.json.switch_tabs_by_content_swipe_enabled))),t.$$.dirty[0]&1&&et(n(36,f=we.getDerivedFromVars(we.json.restrict_parent_scroll))),t.$$.dirty[0]&1&&J(n(35,m=we.getDerivedFromVars(we.json.title_paddings))),t.$$.dirty[0]&1&&M(n(34,g=we.getDerivedFromVars(we.json.tab_title_delimiter))),t.$$.dirty[1]&536870912&&n(16,v=a&&Number(a)||0),t.$$.dirty[0]&1|t.$$.dirty[1]&134217728)if(Array.isArray(o)&&o.length){let ft=[];o.forEach(((C,Mt)=>{const An=we.getJsonWithVars({index:Mt,title:C.title,title_click_action:C.title_click_action});An.title&&typeof An.title=="string"?ft.push(An):we.logError(tt(new Error("Incorrect title for the tab"),{additional:{index:Mt}}))})),ve.set(ft)}else ve.set([]);if(t.$$.dirty[0]&131073&&(T!=null&&T.length?n(2,me=!1):(n(2,me=!0),we.logError(tt(new Error('Incorrect or empty "items" prop for div "tabs"'))))),t.$$.dirty[0]&8|t.$$.dirty[2]&129){let ft={parentContainerOrientation:"horizontal"};(ye==null?void 0:ye.type)==="wrap_content"&&(ft.parentHorizontalWrapContent=!0),(!k||k.type==="wrap_content")&&(ft.parentVerticalWrapContent=!0),n(3,Ge=us(ft,Ge))}if(t.$$.dirty[0]&65541|t.$$.dirty[1]&134217728&&!me&&(v<0||v>=o.length)&&(we.logError(tt(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:we.json.selected_tab,length:o.length}})),n(16,v=v<0?0:o.length-1)),t.$$.dirty[0]&196613&&!me&&!T.some((ft=>v===ft.index))&&(we.logError(tt(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:we.json.selected_tab}})),n(16,v=((Ce=T[0])==null?void 0:Ce.index)||0)),t.$$.dirty[2]&64&&n(59,y=W||{}),t.$$.dirty[0]&16|t.$$.dirty[1]&268435456&&n(4,jt=mr(y.font_size,jt)),t.$$.dirty[0]&262192|t.$$.dirty[1]&268435456&&(y.font_size||y.paddings)){const ft=y.paddings||{top:6,right:8,bottom:6,left:8},C={top:(Number(ft.top)||0)/jt*10,right:(Number(N==="ltr"?ft.end:ft.start)||Number(ft.right)||0)/jt*10,bottom:(Number(ft.bottom)||0)/jt*10,left:(Number(N==="ltr"?ft.start:ft.end)||Number(ft.left)||0)/jt*10};n(5,zt=oa(C,N,zt))}if(t.$$.dirty[0]&16|t.$$.dirty[1]&268435456){const ft=y.line_height;ft!==void 0&&Zo(ft)&&n(24,an=At(ft/jt*10))}if(t.$$.dirty[0]&16|t.$$.dirty[1]&268435456){const ft=y.letter_spacing;ft!==void 0&&Wo(ft)&&n(25,sn=At(ft/jt*10))}if(t.$$.dirty[0]&80|t.$$.dirty[1]&268435456&&(y.corner_radius||y.corners_radius||y.font_size)){const ft=(bn=y.corner_radius)!=null?bn:1e3;y.corners_radius?n(6,It=iU(y.corners_radius,ft,jt,It)):Wo(ft)&&n(6,It=At(ft/jt*10))}t.$$.dirty[0]&128|t.$$.dirty[1]&268435456&&(n(7,cn=kl(y.active_font_weight||y.font_weight,void 0,cn)),y.font_family&&typeof y.font_family=="string"?n(26,pn=Xe.typefaceProvider(y.font_family,{fontWeight:cn||400})):n(26,pn="")),t.$$.dirty[0]&256|t.$$.dirty[1]&268435456&&(n(8,Sn=kl(y.inactive_font_weight||y.font_weight,void 0,Sn)),y.font_family&&typeof y.font_family=="string"?n(27,Fn=Xe.typefaceProvider(y.font_family,{fontWeight:Sn||400})):n(27,Fn="")),t.$$.dirty[0]&512|t.$$.dirty[1]&268435456&&n(9,Re=Ri(y.active_text_color,1,Re)),t.$$.dirty[0]&1024|t.$$.dirty[1]&268435456&&n(10,lt=Ri(y.inactive_text_color,1,lt)),t.$$.dirty[0]&2048|t.$$.dirty[1]&268435456&&n(11,li=Ri(y.active_background_color,1,li)),t.$$.dirty[0]&4096|t.$$.dirty[1]&268435456&&n(12,wt=Ri(y.inactive_background_color,1,wt)),t.$$.dirty[0]&8192|t.$$.dirty[1]&268435456&&n(13,zn=uo(y.item_spacing,zn)),t.$$.dirty[0]&786432|t.$$.dirty[1]&100663296|t.$$.dirty[2]&48&&se&&(ue&&n(56,Jt=Ri(ue,1,Jt)),Y&&n(57,gn=oa(Y,N,gn))),t.$$.dirty[1]&100663296&&n(33,b={background:Jt,margin:gn}),t.$$.dirty[2]&8&&n(32,w=typeof B>"u"?!0:!!B),t.$$.dirty[0]&16384|t.$$.dirty[2]&4&&n(14,Lt=ya(D||void 0,Lt)),t.$$.dirty[0]&32768|t.$$.dirty[2]&2&&n(15,Ot=nU(E,Ot)),t.$$.dirty[1]&134217728&&Ft(o),t.$$.dirty[0]&65541|t.$$.dirty[1]&150994944&&we.json&&(fe&&(Xe.unregisterInstance(fe),n(55,fe=void 0)),we.id&&!me&&!we.fakeElement&&(n(55,fe=we.id),Xe.registerInstance(fe,{setCurrentItem(ft){if(ft<0||ft>o.length-1)throw new Error('Item is out of range in "set-current-item" action');xt(ft)},setPreviousItem(ft,C){let Mt=v-ft;Mt<0&&(Mt=C==="ring"?ps(Mt,o.length):0),xt(Mt)},setNextItem(ft,C){let Mt=v+ft;Mt>o.length-1&&(Mt=C==="ring"?ps(Mt,o.length):o.length-1),xt(Mt)},scrollToStart(){xt(0)},scrollToEnd(){xt(o.length-1)}}))),t.$$.dirty[2]&1&&n(23,We={"height-parent":(k==null?void 0:k.type)==="match_parent"?"yes":""})},[we,Ie,me,Ge,jt,zt,It,cn,Sn,Re,lt,li,wt,zn,Lt,Ot,v,T,N,se,gt,ee,Je,We,an,sn,pn,Fn,$n,hn,Kt,Jn,w,b,g,m,f,_,p,u,d,c,l,s,r,de,vt,Qe,ve,ei,Ye,Wn,rn,Nn,Bt,fe,Jt,gn,o,y,a,i,k,E,D,B,Y,ue,W,ye,vn,un,En,Yn]}class _U extends Qi{constructor(e){super(),xi(this,e,pU,uU,Pi,{componentContext:0,layoutParams:1},null,[-1,-1,-1,-1])}}const fU="divkit-31140",mU="divkit-bace1",gU="divkit-8524e",Ps={state:fU,state_overflow_visible:mU,state__animations:gU,"state__animation-child":"divkit-dcc79","state__animation-child-inner":"divkit-aa7dd"};function ad(t){return t<.5?4*t*t*t:.5*Math.pow(2*t-2,3)+1}function hU(t){return t*t*t}function k2(t){const e=t-1;return e*e*e+1}function j2(t){return e=>{if(e<=0)return 0;if(e>=1)return 1;const n=e*t.length,i=Math.floor(n),o=t[i],r=t[i+1],s=n-i;return o*s+r*(1-s)}}const vU=[.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],bU=j2(vU),yU=[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],wU=j2(yU),pu={linear:Xc,ease:bU,ease_in:hU,ease_out:k2,ease_in_out:ad,spring:wU};function Gu(t){return pu[t]}const S2=200,T2=0,$U=0,kU=0;function If(t){return Math.max(...t.map((e=>(Number(e.duration)||S2)+(Number(e.start_delay)||T2))))}function jU(t,{transitions:e,elementBbox:n,rootBbox:i,direction:o,maxDuration:r,alpha:s}){const l=s??1;return{duration:rd()?0:r,css:a=>{const c=a*r,d=e.map((g=>{var v,y,b;const w=Number(g.start_delay)||T2,k=Number(g.duration)||S2,A=Math.max(0,Math.min(1,(c-w)/k)),j=o==="in"?1-A:A,T=(Gu(g.interpolator||"ease_in_out")||ad)(j);if(g.type==="fade")return T>=1?{active:!1,opacity:0}:{active:T>0&&T<1,opacity:(1-T)*l+T*(g.alpha||$U)};if(g.type==="slide"){const E=g.edge==="top"||g.edge==="left"?-1:1,O=g.edge==="top"||g.edge==="bottom"||!g.edge?"translateY":"translateX";let M=(v=g.distance)==null?void 0:v.value;M===void 0&&(g.edge==="top"||g.edge==="bottom"||!g.edge?M=Math.abs(i[g.edge==="bottom"?"bottom":"top"]-n[g.edge==="bottom"?"top":"bottom"]):M=Math.abs(i[g.edge==="left"?"left":"right"]-n[g.edge==="left"?"right":"left"]));const D=M*T;return{active:T>0&&T<1,translate:`${O}(${D*E}px)`}}else if(g.type==="scale"){const E=1-T+T*(g.scale||kU),O=(y=g.pivot_x)!=null?y:.5,M=(b=g.pivot_y)!=null?b:.5,D=(1-E)*n.width*O,R=(1-E)*n.height*M;return{active:T>0&&T<1,scale:`translate(${D}px, ${R}px) scale(${E})`}}return{}})),u=d.map((g=>g.opacity)).filter((g=>g!==void 0)).reduce(((g,v)=>g*v),1),p=d.map((g=>g.translate)).filter((g=>g!==void 0)).join(" "),_=d.map((g=>g.scale)).filter((g=>g!==void 0)).join(" "),f=d.filter((g=>g.active)).map((g=>g.scale)).filter((g=>g!==void 0)),m=f.length?f[f.length-1]:_;return`transform:${[p,m].filter(Boolean).join(" ")||"none"};opacity:${u}`}}}function xr(t,e,n){return t*(1-n)+e*n}const SU=200,TU=0;function CU(t,{rootBbox:e,beforeBbox:n,afterBbox:i,transition:o}){var r,s;return{delay:(r=o.start_delay)!=null?r:TU,duration:rd()?0:(s=o.duration)!=null?s:SU,easing:o.interpolator&&o.interpolator in pu?pu[o.interpolator]:ad,css:l=>[`top:${xr(n.top,i.top,l)-e.top}px`,`left:${xr(n.left,i.left,l)-e.left}px`,`width:${xr(n.width,i.width,l)}px`,`height:${xr(n.height,i.height,l)}px`].join(";")}}function C2(t){const e=[];return t.type==="set"?(t.items||[]).forEach((n=>{e.push(...C2(n))})):e.push(t),e}const{Map:zU}=Jr;function Df(t,e,n){const i=t.slice();return i[35]=e[n],i}function EU(t){let e,n;return e=new Ur({props:{componentContext:t[0]}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o[0]&1&&(r.componentContext=i[0]),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function AU(t){let e,n;return e=new qo({props:{cls:kn("state",Ps,t[7]),componentContext:t[0],layoutParams:t[1],parentOf:t[8],parentOfSimpleMode:!0,replaceItems:t[10],$$slots:{default:[PU]},$$scope:{ctx:t}}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o[0]&128&&(r.cls=kn("state",Ps,i[7])),o[0]&1&&(r.componentContext=i[0]),o[0]&2&&(r.layoutParams=i[1]),o[0]&256&&(r.parentOf=i[8]),o[0]&120|o[1]&128&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function Vf(t){let e=t[5],n,i,o=Lf(t);return{c(){o.c(),n=si()},m(r,s){o.m(r,s),st(r,n,s),i=!0},p(r,s){s[0]&32&&Pi(e,e=r[5])?(ui(),nt(o,1,1,he),pi(),o=Lf(r),o.c(),Ue(o,1),o.m(n.parentNode,n)):o.p(r,s)},i(r){i||(Ue(o),i=!0)},o(r){nt(o),i=!1},d(r){r&&ot(n),o.d(r)}}}function Lf(t){let e,n;return e=new Tr({props:{componentContext:t[6]}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o[0]&64&&(r.componentContext=i[6]),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function OU(t){let e,n,i,o,r,s,l,a;i=new Tr({props:{componentContext:t[35].componentContextCopy}});function c(){return t[20](t[35])}return{c(){e=Zt("div"),n=Zt("div"),Qn(i.$$.fragment),o=Ai(),K(n,"class",Ps["state__animation-child-inner"]),K(e,"class",Ps["state__animation-child"])},m(d,u){st(d,e,u),Ln(e,n),Zn(i,n,null),Ln(e,o),s=!0,l||(a=en(e,"introend",c),l=!0)},p(d,u){t=d;const p={};u[0]&16&&(p.componentContext=t[35].componentContextCopy),i.$set(p)},i(d){s||(Ue(i.$$.fragment,d),r||lr((()=>{r=Nu(e,CU,t[35]),r.start()})),s=!0)},o(d){nt(i.$$.fragment,d),s=!1},d(d){d&&ot(e),xn(i),l=!1,a()}}}function MU(t){let e,n,i,o,r,s=`${t[35].offsetLeft}px`,l=`${t[35].offsetTop}px`,a=`${t[35].width}px`,c=`${t[35].height}px`,d,u,p;i=new Tr({props:{componentContext:t[35].componentContextCopy}});function _(){return t[19](t[35])}return{c(){e=Zt("div"),n=Zt("div"),Qn(i.$$.fragment),o=Ai(),K(n,"class",Ps["state__animation-child-inner"]),K(e,"class",Ps["state__animation-child"]),He(e,"left",s),He(e,"top",l),He(e,"width",a),He(e,"height",c)},m(f,m){st(f,e,m),Ln(e,n),Zn(i,n,null),Ln(e,o),d=!0,u||(p=en(e,"introend",_),u=!0)},p(f,m){t=f;const g={};m[0]&16&&(g.componentContext=t[35].componentContextCopy),i.$set(g),m[0]&16&&s!==(s=`${t[35].offsetLeft}px`)&&He(e,"left",s),m[0]&16&&l!==(l=`${t[35].offsetTop}px`)&&He(e,"top",l),m[0]&16&&a!==(a=`${t[35].width}px`)&&He(e,"width",a),m[0]&16&&c!==(c=`${t[35].height}px`)&&He(e,"height",c)},i(f){d||(Ue(i.$$.fragment,f),r||lr((()=>{r=Nu(e,jU,t[35]),r.start()})),d=!0)},o(f){nt(i.$$.fragment,f),d=!1},d(f){f&&ot(e),xn(i),u=!1,p()}}}function Ff(t,e){let n,i,o,r,s;const l=[MU,OU],a=[];function c(d,u){return"direction"in d[35]?0:1}return i=c(e),o=a[i]=l[i](e),{key:t,first:null,c(){n=si(),o.c(),r=si(),this.first=n},m(d,u){st(d,n,u),a[i].m(d,u),st(d,r,u),s=!0},p(d,u){e=d;let p=i;i=c(e),i===p?a[i].p(e,u):(ui(),nt(a[p],1,1,(()=>{a[p]=null})),pi(),o=a[i],o?o.p(e,u):(o=a[i]=l[i](e),o.c()),Ue(o,1),o.m(r.parentNode,r))},i(d){s||(Ue(o),s=!0)},o(d){nt(o),s=!1},d(d){d&&(ot(n),ot(r)),a[i].d(d)}}}function PU(t){let e,n,i=[],o=new zU,r,s=t[6]&&Vf(t),l=ci(t[4]);const a=c=>c[35];for(let c=0;c<l.length;c+=1){let d=Df(t,l,c),u=a(d);o.set(u,i[c]=Ff(u,d))}return{c(){s&&s.c(),e=Ai(),n=Zt("div");for(let c=0;c<i.length;c+=1)i[c].c();K(n,"class",Ps.state__animations),K(n,"aria-hidden","true")},m(c,d){s&&s.m(c,d),st(c,e,d),st(c,n,d);for(let u=0;u<i.length;u+=1)i[u]&&i[u].m(n,null);t[21](n),r=!0},p(c,d){c[6]?s?(s.p(c,d),d[0]&64&&Ue(s,1)):(s=Vf(c),s.c(),Ue(s,1),s.m(e.parentNode,e)):s&&(ui(),nt(s,1,1,(()=>{s=null})),pi()),d[0]&2064&&(l=ci(c[4]),ui(),i=t2(i,d,a,1,c,l,o,n,e2,Ff,null,Df),pi())},i(c){if(!r){Ue(s);for(let d=0;d<l.length;d+=1)Ue(i[d]);r=!0}},o(c){nt(s);for(let d=0;d<i.length;d+=1)nt(i[d]);r=!1},d(c){c&&(ot(e),ot(n)),s&&s.d(c);for(let d=0;d<i.length;d+=1)i[d].d();t[21](null)}}}function IU(t){let e,n,i,o;const r=[AU,EU],s=[];function l(a,c){return a[2]?1:0}return~(e=l(t))&&(n=s[e]=r[e](t)),{c(){n&&n.c(),i=si()},m(a,c){~e&&s[e].m(a,c),st(a,i,c),o=!0},p(a,c){let d=e;e=l(a),e===d?~e&&s[e].p(a,c):(n&&(ui(),nt(s[d],1,1,(()=>{s[d]=null})),pi()),~e?(n=s[e],n?n.p(a,c):(n=s[e]=r[e](a),n.c()),Ue(n,1),n.m(i.parentNode,i)):n=null)},i(a){o||(Ue(n),o=!0)},o(a){nt(n),o=!1},d(a){a&&ot(i),~e&&s[e].d(a)}}}function DU(t){return t.some((e=>e.type==="fade"))}function z2(t){return t.type==="change_bounds"?t:t.type==="set"?z2(t.items[0]):null}function VU(t,e,n){let i,o,r,s,l,a,c,d,u,p,_=he,f=()=>(_(),_=Ve(r,(Q=>n(18,p=Q))),r);t.$$.on_destroy.push((()=>_()));let{componentContext:m}=e,{layoutParams:g=void 0}=e;const v=ro(vo);let y=!1,b,w=new Map,k=new Set,A=[],j=[],T=[],E=[],O,M,D,R=!1;function J(){n(13,R=!1)}function B(Q){D&&D.destroy(),n(6,D=Q!=null&&Q.div?m.produceChildContext(Q.div,{path:Q.state_id||"<unknown>"}):void 0)}function z(Q){const se=m.json.states;se&&(n(14,c=se.map(((_e,Oe)=>({..._e,div:Q[Oe]})))),n(0,m.json={...m.json,states:c},m),M&&B(c.find((_e=>_e.state_id===M))||null))}function q(Q,se,_e){let{json:Oe,parentComponentContext:W,transitions:ge,node:it}=se;Oe=m.getJsonWithVars(Oe),ge=m.getJsonWithVars(ge);const ye=C2(ge),rt=se.bbox||it.getBoundingClientRect(),U={...Oe,margins:void 0,alpha:DU(ye)?void 0:Oe.alpha};return{id:W.id||"",json:U,componentContextCopy:W.produceChildContext(U,{fake:!0}),elementBbox:rt,rootBbox:Q,transitions:ye,alpha:Oe.alpha,width:rt.width,height:rt.height,offsetTop:rt.top-Q.top,offsetLeft:rt.left-Q.left,direction:_e,resolvePromise:se.resolvePromise,node:se.node}}async function N(Q){if(M===Q)return m;v.setRunning("stateChange",!0);const se=new Set(k);A.forEach((U=>{U.resolvePromise&&U.resolvePromise()})),n(4,A=[]);let _e=[];if(b){const U=b.getBoundingClientRect();_e=T.map((de=>q(U,de,"out")))}E.forEach((U=>{U.transitions&&w.set(U.id,{transitions:U.transitions,rect:U.node.getBoundingClientRect()})})),j=[],T=[],E=[];const Oe=c.find((U=>U.state_id===Q))||null;if(Oe?(n(5,M=Q),l==null||l.setValue(M),B(Oe)):m.logError(tt(new Error("Cannot find state with id"),{additional:{stateId:Q}})),await Fo(),!b)return;const W=b.getBoundingClientRect();let ge=j.filter((U=>{var de;return U.parentComponentContext.id&&!se.has(U.parentComponentContext.id)?!0:((de=U.resolvePromise)==null||de.call(U),!1)})).map((U=>q(W,U,"in")));_e=_e.filter((U=>{var de;return U.id&&!k.has(U.id)?!0:((de=U.resolvePromise)==null||de.call(U),!1)}));const it=_e.concat(ge),ye=it.reduce(((U,de)=>Math.max(U,If(de.transitions))),0),rt=E.filter((U=>w.has(U.id))).map((U=>{const de={...U.json,margins:void 0,width:{type:"match_parent"},height:{type:"match_parent"}},pe=w.get(U.id);return{id:U.parentComponentContext.id||"",json:de,componentContextCopy:U.parentComponentContext.produceChildContext(de,{fake:!0}),rootBbox:W,beforeBbox:pe.rect,afterBbox:U.node.getBoundingClientRect(),node:U.node,transition:m.getJsonWithVars(z2(pe.transitions)),resolvePromise:U.resolvePromise}}));return n(4,A=[...it.map((U=>({...U,maxDuration:ye}))),...rt]),w.clear(),v.setRunning("stateChange",!1),m}Ss(qu,{runVisibilityTransition(Q,se,_e,Oe,W,ge){if(!b)return Promise.resolve();const it=b.getBoundingClientRect(),ye=q(it,{json:Q,parentComponentContext:se,transitions:_e,node:Oe,bbox:ge},W),rt=If(ye.transitions),U={...ye,maxDuration:rt};return n(4,A=[...A.filter((de=>de.node!==ye.node)),U]),new Promise((de=>{U.resolvePromise=de}))},registerChildWithTransitionIn(Q,se,_e,Oe){const W={json:Q,parentComponentContext:se,transitions:_e,node:Oe};return j.push(W),new Promise((ge=>{W.resolvePromise=ge}))},registerChildWithTransitionOut(Q,se,_e,Oe){const W={json:Q,parentComponentContext:se,transitions:_e,node:Oe};return T.push(W),new Promise((ge=>{W.resolvePromise=ge}))},registerChildWithTransitionChange(Q,se,_e,Oe){const W=se.id;if(!W)return Promise.resolve();const ge={id:W,json:Q,parentComponentContext:se,transitions:_e,node:Oe};return E.push(ge),new Promise((it=>{ge.resolvePromise=it}))},hasTransitionChange(Q){return Q?w.has(Q):!1},registerChild(Q){k.add(Q)},unregisterChild(Q){k.delete(Q)}});function Y(Q){if(!R&&(n(13,R=!0),Q.length)){const se=(l==null?void 0:l.getValue())||o;if(se){n(5,M=se);const _e=Q.find((Oe=>Oe.state_id===M))||null;B(_e),_e||m.logError(tt(new Error("Cannot find state for default_state_id"),{additional:{selectedId:M}}))}else{const _e=Q[0];n(5,M=_e.state_id),B(_e)}l&&(l.setValue(M),l.subscribe((_e=>{N(_e)})))}}function x(Q){n(4,A=A.filter((se=>se!==Q))),Q.resolvePromise&&Q.resolvePromise()}jo((()=>{D&&D.destroy(),O&&m.unregisterState(O)}));const ce=Q=>x(Q),ue=Q=>x(Q);function Z(Q){Wi[Q?"unshift":"push"]((()=>{b=Q,n(3,b)}))}return t.$$set=Q=>{"componentContext"in Q&&n(0,m=Q.componentContext),"layoutParams"in Q&&n(1,g=Q.layoutParams)},t.$$.update=()=>{t.$$.dirty[0]&1&&n(15,i=m.json.div_id||m.id),t.$$.dirty[0]&1&&(o=m.getJsonWithVars(m.json.default_state_id)),t.$$.dirty[0]&1&&f(n(9,r=m.getDerivedFromVars(m.json.clip_to_bounds))),t.$$.dirty[0]&1&&n(17,s=m.json.state_id_variable),t.$$.dirty[0]&131073&&(l=s?m.getVariable(s,"string"):null),t.$$.dirty[0]&1&&n(16,a=m.origJson),t.$$.dirty[0]&65536&&a&&J(),t.$$.dirty[0]&32769&&(i?n(2,y=!1):(n(2,y=!0),m.logError(tt(new Error('Missing "id" prop for div "state"'))))),t.$$.dirty[0]&1&&m.json&&(k=new Set),t.$$.dirty[0]&1&&n(14,c=Array.isArray(m.json.states)&&m.json.states||[]),t.$$.dirty[0]&16384&&n(8,d=c.map((Q=>{var se;return{json:Q.div,id:(se=Q.div)==null?void 0:se.id}}))),t.$$.dirty[0]&16385&&(c!=null&&c.length?n(2,y=!1):(n(2,y=!0),m.logError(tt(new Error('Empty "states" prop for div "state"'))))),t.$$.dirty[0]&36865&&m.json&&(O&&(m.unregisterState(i),n(12,O=void 0)),i&&!(m!=null&&m.fakeElement)&&(n(12,O=i),m.registerState(i,N))),t.$$.dirty[0]&24576&&!R&&Y(c),t.$$.dirty[0]&262144&&n(7,u={overflow:p===!1||p===0?"visible":void 0})},[m,g,y,b,A,M,D,u,d,r,z,x,O,R,c,i,a,s,p,ce,ue,Z]}class LU extends Qi{constructor(e){super(),xi(this,e,VU,IU,Pi,{componentContext:0,layoutParams:1},null,[-1,-1])}}const FU="divkit-4e617",NU="divkit-2d4e4",qU="divkit-834e0",RU="divkit-9cc96",BU="divkit-e886e",HU="divkit-e1525",JU="divkit-3af1f",UU="divkit-8d520",WU="divkit-4e248",KU="divkit-c6702",Rr={pager:FU,pager__items:NU,pager__item:qU,pager_orientation_horizontal:RU,pager_orientation_vertical:BU,pager__item_height_content:HU,pager__item_height_fixed:JU,"pager__item_height-constrained":"divkit-d5bd8",pager__item_width_content:UU,pager__item_width_fixed:WU,"pager__item_width-constrained":"divkit-6a541",pager__arrow:KU,"pager__arrow-icon-path":"divkit-97cb5"},{Boolean:YU}=Jr;function Nf(t,e,n){const i=t.slice();return i[59]=e[n],i[61]=n,i}function GU(t){let e,n;return e=new Ur({props:{componentContext:t[0]}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o[0]&1&&(r.componentContext=i[0]),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function XU(t){let e,n;return e=new qo({props:{cls:kn("pager",Rr,t[12]),componentContext:t[0],layoutParams:t[1],customPaddings:!0,parentOf:t[3],replaceItems:t[27],$$slots:{default:[QU]},$$scope:{ctx:t}}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o[0]&4096&&(r.cls=kn("pager",Rr,i[12])),o[0]&1&&(r.componentContext=i[0]),o[0]&2&&(r.layoutParams=i[1]),o[0]&8&&(r.parentOf=i[3]),o[0]&3157612|o[2]&1&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function qf(t){let e,n,i,o,r;return n=new Tr({props:{componentContext:t[59]}}),{c(){e=Zt("div"),Qn(n.$$.fragment),i=Ai(),K(e,"class",o=kn("pager__item",Rr,Hf(t[2],t[21][t[61]])))},m(s,l){st(s,e,l),Zn(n,e,null),Ln(e,i),r=!0},p(s,l){const a={};l[0]&8&&(a.componentContext=s[59]),n.$set(a),(!r||l[0]&2097156&&o!==(o=kn("pager__item",Rr,Hf(s[2],s[21][s[61]]))))&&K(e,"class",o)},i(s){r||(Ue(n.$$.fragment,s),r=!0)},o(s){nt(n.$$.fragment,s),r=!1},d(s){s&&ot(e),xn(n)}}}function Rf(t){let e,n,i,o=!t[23]&&ZU();return{c(){e=Zt("div"),o&&o.c(),K(e,"class",t[23]||`${Rr.pager__arrow} ${gr.arrow} ${gr.arrow_left}`)},m(r,s){st(r,e,s),o&&o.m(e,null),n||(i=en(e,"click",t[46]),n=!0)},p:he,d(r){r&&ot(e),o&&o.d(),n=!1,i()}}}function ZU(t){let e,n;return{c(){e=$o("svg"),n=$o("path"),K(n,"class",Rr["pager__arrow-icon-path"]),K(n,"d","m10 16 8.3 8 1.03-1-4-6-.7-1 .7-1 4-6-1.03-1z"),K(e,"class",gr.arrow__icon),K(e,"xmlns","http://www.w3.org/2000/svg"),K(e,"width","32"),K(e,"height","32"),K(e,"viewBox","0 0 32 32"),K(e,"fill","none")},m(i,o){st(i,e,o),Ln(e,n)},d(i){i&&ot(e)}}}function Bf(t){let e,n,i,o=!t[24]&&xU();return{c(){e=Zt("div"),o&&o.c(),K(e,"class",t[24]||`${Rr.pager__arrow} ${gr.arrow} ${gr.arrow_right}`)},m(r,s){st(r,e,s),o&&o.m(e,null),n||(i=en(e,"click",t[47]),n=!0)},p:he,d(r){r&&ot(e),o&&o.d(),n=!1,i()}}}function xU(t){let e,n;return{c(){e=$o("svg"),n=$o("path"),K(n,"class",Rr["pager__arrow-icon-path"]),K(n,"d","M22 16l-8.3 8-1.03-1 4-6 .7-1-.7-1-4-6 1.03-1 8.3 8z"),K(e,"class",gr.arrow__icon),K(e,"xmlns","http://www.w3.org/2000/svg"),K(e,"width","32"),K(e,"height","32"),K(e,"viewBox","0 0 32 32"),K(e,"fill","none")},m(i,o){st(i,e,o),Ln(e,n)},d(i){i&&ot(e)}}}function QU(t){let e,n,i,o,r,s,l,a,c,d=ci(t[3]),u=[];for(let m=0;m<d.length;m+=1)u[m]=qf(Nf(t,d,m));const p=m=>nt(u[m],1,1,(()=>{u[m]=null}));let _=t[10]&&t[11]&&Rf(t),f=t[9]&&t[11]&&Bf(t);return{c(){e=Zt("div");for(let m=0;m<u.length;m+=1)u[m].c();o=Ai(),_&&_.c(),r=Ai(),f&&f.c(),s=si(),K(e,"class",n=Rr.pager__items+" "+(t[20]?ai["root_restrict-scroll"]:"")),K(e,"style",i=qn(t[13]))},m(m,g){st(m,e,g);for(let v=0;v<u.length;v+=1)u[v]&&u[v].m(e,null);t[45](e),st(m,o,g),_&&_.m(m,g),st(m,r,g),f&&f.m(m,g),st(m,s,g),l=!0,a||(c=en(e,"scroll",t[26]),a=!0)},p(m,g){if(g[0]&2097164){d=ci(m[3]);let v;for(v=0;v<d.length;v+=1){const y=Nf(m,d,v);u[v]?(u[v].p(y,g),Ue(u[v],1)):(u[v]=qf(y),u[v].c(),Ue(u[v],1),u[v].m(e,null))}for(ui(),v=d.length;v<u.length;v+=1)p(v);pi()}(!l||g[0]&1048576&&n!==(n=Rr.pager__items+" "+(m[20]?ai["root_restrict-scroll"]:"")))&&K(e,"class",n),(!l||g[0]&8192&&i!==(i=qn(m[13])))&&K(e,"style",i),m[10]&&m[11]?_?_.p(m,g):(_=Rf(m),_.c(),_.m(r.parentNode,r)):_&&(_.d(1),_=null),m[9]&&m[11]?f?f.p(m,g):(f=Bf(m),f.c(),f.m(s.parentNode,s)):f&&(f.d(1),f=null)},i(m){if(!l){for(let g=0;g<d.length;g+=1)Ue(u[g]);l=!0}},o(m){u=u.filter(YU);for(let g=0;g<u.length;g+=1)nt(u[g]);l=!1},d(m){m&&(ot(e),ot(o),ot(r),ot(s)),To(u,m),t[45](null),_&&_.d(m),f&&f.d(m),a=!1,c()}}}function eW(t){let e,n,i,o;const r=[XU,GU],s=[];function l(a,c){return a[4]?1:0}return~(e=l(t))&&(n=s[e]=r[e](t)),{c(){n&&n.c(),i=si()},m(a,c){~e&&s[e].m(a,c),st(a,i,c),o=!0},p(a,c){let d=e;e=l(a),e===d?~e&&s[e].p(a,c):(n&&(ui(),nt(s[d],1,1,(()=>{s[d]=null})),pi()),~e?(n=s[e],n?n.p(a,c):(n=s[e]=r[e](a),n.c()),Ue(n,1),n.m(i.parentNode,i)):n=null)},i(a){o||(Ue(n),o=!0)},o(a){nt(n),o=!1},d(a){a&&ot(i),~e&&s[e].d(a)}}}const Pa={wrap_content:"content",fixed:"fixed",match_parent:"parent"};function Hf(t,e){var n,i,o,r;if(t==="horizontal"){const l=((n=e.height)==null?void 0:n.type)||"";return{height:l in Pa?Pa[l]:"content","height-constrained":((i=e.height)==null?void 0:i.type)==="wrap_content"?br(e.height.constrained,!1):!1}}const s=((o=e.width)==null?void 0:o.type)||"";return{width:s in Pa?Pa[s]:"parent","width-constrained":((r=e.width)==null?void 0:r.type)==="wrap_content"?br(e.width.constrained,!1):!1}}function tW(t,e,n){let i,o,r,s,l,a,c,d,u,p,_,f,m,g,v,y,b=he,w=()=>(b(),b=Ve(v,(wt=>n(49,y=wt))),v),k,A,j,T=he,E=()=>(T(),T=Ve(r,(wt=>n(40,j=wt))),r),O,M=he,D=()=>(M(),M=Ve(a,(wt=>n(41,O=wt))),a),R,J=he,B=()=>(J(),J=Ve(l,(wt=>n(42,R=wt))),l),z,q=he,N=()=>(q(),q=Ve(s,(wt=>n(43,z=wt))),s),Y,x=he,ce=()=>(x(),x=Ve(o,(wt=>n(44,Y=wt))),o),ue,Z=he,Q=()=>(Z(),Z=Ve(c,(wt=>n(20,ue=wt))),c),se,_e=he,Oe=()=>(_e(),_e=Ve(vt,(wt=>n(21,se=wt))),vt);t.$$.on_destroy.push((()=>b())),t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>x())),t.$$.on_destroy.push((()=>Z())),t.$$.on_destroy.push((()=>_e()));let{componentContext:W}=e,{layoutParams:ge=void 0}=e;const it=ro(vo),ye=it.direction;ko(t,ye,(wt=>n(5,k=wt)));const rt=it.genId("pager"),U=it.getCustomization("pagerLeftClass"),de=it.getCustomization("pagerRightClass"),pe=it.isDesktop;ko(t,pe,(wt=>n(39,A=wt)));const et=ld(sn,50);let we,Ie,Xe=!1,vt,Qe=0,fe=0,me=!1,ve="horizontal",Ge="0em",gt="",ee="",Je=[];function We(){n(35,gt="")}function jt(wt){n(0,W={...W,json:{...W.json,items:wt.filter(os)}})}function zt(wt,zn){return ve==="horizontal"?zn.left>=wt.left&&zn.right<=wt.right:zn.top>=wt.top&&zn.bottom<=wt.bottom}function an(){const wt=Array.from(Ie.children),zn=Ie.getBoundingClientRect(),Jt=wt.findIndex((gn=>zt(zn,gn.getBoundingClientRect())));return Jt!==-1?Jt:Qe}function sn(){if(!Xe)return;const wt=an();wt!==Qe&&n(32,Qe=wt)}function It(wt,zn){const Jt=W.id;if(Jt){const gn=new Map(y);nc(v,y=gn.set(Jt,{instId:rt,size:wt,currentItem:zn,scrollToPagerItem:pn}),y)}}function cn(wt){var zn;if(wt===fe)return;fe=wt;const Jt=W.getJsonWithVars((zn=Je[wt].json)==null?void 0:zn.selected_actions);Jt!=null&&Jt.length&&W.execAnyActions(Jt)}function pn(wt,zn="smooth"){const Jt=ve==="horizontal",gn=Ie.children[wt],Lt=Jt?"offsetLeft":"offsetTop",$n=Jt?"offsetWidth":"offsetHeight",hn=Jt?"left":"top",Ut=gn[Lt]+gn[$n]/2-Ie[$n]/2;Ie.scroll({[hn]:Ut,behavior:zn}),n(32,Qe=wt)}function Sn(wt,zn){let Jt=Qe-wt;Jt<0&&(Jt=zn==="ring"?ps(Jt,Je.length):0),pn(Jt)}function Fn(wt,zn){let Jt=Qe+wt;Jt>Je.length-1&&(Jt=zn==="ring"?ps(Jt,Je.length):Je.length-1),pn(Jt)}Sr((()=>{if(n(31,Xe=!0),!!document.getElementById(`${rt}-tab-0`)){const wt=[...Ie.children];for(const[zn,Jt]of wt.entries())Jt.setAttribute("role","tabpanel"),Jt.setAttribute("id",`${rt}-panel-${zn}`),Jt.setAttribute("aria-labelledby",`${rt}-tab-${zn}`)}Qe>0&&pn(Qe,"instant")})),jo((()=>{n(31,Xe=!1),Je.forEach((wt=>{wt.destroy()})),we&&(it.unregisterInstance(we),n(30,we=void 0))}));function Re(wt){Wi[wt?"unshift":"push"]((()=>{Ie=wt,n(6,Ie)}))}const lt=()=>(k==="ltr"?Sn:Fn)(1,"clamp"),li=()=>(k==="ltr"?Fn:Sn)(1,"clamp");return t.$$set=wt=>{"componentContext"in wt&&n(0,W=wt.componentContext),"layoutParams"in wt&&n(1,ge=wt.layoutParams)},t.$$.update=()=>{var wt,zn,Jt,gn,Lt,$n,hn,Ut,Kt,Jn,Kn,fi,Ke;if(t.$$.dirty[0]&1&&n(38,i=W.origJson),t.$$.dirty[1]&128&&i&&We(),t.$$.dirty[0]&1&&ce(n(19,o=typeof((wt=W.json.item_builder)==null?void 0:wt.data)=="string"?W.getDerivedFromVars((zn=W.json.item_builder)==null?void 0:zn.data,void 0,!0):(Jt=W.json.item_builder)!=null&&Jt.data?Cs(W.json.item_builder.data):void 0)),t.$$.dirty[0]&1&&E(n(18,r=W.getDerivedFromVars(W.json.layout_mode))),t.$$.dirty[0]&1&&N(n(17,s=W.getDerivedFromVars(W.json.orientation))),t.$$.dirty[0]&1&&B(n(16,l=W.getDerivedFromVars(W.json.item_spacing))),t.$$.dirty[0]&1&&D(n(15,a=W.getDerivedFromVars(W.json.paddings))),t.$$.dirty[0]&1&&Q(n(14,c=W.getDerivedFromVars(W.json.restrict_parent_scroll))),t.$$.dirty[0]&9|t.$$.dirty[1]&8192){let bt=[];if(W.json.item_builder&&Array.isArray(Y)&&Array.isArray(W.json.item_builder.prototypes)){const ct=W.json.item_builder;bt=Ku(Y,it,W,ct)}else bt=(Array.isArray(W.json.items)&&W.json.items||[]).map((ct=>({div:ct})));Je.forEach((ct=>{ct.destroy()})),n(3,Je=bt.map(((ct,ht)=>W.produceChildContext(ct.div,{path:ht,variables:ct.vars,id:ct.id}))))}if(t.$$.dirty[0]&9){let bt=[];Je.forEach((ct=>{bt.push(W.getDerivedFromVars({width:ct.json.width,height:ct.json.height}))})),Oe(n(7,vt=Ms(bt,(ct=>[...ct]))))}if(t.$$.dirty[0]&1|t.$$.dirty[1]&512&&(j?j.type!=="percentage"&&j.type!=="fixed"?(n(33,me=!0),W.logError(tt(new Error('Incorrect value of "layout_mode.type" for div "pager"')))):n(33,me=!1):(n(33,me=!0),W.logError(tt(new Error('Empty "layout_mode" prop for div "pager"'))))),t.$$.dirty[0]&4|t.$$.dirty[1]&4096&&n(2,ve=Yu(z,ve)),t.$$.dirty[1]&2048){const bt=R==null?void 0:R.value;bt&&Wo(bt)&&n(34,Ge=Uo(bt||0))}if(t.$$.dirty[0]&32|t.$$.dirty[1]&1040&&n(35,gt=oa(O,k,gt)),t.$$.dirty[0]&4&&n(37,d=ve==="horizontal"?"grid-auto-columns":"grid-auto-rows"),t.$$.dirty[0]&37|t.$$.dirty[1]&520){if((j==null?void 0:j.type)==="fixed"){const bt=Uo(ve==="horizontal"?((k==="ltr"?(gn=W.json.paddings)==null?void 0:gn.start:(Lt=W.json.paddings)==null?void 0:Lt.end)||(($n=W.json.paddings)==null?void 0:$n.left)||0)+((k==="ltr"?(hn=W.json.paddings)==null?void 0:hn.end:(Ut=W.json.paddings)==null?void 0:Ut.start)||((Kt=W.json.paddings)==null?void 0:Kt.right)||0):(((Jn=W.json.paddings)==null?void 0:Jn.top)||0)+(((Kn=W.json.paddings)==null?void 0:Kn.bottom)||0)),ct=(fi=j.neighbour_page_width)==null?void 0:fi.value;n(36,ee=ct?`calc(100% + ${bt} - 2 * ${Uo(ct)} - 2 * ${Ge})`:"100%")}else if((j==null?void 0:j.type)==="percentage"){const bt=(Ke=j.page_width)==null?void 0:Ke.value;n(36,ee=`${Number(bt)}%`)}}if(t.$$.dirty[1]&120&&n(13,u={"grid-gap":Ge,padding:gt,[d]:ee}),t.$$.dirty[0]&4&&n(12,p={orientation:ve}),t.$$.dirty[1]&4&&n(4,_=me),t.$$.dirty[0]&16|t.$$.dirty[1]&257&&n(11,f=A&&Xe&&!_),t.$$.dirty[0]&1073741833&&W.json){const bt=W.getJsonWithVars(W.json.default_item);typeof bt=="number"&&bt>=0&&bt<Je.length&&n(32,Qe=fe=bt),we&&(it.unregisterInstance(we),n(30,we=void 0)),W.id&&!W.fakeElement&&(n(30,we=W.id),it.registerInstance(we,{setCurrentItem(ct){if(ct<0||ct>Je.length-1)throw new Error('Item is out of range in "set-current-item" action');pn(ct)},setPreviousItem:Sn,setNextItem:Fn,scrollToStart(){pn(0)},scrollToEnd(){pn(Je.length-1)}}))}t.$$.dirty[0]&40|t.$$.dirty[1]&2&&n(10,m=k==="ltr"?Qe>0:Qe+1<Je.length),t.$$.dirty[0]&40|t.$$.dirty[1]&2&&n(9,g=k==="ltr"?Qe+1<Je.length:Qe>0),t.$$.dirty[0]&8|t.$$.dirty[1]&2&&It(Je.length,Qe),t.$$.dirty[1]&2&&cn(Qe)},w(n(8,v=it.getStore("pagers"))),[W,ge,ve,Je,_,k,Ie,vt,v,g,m,f,p,u,c,a,l,s,r,o,ue,se,ye,U,de,pe,et,jt,Sn,Fn,we,Xe,Qe,me,Ge,gt,ee,d,i,A,j,O,R,z,Y,Re,lt,li]}class nW extends Qi{constructor(e){super(),xi(this,e,tW,eW,Pi,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}}const iW="divkit-7560c",oW="divkit-42240",rW="divkit-49790",sW="divkit-2da15",lW="divkit-eb5df",aW="divkit-c146b",cW="divkit-bae27",dW="divkit-58b11",uW="divkit-b49a3",Is={indicator:iW,indicator__scroller:oW,indicator__items:rW,indicator__item:sW,indicator_placement_default:lW,indicator__item_active:aW,indicator_direction_ltr:cW,indicator_direction_rtl:dW,indicator_placement_stretch:uW};function Jf(t,e,n){const i=t.slice();i[42]=e[n],i[45]=n;const o=i[45]===i[10].currentItem;return i[43]=o,i}function Uf(t){let e,n=ci(Array(t[10].size)),i=[];for(let o=0;o<n.length;o+=1)i[o]=Wf(Jf(t,n,o));return{c(){for(let o=0;o<i.length;o+=1)i[o].c();e=si()},m(o,r){for(let s=0;s<i.length;s+=1)i[s]&&i[s].m(o,r);st(o,e,r)},p(o,r){if(r[0]&12583936){n=ci(Array(o[10].size));let s;for(s=0;s<n.length;s+=1){const l=Jf(o,n,s);i[s]?i[s].p(l,r):(i[s]=Wf(l),i[s].c(),i[s].m(e.parentNode,e))}for(;s<i.length;s+=1)i[s].d(1);i.length=n.length}},d(o){o&&ot(e),To(i,o)}}}function Wf(t){let e,n,i,o,r,s,l,a;function c(){return t[35](t[45])}return{c(){e=Zt("div"),K(e,"class",n=kn("indicator__item",Is,{active:t[43]})+" "+ai.root__clickable),K(e,"role","tab"),K(e,"id",i=t[10].instId+"-tab-"+t[45]),K(e,"aria-controls",o=t[10].instId+"-panel-"+t[45]),K(e,"aria-selected",r=t[43]?"true":"false"),K(e,"tabindex",s=t[43]?0:-1)},m(d,u){st(d,e,u),l||(a=[en(e,"click",c),en(e,"keydown",t[23])],l=!0)},p(d,u){t=d,u[0]&1024&&n!==(n=kn("indicator__item",Is,{active:t[43]})+" "+ai.root__clickable)&&K(e,"class",n),u[0]&1024&&i!==(i=t[10].instId+"-tab-"+t[45])&&K(e,"id",i),u[0]&1024&&o!==(o=t[10].instId+"-panel-"+t[45])&&K(e,"aria-controls",o),u[0]&1024&&r!==(r=t[43]?"true":"false")&&K(e,"aria-selected",r),u[0]&1024&&s!==(s=t[43]?0:-1)&&K(e,"tabindex",s)},d(d){d&&ot(e),l=!1,so(a)}}}function pW(t){let e,n,i=t[10]&&Uf(t);return{c(){e=Zt("div"),n=Zt("div"),i&&i.c(),K(n,"class",Is.indicator__items),K(n,"role","tablist"),He(n,"margin",t[4]==="default"?`0 ${At(Math.max(0,t[2].width-t[3].width)/2)}`:""),He(n,"--divkit-indicator-inactive-width",At(t[3].width)),He(n,"--divkit-indicator-inactive-height",At(t[3].height)),He(n,"--divkit-indicator-inactive-border-radius",At(t[3].borderRadius)),He(n,"--divkit-indicator-inactive-background",t[3].background||""),He(n,"--divkit-indicator-inactive-box-shadow",t[3].boxShadow||""),He(n,"--divkit-indicator-active-width",At(t[2].width)),He(n,"--divkit-indicator-active-height",At(t[2].height)),He(n,"--divkit-indicator-active-border-radius",At(t[2].borderRadius)),He(n,"--divkit-indicator-active-background",t[2].background||""),He(n,"--divkit-indicator-active-box-shadow",t[2].boxShadow||""),He(n,"--divkit-indicator-active-scale",t[2].width/t[3].width),He(n,"--divkit-indicator-default-margin",t[4]==="default"?`0 ${At((t[5]-t[3].width)/2)}`:""),He(n,"--divkit-indicator-stretch-margin",t[4]==="stretch"?At(t[7]):""),He(n,"--divkit-indicator-stretch-max-count",t[4]==="stretch"?t[6]:""),He(n,"--divkit-indicator-stretch-max-spacer",t[4]==="stretch"?At((t[6]-1)*t[7]):""),K(e,"class",Is.indicator__scroller)},m(o,r){st(o,e,r),Ln(e,n),i&&i.m(n,null),t[36](n),t[37](e)},p(o,r){o[10]?i?i.p(o,r):(i=Uf(o),i.c(),i.m(n,null)):i&&(i.d(1),i=null),r[0]&28&&He(n,"margin",o[4]==="default"?`0 ${At(Math.max(0,o[2].width-o[3].width)/2)}`:""),r[0]&8&&He(n,"--divkit-indicator-inactive-width",At(o[3].width)),r[0]&8&&He(n,"--divkit-indicator-inactive-height",At(o[3].height)),r[0]&8&&He(n,"--divkit-indicator-inactive-border-radius",At(o[3].borderRadius)),r[0]&8&&He(n,"--divkit-indicator-inactive-background",o[3].background||""),r[0]&8&&He(n,"--divkit-indicator-inactive-box-shadow",o[3].boxShadow||""),r[0]&4&&He(n,"--divkit-indicator-active-width",At(o[2].width)),r[0]&4&&He(n,"--divkit-indicator-active-height",At(o[2].height)),r[0]&4&&He(n,"--divkit-indicator-active-border-radius",At(o[2].borderRadius)),r[0]&4&&He(n,"--divkit-indicator-active-background",o[2].background||""),r[0]&4&&He(n,"--divkit-indicator-active-box-shadow",o[2].boxShadow||""),r[0]&12&&He(n,"--divkit-indicator-active-scale",o[2].width/o[3].width),r[0]&56&&He(n,"--divkit-indicator-default-margin",o[4]==="default"?`0 ${At((o[5]-o[3].width)/2)}`:""),r[0]&144&&He(n,"--divkit-indicator-stretch-margin",o[4]==="stretch"?At(o[7]):""),r[0]&80&&He(n,"--divkit-indicator-stretch-max-count",o[4]==="stretch"?o[6]:""),r[0]&208&&He(n,"--divkit-indicator-stretch-max-spacer",o[4]==="stretch"?At((o[6]-1)*o[7]):"")},d(o){o&&ot(e),i&&i.d(),t[36](null),t[37](null)}}}function _W(t){let e,n;return e=new qo({props:{cls:kn("indicator",Is,t[11]),componentContext:t[0],layoutParams:t[1],$$slots:{default:[pW]},$$scope:{ctx:t}}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o[0]&2048&&(r.cls=kn("indicator",Is,i[11])),o[0]&1&&(r.componentContext=i[0]),o[0]&2&&(r.layoutParams=i[1]),o[0]&2044|o[1]&32768&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}const zd=["rounded_rectangle","circle"];function fW(t,e,n){let i,o,r,s,l,a,c,d,u,p,_,f,m,g=he,v=()=>(g(),g=Ve(p,(ee=>n(26,m=ee))),p),y,b=he,w=()=>(b(),b=Ve(d,(ee=>n(27,y=ee))),d),k,A=he,j=()=>(A(),A=Ve(u,(ee=>n(28,k=ee))),u),T,E=he,O=()=>(E(),E=Ve(r,(ee=>n(29,T=ee))),r),M,D=he,R=()=>(D(),D=Ve(s,(ee=>n(30,M=ee))),s),J,B=he,z=()=>(B(),B=Ve(o,(ee=>n(31,J=ee))),o),q,N=he,Y=()=>(N(),N=Ve(l,(ee=>n(32,q=ee))),l),x,ce=he,ue=()=>(ce(),ce=Ve(c,(ee=>n(33,x=ee))),c),Z,Q=he,se=()=>(Q(),Q=Ve(a,(ee=>n(34,Z=ee))),a);t.$$.on_destroy.push((()=>g())),t.$$.on_destroy.push((()=>b())),t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>E())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>ce())),t.$$.on_destroy.push((()=>Q()));let{componentContext:_e}=e,{layoutParams:Oe=void 0}=e;const W=ro(vo),ge=W.direction;ko(t,ge,(ee=>n(25,f=ee)));let it={width:13,height:13,borderRadius:6.5,background:"#ffdc60"},ye={width:10,height:10,borderRadius:5,background:"#33919cb5"},rt="default",U=15,de=10,pe=5,et,we,Ie;function Xe(){n(4,rt="default"),n(5,U=15),n(6,de=10),n(7,pe=5),n(2,it={width:13,height:13,borderRadius:6.5,background:"#ffdc60"}),n(3,ye={width:10,height:10,borderRadius:5,background:"#33919cb5"})}async function vt(ee){if(_e.json.pager_id&&ee.has(_e.json.pager_id)&&(n(10,Ie=ee.get(_e.json.pager_id)),await Fo(),we)){const Je=we.children[Ie.currentItem];if(Je){const We=Je.offsetLeft;et.scroll({left:We-et.clientWidth/2,behavior:"smooth"})}}}function Qe(ee){ee!==Ie.currentItem&&Ie.scrollToPagerItem(ee)}function fe(ee){if(ee.ctrlKey||ee.shiftKey||ee.altKey||ee.metaKey)return;const{size:Je,currentItem:We}=Ie;if(ee.which===b2){const jt=We-1<0?We:We-1;me(jt)}else if(ee.which===y2){const jt=We+1>=Je?We:We+1;me(jt)}else if(ee.which===w2)me(0);else if(ee.which===$2)me(Je-1);else return;ee.preventDefault()}async function me(ee){Ie.scrollToPagerItem(ee),await Fo();const Je=we.querySelector(`.${Is.indicator__item_active}`);Je&&Je.focus()}const ve=ee=>Qe(ee);function Ge(ee){Wi[ee?"unshift":"push"]((()=>{we=ee,n(9,we)}))}function gt(ee){Wi[ee?"unshift":"push"]((()=>{et=ee,n(8,et)}))}return t.$$set=ee=>{"componentContext"in ee&&n(0,_e=ee.componentContext),"layoutParams"in ee&&n(1,Oe=ee.layoutParams)},t.$$.update=()=>{var ee,Je;if(t.$$.dirty[0]&1&&n(24,i=_e.origJson),t.$$.dirty[0]&16777216&&i&&Xe(),t.$$.dirty[0]&1&&z(n(20,o=_e.getDerivedFromVars(_e.json.shape))),t.$$.dirty[0]&1&&O(n(19,r=_e.getDerivedFromVars(_e.json.active_item_color))),t.$$.dirty[0]&1&&R(n(18,s=_e.getDerivedFromVars(_e.json.inactive_item_color))),t.$$.dirty[0]&1&&Y(n(17,l=_e.getDerivedFromVars(_e.json.active_item_size))),t.$$.dirty[0]&1&&se(n(16,a=_e.getDerivedFromVars(_e.json.active_shape))),t.$$.dirty[0]&1&&ue(n(15,c=_e.getDerivedFromVars(_e.json.inactive_shape))),t.$$.dirty[0]&1&&w(n(14,d=_e.getDerivedFromVars(_e.json.space_between_centers))),t.$$.dirty[0]&1&&j(n(13,u=_e.getDerivedFromVars(_e.json.items_placement))),t.$$.dirty[0]&1610612748|t.$$.dirty[1]&15&&(Z&&n(2,it=vr({type:"shape_drawable",shape:Z},zd,it)),x&&n(3,ye=vr({type:"shape_drawable",shape:x},zd,ye)),!Z&&!x&&J)){const We=mr(q,1.3);n(3,ye=vr({type:"shape_drawable",shape:J,color:ye.background},zd,ye)),n(3,ye.background=Ri(M,1,ye.background),ye),n(2,it={...ye,width:ye.width*We,height:ye.height*We,borderRadius:ye.borderRadius*We,background:it.background}),n(2,it.background=Ri(T,1,it.background),it)}if(t.$$.dirty[0]&402653424)if(k&&(k.type==="default"||k.type==="stretch")){if(n(4,rt=k.type),rt==="default")n(5,U=uo((ee=k.space_between_centers)==null?void 0:ee.value,U));else if(rt==="stretch"){const We=k;n(6,de=mr(We.max_visible_items,de)),n(7,pe=uo((Je=We.item_spacing)==null?void 0:Je.value,pe))}}else n(4,rt="default"),y&&n(5,U=uo(y.value,U));t.$$.dirty[0]&67108864&&vt(m),t.$$.dirty[0]&33554448&&n(11,_={placement:rt,direction:f})},v(n(12,p=W.getStore("pagers"))),[_e,Oe,it,ye,rt,U,de,pe,et,we,Ie,_,p,u,d,c,a,l,s,r,o,ge,Qe,fe,i,f,m,y,k,T,M,J,q,x,Z,ve,Ge,gt]}class mW extends Qi{constructor(e){super(),xi(this,e,fW,_W,Pi,{componentContext:0,layoutParams:1},null,[-1,-1])}}const gW="divkit-99f56",hW="divkit-96503",vW="divkit-1ee78",bW="divkit-67789",yW="divkit-38304",wW="divkit-c5ec2",$W="divkit-5332e",kW="divkit-f188a",jW="divkit-cdb6d",SW="divkit-dbdf0",Hi={slider:gW,slider__input:hW,slider__input_secondary:vW,slider__thumb:bW,slider_direction_rtl:yW,slider__thumb_secondary:wW,"slider__tracks-wrapper":"divkit-d7767","slider__tracks-inner":"divkit-fd4b7",slider__track:$W,"slider__active-track":"divkit-5d67f","slider__thumb-text":"divkit-23468","slider__thumb-text_secondary":"divkit-f2ab9",slider__tick:kW,slider__tick_active:jW,slider__tick_inactive:SW};function Kf(t,e){var n,i;if(!t||!t.font_size)return e;const o=t.offset,r=t.text_color&&Ri(t.text_color)||"#000",s=kl(t.font_weight,t.font_weight_value,void 0);if(Zo(t.font_size)&&r!=="transparent"){const l={fontSize:At(t.font_size),fontWeight:s,textColor:r};return typeof((n=o==null?void 0:o.x)==null?void 0:n.value)=="number"&&typeof((i=o==null?void 0:o.y)==null?void 0:i.value)=="number"&&(l.offset={x:o.x.value,y:o.y.value}),l}}function Qr(t,e,n){return Math.max(e,Math.min(n,Number(t)))}function Yf(t,e,n){const i=t.slice();return i[81]=e[n],i}function Gf(t,e,n){const i=t.slice();return i[81]=e[n],i}function TW(t){let e,n;return e=new Ur({props:{componentContext:t[0]}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o[0]&1&&(r.componentContext=i[0]),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function CW(t){let e,n;return e=new qo({props:{cls:kn("slider",Hi,t[25]),style:t[26],customDescription:!0,customActions:"slider",hasInnerFocusable:!0,componentContext:t[0],layoutParams:t[1],$$slots:{default:[zW,({focusHandler:i,blurHandler:o})=>({79:i,80:o}),({focusHandler:i,blurHandler:o})=>[0,0,(i?131072:0)|(o?262144:0)]]},$$scope:{ctx:t}}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o[0]&33554432&&(r.cls=kn("slider",Hi,i[25])),o[0]&67108864&&(r.style=i[26]),o[0]&1&&(r.componentContext=i[0]),o[0]&2&&(r.layoutParams=i[1]),o[0]&411037692|o[2]&17170432&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function Xf(t){let e;return{c(){e=Zt("div"),K(e,"class",Hi.slider__tick+" "+Hi.slider__tick_active),He(e,"--divkit-slider-tick",t[81])},m(n,i){st(n,e,i)},p(n,i){i[0]&524288&&He(e,"--divkit-slider-tick",n[81])},d(n){n&&ot(e)}}}function Zf(t){let e;return{c(){e=Zt("div"),K(e,"class",Hi.slider__tick+" "+Hi.slider__tick_inactive),He(e,"--divkit-slider-tick",t[81])},m(n,i){st(n,e,i)},p(n,i){i[0]&1048576&&He(e,"--divkit-slider-tick",n[81])},d(n){n&&ot(e)}}}function xf(t){let e,n,i;return{c(){var o,r,s;e=Zt("div"),n=Zt("div"),i=jr(t[13]),K(n,"class",Hi["slider__thumb-text-inner"]),He(n,"font-size",((o=t[9])==null?void 0:o.fontSize)||"1em"),He(n,"font-weight",((r=t[9])==null?void 0:r.fontWeight)||""),He(n,"color",((s=t[9])==null?void 0:s.textColor)||"#000"),K(e,"class",Hi["slider__thumb-text"])},m(o,r){st(o,e,r),Ln(e,n),Ln(n,i)},p(o,r){var s,l,a;r[0]&8192&&ws(i,o[13]),r[0]&512&&He(n,"font-size",((s=o[9])==null?void 0:s.fontSize)||"1em"),r[0]&512&&He(n,"font-weight",((l=o[9])==null?void 0:l.fontWeight)||""),r[0]&512&&He(n,"color",((a=o[9])==null?void 0:a.textColor)||"#000")},d(o){o&&ot(e)}}}function Qf(t){let e,n=t[10]&&em(t);return{c(){e=Zt("div"),n&&n.c(),K(e,"class",Hi.slider__thumb+" "+Hi.slider__thumb_secondary),He(e,"border-radius",At(t[6].borderRadius)),He(e,"background",t[6].background),He(e,"box-shadow",t[6].boxShadow||"")},m(i,o){st(i,e,o),n&&n.m(e,null)},p(i,o){i[10]?n?n.p(i,o):(n=em(i),n.c(),n.m(e,null)):n&&(n.d(1),n=null),o[0]&64&&He(e,"border-radius",At(i[6].borderRadius)),o[0]&64&&He(e,"background",i[6].background),o[0]&64&&He(e,"box-shadow",i[6].boxShadow||"")},d(i){i&&ot(e),n&&n.d()}}}function em(t){let e,n,i;return{c(){var o,r,s;e=Zt("div"),n=Zt("div"),i=jr(t[14]),K(n,"class",Hi["slider__thumb-text-inner"]),He(n,"font-size",((o=t[10])==null?void 0:o.fontSize)||"1em"),He(n,"font-weight",((r=t[10])==null?void 0:r.fontWeight)||""),He(n,"color",((s=t[10])==null?void 0:s.textColor)||"#000"),K(e,"class",Hi["slider__thumb-text"]+" "+Hi["slider__thumb-text_secondary"])},m(o,r){st(o,e,r),Ln(e,n),Ln(n,i)},p(o,r){var s,l,a;r[0]&16384&&ws(i,o[14]),r[0]&1024&&He(n,"font-size",((s=o[10])==null?void 0:s.fontSize)||"1em"),r[0]&1024&&He(n,"font-weight",((l=o[10])==null?void 0:l.fontWeight)||""),r[0]&1024&&He(n,"color",((a=o[10])==null?void 0:a.textColor)||"#000")},d(o){o&&ot(e)}}}function tm(t){let e,n,i,o,r,s;return{c(){e=Zt("input"),K(e,"type","range"),K(e,"class",n=t[18]?Hi.slider__input:`${Hi.slider__input} ${Hi.slider__input_secondary}`),K(e,"min",t[3]),K(e,"max",t[4]),K(e,"step","1"),e.value=i=t[18]?t[13]:t[14],e.disabled=o=!t[11],K(e,"aria-label",t[22])},m(l,a){st(l,e,a),r||(s=[en(e,"input",t[72]),en(e,"mousedown",(function(){Fi(t[15]?t[43]:null)&&(t[15]?t[43]:null).apply(this,arguments)})),en(e,"touchstart",(function(){Fi(t[15]?t[43]:null)&&(t[15]?t[43]:null).apply(this,arguments)})),en(e,"focus",(function(){Fi(t[79])&&t[79].apply(this,arguments)})),en(e,"blur",(function(){Fi(t[80])&&t[80].apply(this,arguments)}))],r=!0)},p(l,a){t=l,a[0]&262144&&n!==(n=t[18]?Hi.slider__input:`${Hi.slider__input} ${Hi.slider__input_secondary}`)&&K(e,"class",n),a[0]&8&&K(e,"min",t[3]),a[0]&16&&K(e,"max",t[4]),a[0]&286720&&i!==(i=t[18]?t[13]:t[14])&&(e.value=i),a[0]&2048&&o!==(o=!t[11])&&(e.disabled=o),a[0]&4194304&&K(e,"aria-label",t[22])},d(l){l&&ot(e),r=!1,so(s)}}}function zW(t){let e,n,i,o,r,s,l,a,c,d,u,p,_,f,m,g,v,y,b=ci(t[19]),w=[];for(let O=0;O<b.length;O+=1)w[O]=Xf(Gf(t,b,O));let k=ci(t[20]),A=[];for(let O=0;O<k.length;O+=1)A[O]=Zf(Yf(t,k,O));let j=t[9]&&xf(t),T=t[15]&&Qf(t),E=t[15]&&tm(t);return{c(){e=Zt("div"),n=Zt("div"),i=Zt("div"),o=Ai(),r=Zt("div"),s=Ai();for(let O=0;O<w.length;O+=1)w[O].c();l=Ai();for(let O=0;O<A.length;O+=1)A[O].c();a=Ai(),c=Zt("div"),j&&j.c(),d=Ai(),T&&T.c(),u=Ai(),p=Zt("input"),g=Ai(),E&&E.c(),K(i,"class",Hi.slider__track),He(i,"height",At(t[7].height)),He(i,"border-radius",At(t[7].borderRadius)),He(i,"background",t[7].background),He(i,"box-shadow",t[7].boxShadow||""),K(r,"class",Hi["slider__active-track"]),He(r,"left",t[16]==="ltr"?(t[27]*100).toFixed(2)+"%":void 0),He(r,"right",t[16]==="ltr"?void 0:(t[27]*100).toFixed(2)+"%"),He(r,"width",(t[28]*100).toFixed(2)+"%"),He(r,"height",At(t[8].height)),He(r,"border-radius",At(t[8].borderRadius)),He(r,"background",t[8].background),He(r,"box-shadow",t[8].boxShadow||""),K(c,"class",Hi.slider__thumb),He(c,"border-radius",At(t[5].borderRadius)),He(c,"background",t[5].background),He(c,"box-shadow",t[5].boxShadow||""),K(p,"type","range"),K(p,"class",_=t[18]?`${Hi.slider__input} ${Hi.slider__input_secondary}`:Hi.slider__input),K(p,"min",t[3]),K(p,"max",t[4]),K(p,"step","1"),p.value=f=t[18]?t[14]:t[13],p.disabled=m=!t[11],K(p,"aria-label",t[21]),K(n,"class",Hi["slider__tracks-inner"]),K(e,"class",Hi["slider__tracks-wrapper"])},m(O,M){st(O,e,M),Ln(e,n),Ln(n,i),Ln(n,o),Ln(n,r),Ln(n,s);for(let D=0;D<w.length;D+=1)w[D]&&w[D].m(n,null);Ln(n,l);for(let D=0;D<A.length;D+=1)A[D]&&A[D].m(n,null);Ln(n,a),Ln(n,c),j&&j.m(c,null),Ln(n,d),T&&T.m(n,null),Ln(n,u),Ln(n,p),t[71](p),Ln(n,g),E&&E.m(n,null),t[73](n),v||(y=[en(p,"input",t[70]),en(p,"focus",(function(){Fi(t[79])&&t[79].apply(this,arguments)})),en(p,"blur",(function(){Fi(t[80])&&t[80].apply(this,arguments)}))],v=!0)},p(O,M){if(t=O,M[0]&128&&He(i,"height",At(t[7].height)),M[0]&128&&He(i,"border-radius",At(t[7].borderRadius)),M[0]&128&&He(i,"background",t[7].background),M[0]&128&&He(i,"box-shadow",t[7].boxShadow||""),M[0]&134283264&&He(r,"left",t[16]==="ltr"?(t[27]*100).toFixed(2)+"%":void 0),M[0]&134283264&&He(r,"right",t[16]==="ltr"?void 0:(t[27]*100).toFixed(2)+"%"),M[0]&268435456&&He(r,"width",(t[28]*100).toFixed(2)+"%"),M[0]&256&&He(r,"height",At(t[8].height)),M[0]&256&&He(r,"border-radius",At(t[8].borderRadius)),M[0]&256&&He(r,"background",t[8].background),M[0]&256&&He(r,"box-shadow",t[8].boxShadow||""),M[0]&524288){b=ci(t[19]);let D;for(D=0;D<b.length;D+=1){const R=Gf(t,b,D);w[D]?w[D].p(R,M):(w[D]=Xf(R),w[D].c(),w[D].m(n,l))}for(;D<w.length;D+=1)w[D].d(1);w.length=b.length}if(M[0]&1048576){k=ci(t[20]);let D;for(D=0;D<k.length;D+=1){const R=Yf(t,k,D);A[D]?A[D].p(R,M):(A[D]=Zf(R),A[D].c(),A[D].m(n,a))}for(;D<A.length;D+=1)A[D].d(1);A.length=k.length}t[9]?j?j.p(t,M):(j=xf(t),j.c(),j.m(c,null)):j&&(j.d(1),j=null),M[0]&32&&He(c,"border-radius",At(t[5].borderRadius)),M[0]&32&&He(c,"background",t[5].background),M[0]&32&&He(c,"box-shadow",t[5].boxShadow||""),t[15]?T?T.p(t,M):(T=Qf(t),T.c(),T.m(n,u)):T&&(T.d(1),T=null),M[0]&262144&&_!==(_=t[18]?`${Hi.slider__input} ${Hi.slider__input_secondary}`:Hi.slider__input)&&K(p,"class",_),M[0]&8&&K(p,"min",t[3]),M[0]&16&&K(p,"max",t[4]),M[0]&286720&&f!==(f=t[18]?t[14]:t[13])&&(p.value=f),M[0]&2048&&m!==(m=!t[11])&&(p.disabled=m),M[0]&2097152&&K(p,"aria-label",t[21]),t[15]?E?E.p(t,M):(E=tm(t),E.c(),E.m(n,null)):E&&(E.d(1),E=null)},d(O){O&&ot(e),To(w,O),To(A,O),j&&j.d(),T&&T.d(),t[71](null),E&&E.d(),t[73](null),v=!1,so(y)}}}function EW(t){let e,n,i,o,r,s;const l=[CW,TW],a=[];function c(d,u){return d[12]?1:0}return~(e=c(t))&&(n=a[e]=l[e](t)),{c(){n&&n.c(),i=si()},m(d,u){~e&&a[e].m(d,u),st(d,i,u),o=!0,r||(s=en(window,"resize",t[45]),r=!0)},p(d,u){let p=e;e=c(d),e===p?~e&&a[e].p(d,u):(n&&(ui(),nt(a[p],1,1,(()=>{a[p]=null})),pi()),~e?(n=a[e],n?n.p(d,u):(n=a[e]=l[e](d),n.c()),Ue(n,1),n.m(i.parentNode,i)):n=null)},i(d){o||(Ue(n),o=!0)},o(d){nt(n),o=!1},d(d){d&&ot(i),~e&&a[e].d(d),r=!1,s()}}}const tr={width:10,height:10,borderRadius:5,background:"#000"},Ia=["rounded_rectangle","circle"],nm=["rounded_rectangle"];function Da(t,e,n,i,o){let r=[];if(o)for(let s=t;s<e;++s)r.push((s-n)/(i-n));else{for(let s=n;s<t;++s)r.push((s-n)/(i-n));for(let s=e;s<i+1;++s)r.push((s-n)/(i-n))}return r}function AW(t,e,n){let i,o,r,s,l,a,c,d,u,p,_,f,m,g,v,y,b,w,k,A,j,T,E,O,M,D,R,J,B=he,z=()=>(B(),B=Ve(b,(Bt=>n(55,J=Bt))),b),q,N=he,Y=()=>(N(),N=Ve(w,(Bt=>n(56,q=Bt))),w),x,ce=he,ue=()=>(ce(),ce=Ve(y,(Bt=>n(57,x=Bt))),y),Z,Q=he,se=()=>(Q(),Q=Ve(v,(Bt=>n(58,Z=Bt))),v),_e,Oe=he,W=()=>(Oe(),Oe=Ve(g,(Bt=>n(59,_e=Bt))),g),ge,it=he,ye=()=>(it(),it=Ve(m,(Bt=>n(60,ge=Bt))),m),rt,U=he,de=()=>(U(),U=Ve(f,(Bt=>n(61,rt=Bt))),f),pe,et=he,we=()=>(et(),et=Ve(_,(Bt=>n(62,pe=Bt))),_),Ie,Xe=he,vt=()=>(Xe(),Xe=Ve(p,(Bt=>n(63,Ie=Bt))),p),Qe,fe=he,me=()=>(fe(),fe=Ve(u,(Bt=>n(64,Qe=Bt))),u),ve,Ge=he,gt=()=>(Ge(),Ge=Ve(d,(Bt=>n(65,ve=Bt))),d),ee,Je=he,We=()=>(Je(),Je=Ve(l,(Bt=>n(66,ee=Bt))),l),jt,zt=he,an=()=>(zt(),zt=Ve(s,(Bt=>n(67,jt=Bt))),s),sn,It=he,cn=()=>(It(),It=Ve(c,(Bt=>n(68,sn=Bt))),c),pn,Sn=he,Fn=()=>(Sn(),Sn=Ve(a,(Bt=>n(69,pn=Bt))),a);t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>ce())),t.$$.on_destroy.push((()=>Q())),t.$$.on_destroy.push((()=>Oe())),t.$$.on_destroy.push((()=>it())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>et())),t.$$.on_destroy.push((()=>Xe())),t.$$.on_destroy.push((()=>fe())),t.$$.on_destroy.push((()=>Ge())),t.$$.on_destroy.push((()=>Je())),t.$$.on_destroy.push((()=>zt())),t.$$.on_destroy.push((()=>It())),t.$$.on_destroy.push((()=>Sn()));let{componentContext:Re}=e,{layoutParams:lt=void 0}=e;const li=ro(vo),wt=ro(Sc),zn=li.direction;ko(t,zn,(Bt=>n(16,R=Bt)));let Jt,gn,Lt,$n=!1,hn=0,Ut=100,Kt=tr,Jn=Kt,Kn=tr,fi=tr,Ke,bt=null,ct,ht=null,qt,St=qt,Ot="",nn="",ei=!0,Ft=!1;function xt(){n(5,Kt=tr),n(6,Jn=Kt),n(7,Kn=tr),n(8,fi=tr),n(47,bt=null),n(48,ht=null),n(9,qt=void 0),n(10,St=void 0),n(21,Ot=""),n(11,ei=!0),n(22,nn="")}let dt=Qr(jt||0,hn,Ut),Ye=Qr(ee||0,hn,Ut);function bi(Bt){var vn,un;if(!ei)return;const En="pageX"in Bt?Bt.pageX:(un=(vn=Bt.changedTouches)==null?void 0:vn[0])==null?void 0:un.pageX;if(En===void 0)return;const Yn=Lt.getBoundingClientRect();let Ce=(En-Yn.left)/Yn.width;R==="rtl"&&(Ce=1-Ce);const bn=hn+(Ut-hn)*Ce,ft=Math.round(Qr(bn,hn,Ut)),C=(dt+Ye)/2;n(18,$n=ft<C==dt<Ye)}function hi(Bt,vn){const un=Number(Bt.target.value);$n===(vn==="first")?(n(14,Ye=un),l.setValue(un)):(n(13,dt=un),s.setValue(un))}let Bn=!1;function eo(){if(!Lt)return;const Bt=Ut-hn,vn=(bt==null?void 0:bt.width)||0,un=(ht==null?void 0:ht.width)||0;Math.max(vn,un)*Bt>=(Lt==null?void 0:Lt.clientWidth)?Bn||(Re.logError(tt(new Error("Slider ticks overlap each other"),{level:"warn"})),Bn=!0):Bn=!1}const Tt=ld(eo,50);Sr((()=>{eo()})),jo((()=>{Jt&&(li.unregisterFocusable(Jt),n(46,Jt=void 0))}));const Wn=Bt=>hi(Bt,"first");function gi(Bt){Wi[Bt?"unshift":"push"]((()=>{gn=Bt,n(2,gn)}))}const rn=Bt=>hi(Bt,"second");function Nn(Bt){Wi[Bt?"unshift":"push"]((()=>{Lt=Bt,n(17,Lt)}))}return t.$$set=Bt=>{"componentContext"in Bt&&n(0,Re=Bt.componentContext),"layoutParams"in Bt&&n(1,lt=Bt.layoutParams)},t.$$.update=()=>{var Bt,vn,un,En;if(t.$$.dirty[0]&1&&n(54,i=Re.origJson),t.$$.dirty[1]&8388608&&i&&xt(),t.$$.dirty[0]&1&&n(53,o=Re.json.thumb_value_variable),t.$$.dirty[0]&1&&n(15,r=Re.json.thumb_secondary_value_variable),t.$$.dirty[0]&1|t.$$.dirty[1]&4194304&&an(n(23,s=o&&Re.getVariable(o,"integer")||Ho("temp","integer",0))),t.$$.dirty[0]&32769&&We(n(24,l=r&&Re.getVariable(r,"integer")||Ho("temp","integer",0))),t.$$.dirty[0]&1&&Fn(n(41,a=Re.getDerivedFromVars(Re.json.min_value))),t.$$.dirty[0]&1&&cn(n(40,c=Re.getDerivedFromVars(Re.json.max_value))),t.$$.dirty[0]&1&>(n(39,d=Re.getDerivedFromVars(Re.json.thumb_style))),t.$$.dirty[0]&1&&me(n(38,u=Re.getDerivedFromVars(Re.json.thumb_secondary_style))),t.$$.dirty[0]&1&&vt(n(37,p=Re.getDerivedFromVars(Re.json.track_inactive_style))),t.$$.dirty[0]&1&&we(n(36,_=Re.getDerivedFromVars(Re.json.track_active_style))),t.$$.dirty[0]&1&&de(n(35,f=Re.getDerivedFromVars(Re.json.tick_mark_active_style))),t.$$.dirty[0]&1&&ye(n(34,m=Re.getDerivedFromVars(Re.json.tick_mark_inactive_style))),t.$$.dirty[0]&1&&W(n(33,g=Re.getDerivedFromVars(Re.json.thumb_text_style))),t.$$.dirty[0]&1&&se(n(32,v=Re.getDerivedFromVars(Re.json.thumb_secondary_text_style))),t.$$.dirty[0]&1&&ue(n(31,y=Re.getDerivedFromVars(Re.json.accessibility))),t.$$.dirty[0]&1&&z(n(30,b=Re.getDerivedFromVars(Re.json.secondary_value_accessibility))),t.$$.dirty[0]&1&&Y(n(29,w=Re.getDerivedFromVars(Re.json.is_enabled))),t.$$.dirty[0]&24|t.$$.dirty[2]&192&&(n(3,hn=cl(pn,hn)),n(4,Ut=cl(sn,Ut)),eo()),t.$$.dirty[0]&8216|t.$$.dirty[2]&32){const Yn=Qr(jt||0,hn,Ut);Yn!==dt&&n(13,dt=Yn)}if(t.$$.dirty[0]&16408|t.$$.dirty[2]&16){const Yn=Qr(ee||0,hn,Ut);Yn!==Ye&&n(14,Ye=Yn)}if(t.$$.dirty[0]&32|t.$$.dirty[2]&8&&n(5,Kt=vr(ve,Ia,Kt)),t.$$.dirty[0]&32|t.$$.dirty[2]&4&&n(6,Jn=vr(Qe,Ia,Kt)),t.$$.dirty[0]&128|t.$$.dirty[2]&2&&n(7,Kn=vr(Ie,nm,Kn)),t.$$.dirty[0]&256|t.$$.dirty[2]&1&&n(8,fi=vr(pe,nm,fi)),t.$$.dirty[1]&1073741824){let Yn=vr(rt,Ia,tr);Yn!==tr&&n(47,bt=Yn)}if(t.$$.dirty[0]&57368|t.$$.dirty[1]&65536&&(bt?(n(19,Ke=r?Da(Math.min(dt,Ye),Math.max(dt,Ye)+1,hn,Ut,!0):Da(hn,dt,hn,Ut,!0)),eo()):n(19,Ke=[])),t.$$.dirty[1]&536870912){let Yn=vr(ge,Ia,tr);Yn!==tr&&n(48,ht=Yn)}if(t.$$.dirty[0]&57368|t.$$.dirty[1]&131072&&(ht?(n(20,ct=r?Da(Math.min(dt,Ye),Math.max(dt,Ye)+1,hn,Ut,!1):Da(dt+1,Ut+1,hn,Ut,!0)),eo()):n(20,ct=[])),t.$$.dirty[0]&512|t.$$.dirty[1]&268435456&&n(9,qt=Kf(_e,qt)),t.$$.dirty[0]&512|t.$$.dirty[1]&134217728&&n(10,St=Kf(Z,qt)),t.$$.dirty[0]&1|t.$$.dirty[1]&67108864&&(x!=null&&x.description?n(21,Ot=x.description):Re.logError(tt(new Error('Missing accessibility "description" for slider'),{level:"warn"}))),t.$$.dirty[0]&2048|t.$$.dirty[1]&33554432&&n(11,ei=br(q,ei)),t.$$.dirty[0]&32769|t.$$.dirty[1]&16777216&&(J!=null&&J.description?n(22,nn=J.description):r&&Re.logError(tt(new Error('Missing second accessibility "description" for slider'),{level:"warn"}))),t.$$.dirty[0]&4513){let Yn=!1;wt.hasAction()?(Re.logError(tt(new Error('Cannot show "slider" inside component with action'))),Yn=!0):Kt===tr?(Re.logError(tt(new Error('Missing "thumb_style" in slider'))),Yn=!0):fi===tr?(Re.logError(tt(new Error('Missing "track_active_style" in slider'))),Yn=!0):Kn===tr&&(Re.logError(tt(new Error('Missing "track_inactive_style" in slider'))),Yn=!0),Yn!==Ft&&n(12,Ft=Yn)}t.$$.dirty[0]&96&&n(52,k=At(Math.max(...[Kt.width,Jn.width,0].filter(Wo)))),t.$$.dirty[0]&96&&n(51,A=At(Math.max(...[Kt.height,Jn.height,0].filter(Wo)))),t.$$.dirty[0]&8216&&n(50,j=(dt-hn)/(Ut-hn)),t.$$.dirty[0]&49176&&n(49,T=r?(Ye-hn)/(Ut-hn):void 0),t.$$.dirty[1]&786432&&n(28,E=T!==void 0?Math.abs(T-j):j),t.$$.dirty[1]&786432&&n(27,O=T!==void 0?Math.min(T,j):0),t.$$.dirty[0]&1632|t.$$.dirty[1]&4128768&&n(26,M={"--divkit-slider-thumb-width":At(Kt.width),"--divkit-slider-thumb-height":At(Kt.height),"--divkit-slider-thumb-secondary-width":At(Jn.width),"--divkit-slider-thumb-secondary-height":At(Jn.height),"--divkit-slider-text-offset-x":(Bt=qt==null?void 0:qt.offset)!=null&&Bt.x?Uo(qt.offset.x):void 0,"--divkit-slider-text-offset-y":(vn=qt==null?void 0:qt.offset)!=null&&vn.y?Uo(qt.offset.y):void 0,"--divkit-slider-text-secondary-offset-x":(un=St==null?void 0:St.offset)!=null&&un.x?Uo(St.offset.x):void 0,"--divkit-slider-text-secondary-offset-y":(En=St==null?void 0:St.offset)!=null&&En.y?Uo(St.offset.y):void 0,"--divkit-slider-tick-active-width":bt?At(bt.width):void 0,"--divkit-slider-tick-active-height":bt?At(bt.height):void 0,"--divkit-slider-tick-active-border-radius":bt?At(bt.borderRadius):void 0,"--divkit-slider-tick-active-background":(bt==null?void 0:bt.background)||void 0,"--divkit-slider-tick-active-box-shadow":(bt==null?void 0:bt.boxShadow)||void 0,"--divkit-slider-tick-inactive-width":ht?At(ht.width):void 0,"--divkit-slider-tick-inactive-height":ht?At(ht.height):void 0,"--divkit-slider-tick-inactive-border-radius":ht?At(ht.borderRadius):void 0,"--divkit-slider-tick-inactive-background":(ht==null?void 0:ht.background)||void 0,"--divkit-slider-tick-inactive-box-shadow":(ht==null?void 0:ht.boxShadow)||void 0,"--divkit-slider-max-thumb-width":k,"--divkit-slider-max-thumb-height":A,"--divkit-slider-track-part":j,"--divkit-slider-track-secondary-part":T}),t.$$.dirty[0]&65536&&n(25,D={direction:R}),t.$$.dirty[0]&5|t.$$.dirty[1]&32768&&Re.json&&gn&&(Jt&&(li.unregisterFocusable(Jt),n(46,Jt=void 0)),Re.id&&!Re.fakeElement&&(n(46,Jt=Re.id),li.registerFocusable(Jt,{focus(){gn&&gn.focus()}})))},[Re,lt,gn,hn,Ut,Kt,Jn,Kn,fi,qt,St,ei,Ft,dt,Ye,r,R,Lt,$n,Ke,ct,Ot,nn,s,l,D,M,O,E,w,b,y,v,g,m,f,_,p,u,d,c,a,zn,bi,hi,Tt,Jt,bt,ht,T,j,A,k,o,i,J,q,x,Z,_e,ge,rt,pe,Ie,Qe,ve,ee,jt,sn,pn,Wn,gi,rn,Nn]}class OW extends Qi{constructor(e){super(),xi(this,e,AW,EW,Pi,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}}const MW="divkit-49edd",PW="divkit-cadcd",IW="divkit-0dfa7",DW="divkit-88914",VW="divkit-e1c57",LW="divkit-11674",Br={input:MW,"input_alignment-horizontal_center":"divkit-e82eb","input_alignment-horizontal_end":"divkit-cfa85",input__aligner:PW,input__input:IW,input__placeholder:DW,"input_alignment-vertical_start":"divkit-492f7","input_alignment-vertical_end":"divkit-4c2c2","input_alignment-vertical_baseline":"divkit-3545c","input_highlight-color":"divkit-2db43",input__input_singleline:VW,"input__scroll-wrapper":"divkit-20542",input__input_multiline:LW,"input__input_has-custom-focus":"divkit-26a87"};function Xu(t,e){if(t===e)return{start:t.length,added:0,removed:0};if(t.length>e.length){const r=Xu(e,t);return{start:r.start,added:r.removed,removed:r.added}}let n=0,i=e.length-1;const o=e.length-t.length;for(;n<i&&n<t.length&&t[n]===e[n];)++n;for(;i-o>=n&&t[i-o]===e[i];)--i;return++i,{start:n,added:i-n,removed:i-n-o}}class im{constructor(e){this.char=e}}class Mr{constructor(e,n,i){this.char=e,this.filter=n,this.placeholder=i}}class E2{constructor(e){Xi(this,"maskData"),Xi(this,"filters",new Map),Xi(this,"destructedValue",[]),Xi(this,"cursorPos",0),this.maskData=e,this.updateMaskData(e)}get cursorPosition(){return this.cursorPos}get rawValue(){return this.collectValueRange(0,this.destructedValue.length-1)}get value(){let e="";for(let n=0;n<this.destructedValue.length;++n){const i=this.destructedValue[n];if(i instanceof im)e+=i.char;else if(i instanceof Mr)if(i.char)e+=i.char;else if(this.maskData.alwaysVisible)e+=i.placeholder;else break}return e}firstEmptyHolderIndex(){const e=this.destructedValue.findIndex((n=>n instanceof Mr&&!n.char));return e!==-1?e:this.destructedValue.length}updateMaskData(e,n=!0){const i=this.maskData!==e&&n?this.rawValue:null;this.filters=new Map,this.maskData=e,this.maskData.decoding.forEach((o=>{if(o.filter)try{const r=new RegExp(o.filter);this.filters.set(o.key,r)}catch(r){this.onException(tt(r,{level:"error",additional:{key:o.key}}))}})),this.destructedValue=this.maskData.pattern.split("").map((o=>{const r=this.maskData.decoding.find((s=>s.key===o));return r?new Mr(null,this.filters.get(r.key),r.placeholder):new im(o)})),i!==null&&this.overrideRawValue(i)}overrideRawValue(e){this.clearRange(0,this.destructedValue.length),this.replaceChars(e,0),this.cursorPos=Math.min(this.cursorPos,this.value.length)}applyChangeFrom(e,n){const i=Xu(this.value,e);n!==void 0&&(i.start=Math.max(0,n-i.added));const o=this.buildBodySubstring(i,e),r=this.buildTailSubstring(i);this.cleanup(i);const s=this.firstEmptyHolderIndex(),l=r?this.calculateMaxShift(r,s):void 0;this.replaceChars(o,s,l);const a=this.firstEmptyHolderIndex();this.replaceChars(r,a),this.calculateCursorPosition(i,a)}buildBodySubstring(e,n){return n.substring(e.start,e.start+e.added)}buildTailSubstring(e){return this.collectValueRange(e.start+e.removed,this.destructedValue.length-1)}calculateMaxShift(e,n){if(this.filters.size<=1){let r=0,s=n;for(;s<this.destructedValue.length;)this.destructedValue[s]instanceof Mr&&++r,++s;return Math.max(0,r-e.length)}const i=this.calculateInsertableSubstring(e,n);let o=0;for(;o<this.destructedValue.length&&i===this.calculateInsertableSubstring(e,n+o);)++o;return Math.max(0,o-1)}cleanup(e){if(e.added===0&&e.removed===1){let n=e.start;for(;n>=0;){const i=this.destructedValue[n];if(i instanceof Mr&&i.char!==null){i.char=null;break}else--n}}this.clearRange(e.start,this.destructedValue.length)}clearRange(e,n){let i=e;for(;i<n&&i<this.destructedValue.length;){const o=this.destructedValue[i];o instanceof Mr&&(o.char=null),++i}}calculateCursorPosition(e,n){const i=this.firstEmptyHolderIndex();let o;e.start<i?o=Math.min(this.firstHolderAfter(n),this.value.length):o=i,this.cursorPos=o}calculateInsertableSubstring(e,n){let i="",o=n;const r=()=>{for(var s;o<this.destructedValue.length&&!(this.destructedValue[o]instanceof Mr);)++o;return(s=this.destructedValue[o])==null?void 0:s.filter};return e.split("").forEach((s=>{const l=r();l!=null&&l.test(s)&&(i+=s,++o)})),i}collectValueRange(e,n){let i="",o=e;for(;o<=n;){const r=this.destructedValue[o];r instanceof Mr&&r.char!==null&&(i+=r.char),++o}return i}replaceChars(e,n,i){let o=this.calculateInsertableSubstring(e,n);i!==void 0&&(o=o.substring(0,i));let r=n,s=0;for(;r<this.destructedValue.length&&s<o.length;){const l=this.destructedValue[r],a=o[s];l instanceof Mr&&(l.char=a,++s),++r}}firstHolderAfter(e){let n=e;for(;n<this.destructedValue.length&&!(this.destructedValue[n]instanceof Mr);)++n;return n}}class FW extends E2{constructor(e,n){super(e),this.logError=n}onException(e){this.logError(e)}}function NW(t,e,n){if(typeof t.pattern=="string"&&Array.isArray(t.pattern_elements)&&t.pattern_elements.every((i=>i.key&&typeof i.key=="string"))){const i={pattern:t.pattern,alwaysVisible:!!t.always_visible,decoding:t.pattern_elements.map((o=>({key:o.key,filter:o.regex&&typeof o.regex=="string"?o.regex:void 0,placeholder:o.placeholder&&typeof o.placeholder=="string"?o.placeholder:"_"})))};return n?(n.updateMaskData(i),n):new FW(i,e)}return n||null}class qW extends E2{constructor(e=void 0,n){super({pattern:"",decoding:[],alwaysVisible:!1}),Xi(this,"currencyFormatter",new Intl.NumberFormat),Xi(this,"decimalSeparator","."),Xi(this,"localeDigits",{}),Xi(this,"trimZeroRegExp",new RegExp("")),this.logError=n,this.initFormatter(e)}updateCurrencyParams(e){const n=this.parseFormat(this.rawValue)||0;this.initFormatter(e);const i=n.toString().replace(".",this.decimalSeparator);this.applyChangeFrom(i)}initFormatter(e){try{this.currencyFormatter=new Intl.NumberFormat(e,{minimumFractionDigits:2,maximumFractionDigits:2}),this.decimalSeparator=this.currencyFormatter.format(0)[1],this.localeDigits=new Array(10).fill("").reduce(((n,i,o)=>(n[o]=this.currencyFormatter.format(o)[0],n)),{}),this.trimZeroRegExp=new RegExp(`^${this.localeDigits[0]}+`)}catch(n){this.onException(tt(n,{level:"error",additional:{locale:e}}))}}invalidateMaskDataForFormatted(e){const n=this.currencyFormatter.format(e),i=this.formatPattern(n),o=[{key:"#",filter:`[${[...Object.values(this.localeDigits)].join("")}]`,placeholder:this.localeDigits[0]},{key:this.decimalSeparator,filter:`[${this.decimalSeparator}]`,placeholder:this.decimalSeparator}];this.updateMaskData({pattern:i,decoding:o,alwaysVisible:this.maskData.alwaysVisible},!1)}overrideRawValue(e){const n=this.parseFormat(e)||0;this.invalidateMaskDataForFormatted(n),super.overrideRawValue(e)}applyChangeFrom(e,n){const i=Xu(this.value,e),o=this.value.lastIndexOf(this.decimalSeparator),r=e.lastIndexOf(this.decimalSeparator),s=o!==r||o===-1&&r===-1,l=this.validFormat(e,i);this.cleanup(i);const a=this.parseFormat(l)||0;s&&this.invalidateMaskDataForFormatted(a),this.replaceChars(l,0),this.value.length>i.start&&!this.isDigit(this.value[i.start])?this.cursorPos=n??this.cursorPosition:this.cursorPos=Math.abs(this.value.length-(e.length-(n??this.cursorPosition)))}parseFormat(e){return parseFloat(e.replace(/./g,(n=>this.localeDigits[n]||(n===this.decimalSeparator?".":""))))}formatPattern(e){let n="";for(const i of e)n+=this.isDigit(i)?"#":i;return n}validFormat(e,n){if(!e)return"";let i=-1,o=0;for(;o<e.length;){if(e[o]===this.decimalSeparator&&!this.inDiff(n,o)){i=o;break}o++}let r=-1;n.added===1&&n.removed===0&&[",","."].includes(e[n.start])&&(r=n.start);const s=this.currencyFormatter.resolvedOptions().maximumFractionDigits||0;let l=s;if(i!==-1)for(o=i;o<e.length;)this.isDigit(e[o])&&!this.inDiff(n,o)&&l--,o++;else{let u=!1;for(let p=0;p<e.length;p++){const _=e[p];_===this.decimalSeparator?u=!0:!this.inDiff(n,p)&&u&&this.isDigit(_)&&l--}}const a=e.includes(this.decimalSeparator)||r!==-1,c=[];o=e.length-1;let d=!1;for(;o>=0;){const u=e[o],p=c.length<=s;this.isDigit(u)?this.inDiff(n,o)&&!d&&a?l>0&&(c.push(u),l--):c.push(u):p&&i===-1&&o===r?(c.push(this.decimalSeparator),d=!0):p&&u===this.decimalSeparator&&(i===o||i===-1)&&(c.push(this.decimalSeparator),d=!0,i=o),o--}return c.reverse().join("").replace(this.trimZeroRegExp,"")}inDiff(e,n){return e.start<=n&&n<e.start+e.added}isDigit(e){return!!this.localeDigits[e]}onException(e){this.logError(e)}}function RW(t,e,n){return n?(n.updateCurrencyParams(t.locale),n):new qW(t.locale,e)}const A2=3;function _u(t){const e=t.textContent;let n=0;return typeof e=="string"&&(n+=e.length,t instanceof HTMLElement&&(t.tagName==="DIV"||t.tagName==="BR")&&++n),n}function om(t,e){var n;try{let i=0;const o=window.getSelection();if(!o)return 0;const r=o.getRangeAt(0);let s;if(r&&(i+=e==="end"?r.endOffset:r.startOffset,s=e==="end"?r.endContainer:r.startContainer),s instanceof HTMLElement){let l=0;for(let a=0,c=Math.min(i,s.childNodes.length);a<c;++a)l+=_u(s.childNodes[a]);i=l}for(;s&&s!==t;){const l=s.parentNode;if(!l)return 0;const a=Array.from(l.childNodes).indexOf(s);for(let c=0;c<a;++c){const d=l.childNodes[c];i+=_u(d)}s instanceof HTMLElement&&(s.tagName==="DIV"&&((n=l.childNodes[a-1])==null?void 0:n.nodeType)===A2||s.tagName==="BR")&&++i,s=l}return i}catch{return 0}}function fu(t,e,n,i){if(t.nodeType===A2){try{n==="start"?e.setStart(t,i):e.setEnd(t,i)}catch{}return}if(t instanceof HTMLElement&&t.tagName==="BR"){try{const o=window.getSelection();if(o){o.removeAllRanges();const r=document.createRange(),s=t.parentNode,l=Array.from(s.childNodes).indexOf(t)+1;r.setStart(s,l),r.setEnd(s,l),o.addRange(r)}}catch{}return}for(let o=0,r=t.childNodes.length;o<r;++o){const s=t.childNodes[o],l=_u(s);if(i<=l){fu(s,e,n,i);return}i-=l}}function BW(t){let e,n;return e=new Ur({props:{componentContext:t[0]}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o[0]&1&&(r.componentContext=i[0]),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function HW(t){let e,n;return e=new qo({props:{cls:kn("input",Br,t[20]),style:t[19],customDescription:!0,customActions:"input",customPaddings:!0,hasInnerFocusable:!0,componentContext:t[0],layoutParams:t[1],$$slots:{default:[YW,({focusHandler:i,blurHandler:o,hasCustomFocus:r})=>({119:i,120:o,121:r}),({focusHandler:i,blurHandler:o,hasCustomFocus:r})=>[0,0,0,(i?67108864:0)|(o?134217728:0)|(r?268435456:0)]]},$$scope:{ctx:t}}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o[0]&1048576&&(r.cls=kn("input",Br,i[20])),o[0]&524288&&(r.style=i[19]),o[0]&1&&(r.componentContext=i[0]),o[0]&2&&(r.layoutParams=i[1]),o[0]&2555324|o[1]&32768|o[3]&1006632960&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function JW(t){let e,n,i,o,r,s,l,a,c;return{c(){e=Zt("input"),K(e,"type",t[10]),K(e,"inputmode",t[11]),K(e,"class",n=kn("input__input",Br,{"has-custom-focus":t[121],singleline:!0})),K(e,"autocomplete","off"),K(e,"autocapitalize",t[13]),K(e,"aria-label",t[12]),K(e,"aria-describedby",i=t[15]||void 0),K(e,"style",o=qn(t[18])),e.disabled=r=!t[4],K(e,"maxlength",s=t[5]===1/0?void 0:t[5]),K(e,"placeholder",t[21]),e.value=t[3],K(e,"enterkeyhint",l=t[14]==="default"?void 0:t[14])},m(d,u){st(d,e,u),t[103](e),a||(c=[en(e,"input",t[48]),en(e,"keydown",t[50]),en(e,"mousedown",(function(){Fi(t[46]?t[51]:void 0)&&(t[46]?t[51]:void 0).apply(this,arguments)})),en(e,"click",(function(){Fi(t[46]?t[52]:void 0)&&(t[46]?t[52]:void 0).apply(this,arguments)})),en(e,"focus",(function(){Fi(t[119])&&t[119].apply(this,arguments)})),en(e,"blur",(function(){Fi(t[120])&&t[120].apply(this,arguments)}))],a=!0)},p(d,u){t=d,u[0]&1024&&K(e,"type",t[10]),u[0]&2048&&K(e,"inputmode",t[11]),u[3]&268435456&&n!==(n=kn("input__input",Br,{"has-custom-focus":t[121],singleline:!0}))&&K(e,"class",n),u[0]&8192&&K(e,"autocapitalize",t[13]),u[0]&4096&&K(e,"aria-label",t[12]),u[0]&32768&&i!==(i=t[15]||void 0)&&K(e,"aria-describedby",i),u[0]&262144&&o!==(o=qn(t[18]))&&K(e,"style",o),u[0]&16&&r!==(r=!t[4])&&(e.disabled=r),u[0]&32&&s!==(s=t[5]===1/0?void 0:t[5])&&K(e,"maxlength",s),u[0]&2097152&&K(e,"placeholder",t[21]),u[0]&8&&e.value!==t[3]&&(e.value=t[3]),u[0]&16384&&l!==(l=t[14]==="default"?void 0:t[14])&&K(e,"enterkeyhint",l)},d(d){d&&ot(e),t[103](null),a=!1,so(c)}}}function UW(t){let e,n,i,o,r,s,l=!t[8]&&t[21]&&rm(t);function a(u,p){return u[4]?KW:WW}let c=a(t),d=c(t);return{c(){e=Zt("span"),l&&l.c(),n=Ai(),i=Zt("span"),o=jr(""),s=Ai(),d.c(),K(i,"class",Br.input__aligner),K(i,"aria-hidden","true"),K(i,"style",r=qn(t[17])),K(e,"class",Br["input__scroll-wrapper"])},m(u,p){st(u,e,p),l&&l.m(e,null),Ln(e,n),Ln(e,i),Ln(i,o),Ln(e,s),d.m(e,null)},p(u,p){!u[8]&&u[21]?l?l.p(u,p):(l=rm(u),l.c(),l.m(e,n)):l&&(l.d(1),l=null),p[0]&131072&&r!==(r=qn(u[17]))&&K(i,"style",r),c===(c=a(u))&&d?d.p(u,p):(d.d(1),d=c(u),d&&(d.c(),d.m(e,null)))},d(u){u&&ot(e),l&&l.d(),d.d()}}}function rm(t){let e,n,i;return{c(){e=Zt("div"),n=jr(t[21]),K(e,"class",Br.input__placeholder),K(e,"aria-hidden","true"),K(e,"style",i=qn(t[18]))},m(o,r){st(o,e,r),Ln(e,n)},p(o,r){r[0]&2097152&&ws(n,o[21]),r[0]&262144&&i!==(i=qn(o[18]))&&K(e,"style",i)},d(o){o&&ot(e)}}}function WW(t){let e,n,i,o,r;return{c(){e=Zt("span"),K(e,"class",kn("input__input",Br,{multiline:!0})),K(e,"autocapitalize",t[13]),K(e,"contenteditable","false"),K(e,"role","textbox"),K(e,"aria-label",t[12]),K(e,"aria-disabled","true"),K(e,"aria-multiline","true"),K(e,"aria-describedby",n=t[15]||void 0),K(e,"style",i=qn(t[18])),t[8]===void 0&&lr((()=>t[102].call(e)))},m(s,l){st(s,e,l),t[101](e),t[8]!==void 0&&(e.innerText=t[8]),o||(r=en(e,"input",t[102]),o=!0)},p(s,l){l[0]&8192&&K(e,"autocapitalize",s[13]),l[0]&4096&&K(e,"aria-label",s[12]),l[0]&32768&&n!==(n=s[15]||void 0)&&K(e,"aria-describedby",n),l[0]&262144&&i!==(i=qn(s[18]))&&K(e,"style",i),l[0]&256&&s[8]!==e.innerText&&(e.innerText=s[8])},d(s){s&&ot(e),t[101](null),o=!1,r()}}}function KW(t){let e,n,i,o,r,s,l;return{c(){e=Zt("span"),K(e,"class",n=kn("input__input",Br,{"has-custom-focus":t[121],multiline:!0})),K(e,"autocapitalize",t[13]),K(e,"contenteditable","true"),K(e,"role","textbox"),K(e,"tabindex","0"),K(e,"aria-label",t[12]),K(e,"aria-multiline","true"),K(e,"enterkeyhint",i=t[14]==="default"?void 0:t[14]),K(e,"aria-describedby",o=t[15]||void 0),K(e,"style",r=qn(t[18])),t[8]===void 0&&lr((()=>t[100].call(e)))},m(a,c){st(a,e,c),t[99](e),t[8]!==void 0&&(e.innerText=t[8]),s||(l=[en(e,"input",t[100]),en(e,"input",t[48]),en(e,"keydown",t[49]),en(e,"keydown",t[50]),en(e,"paste",xW),en(e,"mousedown",(function(){Fi(t[46]?t[51]:void 0)&&(t[46]?t[51]:void 0).apply(this,arguments)})),en(e,"click",(function(){Fi(t[46]?t[52]:void 0)&&(t[46]?t[52]:void 0).apply(this,arguments)})),en(e,"focus",(function(){Fi(t[119])&&t[119].apply(this,arguments)})),en(e,"blur",(function(){Fi(t[120])&&t[120].apply(this,arguments)}))],s=!0)},p(a,c){t=a,c[3]&268435456&&n!==(n=kn("input__input",Br,{"has-custom-focus":t[121],multiline:!0}))&&K(e,"class",n),c[0]&8192&&K(e,"autocapitalize",t[13]),c[0]&4096&&K(e,"aria-label",t[12]),c[0]&16384&&i!==(i=t[14]==="default"?void 0:t[14])&&K(e,"enterkeyhint",i),c[0]&32768&&o!==(o=t[15]||void 0)&&K(e,"aria-describedby",o),c[0]&262144&&r!==(r=qn(t[18]))&&K(e,"style",r),c[0]&256&&t[8]!==e.innerText&&(e.innerText=t[8])},d(a){a&&ot(e),t[99](null),s=!1,so(l)}}}function YW(t){let e;function n(r,s){return r[7]?UW:JW}let i=n(t),o=i(t);return{c(){o.c(),e=si()},m(r,s){o.m(r,s),st(r,e,s)},p(r,s){i===(i=n(r))&&o?o.p(r,s):(o.d(1),o=i(r),o&&(o.c(),o.m(e.parentNode,e)))},d(r){r&&ot(e),o.d(r)}}}function GW(t){let e,n,i,o;const r=[HW,BW],s=[];function l(a,c){return a[9]?1:0}return~(e=l(t))&&(n=s[e]=r[e](t)),{c(){n&&n.c(),i=si()},m(a,c){~e&&s[e].m(a,c),st(a,i,c),o=!0},p(a,c){let d=e;e=l(a),e===d?~e&&s[e].p(a,c):(n&&(ui(),nt(s[d],1,1,(()=>{s[d]=null})),pi()),~e?(n=s[e],n?n.p(a,c):(n=s[e]=r[e](a),n.c()),Ue(n,1),n.m(i.parentNode,i)):n=null)},i(a){o||(Ue(n),o=!0)},o(a){nt(n),o=!1},d(a){a&&ot(i),~e&&s[e].d(a)}}}const XW=typeof document<"u"&&"inputMode"in document.createElement("input"),sm={email:"email",number:"number",phone:"tel",single_line_text:"text",multi_line_text:"text",uri:"url",password:"password"},ZW=new Set(["Backspace","Delete","Tab","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End","Control","Shift","Alt","Command","Meta","Escape"]);function xW(t){if(t.preventDefault(),t.clipboardData){let e=t.clipboardData.getData("text/plain");e=e.trim(),document.execCommand("inserttext",!1,e)}}function QW(t,e,n){let i,o,r,s,l,a,c,d,u,p,_,f,m,g,v,y,b,w,k,A,j,T,E,O,M,D,R,J,B,z,q,N,Y,x,ce,ue,Z=he,Q=()=>(Z(),Z=Ve(s,(_t=>n(74,ue=_t))),s),se,_e=he,Oe=()=>(_e(),_e=Ve(l,(_t=>n(75,se=_t))),l),W,ge=he,it=()=>(ge(),ge=Ve(B,(_t=>n(108,W=_t))),B),ye,rt=he,U=()=>(rt(),rt=Ve(R,(_t=>n(76,ye=_t))),R),de,pe=he,et=()=>(pe(),pe=Ve(T,(_t=>n(77,de=_t))),T),we,Ie=he,Xe=()=>(Ie(),Ie=Ve(D,(_t=>n(78,we=_t))),D),vt,Qe,fe=he,me=()=>(fe(),fe=Ve(j,(_t=>n(80,Qe=_t))),j),ve,Ge=he,gt=()=>(Ge(),Ge=Ve(A,(_t=>n(81,ve=_t))),A),ee,Je=he,We=()=>(Je(),Je=Ve(k,(_t=>n(82,ee=_t))),k),jt,zt=he,an=()=>(zt(),zt=Ve(w,(_t=>n(83,jt=_t))),w),sn,It=he,cn=()=>(It(),It=Ve(M,(_t=>n(84,sn=_t))),M),pn,Sn=he,Fn=()=>(Sn(),Sn=Ve(O,(_t=>n(85,pn=_t))),O),Re,lt=he,li=()=>(lt(),lt=Ve(b,(_t=>n(86,Re=_t))),b),wt,zn=he,Jt=()=>(zn(),zn=Ve(y,(_t=>n(87,wt=_t))),y),gn,Lt=he,$n=()=>(Lt(),Lt=Ve(v,(_t=>n(88,gn=_t))),v),hn,Ut=he,Kt=()=>(Ut(),Ut=Ve(g,(_t=>n(89,hn=_t))),g),Jn,Kn=he,fi=()=>(Kn(),Kn=Ve(m,(_t=>n(90,Jn=_t))),m),Ke,bt=he,ct=()=>(bt(),bt=Ve(f,(_t=>n(91,Ke=_t))),f),ht,qt=he,St=()=>(qt(),qt=Ve(_,(_t=>n(92,ht=_t))),_),Ot,nn=he,ei=()=>(nn(),nn=Ve(p,(_t=>n(93,Ot=_t))),p),Ft,xt=he,dt=()=>(xt(),xt=Ve(u,(_t=>n(94,Ft=_t))),u),Ye,bi=he,hi=()=>(bi(),bi=Ve(d,(_t=>n(95,Ye=_t))),d),Bn,eo=he,Tt=()=>(eo(),eo=Ve(c,(_t=>n(96,Bn=_t))),c),Wn,gi=he,rn=()=>(gi(),gi=Ve(a,(_t=>n(97,Wn=_t))),a),Nn,Bt=he,vn=()=>(Bt(),Bt=Ve(J,(_t=>n(98,Nn=_t))),J),un,En=he,Yn=()=>(En(),En=Ve(E,(_t=>n(46,un=_t))),E);t.$$.on_destroy.push((()=>Z())),t.$$.on_destroy.push((()=>_e())),t.$$.on_destroy.push((()=>ge())),t.$$.on_destroy.push((()=>rt())),t.$$.on_destroy.push((()=>pe())),t.$$.on_destroy.push((()=>Ie())),t.$$.on_destroy.push((()=>fe())),t.$$.on_destroy.push((()=>Ge())),t.$$.on_destroy.push((()=>Je())),t.$$.on_destroy.push((()=>zt())),t.$$.on_destroy.push((()=>It())),t.$$.on_destroy.push((()=>Sn())),t.$$.on_destroy.push((()=>lt())),t.$$.on_destroy.push((()=>zn())),t.$$.on_destroy.push((()=>Lt())),t.$$.on_destroy.push((()=>Ut())),t.$$.on_destroy.push((()=>Kn())),t.$$.on_destroy.push((()=>bt())),t.$$.on_destroy.push((()=>qt())),t.$$.on_destroy.push((()=>nn())),t.$$.on_destroy.push((()=>xt())),t.$$.on_destroy.push((()=>bi())),t.$$.on_destroy.push((()=>eo())),t.$$.on_destroy.push((()=>gi())),t.$$.on_destroy.push((()=>Bt())),t.$$.on_destroy.push((()=>En()));let{componentContext:Ce}=e,{layoutParams:bn=void 0}=e;const ft=ro(vo),C=ft.direction;ko(t,C,(_t=>n(79,vt=_t)));let Mt,An,Ni=!1,mi=null,Ne="",Ii="",oe=!1,ze="",P=12,X,ae="",$e,be="",Be="#000",re="",je="start",Me="center",Le="multi_line_text",ut="text",Ze,Ct="",fn=null,Ht="",Mn="",Qt="",Pn=!0,_n=1/0,Pt="off",jn="default",In="",Dn=!1,Un=!0,ri=0,yi=0;function yo(){n(55,ze=""),n(56,P=12),n(57,X=void 0),n(58,ae=""),n(59,$e=void 0),n(61,Be="#000"),n(62,re=""),n(63,je="left"),n(64,Me="center"),n(65,Le="multi_line_text"),n(10,ut="text"),n(11,Ze=void 0),n(4,Pn=!0),n(5,_n=1/0),n(13,Pt="off"),n(14,jn="default"),n(15,In=""),ri=0,yi=0}function Oi(_t){(_t==null?void 0:_t.type)==="fixed_length"?n(54,mi=NW(_t,Ce.logError,mi)):(_t==null?void 0:_t.type)==="currency"&&n(54,mi=RW(_t,Ce.logError,mi)),mi&&Fe()}function Yi(_t){if(!Array.isArray(W)||!_t)return!0;for(const ti of W)if(ti){if(ti.type==="regex")try{if(!new RegExp("^"+(ti.pattern||"")+"$").test(_t))return!1}catch($i){return Ce.logError(tt(new Error("Failed to create a regex"),{additional:{originalError:String($i)}})),!0}else if(ti.type==="expression"&&!ti.condition)return!1}return!0}function Ei(_t){const ti=_t.target;let $i=(q?ti.innerText:ti.value)||"";$i===`\n`&&($i=""),$i.length>_n&&($i=n(8,Ii=Ne),ti instanceof HTMLInputElement&&(ti.value=$i)),Ne!==$i&&(Yi($i)?(n(3,Ne=n(8,Ii=$i)),s.setValue($i),mi&&qe(),Et()):(n(3,Ne=n(8,Ii=$i)),ti instanceof HTMLInputElement&&(ti.value=$i),Fo().then((()=>{le(ri,yi)}))))}function dn(_t){Ne.length>=_n&&!ZW.has(_t.key)&&!(_t.ctrlKey||_t.altKey||_t.metaKey)&&_t.preventDefault()}function vi(_t){if(ri=ie()||0,yi=Se()||0,_t.ctrlKey||_t.metaKey||_t.altKey||_t.shiftKey)return;const ti=Ce.json.enter_key_actions;if(_t.key==="Enter"&&Array.isArray(ti)&&ti.length){const $i=Ce.getJsonWithVars(ti).filter((Co=>Co.log_id)).filter(Bo);_t.preventDefault(),Ce.execAnyActions($i)}}function Wt(){Ni=!1,setTimeout((()=>{Ni=!0}),250)}function L(){if(!Ni)if(An instanceof HTMLInputElement)An.select();else{const _t=window.getSelection(),ti=document.createRange();ti.selectNodeContents(An),_t&&(_t.removeAllRanges(),_t.addRange(ti))}}function ie(){return An instanceof HTMLInputElement?An.selectionStart===null?void 0:An.selectionStart:om(An,"start")}function Se(){return An instanceof HTMLInputElement?An.selectionEnd===null?void 0:An.selectionEnd:om(An,"end")}function le(_t,ti){if(An instanceof HTMLInputElement)n(2,An.selectionStart=_t,An),n(2,An.selectionEnd=ti,An);else{const $i=window.getSelection();if($i){$i.removeAllRanges();const Co=document.createRange();fu(An,Co,"start",_t),fu(An,Co,"end",ti),$i.addRange(Co)}}}async function qe(){if(!An||!mi)return;const _t=ie()||0,ti=Se()||0;mi.applyChangeFrom(Ne,ti===_t?ti:0),l.set(mi.rawValue),nc(s,ue=n(3,Ne=n(8,Ii=mi.value)),ue);const $i=mi.cursorPosition;await Fo(),document.activeElement===An&&le($i,$i)}async function Fe(){if(!An||!mi)return;mi.overrideRawValue(se),l.set(mi.rawValue),nc(s,ue=n(3,Ne=n(8,Ii=mi.value)),ue);const _t=mi.cursorPosition;await Fo(),document.activeElement===An&&le(_t,_t)}function Et(){const _t=Un;Un=!1;const ti=Ce.json.validators;if(!Array.isArray(ti)||!ti.length)return;const $i=Ce.getJsonWithVars(ti).filter((Di=>(Di.type==="regex"||Di.type==="expression")&&Di.label_id&&Di.variable)),Co=[];$i.forEach((Di=>{const Qo=Ce.getVariable(Di.variable);if(!Qo)return;if(Qo.getType()!=="boolean"){_t&&Ce.logError(tt(new Error("Incorrect variable type for the validator"),{additional:{variable:Di.variable}}));return}let Oo=!1;if(Ne===""&&(Di.allow_empty===!0||Di.allow_empty===1))Oo=!0;else if(Di.type==="regex"){if(!Di.pattern||typeof Di.pattern!="string")return;try{Oo=new RegExp("^"+Di.pattern+"$").test(Ne)}catch{_t&&Ce.logError(tt(new Error("Failed to create a regular expression using the validator pattern"),{additional:{pattern:Di.pattern}}));return}}else if(Di.type==="expression")Oo=Di.condition===!0||Di.condition===1;else return;if(Qo.setValue(Oo),!Oo){const zr=ft.getComponentId(Di.label_id);zr&&Co.push(zr)}})),n(15,In=Co.join(" "))}Sr((()=>{n(70,Dn=!0),An&&mi&&se&&(mi.overrideRawValue(se),nc(s,ue=n(3,Ne=n(8,Ii=mi.value)),ue))})),jo((()=>{n(70,Dn=!1),Mt&&(ft.unregisterFocusable(Mt),n(53,Mt=void 0))}));function Nt(_t){Wi[_t?"unshift":"push"]((()=>{An=_t,n(2,An)}))}function On(){Ii=this.innerText,n(8,Ii),n(54,mi),n(3,Ne),n(74,ue),n(5,_n),n(6,s),n(84,sn),n(71,o),n(0,Ce)}function yn(_t){Wi[_t?"unshift":"push"]((()=>{An=_t,n(2,An)}))}function wi(){Ii=this.innerText,n(8,Ii),n(54,mi),n(3,Ne),n(74,ue),n(5,_n),n(6,s),n(84,sn),n(71,o),n(0,Ce)}function Ao(_t){Wi[_t?"unshift":"push"]((()=>{An=_t,n(2,An)}))}return t.$$set=_t=>{"componentContext"in _t&&n(0,Ce=_t.componentContext),"layoutParams"in _t&&n(1,bn=_t.layoutParams)},t.$$.update=()=>{var _t;if(t.$$.dirty[0]&1&&n(73,i=Ce.origJson),t.$$.dirty[2]&2048&&i&&yo(),t.$$.dirty[0]&1&&n(71,o=Ce.json.text_variable),t.$$.dirty[0]&1&&n(72,r=(_t=Ce.json.mask)==null?void 0:_t.raw_text_variable),t.$$.dirty[0]&1|t.$$.dirty[2]&512&&Q(n(6,s=o&&Ce.getVariable(o,"string")||Ho("temp","string",""))),t.$$.dirty[0]&1|t.$$.dirty[2]&1024&&Oe(n(16,l=r&&Ce.getVariable(r,"string")||Ho("temp","string",""))),t.$$.dirty[0]&1&&rn(n(45,a=Ce.getDerivedFromVars(Ce.json.hint_text))),t.$$.dirty[0]&1&&Tt(n(44,c=Ce.getDerivedFromVars(Ce.json.hint_color))),t.$$.dirty[0]&1&&hi(n(43,d=Ce.getDerivedFromVars(Ce.json.font_size))),t.$$.dirty[0]&1&&dt(n(42,u=Ce.getDerivedFromVars(Ce.json.font_weight))),t.$$.dirty[0]&1&&ei(n(41,p=Ce.getDerivedFromVars(Ce.json.font_weight_value))),t.$$.dirty[0]&1&&St(n(40,_=Ce.getDerivedFromVars(Ce.json.font_family))),t.$$.dirty[0]&1&&ct(n(39,f=Ce.getDerivedFromVars(Ce.json.line_height))),t.$$.dirty[0]&1&&fi(n(38,m=Ce.getDerivedFromVars(Ce.json.letter_spacing))),t.$$.dirty[0]&1&&Kt(n(37,g=Ce.getDerivedFromVars(Ce.json.text_color))),t.$$.dirty[0]&1&&$n(n(36,v=Ce.getDerivedFromVars(Ce.json.highlight_color))),t.$$.dirty[0]&1&&Jt(n(35,y=Ce.getDerivedFromVars(Ce.json.text_alignment_horizontal))),t.$$.dirty[0]&1&&li(n(34,b=Ce.getDerivedFromVars(Ce.json.text_alignment_vertical))),t.$$.dirty[0]&1&&an(n(33,w=Ce.getDerivedFromVars(Ce.json.keyboard_type))),t.$$.dirty[0]&1&&We(n(32,k=Ce.getDerivedFromVars(Ce.json.mask))),t.$$.dirty[0]&1&>(n(31,A=Ce.getDerivedFromVars(Ce.json.max_visible_lines))),t.$$.dirty[0]&1&&me(n(30,j=Ce.getDerivedFromVars(Ce.json.paddings))),t.$$.dirty[0]&1&&et(n(29,T=Ce.getDerivedFromVars(Ce.json.accessibility))),t.$$.dirty[0]&1&&Yn(n(28,E=Ce.getDerivedFromVars(Ce.json.select_all_on_focus))),t.$$.dirty[0]&1&&Fn(n(27,O=Ce.getDerivedFromVars(Ce.json.is_enabled))),t.$$.dirty[0]&1&&cn(n(26,M=Ce.getDerivedFromVars(Ce.json.max_length))),t.$$.dirty[0]&1&&Xe(n(25,D=Ce.getDerivedFromVars(Ce.json.autocapitalization))),t.$$.dirty[0]&1&&U(n(24,R=Ce.getDerivedFromVars(Ce.json.enter_key_type))),t.$$.dirty[0]&1&&vn(n(23,J=Ce.getDerivedFromVars(Ce.json.validators))),t.$$.dirty[0]&1&&it(n(22,B=Ce.getDerivedFromVars(Ce.json.filters))),t.$$.dirty[0]&1|t.$$.dirty[2]&512&&(o?n(9,oe=!1):(n(9,oe=!0),Ce.logError(tt(new Error('Missing "text_variable" in "input"'))))),t.$$.dirty[2]&1048576&&Oi(ee),t.$$.dirty[0]&32|t.$$.dirty[2]&4194304&&n(5,_n=mr(sn,_n)),t.$$.dirty[0]&104|t.$$.dirty[1]&8388608|t.$$.dirty[2]&4096&&!mi&&Ne!==ue){let ti=ue;ti.length>_n&&(ti=ti.slice(0,_n),s.setValue(ti)),n(3,Ne=n(8,Ii=ti)),Et()}if(t.$$.dirty[1]&8388608|t.$$.dirty[2]&8192&&mi&&mi.rawValue!==se&&(Fe(),Et()),t.$$.dirty[2]&256|t.$$.dirty[3]&32&&Nn&&Dn&&Et(),t.$$.dirty[3]&16&&n(21,z=Wn),t.$$.dirty[1]&16777216|t.$$.dirty[3]&8&&n(55,ze=Ri(Bn,1,ze)),t.$$.dirty[1]&33554432|t.$$.dirty[3]&4&&n(56,P=mr(Ye,P)),t.$$.dirty[1]&67108864|t.$$.dirty[2]&1073741824|t.$$.dirty[3]&3&&(n(57,X=kl(Ft,Ot,X)),ht&&typeof ht=="string"?n(58,ae=ft.typefaceProvider(ht,{fontWeight:X||400})):n(58,ae="")),t.$$.dirty[1]&33554432|t.$$.dirty[2]&536870912){const ti=Ke;Zo(ti)&&n(59,$e=ti/P)}t.$$.dirty[2]&268435456&&od(Jn)&&n(60,be=At(Jn)),t.$$.dirty[1]&1073741824|t.$$.dirty[2]&134217728&&n(61,Be=Ri(hn,1,Be)),t.$$.dirty[2]&67108865&&n(62,re=Ri(gn,1,re)),t.$$.dirty[2]&33685506&&n(63,je=Uu(wt,vt,je)),t.$$.dirty[2]&16777220&&n(64,Me=Wu(Re,Me)),t.$$.dirty[0]&16|t.$$.dirty[2]&8388608&&n(4,Pn=br(pn,Pn)),t.$$.dirty[2]&3145728&&(jt&&jt in sm&&(n(10,ut=sm[jt]),n(65,Le=jt)),(ee==null?void 0:ee.type)==="currency"&&(n(10,ut=XW?"text":"tel"),n(11,Ze="decimal"))),t.$$.dirty[2]&8&&n(7,q=Le==="multi_line_text"),t.$$.dirty[1]&301989888|t.$$.dirty[2]&917536&&(Zo(ve)?n(66,Ct=`calc(${ve*($e||1.25)*(P/10)+"em"} + ${Uo(uo(Qe==null?void 0:Qe.top,0)+uo(Qe==null?void 0:Qe.bottom,0))})`):n(66,Ct=""),n(67,fn=ya(Qe||void 0,fn)),n(68,Ht=fn?qr({top:(Number(fn.top)||0)/P*10,right:(Number(vt==="ltr"?fn.end:fn.start)||Number(fn.right)||0)/P*10,bottom:(Number(fn.bottom)||0)/P*10,left:(Number(vt==="ltr"?fn.start:fn.end)||Number(fn.left)||0)/P*10},vt):""),n(69,Mn=fn?qr({top:(Number(fn.top)||0)/P*10,bottom:(Number(fn.bottom)||0)/P*10},vt):"")),t.$$.dirty[2]&65536&&(we==="all_characters"?n(13,Pt="characters"):we==="sentences"?n(13,Pt="sentences"):we==="words"?n(13,Pt="words"):(we==="none"||we==="auto")&&n(13,Pt="off")),t.$$.dirty[0]&1|t.$$.dirty[2]&32768&&(de!=null&&de.description?n(12,Qt=de.description):Ce.logError(tt(new Error('Missing accessibility "description" for input'),{level:"warn"}))),t.$$.dirty[2]&16384&&(ye==="default"||ye==="done"||ye==="go"||ye==="search"||ye==="send")&&n(14,jn=ye),t.$$.dirty[0]&128|t.$$.dirty[2]&7&&n(20,N={"highlight-color":!!re,multiline:q,"alignment-horizontal":je,"alignment-vertical":Me}),t.$$.dirty[1]&2097152e3|t.$$.dirty[2]&17&&n(19,Y={"--divkit-input-hint-color":ze,"--divkit-input-highlight-color":re,"--divkit-input-line-height":$e,"font-weight":X,"font-family":ae,"letter-spacing":be,color:Be,"max-height":Ct}),t.$$.dirty[1]&33554432|t.$$.dirty[2]&64&&n(18,x={"font-size":At(P),padding:Ht}),t.$$.dirty[1]&33554432|t.$$.dirty[2]&128&&n(17,ce={"font-size":At(P),padding:Mn}),t.$$.dirty[0]&13|t.$$.dirty[1]&4194304&&An&&Ce.json&&(Mt&&(ft.unregisterFocusable(Mt),n(53,Mt=void 0)),Ce.id&&!Ce.fakeElement&&(n(53,Mt=Ce.id),ft.registerFocusable(Mt,{focus(){An&&(An.focus(),le(Ne.length,Ne.length))}})))},[Ce,bn,An,Ne,Pn,_n,s,q,Ii,oe,ut,Ze,Qt,Pt,jn,In,l,ce,x,Y,N,z,B,J,R,D,M,O,E,T,j,A,k,w,b,y,v,g,m,f,_,p,u,d,c,a,un,C,Ei,dn,vi,Wt,L,Mt,mi,ze,P,X,ae,$e,be,Be,re,je,Me,Le,Ct,fn,Ht,Mn,Dn,o,r,i,ue,se,ye,de,we,vt,Qe,ve,ee,jt,sn,pn,Re,wt,gn,hn,Jn,Ke,ht,Ot,Ft,Ye,Bn,Wn,Nn,Nt,On,yn,wi,Ao]}class eK extends Qi{constructor(e){super(),xi(this,e,QW,GW,Pi,{componentContext:0,layoutParams:1},null,[-1,-1,-1,-1])}}const tK="divkit-ae558",nK="divkit-f3d02",iK="divkit-e7d17",oK="divkit-72083",ml={select:tK,"select__select-text":"divkit-c1610",select_hint:nK,select__select:iK,"select__select_has-custom-focused":"divkit-2e9c1","has-custom-focused":"divkit-d2243",select__option:oK};function lm(t,e,n){const i=t.slice();return i[58]=e[n],i}function rK(t){let e,n;return e=new Ur({props:{componentContext:t[0]}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o[0]&1&&(r.componentContext=i[0]),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function sK(t){let e,n;return e=new qo({props:{cls:kn("select",ml,t[11]),style:t[10],customDescription:!0,customActions:"select",customPaddings:!0,hasInnerFocusable:!0,componentContext:t[0],layoutParams:t[1],$$slots:{default:[lK,({hasCustomFocus:i,focusHandler:o,blurHandler:r})=>({55:i,56:o,57:r}),({hasCustomFocus:i,focusHandler:o,blurHandler:r})=>[0,(i?16777216:0)|(o?33554432:0)|(r?67108864:0)]]},$$scope:{ctx:t}}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o[0]&2048&&(r.cls=kn("select",ml,i[11])),o[0]&1024&&(r.style=i[10]),o[0]&1&&(r.componentContext=i[0]),o[0]&2&&(r.layoutParams=i[1]),o[0]&16778172|o[1]&1191182336&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function am(t){let e,n=(t[58].text||t[58].value)+"",i,o;return{c(){e=Zt("option"),i=jr(n),K(e,"class",ml.select__option),e.__value=o=t[58].value,w_(e,e.__value)},m(r,s){st(r,e,s),Ln(e,i)},p(r,s){s[0]&16&&n!==(n=(r[58].text||r[58].value)+"")&&ws(i,n),s[0]&16&&o!==(o=r[58].value)&&(e.__value=o,w_(e,e.__value))},d(r){r&&ot(e)}}}function lK(t){let e,n=(t[3]||t[24]||"")+"",i,o,r,s,l,a,c,d,u=ci(t[4]),p=[];for(let _=0;_<u.length;_+=1)p[_]=am(lm(t,u,_));return{c(){e=Zt("span"),i=jr(n),r=Ai(),s=Zt("select");for(let _=0;_<p.length;_+=1)p[_].c();K(e,"class",ml["select__select-text"]),K(e,"style",o=qn(t[9])),K(e,"aria-hidden","true"),K(s,"class",l=kn("select__select",ml,{"has-custom-focus":t[55]})),K(s,"aria-label",t[7]),K(s,"style",a=qn(t[8])),t[5]===void 0&&lr((()=>t[52].call(s)))},m(_,f){st(_,e,f),Ln(e,i),st(_,r,f),st(_,s,f);for(let m=0;m<p.length;m+=1)p[m]&&p[m].m(s,null);t[51](s),$_(s,t[5],!0),c||(d=[en(s,"change",t[52]),en(s,"focus",(function(){Fi(t[56])&&t[56].apply(this,arguments)})),en(s,"blur",(function(){Fi(t[57])&&t[57].apply(this,arguments)}))],c=!0)},p(_,f){if(t=_,f[0]&16777224&&n!==(n=(t[3]||t[24]||"")+"")&&ws(i,n),f[0]&512&&o!==(o=qn(t[9]))&&K(e,"style",o),f[0]&16){u=ci(t[4]);let m;for(m=0;m<u.length;m+=1){const g=lm(t,u,m);p[m]?p[m].p(g,f):(p[m]=am(g),p[m].c(),p[m].m(s,null))}for(;m<p.length;m+=1)p[m].d(1);p.length=u.length}f[1]&16777216&&l!==(l=kn("select__select",ml,{"has-custom-focus":t[55]}))&&K(s,"class",l),f[0]&128&&K(s,"aria-label",t[7]),f[0]&256&&a!==(a=qn(t[8]))&&K(s,"style",a),f[0]&48&&$_(s,t[5])},d(_){_&&(ot(e),ot(r),ot(s)),To(p,_),t[51](null),c=!1,so(d)}}}function aK(t){let e,n,i,o;const r=[sK,rK],s=[];function l(a,c){return a[6]?1:0}return~(e=l(t))&&(n=s[e]=r[e](t)),{c(){n&&n.c(),i=si()},m(a,c){~e&&s[e].m(a,c),st(a,i,c),o=!0},p(a,c){let d=e;e=l(a),e===d?~e&&s[e].p(a,c):(n&&(ui(),nt(s[d],1,1,(()=>{s[d]=null})),pi()),~e?(n=s[e],n?n.p(a,c):(n=s[e]=r[e](a),n.c()),Ue(n,1),n.m(i.parentNode,i)):n=null)},i(a){o||(Ue(n),o=!0)},o(a){nt(n),o=!1},d(a){a&&ot(i),~e&&s[e].d(a)}}}function cK(t,e,n){let i,o,r,s,l,a,c,d,u,p,_,f,m,g,v,y,b,w,k,A,j,T=he,E=()=>(T(),T=Ve(y,(Lt=>n(40,j=Lt))),y),O,M=he,D=()=>(M(),M=Ve(v,(Lt=>n(41,O=Lt))),v),R,J=he,B=()=>(J(),J=Ve(g,(Lt=>n(42,R=Lt))),g),z,q=he,N=()=>(q(),q=Ve(m,(Lt=>n(43,z=Lt))),m),Y,x=he,ce=()=>(x(),x=Ve(f,(Lt=>n(44,Y=Lt))),f),ue,Z=he,Q=()=>(Z(),Z=Ve(_,(Lt=>n(45,ue=Lt))),_),se,_e=he,Oe=()=>(_e(),_e=Ve(p,(Lt=>n(46,se=Lt))),p),W,ge=he,it=()=>(ge(),ge=Ve(u,(Lt=>n(47,W=Lt))),u),ye,rt=he,U=()=>(rt(),rt=Ve(d,(Lt=>n(48,ye=Lt))),d),de,pe,et=he,we=()=>(et(),et=Ve(a,(Lt=>n(50,pe=Lt))),a),Ie,Xe=he,vt=()=>(Xe(),Xe=Ve(l,(Lt=>n(5,Ie=Lt))),l),Qe,fe=he,me=()=>(fe(),fe=Ve(c,(Lt=>n(24,Qe=Lt))),c);t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>x())),t.$$.on_destroy.push((()=>Z())),t.$$.on_destroy.push((()=>_e())),t.$$.on_destroy.push((()=>ge())),t.$$.on_destroy.push((()=>rt())),t.$$.on_destroy.push((()=>et())),t.$$.on_destroy.push((()=>Xe())),t.$$.on_destroy.push((()=>fe()));let{componentContext:ve}=e,{layoutParams:Ge=void 0}=e;const gt=ro(vo),ee=gt.direction;ko(t,ee,(Lt=>n(49,de=Lt)));let Je,We,jt=!1,zt="",an=null,sn="",It="rgba(0,0,0,.45)",cn=12,pn,Sn="",Fn,Re="",lt="#000",li="",wt;function zn(){n(27,an=null),n(29,It="rgba(0,0,0,.45)"),n(30,cn=12),n(31,pn=void 0),n(32,Sn=""),n(33,Fn=void 0),n(34,Re=""),n(35,lt="#000"),n(7,li="")}jo((()=>{Je&&(gt.unregisterFocusable(Je),n(26,Je=void 0))}));function Jt(Lt){Wi[Lt?"unshift":"push"]((()=>{We=Lt,n(2,We)}))}function gn(){Ie=Jq(this),l.set(Ie),n(4,s),n(38,r),n(0,ve)}return t.$$set=Lt=>{"componentContext"in Lt&&n(0,ve=Lt.componentContext),"layoutParams"in Lt&&n(1,Ge=Lt.layoutParams)},t.$$.update=()=>{if(t.$$.dirty[0]&1&&n(39,i=ve.origJson),t.$$.dirty[1]&256&&i&&zn(),t.$$.dirty[0]&1&&n(37,o=ve.json.value_variable),t.$$.dirty[0]&1&&n(38,r=ve.json.options),t.$$.dirty[1]&128&&n(4,s=Array.isArray(r)&&r.filter((Lt=>typeof Lt.value=="string"))||[]),t.$$.dirty[0]&1|t.$$.dirty[1]&64&&vt(n(23,l=o&&ve.getVariable(o,"string")||Ho("temp","string",""))),t.$$.dirty[0]&1&&we(n(22,a=ve.getDerivedFromVars(ve.json.paddings))),t.$$.dirty[0]&1&&me(n(21,c=ve.getDerivedFromVars(ve.json.hint_text))),t.$$.dirty[0]&1&&U(n(20,d=ve.getDerivedFromVars(ve.json.hint_color))),t.$$.dirty[0]&1&&it(n(19,u=ve.getDerivedFromVars(ve.json.font_size))),t.$$.dirty[0]&1&&Oe(n(18,p=ve.getDerivedFromVars(ve.json.font_weight))),t.$$.dirty[0]&1&&Q(n(17,_=ve.getDerivedFromVars(ve.json.font_weight_value))),t.$$.dirty[0]&1&&ce(n(16,f=ve.getDerivedFromVars(ve.json.font_family))),t.$$.dirty[0]&1&&N(n(15,m=ve.getDerivedFromVars(ve.json.line_height))),t.$$.dirty[0]&1&&B(n(14,g=ve.getDerivedFromVars(ve.json.letter_spacing))),t.$$.dirty[0]&1&&D(n(13,v=ve.getDerivedFromVars(ve.json.text_color))),t.$$.dirty[0]&1&&E(n(12,y=ve.getDerivedFromVars(ve.json.accessibility))),t.$$.dirty[0]&17&&(Array.isArray(s)&&s.length||ve.logError(tt(new Error('Empty selection "items" in "select"')))),t.$$.dirty[0]&1|t.$$.dirty[1]&64&&(o?n(6,jt=!1):(n(6,jt=!0),ve.logError(tt(new Error('Missing "value_variable" in "select"'))))),t.$$.dirty[0]&49|t.$$.dirty[1]&32){const Lt=s.find(($n=>$n.value===Ie));Lt?n(3,zt=(typeof Lt.text=="string"?Lt.text:Lt.value)||""):(n(3,zt=""),Ie&&wt!==Ie&&(n(36,wt=Ie),ve.logError(tt(new Error('Value from the variable was not found in the selection items for "select"')))))}if(t.$$.dirty[0]&1073741824|t.$$.dirty[1]&65536&&n(30,cn=mr(W,cn)),t.$$.dirty[0]&1207959552|t.$$.dirty[1]&786432&&(n(27,an=ya(pe||void 0,an)),n(28,sn=an?qr({top:(Number(an.top)||0)/cn*10,right:(Number(de==="ltr"?an.end:an.start)||Number(an.right)||0)/cn*10,bottom:(Number(an.bottom)||0)/cn*10,left:(Number(de==="ltr"?an.start:an.end)||Number(an.left)||0)/cn*10},de):"")),t.$$.dirty[0]&536870912|t.$$.dirty[1]&131072&&n(29,It=Ri(ye,1,It)),t.$$.dirty[1]&57345&&(n(31,pn=kl(se,ue,pn)),Y&&typeof Y=="string"?n(32,Sn=gt.typefaceProvider(Y,{fontWeight:pn||400})):n(32,Sn="")),t.$$.dirty[0]&1073741824|t.$$.dirty[1]&4096){const Lt=z;Zo(Lt)&&n(33,Fn=Lt/cn)}t.$$.dirty[0]&1073741824|t.$$.dirty[1]&2048&&od(R)&&n(34,Re=At(R/cn*10)),t.$$.dirty[1]&1040&&n(35,lt=Ri(O,1,lt)),t.$$.dirty[0]&1|t.$$.dirty[1]&512&&(j!=null&&j.description?n(7,li=j.description):ve.logError(tt(new Error('Missing accessibility "description" for select'),{level:"warn"}))),t.$$.dirty[0]&8&&n(11,b={hint:!zt}),t.$$.dirty[0]&536870912|t.$$.dirty[1]&19&&n(10,w={"--divkit-input-hint-color":It,"font-weight":pn,"font-family":Sn,color:lt}),t.$$.dirty[0]&1342177280|t.$$.dirty[1]&12&&n(9,k={padding:sn,"font-size":At(cn),"line-height":Fn,"letter-spacing":Re}),t.$$.dirty[0]&1073741824|t.$$.dirty[1]&12&&n(8,A={"font-size":At(cn),"line-height":Fn,"letter-spacing":Re}),t.$$.dirty[0]&67108869&&ve.json&&We&&(Je&&(gt.unregisterFocusable(Je),n(26,Je=void 0)),ve.id&&!ve.fakeElement&&(n(26,Je=ve.id),gt.registerFocusable(Je,{focus(){We&&We.focus()}})))},[ve,Ge,We,zt,s,Ie,jt,li,A,k,w,b,y,v,g,m,f,_,p,u,d,c,a,l,Qe,ee,Je,an,sn,It,cn,pn,Sn,Fn,Re,lt,wt,o,r,i,j,O,R,z,Y,ue,se,W,ye,de,pe,Jt,gn]}class dK extends Qi{constructor(e){super(),xi(this,e,cK,aK,Pi,{componentContext:0,layoutParams:1},null,[-1,-1])}}const uK="divkit-b382f",pK="divkit-2205d",aa={video__video:uK,"video__aspect-wrapper":"divkit-04542",video_absolute:pK};function _K(t,e){return Array.isArray(t)&&t.length?t.filter((n=>(n==null?void 0:n.type)==="video_source"&&typeof n.url=="string"&&typeof n.mime_type=="string")).map((n=>{const i={src:n.url};return n.mime_type&&(i.type=n.mime_type),i})):e}function fK(t){return t==="fill"?"cover":t==="no_scale"?"none":"contain"}function cm(t,e,n){const i=t.slice();return i[52]=e[n],i}function dm(t,e,n){const i=t.slice();return i[52]=e[n],i}function mK(t){let e,n;return e=new Ur({props:{componentContext:t[0]}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o[0]&1&&(r.componentContext=i[0]),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function gK(t){let e,n;return e=new qo({props:{cls:kn("video",aa,t[12]),customActions:"video",componentContext:t[0],layoutParams:t[1],heightByAspect:t[10]!=="0",$$slots:{default:[bK]},$$scope:{ctx:t}}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o[0]&4096&&(r.cls=kn("video",aa,i[12])),o[0]&1&&(r.componentContext=i[0]),o[0]&2&&(r.layoutParams=i[1]),o[0]&1024&&(r.heightByAspect=i[10]!=="0"),o[0]&4088|o[1]&67108864&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function hK(t){let e,n,i,o,r,s=ci(t[4]),l=[];for(let a=0;a<s.length;a+=1)l[a]=pm(cm(t,s,a));return{c(){e=Zt("video");for(let a=0;a<l.length;a+=1)l[a].c();K(e,"class",aa.video__video),K(e,"style",n=qn(t[11])),e.playsInline=!0,e.loop=t[5],e.autoplay=t[6],e.muted=t[7],K(e,"poster",t[9]),K(e,"preload",i=t[8]?"metadata":"auto")},m(a,c){st(a,e,c);for(let d=0;d<l.length;d+=1)l[d]&&l[d].m(e,null);t[46](e),o||(r=[en(e,"timeupdate",t[23]),en(e,"ended",t[24]),en(e,"playing",t[25]),en(e,"pause",t[26]),en(e,"waiting",t[27]),en(e,"error",t[28])],o=!0)},p(a,c){if(c[0]&268435472){s=ci(a[4]);let d;for(d=0;d<s.length;d+=1){const u=cm(a,s,d);l[d]?l[d].p(u,c):(l[d]=pm(u),l[d].c(),l[d].m(e,null))}for(;d<l.length;d+=1)l[d].d(1);l.length=s.length}c[0]&2048&&n!==(n=qn(a[11]))&&K(e,"style",n),c[0]&32&&(e.loop=a[5]),c[0]&64&&(e.autoplay=a[6]),c[0]&128&&(e.muted=a[7]),c[0]&512&&K(e,"poster",a[9]),c[0]&256&&i!==(i=a[8]?"metadata":"auto")&&K(e,"preload",i)},d(a){a&&ot(e),To(l,a),t[46](null),o=!1,so(r)}}}function vK(t){let e,n,i,o,r=`${t[10]}%`,s,l,a=ci(t[4]),c=[];for(let d=0;d<a.length;d+=1)c[d]=fm(dm(t,a,d));return{c(){e=Zt("div"),n=Zt("video");for(let d=0;d<c.length;d+=1)c[d].c();K(n,"class",aa.video__video),K(n,"style",i=qn(t[11])),n.playsInline=!0,n.loop=t[5],n.autoplay=t[6],n.muted=t[7],K(n,"poster",t[9]),K(n,"preload",o=t[8]?"metadata":"auto"),K(e,"class",aa["video__aspect-wrapper"]),He(e,"padding-bottom",r)},m(d,u){st(d,e,u),Ln(e,n);for(let p=0;p<c.length;p+=1)c[p]&&c[p].m(n,null);t[45](n),s||(l=[en(n,"timeupdate",t[23]),en(n,"ended",t[24]),en(n,"playing",t[25]),en(n,"pause",t[26]),en(n,"waiting",t[27]),en(n,"error",t[28])],s=!0)},p(d,u){if(u[0]&268435472){a=ci(d[4]);let p;for(p=0;p<a.length;p+=1){const _=dm(d,a,p);c[p]?c[p].p(_,u):(c[p]=fm(_),c[p].c(),c[p].m(n,null))}for(;p<c.length;p+=1)c[p].d(1);c.length=a.length}u[0]&2048&&i!==(i=qn(d[11]))&&K(n,"style",i),u[0]&32&&(n.loop=d[5]),u[0]&64&&(n.autoplay=d[6]),u[0]&128&&(n.muted=d[7]),u[0]&512&&K(n,"poster",d[9]),u[0]&256&&o!==(o=d[8]?"metadata":"auto")&&K(n,"preload",o),u[0]&1024&&r!==(r=`${d[10]}%`)&&He(e,"padding-bottom",r)},d(d){d&&ot(e),To(c,d),t[45](null),s=!1,so(l)}}}function um(t){let e,n,i,o,r;return{c(){e=Zt("source"),sr(e.src,n=t[52].src)||K(e,"src",n),K(e,"type",i=t[52].type)},m(s,l){st(s,e,l),o||(r=en(e,"error",t[28]),o=!0)},p(s,l){l[0]&16&&!sr(e.src,n=s[52].src)&&K(e,"src",n),l[0]&16&&i!==(i=s[52].type)&&K(e,"type",i)},d(s){s&&ot(e),o=!1,r()}}}function pm(t){let e=t[52],n,i=um(t);return{c(){i.c(),n=si()},m(o,r){i.m(o,r),st(o,n,r)},p(o,r){r[0]&16&&Pi(e,e=o[52])?(i.d(1),i=um(o),i.c(),i.m(n.parentNode,n)):i.p(o,r)},d(o){o&&ot(n),i.d(o)}}}function _m(t){let e,n,i,o,r;return{c(){e=Zt("source"),sr(e.src,n=t[52].src)||K(e,"src",n),K(e,"type",i=t[52].type)},m(s,l){st(s,e,l),o||(r=en(e,"error",t[28]),o=!0)},p(s,l){l[0]&16&&!sr(e.src,n=s[52].src)&&K(e,"src",n),l[0]&16&&i!==(i=s[52].type)&&K(e,"type",i)},d(s){s&&ot(e),o=!1,r()}}}function fm(t){let e=t[52],n,i=_m(t);return{c(){i.c(),n=si()},m(o,r){i.m(o,r),st(o,n,r)},p(o,r){r[0]&16&&Pi(e,e=o[52])?(i.d(1),i=_m(o),i.c(),i.m(n.parentNode,n)):i.p(o,r)},d(o){o&&ot(n),i.d(o)}}}function bK(t){let e;function n(r,s){return r[10]!=="0"?vK:hK}let i=n(t),o=i(t);return{c(){o.c(),e=si()},m(r,s){o.m(r,s),st(r,e,s)},p(r,s){i===(i=n(r))&&o?o.p(r,s):(o.d(1),o=i(r),o&&(o.c(),o.m(e.parentNode,e)))},d(r){r&&ot(e),o.d(r)}}}function yK(t){let e,n,i,o;const r=[gK,mK],s=[];function l(a,c){return a[2]?1:0}return~(e=l(t))&&(n=s[e]=r[e](t)),{c(){n&&n.c(),i=si()},m(a,c){~e&&s[e].m(a,c),st(a,i,c),o=!0},p(a,c){let d=e;e=l(a),e===d?~e&&s[e].p(a,c):(n&&(ui(),nt(s[d],1,1,(()=>{s[d]=null})),pi()),~e?(n=s[e],n?n.p(a,c):(n=s[e]=r[e](a),n.c()),Ue(n,1),n.m(i.parentNode,i)):n=null)},i(a){o||(Ue(n),o=!0)},o(a){nt(n),o=!1},d(a){a&&ot(i),~e&&s[e].d(a)}}}function wK(t,e,n){let i,o,r,s,l,a,c,d,u,p,_,f,m,g,v,y=he,b=()=>(y(),y=Ve(l,(Re=>n(35,v=Re))),l),w,k=he,A=()=>(k(),k=Ve(f,(Re=>n(36,w=Re))),f),j,T=he,E=()=>(T(),T=Ve(_,(Re=>n(37,j=Re))),_),O,M=he,D=()=>(M(),M=Ve(p,(Re=>n(38,O=Re))),p),R,J=he,B=()=>(J(),J=Ve(u,(Re=>n(39,R=Re))),u),z,q=he,N=()=>(q(),q=Ve(d,(Re=>n(40,z=Re))),d),Y,x=he,ce=()=>(x(),x=Ve(c,(Re=>n(41,Y=Re))),c),ue,Z=he,Q=()=>(Z(),Z=Ve(a,(Re=>n(42,ue=Re))),a),se,_e=he,Oe=()=>(_e(),_e=Ve(s,(Re=>n(43,se=Re))),s),W,ge=he,it=()=>(ge(),ge=Ve(r,(Re=>n(44,W=Re))),r);t.$$.on_destroy.push((()=>y())),t.$$.on_destroy.push((()=>k())),t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>x())),t.$$.on_destroy.push((()=>Z())),t.$$.on_destroy.push((()=>_e())),t.$$.on_destroy.push((()=>ge()));let{componentContext:ye}=e,{layoutParams:rt=void 0}=e;const U=ro(vo);let de,pe=!1,et=!1,we,Ie=[],Xe=!1,vt=!1,Qe=!1,fe=!1,me,ve="fit",Ge="0",gt=!1,ee;function Je(Re){if(et){et=!1;return}we&&n(3,we.currentTime=Number(Re)/1e3,we)}function We(){we==null||we.pause()}function jt(){const Re=we==null?void 0:we.play();Re&&Re.catch((lt=>{ye.logError(tt(new Error("Video playing error"),{level:"error",additional:{originalText:String(lt)}}))}))}function zt(){we&&(et=!0,o.setValue(Math.floor(we.currentTime*1e3)))}function an(){const Re=ye.getJsonWithVars(ye.json.end_actions);ye.execAnyActions(Re)}function sn(){const Re=ye.getJsonWithVars(ye.json.resume_actions);ye.execAnyActions(Re)}function It(){const Re=ye.getJsonWithVars(ye.json.pause_actions);ye.execAnyActions(Re)}function cn(){const Re=ye.getJsonWithVars(ye.json.buffering_actions);ye.execAnyActions(Re)}function pn(){const Re=ye.getJsonWithVars(ye.json.fatal_actions);ye.execAnyActions(Re)}jo((()=>{de&&(U.unregisterInstance(de),n(29,de=void 0)),ee&&(ee(),n(32,ee=void 0))}));function Sn(Re){Wi[Re?"unshift":"push"]((()=>{we=Re,n(3,we)}))}function Fn(Re){Wi[Re?"unshift":"push"]((()=>{we=Re,n(3,we)}))}return t.$$set=Re=>{"componentContext"in Re&&n(0,ye=Re.componentContext),"layoutParams"in Re&&n(1,rt=Re.layoutParams)},t.$$.update=()=>{if(t.$$.dirty[0]&1&&ye.json&&(n(5,Xe=!1),n(6,vt=!1),n(7,Qe=!1),n(8,fe=!1),n(9,me=void 0),n(30,ve="fit"),n(31,gt=!1)),t.$$.dirty[0]&1&&n(34,i=ye.json.elapsed_time_variable),t.$$.dirty[0]&1|t.$$.dirty[1]&8&&n(33,o=i&&ye.getVariable(i,"integer")||Ho("temp","integer",0)),t.$$.dirty[1]&6&&o&&(ee&&ee(),n(32,ee=o.subscribe(Je))),t.$$.dirty[0]&1&&it(n(22,r=ye.getDerivedFromVars(ye.json.video_sources))),t.$$.dirty[0]&1&&Oe(n(21,s=ye.getDerivedFromVars(ye.json.repeatable))),t.$$.dirty[0]&1&&b(n(20,l=ye.getDerivedFromVars(ye.json.autostart))),t.$$.dirty[0]&1&&Q(n(19,a=ye.getDerivedFromVars(ye.json.muted))),t.$$.dirty[0]&1&&ce(n(18,c=ye.getDerivedFromVars(ye.json.preload_required))),t.$$.dirty[0]&1&&N(n(17,d=ye.getDerivedFromVars(ye.json.preview))),t.$$.dirty[0]&1&&B(n(16,u=ye.getDerivedFromVars(ye.json.scale))),t.$$.dirty[0]&1&&D(n(15,p=ye.getDerivedFromVars(ye.json.aspect))),t.$$.dirty[0]&1&&E(n(14,_=ye.getDerivedFromVars(ye.json.width))),t.$$.dirty[0]&1&&A(n(13,f=ye.getDerivedFromVars(ye.json.height))),t.$$.dirty[0]&17|t.$$.dirty[1]&8192&&(n(4,Ie=_K(W,Ie)),Ie.length?n(2,pe=!1):(n(2,pe=!0),ye.logError(tt(new Error('Missing "video_sources" in "video"'))))),t.$$.dirty[0]&32|t.$$.dirty[1]&4096&&n(5,Xe=br(se,Xe)),t.$$.dirty[0]&64|t.$$.dirty[1]&16&&n(6,vt=br(v,vt)),t.$$.dirty[0]&128|t.$$.dirty[1]&2048&&n(7,Qe=br(ue,Qe)),t.$$.dirty[0]&256|t.$$.dirty[1]&1024&&n(8,fe=br(Y,fe)),t.$$.dirty[0]&512|t.$$.dirty[1]&512&&n(9,me=typeof z=="string"?h2(z):me),t.$$.dirty[0]&1073741824|t.$$.dirty[1]&256&&n(30,ve=fK(R)||ve),t.$$.dirty[1]&224){const Re=O==null?void 0:O.ratio;Re&&Zo(Re)?(n(10,Ge=(100/Number(Re)).toFixed(2)),n(31,gt=!0)):(n(10,Ge="0"),n(31,gt=(!j||j.type==="match_parent")&&(w==null?void 0:w.type)==="match_parent"))}t.$$.dirty[0]&536870917&&ye.json&&(de&&(U.unregisterInstance(de),n(29,de=void 0)),ye.id&&!pe&&!ye.fakeElement&&(n(29,de=ye.id),U.registerInstance(de,{pause:We,start:jt}))),t.$$.dirty[0]&9|t.$$.dirty[1]&16&&ye.json&&v&&we&&jt(),t.$$.dirty[1]&1&&n(12,m={absolute:gt}),t.$$.dirty[0]&1073741824&&n(11,g={"object-fit":ve})},[ye,rt,pe,we,Ie,Xe,vt,Qe,fe,me,Ge,g,m,f,_,p,u,d,c,a,l,s,r,zt,an,sn,It,cn,pn,de,ve,gt,ee,o,i,v,w,j,O,R,z,Y,ue,se,W,Sn,Fn]}class $K extends Qi{constructor(e){super(),xi(this,e,wK,yK,Pi,{componentContext:0,layoutParams:1},null,[-1,-1])}}const kK="divkit-adc72",jK="divkit-385c4",SK="divkit-3c049",TK="divkit-ed159",CK="divkit-f630c",js={switch:"divkit-03a3a",switch__tumbler:kK,switch__tumbler_checked:jK,switch_disabled:SK,switch__thumb:TK,switch__input:CK};function Ed(t){return t===!0||t===1}function zK(t){let e,n;return e=new Ur({props:{componentContext:t[0]}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o&1&&(r.componentContext=i[0]),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function EK(t){let e,n;return e=new qo({props:{cls:kn("switch",js,t[9]),style:t[8],customDescription:!0,customActions:"switch",hasInnerFocusable:!0,componentContext:t[0],layoutParams:t[1],$$slots:{default:[AK,({focusHandler:i,blurHandler:o,hasCustomFocus:r})=>({26:i,27:o,28:r}),({focusHandler:i,blurHandler:o,hasCustomFocus:r})=>(i?67108864:0)|(o?134217728:0)|(r?268435456:0)]},$$scope:{ctx:t}}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o&512&&(r.cls=kn("switch",js,i[9])),o&256&&(r.style=i[8]),o&1&&(r.componentContext=i[0]),o&2&&(r.layoutParams=i[1]),o&1006633052&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function AK(t){let e,n,i,o,r,s,l,a,c;return{c(){e=Zt("div"),n=Zt("div"),o=Ai(),r=Zt("input"),K(n,"class",js.switch__thumb),K(e,"class",i=kn("switch__tumbler",js,{checked:t[3]})),K(r,"type","checkbox"),K(r,"class",s=kn("switch__input",js,{"has-custom-focus":t[28]})),K(r,"autocomplete","off"),K(r,"aria-label",t[6]),r.disabled=l=!t[4],r.checked=t[3]},m(d,u){st(d,e,u),Ln(e,n),st(d,o,u),st(d,r,u),t[23](r),a||(c=[en(r,"input",t[13]),en(r,"focus",(function(){Fi(t[26])&&t[26].apply(this,arguments)})),en(r,"blur",(function(){Fi(t[27])&&t[27].apply(this,arguments)}))],a=!0)},p(d,u){t=d,u&8&&i!==(i=kn("switch__tumbler",js,{checked:t[3]}))&&K(e,"class",i),u&268435456&&s!==(s=kn("switch__input",js,{"has-custom-focus":t[28]}))&&K(r,"class",s),u&64&&K(r,"aria-label",t[6]),u&16&&l!==(l=!t[4])&&(r.disabled=l),u&8&&(r.checked=t[3])},d(d){d&&(ot(e),ot(o),ot(r)),t[23](null),a=!1,so(c)}}}function OK(t){let e,n,i,o;const r=[EK,zK],s=[];function l(a,c){return a[5]?1:0}return~(e=l(t))&&(n=s[e]=r[e](t)),{c(){n&&n.c(),i=si()},m(a,c){~e&&s[e].m(a,c),st(a,i,c),o=!0},p(a,[c]){let d=e;e=l(a),e===d?~e&&s[e].p(a,c):(n&&(ui(),nt(s[d],1,1,(()=>{s[d]=null})),pi()),~e?(n=s[e],n?n.p(a,c):(n=s[e]=r[e](a),n.c()),Ue(n,1),n.m(i.parentNode,i)):n=null)},i(a){o||(Ue(n),o=!0)},o(a){nt(n),o=!1},d(a){a&&ot(i),~e&&s[e].d(a)}}}function MK(t,e,n){let i,o,r,s,l,a,c,d,u,p=he,_=()=>(p(),p=Ve(s,(ce=>n(19,u=ce))),s),f,m=he,g=()=>(m(),m=Ve(a,(ce=>n(20,f=ce))),a),v,y=he,b=()=>(y(),y=Ve(l,(ce=>n(21,v=ce))),l),w,k=he,A=()=>(k(),k=Ve(r,(ce=>n(22,w=ce))),r);t.$$.on_destroy.push((()=>p())),t.$$.on_destroy.push((()=>m())),t.$$.on_destroy.push((()=>y())),t.$$.on_destroy.push((()=>k()));let{componentContext:j}=e,{layoutParams:T=void 0}=e;const E=ro(vo);let O,M,D=!1,R=!1,J="",B=!0,z="#129386",q="#1293864c";function N(){n(4,B=!0),n(15,z="#129386"),n(16,q="#1293864c")}function Y(ce){n(3,D=ce.target.checked),r.setValue(D)}jo((()=>{O&&(E.unregisterFocusable(O),n(14,O=void 0))}));function x(ce){Wi[ce?"unshift":"push"]((()=>{M=ce,n(2,M)}))}return t.$$set=ce=>{"componentContext"in ce&&n(0,j=ce.componentContext),"layoutParams"in ce&&n(1,T=ce.layoutParams)},t.$$.update=()=>{if(t.$$.dirty&1&&n(18,i=j.origJson),t.$$.dirty&262144&&i&&N(),t.$$.dirty&1&&n(17,o=j.json.is_on_variable),t.$$.dirty&131073&&A(n(7,r=o&&j.getVariable(o,"boolean")||Ho("temp","boolean",!1))),t.$$.dirty&1&&_(n(12,s=j.getDerivedFromVars(j.json.accessibility))),t.$$.dirty&1&&b(n(11,l=j.getDerivedFromVars(j.json.is_enabled))),t.$$.dirty&1&&g(n(10,a=j.getDerivedFromVars(j.json.on_color))),t.$$.dirty&131073&&(o?n(5,R=!1):(n(5,R=!0),j.logError(tt(new Error('Missing "is_on_variable" in "switch"'))))),t.$$.dirty&4194312&&Ed(D)!==Ed(w)&&n(3,D=Ed(w)),t.$$.dirty&2097168&&n(4,B=br(v,B)),t.$$.dirty&1081344&&(n(15,z=Ri(f,1,z)),typeof f=="string")){const ce=ns(f);ce&&(ce.a*=.3,n(16,q=Ou(ce)))}t.$$.dirty&524289&&(u!=null&&u.description?n(6,J=u.description):j.logError(tt(new Error('Missing accessibility "description" for switch'),{level:"warn"}))),t.$$.dirty&16&&n(9,c={disabled:!B}),t.$$.dirty&98304&&n(8,d={"--divkit-switch-on-color":z,"--divkit-switch-on-sub-color":q}),t.$$.dirty&16389&&M&&j.json&&(O&&(E.unregisterFocusable(O),n(14,O=void 0)),j.id&&!j.fakeElement&&(n(14,O=j.id),E.registerFocusable(O,{focus(){M&&M.focus()}})))},[j,T,M,D,B,R,J,r,d,c,a,l,s,Y,O,z,q,o,i,u,f,v,w,x]}class PK extends Qi{constructor(e){super(),xi(this,e,MK,OK,Pi,{componentContext:0,layoutParams:1})}}function mm(t,e,n){const i=t.slice();return i[11]=e[n],i}function IK(t){let e,n;return e=new Ur({props:{componentContext:t[0]}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o&1&&(r.componentContext=i[0]),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function DK(t){let e,n;return e=new qo({props:{componentContext:t[0],layoutParams:t[1],$$slots:{default:[VK]},$$scope:{ctx:t}}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o&1&&(r.componentContext=i[0]),o&2&&(r.layoutParams=i[1]),o&16893&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function gm(t){let e,n=[t[8]],i={};for(let o=0;o<n.length;o+=1)i=Gs(i,n[o]);return{c(){e=Zt("template"),$r(e,i)},m(o,r){st(o,e,r),e.content.innerHTML=t[7]},p(o,r){r&128&&(e.content.innerHTML=o[7]),$r(e,i=Pl(n,[r&256&&o[8]]))},d(o){o&&ot(e)}}}function hm(t){let e=t[5],n,i,o=bm(t);return{c(){o.c(),n=si()},m(r,s){o.m(r,s),st(r,n,s),i=!0},p(r,s){s&32&&Pi(e,e=r[5])?(ui(),nt(o,1,1,he),pi(),o=bm(r),o.c(),Ue(o,1),o.m(n.parentNode,n)):o.p(r,s)},i(r){i||(Ue(o),i=!0)},o(r){nt(o),i=!1},d(r){r&&ot(n),o.d(r)}}}function vm(t){let e,n;return e=new Tr({props:{componentContext:t[11]}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o&8&&(r.componentContext=i[11]),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function bm(t){let e,n,i=ci(t[3]),o=[];for(let s=0;s<i.length;s+=1)o[s]=vm(mm(t,i,s));const r=s=>nt(o[s],1,1,(()=>{o[s]=null}));return{c(){for(let s=0;s<o.length;s+=1)o[s].c();e=si()},m(s,l){for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(s,l);st(s,e,l),n=!0},p(s,l){if(l&8){i=ci(s[3]);let a;for(a=0;a<i.length;a+=1){const c=mm(s,i,a);o[a]?(o[a].p(c,l),Ue(o[a],1)):(o[a]=vm(c),o[a].c(),Ue(o[a],1),o[a].m(e.parentNode,e))}for(ui(),a=i.length;a<o.length;a+=1)r(a);pi()}},i(s){if(!n){for(let l=0;l<i.length;l+=1)Ue(o[l]);n=!0}},o(s){o=o.filter(Boolean);for(let l=0;l<o.length;l+=1)nt(o[l]);n=!1},d(s){s&&ot(e),To(o,s)}}}function Ad(t){let e,n,i,o=t[7]&&gm(t),r=!t[4]&&t[5]&&hm(t),s=[t[0].json.custom_props||{}],l={};for(let a=0;a<s.length;a+=1)l=Gs(l,s[a]);return{c(){e=Zt(t[2].element),o&&o.c(),n=Ai(),r&&r.c(),y_(t[2].element)(e,l)},m(a,c){st(a,e,c),o&&o.m(e,null),Ln(e,n),r&&r.m(e,null),t[9](e),i=!0},p(a,c){a[7]?o?o.p(a,c):(o=gm(a),o.c(),o.m(e,n)):o&&(o.d(1),o=null),!a[4]&&a[5]?r?(r.p(a,c),c&48&&Ue(r,1)):(r=hm(a),r.c(),Ue(r,1),r.m(e,null)):r&&(ui(),nt(r,1,1,(()=>{r=null})),pi()),y_(a[2].element)(e,l=Pl(s,[c&1&&(a[0].json.custom_props||{})]))},i(a){i||(Ue(r),i=!0)},o(a){nt(r),i=!1},d(a){a&&ot(e),o&&o.d(),r&&r.d(),t[9](null)}}}function VK(t){let e=t[2].element,n,i=t[2].element&&Ad(t);return{c(){i&&i.c(),n=si()},m(o,r){i&&i.m(o,r),st(o,n,r)},p(o,r){o[2].element?e?Pi(e,o[2].element)?(i.d(1),i=Ad(o),e=o[2].element,i.c(),i.m(n.parentNode,n)):i.p(o,r):(i=Ad(o),e=o[2].element,i.c(),i.m(n.parentNode,n)):e&&(i.d(1),i=null,e=o[2].element)},i:he,o(o){nt(i,o)},d(o){o&&ot(n),i&&i.d(o)}}}function LK(t){let e,n,i,o;const r=[DK,IK],s=[];function l(a,c){return a[2]?0:1}return~(e=l(t))&&(n=s[e]=r[e](t)),{c(){n&&n.c(),i=si()},m(a,c){~e&&s[e].m(a,c),st(a,i,c),o=!0},p(a,[c]){let d=e;e=l(a),e===d?~e&&s[e].p(a,c):(n&&(ui(),nt(s[d],1,1,(()=>{s[d]=null})),pi()),~e?(n=s[e],n?n.p(a,c):(n=s[e]=r[e](a),n.c()),Ue(n,1),n.m(i.parentNode,i)):n=null)},i(a){o||(Ue(n),o=!0)},o(a){nt(n),o=!1},d(a){a&&ot(i),~e&&s[e].d(a)}}}function FK(t,e,n){let i,{componentContext:o}=e,{layoutParams:r=void 0}=e;const s=ro(vo);let l,a=null,c="",d={},u=[],p=!1;Sr((()=>{if(l&&"divKitApiCallback"in l&&typeof l.divKitApiCallback=="function"){const f=s.getExtensionContext(o);l.divKitApiCallback(f)}})),jo((()=>{u.forEach((f=>{f.destroy()}))}));function _(f){Wi[f?"unshift":"push"]((()=>{l=f,n(6,l)}))}return t.$$set=f=>{"componentContext"in f&&n(0,o=f.componentContext),"layoutParams"in f&&n(1,r=f.layoutParams)},t.$$.update=()=>{var f;if(t.$$.dirty&5)if(typeof o.json.custom_type=="string"&&o.json.custom_type&&(f=s.customComponents)!=null&&f.has(o.json.custom_type)){if(n(2,a=s.customComponents.get(o.json.custom_type)),typeof a.template=="function"){const m=s.getExtensionContext(o),g=new Map;for(const[v,y]of m.variables)g.set(v,y.getValue());n(7,c=a.template({props:o.json.custom_props,variables:g}))}else a.template&&typeof a.template=="string"?n(7,c=a.template):n(7,c="");n(8,d={shadowrootmode:a.shadowRootMode||"open"})}else n(2,a=null),n(7,c=";"),o.logError(tt(new Error('Unknown or incorrect "custom_type" prop for div "custom"')));t.$$.dirty&1&&n(5,i=o.json.items),t.$$.dirty&33&&(i!==void 0&&!Array.isArray(i)?(n(4,p=!0),o.logError(tt(new Error('Incorrect "items" prop for div "custom"')))):n(4,p=!1)),t.$$.dirty&57&&(u.forEach((m=>{m.destroy()})),n(3,u=(!p&&i||[]).map(((m,g)=>o.produceChildContext(m,{path:g})))))},[o,r,a,u,p,i,l,c,d,_]}class NK extends Qi{constructor(e){super(),xi(this,e,FK,LK,Pi,{componentContext:0,layoutParams:1})}}const O2={text:iH,container:qH,separator:YH,image:df,gif:df,grid:wJ,gallery:RJ,tabs:_U,state:LU,pager:nW,indicator:mW,slider:OW,input:eK,select:dK,video:$K,switch:PK,custom:NK};function ym(t){let e,n,i;var o=t[2];function r(s,l){return{props:{componentContext:s[0],layoutParams:s[1]}}}return o&&(e=k_(o,r(t))),{c(){e&&Qn(e.$$.fragment),n=si()},m(s,l){e&&Zn(e,s,l),st(s,n,l),i=!0},p(s,l){if(l&4&&o!==(o=s[2])){if(e){ui();const a=e;nt(a.$$.fragment,1,0,(()=>{xn(a,1)})),pi()}o?(e=k_(o,r(s)),Qn(e.$$.fragment),Ue(e.$$.fragment,1),Zn(e,n.parentNode,n)):e=null}else if(o){const a={};l&1&&(a.componentContext=s[0]),l&2&&(a.layoutParams=s[1]),e.$set(a)}},i(s){i||(e&&Ue(e.$$.fragment,s),i=!0)},o(s){e&&nt(e.$$.fragment,s),i=!1},d(s){s&&ot(n),e&&xn(e,s)}}}function qK(t){let e,n,i=t[2]&&ym(t);return{c(){i&&i.c(),e=si()},m(o,r){i&&i.m(o,r),st(o,e,r),n=!0},p(o,[r]){o[2]?i?(i.p(o,r),r&4&&Ue(i,1)):(i=ym(o),i.c(),Ue(i,1),i.m(e.parentNode,e)):i&&(ui(),nt(i,1,1,(()=>{i=null})),pi())},i(o){n||(Ue(i),n=!0)},o(o){nt(i),n=!1},d(o){o&&ot(e),i&&i.d(o)}}}function RK(t,e,n){let{componentContext:i}=e,{layoutParams:o=void 0}=e;const r=ro(vo);let s;return t.$$set=l=>{"componentContext"in l&&n(0,i=l.componentContext),"layoutParams"in l&&n(1,o=l.layoutParams)},t.$$.update=()=>{if(t.$$.dirty&5){const l=i.json;if(n(2,s=(l==null?void 0:l.type)&&O2[l.type]||void 0),!s){let a;l!=null&&l.type&&r.hasTemplate(l.type)?a="Recursive template":a="Unknown component",i.logError(tt(new Error(a),{additional:{component:(l==null?void 0:l.type)||"<missing>"}}))}}},[i,o,s]}class Tr extends Qi{constructor(e){super(),xi(this,e,RK,qK,Pi,{componentContext:0,layoutParams:1})}}const BK={"root-svg-filters":"divkit-44365"};function wm(t,e,n){const i=t.slice();i[1]=e[n];const o=i[1].split(":");return i[2]=o[0],i[3]=o[1],i}function $m(t){let e,n,i=ci([...Object.keys(t[0])]),o=[];for(let r=0;r<i.length;r+=1)o[r]=km(wm(t,i,r));return{c(){e=$o("svg"),n=$o("defs");for(let r=0;r<o.length;r+=1)o[r].c();K(e,"class",BK["root-svg-filters"]),K(e,"aria-hidden","true")},m(r,s){st(r,e,s),Ln(e,n);for(let l=0;l<o.length;l+=1)o[l]&&o[l].m(n,null)},p(r,s){if(s&1){i=ci([...Object.keys(r[0])]);let l;for(l=0;l<i.length;l+=1){const a=wm(r,i,l);o[l]?o[l].p(a,s):(o[l]=km(a),o[l].c(),o[l].m(n,null))}for(;l<o.length;l+=1)o[l].d(1);o.length=i.length}},d(r){r&&ot(e),To(o,r)}}}function HK(t){let e,n;return{c(){e=$o("feBlend"),K(e,"in2","SourceGraphic"),K(e,"mode",n=t[3])},m(i,o){st(i,e,o)},p(i,o){o&1&&n!==(n=i[3])&&K(e,"mode",n)},d(i){i&&ot(e)}}}function JK(t){let e;return{c(){e=$o("feComposite"),K(e,"in2","SourceGraphic"),K(e,"operator","arithmetic"),K(e,"k1","1"),K(e,"k2","0"),K(e,"k3","0"),K(e,"k4","0")},m(n,i){st(n,e,i)},p:he,d(n){n&&ot(e)}}}function UK(t){let e,n;return{c(){e=$o("feComposite"),K(e,"in2","SourceGraphic"),K(e,"operator",n=t[3].split("_")[1])},m(i,o){st(i,e,o)},p(i,o){o&1&&n!==(n=i[3].split("_")[1])&&K(e,"operator",n)},d(i){i&&ot(e)}}}function km(t){let e,n,i,o;function r(a,c){return a[3]==="source_in"||a[3]==="source_atop"?UK:a[3]==="multiply"?JK:HK}let s=r(t),l=s(t);return{c(){e=$o("filter"),n=$o("feFlood"),l.c(),K(n,"flood-color",i=t[2]),K(e,"id",o=t[0][t[1]])},m(a,c){st(a,e,c),Ln(e,n),l.m(e,null)},p(a,c){c&1&&i!==(i=a[2])&&K(n,"flood-color",i),s===(s=r(a))&&l?l.p(a,c):(l.d(1),l=s(a),l&&(l.c(),l.m(e,null))),c&1&&o!==(o=a[0][a[1]])&&K(e,"id",o)},d(a){a&&ot(e),l.d()}}}function WK(t){let e=Object.keys(t[0]).length,n,i=e&&$m(t);return{c(){i&&i.c(),n=si()},m(o,r){i&&i.m(o,r),st(o,n,r)},p(o,[r]){r&1&&(e=Object.keys(o[0]).length),e?i?i.p(o,r):(i=$m(o),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null)},i:he,o:he,d(o){o&&ot(n),i&&i.d(o)}}}function KK(t,e,n){let{svgFiltersMap:i}=e;return t.$$set=o=>{"svgFiltersMap"in o&&n(0,i=o.svgFiltersMap)},[i]}class YK extends Qi{constructor(e){super(),xi(this,e,KK,WK,Pi,{svgFiltersMap:0})}}function GK(t,e,n,i){const o=n[t.type];if(!o)return i(tt(new Error("No such template"),{additional:{template:t.type}})),{json:t,templateContext:e};let r;const s={};for(r in e)e.hasOwnProperty(r)&&(s[r]=e[r]);for(r in t)r==="type"||r==="__proto__"||t.hasOwnProperty(r)&&(s[r]=t[r]);function l(c,d){const u=Object.keys(d).filter((f=>f!=="__proto__")),p=u.filter((f=>f.charAt(0)!=="$")),_=u.filter((f=>f.charAt(0)==="$"));return p.forEach((f=>{const m=d[f];typeof m=="object"&&m!==null?(c[f]=Array.isArray(m)?[]:{},l(c[f],m)):c[f]=m})),_.forEach((f=>{const m=d[f],g=s[m];if(g!==void 0){const v=f.substring(1);c[v]=g}})),c}const a=l({},o);for(r in t)r==="type"||r==="__proto__"||t.hasOwnProperty(r)&&(a[r]=t[r]);return{json:a,templateContext:s}}const XK=128,ll=new Map;let jm;function M2(t){return ll.get(t)}function P2(t,e){t!==jm&&(ll.delete(t),ll.size>=XK&&ll.delete(ll.keys().next().value),ll.set(t,e),jm=t)}const Sm=new Set(["string","integer","number","boolean","datetime","color","url","dict","array"]);function ZK(t){if(!(typeof t.name=="string"&&t.name))throw new Error("Incorrect function name");if(!(typeof t.body=="string"&&t.body))throw new Error("Incorrect function body");if(!(t.return_type&&Sm.has(t.return_type)))throw new Error("Incorrect function return_type");if(!Array.isArray(t.arguments))throw new Error("Incorrect function arguments");const e=new Set;t.arguments.forEach((n=>{if(!(typeof n.name=="string"&&n.name))throw new Error("Incorrect argument name");if(!(n.type&&Sm.has(n.type)))throw new Error("Incorrect argument type");if(e.has(n.name))throw new Error("Duplicate argument name");e.add(n.name)}))}function xK(t){let e;return{args:t.arguments.map((n=>({type:n.type}))),cb(n,...i){e||(e=M2(t.body)||ba(t.body,{startRule:"JsonStringContents"}),P2(t.body,e));const o=new Map;i.forEach(((l,a)=>{const c=su(t.arguments[a].name,l.type,l.value);o.set(c.getName(),c)}));const r=ia(o,n.customFunctions,n.store,e,{weekStartDay:n.weekStartDay});r.warnings.forEach((l=>{n.warnings.push(l)}));const s=r.result;if(s.type==="error")throw new Error(s.value);if(s.type!==t.return_type)throw new Error("Incorrect function return_type");return s}}}function QK(t,e){if(!t)return e||void 0;if(!e)return;const n=new Map,i=new Set;for(const[o,r]of e){for(const s of r){const l=Up(o,s);i.add(l)}n.set(o,r)}for(const[o,r]of t)for(const s of r){const l=Up(o,s);if(!i.has(l)){i.add(l);const a=n.get(o)||[];a.push(s),n.set(o,a)}}return n}function eY(t){if(!t)return tt(new Error("Missing object"));const e=t.card,n=t.templates||{};if(!e)return tt(new Error("Missing card"));if(!e.states||!e.states.length)return tt(new Error("Missing states"));for(const i in n)if(n.hasOwnProperty(i)&&i in O2)return tt(new Error("Template name collision"),{additional:{templateName:i}});for(let i=0;i<e.states.length;++i){if(!e.states[i].div)return tt(new Error("Missing state div"),{additional:{stateId:e.states[i].state_id}});if(typeof e.states[i].state_id!="number")return tt(new Error("Missing state_id"),{additional:{index:i}})}return null}function tY(t){return[...new Set(t)]}class I2{constructor(e){Xi(this,"ast"),this.ast=e}apply({variables:e,customFunctions:n,logError:i,store:o,weekStartDay:r,keepComplex:s}){try{const l=ia(e,n,o,this.ast,{weekStartDay:r});l.warnings.forEach(i);const a=l.result;if(a.type==="error"){i(tt(new Error("Expression execution error"),{additional:{message:a.value}}));return}const c=a.value;if(c instanceof Date)return V1(c);if(a.type==="boolean")return!!c;if(a.type==="color"){const d=ns(String(c));if(d)return Ys(d);i(tt(new Error("Expression execution error")))}if(a.type==="integer"){if(c>gF||c<hF){i(tt(new Error("Expression result is out of 32-bit int range")));return}return Number(c)}if(!s&&(a.type==="array"||a.type==="dict"))try{return JSON.stringify(c)}catch{return i(tt(new Error(`Failed to stringify ${a.type}`))),`<${a.type}>`}return c}catch{i(tt(new Error("Expression execution error")));return}}}function nY(t){return t.indexOf("@{")>-1||t.indexOf("\\")>-1}function mu(t,e,n){if(t)if(typeof t=="string"){if(nY(t)){e.hasExpression=!0;try{const i=M2(t)||ba(t,{startRule:"JsonStringContents"});P2(t,i);const o=L1(i);return e.vars.push(...o),new I2(i)}catch{n(tt(new Error("Unable to parse expression"),{additional:{expression:t}}));return}}}else{if(Array.isArray(t))return t.map((i=>mu(i,e,n)));if(typeof t=="object"){const i={};for(const o in t)i[o]=mu(t[o],e,n);return i}}return t}function gu(t,e){if(t){if(t instanceof I2)return t.apply(e);if(Array.isArray(t))return t.map((n=>gu(n,e)));if(typeof t=="object"){const n={};for(const i in t)n[i]=gu(t[i],e);return n}}return t}function Tm(t,e,n,i){const o={vars:[],hasExpression:!1},r=mu(t,o,e);return{vars:tY(o.vars),hasExpression:o.hasExpression,applyVars(s,l,a){return gu(r,{variables:s,customFunctions:l,logError:e,store:n,weekStartDay:i,keepComplex:a})}}}function iY(){return Fr(new Map)}const oY={pagers:iY},rc=new Map,sc=new Map;function D2(t){const e=rc.get(t)||Fr("");return rc.has(t)||rc.set(t,e),e}function rY(t){rc.delete(t),sc.delete(t)}function lc(t){const e=sc.get(t)||new Map;return sc.has(t)||sc.set(t,e),e}class V2{setVariable(e){const n=e.getName(),i=lc(this);if(i.has(n))throw new Error("Variable with the same name already exist");i.set(n,e),D2(this).set(n)}getVariable(e){return lc(this).get(e)}list(){return lc(this).values()}}function sY(){return new V2}const lY=["start","stop","pause","resume","cancel","reset"],aY=new Set(lY);class cY{constructor(e){Xi(this,"timers",new Map),Xi(this,"logError"),Xi(this,"applyVars"),Xi(this,"hasVariableWithType"),Xi(this,"setVariableValue"),Xi(this,"execAnyActions"),Xi(this,"visibilityHandler"),Xi(this,"awaitActions",[]),this.logError=e.logError,this.applyVars=e.applyVars,this.hasVariableWithType=e.hasVariableWithType,this.setVariableValue=e.setVariableValue,this.execAnyActions=e.execAnyActions,this.visibilityHandler=()=>{document.visibilityState==="visible"?(this.awaitActions.forEach((({id:n,action:i})=>{this.execTimerAction(n,i)})),this.awaitActions=[],this.unholdAll()):this.holdAll()},document.addEventListener("visibilitychange",this.visibilityHandler)}destroy(){document.removeEventListener("visibilitychange",this.visibilityHandler);for(const[e,n]of this.timers)this.stopTimerTimeouts(n)}createTimer(e){if(!(e!=null&&e.id)){this.logError(tt(new Error("Missing timer id")));return}if(!(e.duration||e.tick_interval&&(e.value_variable||e.tick_actions))){this.logError(tt(new Error("Misconfigured timer"),{additional:{id:e.id}}));return}this.timers.set(e.id,{state:"stopped",definition:e})}execTimerAction(e,n){if(!e||!n||!this.timers.has(e)||!aY.has(n)){this.logError(tt(new Error("Incorrect timer action"),{additional:{id:e,action:n}}));return}const i=n;if(document.visibilityState!=="visible"){this.awaitActions.push({id:e,action:i});return}const o=this.timers.get(e);this[i](o)}stopTimerTimeouts(e){e.durationTimeout&&(clearTimeout(e.durationTimeout),e.durationTimeout=void 0),e.tickTimeout&&(clearTimeout(e.tickTimeout),e.tickTimeout=void 0)}async tickOrUnholdAction(e){const n=performance.now(),i=(e.durationPassed||0)+n-(e.durationStarted||0);e.duration&&i>e.duration||(this.updateVariable(e,i),await this.callActions(e,"tick"),e.tickCount!==void 0&&++e.tickCount)}startOrResume(e){e.state="running",e.hold=!1,e.durationStarted=performance.now();const n=e.duration;n&&(e.durationTimeout=window.setTimeout((async()=>{this.updateVariable(e,n),e.tickCountPredict&&e.tickCount!==void 0&&e.tickCount<e.tickCountPredict&&await this.callActions(e,"tick"),this.stop(e)}),Math.max(0,n-(e.durationPassed||0))));const i=e.tick;if(i){const o=()=>{const r=e.tickStarted=performance.now(),s=Math.max(0,i-(e.tickPassed||0));e.tickTimeout=window.setTimeout((async()=>{await this.tickOrUnholdAction(e),e.tickPassed=(performance.now()-r-s)%i,e.state==="running"&&o()}),s)};o()}}start(e){if(e.state==="running"){this.logError(tt(new Error("The timer is already running")));return}else if(e.state==="paused"){this.logError(tt(new Error("The timer is paused")));return}const n=e.definition.value_variable;if(n&&!this.hasVariableWithType(n,"integer")){this.logError(tt(new Error("Cannot find variable"),{additional:{name:n}}));return}if(n&&this.setVariableValue(n,0),e.definition.duration&&(e.duration=this.applyVars(e.definition.duration)),e.definition.tick_interval&&(e.tick=this.applyVars(e.definition.tick_interval)),e.duration!==void 0&&e.duration<0||e.tick!==void 0&&e.tick<=0){this.logError(tt(new Error("Incorrect timer properties"),{additional:{id:e.definition.id}}));return}e.duration!==void 0&&e.tick!==void 0&&(e.tickCount=0,e.tickCountPredict=Math.floor(e.duration/e.tick)),this.startOrResume(e)}stop(e){if(e.state==="stopped"){this.logError(tt(new Error("The timer has already been stopped")));return}e.state="stopped",e.durationPassed=0,e.tickPassed=0,this.stopTimerTimeouts(e),this.callActions(e,"end")}pause(e){if(e.state==="stopped"){this.logError(tt(new Error("The timer has already been stopped")));return}else if(e.state==="paused"){this.logError(tt(new Error("The timer has already been paused")));return}e.state="paused",this.stopTimerTimeouts(e);const n=performance.now();e.durationStarted&&(e.durationPassed=(e.durationPassed||0)+n-e.durationStarted),e.tickStarted&&(e.tickPassed=(e.tickPassed||0)+n-e.tickStarted);const i=e.definition.value_variable;i&&e.durationPassed&&this.setVariableValue(i,Math.round(e.durationPassed))}resume(e){if(e.state==="stopped"){this.logError(tt(new Error("The timer has already been stopped")));return}else if(e.state==="running"){this.logError(tt(new Error("The timer is already running")));return}this.startOrResume(e)}cancel(e){e.state!=="stopped"&&(e.state="stopped",e.durationPassed=0,e.tickPassed=0,this.stopTimerTimeouts(e))}reset(e){this.cancel(e),this.start(e)}updateVariable(e,n){const i=e.definition.value_variable;i&&this.setVariableValue(i,Math.round(n))}async callActions(e,n){const i=e.definition[n==="end"?"end_actions":"tick_actions"];if(i){const o=this.applyVars(i);return this.execAnyActions(o,{processUrls:!1})}}holdAll(){for(const[e,n]of this.timers)n.state==="running"&&(n.hold=!0,this.stopTimerTimeouts(n))}async unholdAll(){for(const[e,n]of this.timers)if(n.state==="running"&&n.hold){const i=performance.now();n.durationStarted&&(n.durationPassed=(n.durationPassed||0)+i-n.durationStarted),n.tickStarted&&(n.tickPassed=(n.tickPassed||0)+i-n.tickStarted),n.tick&&await this.tickOrUnholdAction(n),this.startOrResume(n)}}}function dY(t,e,n,i){const{variable_name:o,index:r,value:s}=i;if(!s||typeof r!="number"&&r!==void 0){n(tt(new Error("Incorrect array_insert_value action"),{additional:{name:o}}));return}Zu(t,e,n,i,(l=>{const a=l.getValue();if(typeof r=="number"&&(r<0||r>a.length))n(tt(new Error(`Index out of bound for mutation ${i.type}`),{additional:{name:o,index:r,length:a.length}}));else{const c=a.slice();typeof r=="number"?c.splice(r,0,s.value):c.push(s.value),l.setValue(c)}}))}function uY(t,e,n,i){const{variable_name:o,index:r}=i;if(typeof r!="number"){n(tt(new Error("Incorrect array_remove_value action"),{additional:{name:o}}));return}Zu(t,e,n,i,(s=>{const l=s.getValue();if(typeof r=="number"&&(r<0||r>=l.length))n(tt(new Error(`Index out of bound for mutation ${i.type}`),{additional:{name:o,index:r,length:l.length}}));else{const a=l.slice();a.splice(r,1),s.setValue(a)}}))}function pY(t,e,n,i){const{variable_name:o,index:r,value:s}=i;if(!s||typeof r!="number"){n(tt(new Error("Incorrect array_set_value action"),{additional:{name:o}}));return}Zu(t,e,n,i,(l=>{const a=l.getValue();if(typeof r=="number"&&(r<0||r>=a.length))n(tt(new Error(`Index out of bound for mutation ${i.type}`),{additional:{name:o,index:r,length:a.length}}));else{const c=a.slice();c[r]=s.value,l.setValue(c)}}))}function Zu(t,e,n,i,o){const{variable_name:r}=i;if(!r){n(tt(new Error(`Incorrect ${i.type} action`),{additional:{name:r}}));return}const s=(t==null?void 0:t.getVariable(r))||e.get(r);if(!s){n(tt(new Error("Cannot find variable"),{additional:{name:r}}));return}const l=s.getType();l==="array"?o(s):n(tt(new Error("Trying to insert value into the non-array"),{additional:{name:r,type:l}}))}function _Y(t,e,n,i){const{variable_name:o,key:r,value:s}=i;if(typeof r!="string"){n(tt(new Error("Incorrect dict_set_value action"),{additional:{name:o}}));return}if(!o){n(tt(new Error(`Incorrect ${i.type} action`),{additional:{name:o}}));return}const l=(t==null?void 0:t.getVariable(o))||e.get(o);if(!l){n(tt(new Error("Cannot find variable"),{additional:{name:o}}));return}const a=l.getType();if(a==="dict"){const c={...l.getValue()};s?c[r]=s.value:delete c[r],l.setValue(c)}else n(tt(new Error("Trying to set value into the non-dict"),{additional:{name:o,type:a}}))}function fY(t,e){if(!(e.content&&(e.content.type==="text"||e.content.type==="url")&&typeof e.content.value=="string")){t(tt(new Error("Incorrect action"),{additional:{action:e}}));return}if(!(typeof navigator<"u"&&"clipboard"in navigator&&navigator.clipboard&&"writeText"in navigator.clipboard&&typeof navigator.clipboard.writeText=="function")){t(tt(new Error("Clipboard is unavailable"),{additional:{action:e}}));return}navigator.clipboard.writeText(e.content.value).catch((n=>{t(tt(new Error("Failed to copy to the clipboard"),{additional:{originalError:String(n)}}))}))}function mY(t){if(t==="normal"||t==="reverse"||t==="alternate"||t==="alternate_reverse")return t}function gY(t,e,n,i){var o,r,s,l;const a=mr(t.duration,0);if(!a||t.type!=="color_animator"&&t.type!=="number_animator")return;const c=(o=t.start_value_typed?t.start_value_typed.value:t.start_value)!=null?o:e.getValue(),d=t.end_value_typed?t.end_value_typed.value:t.end_value;if(c===void 0||d===void 0||t.type==="color_animator"&&(typeof c!="string"&&c!==void 0||typeof d!="string")||t.type==="number_animator"&&(typeof c!="number"&&c!==void 0||typeof d!="number"))return;const u=t.type==="color_animator"&&ns(c),p=t.type==="color_animator"&&ns(d);if(t.type==="color_animator"&&(!u||!p))return;const _=uo(t.start_delay,0),f=Gu(t.interpolator||"linear"),m=mY(t.direction)||"normal",g=((r=t.repeat_count)==null?void 0:r.type)==="infinity"?1/0:((s=t.repeat_count)==null?void 0:s.type)==="fixed"?uo((l=t.repeat_count)==null?void 0:l.value,1):1;let v=0,y=performance.now();const b=g===1/0?1/0:g*a+_;function w(j){if(t.type==="color_animator"){if(!u||!p)throw new Error("Missing start/end value");return Ys({a:Qr(xr(u.a,p.a,j),0,255),r:Qr(xr(u.r,p.r,j),0,255),g:Qr(xr(u.g,p.g,j),0,255),b:Qr(xr(u.b,p.b,j),0,255)})}return xr(c,d,j)}function k(j){const T=j-y;if(y=j,v+=T,v>=_){let E=Math.floor((v-_)/a),O=(v-_-E*a)/a;E>=g&&(E=g-1,O=1);let M;m==="normal"||m==="alternate"&&E%2===0||m==="alternate_reverse"&&E%2===1?M="normal":M="reverse",M==="reverse"&&(O=1-O);const D=w(f(O));e.setValue(D)}v<b?A=requestAnimationFrame(k):(n(),i(t.end_actions))}let A=requestAnimationFrame(k);return{stop(){cancelAnimationFrame(A),i(t.cancel_actions),i(t.end_actions)}}}function hY(t){let e=t;for(;e&&!e.isTooltipRoot;)e=e.parent;return e}function Cm(t){let e=t;for(;e!=null&&e.parent&&e.json.type!=="state"&&!e.isRootState&&!e.isTooltipRoot;)e=e.parent;return e}const vY="divkit-bf0ea",bY="divkit-27458",yY="undefined",wY="divkit-e2fee",$Y="divkit-04d22",kY="divkit-00335",hu={outer:vY,root__clickable:bY,"root__clickable-no-transition":"divkit-3bb57",root__selectable:yY,tooltip:wY,tooltip_visible:$Y,tooltip__overlay:kY},L2=300,F2=0;function jY(t){return Math.max(...t.map((e=>(Number(e.duration)||L2)+(Number(e.start_delay)||F2))))}function zm(t,{animations:e,direction:n}){if(!e)return{};const i=Bu(e),o=jY(i);return i.some((r=>r.name==="no_animation"))?{}:{duration:rd()?0:o,css:r=>{const s=r*o,l=i.map((_=>{var f,m,g,v,y,b;const w=Number(_.start_delay)||F2,k=Number(_.duration)||L2,A=Math.max(0,Math.min(1,(s-w)/k)),j=(Gu(_.interpolator||"ease_in_out")||ad)(A);if(_.name==="fade"){const T=n==="in"&&(f=_.start_value)!=null?f:0,E=n==="in"?1:(m=_.end_value)!=null?m:1;return{active:j>0&&j<1,opacity:(1-j)*T+j*E}}else if(_.name==="translate"){const T=-(n==="in"&&(g=_.start_value)!=null?g:10),E=-(n==="in"?0:(v=_.end_value)!=null?v:0);return{active:j>0&&j<1,translate:`translateY(${(1-j)*T+j*E}${n==="in"&&_.start_value!==void 0||n==="out"&&_.end_value!==void 0?"%":"px"})`}}else if(_.name==="scale"){const T=n==="in"&&(y=_.start_value)!=null?y:0,E=n==="in"?1:(b=_.end_value)!=null?b:1;return{active:j>0&&j<1,scale:`scale(${(1-j)*T+j*E})`}}return{}})),a=l.map((_=>_.opacity)).filter((_=>_!==void 0)).reduce(((_,f)=>_*f),1),c=l.map((_=>_.translate)).filter((_=>_!==void 0)).join(" "),d=l.map((_=>_.scale)).filter((_=>_!==void 0)).join(" "),u=l.filter((_=>_.active)).map((_=>_.scale)).filter((_=>_!==void 0)),p=u.length?u[u.length-1]:d;return`transform:${[c,p].filter(Boolean).join(" ")||"none"};opacity:${a}`}}}const{window:Em}=Jr;function Am(t){let e,n,i;return{c(){e=Zt("div"),K(e,"class",hu.tooltip__overlay)},m(o,r){st(o,e,r),n||(i=en(e,"click",t[17]),n=!0)},p:he,d(o){o&&ot(e),n=!1,i()}}}function SY(t){let e,n,i,o,r,s,l,a,c,d=t[0]&&Am(t);return i=new Tr({props:{componentContext:t[1]}}),{c(){d&&d.c(),e=Ai(),n=Zt("div"),Qn(i.$$.fragment),K(n,"class",o=kn("tooltip",hu,t[7])+" "+(t[13]?ai.root_platform_desktop:"")),He(n,"top",t[4]),He(n,"left",t[3]),He(n,"width",t[5]),He(n,"height",t[6])},m(u,p){d&&d.m(u,p),st(u,e,p),st(u,n,p),Zn(i,n,null),t[23](n),l=!0,a||(c=[en(Em,"click",t[17]),en(Em,"resize",t[18])],a=!0)},p(u,[p]){t=u,t[0]?d?d.p(t,p):(d=Am(t),d.c(),d.m(e.parentNode,e)):d&&(d.d(1),d=null);const _={};p&2&&(_.componentContext=t[1]),i.$set(_),(!l||p&8320&&o!==(o=kn("tooltip",hu,t[7])+" "+(t[13]?ai.root_platform_desktop:"")))&&K(n,"class",o),p&16&&He(n,"top",t[4]),p&8&&He(n,"left",t[3]),p&32&&He(n,"width",t[5]),p&64&&He(n,"height",t[6])},i(u){l||(Ue(i.$$.fragment,u),u&&lr((()=>{l&&(s&&s.end(1),r=Nu(n,zm,{animations:t[14]||Om,direction:"in"}),r.start())})),l=!0)},o(u){nt(i.$$.fragment,u),r&&r.invalidate(),u&&(s=Zq(n,zm,{animations:t[15]||Om,direction:"out"})),l=!1},d(u){u&&(ot(e),ot(n)),d&&d.d(u),xn(i),t[23](null),u&&s&&s.end(),a=!1,so(c)}}}const Om={name:"set",items:[{name:"translate"},{name:"fade"}]};function TY(t,e,n){let i,o,r,s,l,a,c,d=he,u=()=>(d(),d=Ve(r,(W=>n(25,c=W))),r),p,_=he,f=()=>(_(),_=Ve(o,(W=>n(26,p=W))),o),m,g=he,v=()=>(g(),g=Ve(i,(W=>n(27,m=W))),i),y,b,w=he,k=()=>(w(),w=Ve(s,(W=>n(14,b=W))),s),A,j=he,T=()=>(j(),j=Ve(l,(W=>n(15,A=W))),l);t.$$.on_destroy.push((()=>d())),t.$$.on_destroy.push((()=>_())),t.$$.on_destroy.push((()=>g())),t.$$.on_destroy.push((()=>w())),t.$$.on_destroy.push((()=>j()));let{ownerNode:E}=e,{data:O}=e,{internalId:M}=e,{parentComponentContext:D}=e;const R=ro(vo),J=R.isDesktop;ko(t,J,(W=>n(13,y=W)));const B=Date.now();let z,q=!1,N="",Y="",x="",ce="",ue=null,Z;function Q(){var W,ge;if(!z||!E)return;const it=z.parentElement;if(!it)return;const ye=z.style.cssText;n(2,z.style.cssText+=";transform: none !important",z);const rt=E.getBoundingClientRect(),U=z.getBoundingClientRect(),de=it.getBoundingClientRect();n(2,z.style.cssText=ye,z);let pe=0,et=0,we=null,Ie=null,Xe=0,vt=0;const Qe=D.getJsonWithVars((W=O.div)==null?void 0:W.width),fe=D.getJsonWithVars((ge=O.div)==null?void 0:ge.width);if(!Qe||Qe.type==="match_parent"?Xe=we=window.innerWidth:Qe.type==="fixed"&&Qe.value?Xe=we=Qe.value:Xe=U.width,(fe==null?void 0:fe.type)==="match_parent"?vt=Ie=window.innerHeight:(fe==null?void 0:fe.type)==="fixed"&&fe.value?vt=Ie=fe.value:vt=U.height,m==="left"||m==="bottom-left"||m==="top-left")pe=rt.left-Xe;else if(m==="top"||m==="bottom"||m==="center")pe=(rt.left+rt.right)/2-Xe/2;else if(m==="right"||m==="bottom-right"||m==="top-right")pe=rt.right;else return;if(m==="top"||m==="top-left"||m==="top-right")et=rt.top-vt;else if(m==="left"||m==="right"||m==="center")et=(rt.top+rt.bottom)/2-vt/2;else if(m==="bottom-left"||m==="bottom"||m==="bottom-right")et=rt.bottom;else return;pe-=de.left,et-=de.top,pe+=p||0,et+=c||0,n(3,N=`${pe}px`),n(4,Y=`${et}px`),n(5,x=we!==null?`${we}px`:""),n(6,ce=Ie!==null?`${Ie}px`:""),n(0,q=!0),we===null||Ie===null?typeof ResizeObserver<"u"&&!ue&&(ue=new ResizeObserver((()=>{requestAnimationFrame(Q)})),ue.observe(z)):ue==null||ue.disconnect()}function se(W){Date.now()-B<100||W.composedPath().includes(z)||(W.stopPropagation(),W.preventDefault(),R.onTooltipClose(M))}function _e(){Q()}Sr((()=>{if(R.tooltipRoot){const W=window.getComputedStyle(z);n(2,z.style.fontSize=W.fontSize,z),n(2,z.style.fontFamily=W.fontFamily,z),n(2,z.style.lineHeight=W.lineHeight,z),R.tooltipRoot.appendChild(z)}})),nd((()=>{q||Q()})),jo((()=>{Z&&Z.destroy(),ue==null||ue.disconnect()}));function Oe(W){Wi[W?"unshift":"push"]((()=>{z=W,n(2,z)}))}return t.$$set=W=>{"ownerNode"in W&&n(19,E=W.ownerNode),"data"in W&&n(20,O=W.data),"internalId"in W&&n(21,M=W.internalId),"parentComponentContext"in W&&n(22,D=W.parentComponentContext)},t.$$.update=()=>{var W,ge,it,ye;t.$$.dirty&5242882&&(Z&&Z.destroy(),n(1,Z=D.produceChildContext(O.div||{},{isTooltipRoot:!0}))),t.$$.dirty&5242880&&v(n(12,i=D.getDerivedFromVars(O.position))),t.$$.dirty&5242880&&f(n(11,o=D.getDerivedFromVars((ge=(W=O.offset)==null?void 0:W.x)==null?void 0:ge.value))),t.$$.dirty&5242880&&u(n(10,r=D.getDerivedFromVars((ye=(it=O.offset)==null?void 0:it.y)==null?void 0:ye.value))),t.$$.dirty&5242880&&k(n(9,s=D.getDerivedFromVars(O.animation_in))),t.$$.dirty&5242880&&T(n(8,l=D.getDerivedFromVars(O.animation_out))),t.$$.dirty&1&&n(7,a={visible:q})},[q,Z,z,N,Y,x,ce,a,l,s,r,o,i,y,b,A,J,se,_e,E,O,M,D,Oe]}class CY extends Qi{constructor(e){super(),xi(this,e,TY,SY,Pi,{ownerNode:19,data:20,internalId:21,parentComponentContext:22})}}function Mm(t,{delay:e=0,duration:n=400,easing:i=k2,x:o=0,y:r=0,opacity:s=0}={}){const l=getComputedStyle(t),a=+l.opacity,c=l.transform==="none"?"":l.transform,d=a*(1-s),[u,p]=b_(o),[_,f]=b_(r);return{delay:e,duration:n,easing:i,css:(m,g)=>`\n\t\t\ttransform: ${c} translate(${(1-m)*u}${p}, ${(1-m)*_}${f});\n\t\t\topacity: ${a-d*g}`}}const zY="divkit-6d515",EY="divkit-8767a",AY="divkit-7481b",OY="divkit-60a10",MY="divkit-3133d",ac={root_platform_desktop:zY,menu:EY,menu_visible:AY,menu__list:OY,menu__item:MY},{window:Pm}=Jr;function Im(t,e,n){const i=t.slice();return i[23]=e[n],i}function PY(t){let e=t[23].text+"",n;return{c(){n=jr(e)},m(i,o){st(i,n,o)},p(i,o){o&1&&e!==(e=i[23].text+"")&&ws(n,e)},d(i){i&&ot(n)}}}function Dm(t){let e,n,i,o;return n=new sd({props:{componentContext:t[1],actions:t[23].actions||t[23].action&&[t[23].action],cls:ac.menu__item+" "+t[10],customAction:t[14],$$slots:{default:[PY]},$$scope:{ctx:t}}}),{c(){e=Zt("li"),Qn(n.$$.fragment),i=Ai()},m(r,s){st(r,e,s),Zn(n,e,null),Ln(e,i),o=!0},p(r,s){const l={};s&2&&(l.componentContext=r[1]),s&1&&(l.actions=r[23].actions||r[23].action&&[r[23].action]),s&67108865&&(l.$$scope={dirty:s,ctx:r}),n.$set(l)},i(r){o||(Ue(n.$$.fragment,r),o=!0)},o(r){nt(n.$$.fragment,r),o=!1},d(r){r&&ot(e),xn(n)}}}function IY(t){let e,n,i,o,r,s,l,a=ci(t[0]),c=[];for(let u=0;u<a.length;u+=1)c[u]=Dm(Im(t,a,u));const d=u=>nt(c[u],1,1,(()=>{c[u]=null}));return{c(){e=Zt("div"),n=Zt("ul");for(let u=0;u<c.length;u+=1)c[u].c();K(n,"class",ac.menu__list),K(e,"class",i=kn("menu",ac,t[7])+" "+(t[8]?ai.root_platform_desktop:"")+" "+t[9]),He(e,"top",t[4]),He(e,"left",t[3]),He(e,"width",t[5]),He(e,"height",t[6])},m(u,p){st(u,e,p),Ln(e,n);for(let _=0;_<c.length;_+=1)c[_]&&c[_].m(n,null);t[17](e),r=!0,s||(l=[en(Pm,"click",t[12]),en(Pm,"resize",t[13])],s=!0)},p(u,[p]){if(p&17411){a=ci(u[0]);let _;for(_=0;_<a.length;_+=1){const f=Im(u,a,_);c[_]?(c[_].p(f,p),Ue(c[_],1)):(c[_]=Dm(f),c[_].c(),Ue(c[_],1),c[_].m(n,null))}for(ui(),_=a.length;_<c.length;_+=1)d(_);pi()}(!r||p&384&&i!==(i=kn("menu",ac,u[7])+" "+(u[8]?ai.root_platform_desktop:"")+" "+u[9]))&&K(e,"class",i),p&16&&He(e,"top",u[4]),p&8&&He(e,"left",u[3]),p&32&&He(e,"width",u[5]),p&64&&He(e,"height",u[6])},i(u){if(!r){for(let p=0;p<a.length;p+=1)Ue(c[p]);u&&lr((()=>{r&&(o||(o=S_(e,Mm,{y:20},!0)),o.run(1))})),r=!0}},o(u){c=c.filter(Boolean);for(let p=0;p<c.length;p+=1)nt(c[p]);u&&(o||(o=S_(e,Mm,{y:20},!1)),o.run(0)),r=!1},d(u){u&&ot(e),To(c,u),t[17](null),u&&o&&o.end(),s=!1,so(l)}}}function DY(t,e,n){let i,o,{ownerNode:r}=e,{items:s}=e,{parentComponentContext:l}=e;const a=ro(vo),c=a.getCustomization("menuPopupClass")||"",d=a.getCustomization("menuItemClass")||"",u=a.isDesktop;ko(t,u,(O=>n(8,o=O)));const p=Date.now(),_=Yq();let f,m=!1,g="",v="",y="",b="",w=null;function k(){if(!f||!r)return;const O=f.parentElement;if(!O)return;const M=r.getBoundingClientRect(),D=f.getBoundingClientRect(),R=O.getBoundingClientRect(),J=window.innerWidth,B=window.innerHeight;let z=0,q=0,N=D.width,Y=D.height;z=M.left-R.left,q=M.bottom-R.top,z+N>J&&(z=J-N),z<0&&(z=0),q+Y>B&&(M.top-R.top-Y>0?q=M.top-R.top-Y:q=B-Y),q<0&&(q=0),n(3,g=`${z}px`),n(4,v=`${q}px`),n(5,y=""),n(6,b=""),n(16,m=!0),typeof ResizeObserver<"u"&&!w&&(w=new ResizeObserver((()=>{requestAnimationFrame(k)})),w.observe(f))}function A(O){Date.now()-p<100||O.composedPath().includes(f)||_("close")}function j(){k()}function T(){return _("close"),!0}Sr((()=>{if(a.tooltipRoot){const O=window.getComputedStyle(f);n(2,f.style.fontSize=O.fontSize,f),n(2,f.style.fontFamily=O.fontFamily,f),n(2,f.style.lineHeight=O.lineHeight,f),a.tooltipRoot.appendChild(f)}})),nd((()=>{m||k()})),jo((()=>{w==null||w.disconnect()}));function E(O){Wi[O?"unshift":"push"]((()=>{f=O,n(2,f)}))}return t.$$set=O=>{"ownerNode"in O&&n(15,r=O.ownerNode),"items"in O&&n(0,s=O.items),"parentComponentContext"in O&&n(1,l=O.parentComponentContext)},t.$$.update=()=>{t.$$.dirty&65536&&n(7,i={visible:m})},[s,l,f,g,v,y,b,i,o,c,d,u,A,j,T,r,m,E]}class VY extends Qi{constructor(e){super(),xi(this,e,DY,IY,Pi,{ownerNode:15,items:0,parentComponentContext:1})}}const{Map:LY}=Jr;function Vm(t,e,n){const i=t.slice();return i[124]=e[n],i}function Lm(t){let e,n,i,o,r,s,l,a,c,d;n=new YK({props:{svgFiltersMap:t[5]}}),o=new Tr({props:{componentContext:t[6]}});let u=t[3]&&Fm(t),p=t[4]&&qm(t);return{c(){e=Zt("div"),Qn(n.$$.fragment),i=Ai(),Qn(o.$$.fragment),r=Ai(),u&&u.c(),s=Ai(),p&&p.c(),K(e,"class",l=ai.root+(t[7]?` ${ai.root_platform_desktop}`:"")+(t[0]?` ${t[0]}`:"")),K(e,"dir",t[8])},m(_,f){st(_,e,f),Zn(n,e,null),Ln(e,i),Zn(o,e,null),Ln(e,r),u&&u.m(e,null),Ln(e,s),p&&p.m(e,null),a=!0,c||(d=en(e,"touchstart",RY,{passive:!0}),c=!0)},p(_,f){const m={};f[0]&32&&(m.svgFiltersMap=_[5]),n.$set(m);const g={};f[0]&64&&(g.componentContext=_[6]),o.$set(g),_[3]?u?(u.p(_,f),f[0]&8&&Ue(u,1)):(u=Fm(_),u.c(),Ue(u,1),u.m(e,s)):u&&(ui(),nt(u,1,1,(()=>{u=null})),pi()),_[4]?p?(p.p(_,f),f[0]&16&&Ue(p,1)):(p=qm(_),p.c(),Ue(p,1),p.m(e,null)):p&&(ui(),nt(p,1,1,(()=>{p=null})),pi()),(!a||f[0]&129&&l!==(l=ai.root+(_[7]?` ${ai.root_platform_desktop}`:"")+(_[0]?` ${_[0]}`:"")))&&K(e,"class",l),(!a||f[0]&256)&&K(e,"dir",_[8])},i(_){a||(Ue(n.$$.fragment,_),Ue(o.$$.fragment,_),Ue(u),Ue(p),a=!0)},o(_){nt(n.$$.fragment,_),nt(o.$$.fragment,_),nt(u),nt(p),a=!1},d(_){_&&ot(e),xn(n),xn(o),u&&u.d(),p&&p.d(),c=!1,d()}}}function Fm(t){let e=[],n=new LY,i,o,r=ci(t[3]);const s=l=>l[124].internalId;for(let l=0;l<r.length;l+=1){let a=Vm(t,r,l),c=s(a);n.set(c,e[l]=Nm(c,a))}return{c(){for(let l=0;l<e.length;l+=1)e[l].c();i=si()},m(l,a){for(let c=0;c<e.length;c+=1)e[c]&&e[c].m(l,a);st(l,i,a),o=!0},p(l,a){a[0]&72&&(r=ci(l[3]),ui(),e=t2(e,a,s,1,l,r,n,i.parentNode,e2,Nm,i,Vm),pi())},i(l){if(!o){for(let a=0;a<r.length;a+=1)Ue(e[a]);o=!0}},o(l){for(let a=0;a<e.length;a+=1)nt(e[a]);o=!1},d(l){l&&ot(i);for(let a=0;a<e.length;a+=1)e[a].d(l)}}}function Nm(t,e){let n,i,o;return i=new CY({props:{ownerNode:e[124].ownerNode,data:e[124].desc,internalId:e[124].internalId,parentComponentContext:e[124].componentContext||e[6]}}),{key:t,first:null,c(){n=si(),Qn(i.$$.fragment),this.first=n},m(r,s){st(r,n,s),Zn(i,r,s),o=!0},p(r,s){e=r;const l={};s[0]&8&&(l.ownerNode=e[124].ownerNode),s[0]&8&&(l.data=e[124].desc),s[0]&8&&(l.internalId=e[124].internalId),s[0]&72&&(l.parentComponentContext=e[124].componentContext||e[6]),i.$set(l)},i(r){o||(Ue(i.$$.fragment,r),o=!0)},o(r){nt(i.$$.fragment,r),o=!1},d(r){r&&ot(n),xn(i,r)}}}function qm(t){let e,n;return e=new VY({props:{ownerNode:t[4].node,items:t[4].items,parentComponentContext:t[4].componentContext||t[6]}}),e.$on("close",t[38]),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o[0]&16&&(r.ownerNode=i[4].node),o[0]&16&&(r.items=i[4].items),o[0]&80&&(r.parentComponentContext=i[4].componentContext||i[6]),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function FY(t){let e,n,i=!t[1]&&!t[2]&&t[6]&&Lm(t);return{c(){i&&i.c(),e=si()},m(o,r){i&&i.m(o,r),st(o,e,r),n=!0},p(o,r){!o[1]&&!o[2]&&o[6]?i?(i.p(o,r),r[0]&70&&Ue(i,1)):(i=Lm(o),i.c(),Ue(i,1),i.m(e.parentNode,e)):i&&(ui(),nt(i,1,1,(()=>{i=null})),pi())},i(o){n||(Ue(i),n=!0)},o(o){nt(i),n=!1},d(o){o&&ot(e),i&&i.d(o)}}}let xu=Fr(!0),Va=0;function Rm(){xu.set(!1)}function Bm(){xu.set(!0)}const NY=new Set(["string","integer","number","url","color","boolean"]),qY=new Set(["string","integer","number","url","color","boolean","array","dict"]);function ss(t,e){if(t&&e)return new Map([...t,...e]);if(t)return t;if(e)return e}function RY(){}function BY(t,e,n){var i,o;let r,s,l,a,{id:c}=e,{json:d={}}=e,{platform:u="auto"}=e,{theme:p="system"}=e,{globalVariablesController:_=void 0}=e,{mix:f=""}=e,{customization:m={}}=e,{builtinProtocols:g=["http","https","tel","mailto","intent"]}=e,{extensions:v=new Map}=e,{onError:y=void 0}=e,{onStat:b=void 0}=e,{onCustomAction:w=void 0}=e,{onComponent:k=void 0}=e,{typefaceProvider:A=(P=>"")}=e,{fetchInit:j={}}=e,{tooltipRoot:T=void 0}=e,{customComponents:E=void 0}=e,{direction:O="ltr"}=e,{store:M=void 0}=e,{weekStartDay:D=0}=e,R=!0,J=Fr(u==="desktop");if(ko(t,J,(P=>n(7,l=P))),u==="auto"&&typeof matchMedia<"u"){const P=matchMedia("(any-pointer: coarse)");J.set(!P.matches),P.addListener((()=>{J.set(!P.matches)}))}let B="light",z=null;const q=Fr(O==="rtl"?"rtl":"ltr");ko(t,q,(P=>n(8,a=P)));function N(){p!=="system"||!z||n(35,B=z.matches?"dark":"light")}function Y(P){n(12,p=P)}function x(){return it}function ce(){return ye}function ue(P){n(11,d=P)}const Z=new Set(g);let Q=!1,se=!1;c||(se=!0,ve(tt(new Error('"id" prop is required'))));const _e={stateChange:!1},Oe=_||new V2,W=D2(Oe),ge=lc(Oe),it=new Map,ye=new Map,rt=new Map;let U=null;const de=new Map;let pe=0,et=[];const we=new Set;let Ie;const Xe=[];function vt(P){return m==null?void 0:m[P]}function Qe(P,X,ae,$e=!1,be=void 0){if(!X)return Cs(X);const Be=ss(ye,ae),re=Tm(X,P,M,D);if(!re.vars.length)return re.hasExpression?Cs(re.applyVars(Be,be)):Cs(X);const je=re.vars.map((Me=>Be.get(Me)||rn(Me))).filter(os);return Ms(je,(()=>re.applyVars(Be,be,$e)))}function fe(P,X,ae,$e=!1,be=void 0){const Be=Tm(X,P,M,D);if(!Be.hasExpression)return X;const re=ss(ye,ae);return Be.applyVars(re,be,$e)}function me(P,X,ae){const $e=new Map,be=su(P,"dict",X);$e.set(P,be);const Be=su("index","integer",ae);return $e.set("index",Be),$e}function ve(P){y?y({error:P}):(P==null?void 0:P.level)==="warn"?console.warn(P):console.error(P)}function Ge(P,X){b&&b({type:P,action:X})}function gt(P){return P in r}function ee(P,X){if(!P)return{json:P,templateContext:X};const ae=new Set([P.type]);for(;P.type&&P.type in r;){if(({json:P,templateContext:X}=GK(P,X,r,ve)),ae.has(P.type))return{json:P,templateContext:X};ae.add(P.type)}return{json:P,templateContext:X}}function Je({type:P,node:X,json:ae,origJson:$e,templateContext:be}){k&&k({type:P,node:X,json:ae,origJson:$e,templateContext:be})}let We=0;function jt(P){return`${c}-${We++}`}function zt(P){return`divkit-${jt()}`}let an={},sn={};function It(P,X){const ae=`${P}:${X}`;if(sn[ae]=sn[ae]||0,++sn[ae],an[ae])return an[ae];const $e=`${jt()}-svg-filter`;return n(5,an={...an,[ae]:$e}),$e}function cn(P,X){if(!P)return;const ae=`${P}:${X}`;sn[ae]&&--sn[ae]===0&&n(5,an=Object.keys(an).reduce((($e,be)=>(sn[be]&&($e[be]=an[be]),$e)),{}))}const pn=jt()+"-id-",Sn=new Map,Fn=new Map;function Re(P){return pn+P}function lt(P,X){Sn.set(P,X)}function li(P){Sn.delete(P);const X=Re(P);Fn.has(X)&&Fn.delete(X)}function wt(P){var X;const ae=(X=Sn.get(P))==null?void 0:X();if(ae){const $e=Re(P),be=Fn.get($e);return be&&be!==ae&&be.removeAttribute("id"),ae.setAttribute("id",$e),Fn.set($e,ae),$e}return""}async function zn(P,X){var ae,$e,be;if(!P)throw new Error("Missing state id");let Be=P.split("/");const re=Be.length%2===0&&hY(X);let je=re||Ne;if(!re)if((ae=je.states)!=null&&ae.root){if(je=await je.states.root(Be[0]),!je)return;Be=Be.slice(1)}else return;for(let Me=0;Me<Be.length;Me+=2){const Le=Be[Me],ut=Be[Me+1];if(($e=je.states)!=null&&$e[Le]){if(je=await((be=je.states)==null?void 0:be[Le](ut)),!je)return}else return}}function Jt(P,X,{item:ae,step:$e,overflow:be}){var Be,re,je,Me,Le;if(!X)throw new Error(`Missing id for "${P}" action`);const ut=Number(ae);if(P==="set_current_item"&&Number.isNaN(ut))throw new Error(`Incorrect item for "${P}" action`);let Ze=Number($e);if(!$e&&(P==="set_previous_item"||P==="set_next_item")&&(Ze=1),!$e&&(P==="scroll_backward"||P==="scroll_forward"||P==="scroll_to_position")||Number.isNaN(Ze))throw new Error(`Incorrect step value for "${P}" action`);if(be&&be!=="clamp"&&be!=="ring")throw new Error(`Incorrect overflow value for "${P}" action`);be=be||"clamp";const Ct=xt(X);if(Ct)switch(P){case"set_current_item":Ct.setCurrentItem(ut);return;case"set_previous_item":Ct.setPreviousItem(Ze,be);return;case"set_next_item":Ct.setNextItem(Ze,be);return;case"scroll_to_start":(Be=Ct.scrollToStart)==null||Be.call(Ct);return;case"scroll_to_end":(re=Ct.scrollToEnd)==null||re.call(Ct);return;case"scroll_backward":(je=Ct.scrollBackward)==null||je.call(Ct,Ze,be);return;case"scroll_forward":(Me=Ct.scrollForward)==null||Me.call(Ct,Ze,be);return;case"scroll_to_position":(Le=Ct.scrollToPosition)==null||Le.call(Ct,Ze);return}}function gn(P,X,ae){const $e=(ae==null?void 0:ae.logError)||ve;if(P){const be=xt(P);be?X==="start"?be.start():X==="pause"?be.pause():$e(tt(new Error("Unknown video action"),{additional:{id:P,action:X}})):$e(tt(new Error("Video component is not found"),{additional:{id:P,action:X}}))}else $e(tt(new Error("Missing id in video action"),{additional:{action:X}}))}function Lt(P,X,ae){const $e=(ae==null?void 0:ae.logError)||ve;if(P){let be;typeof j=="function"?be=j(P):be=j,fetch(P,be).then((Be=>{if(!Be.ok)throw new Error("Response is not ok");return Be.json()})).then((Be=>{var re,je,Me;if(!Be){$e(tt(new Error("Incorrect patch"),{additional:{url:P}}));return}if(Be.templates)for(const Le in Be.templates)r.hasOwnProperty(Le)||(r[Le]=Be.templates[Le]);if(Array.isArray((re=Be.patch)==null?void 0:re.changes)){if(Be.patch.mode==="transactional"){const Le=Be.patch.changes.find((ut=>{const Ze=qt.get(ut.id);if(!Ze)return!0;const Ct=Array.isArray(ut.items)?ut.items.length:0;return!!(Ze.isSingleMode&&Ct!==1)}));if(Le){$e(tt(new Error("Skipping transactional, child is not found or broken"),{additional:{url:P,id:Le.id}})),Kn((je=Be.patch)==null?void 0:je.on_failed_actions),Kn(X==null?void 0:X.on_fail_actions);return}}Be.patch.changes.forEach((Le=>{const ut=qt.get(Le.id);ut&&ut.replaceWith(Le.id,Le.items)})),Kn((Me=Be.patch)==null?void 0:Me.on_applied_actions),Kn(X==null?void 0:X.on_success_actions)}})).catch((Be=>{$e(tt(new Error("Failed to download the patch"),{additional:{url:P,originalError:Be}})),Kn(X==null?void 0:X.on_fail_actions)}))}else $e(tt(new Error("Missing url in download action"),{additional:{url:P}}))}function $n(P,X,ae){var $e;const be=(ae==null?void 0:ae.logError)||ve;if(!P){be(tt(new Error("Missing id in show_tooltip action")));return}const Be=Ot.get(P);if(!Be){be(tt(new Error("Tooltip with the provided id is not found"),{additional:{id:P}}));return}if(X!=="true"&&X!==!0&&we.has(P))return;we.add(P);const re={internalId:++pe,ownerNode:Be.onwerNode,desc:Be.tooltip,timeoutId:0,componentContext:ae};n(3,et=[...et,re]);const je=($e=Be.tooltip.duration)!=null?$e:5e3;je&&(re.timeoutId=window.setTimeout((()=>{re.timeoutId=0,n(3,et=et.filter((Me=>Me.internalId!==re.internalId)))}),je))}function hn(P,X){const ae=(X==null?void 0:X.logError)||ve;if(!P){ae(tt(new Error("Missing id in hide_tooltip action")));return}n(3,et=et.filter(($e=>{const be=$e.desc.id!==P;return!be&&$e.timeoutId&&(clearTimeout($e.timeoutId),$e.timeoutId=null),be})))}function Ut(P,X,ae,$e,be){const Be=(P==null?void 0:P.logError)||ve;if(!M){Be(tt(new Error("Store is not configured")));return}let re=ae;if(!X||!re||!$e||!be){Be(tt(new Error("Missing required params for set_stored_value")));return}if(!qY.has($e)){Be(tt(new Error("Incorrect stored type")));return}if($e==="boolean"&&(re=re==="true"||re==="1"),M.set)M.set(X,$e,re,Number(be));else if(M.setValue){if(!NY.has($e)){Be(tt(new Error("Incorrect stored type")));return}if(typeof re!="string"&&typeof re!="number"&&typeof re!="boolean"){Be(tt(new Error("Incorrect stored value")));return}($e==="integer"||$e==="number")&&(re=Number(re)),M.setValue(X,$e,re,Number(be))}}function Kt(P){Jn(fe(ve,P))}async function Jn(P,X){var ae,$e;const be=P.scope_id,Be=(X==null?void 0:X.logError)||ve;if(be){const Me=nn.get(be);if(Me&&(Me==null?void 0:Me.size)>1)Be(tt(new Error(`Ambiguous scope id. There are ${Me.size} divs with id '${be}'`),{additional:{count:Me.size,scopeId:be}}));else if((Me==null?void 0:Me.size)===1){const Le=Me.values().next().value;Le&&(X=Le)}}const re=P.url?String(P.url):"",je=P.typed;if(Bo(P)){if(re)try{const Me=re.replace(/div-action:\/\//,""),Le=/([^?]+)\?(.+)/.exec(Me);if(!Le)return;const ut=new URLSearchParams(Le[2]);switch(Le[1]){case"set_state":await zn(ut.get("state_id"),X);break;case"set_current_item":case"set_previous_item":case"set_next_item":case"scroll_to_start":case"scroll_to_end":case"scroll_backward":case"scroll_forward":case"scroll_to_position":Jt(Le[1],ut.get("id"),{item:ut.get("item"),step:ut.get("step"),overflow:ut.get("overflow")});break;case"set_variable":const Ze=ut.get("name"),Ct=ut.get("value");if(Ze&&Ct!==null){const Mn=(X==null?void 0:X.getVariable(Ze))||ye.get(Ze);if(Mn){const Qt=Mn.getType();Qt==="dict"||Qt==="array"?Be(tt(new Error(`Setting ${Qt} variables is not supported`),{additional:{name:Ze}})):Mn.set(Ct)}else Be(tt(new Error("Cannot find variable"),{additional:{name:Ze}}))}else Be(tt(new Error("Incorrect set_variable_action"),{additional:{url:Me}}));break;case"timer":const fn=ut.get("action"),Ht=ut.get("id");U?U.execTimerAction(Ht,fn):Be(tt(new Error("Incorrect timer action"),{additional:{id:Ht,action:fn}}));break;case"video":gn(ut.get("id"),ut.get("action"),X);break;case"download":Lt(ut.get("url"),P.download_callbacks,X);break;case"show_tooltip":$n(ut.get("id"),ut.get("multiple"),X);break;case"hide_tooltip":hn(ut.get("id"),X);break;case"set_stored_value":{Ut(X,ut.get("name"),ut.get("value"),ut.get("type"),ut.get("lifetime"));break}default:Be(tt(new Error("Unknown type of action"),{additional:{url:re}}))}}catch(Me){Be(tt(Me,{additional:{url:re}}))}else if(je)switch(je.type){case"set_variable":{const{variable_name:Me,value:Le}=je;if(Me&&Le){const ut=(X==null?void 0:X.getVariable(Me))||ye.get(Me);ut?ut.getType()===Le.type?ut.setValue(Le.value):Be(tt(new Error("Trying to set value with invalid type"),{additional:{name:Me,type:Le.type}})):Be(tt(new Error("Cannot find variable"),{additional:{name:Me}}))}else Be(tt(new Error("Incorrect set_variable action"),{additional:{name:Me}}));break}case"array_insert_value":dY(X,ye,Be,je);break;case"array_remove_value":uY(X,ye,Be,je);break;case"array_set_value":pY(X,ye,Be,je);break;case"copy_to_clipboard":fY(Be,je);break;case"focus_element":{const Me=je.element_id&&St.get(je.element_id);Me?Me.focus():Be(tt(new Error("Incorrect focus_element action"),{additional:{elementId:je.element_id}}));break}case"clear_focus":{try{document.activeElement instanceof HTMLElement&&document.activeElement.blur()}catch{}break}case"dict_set_value":{_Y(X,ye,Be,je);break}case"animator_start":{const Me=je.animator_id&&(X==null?void 0:X.getAnimator(je.animator_id));if(!Me){Be(tt(new Error("Missing animator"),{additional:{animator_id:je.animator_id}}));return}const{duration:Le,start_delay:ut,interpolator:Ze,direction:Ct,repeat_count:fn,start_value:Ht,end_value:Mn}=je,Qt=X?X.getJsonWithVars(Me):fe(ve,Me),Pn={...Qt,end_actions:Me.end_actions,cancel_actions:Me.cancel_actions,duration:Le!==void 0?Le:Qt.duration,start_delay:ut!==void 0?ut:Qt.start_delay,interpolator:Ze!==void 0?Ze:Qt.interpolator,direction:Ct!==void 0?Ct:Qt.direction,repeat_count:fn!==void 0?fn:Qt.repeat_count,start_value_typed:Ht,end_value_typed:Mn},_n=Me.variable_name&&((X==null?void 0:X.getVariable(Me.variable_name))||ye.get(Me.variable_name));if(!_n)return;const Pt=de.get(Me.id);Pt&&Pt.stop();const jn=gY(Pn,_n,(()=>{de.delete(Me.id)}),((In,Dn)=>{const Un=(X==null?void 0:X.execAnyActions)||Kn,ri=X?X.getJsonWithVars(In):fe(ve,In);return Un(ri,Dn)}));jn&&de.set(Me.id,jn);break}case"animator_stop":{const Me=de.get(je.animator_id);Me&&(Me.stop(),de.delete(je.animator_id));break}case"show_tooltip":{$n(je.id,je.multiple,X);break}case"hide_tooltip":{hn(je.id,X);break}case"timer":{U?U.execTimerAction(je.id,je.action):Be(tt(new Error("Incorrect timer action"),{additional:{id:je.id,action:je.action}}));break}case"download":{Lt(je.url,je,X);break}case"video":{gn(je.id,je.action,X);break}case"set_stored_value":{Ut(X,je.name,(ae=je.value)==null?void 0:ae.value,($e=je.value)==null?void 0:$e.type,je.lifetime);break}case"set_state":{await zn(je.state_id,X);break}default:Be(tt(new Error("Unknown type of action"),{additional:{type:je.type}}))}}}async function Kn(P,X={}){if(!P||!Array.isArray(P))return;const ae=P.filter(Bo);for(let $e=0;$e<ae.length;++$e){let be=ae[$e];const Be=be.url,re=be.typed;if(Be){const je=au(Be);if(je)if(cu(je,Z)){if(X.processUrls)if(be.target==="_blank"){const Me=window.open("","_blank");Me&&(Me.opener=null,Me.location=Be)}else location.href=Be}else je==="div-action"?(await Jn(be,X.componentContext),await Fo()):be.log_id&&(fi(be),await Fo())}else re?await Jn(be,X.componentContext):X.node&&Array.isArray(be.menu_items)&&be.menu_items.length&&n(4,Ie={items:be.menu_items,node:X.node,componentContext:X.componentContext})}ae.forEach(($e=>{$e.log_id&&Ge(X.logType||"click",$e)}))}function fi(P){w==null||w(P)}function Ke(P,X){const ae=(P==null?void 0:P.logError)||ve;if(!Array.isArray(X)||!X.length)return;const $e=[];return X.forEach((be=>{let Be=!1;if(typeof be.condition!="string"){ae(tt(new Error("variable_trigger has a condition that is not a string"),{additional:{condition:be.condition}}));return}if(!Array.isArray(be.actions)){ae(tt(new Error("variable_trigger has no actions"),{additional:{condition:be.condition}}));return}const re=be.mode||"on_condition";if(re!=="on_variable"&&re!=="on_condition"){ae(tt(new Error("variable_trigger has an unsupported mode"),{additional:{mode:re}}));return}try{const je=ba(be.condition,{startRule:"JsonStringContents"}),Me=L1(je);if(!Me.length){ae(tt(new Error("variable_trigger must have variables in the condition"),{additional:{condition:be.condition}}));return}const Le=Me.map((Ze=>(P==null?void 0:P.getVariable(Ze))||ye.get(Ze)||rn(Ze))),ut=Ms(Le,(()=>{const Ze=P?P.evalExpression(M,je,{weekStartDay:D}):ia(ye,void 0,M,je,{weekStartDay:D});return Ze.warnings.forEach(ve),Ze.result})).subscribe((async Ze=>{if(Ze.type==="error"){ae(tt(new Error("variable_trigger condition execution error"),{additional:{message:Ze.value}}));return}if(Ze.value&&(re==="on_variable"||re==="on_condition"&&Be===!1)){Be=!!Ze.value;const Ct=be.actions.map((fn=>P?P.getJsonWithVars(fn):fe(ve,fn)));P?await P.execAnyActions(Ct,{logType:"trigger"}):await Kn(Ct,{logType:"trigger"})}else Be=!!Ze.value}));$e.push(ut)}catch{ae(tt(new Error("Unable to parse variable_trigger"),{additional:{condition:be.condition}}))}})),()=>{$e.forEach((be=>{be()}))}}function bt(P){return _e[P]}function ct(P,X){_e[P]=X}const ht=new Map,qt=new Map,St=new Map,Ot=new Map,nn=new Map;function ei(P,X){if(ht.has(P)){ve(tt(new Error("Duplicate instance id"),{additional:{id:P}}));return}ht.set(P,X)}function Ft(P){ht.delete(P)}function xt(P){if(!ht.has(P)){ve(tt(new Error("Missing instance with id"),{additional:{id:P}}));return}return ht.get(P)}function dt(P,X){qt.set(P,X)}function Ye(P){qt.delete(P)}function bi(P,X){St.set(P,X)}function hi(P){St.delete(P)}function Bn(P,X){const ae=X.id;ae&&(Ot.has(ae)&&ve(tt(new Error("Duplicate tooltip id"),{additional:{id:ae}})),Ot.set(ae,{onwerNode:P,tooltip:X}))}function eo(P){const X=P.id;X&&(Ot.delete(X),et.some((ae=>ae.desc.id===X))&&n(3,et=et.filter((ae=>ae.desc.id!==X))))}const Tt=new Map;function Wn(P){Tt.has(P)||Tt.set(P,oY[P]())}function gi(P){return Tt.has(P)||Wn(P),Tt.get(P)}function rn(P){const X=rt.get(P)||Fr(void 0);return rt.has(P)||rt.set(P,X),X}function Nn(){An&&An[B].forEach((P=>{const X=ye.get(P.name);X&&X.setValue(P.color)}))}function Bt(){return Z}function vn(P,X){const ae=v.get(P);if(ae)return new ae(X||{})}function un(P){return{variables:ss(ye,P.variables),processExpressions(X){return fe(ve,X)},execAction:Kt,logError:ve,getComponentProperty(X){return P.getJsonWithVars(P.json[X])},direction:O}}function En(P){const X={id:"",json:{},path:[],templateContext:{},logError(ae){ae.additional=ae.additional||{},ae.additional.path=X.path.join("/");{ae.additional.json=X.json,ae.additional.origJson=X.origJson;const $e=[];let be=X;for(;be.parent;)$e.push(be),be=be.parent;ae.additional.fullpath=$e}ve(ae)},execAnyActions(ae,$e={}){return Kn(ae,{componentContext:X,processUrls:$e.processUrls,node:$e.node,logType:$e.logType})},getDerivedFromVars(ae,$e,be=!1){return Qe(X.logError,ae,ss(X.variables,$e),be,X.customFunctions)},getJsonWithVars(ae,$e,be=!1){return fe(X.logError,ae,ss(X.variables,$e),be,X.customFunctions)},evalExpression(ae,$e,be){return ia(ss(ye,X.variables),X.customFunctions,ae,$e,be)},produceChildContext(ae,$e={}){const be=En(X);let Be=ae,re=X.templateContext;const{templateContext:je,json:Me}=ee(Be,re);if(be.json=Me,be.templateContext=je,be.origJson=ae,be.id=$e.id||Me.id||"",be.id){let Ze=nn.get(be.id);Ze||(Ze=new Set,nn.set(be.id,Ze)),Ze.add(be)}$e.path!==void 0&&be.path.push(String($e.path)),ae.type&&!$e.isRootState&&be.path.push(ae.type),$e.isTooltipRoot&&(be.isTooltipRoot=!0);let Le;Array.isArray(Me.variables)&&(Le=new Map,Me.variables.forEach((Ze=>{const Ct=ft(Ze);Ct&&Le&&Le.set(Ct.getName(),Ct)}))),be.variables=ss(X.variables,ss(Le,$e.variables));let ut;return Array.isArray(Me.functions)&&(ut=new Map,Me.functions.forEach((Ze=>{if(ut){try{ZK(Ze)}catch(Ht){X.logError(tt(Ht));return}const Ct=Ze,fn=ut.get(Ct.name)||[];fn.push(xK(Ct)),ut.set(Ct.name,fn)}}))),be.customFunctions=QK(X.customFunctions,ut),Array.isArray(Me.animators)&&(X.animators=Me.animators.reduce(((Ze,Ct)=>(Ct.id&&(Ze[Ct.id]=Ct),Ze)),{})),$e.fake&&(be.fakeElement=!0),$e.isRootState&&(be.isRootState=!0),be},getVariable(ae,$e){var be;const Be=((be=X.variables)==null?void 0:be.get(ae))||ye.get(ae);if(Be){const re=Be.getType();if($e&&re!==$e){X.logError(tt(new Error(`Variable should have type "${$e}"`),{additional:{name:ae,foundType:re}}));return}}return Be},getAnimator(ae){var $e,be;return(($e=X.animators)==null?void 0:$e[ae])||((be=X.parent)==null?void 0:be.getAnimator(ae))||void 0},registerState(ae,$e){const be=Cm(X.parent);be&&(be.states=be.states||{},be.states[ae]=$e)},unregisterState(ae){const $e=Cm(X.parent);$e!=null&&$e.states&&delete $e.states[ae]},destroy(){const ae=nn.get(X.id);ae&&(ae.delete(X),ae.size||nn.delete(X.id))}};return P?(X.parent=P,X.path=P.path.slice(),P.fakeElement&&(X.fakeElement=!0)):(X.json={type:"root"},X.isRootState=!0),X}function Yn(P){R?Xe.push(P):clearTimeout(P)}Ss(vo,{logStat:Ge,hasTemplate:gt,genId:jt,genClass:zt,execCustomAction:fi,processVariableTriggers:Ke,isRunning:bt,setRunning:ct,registerInstance:ei,unregisterInstance:Ft,registerParentOf:dt,unregisterParentOf:Ye,registerTooltip:Bn,unregisterTooltip:eo,onTooltipClose:oe,tooltipRoot:T,registerFocusable:bi,unregisterFocusable:hi,addSvgFilter:It,removeSvgFilter:cn,registerId:lt,unregisterId:li,getComponentId:wt,preparePrototypeVariables:me,getStore:gi,getCustomization:vt,getBuiltinProtocols:Bt,getExtension:vn,getExtensionContext:un,registerTimeout:Yn,typefaceProvider:A,isDesktop:J,isPointerFocus:xu,customComponents:E,direction:q,componentDevtool:Je}),Ss(Sc,{hasAction(){return!1}}),Ss(qu,{runVisibilityTransition(P,X,ae,$e,be){return Promise.resolve()},registerChildWithTransitionIn(P,X,ae,$e){return Promise.resolve()},registerChildWithTransitionOut(P,X,ae,$e){return Promise.resolve()},registerChildWithTransitionChange(P,X,ae,$e){return Promise.resolve()},hasTransitionChange(P){return!1},registerChild(P){},unregisterChild(P){}}),Ss(Hu,{isEnabled:Cs(!0)});function Ce(P,X){const ae=ye.get(P);return(ae==null?void 0:ae.getType())===X}function bn(P,X){const ae=ye.get(P);ae?ae.setValue(X):ve(tt(new Error("Cannot find variable"),{additional:{name:P}}))}function ft(P){if(!(!P.type||!P.name||!(P.type in ru))){P.type==="integer"&&typeof P.value=="number"&&(P.value>Number.MAX_SAFE_INTEGER||P.value<Number.MIN_SAFE_INTEGER)&&ve(tt(new Error("The value of the integer variable could lose accuracy"),{level:"warn",additional:{name:P.name,value:P.value}}));try{return Ho(P.name,P.type,P.value)}catch(X){ve(tt(X,{additional:{name:P.name}}))}}}function C(P){const X=ft(P);X&&(it.set(P.name,X),ye.set(P.name,X))}const Mt=(i=d==null?void 0:d.card)==null?void 0:i.variables;Array.isArray(Mt)&&Mt.forEach((P=>{if(P&&P.name){if(it.has(P.name)){ve(tt(new Error("Duplicate variable"),{additional:{name:P.name}}));return}C(P)}}));const An=d.palette;An&&An[B].forEach((P=>{if(it.has(P.name)){ve(tt(new Error("Duplicate variable"),{additional:{name:P.name}}));return}try{const X=Ho(P.name,"color",P.color);it.set(P.name,X),ye.set(P.name,X)}catch(X){ve(tt(X,{additional:{name:P.name}}))}}));for(const[P,X]of ge)ye.has(P)||ye.set(P,X);W.subscribe((P=>{if(P&&!ye.has(P)){const X=ge.get(P);ye.set(P,X);const ae=rt.get(P);if(ae){let $e=0;X.subscribe((()=>{ae.set(++$e)}))}}}));const Ni=()=>{var P;Ke(void 0,(P=d==null?void 0:d.card)==null?void 0:P.variable_triggers)},mi=(o=d==null?void 0:d.card)==null?void 0:o.timers;if(mi&&typeof document<"u"){const P=U=new cY({logError:ve,applyVars:X=>fe(ve,X),hasVariableWithType:Ce,setVariableValue:bn,execAnyActions:Kn});mi.forEach((X=>P.createTimer(X)))}const Ne=En();let Ii;function oe(P){n(3,et=et.filter((X=>X.internalId!==P)))}Sr((()=>{Va++,Va===1&&(window.addEventListener("keydown",Rm),window.addEventListener("pointerdown",Bm)),Fo().then((()=>{R&&Ni()}))})),jo((()=>{R=!1,Va--,Va||(window.removeEventListener("keydown",Rm),window.removeEventListener("pointerdown",Bm));for(const[P,X]of de)X.stop();U&&U.destroy(),et.forEach((P=>{P.timeoutId&&(clearTimeout(P.timeoutId),P.timeoutId=null)})),Xe.forEach((P=>{clearTimeout(P)})),_||rY(Oe)}));const ze=()=>n(4,Ie=void 0);return t.$$set=P=>{"id"in P&&n(13,c=P.id),"json"in P&&n(11,d=P.json),"platform"in P&&n(14,u=P.platform),"theme"in P&&n(12,p=P.theme),"globalVariablesController"in P&&n(15,_=P.globalVariablesController),"mix"in P&&n(0,f=P.mix),"customization"in P&&n(16,m=P.customization),"builtinProtocols"in P&&n(17,g=P.builtinProtocols),"extensions"in P&&n(18,v=P.extensions),"onError"in P&&n(19,y=P.onError),"onStat"in P&&n(20,b=P.onStat),"onCustomAction"in P&&n(21,w=P.onCustomAction),"onComponent"in P&&n(22,k=P.onComponent),"typefaceProvider"in P&&n(23,A=P.typefaceProvider),"fetchInit"in P&&n(24,j=P.fetchInit),"tooltipRoot"in P&&n(25,T=P.tooltipRoot),"customComponents"in P&&n(26,E=P.customComponents),"direction"in P&&n(27,O=P.direction),"store"in P&&n(28,M=P.store),"weekStartDay"in P&&n(29,D=P.weekStartDay)},t.$$.update=()=>{var P,X;if(t.$$.dirty[0]&4096|t.$$.dirty[1]&32&&(p==="light"||p==="dark"?n(35,B=p):p==="system"?typeof matchMedia<"u"?(z||(n(36,z=matchMedia("(prefers-color-scheme: dark)")),z.addListener(N)),n(35,B=z.matches?"dark":"light")):n(35,B="light"):ve(tt(new Error("Unsupported theme")))),t.$$.dirty[1]&16&&B&&Nn(),t.$$.dirty[0]&2048){n(1,Q=!1);const ae=eY(d);ae&&(n(1,Q=!0),ve(ae))}if(t.$$.dirty[0]&2048&&(r=d.templates||{}),t.$$.dirty[0]&2048&&(P=d==null?void 0:d.card)!=null&&P.variables&&Array.isArray(d.card.variables)&&d.card.variables!==Mt&&d.card.variables.forEach((ae=>{ae&&ae.name&&!it.has(ae.name)&&C(ae)})),t.$$.dirty[0]&2048&&n(37,s=(X=d==null?void 0:d.card)==null?void 0:X.states),t.$$.dirty[0]&6|t.$$.dirty[1]&64&&s&&!Q&&!se){const ae={type:"state",id:"root",width:{type:"match_parent"},height:{type:"match_parent"},states:s.map(($e=>({state_id:$e.state_id.toString(),div:$e.div})))};n(6,Ii=Ne.produceChildContext(ae,{isRootState:!0}))}},[f,Q,se,et,Ie,an,Ii,l,a,J,q,d,p,c,u,_,m,g,v,y,b,w,k,A,j,T,E,O,M,D,Y,x,ce,ue,Kt,B,z,s,ze]}class HY extends Qi{constructor(e){super(),xi(this,e,BY,FY,Pi,{id:13,json:11,platform:14,theme:12,globalVariablesController:15,mix:0,customization:16,builtinProtocols:17,extensions:18,onError:19,onStat:20,onCustomAction:21,onComponent:22,typefaceProvider:23,fetchInit:24,tooltipRoot:25,customComponents:26,direction:27,store:28,weekStartDay:29,setTheme:30,getDebugVariables:31,getDebugAllVariables:32,setData:33,execAction:34},null,[-1,-1,-1,-1,-1])}get setTheme(){return this.$$.ctx[30]}get getDebugVariables(){return this.$$.ctx[31]}get getDebugAllVariables(){return this.$$.ctx[32]}get setData(){return this.$$.ctx[33]}get execAction(){return this.$$.ctx[34]}}const JY=8;class UY{constructor(e){Xi(this,"widthVariableName"),Xi(this,"heightVariableName"),Xi(this,"resizeObserver"),Xi(this,"context"),Xi(this,"node"),Xi(this,"sizeHistory",{}),this.widthVariableName=e.width_variable_name,this.heightVariableName=e.height_variable_name}setVariable(e,n){if(!this.context)return!1;if(e){const i=this.context.variables.get(e);if(i&&i.getType()==="integer"){if(n=Math.round(n),this.sizeHistory[e]||(this.sizeHistory[e]=new Set),!this.sizeHistory[e].has(n))return i.setValue(n),this.sizeHistory[e].add(n),!0}else{const o=new Error("Missing variable");o.level="error",o.additional={variableName:e},this.context.logError(o)}}return!1}recalcProps(){if(!this.node||!this.context)return!1;const e=this.node.getBoundingClientRect(),n=this.setVariable(this.widthVariableName,e.width),i=this.setVariable(this.heightVariableName,e.height);return n||i}mountView(e,n){var i;this.node=e,this.context=n,!this.resizeObserver&&typeof ResizeObserver<"u"&&(this.resizeObserver=new ResizeObserver((async()=>{let o=0;for(;this.recalcProps();){if(++o>JY){const r=new Error("Recursive layout in size_provider");r.level="warn",r.additional={widthVariableName:this.widthVariableName,heightVariableName:this.heightVariableName},n.logError(r);break}await Fo()}this.sizeHistory={}}))),(i=this.resizeObserver)==null||i.observe(e),this.recalcProps()}unmountView(e,n){var i;(i=this.resizeObserver)==null||i.disconnect(),this.resizeObserver=void 0}}function WY(t){const{target:e,hydrate:n,...i}=t,o=new HY({target:e,props:i,hydrate:n});return{$destroy(){o.$destroy()},execAction(r){o.execAction(r)},setTheme(r){o.setTheme(r)},setData(r){o.setData(r)},getDebugVariables(){return o.getDebugVariables()},getDebugAllVariables(){return o.getDebugAllVariables()}}}function KY(t,e){return YY(t,e).result}function YY(t,e){let n;try{n=ba(t,{startRule:(e==null?void 0:e.type)==="json"?"JsonStringContents":"start"})}catch{return{result:{type:"error",value:"Unable to parse expression"},warnings:[]}}return ia((e==null?void 0:e.variables)||new Map,void 0,void 0,n)}function GY(t,e){return ba(t,{startRule:(e==null?void 0:e.type)==="json"?"JsonStringContents":"start"})}const N2={type:"string",format:"color"},q2={type:"string",format:"uri"},R2={type:"integer",constraint:"number > 0"},B2={type:"integer",constraint:"number >= 0"},H2={type:"number",constraint:"number >= 0"},J2={type:"number",constraint:"number > 0"},U2={oneOf:[{type:"boolean"},{type:"integer",enum:[0,1]}]},W2={type:"string",supports_expressions:!1},XY={color:N2,url:q2,positive_integer:R2,non_negative_integer:B2,non_negative_number:H2,positive_number:J2,boolean_int:U2,id:W2},ZY=Object.freeze(Object.defineProperty({__proto__:null,boolean_int:U2,color:N2,default:XY,id:W2,non_negative_integer:B2,non_negative_number:H2,positive_integer:R2,positive_number:J2,url:q2},Symbol.toStringTag,{value:"Module"})),K2="object",Y2="translations.json#/div_absolute_edge_insets",G2={left:{$ref:"common.json#/non_negative_integer",default_value:"0",$description:"translations.json#/div_edge_insets_left"},right:{$ref:"common.json#/non_negative_integer",default_value:"0",$description:"translations.json#/div_edge_insets_right"},top:{$ref:"common.json#/non_negative_integer",default_value:"0",$description:"translations.json#/div_edge_insets_top"},bottom:{$ref:"common.json#/non_negative_integer",default_value:"0",$description:"translations.json#/div_edge_insets_bottom"}},X2=["android","ios","web"],xY={type:K2,$description:Y2,properties:G2,platforms:X2},QY=Object.freeze(Object.defineProperty({__proto__:null,$description:Y2,default:xY,platforms:X2,properties:G2,type:K2},Symbol.toStringTag,{value:"Module"})),Z2="object",x2="translations.json#/div_accessibility",Q2={description:{type:"string",$description:"translations.json#/div_accessibility_description"},type:{type:"string",enum:["none","button","image","text","edit_text","header","tab_bar","list","select","checkbox","radio","auto"],default_value:"auto",supports_expressions:!1,$description:"translations.json#/div_accessibility_type",platforms:["android","ios","web"]},state_description:{type:"string",$description:"translations.json#/div_accessibility_state_description",platforms:["android","ios"]},hint:{type:"string",$description:"translations.json#/div_accessibility_hint",platforms:["android","ios"]},is_checked:{$ref:"common.json#/boolean_int",$description:"translations.json#/div_accessibility_is_checked",platforms:["web"]},mode:{type:"string",enum:["default","merge","exclude"],default_value:"default",$description:"translations.json#/div_accessibility_mode",platforms:["android","ios"]},mute_after_action:{$ref:"common.json#/boolean_int",default_value:"false",$description:"translations.json#/div_accessibility_mute_after_action",platforms:["ios"]}},eb=["android","ios","web"],eG={type:Z2,$description:x2,properties:Q2,platforms:eb},tG=Object.freeze(Object.defineProperty({__proto__:null,$description:x2,default:eG,platforms:eb,properties:Q2,type:Z2},Symbol.toStringTag,{value:"Module"})),tb="object",nb="translations.json#/div_action_animator_start",ib={type:{type:"string",enum:["animator_start"]},animator_id:{$ref:"common.json#/id",$description:"translations.json#/div_action_animator_start_animator_id"},duration:{$ref:"common.json#/non_negative_integer",long_type:!0,$description:"translations.json#/div_animator_base_duration"},start_delay:{$ref:"common.json#/non_negative_integer",$description:"translations.json#/div_animator_base_start_delay"},interpolator:{$ref:"div-animation-interpolator.json",$description:"translations.json#/div_animator_base_interpolator"},direction:{$ref:"div-animation-direction.json",$description:"translations.json#/div_animator_base_direction"},repeat_count:{$ref:"div-count.json",$description:"translations.json#/div_animator_base_repeat_count"},start_value:{$ref:"div-typed-value.json",$description:"translations.json#/div_action_animator_start_start_value"},end_value:{$ref:"div-typed-value.json",$description:"translations.json#/div_action_animator_start_end_value"}},ob=["ios","android","web"],rb=["type","animator_id"],nG={type:tb,$description:nb,properties:ib,platforms:ob,required:rb},iG=Object.freeze(Object.defineProperty({__proto__:null,$description:nb,default:nG,platforms:ob,properties:ib,required:rb,type:tb},Symbol.toStringTag,{value:"Module"})),sb="object",lb="translations.json#/div_action_animator_stop",ab={type:{type:"string",enum:["animator_stop"]},animator_id:{$ref:"common.json#/id",$description:"translations.json#/div_action_animator_stop_animator_id"}},cb=["android","ios","web"],db=["type","animator_id"],oG={type:sb,$description:lb,properties:ab,platforms:cb,required:db},rG=Object.freeze(Object.defineProperty({__proto__:null,$description:lb,default:oG,platforms:cb,properties:ab,required:db,type:sb},Symbol.toStringTag,{value:"Module"})),ub="object",pb="translations.json#/div_action_array_insert_value",_b={type:{type:"string",enum:["array_insert_value"]},variable_name:{type:"string"},index:{type:"integer"},value:{$ref:"div-typed-value.json"}},fb=["android","ios","web"],mb=["type","variable_name","value"],sG={type:ub,$description:pb,properties:_b,platforms:fb,required:mb},lG=Object.freeze(Object.defineProperty({__proto__:null,$description:pb,default:sG,platforms:fb,properties:_b,required:mb,type:ub},Symbol.toStringTag,{value:"Module"})),gb="object",hb="translations.json#/div_action_array_remove_value",vb={type:{type:"string",enum:["array_remove_value"]},variable_name:{type:"string"},index:{type:"integer"}},bb=["android","ios","web"],yb=["type","variable_name","index"],aG={type:gb,$description:hb,properties:vb,platforms:bb,required:yb},cG=Object.freeze(Object.defineProperty({__proto__:null,$description:hb,default:aG,platforms:bb,properties:vb,required:yb,type:gb},Symbol.toStringTag,{value:"Module"})),wb="object",$b="translations.json#/div_action_array_set_value",kb={type:{type:"string",enum:["array_set_value"]},variable_name:{type:"string"},index:{type:"integer"},value:{$ref:"div-typed-value.json"}},jb=["android","ios","web"],Sb=["type","variable_name","index","value"],dG={type:wb,$description:$b,properties:kb,platforms:jb,required:Sb},uG=Object.freeze(Object.defineProperty({__proto__:null,$description:$b,default:dG,platforms:jb,properties:kb,required:Sb,type:wb},Symbol.toStringTag,{value:"Module"})),Tb={log_id:{type:"string",$description:"translations.json#/div_action_base_log_id"},scope_id:{$ref:"common.json#/id",$description:"translations.json#/div_action_base_scope_id",platforms:["android","ios","web"]},url:{$ref:"common.json#/url",$description:"translations.json#/div_action_base_url"},referer:{$ref:"common.json#/url",$description:"translations.json#/div_action_base_referer",platforms:["android","ios"]},payload:{type:"object",additionalProperties:!0,$description:"translations.json#/div_action_base_payload"},download_callbacks:{$ref:"div-download-callbacks.json",$description:"translations.json#/div_action_base_download_callbacks"},typed:{$ref:"div-action-typed.json"},is_enabled:{$ref:"common.json#/boolean_int",$description:"translations.json#/div_action_base_is_enabled",default_value:"true"}},pG={properties:Tb},_G=Object.freeze(Object.defineProperty({__proto__:null,default:pG,properties:Tb},Symbol.toStringTag,{value:"Module"})),Cb="object",zb="translations.json#/div_action_clear_focus",Eb={type:{type:"string",enum:["clear_focus"]}},Ab=["type"],fG={type:Cb,$description:zb,properties:Eb,required:Ab},mG=Object.freeze(Object.defineProperty({__proto__:null,$description:zb,default:fG,properties:Eb,required:Ab,type:Cb},Symbol.toStringTag,{value:"Module"})),Ob={content_text:{type:"object",properties:{type:{type:"string",enum:["text"]},value:{type:"string"}},required:["type","value"]},content_url:{type:"object",properties:{type:{type:"string",enum:["url"]},value:{$ref:"common.json#/url"}},required:["type","value"]}},Mb=[{$ref:"#/definitions/content_text"},{$ref:"#/definitions/content_url"}],Pb=["android","ios","web"],gG={definitions:Ob,anyOf:Mb,platforms:Pb},hG=Object.freeze(Object.defineProperty({__proto__:null,anyOf:Mb,default:gG,definitions:Ob,platforms:Pb},Symbol.toStringTag,{value:"Module"})),Ib="object",Db="translations.json#/div_action_copy_to_clipboard",Vb={type:{type:"string",enum:["copy_to_clipboard"]},content:{$ref:"div-action-copy-to-clipboard-content.json"}},Lb=["android","ios","web"],Fb=["type","content"],vG={type:Ib,$description:Db,properties:Vb,platforms:Lb,required:Fb},bG=Object.freeze(Object.defineProperty({__proto__:null,$description:Db,default:vG,platforms:Lb,properties:Vb,required:Fb,type:Ib},Symbol.toStringTag,{value:"Module"})),Nb="object",qb="translations.json#/div_action_dict_set_value",Rb={type:{type:"string",enum:["dict_set_value"]},variable_name:{type:"string"},key:{type:"string"},value:{$ref:"div-typed-value.json"}},Bb=["android","ios","web"],Hb=["type","variable_name","key"],yG={type:Nb,$description:qb,properties:Rb,platforms:Bb,required:Hb},wG=Object.freeze(Object.defineProperty({__proto__:null,$description:qb,default:yG,platforms:Bb,properties:Rb,required:Hb,type:Nb},Symbol.toStringTag,{value:"Module"})),Jb="object",Ub="translations.json#/div_action_download",Wb={type:{type:"string",enum:["download"]},url:{$ref:"common.json#/url",$description:"translations.json#/div_action_download_url"},on_fail_actions:{type:"array",items:{$ref:"div-action.json"},$description:"translations.json#/div_download_callbacks_on_fail_actions"},on_success_actions:{type:"array",items:{$ref:"div-action.json"},$description:"translations.json#/div_download_callbacks_on_success_actions"}},Kb=["android","ios","web"],Yb=["type","url"],$G={type:Jb,$description:Ub,properties:Wb,platforms:Kb,required:Yb},kG=Object.freeze(Object.defineProperty({__proto__:null,$description:Ub,default:$G,platforms:Kb,properties:Wb,required:Yb,type:Jb},Symbol.toStringTag,{value:"Module"})),Gb="object",Xb="translations.json#/div_action_focus_element",Zb={type:{type:"string",enum:["focus_element"]},element_id:{type:"string"}},xb=["type","element_id"],jG={type:Gb,$description:Xb,properties:Zb,required:xb},SG=Object.freeze(Object.defineProperty({__proto__:null,$description:Xb,default:jG,properties:Zb,required:xb,type:Gb},Symbol.toStringTag,{value:"Module"})),Qb="object",ey="translations.json#/div_action_hide_tooltip",ty={type:{type:"string",enum:["hide_tooltip"]},id:{$description:"translations.json#/div_action_tooltip_id",type:"string"}},ny=["android","ios","web"],iy=["type","id"],TG={type:Qb,$description:ey,properties:ty,platforms:ny,required:iy},CG=Object.freeze(Object.defineProperty({__proto__:null,$description:ey,default:TG,platforms:ny,properties:ty,required:iy,type:Qb},Symbol.toStringTag,{value:"Module"})),oy={id:{$description:"translations.json#/div_action_scroll_id",type:"string"},animated:{$description:"translations.json#/div_action_scroll_animated",type:"boolean",default_value:"true"}},zG={properties:oy},EG=Object.freeze(Object.defineProperty({__proto__:null,default:zG,properties:oy},Symbol.toStringTag,{value:"Module"})),ry=[{$ref:"div-action-scroll-base.json"},{type:"object",$description:"translations.json#/div_action_scroll_by",properties:{type:{type:"string",enum:["scroll_by"]},overflow:{$description:"translations.json#/div_action_scroll_overflow",type:"string",enum:["clamp","ring"],default_value:"clamp"},offset:{$description:"translations.json#/div_action_scroll_by_offset",type:"integer",default_value:"0"},item_count:{$description:"translations.json#/div_action_scroll_by_item_count",type:"integer",default_value:"0"}},platforms:["android","ios","web"],required:["type","id"]}],AG={allOf:ry},OG=Object.freeze(Object.defineProperty({__proto__:null,allOf:ry,default:AG},Symbol.toStringTag,{value:"Module"})),sy="translations.json#/div_action_scroll_destination",ly={offset_destination:{$description:"translations.json#/div_action_scroll_destination_offset",type:"object",properties:{type:{type:"string",enum:["offset"]},value:{$description:"translations.json#/div_action_scroll_destination_offset_value",$ref:"common.json#/non_negative_integer"}},required:["type","value"]},index_destination:{$description:"translations.json#/div_action_scroll_destination_index",type:"object",properties:{type:{type:"string",enum:["index"]},value:{$description:"translations.json#/div_action_scroll_destination_index_value",$ref:"common.json#/non_negative_integer"}},required:["type","value"]},start_destination:{$description:"translations.json#/div_action_scroll_destination_start",type:"object",properties:{type:{type:"string",enum:["start"]}},required:["type"]},end_destination:{$description:"translations.json#/div_action_scroll_destination_end",type:"object",properties:{type:{type:"string",enum:["end"]}},required:["type"]}},ay=[{$ref:"#/definitions/offset_destination"},{$ref:"#/definitions/index_destination"},{$ref:"#/definitions/start_destination"},{$ref:"#/definitions/end_destination"}],MG={$description:sy,definitions:ly,anyOf:ay},PG=Object.freeze(Object.defineProperty({__proto__:null,$description:sy,anyOf:ay,default:MG,definitions:ly},Symbol.toStringTag,{value:"Module"})),cy=[{$ref:"div-action-scroll-base.json"},{type:"object",$description:"translations.json#/div_action_scroll_to",properties:{type:{type:"string",enum:["scroll_to"]},destination:{$description:"translations.json#/div_action_scroll_to_destination",$ref:"div-action-scroll-destination.json"}},platforms:["android","ios","web"],required:["type","id","destination"]}],IG={allOf:cy},DG=Object.freeze(Object.defineProperty({__proto__:null,allOf:cy,default:IG},Symbol.toStringTag,{value:"Module"})),dy="object",uy="translations.json#/div_action_set_state",py={type:{type:"string",enum:["set_state"]},state_id:{$description:"translations.json#/div_action_set_state_state_id",type:"string"},temporary:{$description:"translations.json#/div_action_set_state_temporary",type:"boolean",default_value:"true",platforms:["android","ios"]}},_y=["android","ios","web"],fy=["type","state_id"],VG={type:dy,$description:uy,properties:py,platforms:_y,required:fy},LG=Object.freeze(Object.defineProperty({__proto__:null,$description:uy,default:VG,platforms:_y,properties:py,required:fy,type:dy},Symbol.toStringTag,{value:"Module"})),my="object",gy="translations.json#/div_action_set_stored_value",hy={type:{type:"string",enum:["set_stored_value"]},name:{$description:"translations.json#/div_action_set_stored_value_name",type:"string"},value:{$description:"translations.json#/div_action_set_stored_value_value",$ref:"div-typed-value.json"},lifetime:{$description:"translations.json#/div_action_set_stored_value_lifetime",type:"integer"}},vy=["android","ios","web"],by=["type","name","value","lifetime"],FG={type:my,$description:gy,properties:hy,platforms:vy,required:by},NG=Object.freeze(Object.defineProperty({__proto__:null,$description:gy,default:FG,platforms:vy,properties:hy,required:by,type:my},Symbol.toStringTag,{value:"Module"})),yy="object",wy="translations.json#/div_action_set_variable",$y={type:{type:"string",enum:["set_variable"]},variable_name:{type:"string"},value:{$ref:"div-typed-value.json"}},ky=["type","variable_name","value"],qG={type:yy,$description:wy,properties:$y,required:ky},RG=Object.freeze(Object.defineProperty({__proto__:null,$description:wy,default:qG,properties:$y,required:ky,type:yy},Symbol.toStringTag,{value:"Module"})),jy="object",Sy="translations.json#/div_action_show_tooltip",Ty={type:{type:"string",enum:["show_tooltip"]},id:{$description:"translations.json#/div_action_tooltip_id",type:"string"},multiple:{$description:"translations.json#/div_action_show_tooltip_multiple",type:"boolean"}},Cy=["android","ios","web"],zy=["type","id"],BG={type:jy,$description:Sy,properties:Ty,platforms:Cy,required:zy},HG=Object.freeze(Object.defineProperty({__proto__:null,$description:Sy,default:BG,platforms:Cy,properties:Ty,required:zy,type:jy},Symbol.toStringTag,{value:"Module"})),Ey="object",Ay="translations.json#/div_action_submit",Oy={parameter:{type:"object",properties:{name:{type:"string"},value:{type:"string"}},required:["name","value"]},request:{type:"object",properties:{url:{$ref:"common.json#/url",$description:"translations.json#/div_action_submit_request_url"},headers:{type:"array",$description:"translations.json#/div_action_submit_request_headers",items:{$ref:"#/definitions/parameter"}},method:{type:"string",default_value:"post",$description:"translations.json#/div_action_submit_request_method",enum:["get","post","put","patch","delete","head","options"]}},required:["url"]}},My={type:{type:"string",enum:["submit"]},container_id:{type:"string",$description:"translations.json#/div_action_submit_container_id"},request:{$ref:"#/definitions/request",$description:"translations.json#/div_action_submit_request"},on_success_actions:{type:"array",items:{$ref:"div-action.json"},$description:"translations.json#/div_action_submit_on_success_actions"},on_fail_actions:{type:"array",items:{$ref:"div-action.json"},$description:"translations.json#/div_action_submit_on_fail_actions"}},Py=["android","ios","web"],Iy=["type","container_id","request"],JG={type:Ey,$description:Ay,definitions:Oy,properties:My,platforms:Py,required:Iy},UG=Object.freeze(Object.defineProperty({__proto__:null,$description:Ay,default:JG,definitions:Oy,platforms:Py,properties:My,required:Iy,type:Ey},Symbol.toStringTag,{value:"Module"})),Dy="object",Vy="translations.json#/div_action_timer",Ly={type:{type:"string",enum:["timer"]},id:{$description:"translations.json#/div_action_timer_id",type:"string"},action:{type:"string",$description:"translations.json#/div_action_timer_action",enum:["start","stop","pause","resume","cancel","reset"]}},Fy=["android","ios","web"],Ny=["type","id","action"],WG={type:Dy,$description:Vy,properties:Ly,platforms:Fy,required:Ny},KG=Object.freeze(Object.defineProperty({__proto__:null,$description:Vy,default:WG,platforms:Fy,properties:Ly,required:Ny,type:Dy},Symbol.toStringTag,{value:"Module"})),qy=[{$ref:"div-action-animator-start.json"},{$ref:"div-action-animator-stop.json"},{$ref:"div-action-array-insert-value.json"},{$ref:"div-action-array-remove-value.json"},{$ref:"div-action-array-set-value.json"},{$ref:"div-action-clear-focus.json"},{$ref:"div-action-copy-to-clipboard.json"},{$ref:"div-action-dict-set-value.json"},{$ref:"div-action-download.json"},{$ref:"div-action-focus-element.json"},{$ref:"div-action-hide-tooltip.json"},{$ref:"div-action-scroll-by.json"},{$ref:"div-action-scroll-to.json"},{$ref:"div-action-set-state.json"},{$ref:"div-action-set-stored-value.json"},{$ref:"div-action-set-variable.json"},{$ref:"div-action-show-tooltip.json"},{$ref:"div-action-submit.json"},{$ref:"div-action-timer.json"},{$ref:"div-action-video.json"}],YG={anyOf:qy},GG=Object.freeze(Object.defineProperty({__proto__:null,anyOf:qy,default:YG},Symbol.toStringTag,{value:"Module"})),Ry="object",By="translations.json#/div_action_video",Hy={type:{type:"string",enum:["video"]},id:{$description:"translations.json#/div_action_video_id",type:"string"},action:{$description:"translations.json#/div_action_video_action",type:"string",enum:["start","pause"]}},Jy=["android","ios","web"],Uy=["type","id","action"],XG={type:Ry,$description:By,properties:Hy,platforms:Jy,required:Uy},ZG=Object.freeze(Object.defineProperty({__proto__:null,$description:By,default:XG,platforms:Jy,properties:Hy,required:Uy,type:Ry},Symbol.toStringTag,{value:"Module"})),Wy={menu_item:{type:"object",properties:{text:{type:"string",$description:"translations.json#/div_action_menu_item_text"},action:{$ref:"div-action.json",$description:"translations.json#/div_action_menu_item_action"},actions:{type:"array",items:{$ref:"div-action.json"},$description:"translations.json#/div_action_menu_item_actions"}},required:["text"]}},Ky=[{$ref:"div-action-base.json"},{type:"object",$description:"translations.json#/div_action",properties:{menu_items:{type:"array",items:{$ref:"#/definitions/menu_item"},$description:"translations.json#/div_action_menu_items"},log_url:{$ref:"common.json#/url",$description:"translations.json#/div_action_log_url"},target:{type:"string",enum:["_self","_blank"],force_enum_field:!0,$description:"translations.json#/div_action_target",platforms:["web"],code_generation_disabled_swift:!0}},required:["log_id"]}],xG={definitions:Wy,allOf:Ky},QG=Object.freeze(Object.defineProperty({__proto__:null,allOf:Ky,default:xG,definitions:Wy},Symbol.toStringTag,{value:"Module"})),Yy={action:{$ref:"div-action.json",$description:"translations.json#/div_actionable_action"},actions:{type:"array",items:{$ref:"div-action.json"},$description:"translations.json#/div_actionable_actions"},longtap_actions:{type:"array",items:{$ref:"div-action.json"},$description:"translations.json#/div_actionable_longtap_actions",platforms:["android","ios","web"]},doubletap_actions:{type:"array",items:{$ref:"div-action.json"},$description:"translations.json#/div_actionable_doubletap_actions",platforms:["android","ios","web"]},press_start_actions:{type:"array",items:{$ref:"div-action.json"},$description:"translations.json#/div_actionable_press_start_actions",platforms:["web","android"]},press_end_actions:{type:"array",items:{$ref:"div-action.json"},$description:"translations.json#/div_actionable_press_end_actions",platforms:["web","android"]},hover_start_actions:{type:"array",items:{$ref:"div-action.json"},$description:"translations.json#/div_actionable_hover_start_actions",platforms:["web","android"]},hover_end_actions:{type:"array",items:{$ref:"div-action.json"},$description:"translations.json#/div_actionable_hover_end_actions",platforms:["web","android"]},action_animation:{$ref:"div-animation.json",default_value:'{"name": "fade", "start_value": 1, "end_value": 0.6, "duration": 100 }',$description:"translations.json#/div_actionable_action_animation",platforms:["android","ios","web"]},capture_focus_on_action:{type:"boolean",default_value:"true",$description:"translations.json#/div_actionable_capture_focus_on_action",platforms:[]}},eX={properties:Yy},tX=Object.freeze(Object.defineProperty({__proto__:null,default:eX,properties:Yy},Symbol.toStringTag,{value:"Module"})),Gy="string",nX={type:Gy,enum:["left","center","right","start","end"]},iX=Object.freeze(Object.defineProperty({__proto__:null,default:nX,type:Gy},Symbol.toStringTag,{value:"Module"})),Xy="string",oX={type:Xy,enum:["top","center","bottom","baseline"]},rX=Object.freeze(Object.defineProperty({__proto__:null,default:oX,type:Xy},Symbol.toStringTag,{value:"Module"})),Zy="string",sX={type:Zy,enum:["normal","reverse","alternate","alternate_reverse"]},lX=Object.freeze(Object.defineProperty({__proto__:null,default:sX,type:Zy},Symbol.toStringTag,{value:"Module"})),xy="string",Qy="translations.json#/div_animation_interpolator",ew=["android","ios","web"],aX={type:xy,enum:["linear","ease","ease_in","ease_out","ease_in_out","spring"],$description:Qy,platforms:ew},cX=Object.freeze(Object.defineProperty({__proto__:null,$description:Qy,default:aX,platforms:ew,type:xy},Symbol.toStringTag,{value:"Module"})),tw="object",nw="translations.json#/div_animation",iw={name:{type:"string",enum:["fade","translate","scale","native","set","no_animation"],$description:"translations.json#/div_animation_name"},duration:{$ref:"common.json#/non_negative_integer",default_value:"300",$description:"translations.json#/div_animation_duration"},start_delay:{$ref:"common.json#/non_negative_integer",default_value:"0",$description:"translations.json#/div_animation_start_delay"},start_value:{type:"number",$description:"translations.json#/div_animation_start_value"},end_value:{type:"number",$description:"translations.json#/div_animation_end_value"},repeat:{alias_swift:"repeat_count",$ref:"div-count.json",default_value:'{ "type": "infinity" }',$description:"translations.json#/div_animation_repeat"},interpolator:{$ref:"div-animation-interpolator.json",default_value:"spring",$description:"translations.json#/div_animation_interpolator"},items:{type:"array",items:{$ref:"div-animation.json"},$description:"translations.json#/div_animation_items"}},ow=["android","ios","web"],rw=["name"],dX={type:tw,$description:nw,properties:iw,platforms:ow,required:rw},uX=Object.freeze(Object.defineProperty({__proto__:null,$description:nw,default:dX,platforms:ow,properties:iw,required:rw,type:tw},Symbol.toStringTag,{value:"Module"})),sw="div-animator-base",lw="object",aw={id:{$ref:"common.json#/id",$description:"translations.json#/div_animator_base_id"},variable_name:{$ref:"div-variable-name.json",$description:"translations.json#/div_animator_base_variable_name"},duration:{$ref:"common.json#/non_negative_integer",long_type:!0,$description:"translations.json#/div_animator_base_duration"},start_delay:{$ref:"common.json#/non_negative_integer",default_value:"0",$description:"translations.json#/div_animator_base_start_delay"},interpolator:{$ref:"div-animation-interpolator.json",default_value:"linear",$description:"translations.json#/div_animator_base_interpolator"},direction:{$ref:"div-animation-direction.json",default_value:"normal",$description:"translations.json#/div_animator_base_direction"},repeat_count:{$ref:"div-count.json",default_value:'{"type": "fixed", "value": 1}',$description:"translations.json#/div_animator_base_repeat_count"},end_actions:{type:"array",items:{$ref:"div-action.json"},$description:"translations.json#/div_animator_base_end_actions"},cancel_actions:{type:"array",items:{$ref:"div-action.json"},$description:"translations.json#/div_animator_base_cancel_actions"}},cw=["id","variable_name","duration"],pX={protocol_name:sw,type:lw,properties:aw,required:cw},_X=Object.freeze(Object.defineProperty({__proto__:null,default:pX,properties:aw,protocol_name:sw,required:cw,type:lw},Symbol.toStringTag,{value:"Module"})),dw=[{$ref:"div-color-animator.json",$description:"translations.json#/div_color_animator"},{$ref:"div-number-animator.json",$description:"translations.json#/div_number_animator"}],fX={anyOf:dw},mX=Object.freeze(Object.defineProperty({__proto__:null,anyOf:dw,default:fX},Symbol.toStringTag,{value:"Module"})),uw="object",pw="translations.json#/div_appearance_set_transition",_w={type:{type:"string",enum:["set"]},items:{type:"array",items:{$ref:"div-appearance-transition.json"},minItems:1,$description:"translations.json#/div_appearance_set_transition_items"}},fw=["android","ios","web"],mw=["type","items"],gX={type:uw,$description:pw,properties:_w,platforms:fw,required:mw},hX=Object.freeze(Object.defineProperty({__proto__:null,$description:pw,default:gX,platforms:fw,properties:_w,required:mw,type:uw},Symbol.toStringTag,{value:"Module"})),gw="translations.json#/div_appearance_transition",hw=[{$ref:"div-appearance-set-transition.json",$description:"translations.json#/div_appearance_transition_set"},{$ref:"div-fade-transition.json",$description:"translations.json#/div_appearance_transition_fade"},{$ref:"div-scale-transition.json",$description:"translations.json#/div_appearance_transition_scale"},{$ref:"div-slide-transition.json",$description:"translations.json#/div_appearance_transition_slide"}],vX={$description:gw,anyOf:hw},bX=Object.freeze(Object.defineProperty({__proto__:null,$description:gw,anyOf:hw,default:vX},Symbol.toStringTag,{value:"Module"})),vw="object",bw="translations.json#/div_aspect",yw={ratio:{$ref:"common.json#/positive_number",$description:"translations.json#/div_aspect_ratio"}},ww=["ratio"],yX={type:vw,$description:bw,properties:yw,required:ww},wX=Object.freeze(Object.defineProperty({__proto__:null,$description:bw,default:yX,properties:yw,required:ww,type:vw},Symbol.toStringTag,{value:"Module"})),$w=[{$ref:"div-linear-gradient.json",$description:"translations.json#/div_gradient_linear"},{$ref:"div-radial-gradient.json",$description:"translations.json#/div_gradient_radial"},{$ref:"div-image-background.json",$description:"translations.json#/div_background_image"},{$ref:"div-solid-background.json",$description:"translations.json#/div_background_solid"},{$ref:"div-nine-patch-background.json",$description:"translations.json#/div_nine_patch_background"}],$X={anyOf:$w},kX=Object.freeze(Object.defineProperty({__proto__:null,anyOf:$w,default:$X},Symbol.toStringTag,{value:"Module"})),kw="div-base",jw={swift:{super_protocol:"DivBlockModeling"},documentation:{include_in_toc:!0}},Sw="object",Tw={id:{$ref:"common.json#/id",$description:"translations.json#/div_base_id"},border:{$ref:"div-border.json",$description:"translations.json#/div_base_border"},width:{$ref:"div-size.json",default_value:'{"type": "match_parent"}',$description:"translations.json#/div_base_width"},height:{$ref:"div-size.json",default_value:'{"type": "wrap_content"}',$description:"translations.json#/div_base_height"},background:{type:"array",items:{$ref:"div-background.json"},$description:"translations.json#/div_base_background"},paddings:{$ref:"div-edge-insets.json",$description:"translations.json#/div_base_paddings"},margins:{$ref:"div-edge-insets.json",$description:"translations.json#/div_base_margins"},alpha:{type:"number",default_value:"1.0",constraint:"number >= 0.0 && number <= 1.0",$description:"translations.json#/div_base_alpha"},alignment_vertical:{$ref:"div-alignment-vertical.json",$description:"translations.json#/div_base_alignment_vertical"},alignment_horizontal:{$ref:"div-alignment-horizontal.json",$description:"translations.json#/div_base_alignment_horizontal"},animators:{type:"array",items:{$ref:"div-animator.json"},$description:"translations.json#/div_base_animators",platforms:["android","ios","web"]},row_span:{$ref:"common.json#/non_negative_integer",$description:"translations.json#/div_base_row_span",platforms:["android","ios","web"]},column_span:{$ref:"common.json#/non_negative_integer",$description:"translations.json#/div_base_column_span",platforms:["android","ios","web"]},visibility_action:{$ref:"div-visibility-action.json",$description:"translations.json#/div_base_visibility_action"},visibility_actions:{type:"array",items:{$ref:"div-visibility-action.json"},$description:"translations.json#/div_base_visibility_actions"},disappear_actions:{type:"array",items:{$ref:"div-disappear-action.json"},$description:"translations.json#/div_base_disappear_actions",platforms:["android","ios","web"]},tooltips:{type:"array",items:{$ref:"div-tooltip.json"},$description:"translations.json#/div_base_tooltips",platforms:["android","ios","web"]},accessibility:{$ref:"div-accessibility.json",$description:"translations.json#/div_base_accessibility",platforms:["android","ios","web"]},extensions:{type:"array",items:{$ref:"div-extension.json"},$description:"translations.json#/div_base_extensions",platforms:["android","ios","web"]},transition_triggers:{type:"array",items:{$ref:"div-transition-trigger.json"},minItems:1,supports_expressions:!1,$description:"translations.json#/div_base_transition_triggers",platforms:["android","ios","web"]},transition_in:{$ref:"div-appearance-transition.json",$description:"translations.json#/div_base_transition_in",platforms:["android","ios","web"]},transition_change:{$ref:"div-change-transition.json",$description:"translations.json#/div_base_transition_change",platforms:["android","ios","web"]},transition_out:{$ref:"div-appearance-transition.json",$description:"translations.json#/div_base_transition_out",platforms:["android","ios","web"]},selected_actions:{type:"array",items:{$ref:"div-action.json"},$description:"translations.json#/div_base_selected_actions",platforms:["android","ios","web"]},focus:{$ref:"div-focus.json",$description:"translations.json#/div_base_focus"},visibility:{$ref:"div-visibility.json",$description:"translations.json#/div_base_visibility",default_value:"visible"},functions:{type:"array",items:{$ref:"div-function.json"},$description:"translations.json#/div_base_functions",platforms:["android","ios","web"]},variables:{type:"array",items:{$ref:"div-variable.json"},$description:"translations.json#/div_base_variables",platforms:["ios","web","android"]},variable_triggers:{type:"array",items:{$ref:"div-trigger.json"},$description:"translations.json#/div_base_variable_triggers",platforms:["android","ios","web"]},transform:{$ref:"div-transform.json",$description:"translations.json#/div_base_transform",platforms:["android","ios","web"]},layout_provider:{$ref:"div-layout-provider.json",$description:"translations.json#/div_layout_provider",platforms:["android","ios","web"]},reuse_id:{type:"string",$description:"translations.json#/div_reuse_id",platforms:["android","ios"],unsupported_platforms:{web:"No need for reuse identifier"}}},jX={protocol_name:kw,codegen:jw,type:Sw,properties:Tw},SX=Object.freeze(Object.defineProperty({__proto__:null,codegen:jw,default:jX,properties:Tw,protocol_name:kw,type:Sw},Symbol.toStringTag,{value:"Module"})),Cw="string",zw="translations.json#/div_blend_mode",TX={type:Cw,enum:["source_in","source_atop","darken","lighten","multiply","screen"],$description:zw},CX=Object.freeze(Object.defineProperty({__proto__:null,$description:zw,default:TX,type:Cw},Symbol.toStringTag,{value:"Module"})),Ew="object",Aw="translations.json#/div_blur",Ow={radius:{$ref:"common.json#/non_negative_integer",$description:"translations.json#/div_blur_radius"},type:{type:"string",enum:["blur"]}},Mw=["radius","type"],zX={type:Ew,$description:Aw,properties:Ow,required:Mw},EX=Object.freeze(Object.defineProperty({__proto__:null,$description:Aw,default:zX,properties:Ow,required:Mw,type:Ew},Symbol.toStringTag,{value:"Module"})),Pw="object",Iw="translations.json#/div_border",Dw={has_shadow:{$ref:"common.json#/boolean_int",default_value:"false",$description:"translations.json#/div_border_has_shadow"},shadow:{$ref:"div-shadow.json",$description:"translations.json#/div_border_shadow"},stroke:{$ref:"div-stroke.json",$description:"translations.json#/div_border_stroke"},corner_radius:{$ref:"common.json#/non_negative_integer",$description:"translations.json#/div_border_corner_radius"},corners_radius:{$ref:"div-corners-radius.json",$description:"translations.json#/div_border_corners_radius"}},AX={type:Pw,$description:Iw,properties:Dw},OX=Object.freeze(Object.defineProperty({__proto__:null,$description:Iw,default:AX,properties:Dw,type:Pw},Symbol.toStringTag,{value:"Module"})),Vw="translations.json#/div_change_bounds_transition",Lw=[{$ref:"div-transition-base.json"},{properties:{type:{type:"string",enum:["change_bounds"]}}}],Fw=["type"],MX={$description:Vw,allOf:Lw,required:Fw},PX=Object.freeze(Object.defineProperty({__proto__:null,$description:Vw,allOf:Lw,default:MX,required:Fw},Symbol.toStringTag,{value:"Module"})),Nw="object",qw="translations.json#/div_change_set_transition",Rw={type:{type:"string",enum:["set"]},items:{type:"array",items:{$ref:"div-change-transition.json"},minItems:1,$description:"translations.json#/div_change_set_transition_items"}},Bw=["android","ios","web"],Hw=["type","items"],IX={type:Nw,$description:qw,properties:Rw,platforms:Bw,required:Hw},DX=Object.freeze(Object.defineProperty({__proto__:null,$description:qw,default:IX,platforms:Bw,properties:Rw,required:Hw,type:Nw},Symbol.toStringTag,{value:"Module"})),Jw="translations.json#/div_change_transition",Uw=[{$ref:"div-change-set-transition.json",$description:"translations.json#/div_change_transition_set",platforms:["android","ios","web"]},{$ref:"div-change-bounds-transition.json",$description:"translations.json#/div_change_transition_bounds",platforms:["android","ios","web"]}],VX={$description:Jw,anyOf:Uw},LX=Object.freeze(Object.defineProperty({__proto__:null,$description:Jw,anyOf:Uw,default:VX},Symbol.toStringTag,{value:"Module"})),Ww="translations.json#/div_circle_shape",Kw=[{$ref:"div-shape-base.json"},{type:"object",properties:{radius:{$ref:"div-fixed-size.json",default_value:'{"type":"fixed","value":10}',$description:"translations.json#/div_circle_shape_radius"},type:{type:"string",enum:["circle"]}}}],Yw=["android","web"],Gw=["type"],FX={$description:Ww,allOf:Kw,platforms:Yw,required:Gw},NX=Object.freeze(Object.defineProperty({__proto__:null,$description:Ww,allOf:Kw,default:FX,platforms:Yw,required:Gw},Symbol.toStringTag,{value:"Module"})),Xw="object",Zw="translations.json#/div_cloud_background",xw=["android","web"],Qw={type:{type:"string",enum:["cloud"]},color:{$ref:"common.json#/color",$description:"translations.json#/div_cloud_background_color"},corner_radius:{$ref:"common.json#/non_negative_integer",$description:"translations.json#/div_cloud_background_corner_radius"},paddings:{$ref:"div-edge-insets.json",$description:"translations.json#/div_cloud_background_paddings"}},e3=["type","color","corner_radius"],qX={type:Xw,$description:Zw,platforms:xw,properties:Qw,required:e3},RX=Object.freeze(Object.defineProperty({__proto__:null,$description:Zw,default:qX,platforms:xw,properties:Qw,required:e3,type:Xw},Symbol.toStringTag,{value:"Module"})),t3="object",n3={data_element_name:{type:"string",default_value:"it",supports_expressions:!1,$description:"translations.json#/div_collection_item_builder_prototypes_data_element_name"},data:{type:"array",$description:"translations.json#/div_collection_item_builder_data"},prototypes:{type:"array",minItems:1,items:{type:"object",properties:{selector:{$ref:"common.json#/boolean_int",default_value:"true",$description:"translations.json#/div_collection_item_builder_prototypes_selector"},id:{type:"string",$description:"translations.json#/div_collection_item_builder_prototypes_id"},div:{$ref:"div.json",$description:"translations.json#/div_collection_item_builder_prototypes_div"}},required:["div"]},$description:"translations.json#/div_collection_item_builder_prototypes"}},i3=["android","ios","web"],o3=["data","prototypes"],BX={type:t3,properties:n3,platforms:i3,required:o3},HX=Object.freeze(Object.defineProperty({__proto__:null,default:BX,platforms:i3,properties:n3,required:o3,type:t3},Symbol.toStringTag,{value:"Module"})),r3="translations.json#/div_color_animator",s3=[{$ref:"div-animator-base.json"},{properties:{type:{type:"string",enum:["color_animator"]},start_value:{$ref:"common.json#/color",$description:"translations.json#/div_animator_start_value"},end_value:{$ref:"common.json#/color",$description:"translations.json#/div_animator_end_value"}},required:["type","end_value"],platforms:["android","ios","web"]}],JX={$description:r3,allOf:s3},UX=Object.freeze(Object.defineProperty({__proto__:null,$description:r3,allOf:s3,default:JX},Symbol.toStringTag,{value:"Module"})),l3="translations.json#/div_container",a3={divan:{forced_properties_order:["orientation"],factories:{row:{vararg_property:"items",inlines:{orientation:"horizontal"}},column:{vararg_property:"items",inlines:{orientation:"vertical"}},stack:{vararg_property:"items",inlines:{orientation:"overlap"}}}},swift:{generate_optional_arguments:!1},typescript:{union_interfaces:[{required_params:["items"]},{required_params:["item_builder"]}]}},c3={separator:{type:"object",platforms:["android","ios","web"],properties:{show_at_start:{$ref:"common.json#/boolean_int",$description:"translations.json#/div_container_separator_show_at_start",default_value:"false"},show_between:{$ref:"common.json#/boolean_int",$description:"translations.json#/div_container_separator_show_between",default_value:"true"},show_at_end:{$ref:"common.json#/boolean_int",$description:"translations.json#/div_container_separator_show_at_end",default_value:"false"},style:{$ref:"div-drawable.json",$description:"translations.json#/div_container_separator_style"},margins:{$ref:"div-edge-insets.json",$description:"translations.json#/div_base_margins"}},required:["style"]}},d3=[{$ref:"div-base.json"},{$ref:"div-actionable.json"},{properties:{type:{type:"string",enum:["container"]},content_alignment_vertical:{$ref:"div-content-alignment-vertical.json",default_value:"top",$description:"translations.json#/div_container_content_alignment_vertical"},content_alignment_horizontal:{$ref:"div-content-alignment-horizontal.json",default_value:"start",$description:"translations.json#/div_container_content_alignment_horizontal"},orientation:{type:"string",enum:["vertical","horizontal","overlap"],default_value:"vertical",$description:"translations.json#/div_container_orientation"},layout_mode:{type:"string",enum:["no_wrap","wrap"],default_value:"no_wrap",$description:"translations.json#/div_container_layout_mode"},separator:{$ref:"#/definitions/separator",$description:"translations.json#/div_container_separator",platforms:["android","ios","web"]},line_separator:{$ref:"#/definitions/separator",$description:"translations.json#/div_container_line_separator",platforms:["android","ios","web"]},items:{type:"array",items:{$ref:"div.json"},$description:"translations.json#/div_container_items"},item_builder:{$ref:"div-collection-item-builder.json",$description:"translations.json#/div_collection_item_builder",platforms:["android","ios","web"]},aspect:{$ref:"div-aspect.json",$description:"translations.json#/div_container_aspect"},clip_to_bounds:{$ref:"common.json#/boolean_int",default_value:"true",$description:"translations.json#/div_clip_to_bounds",platforms:["android","ios","web"]}}}],u3=["type"],WX={$description:l3,codegen:a3,definitions:c3,allOf:d3,required:u3},KX=Object.freeze(Object.defineProperty({__proto__:null,$description:l3,allOf:d3,codegen:a3,default:WX,definitions:c3,required:u3},Symbol.toStringTag,{value:"Module"})),p3="string",YX={type:p3,enum:["left","center","right","start","end","space-between","space-around","space-evenly"]},GX=Object.freeze(Object.defineProperty({__proto__:null,default:YX,type:p3},Symbol.toStringTag,{value:"Module"})),_3="string",XX={type:_3,enum:["top","center","bottom","baseline","space-between","space-around","space-evenly"]},ZX=Object.freeze(Object.defineProperty({__proto__:null,default:XX,type:_3},Symbol.toStringTag,{value:"Module"})),f3="object",m3="translations.json#/div_corners_radius",g3={"top-left":{$ref:"common.json#/non_negative_integer",$description:"translations.json#/div_corners_radius_top_left"},"top-right":{$ref:"common.json#/non_negative_integer",$description:"translations.json#/div_corners_radius_top_right"},"bottom-left":{$ref:"common.json#/non_negative_integer",$description:"translations.json#/div_corners_radius_bottom_left"},"bottom-right":{$ref:"common.json#/non_negative_integer",$description:"translations.json#/div_corners_radius_bottom_right"}},xX={type:f3,$description:m3,properties:g3},QX=Object.freeze(Object.defineProperty({__proto__:null,$description:m3,default:xX,properties:g3,type:f3},Symbol.toStringTag,{value:"Module"})),h3=[{$ref:"div-infinity-count.json",$description:"translations.json#/div_count_infinity"},{$ref:"div-fixed-count.json",$description:"translations.json#/div_count_fixed"}],eZ={anyOf:h3},tZ=Object.freeze(Object.defineProperty({__proto__:null,anyOf:h3,default:eZ},Symbol.toStringTag,{value:"Module"})),v3="translations.json#/div_input_mask_currency",b3=[{$ref:"div-input-mask-base.json"},{properties:{type:{type:"string",enum:["currency"]},locale:{type:"string",$description:"translations.json#/div_input_mask_currency_locale"}}}],y3=["android","ios","web"],w3=["type"],nZ={$description:v3,allOf:b3,platforms:y3,required:w3},iZ=Object.freeze(Object.defineProperty({__proto__:null,$description:v3,allOf:b3,default:nZ,platforms:y3,required:w3},Symbol.toStringTag,{value:"Module"})),$3="translations.json#/div_custom",k3=[{$ref:"div-base.json"},{properties:{type:{type:"string",enum:["custom"]},items:{type:"array",items:{$ref:"div.json"},$description:"translations.json#/div_custom_items"},custom_type:{type:"string",supports_expressions:!1,$description:"translations.json#/div_custom_custom_type"},custom_props:{type:"object",additionalProperties:!0,$description:"translations.json#/div_custom_custom_props"}}}],j3=["type","custom_type"],oZ={$description:$3,allOf:k3,required:j3},rZ=Object.freeze(Object.defineProperty({__proto__:null,$description:$3,allOf:k3,default:oZ,required:j3},Symbol.toStringTag,{value:"Module"})),S3="translations.json#/div_data",T3=!1,C3={divan:{plus_operator:!1,required_properties_at_factory:!0,forced_properties_order:["log_id","states"]},swift:{generate_optional_arguments:!1}},z3={div_state:{type:"object",typescript_templatable:!1,codegen:{divan:{alias_factory:"root",required_properties_at_factory:!0,forced_properties_order:["state_id","div"]},swift:{generate_optional_arguments:!1}},properties:{state_id:{type:"integer",supports_expressions:!1,$description:"translations.json#/div_data_div_state_state_id"},div:{$ref:"div.json",$description:"translations.json#/div_data_div_state_div"}},required:["state_id","div"]}},E3="object",A3={states:{type:"array",items:{$ref:"#/definitions/div_state"},minItems:1,$description:"translations.json#/div_data_states"},log_id:{$ref:"common.json#/id",$description:"translations.json#/div_data_log_id"},transition_animation_selector:{$ref:"div-transition-selector.json",default_value:"none",$description:"translations.json#/div_data_transition_animation_selector",deprecated:!0,platforms:["android","ios"]},functions:{type:"array",items:{$ref:"div-function.json"},platforms:["ios","web"],$description:"translations.json#/div_data_functions"},variables:{type:"array",items:{$ref:"div-variable.json"},$description:"translations.json#/div_data_variables"},variable_triggers:{type:"array",items:{$ref:"div-trigger.json"},$description:"translations.json#/div_data_variable_triggers"},timers:{type:"array",items:{$ref:"div-timer.json"},$description:"translations.json#/div_data_timers"}},O3=["states","log_id"],sZ={$description:S3,typescript_templatable:T3,codegen:C3,definitions:z3,type:E3,properties:A3,required:O3},lZ=Object.freeze(Object.defineProperty({__proto__:null,$description:S3,codegen:C3,default:sZ,definitions:z3,properties:A3,required:O3,type:E3,typescript_templatable:T3},Symbol.toStringTag,{value:"Module"})),M3="object",P3="translations.json#/div_match_parent_size",I3={space_between_centers:{$ref:"div-fixed-size.json",default_value:'{"type": "fixed","value":15}',$description:"translations.json#/div_indicator_space_between_centers"},type:{type:"string",enum:["default"]}},D3=["android","ios","web"],V3=["type"],aZ={type:M3,$description:P3,properties:I3,platforms:D3,required:V3},cZ=Object.freeze(Object.defineProperty({__proto__:null,$description:P3,default:aZ,platforms:D3,properties:I3,required:V3,type:M3},Symbol.toStringTag,{value:"Module"})),L3="object",F3="translations.json#/div_dimension",N3={divan:{forced_properties_order:["value"]}},q3={value:{type:"number",$description:"translations.json#/div_dimension_value"},unit:{$ref:"div-size-unit.json",default_value:"dp"}},R3=["value"],dZ={type:L3,$description:F3,codegen:N3,properties:q3,required:R3},uZ=Object.freeze(Object.defineProperty({__proto__:null,$description:F3,codegen:N3,default:dZ,properties:q3,required:R3,type:L3},Symbol.toStringTag,{value:"Module"})),B3="translations.json#/div_disappear_action",H3=[{$ref:"div-sight-action.json"},{properties:{visibility_percentage:{type:"integer",constraint:"number >= 0 && number < 100",default_value:"0",$description:"translations.json#/div_disappear_action_visibility_percentage"},disappear_duration:{$ref:"common.json#/non_negative_integer",default_value:"800",$description:"translations.json#/div_disappear_action_disappear_duration"}}}],pZ={$description:B3,allOf:H3},_Z=Object.freeze(Object.defineProperty({__proto__:null,$description:B3,allOf:H3,default:pZ},Symbol.toStringTag,{value:"Module"})),J3="object",U3="translations.json#/div_download_callbacks",W3={on_fail_actions:{type:"array",items:{$ref:"div-action.json"},$description:"translations.json#/div_download_callbacks_on_fail_actions"},on_success_actions:{type:"array",items:{$ref:"div-action.json"},$description:"translations.json#/div_download_callbacks_on_success_actions"}},fZ={type:J3,$description:U3,properties:W3},mZ=Object.freeze(Object.defineProperty({__proto__:null,$description:U3,default:fZ,properties:W3,type:J3},Symbol.toStringTag,{value:"Module"})),K3=[{$ref:"div-shape-drawable.json",$description:"translations.json#/div_shape_drawable"}],Y3=["android","ios","web"],gZ={anyOf:K3,platforms:Y3},hZ=Object.freeze(Object.defineProperty({__proto__:null,anyOf:K3,default:gZ,platforms:Y3},Symbol.toStringTag,{value:"Module"})),G3="object",X3="translations.json#/div_edge_insets",Z3={left:{$ref:"common.json#/non_negative_integer",default_value:"0",$description:"translations.json#/div_edge_insets_left"},right:{$ref:"common.json#/non_negative_integer",default_value:"0",$description:"translations.json#/div_edge_insets_right"},top:{$ref:"common.json#/non_negative_integer",default_value:"0",$description:"translations.json#/div_edge_insets_top"},bottom:{$ref:"common.json#/non_negative_integer",default_value:"0",$description:"translations.json#/div_edge_insets_bottom"},start:{$ref:"common.json#/non_negative_integer",$description:"translations.json#/div_edge_insets_start"},end:{$ref:"common.json#/non_negative_integer",$description:"translations.json#/div_edge_insets_end"},unit:{$ref:"div-size-unit.json",default_value:"dp",platforms:["android","ios"]}},vZ={type:G3,$description:X3,properties:Z3},bZ=Object.freeze(Object.defineProperty({__proto__:null,$description:X3,default:vZ,properties:Z3,type:G3},Symbol.toStringTag,{value:"Module"})),x3="string",Q3="translations.json#/div_evaluable_type",yZ={type:x3,$description:Q3,enum:["string","integer","number","boolean","datetime","color","url","dict","array"]},wZ=Object.freeze(Object.defineProperty({__proto__:null,$description:Q3,default:yZ,type:x3},Symbol.toStringTag,{value:"Module"})),e$="object",t$="translations.json#/div_extension",n$=["android","ios","web"],i$={id:{$ref:"common.json#/id",$description:"translations.json#/div_extension_id"},params:{type:"object",additionalProperties:!0,$description:"translations.json#/div_extension_params"}},o$=["id"],$Z={type:e$,$description:t$,platforms:n$,properties:i$,required:o$},kZ=Object.freeze(Object.defineProperty({__proto__:null,$description:t$,default:$Z,platforms:n$,properties:i$,required:o$,type:e$},Symbol.toStringTag,{value:"Module"})),r$="translations.json#/div_fade_transition",s$=[{$ref:"div-transition-base.json"},{properties:{type:{type:"string",enum:["fade"]},alpha:{type:"number",constraint:"number >= 0.0 && number <= 1.0",default_value:"0.0",$description:"translations.json#/div_fade_transition_alpha"}}}],l$=["type"],jZ={$description:r$,allOf:s$,required:l$},SZ=Object.freeze(Object.defineProperty({__proto__:null,$description:r$,allOf:s$,default:jZ,required:l$},Symbol.toStringTag,{value:"Module"})),a$="object",c$="translations.json#/div_filter_rtl_mirror",d$={type:{type:"string",enum:["rtl_mirror"]}},u$=["type"],TZ={type:a$,$description:c$,properties:d$,required:u$},CZ=Object.freeze(Object.defineProperty({__proto__:null,$description:c$,default:TZ,properties:d$,required:u$,type:a$},Symbol.toStringTag,{value:"Module"})),p$=[{$ref:"div-blur.json",$description:"translations.json#/div_filter"},{$ref:"div-filter-rtl-mirror.json",$description:"translations.json#/div_filter_rtl_mirror",platforms:["android","web","flutter"]}],zZ={anyOf:p$},EZ=Object.freeze(Object.defineProperty({__proto__:null,anyOf:p$,default:zZ},Symbol.toStringTag,{value:"Module"})),_$="object",f$="translations.json#/div_fixed_count",m$={value:{$ref:"common.json#/non_negative_integer",$description:"translations.json#/div_fixed_count_value"},type:{type:"string",enum:["fixed"]}},g$=["android","ios","web"],h$=["value","type"],AZ={type:_$,$description:f$,properties:m$,platforms:g$,required:h$},OZ=Object.freeze(Object.defineProperty({__proto__:null,$description:f$,default:AZ,platforms:g$,properties:m$,required:h$,type:_$},Symbol.toStringTag,{value:"Module"})),v$="translations.json#/div_input_mask_fixed_length",b$=[{$ref:"div-input-mask-base.json"},{properties:{type:{type:"string",enum:["fixed_length"]},pattern:{type:"string",$description:"translations.json#/div_input_mask_fixed_length_pattern"},pattern_elements:{type:"array",items:{type:"object",$description:"translations.json#/div_input_mask_fixed_length_pattern_elements",properties:{key:{type:"string",minLength:1,maxLength:1,$description:"translations.json#/div_input_mask_fixed_length_pattern_elements_key"},regex:{type:"string",$description:"translations.json#/div_input_mask_fixed_length_pattern_elements_regex"},placeholder:{type:"string",minLength:1,maxLength:1,default_value:"_",$description:"translations.json#/div_input_mask_fixed_length_pattern_elements_placeholder"}},required:["key"]},minItems:1,$description:"translations.json#/div_input_mask_fixed_length_pattern_elements"},always_visible:{$ref:"common.json#/boolean_int",default_value:"false",$description:"translations.json#/div_input_mask_fixed_length_always_visible"}}}],y$=["android","ios","web"],w$=["type","pattern","pattern_elements"],MZ={$description:v$,allOf:b$,platforms:y$,required:w$},PZ=Object.freeze(Object.defineProperty({__proto__:null,$description:v$,allOf:b$,default:MZ,platforms:y$,required:w$},Symbol.toStringTag,{value:"Module"})),$$="object",k$="translations.json#/div_fixed_size",j$={divan:{forced_properties_order:["value"]}},S$={value:{$ref:"common.json#/non_negative_integer",$description:"translations.json#/div_fixed_size_value"},unit:{$ref:"div-size-unit.json",$description:"translations.json#/div_fixed_size_unit",default_value:"dp"},type:{type:"string",enum:["fixed"]}},T$=["value","type"],IZ={type:$$,$description:k$,codegen:j$,properties:S$,required:T$},DZ=Object.freeze(Object.defineProperty({__proto__:null,$description:k$,codegen:j$,default:IZ,properties:S$,required:T$,type:$$},Symbol.toStringTag,{value:"Module"})),C$="object",z$="translations.json#/div_focus",E$={background:{type:"array",items:{$ref:"div-background.json"},$description:"translations.json#/div_focus_background"},border:{$ref:"div-border.json",$description:"translations.json#/div_focus_border"},on_focus:{type:"array",items:{$ref:"div-action.json"},$description:"translations.json#/div_focus_on_focus"},on_blur:{type:"array",items:{$ref:"div-action.json"},$description:"translations.json#/div_focus_on_blur"},next_focus_ids:{type:"object",$description:"translations.json#/div_focus_next_focus_ids",properties:{forward:{type:"string",platforms:["android","ios"]},right:{type:"string",platforms:["android"]},down:{type:"string",platforms:["android"]},left:{type:"string",platforms:["android"]},up:{type:"string",platforms:["android"]}}}},VZ={type:C$,$description:z$,properties:E$},LZ=Object.freeze(Object.defineProperty({__proto__:null,$description:z$,default:VZ,properties:E$,type:C$},Symbol.toStringTag,{value:"Module"})),A$="string",FZ={type:A$,enum:["light","medium","regular","bold"]},NZ=Object.freeze(Object.defineProperty({__proto__:null,default:FZ,type:A$},Symbol.toStringTag,{value:"Module"})),O$="object",M$="translations.json#/div_function_argument",P$={name:{type:"string",$description:"translations.json#/div_function_argument_name",supports_expressions:!1},type:{$ref:"div-evaluable-type.json",$description:"translations.json#/div_function_argument_type",supports_expressions:!1}},I$=["name","type"],qZ={type:O$,$description:M$,properties:P$,required:I$},RZ=Object.freeze(Object.defineProperty({__proto__:null,$description:M$,default:qZ,properties:P$,required:I$,type:O$},Symbol.toStringTag,{value:"Module"})),D$="object",V$="translations.json#/div_function",L$={name:{type:"string",$description:"translations.json#/div_function_name",pattern:"^[a-zA-Z_][a-zA-Z0-9_]*$",supports_expressions:!1},body:{type:"string",$description:"translations.json#/div_function_body",supports_expressions:!1},return_type:{$ref:"div-evaluable-type.json",$description:"translations.json#/div_function_return_type",supports_expressions:!1},arguments:{type:"array",$description:"translations.json#/div_function_argument",items:{$ref:"div-function-argument.json"}}},F$=["name","body","return_type","arguments"],BZ={type:D$,$description:V$,properties:L$,required:F$},HZ=Object.freeze(Object.defineProperty({__proto__:null,$description:V$,default:BZ,properties:L$,required:F$,type:D$},Symbol.toStringTag,{value:"Module"})),N$="translations.json#/div_gallery",q$={swift:{generate_optional_arguments:!1}},R$=[{$ref:"div-base.json"},{properties:{type:{type:"string",enum:["gallery"]},cross_content_alignment:{$description:"translations.json#/div_gallery_cross_content_alignment",type:"string",enum:["start","center","end"],default_value:"start"},column_count:{$ref:"common.json#/positive_integer",$description:"translations.json#/div_gallery_column_count",platforms:["android","ios","web"]},item_spacing:{$ref:"common.json#/non_negative_integer",default_value:"8",$description:"translations.json#/div_gallery_item_spacing"},cross_spacing:{$ref:"common.json#/non_negative_integer",$description:"translations.json#/div_gallery_cross_spacing",platforms:["android","ios","web"]},scroll_mode:{type:"string",default_value:"default",enum:["paging","default"],$description:"translations.json#/div_gallery_scroll_mode",platforms:["android","ios","web"]},items:{type:"array",items:{$ref:"div.json"},$description:"translations.json#/div_gallery_items"},item_builder:{$ref:"div-collection-item-builder.json",$description:"translations.json#/div_collection_item_builder",platforms:["android","ios","web"]},orientation:{type:"string",default_value:"horizontal",enum:["horizontal","vertical"],$description:"translations.json#/div_gallery_orientation"},restrict_parent_scroll:{$ref:"common.json#/boolean_int",default_value:"false",$description:"translations.json#/div_gallery_restrict_parent_scroll",platforms:["android","web"]},default_item:{$ref:"common.json#/non_negative_integer",default_value:"0",$description:"translations.json#/div_gallery_default_item",platforms:["android","ios","web"]},scrollbar:{type:"string",enum:["none","auto"],default_value:"none",$description:"translations.json#/div_scrollbar",platforms:["web","android"]}}}],B$=["type"],JZ={$description:N$,codegen:q$,allOf:R$,required:B$},UZ=Object.freeze(Object.defineProperty({__proto__:null,$description:N$,allOf:R$,codegen:q$,default:JZ,required:B$},Symbol.toStringTag,{value:"Module"})),H$="translations.json#/div_gif_image",J$=[{$ref:"div-base.json"},{$ref:"div-actionable.json"},{$ref:"div-image-base.json"},{properties:{gif_url:{$ref:"common.json#/url",$description:"translations.json#/div_gif_image_gif_url"},type:{type:"string",enum:["gif"]}}}],U$=["android","ios","web"],W$=["gif_url","type"],WZ={$description:H$,allOf:J$,platforms:U$,required:W$},KZ=Object.freeze(Object.defineProperty({__proto__:null,$description:H$,allOf:J$,default:WZ,platforms:U$,required:W$},Symbol.toStringTag,{value:"Module"})),K$="translations.json#/div_grid",Y$={swift:{generate_optional_arguments:!1}},G$=[{$ref:"div-base.json"},{$ref:"div-actionable.json"},{properties:{content_alignment_vertical:{$ref:"div-alignment-vertical.json",default_value:"top",$description:"translations.json#/div_grid_content_alignment_vertical"},content_alignment_horizontal:{$ref:"div-alignment-horizontal.json",default_value:"start",$description:"translations.json#/div_grid_content_alignment_horizontal"},items:{type:"array",items:{$ref:"div.json"},$description:"translations.json#/div_grid_items"},column_count:{$ref:"common.json#/non_negative_integer",$description:"translations.json#/div_grid_column_count"},type:{type:"string",enum:["grid"]}}}],X$=["android","ios","web"],Z$=["column_count","type"],YZ={$description:K$,codegen:Y$,allOf:G$,platforms:X$,required:Z$},GZ=Object.freeze(Object.defineProperty({__proto__:null,$description:K$,allOf:G$,codegen:Y$,default:YZ,platforms:X$,required:Z$},Symbol.toStringTag,{value:"Module"})),x$="object",Q$="translations.json#/div_image_background",e4={image_url:{$ref:"common.json#/url",$description:"translations.json#/div_image_background_image_url"},content_alignment_vertical:{$ref:"div-alignment-vertical.json",default_value:"center",$description:"translations.json#/div_image_background_content_alignment_vertical"},content_alignment_horizontal:{$ref:"div-alignment-horizontal.json",default_value:"center",$description:"translations.json#/div_image_background_content_alignment_horizontal"},scale:{$ref:"div-image-scale.json",default_value:"fill",$description:"translations.json#/div_image_background_scale"},alpha:{type:"number",default_value:"1.0",constraint:"number >= 0.0 && number <= 1.0",$description:"translations.json#/div_image_background_alpha"},preload_required:{$ref:"common.json#/boolean_int",default_value:"false",$description:"translations.json#/div_image_background_preload_required",platforms:["android"]},filters:{type:"array",items:{$ref:"div-filter.json"},$description:"translations.json#/div_filter"},type:{type:"string",enum:["image"]}},t4=["image_url","type"],XZ={type:x$,$description:Q$,properties:e4,required:t4},ZZ=Object.freeze(Object.defineProperty({__proto__:null,$description:Q$,default:XZ,properties:e4,required:t4,type:x$},Symbol.toStringTag,{value:"Module"})),n4={placeholder_color:{$ref:"common.json#/color",default_value:"#14000000",$description:"translations.json#/div_image_base_placeholder_color",platforms:["android","ios","web"]},scale:{$ref:"div-image-scale.json",default_value:"fill",$description:"translations.json#/div_image_base_scale"},content_alignment_vertical:{$ref:"div-alignment-vertical.json",default_value:"center",$description:"translations.json#/div_image_base_content_alignment_vertical"},content_alignment_horizontal:{$ref:"div-alignment-horizontal.json",default_value:"center",$description:"translations.json#/div_image_base_content_alignment_horizontal"},preview:{type:"string",$description:"translations.json#/div_image_base_preview",platforms:["android","ios","web"]},preload_required:{$ref:"common.json#/boolean_int",default_value:"false",$description:"translations.json#/div_image_base_preload_required",platforms:["android","web"]},aspect:{$ref:"div-aspect.json",$description:"translations.json#/div_aspect"}},xZ={properties:n4},QZ=Object.freeze(Object.defineProperty({__proto__:null,default:xZ,properties:n4},Symbol.toStringTag,{value:"Module"})),i4="string",ex={type:i4,enum:["fill","no_scale","fit","stretch"]},tx=Object.freeze(Object.defineProperty({__proto__:null,default:ex,type:i4},Symbol.toStringTag,{value:"Module"})),o4="translations.json#/div_image",r4={divan:{forced_properties_order:["image_url"]}},s4=[{$ref:"div-base.json"},{$ref:"div-actionable.json"},{$ref:"div-image-base.json"},{properties:{image_url:{$ref:"common.json#/url",$description:"translations.json#/div_image_image_url"},high_priority_preview_show:{$ref:"common.json#/boolean_int",default_value:"false",$description:"translations.json#/div_image_high_priority_preview_show",platforms:["android","ios"]},type:{type:"string",enum:["image"]},tint_mode:{$ref:"div-blend-mode.json",default_value:"source_in",$description:"translations.json#/div_image_tint_mode"},tint_color:{$ref:"common.json#/color",$description:"translations.json#/div_image_tint_color"},appearance_animation:{$ref:"div-fade-transition.json",$description:"translations.json#/div_image_appearance_animation",platforms:["android","ios","web"]},filters:{type:"array",items:{$ref:"div-filter.json"},$description:"translations.json#/div_filter"}}}],l4=["image_url","type"],nx={$description:o4,codegen:r4,allOf:s4,required:l4},ix=Object.freeze(Object.defineProperty({__proto__:null,$description:o4,allOf:s4,codegen:r4,default:nx,required:l4},Symbol.toStringTag,{value:"Module"})),a4=[{$ref:"div-default-indicator-item-placement.json",$description:"translations.json#/div_indicator_item_placement_default"},{$ref:"div-stretch-indicator-item-placement.json",$description:"translations.json#/div_indicator_item_placement_stretch"}],ox={anyOf:a4},rx=Object.freeze(Object.defineProperty({__proto__:null,anyOf:a4,default:ox},Symbol.toStringTag,{value:"Module"})),c4="translations.json#/div_indicator",d4=[{$ref:"div-base.json"},{properties:{type:{type:"string",enum:["indicator"]},pager_id:{$ref:"common.json#/id",$description:"translations.json#/div_indicator_pager_id"},items_placement:{$ref:"div-indicator-item-placement.json",$description:"translations.json#/div_indicator_item_placement"},space_between_centers:{$ref:"div-fixed-size.json",default_value:'{"type": "fixed","value":15}',$description:"translations.json#/div_indicator_space_between_centers",deprecated:!0},inactive_item_color:{$ref:"common.json#/color",default_value:"#33919cb5",$description:"translations.json#/div_indicator_inactive_item_color",deprecated:!0},active_item_color:{$ref:"common.json#/color",default_value:"#ffdc60",$description:"translations.json#/div_indicator_active_item_color",deprecated:!0},shape:{$ref:"div-shape.json",default_value:'{"type":"rounded_rectangle"}',$description:"translations.json#/div_indicator_shape",deprecated:!0},active_item_size:{$ref:"common.json#/positive_number",default_value:"1.3",$description:"translations.json#/div_indicator_active_item_size",deprecated:!0},minimum_item_size:{$ref:"common.json#/positive_number",default_value:"0.5",$description:"translations.json#/div_indicator_minimum_item_size",platforms:["android","ios"],deprecated:!0},active_shape:{$ref:"div-rounded-rectangle-shape.json",$description:"translations.json#/div_indicator_active_shape"},inactive_shape:{$ref:"div-rounded-rectangle-shape.json",$description:"translations.json#/div_indicator_inactive_shape"},inactive_minimum_shape:{$ref:"div-rounded-rectangle-shape.json",$description:"translations.json#/div_indicator_inactive_minimum_shape",platforms:["android","ios"]},animation:{type:"string",enum:["scale","worm","slider"],default_value:"scale",$description:"translations.json#/div_indicator_animation",platforms:["android","ios"]}}}],u4=["android","ios","web"],p4=["type"],sx={$description:c4,allOf:d4,platforms:u4,required:p4},lx=Object.freeze(Object.defineProperty({__proto__:null,$description:c4,allOf:d4,default:sx,platforms:u4,required:p4},Symbol.toStringTag,{value:"Module"})),_4="object",f4="translations.json#/div_infinity_count",m4={type:{type:"string",enum:["infinity"]}},g4=["android","ios","web"],h4=["type"],ax={type:_4,$description:f4,properties:m4,platforms:g4,required:h4},cx=Object.freeze(Object.defineProperty({__proto__:null,$description:f4,default:ax,platforms:g4,properties:m4,required:h4,type:_4},Symbol.toStringTag,{value:"Module"})),v4="object",b4="translations.json#/div_input_filters_expression",y4={type:{type:"string",enum:["expression"]},condition:{$ref:"common.json#/boolean_int",$description:"translations.json#/div_input_filters_expression_condition"}},w4=["android","ios","web"],$4=["type","condition"],dx={type:v4,$description:b4,properties:y4,platforms:w4,required:$4},ux=Object.freeze(Object.defineProperty({__proto__:null,$description:b4,default:dx,platforms:w4,properties:y4,required:$4,type:v4},Symbol.toStringTag,{value:"Module"})),k4="object",j4="translations.json#/div_input_filters_regex",S4={type:{type:"string",enum:["regex"]},pattern:{type:"string",$description:"translations.json#/div_input_filters_regex_pattern"}},T4=["android","ios","web"],C4=["type","pattern"],px={type:k4,$description:j4,properties:S4,platforms:T4,required:C4},_x=Object.freeze(Object.defineProperty({__proto__:null,$description:j4,default:px,platforms:T4,properties:S4,required:C4,type:k4},Symbol.toStringTag,{value:"Module"})),z4=[{$ref:"div-input-filter-regex.json",$description:"translations.json#/div_input_filters_regex"},{$ref:"div-input-filter-expression.json",$description:"translations.json#/div_input_filters_expression"}],fx={anyOf:z4},mx=Object.freeze(Object.defineProperty({__proto__:null,anyOf:z4,default:fx},Symbol.toStringTag,{value:"Module"})),E4="div-input-mask-base",A4="object",O4={documentation:{include_in_toc:!0}},M4={raw_text_variable:{$ref:"div-variable-name.json",$description:"translations.json#/div_input_mask_raw_text_variable"}},P4=["raw_text_variable"],gx={protocol_name:E4,type:A4,codegen:O4,properties:M4,required:P4},hx=Object.freeze(Object.defineProperty({__proto__:null,codegen:O4,default:gx,properties:M4,protocol_name:E4,required:P4,type:A4},Symbol.toStringTag,{value:"Module"})),I4=[{$ref:"div-fixed-length-input-mask.json",$description:"translations.json#/div_input_mask_fixed_length",platforms:["android","ios","web"]},{$ref:"div-currency-input-mask.json",$description:"translations.json#/div_input_mask_currency",platforms:["android","ios","web"]},{$ref:"div-phone-input-mask.json",$description:"translations.json#/div_input_mask_phone",platforms:["android","ios","web"]}],vx={anyOf:I4},bx=Object.freeze(Object.defineProperty({__proto__:null,anyOf:I4,default:vx},Symbol.toStringTag,{value:"Module"})),D4="object",V4={label_id:{type:"string",$description:"translations.json#/div_input_validators_label_id"},allow_empty:{$ref:"common.json#/boolean_int",default_value:"false",$description:"translations.json#/div_input_validators_allow_empty"},variable:{$ref:"div-variable-name.json",$description:"translations.json#/div_input_validators_variable"}},L4=["android","ios","web"],yx={type:D4,properties:V4,platforms:L4},wx=Object.freeze(Object.defineProperty({__proto__:null,default:yx,platforms:L4,properties:V4,type:D4},Symbol.toStringTag,{value:"Module"})),F4="translations.json#/div_input_validators_expression",N4=[{$ref:"div-input-validator-base.json"},{properties:{type:{type:"string",enum:["expression"]},condition:{$ref:"common.json#/boolean_int",$description:"translations.json#/div_input_validators_expression_condition"}}}],q4=["type","condition","label_id","variable"],$x={$description:F4,allOf:N4,required:q4},kx=Object.freeze(Object.defineProperty({__proto__:null,$description:F4,allOf:N4,default:$x,required:q4},Symbol.toStringTag,{value:"Module"})),R4="translations.json#/div_input_validators_regex",B4=[{$ref:"div-input-validator-base.json"},{properties:{type:{type:"string",enum:["regex"]},pattern:{type:"string",$description:"translations.json#/div_input_validators_regex_pattern"}}}],H4=["type","pattern","label_id","variable"],jx={$description:R4,allOf:B4,required:H4},Sx=Object.freeze(Object.defineProperty({__proto__:null,$description:R4,allOf:B4,default:jx,required:H4},Symbol.toStringTag,{value:"Module"})),J4=[{$ref:"div-input-validator-regex.json",$description:"translations.json#/div_input_validators_regex"},{$ref:"div-input-validator-expression.json",$description:"translations.json#/div_input_validators_expression"}],Tx={anyOf:J4},Cx=Object.freeze(Object.defineProperty({__proto__:null,anyOf:J4,default:Tx},Symbol.toStringTag,{value:"Module"})),U4="translations.json#/div_input",W4={native_interface:{type:"object",properties:{color:{$ref:"common.json#/color",$description:"translations.json#/div_input_native_interface_color"}},required:["color"]}},K4=[{$ref:"div-base.json"},{properties:{type:{type:"string",enum:["input"]},font_size:{$ref:"common.json#/non_negative_integer",default_value:"12",$description:"translations.json#/div_font_size"},font_size_unit:{$ref:"div-size-unit.json",default_value:"sp",$description:"translations.json#/div_font_size_unit"},font_family:{type:"string",$description:"translations.json#/div_font_family",platforms:["android","ios","web"]},font_weight:{$ref:"div-font-weight.json",default_value:"regular",$description:"translations.json#/div_font_weight"},font_weight_value:{$ref:"common.json#/positive_integer",$description:"translations.json#/div_font_weight_value",platforms:["ios","web","android"]},filters:{type:"array",$description:"translations.json#/div_input_filters",platforms:["android","ios","web"],items:{$ref:"div-input-filter.json"}},text_color:{$ref:"common.json#/color",default_value:"#FF000000",$description:"translations.json#/div_text_color"},text_variable:{$ref:"div-variable-name.json",$description:"translations.json#/div_input_text_variable"},text_alignment_horizontal:{$ref:"div-alignment-horizontal.json",default_value:"start",$description:"translations.json#/div_text_text_alignment_horizontal"},text_alignment_vertical:{$ref:"div-alignment-vertical.json",default_value:"center",$description:"translations.json#/div_text_text_alignment_vertical"},line_height:{$ref:"common.json#/non_negative_integer",$description:"translations.json#/div_input_line_height"},max_visible_lines:{$ref:"common.json#/positive_integer",$description:"translations.json#/div_input_max_visible_lines"},max_length:{$ref:"common.json#/positive_integer",$description:"translations.json#/div_input_max_length",platforms:["android","ios","web"]},letter_spacing:{type:"number",default_value:"0",$description:"translations.json#/div_input_letter_spacing",platforms:["android","ios","web"]},hint_text:{type:"string",$description:"translations.json#/div_input_hint_text"},hint_color:{$ref:"common.json#/color",default_value:"#73000000",$description:"translations.json#/div_input_hint_color"},highlight_color:{$ref:"common.json#/color",$description:"translations.json#/div_input_highlight_color",platforms:["android","ios","web"]},native_interface:{$ref:"#/definitions/native_interface",$description:"translations.json#/div_input_native_interface",platforms:["android"]},autocapitalization:{type:"string",enum:["auto","none","words","sentences","all_characters"],default_value:"auto",$description:"translations.json#/div_input_autocapitalization",platforms:["android","ios","web"]},enter_key_actions:{type:"array",items:{$ref:"div-action.json"},$description:"translations.json#/div_input_enter_key_actions",platforms:["ios","android","web"]},enter_key_type:{type:"string",enum:["default","go","search","send","done"],default_value:"default",$description:"translations.json#/div_input_enter_key_type",platforms:["ios","android","web"]},keyboard_type:{type:"string",enum:["single_line_text","multi_line_text","phone","number","email","uri","password"],default_value:"multi_line_text",$description:"translations.json#/div_input_keyboard_type"},select_all_on_focus:{$ref:"common.json#/boolean_int",default_value:"false",$description:"translations.json#/div_input_select_all_on_focus",platforms:["android","ios","web"]},mask:{$ref:"div-input-mask.json",$description:"translations.json#/div_input_mask",platforms:["android","ios","web"]},validators:{type:"array",$description:"translations.json#/div_input_validators",platforms:["android","ios","web"],items:{$ref:"div-input-validator.json"}},is_enabled:{$ref:"common.json#/boolean_int",default_value:"true",$description:"translations.json#/div_input_is_enabled"}}}],Y4=["type","text_variable"],zx={$description:U4,definitions:W4,allOf:K4,required:Y4},Ex=Object.freeze(Object.defineProperty({__proto__:null,$description:U4,allOf:K4,default:zx,definitions:W4,required:Y4},Symbol.toStringTag,{value:"Module"})),G4="object",X4={width_variable_name:{$ref:"div-variable-name.json",$description:"translations.json#/div_layout_provider_width_variable_name"},height_variable_name:{$ref:"div-variable-name.json",$description:"translations.json#/div_layout_provider_height_variable_name"}},Ax={type:G4,properties:X4},Ox=Object.freeze(Object.defineProperty({__proto__:null,default:Ax,properties:X4,type:G4},Symbol.toStringTag,{value:"Module"})),Z4="string",x4="translations.json#/div_line_style",Mx={type:Z4,$description:x4,enum:["none","single"]},Px=Object.freeze(Object.defineProperty({__proto__:null,$description:x4,default:Mx,type:Z4},Symbol.toStringTag,{value:"Module"})),Q4="translations.json#/div_gradient_linear",ek={color_point:{type:"object",suppress_inline:!0,$description:"translations.json#/div_gradient_color_point",properties:{color:{$ref:"common.json#/color",$description:"translations.json#/div_gradient_color_point_color"},position:{type:"number",constraint:"number >= 0.0 && number <= 1.0",$description:"translations.json#/div_gradient_color_point_position"}},required:["color","position"]}},tk="object",nk={color_map:{type:"array",items:{$ref:"#/definitions/color_point"},minItems:2,platforms:["android","ios","web"],$description:"translations.json#/div_gradient_color_map"},colors:{type:"array",items:{$ref:"common.json#/color"},minItems:2,$description:"translations.json#/div_gradient_colors"},angle:{type:"integer",constraint:"number >= 0 && number <= 360",default_value:"0",$description:"translations.json#/div_gradient_linear_angle"},type:{type:"string",enum:["gradient"]}},ik=["type"],Ix={$description:Q4,definitions:ek,type:tk,properties:nk,required:ik},Dx=Object.freeze(Object.defineProperty({__proto__:null,$description:Q4,default:Ix,definitions:ek,properties:nk,required:ik,type:tk},Symbol.toStringTag,{value:"Module"})),ok="object",rk="translations.json#/div_match_parent_size",sk={weight:{$ref:"common.json#/positive_number",$description:"translations.json#/div_match_parent_size_weight"},type:{type:"string",enum:["match_parent"]}},lk=["type"],Vx={type:ok,$description:rk,properties:sk,required:lk},Lx=Object.freeze(Object.defineProperty({__proto__:null,$description:rk,default:Vx,properties:sk,required:lk,type:ok},Symbol.toStringTag,{value:"Module"})),ak="object",ck="translations.json#/div_neighbour_page_size",dk={type:{type:"string",enum:["fixed"]},neighbour_page_width:{$ref:"div-fixed-size.json",$description:"translations.json#/div_neighbour_page_size_neighbour_page_width"}},uk=["android","ios","web"],pk=["type","neighbour_page_width"],Fx={type:ak,$description:ck,properties:dk,platforms:uk,required:pk},Nx=Object.freeze(Object.defineProperty({__proto__:null,$description:ck,default:Fx,platforms:uk,properties:dk,required:pk,type:ak},Symbol.toStringTag,{value:"Module"})),_k="object",fk="translations.json#/div_nine_patch_background",mk={image_url:{$ref:"common.json#/url",$description:"translations.json#/div_image_background_image_url"},insets:{$ref:"div-absolute-edge-insets.json",$description:"translations.json#/div_nine_patch_background_insets"},type:{type:"string",enum:["nine_patch_image"]}},gk=["android","ios","web"],hk=["image_url","type","insets"],qx={type:_k,$description:fk,properties:mk,platforms:gk,required:hk},Rx=Object.freeze(Object.defineProperty({__proto__:null,$description:fk,default:qx,platforms:gk,properties:mk,required:hk,type:_k},Symbol.toStringTag,{value:"Module"})),vk="translations.json#/div_number_animator",bk=[{$ref:"div-animator-base.json"},{properties:{type:{type:"string",enum:["number_animator"]},start_value:{type:"number",$description:"translations.json#/div_animator_start_value"},end_value:{type:"number",$description:"translations.json#/div_animator_end_value"}},required:["type","end_value"],platforms:["android","ios","web"]}],Bx={$description:vk,allOf:bk},Hx=Object.freeze(Object.defineProperty({__proto__:null,$description:vk,allOf:bk,default:Bx},Symbol.toStringTag,{value:"Module"})),yk="object",wk="translations.json#/div_page_content_size",$k={type:{type:"string",enum:["wrap_content"]}},kk=["ios","android","web"],jk=["type"],Jx={type:yk,$description:wk,properties:$k,platforms:kk,required:jk},Ux=Object.freeze(Object.defineProperty({__proto__:null,$description:wk,default:Jx,platforms:kk,properties:$k,required:jk,type:yk},Symbol.toStringTag,{value:"Module"})),Sk="object",Tk="translations.json#/div_page_size",Ck={type:{type:"string",enum:["percentage"]},page_width:{$ref:"div-percentage-size.json",$description:"translations.json#/div_page_size_page_width"}},zk=["android","ios","web"],Ek=["type","page_width"],Wx={type:Sk,$description:Tk,properties:Ck,platforms:zk,required:Ek},Kx=Object.freeze(Object.defineProperty({__proto__:null,$description:Tk,default:Wx,platforms:zk,properties:Ck,required:Ek,type:Sk},Symbol.toStringTag,{value:"Module"})),Ak="object",Ok="translations.json#/div_pager_page_transformation_overlap",Mk={type:{type:"string",enum:["overlap"]},next_page_alpha:{type:"number",default_value:"1.0",constraint:"number >= 0.0 && number <= 1.0",$description:"translations.json#/div_pager_next_page_alpha"},previous_page_alpha:{type:"number",default_value:"1.0",constraint:"number >= 0.0 && number <= 1.0",$description:"translations.json#/div_pager_previous_page_alpha"},next_page_scale:{type:"number",default_value:"1.0",constraint:"number >= 0.0",$description:"translations.json#/div_pager_next_page_scale"},previous_page_scale:{type:"number",default_value:"1.0",constraint:"number >= 0.0",$description:"translations.json#/div_pager_previous_page_scale"},reversed_stacking_order:{$ref:"common.json#/boolean_int",default_value:"false",$description:"translations.json#/div_pager_page_transformation_overlap_reversed_stacking_order"},interpolator:{$ref:"div-animation-interpolator.json",default_value:"ease_in_out",$description:"translations.json#/div_pager_page_transformation_interpolator"}},Pk=["type"],Yx={type:Ak,$description:Ok,properties:Mk,required:Pk},Gx=Object.freeze(Object.defineProperty({__proto__:null,$description:Ok,default:Yx,properties:Mk,required:Pk,type:Ak},Symbol.toStringTag,{value:"Module"})),Ik="object",Dk="translations.json#/div_pager_page_transformation_slide",Vk={type:{type:"string",enum:["slide"]},next_page_alpha:{type:"number",default_value:"1.0",constraint:"number >= 0.0 && number <= 1.0",$description:"translations.json#/div_pager_next_page_alpha"},previous_page_alpha:{type:"number",default_value:"1.0",constraint:"number >= 0.0 && number <= 1.0",$description:"translations.json#/div_pager_previous_page_alpha"},next_page_scale:{type:"number",default_value:"1.0",constraint:"number >= 0.0",$description:"translations.json#/div_pager_next_page_scale"},previous_page_scale:{type:"number",default_value:"1.0",constraint:"number >= 0.0",$description:"translations.json#/div_pager_previous_page_scale"},interpolator:{$ref:"div-animation-interpolator.json",default_value:"ease_in_out",$description:"translations.json#/div_pager_page_transformation_interpolator"}},Lk=["type"],Xx={type:Ik,$description:Dk,properties:Vk,required:Lk},Zx=Object.freeze(Object.defineProperty({__proto__:null,$description:Dk,default:Xx,properties:Vk,required:Lk,type:Ik},Symbol.toStringTag,{value:"Module"})),Fk=[{$description:"translations.json#/div_pager_page_transformation_slide",$ref:"div-page-transformation-slide.json"},{$description:"translations.json#/div_pager_page_transformation_overlap",$ref:"div-page-transformation-overlap.json"}],xx={anyOf:Fk},Qx=Object.freeze(Object.defineProperty({__proto__:null,anyOf:Fk,default:xx},Symbol.toStringTag,{value:"Module"})),Nk=[{$ref:"div-page-size.json",$description:"translations.json#/div_pager_layout_mode_page_size"},{$ref:"div-neighbour-page-size.json",$description:"translations.json#/div_pager_layout_mode_neighbour_page_size"},{$ref:"div-page-content-size.json",$description:"translations.json#/div_page_content_size"}],eQ={anyOf:Nk},tQ=Object.freeze(Object.defineProperty({__proto__:null,anyOf:Nk,default:eQ},Symbol.toStringTag,{value:"Module"})),qk="translations.json#/div_pager",Rk={item_alignment:{type:"string",enum:["start","center","end"]}},Bk={swift:{generate_optional_arguments:!1}},Hk=[{$ref:"div-base.json"},{properties:{type:{type:"string",enum:["pager"]},scroll_axis_alignment:{$ref:"#/definitions/item_alignment",default_value:"center",$description:"translations.json#/div_pager_scroll_axis_alignment",platforms:["android","ios","web"]},cross_axis_alignment:{$ref:"#/definitions/item_alignment",default_value:"start",$description:"translations.json#/div_pager_cross_axis_alignment",platforms:["android","ios","web"]},layout_mode:{$ref:"div-pager-layout-mode.json",$description:"translations.json#/div_pager_layout_mode",platforms:["android","ios","web"]},item_spacing:{$ref:"div-fixed-size.json",default_value:'{"type": "fixed","value":0}',$description:"translations.json#/div_pager_item_spacing",platforms:["android","ios","web"]},items:{type:"array",items:{$ref:"div.json"},$description:"translations.json#/div_pager_items"},item_builder:{$ref:"div-collection-item-builder.json",$description:"translations.json#/div_collection_item_builder",platforms:["android","ios","web"]},orientation:{type:"string",default_value:"horizontal",enum:["horizontal","vertical"],$description:"translations.json#/div_pager_orientation"},restrict_parent_scroll:{$ref:"common.json#/boolean_int",default_value:"false",$description:"translations.json#/div_pager_restrict_parent_scroll",platforms:["android","web"]},default_item:{$ref:"common.json#/non_negative_integer",default_value:"0",$description:"translations.json#/div_pager_default_item"},page_transformation:{$ref:"div-page-transformation.json",platforms:["android","ios"],$description:"translations.json#/div_pager_page_transformation"},infinite_scroll:{$ref:"common.json#/boolean_int",default_value:"false",$description:"translations.json#/div_pager_infinite_scroll",platforms:["android","ios"]}}}],Jk=["type","layout_mode"],nQ={$description:qk,definitions:Rk,codegen:Bk,allOf:Hk,required:Jk},iQ=Object.freeze(Object.defineProperty({__proto__:null,$description:qk,allOf:Hk,codegen:Bk,default:nQ,definitions:Rk,required:Jk},Symbol.toStringTag,{value:"Module"})),Uk="object",Wk="translations.json#/div_patch",Kk=!1,Yk={divan:{plus_operator:!1,required_properties_at_factory:!0}},Gk={change:{type:"object",properties:{id:{$ref:"common.json#/id",$description:"translations.json#/div_patch_change_id"},items:{type:"array",items:{$ref:"div.json"},$description:"translations.json#/div_patch_change_items"}},required:["id"]}},Xk={mode:{type:"string",enum:["transactional","partial"],default_value:"partial",$description:"translations.json#/div_patch_mode",platforms:["android","ios","web"]},changes:{type:"array",items:{$ref:"#/definitions/change"},minItems:1,$description:"translations.json#/div_patch_changes"},on_applied_actions:{type:"array",items:{$ref:"div-action.json"},$description:"translations.json#/div_patch_on_applied_actions",platforms:["android","ios","web"]},on_failed_actions:{type:"array",items:{$ref:"div-action.json"},$description:"translations.json#/div_patch_on_failed_actions",platforms:["android","ios","web"]}},Zk=["changes"],oQ={type:Uk,$description:Wk,typescript_templatable:Kk,codegen:Yk,definitions:Gk,properties:Xk,required:Zk},rQ=Object.freeze(Object.defineProperty({__proto__:null,$description:Wk,codegen:Yk,default:oQ,definitions:Gk,properties:Xk,required:Zk,type:Uk,typescript_templatable:Kk},Symbol.toStringTag,{value:"Module"})),xk="object",Qk="translations.json#/div_percentage_size",e5={value:{$ref:"common.json#/positive_number",$description:"translations.json#/div_percentage_size_value"},type:{type:"string",enum:["percentage"]}},t5=["android","ios","web"],n5=["type","value"],sQ={type:xk,$description:Qk,properties:e5,platforms:t5,required:n5},lQ=Object.freeze(Object.defineProperty({__proto__:null,$description:Qk,default:sQ,platforms:t5,properties:e5,required:n5,type:xk},Symbol.toStringTag,{value:"Module"})),i5="translations.json#/div_input_mask_phone",o5=[{$ref:"div-input-mask-base.json"},{properties:{type:{type:"string",enum:["phone"]}}}],r5=["type"],aQ={$description:i5,allOf:o5,required:r5},cQ=Object.freeze(Object.defineProperty({__proto__:null,$description:i5,allOf:o5,default:aQ,required:r5},Symbol.toStringTag,{value:"Module"})),s5="object",l5="translations.json#/div_pivot_fixed_short",a5={value:{type:"integer",$description:"translations.json#/div_pivot_fixed_value"},unit:{$ref:"div-size-unit.json",$description:"translations.json#/div_pivot_fixed_unit",default_value:"dp"},type:{type:"string",enum:["pivot-fixed"]}},c5=["android","ios","web"],dQ={type:s5,$description:l5,properties:a5,platforms:c5},uQ=Object.freeze(Object.defineProperty({__proto__:null,$description:l5,default:dQ,platforms:c5,properties:a5,type:s5},Symbol.toStringTag,{value:"Module"})),d5="object",u5="translations.json#/div_pivot_percentage_short",p5={value:{type:"number",$description:"translations.json#/div_pivot_percentage_value"},type:{type:"string",enum:["pivot-percentage"]}},_5=["android","ios","web"],f5=["type","value"],pQ={type:d5,$description:u5,properties:p5,platforms:_5,required:f5},_Q=Object.freeze(Object.defineProperty({__proto__:null,$description:u5,default:pQ,platforms:_5,properties:p5,required:f5,type:d5},Symbol.toStringTag,{value:"Module"})),m5=[{$ref:"div-pivot-fixed.json",$description:"translations.json#/div_pivot_fixed"},{$ref:"div-pivot-percentage.json",$description:"translations.json#/div_pivot_percentage"}],fQ={anyOf:m5},mQ=Object.freeze(Object.defineProperty({__proto__:null,anyOf:m5,default:fQ},Symbol.toStringTag,{value:"Module"})),g5="object",h5="translations.json#/div_point",v5={x:{$ref:"div-dimension.json",$description:"translations.json#/div_point_x"},y:{$ref:"div-dimension.json",$description:"translations.json#/div_point_y"}},b5=["android","ios","web"],y5=["x","y"],gQ={type:g5,$description:h5,properties:v5,platforms:b5,required:y5},hQ=Object.freeze(Object.defineProperty({__proto__:null,$description:h5,default:gQ,platforms:b5,properties:v5,required:y5,type:g5},Symbol.toStringTag,{value:"Module"})),w5=[{$ref:"div-radial-gradient-fixed-center.json",$description:"translations.json#/div_radial_gradient_fixed_center"},{$ref:"div-radial-gradient-relative-center.json",$description:"translations.json#/div_radial_gradient_relative_center"}],vQ={anyOf:w5},bQ=Object.freeze(Object.defineProperty({__proto__:null,anyOf:w5,default:vQ},Symbol.toStringTag,{value:"Module"})),$5="object",k5="translations.json#/div_radial_gradient_fixed_center",j5={value:{type:"integer",$description:"translations.json#/div_radial_gradient_fixed_center_value"},unit:{$ref:"div-size-unit.json",$description:"translations.json#/div_fixed_size_unit",default_value:"dp"},type:{type:"string",enum:["fixed"]}},S5=["value","type"],yQ={type:$5,$description:k5,properties:j5,required:S5},wQ=Object.freeze(Object.defineProperty({__proto__:null,$description:k5,default:yQ,properties:j5,required:S5,type:$5},Symbol.toStringTag,{value:"Module"})),T5=[{$ref:"div-fixed-size.json",$description:"translations.json#/div_size_fixed"},{$ref:"div-radial-gradient-relative-radius.json",$description:"translations.json#/div_radial_gradient_relative_radius"}],$Q={anyOf:T5},kQ=Object.freeze(Object.defineProperty({__proto__:null,anyOf:T5,default:$Q},Symbol.toStringTag,{value:"Module"})),C5="object",z5="translations.json#/div_radial_gradient_relative_center",E5={value:{type:"number",$description:"translations.json#/div_radial_gradient_relative_center_value"},type:{type:"string",enum:["relative"]}},A5=["value","type"],jQ={type:C5,$description:z5,properties:E5,required:A5},SQ=Object.freeze(Object.defineProperty({__proto__:null,$description:z5,default:jQ,properties:E5,required:A5,type:C5},Symbol.toStringTag,{value:"Module"})),O5="object",M5="translations.json#/div_radial_gradient_relative_radius",P5={value:{type:"string",$description:"translations.json#/div_radial_gradient_relative_radius_value",enum:["nearest_corner","farthest_corner","nearest_side","farthest_side"]},type:{type:"string",enum:["relative"]}},I5=["value","type"],TQ={type:O5,$description:M5,properties:P5,required:I5},CQ=Object.freeze(Object.defineProperty({__proto__:null,$description:M5,default:TQ,properties:P5,required:I5,type:O5},Symbol.toStringTag,{value:"Module"})),D5="object",V5={color_point:{type:"object",suppress_inline:!0,$description:"translations.json#/div_gradient_color_point",properties:{color:{$ref:"common.json#/color",$description:"translations.json#/div_gradient_color_point_color"},position:{type:"number",constraint:"number >= 0.0 && number <= 1.0",$description:"translations.json#/div_gradient_color_point_position"}},required:["color","position"]}},L5="translations.json#/div_gradient_radial",F5={color_map:{type:"array",items:{$ref:"#/definitions/color_point"},minItems:2,platforms:[],$description:"translations.json#/div_gradient_color_map"},colors:{type:"array",items:{$ref:"common.json#/color"},minItems:2,$description:"translations.json#/div_gradient_colors"},radius:{$ref:"div-radial-gradient-radius.json",default_value:'{"type": "relative", "value": "farthest_corner" }',$description:"translations.json#/div_gradient_radial_radius"},center_x:{$ref:"div-radial-gradient-center.json",default_value:'{"type": "relative", "value": 0.5 }',$description:"translations.json#/div_gradient_radial_center_x"},center_y:{$ref:"div-radial-gradient-center.json",default_value:'{"type": "relative", "value": 0.5 }',$description:"translations.json#/div_gradient_radial_center_y"},type:{type:"string",enum:["radial_gradient"]}},N5=["colors","type"],zQ={type:D5,definitions:V5,$description:L5,properties:F5,required:N5},EQ=Object.freeze(Object.defineProperty({__proto__:null,$description:L5,default:zQ,definitions:V5,properties:F5,required:N5,type:D5},Symbol.toStringTag,{value:"Module"})),q5="translations.json#/div_rounded_rectangle_shape",R5=[{$ref:"div-shape-base.json"},{type:"object",properties:{item_width:{$ref:"div-fixed-size.json",default_value:'{"type":"fixed","value":10}',$description:"translations.json#/div_rounded_rectangle_shape_item_width"},item_height:{$ref:"div-fixed-size.json",default_value:'{"type":"fixed","value":10}',$description:"translations.json#/div_rounded_rectangle_shape_item_height"},corner_radius:{$ref:"div-fixed-size.json",default_value:'{"type":"fixed","value":5}',$description:"translations.json#/div_rounded_rectangle_shape_corner_radius"},type:{type:"string",enum:["rounded_rectangle"]}}}],B5=["android","ios","web"],H5=["type"],AQ={$description:q5,allOf:R5,platforms:B5,required:H5},OQ=Object.freeze(Object.defineProperty({__proto__:null,$description:q5,allOf:R5,default:AQ,platforms:B5,required:H5},Symbol.toStringTag,{value:"Module"})),J5="translations.json#/div_scale_transition",U5=[{$ref:"div-transition-base.json"},{properties:{type:{type:"string",enum:["scale"]},scale:{type:"number",constraint:"number >= 0.0",default_value:"0.0",$description:"translations.json#/div_scale_transition_scale"},pivot_x:{type:"number",constraint:"number >= 0.0 && number <= 1.0",default_value:"0.5",$description:"translations.json#/div_scale_transition_pivot_x"},pivot_y:{type:"number",constraint:"number >= 0.0 && number <= 1.0",default_value:"0.5",$description:"translations.json#/div_scale_transition_pivot_y"}}}],W5=["type"],MQ={$description:J5,allOf:U5,required:W5},PQ=Object.freeze(Object.defineProperty({__proto__:null,$description:J5,allOf:U5,default:MQ,required:W5},Symbol.toStringTag,{value:"Module"})),K5="translations.json#/div_select",Y5={option:{type:"object",properties:{text:{type:"string",$description:"translations.json#/div_select_option_text"},value:{type:"string",$description:"translations.json#/div_select_option_value"}},required:["value"]}},G5=[{$ref:"div-base.json"},{properties:{type:{type:"string",enum:["select"]},options:{type:"array",items:{$ref:"#/definitions/option",$description:"translations.json#/div_select_option"},minItems:1},value_variable:{$ref:"div-variable-name.json",$description:"translations.json#/div_select_value_variable"},font_size:{$ref:"common.json#/non_negative_integer",default_value:"12",$description:"translations.json#/div_font_size"},font_size_unit:{$ref:"div-size-unit.json",default_value:"sp",$description:"translations.json#/div_font_size_unit",platforms:["android","ios"]},font_family:{type:"string",$description:"translations.json#/div_font_family"},font_weight:{$ref:"div-font-weight.json",default_value:"regular",$description:"translations.json#/div_font_weight"},font_weight_value:{$ref:"common.json#/positive_integer",$description:"translations.json#/div_font_weight_value",platforms:["ios","web","android"]},hint_text:{type:"string",$description:"translations.json#/div_select_hint_text"},hint_color:{$ref:"common.json#/color",default_value:"#73000000",$description:"translations.json#/div_select_hint_color"},line_height:{$ref:"common.json#/non_negative_integer",$description:"translations.json#/div_select_line_height"},text_color:{$ref:"common.json#/color",default_value:"#FF000000",$description:"translations.json#/div_text_color"},letter_spacing:{type:"number",default_value:"0",$description:"translations.json#/div_select_letter_spacing"}}}],X5=["android","ios","web"],Z5=["type","options","value_variable"],IQ={$description:K5,definitions:Y5,allOf:G5,platforms:X5,required:Z5},DQ=Object.freeze(Object.defineProperty({__proto__:null,$description:K5,allOf:G5,default:IQ,definitions:Y5,platforms:X5,required:Z5},Symbol.toStringTag,{value:"Module"})),x5="translations.json#/div_separator",Q5={style:{type:"object",properties:{color:{$ref:"common.json#/color",default_value:"#14000000",$description:"translations.json#/div_separator_style_color"},orientation:{type:"string",enum:["vertical","horizontal"],default_value:"horizontal",$description:"translations.json#/div_separator_style_orientation"}}}},e6=[{$ref:"div-base.json"},{$ref:"div-actionable.json"},{properties:{delimiter_style:{$ref:"#/definitions/style",$description:"translations.json#/div_separator_delimiter_style"},type:{type:"string",enum:["separator"]}},platforms:["android","ios","web"],required:["type"]}],VQ={$description:x5,definitions:Q5,allOf:e6},LQ=Object.freeze(Object.defineProperty({__proto__:null,$description:x5,allOf:e6,default:VQ,definitions:Q5},Symbol.toStringTag,{value:"Module"})),t6="object",n6="translations.json#/div_shadow",i6={color:{$ref:"common.json#/color",$description:"translations.json#/div_shadow_color",default_value:"#000000"},offset:{$ref:"div-point.json",$description:"translations.json#/div_shadow_offset"},blur:{$ref:"common.json#/non_negative_integer",$description:"translations.json#/div_shadow_blur",default_value:"2"},alpha:{type:"number",default_value:"0.19",constraint:"number >= 0.0 && number <= 1.0",$description:"translations.json#/div_shadow_alpha"}},o6=["offset"],FQ={type:t6,$description:n6,properties:i6,required:o6},NQ=Object.freeze(Object.defineProperty({__proto__:null,$description:n6,default:FQ,properties:i6,required:o6,type:t6},Symbol.toStringTag,{value:"Module"})),r6={background_color:{$ref:"common.json#/color",$description:"translations.json#/div_shape_base_background_color"},stroke:{$ref:"div-stroke.json",$description:"translations.json#/div_shape_base_stroke"}},qQ={properties:r6},RQ=Object.freeze(Object.defineProperty({__proto__:null,default:qQ,properties:r6},Symbol.toStringTag,{value:"Module"})),s6="object",l6="translations.json#/div_shape_drawable",a6={shape:{$ref:"div-shape.json",$description:"translations.json#/div_shape_drawable_shape"},color:{$ref:"common.json#/color",$description:"translations.json#/div_shape_drawable_color",deprecated:!0},stroke:{$ref:"div-stroke.json",$description:"translations.json#/div_shape_drawable_stroke",deprecated:!0},type:{type:"string",enum:["shape_drawable"]}},c6=["android","ios","web"],d6=["type","shape","color"],BQ={type:s6,$description:l6,properties:a6,platforms:c6,required:d6},HQ=Object.freeze(Object.defineProperty({__proto__:null,$description:l6,default:BQ,platforms:c6,properties:a6,required:d6,type:s6},Symbol.toStringTag,{value:"Module"})),u6=[{$ref:"div-rounded-rectangle-shape.json",$description:"translations.json#/div_rounded_rectangle_shape"},{$ref:"div-circle-shape.json",$description:"translations.json#/div_circle_shape",platforms:["android","web"]}],JQ={anyOf:u6},UQ=Object.freeze(Object.defineProperty({__proto__:null,anyOf:u6,default:JQ},Symbol.toStringTag,{value:"Module"})),p6="div-sight-action",_6="object",f6={documentation:{include_in_toc:!1}},m6=[{$ref:"div-action-base.json"},{properties:{log_limit:{$ref:"common.json#/non_negative_integer",default_value:"1",$description:"translations.json#/div_log_limit"}}}],g6=["android","ios","web"],h6=["log_id"],WQ={protocol_name:p6,type:_6,codegen:f6,allOf:m6,platforms:g6,required:h6},KQ=Object.freeze(Object.defineProperty({__proto__:null,allOf:m6,codegen:f6,default:WQ,platforms:g6,protocol_name:p6,required:h6,type:_6},Symbol.toStringTag,{value:"Module"})),v6="string",b6="translations.json#/div_size_unit",y6=["android","ios"],YQ={type:v6,enum:["dp","sp","px"],$description:b6,platforms:y6},GQ=Object.freeze(Object.defineProperty({__proto__:null,$description:b6,default:YQ,platforms:y6,type:v6},Symbol.toStringTag,{value:"Module"})),w6=[{$ref:"div-fixed-size.json",$description:"translations.json#/div_size_fixed"},{$ref:"div-match-parent-size.json",$description:"translations.json#/div_size_match_parent"},{$ref:"div-wrap-content-size.json",$description:"translations.json#/div_size_wrap_content"}],XQ={anyOf:w6},ZQ=Object.freeze(Object.defineProperty({__proto__:null,anyOf:w6,default:XQ},Symbol.toStringTag,{value:"Module"})),$6="translations.json#/div_slide_transition",k6=[{$ref:"div-transition-base.json"},{properties:{type:{type:"string",enum:["slide"]},edge:{type:"string",enum:["left","top","right","bottom"],default_value:"bottom",$description:"translations.json#/div_slide_transition_edge"},distance:{$ref:"div-dimension.json",$description:"translations.json#/div_slide_transition_distance"}}}],j6=["type"],xQ={$description:$6,allOf:k6,required:j6},QQ=Object.freeze(Object.defineProperty({__proto__:null,$description:$6,allOf:k6,default:xQ,required:j6},Symbol.toStringTag,{value:"Module"})),S6="translations.json#/div_slider",T6={text_style:{type:"object",properties:{font_size:{$ref:"common.json#/non_negative_integer",$description:"translations.json#/div_font_size"},font_size_unit:{$ref:"div-size-unit.json",default_value:"sp",platforms:["android","ios"]},font_weight:{$ref:"div-font-weight.json",default_value:"regular",$description:"translations.json#/div_font_weight"},font_weight_value:{$ref:"common.json#/positive_integer",$description:"translations.json#/div_font_weight_value",platforms:["ios","web","android"]},text_color:{$ref:"common.json#/color",default_value:"#FF000000",$description:"translations.json#/div_text_color"},offset:{$ref:"div-point.json",$description:"translations.json#/div_slider_text_style_offset"}},required:["font_size"]},range:{type:"object",properties:{start:{type:"integer",$description:"translations.json#/div_slider_range_start"},end:{type:"integer",$description:"translations.json#/div_slider_range_end"},track_active_style:{$ref:"div-drawable.json",$description:"translations.json#/div_slider_track_active_style"},track_inactive_style:{$ref:"div-drawable.json",$description:"translations.json#/div_slider_track_inactive_style"},margins:{$ref:"div-edge-insets.json",$description:"translations.json#/div_slider_range_margins"}}}},C6=[{$ref:"div-base.json"},{properties:{type:{type:"string",enum:["slider"]},min_value:{type:"integer",default_value:"0",$description:"translations.json#/div_slider_min_value"},max_value:{type:"integer",default_value:"100",$description:"translations.json#/div_slider_max_value"},thumb_value_variable:{$ref:"div-variable-name.json",$description:"translations.json#/div_slider_thumb_value_variable"},thumb_secondary_value_variable:{$ref:"div-variable-name.json",$description:"translations.json#/div_slider_thumb_secondary_value_variable"},thumb_style:{$ref:"div-drawable.json",$description:"translations.json#/div_slider_thumb_style"},thumb_secondary_style:{$ref:"div-drawable.json",$description:"translations.json#/div_slider_thumb_secondary_style"},thumb_text_style:{$ref:"#/definitions/text_style",$description:"translations.json#/div_slider_thumb_text_style"},thumb_secondary_text_style:{$ref:"#/definitions/text_style",$description:"translations.json#/div_slider_thumb_secondary_text_style"},track_active_style:{$ref:"div-drawable.json",$description:"translations.json#/div_slider_track_active_style"},tick_mark_active_style:{$ref:"div-drawable.json",$description:"translations.json#/div_slider_tick_mark_active_style"},track_inactive_style:{$ref:"div-drawable.json",$description:"translations.json#/div_slider_track_inactive_style"},tick_mark_inactive_style:{$ref:"div-drawable.json",$description:"translations.json#/div_slider_tick_mark_inactive_style"},ranges:{type:"array",items:{$ref:"#/definitions/range"},$description:"translations.json#/div_slider_ranges",platforms:["android","ios","web"]},secondary_value_accessibility:{$ref:"div-accessibility.json",$description:"translations.json#/div_slider_secondary_value_accessibility",platforms:["web"]},is_enabled:{$ref:"common.json#/boolean_int",default_value:"true",$description:"translations.json#/div_slider_is_enabled",platforms:["android","web"]}}}],z6=["android","ios","web"],E6=["type","thumb_style","track_active_style","track_inactive_style"],eee={$description:S6,definitions:T6,allOf:C6,platforms:z6,required:E6},tee=Object.freeze(Object.defineProperty({__proto__:null,$description:S6,allOf:C6,default:eee,definitions:T6,platforms:z6,required:E6},Symbol.toStringTag,{value:"Module"})),A6="object",O6="translations.json#/div_solid_background",M6={divan:{forced_properties_order:["color"]}},P6={color:{$ref:"common.json#/color",$description:"translations.json#/div_solid_background_color"},type:{type:"string",enum:["solid"]}},I6=["color","type"],nee={type:A6,$description:O6,codegen:M6,properties:P6,required:I6},iee=Object.freeze(Object.defineProperty({__proto__:null,$description:O6,codegen:M6,default:nee,properties:P6,required:I6,type:A6},Symbol.toStringTag,{value:"Module"})),D6="translations.json#/div_state",V6={swift:{generate_optional_arguments:!1}},L6={div_state:{type:"object",alias_divan:"item",codegen:{swift:{generate_optional_arguments:!1}},properties:{state_id:{$ref:"common.json#/id",$description:"translations.json#/div_state_div_state_state_id"},div:{$ref:"div.json",$description:"translations.json#/div_state_div_state_div"},animation_in:{$ref:"div-animation.json",$description:"translations.json#/div_state_div_state_animation_in",platforms:["android","ios"],deprecated:!0},animation_out:{$ref:"div-animation.json",$description:"translations.json#/div_state_div_state_animation_out",platforms:["android","ios"],deprecated:!0},swipe_out_actions:{type:"array",items:{$ref:"div-action.json"},$description:"translations.json#/div_state_div_state_swipe_out_actions",platforms:["android"],deprecated:!0}},required:["state_id"]}},F6=[{$ref:"div-base.json"},{properties:{type:{type:"string",enum:["state"]},states:{type:"array",items:{$ref:"#/definitions/div_state"},minItems:1,$description:"translations.json#/div_state_states"},state_id_variable:{$ref:"div-variable-name.json",$description:"translations.json#/div_state_state_id_variable"},div_id:{$ref:"common.json#/id",$description:"translations.json#/div_state_div_id",deprecated:!0},default_state_id:{type:"string",$description:"translations.json#/div_state_default_state_id"},transition_animation_selector:{$ref:"div-transition-selector.json",default_value:"state_change",$description:"translations.json#/div_state_transition_animation_selector",deprecated:!0},clip_to_bounds:{$ref:"common.json#/boolean_int",default_value:"true",$description:"translations.json#/div_clip_to_bounds",platforms:["android","web","ios"]}},required:["type","states"]}],oee={$description:D6,codegen:V6,definitions:L6,allOf:F6},ree=Object.freeze(Object.defineProperty({__proto__:null,$description:D6,allOf:F6,codegen:V6,default:oee,definitions:L6},Symbol.toStringTag,{value:"Module"})),N6="object",q6="translations.json#/div_match_parent_size",R6={item_spacing:{$ref:"div-fixed-size.json",default_value:'{"type": "fixed","value":5}',$description:"translations.json#/div_indicator_space_between_centers"},max_visible_items:{$ref:"common.json#/positive_integer",default_value:"10",$description:"translations.json#/div_indicator_max_visible_items"},type:{type:"string",enum:["stretch"]}},B6=["android","ios","web"],H6=["type"],see={type:N6,$description:q6,properties:R6,platforms:B6,required:H6},lee=Object.freeze(Object.defineProperty({__proto__:null,$description:q6,default:see,platforms:B6,properties:R6,required:H6,type:N6},Symbol.toStringTag,{value:"Module"})),J6="object",U6="translations.json#/div_stroke_style_dashed",W6=["android","ios","web"],K6={type:{type:"string",enum:["dashed"]}},Y6=["type"],aee={type:J6,$description:U6,platforms:W6,properties:K6,required:Y6},cee=Object.freeze(Object.defineProperty({__proto__:null,$description:U6,default:aee,platforms:W6,properties:K6,required:Y6,type:J6},Symbol.toStringTag,{value:"Module"})),G6="object",X6="translations.json#/div_stroke_style_solid",Z6=["android","ios","web","flutter"],x6={type:{type:"string",enum:["solid"]}},Q6=["type"],dee={type:G6,$description:X6,platforms:Z6,properties:x6,required:Q6},uee=Object.freeze(Object.defineProperty({__proto__:null,$description:X6,default:dee,platforms:Z6,properties:x6,required:Q6,type:G6},Symbol.toStringTag,{value:"Module"})),ej="translations.json#/div_stroke_style",tj=[{$ref:"div-stroke-style-solid.json"},{$ref:"div-stroke-style-dashed.json"}],pee={$description:ej,anyOf:tj},_ee=Object.freeze(Object.defineProperty({__proto__:null,$description:ej,anyOf:tj,default:pee},Symbol.toStringTag,{value:"Module"})),nj="object",ij="translations.json#/div_stroke",oj={style:{$ref:"div-stroke-style.json",$description:"translations.json#/div_stroke_style",default_value:'{"type": "solid"}',platforms:["android","ios","web"]},width:{$ref:"common.json#/non_negative_number",default_value:"1",$description:"translations.json#/div_stroke_width"},color:{$ref:"common.json#/color",$description:"translations.json#/div_stroke_color"},unit:{$ref:"div-size-unit.json",default_value:"dp"}},rj=["color"],fee={type:nj,$description:ij,properties:oj,required:rj},mee=Object.freeze(Object.defineProperty({__proto__:null,$description:ij,default:fee,properties:oj,required:rj,type:nj},Symbol.toStringTag,{value:"Module"})),sj="translations.json#/div_switch",lj=[{$ref:"div-base.json"},{properties:{type:{type:"string",enum:["switch"]},is_on_variable:{$ref:"div-variable-name.json",$description:"translations.json#/div_switch_is_on_variable"},is_enabled:{$ref:"common.json#/boolean_int",default_value:"true",$description:"translations.json#/div_switch_is_enabled"},on_color:{$ref:"common.json#/color",$description:"translations.json#/div_switch_on_color"}}}],aj=["ios","android","web"],cj=["type","is_on_variable"],gee={$description:sj,allOf:lj,platforms:aj,required:cj},hee=Object.freeze(Object.defineProperty({__proto__:null,$description:sj,allOf:lj,default:gee,platforms:aj,required:cj},Symbol.toStringTag,{value:"Module"})),dj="translations.json#/div_tabs",uj={swift:{generate_optional_arguments:!1}},pj={item:{type:"object",codegen:{swift:{generate_optional_arguments:!1}},properties:{title:{type:"string",$description:"translations.json#/div_tabs_item_title"},title_click_action:{$ref:"div-action.json",$description:"translations.json#/div_tabs_item_title_click_action"},div:{$ref:"div.json",$description:"translations.json#/div_tabs_item_div"}},required:["title","div"],$description:"translations.json#/div_tabs_item"},delimiter_style:{type:"object",properties:{image_url:{$ref:"common.json#/url",$description:"translations.json#/div_image_image_url"},width:{$ref:"div-fixed-size.json",default_value:'{"type": "fixed", "value": 12}',$description:"translations.json#/div_base_width"},height:{$ref:"div-fixed-size.json",default_value:'{"type": "fixed", "value": 12}',$description:"translations.json#/div_base_height"}},required:["image_url"]}},_j=[{$ref:"div-base.json"},{properties:{type:{type:"string",enum:["tabs"]},title_paddings:{$ref:"div-edge-insets.json",default_value:'{"left": 12,"right": 12,"top": 0,"bottom": 8}',$description:"translations.json#/div_tabs_title_paddings"},separator_paddings:{$ref:"div-edge-insets.json",default_value:'{"left": 12,"right": 12,"top": 0,"bottom": 0}',$description:"translations.json#/div_tabs_separator_paddings"},tab_title_style:{type:"object",properties:{font_size:{$ref:"common.json#/non_negative_integer",default_value:"12",$description:"translations.json#/div_tabs_tab_title_style_font_size"},font_size_unit:{$ref:"div-size-unit.json",default_value:"sp",$description:"translations.json#/div_tabs_tab_title_style_font_size_unit",platforms:["android","ios"]},paddings:{$ref:"div-edge-insets.json",default_value:'{"left": 8,"right": 8,"top": 6,"bottom": 6}',$description:"translations.json#/div_tabs_tab_title_style_paddings"},item_spacing:{$ref:"common.json#/non_negative_integer",default_value:"0",$description:"translations.json#/div_tabs_tab_title_style_item_spacing"},line_height:{$ref:"common.json#/non_negative_integer",$description:"translations.json#/div_tabs_tab_title_style_line_height"},letter_spacing:{type:"number",default_value:"0",$description:"translations.json#/div_tabs_tab_title_style_letter_spacing"},font_weight:{$ref:"div-font-weight.json",default_value:"regular",$description:"translations.json#/div_tabs_tab_title_style_font_weight",deprecated:!0},active_font_weight:{$ref:"div-font-weight.json",$description:"translations.json#/div_tabs_tab_title_style_active_font_weight"},inactive_font_weight:{$ref:"div-font-weight.json",$description:"translations.json#/div_tabs_tab_title_style_inactive_font_weight"},font_family:{type:"string",$description:"translations.json#/div_font_family"},active_text_color:{$ref:"common.json#/color",default_value:"#CC000000",$description:"translations.json#/div_tabs_tab_title_style_active_text_color"},inactive_text_color:{$ref:"common.json#/color",default_value:"#80000000",$description:"translations.json#/div_tabs_tab_title_style_inactive_text_color"},active_background_color:{$ref:"common.json#/color",default_value:"#FFFFDC60",$description:"translations.json#/div_tabs_tab_title_style_active_background_color"},inactive_background_color:{$ref:"common.json#/color",$description:"translations.json#/div_tabs_tab_title_style_inactive_background_color"},corner_radius:{$ref:"common.json#/non_negative_integer",$description:"translations.json#/div_tabs_tab_title_style_corner_radius"},corners_radius:{$ref:"div-corners-radius.json",$description:"translations.json#/div_tabs_tab_title_style_corners_radius"},animation_type:{type:"string",enum:["slide","fade","none"],default_value:"slide",$description:"translations.json#/div_tabs_tab_title_style_animation_type",platforms:["android","ios","web"]},animation_duration:{$ref:"common.json#/non_negative_integer",default_value:"300",$description:"translations.json#/div_tabs_tab_title_style_animation_duration"}},$description:"translations.json#/div_tabs_tab_title_style"},tab_title_delimiter:{$ref:"#/definitions/delimiter_style",$description:"translations.json#/div_tabs_tab_title_delimiter_delimiter_style",platforms:["android","web"]},selected_tab:{$ref:"common.json#/non_negative_integer",default_value:"0",$description:"translations.json#/div_tabs_selected_tab"},has_separator:{$ref:"common.json#/boolean_int",default_value:"false",$description:"translations.json#/div_tabs_has_separator"},switch_tabs_by_content_swipe_enabled:{$ref:"common.json#/boolean_int",default_value:"true",$description:"translations.json#/div_tabs_switch_tabs_by_content_swipe_enabled"},separator_color:{$ref:"common.json#/color",default_value:"#14000000",$description:"translations.json#/div_tabs_separator_color"},items:{type:"array",items:{$ref:"#/definitions/item"},minItems:1,$description:"translations.json#/div_tabs_items"},dynamic_height:{$ref:"common.json#/boolean_int",default_value:"false",$description:"translations.json#/div_tabs_dynamic_height",platforms:["android","ios"]},restrict_parent_scroll:{$ref:"common.json#/boolean_int",default_value:"false",$description:"translations.json#/div_tabs_restrict_parent_scroll",platforms:["android","web"]}}}],fj=["android","ios","web"],mj=["type","items"],vee={$description:dj,codegen:uj,definitions:pj,allOf:_j,platforms:fj,required:mj},bee=Object.freeze(Object.defineProperty({__proto__:null,$description:dj,allOf:_j,codegen:uj,default:vee,definitions:pj,platforms:fj,required:mj},Symbol.toStringTag,{value:"Module"})),gj="string",yee={type:gj,enum:["top","center","bottom","baseline"]},wee=Object.freeze(Object.defineProperty({__proto__:null,default:yee,type:gj},Symbol.toStringTag,{value:"Module"})),hj=[{$ref:"div-linear-gradient.json",$description:"translations.json#/div_gradient_linear",platforms:["android","ios","web"]},{$ref:"div-radial-gradient.json",$description:"translations.json#/div_gradient_radial",platforms:["android","ios","web"]}],$ee={anyOf:hj},kee=Object.freeze(Object.defineProperty({__proto__:null,anyOf:hj,default:$ee},Symbol.toStringTag,{value:"Module"})),vj=[{$ref:"div-solid-background.json",$description:"translations.json#/div_background_solid"},{$ref:"div-cloud-background.json",$description:"translations.json#/div_cloud_background"}],jee={anyOf:vj},See=Object.freeze(Object.defineProperty({__proto__:null,anyOf:vj,default:jee},Symbol.toStringTag,{value:"Module"})),bj="object",yj="translations.json#/div_text_range_border",wj={stroke:{$ref:"div-stroke.json",$description:"translations.json#/div_border_stroke"},corner_radius:{$ref:"common.json#/non_negative_integer",$description:"translations.json#/div_border_corner_radius"}},$j=["android","ios","web"],Tee={type:bj,$description:yj,properties:wj,platforms:$j},Cee=Object.freeze(Object.defineProperty({__proto__:null,$description:yj,default:Tee,platforms:$j,properties:wj,type:bj},Symbol.toStringTag,{value:"Module"})),kj="object",jj={is_enabled:{type:"boolean",$description:"translations.json#/div_text_range_mask_is_enabled",default_value:"true"}},zee={type:kj,properties:jj},Eee=Object.freeze(Object.defineProperty({__proto__:null,default:zee,properties:jj,type:kj},Symbol.toStringTag,{value:"Module"})),Sj=[{$ref:"div-text-range-mask-base.json"},{$description:"translations.json#/div_text_range_mask_particles",properties:{type:{type:"string",enum:["particles"]},color:{$ref:"common.json#/color",$description:"translations.json#/div_text_range_mask_particles_color"},is_animated:{type:"boolean",default_value:"false",$description:"translations.json#/div_text_range_mask_particles_animated"},particle_size:{$ref:"div-fixed-size.json",$description:"translations.json#/div_text_range_mask_particles_size",default_value:'{"type":"fixed","value":1}'},density:{type:"number",default_value:"0.8",constraint:"number > 0.0 && number <= 1.0",$description:"translations.json#/div_text_range_mask_particles_density"}},platforms:["web"],required:["type","color"]}],Aee={allOf:Sj},Oee=Object.freeze(Object.defineProperty({__proto__:null,allOf:Sj,default:Aee},Symbol.toStringTag,{value:"Module"})),Tj=[{$ref:"div-text-range-mask-base.json"},{$description:"translations.json#/div_text_range_mask_solid",properties:{type:{type:"string",enum:["solid"]},color:{$ref:"common.json#/color",$description:"translations.json#/div_solid_background_color"}},platforms:["web"],required:["color","type"]}],Mee={allOf:Tj},Pee=Object.freeze(Object.defineProperty({__proto__:null,allOf:Tj,default:Mee},Symbol.toStringTag,{value:"Module"})),Cj=[{$ref:"div-text-range-mask-particles.json"},{$ref:"div-text-range-mask-solid.json"}],Iee={anyOf:Cj},Dee=Object.freeze(Object.defineProperty({__proto__:null,anyOf:Cj,default:Iee},Symbol.toStringTag,{value:"Module"})),zj="translations.json#/div_text",Ej={divan:{forced_properties_order:["text"]}},Aj={range:{type:"object",platforms:["android","ios","web"],properties:{start:{$ref:"common.json#/non_negative_integer",default_value:"0",$description:"translations.json#/div_text_range_start"},end:{$ref:"common.json#/positive_integer",$description:"translations.json#/div_text_range_end"},alignment_vertical:{$ref:"div-text-alignment-vertical.json",$description:"translations.json#/div_text_range_alignment_vertical",platforms:["android","web"]},baseline_offset:{type:"number",$description:"translations.json#/div_text_range_baseline_offset",default_value:"0",platforms:["android","ios","web"]},font_size:{$ref:"common.json#/non_negative_integer",$description:"translations.json#/div_font_size"},font_family:{type:"string",$description:"translations.json#/div_font_family"},font_size_unit:{$ref:"div-size-unit.json",default_value:"sp",$description:"translations.json#/div_font_size_unit",platforms:["android","ios"]},font_feature_settings:{type:"string",$description:"translations.json#/div_font_feature_settings",platforms:["android","ios","web"]},letter_spacing:{type:"number",$description:"translations.json#/div_text_range_letter_spacing"},font_weight:{$ref:"div-font-weight.json",$description:"translations.json#/div_font_weight"},font_weight_value:{$ref:"common.json#/positive_integer",$description:"translations.json#/div_font_weight_value",platforms:["ios","web","android"]},text_color:{$ref:"common.json#/color",$description:"translations.json#/div_text_color"},underline:{$ref:"div-line-style.json",$description:"translations.json#/div_text_range_underline"},strike:{$ref:"div-line-style.json",$description:"translations.json#/div_text_range_strike"},actions:{type:"array",items:{$ref:"div-action.json"},$description:"translations.json#/div_text_range_actions"},line_height:{$ref:"common.json#/non_negative_integer",$description:"translations.json#/div_text_range_line_height"},top_offset:{$ref:"common.json#/non_negative_integer",$description:"translations.json#/div_text_range_top_offset"},border:{$ref:"div-text-range-border.json",$description:"translations.json#/div_text_range_border"},background:{$ref:"div-text-range-background.json",$description:"translations.json#/div_text_range_background"},text_shadow:{$ref:"div-shadow.json",$description:"translations.json#/div_text_range_shadow",platforms:["android","ios","web"]},mask:{$ref:"div-text-range-mask.json",$description:"translations.json#/div_text_range_mask",platforms:["web"]}},$description:"translations.json#/div_text_range"},image:{type:"object",platforms:["android","ios","web"],properties:{start:{$ref:"common.json#/non_negative_integer",$description:"translations.json#/div_text_image_start"},url:{$ref:"common.json#/url",$description:"translations.json#/div_text_image_url"},width:{$ref:"div-fixed-size.json",default_value:'{"type": "fixed","value":20}',$description:"translations.json#/div_text_image_width"},height:{$ref:"div-fixed-size.json",default_value:'{"type": "fixed","value":20}',$description:"translations.json#/div_text_image_height"},tint_color:{$ref:"common.json#/color",$description:"translations.json#/div_text_image_tint_color"},tint_mode:{$ref:"div-blend-mode.json",default_value:"source_in",$description:"translations.json#/div_text_image_tint_mode",platforms:["android","ios","web"]},preload_required:{$ref:"common.json#/boolean_int",default_value:"false",$description:"translations.json#/div_image_base_preload_required",platforms:["web"]},accessibility:{type:"object",properties:{description:{type:"string",$description:"translations.json#/div_accessibility_description"},type:{type:"string",enum:["none","button","image","text","auto"],default_value:"auto",supports_expressions:!1,$description:"translations.json#/div_accessibility_type"}},platforms:["android","web"]},alignment_vertical:{$ref:"div-text-alignment-vertical.json",default_value:"center",$description:"translations.json#/div_text_image_alignment_vertical",platforms:["android","web"]},indexing_direction:{type:"string",enum:["normal","reversed"],default_value:"normal",$description:"translations.json#/div_text_image_indexing_direction",platforms:["android","ios","web"]}},required:["url","start"],$description:"translations.json#/div_text_image"},ellipsis:{type:"object",properties:{text:{type:"string",$description:"translations.json#/div_text_ellipsis_text"},actions:{type:"array",items:{$ref:"div-action.json"},$description:"translations.json#/div_text_ellipsis_actions"},ranges:{type:"array",items:{$ref:"#/definitions/range"},$description:"translations.json#/div_text_ellipsis_ranges"},images:{type:"array",items:{$ref:"#/definitions/image"},$description:"translations.json#/div_text_ellipsis_images"}},required:["text"],$description:"translations.json#/div_text_ellipsis",platforms:["android","ios"]}},Oj=[{$ref:"div-base.json"},{$ref:"div-actionable.json"},{properties:{type:{type:"string",enum:["text"]},font_size:{$ref:"common.json#/non_negative_integer",default_value:"12",$description:"translations.json#/div_font_size"},font_family:{type:"string",$description:"translations.json#/div_font_family",platforms:["android","ios","web"]},font_size_unit:{$ref:"div-size-unit.json",default_value:"sp",platforms:["android","ios"]},font_feature_settings:{type:"string",$description:"translations.json#/div_font_feature_settings",platforms:["android","ios","web"]},line_height:{$ref:"common.json#/non_negative_integer",$description:"translations.json#/div_text_line_height"},max_lines:{$ref:"common.json#/non_negative_integer",$description:"translations.json#/div_text_max_lines"},min_hidden_lines:{$ref:"common.json#/non_negative_integer",$description:"translations.json#/div_text_min_hidden_lines",platforms:["android","ios"]},auto_ellipsize:{$ref:"common.json#/boolean_int",$description:"translations.json#/div_text_auto_ellipsize",platforms:["android","ios","web","flutter"]},letter_spacing:{type:"number",default_value:"0",$description:"translations.json#/div_text_letter_spacing",platforms:["android","ios","web"]},font_weight:{$ref:"div-font-weight.json",default_value:"regular",$description:"translations.json#/div_font_weight"},font_weight_value:{$ref:"common.json#/positive_integer",$description:"translations.json#/div_font_weight_value",platforms:["ios","android","web"]},text_alignment_horizontal:{$ref:"div-alignment-horizontal.json",default_value:"start",$description:"translations.json#/div_text_text_alignment_horizontal"},text_alignment_vertical:{$ref:"div-alignment-vertical.json",default_value:"top",$description:"translations.json#/div_text_text_alignment_vertical"},text_color:{$ref:"common.json#/color",default_value:"#FF000000",$description:"translations.json#/div_text_text_color"},focused_text_color:{$ref:"common.json#/color",$description:"translations.json#/div_text_focused_text_color",platforms:["android","web"]},text_gradient:{$ref:"div-text-gradient.json",$description:"translations.json#/div_text_text_gradient",platforms:["android","ios","web"]},text:{type:"string",$description:"translations.json#/div_text_text"},underline:{$ref:"div-line-style.json",default_value:"none",$description:"translations.json#/div_text_underline"},strike:{$ref:"div-line-style.json",default_value:"none",$description:"translations.json#/div_text_strike"},ranges:{type:"array",items:{$ref:"#/definitions/range"},$description:"translations.json#/div_text_ranges",platforms:["android","ios","web"]},images:{type:"array",items:{$ref:"#/definitions/image"},$description:"translations.json#/div_text_images",platforms:["android","ios","web"]},ellipsis:{$ref:"#/definitions/ellipsis"},selectable:{$ref:"common.json#/boolean_int",default_value:"false",$description:"translations.json#/div_text_selectable",platforms:["android","ios","web"]},tighten_width:{$ref:"common.json#/boolean_int",default_value:"false",$description:"translations.json#/div_text_tighten_width",platforms:["android","ios"]},truncate:{type:"string",enum:["none","start","end","middle"],default_value:"end",$description:"translations.json#/div_text_truncate",platforms:[]},text_shadow:{$ref:"div-shadow.json",$description:"translations.json#/div_text_shadow",platforms:["android","ios","web"]}}}],Mj=["type","text"],Vee={$description:zj,codegen:Ej,definitions:Aj,allOf:Oj,required:Mj},Lee=Object.freeze(Object.defineProperty({__proto__:null,$description:zj,allOf:Oj,codegen:Ej,default:Vee,definitions:Aj,required:Mj},Symbol.toStringTag,{value:"Module"})),Pj="object",Ij="translations.json#/div_timer",Dj={id:{$ref:"common.json#/id",$description:"translations.json#/div_timer_id"},duration:{$ref:"common.json#/non_negative_integer",long_type:!0,default_value:"0",$description:"translations.json#/div_timer_duration"},tick_interval:{$ref:"common.json#/positive_integer",long_type:!0,$description:"translations.json#/div_timer_tick_interval"},value_variable:{$ref:"div-variable-name.json",$description:"translations.json#/div_timer_value_variable"},tick_actions:{type:"array",items:{$ref:"div-action.json"},$description:"translations.json#/div_timer_tick_actions"},end_actions:{type:"array",items:{$ref:"div-action.json"},$description:"translations.json#/div_timer_end_actions"}},Vj=["id"],Fee={type:Pj,$description:Ij,properties:Dj,required:Vj},Nee=Object.freeze(Object.defineProperty({__proto__:null,$description:Ij,default:Fee,properties:Dj,required:Vj,type:Pj},Symbol.toStringTag,{value:"Module"})),Lj="object",Fj="translations.json#/div_tooltip_mode_modal",Nj=["android","ios","web"],qj={type:{type:"string",enum:["modal"]}},Rj=["type"],qee={type:Lj,$description:Fj,platforms:Nj,properties:qj,required:Rj},Ree=Object.freeze(Object.defineProperty({__proto__:null,$description:Fj,default:qee,platforms:Nj,properties:qj,required:Rj,type:Lj},Symbol.toStringTag,{value:"Module"})),Bj="object",Hj="translations.json#/div_tooltip_mode_non_modal",Jj=["ios","android","web"],Uj={type:{type:"string",enum:["non_modal"]}},Wj=["type"],Bee={type:Bj,$description:Hj,platforms:Jj,properties:Uj,required:Wj},Hee=Object.freeze(Object.defineProperty({__proto__:null,$description:Hj,default:Bee,platforms:Jj,properties:Uj,required:Wj,type:Bj},Symbol.toStringTag,{value:"Module"})),Kj="translations.json#/div_tooltip_mode",Yj=[{$ref:"div-tooltip-mode-non-modal.json"},{$ref:"div-tooltip-mode-modal.json"}],Jee={$description:Kj,anyOf:Yj},Uee=Object.freeze(Object.defineProperty({__proto__:null,$description:Kj,anyOf:Yj,default:Jee},Symbol.toStringTag,{value:"Module"})),Gj="object",Xj="translations.json#/div_tooltip",Zj=["android","ios","web"],xj={id:{$ref:"common.json#/id",$description:"translations.json#/div_tooltip_id"},div:{$ref:"div.json",$description:"translations.json#/div_tooltip_div"},position:{type:"string",enum:["left","top-left","top","top-right","right","bottom-right","bottom","bottom-left","center"],$description:"translations.json#/div_tooltip_position"},duration:{$ref:"common.json#/non_negative_integer",default_value:"5000",$description:"translations.json#/div_tooltip_duration"},offset:{$ref:"div-point.json",$description:"translations.json#/div_tooltip_offset"},animation_in:{$ref:"div-animation.json",$description:"translations.json#/div_tooltip_animation_in",platforms:["android","ios","web"]},animation_out:{$ref:"div-animation.json",$description:"translations.json#/div_tooltip_animation_out",platforms:["android","ios","web"]},mode:{$ref:"div-tooltip-mode.json",default_value:'{ "type": "modal" }',$description:"translations.json#/div_tooltip_mode",platforms:["android","ios","web"]},tap_outside_actions:{type:"array",items:{$ref:"div-action.json"},$description:"translations.json#/div_tooltip_tap_outside_actions",platforms:["ios","web"]},close_by_tap_outside:{type:"boolean",$description:"translations.json#/div_tooltip_close_by_tap_outside",default_value:"true",platforms:["android","ios","web"]},background_accessibility_description:{type:"string",$description:"translations.json#/div_tooltip_background_accessibility_description",platforms:["ios","web"]}},Qj=["id","div","position"],Wee={type:Gj,$description:Xj,platforms:Zj,properties:xj,required:Qj},Kee=Object.freeze(Object.defineProperty({__proto__:null,$description:Xj,default:Wee,platforms:Zj,properties:xj,required:Qj,type:Gj},Symbol.toStringTag,{value:"Module"})),e8="object",t8="translations.json#/div_transform",n8=["android","ios","web"],i8={rotation:{type:"number",$description:"translations.json#/div_transform_rotation"},pivot_x:{$ref:"div-pivot.json",default_value:'{"type": "pivot-percentage","value":50}',$description:"translations.json#/div_transform_pivot_x"},pivot_y:{$ref:"div-pivot.json",default_value:'{"type": "pivot-percentage","value":50}',$description:"translations.json#/div_transform_pivot_y"}},Yee={type:e8,$description:t8,platforms:n8,properties:i8},Gee=Object.freeze(Object.defineProperty({__proto__:null,$description:t8,default:Yee,platforms:n8,properties:i8,type:e8},Symbol.toStringTag,{value:"Module"})),o8="object",r8="div-transition-base",s8={documentation:{include_in_toc:!0}},l8={start_delay:{$ref:"common.json#/non_negative_integer",default_value:"0",$description:"translations.json#/div_transition_base_start_delay"},duration:{$ref:"common.json#/non_negative_integer",default_value:"200",$description:"translations.json#/div_transition_base_duration"},interpolator:{$ref:"div-animation-interpolator.json",default_value:"ease_in_out",$description:"translations.json#/div_transition_base_interpolator"}},a8=["android","ios","web"],Xee={type:o8,protocol_name:r8,codegen:s8,properties:l8,platforms:a8},Zee=Object.freeze(Object.defineProperty({__proto__:null,codegen:s8,default:Xee,platforms:a8,properties:l8,protocol_name:r8,type:o8},Symbol.toStringTag,{value:"Module"})),c8="string",d8="translations.json#/div_transition_selector",u8=!0,p8=["android","ios","web"],xee={type:c8,enum:["none","data_change","state_change","any_change"],$description:d8,deprecated:u8,platforms:p8},Qee=Object.freeze(Object.defineProperty({__proto__:null,$description:d8,default:xee,deprecated:u8,platforms:p8,type:c8},Symbol.toStringTag,{value:"Module"})),_8="string",f8="translations.json#/div_transition_trigger",m8=["android","ios","web"],ete={type:_8,enum:["data_change","state_change","visibility_change"],$description:f8,platforms:m8},tte=Object.freeze(Object.defineProperty({__proto__:null,$description:f8,default:ete,platforms:m8,type:_8},Symbol.toStringTag,{value:"Module"})),g8="object",h8="translations.json#/div_trigger",v8={condition:{$ref:"common.json#/boolean_int",supports_expressions:!0,$description:"translations.json#/div_trigger_condition"},mode:{type:"string",default_value:"on_condition",enum:["on_condition","on_variable"],$description:"translations.json#/div_trigger_mode"},actions:{type:"array",items:{$ref:"div-action.json"},minItems:1,$description:"translations.json#/div_trigger_actions"}},b8=["condition","actions"],nte={type:g8,$description:h8,properties:v8,required:b8},ite=Object.freeze(Object.defineProperty({__proto__:null,$description:h8,default:nte,properties:v8,required:b8,type:g8},Symbol.toStringTag,{value:"Module"})),y8={string_value:{alias_kotlin:"str_value",type:"object",properties:{type:{type:"string",enum:["string"]},value:{type:"string"}},required:["type","value"]},integer_value:{type:"object",properties:{type:{type:"string",enum:["integer"]},value:{type:"integer"}},required:["type","value"]},number_value:{type:"object",properties:{type:{type:"string",enum:["number"]},value:{type:"number"}},required:["type","value"]},color_value:{type:"object",properties:{type:{type:"string",enum:["color"]},value:{$ref:"common.json#/color"}},required:["type","value"]},boolean_value:{alias_kotlin:"bool_value",type:"object",properties:{type:{type:"string",enum:["boolean"]},value:{type:"boolean"}},required:["type","value"]},url_value:{type:"object",properties:{type:{type:"string",enum:["url"]},value:{$ref:"common.json#/url"}},required:["type","value"]},dict_value:{type:"object",properties:{type:{type:"string",enum:["dict"]},value:{type:"object",additionalProperties:!0}},required:["type","value"]},array_value:{type:"object",properties:{type:{type:"string",enum:["array"]},value:{type:"array"}},required:["type","value"]}},w8=[{$ref:"#/definitions/string_value"},{$ref:"#/definitions/integer_value"},{$ref:"#/definitions/number_value"},{$ref:"#/definitions/color_value"},{$ref:"#/definitions/boolean_value"},{$ref:"#/definitions/url_value"},{$ref:"#/definitions/dict_value"},{$ref:"#/definitions/array_value"}],ote={definitions:y8,anyOf:w8},rte=Object.freeze(Object.defineProperty({__proto__:null,anyOf:w8,default:ote,definitions:y8},Symbol.toStringTag,{value:"Module"})),$8="string",k8=!1,ste={type:$8,supports_expressions:k8},lte=Object.freeze(Object.defineProperty({__proto__:null,default:ste,supports_expressions:k8,type:$8},Symbol.toStringTag,{value:"Module"})),j8={string_variable:{alias_kotlin:"str_variable",type:"object",$description:"translations.json#/div_variable_string",properties:{name:{$ref:"div-variable-name.json",$description:"translations.json#/div_variable_name"},type:{type:"string",enum:["string"]},value:{supports_expressions:!1,type:"string",$description:"translations.json#/div_variable_value"}},required:["name","value","type"]},integer_variable:{type:"object",$description:"translations.json#/div_variable_integer",properties:{name:{$ref:"div-variable-name.json",$description:"translations.json#/div_variable_name"},type:{type:"string",enum:["integer"]},value:{supports_expressions:!1,long_type:!0,type:"integer",$description:"translations.json#/div_variable_value"}},required:["name","value","type"]},number_variable:{type:"object",$description:"translations.json#/div_variable_number",properties:{name:{$ref:"div-variable-name.json",$description:"translations.json#/div_variable_name"},type:{type:"string",enum:["number"]},value:{supports_expressions:!1,type:"number",$description:"translations.json#/div_variable_value"}},required:["name","value","type"]},boolean_variable:{alias_kotlin:"bool_variable",type:"object",$description:"translations.json#/div_variable_boolean",properties:{name:{$ref:"div-variable-name.json",$description:"translations.json#/div_variable_name"},type:{type:"string",enum:["boolean"]},value:{supports_expressions:!1,$ref:"common.json#/boolean_int",$description:"translations.json#/div_variable_value"}},required:["name","value","type"]},color_variable:{type:"object",$description:"translations.json#/div_variable_color",properties:{name:{$ref:"div-variable-name.json",$description:"translations.json#/div_variable_name"},type:{supports_expressions:!1,type:"string",enum:["color"]},value:{supports_expressions:!1,$ref:"common.json#/color",$description:"translations.json#/div_variable_value"}},required:["name","value","type"]},url_variable:{type:"object",$description:"translations.json#/div_variable_url",properties:{name:{$ref:"div-variable-name.json",$description:"translations.json#/div_variable_name"},type:{type:"string",enum:["url"]},value:{supports_expressions:!1,$ref:"common.json#/url",$description:"translations.json#/div_variable_value"}},required:["name","value","type"]},dict_variable:{type:"object",$description:"translations.json#/div_variable_dict",properties:{name:{$ref:"div-variable-name.json",$description:"translations.json#/div_variable_name"},type:{type:"string",enum:["dict"]},value:{supports_expressions:!1,type:"object",additionalProperties:!0,$description:"translations.json#/div_variable_value"}},required:["name","value","type"]},array_variable:{type:"object",$description:"translations.json#/div_variable_array",properties:{name:{$ref:"div-variable-name.json",$description:"translations.json#/div_variable_name"},type:{type:"string",enum:["array"]},value:{type:"array",supports_expressions:!1,$description:"translations.json#/div_variable_value"}},required:["name","value","type"]}},S8=[{$ref:"#/definitions/string_variable"},{$ref:"#/definitions/number_variable"},{$ref:"#/definitions/integer_variable"},{$ref:"#/definitions/boolean_variable"},{$ref:"#/definitions/color_variable"},{$ref:"#/definitions/url_variable"},{$ref:"#/definitions/dict_variable"},{$ref:"#/definitions/array_variable"}],ate={definitions:j8,anyOf:S8},cte=Object.freeze(Object.defineProperty({__proto__:null,anyOf:S8,default:ate,definitions:j8},Symbol.toStringTag,{value:"Module"})),T8="string",dte={type:T8,enum:["fill","no_scale","fit"]},ute=Object.freeze(Object.defineProperty({__proto__:null,default:dte,type:T8},Symbol.toStringTag,{value:"Module"})),C8={resolution:{type:"object",properties:{type:{type:"string",enum:["resolution"]},width:{$ref:"common.json#/positive_integer",$description:"translations.json#/div_video_source_resolution_width"},height:{$ref:"common.json#/positive_integer",$description:"translations.json#/div_video_source_resolution_height"}},required:["type","width","height"]}},z8="object",E8={type:{type:"string",enum:["video_source"]},url:{$ref:"common.json#/url",$description:"translations.json#/div_video_source_url"},resolution:{$ref:"#/definitions/resolution",$description:"translations.json#/div_video_source_resolution"},mime_type:{type:"string",$description:"translations.json#/div_video_source_mime_type"},bitrate:{type:"integer",$description:"translations.json#/div_video_source_bitrate"}},A8=["type","url","mime_type"],pte={definitions:C8,type:z8,properties:E8,required:A8},_te=Object.freeze(Object.defineProperty({__proto__:null,default:pte,definitions:C8,properties:E8,required:A8,type:z8},Symbol.toStringTag,{value:"Module"})),O8="translations.json#/div_video",M8=[{$ref:"div-base.json"},{properties:{type:{type:"string",enum:["video"]},video_sources:{type:"array",items:{$ref:"div-video-source.json",$description:"translations.json#/div_video_source"},minItems:1},repeatable:{$ref:"common.json#/boolean_int",default_value:"false",$description:"translations.json#/div_video_repeatable"},autostart:{$ref:"common.json#/boolean_int",default_value:"false",$description:"translations.json#/div_video_autostart"},preload_required:{$ref:"common.json#/boolean_int",default_value:"false",$description:"translations.json#/div_video_preload_required",platforms:["android","web"]},muted:{$ref:"common.json#/boolean_int",default_value:"false",$description:"translations.json#/div_video_muted"},preview:{type:"string",$description:"translations.json#/div_video_preview"},elapsed_time_variable:{$ref:"div-variable-name.json",$description:"translations.json#/div_video_elapsed_time_variable"},resume_actions:{type:"array",items:{$ref:"div-action.json"},$description:"translations.json#/div_video_resume_actions"},pause_actions:{type:"array",items:{$ref:"div-action.json"},$description:"translations.json#/div_video_pause_actions"},end_actions:{type:"array",items:{$ref:"div-action.json"},$description:"translations.json#/div_video_end_actions"},buffering_actions:{type:"array",items:{$ref:"div-action.json"},$description:"translations.json#/div_video_buffering_actions"},fatal_actions:{type:"array",items:{$ref:"div-action.json"},$description:"translations.json#/div_video_fatal_actions"},player_settings_payload:{type:"object",additionalProperties:!0,$description:"translations.json#/div_video_player_settings_payload",platforms:["android","ios","web"]},aspect:{$ref:"div-aspect.json",$description:"translations.json#/div_aspect"},scale:{$ref:"div-video-scale.json",default_value:"fit",$description:"translations.json#/div_video_scale"}}}],P8=["android","ios","web"],I8=["type","video_sources"],fte={$description:O8,allOf:M8,platforms:P8,required:I8},mte=Object.freeze(Object.defineProperty({__proto__:null,$description:O8,allOf:M8,default:fte,platforms:P8,required:I8},Symbol.toStringTag,{value:"Module"})),D8="translations.json#/div_visibility_action",V8=[{$ref:"div-sight-action.json"},{properties:{visibility_percentage:{type:"integer",constraint:"number > 0 && number <= 100",default_value:"50",$description:"translations.json#/div_visibility_action_visibility_percentage"},visibility_duration:{$ref:"common.json#/non_negative_integer",default_value:"800",$description:"translations.json#/div_visibility_action_visibility_duration"}}}],gte={$description:D8,allOf:V8},hte=Object.freeze(Object.defineProperty({__proto__:null,$description:D8,allOf:V8,default:gte},Symbol.toStringTag,{value:"Module"})),L8="string",F8="translations.json#/div_visibility",vte={type:L8,enum:["visible","invisible","gone"],$description:F8},bte=Object.freeze(Object.defineProperty({__proto__:null,$description:F8,default:vte,type:L8},Symbol.toStringTag,{value:"Module"})),N8="object",q8="translations.json#/div_wrap_content_size",R8={constraint_size:{type:"object",properties:{value:{$ref:"common.json#/non_negative_integer"},unit:{$ref:"div-size-unit.json",$description:"translations.json#/div_size_unit",default_value:"dp"}},required:["value"]}},B8={type:{type:"string",enum:["wrap_content"]},constrained:{$ref:"common.json#/boolean_int",$description:"translations.json#/div_wrap_content_size_constrained"},min_size:{$ref:"#/definitions/constraint_size",$description:"translations.json#/div_size_min"},max_size:{$ref:"#/definitions/constraint_size",$description:"translations.json#/div_size_max"}},H8=["type"],yte={type:N8,$description:q8,definitions:R8,properties:B8,required:H8},wte=Object.freeze(Object.defineProperty({__proto__:null,$description:q8,default:yte,definitions:R8,properties:B8,required:H8,type:N8},Symbol.toStringTag,{value:"Module"})),J8=!0,U8=!0,W8=[{$ref:"div-image.json",$description:"translations.json#/div_image_short"},{$ref:"div-gif-image.json",$description:"translations.json#/div_gif_image_short"},{$ref:"div-text.json",$description:"translations.json#/div_text_short"},{$ref:"div-separator.json",$description:"translations.json#/div_separator_short"},{$ref:"div-container.json",$description:"translations.json#/div_container_short"},{$ref:"div-grid.json",$description:"translations.json#/div_grid_short"},{$ref:"div-gallery.json",$description:"translations.json#/div_gallery_short"},{$ref:"div-pager.json",$description:"translations.json#/div_pager_short"},{$ref:"div-tabs.json",$description:"translations.json#/div_tabs_short"},{$ref:"div-state.json",$description:"translations.json#/div_state_short"},{$ref:"div-custom.json",$description:"translations.json#/div_custom_short"},{$ref:"div-indicator.json",$description:"translations.json#/div_indicator_short"},{$ref:"div-slider.json",$description:"translations.json#/div_slider_short"},{$ref:"div-switch.json",$description:"translations.json#/div_switch_short"},{$ref:"div-input.json",$description:"translations.json#/div_input_short"},{$ref:"div-select.json",$description:"translations.json#/div_select"},{$ref:"div-video.json",$description:"translations.json#/div_video"}],$te={generate_case_for_templates_kotlinDsl:J8,generate_case_for_templates_typescript:U8,anyOf:W8},kte=Object.freeze(Object.defineProperty({__proto__:null,anyOf:W8,default:$te,generate_case_for_templates_kotlinDsl:J8,generate_case_for_templates_typescript:U8},Symbol.toStringTag,{value:"Module"})),K8={en:"Sets margins without regard to screen properties.",ru:"Устанавливает отступы, без учета свойств экрана."},Y8={en:"Accessibility settings.",ru:"Настройки доступности."},G8={en:"Element description. It is used as the main description for screen reading applications.",ru:"Описание элемента. Используется в качестве основного описания для программ экранного чтения."},X8={en:"A tooltip of what will happen during interaction. If Speak Hints is enabled in the VoiceOver settings on iOS, a tooltip is played after `description`.",ru:"Подсказка, что произойдет при взаимодействии. Если на iOS в настройках VoiceOver включен Speak Hints, то подсказка воспроизводится после `description`."},Z8={en:"Shows the current status of the checkbox or toggle: `true` means it's selected, `false` means it isn't selected.",ru:"Указывает текущее состояние чекбокса или переключателя. `true` — выбран, `false` — не выбран."},x8={en:"The way the accessibility tree is organized. In the `merge` mode the accessibility service perceives an element together with a subtree as a whole. In the `exclude` mode an element together with a subtree isn't available for accessibility.",ru:"Способ организации дерева accessibility. В режиме `merge` accessibility-сервис воспринимает элемент вместе с поддеревом как одно целое. В режиме `exclude` элемент вместе с поддеревом недоступен для accessibility."},Q8={en:"Mutes the screen reader sound after interacting with the element.",ru:"Заглушает звук чтения экрана после взаимодействия с элементом."},e7={en:"Description of the current state of an element. For example, in the description you can specify a selected date for a date selection element and an on/off state for a switch.",ru:"Описание текущего состояния элемента. Например, в описании можно указать выбранную дату для элемента выбора даты, а для переключателя — состояние включен/выключен."},t7={en:"Element role. Used to correctly identify an element by the accessibility service. For example, the `list` element is used to group list elements into one element.",ru:"Роль элемента. Используется для правильной идентификации элемента accessibility-сервисом. Например, элемент `list` используется для группировки элементов списка в один элемент."},n7={en:"It defines an action when clicking on an element.",ru:"Определяет действие при нажатии на элемент."},i7={en:"Launches the specified animator.",ru:"Запускает указанный аниматор."},o7={en:"ID of the animator launched.",ru:"Идентификатор аниматора, который нужно запустить."},r7={en:"Overrides the value that will be set after the animation finishes.",ru:"Переопределяет, какое значение будет установлено в переменную после завершения анимации."},s7={en:"Overrides the value that will be set before the animation begins.",ru:"Переопределяет, какое значение будет установлено в переменную перед началом анимации."},l7={en:"Stops the specified animator.",ru:"Останавливает указанный аниматор."},a7={en:"ID of the animator to be stopped.",ru:"Идентификатор аниматора, который нужно остановить."},c7={en:"Adds a value to the array",ru:"Добавляет значение в массив"},d7={en:"Deletes a value from the array",ru:"Удаляет значение из массива"},u7={en:"Sets the value in the array by index.",ru:"Устанавливает значение в массиве по индексу."},p7={en:"Callbacks that are called after [data loading](../../interaction#loading-data).",ru:"Колбэки, которые вызываются после [дозагрузки данных](../../interaction#loading-data)."},_7={en:"The parameter disables the action. Disabled actions stop listening to their associated event (clicks, changes in visibility, and so on).",ru:"Параметр отключает действие. Отключенное действие не реагирует на связанное с ним событие (клик, изменение видимости и т. д.)."},f7={en:"Logging ID.",ru:"Идентификатор для логирования."},m7={en:"Additional parameters, passed to the host application.",ru:"Дополнительные параметры, передаются приложению-хосту."},g7={en:"Referer URL for logging.",ru:"Referer-ссылка для логирования."},h7={en:"The ID of the element within which the specified action will be performed.",ru:"Идентификатор элемента, в области видимости которого будет выполняться данное действие."},v7={en:"URL. Possible values: `url` or `div-action://`. To learn more, see [Interaction with elements](../../interaction).",ru:"Ссылка. Возможные значения: `url` или `div-action://`. Подробнее в разделе [Взаимодействие с элементами](../../interaction)."},b7={en:"Removes focus from an element.",ru:"Снимает фокус с элемента."},y7={en:"Copies data to the clipboard.",ru:"Копирует данные в буфер обмена."},w7={en:"Sets the value in the dictionary by the specified key. Deletes the key if the value is not set.",ru:"Устанавливает значение в словаре по заданному ключу. Удаляет ключ, если значение на задано."},$7={en:"Loads additional data in `div-patch` format and updates the current element.",ru:"Выполняет дозагрузку данных в формате `div-patch` и обновляет текущий элемент."},k7={en:"Link for receiving changes.",ru:"Ссылка для получения изменений."},j7={en:"Requests focus for an element. May require a user action on the web.",ru:"Запрашивает фокус для элемента. В вебе может требовать действие пользователя."},S7={en:"Hides the tooltip.",ru:"Скрывает тултип."},T7={en:"URL for logging.",ru:"Ссылка для логирования."},C7={en:"One action when clicking on a menu item. Not used if the `actions` parameter is set.",ru:"Одно действие при нажатии на пункт меню. Не используется, если задан параметр `actions`."},z7={en:"Multiple actions when clicking on a menu item.",ru:"Несколько действий при нажатии на пункт меню."},E7={en:"Menu item title.",ru:"Заголовок пункта меню."},A7={en:"Context menu.",ru:"Контекстное меню."},O7={en:"Enables scrolling animation.",ru:"Включает анимацию пролистывания."},M7={en:"Scrolls the container by `item_count` or `offset` starting from the current position. If both values are specified, the action will be combined. For scrolling back, use negative values.",ru:"Пролистывает контейнер со скроллом от текущей позиции на `item_count` или `offset`. Если заданы оба значения, действие будет скомбинированным. Отрицательные значения пролистывают назад."},P7={en:"Number of container elements to scroll through. For scrolling back, use negative values.",ru:"Количество элементов контейнера, которые надо пролистать. Отрицательные значения пролистывают назад."},I7={en:"Scrolling distance measured in `dp` from the current position. For scrolling back, use negative values. Only applies in `gallery`.",ru:"Расстояние для скроллинга, измеряемое в `dp` от текущей позиции. Отрицательные значения пролистывают назад. Применим только в `gallery`."},D7={en:"Specifies the scrolling end position within the container.",ru:"Указывает конечную точку пролистывания в контейнере."},V7={en:"Specifies the end of the container as the scrolling end position.",ru:"Указывает конец контейнера как конечную точку пролистывания."},L7={en:"Specifies the element with the given index as the scrolling end position.",ru:"Указывает элемент с заданным индексом как конечную точку пролистывания."},F7={en:"Container element index.",ru:"Индекс элемента контейнера."},N7={en:"Specifies the position measured in `dp` from the container start as the scrolling end position. Only applies in `gallery`.",ru:"Указывает позицию, измеренную в `dp` от начала контейнера, как конечную точку пролистывания. Применим только в `gallery`."},q7={en:"Position measured in `dp`.",ru:"Позиция в `dp`."},R7={en:"Specifies the start of the container as the scrolling end position.",ru:"Указывает начало контейнера как конечную точку пролистывания."},B7={en:"ID of the element where the action should be performed.",ru:"Идентификатор элемента, в котором нужно выполнить операцию."},H7={en:"Defines navigation behavior at boundary elements:<li>`clamp`: Stop navigation at the boundary element (default)</li><li>`ring`: Navigate to the start or end, depending on the current element.</li>",ru:"Указывает, как будет происходить навигация при достижении граничных элементов:<li>`clamp` — переход остановится на граничном элементе (значение по умолчанию);</li><li>`ring` — произойдет переход в начало или конец в зависимости от текущего элемента.</li>"},J7={en:"Scrolls to a position or switches to the container element specified by the `destination` parameter.",ru:"Выполняет скролл к позиции или переключает элемент в контейнере на указанный параметром `destination`."},U7={en:"Defines the scrolling end position:<li>`index`: Scroll to the element with the index provided in `value`</li><li>`offset`: Scroll to the position specified in `value` and measured in `dp` from the start of the container. Applies only in `gallery`;</li><li>`start`: Scroll to the container start;</li><li>`end`: Scroll to the container end.</li>",ru:"Указывает конечную точку пролистывания:<li>`index` — пролистывание до элемента с индексом, указанным в `value`;</li><li>`offset` — пролистывание до позиции, измеренной в `dp` и указанной в `value`, от начала контейнера. Применим только в `gallery`;</li><li>`start` — пролистывание в начало контейнера;</li><li>`end` — пролистывание в конец контейнера.</li>"},W7={en:"Applies a new appearance to the content in `div-state'.",ru:"Устанавливает новый внешний вид контента в `div-state`."},K7={en:"The path of the state inside `state` that needs to be activated. Set in the format `div_data_state_id/id/state_id'. Can be hierarchical: `div_data_state_id/id_1/state_id_1/../id_n/state_id_n`. Consists of:<li>`div_data_state_id` — the numeric value of the `state_id` of the `state` object in `data`</li><li>'id` — the `id` value of the `state` object</li><li>`state_id` — the `state_id` value of the `state` object in `state`</li>",ru:"Путь состояния внутри `state`, которое нужно активировать. Задается в формате `div_data_state_id/id/state_id`. Mожет быть иерархическим: `div_data_state_id/id_1/state_id_1/../id_n/state_id_n`. Состоит из:<li>`div_data_state_id` — числовое значение `state_id` объекта `state` в `data`;</li><li>`id` — значение `id` объекта `state`;</li><li>`state_id` — значение `state_id` объекта `state` в `state`.</li>"},Y7={en:"Indicates a state change:<li>`true` — the change is temporary and will switch to the original one (default value) when the element is recreated</li><li>`false` — the change is permanent</li>",ru:"Указывает на изменение состояния:<li>`true` — изменение временное, и при пересоздании элемента состояние изменится на исходное (значение по умолчанию);</li><li>`false` — изменение постоянное.</li>"},G7={en:"Temporarily saves the variable in storage.",ru:"Временно cохраняет переменную в хранилище."},X7={en:"Duration of storage in seconds.",ru:"Время хранения в секундах."},Z7={en:"Name of the saved variable.",ru:"Имя сохраняемой переменной."},x7={en:"Saved value.",ru:"Сохраняемое значение."},Q7={en:"Assigns a value to the variable",ru:"Присваивает переменной значение"},e9={en:"Shows the tooltip.",ru:"Показывает тултип."},t9={en:"Sets whether the tooltip can be shown again after it’s closed.",ru:"Устанавливает, может ли тултип показываться еще раз после закрытия."},n9={en:"Sends variables from the container by link. Data sending configuration can be defined by the host app. By default, variables are sent as JSON in the request body using the POST method.",ru:"Отправляет переменные из контейнера по ссылке. Конфигурация отправки данных может определяться приложением-хостом. По умолчанию переменные передаются в теле запроса в виде JSON, метод запроса — POST."},i9={en:"ID of the container with the variables to be sent.",ru:"Идентификатор контейнера, в котором содержатся переменные для отправки."},o9={en:"Actions when sending data is unsuccessful.",ru:"Действия при неуспешной отправке данных."},r9={en:"Actions when sending data is successful.",ru:"Действия при успешной отправке данных."},s9={en:"HTTP request parameters for configuring the sending of data.",ru:"Параметры HTTP-запроса, которые используются для конфигурации отправки данных."},l9={en:"HTTP request headers. Please note that DivKit does not clean duplicate headers, which can lead to errors in request processing. Keep this in mind when assembling actions with complex JSON-builders.",ru:"Заголовки HTTP-запроса. Обратите внимание, что DivKit не очищает дублирующиеся заголовки, наличие которых может приводить к ошибкам в обработке запроса. Учитывайте это при сборке action'ов сложными JSON-builder'ами."},a9={en:"HTTP request method.",ru:"Метод HTTP-запроса."},c9={en:"Request parameters.",ru:"Параметры запроса."},d9={en:"Link for sending data from the container.",ru:"Ссылка, по которой отправляются данные из контейнера."},u9={en:"The tab in which the URL must be opened.",ru:"Вкладка, в которой должна открыться ссылка."},p9={en:"Controls the timer.",ru:"Управляет таймером."},_9={en:"Timer actions:<li>`start` — starts the timer from a stopped state</li><li>`stop`— stops the timer and performs the `onEnd` action</li><li>`pause` — pauses the timer, saves the current time</li><li>`resume` — restarts the timer after a pause</li><li>`cancel` — interrupts the timer, resets the time</li><li>`reset` — cancels the timer, then starts it again</li>",ru:"Действие с таймером:<li>`start`— запускает таймер из остановленного положения;</li><li>`stop`— останавливает таймер, выполняет действие `onEnd`;</li><li>`pause`— ставит таймер на паузу, время сохраняется;</li><li>`resume`— продолжает таймер после паузы;</li><li>`cancel`— прерывает действие таймера, время сбрасывается;</li><li>`reset`— отменяет таймер, затем запускает заново.</li>"},f9={en:"Timer ID.",ru:"Идентификатор таймера."},m9={en:"Tooltip ID.",ru:"Идентификатор тултипа."},g9={en:"Manages video playback.",ru:"Управляет воспроизведением видео."},h9={en:"Defines the action for the video: <li>`start` — starts playing the video if the video is ready to be played, or schedules playback</li><li>`pause' — stops the video playback</li>",ru:"Определяет действие с видео: <li>`start` — начинает воспроизведение видео, если видео готово к воспроизведению, или планирует воспроизведение;</li><li>`pause` — останавливает воспроизведение видео.</li>"},v9={en:"Video ID.",ru:"Идентификатор видео."},b9={en:"One action when clicking on an element. Not used if the `actions` parameter is set.",ru:"Одно действие при нажатии на элемент. Не используется, если задан параметр `actions`."},y9={en:"Click animation. The web only supports the following values: `fade`, `scale`, `native`, `no_animation` and `set`.",ru:"Анимация нажатия. В вебе поддерживаются только значения `fade`, `scale`, `native`, `no_animation` и `set`."},w9={en:"Multiple actions when clicking on an element.",ru:"Несколько действий при нажатии на элемент."},$9={en:"If the value is:<li>`true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).</li><li>`false` - when you click on an element, the focus will remain on the currently focused element.</li>",ru:"Если значение:<li>`true` — при активации экшена элемента фокус будет перенесён на него. Это означает, что фокус режима доступности будет перенесён, а виртуальная клавиатура скрыта, за исключением случаев, когда целевой элемент предполагает её наличие (например, `input`).</li><li>`false` — при нажатии на элемент фокус останется на текущем сфокусированном элементе.</li>"},k9={en:"Action when double-clicking on an element.",ru:"Действие при двойном нажатии на элемент."},j9={en:"Actions performed after hovering over an element. Available on platforms that support pointing devices (such as a mouse or stylus).",ru:"Действия, выполняемые после наведения на элемент. Доступны на платформах, поддерживающих указывающие устройства (мышь, стилус и т.д.)."},S9={en:"Actions performed when hovering over an element. Available on platforms that support pointing devices (such as a mouse or stylus).",ru:"Действия, выполняемые при наведении на элемент. Доступны на платформах, поддерживающих указывающие устройства (мышь, стилус и т.д.)."},T9={en:"Action when long-clicking an element. Doesn't work on devices that don't support touch gestures.",ru:"Действие при долгом нажатии на элемент. Не работает на устройствах без сенсорного экрана."},C9={en:"Actions performed after clicking/tapping an element.",ru:"Действия, выполняемые после нажатия на элемент."},z9={en:"Actions performed at the start of a click/tap on an element.",ru:"Действия, выполняемые в начале нажатия на элемент."},E9={en:"Element animation parameters.",ru:"Параметры анимации элементов."},A9={en:"Animation duration in milliseconds.",ru:"Длительность анимации в миллисекундах."},O9={en:"Final value of an animation.",ru:"Конечное значение анимации."},M9={en:"Animation speed nature. When the value is set to `spring` — animation of damping fluctuations cut to 0.7 with the `damping=1` parameter. Other options correspond to the Bezier curve:<li>`linear` — cubic-bezier(0, 0, 1, 1);</li><li>`ease` — cubic-bezier(0.25, 0.1, 0.25, 1);</li><li>`ease_in` — cubic-bezier(0.42, 0, 1, 1);</li><li>`ease_out` — cubic-bezier(0, 0, 0.58, 1);</li><li>`ease_in_out` — cubic-bezier(0.42, 0, 0.58, 1).</li>",ru:"Характер скорости анимации. При значении `spring` — обрезанная до 0.7 анимация затухающих колебаний с параметром `damping=1`. Остальные варианты соответствует кривой Безье:<li>`linear` — cubic-bezier(0, 0, 1, 1);</li><li>`ease` — cubic-bezier(0.25, 0.1, 0.25, 1);</li><li>`ease_in` — cubic-bezier(0.42, 0, 1, 1);</li><li>`ease_out` — cubic-bezier(0, 0, 0.58, 1);</li><li>`ease_in_out` — cubic-bezier(0.42, 0, 0.58, 1).</li>"},P9={en:"Animation speed nature.",ru:"Характер скорости анимации."},I9={en:"Animation elements.",ru:"Элементы анимации."},D9={en:"Animation type.",ru:"Тип анимации."},V9={en:"Number of animation repetitions.",ru:"Число повторов анимации."},L9={en:"Delay in milliseconds before animation starts.",ru:"Задержка в миллисекундах перед стартом анимации."},F9={en:"Starting value of an animation.",ru:"Стартовое значение анимации."},N9={en:"Actions performed when the animation is canceled. For example, when a command with the 'animator_stop' type is received.",ru:"Действия, которые будут выполнены в случае отмены анимации. Например, когда получена команда с типом `animator_stop`."},q9={en:"Animation direction. Determines whether the animation should be played forward, backward, or alternate between forward and backward.",ru:"Направление анимации. Определяет, должна ли анимация воспроизводиться вперед, назад или переменно вперед и назад."},R9={en:"Animation duration in milliseconds.",ru:"Продолжительность анимации в миллисекундах."},B9={en:"Actions when the animation is completed.",ru:"Действия, которые будут выполнены после завершения работы анимации."},H9={en:"Animator ID.",ru:"Идентификатор аниматора."},J9={en:"Animated value interpolation function.",ru:"Функция интерполяции анимируемого значения."},U9={en:"Number of times the animation will repeat before stopping. A value of `0` enables infinite looping.",ru:"Количество повторов анимации, которое будет выполнено до ее остановки. Значение `0` включает бесконечные повторы."},W9={en:"Delay before the animation is launched in milliseconds.",ru:"Задержка перед запуском анимации в миллисекундах."},K9={en:"Name of the variable being animated.",ru:"Имя анимируемой переменной."},Y9={en:"The value the variable will have when the animation ends.",ru:"Значение переменной, которое она примет в конце анимации."},G9={en:"The value the variable will have when the animation starts. If the property isn't specified, the current value of the variable will be used.",ru:"Значение переменной, которое она примет в начале анимации. Если свойство не указано, то будет использовано текущее значение переменной."},X9={en:"A set of animations to be applied simultaneously.",ru:"Набор анимаций, которые будут применяться одновременно."},Z9={en:"An array of animations.",ru:"Массив анимаций."},x9={en:"Animated appearance or disappearance of an element in the hierarchy.",ru:"Анимированное появление или исчезновение элемента в иерархии."},Q9={en:"Transition with fade animation.",ru:"Переход с анимацией полупрозрачности."},eS={en:"Transition with scale animation.",ru:"Переход с анимацией масштабирования."},tS={en:"A set of multiple transitions.",ru:"Набор из нескольких переходов."},nS={en:"Transition with slide animation.",ru:"Переход с анимацией перемещения."},iS={en:"Fixed aspect ratio. The element's height is calculated based on the width, ignoring the `height` value.",ru:"Фиксированное соотношение размеров элемента. Высота элемента вычисляется исходя из ширины, значение параметра `height` игнорируется."},oS={en:"`height = width / ratio`.",ru:"`height = width / ratio`."},rS={en:"Gradient.",ru:"Градиент."},sS={en:"Image.",ru:"Изображение."},lS={en:"Solid color.",ru:"Сплошной цвет."},aS={en:"Accessibility settings.",ru:"Настройки доступности."},cS={en:"Horizontal alignment of an element inside the parent element.",ru:"Горизонтальное выравнивание элемента внутри родительского."},dS={en:"Vertical alignment of an element inside the parent element.",ru:"Вертикальное выравнивание элемента внутри родительского."},uS={en:"Sets transparency of the entire element: `0` — completely transparent, `1` — opaque.",ru:"Устанавливает прозрачность всего элемента: `0` — полностью прозрачный, `1` — непрозрачный."},pS={en:"Declaration of animators that change variable values over time.",ru:"Объявление аниматоров, с помощью которых можно изменять значение переменных во времени."},_S={en:"Element background. It can contain multiple layers.",ru:"Фон элемента. Может содержать несколько слоев."},fS={en:"Element stroke.",ru:"Рамка элемента."},mS={en:"If the value is:<li>`true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).</li><li>`false` - when you click on an element, the focus will remain on the currently focused element.</li>",ru:"Если значение:<li>`true` — при активации экшена элемента фокус будет перенесён на него. Это означает, что фокус режима доступности будет перенесён, а виртуальная клавиатура скрыта, за исключением случаев, когда целевой элемент предполагает её наличие (например, `input`).</li><li>`false` — при нажатии на элемент фокус останется на текущем сфокусированном элементе.</li>"},gS={en:"Merges cells in a column of the [grid](div-grid.md) element.",ru:"Объединяет ячейки в столбце элемента [grid](div-grid.md)."},hS={en:"Actions when an element disappears from the screen.",ru:"Действия при исчезновении элемента с экрана."},vS={en:"Extensions for additional processing of an element. The list of extensions is given in [DivExtension](../../extensions).",ru:"Расширения для дополнительной обработки элемента. Список расширений см. в разделе [Кастомизация](../../extensions)."},bS={en:"Parameters when focusing on an element or losing focus.",ru:"Параметры при фокусировке на элементе или потере фокуса."},yS={en:"User functions.",ru:"Пользовательские функции."},wS={en:"Element height. For Android: if there is text in this or in a child element, specify height in `sp` to scale the element together with the text. To learn more about units of size measurement, see [Layout inside the card](../../layout).",ru:"Высота элемента. Для Android: если в этом или в дочернем элементе есть текст, укажите высоту в `sp`, чтобы элемент масштабировался вместе с текстом. Подробнее о единицах измерения размера в разделе [Верстка внутри карточки](../../layout)."},$S={en:"Element ID. It must be unique within the root element. It is used as `accessibilityIdentifier` on iOS.",ru:"Идентификатор элемента. На iOS используется в качестве `accessibilityIdentifier`."},kS={en:"External margins from the element stroke.",ru:"Внешние отступы от рамки элемента."},jS={en:"Internal margins from the element stroke.",ru:"Внутренние отступы от рамки элемента."},SS={en:"Merges cells in a string of the [grid](div-grid.md) element.",ru:"Объединяет ячейки в строке элемента [grid](div-grid.md)."},TS={en:"List of [actions](div-action.md) to be executed when selecting an element in [pager](div-pager.md).",ru:"Список [действий](div-action.md), которые будут выполнены при выборе элемента в [пейджере](div-pager.md)."},CS={en:"Tooltips linked to an element. A tooltip can be shown by `div-action://show_tooltip?id=`, hidden by `div-action://hide_tooltip?id=` where `id` — tooltip id.",ru:"Привязанные к элементу всплывающие подсказки. Подсказка может быть показана по `div-action://show_tooltip?id=`, скрыта по `div-action://hide_tooltip?id=`, где `id` — id подсказки."},zS={en:"Applies the passed transformation to the element. Content that doesn't fit into the original view area is cut off.",ru:"Применяет к элементу переданное преобразование. Тот контент, который не поместится в исходную область просмотра, будет обрезан."},ES={en:"Change animation. It is played when the position or size of an element changes in the new layout.",ru:"Анимация изменения. Воспроизводится при изменении положения или размера элемента в новой верстке."},AS={en:"Appearance animation. It is played when an element with a new ID appears. To learn more about the concept of transitions, see [Animated transitions](../../interaction#animation/transition-animation).",ru:"Анимация появления. Воспроизводится при появлении элемента с новым id. Подробнее о концепции переходов в разделе [Анимация перехода](../../interaction#animation/transition-animation)."},OS={en:"Disappearance animation. It is played when an element disappears in the new layout.",ru:"Анимация исчезания. Воспроизводится при исчезании элемента в новой верстке."},MS={en:"Animation starting triggers. Default value: `[state_change, visibility_change]`.",ru:"Триггеры запуска анимации. Значение по умолчанию: `[state_change, visibility_change]`."},PS={en:"Triggers for changing variables within an element.",ru:"Триггеры изменения переменных внутри элемента."},IS={en:"Declaration of variables that can be used within an element. Variables declared in this array can only be used within the element and its child elements.",ru:"Объявление переменных, которые могут использоваться внутри элемента. Переменные, объявленные в данном массиве, могут использоваться только внутри самого элемента и его дочерних элементов."},DS={en:"Element visibility.",ru:"Видимость элемента."},VS={en:"Tracking visibility of a single element. Not used if the `visibility_actions` parameter is set.",ru:"Трекинг видимости одного элемента. Не используется, если задан параметр `visibility_actions`."},LS={en:"Actions when an element appears on the screen.",ru:"Действия при появлении элемента на экране."},FS={en:"Element width.",ru:"Ширина элемента."},NS={en:"Blend mode.",ru:"Метод наложения."},qS={en:"Gaussian image blur.",ru:"Размытие изображения по Гауссу."},RS={en:"Blur radius. Defines how many pixels blend into each other. Specified in: `dp`.",ru:"Радиус размытия. Определяет количество пикселей, которые будут смешиваться друг с другом. Единица измерения: `dp`."},BS={en:"Stroke around the element.",ru:"Рамка вокруг элемента."},HS={en:"One radius of element and stroke corner rounding. Has a lower priority than `corners_radius`.",ru:"Один радиус скругления углов элемента и рамки. Имеет более низкий приоритет, чем `corners_radius`."},JS={en:"Multiple radii of element and stroke corner rounding.",ru:"Несколько радиусов скругления углов элемента и рамки."},US={en:"Adding shadow.",ru:"Добавление тени."},WS={en:"Parameters of the shadow applied to the element stroke.",ru:"Параметры тени, применяемой к рамке элемента."},KS={en:"Stroke style.",ru:"Стиль рамки."},YS={en:"Element position and size change animation.",ru:"Анимация изменения положения и размеров элемента."},GS={en:"Animations.",ru:"Анимации."},XS={en:"List of animations.",ru:"Список анимаций."},ZS={en:"Animated change of an element state.",ru:"Анимированное изменение состояния элемента."},xS={en:"Element position and size change animation.",ru:"Анимация изменения положения и размеров элемента."},QS={en:"A set of animations.",ru:"Набор анимаций."},eT={en:"Circle.",ru:"Круг."},tT={en:"Radius.",ru:"Радиус."},nT={en:"Enables the bounding of child elements by the parent's borders.",ru:"Включает ограничение дочерних элементов границами родителя."},iT={en:"Cloud-style text background. Rows have a rectangular background in the specified color with rounded corners.",ru:"Фон текста в стиле «облако». Строки получают прямоугольный фон с указанным цветом, а все углы скругляются."},oT={en:"Fill color.",ru:"Цвет заливки."},rT={en:"Corner rounding radius.",ru:"Радиус скругления углов."},sT={en:"Margins between the row border and background border.",ru:"Отступы от границы строки до границы фона."},lT={en:"Sets collection elements dynamically using `data` and `prototypes`.",ru:"Задает элементы коллекции динамически при помощи `data` и `prototypes`."},aT={en:"Data that will be used to create collection elements.",ru:"Данные, которые будут использоваться для создания элементов коллекции."},cT={en:"Array of `div` elements from which the collection elements will be created.",ru:"Массив `div`, из которых будут созданы элементы коллекции."},dT={en:"Name for accessing the next `data` element in the prototype. Working with this element is the same as with dictionaries.",ru:"Имя для обращения к очередному элементу `data` в прототипе. Работа с этим элементом ведется так же, как со словарями."},uT={en:"Prefix for accessing the next `data` element in the prototype.",ru:"Префикс для обращения к очередному элементу `data` в прототипе."},pT={en:"`Div` from which the collection elements will be created. In `Div`, you can use expressions using data from `data`. To access the next `data` element, you need to use the same prefix as in `data_element_prefix`.",ru:"`Div`, из которого будут созданы элементы коллекции. В `Div` можно использовать выражения с использованием данных из `data`. Для обращения к очередному элементу `data` нужно использовать такой же префикс, как и в `data_element_prefix`."},_T={en:"`id` of the element to be created from the prototype. Unlike the `div-base.id` field, may contain expressions. Has a higher priority than `div-base.id`.",ru:"`id` элемента, который будет сформирован из прототипа. В отличие от поля `div-base.id` может содержать выражения. Имеет более высокий приоритет, чем `div-base.id`."},fT={en:"A condition that is used to select the prototype for the next element in the collection. If there is more than 1 true condition, the earlier prototype is selected. If none of the conditions are met, the element from `data` is skipped.",ru:"Условие, которое используется для выбора прототипа для очередного элемента коллекции. В случае, если будет больше 1 истинного условия, будет выбран прототип, который находится раньше. Если не выполнено ни одно условие, элемент из `data` будет пропущен."},mT={en:"Color animator.",ru:"Аниматор цвета."},gT={en:"Container. It contains other elements and is responsible for their location. It is used to arrange elements vertically, horizontally, and with an overlay in a certain order, simulating the third dimension.",ru:"Контейнер. Содержит в себе другие элементы и отвечает за их расположение. Позволяет располагать элементы по вертикали, горизонтали и с наложением в определенном порядке, имитируя третье измерение."},hT={en:"Fixed aspect ratio of the container. The element's height is calculated based on the width, ignoring the `height` parameter's value. \nOn the web, support for the `aspect-ratio` CSS property is required to use this parameter.",ru:"Фиксированное соотношение размеров контейнера. Высота элемента вычисляется исходя из ширины, значение параметра `height` игнорируется. \nВ вебе для использования этого параметра требуется поддержка свойства CSS `aspect-ratio`."},vT={en:"Horizontal element alignment. For child elements, it can be redefined using the `alignment_horizontal` property.",ru:"Горизонтальное выравнивание элементов. Для дочерних элементов может быть переопределено через свойство `alignment_horizontal`."},bT={en:"Vertical element alignment. The `baseline` value aligns elements along their own specified baseline (for text and other elements that have a baseline). Elements that don't have their baseline value specified are aligned along the top edge. For child elements, it can be redefined using the `alignment_vertical` property.",ru:"Вертикальное выравнивание элементов. Значение `baseline` означает выравнивание элементов по базовой линии (для текста и других элементов, у которых есть базовая линия). Остальные элементы в этом случае будут выровнены по верхнему краю. Для дочерних элементов может быть переопределено через свойство `alignment_vertical`."},yT={en:"Nested elements.",ru:"Вложенные элементы."},wT={en:"Element placement method. The `wrap` value transfers elements to the next line if they don't fit in the previous one. If the `wrap` value is set:<li>A separate line is allocated for each element along the main axis with the size value set to `match_parent`.</li><li>Elements along the cross axis with the size value `match_parent` are ignored.</li>",ru:"Способ размещения элементов. Значение `wrap` означает перенос элементов на следующую строку, если они не поместились на предыдущей. Если установлено значения `wrap`:<li>для каждого элемента со значением размера `match_parent` вдоль главной оси будет выделена отдельная строка;</li><li>элементы со значением `match_parent` вдоль побочной оси будут проигнорированы.</li>"},$T={en:"Separator between elements along the cross axis. Not used if the `layout_mode` parameter is set to `no_wrap`. Only new browsers are supported on the web (the `gap` property must be supported for flex blocks).",ru:"Разделитель между элементами вдоль поперечной оси. Не используется, если параметр `layout_mode` имеет значение `no_wrap`. В вебе поддерживаются только новые браузеры (требуется поддержка свойства `gap` для flex-блоков)."},kT={en:"Location of elements. `overlap` value overlays elements on top of each other in the order of enumeration. The lowest is the zero element of an array.",ru:"Расположение элементов. Значение `overlap` накладывает элементы друг на друга в порядке перечисления. Ниже всего — нулевой элемент массива."},jT={en:"Separator between elements along the main axis. Not used if the `orientation` parameter is set to `overlap`. Only new browsers are supported on the web (the `gap` property must be supported for flex blocks).",ru:"Разделитель между элементами вдоль основной оси. Не используется, если параметр `orientation` имеет значение `overlap`. В вебе поддерживаются только новые браузеры (требуется поддержка свойства `gap` для flex-блоков)."},ST={en:"Enables displaying the separator after the last item.",ru:"Включает отображение разделителя после последнего элемента."},TT={en:"Enables displaying the separator before the first item.",ru:"Включает отображение разделителя перед первым элементом."},CT={en:"Enables displaying the separator between items.",ru:"Включает отображение разделителя между элементами."},zT={en:"Separator style.",ru:"Стиль разделителя."},ET={en:"Container.",ru:"Контейнер."},AT={en:"Sets corner rounding.",ru:"Устанавливает скругление углов."},OT={en:"Rounding radius of a lower left corner. If not specified, then `corner_radius` is used.",ru:"Радиус скругления нижнего левого угла. Если не указано, то используется `corner_radius`."},MT={en:"Rounding radius of a lower right corner. If not specified, then `corner_radius` is used.",ru:"Радиус скругления нижнего правого угла. Если не указано, то используется `corner_radius`."},PT={en:"Rounding radius of an upper left corner. If not specified, then `corner_radius` is used.",ru:"Радиус скругления верхнего левого угла. Если не указано, то используется `corner_radius`."},IT={en:"Rounding radius of an upper right corner. If not specified, then `corner_radius` is used.",ru:"Радиус скругления верхнего правого угла. Если не указано, то используется `corner_radius`."},DT={en:"Fixed number of repetitions.",ru:"Фиксированное число повторов."},VT={en:"Infinite number of repetitions.",ru:"Бесконечное число повторов."},LT={en:"Custom element. It is delegated to a host application to create native elements depending on the platform.",ru:"Кастомный элемент. Делегируется хост-приложению для создания нативных элементов в зависимости от платформы."},FT={en:"Element data for a host application.",ru:"Данные элемента для хост-приложения."},NT={en:"Subtype of an element for a host application.",ru:"Подтип элемента для хост-приложения."},qT={en:"Nested elements.",ru:"Вложенные элементы."},RT={en:"Host-specific element.",ru:"Хост-специфичный элемент."},BT={en:"Root structure.",ru:"Корневая структура."},HT={en:"Contents.",ru:"Содержимое."},JT={en:"State ID.",ru:"Идентификатор состояния."},UT={en:"User functions.",ru:"Пользовательские функции."},WT={en:"Logging ID.",ru:"Идентификатор для логирования."},KT={en:"A set of visual element states. Each element can have a few states with a different layout. The states are displayed strictly one by one and switched using [action](div-action.md).",ru:"Набор состояний визуальных элементов. Каждый элемент может иметь несколько состояний с разной версткой. Состояния отображаются строго по одному, а переключаются с помощью [action](div-action.md)."},YT={en:"List of timers.",ru:"Список таймеров."},GT={en:"Events that trigger transition animations.",ru:"События, при которых сработают анимации переходов. Вместо него используйте `transition_triggers`."},XT={en:"Triggers for changing variables.",ru:"Триггеры изменения переменных."},ZT={en:"Declaration of variables that can be used in an element.",ru:"Объявление переменных, которые могут быть использованы в элементе."},xT={en:"Element dimension value.",ru:"Значение измерения элемента."},QT={en:"Value.",ru:"Значение."},eC={en:"Actions performed when an element is no longer visible.",ru:"Действия, которые выполняются, когда элемент пропадает из зоны видимости."},tC={en:"Time in milliseconds during which an element must be outside the visible area to trigger `disappear-action`.",ru:"Время в миллисекундах, в течение которого элемент должен находиться вне зоны видимости, чтобы сработало действие `disappear-action`."},nC={en:"Percentage of the visible part of an element that triggers `disappear-action`.",ru:"Размер видимой части элемента в процентах, при котором срабатывает действие `disappear-action`."},iC={en:"Callbacks that are called after [data loading](../../interaction#loading-data).",ru:"Колбэки, которые вызываются после [дозагрузки данных](../../interaction#loading-data)."},oC={en:"Actions in case of unsuccessful loading if the host reported it or the waiting time expired.",ru:"Действия при неуспешной загрузке, если о ней сообщил хост или закончилось время ожидания."},rC={en:"Actions in case of successful loading.",ru:"Действия при успешной загрузке."},sC={en:"It sets margins.",ru:"Устанавливает отступы."},lC={en:"Bottom margin.",ru:"Нижний отступ."},aC={en:"End margin. Margin position depends on the interface orientation. Has higher priority than the left and right margins.",ru:"Отступ от конца элемента. Положение отступа зависит от направления интерфейса. Имеет больший приоритет, чем левый или правый отступ."},cC={en:"Left margin.",ru:"Левый отступ."},dC={en:"Right margin.",ru:"Правый отступ."},uC={en:"Start margin. Margin position depends on the interface orientation. Has higher priority than the left and right margins.",ru:"Отступ от начала элемента. Положение отступа зависит от направления интерфейса. Имеет больший приоритет, чем левый или правый отступ."},pC={en:"Top margin.",ru:"Верхний отступ."},_C={en:"Type used for function arguments and return values.",ru:"Тип, используемый в аргументах и возвращаемых значениях функций."},fC={en:"Extension that affects an element.",ru:"Расширение, которое влияет на элемент."},mC={en:"Extension ID.",ru:"Идентификатор расширения."},gC={en:"Additional extension parameters.",ru:"Дополнительные параметры расширения."},hC={en:"Transparency animation.",ru:"Анимация прозрачности."},vC={en:"Value of the alpha channel which the element starts appearing from or at which it finishes disappearing.",ru:"Значение альфа-канала, с которого начнется появление или на котором закончится исчезновение элемента."},bC={en:"Image filters.",ru:"Фильтры для изображений."},yC={en:"Mirrors an image if the system uses RTL (Right-to-Left) text direction.",ru:"Зеркальное изображение, если в системе указано направление текста RTL (справа налево)."},wC={en:"Fixed number of repetitions.",ru:"Фиксированное число повторов."},$C={en:"Number of repetitions.",ru:"Число повторов."},kC={en:"Fixed size of an element.",ru:"Фиксированный размер элемента."},jC={en:"Unit of measurement. To learn more about units of size measurement, see [Layout inside the card](../../layout).",ru:"Единица измерения. Подробнее о единицах измерения размера в разделе [Верстка внутри карточки](../../layout)."},SC={en:"Element size.",ru:"Размер элемента."},TC={en:"Element behavior when focusing or losing focus.",ru:"Поведение элемента при фокусировке или потере фокуса."},CC={en:"Background of an element when it is in focus. It can contain multiple layers.",ru:"Фон элемента, когда он в фокусе. Может содержать несколько слоев."},zC={en:"Border of an element when it's in focus.",ru:"Рамка элемента, когда он в фокусе."},EC={en:"IDs of elements that will be next to get focus.",ru:"Идентификаторы элементов, которые следующими получат фокус."},AC={en:"Actions when an element loses focus.",ru:"Действия, когда элемент теряет фокус."},OC={en:"Actions when an element gets focus.",ru:"Действия, когда элемент получает фокус."},MC={en:"Font family:<li>`text` — a standard text font;</li><li>`display` — a family of fonts with a large font size.</li>",ru:"Семейство шрифта:<li>`text` — стандартный текстовый шрифт;</li><li>`display` — семейство для шрифтов с крупным кеглем.</li>"},PC={en:'List of OpenType font features. The format matches the CSS attribute "font-feature-settings". Learn more: https://www.w3.org/TR/css-fonts-3/#font-feature-settings-prop',ru:"Список свойств шрифтов OpenType. Формат соответствует атрибуту CSS font-feature-settings. Подробнее: https://www.w3.org/TR/css-fonts-3/#font-feature-settings-prop"},IC={en:"Font size.",ru:"Размер шрифта."},DC={en:"Unit of measurement:<li>`px` — a physical pixel.</li><li>`dp` — a logical pixel that doesn't depend on screen density.</li><li>`sp` — a logical pixel that depends on the font size on a device. Specify height in `sp`. Only available on Android.</li>",ru:"Единица измерения:<li>`px` — физический пиксель.</li><li>`dp` — логический пиксель, который не зависит от плотности экрана.</li><li>`sp` — логический пиксель, который зависит от размера шрифта на устройстве. Указывайте в `sp` высоту. Доступен только на Android.</li>"},VC={en:"Style.",ru:"Начертание."},LC={en:"Style. Numeric value.",ru:"Начертание. Числовое значение."},FC={en:"User-defined function.",ru:"Функция, определяемая пользователем."},NC={en:"Function argument.",ru:"Аргумент функции."},qC={en:"Function argument name.",ru:"Название аргумента функции."},RC={en:"Function argument type.",ru:"Тип аргумента функции."},BC={en:"Function body. Evaluated as an expression using the passed arguments. Doesn't capture external variables.",ru:"Тело функции. Вычисляется как выражение с подставлением передаваемых аргументов. Не захватывает внешние переменные."},HC={en:"Function name.",ru:"Название функции."},JC={en:"Return value type.",ru:"Тип возвращаемого значения."},UC={en:"Gallery. It contains a horizontal or vertical set of cards that can be scrolled.",ru:"Галерея. Содержит горизонтальный или вертикальный набор карточек, которые можно скроллить."},WC={en:"Number of columns for block layout.",ru:"Количество колонок для плиточной верстки."},KC={en:"Aligning elements in the direction perpendicular to the scroll direction. In horizontal galleries:<li>`start` — alignment to the top of the card;</li><li>`center` — to the center;</li><li>`end` — to the bottom.</li></p><p>In vertical galleries:<li>`start` — alignment to the left of the card;</li><li>`center` — to the center;</li><li>`end` — to the right.</li>",ru:"Выравнивание элементов в направлении, перпендикулярном направлению скролла. В горизонтальных галереях:<li>`start` — выравнивание по верхнему краю карточки;</li><li>`center` — по центру;</li><li>`end` — по нижнему краю.</li></p><p>В вертикальных галереях:<li>`start` — выравнивание по левому краю карточки;</li><li>`center` — по центру;</li><li>`end` — по правому краю.</li>"},YC={en:"Spacing between elements across the scroll axis. By default, the value set to `item_spacing`.",ru:"Расстояние между элементами поперек оси прокрутки. По умолчанию равно значению `item_spacing`."},GC={en:"Ordinal number of the gallery element to be scrolled to by default. For `scroll_mode`:<li>`default` — the scroll position is set to the beginning of the element, without taking into account `item_spacing`;</li><li>`paging` — the scroll position is set to the center of the element.</li>",ru:"Порядковый номер элемента галереи, к которому будет выполнен скролл по умолчанию. Для `scroll_mode`:<li>`default` — положение скролла устанавливается в начало элемента, без учета `item_spacing`;</li><li>`paging` — положение скролла устанавливается в центр элемента.</li>"},XC={en:"Spacing between elements.",ru:"Расстояние между элементами."},ZC={en:"Gallery elements. Scrolling to elements can be implemented using:<li>`div-action://set_current_item?id=&item=` — scrolling to the element with an ordinal number `item` inside an element, with the specified `id`;</li><li>`div-action://set_next_item?id=[&overflow={clamp\\|ring}]` — scrolling to the next element inside an element, with the specified `id`;</li><li>`div-action://set_previous_item?id=[&overflow={clamp\\|ring}]` — scrolling to the previous element inside an element, with the specified `id`.</li></p><p>The optional `overflow` parameter is used to set navigation when the first or last element is reached:<li>`clamp` — transition will stop at the border element;</li><li>`ring` — go to the beginning or end, depending on the current element.</li></p><p>By default, `clamp`.",ru:"Элементы галереи. Скролл к элементам можно осуществить с помощью:<li>`div-action://set_current_item?id=&item=` — скролл к элементу с порядковым номером `item` внутри элемента, с заданным `id`;</li><li>`div-action://set_next_item?id=[&overflow={clamp\\|ring}]` — скролл к следующему элементу внутри элемента, с заданным `id`;</li><li>`div-action://set_previous_item?id=[&overflow={clamp\\|ring}]` — скролл к предыдущему элементу внутри элемента, с заданным `id`.</li></p><p>Опциональный параметр `overflow` позволяет задать навигацию при достижении первого или последнего элемента:<li>`clamp` — переход остановится на пограничном элементе;</li><li>`ring` — переход в начало или конец, в зависимости от текущего элемента.</li></p><p>По умолчанию, `clamp`."},xC={en:"Gallery orientation.",ru:"Ориентация галереи."},QC={en:"If the parameter is enabled, the gallery won't transmit the scroll gesture to the parent element.",ru:"При включенном параметре галерея не будет передавать жест скролла родительскому элементу."},ez={en:"Scroll type: `default` — continuous, `paging` — page-by-page.",ru:"Тип скролла: `default` — непрерывный, `paging` — постраничный."},tz={en:"Gallery.",ru:"Галерея."},nz={en:"Animated GIF image.",ru:"Анимированное gif-изображение."},iz={en:"Direct URL to a GIF image.",ru:"Прямая ссылка на gif-изображение."},oz={en:"Gif image.",ru:"Gif-изображение."},rz={en:"Gradient background.",ru:"Градиентный фон."},sz={en:"Angle of gradient direction.",ru:"Угол направления градиента."},lz={en:"Colors. Gradient points will be located at an equal distance from each other.",ru:"Цвета. Точки градиента будут расположены на равном расстоянии друг от друга."},az={en:"Colors. Gradient points are located at an equal distance from each other.",ru:"Цвета. Точки градиента будут расположены на равном расстоянии друг от друга."},cz={en:"Linear gradient.",ru:"Линейный градиент."},dz={en:"Angle of gradient direction.",ru:"Угол направления градиента."},uz={en:"Colors and positions of gradient points. When using this parameter, the `colors` parameter is ignored.",ru:"Цвета и расположение точек градиента. При использовании данного параметра игнорируется параметр `colors`."},pz={en:"Describes color at particular gradient position.",ru:"Определяет цвет градиента на заданной позиции."},_z={en:"Gradient color corresponding to gradient point.",ru:"Цвет градиента, соответствующий точке градиента."},fz={en:"The position of the gradient point.",ru:"Расположение точки градиента."},mz={en:"Radial gradient.",ru:"Радиальный градиент."},gz={en:"Shift of the central point of the gradient relative to the left edge along the X axis.",ru:"Сдвиг центральной точки градиента относительно левого края по оси X."},hz={en:"Shift of the central point of the gradient relative to the top edge along the Y axis.",ru:"Сдвиг центральной точки градиента относительно верхнего края по оси Y."},vz={en:"Radius of the gradient transition.",ru:"Радиус градиентного перехода."},bz={en:"A grid with an option to merge cells vertically and horizontally.",ru:"Сетка с возможностью объединения ячеек по вертикали и горизонтали."},yz={en:"Number of columns.",ru:"Количество столбцов."},wz={en:"Horizontal alignment of grid contents.",ru:"Выравнивание содержимого сетки по горизонтали."},$z={en:"Vertical alignment of grid contents.",ru:"Выравнивание содержимого сетки по вертикали."},kz={en:"Contents.",ru:"Содержимое."},jz={en:"Grid.",ru:"Сетка."},Sz={en:"Image.",ru:"Изображение."},Tz={en:"Transparency animation when loading an image.",ru:"Анимация прозрачности при загрузке изображения."},Cz={en:"Background image.",ru:"Фоновое изображение."},zz={en:"Image transparency.",ru:"Прозрачность изображения."},Ez={en:"Horizontal image alignment.",ru:"Горизонтальное выравнивание изображения."},Az={en:"Vertical image alignment.",ru:"Вертикальное выравнивание изображения."},Oz={en:"Image URL.",ru:"Ссылка на изображение."},Mz={en:"Background image must be loaded before the display.",ru:"До показа необходимо предварительно загрузить фоновое изображение."},Pz={en:"Image scaling.",ru:"Масштабирование изображения."},Iz={en:"Horizontal image alignment.",ru:"Горизонтальное выравнивание изображения."},Dz={en:"Vertical image alignment.",ru:"Вертикальное выравнивание изображения."},Vz={en:"Placeholder background before the image is loaded.",ru:"Фон-заглушка до загрузки изображения."},Lz={en:"Background image must be loaded before the display.",ru:"До показа необходимо предварительно загрузить фоновое изображение."},Fz={en:"Image preview encoded in `base64`. It will be shown instead of `placeholder_color` before the image is loaded. Format `data url`: `data:[;base64],<data>`",ru:"Превью изображения, закодированное в `base64`. Будет показано до загрузки картинки вместо `placeholder_color`. Формат `data url`: `data:[;base64],<data>`"},Nz={en:"Image scaling:<li>`fit` places the entire image into the element (free space is filled with background);</li><li>`fill` scales the image to the element size and cuts off the excess.</li>",ru:"Масштабирование изображения:<li>`fit` помещает картинку в элемент целиком (свободное место заполняется фоном);</li><li>`fill` масштабирует картинку по размеру элемента и обрезает лишнее.</li>"},qz={en:"It sets the priority of displaying the preview — the preview is decoded in the main stream and displayed as the first frame. Use the parameter carefully — it will worsen the preview display time and can worsen the application launch time.",ru:"Устанавливает приоритет показа превью — превью декодируется в главном потоке и показывается первым кадром. Используйте параметр с осторожностью — он ухудшит время показа превью и может ухудшить время запуска приложения."},Rz={en:"Direct URL to an image.",ru:"Прямая ссылка на изображение."},Bz={en:"Image.",ru:"Изображение."},Hz={en:"New color of a contour image.",ru:"Новый цвет контурного изображения."},Jz={en:"Blend mode of the color specified in `tint_color`.",ru:"Метод наложения цвета, указанного в `tint_color`."},Uz={en:"Progress indicator for [pager](div-pager.md).",ru:"Индикатор прогресса для [пейджера](div-pager.md)."},Wz={en:"Active indicator color.",ru:"Цвет активного индикатора."},Kz={en:"A size multiplier for an active indicator.",ru:"Множитель размера для активного индикатора."},Yz={en:"Active indicator shape.",ru:"Форма активного индикатора."},Gz={en:"Animation of switching between indicators.",ru:"Анимация переключения между индикаторами."},Xz={en:"Indicator color.",ru:"Цвет индикатора."},Zz={en:"Inactive indicator shape, minimum size. Used when all the indicators don't fit on the screen.",ru:"Форма неактивного индикатора минимального размера. Используется, когда нужное количество индикаторов не помещается на экране."},xz={en:"Indicator shape.",ru:"Форма индикатора."},Qz={en:"Indicator items placement mode:<li>Default: Indicators' width is fixed and defined by the `shape` parameters.</li><li>Stretch: Indicators are expanded to fill the entire width.</li>",ru:"Режим расположения элементов индикатора:<li>по умолчанию — с фиксированной шириной элементов, которая определяется параметрами `shape`;</li><li>растяжение — индикаторы займут всю предоставленную ширину.</li>"},eE={en:"Fixed width indicator items placement mode.",ru:"Режим расположения элементов индикатора с фиксированной шириной элементов."},tE={en:"Stretch indicator items placement mode: indicators are expanded to fill the entire width.",ru:"Режим растяжения элементов индикатора, при котором индикаторы займут всю предоставленную ширину."},nE={en:"Maximum number of visible indicators.",ru:"Максимальное количество индикаторов, которые будут отображены."},iE={en:"A size multiplier for a minimal indicator. It is used when the required number of indicators don't fit on the screen.",ru:"Множитель размера для минимального индикатора. Используется, когда на экране не помещается нужное количество индикаторов."},oE={en:"ID of the pager that is a data source for an indicator.",ru:"Идентификатор пейджера-источника данных для индикатора."},rE={en:"Indicator shape.",ru:"Форма индикатора."},sE={en:"Progress indicator for pager.",ru:"Индикатор прогресса для пейджера."},lE={en:"Spacing between indicator centers.",ru:"Расстояние между центрами индикаторов."},aE={en:"Spacing between indicator borders.",ru:"Расстояние между границами индикаторов."},cE={en:"Infinite number of repetitions.",ru:"Бесконечное число повторов."},dE={en:"Text input element.",ru:"Элемент для ввода текста."},uE={en:"Text auto-capitalization type.",ru:"Тип автоматической капитализации текста."},pE={en:"Actions when pressing the 'Enter' key. Actions (if any) override the default behavior.",ru:"Действия при нажатии кнопки клавиатуры `Enter`. При наличии действий поведение по умолчанию будет переопределено."},_E={en:"'Enter' key type.",ru:"Тип кнопки клавиатуры `Enter`."},fE={en:"Filter that prevents users from entering text that doesn't satisfy the specified conditions.",ru:"Фильтр, который не допускает ввод текста, не соответствующего заданным условиям."},mE={en:"Filter based on [calculated expressions](../../expressions).",ru:"Фильтр на основе [вычисляемых выражений](../../expressions)."},gE={en:"[Calculated expression](../../expressions) used to verify the validity of the value.",ru:"[Вычисляемое выражение](../../expressions), которое используется для проверки валидности значения."},hE={en:"Filter based on regular expressions.",ru:"Фильтр на основе регулярных выражений."},vE={en:"Regular expression (pattern) that the entered value must match.",ru:"Регулярное выражение (паттерн), которому должно соответствовать вводимое значение."},bE={en:"Text highlight color. If the value isn't set, the color set in the client will be used instead.",ru:"Цвет выделения текста. Если значение не задано, будет использован цвет, установленный на клиенте."},yE={en:"Text color.",ru:"Цвет текста."},wE={en:"Tooltip text.",ru:"Текст подсказки."},$E={en:"Enables or disables text editing.",ru:"Включает или отключает возможность редактирования текста."},kE={en:"Keyboard type.",ru:"Тип клавиатуры."},jE={en:"Spacing between characters.",ru:"Интервал между символами."},SE={en:"Line spacing of the text. Units specified in `font_size_unit`.",ru:"Межстрочный интервал (интерлиньяж) текста. Измеряется в единицах, заданных в `font_size_unit`."},TE={en:"Mask for entering text based on the specified template.",ru:"Маска для ввода текста по заданному шаблону."},CE={en:"Mask for entering currency in the specified regional format.",ru:"Маска для ввода валютных значений в заданном региональном формате."},zE={en:"Language tag that the currency format should match, as per [IETF BCP 47](https://en.wikipedia.org/wiki/IETF_language_tag). If the language is not set, it is defined automatically.",ru:"Тег языка, которому должен соответствовать формат валюты, по [стандарту IETF BCP 47](https://en.wikipedia.org/wiki/IETF_language_tag). Если язык не задан, он будет определен автоматически."},EE={en:"Mask for entering text with a fixed number of characters.",ru:"Маска для ввода текста с фиксированным количеством символов."},AE={en:"If this option is enabled, the text field contains the mask before being filled in.",ru:"Если опция включена, маска отображается в текстовом поле до его заполнения."},OE={en:"String that sets the text input template. For example, the `+7 (###) ###-##-## ` template for a phone number.",ru:"Строка, которая задает шаблон для ввода текста. Например, для телефонного номера можно использовать шаблон `+7 (###) ###-##-## `."},ME={en:"Template decoding is a description of the characters that will be replaced with user input.",ru:"Расшифровка шаблона — описание символов, вместо которых должен быть подставлен пользовательский ввод."},PE={en:"A character in the template that will be replaced with a user-defined character.",ru:"Символ в шаблоне, вместо которого должен быть подставлен символ, введенный пользователем."},IE={en:"The character that's displayed in the input field where the user is expected to enter text. This is used if mask display is enabled.",ru:"Символ, который отображается в поле ввода на месте, в котором ожидается ввод пользовательского текста. Используется, если включено отображение маски."},DE={en:"Regular expression for validating character inputs. For example, when a mask is digit-only.",ru:"Регулярное выражение для валидации вводимого символа. Например, если маска предполагает только ввод цифр."},VE={en:"Mask for entering phone numbers with dynamic regional format identification.",ru:"Маска для ввода номера телефона c динамическим определением регионального формата."},LE={en:"Name of the variable to store the unprocessed value.",ru:"Имя переменной для хранения необработанного значения."},FE={en:"Maximum number of characters that can be entered in the input field.",ru:"Максимальное количество символов, которое можно ввести в поле ввода."},NE={en:"Maximum number of lines to be displayed in the input field.",ru:"Максимальное количество строк, которое будет видно в поле ввода."},qE={en:"Data entry method. If the value isn't set, the `keyboard_type` parameter's value is used instead.",ru:"Способ ввода данных. Если значение не указано, будет использовано значение параметра `keyboard_type`."},RE={en:"Text input line used in the native interface.",ru:"Нативный внешний вид - линия ввода текста."},BE={en:"Text input line color.",ru:"Цвет линии ввода текста."},HE={en:"Highlighting input text when focused.",ru:"Выделение введенного текста при получении фокуса."},JE={en:"Text input field.",ru:"Поле ввода текста."},UE={en:"Name of text storage variable.",ru:"Название переменной для хранения текста."},WE={en:"Validator that checks that the field value meets the specified conditions.",ru:"Валидатор, который проверяет значение поля на соответствие заданным условиям."},KE={en:"Determines whether the empty field value is valid.",ru:"Определяет, является ли пустое значение поля корректным."},YE={en:"[Calculated expression](../../expressions) validator.",ru:"Валидатор на основе [вычисляемых выражений](../../expressions)."},GE={en:"[Calculated expression](../../expressions) used as a value validity condition.",ru:"[Вычисляемое выражение](../../expressions), которое используется как условие валидности значения."},XE={en:"ID of the text element containing the error message. The message will also be used for providing access.",ru:"ID текстового элемента, содержащего сообщение об ошибке. Сообщение также будет использовано для обеспечения доступности."},ZE={en:"Regex validator.",ru:"Валидатор на основе регулярных выражений."},xE={en:"A regular expression (pattern) that the field value must match.",ru:"Регулярное выражение (паттерн), которому должно соответствовать значение поля."},QE={en:"The name of the variable that stores the calculation results.",ru:"Имя переменной, в которой хранится результат вычисления выражения."},eA={en:"Enter data manually using a keyboard.",ru:"Ввод данных с клавиатуры."},tA={en:"Provides data on the actual size of the element.",ru:"Предоставляет данные о реальном размере элемента."},nA={en:"Name of the variable that stores the element’s height.",ru:"Название переменной для хранения высоты элемента."},iA={en:"Name of the variable that stores the element’s width.",ru:"Название переменной для хранения ширины элемента."},oA={en:"Line style.",ru:"Стиль линий."},rA={en:"Limit on the number of loggings. If `0`, the limit is removed.",ru:"Ограничение на количество логирований. При значении `0` ограничение снимается."},sA={en:"Element size adjusts to a parent element.",ru:"Размер элемента подстраивается под родительский элемент."},lA={en:"Weight when distributing free space between elements with the size type `match_parent` inside an element. If the weight isn't specified, the elements will divide the place equally.",ru:"Вес при распределении свободного места между элементами с типом размера `match_parent` внутри элемента. Если вес не указан, то элементы поделят место поровну."},aA={en:"Fixed width value of the visible part of a neighbouring page.",ru:"Фиксированное значение ширины видимой части соседней страницы."},cA={en:"Width of the visible part of a neighbouring page.",ru:"Ширина видимой части соседней страницы."},dA={en:"Image in 9-patch format (https://developer.android.com/studio/write/draw9patch).",ru:"Изображение в формате nine patch (https://developer.android.com/studio/write/draw9patch)."},uA={en:"Margins that break the image into parts using the same rules as the CSS `border-image-slice` property (https://developer.mozilla.org/en-US/docs/Web/CSS/border-image-slice).",ru:"Отступы, разбивающие изображение на части по тем же правилам, как при использовании свойства CSS `border-image-slice` (https://developer.mozilla.org/en-US/docs/Web/CSS/border-image-slice)."},pA={en:"Numeric value animator.",ru:"Аниматор числового значения."},_A={en:"The page size is equal to the size of its content.",ru:"Размер страницы равен размеру ее контента."},fA={en:"Alignment of pager pages along the scroll axis. For edge alignment, the margin from the edge of the parent equals the value of the corresponding padding.",ru:"Выравнивание страниц пейджера по оси скролла. Для выравнивания по краю отступ от края родителя равен значению соответствующего паддинга."},mA={en:"Page width (%).",ru:"Ширина страницы в процентах."},gA={en:"Page width as a percentage of the parent element width.",ru:"Ширина страницы в процентах от ширины родительского элемента."},hA={en:"Pager. It contains a horizontal set of cards that can be scrolled page by page. It shows the main page and the beginning of the next one.",ru:"Пейджер. Содержит горизонтальный набор карточек, которые можно скроллить постранично. Показывает основную страницу и начало следующей."},vA={en:"Aligning elements in the direction perpendicular to the scroll direction. In horizontal pager:<li>`start` — alignment to the top of the card;</li><li>`center` — to the center;</li><li>`end` — to the bottom.</li></p><p>In vertical pager:<li>`start` — alignment to the left of the card;</li><li>`center` — to the center;</li><li>`end` — to the right.</li>",ru:"Выравнивание элементов в направлении, перпендикулярном направлению скролла. В горизонтальном пейджере:<li>`start` — выравнивание по верхнему краю карточки;</li><li>`center` — по центру;</li><li>`end` — по нижнему краю.</li></p><p>В вертикальном пейджере:<li>`start` — выравнивание по левому краю карточки;</li><li>`center` — по центру;</li><li>`end` — по правому краю.</li>"},bA={en:"Ordinal number of the pager element that will be opened by default.",ru:"Порядковый номер элемента пейджера, который будет открываться по умолчанию."},yA={en:"Enables infinite scrolling of cards. Scrolling is looped: after the last card is displayed, it starts over again.",ru:"Включает бесконечный скролл карточек. После последней карточки прокрутка начинается сначала, т.е. скролл зацикливается."},wA={en:"Spacing between elements.",ru:"Расстояние между элементами."},$A={en:"Pager elements. Page-by-page transition options can be implemented using:<li>`div-action://set_current_item?id=&item=` — set the current page with an ordinal number `item` inside an element, with the specified `id`;</li><li>`div-action://set_next_item?id=[&overflow={clamp\\|ring}]` — go to the next page inside an element, with the specified `id`;</li><li>`div-action://set_previous_item?id=[&overflow={clamp\\|ring}]` — go to the previous page inside an element, with the specified `id`.</li></p><p>The optional `overflow` parameter is used to set navigation when the first or last element is reached:<li>`clamp` — transition will stop at the border element;</li><li>`ring` — go to the beginning or end, depending on the current element.</li></p><p>By default, `clamp`.",ru:"Элементы пейджера. Варианты постраничного перехода можно осуществить с помощью:<li>`div-action://set_current_item?id=&item=` — задать текущую страницу с порядковым номером `item` внутри элемента, с заданным `id`;</li><li>`div-action://set_next_item?id=[&overflow={clamp\\|ring}]` — перейти на следующую страницу внутри элемента, с заданным `id`;</li><li>`div-action://set_previous_item?id=[&overflow={clamp\\|ring}]` — перейти на предыдущую страницу внутри элемента, с заданным `id`.</li></p><p>Опциональный параметр `overflow` позволяет задать навигацию при достижении первого или последнего элемента:<li>`clamp` — переход остановится на пограничном элементе;</li><li>`ring` — переход в начало или конец, в зависимости от текущего элемента.</li></p><p>По умолчанию, `clamp`."},kA={en:"Type of calculation of the main page width:<li>`fixed` — from the fixed width of the next page `neighbour_page_width`;</li><li>`percentage` — from the percentage value `page_width`.</li>",ru:"Тип вычисления ширины основной страницы:<li>`fixed` — из фиксированной ширины следующей страницы `neighbour_page_width`;</li><li>`percentage` — из процентного значения `page_width`.</li>"},jA={en:"Width of the visible part of a neighbouring page.",ru:"Ширина видимой части соседней страницы."},SA={en:"Page width.",ru:"Ширина страницы."},TA={en:"Minimum transparency of the next page, within the range [0, 1], when scrolling through the pager. The following page is always the page with a larger ordinal number in the `items` list, regardless of the scrolling direction.",ru:"Минимальная прозрачность следующей страницы в диапазоне [0, 1] при листании пейджера. Следующая страница — всегда страница с большим порядковым номером в списке `items`, независимо от направления листания."},CA={en:"Scaling the next page during pager scrolling. The following page is always the page with a larger ordinal number in the `items` list, regardless of the scrolling direction.",ru:"Маштабирование следующей страницы во время листания пейджера. Следующая страница — всегда страница с большим порядковым номером в списке `items`, независимо от направления листания."},zA={en:"Pager orientation.",ru:"Ориентация пейджера."},EA={en:"Page transformation during pager scrolling.",ru:"Преобразование страницы пейджера во время движения."},AA={en:"Animation speed adjustment. When the value is set to `spring`, it’s a damped oscillation animation truncated to 0.7, with the `damping=1` parameter. Other values correspond to the Bezier curve:<li>`linear` — cubic-bezier(0, 0, 1, 1)</li><li>`ease` — cubic-bezier(0.25, 0.1, 0.25, 1)</li><li>`ease_in` — cubic-bezier(0.42, 0, 1, 1)</li><li>`ease_out` — cubic-bezier(0, 0, 0.58, 1)</li><li>`ease_in_out` — cubic-bezier(0.42, 0, 0.58, 1)</li>",ru:"Изменение скорости анимации. При значении `spring` — обрезанная до 0.7 анимация затухающих колебаний с параметром `damping=1`. Остальные значения соответствуют кривой Безье:<li>`linear` — cubic-bezier(0, 0, 1, 1);</li><li>`ease` — cubic-bezier(0.25, 0.1, 0.25, 1);</li><li>`ease_in` — cubic-bezier(0.42, 0, 1, 1);</li><li>`ease_out` — cubic-bezier(0, 0, 0.58, 1);</li><li>`ease_in_out` — cubic-bezier(0.42, 0, 0.58, 1).</li>"},OA={en:"Pages are stacked during animation overlapping one another.",ru:"Страницы собираются в стопку при анимации, перекрывая друг друга."},MA={en:"If the value is `false`, the following pages will be stacked on top of the previous ones. If the value is `true`, the reverse happens. The following page is always the page with a larger ordinal number in the `items` list, regardless of the scrolling direction.",ru:"При значении `false` следующие страницы будут собираться в стопку над предыдущими. При значении `true` — наоборот. Следующая страница — всегда страница с большим порядковым номером в списке `items`, независимо от направления листания."},PA={en:"Pages move without overlapping during pager scrolling.",ru:"Страницы двигаются во время листания пейджера, не перекрывая друг друга."},IA={en:"Minimum transparency of the previous page, in the range [0, 1], during pager scrolling. The previous page is always the page with a lower ordinal number in the `items` list, regardless of the scrolling direction.",ru:"Минимальная прозрачность предыдущей страницы в диапазоне [0, 1] во время листания пейджера. Предыдущая страница — всегда страница с меньшим порядковым номером в списке `items`, независимо от направления листания."},DA={en:"Scaling the previous page during pager scrolling. The previous page is always the page with a lower ordinal number in the `items` list, regardless of the scrolling direction.",ru:"Маштабирование предыдущей страницы во время листания пейджера. Предыдущая страница — всегда страница с меньшим порядковым номером в списке `items`, независимо от направления листания."},VA={en:"If the parameter is enabled, the pager won't transmit the scroll gesture to the parent element.",ru:"При включенном параметре пейджер не будет передавать жест скролла родительскому элементу."},LA={en:"Alignment of pager pages along the scroll direction. In horizontal pager:<li>`start` — alignment to the left of the card;</li><li>`center` — to the center;</li><li>`end` — to the right.</li></p><p>In vertical pager:<li>`start` — alignment to the top of the card;</li><li>`center` — to the center;</li><li>`end` — to the bottom.</li>. For edge alignment, the margin from the edge of the parent equals the value of the corresponding padding.",ru:"Выравнивание страниц пейджера по направлению скролла. В горизонтальном пейджере:<li>`start` — выравнивание по левому краю карточки;</li><li>`center` — по центру;</li><li>`end` — по правому краю.</li></p><p>В вертикальном пейджере:<li>`start` — выравнивание по верхнему краю карточки;</li><li>`center` — по центру;</li><li>`end` — по нижнему краю.</li>. Для выравнивания по краю отступ от края родителя равен значению соответствующего паддинга."},FA={en:"Pager.",ru:"Пейджер."},NA={en:"Edits the element.",ru:"Редактирует элемент."},qA={en:"ID of an element to be replaced or removed.",ru:"Идентификатор элемента для замены или удаления."},RA={en:"Elements to be inserted. If the parameter isn't specified, the element will be removed.",ru:"Элементы для вставки. Если параметр не задан, то элемент будет удален."},BA={en:"Element changes.",ru:"Изменения элементов."},HA={en:"Procedure for applying changes:<li>`transactional` — if an error occurs during application of at least one element, the changes aren't applied.</li><li>`partial` — all possible changes are applied. If there are errors, they are reported.</li>",ru:"Порядок применения изменений:<li>`transactional` — если во время применения хотя бы одного элемента произошла ошибка, то изменения не применяются.</li><li>`partial` — применяются все возможные изменения. Если есть ошибки, то о них сообщается.</li>"},JA={en:"Actions to perform after changes are applied.",ru:"Действия после применения изменений."},UA={en:"Actions to perform if there’s an error when applying changes in transaction mode.",ru:"Действия после ошибки применения изменений в транзакционном режиме."},WA={en:"Element size (%).",ru:"Размер элемента в процентах."},KA={en:"Element size value.",ru:"Значение размера элемента."},YA={en:"Fixed value of the central point of transformation: the absolute coordinate of the rotation point relative to the element's top-left corner.",ru:"Фиксированное значение центральной точки трансформации — абсолютная координата точки вращения относительно левого верхнего угла элемента."},GA={en:"Fixed coordinates of the rotation axis.",ru:"Фиксированные координаты оси вращения."},XA={en:"Measurement unit. To learn more about units of size measurement, see [Layout inside the card](../../layout).",ru:"Единица измерения. Подробнее о единицах измерения размера в разделе [Верстка внутри карточки](../../layout)."},ZA={en:"Coordinate value.",ru:"Значение координаты."},xA={en:"Position of the center point of transformation as a percentage relative to the element. The point with coordinates (0%, 0%) corresponds to the top-left corner, and (100%, 100%) corresponds to the bottom-right corner.",ru:"Положение центральной точки трансформации в процентах относительно элемента. Точка с координатами (0%, 0%) соответствует левому верхнему углу, а (100%, 100%) правому нижнему углу."},QA={en:"Location of the coordinate of the rotation axis as a percentage relative to the element size.",ru:"Расположение координаты оси вращения в процентах относительно размеров элемента."},eO={en:"Coordinate value as a percentage.",ru:"Значение координаты в процентах."},tO={en:"A point with fixed coordinates.",ru:"Точка с фиксированными координатами."},nO={en:"`X` coordinate.",ru:"Координата `X`."},iO={en:"`Y` coordinate.",ru:"Координата `Y`."},oO={en:"Fixed coordinates of the central point of the gradient.",ru:"Фиксированные координаты центральной точки градиента."},rO={en:"Coordinate value.",ru:"Значение координаты."},sO={en:"Location of the central point of the gradient relative to the element borders.",ru:"Расположение центральной точки градиента относительно границ элемента."},lO={en:'Coordinate value in the range "0...1".',ru:"Значение координаты в диапазоне `0..1`."},aO={en:"Relative radius of the gradient transition.",ru:"Относительный радиус градиентного перехода."},cO={en:"Type of the relative radius of the gradient transition.",ru:"Тип относительного радиуса градиентного перехода."},dO={en:"ID for the div object structure. Used to optimize block reuse. See [block reuse](../../reuse/reuse.md).",ru:"ID для структуры div-объекта. Используется для более оптимального переиспользования блоков. См. [переиспользование блоков](../../reuse/reuse.md)."},uO={en:"A rectangle with rounded corners.",ru:"Прямоугольник со скругленными углами."},pO={en:"Corner rounding radius.",ru:"Радиус скругления углов."},_O={en:"Height.",ru:"Высота."},fO={en:"Width.",ru:"Ширина."},mO={en:"Scale animation.",ru:"Анимация масштабирования."},gO={en:"Relative coordinate `X` of the point that won't change its position in case of scaling.",ru:"Относительная координата `X` точки, которая не изменит своего положения при масштабировании."},hO={en:"Relative coordinate `Y` of the point that won't change its position in case of scaling.",ru:"Относительная координата `Y` точки, которая не изменит своего положения при масштабировании."},vO={en:"Value of the scale from which the element starts appearing or at which it finishes disappearing.",ru:"Значение масштаба, с которого начнется появление или на котором закончится исчезновение элемента."},bO={en:"Scrollbar behavior. Hidden by default. When choosing a gallery size, keep in mind that the scrollbar may have a different height and width depending on the platform and user settings. <li>`none` — the scrollbar is hidden.</li><li>`auto` — the scrollbar is shown if there isn't enough space and it needs to be displayed on the current platform.</li>",ru:"Поведение скроллбара. По умолчанию скрыт. В зависимости от платформы и настроек пользователя, скроллбар может иметь разные ширину и высоту. Учитывайте это при выборе размеров галереи. <li>`none` — скроллбар скрыт.</li><li>`auto` — скроллбар отображается, если не хватает места и его отображение необходимо на текущей платформе.</li>"},yO={en:"List of options with only one to be selected.",ru:"Список вариантов, из которых можно выбрать одно значение."},wO={en:"Hint color.",ru:"Цвет подсказки."},$O={en:"Hint text.",ru:"Текст подсказки."},kO={en:"Spacing between characters.",ru:"Интервал между символами."},jO={en:"Line spacing of the text. Measured in units set in `font_size_unit`.",ru:"Межстрочный интервал (интерлиньяж) текста. Измеряется в единицах, заданных параметром `font_size_unit`."},SO={en:"List option.",ru:"Вариант выбора в списке."},TO={en:"Text description of the option displayed in the list. If not set, `value` is used instead.",ru:"Текстовое описание варианта, которое отображается в списке. Если не указано, то берется значение параметра `value`."},CO={en:"Value matching the option.",ru:"Значение, которое соответствует варианту выбора."},zO={en:"Name of the variable that stores the selected option value (`value`).",ru:"Имя переменной, которая хранит значение `value` выбранного варианта."},EO={en:"Enter data using a menu selection. \nThe text value of the `div_input` parameter corresponds to the selected menu item. If the value isn't selected, it's taken from `text_variable` instead.",ru:"Ввод данных с помощью выбора из меню. \nТекстовое значение параметра `div_input` соответствует выбранному пункту из меню. Если значение еще не выбрано, будет использовано значение переменной `text_variable`."},AO={en:"Selectable menu item.",ru:"Элемент меню, доступный для выбора."},OO={en:"The text that's displayed in the input field (the `div_input` parameter). If the value isn't set, the input field is populated with the `div_selection_input_item_value` parameter's value.",ru:"Текст, который отображается в поле ввода (параметр `div_input`). Если значение отсутствует, то в поле ввода отобразится значение параметра `div_selection_input_item_value`."},MO={en:"Text value of the menu element.",ru:"Текстовое значение элемента меню."},PO={en:"A separating line between elements.",ru:"Разделительная линия между элементами."},IO={en:"Separator display settings.",ru:"Настройки отображения разделителя."},DO={en:"Separator.",ru:"Разделитель."},VO={en:"Separator color. To prevent the separator from being displayed, set transparency in the alpha channel. For example, `#00FFFFFF`.",ru:"Цвет разделителя. Чтобы разделитель не отображался, задайте в альфа-канале прозрачность. Например, `#00FFFFFF`."},LO={en:"Separator orientation:<li>`vertical` — vertical;</li><li>`horizontal` — horizontal.</li><",ru:"Ориентация разделителя:<li>`vertical` — вертикальная;</li><li>`horizontal` — горизонтальная.</li>"},FO={en:"Element shadow.",ru:"Тень элемента."},NO={en:"Shadow transparency.",ru:"Прозрачность тени."},qO={en:"Blur intensity.",ru:"Интенсивность размытия."},RO={en:"Shadow color.",ru:"Цвет тени."},BO={en:"Shadow offset.",ru:"Смещение тени."},HO={en:"Fill color.",ru:"Цвет заливки."},JO={en:"Stroke style.",ru:"Стиль контура."},UO={en:"Drawable of a simple geometric shape.",ru:"Drawable простой геометрической формы."},WO={en:"Fill color.",ru:"Цвет заливки."},KO={en:"Shape.",ru:"Фигура."},YO={en:"Stroke style.",ru:"Стиль контура."},GO={en:"Fixed size.",ru:"Фиксированный размер."},XO={en:"The size that adjusts to the parent element width.",ru:"Размер, который подстраивается под ширину родительского элемента."},ZO={en:"Maximum size of an element.",ru:"Максимальный размер элемента."},xO={en:"Minimum size of an element.",ru:"Минимальный размер элемента."},QO={en:"Unit of measurement:<li>`px` — a physical pixel.</li><li>`dp` — a logical pixel that doesn't depend on screen density.</li><li>`sp` — a logical pixel that depends on the font size on a device. Specify height in `sp`. Only available on Android.</li>",ru:"Единица измерения:<li>`px` — физический пиксель.</li><li>`dp` — логический пиксель, который не зависит от плотности экрана.</li><li>`sp` — логический пиксель, который зависит от размера шрифта на устройстве. Указывайте в `sp` высоту. Доступен только на Android.</li>"},eM={en:"The size that adjusts to the element contents.",ru:"Размер, который подстраивается под содержимое элемента."},tM={en:"Slide animation.",ru:"Анимация перемещения."},nM={en:"A fixed value of an offset which the element starts appearing from or at which it finishes disappearing. If no value is specified, the distance to the selected edge of a parent element is used.",ru:"Фиксированное значение смещения, с которого начнется появление или на котором закончится исчезновение элемента. Если значение не указано, то берется расстояние до выбранного края родительского элемента."},iM={en:"Edge of a parent element for one of the action types:<li>where the element will move from when appearing;</li><li>where the element will move to when disappearing.</li>",ru:"Край родительского элемента для одного из типов действий:<li>откуда элемент будет двигаться при появлении;</li><li>куда элемент будет двигаться при исчезновении.</li>"},oM={en:"Slider for selecting a value in the range.",ru:"Слайдер для выбора значения в диапазоне."},rM={en:"Enables or disables toggling values by clicking or swiping.",ru:"Включает или отключает возможность переключения значения нажатием или свайпом."},sM={en:"Maximum value. It must be greater than the minimum value.",ru:"Максимальное значение. Должно быть больше минимального."},lM={en:"Minimum value.",ru:"Минимальное значение."},aM={en:"End of section.",ru:"Конец отрезка шкалы."},cM={en:"Section margins. Only uses horizontal margins.",ru:"Отступы от отрезка шкалы. Используются только горизонтальные отступы."},dM={en:"Start of section.",ru:"Начало отрезка шкалы."},uM={en:"Section style.",ru:"Стиль для отрезков шкалы."},pM={en:"Accessibility settings for the second pointer.",ru:"Настройки доступности для второго указателя."},_M={en:"Slider.",ru:"Слайдер."},fM={en:"Shift relative to the center.",ru:"Сдвиг относительно центра."},mM={en:"Style of the second pointer.",ru:"Стиль второго указателя."},gM={en:"Text style in the second pointer.",ru:"Стиль текста во втором указателе."},hM={en:"Name of the variable to store the second pointer's current value.",ru:"Название переменной для хранения текущего значения второго указателя."},vM={en:"Style of the first pointer.",ru:"Стиль первого указателя."},bM={en:"Text style in the first pointer.",ru:"Стиль текста в первом указателе."},yM={en:"Name of the variable to store the pointer's current value.",ru:"Название переменной для хранения текущего значения указателя."},wM={en:"Style of active serifs.",ru:"Стиль активных засечек."},$M={en:"Style of inactive serifs.",ru:"Стиль неактивных засечек."},kM={en:"Style of the active part of a scale.",ru:"Стиль активной части шкалы."},jM={en:"Style of the inactive part of a scale.",ru:"Стиль неактивной части шкалы."},SM={en:"Solid background color.",ru:"Сплошной цвет фона."},TM={en:"Color.",ru:"Цвет."},CM={en:"It contains sets of states for visual elements and switches between them.",ru:"Содержит наборы состояний для визуальных элементов и переключается между ними."},zM={en:"ID of the status that will be set by default. If the parameter isnt set, the first state of the `states` will be set.",ru:"Идентификатор состояния, которое будет выставлено по умолчанию. Если параметр не задан, то будет выставлено первое состояние из `states`."},EM={en:"ID of an element to search in the hierarchy. The ID must be unique at one hierarchy level.",ru:"Идентификатор элемента. Параметр устарел, используйте `id`."},AM={en:"State appearance animation. Use `transition_in` instead.",ru:"Анимация появления состояния. Вместо него используйте `transition_in`."},OM={en:"State disappearance animation. Use `transition_out` instead.",ru:"Анимация исчезания состояния. Вместо него используйте `transition_out`."},MM={en:"Contents. If the parameter is missing, the state won't be displayed.",ru:"Содержимое. Если параметр отсутствует, то состояние не будет отображаться."},PM={en:"State ID. It must be unique at one hierarchy level.",ru:"Идентификатор состояния. Должен быть уникальным на одном уровне иерархии."},IM={en:"Actions when swiping the state horizontally.",ru:"Действия при смахивании состояния по горизонтали."},DM={en:"State.",ru:"Состояние."},VM={en:"The name of the variable that stores the ID for the current state. If the variable changes, the active state will also change. The variable is prioritized over the default_state_id parameter.",ru:"Имя переменной, в которой хранится идентификатор текущего состояния. Если изменится значение переменной, то и активное состояние будет изменено. Переменная имеет приоритет над параметром `default_state_id`."},LM={en:"States. Each element can have a few states with a different layout. Transition between states is performed using [special scheme](../../interaction) of the [action](div-action.md) element.",ru:"Состояния. Каждый элемент может иметь несколько состояний с разной версткой. Переход между состояниями осуществляется с помощью [специальной схемы](../../interaction) элемента [action](div-action.md)."},FM={en:"It determines which events trigger transition animations.",ru:"Определяет, при каких событиях сработают анимации переходов. Вместо него используйте `transition_triggers`."},NM={en:"Stroke.",ru:"Рамка."},qM={en:"Stroke color.",ru:"Цвет рамки."},RM={en:"Stroke style. Supported for border stroke only.",ru:"Стиль линии. Поддерживается только для линии обводки."},BM={en:"Dashed stroke style.",ru:"Пунктирная линия."},HM={en:"Solid stroke style.",ru:"Сплошная линия."},JM={en:"Stroke width.",ru:"Толщина рамки."},UM={en:"Two-state toggle that allows the user to control a Boolean variable. The element's look-and-feel varies by platform. The toggle has a fixed size in iOS.",ru:"Переключатель с двумя состояниями, который позволяет пользователю использовать булевую переменную. Элемент имеет разный вид в зависимости от платформы. На iOS размер переключателя фиксированный."},WM={en:"Enables or disables the element's toggle functionality.",ru:"Включает или отключает возможность переключения элемента."},KM={en:"Name of the Boolean variable assigned to the toggle.",ru:"Название булевой переменной для переключателя."},YM={en:"Color of the toggle in the enabled state. If the color is omitted:\n: iOS standard system color is used\n: the color specified in `Div2Context` on Android is used.",ru:"Цвет переключателя во включенном состоянии. Если цвет не указан:\n- на iOS используется стандартный системный цвет;\n- на Android используется цвет, указанный в `Div2Context`."},GM={en:"Toggle.",ru:"Переключатель."},XM={en:"Tabs. Height of the first tab is determined by its contents, and height of the remaining [depends on the platform](../../location#tabs).",ru:"Табы. Высота первого таба определяется его содержимым, а высота остальных [зависит от платформы](../../location#tabs)."},ZM={en:"Updating height when changing the active element. In the browser, the value is always `true`.",ru:"Обновление высоты при смене активного элемента. В браузере значение всегда `true`."},xM={en:"A separating line between tabs and contents.",ru:"Разделительная черта между табами и содержимым."},QM={en:"Tab.",ru:"Таб."},eP={en:"Tab contents.",ru:"Содержимое таба."},tP={en:"Tab title.",ru:"Заголовок таба."},nP={en:"Action when clicking on the active tab title.",ru:"Действие при нажатии на заголовок активного таба."},iP={en:"Tabs. Transition between tabs can be implemented using:<li>`div-action://set_current_item?id=&item=` — set the current tab with an ordinal number `item` inside an element, with the specified `id`;</li><li>`div-action://set_next_item?id=[&overflow={clamp\\|ring}]` — go to the next tab inside an element, with the specified `id`;</li><li>`div-action://set_previous_item?id=[&overflow={clamp\\|ring}]` — go to the previous tab inside an element, with the specified `id`.</li></p><p>The optional `overflow` parameter is used to set navigation when the first or last element is reached:<li>`clamp` — transition will stop at the border element;</li><li>`ring` — go to the beginning or end, depending on the current element.</li></p><p>By default, `clamp`.",ru:"Табы. Переход между табами можно осуществить с помощью:<li>`div-action://set_current_item?id=&item=` — задать текущий таб с порядковым номером `item` внутри элемента, с заданным `id`;</li><li>`div-action://set_next_item?id=[&overflow={clamp\\|ring}]` — перейти на следующий таб внутри элемента, с заданным `id`;</li><li>`div-action://set_previous_item?id=[&overflow={clamp\\|ring}]` — перейти на предыдущий таб внутри элемента, с заданным `id`.</li></p><p>Опциональный параметр `overflow` позволяет задать навигацию при достижении первого или последнего элемента:<li>`clamp` — переход остановится на пограничном элементе;</li><li>`ring` — переход в начало или конец, в зависимости от текущего элемента.</li></p><p>По умолчанию, `clamp`."},oP={en:"If the parameter is enabled, tabs won't transmit the scroll gesture to the parent element.",ru:"При включенном параметре табы не будут передавать жест скролла родительскому элементу."},rP={en:"Ordinal number of the tab that will be opened by default.",ru:"Порядковый номер таба, который будет открываться по умолчанию."},sP={en:"Separator color.",ru:"Цвет разделителя."},lP={en:"Indents from the separating line. Not used if `has_separator = false`.",ru:"Отступы от разделительной черты. Не используется, если `has_separator = false`."},aP={en:"Tabs.",ru:"Табы."},cP={en:"Switching tabs by scrolling through the contents.",ru:"Переключение табов скроллом по содержимому."},dP={en:"Design style of separators between tab titles.",ru:"Стиль оформления разделителей между заголовками табов."},uP={en:"Separator background color.",ru:"Цвет фона разделителей."},pP={en:"Separator corner radius. If not specified, the corners will be rounded to the maximum (half of the smallest dimension). Not used if the `corners_radius` parameter is set.",ru:"Радиус скругления углов разделителей. Если параметр не задан, то применяется максимальное скругление (половина от наименьшего размера). Не используется, если задан параметр `corners_radius`."},_P={en:"Separator Corner radii of the separators. Empty values are replaced with 0.",ru:"Радиусы скругления углов разделителей. Пустые значения заменяются на 0."},fP={en:"Design style of tab titles.",ru:"Стиль оформления заголовков табов."},mP={en:"Background color of the active tab title.",ru:"Цвет фона заголовка активного таба."},gP={en:"Active tab title style.",ru:"Начертание заголовка активного таба."},hP={en:"Color of the active tab title text.",ru:"Цвет текста заголовка активного таба."},vP={en:"Duration of active title change animation.",ru:"Длительность анимации смены активного заголовка."},bP={en:"Active title change animation.",ru:"Анимация смены активного заголовка."},yP={en:"Title corner rounding radius. If the parameter isn't specified, the rounding is maximum (half of the smallest size). Not used if the `corners_radius` parameter is set.",ru:"Радиус скругления углов заголовка. Если параметр не задан, то максимальное скругление (половина от наименьшего размера). Не используется, если задан параметр `corners_radius`."},wP={en:"Rounding radii of corners of multiple titles. Empty values are replaced by `corner_radius`.",ru:"Радиусы скругления углов нескольких заголовков. Пустые значения заменяются на `corner_radius`."},$P={en:"Title font size.",ru:"Размер шрифта заголовка."},kP={en:"Units of title font size measurement.",ru:"Единицы измерения размера шрифта заголовка."},jP={en:"Style. Use `active_font_weight` and `inactive_font_weight` instead.",ru:"Начертание. Вместо него используйте `active_font_weight` и `inactive_font_weight`."},SP={en:"Background color of the inactive tab title.",ru:"Цвет фона заголовка неактивного таба."},TP={en:"Inactive tab title style.",ru:"Начертание заголовка неактивного таба."},CP={en:"Color of the inactive tab title text.",ru:"Цвет текста заголовка неактивного таба."},zP={en:"Spacing between neighbouring tab titles.",ru:"Интервал между соседними заголовками табов."},EP={en:"Spacing between title characters.",ru:"Интервал между символами заголовка."},AP={en:"Line spacing of the text.",ru:"Межстрочный интервал (интерлиньяж) текста."},OP={en:"Indents around the tab title.",ru:"Отступы вокруг заголовка таба."},MP={en:"Indents in the tab name.",ru:"Отступы в названии таба."},PP={en:"Text.",ru:"Текст."},IP={en:"Automatic text cropping to fit the container size.",ru:"Автоматическая обрезка текста под размер контейнера."},DP={en:"Text color.",ru:"Цвет текста."},VP={en:"Text cropping marker. It is displayed when text size exceeds the limit on the number of lines.",ru:"Маркер обрезки текста. Отображается, когда размер текста превышает ограничение по количеству строк."},LP={en:"Actions when clicking on a crop marker.",ru:"Действия при нажатии на маркер обрезки."},FP={en:"Images embedded in a crop marker.",ru:"Изображения, встроенные в маркер обрезки."},NP={en:"Character ranges inside a crop marker with different text styles.",ru:"Диапазоны символов внутри маркера обрезки с различными стилями текста."},qP={en:"Marker text.",ru:"Текст маркера."},RP={en:"Text color when focusing on the element.",ru:"Цвет текста при фокусировке на элементе."},BP={en:"Image.",ru:"Изображение."},HP={en:"Vertical image alignment within the row.",ru:"Вертикальное выравнивание изображения внутри строки."},JP={en:"Image height.",ru:"Высота изображения."},UP={en:"Defines the direction in the `start` parameter:\n– `normal` is for regular string indexing ([0, 1, 2, ..., N]). Use it if you need to insert an image by index relative to the beginning of a string.\n– `reversed` is for indexing a string from the end to the beginning ([N, ..., 2, 1, 0]). Use it if you need to insert an image by index relative to the end of a string.",ru:"Определяет направление работы параметра `start`:\n- `normal`: стандартная индексация строки ([0, 1, 2, ..., N]). Используйте, если необходимо вставить изображение по индексу относительно начала строки.\n- `reversed`: индексация строки от конца к началу ([N, ..., 2, 1, 0]). Используйте, если необходимо вставить изображение по индексу относительно конца строки."},WP={en:"A symbol to insert prior to an image. To insert an image at the end of the text, specify the number of the last character plus one.",ru:"Символ, перед которым нужно вставить изображение. Чтобы вставить изображение в конец текста, укажите номер последнего символа плюс один."},KP={en:"New color of a contour image.",ru:"Новый цвет контурного изображения."},YP={en:"Blend mode of the color specified in `tint_color`.",ru:"Метод наложения цвета, указанного в `tint_color`."},GP={en:"Image URL.",ru:"Ссылка на изображение."},XP={en:"Image width.",ru:"Ширина изображения."},ZP={en:"Images embedded in text.",ru:"Изображения, встроенные в текст."},xP={en:"Spacing between characters.",ru:"Интервал между символами."},QP={en:"Line spacing of the text.",ru:"Межстрочный интервал (интерлиньяж) текста."},eI={en:"Maximum number of lines not to be cropped when breaking the limits.",ru:"Максимальное количество строк, которые не будут обрезаны при выходе за ограничения."},tI={en:"Minimum number of cropped lines when breaking the limits.",ru:"Минимальное число обрезанных строк при выходе за ограничения."},nI={en:"Additional parameters of the character range.",ru:"Дополнительные параметры диапазона символов."},iI={en:"Action when clicking on text.",ru:"Действие при нажатии на текст."},oI={en:"Vertical text alignment within the row. Ignored when a baseline offset is specified.",ru:"Вертикальное выравнивание текста внутри строки. Параметр игнорируется, если указано смещение базовой линии."},rI={en:"Character range background.",ru:"Фон для диапазона символов."},sI={en:"Vertical baseline offset in a character range. If set, vertical alignment is ignored.",ru:"Вертикальное смещение базовой линии в диапазоне символов. Если параметр задан, то вертикальное выравнивание игнорируется."},lI={en:"Character range border.",ru:"Рамка для диапазона символов."},aI={en:"Ordinal number of the last character to be included in the range. If the property is omitted, the range ends at the last character of the text.",ru:"Порядковый номер последнего символа, который будет включен в диапазон. Если свойство не указано, то диапазон будет заканчиваться на последнем символе текста."},cI={en:"Spacing between characters.",ru:"Расстояние между символами."},dI={en:"Line spacing of the text. Units specified in `font_size_unit`.",ru:"Межстрочный интервал (интерлиньяж) текста. Измеряется в единицах, заданных в `font_size_unit`."},uI={en:"A mask that hides a part of text. To show the hidden text, disable the mask using the `is_enabled` property.",ru:"Маска, закрывающая участок текста. Для показа скрытого текста маску можно отключить через свойство `is_enabled`."},pI={en:"Controls the mask state. If set to `true`, the mask will hide the specified part of text. Otherwise, the text will be shown.",ru:"Управляет состоянием маски. При значении `true` указанная часть текста будет скрыта под маской, иначе текст будет показан."},_I={en:"A mask to hide text (spoiler). Looks like randomly distributed particles, same as in Telegram.",ru:"Маска для скрытия текста (спойлер) в виде случайно расположенных частиц, как в Telegram."},fI={en:"Enables animation for particles on the mask. The animation looks like a smooth movement of particles across the mask, same as in Telegram.",ru:"Включает анимацию частичек на маске. Анимация выглядит как плавное перемещение частиц по маске, как в Telegram."},mI={en:"The color of particles on the mask.",ru:"Цвет частиц на маске."},gI={en:"The density of particles on the mask. Interpreted as the probability of a particle to appear in a given point on the mask.",ru:"Плотность частиц на маске. Интерпретируется как вероятность частицы появиться в заданной точке маски."},hI={en:"The size of a single particle on the mask.",ru:"Размер одной частицы на маске."},vI={en:"A mask to hide text (spoiler). Looks like a rectangle filled with the color specified in the `color` parameter, same as in Telegram.",ru:"Маска для скрытия текста (спойлер) в виде прямоугольника, залитого указанным в параметре `color` цветом, как в Telegram."},bI={en:"Parameters of the shadow applied to the character range.",ru:"Параметры тени, применяемой к диапазону символов."},yI={en:"Ordinal number of a character which the range begins from. The first character has a number `0`.",ru:"Порядковый номер символа, с которого начинается диапазон. Первый символ имеет номер `0`."},wI={en:"Strikethrough.",ru:"Зачеркивание."},$I={en:"Top margin of the character range. Units specified in `font_size_unit`.",ru:"Верхний отступ диапазона символов. Измеряется в единицах, заданных в `font_size_unit`."},kI={en:"Underline.",ru:"Подчеркивание."},jI={en:"A character range in which additional style parameters can be set. Defined by mandatory `start` and `end` fields.",ru:"Диапазон символов, в котором можно установить дополнительные параметры стиля. Определяется обязательными полями `start` и `end`."},SI={en:"Ability to select and copy text.",ru:"Возможность выделения и копирования текста."},TI={en:"Parameters of the shadow applied to the text.",ru:"Параметры тени, применяемой к тексту."},CI={en:"Text.",ru:"Текст."},zI={en:"Strikethrough.",ru:"Зачеркивание."},EI={en:"Text.",ru:"Текст."},AI={en:"Horizontal text alignment.",ru:"Горизонтальное выравнивание текста."},OI={en:"Vertical text alignment.",ru:"Вертикальное выравнивание текста."},MI={en:"Text color. Not used if the `text_gradient` parameter is set.",ru:"Цвет текста. Не используется, если задан параметр `text_gradient`."},PI={en:"Gradient text color.",ru:"Градиентный цвет текста."},II={en:"Limit the text width to the maximum line width. Applies only when the width is set to `wrap_content`, `constrained=true`, and `max_size` is specified.",ru:"Ограничивать ширину текста максимальной шириной строки. Работает только с шириной `wrap_content`, `constrained=true` и выставленным `max_size`."},DI={en:"Location of text cropping marker.",ru:"Расположение маркера обрезки текста."},VI={en:"Underline.",ru:"Подчеркивание."},LI={en:"Timer.",ru:"Таймер."},FI={en:"Timer duration in milliseconds. If the parameter is `0` or not specified, the timer runs indefinitely (until the timer stop event occurs).",ru:"Длительность работы таймера в миллисекундах. Если параметр равен `0` или не указан, таймер работает бесконечно (до тех пор пока не придёт событие остановки таймера)."},NI={en:"Actions performed when the timer ends: when the timer has counted to the `duration` value or the `div-action://timer?action=stop&id=<id>` command has been received.",ru:"Действия, выполняемые при завершении работы таймера: когда таймер досчитал до значения `duration` или пришла команда `div-action://timer?action=stop&id=<id>`."},qI={en:"Timer ID. Must be unique. Used when calling actions for the selected timer, for example: start, stop.",ru:"Идентификатор таймера. Должен быть уникальным. Используется при вызове действий для выбранного таймера, например: запуск, остановка."},RI={en:"Actions that are performed on each count of the timer.",ru:"Действия, которые выполняются на каждый отсчет таймера."},BI={en:"Duration of time intervals in milliseconds between counts. If the parameter is not specified, the timer counts down from `0` to `duration` without calling `tick_actions`.",ru:"Длительность промежутков времени в миллисекундах между отсчетами. Если параметр не указан, то таймер отсчитывает от `0` до `duration` без вызова `tick_actions`."},HI={en:"Name of the variable where the current timer value is stored. Updated on each count or when the timer commands are called (start, stop, and so on), except the cancel command.",ru:"Название переменной, в которую сохраняется текущее значение таймера. Обновляется по каждому отсчету или при вызове команд для таймера (запуск, остановка и так далее), за исключением команды отмены."},JI={en:"Tooltip.",ru:"Всплывающая подсказка."},UI={en:"Tooltip appearance animation. By default, the tooltip will be appearing gradually with an offset from the anchor point by 10 dp.",ru:"Анимация появления подсказки. По умолчанию подсказка будет появляться постепенно со смещением от якорной точки на 10 dp."},WI={en:"Tooltip disappearance animation. By default, the tooltip will disappear gradually with an offset from the anchor point by 10 dp.",ru:"Анимация исчезания подсказки. По умолчанию подсказка будет исчезать постепенно со смещением от якорной точки на 10 dp."},KI={en:"Description for accessibility of the tap action on the background of the tooltip.",ru:"Описание для доступности действия нажатия на фон тултипа."},YI={en:"Allows dismissing tooltip by tapping outside of it.",ru:"Позволяет закрывать подсказку при нажатии за ее пределами."},GI={en:"An element that will be shown in a tooltip. If there are tooltips inside an element, they won't be shown.",ru:"Элемент, который будет показан в подсказке. Если внутри элемента есть подсказки, они не будут показываться."},XI={en:"Duration of the tooltip visibility in milliseconds. When the value is set to `0`, the tooltip will be visible until the user hides it.",ru:"Продолжительность видимости подсказки в миллисекундах. При значении `0` подсказка будет видна до тех пор, пока пользователь сам ее не скроет."},ZI={en:"Tooltip ID. It is used to avoid re-showing. It must be unique for all element tooltips.",ru:"Идентификатор подсказки. Используется, чтобы избежать повторного показа. Должен быть уникален для всех подсказок элемента."},xI={en:"Tooltip modes.",ru:"Режимы подсказки."},QI={en:"Modal mode. Clicks outside do not pass through to underlying elements. Restricts focus to the tooltip. Back button on Android and back gesture on iOS close the tooltip.",ru:"Модальный режим. Клик за пределами не проходит сквозь и не доступен элементам под подсказкой. Ограничивает фокус в пределах подсказки. Кнопка назад на Android и жест назад на iOS закрывают подсказку."},eD={en:"Non-modal mode. Clicks outside pass through to underlying elements. Does not restrict focus to the tooltip. Back button on Android and back gesture on iOS do not close the tooltip.",ru:"Немодальный режим. Клик за пределами обрабатывается элементами под подсказкой. Не ограничивает фокус в пределах подсказки. Кнопка назад на Android и жест назад на iOS не закрывают подсказку."},tD={en:"Shift relative to an anchor point.",ru:"Сдвиг относительно якорной точки."},nD={en:"The position of a tooltip relative to an element it belongs to.",ru:"Положение подсказки относительно элемента, к которому она относится."},iD={en:"Specifies actions triggered by tapping outside the tooltip.",ru:"Задает действия, выполняемые при нажатии за пределами подсказки."},oD={en:"Transformation of the element.",ru:"Преобразование элемента."},rD={en:"X coordinate of the rotation axis.",ru:"Координата Х оси вращения."},sD={en:"Y coordinate of the rotation axis.",ru:"Координата Y оси вращения."},lD={en:"Degrees of the element rotation. Positive values used for clockwise rotation.",ru:"Угол в градусах, на который необходимо повернуть элемент. Положительное значение описывает поворот по часовой стрелке."},aD={en:"Animation duration in milliseconds.",ru:"Продолжительность анимации в миллисекундах."},cD={en:"Transition speed nature.",ru:"Характер скорости перехода."},dD={en:"Delay in milliseconds before animation starts.",ru:"Задержка в миллисекундах перед началом анимации."},uD={en:"Variants of events that will trigger animations in child elements. The parent element can be [data](div-data.md) or [state](div-state.md).",ru:"Варианты событий, которые приведут к запуску анимаций в дочерних элементах. Родительским элементом может быть [data](div-data.md) или [state](div-state.md)."},pD={en:"Event type that triggers animation.",ru:"Тип события, при котором запускается анимация."},_D={en:"A trigger that causes an action when activated.",ru:"Триггер, который вызывает действие при срабатывании."},fD={en:"Action when a trigger is activated.",ru:"Действие при срабатывании триггера."},mD={en:"Condition for activating a trigger. For example, `liked && subscribed`.",ru:"Условие для срабатывания триггера. Например, `liked && subscribed`."},gD={en:"Trigger activation mode:<li>`on_condition` — a trigger is activated when the condition changes from `false` to `true`;</li><li>`on_variable` — a trigger is activated when the condition is met and the variable value changes.</li>",ru:"Режим запуска триггера:<li>`on_condition` — триггер сработает при изменении условия с `false` на `true`;</li><li>`on_variable` — триггер сработает при выполнении условия и изменении значения переменной.</li>"},hD={en:"An arbitrary array in JSON format.",ru:"Произвольный массив в формате JSON."},vD={en:"A Boolean variable in binary format.",ru:"Логическая переменная."},bD={en:"Variable — HEX color as a string.",ru:"Переменная — цвет в формате HEX, представленный в виде строки."},yD={en:"An arbitrary object in JSON format.",ru:"Произвольный объект в формате JSON."},wD={en:"An integer variable.",ru:"Целочисленная переменная."},$D={en:"Variable name.",ru:"Название переменной."},kD={en:"A floating-point variable.",ru:"Переменная с плавающей точкой."},jD={en:"A string variable.",ru:"Строковая переменная."},SD={en:"Variable — URL as a string.",ru:"Переменная — URL в виде строки."},TD={en:"Value.",ru:"Значение."},CD={en:"Video.",ru:"Видеоролик."},zD={en:"This option turns on automatic video playback. On the web, the video starts if muted playback is turned on.",ru:"Опция включает автоматическое воспроизведение видео. В вебе видео запускается при условии, что включена опция воспроизведения без звука."},ED={en:"Actions performed during video loading.",ru:"Действия, которые выполняются во время загрузки видео."},AD={en:"Time interval from the video beginning to the current position in milliseconds.",ru:"Интервал времени с начала видеоролика до текущей позиции в миллисекундах."},OD={en:"Actions performed after the video ends.",ru:"Действия, которые выполняются после окончания видео."},MD={en:"Actions performed when playback can't be continued due to a player error.",ru:"Действия, которые выполняются, когда невозможно продолжить воспроизведение из-за ошибки плеера."},PD={en:"This option mutes video.",ru:"Опция отключает звук при воспроизведении видео."},ID={en:"Actions performed when playback is paused.",ru:"Действия, которые выполняются при приостановке воспроизведения."},DD={en:"Additional information that can be used in the player.",ru:"Дополнительная информация, которая может быть использована внутри плеера."},VD={en:"Enables video preloading.",ru:"Включает предзагрузку видео."},LD={en:"Video preview encoded in `base64`. Will be shown until the video is ready to play. `Data url` format: `data:[;base64],<data>`",ru:"Превью видео, закодированное в `base64`. Будет показано до момента, когда видео готово к воспроизведению. Формат `data url`: `data:[;base64],<data>`"},FD={en:"This option turns on video repeat.",ru:"Опция включает повторное воспроизведение видео после окончания."},ND={en:"Actions performed when video playback resumes.",ru:"Действия, которые выполняются при возобновлении воспроизведения видео."},qD={en:"Video scaling:<li>`fit` places the entire video into the element (free space is filled with background);</li><li>`fill` scales the video to the element size and cuts off anything that's extra.</li>",ru:"Масштабирование видео:<li>`fit` помещает видео в элемент целиком (свободное место заполняется фоном);</li><li>`fill` масштабирует видео по размеру элемента и обрезает лишнее.</li>"},RD={en:"Description of one media file. Contains a link to the source, MIME type, bitrate, and resolution.",ru:"Описание одного медиафайла. Содержит ссылку на источник, MIME-тип, битрейт, разрешение."},BD={en:"Media file bitrate: Data transfer rate in a video stream, measured in kilobits per second (kbps).",ru:"Битрейт медиафайла — скорость передачи данных в потоке видео в килобитах в секунду (kbps)."},HD={en:"MIME type (Multipurpose Internet Mail Extensions): A string that defines the file type and helps process it correctly.",ru:"MIME-тип (Multipurpose Internet Mail Extensions) медиафайла — строка, которая указывает на тип содержимого файла и используется для его правильной обработки."},JD={en:"Media file resolution.",ru:"Разрешение медиафайла."},UD={en:"Media file frame height.",ru:"Высота кадра медиафайла."},WD={en:"Media file frame width.",ru:"Ширина кадра медиафайла."},KD={en:"Link to the media file available for playback or download.",ru:"Ссылка на медиафайл, доступный для воспроизведения или загрузки."},YD={en:"Video data stream for playback.",ru:"Поток видеоданных для воспроизведения."},GD={en:"Video stream link.",ru:"Ссылка на поток видеоданных."},XD={en:"Video data for playback.",ru:"Видеоданные для воспроизведения."},ZD={en:"Video contents.",ru:"Содержимое видео."},xD={en:"Video description. Contains the video link, codec, and resolution.",ru:"Описание видеоролика. Содержит ссылку на видео, кодек, разрешение."},QD={en:"Defines the codec (coder/decoder) used for the video file.",ru:"Определяет используемый кодек (кодировщик/декодировщик) для видеофайла."},eV={en:"Video file MIME type (Multipurpose Internet Mail Extensions) — String used to define the file type and correct processing.",ru:"MIME-тип (Multipurpose Internet Mail Extensions) видеофайла — строка, которая используется для определения типа файла и его правильной обработки."},tV={en:"Video resolution.",ru:"Разрешение видео."},nV={en:"Video frame height.",ru:"Высота кадра видеофайла."},iV={en:"Video frame width.",ru:"Ширина кадра видеофайла."},oV={en:"Link to the video file available for playback or download.",ru:"Ссылка на видеофайл, доступный для воспроизведения или загрузки."},rV={en:"Element visibility:<li>`visible` — the element is visible;</li><li>`invisible` — the element is invisible, but a place is reserved for it;</li><li>`gone` — the element is invisible, a place isn't reserved.</li>",ru:"Видимость элемента:<li>`visible` — элемент виден;</li><li>`invisible` — элемент не виден, но под него зарезервировано место;</li><li>`gone` — элемент не виден, место не зарезервировано.</li>"},sV={en:"Actions performed when an element becomes visible.",ru:"Действия, которые выполняются, когда элемент становится видимым."},lV={en:"Limit on the number of loggings. If `0`, the limit is removed.",ru:"Ограничение на количество логирований. При `0` ограничение снимается."},aV={en:"Time in milliseconds during which an element must be visible to trigger `visibility-action`.",ru:"Время в миллисекундах, в течение которого элемент должен быть виден, чтобы сработал `visibility-action`."},cV={en:"Percentage of the visible part of an element that triggers `visibility-action`.",ru:"Процент видимой части элемента, при котором срабатывает `visibility-action`."},dV={en:"The size of an element adjusts to its contents.",ru:"Размер элемента подстраивается под его содержимое."},uV={en:"The final size mustn't exceed the parent one. On iOS and in a default browser `false`. On Android always `true`.",ru:"Итоговый размер не должен превышать родительский. На iOS и в браузере по умолчанию `false`. На Android всегда `true`."},jte={div_absolute_edge_insets:K8,div_accessibility:Y8,div_accessibility_description:G8,div_accessibility_hint:X8,div_accessibility_is_checked:Z8,div_accessibility_mode:x8,div_accessibility_mute_after_action:Q8,div_accessibility_state_description:e7,div_accessibility_type:t7,div_action:n7,div_action_animator_start:i7,div_action_animator_start_animator_id:o7,div_action_animator_start_end_value:r7,div_action_animator_start_start_value:s7,div_action_animator_stop:l7,div_action_animator_stop_animator_id:a7,div_action_array_insert_value:c7,div_action_array_remove_value:d7,div_action_array_set_value:u7,div_action_base_download_callbacks:p7,div_action_base_is_enabled:_7,div_action_base_log_id:f7,div_action_base_payload:m7,div_action_base_referer:g7,div_action_base_scope_id:h7,div_action_base_url:v7,div_action_clear_focus:b7,div_action_copy_to_clipboard:y7,div_action_dict_set_value:w7,div_action_download:$7,div_action_download_url:k7,div_action_focus_element:j7,div_action_hide_tooltip:S7,div_action_log_url:T7,div_action_menu_item_action:C7,div_action_menu_item_actions:z7,div_action_menu_item_text:E7,div_action_menu_items:A7,div_action_scroll_animated:O7,div_action_scroll_by:M7,div_action_scroll_by_item_count:P7,div_action_scroll_by_offset:I7,div_action_scroll_destination:D7,div_action_scroll_destination_end:V7,div_action_scroll_destination_index:L7,div_action_scroll_destination_index_value:F7,div_action_scroll_destination_offset:N7,div_action_scroll_destination_offset_value:q7,div_action_scroll_destination_start:R7,div_action_scroll_id:B7,div_action_scroll_overflow:H7,div_action_scroll_to:J7,div_action_scroll_to_destination:U7,div_action_set_state:W7,div_action_set_state_state_id:K7,div_action_set_state_temporary:Y7,div_action_set_stored_value:G7,div_action_set_stored_value_lifetime:X7,div_action_set_stored_value_name:Z7,div_action_set_stored_value_value:x7,div_action_set_variable:Q7,div_action_show_tooltip:e9,div_action_show_tooltip_multiple:t9,div_action_submit:n9,div_action_submit_container_id:i9,div_action_submit_on_fail_actions:o9,div_action_submit_on_success_actions:r9,div_action_submit_request:s9,div_action_submit_request_headers:l9,div_action_submit_request_method:a9,div_action_submit_request_query_parameters:c9,div_action_submit_request_url:d9,div_action_target:u9,div_action_timer:p9,div_action_timer_action:_9,div_action_timer_id:f9,div_action_tooltip_id:m9,div_action_video:g9,div_action_video_action:h9,div_action_video_id:v9,div_actionable_action:b9,div_actionable_action_animation:y9,div_actionable_actions:w9,div_actionable_capture_focus_on_action:$9,div_actionable_doubletap_actions:k9,div_actionable_hover_end_actions:j9,div_actionable_hover_start_actions:S9,div_actionable_longtap_actions:T9,div_actionable_press_end_actions:C9,div_actionable_press_start_actions:z9,div_animation:E9,div_animation_duration:A9,div_animation_end_value:O9,div_animation_interpolator:M9,div_animation_interpolator_short:P9,div_animation_items:I9,div_animation_name:D9,div_animation_repeat:V9,div_animation_start_delay:L9,div_animation_start_value:F9,div_animator_base_cancel_actions:N9,div_animator_base_direction:q9,div_animator_base_duration:R9,div_animator_base_end_actions:B9,div_animator_base_id:H9,div_animator_base_interpolator:J9,div_animator_base_repeat_count:U9,div_animator_base_start_delay:W9,div_animator_base_variable_name:K9,div_animator_end_value:Y9,div_animator_start_value:G9,div_appearance_set_transition:X9,div_appearance_set_transition_items:Z9,div_appearance_transition:x9,div_appearance_transition_fade:Q9,div_appearance_transition_scale:eS,div_appearance_transition_set:tS,div_appearance_transition_slide:nS,div_aspect:iS,div_aspect_ratio:oS,div_background_gradient:rS,div_background_image:sS,div_background_solid:lS,div_base_accessibility:aS,div_base_alignment_horizontal:cS,div_base_alignment_vertical:dS,div_base_alpha:uS,div_base_animators:pS,div_base_background:_S,div_base_border:fS,div_base_capture_focus_on_action:mS,div_base_column_span:gS,div_base_disappear_actions:hS,div_base_extensions:vS,div_base_focus:bS,div_base_functions:yS,div_base_height:wS,div_base_id:$S,div_base_margins:kS,div_base_paddings:jS,div_base_row_span:SS,div_base_selected_actions:TS,div_base_tooltips:CS,div_base_transform:zS,div_base_transition_change:ES,div_base_transition_in:AS,div_base_transition_out:OS,div_base_transition_triggers:MS,div_base_variable_triggers:PS,div_base_variables:IS,div_base_visibility:DS,div_base_visibility_action:VS,div_base_visibility_actions:LS,div_base_width:FS,div_blend_mode:NS,div_blur:qS,div_blur_radius:RS,div_border:BS,div_border_corner_radius:HS,div_border_corners_radius:JS,div_border_has_shadow:US,div_border_shadow:WS,div_border_stroke:KS,div_change_bounds_transition:YS,div_change_set_transition:GS,div_change_set_transition_items:XS,div_change_transition:ZS,div_change_transition_bounds:xS,div_change_transition_set:QS,div_circle_shape:eT,div_circle_shape_radius:tT,div_clip_to_bounds:nT,div_cloud_background:iT,div_cloud_background_color:oT,div_cloud_background_corner_radius:rT,div_cloud_background_paddings:sT,div_collection_item_builder:lT,div_collection_item_builder_data:aT,div_collection_item_builder_prototypes:cT,div_collection_item_builder_prototypes_data_element_name:dT,div_collection_item_builder_prototypes_data_element_prefix:uT,div_collection_item_builder_prototypes_div:pT,div_collection_item_builder_prototypes_id:_T,div_collection_item_builder_prototypes_selector:fT,div_color_animator:mT,div_container:gT,div_container_aspect:hT,div_container_content_alignment_horizontal:vT,div_container_content_alignment_vertical:bT,div_container_items:yT,div_container_layout_mode:wT,div_container_line_separator:$T,div_container_orientation:kT,div_container_separator:jT,div_container_separator_show_at_end:ST,div_container_separator_show_at_start:TT,div_container_separator_show_between:CT,div_container_separator_style:zT,div_container_short:ET,div_corners_radius:AT,div_corners_radius_bottom_left:OT,div_corners_radius_bottom_right:MT,div_corners_radius_top_left:PT,div_corners_radius_top_right:IT,div_count_fixed:DT,div_count_infinity:VT,div_custom:LT,div_custom_custom_props:FT,div_custom_custom_type:NT,div_custom_items:qT,div_custom_short:RT,div_data:BT,div_data_div_state_div:HT,div_data_div_state_state_id:JT,div_data_functions:UT,div_data_log_id:WT,div_data_states:KT,div_data_timers:YT,div_data_transition_animation_selector:GT,div_data_variable_triggers:XT,div_data_variables:ZT,div_dimension:xT,div_dimension_value:QT,div_disappear_action:eC,div_disappear_action_disappear_duration:tC,div_disappear_action_visibility_percentage:nC,div_download_callbacks:iC,div_download_callbacks_on_fail_actions:oC,div_download_callbacks_on_success_actions:rC,div_edge_insets:sC,div_edge_insets_bottom:lC,div_edge_insets_end:aC,div_edge_insets_left:cC,div_edge_insets_right:dC,div_edge_insets_start:uC,div_edge_insets_top:pC,div_evaluable_type:_C,div_extension:fC,div_extension_id:mC,div_extension_params:gC,div_fade_transition:hC,div_fade_transition_alpha:vC,div_filter:bC,div_filter_rtl_mirror:yC,div_fixed_count:wC,div_fixed_count_value:$C,div_fixed_size:kC,div_fixed_size_unit:jC,div_fixed_size_value:SC,div_focus:TC,div_focus_background:CC,div_focus_border:zC,div_focus_next_focus_ids:EC,div_focus_on_blur:AC,div_focus_on_focus:OC,div_font_family:MC,div_font_feature_settings:PC,div_font_size:IC,div_font_size_unit:DC,div_font_weight:VC,div_font_weight_value:LC,div_function:FC,div_function_argument:NC,div_function_argument_name:qC,div_function_argument_type:RC,div_function_body:BC,div_function_name:HC,div_function_return_type:JC,div_gallery:UC,div_gallery_column_count:WC,div_gallery_cross_content_alignment:KC,div_gallery_cross_spacing:YC,div_gallery_default_item:GC,div_gallery_item_spacing:XC,div_gallery_items:ZC,div_gallery_orientation:xC,div_gallery_restrict_parent_scroll:QC,div_gallery_scroll_mode:ez,div_gallery_short:tz,div_gif_image:nz,div_gif_image_gif_url:iz,div_gif_image_short:oz,div_gradient_background:rz,div_gradient_background_angle:sz,div_gradient_background_colors:lz,div_gradient_colors:az,div_gradient_linear:cz,div_gradient_linear_angle:dz,div_gradient_color_map:uz,div_gradient_color_point:pz,div_gradient_color_point_color:_z,div_gradient_color_point_position:fz,div_gradient_radial:mz,div_gradient_radial_center_x:gz,div_gradient_radial_center_y:hz,div_gradient_radial_radius:vz,div_grid:bz,div_grid_column_count:yz,div_grid_content_alignment_horizontal:wz,div_grid_content_alignment_vertical:$z,div_grid_items:kz,div_grid_short:jz,div_image:Sz,div_image_appearance_animation:Tz,div_image_background:Cz,div_image_background_alpha:zz,div_image_background_content_alignment_horizontal:Ez,div_image_background_content_alignment_vertical:Az,div_image_background_image_url:Oz,div_image_background_preload_required:Mz,div_image_background_scale:Pz,div_image_base_content_alignment_horizontal:Iz,div_image_base_content_alignment_vertical:Dz,div_image_base_placeholder_color:Vz,div_image_base_preload_required:Lz,div_image_base_preview:Fz,div_image_base_scale:Nz,div_image_high_priority_preview_show:qz,div_image_image_url:Rz,div_image_short:Bz,div_image_tint_color:Hz,div_image_tint_mode:Jz,div_indicator:Uz,div_indicator_active_item_color:Wz,div_indicator_active_item_size:Kz,div_indicator_active_shape:Yz,div_indicator_animation:Gz,div_indicator_inactive_item_color:Xz,div_indicator_inactive_minimum_shape:Zz,div_indicator_inactive_shape:xz,div_indicator_item_placement:Qz,div_indicator_item_placement_default:eE,div_indicator_item_placement_stretch:tE,div_indicator_max_visible_items:nE,div_indicator_minimum_item_size:iE,div_indicator_pager_id:oE,div_indicator_shape:rE,div_indicator_short:sE,div_indicator_space_between_centers:lE,div_indicator_space_between_items:aE,div_infinity_count:cE,div_input:dE,div_input_autocapitalization:uE,div_input_enter_key_actions:pE,div_input_enter_key_type:_E,div_input_filters:fE,div_input_filters_expression:mE,div_input_filters_expression_condition:gE,div_input_filters_regex:hE,div_input_filters_regex_pattern:vE,div_input_highlight_color:bE,div_input_hint_color:yE,div_input_hint_text:wE,div_input_is_enabled:$E,div_input_keyboard_type:kE,div_input_letter_spacing:jE,div_input_line_height:SE,div_input_mask:TE,div_input_mask_currency:CE,div_input_mask_currency_locale:zE,div_input_mask_fixed_length:EE,div_input_mask_fixed_length_always_visible:AE,div_input_mask_fixed_length_pattern:OE,div_input_mask_fixed_length_pattern_elements:ME,div_input_mask_fixed_length_pattern_elements_key:PE,div_input_mask_fixed_length_pattern_elements_placeholder:IE,div_input_mask_fixed_length_pattern_elements_regex:DE,div_input_mask_phone:VE,div_input_mask_raw_text_variable:LE,div_input_max_length:FE,div_input_max_visible_lines:NE,div_input_method:qE,div_input_native_interface:RE,div_input_native_interface_color:BE,div_input_select_all_on_focus:HE,div_input_short:JE,div_input_text_variable:UE,div_input_validators:WE,div_input_validators_allow_empty:KE,div_input_validators_expression:YE,div_input_validators_expression_condition:GE,div_input_validators_label_id:XE,div_input_validators_regex:ZE,div_input_validators_regex_pattern:xE,div_input_validators_variable:QE,div_keyboard_input:eA,div_layout_provider:tA,div_layout_provider_height_variable_name:nA,div_layout_provider_width_variable_name:iA,div_line_style:oA,div_log_limit:rA,div_match_parent_size:sA,div_match_parent_size_weight:lA,div_neighbour_page_size:aA,div_neighbour_page_size_neighbour_page_width:cA,div_nine_patch_background:dA,div_nine_patch_background_insets:uA,div_number_animator:pA,div_page_content_size:_A,div_page_content_size_alignment:fA,div_page_size:mA,div_page_size_page_width:gA,div_pager:hA,div_pager_cross_axis_alignment:vA,div_pager_default_item:bA,div_pager_infinite_scroll:yA,div_pager_item_spacing:wA,div_pager_items:$A,div_pager_layout_mode:kA,div_pager_layout_mode_neighbour_page_size:jA,div_pager_layout_mode_page_size:SA,div_pager_next_page_alpha:TA,div_pager_next_page_scale:CA,div_pager_orientation:zA,div_pager_page_transformation:EA,div_pager_page_transformation_interpolator:AA,div_pager_page_transformation_overlap:OA,div_pager_page_transformation_overlap_reversed_stacking_order:MA,div_pager_page_transformation_slide:PA,div_pager_previous_page_alpha:IA,div_pager_previous_page_scale:DA,div_pager_restrict_parent_scroll:VA,div_pager_scroll_axis_alignment:LA,div_pager_short:FA,div_patch:NA,div_patch_change_id:qA,div_patch_change_items:RA,div_patch_changes:BA,div_patch_mode:HA,div_patch_on_applied_actions:JA,div_patch_on_failed_actions:UA,div_percentage_size:WA,div_percentage_size_value:KA,div_pivot_fixed:YA,div_pivot_fixed_short:GA,div_pivot_fixed_unit:XA,div_pivot_fixed_value:ZA,div_pivot_percentage:xA,div_pivot_percentage_short:QA,div_pivot_percentage_value:eO,div_point:tO,div_point_x:nO,div_point_y:iO,div_radial_gradient_fixed_center:oO,div_radial_gradient_fixed_center_value:rO,div_radial_gradient_relative_center:sO,div_radial_gradient_relative_center_value:lO,div_radial_gradient_relative_radius:aO,div_radial_gradient_relative_radius_value:cO,div_reuse_id:dO,div_rounded_rectangle_shape:uO,div_rounded_rectangle_shape_corner_radius:pO,div_rounded_rectangle_shape_item_height:_O,div_rounded_rectangle_shape_item_width:fO,div_scale_transition:mO,div_scale_transition_pivot_x:gO,div_scale_transition_pivot_y:hO,div_scale_transition_scale:vO,div_scrollbar:bO,div_select:yO,div_select_hint_color:wO,div_select_hint_text:$O,div_select_letter_spacing:kO,div_select_line_height:jO,div_select_option:SO,div_select_option_text:TO,div_select_option_value:CO,div_select_value_variable:zO,div_selection_input:EO,div_selection_input_item:AO,div_selection_input_item_text:OO,div_selection_input_item_value:MO,div_separator:PO,div_separator_delimiter_style:IO,div_separator_short:DO,div_separator_style_color:VO,div_separator_style_orientation:LO,div_shadow:FO,div_shadow_alpha:NO,div_shadow_blur:qO,div_shadow_color:RO,div_shadow_offset:BO,div_shape_base_background_color:HO,div_shape_base_stroke:JO,div_shape_drawable:UO,div_shape_drawable_color:WO,div_shape_drawable_shape:KO,div_shape_drawable_stroke:YO,div_size_fixed:GO,div_size_match_parent:XO,div_size_max:ZO,div_size_min:xO,div_size_unit:QO,div_size_wrap_content:eM,div_slide_transition:tM,div_slide_transition_distance:nM,div_slide_transition_edge:iM,div_slider:oM,div_slider_is_enabled:rM,div_slider_max_value:sM,div_slider_min_value:lM,div_slider_range_end:aM,div_slider_range_margins:cM,div_slider_range_start:dM,div_slider_ranges:uM,div_slider_secondary_value_accessibility:pM,div_slider_short:_M,div_slider_text_style_offset:fM,div_slider_thumb_secondary_style:mM,div_slider_thumb_secondary_text_style:gM,div_slider_thumb_secondary_value_variable:hM,div_slider_thumb_style:vM,div_slider_thumb_text_style:bM,div_slider_thumb_value_variable:yM,div_slider_tick_mark_active_style:wM,div_slider_tick_mark_inactive_style:$M,div_slider_track_active_style:kM,div_slider_track_inactive_style:jM,div_solid_background:SM,div_solid_background_color:TM,div_state:CM,div_state_default_state_id:zM,div_state_div_id:EM,div_state_div_state_animation_in:AM,div_state_div_state_animation_out:OM,div_state_div_state_div:MM,div_state_div_state_state_id:PM,div_state_div_state_swipe_out_actions:IM,div_state_short:DM,div_state_state_id_variable:VM,div_state_states:LM,div_state_transition_animation_selector:FM,div_stroke:NM,div_stroke_color:qM,div_stroke_style:RM,div_stroke_style_dashed:BM,div_stroke_style_solid:HM,div_stroke_width:JM,div_switch:UM,div_switch_is_enabled:WM,div_switch_is_on_variable:KM,div_switch_on_color:YM,div_switch_short:GM,div_tabs:XM,div_tabs_dynamic_height:ZM,div_tabs_has_separator:xM,div_tabs_item:QM,div_tabs_item_div:eP,div_tabs_item_title:tP,div_tabs_item_title_click_action:nP,div_tabs_items:iP,div_tabs_restrict_parent_scroll:oP,div_tabs_selected_tab:rP,div_tabs_separator_color:sP,div_tabs_separator_paddings:lP,div_tabs_short:aP,div_tabs_switch_tabs_by_content_swipe_enabled:cP,div_tabs_tab_title_delimiter_delimiter_style:dP,div_tabs_tab_title_delimiter_style_background_color:uP,div_tabs_tab_title_delimiter_style_corner_radius:pP,div_tabs_tab_title_delimiter_style_corners_radius:_P,div_tabs_tab_title_style:fP,div_tabs_tab_title_style_active_background_color:mP,div_tabs_tab_title_style_active_font_weight:gP,div_tabs_tab_title_style_active_text_color:hP,div_tabs_tab_title_style_animation_duration:vP,div_tabs_tab_title_style_animation_type:bP,div_tabs_tab_title_style_corner_radius:yP,div_tabs_tab_title_style_corners_radius:wP,div_tabs_tab_title_style_font_size:$P,div_tabs_tab_title_style_font_size_unit:kP,div_tabs_tab_title_style_font_weight:jP,div_tabs_tab_title_style_inactive_background_color:SP,div_tabs_tab_title_style_inactive_font_weight:TP,div_tabs_tab_title_style_inactive_text_color:CP,div_tabs_tab_title_style_item_spacing:zP,div_tabs_tab_title_style_letter_spacing:EP,div_tabs_tab_title_style_line_height:AP,div_tabs_tab_title_style_paddings:OP,div_tabs_title_paddings:MP,div_text:PP,div_text_auto_ellipsize:IP,div_text_color:DP,div_text_ellipsis:VP,div_text_ellipsis_actions:LP,div_text_ellipsis_images:FP,div_text_ellipsis_ranges:NP,div_text_ellipsis_text:qP,div_text_focused_text_color:RP,div_text_image:BP,div_text_image_alignment_vertical:HP,div_text_image_height:JP,div_text_image_indexing_direction:UP,div_text_image_start:WP,div_text_image_tint_color:KP,div_text_image_tint_mode:YP,div_text_image_url:GP,div_text_image_width:XP,div_text_images:ZP,div_text_letter_spacing:xP,div_text_line_height:QP,div_text_max_lines:eI,div_text_min_hidden_lines:tI,div_text_range:nI,div_text_range_actions:iI,div_text_range_alignment_vertical:oI,div_text_range_background:rI,div_text_range_baseline_offset:sI,div_text_range_border:lI,div_text_range_end:aI,div_text_range_letter_spacing:cI,div_text_range_line_height:dI,div_text_range_mask:uI,div_text_range_mask_is_enabled:pI,div_text_range_mask_particles:_I,div_text_range_mask_particles_animated:fI,div_text_range_mask_particles_color:mI,div_text_range_mask_particles_density:gI,div_text_range_mask_particles_size:hI,div_text_range_mask_solid:vI,div_text_range_shadow:bI,div_text_range_start:yI,div_text_range_strike:wI,div_text_range_top_offset:$I,div_text_range_underline:kI,div_text_ranges:jI,div_text_selectable:SI,div_text_shadow:TI,div_text_short:CI,div_text_strike:zI,div_text_text:EI,div_text_text_alignment_horizontal:AI,div_text_text_alignment_vertical:OI,div_text_text_color:MI,div_text_text_gradient:PI,div_text_tighten_width:II,div_text_truncate:DI,div_text_underline:VI,div_timer:LI,div_timer_duration:FI,div_timer_end_actions:NI,div_timer_id:qI,div_timer_tick_actions:RI,div_timer_tick_interval:BI,div_timer_value_variable:HI,div_tooltip:JI,div_tooltip_animation_in:UI,div_tooltip_animation_out:WI,div_tooltip_background_accessibility_description:KI,div_tooltip_close_by_tap_outside:YI,div_tooltip_div:GI,div_tooltip_duration:XI,div_tooltip_id:ZI,div_tooltip_mode:xI,div_tooltip_mode_modal:QI,div_tooltip_mode_non_modal:eD,div_tooltip_offset:tD,div_tooltip_position:nD,div_tooltip_tap_outside_actions:iD,div_transform:oD,div_transform_pivot_x:rD,div_transform_pivot_y:sD,div_transform_rotation:lD,div_transition_base_duration:aD,div_transition_base_interpolator:cD,div_transition_base_start_delay:dD,div_transition_selector:uD,div_transition_trigger:pD,div_trigger:_D,div_trigger_actions:fD,div_trigger_condition:mD,div_trigger_mode:gD,div_variable_array:hD,div_variable_boolean:vD,div_variable_color:bD,div_variable_dict:yD,div_variable_integer:wD,div_variable_name:$D,div_variable_number:kD,div_variable_string:jD,div_variable_url:SD,div_variable_value:TD,div_video:CD,div_video_autostart:zD,div_video_buffering_actions:ED,div_video_elapsed_time_variable:AD,div_video_end_actions:OD,div_video_fatal_actions:MD,div_video_muted:PD,div_video_pause_actions:ID,div_video_player_settings_payload:DD,div_video_preload_required:VD,div_video_preview:LD,div_video_repeatable:FD,div_video_resume_actions:ND,div_video_scale:qD,div_video_source:RD,div_video_source_bitrate:BD,div_video_source_mime_type:HD,div_video_source_resolution:JD,div_video_source_resolution_height:UD,div_video_source_resolution_width:WD,div_video_source_url:KD,div_video_stream:YD,div_video_stream_url:GD,div_video_video:XD,div_video_video_data:ZD,div_video_video_source:xD,div_video_video_source_codec:QD,div_video_video_source_mime_type:eV,div_video_video_source_resolution:tV,div_video_video_source_resolution_height:nV,div_video_video_source_resolution_width:iV,div_video_video_source_url:oV,div_visibility:rV,div_visibility_action:sV,div_visibility_action_log_limit:lV,div_visibility_action_visibility_duration:aV,div_visibility_action_visibility_percentage:cV,div_wrap_content_size:dV,div_wrap_content_size_constrained:uV},Ste=Object.freeze(Object.defineProperty({__proto__:null,default:jte,div_absolute_edge_insets:K8,div_accessibility:Y8,div_accessibility_description:G8,div_accessibility_hint:X8,div_accessibility_is_checked:Z8,div_accessibility_mode:x8,div_accessibility_mute_after_action:Q8,div_accessibility_state_description:e7,div_accessibility_type:t7,div_action:n7,div_action_animator_start:i7,div_action_animator_start_animator_id:o7,div_action_animator_start_end_value:r7,div_action_animator_start_start_value:s7,div_action_animator_stop:l7,div_action_animator_stop_animator_id:a7,div_action_array_insert_value:c7,div_action_array_remove_value:d7,div_action_array_set_value:u7,div_action_base_download_callbacks:p7,div_action_base_is_enabled:_7,div_action_base_log_id:f7,div_action_base_payload:m7,div_action_base_referer:g7,div_action_base_scope_id:h7,div_action_base_url:v7,div_action_clear_focus:b7,div_action_copy_to_clipboard:y7,div_action_dict_set_value:w7,div_action_download:$7,div_action_download_url:k7,div_action_focus_element:j7,div_action_hide_tooltip:S7,div_action_log_url:T7,div_action_menu_item_action:C7,div_action_menu_item_actions:z7,div_action_menu_item_text:E7,div_action_menu_items:A7,div_action_scroll_animated:O7,div_action_scroll_by:M7,div_action_scroll_by_item_count:P7,div_action_scroll_by_offset:I7,div_action_scroll_destination:D7,div_action_scroll_destination_end:V7,div_action_scroll_destination_index:L7,div_action_scroll_destination_index_value:F7,div_action_scroll_destination_offset:N7,div_action_scroll_destination_offset_value:q7,div_action_scroll_destination_start:R7,div_action_scroll_id:B7,div_action_scroll_overflow:H7,div_action_scroll_to:J7,div_action_scroll_to_destination:U7,div_action_set_state:W7,div_action_set_state_state_id:K7,div_action_set_state_temporary:Y7,div_action_set_stored_value:G7,div_action_set_stored_value_lifetime:X7,div_action_set_stored_value_name:Z7,div_action_set_stored_value_value:x7,div_action_set_variable:Q7,div_action_show_tooltip:e9,div_action_show_tooltip_multiple:t9,div_action_submit:n9,div_action_submit_container_id:i9,div_action_submit_on_fail_actions:o9,div_action_submit_on_success_actions:r9,div_action_submit_request:s9,div_action_submit_request_headers:l9,div_action_submit_request_method:a9,div_action_submit_request_query_parameters:c9,div_action_submit_request_url:d9,div_action_target:u9,div_action_timer:p9,div_action_timer_action:_9,div_action_timer_id:f9,div_action_tooltip_id:m9,div_action_video:g9,div_action_video_action:h9,div_action_video_id:v9,div_actionable_action:b9,div_actionable_action_animation:y9,div_actionable_actions:w9,div_actionable_capture_focus_on_action:$9,div_actionable_doubletap_actions:k9,div_actionable_hover_end_actions:j9,div_actionable_hover_start_actions:S9,div_actionable_longtap_actions:T9,div_actionable_press_end_actions:C9,div_actionable_press_start_actions:z9,div_animation:E9,div_animation_duration:A9,div_animation_end_value:O9,div_animation_interpolator:M9,div_animation_interpolator_short:P9,div_animation_items:I9,div_animation_name:D9,div_animation_repeat:V9,div_animation_start_delay:L9,div_animation_start_value:F9,div_animator_base_cancel_actions:N9,div_animator_base_direction:q9,div_animator_base_duration:R9,div_animator_base_end_actions:B9,div_animator_base_id:H9,div_animator_base_interpolator:J9,div_animator_base_repeat_count:U9,div_animator_base_start_delay:W9,div_animator_base_variable_name:K9,div_animator_end_value:Y9,div_animator_start_value:G9,div_appearance_set_transition:X9,div_appearance_set_transition_items:Z9,div_appearance_transition:x9,div_appearance_transition_fade:Q9,div_appearance_transition_scale:eS,div_appearance_transition_set:tS,div_appearance_transition_slide:nS,div_aspect:iS,div_aspect_ratio:oS,div_background_gradient:rS,div_background_image:sS,div_background_solid:lS,div_base_accessibility:aS,div_base_alignment_horizontal:cS,div_base_alignment_vertical:dS,div_base_alpha:uS,div_base_animators:pS,div_base_background:_S,div_base_border:fS,div_base_capture_focus_on_action:mS,div_base_column_span:gS,div_base_disappear_actions:hS,div_base_extensions:vS,div_base_focus:bS,div_base_functions:yS,div_base_height:wS,div_base_id:$S,div_base_margins:kS,div_base_paddings:jS,div_base_row_span:SS,div_base_selected_actions:TS,div_base_tooltips:CS,div_base_transform:zS,div_base_transition_change:ES,div_base_transition_in:AS,div_base_transition_out:OS,div_base_transition_triggers:MS,div_base_variable_triggers:PS,div_base_variables:IS,div_base_visibility:DS,div_base_visibility_action:VS,div_base_visibility_actions:LS,div_base_width:FS,div_blend_mode:NS,div_blur:qS,div_blur_radius:RS,div_border:BS,div_border_corner_radius:HS,div_border_corners_radius:JS,div_border_has_shadow:US,div_border_shadow:WS,div_border_stroke:KS,div_change_bounds_transition:YS,div_change_set_transition:GS,div_change_set_transition_items:XS,div_change_transition:ZS,div_change_transition_bounds:xS,div_change_transition_set:QS,div_circle_shape:eT,div_circle_shape_radius:tT,div_clip_to_bounds:nT,div_cloud_background:iT,div_cloud_background_color:oT,div_cloud_background_corner_radius:rT,div_cloud_background_paddings:sT,div_collection_item_builder:lT,div_collection_item_builder_data:aT,div_collection_item_builder_prototypes:cT,div_collection_item_builder_prototypes_data_element_name:dT,div_collection_item_builder_prototypes_data_element_prefix:uT,div_collection_item_builder_prototypes_div:pT,div_collection_item_builder_prototypes_id:_T,div_collection_item_builder_prototypes_selector:fT,div_color_animator:mT,div_container:gT,div_container_aspect:hT,div_container_content_alignment_horizontal:vT,div_container_content_alignment_vertical:bT,div_container_items:yT,div_container_layout_mode:wT,div_container_line_separator:$T,div_container_orientation:kT,div_container_separator:jT,div_container_separator_show_at_end:ST,div_container_separator_show_at_start:TT,div_container_separator_show_between:CT,div_container_separator_style:zT,div_container_short:ET,div_corners_radius:AT,div_corners_radius_bottom_left:OT,div_corners_radius_bottom_right:MT,div_corners_radius_top_left:PT,div_corners_radius_top_right:IT,div_count_fixed:DT,div_count_infinity:VT,div_custom:LT,div_custom_custom_props:FT,div_custom_custom_type:NT,div_custom_items:qT,div_custom_short:RT,div_data:BT,div_data_div_state_div:HT,div_data_div_state_state_id:JT,div_data_functions:UT,div_data_log_id:WT,div_data_states:KT,div_data_timers:YT,div_data_transition_animation_selector:GT,div_data_variable_triggers:XT,div_data_variables:ZT,div_dimension:xT,div_dimension_value:QT,div_disappear_action:eC,div_disappear_action_disappear_duration:tC,div_disappear_action_visibility_percentage:nC,div_download_callbacks:iC,div_download_callbacks_on_fail_actions:oC,div_download_callbacks_on_success_actions:rC,div_edge_insets:sC,div_edge_insets_bottom:lC,div_edge_insets_end:aC,div_edge_insets_left:cC,div_edge_insets_right:dC,div_edge_insets_start:uC,div_edge_insets_top:pC,div_evaluable_type:_C,div_extension:fC,div_extension_id:mC,div_extension_params:gC,div_fade_transition:hC,div_fade_transition_alpha:vC,div_filter:bC,div_filter_rtl_mirror:yC,div_fixed_count:wC,div_fixed_count_value:$C,div_fixed_size:kC,div_fixed_size_unit:jC,div_fixed_size_value:SC,div_focus:TC,div_focus_background:CC,div_focus_border:zC,div_focus_next_focus_ids:EC,div_focus_on_blur:AC,div_focus_on_focus:OC,div_font_family:MC,div_font_feature_settings:PC,div_font_size:IC,div_font_size_unit:DC,div_font_weight:VC,div_font_weight_value:LC,div_function:FC,div_function_argument:NC,div_function_argument_name:qC,div_function_argument_type:RC,div_function_body:BC,div_function_name:HC,div_function_return_type:JC,div_gallery:UC,div_gallery_column_count:WC,div_gallery_cross_content_alignment:KC,div_gallery_cross_spacing:YC,div_gallery_default_item:GC,div_gallery_item_spacing:XC,div_gallery_items:ZC,div_gallery_orientation:xC,div_gallery_restrict_parent_scroll:QC,div_gallery_scroll_mode:ez,div_gallery_short:tz,div_gif_image:nz,div_gif_image_gif_url:iz,div_gif_image_short:oz,div_gradient_background:rz,div_gradient_background_angle:sz,div_gradient_background_colors:lz,div_gradient_color_map:uz,div_gradient_color_point:pz,div_gradient_color_point_color:_z,div_gradient_color_point_position:fz,div_gradient_colors:az,div_gradient_linear:cz,div_gradient_linear_angle:dz,div_gradient_radial:mz,div_gradient_radial_center_x:gz,div_gradient_radial_center_y:hz,div_gradient_radial_radius:vz,div_grid:bz,div_grid_column_count:yz,div_grid_content_alignment_horizontal:wz,div_grid_content_alignment_vertical:$z,div_grid_items:kz,div_grid_short:jz,div_image:Sz,div_image_appearance_animation:Tz,div_image_background:Cz,div_image_background_alpha:zz,div_image_background_content_alignment_horizontal:Ez,div_image_background_content_alignment_vertical:Az,div_image_background_image_url:Oz,div_image_background_preload_required:Mz,div_image_background_scale:Pz,div_image_base_content_alignment_horizontal:Iz,div_image_base_content_alignment_vertical:Dz,div_image_base_placeholder_color:Vz,div_image_base_preload_required:Lz,div_image_base_preview:Fz,div_image_base_scale:Nz,div_image_high_priority_preview_show:qz,div_image_image_url:Rz,div_image_short:Bz,div_image_tint_color:Hz,div_image_tint_mode:Jz,div_indicator:Uz,div_indicator_active_item_color:Wz,div_indicator_active_item_size:Kz,div_indicator_active_shape:Yz,div_indicator_animation:Gz,div_indicator_inactive_item_color:Xz,div_indicator_inactive_minimum_shape:Zz,div_indicator_inactive_shape:xz,div_indicator_item_placement:Qz,div_indicator_item_placement_default:eE,div_indicator_item_placement_stretch:tE,div_indicator_max_visible_items:nE,div_indicator_minimum_item_size:iE,div_indicator_pager_id:oE,div_indicator_shape:rE,div_indicator_short:sE,div_indicator_space_between_centers:lE,div_indicator_space_between_items:aE,div_infinity_count:cE,div_input:dE,div_input_autocapitalization:uE,div_input_enter_key_actions:pE,div_input_enter_key_type:_E,div_input_filters:fE,div_input_filters_expression:mE,div_input_filters_expression_condition:gE,div_input_filters_regex:hE,div_input_filters_regex_pattern:vE,div_input_highlight_color:bE,div_input_hint_color:yE,div_input_hint_text:wE,div_input_is_enabled:$E,div_input_keyboard_type:kE,div_input_letter_spacing:jE,div_input_line_height:SE,div_input_mask:TE,div_input_mask_currency:CE,div_input_mask_currency_locale:zE,div_input_mask_fixed_length:EE,div_input_mask_fixed_length_always_visible:AE,div_input_mask_fixed_length_pattern:OE,div_input_mask_fixed_length_pattern_elements:ME,div_input_mask_fixed_length_pattern_elements_key:PE,div_input_mask_fixed_length_pattern_elements_placeholder:IE,div_input_mask_fixed_length_pattern_elements_regex:DE,div_input_mask_phone:VE,div_input_mask_raw_text_variable:LE,div_input_max_length:FE,div_input_max_visible_lines:NE,div_input_method:qE,div_input_native_interface:RE,div_input_native_interface_color:BE,div_input_select_all_on_focus:HE,div_input_short:JE,div_input_text_variable:UE,div_input_validators:WE,div_input_validators_allow_empty:KE,div_input_validators_expression:YE,div_input_validators_expression_condition:GE,div_input_validators_label_id:XE,div_input_validators_regex:ZE,div_input_validators_regex_pattern:xE,div_input_validators_variable:QE,div_keyboard_input:eA,div_layout_provider:tA,div_layout_provider_height_variable_name:nA,div_layout_provider_width_variable_name:iA,div_line_style:oA,div_log_limit:rA,div_match_parent_size:sA,div_match_parent_size_weight:lA,div_neighbour_page_size:aA,div_neighbour_page_size_neighbour_page_width:cA,div_nine_patch_background:dA,div_nine_patch_background_insets:uA,div_number_animator:pA,div_page_content_size:_A,div_page_content_size_alignment:fA,div_page_size:mA,div_page_size_page_width:gA,div_pager:hA,div_pager_cross_axis_alignment:vA,div_pager_default_item:bA,div_pager_infinite_scroll:yA,div_pager_item_spacing:wA,div_pager_items:$A,div_pager_layout_mode:kA,div_pager_layout_mode_neighbour_page_size:jA,div_pager_layout_mode_page_size:SA,div_pager_next_page_alpha:TA,div_pager_next_page_scale:CA,div_pager_orientation:zA,div_pager_page_transformation:EA,div_pager_page_transformation_interpolator:AA,div_pager_page_transformation_overlap:OA,div_pager_page_transformation_overlap_reversed_stacking_order:MA,div_pager_page_transformation_slide:PA,div_pager_previous_page_alpha:IA,div_pager_previous_page_scale:DA,div_pager_restrict_parent_scroll:VA,div_pager_scroll_axis_alignment:LA,div_pager_short:FA,div_patch:NA,div_patch_change_id:qA,div_patch_change_items:RA,div_patch_changes:BA,div_patch_mode:HA,div_patch_on_applied_actions:JA,div_patch_on_failed_actions:UA,div_percentage_size:WA,div_percentage_size_value:KA,div_pivot_fixed:YA,div_pivot_fixed_short:GA,div_pivot_fixed_unit:XA,div_pivot_fixed_value:ZA,div_pivot_percentage:xA,div_pivot_percentage_short:QA,div_pivot_percentage_value:eO,div_point:tO,div_point_x:nO,div_point_y:iO,div_radial_gradient_fixed_center:oO,div_radial_gradient_fixed_center_value:rO,div_radial_gradient_relative_center:sO,div_radial_gradient_relative_center_value:lO,div_radial_gradient_relative_radius:aO,div_radial_gradient_relative_radius_value:cO,div_reuse_id:dO,div_rounded_rectangle_shape:uO,div_rounded_rectangle_shape_corner_radius:pO,div_rounded_rectangle_shape_item_height:_O,div_rounded_rectangle_shape_item_width:fO,div_scale_transition:mO,div_scale_transition_pivot_x:gO,div_scale_transition_pivot_y:hO,div_scale_transition_scale:vO,div_scrollbar:bO,div_select:yO,div_select_hint_color:wO,div_select_hint_text:$O,div_select_letter_spacing:kO,div_select_line_height:jO,div_select_option:SO,div_select_option_text:TO,div_select_option_value:CO,div_select_value_variable:zO,div_selection_input:EO,div_selection_input_item:AO,div_selection_input_item_text:OO,div_selection_input_item_value:MO,div_separator:PO,div_separator_delimiter_style:IO,div_separator_short:DO,div_separator_style_color:VO,div_separator_style_orientation:LO,div_shadow:FO,div_shadow_alpha:NO,div_shadow_blur:qO,div_shadow_color:RO,div_shadow_offset:BO,div_shape_base_background_color:HO,div_shape_base_stroke:JO,div_shape_drawable:UO,div_shape_drawable_color:WO,div_shape_drawable_shape:KO,div_shape_drawable_stroke:YO,div_size_fixed:GO,div_size_match_parent:XO,div_size_max:ZO,div_size_min:xO,div_size_unit:QO,div_size_wrap_content:eM,div_slide_transition:tM,div_slide_transition_distance:nM,div_slide_transition_edge:iM,div_slider:oM,div_slider_is_enabled:rM,div_slider_max_value:sM,div_slider_min_value:lM,div_slider_range_end:aM,div_slider_range_margins:cM,div_slider_range_start:dM,div_slider_ranges:uM,div_slider_secondary_value_accessibility:pM,div_slider_short:_M,div_slider_text_style_offset:fM,div_slider_thumb_secondary_style:mM,div_slider_thumb_secondary_text_style:gM,div_slider_thumb_secondary_value_variable:hM,div_slider_thumb_style:vM,div_slider_thumb_text_style:bM,div_slider_thumb_value_variable:yM,div_slider_tick_mark_active_style:wM,div_slider_tick_mark_inactive_style:$M,div_slider_track_active_style:kM,div_slider_track_inactive_style:jM,div_solid_background:SM,div_solid_background_color:TM,div_state:CM,div_state_default_state_id:zM,div_state_div_id:EM,div_state_div_state_animation_in:AM,div_state_div_state_animation_out:OM,div_state_div_state_div:MM,div_state_div_state_state_id:PM,div_state_div_state_swipe_out_actions:IM,div_state_short:DM,div_state_state_id_variable:VM,div_state_states:LM,div_state_transition_animation_selector:FM,div_stroke:NM,div_stroke_color:qM,div_stroke_style:RM,div_stroke_style_dashed:BM,div_stroke_style_solid:HM,div_stroke_width:JM,div_switch:UM,div_switch_is_enabled:WM,div_switch_is_on_variable:KM,div_switch_on_color:YM,div_switch_short:GM,div_tabs:XM,div_tabs_dynamic_height:ZM,div_tabs_has_separator:xM,div_tabs_item:QM,div_tabs_item_div:eP,div_tabs_item_title:tP,div_tabs_item_title_click_action:nP,div_tabs_items:iP,div_tabs_restrict_parent_scroll:oP,div_tabs_selected_tab:rP,div_tabs_separator_color:sP,div_tabs_separator_paddings:lP,div_tabs_short:aP,div_tabs_switch_tabs_by_content_swipe_enabled:cP,div_tabs_tab_title_delimiter_delimiter_style:dP,div_tabs_tab_title_delimiter_style_background_color:uP,div_tabs_tab_title_delimiter_style_corner_radius:pP,div_tabs_tab_title_delimiter_style_corners_radius:_P,div_tabs_tab_title_style:fP,div_tabs_tab_title_style_active_background_color:mP,div_tabs_tab_title_style_active_font_weight:gP,div_tabs_tab_title_style_active_text_color:hP,div_tabs_tab_title_style_animation_duration:vP,div_tabs_tab_title_style_animation_type:bP,div_tabs_tab_title_style_corner_radius:yP,div_tabs_tab_title_style_corners_radius:wP,div_tabs_tab_title_style_font_size:$P,div_tabs_tab_title_style_font_size_unit:kP,div_tabs_tab_title_style_font_weight:jP,div_tabs_tab_title_style_inactive_background_color:SP,div_tabs_tab_title_style_inactive_font_weight:TP,div_tabs_tab_title_style_inactive_text_color:CP,div_tabs_tab_title_style_item_spacing:zP,div_tabs_tab_title_style_letter_spacing:EP,div_tabs_tab_title_style_line_height:AP,div_tabs_tab_title_style_paddings:OP,div_tabs_title_paddings:MP,div_text:PP,div_text_auto_ellipsize:IP,div_text_color:DP,div_text_ellipsis:VP,div_text_ellipsis_actions:LP,div_text_ellipsis_images:FP,div_text_ellipsis_ranges:NP,div_text_ellipsis_text:qP,div_text_focused_text_color:RP,div_text_image:BP,div_text_image_alignment_vertical:HP,div_text_image_height:JP,div_text_image_indexing_direction:UP,div_text_image_start:WP,div_text_image_tint_color:KP,div_text_image_tint_mode:YP,div_text_image_url:GP,div_text_image_width:XP,div_text_images:ZP,div_text_letter_spacing:xP,div_text_line_height:QP,div_text_max_lines:eI,div_text_min_hidden_lines:tI,div_text_range:nI,div_text_range_actions:iI,div_text_range_alignment_vertical:oI,div_text_range_background:rI,div_text_range_baseline_offset:sI,div_text_range_border:lI,div_text_range_end:aI,div_text_range_letter_spacing:cI,div_text_range_line_height:dI,div_text_range_mask:uI,div_text_range_mask_is_enabled:pI,div_text_range_mask_particles:_I,div_text_range_mask_particles_animated:fI,div_text_range_mask_particles_color:mI,div_text_range_mask_particles_density:gI,div_text_range_mask_particles_size:hI,div_text_range_mask_solid:vI,div_text_range_shadow:bI,div_text_range_start:yI,div_text_range_strike:wI,div_text_range_top_offset:$I,div_text_range_underline:kI,div_text_ranges:jI,div_text_selectable:SI,div_text_shadow:TI,div_text_short:CI,div_text_strike:zI,div_text_text:EI,div_text_text_alignment_horizontal:AI,div_text_text_alignment_vertical:OI,div_text_text_color:MI,div_text_text_gradient:PI,div_text_tighten_width:II,div_text_truncate:DI,div_text_underline:VI,div_timer:LI,div_timer_duration:FI,div_timer_end_actions:NI,div_timer_id:qI,div_timer_tick_actions:RI,div_timer_tick_interval:BI,div_timer_value_variable:HI,div_tooltip:JI,div_tooltip_animation_in:UI,div_tooltip_animation_out:WI,div_tooltip_background_accessibility_description:KI,div_tooltip_close_by_tap_outside:YI,div_tooltip_div:GI,div_tooltip_duration:XI,div_tooltip_id:ZI,div_tooltip_mode:xI,div_tooltip_mode_modal:QI,div_tooltip_mode_non_modal:eD,div_tooltip_offset:tD,div_tooltip_position:nD,div_tooltip_tap_outside_actions:iD,div_transform:oD,div_transform_pivot_x:rD,div_transform_pivot_y:sD,div_transform_rotation:lD,div_transition_base_duration:aD,div_transition_base_interpolator:cD,div_transition_base_start_delay:dD,div_transition_selector:uD,div_transition_trigger:pD,div_trigger:_D,div_trigger_actions:fD,div_trigger_condition:mD,div_trigger_mode:gD,div_variable_array:hD,div_variable_boolean:vD,div_variable_color:bD,div_variable_dict:yD,div_variable_integer:wD,div_variable_name:$D,div_variable_number:kD,div_variable_string:jD,div_variable_url:SD,div_variable_value:TD,div_video:CD,div_video_autostart:zD,div_video_buffering_actions:ED,div_video_elapsed_time_variable:AD,div_video_end_actions:OD,div_video_fatal_actions:MD,div_video_muted:PD,div_video_pause_actions:ID,div_video_player_settings_payload:DD,div_video_preload_required:VD,div_video_preview:LD,div_video_repeatable:FD,div_video_resume_actions:ND,div_video_scale:qD,div_video_source:RD,div_video_source_bitrate:BD,div_video_source_mime_type:HD,div_video_source_resolution:JD,div_video_source_resolution_height:UD,div_video_source_resolution_width:WD,div_video_source_url:KD,div_video_stream:YD,div_video_stream_url:GD,div_video_video:XD,div_video_video_data:ZD,div_video_video_source:xD,div_video_video_source_codec:QD,div_video_video_source_mime_type:eV,div_video_video_source_resolution:tV,div_video_video_source_resolution_height:nV,div_video_video_source_resolution_width:iV,div_video_video_source_url:oV,div_visibility:rV,div_visibility_action:sV,div_visibility_action_log_limit:lV,div_visibility_action_visibility_duration:aV,div_visibility_action_visibility_percentage:cV,div_wrap_content_size:dV,div_wrap_content_size_constrained:uV},Symbol.toStringTag,{value:"Module"})),kr=Boolean,Tte="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%3e%3cpath%20fill='%23fff'%20fill-rule='evenodd'%20d='M29%2016a5%205%200%201%200%200-10%205%205%200%200%200%200%2010Zm0-2a3%203%200%201%200%200-6%203%203%200%200%200%200%206Z'%20clip-rule='evenodd'/%3e%3cpath%20fill='%23fff'%20d='M5.104%2022.556a1%201%200%200%201%201.34-.452c.754.374%201.404.753%201.994%201.175a1%201%200%201%201-1.166%201.625%2012.214%2012.214%200%200%200-1.716-1.008%201%201%200%200%201-.452-1.34Zm5.102%203.848a1%201%200%200%201%201.395.235c.383.537.787%201.136%201.232%201.809a1%201%200%201%201-1.667%201.105%2063.971%2063.971%200%200%200-1.194-1.754%201%201%200%200%201%20.234-1.395Zm13.497-8.692a1%201%200%200%200-1.406-1.424%2041.525%2041.525%200%200%200-1.618%201.678%201%201%200%200%200%201.483%201.342%2039.6%2039.6%200%200%201%201.54-1.596Zm-4.099%205.081a1%201%200%201%200-1.736-.992c-.699%201.223-1.333%202.616-1.937%204.303a1%201%200%200%200%201.883.674c.572-1.596%201.16-2.88%201.79-3.985Zm-3.087%208.25a1%201%200%200%200-1.935-.508c-.185.704-.37%201.448-.555%202.236a1%201%200%200%200%201.946.458c.183-.773.363-1.5.544-2.186Z'/%3e%3c/svg%3e",Cte="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%3e%3cpath%20fill='%23fff'%20fill-rule='evenodd'%20d='M8.122%2015.929h3.172c1.109%200%201.954.173%202.535.52.58.346.87.931.87%201.755%200%20.338-.047.632-.142.884a1.845%201.845%200%200%201-.416.637%202.112%202.112%200%200%201-.637.429c-.252.112-.53.199-.832.26.78.095%201.369.307%201.768.637.398.329.598.832.598%201.508%200%20.485-.096.901-.286%201.248a2.35%202.35%200%200%201-.793.832%203.917%203.917%200%200%201-1.196.468c-.46.095-.958.143-1.495.143H8.122v-9.321Zm1.573%201.365v2.483h1.677c.52%200%20.94-.109%201.26-.325.321-.226.482-.577.482-1.053%200-.434-.148-.724-.442-.871-.286-.156-.694-.234-1.222-.234H9.695Zm0%203.835v2.769h1.729c.294%200%20.563-.022.806-.065.242-.052.45-.13.624-.234a1.2%201.2%200%200%200%20.403-.43%201.41%201.41%200%200%200%20.143-.662c0-.512-.17-.867-.507-1.066-.33-.208-.863-.312-1.6-.312H9.696Z'%20clip-rule='evenodd'/%3e%3cpath%20fill='%23fff'%20d='M20.08%2017.294v7.956h-1.587v-7.956H15.66v-1.365h7.24v1.365h-2.82Zm9.768%207.956h2.04v-9.321h-1.43v7.37l-4.16-7.37h-2.053v9.32h1.43v-7.383l4.173%207.384Z'/%3e%3cpath%20fill='%23fff'%20fill-rule='evenodd'%20d='M2%2014a6%206%200%200%201%206-6h24a6%206%200%200%201%206%206v12a6%206%200%200%201-6%206H8a6%206%200%200%201-6-6V14Zm6-4h24a4%204%200%200%201%204%204v12a4%204%200%200%201-4%204H8a4%204%200%200%201-4-4V14a4%204%200%200%201%204-4Z'%20clip-rule='evenodd'/%3e%3c/svg%3e",zte="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%3e%3cpath%20fill='%23fff'%20d='M15%208a1%201%200%200%201-1%201h-3.5A1.5%201.5%200%200%200%209%2010.5V14a1%201%200%201%201-2%200v-3.5A3.5%203.5%200%200%201%2010.5%207H14a1%201%200%200%201%201%201ZM8%2025a1%201%200%200%201%201%201v3.5a1.5%201.5%200%200%200%201.5%201.5H14a1%201%200%201%201%200%202h-3.5A3.5%203.5%200%200%201%207%2029.5V26a1%201%200%200%201%201-1Zm23-11a1%201%200%201%200%202%200v-3.5A3.5%203.5%200%200%200%2029.5%207H26a1%201%200%201%200%200%202h3.5a1.5%201.5%200%200%201%201.5%201.5V14Zm-6%2018a1%201%200%200%201%201-1h3.5a1.5%201.5%200%200%200%201.5-1.5V26a1%201%200%201%201%202%200v3.5a3.5%203.5%200%200%201-3.5%203.5H26a1%201%200%200%201-1-1Zm-9.242-6.343a1%201%200%200%201-1.414-1.414l4.242-4.242-4.242-4.242a1%201%200%200%201%201.414-1.414L20%2018.587l4.243-4.243a1%201%200%200%201%201.414%201.414L21.414%2020l4.243%204.243a1%201%200%201%201-1.414%201.415L20%2021.415l-4.242%204.242Z'/%3e%3c/svg%3e",Ete="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%3e%3cpath%20fill='%23fff'%20fill-rule='evenodd'%20d='M10%209a3%203%200%201%200%200%206%203%203%200%200%200%200-6Zm-1%203a1%201%200%201%201%202%200%201%201%200%200%201-2%200Zm1%205a3%203%200%201%200%200%206%203%203%200%200%200%200-6Zm-1%203a1%201%200%201%201%202%200%201%201%200%200%201-2%200Zm-2%208a3%203%200%201%201%206%200%203%203%200%200%201-6%200Zm3-1a1%201%200%201%200%200%202%201%201%200%200%200%200-2Z'%20clip-rule='evenodd'/%3e%3cpath%20fill='%23fff'%20d='M16%2012a1%201%200%200%200%201%201h15a1%201%200%201%200%200-2H17a1%201%200%200%200-1%201Zm1%209a1%201%200%201%201%200-2h15a1%201%200%201%201%200%202H17Zm-1%207a1%201%200%200%200%201%201h15a1%201%200%201%200%200-2H17a1%201%200%200%200-1%201Z'/%3e%3c/svg%3e",Ji={_template_lottie:{nameKey:"templates.lottie",visible:!0,inShortList:!0,icon:Tte,props:[{type:"group",title:"lottieProps.title",list:[{name:"props.lottie_url",prop:"lottie_params.lottie_url",type:"file",subtype:"lottie",enableSources:!0},{name:"props.preview",prop:"preview",type:"file",generateFromLottieProperty:"lottie_params.lottie_url",subtype:"image_preview",enableSources:!0},{name:"props.image_scale",prop:"scale",type:"select",default:"fill",options:[{name:"props.scale_fit",value:"fit"},{name:"props.scale_fill",value:"fill"},{name:"props.scale_no_scale",value:"no_scale"},{name:"props.scale_stretch",value:"stretch"}],enableSources:!0}]}],newNode:{lottie_params:{lottie_url:"",repeat_count:-1,repeat_mode:"restart"},width:{type:"fixed",value:100},height:{type:"fixed",value:100}},template:{type:"gif",scale:"fit",extensions:[{id:"lottie",$params:"lottie_params"}],gif_url:"https://yastatic.net/s3/home/divkit/empty2.png"}},_template_button:{nameKey:"templates.button",visible:!0,inShortList:!0,inlineTextEditorProp:"text",icon:Cte,props:[{type:"group",title:"buttonProps.title",list:[{name:"props.text",prop:"text",type:"string",enableTanker:!0,enableSources:!0,default:""},{type:"split",list:[{name:"props.font_size",prop:"font_size",type:"integer",min:1,max:1e3,enableSources:!0},{name:"props.line_height",prop:"line_height",type:"integer",min:0,max:1e3,enableSources:!0}]},{name:"props.font_weight",prop:"font_weight",type:"select",options:[{name:"props.font_weight_light",value:"light"},{name:"props.font_weight_normal",value:"regular"},{name:"props.font_weight_medium",value:"medium"},{name:"props.font_weight_bold",value:"bold"}],enableSources:!0},{name:"props.font_family",prop:"font_family",type:"select-font-family",show:{prop:"$fontFamily",equal:"yes"},enableSources:!0},{name:"props.text_color",prop:"text_color",type:"color",enableSources:!0},{name:"props.corners",prop:"corners",type:"integer",min:0,max:100,enableSources:!0},{name:"props.actions",prop:"actions",type:"actions2"}]}],newNode:{text:"Hello",background:[{type:"solid",color:"#000"}],text_color:"#fff",corners:4},template:{type:"text",text_alignment_horizontal:"center",text_alignment_vertical:"center",border:{$corner_radius:"corners"},paddings:{bottom:24,left:28,right:28,top:22},width:{type:"wrap_content"}}},_template_close:{nameKey:"templates.close",visible:!0,inShortList:!0,icon:zte,props:[{type:"group",title:"closeProps.title",list:[{name:"color",prop:"tint_color",type:"color",enableSources:!0},{name:"props.actions",prop:"actions",type:"actions2"}]}],newNode:{alignment_horizontal:"right",height:{type:"fixed",value:28},margins:{top:20,right:24},width:{type:"fixed",value:28}},template:{accessibility:{description:"Закрыть",mode:"merge",type:"button"},actions:[{log_id:"close_popup",url:"div-screen://close"}],image_url:"empty://",preview:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAABUBAMAAADuRQ3yAAAACXBIWXMAACE4AAAhOAFFljFgAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAwUExURQAAAIeHh4qKiouLi4yMjIyMjIqKioyMjIuLi4uLi4yMjIyMjIyMjI2NjYyMjIyMjDn5Ri0AAAAPdFJOUwAgMEBQX2B/gKCvv8/f707huRkAAAFkSURBVEjH7dfNTcQwEAXgsEiOYIW2lS2BEugk6SB0QAMUQQXQBy1w4baRODwOm7XH43kzPu5hfYs9+pQfz5MzDLdxFeP+8++lc20BTqy0XtsBwGxXjgBQ2EeAsgsAfOTLJ1B2BAD8qtITRUXpAxh7RsUN7MDYMyoea5gIu6GrmEqE3dBXOWezBspYC7VZE7VZG7VYglosQ1uWoi3LUc06qGY9tGZdtGZ9VLIBKtkILWyIFjZGMxujme1AK3YNgi51o4Jdw/xM3Whm145YXgAnGI02pXnboh3sWF7W3IuG7Cg/7NyLBuxln04xe9mnKWTL5g/ZsvkjVnZUwMqO8tm6TV22blOP1b3vsLr3OdsGCmXbQGGslVKEtVLKZu3oM1k7+iyW5anBsjxt2UQDZWOf88SeplTSx5wDT6lJHZ4OPPqSKt070TfVN5CcPE3qnPXm5OmkzllfP0dWevf+fbz9DFzH+AfPICZho9A64QAAAABJRU5ErkJggg==",tint_color:"#73000000",type:"image"}},_template_list_item:{nameKey:"templates.list_item",visible:!0,icon:Ete,props:[{type:"group",title:"listItemProps.title",list:[{name:"props.text",prop:"list_text",type:"string",enableTanker:!0,default:"\0",enableSources:!0},{name:"props.font_size",prop:"list_text_size",type:"integer",min:1,max:1e3,enableSources:!0},{name:"props.font_weight",prop:"list_font_weight",type:"select",options:[{name:"props.font_weight_light",value:"light"},{name:"props.font_weight_normal",value:"regular"},{name:"props.font_weight_medium",value:"medium"},{name:"props.font_weight_bold",value:"bold"}],enableSources:!0},{name:"props.font_family",prop:"font_family",type:"select-font-family",show:{prop:"$fontFamily",equal:"yes"},enableSources:!0},{name:"props.text_color",prop:"list_color",type:"color",enableSources:!0},{name:"props.actions",prop:"actions",type:"actions2"}]}],newNode:{list_text:"Text",list_color:"#000",list_text_size:24,list_font_weight:"medium"},template:{type:"container",orientation:"horizontal",items:[{type:"image",image_url:"https://yastatic.net/s3/home/div/div_fullscreens/hyphen.4.png",$tint_color:"list_color",width:{type:"fixed",value:28,unit:"sp"},height:{type:"fixed",value:28,unit:"sp"},margins:{top:2,right:12,bottom:2}},{type:"text",$text:"list_text",$text_color:"list_color",$font_size:"list_text_size",line_height:32,$font_weight:"list_font_weight",width:{type:"wrap_content",constrained:!0}}]}}};function Gl(t){return Ji.hasOwnProperty(t)}function Hm(t){var e;return(e=Ji[t])==null?void 0:e.baseType}const Jm=Object.assign({"../../../../schema/common.json":ZY,"../../../../schema/div-absolute-edge-insets.json":QY,"../../../../schema/div-accessibility.json":tG,"../../../../schema/div-action-animator-start.json":iG,"../../../../schema/div-action-animator-stop.json":rG,"../../../../schema/div-action-array-insert-value.json":lG,"../../../../schema/div-action-array-remove-value.json":cG,"../../../../schema/div-action-array-set-value.json":uG,"../../../../schema/div-action-base.json":_G,"../../../../schema/div-action-clear-focus.json":mG,"../../../../schema/div-action-copy-to-clipboard-content.json":hG,"../../../../schema/div-action-copy-to-clipboard.json":bG,"../../../../schema/div-action-dict-set-value.json":wG,"../../../../schema/div-action-download.json":kG,"../../../../schema/div-action-focus-element.json":SG,"../../../../schema/div-action-hide-tooltip.json":CG,"../../../../schema/div-action-scroll-base.json":EG,"../../../../schema/div-action-scroll-by.json":OG,"../../../../schema/div-action-scroll-destination.json":PG,"../../../../schema/div-action-scroll-to.json":DG,"../../../../schema/div-action-set-state.json":LG,"../../../../schema/div-action-set-stored-value.json":NG,"../../../../schema/div-action-set-variable.json":RG,"../../../../schema/div-action-show-tooltip.json":HG,"../../../../schema/div-action-submit.json":UG,"../../../../schema/div-action-timer.json":KG,"../../../../schema/div-action-typed.json":GG,"../../../../schema/div-action-video.json":ZG,"../../../../schema/div-action.json":QG,"../../../../schema/div-actionable.json":tX,"../../../../schema/div-alignment-horizontal.json":iX,"../../../../schema/div-alignment-vertical.json":rX,"../../../../schema/div-animation-direction.json":lX,"../../../../schema/div-animation-interpolator.json":cX,"../../../../schema/div-animation.json":uX,"../../../../schema/div-animator-base.json":_X,"../../../../schema/div-animator.json":mX,"../../../../schema/div-appearance-set-transition.json":hX,"../../../../schema/div-appearance-transition.json":bX,"../../../../schema/div-aspect.json":wX,"../../../../schema/div-background.json":kX,"../../../../schema/div-base.json":SX,"../../../../schema/div-blend-mode.json":CX,"../../../../schema/div-blur.json":EX,"../../../../schema/div-border.json":OX,"../../../../schema/div-change-bounds-transition.json":PX,"../../../../schema/div-change-set-transition.json":DX,"../../../../schema/div-change-transition.json":LX,"../../../../schema/div-circle-shape.json":NX,"../../../../schema/div-cloud-background.json":RX,"../../../../schema/div-collection-item-builder.json":HX,"../../../../schema/div-color-animator.json":UX,"../../../../schema/div-container.json":KX,"../../../../schema/div-content-alignment-horizontal.json":GX,"../../../../schema/div-content-alignment-vertical.json":ZX,"../../../../schema/div-corners-radius.json":QX,"../../../../schema/div-count.json":tZ,"../../../../schema/div-currency-input-mask.json":iZ,"../../../../schema/div-custom.json":rZ,"../../../../schema/div-data.json":lZ,"../../../../schema/div-default-indicator-item-placement.json":cZ,"../../../../schema/div-dimension.json":uZ,"../../../../schema/div-disappear-action.json":_Z,"../../../../schema/div-download-callbacks.json":mZ,"../../../../schema/div-drawable.json":hZ,"../../../../schema/div-edge-insets.json":bZ,"../../../../schema/div-evaluable-type.json":wZ,"../../../../schema/div-extension.json":kZ,"../../../../schema/div-fade-transition.json":SZ,"../../../../schema/div-filter-rtl-mirror.json":CZ,"../../../../schema/div-filter.json":EZ,"../../../../schema/div-fixed-count.json":OZ,"../../../../schema/div-fixed-length-input-mask.json":PZ,"../../../../schema/div-fixed-size.json":DZ,"../../../../schema/div-focus.json":LZ,"../../../../schema/div-font-weight.json":NZ,"../../../../schema/div-function-argument.json":RZ,"../../../../schema/div-function.json":HZ,"../../../../schema/div-gallery.json":UZ,"../../../../schema/div-gif-image.json":KZ,"../../../../schema/div-grid.json":GZ,"../../../../schema/div-image-background.json":ZZ,"../../../../schema/div-image-base.json":QZ,"../../../../schema/div-image-scale.json":tx,"../../../../schema/div-image.json":ix,"../../../../schema/div-indicator-item-placement.json":rx,"../../../../schema/div-indicator.json":lx,"../../../../schema/div-infinity-count.json":cx,"../../../../schema/div-input-filter-expression.json":ux,"../../../../schema/div-input-filter-regex.json":_x,"../../../../schema/div-input-filter.json":mx,"../../../../schema/div-input-mask-base.json":hx,"../../../../schema/div-input-mask.json":bx,"../../../../schema/div-input-validator-base.json":wx,"../../../../schema/div-input-validator-expression.json":kx,"../../../../schema/div-input-validator-regex.json":Sx,"../../../../schema/div-input-validator.json":Cx,"../../../../schema/div-input.json":Ex,"../../../../schema/div-layout-provider.json":Ox,"../../../../schema/div-line-style.json":Px,"../../../../schema/div-linear-gradient.json":Dx,"../../../../schema/div-match-parent-size.json":Lx,"../../../../schema/div-neighbour-page-size.json":Nx,"../../../../schema/div-nine-patch-background.json":Rx,"../../../../schema/div-number-animator.json":Hx,"../../../../schema/div-page-content-size.json":Ux,"../../../../schema/div-page-size.json":Kx,"../../../../schema/div-page-transformation-overlap.json":Gx,"../../../../schema/div-page-transformation-slide.json":Zx,"../../../../schema/div-page-transformation.json":Qx,"../../../../schema/div-pager-layout-mode.json":tQ,"../../../../schema/div-pager.json":iQ,"../../../../schema/div-patch.json":rQ,"../../../../schema/div-percentage-size.json":lQ,"../../../../schema/div-phone-input-mask.json":cQ,"../../../../schema/div-pivot-fixed.json":uQ,"../../../../schema/div-pivot-percentage.json":_Q,"../../../../schema/div-pivot.json":mQ,"../../../../schema/div-point.json":hQ,"../../../../schema/div-radial-gradient-center.json":bQ,"../../../../schema/div-radial-gradient-fixed-center.json":wQ,"../../../../schema/div-radial-gradient-radius.json":kQ,"../../../../schema/div-radial-gradient-relative-center.json":SQ,"../../../../schema/div-radial-gradient-relative-radius.json":CQ,"../../../../schema/div-radial-gradient.json":EQ,"../../../../schema/div-rounded-rectangle-shape.json":OQ,"../../../../schema/div-scale-transition.json":PQ,"../../../../schema/div-select.json":DQ,"../../../../schema/div-separator.json":LQ,"../../../../schema/div-shadow.json":NQ,"../../../../schema/div-shape-base.json":RQ,"../../../../schema/div-shape-drawable.json":HQ,"../../../../schema/div-shape.json":UQ,"../../../../schema/div-sight-action.json":KQ,"../../../../schema/div-size-unit.json":GQ,"../../../../schema/div-size.json":ZQ,"../../../../schema/div-slide-transition.json":QQ,"../../../../schema/div-slider.json":tee,"../../../../schema/div-solid-background.json":iee,"../../../../schema/div-state.json":ree,"../../../../schema/div-stretch-indicator-item-placement.json":lee,"../../../../schema/div-stroke-style-dashed.json":cee,"../../../../schema/div-stroke-style-solid.json":uee,"../../../../schema/div-stroke-style.json":_ee,"../../../../schema/div-stroke.json":mee,"../../../../schema/div-switch.json":hee,"../../../../schema/div-tabs.json":bee,"../../../../schema/div-text-alignment-vertical.json":wee,"../../../../schema/div-text-gradient.json":kee,"../../../../schema/div-text-range-background.json":See,"../../../../schema/div-text-range-border.json":Cee,"../../../../schema/div-text-range-mask-base.json":Eee,"../../../../schema/div-text-range-mask-particles.json":Oee,"../../../../schema/div-text-range-mask-solid.json":Pee,"../../../../schema/div-text-range-mask.json":Dee,"../../../../schema/div-text.json":Lee,"../../../../schema/div-timer.json":Nee,"../../../../schema/div-tooltip-mode-modal.json":Ree,"../../../../schema/div-tooltip-mode-non-modal.json":Hee,"../../../../schema/div-tooltip-mode.json":Uee,"../../../../schema/div-tooltip.json":Kee,"../../../../schema/div-transform.json":Gee,"../../../../schema/div-transition-base.json":Zee,"../../../../schema/div-transition-selector.json":Qee,"../../../../schema/div-transition-trigger.json":tte,"../../../../schema/div-trigger.json":ite,"../../../../schema/div-typed-value.json":rte,"../../../../schema/div-variable-name.json":lte,"../../../../schema/div-variable.json":cte,"../../../../schema/div-video-scale.json":ute,"../../../../schema/div-video-source.json":_te,"../../../../schema/div-video.json":mte,"../../../../schema/div-visibility-action.json":hte,"../../../../schema/div-visibility.json":bte,"../../../../schema/div-wrap-content-size.json":wte,"../../../../schema/div.json":kte,"../../../../schema/translations.json":Ste}),wa=Object.keys(Jm).reduce(((t,e)=>(t[e.replace("../../../../schema/","").replace(/\.json$/,"")]=Jm[e],t)),{});function Ate(t){return fV({},t)}const pV=new Map([["common.json#/boolean_int","boolean"],["common.json#/color","color"],["common.json#/url","file"],["div-variable-name.json","variable-name"],["div-background.json","__background-item"],["div-action.json","__action-item"],["div-video-source.json","__video-source-item"]]),Um=new Map([["__background-item","background2"],["__action-item","actions2"],["__video-source-item","video_sources"]]),Wm=new Map,Km=new Map;function _V(t){const e={...wa[t].default};return t==="div"&&(e.__isDiv=!0),t==="div-tooltip"&&(e.__isTooltip=!0),e}function Ym(t){return t.replace(/<\/?li>/g,"").replace(/`/g,'"').replace(/\s?\[[^\]]+]\([^)]+\)/g,"")}function fV(t,e,n){const i=Cc(t,e)||{};return{ru:Ym(i.ru||""),en:Ym(i.en||"")}}function Cc(t,e,n){const i=e.split("#"),o=i[0];let r=i[1],s=t;const l={},a=pV.get(e);if(o){const u=Wm.get(e);if(u)return u;Wm.set(e,l),s=_V(o.replace(/\.json$/,""))}if(!r){const u=Ds(s,s);if(a&&(u.__editor=a),o)for(const p in u)l[p]=u[p];return u}r.startsWith("/")||(r="/"+r);let c=s;const d=r.split("/");for(let u=1;u<d.length;++u){const p=d[u];c=c==null?void 0:c[p]}if(c){const u=Ds(s,c);if(a&&(u.__editor=a),o)for(const p in u)l[p]=u[p];return u}console.error("Cannot find",e)}function mV(t,e,n){return Array.isArray(e)?e.map((i=>mV(t,i))):e&&typeof e=="object"?Ds(t,e):e}function Ds(t,e,n){const i=Km.get(e);if(i)return i;let o={},r=!1,s=!1;function l(){s||(s=!0,Km.set(e,o))}function a(){r&&(r=!1,o=Object.create(o))}e.$ref&&(o=Cc(t,e.$ref),r=!0),e.$description&&(a(),o.description=fV(t,e.$description));for(const c in e)c==="$ref"||c==="$description"||(a(),l(),o[c]=mV(t,e[c]));return l(),o}const Gm=new Map;function Ote(t){const e=Gm.get(t);if(e)return e;const n=wa[t].default;if(n){const i=gV(n);if(i)return Gm.set(t,i),i}console.error("Cannot resolve",t)}function gV(t){return Ds(t,t)}function Mte(t,e){return Object.keys(t).reduce(((n,i)=>(i!==e&&(n[i]=t[i]),n)),{})}function Hl(t,e,n="",i=!1){let o=t;t.allOf&&i&&(o=dr(o));const r=o.allOf?o.allOf[o.allOf.length-1].properties:o.anyOf?{}:o.properties;if(r)return Object.keys(r).filter((s=>{var a;return!(s==="type"&&r[s].type==="string"&&Array.isArray(r[s].enum)&&r[s].enum.length===1)&&!(r[s].type==="array"&&((a=r[s].items)!=null&&a.__isDiv))&&!r[s].__isDiv})).map((s=>hV(s,r[s],e==null?void 0:e[s],n+s))).filter(kr)}function dr(t){let e=t;return t!=null&&t.allOf&&(e={},[...t.allOf,Mte(t,"allOf")].forEach((n=>{let i=n;i.$ref&&(i=Ds(t,i));const o=e.properties&&i.properties?{...e.properties,...i.properties}:e.properties||i.properties;e={...e,...i,properties:o}}))),e}function hV(t,e,n,i=""){if(!e||(e=dr(e),!(e.type==="text"||e.type==="string"||e.type==="number"||e.type==="integer"||e.type==="array"||e.type==="object"&&(e.properties||e.additionalProperties)||e.anyOf||e.__editor==="boolean")))return;let r,s;if(e.type==="integer"?r="integer":e.type==="number"&&(r="number"),e.constraint&&(s=e.constraint),e.type==="array"&&e.items){let l=n;const a=dr(e.items);if(l){const d=a.anyOf;l=Array.isArray(l)?l.map(((u,p)=>{if(d){const _=d.find((m=>{var g,v,y,b;return((b=(y=(v=(g=dr(m))==null?void 0:g.properties)==null?void 0:v.type)==null?void 0:y.enum)==null?void 0:b[0])===u.type})),f=[{type:"select",name:"type",desc:e,prop:i+"["+p+"].type",value:u.type,options:d.map((m=>{var y,b,w;const g=dr(m),v=(w=(b=(y=g==null?void 0:g.properties)==null?void 0:y.type)==null?void 0:b.enum)==null?void 0:w[0];return{name:v,value:v}})),description:e.description}];if(_){const m=Hl(_,u,i+"["+p+"].",!0);m&&f.push(...m)}return f}else if(a.type==="object")return Hl(a,u,i+"["+p+"].",!0);return[hV("item",a,u,i+"["+p+"]")]})):[]}const c=a.type;return{type:"list",name:t,desc:e,prop:i,value:n,options:null,list:l,subtype:c,description:e.description}}if(e.type==="object"){const l=Hl(e,n,i+".",!0);return{type:"group",name:t,desc:e,prop:i,value:n,options:null,subprops:l,description:e.description,additionalProperties:e.additionalProperties}}if(e.anyOf){let l;const a=e.anyOf;if(n!=null&&n.type){const c=a.find((d=>{var u,p,_;return((_=(p=(u=d==null?void 0:d.properties)==null?void 0:u.type)==null?void 0:p.enum)==null?void 0:_[0])===n.type}));c&&(l=Hl(c,n,i+".",!0))}return{type:"group",name:t,desc:e,prop:i,value:n,options:a.map((c=>{var u;c=dr(c);const d=(u=c==null?void 0:c.properties)==null?void 0:u.type;if(d&&d.type==="string"&&Array.isArray(d.enum)&&d.enum.length===1&&typeof d.enum[0]=="string")return{name:d.enum[0],value:d.enum[0]};console.error("Unknown format",c)})).filter(kr),subprops:l,description:e.description}}return e.type==="string"&&e.enum?{type:"select",name:t,desc:e,prop:i,value:n,options:e.enum.map((l=>({name:l,value:l}))),description:e.description}:e.format==="boolean"||e.__editor==="boolean"?{type:"checkbox",name:t,desc:e,prop:i,value:n,description:e.description}:e.format==="color"?{type:"color",name:t,desc:e,prop:i,value:n,description:e.description}:{type:"text",name:t,desc:e,prop:i,value:n,flags:{subtype:r,constraint:s},description:e.description}}const Pte=(t,e)=>{let n=e;if(e!=null&&e.$ref){const i=pV.get(e.$ref);if(i)return{type:i};n=Cc(t,e.$ref)}if(n.type==="string"&&Array.isArray(n.enum)&&n.enum.length>1)return{type:"select",options:n.enum.map((i=>({rawName:i,value:i})))};if((n.type==="string"||n.type==="integer"||n.type==="number")&&!(n.type==="string"&&Array.isArray(n.enum)&&n.enum.length===1))return{type:n.type,constraint:n.constraint,supportsExpressions:n.supports_expressions??!0};if(n.type==="array"){let i=n.items;if(i!=null&&i.$ref&&(i=Cc(t,i.$ref)),i!=null&&i.__editor&&Um.has(i.__editor))return{type:Um.get(i.__editor)}}},cd=new Map,vV=new Map,vu=new Set;(_V("div").anyOf||[]).forEach((t=>{var o,r,s,l;const e=dr(gV(t)),n=(s=(r=(o=e==null?void 0:e.properties)==null?void 0:o.type)==null?void 0:r.enum)==null?void 0:s[0],i=(l=t.$ref)==null?void 0:l.replace(/\.json$/,"");if(n&&i){cd.set(n,i),vV.set(i,n);let a=!1;const c=new Set,d=(u,p,_)=>{if(u){if(Array.isArray(u))u.forEach(((f,m)=>{d(f)}));else if(typeof u=="object"){if(u.__isTooltip)return;if(u.__isDiv){a=!0;return}if(c.has(u))return;c.add(u);for(const f in u)d(u[f])}}};d(e),a||vu.add(n)}}));function Xm(t){var e;return(e=cd.get(t))==null?void 0:e.replace(/^div-/,"")}function Ite(t){return vV.get(t)}function jl(t){const e=cd.get(t);if(!e){console.error(`Unknown type ${t}`);return}return wa[e]}function Sl(t){return Gl(t)?vu.has(Ji[t].baseType||""):vu.has(t)}var i1,o1;for(const t in Ji){const e=Ji[t];let n=e.template.type;for(;typeof n=="string"&&!cd.has(n);)n=(o1=(i1=Ji[n])==null?void 0:i1.template)==null?void 0:o1.type;typeof n=="string"&&n?e.baseType=n:console.error("unknown base type",t)}function zc(t,e){if(t===e)return!0;for(const n of t.childs)if(zc(n,e))return!0;return!1}function cs(t,e){const n=[t];for(;n.length;){const i=n.shift();e(i),n.push(...i.childs)}}function no(t,e){let n;return cs(t,(i=>{i.id===e&&(n=i)})),n}function dd(t,e){const n={...t,props:{json:{...t.props.json,items:void 0}},parent:e||void 0};return n.childs=t.childs.map((i=>dd(i,n))),n}function Qu(t,e,n=!0){var r;const i=no(t,e);if(!i||!i.parent)return[];let o=[{insertIndex:i.parent.childs.indexOf(i),parentId:i.parent.id,leaf:dd(i)}];return i.parent.childs=i.parent.childs.filter((s=>s.id!==e)),n&&!i.parent.childs.length&&((r=i.parent)!=null&&r.parent)&&(o=[...o,...Qu(t,i.parent.id)]),o}function Dte(t){let e=0,n=t;for(;n.parentElement;)++e,n=n.parentElement;return e}function Vte(t){let e=t,n=0;for(;e;)e=e.parent,++n;return n}function Lte(t){const e=new Map,n=new Map;return cs(t,(i=>{i.props.node&&(e.set(i.props.node,i.id),Sl(i.props.json.type)&&n.set(i.props.node,i))})),{map:e,simpleMap:n}}function Vs(t,e=2){return t===void 0?"":t.toFixed(e).replace(/(\.\d+?)0+$/,"$1").replace(/\.0$/,"")}function La(t,e,n){let i,o;return t.forEach((r=>{if(r.type===e.type){const s=Math.abs(r.val-e.val);s<=n&&(!o||o>s)&&(o=s,i=r)}})),i}function Fte(t){return t instanceof HTMLElement}class Nte{constructor(e){on(this,"params");on(this,"animItem");on(this,"wrapper");on(this,"alive");this.params=e,this.alive=!1}loadData(){if(this.params.lottie_json)return Promise.resolve(this.params.lottie_json);const e=this.params.lottie_url;return e?fetch(e).then((n=>{if(!n.ok)throw new Error("Response is not ok");return n.json()})):Promise.reject("Missing data")}getRatio(e){var i;const n=(i=e.getComponentProperty("aspect"))==null?void 0:i.ratio;if(typeof n=="number"&&n>0)return n}getScale(e){const n=e.getComponentProperty("scale");if(n==="stretch")return{attribute:"none",noScale:!1,hAlign:"center",vAlign:"center"};let i=e.getComponentProperty("content_alignment_horizontal"),o=e.getComponentProperty("content_alignment_vertical"),r="Mid",s="Mid";return i==="start"?i=e.direction==="ltr"?"start":"end":i==="end"?i=e.direction==="ltr"?"end":"start":i==="left"?i="start":i==="right"?i="end":i="center",o==="top"?o="start":o==="bottom"?o="end":o="center",n==="no_scale"?{attribute:"xMidYMid meet",noScale:!0,hAlign:i,vAlign:o}:(i==="start"?r="Min":i==="end"&&(r="Max"),o==="start"?s="Min":o==="end"&&(s="Max"),n==="fit"||n==="no_scale"?{attribute:`x${r}Y${s} meet`,noScale:!1,hAlign:i,vAlign:o}:{attribute:`x${r}Y${s} slice`,noScale:!1,hAlign:i,vAlign:o})}getSvg(){var n;const e=(n=this.wrapper)==null?void 0:n.firstElementChild;if(e instanceof SVGElement)return e}setWrapperScale(e){this.wrapper&&(e.noScale?(this.wrapper.style.display="flex",this.wrapper.style.alignItems=e.vAlign,this.wrapper.style.justifyContent=e.hAlign):(this.wrapper.style.display="",this.wrapper.style.alignItems="",this.wrapper.style.justifyContent=""))}setSvgScale(e){const n=this.getSvg();n&&(e.noScale?(n.style.flex="0 0 auto",n.style.width="",n.style.height=""):(n.style.flex="",n.style.width="100%",n.style.height="100%"))}mountView(e,n){if(!this.params.lottie_url&&!this.params.lottie_json)return;this.alive=!0;const i=Array.from(e.children).filter(Fte);i.forEach((c=>{c.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%";const r=this.getRatio(n),s=this.getScale(n);r&&(this.wrapper.style.aspectRatio=String(r)),this.setWrapperScale(s),e.appendChild(this.wrapper);const l=Number(this.params.repeat_count||-1),a=()=>{var d,u;(d=this.animItem)==null||d.destroy(),i.forEach((p=>{p.style.display=""})),e.removeAttribute("data-lottie"),this.wrapper&&((u=this.wrapper.parentNode)==null||u.removeChild(this.wrapper),this.wrapper=void 0);const c=new Error("Failed to load lottie animation");c.level="error",c.additional={url:this.params.lottie_url},n.logError(c)};Promise.all([import("./lottieApi.js"),this.loadData()]).then((([{loadAnimation:c},d])=>{if(!this.alive)return;const u=this.animItem=c({container:o,animationData:d,renderer:"svg",loop:!0,rendererSettings:{preserveAspectRatio:s.attribute}});if(this.setSvgScale(s),this.animItem.addEventListener("data_failed",a),this.params.repeat_mode==="reverse"||l!==-1){let p=1,_=0;u.addEventListener("loopComplete",(()=>{++_,l!==-1&&_===l?(u.stop(),u.goToAndStop(u.totalFrames,!0)):(this.params.repeat_mode==="reverse"&&(p=p===-1?1:-1,u.setDirection(p)),u.goToAndPlay(p===1?0:u.totalFrames,!0))}))}})).catch(a)}updateView(e,n){if(!this.wrapper)return;const i=this.getRatio(n);i&&(this.wrapper.style.aspectRatio=String(i));const o=this.getSvg();if(o){const r=this.getScale(n);this.setWrapperScale(r),this.setSvgScale(r),o.setAttribute("preserveAspectRatio",r.attribute)}}unmountView(e,n){var i,o;this.alive=!1,(i=this.animItem)==null||i.destroy(),this.wrapper&&((o=this.wrapper.parentNode)==null||o.removeChild(this.wrapper),this.wrapper=void 0),e.removeAttribute("data-lottie")}}function bV(t){const e=[];if(t&&typeof t=="object")for(const n in t){const i=t[n];if(n.startsWith("$"))if(typeof i=="string")e.push(i);else throw new Error("Template field should be used as string");else i&&typeof i=="object"&&e.push(...bV(i))}return e}function qte(t){if(!(t!=null&&t.templates&&typeof t.templates=="object"))return[];const e=new Map;for(const s in t.templates)if(s!=="__loc")try{const l=t.templates[s],a=bV(l);e.set(s,a)}catch(l){return[{message:l.message,stack:(l.stack||"").split(`\n`),level:"error"}]}const n=[],i=new Map,o=(s,l)=>{if(!l||!("type"in l)||typeof l.type!="string")throw new Error('Cannot process template without "type"');const a=e.get(s);if(!a)throw new Error("Wrong template");return l.type in t.templates?o(l.type,t.templates[l.type]).concat(a):a};for(const s in t.templates)if(s!=="__loc")try{const l=t.templates[s];i.set(s,o(s,l))}catch(l){return[{message:l.message,stack:(l.stack||"").split(`\n`),level:"error"}]}const r=(s,l)=>{const a=l.type,c=i.get(a);if(c)for(const d in l)d!=="type"&&(c.includes(d)?n.push({message:`Template "${s}" -> property "${d}": Transitive dependencies is not supported in DivKit for Android and iOS`,stack:[],level:"error"}):d.startsWith("$")&&c.includes(d.slice(1))&&n.push({message:`Template "${s}" -> property "${d.slice(1)}": Transitive dependencies is not supported in DivKit for Android and iOS`,stack:[],level:"error"}));for(const d in l)l[d]&&typeof l[d]=="object"&&r(s,l[d])};for(const s in t.templates){const l=t.templates[s];r(s,l)}return n}function ca(t,e){if(typeof t!=typeof e)return!1;if(typeof t!="object"||!t||!e)return t===e;for(const n in t)if(t.hasOwnProperty(n)&&!e.hasOwnProperty(n)||!ca(t[n],e[n]))return!1;for(const n in e)if(e.hasOwnProperty(n)&&!t.hasOwnProperty(n))return!1;return!0}function bu(t){const e={};for(const n in t)n!=="start"&&n!=="end"&&(e[n]=t[n]);return e}function Rte(t,e){const n=bu(t),i=bu(e);return ca(n,i)}function Ls(t){if(t!==void 0)return JSON.parse(JSON.stringify(t))}function As(t,e){const n=e.split(/\.|\[([^\]]+)]/g);let i=t,o=0;for(;o<n.length;){const r=n[o];if(o+1===n.length)return i[r];if(!i[r])return;if(i=i[r],++o,n[o]!==void 0){const s=n[o];if(o+2===n.length)return i[s];if(!i[s])return;i=i[s],o+=3}else++o}}function Tl(t,e,n){const i=e.split(/\.|\[([^\]]+)]/g),o=[];let r=t;const s=()=>{for(let a=o.length-1;a>=0;--a){const{obj:c,prop:d}=o[a],u=c[d];if(Array.isArray(u)&&!u.length)delete c[d];else if(typeof u=="object"&&u!==null&&!Object.keys(u).length)delete c[d];else break}};let l=0;for(;l<i.length;){const a=i[l];if(l+1===i.length)!n&&n!==0&&n!==!1?(Array.isArray(r)?r.splice(Number(i[l]),1):delete r[a],s()):r[a]=n,l===0&&r[a]!==void 0&&(r[a]=Ls(r[a])),++l;else if(r[a]=r[a]||(i[l+1]!==void 0?[]:{}),l===0&&r[a]!==void 0&&(r[a]=Ls(r[a])),o.push({obj:r,prop:i[l]}),r=r[a],++l,i[l]!==void 0){const c=i[l];if(l+2===i.length){n!==void 0?r[c]=n:(Array.isArray(r)?r.splice(Number(i[l]),1):delete r[c],s());break}else r[c]=r[c]||{},o.push({obj:r,prop:i[l]}),r=r[c],l+=3}else++l}}function Bte(t){const e=t.getBoundingClientRect(),n={top:e.top,right:e.right,bottom:e.bottom,left:e.left};let i=t.parentElement;for(;i&&i!==document.documentElement;){if(getComputedStyle(i).overflow!=="visible"){const r=i.getBoundingClientRect();n.left=Math.max(n.left,r.left),n.right=Math.min(n.right,r.right),n.top=Math.max(n.top,r.top),n.bottom=Math.min(n.bottom,r.bottom)}i=i.parentElement}return DOMRect.fromRect({x:n.left,y:n.top,width:n.right-n.left,height:n.bottom-n.top})}class hr{constructor(){on(this,"_ts");this._ts=Date.now()}canMerge(e){return e.constructor===this.constructor&&Math.abs(this._ts-e._ts)<1e4}}class da extends hr{constructor(n){super();on(this,"config");this.config=n}undo(n){const i=this.config.leaf.id,o=no(wn(n.tree),i);o!=null&&o.parent&&(o.parent.childs=o.parent.childs.filter((r=>r.id!==i)))}redo(n){const i=no(wn(n.tree),this.config.parentId);if(!i)return;const o=dd(this.config.leaf);o.parent=i,i.childs.splice(this.config.insertIndex,0,o)}canMerge(n){return!1}mergeMeWith(n){throw new Error("Cannot merge AddLeafCommand")}toLangKey(){return"commands.add_component"}}class Jl extends hr{constructor(n,i){super();on(this,"config");on(this,"changes");on(this,"cascadeRemoval");this.config=i,this.cascadeRemoval=[],i.changes&&(this.changes=i.changes.map((o=>{const r=no(wn(n.tree),i.leafId);if(!r)throw new Error("Missing leaf "+i.leafId);return{leafId:i.leafId,property:o.property,oldValue:Ls(As(r.props.json,o.property)),newValue:Ls(o.value)}})))}undo(n){const i=wn(n.tree),o=no(i,this.config.newParentId);if(o){o.childs=o.childs.filter((r=>r.id!==this.config.leafId));for(let r=this.cascadeRemoval.length-1;r>=0;--r){const s=this.cascadeRemoval[r],l=no(i,s.parentId);if(l){const a=s.leaf;l.childs.splice(s.insertIndex,0,a),a.parent=l}}if(this.changes){const r=no(i,this.config.leafId);r&&this.changes.forEach((s=>{Tl(r.props.json,s.property,s.oldValue)}))}}}redo(n){var l;const i=wn(n.tree),o=no(i,this.config.newParentId),r=no(i,this.config.leafId);if(!o||!r)return;const s=dd(r);this.cascadeRemoval=Qu(i,this.config.leafId,((l=r.parent)==null?void 0:l.id)!==o.id),s.parent=o,o.childs.splice(this.config.insertIndex,0,s),this.changes&&this.changes.forEach((a=>{Tl(s.props.json,a.property,a.newValue)}))}canMerge(n){return!1}mergeMeWith(n){throw new Error("Cannot merge MoveLeafCommand")}toLangKey(){return"commands.move_component"}}class ir extends hr{constructor(n,i){super();on(this,"changes");this.changes=i.map((o=>{const r=no(n,o.leafId);if(!r)throw new Error("Missing leaf "+o.leafId);return{leafId:o.leafId,property:o.property,oldValue:Ls(As(r.props.json,o.property)),newValue:Ls(o.value)}}))}undo(n){for(let i=this.changes.length-1;i>=0;--i){const o=this.changes[i],r=no(wn(n.tree),o.leafId);if(!r)throw new Error("Missing leaf "+o.leafId);Tl(r.props.json,o.property,o.oldValue),r===wn(n.selectedLeaf)&&n.selectedLeaf.set(r)}}redo(n){this.changes.forEach((i=>{const o=no(wn(n.tree),i.leafId);if(!o)throw new Error("Missing leaf "+i.leafId);Tl(o.props.json,i.property,i.newValue),o===wn(n.selectedLeaf)&&n.selectedLeaf.set(o)}))}canMerge(n){if(!super.canMerge(n))return!1;const i=n;return this.changes.length===1&&i.changes.length===1&&this.changes[0].leafId===i.changes[0].leafId&&this.changes[0].property===i.changes[0].property}mergeMeWith(n){const i=this.changes.concat(n.changes);let o=i[0];const r=[o];for(let s=1;s<i.length;++s){const l=i[s];o.leafId===l.leafId&&o.property===l.property?o.newValue=l.newValue:(o=l,r.push(o))}this.changes=r}toLangKey(){return"commands.set_property"}}function ls(t){return t/180*Math.PI}function Hte(t){const{type:e,value:n}=t;switch(e){case"number":case"integer":const i=Number(n);if(Number.isNaN(i))throw new Error("Value is NaN");if(e==="integer"&&i!==Math.floor(i))throw new Error("Integer cannot have fractional part");return i;case"dict":case"array":const o=JSON.parse(n);if(e==="array"&&!Array.isArray(o))throw new Error("Not an array");if(e==="dict"&&!(typeof o=="object"&&o&&!Array.isArray(o)))throw new Error("Not an object");return o;case"boolean":if(n==="true")return!0;if(n==="false")return!1;throw new Error("Not a boolean")}return n}const Jte="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='28'%20height='28'%20fill='none'%3e%3cpath%20fill='%23fff'%20fill-rule='evenodd'%20d='M8%2017.5a.5.5%200%200%201-.5-.5v-6a.5.5%200%200%201%201%200v2.5h11V11a.5.5%200%200%201%201%200v6a.5.5%200%200%201-1%200v-2.5h-11V17a.5.5%200%200%201-.5.5Z'%20clip-rule='evenodd'/%3e%3c/svg%3e",Ute="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='28'%20height='28'%20fill='none'%3e%3cpath%20stroke='%23fff'%20stroke-linecap='round'%20d='m10.5%2018.5-4.146-4.146a.5.5%200%200%201%200-.708L10.5%209.5m7%209%204.146-4.146a.5.5%200%200%200%200-.708L17.5%209.5M7%2014h14'/%3e%3c/svg%3e",Wte="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='28'%20height='28'%20fill='none'%3e%3cpath%20stroke='%23fff'%20stroke-linecap='round'%20d='M10%208H8a2%202%200%200%200-2%202v2m4%208H8a2%202%200%200%201-2-2v-2m12-8h2a2%202%200%200%201%202%202v2m-4%208h2a2%202%200%200%200%202-2v-2'/%3e%3crect%20width='9'%20height='5'%20x='9.5'%20y='11.5'%20stroke='%23fff'%20rx='.5'/%3e%3c/svg%3e",Kte="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='28'%20height='28'%20fill='none'%3e%3cpath%20fill='%23fff'%20fill-rule='evenodd'%20d='M10.5%208a.5.5%200%200%201%20.5-.5h6a.5.5%200%200%201%200%201h-2.5v11H17a.5.5%200%200%201%200%201h-6a.5.5%200%200%201%200-1h2.5v-11H11a.5.5%200%200%201-.5-.5Z'%20clip-rule='evenodd'/%3e%3c/svg%3e",Yte="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='28'%20height='28'%20fill='none'%3e%3cpath%20stroke='%23fff'%20stroke-linecap='round'%20d='m9.5%2010.5%204.146-4.146a.5.5%200%200%201%20.708%200L18.5%2010.5m-9%207%204.146%204.146a.5.5%200%200%200%20.708%200L18.5%2017.5M14%207v14'/%3e%3c/svg%3e",Gte="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='28'%20height='28'%20fill='none'%3e%3cpath%20stroke='%23fff'%20stroke-linecap='round'%20d='M20%2010V8a2%202%200%200%200-2-2h-2m-8%204V8a2%202%200%200%201%202-2h2m8%2012v2a2%202%200%200%201-2%202h-2m-8-4v2a2%202%200%200%200%202%202h2'/%3e%3crect%20width='9'%20height='5'%20x='9.5'%20y='-16.5'%20stroke='%23fff'%20rx='.5'%20transform='rotate(90)'/%3e%3c/svg%3e",yV=new Set(["image","gif","text","separator","container","grid","gallery","pager","tabs","state","custom","indicator","slider","input","select","video","switch"]),Xte=new Set(["container","grid","gallery","pager","tabs","state","custom"]),nr=[{type:"group",title:"baseProps.title",list:[{type:"split",list:[{name:"props.width",prop:"width.type",default:"match_parent",type:"select",options:[{name:"props.size_fixed",value:"fixed",icon:Jte},{name:"props.size_match_parent",value:"match_parent",icon:Ute},{name:"props.size_wrap_content",value:"wrap_content",icon:Wte,show:{not:{or:[{prop:"type",equal:"image"},{prop:"type",equal:"gif"}]}}}],siblings:[{prop:"width.value",type:"integer",min:0,max:9999,inlineLabel:"W",show:{prop:"width.type",equal:"fixed"}},{label:"props.size_constrained",prop:"width.constrained",type:"boolean",theme:"sibling",related:[{prop:"width.type",value:"wrap_content"}],show:{prop:"width.type",equal:"wrap_content"}},{type:"integer",min:0,max:9999,sizeValue:"width",enabled:!1,inlineLabel:"W",show:{or:[{prop:"width.type",equal:"match_parent"},{prop:"width",isEmpty:!0}]}},{name:"props.column_span",prop:"column_span",type:"integer",min:1,max:1e3,show:{prop:"$parent.type",equal:"grid"},enableSources:!0}]},{name:"props.height",prop:"height.type",default:"wrap_content",type:"select",options:[{name:"props.size_fixed",value:"fixed",icon:Kte},{name:"props.size_match_parent",value:"match_parent",icon:Yte},{name:"props.size_wrap_content",value:"wrap_content",icon:Gte,show:{not:{or:[{prop:"type",equal:"image"},{prop:"type",equal:"gif"}]}}}],siblings:[{prop:"height.value",type:"integer",min:0,max:9999,inlineLabel:"H",show:{prop:"height.type",equal:"fixed"}},{label:"props.size_constrained",prop:"height.constrained",type:"boolean",theme:"sibling",related:[{prop:"height.type",value:"wrap_content"}],show:{or:[{prop:"height.type",equal:"wrap_content"},{prop:"height.type",isEmpty:!0}]}},{type:"integer",min:0,max:9999,sizeValue:"height",enabled:!1,inlineLabel:"H",show:{prop:"height.type",equal:"match_parent"}},{name:"props.row_span",prop:"row_span",type:"integer",min:1,max:1e3,show:{prop:"$parent.type",equal:"grid"},enableSources:!0}]}]},{type:"alignment",name:"props.alignment",horizontalProp:"alignment_horizontal",verticalProp:"alignment_vertical",isSelfAlign:!0},{type:"split",list:[{name:"props.alpha",prop:"alpha",type:"percent",default:1,enableSources:!0},{name:"props.rotation",prop:"transform.rotation",type:"rotation",default:0,enableSources:!0}]},{name:"props.insets",type:"margins-paddings"},{name:"props.background",prop:"background",type:"background2"}]}],Zte={text:[...nr,{type:"group",title:"textProps.title",list:[{name:"props.text",prop:"text",type:"string",enableTanker:!0,enableSources:!0,default:"\0"},{type:"split",list:[{name:"props.font_size",prop:"font_size",type:"integer",min:1,max:1e3,enableSources:!0},{name:"props.line_height",prop:"line_height",type:"integer",min:0,max:1e3,enableSources:!0}]},{type:"split",list:[{name:"props.text_alignment_horizontal",prop:"text_alignment_horizontal",type:"text-align",enableSources:!0},{name:"textStyle",type:"text-styles"}]},{name:"props.font_weight",prop:"font_weight",type:"select",options:[{name:"props.font_weight_light",value:"light"},{name:"props.font_weight_normal",value:"regular"},{name:"props.font_weight_medium",value:"medium"},{name:"props.font_weight_bold",value:"bold"}],enableSources:!0},{name:"props.font_family",prop:"font_family",type:"select-font-family",show:{prop:"$fontFamily",equal:"yes"},enableSources:!0},{name:"props.text_color",prop:"text_color",type:"color",enableSources:!0}]},{type:"group",title:"props.actions",list:[{name:"props.actions",prop:"actions",type:"actions2",aloneProp:"action"}]}],image:[...nr,{type:"group",title:"imageProps.title",list:[{name:"props.image_url",prop:"image_url",type:"file",subtype:"image",enableSources:!0,enablePerTheme:!0},{name:"props.preview",prop:"preview",type:"file",subtype:"image_preview",enableSources:!0,enablePerTheme:!0},{name:"props.high_priority_preview_show",prop:"high_priority_preview_show",type:"boolean",enableSources:!0},{name:"props.image_scale",prop:"scale",type:"select",default:"fill",options:[{name:"props.scale_fit",value:"fit"},{name:"props.scale_fill",value:"fill"},{name:"props.scale_no_scale",value:"no_scale"},{name:"props.scale_stretch",value:"stretch"}],enableSources:!0},{name:"props.image_alignment",type:"alignment",horizontalProp:"content_alignment_horizontal",verticalProp:"content_alignment_vertical",enableSources:!0}]}],gif:[...nr,{type:"group",title:"imageProps.title",list:[{name:"props.image_url",prop:"gif_url",type:"file",subtype:"image",enableSources:!0,enablePerTheme:!0},{name:"props.preview",prop:"preview",type:"file",subtype:"image_preview",enableSources:!0,enablePerTheme:!0},{name:"props.image_scale",prop:"scale",type:"select",default:"fill",options:[{name:"props.scale_fit",value:"fit"},{name:"props.scale_fill",value:"fill"},{name:"props.scale_no_scale",value:"no_scale"},{name:"props.scale_stretch",value:"stretch"}],enableSources:!0},{name:"props.image_alignment",type:"alignment",horizontalProp:"content_alignment_horizontal",verticalProp:"content_alignment_vertical",enableSources:!0}]}],video:[...nr,{type:"group",title:"videoProps.title",list:[{name:"props.video_sources",prop:"video_sources",type:"video_sources"},{name:"props.preview",prop:"preview",type:"file",generateFromVideoProperty:"video_sources",subtype:"image_preview",enableSources:!0,enablePerTheme:!0},{name:"props.image_scale",prop:"scale",type:"select",default:"fit",options:[{name:"props.scale_fit",value:"fit"},{name:"props.scale_fill",value:"fill"},{name:"props.scale_no_scale",value:"no_scale"}],enableSources:!0},{name:"props.video_repeatable",prop:"repeatable",type:"boolean",enableSources:!0},{name:"props.video_autostart",prop:"autostart",type:"boolean",enableSources:!0},{name:"props.video_muted",prop:"muted",type:"boolean",enableSources:!0}]}],container:[...nr,{type:"group",title:"containerProps.title",list:[{name:"props.orientation",prop:"orientation",type:"select",default:"vertical",options:[{name:"props.orientation_horizontal",value:"horizontal"},{name:"props.orientation_vertical",value:"vertical"},{name:"props.orientation_overlap",value:"overlap"}],enableSources:!0},{name:"props.content_alignment",type:"alignment",horizontalProp:"content_alignment_horizontal",verticalProp:"content_alignment_vertical",orientationProp:"orientation",isContent:!0}]}],grid:[...nr,{type:"group",title:"gridProps.title",list:[{name:"props.column_count",prop:"column_count",type:"integer",min:1,max:1e3,enableSources:!0},{name:"props.content_alignment",type:"alignment",horizontalProp:"content_alignment_horizontal",verticalProp:"content_alignment_vertical",orientationProp:"orientation",isContent:!0}]}],gallery:[...nr,{type:"group",title:"galleryProps.title",list:[{name:"props.orientation",prop:"orientation",type:"select",default:"horizontal",options:[{name:"props.orientation_horizontal",value:"horizontal"},{name:"props.orientation_vertical",value:"vertical"}],enableSources:!0},{name:"props.cross_content_alignment",prop:"cross_content_alignment",type:"select",options:[{name:"props.orientation_start",value:"start"},{name:"props.orientation_center",value:"center"},{name:"props.orientation_end",value:"end"}],enableSources:!0},{type:"integer",prop:"item_spacing",min:0,max:9999,name:"props.spacing",enableSources:!0}]}],separator:[...nr,{type:"group",title:"separatorProps.title",list:[{name:"props.orientation",prop:"delimiter_style.orientation",type:"select",default:"horizontal",options:[{name:"props.orientation_horizontal",value:"horizontal"},{name:"props.orientation_vertical",value:"vertical"}],enableSources:!0},{name:"props.separator_color",prop:"delimiter_style.color",type:"color",default:"#000",enableSources:!0}]}],input:[...nr,{type:"group",title:"a11yProps.title",list:[{name:"props.a11y_description",prop:"accessibility.description",type:"string",enableSources:!0}]},{type:"group",title:"inputProps.title",list:[{name:"props.text_variable",prop:"text_variable",type:"variable-name",required:!0},{name:"props.keyboard_type",prop:"keyboard_type",type:"select",default:"multi_line_text",options:[{name:"props.keyboard_single_line_text",value:"single_line_text"},{name:"props.keyboard_multi_line_text",value:"multi_line_text"},{name:"props.keyboard_phone",value:"phone"},{name:"props.keyboard_number",value:"number"},{name:"props.keyboard_email",value:"email"},{name:"props.keyboard_uri",value:"uri"},{name:"props.keyboard_password",value:"password"}],enableSources:!0},{name:"props.max_length",type:"integer",min:0,max:99999,enableSources:!0},{type:"split",list:[{name:"props.font_size",prop:"font_size",type:"integer",min:1,max:1e3,enableSources:!0},{name:"props.line_height",prop:"line_height",type:"integer",min:0,max:1e3,enableSources:!0}]},{name:"props.text_color",prop:"text_color",type:"color",enableSources:!0},{name:"props.hint_text",prop:"hint_text",type:"string",enableSources:!0}]}],select:[...nr,{type:"group",title:"a11yProps.title",list:[{name:"props.a11y_description",prop:"accessibility.description",type:"string",enableSources:!0}]},{type:"group",title:"selectProps.title",list:[{name:"props.select_options",prop:"options",type:"select-options"},{name:"props.text_variable",prop:"value_variable",type:"variable-name",required:!0},{type:"split",list:[{name:"props.font_size",prop:"font_size",type:"integer",min:1,max:1e3,enableSources:!0},{name:"props.line_height",prop:"line_height",type:"integer",min:0,max:1e3,enableSources:!0}]},{name:"props.text_color",prop:"text_color",type:"color",enableSources:!0},{name:"props.hint_text",prop:"hint_text",type:"string",enableSources:!0}]}],switch:[...nr,{type:"group",title:"a11yProps.title",list:[{name:"props.a11y_description",prop:"accessibility.description",type:"string",enableSources:!0}]},{type:"group",title:"switchProps.title",list:[{name:"props.text_variable",prop:"is_on_variable",type:"variable-name",required:!0},{name:"props.is_enabled",prop:"is_enabled",type:"boolean",default:!0,enableSources:!0},{name:"props.on_color",prop:"on_color",type:"color",enableSources:!0}]}]},xte=[{name:"props.background",prop:"background",type:"background2"}];function Qte(t,e){const n=new Map;let i=e,o;const r=new Set,s=new Set,l=t.getBaseType(i);if(!l)return[];for(;;){if(r.has(i))return[];if(r.add(i),o=t.userTemplates.get(i),!o)break;if(i!==e&&i!==l)for(const p in o)p!=="type"&&s.add(p);const c=jl(l);if(!c)break;const d=dr(c.default),u=(p,_,f)=>{var m,g,v;if(typeof p=="object"&&p)for(const y in p){let b;const w=y.startsWith("$")?y.slice(1):y;if(_!=null&&_.properties&&w in _.properties?b=_.properties[w]:_!=null&&_.allOf?b=(m=dr(_).properties)==null?void 0:m[w]:_!=null&&_.anyOf&&"type"in p&&(b=(v=(g=_.anyOf.find((A=>{var j,T,E;return((E=(T=(j=A.properties)==null?void 0:j.type)==null?void 0:T.enum)==null?void 0:E[0])===p.type})))==null?void 0:g.properties)==null?void 0:v[w]),!b)return;const k=p[y];if(b&&f&&y.startsWith("$")&&typeof k=="string"){const A=Pte(_,b);A&&n.set(k,A)}if(Array.isArray(k)){const A=(b==null?void 0:b.type)==="array"&&b.items&&Ds(_,b.items);k.forEach((j=>{let T=f,E=A;if(A!=null&&A.__isDiv){if(T=t.getBaseType(j.type),!T)return;const O=jl(T);if(!O)return;E=dr(O.default)}u(j,E,T)}))}else u(k,b,f)}};if(u(o,d,l),typeof o.type!="string")break;i=o.type}for(const c in s)n.delete(c);const a=[];for(const[c,d]of n)a.push({templatePropertyName:c,editor:d});return a}function Od(t,e){const n=i=>{if(!(typeof i=="object"&&i))return i;const o=Array.isArray(i)?[]:{};for(const r in i){const s=r.startsWith("$"),l=s?r.slice(1):r,a=s?e.get(i[r]):i[r];o[l]=s?a:n(a)}return o};return n(t)}function wV(t,e){const n=[],i=[];let o;const r=t.getBaseType(e.type);if(!r||!Xte.has(r))return{childs:n,infos:i};const s=new Map,l=new Map;for(const m in e)e[m]&&typeof e[m]=="object"&&l.set(e[m],m);let a=e.type,c=e;const d=new Set;for(;;){if(d.has(a))return{childs:n,infos:i};if(d.add(a),r!==a)for(const m in c)m!=="type"&&s.set(m,c[m]);if(!t.userTemplates.has(a))break;c=t.userTemplates.get(a),a=c.type}if(!yV.has(a))return{childs:n,infos:i};const u=jl(r);if(!u)return{childs:n,infos:i};const p=dr(u.default),_=(m,g,v,y)=>{if(typeof m=="object"&&m)for(const b in m){let w;const k=b.startsWith("$"),A=k?b.slice(1):b;g!=null&&g.properties&&A in g.properties&&(w=g.properties[A]);const j=k?s.get(m[b]):m[b],T=y||l.get(j)||"";if(w){if(w!=null&&w.__isDiv){j&&T&&(n.push(Od(j,s)),i.push(Od(m,s)),o=T);continue}if(Array.isArray(j)){const E=(w==null?void 0:w.type)==="array"&&w.items&&Ds(g,w.items);j.forEach((O=>{let M=v,D=E;if(E!=null&&E.__isDiv&&T)n.push(Od(O,s)),i.push(null),o=T;else{if(E!=null&&E.__isDiv&&(M=t.getBaseType(O.type),M)){const R=jl(M);R&&(D=dr(R.default))}M&&_(O,D,M,T)}}))}else _(j,w,v,T)}}},f={...c};for(const[m,g]of s)f[m]=g;return _(f,p,r,""),{childs:n,infos:i,fromDataField:o}}function ep(t,e){if(!t.userTemplates.has(e.type))return!1;const n=wV(t,e);return!n.fromDataField&&!n.childs.length}function Md(t){const e=Array.from(t.children),n=[],i=[],o=[],r=[],s=t.getBoundingClientRect(),l=getComputedStyle(t),a=parseFloat(l.paddingLeft),c=parseFloat(l.paddingTop);e.forEach(((f,m)=>{const g=f.getBoundingClientRect(),v=getComputedStyle(f),y=Number(v.gridColumnStart)-1,b=Number(v.gridRowStart)-1,w=v.gridColumnEnd.startsWith("span ")?Number(v.gridColumnEnd.split(" ")[1]):1,k=v.gridRowEnd.startsWith("span ")?Number(v.gridRowEnd.split(" ")[1]):1,A=parseFloat(v.marginLeft),j=parseFloat(v.marginTop);let T=g.width+A+parseFloat(v.marginRight),E=g.height+j+parseFloat(v.marginBottom);if(m===0&&(T+=g.left-s.left-A-a,E+=g.top-s.top-j-c),w===1)n[y]=Math.max(n[y]||0,T);else for(let O=0;O<w;++O)o[y+O]=T/w;if(k===1)i[b]=Math.max(i[b]||0,E);else for(let O=0;O<k;++O)r[b+O]=E/k}));const d=Math.max(n.length,o.length),u=Math.max(i.length,r.length);for(let f=0;f<d;++f)!n[f]&&o[f]&&(n[f]=o[f]);for(let f=0;f<u;++f)!i[f]&&r[f]&&(i[f]=r[f]);const p=n.reduce(((f,m)=>(f.push((f[f.length-1]||0)+m),f)),[0]),_=i.reduce(((f,m)=>(f.push((f[f.length-1]||0)+m),f)),[0]);return{columnsStart:p,rowsStart:_,columns:n,rows:i,columnsCount:d,rowsCount:u}}function Zm(t){const e=getComputedStyle(t),n=Number(e.gridColumnStart)-1,i=Number(e.gridRowStart)-1,o=e.gridColumnEnd.startsWith("span ")?Number(e.gridColumnEnd.split(" ")[1]):1,r=e.gridRowEnd.startsWith("span ")?Number(e.gridRowEnd.split(" ")[1]):1;return{columnStart:n,columnSpan:o,rowStart:i,rowSpan:r}}function Fa(t){return t.reduce(((e,n,i)=>(e.push((i>0?e[i-1]:0)+n),e)),[])}function xm(t){return t.reduce(((e,n)=>e+n),0)}function ene(t){if(!t||!t.startsWith("matrix("))return 0;const e=t.slice(7).split(",");let n=Math.acos(Number(e[0]));return Number(e[1])<0&&(n=Math.PI*2-n),n}function tne(t,e,n){const i=t/2,o=e/2,r=Math.tan(-n),s=r*i,l=o/r;return Math.abs(s)<=o+1e-6?{from:{x:0,y:o-s},to:{x:t,y:o+s}}:{from:{x:i+l,y:e},to:{x:i-l,y:0}}}const{Map:nne,window:ine}=va;function Qm(t,e,n){const i=t.slice();return i[124]=e[n],i}function eg(t,e,n){const i=t.slice();return i[127]=e[n],i}function tg(t,e,n){const i=t.slice();return i[130]=e[n],i[132]=n,i}function ng(t,e,n){const i=t.slice();return i[133]=e[n],i[132]=n,i}function ig(t,e,n){const i=t.slice();return i[135]=e[n],i}function og(t){let e,n=`${t[6]}px`;return{c(){e=S("div"),h(e,"class","renderer__snap renderer__snap_vertical svelte-1yftjo9"),ke(e,"left",n)},m(i,o){F(i,e,o)},p(i,o){o[0]&64&&n!==(n=`${i[6]}px`)&&ke(e,"left",n)},d(i){i&&V(e)}}}function rg(t){let e,n=`${t[7]}px`;return{c(){e=S("div"),h(e,"class","renderer__snap renderer__snap_horizontal svelte-1yftjo9"),ke(e,"top",n)},m(i,o){F(i,e,o)},p(i,o){o[0]&128&&n!==(n=`${i[7]}px`)&&ke(e,"top",n)},d(i){i&&V(e)}}}function sg(t){let e,n=`${t[1].target.top}px`,i=`${t[1].target.left}px`,o=`${t[1].target.width}px`,r=`${t[1].target.height}px`,s,l,a=`${t[1].parent.top}px`,c=`${t[1].parent.left}px`,d=`${t[1].parent.width}px`,u=`${t[1].parent.height}px`,p,_,f=t[1].target.visibleText&&lg(t),m=ln(t[1].childs),g=[];for(let v=0;v<m.length;v+=1)g[v]=ag(ig(t,m,v));return{c(){e=S("div"),f&&f.c(),s=G(),l=S("div"),p=G();for(let v=0;v<g.length;v+=1)g[v].c();_=Vn(),h(e,"class","renderer__drag-target svelte-1yftjo9"),ke(e,"top",n),ke(e,"left",i),ke(e,"width",o),ke(e,"height",r),h(l,"class","renderer__drag-target-parent svelte-1yftjo9"),ke(l,"top",a),ke(l,"left",c),ke(l,"width",d),ke(l,"height",u)},m(v,y){F(v,e,y),f&&f.m(e,null),F(v,s,y),F(v,l,y),F(v,p,y);for(let b=0;b<g.length;b+=1)g[b]&&g[b].m(v,y);F(v,_,y)},p(v,y){if(v[1].target.visibleText?f?f.p(v,y):(f=lg(v),f.c(),f.m(e,null)):f&&(f.d(1),f=null),y[0]&2&&n!==(n=`${v[1].target.top}px`)&&ke(e,"top",n),y[0]&2&&i!==(i=`${v[1].target.left}px`)&&ke(e,"left",i),y[0]&2&&o!==(o=`${v[1].target.width}px`)&&ke(e,"width",o),y[0]&2&&r!==(r=`${v[1].target.height}px`)&&ke(e,"height",r),y[0]&2&&a!==(a=`${v[1].parent.top}px`)&&ke(l,"top",a),y[0]&2&&c!==(c=`${v[1].parent.left}px`)&&ke(l,"left",c),y[0]&2&&d!==(d=`${v[1].parent.width}px`)&&ke(l,"width",d),y[0]&2&&u!==(u=`${v[1].parent.height}px`)&&ke(l,"height",u),y[0]&2){m=ln(v[1].childs);let b;for(b=0;b<m.length;b+=1){const w=ig(v,m,b);g[b]?g[b].p(w,y):(g[b]=ag(w),g[b].c(),g[b].m(_.parentNode,_))}for(;b<g.length;b+=1)g[b].d(1);g.length=m.length}},d(v){v&&(V(e),V(s),V(l),V(p),V(_)),f&&f.d(),Bi(g,v)}}}function lg(t){let e,n=t[1].target.visibleText+"",i;return{c(){e=S("div"),i=xe(n),h(e,"class","renderer__drag-target-text svelte-1yftjo9")},m(o,r){F(o,e,r),$(e,i)},p(o,r){r[0]&2&&n!==(n=o[1].target.visibleText+"")&&at(i,n)},d(o){o&&V(e)}}}function ag(t){let e,n=`${t[135].top}px`,i=`${t[135].left}px`,o=`${t[135].width}px`,r=`${t[135].height}px`;return{c(){e=S("div"),h(e,"class","renderer__drag-target-child svelte-1yftjo9"),ke(e,"top",n),ke(e,"left",i),ke(e,"width",o),ke(e,"height",r)},m(s,l){F(s,e,l)},p(s,l){l[0]&2&&n!==(n=`${s[135].top}px`)&&ke(e,"top",n),l[0]&2&&i!==(i=`${s[135].left}px`)&&ke(e,"left",i),l[0]&2&&o!==(o=`${s[135].width}px`)&&ke(e,"width",o),l[0]&2&&r!==(r=`${s[135].height}px`)&&ke(e,"height",r)},d(s){s&&V(e)}}}function cg(t){let e=[],n=new nne,i,o=ln(t[11]);const r=s=>s[127].elem;for(let s=0;s<o.length;s+=1){let l=eg(t,o,s),a=r(l);n.set(a,e[s]=wg(a,l))}return{c(){for(let s=0;s<e.length;s+=1)e[s].c();i=Vn()},m(s,l){for(let a=0;a<e.length;a+=1)e[a]&&e[a].m(s,l);F(s,i,l)},p(s,l){l[0]&51984|l[1]&69120&&(o=ln(s[11]),e=Us(e,l,r,1,s,o,n,i.parentNode,gL,wg,i,eg))},d(s){s&&V(i);for(let l=0;l<e.length;l+=1)e[l].d(s)}}}function dg(t){let e,n,i,o,r,s,l,a,c=`${-t[127].margins.top}px`,d=`${-t[127].margins.left}px`;return{c(){e=Vr("svg"),n=Vr("defs"),i=Vr("pattern"),o=Vr("line"),r=Vr("path"),ke(o,"stroke","var(--accent-purple)"),h(o,"stroke-width","2px"),h(o,"y2","10"),h(i,"id","pattern"),h(i,"width","6"),h(i,"height","10"),h(i,"patternUnits","userSpaceOnUse"),h(i,"patternTransform","rotate(45 50 50)"),h(r,"fill","url(#pattern)"),h(r,"d",s=t[127].insets),h(r,"stroke-width","1"),ke(r,"stroke","var(--accent-purple)"),h(e,"class","renderer__highlight-insets svelte-1yftjo9"),h(e,"xmlns","http://www.w3.org/2000/svg"),h(e,"width",l=t[127].widthNum+t[127].margins.left+t[127].margins.right),h(e,"height",a=t[127].heightNum+t[127].margins.top+t[127].margins.bottom),ke(e,"top",c),ke(e,"left",d)},m(u,p){F(u,e,p),$(e,n),$(n,i),$(i,o),$(e,r)},p(u,p){p[0]&2048&&s!==(s=u[127].insets)&&h(r,"d",s),p[0]&2048&&l!==(l=u[127].widthNum+u[127].margins.left+u[127].margins.right)&&h(e,"width",l),p[0]&2048&&a!==(a=u[127].heightNum+u[127].margins.top+u[127].margins.bottom)&&h(e,"height",a),p[0]&2048&&c!==(c=`${-u[127].margins.top}px`)&&ke(e,"top",c),p[0]&2048&&d!==(d=`${-u[127].margins.left}px`)&&ke(e,"left",d)},d(u){u&&V(e)}}}function ug(t){let e,n,i=ln(t[127].grid.columns),o=[];for(let l=0;l<i.length;l+=1)o[l]=pg(ng(t,i,l));let r=ln(t[127].grid.rows),s=[];for(let l=0;l<r.length;l+=1)s[l]=_g(tg(t,r,l));return{c(){e=S("div");for(let l=0;l<o.length;l+=1)o[l].c();n=G();for(let l=0;l<s.length;l+=1)s[l].c();h(e,"class","renderer__highlight-grid svelte-1yftjo9"),ne(e,"renderer__highlight-grid_permanent",t[127].permanent)},m(l,a){F(l,e,a);for(let c=0;c<o.length;c+=1)o[c]&&o[c].m(e,null);$(e,n);for(let c=0;c<s.length;c+=1)s[c]&&s[c].m(e,null)},p(l,a){if(a[0]&2048|a[1]&1024){i=ln(l[127].grid.columns);let c;for(c=0;c<i.length;c+=1){const d=ng(l,i,c);o[c]?o[c].p(d,a):(o[c]=pg(d),o[c].c(),o[c].m(e,n))}for(;c<o.length;c+=1)o[c].d(1);o.length=i.length}if(a[0]&2048|a[1]&1024){r=ln(l[127].grid.rows);let c;for(c=0;c<r.length;c+=1){const d=tg(l,r,c);s[c]?s[c].p(d,a):(s[c]=_g(d),s[c].c(),s[c].m(e,null))}for(;c<s.length;c+=1)s[c].d(1);s.length=r.length}a[0]&2048&&ne(e,"renderer__highlight-grid_permanent",l[127].permanent)},d(l){l&&V(e),Bi(o,l),Bi(s,l)}}}function pg(t){let e,n=`${t[127].paddings.left+t[133]}px`,i,o;function r(...s){return t[73](t[132],...s)}return{c(){e=S("div"),h(e,"class","renderer__highlight-grid-column svelte-1yftjo9"),ke(e,"left",n)},m(s,l){F(s,e,l),i||(o=te(e,"pointerdown",Eo(zi(r))),i=!0)},p(s,l){t=s,l[0]&2048&&n!==(n=`${t[127].paddings.left+t[133]}px`)&&ke(e,"left",n)},d(s){s&&V(e),i=!1,o()}}}function _g(t){let e,n=`${t[127].paddings.top+t[130]}px`,i,o;function r(...s){return t[74](t[132],...s)}return{c(){e=S("div"),h(e,"class","renderer__highlight-grid-row svelte-1yftjo9"),ke(e,"top",n)},m(s,l){F(s,e,l),i||(o=te(e,"pointerdown",Eo(zi(r))),i=!0)},p(s,l){t=s,l[0]&2048&&n!==(n=`${t[127].paddings.top+t[130]}px`)&&ke(e,"top",n)},d(s){s&&V(e),i=!1,o()}}}function fg(t){let e,n,i,o,r,s=`${-t[127].margins.top}px`,l=`${-t[127].margins.left}px`;return{c(){e=Vr("svg"),n=Vr("path"),h(n,"d",i=t[127].gradientAngle),h(n,"stroke-width","3"),h(n,"stroke-dasharray","12 12"),ke(n,"stroke","var(--accent-purple)"),h(e,"class","renderer__highlight-gradient-angle svelte-1yftjo9"),h(e,"xmlns","http://www.w3.org/2000/svg"),h(e,"width",o=t[127].widthNum+t[127].margins.left+t[127].margins.right),h(e,"height",r=t[127].heightNum+t[127].margins.top+t[127].margins.bottom),ke(e,"top",s),ke(e,"left",l)},m(a,c){F(a,e,c),$(e,n)},p(a,c){c[0]&2048&&i!==(i=a[127].gradientAngle)&&h(n,"d",i),c[0]&2048&&o!==(o=a[127].widthNum+a[127].margins.left+a[127].margins.right)&&h(e,"width",o),c[0]&2048&&r!==(r=a[127].heightNum+a[127].margins.top+a[127].margins.bottom)&&h(e,"height",r),c[0]&2048&&s!==(s=`${-a[127].margins.top}px`)&&ke(e,"top",s),c[0]&2048&&l!==(l=`${-a[127].margins.left}px`)&&ke(e,"left",l)},d(a){a&&V(e)}}}function mg(t){let e,n,i,o,r,s,l;return{c(){e=S("div"),n=G(),i=S("div"),o=G(),r=S("div"),h(e,"class","renderer__highlight-border-bottom-right svelte-1yftjo9"),h(i,"class","renderer__highlight-border-right svelte-1yftjo9"),h(r,"class","renderer__highlight-border-bottom svelte-1yftjo9")},m(a,c){F(a,e,c),F(a,n,c),F(a,i,c),F(a,o,c),F(a,r,c),s||(l=[te(e,"pointerdown",Eo(zi(t[75]))),te(i,"pointerdown",Eo(zi(t[76]))),te(r,"pointerdown",Eo(zi(t[77])))],s=!0)},p:tn,d(a){a&&(V(e),V(n),V(i),V(o),V(r)),s=!1,Rn(l)}}}function gg(t){let e,n,i;return{c(){e=S("div"),h(e,"class","renderer__highlight-border-rotate svelte-1yftjo9")},m(o,r){F(o,e,r),n||(i=te(e,"pointerdown",Eo(zi(t[42]))),n=!0)},p:tn,d(o){o&&V(e),n=!1,i()}}}function hg(t){let e,n,i,o,r,s=`${-t[4]}deg`,l,a,c=Math.round(t[4])+"",d,u,p=`${54*Math.cos(ls(270-t[4]/2))}px`,_=`${54*Math.sin(ls(270-t[4]/2))}px`,f=`${-t[4]}deg`,m,g,v,y;return{c(){e=S("div"),n=G(),i=S("div"),o=G(),r=S("div"),l=G(),a=S("div"),d=xe(c),u=xe("°"),m=G(),g=Vr("svg"),v=Vr("path"),h(e,"class","renderer__highlight-rotate-center svelte-1yftjo9"),h(i,"class","renderer__highlight-rotate-axis svelte-1yftjo9"),h(r,"class","renderer__highlight-rotate-axis renderer__highlight-rotate-axis_vertical svelte-1yftjo9"),ke(r,"--rotation",s),h(a,"class","renderer__highlight-rotate-angle svelte-1yftjo9"),ke(a,"--offset-x",p),ke(a,"--offset-y",_),ke(a,"--rotation",f),h(v,"d",y="M 32 8 A 24 24 0 "+(t[4]>=180?1:0)+" 0 "+(32+24*Math.cos(ls(-t[4]-90)))+" "+(32+24*Math.sin(ls(-t[4]-90)))),h(v,"class","renderer__highlight-rotate-arc svelte-1yftjo9"),h(v,"stroke-width","3"),h(v,"stroke-linecap","round"),h(v,"fill","none"),h(g,"class","renderer__highlight-rotate-arc-wrapper svelte-1yftjo9"),h(g,"xmlns","http://www.w3.org/2000/svg"),h(g,"viewBox","0 0 64 64")},m(b,w){F(b,e,w),F(b,n,w),F(b,i,w),F(b,o,w),F(b,r,w),F(b,l,w),F(b,a,w),$(a,d),$(a,u),F(b,m,w),F(b,g,w),$(g,v)},p(b,w){w[0]&16&&s!==(s=`${-b[4]}deg`)&&ke(r,"--rotation",s),w[0]&16&&c!==(c=Math.round(b[4])+"")&&at(d,c),w[0]&16&&p!==(p=`${54*Math.cos(ls(270-b[4]/2))}px`)&&ke(a,"--offset-x",p),w[0]&16&&_!==(_=`${54*Math.sin(ls(270-b[4]/2))}px`)&&ke(a,"--offset-y",_),w[0]&16&&f!==(f=`${-b[4]}deg`)&&ke(a,"--rotation",f),w[0]&16&&y!==(y="M 32 8 A 24 24 0 "+(b[4]>=180?1:0)+" 0 "+(32+24*Math.cos(ls(-b[4]-90)))+" "+(32+24*Math.sin(ls(-b[4]-90))))&&h(v,"d",y)},d(b){b&&(V(e),V(n),V(i),V(o),V(r),V(l),V(a),V(m),V(g))}}}function vg(t){let e,n=t[127].visibleText+"",i;return{c(){e=S("div"),i=xe(n),h(e,"class","renderer__highlight-text svelte-1yftjo9")},m(o,r){F(o,e,r),$(e,i)},p(o,r){r[0]&2048&&n!==(n=o[127].visibleText+"")&&at(i,n)},d(o){o&&V(e)}}}function bg(t){let e,n,i,o,r=t[15](`file.${t[127].emptyFileType}_upload`)+"",s,l=`${-t[127].rotation}deg`,a,c;return{c(){e=S("button"),n=S("div"),i=G(),o=S("div"),s=xe(r),h(n,"class","renderer__upload-file-icon svelte-1yftjo9"),h(o,"class","renderer__upload-file-text svelte-1yftjo9"),h(e,"class","renderer__upload-file svelte-1yftjo9"),ne(e,"renderer__upload-file_big",t[127].widthNum>=220),ke(e,"--rotation",l)},m(d,u){F(d,e,u),$(e,n),$(e,i),$(e,o),$(o,s),a||(c=te(e,"click",t[47]),a=!0)},p(d,u){u[0]&34816&&r!==(r=d[15](`file.${d[127].emptyFileType}_upload`)+"")&&at(s,r),u[0]&2048&&ne(e,"renderer__upload-file_big",d[127].widthNum>=220),u[0]&2048&&l!==(l=`${-d[127].rotation}deg`)&&ke(e,"--rotation",l)},d(d){d&&V(e),a=!1,c()}}}function yg(t){let e,n=t[127].width+"",i,o,r=t[127].height+"",s,l,a=`${t[127].left+t[127].margins.left+t[127].widthNum/2-t[8]}px`,c=`${t[127].top+t[127].margins.top+t[127].heightNum-t[9]}px`;return{c(){e=S("div"),i=xe(n),o=xe("x"),s=xe(r),l=G(),h(e,"class","renderer__highlight-info svelte-1yftjo9"),ke(e,"left",a),ke(e,"top",c)},m(d,u){F(d,e,u),$(e,i),$(e,o),$(e,s),$(e,l)},p(d,u){u[0]&2048&&n!==(n=d[127].width+"")&&at(i,n),u[0]&2048&&r!==(r=d[127].height+"")&&at(s,r),u[0]&2304&&a!==(a=`${d[127].left+d[127].margins.left+d[127].widthNum/2-d[8]}px`)&&ke(e,"left",a),u[0]&2560&&c!==(c=`${d[127].top+d[127].margins.top+d[127].heightNum-d[9]}px`)&&ke(e,"top",c)},d(d){d&&V(e)}}}function wg(t,e){let n,i,o,r,s,l,a,c,d,u,p=`rotate(${e[127].rotation}deg)`,_=`${e[127].left+e[127].margins.left}px`,f=`${e[127].top+e[127].margins.top}px`,m=`${e[127].widthNum}px`,g=`${e[127].heightNum}px`,v=`${-e[9]}px`,y=`${-e[8]}px`,b,w,k=e[127].insets&&dg(e),A=e[127].grid&&!e[127].insets&&!e[14]&&ug(e),j=e[127].gradientAngle&&fg(e),T=e[127].permanent&&!e[127].isRoot&&!e[127].insets&&!e[14]&&mg(e),E=(e[127].permanent||e[127].isRotate)&&!e[127].isRoot&&!e[127].insets&&!e[14]&&gg(e),O=e[127].isRotate&&hg(e),M=e[127].visibleText&&vg(e),D=e[127].emptyFileType&&!e[14]&&bg(e),R=(e[127].permanent&&!e[127].insets||e[127].isResize)&&yg(e);return{key:t,first:null,c(){n=S("div"),i=S("div"),o=S("div"),k&&k.c(),r=G(),A&&A.c(),s=G(),j&&j.c(),l=G(),T&&T.c(),a=G(),E&&E.c(),c=G(),O&&O.c(),d=G(),M&&M.c(),u=G(),D&&D.c(),b=G(),R&&R.c(),w=Vn(),h(o,"class","renderer__highlight-border svelte-1yftjo9"),ne(o,"renderer__highlight-border_insets",e[127].insets),ke(o,"transform",p),h(i,"class","renderer__highlight svelte-1yftjo9"),ke(i,"left",_),ke(i,"top",f),ke(i,"width",m),ke(i,"height",g),ke(i,"margin-top",v),ke(i,"margin-left",y),h(n,"class","renderer__highlight-inner svelte-1yftjo9"),this.first=n},m(J,B){F(J,n,B),$(n,i),$(i,o),k&&k.m(o,null),$(o,r),A&&A.m(o,null),$(o,s),j&&j.m(o,null),$(o,l),T&&T.m(o,null),$(o,a),E&&E.m(o,null),$(o,c),O&&O.m(o,null),$(o,d),M&&M.m(o,null),$(o,u),D&&D.m(o,null),F(J,b,B),R&&R.m(J,B),F(J,w,B)},p(J,B){e=J,e[127].insets?k?k.p(e,B):(k=dg(e),k.c(),k.m(o,r)):k&&(k.d(1),k=null),e[127].grid&&!e[127].insets&&!e[14]?A?A.p(e,B):(A=ug(e),A.c(),A.m(o,s)):A&&(A.d(1),A=null),e[127].gradientAngle?j?j.p(e,B):(j=fg(e),j.c(),j.m(o,l)):j&&(j.d(1),j=null),e[127].permanent&&!e[127].isRoot&&!e[127].insets&&!e[14]?T?T.p(e,B):(T=mg(e),T.c(),T.m(o,a)):T&&(T.d(1),T=null),(e[127].permanent||e[127].isRotate)&&!e[127].isRoot&&!e[127].insets&&!e[14]?E?E.p(e,B):(E=gg(e),E.c(),E.m(o,c)):E&&(E.d(1),E=null),e[127].isRotate?O?O.p(e,B):(O=hg(e),O.c(),O.m(o,d)):O&&(O.d(1),O=null),e[127].visibleText?M?M.p(e,B):(M=vg(e),M.c(),M.m(o,u)):M&&(M.d(1),M=null),e[127].emptyFileType&&!e[14]?D?D.p(e,B):(D=bg(e),D.c(),D.m(o,null)):D&&(D.d(1),D=null),B[0]&2048&&ne(o,"renderer__highlight-border_insets",e[127].insets),B[0]&2048&&p!==(p=`rotate(${e[127].rotation}deg)`)&&ke(o,"transform",p),B[0]&2048&&_!==(_=`${e[127].left+e[127].margins.left}px`)&&ke(i,"left",_),B[0]&2048&&f!==(f=`${e[127].top+e[127].margins.top}px`)&&ke(i,"top",f),B[0]&2048&&m!==(m=`${e[127].widthNum}px`)&&ke(i,"width",m),B[0]&2048&&g!==(g=`${e[127].heightNum}px`)&&ke(i,"height",g),B[0]&512&&v!==(v=`${-e[9]}px`)&&ke(i,"margin-top",v),B[0]&256&&y!==(y=`${-e[8]}px`)&&ke(i,"margin-left",y),e[127].permanent&&!e[127].insets||e[127].isResize?R?R.p(e,B):(R=yg(e),R.c(),R.m(w.parentNode,w)):R&&(R.d(1),R=null)},d(J){J&&(V(n),V(b),V(w)),k&&k.d(),A&&A.d(),j&&j.d(),T&&T.d(),E&&E.d(),O&&O.d(),M&&M.d(),D&&D.d(),R&&R.d(J)}}}function $g(t){let e,n=ln(t[12]),i=[];for(let o=0;o<n.length;o+=1)i[o]=jg(Qm(t,n,o));return{c(){for(let o=0;o<i.length;o+=1)i[o].c();e=Vn()},m(o,r){for(let s=0;s<i.length;s+=1)i[s]&&i[s].m(o,r);F(o,e,r)},p(o,r){if(r[0]&4864){n=ln(o[12]);let s;for(s=0;s<n.length;s+=1){const l=Qm(o,n,s);i[s]?i[s].p(l,r):(i[s]=jg(l),i[s].c(),i[s].m(e.parentNode,e))}for(;s<i.length;s+=1)i[s].d(1);i.length=n.length}},d(o){o&&V(e),Bi(i,o)}}}function kg(t){let e,n,i=`${t[124].sub.left}px`,o=`${t[124].sub.top}px`,r=`${-t[9]}px`,s=`${-t[8]}px`;return{c(){e=S("div"),h(e,"class",n="renderer__highlight-distance renderer__highlight-distance_sub renderer__highlight-distance_orientation_"+t[124].sub.orientation+" svelte-1yftjo9"),ke(e,"left",i),ke(e,"top",o),ke(e,"width",t[124].sub.orientation==="horizontal"?`${t[124].sub.length}px`:""),ke(e,"height",t[124].sub.orientation==="horizontal"?"":`${t[124].sub.length}px`),ke(e,"margin-top",r),ke(e,"margin-left",s)},m(l,a){F(l,e,a)},p(l,a){a[0]&4096&&n!==(n="renderer__highlight-distance renderer__highlight-distance_sub renderer__highlight-distance_orientation_"+l[124].sub.orientation+" svelte-1yftjo9")&&h(e,"class",n),a[0]&4096&&i!==(i=`${l[124].sub.left}px`)&&ke(e,"left",i),a[0]&4096&&o!==(o=`${l[124].sub.top}px`)&&ke(e,"top",o),a[0]&4096&&ke(e,"width",l[124].sub.orientation==="horizontal"?`${l[124].sub.length}px`:""),a[0]&4096&&ke(e,"height",l[124].sub.orientation==="horizontal"?"":`${l[124].sub.length}px`),a[0]&512&&r!==(r=`${-l[9]}px`)&&ke(e,"margin-top",r),a[0]&256&&s!==(s=`${-l[8]}px`)&&ke(e,"margin-left",s)},d(l){l&&V(e)}}}function jg(t){let e,n,i,o=Vs(t[124].length)+"",r,s,l=`${t[124].left}px`,a=`${t[124].top}px`,c=`${-t[9]}px`,d=`${-t[8]}px`,u,p,_=t[124].sub&&kg(t);return{c(){e=S("div"),n=S("div"),i=S("div"),r=xe(o),u=G(),_&&_.c(),p=G(),h(i,"class","renderer__highlight-distance-info svelte-1yftjo9"),h(n,"class",s="renderer__highlight-distance renderer__highlight-distance_orientation_"+t[124].orientation+" svelte-1yftjo9"),ke(n,"left",l),ke(n,"top",a),ke(n,"width",t[124].orientation==="horizontal"?`${t[124].length}px`:""),ke(n,"height",t[124].orientation==="horizontal"?"":`${t[124].length}px`),ke(n,"margin-top",c),ke(n,"margin-left",d),h(e,"class","renderer__highlight-inner svelte-1yftjo9")},m(f,m){F(f,e,m),$(e,n),$(n,i),$(i,r),$(e,u),_&&_.m(e,null),$(e,p)},p(f,m){m[0]&4096&&o!==(o=Vs(f[124].length)+"")&&at(r,o),m[0]&4096&&s!==(s="renderer__highlight-distance renderer__highlight-distance_orientation_"+f[124].orientation+" svelte-1yftjo9")&&h(n,"class",s),m[0]&4096&&l!==(l=`${f[124].left}px`)&&ke(n,"left",l),m[0]&4096&&a!==(a=`${f[124].top}px`)&&ke(n,"top",a),m[0]&4096&&ke(n,"width",f[124].orientation==="horizontal"?`${f[124].length}px`:""),m[0]&4096&&ke(n,"height",f[124].orientation==="horizontal"?"":`${f[124].length}px`),m[0]&512&&c!==(c=`${-f[9]}px`)&&ke(n,"margin-top",c),m[0]&256&&d!==(d=`${-f[8]}px`)&&ke(n,"margin-left",d),f[124].sub?_?_.p(f,m):(_=kg(f),_.c(),_.m(e,p)):_&&(_.d(1),_=null)},d(f){f&&V(e),_&&_.d()}}}function one(t){let e,n,i,o,r,s,l,a,c,d,u,p,_=`${t[13][0]}px`,f=`${t[13][1]}px`,m,g,v,y,b,w,k,A,j,T,E=`${t[13][0]}px`,O=`${t[13][1]}px`,M,D,R=t[6]&&og(t),J=t[7]&&rg(t),B=t[1]&&sg(t),z=t[11]&&cg(t),q=t[12]&&$g(t);return{c(){e=S("div"),n=S("div"),i=S("div"),o=S("div"),r=G(),s=S("div"),l=G(),a=S("div"),c=G(),d=S("div"),u=G(),p=S("div"),m=G(),g=S("div"),v=S("div"),y=S("div"),b=G(),w=S("div"),R&&R.c(),k=G(),J&&J.c(),A=G(),B&&B.c(),j=G(),z&&z.c(),T=G(),q&&q.c(),h(o,"class","renderer__content-bg svelte-1yftjo9"),h(s,"class","renderer__content-inner svelte-1yftjo9"),h(i,"class","renderer__content svelte-1yftjo9"),h(a,"class","renderer__resizer renderer__resizer_vh svelte-1yftjo9"),h(d,"class","renderer__resizer renderer__resizer_h svelte-1yftjo9"),h(p,"class","renderer__resizer renderer__resizer_v svelte-1yftjo9"),h(n,"class","renderer__container svelte-1yftjo9"),ke(n,"--width",_),ke(n,"--height",f),h(y,"class","renderer__clones-container svelte-1yftjo9"),h(w,"class","renderer__snap-container svelte-1yftjo9"),h(v,"class","renderer__overlay-center svelte-1yftjo9"),ke(v,"width",E),ke(v,"height",O),h(g,"class","renderer__overlay-elemens renderer__overlay-root svelte-1yftjo9"),h(e,"class","renderer svelte-1yftjo9"),h(e,"tabindex","0"),ne(e,"renderer_rotate",t[10])},m(N,Y){F(N,e,Y),$(e,n),$(n,i),$(i,o),$(i,r),$(i,s),t[67](s),t[68](i),$(n,l),$(n,a),$(n,c),$(n,d),$(n,u),$(n,p),$(e,m),$(e,g),$(g,v),$(v,y),t[72](y),$(v,b),$(v,w),R&&R.m(w,null),$(w,k),J&&J.m(w,null),$(v,A),B&&B.m(v,null),$(v,j),z&&z.m(v,null),$(v,T),q&&q.m(v,null),t[78](e),M||(D=[te(ine,"resize",t[48]),te(s,"pointerdown",t[38]),te(i,"scroll",t[32],!0),te(i,"mousemove",t[33]),te(i,"mouseout",t[34]),te(a,"pointerdown",Eo(zi(t[69]))),te(d,"pointerdown",Eo(zi(t[70]))),te(p,"pointerdown",Eo(zi(t[71]))),te(e,"dragover",t[35]),te(e,"dragleave",zi(t[36])),te(e,"drop",t[37]),te(e,"keydown",t[43]),te(e,"pointerdown",t[44],!0),te(e,"click",t[45]),te(e,"dblclick",zi(t[46]))],M=!0)},p(N,Y){Y[0]&8192&&_!==(_=`${N[13][0]}px`)&&ke(n,"--width",_),Y[0]&8192&&f!==(f=`${N[13][1]}px`)&&ke(n,"--height",f),N[6]?R?R.p(N,Y):(R=og(N),R.c(),R.m(w,k)):R&&(R.d(1),R=null),N[7]?J?J.p(N,Y):(J=rg(N),J.c(),J.m(w,null)):J&&(J.d(1),J=null),N[1]?B?B.p(N,Y):(B=sg(N),B.c(),B.m(v,j)):B&&(B.d(1),B=null),N[11]?z?z.p(N,Y):(z=cg(N),z.c(),z.m(v,T)):z&&(z.d(1),z=null),N[12]?q?q.p(N,Y):(q=$g(N),q.c(),q.m(v,null)):q&&(q.d(1),q=null),Y[0]&8192&&E!==(E=`${N[13][0]}px`)&&ke(v,"width",E),Y[0]&8192&&O!==(O=`${N[13][1]}px`)&&ke(v,"height",O),Y[0]&1024&&ne(e,"renderer_rotate",N[10])},i:tn,o:tn,d(N){N&&V(e),t[67](null),t[68](null),t[72](null),R&&R.d(),J&&J.d(),B&&B.d(),z&&z.d(),q&&q.d(),t[78](null),M=!1,Rn(D)}}}const Na=6,Sg=10,Tg=10;let Cg=!0;function rne(t,e,n){let i,o,r,s,l,a,c,d,u,p,_,f,m,g,v,y,b,{viewport:w}=e,{theme:k}=e;const{l10n:A}=yt(oi);De(t,A,(oe=>n(15,l=oe)));const{rootConfigurable:j,actionLogUrlVariable:T,state:E,setRendererApi:O,inplaceEditor:M,file2Dialog:D,customFontFaces:R}=yt(Cn),{divjsonStore:J,customVariables:B,timers:z,tanker:q,copiedLeaf:N,selectedLeaf:Y,selectedElem:x,highlightLeaf:ce,highlightElem:ue,highlightMode:Z,highlightGradientAngle:Q,highlightRanges:se,rendererErrors:_e,locale:Oe,readOnly:W,tree:ge,sources:it,direction:ye}=E;De(t,J,(oe=>n(62,f=oe))),De(t,B,(oe=>n(64,v=oe))),De(t,z,(oe=>n(63,g=oe))),De(t,q,(oe=>n(59,u=oe))),De(t,N,(oe=>n(94,c=oe))),De(t,Y,(oe=>n(92,o=oe))),De(t,x,(oe=>n(57,a=oe))),De(t,ue,(oe=>n(60,p=oe))),De(t,Z,(oe=>n(66,b=oe))),De(t,Q,(oe=>n(65,y=oe))),De(t,Oe,(oe=>n(58,d=oe))),De(t,W,(oe=>n(14,s=oe))),De(t,ge,(oe=>n(93,r=oe))),De(t,it,(oe=>n(95,m=oe))),De(t,ye,(oe=>n(61,_=oe))),O({containerProps(){const oe=Xe.getBoundingClientRect();return{width:oe.width,height:oe.height}},selectedElemProps(){if(!a||!Xe)return null;const oe=Xe.getBoundingClientRect(),ze=a.getBoundingClientRect();return{top:ze.top-oe.top,left:ze.left-oe.left,width:ze.width,height:ze.height}},focus(){rt.focus({preventScroll:!0})},evalJson(oe){return hn(oe)}});let rt,U,de,pe,et={top:0,left:0,right:0,bottom:0,width:0,height:0},we=0,Ie="",Xe,vt,Qe,fe=null,me=null,ve=0,Ge=0,gt=!1,ee=!1,Je=!1,We=null,jt;const zt={};let an=new Set;const sn=new Map;let It=!1,cn,pn=null,Sn=null,Fn=null;function Re(oe){let ze=0,P=oe;for(;P&&P!==U;){const X=window.getComputedStyle(P);ze+=ene(X.transform),P=P.parentElement}return ze}function lt(oe,ze){const P=new Map;let X=oe;for(;X&&X!==U;)window.getComputedStyle(X).transform&&(P.set(X,X.style.transform),X.style.transform="none"),X=X.parentElement;ze();for(const[ae,$e]of P)ae.style.transform=$e}const li=(oe,ze,P,X,ae,$e,be,Be,re,je)=>{if(!rt)return;const Me=U.getBoundingClientRect();let Le=[],ut;if(X||ae?Le=[]:P?Le=[P]:(Le=[...new Set([...oe||[],ze])].filter(kr),oe&&oe.length===1&&ze&&(ze.offsetWidth||ze.offsetHeight)&&Be&&(ut=oe[0])),n(11,Sn=Le.filter((Ze=>Ze.isConnected)).map((Ze=>{var L;const Ct=sn.get(Ze),fn=Ct==null?void 0:Ct.processedJson,Ht=getComputedStyle(Ze),Mn=Ht.margin,Qt=parseInt(Ht.marginTop),Pn=parseInt(Ht.marginRight),_n=parseInt(Ht.marginBottom),Pt=parseInt(Ht.marginLeft),jn=Ht.padding,In=parseInt(Ht.paddingTop),Dn=parseInt(Ht.paddingRight),Un=parseInt(Ht.paddingBottom),ri=parseInt(Ht.paddingLeft);let yi=0,yo=0;if(Ze===P)yi=et.left-Me.left+ve,yo=et.top-Me.top+Ge;else{const ie=Ze.parentElement?Re(Ze.parentElement):0,Se=Ze.style.transform;Ze.style.transform=`rotate(${-ie}rad)`;const le=Ze.getBoundingClientRect();yi=le.left-Me.left+ve,yo=le.top-Me.top+Ge,Ze.style.transform=Se}const Oi={top:yo-Qt,right:yi+Ze.offsetWidth+Pn,bottom:yo+Ze.offsetHeight+_n,left:yi-Pt};let Yi="";if(Ze===ze&&fn){const ie=o==null?void 0:o.props.json;ie&&(ie.type==="_template_lottie"?Yi="lottie":ie.type==="_template_close"||(fn.type==="image"?Yi="image":fn.type==="gif"&&(Yi="gif")))}let Ei,dn;if($e&&Ze===ze){if($e==="margins")Ei=["M 0 0",`h ${Oi.right-Oi.left}`,`v ${Oi.bottom-Oi.top}`,`h ${-(Oi.right-Oi.left)}`,"Z",`M ${Pt} ${Qt}`,`v ${Ze.offsetHeight}`,`h ${Ze.offsetWidth}`,`v ${-Ze.offsetHeight}`,"Z"].join(" ");else if($e==="paddings")Ei=[`M ${Pt} ${Qt}`,`h ${Ze.offsetWidth}`,`v ${Ze.offsetHeight}`,`h ${-Ze.offsetWidth}`,"Z",`M ${Pt+ri} ${Qt+In}`,`v ${Ze.offsetHeight-In-Un}`,`h ${Ze.offsetWidth-ri-Dn}`,`v ${-(Ze.offsetHeight-In-Un)}`,"Z"].join(" ");else if($e==="gradient"){const ie=tne(Ze.offsetWidth,Ze.offsetHeight,be/180*Math.PI);dn=`M ${Pt+ie.from.x} ${Qt+ie.from.y} L ${Pt+ie.to.x} ${Qt+ie.to.y}`}}const vi=((L=Ct==null?void 0:Ct.processedJson)==null?void 0:L.type)==="grid";let Wt;return vi&<(Ze,(()=>{Wt=Md(Ze)})),{elem:Ze,permanent:Ze===ze,isRoot:Ze===r.props.node&&!j,isResize:Ze===P&&re,isRotate:Ze===P&&Je,top:Oi.top,left:Oi.left,right:Me.width-Oi.right,bottom:Me.height-Oi.bottom,width:Vs(Ze.offsetWidth),height:Vs(Ze.offsetHeight),widthNum:Ze.offsetWidth,heightNum:Ze.offsetHeight,margin:Mn,margins:{top:Qt,right:Pn,bottom:_n,left:Pt},padding:jn,paddings:{top:In,right:Dn,bottom:Un,left:ri},rotation:P===Ze?we:Re(Ze)/Math.PI*180,emptyFileType:Yi,insets:Ei,gradientAngle:dn,visibleText:Ze===P?Ie:"",grid:Wt&&(je||{columns:Fa(Wt.columns.slice(0,Wt.columns.length-1)),rows:Fa(Wt.rows.slice(0,Wt.rows.length-1))})||void 0}}))),ut&&ze){const Ze=ze.getBoundingClientRect(),Ct=ut.getBoundingClientRect(),fn=[],Ht={top:"bottom",right:"left",bottom:"top",left:"right"},Mn={top:-1,right:1,bottom:1,left:-1},Qt={vertical:["left","right"],horizontal:["top","bottom"]},Pn={top:"vertical",right:"horizontal",bottom:"vertical",left:"horizontal"},_n={top:"horizontal",right:"vertical",bottom:"horizontal",left:"vertical"};for(const Pt of["top","right","bottom","left"]){const jn=Pn[Pt],In=_n[Pt],Dn=Mn[Pt];for(const Un of[Ht[Pt],Pt])if(Ze[Pt]*Dn<Ct[Un]*Dn){let ri;const yi=(Ze[Qt[jn][0]]+Ze[Qt[jn][1]])/2;yi<Ct[Qt[jn][0]]?ri={orientation:In,length:Ct[Qt[jn][0]]-yi,top:In==="vertical"?yi:Ct[Un],left:In==="horizontal"?yi:Ct[Un]}:yi>Ct[Qt[jn][1]]&&(ri={orientation:In,length:yi-Ct[Qt[jn][1]],top:In==="vertical"?Ct[Qt[jn][1]]:Ct[Un],left:In==="horizontal"?Ct[Qt[jn][1]]:Ct[Un]}),fn.push({orientation:Pn[Pt],length:Math.abs(Ze[Pt]-Ct[Un]),top:Pn[Pt]==="vertical"?Math.min(Ze[Pt],Ct[Un]):yi,left:Pn[Pt]==="horizontal"?Math.min(Ze[Pt],Ct[Un]):yi,sub:ri});break}}fn.forEach((Pt=>{Pt.top-=Me.top,Pt.left-=Me.left,Pt.sub&&(Pt.sub.top-=Me.top,Pt.sub.left-=Me.left)})),n(12,Fn=fn)}else n(12,Fn=null)};function wt(){li(p,a,pe,Kt,gt,b,y,Cg,ee,pn)}function zn(){var $e,be;if(!gn||gt){ce.set(null),ue.set(null),se.set(null);return}const oe=new Set(sn.keys()),ze=gn[0],P=gn[1],X=20;let ae;for(const Be of oe){if(!((be=($e=sn.get(Be))==null?void 0:$e.processedJson)==null?void 0:be.type)||!Be.parentElement)continue;const je=Bte(Be);if(je.width<=0||je.height<=0)continue;let Me=je.left,Le=je.right,ut=je.top,Ze=je.bottom;if(je.width<X&&(Me-=(X-je.width)/2,Le+=(X-je.width)/2),je.height<X&&(ut-=(X-je.height)/2,Ze+=(X-je.height)/2),ze>=Me&&ze<=Le&&P>=ut&&P<=Ze){const Ct=Dte(Be),fn=Array.from(Be.parentElement.children).indexOf(Be),Ht=je.width*je.height;(!ae||ae.space>Ht||ae.space===Ht&&ae.depth<Ct||ae.space===Ht&&ae.depth===Ct&&ae.order<fn)&&(ae={elem:Be,space:Ht,depth:Ct,order:fn})}}if(ae){if(!((p==null?void 0:p.length)===1&&p[0]===ae.elem)){const Be=E.getLeafFromNode(ae.elem);if(Be){ce.set([Be]),ue.set([ae.elem]);const re=Be.props.range;se.set(re?[re]:null)}else ce.set(null),ue.set(null),se.set(null)}}else ce.set(null),ue.set(null),se.set(null)}function Jt(){n(8,ve=U.scrollLeft),n(9,Ge=U.scrollTop),zn(),wt()}let gn=null;function Lt(oe){gn=[oe.clientX,oe.clientY],zn()}function $n(){ce.set(null),ue.set(null),se.set(null)}function hn(oe){if(!Qe)return{};const ze=new Map(Qe.getDebugVariables());for(const X in zt)ze.has(X)||ze.set(X,zt[X]);const P=X=>{const ae={};for(const $e in X){const be=X[$e];if(typeof be=="string"&&be.includes("@{")){const Be=KY(be,{variables:ze,type:"json"});Be.type!=="error"&&(ae[$e]=Be.value)}else be&&typeof be=="object"?ae[$e]=P(be):ae[$e]=be}return ae};return P(oe)}function Ut({type:oe,node:ze,json:P,origJson:X}){var $e;let ae=oe==="mount"||oe==="destroy";if((oe==="update"||oe==="mount")&&X.__leafId&&an.add(X.__leafId),(oe==="mount"||oe==="update")&&X.__leafId){const be=no(r,X.__leafId);if(be){be.props.processedJson=P;const Be=o&&o.id===X.__leafId;ze&&(be.props.node=ze,sn.set(ze,{json:X,processedJson:P,node:ze}),(($e=sn.get(ze))==null?void 0:$e.json.__leafId)!==X.__leafId&&(ae=!0),ze.classList.add("renderer__divkit-node"),ze.classList.toggle("renderer__divkit-gallery",P.type==="gallery"),ze.classList.toggle("renderer__divkit-pager",P.type==="pager"),ze.classList.toggle("renderer__divkit-tabs",P.type==="tabs"),(ze.tagName==="A"||ze.tagName==="BUTTON"||ze.hasAttribute("tabindex"))&&ze.setAttribute("inert",""),Be&&a!==ze&&x.set(ze)),Be&&Mi(Y,o=be,o)}else ae=!0}else oe==="destroy"&&ze&&sn.delete(ze);ae&&E.updateComponents()}let Kt=null;function Jn(oe,ze){const P=[...sn.keys()];let X=null;const ae=U.getBoundingClientRect();for(const $e of P){const be=sn.get($e);if(!be)continue;const Be=be.json,re=be.processedJson,je=no(r,Be.__leafId);if(!je)continue;const Me=Vte(je);if(Be.type in Ji||!(re.type==="container"||re.type==="gallery"||re.type==="grid")||re.orientation==="overlap"||ep(E,Be))continue;const Le=$e.getBoundingClientRect();if(oe<Le.left||oe>Le.right||ze<Le.top||ze>Le.bottom)continue;const ut=re.orientation||(re.type==="container"?"vertical":"horizontal"),Ze=getComputedStyle($e),Ct=parseFloat(Ze.paddingTop),fn=parseFloat(Ze.paddingRight),Ht=parseFloat(Ze.paddingBottom),Mn=parseFloat(Ze.paddingLeft),Qt=[],Pn=[];if(re.type==="container"||re.type==="gallery"){Qt.push({index:0,top:Le.top+Ct,left:Le.left+Mn,width:ut==="horizontal"?0:Le.width-Mn-fn,height:ut==="horizontal"?Le.height-Ct-Ht:0});const _n=je.childs.map((Pt=>Pt.props.node));Array.from(_n).forEach(((Pt,jn)=>{const In=Pt.getBoundingClientRect(),Dn=getComputedStyle(Pt),Un=parseFloat(Dn.marginRight),ri=parseFloat(Dn.marginBottom);Qt.push({index:jn+1,top:ut==="horizontal"?Le.top+Ct:In.bottom+ri,left:ut==="horizontal"?In.right+Un:Le.left+Mn,width:ut==="horizontal"?0:Le.width-Mn-fn,height:ut==="horizontal"?Le.height-Ct-Ht:0}),Pn.push(In)}))}else re.type==="grid"&&je.childs.map((Pt=>Pt.props.node)).forEach(((Pt,jn)=>{const In=Pt.getBoundingClientRect(),Dn={top:In.top,left:In.left,width:In.width,height:In.height};Qt.push({targetIndex:jn,visibleText:String(jn+1),...Dn}),Pn.push(In)}));Qt.forEach((_n=>{const Pt=oe<_n.left?_n.left-oe:oe<_n.left+_n.width?0:Math.abs(oe-(_n.left+_n.width)),jn=ze<_n.top?_n.top-ze:ze<_n.top+_n.height?0:Math.abs(ze-(_n.top+_n.height)),In=Pt*Pt+jn*jn;(!X||Me>X.depth||Me===X.depth&&X.dist>In)&&(_n.left-=ae.left,_n.top-=ae.top,X={dist:In,depth:Me,target:_n,leaf:je,parent:{left:Le.left-ae.left,top:Le.top-ae.top,width:Le.width,height:Le.height},childs:Pn.map((Dn=>({left:Dn.left-ae.left,top:Dn.top-ae.top,width:Dn.width,height:Dn.height})))})}))}return X}function Kn(oe){s||(oe.preventDefault(),n(1,Kt=!oe.ctrlKey&&Jn(oe.clientX,oe.clientY)||null),oe.dataTransfer&&(oe.dataTransfer.dropEffect="move"))}function fi(oe){oe.relatedTarget&&oe.relatedTarget instanceof Node&&rt.contains(oe.relatedTarget)||n(1,Kt=null)}function Ke(oe){var re;if(s)return;const ze=(re=oe.dataTransfer)==null?void 0:re.getData("application/divnode");if(!ze)return;const P=E.getChild(ze);if(!P)return;let X,ae=null,$e=null,be;if(Kt){const je=Kt;if(n(1,Kt=null),X=je.leaf,je.target.targetIndex!==void 0)$e=je.target.targetIndex;else if(je.target.index!==void 0)ae=je.target.index;else return;delete P.props.json.margins}else{X=r,ae=r.childs.length;const je=oe.pageX-window.scrollX,Me=oe.pageY-window.scrollY,Le=U.getBoundingClientRect();be=[{property:"alignment_horizontal",value:"left"},{property:"alignment_vertical",value:"top"},{property:"margins",value:{top:Math.max(0,Math.round(Me-Le.top-20)),left:Math.max(0,Math.round(je-Le.left-20))}}]}if(!X||zc(P,X))return;const Be=P.parent?P.parent.childs.indexOf(P):-1;$e!==null?ae=$e:P.parent&&P.parent===X&&ae!==null&&ae>Be?--ae:ae=X.childs.length,P.parent?E.pushCommand(new Jl(E,{newParentId:X.id,insertIndex:ae,leafId:P.id,changes:be})):(be&&be.forEach((({property:je,value:Me})=>{Tl(P.props.json,je,Me)})),E.pushCommand(new da({parentId:X.id,insertIndex:ae,leaf:P}))),ur().then((()=>{Mi(Y,o=no(r,P.id)||null,o),rt.focus({preventScroll:!0})}))}function bt(oe,ze,P,X,ae){var be,Be;const $e=()=>{var je;if(!jt)return;const re=Qe==null?void 0:Qe.getDebugAllVariables();for(const[Me,Le]of E.varToTankerMap){const ut=re==null?void 0:re.get(Me),Ze=((je=ze[Le])==null?void 0:je[P])||"";if(Ze)if(ut)ut.set(Ze);else{const Ct=Ho(Me,"string",Ze);zt[Me]=Ct,jt.setVariable(Ct)}}};if(an=new Set,cn={},It=!0,Qe){const je=Qe.getDebugAllVariables().get("local_palette");if(je){const Me=(be=oe.card.variables)==null?void 0:be.find((Le=>Le.name==="local_palette"));je.setValue((Me==null?void 0:Me.value)||{})}We&&We.set(X),Qe.setData(oe)}else{if(_e.set({"":qte(oe)}),jt=sY(),We=Ho("theme","string",X),zt.theme=We,jt.setVariable(We),T){const Me=Ho(T,"string","https://");zt.actionLogUrlVariable=Me,jt.setVariable(Me)}const re=Ho("local_palette","dict",{});jt.setVariable(re);for(const Me of m){const Le=Ho(Me.key,"dict",Me.example);zt[Me.key]=Le,jt.setVariable(Le)}const je=new Set;for(const[Me,Le]of E.varToTankerMap){const ut=((Be=ze[Le])==null?void 0:Be[P])||"";if(ut){const Ze=Ho(Me,"string",ut);zt[Me]=Ze,jt.setVariable(Ze),je.add(Me)}}if(je.size){const Me=oe.card;Me.variables&&(Me.variables=Me.variables.filter((Le=>!je.has(Le.name))))}n(53,Qe=WY({id:"preview",target:de,json:oe,globalVariablesController:jt,onComponent:Ut,platform:"desktop",extensions:new Map([["size_provider",UY],["lottie",Nte]]),direction:ae,typefaceProvider(Me){var Le;return((Le=R.find((ut=>ut.value===Me)))==null?void 0:Le.value)||""},onError(Me){var Pn,_n,Pt,jn;const Le=Me.error.additional||{},ut=((Pt=(_n=(Pn=Le.fullpath)==null?void 0:Pn.find((In=>{var Dn;return(Dn=In.origJson)==null?void 0:Dn.__leafId})))==null?void 0:_n.origJson)==null?void 0:Pt.__leafId)||"",Ze=E.getChild(ut),Ct=Object.keys(Le).filter((In=>In!=="json"&&In!=="origJson"&&In!=="fullpath")).reduce(((In,Dn)=>(In[Dn]=Le[Dn],In)),{});ut&&(Ct.leafId=ut);const fn=It?cn:wn(_e);let Ht=fn[ut]||[];const Mn=(jn=Ze==null?void 0:Ze.props.node)==null?void 0:jn.isConnected,Qt={message:Me.error.message,stack:(Me.error.stack||"").split(`\n`),level:Me.error.level,args:Ct};Mn?Ht.push(Qt):Me.error.level!=="warn"&&(Ht=[Qt]),It?cn[ut]=Ht:_e.set({...fn,[ut]:Ht})}}))}ur().then((()=>{$e(),wt(),ur().then((()=>{It=!1;let re={...wn(_e)};for(const je of an)delete re[je];re={...re,...cn},_e.set(re)}))}))}let ct=()=>{};function ht(){ct()}function qt(oe){var Yi,Ei;if(oe.button!==0||oe.target instanceof Element&&(oe.target.matches(".renderer__divkit-gallery > div:not(:first-child) *")||oe.target.matches(".renderer__divkit-pager > div:not(:first-child) *")||oe.target.matches(".renderer__divkit-tabs > div:first-child > span"))||pe)return;const ze=p==null?void 0:p[0];if(!ze){if(a){const dn=a.getBoundingClientRect(),vi=oe.clientX,Wt=oe.clientY;vi>=dn.left&&vi<=dn.right&&Wt>=dn.top&&Wt<=dn.bottom||Y.set(null)}return}const P=E.getLeafFromNode(ze),X=P==null?void 0:P.parent;if(!P)return;const ae=P.props.json,$e=P.props.processedJson;if(rt.focus({preventScroll:!0}),Y.set(P),x.set(ze),ce.set(null),ue.set(null),se.set(null),P===r||s||!X)return;let be=!1;const Be=((Yi=$e.transform)==null?void 0:Yi.rotation)||0,re=ze.style.transform;ze.style.transform="";const je=ze.getBoundingClientRect();ze.style.transform=re;const Me=getComputedStyle(ze),Le=Xe.getBoundingClientRect(),ut=oe.clientX,Ze=oe.clientY,Ct=parseFloat(Me.width),fn=parseFloat(Me.height),Ht=je.left-Le.left,Mn=je.top-Le.top;oe.preventDefault(),oe.stopPropagation();const Qt=getComputedStyle(ze);n(51,pe=ze.cloneNode(!0)),pe.classList.add("renderer__component-clone"),n(51,pe.style.transform=`translate(${Ht}px, ${Mn}px) rotate(${Be}deg)`,pe),n(51,pe.style.width=`${Math.ceil(Ct)}px`,pe),n(51,pe.style.height=`${Math.ceil(fn)}px`,pe),n(51,pe.style.fontSize=Qt.fontSize,pe),n(51,pe.style.opacity="0",pe),Xe.appendChild(pe),et={top:Mn+Le.top,left:Ht+Le.left,right:Ht+Ct+Le.left,bottom:Mn+fn+Le.top,width:Ct,height:fn},n(4,we=Be);const Pn=Le.width-je.width,_n=Le.height-je.height;let Pt=Ht,jn=Mn,In,Dn,Un=[{val:Le.width/2,type:"center",special:"horizontalCenter"}],ri=[{val:Le.height/2,type:"center",special:"verticalCenter"}];[...((Ei=E.simpleComponentsMap)==null?void 0:Ei.keys())||[]].forEach((dn=>{const vi=dn.getBoundingClientRect();Un.push({val:vi.left-Le.left,type:"start"},{val:vi.right-Le.left,type:"end"},{val:(vi.left+vi.right)/2-Le.left,type:"center"}),ri.push({val:vi.top-Le.top,type:"start"},{val:vi.bottom-Le.top,type:"end"},{val:(vi.top+vi.bottom)/2-Le.top,type:"center"})})),Un=Un.map((dn=>({...dn,val:Math.round(dn.val)}))),ri=ri.map((dn=>({...dn,val:Math.round(dn.val)}))),Un=Un.sort(((dn,vi)=>dn.val-vi.val)),ri=ri.sort(((dn,vi)=>dn.val-vi.val)),n(1,Kt=null);const yo=dn=>{if((dn.clientX-ut)*(dn.clientX-ut)+(dn.clientY-Ze)*(dn.clientY-Ze)>16&&(be=!0),!be||!pe){dn.preventDefault();return}const Wt=dn.shiftKey;if(n(1,Kt=!dn.ctrlKey&&Jn(dn.clientX,dn.clientY)||null),ze.style.opacity="0",n(6,fe=null),n(7,me=null),Kt)n(51,pe.style.opacity="0",pe);else{n(51,pe.style.opacity="",pe);let L=dn.clientX-ut,ie=dn.clientY-Ze;Wt&&(Math.abs(L)>Math.abs(ie)?ie=0:L=0),Pt=L+Ht,jn=ie+Mn,Pt=Math.max(0,Math.min(Pn,Pt)),jn=Math.max(0,Math.min(_n,jn));const Se=[{val:Pt+je.width/2,pos:je.width/2,type:"center"},{val:Pt,pos:0,type:"start"},{val:Pt+je.width,pos:je.width,type:"end"}],le=[{val:jn+je.height/2,pos:je.height/2,type:"center"},{val:jn,pos:0,type:"start"},{val:jn+je.height,pos:je.height,type:"end"}];let qe,Fe,Et,Nt;Se.forEach((On=>{qe||(qe=La(Un,On,Na),qe&&(Fe=On.pos))})),le.forEach((On=>{Et||(Et=La(ri,On,Na),Et&&(Nt=On.pos))})),qe?(n(6,fe=qe.val),In=qe.special):(n(6,fe=null),In=void 0),Et?(n(7,me=Et.val),Dn=Et.special):(n(7,me=null),Dn=void 0),Pt=qe&&Fe!==void 0&&qe.val-Fe||Pt,jn=Et&&Nt!==void 0&&Et.val-Nt||jn,Pt=Math.max(0,Math.min(Pn,Pt)),jn=Math.max(0,Math.min(_n,jn)),n(51,pe.style.transform=`translate(${Pt}px, ${jn}px) rotate(${Be}deg)`,pe),et={...et,top:jn+Le.top,left:Pt+Le.left,right:Pt+Ct+Le.left,bottom:jn+fn+Le.top}}dn.preventDefault()};ct=()=>{ct=()=>{},document.body.removeEventListener("pointermove",yo),document.body.removeEventListener("pointerup",Oi),document.body.removeEventListener("pointercancel",Oi),ze.style.opacity="",pe&&Xe.removeChild(pe),n(51,pe=null),n(1,Kt=null)};const Oi=()=>{var L,ie,Se;const dn=Kt;ct();const vi=Pt!==Ht,Wt=jn!==Mn;if(n(6,fe=null),n(7,me=null),!(!dn&&!vi&&!Wt)){if(dn){let le,qe=null,Fe=null;const Et=dn;if(le=Et.leaf,Et.target.targetIndex!==void 0)Fe=Et.target.targetIndex;else if(Et.target.index!==void 0)qe=Et.target.index;else return;const Nt=[],On=le&&((L=no(r,le.id))==null?void 0:L.props.processedJson);if(P.props.json.margins&&On&&On.type==="container"&&On.orientation==="overlap"&&Nt.push({property:"margins",value:void 0}),le&&!zc(P,le)){const yn=X.childs.indexOf(P);Fe!==null?qe=Fe:X===le&&qe!==null&&qe>yn&&--qe,E.pushCommand(new Jl(E,{leafId:P.id,newParentId:le.id,insertIndex:qe!==null?qe:le.childs.length,changes:Nt}))}}else{const le=[];let qe=$e.alignment_horizontal||"left",Fe=$e.alignment_vertical||"top";const Et=((ie=$e.width)==null?void 0:ie.type)==="match_parent"||!$e.width,Nt=((Se=$e.height)==null?void 0:Se.type)==="match_parent";In==="horizontalCenter"?(qe="center",le.push({property:"alignment_horizontal",value:qe})):vi&&qe!=="left"&&qe!=="right"&&(qe="left",le.push({property:"alignment_horizontal",value:qe})),Dn==="verticalCenter"?(Fe="center",le.push({property:"alignment_vertical",value:Fe})):Wt&&Fe!=="top"&&Fe!=="bottom"&&(Fe="top",le.push({property:"alignment_vertical",value:Fe}));const On=ae.margins||{},yn={};vi?((qe==="left"||Et)&&(yn.left=Math.round(Pt)),(qe==="right"||Et)&&(yn.right=Math.floor(Le.width-Pt-je.width))):(yn.left=On.left,yn.right=On.right),Wt?((Fe==="top"||Nt)&&(yn.top=Math.round(jn)),(Fe==="bottom"||Nt)&&(yn.bottom=Math.floor(Le.height-jn-je.height))):(yn.top=On.top,yn.bottom=On.bottom),le.push({property:"margins",value:yn}),E.pushCommand(new Jl(E,{leafId:P.id,newParentId:r.id,insertIndex:r.childs.length,changes:le}))}ge.set(r)}};document.body.addEventListener("pointermove",yo),document.body.addEventListener("pointerup",Oi),document.body.addEventListener("pointercancel",Oi)}function St(oe,ze){if(oe.button!==0)return;const P=ze==="right"||ze==="down-right",X=ze==="down"||ze==="down-right",ae=oe.clientX,$e=oe.clientY,be=i[0],Be=i[1],re=Me=>{let Le=be,ut=Be;P&&(Le+=(Me.clientX-ae)*2,Le=Math.round(Math.max(100,Le))),X&&(ut+=Me.clientY-$e,ut=Math.round(Math.max(100,ut))),n(49,w=`${Le}x${ut}`),Me.preventDefault()},je=()=>{document.body.removeEventListener("pointermove",re),document.body.removeEventListener("pointerup",je),document.body.removeEventListener("pointercancel",je)};document.body.addEventListener("pointermove",re),document.body.addEventListener("pointerup",je),document.body.addEventListener("pointercancel",je)}function Ot(oe,ze){var zr,$s,Er;if(s||oe.button!==0||pe)return;const P=a;if(!P)return;const X=E.getLeafFromNode(P)||null;if(!X)return;const ae=X.parent;n(55,ee=!0);const $e=X.props.processedJson,be=getComputedStyle(P),Be=((zr=ae==null?void 0:ae.props.processedJson)==null?void 0:zr.type)==="grid",re=Be&&(!ae.props.processedJson.width||ae.props.processedJson.width.type==="match_parent"),je=Be&&ae.props.processedJson.height.type==="match_parent";let Me;Be&&(ae!=null&&ae.props.node)&<(ae.props.node,(()=>{Me=Md(ae.props.node)}));const Le=Be&&Zm(P),ut=Me&&Le?Me.columnsCount-Le.columnStart:0,Ze=Me?1/0:0,Ct=Me&&Le?Me.columns[Le.columnStart]-parseFloat(be.marginLeft)-parseFloat(be.marginRight):0,fn=Me&&Le?Me.rows[Le.rowStart]-parseFloat(be.marginTop)-parseFloat(be.marginBottom):0;let Ht=Le?Le.columnSpan:1,Mn=Le?Le.rowSpan:1,Qt=!1,Pn=!1;Be&&(Ie=`${Ht}x${Mn}`);const _n=ze==="right"||ze==="down-right",Pt=ze==="down"||ze==="down-right",jn=(($s=$e.transform)==null?void 0:$s.rotation)||0,In=P.style.transform;P.style.transform="";const Dn=P.getBoundingClientRect();P.style.transform=In;const Un=Xe.getBoundingClientRect(),ri=ae==null?void 0:ae.props.node.getBoundingClientRect(),yi=oe.clientX,yo=oe.clientY,Oi=parseFloat(be.width),Yi=parseFloat(be.height),Ei=Dn.left-Un.left,dn=Dn.top-Un.top;oe.preventDefault(),oe.stopPropagation();const vi=getComputedStyle(P);n(51,pe=P.cloneNode(!0)),pe.classList.add("renderer__component-clone"),n(51,pe.style.transform=`translate(${Ei}px, ${dn}px) rotate(${jn||0}deg)`,pe),n(51,pe.style.width=`${Math.ceil(Oi)}px`,pe),n(51,pe.style.height=`${Math.ceil(Yi)}px`,pe),n(51,pe.style.fontSize=vi.fontSize,pe),Xe.appendChild(pe),P.style.opacity="0",et={top:dn+Un.top,left:Ei+Un.left,right:Ei+Oi+Un.left,bottom:dn+Yi+Un.top,width:Oi,height:Yi},n(4,we=jn||0);const Wt=we/180*Math.PI,L=Math.sin(Wt),ie=Math.cos(Wt),Se={x:Ei+Oi/2,y:dn+Yi/2},le={x:Se.x+-Oi/2*ie- -Yi/2*L,y:Se.y+-Oi/2*L+-Yi/2*ie},qe=ri?ri.right-Un.left-Ei:i[0]-Ei,Fe=Be?1/0:ri?ri.bottom-Un.top-dn:i[1]-dn;let Et=Ei+Dn.width,Nt=dn+Dn.height,On=Dn.width,yn=Dn.height,wi=[],Ao=[],_t=!1,ti=!1;[...((Er=E.simpleComponentsMap)==null?void 0:Er.keys())||[]].forEach((Ci=>{const io=Ci.getBoundingClientRect();wi.push({val:io.right-Un.left,type:"end"}),Ao.push({val:io.bottom-Un.top,type:"end"})})),wi=wi.map((Ci=>({...Ci,val:Math.round(Ci.val)}))),Ao=Ao.map((Ci=>({...Ci,val:Math.round(Ci.val)}))),wi=wi.sort(((Ci,io)=>Ci.val-io.val)),Ao=Ao.sort(((Ci,io)=>Ci.val-io.val));let Co=0,Di=0;const Qo=Ci=>{if(!pe)return;const io=Ci.shiftKey;let Mo=Ci.clientX-yi,Ar=Ci.clientY-yo;if(io&&_n&&Pt){const ji=(Mo+Ar)/2;Mo=ji,Ar=ji}const rs=Math.sqrt(Mo*Mo+Ar*Ar);let Vl=Math.atan2(Ar,Mo);Vl-=Wt;const fd=rs*Math.cos(Vl),md=rs*Math.sin(Vl);Et=fd+Dn.width,Nt=md+Dn.height,Et=Math.max(0,Math.min(qe,Et)),Nt=Math.max(0,Math.min(Fe,Nt)),_t=Et===qe,ti=Nt===Fe,io&&_n&&Pt&&Et!==Nt&&(Et=Nt=Math.min(Et,Nt)),Et+=Ei,Nt+=dn;const gd=[{val:Et,pos:0,type:"end"}],ka=[{val:Nt,pos:0,type:"end"}];let Wr,xs,Kr,Ll;_n&&gd.forEach((ji=>{Wr||(Wr=La(wi,ji,Na),Wr&&(xs=ji.pos))})),Pt&&ka.forEach((ji=>{Kr||(Kr=La(Ao,ji,Na),Kr&&(Ll=ji.pos))})),Wr?n(6,fe=Wr.val):n(6,fe=null),Kr?n(7,me=Kr.val):n(7,me=null);const $t=(Wr&&xs!==void 0&&Wr.val-xs||Et)-Ei,Vi=(Kr&&Ll!==void 0&&Kr.val-Ll||Nt)-dn;if(_n)if(!Me||!Le||$t<=Ct)On=$t,On=Math.max(0,Math.min(qe,On)),Qt=!1;else{let ji=0;for(Ht=0,Ht=0;Ht<ut;++Ht){const lo=Me.columns[Le.columnStart+Ht];if(Ht>=1&&$t<ji+lo/3)break;ji+=lo}On=Me.columns.slice(Le.columnStart,Le.columnStart+Ht).reduce(((lo,oo)=>lo+oo),0)-parseFloat(be.marginLeft)-parseFloat(be.marginRight),Qt=!0}if(Pt)if(!Me||!Le||Vi<=fn)yn=Vi,yn=Math.max(0,Math.min(Fe,yn)),Pn=!1;else{let ji=0;Mn=0;const lo=Me.rows.reduce(((wo,Tn)=>wo+Tn),0),oo=wo=>{const Tn=Me;return wo<Tn.rows.length?Tn.rows[wo]:lo/Tn.rows.length};for(Mn=0;Mn<Ze;++Mn){const wo=oo(Le.rowStart+Mn);if(Mn>=1&&Vi<ji+wo/3)break;ji+=wo}yn=0;for(let wo=Le.rowStart;wo<Le.rowStart+Mn;++wo)yn+=oo(wo);yn=yn-parseFloat(be.marginTop)-parseFloat(be.marginBottom),Pn=!0}if(Be&&((Ht>1||Mn>1)&&(On=Math.max(On,Ct),yn=Math.max(yn,fn)),Ie=`${Ht}x${Mn}`),n(51,pe.style.width=`${On}px`,pe),n(51,pe.style.height=`${yn}px`,pe),we&&!Be){const ji={x:Ei+On/2,y:dn+yn/2},lo={x:ji.x+-On/2*ie- -yn/2*L,y:ji.y+-On/2*L+-yn/2*ie};Co=le.x-lo.x,Di=le.y-lo.y,n(51,pe.style.transform=`translate(${Ei+Co}px, ${dn+Di}px) rotate(${we}deg)`,pe),et={top:dn+Di+Un.top,left:Ei+Co+Un.left,right:Ei+Co+On+Un.left,bottom:dn+Di+yn+Un.top,width:On,height:yn}}else et={...et,right:Ei+On+Un.left,bottom:dn+yn+Un.top,width:On,height:yn};Ci.preventDefault()};ct=()=>{ct=()=>{},document.body.removeEventListener("pointermove",Qo),document.body.removeEventListener("pointerup",Oo),document.body.removeEventListener("pointercancel",Oo),P.style.opacity="",pe&&Xe.removeChild(pe),n(51,pe=null),Ie="",n(1,Kt=null),n(55,ee=!1)};const Oo=()=>{ct(),n(6,fe=null),n(7,me=null);const Ci=[],io=o==null?void 0:o.id;io&&(Be?(_n&&(Qt&&re?Ci.push({leafId:io,property:"width",value:{type:"match_parent",weight:Qt?1:void 0}}):Ci.push({leafId:io,property:"width",value:{type:"fixed",value:Math.ceil(On)}}),Qt&&Le&&Ht!==Le.columnSpan&&Ci.push({leafId:io,property:"column_span",value:Ht>1?Ht:void 0})),Pt&&(Pn&&je?Ci.push({leafId:io,property:"height",value:{type:"match_parent",weight:Pn?1:void 0}}):Ci.push({leafId:io,property:"height",value:{type:"fixed",value:Math.ceil(yn)}}),Pn&&Le&&Mn!==Le.rowSpan&&Ci.push({leafId:io,property:"row_span",value:Mn>1?Mn:void 0}))):(_n&&(_t?Ci.push({leafId:io,property:"width",value:{type:"match_parent"}}):Ci.push({leafId:io,property:"width",value:{type:"fixed",value:Math.ceil(On)}})),Pt&&(ti?Ci.push({leafId:io,property:"height",value:{type:"match_parent"}}):Ci.push({leafId:io,property:"height",value:{type:"fixed",value:Math.ceil(yn)}}))),Ci.length&&E.pushCommand(new ir(r,Ci)))};document.body.addEventListener("pointermove",Qo),document.body.addEventListener("pointerup",Oo),document.body.addEventListener("pointercancel",Oo)}function nn(oe,ze,P){var Mn;if(s||oe.button!==0||pe)return;const X=a;if(!X)return;const ae=E.getLeafFromNode(X)||null;if(!ae||!(((Mn=ae==null?void 0:ae.props.processedJson)==null?void 0:Mn.type)==="grid"))return;let be;if(lt(X,(()=>{be=Md(X)})),!be)return;const Be=be,re=oe.clientX,je=oe.clientY,Me=ze==="column"?"columns":"rows";let Le=be[Me][P];const ut=Le,Ze=0,Ct=Le+be[Me][P+1],fn=Qt=>{const Pn=Qt.clientX-re,_n=Qt.clientY-je;let Pt;ze==="column"?Pt=ut+Pn:Pt=ut+_n,Le=Math.max(Ze,Math.min(Ct,Pt)),n(56,pn={columns:Be.columns.slice(0,Be.columns.length-1),rows:Be.rows.slice(0,Be.rows.length-1)}),n(56,pn[Me][P]=Le,pn),P+1<pn[Me].length&&n(56,pn[Me][P+1]=Ct-Le,pn),n(56,pn.columns=Fa(pn.columns),pn),n(56,pn.rows=Fa(pn.rows),pn),Qt.preventDefault()};ct=()=>{ct=()=>{},document.body.removeEventListener("pointermove",fn),document.body.removeEventListener("pointerup",Ht),document.body.removeEventListener("pointercancel",Ht),n(56,pn=null)};const Ht=()=>{ct();const Qt=[],Pn=ze==="column"?"columnStart":"rowStart",_n=ze==="column"?"columnSpan":"rowSpan",Pt=ze==="column"?"width":"height",jn=Be[ze==="column"?"columns":"rows"].slice(),In=jn.slice();In[P]=Le,In[P+1]=Ct-Le,ae.childs.forEach((Dn=>{var yi,yo,Oi;const Un=(yi=Dn.props.processedJson)==null?void 0:yi.__leafId;if(!Dn.props.node||!Un)return;const ri=Zm(Dn.props.node);if(P+1===ri[Pn]||P+1===ri[Pn]+ri[_n]){const Yi=xm(jn.slice(ri[Pn],ri[Pn]+ri[_n]));let Ei=xm(In.slice(ri[Pn],ri[Pn]+ri[_n]));const dn=Dn.props.processedJson.margins;if(((yo=Dn.props.processedJson[Pt])==null?void 0:yo.type)==="fixed"){const vi=Dn.props.processedJson[Pt].value;Ei-=Yi-vi}else ze==="column"?Ei-=Number((dn==null?void 0:dn.left)||0)+Number((dn==null?void 0:dn.right)||0):Ei-=Number((dn==null?void 0:dn.top)||0)+Number((dn==null?void 0:dn.bottom)||0);if(((Oi=Dn.props.processedJson[Pt])==null?void 0:Oi.type)==="fixed"&&Math.abs(Ei-Dn.props.processedJson[Pt].value)<1)return;Qt.push({leafId:Un,property:Pt,value:{type:"fixed",value:Ei}})}})),Qt.length&&E.pushCommand(new ir(r,Qt))};document.body.addEventListener("pointermove",fn),document.body.addEventListener("pointerup",Ht),document.body.addEventListener("pointercancel",Ht)}function ei(oe){var Mn;if(s||oe.button!==0||pe)return;const ze=a;if(!ze)return;const P=E.getLeafFromNode(ze)||null;if(!P)return;const ae=((Mn=P.props.processedJson.transform)==null?void 0:Mn.rotation)||0,$e=ze.style.transform;ze.style.transform="";const be=ze.getBoundingClientRect();ze.style.transform=$e;const Be=getComputedStyle(ze),re=Xe.getBoundingClientRect(),je=parseFloat(Be.width),Me=parseFloat(Be.height),Le=be.left-re.left,ut=be.top-re.top;oe.preventDefault(),oe.stopPropagation();const Ze=getComputedStyle(ze);n(51,pe=ze.cloneNode(!0)),pe.classList.add("renderer__component-clone"),n(51,pe.style.transform=`translate(${Le}px, ${ut}px) rotate(${ae||0}deg)`,pe),n(51,pe.style.width=`${Math.ceil(je)}px`,pe),n(51,pe.style.height=`${Math.ceil(Me)}px`,pe),n(51,pe.style.fontSize=Ze.fontSize,pe),Xe.appendChild(pe),ze.style.opacity="0",et={top:ut+re.top,left:Le+re.left,right:Le+je+re.left,bottom:ut+Me+re.top,width:je,height:Me},n(4,we=ae||0),we<0&&n(4,we+=360),n(10,Je=!0);const Ct={x:be.left+je/2,y:be.top+Me/2},fn=Qt=>{if(!pe)return;const Pn=Qt.shiftKey,_n=Qt.clientX-Ct.x,Pt=Qt.clientY-Ct.y;let jn=Math.atan2(Pt,_n);if(Pn){const In=Math.PI/4;jn=Math.round(jn/In)*In}n(4,we=jn/Math.PI*180+90),we<0&&n(4,we+=360),n(51,pe.style.transform=`translate(${Le}px, ${ut}px) rotate(${we}deg)`,pe),Qt.preventDefault()};ct=()=>{ct=()=>{},document.body.removeEventListener("pointermove",fn),document.body.removeEventListener("pointerup",Ht),document.body.removeEventListener("pointercancel",Ht),ze.style.opacity="",pe&&Xe.removeChild(pe),n(51,pe=null),n(1,Kt=null),n(10,Je=!1)};const Ht=()=>{ct();const Qt=o==null?void 0:o.id;if(!Qt)return;let Pn=Math.round(we);Pn<0&&(Pn+=360),E.pushCommand(new ir(r,[{leafId:Qt,property:"transform",value:{rotation:Pn}}]))};document.body.addEventListener("pointermove",fn),document.body.addEventListener("pointerup",Ht),document.body.addEventListener("pointercancel",Ht)}function Ft(oe,ze){const P=oe.props.json,X=oe.props.processedJson;let ae=X.alignment_horizontal||"left",$e=X.alignment_vertical||"top";const be=U.getBoundingClientRect(),re=oe.props.node.getBoundingClientRect(),je={...P.margins||{}},Me=[];ae==="center"&&(ae="left",Me.push({leafId:oe.id,property:"alignment_horizontal",value:ae}),delete je.right,je.left=Math.ceil(re.left-be.left)),$e==="center"&&($e="top",Me.push({leafId:oe.id,property:"alignment_vertical",value:$e}),delete je.bottom,je.top=Math.ceil(re.top-be.top)),ae==="left"?(je.left||(je.left=0),je.left+=ze.x,je.right!==void 0&&(je.right-=ze.x)):(je.right||(je.right=0),je.right-=ze.x,je.left!==void 0&&(je.left+=ze.x)),$e==="top"?(je.top||(je.top=0),je.top+=ze.y,je.bottom!==void 0&&(je.bottom-=ze.y)):(je.bottom||(je.bottom=0),je.bottom-=ze.y,je.top!==void 0&&(je.top+=ze.y));const Le={left:be.width-re.width,right:be.width-re.width,top:be.height-re.height,bottom:be.height-re.height};for(const ut of["left","right","top","bottom"])je[ut]&&(je[ut]=Math.max(0,Math.min(Le[ut],je[ut])));(Me||!ca(P.margins,je))&&(Me.push({leafId:oe.id,property:"margins",value:je}),E.pushCommand(new ir(r,Me)))}function xt(oe,ze){const P=oe.parent;if(!P)return;const X=P.props.processedJson.type,ae=P.props.processedJson.orientation||(X==="container"?"vertical":"horizontal"),$e=P.childs.indexOf(oe);let be;ae==="horizontal"&&ze.x!==0?be=$e+ze.x:ae==="vertical"&&ze.y!==0&&(be=$e+ze.y),be!==void 0&&be>=0&&be<=P.childs.length&&E.pushCommand(new Jl(E,{leafId:oe.id,newParentId:P.id,insertIndex:be}))}function dt(oe,ze){var Le;const P=oe.parent;if(!P)return;const X=oe.props.processedJson,$e=oe.props.node.getBoundingClientRect(),be=P.props.node.getBoundingClientRect(),Be=ze.x?"width":"height";(Le=X[Be])==null||Le.type;const re=be[Be==="width"?"right":"bottom"]-$e[Be==="width"?"left":"top"],je=$e[Be],Me=Math.max(0,Math.min(re,Math.round(je+ze[Be==="width"?"x":"y"])));Math.abs(je-Me)>=1&&E.pushCommand(new ir(r,[{leafId:oe.id,property:Be,value:Me===re?{type:"match_parent"}:{type:"fixed",value:Me}}]))}function Ye(oe){const ze=o;if(!ze||s)return;const P=PL.isPressed(oe)||wp.isPressed(oe),X=IL.isPressed(oe)||$p.isPressed(oe),ae=DL.isPressed(oe)||kp.isPressed(oe),$e=VL.isPressed(oe)||jp.isPressed(oe),be=wp.isPressed(oe)||$p.isPressed(oe)||kp.isPressed(oe)||jp.isPressed(oe),Be=LL.isPressed(oe)||Sp.isPressed(oe),re=FL.isPressed(oe)||Tp.isPressed(oe),je=NL.isPressed(oe)||Cp.isPressed(oe),Me=qL.isPressed(oe)||zp.isPressed(oe),Le=Sp.isPressed(oe)||Tp.isPressed(oe)||Cp.isPressed(oe)||zp.isPressed(oe);if(S1.isPressed(oe))ze.parent&&E.deleteLeaf(ze);else if(P||X||ae||$e){const ut={x:$e?1:ae?-1:0,y:X?1:P?-1:0};ze.parent===r?(be&&(ut.x*=Sg,ut.y*=Sg),Ft(ze,ut)):xt(ze,ut)}else if(Be||re||je||Me){const ut={x:Me?1:je?-1:0,y:re?1:Be?-1:0};Le&&(ut.x*=Tg,ut.y*=Tg),dt(ze,ut)}else if(z1.isPressed(oe))Nn();else if(E1.isPressed(oe))Bt();else if(Eu.isPressed(oe))ht();else return;oe.preventDefault(),oe.stopPropagation()}let bi=0,hi=0,Bn=null;function eo(oe){bi=oe.pageX,hi=oe.pageY,Bn=o}function Tt(oe){const ze=(oe.pageX-bi)*(oe.pageX-bi)+(oe.pageY-hi)*(oe.pageY-hi);oe.target===rt&&ze<64&&Bn&&Bn===o&&Y.set(null)}function Wn(oe){var In,Dn,Un;if(pe)return;const ze=o;if(!ze)return;const P=ze.props.json,X=ze.props.processedJson,ae=hn(X).text;if(!(P.type==="text"||P.type in Ji&&Ji[P.type].inlineTextEditorProp))return;const $e=ze.props.node;if(!$e)return;rt.focus({preventScroll:!0}),Y.set(ze),x.set($e),ce.set(null),ue.set(null),se.set(null),oe.preventDefault();const be=((In=X.transform)==null?void 0:In.rotation)||0,Be=$e.style.transform;$e.style.transform="";const re=$e.getBoundingClientRect();$e.style.transform=Be;const je=getComputedStyle($e),Me=Xe.getBoundingClientRect(),Le=parseFloat(je.width),ut=parseFloat(je.height),Ze=parseFloat(je.paddingTop),Ct=parseFloat(je.paddingRight),fn=parseFloat(je.paddingBottom),Ht=parseFloat(je.paddingLeft),Mn=re.left-Me.left+Ht,Qt=re.top-Me.top+Ze,Pn=$e.parentElement.getBoundingClientRect();n(51,pe=$e.cloneNode(!0)),pe.classList.add("renderer__component-clone"),pe.classList.add("renderer__component-clone_inplace"),n(51,pe.style.transform=`translate(${re.left-Me.left}px, ${re.top-Me.top}px) rotate(${be}deg)`,pe),n(51,pe.style.paddingRight=`${Ct}px`,pe),n(51,pe.style.paddingLeft=`${Ht}px`,pe),n(51,pe.style.width=`${Math.ceil(Le-Ht-Ct)}px`,pe),n(51,pe.style.height=`${Math.ceil(ut-Ze-fn)}px`,pe),n(51,pe.style.fontSize=je.fontSize,pe),Array.from(pe.children).forEach((ri=>{ri instanceof HTMLElement&&(ri.style.opacity="0")})),Xe.appendChild(pe);const _n={left:`${re.left+Ht}px`,top:`${re.top+Ze}px`,width:`${Math.ceil(Le-Ht-Ct)}px`,maxWidth:`${Pn.right-re.left-Ht-Ct}px`,fontSize:je.fontSize};((Dn=ze.props.processedJson.width)==null?void 0:Dn.type)==="wrap_content"&&(_n.width="max-content",ze.props.processedJson.width.constrained||(_n.maxWidth="")),et={top:Qt+Me.top,left:Mn+Me.left,right:Mn+Le+Me.left,bottom:Qt+ut+Me.top,width:Le,height:ut},n(4,we=be),$e.style.opacity="0",n(54,gt=!0);let Pt=P.text;const jn=E.getTankerKey(Pt);jn&&(Pt=((Un=u[jn])==null?void 0:Un[d])||"",!Pt)||M().show({text:jn?Pt:ae,json:X,leaf:ze,rotation:be,disabled:s,textDisabled:s||!!jn||Pt!==ae,style:_n,onResoze:gi,callback:rn})}function gi(oe){pe&&(n(51,pe.style.width=oe.width+"px",pe),n(51,pe.style.height=oe.height+"px",pe))}function rn(oe){n(54,gt=!1),pe&&(Xe.removeChild(pe),n(51,pe=null));const ze=oe.text,P=oe.ranges,X=oe.images,ae=oe.textAlign,$e=oe.leaf.props.processedJson.text,be=hn({text:$e}).text,Be=oe.leaf.props.json,re=oe.leaf.props.node,je=Be.type==="text"?"text":Ji[Be.type].inlineTextEditorProp;if(re.style.opacity="",s||!je)return;const Me={text:Be.text,ranges:Be.ranges,images:Be.images,textAlign:Be.text_alignment_horizontal||"left"},Le=E.getTankerKey(Be.text);let ut=!1;const Ze={},Ct=Le||$e!==be;Ze.text=Ct?Me.text:ze,Ze.textAlign=ae;const fn=[];if(P.length)if(P[0].start===0&&P[P.length-1].end===ze.length){const Ht=P[0];for(const Qt in Ht)Qt!=="start"&&Qt!=="end"&&Be[Qt]!==Ht[Qt]&&(fn.push({property:Qt,value:Ht[Qt]}),ut=!0);const Mn=P.filter((Qt=>!Rte(Qt,Ht)));Mn.length&&(Mn.forEach((Qt=>{for(const Pn in Qt)Pn!=="start"&&Pn!=="end"&&Qt[Pn]===Ht[Pn]&&delete Qt[Pn]})),Ze.ranges=Mn)}else Ze.ranges=P;X.length&&(Ze.images=X),(ut||!ca(Me,Ze))&&E.pushCommand(new ir(r,[{leafId:oe.leaf.id,property:je,value:Ze.text},{leafId:oe.leaf.id,property:"ranges",value:Ze.ranges},{leafId:oe.leaf.id,property:"images",value:Ze.images},{leafId:oe.leaf.id,property:"text_alignment_horizontal",value:Ze.textAlign!=="left"?Ze.textAlign:void 0},...fn.map((Ht=>({leafId:oe.leaf.id,property:Ht.property,value:Ht.value})))]))}function Nn(){o&&N.set(o)}function Bt(){o&&c&&E.pasteLeaf(c,o)}function vn(){var je;const oe=o,ze=a;if(!oe||!ze)return;const P=oe.props.json,X=oe.props.processedJson;if(!X)return;let ae,$e,be;if(P.type==="_template_lottie")ae="lottie",$e=l("props.lottie_url"),be=((je=P.lottie_params)==null?void 0:je.lottie_url)||"";else if(X.type==="image")ae="image",$e=l("props.image_url"),be=X.image_url;else if(X.type==="gif")ae="gif",$e=l("props.image_url"),be=X.gif_url;else return;const Be=hn({url:be}).url,re=Be!==be;D().show({target:ze,title:$e,value:{url:Be},subtype:ae,hasSize:!1,disabled:s||re,callback(Me){let Le;ae==="image"?Le="image_url":ae==="gif"?Le="gif_url":ae==="lottie"&&(Le="lottie_params.lottie_url"),Le&&E.pushCommand(new ir(r,[{leafId:oe.id,property:Le,value:Me.url}]))}})}function un(){if(!gt)return;const oe=o,ze=oe==null?void 0:oe.props.node;if(!ze)return;const P=ze.getBoundingClientRect(),X=getComputedStyle(ze),ae=parseFloat(X.paddingTop),$e=parseFloat(X.paddingLeft);M().setPosition(`${P.left+$e}px`,`${P.top+ae}px`)}Js((()=>{Qe==null||Qe.$destroy()}));function En(oe){pt[oe?"unshift":"push"]((()=>{de=oe,n(0,de)}))}function Yn(oe){pt[oe?"unshift":"push"]((()=>{U=oe,n(3,U)}))}const Ce=oe=>St(oe,"down-right"),bn=oe=>St(oe,"right"),ft=oe=>St(oe,"down");function C(oe){pt[oe?"unshift":"push"]((()=>{Xe=oe,n(5,Xe)}))}const Mt=(oe,ze)=>nn(ze,"column",oe),An=(oe,ze)=>nn(ze,"row",oe),Ni=oe=>Ot(oe,"down-right"),mi=oe=>Ot(oe,"right"),Ne=oe=>Ot(oe,"down");function Ii(oe){pt[oe?"unshift":"push"]((()=>{rt=oe,n(2,rt)}))}return t.$$set=oe=>{"viewport"in oe&&n(49,w=oe.viewport),"theme"in oe&&n(50,k=oe.theme)},t.$$.update=()=>{var oe,ze,P;if(t.$$.dirty[1]&262144&&n(13,i=w.split("x").map(Number)),t.$$.dirty[1]&4194304|t.$$.dirty[2]&4&&v&&Qe&&(Qe.$destroy(),n(53,Qe=void 0)),t.$$.dirty[1]&4194304|t.$$.dirty[2]&2&&g&&Qe&&(Qe.$destroy(),n(53,Qe=void 0)),t.$$.dirty[1]&1077936128&&_&&Qe&&(Qe.$destroy(),n(53,Qe=void 0)),t.$$.dirty[0]&2|t.$$.dirty[1]&667942912|t.$$.dirty[2]&24&&Qe&&li(p,a,pe,Kt,gt,b,y,Cg,ee,pn),t.$$.dirty[1]&4456448&&Qe&&w&&ur().then(wt),t.$$.dirty[1]&606076928){vt&&(vt.disconnect(),n(52,vt=null));const X=[...new Set([...p||[],a].filter(kr))];if(X.length){const ae=n(52,vt=new ResizeObserver(wt));X.forEach(($e=>{ae.observe($e)}))}}t.$$.dirty[0]&1|t.$$.dirty[1]&1476919296|t.$$.dirty[2]&1&&(P=(ze=(oe=f.object.card)==null?void 0:oe.states)==null?void 0:ze[0])!=null&&P.div&&de&&d!==void 0&&bt(f.object,u,d,k,_)},[de,Kt,rt,U,we,Xe,fe,me,ve,Ge,Je,Sn,Fn,i,s,l,A,J,B,z,q,N,Y,x,ue,Z,Q,Oe,W,ge,it,ye,Jt,Lt,$n,Kn,fi,Ke,qt,St,Ot,nn,ei,Ye,eo,Tt,Wn,vn,un,w,k,pe,vt,Qe,gt,ee,pn,a,d,u,p,_,f,g,v,y,b,En,Yn,Ce,bn,ft,C,Mt,An,Ni,mi,Ne,Ii]}class sne extends Gt{constructor(e){super(),Yt(this,e,rne,one,Rt,{viewport:49,theme:50},null,[-1,-1,-1,-1,-1])}}function lne(t){let e,n,i,o;const r=t[4].default,s=qs(r,t,t[3],null);return{c(){e=S("button"),s&&s.c(),h(e,"class","canvas-button svelte-86ydbs"),e.disabled=t[2],h(e,"aria-label",t[1]),h(e,"data-custom-tooltip",t[1])},m(l,a){F(l,e,a),s&&s.m(e,null),t[6](e),n=!0,i||(o=te(e,"click",t[5]),i=!0)},p(l,[a]){s&&s.p&&(!n||a&8)&&Bs(s,r,l,l[3],n?Rs(r,l[3],a,null):Hs(l[3]),null),(!n||a&4)&&(e.disabled=l[2]),(!n||a&2)&&h(e,"aria-label",l[1]),(!n||a&2)&&h(e,"data-custom-tooltip",l[1])},i(l){n||(I(s,l),n=!0)},o(l){H(s,l),n=!1},d(l){l&&V(e),s&&s.d(l),t[6](null),i=!1,o()}}}function ane(t,e,n){let{$$slots:i={},$$scope:o}=e,{node:r=void 0}=e,{title:s}=e,{disabled:l=!1}=e;function a(d){mn.call(this,t,d)}function c(d){pt[d?"unshift":"push"]((()=>{r=d,n(0,r)}))}return t.$$set=d=>{"node"in d&&n(0,r=d.node),"title"in d&&n(1,s=d.title),"disabled"in d&&n(2,l=d.disabled),"$$scope"in d&&n(3,o=d.$$scope)},[r,s,l,o,i,a,c]}class Xl extends Gt{constructor(e){super(),Yt(this,e,ane,lne,Rt,{node:0,title:1,disabled:2})}}const Fs="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%3e%3cpath%20fill='%23fff'%20d='M15.106.409a1%201%200%200%200-1.224.707l-.647%202.415a1%201%200%201%200%201.931.517l.647-2.414a1%201%200%200%200-.707-1.225ZM5.5%2011.999a6.5%206.5%200%201%200%2013%20.001%206.5%206.5%200%200%200-13%200Zm11%200a4.5%204.5%200%201%201-9%200%204.5%204.5%200%200%201%209%200Zm-7.665%207.952a1%201%200%201%201%201.931.518l-.647%202.415a1%201%200%201%201-1.931-.518l.647-2.415Zm-4.696-4.567a1%201%200%200%201%201%201.732l-2.165%201.25a1%201%200%200%201-1-1.732l2.165-1.25ZM22.393%206a1%201%200%200%200-1.366-.366l-2.165%201.25a1%201%200%200%200%201%201.732l2.165-1.25A1%201%200%200%200%2022.393%206ZM4.049%208.834a1%201%200%201%201-.518%201.932l-2.415-.647a1%201%200%200%201%20.518-1.932l2.415.647Zm19.543%206.272a1%201%200%200%200-.708-1.225l-2.414-.647a1%201%200%201%200-.518%201.932l2.415.647a1%201%200%200%200%201.224-.707ZM8.615%204.139a1%201%200%201%201-1.732%201l-1.25-2.165a1%201%200%201%201%201.732-1l1.25%202.165ZM18%2022.392a1%201%200%200%200%20.366-1.366l-1.25-2.165a1%201%200%200%200-1.732%201l1.25%202.165a1%201%200%200%200%201.366.366Z'/%3e%3c/svg%3e",Ns="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%3e%3cpath%20fill='%23fff'%20d='M3.515%2017.886c2.438%203.06%207.034%204.63%2010.866%203.601%205.28-1.417%208.413-6.855%206.998-12.145-1.027-3.841-4.681-7.045-8.546-7.63a.991.991%200%200%200-1.019%201.45c1.87%203.48%202.024%206.459.53%209.05-1.492%202.591-4.143%203.947-8.085%204.064a.992.992%200%200%200-.744%201.61Zm15.952-8.031c1.132%204.232-1.374%208.582-5.598%209.716-2.408.647-5.678.002-7.739-1.5%203.437-.55%206.382-2.183%207.929-4.868%201.547-2.684%201.479-6.05.235-9.308%202.328%201.037%204.528%203.546%205.173%205.96Z'/%3e%3c/svg%3e",zg="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='18'%20height='18'%20fill='none'%3e%3cpath%20fill='%23FC3F6C'%20d='M9%2017.333A8.333%208.333%200%201%200%209%20.666a8.333%208.333%200%200%200%200%2016.667ZM5.169%205.168a.833.833%200%200%201%201.179%200L9%207.821l2.652-2.653a.833.833%200%201%201%201.179%201.179l-2.653%202.652%202.653%202.653a.833.833%200%201%201-1.179%201.178L9%2010.178%206.348%2012.83a.833.833%200%200%201-1.179-1.178l2.652-2.653L5.17%206.347a.833.833%200%200%201%200-1.179Z'/%3e%3c/svg%3e",Eg="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='18'%20height='18'%20fill='none'%3e%3cpath%20fill='%23FF003D'%20d='M9%2017.333A8.333%208.333%200%201%200%209%20.666a8.333%208.333%200%200%200%200%2016.667ZM5.169%205.168a.833.833%200%200%201%201.179%200L9%207.821l2.652-2.653a.833.833%200%201%201%201.179%201.179l-2.653%202.652%202.653%202.653a.833.833%200%201%201-1.179%201.178L9%2010.178%206.348%2012.83a.833.833%200%200%201-1.179-1.178l2.652-2.653L5.17%206.347a.833.833%200%200%201%200-1.179Z'/%3e%3c/svg%3e",cne="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20'%20fill='none'%3e%3cpath%20fill='%23FF9000'%20fill-rule='evenodd'%20d='M8.576%202.969c-1.039.462-1.835%201.84-3.426%204.597l-1.126%201.95c-1.591%202.757-2.387%204.135-2.268%205.266a3.5%203.5%200%200%200%201.423%202.466c.92.668%202.512.668%205.695.668h2.252c3.183%200%204.774%200%205.694-.668a3.5%203.5%200%200%200%201.424-2.466c.119-1.131-.677-2.51-2.269-5.266l-1.125-1.95c-1.592-2.757-2.388-4.135-3.427-4.597a3.5%203.5%200%200%200-2.847%200Zm2.257%203.853a.833.833%200%200%200-1.667%200v4.01a.833.833%200%200%200%201.667%200v-4.01Zm.334%207.344a1.167%201.167%200%201%201-2.334%200%201.167%201.167%200%200%201%202.334%200Z'%20clip-rule='evenodd'/%3e%3c/svg%3e",dne="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='36'%20height='36'%3e%3cpath%20fill='none'%20stroke='%23fff'%20stroke-linecap='round'%20stroke-width='2'%20d='m6.105%2012.21%204.622-2.345m.4%2015.716s7.285.058%2010.619.01c4.37-.062%207.988-1.943%208.036-6.722.05-5.057-4.933-6.637-8.568-6.7-4.903-.084-15.11.04-15.11.04l4.628%202.212'/%3e%3c/svg%3e",une="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='36'%20height='36'%3e%3cpath%20fill='none'%20stroke='%23fff'%20stroke-linecap='round'%20stroke-width='2'%20d='m29.77%2012.21-4.623-2.345m-.4%2015.716s-7.285.058-10.618.01c-4.37-.062-7.989-1.943-8.037-6.722-.05-5.057%204.933-6.637%208.568-6.7%204.904-.084%2015.11.04%2015.11.04l-4.627%202.212'/%3e%3c/svg%3e",Ag=["B","KB","MB","GB","TB"];function Ec(t){if(t<1)return"";let e=0;for(;t>1024&&e+1<Ag.length;)++e,t/=1024;return Vs(t,1)+" "+Ag[e]}const Og=new Map;function tp(t,e){const n=Og.get(t||"");if(n)return n;if(e==="image_preview"||!t||t.startsWith("data:"))return Promise.resolve(String(t||"").length);const i=fetch(t).then((o=>o.blob())).then((o=>o.size));return Og.set(t,i),i}function Ac(t,e,n,i,o){if(!t||t<1)return"";if(o){const r=o[e];return r?r.error!==void 0&&t>r.error?"error":r.warn!==void 0&&t>r.warn?"warn":"":""}return t>i?"error":t>n?"warn":""}const pne=t=>({}),Mg=t=>({});function _ne(t){let e,n,i;return{c(){e=S("input"),h(e,"type","number"),h(e,"min",t[2]),h(e,"max",t[3]),h(e,"step",t[25]),e.required=t[4],h(e,"pattern",t[24]),h(e,"class","text__input svelte-18nxxyc"),h(e,"autocomplete","off"),h(e,"autocorrect","off"),h(e,"autocapitalize","off"),h(e,"spellcheck","false"),h(e,"id",t[0]),h(e,"placeholder",t[6]),e.disabled=t[9],ne(e,"text__input_percent",t[1]==="percent"),ne(e,"text__input_angle",t[1]==="angle")},m(o,r){F(o,e,r),Hn(e,t[17]),n||(i=[te(e,"input",t[46]),te(e,"input",t[28]),te(e,"focus",t[29]),te(e,"blur",t[30]),te(e,"focus",t[43]),te(e,"blur",t[44])],n=!0)},p(o,r){r[0]&4&&h(e,"min",o[2]),r[0]&8&&h(e,"max",o[3]),r[0]&33554432&&h(e,"step",o[25]),r[0]&16&&(e.required=o[4]),r[0]&16777216&&h(e,"pattern",o[24]),r[0]&1&&h(e,"id",o[0]),r[0]&64&&h(e,"placeholder",o[6]),r[0]&512&&(e.disabled=o[9]),r[0]&131072&&Ui(e.value)!==o[17]&&Hn(e,o[17]),r[0]&2&&ne(e,"text__input_percent",o[1]==="percent"),r[0]&2&&ne(e,"text__input_angle",o[1]==="angle")},d(o){o&&V(e),n=!1,Rn(i)}}}function fne(t){let e,n,i;return{c(){e=S("input"),h(e,"type","text"),h(e,"pattern",t[24]),h(e,"class","text__input svelte-18nxxyc"),h(e,"autocomplete","off"),h(e,"autocorrect","off"),h(e,"autocapitalize","off"),h(e,"spellcheck","false"),h(e,"id",t[0]),h(e,"placeholder",t[6]),e.disabled=t[9],ne(e,"text__input_percent",t[1]==="percent"),ne(e,"text__input_angle",t[1]==="angle")},m(o,r){F(o,e,r),Hn(e,t[17]),n||(i=[te(e,"input",t[45]),te(e,"input",t[28]),te(e,"focus",t[29]),te(e,"blur",t[30]),te(e,"focus",t[41]),te(e,"blur",t[42])],n=!0)},p(o,r){r[0]&16777216&&h(e,"pattern",o[24]),r[0]&1&&h(e,"id",o[0]),r[0]&64&&h(e,"placeholder",o[6]),r[0]&512&&(e.disabled=o[9]),r[0]&131072&&e.value!==o[17]&&Hn(e,o[17]),r[0]&2&&ne(e,"text__input_percent",o[1]==="percent"),r[0]&2&&ne(e,"text__input_angle",o[1]==="angle")},d(o){o&&V(e),n=!1,Rn(i)}}}function Pg(t){let e;function n(r,s){if(r[1]==="percent")return gne;if(r[1]==="angle")return mne}let i=n(t),o=i&&i(t);return{c(){e=S("div"),o&&o.c(),h(e,"class","text__symbol svelte-18nxxyc"),h(e,"aria-hidden","true")},m(r,s){F(r,e,s),o&&o.m(e,null)},p(r,s){i!==(i=n(r))&&(o&&o.d(1),o=i&&i(r),o&&(o.c(),o.m(e,null)))},d(r){r&&V(e),o&&o.d()}}}function mne(t){let e;return{c(){e=xe("°")},m(n,i){F(n,e,i)},d(n){n&&V(e)}}}function gne(t){let e;return{c(){e=xe("%")},m(n,i){F(n,e,i)},d(n){n&&V(e)}}}function Ig(t){let e,n,i,o,r=t[14]&&t[14]>0&&Dg(t);return{c(){r&&r.c(),e=G(),n=S("button"),n.innerHTML='<div class="text__more-icon svelte-18nxxyc"></div>',h(n,"class","text__more svelte-18nxxyc")},m(s,l){r&&r.m(s,l),F(s,e,l),F(s,n,l),i||(o=te(n,"click",t[31]),i=!0)},p(s,l){s[14]&&s[14]>0?r?r.p(s,l):(r=Dg(s),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null)},d(s){s&&(V(e),V(n)),r&&r.d(s),i=!1,o()}}}function Dg(t){let e,n=Ec(t[14])+"",i,o,r;return{c(){e=S("div"),i=xe(n),h(e,"class","text__size-label svelte-18nxxyc"),h(e,"data-custom-tooltip",o=t[23]?t[26]("file.too_big"):void 0),_o((()=>t[47].call(e))),ne(e,"text__size-label_error",t[23]==="error"),ne(e,"text__size-label_warn",t[23]==="warn")},m(s,l){F(s,e,l),$(e,i),r=Tu(e,t[47].bind(e))},p(s,l){l[0]&16384&&n!==(n=Ec(s[14])+"")&&at(i,n),l[0]&75497472&&o!==(o=s[23]?s[26]("file.too_big"):void 0)&&h(e,"data-custom-tooltip",o),l[0]&8388608&&ne(e,"text__size-label_error",s[23]==="error"),l[0]&8388608&&ne(e,"text__size-label_warn",s[23]==="warn")},d(s){s&&V(e),r()}}}function Vg(t){let e,n;return{c(){e=S("div"),n=xe(t[7]),h(e,"class","text__inline-label svelte-18nxxyc")},m(i,o){F(i,e,o),$(e,n)},p(i,o){o[0]&128&&at(n,i[7])},d(i){i&&V(e)}}}function hne(t){let e,n,i,o,r,s,l,a,c=`${t[22]}px`,d;function u(b,w){return b[21]==="text"?fne:_ne}let p=u(t),_=p(t),f=(t[1]==="percent"||t[1]==="angle")&&Pg(t),m=t[1]==="file"&&Ig(t),g=t[7]&&Vg(t);const v=t[40].button,y=qs(v,t,t[39],Mg);return{c(){e=S("div"),_.c(),n=G(),f&&f.c(),i=G(),m&&m.c(),o=G(),g&&g.c(),r=G(),s=S("div"),y&&y.c(),h(s,"class","text__custom-buttons svelte-18nxxyc"),_o((()=>t[48].call(s))),h(e,"class",a="text "+t[5]+" text_size_"+t[10]+" text_width_"+t[11]+" svelte-18nxxyc"),h(e,"title",t[12]),h(e,"aria-label",t[13]),h(e,"data-custom-tooltip",t[13]),ne(e,"text_more",t[1]==="file"),ne(e,"text_inline-label",!!t[7]),ne(e,"text_button",t[8]),ne(e,"text_disabled",t[9]),ne(e,"text_error",!!(t[12]||t[19]||t[20])),ke(e,"--inline-size-width",c)},m(b,w){F(b,e,w),_.m(e,null),$(e,n),f&&f.m(e,null),$(e,i),m&&m.m(e,null),$(e,o),g&&g.m(e,null),$(e,r),$(e,s),y&&y.m(s,null),l=Tu(s,t[48].bind(s)),t[49](e),d=!0},p(b,w){p===(p=u(b))&&_?_.p(b,w):(_.d(1),_=p(b),_&&(_.c(),_.m(e,n))),b[1]==="percent"||b[1]==="angle"?f?f.p(b,w):(f=Pg(b),f.c(),f.m(e,i)):f&&(f.d(1),f=null),b[1]==="file"?m?m.p(b,w):(m=Ig(b),m.c(),m.m(e,o)):m&&(m.d(1),m=null),b[7]?g?g.p(b,w):(g=Vg(b),g.c(),g.m(e,r)):g&&(g.d(1),g=null),y&&y.p&&(!d||w[1]&256)&&Bs(y,v,b,b[39],d?Rs(v,b[39],w,pne):Hs(b[39]),Mg),(!d||w[0]&3104&&a!==(a="text "+b[5]+" text_size_"+b[10]+" text_width_"+b[11]+" svelte-18nxxyc"))&&h(e,"class",a),(!d||w[0]&4096)&&h(e,"title",b[12]),(!d||w[0]&8192)&&h(e,"aria-label",b[13]),(!d||w[0]&8192)&&h(e,"data-custom-tooltip",b[13]),(!d||w[0]&3106)&&ne(e,"text_more",b[1]==="file"),(!d||w[0]&3232)&&ne(e,"text_inline-label",!!b[7]),(!d||w[0]&3360)&&ne(e,"text_button",b[8]),(!d||w[0]&3616)&&ne(e,"text_disabled",b[9]),(!d||w[0]&1580064)&&ne(e,"text_error",!!(b[12]||b[19]||b[20])),w[0]&4194304&&c!==(c=`${b[22]}px`)&&ke(e,"--inline-size-width",c)},i(b){d||(I(y,b),d=!0)},o(b){H(y,b),d=!1},d(b){b&&V(e),_.d(),f&&f.d(),m&&m.d(),g&&g.d(),y&&y.d(b),l(),t[49](null)}}}const Lg={"":"image",image:"image",gif:"image",lottie:"lottie",video:"video",image_preview:"preview"};function vne(t,e,n){let i,o,r,s,l,a,{$$slots:c={},$$scope:d}=e,{id:u=""}=e,{value:p}=e,{subtype:_=""}=e,{fileType:f=""}=e,{min:m=void 0}=e,{max:g=void 0}=e,{required:v=!1}=e,{anyStep:y=!1}=e,{mix:b=""}=e,{placeholder:w=""}=e,{inlineLabel:k=""}=e,{hasButton:A=!1}=e,{disabled:j=!1}=e,{defaultValue:T=void 0}=e,{size:E="medium"}=e,{width:O="auto"}=e,{pattern:M=null}=e,{error:D=""}=e,{title:R=""}=e,{generateFromVideo:J=void 0}=e,{generateFromLottie:B=void 0}=e;const z=_i(),{l10nString:q}=yt(oi);De(t,q,(ee=>n(26,a=ee)));const{file2Dialog:N,warnFileLimit:Y,errorFileLimit:x,previewWarnFileLimit:ce,previewErrorFileLimit:ue,fileLimits:Z}=yt(Cn);let Q=0,se,_e=!1,Oe=!1,W=!1,ge,it=0,ye=0;function rt(ee,Je,We){W||(ee==="percent"?n(17,Q=Math.round(Number(Je||We||0)*100)):ee==="integer"||ee==="number"||ee==="angle"?n(17,Q=Number(Je||We||0)):ee==="dict"||ee==="array"?n(17,Q=typeof Je=="string"?Je:JSON.stringify(Je)):n(17,Q=Je||We||""),we(),n(20,Oe=!Q&&v))}function U(){if(i==="number"){if(Q!==null){let ee=Number(Q);_==="percent"&&(ee/=100),n(32,p=ee)}}else if(_==="dict"||_==="array"){const ee=String(Q);if(_==="dict"&&!ee.startsWith("{"))n(19,_e=!0);else if(_==="array"&&!ee.startsWith("["))n(19,_e=!0);else try{n(32,p=JSON.parse(String(Q))),n(19,_e=!1)}catch{n(19,_e=!0)}}else n(32,p=Q);we(),n(20,Oe=!p&&v),z("change",{value:p})}function de(){W=!0}function pe(){W=!1}function et(){f&&N().show({title:a(f==="video"?"props.video_sources":"props.image_url"),target:se,subtype:f,value:{url:p?String(p):""},disabled:j,generateFromVideo:J,generateFromLottie:B,callback(ee){n(32,p=ee.url),z("change",{value:p})}})}function we(){if(!f||!p){n(14,ge=void 0);return}tp(String(p),f).then((ee=>{n(14,ge=ee)}))}function Ie(ee){mn.call(this,t,ee)}function Xe(ee){mn.call(this,t,ee)}function vt(ee){mn.call(this,t,ee)}function Qe(ee){mn.call(this,t,ee)}function fe(){Q=this.value,n(17,Q)}function me(){Q=Ui(this.value),n(17,Q)}function ve(){it=this.offsetWidth,n(15,it)}function Ge(){ye=this.offsetWidth,n(16,ye)}function gt(ee){pt[ee?"unshift":"push"]((()=>{se=ee,n(18,se)}))}return t.$$set=ee=>{"id"in ee&&n(0,u=ee.id),"value"in ee&&n(32,p=ee.value),"subtype"in ee&&n(1,_=ee.subtype),"fileType"in ee&&n(33,f=ee.fileType),"min"in ee&&n(2,m=ee.min),"max"in ee&&n(3,g=ee.max),"required"in ee&&n(4,v=ee.required),"anyStep"in ee&&n(34,y=ee.anyStep),"mix"in ee&&n(5,b=ee.mix),"placeholder"in ee&&n(6,w=ee.placeholder),"inlineLabel"in ee&&n(7,k=ee.inlineLabel),"hasButton"in ee&&n(8,A=ee.hasButton),"disabled"in ee&&n(9,j=ee.disabled),"defaultValue"in ee&&n(35,T=ee.defaultValue),"size"in ee&&n(10,E=ee.size),"width"in ee&&n(11,O=ee.width),"pattern"in ee&&n(36,M=ee.pattern),"error"in ee&&n(12,D=ee.error),"title"in ee&&n(13,R=ee.title),"generateFromVideo"in ee&&n(37,J=ee.generateFromVideo),"generateFromLottie"in ee&&n(38,B=ee.generateFromLottie),"$$scope"in ee&&n(39,d=ee.$$scope)},t.$$.update=()=>{t.$$.dirty[0]&2|t.$$.dirty[1]&18&&rt(_,p,T),t.$$.dirty[0]&2&&n(21,i=_==="angle"||_==="integer"||_==="number"||_==="percent"?"number":"text"),t.$$.dirty[0]&2|t.$$.dirty[1]&8&&n(25,o=y?"any":_==="integer"||_==="percent"||_==="angle"?1:.01),t.$$.dirty[0]&2|t.$$.dirty[1]&32&&n(24,r=_==="integer"||_==="percent"||_==="angle"?"\\d+":M),t.$$.dirty[0]&16384|t.$$.dirty[1]&4&&n(23,s=f==="image_preview"?Ac(ge,Lg[f],ce,ue,Z):Ac(ge,Lg[f],Y,x,Z)),t.$$.dirty[0]&114688&&n(22,l=(ge&&ge>0&&it>0?it:0)+ye)},[u,_,m,g,v,b,w,k,A,j,E,O,D,R,ge,it,ye,Q,se,_e,Oe,i,l,s,r,o,a,q,U,de,pe,et,p,f,y,T,M,J,B,d,c,Ie,Xe,vt,Qe,fe,me,ve,Ge,gt]}class ho extends Gt{constructor(e){super(),Yt(this,e,vne,hne,Rt,{id:0,value:32,subtype:1,fileType:33,min:2,max:3,required:4,anyStep:34,mix:5,placeholder:6,inlineLabel:7,hasButton:8,disabled:9,defaultValue:35,size:10,width:11,pattern:36,error:12,title:13,generateFromVideo:37,generateFromLottie:38},null,[-1,-1])}}const{window:Pd}=va;function Fg(t){let e,n,i;return{c(){e=S("button"),h(e,"class","context-dialog__close svelte-fg159l")},m(o,r){F(o,e,r),n||(i=te(e,"click",t[18]),n=!0)},p:tn,d(o){o&&V(e),n=!1,i()}}}function bne(t){let e,n,i,o,r=`${t[10]}px`,s=`${t[11]}px`,l,a,c;const d=t[29].default,u=qs(d,t,t[28],null);let p=t[0]&&Fg(t);return{c(){e=S("dialog"),n=S("div"),u&&u.c(),i=G(),p&&p.c(),h(n,"class","context-dialog__content svelte-fg159l"),h(e,"class",o="context-dialog context-dialog_direction_"+t[1]+" svelte-fg159l"),ne(e,"context-dialog_hidden",t[12]),ne(e,"context-dialog_hiding",t[8]),ne(e,"context-dialog_disable-animation",t[13]||t[14]),ne(e,"context-dialog_wide",t[5]),ne(e,"context-dialog_fully-showed",t[9]),ne(e,"context-dialog_overflow_visible",t[3]==="visible"),ke(e,"left",r),ke(e,"top",s),ke(e,"width",t[2])},m(_,f){F(_,e,f),$(e,n),u&&u.m(n,null),$(n,i),p&&p.m(n,null),t[30](n),t[31](e),l=!0,a||(c=[te(Pd,"pointerdown",t[20]),te(Pd,"click",t[21]),te(Pd,"resize",t[15]),te(n,"pointerdown",(function(){Yo(t[4]?t[23]:null)&&(t[4]?t[23]:null).apply(this,arguments)})),te(e,"click",t[16]),te(e,"close",t[17]),te(e,"animationend",t[19]),te(e,"keydown",t[22])],a=!0)},p(_,f){t=_,u&&u.p&&(!l||f[0]&268435456)&&Bs(u,d,t,t[28],l?Rs(d,t[28],f,null):Hs(t[28]),null),t[0]?p?p.p(t,f):(p=Fg(t),p.c(),p.m(n,null)):p&&(p.d(1),p=null),(!l||f[0]&2&&o!==(o="context-dialog context-dialog_direction_"+t[1]+" svelte-fg159l"))&&h(e,"class",o),(!l||f[0]&4098)&&ne(e,"context-dialog_hidden",t[12]),(!l||f[0]&258)&&ne(e,"context-dialog_hiding",t[8]),(!l||f[0]&24578)&&ne(e,"context-dialog_disable-animation",t[13]||t[14]),(!l||f[0]&34)&&ne(e,"context-dialog_wide",t[5]),(!l||f[0]&514)&&ne(e,"context-dialog_fully-showed",t[9]),(!l||f[0]&10)&&ne(e,"context-dialog_overflow_visible",t[3]==="visible"),f[0]&1024&&r!==(r=`${t[10]}px`)&&ke(e,"left",r),f[0]&2048&&s!==(s=`${t[11]}px`)&&ke(e,"top",s),f[0]&4&&ke(e,"width",t[2])},i(_){l||(I(u,_),l=!0)},o(_){H(u,_),l=!1},d(_){_&&V(e),u&&u.d(_),p&&p.d(),t[30](null),t[31](null),a=!1,Rn(c)}}}const Ng=16;function yne(t,e,n){let{$$slots:i={},$$scope:o}=e,{target:r}=e,{hasClose:s=!1}=e,{direction:l="auto"}=e,{width:a=""}=e,{overflow:c="hidden"}=e,{canMove:d=!1}=e,{offset:u=38}=e,{offsetY:p=0}=e,{wide:_=!1}=e;function f(){n(8,k=!0)}const m=_i();function g(){if(y){if(D){const se=y.getBoundingClientRect();if(se.left>=0&&se.top>=0&&se.right<=window.innerWidth&&se.bottom<=window.innerHeight)return}n(10,[j,T]=z(),j,n(11,T)),n(12,E=!1),D=!1}}const v=new ResizeObserver(g);let y,b,w=!1,k=!1,A=!1,j=0,T=0,E=!0,O=!1,M=!1,D=!1;function R(se){se.target===y&&w&&n(8,k=!0)}function J(){n(12,E=!0),v.unobserve(y),m("close")}function B(){n(8,k=!0)}function z(){let se=0,_e=0;const Oe=y.getBoundingClientRect(),W=r.getBoundingClientRect();let ge=l;return ge==="auto"&&(ge=W.left+W.width/2<window.innerWidth/2?"right":"left"),ge==="left"?se=Math.max(16,W.left-u-Oe.width):ge==="down"?se=W.left+W.width/2-Oe.width/2:se=W.right+u,se+Oe.width>window.innerWidth&&(se=window.innerWidth-Oe.width),se<0&&(se=0),ge==="left"||ge==="right"?(_e=window.scrollY+W.top+p,_e+Oe.height+Ng>window.scrollY+window.innerHeight&&(_e=window.scrollY+window.innerHeight-(Oe.height+Ng))):_e=window.scrollY+W.bottom+p,_e=Math.max(_e,0),[se,_e]}function q(se){se.target===y&&(k?y.close():n(9,A=!0))}function N(se){w=se.composedPath()[0]===y}function Y(se){if(A){const _e=se.composedPath();y&&!_e.includes(y)&&!_e.some((Oe=>Oe instanceof HTMLDialogElement))&&n(8,k=!0)}}function x(se){ce&&Eu.isPressed(se)&&(se.preventDefault(),se.stopPropagation(),ce())}let ce=null;function ue(se){if(se.target!==b)return;se.preventDefault();const _e=se.pageX,Oe=se.pageY,W=j,ge=T;n(13,O=!0);const it=rt=>{n(10,j=rt.pageX-_e+W),n(11,T=rt.pageY-Oe+ge),D=!0};ce=()=>{document.body.removeEventListener("pointermove",it),document.body.removeEventListener("pointerup",ye),document.body.removeEventListener("pointercancel",ye),ce=null,n(13,O=!1)};const ye=()=>{ce==null||ce()};document.body.addEventListener("pointermove",it),document.body.addEventListener("pointerup",ye),document.body.addEventListener("pointercancel",ye)}Uc((()=>{n(8,k=!1),n(9,A=!1),y.showModal(),v.observe(y),E&&(n(10,[j,T]=z(),j,n(11,T)),n(12,E=!1))}));function Z(se){pt[se?"unshift":"push"]((()=>{b=se,n(7,b)}))}function Q(se){pt[se?"unshift":"push"]((()=>{y=se,n(6,y)}))}return t.$$set=se=>{"target"in se&&n(24,r=se.target),"hasClose"in se&&n(0,s=se.hasClose),"direction"in se&&n(1,l=se.direction),"width"in se&&n(2,a=se.width),"overflow"in se&&n(3,c=se.overflow),"canMove"in se&&n(4,d=se.canMove),"offset"in se&&n(25,u=se.offset),"offsetY"in se&&n(26,p=se.offsetY),"wide"in se&&n(5,_=se.wide),"$$scope"in se&&n(28,o=se.$$scope)},t.$$.update=()=>{t.$$.dirty[0]&32&&_!==void 0&&(n(14,M=!0),setTimeout((()=>{n(14,M=!1)}),50))},[s,l,a,c,d,_,y,b,k,A,j,T,E,O,M,g,R,J,B,q,N,Y,x,ue,r,u,p,f,o,i,Z,Q]}class Cr extends Gt{constructor(e){super(),Yt(this,e,yne,bne,Rt,{target:24,hasClose:0,direction:1,width:2,overflow:3,canMove:4,offset:25,offsetY:26,wide:5,hide:27},null,[-1,-1])}get hide(){return this.$$.ctx[27]}}const wne=t=>({}),qg=t=>({});function Rg(t){let e,n,i,o,r,s;const l=t[12].default,a=qs(l,t,t[11],null);return{c(){e=S("div"),n=S("div"),a&&a.c(),h(n,"class","spoiler2__content-inner svelte-mr4ej7"),h(e,"class","spoiler2__content")},m(c,d){F(c,e,d),$(e,n),a&&a.m(n,null),o=!0,r||(s=[te(e,"introstart",t[8]),te(e,"outrostart",t[8]),te(e,"introend",t[9]),te(e,"outroend",t[9]),te(e,"outroend",t[7])],r=!0)},p(c,d){a&&a.p&&(!o||d&2048)&&Bs(a,l,c,c[11],o?Rs(l,c[11],d,null):Hs(c[11]),null)},i(c){o||(I(a,c),c&&_o((()=>{o&&(i||(i=Zi(e,Go,{},!0)),i.run(1))})),o=!0)},o(c){H(a,c),c&&(i||(i=Zi(e,Go,{},!1)),i.run(0)),o=!1},d(c){c&&V(e),a&&a.d(c),c&&i&&i.end(),r=!1,Rn(s)}}}function $ne(t){let e,n,i,o,r,s,l,a;const c=t[12].title,d=qs(c,t,t[11],qg);let u=t[2]&&Rg(t);return{c(){e=S("details"),n=S("summary"),i=S("div"),d&&d.c(),o=G(),u&&u.c(),h(i,"class","spoiler2__arrow-wrapper svelte-mr4ej7"),h(n,"class","spoiler2__title svelte-mr4ej7"),e.open=t[3],h(e,"class",r="spoiler2 spoiler2_theme_"+t[1]+" "+t[0]+" svelte-mr4ej7"),ne(e,"spoiler2_toggled",t[2]),ne(e,"spoiler2_animated",t[5])},m(p,_){F(p,e,_),$(e,n),$(n,i),d&&d.m(i,null),$(e,o),u&&u.m(e,null),t[13](e),s=!0,l||(a=te(n,"click",zi(t[6])),l=!0)},p(p,[_]){d&&d.p&&(!s||_&2048)&&Bs(d,c,p,p[11],s?Rs(c,p[11],_,wne):Hs(p[11]),qg),p[2]?u?(u.p(p,_),_&4&&I(u,1)):(u=Rg(p),u.c(),I(u,1),u.m(e,null)):u&&(Dt(),H(u,1,1,(()=>{u=null})),Vt()),(!s||_&8)&&(e.open=p[3]),(!s||_&3&&r!==(r="spoiler2 spoiler2_theme_"+p[1]+" "+p[0]+" svelte-mr4ej7"))&&h(e,"class",r),(!s||_&7)&&ne(e,"spoiler2_toggled",p[2]),(!s||_&35)&&ne(e,"spoiler2_animated",p[5])},i(p){s||(I(d,p),I(u),s=!0)},o(p){H(d,p),H(u),s=!1},d(p){p&&V(e),d&&d.d(p),u&&u.d(),t[13](null),l=!1,a()}}}function kne(t,e,n){let{$$slots:i={},$$scope:o}=e,{open:r=!0}=e,{mix:s=""}=e,{theme:l="rounded"}=e,a=r,c=r,d,u=!1;function p(v){v.target instanceof HTMLElement&&v.target.closest("summary")&&(n(2,a=!a),a&&n(3,c=!0))}function _(){n(3,c=!1)}function f(){n(5,u=!0)}function m(){n(5,u=!1)}function g(v){pt[v?"unshift":"push"]((()=>{d=v,n(4,d)}))}return t.$$set=v=>{"open"in v&&n(10,r=v.open),"mix"in v&&n(0,s=v.mix),"theme"in v&&n(1,l=v.theme),"$$scope"in v&&n(11,o=v.$$scope)},[s,l,a,c,d,u,p,_,f,m,r,o,i,g]}class xo extends Gt{constructor(e){super(),Yt(this,e,kne,$ne,Rt,{open:10,mix:0,theme:1})}}function Id(t){let e,n,i,o,r,s;const l=t[7].default,a=qs(l,t,t[6],null);let c=[{class:n="button2 button2_theme_"+t[5]+" "+t[1]+" svelte-1npopwk"},{disabled:i=t[0]?!0:void 0},{title:t[2]}],d={};for(let u=0;u<c.length;u+=1)d=_s(d,c[u]);return{c(){e=S(t[4]),a&&a.c(),uc(t[4])(e,d),ne(e,"button2_slim",t[3])},m(u,p){F(u,e,p),a&&a.m(e,null),o=!0,r||(s=te(e,"click",t[8]),r=!0)},p(u,p){a&&a.p&&(!o||p&64)&&Bs(a,l,u,u[6],o?Rs(l,u[6],p,null):Hs(u[6]),null),uc(u[4])(e,d=yl(c,[(!o||p&34&&n!==(n="button2 button2_theme_"+u[5]+" "+u[1]+" svelte-1npopwk"))&&{class:n},(!o||p&1&&i!==(i=u[0]?!0:void 0))&&{disabled:i},(!o||p&4)&&{title:u[2]}])),ne(e,"button2_slim",u[3])},i(u){o||(I(a,u),o=!0)},o(u){H(a,u),o=!1},d(u){u&&V(e),a&&a.d(u),r=!1,s()}}}function jne(t){let e=t[4],n,i,o=t[4]&&Id(t);return{c(){o&&o.c(),n=Vn()},m(r,s){o&&o.m(r,s),F(r,n,s),i=!0},p(r,[s]){r[4]?e?Rt(e,r[4])?(o.d(1),o=Id(r),e=r[4],o.c(),o.m(n.parentNode,n)):o.p(r,s):(o=Id(r),e=r[4],o.c(),o.m(n.parentNode,n)):e&&(o.d(1),o=null,e=r[4])},i(r){i||(I(o,r),i=!0)},o(r){H(o,r),i=!1},d(r){r&&V(n),o&&o.d(r)}}}function Sne(t,e,n){let{$$slots:i={},$$scope:o}=e,{disabled:r=!1}=e,{cls:s=""}=e,{title:l=""}=e,{slim:a=!1}=e,{tag:c="button"}=e,{theme:d="border"}=e;function u(p){mn.call(this,t,p)}return t.$$set=p=>{"disabled"in p&&n(0,r=p.disabled),"cls"in p&&n(1,s=p.cls),"title"in p&&n(2,l=p.title),"slim"in p&&n(3,a=p.slim),"tag"in p&&n(4,c=p.tag),"theme"in p&&n(5,d=p.theme),"$$scope"in p&&n(6,o=p.$$scope)},[r,s,l,a,c,d,o,i,u]}class ud extends Gt{constructor(e){super(),Yt(this,e,Sne,jne,Rt,{disabled:0,cls:1,title:2,slim:3,tag:4,theme:5})}}function Bg(t,e,n){const i=t.slice();return i[24]=e[n],i}function Hg(t,e,n){const i=t.slice();return i[27]=e[n],i}function Jg(t){let e,n;return e=new Cr({props:{target:t[2],direction:"down",offsetY:8,wide:!0,$$slots:{default:[Ine]},$$scope:{ctx:t}}}),e.$on("close",t[10]),{c(){Pe(e.$$.fragment)},m(i,o){Ee(e,i,o),n=!0},p(i,o){const r={};o&4&&(r.target=i[2]),o&1073741881&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Ae(e,i)}}}function Ug(t){let e,n=t[5]("errors.selectedTitle")+"",i,o,r,s;return r=new ud({props:{theme:"normal",$$slots:{default:[Tne]},$$scope:{ctx:t}}}),r.$on("click",t[11]),{c(){e=S("div"),i=xe(n),o=G(),Pe(r.$$.fragment),h(e,"class","errors-dialog__selected-block svelte-153ag15")},m(l,a){F(l,e,a),$(e,i),$(e,o),Ee(r,e,null),s=!0},p(l,a){(!s||a&32)&&n!==(n=l[5]("errors.selectedTitle")+"")&&at(i,n);const c={};a&1073741856&&(c.$$scope={dirty:a,ctx:l}),r.$set(c)},i(l){s||(I(r.$$.fragment,l),s=!0)},o(l){H(r.$$.fragment,l),s=!1},d(l){l&&V(e),Ae(r)}}}function Tne(t){let e=t[5]("errors.clear")+"",n;return{c(){n=xe(e)},m(i,o){F(i,n,o)},p(i,o){o&32&&e!==(e=i[5]("errors.clear")+"")&&at(n,e)},d(i){i&&V(n)}}}function Cne(t){let e=t[5]("no_errors")+"",n;return{c(){n=xe(e)},m(i,o){F(i,n,o)},p(i,o){o&32&&e!==(e=i[5]("no_errors")+"")&&at(n,e)},i:tn,o:tn,d(i){i&&V(n)}}}function zne(t){let e,n,i=ln(t[3]),o=[];for(let s=0;s<i.length;s+=1)o[s]=Gg(Bg(t,i,s));const r=s=>H(o[s],1,1,(()=>{o[s]=null}));return{c(){e=S("ul");for(let s=0;s<o.length;s+=1)o[s].c();h(e,"class","errors-dialog__list svelte-153ag15")},m(s,l){F(s,e,l);for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(e,null);n=!0},p(s,l){if(l&28712){i=ln(s[3]);let a;for(a=0;a<i.length;a+=1){const c=Bg(s,i,a);o[a]?(o[a].p(c,l),I(o[a],1)):(o[a]=Gg(c),o[a].c(),I(o[a],1),o[a].m(e,null))}for(Dt(),a=i.length;a<o.length;a+=1)r(a);Vt()}},i(s){if(!n){for(let l=0;l<i.length;l+=1)I(o[l]);n=!0}},o(s){o=o.filter(Boolean);for(let l=0;l<o.length;l+=1)H(o[l]);n=!1},d(s){s&&V(e),Bi(o,s)}}}function Ene(t){let e=t[5]("errors.noDetails")+"",n;return{c(){n=xe(e)},m(i,o){F(i,n,o)},p(i,o){o&32&&e!==(e=i[5]("errors.noDetails")+"")&&at(n,e)},d(i){i&&V(n)}}}function Ane(t){let e,n=ln(Object.keys(t[24].args)),i=[];for(let o=0;o<n.length;o+=1)i[o]=Kg(Hg(t,n,o));return{c(){for(let o=0;o<i.length;o+=1)i[o].c();e=Vn()},m(o,r){for(let s=0;s<i.length;s+=1)i[s]&&i[s].m(o,r);F(o,e,r)},p(o,r){if(r&8){n=ln(Object.keys(o[24].args));let s;for(s=0;s<n.length;s+=1){const l=Hg(o,n,s);i[s]?i[s].p(l,r):(i[s]=Kg(l),i[s].c(),i[s].m(e.parentNode,e))}for(;s<i.length;s+=1)i[s].d(1);i.length=n.length}},d(o){o&&V(e),Bi(i,o)}}}function Wg(t){let e,n=t[27]+"",i,o,r=Xg(t[24].args[t[27]])+"",s,l;return{c(){e=S("div"),i=xe(n),o=xe(" = "),s=xe(r),l=G()},m(a,c){F(a,e,c),$(e,i),$(e,o),$(e,s),$(e,l)},p(a,c){c&8&&n!==(n=a[27]+"")&&at(i,n),c&8&&r!==(r=Xg(a[24].args[a[27]])+"")&&at(s,r)},d(a){a&&V(e)}}}function Kg(t){let e,n=t[27]!=="leafId"&&Wg(t);return{c(){n&&n.c(),e=Vn()},m(i,o){n&&n.m(i,o),F(i,e,o)},p(i,o){i[27]!=="leafId"?n?n.p(i,o):(n=Wg(i),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(i){i&&V(e),n&&n.d(i)}}}function One(t){let e,n;function i(s,l){return l&8&&(n=null),n==null&&(n=!!(s[24].args&&Object.keys(s[24].args).length)),n?Ane:Ene}let o=i(t,-1),r=o(t);return{c(){e=S("div"),r.c(),h(e,"class","errors-dialog__item-details svelte-153ag15")},m(s,l){F(s,e,l),r.m(e,null)},p(s,l){o===(o=i(s,l))&&r?r.p(s,l):(r.d(1),r=o(s),r&&(r.c(),r.m(e,null)))},d(s){s&&V(e),r.d()}}}function Mne(t){let e,n,i,o,r=t[24].message+"",s;return{c(){e=S("div"),n=S("span"),i=G(),o=S("span"),s=xe(r),h(n,"class","errors-dialog__icon svelte-153ag15"),ne(n,"errors-dialog__icon_error",t[24].level==="error"||!t[24].level),ne(n,"errors-dialog__icon_warn",t[24].level==="warn"),h(o,"class","errors-dialog__text svelte-153ag15"),h(e,"slot","title"),h(e,"class","errors-dialog__item-title svelte-153ag15")},m(l,a){F(l,e,a),$(e,n),$(e,i),$(e,o),$(o,s)},p(l,a){a&8&&ne(n,"errors-dialog__icon_error",l[24].level==="error"||!l[24].level),a&8&&ne(n,"errors-dialog__icon_warn",l[24].level==="warn"),a&8&&r!==(r=l[24].message+"")&&at(s,r)},d(l){l&&V(e)}}}function Yg(t){let e,n;function i(){return t[17](t[24])}return e=new ud({props:{title:t[5]("errors.select"),$$slots:{default:[Pne]},$$scope:{ctx:t}}}),e.$on("click",i),{c(){Pe(e.$$.fragment)},m(o,r){Ee(e,o,r),n=!0},p(o,r){t=o;const s={};r&32&&(s.title=t[5]("errors.select")),r&1073741824&&(s.$$scope={dirty:r,ctx:t}),e.$set(s)},i(o){n||(I(e.$$.fragment,o),n=!0)},o(o){H(e.$$.fragment,o),n=!1},d(o){Ae(e,o)}}}function Pne(t){let e;return{c(){e=S("div"),h(e,"class","errors-dialog__select svelte-153ag15")},m(n,i){F(n,e,i)},p:tn,d(n){n&&V(e)}}}function Gg(t){var d;let e,n,i,o,r,s,l;n=new xo({props:{open:!1,mix:"errors-dialog__spoiler",$$slots:{title:[Mne],default:[One]},$$scope:{ctx:t}}});let a=((d=t[24].args)==null?void 0:d.leafId)&&Yg(t);function c(){return t[18](t[24])}return{c(){e=S("li"),Pe(n.$$.fragment),i=G(),a&&a.c(),o=G(),h(e,"class","errors-dialog__item svelte-153ag15")},m(u,p){F(u,e,p),Ee(n,e,null),$(e,i),a&&a.m(e,null),$(e,o),r=!0,s||(l=[te(e,"mouseenter",c),te(e,"mouseleave",t[14])],s=!0)},p(u,p){var f;t=u;const _={};p&1073741864&&(_.$$scope={dirty:p,ctx:t}),n.$set(_),(f=t[24].args)!=null&&f.leafId?a?(a.p(t,p),p&8&&I(a,1)):(a=Yg(t),a.c(),I(a,1),a.m(e,o)):a&&(Dt(),H(a,1,1,(()=>{a=null})),Vt())},i(u){r||(I(n.$$.fragment,u),I(a),r=!0)},o(u){H(n.$$.fragment,u),H(a),r=!1},d(u){u&&V(e),Ae(n),a&&a.d(),s=!1,Rn(l)}}}function Ine(t){let e,n,i,o,r,s=t[0]&&Ug(t);const l=[zne,Cne],a=[];function c(d,u){return d[3].length?0:1}return i=c(t),o=a[i]=l[i](t),{c(){e=S("div"),s&&s.c(),n=G(),o.c(),h(e,"class","errors-dialog__content svelte-153ag15"),ne(e,"errors-dialog__content_dark",t[4]==="dark")},m(d,u){F(d,e,u),s&&s.m(e,null),$(e,n),a[i].m(e,null),r=!0},p(d,u){d[0]?s?(s.p(d,u),u&1&&I(s,1)):(s=Ug(d),s.c(),I(s,1),s.m(e,n)):s&&(Dt(),H(s,1,1,(()=>{s=null})),Vt());let p=i;i=c(d),i===p?a[i].p(d,u):(Dt(),H(a[p],1,1,(()=>{a[p]=null})),Vt(),o=a[i],o?o.p(d,u):(o=a[i]=l[i](d),o.c()),I(o,1),o.m(e,null)),(!r||u&16)&&ne(e,"errors-dialog__content_dark",d[4]==="dark")},i(d){r||(I(s),I(o),r=!0)},o(d){H(s),H(o),r=!1},d(d){d&&V(e),s&&s.d(),a[i].d()}}}function Dne(t){let e,n,i=t[1]&&Jg(t);return{c(){i&&i.c(),e=Vn()},m(o,r){i&&i.m(o,r),F(o,e,r),n=!0},p(o,[r]){o[1]?i?(i.p(o,r),r&2&&I(i,1)):(i=Jg(o),i.c(),I(i,1),i.m(e.parentNode,e)):i&&(Dt(),H(i,1,1,(()=>{i=null})),Vt())},i(o){n||(I(i),n=!0)},o(o){H(i),n=!1},d(o){o&&V(e),i&&i.d(o)}}}function Xg(t){return typeof t=="string"?t:JSON.stringify(t)}function Vne(t,e,n){let i,o,r,s;const{l10nString:l}=yt(oi);De(t,l,(M=>n(5,s=M)));const{state:a}=yt(Cn),{highlightLeaf:c,highlightElem:d,highlightRanges:u,rendererErrors:p,themeStore:_,tree:f}=a;De(t,p,(M=>n(16,o=M))),De(t,_,(M=>n(4,r=M))),De(t,f,(M=>n(19,i=M)));function m(M,D){n(1,g=!0),n(2,v=M),n(0,y=(D==null?void 0:D.leafId)||"")}let g=!1,v,y="",b=[];function w(){n(1,g=!1)}function k(){n(0,y="")}function A(M){if(!M)return;const D=no(i,M);a.selectedLeaf.set(D||null),n(1,g=!1)}function j(M){const D=M&&no(i,M)||null,R=D==null?void 0:D.props.node,J=D==null?void 0:D.props.range;J?(c.set([D]),d.set(R?[R]:null),u.set([J])):(c.set(null),d.set(null),u.set(null))}function T(){c.set(null),d.set(null),u.set(null)}const E=M=>{var D;return A((D=M.args)==null?void 0:D.leafId)},O=M=>{var D;return j((D=M.args)==null?void 0:D.leafId)};return t.$$.update=()=>{if(t.$$.dirty&65537)if(y)n(3,b=o[y]);else{const M=[];for(const D in o)M.push(...o[D]);n(3,b=M)}},[y,g,v,b,r,s,l,p,_,f,w,k,A,j,T,m,o,E,O]}class Lne extends Gt{constructor(e){super(),Yt(this,e,Vne,Dne,Rt,{show:15})}get show(){return this.$$.ctx[15]}}function Zg(t){let e,n,i,o;return e=new ho({props:{value:t[3],subtype:"integer",size:"small",width:"small",min:100,title:t[11]("props.width")}}),e.$on("change",t[41]),i=new ho({props:{value:t[4],subtype:"integer",size:"small",width:"small",min:100,title:t[11]("props.height")}}),i.$on("change",t[42]),{c(){Pe(e.$$.fragment),n=G(),Pe(i.$$.fragment)},m(r,s){Ee(e,r,s),F(r,n,s),Ee(i,r,s),o=!0},p(r,s){const l={};s[0]&8&&(l.value=r[3]),s[0]&2048&&(l.title=r[11]("props.width")),e.$set(l);const a={};s[0]&16&&(a.value=r[4]),s[0]&2048&&(a.title=r[11]("props.height")),i.$set(a)},i(r){o||(I(e.$$.fragment,r),I(i.$$.fragment,r),o=!0)},o(r){H(e.$$.fragment,r),H(i.$$.fragment,r),o=!1},d(r){r&&V(n),Ae(e,r),Ae(i,r)}}}function xg(t){let e,n;return e=new Xl({props:{title:t[1](t[13]==="light"?"lightTheme":"darkTheme"),$$slots:{default:[Fne]},$$scope:{ctx:t}}}),e.$on("click",t[45]),{c(){Pe(e.$$.fragment)},m(i,o){Ee(e,i,o),n=!0},p(i,o){const r={};o[0]&8194&&(r.title=i[1](i[13]==="light"?"lightTheme":"darkTheme")),o[0]&8192|o[2]&1&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Ae(e,i)}}}function Fne(t){let e,n=`url(${po(t[13]==="light"?Fs:Ns)})`;return{c(){e=S("div"),h(e,"class","canvas__button-icon canvas__button-icon_inversed svelte-oz2mkl"),ke(e,"background-image",n)},m(i,o){F(i,e,o)},p(i,o){o[0]&8192&&n!==(n=`url(${po(i[13]==="light"?Fs:Ns)})`)&&ke(e,"background-image",n)},d(i){i&&V(e)}}}function Nne(t){let e,n;return e=new Xl({props:{title:t[1](t[14]==="ltr"?"rtl.switchToRTL":"rtl.switchToLTR"),$$slots:{default:[qne]},$$scope:{ctx:t}}}),e.$on("click",t[46]),{c(){Pe(e.$$.fragment)},m(i,o){Ee(e,i,o),n=!0},p(i,o){const r={};o[0]&16386&&(r.title=i[1](i[14]==="ltr"?"rtl.switchToRTL":"rtl.switchToLTR")),o[0]&16384|o[2]&1&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Ae(e,i)}}}function qne(t){let e,n=t[14]==="ltr"?"LTR":"RTL",i;return{c(){e=S("div"),i=xe(n),h(e,"class","canvas__rtl-button svelte-oz2mkl")},m(o,r){F(o,e,r),$(e,i)},p(o,r){r[0]&16384&&n!==(n=o[14]==="ltr"?"LTR":"RTL")&&at(i,n)},d(o){o&&V(e)}}}function Rne(t){let e,n,i;function o(s){t[48](s)}let r={items:t[25].map(t[47]),theme:"canvas",title:t[11]("previewLang")};return t[15]!==void 0&&(r.value=t[15]),e=new Hr({props:r}),pt.push((()=>Gn(e,"value",o))),{c(){Pe(e.$$.fragment)},m(s,l){Ee(e,s,l),i=!0},p(s,l){const a={};l[0]&65536&&(a.items=s[25].map(s[47])),l[0]&2048&&(a.title=s[11]("previewLang")),!n&&l[0]&32768&&(n=!0,a.value=s[15],Xn((()=>n=!1))),e.$set(a)},i(s){i||(I(e.$$.fragment,s),i=!0)},o(s){H(e.$$.fragment,s),i=!1},d(s){Ae(e,s)}}}function Bne(t){let e,n=`url(${po(dne)})`;return{c(){e=S("div"),h(e,"class","canvas__button-icon canvas__button-icon_inversed svelte-oz2mkl"),ne(e,"canvas__button-icon_disabled",!t[17]),ke(e,"background-image",n)},m(i,o){F(i,e,o)},p(i,o){o[0]&131072&&ne(e,"canvas__button-icon_disabled",!i[17])},d(i){i&&V(e)}}}function Hne(t){let e,n=`url(${po(une)})`;return{c(){e=S("div"),h(e,"class","canvas__button-icon canvas__button-icon_inversed svelte-oz2mkl"),ne(e,"canvas__button-icon_disabled",!t[18]),ke(e,"background-image",n)},m(i,o){F(i,e,o)},p(i,o){o[0]&262144&&ne(e,"canvas__button-icon_disabled",!i[18])},d(i){i&&V(e)}}}function Jne(t){let e,n,i=t[19].length+"",o,r,s,l=`url(${po(t[20]==="dark"?zg:Eg)})`,a,c,d=t[21].length+"",u,p,_,f=`url(${po(cne)})`;return{c(){e=S("div"),n=S("div"),o=xe(i),r=G(),s=S("div"),a=G(),c=S("div"),u=xe(d),p=G(),_=S("div"),h(n,"class","canvas__button-counter svelte-oz2mkl"),h(s,"class","canvas__button-icon svelte-oz2mkl"),ne(s,"canvas__button-icon_disabled",!t[19].length),ke(s,"background-image",l),h(c,"class","canvas__button-counter svelte-oz2mkl"),h(_,"class","canvas__button-icon svelte-oz2mkl"),ne(_,"canvas__button-icon_disabled",!t[21].length),ke(_,"background-image",f),h(e,"class","canvas__button-content svelte-oz2mkl")},m(m,g){F(m,e,g),$(e,n),$(n,o),$(e,r),$(e,s),$(e,a),$(e,c),$(c,u),$(e,p),$(e,_)},p(m,g){g[0]&524288&&i!==(i=m[19].length+"")&&at(o,i),g[0]&524288&&ne(s,"canvas__button-icon_disabled",!m[19].length),g[0]&1048576&&l!==(l=`url(${po(m[20]==="dark"?zg:Eg)})`)&&ke(s,"background-image",l),g[0]&2097152&&d!==(d=m[21].length+"")&&at(u,d),g[0]&2097152&&ne(_,"canvas__button-icon_disabled",!m[21].length)},d(m){m&&V(e)}}}function Une(t){let e,n,i,o,r,s,l,a,c,d,u,p,_,f,m,g,v,y,b,w,k,A,j,T;function E(x){t[44](x)}let O={items:t[10],theme:"canvas",title:t[11]("previewSize")};t[2]!==void 0&&(O.value=t[2]),i=new Hr({props:O}),pt.push((()=>Gn(i,"value",E))),i.$on("change",t[40]);let M=t[2]==="custom"&&Zg(t),D=t[12]&&xg(t),R=t[27]&&Nne(t),J=t[25].length&&Rne(t);d=new Xl({props:{title:t[1]("undo")+(t[17]?" — "+t[1](t[17].toLangKey()):""),disabled:!t[17],$$slots:{default:[Bne]},$$scope:{ctx:t}}}),d.$on("click",t[49]),p=new Xl({props:{title:t[1]("redo")+(t[18]?" — "+t[1](t[18].toLangKey()):""),disabled:!t[18],$$slots:{default:[Hne]},$$scope:{ctx:t}}}),p.$on("click",t[50]);function B(x){t[51](x)}let z={title:t[1]("errors"),$$slots:{default:[Jne]},$$scope:{ctx:t}};t[5]!==void 0&&(z.node=t[5]),f=new Xl({props:z}),pt.push((()=>Gn(f,"node",B))),f.$on("click",t[39]);function q(x){t[53](x)}let N={theme:t[13]};t[0]!==void 0&&(N.viewport=t[0]),y=new sne({props:N}),pt.push((()=>Gn(y,"viewport",q)));let Y={};return k=new Lne({props:Y}),t[56](k),{c(){e=S("div"),n=S("div"),Pe(i.$$.fragment),r=G(),M&&M.c(),s=G(),D&&D.c(),l=G(),R&&R.c(),a=G(),J&&J.c(),c=G(),Pe(d.$$.fragment),u=G(),Pe(p.$$.fragment),_=G(),Pe(f.$$.fragment),g=G(),v=S("div"),Pe(y.$$.fragment),w=G(),Pe(k.$$.fragment),h(n,"class","canvas__topbar svelte-oz2mkl"),h(v,"class","canvas__renderer-wrapper svelte-oz2mkl"),h(e,"class","canvas svelte-oz2mkl")},m(x,ce){F(x,e,ce),$(e,n),Ee(i,n,null),$(n,r),M&&M.m(n,null),$(n,s),D&&D.m(n,null),$(n,l),R&&R.m(n,null),$(n,a),J&&J.m(n,null),$(n,c),Ee(d,n,null),$(n,u),Ee(p,n,null),$(n,_),Ee(f,n,null),t[52](n),$(e,g),$(e,v),Ee(y,v,null),t[54](v),t[55](e),F(x,w,ce),Ee(k,x,ce),A=!0,j||(T=[te(e,"mousedown",t[37]),te(e,"click",t[38]),l1(k1.call(null,e,t[43]))],j=!0)},p(x,ce){const ue={};ce[0]&1024&&(ue.items=x[10]),ce[0]&2048&&(ue.title=x[11]("previewSize")),!o&&ce[0]&4&&(o=!0,ue.value=x[2],Xn((()=>o=!1))),i.$set(ue),x[2]==="custom"?M?(M.p(x,ce),ce[0]&4&&I(M,1)):(M=Zg(x),M.c(),I(M,1),M.m(n,s)):M&&(Dt(),H(M,1,1,(()=>{M=null})),Vt()),x[12]?D?(D.p(x,ce),ce[0]&4096&&I(D,1)):(D=xg(x),D.c(),I(D,1),D.m(n,l)):D&&(Dt(),H(D,1,1,(()=>{D=null})),Vt()),x[27]&&R.p(x,ce),x[25].length&&J.p(x,ce);const Z={};ce[0]&131074&&(Z.title=x[1]("undo")+(x[17]?" — "+x[1](x[17].toLangKey()):"")),ce[0]&131072&&(Z.disabled=!x[17]),ce[0]&131072|ce[2]&1&&(Z.$$scope={dirty:ce,ctx:x}),d.$set(Z);const Q={};ce[0]&262146&&(Q.title=x[1]("redo")+(x[18]?" — "+x[1](x[18].toLangKey()):"")),ce[0]&262144&&(Q.disabled=!x[18]),ce[0]&262144|ce[2]&1&&(Q.$$scope={dirty:ce,ctx:x}),p.$set(Q);const se={};ce[0]&2&&(se.title=x[1]("errors")),ce[0]&3670016|ce[2]&1&&(se.$$scope={dirty:ce,ctx:x}),!m&&ce[0]&32&&(m=!0,se.node=x[5],Xn((()=>m=!1))),f.$set(se);const _e={};ce[0]&8192&&(_e.theme=x[13]),!b&&ce[0]&1&&(b=!0,_e.viewport=x[0],Xn((()=>b=!1))),y.$set(_e);const Oe={};k.$set(Oe)},i(x){A||(I(i.$$.fragment,x),I(M),I(D),I(R),I(J),I(d.$$.fragment,x),I(p.$$.fragment,x),I(f.$$.fragment,x),I(y.$$.fragment,x),I(k.$$.fragment,x),A=!0)},o(x){H(i.$$.fragment,x),H(M),H(D),H(R),H(J),H(d.$$.fragment,x),H(p.$$.fragment,x),H(f.$$.fragment,x),H(y.$$.fragment,x),H(k.$$.fragment,x),A=!1},d(x){x&&(V(e),V(w)),Ae(i),M&&M.d(),D&&D.d(),R&&R.d(),J&&J.d(),Ae(d),Ae(p),Ae(f),t[52](null),Ae(y),t[54](null),t[55](null),t[56](null),Ae(k,x),j=!1,Rn(T)}}}const Wne="360x640";function Kne(t,e,n){let i,o,r,s,l,a,c,d,u,p,_,f,m;const{l10n:g,l10nString:v,lang:y}=yt(oi);De(t,g,(We=>n(1,o=We))),De(t,v,(We=>n(11,r=We))),De(t,y,(We=>n(16,d=We)));const{cardLocales:b,state:w,directionSelector:k,setShowErrors:A,showErrors:j}=yt(Cn),{paletteEnabled:T,currentUndoStore:E,currentRedoStore:O,rendererErrorsOnly:M,rendererWarningsOnly:D,locale:R,previewThemeStore:J,themeStore:B,direction:z}=w;De(t,T,(We=>n(12,s=We))),De(t,E,(We=>n(17,u=We))),De(t,O,(We=>n(18,p=We))),De(t,M,(We=>n(19,_=We))),De(t,D,(We=>n(21,m=We))),De(t,R,(We=>n(15,c=We))),De(t,J,(We=>n(13,l=We))),De(t,B,(We=>n(20,f=We))),De(t,z,(We=>n(14,a=We)));const q=["320x568","360x640","375x667","393x851","414x896","768x1024"];A((function(jt){Z.show(ue,{leafId:jt==null?void 0:jt.leafId})}));let N=Wne,Y=N,x=100,ce=100,ue,Z,Q,se,_e,Oe=0,W=0;function ge(We){Oe=We.pageX,W=We.pageY}function it(We){const jt=(We.pageX-Oe)*(We.pageX-Oe)+(We.pageY-W)*(We.pageY-W),zt=We.target;jt<64&&(zt===se||zt===_e||zt instanceof HTMLElement&&!se.contains(zt)&&!_e.contains(zt))&&w.selectedLeaf.set(null)}function ye(){j()}function rt(){Y!=="custom"&&n(0,N=Y)}function U(We){n(0,N=`${We.detail.value}x${ce}`)}function de(We){n(0,N=`${x}x${We.detail.value}`)}const pe=[[T1,()=>w.undo()],[C1,()=>w.redo()]];function et(We){Y=We,n(2,Y),n(0,N)}const we=()=>Mi(J,l=l==="light"?"dark":"light",l),Ie=()=>Mi(z,a=a==="ltr"?"rtl":"ltr",a),Xe=We=>({value:We.id,text:We.text[d]});function vt(We){c=We,R.set(c)}const Qe=()=>w.undo(),fe=()=>w.redo();function me(We){ue=We,n(5,ue)}function ve(We){pt[We?"unshift":"push"]((()=>{_e=We,n(9,_e)}))}function Ge(We){N=We,n(0,N)}function gt(We){pt[We?"unshift":"push"]((()=>{se=We,n(8,se)}))}function ee(We){pt[We?"unshift":"push"]((()=>{Q=We,n(7,Q)}))}function Je(We){pt[We?"unshift":"push"]((()=>{Z=We,n(6,Z)}))}return t.$$.update=()=>{t.$$.dirty[0]&2&&n(10,i=[...q,"custom"].map((We=>({value:We,text:We==="custom"?o("canvasCustomSize"):We})))),t.$$.dirty[0]&1&&(q.includes(N)?n(2,Y=N):n(2,Y="custom")),t.$$.dirty[0]&1&&n(3,[x,ce]=N.split("x").map(Number),x,(n(4,ce),n(0,N)))},[N,o,Y,x,ce,ue,Z,Q,se,_e,i,r,s,l,a,c,d,u,p,_,f,m,g,v,y,b,w,k,T,E,O,M,D,R,J,B,z,ge,it,ye,rt,U,de,pe,et,we,Ie,Xe,vt,Qe,fe,me,ve,Ge,gt,ee,Je]}class Yne extends Gt{constructor(e){super(),Yt(this,e,Kne,Une,Rt,{},null,[-1,-1,-1])}}const $V=Symbol("tree"),kV=["image","gif","text","container","gallery","separator"],ua=(wa.div.anyOf||[]).reduce(((t,e)=>{if(e.$ref){const n=Ite(e.$ref.replace(/\.json$/,""));t[n]=Ate(e.$description||"")}return t}),{}),jV=kV.map((t=>({nameKey:`components.${t}`,type:t,description:ua[t]}))),SV=Object.keys(ua).filter((t=>!kV.includes(t))).map((t=>({nameKey:`components.${t}`,type:t,description:ua[t]}))),TV=Object.keys(ua).map((t=>({nameKey:`components.${t}`,type:t,description:ua[t]})));for(const t in Ji){const e=Ji[t];e.visible&&(e.inShortList?jV.push({nameKey:e.nameKey,type:t,description:e.description}):SV.push({nameKey:e.nameKey,type:t,description:e.description}),TV.push({nameKey:e.nameKey,type:t,description:e.description}))}function Gne(t){return t.level==="error"||!t.level}function CV(t){return t.level==="warn"}function Qg(t,e,n){const i=t.slice();return i[51]=e[n],i}function Dd(t){const e=t.slice(),n=e[7]?e[5]("collapse"):e[5]("expand");return e[54]=n,e}function eh(t){let e;return{c(){e=S("div"),h(e,"class","tree-leaf__drag-target tree-leaf__drag-target_before svelte-q4j113")},m(n,i){F(n,e,i)},d(n){n&&V(e)}}}function th(t){let e=t[7],n,i=nh(t);return{c(){i.c(),n=Vn()},m(o,r){i.m(o,r),F(o,n,r)},p(o,r){r[0]&128&&Rt(e,e=o[7])?(i.d(1),i=nh(o),i.c(),i.m(n.parentNode,n)):i.p(o,r)},d(o){o&&V(n),i.d(o)}}}function nh(t){let e,n,i,o,r;return{c(){e=S("div"),h(e,"class","tree-leaf__icon svelte-q4j113"),h(e,"aria-label",n=t[54]),h(e,"data-custom-tooltip",i=t[54])},m(s,l){F(s,e,l),o||(r=te(e,"click",Eo(t[27])),o=!0)},p(s,l){l[0]&160&&n!==(n=s[54])&&h(e,"aria-label",n),l[0]&160&&i!==(i=s[54])&&h(e,"data-custom-tooltip",i)},d(s){s&&V(e),o=!1,r()}}}function ih(t){let e,n,i,o,r;return{c(){e=S("div"),h(e,"class","tree-leaf__error-icon svelte-q4j113"),h(e,"aria-label",n=t[5](`treeItem.${t[6]}`)),h(e,"data-custom-tooltip",i=t[5](`treeItem.${t[6]}`)),ne(e,"tree-leaf__error-icon_dark",t[12]==="dark"),ne(e,"tree-leaf__error-icon_warn",t[6]==="warnings")},m(s,l){F(s,e,l),o||(r=te(e,"click",t[31]),o=!0)},p(s,l){l[0]&96&&n!==(n=s[5](`treeItem.${s[6]}`))&&h(e,"aria-label",n),l[0]&96&&i!==(i=s[5](`treeItem.${s[6]}`))&&h(e,"data-custom-tooltip",i),l[0]&4096&&ne(e,"tree-leaf__error-icon_dark",s[12]==="dark"),l[0]&64&&ne(e,"tree-leaf__error-icon_warn",s[6]==="warnings")},d(s){s&&V(e),o=!1,r()}}}function oh(t){let e,n,i,o,r,s;return{c(){e=S("div"),n=S("div"),h(n,"class","tree-leaf__menu svelte-q4j113"),h(n,"aria-label",i=t[5]("treeMenu")),h(n,"data-custom-tooltip",o=t[5]("treeMenu")),h(e,"class","tree-leaf__menu-outer svelte-q4j113")},m(l,a){F(l,e,a),$(e,n),r||(s=te(n,"click",t[41]),r=!0)},p(l,a){a[0]&32&&i!==(i=l[5]("treeMenu"))&&h(n,"aria-label",i),a[0]&32&&o!==(o=l[5]("treeMenu"))&&h(n,"data-custom-tooltip",o)},d(l){l&&V(e),r=!1,s()}}}function rh(t){let e;return{c(){e=S("div"),h(e,"class","tree-leaf__drag-target tree-leaf__drag-target_inside svelte-q4j113"),ke(e,"--level",t[1]+1)},m(n,i){F(n,e,i)},p(n,i){i[0]&2&&ke(e,"--level",n[1]+1)},d(n){n&&V(e)}}}function sh(t){let e,n=[],i=new Map,o,r,s=ln(t[0].childs);const l=a=>a[51].id;for(let a=0;a<s.length;a+=1){let c=Qg(t,s,a),d=l(c);i.set(d,n[a]=lh(d,c))}return{c(){e=S("div");for(let a=0;a<n.length;a+=1)n[a].c();h(e,"class","tree-leaf__children svelte-q4j113")},m(a,c){F(a,e,c);for(let d=0;d<n.length;d+=1)n[d]&&n[d].m(e,null);r=!0},p(a,c){c[0]&3&&(s=ln(a[0].childs),Dt(),n=Us(n,c,l,1,a,s,i,e,zl,lh,null,Qg),Vt())},i(a){if(!r){for(let c=0;c<s.length;c+=1)I(n[c]);a&&_o((()=>{r&&(o||(o=Zi(e,Go,{},!0)),o.run(1))})),r=!0}},o(a){for(let c=0;c<n.length;c+=1)H(n[c]);a&&(o||(o=Zi(e,Go,{},!1)),o.run(0)),r=!1},d(a){a&&V(e);for(let c=0;c<n.length;c+=1)n[c].d();a&&o&&o.end()}}}function lh(t,e){let n,i,o;return i=new np({props:{leaf:e[51],level:e[1]+1}}),i.$on("selected",e[43]),i.$on("hovered",e[44]),i.$on("action",e[45]),i.$on("add",e[46]),{key:t,first:null,c(){n=Vn(),Pe(i.$$.fragment),this.first=n},m(r,s){F(r,n,s),Ee(i,r,s),o=!0},p(r,s){e=r;const l={};s[0]&1&&(l.leaf=e[51]),s[0]&2&&(l.level=e[1]+1),i.$set(l)},i(r){o||(I(i.$$.fragment,r),o=!0)},o(r){H(i.$$.fragment,r),o=!1},d(r){r&&V(n),Ae(i,r)}}}function ah(t){let e;return{c(){e=S("div"),h(e,"class","tree-leaf__drag-target tree-leaf__drag-target_after svelte-q4j113"),ke(e,"--level",t[1])},m(n,i){F(n,e,i)},p(n,i){i[0]&2&&ke(e,"--level",n[1])},d(n){n&&V(e)}}}function Xne(t){var D,R,J,B,z,q;let e,n,i,o,r,s=`url(${po(t[14].componentIcon(t[0].props.json.type,t[0].props.json))})`,l,a=t[25](t[0])+"",c,d,u,p,_,f,m,g,v,y,b,w,k=((D=t[11])==null?void 0:D.node)===t[2]&&((R=t[11])==null?void 0:R.type)==="before"&&eh(),A=t[4]&&th(Dd(t)),j=t[6]&&ih(t),T=!t[10]&&oh(t),E=((J=t[11])==null?void 0:J.node)===t[2]&&((B=t[11])==null?void 0:B.type)==="inside"&&rh(t),O=t[7]&&sh(t),M=((z=t[11])==null?void 0:z.node)===t[2]&&((q=t[11])==null?void 0:q.type)==="after"&&ah(t);return{c(){var N;e=S("div"),k&&k.c(),n=G(),A&&A.c(),i=G(),o=S("div"),r=S("div"),l=G(),c=xe(a),d=G(),u=S("div"),p=G(),j&&j.c(),_=G(),T&&T.c(),f=G(),E&&E.c(),m=G(),O&&O.c(),g=G(),M&&M.c(),v=Vn(),h(r,"class","tree-leaf__type-icon svelte-q4j113"),ke(r,"background-image",s),h(o,"class","tree-leaf__type-icon-outer svelte-q4j113"),h(u,"class","tree-leaf__menu-spacer svelte-q4j113"),h(e,"class","tree-leaf svelte-q4j113"),h(e,"data-level",t[1]),ke(e,"--level",t[1]),h(e,"draggable","true"),ne(e,"tree-leaf_alternate-hovered",t[8]),ne(e,"tree-leaf_selected",t[3]),ne(e,"tree-leaf_empty_no",!!t[0].childs.length),ne(e,"tree-leaf_empty_yes",!t[0].childs.length),ne(e,"tree-leaf_expanded_no",!t[7]),ne(e,"tree-leaf_expanded_yes",t[7]),ne(e,"tree-leaf_can-have-childs",t[4]),ne(e,"tree-leaf_container-child",!Sl((N=t[0].parent)==null?void 0:N.props.json.type)),ne(e,"tree-leaf_errors",t[6]==="errors"),ne(e,"tree-leaf_warnings",t[6]==="warnings")},m(N,Y){F(N,e,Y),k&&k.m(e,null),$(e,n),A&&A.m(e,null),$(e,i),$(e,o),$(o,r),$(e,l),$(e,c),$(e,d),$(e,u),$(e,p),j&&j.m(e,null),$(e,_),T&&T.m(e,null),t[42](e),F(N,f,Y),E&&E.m(N,Y),F(N,m,Y),O&&O.m(N,Y),F(N,g,Y),M&&M.m(N,Y),F(N,v,Y),y=!0,b||(w=[te(e,"dragstart",t[30]),te(e,"click",t[26]),te(e,"mouseenter",t[28]),te(e,"mouseleave",t[29])],b=!0)},p(N,Y){var x,ce,ue,Z,Q,se,_e;((x=N[11])==null?void 0:x.node)===N[2]&&((ce=N[11])==null?void 0:ce.type)==="before"?k||(k=eh(),k.c(),k.m(e,n)):k&&(k.d(1),k=null),N[4]?A?A.p(Dd(N),Y):(A=th(Dd(N)),A.c(),A.m(e,i)):A&&(A.d(1),A=null),Y[0]&1&&s!==(s=`url(${po(N[14].componentIcon(N[0].props.json.type,N[0].props.json))})`)&&ke(r,"background-image",s),(!y||Y[0]&1)&&a!==(a=N[25](N[0])+"")&&at(c,a),N[6]?j?j.p(N,Y):(j=ih(N),j.c(),j.m(e,_)):j&&(j.d(1),j=null),N[10]?T&&(T.d(1),T=null):T?T.p(N,Y):(T=oh(N),T.c(),T.m(e,null)),(!y||Y[0]&2)&&h(e,"data-level",N[1]),(!y||Y[0]&2)&&ke(e,"--level",N[1]),(!y||Y[0]&256)&&ne(e,"tree-leaf_alternate-hovered",N[8]),(!y||Y[0]&8)&&ne(e,"tree-leaf_selected",N[3]),(!y||Y[0]&1)&&ne(e,"tree-leaf_empty_no",!!N[0].childs.length),(!y||Y[0]&1)&&ne(e,"tree-leaf_empty_yes",!N[0].childs.length),(!y||Y[0]&128)&&ne(e,"tree-leaf_expanded_no",!N[7]),(!y||Y[0]&128)&&ne(e,"tree-leaf_expanded_yes",N[7]),(!y||Y[0]&16)&&ne(e,"tree-leaf_can-have-childs",N[4]),(!y||Y[0]&1)&&ne(e,"tree-leaf_container-child",!Sl((ue=N[0].parent)==null?void 0:ue.props.json.type)),(!y||Y[0]&64)&&ne(e,"tree-leaf_errors",N[6]==="errors"),(!y||Y[0]&64)&&ne(e,"tree-leaf_warnings",N[6]==="warnings"),((Z=N[11])==null?void 0:Z.node)===N[2]&&((Q=N[11])==null?void 0:Q.type)==="inside"?E?E.p(N,Y):(E=rh(N),E.c(),E.m(m.parentNode,m)):E&&(E.d(1),E=null),N[7]?O?(O.p(N,Y),Y[0]&128&&I(O,1)):(O=sh(N),O.c(),I(O,1),O.m(g.parentNode,g)):O&&(Dt(),H(O,1,1,(()=>{O=null})),Vt()),((se=N[11])==null?void 0:se.node)===N[2]&&((_e=N[11])==null?void 0:_e.type)==="after"?M?M.p(N,Y):(M=ah(N),M.c(),M.m(v.parentNode,v)):M&&(M.d(1),M=null)},i(N){y||(I(O),y=!0)},o(N){H(O),y=!1},d(N){N&&(V(e),V(f),V(m),V(g),V(v)),k&&k.d(),A&&A.d(),j&&j.d(),T&&T.d(),t[42](null),E&&E.d(N),O&&O.d(N),M&&M.d(N),b=!1,Rn(w)}}}function Zne(t,e,n){let i,o,r,s,l,a,c,d,u,p,_,f,m,g,v,y,{leaf:b}=e,{level:w=0}=e;const{l10nString:k}=yt(oi);De(t,k,(Ie=>n(5,f=Ie)));const{state:A,showErrors:j,contextMenu:T}=yt(Cn),{userDefinedTemplates:E,copiedLeaf:O,rendererErrors:M,readOnly:D,themeStore:R}=A;De(t,E,(Ie=>n(40,g=Ie))),De(t,O,(Ie=>n(39,m=Ie))),De(t,M,(Ie=>n(36,u=Ie))),De(t,D,(Ie=>n(10,c=Ie))),De(t,R,(Ie=>n(12,y=Ie)));const J=_i(),B=yt($V),z=B.collapsedStore;De(t,z,(Ie=>n(35,d=Ie)));const q=B.selectedStore;De(t,q,(Ie=>n(37,p=Ie)));const N=B.highlightStore;De(t,N,(Ie=>n(38,_=Ie)));const Y=B.dragTarget;De(t,Y,(Ie=>n(11,v=Ie)));const x=B.bindChild,ce=B.getText;let ue,Z=!1,Q=!1,se="";function _e(){q.set(b)}function Oe(){z.set({...d,[b.id]:a})}function W(){J("hovered",{leaf:b,node:ue})}function ge(){J("hovered",{leaf:null})}function it(Ie){if(c){Ie.preventDefault();return}Ie.dataTransfer&&(Ie.dataTransfer.setData("application/divnode",b.id),Ie.dataTransfer.dropEffect="move")}function ye(){j({leafId:b.id})}Uc((()=>{x({type:"mount",node:ue,leaf(){return b}})})),Js((()=>{x({type:"destroy",node:ue})}));const rt=Ie=>T().toggle({name:"tree",owner:Ie.target,items:s,offset:{x:-8,y:0}});function U(Ie){pt[Ie?"unshift":"push"]((()=>{ue=Ie,n(2,ue)}))}function de(Ie){mn.call(this,t,Ie)}function pe(Ie){mn.call(this,t,Ie)}function et(Ie){mn.call(this,t,Ie)}function we(Ie){mn.call(this,t,Ie)}return t.$$set=Ie=>{"leaf"in Ie&&n(0,b=Ie.leaf),"level"in Ie&&n(1,w=Ie.level)},t.$$.update=()=>{if(t.$$.dirty[0]&32|t.$$.dirty[1]&512&&n(33,i=TV.concat(g.map((Ie=>({name:Ie,type:Ie,isTemplate:!0})))).map((Ie=>({name:Ie.name||Ie.nameKey&&f(Ie.nameKey)||"<unknown>",type:Ie.type,description:Ie.description})))),t.$$.dirty[0]&1&&n(34,o=A.getBaseType(b.props.json.type)),t.$$.dirty[0]&1|t.$$.dirty[1]&8&&n(4,r=o&&!Sl(o)&&!ep(A,b.props.json)&&!Ji[b.props.json.type]),t.$$.dirty[0]&53|t.$$.dirty[1]&260&&n(9,s=[r&&{text:f("addComponent"),submenu:i.map((Ie=>({text:Ie.name,icon:A.componentIcon(Ie.type),callback(){J("add",{leaf:b,node:ue,type:Ie.type})}})))},{text:f("cloneComponent"),enabled:!!b.parent,callback(){J("action",{action:"duplicate",leaf:b,node:ue})}},{text:f("copyComponent"),enabled:!!b.parent,callback(){J("action",{action:"copy",leaf:b,node:ue})}},{text:f("pasteComponent"),enabled:!!m,callback(){J("action",{action:"paste",leaf:b,node:ue})}},{text:f("removeComponent"),enabled:!!b.parent,callback(){J("action",{action:"delete",leaf:b,node:ue})}}].filter(kr)),t.$$.dirty[0]&1|t.$$.dirty[1]&128&&n(8,l=_&&_.includes(b)),t.$$.dirty[0]&13|t.$$.dirty[1]&66&&(n(3,Z=(p==null?void 0:p.id)===(b==null?void 0:b.id)),Z&&!Q&&ue?(J("selected",{leaf:b,node:ue}),n(32,Q=!0)):n(32,Q=!1)),t.$$.dirty[0]&1|t.$$.dirty[1]&16&&n(7,a=!d[b.id]),t.$$.dirty[0]&1|t.$$.dirty[1]&32){const Ie=u[b.id];Ie!=null&&Ie.every(CV)?n(6,se="warnings"):Ie?n(6,se="errors"):n(6,se="")}},[b,w,ue,Z,r,f,se,a,l,s,c,v,y,k,A,T,E,O,M,D,R,z,q,N,Y,ce,_e,Oe,W,ge,it,ye,Q,i,o,d,u,p,_,m,g,rt,U,de,pe,et,we]}class np extends Gt{constructor(e){super(),Yt(this,e,Zne,Xne,Rt,{leaf:0,level:1},null,[-1,-1])}}const{Map:xne}=va;function ch(t,e,n){const i=t.slice();return i[46]=e[n],i}function Qne(t){let e=[],n=new xne,i,o,r=ln(t[1].childs);const s=l=>l[46].id;for(let l=0;l<r.length;l+=1){let a=ch(t,r,l),c=s(a);n.set(c,e[l]=dh(c,a))}return{c(){for(let l=0;l<e.length;l+=1)e[l].c();i=Vn()},m(l,a){for(let c=0;c<e.length;c+=1)e[c]&&e[c].m(l,a);F(l,i,a),o=!0},p(l,a){a[0]&983042&&(r=ln(l[1].childs),Dt(),e=Us(e,a,s,1,l,r,n,i.parentNode,zl,dh,i,ch),Vt())},i(l){if(!o){for(let a=0;a<r.length;a+=1)I(e[a]);o=!0}},o(l){for(let a=0;a<e.length;a+=1)H(e[a]);o=!1},d(l){l&&V(i);for(let a=0;a<e.length;a+=1)e[a].d(l)}}}function eie(t){let e,n;return e=new np({props:{leaf:t[1]}}),e.$on("selected",t[16]),e.$on("hovered",t[17]),e.$on("action",t[18]),e.$on("add",t[19]),{c(){Pe(e.$$.fragment)},m(i,o){Ee(e,i,o),n=!0},p(i,o){const r={};o[0]&2&&(r.leaf=i[1]),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Ae(e,i)}}}function dh(t,e){let n,i,o;return i=new np({props:{leaf:e[46]}}),i.$on("selected",e[16]),i.$on("hovered",e[17]),i.$on("action",e[18]),i.$on("add",e[19]),{key:t,first:null,c(){n=Vn(),Pe(i.$$.fragment),this.first=n},m(r,s){F(r,n,s),Ee(i,r,s),o=!0},p(r,s){e=r;const l={};s[0]&2&&(l.leaf=e[46]),i.$set(l)},i(r){o||(I(i.$$.fragment,r),o=!0)},o(r){H(i.$$.fragment,r),o=!1},d(r){r&&V(n),Ae(i,r)}}}function tie(t){let e,n,i,o,r,s;const l=[eie,Qne],a=[];function c(d,u){return d[0]?0:1}return n=c(t),i=a[n]=l[n](t),{c(){e=S("div"),i.c(),h(e,"class","tree svelte-w3gxk3"),h(e,"tabindex","0")},m(d,u){F(d,e,u),a[n].m(e,null),t[26](e),o=!0,r||(s=[te(e,"keydown",t[10]),te(e,"click",t[11]),te(e,"mouseleave",t[12]),te(e,"dragover",zi(t[13])),te(e,"dragleave",zi(t[14])),te(e,"drop",zi(t[15]))],r=!0)},p(d,u){let p=n;n=c(d),n===p?a[n].p(d,u):(Dt(),H(a[p],1,1,(()=>{a[p]=null})),Vt(),i=a[n],i?i.p(d,u):(i=a[n]=l[n](d),i.c()),I(i,1),i.m(e,null))},i(d){o||(I(i),o=!0)},o(d){H(i),o=!1},d(d){d&&V(e),a[n].d(),t[26](null),r=!1,Rn(s)}}}const qa=32;function nie(t,e,n){let i,o,r,s,l,a,c,d,{showRoot:u=!0}=e,{getText:p}=e,{highlightLeafs:_=null}=e;function f(){k&&k.focus()}const{state:m,rendererApi:g}=yt(Cn),{tree:v,copiedLeaf:y,selectedLeaf:b,readOnly:w}=m;De(t,v,(U=>n(1,r=U))),De(t,y,(U=>n(28,s=U))),De(t,b,(U=>n(24,o=U))),De(t,w,(U=>n(30,a=U)));let k,A=null;const j=Si({});De(t,j,(U=>n(25,c=U)));const T=Si(null);De(t,T,(U=>n(31,d=U)));const E=Si(null);De(t,E,(U=>n(29,l=U)));const O=new Map,M=_i();function D(U,de){const pe=[];function et(we){we&&((we!==U||u)&&pe.push(we),de[we.id]||we.childs.forEach(et))}return et(U),pe}function R(){const U=o;return U?i.findIndex((de=>de===U)):-1}function J(U){const de=i[U];de!==o&&(b.set(de),M("keyboardhover",de))}function B(U){let de=R();de===-1?de=U===-1?0:i.length-1:(de+=U,de>=i.length?de=i.length-1:de<0&&(de=0)),J(de)}function z(U){U>=i.length?U=i.length-1:U<0&&(U=0),J(U)}function q(){const U=o;if(!U)return;const de=c;de[U.id]||!U.childs.length?U.parent&&b.set(U.parent):j.set({...de,[U.id]:!0})}function N(){const U=o;if(!U)return;const de=c;de[U.id]?j.set({...de,[U.id]:!1}):U.childs.length&&b.set(U.childs[0])}function Y(U){if(yp.isPressed(U)||AL.isPressed(U))B(yp.isPressed(U)?-1:1);else if(OL.isPressed(U))q();else if(ML.isPressed(U))N();else if(S1.isPressed(U)&&!a){const de=o;if(de!=null&&de.parent){const pe=R();m.deleteLeaf(de),ur().then((()=>{z(pe)}))}}else if(z1.isPressed(U)&&o)y.set(o);else if(E1.isPressed(U)&&o&&s&&!a)m.pasteLeaf(s,o);else return;U.preventDefault(),U.stopPropagation()}function x(U){U.target===k&&Mi(b,o=null,o)}function ce(){M("hover",null)}function ue(U){const de=U.pageY-window.scrollY,pe=Array.from(k.querySelectorAll(".tree-leaf_container-child")).map((Ie=>{const Xe=Ie.getBoundingClientRect();return{node:Ie,bbox:Xe,level:Number(Ie.dataset.level)}})),et=Array.from(k.querySelectorAll(".tree-leaf_can-have-childs")).map((Ie=>{const Xe=Ie.getBoundingClientRect();return{node:Ie,bbox:Xe,level:Number(Ie.dataset.level)}}));let we;pe.forEach((({node:Ie,bbox:Xe})=>{var ee;const vt=(ee=O.get(Ie))==null?void 0:ee();if(!vt||!vt.parent)return;const Qe=Xe.top,fe=Xe.top+Xe.height/2,me=de>=Qe&&de<=fe?0:Math.min(Math.abs(de-Qe),Math.abs(de-fe));(!we||me<we.dist)&&(we={type:"before",dist:me,node:Ie});const ve=Xe.bottom-Xe.height/2,Ge=Xe.bottom,gt=de>=ve&&de<=Ge?0:Math.min(Math.abs(de-ve),Math.abs(de-Ge));(!we||gt<we.dist)&&(we={type:"after",dist:gt,node:Ie})})),et.forEach((({node:Ie,bbox:Xe})=>{const vt=Xe.bottom-Xe.height*2/3,Qe=Xe.bottom-Xe.height/3;de>=vt&&de<=Qe&&(we={type:"inside",dist:0,node:Ie})})),E.set(we||null)}function Z(U){U.relatedTarget&&U.relatedTarget instanceof Node&&k.contains(U.relatedTarget)||E.set(null)}function Q(U){var Qe,fe;const de=l;if(!de)return;E.set(null);const pe=(Qe=O.get(de.node))==null?void 0:Qe();if(!pe||(de.type==="before"||de.type==="after")&&!pe.parent)return;const et=de.type==="inside"?pe:pe.parent,we=(fe=U.dataTransfer)==null?void 0:fe.getData("application/divnode");if(!we)return;const Ie=m.getChild(we);if(!Ie||zc(Ie,et))return;const Xe=Ie.parent?Ie.parent.childs.indexOf(Ie):-1;let vt;de.type==="inside"?vt=0:vt=pe.parent.childs.indexOf(pe)+(de.type==="before"?0:1),de.type!=="inside"&&Ie.parent===pe.parent&&vt>Xe&&--vt,Ie.parent?m.pushCommand(new Jl(m,{newParentId:et.id,insertIndex:vt,leafId:Ie.id})):m.pushCommand(new da({parentId:et.id,insertIndex:vt,leaf:Ie})),Mi(b,o=no(r,Ie.id)||null,o)}function se(U){const pe=U.detail.node.getBoundingClientRect(),et=k.parentElement;if(!et)return;const we=et.getBoundingClientRect();pe.top-qa<we.top?et.scrollTop+=pe.top-qa-we.top:pe.bottom+qa>we.bottom&&(et.scrollTop+=pe.bottom+qa-we.bottom)}function _e(U){M("hover",U.detail.leaf)}function Oe(U){U.detail.action==="delete"?W(U):U.detail.action==="duplicate"?ge(U):U.detail.action==="copy"?y.set(U.detail.leaf):U.detail.action==="paste"&&s&&m.pasteLeaf(s,U.detail.leaf)}function W(U){const de=U.detail.leaf;m.deleteLeaf(de)}function ge(U){const de=U.detail.leaf;de.parent&&m.pasteLeaf(de,de.parent,de.parent.childs.indexOf(de)+1)}function it(U){const de=U.detail.leaf,pe=m.genNewLeaf(U.detail.type,!0);m.pushCommand(new da({parentId:de.id,insertIndex:de.childs.length,leaf:pe})),Mi(b,o=no(r,pe.id)||null,o),g().focus()}function ye(U){U.type==="mount"?O.set(U.node,U.leaf):O.delete(U.node)}mc($V,{collapsedStore:j,selectedStore:b,highlightStore:T,dragTarget:E,bindChild:ye,getText:p});function rt(U){pt[U?"unshift":"push"]((()=>{k=U,n(2,k)}))}return t.$$set=U=>{"showRoot"in U&&n(0,u=U.showRoot),"getText"in U&&n(20,p=U.getText),"highlightLeafs"in U&&n(21,_=U.highlightLeafs)},t.$$.update=()=>{t.$$.dirty[0]&2097152&&Mi(T,d=_,d),t.$$.dirty[0]&33554434&&(i=D(r,c)),t.$$.dirty[0]&25165824&&(o==null?void 0:o.id)!==(A==null?void 0:A.id)&&(n(23,A=o),M("selectionchange",o))},[u,r,k,v,y,b,w,j,T,E,Y,x,ce,ue,Z,Q,se,_e,Oe,it,p,_,f,A,o,c,rt]}class iie extends Gt{constructor(e){super(),Yt(this,e,nie,tie,Rt,{showRoot:0,getText:20,highlightLeafs:21,focus:22},null,[-1,-1])}get focus(){return this.$$.ctx[22]}}function oie(t){let e,n;return{c(){e=S("h2"),n=xe(t[0]),h(e,"class","panel-title svelte-wex3jw")},m(i,o){F(i,e,o),$(e,n)},p(i,[o]){o&1&&at(n,i[0])},i:tn,o:tn,d(i){i&&V(e)}}}function rie(t,e,n){let{title:i}=e;return t.$$set=o=>{"title"in o&&n(0,i=o.title)},[i]}class Il extends Gt{constructor(e){super(),Yt(this,e,rie,oie,Rt,{title:0})}}function uh(t){let e=t[4],n,i,o=ph(t);return{c(){o.c(),n=Vn()},m(r,s){o.m(r,s),F(r,n,s),i=!0},p(r,s){s&16&&Rt(e,e=r[4])?(Dt(),H(o,1,1,tn),Vt(),o=ph(r),o.c(),I(o,1),o.m(n.parentNode,n)):o.p(r,s)},i(r){i||(I(o),i=!0)},o(r){H(o),i=!1},d(r){r&&V(n),o.d(r)}}}function ph(t){let e,n,i={highlightLeafs:t[0],getText:t[9]};return e=new iie({props:i}),t[13](e),e.$on("hover",t[10]),e.$on("keyboardhover",t[11]),{c(){Pe(e.$$.fragment)},m(o,r){Ee(e,o,r),n=!0},p(o,r){const s={};r&1&&(s.highlightLeafs=o[0]),e.$set(s)},i(o){n||(I(e.$$.fragment,o),n=!0)},o(o){H(e.$$.fragment,o),n=!1},d(o){t[13](null),Ae(e,o)}}}function sie(t){let e,n,i,o;e=new Il({props:{title:t[2]("components")}});let r=t[3]&&uh(t);return{c(){Pe(e.$$.fragment),n=G(),r&&r.c(),i=Vn()},m(s,l){Ee(e,s,l),F(s,n,l),r&&r.m(s,l),F(s,i,l),o=!0},p(s,[l]){const a={};l&4&&(a.title=s[2]("components")),e.$set(a),s[3]?r?(r.p(s,l),l&8&&I(r,1)):(r=uh(s),r.c(),I(r,1),r.m(i.parentNode,i)):r&&(Dt(),H(r,1,1,(()=>{r=null})),Vt())},i(s){o||(I(e.$$.fragment,s),I(r),o=!0)},o(s){H(e.$$.fragment,s),H(r),o=!1},d(s){s&&(V(n),V(i)),Ae(e,s),r&&r.d(s)}}}function lie(t,e,n){let i,o,r,s;const{l10n:l,lang:a}=yt(oi);De(t,l,(w=>n(2,i=w))),De(t,a,(w=>n(4,s=w)));const{state:c}=yt(Cn),{highlightLeaf:d,highlightElem:u,highlightRanges:p,tree:_}=c;De(t,d,(w=>n(12,r=w))),De(t,_,(w=>n(3,o=w)));let f=null,m;function g(w){if(w===o)return i("rootComponent");const k=w.props.json.type;return Gl(k)?i(Ji[k].nameKey):yV.has(k)?i(`components.${k}`):k}function v(w){const k=w.detail,A=k==null?void 0:k.props.node,j=k==null?void 0:k.props.range;A&&j?(d.set([k]),u.set([A]),p.set([j])):(d.set(null),u.set(null),p.set(null))}function y(w){d.set([w.detail]),u.set([w.detail.props.node]);const k=w.detail.props.range;p.set(k?[w.detail.props.range]:null)}function b(w){pt[w?"unshift":"push"]((()=>{m=w,n(1,m)}))}return t.$$.update=()=>{t.$$.dirty&4096&&(r?n(0,f=(r==null?void 0:r.filter(Boolean))||null):n(0,f=null))},[f,m,i,o,s,l,a,d,_,g,v,y,r,b]}class aie extends Gt{constructor(e){super(),Yt(this,e,lie,sie,Rt,{})}}function _h(t,e,n){const i=t.slice();return i[21]=e[n],i}function fh(t,e,n){const i=t.slice();return i[21]=e[n],i}function mh(t,e,n){const i=t.slice();return i[21]=e[n],i}function gh(t){let e,n,i,o=`url(${po(t[5].componentIcon(t[21].type))})`,r,s,l,a,c,d;function u(..._){return t[12](t[21],..._)}function p(){return t[13](t[21])}return{c(){e=S("div"),n=S("div"),i=S("div"),r=G(),s=S("div"),s.textContent=`${wl(t[21].name||t[21].type)}`,l=G(),h(i,"class","new-component__icon-inner svelte-1opnjml"),ke(i,"background-image",o),h(n,"class","new-component__icon svelte-1opnjml"),h(s,"class","new-component__text svelte-1opnjml"),h(e,"class","new-component__item svelte-1opnjml"),h(e,"draggable","true"),h(e,"title",a=t[21].description?t[21].description[t[1]]:"")},m(_,f){F(_,e,f),$(e,n),$(n,i),$(e,r),$(e,s),$(e,l),c||(d=[te(e,"dragstart",u),te(e,"click",p)],c=!0)},p(_,f){t=_,f&2&&a!==(a=t[21].description?t[21].description[t[1]]:"")&&h(e,"title",a)},d(_){_&&V(e),c=!1,Rn(d)}}}function cie(t){let e,n=ln(t[9]),i=[];for(let o=0;o<n.length;o+=1)i[o]=gh(mh(t,n,o));return{c(){e=S("div");for(let o=0;o<i.length;o+=1)i[o].c();h(e,"class","new-component__items svelte-1opnjml")},m(o,r){F(o,e,r);for(let s=0;s<i.length;s+=1)i[s]&&i[s].m(e,null)},p(o,r){if(r&2594){n=ln(o[9]);let s;for(s=0;s<n.length;s+=1){const l=mh(o,n,s);i[s]?i[s].p(l,r):(i[s]=gh(l),i[s].c(),i[s].m(e,null))}for(;s<i.length;s+=1)i[s].d(1);i.length=n.length}},d(o){o&&V(e),Bi(i,o)}}}function die(t){let e,n=t[0]("basicComponents")+"",i;return{c(){e=S("div"),i=xe(n),h(e,"slot","title")},m(o,r){F(o,e,r),$(e,i)},p(o,r){r&1&&n!==(n=o[0]("basicComponents")+"")&&at(i,n)},d(o){o&&V(e)}}}function hh(t){let e,n,i,o=`url(${po(t[5].componentIcon(t[21].type))})`,r,s,l,a,c,d;function u(..._){return t[14](t[21],..._)}function p(){return t[15](t[21])}return{c(){e=S("div"),n=S("div"),i=S("div"),r=G(),s=S("div"),s.textContent=`${wl(t[21].name||t[21].type)}`,l=G(),h(i,"class","new-component__icon-inner svelte-1opnjml"),ke(i,"background-image",o),h(n,"class","new-component__icon svelte-1opnjml"),h(s,"class","new-component__text svelte-1opnjml"),h(e,"class","new-component__item svelte-1opnjml"),h(e,"draggable","true"),h(e,"title",a=t[21].description?t[21].description[t[1]]:"")},m(_,f){F(_,e,f),$(e,n),$(n,i),$(e,r),$(e,s),$(e,l),c||(d=[te(e,"dragstart",u),te(e,"click",p)],c=!0)},p(_,f){t=_,f&2&&a!==(a=t[21].description?t[21].description[t[1]]:"")&&h(e,"title",a)},d(_){_&&V(e),c=!1,Rn(d)}}}function uie(t){let e,n=ln(t[10]),i=[];for(let o=0;o<n.length;o+=1)i[o]=hh(fh(t,n,o));return{c(){e=S("div");for(let o=0;o<i.length;o+=1)i[o].c();h(e,"class","new-component__items svelte-1opnjml")},m(o,r){F(o,e,r);for(let s=0;s<i.length;s+=1)i[s]&&i[s].m(e,null)},p(o,r){if(r&3106){n=ln(o[10]);let s;for(s=0;s<n.length;s+=1){const l=fh(o,n,s);i[s]?i[s].p(l,r):(i[s]=hh(l),i[s].c(),i[s].m(e,null))}for(;s<i.length;s+=1)i[s].d(1);i.length=n.length}},d(o){o&&V(e),Bi(i,o)}}}function pie(t){let e,n=t[0]("additionalComponents")+"",i;return{c(){e=S("div"),i=xe(n),h(e,"slot","title")},m(o,r){F(o,e,r),$(e,i)},p(o,r){r&1&&n!==(n=o[0]("additionalComponents")+"")&&at(i,n)},d(o){o&&V(e)}}}function vh(t){let e,n;return e=new xo({props:{theme:"props",open:!1,$$slots:{title:[fie],default:[_ie]},$$scope:{ctx:t}}}),{c(){Pe(e.$$.fragment)},m(i,o){Ee(e,i,o),n=!0},p(i,o){const r={};o&268435461&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Ae(e,i)}}}function bh(t){let e,n,i,o=`url(${po(t[5].componentIcon(t[21]))})`,r,s,l=t[21]+"",a,c,d,u,p;function _(...m){return t[16](t[21],...m)}function f(){return t[17](t[21])}return{c(){e=S("div"),n=S("div"),i=S("div"),r=G(),s=S("div"),a=xe(l),c=G(),h(i,"class","new-component__icon-inner svelte-1opnjml"),ke(i,"background-image",o),h(n,"class","new-component__icon svelte-1opnjml"),h(s,"class","new-component__text svelte-1opnjml"),h(e,"class","new-component__item svelte-1opnjml"),h(e,"draggable","true"),h(e,"title",d=t[21])},m(m,g){F(m,e,g),$(e,n),$(n,i),$(e,r),$(e,s),$(s,a),$(e,c),u||(p=[te(e,"dragstart",_),te(e,"click",f)],u=!0)},p(m,g){t=m,g&4&&o!==(o=`url(${po(t[5].componentIcon(t[21]))})`)&&ke(i,"background-image",o),g&4&&l!==(l=t[21]+"")&&at(a,l),g&4&&d!==(d=t[21])&&h(e,"title",d)},d(m){m&&V(e),u=!1,Rn(p)}}}function _ie(t){let e,n=ln(t[2]),i=[];for(let o=0;o<n.length;o+=1)i[o]=bh(_h(t,n,o));return{c(){e=S("div");for(let o=0;o<i.length;o+=1)i[o].c();h(e,"class","new-component__items svelte-1opnjml")},m(o,r){F(o,e,r);for(let s=0;s<i.length;s+=1)i[s]&&i[s].m(e,null)},p(o,r){if(r&2084){n=ln(o[2]);let s;for(s=0;s<n.length;s+=1){const l=_h(o,n,s);i[s]?i[s].p(l,r):(i[s]=bh(l),i[s].c(),i[s].m(e,null))}for(;s<i.length;s+=1)i[s].d(1);i.length=n.length}},d(o){o&&V(e),Bi(i,o)}}}function fie(t){let e,n=t[0]("userDefinedComponents")+"",i;return{c(){e=S("div"),i=xe(n),h(e,"slot","title")},m(o,r){F(o,e,r),$(e,i)},p(o,r){r&1&&n!==(n=o[0]("userDefinedComponents")+"")&&at(i,n)},d(o){o&&V(e)}}}function mie(t){let e,n,i,o,r,s;n=new xo({props:{theme:"props",$$slots:{title:[die],default:[cie]},$$scope:{ctx:t}}}),o=new xo({props:{theme:"props",open:!1,$$slots:{title:[pie],default:[uie]},$$scope:{ctx:t}}});let l=t[2].length&&vh(t);return{c(){e=S("div"),Pe(n.$$.fragment),i=G(),Pe(o.$$.fragment),r=G(),l&&l.c(),h(e,"class","new-component")},m(a,c){F(a,e,c),Ee(n,e,null),$(e,i),Ee(o,e,null),$(e,r),l&&l.m(e,null),s=!0},p(a,[c]){const d={};c&268435459&&(d.$$scope={dirty:c,ctx:a}),n.$set(d);const u={};c&268435459&&(u.$$scope={dirty:c,ctx:a}),o.$set(u),a[2].length?l?(l.p(a,c),c&4&&I(l,1)):(l=vh(a),l.c(),I(l,1),l.m(e,null)):l&&(Dt(),H(l,1,1,(()=>{l=null})),Vt())},i(a){s||(I(n.$$.fragment,a),I(o.$$.fragment,a),I(l),s=!0)},o(a){H(n.$$.fragment,a),H(o.$$.fragment,a),H(l),s=!1},d(a){a&&V(e),Ae(n),Ae(o),l&&l.d()}}}function Vd(t,e){t.dataTransfer&&(t.dataTransfer.setData("application/divnode",`_new:${e}`),t.dataTransfer.dropEffect="copy")}function gie(t,e,n){let i,o,r,s,l;const{l10nString:a,lang:c}=yt(oi);De(t,a,(T=>n(0,r=T))),De(t,c,(T=>n(1,s=T)));const{state:d,rendererApi:u}=yt(Cn),{userDefinedTemplates:p,selectedLeaf:_,tree:f}=d;De(t,p,(T=>n(2,l=T))),De(t,_,(T=>n(19,o=T))),De(t,f,(T=>n(18,i=T)));const m=jV.map((T=>({name:T.name||T.nameKey&&r(T.nameKey)||"<unknown>",type:T.type,description:T.description}))),g=SV.map((T=>({name:T.name||T.nameKey&&r(T.nameKey)||"<unknown>",type:T.type,description:T.description})));function v(T){const E=d.getChild(`_new:${T}`,!0);E&&(d.pushCommand(new da({parentId:i.id,insertIndex:i.childs.length,leaf:E})),Mi(_,o=no(i,E.id)||null,o),u().focus())}return[r,s,l,a,c,d,p,_,f,m,g,v,(T,E)=>Vd(E,T.type),T=>v(T.type),(T,E)=>Vd(E,T.type),T=>v(T.type),(T,E)=>Vd(E,T),T=>v(T)]}class hie extends Gt{constructor(e){super(),Yt(this,e,gie,mie,Rt,{})}}function or(t){return!!(t!=null&&t.startsWith("@{getDictOptColor('#00ffffff', local_palette, '"))}function yr(t){const e=/\@\{getDictOptColor\('#00ffffff', local_palette, '([^']+)', theme\)}/.exec(t);return e?e[1]:""}function pa(t){return`@{getDictOptColor('#00ffffff', local_palette, '${t}', theme)}`}function yh(t,e,n){const i=t.slice();return i[17]=e[n],i}function wh(t){let e,n,i,o=!1,r,s,l,a,c,d,u,p,_=`url(${po(t[17].icon||(t[8]==="light"?t[17].iconLight:t[17].iconDark)||"")})`,f,m,g,v;return m=_1(t[14][0]),{c(){e=S("div"),n=S("input"),c=G(),d=S("div"),u=G(),p=S("div"),f=G(),h(n,"class","radio-selector__radio svelte-1j7bao5"),h(n,"type","radio"),h(n,"name",t[1]),n.__value=i=t[17].value,Hn(n,n.__value),h(n,"aria-label",r=t[17].text),h(n,"title",s=t[5]?void 0:t[17].text),h(n,"data-custom-tooltip",l=t[5]?t[17].text:void 0),h(n,"data-custom-tooltop-align",a=t[17].tooltipAlign||"center"),n.disabled=t[4],h(d,"class","radio-selector__item-bg svelte-1j7bao5"),h(p,"class","radio-selector__item-icon svelte-1j7bao5"),ne(p,"radio-selector__item-icon_both-themes",!!t[17].icon),ke(p,"background-image",_),h(e,"class","radio-selector__item svelte-1j7bao5"),m.p(n)},m(y,b){F(y,e,b),$(e,n),n.checked=n.__value===t[7],$(e,c),$(e,d),$(e,u),$(e,p),$(e,f),g||(v=[te(n,"change",t[13]),te(n,"change",t[10])],g=!0)},p(y,b){b&2&&h(n,"name",y[1]),b&1&&i!==(i=y[17].value)&&(n.__value=i,Hn(n,n.__value),o=!0),b&1&&r!==(r=y[17].text)&&h(n,"aria-label",r),b&33&&s!==(s=y[5]?void 0:y[17].text)&&h(n,"title",s),b&33&&l!==(l=y[5]?y[17].text:void 0)&&h(n,"data-custom-tooltip",l),b&1&&a!==(a=y[17].tooltipAlign||"center")&&h(n,"data-custom-tooltop-align",a),b&16&&(n.disabled=y[4]),(o||b&129)&&(n.checked=n.__value===y[7]),b&1&&ne(p,"radio-selector__item-icon_both-themes",!!y[17].icon),b&257&&_!==(_=`url(${po(y[17].icon||(y[8]==="light"?y[17].iconLight:y[17].iconDark)||"")})`)&&ke(p,"background-image",_)},d(y){y&&V(e),m.r(),g=!1,Rn(v)}}}function vie(t){let e,n,i=ln(t[0]),o=[];for(let r=0;r<i.length;r+=1)o[r]=wh(yh(t,i,r));return{c(){e=S("div");for(let r=0;r<o.length;r+=1)o[r].c();h(e,"class",n="radio-selector radio-selector_theme_"+t[3]+" radio-selector_icon-size_"+t[6]+" "+t[2]+" svelte-1j7bao5"),ne(e,"radio-selector_disabled",t[4])},m(r,s){F(r,e,s);for(let l=0;l<o.length;l+=1)o[l]&&o[l].m(e,null)},p(r,[s]){if(s&1459){i=ln(r[0]);let l;for(l=0;l<i.length;l+=1){const a=yh(r,i,l);o[l]?o[l].p(a,s):(o[l]=wh(a),o[l].c(),o[l].m(e,null))}for(;l<o.length;l+=1)o[l].d(1);o.length=i.length}s&76&&n!==(n="radio-selector radio-selector_theme_"+r[3]+" radio-selector_icon-size_"+r[6]+" "+r[2]+" svelte-1j7bao5")&&h(e,"class",n),s&92&&ne(e,"radio-selector_disabled",r[4])},i:tn,o:tn,d(r){r&&V(e),Bi(o,r)}}}function bie(t,e,n){let i,o,{options:r}=e,{value:s}=e,{name:l}=e,{mix:a=""}=e,{theme:c}=e,{defaultValue:d=""}=e,{disabled:u=!1}=e,{customTooltips:p=!0}=e,{iconSize:_="contain"}=e;const{state:f}=yt(Cn),{themeStore:m}=f;De(t,m,(w=>n(8,o=w)));const g=_i();function v(){n(11,s=i),g("change")}const y=[[]];function b(){i=this.__value,n(7,i),n(11,s),n(12,d)}return t.$$set=w=>{"options"in w&&n(0,r=w.options),"value"in w&&n(11,s=w.value),"name"in w&&n(1,l=w.name),"mix"in w&&n(2,a=w.mix),"theme"in w&&n(3,c=w.theme),"defaultValue"in w&&n(12,d=w.defaultValue),"disabled"in w&&n(4,u=w.disabled),"customTooltips"in w&&n(5,p=w.customTooltips),"iconSize"in w&&n(6,_=w.iconSize)},t.$$.update=()=>{t.$$.dirty&6144&&n(7,i=s||d)},[r,l,a,c,u,p,_,i,o,m,v,s,d,b,y]}class Dl extends Gt{constructor(e){super(),Yt(this,e,bie,vie,Rt,{options:0,value:11,name:1,mix:2,theme:3,defaultValue:12,disabled:4,customTooltips:5,iconSize:6})}}function yie(t,{from:e,to:n},i={}){const o=getComputedStyle(t),r=o.transform==="none"?"":o.transform,[s,l]=o.transformOrigin.split(" ").map(parseFloat),a=e.left+e.width*s/n.width-(n.left+s),c=e.top+e.height*l/n.height-(n.top+l),{delay:d=0,duration:u=(_=>Math.sqrt(_)*120),easing:p=zu}=i;return{delay:d,duration:Yo(u)?u(Math.sqrt(a*a+c*c)):u,easing:p,css:(_,f)=>{const m=f*a,g=f*c,v=_+f*e.width/n.width,y=_+f*e.height/n.height;return`transform: ${r} translate(${m}px, ${g}px) scale(${v}, ${y});`}}}function $h(t){let e,n,i;return{c(){e=S("div"),h(e,"class","move-item__move svelte-qd1rf7")},m(o,r){F(o,e,r),n||(i=[te(e,"pointerdown",zi(t[11])),te(e,"pointerup",zi(t[10]))],n=!0)},p:tn,d(o){o&&V(e),n=!1,Rn(i)}}}function kh(t){let e,n,i,o,r;return{c(){e=S("button"),h(e,"class","move-item__delete svelte-qd1rf7"),h(e,"aria-label",n=t[7]("delete")),h(e,"data-custom-tooltip",i=t[7]("delete"))},m(s,l){F(s,e,l),o||(r=te(e,"click",Eo(zi(t[14]))),o=!0)},p(s,l){l&128&&n!==(n=s[7]("delete"))&&h(e,"aria-label",n),l&128&&i!==(i=s[7]("delete"))&&h(e,"data-custom-tooltip",i)},d(s){s&&V(e),o=!1,r()}}}function wie(t){let e,n,i,o,r,s,l,a=t[4]&&$h(t);function c(_){t[12](_)}var d=t[1];function u(_,f){let m={};return _[0]!==void 0&&(m.value=_[0]),{props:m}}d&&(o=bl(d,u(t)),pt.push((()=>Gn(o,"value",c))),o.$on("change",t[13]));let p=!t[5]&&kh(t);return{c(){e=S("div"),a&&a.c(),n=G(),i=S("div"),o&&Pe(o.$$.fragment),s=G(),p&&p.c(),h(i,"class","move-item__content"),h(e,"class","move-item svelte-qd1rf7"),ne(e,"move-item_readonly",t[5]),ne(e,"move-item_moving",t[2]),ne(e,"move-item_reorder",t[3])},m(_,f){F(_,e,f),a&&a.m(e,null),$(e,n),$(e,i),o&&Ee(o,i,null),$(e,s),p&&p.m(e,null),t[15](e),l=!0},p(_,[f]){if(_[4]?a?a.p(_,f):(a=$h(_),a.c(),a.m(e,n)):a&&(a.d(1),a=null),f&2&&d!==(d=_[1])){if(o){Dt();const m=o;H(m.$$.fragment,1,0,(()=>{Ae(m,1)})),Vt()}d?(o=bl(d,u(_)),pt.push((()=>Gn(o,"value",c))),o.$on("change",_[13]),Pe(o.$$.fragment),I(o.$$.fragment,1),Ee(o,i,null)):o=null}else if(d){const m={};!r&&f&1&&(r=!0,m.value=_[0],Xn((()=>r=!1))),o.$set(m)}_[5]?p&&(p.d(1),p=null):p?p.p(_,f):(p=kh(_),p.c(),p.m(e,null)),(!l||f&32)&&ne(e,"move-item_readonly",_[5]),(!l||f&4)&&ne(e,"move-item_moving",_[2]),(!l||f&8)&&ne(e,"move-item_reorder",_[3])},i(_){l||(o&&I(o.$$.fragment,_),l=!0)},o(_){o&&H(o.$$.fragment,_),l=!1},d(_){_&&V(e),a&&a.d(),o&&Ae(o),p&&p.d(),t[15](null)}}}function $ie(t,e,n){let i,{value:o}=e,{itemView:r}=e,{isMoving:s=!1}=e,{isReoderInProgress:l=!1}=e,{canBeMoved:a=!0}=e,{readOnly:c=!1}=e;const{l10nString:d}=yt(oi);De(t,d,(b=>n(7,i=b)));const u=_i();let p;function _(b){mn.call(this,t,b)}const f=b=>u("movestart",{event:b,elem:p});function m(b){o=b,n(0,o)}function g(b){mn.call(this,t,b)}const v=()=>u("delete");function y(b){pt[b?"unshift":"push"]((()=>{p=b,n(6,p)}))}return t.$$set=b=>{"value"in b&&n(0,o=b.value),"itemView"in b&&n(1,r=b.itemView),"isMoving"in b&&n(2,s=b.isMoving),"isReoderInProgress"in b&&n(3,l=b.isReoderInProgress),"canBeMoved"in b&&n(4,a=b.canBeMoved),"readOnly"in b&&n(5,c=b.readOnly)},[o,r,s,l,a,c,p,i,d,u,_,f,m,g,v,y]}class kie extends Gt{constructor(e){super(),Yt(this,e,$ie,wie,Rt,{value:0,itemView:1,isMoving:2,isReoderInProgress:3,canBeMoved:4,readOnly:5})}}function jh(t,e,n){const i=t.slice();i[15]=e[n],i[17]=e,i[18]=n;const o=i[4]&&i[15].__key===i[4].__key;return i[16]=o,i}function Sh(t,e){let n,i,o,r,s,l,a=tn,c;function d(f){e[9](f,e[15],e[17],e[18])}function u(){return e[11](e[15])}function p(...f){return e[12](e[15],...f)}let _={itemView:e[0],readOnly:e[1],isMoving:e[16]&&!e[5],isReoderInProgress:e[4]&&!e[5],canBeMoved:e[2]&&e[2].length>=2};return e[15]!==void 0&&(_.value=e[15]),i=new kie({props:_}),pt.push((()=>Gn(i,"value",d))),i.$on("change",e[10]),i.$on("delete",u),i.$on("movestart",p),{key:t,first:null,c(){n=S("li"),Pe(i.$$.fragment),r=G(),h(n,"class","move-list__item svelte-1f61395"),ne(n,"move-list__item_moved",e[16]),ne(n,"move-list__item_animate",e[16]&&e[5]),this.first=n},m(f,m){F(f,n,m),Ee(i,n,null),$(n,r),c=!0},p(f,m){e=f;const g={};m&1&&(g.itemView=e[0]),m&2&&(g.readOnly=e[1]),m&52&&(g.isMoving=e[16]&&!e[5]),m&48&&(g.isReoderInProgress=e[4]&&!e[5]),m&4&&(g.canBeMoved=e[2]&&e[2].length>=2),!o&&m&4&&(o=!0,g.value=e[15],Xn((()=>o=!1))),i.$set(g),(!c||m&20)&&ne(n,"move-list__item_moved",e[16]),(!c||m&52)&&ne(n,"move-list__item_animate",e[16]&&e[5])},r(){l=n.getBoundingClientRect()},f(){uL(n),a(),v1(n,l)},a(){a(),a=dL(n,l,yie,{duration:e[16]?0:200})},i(f){c||(I(i.$$.fragment,f),f&&_o((()=>{c&&(s||(s=Zi(n,Go,{duration:200},!0)),s.run(1))})),c=!0)},o(f){H(i.$$.fragment,f),f&&(s||(s=Zi(n,Go,{duration:200},!1)),s.run(0)),c=!1},d(f){f&&V(n),Ae(i),f&&s&&s.end()}}}function jie(t){let e,n=[],i=new Map,o,r=ln(t[2]||[]);const s=l=>l[15].__key;for(let l=0;l<r.length;l+=1){let a=jh(t,r,l),c=s(a);i.set(c,n[l]=Sh(c,a))}return{c(){e=S("ul");for(let l=0;l<n.length;l+=1)n[l].c();h(e,"class","move-list__list svelte-1f61395")},m(l,a){F(l,e,a);for(let c=0;c<n.length;c+=1)n[c]&&n[c].m(e,null);t[13](e),o=!0},p(l,[a]){if(a&247){r=ln(l[2]||[]),Dt();for(let c=0;c<n.length;c+=1)n[c].r();n=Us(n,a,s,1,l,r,i,e,hL,Sh,null,jh);for(let c=0;c<n.length;c+=1)n[c].a();Vt()}},i(l){if(!o){for(let a=0;a<r.length;a+=1)I(n[a]);o=!0}},o(l){for(let a=0;a<n.length;a+=1)H(n[a]);o=!1},d(l){l&&V(e);for(let a=0;a<n.length;a+=1)n[a].d();t[13](null)}}}function Sie(t,e,n){let i,{values:o}=e,{itemView:r}=e,{readOnly:s=!1}=e;const l=_i();let a,c,d=!1;function u(y){if(!i||typeof y!="number")return;const b=i.find((w=>w.__key===y));n(8,o=n(2,i=i.filter((w=>w.__key!==y)))),i.length||n(8,o=n(2,i=void 0)),l("change"),l("delete",{item:b})}function p(y,b){if(!i||i.length<2||typeof y!="number")return;n(5,d=!1);const w=b.detail.elem.parentElement;if(!w||!(w instanceof HTMLElement))return;const k=w,A=a.getBoundingClientRect().top,j=b.detail.event.clientY-w.getBoundingClientRect().top,T=i.findIndex((q=>q.__key===y));if(T===-1)return;const E=n(4,c=i[T]);let O=T;const M=Array.from(a.children).map((q=>q.getBoundingClientRect())),D=M.filter(((q,N)=>N!==T)),R=M[T].height,J=M.length>1?M[1].top-M[0].bottom:0;function B(q){q.preventDefault();let N=0,Y=A+D[0].height+J;for(let Z=1;Z<=D.length;++Z)q.clientY-j>Y-D[Z-1].height/2&&(N=Z),Z<D.length&&(Y+=D[Z].height+J);const x=A+D.slice(0,N).reduce(((Z,Q)=>Z+Q.height),0)+J*N;let ce=q.clientY-j-x;if(ce=Math.min(ce,M[M.length-1].bottom-x-R),ce=Math.max(ce,M[0].top-x),k.style.transform=`translateY(${ce}px)`,O===N||!i)return;const ue=i.slice();ue.splice(O,1),ue.splice(N,0,E),n(2,i=n(8,o=ue)),O=N,l("reorder",{values:i})}function z(q){q.preventDefault(),document.body.removeEventListener("pointermove",B),document.body.removeEventListener("pointerup",z),document.body.removeEventListener("pointercancel",z),n(5,d=!0),ur().then((()=>{k.style.transform=""}))}document.body.addEventListener("pointermove",B),document.body.addEventListener("pointerup",z),document.body.addEventListener("pointercancel",z)}function _(y,b,w,k){w[k]=y,n(2,i),n(8,o)}function f(y){mn.call(this,t,y)}const m=y=>u(y.__key),g=(y,b)=>p(y.__key,b);function v(y){pt[y?"unshift":"push"]((()=>{a=y,n(3,a)}))}return t.$$set=y=>{"values"in y&&n(8,o=y.values),"itemView"in y&&n(0,r=y.itemView),"readOnly"in y&&n(1,s=y.readOnly)},t.$$.update=()=>{if(t.$$.dirty&256&&n(2,i=o),t.$$.dirty&4&&i){const y=new Set;let b=0;i.forEach((k=>{typeof k.__key=="number"&&y.add(k.__key)}));const w=()=>{for(;;){const k=b++;if(!y.has(k))return y.add(k),k}};i.forEach((k=>{"__key"in k||(k.__key=w())}))}},[r,s,i,a,c,d,u,p,o,_,f,m,g,v]}class $a extends Gt{constructor(e){super(),Yt(this,e,Sie,jie,Rt,{values:8,itemView:0,readOnly:1})}}function _a(t){return t?t.a===255?`#${[t.r,t.g,t.b].map((e=>Math.round(e).toString(16).padStart(2,"0"))).join("")}`:`rgba(${t.r},${t.g},${t.b},${(t.a/255).toFixed(2)})`:"transparent"}function ms(t){return t.a===255?`#${[t.r,t.g,t.b].map((e=>Math.round(e).toString(16).padStart(2,"0"))).join("")}`:`#${[t.a,t.r,t.g,t.b].map((e=>Math.round(e).toString(16).padStart(2,"0"))).join("")}`}function Oc(t){const e=_r(t);return e?_a(e):""}function zV(t){const e=_r(t);return e?(e.a=255,_a(e)):"transparent"}function _r(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(e.length===5){const[c,d,u,p,_]=e,f=u.length===2?u:u+u,m=p.length===2?p:p+p,g=_.length===2?_:_+_,v=d.length===2?d:d+d;return{a:parseInt(v,16),r:parseInt(f,16),g:parseInt(m,16),b:parseInt(g,16)}}const[n,i,o,r]=e,s=i.length===2?i:i+i,l=o.length===2?o:o+o,a=r.length===2?r:r+r;return{a:255,r:parseInt(s,16),g:parseInt(l,16),b:parseInt(a,16)}}return null}function Ra(t){const{h:e,s:n,v:i,a:o}=t;let r,s,l;const a=Math.floor(e*6),c=e*6-a,d=i*(1-n),u=i*(1-c*n),p=i*(1-(1-c)*n);switch(a%6){case 0:{r=i,s=p,l=d;break}case 1:{r=u,s=i,l=d;break}case 2:{r=d,s=i,l=p;break}case 3:{r=d,s=u,l=i;break}case 4:{r=p,s=d,l=i;break}case 5:{r=i,s=d,l=u;break}default:throw new Error("Default fallback")}return{r:Math.round(r*255),g:Math.round(s*255),b:Math.round(l*255),a:Math.round(o*255)}}function Tie(t){let{r:e,g:n,b:i,a:o}=t;e/=255,n/=255,i/=255,o/=255;const r=Math.max(e,n,i),s=Math.min(e,n,i);let l;const a=r,c=r-s,d=r===0?0:c/r;if(r===s)l=0;else{switch(r){case e:{l=(n-i)/c+(n<i?6:0);break}case n:{l=(i-e)/c+2;break}case i:{l=(e-n)/c+4;break}default:throw new Error("Default fallback")}l/=6}return{h:l,s:d,v:a,a:o}}const Zl=3;function Mc(t,e){if(t instanceof HTMLElement&&t.tagName==="IMG")return e?1:0;if(t instanceof HTMLElement&&e)return Array.from(t.childNodes).reduce(((o,r)=>(o+=Mc(r,e),o)),0);const n=t.textContent;let i=0;return typeof n=="string"&&(i+=n.length,t instanceof HTMLElement&&(t.tagName==="DIV"||t.tagName==="BR")&&++i),i}function Dr(t,e,n,i){if(!t)return 0;try{let o=0;const r=t.getRangeAt(0);let s;if(r&&(n==="end"?(o+=r.endOffset,s=r.endContainer):(o+=r.startOffset,s=r.startContainer)),s instanceof HTMLElement){let l=0;for(let a=0,c=Math.min(o,s.childNodes.length);a<c;++a)l+=Mc(s.childNodes[a],i);o=l}for(;s&&s!==e;){const l=s.parentNode;if(!l)return 0;const a=Array.from(l.childNodes).indexOf(s);for(let d=0;d<a;++d){const u=l.childNodes[d];o+=Mc(u,i)}const c=l.childNodes[a-1];s instanceof HTMLElement&&(s.tagName==="DIV"&&((c==null?void 0:c.nodeType)===Zl||c&&c instanceof HTMLElement&&c.tagName==="SPAN")||s.tagName==="BR")&&++o,s=l}return o}catch{return 0}}function ts(t,e,n,i,o,r){if(e.nodeType===Zl){try{t&&(i==="start"?n.setStart(e,o):n.setEnd(e,o))}catch{}return}if(e instanceof HTMLElement&&(e.tagName==="BR"||e.tagName==="IMG")){try{if(t){t.removeAllRanges();const s=document.createRange(),l=e.parentNode,a=Array.from(l.childNodes).indexOf(e)+1;s.setStart(l,a),s.setEnd(l,a),t.addRange(s)}}catch{}return}for(let s=0,l=e.childNodes.length;s<l;++s){const a=e.childNodes[s],c=Mc(a,r);if(o<=c){ts(t,a,n,i,o,r);return}o-=c}}function fa(t,e){if(t.nodeType===Zl)return t.textContent||"";if(!(t instanceof HTMLElement))return"";if(t.tagName==="BR")return`\n`;if(t.tagName==="IMG")return"";const n=t.childNodes;if(n.length===1&&n[0]instanceof HTMLElement&&n[0].tagName==="BR")return`\n`;let i="";for(let o=0,r=n.length;o<r;++o){const s=n[o],l=n[o-1],a=s instanceof HTMLElement&&s.tagName==="DIV"&&o>0&&(l.nodeType===Zl||l instanceof HTMLElement&&(l.tagName==="A"||l.tagName==="DIV"));a&&(i+=`\n`),s instanceof HTMLElement&&s.tagName==="BR"&&o===n.length-1||a&&s instanceof HTMLElement&&s.tagName==="DIV"&&s.childNodes.length===1&&s.childNodes[0]instanceof HTMLElement&&s.childNodes[0].tagName==="BR"||(s.nodeType===Zl?i+=s.textContent:s instanceof HTMLElement&&(i+=fa(s)))}return i}function Cie(t){let e,n,i,o,r,s,l,a,c;return{c(){e=S("div"),n=S("div"),i=G(),o=S("div"),r=G(),s=S("div"),l=G(),a=S("div"),h(n,"class","color-preview__bg svelte-1vt6wdf"),h(o,"class","color-preview__no-alpha svelte-1vt6wdf"),ke(o,"background-color",t[5](t[0],!1,t[2])),h(s,"class","color-preview__alpha svelte-1vt6wdf"),ke(s,"background-color",t[5](t[0],!0,t[2])),h(a,"class","color-preview__inset svelte-1vt6wdf"),h(e,"class",c="color-preview "+t[1]+" svelte-1vt6wdf")},m(d,u){F(d,e,u),$(e,n),$(e,i),$(e,o),$(e,r),$(e,s),$(e,l),$(e,a)},p(d,[u]){u&5&&ke(o,"background-color",d[5](d[0],!1,d[2])),u&5&&ke(s,"background-color",d[5](d[0],!0,d[2])),u&2&&c!==(c="color-preview "+d[1]+" svelte-1vt6wdf")&&h(e,"class",c)},i:tn,o:tn,d(d){d&&V(e)}}}function zie(t,e,n){let i,o,{color:r}=e,{mix:s=""}=e;const{state:l}=yt(Cn),{palette:a,previewThemeStore:c}=l;De(t,a,(u=>n(6,i=u))),De(t,c,(u=>n(2,o=u)));function d(u,p,_){if(!u)return"transparent";const f=p?Oc:zV;if(or(u)){const m=yr(u),g=i.find((v=>v.id===m));if(g)return f(g[_])}else return f(u);return"transparent"}return t.$$set=u=>{"color"in u&&n(0,r=u.color),"mix"in u&&n(1,s=u.mix)},[r,s,o,a,c,d]}class Xs extends Gt{constructor(e){super(),Yt(this,e,zie,Cie,Rt,{color:0,mix:1})}}const EV=Symbol("palette-errors");function Th(t,e,n){return t.map((i=>i.id===e?{...i,name:n}:i))}class ip extends hr{constructor(n,i){super();on(this,"id");on(this,"beforeName");on(this,"afterName");this.id=n,this.beforeName="",this.afterName=i}undo(n){const i=wn(n.palette);n.palette.set(Th(i,this.id,this.beforeName))}redo(n){const i=wn(n.palette),o=i.find((r=>r.id===this.id));o&&(this.beforeName=o.name,n.palette.set(Th(i,this.id,this.afterName)))}canMerge(n){return super.canMerge(n)&&n instanceof ip&&this.id===n.id}mergeMeWith(n){this.afterName=n.afterName}toLangKey(){return"commands.rename_palette_item"}}function Ch(t,e,n,i){return t.map((o=>o.id===e?{...o,[n]:i}:o))}class Pc extends hr{constructor(n,i,o){super();on(this,"id");on(this,"theme");on(this,"beforeColor");on(this,"afterColor");this.id=n,this.theme=i,this.beforeColor="",this.afterColor=o}undo(n){const i=wn(n.palette);n.palette.set(Ch(i,this.id,this.theme,this.beforeColor))}redo(n){const i=wn(n.palette),o=i.find((r=>r.id===this.id));o&&(this.beforeColor=o[this.theme],n.palette.set(Ch(i,this.id,this.theme,this.afterColor)))}canMerge(n){return super.canMerge(n)&&n instanceof Pc&&this.id===n.id&&this.theme===n.theme}mergeMeWith(n){this.afterColor=n.afterColor}toLangKey(){return"commands.change_palette_item"}}function Eie(t){let e,n,i,o,r,s,l,a,c,d,u,p,_,f,m,g,v,y,b;return r=new Xs({props:{color:t[0][t[1]],mix:"palette-item__preview-inner"}}),{c(){e=S("div"),n=S("input"),i=G(),o=S("button"),Pe(r.$$.fragment),s=G(),l=S("input"),c=G(),d=S("div"),u=G(),p=S("input"),f=G(),m=S("div"),m.textContent="%",h(n,"class","palette-item__name svelte-xr24np"),h(n,"contenteditable","true"),h(n,"autocomplete","off"),h(n,"autocorrect","off"),h(n,"autocapitalize","off"),h(n,"spellcheck","false"),h(n,"maxlength",Ul),h(o,"class","palette-item__preview svelte-xr24np"),h(l,"class","palette-item__input svelte-xr24np"),h(l,"type","text"),h(l,"autocomplete","off"),h(l,"autocorrect","off"),h(l,"autocapitalize","off"),h(l,"spellcheck","false"),h(l,"maxlength","7"),l.disabled=t[7],h(l,"title",a=t[9]("background.solid_first_title")),h(d,"class","palette-item__separator svelte-xr24np"),h(p,"class","palette-item__second-input svelte-xr24np"),h(p,"type","number"),h(p,"autocomplete","off"),h(p,"autocorrect","off"),h(p,"autocapitalize","off"),h(p,"spellcheck","false"),h(p,"min","0"),p.disabled=t[7],h(p,"max","100"),h(p,"title",_=t[9]("background.solid_second_title")),h(m,"class","palette-item__symbol svelte-xr24np"),h(e,"class","palette-item svelte-xr24np"),h(e,"title",g=t[8].get(t[0].id)),ne(e,"palette-item_readonly",t[7]),ne(e,"palette-item_error",t[8].get(t[0].id))},m(w,k){F(w,e,k),$(e,n),t[17](n),Hn(n,t[4]),$(e,i),$(e,o),Ee(r,o,null),$(e,s),$(e,l),Hn(l,t[5]),$(e,c),$(e,d),$(e,u),$(e,p),Hn(p,t[6]),$(e,f),$(e,m),t[21](e),v=!0,y||(b=[te(n,"input",t[18]),te(n,"input",t[16]),te(o,"click",t[15]),te(l,"input",t[19]),te(l,"input",t[14]),te(p,"input",t[20]),te(p,"input",t[14])],y=!0)},p(w,[k]){k&16&&n.value!==w[4]&&Hn(n,w[4]);const A={};k&3&&(A.color=w[0][w[1]]),r.$set(A),(!v||k&128)&&(l.disabled=w[7]),(!v||k&512&&a!==(a=w[9]("background.solid_first_title")))&&h(l,"title",a),k&32&&l.value!==w[5]&&Hn(l,w[5]),(!v||k&128)&&(p.disabled=w[7]),(!v||k&512&&_!==(_=w[9]("background.solid_second_title")))&&h(p,"title",_),k&64&&Ui(p.value)!==w[6]&&Hn(p,w[6]),(!v||k&257&&g!==(g=w[8].get(w[0].id)))&&h(e,"title",g),(!v||k&128)&&ne(e,"palette-item_readonly",w[7]),(!v||k&257)&&ne(e,"palette-item_error",w[8].get(w[0].id))},i(w){v||(I(r.$$.fragment,w),v=!0)},o(w){H(r.$$.fragment,w),v=!1},d(w){w&&V(e),t[17](null),Ae(r),t[21](null),y=!1,Rn(b)}}}const Ul=120;function Aie(t,e,n){let i,o,r,s,{value:l}=e;const{l10nString:a}=yt(oi);De(t,a,(B=>n(9,s=B)));const{getSelection:c,state:d,color2Dialog:u}=yt(Cn),{errors:p}=yt(EV);De(t,p,(B=>n(8,r=B)));const{previewThemeStore:_,readOnly:f}=d;De(t,_,(B=>n(1,i=B))),De(t,f,(B=>n(7,o=B)));const m=_i();let g,v,y="",b="",w="",k=!1;function A(B,z){if(k)return;n(4,y=B.name);const q=_r(B[z]||"");q?(n(6,w=String(Math.round(q.a/255*100))),q.a=255,n(5,b=ms(q))):(n(5,b=""),n(6,w=""))}function j(){const B=_r(b);B&&(B.a=Math.round(Number(w)*255/100),k=!0,d.pushCommand(new Pc(l.id,i,ms(B))),m("change"))}function T(){u().show({value:l[i],target:g,disabled:o,direction:"right",offset:o?32:60,callback(B){d.pushCommand(new Pc(l.id,i,B))}})}function E(){if(y.length>Ul){const B=c(),z=Dr(B,v,"start",!1),q=Dr(B,v,"end",!1);n(4,y=y.slice(0,Ul)),ur().then((()=>{if(!B)return;B.removeAllRanges();const N=document.createRange();ts(B,v,N,"start",Math.min(z,Ul),!1),ts(B,v,N,"end",Math.min(q,Ul),!1),B.addRange(N)}))}d.pushCommand(new ip(l.id,y))}gs((()=>{k&&(k=!1)}));function O(B){pt[B?"unshift":"push"]((()=>{v=B,n(3,v)}))}function M(){y=this.value,n(4,y)}function D(){b=this.value,n(5,b)}function R(){w=Ui(this.value),n(6,w)}function J(B){pt[B?"unshift":"push"]((()=>{g=B,n(2,g)}))}return t.$$set=B=>{"value"in B&&n(0,l=B.value)},t.$$.update=()=>{t.$$.dirty&3&&A(l,i)},[l,i,g,v,y,b,w,o,r,s,a,p,_,f,j,T,E,O,M,D,R,J]}class Oie extends Gt{constructor(e){super(),Yt(this,e,Aie,Eie,Rt,{value:0})}}class Mie extends hr{constructor(n){super();on(this,"id");on(this,"paletteItem",null);on(this,"index",null);this.id=n}undo(n){const i=wn(n.palette);this.index=i.findIndex((r=>r.id===this.id));const o=i[this.index];this.paletteItem=o,n.palette.set(i.filter((r=>r.id!==this.id)))}redo(n){const i=this.id,o=this.paletteItem||(this.paletteItem={id:i,name:i,light:"#fff",dark:"#000"}),r=wn(n.palette).slice();this.index===null?r.push(o):r.splice(this.index,0,o),n.palette.set(r)}canMerge(n){return!1}mergeMeWith(n){throw new Error("Cannot merge AddPaletteItemCommand")}toLangKey(){return"commands.add_palette_item"}}class Pie extends hr{constructor(n){super();on(this,"paletteItem");on(this,"index");this.index=-1,this.paletteItem=n}undo(n){const i=wn(n.palette).slice();i.splice(this.index,0,this.paletteItem),n.palette.set(i)}redo(n){const i=wn(n.palette);this.index=i.findIndex((o=>o.id===this.paletteItem.id)),n.palette.set(i.filter((o=>o.id!==this.paletteItem.id)))}canMerge(n){return!1}mergeMeWith(n){throw new Error("Cannot merge DeletePaletteItemCommand")}toLangKey(){return"commands.delete_palette_item"}}function zh(t,e){const n={};return t.forEach((i=>{n[i.id]=i})),e.map((i=>n[i]))}class Iie extends hr{constructor(n){super();on(this,"beforeOrder");on(this,"afterOrder");this.beforeOrder=[],this.afterOrder=n}undo(n){const i=wn(n.palette);n.palette.set(zh(i,this.beforeOrder))}redo(n){const i=wn(n.palette);this.beforeOrder=i.map((o=>o.id)),n.palette.set(zh(i,this.afterOrder))}mergeMeWith(n){this.afterOrder=n.afterOrder}toLangKey(){return"commands.reorder_palette_item"}}function Die(t){let e,n,i;const o=t[4].default,r=qs(o,t,t[6],null);return{c(){e=S("div"),n=G(),r&&r.c(),h(e,"class","add-button__icon svelte-b0459t"),ne(e,"add-button__icon_disabled",t[0])},m(s,l){F(s,e,l),F(s,n,l),r&&r.m(s,l),i=!0},p(s,l){(!i||l&1)&&ne(e,"add-button__icon_disabled",s[0]),r&&r.p&&(!i||l&64)&&Bs(r,o,s,s[6],i?Rs(o,s[6],l,null):Hs(s[6]),null)},i(s){i||(I(r,s),i=!0)},o(s){H(r,s),i=!1},d(s){s&&(V(e),V(n)),r&&r.d(s)}}}function Vie(t){let e,n;return e=new ud({props:{disabled:t[0],cls:t[1],title:t[2],slim:t[3],$$slots:{default:[Die]},$$scope:{ctx:t}}}),e.$on("click",t[5]),{c(){Pe(e.$$.fragment)},m(i,o){Ee(e,i,o),n=!0},p(i,[o]){const r={};o&1&&(r.disabled=i[0]),o&2&&(r.cls=i[1]),o&4&&(r.title=i[2]),o&8&&(r.slim=i[3]),o&65&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Ae(e,i)}}}function Lie(t,e,n){let{$$slots:i={},$$scope:o}=e,{disabled:r=!1}=e,{cls:s=""}=e,{title:l=""}=e,{slim:a=!1}=e;function c(d){mn.call(this,t,d)}return t.$$set=d=>{"disabled"in d&&n(0,r=d.disabled),"cls"in d&&n(1,s=d.cls),"title"in d&&n(2,l=d.title),"slim"in d&&n(3,a=d.slim),"$$scope"in d&&n(6,o=d.$$scope)},[r,s,l,a,i,c,o]}class Zs extends Gt{constructor(e){super(),Yt(this,e,Lie,Vie,Rt,{disabled:0,cls:1,title:2,slim:3})}}function Eh(t){let e,n;return e=new Zs({props:{cls:"palette__add",disabled:t[3],$$slots:{default:[Fie]},$$scope:{ctx:t}}}),e.$on("click",t[9]),{c(){Pe(e.$$.fragment)},m(i,o){Ee(e,i,o),n=!0},p(i,o){const r={};o&8&&(r.disabled=i[3]),o&65540&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Ae(e,i)}}}function Fie(t){let e=t[2]("addColor")+"",n;return{c(){n=xe(e)},m(i,o){F(i,n,o)},p(i,o){o&4&&e!==(e=i[2]("addColor")+"")&&at(n,e)},d(i){i&&V(n)}}}function Nie(t){let e,n,i,o,r;n=new $a({props:{values:t[0],itemView:Oie,readOnly:t[3]}}),n.$on("reorder",t[10]),n.$on("delete",t[11]);let s=!t[3]&&Eh(t);return{c(){e=S("div"),Pe(n.$$.fragment),i=G(),s&&s.c(),o=Vn(),h(e,"class","palette__list")},m(l,a){F(l,e,a),Ee(n,e,null),F(l,i,a),s&&s.m(l,a),F(l,o,a),r=!0},p(l,a){const c={};a&1&&(c.values=l[0]),a&8&&(c.readOnly=l[3]),n.$set(c),l[3]?s&&(Dt(),H(s,1,1,(()=>{s=null})),Vt()):s?(s.p(l,a),a&8&&I(s,1)):(s=Eh(l),s.c(),I(s,1),s.m(o.parentNode,o))},i(l){r||(I(n.$$.fragment,l),I(s),r=!0)},o(l){H(n.$$.fragment,l),H(s),r=!1},d(l){l&&(V(e),V(i),V(o)),Ae(n),s&&s.d(l)}}}function qie(t){let e,n=t[2]("localPalette")+"",i;return{c(){e=S("div"),i=xe(n),h(e,"slot","title")},m(o,r){F(o,e,r),$(e,i)},p(o,r){r&4&&n!==(n=o[2]("localPalette")+"")&&at(i,n)},d(o){o&&V(e)}}}function Rie(t){let e,n,i,o,r,s,l;function a(d){t[12](d)}let c={name:"previewTheme",options:[{text:t[2]("lightTheme"),value:"light",icon:Fs,tooltipAlign:"left"},{text:t[2]("darkTheme"),value:"dark",icon:Ns}],theme:"normal",iconSize:"20"};return t[1]!==void 0&&(c.value=t[1]),i=new Dl({props:c}),pt.push((()=>Gn(i,"value",a))),s=new xo({props:{theme:"props",$$slots:{title:[qie],default:[Nie]},$$scope:{ctx:t}}}),{c(){e=S("div"),n=S("div"),Pe(i.$$.fragment),r=G(),Pe(s.$$.fragment),h(n,"class","palette__title svelte-1q6emsv"),h(e,"class","palette")},m(d,u){F(d,e,u),$(e,n),Ee(i,n,null),$(e,r),Ee(s,e,null),l=!0},p(d,[u]){const p={};u&4&&(p.options=[{text:d[2]("lightTheme"),value:"light",icon:Fs,tooltipAlign:"left"},{text:d[2]("darkTheme"),value:"dark",icon:Ns}]),!o&&u&2&&(o=!0,p.value=d[1],Xn((()=>o=!1))),i.$set(p);const _={};u&65549&&(_.$$scope={dirty:u,ctx:d}),s.$set(_)},i(d){l||(I(i.$$.fragment,d),I(s.$$.fragment,d),l=!0)},o(d){H(i.$$.fragment,d),H(s.$$.fragment,d),l=!1},d(d){d&&V(e),Ae(i),Ae(s)}}}function Bie(t,e,n){let i,o,r,s,l;const{l10n:a}=yt(oi);De(t,a,(b=>n(2,s=b)));const{state:c}=yt(Cn),{palette:d,previewThemeStore:u,readOnly:p}=c;De(t,d,(b=>n(0,o=b))),De(t,u,(b=>n(1,r=b))),De(t,p,(b=>n(3,l=b)));let _=Si(new Map);De(t,_,(b=>n(13,i=b))),mc(EV,{errors:_});function f(){const b=c.genPaletteId();c.pushCommand(new Mie(b))}function m(){i.clear();const b=new Map;o.forEach((w=>{let k;w.name?(k=b.get(w.name))?(i.set(w.id,"Duplicate color name"),i.set(k,"Duplicate color name")):(b.set(w.name,w.id),i.set(w.id,"")):i.set(w.id,"Name is empty")}))}function g(b){c.pushCommand(new Iie(b.detail.values.map((w=>w.id))))}function v(b){c.pushCommand(new Pie(b.detail.item))}function y(b){r=b,u.set(r)}return t.$$.update=()=>{t.$$.dirty&1&&o&&m()},[o,r,s,l,a,d,u,p,_,f,g,v,y]}class Hie extends Gt{constructor(e){super(),Yt(this,e,Bie,Rie,Rt,{})}}function op(t,e){if(!e||!t)return{};const n={},i=/number (>|>=|<|<=) (-?\d+)/g;if(!i.test(e))return console.error("Unknown constraint",e),{};i.lastIndex=-1;let o;for(;o=i.exec(e);){const r=Number(o[2]),s=o[1];s===">"?n.min=t==="integer"?r+1:r+.01:s===">="?n.min=r:s==="<"?n.max=t==="integer"?r-1:r-.01:s==="<="&&(n.max=r)}return n}function Jie(t){let e,n,i;return{c(){e=S("input"),h(e,"type","number"),h(e,"min",t[5]),h(e,"max",t[4]),h(e,"step",t[3]),h(e,"pattern",t[2]),h(e,"class","input-prop svelte-1eq98y8"),h(e,"autocomplete","off"),h(e,"autocorrect","off"),h(e,"autocapitalize","off"),h(e,"spellcheck","false"),h(e,"id",t[1]),e.disabled=t[7]},m(o,r){F(o,e,r),Hn(e,t[0]),n||(i=[te(e,"input",t[15]),te(e,"input",t[9])],n=!0)},p(o,r){r&32&&h(e,"min",o[5]),r&16&&h(e,"max",o[4]),r&8&&h(e,"step",o[3]),r&4&&h(e,"pattern",o[2]),r&2&&h(e,"id",o[1]),r&128&&(e.disabled=o[7]),r&1&&Ui(e.value)!==o[0]&&Hn(e,o[0])},d(o){o&&V(e),n=!1,Rn(i)}}}function Uie(t){let e,n,i;return{c(){e=S("input"),h(e,"type","text"),h(e,"min",t[5]),h(e,"max",t[4]),h(e,"step",t[3]),h(e,"pattern",t[2]),h(e,"class","input-prop svelte-1eq98y8"),h(e,"autocomplete","off"),h(e,"autocorrect","off"),h(e,"autocapitalize","off"),h(e,"spellcheck","false"),h(e,"id",t[1]),e.disabled=t[7]},m(o,r){F(o,e,r),Hn(e,t[0]),n||(i=[te(e,"input",t[14]),te(e,"input",t[9])],n=!0)},p(o,r){r&32&&h(e,"min",o[5]),r&16&&h(e,"max",o[4]),r&8&&h(e,"step",o[3]),r&4&&h(e,"pattern",o[2]),r&2&&h(e,"id",o[1]),r&128&&(e.disabled=o[7]),r&1&&e.value!==o[0]&&Hn(e,o[0])},d(o){o&&V(e),n=!1,Rn(i)}}}function Wie(t){let e;function n(r,s){return r[6]==="text"?Uie:Jie}let i=n(t),o=i(t);return{c(){o.c(),e=Vn()},m(r,s){o.m(r,s),F(r,e,s)},p(r,[s]){i===(i=n(r))&&o?o.p(r,s):(o.d(1),o=i(r),o&&(o.c(),o.m(e.parentNode,e)))},i:tn,o:tn,d(r){r&&V(e),o.d(r)}}}function Kie(t,e,n){let i,o,r,s,l,a,c,d,{id:u}=e,{value:p}=e,{prop:_}=e,{flags:f}=e;const{state:m}=yt(Cn),{readOnly:g}=m;De(t,g,(k=>n(7,d=k)));const v=_i();function y(){v("change",{value:p,prop:_})}function b(){p=this.value,n(0,p)}function w(){p=Ui(this.value),n(0,p)}return t.$$set=k=>{"id"in k&&n(1,u=k.id),"value"in k&&n(0,p=k.value),"prop"in k&&n(10,_=k.prop),"flags"in k&&n(11,f=k.flags)},t.$$.update=()=>{t.$$.dirty&2048&&n(13,i=f.subtype==="number"||f.subtype==="integer"),t.$$.dirty&8192&&n(6,o=i?"number":"text"),t.$$.dirty&2048&&n(12,r=op(f.subtype,f.constraint)),t.$$.dirty&4096&&n(5,s=r.min),t.$$.dirty&4096&&n(4,l=r.max),t.$$.dirty&2048&&n(3,a=f.subtype==="integer"?1:f.subtype==="number"?.01:null),t.$$.dirty&2048&&n(2,c=f.subtype==="integer"?"\\d+":null)},[p,u,c,a,l,s,o,d,g,y,_,f,r,i,b,w]}let AV=class extends Gt{constructor(e){super(),Yt(this,e,Kie,Wie,Rt,{id:1,value:0,prop:10,flags:11})}};function Ah(t,e,n){const i=t.slice();return i[10]=e[n],i}function Oh(t){let e,n=t[10].name+"",i,o;return{c(){e=S("option"),i=xe(n),h(e,"class","select-prop__option svelte-r0acjk"),e.__value=o=t[10].value,Hn(e,e.__value)},m(r,s){F(r,e,s),$(e,i)},p(r,s){s&4&&n!==(n=r[10].name+"")&&at(i,n),s&4&&o!==(o=r[10].value)&&(e.__value=o,Hn(e,e.__value))},d(r){r&&V(e)}}}function Yie(t){let e,n,i,o,r=ln(t[2]),s=[];for(let l=0;l<r.length;l+=1)s[l]=Oh(Ah(t,r,l));return{c(){e=S("select"),n=S("option");for(let l=0;l<s.length;l+=1)s[l].c();h(n,"class","select-prop__option svelte-r0acjk"),n.__value="",Hn(n,n.__value),h(e,"class","select-prop svelte-r0acjk"),h(e,"id",t[1]),e.disabled=t[3],t[0]===void 0&&_o((()=>t[7].call(e)))},m(l,a){F(l,e,a),$(e,n);for(let c=0;c<s.length;c+=1)s[c]&&s[c].m(e,null);pc(e,t[0],!0),i||(o=[te(e,"change",t[7]),te(e,"change",t[5])],i=!0)},p(l,[a]){if(a&4){r=ln(l[2]);let c;for(c=0;c<r.length;c+=1){const d=Ah(l,r,c);s[c]?s[c].p(d,a):(s[c]=Oh(d),s[c].c(),s[c].m(e,null))}for(;c<s.length;c+=1)s[c].d(1);s.length=r.length}a&2&&h(e,"id",l[1]),a&8&&(e.disabled=l[3]),a&5&&pc(e,l[0])},i:tn,o:tn,d(l){l&&V(e),Bi(s,l),i=!1,Rn(o)}}}function Gie(t,e,n){let i;const{state:o}=yt(Cn),{readOnly:r}=o;De(t,r,(_=>n(3,i=_)));let{id:s}=e,{value:l}=e,{prop:a}=e,{options:c}=e;const d=_i();function u(){d("change",{value:l,prop:a})}function p(){l=m1(this),n(0,l),n(2,c)}return t.$$set=_=>{"id"in _&&n(1,s=_.id),"value"in _&&n(0,l=_.value),"prop"in _&&n(6,a=_.prop),"options"in _&&n(2,c=_.options)},[l,s,c,i,r,u,a,p]}let OV=class extends Gt{constructor(e){super(),Yt(this,e,Gie,Yie,Rt,{id:1,value:0,prop:6,options:2})}};function Xie(t){let e,n,i;return{c(){e=S("input"),h(e,"type","checkbox"),h(e,"class","checkbox-prop svelte-r3qq2i"),h(e,"autocomplete","off"),h(e,"autocorrect","off"),h(e,"autocapitalize","off"),h(e,"spellcheck","false"),h(e,"id",t[0]),e.disabled=t[2]},m(o,r){F(o,e,r),e.checked=t[1],n||(i=[te(e,"change",t[7]),te(e,"change",t[4])],n=!0)},p(o,[r]){r&1&&h(e,"id",o[0]),r&4&&(e.disabled=o[2]),r&2&&(e.checked=o[1])},i:tn,o:tn,d(o){o&&V(e),n=!1,Rn(i)}}}function Zie(t,e,n){let i,{id:o}=e,{value:r}=e,{prop:s}=e;const{state:l}=yt(Cn),{readOnly:a}=l;De(t,a,(_=>n(2,i=_)));let c=!1;const d=_i();function u(){d("change",{value:r,prop:s})}function p(){c=this.checked,n(1,c),n(5,r)}return t.$$set=_=>{"id"in _&&n(0,o=_.id),"value"in _&&n(5,r=_.value),"prop"in _&&n(6,s=_.prop)},t.$$.update=()=>{t.$$.dirty&32&&r!==void 0&&n(1,c=!!r)},[o,c,i,a,u,r,s,p]}class xie extends Gt{constructor(e){super(),Yt(this,e,Zie,Xie,Rt,{id:0,value:5,prop:6})}}function Mh(t,e,n){const i=t.slice();i[30]=e[n];const o=`${i[0]}_${i[30].prop}`;i[31]=o;const r=i[30].value;i[32]=r;const s=i[32]!==void 0;i[33]=s;const l=i[30].desc.deprecated;return i[34]=l,i}function Ld(t){const e=t.slice(),n=e[10](e[3],e[30].desc);return e[37]=n,e}function Ph(t,e,n){const i=t.slice();return i[41]=e[n],i[43]=n,i}function Fd(t){const e=t.slice(),n=e[10](e[3],e[30].desc);return e[37]=n,e}function Ih(t,e,n){const i=t.slice();i[38]=e[n];const o=`${i[0]}_${i[30].prop}_${i[38]}`;return i[31]=o,i}function Nd(t){const e=t.slice(),n=e[10](e[3],e[30].desc);return e[37]=n,e}function Qie(t){let e,n,i=t[30].name+"",o,r,s,l,a,c,d,u=(t[30].desc.platforms||t[30].desc.deprecated)&&Dh(Ld(t));const p=[ooe,ioe,noe],_=[];function f(m,g){return m[30].type==="select"?0:m[30].type==="text"||m[30].type==="color"?1:m[30].type==="checkbox"?2:-1}return~(a=f(t))&&(c=_[a]=p[a](t)),{c(){e=S("label"),u&&u.c(),n=G(),o=xe(i),s=G(),l=S("div"),c&&c.c(),h(e,"for",r=t[31]),h(e,"class","props-group__name svelte-1nfw84"),h(l,"class","props-group__value svelte-1nfw84")},m(m,g){F(m,e,g),u&&u.m(e,null),$(e,n),$(e,o),F(m,s,g),F(m,l,g),~a&&_[a].m(l,null),d=!0},p(m,g){m[30].desc.platforms||m[30].desc.deprecated?u?u.p(Ld(m),g):(u=Dh(Ld(m)),u.c(),u.m(e,n)):u&&(u.d(1),u=null),(!d||g[0]&2)&&i!==(i=m[30].name+"")&&at(o,i),(!d||g[0]&3&&r!==(r=m[31]))&&h(e,"for",r);let v=a;a=f(m),a===v?~a&&_[a].p(m,g):(c&&(Dt(),H(_[v],1,1,(()=>{_[v]=null})),Vt()),~a?(c=_[a],c?c.p(m,g):(c=_[a]=p[a](m),c.c()),I(c,1),c.m(l,null)):c=null)},i(m){d||(I(c),d=!0)},o(m){H(c),d=!1},d(m){m&&(V(e),V(s),V(l)),u&&u.d(),~a&&_[a].d()}}}function eoe(t){let e,n,i;return n=new xo({props:{theme:"straight-small",mix:"props-group__group-summary "+(t[33]?"props-group__filled":"")+" "+(t[34]?"props-group__deprecated":""),open:!1,$$slots:{title:[aoe],default:[loe]},$$scope:{ctx:t}}}),{c(){e=S("div"),Pe(n.$$.fragment),h(e,"class","props-group__span-cell svelte-1nfw84")},m(o,r){F(o,e,r),Ee(n,e,null),i=!0},p(o,r){const s={};r[0]&2&&(s.mix="props-group__group-summary "+(o[33]?"props-group__filled":"")+" "+(o[34]?"props-group__deprecated":"")),r[0]&31|r[1]&8192&&(s.$$scope={dirty:r,ctx:o}),n.$set(s)},i(o){i||(I(n.$$.fragment,o),i=!0)},o(o){H(n.$$.fragment,o),i=!1},d(o){o&&V(e),Ae(n)}}}function toe(t){let e,n,i;return n=new xo({props:{theme:"straight-small",mix:"props-group__group-summary "+(t[33]?"props-group__filled":"")+" "+(t[34]?"props-group__deprecated":""),open:!1,$$slots:{title:[doe],default:[coe]},$$scope:{ctx:t}}}),{c(){e=S("div"),Pe(n.$$.fragment),h(e,"class","props-group__span-cell svelte-1nfw84")},m(o,r){F(o,e,r),Ee(n,e,null),i=!0},p(o,r){const s={};r[0]&2&&(s.mix="props-group__group-summary "+(o[33]?"props-group__filled":"")+" "+(o[34]?"props-group__deprecated":"")),r[0]&31|r[1]&8192&&(s.$$scope={dirty:r,ctx:o}),n.$set(s)},i(o){i||(I(n.$$.fragment,o),i=!0)},o(o){H(n.$$.fragment,o),i=!1},d(o){o&&V(e),Ae(n)}}}function Dh(t){let e,n=t[37]&&Vh(t);return{c(){n&&n.c(),e=Vn()},m(i,o){n&&n.m(i,o),F(i,e,o)},p(i,o){i[37]?n?n.p(i,o):(n=Vh(i),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(i){i&&V(e),n&&n.d(i)}}}function Vh(t){let e,n;return{c(){e=S("span"),h(e,"class","props-group__warning svelte-1nfw84"),h(e,"title",n=t[37])},m(i,o){F(i,e,o)},p(i,o){o[0]&10&&n!==(n=i[37])&&h(e,"title",n)},d(i){i&&V(e)}}}function noe(t){let e,n;return e=new xie({props:{value:t[32],id:t[31],prop:t[30].prop}}),e.$on("change",t[28]),{c(){Pe(e.$$.fragment)},m(i,o){Ee(e,i,o),n=!0},p(i,o){const r={};o[0]&2&&(r.value=i[32]),o[0]&3&&(r.id=i[31]),o[0]&2&&(r.prop=i[30].prop),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Ae(e,i)}}}function ioe(t){let e,n;return e=new AV({props:{value:t[32],id:t[31],prop:t[30].prop,flags:t[30].flags||{}}}),e.$on("change",t[27]),{c(){Pe(e.$$.fragment)},m(i,o){Ee(e,i,o),n=!0},p(i,o){const r={};o[0]&2&&(r.value=i[32]),o[0]&3&&(r.id=i[31]),o[0]&2&&(r.prop=i[30].prop),o[0]&2&&(r.flags=i[30].flags||{}),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Ae(e,i)}}}function ooe(t){let e,n;return e=new OV({props:{value:t[32],id:t[31],prop:t[30].prop,options:t[30].options}}),e.$on("change",t[26]),{c(){Pe(e.$$.fragment)},m(i,o){Ee(e,i,o),n=!0},p(i,o){const r={};o[0]&2&&(r.value=i[32]),o[0]&3&&(r.id=i[31]),o[0]&2&&(r.prop=i[30].prop),o[0]&2&&(r.options=i[30].options),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Ae(e,i)}}}function Lh(t){let e,n,i=ln(t[30].list),o=[];for(let s=0;s<i.length;s+=1)o[s]=Nh(Ph(t,i,s));const r=s=>H(o[s],1,1,(()=>{o[s]=null}));return{c(){for(let s=0;s<o.length;s+=1)o[s].c();e=Vn()},m(s,l){for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(s,l);F(s,e,l),n=!0},p(s,l){if(l[0]&279){i=ln(s[30].list);let a;for(a=0;a<i.length;a+=1){const c=Ph(s,i,a);o[a]?(o[a].p(c,l),I(o[a],1)):(o[a]=Nh(c),o[a].c(),I(o[a],1),o[a].m(e.parentNode,e))}for(Dt(),a=i.length;a<o.length;a+=1)r(a);Vt()}},i(s){if(!n){for(let l=0;l<i.length;l+=1)I(o[l]);n=!0}},o(s){o=o.filter(Boolean);for(let l=0;l<o.length;l+=1)H(o[l]);n=!1},d(s){s&&V(e),Bi(o,s)}}}function roe(t){let e,n,i;return n=new rp({props:{group:t[0],list:t[41]}}),n.$on("change",t[21]),n.$on("add",t[22]),n.$on("delete",t[23]),n.$on("rename",t[24]),{c(){e=S("ul"),Pe(n.$$.fragment),h(e,"class","props-group__content svelte-1nfw84")},m(o,r){F(o,e,r),Ee(n,e,null),i=!0},p(o,r){const s={};r[0]&1&&(s.group=o[0]),r[0]&2&&(s.list=o[41]),n.$set(s)},i(o){i||(I(n.$$.fragment,o),i=!0)},o(o){H(n.$$.fragment,o),i=!1},d(o){o&&V(e),Ae(n)}}}function Fh(t){let e,n=t[2]("props.remove")+"",i,o,r;function s(){return t[20](t[30],t[43])}return{c(){e=S("button"),i=xe(n),h(e,"class","props-group__button props-group__delete svelte-1nfw84")},m(l,a){F(l,e,a),$(e,i),o||(r=te(e,"click",zi(s)),o=!0)},p(l,a){t=l,a[0]&4&&n!==(n=t[2]("props.remove")+"")&&at(i,n)},d(l){l&&V(e),o=!1,r()}}}function soe(t){let e,n,i,o=!t[4]&&Fh(t);return{c(){e=S("div"),n=xe(t[43]),i=G(),o&&o.c(),h(e,"slot","title"),h(e,"class","props-group__group-summary svelte-1nfw84")},m(r,s){F(r,e,s),$(e,n),$(e,i),o&&o.m(e,null)},p(r,s){r[4]?o&&(o.d(1),o=null):o?o.p(r,s):(o=Fh(r),o.c(),o.m(e,null))},d(r){r&&V(e),o&&o.d()}}}function Nh(t){let e,n,i,o,r,s;return i=new xo({props:{theme:"straight-small",mix:"props-group__group-details",open:!0,$$slots:{title:[soe],default:[roe]},$$scope:{ctx:t}}}),{c(){var l;e=S("li"),n=S("div"),Pe(i.$$.fragment),o=G(),h(n,"class","props-group__span-cell svelte-1nfw84"),h(e,"class","props-group__item svelte-1nfw84"),h(e,"title",r=t[41].name+": "+((l=t[41].description)==null?void 0:l.ru))},m(l,a){F(l,e,a),$(e,n),Ee(i,n,null),$(e,o),s=!0},p(l,a){var d;const c={};a[0]&23|a[1]&8192&&(c.$$scope={dirty:a,ctx:l}),i.$set(c),(!s||a[0]&2&&r!==(r=l[41].name+": "+((d=l[41].description)==null?void 0:d.ru)))&&h(e,"title",r)},i(l){s||(I(i.$$.fragment,l),s=!0)},o(l){H(i.$$.fragment,l),s=!1},d(l){l&&V(e),Ae(i)}}}function qh(t){let e,n=t[2]("props.add")+"",i,o,r;function s(){return t[25](t[30])}return{c(){e=S("button"),i=xe(n),h(e,"class","props-group__button props-group__add svelte-1nfw84")},m(l,a){F(l,e,a),$(e,i),o||(r=te(e,"click",s),o=!0)},p(l,a){t=l,a[0]&4&&n!==(n=t[2]("props.add")+"")&&at(i,n)},d(l){l&&V(e),o=!1,r()}}}function loe(t){let e,n,i,o,r=t[30].list&&Lh(t),s=!t[4]&&qh(t);return{c(){e=S("ul"),r&&r.c(),n=G(),s&&s.c(),i=Vn(),h(e,"class","props-group__content svelte-1nfw84")},m(l,a){F(l,e,a),r&&r.m(e,null),F(l,n,a),s&&s.m(l,a),F(l,i,a),o=!0},p(l,a){l[30].list?r?(r.p(l,a),a[0]&2&&I(r,1)):(r=Lh(l),r.c(),I(r,1),r.m(e,null)):r&&(Dt(),H(r,1,1,(()=>{r=null})),Vt()),l[4]?s&&(s.d(1),s=null):s?s.p(l,a):(s=qh(l),s.c(),s.m(i.parentNode,i))},i(l){o||(I(r),o=!0)},o(l){H(r),o=!1},d(l){l&&(V(e),V(n),V(i)),r&&r.d(),s&&s.d(l)}}}function Rh(t){let e,n=t[37]&&Bh(t);return{c(){n&&n.c(),e=Vn()},m(i,o){n&&n.m(i,o),F(i,e,o)},p(i,o){i[37]?n?n.p(i,o):(n=Bh(i),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(i){i&&V(e),n&&n.d(i)}}}function Bh(t){let e,n;return{c(){e=S("span"),h(e,"class","props-group__warning svelte-1nfw84"),h(e,"title",n=t[37])},m(i,o){F(i,e,o)},p(i,o){o[0]&10&&n!==(n=i[37])&&h(e,"title",n)},d(i){i&&V(e)}}}function aoe(t){var _;let e,n,i=t[30].name+"",o,r,s="[ ",l,a=(((_=t[30].list)==null?void 0:_.length)||"")+"",c,d=" ]",u,p=(t[30].desc.platforms||t[30].desc.deprecated)&&Rh(Fd(t));return{c(){e=S("div"),p&&p.c(),n=G(),o=xe(i),r=G(),l=xe(s),c=xe(a),u=xe(d),h(e,"slot","title")},m(f,m){F(f,e,m),p&&p.m(e,null),$(e,n),$(e,o),$(e,r),$(e,l),$(e,c),$(e,u)},p(f,m){var g;f[30].desc.platforms||f[30].desc.deprecated?p?p.p(Fd(f),m):(p=Rh(Fd(f)),p.c(),p.m(e,n)):p&&(p.d(1),p=null),m[0]&2&&i!==(i=f[30].name+"")&&at(o,i),m[0]&2&&a!==(a=(((g=f[30].list)==null?void 0:g.length)||"")+"")&&at(c,a)},d(f){f&&V(e),p&&p.d()}}}function Hh(t){var d;let e,n,i,o,r,s,l,a,c;return l=new OV({props:{value:(d=t[32])==null?void 0:d.type,id:t[31],prop:`${t[30].prop}.type`,options:t[30].options}}),l.$on("change",t[11]),{c(){var u;e=S("li"),n=S("label"),i=xe("type"),r=G(),s=S("div"),Pe(l.$$.fragment),h(n,"for",o=t[31]),h(n,"class","props-group__name svelte-1nfw84"),h(s,"class","props-group__value svelte-1nfw84"),h(e,"class","props-group__item svelte-1nfw84"),h(e,"title",a=t[30].name+": "+((u=t[30].description)==null?void 0:u.ru))},m(u,p){F(u,e,p),$(e,n),$(n,i),$(e,r),$(e,s),Ee(l,s,null),c=!0},p(u,p){var f,m;(!c||p[0]&3&&o!==(o=u[31]))&&h(n,"for",o);const _={};p[0]&2&&(_.value=(f=u[32])==null?void 0:f.type),p[0]&3&&(_.id=u[31]),p[0]&2&&(_.prop=`${u[30].prop}.type`),p[0]&2&&(_.options=u[30].options),l.$set(_),(!c||p[0]&2&&a!==(a=u[30].name+": "+((m=u[30].description)==null?void 0:m.ru)))&&h(e,"title",a)},i(u){c||(I(l.$$.fragment,u),c=!0)},o(u){H(l.$$.fragment,u),c=!1},d(u){u&&V(e),Ae(l)}}}function Jh(t){let e,n;return e=new rp({props:{group:t[0],list:t[30].subprops}}),e.$on("change",t[12]),e.$on("add",t[13]),e.$on("delete",t[14]),e.$on("rename",t[15]),{c(){Pe(e.$$.fragment)},m(i,o){Ee(e,i,o),n=!0},p(i,o){const r={};o[0]&1&&(r.group=i[0]),o[0]&2&&(r.list=i[30].subprops),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Ae(e,i)}}}function Uh(t){let e,n,i,o=ln(Object.keys(t[32]||{})),r=[];for(let a=0;a<o.length;a+=1)r[a]=Kh(Ih(t,o,a));const s=a=>H(r[a],1,1,(()=>{r[a]=null}));let l=!t[4]&&Yh(t);return{c(){for(let a=0;a<r.length;a+=1)r[a].c();e=G(),l&&l.c(),n=Vn()},m(a,c){for(let d=0;d<r.length;d+=1)r[d]&&r[d].m(a,c);F(a,e,c),l&&l.m(a,c),F(a,n,c),i=!0},p(a,c){if(c[0]&791){o=ln(Object.keys(a[32]||{}));let d;for(d=0;d<o.length;d+=1){const u=Ih(a,o,d);r[d]?(r[d].p(u,c),I(r[d],1)):(r[d]=Kh(u),r[d].c(),I(r[d],1),r[d].m(e.parentNode,e))}for(Dt(),d=o.length;d<r.length;d+=1)s(d);Vt()}a[4]?l&&(l.d(1),l=null):l?l.p(a,c):(l=Yh(a),l.c(),l.m(n.parentNode,n))},i(a){if(!i){for(let c=0;c<o.length;c+=1)I(r[c]);i=!0}},o(a){r=r.filter(Boolean);for(let c=0;c<r.length;c+=1)H(r[c]);i=!1},d(a){a&&(V(e),V(n)),Bi(r,a),l&&l.d(a)}}}function Wh(t){let e,n=t[2]("props.remove")+"",i,o,r;function s(){return t[18](t[30],t[38])}return{c(){e=S("button"),i=xe(n),h(e,"class","props-group__button props-group__delete props-group__delete_additional svelte-1nfw84")},m(l,a){F(l,e,a),$(e,i),o||(r=te(e,"click",zi(s)),o=!0)},p(l,a){t=l,a[0]&4&&n!==(n=t[2]("props.remove")+"")&&at(i,n)},d(l){l&&V(e),o=!1,r()}}}function Kh(t){let e,n,i=t[38]+"",o,r,s,l,a,c,d,u,p,_=[{autocomplete:"off"},{class:"props-group__name"},{contenteditable:"true"},{autocorrect:"off"},{autocapitalize:"off"},{spellcheck:"false"}],f={};for(let v=0;v<_.length;v+=1)f=_s(f,_[v]);function m(...v){return t[16](t[30],t[38],...v)}l=new AV({props:{value:t[32][t[38]],id:t[31],prop:t[30].prop+"."+t[38],flags:{}}}),l.$on("change",t[17]);let g=!t[4]&&Wh(t);return{c(){e=S("li"),n=S("div"),o=xe(i),r=G(),s=S("div"),Pe(l.$$.fragment),a=G(),g&&g.c(),fs(n,f),ne(n,"svelte-1nfw84",!0),h(s,"class","props-group__value svelte-1nfw84"),h(e,"class","props-group__item svelte-1nfw84"),h(e,"title",c=t[38])},m(v,y){F(v,e,y),$(e,n),$(n,o),$(e,r),$(e,s),Ee(l,s,null),$(e,a),g&&g.m(e,null),d=!0,u||(p=te(n,"input",m),u=!0)},p(v,y){t=v,(!d||y[0]&2)&&i!==(i=t[38]+"")&&f1(o,i),ne(n,"svelte-1nfw84",!0);const b={};y[0]&2&&(b.value=t[32][t[38]]),y[0]&3&&(b.id=t[31]),y[0]&2&&(b.prop=t[30].prop+"."+t[38]),l.$set(b),t[4]?g&&(g.d(1),g=null):g?g.p(t,y):(g=Wh(t),g.c(),g.m(e,null)),(!d||y[0]&2&&c!==(c=t[38]))&&h(e,"title",c)},i(v){d||(I(l.$$.fragment,v),d=!0)},o(v){H(l.$$.fragment,v),d=!1},d(v){v&&V(e),Ae(l),g&&g.d(),u=!1,p()}}}function Yh(t){let e,n=t[2]("props.add")+"",i,o,r;function s(){return t[19](t[30])}return{c(){e=S("button"),i=xe(n),h(e,"class","props-group__button props-group__add props-group__add_custom svelte-1nfw84")},m(l,a){F(l,e,a),$(e,i),o||(r=te(e,"click",s),o=!0)},p(l,a){t=l,a[0]&4&&n!==(n=t[2]("props.add")+"")&&at(i,n)},d(l){l&&V(e),o=!1,r()}}}function coe(t){let e,n,i,o,r=t[30].options&&Hh(t),s=t[30].subprops&&Jh(t),l=t[30].additionalProperties&&Uh(t);return{c(){e=S("ul"),r&&r.c(),n=G(),s&&s.c(),i=G(),l&&l.c(),h(e,"class","props-group__content svelte-1nfw84")},m(a,c){F(a,e,c),r&&r.m(e,null),$(e,n),s&&s.m(e,null),$(e,i),l&&l.m(e,null),o=!0},p(a,c){a[30].options?r?(r.p(a,c),c[0]&2&&I(r,1)):(r=Hh(a),r.c(),I(r,1),r.m(e,n)):r&&(Dt(),H(r,1,1,(()=>{r=null})),Vt()),a[30].subprops?s?(s.p(a,c),c[0]&2&&I(s,1)):(s=Jh(a),s.c(),I(s,1),s.m(e,i)):s&&(Dt(),H(s,1,1,(()=>{s=null})),Vt()),a[30].additionalProperties?l?(l.p(a,c),c[0]&2&&I(l,1)):(l=Uh(a),l.c(),I(l,1),l.m(e,null)):l&&(Dt(),H(l,1,1,(()=>{l=null})),Vt())},i(a){o||(I(r),I(s),I(l),o=!0)},o(a){H(r),H(s),H(l),o=!1},d(a){a&&V(e),r&&r.d(),s&&s.d(),l&&l.d()}}}function Gh(t){let e,n=t[37]&&Xh(t);return{c(){n&&n.c(),e=Vn()},m(i,o){n&&n.m(i,o),F(i,e,o)},p(i,o){i[37]?n?n.p(i,o):(n=Xh(i),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(i){i&&V(e),n&&n.d(i)}}}function Xh(t){let e,n;return{c(){e=S("span"),h(e,"class","props-group__warning svelte-1nfw84"),h(e,"title",n=t[37])},m(i,o){F(i,e,o)},p(i,o){o[0]&10&&n!==(n=i[37])&&h(e,"title",n)},d(i){i&&V(e)}}}function doe(t){var _;let e,n,i=t[30].name+"",o,r,s="{",l,a=(((_=t[32])==null?void 0:_.type)&&` ${t[32].type} `||" ")+"",c,d="}",u,p=(t[30].desc.platforms||t[30].desc.deprecated)&&Gh(Nd(t));return{c(){e=S("div"),p&&p.c(),n=G(),o=xe(i),r=G(),l=xe(s),c=xe(a),u=xe(d),h(e,"slot","title")},m(f,m){F(f,e,m),p&&p.m(e,null),$(e,n),$(e,o),$(e,r),$(e,l),$(e,c),$(e,u)},p(f,m){var g;f[30].desc.platforms||f[30].desc.deprecated?p?p.p(Nd(f),m):(p=Gh(Nd(f)),p.c(),p.m(e,n)):p&&(p.d(1),p=null),m[0]&2&&i!==(i=f[30].name+"")&&at(o,i),m[0]&2&&a!==(a=(((g=f[32])==null?void 0:g.type)&&` ${f[32].type} `||" ")+"")&&at(c,a)},d(f){f&&V(e),p&&p.d()}}}function Zh(t){let e,n,i,o,r,s;const l=[toe,eoe,Qie],a=[];function c(d,u){return d[30].type==="group"?0:d[30].type==="list"?1:2}return n=c(t),i=a[n]=l[n](t),{c(){var d;e=S("li"),i.c(),o=G(),h(e,"class","props-group__item svelte-1nfw84"),h(e,"title",r=t[30].name+": "+((d=t[30].description)==null?void 0:d.ru)),ne(e,"props-group__filled",t[33]),ne(e,"props-group__deprecated",t[34]&&t[30].type!=="group"&&t[30].type!=="list")},m(d,u){F(d,e,u),a[n].m(e,null),$(e,o),s=!0},p(d,u){var _;let p=n;n=c(d),n===p?a[n].p(d,u):(Dt(),H(a[p],1,1,(()=>{a[p]=null})),Vt(),i=a[n],i?i.p(d,u):(i=a[n]=l[n](d),i.c()),I(i,1),i.m(e,o)),(!s||u[0]&2&&r!==(r=d[30].name+": "+((_=d[30].description)==null?void 0:_.ru)))&&h(e,"title",r),(!s||u[0]&2)&&ne(e,"props-group__filled",d[33]),(!s||u[0]&2)&&ne(e,"props-group__deprecated",d[34]&&d[30].type!=="group"&&d[30].type!=="list")},i(d){s||(I(i),s=!0)},o(d){H(i),s=!1},d(d){d&&V(e),a[n].d()}}}function uoe(t){let e,n,i=ln(t[1]),o=[];for(let s=0;s<i.length;s+=1)o[s]=Zh(Mh(t,i,s));const r=s=>H(o[s],1,1,(()=>{o[s]=null}));return{c(){for(let s=0;s<o.length;s+=1)o[s].c();e=Vn()},m(s,l){for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(s,l);F(s,e,l),n=!0},p(s,l){if(l[0]&1823){i=ln(s[1]);let a;for(a=0;a<i.length;a+=1){const c=Mh(s,i,a);o[a]?(o[a].p(c,l),I(o[a],1)):(o[a]=Zh(c),o[a].c(),I(o[a],1),o[a].m(e.parentNode,e))}for(Dt(),a=i.length;a<o.length;a+=1)r(a);Vt()}},i(s){if(!n){for(let l=0;l<i.length;l+=1)I(o[l]);n=!0}},o(s){o=o.filter(Boolean);for(let l=0;l<o.length;l+=1)H(o[l]);n=!1},d(s){s&&V(e),Bi(o,s)}}}function poe(t,e,n){let i,o,r;const{l10n:s,lang:l}=yt(oi);De(t,s,(q=>n(2,i=q))),De(t,l,(q=>n(3,o=q)));const{state:a}=yt(Cn),{readOnly:c}=a;De(t,c,(q=>n(4,r=q)));const d=_i();let{group:u}=e,{list:p}=e;function _(q,N,Y){const x=q.target;if(!(x instanceof HTMLElement))return;const ce=x.textContent;d("rename",{prop:N,key:Y,newName:ce})}function f(q,N){const Y=[];return N.platforms&&!(N.platforms.includes("android")&&N.platforms.includes("ios")&&N.platforms.includes("web"))&&(N.platforms.length?Y.push(i("props.supports")+N.platforms.map(wl).join(", ")):Y.push(i("props.not_supported"))),N.deprecated&&Y.push(i("props.deprecated")),Y.join(". ")}function m(q){mn.call(this,t,q)}function g(q){mn.call(this,t,q)}function v(q){mn.call(this,t,q)}function y(q){mn.call(this,t,q)}function b(q){mn.call(this,t,q)}const w=(q,N,Y)=>_(Y,q.prop,N);function k(q){mn.call(this,t,q)}const A=(q,N)=>d("delete",{prop:q.prop,key:N,subtype:"custom"}),j=q=>d("add",{prop:q.prop,subtype:"custom"}),T=(q,N)=>d("delete",{prop:q.prop,key:N});function E(q){mn.call(this,t,q)}function O(q){mn.call(this,t,q)}function M(q){mn.call(this,t,q)}function D(q){mn.call(this,t,q)}const R=q=>d("add",{prop:q.prop,subtype:q.subtype});function J(q){mn.call(this,t,q)}function B(q){mn.call(this,t,q)}function z(q){mn.call(this,t,q)}return t.$$set=q=>{"group"in q&&n(0,u=q.group),"list"in q&&n(1,p=q.list)},[u,p,i,o,r,s,l,c,d,_,f,m,g,v,y,b,w,k,A,j,T,E,O,M,D,R,J,B,z]}class rp extends Gt{constructor(e){super(),Yt(this,e,poe,uoe,Rt,{group:0,list:1},null,[-1,-1])}}function xh(t){let e,n;return e=new rp({props:{group:t[0],list:t[1]}}),e.$on("change",t[5]),e.$on("add",t[6]),e.$on("delete",t[7]),e.$on("rename",t[8]),{c(){Pe(e.$$.fragment)},m(i,o){Ee(e,i,o),n=!0},p(i,o){const r={};o&1&&(r.group=i[0]),o&2&&(r.list=i[1]),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Ae(e,i)}}}function _oe(t){let e,n,i=t[1]&&xh(t);return{c(){e=S("ul"),i&&i.c(),h(e,"class","props-group__content svelte-6alnw8")},m(o,r){F(o,e,r),i&&i.m(e,null),n=!0},p(o,r){o[1]?i?(i.p(o,r),r&2&&I(i,1)):(i=xh(o),i.c(),I(i,1),i.m(e,null)):i&&(Dt(),H(i,1,1,(()=>{i=null})),Vt())},i(o){n||(I(i),n=!0)},o(o){H(i),n=!1},d(o){o&&V(e),i&&i.d()}}}function foe(t){let e,n=wl(t[0])+"",i;return{c(){e=S("div"),i=xe(n),h(e,"slot","title"),h(e,"class","props-group__summary svelte-6alnw8")},m(o,r){F(o,e,r),$(e,i)},p(o,r){r&1&&n!==(n=wl(o[0])+"")&&at(i,n)},d(o){o&&V(e)}}}function moe(t){let e,n;return e=new xo({props:{theme:"straight",mix:"props-group",open:!0,$$slots:{title:[foe],default:[_oe]},$$scope:{ctx:t}}}),{c(){Pe(e.$$.fragment)},m(i,o){Ee(e,i,o),n=!0},p(i,[o]){const r={};o&8195&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Ae(e,i)}}}function goe(t,e,n){let i,o,r,{group:s=""}=e;const{state:l}=yt(Cn),{selectedLeaf:a,readOnly:c,tree:d}=l;De(t,a,(g=>n(9,i=g))),De(t,c,(g=>n(11,r=g))),De(t,d,(g=>n(10,o=g)));let u=null;function p(g){if(i){if(r){console.error("Cannot edit readonly");return}l.pushCommand(new ir(o,[{leafId:i.id,property:g.detail.prop,value:g.detail.value}]))}}function _(g){if(!i)return;if(r){console.error("Cannot edit readonly");return}const v=i.props.json,y=As(v,g.detail.prop);let b;if(g.detail.subtype==="custom")if(y&&typeof y=="object"){let w=0;do{b=`prop${w++}`}while(b in y)}else b="prop0",Tl(v,g.detail.prop,{});else Array.isArray(y)?b=y.length:b=0;l.pushCommand(new ir(o,[{leafId:i.id,property:g.detail.prop+"["+b+"]",value:g.detail.subtype==="object"?{}:""}])),d.set(o)}function f(g){if(!i)return;if(r){console.error("Cannot edit readonly");return}const v=g.detail.key;let y=i.props.json,b=As(y,g.detail.prop);if(g.detail.subtype==="custom"){if(b&&typeof b=="object"){let w=b;w={...w},delete w[v],l.pushCommand(new ir(o,[{leafId:i.id,property:g.detail.prop,value:Object.keys(w).length===0?void 0:b}]))}}else if(Array.isArray(b)){const w=b.slice();w.splice(Number(v),1),l.pushCommand(new ir(o,[{leafId:i.id,property:g.detail.prop,value:b.length===1&&v===0?void 0:w}]))}}function m(g){if(!i)return;const v=g.detail.key;let y=i.props.json;const b=As(y,g.detail.prop);if(b&&typeof b=="object"){let w=b;w={...w},w[g.detail.newName]=w[v],delete w[v],l.pushCommand(new ir(o,[{leafId:i.id,property:g.detail.prop,value:w}]))}}return t.$$set=g=>{"group"in g&&n(0,s=g.group)},t.$$.update=()=>{if(t.$$.dirty&513&&(n(1,u=null),s&&i)){const g=Ote(`div-${s}`);g?n(1,u=Hl(g,i.props.processedJson)||null):n(1,u=[])}},[s,u,a,c,d,p,_,f,m,i]}class hoe extends Gt{constructor(e){super(),Yt(this,e,goe,moe,Rt,{group:0})}}function Lo(t,e,n){if(!t)return n;let i=t;const o=e.split(".");for(let r=0;r<o.length&&(i=i[o[r]],!!i);++r);return i===void 0?n:i}function Qh(t,e,n,i){return n.startsWith("$parent.")?e?Lo(e,n.substring(8)):void 0:n.startsWith("$")?i[n]:Lo(t,n)}function Nr(t,e,n,i={}){if("equal"in n)return Qh(t,e,n.prop,i)===n.equal;if("isEmpty"in n)return Qh(t,e,n.prop,i)===void 0;if("or"in n)return n.or.some((o=>Nr(t,e,o,i)));if("and"in n)return n.and.every((o=>Nr(t,e,o,i)));if("not"in n)return!Nr(t,e,n.not,i);throw new Error("Unknown condition")}function voe(t){let e,n;return e=new Nc({props:{propsList:t[1],processedJson:t[2],parentProcessedJson:t[3],parentEvalJson:t[4],evalJson:t[5],selectedElemProps:t[6]}}),e.$on("change",t[7]),{c(){Pe(e.$$.fragment)},m(i,o){Ee(e,i,o),n=!0},p(i,o){const r={};o&2&&(r.propsList=i[1]),o&4&&(r.processedJson=i[2]),o&8&&(r.parentProcessedJson=i[3]),o&16&&(r.parentEvalJson=i[4]),o&32&&(r.evalJson=i[5]),o&64&&(r.selectedElemProps=i[6]),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Ae(e,i)}}}function boe(t){let e,n;return{c(){e=S("div"),n=xe(t[0]),h(e,"slot","title")},m(i,o){F(i,e,o),$(e,n)},p(i,o){o&1&&at(n,i[0])},d(i){i&&V(e)}}}function yoe(t){let e,n;return e=new xo({props:{theme:"props",$$slots:{title:[boe],default:[voe]},$$scope:{ctx:t}}}),{c(){Pe(e.$$.fragment)},m(i,o){Ee(e,i,o),n=!0},p(i,[o]){const r={};o&383&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Ae(e,i)}}}function woe(t,e,n){let{title:i}=e,{propsList:o}=e,{processedJson:r}=e,{parentProcessedJson:s}=e,{parentEvalJson:l}=e,{evalJson:a}=e,{selectedElemProps:c}=e;function d(u){mn.call(this,t,u)}return t.$$set=u=>{"title"in u&&n(0,i=u.title),"propsList"in u&&n(1,o=u.propsList),"processedJson"in u&&n(2,r=u.processedJson),"parentProcessedJson"in u&&n(3,s=u.parentProcessedJson),"parentEvalJson"in u&&n(4,l=u.parentEvalJson),"evalJson"in u&&n(5,a=u.evalJson),"selectedElemProps"in u&&n(6,c=u.selectedElemProps)},[i,o,r,s,l,a,c,d]}class $oe extends Gt{constructor(e){super(),Yt(this,e,woe,yoe,Rt,{title:0,propsList:1,processedJson:2,parentProcessedJson:3,parentEvalJson:4,evalJson:5,selectedElemProps:6})}}function koe(t){let e,n,i;return n=new Xs({props:{color:t[0],mix:"color-input__preview-inner"}}),{c(){e=S("div"),Pe(n.$$.fragment),h(e,"class","color-input__preview svelte-11zrie8")},m(o,r){F(o,e,r),Ee(n,e,null),i=!0},p(o,r){const s={};r&1&&(s.color=o[0]),n.$set(s)},i(o){i||(I(n.$$.fragment,o),i=!0)},o(o){H(n.$$.fragment,o),i=!1},d(o){o&&V(e),Ae(n)}}}function joe(t){let e,n,i,o,r;return n=new Xs({props:{color:t[0],mix:"color-input__preview-inner"}}),{c(){e=S("button"),Pe(n.$$.fragment),h(e,"class","color-input__preview color-input__preview_active svelte-11zrie8")},m(s,l){F(s,e,l),Ee(n,e,null),i=!0,o||(r=te(e,"click",t[11]),o=!0)},p(s,l){const a={};l&1&&(a.color=s[0]),n.$set(a)},i(s){i||(I(n.$$.fragment,s),i=!0)},o(s){H(n.$$.fragment,s),i=!1},d(s){s&&V(e),Ae(n),o=!1,r()}}}function Soe(t){let e,n,i,o,r,s,l,a,c,d,u;return{c(){e=S("input"),i=G(),o=S("div"),r=G(),s=S("input"),a=G(),c=S("div"),c.textContent="%",h(e,"class","color-input__input svelte-11zrie8"),h(e,"type","text"),h(e,"autocomplete","off"),h(e,"autocorrect","off"),h(e,"autocapitalize","off"),h(e,"spellcheck","false"),h(e,"maxlength","7"),e.disabled=t[2],h(e,"title",n=t[7]("background.solid_first_title")),h(o,"class","color-input__separator svelte-11zrie8"),h(s,"class","color-input__second-input svelte-11zrie8"),h(s,"type","number"),h(s,"autocomplete","off"),h(s,"autocorrect","off"),h(s,"autocapitalize","off"),h(s,"spellcheck","false"),h(s,"min","0"),h(s,"max",zoe),s.disabled=t[2],h(s,"title",l=t[7]("background.solid_second_title")),h(c,"class","color-input__symbol svelte-11zrie8")},m(p,_){F(p,e,_),Hn(e,t[4]),F(p,i,_),F(p,o,_),F(p,r,_),F(p,s,_),Hn(s,t[5]),F(p,a,_),F(p,c,_),d||(u=[te(e,"input",t[12]),te(e,"input",t[10]),te(s,"input",t[13]),te(s,"input",t[10])],d=!0)},p(p,_){_&4&&(e.disabled=p[2]),_&128&&n!==(n=p[7]("background.solid_first_title"))&&h(e,"title",n),_&16&&e.value!==p[4]&&Hn(e,p[4]),_&4&&(s.disabled=p[2]),_&128&&l!==(l=p[7]("background.solid_second_title"))&&h(s,"title",l),_&32&&Ui(s.value)!==p[5]&&Hn(s,p[5])},d(p){p&&(V(e),V(i),V(o),V(r),V(s),V(a),V(c)),d=!1,Rn(u)}}}function Toe(t){let e,n=t[6].name+"",i;return{c(){e=S("div"),i=xe(n),h(e,"class","color-input__palette-name svelte-11zrie8")},m(o,r){F(o,e,r),$(e,i)},p(o,r){r&64&&n!==(n=o[6].name+"")&&at(i,n)},d(o){o&&V(e)}}}function Coe(t){let e,n,i,o,r;const s=[joe,koe],l=[];function a(p,_){return p[1]?0:1}n=a(t),i=l[n]=s[n](t);function c(p,_){return p[6]?Toe:Soe}let d=c(t),u=d(t);return{c(){e=S("div"),i.c(),o=G(),u.c(),h(e,"class","color-input svelte-11zrie8"),ne(e,"color-input_readonly",t[2])},m(p,_){F(p,e,_),l[n].m(e,null),$(e,o),u.m(e,null),t[14](e),r=!0},p(p,[_]){let f=n;n=a(p),n===f?l[n].p(p,_):(Dt(),H(l[f],1,1,(()=>{l[f]=null})),Vt(),i=l[n],i?i.p(p,_):(i=l[n]=s[n](p),i.c()),I(i,1),i.m(e,o)),d===(d=c(p))&&u?u.p(p,_):(u.d(1),u=d(p),u&&(u.c(),u.m(e,null))),(!r||_&4)&&ne(e,"color-input_readonly",p[2])},i(p){r||(I(i),r=!0)},o(p){H(i),r=!1},d(p){p&&V(e),l[n].d(),u.d(),t[14](null)}}}let zoe=100;function Eoe(t,e,n){let i,o,{value:r}=e,{hasDialog:s=!1}=e,{readOnly:l=!1}=e;const{l10nString:a}=yt(oi);De(t,a,(E=>n(7,o=E)));const{state:c,color2Dialog:d}=yt(Cn),{palette:u}=c;De(t,u,(E=>n(17,i=E)));const p=_i();let _,f="",m="",g="",v=null,y=!1;function b(E){if(!y)if(or(E))g=yr(E),n(6,v=i.find((O=>O.id===g))||null);else{g="",n(6,v=null);const O=E&&_r(E);O?(n(5,m=String(Math.round(O.a/255*100))),O.a=255,n(4,f=ms(O))):(n(4,f=""),n(5,m=""))}}function w(){const E=_r(f);E&&(E.a=Math.round(Number(m)*255/100),y=!0,n(0,r=ms(E)),p("change",{value:r}))}function k(){let E,O;or(r)?(E="",O=yr(r)):(E=r,O=""),d().show({value:E,paletteId:O,showPalette:!0,target:_,disabled:l,direction:_.getBoundingClientRect().right<innerWidth/2?"right":"left",callback(M,D){D?n(0,r=pa(D)):n(0,r=M),p("change",{value:r})}})}gs((()=>{y&&(y=!1)}));function A(){f=this.value,n(4,f)}function j(){m=Ui(this.value),n(5,m)}function T(E){pt[E?"unshift":"push"]((()=>{_=E,n(3,_)}))}return t.$$set=E=>{"value"in E&&n(0,r=E.value),"hasDialog"in E&&n(1,s=E.hasDialog),"readOnly"in E&&n(2,l=E.readOnly)},t.$$.update=()=>{t.$$.dirty&1&&b(r)},[r,s,l,_,f,m,v,o,a,u,w,k,A,j,T]}class pd extends Gt{constructor(e){super(),Yt(this,e,Eoe,Coe,Rt,{value:0,hasDialog:1,readOnly:2})}}function Aoe(t){let e,n,i;function o(s){t[5](s)}let r={hasDialog:!0,readOnly:t[1]};return t[0]!==void 0&&(r.value=t[0]),e=new pd({props:r}),pt.push((()=>Gn(e,"value",o))),e.$on("change",t[3]),{c(){Pe(e.$$.fragment)},m(s,l){Ee(e,s,l),i=!0},p(s,[l]){const a={};l&2&&(a.readOnly=s[1]),!n&&l&1&&(n=!0,a.value=s[0],Xn((()=>n=!1))),e.$set(a)},i(s){i||(I(e.$$.fragment,s),i=!0)},o(s){H(e.$$.fragment,s),i=!1},d(s){Ae(e,s)}}}function Ooe(t,e,n){let i,{value:o}=e,{item:r}=e;const{state:s}=yt(Cn),{readOnly:l}=s;De(t,l,(u=>n(1,i=u)));const a=_i();function c(){a("change",{value:o,item:r})}function d(u){o=u,n(0,o)}return t.$$set=u=>{"value"in u&&n(0,o=u.value),"item"in u&&n(4,r=u.item)},[o,i,l,c,r,d]}class Moe extends Gt{constructor(e){super(),Yt(this,e,Ooe,Aoe,Rt,{value:0,item:4})}}function Poe(t){let e,n,i;function o(s){t[14](s)}let r={mix:"selct-prop",disabled:t[4],theme:"normal",size:"medium",required:t[2],items:[t[1]&&{value:"",text:""},...t[3].map(t[13])].filter(kr)};return t[0]!==void 0&&(r.value=t[0]),e=new Hr({props:r}),pt.push((()=>Gn(e,"value",o))),e.$on("change",t[8]),{c(){Pe(e.$$.fragment)},m(s,l){Ee(e,s,l),i=!0},p(s,[l]){const a={};l&16&&(a.disabled=s[4]),l&4&&(a.required=s[2]),l&42&&(a.items=[s[1]&&{value:"",text:""},...s[3].map(s[13])].filter(kr)),!n&&l&1&&(n=!0,a.value=s[0],Xn((()=>n=!1))),e.$set(a)},i(s){i||(I(e.$$.fragment,s),i=!0)},o(s){H(e.$$.fragment,s),i=!1},d(s){Ae(e,s)}}}function Ioe(t,e,n){let i,o,r,{value:s}=e,{item:l}=e,{processedJson:a=void 0}=e,{parentProcessedJson:c=void 0}=e,{hasEmpty:d=!0}=e,{required:u=!1}=e,{options:p}=e;const{state:_}=yt(Cn),{readOnly:f}=_;De(t,f,(w=>n(4,o=w)));const{l10nString:m}=yt(oi);De(t,m,(w=>n(5,r=w)));const g=_i();function v(){g("change",{value:s,item:l})}const y=w=>({value:w.value,text:w.rawName||w.name&&r(w.name)||"",icon:w.icon});function b(w){s=w,n(0,s)}return t.$$set=w=>{"value"in w&&n(0,s=w.value),"item"in w&&n(9,l=w.item),"processedJson"in w&&n(10,a=w.processedJson),"parentProcessedJson"in w&&n(11,c=w.parentProcessedJson),"hasEmpty"in w&&n(1,d=w.hasEmpty),"required"in w&&n(2,u=w.required),"options"in w&&n(12,p=w.options)},t.$$.update=()=>{t.$$.dirty&7168&&n(3,i=p.filter((w=>w.show===void 0||a&&Nr(a,c,w.show))))},[s,d,u,i,o,r,f,m,v,l,a,c,p,y,b]}class MV extends Gt{constructor(e){super(),Yt(this,e,Ioe,Poe,Rt,{value:0,item:9,processedJson:10,parentProcessedJson:11,hasEmpty:1,required:2,options:12})}}function e0(t){const e=t.match(/^\@\{(.+)\}$/);return e==null?void 0:e[1]}function Ic(t){return"tanker_"+t.replace(/[^a-z_]/g,"_")}const Doe=function(){const e=document.createElement("div");return e.setAttribute("contenteditable","plaintext-only"),e.contentEditable==="plaintext-only"}();function Voe(t){let e,n,i;return{c(){e=S("input"),h(e,"class","text-prop svelte-4tj0tq"),h(e,"type","number"),h(e,"min",t[14]),h(e,"max",t[13]),h(e,"step",t[12]),h(e,"pattern",t[11]),h(e,"autocomplete","off"),h(e,"autocorrect","off"),h(e,"autocapitalize","off"),h(e,"spellcheck","false"),h(e,"id",t[1]),e.disabled=t[6],ne(e,"text-prop_disabled",t[6])},m(o,r){F(o,e,r),t[29](e),Hn(e,t[0]),n||(i=[te(e,"input",t[30]),te(e,"input",t[22])],n=!0)},p(o,r){r[0]&16384&&h(e,"min",o[14]),r[0]&8192&&h(e,"max",o[13]),r[0]&4096&&h(e,"step",o[12]),r[0]&2048&&h(e,"pattern",o[11]),r[0]&2&&h(e,"id",o[1]),r[0]&64&&(e.disabled=o[6]),r[0]&1&&Ui(e.value)!==o[0]&&Hn(e,o[0]),r[0]&64&&ne(e,"text-prop_disabled",o[6])},d(o){o&&V(e),t[29](null),n=!1,Rn(i)}}}function Loe(t){let e;function n(r,s){return r[6]||r[2].enabled===!1||r[3]?Noe:Foe}let i=n(t),o=i(t);return{c(){o.c(),e=Vn()},m(r,s){o.m(r,s),F(r,e,s)},p(r,s){i===(i=n(r))&&o?o.p(r,s):(o.d(1),o=i(r),o&&(o.c(),o.m(e.parentNode,e)))},d(r){r&&V(e),o.d(r)}}}function Foe(t){let e,n,i,o,r=[{autocomplete:"off"},{class:"text-prop"},{autocorrect:"off"},{autocapitalize:"off"},{spellcheck:"false"},{contenteditable:n=Doe?"plaintext-only":"true"},{id:t[1]}],s={};for(let l=0;l<r.length;l+=1)s=_s(s,r[l]);return{c(){e=S("div"),fs(e,s),ne(e,"svelte-4tj0tq",!0)},m(l,a){F(l,e,a),t[28](e),i||(o=[te(e,"input",t[22]),te(e,"paste",PV)],i=!0)},p(l,a){fs(e,s=yl(r,[{autocomplete:"off"},{class:"text-prop"},{autocorrect:"off"},{autocapitalize:"off"},{spellcheck:"false"},{contenteditable:n},a[0]&2&&{id:l[1]}])),ne(e,"svelte-4tj0tq",!0)},d(l){l&&V(e),t[28](null),i=!1,Rn(o)}}}function Noe(t){let e,n,i,o;function r(c,d){return c[3]?Roe:qoe}let s=r(t),l=s(t),a=t[10]&&t0(t);return{c(){e=S("div"),l.c(),n=G(),a&&a.c(),h(e,"class","text-prop text-prop_disabled svelte-4tj0tq"),h(e,"id",t[1]),ne(e,"text-prop_disabled-clickable",t[10])},m(c,d){F(c,e,d),l.m(e,null),$(e,n),a&&a.m(e,null),t[27](e),i||(o=[te(e,"paste",PV),te(e,"click",(function(){Yo(t[10]?t[23]:null)&&(t[10]?t[23]:null).apply(this,arguments)}))],i=!0)},p(c,d){t=c,s===(s=r(t))&&l?l.p(t,d):(l.d(1),l=s(t),l&&(l.c(),l.m(e,n))),t[10]?a?a.p(t,d):(a=t0(t),a.c(),a.m(e,null)):a&&(a.d(1),a=null),d[0]&2&&h(e,"id",t[1]),d[0]&1024&&ne(e,"text-prop_disabled-clickable",t[10])},d(c){c&&V(e),l.d(),a&&a.d(),t[27](null),i=!1,Rn(o)}}}function qoe(t){let e;return{c(){e=xe(t[0])},m(n,i){F(n,e,i)},p(n,i){i[0]&1&&at(e,n[0])},d(n){n&&V(e)}}}function Roe(t){var i;let e=(((i=t[5][t[4]])==null?void 0:i[t[16]])||"")+"",n;return{c(){n=xe(e)},m(o,r){F(o,n,r)},p(o,r){var s;r[0]&65584&&e!==(e=(((s=o[5][o[4]])==null?void 0:s[o[16]])||"")+"")&&at(n,e)},d(o){o&&V(n)}}}function t0(t){let e;return{c(){e=S("div"),h(e,"class","text-prop__loader svelte-4tj0tq"),ne(e,"text-prop__loader_shown",t[8])},m(n,i){F(n,e,i)},p(n,i){i[0]&256&&ne(e,"text-prop__loader_shown",n[8])},d(n){n&&V(e)}}}function n0(t){let e,n,i;function o(l,a){if(l[0]&&l[4])return Hoe;if(l[10])return Boe}let r=o(t),s=r&&r(t);return{c(){e=S("div"),s&&s.c()},m(l,a){F(l,e,a),s&&s.m(e,null),i=!0},p(l,a){r===(r=o(l))&&s?s.p(l,a):(s&&s.d(1),s=r&&r(l),s&&(s.c(),s.m(e,null)))},i(l){i||(l&&_o((()=>{i&&(n||(n=Zi(e,Go,{},!0)),n.run(1))})),i=!0)},o(l){l&&(n||(n=Zi(e,Go,{},!1)),n.run(0)),i=!1},d(l){l&&V(e),s&&s.d(),l&&n&&n.end()}}}function Boe(t){let e,n,i=t[17]("tankerEnterValue")+"",o,r,s;return{c(){e=S("div"),n=S("button"),o=xe(i),h(n,"class","text-prop__tanker-key svelte-4tj0tq"),h(e,"class","text-prop__tanker svelte-4tj0tq")},m(l,a){F(l,e,a),$(e,n),$(n,o),r||(s=te(n,"click",t[23]),r=!0)},p(l,a){a[0]&131072&&i!==(i=l[17]("tankerEnterValue")+"")&&at(o,i)},d(l){l&&V(e),r=!1,s()}}}function Hoe(t){let e,n,i=t[17](t[9]?"tankerKey":"tankerMissing")+"",o,r,s,l,a,c;return{c(){e=S("div"),n=S("div"),o=xe(i),r=G(),s=S("button"),l=xe(t[4]),h(n,"class","text-prop__tanker-label svelte-4tj0tq"),ne(n,"text-prop__tanker-label_error",!t[9]),h(s,"class","text-prop__tanker-key svelte-4tj0tq"),ne(s,"text-prop__tanker-key_disabled",!t[10]),h(e,"class","text-prop__tanker svelte-4tj0tq")},m(d,u){F(d,e,u),$(e,n),$(n,o),$(e,r),$(e,s),$(s,l),a||(c=te(s,"click",(function(){Yo(t[10]?t[23]:void 0)&&(t[10]?t[23]:void 0).apply(this,arguments)})),a=!0)},p(d,u){t=d,u[0]&131584&&i!==(i=t[17](t[9]?"tankerKey":"tankerMissing")+"")&&at(o,i),u[0]&512&&ne(n,"text-prop__tanker-label_error",!t[9]),u[0]&16&&at(l,t[4]),u[0]&1024&&ne(s,"text-prop__tanker-key_disabled",!t[10])},d(d){d&&V(e),a=!1,c()}}}function Joe(t){let e,n;function i(l,a){return l[15]==="text"?Loe:Voe}let o=i(t),r=o(t),s=t[3]&&n0(t);return{c(){r.c(),e=G(),s&&s.c(),n=Vn()},m(l,a){r.m(l,a),F(l,e,a),s&&s.m(l,a),F(l,n,a)},p(l,a){o===(o=i(l))&&r?r.p(l,a):(r.d(1),r=o(l),r&&(r.c(),r.m(e.parentNode,e))),l[3]?s?(s.p(l,a),a[0]&8&&I(s,1)):(s=n0(l),s.c(),I(s,1),s.m(n.parentNode,n)):s&&(Dt(),H(s,1,1,(()=>{s=null})),Vt())},i(l){I(s)},o(l){H(s)},d(l){l&&(V(e),V(n)),r.d(l),s&&s.d(l)}}}function PV(t){if(t.preventDefault(),t.clipboardData){let e=t.clipboardData.getData("text/plain");e=e.trim(),document.execCommand("inserttext",!1,e)}}function Uoe(t,e,n){let i,o,r,s,l,a,c,d,u,p,_,f,{id:m=""}=e,{value:g}=e,{item:v}=e,{flags:y={}}=e,{tankerToggled:b=!1}=e;const{getTranslationKey:w,getSelection:k,state:A,tanker2Dialog:j}=yt(Cn),{l10n:T}=yt(oi);De(t,T,(Z=>n(17,f=Z)));const{tanker:E,locale:O,readOnly:M}=A;De(t,E,(Z=>n(5,u=Z))),De(t,O,(Z=>n(16,_=Z))),De(t,M,(Z=>n(6,p=Z)));const D=_i();let R,J=!1,B=!1,z="";function q(){R.hasAttribute("contenteditable")&&n(0,g=fa(R)),v.default==="\0"&&(n(0,g=g.replace(/\0/g,"")),n(0,g=g||"\0")),D("change",{value:g,item:v})}function N(){j().show({target:R,value:z,callback(Z){if(!Z||!w){n(0,g="");return}const Q=()=>{n(0,g=`@{${Ic(Z)}}`),A.storeTankerKey(Z),q(),n(4,z=Z),n(8,J=!1)};n(8,J=!0),w(Z).then((se=>{Q(),se?(Mi(E,u={...u,[Z]:se},u),n(9,B=!0)):n(9,B=!1)})).catch((se=>{Q(),n(9,B=!1)}))}})}gs((()=>{if(R!=null&&R.hasAttribute("contenteditable")&&fa(R)!==g){let Z,Q,se;if(document.activeElement===R&&(Z=k(),Q=Dr(Z,R,"start",!1),se=Dr(Z,R,"end",!1)),n(7,R.innerText=g,R),document.activeElement===R&&Z&&Q!==void 0&&se!==void 0){Z.removeAllRanges();const _e=document.createRange();ts(Z,R,_e,"start",Q,!1),ts(Z,R,_e,"end",se,!1),Z.addRange(_e)}}}));function Y(Z){pt[Z?"unshift":"push"]((()=>{R=Z,n(7,R)}))}function x(Z){pt[Z?"unshift":"push"]((()=>{R=Z,n(7,R)}))}function ce(Z){pt[Z?"unshift":"push"]((()=>{R=Z,n(7,R)}))}function ue(){g=Ui(this.value),n(0,g)}return t.$$set=Z=>{"id"in Z&&n(1,m=Z.id),"value"in Z&&n(0,g=Z.value),"item"in Z&&n(2,v=Z.item),"flags"in Z&&n(24,y=Z.flags),"tankerToggled"in Z&&n(3,b=Z.tankerToggled)},t.$$.update=()=>{t.$$.dirty[0]&57&&(g&&b?(n(4,z=A.getTankerKey(g)),n(9,B=z in u)):n(4,z="")),t.$$.dirty[0]&16777216&&n(26,i=y.subtype==="number"||y.subtype==="integer"),t.$$.dirty[0]&67108864&&n(15,o=i?"number":"text"),t.$$.dirty[0]&16777216&&n(25,r=op(y.subtype,y.constraint)),t.$$.dirty[0]&33554432&&n(14,s=r.min),t.$$.dirty[0]&33554432&&n(13,l=r.max),t.$$.dirty[0]&16777216&&n(12,a=y.subtype==="integer"?1:y.subtype==="number"?.01:null),t.$$.dirty[0]&16777216&&n(11,c=y.subtype==="integer"?"\\d+":null),t.$$.dirty[0]&76&&n(10,d=b&&!(p||v.enabled===!1))},[g,m,v,b,z,u,p,R,J,B,d,c,a,l,s,o,_,f,T,E,O,M,q,N,y,r,i,Y,x,ce,ue]}class Woe extends Gt{constructor(e){super(),Yt(this,e,Uoe,Joe,Rt,{id:1,value:0,item:2,flags:24,tankerToggled:3},null,[-1,-1])}}function i0(t,e,n){const i=t.slice();return i[12]=e[n],i}function o0(t){let e,n,i,o,r=!1,s,l,a=t[3](t[12].name)+"",c,d,u,p,_,f;return p=_1(t[10][0]),{c(){e=S("label"),n=S("input"),s=G(),l=S("span"),c=xe(a),d=G(),h(n,"type","radio"),h(n,"name",i=t[1].prop),h(n,"class","radio-prop__input svelte-1hubmz7"),n.__value=o=t[12].value,Hn(n,n.__value),h(l,"class","radio-prop__item-inner svelte-1hubmz7"),h(e,"class","radio-prop__item svelte-1hubmz7"),h(e,"title",u=t[3](t[12].name)),p.p(n)},m(m,g){F(m,e,g),$(e,n),n.checked=n.__value===t[0],$(e,s),$(e,l),$(l,c),$(e,d),_||(f=[te(n,"change",t[9]),te(n,"change",t[5])],_=!0)},p(m,g){g&2&&i!==(i=m[1].prop)&&h(n,"name",i),g&4&&o!==(o=m[12].value)&&(n.__value=o,Hn(n,n.__value),r=!0),(r||g&5)&&(n.checked=n.__value===m[0]),g&12&&a!==(a=m[3](m[12].name)+"")&&at(c,a),g&12&&u!==(u=m[3](m[12].name))&&h(e,"title",u)},d(m){m&&V(e),p.r(),_=!1,Rn(f)}}}function Koe(t){let e,n=ln(t[2]),i=[];for(let o=0;o<n.length;o+=1)i[o]=o0(i0(t,n,o));return{c(){e=S("div");for(let o=0;o<i.length;o+=1)i[o].c();h(e,"class","radio-prop svelte-1hubmz7")},m(o,r){F(o,e,r);for(let s=0;s<i.length;s+=1)i[s]&&i[s].m(e,null)},p(o,[r]){if(r&47){n=ln(o[2]);let s;for(s=0;s<n.length;s+=1){const l=i0(o,n,s);i[s]?i[s].p(l,r):(i[s]=o0(l),i[s].c(),i[s].m(e,null))}for(;s<i.length;s+=1)i[s].d(1);i.length=n.length}},i:tn,o:tn,d(o){o&&V(e),Bi(i,o)}}}function Yoe(t,e,n){let i,o,{value:r}=e,{item:s}=e,{processedJson:l}=e,{parentProcessedJson:a}=e,{options:c}=e;const{l10nString:d}=yt(oi);De(t,d,(m=>n(3,o=m)));const u=_i();function p(){u("change",{value:r,item:s})}const _=[[]];function f(){r=this.__value,n(0,r)}return t.$$set=m=>{"value"in m&&n(0,r=m.value),"item"in m&&n(1,s=m.item),"processedJson"in m&&n(6,l=m.processedJson),"parentProcessedJson"in m&&n(7,a=m.parentProcessedJson),"options"in m&&n(8,c=m.options)},t.$$.update=()=>{t.$$.dirty&448&&n(2,i=c.filter((m=>m.show===void 0||Nr(l,a,m.show))))},[r,s,i,o,d,p,l,a,c,f,_]}class Goe extends Gt{constructor(e){super(),Yt(this,e,Yoe,Koe,Rt,{value:0,item:1,processedJson:6,parentProcessedJson:7,options:8})}}function Xoe(t){let e,n,i;function o(s){t[8](s)}let r={subtype:"file",fileType:t[1].subtype,disabled:t[4],generateFromVideo:t[3],generateFromLottie:t[2]};return t[0]!==void 0&&(r.value=t[0]),e=new ho({props:r}),pt.push((()=>Gn(e,"value",o))),e.$on("change",t[6]),{c(){Pe(e.$$.fragment)},m(s,l){Ee(e,s,l),i=!0},p(s,[l]){const a={};l&2&&(a.fileType=s[1].subtype),l&16&&(a.disabled=s[4]),l&8&&(a.generateFromVideo=s[3]),l&4&&(a.generateFromLottie=s[2]),!n&&l&1&&(n=!0,a.value=s[0],Xn((()=>n=!1))),e.$set(a)},i(s){i||(I(e.$$.fragment,s),i=!0)},o(s){H(e.$$.fragment,s),i=!1},d(s){Ae(e,s)}}}function Zoe(t,e,n){let i,o,r,{value:s}=e,{item:l}=e,{processedJson:a=void 0}=e;const{state:c}=yt(Cn),{readOnly:d}=c;De(t,d,(f=>n(4,r=f)));const u=_i();function p(){u("change",{value:s,item:l})}function _(f){s=f,n(0,s)}return t.$$set=f=>{"value"in f&&n(0,s=f.value),"item"in f&&n(1,l=f.item),"processedJson"in f&&n(7,a=f.processedJson)},t.$$.update=()=>{t.$$.dirty&130&&n(3,i=l.generateFromVideoProperty&&a?As(a,l.generateFromVideoProperty):void 0),t.$$.dirty&130&&n(2,o=l.generateFromLottieProperty&&a?As(a,l.generateFromLottieProperty):void 0)},[s,l,o,i,r,d,p,a,_]}class xoe extends Gt{constructor(e){super(),Yt(this,e,Zoe,Xoe,Rt,{value:0,item:1,processedJson:7})}}function r0(t){let e;function n(r,s){if(r[1]==="percent")return ere;if(r[1]==="angle")return Qoe}let i=n(t),o=i&&i(t);return{c(){e=S("div"),o&&o.c(),h(e,"class","number-prop__symbol svelte-1hzinr7"),h(e,"aria-hidden","true")},m(r,s){F(r,e,s),o&&o.m(e,null)},p(r,s){i!==(i=n(r))&&(o&&o.d(1),o=i&&i(r),o&&(o.c(),o.m(e,null)))},d(r){r&&V(e),o&&o.d()}}}function Qoe(t){let e;return{c(){e=xe("°")},m(n,i){F(n,e,i)},d(n){n&&V(e)}}}function ere(t){let e;return{c(){e=xe("%")},m(n,i){F(n,e,i)},d(n){n&&V(e)}}}function s0(t){let e,n;return{c(){e=S("div"),n=xe(t[3]),h(e,"class","number-prop__inline-label svelte-1hzinr7")},m(i,o){F(i,e,o),$(e,n)},p(i,o){o&8&&at(n,i[3])},d(i){i&&V(e)}}}function tre(t){let e,n,i,o,r,s,l,a=(t[1]==="percent"||t[1]==="angle")&&r0(t),c=t[3]&&s0(t);return{c(){e=S("div"),n=S("input"),i=G(),a&&a.c(),o=G(),c&&c.c(),h(n,"type","number"),h(n,"min",t[9]),h(n,"max",t[8]),h(n,"step",t[7]),h(n,"pattern",t[6]),h(n,"class","number-prop__input svelte-1hzinr7"),h(n,"autocomplete","off"),h(n,"autocorrect","off"),h(n,"autocapitalize","off"),h(n,"spellcheck","false"),h(n,"id",t[0]),n.readOnly=t[5],ne(n,"number-prop__input_percent",t[1]==="percent"),ne(n,"number-prop__input_angle",t[1]==="angle"),h(e,"class",r="number-prop "+t[2]+" svelte-1hzinr7"),ne(e,"number-prop_inline-label",!!t[3]),ne(e,"number-prop_disabled",t[5])},m(d,u){F(d,e,u),$(e,n),Hn(n,t[4]),$(e,i),a&&a.m(e,null),$(e,o),c&&c.m(e,null),s||(l=[te(n,"input",t[19]),te(n,"input",t[11])],s=!0)},p(d,[u]){u&512&&h(n,"min",d[9]),u&256&&h(n,"max",d[8]),u&128&&h(n,"step",d[7]),u&64&&h(n,"pattern",d[6]),u&1&&h(n,"id",d[0]),u&32&&(n.readOnly=d[5]),u&16&&Ui(n.value)!==d[4]&&Hn(n,d[4]),u&2&&ne(n,"number-prop__input_percent",d[1]==="percent"),u&2&&ne(n,"number-prop__input_angle",d[1]==="angle"),d[1]==="percent"||d[1]==="angle"?a?a.p(d,u):(a=r0(d),a.c(),a.m(e,o)):a&&(a.d(1),a=null),d[3]?c?c.p(d,u):(c=s0(d),c.c(),c.m(e,null)):c&&(c.d(1),c=null),u&4&&r!==(r="number-prop "+d[2]+" svelte-1hzinr7")&&h(e,"class",r),u&12&&ne(e,"number-prop_inline-label",!!d[3]),u&36&&ne(e,"number-prop_disabled",d[5])},i:tn,o:tn,d(d){d&&V(e),a&&a.d(),c&&c.d(),s=!1,Rn(l)}}}function nre(t,e,n){let i,o,r,s,l,a,c,{id:d=""}=e,{value:u}=e,{item:p}=e,{subtype:_="number"}=e,{min:f=void 0}=e,{max:m=void 0}=e,{constraint:g=""}=e,{mix:v=""}=e,{inlineLabel:y=""}=e;const{state:b}=yt(Cn),{readOnly:w}=b;De(t,w,(O=>n(18,c=O)));const k=_i();let A=0;function j(O){let M;_==="percent"?M=Math.round(Number(O)*100):M=Number(O),Number.isNaN(M)?n(4,A=void 0):n(4,A=M)}function T(){let O=Number(A);_==="percent"&&(O/=100),k("change",{value:O,item:p})}function E(){A=Ui(this.value),n(4,A)}return t.$$set=O=>{"id"in O&&n(0,d=O.id),"value"in O&&n(12,u=O.value),"item"in O&&n(13,p=O.item),"subtype"in O&&n(1,_=O.subtype),"min"in O&&n(14,f=O.min),"max"in O&&n(15,m=O.max),"constraint"in O&&n(16,g=O.constraint),"mix"in O&&n(2,v=O.mix),"inlineLabel"in O&&n(3,y=O.inlineLabel)},t.$$.update=()=>{t.$$.dirty&4096&&j(u),t.$$.dirty&65538&&n(17,i=op(_,g)),t.$$.dirty&147456&&n(9,o=f??i.min),t.$$.dirty&163840&&n(8,r=m??i.max),t.$$.dirty&2&&n(7,s=_==="integer"||_==="percent"||_==="angle"?1:.01),t.$$.dirty&2&&n(6,l=_==="integer"||_==="percent"||_==="angle"?"\\d+":null),t.$$.dirty&270336&&n(5,a=c||p.enabled===!1)},[d,_,v,y,A,a,l,s,r,o,w,T,u,p,f,m,g,i,c,E]}class _d extends Gt{constructor(e){super(),Yt(this,e,nre,tre,Rt,{id:0,value:12,item:13,subtype:1,min:14,max:15,constraint:16,mix:2,inlineLabel:3})}}function ire(t){let e,n,i,o,r,s;return{c(){e=S("div"),n=S("input"),i=G(),o=S("div"),h(n,"class","boolean__input svelte-tgzek5"),h(n,"type","checkbox"),h(n,"autocomplete","off"),h(n,"id",t[0]),n.disabled=t[3],h(o,"class","boolean__bg svelte-tgzek5"),h(e,"class","boolean__box svelte-tgzek5")},m(l,a){F(l,e,a),$(e,n),n.checked=t[2],$(e,i),$(e,o),r||(s=[te(n,"change",t[10]),te(n,"change",t[7])],r=!0)},p(l,a){a&1&&h(n,"id",l[0]),a&8&&(n.disabled=l[3]),a&4&&(n.checked=l[2])},d(l){l&&V(e),r=!1,Rn(s)}}}function ore(t){let e,n,i,o,r,s,l=t[4](t[1].label)+"",a,c,d;return{c(){e=S("label"),n=S("div"),i=S("input"),o=G(),r=S("div"),s=G(),a=xe(l),h(i,"class","boolean__input svelte-tgzek5"),h(i,"type","checkbox"),h(i,"autocomplete","off"),h(i,"id",t[0]),i.disabled=t[3],h(r,"class","boolean__bg svelte-tgzek5"),h(n,"class","boolean__box svelte-tgzek5"),h(e,"class","boolean__label svelte-tgzek5")},m(u,p){F(u,e,p),$(e,n),$(n,i),i.checked=t[2],$(n,o),$(n,r),$(e,s),$(e,a),c||(d=[te(i,"change",t[9]),te(i,"change",t[7])],c=!0)},p(u,p){p&1&&h(i,"id",u[0]),p&8&&(i.disabled=u[3]),p&4&&(i.checked=u[2]),p&18&&l!==(l=u[4](u[1].label)+"")&&at(a,l)},d(u){u&&V(e),c=!1,Rn(d)}}}function rre(t){let e;function n(r,s){return r[1].label?ore:ire}let i=n(t),o=i(t);return{c(){e=S("div"),o.c(),h(e,"class","boolean svelte-tgzek5"),ne(e,"boolean_sibling",t[1].theme==="sibling"),ne(e,"boolean_disabled",t[3])},m(r,s){F(r,e,s),o.m(e,null)},p(r,[s]){i===(i=n(r))&&o?o.p(r,s):(o.d(1),o=i(r),o&&(o.c(),o.m(e,null))),s&2&&ne(e,"boolean_sibling",r[1].theme==="sibling"),s&8&&ne(e,"boolean_disabled",r[3])},i:tn,o:tn,d(r){r&&V(e),o.d()}}}function sre(t,e,n){let i,o,{id:r=""}=e,{value:s}=e,{item:l}=e;const{state:a}=yt(Cn),{readOnly:c}=a;De(t,c,(g=>n(3,i=g)));let d=!1;const{l10n:u}=yt(oi);De(t,u,(g=>n(4,o=g)));const p=_i();function _(){p("change",{value:d,item:l})}function f(){d=this.checked,n(2,d),n(8,s)}function m(){d=this.checked,n(2,d),n(8,s)}return t.$$set=g=>{"id"in g&&n(0,r=g.id),"value"in g&&n(8,s=g.value),"item"in g&&n(1,l=g.item)},t.$$.update=()=>{t.$$.dirty&256&&s!==void 0&&n(2,d=!!s)},[r,l,d,i,o,c,u,_,s,f,m]}class lre extends Gt{constructor(e){super(),Yt(this,e,sre,rre,Rt,{id:0,value:8,item:1})}}function are(t){let e,n,i,o,r,s,l;return{c(){e=S("div"),n=S("input"),i=G(),o=S("div"),h(n,"type","range"),h(n,"min","0"),h(n,"max","360"),h(n,"step","1"),h(n,"class","rotation-prop__input svelte-1tu0uda"),h(n,"autocomplete","off"),h(n,"id",t[1]),n.value=t[0],n.disabled=t[4],h(o,"class","rotation-prop__value svelte-1tu0uda"),ke(o,"--value",t[0]%360/360-.25),h(e,"class",r="rotation-prop "+t[2]+" svelte-1tu0uda"),ne(e,"rotation-prop_disabled",t[4])},m(a,c){F(a,e,c),$(e,n),t[9](n),$(e,i),$(e,o),s||(l=[te(n,"input",t[6]),te(n,"pointerdown",t[7])],s=!0)},p(a,[c]){c&2&&h(n,"id",a[1]),c&1&&(n.value=a[0]),c&16&&(n.disabled=a[4]),c&1&&ke(o,"--value",a[0]%360/360-.25),c&4&&r!==(r="rotation-prop "+a[2]+" svelte-1tu0uda")&&h(e,"class",r),c&20&&ne(e,"rotation-prop_disabled",a[4])},i:tn,o:tn,d(a){a&&V(e),t[9](null),s=!1,Rn(l)}}}function cre(t,e,n){let i,{id:o=""}=e,{value:r}=e,{item:s}=e,{mix:l=""}=e;const{state:a}=yt(Cn),{readOnly:c}=a;De(t,c,(b=>n(4,i=b)));const d=_i();let u,p=!1,_;function f(b){b.preventDefault();const w=u.getBoundingClientRect(),k=b.clientX-w.left-w.width/2,A=b.clientY-w.top-w.height/2,j=Math.atan2(A,k);let T=Math.round(j/Math.PI*180);T+=90,T<0&&(T+=360),p=!0,n(0,r=T),n(3,u.value=String(T),u),d("change",{value:r,item:s}),clearTimeout(_),_=setTimeout((()=>{p=!1}),100)}function m(){p||(n(0,r=Number(u.value)),d("change",{value:r,item:s}))}function g(){document.body.removeEventListener("pointermove",f),document.body.removeEventListener("pointerup",g),document.body.removeEventListener("pointercancel",g)}function v(b){i||(f(b),u.focus(),document.body.addEventListener("pointermove",f),document.body.addEventListener("pointerup",g),document.body.addEventListener("pointercancel",g))}function y(b){pt[b?"unshift":"push"]((()=>{u=b,n(3,u)}))}return t.$$set=b=>{"id"in b&&n(1,o=b.id),"value"in b&&n(0,r=b.value),"item"in b&&n(8,s=b.item),"mix"in b&&n(2,l=b.mix)},[r,o,l,u,i,c,m,v,s,y]}class dre extends Gt{constructor(e){super(),Yt(this,e,cre,are,Rt,{id:1,value:0,item:8,mix:2})}}function ure(t){let e,n,i,o,r;return n=new dre({props:{id:t[0],item:t[2],value:Number(t[1]),mix:"rotation-group-prop__rotation"}}),n.$on("change",t[3]),o=new _d({props:{id:t[0],item:t[2],value:t[1],subtype:"angle",min:0,max:360,mix:"rotation-group-prop__input"}}),o.$on("change",t[4]),{c(){e=S("div"),Pe(n.$$.fragment),i=G(),Pe(o.$$.fragment),h(e,"class","rotation-group-prop svelte-zd75dn")},m(s,l){F(s,e,l),Ee(n,e,null),$(e,i),Ee(o,e,null),r=!0},p(s,[l]){const a={};l&1&&(a.id=s[0]),l&4&&(a.item=s[2]),l&2&&(a.value=Number(s[1])),n.$set(a);const c={};l&1&&(c.id=s[0]),l&4&&(c.item=s[2]),l&2&&(c.value=s[1]),o.$set(c)},i(s){r||(I(n.$$.fragment,s),I(o.$$.fragment,s),r=!0)},o(s){H(n.$$.fragment,s),H(o.$$.fragment,s),r=!1},d(s){s&&V(e),Ae(n),Ae(o)}}}function pre(t,e,n){let{id:i=""}=e,{value:o}=e,{item:r}=e;function s(a){mn.call(this,t,a)}function l(a){mn.call(this,t,a)}return t.$$set=a=>{"id"in a&&n(0,i=a.id),"value"in a&&n(1,o=a.value),"item"in a&&n(2,r=a.item)},[i,o,r,s,l]}class _re extends Gt{constructor(e){super(),Yt(this,e,pre,ure,Rt,{id:0,value:1,item:2})}}function l0(t,e,n){const i=t.slice();return i[36]=e[n],i}function a0(t,e,n){const i=t.slice();return i[39]=e[n],i}function c0(t){let e,n,i,o;function r(){return t[26](t[39],t[36])}function s(){return t[27](t[39],t[36])}return{c(){e=S("div"),h(e,"class",n="alignment__val alignment__val_horizontal_"+t[39]+" alignment__val_vertical_"+t[36]+" svelte-1l035nk"),ne(e,"alignment__val_selected",(t[0]===t[39]||t[0]&&t[39]===p0[t[7]][t[0]])&&t[1]===t[36]&&!(t[6]&&t[5]))},m(l,a){F(l,e,a),i||(o=[te(e,"click",zi(r)),te(e,"mouseenter",s)],i=!0)},p(l,a){t=l,a[0]&6144&&n!==(n="alignment__val alignment__val_horizontal_"+t[39]+" alignment__val_vertical_"+t[36]+" svelte-1l035nk")&&h(e,"class",n),a[0]&6371&&ne(e,"alignment__val_selected",(t[0]===t[39]||t[0]&&t[39]===p0[t[7]][t[0]])&&t[1]===t[36]&&!(t[6]&&t[5]))},d(l){l&&V(e),i=!1,Rn(o)}}}function d0(t){let e,n=ln(t[12]),i=[];for(let o=0;o<n.length;o+=1)i[o]=c0(a0(t,n,o));return{c(){for(let o=0;o<i.length;o+=1)i[o].c();e=Vn()},m(o,r){for(let s=0;s<i.length;s+=1)i[s]&&i[s].m(o,r);F(o,e,r)},p(o,r){if(r[0]&270323){n=ln(o[12]);let s;for(s=0;s<n.length;s+=1){const l=a0(o,n,s);i[s]?i[s].p(l,r):(i[s]=c0(l),i[s].c(),i[s].m(e.parentNode,e))}for(;s<i.length;s+=1)i[s].d(1);i.length=n.length}},d(o){o&&V(e),Bi(i,o)}}}function fre(t){let e,n,i;function o(s){t[28](s)}let r={items:[{text:t[15](So.left),value:"left"},{text:t[15](So.start),value:"start"},{text:t[15](So.center),value:"center"},{text:t[15](So.right),value:"right"},{text:t[15](So.end),value:"end"},{text:t[15](So[""]),value:""}],theme:"transparent",disabled:t[4]};return t[14]!==void 0&&(r.value=t[14]),e=new Hr({props:r}),pt.push((()=>Gn(e,"value",o))),e.$on("change",t[29]),{c(){Pe(e.$$.fragment)},m(s,l){Ee(e,s,l),i=!0},p(s,l){const a={};l[0]&32768&&(a.items=[{text:s[15](So.left),value:"left"},{text:s[15](So.start),value:"start"},{text:s[15](So.center),value:"center"},{text:s[15](So.right),value:"right"},{text:s[15](So.end),value:"end"},{text:s[15](So[""]),value:""}]),l[0]&16&&(a.disabled=s[4]),!n&&l[0]&16384&&(n=!0,a.value=s[14],Xn((()=>n=!1))),e.$set(a)},i(s){i||(I(e.$$.fragment,s),i=!0)},o(s){H(e.$$.fragment,s),i=!1},d(s){Ae(e,s)}}}function mre(t){let e,n=t[15]("props.size_match_parent")+"",i;return{c(){e=S("div"),i=xe(n),h(e,"class","alignment__select-fill svelte-1l035nk")},m(o,r){F(o,e,r),$(e,i)},p(o,r){r[0]&32768&&n!==(n=o[15]("props.size_match_parent")+"")&&at(i,n)},i:tn,o:tn,d(o){o&&V(e)}}}function gre(t){let e,n,i;function o(s){t[30](s)}let r={items:[{text:t[15](So.top),value:"top"},{text:t[15](So.center),value:"center"},{text:t[15](So.bottom),value:"bottom"},{text:t[15](So[""]),value:""}],theme:"transparent",disabled:t[4]};return t[13]!==void 0&&(r.value=t[13]),e=new Hr({props:r}),pt.push((()=>Gn(e,"value",o))),e.$on("change",t[31]),{c(){Pe(e.$$.fragment)},m(s,l){Ee(e,s,l),i=!0},p(s,l){const a={};l[0]&32768&&(a.items=[{text:s[15](So.top),value:"top"},{text:s[15](So.center),value:"center"},{text:s[15](So.bottom),value:"bottom"},{text:s[15](So[""]),value:""}]),l[0]&16&&(a.disabled=s[4]),!n&&l[0]&8192&&(n=!0,a.value=s[13],Xn((()=>n=!1))),e.$set(a)},i(s){i||(I(e.$$.fragment,s),i=!0)},o(s){H(e.$$.fragment,s),i=!1},d(s){Ae(e,s)}}}function hre(t){let e,n=t[15]("props.size_match_parent")+"",i;return{c(){e=S("div"),i=xe(n),h(e,"class","alignment__select-fill svelte-1l035nk")},m(o,r){F(o,e,r),$(e,i)},p(o,r){r[0]&32768&&n!==(n=o[15]("props.size_match_parent")+"")&&at(i,n)},i:tn,o:tn,d(o){o&&V(e)}}}function u0(t){let e,n,i,o,r,s,l;return{c(){e=S("div"),n=S("div"),i=G(),o=S("div"),r=G(),s=S("div"),h(n,"class","alignment__preview-item svelte-1l035nk"),h(o,"class","alignment__preview-item svelte-1l035nk"),h(s,"class","alignment__preview-item svelte-1l035nk"),h(e,"class",l="alignment__preview alignment__preview_"+t[2]+" svelte-1l035nk"),ne(e,"alignment__preview_showed",t[8]),ne(e,"alignment__preview_halign_left",t[9]==="left"||t[9]==="start"&&t[7]==="ltr"||t[9]==="end"&&t[7]==="rtl"),ne(e,"alignment__preview_halign_center",t[9]==="center"),ne(e,"alignment__preview_halign_right",t[9]==="right"||t[9]==="end"&&t[7]==="ltr"||t[9]==="start"&&t[7]==="rtl"),ne(e,"alignment__preview_valign_top",t[10]==="top"),ne(e,"alignment__preview_valign_center",t[10]==="center"),ne(e,"alignment__preview_valign_bottom",t[10]==="bottom")},m(a,c){F(a,e,c),$(e,n),$(e,i),$(e,o),$(e,r),$(e,s)},p(a,c){c[0]&4&&l!==(l="alignment__preview alignment__preview_"+a[2]+" svelte-1l035nk")&&h(e,"class",l),c[0]&260&&ne(e,"alignment__preview_showed",a[8]),c[0]&644&&ne(e,"alignment__preview_halign_left",a[9]==="left"||a[9]==="start"&&a[7]==="ltr"||a[9]==="end"&&a[7]==="rtl"),c[0]&516&&ne(e,"alignment__preview_halign_center",a[9]==="center"),c[0]&644&&ne(e,"alignment__preview_halign_right",a[9]==="right"||a[9]==="end"&&a[7]==="ltr"||a[9]==="start"&&a[7]==="rtl"),c[0]&1028&&ne(e,"alignment__preview_valign_top",a[10]==="top"),c[0]&1028&&ne(e,"alignment__preview_valign_center",a[10]==="center"),c[0]&1028&&ne(e,"alignment__preview_valign_bottom",a[10]==="bottom")},d(a){a&&V(e)}}}function vre(t){let e,n,i,o,r,s,l,a,c,d,u,p,_,f,m,g,v,y,b,w,k,A,j=ln(t[11]),T=[];for(let z=0;z<j.length;z+=1)T[z]=d0(l0(t,j,z));const E=[mre,fre],O=[];function M(z,q){return z[6]?0:1}d=M(t),u=O[d]=E[d](t);const D=[hre,gre],R=[];function J(z,q){return z[5]?0:1}g=J(t),v=R[g]=D[g](t);let B=t[3]&&t[2]&&u0(t);return{c(){e=S("div"),n=S("div");for(let z=0;z<T.length;z+=1)T[z].c();o=G(),r=S("div"),s=S("div"),l=S("div"),a=S("div"),a.textContent="X:",c=G(),u.c(),p=G(),_=S("div"),f=S("div"),f.textContent="Y:",m=G(),v.c(),y=G(),B&&B.c(),h(n,"class","alignment__item alignment__grid svelte-1l035nk"),h(n,"tabindex",i=t[4]||t[6]&&t[5]?void 0:0),ne(n,"alignment__grid_disabled",t[4]||t[6]&&t[5]),h(l,"class","alignment__select-wrapper svelte-1l035nk"),h(_,"class","alignment__select-wrapper svelte-1l035nk"),h(s,"class","alignment__select-group svelte-1l035nk"),h(r,"class","alignment__item alignment__text svelte-1l035nk"),h(e,"class",b="alignment alignment_direction_"+t[7]+" svelte-1l035nk"),ne(e,"alignment_disabled",t[4]),ne(e,"alignment_match_horizontal",t[6]),ne(e,"alignment_match_vertical",t[5])},m(z,q){F(z,e,q),$(e,n);for(let N=0;N<T.length;N+=1)T[N]&&T[N].m(n,null);$(e,o),$(e,r),$(r,s),$(s,l),$(l,a),$(l,c),O[d].m(l,null),$(s,p),$(s,_),$(_,f),$(_,m),R[g].m(_,null),$(r,y),B&&B.m(r,null),w=!0,k||(A=[te(n,"keydown",t[19]),te(n,"mouseleave",t[20])],k=!0)},p(z,q){if(q[0]&270323){j=ln(z[11]);let x;for(x=0;x<j.length;x+=1){const ce=l0(z,j,x);T[x]?T[x].p(ce,q):(T[x]=d0(ce),T[x].c(),T[x].m(n,null))}for(;x<T.length;x+=1)T[x].d(1);T.length=j.length}(!w||q[0]&112&&i!==(i=z[4]||z[6]&&z[5]?void 0:0))&&h(n,"tabindex",i),(!w||q[0]&112)&&ne(n,"alignment__grid_disabled",z[4]||z[6]&&z[5]);let N=d;d=M(z),d===N?O[d].p(z,q):(Dt(),H(O[N],1,1,(()=>{O[N]=null})),Vt(),u=O[d],u?u.p(z,q):(u=O[d]=E[d](z),u.c()),I(u,1),u.m(l,null));let Y=g;g=J(z),g===Y?R[g].p(z,q):(Dt(),H(R[Y],1,1,(()=>{R[Y]=null})),Vt(),v=R[g],v?v.p(z,q):(v=R[g]=D[g](z),v.c()),I(v,1),v.m(_,null)),z[3]&&z[2]?B?B.p(z,q):(B=u0(z),B.c(),B.m(r,null)):B&&(B.d(1),B=null),(!w||q[0]&128&&b!==(b="alignment alignment_direction_"+z[7]+" svelte-1l035nk"))&&h(e,"class",b),(!w||q[0]&144)&&ne(e,"alignment_disabled",z[4]),(!w||q[0]&192)&&ne(e,"alignment_match_horizontal",z[6]),(!w||q[0]&160)&&ne(e,"alignment_match_vertical",z[5])},i(z){w||(I(u),I(v),w=!0)},o(z){H(u),H(v),w=!1},d(z){z&&V(e),Bi(T,z),O[d].d(),R[g].d(),B&&B.d(),k=!1,Rn(A)}}}const bre=["left","center","right"],yre=["start","center","end"],wre=["end","center","start"],$re=["top","center","bottom"],p0={ltr:{left:"start",right:"end"},rtl:{left:"end",right:"start"}},So={left:"props.align_left",center:"props.align_center",right:"props.align_right",top:"props.align_top",bottom:"props.align_bottom",start:"props.align_start",end:"props.align_end","":"default"};function kre(t,e,n){let i,o,r,s,l,a,c,d,{horizontal:u}=e,{vertical:p}=e,{width:_=void 0}=e,{height:f=void 0}=e,{orientation:m=void 0}=e,{isContent:g=!1}=e,{isSelfAlign:v=!1}=e,{parentType:y=void 0}=e,{parentOrientation:b=void 0}=e,{disabled:w=!1}=e;const{state:k,directionSelector:A}=yt(Cn),{l10n:j}=yt(oi);De(t,j,(Z=>n(15,d=Z)));const{direction:T}=k;De(t,T,(Z=>n(7,c=Z)));const E=_i();let O=!1,M="",D="";function R(Z,Q){w||(s.length<2&&(Q=void 0),r.length<2&&(Z=void 0),n(0,u=Z),n(1,p=Q),E("change",{horizontal:u,vertical:p}))}function J(Z,Q){let se,_e=r.indexOf(u||"");_e===-1?se=r[0]:(_e=Math.max(0,Math.min(2,_e+Z)),se=r[_e]);let Oe,W=s.indexOf(p||"");W===-1?Oe=s[0]:(W=Math.max(0,Math.min(2,W+Q)),Oe=s[W]),R(se,Oe)}function B(Z){if(!w){if(RL.isPressed(Z))J(0,-1);else if(BL.isPressed(Z))J(0,1);else if(HL.isPressed(Z))J(-1,0);else if(JL.isPressed(Z))J(1,0);else if(ZL.isPressed(Z))R("","");else return;Z.preventDefault(),Z.stopPropagation()}}function z(){n(8,O=!1)}const q=(Z,Q)=>R(Z,Q),N=(Z,Q)=>{w||(n(8,O=!0),n(9,M=Z),n(10,D=Q))};function Y(Z){l=Z,n(14,l),n(0,u)}const x=()=>R(l,p);function ce(Z){a=Z,n(13,a),n(1,p)}const ue=()=>R(u,a);return t.$$set=Z=>{"horizontal"in Z&&n(0,u=Z.horizontal),"vertical"in Z&&n(1,p=Z.vertical),"width"in Z&&n(21,_=Z.width),"height"in Z&&n(22,f=Z.height),"orientation"in Z&&n(2,m=Z.orientation),"isContent"in Z&&n(3,g=Z.isContent),"isSelfAlign"in Z&&n(23,v=Z.isSelfAlign),"parentType"in Z&&n(24,y=Z.parentType),"parentOrientation"in Z&&n(25,b=Z.parentOrientation),"disabled"in Z&&n(4,w=Z.disabled)},t.$$.update=()=>{t.$$.dirty[0]&60817408&&n(6,i=v&&(!_||_.type==="match_parent"||y==="container"&&b==="horizontal"||y==="gallery"&&(!b||b==="horizontal"))),t.$$.dirty[0]&62914560&&n(5,o=v&&((f==null?void 0:f.type)==="match_parent"||y==="container"&&(!b||b==="vertical")||y==="gallery"&&b==="vertical")),t.$$.dirty[0]&192&&n(12,r=i?[A?"start":"left"]:A?c==="ltr"?yre:wre:bre),t.$$.dirty[0]&32&&n(11,s=o?["top"]:$re),t.$$.dirty[0]&1&&n(14,l=u||""),t.$$.dirty[0]&2&&n(13,a=p||"")},[u,p,m,g,w,o,i,c,O,M,D,s,r,a,l,d,j,T,R,B,z,_,f,v,y,b,q,N,Y,x,ce,ue]}class IV extends Gt{constructor(e){super(),Yt(this,e,kre,vre,Rt,{horizontal:0,vertical:1,width:21,height:22,orientation:2,isContent:3,isSelfAlign:23,parentType:24,parentOrientation:25,disabled:4},null,[-1,-1])}}function jre(t){let e,n;return e=new IV({props:{horizontal:t[2],vertical:t[1],orientation:t[3],isContent:t[0].isContent,isSelfAlign:t[0].isSelfAlign,width:t[7],height:t[6],parentType:t[5],parentOrientation:t[4],disabled:t[8]}}),e.$on("change",t[10]),{c(){Pe(e.$$.fragment)},m(i,o){Ee(e,i,o),n=!0},p(i,[o]){const r={};o&4&&(r.horizontal=i[2]),o&2&&(r.vertical=i[1]),o&8&&(r.orientation=i[3]),o&1&&(r.isContent=i[0].isContent),o&1&&(r.isSelfAlign=i[0].isSelfAlign),o&128&&(r.width=i[7]),o&64&&(r.height=i[6]),o&32&&(r.parentType=i[5]),o&16&&(r.parentOrientation=i[4]),o&256&&(r.disabled=i[8]),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Ae(e,i)}}}function Sre(t,e,n){let i,o,r,s,l,a,c,d,{item:u}=e,{processedJson:p}=e,{parentEvalJson:_}=e;const{state:f}=yt(Cn),{readOnly:m}=f;De(t,m,(y=>n(8,d=y)));const g=_i();function v(y){n(2,i=y.detail.horizontal),n(1,o=y.detail.vertical),g("change",{values:[y.detail.horizontal!==void 0&&{prop:u.horizontalProp,value:y.detail.horizontal},y.detail.vertical!==void 0&&{prop:u.verticalProp,value:y.detail.vertical}].filter(Boolean),item:u})}return t.$$set=y=>{"item"in y&&n(0,u=y.item),"processedJson"in y&&n(11,p=y.processedJson),"parentEvalJson"in y&&n(12,_=y.parentEvalJson)},t.$$.update=()=>{t.$$.dirty&2049&&n(2,i=Lo(p,u.horizontalProp)),t.$$.dirty&2049&&n(1,o=Lo(p,u.verticalProp)),t.$$.dirty&2048&&n(7,r=Lo(p,"width")),t.$$.dirty&2048&&n(6,s=Lo(p,"height")),t.$$.dirty&4096&&n(5,l=Lo(_,"type")),t.$$.dirty&4096&&n(4,a=Lo(_,"orientation")),t.$$.dirty&2049&&n(3,c=u.orientationProp&&(Lo(p,u.orientationProp)||(p.type==="container"?"vertical":"horizontal")))},[u,o,i,c,a,l,s,r,d,m,v,p,_]}class Tre extends Gt{constructor(e){super(),Yt(this,e,Sre,jre,Rt,{item:0,processedJson:11,parentEvalJson:12})}}function Cre(t){let e,n,i=t[10]("props.margins")+"",o,r,s,l=t[10]("props.paddings")+"",a,c,d,u,p,_,f,m,g,v,y,b,w,k,A,j,T,E,O,M,D,R,J,B,z,q,N,Y,x,ce,ue,Z=t[10]("inset_content")+"",Q,se,_e;return{c(){e=S("div"),n=S("div"),o=xe(i),r=G(),s=S("div"),a=xe(l),c=G(),d=S("div"),u=S("input"),p=G(),_=S("div"),f=S("input"),m=G(),g=S("div"),v=S("input"),y=G(),b=S("div"),w=S("input"),k=G(),A=S("div"),j=S("input"),T=G(),E=S("div"),O=S("input"),M=G(),D=S("div"),R=S("input"),J=G(),B=S("div"),z=S("input"),q=G(),N=S("div"),N.innerHTML="",Y=G(),x=S("div"),x.innerHTML="",ce=G(),ue=S("div"),Q=xe(Z),h(n,"class","margins-paddings-prop__label margins-paddings-prop__label_margins svelte-1h6maym"),h(s,"class","margins-paddings-prop__label margins-paddings-prop__label_paddings svelte-1h6maym"),h(u,"type","number"),h(u,"min","0"),h(u,"step","1"),h(u,"pattern","\\d+"),h(u,"class","margins-paddings-prop__input svelte-1h6maym"),h(u,"autocomplete","off"),h(u,"autocorrect","off"),h(u,"autocapitalize","off"),h(u,"spellcheck","false"),h(u,"placeholder","-"),u.disabled=t[9],h(d,"class","margins-paddings-prop__cell margins-paddings-prop__cell_input margins-paddings-prop__cell_margins-top svelte-1h6maym"),h(f,"type","number"),h(f,"min","0"),h(f,"step","1"),h(f,"pattern","\\d+"),h(f,"class","margins-paddings-prop__input svelte-1h6maym"),h(f,"autocomplete","off"),h(f,"autocorrect","off"),h(f,"autocapitalize","off"),h(f,"spellcheck","false"),h(f,"placeholder","-"),f.disabled=t[9],h(_,"class","margins-paddings-prop__cell margins-paddings-prop__cell_input margins-paddings-prop__cell_paddings-top svelte-1h6maym"),h(v,"type","number"),h(v,"min","0"),h(v,"step","1"),h(v,"pattern","\\d+"),h(v,"class","margins-paddings-prop__input svelte-1h6maym"),h(v,"autocomplete","off"),h(v,"autocorrect","off"),h(v,"autocapitalize","off"),h(v,"spellcheck","false"),h(v,"placeholder","-"),v.disabled=t[9],h(g,"class","margins-paddings-prop__cell margins-paddings-prop__cell_input margins-paddings-prop__cell_margins-left svelte-1h6maym"),h(w,"type","number"),h(w,"min","0"),h(w,"step","1"),h(w,"pattern","\\d+"),h(w,"class","margins-paddings-prop__input svelte-1h6maym"),h(w,"autocomplete","off"),h(w,"autocorrect","off"),h(w,"autocapitalize","off"),h(w,"spellcheck","false"),h(w,"placeholder","-"),w.disabled=t[9],h(b,"class","margins-paddings-prop__cell margins-paddings-prop__cell_input margins-paddings-prop__cell_paddings-left svelte-1h6maym"),h(j,"type","number"),h(j,"min","0"),h(j,"step","1"),h(j,"pattern","\\d+"),h(j,"class","margins-paddings-prop__input svelte-1h6maym"),h(j,"autocomplete","off"),h(j,"autocorrect","off"),h(j,"autocapitalize","off"),h(j,"spellcheck","false"),h(j,"placeholder","-"),j.disabled=t[9],h(A,"class","margins-paddings-prop__cell margins-paddings-prop__cell_input margins-paddings-prop__cell_paddings-right svelte-1h6maym"),h(O,"type","number"),h(O,"min","0"),h(O,"step","1"),h(O,"pattern","\\d+"),h(O,"class","margins-paddings-prop__input svelte-1h6maym"),h(O,"autocomplete","off"),h(O,"autocorrect","off"),h(O,"autocapitalize","off"),h(O,"spellcheck","false"),h(O,"placeholder","-"),O.disabled=t[9],h(E,"class","margins-paddings-prop__cell margins-paddings-prop__cell_input margins-paddings-prop__cell_margins-right svelte-1h6maym"),h(R,"type","number"),h(R,"min","0"),h(R,"step","1"),h(R,"pattern","\\d+"),h(R,"class","margins-paddings-prop__input svelte-1h6maym"),h(R,"autocomplete","off"),h(R,"autocorrect","off"),h(R,"autocapitalize","off"),h(R,"spellcheck","false"),h(R,"placeholder","-"),R.disabled=t[9],h(D,"class","margins-paddings-prop__cell margins-paddings-prop__cell_input margins-paddings-prop__cell_paddings-bottom svelte-1h6maym"),h(z,"type","number"),h(z,"min","0"),h(z,"step","1"),h(z,"pattern","\\d+"),h(z,"class","margins-paddings-prop__input svelte-1h6maym"),h(z,"autocomplete","off"),h(z,"autocorrect","off"),h(z,"autocapitalize","off"),h(z,"spellcheck","false"),h(z,"placeholder","-"),z.disabled=t[9],h(B,"class","margins-paddings-prop__cell margins-paddings-prop__cell_input margins-paddings-prop__cell_margins-bottom svelte-1h6maym"),h(N,"class","margins-paddings-prop__cell margins-paddings-prop__cell_input margins-paddings-prop__cell_border-box svelte-1h6maym"),h(x,"class","margins-paddings-prop__cell margins-paddings-prop__cell_input margins-paddings-prop__cell_content-box svelte-1h6maym"),h(ue,"class","margins-paddings-prop__cell margins-paddings-prop__cell_input margins-paddings-prop__cell_center svelte-1h6maym"),h(e,"class","margins-paddings-prop svelte-1h6maym"),ne(e,"margins-paddings-prop_hover_margins",t[8]==="margins"),ne(e,"margins-paddings-prop_hover_paddings",t[8]==="paddings"),ne(e,"margins-paddings-prop_disabled",t[9])},m(Oe,W){F(Oe,e,W),$(e,n),$(n,o),$(e,r),$(e,s),$(s,a),$(e,c),$(e,d),$(d,u),Hn(u,t[4]),$(e,p),$(e,_),$(_,f),Hn(f,t[0]),$(e,m),$(e,g),$(g,v),Hn(v,t[7]),$(e,y),$(e,b),$(b,w),Hn(w,t[3]),$(e,k),$(e,A),$(A,j),Hn(j,t[1]),$(e,T),$(e,E),$(E,O),Hn(O,t[5]),$(e,M),$(e,D),$(D,R),Hn(R,t[2]),$(e,J),$(e,B),$(B,z),Hn(z,t[6]),$(e,q),$(e,N),$(e,Y),$(e,x),$(e,ce),$(e,ue),$(ue,Q),se||(_e=[te(u,"input",t[21]),te(u,"input",t[22]),te(d,"mouseenter",t[23]),te(d,"mouseleave",t[24]),te(f,"input",t[25]),te(f,"input",t[26]),te(_,"mouseenter",t[27]),te(_,"mouseleave",t[28]),te(v,"input",t[29]),te(v,"input",t[30]),te(g,"mouseenter",t[31]),te(g,"mouseleave",t[32]),te(w,"input",t[33]),te(w,"input",t[34]),te(b,"mouseenter",t[35]),te(b,"mouseleave",t[36]),te(j,"input",t[37]),te(j,"input",t[38]),te(A,"mouseenter",t[39]),te(A,"mouseleave",t[40]),te(O,"input",t[41]),te(O,"input",t[42]),te(E,"mouseenter",t[43]),te(E,"mouseleave",t[44]),te(R,"input",t[45]),te(R,"input",t[46]),te(D,"mouseenter",t[47]),te(D,"mouseleave",t[48]),te(z,"input",t[49]),te(z,"input",t[50]),te(B,"mouseenter",t[51]),te(B,"mouseleave",t[52]),te(N,"mouseenter",t[53]),te(N,"mouseleave",t[54]),te(x,"mouseenter",t[55]),te(x,"mouseleave",t[56]),te(e,"blur",t[57],!0)],se=!0)},p(Oe,W){W[0]&1024&&i!==(i=Oe[10]("props.margins")+"")&&at(o,i),W[0]&1024&&l!==(l=Oe[10]("props.paddings")+"")&&at(a,l),W[0]&512&&(u.disabled=Oe[9]),W[0]&16&&Ui(u.value)!==Oe[4]&&Hn(u,Oe[4]),W[0]&512&&(f.disabled=Oe[9]),W[0]&1&&Ui(f.value)!==Oe[0]&&Hn(f,Oe[0]),W[0]&512&&(v.disabled=Oe[9]),W[0]&128&&Ui(v.value)!==Oe[7]&&Hn(v,Oe[7]),W[0]&512&&(w.disabled=Oe[9]),W[0]&8&&Ui(w.value)!==Oe[3]&&Hn(w,Oe[3]),W[0]&512&&(j.disabled=Oe[9]),W[0]&2&&Ui(j.value)!==Oe[1]&&Hn(j,Oe[1]),W[0]&512&&(O.disabled=Oe[9]),W[0]&32&&Ui(O.value)!==Oe[5]&&Hn(O,Oe[5]),W[0]&512&&(R.disabled=Oe[9]),W[0]&4&&Ui(R.value)!==Oe[2]&&Hn(R,Oe[2]),W[0]&512&&(z.disabled=Oe[9]),W[0]&64&&Ui(z.value)!==Oe[6]&&Hn(z,Oe[6]),W[0]&1024&&Z!==(Z=Oe[10]("inset_content")+"")&&at(Q,Z),W[0]&256&&ne(e,"margins-paddings-prop_hover_margins",Oe[8]==="margins"),W[0]&256&&ne(e,"margins-paddings-prop_hover_paddings",Oe[8]==="paddings"),W[0]&512&&ne(e,"margins-paddings-prop_disabled",Oe[9])},i:tn,o:tn,d(Oe){Oe&&V(e),se=!1,Rn(_e)}}}function _0(t,e){if(!t)return{top:void 0,right:void 0,bottom:void 0,left:void 0};const n=t.top,i=t.bottom,o=(e==="ltr"?t.start:t.end)??t.left,r=(e==="ltr"?t.end:t.start)??t.right;return{top:n,right:r,bottom:i,left:o}}function zre(t,e,n){let i,o,r,s,l,a;const{directionSelector:c,state:d}=yt(Cn),{l10n:u}=yt(oi);De(t,u,(zt=>n(10,a=zt)));const{direction:p,highlightMode:_,readOnly:f}=d;De(t,p,(zt=>n(20,s=zt))),De(t,_,(zt=>n(8,r=zt))),De(t,f,(zt=>n(9,l=zt)));let{item:m}=e,{processedJson:g}=e;const v=_i();let y=(i==null?void 0:i.top)??void 0,b=(i==null?void 0:i.right)??void 0,w=(i==null?void 0:i.bottom)??void 0,k=(i==null?void 0:i.left)??void 0,A=(o==null?void 0:o.top)??void 0,j=(o==null?void 0:o.right)??void 0,T=(o==null?void 0:o.bottom)??void 0,E=(o==null?void 0:o.left)??void 0;function O(zt,an){const sn=_0(zt,an);n(0,y=sn.top),n(1,b=sn.right),n(2,w=sn.bottom),n(3,k=sn.left)}function M(zt,an){const sn=_0(zt,an);n(4,A=sn.top),n(5,j=sn.right),n(6,T=sn.bottom),n(7,E=sn.left)}function D(zt){if(zt.top||zt.right||zt.bottom||zt.left)return c?{top:zt.top,bottom:zt.bottom,start:s==="ltr"?zt.left:zt.right,end:s==="ltr"?zt.right:zt.left}:zt}function R(zt){Mi(_,r=zt,r),zt==="paddings"?(n(19,i=D({top:y??void 0,right:b??void 0,bottom:w??void 0,left:k??void 0})),v("change",{values:[{prop:"paddings",value:i}],item:m})):(n(18,o=D({top:A??void 0,right:j??void 0,bottom:T??void 0,left:E??void 0})),v("change",{values:[{prop:"margins",value:o}],item:m}))}function J(){A=Ui(this.value),n(4,A)}const B=()=>R("margins"),z=()=>Mi(_,r="margins",r),q=()=>Mi(_,r="",r);function N(){y=Ui(this.value),n(0,y)}const Y=()=>R("paddings"),x=()=>Mi(_,r="paddings",r),ce=()=>Mi(_,r="",r);function ue(){E=Ui(this.value),n(7,E)}const Z=()=>R("margins"),Q=()=>Mi(_,r="margins",r),se=()=>Mi(_,r="",r);function _e(){k=Ui(this.value),n(3,k)}const Oe=()=>R("paddings"),W=()=>Mi(_,r="paddings",r),ge=()=>Mi(_,r="",r);function it(){b=Ui(this.value),n(1,b)}const ye=()=>R("paddings"),rt=()=>Mi(_,r="paddings",r),U=()=>Mi(_,r="",r);function de(){j=Ui(this.value),n(5,j)}const pe=()=>R("margins"),et=()=>Mi(_,r="margins",r),we=()=>Mi(_,r="",r);function Ie(){w=Ui(this.value),n(2,w)}const Xe=()=>R("paddings"),vt=()=>Mi(_,r="paddings",r),Qe=()=>Mi(_,r="",r);function fe(){T=Ui(this.value),n(6,T)}const me=()=>R("margins"),ve=()=>Mi(_,r="margins",r),Ge=()=>Mi(_,r="",r),gt=()=>Mi(_,r="margins",r),ee=()=>Mi(_,r="",r),Je=()=>Mi(_,r="paddings",r),We=()=>Mi(_,r="",r),jt=()=>Mi(_,r="",r);return t.$$set=zt=>{"item"in zt&&n(16,m=zt.item),"processedJson"in zt&&n(17,g=zt.processedJson)},t.$$.update=()=>{t.$$.dirty[0]&131072&&n(19,i=Lo(g,"paddings")),t.$$.dirty[0]&131072&&n(18,o=Lo(g,"margins")),t.$$.dirty[0]&1572864&&O(i,s),t.$$.dirty[0]&1310720&&M(o,s)},[y,b,w,k,A,j,T,E,r,l,a,u,p,_,f,R,m,g,o,i,s,J,B,z,q,N,Y,x,ce,ue,Z,Q,se,_e,Oe,W,ge,it,ye,rt,U,de,pe,et,we,Ie,Xe,vt,Qe,fe,me,ve,Ge,gt,ee,Je,We,jt]}class Ere extends Gt{constructor(e){super(),Yt(this,e,zre,Cre,Rt,{item:16,processedJson:17},null,[-1,-1,-1])}}function Are(t){let e,n,i,o,r;return{c(){e=S("div"),n=G(),i=S("div"),o=G(),r=S("div"),h(e,"class","background2-item__preview-bg svelte-1w8sika"),h(i,"class","background2-item__preview-value svelte-1w8sika"),ke(i,"background-image",t[3]),h(r,"class","background2-item__preview-inset svelte-1w8sika")},m(s,l){F(s,e,l),F(s,n,l),F(s,i,l),F(s,o,l),F(s,r,l)},p(s,l){l[0]&8&&ke(i,"background-image",s[3])},i:tn,o:tn,d(s){s&&(V(e),V(n),V(i),V(o),V(r))}}}function Ore(t){let e,n;return e=new Xs({props:{color:t[0].color,mix:"background2-item__preview-inner"}}),{c(){Pe(e.$$.fragment)},m(i,o){Ee(e,i,o),n=!0},p(i,o){const r={};o[0]&1&&(r.color=i[0].color),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Ae(e,i)}}}function Mre(t){let e,n,i,o,r,s,l,a,c;function d(g,v){return g[0].type==="solid"?Dre:Ire}let u=d(t),p=u(t);function _(g,v){return g[0].type==="gradient"?Nre:Fre}let f=_(t),m=f(t);return{c(){p.c(),e=G(),n=S("div"),i=G(),o=S("input"),s=G(),l=S("div"),m.c(),h(n,"class","background2-item__separator svelte-1w8sika"),h(o,"class","background2-item__second-input svelte-1w8sika"),h(o,"type","number"),h(o,"autocomplete","off"),h(o,"autocorrect","off"),h(o,"autocapitalize","off"),h(o,"spellcheck","false"),h(o,"min","0"),o.disabled=t[10],h(o,"max",t[7]),h(o,"title",r=t[11](`background.${t[0].type}_second_title`)),h(l,"class","background2-item__symbol svelte-1w8sika")},m(g,v){p.m(g,v),F(g,e,v),F(g,n,v),F(g,i,v),F(g,o,v),Hn(o,t[5]),F(g,s,v),F(g,l,v),m.m(l,null),a||(c=[te(o,"input",t[23]),te(o,"input",t[16]),te(o,"focus",t[17]),te(o,"blur",t[18])],a=!0)},p(g,v){u===(u=d(g))&&p?p.p(g,v):(p.d(1),p=u(g),p&&(p.c(),p.m(e.parentNode,e))),v[0]&1024&&(o.disabled=g[10]),v[0]&128&&h(o,"max",g[7]),v[0]&2049&&r!==(r=g[11](`background.${g[0].type}_second_title`))&&h(o,"title",r),v[0]&32&&Ui(o.value)!==g[5]&&Hn(o,g[5]),f!==(f=_(g))&&(m.d(1),m=f(g),m&&(m.c(),m.m(l,null)))},d(g){g&&(V(e),V(n),V(i),V(o),V(s),V(l)),p.d(g),m.d(),a=!1,Rn(c)}}}function Pre(t){let e;function n(r,s){return r[1]?Rre:qre}let i=n(t),o=i(t);return{c(){e=S("div"),o.c(),h(e,"class","background2-item__palette-name svelte-1w8sika")},m(r,s){F(r,e,s),o.m(e,null)},p(r,s){i===(i=n(r))&&o?o.p(r,s):(o.d(1),o=i(r),o&&(o.c(),o.m(e,null)))},d(r){r&&V(e),o.d()}}}function Ire(t){let e,n,i;function o(l,a){return l[0].type==="gradient"?Lre:Vre}let r=o(t),s=r(t);return{c(){e=S("button"),s.c(),h(e,"class","background2-item__text svelte-1w8sika")},m(l,a){F(l,e,a),s.m(e,null),n||(i=te(e,"click",t[19]),n=!0)},p(l,a){r===(r=o(l))&&s?s.p(l,a):(s.d(1),s=r(l),s&&(s.c(),s.m(e,null)))},d(l){l&&V(e),s.d(),n=!1,i()}}}function Dre(t){let e,n,i,o;return{c(){e=S("input"),h(e,"class","background2-item__input svelte-1w8sika"),h(e,"type","text"),h(e,"autocomplete","off"),h(e,"autocorrect","off"),h(e,"autocapitalize","off"),h(e,"spellcheck","false"),h(e,"maxlength","7"),e.disabled=t[10],h(e,"title",n=t[11](`background.${t[0].type}_first_title`))},m(r,s){F(r,e,s),t[21](e),Hn(e,t[4]),i||(o=[te(e,"input",t[22]),te(e,"input",t[16])],i=!0)},p(r,s){s[0]&1024&&(e.disabled=r[10]),s[0]&2049&&n!==(n=r[11](`background.${r[0].type}_first_title`))&&h(e,"title",n),s[0]&16&&e.value!==r[4]&&Hn(e,r[4])},d(r){r&&V(e),t[21](null),i=!1,Rn(o)}}}function Vre(t){let e=t[11]("background.image")+"",n;return{c(){n=xe(e)},m(i,o){F(i,n,o)},p(i,o){o[0]&2048&&e!==(e=i[11]("background.image")+"")&&at(n,e)},d(i){i&&V(n)}}}function Lre(t){let e=t[11]("background.gradient")+"",n;return{c(){n=xe(e)},m(i,o){F(i,n,o)},p(i,o){o[0]&2048&&e!==(e=i[11]("background.gradient")+"")&&at(n,e)},d(i){i&&V(n)}}}function Fre(t){let e;return{c(){e=xe("%")},m(n,i){F(n,e,i)},d(n){n&&V(e)}}}function Nre(t){let e;return{c(){e=xe("°")},m(n,i){F(n,e,i)},d(n){n&&V(e)}}}function qre(t){let e;return{c(){e=xe(t[6])},m(n,i){F(n,e,i)},p(n,i){i[0]&64&&at(e,n[6])},d(n){n&&V(e)}}}function Rre(t){let e=t[1].name+"",n;return{c(){n=xe(e)},m(i,o){F(i,n,o)},p(i,o){o[0]&2&&e!==(e=i[1].name+"")&&at(n,e)},d(i){i&&V(n)}}}function Bre(t){let e,n,i,o,r,s,l,a;const c=[Ore,Are],d=[];function u(m,g){return m[0].type==="solid"?0:1}i=u(t),o=d[i]=c[i](t);function p(m,g){return m[0].type==="solid"&&m[6]?Pre:Mre}let _=p(t),f=_(t);return{c(){e=S("div"),n=S("button"),o.c(),r=G(),f.c(),h(n,"class","background2-item__preview svelte-1w8sika"),h(e,"class","background2-item svelte-1w8sika"),h(e,"title",t[8]),ne(e,"background2-item_readonly",t[10]),ne(e,"background2-item_error",!!t[8])},m(m,g){F(m,e,g),$(e,n),d[i].m(n,null),$(e,r),f.m(e,null),t[24](e),s=!0,l||(a=te(n,"click",t[19]),l=!0)},p(m,g){let v=i;i=u(m),i===v?d[i].p(m,g):(Dt(),H(d[v],1,1,(()=>{d[v]=null})),Vt(),o=d[i],o?o.p(m,g):(o=d[i]=c[i](m),o.c()),I(o,1),o.m(n,null)),_===(_=p(m))&&f?f.p(m,g):(f.d(1),f=_(m),f&&(f.c(),f.m(e,null))),(!s||g[0]&256)&&h(e,"title",m[8]),(!s||g[0]&1024)&&ne(e,"background2-item_readonly",m[10]),(!s||g[0]&256)&&ne(e,"background2-item_error",!!m[8])},i(m){s||(I(o),s=!0)},o(m){H(o),s=!1},d(m){m&&V(e),d[i].d(),f.d(),t[24](null),l=!1,a()}}}function Hre(t,e,n){let i,o,r,s,{value:l}=e;const{l10nString:a}=yt(oi);De(t,a,(x=>n(11,r=x)));const{state:c,background2Dialog:d}=yt(Cn),{palette:u,previewThemeStore:p,readOnly:_,highlightMode:f,highlightGradientAngle:m}=c;De(t,u,(x=>n(26,s=x))),De(t,p,(x=>n(20,o=x))),De(t,_,(x=>n(10,i=x)));const g=_i();let v,y="",b="",w="",k="",A=null,j=100,T=!1,E="",O;function M(x){if(!(T||O===document.activeElement))if(n(8,E=""),x.type==="solid")if(n(3,y=""),or(x.color))n(6,k=yr(x.color)),n(1,A=s.find((ce=>ce.id===k))||null),A||n(8,E=r("missingPaletteColor").replace("%s",(()=>k)));else{n(6,k=""),n(1,A=null);const ce=x.color&&_r(x.color);ce?(n(5,w=String(Math.round(ce.a/255*100))),ce.a=255,n(4,b=ms(ce))):(n(4,b=""),n(5,w="")),n(7,j=100)}else x.type==="gradient"?(n(4,b=""),n(5,w=String(x.angle||0)),Array.isArray(x.colors)?n(3,y=`linear-gradient(${90-(x.angle||0)}deg, ${x.colors.map((ce=>{const ue=_r(ce);return ue?_a(ue):"transparent"})).join(", ")})`):n(3,y=""),n(7,j=360)):x.type==="image"&&(n(4,b=""),n(5,w=String(Math.round((x.alpha??1)*100))),n(3,y=`url("${x.image_url}")`),n(7,j=100))}function D(){if(l.type==="solid"){const x=_r(b);x&&(x.a=Math.round(Number(w)*255/100),T=!0,n(0,l.color=ms(x),l),g("change"))}else l.type==="gradient"?(T=!0,n(0,l.angle=Number(w),l),m.set(l.angle),g("change")):l.type==="image"&&(T=!0,n(0,l.alpha=Number(w)/100,l),g("change"))}function R(){l.type==="gradient"&&(f.set("gradient"),m.set(l.angle||0))}function J(){f.set("")}function B(){d().show({value:l,target:v,readOnly:i,callback(x){n(0,l=x),g("change")}})}gs((()=>{T&&(T=!1)})),Js((()=>{d().hide()}));function z(x){pt[x?"unshift":"push"]((()=>{O=x,n(9,O)}))}function q(){b=this.value,n(4,b)}function N(){w=Ui(this.value),n(5,w)}function Y(x){pt[x?"unshift":"push"]((()=>{v=x,n(2,v)}))}return t.$$set=x=>{"value"in x&&n(0,l=x.value)},t.$$.update=()=>{t.$$.dirty[0]&1&&M(l),t.$$.dirty[0]&1048579&&l.type==="solid"&&A&&o&&n(3,y=`linear-gradient(to bottom, ${A[o]}, ${A[o]})`)},[l,A,v,y,b,w,k,j,E,O,i,r,a,u,p,_,D,R,J,B,o,z,q,N,Y]}class Jre extends Gt{constructor(e){super(),Yt(this,e,Hre,Bre,Rt,{value:0},null,[-1,-1])}}function f0(t){let e,n;return e=new Zs({props:{cls:"background2__add",title:t[2]("add_background"),disabled:t[1],slim:!0}}),e.$on("click",t[6]),{c(){Pe(e.$$.fragment)},m(i,o){Ee(e,i,o),n=!0},p(i,o){const r={};o&4&&(r.title=i[2]("add_background")),o&2&&(r.disabled=i[1]),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Ae(e,i)}}}function Ure(t){let e,n,i,o,r,s;function l(d){t[8](d)}let a={itemView:Jre,readOnly:t[1]};t[0]!==void 0&&(a.values=t[0]),i=new $a({props:a}),pt.push((()=>Gn(i,"values",l))),i.$on("change",t[5]),i.$on("reorder",t[5]);let c=!t[1]&&f0(t);return{c(){e=S("div"),n=S("div"),Pe(i.$$.fragment),r=G(),c&&c.c(),h(n,"class","background2__list svelte-69jb95"),h(e,"class","background2")},m(d,u){F(d,e,u),$(e,n),Ee(i,n,null),$(e,r),c&&c.m(e,null),s=!0},p(d,[u]){const p={};u&2&&(p.readOnly=d[1]),!o&&u&1&&(o=!0,p.values=d[0],Xn((()=>o=!1))),i.$set(p),d[1]?c&&(Dt(),H(c,1,1,(()=>{c=null})),Vt()):c?(c.p(d,u),u&2&&I(c,1)):(c=f0(d),c.c(),I(c,1),c.m(e,null))},i(d){s||(I(i.$$.fragment,d),I(c),s=!0)},o(d){H(i.$$.fragment,d),H(c),s=!1},d(d){d&&V(e),Ae(i),c&&c.d()}}}function Wre(t,e,n){let i,o,{value:r}=e,{item:s}=e;const{l10nString:l}=yt(oi);De(t,l,(f=>n(2,o=f)));const{state:a}=yt(Cn),{readOnly:c}=a;De(t,c,(f=>n(1,i=f)));const d=_i();function u(){i||d("change",{item:s,value:r})}function p(){i||d("change",{item:s,value:[...r||[],{type:"solid",color:"#000"}]})}function _(f){r=f,n(0,r)}return t.$$set=f=>{"value"in f&&n(0,r=f.value),"item"in f&&n(7,s=f.item)},[r,i,o,l,c,u,p,s,_]}class Kre extends Gt{constructor(e){super(),Yt(this,e,Wre,Ure,Jc,{value:0,item:7})}}const Dc="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20fill='none'%3e%3cpath%20fill='%23fff'%20d='M9%2018.5h8v2H9zm0-7h8v2H9zM9%2022h14v2H9zm0-7h14v2H9zm0-7h14v2H9z'/%3e%3c/svg%3e",Vc="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20fill='none'%3e%3cpath%20d='M9%208v2h14V8H9zm0%203.5v2h8v-2H9zM9%2015v2h7v-2H9zm0%203.5v2h7v-2H9zM9%2022v2h7v-2H9z'%20style='fill:%23fff;fill-opacity:1'/%3e%3cpath%20d='M20%2014v12h7'%20style='fill:none;stroke:%23fff;stroke-width:3;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1'/%3e%3c/svg%3e",dl="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20fill='none'%3e%3cpath%20fill='%23fff'%20d='M12%2018.5h8v2h-8zm0-7h8v2h-8zM9%2022h14v2H9zm0-7h14v2H9zm0-7h14v2H9z'/%3e%3c/svg%3e",Lc="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20fill='none'%3e%3cpath%20fill='%23fff'%20d='M15%2018.5h8v2h-8zm0-7h8v2h-8zM9%2022h14v2H9zm0-7h14v2H9zm0-7h14v2H9z'/%3e%3c/svg%3e",Fc="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20fill='none'%3e%3cpath%20d='M20%2014v12h7'%20style='fill:none;stroke:%23fff;stroke-width:3;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1'/%3e%3cpath%20d='M9%208v2h14V8Zm4%207v2h3v-2zm2%203.5v2h1v-2zM9%2022v2h7v-2z'%20style='fill:%23fff;fill-opacity:1'/%3e%3c/svg%3e";function Yre(t){let e,n,i;function o(s){t[8](s)}let r={name:t[1].prop,theme:"tertiary",defaultValue:"left",disabled:t[2],options:t[4]?[{text:t[3]("props.align_start"),value:"start",icon:Vc},{text:t[3]("props.align_center"),value:"center",icon:dl},{text:t[3]("props.align_end"),value:"end",icon:Fc}]:[{text:t[3]("props.align_left"),value:"left",icon:Dc},{text:t[3]("props.align_center"),value:"center",icon:dl},{text:t[3]("props.align_right"),value:"right",icon:Lc}]};return t[0]!==void 0&&(r.value=t[0]),e=new Dl({props:r}),pt.push((()=>Gn(e,"value",o))),e.$on("change",t[7]),{c(){Pe(e.$$.fragment)},m(s,l){Ee(e,s,l),i=!0},p(s,[l]){const a={};l&2&&(a.name=s[1].prop),l&4&&(a.disabled=s[2]),l&8&&(a.options=s[4]?[{text:s[3]("props.align_start"),value:"start",icon:Vc},{text:s[3]("props.align_center"),value:"center",icon:dl},{text:s[3]("props.align_end"),value:"end",icon:Fc}]:[{text:s[3]("props.align_left"),value:"left",icon:Dc},{text:s[3]("props.align_center"),value:"center",icon:dl},{text:s[3]("props.align_right"),value:"right",icon:Lc}]),!n&&l&1&&(n=!0,a.value=s[0],Xn((()=>n=!1))),e.$set(a)},i(s){i||(I(e.$$.fragment,s),i=!0)},o(s){H(e.$$.fragment,s),i=!1},d(s){Ae(e,s)}}}function Gre(t,e,n){let i,o,{value:r}=e,{item:s}=e;const l=_i(),{state:a,directionSelector:c}=yt(Cn),{l10n:d}=yt(oi);De(t,d,(f=>n(3,o=f)));const{readOnly:u}=a;De(t,u,(f=>n(2,i=f)));function p(){l("change",{value:r,item:s})}function _(f){r=f,n(0,r)}return t.$$set=f=>{"value"in f&&n(0,r=f.value),"item"in f&&n(1,s=f.item)},[r,s,i,o,c,d,u,p,_]}class Xre extends Gt{constructor(e){super(),Yt(this,e,Gre,Yre,Rt,{value:0,item:1})}}function m0(t,e,n){const i=t.slice();return i[8]=e[n],i}function g0(t){let e,n,i,o,r,s,l,a,c=`url(${po(t[8].icon||(t[2]==="light"?t[8].iconLight:t[8].iconDark)||"")})`,d,u,p;function _(...f){return t[5](t[8],...f)}return{c(){e=S("div"),n=S("input"),r=G(),s=S("div"),l=G(),a=S("div"),d=G(),h(n,"class","checkbox-group__input svelte-194hox6"),h(n,"type","checkbox"),n.checked=i=t[8].value,h(n,"data-custom-tooltip",o=t[8].text),n.disabled=t[1],h(s,"class","checkbox-group__item-bg svelte-194hox6"),h(a,"class","checkbox-group__item-icon svelte-194hox6"),ne(a,"checkbox-group__item-icon_both-themes",!!t[8].icon),ke(a,"background-image",c),h(e,"class","checkbox-group__item svelte-194hox6")},m(f,m){F(f,e,m),$(e,n),$(e,r),$(e,s),$(e,l),$(e,a),$(e,d),u||(p=te(n,"change",_),u=!0)},p(f,m){t=f,m&1&&i!==(i=t[8].value)&&(n.checked=i),m&1&&o!==(o=t[8].text)&&h(n,"data-custom-tooltip",o),m&2&&(n.disabled=t[1]),m&1&&ne(a,"checkbox-group__item-icon_both-themes",!!t[8].icon),m&5&&c!==(c=`url(${po(t[8].icon||(t[2]==="light"?t[8].iconLight:t[8].iconDark)||"")})`)&&ke(a,"background-image",c)},d(f){f&&V(e),u=!1,p()}}}function Zre(t){let e,n=ln(t[0]),i=[];for(let o=0;o<n.length;o+=1)i[o]=g0(m0(t,n,o));return{c(){e=S("div");for(let o=0;o<i.length;o+=1)i[o].c();h(e,"class","checkbox-group svelte-194hox6"),ne(e,"checkbox-group_disabled",t[1])},m(o,r){F(o,e,r);for(let s=0;s<i.length;s+=1)i[s]&&i[s].m(e,null)},p(o,[r]){if(r&23){n=ln(o[0]);let s;for(s=0;s<n.length;s+=1){const l=m0(o,n,s);i[s]?i[s].p(l,r):(i[s]=g0(l),i[s].c(),i[s].m(e,null))}for(;s<i.length;s+=1)i[s].d(1);i.length=n.length}r&2&&ne(e,"checkbox-group_disabled",o[1])},i:tn,o:tn,d(o){o&&V(e),Bi(i,o)}}}function xre(t,e,n){let i,{list:o}=e,{disabled:r=!1}=e;const{state:s}=yt(Cn),{themeStore:l}=s;De(t,l,(u=>n(2,i=u)));const a=_i();function c(u,p){a("change",{name:u,value:p.target.checked})}const d=(u,p)=>c(u.name,p);return t.$$set=u=>{"list"in u&&n(0,o=u.list),"disabled"in u&&n(1,r=u.disabled)},[o,r,i,l,c,d]}class Qre extends Gt{constructor(e){super(),Yt(this,e,xre,Zre,Rt,{list:0,disabled:1})}}const h0="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20fill='none'%3e%3cpath%20fill='%23fff'%20d='M12.993%209H11v6.908c0%20.669.128%201.263.385%201.783.256.51.606.934%201.049%201.274.443.34.967.6%201.573.78A7.49%207.49%200%200%200%2016%2020v-1.5c-.897%200-1.474-.12-2.01-.545-.525-.424-.997-.909-.997-2.27V9Zm6.014%200H21v6.908c0%20.669-.128%201.263-.385%201.783a3.65%203.65%200%200%201-1.049%201.274c-.442.34-.967.6-1.573.78A7.49%207.49%200%200%201%2016%2020v-1.5c.897%200%201.474-.12%202.01-.545.525-.424.997-.909.997-2.27V9ZM11%2021.5h10V23H11z'/%3e%3c/svg%3e",v0="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20fill='none'%3e%3cpath%20fill='%23fff'%20d='M10%2015.5h12V17H10z'/%3e%3cpath%20fill='%23fff'%20fill-rule='evenodd'%20d='M18.614%2015.912c.248.164.467.36.66.588h-5.558a5.172%205.172%200%200%201-1.418-.694%203.524%203.524%200%200%201-.93-1.06c-.234-.436-.35-.983-.35-1.643%200-1.165.415-2.054%201.245-2.667.83-.624%202.024-.936%203.58-.936.455%200%20.859.03%201.21.088.35.047.666.112.947.195.28.07.52.153.72.247.21.082.391.165.543.247v1.89c-.842-.553-1.965-.83-3.368-.83-.983%200-1.69.147-2.123.441a1.347%201.347%200%200%200-.632%201.184c0%20.318.07.583.21.795.141.2.334.37.58.512.245.13.526.241.842.336.316.082.65.165%201%20.247a26%2026%200%200%201%201.491.406c.503.153.953.371%201.351.654ZM15.105%2022.5a9.083%209.083%200%200%201-1.456-.106%206.957%206.957%200%200%201-1.158-.283A5.15%205.15%200%200%201%2011%2021.317v-1.89c.175.14.403.288.684.441.293.142.614.271.965.389.363.117.749.218%201.158.3.41.07.83.106%201.263.106.842%200%201.515-.135%202.018-.406.503-.271.754-.719.754-1.343%200-.33-.064-.6-.193-.812a1.381%201.381%200%200%200-.068-.102h2.37c.033.217.049.451.049.702%200%20.73-.14%201.337-.421%201.82a3.243%203.243%200%200%201-1.088%201.166%204.744%204.744%200%200%201-1.561.635%209.227%209.227%200%200%201-1.825.177Z'%20clip-rule='evenodd'/%3e%3c/svg%3e";function ese(t){let e,n;return e=new Qre({props:{disabled:t[1],list:[{text:t[2]("props.underline"),name:"underline",value:t[0].underline==="single",icon:h0},{text:t[2]("props.strike"),name:"strike",value:t[0].strike==="single",icon:v0}]}}),e.$on("change",t[5]),{c(){Pe(e.$$.fragment)},m(i,o){Ee(e,i,o),n=!0},p(i,[o]){const r={};o&2&&(r.disabled=i[1]),o&5&&(r.list=[{text:i[2]("props.underline"),name:"underline",value:i[0].underline==="single",icon:h0},{text:i[2]("props.strike"),name:"strike",value:i[0].strike==="single",icon:v0}]),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Ae(e,i)}}}function tse(t,e,n){let i,o,{processedJson:r}=e,{item:s}=e;const l=_i(),{l10n:a}=yt(oi);De(t,a,(p=>n(2,o=p)));const{state:c}=yt(Cn),{readOnly:d}=c;De(t,d,(p=>n(1,i=p)));function u(p){l("change",{item:s,values:[{prop:p.detail.name,value:p.detail.value?"single":void 0}]})}return t.$$set=p=>{"processedJson"in p&&n(0,r=p.processedJson),"item"in p&&n(6,s=p.item)},[r,i,o,a,d,u,s]}class nse extends Gt{constructor(e){super(),Yt(this,e,tse,ese,Rt,{processedJson:0,item:6})}}function DV(t,e){const n={};if(!t)return{type:"url",url:""};if(t.typed)return{type:"typed:"+t.typed.type,typedParams:t.typed};const i=t==null?void 0:t.url;if(!i)return{type:"url",url:""};try{const o=new URL(i),r=new URLSearchParams(o.search);for(const s of r.keys())n[s]=r.get(s)}catch{return{type:"url",url:i}}for(let o=0;o<e.length;++o){const r=e[o];if(i.startsWith(r.baseUrl)){const s=[];if(r.args)for(const l of r.args)s.push({desc:l,value:n[l.name]||""});return{type:`custom:${o}`,desc:r,url:i,args:s}}}return{type:"url",url:i}}function ise(t){let e,n,i,o,r,s,l,a;return{c(){e=S("button"),n=S("div"),i=xe(t[1]),o=G(),r=S("div"),s=xe(t[2]),h(n,"class","actions2-item__type svelte-zd6kgx"),h(r,"class","actions2-item__text svelte-zd6kgx"),h(e,"class","actions2-item svelte-zd6kgx"),ne(e,"actions2-item_readonly",t[3])},m(c,d){F(c,e,d),$(e,n),$(n,i),$(e,o),$(e,r),$(r,s),t[10](e),l||(a=te(e,"click",t[8]),l=!0)},p(c,[d]){d&2&&at(i,c[1]),d&4&&at(s,c[2]),d&8&&ne(e,"actions2-item_readonly",c[3])},i:tn,o:tn,d(c){c&&V(e),t[10](null),l=!1,a()}}}function ose(t,e,n){let i,o,r,s,{value:l}=e;const{l10n:a,lang:c}=yt(oi);De(t,a,(k=>n(11,o=k))),De(t,c,(k=>n(12,r=k)));const{state:d,actions2Dialog:u}=yt(Cn),{customActions:p,readOnly:_}=d;De(t,p,(k=>n(13,s=k))),De(t,_,(k=>n(3,i=k)));const f=_i();let m,g="",v="";function y(k){var j,T,E,O,M,D,R,J;const A=DV(k,s);n(1,g=""),A.type==="url"?(n(1,g=o("actions-url")),n(2,v=A.url||"")):A.type.startsWith("typed:")?A.type==="typed:focus_element"?(n(1,g=o("actions.focus_element")),n(2,v=((j=A.typedParams)==null?void 0:j.element_id)||"")):A.type==="typed:clear_focus"?(n(1,g=o("actions.clear_focus")),n(2,v="")):A.type==="typed:set_variable"?(n(1,g=o("actions.set_variable")),n(2,v=((T=A.typedParams)==null?void 0:T.variable_name)||"")):A.type==="typed:array_insert_value"?(n(1,g=o("actions.array_insert_value")),n(2,v=((E=A.typedParams)==null?void 0:E.variable_name)||"")):A.type==="typed:array_remove_value"?(n(1,g=o("actions.array_remove_value")),n(2,v=((O=A.typedParams)==null?void 0:O.variable_name)||"")):A.type==="typed:dict_set_value"?(n(1,g=o("actions.dict_set_value")),n(2,v=((M=A.typedParams)==null?void 0:M.variable_name)||"")):A.type==="typed:array_set_value"?(n(1,g=o("actions.array_set_value")),n(2,v=((D=A.typedParams)==null?void 0:D.variable_name)||"")):A.type==="typed:copy_to_clipboard"?(n(1,g=o("actions.copy_to_clipboard")),n(2,v="")):A.type==="typed:show_tooltip"?(n(1,g=o("actions.show_tooltip")),n(2,v=((R=A.typedParams)==null?void 0:R.id)||"")):A.type==="typed:hide_tooltip"?(n(1,g=o("actions.hide_tooltip")),n(2,v=((J=A.typedParams)==null?void 0:J.id)||"")):(n(1,g=o("actions-unknown")),n(2,v=A.url||"")):A.desc?(n(1,g=A.desc.text[r]||A.desc.baseUrl),n(2,v="")):(n(1,g=o("actions-unknown")),n(2,v=A.url||""))}function b(){u().show({value:l,target:m,readOnly:i,callback(k){n(9,l=k),f("change")}})}Js((()=>{u().hide()}));function w(k){pt[k?"unshift":"push"]((()=>{m=k,n(0,m)}))}return t.$$set=k=>{"value"in k&&n(9,l=k.value)},t.$$.update=()=>{t.$$.dirty&512&&y(l)},[m,g,v,i,a,c,p,_,b,l,w]}class rse extends Gt{constructor(e){super(),Yt(this,e,ose,ise,Rt,{value:9})}}function b0(t){let e,n;return e=new Zs({props:{cls:"actions2__add",title:t[2]("add_background"),disabled:t[1],$$slots:{default:[sse]},$$scope:{ctx:t}}}),e.$on("click",t[6]),{c(){Pe(e.$$.fragment)},m(i,o){Ee(e,i,o),n=!0},p(i,o){const r={};o&4&&(r.title=i[2]("add_background")),o&2&&(r.disabled=i[1]),o&32772&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Ae(e,i)}}}function sse(t){let e=t[2]("add_action")+"",n;return{c(){n=xe(e)},m(i,o){F(i,n,o)},p(i,o){o&4&&e!==(e=i[2]("add_action")+"")&&at(n,e)},d(i){i&&V(n)}}}function lse(t){let e,n,i,o,r,s;function l(d){t[11](d)}let a={itemView:rse,readOnly:t[1]};t[0]!==void 0&&(a.values=t[0]),i=new $a({props:a}),pt.push((()=>Gn(i,"values",l))),i.$on("change",t[5]),i.$on("reorder",t[5]);let c=!t[1]&&b0(t);return{c(){e=S("div"),n=S("div"),Pe(i.$$.fragment),r=G(),c&&c.c(),h(n,"class","actions2__list svelte-1op9aiu"),h(e,"class","actions2")},m(d,u){F(d,e,u),$(e,n),Ee(i,n,null),$(e,r),c&&c.m(e,null),s=!0},p(d,[u]){const p={};u&2&&(p.readOnly=d[1]),!o&&u&1&&(o=!0,p.values=d[0],Xn((()=>o=!1))),i.$set(p),d[1]?c&&(Dt(),H(c,1,1,(()=>{c=null})),Vt()):c?(c.p(d,u),u&2&&I(c,1)):(c=b0(d),c.c(),I(c,1),c.m(e,null))},i(d){s||(I(i.$$.fragment,d),I(c),s=!0)},o(d){H(i.$$.fragment,d),H(c),s=!1},d(d){d&&V(e),Ae(i),c&&c.d()}}}function ase(t,e,n){let i,o,r,{value:s}=e,{item:l}=e,{processedJson:a=void 0}=e;const{l10nString:c}=yt(oi);De(t,c,(y=>n(2,r=y)));const{actionLogUrlVariable:d,state:u}=yt(Cn),{readOnly:p}=u;De(t,p,(y=>n(1,o=y)));const _=_i();let f=s||[];function m(){if(!o){n(7,s=f);const y=[{prop:l.prop||"actions",value:s}];l.aloneProp&&y.push({prop:l.aloneProp,value:void 0}),_("change",{item:l,values:y})}}function g(){if(!o){const y=[{prop:l.prop||"actions",value:[...f||[],{log_id:"action_id",url:"https://",log_url:d?`@{${d}}`:void 0}]}];l.aloneProp&&y.push({prop:l.aloneProp,value:void 0}),_("change",{item:l,values:y})}}function v(y){f=y,n(0,f),n(7,s),n(10,i),n(9,a),n(8,l)}return t.$$set=y=>{"value"in y&&n(7,s=y.value),"item"in y&&n(8,l=y.item),"processedJson"in y&&n(9,a=y.processedJson)},t.$$.update=()=>{t.$$.dirty&768&&n(10,i=a&&l.aloneProp?Lo(a,l.aloneProp):void 0),t.$$.dirty&1152&&n(0,f=s||i&&[i]||[])},[f,o,r,c,p,m,g,s,l,a,i,v]}class yu extends Gt{constructor(e){super(),Yt(this,e,ase,lse,Jc,{value:7,item:8,processedJson:9})}}function y0(t){let e,n=Ec(t[0])+"",i,o,r;return{c(){e=S("div"),i=xe(n),h(e,"class","video-sources-item__size-label svelte-gjg9ya"),h(e,"data-custom-tooltip",o=t[3]?t[6]("file.too_big"):void 0),_o((()=>t[11].call(e))),ne(e,"video-sources-item__size-label_error",t[3]==="error"),ne(e,"video-sources-item__size-label_warn",t[3]==="warn")},m(s,l){F(s,e,l),$(e,i),r=Tu(e,t[11].bind(e))},p(s,l){l&1&&n!==(n=Ec(s[0])+"")&&at(i,n),l&72&&o!==(o=s[3]?s[6]("file.too_big"):void 0)&&h(e,"data-custom-tooltip",o),l&8&&ne(e,"video-sources-item__size-label_error",s[3]==="error"),l&8&&ne(e,"video-sources-item__size-label_warn",s[3]==="warn")},d(s){s&&V(e),r()}}}function cse(t){let e,n,i,o,r=`${t[0]&&t[0]>0&&t[4]>0?t[4]:0}px`,s,l,a=t[0]&&t[0]>0&&y0(t);return{c(){e=S("button"),n=S("div"),i=xe(t[2]),o=G(),a&&a.c(),h(n,"class","video-sources-item__url svelte-gjg9ya"),ke(n,"--inline-size-width",r),h(e,"class","video-sources-item svelte-gjg9ya"),ne(e,"video-sources-item_readonly",t[5])},m(c,d){F(c,e,d),$(e,n),$(n,i),$(n,o),a&&a.m(n,null),t[12](e),s||(l=te(e,"click",t[9]),s=!0)},p(c,[d]){d&4&&at(i,c[2]),c[0]&&c[0]>0?a?a.p(c,d):(a=y0(c),a.c(),a.m(n,null)):a&&(a.d(1),a=null),d&17&&r!==(r=`${c[0]&&c[0]>0&&c[4]>0?c[4]:0}px`)&&ke(n,"--inline-size-width",r),d&32&&ne(e,"video-sources-item_readonly",c[5])},i:tn,o:tn,d(c){c&&V(e),a&&a.d(),t[12](null),s=!1,l()}}}function dse(t,e,n){let i,o,{value:r}=e;const{state:s,videoSource2Dialog:l,warnFileLimit:a,errorFileLimit:c,fileLimits:d}=yt(Cn),{l10nString:u}=yt(oi);De(t,u,(j=>n(6,o=j)));const{readOnly:p}=s;De(t,p,(j=>n(5,i=j)));const _=_i();let f,m="",g,v="",y=0;function b(j){n(2,m=j.url||"")}function w(){l().show({value:r,target:f,readOnly:i,callback(j){n(10,r=j),_("change")}})}Js((()=>{l().hide()}));function k(){y=this.offsetWidth,n(4,y)}function A(j){pt[j?"unshift":"push"]((()=>{f=j,n(1,f)}))}return t.$$set=j=>{"value"in j&&n(10,r=j.value)},t.$$.update=()=>{t.$$.dirty&1024&&b(r),t.$$.dirty&1024&&tp(String(r.url),"video").then((j=>{n(0,g=j)})),t.$$.dirty&1&&n(3,v=Ac(g,"video",a,c,d))},[g,f,m,v,y,i,o,u,p,w,r,k,A]}class use extends Gt{constructor(e){super(),Yt(this,e,dse,cse,Rt,{value:10})}}function pse(t){let e=t[2]("add_video")+"",n;return{c(){n=xe(e)},m(i,o){F(i,n,o)},p(i,o){o&4&&e!==(e=i[2]("add_video")+"")&&at(n,e)},d(i){i&&V(n)}}}function _se(t){let e,n,i,o,r,s,l;function a(d){t[8](d)}let c={itemView:use,readOnly:t[1]};return t[0]!==void 0&&(c.values=t[0]),i=new $a({props:c}),pt.push((()=>Gn(i,"values",a))),i.$on("change",t[5]),i.$on("reorder",t[5]),s=new Zs({props:{cls:"video-sources__add",disabled:t[1],$$slots:{default:[pse]},$$scope:{ctx:t}}}),s.$on("click",t[6]),{c(){e=S("div"),n=S("div"),Pe(i.$$.fragment),r=G(),Pe(s.$$.fragment),h(n,"class","video-sources__list svelte-6lvgw7"),h(e,"class","video-sources")},m(d,u){F(d,e,u),$(e,n),Ee(i,n,null),$(e,r),Ee(s,e,null),l=!0},p(d,[u]){const p={};u&2&&(p.readOnly=d[1]),!o&&u&1&&(o=!0,p.values=d[0],Xn((()=>o=!1))),i.$set(p);const _={};u&2&&(_.disabled=d[1]),u&2052&&(_.$$scope={dirty:u,ctx:d}),s.$set(_)},i(d){l||(I(i.$$.fragment,d),I(s.$$.fragment,d),l=!0)},o(d){H(i.$$.fragment,d),H(s.$$.fragment,d),l=!1},d(d){d&&V(e),Ae(i),Ae(s)}}}function fse(t,e,n){let i,o,{value:r}=e,{item:s}=e;const{l10n:l}=yt(oi);De(t,l,(f=>n(2,o=f)));const{state:a}=yt(Cn),{readOnly:c}=a;De(t,c,(f=>n(1,i=f)));const d=_i();function u(){i||d("change",{item:s,value:r})}function p(){i||d("change",{item:s,value:[...r||[],{type:"video_source",url:""}]})}function _(f){r=f,n(0,r)}return t.$$set=f=>{"value"in f&&n(0,r=f.value),"item"in f&&n(7,s=f.item)},[r,i,o,l,c,u,p,s,_]}class mse extends Gt{constructor(e){super(),Yt(this,e,fse,_se,Jc,{value:0,item:7})}}function gse(t){let e,n;return e=new MV({props:{value:t[0],item:t[1],processedJson:t[2],parentProcessedJson:t[3],options:t[4],required:t[1].required}}),e.$on("change",t[7]),{c(){Pe(e.$$.fragment)},m(i,o){Ee(e,i,o),n=!0},p(i,[o]){const r={};o&1&&(r.value=i[0]),o&2&&(r.item=i[1]),o&4&&(r.processedJson=i[2]),o&8&&(r.parentProcessedJson=i[3]),o&16&&(r.options=i[4]),o&2&&(r.required=i[1].required),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Ae(e,i)}}}function hse(t,e,n){let i,o,{value:r}=e,{item:s}=e,{processedJson:l=void 0}=e,{parentProcessedJson:a=void 0}=e;const{state:c}=yt(Cn),{customVariables:d}=c;De(t,d,(p=>n(6,o=p)));function u(p){mn.call(this,t,p)}return t.$$set=p=>{"value"in p&&n(0,r=p.value),"item"in p&&n(1,s=p.item),"processedJson"in p&&n(2,l=p.processedJson),"parentProcessedJson"in p&&n(3,a=p.parentProcessedJson)},t.$$.update=()=>{t.$$.dirty&64&&n(4,i=o.map((p=>({rawName:p.name,value:p.name}))))},[r,s,l,a,i,d,o,u]}class VV extends Gt{constructor(e){super(),Yt(this,e,hse,gse,Rt,{value:0,item:1,processedJson:2,parentProcessedJson:3})}}function vse(t){let e,n,i,o,r;return{c(){e=S("button"),n=S("div"),i=xe(t[1]),h(n,"class","select-options-item__text svelte-89z4y5"),h(e,"class","select-options-item svelte-89z4y5"),ne(e,"select-options-item_readonly",t[2])},m(s,l){F(s,e,l),$(e,n),$(n,i),t[6](e),o||(r=te(e,"click",t[4]),o=!0)},p(s,[l]){l&2&&at(i,s[1]),l&4&&ne(e,"select-options-item_readonly",s[2])},i:tn,o:tn,d(s){s&&V(e),t[6](null),o=!1,r()}}}function bse(t,e,n){let i,{value:o}=e;const{state:r,selectOptionsDialog:s}=yt(Cn),{readOnly:l}=r;De(t,l,(f=>n(2,i=f)));const a=_i();let c,d="";function u(f){n(1,d=f.text||f.value||"")}function p(){s().show({value:o,target:c,readOnly:i,callback(f){n(5,o=f),a("change")}})}Js((()=>{s().hide()}));function _(f){pt[f?"unshift":"push"]((()=>{c=f,n(0,c)}))}return t.$$set=f=>{"value"in f&&n(5,o=f.value)},t.$$.update=()=>{t.$$.dirty&32&&u(o)},[c,d,i,l,p,o,_]}class yse extends Gt{constructor(e){super(),Yt(this,e,bse,vse,Rt,{value:5})}}function wse(t){let e=t[2]("add_select_option")+"",n;return{c(){n=xe(e)},m(i,o){F(i,n,o)},p(i,o){o&4&&e!==(e=i[2]("add_select_option")+"")&&at(n,e)},d(i){i&&V(n)}}}function $se(t){let e,n,i,o,r,s,l;function a(d){t[8](d)}let c={itemView:yse,readOnly:t[1]};return t[0]!==void 0&&(c.values=t[0]),i=new $a({props:c}),pt.push((()=>Gn(i,"values",a))),i.$on("change",t[5]),i.$on("reorder",t[5]),s=new Zs({props:{cls:"select-options__add",disabled:t[1],$$slots:{default:[wse]},$$scope:{ctx:t}}}),s.$on("click",t[6]),{c(){e=S("div"),n=S("div"),Pe(i.$$.fragment),r=G(),Pe(s.$$.fragment),h(n,"class","select-options__list svelte-1eu52ra"),h(e,"class","select-options")},m(d,u){F(d,e,u),$(e,n),Ee(i,n,null),$(e,r),Ee(s,e,null),l=!0},p(d,[u]){const p={};u&2&&(p.readOnly=d[1]),!o&&u&1&&(o=!0,p.values=d[0],Xn((()=>o=!1))),i.$set(p);const _={};u&2&&(_.disabled=d[1]),u&2052&&(_.$$scope={dirty:u,ctx:d}),s.$set(_)},i(d){l||(I(i.$$.fragment,d),I(s.$$.fragment,d),l=!0)},o(d){H(i.$$.fragment,d),H(s.$$.fragment,d),l=!1},d(d){d&&V(e),Ae(i),Ae(s)}}}function kse(t,e,n){let i,o,{value:r}=e,{item:s}=e;const{l10n:l}=yt(oi);De(t,l,(f=>n(2,o=f)));const{state:a}=yt(Cn),{readOnly:c}=a;De(t,c,(f=>n(1,i=f)));const d=_i();function u(){i||d("change",{item:s,value:r})}function p(){i||d("change",{item:s,value:[...r||[],{value:""}]})}function _(f){r=f,n(0,r)}return t.$$set=f=>{"value"in f&&n(0,r=f.value),"item"in f&&n(7,s=f.item)},[r,i,o,l,c,u,p,s,_]}class jse extends Gt{constructor(e){super(),Yt(this,e,kse,$se,Jc,{value:0,item:7})}}function Sse(t){let e,n,i;function o(s){t[9](s)}let r={mix:"selct-font-family-prop",disabled:t[1],theme:"normal",size:"medium",items:[{value:"",text:""},...t[4].map(t[8])]};return t[0]!==void 0&&(r.value=t[0]),e=new Hr({props:r}),pt.push((()=>Gn(e,"value",o))),e.$on("change",t[6]),{c(){Pe(e.$$.fragment)},m(s,l){Ee(e,s,l),i=!0},p(s,[l]){const a={};l&2&&(a.disabled=s[1]),l&4&&(a.items=[{value:"",text:""},...s[4].map(s[8])]),!n&&l&1&&(n=!0,a.value=s[0],Xn((()=>n=!1))),e.$set(a)},i(s){i||(I(e.$$.fragment,s),i=!0)},o(s){H(e.$$.fragment,s),i=!1},d(s){Ae(e,s)}}}function Tse(t,e,n){let i,o,{value:r}=e,{item:s}=e;const{lang:l}=yt(oi);De(t,l,(m=>n(2,o=m)));const{state:a,customFontFaces:c}=yt(Cn),{readOnly:d}=a;De(t,d,(m=>n(1,i=m)));const u=_i();function p(){i||u("change",{item:s,value:r})}const _=m=>({value:m.value,text:m.text[o]});function f(m){r=m,n(0,r)}return t.$$set=m=>{"value"in m&&n(0,r=m.value),"item"in m&&n(7,s=m.item)},[r,i,o,l,c,d,p,s,_,f]}class Cse extends Gt{constructor(e){super(),Yt(this,e,Tse,Sse,Rt,{value:0,item:7})}}function zse(t){let e,n;return e=new Cse({props:{item:t[0],value:t[1]}}),e.$on("change",t[28]),{c(){Pe(e.$$.fragment)},m(i,o){Ee(e,i,o),n=!0},p(i,o){const r={};o&1&&(r.item=i[0]),o&2&&(r.value=i[1]),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Ae(e,i)}}}function Ese(t){let e,n;return e=new jse({props:{item:t[0],value:t[1]}}),e.$on("change",t[27]),{c(){Pe(e.$$.fragment)},m(i,o){Ee(e,i,o),n=!0},p(i,o){const r={};o&1&&(r.item=i[0]),o&2&&(r.value=i[1]),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Ae(e,i)}}}function Ase(t){let e,n;return e=new VV({props:{item:t[0],value:t[1],processedJson:t[3],parentProcessedJson:t[4]}}),e.$on("change",t[26]),{c(){Pe(e.$$.fragment)},m(i,o){Ee(e,i,o),n=!0},p(i,o){const r={};o&1&&(r.item=i[0]),o&2&&(r.value=i[1]),o&8&&(r.processedJson=i[3]),o&16&&(r.parentProcessedJson=i[4]),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Ae(e,i)}}}function Ose(t){let e,n;return e=new mse({props:{item:t[0],value:t[1]}}),e.$on("change",t[25]),{c(){Pe(e.$$.fragment)},m(i,o){Ee(e,i,o),n=!0},p(i,o){const r={};o&1&&(r.item=i[0]),o&2&&(r.value=i[1]),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Ae(e,i)}}}function Mse(t){let e,n;return e=new yu({props:{item:t[0],value:t[1],processedJson:t[3]}}),e.$on("change",t[24]),{c(){Pe(e.$$.fragment)},m(i,o){Ee(e,i,o),n=!0},p(i,o){const r={};o&1&&(r.item=i[0]),o&2&&(r.value=i[1]),o&8&&(r.processedJson=i[3]),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Ae(e,i)}}}function Pse(t){let e,n;return e=new nse({props:{item:t[0],processedJson:t[3]}}),e.$on("change",t[23]),{c(){Pe(e.$$.fragment)},m(i,o){Ee(e,i,o),n=!0},p(i,o){const r={};o&1&&(r.item=i[0]),o&8&&(r.processedJson=i[3]),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Ae(e,i)}}}function Ise(t){let e,n;return e=new Xre({props:{value:t[1],item:t[0]}}),e.$on("change",t[22]),{c(){Pe(e.$$.fragment)},m(i,o){Ee(e,i,o),n=!0},p(i,o){const r={};o&2&&(r.value=i[1]),o&1&&(r.item=i[0]),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Ae(e,i)}}}function Dse(t){let e,n;return e=new Ere({props:{item:t[0],processedJson:t[3]}}),e.$on("change",t[21]),{c(){Pe(e.$$.fragment)},m(i,o){Ee(e,i,o),n=!0},p(i,o){const r={};o&1&&(r.item=i[0]),o&8&&(r.processedJson=i[3]),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Ae(e,i)}}}function Vse(t){let e,n;return e=new Tre({props:{item:t[0],processedJson:t[3],parentEvalJson:t[5]}}),e.$on("change",t[20]),{c(){Pe(e.$$.fragment)},m(i,o){Ee(e,i,o),n=!0},p(i,o){const r={};o&1&&(r.item=i[0]),o&8&&(r.processedJson=i[3]),o&32&&(r.parentEvalJson=i[5]),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Ae(e,i)}}}function Lse(t){let e,n;return e=new _re({props:{item:t[0],id:t[2],value:t[1]===void 0?t[0].default:t[1]}}),e.$on("change",t[19]),{c(){Pe(e.$$.fragment)},m(i,o){Ee(e,i,o),n=!0},p(i,o){const r={};o&1&&(r.item=i[0]),o&4&&(r.id=i[2]),o&3&&(r.value=i[1]===void 0?i[0].default:i[1]),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Ae(e,i)}}}function Fse(t){let e,n;return e=new lre({props:{item:t[0],id:t[2],value:t[1]}}),e.$on("change",t[18]),{c(){Pe(e.$$.fragment)},m(i,o){Ee(e,i,o),n=!0},p(i,o){const r={};o&1&&(r.item=i[0]),o&4&&(r.id=i[2]),o&2&&(r.value=i[1]),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Ae(e,i)}}}function Nse(t){let e,n;return e=new Kre({props:{item:t[0],value:t[1]}}),e.$on("change",t[17]),{c(){Pe(e.$$.fragment)},m(i,o){Ee(e,i,o),n=!0},p(i,o){const r={};o&1&&(r.item=i[0]),o&2&&(r.value=i[1]),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Ae(e,i)}}}function qse(t){let e,n;return e=new _d({props:{item:t[0],id:t[2],value:t[1]===void 0?t[0].default:t[1],subtype:"percent",min:0,max:100}}),e.$on("change",t[16]),{c(){Pe(e.$$.fragment)},m(i,o){Ee(e,i,o),n=!0},p(i,o){const r={};o&1&&(r.item=i[0]),o&4&&(r.id=i[2]),o&3&&(r.value=i[1]===void 0?i[0].default:i[1]),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Ae(e,i)}}}function Rse(t){let e,n;return e=new _d({props:{item:t[0],id:t[2],value:t[1]===void 0?t[0].default:t[1],subtype:"integer",min:t[0].min,max:t[0].max,constraint:t[0].constraint,inlineLabel:t[0].inlineLabel}}),e.$on("change",t[15]),{c(){Pe(e.$$.fragment)},m(i,o){Ee(e,i,o),n=!0},p(i,o){const r={};o&1&&(r.item=i[0]),o&4&&(r.id=i[2]),o&3&&(r.value=i[1]===void 0?i[0].default:i[1]),o&1&&(r.min=i[0].min),o&1&&(r.max=i[0].max),o&1&&(r.constraint=i[0].constraint),o&1&&(r.inlineLabel=i[0].inlineLabel),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Ae(e,i)}}}function Bse(t){let e,n;return e=new _d({props:{item:t[0],id:t[2],value:t[1]===void 0?t[0].default:t[1],subtype:"number",constraint:t[0].constraint}}),e.$on("change",t[14]),{c(){Pe(e.$$.fragment)},m(i,o){Ee(e,i,o),n=!0},p(i,o){const r={};o&1&&(r.item=i[0]),o&4&&(r.id=i[2]),o&3&&(r.value=i[1]===void 0?i[0].default:i[1]),o&1&&(r.constraint=i[0].constraint),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Ae(e,i)}}}function Hse(t){let e,n;return e=new xoe({props:{item:t[0],value:t[1],processedJson:t[3]}}),e.$on("change",t[12]),e.$on("showMore",t[13]),{c(){Pe(e.$$.fragment)},m(i,o){Ee(e,i,o),n=!0},p(i,o){const r={};o&1&&(r.item=i[0]),o&2&&(r.value=i[1]),o&8&&(r.processedJson=i[3]),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Ae(e,i)}}}function Jse(t){let e,n;return e=new MV({props:{item:t[0],value:t[1]===void 0?t[0].default:t[1],processedJson:t[3],parentProcessedJson:t[4],hasEmpty:!t[0].default,options:t[0].options}}),e.$on("change",t[11]),{c(){Pe(e.$$.fragment)},m(i,o){Ee(e,i,o),n=!0},p(i,o){const r={};o&1&&(r.item=i[0]),o&3&&(r.value=i[1]===void 0?i[0].default:i[1]),o&8&&(r.processedJson=i[3]),o&16&&(r.parentProcessedJson=i[4]),o&1&&(r.hasEmpty=!i[0].default),o&1&&(r.options=i[0].options),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Ae(e,i)}}}function Use(t){let e,n;return e=new Moe({props:{item:t[0],value:t[1]}}),e.$on("change",t[9]),e.$on("showMore",t[10]),{c(){Pe(e.$$.fragment)},m(i,o){Ee(e,i,o),n=!0},p(i,o){const r={};o&1&&(r.item=i[0]),o&2&&(r.value=i[1]),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Ae(e,i)}}}function Wse(t){let e,n;return e=new Goe({props:{item:t[0],value:t[1]===void 0?t[0].default:t[1],processedJson:t[3],parentProcessedJson:t[4],options:t[0].options}}),e.$on("change",t[8]),{c(){Pe(e.$$.fragment)},m(i,o){Ee(e,i,o),n=!0},p(i,o){const r={};o&1&&(r.item=i[0]),o&3&&(r.value=i[1]===void 0?i[0].default:i[1]),o&8&&(r.processedJson=i[3]),o&16&&(r.parentProcessedJson=i[4]),o&1&&(r.options=i[0].options),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Ae(e,i)}}}function Kse(t){let e,n;return e=new Woe({props:{id:t[2],item:t[0],value:t[1]||"",tankerToggled:t[6]}}),e.$on("change",t[7]),{c(){Pe(e.$$.fragment)},m(i,o){Ee(e,i,o),n=!0},p(i,o){const r={};o&4&&(r.id=i[2]),o&1&&(r.item=i[0]),o&2&&(r.value=i[1]||""),o&64&&(r.tankerToggled=i[6]),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Ae(e,i)}}}function Yse(t){let e,n,i,o;const r=[Kse,Wse,Use,Jse,Hse,Bse,Rse,qse,Nse,Fse,Lse,Vse,Dse,Ise,Pse,Mse,Ose,Ase,Ese,zse],s=[];function l(a,c){return a[0].type==="string"?0:a[0].type==="radio"?1:a[0].type==="color"?2:a[0].type==="select"?3:a[0].type==="file"?4:a[0].type==="number"?5:a[0].type==="integer"?6:a[0].type==="percent"?7:a[0].type==="background2"?8:a[0].type==="boolean"?9:a[0].type==="rotation"?10:a[0].type==="alignment"?11:a[0].type==="margins-paddings"?12:a[0].type==="text-align"?13:a[0].type==="text-styles"?14:a[0].type==="actions2"?15:a[0].type==="video_sources"?16:a[0].type==="variable-name"?17:a[0].type==="select-options"?18:a[0].type==="select-font-family"?19:-1}return~(e=l(t))&&(n=s[e]=r[e](t)),{c(){n&&n.c(),i=Vn()},m(a,c){~e&&s[e].m(a,c),F(a,i,c),o=!0},p(a,[c]){let d=e;e=l(a),e===d?~e&&s[e].p(a,c):(n&&(Dt(),H(s[d],1,1,(()=>{s[d]=null})),Vt()),~e?(n=s[e],n?n.p(a,c):(n=s[e]=r[e](a),n.c()),I(n,1),n.m(i.parentNode,i)):n=null)},i(a){o||(I(n),o=!0)},o(a){H(n),o=!1},d(a){a&&V(i),~e&&s[e].d(a)}}}function Gse(t,e,n){let{item:i}=e,{value:o}=e,{id:r=void 0}=e,{processedJson:s}=e,{parentProcessedJson:l}=e,{parentEvalJson:a}=e,{tankerToggled:c=!1}=e;function d(z){mn.call(this,t,z)}function u(z){mn.call(this,t,z)}function p(z){mn.call(this,t,z)}function _(z){mn.call(this,t,z)}function f(z){mn.call(this,t,z)}function m(z){mn.call(this,t,z)}function g(z){mn.call(this,t,z)}function v(z){mn.call(this,t,z)}function y(z){mn.call(this,t,z)}function b(z){mn.call(this,t,z)}function w(z){mn.call(this,t,z)}function k(z){mn.call(this,t,z)}function A(z){mn.call(this,t,z)}function j(z){mn.call(this,t,z)}function T(z){mn.call(this,t,z)}function E(z){mn.call(this,t,z)}function O(z){mn.call(this,t,z)}function M(z){mn.call(this,t,z)}function D(z){mn.call(this,t,z)}function R(z){mn.call(this,t,z)}function J(z){mn.call(this,t,z)}function B(z){mn.call(this,t,z)}return t.$$set=z=>{"item"in z&&n(0,i=z.item),"value"in z&&n(1,o=z.value),"id"in z&&n(2,r=z.id),"processedJson"in z&&n(3,s=z.processedJson),"parentProcessedJson"in z&&n(4,l=z.parentProcessedJson),"parentEvalJson"in z&&n(5,a=z.parentEvalJson),"tankerToggled"in z&&n(6,c=z.tankerToggled)},[i,o,r,s,l,a,c,d,u,p,_,f,m,g,v,y,b,w,k,A,j,T,E,O,M,D,R,J,B]}class wu extends Gt{constructor(e){super(),Yt(this,e,Gse,Yse,Rt,{item:0,value:1,id:2,processedJson:3,parentProcessedJson:4,parentEvalJson:5,tankerToggled:6})}}function Xse(t){let e,n,i,o,r,s,l,a;return{c(){e=S("div"),n=S("input"),i=G(),o=S("div"),r=G(),s=S("div"),h(n,"class","switcher__input svelte-g40qqc"),h(n,"type","checkbox"),n.disabled=t[1],h(o,"class","switcher__bg svelte-g40qqc"),h(s,"class","switcher__tumbler svelte-g40qqc"),h(e,"class","switcher svelte-g40qqc"),ne(e,"switcher_disabled",t[1])},m(c,d){F(c,e,d),$(e,n),n.checked=t[0],$(e,i),$(e,o),$(e,r),$(e,s),l||(a=[te(n,"change",t[3]),te(n,"change",t[2])],l=!0)},p(c,[d]){d&2&&(n.disabled=c[1]),d&1&&(n.checked=c[0]),d&2&&ne(e,"switcher_disabled",c[1])},i:tn,o:tn,d(c){c&&V(e),l=!1,Rn(a)}}}function Zse(t,e,n){let{checked:i}=e,{disabled:o=!1}=e;function r(l){mn.call(this,t,l)}function s(){i=this.checked,n(0,i)}return t.$$set=l=>{"checked"in l&&n(0,i=l.checked),"disabled"in l&&n(1,o=l.disabled)},[i,o,r,s]}class LV extends Gt{constructor(e){super(),Yt(this,e,Zse,Xse,Rt,{checked:0,disabled:1})}}function w0(t){return t.replace(/\\/g,"\\\\").replace(/'/g,"\\")}const xse='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="none"><path fill="currentColor" d="M16.286 4.857A.857.857 0 0 0 15.429 4h-2.572a.857.857 0 0 0 0 1.714h1.714v2.572c0 .227.09.445.252.606l.566.566c.24.22.454.328.642.381.201.057.566.1.566.1v.118s-.415.04-.566.09l-.022.008c-.13.043-.313.103-.553.32l-.633.633a.857.857 0 0 0-.252.606v2.572h-1.714a.857.857 0 0 0 0 1.714h2.572a.857.857 0 0 0 .857-.857v-3.074l1.463-1.463a.857.857 0 0 0 0-1.212L16.286 7.93V4.857Zm-12.572 0c0-.473.384-.857.857-.857h2.572a.857.857 0 0 1 0 1.714H5.429v2.572c0 .227-.09.445-.251.606l-.52.52c-.261.25-.493.37-.693.427-.201.057-.566.1-.566.1v.118s.415.04.566.09l.022.008c.15.05.371.122.67.434l.52.52c.161.16.252.378.252.605v2.572h1.714a.857.857 0 0 1 0 1.714H4.57a.857.857 0 0 1-.857-.857v-3.074L2.25 10.606a.857.857 0 0 1 0-1.212L3.714 7.93V4.857Z" class="source-icon"/></svg>';function Qse(t){let e,n,i,o;return{c(){e=S("button"),n=xe(t[0]),h(e,"class","expression-value svelte-oskmb8"),e.disabled=t[1],ne(e,"expression-value_disabled",t[1])},m(r,s){F(r,e,s),$(e,n),i||(o=te(e,"click",t[3]),i=!0)},p(r,[s]){s&1&&at(n,r[0]),s&2&&(e.disabled=r[1]),s&2&&ne(e,"expression-value_disabled",r[1])},i:tn,o:tn,d(r){r&&V(e),i=!1,o()}}}function ele(t,e,n){let i,{evalValue:o}=e;const{state:r}=yt(Cn),{readOnly:s}=r;De(t,s,(a=>n(1,i=a)));function l(a){mn.call(this,t,a)}return t.$$set=a=>{"evalValue"in a&&n(0,o=a.evalValue)},[o,i,s,l]}class tle extends Gt{constructor(e){super(),Yt(this,e,ele,Qse,Rt,{evalValue:0})}}function $0(t){let e,n,i,o,r,s,l;function a(m,g){if("rawName"in m[1])return ile;if(m[1].name)return nle}let c=a(t),d=c&&c(t),u=t[8]&&k0(t);const p=[rle,ole],_=[];function f(m,g){return m[22]&&m[1].enablePerTheme?0:"enableTanker"in m[1]&&m[1].enableTanker&&m[21].length?1:-1}return~(r=f(t))&&(s=_[r]=p[r](t)),{c(){e=S("div"),n=S("div"),d&&d.c(),i=G(),u&&u.c(),o=G(),s&&s.c(),h(n,"class","unknown-prop__label svelte-hswn6k"),h(e,"class","unknown-prop__name svelte-hswn6k")},m(m,g){F(m,e,g),$(e,n),d&&d.m(n,null),$(n,i),u&&u.m(n,null),$(e,o),~r&&_[r].m(e,null),l=!0},p(m,g){c===(c=a(m))&&d?d.p(m,g):(d&&d.d(1),d=c&&c(m),d&&(d.c(),d.m(n,i))),m[8]?u?u.p(m,g):(u=k0(m),u.c(),u.m(n,null)):u&&(u.d(1),u=null);let v=r;r=f(m),r===v?~r&&_[r].p(m,g):(s&&(Dt(),H(_[v],1,1,(()=>{_[v]=null})),Vt()),~r?(s=_[r],s?s.p(m,g):(s=_[r]=p[r](m),s.c()),I(s,1),s.m(e,null)):s=null)},i(m){l||(I(s),l=!0)},o(m){H(s),l=!1},d(m){m&&V(e),d&&d.d(),u&&u.d(),~r&&_[r].d()}}}function nle(t){let e=t[17](t[1].name)+"",n;return{c(){n=xe(e)},m(i,o){F(i,n,o)},p(i,o){o[0]&131074&&e!==(e=i[17](i[1].name)+"")&&at(n,e)},d(i){i&&V(n)}}}function ile(t){let e=t[1].rawName+"",n;return{c(){n=xe(e)},m(i,o){F(i,n,o)},p(i,o){o[0]&2&&e!==(e=i[1].rawName+"")&&at(n,e)},d(i){i&&V(n)}}}function k0(t){let e,n,i;return{c(){e=S("button"),h(e,"class","unknown-prop__source svelte-hswn6k"),ne(e,"unknown-prop__source_toggle",t[9])},m(o,r){F(o,e,r),e.innerHTML=xse,t[30](e),n||(i=te(e,"click",t[29]),n=!0)},p(o,r){r[0]&512&&ne(e,"unknown-prop__source_toggle",o[9])},d(o){o&&V(e),t[30](null),n=!1,i()}}}function ole(t){let e=t[1].type==="string"&&t[1].enableTanker?"label":"div",n,i=(t[1].type==="string"&&t[1].enableTanker?"label":"div")&&qd(t);return{c(){i&&i.c(),n=Vn()},m(o,r){i&&i.m(o,r),F(o,n,r)},p(o,r){o[1].type==="string"&&o[1].enableTanker,e?Rt(e,o[1].type==="string"&&o[1].enableTanker?"label":"div")?(i.d(1),i=qd(o),e=o[1].type==="string"&&o[1].enableTanker?"label":"div",i.c(),i.m(n.parentNode,n)):i.p(o,r):(i=qd(o),e=o[1].type==="string"&&o[1].enableTanker?"label":"div",i.c(),i.m(n.parentNode,n))},i:tn,o(o){H(i,o)},d(o){o&&V(n),i&&i.d(o)}}}function rle(t){let e,n=t[17]("perThemeProps")+"",i,o,r,s,l;function a(d){t[31](d)}let c={disabled:t[16]};return t[7]!==void 0&&(c.checked=t[7]),r=new LV({props:c}),pt.push((()=>Gn(r,"checked",a))),r.$on("change",t[26]),{c(){e=S("label"),i=xe(n),o=G(),Pe(r.$$.fragment),h(e,"class","unknown-prop__tanker svelte-hswn6k")},m(d,u){F(d,e,u),$(e,i),$(e,o),Ee(r,e,null),l=!0},p(d,u){(!l||u[0]&131072)&&n!==(n=d[17]("perThemeProps")+"")&&at(i,n);const p={};u[0]&65536&&(p.disabled=d[16]),!s&&u[0]&128&&(s=!0,p.checked=d[7],Xn((()=>s=!1))),r.$set(p)},i(d){l||(I(r.$$.fragment,d),l=!0)},o(d){H(r.$$.fragment,d),l=!1},d(d){d&&V(e),Ae(r)}}}function qd(t){let e,n=t[17]("tankerTitle")+"",i,o,r,s,l;function a(d){t[32](d)}let c={disabled:t[16]};return t[6]!==void 0&&(c.checked=t[6]),r=new LV({props:c}),pt.push((()=>Gn(r,"checked",a))),r.$on("change",t[28]),{c(){e=S(t[1].type==="string"&&t[1].enableTanker?"label":"div"),i=xe(n),o=G(),Pe(r.$$.fragment),uc(t[1].type==="string"&&t[1].enableTanker?"label":"div")(e,{class:"unknown-prop__tanker svelte-hswn6k"})},m(d,u){F(d,e,u),$(e,i),$(e,o),Ee(r,e,null),l=!0},p(d,u){(!l||u[0]&131072)&&n!==(n=d[17]("tankerTitle")+"")&&at(i,n);const p={};u[0]&65536&&(p.disabled=d[16]),!s&&u[0]&64&&(s=!0,p.checked=d[6],Xn((()=>s=!1))),r.$set(p)},i(d){l||(I(r.$$.fragment,d),l=!0)},o(d){H(r.$$.fragment,d),l=!1},d(d){d&&V(e),Ae(r)}}}function sle(t){let e,n;return e=new wu({props:{item:t[1],value:t[0],processedJson:t[3],parentProcessedJson:t[4],parentEvalJson:t[5],tankerToggled:t[6]}}),e.$on("change",t[35]),{c(){Pe(e.$$.fragment)},m(i,o){Ee(e,i,o),n=!0},p(i,o){const r={};o[0]&2&&(r.item=i[1]),o[0]&1&&(r.value=i[0]),o[0]&8&&(r.processedJson=i[3]),o[0]&16&&(r.parentProcessedJson=i[4]),o[0]&32&&(r.parentEvalJson=i[5]),o[0]&64&&(r.tankerToggled=i[6]),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Ae(e,i)}}}function lle(t){let e,n;return e=new tle({props:{evalValue:t[2]}}),e.$on("click",t[29]),{c(){Pe(e.$$.fragment)},m(i,o){Ee(e,i,o),n=!0},p(i,o){const r={};o[0]&4&&(r.evalValue=i[2]),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Ae(e,i)}}}function ale(t){let e,n,i,o,r=`url(${po(Fs)})`,s,l,a,c,d,u,p,_=`url(${po(Ns)})`,f,m,g;return l=new wu({props:{item:t[1],value:t[10],processedJson:t[3],parentProcessedJson:t[4],parentEvalJson:t[5],tankerToggled:t[6]}}),l.$on("change",t[33]),m=new wu({props:{item:t[1],value:t[11],processedJson:t[3],parentProcessedJson:t[4],parentEvalJson:t[5],tankerToggled:t[6]}}),m.$on("change",t[34]),{c(){e=S("div"),n=S("div"),s=G(),Pe(l.$$.fragment),a=G(),c=S("div"),d=S("div"),f=G(),Pe(m.$$.fragment),h(n,"class","unknown-prop__theme-image svelte-hswn6k"),h(n,"title",i=t[18]("lightTheme")),h(n,"aria-label",o=t[18]("lightTheme")),h(n,"role","img"),ke(n,"background-image",r),h(e,"class","unknown-prop__theme-row svelte-hswn6k"),h(d,"class","unknown-prop__theme-image svelte-hswn6k"),h(d,"title",u=t[18]("darkTheme")),h(d,"aria-label",p=t[18]("darkTheme")),h(d,"role","img"),ke(d,"background-image",_),h(c,"class","unknown-prop__theme-row svelte-hswn6k")},m(v,y){F(v,e,y),$(e,n),$(e,s),Ee(l,e,null),F(v,a,y),F(v,c,y),$(c,d),$(c,f),Ee(m,c,null),g=!0},p(v,y){(!g||y[0]&262144&&i!==(i=v[18]("lightTheme")))&&h(n,"title",i),(!g||y[0]&262144&&o!==(o=v[18]("lightTheme")))&&h(n,"aria-label",o);const b={};y[0]&2&&(b.item=v[1]),y[0]&1024&&(b.value=v[10]),y[0]&8&&(b.processedJson=v[3]),y[0]&16&&(b.parentProcessedJson=v[4]),y[0]&32&&(b.parentEvalJson=v[5]),y[0]&64&&(b.tankerToggled=v[6]),l.$set(b),(!g||y[0]&262144&&u!==(u=v[18]("darkTheme")))&&h(d,"title",u),(!g||y[0]&262144&&p!==(p=v[18]("darkTheme")))&&h(d,"aria-label",p);const w={};y[0]&2&&(w.item=v[1]),y[0]&2048&&(w.value=v[11]),y[0]&8&&(w.processedJson=v[3]),y[0]&16&&(w.parentProcessedJson=v[4]),y[0]&32&&(w.parentEvalJson=v[5]),y[0]&64&&(w.tankerToggled=v[6]),m.$set(w)},i(v){g||(I(l.$$.fragment,v),I(m.$$.fragment,v),g=!0)},o(v){H(l.$$.fragment,v),H(m.$$.fragment,v),g=!1},d(v){v&&(V(e),V(a),V(c)),Ae(l),Ae(m)}}}function Rd(t){let e,n,i,o,r,s=("name"in t[1]&&t[1].name||"rawName"in t[1]&&t[1].rawName)&&$0(t);const l=[ale,lle,sle],a=[];function c(d,u){return d[7]?0:d[13]&&d[9]&&!d[15]?1:2}return i=c(t),o=a[i]=l[i](t),{c(){e=S(t[14]?"label":"div"),s&&s.c(),n=G(),o.c(),uc(t[14]?"label":"div")(e,{class:"unknown-prop svelte-hswn6k"})},m(d,u){F(d,e,u),s&&s.m(e,null),$(e,n),a[i].m(e,null),r=!0},p(d,u){"name"in d[1]&&d[1].name||"rawName"in d[1]&&d[1].rawName?s?(s.p(d,u),u[0]&2&&I(s,1)):(s=$0(d),s.c(),I(s,1),s.m(e,n)):s&&(Dt(),H(s,1,1,(()=>{s=null})),Vt());let p=i;i=c(d),i===p?a[i].p(d,u):(Dt(),H(a[p],1,1,(()=>{a[p]=null})),Vt(),o=a[i],o?o.p(d,u):(o=a[i]=l[i](d),o.c()),I(o,1),o.m(e,null))},i(d){r||(I(s),I(o),r=!0)},o(d){H(s),H(o),r=!1},d(d){d&&V(e),s&&s.d(),a[i].d()}}}function cle(t){let e=t[14]?"label":"div",n,i=(t[14]?"label":"div")&&Rd(t);return{c(){i&&i.c(),n=Vn()},m(o,r){i&&i.m(o,r),F(o,n,r)},p(o,r){o[14],e?Rt(e,o[14]?"label":"div")?(i.d(1),i=Rd(o),e=o[14]?"label":"div",i.c(),i.m(n.parentNode,n)):i.p(o,r):(i=Rd(o),e=o[14]?"label":"div",i.c(),i.m(n.parentNode,n))},i:tn,o(o){H(i,o)},d(o){o&&V(n),i&&i.d(o)}}}const j0=/@\{theme\s*==\s*'dark'\s*\?\s*'(.*)'\s*:\s*'(.*)'}/;function dle(t,e,n){let i,o,r,s,l,a,c,d,u,p,_,f,{item:m}=e,{value:g}=e,{evalValue:v=void 0}=e,{processedJson:y=void 0}=e,{parentProcessedJson:b=void 0}=e,{parentEvalJson:w=void 0}=e;const k=_i(),{l10n:A,l10nString:j}=yt(oi);De(t,A,(ge=>n(17,_=ge))),De(t,j,(ge=>n(18,f=ge)));const{cardLocales:T,state:E,perThemeProps:O,expression2Dialog:M}=yt(Cn),{tanker:D,locale:R,readOnly:J}=E;De(t,D,(ge=>n(37,p=ge))),De(t,R,(ge=>n(36,u=ge))),De(t,J,(ge=>n(16,d=ge)));let B="",z="",q;function N(){n(0,g=`@{theme == 'dark' ? '${w0(String(z))}' : '${w0(String(B))}'}`),k("change",{value:g,item:m})}function Y(){o?(n(10,B=n(11,z=g||"")),N()):(n(0,g=B),k("change",{value:g,item:m}))}function x(ge,it){if(!("value"in ge.detail))return;const ye=ge.detail.value;it==="light"?n(10,B=ye):n(11,z=ye),N()}function ce(){if(i)k("change",{values:[{prop:"text",value:`@{${Ic("")}}`},{prop:"ranges",value:void 0},{prop:"images",value:void 0}],item:m});else{const ge=typeof g=="string"?E.getTankerKey(g):"",it=ge&&p[ge]||void 0,ye=(it==null?void 0:it[u])||"text";k("change",{value:ye,item:m})}}function ue(){M().show({target:q,value:typeof g=="string"?g:typeof g=="number"?String(g):"",disabled:d,callback(ge){k("change",{value:ge,item:m})}})}function Z(ge){pt[ge?"unshift":"push"]((()=>{q=ge,n(12,q)}))}function Q(ge){o=ge,n(7,o),n(0,g)}function se(ge){i=ge,n(6,i),n(0,g)}const _e=ge=>x(ge,"light"),Oe=ge=>x(ge,"dark");function W(ge){mn.call(this,t,ge)}return t.$$set=ge=>{"item"in ge&&n(1,m=ge.item),"value"in ge&&n(0,g=ge.value),"evalValue"in ge&&n(2,v=ge.evalValue),"processedJson"in ge&&n(3,y=ge.processedJson),"parentProcessedJson"in ge&&n(4,b=ge.parentProcessedJson),"parentEvalJson"in ge&&n(5,w=ge.parentEvalJson)},t.$$.update=()=>{if(t.$$.dirty[0]&1&&n(6,i=typeof g=="string"&&g.startsWith("@{tanker_")),t.$$.dirty[0]&1&&n(7,o=typeof g=="string"&&j0.test(g)),t.$$.dirty[0]&69&&n(9,r=!i&&g!==v&&typeof g!="object"),t.$$.dirty[0]&67&&n(15,s=!i&&m.type==="color"&&or(String(g))),t.$$.dirty[0]&578&&n(8,l=!i&&("enableSources"in m&&m.enableSources||r)),t.$$.dirty[0]&129&&g!==void 0&&o){const ge=j0.exec(String(g));ge&&(n(10,B=ge[2]),n(11,z=ge[1]))}t.$$.dirty[0]&258&&n(14,a=!l&&!(m.type==="text-styles"||m.type==="text-align"||m.type==="radio"||m.type==="background2"||m.type==="actions2"||m.type==="string"&&m.enableTanker||m.type==="video_sources"||m.type==="alignment"||m.type==="margins-paddings"||m.type==="select-options")),t.$$.dirty[0]&2&&n(13,c="name"in m&&m.name||"rawName"in m&&m.rawName)},[g,m,v,y,b,w,i,o,l,r,B,z,q,c,a,s,d,_,f,A,j,T,O,D,R,J,Y,x,ce,ue,Z,Q,se,_e,Oe,W]}class sp extends Gt{constructor(e){super(),Yt(this,e,dle,cle,Rt,{item:1,value:0,evalValue:2,processedJson:3,parentProcessedJson:4,parentEvalJson:5},null,[-1,-1])}}function S0(t,e,n){const i=t.slice();return i[17]=e[n],i}function T0(t,e,n){const i=t.slice();return i[23]=e[n],i}function Bd(t){var o,r;const e=t.slice(),n="sizeValue"in e[23]&&e[23].sizeValue?Vs((o=e[5])==null?void 0:o[e[23].sizeValue]):"prop"in e[23]&&e[23].prop&&Lo(e[1],e[23].prop,e[23].default);e[20]=n;const i="sizeValue"in e[23]&&e[23].sizeValue?Vs((r=e[5])==null?void 0:r[e[23].sizeValue]):"prop"in e[23]&&e[23].prop&&Lo(e[4],e[23].prop,e[23].default);return e[21]=i,e}function ule(t){const e=t.slice(),n=e[17].prop&&Lo(e[1],e[17].prop,e[17].default);e[20]=n;const i=e[17].prop&&Lo(e[4],e[17].prop,e[17].default);e[21]=i;const o=e[17].enabled===!1?!1:!e[17].enabled||Nr(e[1],e[2],e[17].enabled,e[9]);return e[22]=o,e}function ple(t){let e=!("show"in t[17]&&t[17].show)||Nr(t[1],t[2],t[17].show,t[9]),n,i,o=e&&C0(t);return{c(){o&&o.c(),n=Vn()},m(r,s){o&&o.m(r,s),F(r,n,s),i=!0},p(r,s){s&7&&(e=!("show"in r[17]&&r[17].show)||Nr(r[1],r[2],r[17].show,r[9])),e?o?(o.p(r,s),s&7&&I(o,1)):(o=C0(r),o.c(),I(o,1),o.m(n.parentNode,n)):o&&(Dt(),H(o,1,1,(()=>{o=null})),Vt())},i(r){i||(I(o),i=!0)},o(r){H(o),i=!1},d(r){r&&V(n),o&&o.d(r)}}}function _le(t){let e,n,i,o,r,s,l,a,c;return o=new Nc({props:{propsList:[t[17].list[0]],processedJson:t[1],parentProcessedJson:t[2],parentEvalJson:t[3],evalJson:t[4],selectedElemProps:t[5],hasMargins:!1}}),o.$on("change",t[11]),l=new Nc({props:{propsList:[t[17].list[1]],processedJson:t[1],parentProcessedJson:t[2],parentEvalJson:t[3],evalJson:t[4],selectedElemProps:t[5],hasMargins:!1}}),l.$on("change",t[12]),{c(){e=S("li"),n=S("div"),i=S("div"),Pe(o.$$.fragment),r=G(),s=S("div"),Pe(l.$$.fragment),a=G(),h(i,"class","simple-props-group__split-item svelte-qpeo5g"),h(s,"class","simple-props-group__split-item svelte-qpeo5g"),h(n,"class","simple-props-group__split svelte-qpeo5g"),h(e,"class","simple-props-group__item simple-props-group__item_raw svelte-qpeo5g")},m(d,u){F(d,e,u),$(e,n),$(n,i),Ee(o,i,null),$(n,r),$(n,s),Ee(l,s,null),$(e,a),c=!0},p(d,u){const p={};u&1&&(p.propsList=[d[17].list[0]]),u&2&&(p.processedJson=d[1]),u&4&&(p.parentProcessedJson=d[2]),u&8&&(p.parentEvalJson=d[3]),u&16&&(p.evalJson=d[4]),u&32&&(p.selectedElemProps=d[5]),o.$set(p);const _={};u&1&&(_.propsList=[d[17].list[1]]),u&2&&(_.processedJson=d[1]),u&4&&(_.parentProcessedJson=d[2]),u&8&&(_.parentEvalJson=d[3]),u&16&&(_.evalJson=d[4]),u&32&&(_.selectedElemProps=d[5]),l.$set(_)},i(d){c||(I(o.$$.fragment,d),I(l.$$.fragment,d),c=!0)},o(d){H(o.$$.fragment,d),H(l.$$.fragment,d),c=!1},d(d){d&&V(e),Ae(o),Ae(l)}}}function fle(t){let e,n,i,o;return n=new $oe({props:{title:(t[17].title?t[7](t[17].title):t[17].rawTitle)||"",propsList:t[17].list,processedJson:t[1],parentProcessedJson:t[2],parentEvalJson:t[3],evalJson:t[4],selectedElemProps:t[5]}}),n.$on("change",t[10]),{c(){e=S("li"),Pe(n.$$.fragment),i=G(),h(e,"class","simple-props-group__item simple-props-group__item_group svelte-qpeo5g")},m(r,s){F(r,e,s),Ee(n,e,null),$(e,i),o=!0},p(r,s){const l={};s&129&&(l.title=(r[17].title?r[7](r[17].title):r[17].rawTitle)||""),s&1&&(l.propsList=r[17].list),s&2&&(l.processedJson=r[1]),s&4&&(l.parentProcessedJson=r[2]),s&8&&(l.parentEvalJson=r[3]),s&16&&(l.evalJson=r[4]),s&32&&(l.selectedElemProps=r[5]),n.$set(l)},i(r){o||(I(n.$$.fragment,r),o=!0)},o(r){H(n.$$.fragment,r),o=!1},d(r){r&&V(e),Ae(n)}}}function C0(t){let e,n,i,o,r,s;n=new sp({props:{item:t[17],value:t[20],evalValue:t[21],processedJson:t[1],parentProcessedJson:t[2],parentEvalJson:t[3]}}),n.$on("change",t[13]);let l=t[17].siblings&&z0(t);return{c(){e=S("li"),Pe(n.$$.fragment),i=G(),l&&l.c(),o=G(),h(e,"class","simple-props-group__item svelte-qpeo5g"),e.inert=r=!t[22],ne(e,"simple-props-group__item_raw",t[6]),ne(e,"simple-props-group__item_disabled",!t[22])},m(a,c){F(a,e,c),Ee(n,e,null),$(e,i),l&&l.m(e,null),$(e,o),s=!0},p(a,c){const d={};c&1&&(d.item=a[17]),c&3&&(d.value=a[20]),c&17&&(d.evalValue=a[21]),c&2&&(d.processedJson=a[1]),c&4&&(d.parentProcessedJson=a[2]),c&8&&(d.parentEvalJson=a[3]),n.$set(d),a[17].siblings?l?(l.p(a,c),c&1&&I(l,1)):(l=z0(a),l.c(),I(l,1),l.m(e,o)):l&&(Dt(),H(l,1,1,(()=>{l=null})),Vt()),(!s||c&7&&r!==(r=!a[22]))&&(e.inert=r),(!s||c&64)&&ne(e,"simple-props-group__item_raw",a[6]),(!s||c&519)&&ne(e,"simple-props-group__item_disabled",!a[22])},i(a){s||(I(n.$$.fragment,a),I(l),s=!0)},o(a){H(n.$$.fragment,a),H(l),s=!1},d(a){a&&V(e),Ae(n),l&&l.d()}}}function z0(t){let e,n,i=ln(t[17].siblings),o=[];for(let s=0;s<i.length;s+=1)o[s]=A0(T0(t,i,s));const r=s=>H(o[s],1,1,(()=>{o[s]=null}));return{c(){for(let s=0;s<o.length;s+=1)o[s].c();e=Vn()},m(s,l){for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(s,l);F(s,e,l),n=!0},p(s,l){if(l&575){i=ln(s[17].siblings);let a;for(a=0;a<i.length;a+=1){const c=T0(s,i,a);o[a]?(o[a].p(c,l),I(o[a],1)):(o[a]=A0(c),o[a].c(),I(o[a],1),o[a].m(e.parentNode,e))}for(Dt(),a=i.length;a<o.length;a+=1)r(a);Vt()}},i(s){if(!n){for(let l=0;l<i.length;l+=1)I(o[l]);n=!0}},o(s){o=o.filter(Boolean);for(let l=0;l<o.length;l+=1)H(o[l]);n=!1},d(s){s&&V(e),Bi(o,s)}}}function E0(t){let e,n,i,o,r;return n=new sp({props:{item:t[23],value:t[20],evalValue:t[21],processedJson:t[1],parentProcessedJson:t[2],parentEvalJson:t[3]}}),n.$on("change",t[14]),{c(){e=S("div"),Pe(n.$$.fragment),i=G(),h(e,"class","simple-props-group__sibling svelte-qpeo5g")},m(s,l){F(s,e,l),Ee(n,e,null),$(e,i),r=!0},p(s,l){const a={};l&1&&(a.item=s[23]),l&35&&(a.value=s[20]),l&49&&(a.evalValue=s[21]),l&2&&(a.processedJson=s[1]),l&4&&(a.parentProcessedJson=s[2]),l&8&&(a.parentEvalJson=s[3]),n.$set(a)},i(s){r||(I(n.$$.fragment,s),s&&_o((()=>{r&&(o||(o=Zi(e,Go,{},!0)),o.run(1))})),r=!0)},o(s){H(n.$$.fragment,s),s&&(o||(o=Zi(e,Go,{},!1)),o.run(0)),r=!1},d(s){s&&V(e),Ae(n),s&&o&&o.end()}}}function A0(t){let e=!("show"in t[23]&&t[23].show)||Nr(t[1],t[2],t[23].show,t[9]),n,i,o=e&&E0(Bd(t));return{c(){o&&o.c(),n=Vn()},m(r,s){o&&o.m(r,s),F(r,n,s),i=!0},p(r,s){s&7&&(e=!("show"in r[23]&&r[23].show)||Nr(r[1],r[2],r[23].show,r[9])),e?o?(o.p(Bd(r),s),s&7&&I(o,1)):(o=E0(Bd(r)),o.c(),I(o,1),o.m(n.parentNode,n)):o&&(Dt(),H(o,1,1,(()=>{o=null})),Vt())},i(r){i||(I(o),i=!0)},o(r){H(o),i=!1},d(r){r&&V(n),o&&o.d(r)}}}function O0(t){let e,n,i,o;const r=[fle,_le,ple],s=[];function l(c,d){return c[17].type==="group"?0:c[17].type==="split"?1:2}function a(c,d){return d===2?ule(c):c}return e=l(t),n=s[e]=r[e](a(t,e)),{c(){n.c(),i=Vn()},m(c,d){s[e].m(c,d),F(c,i,d),o=!0},p(c,d){let u=e;e=l(c),e===u?s[e].p(a(c,e),d):(Dt(),H(s[u],1,1,(()=>{s[u]=null})),Vt(),n=s[e],n?n.p(a(c,e),d):(n=s[e]=r[e](a(c,e)),n.c()),I(n,1),n.m(i.parentNode,i))},i(c){o||(I(n),o=!0)},o(c){H(n),o=!1},d(c){c&&V(i),s[e].d(c)}}}function mle(t){let e,n,i,o=ln(t[0]),r=[];for(let l=0;l<o.length;l+=1)r[l]=O0(S0(t,o,l));const s=l=>H(r[l],1,1,(()=>{r[l]=null}));return{c(){e=S("div"),n=S("ul");for(let l=0;l<r.length;l+=1)r[l].c();h(n,"class","simple-props-group__list svelte-qpeo5g"),h(e,"class","simple-props-group")},m(l,a){F(l,e,a),$(e,n);for(let c=0;c<r.length;c+=1)r[c]&&r[c].m(n,null);i=!0},p(l,[a]){if(a&1791){o=ln(l[0]);let c;for(c=0;c<o.length;c+=1){const d=S0(l,o,c);r[c]?(r[c].p(d,a),I(r[c],1)):(r[c]=O0(d),r[c].c(),I(r[c],1),r[c].m(n,null))}for(Dt(),c=o.length;c<r.length;c+=1)s(c);Vt()}},i(l){if(!i){for(let a=0;a<o.length;a+=1)I(r[a]);i=!0}},o(l){r=r.filter(Boolean);for(let a=0;a<r.length;a+=1)H(r[a]);i=!1},d(l){l&&V(e),Bi(r,l)}}}function gle(t,e,n){let i;const{l10nString:o}=yt(oi);De(t,o,(w=>n(7,i=w)));const{customFontFaces:r}=yt(Cn),s=_i();let{propsList:l}=e,{processedJson:a}=e,{parentProcessedJson:c}=e,{parentEvalJson:d}=e,{evalJson:u}=e,{selectedElemProps:p}=e,{hasMargins:_=!0}=e;const f={$fontFamily:r.length>0?"yes":"no"};function m(w){s(w.type,w.detail)}function g(w){mn.call(this,t,w)}function v(w){mn.call(this,t,w)}function y(w){mn.call(this,t,w)}function b(w){mn.call(this,t,w)}return t.$$set=w=>{"propsList"in w&&n(0,l=w.propsList),"processedJson"in w&&n(1,a=w.processedJson),"parentProcessedJson"in w&&n(2,c=w.parentProcessedJson),"parentEvalJson"in w&&n(3,d=w.parentEvalJson),"evalJson"in w&&n(4,u=w.evalJson),"selectedElemProps"in w&&n(5,p=w.selectedElemProps),"hasMargins"in w&&n(6,_=w.hasMargins)},[l,a,c,d,u,p,_,i,o,f,m,g,v,y,b]}class Nc extends Gt{constructor(e){super(),Yt(this,e,gle,mle,Rt,{propsList:0,processedJson:1,parentProcessedJson:2,parentEvalJson:3,evalJson:4,selectedElemProps:5,hasMargins:6})}}function M0(t){let e,n;return e=new Nc({props:{propsList:[...t[4],...t[2]&&[t[2]]||[]],processedJson:t[1],parentProcessedJson:t[0],evalJson:t[6],parentEvalJson:t[5],selectedElemProps:t[3]}}),e.$on("change",t[10]),{c(){Pe(e.$$.fragment)},m(i,o){Ee(e,i,o),n=!0},p(i,o){const r={};o&20&&(r.propsList=[...i[4],...i[2]&&[i[2]]||[]]),o&2&&(r.processedJson=i[1]),o&1&&(r.parentProcessedJson=i[0]),o&64&&(r.evalJson=i[6]),o&32&&(r.parentEvalJson=i[5]),o&8&&(r.selectedElemProps=i[3]),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Ae(e,i)}}}function hle(t){let e,n,i=t[4]&&t[1]&&M0(t);return{c(){e=S("div"),i&&i.c(),h(e,"class","simple-props svelte-12cn75g")},m(o,r){F(o,e,r),i&&i.m(e,null),n=!0},p(o,[r]){o[4]&&o[1]?i?(i.p(o,r),r&18&&I(i,1)):(i=M0(o),i.c(),I(i,1),i.m(e,null)):i&&(Dt(),H(i,1,1,(()=>{i=null})),Vt())},i(o){n||(I(i),n=!0)},o(o){H(i),n=!1},d(o){o&&V(e),i&&i.d()}}}function vle(t,e,n){let i,o,r,s,l,a,c,d,u,p,_,f;const{rootConfigurable:m,state:g,rendererApi:v}=yt(Cn),{selectedLeaf:y,readOnly:b,tree:w}=g;De(t,y,(j=>n(15,_=j))),De(t,b,(j=>n(16,f=j))),De(t,w,(j=>n(14,p=j)));let k;async function A(j){if(!_)return;if(f){console.error("Cannot edit readonly");return}const T=[],E=j.detail.item,O=({property:D,value:R})=>{if(D==="width.type"||D==="height.type"){const J=v().selectedElemProps(),B=D==="width.type"?"width":"height";return R==="fixed"?[{property:B,value:{type:"fixed",value:J?Math.ceil(J[B]):100}}]:R==="match_parent"?[{property:B,value:{type:R}}]:R==="wrap_content"?[{property:B,value:{type:R}}]:[]}else if(D==="alignment_horizontal"||D==="alignment_vertical"){const J=D==="alignment_horizontal"?"width":"height",B=J==="width"?"left":"top",z=J==="width"?"right":"bottom",q=[{property:D,value:R}];return i.margins&&(i.margins[B]&&q.push({property:"margins."+B,value:void 0}),i.margins[z]&&q.push({property:"margins."+z,value:void 0})),q}return[{property:D,value:R}]};"values"in j.detail?j.detail.values.forEach((D=>{T.push(...O({property:D.prop,value:D.value}).map((R=>({...R,leafId:_.id}))))})):"prop"in E&&E.prop&&T.push(...O({property:E.prop,value:j.detail.value}).map((D=>({...D,leafId:_.id}))));const M="related"in E&&E.related;M&&M.forEach((({prop:D,value:R})=>{T.push({leafId:_.id,property:D,value:R})})),g.pushCommand(new ir(p,T))}return t.$$.update=()=>{var j,T,E,O;if(t.$$.dirty&32768&&n(11,i=(_==null?void 0:_.props.json)||null),t.$$.dirty&34816&&n(1,o=(_==null?void 0:_.props.processedJson)||i||null),t.$$.dirty&32768&&n(0,r=((j=_==null?void 0:_.parent)==null?void 0:j.props.processedJson)||((T=_==null?void 0:_.parent)==null?void 0:T.props.json)||null),t.$$.dirty&2&&n(6,s=o&&v().evalJson(o)||null),t.$$.dirty&1&&n(5,l=r&&v().evalJson(r)||null),t.$$.dirty&2048&&n(12,a=i==null?void 0:i.type),t.$$.dirty&4096&&n(13,c=g.getBaseType(a)),t.$$.dirty&61440&&n(4,d=!m&&_===p&&xte||((E=Ji[a])==null?void 0:E.props)&&[...nr,...(O=Ji[a])==null?void 0:O.props]||c&&Zte[c]||nr),t.$$.dirty&4096){const M=a in Ji?[]:Qte(g,a);n(2,k=void 0);const D=M.map((R=>{const J=R.editor.type!=="background2"&&R.editor.type!=="actions2"&&R.editor.type!=="video_sources"&&R.editor.type!=="variable-name";return{rawName:R.templatePropertyName,prop:R.templatePropertyName,type:R.editor.type,options:R.editor.options,constraint:R.editor.constraint,enableSources:J}}));D.length&&n(2,k={type:"group",rawTitle:a,list:D})}t.$$.dirty&2048&&n(3,u=i&&v().selectedElemProps()||null)},[r,o,k,u,d,l,s,y,b,w,A,i,a,c,p,_]}class ble extends Gt{constructor(e){super(),Yt(this,e,vle,hle,Rt,{})}}function P0(t,e,n){const i=t.slice();return i[9]=e[n],i}function I0(t){let e,n;return e=new Il({props:{title:t[3](t[0]?"complexComponentProperties":"componentProperties")}}),{c(){Pe(e.$$.fragment)},m(i,o){Ee(e,i,o),n=!0},p(i,o){const r={};o&9&&(r.title=i[3](i[0]?"complexComponentProperties":"componentProperties")),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Ae(e,i)}}}function yle(t){let e,n,i,o=t[3]("chooseComponent")+"",r,s,l;return{c(){e=S("div"),n=S("div"),i=G(),r=xe(o),s=G(),l=S("div"),h(n,"class","props__empty-gap props__empty-gap_start svelte-1ak9wrv"),h(l,"class","props__empty-gap props__empty-gap_end svelte-1ak9wrv"),h(e,"class","props__empty svelte-1ak9wrv")},m(a,c){F(a,e,c),$(e,n),$(e,i),$(e,r),$(e,s),$(e,l)},p(a,c){c&8&&o!==(o=a[3]("chooseComponent")+"")&&at(r,o)},i:tn,o:tn,d(a){a&&V(e)}}}function wle(t){var r;let e=(r=t[1])==null?void 0:r.id,n,i,o=V0(t);return{c(){o.c(),n=Vn()},m(s,l){o.m(s,l),F(s,n,l),i=!0},p(s,l){var a;l&2&&Rt(e,e=(a=s[1])==null?void 0:a.id)?(Dt(),H(o,1,1,tn),Vt(),o=V0(s),o.c(),I(o,1),o.m(n.parentNode,n)):o.p(s,l)},i(s){i||(I(o),i=!0)},o(s){H(o),i=!1},d(s){s&&V(n),o.d(s)}}}function $le(t){let e,n;return e=new ble({}),{c(){Pe(e.$$.fragment)},m(i,o){Ee(e,i,o),n=!0},p:tn,i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Ae(e,i)}}}function kle(t){let e,n,i=ln(t[2]),o=[];for(let s=0;s<i.length;s+=1)o[s]=D0(P0(t,i,s));const r=s=>H(o[s],1,1,(()=>{o[s]=null}));return{c(){for(let s=0;s<o.length;s+=1)o[s].c();e=Vn()},m(s,l){for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(s,l);F(s,e,l),n=!0},p(s,l){if(l&4){i=ln(s[2]);let a;for(a=0;a<i.length;a+=1){const c=P0(s,i,a);o[a]?(o[a].p(c,l),I(o[a],1)):(o[a]=D0(c),o[a].c(),I(o[a],1),o[a].m(e.parentNode,e))}for(Dt(),a=i.length;a<o.length;a+=1)r(a);Vt()}},i(s){if(!n){for(let l=0;l<i.length;l+=1)I(o[l]);n=!0}},o(s){o=o.filter(Boolean);for(let l=0;l<o.length;l+=1)H(o[l]);n=!1},d(s){s&&V(e),Bi(o,s)}}}function D0(t){let e,n;return e=new hoe({props:{group:t[9]}}),{c(){Pe(e.$$.fragment)},m(i,o){Ee(e,i,o),n=!0},p(i,o){const r={};o&4&&(r.group=i[9]),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Ae(e,i)}}}function V0(t){let e,n,i,o;const r=[kle,$le],s=[];function l(a,c){return a[0]?0:1}return e=l(t),n=s[e]=r[e](t),{c(){n.c(),i=Vn()},m(a,c){s[e].m(a,c),F(a,i,c),o=!0},p(a,c){let d=e;e=l(a),e===d?s[e].p(a,c):(Dt(),H(s[d],1,1,(()=>{s[d]=null})),Vt(),n=s[e],n?n.p(a,c):(n=s[e]=r[e](a),n.c()),I(n,1),n.m(i.parentNode,i))},i(a){o||(I(n),o=!0)},o(a){H(n),o=!1},d(a){a&&V(i),s[e].d(a)}}}function jle(t){let e,n,i,o,r,s=t[0]&&I0(t);const l=[wle,yle],a=[];function c(d,u){return d[2]?0:1}return i=c(t),o=a[i]=l[i](t),{c(){e=S("div"),s&&s.c(),n=G(),o.c(),h(e,"class","props svelte-1ak9wrv")},m(d,u){F(d,e,u),s&&s.m(e,null),$(e,n),a[i].m(e,null),r=!0},p(d,[u]){d[0]?s?(s.p(d,u),u&1&&I(s,1)):(s=I0(d),s.c(),I(s,1),s.m(e,n)):s&&(Dt(),H(s,1,1,(()=>{s=null})),Vt());let p=i;i=c(d),i===p?a[i].p(d,u):(Dt(),H(a[p],1,1,(()=>{a[p]=null})),Vt(),o=a[i],o?o.p(d,u):(o=a[i]=l[i](d),o.c()),I(o,1),o.m(e,null))},i(d){r||(I(s),I(o),r=!0)},o(d){H(s),H(o),r=!1},d(d){d&&V(e),s&&s.d(),a[i].d()}}}function Sle(t,e,n){let i,o,r,s,{showComplex:l=!1}=e;const{l10n:a}=yt(oi);De(t,a,(p=>n(3,s=p)));const{state:c}=yt(Cn),{selectedLeaf:d}=c;De(t,d,(p=>n(1,r=p)));let u;return t.$$set=p=>{"showComplex"in p&&n(0,l=p.showComplex)},t.$$.update=()=>{var p;if(t.$$.dirty&2&&n(7,i=((p=r==null?void 0:r.props.processedJson)==null?void 0:p.type)||null),t.$$.dirty&128&&n(6,o=c.getBaseType(i)),t.$$.dirty&64&&(n(2,u=null),o)){const _=Gl(o),f=_?Hm(o):void 0,m=_?f?jl(f):void 0:jl(o),g=m==null?void 0:m.allOf;g&&n(2,u=g.slice().reverse().map((v=>{if(v.$ref)return v.$ref.replace(/^div-/,"").replace(/\.json$/,"");const b=Gl(o)?Hm(o):void 0;return Gl(o)?b?Xm(b):void 0:Xm(o)})).filter(kr))}},[l,r,u,s,a,d,o,i]}class FV extends Gt{constructor(e){super(),Yt(this,e,Sle,jle,Rt,{showComplex:0})}}function Tle(t,e){const n=[];return t&&n.push(...t.map((i=>({type:"highlight",range:i})))),e&&n.push(...e.map((i=>({type:"select",range:i})))),n}class Cle extends hr{constructor(n,i){super();on(this,"oldTree");on(this,"newJson");on(this,"genId");this.oldTree=wn(n.tree),this.newJson=i,this.genId=n.currentGenId()}undo(n){n.tree.set(this.oldTree)}redo(n){n.restoreGenId(this.genId),n.setDivJson(JSON.parse(this.newJson))}mergeMeWith(n){this.newJson=n.newJson}toLangKey(){return"commands.set_json"}}function zle(t){let e;return{c(){e=S("div"),h(e,"class","text-editor svelte-107l38j")},m(n,i){F(n,e,i),t[16](e)},p:tn,i:tn,o:tn,d(n){n&&V(e),t[16](null)}}}function Ele(t,e,n){let i,o,r,s,l,a,c,d,u=!1,p="";const{editorFabric:_,shadowRoot:f,state:m}=yt(Cn),{divjsonStore:g,selectedLeaf:v,highlightLeaf:y,highlightElem:b,highlightRanges:w,selectedRanges:k,highlightLoc:A,readOnly:j,themeStore:T}=m;De(t,g,(O=>n(10,i=O))),De(t,w,(O=>n(15,a=O))),De(t,k,(O=>n(14,l=O))),De(t,A,(O=>n(13,s=O))),De(t,j,(O=>n(11,o=O))),De(t,T,(O=>n(12,r=O))),Uc((()=>{n(7,d=_({node:c,value:i.fullString,theme:r,readOnly:o,shadowRoot:f,onChange(O){if(O!==i.fullString){let M;try{M=JSON.parse(O)}catch{}M&&(n(9,p=O),m.pushCommand(new Cle(m,O)))}},onOver(O){const M=O===null?null:m.findBestLeaf(O),D=M==null?void 0:M.props.range,R=M==null?void 0:M.props.node;D&&R?(y.set([M]),b.set([R]),w.set([D])):(y.set(null),b.set(null),w.set(null))},onClick(O){const M=m.findBestLeaf(O);n(8,u=!0),v.set(M||null)}}))})),Js((()=>{d&&(d.destroy(),n(7,d=void 0))}));function E(O){pt[O?"unshift":"push"]((()=>{c=O,n(0,c)}))}return t.$$.update=()=>{t.$$.dirty&1664&&p!==i.fullString&&!(d!=null&&d.isFocused())&&(d==null||d.setValue(i.fullString)),t.$$.dirty&4224&&(d==null||d.setTheme(r)),t.$$.dirty&2176&&(d==null||d.setReadOnly(o)),t.$$.dirty&49280&&(d==null||d.decorateRanges(Tle(a,l))),t.$$.dirty&8576&&s&&(u?n(8,u=!1):d==null||d.revealLoc(s))},[c,g,w,k,A,j,T,d,u,p,i,o,r,s,l,a,E]}class NV extends Gt{constructor(e){super(),Yt(this,e,Ele,zle,Rt,{})}}const L0="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20fill='none'%3e%3cpath%20fill='%23fff'%20d='M18.5%2015.167a3.335%203.335%200%200%201-3.228-2.5H8.5A.833.833%200%200%201%208.5%2011h6.772a3.335%203.335%200%200%201%206.456%200H23.5a.833.833%200%200%201%200%201.667h-1.772a3.335%203.335%200%200%201-3.228%202.5Zm-10%204.166A.833.833%200%200%200%208.5%2021h1.772a3.335%203.335%200%200%200%206.456%200H23.5a.833.833%200%200%200%200-1.667h-6.772a3.335%203.335%200%200%200-6.456%200H8.5Zm10-5.833a1.667%201.667%200%201%200%200-3.333%201.667%201.667%200%200%200%200%203.333Zm-3.333%206.667a1.667%201.667%200%201%201-3.334%200%201.667%201.667%200%200%201%203.334%200Z'/%3e%3c/svg%3e",F0="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20fill='none'%3e%3cg%20fill='%23fff'%3e%3cpath%20d='m10.376%2011.584-1.599-1.066a.5.5%200%200%200-.777.416v2.132a.5.5%200%200%200%20.777.416l1.599-1.066a.5.5%200%200%200%200-.832zM11.833%2012.042c0-.46.373-.833.833-.833h10a.833.833%200%200%201%200%201.666h-10a.833.833%200%200%201-.833-.833zM15.167%2016.208c0-.46.373-.833.833-.833h6.667a.833.833%200%201%201%200%201.666H16a.833.833%200%200%201-.833-.833zM16%2019.542a.833.833%200%200%200%200%201.667h6.667a.833.833%200%200%200%200-1.667H16zM12.875%2015.166a1.042%201.042%200%201%200%200%202.083%201.042%201.042%200%200%200%200-2.083zM11.833%2020.375a1.042%201.042%200%201%201%202.083%200%201.042%201.042%200%200%201-2.083%200z'/%3e%3c/g%3e%3c/svg%3e",N0="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20fill='none'%3e%3cpath%20fill='%23fff'%20d='M14.419%2022.667h.819c.2%200%20.372-.143.41-.34l2.343-12.5a.417.417%200%200%200-.41-.494h-.819c-.2%200-.372.143-.41.34l-2.343%2012.5a.417.417%200%200%200%20.41.494Zm-6.393-5.585%204.404%203.049a.417.417%200%200%200%20.653-.343v-.668a.415.415%200%200%200-.16-.328L9.332%2016l3.59-2.791c.101-.08.16-.2.16-.33v-.667a.417.417%200%200%200-.653-.343l-4.404%203.05a.833.833%200%200%200-.36.684v.794c0%20.273.135.53.36.685Zm15.948%200L19.57%2020.13a.417.417%200%200%201-.653-.343v-.668c0-.128.059-.25.16-.328L22.668%2016l-3.59-2.791a.417.417%200%200%201-.16-.33v-.667c0-.336.377-.534.653-.343l4.404%203.05a.833.833%200%200%201%20.36.684v.794c0%20.273-.135.53-.36.685Z'/%3e%3c/svg%3e";function Ale(t){let e,n;return e=new NV({}),{c(){Pe(e.$$.fragment)},m(i,o){Ee(e,i,o),n=!0},p:tn,i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Ae(e,i)}}}function Ole(t){let e,n;return e=new FV({props:{showComplex:t[0]==="complexProps"}}),{c(){Pe(e.$$.fragment)},m(i,o){Ee(e,i,o),n=!0},p(i,o){const r={};o&1&&(r.showComplex=i[0]==="complexProps"),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Ae(e,i)}}}function Mle(t){let e,n,i,o,r,s,l,a;function c(f){t[3](f)}let d={name:"props-code",options:[{text:t[1]("componentProperties"),value:"props",icon:L0},{text:t[1]("complexComponentProperties"),value:"complexProps",icon:F0},{text:t[1]("code"),value:"code",icon:N0}],theme:"normal"};t[0]!==void 0&&(d.value=t[0]),n=new Dl({props:d}),pt.push((()=>Gn(n,"value",c)));const u=[Ole,Ale],p=[];function _(f,m){return f[0]==="props"||f[0]==="complexProps"?0:1}return r=_(t),s=p[r]=u[r](t),{c(){e=S("div"),Pe(n.$$.fragment),o=G(),s.c(),l=Vn(),h(e,"class","props-and-code svelte-17kuvkq")},m(f,m){F(f,e,m),Ee(n,e,null),F(f,o,m),p[r].m(f,m),F(f,l,m),a=!0},p(f,[m]){const g={};m&2&&(g.options=[{text:f[1]("componentProperties"),value:"props",icon:L0},{text:f[1]("complexComponentProperties"),value:"complexProps",icon:F0},{text:f[1]("code"),value:"code",icon:N0}]),!i&&m&1&&(i=!0,g.value=f[0],Xn((()=>i=!1))),n.$set(g);let v=r;r=_(f),r===v?p[r].p(f,m):(Dt(),H(p[v],1,1,(()=>{p[v]=null})),Vt(),s=p[r],s?s.p(f,m):(s=p[r]=u[r](f),s.c()),I(s,1),s.m(l.parentNode,l))},i(f){a||(I(n.$$.fragment,f),I(s),a=!0)},o(f){H(n.$$.fragment,f),H(s),a=!1},d(f){f&&(V(e),V(o),V(l)),Ae(n),p[r].d(f)}}}function Ple(t,e,n){let i;const{l10n:o}=yt(oi);De(t,o,(l=>n(1,i=l)));let r="props";function s(l){r=l,n(0,r)}return[r,i,o,s]}class Ile extends Gt{constructor(e){super(),Yt(this,e,Ple,Mle,Rt,{})}}function q0(t,e,n){const i=t.slice();return i[29]=e[n],i}function Dle(t){let e,n=t[2]("tankerOverviewEmpty")+"",i;return{c(){e=S("div"),i=xe(n),h(e,"class","tanker-overview__empty svelte-16fzujb")},m(o,r){F(o,e,r),$(e,i)},p(o,r){r[0]&4&&n!==(n=o[2]("tankerOverviewEmpty")+"")&&at(i,n)},d(o){o&&V(e)}}}function Vle(t){let e,n,i,o,r=t[2]("tankerUpdate")+"",s,l,a,c=ln(Array.from(t[1].keys())),d=[];for(let f=0;f<c.length;f+=1)d[f]=R0(q0(t,c,f));function u(f,m){return f[0]?Fle:Lle}let p=u(t),_=p(t);return{c(){e=S("div");for(let f=0;f<d.length;f+=1)d[f].c();n=G(),i=S("button"),_.c(),o=G(),s=xe(r),h(i,"class","tanker-overview__update svelte-16fzujb"),h(e,"class","tanker-overview__list svelte-16fzujb")},m(f,m){F(f,e,m);for(let g=0;g<d.length;g+=1)d[g]&&d[g].m(e,null);$(e,n),$(e,i),_.m(i,null),$(i,o),$(i,s),l||(a=te(i,"click",t[13]),l=!0)},p(f,m){if(m[0]&7198){c=ln(Array.from(f[1].keys()));let g;for(g=0;g<c.length;g+=1){const v=q0(f,c,g);d[g]?d[g].p(v,m):(d[g]=R0(v),d[g].c(),d[g].m(e,n))}for(;g<d.length;g+=1)d[g].d(1);d.length=c.length}p!==(p=u(f))&&(_.d(1),_=p(f),_&&(_.c(),_.m(i,o))),m[0]&4&&r!==(r=f[2]("tankerUpdate")+"")&&at(s,r)},d(f){f&&V(e),Bi(d,f),_.d(),l=!1,a()}}}function R0(t){var A;let e,n,i=(((A=t[3][t[29]])==null?void 0:A[t[4]])||"")+"",o,r,s,l,a=t[2]("tankerKey")+"",c,d,u,p=t[29]+"",_,f,m;function g(){return t[14](t[29])}function v(){return t[15](t[29])}function y(){return t[16](t[29])}function b(){return t[17](t[29])}function w(){return t[18](t[29])}function k(){return t[19](t[29])}return{c(){e=S("div"),n=S("button"),o=xe(i),r=G(),s=S("div"),l=S("div"),c=xe(a),d=G(),u=S("button"),_=xe(p),h(n,"class","tanker-overview__preview svelte-16fzujb"),h(l,"class","tanker-overview__tanker-label svelte-16fzujb"),h(u,"class","tanker-overview__tanker-key svelte-16fzujb"),h(s,"class","tanker-overview__info svelte-16fzujb"),h(e,"class","tanker-overview__item svelte-16fzujb")},m(j,T){F(j,e,T),$(e,n),$(n,o),$(e,r),$(e,s),$(s,l),$(l,c),$(s,d),$(s,u),$(u,_),f||(m=[te(n,"click",g),te(n,"mouseenter",v),te(n,"mouseleave",y),te(u,"click",b),te(u,"mouseenter",w),te(u,"mouseleave",k)],f=!0)},p(j,T){var E;t=j,T[0]&26&&i!==(i=(((E=t[3][t[29]])==null?void 0:E[t[4]])||"")+"")&&at(o,i),T[0]&4&&a!==(a=t[2]("tankerKey")+"")&&at(c,a),T[0]&2&&p!==(p=t[29]+"")&&at(_,p)},d(j){j&&V(e),f=!1,Rn(m)}}}function Lle(t){let e;return{c(){e=S("div"),h(e,"class","tanker-overview__update-icon svelte-16fzujb")},m(n,i){F(n,e,i)},d(n){n&&V(e)}}}function Fle(t){let e;return{c(){e=S("div"),h(e,"class","tanker-overview__update-loader svelte-16fzujb")},m(n,i){F(n,e,i)},d(n){n&&V(e)}}}function Nle(t){let e,n,i,o;e=new Il({props:{title:t[2]("tankerOverview")}});function r(a,c){return a[1].size?Vle:Dle}let s=r(t),l=s(t);return{c(){Pe(e.$$.fragment),n=G(),l.c(),i=Vn()},m(a,c){Ee(e,a,c),F(a,n,c),l.m(a,c),F(a,i,c),o=!0},p(a,c){const d={};c[0]&4&&(d.title=a[2]("tankerOverview")),e.$set(d),s===(s=r(a))&&l?l.p(a,c):(l.d(1),l=s(a),l&&(l.c(),l.m(i.parentNode,i)))},i(a){o||(I(e.$$.fragment,a),o=!0)},o(a){H(e.$$.fragment,a),o=!1},d(a){a&&(V(n),V(i)),Ae(e,a),l.d(a)}}}function qle(t,e,n){let i,o,r,s,l;const{l10n:a}=yt(oi);De(t,a,(z=>n(2,r=z)));const{getTranslationKey:c,state:d}=yt(Cn),{tanker:u,tankerKeyToNodes:p,selectedLeaf:_,highlightLeaf:f,highlightElem:m,highlightRanges:g,locale:v,tree:y}=d;De(t,u,(z=>n(3,s=z))),De(t,p,(z=>n(1,i=z))),De(t,v,(z=>n(4,l=z))),De(t,y,(z=>n(20,o=z)));let b=!1;function w(z){const q=i.get(z);if(!q)return;const N=[...q][0];return no(o,N)}function k(z){const q=w(z);q&&_.set(q)}function A(z,q){const N=z==null?void 0:z.props.node,Y=z==null?void 0:z.props.range;N&&Y&&q?(f.set([z]),m.set([N]),g.set([Y])):(f.set(null),m.set(null),g.set(null))}function j(z){A(w(z),!0)}function T(z){A(w(z),!1)}async function E(){if(!(b||!c)){n(0,b=!0);try{const z=Array.from(i.keys()),q={};for(const N of z){const Y=await c(N);Y&&(q[N]=Y)}u.set(q)}finally{n(0,b=!1)}}}return[b,i,r,s,l,a,u,p,v,y,k,j,T,E,z=>k(z),z=>j(z),z=>T(z),z=>k(z),z=>j(z),z=>T(z)]}class Rle extends Gt{constructor(e){super(),Yt(this,e,qle,Nle,Rt,{},null,[-1,-1])}}function B0(t,e,n){const i=t.slice();return i[5]=e[n],i}function Ble(t){let e,n,i,o=t[0]("sourcesEmpty")+"",r,s,l;return{c(){e=S("div"),n=G(),i=S("div"),r=xe(o),s=G(),l=S("div"),h(e,"class","sources-overview__gap_top svelte-1nv6c5c"),h(i,"class","sources-overview__empty svelte-1nv6c5c"),h(l,"class","sources-overview__gap_bottom svelte-1nv6c5c")},m(a,c){F(a,e,c),F(a,n,c),F(a,i,c),$(i,r),F(a,s,c),F(a,l,c)},p(a,c){c&1&&o!==(o=a[0]("sourcesEmpty")+"")&&at(r,o)},i:tn,o:tn,d(a){a&&(V(e),V(n),V(i),V(s),V(l))}}}function Hle(t){let e,n,i=ln(t[1]),o=[];for(let s=0;s<i.length;s+=1)o[s]=H0(B0(t,i,s));const r=s=>H(o[s],1,1,(()=>{o[s]=null}));return{c(){for(let s=0;s<o.length;s+=1)o[s].c();e=Vn()},m(s,l){for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(s,l);F(s,e,l),n=!0},p(s,l){if(l&3){i=ln(s[1]);let a;for(a=0;a<i.length;a+=1){const c=B0(s,i,a);o[a]?(o[a].p(c,l),I(o[a],1)):(o[a]=H0(c),o[a].c(),I(o[a],1),o[a].m(e.parentNode,e))}for(Dt(),a=i.length;a<o.length;a+=1)r(a);Vt()}},i(s){if(!n){for(let l=0;l<i.length;l+=1)I(o[l]);n=!0}},o(s){o=o.filter(Boolean);for(let l=0;l<o.length;l+=1)H(o[l]);n=!1},d(s){s&&V(e),Bi(o,s)}}}function Jle(t){let e,n=JSON.stringify(t[5].example,null,4)+"",i;return{c(){e=S("div"),i=xe(n),h(e,"class","sources-overview__json svelte-1nv6c5c")},m(o,r){F(o,e,r),$(e,i)},p(o,r){r&2&&n!==(n=JSON.stringify(o[5].example,null,4)+"")&&at(i,n)},d(o){o&&V(e)}}}function Ule(t){let e,n,i=t[0]("sourcesName")+"",o,r,s,l=t[5].key+"",a,c,d,u=t[0]("sourcesUrl")+"",p,_,f,m=t[5].url+"",g;return{c(){e=S("div"),n=S("div"),o=xe(i),r=G(),s=S("div"),a=xe(l),c=G(),d=S("div"),p=xe(u),_=G(),f=S("div"),g=xe(m),h(n,"class","sources-overview__label svelte-1nv6c5c"),h(s,"class","sources-overview__value svelte-1nv6c5c"),h(d,"class","sources-overview__label svelte-1nv6c5c"),h(f,"class","sources-overview__value sources-overview__value_url svelte-1nv6c5c"),h(e,"slot","title"),h(e,"class","sources-overview__title svelte-1nv6c5c")},m(v,y){F(v,e,y),$(e,n),$(n,o),$(e,r),$(e,s),$(s,a),$(e,c),$(e,d),$(d,p),$(e,_),$(e,f),$(f,g)},p(v,y){y&1&&i!==(i=v[0]("sourcesName")+"")&&at(o,i),y&2&&l!==(l=v[5].key+"")&&at(a,l),y&1&&u!==(u=v[0]("sourcesUrl")+"")&&at(p,u),y&2&&m!==(m=v[5].url+"")&&at(g,m)},d(v){v&&V(e)}}}function H0(t){let e,n,i,o;return n=new xo({props:{$$slots:{title:[Ule],default:[Jle]},$$scope:{ctx:t}}}),{c(){e=S("div"),Pe(n.$$.fragment),i=G(),h(e,"class","sources-overview__item svelte-1nv6c5c")},m(r,s){F(r,e,s),Ee(n,e,null),$(e,i),o=!0},p(r,s){const l={};s&259&&(l.$$scope={dirty:s,ctx:r}),n.$set(l)},i(r){o||(I(n.$$.fragment,r),o=!0)},o(r){H(n.$$.fragment,r),o=!1},d(r){r&&V(e),Ae(n)}}}function Wle(t){let e,n,i,o,r,s;e=new Il({props:{title:t[0]("sourcesTitle")}});const l=[Hle,Ble],a=[];function c(d,u){return d[1].length?0:1}return o=c(t),r=a[o]=l[o](t),{c(){Pe(e.$$.fragment),n=G(),i=S("div"),r.c(),h(i,"class","sources-overview svelte-1nv6c5c")},m(d,u){Ee(e,d,u),F(d,n,u),F(d,i,u),a[o].m(i,null),s=!0},p(d,[u]){const p={};u&1&&(p.title=d[0]("sourcesTitle")),e.$set(p);let _=o;o=c(d),o===_?a[o].p(d,u):(Dt(),H(a[_],1,1,(()=>{a[_]=null})),Vt(),r=a[o],r?r.p(d,u):(r=a[o]=l[o](d),r.c()),I(r,1),r.m(i,null))},i(d){s||(I(e.$$.fragment,d),I(r),s=!0)},o(d){H(e.$$.fragment,d),H(r),s=!1},d(d){d&&(V(n),V(i)),Ae(e,d),a[o].d()}}}function Kle(t,e,n){let i,o;const{state:r}=yt(Cn),{l10n:s}=yt(oi);De(t,s,(a=>n(0,i=a)));const{sources:l}=r;return De(t,l,(a=>n(1,o=a))),[i,o,s,l]}class Yle extends Gt{constructor(e){super(),Yt(this,e,Kle,Wle,Rt,{})}}class lp extends hr{constructor(n,i){super();on(this,"before");on(this,"after");this.before=wn(n.customVariables),this.after=i}undo(n){n.customVariables.set(this.before)}redo(n){n.customVariables.set(this.after)}canMerge(n){return super.canMerge(n)&&n instanceof lp&&this.after===n.before}mergeMeWith(n){this.after=n.after}toLangKey(){return"commands.change_custom_variables"}}function Gle(t){let e,n,i,o,r,s;return{c(){e=S("div"),n=S("input"),i=G(),o=S("div"),h(n,"class","checkbox__input svelte-cehmgw"),h(n,"type","checkbox"),h(n,"autocomplete","off"),h(n,"id",t[1]),n.disabled=t[3],h(o,"class","checkbox__bg svelte-cehmgw"),h(e,"class","checkbox__box svelte-cehmgw")},m(l,a){F(l,e,a),$(e,n),n.checked=t[0],$(e,i),$(e,o),r||(s=[te(n,"change",t[6]),te(n,"change",t[4])],r=!0)},p(l,a){a&2&&h(n,"id",l[1]),a&8&&(n.disabled=l[3]),a&1&&(n.checked=l[0])},d(l){l&&V(e),r=!1,Rn(s)}}}function Xle(t){let e,n,i,o,r,s,l,a,c;return{c(){e=S("label"),n=S("div"),i=S("input"),o=G(),r=S("div"),s=G(),l=xe(t[2]),h(i,"class","checkbox__input svelte-cehmgw"),h(i,"type","checkbox"),h(i,"autocomplete","off"),h(i,"id",t[1]),i.disabled=t[3],h(r,"class","checkbox__bg svelte-cehmgw"),h(n,"class","checkbox__box svelte-cehmgw"),h(e,"class","checkbox__label svelte-cehmgw")},m(d,u){F(d,e,u),$(e,n),$(n,i),i.checked=t[0],$(n,o),$(n,r),$(e,s),$(e,l),a||(c=[te(i,"change",t[5]),te(i,"input",t[4])],a=!0)},p(d,u){u&2&&h(i,"id",d[1]),u&8&&(i.disabled=d[3]),u&1&&(i.checked=d[0]),u&4&&at(l,d[2])},d(d){d&&V(e),a=!1,Rn(c)}}}function Zle(t){let e;function n(r,s){return r[2]?Xle:Gle}let i=n(t),o=i(t);return{c(){e=S("div"),o.c(),h(e,"class","checkbox svelte-cehmgw"),ne(e,"checkbox_disabled",t[3])},m(r,s){F(r,e,s),o.m(e,null)},p(r,[s]){i===(i=n(r))&&o?o.p(r,s):(o.d(1),o=i(r),o&&(o.c(),o.m(e,null))),s&8&&ne(e,"checkbox_disabled",r[3])},i:tn,o:tn,d(r){r&&V(e),o.d()}}}function xle(t,e,n){let{id:i=""}=e,{value:o}=e,{label:r=""}=e,{disabled:s=!1}=e;const l=_i();function a(){l("change",o)}function c(){o=this.checked,n(0,o)}function d(){o=this.checked,n(0,o)}return t.$$set=u=>{"id"in u&&n(1,i=u.id),"value"in u&&n(0,o=u.value),"label"in u&&n(2,r=u.label),"disabled"in u&&n(3,s=u.disabled)},[o,i,r,s,a,c,d]}class qV extends Gt{constructor(e){super(),Yt(this,e,xle,Zle,Rt,{id:1,value:0,label:2,disabled:3})}}function J0(t,e,n){const i=t.slice();i[24]=e[n],i[26]=e,i[27]=n;const o=$u(i[24]);return i[25]=o,i}function Qle(t){let e,n;function i(...o){return t[19](t[27],...o)}return e=new ho({props:{value:$u(t[24]),subtype:Y0(t[24]),anyStep:!0,error:t[9](t[24]),disabled:t[2]}}),e.$on("change",i),{c(){Pe(e.$$.fragment)},m(o,r){Ee(e,o,r),n=!0},p(o,r){t=o;const s={};r&1&&(s.value=$u(t[24])),r&1&&(s.subtype=Y0(t[24])),r&1&&(s.error=t[9](t[24])),r&4&&(s.disabled=t[2]),e.$set(s)},i(o){n||(I(e.$$.fragment,o),n=!0)},o(o){H(e.$$.fragment,o),n=!1},d(o){Ae(e,o)}}}function eae(t){let e,n;function i(...o){return t[18](t[27],...o)}return e=new pd({props:{value:t[24].value,readOnly:t[2],hasDialog:!0}}),e.$on("change",i),{c(){Pe(e.$$.fragment)},m(o,r){Ee(e,o,r),n=!0},p(o,r){t=o;const s={};r&1&&(s.value=t[24].value),r&4&&(s.readOnly=t[2]),e.$set(s)},i(o){n||(I(e.$$.fragment,o),n=!0)},o(o){H(e.$$.fragment,o),n=!1},d(o){Ae(e,o)}}}function tae(t){let e,n;function i(...o){return t[17](t[27],...o)}return e=new qV({props:{value:t[24].value==="true",disabled:t[2]}}),e.$on("change",i),{c(){Pe(e.$$.fragment)},m(o,r){Ee(e,o,r),n=!0},p(o,r){t=o;const s={};r&1&&(s.value=t[24].value==="true"),r&4&&(s.disabled=t[2]),e.$set(s)},i(o){n||(I(e.$$.fragment,o),n=!0)},o(o){H(e.$$.fragment,o),n=!1},d(o){Ae(e,o)}}}function nae(t){let e,n,i,o=t[1]("customVariablesName")+"",r,s,l,a,c,d,u=t[1]("customVariablesType")+"",p,_,f,m,g,v,y,b=t[1]("customVariablesValue")+"",w,k,A,j,T;function E(...z){return t[14](t[27],...z)}l=new ho({props:{value:t[24].name,pattern:"[a-zA-Z_][a-zA-Z_0-9.]*",placeholder:"[a-zA-Z_][a-zA-Z_0-9.]*",disabled:t[2]}}),l.$on("change",E);function O(z){t[15](z,t[24])}function M(...z){return t[16](t[27],...z)}let D={theme:"normal",size:"medium",disabled:t[2],items:[{value:"string",text:t[1]("customVariablesTypeString")},{value:"number",text:t[1]("customVariablesTypeNumber")},{value:"integer",text:t[1]("customVariablesTypeInteger")},{value:"boolean",text:t[1]("customVariablesTypeBoolean")},{value:"url",text:t[1]("customVariablesTypeUrl")},{value:"color",text:t[1]("customVariablesTypeColor")},{value:"dict",text:t[1]("customVariablesTypeDict")},{value:"array",text:t[1]("customVariablesTypeArray")}]};t[24].type!==void 0&&(D.value=t[24].type),f=new Hr({props:D}),pt.push((()=>Gn(f,"value",O))),f.$on("change",M);const R=[tae,eae,Qle],J=[];function B(z,q){return z[24].type==="boolean"?0:z[24].type==="color"?1:2}return A=B(t),j=J[A]=R[A](t),{c(){e=S("div"),n=S("label"),i=S("div"),r=xe(o),s=G(),Pe(l.$$.fragment),a=G(),c=S("label"),d=S("div"),p=xe(u),_=G(),Pe(f.$$.fragment),g=G(),v=S("label"),y=S("div"),w=xe(b),k=G(),j.c(),h(i,"class","custom-variables__label svelte-1ke6bxa"),h(n,"class","custom-variables__form-row svelte-1ke6bxa"),h(d,"class","custom-variables__label svelte-1ke6bxa"),h(c,"class","custom-variables__form-row svelte-1ke6bxa"),h(y,"class","custom-variables__label svelte-1ke6bxa"),h(v,"class","custom-variables__form-row svelte-1ke6bxa"),h(e,"class","custom-variables__form")},m(z,q){F(z,e,q),$(e,n),$(n,i),$(i,r),$(n,s),Ee(l,n,null),$(e,a),$(e,c),$(c,d),$(d,p),$(c,_),Ee(f,c,null),$(e,g),$(e,v),$(v,y),$(y,w),$(v,k),J[A].m(v,null),T=!0},p(z,q){t=z,(!T||q&2)&&o!==(o=t[1]("customVariablesName")+"")&&at(r,o);const N={};q&1&&(N.value=t[24].name),q&4&&(N.disabled=t[2]),l.$set(N),(!T||q&2)&&u!==(u=t[1]("customVariablesType")+"")&&at(p,u);const Y={};q&4&&(Y.disabled=t[2]),q&2&&(Y.items=[{value:"string",text:t[1]("customVariablesTypeString")},{value:"number",text:t[1]("customVariablesTypeNumber")},{value:"integer",text:t[1]("customVariablesTypeInteger")},{value:"boolean",text:t[1]("customVariablesTypeBoolean")},{value:"url",text:t[1]("customVariablesTypeUrl")},{value:"color",text:t[1]("customVariablesTypeColor")},{value:"dict",text:t[1]("customVariablesTypeDict")},{value:"array",text:t[1]("customVariablesTypeArray")}]),!m&&q&1&&(m=!0,Y.value=t[24].type,Xn((()=>m=!1))),f.$set(Y),(!T||q&2)&&b!==(b=t[1]("customVariablesValue")+"")&&at(w,b);let x=A;A=B(t),A===x?J[A].p(t,q):(Dt(),H(J[x],1,1,(()=>{J[x]=null})),Vt(),j=J[A],j?j.p(t,q):(j=J[A]=R[A](t),j.c()),I(j,1),j.m(v,null))},i(z){T||(I(l.$$.fragment,z),I(f.$$.fragment,z),I(j),T=!0)},o(z){H(l.$$.fragment,z),H(f.$$.fragment,z),H(j),T=!1},d(z){z&&V(e),Ae(l),Ae(f),J[A].d()}}}function iae(t){let e,n,i=(t[24].name||t[1]("customVariablesEmptyName"))+"",o,r,s,l,a=t[25]+"",c,d;return{c(){e=S("div"),n=S("span"),o=xe(i),s=G(),l=S("span"),c=xe(a),h(n,"class","custom-variables__name svelte-1ke6bxa"),h(n,"title",r=t[24].name),h(l,"class","custom-variables__value svelte-1ke6bxa"),h(l,"title",d=t[25]),h(e,"slot","title"),h(e,"class","custom-variables__title svelte-1ke6bxa"),ne(e,"custom-variables__title_empty",!t[24].name)},m(u,p){F(u,e,p),$(e,n),$(n,o),$(e,s),$(e,l),$(l,c)},p(u,p){p&3&&i!==(i=(u[24].name||u[1]("customVariablesEmptyName"))+"")&&at(o,i),p&1&&r!==(r=u[24].name)&&h(n,"title",r),p&1&&a!==(a=u[25]+"")&&at(c,a),p&1&&d!==(d=u[25])&&h(l,"title",d),p&1&&ne(e,"custom-variables__title_empty",!u[24].name)},d(u){u&&V(e)}}}function U0(t){let e,n,i,o,r;function s(){return t[20](t[27])}return{c(){e=S("button"),h(e,"class","custom-variables__delete svelte-1ke6bxa"),h(e,"aria-label",n=t[1]("delete")),h(e,"data-custom-tooltip",i=t[1]("delete"))},m(l,a){F(l,e,a),o||(r=te(e,"click",Eo(zi(s))),o=!0)},p(l,a){t=l,a&2&&n!==(n=t[1]("delete"))&&h(e,"aria-label",n),a&2&&i!==(i=t[1]("delete"))&&h(e,"data-custom-tooltip",i)},d(l){l&&V(e),o=!1,r()}}}function W0(t,e){let n,i,o,r,s;i=new xo({props:{open:!e[24].name,mix:"custom-variables__spoiler",$$slots:{title:[iae],default:[nae]},$$scope:{ctx:e}}});let l=!e[2]&&U0(e);return{key:t,first:null,c(){n=S("div"),Pe(i.$$.fragment),o=G(),l&&l.c(),h(n,"class","custom-variables__item svelte-1ke6bxa"),ne(n,"custom-variables__item_disabled",e[2]),this.first=n},m(a,c){F(a,n,c),Ee(i,n,null),$(n,o),l&&l.m(n,null),s=!0},p(a,c){e=a;const d={};c&1&&(d.open=!e[24].name),c&268435463&&(d.$$scope={dirty:c,ctx:e}),i.$set(d),e[2]?l&&(l.d(1),l=null):l?l.p(e,c):(l=U0(e),l.c(),l.m(n,null)),(!s||c&4)&&ne(n,"custom-variables__item_disabled",e[2])},i(a){s||(I(i.$$.fragment,a),a&&_o((()=>{s&&(r||(r=Zi(n,Go,{},!0)),r.run(1))})),s=!0)},o(a){H(i.$$.fragment,a),a&&(r||(r=Zi(n,Go,{},!1)),r.run(0)),s=!1},d(a){a&&V(n),Ae(i),l&&l.d(),a&&r&&r.end()}}}function K0(t){let e,n;return e=new Zs({props:{cls:"custom-variables__add",disabled:t[2],$$slots:{default:[oae]},$$scope:{ctx:t}}}),e.$on("click",t[7]),{c(){Pe(e.$$.fragment)},m(i,o){Ee(e,i,o),n=!0},p(i,o){const r={};o&4&&(r.disabled=i[2]),o&268435458&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Ae(e,i)}}}function oae(t){let e=t[1]("customVariablesAdd")+"",n;return{c(){n=xe(e)},m(i,o){F(i,n,o)},p(i,o){o&2&&e!==(e=i[1]("customVariablesAdd")+"")&&at(n,e)},d(i){i&&V(n)}}}function rae(t){let e,n,i,o=[],r=new Map,s,l,a,c;e=new Il({props:{title:t[1]("customVariablesTitle")}});let d=ln(t[0]);const u=_=>_[24].id;for(let _=0;_<d.length;_+=1){let f=J0(t,d,_),m=u(f);r.set(m,o[_]=W0(m,f))}let p=!t[2]&&K0(t);return{c(){Pe(e.$$.fragment),n=G(),i=S("div");for(let _=0;_<o.length;_+=1)o[_].c();s=G(),p&&p.c(),l=G(),a=S("div"),h(a,"class","custom-variables__spacer svelte-1ke6bxa"),h(i,"class","custom-variables svelte-1ke6bxa")},m(_,f){Ee(e,_,f),F(_,n,f),F(_,i,f);for(let m=0;m<o.length;m+=1)o[m]&&o[m].m(i,null);$(i,s),p&&p.m(i,null),$(i,l),$(i,a),c=!0},p(_,[f]){const m={};f&2&&(m.title=_[1]("customVariablesTitle")),e.$set(m),f&16135&&(d=ln(_[0]),Dt(),o=Us(o,f,u,1,_,d,r,i,zl,W0,s,J0),Vt()),_[2]?p&&(Dt(),H(p,1,1,(()=>{p=null})),Vt()):p?(p.p(_,f),f&4&&I(p,1)):(p=K0(_),p.c(),I(p,1),p.m(i,l))},i(_){if(!c){I(e.$$.fragment,_);for(let f=0;f<d.length;f+=1)I(o[f]);I(p),c=!0}},o(_){H(e.$$.fragment,_);for(let f=0;f<o.length;f+=1)H(o[f]);H(p),c=!1},d(_){_&&(V(n),V(i)),Ae(e,_);for(let f=0;f<o.length;f+=1)o[f].d();p&&p.d()}}}function $u(t){return t.value}function Y0(t){return t.type==="integer"||t.type==="number"?t.type:""}function sae(t,e,n){let i,o,r,s;const{l10nString:l}=yt(oi);De(t,l,(M=>n(1,o=M)));const{state:a}=yt(Cn),{readOnly:c,tree:d}=a;De(t,c,(M=>n(2,s=M))),De(t,d,(M=>n(21,r=M)));const{customVariables:u}=a;De(t,u,(M=>n(0,i=M)));function p(M){a.pushCommand(new lp(a,M)),Mi(u,i=M,i),d.set(r)}function _(){const M=i.slice();M.push({id:a.genVariableId(),name:"",type:"string",value:""}),p(M)}function f(M,D){const R=D.detail,J={...i[M]};switch(R){case"string":case"url":case"color":J.value="";break;case"integer":case"number":J.value="0";break;case"boolean":J.value="false";break;case"dict":J.value="{}";break;case"array":J.value="[]";break}const B=i.slice();B[M]=J,p(B)}function m(M){if(M.type==="boolean"){if(M.value!=="true"&&M.value!=="false")return o("customVariablesBooleanValidation")}else if(M.type==="dict"||M.type==="array")try{JSON.parse(M.value)}catch{return o("customVariablesJsonValidation")}return""}function g(M,D){const R={...i[M]};R.name=String(D.detail.value);const J=i.slice();J[M]=R,p(J)}function v(M,D){const R={...i[M]};R.value=String(D.detail.value);const J=i.slice();J[M]=R,p(J)}function y(M,D){const R={...i[M]};R.value=String(D.detail);const J=i.slice();J[M]=R,p(J)}function b(M){const D=i.slice();D.splice(M,1),p(D)}const w=(M,D)=>g(M,D);function k(M,D){t.$$.not_equal(D.type,M)&&(D.type=M,u.set(i))}return[i,o,s,l,c,d,u,_,f,m,g,v,y,b,w,k,(M,D)=>f(M,D),(M,D)=>y(M,D),(M,D)=>v(M,D),(M,D)=>v(M,D),M=>b(M)]}class lae extends Gt{constructor(e){super(),Yt(this,e,sae,rae,Rt,{})}}class ap extends hr{constructor(n,i){super();on(this,"before");on(this,"after");this.before=wn(n.timers),this.after=i}undo(n){n.timers.set(this.before)}redo(n){n.timers.set(this.after)}canMerge(n){return super.canMerge(n)&&n instanceof ap&&this.after===n.before}mergeMeWith(n){this.after=n.after}toLangKey(){return"commands.change_timers"}}function G0(t,e,n){const i=t.slice();return i[25]=e[n],i[27]=n,i}function aae(t){let e,n,i,o=t[1]("timersId")+"",r,s,l,a,c,d,u=t[1]("timersValueVariable")+"",p,_,f,m,g,v,y=t[1]("timersDuration")+"",b,w,k,A,j,T,E=t[1]("timersTickInterval")+"",O,M,D,R,J,B,z=t[1]("timersTickActions")+"",q,N,Y,x,ce,ue,Z=t[1]("timersEndActions")+"",Q,se,_e,Oe;function W(...de){return t[15](t[27],...de)}l=new ho({props:{value:t[25].id,pattern:"[a-zA-Z_][a-zA-Z_0-9.]*",placeholder:"[a-zA-Z_][a-zA-Z_0-9.]*",disabled:t[2]}}),l.$on("change",W);function ge(...de){return t[16](t[27],...de)}f=new VV({props:{item:{type:"variable-name"},value:t[25].value_variable||""}}),f.$on("change",ge);function it(...de){return t[17](t[27],...de)}k=new ho({props:{value:t[25].duration,disabled:t[2]}}),k.$on("change",it);function ye(...de){return t[18](t[27],...de)}D=new ho({props:{value:t[25].tick_interval,disabled:t[2]}}),D.$on("change",ye);function rt(...de){return t[19](t[27],...de)}Y=new yu({props:{item:{type:"actions2"},value:t[25].tick_actions}}),Y.$on("change",rt);function U(...de){return t[20](t[27],...de)}return _e=new yu({props:{item:{type:"actions2"},value:t[25].end_actions}}),_e.$on("change",U),{c(){e=S("div"),n=S("label"),i=S("div"),r=xe(o),s=G(),Pe(l.$$.fragment),a=G(),c=S("label"),d=S("div"),p=xe(u),_=G(),Pe(f.$$.fragment),m=G(),g=S("label"),v=S("div"),b=xe(y),w=G(),Pe(k.$$.fragment),A=G(),j=S("label"),T=S("div"),O=xe(E),M=G(),Pe(D.$$.fragment),R=G(),J=S("div"),B=S("div"),q=xe(z),N=G(),Pe(Y.$$.fragment),x=G(),ce=S("div"),ue=S("div"),Q=xe(Z),se=G(),Pe(_e.$$.fragment),h(i,"class","timers__label svelte-q1uxjz"),h(n,"class","timers__form-row svelte-q1uxjz"),h(d,"class","timers__label svelte-q1uxjz"),h(c,"class","timers__form-row svelte-q1uxjz"),h(v,"class","timers__label svelte-q1uxjz"),h(g,"class","timers__form-row svelte-q1uxjz"),h(T,"class","timers__label svelte-q1uxjz"),h(j,"class","timers__form-row svelte-q1uxjz"),h(B,"class","timers__label timers__label_compact svelte-q1uxjz"),h(J,"class","timers__form-row svelte-q1uxjz"),h(ue,"class","timers__label timers__label_compact svelte-q1uxjz"),h(ce,"class","timers__form-row svelte-q1uxjz"),h(e,"class","timers__form")},m(de,pe){F(de,e,pe),$(e,n),$(n,i),$(i,r),$(n,s),Ee(l,n,null),$(e,a),$(e,c),$(c,d),$(d,p),$(c,_),Ee(f,c,null),$(e,m),$(e,g),$(g,v),$(v,b),$(g,w),Ee(k,g,null),$(e,A),$(e,j),$(j,T),$(T,O),$(j,M),Ee(D,j,null),$(e,R),$(e,J),$(J,B),$(B,q),$(J,N),Ee(Y,J,null),$(e,x),$(e,ce),$(ce,ue),$(ue,Q),$(ce,se),Ee(_e,ce,null),Oe=!0},p(de,pe){t=de,(!Oe||pe&2)&&o!==(o=t[1]("timersId")+"")&&at(r,o);const et={};pe&1&&(et.value=t[25].id),pe&4&&(et.disabled=t[2]),l.$set(et),(!Oe||pe&2)&&u!==(u=t[1]("timersValueVariable")+"")&&at(p,u);const we={};pe&1&&(we.value=t[25].value_variable||""),f.$set(we),(!Oe||pe&2)&&y!==(y=t[1]("timersDuration")+"")&&at(b,y);const Ie={};pe&1&&(Ie.value=t[25].duration),pe&4&&(Ie.disabled=t[2]),k.$set(Ie),(!Oe||pe&2)&&E!==(E=t[1]("timersTickInterval")+"")&&at(O,E);const Xe={};pe&1&&(Xe.value=t[25].tick_interval),pe&4&&(Xe.disabled=t[2]),D.$set(Xe),(!Oe||pe&2)&&z!==(z=t[1]("timersTickActions")+"")&&at(q,z);const vt={};pe&1&&(vt.value=t[25].tick_actions),Y.$set(vt),(!Oe||pe&2)&&Z!==(Z=t[1]("timersEndActions")+"")&&at(Q,Z);const Qe={};pe&1&&(Qe.value=t[25].end_actions),_e.$set(Qe)},i(de){Oe||(I(l.$$.fragment,de),I(f.$$.fragment,de),I(k.$$.fragment,de),I(D.$$.fragment,de),I(Y.$$.fragment,de),I(_e.$$.fragment,de),Oe=!0)},o(de){H(l.$$.fragment,de),H(f.$$.fragment,de),H(k.$$.fragment,de),H(D.$$.fragment,de),H(Y.$$.fragment,de),H(_e.$$.fragment,de),Oe=!1},d(de){de&&V(e),Ae(l),Ae(f),Ae(k),Ae(D),Ae(Y),Ae(_e)}}}function cae(t){let e,n,i=(t[25].id||t[1]("timersEmptyId"))+"",o,r;return{c(){e=S("div"),n=S("span"),o=xe(i),h(n,"class","timers__id svelte-q1uxjz"),h(n,"title",r=t[25].id),h(e,"slot","title"),h(e,"class","timers__title svelte-q1uxjz"),ne(e,"timers__title_empty",!t[25].id)},m(s,l){F(s,e,l),$(e,n),$(n,o)},p(s,l){l&3&&i!==(i=(s[25].id||s[1]("timersEmptyId"))+"")&&at(o,i),l&1&&r!==(r=s[25].id)&&h(n,"title",r),l&1&&ne(e,"timers__title_empty",!s[25].id)},d(s){s&&V(e)}}}function X0(t){let e,n,i,o,r;function s(){return t[21](t[27])}return{c(){e=S("button"),h(e,"class","timers__delete svelte-q1uxjz"),h(e,"aria-label",n=t[1]("delete")),h(e,"data-custom-tooltip",i=t[1]("delete"))},m(l,a){F(l,e,a),o||(r=te(e,"click",Eo(zi(s))),o=!0)},p(l,a){t=l,a&2&&n!==(n=t[1]("delete"))&&h(e,"aria-label",n),a&2&&i!==(i=t[1]("delete"))&&h(e,"data-custom-tooltip",i)},d(l){l&&V(e),o=!1,r()}}}function Z0(t,e){let n,i,o,r,s;i=new xo({props:{open:!e[25].id,mix:"timers__spoiler",$$slots:{title:[cae],default:[aae]},$$scope:{ctx:e}}});let l=!e[2]&&X0(e);return{key:t,first:null,c(){n=S("div"),Pe(i.$$.fragment),o=G(),l&&l.c(),h(n,"class","timers__item svelte-q1uxjz"),ne(n,"timers__item_disabled",e[2]),this.first=n},m(a,c){F(a,n,c),Ee(i,n,null),$(n,o),l&&l.m(n,null),s=!0},p(a,c){e=a;const d={};c&1&&(d.open=!e[25].id),c&268435463&&(d.$$scope={dirty:c,ctx:e}),i.$set(d),e[2]?l&&(l.d(1),l=null):l?l.p(e,c):(l=X0(e),l.c(),l.m(n,null)),(!s||c&4)&&ne(n,"timers__item_disabled",e[2])},i(a){s||(I(i.$$.fragment,a),a&&_o((()=>{s&&(r||(r=Zi(n,Go,{},!0)),r.run(1))})),s=!0)},o(a){H(i.$$.fragment,a),a&&(r||(r=Zi(n,Go,{},!1)),r.run(0)),s=!1},d(a){a&&V(n),Ae(i),l&&l.d(),a&&r&&r.end()}}}function x0(t){let e,n;return e=new Zs({props:{cls:"timers__add",disabled:t[2],$$slots:{default:[dae]},$$scope:{ctx:t}}}),e.$on("click",t[7]),{c(){Pe(e.$$.fragment)},m(i,o){Ee(e,i,o),n=!0},p(i,o){const r={};o&4&&(r.disabled=i[2]),o&268435458&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Ae(e,i)}}}function dae(t){let e=t[1]("timersAdd")+"",n;return{c(){n=xe(e)},m(i,o){F(i,n,o)},p(i,o){o&2&&e!==(e=i[1]("timersAdd")+"")&&at(n,e)},d(i){i&&V(n)}}}function uae(t){let e,n,i,o=[],r=new Map,s,l,a,c;e=new Il({props:{title:t[1]("timersTitle")}});let d=ln(t[0]);const u=_=>_[25].__id;for(let _=0;_<d.length;_+=1){let f=G0(t,d,_),m=u(f);r.set(m,o[_]=Z0(m,f))}let p=!t[2]&&x0(t);return{c(){Pe(e.$$.fragment),n=G(),i=S("div");for(let _=0;_<o.length;_+=1)o[_].c();s=G(),p&&p.c(),l=G(),a=S("div"),h(a,"class","timers__spacer svelte-q1uxjz"),h(i,"class","timers svelte-q1uxjz")},m(_,f){Ee(e,_,f),F(_,n,f),F(_,i,f);for(let m=0;m<o.length;m+=1)o[m]&&o[m].m(i,null);$(i,s),p&&p.m(i,null),$(i,l),$(i,a),c=!0},p(_,[f]){const m={};f&2&&(m.title=_[1]("timersTitle")),e.$set(m),f&32519&&(d=ln(_[0]),Dt(),o=Us(o,f,u,1,_,d,r,i,zl,Z0,s,G0),Vt()),_[2]?p&&(Dt(),H(p,1,1,(()=>{p=null})),Vt()):p?(p.p(_,f),f&4&&I(p,1)):(p=x0(_),p.c(),I(p,1),p.m(i,l))},i(_){if(!c){I(e.$$.fragment,_);for(let f=0;f<d.length;f+=1)I(o[f]);I(p),c=!0}},o(_){H(e.$$.fragment,_);for(let f=0;f<o.length;f+=1)H(o[f]);H(p),c=!1},d(_){_&&(V(n),V(i)),Ae(e,_);for(let f=0;f<o.length;f+=1)o[f].d();p&&p.d()}}}function pae(t,e,n){let i,o,r,s;const{l10nString:l}=yt(oi);De(t,l,(D=>n(1,r=D)));const{state:a}=yt(Cn),{timers:c,readOnly:d,tree:u}=a;De(t,c,(D=>n(0,i=D))),De(t,d,(D=>n(2,s=D))),De(t,u,(D=>n(22,o=D)));function p(D){a.pushCommand(new ap(a,D)),Mi(c,i=D,i),u.set(o)}function _(){const D=i.slice();D.push({__id:a.genTimerId(),id:""}),p(D)}function f(D,R){const J={...i[D]};J.id=String(R.detail.value);const B=i.slice();B[D]=J,p(B)}function m(D,R){const J={...i[D]};J.value_variable=String(R.detail.value);const B=i.slice();B[D]=J,p(B)}function g(D,R){const J={...i[D]};J.duration=R.detail.value;const B=i.slice();B[D]=J,p(B)}function v(D,R){const J={...i[D]};J.tick_interval=R.detail.value;const B=i.slice();B[D]=J,p(B)}function y(D,R){var z;const J={...i[D]};J.tick_actions=(z=R.detail.values.find((q=>q.prop==="actions")))==null?void 0:z.value;const B=i.slice();B[D]=J,p(B)}function b(D,R){var z;const J={...i[D]};J.end_actions=(z=R.detail.values.find((q=>q.prop==="actions")))==null?void 0:z.value;const B=i.slice();B[D]=J,p(B)}function w(D){const R=i.slice();R.splice(D,1),p(R)}return[i,r,s,l,c,d,u,_,f,m,g,v,y,b,w,(D,R)=>f(D,R),(D,R)=>m(D,R),(D,R)=>g(D,R),(D,R)=>v(D,R),(D,R)=>y(D,R),(D,R)=>b(D,R),D=>w(D)]}class _ae extends Gt{constructor(e){super(),Yt(this,e,pae,uae,Rt,{})}}function fae(t){let e,n,i;var o=t[0][0].component;function r(s,l){return{}}return o&&(e=bl(o,r())),{c(){e&&Pe(e.$$.fragment),n=Vn()},m(s,l){e&&Ee(e,s,l),F(s,n,l),i=!0},p(s,l){if(l&1&&o!==(o=s[0][0].component)){if(e){Dt();const a=e;H(a.$$.fragment,1,0,(()=>{Ae(a,1)})),Vt()}o?(e=bl(o,r()),Pe(e.$$.fragment),I(e.$$.fragment,1),Ee(e,n.parentNode,n)):e=null}},i(s){i||(e&&I(e.$$.fragment,s),i=!0)},o(s){e&&H(e.$$.fragment,s),i=!1},d(s){s&&V(n),e&&Ae(e,s)}}}function mae(t){let e,n;return e=new $1({props:{orientation:"vertical",components:t[0]}}),{c(){Pe(e.$$.fragment)},m(i,o){Ee(e,i,o),n=!0},p(i,o){const r={};o&1&&(r.components=i[0]),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Ae(e,i)}}}function gae(t){let e,n,i,o;const r=[mae,fae],s=[];function l(a,c){return a[0].length?0:1}return e=l(t),n=s[e]=r[e](t),{c(){n.c(),i=Vn()},m(a,c){s[e].m(a,c),F(a,i,c),o=!0},p(a,[c]){let d=e;e=l(a),e===d?s[e].p(a,c):(Dt(),H(s[d],1,1,(()=>{s[d]=null})),Vt(),n=s[e],n?n.p(a,c):(n=s[e]=r[e](a),n.c()),I(n,1),n.m(i.parentNode,i))},i(a){o||(I(n),o=!0)},o(a){H(n),o=!1},d(a){a&&V(i),s[e].d(a)}}}function hae(t,e,n){let i,o,r,s,{items:l}=e;const{state:a}=yt(Cn),{paletteEnabled:c,readOnly:d}=a;return De(t,c,(u=>n(5,r=u))),De(t,d,(u=>n(6,s=u))),t.$$set=u=>{"items"in u&&n(3,l=u.items)},t.$$.update=()=>{t.$$.dirty&96&&n(4,i={"new-component":s?null:hie,"component-tree":aie,"component-props":FV,preview:Yne,palette:r?Hie:null,code:NV,"component-props:code":Ile,"tanker-overview":Rle,"sources-overview":Yle,"custom-variables":lae,timers:_ae}),t.$$.dirty&24&&n(0,o=l.map((u=>{if(i[u])return{component:i[u],weight:1,minSize:200}})).filter(kr))},[o,c,d,l,i,r,s]}class vae extends Gt{constructor(e){super(),Yt(this,e,hae,gae,Rt,{items:3})}}function bae(t){let e,n=!0,i,o,r,s,l;return import("./editor.js").then((({createEditor:a})=>{n&&(e=a(t),i&&e.setValue(i),o&&e.setTheme(o),r&&e.setReadOnly(r),s&&e.revealLoc(s),l&&e.decorateRanges(l))})),{setValue(a){e?e.setValue(a):i=a},setTheme(a){e?e.setTheme(a):o=a},setReadOnly(a){e?e.setReadOnly(a):r=a},revealLoc(a){e?e.revealLoc(a):s=a},decorateRanges(a){e?e.decorateRanges(a):l=a},isFocused(){return(e==null?void 0:e.isFocused())||!1},destroy(){n=!1,e==null||e.destroy()}}}function Q0(t){var a,c;let e,n,i,o,r=`${t[1].bottom+t[7]-(((a=t[5])==null?void 0:a.top)||0)}px`,s=`${t[1].left+t[6]+(t[4]==="center"?t[1].width/2:0)-(((c=t[5])==null?void 0:c.left)||0)}px`,l;return{c(){e=S("div"),n=xe(t[3]),h(e,"class",i="custom-tooltip custom-tooltip_align_"+t[4]+" svelte-1atc9mm"),ke(e,"top",r),ke(e,"left",s)},m(d,u){F(d,e,u),$(e,n),l=!0},p(d,u){var p,_;(!l||u&8)&&at(n,d[3]),(!l||u&16&&i!==(i="custom-tooltip custom-tooltip_align_"+d[4]+" svelte-1atc9mm"))&&h(e,"class",i),u&162&&r!==(r=`${d[1].bottom+d[7]-(((p=d[5])==null?void 0:p.top)||0)}px`)&&ke(e,"top",r),u&114&&s!==(s=`${d[1].left+d[6]+(d[4]==="center"?d[1].width/2:0)-(((_=d[5])==null?void 0:_.left)||0)}px`)&&ke(e,"left",s)},i(d){l||(_o((()=>{l&&(o||(o=Zi(e,fr,{y:10,duration:200},!0)),o.run(1))})),l=!0)},o(d){o||(o=Zi(e,fr,{y:10,duration:200},!1)),o.run(0),l=!1},d(d){d&&V(e),d&&o&&o.end()}}}function ev(t){let e,n,i=t[3]&&t[1]&&Q0(t);return{c(){i&&i.c(),e=Vn()},m(o,r){i&&i.m(o,r),F(o,e,r),n=!0},p(o,r){o[3]&&o[1]?i?(i.p(o,r),r&10&&I(i,1)):(i=Q0(o),i.c(),I(i,1),i.m(e.parentNode,e)):i&&(Dt(),H(i,1,1,(()=>{i=null})),Vt())},i(o){n||(I(i),n=!0)},o(o){H(i),n=!1},d(o){o&&V(e),i&&i.d(o)}}}function yae(t){let e=!1,n=()=>{e=!1},i,o,r=t[0],s,l,a;_o(t[9]);let c=ev(t);return{c(){o=S("div"),c.c()},m(d,u){F(d,o,u),c.m(o,null),t[10](o),s=!0,l||(a=te(window,"scroll",(()=>{e=!0,clearTimeout(i),i=setTimeout(n,100),t[9]()})),l=!0)},p(d,[u]){u&192&&!e&&(e=!0,clearTimeout(i),scrollTo(d[6],d[7]),i=setTimeout(n,100)),u&1&&Rt(r,r=d[0])?(Dt(),H(c,1,1,tn),Vt(),c=ev(d),c.c(),I(c,1),c.m(o,null)):c.p(d,u)},i(d){s||(I(c),s=!0)},o(d){H(c),s=!1},d(d){d&&V(o),c.d(d),t[10](null),l=!1,a()}}}function wae(t,e,n){let{owner:i}=e,o=null,r="",s="center",l,a,c,d=0,u=0;function p(){n(3,r="")}function _(){n(6,d=window.pageXOffset),n(7,u=window.pageYOffset)}function f(m){pt[m?"unshift":"push"]((()=>{c=m,n(2,c)}))}return t.$$set=m=>{"owner"in m&&n(0,i=m.owner)},t.$$.update=()=>{var m;if(t.$$.dirty&7){let g="center";n(1,l=i==null?void 0:i.getBoundingClientRect()),l&&l.left<50&&(g="left"),n(3,r=(i==null?void 0:i.getAttribute("data-custom-tooltip"))||""),n(4,s=(i==null?void 0:i.getAttribute("data-custom-tooltop-align"))||g),n(5,a=(m=c==null?void 0:c.parentElement)==null?void 0:m.getBoundingClientRect())}t.$$.dirty&257&&(o&&(o.removeEventListener("click",p),o.removeEventListener("pointerdown",p)),i&&(i.addEventListener("click",p),i.addEventListener("pointerdown",p),n(8,o=i)))},[i,l,c,r,s,a,d,u,o,_,f]}class $ae extends Gt{constructor(e){super(),Yt(this,e,wae,yae,Rt,{owner:0})}}function kae(t){let e,n,i,o,r,s,l,a,c,d,u,p,_,f,m,g,v,y,b,w,k,A,j,T,E,O,M;function D(J){t[16](J)}let R={readOnly:t[1]};return t[0]!==void 0&&(R.value=t[0]),j=new pd({props:R}),pt.push((()=>Gn(j,"value",D))),j.$on("change",t[11]),{c(){e=S("div"),n=S("div"),i=S("div"),o=S("div"),r=S("div"),s=G(),l=S("div"),a=S("div"),c=S("div"),d=G(),u=S("input"),p=G(),_=S("div"),f=S("div"),m=G(),g=S("div"),v=G(),y=S("div"),b=G(),w=S("input"),k=G(),A=S("div"),Pe(j.$$.fragment),h(r,"class","color-select__target svelte-4uc5q5"),ke(r,"--saturation",t[3]),ke(r,"--value",t[4]),h(o,"class","color-select__value svelte-4uc5q5"),h(i,"class","color-select__saturation svelte-4uc5q5"),h(n,"class","color-select__spectrum svelte-4uc5q5"),h(n,"tabindex","0"),ke(n,"background",t[7]),h(c,"class","color-select__range-value svelte-4uc5q5"),h(u,"type","range"),h(u,"class","color-select__range-input svelte-4uc5q5"),u.value=t[2],h(u,"min","0"),h(u,"max","0.99"),h(u,"step","0.01"),u.disabled=t[1],h(a,"class","color-select__range color-select__hue svelte-4uc5q5"),ke(a,"--value",t[2]),h(f,"class","color-select__alpha-bg svelte-4uc5q5"),h(g,"class","color-select__alpha-value svelte-4uc5q5"),h(y,"class","color-select__range-value svelte-4uc5q5"),h(w,"type","range"),h(w,"class","color-select__range-input svelte-4uc5q5"),h(w,"min","0"),h(w,"max","1"),h(w,"step","0.01"),w.value=t[6],w.disabled=t[1],h(_,"class","color-select__range color-select__alpha svelte-4uc5q5"),ke(_,"--value",t[6]),ke(_,"--color",t[8]),h(A,"class","color-select__input svelte-4uc5q5"),h(l,"class","color-select__values svelte-4uc5q5"),h(e,"class","color-select svelte-4uc5q5"),ne(e,"color-select_disabled",t[1])},m(J,B){F(J,e,B),$(e,n),$(n,i),$(i,o),$(o,r),t[15](n),$(e,s),$(e,l),$(l,a),$(a,c),$(a,d),$(a,u),$(l,p),$(l,_),$(_,f),$(_,m),$(_,g),$(_,v),$(_,y),$(_,b),$(_,w),$(l,k),$(l,A),Ee(j,A,null),E=!0,O||(M=[te(n,"pointerdown",t[12]),te(n,"keydown",t[13]),te(u,"input",t[9]),te(w,"input",t[10])],O=!0)},p(J,[B]){B&8&&ke(r,"--saturation",J[3]),B&16&&ke(r,"--value",J[4]),B&128&&ke(n,"background",J[7]),(!E||B&4)&&(u.value=J[2]),(!E||B&2)&&(u.disabled=J[1]),B&4&&ke(a,"--value",J[2]),(!E||B&64)&&(w.value=J[6]),(!E||B&2)&&(w.disabled=J[1]),B&64&&ke(_,"--value",J[6]),B&256&&ke(_,"--color",J[8]);const z={};B&2&&(z.readOnly=J[1]),!T&&B&1&&(T=!0,z.value=J[0],Xn((()=>T=!1))),j.$set(z),(!E||B&2)&&ne(e,"color-select_disabled",J[1])},i(J){E||(I(j.$$.fragment,J),E=!0)},o(J){H(j.$$.fragment,J),E=!1},d(J){J&&V(e),t[15](null),Ae(j),O=!1,Rn(M)}}}const tv={a:255,r:0,g:0,b:0};function jae(t,e,n){let i,o,r,{value:s}=e,{disabled:l=!1}=e;const a=_i();let c=_r(s||"")||{...tv},d=0,u=0,p=0,_;v([]);function f(T){n(2,d=Number(T.target.value));const E=Ra({h:d,s:u,v:p,a:r});n(14,c=E),v(["hue","saturation","value"]),a("change",s)}function m(T){n(14,c={...c,a:Math.round(Number(T.target.value)*255)}),v(["alpha"]),a("change",s)}function g(){const T=_r(s);T&&(n(14,c=T),v(["hex"]),a("change",s))}function v(T){const E=Tie(c);T.includes("hue")||n(2,d=E.h),T.includes("saturation")||n(3,u=E.s),T.includes("value")||n(4,p=E.v),n(0,s=ms(c))}function y(T){const E=_.getBoundingClientRect(),O=Math.max(0,Math.min(1,(T.clientX-E.left)/E.width)),M=Math.max(0,Math.min(1,(T.clientY-E.top)/E.height));n(3,u=O),n(4,p=1-M);const D=Ra({h:d,s:u,v:p,a:r});n(14,c=D),v(["hue","saturation","value"]),a("change",s)}function b(T){if(T.button!==0||l)return;y(T),T.preventDefault(),_.focus({preventScroll:!0});function E(M){y(M),M.preventDefault()}function O(M){M.preventDefault(),document.body.removeEventListener("pointermove",E),document.body.removeEventListener("pointerup",O),document.body.removeEventListener("pointercancel",O);const D=R=>{R.preventDefault(),R.stopPropagation()};document.body.addEventListener("click",D),setTimeout((()=>{document.body.removeEventListener("click",D)}),150)}document.body.addEventListener("pointermove",E),document.body.addEventListener("pointerup",O),document.body.addEventListener("pointercancel",O)}function w(T,E){n(3,u=Math.max(0,Math.min(1,u+T))),n(4,p=Math.max(0,Math.min(1,p-E)));const O=Ra({h:d,s:u,v:p,a:r});n(14,c=O),v(["hue","saturation","value"]),a("change",s)}function k(T){if(UL.isPressed(T))w(0,-.05);else if(YL.isPressed(T))w(.05,0);else if(WL.isPressed(T))w(0,.05);else if(KL.isPressed(T))w(-.05,0);else return;T.preventDefault(),T.stopPropagation()}function A(T){pt[T?"unshift":"push"]((()=>{_=T,n(5,_)}))}function j(T){s=T,n(0,s)}return t.$$set=T=>{"value"in T&&n(0,s=T.value),"disabled"in T&&n(1,l=T.disabled)},t.$$.update=()=>{t.$$.dirty&16385&&s!==ms(c)&&(n(14,c=_r(s||"")||{...tv}),v([])),t.$$.dirty&16384&&n(8,i=_a({...c,a:255})),t.$$.dirty&4&&n(7,o=_a(Ra({h:d,s:1,v:1,a:1}))),t.$$.dirty&16384&&n(6,r=c.a/255)},[s,l,d,u,p,_,r,o,i,f,m,g,b,k,c,A,j]}class cp extends Gt{constructor(e){super(),Yt(this,e,jae,kae,Rt,{value:0,disabled:1})}}const Sae='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="27" fill="none"><path stroke="currentColor" d="M.5 6A5.5 5.5 0 0 1 6 .5h12A5.5 5.5 0 0 1 23.5 6v12a5.5 5.5 0 0 1-5.5 5.5h-2.586a1.5 1.5 0 0 0-1.06.44l-2 2a.5.5 0 0 1-.708 0l-2-2a1.5 1.5 0 0 0-1.06-.44H6A5.5 5.5 0 0 1 .5 18V6Z"/></svg>',nv="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20fill='none'%3e%3cpath%20fill='%235959E8'%20d='M7%209h18v14H7z'/%3e%3cpath%20fill='%23fff'%20d='M15.159%2011.57h1.656l3.04%208.143h-1.182l-.876-2.328h-3.75l-.864%202.328h-1.041l3.017-8.143Zm2.283%204.85-1.514-4.055-1.515%204.055h3.03Z'/%3e%3cpath%20stroke='%23000'%20d='M6.5%206.5h19v19h-19z'/%3e%3c/svg%3e",iv="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20fill='none'%3e%3cpath%20fill='%235959E8'%20fill-opacity='.25'%20d='M3%207h26v18H3z'/%3e%3cpath%20fill='%235959E8'%20d='M6%207h20v18H6z'/%3e%3cpath%20fill='%23fff'%20d='M14.877%2010.093h2.209L21.14%2020.95h-1.577l-1.168-3.104h-5l-1.152%203.104h-1.389l4.023-10.857Zm3.045%206.466-2.02-5.406-2.019%205.406h4.039Z'/%3e%3cpath%20stroke='%23000'%20d='M6.5%206.5h19v19h-19z'/%3e%3c/svg%3e",ov="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20fill='none'%3e%3cpath%20fill='%235959E8'%20fill-opacity='.25'%20d='M0%204h32v24H0z'/%3e%3cpath%20fill='%235959E8'%20d='M6%206h20v20H6z'/%3e%3cpath%20fill='%23fff'%20d='M14.246%208.484h2.892l5.31%2014.219H20.38l-1.528-4.066h-6.55l-1.507%204.066H8.978l5.268-14.219Zm3.987%208.468-2.645-7.08-2.644%207.08h5.289Z'/%3e%3cpath%20stroke='%23000'%20d='M6.5%206.5h19v19h-19z'/%3e%3c/svg%3e",rv="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20fill='none'%3e%3cpath%20fill='%235959E8'%20d='M7%207h18v18H7z'/%3e%3cpath%20fill='%23fff'%20d='M15.159%2010.305h1.656l3.04%2010.47h-1.182l-.876-2.994h-3.75l-.864%202.993h-1.041l3.017-10.47Zm2.283%206.235-1.514-5.213-1.515%205.213h3.03Z'/%3e%3cpath%20stroke='%23000'%20d='M6.5%206.5h19v19h-19z'/%3e%3c/svg%3e",sv="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20fill='none'%3e%3cpath%20fill='%23595DFF'%20d='M7%209h18v14H7z'/%3e%3cpath%20fill='%23fff'%20d='M15.159%2011.57h1.656l3.04%208.143h-1.182l-.876-2.328h-3.75l-.864%202.328h-1.041l3.017-8.143Zm2.283%204.85-1.514-4.055-1.515%204.055h3.03Z'/%3e%3cpath%20stroke='%23000'%20d='M6.5%206.5h19v19h-19z'/%3e%3c/svg%3e",lv="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20fill='none'%3e%3cpath%20fill='%235959E8'%20fill-opacity='.52'%20d='M3%207h26v18H3z'/%3e%3cpath%20fill='%23595DFF'%20d='M6%207h20v18H6z'/%3e%3cpath%20fill='%23fff'%20d='M14.877%2010.093h2.209L21.14%2020.95h-1.577l-1.168-3.104h-5l-1.152%203.104h-1.389l4.023-10.857Zm3.045%206.466-2.02-5.406-2.019%205.406h4.039Z'/%3e%3cpath%20stroke='%23000'%20d='M6.5%206.5h19v19h-19z'/%3e%3c/svg%3e",av="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20fill='none'%3e%3cpath%20fill='%235959E8'%20fill-opacity='.52'%20d='M0%204h32v24H0z'/%3e%3cpath%20fill='%23595DFF'%20d='M6%206h20v20H6z'/%3e%3cpath%20fill='%23fff'%20d='M14.246%208.484h2.892l5.31%2014.219H20.38l-1.528-4.066h-6.55l-1.507%204.066H8.978l5.268-14.219Zm3.987%208.468-2.645-7.08-2.644%207.08h5.289Z'/%3e%3cpath%20stroke='%23000'%20d='M6.5%206.5h19v19h-19z'/%3e%3c/svg%3e",cv="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20fill='none'%3e%3cpath%20fill='%23595DFF'%20d='M7%207h18v18H7z'/%3e%3cpath%20fill='%23fff'%20d='M15.159%2010.305h1.656l3.04%2010.47h-1.182l-.876-2.994h-3.75l-.864%202.993h-1.041l3.017-10.47Zm2.283%206.235-1.514-5.213-1.515%205.213h3.03Z'/%3e%3cpath%20stroke='%23000'%20d='M6.5%206.5h19v19h-19z'/%3e%3c/svg%3e";function dv(t,e,n){const i=t.slice();return i[12]=e[n],i}function uv(t){let e,n,i,o,r=t[12].name+"",s,l,a,c,d;n=new Xs({props:{color:t[12][t[2]],mix:"palette-selector__preview"}});function u(){return t[9](t[12])}return{c(){e=S("button"),Pe(n.$$.fragment),i=G(),o=S("div"),s=xe(r),l=G(),h(o,"class","palette-selector__name svelte-5xmv4d"),h(e,"class","palette-selector__item svelte-5xmv4d"),ne(e,"palette-selector__item_selected",t[0]===t[12].id)},m(p,_){F(p,e,_),Ee(n,e,null),$(e,i),$(e,o),$(o,s),$(e,l),a=!0,c||(d=te(e,"click",u),c=!0)},p(p,_){t=p;const f={};_&12&&(f.color=t[12][t[2]]),n.$set(f),(!a||_&8)&&r!==(r=t[12].name+"")&&at(s,r),(!a||_&9)&&ne(e,"palette-selector__item_selected",t[0]===t[12].id)},i(p){a||(I(n.$$.fragment,p),a=!0)},o(p){H(n.$$.fragment,p),a=!1},d(p){p&&V(e),Ae(n),c=!1,d()}}}function Tae(t){let e,n,i=ln(t[3]),o=[];for(let s=0;s<i.length;s+=1)o[s]=uv(dv(t,i,s));const r=s=>H(o[s],1,1,(()=>{o[s]=null}));return{c(){e=S("div");for(let s=0;s<o.length;s+=1)o[s].c();h(e,"class","palette-selector__list svelte-5xmv4d")},m(s,l){F(s,e,l);for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(e,null);n=!0},p(s,l){if(l&141){i=ln(s[3]);let a;for(a=0;a<i.length;a+=1){const c=dv(s,i,a);o[a]?(o[a].p(c,l),I(o[a],1)):(o[a]=uv(c),o[a].c(),I(o[a],1),o[a].m(e,null))}for(Dt(),a=i.length;a<o.length;a+=1)r(a);Vt()}},i(s){if(!n){for(let l=0;l<i.length;l+=1)I(o[l]);n=!0}},o(s){o=o.filter(Boolean);for(let l=0;l<o.length;l+=1)H(o[l]);n=!1},d(s){s&&V(e),Bi(o,s)}}}function Cae(t){let e,n=t[1]("localPalette")+"",i;return{c(){e=S("div"),i=xe(n),h(e,"slot","title")},m(o,r){F(o,e,r),$(e,i)},p(o,r){r&2&&n!==(n=o[1]("localPalette")+"")&&at(i,n)},d(o){o&&V(e)}}}function zae(t){let e,n,i,o=t[1]("palette")+"",r,s,l,a,c,d,u,p;function _(m){t[8](m)}let f={mix:"palette-selector__theme",name:"previewTheme2",options:[{text:t[1]("lightTheme"),value:"light",icon:Fs},{text:t[1]("darkTheme"),value:"dark",icon:Ns}],theme:"normal",iconSize:"20",customTooltips:!1};return t[2]!==void 0&&(f.value=t[2]),l=new Dl({props:f}),pt.push((()=>Gn(l,"value",_))),u=new xo({props:{theme:"props",$$slots:{title:[Cae],default:[Tae]},$$scope:{ctx:t}}}),{c(){e=S("div"),n=S("div"),i=S("div"),r=xe(o),s=G(),Pe(l.$$.fragment),c=G(),d=S("div"),Pe(u.$$.fragment),h(i,"class","palette-selector__title-text svelte-5xmv4d"),h(n,"class","palette-selector__title svelte-5xmv4d"),h(d,"class","palette-selector__content svelte-5xmv4d"),h(e,"class","palette-selector svelte-5xmv4d")},m(m,g){F(m,e,g),$(e,n),$(n,i),$(i,r),$(n,s),Ee(l,n,null),$(e,c),$(e,d),Ee(u,d,null),p=!0},p(m,[g]){(!p||g&2)&&o!==(o=m[1]("palette")+"")&&at(r,o);const v={};g&2&&(v.options=[{text:m[1]("lightTheme"),value:"light",icon:Fs},{text:m[1]("darkTheme"),value:"dark",icon:Ns}]),!a&&g&4&&(a=!0,v.value=m[2],Xn((()=>a=!1))),l.$set(v);const y={};g&32783&&(y.$$scope={dirty:g,ctx:m}),u.$set(y)},i(m){p||(I(l.$$.fragment,m),I(u.$$.fragment,m),p=!0)},o(m){H(l.$$.fragment,m),H(u.$$.fragment,m),p=!1},d(m){m&&V(e),Ae(l),Ae(u)}}}function Eae(t,e,n){let i,o,r,{paletteId:s}=e;const{l10n:l}=yt(oi);De(t,l,(m=>n(1,i=m)));const{state:a}=yt(Cn),{palette:c,previewThemeStore:d}=a;De(t,c,(m=>n(3,r=m))),De(t,d,(m=>n(2,o=m)));const u=_i();function p(m){n(0,s=m),u("change",m)}function _(m){o=m,d.set(o)}const f=m=>p(m.id);return t.$$set=m=>{"paletteId"in m&&n(0,s=m.paletteId)},[s,i,o,r,l,c,d,p,_,f]}class RV extends Gt{constructor(e){super(),Yt(this,e,Eae,zae,Rt,{paletteId:0})}}function pv(t,e,n){const i=t.slice();return i[46]=e[n],i[48]=n,i}function _v(t){let e,n;return e=new Cr({props:{target:t[6],overflow:"visible",canMove:!0,wide:t[8],$$slots:{default:[Pae]},$$scope:{ctx:t}}}),e.$on("close",t[16]),{c(){Pe(e.$$.fragment)},m(i,o){Ee(e,i,o),n=!0},p(i,o){const r={};o[0]&64&&(r.target=i[6]),o[0]&256&&(r.wide=i[8]),o[0]&4029|o[1]&262144&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Ae(e,i)}}}function fv(t){let e,n,i,o;function r(l){t[32](l)}let s={};return t[4]!==void 0&&(s.paletteId=t[4]),n=new RV({props:s}),pt.push((()=>Gn(n,"paletteId",r))),n.$on("change",t[24]),{c(){e=S("div"),Pe(n.$$.fragment),h(e,"class","background2-dialog__panel background2-dialog__panel_left svelte-iw0i73")},m(l,a){F(l,e,a),Ee(n,e,null),o=!0},p(l,a){const c={};!i&&a[0]&16&&(i=!0,c.paletteId=l[4],Xn((()=>i=!1))),n.$set(c)},i(l){o||(I(n.$$.fragment,l),o=!0)},o(l){H(n.$$.fragment,l),o=!1},d(l){l&&V(e),Ae(n)}}}function mv(t){let e,n,i,o,r;return{c(){e=S("button"),n=S("div"),h(n,"class","background2-dialog__palette-icon svelte-iw0i73"),h(e,"class","background2-dialog__palette-toggle svelte-iw0i73"),h(e,"title",i=t[10]("palette")),ne(e,"background2-dialog__palette-toggle_toggled",t[8])},m(s,l){F(s,e,l),$(e,n),o||(r=te(e,"click",t[21]),o=!0)},p(s,l){l[0]&1024&&i!==(i=s[10]("palette"))&&h(e,"title",i),l[0]&256&&ne(e,"background2-dialog__palette-toggle_toggled",s[8])},d(s){s&&V(e),o=!1,r()}}}function Aae(t){let e,n,i=t[10]("props.image_url")+"",o,r,s,l,a,c,d,u=t[10]("props.image_scale")+"",p,_,f,m,g,v,y,b=t[10]("props.content_alignment")+"",w,k,A,j,T,E,O,M,D=t[10]("props.alpha")+"",R,J,B,z,q,N;function Y(W){t[38](W)}let x={subtype:"file",fileType:"image",disabled:t[3]};t[2].image_url!==void 0&&(x.value=t[2].image_url),s=new ho({props:x}),pt.push((()=>Gn(s,"value",Y)));function ce(W){t[39](W)}let ue={name:"scale",defaultValue:"fill",options:[{text:t[10]("props.scale_fit"),value:"fit",iconLight:nv,iconDark:sv},{text:t[10]("props.scale_fill"),value:"fill",iconLight:iv,iconDark:lv},{text:t[10]("props.scale_no_scale"),value:"no_scale",iconLight:ov,iconDark:av},{text:t[10]("props.scale_stretch"),value:"stretch",iconLight:rv,iconDark:cv}],theme:"secondary",customTooltips:!1,disabled:t[3]};t[2].scale!==void 0&&(ue.value=t[2].scale),f=new Dl({props:ue}),pt.push((()=>Gn(f,"value",ce)));function Z(W){t[40](W)}function Q(W){t[41](W)}let se={disabled:t[3]};t[2].content_alignment_horizontal!==void 0&&(se.horizontal=t[2].content_alignment_horizontal),t[2].content_alignment_vertical!==void 0&&(se.vertical=t[2].content_alignment_vertical),A=new IV({props:se}),pt.push((()=>Gn(A,"horizontal",Z))),pt.push((()=>Gn(A,"vertical",Q)));function _e(W){t[42](W)}let Oe={subtype:"percent",min:0,max:100,defaultValue:1,disabled:t[3]};return t[2].alpha!==void 0&&(Oe.value=t[2].alpha),z=new ho({props:Oe}),pt.push((()=>Gn(z,"value",_e))),{c(){e=S("label"),n=S("div"),o=xe(i),r=G(),Pe(s.$$.fragment),a=G(),c=S("div"),d=S("div"),p=xe(u),_=G(),Pe(f.$$.fragment),g=G(),v=S("div"),y=S("div"),w=xe(b),k=G(),Pe(A.$$.fragment),E=G(),O=S("div"),M=S("div"),R=xe(D),J=G(),B=S("div"),Pe(z.$$.fragment),h(n,"class","background2-dialog__label svelte-iw0i73"),h(d,"class","background2-dialog__label svelte-iw0i73"),h(y,"class","background2-dialog__label svelte-iw0i73"),h(M,"class","background2-dialog__label svelte-iw0i73"),h(B,"class","background2-dialog__alpha svelte-iw0i73")},m(W,ge){F(W,e,ge),$(e,n),$(n,o),$(e,r),Ee(s,e,null),F(W,a,ge),F(W,c,ge),$(c,d),$(d,p),$(c,_),Ee(f,c,null),F(W,g,ge),F(W,v,ge),$(v,y),$(y,w),$(v,k),Ee(A,v,null),F(W,E,ge),F(W,O,ge),$(O,M),$(M,R),$(O,J),$(O,B),Ee(z,B,null),N=!0},p(W,ge){(!N||ge[0]&1024)&&i!==(i=W[10]("props.image_url")+"")&&at(o,i);const it={};ge[0]&8&&(it.disabled=W[3]),!l&&ge[0]&4&&(l=!0,it.value=W[2].image_url,Xn((()=>l=!1))),s.$set(it),(!N||ge[0]&1024)&&u!==(u=W[10]("props.image_scale")+"")&&at(p,u);const ye={};ge[0]&1024&&(ye.options=[{text:W[10]("props.scale_fit"),value:"fit",iconLight:nv,iconDark:sv},{text:W[10]("props.scale_fill"),value:"fill",iconLight:iv,iconDark:lv},{text:W[10]("props.scale_no_scale"),value:"no_scale",iconLight:ov,iconDark:av},{text:W[10]("props.scale_stretch"),value:"stretch",iconLight:rv,iconDark:cv}]),ge[0]&8&&(ye.disabled=W[3]),!m&&ge[0]&4&&(m=!0,ye.value=W[2].scale,Xn((()=>m=!1))),f.$set(ye),(!N||ge[0]&1024)&&b!==(b=W[10]("props.content_alignment")+"")&&at(w,b);const rt={};ge[0]&8&&(rt.disabled=W[3]),!j&&ge[0]&4&&(j=!0,rt.horizontal=W[2].content_alignment_horizontal,Xn((()=>j=!1))),!T&&ge[0]&4&&(T=!0,rt.vertical=W[2].content_alignment_vertical,Xn((()=>T=!1))),A.$set(rt),(!N||ge[0]&1024)&&D!==(D=W[10]("props.alpha")+"")&&at(R,D);const U={};ge[0]&8&&(U.disabled=W[3]),!q&&ge[0]&4&&(q=!0,U.value=W[2].alpha,Xn((()=>q=!1))),z.$set(U)},i(W){N||(I(s.$$.fragment,W),I(f.$$.fragment,W),I(A.$$.fragment,W),I(z.$$.fragment,W),N=!0)},o(W){H(s.$$.fragment,W),H(f.$$.fragment,W),H(A.$$.fragment,W),H(z.$$.fragment,W),N=!1},d(W){W&&(V(e),V(a),V(c),V(g),V(v),V(E),V(O)),Ae(s),Ae(f),Ae(A),Ae(z)}}}function Oae(t){let e=Array.isArray(t[2].colors),n,i,o=e&&gv(t);return{c(){o&&o.c(),n=Vn()},m(r,s){o&&o.m(r,s),F(r,n,s),i=!0},p(r,s){s[0]&4&&(e=Array.isArray(r[2].colors)),e?o?(o.p(r,s),s[0]&4&&I(o,1)):(o=gv(r),o.c(),I(o,1),o.m(n.parentNode,n)):o&&(Dt(),H(o,1,1,(()=>{o=null})),Vt())},i(r){i||(I(o),i=!0)},o(r){H(o),i=!1},d(r){r&&V(n),o&&o.d(r)}}}function Mae(t){let e,n,i;function o(s){t[34](s)}let r={disabled:t[3]};return t[9]!==void 0&&(r.value=t[9]),e=new cp({props:r}),pt.push((()=>Gn(e,"value",o))),e.$on("change",t[22]),{c(){Pe(e.$$.fragment)},m(s,l){Ee(e,s,l),i=!0},p(s,l){const a={};l[0]&8&&(a.disabled=s[3]),!n&&l[0]&512&&(n=!0,a.value=s[9],Xn((()=>n=!1))),e.$set(a)},i(s){i||(I(e.$$.fragment,s),i=!0)},o(s){H(e.$$.fragment,s),i=!1},d(s){Ae(e,s)}}}function gv(t){var ce;let e,n,i,o,r,s,l,a=`linear-gradient(to right, ${t[2].colors.map(t[36]).join(", ")})`,c,d,u,p,_,f,m,g,v,y,b=t[10]("props.background_gradient_angle")+"",w,k,A,j,T,E,O,M=t[10]("props.background_gradient_count")+"",D,R,J,B,z=ln(t[2].colors),q=[];for(let ue=0;ue<z.length;ue+=1)q[ue]=hv(pv(t,z,ue));const N=ue=>H(q[ue],1,1,(()=>{q[ue]=null}));function Y(ue){t[37](ue)}let x={disabled:t[3]};return t[9]!==void 0&&(x.value=t[9]),d=new cp({props:x}),pt.push((()=>Gn(d,"value",Y))),d.$on("change",t[23]),A=new ho({props:{value:t[2].angle||0,subtype:"angle",min:0,max:360,disabled:t[3]}}),A.$on("change",t[19]),A.$on("focus",t[17]),A.$on("blur",t[18]),J=new ho({props:{value:((ce=t[2].colors)==null?void 0:ce.length)||0,subtype:"integer",min:2,max:10,disabled:t[3],required:!0}}),J.$on("change",t[20]),{c(){e=S("div"),n=S("div");for(let ue=0;ue<q.length;ue+=1)q[ue].c();i=G(),o=S("div"),r=S("div"),s=G(),l=S("div"),c=G(),Pe(d.$$.fragment),p=G(),_=S("div"),f=G(),m=S("div"),g=S("div"),v=S("label"),y=S("div"),w=xe(b),k=G(),Pe(A.$$.fragment),j=G(),T=S("div"),E=S("label"),O=S("div"),D=xe(M),R=G(),Pe(J.$$.fragment),h(n,"class","background2-dialog__gradient-points svelte-iw0i73"),h(r,"class","background2-dialog__gradient-range-bg svelte-iw0i73"),h(l,"class","background2-dialog__gradient-range-inner svelte-iw0i73"),ke(l,"background-image",a),h(o,"class","background2-dialog__gradient-range svelte-iw0i73"),h(e,"class","background2-dialog__gradient-preview"),h(_,"class","background2-dialog__separator svelte-iw0i73"),h(y,"class","background2-dialog__label svelte-iw0i73"),h(g,"class","background2-dialog__split-part svelte-iw0i73"),h(O,"class","background2-dialog__label svelte-iw0i73"),h(T,"class","background2-dialog__split-part svelte-iw0i73"),h(m,"class","background2-dialog__split svelte-iw0i73")},m(ue,Z){F(ue,e,Z),$(e,n);for(let Q=0;Q<q.length;Q+=1)q[Q]&&q[Q].m(n,null);$(e,i),$(e,o),$(o,r),$(o,s),$(o,l),F(ue,c,Z),Ee(d,ue,Z),F(ue,p,Z),F(ue,_,Z),F(ue,f,Z),F(ue,m,Z),$(m,g),$(g,v),$(v,y),$(y,w),$(v,k),Ee(A,v,null),$(m,j),$(m,T),$(T,E),$(E,O),$(O,D),$(E,R),Ee(J,E,null),B=!0},p(ue,Z){var Oe;if(Z[0]&33554564){z=ln(ue[2].colors);let W;for(W=0;W<z.length;W+=1){const ge=pv(ue,z,W);q[W]?(q[W].p(ge,Z),I(q[W],1)):(q[W]=hv(ge),q[W].c(),I(q[W],1),q[W].m(n,null))}for(Dt(),W=z.length;W<q.length;W+=1)N(W);Vt()}Z[0]&36&&a!==(a=`linear-gradient(to right, ${ue[2].colors.map(ue[36]).join(", ")})`)&&ke(l,"background-image",a);const Q={};Z[0]&8&&(Q.disabled=ue[3]),!u&&Z[0]&512&&(u=!0,Q.value=ue[9],Xn((()=>u=!1))),d.$set(Q),(!B||Z[0]&1024)&&b!==(b=ue[10]("props.background_gradient_angle")+"")&&at(w,b);const se={};Z[0]&4&&(se.value=ue[2].angle||0),Z[0]&8&&(se.disabled=ue[3]),A.$set(se),(!B||Z[0]&1024)&&M!==(M=ue[10]("props.background_gradient_count")+"")&&at(D,M);const _e={};Z[0]&4&&(_e.value=((Oe=ue[2].colors)==null?void 0:Oe.length)||0),Z[0]&8&&(_e.disabled=ue[3]),J.$set(_e)},i(ue){if(!B){for(let Z=0;Z<z.length;Z+=1)I(q[Z]);I(d.$$.fragment,ue),I(A.$$.fragment,ue),I(J.$$.fragment,ue),B=!0}},o(ue){q=q.filter(Boolean);for(let Z=0;Z<q.length;Z+=1)H(q[Z]);H(d.$$.fragment,ue),H(A.$$.fragment,ue),H(J.$$.fragment,ue),B=!1},d(ue){ue&&(V(e),V(c),V(p),V(_),V(f),V(m)),Bi(q,ue),Ae(d,ue),Ae(A),Ae(J)}}}function hv(t){let e,n,i,o,r,s,l,a;o=new Xs({props:{color:t[46],mix:"background2-dialog__gradient-point-preview"}});function c(){return t[35](t[48])}return{c(){e=S("div"),n=new Cu(!1),i=G(),Pe(o.$$.fragment),r=G(),n.a=i,h(e,"class","background2-dialog__gradient-point svelte-iw0i73"),ne(e,"background2-dialog__gradient-point_selected",t[48]===t[7])},m(d,u){F(d,e,u),n.m(Sae,e),$(e,i),Ee(o,e,null),$(e,r),s=!0,l||(a=te(e,"click",c),l=!0)},p(d,u){t=d;const p={};u[0]&4&&(p.color=t[46]),o.$set(p),(!s||u[0]&128)&&ne(e,"background2-dialog__gradient-point_selected",t[48]===t[7])},i(d){s||(I(o.$$.fragment,d),s=!0)},o(d){H(o.$$.fragment,d),s=!1},d(d){d&&V(e),Ae(o),l=!1,a()}}}function Pae(t){let e,n,i,o,r,s,l,a,c,d,u,p,_,f=t[8]&&fv(t);function m(k){t[33](k)}let g={mix:"background2-dialog__subtype-select",items:[{value:"solid",text:t[10]("props.background_solid")},{value:"gradient",text:t[10]("props.background_gradient")},{value:"image",text:t[10]("props.background_image")}],theme:"normal",disabled:t[3]};t[0]!==void 0&&(g.value=t[0]),r=new Hr({props:g}),pt.push((()=>Gn(r,"value",m))),r.$on("change",t[27]);let v=t[11]&&(t[0]==="solid"||t[0]==="gradient")&&mv(t);const y=[Mae,Oae,Aae],b=[];function w(k,A){return k[2].type==="solid"?0:k[2].type==="gradient"?1:k[2].type==="image"?2:-1}return~(d=w(t))&&(u=b[d]=y[d](t)),{c(){e=S("div"),f&&f.c(),n=G(),i=S("div"),o=S("div"),Pe(r.$$.fragment),l=G(),v&&v.c(),a=G(),c=S("div"),u&&u.c(),h(o,"class","background2-dialog__title svelte-iw0i73"),h(c,"class",p="background2-dialog__content background2-dialog__content_"+t[0]+" svelte-iw0i73"),h(i,"class","background2-dialog__panel svelte-iw0i73"),h(e,"class","background2-dialog__panels svelte-iw0i73")},m(k,A){F(k,e,A),f&&f.m(e,null),$(e,n),$(e,i),$(i,o),Ee(r,o,null),$(o,l),v&&v.m(o,null),$(i,a),$(i,c),~d&&b[d].m(c,null),_=!0},p(k,A){k[8]?f?(f.p(k,A),A[0]&256&&I(f,1)):(f=fv(k),f.c(),I(f,1),f.m(e,n)):f&&(Dt(),H(f,1,1,(()=>{f=null})),Vt());const j={};A[0]&1024&&(j.items=[{value:"solid",text:k[10]("props.background_solid")},{value:"gradient",text:k[10]("props.background_gradient")},{value:"image",text:k[10]("props.background_image")}]),A[0]&8&&(j.disabled=k[3]),!s&&A[0]&1&&(s=!0,j.value=k[0],Xn((()=>s=!1))),r.$set(j),k[11]&&(k[0]==="solid"||k[0]==="gradient")?v?v.p(k,A):(v=mv(k),v.c(),v.m(o,null)):v&&(v.d(1),v=null);let T=d;d=w(k),d===T?~d&&b[d].p(k,A):(u&&(Dt(),H(b[T],1,1,(()=>{b[T]=null})),Vt()),~d?(u=b[d],u?u.p(k,A):(u=b[d]=y[d](k),u.c()),I(u,1),u.m(c,null)):u=null),(!_||A[0]&1&&p!==(p="background2-dialog__content background2-dialog__content_"+k[0]+" svelte-iw0i73"))&&h(c,"class",p)},i(k){_||(I(f),I(r.$$.fragment,k),I(u),_=!0)},o(k){H(f),H(r.$$.fragment,k),H(u),_=!1},d(k){k&&V(e),f&&f.d(),Ae(r),v&&v.d(),~d&&b[d].d()}}}function Iae(t){let e,n,i=t[1]&&t[6]&&_v(t);return{c(){i&&i.c(),e=Vn()},m(o,r){i&&i.m(o,r),F(o,e,r),n=!0},p(o,r){o[1]&&o[6]?i?(i.p(o,r),r[0]&66&&I(i,1)):(i=_v(o),i.c(),I(i,1),i.m(e.parentNode,e)):i&&(Dt(),H(i,1,1,(()=>{i=null})),Vt())},i(o){n||(I(i),n=!0)},o(o){H(i),n=!1},d(o){o&&V(e),i&&i.d(o)}}}function Dae(t,e,n){let i,o,r,s;const{l10nString:l}=yt(oi);De(t,l,(U=>n(10,r=U)));const{state:a}=yt(Cn),{palette:c,paletteEnabled:d,previewThemeStore:u,highlightMode:p,highlightGradientAngle:_}=a;De(t,c,(U=>n(31,i=U))),De(t,d,(U=>n(11,s=U))),De(t,u,(U=>n(5,o=U)));function f(U){n(30,w=U.callback),n(6,g=U.target),n(2,b=U.value),n(3,A=U.readOnly),n(1,y=!0),n(0,v=b.type),ce()}function m(){n(1,y=!1),n(0,v="")}let g,v="",y=!1,b,w,k=0,A,j=!1,T="",E="";function O(){n(1,y=!1)}function M(){p.set("gradient"),_.set(b.angle||0)}function D(){p.set("")}function R(U){const de=Number(U.detail.value);b.type==="gradient"&&(n(2,b.angle=de,b),_.set(de))}function J(U){let de=Number(U.detail.value);if(!(de<2||de>10)&&(de=Math.max(2,Math.min(10,de)),b.type==="gradient"))if(de>b.colors.length)for(n(2,b.colors=b.colors.slice(),b);de>b.colors.length;)b.colors.push("#fff");else de<b.colors.length&&n(2,b.colors=b.colors.slice(0,de),b)}function B(){n(8,j=!j)}function z(){n(4,T=""),n(2,b.color=E,b)}function q(){n(4,T=""),n(2,b.colors[k]=E,b)}function N(U){v==="solid"?n(2,b.color=pa(U.detail),b):v==="gradient"&&n(2,b.colors[k]=pa(U.detail),b)}function Y(U){n(7,k=U);const de=b;or(de.colors[k])?(n(8,j=!0),n(4,T=yr(de.colors[k]))):(n(9,E=de.colors[k]),n(4,T=""))}function x(U,de,pe){const et=de?Oc:zV;if(or(U)){const we=yr(U),Ie=i.find((Xe=>Xe.id===we));return Ie?et(Ie[pe]):""}return et(U)}function ce(){if(v==="solid"){const U=b;or(U.color)?(n(8,j=!0),n(4,T=yr(U.color))):(n(9,E=U.color),n(4,T=""))}else if(v==="gradient"){const U=b;n(7,k=0),n(8,j=U.colors.some(or)),or(U.colors[0])?n(4,T=yr(U.colors[0])):(n(9,E=U.colors[0]),n(4,T=""))}else v==="image"&&n(8,j=!1)}function ue(U){T=U,n(4,T)}function Z(U){v=U,n(0,v)}function Q(U){E=U,n(9,E),n(5,o),n(4,T),n(31,i),n(0,v)}const se=U=>Y(U),_e=U=>x(U,!0,o);function Oe(U){E=U,n(9,E),n(5,o),n(4,T),n(31,i),n(0,v)}function W(U){t.$$.not_equal(b.image_url,U)&&(b.image_url=U,n(2,b))}function ge(U){t.$$.not_equal(b.scale,U)&&(b.scale=U,n(2,b))}function it(U){t.$$.not_equal(b.content_alignment_horizontal,U)&&(b.content_alignment_horizontal=U,n(2,b))}function ye(U){t.$$.not_equal(b.content_alignment_vertical,U)&&(b.content_alignment_vertical=U,n(2,b))}function rt(U){t.$$.not_equal(b.alpha,U)&&(b.alpha=U,n(2,b))}return t.$$.update=()=>{if(t.$$.dirty[0]&1073741838&&y&&!A&&w&&w(b),t.$$.dirty[0]&5&&b&&v&&v!==b.type){const U=b,de=U.color,pe=U.colors;delete U.color,delete U.colors,delete U.image_url,delete U.scale,delete U.content_alignment_horizontal,delete U.content_alignment_vertical,delete U.alpha,U.type=v,v==="solid"?Array.isArray(pe)&&pe.length?U.color=pe[0]:U.color="#000":v==="gradient"?de?U.colors=[de,de]:U.colors=["#fff","#000"]:v==="image"&&(U.image_url="",U.scale="fill",U.content_alignment_horizontal="center",U.content_alignment_vertical="center",U.alpha=1,U.preload_required=!0)}if(t.$$.dirty[0]&49|t.$$.dirty[1]&1&&o&&T){const U=i.find((de=>de.id===T));U&&(v==="solid"||v==="gradient")&&n(9,E=U[o])}},[v,y,b,A,T,o,g,k,j,E,r,s,l,c,d,u,O,M,D,R,J,B,z,q,N,Y,x,ce,f,m,w,i,ue,Z,Q,se,_e,Oe,W,ge,it,ye,rt]}class Vae extends Gt{constructor(e){super(),Yt(this,e,Dae,Iae,Rt,{show:28,hide:29},null,[-1,-1])}get show(){return this.$$.ctx[28]}get hide(){return this.$$.ctx[29]}}function vv(t){let e,n;return e=new Cr({props:{target:t[0].target,direction:t[0].direction,offset:t[0].offset,overflow:"visible",canMove:!0,wide:t[4],$$slots:{default:[Lae]},$$scope:{ctx:t}}}),e.$on("close",t[11]),{c(){Pe(e.$$.fragment)},m(i,o){Ee(e,i,o),n=!0},p(i,o){const r={};o&1&&(r.target=i[0].target),o&1&&(r.direction=i[0].direction),o&1&&(r.offset=i[0].offset),o&16&&(r.wide=i[4]),o&2097277&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Ae(e,i)}}}function bv(t){let e,n,i,o;function r(l){t[18](l)}let s={};return t[3]!==void 0&&(s.paletteId=t[3]),n=new RV({props:s}),pt.push((()=>Gn(n,"paletteId",r))),{c(){e=S("div"),Pe(n.$$.fragment),h(e,"class","color2-dialog__panel color2-dialog__panel_left svelte-obfnqb")},m(l,a){F(l,e,a),Ee(n,e,null),o=!0},p(l,a){const c={};!i&&a&8&&(i=!0,c.paletteId=l[3],Xn((()=>i=!1))),n.$set(c)},i(l){o||(I(n.$$.fragment,l),o=!0)},o(l){H(n.$$.fragment,l),o=!1},d(l){l&&V(e),Ae(n)}}}function yv(t){let e,n,i=t[6]("color")+"",o,r,s,l,a,c,d;return{c(){e=S("div"),n=S("div"),o=xe(i),r=G(),s=S("button"),l=S("div"),h(n,"class","color2-dialog__title-text svelte-obfnqb"),h(l,"class","color2-dialog__palette-icon svelte-obfnqb"),h(s,"class","color2-dialog__palette-toggle svelte-obfnqb"),h(s,"title",a=t[6]("palette")),ne(s,"color2-dialog__palette-toggle_toggled",t[4]),h(e,"class","color2-dialog__title svelte-obfnqb")},m(u,p){F(u,e,p),$(e,n),$(n,o),$(e,r),$(e,s),$(s,l),c||(d=te(s,"click",t[12]),c=!0)},p(u,p){p&64&&i!==(i=u[6]("color")+"")&&at(o,i),p&64&&a!==(a=u[6]("palette"))&&h(s,"title",a),p&16&&ne(s,"color2-dialog__palette-toggle_toggled",u[4])},d(u){u&&V(e),c=!1,d()}}}function Lae(t){let e,n,i,o,r,s,l,a,c=t[4]&&bv(t),d=t[5]&&t[0].showPalette&&yv(t);function u(_){t[19](_)}let p={disabled:t[0].disabled};return t[2]!==void 0&&(p.value=t[2]),s=new cp({props:p}),pt.push((()=>Gn(s,"value",u))),s.$on("change",t[13]),{c(){e=S("div"),c&&c.c(),n=G(),i=S("div"),d&&d.c(),o=G(),r=S("div"),Pe(s.$$.fragment),h(r,"class","color2-dialog__content svelte-obfnqb"),h(i,"class","color2-dialog__panel svelte-obfnqb"),h(e,"class","color2-dialog__panels svelte-obfnqb")},m(_,f){F(_,e,f),c&&c.m(e,null),$(e,n),$(e,i),d&&d.m(i,null),$(i,o),$(i,r),Ee(s,r,null),a=!0},p(_,f){_[4]?c?(c.p(_,f),f&16&&I(c,1)):(c=bv(_),c.c(),I(c,1),c.m(e,n)):c&&(Dt(),H(c,1,1,(()=>{c=null})),Vt()),_[5]&&_[0].showPalette?d?d.p(_,f):(d=yv(_),d.c(),d.m(i,o)):d&&(d.d(1),d=null);const m={};f&1&&(m.disabled=_[0].disabled),!l&&f&4&&(l=!0,m.value=_[2],Xn((()=>l=!1))),s.$set(m)},i(_){a||(I(c),I(s.$$.fragment,_),a=!0)},o(_){H(c),H(s.$$.fragment,_),a=!1},d(_){_&&V(e),c&&c.d(),d&&d.d(),Ae(s)}}}function Fae(t){var o;let e,n,i=t[1]&&((o=t[0])==null?void 0:o.target)&&vv(t);return{c(){i&&i.c(),e=Vn()},m(r,s){i&&i.m(r,s),F(r,e,s),n=!0},p(r,[s]){var l;r[1]&&((l=r[0])!=null&&l.target)?i?(i.p(r,s),s&3&&I(i,1)):(i=vv(r),i.c(),I(i,1),i.m(e.parentNode,e)):i&&(Dt(),H(i,1,1,(()=>{i=null})),Vt())},i(r){n||(I(i),n=!0)},o(r){H(i),n=!1},d(r){r&&V(e),i&&i.d(r)}}}function Nae(t,e,n){let i,o,r,s;const{l10nString:l}=yt(oi);De(t,l,(T=>n(6,s=T)));const{state:a}=yt(Cn),{palette:c,paletteEnabled:d,previewThemeStore:u}=a;De(t,c,(T=>n(17,o=T))),De(t,d,(T=>n(5,r=T))),De(t,u,(T=>n(16,i=T)));function p(T){n(0,f=T),n(2,g=T.value),n(3,v=T.paletteId||""),n(1,m=!0),n(4,y=!!v)}function _(){n(1,m=!1),n(0,f=null)}let f=null,m=!1,g,v,y=!1;function b(){n(1,m=!1)}function w(){n(4,y=!y)}function k(){n(3,v="")}function A(T){v=T,n(3,v)}function j(T){g=T,n(2,g),n(16,i),n(3,v),n(17,o)}return t.$$.update=()=>{if(t.$$.dirty&196616&&i&&v){const T=o.find((E=>E.id===v));T&&n(2,g=T[i])}t.$$.dirty&15&&m&&f&&!f.disabled&&f.callback(v?"":g,v)},[f,m,g,v,y,r,s,l,c,d,u,b,w,k,p,_,i,o,A,j]}class qae extends Gt{constructor(e){super(),Yt(this,e,Nae,Fae,Rt,{show:14,hide:15})}get show(){return this.$$.ctx[14]}get hide(){return this.$$.ctx[15]}}const Rae='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none" class="file2-dialog__loader"><path fill="currentColor" d="M28 14a14 14 0 1 0-17.311 13.603l.713-2.932A10.982 10.982 0 1 1 24.983 14H28Z"/></svg>',BV='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none"><path fill="currentColor" d="M4 3a3 3 0 0 1 3-3h2a3 3 0 0 1 3 3h2a1 1 0 1 1 0 2h-.654l-.74 9.615A1.5 1.5 0 0 1 11.111 16H4.889a1.5 1.5 0 0 1-1.496-1.385L2.653 5H2a1 1 0 0 1 0-2h2Zm7.34 2H4.66l.692 9h5.296l.692-9ZM7 2a1 1 0 0 0-1 1h4a1 1 0 0 0-1-1H7Z"/></svg>',Bae=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 9h3l-2 6 7-8H8l3-6H7z"/></svg>\n`;function HV(t){return new Promise(((e,n)=>{const i=new FileReader;i.onerror=()=>{n(new Error("Failed to load the file"))},i.onload=()=>{e(i.result)},i.readAsDataURL(t)}))}const wv=typeof window<"u"&&"requestVideoFrameCallback"in HTMLVideoElement.prototype;function $v(t){let e,n,i={target:t[6],hasClose:!0,direction:t[16],canMove:!0,$$slots:{default:[Gae]},$$scope:{ctx:t}};return e=new Cr({props:i}),t[43](e),e.$on("close",t[24]),{c(){Pe(e.$$.fragment)},m(o,r){Ee(e,o,r),n=!0},p(o,r){const s={};r[0]&64&&(s.target=o[6]),r[0]&65536&&(s.direction=o[16]),r[0]&7798714|r[1]&536870912&&(s.$$scope={dirty:r,ctx:o}),e.$set(s)},i(o){n||(I(e.$$.fragment,o),n=!0)},o(o){H(e.$$.fragment,o),n=!1},d(o){t[43](null),Ae(e,o)}}}function kv(t){let e;function n(r,s){if(r[1].url&&!r[15]&&(r[3]==="image"||r[3]==="gif"))return Jae;if(r[3]==="video")return Hae}let i=n(t),o=i&&i(t);return{c(){o&&o.c(),e=Vn()},m(r,s){o&&o.m(r,s),F(r,e,s)},p(r,s){i===(i=n(r))&&o?o.p(r,s):(o&&o.d(1),o=i&&i(r),o&&(o.c(),o.m(e.parentNode,e)))},d(r){r&&V(e),o&&o.d(r)}}}function Hae(t){let e,n;return{c(){e=S("video"),h(e,"class","file2-dialog__video-preview svelte-134x7tx"),dc(e.src,n=t[1].url)||h(e,"src",n)},m(i,o){F(i,e,o)},p(i,o){o[0]&2&&!dc(e.src,n=i[1].url)&&h(e,"src",n)},d(i){i&&V(e)}}}function Jae(t){let e,n,i,o;return{c(){e=S("img"),h(e,"class","file2-dialog__image-preview svelte-134x7tx"),dc(e.src,n=t[1].url)||h(e,"src",n),h(e,"alt","")},m(r,s){F(r,e,s),i||(o=te(e,"error",t[33]),i=!0)},p(r,s){s[0]&2&&!dc(e.src,n=r[1].url)&&h(e,"src",n)},d(r){r&&V(e),i=!1,o()}}}function Uae(t){let e=t[5]("file.select")+"",n,i,o,r,s;return{c(){n=xe(e),i=G(),o=S("input"),h(o,"type","file"),h(o,"class","file2-dialog__file svelte-134x7tx"),h(o,"accept",t[20])},m(l,a){F(l,n,a),F(l,i,a),F(l,o,a),r||(s=te(o,"change",t[25]),r=!0)},p(l,a){a[0]&32&&e!==(e=l[5]("file.select")+"")&&at(n,e),a[0]&1048576&&h(o,"accept",l[20])},d(l){l&&(V(n),V(i),V(o)),r=!1,s()}}}function jv(t){let e,n=t[5](t[14]==="big"||t[14]==="big-warn"?"file.too_big":`file.${t[3]}_error`)+"",i;return{c(){e=S("div"),i=xe(n),h(e,"class","file2-dialog__error svelte-134x7tx"),ne(e,"file2-dialog__error_warn",t[14]==="big-warn")},m(o,r){F(o,e,r),$(e,i)},p(o,r){r[0]&16424&&n!==(n=o[5](o[14]==="big"||o[14]==="big-warn"?"file.too_big":`file.${o[3]}_error`)+"")&&at(i,n),r[0]&16384&&ne(e,"file2-dialog__error_warn",o[14]==="big-warn")},d(o){o&&V(e)}}}function Sv(t){let e,n,i,o;return{c(){e=S("button"),h(e,"class","file2-dialog__text-inline-button file2-dialog__cleanup svelte-134x7tx"),h(e,"title",n=t[5]("delete"))},m(r,s){F(r,e,s),e.innerHTML=BV,i||(o=te(e,"click",t[34]),i=!0)},p(r,s){s[0]&32&&n!==(n=r[5]("delete"))&&h(e,"title",n)},d(r){r&&V(e),i=!1,o()}}}function Tv(t){let e,n,i,o;return{c(){e=S("button"),h(e,"class","file2-dialog__text-inline-button file2-dialog__generate svelte-134x7tx"),h(e,"title",n=t[17]?t[5]("file.generate_from_video"):t[5]("file.generate_from_lottie"))},m(r,s){F(r,e,s),e.innerHTML=Bae,i||(o=te(e,"click",t[35]),i=!0)},p(r,s){s[0]&131104&&n!==(n=r[17]?r[5]("file.generate_from_video"):r[5]("file.generate_from_lottie"))&&h(e,"title",n)},d(r){r&&V(e),i=!1,o()}}}function Wae(t){let e,n,i=t[1].url&&t[8]&&!t[4]&&Sv(t),o=(t[17]&&wv||t[18])&&Tv(t);return{c(){e=S("div"),i&&i.c(),n=G(),o&&o.c(),h(e,"slot","button"),h(e,"class","file2-dialog__text-inline-buttons svelte-134x7tx")},m(r,s){F(r,e,s),i&&i.m(e,null),$(e,n),o&&o.m(e,null)},p(r,s){r[1].url&&r[8]&&!r[4]?i?i.p(r,s):(i=Sv(r),i.c(),i.m(e,n)):i&&(i.d(1),i=null),r[17]&&wv||r[18]?o?o.p(r,s):(o=Tv(r),o.c(),o.m(e,null)):o&&(o.d(1),o=null)},d(r){r&&V(e),i&&i.d(),o&&o.d()}}}function Kae(t){let e=t[5](`file.${t[3]}_label`)+"",n;return{c(){n=xe(e)},m(i,o){F(i,n,o)},p(i,o){o[0]&40&&e!==(e=i[5](`file.${i[3]}_label`)+"")&&at(n,e)},d(i){i&&V(n)}}}function Yae(t){let e,n;return{c(){e=new Cu(!1),n=Vn(),e.a=n},m(i,o){e.m(Rae,i,o),F(i,n,o)},p:tn,d(i){i&&(V(n),e.d())}}}function Cv(t){let e,n,i,o=t[5]("props.width")+"",r,s,l,a,c,d,u,p=t[5]("props.height")+"",_,f,m,g,v;function y(A){t[41](A)}let b={min:1,max:1024,subtype:"integer",inlineLabel:"W",disabled:t[4]};t[1].width!==void 0&&(b.value=t[1].width),l=new ho({props:b}),pt.push((()=>Gn(l,"value",y)));function w(A){t[42](A)}let k={min:1,max:1024,subtype:"integer",inlineLabel:"H",disabled:t[4]};return t[1].height!==void 0&&(k.value=t[1].height),m=new ho({props:k}),pt.push((()=>Gn(m,"value",w))),{c(){e=S("div"),n=S("label"),i=S("div"),r=xe(o),s=G(),Pe(l.$$.fragment),c=G(),d=S("label"),u=S("div"),_=xe(p),f=G(),Pe(m.$$.fragment),h(i,"class","file2-dialog__label svelte-134x7tx"),h(n,"class","file2-dialog__size-part svelte-134x7tx"),h(u,"class","file2-dialog__label svelte-134x7tx"),h(d,"class","file2-dialog__size-part svelte-134x7tx"),h(e,"class","file2-dialog__size svelte-134x7tx")},m(A,j){F(A,e,j),$(e,n),$(n,i),$(i,r),$(n,s),Ee(l,n,null),$(e,c),$(e,d),$(d,u),$(u,_),$(d,f),Ee(m,d,null),v=!0},p(A,j){(!v||j[0]&32)&&o!==(o=A[5]("props.width")+"")&&at(r,o);const T={};j[0]&16&&(T.disabled=A[4]),!a&&j[0]&2&&(a=!0,T.value=A[1].width,Xn((()=>a=!1))),l.$set(T),(!v||j[0]&32)&&p!==(p=A[5]("props.height")+"")&&at(_,p);const E={};j[0]&16&&(E.disabled=A[4]),!g&&j[0]&2&&(g=!0,E.value=A[1].height,Xn((()=>g=!1))),m.$set(E)},i(A){v||(I(l.$$.fragment,A),I(m.$$.fragment,A),v=!0)},o(A){H(l.$$.fragment,A),H(m.$$.fragment,A),v=!1},d(A){A&&V(e),Ae(l),Ae(m)}}}function Gae(t){let e,n,i,o,r,s,l,a,c,d,u=t[5](`file.${t[3]}_label`)+"",p,_,f,m,g,v,y,b,w,k,A,j,T,E,O=t[1].url&&kv(t);f=new ud({props:{tag:"div",theme:"normal",$$slots:{default:[Uae]},$$scope:{ctx:t}}});let M=t[14]&&jv(t);function D(N){t[40](N)}let R={placeholder:t[21],hasButton:!!(t[1].url&&t[8]&&!t[4]),disabled:t[4],$$slots:{button:[Wae]},$$scope:{ctx:t}};t[1].url!==void 0&&(R.value=t[1].url),v=new ho({props:R}),pt.push((()=>Gn(v,"value",D))),v.$on("change",t[32]);function J(N,Y){return N[13]?Yae:Kae}let B=J(t),z=B(t),q=t[7]&&Cv(t);return{c(){e=S("div"),n=xe(t[9]),i=G(),o=S("div"),r=S("div"),s=S("div"),l=S("div"),O&&O.c(),a=G(),c=S("div"),d=S("div"),p=xe(u),_=G(),Pe(f.$$.fragment),m=G(),M&&M.c(),g=G(),Pe(v.$$.fragment),b=G(),w=S("div"),z.c(),k=G(),q&&q.c(),A=Vn(),h(e,"class","file2-dialog__title svelte-134x7tx"),h(l,"class","file2-dialog__file-preview-container svelte-134x7tx"),h(d,"class","file2-dialog__file-label svelte-134x7tx"),h(c,"class","file2-dialog__file-select svelte-134x7tx"),ne(c,"file2-dialog__file-select_always-shown",t[22]),h(s,"class","file2-dialog__file-preview svelte-134x7tx"),ne(s,"file2-dialog__file-preview_error",t[14]),h(r,"class","file2-dialog__standard-content svelte-134x7tx"),h(w,"class","file2-dialog__drop-target svelte-134x7tx"),ne(w,"file2-dialog__drop-target_over",t[12]),h(o,"class","file2-dialog__drop-area svelte-134x7tx"),ne(o,"file2-dialog__drop-area_global-drag",t[11]||t[13]),ne(o,"file2-dialog__drop-area_disabled",t[4])},m(N,Y){F(N,e,Y),$(e,n),F(N,i,Y),F(N,o,Y),$(o,r),$(r,s),$(s,l),O&&O.m(l,null),t[39](l),$(s,a),$(s,c),$(c,d),$(d,p),$(c,_),Ee(f,c,null),$(r,m),M&&M.m(r,null),$(r,g),Ee(v,r,null),$(o,b),$(o,w),z.m(w,null),F(N,k,Y),q&&q.m(N,Y),F(N,A,Y),j=!0,T||(E=[te(w,"dragover",xae),te(w,"dragenter",t[29]),te(w,"dragleave",t[30]),te(w,"drop",t[31])],T=!0)},p(N,Y){(!j||Y[0]&512)&&at(n,N[9]),N[1].url?O?O.p(N,Y):(O=kv(N),O.c(),O.m(l,null)):O&&(O.d(1),O=null),(!j||Y[0]&40)&&u!==(u=N[5](`file.${N[3]}_label`)+"")&&at(p,u);const x={};Y[0]&1048608|Y[1]&536870912&&(x.$$scope={dirty:Y,ctx:N}),f.$set(x),(!j||Y[0]&4194304)&&ne(c,"file2-dialog__file-select_always-shown",N[22]),(!j||Y[0]&16384)&&ne(s,"file2-dialog__file-preview_error",N[14]),N[14]?M?M.p(N,Y):(M=jv(N),M.c(),M.m(r,g)):M&&(M.d(1),M=null);const ce={};Y[0]&2097152&&(ce.placeholder=N[21]),Y[0]&274&&(ce.hasButton=!!(N[1].url&&N[8]&&!N[4])),Y[0]&16&&(ce.disabled=N[4]),Y[0]&393522|Y[1]&536870912&&(ce.$$scope={dirty:Y,ctx:N}),!y&&Y[0]&2&&(y=!0,ce.value=N[1].url,Xn((()=>y=!1))),v.$set(ce),B===(B=J(N))&&z?z.p(N,Y):(z.d(1),z=B(N),z&&(z.c(),z.m(w,null))),(!j||Y[0]&4096)&&ne(w,"file2-dialog__drop-target_over",N[12]),(!j||Y[0]&10240)&&ne(o,"file2-dialog__drop-area_global-drag",N[11]||N[13]),(!j||Y[0]&16)&&ne(o,"file2-dialog__drop-area_disabled",N[4]),N[7]?q?(q.p(N,Y),Y[0]&128&&I(q,1)):(q=Cv(N),q.c(),I(q,1),q.m(A.parentNode,A)):q&&(Dt(),H(q,1,1,(()=>{q=null})),Vt())},i(N){j||(I(f.$$.fragment,N),I(v.$$.fragment,N),I(q),j=!0)},o(N){H(f.$$.fragment,N),H(v.$$.fragment,N),H(q),j=!1},d(N){N&&(V(e),V(i),V(o),V(k),V(A)),O&&O.d(),t[39](null),Ae(f),M&&M.d(),Ae(v),z.d(),q&&q.d(N),T=!1,Rn(E)}}}function Xae(t){let e,n,i,o,r=t[0]&&t[6]&&t[2]&&$v(t);return{c(){r&&r.c(),e=Vn()},m(s,l){r&&r.m(s,l),F(s,e,l),n=!0,i||(o=[te(window,"dragenter",t[26]),te(window,"dragleave",t[27]),te(window,"drop",t[28])],i=!0)},p(s,l){s[0]&&s[6]&&s[2]?r?(r.p(s,l),l[0]&69&&I(r,1)):(r=$v(s),r.c(),I(r,1),r.m(e.parentNode,e)):r&&(Dt(),H(r,1,1,(()=>{r=null})),Vt())},i(s){n||(I(r),n=!0)},o(s){H(r),n=!1},d(s){s&&V(e),r&&r.d(s),i=!1,Rn(o)}}}const Zae={"":"image",image:"image",gif:"image",lottie:"lottie",video:"video",image_preview:"preview"};function xae(t){t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect="copy")}function Qae(t,e,n){let i,o,r,s;const{l10nString:l}=yt(oi);De(t,l,(ee=>n(5,s=ee)));const{uploadFile:a,previewWarnFileLimit:c,previewErrorFileLimit:d,warnFileLimit:u,errorFileLimit:p,fileLimits:_}=yt(Cn),f={image:"image/png, image/jpeg",gif:"image/gif",lottie:"text/json, application/json",video:"video/mp4, video/mpeg, video/ogg, video/quicktime, video/webm"},m=Object.keys(f).reduce(((ee,Je)=>(ee[Je]=new Set(f[Je].split(",").map((We=>We.trim()))),ee)),{});function g(ee){var Je;if(D&&(D.destroy(),D=null,J&&((Je=J.parentNode)==null||Je.removeChild(J))),j.url){const We=j.url;import("./lottieApi.js").then((({loadAnimation:jt})=>{We===j.url&&(J=document.createElement("div"),J.className="file2-dialog__lottie-wrapper",R.appendChild(J),D=jt({container:J,path:We,renderer:"svg",loop:!0}))}))}}function v(ee){n(38,T=ee.callback),n(6,b=ee.target),n(1,j=ee.value),n(9,E=ee.title),n(7,k=ee.hasSize),n(8,A=ee.hasDelete),n(2,O=ee.subtype),n(3,M=O==="image_preview"?"image":O),n(15,x=!1),n(16,ce=ee.direction),ue=ee.onHide,n(4,Z=ee.disabled||!1),n(17,Q=ee.generateFromVideo),n(18,se=ee.generateFromLottie),n(14,Y=!1),n(0,w=!0),vt()}function y(){_e==null||_e.hide()}let b,w=!1,k=!1,A=!1,j={url:"",width:0,height:0},T,E="",O="",M="",D,R,J=null,B=!1,z=new Set,q=!1,N=!1,Y=!1,x=!1,ce,ue,Z=!1,Q,se,_e;function Oe(){n(0,w=!1),ue==null||ue()}function W(ee){if(_!=null&&_.upload){if(O!=="image_preview"&&_.upload.error!==void 0&&ee.size>_.upload.error)return n(14,Y="big"),Promise.resolve()}else if(ee.size>(O==="image_preview"?d:p))return n(14,Y="big"),Promise.resolve();return n(13,N=!0),n(14,Y=!1),(O==="image_preview"?HV:a)(ee).then((We=>{n(1,j.url=We,j),n(13,N=!1),vt()})).catch((We=>{n(13,N=!1),n(14,Y="load")}))}function ge(ee){return Array.from(ee).find((Je=>Je.type&&m[M]&&m[M].has(Je.type)))}function it(ee){const Je=ee.target,We=Je.files&&Je.files.length>0&&ge(Je.files);We?W(We):n(14,Y="load"),Je.value="",Je.type="",Je.type="file"}function ye(ee){ee.target instanceof HTMLElement&&(ee.preventDefault(),z.add(ee.target),n(11,B=!0))}function rt(ee){ee.target instanceof HTMLElement&&(ee.preventDefault(),z.delete(ee.target),n(11,B=z.size>0))}function U(){z=new Set,n(11,B=!1)}function de(ee){ee.preventDefault(),n(12,q=!0)}function pe(ee){ee.preventDefault(),n(12,q=!1)}function et(ee){var We;ee.preventDefault(),n(12,q=!1),n(11,B=!1),z=new Set;const Je=((We=ee.dataTransfer)==null?void 0:We.files)&&ge(ee.dataTransfer.files);Je?W(Je):n(14,Y="load")}function we(){vt()}function Ie(){n(15,x=!0)}function Xe(){n(1,j.url="",j),_e==null||_e.hide()}function vt(){n(14,Y=!1),tp(String(j.url),O).then((ee=>{if(_){const Je=Ac(ee,Zae[O],1/0,1/0,_);Je==="error"?n(14,Y="big"):Je==="warn"&&n(14,Y="big-warn")}else ee>(O==="image_preview"?d:p)?n(14,Y="big"):ee>(O==="image_preview"?c:u)&&n(14,Y="big-warn")}))}function Qe(){if(se)Promise.all([import("./lottieApi.js"),fetch(se).then((ee=>{if(!ee.ok)throw new Error("Response is not ok");return ee.json()}))]).then((([{loadAnimation:ee},Je])=>{if(!Je.w||!Je.h)throw new Error("Incorrect json");const We=document.createElement("div");return We.style.width=Je.w+"px",We.style.height=Je.h+"px",new Promise(((jt,zt)=>{const an=ee({container:We,animationData:Je,renderer:"svg",loop:!1,autoplay:!1}),sn=We.querySelector("svg");if(!sn){zt(new Error("Missing svg context"));return}const It=(new XMLSerializer).serializeToString(sn),cn=document.createElement("canvas"),pn=cn.getContext("2d");if(!pn){zt(new Error("Missing canvas context"));return}cn.width=Je.w,cn.height=Je.h;const Sn=new Image;Sn.onload=()=>{pn.drawImage(Sn,0,0),n(1,j.url=cn.toDataURL(),j),vt(),jt(j.url)},Sn.onerror=()=>{zt(new Error("Failed to load an image"))},Sn.src="data:image/svg+xml; charset=utf8, "+encodeURIComponent(It),an.addEventListener("error",(()=>{zt(new Error("Lottie error"))}))}))})).catch((()=>{}));else if(Q){const ee=document.createElement("canvas"),Je=ee.getContext("2d");if(!Je)return;const We=document.createElement("video");for(const jt of Q)if(jt.url&&typeof jt.url=="string"&&jt.mime_type&&typeof jt.mime_type=="string"){const zt=document.createElement("source");zt.setAttribute("src",jt.url),zt.setAttribute("type",jt.mime_type),We.appendChild(zt)}We.requestVideoFrameCallback(((jt,zt)=>{ee.width=zt.width,ee.height=zt.height,Je.drawImage(We,0,0),n(1,j.url=ee.toDataURL(),j),vt()}))}}function fe(ee){pt[ee?"unshift":"push"]((()=>{R=ee,n(10,R)}))}function me(ee){t.$$.not_equal(j.url,ee)&&(j.url=ee,n(1,j))}function ve(ee){t.$$.not_equal(j.width,ee)&&(j.width=ee,n(1,j))}function Ge(ee){t.$$.not_equal(j.height,ee)&&(j.height=ee,n(1,j))}function gt(ee){pt[ee?"unshift":"push"]((()=>{_e=ee,n(19,_e)}))}return t.$$.update=()=>{t.$$.dirty[0]&23|t.$$.dirty[1]&128&&w&&(Z||T(j),O==="lottie"?g(j.url||""):n(15,x=!1)),t.$$.dirty[0]&2&&n(22,i=!j.url),t.$$.dirty[0]&44&&n(21,o=O?s(`file.${M}_placeholder`):""),t.$$.dirty[0]&12&&n(20,r=O?f[M]:"")},[w,j,O,M,Z,s,b,k,A,E,R,B,q,N,Y,x,ce,Q,se,_e,r,o,i,l,Oe,it,ye,rt,U,de,pe,et,we,Ie,Xe,Qe,v,y,T,fe,me,ve,Ge,gt]}class ece extends Gt{constructor(e){super(),Yt(this,e,Qae,Xae,Rt,{show:36,hide:37},null,[-1,-1])}get show(){return this.$$.ctx[36]}get hide(){return this.$$.ctx[37]}}function zv(t){let e,n,i={direction:"down",offsetY:12,target:t[3],$$slots:{default:[tce]},$$scope:{ctx:t}};return e=new Cr({props:i}),t[17](e),e.$on("close",t[8]),{c(){Pe(e.$$.fragment)},m(o,r){Ee(e,o,r),n=!0},p(o,r){const s={};r&8&&(s.target=o[3]),r&262246&&(s.$$scope={dirty:r,ctx:o}),e.$set(s)},i(o){n||(I(e.$$.fragment,o),n=!0)},o(o){H(e.$$.fragment,o),n=!1},d(o){t[17](null),Ae(e,o)}}}function Ev(t){let e,n,i,o;return{c(){e=S("button"),h(e,"class","link2-dialog__cleanup svelte-12y56i8"),h(e,"title",n=t[6]("delete")),ne(e,"link2-dialog__cleanup_visible",!!t[1])},m(r,s){F(r,e,s),e.innerHTML=BV,i||(o=te(e,"click",t[9]),i=!0)},p(r,s){s&64&&n!==(n=r[6]("delete"))&&h(e,"title",n),s&2&&ne(e,"link2-dialog__cleanup_visible",!!r[1])},d(r){r&&V(e),i=!1,o()}}}function tce(t){let e,n,i,o,r,s,l=!t[2]&&Ev(t);return{c(){e=S("div"),n=S("input"),o=G(),l&&l.c(),h(n,"class","link2-dialog__input svelte-12y56i8"),h(n,"autocomplete","off"),h(n,"autocorrect","off"),h(n,"autocapitalize","off"),h(n,"spellcheck","false"),h(n,"placeholder",i=t[6]("link.placeholder")),n.disabled=t[2],h(e,"class","link2-dialog__content svelte-12y56i8")},m(a,c){F(a,e,c),$(e,n),t[15](n),Hn(n,t[1]),$(e,o),l&&l.m(e,null),r||(s=[te(n,"input",t[16]),te(n,"keydown",t[10]),te(n,"input",t[11])],r=!0)},p(a,c){c&64&&i!==(i=a[6]("link.placeholder"))&&h(n,"placeholder",i),c&4&&(n.disabled=a[2]),c&2&&n.value!==a[1]&&Hn(n,a[1]),a[2]?l&&(l.d(1),l=null):l?l.p(a,c):(l=Ev(a),l.c(),l.m(e,null))},d(a){a&&V(e),t[15](null),l&&l.d(),r=!1,Rn(s)}}}function nce(t){let e,n,i=t[0]&&t[3]&&zv(t);return{c(){i&&i.c(),e=Vn()},m(o,r){i&&i.m(o,r),F(o,e,r),n=!0},p(o,[r]){o[0]&&o[3]?i?(i.p(o,r),r&9&&I(i,1)):(i=zv(o),i.c(),I(i,1),i.m(e.parentNode,e)):i&&(Dt(),H(i,1,1,(()=>{i=null})),Vt())},i(o){n||(I(i),n=!0)},o(o){H(i),n=!1},d(o){o&&V(e),i&&i.d(o)}}}function ice(t,e,n){let i;const{l10nString:o}=yt(oi);De(t,o,(k=>n(6,i=k)));function r(k){n(14,u=k.callback),n(3,l=k.target),n(1,d=k.value),n(2,p=k.disabled),n(0,c=!0),ur().then((()=>{_&&_.focus()}))}function s(){n(0,c=!1)}let l,a,c=!1,d,u,p,_;function f(){n(0,c=!1)}function m(){n(1,d=""),a==null||a.hide(),u(d)}function g(k){Wc.isPressed(k)&&!p&&(k.preventDefault(),k.stopPropagation(),a==null||a.hide(),u(d))}function v(){u(d)}function y(k){pt[k?"unshift":"push"]((()=>{_=k,n(5,_)}))}function b(){d=this.value,n(1,d)}function w(k){pt[k?"unshift":"push"]((()=>{a=k,n(4,a)}))}return t.$$.update=()=>{t.$$.dirty&16391&&c&&!p&&u(d)},[c,d,p,l,a,_,i,o,f,m,g,v,r,s,u,y,b,w]}class oce extends Gt{constructor(e){super(),Yt(this,e,ice,nce,Rt,{show:12,hide:13})}get show(){return this.$$.ctx[12]}get hide(){return this.$$.ctx[13]}}function cc(t,e){if(!e||typeof e!="object")return e;if(typeof e.$ref=="string")return e.$ref==="common.json#/non_empty_string"?{type:"string"}:e.$ref==="common.json#/color"?{type:"color"}:e.$ref==="common.json#/url"?{type:"url"}:e.$ref.startsWith("#definitions")||e.$ref.startsWith("#/definitions")?cc(t,t.definitions[e.$ref.replace(/^#\/?/,"").split("/").slice(1).join("/")]):JV(e.$ref.replace(/\.json$/,""));for(const n in e){const i=e[n];if(i&&typeof i=="object")if(Array.isArray(i))for(let o=0;o<i.length;++o)i[o]=cc(t,i[o]);else e[n]=cc(t,i)}return e}function JV(t){var n;const e=(n=wa[t])==null?void 0:n.default;return cc(e,e)}function UV(t){const e=[];let n=new Set;if(Array.isArray(t.required)&&(n=new Set(t.required)),t.properties)for(const i in t.properties){const o=t.properties[i];if(!(i==="type"&&o.type==="string"&&Array.isArray(o.enum)&&o.enum.length===1))if(o.anyOf){const r={name:i,type:"select",options:o.anyOf.map((s=>{var a,c,d;const l=(d=(c=(a=s.properties)==null?void 0:a.type)==null?void 0:c.enum)==null?void 0:d[0];return{text:l,value:l}})).filter((s=>s.text)),required:n.has(i),subcontrols:{}};o.anyOf.forEach((s=>{var a,c,d;const l=(d=(c=(a=s.properties)==null?void 0:a.type)==null?void 0:c.enum)==null?void 0:d[0];l&&(r.subcontrols[l]=UV(s))})),e.push(r)}else{let r="string";const s=o.type;(s==="integer"||s==="number"||s==="color"||s==="url"||s==="boolean"||s==="object"||s==="array")&&(r=s),e.push({name:i,type:r,required:n.has(i)})}}return e}function rce(t){try{const e=JV(t);if(e)return UV(e)}catch(e){console.error(e)}return[]}function Av(t,e,n){const i=t.slice();return i[15]=e[n],i[16]=e,i[17]=n,i}function Ov(t){let e;return{c(){e=xe(".type")},m(n,i){F(n,e,i)},d(n){n&&V(e)}}}function sce(t){let e,n,i;function o(s){t[11](s,t[15])}let r={subtype:Dv[t[15].type],disabled:t[2]};return t[0][t[15].name]!==void 0&&(r.value=t[0][t[15].name]),e=new ho({props:r}),pt.push((()=>Gn(e,"value",o))),e.$on("change",t[12]),{c(){Pe(e.$$.fragment)},m(s,l){Ee(e,s,l),i=!0},p(s,l){t=s;const a={};l&2&&(a.subtype=Dv[t[15].type]),l&4&&(a.disabled=t[2]),!n&&l&3&&(n=!0,a.value=t[0][t[15].name],Xn((()=>n=!1))),e.$set(a)},i(s){i||(I(e.$$.fragment,s),i=!0)},o(s){H(e.$$.fragment,s),i=!1},d(s){Ae(e,s)}}}function lce(t){let e,n,i;function o(s){t[9](s,t[15])}let r={hasDialog:!0,readOnly:t[2]};return t[0][t[15].name]!==void 0&&(r.value=t[0][t[15].name]),e=new pd({props:r}),pt.push((()=>Gn(e,"value",o))),e.$on("change",t[10]),{c(){Pe(e.$$.fragment)},m(s,l){Ee(e,s,l),i=!0},p(s,l){t=s;const a={};l&4&&(a.readOnly=t[2]),!n&&l&3&&(n=!0,a.value=t[0][t[15].name],Xn((()=>n=!1))),e.$set(a)},i(s){i||(I(e.$$.fragment,s),i=!0)},o(s){H(e.$$.fragment,s),i=!1},d(s){Ae(e,s)}}}function ace(t){let e,n,i;function o(s){t[7](s,t[15])}let r={disabled:t[2]};return t[0][t[15].name]!==void 0&&(r.value=t[0][t[15].name]),e=new qV({props:r}),pt.push((()=>Gn(e,"value",o))),e.$on("change",t[8]),{c(){Pe(e.$$.fragment)},m(s,l){Ee(e,s,l),i=!0},p(s,l){t=s;const a={};l&4&&(a.disabled=t[2]),!n&&l&3&&(n=!0,a.value=t[0][t[15].name],Xn((()=>n=!1))),e.$set(a)},i(s){i||(I(e.$$.fragment,s),i=!0)},o(s){H(e.$$.fragment,s),i=!1},d(s){Ae(e,s)}}}function cce(t){let e,n,i;function o(l){t[4](l,t[15])}function r(){return t[5](t[15])}let s={theme:"normal",size:"medium",items:t[15].options,disabled:t[2]};return t[0][t[15].name].type!==void 0&&(s.value=t[0][t[15].name].type),e=new Hr({props:s}),pt.push((()=>Gn(e,"value",o))),e.$on("change",r),e.$on("change",t[6]),{c(){Pe(e.$$.fragment)},m(l,a){Ee(e,l,a),i=!0},p(l,a){t=l;const c={};a&2&&(c.items=t[15].options),a&4&&(c.disabled=t[2]),!n&&a&3&&(n=!0,c.value=t[0][t[15].name].type,Xn((()=>n=!1))),e.$set(c)},i(l){i||(I(e.$$.fragment,l),i=!0)},o(l){H(e.$$.fragment,l),i=!1},d(l){Ae(e,l)}}}function Mv(t){let e,n=t[0][t[15].name].type,i,o=Pv(t);return{c(){e=S("div"),o.c(),h(e,"class","controls-list__sublist svelte-841cor")},m(r,s){F(r,e,s),o.m(e,null),i=!0},p(r,s){s&3&&Rt(n,n=r[0][r[15].name].type)?(Dt(),H(o,1,1,tn),Vt(),o=Pv(r),o.c(),I(o,1),o.m(e,null)):o.p(r,s)},i(r){i||(I(o),i=!0)},o(r){H(o),i=!1},d(r){r&&V(e),o.d(r)}}}function Pv(t){let e,n,i;function o(s){t[13](s,t[15])}let r={controls:t[15].subcontrols[t[0][t[15].name].type],readOnly:t[2]};return t[0][t[15].name]!==void 0&&(r.value=t[0][t[15].name]),e=new WV({props:r}),pt.push((()=>Gn(e,"value",o))),e.$on("change",t[14]),{c(){Pe(e.$$.fragment)},m(s,l){Ee(e,s,l),i=!0},p(s,l){t=s;const a={};l&3&&(a.controls=t[15].subcontrols[t[0][t[15].name].type]),l&4&&(a.readOnly=t[2]),!n&&l&3&&(n=!0,a.value=t[0][t[15].name],Xn((()=>n=!1))),e.$set(a)},i(s){i||(I(e.$$.fragment,s),i=!0)},o(s){H(e.$$.fragment,s),i=!1},d(s){Ae(e,s)}}}function Iv(t){let e,n,i,o=t[15].name+"",r,s,l,a,c,d,u,p=t[15].type==="select"&&Ov();const _=[cce,ace,lce,sce],f=[];function m(v,y){return v[15].type==="select"?0:v[15].type==="boolean"?1:v[15].type==="color"?2:3}l=m(t),a=f[l]=_[l](t);let g=t[15].type==="select"&&t[15].subcontrols[t[0][t[15].name].type]&&Mv(t);return{c(){e=S("div"),n=S("label"),i=S("div"),r=xe(o),p&&p.c(),s=G(),a.c(),c=G(),g&&g.c(),d=G(),h(i,"class","controls-list__label svelte-841cor"),h(n,"class","controls-list__row")},m(v,y){F(v,e,y),$(e,n),$(n,i),$(i,r),p&&p.m(i,null),$(n,s),f[l].m(n,null),$(e,c),g&&g.m(e,null),$(e,d),u=!0},p(v,y){(!u||y&2)&&o!==(o=v[15].name+"")&&at(r,o),v[15].type==="select"?p||(p=Ov(),p.c(),p.m(i,null)):p&&(p.d(1),p=null);let b=l;l=m(v),l===b?f[l].p(v,y):(Dt(),H(f[b],1,1,(()=>{f[b]=null})),Vt(),a=f[l],a?a.p(v,y):(a=f[l]=_[l](v),a.c()),I(a,1),a.m(n,null)),v[15].type==="select"&&v[15].subcontrols[v[0][v[15].name].type]?g?(g.p(v,y),y&3&&I(g,1)):(g=Mv(v),g.c(),I(g,1),g.m(e,d)):g&&(Dt(),H(g,1,1,(()=>{g=null})),Vt())},i(v){u||(I(a),I(g),u=!0)},o(v){H(a),H(g),u=!1},d(v){v&&V(e),p&&p.d(),f[l].d(),g&&g.d()}}}function dce(t){let e,n,i=ln(t[1]),o=[];for(let s=0;s<i.length;s+=1)o[s]=Iv(Av(t,i,s));const r=s=>H(o[s],1,1,(()=>{o[s]=null}));return{c(){e=S("div");for(let s=0;s<o.length;s+=1)o[s].c();h(e,"class","controls-list svelte-841cor")},m(s,l){F(s,e,l);for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(e,null);n=!0},p(s,[l]){if(l&15){i=ln(s[1]);let a;for(a=0;a<i.length;a+=1){const c=Av(s,i,a);o[a]?(o[a].p(c,l),I(o[a],1)):(o[a]=Iv(c),o[a].c(),I(o[a],1),o[a].m(e,null))}for(Dt(),a=i.length;a<o.length;a+=1)r(a);Vt()}},i(s){if(!n){for(let l=0;l<i.length;l+=1)I(o[l]);n=!0}},o(s){o=o.filter(Boolean);for(let l=0;l<o.length;l+=1)H(o[l]);n=!1},d(s){s&&V(e),Bi(o,s)}}}const Dv={string:void 0,integer:"integer",number:"number",color:void 0,url:void 0,boolean:void 0,array:"array",object:"dict"};function uce(t,e,n){let{value:i}=e,{controls:o}=e,{readOnly:r}=e;function s(y){n(0,i[y]={type:i[y].type},i)}function l(y,b){t.$$.not_equal(i[b.name].type,y)&&(i[b.name].type=y,n(0,i),n(1,o))}const a=y=>s(y.name);function c(y){mn.call(this,t,y)}function d(y,b){t.$$.not_equal(i[b.name],y)&&(i[b.name]=y,n(0,i),n(1,o))}function u(y){mn.call(this,t,y)}function p(y,b){t.$$.not_equal(i[b.name],y)&&(i[b.name]=y,n(0,i),n(1,o))}function _(y){mn.call(this,t,y)}function f(y,b){t.$$.not_equal(i[b.name],y)&&(i[b.name]=y,n(0,i),n(1,o))}function m(y){mn.call(this,t,y)}function g(y,b){t.$$.not_equal(i[b.name],y)&&(i[b.name]=y,n(0,i),n(1,o))}function v(y){mn.call(this,t,y)}return t.$$set=y=>{"value"in y&&n(0,i=y.value),"controls"in y&&n(1,o=y.controls),"readOnly"in y&&n(2,r=y.readOnly)},t.$$.update=()=>{t.$$.dirty&3&&o.forEach((y=>{y.type==="select"&&n(0,i[y.name]=i[y.name]||{},i)}))},[i,o,r,s,l,a,c,d,u,p,_,f,m,g,v]}class WV extends Gt{constructor(e){super(),Yt(this,e,uce,dce,Rt,{value:0,controls:1,readOnly:2})}}function Vv(t,e,n){const i=t.slice();return i[28]=e[n],i[29]=e,i[30]=n,i}function Lv(t){let e,n;return e=new Cr({props:{target:t[6],canMove:!0,overflow:"visible",$$slots:{default:[mce]},$$scope:{ctx:t}}}),e.$on("close",t[13]),{c(){Pe(e.$$.fragment)},m(i,o){Ee(e,i,o),n=!0},p(i,o){const r={};o[0]&64&&(r.target=i[6]),o[0]&957|o[1]&1&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Ae(e,i)}}}function pce(t){let e,n,i=ln(t[7]),o=[];for(let s=0;s<i.length;s+=1)o[s]=Fv(Vv(t,i,s));const r=s=>H(o[s],1,1,(()=>{o[s]=null}));return{c(){for(let s=0;s<o.length;s+=1)o[s].c();e=Vn()},m(s,l){for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(s,l);F(s,e,l),n=!0},p(s,l){if(l[0]&32920){i=ln(s[7]);let a;for(a=0;a<i.length;a+=1){const c=Vv(s,i,a);o[a]?(o[a].p(c,l),I(o[a],1)):(o[a]=Fv(c),o[a].c(),I(o[a],1),o[a].m(e.parentNode,e))}for(Dt(),a=i.length;a<o.length;a+=1)r(a);Vt()}},i(s){if(!n){for(let l=0;l<i.length;l+=1)I(o[l]);n=!0}},o(s){o=o.filter(Boolean);for(let l=0;l<o.length;l+=1)H(o[l]);n=!1},d(s){s&&V(e),Bi(o,s)}}}function _ce(t){let e,n,i;function o(s){t[22](s)}let r={readOnly:t[3],controls:t[8]};return t[2].typed!==void 0&&(r.value=t[2].typed),e=new WV({props:r}),pt.push((()=>Gn(e,"value",o))),{c(){Pe(e.$$.fragment)},m(s,l){Ee(e,s,l),i=!0},p(s,l){const a={};l[0]&8&&(a.readOnly=s[3]),l[0]&256&&(a.controls=s[8]),!n&&l[0]&4&&(n=!0,a.value=s[2].typed,Xn((()=>n=!1))),e.$set(a)},i(s){i||(I(e.$$.fragment,s),i=!0)},o(s){H(e.$$.fragment,s),i=!1},d(s){Ae(e,s)}}}function fce(t){let e,n,i,o=t[5]("actions-url")+"",r,s,l,a,c;function d(p){t[21](p)}let u={disabled:t[3]};return t[2].url!==void 0&&(u.value=t[2].url),l=new ho({props:u}),pt.push((()=>Gn(l,"value",d))),{c(){e=S("div"),n=S("label"),i=S("div"),r=xe(o),s=G(),Pe(l.$$.fragment),h(i,"class","actions2-dialog__label svelte-1krewng")},m(p,_){F(p,e,_),$(e,n),$(n,i),$(i,r),$(n,s),Ee(l,n,null),c=!0},p(p,_){(!c||_[0]&32)&&o!==(o=p[5]("actions-url")+"")&&at(r,o);const f={};_[0]&8&&(f.disabled=p[3]),!a&&_[0]&4&&(a=!0,f.value=p[2].url,Xn((()=>a=!1))),l.$set(f)},i(p){c||(I(l.$$.fragment,p),c=!0)},o(p){H(l.$$.fragment,p),c=!1},d(p){p&&V(e),Ae(l)}}}function Fv(t){let e,n,i,o=(t[28].desc.text[t[4]]||t[28].desc.name)+"",r,s,l,a,c,d;function u(_){t[23](_,t[28])}let p={disabled:t[3]};return t[28].value!==void 0&&(p.value=t[28].value),l=new ho({props:p}),pt.push((()=>Gn(l,"value",u))),l.$on("change",t[15]),{c(){e=S("div"),n=S("label"),i=S("div"),r=xe(o),s=G(),Pe(l.$$.fragment),c=G(),h(i,"class","actions2-dialog__label svelte-1krewng")},m(_,f){F(_,e,f),$(e,n),$(n,i),$(i,r),$(n,s),Ee(l,n,null),$(e,c),d=!0},p(_,f){t=_,(!d||f[0]&144)&&o!==(o=(t[28].desc.text[t[4]]||t[28].desc.name)+"")&&at(r,o);const m={};f[0]&8&&(m.disabled=t[3]),!a&&f[0]&128&&(a=!0,m.value=t[28].value,Xn((()=>a=!1))),l.$set(m)},i(_){d||(I(l.$$.fragment,_),d=!0)},o(_){H(l.$$.fragment,_),d=!1},d(_){_&&V(e),Ae(l)}}}function mce(t){let e,n,i,o,r,s,l,a,c,d,u=t[5]("actions-log-id")+"",p,_,f,m,g,v,y,b,w=t[5]("actions-log-url")+"",k,A,j,T,E;function O(Y){t[20](Y)}let M={items:t[9],theme:"normal",size:"medium",disabled:t[3]};t[0]!==void 0&&(M.value=t[0]),n=new Hr({props:M}),pt.push((()=>Gn(n,"value",O))),n.$on("change",t[14]);const D=[fce,_ce,pce],R=[];function J(Y,x){var ce;return Y[0]==="url"?0:(ce=Y[8])!=null&&ce.length&&Y[2].typed?1:Y[7].length?2:-1}~(r=J(t))&&(s=R[r]=D[r](t));function B(Y){t[24](Y)}let z={disabled:t[3]};t[2].log_id!==void 0&&(z.value=t[2].log_id),f=new ho({props:z}),pt.push((()=>Gn(f,"value",B)));function q(Y){t[25](Y)}let N={disabled:t[3]};return t[2].log_url!==void 0&&(N.value=t[2].log_url),j=new ho({props:N}),pt.push((()=>Gn(j,"value",q))),{c(){e=S("div"),Pe(n.$$.fragment),o=G(),s&&s.c(),l=G(),a=S("div"),c=S("label"),d=S("div"),p=xe(u),_=G(),Pe(f.$$.fragment),g=G(),v=S("div"),y=S("label"),b=S("div"),k=xe(w),A=G(),Pe(j.$$.fragment),h(d,"class","actions2-dialog__label svelte-1krewng"),h(b,"class","actions2-dialog__label svelte-1krewng"),h(e,"class","actions2-dialog__content svelte-1krewng")},m(Y,x){F(Y,e,x),Ee(n,e,null),$(e,o),~r&&R[r].m(e,null),$(e,l),$(e,a),$(a,c),$(c,d),$(d,p),$(c,_),Ee(f,c,null),$(e,g),$(e,v),$(v,y),$(y,b),$(b,k),$(y,A),Ee(j,y,null),E=!0},p(Y,x){const ce={};x[0]&512&&(ce.items=Y[9]),x[0]&8&&(ce.disabled=Y[3]),!i&&x[0]&1&&(i=!0,ce.value=Y[0],Xn((()=>i=!1))),n.$set(ce);let ue=r;r=J(Y),r===ue?~r&&R[r].p(Y,x):(s&&(Dt(),H(R[ue],1,1,(()=>{R[ue]=null})),Vt()),~r?(s=R[r],s?s.p(Y,x):(s=R[r]=D[r](Y),s.c()),I(s,1),s.m(e,l)):s=null),(!E||x[0]&32)&&u!==(u=Y[5]("actions-log-id")+"")&&at(p,u);const Z={};x[0]&8&&(Z.disabled=Y[3]),!m&&x[0]&4&&(m=!0,Z.value=Y[2].log_id,Xn((()=>m=!1))),f.$set(Z),(!E||x[0]&32)&&w!==(w=Y[5]("actions-log-url")+"")&&at(k,w);const Q={};x[0]&8&&(Q.disabled=Y[3]),!T&&x[0]&4&&(T=!0,Q.value=Y[2].log_url,Xn((()=>T=!1))),j.$set(Q)},i(Y){E||(I(n.$$.fragment,Y),I(s),I(f.$$.fragment,Y),I(j.$$.fragment,Y),E=!0)},o(Y){H(n.$$.fragment,Y),H(s),H(f.$$.fragment,Y),H(j.$$.fragment,Y),E=!1},d(Y){Y&&V(e),Ae(n),~r&&R[r].d(),Ae(f),Ae(j)}}}function gce(t){let e,n,i=t[1]&&t[6]&&Lv(t);return{c(){i&&i.c(),e=Vn()},m(o,r){i&&i.m(o,r),F(o,e,r),n=!0},p(o,r){o[1]&&o[6]?i?(i.p(o,r),r[0]&66&&I(i,1)):(i=Lv(o),i.c(),I(i,1),i.m(e.parentNode,e)):i&&(Dt(),H(i,1,1,(()=>{i=null})),Vt())},i(o){n||(I(i),n=!0)},o(o){H(i),n=!1},d(o){o&&V(e),i&&i.d(o)}}}const Nv={focus_element:"div-action-focus-element",clear_focus:"div-action-clear-focus",set_variable:"div-action-set-variable",array_insert_value:"div-action-array-insert-value",array_remove_value:"div-action-array-remove-value",dict_set_value:"div-action-dict-set-value",array_set_value:"div-action-array-set-value",copy_to_clipboard:"div-action-copy-to-clipboard",show_tooltip:"div-action-show-tooltip",hide_tooltip:"div-action-hide-tooltip"};function qv(t,e){const n=new URLSearchParams;for(const i of e){const o=i.value;o&&n.set(i.desc.name,o)}return t.baseUrl+(n.size?"?"+n.toString():"")}function hce(t,e,n){let i,o,r,s;const{l10n:l,lang:a}=yt(oi);De(t,l,(B=>n(5,s=B))),De(t,a,(B=>n(4,o=B)));const{state:c}=yt(Cn),{customActions:d}=c;De(t,d,(B=>n(19,r=B)));function u(B){n(18,y=B.callback),n(6,_=B.target),n(2,v=B.value),n(3,b=B.readOnly),n(1,g=!0);const z=DV(B.value,r);n(0,f=z.type),w=z.desc,n(7,m=z.args||[])}function p(){n(1,g=!1)}let _,f="url",m=[],g=!1,v,y,b,w,k=null;function A(){n(1,g=!1)}function j(){var B;w=f.startsWith("custom:")?r[Number(f.split(":")[1])]:void 0,w?(n(2,v.url=qv(w,[]),v),n(7,m=((B=w.args)==null?void 0:B.map((z=>({value:"",desc:z}))))||[])):f.startsWith("typed:")?n(2,v.typed={type:f.split(":")[1]},v):n(7,m=[])}function T(){w&&n(2,v.url=qv(w,m),v)}function E(B){f=B,n(0,f)}function O(B){t.$$.not_equal(v.url,B)&&(v.url=B,n(2,v))}function M(B){t.$$.not_equal(v.typed,B)&&(v.typed=B,n(2,v))}function D(B,z){t.$$.not_equal(z.value,B)&&(z.value=B,n(7,m))}function R(B){t.$$.not_equal(v.log_id,B)&&(v.log_id=B,n(2,v))}function J(B){t.$$.not_equal(v.log_url,B)&&(v.log_url=B,n(2,v))}return t.$$.update=()=>{if(t.$$.dirty[0]&262158&&g&&!b&&y&&(v.log_url||delete v.log_url,y(v)),t.$$.dirty[0]&1)if(f.startsWith("typed:")){const B=f.split(":")[1];B in Nv?n(8,k=rce(Nv[B])):n(8,k=[])}else n(8,k=null);t.$$.dirty[0]&524336&&n(9,i=[{value:"url",text:s("actions-url")},{value:"typed:set_variable",text:s("actions.set_variable")},{value:"typed:focus_element",text:s("actions.focus_element")},{value:"typed:clear_focus",text:s("actions.clear_focus")},{value:"typed:array_insert_value",text:s("actions.array_insert_value")},{value:"typed:array_remove_value",text:s("actions.array_remove_value")},{value:"typed:array_set_value",text:s("actions.array_set_value")},{value:"typed:dict_set_value",text:s("actions.dict_set_value")},{value:"typed:copy_to_clipboard",text:s("actions.copy_to_clipboard")},{value:"typed:show_tooltip",text:s("actions.show_tooltip")},{value:"typed:hide_tooltip",text:s("actions.hide_tooltip")}].concat(r.map(((B,z)=>({value:`custom:${z}`,text:B.text[o]||B.baseUrl})))))},[f,g,v,b,o,s,_,m,k,i,l,a,d,A,j,T,u,p,y,r,E,O,M,D,R,J]}class vce extends Gt{constructor(e){super(),Yt(this,e,hce,gce,Rt,{show:16,hide:17},null,[-1,-1])}get show(){return this.$$.ctx[16]}get hide(){return this.$$.ctx[17]}}function Rv(t){let e,n;return e=new Cr({props:{direction:"down",offsetY:12,target:t[3],width:10+t[4]*32+(t[4]-1)*4+"px",$$slots:{default:[bce]},$$scope:{ctx:t}}}),e.$on("close",t[10]),{c(){Pe(e.$$.fragment)},m(i,o){Ee(e,i,o),n=!0},p(i,o){const r={};o&8&&(r.target=i[3]),o&16&&(r.width=10+i[4]*32+(i[4]-1)*4+"px"),o&131174&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Ae(e,i)}}}function bce(t){let e,n,i;function o(s){t[15](s)}let r={name:"text_alignment_horizontal",theme:"tertiary",defaultValue:"left",disabled:t[2],options:[{text:t[5]("props.align_left"),value:"left",icon:Dc},t[7]&&{text:t[6]==="ltr"?t[5]("props.align_start"):t[5]("props.align_end"),value:t[6]==="ltr"?"start":"end",icon:Vc},{text:t[5]("props.align_center"),value:"center",icon:dl},t[7]&&{text:t[6]==="ltr"?t[5]("props.align_end"):t[5]("props.align_start"),value:t[6]==="ltr"?"end":"start",icon:Fc},{text:t[5]("props.align_right"),value:"right",icon:Lc}].filter(kr),customTooltips:!1};return t[1]!==void 0&&(r.value=t[1]),e=new Dl({props:r}),pt.push((()=>Gn(e,"value",o))),e.$on("change",t[11]),{c(){Pe(e.$$.fragment)},m(s,l){Ee(e,s,l),i=!0},p(s,l){const a={};l&4&&(a.disabled=s[2]),l&96&&(a.options=[{text:s[5]("props.align_left"),value:"left",icon:Dc},s[7]&&{text:s[6]==="ltr"?s[5]("props.align_start"):s[5]("props.align_end"),value:s[6]==="ltr"?"start":"end",icon:Vc},{text:s[5]("props.align_center"),value:"center",icon:dl},s[7]&&{text:s[6]==="ltr"?s[5]("props.align_end"):s[5]("props.align_start"),value:s[6]==="ltr"?"end":"start",icon:Fc},{text:s[5]("props.align_right"),value:"right",icon:Lc}].filter(kr)),!n&&l&2&&(n=!0,a.value=s[1],Xn((()=>n=!1))),e.$set(a)},i(s){i||(I(e.$$.fragment,s),i=!0)},o(s){H(e.$$.fragment,s),i=!1},d(s){Ae(e,s)}}}function yce(t){let e,n,i=t[0]&&t[3]&&Rv(t);return{c(){i&&i.c(),e=Vn()},m(o,r){i&&i.m(o,r),F(o,e,r),n=!0},p(o,[r]){o[0]&&o[3]?i?(i.p(o,r),r&9&&I(i,1)):(i=Rv(o),i.c(),I(i,1),i.m(e.parentNode,e)):i&&(Dt(),H(i,1,1,(()=>{i=null})),Vt())},i(o){n||(I(i),n=!0)},o(o){H(i),n=!1},d(o){o&&V(e),i&&i.d(o)}}}function wce(t,e,n){let i,o,r;const{directionSelector:s,state:l}=yt(Cn),{l10n:a}=yt(oi);De(t,a,(w=>n(5,o=w)));const{direction:c}=l;De(t,c,(w=>n(6,r=w)));function d(w){n(14,m=w.callback),n(3,p=w.target),n(1,f=w.value),n(2,g=w.disabled),n(0,_=!0)}function u(){n(0,_=!1)}let p,_=!1,f,m,g;function v(){n(0,_=!1)}function y(){m(f)}function b(w){f=w,n(1,f)}return t.$$.update=()=>{t.$$.dirty&16391&&_&&!g&&m(f)},n(4,i=s?5:3),[_,f,g,p,i,o,r,s,a,c,v,y,d,u,m,b]}class $ce extends Gt{constructor(e){super(),Yt(this,e,wce,yce,Rt,{show:12,hide:13})}get show(){return this.$$.ctx[12]}get hide(){return this.$$.ctx[13]}}function xl(t){if(!t)return;let e="";for(const n in t)if(t.hasOwnProperty(n)){if(!t[n]&&t[n]!==0)continue;e&&(e+=";"),e+=n+":"+String(t[n])}return e||void 0}function Pr(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 kce='<svg xmlns="http://www.w3.org/2000/svg" width="17" height="6" fill="none" class="inplace-editor__alert-tail"><path fill="currentColor" d="M7.143 1.252 3.15 4.94A4 4 0 0 1 .436 6h16.128a4 4 0 0 1-2.713-1.06L9.857 1.251a2 2 0 0 0-2.714 0Z"/></svg>';function Bv(t){let e,n,i,o,r=t[16]("inplaceEditorDisabled")+"",s,l,a,c,d,u,p,_;return{c(){e=S("div"),n=S("div"),i=new Cu(!1),o=G(),s=xe(r),l=G(),a=S("button"),i.a=o,h(a,"class","inplace-editor__disabled-alert-close svelte-auqd4z"),h(a,"title",c=t[16]("close")),h(n,"class","inplace-editor__disabled-alert svelte-auqd4z"),h(e,"class","inplace-editor__disabled-alert-wrapper svelte-auqd4z")},m(f,m){F(f,e,m),$(e,n),i.m(kce,n),$(n,o),$(n,s),$(n,l),$(n,a),u=!0,p||(_=te(a,"click",t[49]),p=!0)},p(f,m){(!u||m[0]&65536)&&r!==(r=f[16]("inplaceEditorDisabled")+"")&&at(s,r),(!u||m[0]&65536&&c!==(c=f[16]("close")))&&h(a,"title",c)},i(f){u||(f&&_o((()=>{u&&(d||(d=Zi(e,fr,{y:20,duration:150},!0)),d.run(1))})),u=!0)},o(f){f&&(d||(d=Zi(e,fr,{y:20,duration:150},!1)),d.run(0)),u=!1},d(f){f&&V(e),f&&d&&d.end(),p=!1,_()}}}function jce(t){let e,n,i,o,r,s,l,a,c,d,u,p,_,f,m,g,v,y,b,w,k,A,j,T,E,O,M,D,R,J,B,z,q,N,Y,x,ce,ue,Z,Q,se,_e,Oe,W,ge,it,ye=`translateY(${-t[8]/2}px)`,rt,U,de,pe,et,we,Ie,Xe,vt,Qe,fe=[{class:"inplace-editor__button2 inplace-editor__button2_text"},{title:s=t[16]("props.font_size")},{contenteditable:l=t[0]?void 0:"true"},{autocorrect:"off"},{autocapitalize:"off"},{spellcheck:"false"},{autocomplete:"off"}],me={};for(let Ge=0;Ge<fe.length;Ge+=1)me=_s(me,fe[Ge]);d=new Xs({props:{color:t[4],mix:"inplace-editor__color-preview"}});let ve=t[10]&&Bv(t);return{c(){e=S("div"),n=S("div"),i=S("div"),o=S("div"),r=xe(t[3]),a=G(),c=S("button"),Pe(d.$$.fragment),p=G(),_=S("button"),f=S("div"),v=G(),y=S("div"),b=S("div"),w=G(),k=S("select"),A=S("option"),j=S("option"),j.textContent="Light",T=S("option"),T.textContent="Normal",E=S("option"),E.textContent="Medium",O=S("option"),O.textContent="Bold",D=G(),R=S("button"),J=S("div"),z=G(),q=S("button"),N=S("div"),x=G(),ce=S("div"),ue=G(),Z=S("button"),Q=S("div"),_e=G(),Oe=S("button"),W=S("div"),rt=G(),U=S("div"),we=G(),ve&&ve.c(),fs(o,me),ne(o,"svelte-auqd4z",!0),h(c,"class","inplace-editor__button2 inplace-editor__button2_color svelte-auqd4z"),h(c,"title",u=t[16]("props.text_color")),h(f,"class",m="inplace-editor__select-icon inplace-editor__select-icon_align_"+t[9]+" svelte-auqd4z"),h(_,"class","inplace-editor__button2 inplace-editor__button2_color svelte-auqd4z"),h(_,"title",g=t[16]("props.text_alignment_horizontal")),h(b,"class","inplace-editor__select-icon inplace-editor__select-icon_weight svelte-auqd4z"),A.__value="",Hn(A,A.__value),j.__value="light",Hn(j,j.__value),T.__value="normal",Hn(T,T.__value),E.__value="medium",Hn(E,E.__value),O.__value="bold",Hn(O,O.__value),h(k,"class","inplace-editor__select svelte-auqd4z"),h(k,"title",M=t[16]("props.font_weight")),k.disabled=t[0],t[5]===void 0&&_o((()=>t[45].call(k))),h(y,"class","inplace-editor__button2 inplace-editor__button2_select svelte-auqd4z"),h(J,"class","inplace-editor__select-icon inplace-editor__select-icon_underline svelte-auqd4z"),h(R,"class","inplace-editor__button2 svelte-auqd4z"),h(R,"title",B=t[16]("props.underline")),ne(R,"inplace-editor__button2_toggled",t[6]),h(N,"class","inplace-editor__select-icon inplace-editor__select-icon_strike svelte-auqd4z"),h(q,"class","inplace-editor__button2 svelte-auqd4z"),h(q,"title",Y=t[16]("props.strike")),ne(q,"inplace-editor__button2_toggled",t[7]),h(ce,"class","inplace-editor__separator svelte-auqd4z"),h(Q,"class","inplace-editor__select-icon inplace-editor__select-icon_actions svelte-auqd4z"),h(Z,"class","inplace-editor__button2 svelte-auqd4z"),h(Z,"title",se=t[16]("props.actions")),h(W,"class","inplace-editor__select-icon inplace-editor__select-icon_image svelte-auqd4z"),h(Oe,"class","inplace-editor__button2 svelte-auqd4z"),Oe.disabled=t[1],h(Oe,"title",ge=t[16]("image")),ne(Oe,"inplace-editor__button2_disabled",t[1]),h(i,"class","inplace-editor__toolbar-inner svelte-auqd4z"),h(n,"class","inplace-editor__toolbar svelte-auqd4z"),ke(n,"transform",ye),h(U,"class",de="inplace-editor__content inplace-editor__content_align_"+t[9]+" svelte-auqd4z"),h(U,"contenteditable",pe=t[0]||t[1]?void 0:"true"),h(U,"style",et=xl(t[15])),h(e,"class",Ie="inplace-editor inplace-editor_direction_"+t[17]+" svelte-auqd4z"),ne(e,"inplace-editor_disabled",t[0])},m(Ge,gt){F(Ge,e,gt),$(e,n),$(n,i),$(i,o),$(o,r),$(i,a),$(i,c),Ee(d,c,null),$(i,p),$(i,_),$(_,f),t[44](_),$(i,v),$(i,y),$(y,b),$(y,w),$(y,k),$(k,A),$(k,j),$(k,T),$(k,E),$(k,O),pc(k,t[5],!0),$(i,D),$(i,R),$(R,J),$(i,z),$(i,q),$(q,N),$(i,x),$(i,ce),$(i,ue),$(i,Z),$(Z,Q),t[46](Z),$(i,_e),$(i,Oe),$(Oe,W),t[47](i),$(e,rt),$(e,U),t[48](U),$(e,we),ve&&ve.m(e,null),t[50](e),Xe=!0,vt||(Qe=[te(o,"input",t[28]),te(c,"click",zi(t[29])),te(_,"click",zi(t[30])),te(k,"change",t[45]),te(k,"change",t[27]),te(R,"click",zi(t[31])),te(q,"click",zi(t[32])),te(Z,"click",zi(t[33])),te(Oe,"click",zi(t[26])),te(U,"input",t[24]),te(U,"paste",Cce),te(U,"selectionchange",t[25]),te(U,"mousemove",t[25]),te(U,"mouseup",zi(t[25])),te(U,"contextmenu",t[25]),te(U,"keyup",t[25]),te(U,"keydown",t[25]),te(U,"focus",t[25]),te(e,"click",Eo(t[41])),te(e,"dblclick",Eo(t[42])),te(e,"keydown",Eo(t[23])),te(e,"pointerdown",Eo(t[43]))],vt=!0)},p(Ge,gt){(!Xe||gt[0]&8)&&rL(r,Ge[3],Ge[0]?void 0:"true"),fs(o,me=yl(fe,[{class:"inplace-editor__button2 inplace-editor__button2_text"},(!Xe||gt[0]&65536&&s!==(s=Ge[16]("props.font_size")))&&{title:s},(!Xe||gt[0]&1&&l!==(l=Ge[0]?void 0:"true"))&&{contenteditable:l},{autocorrect:"off"},{autocapitalize:"off"},{spellcheck:"false"},{autocomplete:"off"}])),ne(o,"svelte-auqd4z",!0);const ee={};gt[0]&16&&(ee.color=Ge[4]),d.$set(ee),(!Xe||gt[0]&65536&&u!==(u=Ge[16]("props.text_color")))&&h(c,"title",u),(!Xe||gt[0]&512&&m!==(m="inplace-editor__select-icon inplace-editor__select-icon_align_"+Ge[9]+" svelte-auqd4z"))&&h(f,"class",m),(!Xe||gt[0]&65536&&g!==(g=Ge[16]("props.text_alignment_horizontal")))&&h(_,"title",g),(!Xe||gt[0]&65536&&M!==(M=Ge[16]("props.font_weight")))&&h(k,"title",M),(!Xe||gt[0]&1)&&(k.disabled=Ge[0]),gt[0]&32&&pc(k,Ge[5]),(!Xe||gt[0]&65536&&B!==(B=Ge[16]("props.underline")))&&h(R,"title",B),(!Xe||gt[0]&64)&&ne(R,"inplace-editor__button2_toggled",Ge[6]),(!Xe||gt[0]&65536&&Y!==(Y=Ge[16]("props.strike")))&&h(q,"title",Y),(!Xe||gt[0]&128)&&ne(q,"inplace-editor__button2_toggled",Ge[7]),(!Xe||gt[0]&65536&&se!==(se=Ge[16]("props.actions")))&&h(Z,"title",se),(!Xe||gt[0]&2)&&(Oe.disabled=Ge[1]),(!Xe||gt[0]&65536&&ge!==(ge=Ge[16]("image")))&&h(Oe,"title",ge),(!Xe||gt[0]&2)&&ne(Oe,"inplace-editor__button2_disabled",Ge[1]),gt[0]&256&&ye!==(ye=`translateY(${-Ge[8]/2}px)`)&&ke(n,"transform",ye),(!Xe||gt[0]&512&&de!==(de="inplace-editor__content inplace-editor__content_align_"+Ge[9]+" svelte-auqd4z"))&&h(U,"class",de),(!Xe||gt[0]&3&&pe!==(pe=Ge[0]||Ge[1]?void 0:"true"))&&h(U,"contenteditable",pe),(!Xe||gt[0]&32768&&et!==(et=xl(Ge[15])))&&h(U,"style",et),Ge[10]?ve?(ve.p(Ge,gt),gt[0]&1024&&I(ve,1)):(ve=Bv(Ge),ve.c(),I(ve,1),ve.m(e,null)):ve&&(Dt(),H(ve,1,1,(()=>{ve=null})),Vt()),(!Xe||gt[0]&131072&&Ie!==(Ie="inplace-editor inplace-editor_direction_"+Ge[17]+" svelte-auqd4z"))&&h(e,"class",Ie),(!Xe||gt[0]&131073)&&ne(e,"inplace-editor_disabled",Ge[0])},i(Ge){Xe||(I(d.$$.fragment,Ge),Ge&&_o((()=>{Xe&&(it||(it=Zi(n,vp,{duration:150},!0)),it.run(1))})),I(ve),Xe=!0)},o(Ge){H(d.$$.fragment,Ge),Ge&&(it||(it=Zi(n,vp,{duration:150},!1)),it.run(0)),H(ve),Xe=!1},d(Ge){Ge&&V(e),Ae(d),t[44](null),t[46](null),t[47](null),Ge&&it&&it.end(),t[48](null),ve&&ve.d(),t[50](null),vt=!1,Rn(Qe)}}}function ol(t){if(typeof t!="number"&&typeof t!="string"||!t)return"0";const e=Number(t);return isNaN(e)?"0":Math.ceil(e*1e3)/1e4+"em"}function Sce(t){if(t==="light"||t==="medium"||t==="bold"||t==="regular")return t==="medium"?500:t==="bold"?700:t==="light"?300:400}function Tce(t){t.target&&"classList"in t.target&&t.target.classList.add("inplace-editor__image_hidden")}function Cce(t){if(t.preventDefault(),t.clipboardData){let e=t.clipboardData.getData("text/plain");e=e.trim(),document.execCommand("inserttext",!1,e)}}function zce(t,e,n){var fi;let i,o,r,s,l,a,{text:c}=e,{json:d}=e,{leaf:u}=e,{disabled:p=!1}=e,{textDisabled:_=!1}=e,{rotation:f=0}=e;function m(){return{leaf:u,text:c,ranges:z,images:q,textAlign:W}}const{l10nString:g}=yt(oi);De(t,g,(Ke=>n(16,o=Ke)));const{actionLogUrlVariable:v,ownerDocument:y,getSelection:b,state:w,color2Dialog:k,file2Dialog:A,link2Dialog:j,textAlign2Dialog:T}=yt(Cn),{palette:E,selectedLeaf:O,previewThemeStore:M,direction:D}=w;De(t,E,(Ke=>n(58,l=Ke))),De(t,O,(Ke=>n(40,r=Ke))),De(t,M,(Ke=>n(57,s=Ke))),De(t,D,(Ke=>n(17,a=Ke)));const R=_i();function J(Ke){const bt=Ke.font_size||12,ct=(Ke.line_height||1.25)/bt,ht=ol(Ke.letter_spacing||0),qt=Sce(Ke.font_weight||"regular");let St=Ke.text_color||"#000",Ot="";if(or(St)){const ei=yr(St),Ft=l.find((xt=>xt.id===ei));Ft&&(Ot=Oc(Ft[s]))}else Ot=Oc(St);let nn="none";return(Ke.underline||Ke.strike)&&(Ke.underline==="single"&&Ke.strike==="single"?nn="underline line-through":Ke.underline==="single"?nn="underline":Ke.strike==="single"&&(nn="line-through")),xl({"font-size":ol(bt*10/ye),"line-height":ct,"letter-spacing":ht,"font-weight":qt,color:Ot,"text-decoration":nn})}function B(Ke){let bt=0;const ct={text:"",images:[],ranges:[]},ht=St=>{const Ot=fa(St);St instanceof HTMLElement&&St.dataset.range?(ct.ranges.push({...JSON.parse(St.dataset.range),start:bt,end:bt+Ot.length}),bt+=Ot.length,ct.text+=Ot):St instanceof HTMLElement&&St.dataset.image?St.tagName==="SPAN"?Array.from(St.childNodes).forEach((nn=>{if(nn instanceof HTMLElement&&nn.tagName==="IMG")ct.images.push({...JSON.parse(St.dataset.image),start:bt});else{const ei=fa(nn);bt+=ei.length,ct.text+=ei}})):ct.images.push({...JSON.parse(St.dataset.image),start:bt}):St instanceof HTMLElement&&St.childNodes.length?(St.tagName==="DIV"&&(++bt,ct.text+=`\n`),Array.from(St.childNodes).forEach(ht)):(bt+=Ot.length,ct.text+=Ot)};return Array.from(Ke.childNodes).forEach(ht),ct.ranges=Ge(ct.text,ct.ranges),ct}let z=d.ranges||[],q=d.images||[],N=0,Y=0,x="",ce="",ue="",Z=!1,Q=!1,se=0,_e=[{text:c,ranges:z,images:q}],Oe=0,W=((fi=u.props.processedJson)==null?void 0:fi.text_alignment_horizontal)||"left",ge=_&&!p;const it={font_size:d.font_size,letter_spacing:d.letter_spacing,font_weight:d.font_weight,font_family:d.font_family,text_color:d.text_color,underline:d.underline,strike:d.strike,line_height:d.line_height},ye=d.font_size||12,rt=d.line_height!==void 0?d.line_height/ye:1.25,U=d.text_color||"#000";let de=d.line_height!==void 0,pe,et,we,Ie,Xe,vt=[];Qe(c,z,q);function Qe(Ke,bt,ct){let ht=[];if(!(Array.isArray(bt)&&bt.length||Array.isArray(ct)&&ct.length&&Ke)){n(39,vt=[{index:0,text:Ke,textStyles:it}]);return}const qt=Ke;let St=bt||[{start:0,end:qt.length}],Ot=ct||[],nn=0,ei=[],Ft=[];St.forEach(((xt,dt)=>{xt.start!==void 0&&xt.end!==void 0&&(Ft.push({index:xt.start,elementIndex:dt,range:xt,type:"rangeStart",isStart:!0}),Ft.push({index:xt.end,elementIndex:dt,range:xt,type:"rangeEnd"}))})),Ot.forEach(((xt,dt)=>{xt.start!==void 0&&xt.url&&xt.start<=qt.length&&Ft.push({index:xt.start,elementIndex:dt,image:xt,type:"image",arrayIndex:dt})})),Ft.sort(((xt,dt)=>xt.index===dt.index?xt.type!==dt.type?xt.type==="image"?-1:dt.type==="image"?1:xt.type<dt.type?-1:1:xt.type==="image"&&dt.type==="image"?dt.arrayIndex-xt.arrayIndex:xt.type==="rangeStart"&&dt.type==="rangeStart"?xt.range.end-dt.range.end:xt.type==="rangeStart"?1:dt.type==="rangeStart"?-1:xt.type!=="image"&&dt.type!=="image"?xt.range.start-dt.range.start:0:xt.index-dt.index)),Ft.forEach((xt=>{var bi;let dt=xt.type==="image"?null:xt.range,Ye=xt.index;if(Ye>nn){const hi=Object.assign({...it},...ei);ht.push({index:xt.elementIndex,text:qt.substring(nn,Ye),textStyles:hi,actions:xt.type==="rangeEnd"&&((bi=xt.range)==null?void 0:bi.actions)||void 0})}if(xt.type==="rangeStart"&&dt)ei.push(dt);else if(xt.type==="rangeEnd")ei=ei.filter((hi=>hi!==xt.range));else if(xt.type==="image"){let hi=Object.assign({...it},...ei),Bn=ol((xt.image.width&&xt.image.width.value||20)*10/(hi.font_size||12)),eo=ol((xt.image.height&&xt.image.height.value||20)*10/(hi.font_size||12));const Tt={"font-size":ol((Number(hi.font_size)||12)*10/ye)};ht.push({index:xt.elementIndex,image:{url:xt.image.url,width:Bn,height:eo,wrapperStyle:Tt}})}nn=Ye})),nn<qt.length&&ht.push({text:qt.substring(nn),textStyles:it}),n(39,vt=ht)}function fe(Ke){const bt=et===y.activeElement;let ct,ht;if(bt){const St=b();ct=Dr(St,et,"start",!0),ht=Dr(St,et,"end",!0)}n(2,et.innerHTML=Ke.reduce(((St,Ot)=>{var ei;let nn="";return"text"in Ot?Ot.text&&(nn=`<span ${(ei=Ot.actions)!=null&&ei.length?`class="inplace-editor__link" data-actions="${Pr(JSON.stringify(Ot.actions))}"`:""} data-range-index="${Pr(String(Ot.index))}" data-range="${Pr(JSON.stringify(Ot.textStyles))}" style="${Pr(J(Ot.textStyles)||"")}">${Pr(Ot.text)}</span>`):nn=`<span data-image="${Pr(JSON.stringify(q[Ot.index]))}" data-image-index="${Pr(String(Ot.index))}" class="inplace-editor__image-wrapper" style="${Pr(xl(Ot.image.wrapperStyle)||"")}"><img class="inplace-editor__image" src=${Pr(Ot.image.url)} loading="lazy" decoding="async" aria-hidden="true" alt="" style=${Pr(xl({width:Ot.image.width,height:Ot.image.height,"margin-top":de?`-${Ot.image.height}`:void 0,"margin-bottom":de?`-${Ot.image.height}`:void 0,filter:Ot.image.svgFilterId?`url(#${Ot.image.svgFilterId})`:void 0})||"")}></span>`,St+nn}),""),et),Array.from(et.querySelectorAll(".inplace-editor__link")).forEach((St=>{St instanceof HTMLElement&&St.addEventListener("click",me)})),Array.from(et.querySelectorAll("img")).forEach((St=>{var Ot;St.addEventListener("error",Tce),(Ot=St.parentElement)==null||Ot.addEventListener("click",ve)}));const qt=b();if(qt&&bt&&ct!==void 0&&ht!==void 0){qt.removeAllRanges();const St=document.createRange();ts(qt,et,St,"start",ct,!0),ts(qt,et,St,"end",ht,!0),qt.addRange(St)}n(8,Oe=et.getBoundingClientRect().height-et.offsetHeight),ur().then((()=>{R("resize")}))}function me(Ke){const bt=Ke.target;if(!(bt instanceof HTMLElement))return;const ct=Number(bt.dataset.rangeIndex);let ht=z[ct];const qt=ht==null?void 0:ht.actions;!ht||!qt||!qt[0]||(ht=Ls(ht),j().show({target:Xe,value:qt[0].url||"",disabled:p||_,callback(St){z=[...z],St?(qt[0].url=St,z[ct]=ht):z.length=ct,Je({text:c,ranges:z,images:q}),Qe(c,z,q)}}))}function ve(Ke){var St,Ot;const bt=Ke.target;if(!(bt instanceof HTMLElement))return;const ct=bt.closest(".inplace-editor__image-wrapper");if(!ct||!(ct instanceof HTMLElement))return;const ht=Number(ct.dataset.imageIndex),qt=q[ht];qt&&A().show({target:we,title:o("file.insert_image"),direction:"right",subtype:"image",hasSize:!0,hasDelete:!0,disabled:p||_,value:{url:qt.url,width:(St=qt.width)==null?void 0:St.value,height:(Ot=qt.height)==null?void 0:Ot.value},callback(nn){if(q=[...q],nn.url){const ei={start:qt.start,url:nn.url,width:{type:"fixed",value:nn.width||24},height:{type:"fixed",value:nn.height||24}};q[ht]=ei}else q.length=ht;Je({text:c,ranges:z,images:q}),Qe(c,z,q)},onHide(){q[ht]?ee(qt.start+1,qt.start+1,!1):(q=[...q],q.length=ht,Je({text:c,ranges:z,images:q}),Qe(c,z,q),ee(qt.start,qt.start,!1))}})}function Ge(Ke,bt){const ct=[],ht=[];for(let Ot=0;Ot<Ke.length;++Ot)ht[Ot]=it;bt.forEach((Ot=>{for(let nn=Ot.start;nn<Ot.end;++nn){const ei=bu(Ot);ht[nn]={...ht[nn],...ei}}}));const qt=(Ot,nn,ei)=>{Object.keys(ei).length>0&&ct.push({start:Ot,end:nn,...ei})};let St=0;for(let Ot=1;Ot<Ke.length;++Ot)ca(ht[St],ht[Ot])||(qt(St,Ot,ht[St]),St=Ot);return qt(St,Ke.length,ht[St]),ct}function gt(Ke,bt,ct,ht){const qt=b();ct||(ct=Dr(qt,et,"start",!1)),ht||(ht=Dr(qt,et,"end",!1)),(ct===ht||_)&&(ct=0,ht=c.length);let St=[...z,{start:ct,end:ht,[Ke]:bt}];St=Ge(c,St),z=St,Je({text:c,ranges:z,images:q}),Qe(c,z,q),It()}function ee(Ke=N,bt=Y,ct=!1){const ht=b();if(ht){ht.removeAllRanges();const qt=document.createRange();ts(ht,et,qt,"start",Ke,ct),ts(ht,et,qt,"end",bt,ct),ht.addRange(qt)}}function Je(Ke){_e=_e.slice(0,se+1),_e.push(Ke),se=_e.length-1}function We(){if(se===0)return;--se;const Ke=_e[se];n(34,c=Ke.text),z=Ke.ranges,q=Ke.images,Qe(c,z,q)}function jt(){if(se===_e.length-1)return;++se;const Ke=_e[se];n(34,c=Ke.text),z=Ke.ranges,q=Ke.images,Qe(c,z,q)}function zt(Ke){T1.isPressed(Ke)?We():C1.isPressed(Ke)?jt():EL.isPressed(Ke)&&R("close")}function an(){const Ke=B(et);n(34,c=Ke.text),z=Ke.ranges,q=Ke.images,Je({text:c,ranges:z,images:q}),R("resize")}function sn(){if(y.activeElement===et){const Ke=b();N=Dr(Ke,et,"start",!1),Y=Dr(Ke,et,"end",!1),It()}}function It(){let Ke=N,bt=Y;Ke===bt&&(Ke=0,bt=c.length);const ct=(ht,qt)=>{var St,Ot;return N!==Y?(St=z.map((nn=>({range:nn,len:Math.min(nn.end,bt)-Math.max(nn.start,Ke),val:nn[ht]}))).filter((nn=>nn.len>0&&nn.val&&(!qt||qt===nn.val))).sort(((nn,ei)=>ei.len-nn.len))[0])==null?void 0:St.val:(Ot=z.find((nn=>nn[ht]&&(!qt||qt===nn[ht])&&nn.start<=N&&N<=nn.end)))==null?void 0:Ot[ht]};n(3,x=ct("font_size")||it.font_size||12),n(4,ce=ct("text_color")||it.text_color||"#000"),n(5,ue=""),n(6,Z=!!(ct("underline","single")||it.underline==="single")),n(7,Q=!!(ct("strike","single")||it.strike==="single"))}function cn(){if(p||_)return;const Ke=N,bt=q.length;A().show({target:we,title:o("file.insert_image"),direction:"right",subtype:"image",hasSize:!0,hasDelete:!0,value:{url:"",width:24,height:24},callback(ct){if(q=[...q],ct.url){const ht={start:Ke,url:ct.url,width:{type:"fixed",value:ct.width||24},height:{type:"fixed",value:ct.height||24}};q[bt]=ht}else q.length=bt;Je({text:c,ranges:z,images:q}),Qe(c,z,q)},onHide(){q[bt]?ee(Ke+1,Ke+1,!1):(q=[...q],q.length=bt,Je({text:c,ranges:z,images:q}),Qe(c,z,q),ee(Ke,Ke,!1))}})}function pn(){gt("font_weight",ue)}function Sn(Ke){const bt=Ke.target.textContent,ct=Number(bt);Number.isNaN(ct)||gt("font_size",ct,N,Y)}function Fn(){const Ke=N,bt=Y;let ct,ht;or(ce)?(ct="",ht=yr(ce)):(ct=ce,ht=""),k().show({target:we,value:ct,paletteId:ht,disabled:p,showPalette:!0,callback(qt,St){let Ot;St?Ot=pa(St):Ot=qt,gt("text_color",Ot,Ke,bt)}})}function Re(){T().show({target:Ie,value:W,disabled:p,callback(Ke){n(9,W=Ke)}})}function lt(){p||(gt("underline",Z?void 0:"single",N,Y),ee())}function li(){p||(gt("strike",Q?void 0:"single",N,Y),ee())}function wt(){if(p)return;let Ke=N,bt=Y;Ke===bt&&(Ke=0,bt=c.length);const ct=z.length;j().show({target:Xe,value:"",callback(ht){if(z=[...z],ht){const qt={start:Ke,end:bt,underline:"single",actions:[{log_id:"text_link",log_url:v?`@{${v}}`:void 0,url:ht}]};z[ct]=qt}else z.length=ct;Je({text:c,ranges:z,images:q}),Qe(c,z,q)}})}Uc((()=>{setTimeout((()=>{et.focus()})),It()}));function zn(Ke){mn.call(this,t,Ke)}function Jt(Ke){mn.call(this,t,Ke)}function gn(Ke){mn.call(this,t,Ke)}function Lt(Ke){pt[Ke?"unshift":"push"]((()=>{Ie=Ke,n(13,Ie)}))}function $n(){ue=m1(this),n(5,ue)}function hn(Ke){pt[Ke?"unshift":"push"]((()=>{Xe=Ke,n(14,Xe)}))}function Ut(Ke){pt[Ke?"unshift":"push"]((()=>{we=Ke,n(12,we)}))}function Kt(Ke){pt[Ke?"unshift":"push"]((()=>{et=Ke,n(2,et)}))}const Jn=()=>n(10,ge=!1);function Kn(Ke){pt[Ke?"unshift":"push"]((()=>{pe=Ke,n(11,pe)}))}return t.$$set=Ke=>{"text"in Ke&&n(34,c=Ke.text),"json"in Ke&&n(35,d=Ke.json),"leaf"in Ke&&n(36,u=Ke.leaf),"disabled"in Ke&&n(0,p=Ke.disabled),"textDisabled"in Ke&&n(1,_=Ke.textDisabled),"rotation"in Ke&&n(37,f=Ke.rotation)},t.$$.update=()=>{t.$$.dirty[0]&4|t.$$.dirty[1]&256&&vt.length&&et&&fe(vt),t.$$.dirty[1]&64&&n(15,i={"font-size":ol(ye),"line-height":rt,color:U,transform:`rotate(${f}deg)`}),t.$$.dirty[1]&544&&r!==u&&R("close")},[p,_,et,x,ce,ue,Z,Q,Oe,W,ge,pe,we,Ie,Xe,i,o,a,g,E,O,M,D,zt,an,sn,cn,pn,Sn,Fn,Re,lt,li,wt,c,d,u,f,m,vt,r,zn,Jt,gn,Lt,$n,hn,Ut,Kt,Jn,Kn]}class Ece extends Gt{constructor(e){super(),Yt(this,e,zce,jce,Rt,{text:34,json:35,leaf:36,disabled:0,textDisabled:1,rotation:37,getValue:38},null,[-1,-1,-1])}get getValue(){return this.$$.ctx[38]}}function Hv(t){let e,n,i,o,r,s={text:t[0].text,json:t[0].json,leaf:t[0].leaf,disabled:t[0].disabled,textDisabled:t[0].textDisabled,rotation:t[0].rotation};return n=new Ece({props:s}),t[12](n),n.$on("close",t[5]),n.$on("resize",t[6]),{c(){e=S("dialog"),Pe(n.$$.fragment),h(e,"class","inplace-editor-dialog svelte-klbk0c"),ke(e,"left",t[0].style.left),ke(e,"top",t[0].style.top),ke(e,"width",t[0].style.width),ke(e,"max-width",t[0].style.maxWidth),ke(e,"font-size",t[0].style.fontSize)},m(l,a){F(l,e,a),Ee(n,e,null),t[13](e),i=!0,o||(r=[te(e,"close",t[4]),te(e,"click",t[7]),te(e,"keydown",Eo(t[11]))],o=!0)},p(l,a){const c={};a&1&&(c.text=l[0].text),a&1&&(c.json=l[0].json),a&1&&(c.leaf=l[0].leaf),a&1&&(c.disabled=l[0].disabled),a&1&&(c.textDisabled=l[0].textDisabled),a&1&&(c.rotation=l[0].rotation),n.$set(c),a&1&&ke(e,"left",l[0].style.left),a&1&&ke(e,"top",l[0].style.top),a&1&&ke(e,"width",l[0].style.width),a&1&&ke(e,"max-width",l[0].style.maxWidth),a&1&&ke(e,"font-size",l[0].style.fontSize)},i(l){i||(I(n.$$.fragment,l),i=!0)},o(l){H(n.$$.fragment,l),i=!1},d(l){l&&V(e),t[12](null),Ae(n),t[13](null),o=!1,Rn(r)}}}function Ace(t){let e,n,i=t[1]&&Hv(t);return{c(){i&&i.c(),e=Vn()},m(o,r){i&&i.m(o,r),F(o,e,r),n=!0},p(o,[r]){o[1]?i?(i.p(o,r),r&2&&I(i,1)):(i=Hv(o),i.c(),I(i,1),i.m(e.parentNode,e)):i&&(Dt(),H(i,1,1,(()=>{i=null})),Vt())},i(o){n||(I(i),n=!0)},o(o){H(i),n=!1},d(o){o&&V(e),i&&i.d(o)}}}function Oce(t,e,n){function i(){!a||!d||(n(1,a=!1),l.callback(d.getValue()))}function o(v){n(0,l=v),n(1,a=!0)}function r(){n(1,a=!1)}function s(v,y){n(0,l.style.left=v,l),n(0,l.style.top=y,l),n(0,l)}let l,a=!1,c,d;gs((()=>{c&&a&&!c.open&&c.showModal()}));function u(){i()}function p(){l.onResoze({width:c.offsetWidth,height:c.offsetHeight})}function _(v){v.target===c&&i()}function f(v){mn.call(this,t,v)}function m(v){pt[v?"unshift":"push"]((()=>{d=v,n(3,d)}))}function g(v){pt[v?"unshift":"push"]((()=>{c=v,n(2,c)}))}return[l,a,c,d,i,u,p,_,o,r,s,f,m,g]}class Mce extends Gt{constructor(e){super(),Yt(this,e,Oce,Ace,Rt,{show:8,hide:9,setPosition:10})}get show(){return this.$$.ctx[8]}get hide(){return this.$$.ctx[9]}get setPosition(){return this.$$.ctx[10]}}function Pce(t,e={},{local:n}={}){const i=t.getBoundingClientRect();if(n){let o=null,r=t.parentElement;for(;r;){if(getComputedStyle(r).overflow!=="visible"){o=r;break}r=r.parentElement}if(o){const s=o.getBoundingClientRect(),l=o.scrollTop,a=e.top||0,c=e.bottom||0;i.bottom>s.bottom-c?o.scrollTo(o.scrollLeft,l+(i.bottom-(s.bottom-c))):i.top<s.top+a&&o.scrollTo(o.scrollLeft,l-(s.top+a-i.top))}}else{const o=window.pageYOffset,r=window.innerHeight,s=e.top||0,l=e.bottom||0;i.bottom>r-l?window.scrollTo(pageXOffset,o+(i.bottom-(r-l))):i.top<s&&window.scrollTo(pageXOffset,o-(s-i.top))}}function Jv(t,e,n){const i=t.slice();return i[37]=e[n],i[39]=n,i}function Uv(t){let e,n,i={direction:"down",overflow:"visible",offsetY:-50,target:t[0],$$slots:{default:[Ice]},$$scope:{ctx:t}};return e=new Cr({props:i}),t[32](e),e.$on("close",t[18]),{c(){Pe(e.$$.fragment)},m(o,r){Ee(e,o,r),n=!0},p(o,r){const s={};r[0]&1&&(s.target=o[0]),r[0]&65528|r[1]&512&&(s.$$scope={dirty:r,ctx:o}),e.$set(s)},i(o){n||(I(e.$$.fragment,o),n=!0)},o(o){H(e.$$.fragment,o),n=!1},d(o){t[32](null),Ae(e,o)}}}function Wv(t){let e,n=t[15]("tankerMissing")+"",i;return{c(){e=S("div"),i=xe(n),h(e,"class","tanker2-dialog__missing svelte-18hktga")},m(o,r){F(o,e,r),$(e,i)},p(o,r){r[0]&32768&&n!==(n=o[15]("tankerMissing")+"")&&at(i,n)},d(o){o&&V(e)}}}function Kv(t){let e,n,i=`${t[14]}px`,o,r=ln(t[10]),s=[];for(let l=0;l<r.length;l+=1)s[l]=Xv(Jv(t,r,l));return{c(){e=S("dialog");for(let l=0;l<s.length;l+=1)s[l].c();h(e,"class","tanker2-dialog__suggest svelte-18hktga"),ne(e,"tanker2-dialog__suggest_up",t[13]),ke(e,"max-height",i)},m(l,a){F(l,e,a);for(let c=0;c<s.length;c+=1)s[c]&&s[c].m(e,null);t[31](e),o=!0},p(l,a){if(a[0]&8391680){r=ln(l[10]);let c;for(c=0;c<r.length;c+=1){const d=Jv(l,r,c);s[c]?s[c].p(d,a):(s[c]=Xv(d),s[c].c(),s[c].m(e,null))}for(;c<s.length;c+=1)s[c].d(1);s.length=r.length}(!o||a[0]&8192)&&ne(e,"tanker2-dialog__suggest_up",l[13]),a[0]&16384&&i!==(i=`${l[14]}px`)&&ke(e,"max-height",i)},i(l){o||(l&&_o((()=>{o&&(n||(n=Zi(e,fr,{y:10,duration:150},!0)),n.run(1))})),o=!0)},o(l){l&&(n||(n=Zi(e,fr,{y:10,duration:150},!1)),n.run(0)),o=!1},d(l){l&&V(e),Bi(s,l),t[31](null),l&&n&&n.end()}}}function Yv(t){let e;return{c(){e=S("div"),h(e,"class","tanker2-dialog__folder svelte-18hktga")},m(n,i){F(n,e,i)},d(n){n&&V(e)}}}function Gv(t){let e,n=t[37].text+"",i;return{c(){e=S("div"),i=xe(n),h(e,"class","tanker2-dialog__text svelte-18hktga")},m(o,r){F(o,e,r),$(e,i)},p(o,r){r[0]&1024&&n!==(n=o[37].text+"")&&at(i,n)},d(o){o&&V(e)}}}function Xv(t){let e,n,i=t[37].key.endsWith("."),o,r=t[37].key+"",s,l,a,c,d,u=i&&Yv(),p=t[37].text&&Gv(t);function _(){return t[30](t[37])}return{c(){e=S("div"),n=S("div"),u&&u.c(),o=G(),s=xe(r),l=G(),p&&p.c(),a=G(),h(n,"class","tanker2-dialog__key svelte-18hktga"),h(e,"class","tanker2-dialog__item svelte-18hktga"),ne(e,"tanker2-dialog__item_active",t[39]===t[11])},m(f,m){F(f,e,m),$(e,n),u&&u.m(n,null),$(n,o),$(n,s),$(e,l),p&&p.m(e,null),$(e,a),c||(d=[te(e,"click",_),te(e,"mousedown",zi(t[26]))],c=!0)},p(f,m){t=f,m[0]&1024&&(i=t[37].key.endsWith(".")),i?u||(u=Yv(),u.c(),u.m(n,o)):u&&(u.d(1),u=null),m[0]&1024&&r!==(r=t[37].key+"")&&at(s,r),t[37].text?p?p.p(t,m):(p=Gv(t),p.c(),p.m(e,a)):p&&(p.d(1),p=null),m[0]&2048&&ne(e,"tanker2-dialog__item_active",t[39]===t[11])},d(f){f&&V(e),u&&u.d(),p&&p.d(),c=!1,Rn(d)}}}function Ice(t){let e,n,i=t[15]("tankerDialogTitle")+"",o,r,s,l,a,c,d,u,p,_,f,m,g=t[7]&&t[12]&&!t[10].length&&Wv(t),v=t[8]&&t[10].length&&Kv(t);return{c(){e=S("div"),n=S("div"),o=xe(i),r=G(),s=S("div"),l=S("input"),c=G(),d=S("div"),u=G(),g&&g.c(),p=G(),v&&v.c(),_=Vn(),h(n,"class","tanker2-dialog__title svelte-18hktga"),h(l,"class","tanker2-dialog__input svelte-18hktga"),h(l,"autocomplete","off"),h(l,"autocorrect","off"),h(l,"autocapitalize","off"),h(l,"spellcheck","false"),h(l,"placeholder",a=t[15]("tankerPlaceholder")),l.disabled=t[4],ne(l,"tanker2-dialog__input_error",t[7]&&t[12]&&!t[10].length),h(d,"class","tanker2-dialog__loader svelte-18hktga"),ne(d,"tanker2-dialog__loader_shown",!t[12]),h(s,"class","tanker2-dialog__input-box svelte-18hktga"),h(e,"class","tanker2-dialog__content svelte-18hktga")},m(y,b){F(y,e,b),$(e,n),$(n,o),$(e,r),$(e,s),$(s,l),t[27](l),Hn(l,t[3]),$(s,c),$(s,d),$(e,u),g&&g.m(e,null),t[29](e),F(y,p,b),v&&v.m(y,b),F(y,_,b),f||(m=[te(l,"input",t[28]),te(l,"keydown",t[19]),te(l,"input",t[20]),te(l,"focus",t[21]),te(l,"blur",t[22])],f=!0)},p(y,b){b[0]&32768&&i!==(i=y[15]("tankerDialogTitle")+"")&&at(o,i),b[0]&32768&&a!==(a=y[15]("tankerPlaceholder"))&&h(l,"placeholder",a),b[0]&16&&(l.disabled=y[4]),b[0]&8&&l.value!==y[3]&&Hn(l,y[3]),b[0]&5248&&ne(l,"tanker2-dialog__input_error",y[7]&&y[12]&&!y[10].length),b[0]&4096&&ne(d,"tanker2-dialog__loader_shown",!y[12]),y[7]&&y[12]&&!y[10].length?g?g.p(y,b):(g=Wv(y),g.c(),g.m(e,null)):g&&(g.d(1),g=null),y[8]&&y[10].length?v?(v.p(y,b),b[0]&1280&&I(v,1)):(v=Kv(y),v.c(),I(v,1),v.m(_.parentNode,_)):v&&(Dt(),H(v,1,1,(()=>{v=null})),Vt())},d(y){y&&(V(e),V(p),V(_)),t[27](null),g&&g.d(),t[29](null),v&&v.d(y),f=!1,Rn(m)}}}function Dce(t){let e,n,i=t[2]&&t[0]&&Uv(t);return{c(){i&&i.c(),e=Vn()},m(o,r){i&&i.m(o,r),F(o,e,r),n=!0},p(o,r){o[2]&&o[0]?i?(i.p(o,r),r[0]&5&&I(i,1)):(i=Uv(o),i.c(),I(i,1),i.m(e.parentNode,e)):i&&(Dt(),H(i,1,1,(()=>{i=null})),Vt())},i(o){n||(I(i),n=!0)},o(o){H(i),n=!1},d(o){o&&V(e),i&&i.d(o)}}}const Hd=384;function Vce(t,e,n){let i,o;const{l10nString:r}=yt(oi);De(t,r,(Q=>n(15,o=Q)));const{getTranslationSuggest:s,state:l}=yt(Cn),{locale:a}=l;De(t,a,(Q=>n(34,i=Q)));function c(Q){m=Q.callback,n(0,u=Q.target),n(3,f=Q.value),n(4,g=Q.disabled),n(10,A=[]),n(11,j=-1),n(12,T=!0),n(7,b=!1),n(2,_=!0),ur().then((()=>{v&&(v.focus(),f&&R())}))}function d(){n(2,_=!1)}let u,p,_=!1,f,m,g,v,y,b=!1,w=!1,k,A=[],j=-1,T=!1,E=!1,O=Hd;function M(){n(2,_=!1)}function D(Q){if(Eu.isPressed(Q)&&w&&A.length)n(8,w=!1);else if(Wc.isPressed(Q)&&!g)j>-1&&z(A[j].key);else if(A1.isPressed(Q))j===-1||j===0?n(11,j=A.length-1):n(11,--j);else if(O1.isPressed(Q))j===-1||j===A.length-1?n(11,j=0):n(11,++j);else return;Q.preventDefault(),Q.stopPropagation()}function R(){if(g||!s)return;const Q=f;n(12,T=!1),s(Q,i).then((se=>{f===Q&&(n(7,b=!0),n(12,T=!0),n(10,A=se),j>=se.length&&n(11,j=0))})).catch((se=>{n(7,b=!0),n(12,T=!0)}))}function J(){n(8,w=!0)}function B(){n(8,w=!1)}function z(Q){n(3,f=Q),Q.endsWith(".")?R():(p==null||p.hide(),m(f))}gs((()=>{if(k&&!k.open){const Q=y.getBoundingClientRect(),_e=window.innerHeight-Q.bottom;n(13,E=_e<Hd&&_e<Q.top),n(14,O=Math.min(Hd,E?Q.top:_e)),k.show(),v.focus()}else if(k&&j!==-1){const Q=k.querySelector(".tanker2-dialog__item_active");Q&&Pce(Q,{top:12,bottom:12},{local:!0})}}));function q(Q){mn.call(this,t,Q)}function N(Q){pt[Q?"unshift":"push"]((()=>{v=Q,n(5,v)}))}function Y(){f=this.value,n(3,f)}function x(Q){pt[Q?"unshift":"push"]((()=>{y=Q,n(6,y)}))}const ce=Q=>z(Q.key);function ue(Q){pt[Q?"unshift":"push"]((()=>{k=Q,n(9,k)}))}function Z(Q){pt[Q?"unshift":"push"]((()=>{p=Q,n(1,p)}))}return[u,p,_,f,g,v,y,b,w,k,A,j,T,E,O,o,r,a,M,D,R,J,B,z,c,d,q,N,Y,x,ce,ue,Z]}class Lce extends Gt{constructor(e){super(),Yt(this,e,Vce,Dce,Rt,{show:24,hide:25},null,[-1,-1])}get show(){return this.$$.ctx[24]}get hide(){return this.$$.ctx[25]}}function Zv(t){let e,n,i={direction:"down",overflow:"visible",offsetY:-50,target:t[0].target,$$slots:{default:[qce]},$$scope:{ctx:t}};return e=new Cr({props:i}),t[13](e),e.$on("close",t[6]),{c(){Pe(e.$$.fragment)},m(o,r){Ee(e,o,r),n=!0},p(o,r){const s={};r&1&&(s.target=o[0].target),r&16409&&(s.$$scope={dirty:r,ctx:o}),e.$set(s)},i(o){n||(I(e.$$.fragment,o),n=!0)},o(o){H(e.$$.fragment,o),n=!1},d(o){t[13](null),Ae(e,o)}}}function Fce(t){let e,n,i,o,r=[{autocomplete:"off"},{class:"expression2-dialog__input"},{autocorrect:"off"},{autocapitalize:"off"},{spellcheck:"false"},{placeholder:n=t[4]("tankerPlaceholder")},{contenteditable:"true"}],s={};for(let l=0;l<r.length;l+=1)s=_s(s,r[l]);return{c(){e=S("div"),fs(e,s),t[0].value===void 0&&_o((()=>t[12].call(e))),ne(e,"svelte-f0ngh",!0)},m(l,a){F(l,e,a),t[11](e),t[0].value!==void 0&&(e.innerText=t[0].value),i||(o=[te(e,"paste",Bce),te(e,"keydown",t[7]),te(e,"input",t[12])],i=!0)},p(l,a){fs(e,s=yl(r,[{autocomplete:"off"},{class:"expression2-dialog__input"},{autocorrect:"off"},{autocapitalize:"off"},{spellcheck:"false"},a&16&&n!==(n=l[4]("tankerPlaceholder"))&&{placeholder:n},{contenteditable:"true"}])),a&1&&l[0].value!==e.innerText&&(e.innerText=l[0].value),ne(e,"svelte-f0ngh",!0)},d(l){l&&V(e),t[11](null),i=!1,Rn(o)}}}function Nce(t){let e,n=t[0].value+"",i;return{c(){e=S("div"),i=xe(n),h(e,"class","expression2-dialog__input expression2-dialog__input_disabled svelte-f0ngh")},m(o,r){F(o,e,r),$(e,i),t[10](e)},p(o,r){r&1&&n!==(n=o[0].value+"")&&at(i,n)},d(o){o&&V(e),t[10](null)}}}function qce(t){let e,n,i=t[4]("expressionTitle")+"",o,r,s;function l(d,u){return d[0].disabled?Nce:Fce}let a=l(t),c=a(t);return{c(){e=S("div"),n=S("div"),o=xe(i),r=G(),s=S("div"),c.c(),h(n,"class","expression2-dialog__title svelte-f0ngh"),h(s,"class","expression2-dialog__input-box svelte-f0ngh"),h(e,"class","expression2-dialog__content svelte-f0ngh")},m(d,u){F(d,e,u),$(e,n),$(n,o),$(e,r),$(e,s),c.m(s,null)},p(d,u){u&16&&i!==(i=d[4]("expressionTitle")+"")&&at(o,i),a===(a=l(d))&&c?c.p(d,u):(c.d(1),c=a(d),c&&(c.c(),c.m(s,null)))},d(d){d&&V(e),c.d()}}}function Rce(t){let e,n,i=t[1]&&t[0]&&Zv(t);return{c(){i&&i.c(),e=Vn()},m(o,r){i&&i.m(o,r),F(o,e,r),n=!0},p(o,[r]){o[1]&&o[0]?i?(i.p(o,r),r&3&&I(i,1)):(i=Zv(o),i.c(),I(i,1),i.m(e.parentNode,e)):i&&(Dt(),H(i,1,1,(()=>{i=null})),Vt())},i(o){n||(I(i),n=!0)},o(o){H(i),n=!1},d(o){o&&V(e),i&&i.d(o)}}}function Bce(t){if(t.preventDefault(),t.clipboardData){let e=t.clipboardData.getData("text/plain");e=e.trim(),document.execCommand("inserttext",!1,e)}}function Hce(t,e,n){let i;const{l10nString:o}=yt(oi);De(t,o,(v=>n(4,i=v)));function r(v){n(0,l=v),n(1,c=!0),ur().then((()=>{d&&d.focus()}))}function s(){n(1,c=!1),n(0,l=null)}let l,a,c=!1,d;function u(){n(1,c=!1)}function p(v){Wc.isPressed(v)&&(v.preventDefault(),a==null||a.hide())}function _(v){pt[v?"unshift":"push"]((()=>{d=v,n(3,d)}))}function f(v){pt[v?"unshift":"push"]((()=>{d=v,n(3,d)}))}function m(){l.value=this.innerText,n(0,l)}function g(v){pt[v?"unshift":"push"]((()=>{a=v,n(2,a)}))}return t.$$.update=()=>{t.$$.dirty&3&&c&&l&&!l.disabled&&l.callback&&l.callback(l.value)},[l,c,a,d,i,o,u,p,r,s,_,f,m,g]}class Jce extends Gt{constructor(e){super(),Yt(this,e,Hce,Rce,Rt,{show:8,hide:9})}get show(){return this.$$.ctx[8]}get hide(){return this.$$.ctx[9]}}function xv(t){let e,n;return e=new Cr({props:{target:t[3],canMove:!0,$$slots:{default:[Uce]},$$scope:{ctx:t}}}),e.$on("close",t[7]),{c(){Pe(e.$$.fragment)},m(i,o){Ee(e,i,o),n=!0},p(i,o){const r={};o&8&&(r.target=i[3]),o&16438&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Ae(e,i)}}}function Uce(t){let e,n,i,o,r,s,l,a=t[5]("video-mime-type")+"",c,d,u,p,_;i=new sp({props:{item:{type:"file",subtype:"video",enablePerTheme:!0,name:"video-url"},value:t[1].url,evalValue:t[4]}}),i.$on("change",t[8]);function f(g){t[12](g)}let m={disabled:t[2]};return t[1].mime_type!==void 0&&(m.value=t[1].mime_type),u=new ho({props:m}),pt.push((()=>Gn(u,"value",f))),{c(){e=S("div"),n=S("div"),Pe(i.$$.fragment),o=G(),r=S("div"),s=S("label"),l=S("div"),c=xe(a),d=G(),Pe(u.$$.fragment),h(l,"class","video-sources-dialog__label svelte-16f87x4"),h(e,"class","video-sources-dialog__content svelte-16f87x4")},m(g,v){F(g,e,v),$(e,n),Ee(i,n,null),$(e,o),$(e,r),$(r,s),$(s,l),$(l,c),$(s,d),Ee(u,s,null),_=!0},p(g,v){const y={};v&2&&(y.value=g[1].url),v&16&&(y.evalValue=g[4]),i.$set(y),(!_||v&32)&&a!==(a=g[5]("video-mime-type")+"")&&at(c,a);const b={};v&4&&(b.disabled=g[2]),!p&&v&2&&(p=!0,b.value=g[1].mime_type,Xn((()=>p=!1))),u.$set(b)},i(g){_||(I(i.$$.fragment,g),I(u.$$.fragment,g),_=!0)},o(g){H(i.$$.fragment,g),H(u.$$.fragment,g),_=!1},d(g){g&&V(e),Ae(i),Ae(u)}}}function Wce(t){let e,n,i=t[0]&&t[3]&&xv(t);return{c(){i&&i.c(),e=Vn()},m(o,r){i&&i.m(o,r),F(o,e,r),n=!0},p(o,[r]){o[0]&&o[3]?i?(i.p(o,r),r&9&&I(i,1)):(i=xv(o),i.c(),I(i,1),i.m(e.parentNode,e)):i&&(Dt(),H(i,1,1,(()=>{i=null})),Vt())},i(o){n||(I(i),n=!0)},o(o){H(i),n=!1},d(o){o&&V(e),i&&i.d(o)}}}function Kce(t,e,n){let i,o;const{l10n:r}=yt(oi);De(t,r,(v=>n(5,o=v)));const{rendererApi:s}=yt(Cn);function l(v){n(11,p=v.callback),n(3,c=v.target),n(1,u=v.value),n(2,_=v.readOnly),n(0,d=!0)}function a(){n(0,d=!1)}let c,d=!1,u,p,_;function f(){n(0,d=!1)}function m(v){"value"in v.detail&&n(1,u.url=String(v.detail.value),u)}function g(v){t.$$.not_equal(u.mime_type,v)&&(u.mime_type=v,n(1,u))}return t.$$.update=()=>{t.$$.dirty&2055&&d&&!_&&p&&p(u),t.$$.dirty&2&&n(4,i=u?s().evalJson({url:u.url}).url:void 0)},[d,u,_,c,i,o,r,f,m,l,a,p,g]}class Yce extends Gt{constructor(e){super(),Yt(this,e,Kce,Wce,Rt,{show:9,hide:10})}get show(){return this.$$.ctx[9]}get hide(){return this.$$.ctx[10]}}function Qv(t){let e,n;return e=new Cr({props:{target:t[3],canMove:!0,$$slots:{default:[Gce]},$$scope:{ctx:t}}}),e.$on("close",t[6]),{c(){Pe(e.$$.fragment)},m(i,o){Ee(e,i,o),n=!0},p(i,o){const r={};o&8&&(r.target=i[3]),o&4118&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Ae(e,i)}}}function Gce(t){let e,n,i,o,r=t[4]("select.text")+"",s,l,a,c,d,u,p,_,f=t[4]("select.value")+"",m,g,v,y,b;function w(T){t[10](T)}let k={disabled:t[2]};t[1].text!==void 0&&(k.value=t[1].text),a=new ho({props:k}),pt.push((()=>Gn(a,"value",w)));function A(T){t[11](T)}let j={disabled:t[2],required:!0};return t[1].value!==void 0&&(j.value=t[1].value),v=new ho({props:j}),pt.push((()=>Gn(v,"value",A))),{c(){e=S("div"),n=S("div"),i=S("label"),o=S("div"),s=xe(r),l=G(),Pe(a.$$.fragment),d=G(),u=S("div"),p=S("label"),_=S("div"),m=xe(f),g=G(),Pe(v.$$.fragment),h(o,"class","select-options-dialog__label svelte-ke7kow"),h(_,"class","select-options-dialog__label svelte-ke7kow"),h(e,"class","select-options-dialog__content svelte-ke7kow")},m(T,E){F(T,e,E),$(e,n),$(n,i),$(i,o),$(o,s),$(i,l),Ee(a,i,null),$(e,d),$(e,u),$(u,p),$(p,_),$(_,m),$(p,g),Ee(v,p,null),b=!0},p(T,E){(!b||E&16)&&r!==(r=T[4]("select.text")+"")&&at(s,r);const O={};E&4&&(O.disabled=T[2]),!c&&E&2&&(c=!0,O.value=T[1].text,Xn((()=>c=!1))),a.$set(O),(!b||E&16)&&f!==(f=T[4]("select.value")+"")&&at(m,f);const M={};E&4&&(M.disabled=T[2]),!y&&E&2&&(y=!0,M.value=T[1].value,Xn((()=>y=!1))),v.$set(M)},i(T){b||(I(a.$$.fragment,T),I(v.$$.fragment,T),b=!0)},o(T){H(a.$$.fragment,T),H(v.$$.fragment,T),b=!1},d(T){T&&V(e),Ae(a),Ae(v)}}}function Xce(t){let e,n,i=t[0]&&t[3]&&Qv(t);return{c(){i&&i.c(),e=Vn()},m(o,r){i&&i.m(o,r),F(o,e,r),n=!0},p(o,[r]){o[0]&&o[3]?i?(i.p(o,r),r&9&&I(i,1)):(i=Qv(o),i.c(),I(i,1),i.m(e.parentNode,e)):i&&(Dt(),H(i,1,1,(()=>{i=null})),Vt())},i(o){n||(I(i),n=!0)},o(o){H(i),n=!1},d(o){o&&V(e),i&&i.d(o)}}}function Zce(t,e,n){let i;const{l10n:o}=yt(oi);De(t,o,(m=>n(4,i=m)));function r(m){n(9,d=m.callback),n(3,l=m.target),n(1,c=m.value),n(2,u=m.readOnly),n(0,a=!0)}function s(){n(0,a=!1)}let l,a=!1,c,d,u;function p(){n(0,a=!1)}function _(m){t.$$.not_equal(c.text,m)&&(c.text=m,n(1,c))}function f(m){t.$$.not_equal(c.value,m)&&(c.value=m,n(1,c))}return t.$$.update=()=>{t.$$.dirty&519&&a&&!u&&d&&d(c)},[a,c,u,l,i,o,p,r,s,d,_,f]}class xce extends Gt{constructor(e){super(),Yt(this,e,Zce,Xce,Rt,{show:7,hide:8})}get show(){return this.$$.ctx[7]}get hide(){return this.$$.ctx[8]}}function Qce(t){let e,n,i,o,r,s,l,a,c,d,u,p,_,f,m,g,v,y,b,w,k,A,j,T,E,O,M,D,R,J,B,z;i=new $1({props:{components:t[12]}}),r=new iF({});let q={};l=new Vae({props:q}),t[38](l);let N={};c=new qae({props:N}),t[39](c);let Y={};u=new ece({props:Y}),t[40](u);let x={};_=new oce({props:x}),t[41](_);let ce={};m=new vce({props:ce}),t[42](m);let ue={};v=new $ce({props:ue}),t[43](v);let Z={};b=new Lce({props:Z}),t[44](b);let Q={};k=new Jce({props:Q}),t[45](k);let se={};j=new Mce({props:se}),t[46](j);let _e={};E=new Yce({props:_e}),t[47](E);let Oe={};return M=new xce({props:Oe}),t[48](M),R=new $ae({props:{owner:t[11]}}),{c(){e=S("div"),n=S("main"),Pe(i.$$.fragment),o=G(),Pe(r.$$.fragment),s=G(),Pe(l.$$.fragment),a=G(),Pe(c.$$.fragment),d=G(),Pe(u.$$.fragment),p=G(),Pe(_.$$.fragment),f=G(),Pe(m.$$.fragment),g=G(),Pe(v.$$.fragment),y=G(),Pe(b.$$.fragment),w=G(),Pe(k.$$.fragment),A=G(),Pe(j.$$.fragment),T=G(),Pe(E.$$.fragment),O=G(),Pe(M.$$.fragment),D=G(),Pe(R.$$.fragment),h(n,"class","main svelte-1x3nbyt"),h(e,"class","app svelte-1x3nbyt"),ne(e,"app_dark",t[13]==="dark")},m(W,ge){F(W,e,ge),$(e,n),Ee(i,n,null),$(e,o),Ee(r,e,null),$(e,s),Ee(l,e,null),$(e,a),Ee(c,e,null),$(e,d),Ee(u,e,null),$(e,p),Ee(_,e,null),$(e,f),Ee(m,e,null),$(e,g),Ee(v,e,null),$(e,y),Ee(b,e,null),$(e,w),Ee(k,e,null),$(e,A),Ee(j,e,null),$(e,T),Ee(E,e,null),$(e,O),Ee(M,e,null),$(e,D),Ee(R,e,null),J=!0,B||(z=[te(e,"mouseover",t[15]),te(e,"mouseout",t[16]),te(e,"keydown",TL)],B=!0)},p(W,ge){const it={};ge[0]&4096&&(it.components=W[12]),i.$set(it);const ye={};l.$set(ye);const rt={};c.$set(rt);const U={};u.$set(U);const de={};_.$set(de);const pe={};m.$set(pe);const et={};v.$set(et);const we={};b.$set(we);const Ie={};k.$set(Ie);const Xe={};j.$set(Xe);const vt={};E.$set(vt);const Qe={};M.$set(Qe);const fe={};ge[0]&2048&&(fe.owner=W[11]),R.$set(fe),(!J||ge[0]&8192)&&ne(e,"app_dark",W[13]==="dark")},i(W){J||(I(i.$$.fragment,W),I(r.$$.fragment,W),I(l.$$.fragment,W),I(c.$$.fragment,W),I(u.$$.fragment,W),I(_.$$.fragment,W),I(m.$$.fragment,W),I(v.$$.fragment,W),I(b.$$.fragment,W),I(k.$$.fragment,W),I(j.$$.fragment,W),I(E.$$.fragment,W),I(M.$$.fragment,W),I(R.$$.fragment,W),J=!0)},o(W){H(i.$$.fragment,W),H(r.$$.fragment,W),H(l.$$.fragment,W),H(c.$$.fragment,W),H(u.$$.fragment,W),H(_.$$.fragment,W),H(m.$$.fragment,W),H(v.$$.fragment,W),H(b.$$.fragment,W),H(k.$$.fragment,W),H(j.$$.fragment,W),H(E.$$.fragment,W),H(M.$$.fragment,W),H(R.$$.fragment,W),J=!1},d(W){W&&V(e),Ae(i),Ae(r),t[38](null),Ae(l),t[39](null),Ae(c),t[40](null),Ae(u),t[41](null),Ae(_),t[42](null),Ae(m),t[43](null),Ae(v),t[44](null),Ae(b),t[45](null),Ae(k),t[46](null),Ae(j),t[47](null),Ae(E),t[48](null),Ae(M),Ae(R),B=!1,Rn(z)}}}function ede(t,e,n){let i,o,{state:r}=e,{layout:s=[{items:["new-component","component-tree"]},{items:["preview"],weight:3},{items:["component-props:code"]}]}=e,{locale:l="en"}=e,{shadowRoot:a=void 0}=e,{actionLogUrlVariable:c=""}=e,{cardLocales:d=[]}=e,{previewWarnFileLimit:u=1e4}=e,{previewErrorFileLimit:p=1/0}=e,{warnFileLimit:_=1/0}=e,{errorFileLimit:f=1/0}=e,{fileLimits:m=void 0}=e,{rootConfigurable:g=!1}=e,{customFontFaces:v=[]}=e,{directionSelector:y=!1}=e,{perThemeProps:b=wn(r.paletteEnabled)}=e,{uploadFile:w=HV}=e,{editorFabric:k=bae}=e,{getTranslationSuggest:A=void 0}=e,{getTranslationKey:j=void 0}=e;function T(me){n(17,s=me)}function E(me){D.set(me)}const{themeStore:O}=r;De(t,O,(me=>n(13,o=me)));const M=(me,ve)=>{var gt;const Ge=(gt=SL[me])==null?void 0:gt[ve];return Ge||console.error(`Missing translation for key "${ve}"`),Ge||""};let D=Si(l);const R=as(D,(me=>(ve,Ge)=>M(Ge||me,ve))),J=as(D,(me=>(ve,Ge)=>{const gt=M(Ge||me,ve);return typeof gt!="string"?(console.error(`Missing translation for key "${ve}"`),""):gt}));let B={containerProps(){return{width:0,height:0}},evalJson(me){return{}},focus(){},selectedElemProps(){return null}},z=()=>{},q={toggle(){},hide(){}},N,Y,x,ce,ue,Z,Q,se,_e,Oe,W;mc(oi,{lang:D,getLanguage(){return wn(D)},l10n:R,l10nString:J}),mc(Cn,{state:r,uploadFile:w,editorFabric:k,shadowRoot:a,ownerDocument:a||document,getSelection(){return a&&"getSelection"in a&&typeof a.getSelection=="function"?a.getSelection():window.getSelection()},actionLogUrlVariable:c,cardLocales:d,getTranslationSuggest:A,getTranslationKey:j,previewWarnFileLimit:u,previewErrorFileLimit:p,warnFileLimit:_,errorFileLimit:f,fileLimits:m,rootConfigurable:g,customFontFaces:v,directionSelector:y,perThemeProps:b,rendererApi(){return B},setRendererApi(me){B=me},showErrors:(...me)=>{z(...me)},setShowErrors(me){z=me},contextMenu(){return q},setContextMenuApi(me){q=me},inplaceEditor(){return{show(me){N.show(me)},hide(){N.hide()},setPosition(me,ve){N.setPosition(me,ve)}}},actions2Dialog(){return{show(me){Y.show(me)},hide(){Y.hide()}}},background2Dialog(){return{show(me){x.show(me)},hide(){x.hide()}}},color2Dialog(){return{show(me){ce.show(me)},hide(){ce.hide()}}},expression2Dialog(){return{show(me){ue.show(me)},hide(){ue.hide()}}},file2Dialog(){return{show(me){Z.show(me)},hide(){Z.hide()}}},link2Dialog(){return{show(me){Q.show(me)},hide(){Q.hide()}}},tanker2Dialog(){return{show(me){se.show(me)},hide(){se.hide()}}},textAlign2Dialog(){return{show(me){_e.show(me)},hide(){_e.hide()}}},videoSource2Dialog(){return{show(me){Oe.show(me)},hide(){Oe.hide()}}},selectOptionsDialog(){return{show(me){W.show(me)},hide(){W.hide()}}}});let ge=null;function it(me){const ve=me.target;if(!(ve instanceof HTMLElement))return;const Ge=ve.closest("[data-custom-tooltip]");Ge&&Ge instanceof HTMLElement&&Ge!==ge&&n(11,ge=Ge)}function ye(me){const ve=me.target;ve instanceof Node&&ge&&!ge.contains(ve)&&n(11,ge=null)}function rt(me){pt[me?"unshift":"push"]((()=>{x=me,n(2,x)}))}function U(me){pt[me?"unshift":"push"]((()=>{ce=me,n(3,ce)}))}function de(me){pt[me?"unshift":"push"]((()=>{Z=me,n(5,Z)}))}function pe(me){pt[me?"unshift":"push"]((()=>{Q=me,n(6,Q)}))}function et(me){pt[me?"unshift":"push"]((()=>{Y=me,n(1,Y)}))}function we(me){pt[me?"unshift":"push"]((()=>{_e=me,n(8,_e)}))}function Ie(me){pt[me?"unshift":"push"]((()=>{se=me,n(7,se)}))}function Xe(me){pt[me?"unshift":"push"]((()=>{ue=me,n(4,ue)}))}function vt(me){pt[me?"unshift":"push"]((()=>{N=me,n(0,N)}))}function Qe(me){pt[me?"unshift":"push"]((()=>{Oe=me,n(9,Oe)}))}function fe(me){pt[me?"unshift":"push"]((()=>{W=me,n(10,W)}))}return t.$$set=me=>{"state"in me&&n(18,r=me.state),"layout"in me&&n(17,s=me.layout),"locale"in me&&n(19,l=me.locale),"shadowRoot"in me&&n(20,a=me.shadowRoot),"actionLogUrlVariable"in me&&n(21,c=me.actionLogUrlVariable),"cardLocales"in me&&n(22,d=me.cardLocales),"previewWarnFileLimit"in me&&n(23,u=me.previewWarnFileLimit),"previewErrorFileLimit"in me&&n(24,p=me.previewErrorFileLimit),"warnFileLimit"in me&&n(25,_=me.warnFileLimit),"errorFileLimit"in me&&n(26,f=me.errorFileLimit),"fileLimits"in me&&n(27,m=me.fileLimits),"rootConfigurable"in me&&n(28,g=me.rootConfigurable),"customFontFaces"in me&&n(29,v=me.customFontFaces),"directionSelector"in me&&n(30,y=me.directionSelector),"perThemeProps"in me&&n(31,b=me.perThemeProps),"uploadFile"in me&&n(32,w=me.uploadFile),"editorFabric"in me&&n(33,k=me.editorFabric),"getTranslationSuggest"in me&&n(34,A=me.getTranslationSuggest),"getTranslationKey"in me&&n(35,j=me.getTranslationKey)},t.$$.update=()=>{t.$$.dirty[0]&131072&&n(12,i=s.map((me=>({component:vae,weight:me.weight||1,minSize:me.minWidth,key:me.items.join(","),props:{items:me.items}}))))},[N,Y,x,ce,ue,Z,Q,se,_e,Oe,W,ge,i,o,O,it,ye,s,r,l,a,c,d,u,p,_,f,m,g,v,y,b,w,k,A,j,T,E,rt,U,de,pe,et,we,Ie,Xe,vt,Qe,fe]}class tde extends Gt{constructor(e){super(),Yt(this,e,ede,Qce,Rt,{state:18,layout:17,locale:19,shadowRoot:20,actionLogUrlVariable:21,cardLocales:22,previewWarnFileLimit:23,previewErrorFileLimit:24,warnFileLimit:25,errorFileLimit:26,fileLimits:27,rootConfigurable:28,customFontFaces:29,directionSelector:30,perThemeProps:31,uploadFile:32,editorFabric:33,getTranslationSuggest:34,getTranslationKey:35,setLayout:36,setLocale:37},null,[-1,-1])}get setLayout(){return this.$$.ctx[36]}get setLocale(){return this.$$.ctx[37]}}function nde(t){return t.reduce(((e,n)=>(e[n.id]={name:n.name,light:n.light,dark:n.dark},e)),{})}const ide=10;function ode(t,e,n,i){let o="";{const r=Math.min(ide,n);for(let s=0;s<r;++s)o+=" "}return dp({loc:{line:0,column:0,offset:0},replacer:e,stack:[],indent:"",gap:o,propertyList:void 0,onLoc:i},"",{"":t})||""}function dp(t,e,n){let i=n[e];(typeof i=="object"&&i!==null||typeof i=="bigint")&&typeof i.toJSON=="function"&&(i=i.toJSON(e)),t.replacer&&(i=t.replacer.call(n,e,i));let o;if(i===null?o="null":i===!0?o="true":i===!1?o="false":typeof i=="string"?o=JSON.stringify(i):typeof i=="number"&&(Number.isFinite(i)?o=String(i):o="null"),typeof o=="string")return cr(t.loc,o),o;if(typeof i=="bigint")throw new TypeError("Do not know how to serialize a BigInt");if(typeof i=="object"&&i!==null)return Array.isArray(i)?sde(t,i):lde(t,i)}function rde(t,e){let n=-1,i=0;for(;n<t.length-e.length;){const o=t.indexOf(e,n);if(o===-1)return i;n=o+1,++i}return 0}function cr(t,e){const n=rde(e,`\n`);if(n>0){const i=e.length-e.lastIndexOf(`\n`)-1;t.line+=n,t.column=i}else t.column+=e.length;t.offset+=e.length}function sde(t,e){if(t.stack.includes(e))throw new TypeError("Converting circular structure to JSON");t.stack.push(e);const n=t.indent;t.indent+=t.gap;let i="[";e.length&&t.gap&&(i+=`\n`+t.indent),cr(t.loc,i);for(let r=0,s=e.length;r<s;++r){const l={...t.loc},a=dp(t,String(r),e);let c;if(a===void 0?(c="null",t.loc=l,cr(t.loc,c)):c=a,i+=c,r+1<s){let d=",";t.gap&&(d+=`\n`+t.indent),i+=d,cr(t.loc,d)}}let o="";return e.length&&t.gap&&(o+=`\n`+n),o+="]",i+=o,cr(t.loc,o),t.stack.pop(),t.indent=n,i}function lde(t,e){if(t.stack.includes(e))throw new TypeError("Converting circular structure to JSON");t.stack.push(e);const n=t.indent,i={...t.loc};t.indent+=t.gap;const o=t.propertyList||Object.keys(e);let r="{";cr(t.loc,r);const s=`\n`+t.indent;t.gap&&(r+=s,cr(t.loc,s));let l=r;const a={...t.loc};let c=!1;if(o.forEach((d=>{const u={...t.loc},p=r;let _=JSON.stringify(d);_+=":",t.gap&&(_+=" "),r+=_,cr(t.loc,_);const f=dp(t,d,e);if(f!==void 0){c=!0,r+=f,l=r,a.line=t.loc.line,a.column=t.loc.column,a.offset=t.loc.offset;let m=",";t.gap&&(m+=`\n`+t.indent),r+=m,cr(t.loc,m)}else t.loc=u,r=p})),c){if(r=l,t.loc=a,t.gap){const d=`\n`+n;r+=d,cr(t.loc,d)}r+="}",cr(t.loc,"}")}else r="{}",t.loc={...i},cr(t.loc,r);return t.stack.pop(),t.indent=n,t.onLoc&&t.onLoc(e,{start:i,end:{...t.loc}}),r}const e1="https://yastatic.net/s3/home/divkit/empty2.png";function ade({object:t,mapJsonToLeaf:e}){return ode(t,((n,i)=>{if(!(n==="__leafId"||n==="__key"))return i}),2,((n,i)=>{const o=e.get(n);o&&(o.props.range=i)}))}const cde="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%3e%3cpath%20stroke='%23fff'%20stroke-linecap='round'%20stroke-width='2'%20d='M11%2011H7.5A2.5%202.5%200%200%200%205%2013.5V17m0%203v6m0%203v3.5A2.5%202.5%200%200%200%207.5%2035H11m3%200h6m3%200h3.5a2.5%202.5%200%200%200%202.5-2.5V29m6-21.5A2.5%202.5%200%200%200%2032.5%205h-19A2.5%202.5%200%200%200%2011%207.5v19a2.5%202.5%200%200%200%202.5%202.5h19a2.5%202.5%200%200%200%202.5-2.5z'/%3e%3c/svg%3e",dde="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%3e%3cpath%20stroke='%23fff'%20stroke-width='3'%20d='M11%2014h9m9%200h-9m0%200v16'/%3e%3c/svg%3e",ude="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%3e%3crect%20width='22'%20height='5'%20x='9'%20y='6'%20stroke='%23fff'%20stroke-width='2'%20rx='1'/%3e%3crect%20width='22'%20height='5'%20x='9'%20y='17'%20stroke='%23fff'%20stroke-width='2'%20rx='1'/%3e%3crect%20width='22'%20height='5'%20x='9'%20y='28'%20stroke='%23fff'%20stroke-width='2'%20rx='1'/%3e%3c/svg%3e",pde="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%3e%3cpath%20fill='%23fff'%20fill-rule='evenodd'%20d='M7.5%2031.5a2%202%200%200%201-2-2v-20a2%202%200%200%201%202-2h3a2%202%200%200%201%202%202v20a2%202%200%200%201-2%202h-3Zm0-22v20h3v-20h-3Zm11%2022a2%202%200%200%201-2-2v-20a2%202%200%200%201%202-2h3a2%202%200%200%201%202%202v20a2%202%200%200%201-2%202h-3Zm0-22v20h3v-20h-3Zm9%2020a2%202%200%200%200%202%202h3a2%202%200%200%200%202-2v-20a2%202%200%200%200-2-2h-3a2%202%200%200%200-2%202v20Zm2%200v-20h3v20h-3Z'%20clip-rule='evenodd'/%3e%3c/svg%3e",_de="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%3e%3cpath%20fill='%23fff'%20fill-rule='evenodd'%20d='M16.059%208.468A2%202%200%200%201%2017.344%208H31.51c1.867%200%202.716%202.332%201.286%203.532L30.332%2013.6h1.6c1.815%200%202.691%202.224%201.363%203.462l-3.203%202.988h1.835c1.816%200%202.692%202.224%201.364%203.462l-8.579%208a2%202%200%200%201-1.364.538H9.004c-1.816%200-2.692-2.225-1.364-3.463l3.204-2.987H9.009c-1.816%200-2.692-2.225-1.364-3.463L11.009%2019H9.003c-1.867%200-2.716-2.332-1.286-3.532l8.34-7ZM13.94%2019l-4.932%204.6h14.344l8.578-8h-3.98l-3.494%202.932A2%202%200%200%201%2023.17%2019h-9.23Zm-.165%206.6-4.772%204.45h14.344l8.579-8h-3.98l-3.23%203.012a2%202%200%200%201-1.364.538h-9.577ZM31.51%2010H17.344l-8.34%207h14.165l8.341-7Z'%20clip-rule='evenodd'/%3e%3c/svg%3e",fde="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%3e%3cpath%20fill='%23fff'%20d='M18.753%2021.308c0%20.546-.082%201.053-.247%201.521-.165.46-.416.862-.754%201.209a3.645%203.645%200%200%201-1.274.806c-.503.19-1.096.286-1.781.286a4.863%204.863%200%200%201-1.846-.338%204.082%204.082%200%200%201-1.43-.962%204.285%204.285%200%200%201-.923-1.508c-.217-.59-.325-1.248-.325-1.976s.104-1.387.312-1.976a4.19%204.19%200%200%201%20.936-1.508%204.204%204.204%200%200%201%201.534-.962c.615-.225%201.322-.338%202.119-.338.399%200%20.75.026%201.053.078.312.043.59.104.832.182.243.07.455.152.637.247s.347.186.494.273v1.404a6.704%206.704%200%200%200-1.313-.585c-.468-.165-1.027-.247-1.677-.247-1.135%200-1.963.303-2.483.91-.52.598-.78%201.439-.78%202.522%200%201.092.247%201.937.741%202.535.503.598%201.213.897%202.132.897.433%200%20.806-.056%201.118-.169.312-.121.563-.282.754-.481.2-.208.342-.45.429-.728.095-.286.143-.598.143-.936v-.078h-2.73v-1.352h4.329v1.274Zm3.136-5.629V25h-1.573v-9.321h1.573Zm1.994%200h5.928v1.365h-4.355v2.73h3.692v1.352h-3.692V25h-1.573v-9.321Z'/%3e%3c/svg%3e",mde="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%3e%3cpath%20stroke='%23fff'%20stroke-width='2'%20d='m7%2033%204.585-6.114a3%203%200%200%201%203.582-.957l2.46%201.054a3%203%200%200%200%203.732-1.178l3.367-5.44a3%203%200%200%201%204.415-.77L34.696%2024'/%3e%3crect%20width='30'%20height='30'%20x='5'%20y='5'%20stroke='%23fff'%20stroke-width='2'%20rx='5'/%3e%3crect%20width='6'%20height='6'%20x='12'%20y='12'%20stroke='%23fff'%20stroke-width='2'%20rx='3'/%3e%3c/svg%3e",gde="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%3e%3crect%20width='28'%20height='17'%20x='6'%20y='6'%20stroke='%23fff'%20stroke-width='2'%20rx='2'/%3e%3crect%20width='6'%20height='6'%20x='6'%20y='28'%20stroke='%23fff'%20stroke-width='2'%20rx='2'/%3e%3crect%20width='6'%20height='6'%20x='17'%20y='28'%20stroke='%23fff'%20stroke-width='2'%20rx='2'/%3e%3crect%20width='6'%20height='6'%20x='28'%20y='28'%20stroke='%23fff'%20stroke-width='2'%20rx='2'/%3e%3c/svg%3e",hde="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%3e%3cpath%20stroke='%23fff'%20stroke-width='3'%20d='M7%2020h26'/%3e%3c/svg%3e",vde="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%3e%3cpath%20fill='%23fff'%20fill-rule='evenodd'%20d='M4.5%2027.5a2%202%200%200%200%202%202h6a2%202%200%200%200%202-2v-16a2%202%200%200%200-2-2h-6a2%202%200%200%200-2%202v16Zm2-16v16h6v-16h-6Zm10%2016a2%202%200%200%200%202%202h6a2%202%200%200%200%202-2v-16a2%202%200%200%200-2-2h-6a2%202%200%200%200-2%202v16Zm2-16v16h6v-16h-6Zm12%2018h3v4a1%201%200%201%200%202%200v-28a1%201%200%201%200-2%200v4h-3a2%202%200%200%200-2%202v16a2%202%200%200%200%202%202Zm0-18v16h3v-16h-3Z'%20clip-rule='evenodd'/%3e%3c/svg%3e",bde="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='30'%20height='31'%20fill='none'%3e%3cpath%20fill='%23fff'%20fill-rule='evenodd'%20d='M7%200a2%202%200%200%200-2%202v6a2%202%200%200%200%202%202h16a2%202%200%200%200%202-2V2a2%202%200%200%200-2-2H7Zm16%202H7v6h16V2ZM7%2012a2%202%200%200%200-2%202v6a2%202%200%200%200%202%202h16a2%202%200%200%200%202-2v-6a2%202%200%200%200-2-2H7Zm16%202H7v6h16v-6ZM5%2026v3H1a1%201%200%201%200%200%202h28a1%201%200%201%200%200-2h-4v-3a2%202%200%200%200-2-2H7a2%202%200%200%200-2%202Zm18%200H7v3h16v-3Z'%20clip-rule='evenodd'/%3e%3c/svg%3e",yde="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%3e%3crect%20width='6'%20height='6'%20x='27.58'%20y='17'%20stroke='%23fff'%20stroke-width='2'%20rx='3'/%3e%3cpath%20fill='%23fff'%20fill-rule='evenodd'%20d='M9%2013.016h22c4.314%200%206.946%202.707%207%206.984%200%204.173-2.826%207.018-7%207.018H9c-4.544%200-7-3.297-7-7.018%200-4.233%202.85-6.984%207-6.984Zm0%202%2022.153-.028C33.977%2014.984%2036%2017.305%2036%2020c0%202.522-1.978%205.018-5%205.018H9c-2.988%200-5-2.405-5-5.018%200-2.89%202.073-4.98%205-4.984Z'%20clip-rule='evenodd'/%3e%3c/svg%3e",wde="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%3e%3cg%20stroke-width='2'%3e%3cpath%20stroke='%23fff'%20d='M8%207c-.554%200-1%20.446-1%201v23c0%20.554.446%201%201%201h24c.554%200%201-.446%201-1V8c0-.554-.446-1-1-1z'/%3e%3cpath%20stroke='%23feffff'%20d='M23%207v25'/%3e%3cpath%20stroke='%23fff'%20d='M7%2017h26'/%3e%3c/g%3e%3c/svg%3e",$de="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%3e%3cpath%20fill='%23fff'%20fill-rule='evenodd'%20d='M3%2029.5h3.5a2%202%200%200%200%202-2v-16a2%202%200%200%200-2-2H3m0%202v16h3.5v-16zm34%2018h-3.5a2%202%200%200%201-2-2v-16a2%202%200%200%201%202-2H37m0%202v16h-3.5v-16zm-26%2020a2%202%200%200%200%202%202h14a2%202%200%200%200%202-2v-24a2%202%200%200%200-2-2H13a2%202%200%200%200-2%202zm2-24v24h14v-24z'%20clip-rule='evenodd'/%3e%3c/svg%3e",kde="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%3e%3cg%20stroke='%23fff'%20stroke-width='2'%3e%3cpath%20d='M8%2010h7c1%200%202%201%202%202v4c0%201%201%202%202%202h13c1.108%200%202%20.892%202%202v10c0%201.108-.892%202-2%202H8c-1.108%200-2-.892-2-2V12c0-1.108.892-2%202-2z'/%3e%3cpath%20d='M17%2012h5c1%200%202%201%202%202v4'/%3e%3cpath%20d='M22%2012h6c1%200%202%201%202%202v4'/%3e%3c/g%3e%3c/svg%3e",jde="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%3e%3cg%20stroke='%23fff'%20stroke-linecap='round'%20stroke-width='2'%3e%3cpath%20d='M5%2035%2035%205'/%3e%3cpath%20stroke-linejoin='round'%20d='M16.741%2023.057H7.178c-1.2%200-2.164-.847-2.164-1.9V6.914c0-1.053.965-1.9%202.163-1.9h22.717c1.198%200%202.426.88%202.163%201.9l-.28%201.086M25%2014.957h9.836c1.2%200%202.164.847%202.164%201.9V31.1c0%201.053-.965%201.9-2.163%201.9H12.12c-1.198%200-2.163-.847-2.163-1.9v-.803'/%3e%3c/g%3e%3c/svg%3e",Sde="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%3e%3cpath%20stroke='%23fff'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='2'%20d='m26.695%2024.531%203.332%208.705L22.68%2026.8l-2.03%208.426-1.751-8.264-6.264%206.592%203.18-8.249L6.466%2027.1l6.273-5.86-7.606-3.055%209.32-.6-6.138-7.234%208.617%202.977-.82-7.93%205.079%207.356%203.342-8.216.043%208.84%207.921-3.857-4.11%206.425%207.895%201.15-6.758%203.873%205.834%205.052z'/%3e%3c/svg%3e",Tde="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%3e%3cpath%20fill='none'%20stroke='%23fff'%20stroke-linecap='round'%20stroke-width='3'%20d='M7%2020h26'/%3e%3ccircle%20cx='24.08'%20cy='20.033'%20r='3'%20fill='%23fff'%20stroke='%23fff'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='3'/%3e%3c/svg%3e",Cde="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%3e%3crect%20width='28'%20height='15'%20x='6'%20y='12.5'%20stroke='%23fff'%20stroke-width='2'%20rx='2'%20ry='2'/%3e%3cpath%20fill='%23fff'%20d='m13.416%2016.441-1.784%204.837h3.574zm-.742-1.296h1.49l3.705%209.72h-1.367l-.886-2.493h-4.381l-.885%202.493H8.963z'%20aria-label='A'/%3e%3c/svg%3e",zde="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%3e%3crect%20width='28'%20height='9.5'%20x='6'%20y='8.5'%20stroke='%23fff'%20stroke-width='2'%20rx='2'%20ry='2'/%3e%3cpath%20stroke='%23fff'%20stroke-linejoin='round'%20stroke-width='2'%20d='M32%2018v10c0%201.108-.892%202-2%202H10c-1.108%200-2-.892-2-2V18h24z'/%3e%3cpath%20fill='%23fff'%20d='m26%2013%202%202%203-3h-6'/%3e%3c/svg%3e",Ede="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%3e%3crect%20width='30'%20height='24'%20x='5'%20y='8'%20fill='none'%20stroke='%23fff'%20stroke-linejoin='round'%20stroke-width='2'%20rx='2'%20ry='2'/%3e%3cpath%20fill='%23fff'%20d='M16%2013v14l11-7-11-7'/%3e%3c/svg%3e",Ade="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%3e%3cpath%20stroke='%23fff'%20stroke-linecap='round'%20stroke-width='2'%20d='M8%2026v3.5a2.5%202.5%200%200%200%202.5%202.5H14m0-24h-3.5A2.5%202.5%200%200%200%208%2010.5V14m24%200v-3.5A2.5%202.5%200%200%200%2029.5%208H26m0%2024h3.5a2.5%202.5%200%200%200%202.5-2.5V26'/%3e%3c/svg%3e",t1={text:dde,container:ude,gallery:vde,gif:fde,image:mde,indicator:gde,separator:hde,switch:yde,grid:wde,pager:$de,tabs:kde,state:jde,custom:Sde,slider:Tde,input:Cde,select:zde,video:Ede},n1={container:{horizontal:pde,overlap:_de},gallery:{vertical:bde}};function Ode(t,e){if(t in t1){const n=e==null?void 0:e.orientation;if(n&&t in n1){const i=n1[t];if(n in i)return i[n]}return t1[t]}return t in Ji&&Ji[t].icon?Ji[t].icon:Ade}class Mde extends hr{constructor(n){super();on(this,"leafId");on(this,"cascadeRemoval");this.leafId=n,this.cascadeRemoval=[]}undo(n){const i=wn(n.tree);for(let o=this.cascadeRemoval.length-1;o>=0;--o){const r=this.cascadeRemoval[o],s=no(i,r.parentId);if(s){const l=r.leaf;s.childs.splice(r.insertIndex,0,l),l.parent=s}}}redo(n){const i=wn(n.tree);this.cascadeRemoval=Qu(i,this.leafId)}canMerge(n){return!1}mergeMeWith(n){throw new Error("Cannot merge RemoveLeafCommand")}toLangKey(){return"commands.remove_component"}}var Ir,ar,ma,gl,ga,qc,Rc,Bc,hl,vl,ha,Hc,KV;class Pde{constructor({getTranslationKey:e}){er(this,Hc);on(this,"palette",Si([]));on(this,"customVariables",Si([]));on(this,"variableTriggers",Si());on(this,"timers",Si([]));on(this,"tanker",Si({}));on(this,"rootLogId",Si("div2_sample_card"));on(this,"tree",Si({id:"null",childs:[],props:{json:{}}}));er(this,Ir,Si([]));er(this,ar,Si(-1));on(this,"currentUndoStore",as([Gi(this,Ir),Gi(this,ar)],(([e,n])=>e[n])));on(this,"currentRedoStore",as([Gi(this,Ir),Gi(this,ar)],(([e,n])=>e[n+1])));on(this,"sources",Si([]));er(this,ma,new Map);on(this,"tankerKeyToNodes",Si(new Map));on(this,"varToTankerMap",new Map);er(this,gl,Si(new Map));on(this,"userTemplates",new Map);er(this,ga,Si(this.userTemplates));on(this,"userDefinedTemplates",as([Gi(this,ga)],(([e])=>Array.from(e.keys()).filter((n=>!Ji[n])))));on(this,"paletteEnabled",Si(!0));er(this,qc,0);er(this,Rc,0);er(this,Bc,0);er(this,hl,0);on(this,"copiedLeaf",Si(null));on(this,"selectedLeaf",Si(null));on(this,"selectedElem",Si(null));on(this,"highlightLeaf",Si(null));on(this,"highlightElem",Si(null));on(this,"highlightMode",Si(""));on(this,"highlightGradientAngle",Si(0));on(this,"highlightRanges",Si(null));on(this,"selectedRanges",Si(null));on(this,"highlightLoc",Si(null));er(this,vl,!1);er(this,ha,null);on(this,"simpleComponentsMap",null);on(this,"rendererErrors",Si({}));on(this,"rendererErrorsOnly",as(this.rendererErrors,(e=>{const n=[];return Object.keys(e).map((i=>{n.push(...e[i].filter(Gne))})),n})));on(this,"rendererWarningsOnly",as(this.rendererErrors,(e=>{const n=[];return Object.keys(e).map((i=>{n.push(...e[i].filter(CV))})),n})));on(this,"locale",Si(""));on(this,"customActions",Si([]));on(this,"previewThemeStore",Si("light"));on(this,"readOnly",Si(!1));on(this,"themeStore",Si("light"));on(this,"divjsonStore",as(this.tree,(e=>{const{shortObject:n,mapJsonToLeaf:i}=this.treeToShortObject(e),o=new Set;cs(e,(s=>{const l=s.props.json.type;o.add(l)}));const r=this.toFullDivjson(o,n);return{object:r,fullString:ade({object:r,mapJsonToLeaf:i})}})));on(this,"direction",Si("ltr"));on(this,"getTranslationKey");this.getTranslationKey=e,this.selectedLeaf.subscribe((n=>{this.selectedElem.set((n==null?void 0:n.props.node)||null);const i=n==null?void 0:n.props.range;i?(this.highlightLoc.set(i.start),this.selectedRanges.set([i])):(this.highlightLoc.set(null),this.selectedRanges.set(null))})),this.tree.subscribe((n=>{const i=wn(this.selectedLeaf);i&&(no(n,i.id)||this.selectedLeaf.set(null));const o=new Set;cs(n,(l=>{o.add(l.id)}));let r=wn(this.rendererErrors),s=!1;for(const l in r)o.has(l)||(s||(s=!0,r={...r}),delete r[l]);s&&this.rendererErrors.set(r)}))}treeToShortObject(e){const n=new Map,i=r=>{var d,u,p,_;const l={...r.props.json,__leafId:r.id},a=this.getBaseType((d=r.props.json)==null?void 0:d.type),c=r.props.fromDataField||"items";return a==="state"?l[c]=(u=r.childs)==null?void 0:u.map(((f,m)=>{var g;return{state_id:((g=f.props.info)==null?void 0:g.state_id)||m,div:i(f)}})):a==="tabs"?l[c]=(p=r.childs)==null?void 0:p.map((f=>{var m,g;return{title:((m=f.props.info)==null?void 0:m.title)||"title",title_click_action:(g=f.props.info)==null?void 0:g.title_click_action,div:i(f)}})):(_=r.childs)!=null&&_.length?l[c]=r.childs.map(i):delete l.items,n.set(l,r),l};return{shortObject:{card:{log_id:wn(this.rootLogId),states:[{state_id:0,div:i(e)}]}},mapJsonToLeaf:n}}extractVariables(e,n){const i=[],o=new Set;n&&n.forEach((r=>{o.add(r.key)}));for(const r of e){const{name:s}=r;!s||!r.type||s==="local_palette"||s.startsWith("tanker_")||o.has(s)||i.push({id:this.genVariableId(),name:s,type:r.type,value:typeof r.value=="string"?r.value:JSON.stringify(r.value)})}return i}divToLeaf(e,n,i){const o=e.type;let r,s=[],l;o in Ji?r=[]:({childs:r,infos:s,fromDataField:l}=wV(this,e));const a={id:this.genId(),props:{json:e},parent:n,childs:[]};return i&&(a.props.info=i),l&&(a.props.fromDataField=l),a.childs=r.map(((c,d)=>this.divToLeaf(c,a,s[d]))),a}setDivJson(e){var n,i,o,r,s,l;if(!e)throw new Error("Missing json");if(!((o=(i=(n=e.card)==null?void 0:n.states)==null?void 0:i[0])!=null&&o.div))throw new Error("Incorrect format");if(this.userTemplates.clear(),e.templates&&typeof e.templates=="object")for(const a in e.templates)this.userTemplates.set(a,e.templates[a]),Gi(this,ga).set(this.userTemplates);Array.isArray((r=e.card)==null?void 0:r.variables)?(this.customVariables.set(this.extractVariables(e.card.variables,wn(this.sources))),e.card.variables.forEach((a=>{if(a.name==="local_palette"&&a.value&&typeof a.value=="object"){const c=[];for(const d in a.value){const u=a.value[d];u&&typeof u=="object"&&typeof u.name=="string"&&typeof u.light=="string"&&typeof u.dark=="string"&&c.push({id:d,name:u.name,light:u.light,dark:u.dark})}this.palette.set(c)}}))):this.customVariables.set([]),this.variableTriggers.set(Array.isArray((s=e.card)==null?void 0:s.variable_triggers)?e.card.variable_triggers:[]),Array.isArray((l=e.card)==null?void 0:l.timers)?this.timers.set(e.card.timers.filter((a=>a.id)).map((a=>({...a,__id:this.genTimerId()})))):this.timers.set([]),this.tree.set(this.divToLeaf(e.card.states[0].div)),this.updateUsages(),this.awaitMissingTankerKeys(e).then((a=>{a&&this.tree.set(wn(this.tree))}))}async awaitMissingTankerKeys(e){var i,o;const n=[];if(cs(wn(this.tree),(r=>{const s=r.props.json.text,l=s&&e0(s),a=s&&this.getTankerKey(s);l&&!a&&n.push(l)})),n.length&&Array.isArray((i=e==null?void 0:e.card)==null?void 0:i.variables)){const r=n.map((s=>{var l;return(l=e.card.variables.find((a=>(a==null?void 0:a.name)===s)))==null?void 0:l.value.replace("#{tanker/","").replace("}","")})).filter(Boolean);if(r.length){const s={};for(const l of r)try{const a=await((o=this.getTranslationKey)==null?void 0:o.call(this,l));a&&(s[l]=a,this.storeTankerKey(l))}catch{}return this.tanker.set({...wn(this.tanker),...s}),this.updateUsages(),!0}}return!1}toFullDivjson(e,n){const i={};for(const[d,u]of this.userTemplates)i[d]=u;for(const d in Ji)!this.userTemplates.has(d)&&e.has(d)&&(i[d]=Ji[d].template);const o=[],r=wn(this.palette);if(wn(this.paletteEnabled)){const d=nde(r);Object.keys(d).length&&o.push({type:"dict",name:"local_palette",value:d})}for(const[d]of wn(this.tankerKeyToNodes))o.push({type:"string",name:Ic(d),value:`#{tanker/${d}}`});const s=new Map;for(const d of wn(this.sources))s.set(d.key,d);for(const[d]of wn(Gi(this,gl)))s.has(d)&&o.push({type:"dict",name:d,value:s.get(d).example});for(const d of wn(this.customVariables))try{const u=Hte(d),{type:p,name:_}=d;o.push({type:p,name:_,value:u})}catch{}const l=n.card||(n.card={});o.length?l.variables=o:delete l.variables;const a=wn(this.variableTriggers);a.length?l.variable_triggers=a:delete l.variable_triggers;const c=wn(this.timers);return c.length?l.timers=c.map((d=>{const{id:u,duration:p,tick_interval:_,value_variable:f,tick_actions:m,end_actions:g}=d;return{id:u,duration:p,tick_interval:_,value_variable:f,tick_actions:m,end_actions:g}})):delete l.timers,{...n,templates:i}}genPaletteId(){let e;const n=new Set(wn(this.palette).map((i=>i.id)));do{e=`color${Nl(this,qc)._++}`}while(n.has(e));return e}genVariableId(){return`var${Nl(this,Rc)._++}`}genTimerId(){return`timer${Nl(this,Bc)._++}`}storeTankerKey(e){const n=Ic(e);Gi(this,ma).has(e)||Gi(this,ma).set(e,n),this.varToTankerMap.has(n)||this.varToTankerMap.set(n,e)}getTankerKey(e){const n=e0(e);return n&&this.varToTankerMap.get(n)||""}updateUsages(){this.updateTankerMap(),this.updateSourcesMap()}updateTankerMap(){const e=wn(this.tankerKeyToNodes);e.clear(),cs(wn(this.tree),(n=>{const i=n.props.json.text,o=i&&this.getTankerKey(i);if(o){const r=e.get(o)||new Set;e.set(o,r),r.add(n.id)}})),this.tankerKeyToNodes.set(e)}updateSourcesMap(){const e=wn(Gi(this,gl));e.clear(),cs(wn(this.tree),(n=>{for(const i in n.props.json){const o=n.props.json[i];if(typeof o=="string"&&o.includes("@{"))try{const r=GY(o,{type:"json"});Ko(r,{Variable(s){const l=s.id.name,a=e.get(l)||new Set;e.set(l,a)}})}catch{}}})),Gi(this,gl).set(e)}genNewLeaf(e,n=!1){let i;e==="text"?i={type:e,text:"text",font_size:20}:e==="image"?i={type:e,image_url:e1,width:{type:"fixed",value:100},height:{type:"fixed",value:100},preload_required:!0}:e==="gif"?i={type:e,gif_url:e1,width:{type:"fixed",value:100},height:{type:"fixed",value:100},preload_required:!0}:e==="separator"?i={type:e,width:{type:"match_parent"},height:{type:"fixed",value:10}}:e==="container"?i={type:e,width:{type:"match_parent"},height:{type:"fixed",value:200}}:e==="gallery"?i={type:e,width:{type:"match_parent"},height:{type:"fixed",value:200}}:e in Ji&&Ji[e].newNode?i={...Ji[e].newNode,type:e}:i={type:e};const o={id:this.genId(),parent:void 0,childs:[],props:{json:i}};if(!Sl(e)&&!(e in Ji)&&!this.userTemplates.has(e)&&e!=="custom"){const r={id:this.genId(),parent:o,childs:[],props:{json:{type:"text",text:"text"}}};(e==="gallery"||e==="container")&&(r.props.json.width={type:"fixed",value:100}),o.childs.push(r)}return o.props.json.width||(o.props.json.width={type:"wrap_content",constrained:!0}),n&&(o.props.json.alignment_horizontal="center",o.props.json.alignment_vertical="center"),o}getChild(e,n=!1){if(e.startsWith("_new")){const i=e.split(":")[1];return this.genNewLeaf(i,n)}return no(wn(this.tree),e)}componentIcon(e,n){return this.userTemplates.has(e)&&!(e in Ji)?cde:Ode(e,n)}getBaseType(e){var i;if(!e)return e;let n=e;for(;typeof n=="string"&&this.userTemplates.has(n);)n=(i=this.userTemplates.get(n))==null?void 0:i.type;return typeof n=="string"&&n||e}pushCommand(e){const n=wn(Gi(this,Ir)),i=wn(Gi(this,ar));e.redo(this);const o=n[i];if(o&&o.canMerge(e)){o.mergeMeWith(e);const r=n.slice(0,i);r.push(o),Gi(this,Ir).set(r),Gi(this,ar).set(r.length-1)}else{const r=n.slice(0,i+1);r.push(e),Gi(this,Ir).set(r),Gi(this,ar).set(r.length-1)}this.updateUsages(),this.tree.set(wn(this.tree))}undo(){if(!wn(this.currentUndoStore))return;const e=wn(Gi(this,Ir)),n=wn(Gi(this,ar));e[n].undo(this),Gi(this,ar).set(n-1),this.updateUsages(),this.tree.set(wn(this.tree))}redo(){if(!wn(this.currentRedoStore))return;const e=wn(Gi(this,Ir)),n=wn(Gi(this,ar));e[n+1].redo(this),Gi(this,ar).set(n+1),this.updateUsages(),this.tree.set(wn(this.tree))}pasteLeaf(e,n,i){var c,d;const o=this.getBaseType(n.props.json.type),s=o&&!Sl(o)&&!ep(this,n.props.json)&&!Ji[n.props.json.type]?n:n.parent;if(!s)return;const l=this.duplicateLeaf(e,s),a=wn(this.tree);((c=s==null?void 0:s.props.processedJson)==null?void 0:c.orientation)==="overlap"&&((d=l.props.json).margins||(d.margins={}),l.props.json.margins.top=(l.props.json.margins.top||0)+10,l.props.json.margins.left=(l.props.json.margins.left||0)+10),i===void 0&&(s===n.parent&&n.parent?i=n.parent.childs.indexOf(n)+1:i=s.childs.length),this.pushCommand(new da({parentId:s.id,insertIndex:i,leaf:l})),this.selectedLeaf.set(no(a,l.id)||null)}deleteLeaf(e){this.pushCommand(new Mde(e.id)),this.highlightLeaf.set(null),this.highlightElem.set(null),this.highlightRanges.set(null),wn(this.selectedLeaf)===e&&(this.selectedLeaf.set(null),this.selectedElem.set(null))}updateComponents(){up(this,Hc,KV).call(this,(()=>{const e=Lte(wn(this.tree));Qs(this,ha,e.map),this.simpleComponentsMap=e.simpleMap}))}getLeafFromNode(e){var i;const n=(i=Gi(this,ha))==null?void 0:i.get(e);if(n)return no(wn(this.tree),n)}genId(){return`id${Nl(this,hl)._++}`}currentGenId(){return Gi(this,hl)}restoreGenId(e){Qs(this,hl,e)}duplicateLeaf(e,n=void 0){const i={id:this.genId(),props:{...e.props},parent:n,childs:[]};return delete i.props.node,delete i.props.range,delete i.props.processedJson,i.props.json=JSON.parse(JSON.stringify(i.props.json)),e.childs.forEach((o=>{i.childs.push(this.duplicateLeaf(o,i))})),i}findBestLeaf(e){const n=wn(this.tree);if(!n)return;let i;if(cs(n,(o=>{const r=o.props.range;if(r&&r.start.offset<=e&&e<=r.end.offset+1){const s=r.end.offset-r.start.offset;(!i||i.len>s)&&(i={len:s,leaf:o})}})),i)return i.leaf}}Ir=new WeakMap,ar=new WeakMap,ma=new WeakMap,gl=new WeakMap,ga=new WeakMap,qc=new WeakMap,Rc=new WeakMap,Bc=new WeakMap,hl=new WeakMap,vl=new WeakMap,ha=new WeakMap,Hc=new WeakSet,KV=function(e){Gi(this,vl)||(Qs(this,vl,!0),Promise.resolve().then((()=>{Qs(this,vl,!1),e()})))};function Ide(t){return t.split("").map((e=>`u${String(e.charCodeAt(0)).padStart(4,"0")}`)).join("")}function Dde(t){return t.split("u").map((e=>e?String.fromCharCode(Number(e)):"")).join("")}function Nde(t){var l,a;const e={light:[],dark:[]},n=Date.now(),i=(a=(l=t.card.variables)==null?void 0:l.find((c=>c.name==="local_palette")))==null?void 0:a.value;i&&(t.card.variables=t.card.variables.filter((c=>c.name!=="local_palette")),t.card.variables.length||delete t.card.variables);const o=new Set,r=c=>{if(typeof c=="number"||typeof c=="boolean")return c;if(typeof c=="string")if(or(c)){const u=yr(c),p=i==null?void 0:i[u];if(p){const _="local_palette."+u+"."+n+"."+Ide(p.name);return o.has(_)||(o.add(_),e.light.push({name:_,color:p.light}),e.dark.push({name:_,color:p.dark})),`@{${_}}`}throw new Error(`Palette color "${u}" is not found`)}else return c;if(!c)return c;if(Array.isArray(c))return c.map(r);const d={};for(const u in c)d[u]=r(c[u]);return d},s=r(t);return o.size&&(s.palette=e),s}function qde(t){const e={};if(t.palette&&t.palette.light&&t.palette.dark)for(const o in t.palette.light){const r=t.palette.light[o].name.split("."),s=r[3]?Dde(r[3]):r[1];e[r[1]]={name:s,light:t.palette.light[o].color,dark:t.palette.dark[o].color}}const n=o=>{if(typeof o=="number"||typeof o=="boolean")return o;if(typeof o=="string"){if(o.startsWith("@{local_palette.")){const l=o.split(".")[1];return pa(l)}return o}if(!o)return o;if(Array.isArray(o))return o.map(n);const r={};for(const s in o)r[s]=n(o[s]);return r},i=n(t);return delete i.palette,Object.keys(e).length&&(t.card.variables||(i.card.variables=[]),i.card.variables.push({type:"dict",name:"local_palette",value:e})),i}function YV(t,e){const n=i=>{if(typeof i=="object"&&i){"type"in i&&typeof i.type=="string"&&e.has(i.type)&&(i.type=e.get(i.type));for(const o in i)n(i[o])}};return n(t),t}function Rde(t,e){if(!(t!=null&&t.templates))return t;const n=new Map,i={};for(const o in t.templates)n.set(o,o+e),i[o+e]=t.templates[o];return t.templates=i,YV(t,n)}function Bde(t,e){if(!(t!=null&&t.templates))return t;const n=new Map,i={};for(const o in t.templates){const r=e(o);r?(n.set(o,r),i[r]=t.templates[o]):i[o]=t.templates[o]}return t.templates=i,YV(t,n)}const Hde={init(t){var s,l,a,c,d,u,p,_,f,m,g,v,y;const e=JSON.parse(((s=t.card)==null?void 0:s.json)||t.value||"{}"),n=new Pde({getTranslationKey:(l=t.api)==null?void 0:l.getTranslationKey});if(n.paletteEnabled.set(t.paletteEnabled??!0),n.sources.set(t.sources||[]),n.customActions.set(t.customActions||[]),n.readOnly.set(t.readOnly||!1),n.themeStore.set(t.theme||"light"),n.locale.set(((c=(a=t.cardLocales)==null?void 0:a[0])==null?void 0:c.id)||""),n.direction.set(t.direction||"ltr"),Array.isArray((d=e==null?void 0:e.card)==null?void 0:d.variables)){const b=e.card.variables.find((w=>(w==null?void 0:w.type)==="dict"&&w.name==="local_palette"));if(b&&b.value&&typeof b.value=="object"){const w=[];for(const k in b.value){const A=b.value[k];k&&(A!=null&&A.name)&&A.light&&A.dark&&w.push({id:k,name:A.name,light:A.light,dark:A.dark})}n.palette.set(w)}}if((p=(u=t.card)==null?void 0:u.meta)!=null&&p.tanker){n.tanker.set(t.card.meta.tanker);for(const b in t.card.meta.tanker)n.storeTankerKey(b)}const i=(_=e==null?void 0:e.card)==null?void 0:_.log_id;i?n.rootLogId.set(i):n.rootLogId.set("div2_sample_card"),n.setDivJson(e);const o=new tde({target:t.renderTo,props:{state:n,layout:t.layout,locale:t.locale,shadowRoot:t.shadowRoot,actionLogUrlVariable:t.actionLogUrlVariable,cardLocales:t.cardLocales,previewWarnFileLimit:t.previewWarnFileLimit,previewErrorFileLimit:t.previewErrorFileLimit,warnFileLimit:t.warnFileLimit,errorFileLimit:t.errorFileLimit,fileLimits:t.fileLimits,rootConfigurable:t.rootConfigurable,customFontFaces:t.customFontFaces,directionSelector:t.directionSelector,perThemeProps:t.perThemeProps,uploadFile:(f=t.api)==null?void 0:f.uploadFile,editorFabric:(m=t.api)==null?void 0:m.editorFabric,getTranslationKey:(g=t.api)==null?void 0:g.getTranslationKey,getTranslationSuggest:(v=t.api)==null?void 0:v.getTranslationSuggest}});let r;if((y=t.api)!=null&&y.onChange){let b=!0;r=n.divjsonStore.subscribe((()=>{var w,k;b?b=!1:(k=(w=t.api)==null?void 0:w.onChange)==null||k.call(w)}))}return{getValue(){return wn(n.divjsonStore).fullString},getCard(){return{json:wn(n.divjsonStore).fullString,meta:{tanker:wn(n.tanker)}}},setTheme(b){n.themeStore.set(b)},setLayout(b){o.setLayout(b)},setLocale(b){o.setLocale(b)},setReadOnly(b){n.readOnly.set(b)},setCustomActions(b){n.customActions.set(b)},setPaletteEnabled(b){n.paletteEnabled.set(b)},destroy(){o.$destroy(),r==null||r()}}}};export{Hde as DivProEditor,Rde as addTemplatesSuffix,Nde as convertDictToPalette,qde as convertPaletteToDict,Bde as removeTemplatesSuffix};
|
|
1
|
+
import{D as a,b as o,c as r,a as s,r as i}from"./lib.js";export{a as DivProEditor,o as addTemplatesSuffix,r as convertDictToPalette,s as convertPaletteToDict,i as removeTemplatesSuffix};
|