import{S as wt,i as xt,s as bt,a0 as Ht,e as O,c as L,a as q,d as P,b as D,f as V,g as nt,F as z,J as Ut,E as lt,Z as Jt,v as Xt,O as Kt,w as At,x as St,y as kt,q as J,o as K,B as Ct,k as H,t as $,R as Yt,m as U,h as tt,p as Zt,G as Qt,H as Gt,n as jt}from"../chunks/index-6191a390.js";import{a as $t,c as te}from"../chunks/Event-02d76521.js";import{b as ee}from"../chunks/stores-9e69a8a9.js";import{g as ne}from"../chunks/_commonjsHelpers-c771f69b.js";import"../chunks/Avatar-a90bc8ec.js";import"../chunks/Link-79f22491.js";import"../chunks/index-7ffe3f10.js";var re={value:function(){}};function Mt(){for(var t=0,e=arguments.length,n={},r;t=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}Y.prototype=Mt.prototype={constructor:Y,on:function(t,e){var n=this._,r=ie(t+"",n),i,o=-1,s=r.length;if(arguments.length<2){for(;++o0)for(var n=new Array(i),r=0,i,o;r>5,Z=1<<11,le=function(){var t=[256,256],e=ue,n=fe,r=he,i=ft,o=ft,s=me,a=de,c=Et,f=[],u=1/0,d=ce("word","end"),p=null,b=Math.random,h={},k=xe;h.canvas=function(l){return arguments.length?(k=F(l),h):k},h.start=function(){var l=M(k()),y=we((t[0]>>5)*t[1]),m=null,g=f.length,w=-1,A=[],S=f.map(function(x,v){return x.text=e.call(this,x,v),x.font=n.call(this,x,v),x.style=i.call(this,x,v),x.weight=o.call(this,x,v),x.rotate=s.call(this,x,v),x.size=~~r.call(this,x,v),x.padding=a.call(this,x,v),x}).sort(function(x,v){return v.size-x.size});return p&&clearInterval(p),p=setInterval(N,0),N(),h;function N(){for(var x=Date.now();Date.now()-x>1,v.y=t[1]*(b()+.5)>>1,ye(l,v,S,w),v.hasText&&C(y,v,m)&&(A.push(v),d.call("word",h,v),m?pe(m,v):m=[{x:v.x+v.x0,y:v.y+v.y0},{x:v.x+v.x1,y:v.y+v.y1}],v.x-=t[0]>>1,v.y-=t[1]>>1)}w>=g&&(h.stop(),d.call("end",h,A,m))}},h.stop=function(){return p&&(clearInterval(p),p=null),h};function M(l){l.width=l.height=1;var y=Math.sqrt(l.getContext("2d").getImageData(0,0,1,1).data.length>>2);l.width=(X<<5)/y,l.height=Z/y;var m=l.getContext("2d");return m.fillStyle=m.strokeStyle="red",m.textAlign="center",{context:m,ratio:y}}function C(l,y,m){t[0],t[1];for(var g=y.x,w=y.y,A=Math.sqrt(t[0]*t[0]+t[1]*t[1]),S=c(t),N=b()<.5?1:-1,x=-N,v,R,W;(v=S(x+=N))&&(R=~~v[0],W=~~v[1],!(Math.min(Math.abs(R),Math.abs(W))>=A));)if(y.x=g+R,y.y=w+W,!(y.x+y.x0<0||y.y+y.y0<0||y.x+y.x1>t[0]||y.y+y.y1>t[1])&&(!m||!_e(y,l,t[0]))&&(!m||ve(y,m))){for(var _=y.sprite,E=y.width>>5,ot=t[0]>>5,st=y.x-(E<<4),at=st&127,Wt=32-at,Bt=y.y1-y.y0,ct=(y.y+y.y0)*ot+(st>>5),G,j=0;j>>at:0);ct+=ot}return delete y.sprite,!0}return!1}return h.timeInterval=function(l){return arguments.length?(u=l==null?1/0:l,h):u},h.words=function(l){return arguments.length?(f=l,h):f},h.size=function(l){return arguments.length?(t=[+l[0],+l[1]],h):t},h.font=function(l){return arguments.length?(n=F(l),h):n},h.fontStyle=function(l){return arguments.length?(i=F(l),h):i},h.fontWeight=function(l){return arguments.length?(o=F(l),h):o},h.rotate=function(l){return arguments.length?(s=F(l),h):s},h.text=function(l){return arguments.length?(e=F(l),h):e},h.spiral=function(l){return arguments.length?(c=be[l]||l,h):c},h.fontSize=function(l){return arguments.length?(r=F(l),h):r},h.padding=function(l){return arguments.length?(a=F(l),h):a},h.random=function(l){return arguments.length?(b=l,h):b},h.on=function(){var l=d.on.apply(d,arguments);return l===d?h:l},h};function ue(t){return t.text}function fe(){return"serif"}function ft(){return"normal"}function he(t){return Math.sqrt(t.value)}function me(){return(~~(Math.random()*6)-3)*30}function de(){return 1}function ye(t,e,n,r){if(!e.sprite){var i=t.context,o=t.ratio;i.clearRect(0,0,(X<<5)/o,Z/o);var s=0,a=0,c=0,f=n.length;for(--r;++r>5<<5,d=~~Math.max(Math.abs(k+M),Math.abs(k-M))}else u=u+31>>5<<5;if(d>c&&(c=d),s+u>=X<<5&&(s=0,a+=c,c=0),a+d>=Z)break;i.translate((s+(u>>1))/o,(a+(d>>1))/o),e.rotate&&i.rotate(e.rotate*et),i.fillText(e.text,0,0),e.padding&&(i.lineWidth=2*e.padding,i.strokeText(e.text,0,0)),i.restore(),e.width=u,e.height=d,e.xoff=s,e.yoff=a,e.x1=u>>1,e.y1=d>>1,e.x0=-e.x1,e.y0=-e.y1,e.hasText=!0,s+=u}for(var l=i.getImageData(0,0,(X<<5)/o,Z/o).data,y=[];--r>=0;)if(e=n[r],!!e.hasText){for(var u=e.width,m=u>>5,d=e.y1-e.y0,g=0;g>5),x=l[(a+S)*(X<<5)+(s+g)<<2]?1<<31-g%32:0;y[N]|=x,w|=x}w?A=S:(e.y0++,d--,S--,a++)}e.y1=e.y0+A,e.sprite=y.slice(0,(e.y1-e.y0)*m)}}}function _e(t,e,n){n>>=5;for(var r=t.sprite,i=t.width>>5,o=t.x-(i<<4),s=o&127,a=32-s,c=t.y1-t.y0,f=(t.y+t.y0)*n+(o>>5),u,d=0;d>>s:0))&e[f+p])return!0;f+=n}return!1}function pe(t,e){var n=t[0],r=t[1];e.x+e.x0r.x&&(r.x=e.x+e.x1),e.y+e.y1>r.y&&(r.y=e.y+e.y1)}function ve(t,e){return t.x+t.x1>e[0].x&&t.x+t.x0e[0].y&&t.y+t.y0=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),ht.hasOwnProperty(e)?{space:ht[e],local:t}:t}function Ae(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===rt&&e.documentElement.namespaceURI===rt?e.createElement(t):e.createElementNS(n,t)}}function Se(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Nt(t){var e=zt(t);return(e.local?Se:Ae)(e)}function ke(){}function Pt(t){return t==null?ke:function(){return this.querySelector(t)}}function Ce(t){typeof t!="function"&&(t=Pt(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i=y&&(y=l+1);!(g=M[y])&&++y=0;)(s=r[i])&&(o&&s.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(s,o),o=s);return this}function $e(t){t||(t=tn);function e(d,p){return d&&p?t(d.__data__,p.__data__):!d-!p}for(var n=this._groups,r=n.length,i=new Array(r),o=0;oe?1:t>=e?0:NaN}function en(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function nn(){return Array.from(this)}function rn(){for(var t=this._groups,e=0,n=t.length;e1?this.each((e==null?yn:typeof e=="function"?pn:_n)(t,e,n==null?"":n)):gn(this.node(),t)}function gn(t,e){return t.style.getPropertyValue(e)||Rt(t).getComputedStyle(t,null).getPropertyValue(e)}function wn(t){return function(){delete this[t]}}function xn(t,e){return function(){this[t]=e}}function bn(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function An(t,e){return arguments.length>1?this.each((e==null?wn:typeof e=="function"?bn:xn)(t,e)):this.node()[t]}function It(t){return t.trim().split(/^|\s+/)}function it(t){return t.classList||new Ft(t)}function Ft(t){this._node=t,this._names=It(t.getAttribute("class")||"")}Ft.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 Ot(t,e){for(var n=it(t),r=-1,i=e.length;++r=0&&(n=e.slice(r+1),e=e.slice(0,r)),{type:e,name:n}})}function Gn(t){return function(){var e=this.__on;if(!!e){for(var n=0,r=-1,i=e.length,o;n_.counta("click",_),m=_=>a("mouseover",_),g=_=>a("mouseout",_),w=_=>a("mousemove",_);function A(){return le().size([o,s]).words(u).padding(C).rotate(()=>~~(Math.random()*k)+h).font(p).fontSize(_=>_.count+15)}let S=null;function N(_){mt("#wordcloud").selectAll("*").remove(),mt("#wordcloud").append("svg").attr("width",S.size()[0]).attr("height",S.size()[1]).append("g").attr("transform","translate("+S.size()[0]/2+","+S.size()[1]/2+")").selectAll("text").data(_).enter().append("text").style("font-size",E=>E.size+"px").style("font-family",p).style("fill","#393F67").attr("text-anchor","middle").attr("transform",E=>"translate("+[E.x,E.y]+")rotate("+E.rotate+")").text(E=>E.text).on("click",y).on("mouseover",m).on("mouseout",g).on("mousemove",w)}function x(){S=A().on("end",N),S.start()}let v=!1,R=null;Xt(async()=>{let _=0;setTimeout(()=>{R=setInterval(()=>{r!==_&&(x(),_=r)},100)},0),setTimeout(()=>{n(3,v=!0)},200)}),Kt(()=>{clearTimeout(R)});function W(){n(5,i=window.innerWidth),n(1,r=window.outerWidth)}return t.$$set=_=>{"width"in _&&n(6,f=_.width),"words"in _&&n(7,u=_.words),"height"in _&&n(8,d=_.height),"font"in _&&n(9,p=_.font),"maxFontSize"in _&&n(10,b=_.maxFontSize),"minRotate"in _&&n(11,h=_.minRotate),"maxRotate"in _&&n(12,k=_.maxRotate),"scheme"in _&&n(13,M=_.scheme),"padding"in _&&n(14,C=_.padding),"backgroundColor"in _&&n(0,l=_.backgroundColor)},t.$$.update=()=>{t.$$.dirty&2&&n(2,o=r>1152?1e3:r>500?r-100:r-50),t.$$.dirty&4&&n(4,s=o<800?400:o<500?600:250)},n(1,r=0),n(5,i=0),[l,r,o,v,s,i,f,u,d,p,b,h,k,M,C,W]}class br extends wt{constructor(e){super();xt(this,e,xr,wr,bt,{width:6,words:7,height:8,font:9,maxFontSize:10,minRotate:11,maxRotate:12,scheme:13,padding:14,backgroundColor:0})}}function pt(t,e,n){const r=t.slice();return r[4]=e[n],r}function vt(t){let e,n;return e=new $t({props:{event:t[4]}}),{c(){At(e.$$.fragment)},l(r){St(e.$$.fragment,r)},m(r,i){kt(e,r,i),n=!0},p(r,i){const o={};i&1&&(o.event=r[4]),e.$set(o)},i(r){n||(J(e.$$.fragment,r),n=!0)},o(r){K(e.$$.fragment,r),n=!1},d(r){Ct(e,r)}}}function Ar(t){let e,n,r,i,o,s,a,c,f,u,d,p,b,h,k,M;u=new br({props:{words:t[1]}}),u.$on("click",kr);let C=t[0].spec.events.filter(gt),l=[];for(let m=0;mK(l[m],1,1,()=>{l[m]=null});return{c(){e=H(),n=O("section"),r=O("h1"),i=$("Program"),o=H(),s=O("div"),a=$(`Program st\xE1le p\u0159ipravujeme. Jeho kone\u010Dn\xE1 podoba bude zve\u0159ejn\u011Bna p\xE1r t\xFDdn\u016F p\u0159ed konferenc\xED.`),c=H(),f=O("div"),At(u.$$.fragment),d=H(),p=O("h1"),b=$("Seznam ud\xE1lost\xED"),h=H(),k=O("div");for(let m=0;m{!i.tags||i.tags.forEach(o=>{e[o]||(e[o]={text:o,count:0}),e[o].count+=1})});let n=Object.keys(e).map(i=>e[i]);const r=n.reduce((i,o)=>o.count>i?o.count:i,0);return n=n.map(i=>(i.count=Math.round(i.count/(r/40)),i)),n}function kr(t){console.log(t.detail.path[0].innerHTML)}const gt=t=>!t.parent;function Cr(t,e,n){let r,i;Gt(t,ee,s=>n(0,i=s));function o(s){return s?s.spec.events.reduce((a,c)=>a+(te(c,s)||0),0):null}return t.$$.update=()=>{t.$$.dirty&1&&n(1,r=Sr(i)),t.$$.dirty&1&&o(i)},[i,r]}class Ir extends wt{constructor(e){super();xt(this,e,Cr,Ar,bt,{})}}export{Ir as default,Rr as prerender};