newblog/static/js/lunr.de.min.js

1 line
5.5 KiB
JavaScript
Raw Permalink Normal View History

2024-07-01 15:20:09 +02:00
!function(e,r){"function"==typeof define&&define.amd?define(r):"object"==typeof exports?module.exports=r():r()(e.lunr)}(this,function(){return function(r){if(void 0===r)throw new Error("Lunr is not present. Please include / require Lunr before this script.");if(void 0===r.stemmerSupport)throw new Error("Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script.");var e,n,i;r.de=function(){this.pipeline.reset(),this.pipeline.add(r.de.trimmer,r.de.stopWordFilter,r.de.stemmer)},r.de.wordCharacters="A-Za-zªºÀ-ÖØ-öø-ʸˠ-ˤᴀ-ᴥᴬ-ᵜᵢ-ᵥᵫ-ᵷᵹ-ᶾḀ-ỿⁱⁿₐ-ₜKÅℲⅎⅠ-ↈⱠ-ⱿꜢ-ꞇꞋ-ꞭꞰ-ꞷꟷ-ꟿꬰ-ꭚꭜ-ꭤff-stA--",r.de.trimmer=r.trimmerSupport.generateTrimmer(r.de.wordCharacters),r.Pipeline.registerFunction(r.de.trimmer,"trimmer-de"),r.de.stemmer=(e=r.stemmerSupport.Among,n=r.stemmerSupport.SnowballProgram,i=new function(){var t,o,c,u=[new e("",-1,6),new e("U",0,2),new e("Y",0,1),new e("ä",0,3),new e("ö",0,4),new e("ü",0,5)],d=[new e("e",-1,2),new e("em",-1,1),new e("en",-1,2),new e("ern",-1,1),new e("er",-1,1),new e("s",-1,3),new e("es",5,2)],l=[new e("en",-1,1),new e("er",-1,1),new e("st",-1,2),new e("est",2,1)],a=[new e("ig",-1,1),new e("lich",-1,1)],m=[new e("end",-1,1),new e("ig",-1,2),new e("ung",-1,1),new e("lich",-1,3),new e("isch",-1,2),new e("ik",-1,2),new e("heit",-1,3),new e("keit",-1,4)],w=[17,65,16,1,0,0,0,0,0,0,0,0,0,0,0,0,8,0,32,8],h=[117,30,5],b=[117,30,4],f=new n;function _(e,r,n){return f.eq_s(1,e)&&(f.ket=f.cursor,f.in_grouping(w,97,252))&&(f.slice_from(r),f.cursor=n,1)}function p(){for(;!f.in_grouping(w,97,252);){if(f.cursor>=f.limit)return 1;f.cursor++}for(;!f.out_grouping(w,97,252);){if(f.cursor>=f.limit)return 1;f.cursor++}}function g(){return c<=f.cursor}function k(){return o<=f.cursor}this.setCurrent=function(e){f.setCurrent(e)},this.getCurrent=function(){return f.getCurrent()},this.stem=function(){var e=f.cursor;!function(){for(var e,r,n,i,s=f.cursor;;)if(e=f.cursor,f.bra=e,f.eq_s(1,"ß"))f.ket=f.cursor,f.slice_from("ss");else{if(e>=f.limit)break;f.cursor=e+1}for(f.cursor=s;;)for(r=f.cursor;;){if(n=f.cursor,f.in_grouping(w,97,252)){if(i=f.cursor,f.bra=i,_("u","U",n))break;if(f.cursor=i,_("y","Y",n))break}if(n>=f.limit)return f.cursor=r;f.cursor=n+1}}(),f.cursor=e,c=f.limit,o=c,0<=(s=f.cursor+3)&&s<=f.limit&&(t=s,p()||((c=f.cursor)<t&&(c=t),p())||(o=f.cursor)),f.limit_backward=e,f.cursor=f.limit;var r,n,i,s=f.limit-f.cursor;if(f.ket=f.cursor,(r=f.find_among_b(d,7))&&(f.bra=f.cursor,g()))switch(r){case 1:f.slice_del();break;case 2:f.slice_del(),f.ket=f.cursor,f.eq_s_b(1,"s")&&(f.bra=f.cursor,f.eq_s_b(3,"nis"))&&f.slice_del();break;case 3:f.in_grouping_b(h,98,116)&&f.slice_del()}if(f.cursor=f.limit-s,f.ket=f.cursor,(r=f.find_among_b(l,4))&&(f.bra=f.cursor,g()))switch(r){case 1:f.slice_del();break;case 2:f.in_grouping_b(b,98,116)&&(i=f.cursor-3,f.limit_backward<=i)&&i<=f.limit&&(f.cursor=i,f.slice_del())}if(f.cursor=f.limit-s,f.ket=f.cursor,(r=f.find_among_b(m,8))&&(f.bra=f.cursor,k()))switch(r){case 1:f.slice_del(),f.ket=f.cursor,f.eq_s_b(2,"ig")&&(f.bra=f.cursor,n=f.limit-f.cursor,f.eq_s_b(1,"e")||(f.cursor=f.limit-n,k()&&f.slice_del()));break;case 2:n=f.limit-f.cursor,f.eq_s_b(1,"e")||(f.cursor=f.limit-n,f.slice_del());break;case 3:f.slice_del(),f.ket=f.cursor,n=f.limit-f.cursor,(f.eq_s_b(2,"er")||(f.cursor=f.limit-n,f.eq_s_b(2,"en")))&&(f.bra=f.cursor,g())&&f.slice_del();break;case 4:f.slice_del(),f.ket=f.cursor,(r=f.find_among_b(a,2))&&(f.bra=f.cursor,k())&&1==r&&f.slice_del()}return f.cursor=f.limit_backward,function(){for(var e;;){if(e=f.cursor,f.bra=e,!(e=f.find_among(u,6)))return;switch(f.ket=f.cursor,e){case 1:f.slice_from("y");break;case 2:case 5:f.slice_from("u");break;case 3:f.slice_from("a");break;case 4:f.slice_from("o");break;case 6:if(f.cursor>=f.limit)return;f.cursor++}}}(),!0}},function(e){return i.setCurrent(e),i.stem(),i.getCurrent()}),r.Pipeline.registerFunction(r.de.stemmer,"stemmer-de"),r.de.stopWordFilter=function(e){if(-1===r.de.stopWordFilter.stopWords.indexOf(e))return