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