PageSourceSearch

https://sanjeed.in/static/scripts/script-3-f1365b3a.js

js sanjeed.in collected 2026-09-24 10:41:45 UTC 75,333 bytes, 1 lines download raw bytes

1var Rn=Object.create;var We=Object.defineProperty;var Wn=Object.getOwnPropertyDescriptor;var Nn=Object.getOwnPropertyNames;var zn=Object.getPrototypeOf,On=Object.prototype.hasOwnProperty;var $n=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Kn=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Nn(e))!On.call(t,i)&&i!==n&&We(t,i,{get:()=>e[i],enumerable:!(r=Wn(e,i))||r.enumerable});return t};var Un=(t,e,n)=>(n=t!=null?Rn(zn(t)):{},Kn(e||!t||!t.__esModule?We(n,"default",{value:t,enumerable:!0}):n,t));var fe=$n(()=>{});var C;function O(t,e,n){let r=typeof n,i=typeof t;if(r!=="undefined"){if(i!=="undefined"){if(n){if(i==="function"&&r===i)return function(o){return t(n(o))};if(e=t.constructor,e===n.constructor){if(e===Array)return n.concat(t);if(e===Map){var s=new Map(n);for(var u of t)s.set(u[0],u[1]);return s}if(e===Set){u=new Set(n);for(s of t.values())u.add(s);return u}}}return t}return n}return i==="undefined"?e:t}function Ct(t,e){return typeof t>"u"?e:t}function R(){return Object.create(null)}function U(t){return typeof t=="string"}function Lt(t){return typeof t=="object"}function Mt(t,e){if(U(e))t=t[e];else for(let n=0;t&&n<e.length;n++)t=t[e[n]];return t}var Vn=/[^\p{L}\p{N}]+/u,Jn=/(\d{3})/g,Xn=/(\D)(\d{3})/g,Zn=/(\d{3})(\D)/g,Ne=/[\u0300-\u036f]/g;function vt(t={}){if(!this||this.constructor!==vt)return new vt(...arguments);if(arguments.length)for(t=0;t<arguments.length;t++)this.assign(arguments[t]);else this.assign(t)}C=vt.prototype;C.assign=function(t){this.normalize=O(t.normalize,!0,this.normalize);let e=t.include,n=e||t.exclude||t.split,r;if(n||n===""){if(typeof n=="object"&&n.constructor!==RegExp){let i="";r=!e,e||(i+="\\p{Z}"),n.letter&&(i+="\\p{L}"),n.number&&(i+="\\p{N}",r=!!e),n.symbol&&(i+="\\p{S}"),n.punctuation&&(i+="\\p{P}"),n.control&&(i+="\\p{C}"),(n=n.char)&&(i+=typeof n=="object"?n.join(""):n);try{this.split=new RegExp("["+(e?"^":"")+i+"]+","u")}catch{this.split=/\s+/}}else this.split=n,r=n===!1||"a1a".split(n).length<2;this.numeric=O(t.numeric,r)}else{try{this.split=O(this.split,Vn)}catch{this.split=/\s+/}this.numeric=O(t.numeric,O(this.numeric,!0))}if(this.prepare=O(t.prepare,null,this.prepare),this.finalize=O(t.finalize,null,this.finalize),n=t.filter,this.filter=typeof n=="function"?n:O(n&&new Set(n),null,this.filter),this.dedupe=O(t.dedupe,!0,this.dedupe),this.matcher=O((n=t.matcher)&&new Map(n),null,this.matcher),this.mapper=O((n=t.mapper)&&new Map(n),null,this.mapper),this.stemmer=O((n=t.stemmer)&&new Map(n),null,this.stemmer),this.replacer=O(t.replacer,null,this.replacer),this.minlength=O(t.minlength,1,this.minlength),this.maxlength=O(t.maxlength,1024,this.maxlength),this.rtl=O(t.rtl,!1,this.rtl),(this.cache=n=O(t.cache,!0,this.cache))&&(this.F=null,this.L=typeof n=="number"?n:2e5,this.B=new Map,this.D=new Map,this.I=this.H=128),this.h="",this.J=null,this.A="",this.K=null,this.matcher)for(let i of this.matcher.keys())this.h+=(this.h?"|":"")+i;
1if(this.stemmer)for(let i of this.stemmer.keys())this.A+=(this.A?"|":"")+i;return this};C.addStemmer=function(t,e){return this.stemmer||(this.stemmer=new Map),this.stemmer.set(t,e),this.A+=(this.A?"|":"")+t,this.K=null,this.cache&&gt(this),this};C.addFilter=function(t){return typeof t=="function"?this.filter=t:(this.filter||(this.filter=new Set),this.filter.add(t)),this.cache&&gt(this),this};C.addMapper=function(t,e){return typeof t=="object"?this.addReplacer(t,e):t.length>1?this.addMatcher(t,e):(this.mapper||(this.mapper=new Map),this.mapper.set(t,e),this.cache&&gt(this),this)};C.addMatcher=function(t,e){return typeof t=="object"?this.addReplacer(t,e):t.length<2&&(this.dedupe||this.mapper)?this.addMapper(t,e):(this.matcher||(this.matcher=new Map),this.matcher.set(t,e),this.h+=(this.h?"|":"")+t,this.J=null,this.cache&&gt(this),this)};C.addReplacer=function(t,e){return typeof t=="string"?this.addMatcher(t,e):(this.replacer||(this.replacer=[]),this.replacer.push(t,e),this.cache&&gt(this),this)};C.encode=function(t,e){if(this.cache&&t.length<=this.H)if(this.F){if(this.B.has(t))return this.B.get(t)}else this.F=setTimeout(gt,50,this);this.normalize&&(typeof this.normalize=="function"?t=this.normalize(t):t=Ne?t.normalize("NFKD").replace(Ne,"").toLowerCase():t.toLowerCase()),this.prepare&&(t=this.prepare(t)),this.numeric&&t.length>3&&(t=t.replace(Xn,"$1 $2").replace(Zn,"$1 $2").replace(Jn,"$1 "));let n=!(this.dedupe||this.mapper||this.filter||this.matcher||this.stemmer||this.replacer),r=[],i=R(),s,u,o=this.split||this.split===""?t.split(this.split):[t];for(let h=0,f,a;h<o.length;h++)if((f=a=o[h])&&!(f.length<this.minlength||f.length>this.maxlength)){if(e){if(i[f])continue;i[f]=1}else{if(s===f)continue;s=f}if(n)r.push(f);else if(!this.filter||(typeof this.filter=="function"?this.filter(f):!this.filter.has(f))){if(this.cache&&f.length<=this.I)if(this.F){var l=this.D.get(f);if(l||l===""){l&&r.push(l);continue}}else this.F=setTimeout(gt,50,this);if(this.stemmer){this.K||(this.K=new RegExp("(?!^)("+this.A+")$"));let c;for(;c!==f&&f.length>2;)c=f,f=f.replace(this.K,p=>this.stemmer.get(p))}if(f&&(this.mapper||this.dedupe&&f.length>1)){l="";for(let c=0,p="",D,g;c<f.length;c++)D=f.charAt(c),D===p&&this.dedupe||((g=this.mapper&&this.mapper.get(D))||g===""?g===p&&this.dedupe||!(p=g)||(l+=g):l+=p=D);f=l}if(this.matcher&&f.length>1&&(this.J||(this.J=new RegExp("("+this.h+")","g")),f=f.replace(this.J,c=>this.matcher.get(c))),f&&this.replacer)for(l=0;f&&l<this.replacer.length;l+=2)f=f.replace(this.replacer[l],this.replacer[l+1]);if(this.cache&&a.length<=this.I&&(this.D.set(a,f),this.D.size>this.L&&(this.D.clear(),this.I=this.I/1.1|0)),f){if(f!==a)if(e){if(i[f])continue;i[f]=1}else{if(u===f)continue;u=f}r.push(f)}}}return this.finalize&&(r=this.finalize(r)||r),this.cache&&t.length<=this.H&&(this.B.set(t,r),this.B.size>this.L&&(this.B.clear(),this.H=this.H/1.1|0)),r};function gt(t){t.F=null,t.B.clear(),t.D.clear()}function Fe(t,e,n){n||(e||typeof t!="object"?typeof e=="object"&&(n=e,e=0):n=t),n&&(t=n.query||t,e=n.limit||e);let r=""+(e||0);n&&(r+=(n.offset||0)+!!n.context+!!n.suggest+(n.resolve!==!1)+(n.resolution||this.resolution)+(n.boost||0)),t=(""+t).toLowerCase(),this.cache||(this.cache=new mt);let i=this.cache.get(t+r);if(!i){let s=n&&n.cache;s&&(n.cache=!1),i=this.search(t,e,n),s&&(n.cache=s),this.cache.set(t+r,i)}return i}function mt(t){this.limit=t&&t!==!0?t:1e3,this.cache=new Map,this.h=""}mt.prototype.set=function(t,e){this.cache.set(this.h=t,e),this.cache.size>this.limit&&this.cache.delete(this.cache.keys().next().value)};mt.prototype.get=function(t){let e=this.cache.get(t);return e&&this.h!==t&&(this.cache.delete(t),this.cache.set(this.h=t,e)),e};mt.prototype.remove=function(t){for(let e of this.cache){let n=e[0];e[1].includes(t)&&this.cache.delete(n)}};mt.prototype.clear=function(){this.cache.clear(),this.h=""};var ze={normalize:!1,numeric:!1,dedupe:!1},Ot={},ae=new Map([["b","p"],["v","f"],["w","f"],["z","s"],["x","s"],["d","t"],["n","m"],["c","k"],["g","k"],["j","k"],["q","k"],["i","e"],["y","e"],["u","o"]]),Oe=new Map([["ae","a"],["oe","o"],["sh","s"],["kh","k"],["th","t"],["ph","f"],["pf","f"]]),$e=[/([^aeo])h(.)/g,"$1$2",/([aeo])h([^aeo]|$)/g,"$1$2",/(.)\1+/g,"$1"],Ke={a:"",e:"",i:"",o:"",u:"",y:"",b:1,f:1,p:1,v:1,c:2,g:2,j:2,k:2,q:2,s:2,x:2,z:2,\u00DF:2,d:3,t:3,l:4,m:5,n:5,r:6},_e={Exact:ze,Default:Ot,Normalize:Ot,LatinBalance:{mapper:ae},LatinAdvanced:{mapper:ae,matcher:Oe,replacer:$e},LatinExtra:{mapper:ae,replacer:$e.concat([/(?!^)[aeo]/g,""]),matcher:Oe},LatinSoundex:{dedupe:!1,include:{letter:!0},finalize:function(t){for(let n=0;n<t.length;n++){var e=t[n];let r=e.charAt(0),i=Ke[r];for(let s=1,u;s<e.length&&(u=e.charAt(s),u==="h"||u==="w"||!(u=Ke[u])||u===i||(r+=u,i=u,r.length!==4));s++);t[n]=r}}},CJK:{split:""},LatinExact:ze,LatinDefault:Ot,LatinSimple:Ot};function Ue(t,e,n,r){let i=[];for(let s=0,u;s<t.index.length;s++)if(u=t.index[s],e>=u.length)e-=u.length;else{e=u[r?"splice":"slice"](e,n);let o=e.length;if(o&&(i=i.length?i.concat(e):e,n-=o,r&&(t.length-=o),!n))break;e=0}return i}function xt(t){if(!this||this.constructor!==xt)return new xt(t);this.index=t?[t]:[],this.length=t?t.length:0;let e=this;return new Proxy([],{get(n,r){if(r==="length")return e.length;if(r==="push")return function(i){e.index[e.index.length-1].push(i),e.length++};if(r==="pop")return function(){if(e.length)return e.length--,e.index[e.index.length-1].pop()};if(r==="indexOf")return function(i){let s=0;for(let u=0,o,l;u<e.index.length;u++){if(o=e.index[u],l=o.indexOf(i),l>=0)return s+l;s+=o.length}return-1};if(r==="includes")return function(i){for(let s=0;s<e.index.length;s++)if(e.index[s].includes(i))return!0;return!1};if(r==="slice")return function(i,s){return Ue(e,i||0,s||e.length,!1)};if(r==="splice")return function(i,s){return Ue(e,i||0,s||e.length,!0)};if(r==="constructor")return Array;
1if(typeof r!="symbol")return(n=e.index[r/2**31|0])&&n[r]},set(n,r,i){return n=r/2**31|0,(e.index[n]||(e.index[n]=[]))[r]=i,e.length++,!0}})}xt.prototype.clear=function(){this.index.length=0};xt.prototype.push=function(){};function V(t=8){if(!this||this.constructor!==V)return new V(t);this.index=R(),this.h=[],this.size=0,t>32?(this.B=qe,this.A=BigInt(t)):(this.B=Ge,this.A=t)}V.prototype.get=function(t){let e=this.index[this.B(t)];return e&&e.get(t)};V.prototype.set=function(t,e){var n=this.B(t);let r=this.index[n];r?(n=r.size,r.set(t,e),(n-=r.size)&&this.size++):(this.index[n]=r=new Map([[t,e]]),this.h.push(r),this.size++)};function J(t=8){if(!this||this.constructor!==J)return new J(t);this.index=R(),this.h=[],this.size=0,t>32?(this.B=qe,this.A=BigInt(t)):(this.B=Ge,this.A=t)}J.prototype.add=function(t){var e=this.B(t);let n=this.index[e];n?(e=n.size,n.add(t),(e-=n.size)&&this.size++):(this.index[e]=n=new Set([t]),this.h.push(n),this.size++)};C=V.prototype;C.has=J.prototype.has=function(t){let e=this.index[this.B(t)];return e&&e.has(t)};C.delete=J.prototype.delete=function(t){let e=this.index[this.B(t)];e&&e.delete(t)&&this.size--};C.clear=J.prototype.clear=function(){this.index=R(),this.h=[],this.size=0};C.values=J.prototype.values=function*(){for(let t=0;t<this.h.length;t++)for(let e of this.h[t].values())yield e};C.keys=J.prototype.keys=function*(){for(let t=0;t<this.h.length;t++)for(let e of this.h[t].keys())yield e};C.entries=J.prototype.entries=function*(){for(let t=0;t<this.h.length;t++)for(let e of this.h[t].entries())yield e};function Ge(t){let e=2**this.A-1;if(typeof t=="number")return t&e;let n=0,r=this.A+1;for(let i=0;i<t.length;i++)n=(n*r^t.charCodeAt(i))&e;return this.A===32?n+2**31:n}function qe(t){let e=BigInt(2)**this.A-BigInt(1);var n=typeof t;if(n==="bigint")return t&e;if(n==="number")return BigInt(t)&e;n=BigInt(0);let r=this.A+BigInt(1);for(let i=0;i<t.length;i++)n=(n*r^BigInt(t.charCodeAt(i)))&e;return n}var Et,St;async function Qn(t){t=t.data;var e=t.task;let n=t.id,r=t.args;if(e==="init")St=t.options||{},(e=t.factory)?(Function("return "+e)()(self),Et=new self.FlexSearch.Index(St),delete self.FlexSearch):Et=new X(St),postMessage({id:n});else{let i;e==="export"&&(r[1]?(r[0]=St.export,r[2]=0,r[3]=1):r=null),e==="import"?r[0]&&(t=await St.import.call(Et,r[0]),Et.import(r[0],t)):((i=r&&Et[e].apply(Et,r))&&i.then&&(i=await i),i&&i.await&&(i=await i.await),e==="search"&&i.result&&(i=i.result)),postMessage(e==="search"?{id:n,msg:i}:{id:n})}}function ye(t){At.call(t,"add"),At.call(t,"append"),At.call(t,"search"),At.call(t,"update"),At.call(t,"remove"),At.call(t,"searchCache")}var ge,Ve,Ut;function Yn(){ge=Ut=0}function At(t){this[t+"Async"]=function(){let e=arguments;var n=e[e.length-1];let r;if(typeof n=="function"&&(r=n,delete e[e.length-1]),ge?Ut||(Ut=Date.now()-Ve>=this.priority*this.priority*3):(ge=setTimeout(Yn,0),Ve=Date.now()),Ut){let s=this;return new Promise(u=>{setTimeout(function(){u(s[t+"Async"].apply(s,e))},0)})}let i=this[t].apply(this,e);return n=i.then?i:new Promise(s=>s(i)),r&&n.then(r),n}}var it=0;function dt(t={},e){function n(o){function l(h){h=h.data||h;let f=h.id,a=f&&s.h[f];a&&(a(h.msg),delete s.h[f])}if(this.worker=o,this.h=R(),this.worker)return i?this.worker.on("message",l):this.worker.onmessage=l,t.config?new Promise(function(h){it>1e9&&(it=0),s.h[++it]=function(){h(s)},s.worker.postMessage({id:it,task:"init",factory:r,options:t})}):(this.priority=t.priority||4,this.encoder=e||null,this.worker.postMessage({task:"init",factory:r,options:t}),this)}if(!this||this.constructor!==dt)return new dt(t);let r=typeof self<"u"?self._factory:typeof window<"u"?window._factory:null;r&&(r=r.toString());let i=typeof window>"u",s=this,u=Gn(r,i,t.worker);return u.then?u.then(function(o){return n.call(s,o)}):n.call(this,u)}rt("add");rt("append");rt("search");rt("update");rt("remove");rt("clear");rt("export");rt("import");dt.prototype.searchCache=Fe;ye(dt.prototype);function rt(t){dt.prototype[t]=function(){let e=this,n=[].slice.call(arguments);var r=n[n.length-1];let i;return typeof r=="function"&&(i=r,n.pop()),r=new Promise(function(s){t==="export"&&typeof n[0]=="function"&&(n[0]=null),it>1e9&&(it=0),e.h[++it]=s,e.worker.postMessage({task:t,id:it,args:n})}),i?(r.then(i),this):r}}function Gn(t,e,n){return e?typeof module<"u"?new(fe()).Worker(__dirname+"/worker/node.js"):Promise.resolve().then(()=>Un(fe(),1)).then(function(r){return new r.Worker(import.meta.dirname+"/node/node.mjs")}):t?new window.Worker(URL.createObjectURL(new Blob(["onmessage="+Qn.toString()],{t
1ype:"text/javascript"}))):new window.Worker(typeof n=="string"?n:import.meta.url.replace("/worker.js","/worker/worker.js").replace("flexsearch.bundle.module.min.js","module/worker/worker.js").replace("flexsearch.bundle.module.min.mjs","module/worker/worker.js"),{type:"module"})}Dt.prototype.add=function(t,e,n){if(Lt(t)&&(e=t,t=Mt(e,this.key)),e&&(t||t===0)){if(!n&&this.reg.has(t))return this.update(t,e);for(let o=0,l;o<this.field.length;o++){l=this.B[o];var r=this.index.get(this.field[o]);if(typeof l=="function"){var i=l(e);i&&r.add(t,i,n,!0)}else i=l.G,(!i||i(e))&&(l.constructor===String?l=[""+l]:U(l)&&(l=[l]),De(e,l,this.D,0,r,t,l[0],n))}if(this.tag)for(r=0;r<this.A.length;r++){var s=this.A[r];i=this.tag.get(this.F[r]);let o=R();if(typeof s=="function"){if(s=s(e),!s)continue}else{var u=s.G;if(u&&!u(e))continue;s.constructor===String&&(s=""+s),s=Mt(e,s)}if(i&&s){U(s)&&(s=[s]);for(let l=0,h,f;l<s.length;l++)if(h=s[l],!o[h]&&(o[h]=1,(u=i.get(h))?f=u:i.set(h,f=[]),!n||!f.includes(t))){if(f.length===2**31-1){if(u=new xt(f),this.fastupdate)for(let a of this.reg.values())a.includes(f)&&(a[a.indexOf(f)]=u);i.set(h,f=u)}f.push(t),this.fastupdate&&((u=this.reg.get(t))?u.push(f):this.reg.set(t,[f]))}}}if(this.store&&(!n||!this.store.has(t))){let o;if(this.h){o=R();for(let l=0,h;l<this.h.length;l++){if(h=this.h[l],(n=h.G)&&!n(e))continue;let f;if(typeof h=="function"){if(f=h(e),!f)continue;h=[h.O]}else if(U(h)||h.constructor===String){o[h]=e[h];continue}de(e,o,h,0,h[0],f)}}this.store.set(t,o||e)}this.worker&&(this.fastupdate||this.reg.add(t))}return this};function de(t,e,n,r,i,s){if(t=t[i],r===n.length-1)e[i]=s||t;else if(t)if(t.constructor===Array)for(e=e[i]=Array(t.length),i=0;i<t.length;i++)de(t,e,n,r,i);else e=e[i]||(e[i]=R()),i=n[++r],de(t,e,n,r,i)}function De(t,e,n,r,i,s,u,o){if(t=t[u])if(r===e.length-1){if(t.constructor===Array){if(n[r]){for(e=0;e<t.length;e++)i.add(s,t[e],!0,!0);return}t=t.join(" ")}i.add(s,t,o,!0)}else if(t.constructor===Array)for(u=0;u<t.length;u++)De(t,e,n,r,i,s,u,o);else u=e[++r],De(t,e,n,r,i,s,u,o)}function Ce(t,e,n,r){if(!t.length)return t;if(t.length===1)return t=t[0],t=n||t.length>e?t.slice(n,n+e):t,r?wt.call(this,t):t;let i=[];for(let s=0,u,o;s<t.length;s++)if((u=t[s])&&(o=u.length)){if(n){if(n>=o){n-=o;continue}u=u.slice(n,n+e),o=u.length,n=0}if(o>e&&(u=u.slice(0,e),o=e),!i.length&&o>=e)return r?wt.call(this,u):u;if(i.push(u),e-=o,!e)break}return i=i.length>1?[].concat.apply([],i):i[0],r?wt.call(this,i):i}function Gt(t,e,n,r){var i=r[0];if(i[0]&&i[0].query)return t[e].apply(t,i);if(!(e!=="and"&&e!=="not"||t.result.length||t.await||i.suggest))return r.length>1&&(i=r[r.length-1]),(r=i.resolve)?t.await||t.result:t;let s=[],u=0,o=0,l,h,f,a,c;for(e=0;e<r.length;e++)if(i=r[e]){var p=void 0;if(i.constructor===j)p=i.await||i.result;else if(i.then||i.constructor===Array)p=i;else{u=i.limit||0,o=i.offset||0,f=i.suggest,h=i.resolve,l=((a=i.highlight||t.highlight)||i.enrich)&&h,p=i.queue;let D=i.async||p,g=i.index,d=i.query;if(g?t.index||(t.index=g):g=t.index,d||i.tag){let F=i.field||i.pluck;if(F&&(!d||t.query&&!a||(t.query=d,t.field=F,t.highlight=a),g=g.index.get(F)),p&&(c||t.await)){c=1;let m,E=t.C.length,v=new Promise(function(b){m=b});(function(b,x){v.h=function(){x.index=null,x.resolve=!1;let k=D?b.searchAsync(x):b.search(x);return k.then?k.then(function(y){return t.C[E]=y=y.result||y,m(y),y}):(k=k.result||k,m(k),k)}})(g,Object.assign({},i)),t.C.push(v),s[e]=v;continue}else i.resolve=!1,i.index=null,p=D?g.searchAsync(i):g.search(i),i.resolve=h,i.index=g}else if(i.and)p=$t(i,"and",g);else if(i.or)p=$t(i,"or",g);else if(i.not)p=$t(i,"not",g);else if(i.xor)p=$t(i,"xor",g);else continue}p.await?(c=1,p=p.await):p.then?(c=1,p=p.then(function(D){return D.result||D})):p=p.result||p,s[e]=p}if(c&&!t.await&&(t.await=new Promise(function(D){t.return=D})),c){let D=Promise.all(s).then(function(g){for(let d=0;d<t.C.length;d++)if(t.C[d]===D){t.C[d]=function(){return n.call(t,g,u,o,l,h,f,a)};break}Ee(t)});t.C.push(D)}else if(t.await)t.C.push(function(){return n.call(t,s,u,o,l,h,f,a)});else return n.call(t,s,u,o,l,h,f,a);return h?t.await||t.result:t}function $t(t,e,n){t=t[e];let r=t[0]||t;return r.index||(r.index=n),n=new j(r),t.length>1&&(n=n[e].apply(n,t.slice(1))),n}j.prototype.or=function(){return Gt(this,"or",qn,arguments)};function qn(t,e,n,r,i,s,u){return t.length&&(this.result.length&&t.push(this.result),t.length<2?this.result=t[0]:(this.result=tn(t,e,n,!1,this.h),n=0)),i&&(this.await=null),i?this.resolve(e,n,r,u):this}j.prototype.and=function(){return Gt(this,"and",ti,arguments)};function ti(t,e,n,r,i,s,u){if(!s&&!this.result.length)return i?this.result:this;let o;if(t.length)if(this.result.length&&t.unshift(this.result),t.length<2)this.result=t[0];else{let l=0;for(let h=0,f,a;h<t.length;h++)if((f=t[h])&&(a=f.length))l<a&&(l=a);else if(!s){l=0;break}l?(this.result=Jt(t,l,e,n,s,this.h,i),o=!0):this.result=[]}else s||(this.result=t);return i&&(this.await=null),i?this.resolve(e,n,r,u,o):this}j.prototype.xor=function(){return Gt(this,"xor",ei,arguments)};function ei(t,e,n,r,i,s,u){if(t.length)if(this.result.length&&t.unshift(this.result),t.length<2)this.result=t[0];else{t:{s=n;var o=this.h;let l=[],h=R(),f=0;for(let a=0,c;a<t.length;a++)if(c=t[a]){f<c.length&&(f=c.length);for(let p=0,D;p<c.length;p++)if(D=c[p])for(let g=0,d;g<D.length;g++)d=D[g],h[d]=h[d]?2:1}for(let a=0,c,p=0;a<f;a++)for(let D=0,g;D<t.length;D++)if((g=t[D])&&(c=g[a])){for(let d=0,F;d<c.length;d++)if(F=c[d],h[F]===1)if(s)s--;else if(i){if(l.push(F),l.length===e){t=l;break t}}else{let m=a+(D?o:0);if(l[m]||(l[m]=[]),l[m].push(F),++p===e){t=l;break t}}}t=l}this.result=t,o=!0}else s||(this.result=t);return i&&(this.await=null),i?this.resolve(e,n,r,u,o):this}j.prototype.not=function(){return Gt(this,"not",ni,arguments)};function ni(t,e,n,r,i,s,u){if(!s&&!this.result.length)return i?this.result:this;if(t.length&&this.result.length){t:{s=n;var o=[];t=new Set(t.flat().flat());for(let l=0,h,f=0;l<this.result.length;l++)if(h=this.result[l]){for(let a=0,c;a<h.length;
1a++)if(c=h[a],!t.has(c)){if(s)s--;else if(i){if(o.push(c),o.length===e){t=o;break t}}else if(o[l]||(o[l]=[]),o[l].push(c),++f===e){t=o;break t}}}t=o}this.result=t,o=!0}return i&&(this.await=null),i?this.resolve(e,n,r,u,o):this}function Vt(t,e,n,r,i){let s,u,o;typeof i=="string"?(s=i,i=""):s=i.template,u=s.indexOf("$1"),o=s.substring(u+2),u=s.substring(0,u);let l=i&&i.boundary,h=!i||i.clip!==!1,f=i&&i.merge&&o&&u&&new RegExp(o+" "+u,"g");i=i&&i.ellipsis;var a=0;if(typeof i=="object"){var c=i.template;a=c.length-2,i=i.pattern}typeof i!="string"&&(i=i===!1?"":"..."),a&&(i=c.replace("$1",i)),c=i.length-a;let p,D;typeof l=="object"&&(p=l.before,p===0&&(p=-1),D=l.after,D===0&&(D=-1),l=l.total||9e5),a=new Map;for(let et=0,Q,Wt,ot;et<e.length;et++){let nt;if(r)nt=e,ot=r;else{var g=e[et];if(ot=g.field,!ot)continue;nt=g.result}Wt=n.get(ot),Q=Wt.encoder,g=a.get(Q),typeof g!="string"&&(g=Q.encode(t),a.set(Q,g));for(let lt=0;lt<nt.length;lt++){var d=nt[lt].doc;if(!d||(d=Mt(d,ot),!d))continue;var F=d.trim().split(/\s+/);if(!F.length)continue;d="";var m=[];let ht=[];for(var E=-1,v=-1,b=0,x=0;x<F.length;x++){var k=F[x],y=Q.encode(k);y=y.length>1?y.join(" "):y[0];let w;if(y&&k){for(var B=k.length,S=(Q.split?k.replace(Q.split,""):k).length-y.length,T="",W=0,z=0;z<g.length;z++){var N=g[z];if(N){var P=N.length;P+=S<0?0:S,W&&P<=W||(N=y.indexOf(N),N>-1&&(T=(N?k.substring(0,N):"")+u+k.substring(N,N+P)+o+(N+P<B?k.substring(N+P):""),W=P,w=!0))}}T&&(l&&(E<0&&(E=d.length+(d?1:0)),v=d.length+(d?1:0)+T.length,b+=B,ht.push(m.length),m.push({match:T})),d+=(d?" ":"")+T)}if(!w)k=F[x],d+=(d?" ":"")+k,l&&m.push({text:k});else if(l&&b>=l)break}if(b=ht.length*(s.length-2),p||D||l&&d.length-b>l)if(b=l+b-c*2,x=v-E,p>0&&(x+=p),D>0&&(x+=D),x<=b)F=p?E-(p>0?p:0):E-((b-x)/2|0),m=D?v+(D>0?D:0):F+b,h||(F>0&&d.charAt(F)!==" "&&d.charAt(F-1)!==" "&&(F=d.indexOf(" ",F),F<0&&(F=0)),m<d.length&&d.charAt(m-1)!==" "&&d.charAt(m)!==" "&&(m=d.lastIndexOf(" ",m),m<v?m=v:++m)),d=(F?i:"")+d.substring(F,m)+(m<d.length?i:"");else{for(v=[],E={},b={},x={},k={},y={},T=S=B=0,z=W=1;;){var $=void 0;for(let w=0,I;w<ht.length;w++){if(I=ht[w],T)if(S!==T){if(x[w+1])continue;if(I+=T,E[I]){B-=c,b[w+1]=1,x[w+1]=1;continue}if(I>=m.length-1){if(I>=m.length){x[w+1]=1,I>=F.length&&(b[w+1]=1);continue}B-=c}if(d=m[I].text,P=D&&y[w])if(P>0){if(d.length>P)if(x[w+1]=1,h)d=d.substring(0,P);else continue;(P-=d.length)||(P=-1),y[w]=P}else{x[w+1]=1;continue}if(B+d.length+1<=l)d=" "+d,v[w]+=d;else if(h)$=l-B-1,$>0&&(d=" "+d.substring(0,$),v[w]+=d),x[w+1]=1;else{x[w+1]=1;continue}}else{if(x[w])continue;if(I-=S,E[I]){B-=c,x[w]=1,b[w]=1;continue}if(I<=0){if(I<0){x[w]=1,b[w]=1;continue}B-=c}if(d=m[I].text,P=p&&k[w])if(P>0){if(d.length>P)if(x[w]=1,h)d=d.substring(d.length-P);else continue;(P-=d.length)||(P=-1),k[w]=P}else{x[w]=1;continue}if(B+d.length+1<=l)d+=" ",v[w]=d+v[w];else if(h)$=d.length+1-(l-B),$>=0&&$<d.length&&(d=d.substring($)+" ",v[w]=d+v[w]),x[w]=1;else{x[w]=1;continue}}else{d=m[I].match,p&&(k[w]=p),D&&(y[w]=D),w&&B++;let _t;if(I?!w&&c&&(B+=c):(b[w]=1,x[w]=1),I>=F.length-1||I<m.length-1&&m[I+1].match?_t=1:c&&(B+=c),B-=s.length-2,!w||B+d.length<=l)v[w]=d;else{$=W=z=b[w]=0;break}_t&&(b[w+1]=1,x[w+1]=1)}B+=d.length,$=E[I]=1}if($)S===T?T++:S++;else{if(S===T?W=0:z=0,!W&&!z)break;W?(S++,T=S):T++}}d="";for(let w=0,I;w<v.length;w++)I=(b[w]?w?" ":"":(w&&!i?" ":"")+i)+v[w],d+=I;i&&!b[v.length]&&(d+=i)}f&&(d=d.replace(f," ")),nt[lt].highlight=d}if(r)break}return e}function j(t,e){if(!this||this.constructor!==j)return new j(t,e);let n=0,r,i,s,u,o,l;if(t&&t.index){let h=t;if(e=h.index,n=h.boost||0,i=h.query){s=h.field||h.pluck,u=h.highlight;let f=h.resolve;t=h.async||h.queue,h.resolve=!1,h.index=null,t=t?e.searchAsync(h):e.search(h),h.resolve=f,h.index=e,t=t.result||t}else t=[]}if(t&&t.then){let h=this;t=t.then(function(f){h.C[0]=h.result=f.result||f,Ee(h)}),r=[t],t=[],o=new Promise(function(f){l=f})}this.index=e||null,this.result=t||[],this.h=n,this.C=r||[],this.await=o||null,this.return=l||null,this.highlight=u||null,this.query=i||"",this.field=s||""}C=j.prototype;C.limit=function(t){if(this.await){let e=this;this.C.push(function(){return e.limit(t).result})}else if(this.result.length){let e=[];for(let n=0,r;n<this.result.length;n++)if(r=this.result[n])if(r.length<=t){if(e[n]=r,t-=r.length,!t)break}else{e[n]=r.slice(0,t);break}this.result=e}return this};C.offset=function(t){if(this.await){let e=this;this.C.push(function(){return e.offset(t).result})}else if(this.result.length){let e=[];for(let n=0,r;n<this.result.length;n++)(r=this.result[n])&&(r.length<=t?t-=r.length:(e[n]=r.slice(t),t=0));this.result=e}return this};C.boost=function(t){if(this.await){let e=this;this.C.push(function(){return e.boost(t).result})}else this.h+=t;return this};function Ee(t,e){let n=t.result;var r=t.await;t.await=null;for(let i=0,s;i<t.C.length;i++)if(s=t.C[i]){if(typeof s=="function")n=s(),t.C[i]=n=n.result||n,i--;else if(s.h)n=s.h(),t.C[i]=n=n.result||n,i--;else if(s.then)return t.await=r}return r=t.return,t.C=[],t.return=null,e||r(n),n}C.resolve=function(t,e,n,r,i){let s=this.await?Ee(this,!0):this.result;if(s.then){let u=this;return s.then(function(){return u.resolve(t,e,n,r,i)})}return s.length&&(typeof t=="object"?(r=t.highlight||this.highlight,n=!!r||t.enrich,e=t.offset,t=t.limit):(r=r||this.highlight,n=!!r||n),s=i?n?wt.call(this.index,s):s:Ce.call(this.index,s,t||100,e,n)),this.finalize(s,r)};C.finalize=function(t,e){if(t.then){let r=this;return t.then(function(i){return r.finalize(i,e)})}e&&t.length&&this.query&&(t=Vt(this.query,t,this.index.index,this.field,e));let n=this.return;return this.highlight=this.index=this.result=this.C=this.await=this.return=null,this.query=this.field="",n&&n(t),t};function Jt(t,e,n,r,i,s,u){let o=t.length,l=[],h,f;h=R();for(let a=0,c,p,D,g;a<e;a++)for(let d=0;d<o;d++)if(D=t[d],a<D.length&&(c=D[a]))for(let F=0;F<c.length;F++){if(p=c[F],(f=h[p])?h[p]++:(f=0,h[p]=1),g=l[f]||(l[f]=[]),!u){let m=a+(d||!i?0:s||0);g=g[m]||(g[m]=[])}if(g.push(p),u&&n&&f===o-1&&g.length-r===n)return r?g.slice(r):g}if(t=l.length)if(i)l=l.length>1?tn(l,n,r,u,s):(l=l[0])&&n&&l.length>n||r?l.slice(r,n+r):l;
1else{if(t<o)return[];if(l=l[t-1],n||r)if(u)(l.length>n||r)&&(l=l.slice(r,n+r));else{i=[];for(let a=0,c;a<l.length;a++)if(c=l[a]){if(r&&c.length>r)r-=c.length;else if((n&&c.length>n||r)&&(c=c.slice(r,n+r),n-=c.length,r&&(r-=c.length)),i.push(c),!n)break}l=i}}return l}function tn(t,e,n,r,i){let s=[],u=R(),o;var l=t.length;let h;if(r){for(i=l-1;i>=0;i--)if(h=(r=t[i])&&r.length){for(l=0;l<h;l++)if(o=r[l],!u[o]){if(u[o]=1,n)n--;else if(s.push(o),s.length===e)return s}}}else for(let f=l-1,a,c=0;f>=0;f--){a=t[f];for(let p=0;p<a.length;p++)if(h=(r=a[p])&&r.length){for(let D=0;D<h;D++)if(o=r[D],!u[o])if(u[o]=1,n)n--;else{let g=(p+(f<l-1&&i||0))/(f+1)|0;if((s[g]||(s[g]=[])).push(o),++c===e)return s}}}return s}function ii(t,e,n,r,i){let s=R(),u=[];for(let o=0,l;o<e.length;o++){l=e[o];for(let h=0;h<l.length;h++)s[l[h]]=1}if(i){for(let o=0,l;o<t.length;o++)if(l=t[o],s[l]){if(r)r--;else if(u.push(l),s[l]=0,n&&--n===0)break}}else for(let o=0,l,h;o<t.result.length;o++)for(l=t.result[o],e=0;e<l.length;e++)h=l[e],s[h]&&((u[o]||(u[o]=[])).push(h),s[h]=0);return u}R();Dt.prototype.search=function(t,e,n,r){n||(!e&&Lt(t)?(n=t,t=""):Lt(e)&&(n=e,e=0));let i=[];var s=[];let u,o,l,h,f,a,c=0,p=!0,D;if(n){n.constructor===Array&&(n={index:n}),t=n.query||t,u=n.pluck,o=n.merge,h=n.boost,a=u||n.field||(a=n.index)&&(a.index?null:a);var g=this.tag&&n.tag;l=n.suggest,p=n.resolve!==!1,f=n.cache,D=p&&this.store&&n.highlight;var d=!!D||p&&this.store&&n.enrich;e=n.limit||e;var F=n.offset||0;if(e||(e=p?100:0),g&&(!this.db||!r)){g.constructor!==Array&&(g=[g]);var m=[];for(let k=0,y;k<g.length;k++)if(y=g[k],y.field&&y.tag){var E=y.tag;if(E.constructor===Array)for(var v=0;v<E.length;v++)m.push(y.field,E[v]);else m.push(y.field,E)}else{E=Object.keys(y);for(let B=0,S,T;B<E.length;B++)if(S=E[B],T=y[S],T.constructor===Array)for(v=0;v<T.length;v++)m.push(S,T[v]);else m.push(S,T)}if(g=m,!t){if(s=[],m.length)for(g=0;g<m.length;g+=2){if(this.db){if(r=this.index.get(m[g]),!r)continue;s.push(r=r.db.tag(m[g+1],e,F,d))}else r=ri.call(this,m[g],m[g+1],e,F,d);i.push(p?{field:m[g],tag:m[g+1],result:r}:[r])}if(s.length){let k=this;return Promise.all(s).then(function(y){for(let B=0;B<y.length;B++)p?i[B].result=y[B]:i[B]=y[B];return p?i:new j(i.length>1?Jt(i,1,0,0,l,h):i[0],k)})}return p?i:new j(i.length>1?Jt(i,1,0,0,l,h):i[0],this)}}p||u||!(a=a||this.field)||(U(a)?u=a:(a.constructor===Array&&a.length===1&&(a=a[0]),u=a.field||a.index)),a&&a.constructor!==Array&&(a=[a])}a||(a=this.field);let b;m=(this.worker||this.db)&&!r&&[];for(let k=0,y,B,S;k<a.length;k++){if(B=a[k],this.db&&this.tag&&!this.B[k])continue;let T;if(U(B)||(T=B,B=T.field,t=T.query||t,e=Ct(T.limit,e),F=Ct(T.offset,F),l=Ct(T.suggest,l),D=p&&this.store&&Ct(T.highlight,D),d=!!D||p&&this.store&&Ct(T.enrich,d),f=Ct(T.cache,f)),r)y=r[k];else{E=T||n||{},v=E.enrich;var x=this.index.get(B);if(g&&(this.db&&(E.tag=g,E.field=a,b=x.db.support_tag_search),!b&&v&&(E.enrich=!1),b||(E.limit=0,E.offset=0)),y=f?x.searchCache(t,g&&!b?0:e,E):x.search(t,g&&!b?0:e,E),g&&!b&&(E.limit=e,E.offset=F),v&&(E.enrich=v),m){m[k]=y;continue}}if(S=(y=y.result||y)&&y.length,g&&S){if(E=[],v=0,this.db&&r){if(!b)for(x=a.length;x<r.length;x++){let W=r[x];if(W&&W.length)v++,E.push(W);else if(!l)return p?i:new j(i,this)}}else for(let W=0,z,N;W<g.length;W+=2){if(z=this.tag.get(g[W]),!z){if(l)continue;return p?i:new j(i,this)}if(N=(z=z&&z.get(g[W+1]))&&z.length)v++,E.push(z);else if(!l)return p?i:new j(i,this)}if(v){if(y=ii(y,E,e,F,p),S=y.length,!S&&!l)return p?y:new j(y,this);v--}}if(S)s[c]=B,i.push(y),c++;else if(a.length===1)return p?i:new j(i,this)}if(m){if(this.db&&g&&g.length&&!b)for(d=0;d<g.length;d+=2){if(s=this.index.get(g[d]),!s){if(l)continue;return p?i:new j(i,this)}m.push(s.db.tag(g[d+1],e,F,!1))}let k=this;return Promise.all(m).then(function(y){return n&&(n.resolve=p),y.length&&(y=k.search(t,e,n,y)),y})}if(!c)return p?i:new j(i,this);if(u&&(!d||!this.store))return i=i[0],p?i:new j(i,this);for(m=[],F=0;F<s.length;F++){if(g=i[F],d&&g.length&&typeof g[0].doc>"u"&&(this.db?m.push(g=this.index.get(this.field[0]).db.enrich(g)):g=wt.call(this,g)),u)return p?D?Vt(t,g,this.index,u,D):g:new j(g,this);i[F]={field:s[F],result:g}}if(d&&this.db&&m.length){let k=this;return Promise.all(m).then(function(y){for(let B=0;B<y.length;B++)i[B].result=y[B];return D&&(i=Vt(t,i,k.index,u,D)),o?Je(i):i})}return D&&(i=Vt(t,i,this.index,u,D)),o?Je(i):i};function Je(t){let e=[],n=R(),r=R();for(let i=0,s,u,o,l,h,f,a;i<t.length;i++){s=t[i],u=s.field,o=s.result;for(let c=0;c<o.length;c++)h=o[c],typeof h!="object"?h={id:l=h}:l=h.id,(f=n[l])?f.push(u):(h.field=n[l]=[u],e.push(h)),(a=h.highlight)&&(f=r[l],f||(r[l]=f={},h.highlight=f),f[u]=a)}return e}function ri(t,e,n,r,i){return t=this.tag.get(t),t?(t=t.get(e),t?(e=t.length-r,e>0&&((n&&e>
1n||r)&&(t=t.slice(r,r+n)),i&&(t=wt.call(this,t))),t):[]):[]}function wt(t){if(!this||!this.store)return t;if(this.db)return this.index.get(this.field[0]).db.enrich(t);let e=Array(t.length);for(let n=0,r;n<t.length;n++)r=t[n],e[n]={id:r,doc:this.store.get(r)};return e}function Dt(t){if(!this||this.constructor!==Dt)return new Dt(t);let e=t.document||t.doc||t,n,r;if(this.B=[],this.field=[],this.D=[],this.key=(n=e.key||e.id)&&Xt(n,this.D)||"id",(r=t.keystore||0)&&(this.keystore=r),this.fastupdate=!!t.fastupdate,this.reg=!this.fastupdate||t.worker||t.db?r?new J(r):new Set:r?new V(r):new Map,this.h=(n=e.store||null)&&n&&n!==!0&&[],this.store=n?r?new V(r):new Map:null,this.cache=(n=t.cache||null)&&new mt(n),t.cache=!1,this.worker=t.worker||!1,this.priority=t.priority||4,this.index=si.call(this,t,e),this.tag=null,(n=e.tag)&&(typeof n=="string"&&(n=[n]),n.length)){this.tag=new Map,this.A=[],this.F=[];for(let i=0,s,u;i<n.length;i++){if(s=n[i],u=s.field||s,!u)throw Error("The tag field from the document descriptor is undefined.");s.custom?this.A[i]=s.custom:(this.A[i]=Xt(u,this.D),s.filter&&(typeof this.A[i]=="string"&&(this.A[i]=new String(this.A[i])),this.A[i].G=s.filter)),this.F[i]=u,this.tag.set(u,new Map)}}if(this.worker){this.fastupdate=!1,t=[];for(let i of this.index.values())i.then&&t.push(i);if(t.length){let i=this;return Promise.all(t).then(function(s){let u=0;for(let o of i.index.entries()){let l=o[0],h=o[1];
1h.then&&(h=s[u],i.index.set(l,h),u++)}return i})}}else t.db&&(this.fastupdate=!1,this.mount(t.db))}C=Dt.prototype;C.mount=function(t){let e=this.field;if(this.tag)for(let s=0,u;s<this.F.length;s++){u=this.F[s];var n=void 0;this.index.set(u,n=new X({},this.reg)),e===this.field&&(e=e.slice(0)),e.push(u),n.tag=this.tag.get(u)}n=[];let r={db:t.db,type:t.type,fastupdate:t.fastupdate};for(let s=0,u,o;s<e.length;s++){r.field=o=e[s],u=this.index.get(o);let l=new t.constructor(t.id,r);l.id=t.id,n[s]=l.mount(u),u.document=!0,s?u.bypass=!0:u.store=this.store}let i=this;return this.db=Promise.all(n).then(function(){i.db=!0})};C.commit=async function(){let t=[];for(let e of this.index.values())t.push(e.commit());await Promise.all(t),this.reg.clear()};C.destroy=function(){let t=[];for(let e of this.index.values())t.push(e.destroy());return Promise.all(t)};function si(t,e){let n=new Map,r=e.index||e.field||e;U(r)&&(r=[r]);for(let s=0,u,o;s<r.length;s++){if(u=r[s],U(u)||(o=u,u=u.field),o=Lt(o)?Object.assign({},t,o):t,this.worker){var i=void 0;i=(i=o.encoder)&&i.encode?i:new vt(typeof i=="string"?_e[i]:i||{}),i=new dt(o,i),n.set(u,i)}this.worker||n.set(u,new X(o,this.reg)),o.custom?this.B[s]=o.custom:(this.B[s]=Xt(u,this.D),o.filter&&(typeof this.B[s]=="string"&&(this.B[s]=new String(this.B[s])),this.B[s].G=o.filter)),this.field[s]=u}if(this.h){t=e.store,U(t)&&(t=[t]);for(let s=0,u,o;s<t.length;s++)u=t[s],o=u.field||u,u.custom?(this.h[s]=u.custom,u.custom.O=o):(this.h[s]=Xt(o,this.D),u.filter&&(typeof this.h[s]=="string"&&(this.h[s]=new String(this.h[s])),this.h[s].G=u.filter))}return n}function Xt(t,e){let n=t.split(":"),r=0;for(let i=0;i<n.length;i++)t=n[i],t[t.length-1]==="]"&&(t=t.substring(0,t.length-2))&&(e[r]=!0),t&&(n[r++]=t);return r<n.length&&(n.length=r),r>1?n:n[0]}C.append=function(t,e){return this.add(t,e,!0)};C.update=function(t,e){return this.remove(t).add(t,e)};C.remove=function(t){Lt(t)&&(t=Mt(t,this.key));for(var e of this.index.values())e.remove(t,!0);if(this.reg.has(t)){if(this.tag&&!this.fastupdate)for(let n of this.tag.values())for(let r of n){e=r[0];let i=r[1],s=i.indexOf(t);s>-1&&(i.length>1?i.splice(s,1):n.delete(e))}this.store&&this.store.delete(t),this.reg.delete(t)}return this.cache&&this.cache.remove(t),this};C.clear=function(){let t=[];for(let e of this.index.values()){let n=e.clear();
1n.then&&t.push(n)}if(this.tag)for(let e of this.tag.values())e.clear();return this.store&&this.store.clear(),this.cache&&this.cache.clear(),t.length?Promise.all(t):this};C.contain=function(t){return this.db?this.index.get(this.field[0]).db.has(t):this.reg.has(t)};C.cleanup=function(){for(let t of this.index.values())t.cleanup();return this};C.get=function(t){return this.db?this.index.get(this.field[0]).db.enrich(t).then(function(e){return e[0]&&e[0].doc||null}):this.store.get(t)||null};C.set=function(t,e){return typeof t=="object"&&(e=t,t=Mt(e,this.key)),this.store.set(t,e),this};C.searchCache=Fe;C.export=ui;C.import=oi;ye(Dt.prototype);function Ae(t,e=0){let n=[],r=[];e&&(e=25e4/e*5e3|0);for(let i of t.entries())r.push(i),r.length===e&&(n.push(r),r=[]);return r.length&&n.push(r),n}function we(t,e){e||(e=new Map);for(let n=0,r;n<t.length;n++)r=t[n],e.set(r[0],r[1]);return e}function en(t,e=0){let n=[],r=[];e&&(e=25e4/e*1e3|0);for(let i of t.entries())r.push([i[0],Ae(i[1])[0]||[]]),r.length===e&&(n.push(r),r=[]);return r.length&&n.push(r),n}function nn(t,e){e||(e=new Map);for(let n=0,r,i;n<t.length;n++)r=t[n],i=e.get(r[0]),e.set(r[0],we(r[1],i));return e}function rn(t){let e=[],n=[];for(let r of t.keys())n.push(r),n.length===25e4&&(e.push(n),n=[]);return n.length&&e.push(n),e}function sn(t,e){e||(e=new Set);for(let n=0;n<t.length;n++)e.add(t[n]);return e}function Zt(t,e,n,r,i,s,u=0){let o=r&&r.constructor===Array;var l=o?r.shift():r;if(!l)return this.export(t,e,i,s+1);if((l=t((e?e+".":"")+(u+1)+"."+n,JSON.stringify(l)))&&l.then){let h=this;return l.then(function(){return Zt.call(h,t,e,n,o?r:null,i,s,u+1)})}return Zt.call(this,t,e,n,o?r:null,i,s,u+1)}function ui(t,e,n=0,r=0){if(n<this.field.length){let u=this.field[n];if((e=this.index.get(u).export(t,u,n,r=1))&&e.then){let o=this;return e.then(function(){return o.export(t,u,n+1)})}return this.export(t,u,n+1)}let i,s;switch(r){case 0:i="reg",s=rn(this.reg),e=null;break;case 1:i="tag",s=this.tag&&en(this.tag,this.reg.size),e=null;break;case 2:i="doc",s=this.store&&Ae(this.store),e=null;break;default:return}return Zt.call(this,t,e,i,s||null,n,r)}function oi(t,e){var n=t.split(".");n[n.length-1]==="json"&&n.pop();let r=n.length>2?n[0]:"";if(n=n.length>2?n[2]:n[1],this.worker&&r)return this.index.get(r).import(t);if(e){if(typeof e=="string"&&(e=JSON.parse(e)),r)return this.index.get(r).import(n,e);switch(n){case"reg":this.fastupdate=!1,this.reg=sn(e,this.reg);for(let i=0,s;i<this.field.length;i++)s=this.index.get(this.field[i]),s.fastupdate=!1,s.reg=this.reg;if(this.worker){e=[];for(let i of this.index.values())e.push(i.import(t));return Promise.all(e)}break;case"tag":this.tag=nn(e,this.tag);break;case"doc":this.store=we(e,this.store)}}}function Xe(t,e){let n="";for(let r of t.entries()){t=r[0];let i=r[1],s="";for(let u=0,o;u<i.length;u++){o=i[u]||[""];let l="";for(let h=0;h<o.length;h++)l+=(l?",":"")+(e==="string"?'"'+o[h]+'"':o[h]);l="["+l+"]",s+=(s?",":"")+l}s='["'+t+'",['+s+"]]",n+=(n?",":"")+s}return n}X.prototype.remove=function(t,e){let n=this.reg.size&&(this.fastupdate?this.reg.get(t):this.reg.has(t));if(n){if(this.fastupdate){for(let r=0,i,s;r<n.length;r++)if((i=n[r])&&(s=i.length))if(i[s-1]===t)i.pop();else{let u=i.indexOf(t);u>=0&&i.splice(u,1)}}else jt(this.map,t),this.depth&&jt(this.ctx,t);e||this.reg.delete(t)}return this.db&&(this.commit_task.push({del:t}),this.M&&un(this)),this.cache&&this.cache.remove(t),this};function jt(t,e){let n=0;var r=typeof e>"u";if(t.constructor===Array){for(let i=0,s,u,o;i<t.length;i++)if((s=t[i])&&s.length){if(r)return 1;if(u=s.indexOf(e),u>=0){if(s.length>1)return s.splice(u,1),1;if(delete t[i],n)return 1;o=1}else{if(o)return 1;n++}}}else for(let i of t.entries())r=i[0],jt(i[1],e)?n++:t.delete(r);return n}var li={memory:{resolution:1},performance:{resolution:3,fastupdate:!0,context:{depth:1,resolution:1}},match:{tokenize:"forward"},score:{resolution:9,context:{depth:2,resolution:3}}};X.prototype.add=function(t,e,n,r){if(e&&(t||t===0)){if(!r&&!n&&this.reg.has(t))return this.update(t,e);r=this.depth,e=this.encoder.encode(e,!r);let h=e.length;if(h){let f=R(),a=R(),c=this.resolution;for(let p=0;p<h;p++){let D=e[this.rtl?h-1-p:p];var i=D.length;if(i&&(r||!a[D])){var s=this.score?this.score(e,D,p,null,0):Kt(c,h,p),u="";switch(this.tokenize){case"tolerant":if(G(this,a,D,s,t,n),i>2){for(let g=1,d,F,m,E;g<i-1;g++)d=D.charAt(g),F=D.charAt(g+1),m=D.substring(0,g)+F,E=D.substring(g+2),u=m+d+E,G(this,a,u,s,t,n),u=m+E,G(this,a,u,s,t,n);G(this,a,D.substring(0,D.length-1),s,t,n)}break;case"full":if(i>2){for(let g=0,d;g<i;g++)for(s=i;s>g;s--){u=D.substring(g,s),d=this.rtl?i-1-g:g;var o=this.score?this.score(e,D,p,u,d):Kt(c,h,p,i,d);G(this,a,u,o,t,n)}break}case"bidirectional":case"reverse":if(i>1){for(o=i-1;o>0;o--){u=D[this.rtl?i-1-o:o]+u;var l=this.score?this.score(e,D,p,u,o):Kt(c,h,p,i,o);G(this,a,u,l,t,n)}u=""}case"forward":if(i>1){for(o=0;o<i;o++)u+=D[this.rtl?i-1-o:o],G(this,a,u,s,t,n);break}default:if(G(this,a,D,s,t,n),r&&h>1&&p<h-1)for(i=this.N,u=D,s=Math.min(r+1,this.rtl?p+1:h-p),o=1;o<s;o++){D=e[this.rtl?h-1-p-o:p+o],l=this.bidirectional&&D>u;let g=this.score?this.score(e,u,p,D,o-1):Kt(i+(h/2>i?0:1),h,p,s-1,o-1);G(this,f,l?u:D,g,t,n,l?D:u)}}}}this.fastupdate||this.reg.add(t)}}return this.db&&(this.commit_task.push(n?{ins:t}:{del:t}),this.M&&un(this)),this};function G(t,e,n,r,i,s,u){let o,l;if(!(o=e[n])||u&&!o[u]){if(u?(e=o||(e[n]=R()),e[u]=1,l=t.ctx,(o=l.get(u))?l=o:l.set(u,l=t.keystore?new V(t.keystore):new Map)):(l=t.map,e[n]=1),(
1o=l.get(n))?l=o:l.set(n,l=o=[]),s){for(let h=0,f;h<o.length;h++)if((f=o[h])&&f.includes(i)){if(h<=r)return;f.splice(f.indexOf(i),1),t.fastupdate&&(e=t.reg.get(i))&&e.splice(e.indexOf(f),1);break}}if(l=l[r]||(l[r]=[]),l.push(i),l.length===2**31-1){if(e=new xt(l),t.fastupdate)for(let h of t.reg.values())h.includes(l)&&(h[h.indexOf(l)]=e);o[r]=l=e}t.fastupdate&&((r=t.reg.get(i))?r.push(l):t.reg.set(i,[l]))}}function Kt(t,e,n,r,i){return n&&t>1?e+(r||0)<=t?n+(i||0):(t-1)/(e+(r||0))*(n+(i||0))+1|0:0}X.prototype.search=function(t,e,n){if(n||(e||typeof t!="object"?typeof e=="object"&&(n=e,e=0):(n=t,t="")),n&&n.cache)return n.cache=!1,t=this.searchCache(t,e,n),n.cache=!0,t;let r=[],i,s,u,o=0,l,h,f,a,c;n&&(t=n.query||t,e=n.limit||e,o=n.offset||0,s=n.context,u=n.suggest,c=(l=n.resolve)&&n.enrich,f=n.boost,a=n.resolution,h=this.db&&n.tag),typeof l>"u"&&(l=this.resolve),s=this.depth&&s!==!1;let p=this.encoder.encode(t,!s);if(i=p.length,e=e||(l?100:0),i===1)return Qe.call(this,p[0],"",e,o,l,c,h);if(i===2&&s&&!u)return Qe.call(this,p[1],p[0],e,o,l,c,h);let D=R(),g=0,d;if(s&&(d=p[0],g=1),a||a===0||(a=d?this.N:this.resolution),this.db){if(this.db.search&&(n=this.db.search(this,p,e,o,u,l,c,h),n!==!1))return n;let F=this;return(async function(){for(let m,E;g<i;g++){if((E=p[g])&&!D[E]){if(D[E]=1,m=await me(F,E,d,0,0,!1,!1),m=Ye(m,r,u,a)){r=m;break}d&&(u&&m&&r.length||(d=E))}u&&d&&g===i-1&&!r.length&&(a=F.resolution,d="",g=-1,D=R())}return Ze(r,a,e,o,u,f,l)})()}for(let F,m;g<i;g++){if((m=p[g])&&!D[m]){if(D[m]=1,F=me(this,m,d,0,0,!1,!1),F=Ye(F,r,u,a)){r=F;break}d&&(u&&F&&r.length||(d=m))}u&&d&&g===i-1&&!r.length&&(a=this.resolution,d="",g=-1,D=R())}return Ze(r,a,e,o,u,f,l)};function Ze(t,e,n,r,i,s,u){let o=t.length,l=t;if(o>1)l=Jt(t,e,n,r,i,s,u);else if(o===1)return u?Ce.call(null,t[0],n,r):new j(t[0],this);return u?l:new j(l,this)}function Qe(t,e,n,r,i,s,u){return t=me(this,t,e,n,r,i,s,u),this.db?t.then(function(o){return i?o||[]:new j(o,this)}):t&&t.length?i?Ce.call(this,t,n,r):new j(t,this):i?[]:new j([],this)}function Ye(t,e,n,r){let i=[];if(t&&t.length){if(t.length<=r){e.push(t);return}for(let s=0,u;s<r;s++)(u=t[s])&&(i[s]=u);if(i.length){e.push(i);return}}if(!n)return i}function me(t,e,n,r,i,s,u,o){let l;return n&&(l=t.bidirectional&&e>n)&&(l=n,n=e,e=l),t.db?t.db.get(e,n,r,i,s,u,o):(t=n?(t=t.ctx.get(n))&&t.get(e):t.map.get(e),t)}function X(t,e){if(!this||this.constructor!==X)return new X(t);if(t){var n=U(t)?t:t.preset;n&&(t=Object.assign({},li[n],t))}else t={};n=t.context;let r=n===!0?{depth:1}:n||{},i=U(t.encoder)?_e[t.encoder]:t.encode||t.encoder||{};this.encoder=i.encode?i:typeof i=="object"?new vt(i):{encode:i},this.resolution=t.resolution||9,this.tokenize=n=(n=t.tokenize)&&n!=="default"&&n!=="exact"&&n||"strict",this.depth=n==="strict"&&r.depth||0,this.bidirectional=r.bidirectional!==!1,this.fastupdate=!!t.fastupdate,this.score=t.score||null,(n=t.keystore||0)&&(this.keystore=n),this.map=n?new V(n):new Map,this.ctx=n?new V(n):new Map,this.reg=e||(this.fastupdate?n?new V(n):new Map:n?new J(n):new Set),this.N=r.resolution||3,this.rtl=i.rtl||t.rtl||!1,this.cache=(n=t.cache||null)&&new mt(n),this.resolve=t.resolve!==!1,(n=t.db)&&(this.db=this.mount(n)),this.M=t.commit!==!1,this.commit_task=[],this.commit_timer=null,this.priority=t.priority||4}C=X.prototype;C.mount=function(t){return this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null),t.mount(this)};C.commit=function(){return this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null),this.db.commit(this)};C.destroy=function(){return this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null),this.db.destroy()};function un(t){t.commit_timer||(t.commit_timer=setTimeout(function(){t.commit_timer=null,t.db.commit(t)},1))}C.clear=function(){return this.map.clear(),this.ctx.clear(),this.reg.clear(),this.cache&&this.cache.clear(),this.db?(this.commit_timer&&clearTimeout(this.commit_timer),this.commit_timer=null,this.commit_task=[],this.db.clear()):this};C.append=function(t,e){return this.add(t,e,!0)};C.contain=function(t){return this.db?this.db.has(t):this.reg.has(t)};C.update=function(t,e){let n=this,r=this.remove(t);return r&&r.then?r.then(()=>n.add(t,e)):this.add(t,e)};C.cleanup=function(){return this.fastupdate?(jt(this.map),this.depth&&jt(this.ctx),this):this};C.searchCache=Fe;C.export=function(t,e,n=0,r=0){let i,s;switch(r){case 0:i="reg",s=rn(this.reg);break;case 1:i="cfg",s=null;break;case 2:i="map",s=Ae(this.map,this.reg.size);break;case 3:i="ctx",s=en(this.ctx,this.reg.size);break;default:return}return Zt.call(this,t,e,i,s,n,r)};C.import=function(t,e){if(e)switch(typeof e=="string"&&(e=JSON.parse(e)),t=t.split("."),t[t.length-1]==="json"&&t.pop(),t.length===3&&t.shift(),t=t.length>1?t[1]:t[0],t){case"reg":this.fastupdate=!1,this.reg=sn(e,this.reg);break;case"map":this.map=we(e,this.map);break;case"ctx":this.ctx=nn(e,this.ctx)}};C.serialize=function(t=!0){let e="",n="",r="";if(this.reg.size){let s;for(var i of this.reg.keys())s||(s=typeof i),e+=(e?",":"")+(s==="string"?'"'+i+'"':i);e="index.reg=new Set(["+e+"]);",n=Xe(this.map,s),n="index.map=new Map(["+n+"]);";for(let u of this.ctx.entries()){i=u[0];let o=Xe(u[1],s);o="new Map(["+o+"])",o='["'+i+'",'+o+"]",r+=(r?",":"")+o}r="index.ctx=new Map(["+r+"]);"}return t?"function inject(index){"+e+n+r+"}":e+n+r};ye(X.prototype);var on=typeof window<"u"&&(window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB),Qt=["map","ctx","tag","reg","cfg"],pt=R();function Yt(t,e={}){if(!this||this.constructor!==Yt)return new Yt(t,e);typeof t=="object"&&(e=t,t=t.name),t||console.info("Default storage space was used, because a name was not passed."),this.id="flexsearch"+(t?":"+t.toLowerCase().replace(/[^a-z0-9_\-]/g,""):""),this.field=e.field?e.field.toLowerCase().replace(/[^a-z0-9_\-]/g,""):"",this.type=e.type,this.fastupdate=this.support_tag_search=!1,this.db=null,this.h={}}C=Yt.prototype;C.mount=function(t){return t.index?t.mount(this):(t.db=this,this.open())};C.open=function(){if(this.db)return this.db;let t=this;navigator.storage&&navigator.storage.persist&&navigator.storage.persist(),pt[t.id]||(pt[t.id]=[]),pt[t.id].push(t.field);let e=on.open(t.id,1);return e.onupgradeneeded=function(){let n=t.db=this.result;for(let r=0,i;r<Qt.length;r++){i=Qt[r];for(let s=0,u;s<pt[t.id].length;s++)u=pt[t.id][s],n.objectStoreNames.contains(i+(i!=="reg"&&u?":"+u:""))||n.createObjectStore(i+(i!=="reg"&&u?":"+u:""))}},t.db=st(e,function(n){t.db=n,t.db.onversionchange=function(){t.close()}})};C.close=function(){this.db&&this.db.close(),this.db=null};
1C.destroy=function(){let t=on.deleteDatabase(this.id);return st(t)};C.clear=function(){let t=[];for(let n=0,r;n<Qt.length;n++){r=Qt[n];for(let i=0,s;i<pt[this.id].length;i++)s=pt[this.id][i],t.push(r+(r!=="reg"&&s?":"+s:""))}let e=this.db.transaction(t,"readwrite");for(let n=0;n<t.length;n++)e.objectStore(t[n]).clear();return st(e)};C.get=function(t,e,n=0,r=0,i=!0,s=!1){t=this.db.transaction((e?"ctx":"map")+(this.field?":"+this.field:""),"readonly").objectStore((e?"ctx":"map")+(this.field?":"+this.field:"")).get(e?e+":"+t:t);let u=this;return st(t).then(function(o){let l=[];if(!o||!o.length)return l;if(i){if(!n&&!r&&o.length===1)return o[0];for(let h=0,f;h<o.length;h++)if((f=o[h])&&f.length){if(r>=f.length){r-=f.length;continue}let a=n?r+Math.min(f.length-r,n):f.length;for(let c=r;c<a;c++)l.push(f[c]);if(r=0,l.length===n)break}return s?u.enrich(l):l}return o})};C.tag=function(t,e=0,n=0,r=!1){t=this.db.transaction("tag"+(this.field?":"+this.field:""),"readonly").objectStore("tag"+(this.field?":"+this.field:"")).get(t);let i=this;return st(t).then(function(s){return!s||!s.length||n>=s.length?[]:!e&&!n?s:(s=s.slice(n,n+e),r?i.enrich(s):s)})};C.enrich=function(t){typeof t!="object"&&(t=[t]);let e=this.db.transaction("reg","readonly").objectStore("reg"),n=[];for(let r=0;r<t.length;r++)n[r]=st(e.get(t[r]));return Promise.all(n).then(function(r){for(let i=0;i<r.length;i++)r[i]={id:t[i],doc:r[i]?JSON.parse(r[i]):null};return r})};C.has=function(t){return t=this.db.transaction("reg","readonly").objectStore("reg").getKey(t),st(t).then(function(e){return!!e})};C.search=null;C.info=function(){};C.transaction=function(t,e,n){t+=t!=="reg"&&this.field?":"+this.field:"";let r=this.h[t+":"+e];if(r)return n.call(this,r);let i=this.db.transaction(t,e);this.h[t+":"+e]=r=i.objectStore(t);let s=n.call(this,r);return this.h[t+":"+e]=null,st(i).finally(function(){return s})};C.commit=async function(t){let e=t.commit_task,n=[];t.commit_task=[];for(let r=0,i;r<e.length;r++)i=e[r],i.del&&n.push(i.del);n.length&&await this.remove(n),t.reg.size&&(await this.transaction("map","readwrite",function(r){for(let i of t.map){let s=i[0],u=i[1];u.length&&(r.get(s).onsuccess=function(){let o=this.result;var l;if(o&&o.length){let h=Math.max(o.length,u.length);for(let f=0,a,c;f<h;f++)if((c=u[f])&&c.length){if((a=o[f])&&a.length)for(l=0;l<c.length;l++)a.push(c[l]);else o[f]=c;l=1}}else o=u,l=1;l&&r.put(o,s)})}}),await this.transaction("ctx","readwrite",function(r){for(let i of t.ctx){let s=i[0],u=i[1];for(let o of u){let l=o[0],h=o[1];h.length&&(r.get(s+":"+l).onsuccess=function(){let f=this.result;var a;if(f&&f.length){let c=Math.max(f.length,h.length);for(let p=0,D,g;p<c;p++)if((g=h[p])&&g.length){if((D=f[p])&&D.length)for(a=0;a<g.length;a++)D.push(g[a]);else f[p]=g;a=1}}else f=h,a=1;a&&r.put(f,s+":"+l)})}}}),t.store?await this.transaction("reg","readwrite",function(r){for(let i of t.store){let s=i[0],u=i[1];r.put(typeof u=="object"?JSON.stringify(u):1,s)}}):t.bypass||await this.transaction("reg","readwrite",function(r){for(let i of t.reg.keys())r.put(1,i)}),t.tag&&await this.transaction("tag","readwrite",function(r){for(let i of t.tag){let s=i[0],u=i[1];u.length&&(r.get(s).onsuccess=function(){let o=this.result;o=o&&o.length?o.concat(u):u,r.put(o,s)})}}),t.map.clear(),t.ctx.clear(),t.tag&&t.tag.clear(),t.store&&t.store.clear(),t.document||t.reg.clear())};function pe(t,e,n){let r=t.value,i,s=0;for(let u=0,o;u<r.length;u++){if(o=n?r:r[u]){for(let l=0,h,f;l<e.length;l++)if(f=e[l],h=o.indexOf(f),h>=0)if(i=1,o.length>1)o.splice(h,1);else{r[u]=[];break}s+=o.length}if(n)break}s?i&&t.update(r):t.delete(),t.continue()}C.remove=function(t){return typeof t!="object"&&(t=[t]),Promise.all([this.transaction("map","readwrite",function(e){e.openCursor().onsuccess=function(){let n=this.result;n&&pe(n,t)}}),this.transaction("ctx","readwrite",function(e){e.openCursor().onsuccess=function(){let n=this.result;n&&pe(n,t)}}),this.transaction("tag","readwrite",function(e){e.openCursor().onsuccess=function(){let n=this.result;n&&pe(n,t,!0)}}),this.transaction("reg","readwrite",function(e){for(let n=0;n<t.length;n++)e.delete(t[n])})])};function st(t,e){return new Promise((n,r)=>{t.onsuccess=t.oncomplete=function(){e&&e(this.result),e=null,n(this.result)},t.onerror=t.onblocked=r,t=null})}var ln={Index:X,Charset:_e,Encoder:vt,Document:Dt,Worker:dt,Resolver:j,IndexedDB:Yt,Language:{}};var Ni=Object.hasOwnProperty;var pn,H,gn,hi,ut,hn,dn,Dn,ve,te,It,mn,be,Be,ke,ci,Fn={},ne=[],fi=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,re=Array.isArray;function q(t,e){for(var n in e)t[n]=e[n];return t}function Te(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function xe(t,e,n,r,i){var s={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i??++gn,__i:-1,__u:0};return i==null&&H.vnode!=null&&H.vnode(s),s}function kt(t){return t.children}function ee(t,e){this.props=t,this.context=e}function Bt(t,e){if(e==null)return t.__?Bt(t.__,t.__i+1):null;for(var n;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null)return n.__e;return typeof t.type=="function"?Bt(t):null}function ai(t){if(t.__P&&t.__d){var e=t.__v,n=e.__e,r=[],i=[],s=q({},e);s.__v=e.__v+1,H.vnode&&H.vnode(s),En(t.__P,s,e,t.__n,t.__P.namespaceURI,32&e.__u?[n]:null,r,n??Bt(e),!!(32&e.__u),i),s.__v=e.__v,s.__.__k[s.__i]=s,di(r,s,i),e.__e=e.__=null,s.__e!=n&&_n(s)}}function _n(t){if((t=t.__)!=null&&t.__c!=null)return t.__e=t.__c.base=null,t.__k.some(function(e){if(e!=null&&e.__e!=null)return t.__e=t.__c.base=e.__e}),_n(t)}function cn(t){(!t.__d&&(t.__d=!0)&&ut.push(t)&&!ie.__r++||hn!=H.debounceRendering)&&((hn=H.debounceRendering)||dn)(ie)}function ie(){try{for(var t,e=1;ut.length;)ut.length>e&&ut.sort(Dn),t=ut.shift(),e=ut.length,ai(t)}finally{ut.length=ie.__r=0}}function yn(t,e,n,r,i,s,u,o,l,h,f){var a,c,p,D,g,d,F,m=r&&r.__k||ne,E=e.length;for(l=pi(n,e,m,l,E),a=0;a<E;a++)(p=n.__k[a])!=null&&(c=p.__i!=-1&&m[p.__i]||Fn,p.__i=a,d=En(t,p,c,i,s,u,o,l,h,f),D=p.__e,p.ref&&c.ref!=p.ref&&(c.ref&&Se(c.ref,null,p),f.push(p.ref,p.__c||D,p)),g==null&&D!=null&&(g=D),(F=!!(4&p.__u))||c.__k===p.__k?(l=Cn(p,l,t,F),F&&c.__e&&(c.__e=null)):typeof p.t
vendor: 8,057 bytes, line 1
1ype=="function"&&d!==void 0?l=d:D&&(l=D.nextSibling),p.__u&=-7);return n.__e=g,l}function pi(t,e,n,r,i){var s,u,o,l,h,f=n.length,a=f,c=0;for(t.__k=new Array(i),s=0;s<i;s++)(u=e[s])!=null&&typeof u!="boolean"&&typeof u!="function"?(typeof u=="string"||typeof u=="number"||typeof u=="bigint"||u.constructor==String?u=t.__k[s]=xe(null,u,null,null,null):re(u)?u=t.__k[s]=xe(kt,{children:u},null,null,null):u.constructor===void 0&&u.__b>0?u=t.__k[s]=xe(u.type,u.props,u.key,u.ref?u.ref:null,u.__v):t.__k[s]=u,l=s+c,u.__=t,u.__b=t.__b+1,o=null,(h=u.__i=gi(u,n,l,a))!=-1&&(a--,(o=n[h])&&(o.__u|=2)),o==null||o.__v==null?(h==-1&&(i>f?c--:i<f&&c++),typeof u.type!="function"&&(u.__u|=4)):h!=l&&(h==l-1?c--:h==l+1?c++:(h>l?c--:c++,u.__u|=4))):t.__k[s]=null;if(a)for(s=0;s<f;s++)(o=n[s])!=null&&(2&o.__u)==0&&(o.__e==r&&(r=Bt(o)),vn(o,o));return r}function Cn(t,e,n,r){var i,s;if(typeof t.type=="function"){for(i=t.__k,s=0;i&&s<i.length;s++)i[s]&&(i[s].__=t,e=Cn(i[s],e,n,r));return e}t.__e!=e&&(r&&(e&&t.type&&!e.parentNode&&(e=Bt(t)),n.insertBefore(t.__e,e||null)),e=t.__e);do e=e&&e.nextSibling;while(e!=null&&e.nodeType==8);return e}function gi(t,e,n,r){var i,s,u,o=t.key,l=t.type,h=e[n],f=h!=null&&(2&h.__u)==0;if(h===null&&o==null||f&&o==h.key&&l==h.type)return n;if(r>(f?1:0)){for(i=n-1,s=n+1;i>=0||s<e.length;)if((h=e[u=i>=0?i--:s++])!=null&&(2&h.__u)==0&&o==h.key&&l==h.type)return u}return-1}function fn(t,e,n){e[0]=="-"?t.setProperty(e,n??""):t[e]=n==null?"":typeof n!="number"||fi.test(e)?n:n+"px"}function qt(t,e,n,r,i){var s,u;t:if(e=="style")if(typeof n=="string")t.style.cssText=n;else{if(typeof r=="string"&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||fn(t.style,e,"");if(n)for(e in n)r&&n[e]==r[e]||fn(t.style,e,n[e])}else if(e[0]=="o"&&e[1]=="n")s=e!=(e=e.replace(mn,"$1")),u=e.toLowerCase(),e=u in t||e=="onFocusOut"||e=="onFocusIn"?u.slice(2):e.slice(2),t.l||(t.l={}),t.l[e+s]=n,n?r?n[It]=r[It]:(n[It]=be,t.addEventListener(e,s?ke:Be,s)):t.removeEventListener(e,s?ke:Be,s);else{if(i=="http://www.w3.org/2000/svg")e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!="width"&&e!="height"&&e!="href"&&e!="list"&&e!="form"&&e!="tabIndex"&&e!="download"&&e!="rowSpan"&&e!="colSpan"&&e!="role"&&e!="popover"&&e in t)try{t[e]=n??"";break t}catch{}typeof n=="function"||(n==null||n===!1&&e[4]!="-"?t.removeAttribute(e):t.setAttribute(e,e=="popover"&&n==1?"":n))}}function an(t){return function(e){if(this.l){var n=this.l[e.type+t];if(e[te]==null)e[te]=be++;else if(e[te]<n[It])return;return n(H.event?H.event(e):e)}}}function En(t,e,n,r,i,s,u,o,l,h){var f,a,c,p,D,g,d,F,m,E,v,b,x,k,y,B,S=e.type;if(e.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),s=[o=e.__e=n.__e]),(f=H.__b)&&f(e);t:if(typeof S=="function"){a=u.length;try{if(m=e.props,E=S.prototype&&S.prototype.render,v=(f=S.contextType)&&r[f.__c],b=f?v?v.props.value:f.__:r,n.__c?F=(c=e.__c=n.__c).__=c.__E:(E?e.__c=c=new S(m,b):(e.__c=c=new ee(m,b),c.constructor=S,c.render=mi),v&&v.sub(c),c.state||(c.state={}),c.__n=r,p=c.__d=!0,c.__h=[],c._sb=[]),E&&c.__s==null&&(c.__s=c.state),E&&S.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=q({},c.__s)),q(c.__s,S.getDerivedStateFromProps(m,c.__s))),D=c.props,g=c.state,c.__v=e,p)E&&S.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),E&&c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(E&&S.getDerivedStateFromProps==null&&m!==D&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(m,b),e.__v==n.__v||!c.__e&&c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(m,c.__s,b)===!1){e.__v!=n.__v&&(c.props=m,c.state=c.__s,c.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.some(function(T){T&&(T.__=e)}),ne.push.apply(c.__h,c._sb),c._sb=[],c.__h.length&&u.push(c);break t}c.componentWillUpdate!=null&&c.componentWillUpdate(m,c.__s,b),E&&c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(D,g,d)})}if(c.context=b,c.props=m,c.__P=t,c.__e=!1,x=H.__r,k=0,E)c.state=c.__s,c.__d=!1,x&&x(e),f=c.render(c.props,c.state,c.context),ne.push.apply(c.__h,c._sb),c._sb=[];else do c.__d=!1,x&&x(e),f=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++k<25);c.state=c.__s,c.getChildContext!=null&&(r=q(q({},r),c.getChildContext())),E&&!p&&c.getSnapshotBeforeUpdate!=null&&(d=c.getSnapshotBeforeUpdate(D,g)),y=f!=null&&f.type===kt&&f.key==null?wn(f.props.children):f,o=yn(t,re(y)?y:[y],e,n,r,i,s,u,o,l,h),c.base=e.__e,e.__u&=-161,c.__h.length&&u.push(c),F&&(c.__E=c.__=null)}catch(T){if(u.length=a,e.__v=null,l||s!=null){if(T.then){for(e.__u|=l?160:128;o&&o.nodeType==8&&o.nextSibling;)o=o.nextSibling;s!=null&&(s[s.indexOf(o)]=null),e.__e=o}else if(s!=null)for(B=s.length;B--;)Te(s[B])}else e.__e=n.__e;e.__k==null&&(e.__k=n.__k||[]),T.then||An(e),H.__e(T,e,n)}}else s==null&&e.__v==n.__v?(e.__k=n.__k,e.__e=n.__e):o=e.__e=Di(n.__e,e,n,r,i,s,u,l,h);return(f=H.diffed)&&f(e),128&e.__u?void 0:o}function An(t){t&&(t.__c&&(t.__c.__e=!0),t.__k&&t.__k.some(An))}function di(t,e,n){for(var r=0;r<n.length;r++)Se(n[r],n[++r],n[++r]);H.__c&&H.__c(e,t),t.some(function(i){try{t=i.__h,i.__h=[],t.some(function(s){s.call(i)})}catch(s){H.__e(s,i.__v)}})}function wn(t){return typeof t!="object"||t==null||t.__b>0?t:re(t)?t.map(wn):t.constructor!==void 0?null:q({},t)}function Di(t,e,n,r,i,s,u,o,l){var h,f,a,c,p,D,g,d=n.props||Fn,F=e.props,m=e.type;if(m=="svg"?i="http://www.w3.org/2000/svg":m=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),s!=null){for(h=0;h<s.length;h++)if((p=s[h])&&"setAttribute"in p==!!m&&(m?p.localName==m:p.nodeType==3)){t=p,s[h]=null;break}}if(t==null){if(m==null)return document.createTextNode(F);t=document.createElementNS(i,m,F.is&&F),o&&(H.__m&&H.__m(e,s),o=!1),s=null}if(m==null)d===F||o&&t.data==F||(t.data=F);else{if(s=m=="textarea"&&F.defaultValue!=null?null:s&&pn.call(t.childNodes),!o&&s!=null)for(d={},h=0;h<t.attributes.length;h++)d[(p=t.attributes[h]).name]=p.value;for(h in d)p=d[h],h=="dangerouslySetInnerHTML"?a=p:h=="children"||h in F||h=="value"&&"defaultValue"in F||h=="checked"&&"defaultChecked"in F||qt(t,h,null,p,i);for(h in F)p=F[h],h=="children"?c=p:h=="dangerouslySetInnerHTML"?f=p:h=="value"?D=p:h=="checked"?g=p:o&&typeof p!="function"||d[h]===p||qt(t,h,p,d[h],i);if(f)o||a&&(f.__html==a.__html||f.__html==t.innerHTML)||(t.innerHTML=f.__html),e.__k=[];else if(a&&(t.innerHTML=""),yn(e.type=="template"?t.content:t,re(c)?c:[c],e,n,r,m=="foreignObject"?"http://www.w3.org/1999/xhtml":i,s,u,s?s[0]:n.__k&&Bt(n,0),o,l),s!=null)for(h=s.length;h--;)Te(s[h]);o&&m!="textarea"||(h="value",m=="progress"&&D==null?t.removeAttribute("value"):D!=null&&(D!==t[h]||m=="progress"&&!D||m=="option"&&D!=d[h])&&qt(t,h,D,d[h],i),h="checked",g!=null&&g!=t[h]&&qt(t,h,g,d[h],i))}return t}function Se(t,e,n){try{if(typeof t=="function"){var r=typeof t.__u=="function";r&&t.__u(),r&&e==null||(t.__u=t(e))}else t.current=e}catch(i){H.__e(i,n)}}function vn(t,e,n){var r,i;if(H.unmount&&H.unmount(t),(r=t.ref)&&(r.current&&r.current!=t.__e||Se(r,null,e)),(r=t.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(s){H.__e(s,e)}r.base=r.__P=r.__n=null}if(r=t.__k)for(i=0;i<r.length;i++)r[i]&&vn(r[i],e,n||typeof t.type!="function");n||Te(t.__e),t.__c=t.__=t.__e=void 0}function mi(t,e,n){return this.constructor(t,n)}pn=ne.slice,H={__e:function(t,e,n,r){for(var i,s,u;e=e.__;)if((i=e.__c)&&!i.__)try{if((s=i.constructor)&&s.getDerivedStateFromError!=null&&(i.setState(s.getDerivedStateFromError(t)),u=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(t,r||{}),u=i.__d),u)return i.__E=i}catch(o){t=o}throw t}},gn=0,hi=function(t){return t!=null&&t.constructor===void 0},ee.prototype.setState=function(t,e){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=q({},this.state),typeof t=="function"&&(t=t(q({},n),this.props)),t&&q(n,t),t!=null&&this.__v&&(e&&this._sb.push(e),cn(this))},ee.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),cn(this))},ee.prototype.render=kt,ut=[],dn=typeof Promise=="function"?Promise.prototype.then.bind(Prom
1ise.resolve()):setTimeout,Dn=function(t,e){return t.__v.__b-e.__v.__b},ie.__r=0,ve=Math.random().toString(8),te="__d"+ve,It="__a"+ve,mn=/(PointerCapture)$|Capture$/i,be=0,Be=an(!1),ke=an(!0),ci=0;function _i(){return typeof document>"u"?"":document.body?.dataset?.basepath??""}function Le(t,e){let n=e??_i(),r=t.startsWith("/")?t:"/"+t;return n+r}function tt(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function xn(t,e){if(!t)return()=>{};let n=i=>{t.classList.contains("active")&&i.target===t&&(i.preventDefault(),i.stopPropagation(),e())},r=i=>{t.classList.contains("active")&&i.key==="Escape"&&(i.preventDefault(),e())};return t.addEventListener("click",n),document.addEventListener("keydown",r),()=>{t.removeEventListener("click",n),document.removeEventListener("keydown",r)}}function Bn(t,e){let n=t.querySelectorAll("[src], [href]");for(let r of Array.from(n)){let i=r.hasAttribute("href")?"href":"src",s=r.getAttribute(i);if(s&&!(s.startsWith("http://")||s.startsWith("https://")||s.startsWith("mailto:")||s.startsWith("tel:")||s.startsWith("#")||s.startsWith("/")||s.startsWith("data:")))try{let u=new URL(s,e).toString();r.setAttribute(i,u)}catch{continue}}}function se(t){return t.replaceAll("&","&amp;").replaceAll("<","&lt;").replaceAll(">","&gt;").replaceAll('"',"&quot;").replaceAll("'","&#039;")}var Me="basic",bt="",kn=8,yi=5,ue=30,Ci=t=>{let e=[],n=-1,r=-1,i=t.toLowerCase(),s=0;for(let u of i){let o=u.codePointAt(0);o>=12352&&o<=12447||o>=12448&&o<=12543||o>=19968&&o<=40959||o>=44032&&o<=55215||o>=131072&&o<=173791?(n!==-1&&(e.push(i.slice(n,r)),n=-1),e.push(u)):o===32||o===9||o===10||o===13?n!==-1&&(e.push(i.slice(n,r)),n=-1):(n===-1&&(n=s),r=s+1),s+=u.length}return n!==-1&&e.push(i.slice(n)),e},le=new ln.Document({encode:Ci,document:{id:"id",tag:"tags",index:[{field:"title",tokenize:"forward"},{field:"content",tokenize:"forward"},{field:"tags",tokenize:"forward"}]}}),Z=null,Ht=[],Pt=[],je=new Map;function oe(t){let e=t.split(/\s+/),n=[],r=[];for(let i of e)i.startsWith("#")&&i.length>1?n.push(i.substring(1)):i!=="#"&&r.push(i);return{tags:n,query:r.join(" ").trim()}}function bn(t){let e=t.split(/\s+/),n=e[e.length-1];return n&&n.startsWith("#")?n.substring(1):null}var Sn=new DOMParser;async function Ei(t){if(je.has(t))return je.get(t);let e=new URL(Le(t),window.location.origin).toString();try{let n=await fetch(e);if(!n.ok)return[];let r=await n.text(),i=Sn.parseFromString(r??"","text/html");Bn(i,e);let s=Array.from(i.getElementsByClassName("popover-hint"));return je.set(t,s),s}catch{return[]}}var Ie=[];function Ft(t){Ie.push(t)}function Ai(){Ie.forEach(t=>t()),Ie.length=0}async function wi(){let t=document.querySelectorAll(".search");for(let e of Array.from(t)){let n=e.querySelector(".search-container"),r=e.querySelector(".search-button"),i=e.querySelector(".search-bar"),s=e.querySelector(".search-layout");if(!n||!r||!i||!s)continue;let u=n.closest(".sidebar"),o=s.getAttribute("data-preview")==="true",l=s.getAttribute("data-field-priority"),h=l?JSON.parse(l):["title","content","tags"],f=s.querySelector(".results-container");f||(f=document.createElement("div"),f.className="results-container",f.setAttribute("role","listbox"),f.setAttribute("aria-label","Search results"),s.appendChild(f));let a=s.querySelector(".preview-container");o&&!a&&(a=document.createElement("div"),a.className="preview-container",s.appendChild(a));let c=document.createElement("div");c.className="tag-suggestions",c.setAttribute("role","listbox"),c.setAttribute("aria-label","Tag suggestions"),c.style.display="none";let p=i.parentElement;p.insertBefore(c,i.nextSibling);let D=document.createElement("span");D.className="ghost-text",D.setAttribute("aria-hidden","true"),p.insertBefore(D,i.nextSibling);let g=-1,d=[],F=!1,m=_=>{if(g<0||g>=d.length){D.textContent="";return}let A=d[g];if(!A.toLowerCase().startsWith(_.toLowerCase())){D.textContent="";return}let M=A.substring(_.length);D.innerHTML="";let L=document.createElement("span");L.style.visibility="hidden",L.textContent=i.value,D.appendChild(L),D.appendChild(document.createTextNode(M))},E=()=>{c.querySelectorAll(".tag-suggestion-item").forEach((M,L)=>{M.classList.toggle("active",L===g)});let A=bn(i.value)||"";m(A)},v=()=>{F=!1,g=-1,d=[],c.style.display="none",D.textContent=""},b=_=>{let A=i.value,M=A.lastIndexOf("#");M!==-1&&(i.value=A.substring(0,M)+"#"+_+" "),v(),i.focus(),i.dispatchEvent(new Event("input"))},x=_=>{if(Rt){if(d=_===""?Pt.slice(0,10):Pt.filter(A=>A.toLowerCase().startsWith(_.toLowerCase())).slice(0,10),d.length===0){v();return}g=0,F=!0,tt(c);for(let A=0;A<d.length;A++){let M=d[A],L=document.createElement("div");L.className="tag-suggestion-item"+(A===0?" active":""),L.setAttribute("role","option"),L.setAttribute("data-tag",M),L.setAttribute("data-index",String(A)),L.textContent="#"+M,c.appendChild(L)}c.style.display="block",m(_)}},k=_=>!F||d.length===0?!1:(_==="down"?g=Math.min(g+1,d.length-1):g=Math.max(g-1,0),E(),!0),y=null,B=0,S=null,T=()=>{n.classList.remove("active"),u&&(u.style.zIndex=""),r.setAttribute("aria-expanded","fal
1se"),i.value="",tt(f),a&&tt(a),s.classList.remove("display-results"),Me="basic",y=null,v(),r.focus()},W=_=>{Me=_,u&&(u.style.zIndex="9999"),n.classList.add("active"),r.setAttribute("aria-expanded","true"),i.focus()},z=async _=>{if(tt(f),_.length===0){let A=document.createElement("a");A.className="result-card no-match";let M=document.createElement("h3");M.textContent="No results.";let L=document.createElement("p");L.textContent="Try another search term?",A.appendChild(M),A.appendChild(L),f.appendChild(A),y=null,a&&tt(a)}else for(let A of _){let M=document.createElement("a");M.className="result-card",M.id=A.slug,M.href=Le(A.slug);let L=document.createElement("h3");if(L.className="card-title",L.innerHTML=A.title.replace(/<(?!\/?span\b)[^>]*>/gi,""),M.appendChild(L),A.tags.length>0){let K=document.createElement("ul");K.className="tags",K.innerHTML=A.tags.join(""),M.appendChild(K)}let Y=document.createElement("p");Y.className="card-description",Y.innerHTML=A.content.replace(/<(?!\/?span\b)[^>]*>/gi,""),M.appendChild(Y),f.appendChild(M)}},N=()=>Array.from(f.querySelectorAll(".result-card:not(.no-match)")),P=()=>{let _=oe(bt);return _.query||(_.tags.length>0?_.tags.join(" "):bt)},$=async _=>{if(!a||(tt(a),!_))return;let A=_.id,M=++B,L=await Ei(A);if(M!==B)return;let Y=P(),K=document.createElement("div");K.className="preview-inner";for(let ct of L){let yt=ct.cloneNode(!0);Y.trim()!==""&&(yt.innerHTML=vi(Y,yt)),K.appendChild(yt)}a.appendChild(K),requestAnimationFrame(()=>{let ct=Array.from(a.getElementsByClassName("highlight"));if(ct.length===0)return;ct.sort((he,ce)=>ce.innerHTML.length-he.innerHTML.length);let yt=ct[0],Nt=0,ft=yt;for(;ft&&ft!==a;)Nt+=ft.offsetTop,ft=ft.offsetParent;a.scrollTop=Math.max(0,Nt-50)})},et=_=>{y&&y.classList.remove("focus"),y=_,y&&(y.classList.add("focus"),y.scrollIntoView({block:"nearest"})),S&&clearTimeout(S),S=setTimeout(()=>$(y),150)},Q=_=>{let A=N();if(A.length===0){et(null);return}let M=Math.min(Math.max(_,0),A.length-1);et(A[M]??null)},Wt=()=>{let _=N();if(_.length===0)return;let A=y?_.indexOf(y):-1;Q(A+1)},ot=()=>{let _=N();if(_.length===0)return;let A=y?_.indexOf(y):_.length;Q(A-1)},nt=async _=>{let A=_.target.value;bt=A;let M=bn(A);M!==null?x(M):v();let L=oe(A),Y=L.query!==""||L.tags.length>0;if(s.classList.toggle("display-results",Y),Me=L.tags.length>0&&!L.query?"tags":"basic",!Y){tt(f),a&&tt(a),y=null;return}let K;L.query?K=await le.searchAsync({query:L.query,limit:L.tags.length>0?1e4:kn,index:["title","content"]}):L.tags.length>0?K=await le.searchAsync({query:L.tags[0],limit:1e4,index:["tags"]}):K=[];let ct=at=>{let Tt=K.filter(zt=>zt.field===at);return Tt.length===0?[]:[...Tt[0].result]},Nt=[...new Set(h.flatMap(at=>ct(at)))].filter(at=>{if(L.tags.length===0)return!0;let Tt=Ht[at];if(!Tt)return!1;let zt=Z?.[Tt];if(!zt)return!1;let In=zt.tags||[];return L.tags.every(Hn=>In.some(Pn=>Pn.toLowerCase()===Hn.toLowerCase()))}),ft=L.query||(L.tags.length>0?L.tags.join(" "):A),he=Nt.map(at=>Bi(ft,at));await z(he.slice(0,kn));let ce=N();et(ce[0]??null)},lt=_=>{_.stopPropagation(),W("basic")};r.addEventListener("click",lt),Ft(()=>r.removeEventListener("click",lt)),i.addEventListener("input",nt),Ft(()=>i.removeEventListener("input",nt));let ht=_=>{if(F){if(_.key==="ArrowDown"){_.preventDefault(),k("down");return}if(_.key==="ArrowUp"){_.preventDefault(),k("up");return}if(_.key==="Tab"){_.preventDefault(),g>=0&&g<d.length&&b(d[g]);return}if(_.key==="Enter"&&!_.isComposing&&g>=0&&g<d.length){_.preventDefault(),b(d[g]);return}if(_.key==="Escape"){_.preventDefault(),v();return}}if(_.key==="ArrowUp"||_.shiftKey&&_.key==="Tab"){_.preventDefault(),ot();return}if(_.key==="ArrowDown"||_.key==="Tab"){_.preventDefault(),Wt();return}if(_.key==="Enter"&&!_.isComposing){let A=y;A instanceof HTMLAnchorElement&&(_.preventDefault(),I(),T(),A.click())}};i.addEventListener("keydown",ht),Ft(()=>i.removeEventListener("keydown",ht));let w=_=>{_.key==="k"&&(_.ctrlKey||_.metaKey)&&!_.shiftKey?(_.preventDefault(),n.classList.contains("active")?T():W("basic")):_.shiftKey&&(_.ctrlKey||_.metaKey)&&_.key.toLowerCase()==="k"&&(_.preventDefault(),W("tags"),i.value="#",i.dispatchEvent(new Event("input")))};document.addEventListener("keydown",w),Ft(()=>document.removeEventListener("keydown",w));let I=()=>{let _=oe(bt),A=_.query||(_.tags.length>0?_.tags.join(" "):bt);A.trim()&&sessionStorage.setItem("search-term",A.trim())},_t=_=>{let A=_.target.closest(".result-card");!A||A.classList.contains("no-match")||_ instanceof MouseEvent&&(_.altKey||_.ctrlKey||_.metaKey||_.shiftKey)||(I(),T())},He=_=>{let A=_.target.closest(".result-card");!A||A.classList.contains("no-match")||et(A)};f.addEventListener("click",_t),f.addEventListener("mouseover",He),Ft(()=>{f.removeEventListener("click",_t),f.removeEventListener("mouseover",He)});let Pe=_=>{let A=_.target.closest(".tag-suggestion-item");if(!A)return;let M=A.getAttribute("data-tag");M&&b(M)},Re=_=>{let A=_.target.closest(".tag-suggestion-item");if(!A)return;let M=A.getAttribute("data-index");M!==null&&(g=parseInt(M,10),E())};c.addEventListener("click",Pe),c.addEventListener("mouseover",Re),Ft(()=>{c.removeEventListener("click",Pe),c.removeEventListener("mouseover",Re)});let jn=xn(n,T);Ft(jn)}}function Ln(t){let e=t.split(/\s+/).filter(r=>r.trim()!==""),n=e.length;if(n>1)for(let r=1;r<n;r++)e.push(e.slice(0,r+1).join(" "));return e.sort((r,i)=>i.length-r.length)}function vi(t,e){let n=Ln(t).filter(h=>h.trim()!=="");if(n.length===0)return e.innerHTML;let r=Sn.parseFromString(e.innerHTML,"text/html"),i=n.map(h=>h.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|");if(i==="")return e.innerHTML;let s=new RegExp(i,"gi"),u=r.createTreeWalker(r.body,NodeFilter.SHOW_TEXT),o=[],l=u.nextNode();for(;l;)o.push(l),l=u.nextNode();for(let h of o){let f=h.nodeValue??"";if(s.lastIndex=0,!s.test(f))continue;s.lastIndex=0;let a=r.createDocumentFragment(),c=0,p;for(;(p=s.exec(f))!==null;){p.index>c&&a.appendChild(r.createTextNode(f.slice(c,p.index)));let D=r.createElement("span");D.className="highlight",D.textContent=p[0],a.appendChild(D),c=p.index+p[0].length}c<f.length&&a.appendChild(r.createTextNode(f.slice(c))),h.parentNode?.replaceChild(a,h)}return r.body.innerHTML}function Tn(t,e,n){let r=Ln(t),i=se(e).split(/\s+/).filter(l=>l!==""),s=0,u=i.length-1;if(n){let l=c=>r.some(p=>c.toLowerCase().startsWith(p.toLowerCase())),h=i.map(l),f=0,a=0;for(let c=0;c<Math.max(i.length-ue,0);c++){let D=h.slice(c,c+ue).reduce((g,d)=>g+(d?1:0),0);D>=f&&(f=D,a=c)}s=Math.max(a-ue,0),u=Math.min(s+2*ue,i.length-1),i=i.slice(s,u)}let o=i.map(l=>{let h=l;for(let f of r)if(l.toLowerCase().includes(f.toLowerCase())){let a=new RegExp(f.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gi");h=l.replace(a,c=>`<span class="highlight">${c}</span>`);break}return h}).join(" ");return(s===0?"":"...")+o+(u===i.length-1?"":"...")}function xi(t,e){return!e||e.length===0||t.length===0?[]:e.map(n=>{let r=se(n);return t.some(i=>n.toLowerCase().includes(i.toLowerCase()))?`<li><p class="match-tag">#${r}</p></li>`:`<li><p>#${r}</p></li>`}).slice(0,yi)}function Bi(t,e){let n=Ht[e];if(!n||!Z)return{id:e,slug:"",title:"",content:"",tags:[]};let r=Z[n];if(!r)return{id:e,slug:n,title:"",content:"",tags:[]};let i=oe(bt);return{id:e,slug:n,title:i.tags.length>0&&!i.query?se(r.title):Tn(t,r.title||""),content:Tn(t,r.content||"",!0),tags:xi(i.tags,r.tags)}}async function ki(){if(!Z)return;let t=0,e=[],n=new Set;for(let r of Object.keys(Z)){let i=Z[r];if(i){Ht[t]=r;for(let s of i.tags||[])n.add(s);e.push(le.addAsync(t,{id:t,slug:r,title:i.title||"",content:i.content||"",tags:i.tags||[]})),t++}}await Promise.all(e),Pt=[...n].sort()}async function bi(){return await fetchData}var Rt=!1;async function Ti(){Rt||(Z=await bi(),await ki(),Rt=!0)}async function Si(t){if(!Rt||!Z)return 0;let e=new Set(Pt),n=0;for(let r of Object.keys(t)){if(Z[r])continue;let i=t[r];
1if(!i)continue;let s=Ht.length;Ht[s]=r,Z[r]=i;for(let u of i.tags||[])e.add(u);await le.addAsync(s,{id:s,slug:r,title:i.title||"",content:i.content||"",tags:i.tags||[]}),n++}return Pt=[...e].sort(),n}document.addEventListener("content-index-updated",t=>{let e=t.detail;if(!Rt||!Z)return;let n=e?.slugs;!Array.isArray(n)||n.length===0||(async()=>{try{let r=await fetchData;if(!r||typeof r!="object")return;let i=r.content&&typeof r.content=="object"?r.content:r,s={};for(let u of n){let o=i[u];o&&typeof o=="object"&&(s[u]=o)}await Si(s)}catch{}})()});function Li(){let t=sessionStorage.getItem("search-term");t&&(sessionStorage.removeItem("search-term"),requestAnimationFrame(()=>{let e=".popover-hint h1, .popover-hint h2, .popover-hint h3, .popover-hint h4, .popover-hint h5, .popover-hint h6, article h1, article h2, article h3",n=".popover-hint p, .popover-hint li, .popover-hint td, .popover-hint th, .popover-hint blockquote, article p, article li",r=document.querySelectorAll(e),i=document.querySelectorAll(n),s=[...Array.from(r),...Array.from(i)];for(let u of s){let l=(u.textContent??"").toLowerCase().indexOf(t.toLowerCase());if(l===-1)continue;let h=document.createTreeWalker(u,NodeFilter.SHOW_TEXT),f=0,a,c=null,p=0,D=null,g=0;for(;a=h.nextNode();){let d=a.nodeValue?.length??0;if(!c&&f+d>l&&(c=a,p=l-f),c&&f+d>=l+t.length){D=a,g=l+t.length-f;break}f+=d}if(!(!c||!D)){try{let d=document.createRange();d.setStart(c,p),d.setEnd(D,g);let F=document.createElement("span");F.className="search-scroll-target",d.surroundContents(F),F.scrollIntoView({block:"center",behavior:"smooth"}),setTimeout(()=>{F.classList.add("fade-out"),setTimeout(()=>{let m=F.parentNode;m&&(m.replaceChild(document.createTextNode(F.textContent||""),F),m.normalize())},1e3)},2e3)}catch{u.scrollIntoView({block:"center",behavior:"smooth"})}break}}}))}async function Mn(){Ai(),await Ti(),await wi(),Li()}document.addEventListener("nav",Mn);document.addEventListener("render",Mn);

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.