utxo22-web/_app/pages/program.svelte-94321f28.js

4 řádky
48 KiB
JavaScript

var Ge=Object.defineProperty;var Gt=Object.getOwnPropertySymbols;var qe=Object.prototype.hasOwnProperty,Je=Object.prototype.propertyIsEnumerable;var qt=(t,e,n)=>e in t?Ge(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ot=(t,e)=>{for(var n in e||(e={}))qe.call(e,n)&&qt(t,n,e[n]);if(Gt)for(var n of Gt(e))Je.call(e,n)&&qt(t,n,e[n]);return t};import{S as me,i as _e,s as ye,a0 as Qe,e as F,c as D,a as z,d as L,b as P,f as ut,g as ft,F as S,J as Et,E as kt,Y as Ze,v as je,O as $e,w as ve,x as xe,y as we,q as ct,o as ht,B as be,k as j,t as q,R as tn,m as $,h as J,_ as Jt,p as Qt,j as Lt,G as Me,Z as en,H as Zt,n as jt}from"../chunks/index-f961f29d.js";import{a as nn,c as rn}from"../chunks/Event-2e829855.js";import{p as $t}from"../chunks/stores-d7e9d57e.js";import{g as Ct}from"../chunks/navigation-0e6511d1.js";import{l as sn,b as te}from"../chunks/stores-2b13be7a.js";import{g as on}from"../chunks/_commonjsHelpers-c771f69b.js";import"../chunks/Avatar-ae188221.js";import"../chunks/singletons-d1fb5791.js";import"../chunks/index-f562cf15.js";var cn={value:function(){}};function Ee(){for(var t=0,e=arguments.length,n={},s;t<e;++t){if(!(s=arguments[t]+"")||s in n||/[\s.]/.test(s))throw new Error("illegal type: "+s);n[s]=[]}return new bt(n)}function bt(t){this._=t}function an(t,e){return t.trim().split(/^|\s+/).map(function(n){var s="",r=n.indexOf(".");if(r>=0&&(s=n.slice(r+1),n=n.slice(0,r)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:s}})}bt.prototype=Ee.prototype={constructor:bt,on:function(t,e){var n=this._,s=an(t+"",n),r,i=-1,o=s.length;if(arguments.length<2){for(;++i<o;)if((r=(t=s[i]).type)&&(r=ln(n[r],t.name)))return r;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++i<o;)if(r=(t=s[i]).type)n[r]=ee(n[r],t.name,e);else if(e==null)for(r in n)n[r]=ee(n[r],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new bt(t)},call:function(t,e){if((r=arguments.length-2)>0)for(var n=new Array(r),s=0,r,i;s<r;++s)n[s]=arguments[s+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(i=this._[t],s=0,r=i.length;s<r;++s)i[s].value.apply(e,n)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var s=this._[t],r=0,i=s.length;r<i;++r)s[r].value.apply(e,n)}};function ln(t,e){for(var n=0,s=t.length,r;n<s;++n)if((r=t[n]).name===e)return r.value}function ee(t,e,n){for(var s=0,r=t.length;s<r;++s)if(t[s].name===e){t[s]=cn,t=t.slice(0,s).concat(t.slice(s+1));break}return n!=null&&t.push({name:e,value:n}),t}var un=Object.freeze(Object.defineProperty({__proto__:null,dispatch:Ee},Symbol.toStringTag,{value:"Module"})),hn=on(un),fn=hn.dispatch,Rt=Math.PI/180,_t=1<<11>>5,Mt=1<<11,dn=function(){var t=[256,256],e=gn,n=pn,s=mn,r=ne,i=ne,o=_n,c=yn,a=ke,l=[],u=1/0,f=fn("word","end"),g=null,p=Math.random,h={},y=kn;h.canvas=function(d){return arguments.length?(y=rt(d),h):y},h.start=function(){var d=k(y()),m=En((t[0]>>5)*t[1]),v=null,b=l.length,N=-1,E=[],C=l.map(function(I,M){return I.text=e.call(this,I,M),I.font=n.call(this,I,M),I.style=r.call(this,I,M),I.weight=i.call(this,I,M),I.rotate=o.call(this,I,M),I.size=~~s.call(this,I,M),I.padding=c.call(this,I,M),I}).sort(function(I,M){return M.size-I.size});return g&&clearInterval(g),g=setInterval(T,0),T(),h;function T(){for(var I=Date.now();Date.now()-I<u&&++N<b&&g;){var M=C[N];M.x=t[0]*(p()+.5)>>1,M.y=t[1]*(p()+.5)>>1,vn(d,M,C,N),M.hasText&&x(m,M,v)&&(E.push(M),f.call("word",h,M),v?wn(v,M):v=[{x:M.x+M.x0,y:M.y+M.y0},{x:M.x+M.x1,y:M.y+M.y1}],M.x-=t[0]>>1,M.y-=t[1]>>1)}N>=b&&(h.stop(),f.call("end",h,E,v))}},h.stop=function(){return g&&(clearInterval(g),g=null),h};function k(d){d.width=d.height=1;var m=Math.sqrt(d.getContext("2d").getImageData(0,0,1,1).data.length>>2);d.width=(_t<<5)/m,d.height=Mt/m;var v=d.getContext("2d");return v.fillStyle=v.strokeStyle="red",v.textAlign="center",{context:v,ratio:m}}function x(d,m,v){t[0],t[1];for(var b=m.x,N=m.y,E=Math.sqrt(t[0]*t[0]+t[1]*t[1]),C=a(t),T=p()<.5?1:-1,I=-T,M,W,U;(M=C(I+=T))&&(W=~~M[0],U=~~M[1],!(Math.min(Math.abs(W),Math.abs(U))>=E));)if(m.x=b+W,m.y=N+U,!(m.x+m.x0<0||m.y+m.y0<0||m.x+m.x1>t[0]||m.y+m.y1>t[1])&&(!v||!xn(m,d,t[0]))&&(!v||bn(m,v))){for(var _=m.sprite,R=m.width>>5,B=t[0]>>5,nt=m.x-(R<<4),gt=nt&127,yt=32-gt,Q=m.y1-m.y0,pt=(m.y+m.y0)*B+(nt>>5),G,O=0;O<Q;O++){G=0;for(var it=0;it<=R;it++)d[pt+it]|=G<<yt|(it<R?(G=_[O*R+it])>>>gt:0);pt+=B}return delete m.sprite,!0}return!1}return h.timeInterval=function(d){return arguments.length?(u=d==null?1/0:d,h):u},h.words=function(d){return arguments.length?(l=d,h):l},h.size=function(d){return arguments.length?(t=[+d[0],+d[1]],h):t},h.font=function(d){return arguments.length?(n=rt(d),h):n},h.fontStyle=function(d){return arguments.length?(r=rt(d),h):r},h.fontWeight=function(d){return arguments.length?(i=rt(d),h):i},h.rotate=function(d){return arguments.length?(o=rt(d),h):o},h.text=function(d){return arguments.length?(e=rt(d),h):e},h.spiral=function(d){return arguments.length?(a=An[d]||d,h):a},h.fontSize=function(d){return arguments.length?(s=rt(d),h):s},h.padding=function(d){return arguments.length?(c=rt(d),h):c},h.random=function(d){return arguments.length?(p=d,h):p},h.on=function(){var d=f.on.apply(f,arguments);return d===f?h:d},h};function gn(t){return t.text}function pn(){return"serif"}function ne(){return"normal"}function mn(t){return Math.sqrt(t.value)}function _n(){return(~~(Math.random()*6)-3)*30}function yn(){return 1}function vn(t,e,n,s){if(!e.sprite){var r=t.context,i=t.ratio;r.clearRect(0,0,(_t<<5)/i,Mt/i);var o=0,c=0,a=0,l=n.length;for(--s;++s<l;){e=n[s],r.save(),r.font=e.style+" "+e.weight+" "+~~((e.size+1)/i)+"px "+e.font;var u=r.measureText(e.text+"m").width*i,f=e.size<<1;if(e.rotate){var g=Math.sin(e.rotate*Rt),p=Math.cos(e.rotate*Rt),h=u*p,y=u*g,k=f*p,x=f*g;u=Math.max(Math.abs(h+x),Math.abs(h-x))+31>>5<<5,f=~~Math.max(Math.abs(y+k),Math.abs(y-k))}else u=u+31>>5<<5;if(f>a&&(a=f),o+u>=_t<<5&&(o=0,c+=a,a=0),c+f>=Mt)break;r.translate((o+(u>>1))/i,(c+(f>>1))/i),e.rotate&&r.rotate(e.rotate*Rt),r.fillText(e.text,0,0),e.padding&&(r.lineWidth=2*e.padding,r.strokeText(e.text,0,0)),r.restore(),e.width=u,e.height=f,e.xoff=o,e.yoff=c,e.x1=u>>1,e.y1=f>>1,e.x0=-e.x1,e.y0=-e.y1,e.hasText=!0,o+=u}for(var d=r.getImageData(0,0,(_t<<5)/i,Mt/i).data,m=[];--s>=0;)if(e=n[s],!!e.hasText){for(var u=e.width,v=u>>5,f=e.y1-e.y0,b=0;b<f*v;b++)m[b]=0;if(o=e.xoff,o==null)return;c=e.yoff;for(var N=0,E=-1,C=0;C<f;C++){for(var b=0;b<u;b++){var T=v*C+(b>>5),I=d[(c+C)*(_t<<5)+(o+b)<<2]?1<<31-b%32:0;m[T]|=I,N|=I}N?E=C:(e.y0++,f--,C--,c++)}e.y1=e.y0+E,e.sprite=m.slice(0,(e.y1-e.y0)*v)}}}function xn(t,e,n){n>>=5;for(var s=t.sprite,r=t.width>>5,i=t.x-(r<<4),o=i&127,c=32-o,a=t.y1-t.y0,l=(t.y+t.y0)*n+(i>>5),u,f=0;f<a;f++){u=0;for(var g=0;g<=r;g++)if((u<<c|(g<r?(u=s[f*r+g])>>>o:0))&e[l+g])return!0;l+=n}return!1}function wn(t,e){var n=t[0],s=t[1];e.x+e.x0<n.x&&(n.x=e.x+e.x0),e.y+e.y0<n.y&&(n.y=e.y+e.y0),e.x+e.x1>s.x&&(s.x=e.x+e.x1),e.y+e.y1>s.y&&(s.y=e.y+e.y1)}function bn(t,e){return t.x+t.x1>e[0].x&&t.x+t.x0<e[1].x&&t.y+t.y1>e[0].y&&t.y+t.y0<e[1].y}function ke(t){var e=t[0]/t[1];return function(n){return[e*(n*=.1)*Math.cos(n),n*Math.sin(n)]}}function Mn(t){var e=4,n=e*t[0]/t[1],s=0,r=0;return function(i){var o=i<0?-1:1;switch(Math.sqrt(1+4*o*i)-o&3){case 0:s+=n;break;case 1:r+=e;break;case 2:s-=n;break;default:r-=e;break}return[s,r]}}function En(t){for(var e=[],n=-1;++n<t;)e[n]=0;return e}function kn(){return document.createElement("canvas")}function rt(t){return typeof t=="function"?t:function(){return t}}var An={archimedean:ke,rectangular:Mn},Tt="http://www.w3.org/1999/xhtml",re={svg:"http://www.w3.org/2000/svg",xhtml:Tt,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Ae(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),re.hasOwnProperty(e)?{space:re[e],local:t}:t}function Sn(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===Tt&&e.documentElement.namespaceURI===Tt?e.createElement(t):e.createElementNS(n,t)}}function In(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Se(t){var e=Ae(t);return(e.local?In:Sn)(e)}function Cn(){}function Ie(t){return t==null?Cn:function(){return this.querySelector(t)}}function Rn(t){typeof t!="function"&&(t=Ie(t));for(var e=this._groups,n=e.length,s=new Array(n),r=0;r<n;++r)for(var i=e[r],o=i.length,c=s[r]=new Array(o),a,l,u=0;u<o;++u)(a=i[u])&&(l=t.call(a,a.__data__,u,i))&&("__data__"in a&&(l.__data__=a.__data__),c[u]=l);return new X(s,this._parents)}function Nn(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function Ln(){return[]}function Tn(t){return t==null?Ln:function(){return this.querySelectorAll(t)}}function On(t){return function(){return Nn(t.apply(this,arguments))}}function Pn(t){typeof t=="function"?t=On(t):t=Tn(t);for(var e=this._groups,n=e.length,s=[],r=[],i=0;i<n;++i)for(var o=e[i],c=o.length,a,l=0;l<c;++l)(a=o[l])&&(s.push(t.call(a,a.__data__,l,o)),r.push(a));return new X(s,r)}function Fn(t){return function(){return this.matches(t)}}function Ce(t){return function(e){return e.matches(t)}}var Dn=Array.prototype.find;function zn(t){return function(){return Dn.call(this.children,t)}}function Vn(){return this.firstElementChild}function Wn(t){return this.select(t==null?Vn:zn(typeof t=="function"?t:Ce(t)))}var Bn=Array.prototype.filter;function Hn(){return Array.from(this.children)}function Kn(t){return function(){return Bn.call(this.children,t)}}function Un(t){return this.selectAll(t==null?Hn:Kn(typeof t=="function"?t:Ce(t)))}function Yn(t){typeof t!="function"&&(t=Fn(t));for(var e=this._groups,n=e.length,s=new Array(n),r=0;r<n;++r)for(var i=e[r],o=i.length,c=s[r]=[],a,l=0;l<o;++l)(a=i[l])&&t.call(a,a.__data__,l,i)&&c.push(a);return new X(s,this._parents)}function Re(t){return new Array(t.length)}function Xn(){return new X(this._enter||this._groups.map(Re),this._parents)}function At(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}At.prototype={constructor:At,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function Gn(t){return function(){return t}}function qn(t,e,n,s,r,i){for(var o=0,c,a=e.length,l=i.length;o<l;++o)(c=e[o])?(c.__data__=i[o],s[o]=c):n[o]=new At(t,i[o]);for(;o<a;++o)(c=e[o])&&(r[o]=c)}function Jn(t,e,n,s,r,i,o){var c,a,l=new Map,u=e.length,f=i.length,g=new Array(u),p;for(c=0;c<u;++c)(a=e[c])&&(g[c]=p=o.call(a,a.__data__,c,e)+"",l.has(p)?r[c]=a:l.set(p,a));for(c=0;c<f;++c)p=o.call(t,i[c],c,i)+"",(a=l.get(p))?(s[c]=a,a.__data__=i[c],l.delete(p)):n[c]=new At(t,i[c]);for(c=0;c<u;++c)(a=e[c])&&l.get(g[c])===a&&(r[c]=a)}function Qn(t){return t.__data__}function Zn(t,e){if(!arguments.length)return Array.from(this,Qn);var n=e?Jn:qn,s=this._parents,r=this._groups;typeof t!="function"&&(t=Gn(t));for(var i=r.length,o=new Array(i),c=new Array(i),a=new Array(i),l=0;l<i;++l){var u=s[l],f=r[l],g=f.length,p=jn(t.call(u,u&&u.__data__,l,s)),h=p.length,y=c[l]=new Array(h),k=o[l]=new Array(h),x=a[l]=new Array(g);n(u,f,y,k,x,p,e);for(var d=0,m=0,v,b;d<h;++d)if(v=y[d]){for(d>=m&&(m=d+1);!(b=k[m])&&++m<h;);v._next=b||null}}return o=new X(o,s),o._enter=c,o._exit=a,o}function jn(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function $n(){return new X(this._exit||this._groups.map(Re),this._parents)}function tr(t,e,n){var s=this.enter(),r=this,i=this.exit();return typeof t=="function"?(s=t(s),s&&(s=s.selection())):s=s.append(t+""),e!=null&&(r=e(r),r&&(r=r.selection())),n==null?i.remove():n(i),s&&r?s.merge(r).order():r}function er(t){for(var e=t.selection?t.selection():t,n=this._groups,s=e._groups,r=n.length,i=s.length,o=Math.min(r,i),c=new Array(r),a=0;a<o;++a)for(var l=n[a],u=s[a],f=l.length,g=c[a]=new Array(f),p,h=0;h<f;++h)(p=l[h]||u[h])&&(g[h]=p);for(;a<r;++a)c[a]=n[a];return new X(c,this._parents)}function nr(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var s=t[e],r=s.length-1,i=s[r],o;--r>=0;)(o=s[r])&&(i&&o.compareDocumentPosition(i)^4&&i.parentNode.insertBefore(o,i),i=o);return this}function rr(t){t||(t=sr);function e(f,g){return f&&g?t(f.__data__,g.__data__):!f-!g}for(var n=this._groups,s=n.length,r=new Array(s),i=0;i<s;++i){for(var o=n[i],c=o.length,a=r[i]=new Array(c),l,u=0;u<c;++u)(l=o[u])&&(a[u]=l);a.sort(e)}return new X(r,this._parents).order()}function sr(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function ir(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function or(){return Array.from(this)}function cr(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var s=t[e],r=0,i=s.length;r<i;++r){var o=s[r];if(o)return o}return null}function ar(){let t=0;for(const e of this)++t;return t}function lr(){return!this.node()}function ur(t){for(var e=this._groups,n=0,s=e.length;n<s;++n)for(var r=e[n],i=0,o=r.length,c;i<o;++i)(c=r[i])&&t.call(c,c.__data__,i,r);return this}function hr(t){return function(){this.removeAttribute(t)}}function fr(t){return function(){this.removeAttributeNS(t.space,t.local)}}function dr(t,e){return function(){this.setAttribute(t,e)}}function gr(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function pr(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function mr(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function _r(t,e){var n=Ae(t);if(arguments.length<2){var s=this.node();return n.local?s.getAttributeNS(n.space,n.local):s.getAttribute(n)}return this.each((e==null?n.local?fr:hr:typeof e=="function"?n.local?mr:pr:n.local?gr:dr)(n,e))}function Ne(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function yr(t){return function(){this.style.removeProperty(t)}}function vr(t,e,n){return function(){this.style.setProperty(t,e,n)}}function xr(t,e,n){return function(){var s=e.apply(this,arguments);s==null?this.style.removeProperty(t):this.style.setProperty(t,s,n)}}function wr(t,e,n){return arguments.length>1?this.each((e==null?yr:typeof e=="function"?xr:vr)(t,e,n==null?"":n)):br(this.node(),t)}function br(t,e){return t.style.getPropertyValue(e)||Ne(t).getComputedStyle(t,null).getPropertyValue(e)}function Mr(t){return function(){delete this[t]}}function Er(t,e){return function(){this[t]=e}}function kr(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function Ar(t,e){return arguments.length>1?this.each((e==null?Mr:typeof e=="function"?kr:Er)(t,e)):this.node()[t]}function Le(t){return t.trim().split(/^|\s+/)}function Wt(t){return t.classList||new Te(t)}function Te(t){this._node=t,this._names=Le(t.getAttribute("class")||"")}Te.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function Oe(t,e){for(var n=Wt(t),s=-1,r=e.length;++s<r;)n.add(e[s])}function Pe(t,e){for(var n=Wt(t),s=-1,r=e.length;++s<r;)n.remove(e[s])}function Sr(t){return function(){Oe(this,t)}}function Ir(t){return function(){Pe(this,t)}}function Cr(t,e){return function(){(e.apply(this,arguments)?Oe:Pe)(this,t)}}function Rr(t,e){var n=Le(t+"");if(arguments.length<2){for(var s=Wt(this.node()),r=-1,i=n.length;++r<i;)if(!s.contains(n[r]))return!1;return!0}return this.each((typeof e=="function"?Cr:e?Sr:Ir)(n,e))}function Nr(){this.textContent=""}function Lr(t){return function(){this.textContent=t}}function Tr(t){return function(){var e=t.apply(this,arguments);this.textContent=e==null?"":e}}function Or(t){return arguments.length?this.each(t==null?Nr:(typeof t=="function"?Tr:Lr)(t)):this.node().textContent}function Pr(){this.innerHTML=""}function Fr(t){return function(){this.innerHTML=t}}function Dr(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e==null?"":e}}function zr(t){return arguments.length?this.each(t==null?Pr:(typeof t=="function"?Dr:Fr)(t)):this.node().innerHTML}function Vr(){this.nextSibling&&this.parentNode.appendChild(this)}function Wr(){return this.each(Vr)}function Br(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Hr(){return this.each(Br)}function Kr(t){var e=typeof t=="function"?t:Se(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function Ur(){return null}function Yr(t,e){var n=typeof t=="function"?t:Se(t),s=e==null?Ur:typeof e=="function"?e:Ie(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),s.apply(this,arguments)||null)})}function Xr(){var t=this.parentNode;t&&t.removeChild(this)}function Gr(){return this.each(Xr)}function qr(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Jr(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Qr(t){return this.select(t?Jr:qr)}function Zr(t){return arguments.length?this.property("__data__",t):this.node().__data__}function jr(t){return function(e){t.call(this,e,this.__data__)}}function $r(t){return t.trim().split(/^|\s+/).map(function(e){var n="",s=e.indexOf(".");return s>=0&&(n=e.slice(s+1),e=e.slice(0,s)),{type:e,name:n}})}function ts(t){return function(){var e=this.__on;if(!!e){for(var n=0,s=-1,r=e.length,i;n<r;++n)i=e[n],(!t.type||i.type===t.type)&&i.name===t.name?this.removeEventListener(i.type,i.listener,i.options):e[++s]=i;++s?e.length=s:delete this.__on}}}function es(t,e,n){return function(){var s=this.__on,r,i=jr(e);if(s){for(var o=0,c=s.length;o<c;++o)if((r=s[o]).type===t.type&&r.name===t.name){this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=i,r.options=n),r.value=e;return}}this.addEventListener(t.type,i,n),r={type:t.type,name:t.name,value:e,listener:i,options:n},s?s.push(r):this.__on=[r]}}function ns(t,e,n){var s=$r(t+""),r,i=s.length,o;if(arguments.length<2){var c=this.node().__on;if(c){for(var a=0,l=c.length,u;a<l;++a)for(r=0,u=c[a];r<i;++r)if((o=s[r]).type===u.type&&o.name===u.name)return u.value}return}for(c=e?es:ts,r=0;r<i;++r)this.each(c(s[r],e,n));return this}function Fe(t,e,n){var s=Ne(t),r=s.CustomEvent;typeof r=="function"?r=new r(e,n):(r=s.document.createEvent("Event"),n?(r.initEvent(e,n.bubbles,n.cancelable),r.detail=n.detail):r.initEvent(e,!1,!1)),t.dispatchEvent(r)}function rs(t,e){return function(){return Fe(this,t,e)}}function ss(t,e){return function(){return Fe(this,t,e.apply(this,arguments))}}function is(t,e){return this.each((typeof e=="function"?ss:rs)(t,e))}function*os(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var s=t[e],r=0,i=s.length,o;r<i;++r)(o=s[r])&&(yield o)}var cs=[null];function X(t,e){this._groups=t,this._parents=e}function as(){return this}X.prototype={constructor:X,select:Rn,selectAll:Pn,selectChild:Wn,selectChildren:Un,filter:Yn,data:Zn,enter:Xn,exit:$n,join:tr,merge:er,selection:as,order:nr,sort:rr,call:ir,nodes:or,node:cr,size:ar,empty:lr,each:ur,attr:_r,style:wr,property:Ar,classed:Rr,text:Or,html:zr,raise:Wr,lower:Hr,append:Kr,insert:Yr,remove:Gr,clone:Qr,datum:Zr,on:ns,dispatch:is,[Symbol.iterator]:os};function ls(t){return typeof t=="string"?new X([[document.querySelector(t)]],[document.documentElement]):new X([[t]],cs)}class se extends Map{constructor(e,n=fs){super();if(Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),e!=null)for(const[s,r]of e)this.set(s,r)}get(e){return super.get(ie(this,e))}has(e){return super.has(ie(this,e))}set(e,n){return super.set(us(this,e),n)}delete(e){return super.delete(hs(this,e))}}function ie({_intern:t,_key:e},n){const s=e(n);return t.has(s)?t.get(s):n}function us({_intern:t,_key:e},n){const s=e(n);return t.has(s)?t.get(s):(t.set(s,n),n)}function hs({_intern:t,_key:e},n){const s=e(n);return t.has(s)&&(n=t.get(s),t.delete(s)),n}function fs(t){return t!==null&&typeof t=="object"?t.valueOf():t}function ds(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}const oe=Symbol("implicit");function De(){var t=new se,e=[],n=[],s=oe;function r(i){let o=t.get(i);if(o===void 0){if(s!==oe)return s;t.set(i,o=e.push(i)-1)}return n[o%n.length]}return r.domain=function(i){if(!arguments.length)return e.slice();e=[],t=new se;for(const o of i)t.has(o)||t.set(o,e.push(o)-1);return r},r.range=function(i){return arguments.length?(n=Array.from(i),r):n.slice()},r.unknown=function(i){return arguments.length?(s=i,r):s},r.copy=function(){return De(e,n).unknown(s)},ds.apply(r,arguments),r}function Z(t){for(var e=t.length/6|0,n=new Array(e),s=0;s<e;)n[s]="#"+t.slice(s*6,++s*6);return n}var gs=Z("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),ps=Z("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),ms=Z("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),_s=Z("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),ys=Z("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),vs=Z("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),xs=Z("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),ws=Z("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),bs=Z("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),Ms=Z("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function Es(t){let e,n,s,r,i,o;return Qe(t[15]),{c(){e=F("div"),n=F("div"),this.h()},l(c){e=D(c,"DIV",{class:!0});var a=z(e);n=D(a,"DIV",{id:!0,style:!0,class:!0}),z(n).forEach(L),a.forEach(L),this.h()},h(){P(n,"id","wordcloud"),ut(n,"background-color",t[0]),ut(n,"width",t[2]+"px"),ut(n,"height",t[4]+"px"),P(n,"class",s="justify-end "+(t[3]?"opacity-100":"opacity-0")+" transition transition-all svelte-wza7b"),P(e,"class",r="height: "+t[4]+"px;")},m(c,a){ft(c,e,a),S(e,n),i||(o=Et(window,"resize",t[15]),i=!0)},p(c,[a]){a&1&&ut(n,"background-color",c[0]),a&4&&ut(n,"width",c[2]+"px"),a&16&&ut(n,"height",c[4]+"px"),a&8&&s!==(s="justify-end "+(c[3]?"opacity-100":"opacity-0")+" transition transition-all svelte-wza7b")&&P(n,"class",s),a&16&&r!==(r="height: "+c[4]+"px;")&&P(e,"class",r)},i:kt,o:kt,d(c){c&&L(e),i=!1,o()}}}function ks(t,e,n){let s,r,i,o;const c=Ze(),a={schemeCategory10:gs,schemeAccent:ps,schemeDark2:ms,schemePaired:_s,schemePastel1:ys,schemePastel2:vs,schemeSet1:xs,schemeSet2:ws,schemeSet3:bs,schemeTableau10:Ms};let{width:l=900}=e,{words:u=[]}=e,{height:f=250}=e,{font:g="Montserrat"}=e,{maxFontSize:p=40}=e,{minRotate:h=0}=e,{maxRotate:y=0}=e,{scheme:k="schemeTableau10"}=e,{padding:x=2}=e,{backgroundColor:d="#fff"}=e;u.reduce((_,R)=>_.count<R.count?_.count:R.count),De(a[k]);const m=_=>c("click",_),v=_=>c("mouseover",_),b=_=>c("mouseout",_),N=_=>c("mousemove",_);let E=null;async function C(){const _=[i,o].join(":");let R=null;return await sn.update(B=>(B&&B[_]?R=B[_]:(R=dn().size([i,o]).words(u).padding(x).rotate(()=>~~(Math.random()*y)+h).font(g).fontSize(nt=>nt.count+15),B[_]=R),B)),R}function T(_){ls("#wordcloud").append("svg").attr("width",E.size()[0]).attr("height",E.size()[1]).append("g").attr("transform","translate("+E.size()[0]/2+","+E.size()[1]/2+")").selectAll("text").data(_).enter().append("text").style("font-size",R=>R.size+"px").style("font-family",g).style("fill","#393F67").style("cursor","pointer").attr("text-anchor","middle").attr("transform",R=>"translate("+[R.x,R.y]+")rotate("+R.rotate+")").text(R=>R.text).on("click",m).on("mouseover",v).on("mouseout",b).on("mousemove",N)}async function I(){E=(await C()).on("end",T),E.start()}let M=!1,W=null;je(async()=>{let _=0;setTimeout(()=>{W=setInterval(()=>{s!==_&&(I(),_=s)},500)},100),setTimeout(()=>{I(),_=s,n(3,M=!0)},0)}),$e(()=>{clearTimeout(W)});function U(){n(5,r=window.innerWidth),n(1,s=window.outerWidth)}return t.$$set=_=>{"width"in _&&n(6,l=_.width),"words"in _&&n(7,u=_.words),"height"in _&&n(8,f=_.height),"font"in _&&n(9,g=_.font),"maxFontSize"in _&&n(10,p=_.maxFontSize),"minRotate"in _&&n(11,h=_.minRotate),"maxRotate"in _&&n(12,y=_.maxRotate),"scheme"in _&&n(13,k=_.scheme),"padding"in _&&n(14,x=_.padding),"backgroundColor"in _&&n(0,d=_.backgroundColor)},t.$$.update=()=>{t.$$.dirty&2&&n(2,i=s>1152?1e3:s>500?s-100:s-50),t.$$.dirty&4&&n(4,o=i<800?400:i<500?600:250)},n(1,s=0),n(5,r=0),[d,s,i,M,o,r,l,u,f,g,p,h,y,k,x,U]}class As extends me{constructor(e){super();_e(this,e,ks,Es,ye,{width:6,words:7,height:8,font:9,maxFontSize:10,minRotate:11,maxRotate:12,scheme:13,padding:14,backgroundColor:0})}}function et(t){return Array.isArray?Array.isArray(t):We(t)==="[object Array]"}const Ss=1/0;function Is(t){if(typeof t=="string")return t;let e=t+"";return e=="0"&&1/t==-Ss?"-0":e}function Cs(t){return t==null?"":Is(t)}function tt(t){return typeof t=="string"}function ze(t){return typeof t=="number"}function Rs(t){return t===!0||t===!1||Ns(t)&&We(t)=="[object Boolean]"}function Ve(t){return typeof t=="object"}function Ns(t){return Ve(t)&&t!==null}function Y(t){return t!=null}function Nt(t){return!t.trim().length}function We(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const Ls="Incorrect 'index' type",Ts=t=>`Invalid value for key ${t}`,Os=t=>`Pattern length exceeds max of ${t}.`,Ps=t=>`Missing ${t} property in key`,Fs=t=>`Property 'weight' in key '${t}' must be a positive integer`,ce=Object.prototype.hasOwnProperty;class Ds{constructor(e){this._keys=[],this._keyMap={};let n=0;e.forEach(s=>{let r=Be(s);n+=r.weight,this._keys.push(r),this._keyMap[r.id]=r,n+=r.weight}),this._keys.forEach(s=>{s.weight/=n})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function Be(t){let e=null,n=null,s=null,r=1;if(tt(t)||et(t))s=t,e=ae(t),n=Ot(t);else{if(!ce.call(t,"name"))throw new Error(Ps("name"));const i=t.name;if(s=i,ce.call(t,"weight")&&(r=t.weight,r<=0))throw new Error(Fs(i));e=ae(i),n=Ot(i)}return{path:e,id:n,weight:r,src:s}}function ae(t){return et(t)?t:t.split(".")}function Ot(t){return et(t)?t.join("."):t}function zs(t,e){let n=[],s=!1;const r=(i,o,c)=>{if(!!Y(i))if(!o[c])n.push(i);else{let a=o[c];const l=i[a];if(!Y(l))return;if(c===o.length-1&&(tt(l)||ze(l)||Rs(l)))n.push(Cs(l));else if(et(l)){s=!0;for(let u=0,f=l.length;u<f;u+=1)r(l[u],o,c+1)}else o.length&&r(l,o,c+1)}};return r(t,tt(e)?e.split("."):e,0),s?n:n[0]}const Vs={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},Ws={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,e)=>t.score===e.score?t.idx<e.idx?-1:1:t.score<e.score?-1:1},Bs={location:0,threshold:.6,distance:100},Hs={useExtendedSearch:!1,getFn:zs,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var w=ot(ot(ot(ot({},Ws),Vs),Bs),Hs);const Ks=/[^ ]+/g;function Us(t=1,e=3){const n=new Map,s=Math.pow(10,e);return{get(r){const i=r.match(Ks).length;if(n.has(i))return n.get(i);const o=1/Math.pow(i,.5*t),c=parseFloat(Math.round(o*s)/s);return n.set(i,c),c},clear(){n.clear()}}}class Bt{constructor({getFn:e=w.getFn,fieldNormWeight:n=w.fieldNormWeight}={}){this.norm=Us(n,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((n,s)=>{this._keysMap[n.id]=s})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,tt(this.docs[0])?this.docs.forEach((e,n)=>{this._addString(e,n)}):this.docs.forEach((e,n)=>{this._addObject(e,n)}),this.norm.clear())}add(e){const n=this.size();tt(e)?this._addString(e,n):this._addObject(e,n)}removeAt(e){this.records.splice(e,1);for(let n=e,s=this.size();n<s;n+=1)this.records[n].i-=1}getValueForItemAtKeyId(e,n){return e[this._keysMap[n]]}size(){return this.records.length}_addString(e,n){if(!Y(e)||Nt(e))return;let s={v:e,i:n,n:this.norm.get(e)};this.records.push(s)}_addObject(e,n){let s={i:n,$:{}};this.keys.forEach((r,i)=>{let o=this.getFn(e,r.path);if(!!Y(o)){if(et(o)){let c=[];const a=[{nestedArrIndex:-1,value:o}];for(;a.length;){const{nestedArrIndex:l,value:u}=a.pop();if(!!Y(u))if(tt(u)&&!Nt(u)){let f={v:u,i:l,n:this.norm.get(u)};c.push(f)}else et(u)&&u.forEach((f,g)=>{a.push({nestedArrIndex:g,value:f})})}s.$[i]=c}else if(!Nt(o)){let c={v:o,n:this.norm.get(o)};s.$[i]=c}}}),this.records.push(s)}toJSON(){return{keys:this.keys,records:this.records}}}function He(t,e,{getFn:n=w.getFn,fieldNormWeight:s=w.fieldNormWeight}={}){const r=new Bt({getFn:n,fieldNormWeight:s});return r.setKeys(t.map(Be)),r.setSources(e),r.create(),r}function Ys(t,{getFn:e=w.getFn,fieldNormWeight:n=w.fieldNormWeight}={}){const{keys:s,records:r}=t,i=new Bt({getFn:e,fieldNormWeight:n});return i.setKeys(s),i.setIndexRecords(r),i}function wt(t,{errors:e=0,currentLocation:n=0,expectedLocation:s=0,distance:r=w.distance,ignoreLocation:i=w.ignoreLocation}={}){const o=e/t.length;if(i)return o;const c=Math.abs(s-n);return r?o+c/r:c?1:o}function Xs(t=[],e=w.minMatchCharLength){let n=[],s=-1,r=-1,i=0;for(let o=t.length;i<o;i+=1){let c=t[i];c&&s===-1?s=i:!c&&s!==-1&&(r=i-1,r-s+1>=e&&n.push([s,r]),s=-1)}return t[i-1]&&i-s>=e&&n.push([s,i-1]),n}const at=32;function Gs(t,e,n,{location:s=w.location,distance:r=w.distance,threshold:i=w.threshold,findAllMatches:o=w.findAllMatches,minMatchCharLength:c=w.minMatchCharLength,includeMatches:a=w.includeMatches,ignoreLocation:l=w.ignoreLocation}={}){if(e.length>at)throw new Error(Os(at));const u=e.length,f=t.length,g=Math.max(0,Math.min(s,f));let p=i,h=g;const y=c>1||a,k=y?Array(f):[];let x;for(;(x=t.indexOf(e,h))>-1;){let E=wt(e,{currentLocation:x,expectedLocation:g,distance:r,ignoreLocation:l});if(p=Math.min(E,p),h=x+u,y){let C=0;for(;C<u;)k[x+C]=1,C+=1}}h=-1;let d=[],m=1,v=u+f;const b=1<<u-1;for(let E=0;E<u;E+=1){let C=0,T=v;for(;C<T;)wt(e,{errors:E,currentLocation:g+T,expectedLocation:g,distance:r,ignoreLocation:l})<=p?C=T:v=T,T=Math.floor((v-C)/2+C);v=T;let I=Math.max(1,g-T+1),M=o?f:Math.min(g+T,f)+u,W=Array(M+2);W[M+1]=(1<<E)-1;for(let _=M;_>=I;_-=1){let R=_-1,B=n[t.charAt(R)];if(y&&(k[R]=+!!B),W[_]=(W[_+1]<<1|1)&B,E&&(W[_]|=(d[_+1]|d[_])<<1|1|d[_+1]),W[_]&b&&(m=wt(e,{errors:E,currentLocation:R,expectedLocation:g,distance:r,ignoreLocation:l}),m<=p)){if(p=m,h=R,h<=g)break;I=Math.max(1,2*g-h)}}if(wt(e,{errors:E+1,currentLocation:g,expectedLocation:g,distance:r,ignoreLocation:l})>p)break;d=W}const N={isMatch:h>=0,score:Math.max(.001,m)};if(y){const E=Xs(k,c);E.length?a&&(N.indices=E):N.isMatch=!1}return N}function qs(t){let e={};for(let n=0,s=t.length;n<s;n+=1){const r=t.charAt(n);e[r]=(e[r]||0)|1<<s-n-1}return e}class Ke{constructor(e,{location:n=w.location,threshold:s=w.threshold,distance:r=w.distance,includeMatches:i=w.includeMatches,findAllMatches:o=w.findAllMatches,minMatchCharLength:c=w.minMatchCharLength,isCaseSensitive:a=w.isCaseSensitive,ignoreLocation:l=w.ignoreLocation}={}){if(this.options={location:n,threshold:s,distance:r,includeMatches:i,findAllMatches:o,minMatchCharLength:c,isCaseSensitive:a,ignoreLocation:l},this.pattern=a?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;const u=(g,p)=>{this.chunks.push({pattern:g,alphabet:qs(g),startIndex:p})},f=this.pattern.length;if(f>at){let g=0;const p=f%at,h=f-p;for(;g<h;)u(this.pattern.substr(g,at),g),g+=at;if(p){const y=f-at;u(this.pattern.substr(y),y)}}else u(this.pattern,0)}searchIn(e){const{isCaseSensitive:n,includeMatches:s}=this.options;if(n||(e=e.toLowerCase()),this.pattern===e){let h={isMatch:!0,score:0};return s&&(h.indices=[[0,e.length-1]]),h}const{location:r,distance:i,threshold:o,findAllMatches:c,minMatchCharLength:a,ignoreLocation:l}=this.options;let u=[],f=0,g=!1;this.chunks.forEach(({pattern:h,alphabet:y,startIndex:k})=>{const{isMatch:x,score:d,indices:m}=Gs(e,h,y,{location:r+k,distance:i,threshold:o,findAllMatches:c,minMatchCharLength:a,includeMatches:s,ignoreLocation:l});x&&(g=!0),f+=d,x&&m&&(u=[...u,...m])});let p={isMatch:g,score:g?f/this.chunks.length:1};return g&&s&&(p.indices=u),p}}class st{constructor(e){this.pattern=e}static isMultiMatch(e){return le(e,this.multiRegex)}static isSingleMatch(e){return le(e,this.singleRegex)}search(){}}function le(t,e){const n=t.match(e);return n?n[1]:null}class Js extends st{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const n=e===this.pattern;return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class Qs extends st{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const s=e.indexOf(this.pattern)===-1;return{isMatch:s,score:s?0:1,indices:[0,e.length-1]}}}class Zs extends st{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const n=e.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class js extends st{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const n=!e.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}}class $s extends st{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const n=e.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}class ti extends st{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const n=!e.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}}class Ue extends st{constructor(e,{location:n=w.location,threshold:s=w.threshold,distance:r=w.distance,includeMatches:i=w.includeMatches,findAllMatches:o=w.findAllMatches,minMatchCharLength:c=w.minMatchCharLength,isCaseSensitive:a=w.isCaseSensitive,ignoreLocation:l=w.ignoreLocation}={}){super(e);this._bitapSearch=new Ke(e,{location:n,threshold:s,distance:r,includeMatches:i,findAllMatches:o,minMatchCharLength:c,isCaseSensitive:a,ignoreLocation:l})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class Ye extends st{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let n=0,s;const r=[],i=this.pattern.length;for(;(s=e.indexOf(this.pattern,n))>-1;)n=s+i,r.push([s,n-1]);const o=!!r.length;return{isMatch:o,score:o?0:1,indices:r}}}const Pt=[Js,Ye,Zs,js,ti,$s,Qs,Ue],ue=Pt.length,ei=/ +(?=([^\"]*\"[^\"]*\")*[^\"]*$)/,ni="|";function ri(t,e={}){return t.split(ni).map(n=>{let s=n.trim().split(ei).filter(i=>i&&!!i.trim()),r=[];for(let i=0,o=s.length;i<o;i+=1){const c=s[i];let a=!1,l=-1;for(;!a&&++l<ue;){const u=Pt[l];let f=u.isMultiMatch(c);f&&(r.push(new u(f,e)),a=!0)}if(!a)for(l=-1;++l<ue;){const u=Pt[l];let f=u.isSingleMatch(c);if(f){r.push(new u(f,e));break}}}return r})}const si=new Set([Ue.type,Ye.type]);class ii{constructor(e,{isCaseSensitive:n=w.isCaseSensitive,includeMatches:s=w.includeMatches,minMatchCharLength:r=w.minMatchCharLength,ignoreLocation:i=w.ignoreLocation,findAllMatches:o=w.findAllMatches,location:c=w.location,threshold:a=w.threshold,distance:l=w.distance}={}){this.query=null,this.options={isCaseSensitive:n,includeMatches:s,minMatchCharLength:r,findAllMatches:o,ignoreLocation:i,location:c,threshold:a,distance:l},this.pattern=n?e:e.toLowerCase(),this.query=ri(this.pattern,this.options)}static condition(e,n){return n.useExtendedSearch}searchIn(e){const n=this.query;if(!n)return{isMatch:!1,score:1};const{includeMatches:s,isCaseSensitive:r}=this.options;e=r?e:e.toLowerCase();let i=0,o=[],c=0;for(let a=0,l=n.length;a<l;a+=1){const u=n[a];o.length=0,i=0;for(let f=0,g=u.length;f<g;f+=1){const p=u[f],{isMatch:h,indices:y,score:k}=p.search(e);if(h){if(i+=1,c+=k,s){const x=p.constructor.type;si.has(x)?o=[...o,...y]:o.push(y)}}else{c=0,i=0,o.length=0;break}}if(i){let f={isMatch:!0,score:c/i};return s&&(f.indices=o),f}}return{isMatch:!1,score:1}}}const Ft=[];function oi(...t){Ft.push(...t)}function Dt(t,e){for(let n=0,s=Ft.length;n<s;n+=1){let r=Ft[n];if(r.condition(t,e))return new r(t,e)}return new Ke(t,e)}const St={AND:"$and",OR:"$or"},zt={PATH:"$path",PATTERN:"$val"},Vt=t=>!!(t[St.AND]||t[St.OR]),ci=t=>!!t[zt.PATH],ai=t=>!et(t)&&Ve(t)&&!Vt(t),he=t=>({[St.AND]:Object.keys(t).map(e=>({[e]:t[e]}))});function Xe(t,e,{auto:n=!0}={}){const s=r=>{let i=Object.keys(r);const o=ci(r);if(!o&&i.length>1&&!Vt(r))return s(he(r));if(ai(r)){const a=o?r[zt.PATH]:i[0],l=o?r[zt.PATTERN]:r[a];if(!tt(l))throw new Error(Ts(a));const u={keyId:Ot(a),pattern:l};return n&&(u.searcher=Dt(l,e)),u}let c={children:[],operator:i[0]};return i.forEach(a=>{const l=r[a];et(l)&&l.forEach(u=>{c.children.push(s(u))})}),c};return Vt(t)||(t=he(t)),s(t)}function li(t,{ignoreFieldNorm:e=w.ignoreFieldNorm}){t.forEach(n=>{let s=1;n.matches.forEach(({key:r,norm:i,score:o})=>{const c=r?r.weight:null;s*=Math.pow(o===0&&c?Number.EPSILON:o,(c||1)*(e?1:i))}),n.score=s})}function ui(t,e){const n=t.matches;e.matches=[],Y(n)&&n.forEach(s=>{if(!Y(s.indices)||!s.indices.length)return;const{indices:r,value:i}=s;let o={indices:r,value:i};s.key&&(o.key=s.key.src),s.idx>-1&&(o.refIndex=s.idx),e.matches.push(o)})}function hi(t,e){e.score=t.score}function fi(t,e,{includeMatches:n=w.includeMatches,includeScore:s=w.includeScore}={}){const r=[];return n&&r.push(ui),s&&r.push(hi),t.map(i=>{const{idx:o}=i,c={item:e[o],refIndex:o};return r.length&&r.forEach(a=>{a(i,c)}),c})}class dt{constructor(e,n={},s){this.options=ot(ot({},w),n),this.options.useExtendedSearch,this._keyStore=new Ds(this.options.keys),this.setCollection(e,s)}setCollection(e,n){if(this._docs=e,n&&!(n instanceof Bt))throw new Error(Ls);this._myIndex=n||He(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){!Y(e)||(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){const n=[];for(let s=0,r=this._docs.length;s<r;s+=1){const i=this._docs[s];e(i,s)&&(this.removeAt(s),s-=1,r-=1,n.push(i))}return n}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:n=-1}={}){const{includeMatches:s,includeScore:r,shouldSort:i,sortFn:o,ignoreFieldNorm:c}=this.options;let a=tt(e)?tt(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return li(a,{ignoreFieldNorm:c}),i&&a.sort(o),ze(n)&&n>-1&&(a=a.slice(0,n)),fi(a,this._docs,{includeMatches:s,includeScore:r})}_searchStringList(e){const n=Dt(e,this.options),{records:s}=this._myIndex,r=[];return s.forEach(({v:i,i:o,n:c})=>{if(!Y(i))return;const{isMatch:a,score:l,indices:u}=n.searchIn(i);a&&r.push({item:i,idx:o,matches:[{score:l,value:i,norm:c,indices:u}]})}),r}_searchLogical(e){const n=Xe(e,this.options),s=(c,a,l)=>{if(!c.children){const{keyId:f,searcher:g}=c,p=this._findMatches({key:this._keyStore.get(f),value:this._myIndex.getValueForItemAtKeyId(a,f),searcher:g});return p&&p.length?[{idx:l,item:a,matches:p}]:[]}const u=[];for(let f=0,g=c.children.length;f<g;f+=1){const p=c.children[f],h=s(p,a,l);if(h.length)u.push(...h);else if(c.operator===St.AND)return[]}return u},r=this._myIndex.records,i={},o=[];return r.forEach(({$:c,i:a})=>{if(Y(c)){let l=s(n,c,a);l.length&&(i[a]||(i[a]={idx:a,item:c,matches:[]},o.push(i[a])),l.forEach(({matches:u})=>{i[a].matches.push(...u)}))}}),o}_searchObjectList(e){const n=Dt(e,this.options),{keys:s,records:r}=this._myIndex,i=[];return r.forEach(({$:o,i:c})=>{if(!Y(o))return;let a=[];s.forEach((l,u)=>{a.push(...this._findMatches({key:l,value:o[u],searcher:n}))}),a.length&&i.push({idx:c,item:o,matches:a})}),i}_findMatches({key:e,value:n,searcher:s}){if(!Y(n))return[];let r=[];if(et(n))n.forEach(({v:i,i:o,n:c})=>{if(!Y(i))return;const{isMatch:a,score:l,indices:u}=s.searchIn(i);a&&r.push({score:l,key:e,value:i,idx:o,norm:c,indices:u})});else{const{v:i,n:o}=n,{isMatch:c,score:a,indices:l}=s.searchIn(i);c&&r.push({score:a,key:e,value:i,norm:o,indices:l})}return r}}dt.version="6.5.3";dt.createIndex=He;dt.parseIndex=Ys;dt.config=w;dt.parseQuery=Xe;oi(ii);function fe(t,e,n){const s=t.slice();return s[17]=e[n],s}function de(t,e,n){const s=t.slice();return s[20]=e[n],s}function di(t){let e,n,s;return n=new As({props:{words:t[4]}}),n.$on("click",t[5]),{c(){e=F("div"),ve(n.$$.fragment),this.h()},l(r){e=D(r,"DIV",{class:!0});var i=z(e);xe(n.$$.fragment,i),i.forEach(L),this.h()},h(){P(e,"class","mt-6 lg:mt-10 flex sm:justify-center overflow-auto")},m(r,i){ft(r,e,i),we(n,e,null),s=!0},p(r,i){const o={};i&16&&(o.words=r[4]),n.$set(o)},i(r){s||(ct(n.$$.fragment,r),s=!0)},o(r){ht(n.$$.fragment,r),s=!1},d(r){r&&L(e),be(n)}}}function gi(t){let e,n,s,r,i,o,c,a,l,u,f,g,p=t[0],h=[];for(let y=0;y<p.length;y+=1)h[y]=ge(de(t,p,y));return{c(){e=F("div"),n=F("div"),s=q("Filtry:"),r=j(),i=F("div");for(let y=0;y<h.length;y+=1)h[y].c();o=j(),c=F("div"),a=F("a"),l=F("i"),u=q(" Zru\u0161it filtr"),this.h()},l(y){e=D(y,"DIV",{class:!0});var k=z(e);n=D(k,"DIV",{class:!0});var x=z(n);s=J(x,"Filtry:"),x.forEach(L),r=$(k),i=D(k,"DIV",{class:!0});var d=z(i);for(let b=0;b<h.length;b+=1)h[b].l(d);d.forEach(L),o=$(k),c=D(k,"DIV",{class:!0});var m=z(c);a=D(m,"A",{href:!0});var v=z(a);l=D(v,"I",{class:!0}),z(l).forEach(L),u=J(v," Zru\u0161it filtr"),v.forEach(L),m.forEach(L),k.forEach(L),this.h()},h(){P(n,"class","my-auto"),P(i,"class","text-sm my-auto flex gap-1"),P(l,"class","fa-solid fa-xmark text-red-500 mr-1"),P(a,"href",""),P(c,"class","ml-3 my-auto"),P(e,"class","mt-6 flex flex-wrap gap-3")},m(y,k){ft(y,e,k),S(e,n),S(n,s),S(e,r),S(e,i);for(let x=0;x<h.length;x+=1)h[x].m(i,null);S(e,o),S(e,c),S(c,a),S(a,l),S(a,u),f||(g=Et(a,"click",t[7]),f=!0)},p(y,k){if(k&1){p=y[0];let x;for(x=0;x<p.length;x+=1){const d=de(y,p,x);h[x]?h[x].p(d,k):(h[x]=ge(d),h[x].c(),h[x].m(i,null))}for(;x<h.length;x+=1)h[x].d(1);h.length=p.length}},i:kt,o:kt,d(y){y&&L(e),Me(h,y),f=!1,g()}}}function ge(t){let e,n=t[20].title+"",s;return{c(){e=F("div"),s=q(n),this.h()},l(r){e=D(r,"DIV",{class:!0});var i=z(e);s=J(i,n),i.forEach(L),this.h()},h(){P(e,"class","py-1 px-2 rounded bg-blue-web/60 text-white")},m(r,i){ft(r,e,i),S(e,s)},p(r,i){i&1&&n!==(n=r[20].title+"")&&Lt(s,n)},d(r){r&&L(e)}}}function pe(t){let e,n;function s(...r){return t[10](t[17],...r)}return e=new nn({props:{event:t[1].spec.events.find(s)}}),{c(){ve(e.$$.fragment)},l(r){xe(e.$$.fragment,r)},m(r,i){we(e,r,i),n=!0},p(r,i){t=r;const o={};i&10&&(o.event=t[1].spec.events.find(s)),e.$set(o)},i(r){n||(ct(e.$$.fragment,r),n=!0)},o(r){ht(e.$$.fragment,r),n=!1},d(r){be(e,r)}}}function pi(t){let e,n,s,r,i,o,c,a,l,u,f,g,p,h,y,k,x=t[3].length+"",d,m,v=t[1].spec.events.length+"",b,N,E,C,T,I,M,W,U,_,R,B,nt,gt;const yt=[gi,di],Q=[];function pt(A,V){return A[0].length>0?0:1}u=pt(t),f=Q[u]=yt[u](t);let G=t[3],O=[];for(let A=0;A<G.length;A+=1)O[A]=pe(fe(t,G,A));const it=A=>ht(O[A],1,1,()=>{O[A]=null});return{c(){e=j(),n=F("section"),s=F("h1"),r=q("Program"),i=j(),o=F("div"),c=F("p"),a=q(`Program st\xE1le p\u0159ipravujeme, aktu\xE1ln\u011B je zde vyps\xE1na jenom \u010D\xE1st obsahu.
\u010Casov\xFD rozpis bude zve\u0159ejn\u011Bn cca 2 t\xFDdny p\u0159ed konferenc\xED.`),l=j(),f.c(),g=j(),p=F("div"),h=F("div"),y=F("h1"),k=q("Seznam ud\xE1lost\xED ("),d=q(x),m=q("/"),b=q(v),N=q(")"),E=j(),C=F("div"),T=F("div"),I=q("Hledat:"),M=j(),W=F("div"),U=F("input"),_=j(),R=F("div");for(let A=0;A<O.length;A+=1)O[A].c();this.h()},l(A){tn('[data-svelte="svelte-124umcn"]',document.head).forEach(L),e=$(A),n=D(A,"SECTION",{class:!0});var H=z(n);s=D(H,"H1",{class:!0});var K=z(s);r=J(K,"Program"),K.forEach(L),i=$(H),o=D(H,"DIV",{class:!0});var mt=z(o);c=D(mt,"P",{});var Ht=z(c);a=J(Ht,`Program st\xE1le p\u0159ipravujeme, aktu\xE1ln\u011B je zde vyps\xE1na jenom \u010D\xE1st obsahu.
\u010Casov\xFD rozpis bude zve\u0159ejn\u011Bn cca 2 t\xFDdny p\u0159ed konferenc\xED.`),Ht.forEach(L),mt.forEach(L),l=$(H),f.l(H),g=$(H),p=D(H,"DIV",{class:!0});var vt=z(p);h=D(vt,"DIV",{class:!0});var Kt=z(h);y=D(Kt,"H1",{class:!0});var lt=z(y);k=J(lt,"Seznam ud\xE1lost\xED ("),d=J(lt,x),m=J(lt,"/"),b=J(lt,v),N=J(lt,")"),lt.forEach(L),Kt.forEach(L),E=$(vt),C=D(vt,"DIV",{class:!0});var xt=z(C);T=D(xt,"DIV",{class:!0});var Ut=z(T);I=J(Ut,"Hledat:"),Ut.forEach(L),M=$(xt),W=D(xt,"DIV",{});var Yt=z(W);U=D(Yt,"INPUT",{type:!0,class:!0}),Yt.forEach(L),xt.forEach(L),vt.forEach(L),_=$(H),R=D(H,"DIV",{class:!0});var Xt=z(R);for(let It=0;It<O.length;It+=1)O[It].l(Xt);Xt.forEach(L),H.forEach(L),this.h()},h(){document.title="Program | UTXO.22",P(s,"class","uppercase text-2xl font-bold"),P(o,"class","mt-2 text-sm"),P(y,"class","uppercase text-lg font-semibold"),P(h,"class","my-auto flex-1"),P(T,"class","my-auto"),P(U,"type","text"),P(U,"class","border rounded border-blue-web/30 px-1.5 py-1"),P(C,"class","my-auto flex gap-2 mt-2 sm:mt-0"),P(p,"class","mt-6 sm:flex"),P(R,"class","mt-4"),P(n,"class","relative mx-auto py-6 sm:py-10 px-6 max-w-6xl text-blue-web")},m(A,V){ft(A,e,V),ft(A,n,V),S(n,s),S(s,r),S(n,i),S(n,o),S(o,c),S(c,a),S(n,l),Q[u].m(n,null),S(n,g),S(n,p),S(p,h),S(h,y),S(y,k),S(y,d),S(y,m),S(y,b),S(y,N),S(p,E),S(p,C),S(C,T),S(T,I),S(C,M),S(C,W),S(W,U),Jt(U,t[2]),S(n,_),S(n,R);for(let H=0;H<O.length;H+=1)O[H].m(R,null);B=!0,nt||(gt=[Et(U,"input",t[9]),Et(U,"input",t[6])],nt=!0)},p(A,[V]){let H=u;if(u=pt(A),u===H?Q[u].p(A,V):(jt(),ht(Q[H],1,1,()=>{Q[H]=null}),Qt(),f=Q[u],f?f.p(A,V):(f=Q[u]=yt[u](A),f.c()),ct(f,1),f.m(n,g)),(!B||V&8)&&x!==(x=A[3].length+"")&&Lt(d,x),(!B||V&2)&&v!==(v=A[1].spec.events.length+"")&&Lt(b,v),V&4&&U.value!==A[2]&&Jt(U,A[2]),V&10){G=A[3];let K;for(K=0;K<G.length;K+=1){const mt=fe(A,G,K);O[K]?(O[K].p(mt,V),ct(O[K],1)):(O[K]=pe(mt),O[K].c(),ct(O[K],1),O[K].m(R,null))}for(jt(),K=G.length;K<O.length;K+=1)it(K);Qt()}},i(A){if(!B){ct(f);for(let V=0;V<G.length;V+=1)ct(O[V]);B=!0}},o(A){ht(f),O=O.filter(Boolean);for(let V=0;V<O.length;V+=1)ht(O[V]);B=!1},d(A){A&&L(e),A&&L(n),Q[u].d(),Me(O,A),nt=!1,en(gt)}}}const Ii=!0;function mi(t){let e={};t.spec.events.forEach(r=>{!r.tags||r.tags.forEach(i=>{e[i]||(e[i]={text:i,count:0}),e[i].count+=1})});let n=Object.keys(e).map(r=>e[r]);const s=n.reduce((r,i)=>i.count>r?i.count:r,0);return n=n.map(r=>(r.count=Math.round(r.count/(s/40)),r)),n}function _i(t,e,n){let s,r,i,o,c;Zt(t,te,d=>n(1,o=d)),Zt(t,$t,d=>n(8,c=d));let a=null,l="";function u(d){return d?d.spec.events.reduce((m,v)=>m+(rn(v,d)||0),0):null}function f(d){const m=d.detail.path[0].innerHTML;return m&&Ct(`/program?tag=${m}`),!0}function g(d,m){const v=d.url.searchParams;let b=[];if(v.get("tag")&&b.push({type:"tag",title:`Tag: #${v.get("tag")}`,key:v.get("tag")}),v.get("track")){const N=m.spec.tracks.find(E=>E.id===v.get("track"));if(!N)return Ct("/program");b.push({type:"track",title:`Sekce: ${N.name}`,key:N.id})}return l&&b.push({type:"text",title:`Text: "${l}"`,key:l}),b}function p(d,m,v){if(!m||!v)return[];let b=v.spec.events;for(const N of d)if(N.type==="tag"&&(b=b.filter(E=>E.tags&&E.tags.includes(N.key))),N.type==="track"&&(b=b.filter(E=>E.track===N.key)),N.type==="text"){const E=a.search(N.key);console.log(E),E.length>0&&(b=E.map(C=>b.find(T=>T.id===C.item.id)))}return n(3,i=b.map(N=>N.id)),b}te.subscribe(d=>{a=new dt(d.spec.events,{includeScore:!0,minMatchCharLength:3,threshold:.4,keys:[{name:"name",weight:10},{name:"description",weight:7},{name:"speakers",weight:5},{name:"speakersInfo.nickname",weight:5},{name:"track",weight:2},{name:"tags",weight:2},{name:"speakersInfo.bio",weight:1},{name:"speakersInfo.orgs",weight:1},{name:"speakersInfo.description",weight:1}]})}),$t.subscribe(()=>{n(2,l="")});function h(){n(0,r=g(c,o))}function y(){n(2,l=""),n(0,r=g(c,o)),Ct("/program")}function k(){l=this.value,n(2,l)}const x=(d,m)=>m.id===d;return t.$$.update=()=>{t.$$.dirty&2&&n(4,s=mi(o)),t.$$.dirty&2&&u(o),t.$$.dirty&258&&n(0,r=g(c,o)),t.$$.dirty&259&&p(r,c,o)},n(3,i=[]),[r,o,l,i,s,f,h,y,c,k,x]}class Ci extends me{constructor(e){super();_e(this,e,_i,pi,ye,{})}}export{Ci as default,Ii as prerender};