RSS-Bridge.rss-bridge/daux_libraries/search.min.js

10 lines
31 KiB
JavaScript
Raw Normal View History

(function(){"use strict";function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var n,l,u,t,r,o,e={},c=[],s=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function a(e,t){for(var n in t)e[n]=t[n];return e}function h(e){var t=e.parentNode;t&&t.removeChild(e)}function v(e,t,s){var i,r,o,l={};for(o in t)"key"==o?i=t[o]:"ref"==o?r=t[o]:l[o]=t[o];if(arguments.length>2&&(l.children=arguments.length>3?n.call(arguments,2):s),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===l[o]&&(l[o]=e.defaultProps[o]);return y(e,l,i,r,null)}function y(e,t,n,s,i){var r={type:e,props:t,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==i?++u:i};return null==i&&null!=l.vnode&&l.vnode(r),r}function d(e){return e.children}function _(e,t){this.props=e,this.context=t}function k(e,t){if(null==t)return e.__?k(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?k(e):null}function b(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return b(e)}}function m(e){(!e.__d&&(e.__d=!0)&&t.push(e)&&!g.__r++||o!==l.debounceRendering)&&((o=l.debounceRendering)||r)(g)}function g(){for(var e;g.__r=t.length;)e=t.sort((function(e,t){return e.__v.__b-t.__v.__b})),t=[],e.some((function(e){var t,n,s,i,r,o;e.__d&&(r=(i=(t=e).__v).__e,(o=t.__P)&&(n=[],(s=a({},i)).__v=i.__v+1,j(o,i,s,t.__n,void 0!==o.ownerSVGElement,null!=i.__h?[r]:null,n,null==r?k(i):r,i.__h),z(n,i),i.__e!=r&&b(i)))}))}function w(t,n,s,i,r,o,l,a,h,u){var f,_,p,g,m,v,b,S=i&&i.__k||c,w=S.length;for(s.__k=[],f=0;f<n.length;f++)if(null!=(g=s.__k[f]=null==(g=n[f])||"boolean"==typeof g?null:"string"==typeof g||"number"==typeof g||"bigint"==typeof g?y(null,g,null,null,g):Array.isArray(g)?y(d,{children:g},null,null,null):g.__b>0?y(g.type,g.props,g.key,null,g.__v):g)){if(g.__=s,g.__b=s.__b+1,null===(p=S[f])||p&&g.key==p.key&&g.type===p.type)S[f]=void 0;else for(_=0;_<w;_++){if((p=S[_])&&g.key==p.key&&g.type===p.type){S[_]=void 0;break}p=null}j(t,g,p=p||e,r,o,l,a,h,u),m=g.__e,(_=g.ref)&&p.ref!=_&&(b||(b=[]),p.ref&&b.push(p.ref,null,g),b.push(_,g.__c||m,g)),null!=m?(null==v&&(v=m),"function"==typeof g.type&&g.__k===p.__k?g.__d=h=x(g,h,t):h=P(t,g,p,S,m,h),"function"==typeof s.type&&(s.__d=h)):h&&p.__e==h&&h.parentNode!=t&&(h=k(p))}for(s.__e=v,f=w;f--;)null!=S[f]&&("function"==typeof s.type&&null!=S[f].__e&&S[f].__e==s.__d&&(s.__d=k(i,f+1)),N(S[f],S[f]));if(b)for(f=0;f<b.length;f++)M(b[f],b[++f],b[++f])}function x(e,t,n){for(var s,i=e.__k,r=0;i&&r<i.length;r++)(s=i[r])&&(s.__=e,t="function"==typeof s.type?x(s,t,n):P(n,s,s,i,s.__e,t));return t}function P(e,t,n,s,i,r){var o,l,a;if(void 0!==t.__d)o=t.__d,t.__d=void 0;else if(null==n||i!=r||null==i.parentNode)e:if(null==r||r.parentNode!==e)e.appendChild(i),o=null;else{for(l=r,a=0;(l=l.nextSibling)&&a<s.length;a+=2)if(l==i)break e;e.insertBefore(i,r),o=r}return void 0!==o?o:i.nextSibling}function C(e,t,n,s,i){var r;for(r in n)"children"===r||"key"===r||r in t||H(e,r,null,n[r],s);for(r in t)i&&"function"!=typeof t[r]||"children"===r||"key"===r||"value"===r||"checked"===r||n[r]===t[r]||H(e,r,t[r],n[r],s)}function $(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||s.test(t)?n:n+"px"}function H(e,t,n,s,i){var r;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof s&&(e.style.cssText=s=""),s)for(t in s)n&&t in n||$(e.style,t,"");if(n)for(t in n)s&&n[t]===s[t]||$(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])r=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+r]=n,n?s||e.addEventListener(t,r?T:I,r):e.removeEventListener(t,r?T:I,r);else if("dangerouslySetInnerHTML"!==t){if(i)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&
/**!
* FlexSearch.js v0.7.21 (Bundle)
* Copyright 2018-2021 Nextapps GmbH
* Author: Thomas Wilkerling
* Licence: Apache-2.0
* https://github.com/nextapps-de/flexsearch
*/(function(module){(function _f(self){try{module&&(self=module)}catch(e){}var t;function u(e){return"undefined"===typeof e||e}function aa(e){const t=Array(e);for(let n=0;n<e;n++)t[n]=v();return t}function v(){return Object.create(null)}function ba(e,t){return t.length-e.length}function x(e){return"string"===typeof e}function C(e){return"object"===typeof e}function D(e){return"function"===typeof e}function ca(e,t){var n=da;if(e&&(t&&(e=E(e,t)),this.H&&(e=E(e,this.H)),this.J&&1<e.length&&(e=E(e,this.J)),n||""===n)){if(e=e.split(n),this.filter){t=this.filter,n=e.length;const s=[];for(let i=0,r=0;i<n;i++){const n=e[i];n&&!t[n]&&(s[r++]=n)}e=s}return e}return e}self._factory=_f;const da=/[\p{Z}\p{S}\p{P}\p{C}]+/u,ea=/[\u0300-\u036f]/g;function fa(e,t){const n=Object.keys(e),s=n.length,i=[];let r="",o=0;for(let l,a,h=0;h<s;h++)l=n[h],(a=e[l])?(i[o++]=F(t?"(?!\\b)"+l+"(\\b|_)":l),i[o++]=a):r+=(r?"|":"")+l;return r&&(i[o++]=F(t?"(?!\\b)("+r+")(\\b|_)":"("+r+")"),i[o]=""),i}function E(e,t){for(let n=0,s=t.length;n<s&&(e=e.replace(t[n],t[n+1]),e);n+=2);return e}function F(e){return new RegExp(e,"g")}function ha(e){let t="",n="";for(let s,i=0,r=e.length;i<r;i++)(s=e[i])!==n&&(t+=n=s);return t}var ja={encode:ia,F:!1,G:""};function ia(e){return ca.call(this,(""+e).toLowerCase(),!1)}const ka={},G={};function la(e){I(e,"add"),I(e,"append"),I(e,"search"),I(e,"update"),I(e,"remove")}function I(e,t){e[t+"Async"]=function(){const e=this,n=arguments;var s=n[n.length-1];let i;return D(s)&&(i=s,delete n[n.length-1]),s=new Promise((function(s){setTimeout((function(){e.async=!0;const i=e[t].apply(e,n);e.async=!1,s(i)}))})),i?(s.then(i),this):s}}function ma(e,t,n,s){const i=e.length;let r,o,l=[],a=0;s&&(s=[]);for(let h=i-1;0<=h;h--){const c=e[h],u=c.length,f=v();let _=!r;for(let e=0;e<u;e++){const u=c[e],d=u.length;if(d)for(let e,c,p=0;p<d;p++)if(c=u[p],r){if(r[c]){if(!h)if(n)n--;else if(l[a++]=c,a===t)return l;(h||s)&&(f[c]=1),_=!0}if(s&&(o[c]=(e=o[c])?++e:e=1,e<i)){const t=s[e-2]||(s[e-2]=[]);t[t.length]=c}}else f[c]=1}if(s)r||(o=f);else if(!_)return[];r=f}if(s)for(let e,i,o=s.length-1;0<=o;o--){e=s[o],i=e.length;for(let s,o=0;o<i;o++)if(s=e[o],!r[s]){if(n)n--;else if(l[a++]=s,a===t)return l;r[s]=1}}return l}function na(e,t){const n=v(),s=v(),i=[];for(let t=0;t<e.length;t++)n[e[t]]=1;for(let e,r=0;r<t.length;r++){e=t[r];for(let t,r=0;r<e.length;r++)t=e[r],n[t]&&!s[t]&&(s[t]=1,i[i.length]=t)}return i}function J(e){this.l=!0!==e&&e,this.cache=v(),this.h=[]}function oa(e,t,n){C(e)&&(e=e.query);let s=this.cache.get(e);return s||(s=this.search(e,t,n),this.cache.set(e,s)),s}J.prototype.set=function(e,t){if(!this.cache[e]){var n=this.h.length;for(n===this.l?delete this.cache[this.h[n-1]]:n++,--n;0<n;n--)this.h[n]=this.h[n-1];this.h[0]=e}this.cache[e]=t},J.prototype.get=function(e){const t=this.cache[e];if(this.l&&t&&(e=this.h.indexOf(e))){const t=this.h[e-1];this.h[e-1]=this.h[e],this.h[e]=t}return t};const qa={memory:{charset:"latin:extra",D:3,B:4,m:!1},performance:{D:3,B:3,s:!1,context:{depth:2,D:1}},match:{charset:"latin:extra",G:"reverse"},score:{charset:"latin:advanced",D:20,B:3,context:{depth:3,D:9}},default:{}};function ra(e,t,n,s,i,r){setTimeout((function(){const o=e(n,JSON.stringify(r));o&&o.then?o.then((function(){t.export(e,t,n,s,i+1)})):t.export(e,t,n,s,i+1)}))}function K(e,t){if(!(this instanceof K))return new K(e);var n;if(e){x(e)?e=qa[e]:(n=e.preset)&&(e=Object.assign({},n[n],e)),n=e.charset;var s=e.lang;x(n)&&(-1===n.indexOf(":")&&(n+=":default"),n=G[n]),x(s)&&(s=ka[s])}else e={};let i,r,o=e.context||{};if(this.encode=e.encode||n&&n.encode||ia,this.register=t||v(),this.D=i=e.resolution||9,this.G=t=n&&n.G||e.tokenize||"strict",this.depth="strict"===t&&o.depth,this.l=u(o.bidirectional),this.s=r=u(e.optimize),this.m=u(e.fastupdate),this.B=e.minlength||1,this.C=e.boost,this.map=r?aa(i):v(),this.A=i=o.resolution||1,this.h=r?aa(i):v(),this.F=n&&n.F||e.rtl,this.H=(t=e.matcher||s&&s.H)&&fa(t,!1),this.J=(t=e.stemmer||s&&s.J)&&fa(t,!0),n=t=e.filter||s&&s.filter){n=t,s=v();for(let e=0,t=n.length;e<t;e++)s[n[e]]=1;n=s}this.filter=n,this.cach
//# sourceMappingURL=search.min.js.map