PageSourceSearch

https://www.finish.de/7394-ce9dcdf6d937024971bd.js

js finish.de collected 2026-10-08 05:47:32 UTC 25,354 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkhusky_site=self.webpackChunkhusky_site||[]).push([[7394],{67394:function(e,t,n){n.r(t),n.d(t,{debouncedSearch:function(){return V},destroy:function(){return z},filters:function(){return Q},init:function(){return G},mergeIndex:function(){return Y},options:function(){return J},preload:function(){return K},search:function(){return H}});var r=n(45458);let i;!function(){const e={};let t,n;"undefined"!=typeof document&&null!==document.currentScript&&(t=new URL("UNHANDLED",location.href).toString());let r=0,a=null;function s(){return null!==a&&0!==a.byteLength||(a=new Uint8Array(n.memory.buffer)),a}const o="undefined"!=typeof TextEncoder?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},l="function"==typeof o.encodeInto?function(e,t){return o.encodeInto(e,t)}:function(e,t){const n=o.encode(e);return t.set(n),{read:e.length,written:n.length}};function c(e,t,n){if(void 0===n){const n=o.encode(e),i=t(n.length,1)>>>0;return s().subarray(i,i+n.length).set(n),r=n.length,i}let i=e.length,a=t(i,1)>>>0;const c=s();let d=0;for(;d<i;d++){const t=e.charCodeAt(d);if(t>127)break;c[a+d]=t}if(d!==i){0!==d&&(e=e.slice(d)),a=n(a,i,i=d+3*e.length,1)>>>0;const t=s().subarray(a+d,a+i);d+=l(e,t).written,a=n(a,i,d,1)>>>0}return r=d,a}function d(e,t){const n=t(1*e.length,1)>>>0;return s().set(e,n/1),r=e.length,n}e.set_ranking_weights=function(e,t){const i=c(t,n.__wbindgen_malloc,n.__wbindgen_realloc),a=r;return n.set_ranking_weights(e,i,a)>>>0},e.init_pagefind=function(e){const t=d(e,n.__wbindgen_malloc),i=r;return n.init_pagefind(t,i)>>>0},e.load_filter_chunk=function(e,t){const i=d(t,n.__wbindgen_malloc),a=r;return n.load_filter_chunk(e,i,a)>>>0};let h=null;function u(){return null!==h&&0!==h.byteLength||(h=new Int32Array(n.memory.buffer)),h}const f="undefined"!=typeof TextDecoder?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};function g(e,t){return e>>>=0,f.decode(s().subarray(e,e+t))}function _(){const e={wbg:{}};return e}function p(e,t){return n=e.exports,w.__wbindgen_wasm_module=t,h=null,a=null,n}async function w(e){if(void 0!==n)return n;void 0===e&&void 0!==t&&(e=t.replace(/\.js$/,"_bg.wasm"));const r=_();("string"==typeof e||"function"==typeof Request&&e instanceof Request||"function"==typeof URL&&e instanceof URL)&&(e=fetch(e));const{instance:i,module:a}=await async function(e,t){if("function"==typeof Response&&e instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(e,t)}catch(n){if("application/wasm"==e.headers.get("Content-Type"))throw n;console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",n)}const r=await e.arrayBuffer();return await WebAssembly.instantiate(r,t)}{const n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}}(await e,r);return p(i,a)}"undefined"!=typeof TextDecoder&&f.decode(),e.request_filter_indexes=function(e,t){let i,a;try{const l=n.__wbindgen_add_to_stack_pointer(-16),d=c(t,n.__wbindgen_malloc,n.__wbindgen_realloc),h=r;n.request_filter_indexes(l,e,d,h);var s=u()[l/4+0],o=u()[l/4+1];return i=s,a=o,g(s,o)}finally{n.__wbindgen_add_to_stack_pointer(16),n.__wbindgen_free(i,a,1)}},e.request_indexes=function(e,t){let i,a;try{const l=n.__wbindgen_add_to_stack_pointer(-16),d=c(t,n.__wbindgen_malloc,n.__wbindgen_realloc),h=r;n.request_indexes(l,e,d,h);var s=u()[l/4+0],o=u()[l/4+1];return i=s,a=o,g(s,o)}finally{n.__wbindgen_add_to_stack_pointer(16),n.__wbindgen_free(i,a,1)}},e.request_all_filter_indexes=function(e){let t,r;try{const s=n.__wbindgen_add_to_stack_pointer(-16);n.request_all_filter_indexes(s,e);var i=u()[s/4+0],a=u()[s/4+1];return t=i,r=a,g(i,a)}finally{n.__wbindgen_add_to_stack_pointer(16),n.__wbindgen_free(t,r,1)}},e.filters=function(e){let t,r;try{const s=n.__wbindgen_add_to_stack_pointer(-16);n.filters(s,e);var i=u()[s/4+0],a=u()[s/4+1];return t=i,r=a,g(i,a)}finally{n.__wbindgen_add_to_stack_pointer(16),n.__wbindgen_free(t,r,1)}},e.enter_playground_mode=function(e){return n.enter_playground_mode(e)>>>0},e.search=function(e,t,i,a,s){let o,l;try{const f=n.__wbindgen_add_to_stack_pointer(-16),_=c(t,n.__wbindgen_malloc,n.__wbindgen_realloc),p=r,w=c(i,n.__wbindgen_malloc,n.__wbindgen_realloc),m=r,y=c(a,n.__wbindgen_malloc,n.__wbindgen_realloc),b=r;n.search(f,e,_,p,w,m,y,b,s);var d=u()[f/4+0],h=u()[f/4+1];return o=d,l=h,g(d,h)}finally{n.__wbindgen_add_to_stack_pointer(16),n.__wbindgen_free(o,l,1)}},e.add_synthetic_filter=function(e,t){const i=c(t,n.__wbindgen_malloc,n.__wbindgen_realloc),a=r;return n.add_synthetic_filter(e,i,a)>>>0},e.load_index_chunk=function(e,t){const i=d(t,n.__wbindgen_malloc),a=r;return n.load_index_chunk(e,i,a)>>>0},i=Object.assign(w,{initSync:function(e){if(void 0!==n)return n;const t=_();return e instanceof WebAssembly.Module||(e=new WebAssembly.Module(e)),p(new WebAssembly.Instance(e,t),e)}},e)}();var a=Uint8Array,s=Uint16Array,o=Uint32Array,l=new a([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),c=new a([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),d=new a([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),h=function(e,t){for(var n=new s(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];var i=new o(n[30]);for(r=1;r<30;++r)for(var a=n[r];a<n[r+1];++a)i[a]=a-n[r]<<5|r;return[n,i]},u=h(l,2),f=u[0],g=u[1];f[28]=258,g[258]=28;var _,p=h(c,0),w=p[0],m=(p[1],new s(32768));for(v=0;v<32768;++v)_=(61680&(_=(52428&(_=(43690&v)>>>1|(21845&v)<<1))>>>2|(13107&_)<<2))>>>4|(3855&_)<<4,m[v]=((65280&_)>>>8|(255&_)<<8)>>>1;var y=function(e,t,n){for(var r=e.length,i=0,a=new s(t);i<r;++i)e[i]&&++a[e[i]-1];var o,l=new s(t);for(i=0;i<t;++i)l[i]=l[i-1]+a[i-1]<<1;if(n){o=new s(1<<t);var c=15-t;for(i=0;i<r;++i)if(e[i])for(var d=i<<4|e[i],h=t-e[i],u=l[e[i]-1]++<<h,f=u|(1<<h)-1;u<=f;++u)o[m[u]>>>c]=d}else for(o=new s(r),i=0;i<r;++i)e[i]&&(o[i]=m[l[e[i]-1]++]>>>15-e[i]);return o},b=new a(288);for(v=0;v<144;++v)b[v]=8;for(v=144;v<256;++v)b[v]=9;for(v=256;v<280;++v)b[v]=7;for(v=280;v<288;++v)b[v]=8;var v,k=new a(32);for(v=0;v<32;++v)k[v]=5;var P=y(b,9,1),x=y(k,5,1),$=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},S=function(e,t,n){var r=t/8|0;return(e[r]|e[r+1]<<8)>>(7&t)&n},F=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(7&t)},A=function(e){return(e+7)/8|0}
1,U=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],L=function(e,t,n){var r=new Error(t||U[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,L),!n)throw r;return r},E=function(e,t,n){var r=e.length;if(!r||n&&n.f&&!n.l)return t||new a(0);var i=!t||n,h=!n||n.i;n||(n={}),t||(t=new a(3*r));var u=function(e){var n=t.length;if(e>n){var r=new a(Math.max(2*n,e));r.set(t),t=r}},g=n.f||0,_=n.p||0,p=n.b||0,m=n.l,b=n.d,v=n.m,k=n.n,U=8*r;do{if(!m){g=S(e,_,1);var E=S(e,_+1,3);if(_+=3,!E){var M=e[(B=A(_)+4)-4]|e[B-3]<<8,W=B+M;if(W>r){h&&L(0);break}i&&u(p+M),t.set(e.subarray(B,W),p),n.b=p+=M,n.p=_=8*W,n.f=g;continue}if(1==E)m=P,b=x,v=9,k=5;else if(2==E){var D=S(e,_,31)+257,C=S(e,_+10,15)+4,I=D+S(e,_+5,31)+1;_+=14;for(var j=new a(I),T=new a(19),O=0;O<C;++O)T[d[O]]=S(e,_+3*O,7);_+=3*C;var R=$(T),N=(1<<R)-1,q=y(T,R,1);for(O=0;O<I;){var B,J=q[S(e,_,N)];if(_+=15&J,(B=J>>>4)<16)j[O++]=B;else{var G=0,z=0;for(16==B?(z=3+S(e,_,3),_+=2,G=j[O-1]):17==B?(z=3+S(e,_,7),_+=3):18==B&&(z=11+S(e,_,127),_+=7);z--;)j[O++]=G}}var Y=j.subarray(0,D),H=j.subarray(D);v=$(Y),k=$(H),m=y(Y,v,1),b=y(H,k,1)}else L(1);if(_>U){h&&L(0);break}}i&&u(p+131072);for(var V=(1<<v)-1,K=(1<<k)-1,Q=_;;Q=_){var X=(G=m[F(e,_)&V])>>>4;if((_+=15&G)>U){h&&L(0);break}if(G||L(2),X<256)t[p++]=X;else{if(256==X){Q=_,m=null;break}var Z=X-254;if(X>264){var ee=l[O=X-257];Z=S(e,_,(1<<ee)-1)+f[O],_+=ee}var te=b[F(e,_)&K],ne=te>>>4;te||L(3),_+=15&te;H=w[ne];if(ne>3){ee=c[ne];H+=F(e,_)&(1<<ee)-1,_+=ee}if(_>U){h&&L(0);break}i&&u(p+131072);for(var re=p+Z;p<re;p+=4)t[p]=t[p-H],t[p+1]=t[p+1-H],t[p+2]=t[p+2-H],t[p+3]=t[p+3-H];p=re}}n.l=m,n.p=Q,n.b=p,n.f=g,m&&(g=1,n.m=v,n.d=b,n.n=k)}while(!g);return p==t.length?t:function(e,t,n){(null==t||t<0)&&(t=0),(null==n||n>e.length)&&(n=e.length);var r=new(2==e.BYTES_PER_ELEMENT?s:4==e.BYTES_PER_ELEMENT?o:a)(n-t);return r.set(e.subarray(t,n)),r}(t,0,p)},M=new a(0);var W="undefined"!=typeof TextDecoder&&new TextDecoder;try{W.decode(M,{stream:!0})}catch(X){}var D=function(e,t){return E(e.subarray(function(e){31==e[0]&&139==e[1]&&8==e[2]||L(6,"invalid gzip data");var t=e[3],n=10;4&t&&(n+=e[10]|2+(e[11]<<8));for(var r=(t>>3&1)+(t>>4&1);r>0;r-=!e[n++]);return n+(2&t)}(e),-8),t||new a((r=(n=e).length,(n[r-4]|n[r-3]<<8|n[r-2]<<16|n[r-1]<<24)>>>0)));var n,r},C=(e,t)=>{if(0===e.length)return 0;let n=[];for(const l of e)n[l.location]=n[l.location]||0,n[l.location]+=l.balanced_score;if(n.length<=t)return 0;let r=n.slice(0,t).reduce((e,t)=>e+t,0),i=r,a=[0];for(let l=0;l<n.length;l++){var s,o;i+=(null!==(s=n[l+t])&&void 0!==s?s:0)-(null!==(o=n[l])&&void 0!==o?o:0),i>r?(r=i,a=[l]):i===r&&a[a.length-1]===l-1&&a.push(l)}return a[Math.floor(a.length/2)]},I=(e,t,n,r,i,a)=>{let s=e.includes("​"),o=[];o=s?e.split("​"):e.split(/[\r\n\s]+/g);for(let h of r){var l;null!==(l=o[h])&&void 0!==l&&l.startsWith("<mark>")||(o[h]=`<mark>${o[h]}</mark>`)}let c=null!=a?a:o.length,d=null!=i?i:0;return c-d<n&&(n=c-d),t+n>c&&(t=c-n),t<d&&(t=d),o.slice(t,t+n).join(s?"":" ").trim()},j=async function(e){return void 0===e&&(e=100),new Promise(t=>setTimeout(t,e))},T="undefined"!=typeof window&&"undefined"!=typeof document,O=function(){function e(e){var t,n,r,a,s,o;void 0===e&&(e={}),this.version="1.4.0",this.backend=i,this.decoder=new TextDecoder("utf-8"),this.wasm=null,this.basePath=e.basePath||"/pagefind/",this.primary=e.primary||!1,this.primary&&!e.basePath&&this.initPrimary(),/[^\/]$/.test(this.basePath)&&(this.basePath=`${this.basePath}/`),T&&null!==(t=window)&&void 0!==t&&null!==(n=t.location)&&void 0!==n&&n.origin&&this.basePath.startsWith(window.location.origin)&&(this.basePath=this.basePath.replace(window.location.origin,"")),this.baseUrl=e.baseUrl||this.defaultBaseUrl(),/^(\/|https?:\/\/)/.test(this.baseUrl)||(this.baseUrl=`/${this.baseUrl}`),this.indexWeight=null!==(r=e.indexWeight)&&void 0!==r?r:1,this.excerptLength=null!==(a=e.excerptLength)&&void 0!==a?a:30,this.mergeFilter=null!==(s=e.mergeFilter)&&void 0!==s?s:{},this.ranking=e.ranking,this.highlightParam=null!==(o=e.highlightParam)&&void 0!==o?o:null,this.loaded_chunks={},this.loaded_filters={},this.loaded_fragments={},this.raw_ptr=null,this.searchMeta=null,this.languages=null}var t=e.prototype;return t.initPrimary=function(){if(T){var e;let t=null===(e="file:///home/vsts/work/1/s/packages/husky-site/node_modules/@husky-x/gatsby-theme-husky/static/pagefind/pagefind.js".match(/^(.*\/)pagefind.js.*$/))||void 0===e?void 0:e[1];t?this.basePath=t:console.warn(["Pagefind couldn't determine the base of the bundle from the import path. Falling back to the default.","Set a basePath option when initialising Pagefind to ignore this message."].join("\n"))}},t.defaultBaseUrl=function(){var e;return(null===(e=this.basePath.match(/^(.*\/)_?pagefind/))||void 0===e?void 0:e[1])||"/"},t.options=async function(e){const t=["basePath","baseUrl","indexWeight","excerptLength","mergeFilter","highlightParam","ranking"];for(const[n,r]of Object.entries(e))if("mergeFilter"===n){let e=this.stringifyFilters(r),t=await this.getPtr();this.raw_ptr=this.backend.add_synthetic_filter(t,e)}else"ranking"===n?await this.set_ranking(e.ranking):t.includes(n)?("basePath"===n&&"string"==typeof r&&(this.basePath=r),"baseUrl"===n&&"string"==typeof r&&(this.baseUrl=r),"indexWeight"===n&&"number"==typeof r&&(this.indexWeight=r),"excerptLength"===n&&"number"==typeof r&&(this.excerptLength=r),"mergeFilter"===n&&"object"==typeof r&&(this.mergeFilter=r),"highlightParam"
1===n&&"string"==typeof r&&(this.highlightParam=r)):console.warn(`Unknown Pagefind option ${n}. Allowed options: [${t.join(", ")}]`)},t.enterPlaygroundMode=async function(){let e=await this.getPtr();this.raw_ptr=this.backend.enter_playground_mode(e)},t.decompress=function(e,t){return void 0===t&&(t="unknown file"),"pagefind_dcd"===this.decoder.decode(e.slice(0,12))?e.slice(12):(e=D(e),"pagefind_dcd"!==this.decoder.decode(e.slice(0,12))?(console.error(`Decompressing ${t} appears to have failed: Missing signature`),e):e.slice(12))},t.set_ranking=async function(e){var t,n,r,i;if(!e)return;let a={term_similarity:null!==(t=e.termSimilarity)&&void 0!==t?t:null,page_length:null!==(n=e.pageLength)&&void 0!==n?n:null,term_saturation:null!==(r=e.termSaturation)&&void 0!==r?r:null,term_frequency:null!==(i=e.termFrequency)&&void 0!==i?i:null},s=await this.getPtr();this.raw_ptr=this.backend.set_ranking_weights(s,JSON.stringify(a))},t.init=async function(e,t){var n;await this.loadEntry();let r=this.findIndex(e),i=r.wasm?r.wasm:"unknown";this.loadedLanguage=e;let a=[this.loadMeta(r.hash)];if(!0===t.load_wasm&&a.push(this.loadWasm(i)),await Promise.all(a),this.raw_ptr=this.backend.init_pagefind(new Uint8Array(this.searchMeta)),null!==(n=Object.keys(this.mergeFilter))&&void 0!==n&&n.length){let e=this.stringifyFilters(this.mergeFilter),t=await this.getPtr();this.raw_ptr=this.backend.add_synthetic_filter(t,e)}this.ranking&&await this.set_ranking(this.ranking)},t.loadEntry=async function(){try{var e;let t=await fetch(`${this.basePath}pagefind-entry.json?ts=${Date.now()}`),n=await t.json();this.languages=n.languages,this.loadedVersion=n.version,this.includeCharacters=null!==(e=n.include_characters)&&void 0!==e?e:[],n.version!==this.version&&(this.primary?console.warn(["Pagefind JS version doesn't match the version in your search index.",`Pagefind JS: ${this.version}. Pagefind index: ${n.version}`,"If you upgraded Pagefind recently, you likely have a cached pagefind.js file.","If you encounter any search errors, try clearing your cache."].join("\n")):console.warn(["Merging a Pagefind index from a different version than the main Pagefind instance.",`Main Pagefind JS: ${this.version}. Merged index (${this.basePath}): ${n.version}`,"If you encounter any search errors, make sure that both sites are running the same version of Pagefind."].join("\n")))}catch(X){throw console.error(`Failed to load Pagefind metadata:\n${null==X?void 0:X.toString()}`),new Error("Failed to load Pagefind metadata")}},t.findIndex=function(e){if(this.languages){let t=this.languages[e];if(t)return t;if(t=this.languages[e.split("-")[0]],t)return t;let n=Object.values(this.languages).sort((e,t)=>t.page_count-e.page_count);if(n[0])return n[0]}throw new Error("Pagefind Error: No language indexes found.")},t.loadMeta=async function(e){try{let t=await fetch(`${this.basePath}pagefind.${e}.pf_meta`),n=await t.arrayBuffer();this.searchMeta=this.decompress(new Uint8Array(n),"Pagefind metadata")}catch(X){console.error(`Failed to load the meta index:\n${null==X?void 0:X.toString()}`)}},t.loadWasm=async function(e){try{const t=`${this.basePath}wasm.${e}.pagefind`;let n=await fetch(t),r=await n.arrayBuffer();const i=this.decompress(new Uint8Array(r),"Pagefind WebAssembly");if(!i)throw new Error("No WASM after decompression");this.wasm=await this.backend(i)}catch(X){throw console.error(`Failed to load the Pagefind WASM:\n${null==X?void 0:X.toString()}`),new Error(`Failed to load the Pagefind WASM:\n${null==X?void 0:X.toString()}`)}},t._loadGenericChunk=async function(e,t){try{let n=await fetch(e),r=await n.arrayBuffer(),i=this.decompress(new Uint8Array(r),e),a=await this.getPtr();this.raw_ptr=this.backend[t](a,i)}catch(X){console.error(`Failed to load the index chunk ${e}:\n${null==X?void 0:X.toString()}`)}},t.loadChunk=async function(e){if(!this.loaded_chunks[e]){const t=`${this.basePath}index/${e}.pf_index`;this.loaded_chunks[e]=this._loadGenericChunk(t,"load_index_chunk")}return await this.loaded_chunks[e]},t.loadFilterChunk=async function(e){if(!this.loaded_filters[e]){const t=`${this.basePath}filter/${e}.pf_filter`;this.loaded_filters[e]=this._loadGenericChunk(t,"load_filter_chunk")}return await this.loaded_filters[e]},t._loadFragment=async function(e){let t=await fetch(`${this.basePath}fragment/${e}.pf_fragment`),n=await t.arrayBuffer(),r=this.decompress(new Uint8Array(n),`Fragment ${e}`);return JSON.parse((new TextDecoder).decode(r))},t.loadFragment=async function(e,t,n){void 0===t&&(t=[]),this.loaded_fragments[e]||(this.loaded_fragments[e]=this._loadFragment(e));let r=await this.loaded_fragments[e];r.weighted_locations=t,r.locations=t.map(e=>e.location),r.raw_content||(r.raw_content=r.content.replace(/</g,"&lt;").replace(/>/g,"&gt;"),r.content=r.content.replace(/\u200B/g,"")),r.raw_url||(r.raw_url=r.url),r.url=this.processedUrl(r.raw_url,n);const i=C(t,this.excerptLength);return r.excerpt=I(r.raw_content,i,this.excerptLength,r.locations),r.sub_results=((e,t)=>{var n;const r=e.anchors.filter(e=>{var t;return/h\d/i.test(e.element)&&(null===(t=e.text)||void 0===t?void 0:t.length)&&/\S/.test(e.text)}).sort((e,t)=>
1e.location-t.location),i=[];let a=0,s={title:e.meta.title,url:e.url,weighted_locations:[],locations:[],excerpt:""};const o=n=>{if(s.locations.length){var r;const o=s.weighted_locations.map(e=>({weight:e.weight,balanced_score:e.balanced_score,location:e.location-a})),l=C(o,t)+a,c=n?Math.min(n-l,t):t;s.excerpt=I(null!==(r=e.raw_content)&&void 0!==r?r:"",l,c,s.locations,a,n),i.push(s)}};for(let l of e.weighted_locations)if(!r.length||l.location<r[0].location)s.weighted_locations.push(l),s.locations.push(l.location);else{let t=r.shift();for(o(t.location);r.length&&l.location>=r[0].location;)t=r.shift();let n=e.url;try{if(/^((https?:)?\/\/)/.test(n)){let e=new URL(n);e.hash=t.id,n=e.toString()}else{/^\//.test(n)||(n=`/${n}`);let e=new URL(`https://example.com${n}`);e.hash=t.id,n=e.toString().replace(/^https:\/\/example.com/,"")}}catch(X){console.error(`Pagefind: Couldn't process ${n} for a search result`)}a=t.location,s={title:t.text,url:n,anchor:t,weighted_locations:[l],locations:[l.location],excerpt:""}}return o(null===(n=r[0])||void 0===n?void 0:n.location),i})(r,this.excerptLength),r},t.fullUrl=function(e){return/^(https?:)?\/\//.test(e)?e:`${this.baseUrl}/${e}`.replace(/\/+/g,"/").replace(/^(https?:\/)/,"$1/")},t.processedUrl=function(e,t){const n=this.fullUrl(e);if(null===this.highlightParam)return n;let r=t.split(/\s+/);try{let e=new URL(n);for(const t of r)e.searchParams.append(this.highlightParam,t);return e.toString()}catch(X){try{let e=new URL(`https://example.com${n}`);for(const t of r)e.searchParams.append(this.highlightParam,t);return e.toString().replace(/^https:\/\/example\.com/,"")}catch(i){return n}}},t.getPtr=async function(){for(;null===this.raw_ptr;)await j(50);if(!this.raw_ptr)throw console.error("Pagefind: WASM Error (No pointer)"),new Error("Pagefind: WASM Error (No pointer)");return this.raw_ptr},t.stringifyFilters=function(e){return void 0===e&&(e={}),JSON.stringify(e)},t.stringifySorts=function(e){void 0===e&&(e={});let t=Object.entries(e);for(let[n,r]of t)return t.length>1&&console.warn(`Pagefind was provided multiple sort options in this search, but can only operate on one. Using the ${n} sort.`),"asc"!==r&&"desc"!==r&&console.warn(`Pagefind was provided a sort with unknown direction ${r}. Supported: [asc, desc]`),`${n}:${r}`;return""},t.filters=async function(){let e=await this.getPtr(),t=this.backend.request_all_filter_indexes(e),n=JSON.parse(t);if(Array.isArray(n)){let e=n.filter(e=>e).map(e=>this.loadFilterChunk(e));await Promise.all((0,r.A)(e))}e=await this.getPtr();let i=this.backend.filters(e);return JSON.parse(i)},t.preload=async function(e,t){void 0===t&&(t={}),await this.search(e,{...t,preload:!0})},t.search=async function(e,t){var n,i;void 0===t&&(t={}),t={verbose:!1,filters:{},sort:{},...t};const a=e=>{t.verbose&&console.log(e)};a(`Starting search on ${this.basePath}`);let s=Date.now(),o=await this.getPtr(),l=null===e;e=null!==(n=e)&&void 0!==n?n:"";let c=/^\s*".+"\s*$/.test(e);c&&a("Running an exact search");let d=null;try{d=Intl.getCanonicalLocales(this.loadedLanguage)[0]}catch(W){}const h=[];let u;if(d&&void 0!==Intl.Segmenter){const t=new Intl.Segmenter(d,{granularity:"grapheme"});u=(0,r.A)(t.segment(e)).map(e=>{let{segment:t}=e;return t})}else u=(0,r.A)(e);for(const r of u){var f;null!==(f=this.includeCharacters)&&void 0!==f&&f.includes(r)?h.push(r):/^\p{Pd}|\p{Pe}|\p{Pf}|\p{Pi}|\p{Po}|\p{Ps}$/u.test(r)||h.push(r.toLocaleLowerCase())}if(a(`Normalized search term to ${e=h.join("").replace(/\s{2,}/g," ").trim()}`),!(null!==(i=e)&&void 0!==i&&i.length||l))return{results:[],unfilteredResultCount:0,filters:{},totalFilters:{},timings:{preload:Date.now()-s,search:Date.now()-s,total:Date.now()-s}};let g=this.stringifySorts(t.sort);a(`Stringified sort to ${g}`);const _=this.stringifyFilters(t.filters);a(`Stringified filters to ${_}`);let p=this.backend.request_indexes(o,e),w=JSON.parse(p),m=this.backend.request_filter_indexes(o,_),y=JSON.parse(m),b=w.filter(e=>e).map(e=>this.loadChunk(e)),v=y.filter(e=>e).map(e=>this.loadFilterChunk(e));if(await Promise.all([].concat((0,r.A)(b),(0,r.A)(v))),a("Loaded necessary chunks to run search"),t.preload)return a("Preload — bailing out of search operation now."),null;o=await this.getPtr();let k=Date.now(),P=this.backend.search(o,e,_,g,c);a(`Got the raw search result: ${P}`);let{filtered_counts:x,total_counts:$,results:S,unfiltered_total:F,search_keywords:A}=JSON.parse(P),U=S.map(t=>{let n=t.l.map(e=>{let t={weight:e.w/24,balanced_score:e.s,location:e.l};return e.v&&(t.verbose={word_string:e.v.ws,length_bonus:e.v.lb}),t}),r=n.map(e=>e.location),i={id:t.p,score:t.s*this.indexWeight,words:r,data:async()=>await this.loadFragment(t.p,n,e)};return t.params&&(i.params={document_length:t.params.dl,average_page_length:t.params.apl,total_pages:t.params.tp}),t.scores&&(i.scores=t.scores.map(e=>({search_term:e.w,idf:e.idf,saturating_tf:e.b_tf,raw_tf:e.r_tf,pagefind_tf:e.p_tf,score:e.s,params:{weighted_term_frequency:e.params.w_tf,pages_containing_term:e.params.pct,length_bonus:e.params.lb}}))),i});const L=Date.now()-k,E=Date.now()-s;a(`Found ${S.length} result${1==S.length?"":"s"} for "${e}" in ${Date.now()-k}ms (${Date.now()-s}ms realtime)`);let M={results:U,unfilteredResultCount:F,filters:x,totalFilters:$,timings:{preload:E-L,search:L,total:E}};return A&&(M.search_keywords=A),M},e}(),R=function(){function e(e){var t;void 0===e&&(e={}),this.backend=i,this.primaryLanguage="unknown",this.searchID=0,this.primary=new O({...e,primary:!0}),this.instances=[this.primary],this.init(null===(t=e)||void 0===t?void 0:t.language)}var t=e.prototype;return t.options=async function(e){await this.primary.options(e)},t.enterPlaygroundMode=async function(){await this.primary.enterPlaygroundMode()},t.init=async function(e){var t;if(T&&null!==(t=document)&&void 0!==t&&t.querySelector){var n;const e=(null===(n=document.querySelector("html"))||void 0===n?void 0:n.getAttribute("lang"))||"unknown";this.primaryLanguage=e.toLocaleLowerCase()}await this.primary.init(e||this.primaryLanguage,{load_wasm:!0})},t.mergeIndex=async function(e,t){if(void 0===t&&(t={}),this.primary.basePath.startsWith(e))return void console.warn(`Skipping mergeIndex ${e} that appears to be the same as the primary index (${this.primary.basePath})`);let n=new O({primary:!1,basePath:e});for(this.instances.push(n);null===this.primary.wasm;)await j(50);await n.init(t.language||this.primaryLanguage,{load_wasm:!1}),delete t.language,await n.options(t)},t.mergeFilters=function(e){const t={};for(const n of e)for(const[e,r]of Object.entries(n))if(t[e]){const n=t[e];for(const[e,t]of Object.entries(r))n[e]=(n[e]||0)+t}else t[e]=r;return t},t.filters=async function(){let e=await Promise.all(this.instances.map(e=>e.filters()));return this.mergeFilters(e)},t.preload=async function(e,t){void 0===t&&(t={}),await Promise.all(this.instances.map(n=>n.preload(e,t)))},t.debouncedSearch=async function(e,t,n){const r=++this.searchID;if(this.preload(e,t),await j(n),r!==this.searchID)return null;const i=await this.search(e,t);return r!==this.searchID?null:i},t.search=async function(e,t){void 0===t&&(t={});let n=await Promise.all(this.instances.map(n=>n.search(e,t)));const r=this.mergeFilters(n.map(e=>e.filters)),i=this.mergeFilters(n.map(e=>e.totalFilters)),a=n.map(e=>e.results).flat().sort((e,t)=>
1t.score-e.score),s=n.map(e=>e.timings);let o={results:a,unfilteredResultCount:n.reduce((e,t)=>e+t.unfilteredResultCount,0),filters:r,totalFilters:i,timings:s};return n[0].search_keywords&&(o.search_keywords=n[0].search_keywords),o},e}(),N=void 0,q=void 0,B=()=>{var e;N||(N=new R(null!==(e=q)&&void 0!==e?e:{}))},J=async e=>{N?await N.options(e):q=e},G=async()=>{B()},z=async()=>{N=void 0,q=void 0},Y=async(e,t)=>(B(),await N.mergeIndex(e,t)),H=async(e,t)=>(B(),await N.search(e,t)),V=async function(e,t,n){return void 0===n&&(n=300),B(),await N.debouncedSearch(e,t,n)},K=async(e,t)=>(B(),await N.preload(e,t)),Q=async()=>(B(),await N.filters())}}]);
2//# sourceMappingURL=7394-ce9dcdf6d937024971bd.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.