{ "version": 3, "sources": ["../../node_modules/lunr-languages/lunr.te.js"], "sourcesContent": ["/*!\n * Lunr languages, `Hindi` language\n * https://github.com/MiKr13/lunr-languages\n *\n * Copyright 2023, India\n * http://www.mozilla.org/MPL/\n */\n/*!\n * based on\n * Snowball JavaScript Library v0.3\n * http://code.google.com/p/urim/\n * http://snowball.tartarus.org/\n *\n * Copyright 2010, Oleg Mazko\n * http://www.mozilla.org/MPL/\n */\n\n/**\n * export the module via AMD, CommonJS or as a browser global\n * Export code from https://github.com/umdjs/umd/blob/master/returnExports.js\n */\n;\n(function(root, factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define(factory)\n } else if (typeof exports === 'object') {\n /**\n * Node. Does not work with strict CommonJS, but\n * only CommonJS-like environments that support module.exports,\n * like Node.\n */\n module.exports = factory()\n } else {\n // Browser globals (root is window)\n factory()(root.lunr);\n }\n}(this, function() {\n /**\n * Just return a value to define the module export.\n * This example returns an object, but the module\n * can return a function as the exported value.\n */\n return function(lunr) {\n /* throw error if lunr is not yet included */\n if ('undefined' === typeof lunr) {\n throw new Error('Lunr is not present. Please include / require Lunr before this script.');\n }\n\n /* throw error if lunr stemmer support is not yet included */\n if ('undefined' === typeof lunr.stemmerSupport) {\n throw new Error('Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script.');\n }\n\n /* register specific locale function */\n lunr.te = function() {\n this.pipeline.reset();\n this.pipeline.add(\n lunr.te.trimmer,\n lunr.te.stopWordFilter,\n lunr.te.stemmer\n );\n\n // change the tokenizer for japanese one\n // if (isLunr2) { // for lunr version 2.0.0\n // this.tokenizer = lunr.hi.tokenizer;\n // } else {\n // if (lunr.tokenizer) { // for lunr version 0.6.0\n // lunr.tokenizer = lunr.hi.tokenizer;\n // }\n // if (this.tokenizerFn) { // for lunr version 0.7.0 -> 1.0.0\n // this.tokenizerFn = lunr.hi.tokenizer;\n // }\n // }\n\n if (this.searchPipeline) {\n this.searchPipeline.reset();\n this.searchPipeline.add(lunr.te.stemmer)\n }\n };\n\n /* lunr trimmer function */\n lunr.te.wordCharacters = \"\\u0C00-\\u0C04\\u0C05-\\u0C14\\u0C15-\\u0C39\\u0C3E-\\u0C4C\\u0C55-\\u0C56\\u0C58-\\u0C5A\\u0C60-\\u0C61\\u0C62-\\u0C63\\u0C66-\\u0C6F\\u0C78-\\u0C7F\\u0C3C\\u0C3D\\u0C4D\\u0C5D\\u0C77\\u0C64\\u0C65\";\n lunr.te.trimmer = lunr.trimmerSupport.generateTrimmer(lunr.te.wordCharacters);\n\n lunr.Pipeline.registerFunction(lunr.te.trimmer, 'trimmer-te');\n /* lunr stop word filter */\n lunr.te.stopWordFilter = lunr.generateStopWordFilter(\n '\u0C05\u0C02\u0C26\u0C30\u0C42 \u0C05\u0C02\u0C26\u0C41\u0C2C\u0C3E\u0C1F\u0C41\u0C32\u0C4B \u0C05\u0C21\u0C17\u0C02\u0C21\u0C3F \u0C05\u0C21\u0C17\u0C21\u0C02 \u0C05\u0C21\u0C4D\u0C21\u0C02\u0C17\u0C3E \u0C05\u0C28\u0C41\u0C17\u0C41\u0C23\u0C02\u0C17\u0C3E \u0C05\u0C28\u0C41\u0C2E\u0C24\u0C3F\u0C02\u0C1A\u0C41 \u0C05\u0C28\u0C41\u0C2E\u0C24\u0C3F\u0C38\u0C4D\u0C24\u0C41\u0C02\u0C26\u0C3F \u0C05\u0C2F\u0C3F\u0C24\u0C47 \u0C07\u0C2A\u0C4D\u0C2A\u0C1F\u0C3F\u0C15\u0C47 \u0C09\u0C28\u0C4D\u0C28\u0C3E\u0C30\u0C41 \u0C0E\u0C15\u0C4D\u0C15\u0C21\u0C48\u0C28\u0C3E \u0C0E\u0C2A\u0C4D\u0C2A\u0C41\u0C21\u0C41 \u0C0E\u0C35\u0C30\u0C48\u0C28\u0C3E \u0C0E\u0C35\u0C30\u0C4B \u0C0F \u0C0F\u0C26\u0C48\u0C28\u0C3E \u0C0F\u0C2E\u0C48\u0C28\u0C2A\u0C4D\u0C2A\u0C1F\u0C3F\u0C15\u0C3F \u0C12\u0C15 \u0C12\u0C15\u0C30\u0C41 \u0C15\u0C28\u0C3F\u0C2A\u0C3F\u0C38\u0C4D\u0C24\u0C3E\u0C2F\u0C3F \u0C15\u0C3E\u0C26\u0C41 \u0C15\u0C42\u0C21\u0C3E \u0C17\u0C3E \u0C17\u0C41\u0C30\u0C3F\u0C02\u0C1A\u0C3F \u0C1A\u0C41\u0C1F\u0C4D\u0C1F\u0C42 \u0C1A\u0C47\u0C2F\u0C17\u0C32\u0C3F\u0C17\u0C3F\u0C02\u0C26\u0C3F \u0C24\u0C17\u0C3F\u0C28 \u0C24\u0C30\u0C4D\u0C35\u0C3E\u0C24 \u0C26\u0C3E\u0C26\u0C3E\u0C2A\u0C41 \u0C26\u0C42\u0C30\u0C02\u0C17\u0C3E \u0C28\u0C3F\u0C1C\u0C02\u0C17\u0C3E \u0C2A\u0C48 \u0C2A\u0C4D\u0C30\u0C15\u0C3E\u0C30\u0C02 \u0C2A\u0C4D\u0C30\u0C15\u0C4D\u0C15\u0C28 \u0C2E\u0C27\u0C4D\u0C2F \u0C2E\u0C30\u0C3F\u0C2F\u0C41 \u0C2E\u0C30\u0C4A\u0C15 \u0C2E\u0C33\u0C4D\u0C33\u0C40 \u0C2E\u0C3E\u0C24\u0C4D\u0C30\u0C2E\u0C47 \u0C2E\u0C46\u0C1A\u0C4D\u0C1A\u0C41\u0C15\u0C4B \u0C35\u0C26\u0C4D\u0C26 \u0C35\u0C46\u0C02\u0C1F \u0C35\u0C47\u0C30\u0C41\u0C17\u0C3E \u0C35\u0C4D\u0C2F\u0C24\u0C3F\u0C30\u0C47\u0C15\u0C02\u0C17\u0C3E \u0C38\u0C02\u0C2C\u0C02\u0C27\u0C02'.split(' '));\n /* lunr stemmer function */\n lunr.te.stemmer = (function() {\n\n return function(word) {\n // for lunr version 2\n if (typeof word.update === \"function\") {\n return word.update(function(word) {\n return word;\n })\n } else { // for lunr version <= 1\n return word;\n }\n\n }\n })();\n\n var segmenter = lunr.wordcut;\n segmenter.init();\n lunr.te.tokenizer = function(obj) {\n if (!arguments.length || obj == null || obj == undefined) return []\n if (Array.isArray(obj)) return obj.map(function(t) {\n return isLunr2 ? new lunr.Token(t.toLowerCase()) : t.toLowerCase()\n });\n\n var str = obj.toString().toLowerCase().replace(/^\\s+/, '');\n return segmenter.cut(str).split('|');\n }\n\n lunr.Pipeline.registerFunction(lunr.te.stemmer, 'stemmer-te');\n lunr.Pipeline.registerFunction(lunr.te.stopWordFilter, 'stopWordFilter-te');\n\n };\n}))"], "mappings": "4CAAA,IAAAA,EAAAC,EAAA,CAAAC,EAAAC,IAAA,EAsBC,SAASC,EAAMC,EAAS,CACnB,OAAO,QAAW,YAAc,OAAO,IAEzC,OAAOA,CAAO,EACL,OAAOH,GAAY,SAM5BC,EAAO,QAAUE,EAAQ,EAGzBA,EAAQ,EAAED,EAAK,IAAI,CAEvB,GAAEF,EAAM,UAAW,CAMjB,OAAO,SAASI,EAAM,CAEpB,GAAoB,OAAOA,EAAvB,IACF,MAAM,IAAI,MAAM,wEAAwE,EAI1F,GAAoB,OAAOA,EAAK,eAA5B,IACF,MAAM,IAAI,MAAM,wGAAwG,EAI1HA,EAAK,GAAK,UAAW,CACnB,KAAK,SAAS,MAAM,EACpB,KAAK,SAAS,IACZA,EAAK,GAAG,QACRA,EAAK,GAAG,eACRA,EAAK,GAAG,OACV,EAcI,KAAK,iBACP,KAAK,eAAe,MAAM,EAC1B,KAAK,eAAe,IAAIA,EAAK,GAAG,OAAO,EAE3C,EAGAA,EAAK,GAAG,eAAiB,+KACzBA,EAAK,GAAG,QAAUA,EAAK,eAAe,gBAAgBA,EAAK,GAAG,cAAc,EAE5EA,EAAK,SAAS,iBAAiBA,EAAK,GAAG,QAAS,YAAY,EAE5DA,EAAK,GAAG,eAAiBA,EAAK,uBAC5B,8tDAA6U,MAAM,GAAG,CAAC,EAEzVA,EAAK,GAAG,QAAW,UAAW,CAE5B,OAAO,SAASC,EAAM,C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