import{w as I}from"./index.717ddb58.js";import{S as se,i as re,s as le,k as O,l as L,m as C,h as w,n as x,b as M,v as U,a9 as ge,f as Z,g as S,d as z,aa as de,a as J,c as P,E as j,I as _e,ab as me,a8 as oe,y as ce,z as he,A as ue,B as fe,e as K,q as ye,r as ke,F as B}from"./index.99c78cc1.js";const Ve=I(!1),We=I("");function ve(e,t){try{let n=e in localStorage?JSON.parse(localStorage[e]):t;const i=I(n),s=l=>{i.set(n=l),localStorage[e]=JSON.stringify(n)};return{subscribe:i.subscribe,set:s,update:l=>s(l(n))}}catch{return I(t)}}const Xe=ve("recent_searches",[]);function Q(e,t,n){const i=e.slice();return i[5]=t[n],i}function V(e){let t,n=R(e[5].node.content,e[1])+"";return{c(){t=O("span"),this.h()},l(i){t=L(i,"SPAN",{class:!0});var s=C(t);s.forEach(w),this.h()},h(){x(t,"class","svelte-13pjn3x")},m(i,s){M(i,t,s),t.innerHTML=n},p(i,s){s&3&&n!==(n=R(i[5].node.content,i[1])+"")&&(t.innerHTML=n)},d(i){i&&w(t)}}}function W(e){let t,n;return t=new ae({props:{results:e[5].children,query:e[1]}}),t.$on("select",e[4]),{c(){ce(t.$$.fragment)},l(i){he(t.$$.fragment,i)},m(i,s){ue(t,i,s),n=!0},p(i,s){const l={};s&1&&(l.results=i[5].children),s&2&&(l.query=i[1]),t.$set(l)},i(i){n||(S(t.$$.fragment,i),n=!0)},o(i){z(t.$$.fragment,i),n=!1},d(i){fe(t,i)}}}function X(e,t){var q;let n,i,s,l=R(t[5].breadcrumbs[t[5].breadcrumbs.length-1],t[1])+"",r,c,o,h,a,f,g,p,u=((q=t[5].node)==null?void 0:q.content)&&V(t);function y(){return t[3](t[5])}let d=t[5].children.length>0&&W(t);return{key:e,first:null,c(){n=O("li"),i=O("a"),s=O("strong"),r=J(),u&&u.c(),h=J(),d&&d.c(),a=J(),this.h()},l(_){n=L(_,"LI",{class:!0});var m=C(n);i=L(m,"A",{"data-sveltekit-preload-data":!0,href:!0,"data-has-node":!0,class:!0});var b=C(i);s=L(b,"STRONG",{class:!0});var pe=C(s);pe.forEach(w),r=P(b),u&&u.l(b),b.forEach(w),h=P(m),d&&d.l(m),a=P(m),m.forEach(w),this.h()},h(){x(s,"class","svelte-13pjn3x"),x(i,"data-sveltekit-preload-data",""),x(i,"href",c=t[5].href),x(i,"data-has-node",o=t[5].node?!0:void 0),x(i,"class","svelte-13pjn3x"),x(n,"class","svelte-13pjn3x"),this.first=n},m(_,m){M(_,n,m),j(n,i),j(i,s),s.innerHTML=l,j(i,r),u&&u.m(i,null),j(n,h),d&&d.m(n,null),j(n,a),f=!0,g||(p=_e(i,"click",y),g=!0)},p(_,m){var b;t=_,(!f||m&3)&&l!==(l=R(t[5].breadcrumbs[t[5].breadcrumbs.length-1],t[1])+"")&&(s.innerHTML=l),(b=t[5].node)!=null&&b.content?u?u.p(t,m):(u=V(t),u.c(),u.m(i,null)):u&&(u.d(1),u=null),(!f||m&1&&c!==(c=t[5].href))&&x(i,"href",c),(!f||m&1&&o!==(o=t[5].node?!0:void 0))&&x(i,"data-has-node",o),t[5].children.length>0?d?(d.p(t,m),m&1&&S(d,1)):(d=W(t),d.c(),S(d,1),d.m(n,a)):d&&(U(),z(d,1,1,()=>{d=null}),Z())},i(_){f||(S(d),f=!0)},o(_){z(d),f=!1},d(_){_&&w(n),u&&u.d(),d&&d.d(),g=!1,p()}}}function be(e){let t,n=[],i=new Map,s,l=e[0];const r=c=>c[5].href;for(let c=0;c<l.length;c+=1){let o=Q(e,l,c),h=r(o);i.set(h,n[c]=X(h,o))}return{c(){t=O("ul");for(let c=0;c<n.length;c+=1)n[c].c();this.h()},l(c){t=L(c,"UL",{class:!0});var o=C(t);for(let h=0;h<n.length;h+=1)n[h].l(o);o.forEach(w),this.h()},h(){x(t,"class","svelte-13pjn3x")},m(c,o){M(c,t,o);for(let h=0;h<n.length;h+=1)n[h]&&n[h].m(t,null);s=!0},p(c,[o]){o&7&&(l=c[0],U(),n=ge(n,o,r,1,c,l,i,t,me,X,null,Q),Z())},i(c){if(!s){for(let o=0;o<l.length;o+=1)S(n[o]);s=!0}},o(c){for(let o=0;o<n.length;o+=1)z(n[o]);s=!1},d(c){c&&w(t);for(let o=0;o<n.length;o+=1)n[o].d()}}}function N(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;")}function R(e,t){const n=e.toLowerCase().indexOf(t.toLowerCase());if(n===-1)return N(e.slice(0,100));const i=n>20?`…${e.slice(n-15,n)}`:e.slice(0,n),s=e.slice(n+t.length,n+t.length+(80-(i.length+t.length)));return N(i)+`<mark>${N(e.slice(n,n+t.length))}</mark>`+N(s)}function qe(e,t,n){let{results:i}=t,{query:s}=t;const l=de(),r=o=>l("select",{href:o.href});function c(o){oe.call(this,e,o)}return e.$$set=o=>{"results"in o&&n(0,i=o.results),"query"in o&&n(1,s=o.query)},[i,s,l,r,c]}class ae extends se{constructor(t){super(),re(this,t,qe,be,le,{results:0,query:1})}}function xe(e){let t,n;return{c(){t=O("p"),n=ye("No results"),this.h()},l(i){t=L(i,"P",{class:!0});var s=C(t);n=ke(s,"No results"),s.forEach(w),this.h()},h(){x(t,"class","info svelte-16pklco")},m(i,s){M(i,t,s),j(t,n)},p:B,i:B,o:B,d(i){i&&w(t)}}}function we(e){let t,n;return t=new ae({props:{results:e[0],query:e[1]}}),t.$on("select",e[2]),{c(){ce(t.$$.fragment)},l(i){he(t.$$.fragment,i)},m(i,s){ue(t,i,s),n=!0},p(i,s){const l={};s&1&&(l.results=i[0]),s&2&&(l.query=i[1]),t.$set(l)},i(i){n||(S(t.$$.fragment,i),n=!0)},o(i){z(t.$$.fragment,i),n=!1},d(i){fe(t,i)}}}function Se(e){let t,n,i,s;const l=[we,xe],r=[];function c(o,h){return o[0].length>0?0:o[1]?1:-1}return~(t=c(e))&&(n=r[t]=l[t](e)),{c(){n&&n.c(),i=K()},l(o){n&&n.l(o),i=K()},m(o,h){~t&&r[t].m(o,h),M(o,i,h),s=!0},p(o,[h]){let a=t;t=c(o),t===a?~t&&r[t].p(o,h):(n&&(U(),z(r[a],1,1,()=>{r[a]=null}),Z()),~t?(n=r[t],n?n.p(o,h):(n=r[t]=l[t](o),n.c()),S(n,1),n.m(i.parentNode,i)):n=null)},i(o){s||(S(n),s=!0)},o(o){z(n),s=!1},d(o){~t&&r[t].d(o),o&&w(i)}}}function ze(e,t,n){let{results:i}=t,{query:s}=t;function l(r){oe.call(this,e,r)}return e.$$set=r=>{"results"in r&&n(0,i=r.results),"query"in r&&n(1,s=r.query)},[i,s,l]}class Ye extends se{constructor(t){super(),re(this,t,ze,Se,le,{results:0,query:1})}}function D(e,t){return typeof e>"u"?t:e}function Y(e){const t=Array(e);for(let n=0;n<e;n++)t[n]=v();return t}function je(e){return Object.keys(e)}function v(){return Object.create(null)}function Oe(e){return[].concat.apply([],e)}function Le(e,t){return t.length-e.length}function Ce(e){return e.constructor===Array}function $(e){return typeof e=="string"}function G(e){return typeof e=="object"}function Ee(e){return typeof e=="function"}function Me(e,t,n,i){if(e&&(t&&(e=F(e,t)),this.matcher&&(e=F(e,this.matcher)),this.stemmer&&1<e.length&&(e=F(e,this.stemmer)),i&&1<e.length&&(e=Ae(e)),n||n==="")){const s=e.split(n);return this.filter?Ie(s,this.filter):s}return e}const Ne=/[\p{Z}\p{S}\p{P}\p{C}]+/u;function Te(e){const t=v();for(let n=0,i=e.length;n<i;n++)t[e[n]]=1;return t}function ee(e,t){const n=je(e),i=n.length,s=[];let l="",r=0;for(let c,o,h=0;h<i;h++)c=n[h],o=e[c],o?(s[r++]=te(t?"(?!\\b)"+c+"(\\b|_)":c),s[r++]=o):l+=(l?"|":"")+c;return l&&(s[r++]=te(t?"(?!\\b)("+l+")(\\b|_)":"("+l+")"),s[r]=""),s}function F(e,t){for(let n=0,i=t.length;n<i&&(e=e.replace(t[n],t[n+1]),!!e);n+=2);return e}function te(e){return new RegExp(e,"g")}function Ae(e){let t="",n="";for(let i,s=0,l=e.length;s<l;s++)(i=e[s])!==n&&(t+=n=i);return t}function Ie(e,t){const n=e.length,i=[];for(let s=0,l=0;s<n;s++){const r=e[s];r&&!t[r]&&(i[l++]=r)}return i}function Re(e){return Me.call(this,(""+e).toLowerCase(),!1,Ne,!1)}const $e={},He={};function Je(e){E(e,"add"),E(e,"append"),E(e,"search"),E(e,"update"),E(e,"remove")}function E(e,t){e[t+"Async"]=function(){const n=this,i=arguments,s=i[i.length-1];let l;Ee(s)&&(l=s,delete i[i.length-1]);const r=new Promise(function(c){setTimeout(function(){n.async=!0;const o=n[t].apply(n,i);n.async=!1,c(o)})});return l?(r.then(l),this):r}}function Pe(e,t,n,i){const s=e.length;let l,r,c=[],o=0;i&&(i=[]);for(let h=s-1;0<=h;h--){const a=e[h],f=a.length,g=v();let p=!l;for(let u=0;u<f;u++){const y=a[u],d=y.length;if(d)for(let q,_,m=0;m<d;m++)if(_=y[m],l){if(l[_]){if(!h){if(n)n--;else if(c[o++]=_,o===t)return c}(h||i)&&(g[_]=1),p=!0}if(i&&(q=(r[_]||0)+1,r[_]=q,q<s)){const b=i[q-2]||(i[q-2]=[]);b[b.length]=_}}else g[_]=1}if(i)l||(r=g);else if(!p)return[];l=g}if(i)for(let h,a,f=i.length-1;0<=f;f--){h=i[f],a=h.length;for(let g,p=0;p<a;p++)if(g=h[p],!l[g]){if(n)n--;else if(c[o++]=g,o===t)return c;l[g]=1}}return c}function A(e){this.limit=e!==!0&&e,this.cache=v(),this.queue=[]}function Be(e,t,n){G(e)&&(e=e.query);let i=this.cache.get(e);return i||(i=this.search(e,t,n),this.cache.set(e,i)),i}A.prototype.set=function(e,t){if(!this.cache[e]){let n=this.queue.length;n===this.limit?delete this.cache[this.queue[n-1]]:n++;for(let i=n-1;0<i;i--)this.queue[i]=this.queue[i-1];this.queue[0]=e}this.cache[e]=t},A.prototype.get=function(e){const t=this.cache[e];if(this.limit&&t){const n=this.queue.indexOf(e);if(n){const i=this.queue[n-1];this.queue[n-1]=this.queue[n],this.queue[n]=i}}return t},A.prototype.del=function(e){for(let t,n,i=0;i<this.queue.length;i++)n=this.queue[i],t=this.cache[n],t.includes(e)&&(this.queue.splice(i--,1),delete this.cache[n])};const De={memory:{charset:"latin:extra",resolution:3,minlength:4,fastupdate:!1},performance:{resolution:3,minlength:3,optimize:!1,context:{depth:2,resolution:1}},match:{charset:"latin:extra",tokenize:"reverse"},score:{charset:"latin:advanced",resolution:20,minlength:3,context:{depth:3,resolution:9}},default:{}};function Fe(e){if($(e))e=De[e];else{const t=e.preset;t&&(e=Object.assign({},t[t],e))}return e}function Ge(e,t,n,i,s,l,r){setTimeout(function(){const c=e(n?n+"."+i:i,JSON.stringify(r));c&&c.then?c.then(function(){t.export(e,t,n,s,l+1)}):t.export(e,t,n,s,l+1)})}function Ue(e,t,n,i,s){let l,r;switch(s||(s=0)){case 0:if(l="reg",this.fastupdate)for(let c in r=v(),this.register)r[c]=1;else r=this.register;break;case 1:l="cfg",r={doc:0,opt:this.optimize?1:0};break;case 2:l="map",r=this.map;break;case 3:l="ctx",r=this.ctx;break;default:return}return Ge(e,t||this,n,l,i,s,r),!0}function Ze(e,t){t&&($(t)&&(t=JSON.parse(t)),e==="cfg"?this.optimize=!!t.opt:e==="reg"?(this.fastupdate=!1,this.register=t):e==="map"?this.map=t:e==="ctx"&&(this.ctx=t))}function k(e,t){if(!(this instanceof k))return new k(e);let n,i,s;e?(e=Fe(e),n=e.charset,i=e.lang,$(n)&&(n.indexOf(":")===-1&&(n+=":default"),n=He[n]),$(i)&&(i=$e[i])):e={};let l,r,c=e.context||{};this.encode=e.encode||n&&n.encode||Re,this.register=t||v(),this.resolution=l=e.resolution||9,this.tokenize=s=n&&n.tokenize||e.tokenize||"strict",this.depth=s==="strict"&&c.depth,this.bidirectional=D(c.bidirectional,!0),this.optimize=r=D(e.optimize,!0),this.fastupdate=D(e.fastupdate,!0),this.minlength=e.minlength||1,this.boost=e.boost,this.map=r?Y(l):v(),this.resolution_ctx=l=c.resolution||1,this.ctx=r?Y(l):v(),this.rtl=n&&n.rtl||e.rtl,this.matcher=(s=e.matcher||i&&i.matcher)&&ee(s,!1),this.stemmer=(s=e.stemmer||i&&i.stemmer)&&ee(s,!0),this.filter=(s=e.filter||i&&i.filter)&&Te(s),this.cache=(s=e.cache)&&new A(s)}k.prototype.append=function(e,t){return this.add(e,t,!0)},k.prototype.add=function(e,t,n,i){if(t&&(e||e===0)){if(!i&&!n&&this.register[e])return this.update(e,t);t=this.encode(""+t);const s=t.length;if(s){const l=v(),r=v(),c=this.depth,o=this.resolution;for(let h=0;h<s;h++){let a=t[this.rtl?s-1-h:h],f=a.length;if(a&&f>=this.minlength&&(c||!r[a])){let g=T(o,s,h),p="";switch(this.tokenize){case"full":if(2<f){for(let u=0;u<f;u++)for(let y=f;y>u;y--)if(y-u>=this.minlength){const d=T(o,s,h,f,u);p=a.substring(u,y),this.push_index(r,p,d,e,n)}break}case"reverse":if(1<f){for(let u=f-1;0<u;u--)if(p=a[u]+p,p.length>=this.minlength){const y=T(o,s,h,f,u);this.push_index(r,p,y,e,n)}p=""}case"forward":if(1<f){for(let u=0;u<f;u++)p+=a[u],p.length>=this.minlength&&this.push_index(r,p,g,e,n);break}default:if(this.boost&&(g=Math.min(0|g/this.boost(t,a,h),o-1)),this.push_index(r,a,g,e,n),c&&1<s&&h<s-1){const u=v(),y=this.resolution_ctx,d=a,q=Math.min(c+1,s-h);u[d]=1;for(let _=1;_<q;_++)if(a=t[this.rtl?s-1-h-_:h+_],a&&a.length>=this.minlength&&!u[a]){u[a]=1;const m=T(y+(s/2>y?0:1),s,h,q-1,_-1),b=this.bidirectional&&a>d;this.push_index(l,b?d:a,m,e,n,b?a:d)}}}}}this.fastupdate||(this.register[e]=1)}}return this};function T(e,t,n,i,s){return n&&1<e?t+(i||0)<=e?n+(s||0):0|(e-1)/(t+(i||0))*(n+(s||0))+1:0}k.prototype.push_index=function(e,t,n,i,s,l){let r=l?this.ctx:this.map;if((!e[t]||l&&!e[t][l])&&(this.optimize&&(r=r[n]),l?(e=e[t]||(e[t]=v()),e[l]=1,r=r[l]||(r[l]=v())):e[t]=1,r=r[t]||(r[t]=[]),this.optimize||(r=r[n]||(r[n]=[])),(!s||!r.includes(i))&&(r[r.length]=i,this.fastupdate))){const c=this.register[i]||(this.register[i]=[]);c[c.length]=r}},k.prototype.search=function(e,t,n){n||(!t&&G(e)?(n=e,e=n.query):G(t)&&(n=t));let i,s,l,r=[],c=0;if(n&&(e=n.query||e,t=n.limit,c=n.offset||0,s=n.context,l=n.suggest),e&&(e=this.encode(""+e),i=e.length,1<i)){const f=v(),g=[];for(let p,u=0,y=0;u<i;u++)if(p=e[u],p&&p.length>=this.minlength&&!f[p]){if(!this.optimize&&!l&&!this.map[p])return r;g[y++]=p,f[p]=1}e=g,i=e.length}if(!i)return r;t||(t=100);let o,h=this.depth&&1<i&&s!==!1,a=0;h?(o=e[0],a=1):1<i&&e.sort(Le);for(let f,g;a<i;a++){if(g=e[a],h?(f=this.add_result(r,l,t,c,i===2,g,o),(!l||f!==!1||!r.length)&&(o=g)):f=this.add_result(r,l,t,c,i===1,g),f)return f;if(l&&a==i-1){let p=r.length;if(!p){if(h){h=0,a=-1;continue}return r}if(p===1)return ne(r[0],t,c)}}return Pe(r,t,c,l)},k.prototype.add_result=function(e,t,n,i,s,l,r){let c=[],o=r?this.ctx:this.map;if(this.optimize||(o=ie(o,l,r,this.bidirectional)),o){let h=0;const a=Math.min(o.length,r?this.resolution_ctx:this.resolution);for(let f,g,p=0,u=0;p<a&&(f=o[p],!(f&&(this.optimize&&(f=ie(f,l,r,this.bidirectional)),i&&f&&s&&(g=f.length,g<=i?(i-=g,f=null):(f=f.slice(i),i=0)),f&&(c[h++]=f,s&&(u+=f.length,u>=n)))));p++);if(h)return s?ne(c,n,0):void(e[e.length]=c)}return!t&&c};function ne(e,t,n){return e=e.length===1?e[0]:Oe(e),n||e.length>t?e.slice(n,n+t):e}function ie(e,t,n,i){if(n){const s=i&&t>n;e=e[s?t:n],e=e&&e[s?n:t]}else e=e[t];return e}k.prototype.contain=function(e){return!!this.register[e]},k.prototype.update=function(e,t){return this.remove(e).add(e,t)},k.prototype.remove=function(e,t){const n=this.register[e];if(n){if(this.fastupdate)for(let i,s=0;s<n.length;s++)i=n[s],i.splice(i.indexOf(e),1);else H(this.map,e,this.resolution,this.optimize),this.depth&&H(this.ctx,e,this.resolution_ctx,this.optimize);t||delete this.register[e],this.cache&&this.cache.del(e)}return this};function H(e,t,n,i,s){let l=0;if(Ce(e))if(s){const r=e.indexOf(t);r===-1?l++:1<e.length&&(e.splice(r,1),l++)}else{s=Math.min(e.length,n);for(let r,c=0;c<s;c++)r=e[c],r&&(l=H(r,t,n,i,s),!i&&!l&&delete e[c])}else for(let r in e)l=H(e[r],t,n,i,s),l||delete e[r];return l}k.prototype.searchCache=Be,k.prototype.export=Ue,k.prototype.import=Ze,Je(k.prototype);k.Index;export{Ye as S,We as q,Xe as r,Ve as s};
