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 E,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 U,o as K,B as Ct,k as B,t as $,R as Yt,m as H,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,l=Et,f=[],u=1/0,d=ce("word","end"),p=null,b=Math.random,h={},k=xe;h.canvas=function(c){return arguments.length?(k=F(c),h):k},h.start=function(){var c=M(k()),_=we((t[0]>>5)*t[1]),m=null,v=f.length,w=-1,A=[],S=f.map(function(x,g){return x.text=e.call(this,x,g),x.font=n.call(this,x,g),x.style=i.call(this,x,g),x.weight=o.call(this,x,g),x.rotate=s.call(this,x,g),x.size=~~r.call(this,x,g),x.padding=a.call(this,x,g),x}).sort(function(x,g){return g.size-x.size});return p&&clearInterval(p),p=setInterval(z,0),z(),h;function z(){for(var x=Date.now();Date.now()-x>1,g.y=t[1]*(b()+.5)>>1,ye(c,g,S,w),g.hasText&&C(_,g,m)&&(A.push(g),d.call("word",h,g),m?pe(m,g):m=[{x:g.x+g.x0,y:g.y+g.y0},{x:g.x+g.x1,y:g.y+g.y1}],g.x-=t[0]>>1,g.y-=t[1]>>1)}w>=v&&(h.stop(),d.call("end",h,A,m))}},h.stop=function(){return p&&(clearInterval(p),p=null),h};function M(c){c.width=c.height=1;var _=Math.sqrt(c.getContext("2d").getImageData(0,0,1,1).data.length>>2);c.width=(J<<5)/_,c.height=Z/_;var m=c.getContext("2d");return m.fillStyle=m.strokeStyle="red",m.textAlign="center",{context:m,ratio:_}}function C(c,_,m){t[0],t[1];for(var v=_.x,w=_.y,A=Math.sqrt(t[0]*t[0]+t[1]*t[1]),S=l(t),z=b()<.5?1:-1,x=-z,g,I,y;(g=S(x+=z))&&(I=~~g[0],y=~~g[1],!(Math.min(Math.abs(I),Math.abs(y))>=A));)if(_.x=v+I,_.y=w+y,!(_.x+_.x0<0||_.y+_.y0<0||_.x+_.x1>t[0]||_.y+_.y1>t[1])&&(!m||!_e(_,c,t[0]))&&(!m||ge(_,m))){for(var N=_.sprite,X=_.width>>5,ot=t[0]>>5,st=_.x-(X<<4),at=st&127,Wt=32-at,Bt=_.y1-_.y0,ct=(_.y+_.y0)*ot+(st>>5),G,j=0;j>>at:0);ct+=ot}return delete _.sprite,!0}return!1}return h.timeInterval=function(c){return arguments.length?(u=c==null?1/0:c,h):u},h.words=function(c){return arguments.length?(f=c,h):f},h.size=function(c){return arguments.length?(t=[+c[0],+c[1]],h):t},h.font=function(c){return arguments.length?(n=F(c),h):n},h.fontStyle=function(c){return arguments.length?(i=F(c),h):i},h.fontWeight=function(c){return arguments.length?(o=F(c),h):o},h.rotate=function(c){return arguments.length?(s=F(c),h):s},h.text=function(c){return arguments.length?(e=F(c),h):e},h.spiral=function(c){return arguments.length?(l=be[c]||c,h):l},h.fontSize=function(c){return arguments.length?(r=F(c),h):r},h.padding=function(c){return arguments.length?(a=F(c),h):a},h.random=function(c){return arguments.length?(b=c,h):b},h.on=function(){var c=d.on.apply(d,arguments);return c===d?h:c},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,(J<<5)/o,Z/o);var s=0,a=0,l=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>l&&(l=d),s+u>=J<<5&&(s=0,a+=l,l=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 c=i.getImageData(0,0,(J<<5)/o,Z/o).data,_=[];--r>=0;)if(e=n[r],!!e.hasText){for(var u=e.width,m=u>>5,d=e.y1-e.y0,v=0;v>5),x=c[(a+S)*(J<<5)+(s+v)<<2]?1<<31-v%32:0;_[z]|=x,w|=x}w?A=S:(e.y0++,d--,S--,a++)}e.y1=e.y0+A,e.sprite=_.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,l=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 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 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=_&&(_=c+1);!(v=M[_])&&++_=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)):vn(this.node(),t)}function vn(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;ny.counta("click",y),m=y=>a("mouseover",y),v=y=>a("mouseout",y),w=y=>a("mousemove",y);function A(){return le().size([o,s]).words(u).padding(C).rotate(()=>~~(Math.random()*k)+h).font(p).fontSize(y=>y.count+15)}let S=null;function z(y){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(y).enter().append("text").style("font-size",N=>N.size+"px").style("font-family",p).style("fill","#393F67").attr("text-anchor","middle").attr("transform",N=>"translate("+[N.x,N.y]+")rotate("+N.rotate+")").text(N=>N.text).on("click",_).on("mouseover",m).on("mouseout",v).on("mousemove",w)}function x(){S=A().on("end",z),S.start()}let g=null;Xt(async()=>{let y=0;setTimeout(()=>{g=setInterval(()=>{r!==y&&(x(),y=r)},100)},0)}),Kt(()=>{clearTimeout(g)});function I(){n(4,i=window.innerWidth),n(1,r=window.outerWidth)}return t.$$set=y=>{"width"in y&&n(5,f=y.width),"words"in y&&n(6,u=y.words),"height"in y&&n(7,d=y.height),"font"in y&&n(8,p=y.font),"maxFontSize"in y&&n(9,b=y.maxFontSize),"minRotate"in y&&n(10,h=y.minRotate),"maxRotate"in y&&n(11,k=y.maxRotate),"scheme"in y&&n(12,M=y.scheme),"padding"in y&&n(13,C=y.padding),"backgroundColor"in y&&n(0,c=y.backgroundColor)},t.$$.update=()=>{t.$$.dirty&34&&n(2,o=r>1152?1e3:r>500?r-100:f-50),t.$$.dirty&4&&n(3,s=o<800?400:o<500?600:250)},n(1,r=0),n(4,i=0),[c,r,o,s,i,f,u,d,p,b,h,k,M,C,I]}class br extends wt{constructor(e){super();xt(this,e,xr,wr,bt,{width:5,words:6,height:7,font:8,maxFontSize:9,minRotate:10,maxRotate:11,scheme:12,padding:13,backgroundColor:0})}}function pt(t,e,n){const r=t.slice();return r[4]=e[n],r}function gt(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||(U(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,l,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(vt),c=[];for(let m=0;mK(c[m],1,1,()=>{c[m]=null});return{c(){e=B(),n=O("section"),r=O("h1"),i=$("Program"),o=B(),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.`),l=B(),f=O("div"),At(u.$$.fragment),d=B(),p=O("h1"),b=$("Seznam ud\xE1lost\xED"),h=B(),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 vt=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,l)=>a+(te(l,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};