mkdocs-material/material/assets/javascripts/lunr/lunr.tr.js

1 line
14 KiB
JavaScript
Raw Normal View History

!function(r,i){"function"==typeof define&&define.amd?define(i):"object"==typeof exports?module.exports=i():i()(r.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.");r.tr=function(){this.pipeline.reset(),this.pipeline.add(r.tr.trimmer,r.tr.stopWordFilter,r.tr.stemmer),this.searchPipeline&&(this.searchPipeline.reset(),this.searchPipeline.add(r.tr.stemmer))},r.tr.wordCharacters="A-Za-zªºÀ-ÖØ-öø-ʸˠ-ˤᴀ-ᴥᴬ-ᵜᵢ-ᵥᵫ-ᵷᵹ-ᶾḀ-ỿⁱⁿₐ-ₜKÅℲⅎⅠ-ↈⱠ-ⱿꜢ-ꞇꞋ-ꞭꞰ-ꞷꟷ-ꟿꬰ-ꭚꭜ-ꭤff-stA--",r.tr.trimmer=r.trimmerSupport.generateTrimmer(r.tr.wordCharacters),r.Pipeline.registerFunction(r.tr.trimmer,"trimmer-tr"),r.tr.stemmer=function(){var i=r.stemmerSupport.Among,e=r.stemmerSupport.SnowballProgram,n=new function(){function r(r,i,e){for(;;){var n=nr.limit-nr.cursor;if(nr.in_grouping_b(r,i,e)){nr.cursor=nr.limit-n;break}if(nr.cursor=nr.limit-n,nr.cursor<=nr.limit_backward)return!1;nr.cursor--}return!0}function n(){var i,e;i=nr.limit-nr.cursor,r(Y,97,305);for(var n=0;n<er.length;n++){e=nr.limit-nr.cursor;var t=er[n];if(nr.eq_s_b(1,t[0])&&r(t[1],t[2],t[3]))return nr.cursor=nr.limit-i,!0;nr.cursor=nr.limit-e}return nr.cursor=nr.limit-e,!(!nr.eq_s_b(1,"ü")||!r(ir,246,252))&&(nr.cursor=nr.limit-i,!0)}function t(r,i){var e,n=nr.limit-nr.cursor;return r()&&(nr.cursor=nr.limit-n,nr.cursor>nr.limit_backward&&(nr.cursor--,e=nr.limit-nr.cursor,i()))?(nr.cursor=nr.limit-e,!0):(nr.cursor=nr.limit-n,r()?(nr.cursor=nr.limit-n,!1):(nr.cursor=nr.limit-n,!(nr.cursor<=nr.limit_backward)&&(nr.cursor--,!!i()&&(nr.cursor=nr.limit-n,!0))))}function u(r){return t(r,function(){return nr.in_grouping_b(Y,97,305)})}function o(){return u(function(){return nr.eq_s_b(1,"n")})}function s(){return u(function(){return nr.eq_s_b(1,"y")})}function c(){return nr.find_among_b(S,10)&&t(function(){return nr.in_grouping_b($,105,305)},function(){return nr.out_grouping_b(Y,97,305)})}function l(){return n()&&nr.in_grouping_b($,105,305)&&u(function(){return nr.eq_s_b(1,"s")})}function a(){return nr.find_among_b(W,2)}function m(){return n()&&nr.find_among_b(x,4)&&o()}function d(){return n()&&nr.find_among_b(j,4)}function f(){return n()&&nr.find_among_b(T,2)}function b(){return n()&&nr.find_among_b(H,4)&&s()}function w(){return n()&&nr.find_among_b(I,4)}function _(){return n()&&nr.find_among_b(J,4)&&s()}function k(){return nr.find_among_b(K,4)}function p(){return n()&&nr.find_among_b(M,2)}function g(){return n()&&nr.find_among_b(O,8)}function y(){return n()&&nr.find_among_b(R,32)&&s()}function z(){return nr.find_among_b(U,8)&&s()}function v(){return n()&&nr.find_among_b(V,4)&&s()}function h(){var r,i,e,n;if(nr.ket=nr.cursor,nr.eq_s_b(2,"ki")){if(r=nr.limit-nr.cursor,d())return nr.bra=nr.cursor,nr.slice_del(),i=nr.limit-nr.cursor,nr.ket=nr.cursor,p()?(nr.bra=nr.cursor,nr.slice_del(),h()):(nr.cursor=nr.limit-i,c()&&(nr.bra=nr.cursor,nr.slice_del(),nr.ket=nr.cursor,p()&&(nr.bra=nr.cursor,nr.slice_del(),h()))),!0;if(nr.cursor=nr.limit-r,m()){if(nr.bra=nr.cursor,nr.slice_del(),nr.ket=nr.cursor,e=nr.limit-nr.cursor,a())nr.bra=nr.cursor,nr.slice_del();else{if(nr.cursor=nr.limit-e,nr.ket=nr.cursor,!c()&&(nr.cursor=nr.limit-e,!l()&&(nr.cursor=nr.limit-e,!h())))return!0;nr.bra=nr.cursor,nr.slice_del(),nr.ket=nr.cursor,p()&&(nr.bra=nr.cursor,nr.slice_del(),h())}return!0}if(nr.cursor=nr.limit-r,f()){if(n=nr.limit-nr.cursor,a())nr.bra=nr.cursor,nr.slice_del();else if(nr.cursor=nr.limit-n,l())nr.bra=nr.cursor,nr.slice_del(),nr.ket=nr.cursor,p()&&(nr.bra=nr.cursor,nr.slice_del(),h());else if(nr.cursor=nr.limit-n,!h())return!1;return!0}}return!1}function q(r,i,e){if(nr.cursor=nr.limit-r,function(){for(;;){var r=nr.limit-nr.cursor;if(nr.in_grouping_b(Y,97,305)){nr.cursor=nr.limit-r;break}if(nr.cursor=nr.limit-r,nr.cursor<=nr.limit_backward)return!1;nr.cursor--}return!0}()){var n=nr.limi