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=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(;++i0)for(var n=new Array(r),s=0,r,i;s>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>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>>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>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>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>>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.x0s.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.x0e[0].y&&t.y+t.y0=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=m&&(m=d+1);!(b=k[m])&&++m=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;ie?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;e1?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=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_.countc("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;ut.score===e.score?t.idx{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{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=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=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{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{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!!(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-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{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;y0?0:1}u=pt(t),f=Q[u]=yt[u](t);let G=t[3],O=[];for(let A=0;Aht(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{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{!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};