utxo22-web/_app/pages/seznam-udalosti.svelte-47e1...

4 řádky
48 KiB
JavaScript

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