PageSourceSearch

https://musejapan.jp/c8f7fe3b0e41be846d5687592cf2018ff6e22687-b96304c43c2ac7a6e571.js

js musejapan.jp collected 2026-10-04 11:31:16 UTC 35,795 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkhusky_site=self.webpackChunkhusky_site||[]).push([[317],{23419:function(e,t,n){n.r(t),n.d(t,{debouncedSearch:function(){return X},destroy:function(){return V},filters:function(){return te},init:function(){return H},mergeIndex:function(){return K},options:function(){return Y},preload:function(){return ee},search:function(){return Q}});var r=n(93433),a=n(15861),i=(n(84944),n(33792),n(64687)),s=n.n(i);function o(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var c;!function(){var e,t={};"undefined"!=typeof document&&null!==document.currentScript&&(e=new URL("UNHANDLED",location.href).toString());var n=void 0,r=null;function i(){return null!==r&&0!==r.byteLength||(r=new Uint8Array(n.memory.buffer)),r}var o=0;function u(e,t){var n=t(1*e.length,1)>>>0;return i().set(e,n/1),o=e.length,n}t.init_pagefind=function(e){var t=u(e,n.__wbindgen_malloc),r=o;return n.init_pagefind(t,r)>>>0};var l="undefined"!=typeof TextEncoder?new TextEncoder("utf-8"):{encode:function(){throw Error("TextEncoder not available")}},f="function"==typeof l.encodeInto?function(e,t){return l.encodeInto(e,t)}:function(e,t){var n=l.encode(e);return t.set(n),{read:e.length,written:n.length}};function h(e,t,n){if(void 0===n){var r=l.encode(e),a=t(r.length,1)>>>0;return i().subarray(a,a+r.length).set(r),o=r.length,a}for(var s=e.length,u=t(s,1)>>>0,c=i(),h=0;h<s;h++){var d=e.charCodeAt(h);if(d>127)break;c[u+h]=d}if(h!==s){0!==h&&(e=e.slice(h)),u=n(u,s,s=h+3*e.length,1)>>>0;var p=i().subarray(u+h,u+s);u=n(u,s,h+=f(e,p).written,1)>>>0}return o=h,u}t.set_ranking_weights=function(e,t){var r=h(t,n.__wbindgen_malloc,n.__wbindgen_realloc),a=o;return n.set_ranking_weights(e,r,a)>>>0},t.load_index_chunk=function(e,t){var r=u(t,n.__wbindgen_malloc),a=o;return n.load_index_chunk(e,r,a)>>>0},t.load_filter_chunk=function(e,t){var r=u(t,n.__wbindgen_malloc),a=o;return n.load_filter_chunk(e,r,a)>>>0},t.add_synthetic_filter=function(e,t){var r=h(t,n.__wbindgen_malloc,n.__wbindgen_realloc),a=o;return n.add_synthetic_filter(e,r,a)>>>0};var d=null;function p(){return null!==d&&0!==d.byteLength||(d=new Int32Array(n.memory.buffer)),d}var v="undefined"!=typeof TextDecoder?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:function(){throw Error("TextDecoder not available")}};function g(e,t){return e>>>=0,v.decode(i().subarray(e,e+t))}function _(e,t){return w.apply(this,arguments)}function w(){return(w=(0,a.Z)(s().mark((function e(t,n){var r,a;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!("function"==typeof Response&&t instanceof Response)){e.next=23;break}if("function"!=typeof WebAssembly.instantiateStreaming){e.next=15;break}return e.prev=2,e.next=5,WebAssembly.instantiateStreaming(t,n);case 5:case 20:return e.abrupt("return",e.sent);case 8:if(e.prev=8,e.t0=e.catch(2),"application/wasm"==t.headers.get("Content-Type")){e.next=14;break}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",e.t0),e.next=15;break;case 14:throw e.t0;case 15:return e.next=17,t.arrayBuffer();case 17:return r=e.sent,e.next=20,WebAssembly.instantiate(r,n);case 23:return e.next=25,WebAssembly.instantiate(t,n);case 25:if(!((a=e.sent)instanceof WebAssembly.Instance)){e.next=30;break}return e.abrupt("return",{instance:a,module:t});case 30:return e.abrupt("return",a);case 31:case"end":return e.stop()}}),e,null,[[2,8]])})))).apply(this,arguments)}
1function m(){var e={wbg:{}};return e}function b(e,t){return n=e.exports,x.__wbindgen_wasm_module=t,d=null,r=null,n}function x(e){return y.apply(this,arguments)}function y(){return(y=(0,a.Z)(s().mark((function t(r){var a,i,o,u;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0===n){t.next=2;break}return t.abrupt("return",n);case 2:return void 0===r&&void 0!==e&&(r=e.replace(/\.js$/,"_bg.wasm")),a=m(),("string"==typeof r||"function"==typeof Request&&r instanceof Request||"function"==typeof URL&&r instanceof URL)&&(r=fetch(r)),t.t0=_,t.next=9,r;case 9:return t.t1=t.sent,t.t2=a,t.next=13,(0,t.t0)(t.t1,t.t2);case 13:return i=t.sent,o=i.instance,u=i.module,t.abrupt("return",b(o,u));case 17:case"end":return t.stop()}}),t)})))).apply(this,arguments)}"undefined"!=typeof TextDecoder&&v.decode(),t.request_indexes=function(e,t){var r,a;try{var i=n.__wbindgen_add_to_stack_pointer(-16),s=h(t,n.__wbindgen_malloc,n.__wbindgen_realloc),u=o;n.request_indexes(i,e,s,u);var c=p()[i/4+0],l=p()[i/4+1];return r=c,a=l,g(c,l)}finally{n.__wbindgen_add_to_stack_pointer(16),n.__wbindgen_free(r,a,1)}},t.request_filter_indexes=function(e,t){var r,a;try{var i=n.__wbindgen_add_to_stack_pointer(-16),s=h(t,n.__wbindgen_malloc,n.__wbindgen_realloc),u=o;n.request_filter_indexes(i,e,s,u);var c=p()[i/4+0],l=p()[i/4+1];return r=c,a=l,g(c,l)}finally{n.__wbindgen_add_to_stack_pointer(16),n.__wbindgen_free(r,a,1)}},t.request_all_filter_indexes=function(e){var t,r;try{var a=n.__wbindgen_add_to_stack_pointer(-16);n.request_all_filter_indexes(a,e);var i=p()[a/4+0],s=p()[a/4+1];return t=i,r=s,g(i,s)}finally{n.__wbindgen_add_to_stack_pointer(16),n.__wbindgen_free(t,r,1)}},t.filters=function(e){var t,r;try{var a=n.__wbindgen_add_to_stack_pointer(-16);n.filters(a,e);var i=p()[a/4+0],s=p()[a/4+1];return t=i,r=s,g(i,s)}finally{n.__wbindgen_add_to_stack_pointer(16),n.__wbindgen_free(t,r,1)}},t.search=function(e,t,r,a,i){var s,u;try{var c=n.__wbindgen_add_to_stack_pointer(-16),l=h(t,n.__wbindgen_malloc,n.__wbindgen_realloc),f=o,d=h(r,n.__wbindgen_malloc,n.__wbindgen_realloc),v=o,_=h(a,n.__wbindgen_malloc,n.__wbindgen_realloc),w=o;n.search(c,e,l,f,d,v,_,w,i);var m=p()[c/4+0],b=p()[c/4+1];return s=m,u=b,g(m,b)}finally{n.__wbindgen_add_to_stack_pointer(16),n.__wbindgen_free(s,u,1)}},c=Object.assign(x,{initSync:function(e){if(void 0!==n)return n;var t=m();return e instanceof WebAssembly.Module||(e=new WebAssembly.Module(e)),b(new WebAssembly.Instance(e,t),e)}},t)}();var l=Uint8Array,f=Uint16Array,h=Uint32Array,d=new l([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]),p=new l([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]),v=new l([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),g=function(e,t){for(var n=new f(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];var a=new h(n[30]);for(r=1;r<30;++r)for(var i=n[r];i<n[r+1];++i)a[i]=i-n[r]<<5|r;return[n,a]},_=g(d,2),w=_[0],m=_[1];w[28]=258,m[258]=28;var b,x=g(p,0),y=x[0],k=(x[1],new f(32768));for(F=0;F<32768;++F)b=(61680&(b=(52428&(b=(43690&F)>>>1|(21845&F)<<1))>>>2|(13107&b)<<2))>>>4|(3855&b)<<4,k[F]=((65280&b)>>>8|(255&b)<<8)>>>1;var P=function(e,t,n){for(var r=e.length,a=0,i=new f(t);a<r;++a)e[a]&&++i[e[a]-1];var s,o=new f(t);for(a=0;a<t;++a)o[a]=o[a-1]+i[a-1]<<1;if(n){s=new f(1<<t);var u=15-t;for(a=0;a<r;++a)if(e[a])for(var c=a<<4|e[a],l=t-e[a],h=o[e[a]-1]++<<l,d=h|(1<<l)-1;h<=d;++h)s[k[h]>>>u]=c}else for(s=new f(r),a=0;a<r;++a)e[a]&&(s[a]=k[o[e[a]-1]++]>>>15-e[a]);return s},S=new l(288);for(F=0;F<144;++F)S[F]=8;for(F=144;F<256;++F)S[F]=9;for(F=256;F<280;++F)S[F]=7;for(F=280;F<288;++F)S[F]=8;var F,E=new l(32);for(F=0;F<32;++F)E[F]=5;var U=P(S,9,1),A=P(E,5,1),Z=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},L=function(e,t,n){var r=t/8|0;return(e[r]|e[r+1]<<8)>>(7&t)&n},I=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(7&t)}
1,D=["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"],M=function e(t,n,r){var a=new Error(n||D[t]);if(a.code=t,Error.captureStackTrace&&Error.captureStackTrace(a,e),!r)throw a;return a},W=function(e,t,n){var r=e.length;if(!r||n&&n.f&&!n.l)return t||new l(0);var a=!t||n,i=!n||n.i;n||(n={}),t||(t=new l(3*r));var s=function(e){var n=t.length;if(e>n){var r=new l(Math.max(2*n,e));r.set(t),t=r}},o=n.f||0,u=n.p||0,c=n.b||0,g=n.l,_=n.d,m=n.m,b=n.n,x=8*r;do{if(!g){o=L(e,u,1);var k=L(e,u+1,3);if(u+=3,!k){var S=e[(N=4+((u+7)/8|0))-4]|e[N-3]<<8,F=N+S;if(F>r){i&&M(0);break}a&&s(c+S),t.set(e.subarray(N,F),c),n.b=c+=S,n.p=u=8*F,n.f=o;continue}if(1==k)g=U,_=A,m=9,b=5;else if(2==k){var E=L(e,u,31)+257,D=L(e,u+10,15)+4,W=E+L(e,u+5,31)+1;u+=14;for(var j=new l(W),T=new l(19),R=0;R<D;++R)T[v[R]]=L(e,u+3*R,7);u+=3*D;var C=Z(T),O=(1<<C)-1,q=P(T,C,1);for(R=0;R<W;){var N,B=q[L(e,u,O)];if(u+=15&B,(N=B>>>4)<16)j[R++]=N;else{var $=0,J=0;for(16==N?(J=3+L(e,u,3),u+=2,$=j[R-1]):17==N?(J=3+L(e,u,7),u+=3):18==N&&(J=11+L(e,u,127),u+=7);J--;)j[R++]=$}}var G=j.subarray(0,E),z=j.subarray(E);m=Z(G),b=Z(z),g=P(G,m,1),_=P(z,b,1)}else M(1);if(u>x){i&&M(0);break}}a&&s(c+131072);for(var Y=(1<<m)-1,H=(1<<b)-1,V=u;;V=u){var K=($=g[I(e,u)&Y])>>>4;if((u+=15&$)>x){i&&M(0);break}if($||M(2),K<256)t[c++]=K;else{if(256==K){V=u,g=null;break}var Q=K-254;if(K>264){var X=d[R=K-257];Q=L(e,u,(1<<X)-1)+w[R],u+=X}var ee=_[I(e,u)&H],te=ee>>>4;ee||M(3),u+=15&ee;z=y[te];if(te>3){X=p[te];z+=I(e,u)&(1<<X)-1,u+=X}if(u>x){i&&M(0);break}a&&s(c+131072);for(var ne=c+Q;c<ne;c+=4)t[c]=t[c-z],t[c+1]=t[c+1-z],t[c+2]=t[c+2-z],t[c+3]=t[c+3-z];c=ne}}n.l=g,n.p=V,n.b=c,n.f=o,g&&(o=1,n.m=m,n.d=_,n.n=b)}while(!o);return c==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?f:4==e.BYTES_PER_ELEMENT?h:l)(n-t);return r.set(e.subarray(t,n)),r}(t,0,c)},j=new l(0);var T="undefined"!=typeof TextDecoder&&new TextDecoder;try{T.decode(j,{stream:!0}),1}catch(ne){}var R=function(e,t){return W(e.subarray(function(e){31==e[0]&&139==e[1]&&8==e[2]||M(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 l((r=(n=e).length,(n[r-4]|n[r-3]<<8|n[r-2]<<16|n[r-1]<<24)>>>0)));var n,r},C=function(e,t){if(0===e.length)return 0;for(var n,r=[],a=o(e);!(n=a()).done;){var i=n.value;r[i.location]=r[i.location]||0,r[i.location]+=i.balanced_score}if(r.length<=t)return 0;for(var s=r.slice(0,t).reduce((function(e,t){return e+t}),0),u=s,c=[0],l=0;l<r.length;l++){var f,h;(u+=(null!==(f=r[l+t])&&void 0!==f?f:0)-(null!==(h=r[l])&&void 0!==h?h:0))>s?(s=u,c=[l]):u===s&&c[c.length-1]===l-1&&c.push(l)}return c[Math.floor(c.length/2)]},O=function(e,t,n,r,a,i){var s=e.includes("​"),u=[];u=s?e.split("​"):e.split(/[\r\n\s]+/g);for(var c,l=o(r);!(c=l()).done;){var f,h=c.value;null!==(f=u[h])&&void 0!==f&&f.startsWith("<mark>")||(u[h]="<mark>"+u[h]+"</mark>")}var d=null!=i?i:u.length,p=null!=a?a:0;return d-p<n&&(n=d-p),t+n>d&&(t=d-n),t<p&&(t=p),u.slice(t,t+n).join(s?"":" ").trim()},q=function(e,t){for(var n,r,a=e.anchors.filter((function(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((function(e,t){return e.location-t.location})),i=[],s=0,u={title:e.meta.title,url:e.url,weighted_locations:[],locations:[],excerpt:""},c=function(n){if(u.locations.length){var r,a=u.weighted_locations.map((function(e){return{weight:e.weight,balanced_score:e.balanced_score,location:e.location-s}})),o=C(a,t)+s,c=n?Math.min(n-o,t):t;u.excerpt=O(null!==(r=e.raw_content)&&void 0!==r?r:"",o,c,u.locations,s,n),i.push(u)}},l=o(e.weighted_locations);!(r=l()).done;){var f=r.value;if(!a.length||f.location<a[0].location)u.weighted_locations.push(f),u.locations.push(f.location);else{var h=a.shift();for(c(h.location);a.length&&f.location>=a[0].location;)h=a.shift();var d=e.url;try{if(/^((https?:)?\/\/)/.test(d)){var p=new URL(d);p.hash=h.id,d=p.toString()}else{/^\//.test(d)||(d="/"+d);var v=new URL("https://example.com"+d);v.hash=h.id,d=v.toString().replace(/^https:\/\/example.com/,"")}}catch(ne){console.error("Pagefind: Couldn't process "+d+" for a search result")}
1s=h.location,u={title:h.text,url:d,anchor:h,weighted_locations:[f],locations:[f.location],excerpt:""}}}return c(null===(n=a[0])||void 0===n?void 0:n.location),i},N=function(){var e=(0,a.Z)(s().mark((function e(t){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return void 0===t&&(t=100),e.abrupt("return",new Promise((function(e){return setTimeout(e,t)})));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),B=function(){function e(e){var t,n,r,a,i,s;void 0===e&&(e={}),this.version="1.1.0",this.backend=c,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+"/"),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!==(i=e.mergeFilter)&&void 0!==i?i:{},this.ranking=e.ranking,this.highlightParam=null!==(s=e.highlightParam)&&void 0!==s?s: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(){var e,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=function(){var e=(0,a.Z)(s().mark((function e(t){var n,r,a,i,o,u,c,l;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=["basePath","baseUrl","indexWeight","excerptLength","mergeFilter","highlightParam","ranking"],r=0,a=Object.entries(t);case 2:if(!(r<a.length)){e.next=21;break}if(i=a[r],o=i[0],u=i[1],"mergeFilter"!==o){e.next=12;break}return c=this.stringifyFilters(u),e.next=8,this.getPtr();case 8:l=e.sent,this.raw_ptr=this.backend.add_synthetic_filter(l,c),e.next=18;break;case 12:if("ranking"!==o){e.next=17;break}return e.next=15,this.set_ranking(t.ranking);case 15:e.next=18;break;case 17:n.includes(o)?("basePath"===o&&"string"==typeof u&&(this.basePath=u),"baseUrl"===o&&"string"==typeof u&&(this.baseUrl=u),"indexWeight"===o&&"number"==typeof u&&(this.indexWeight=u),"excerptLength"===o&&"number"==typeof u&&(this.excerptLength=u),"mergeFilter"===o&&"object"==typeof u&&(this.mergeFilter=u),"highlightParam"===o&&"string"==typeof u&&(this.highlightParam=u)):console.warn("Unknown Pagefind option "+o+". Allowed options: ["+n.join(", ")+"]");case 18:r++,e.next=2;break;case 21:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),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=R(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=function(){var e=(0,a.Z)(s().mark((function e(t){var n,r,a,i,o,u;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:return o={term_similarity:null!==(n=t.termSimilarity)&&void 0!==n?n:null,page_length:null!==(r=t.pageLength)&&void 0!==r?r:null,term_saturation:null!==(a=t.termSaturation)&&void 0!==a?a:null,term_frequency:null!==(i=t.termFrequency)&&void 0!==i?i:null},e.next=5,this.getPtr();case 5:u=e.sent,this.raw_ptr=this.backend.set_ranking_weights(u,JSON.stringify(o));case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.init=function(){var e=(0,a.Z)(s().mark((function e(t,n){var r,a,i,o,u,c;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.loadEntry();case 2:return a=this.findIndex(t),i=a.wasm?a.wasm:"unknown",o=[this.loadMeta(a.hash)],!0===n.load_wasm&&o.push(this.loadWasm(i)),e.next=8,Promise.all(o);case 8:if(this.raw_ptr=this.backend.init_pagefind(new Uint8Array(this.searchMeta)),null===(r=Object.keys(this.mergeFilter))||void 0===r||!r.length){e.next=15;break}return u=this.stringifyFilters(this.mergeFilter),e.next=13,this.getPtr();case 13:c=e.sent,this.raw_ptr=this.backend.add_synthetic_filter(c,u);case 15:if(!this.ranking){e.next=18;break}return e.next=18,this.set_ranking(this.ranking);case 18:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}(),t.loadEntry=function(){var e=(0,a.Z)(s().mark((function e(){var t,n;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch(this.basePath+"pagefind-entry.json?ts="+Date.now());case 3:return t=e.sent,e.next=6,t.json();case 6:n=e.sent,this.languages=n.languages,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, tr
1y 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"))),e.next=15;break;case 11:throw e.prev=11,e.t0=e.catch(0),console.error("Failed to load Pagefind metadata:\n"+(null===e.t0||void 0===e.t0?void 0:e.t0.toString())),new Error("Failed to load Pagefind metadata");case 15:case"end":return e.stop()}}),e,this,[[0,11]])})));return function(){return e.apply(this,arguments)}}(),t.findIndex=function(e){if(this.languages){var t=this.languages[e];if(t)return t;if(t=this.languages[e.split("-")[0]])return t;var n=Object.values(this.languages).sort((function(e,t){return t.page_count-e.page_count}));if(n[0])return n[0]}throw new Error("Pagefind Error: No language indexes found.")},t.loadMeta=function(){var e=(0,a.Z)(s().mark((function e(t){var n,r;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch(this.basePath+"pagefind."+t+".pf_meta");case 3:return n=e.sent,e.next=6,n.arrayBuffer();case 6:r=e.sent,this.searchMeta=this.decompress(new Uint8Array(r),"Pagefind metadata"),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),console.error("Failed to load the meta index:\n"+(null===e.t0||void 0===e.t0?void 0:e.t0.toString()));case 13:case"end":return e.stop()}}),e,this,[[0,10]])})));return function(t){return e.apply(this,arguments)}}(),t.loadWasm=function(){var e=(0,a.Z)(s().mark((function e(t){var n,r,a,i;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n=this.basePath+"wasm."+t+".pagefind",e.next=4,fetch(n);case 4:return r=e.sent,e.next=7,r.arrayBuffer();case 7:if(a=e.sent,i=this.decompress(new Uint8Array(a),"Pagefind WebAssembly")){e.next=11;break}throw new Error("No WASM after decompression");case 11:return e.next=13,this.backend(i);case 13:this.wasm=e.sent,e.next=20;break;case 16:throw e.prev=16,e.t0=e.catch(0),console.error("Failed to load the Pagefind WASM:\n"+(null===e.t0||void 0===e.t0?void 0:e.t0.toString())),new Error("Failed to load the Pagefind WASM:\n"+(null===e.t0||void 0===e.t0?void 0:e.t0.toString()));case 20:case"end":return e.stop()}}),e,this,[[0,16]])})));return function(t){return e.apply(this,arguments)}}(),t._loadGenericChunk=function(){var e=(0,a.Z)(s().mark((function e(t,n){var r,a,i,o;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch(t);case 3:return r=e.sent,e.next=6,r.arrayBuffer();case 6:return a=e.sent,i=this.decompress(new Uint8Array(a),t),e.next=10,this.getPtr();case 10:o=e.sent,this.raw_ptr=this.backend[n](o,i),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(0),console.error("Failed to load the index chunk "+t+":\n"+(null===e.t0||void 0===e.t0?void 0:e.t0.toString()));case 17:case"end":return e.stop()}}),e,this,[[0,14]])})));return function(t,n){return e.apply(this,arguments)}}(),t.loadChunk=function(){var e=(0,a.Z)(s().mark((function e(t){var n;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.loaded_chunks[t]||(n=this.basePath+"index/"+t+".pf_index",this.loaded_chunks[t]=this._loadGenericChunk(n,"load_index_chunk")),e.next=3,this.loaded_chunks[t];case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.loadFilterChunk=function(){var e=(0,a.Z)(s().mark((function e(t){var n;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.loaded_filters[t]||(n=this.basePath+"filter/"+t+".pf_filter",this.loaded_filters[t]=this._loadGenericChunk(n,"load_filter_chunk")),e.next=3,this.loaded_filters[t];case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t._loadFragment=function(){var e=(0,a.Z)(s().mark((function e(t){var n,r,a;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.basePath+"fragment/"+t+".pf_fragment");case 2:return n=e.sent,e.next=5,n.arrayBuffer();case 5:return r=e.sent,a=this.decompress(new Uint8Array(r),"Fragment "+t),e.abrupt("return",JSON.parse((new TextDecoder).decode(a)));case 8:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.loadFragment=function(){var e=(0,a.Z)(s().mark((function e(t,n,r){var a,i;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return void 0===n&&(n=[]),this.loaded_fragments[t]||(this.loaded_fragments[t]=this._loadFragment(t)),e.next=4,this.loaded_fragments[t];case 4:return(a=e.sent).weighted_locations=n,a.locations=n.map((function(e){return e.location})),a.raw_content||(a.raw_content=a.content.replace(/</g,"&lt;").replace(/>/g,"&gt;"),a.content=a.content.replace(/\u200B/g,"")),a.raw_url||(a.raw_url=a.url),a.url=this.processedUrl(a.raw_url,r),i=C(n,this.excerptLength),a.excerpt=O(a.raw_content,i,this.excerptLength,a.locations),a.sub_results=q(a,this.excerptLength),e.abrupt("return",a);case 14:case"end":return e.stop()}}),e,this)})));return function(t,n,r){return e.apply(this,arguments)}}(),t.fullUrl=function(e){return/^(https?:)?\/\//.test(e)?e:(this.baseUrl+"/"+e).replace(/\/+/g,"/").replace(/^(https?:\/)/,"$1/")},t.processedUrl=function(e,t){var n=this.fullUrl(e);if(null===this.highlightParam)return n;var r=t.split(/\s+/);try{for(var a,i=new URL(n),s=o(r);!(a=s()).done;){var u=a.value;i.searchParams.append(this.highlightParam,u)}return i.toString()}catch(ne){try{for(var c,l=new URL("https://example.com"+n),f=o(r);!(c=f()).done;){var h=c.value;l.searchParams.append(this.highlightParam,h)}return l.toString().replace(/^https:\/\/example\.com/,"")}catch(d){return n}}},t.getPtr=function(){var e=(0,a.Z)(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!==this.raw_ptr){e.next=5;break}return e.next=3,N(50);case 3:e.next=0;break;case 5:if(this.raw_ptr){e.next=8;break}throw console.error("Pagefind: WASM Error (No pointer)"),new Error("Pagefind: WASM Error (No pointer)");case 8:return e.abrupt("return",this.raw_ptr);case 9:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}(),t.parseFilters=function(e){var t={};if(!e)return t;for(var n,r=o(e.split("__PF_FILTER_DELIM__"));!(n=r()).done;){var a=n.value.split(/:(.*)$/),i=a[0],s=a[1];if(t[i]={},s)for(var u,c=o(s.split("__PF_VALUE_DELIM__"));!(u=c()).done;){var l=u.value;if(l){var f=l.match(/^(.*):(\d+)$/);if(f){var h,d=f[1],p=f[2];t[i][d]=null!==(h=parseInt(p))&&void 0!==h?h:p}}}}return t},t.stringifyFilters=function(e){return void 0===e&&(e={}),JSON.stringify(e)},t.stringifySorts=function(e){void 0===e&&(e={});for(var t=Object.entries(e),n=0,r=t;n<r.length;n++){var a=r[n],i=a[0],s=a[1];return t.length>1&&console.warn("Pagefind was provided multiple sort options in this search, but can only operate on one. Using the "+i+" sort."),"asc"!==s&&"desc"!==s&&console.warn("Pagefind was provided a sort with unknown direction "+s+". Supported: [asc, desc]"),i+":"+s}return""},t.filters=function(){var e=(0,a.Z)(s().mark((function e(){var t,n,a,i,o=this;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getPtr();case 2:return t=e.sent,n=this.backend.request_all_filter_indexes(t),a=n.split(" ").filter((function(e){return e})).map((function(e){return o.loadFilterChunk(e)})),e.next=7,Promise.all((0,r.Z)(a));case 7:return e.next=9,this.getPtr();case 9:return t=e.sent,i=this.backend.filters(t),e.abrupt("return",this.parseFilters(i));case 12:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}(),t.preload=function(){var e=(0,a.Z)(s().mark((function e(t,n){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return void 0===n&&(n={}),e.next=3,this.search(t,Object.assign({},n,{preload:!0}));case 3:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}(),t.search=function(){var e=(0,a.Z)(s().mark((function e(t,n){var i,o,u,c,l,f,h,d,p,v,g,_,w,m,b,x,y,k,P,S,F,E,U,A,Z,L,I=this;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return void 0===n&&(n={}),n=Object.assign({verbose:!1,filters:{},sort:{}},n),(u=function(e){n.verbose&&console.log(e)})("Starting search on "+this.basePath),c=Date.now(),e.next=7,this.getPtr();case 7:if(l=e.sent,f=null===t,t=null!==(i=t)&&void 0!==i?i:"",(h=/^\s*".+"\s*$/.test(t))&&u("Running an exact search"),t=t.toLowerCase().trim().replace(/[\.`~!@#\$%\^&\*\(\)\{\}\[\]\\\|:;'",<>\/\?\-]/g,"").replace(/\s{2,}/g," ").trim(),u("Normalized search term to "+t),null!==(o=t)&&void 0!==o&&o.length||f){e.next=16;break}return e.abrupt("return",{results:[],unfilteredResultCount:0,filters:{},totalFilters:{},timings:{preload:Date.now()-c,search:Date.now()-c,total:Date.now()-c}});case 16:return d=this.stringifySorts(n.sort),u("Stringified sort to "+d),p=this.stringifyFilters(n.filters),u("Stringified filters to "+p),v=this.backend.request_indexes(l,t),g=this.backend.request_filter_indexes(l,p),_=v.split(" ").filter((function(e){return e})).map((function(e){return I.loadChunk(e)})),w=g.split(" ").filter((function(e){return e})).map((function(e){return I.loadFilterChunk(e)}
1)),e.next=26,Promise.all([].concat((0,r.Z)(_),(0,r.Z)(w)));case 26:if(u("Loaded necessary chunks to run search"),!n.preload){e.next=30;break}return u("Preload — bailing out of search operation now."),e.abrupt("return",null);case 30:return e.next=32,this.getPtr();case 32:return l=e.sent,m=Date.now(),b=this.backend.search(l,t,p,d,h),u("Got the raw search result: "+b),x=b.split(/:([^:]*):(.*)__PF_UNFILTERED_DELIM__(.*)$/),y=x[0],k=x[1],P=x[2],S=x[3],F=this.parseFilters(P),E=this.parseFilters(S),u("Remaining filters: "+JSON.stringify(b)),U=k.length?k.split(" "):[],A=U.map((function(e){var n=e.split("@"),r=n[0],i=n[1],o=n[2];u("Processing result: \n  hash:"+r+"\n  score:"+i+"\n  locations:"+o);var c,l=o.length?o.split(",").map((function(e){var t=e.split(">"),n=t[0],r=t[1],a=t[2];return{weight:parseInt(n)/24,balanced_score:parseFloat(r),location:parseInt(a)}})):[],f=l.map((function(e){return e.location}));return{id:r,score:parseFloat(i)*I.indexWeight,words:f,data:(c=(0,a.Z)(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,I.loadFragment(r,l,t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(){return c.apply(this,arguments)})}})),Z=Date.now()-m,L=Date.now()-c,u("Found "+U.length+" result"+(1==U.length?"":"s")+' for "'+t+'" in '+(Date.now()-m)+"ms ("+(Date.now()-c)+"ms realtime)"),e.abrupt("return",{results:A,unfilteredResultCount:parseInt(y),filters:F,totalFilters:E,timings:{preload:L-Z,search:Z,total:L}});case 46:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}(),e}(),$=function(){function e(e){var t;void 0===e&&(e={}),this.backend=c,this.primaryLanguage="unknown",this.searchID=0,this.primary=new B(Object.assign({},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=function(){var e=(0,a.Z)(s().mark((function e(t){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.primary.options(t);case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.init=function(){var e=(0,a.Z)(s().mark((function e(t){var n,r,a;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return null!==(n=document)&&void 0!==n&&n.querySelector&&(a=(null===(r=document.querySelector("html"))||void 0===r?void 0:r.getAttribute("lang"))||"unknown",this.primaryLanguage=a.toLocaleLowerCase()),e.next=3,this.primary.init(t||this.primaryLanguage,{load_wasm:!0});case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.mergeIndex=function(){var e=(0,a.Z)(s().mark((function e(t,n){var r;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===n&&(n={}),!this.primary.basePath.startsWith(t)){e.next=4;break}return console.warn("Skipping mergeIndex "+t+" that appears to be the same as the primary index ("+this.primary.basePath+")"),e.abrupt("return");case 4:r=new B({primary:!1,basePath:t}),this.instances.push(r);case 6:if(null!==this.primary.wasm){e.next=11;break}return e.next=9,N(50);case 9:e.next=6;break;case 11:return e.next=13,r.init(n.language||this.primaryLanguage,{load_wasm:!1});case 13:return delete n.language,e.next=16,r.options(n);case 16:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}(),t.mergeFilters=function(e){for(var t,n={},r=o(e);!(t=r()).done;)for(var a=t.value,i=0,s=Object.entries(a);i<s.length;i++){var u=s[i],c=u[0],l=u[1];if(n[c])for(var f=n[c],h=0,d=Object.entries(l);h<d.length;h++){var p=d[h],v=p[0],g=p[1];f[v]=(f[v]||0)+g}else n[c]=l}return n},t.filters=function(){var e=(0,a.Z)(s().mark((function e(){var t;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all(this.instances.map((function(e){return e.filters()})));case 2:return t=e.sent,e.abrupt("return",this.mergeFilters(t));case 4:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}(),t.preload=function(){var e=(0,a.Z)(s().mark((function e(t,n){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return void 0===n&&(n={}),e.next=3,Promise.all(this.instances.map((function(e){return e.preload(t,n)})));case 3:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}(),t.debouncedSearch=function(){var e=(0,a.Z)(s().mark((function e(t,n,r){var a,i;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=++this.searchID,this.preload(t,n),e.next=4,N(r);case 4:if(a===this.searchID){e.next=6;break}return e.abrupt("return",null);case 6:return e.next=8,this.search(t,n);case 8:if(i=e.sent,a===this.searchID){e.next=11;break}return e.abrupt("return",null);case 11:return e.abrupt("return",i);case 12:case"end":return e.stop()}}),e,this)})));return function(t,n,r){return e.apply(this,arguments)}}(),t.search=function(){var e=(0,a.Z)(s().mark((function e(t,n){var r,a,i,o,u,c;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return void 0===n&&(n={}),e.next=3,Promise.all(this.instances.map((function(e){return e.search(t,n)})));case 3:return r=e.sent,a=this.mergeFilters(r.map((function(e){return e.filters}))),i=this.mergeFilters(r.map((function(e){return e.totalFilters}))),o=r.map((function(e){return e.results})).flat().sort((function(e,t){return t.score-e.score})),u=r.map((function(e){return e.timings})),c=r.reduce((function(e,t){return e+t.unfilteredResultCount}),0),e.abrupt("return",{results:o,unfilteredResultCount:c,filters:a,totalFilters:i,timings:u});case 10:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}(),e}(),J=void 0,G=void 0,z=function(){var e;J||(J=new $(null!==(e=G)&&void 0!==e?e:{}))},Y=function(){var e=(0,a.Z)(s().mark((function e(t){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!J){e.next=5;break}return e.next=3,J.options(t);case 3:e.next=6;break;case 5:G=t;case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),H=function(){var e=(0,a.Z)(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:z();case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),V=function(){var e=(0,a.Z)(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:J=void 0,G=void 0;case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),K=function(){var e=(0,a.Z)(s().mark((function e(t,n){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return z(),e.next=3,J.mergeIndex(t,n);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),Q=function(){var e=(0,a.Z)(s().mark((function e(t,n){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return z(),e.next=3,J.search(t,n);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),X=function(){var e=(0,a.Z)(s().mark((function e(t,n,r){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return void 0===r&&(r=300),z(),e.next=4,J.debouncedSearch(t,n,r);case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),ee=function(){var e=(0,a.Z)(s().mark((function e(t,n){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return z(),e.next=3,J.preload(t,n);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),te=function(){var e=(0,a.Z)(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return z(),e.next=3,J.filters();case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()}}]);
2//# sourceMappingURL=c8f7fe3b0e41be846d5687592cf2018ff6e22687-b96304c43c2ac7a6e571.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.