uci-hugo-doc/static/js/search-1c4cfb2d.bundle.min.js

2 lines
37 KiB
JavaScript
Raw Normal View History

2022-06-11 08:46:13 -07:00
/*! For license information please see search-1c4cfb2d.bundle.min.js.LICENSE.txt */
!function(){var e={3129:function(){!function(e){"use strict";var t;function n(e){return void 0===e||e}function r(e){const t=Array(e);for(let n=0;n<e;n++)t[n]=o();return t}function o(){return Object.create(null)}function i(e,t){return t.length-e.length}function s(e){return"string"==typeof e}function a(e){return"object"==typeof e}function c(e,t){var n=d;if(e&&(t&&(e=h(e,t)),this.H&&(e=h(e,this.H)),this.I&&1<e.length&&(e=h(e,this.I)),n||""===n)){if(e=e.split(n),this.filter){t=this.filter,n=e.length;const r=[];for(let o=0,i=0;o<n;o++){const n=e[o];n&&!t[n]&&(r[i++]=n)}e=r}return e}return e}const d=/[\p{Z}\p{S}\p{P}\p{C}]+/u,f=/[\u0300-\u036f]/g;function l(e,t){const n=Object.keys(e),r=n.length,o=[];let i="",s=0;for(let a,c,d=0;d<r;d++)a=n[d],(c=e[a])?(o[s++]=u(t?"(?!\\b)"+a+"(\\b|_)":a),o[s++]=c):i+=(i?"|":"")+a;return i&&(o[s++]=u(t?"(?!\\b)("+i+")(\\b|_)":"("+i+")"),o[s]=""),o}function h(e,t){for(let n=0,r=t.length;n<r&&(e=e.replace(t[n],t[n+1]));n+=2);return e}function u(e){return new RegExp(e,"g")}function m(e){let t="",n="";for(let r,o=0,i=e.length;o<i;o++)(r=e[o])!==n&&(t+=n=r);return t}var p={encode:y,B:!1,C:""};function y(e){return c.call(this,(""+e).toLowerCase(),!1)}const $={},g={};function v(e){w(e,"add"),w(e,"append"),w(e,"search"),w(e,"update"),w(e,"remove")}function w(e,t){e[t+"Async"]=function(){const e=this,n=arguments;var r=n[n.length-1];let o;return"function"==typeof r&&(o=r,delete n[n.length-1]),r=new Promise((function(r){setTimeout((function(){e.async=!0;const o=e[t].apply(e,n);e.async=!1,r(o)}))})),o?(r.then(o),this):r}}function k(e,t,n,r){const i=e.length;let s,a,c=[],d=0;r&&(r=[]);for(let f=i-1;0<=f;f--){const l=e[f],h=l.length,u=o();let m=!s;for(let e=0;e<h;e++){const o=l[e],h=o.length;if(h)for(let e,l,p=0;p<h;p++)if(l=o[p],s){if(s[l]){if(!f)if(n)n--;else if(c[d++]=l,d===t)return c;(f||r)&&(u[l]=1),m=!0}if(r&&(a[l]=(e=a[l])?++e:e=1,e<i)){const t=r[e-2]||(r[e-2]=[]);t[t.length]=l}}else u[l]=1}if(r)s||(a=u);else if(!m)return[];s=u}if(r)for(let e,o,i=r.length-1;0<=i;i--){e=r[i],o=e.length;for(let r,i=0;i<o;i++)if(r=e[i],!s[r]){if(n)n--;else if(c[d++]=r,d===t)return c;s[r]=1}}return c}function L(e,t){const n=o(),r=o(),i=[];for(let t=0;t<e.length;t++)n[e[t]]=1;for(let e,o=0;o<t.length;o++){e=t[o];for(let t,o=0;o<e.length;o++)t=e[o],n[t]&&!r[t]&&(r[t]=1,i[i.length]=t)}return i}const b={memory:{charset:"latin:extra",A:3,m:4,D:!1},performance:{A:3,m:3,s:!1,context:{depth:2,A:1}},match:{charset:"latin:extra",C:"reverse"},score:{charset:"latin:advanced",A:20,m:3,context:{depth:3,A:9}},default:{}};function x(e,t){if(!(this instanceof x))return new x(e);var i;let a;e?(s(e)?e=b[e]:(i=e.preset)&&(e=Object.assign({},i[i],e)),i=e.charset,a=e.lang,s(i)&&(-1===i.indexOf(":")&&(i+=":default"),i=g[i]),s(a)&&(a=$[a])):e={};let c,d,f=e.context||{};if(this.encode=e.encode||i&&i.encode||y,this.register=t||o(),this.A=c=e.resolution||9,this.C=t=i&&i.C||e.tokenize||"strict",this.depth="strict"===t&&f.depth,this.l=n(f.bidirectional),this.s=d=n(e.optimize),this.D=n(e.fastupdate),this.m=e.minlength||1,this.G=e.boost,this.h=d?r(c):o(),this.F=c=f.resolution||1,this.o=d?r(c):o(),this.B=i&&i.B||e.rtl,this.H=(t=e.matcher||a&&a.H)&&l(t,!1),this.I=(t=e.stemmer||a&&a.I)&&l(t,!0),e=t=e.filter||a&&a.filter){e=t,i=o();for(let t=0,n=e.length;t<n;t++)i[e[t]]=1;e=i}this.filter=e}function _(e,t,n,r,o){return n&&1<e?t+(r||0)<=e?n+(o||0):(e-1)/(t+(r||0))*(n+(o||0))+1|0:0}function I(e,t,n,r,i,s,a){let c=a?e.o:e.h;(!t[n]||a&&!t[n][a])&&(e.s&&(c=c[r]),a?((t=t[n]||(t[n]=o()))[a]=1,c=c[a]||(c[a]=o())):t[n]=1,c=c[n]||(c[n]=[]),e.s||(c=c[r]||(c[r]=[])),s&&-1!==c.indexOf(i)||(c[c.length]=i,e.D&&((e=e.register[i]||(e.register[i]=[]))[e.length]=c)))}function A(e,t,n,r,o,i,s,a){let c=[],d=a?e.o:e.h;if(e.s||(d=O(d,s,a,e.l)),d){let n=0;const f=Math.min(d.length,a?e.F:e.A);for(let t,l,h=0,u=0;h<f&&!((t=d[h])&&(e.s&&(t=O(t,s,a,e.l)),o&&t&&i&&(l=t.length,l<=o?(o-=l,t=null):(t=t.slice(o),o=0)),t&&(c[n++]=t,i&&(u+=t.length,u>=r))));h++);if(n)return i?z(c,r,0):void(t[t.length]=c)}return!n&&c}function z(e,t,n){return e=1===e.length?e[0]:[].concat.apply([],e),n||e.le