Files
pezkuwi-mobile-app/frontend/.metro-cache/cache/be/15a8031ec3718e46506cedf7bac44b454244fb403d2d82bdd202dda3b7fc43bfe239e6
T
2025-11-08 10:07:13 +00:00

1 line
10 KiB
Plaintext

{"dependencies":[{"name":"boolbase","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":32,"index":32}}],"key":"0NOX8eQTjRnr/BoMAee+Ac81wCc=","exportNames":["*"],"imports":1}}],"output":[{"data":{"code":"__d(function (global, require, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {\n \"use strict\";\n\n Object.defineProperty(exports, '__esModule', {\n value: true\n });\n function _interopDefault(e) {\n return e && e.__esModule ? e : {\n default: e\n };\n }\n exports.compile = compile;\n exports.generate = generate;\n var _boolbase = require(_dependencyMap[0], \"boolbase\");\n var boolbase = _interopDefault(_boolbase);\n /**\n * Returns a function that checks if an elements index matches the given rule\n * highly optimized to return the fastest solution.\n *\n * @param parsed A tuple [a, b], as returned by `parse`.\n * @returns A highly optimized function that returns whether an index matches the nth-check.\n * @example\n *\n * ```js\n * const check = nthCheck.compile([2, 3]);\n *\n * check(0); // `false`\n * check(1); // `false`\n * check(2); // `true`\n * check(3); // `false`\n * check(4); // `true`\n * check(5); // `false`\n * check(6); // `true`\n * ```\n */\n function compile(parsed) {\n var a = parsed[0];\n // Subtract 1 from `b`, to convert from one- to zero-indexed.\n var b = parsed[1] - 1;\n /*\n * When `b <= 0`, `a * n` won't be lead to any matches for `a < 0`.\n * Besides, the specification states that no elements are\n * matched when `a` and `b` are 0.\n *\n * `b < 0` here as we subtracted 1 from `b` above.\n */\n if (b < 0 && a <= 0) return boolbase.default.falseFunc;\n // When `a` is in the range -1..1, it matches any element (so only `b` is checked).\n if (a === -1) return function (index) {\n return index <= b;\n };\n if (a === 0) return function (index) {\n return index === b;\n };\n // When `b <= 0` and `a === 1`, they match any element.\n if (a === 1) return b < 0 ? boolbase.default.trueFunc : function (index) {\n return index >= b;\n };\n /*\n * Otherwise, modulo can be used to check if there is a match.\n *\n * Modulo doesn't care about the sign, so let's use `a`s absolute value.\n */\n var absA = Math.abs(a);\n // Get `b mod a`, + a if this is negative.\n var bMod = (b % absA + absA) % absA;\n return a > 1 ? function (index) {\n return index >= b && index % absA === bMod;\n } : function (index) {\n return index <= b && index % absA === bMod;\n };\n }\n /**\n * Returns a function that produces a monotonously increasing sequence of indices.\n *\n * If the sequence has an end, the returned function will return `null` after\n * the last index in the sequence.\n *\n * @param parsed A tuple [a, b], as returned by `parse`.\n * @returns A function that produces a sequence of indices.\n * @example <caption>Always increasing (2n+3)</caption>\n *\n * ```js\n * const gen = nthCheck.generate([2, 3])\n *\n * gen() // `1`\n * gen() // `3`\n * gen() // `5`\n * gen() // `8`\n * gen() // `11`\n * ```\n *\n * @example <caption>With end value (-2n+10)</caption>\n *\n * ```js\n *\n * const gen = nthCheck.generate([-2, 5]);\n *\n * gen() // 0\n * gen() // 2\n * gen() // 4\n * gen() // null\n * ```\n */\n function generate(parsed) {\n var a = parsed[0];\n // Subtract 1 from `b`, to convert from one- to zero-indexed.\n var b = parsed[1] - 1;\n var n = 0;\n // Make sure to always return an increasing sequence\n if (a < 0) {\n var aPos = -a;\n // Get `b mod a`\n var minValue = (b % aPos + aPos) % aPos;\n return function () {\n var val = minValue + aPos * n++;\n return val > b ? null : val;\n };\n }\n if (a === 0) return b < 0 ?\n // There are no result — always return `null`\n function () {\n return null;\n } :\n // Return `b` exactly once\n function () {\n return n++ === 0 ? b : null;\n };\n if (b < 0) {\n b += a * Math.ceil(-b / a);\n }\n return function () {\n return a * n++ + b;\n };\n }\n});","lineCount":136,"map":[[12,2,22,0,"exports"],[12,9,22,0],[12,10,22,0,"compile"],[12,17,22,0],[12,20,22,0,"compile"],[12,27,22,0],[13,2,87,0,"exports"],[13,9,87,0],[13,10,87,0,"generate"],[13,18,87,0],[13,21,87,0,"generate"],[13,29,87,0],[14,2,1,0],[14,6,1,0,"_boolbase"],[14,15,1,0],[14,18,1,0,"require"],[14,25,1,0],[14,26,1,0,"_dependencyMap"],[14,40,1,0],[15,2,1,0],[15,6,1,0,"boolbase"],[15,14,1,0],[15,17,1,0,"_interopDefault"],[15,32,1,0],[15,33,1,0,"_boolbase"],[15,42,1,0],[16,2,2,0],[17,0,3,0],[18,0,4,0],[19,0,5,0],[20,0,6,0],[21,0,7,0],[22,0,8,0],[23,0,9,0],[24,0,10,0],[25,0,11,0],[26,0,12,0],[27,0,13,0],[28,0,14,0],[29,0,15,0],[30,0,16,0],[31,0,17,0],[32,0,18,0],[33,0,19,0],[34,0,20,0],[35,0,21,0],[36,2,22,7],[36,11,22,16,"compile"],[36,18,22,23,"compile"],[36,19,22,24,"parsed"],[36,25,22,30],[36,27,22,32],[37,4,23,4],[37,8,23,10,"a"],[37,9,23,11],[37,12,23,14,"parsed"],[37,18,23,20],[37,19,23,21],[37,20,23,22],[37,21,23,23],[38,4,24,4],[39,4,25,4],[39,8,25,10,"b"],[39,9,25,11],[39,12,25,14,"parsed"],[39,18,25,20],[39,19,25,21],[39,20,25,22],[39,21,25,23],[39,24,25,26],[39,25,25,27],[40,4,26,4],[41,0,27,0],[42,0,28,0],[43,0,29,0],[44,0,30,0],[45,0,31,0],[46,0,32,0],[47,4,33,4],[47,8,33,8,"b"],[47,9,33,9],[47,12,33,12],[47,13,33,13],[47,17,33,17,"a"],[47,18,33,18],[47,22,33,22],[47,23,33,23],[47,25,34,8],[47,32,34,15,"boolbase"],[47,40,34,23],[47,41,34,23,"default"],[47,48,34,23],[47,49,34,24,"falseFunc"],[47,58,34,33],[48,4,35,4],[49,4,36,4],[49,8,36,8,"a"],[49,9,36,9],[49,14,36,14],[49,15,36,15],[49,16,36,16],[49,18,37,8],[49,25,37,15],[49,35,37,16,"index"],[49,40,37,21],[50,6,37,21],[50,13,37,26,"index"],[50,18,37,31],[50,22,37,35,"b"],[50,23,37,36],[51,4,37,36],[52,4,38,4],[52,8,38,8,"a"],[52,9,38,9],[52,14,38,14],[52,15,38,15],[52,17,39,8],[52,24,39,15],[52,34,39,16,"index"],[52,39,39,21],[53,6,39,21],[53,13,39,26,"index"],[53,18,39,31],[53,23,39,36,"b"],[53,24,39,37],[54,4,39,37],[55,4,40,4],[56,4,41,4],[56,8,41,8,"a"],[56,9,41,9],[56,14,41,14],[56,15,41,15],[56,17,42,8],[56,24,42,15,"b"],[56,25,42,16],[56,28,42,19],[56,29,42,20],[56,32,42,23,"boolbase"],[56,40,42,31],[56,41,42,31,"default"],[56,48,42,31],[56,49,42,32,"trueFunc"],[56,57,42,40],[56,60,42,43],[56,70,42,44,"index"],[56,75,42,49],[57,6,42,49],[57,13,42,54,"index"],[57,18,42,59],[57,22,42,63,"b"],[57,23,42,64],[58,4,42,64],[59,4,43,4],[60,0,44,0],[61,0,45,0],[62,0,46,0],[63,0,47,0],[64,4,48,4],[64,8,48,10,"absA"],[64,12,48,14],[64,15,48,17,"Math"],[64,19,48,21],[64,20,48,22,"abs"],[64,23,48,25],[64,24,48,26,"a"],[64,25,48,27],[64,26,48,28],[65,4,49,4],[66,4,50,4],[66,8,50,10,"bMod"],[66,12,50,14],[66,15,50,17],[66,16,50,19,"b"],[66,17,50,20],[66,20,50,23,"absA"],[66,24,50,27],[66,27,50,31,"absA"],[66,31,50,35],[66,35,50,39,"absA"],[66,39,50,43],[67,4,51,4],[67,11,51,11,"a"],[67,12,51,12],[67,15,51,15],[67,16,51,16],[67,19,52,10],[67,29,52,11,"index"],[67,34,52,16],[68,6,52,16],[68,13,52,21,"index"],[68,18,52,26],[68,22,52,30,"b"],[68,23,52,31],[68,27,52,35,"index"],[68,32,52,40],[68,35,52,43,"absA"],[68,39,52,47],[68,44,52,52,"bMod"],[68,48,52,56],[69,4,52,56],[69,8,53,10],[69,18,53,11,"index"],[69,23,53,16],[70,6,53,16],[70,13,53,21,"index"],[70,18,53,26],[70,22,53,30,"b"],[70,23,53,31],[70,27,53,35,"index"],[70,32,53,40],[70,35,53,43,"absA"],[70,39,53,47],[70,44,53,52,"bMod"],[70,48,53,56],[71,4,53,56],[72,2,54,0],[73,2,55,0],[74,0,56,0],[75,0,57,0],[76,0,58,0],[77,0,59,0],[78,0,60,0],[79,0,61,0],[80,0,62,0],[81,0,63,0],[82,0,64,0],[83,0,65,0],[84,0,66,0],[85,0,67,0],[86,0,68,0],[87,0,69,0],[88,0,70,0],[89,0,71,0],[90,0,72,0],[91,0,73,0],[92,0,74,0],[93,0,75,0],[94,0,76,0],[95,0,77,0],[96,0,78,0],[97,0,79,0],[98,0,80,0],[99,0,81,0],[100,0,82,0],[101,0,83,0],[102,0,84,0],[103,0,85,0],[104,0,86,0],[105,2,87,7],[105,11,87,16,"generate"],[105,19,87,24,"generate"],[105,20,87,25,"parsed"],[105,26,87,31],[105,28,87,33],[106,4,88,4],[106,8,88,10,"a"],[106,9,88,11],[106,12,88,14,"parsed"],[106,18,88,20],[106,19,88,21],[106,20,88,22],[106,21,88,23],[107,4,89,4],[108,4,90,4],[108,8,90,8,"b"],[108,9,90,9],[108,12,90,12,"parsed"],[108,18,90,18],[108,19,90,19],[108,20,90,20],[108,21,90,21],[108,24,90,24],[108,25,90,25],[109,4,91,4],[109,8,91,8,"n"],[109,9,91,9],[109,12,91,12],[109,13,91,13],[110,4,92,4],[111,4,93,4],[111,8,93,8,"a"],[111,9,93,9],[111,12,93,12],[111,13,93,13],[111,15,93,15],[112,6,94,8],[112,10,94,14,"aPos"],[112,14,94,18],[112,17,94,21],[112,18,94,22,"a"],[112,19,94,23],[113,6,95,8],[114,6,96,8],[114,10,96,14,"minValue"],[114,18,96,22],[114,21,96,25],[114,22,96,27,"b"],[114,23,96,28],[114,26,96,31,"aPos"],[114,30,96,35],[114,33,96,39,"aPos"],[114,37,96,43],[114,41,96,47,"aPos"],[114,45,96,51],[115,6,97,8],[115,13,97,15],[115,25,97,21],[116,8,98,12],[116,12,98,18,"val"],[116,15,98,21],[116,18,98,24,"minValue"],[116,26,98,32],[116,29,98,35,"aPos"],[116,33,98,39],[116,36,98,42,"n"],[116,37,98,43],[116,39,98,45],[117,8,99,12],[117,15,99,19,"val"],[117,18,99,22],[117,21,99,25,"b"],[117,22,99,26],[117,25,99,29],[117,29,99,33],[117,32,99,36,"val"],[117,35,99,39],[118,6,100,8],[118,7,100,9],[119,4,101,4],[120,4,102,4],[120,8,102,8,"a"],[120,9,102,9],[120,14,102,14],[120,15,102,15],[120,17,103,8],[120,24,103,15,"b"],[120,25,103,16],[120,28,103,19],[120,29,103,20],[121,4,104,14],[122,4,105,16],[123,6,105,16],[123,13,105,22],[123,17,105,26],[124,4,105,26],[125,4,106,14],[126,4,107,16],[127,6,107,16],[127,13,107,23,"n"],[127,14,107,24],[127,16,107,26],[127,21,107,31],[127,22,107,32],[127,25,107,35,"b"],[127,26,107,36],[127,29,107,39],[127,33,107,43],[128,4,107,43],[128,5,107,44],[129,4,108,4],[129,8,108,8,"b"],[129,9,108,9],[129,12,108,12],[129,13,108,13],[129,15,108,15],[130,6,109,8,"b"],[130,7,109,9],[130,11,109,13,"a"],[130,12,109,14],[130,15,109,17,"Math"],[130,19,109,21],[130,20,109,22,"ceil"],[130,24,109,26],[130,25,109,27],[130,26,109,28,"b"],[130,27,109,29],[130,30,109,32,"a"],[130,31,109,33],[130,32,109,34],[131,4,110,4],[132,4,111,4],[132,11,111,11],[133,6,111,11],[133,13,111,17,"a"],[133,14,111,18],[133,17,111,21,"n"],[133,18,111,22],[133,20,111,24],[133,23,111,27,"b"],[133,24,111,28],[134,4,111,28],[135,2,112,0],[136,0,112,1],[136,3]],"functionMap":{"names":["<global>","compile","<anonymous>","generate"],"mappings":"AAA;OCqB;eCe,qBD;eCE,sBD;2CCG,qBD;UCU,8CD;UCC,8CD;CDC;OGiC;eDU;SCG;gBDK,UC;gBDE,4BC;WDI,iBC;CHC"},"hasCjsExports":false},"type":"js/module"}]}