Files
pezkuwi-mobile-app/frontend/.metro-cache/cache/f7/b49638a666157a6d7e87980514dc35754d82f4e43a44cc71941523e9f52f786800faf6
T
2025-10-24 02:48:32 +00:00

1 line
14 KiB
Plaintext

{"dependencies":[],"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 Object.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function () {\n return _default;\n }\n });\n /**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\n var TouchHistoryMath = {\n /**\n * This code is optimized and not intended to look beautiful. This allows\n * computing of touch centroids that have moved after `touchesChangedAfter`\n * timeStamp. You can compute the current centroid involving all touches\n * moves after `touchesChangedAfter`, or you can compute the previous\n * centroid of all touches that were moved after `touchesChangedAfter`.\n *\n * @param {TouchHistoryMath} touchHistory Standard Responder touch track\n * data.\n * @param {number} touchesChangedAfter timeStamp after which moved touches\n * are considered \"actively moving\" - not just \"active\".\n * @param {boolean} isXAxis Consider `x` dimension vs. `y` dimension.\n * @param {boolean} ofCurrent Compute current centroid for actively moving\n * touches vs. previous centroid of now actively moving touches.\n * @return {number} value of centroid in specified dimension.\n */\n centroidDimension: function centroidDimension(touchHistory, touchesChangedAfter, isXAxis, ofCurrent) {\n var touchBank = touchHistory.touchBank;\n var total = 0;\n var count = 0;\n var oneTouchData = touchHistory.numberActiveTouches === 1 ? touchHistory.touchBank[touchHistory.indexOfSingleActiveTouch] : null;\n if (oneTouchData !== null) {\n if (oneTouchData.touchActive && oneTouchData.currentTimeStamp > touchesChangedAfter) {\n total += ofCurrent && isXAxis ? oneTouchData.currentPageX : ofCurrent && !isXAxis ? oneTouchData.currentPageY : !ofCurrent && isXAxis ? oneTouchData.previousPageX : oneTouchData.previousPageY;\n count = 1;\n }\n } else {\n for (var i = 0; i < touchBank.length; i++) {\n var touchTrack = touchBank[i];\n if (touchTrack !== null && touchTrack !== undefined && touchTrack.touchActive && touchTrack.currentTimeStamp >= touchesChangedAfter) {\n var toAdd = void 0; // Yuck, program temporarily in invalid state.\n if (ofCurrent && isXAxis) {\n toAdd = touchTrack.currentPageX;\n } else if (ofCurrent && !isXAxis) {\n toAdd = touchTrack.currentPageY;\n } else if (!ofCurrent && isXAxis) {\n toAdd = touchTrack.previousPageX;\n } else {\n toAdd = touchTrack.previousPageY;\n }\n total += toAdd;\n count++;\n }\n }\n }\n return count > 0 ? total / count : TouchHistoryMath.noCentroid;\n },\n currentCentroidXOfTouchesChangedAfter: function currentCentroidXOfTouchesChangedAfter(touchHistory, touchesChangedAfter) {\n return TouchHistoryMath.centroidDimension(touchHistory, touchesChangedAfter, true,\n // isXAxis\n true // ofCurrent\n );\n },\n currentCentroidYOfTouchesChangedAfter: function currentCentroidYOfTouchesChangedAfter(touchHistory, touchesChangedAfter) {\n return TouchHistoryMath.centroidDimension(touchHistory, touchesChangedAfter, false,\n // isXAxis\n true // ofCurrent\n );\n },\n previousCentroidXOfTouchesChangedAfter: function previousCentroidXOfTouchesChangedAfter(touchHistory, touchesChangedAfter) {\n return TouchHistoryMath.centroidDimension(touchHistory, touchesChangedAfter, true,\n // isXAxis\n false // ofCurrent\n );\n },\n previousCentroidYOfTouchesChangedAfter: function previousCentroidYOfTouchesChangedAfter(touchHistory, touchesChangedAfter) {\n return TouchHistoryMath.centroidDimension(touchHistory, touchesChangedAfter, false,\n // isXAxis\n false // ofCurrent\n );\n },\n currentCentroidX: function currentCentroidX(touchHistory) {\n return TouchHistoryMath.centroidDimension(touchHistory, 0,\n // touchesChangedAfter\n true,\n // isXAxis\n true // ofCurrent\n );\n },\n currentCentroidY: function currentCentroidY(touchHistory) {\n return TouchHistoryMath.centroidDimension(touchHistory, 0,\n // touchesChangedAfter\n false,\n // isXAxis\n true // ofCurrent\n );\n },\n noCentroid: -1\n };\n var _default = TouchHistoryMath;\n});","lineCount":113,"map":[[7,2,100,0,"Object"],[7,8,100,0],[7,9,100,0,"defineProperty"],[7,23,100,0],[7,24,100,0,"exports"],[7,31,100,0],[8,4,100,0,"enumerable"],[8,14,100,0],[9,4,100,0,"get"],[9,7,100,0],[9,18,100,0,"get"],[9,19,100,0],[10,6,100,0],[10,13,100,0,"_default"],[10,21,100,0],[11,4,100,0],[12,2,100,0],[13,2,1,0],[14,0,2,0],[15,0,3,0],[16,0,4,0],[17,0,5,0],[18,0,6,0],[19,0,7,0],[20,0,8,0],[22,2,10,0],[22,6,10,4,"TouchHistoryMath"],[22,22,10,20],[22,25,10,23],[23,4,11,2],[24,0,12,0],[25,0,13,0],[26,0,14,0],[27,0,15,0],[28,0,16,0],[29,0,17,0],[30,0,18,0],[31,0,19,0],[32,0,20,0],[33,0,21,0],[34,0,22,0],[35,0,23,0],[36,0,24,0],[37,0,25,0],[38,0,26,0],[39,4,27,2,"centroidDimension"],[39,21,27,19],[39,23,27,21],[39,32,27,30,"centroidDimension"],[39,49,27,47,"centroidDimension"],[39,50,27,48,"touchHistory"],[39,62,27,60],[39,64,27,62,"touchesChangedAfter"],[39,83,27,81],[39,85,27,83,"isXAxis"],[39,92,27,90],[39,94,27,92,"ofCurrent"],[39,103,27,101],[39,105,27,103],[40,6,28,4],[40,10,28,8,"touchBank"],[40,19,28,17],[40,22,28,20,"touchHistory"],[40,34,28,32],[40,35,28,33,"touchBank"],[40,44,28,42],[41,6,29,4],[41,10,29,8,"total"],[41,15,29,13],[41,18,29,16],[41,19,29,17],[42,6,30,4],[42,10,30,8,"count"],[42,15,30,13],[42,18,30,16],[42,19,30,17],[43,6,31,4],[43,10,31,8,"oneTouchData"],[43,22,31,20],[43,25,31,23,"touchHistory"],[43,37,31,35],[43,38,31,36,"numberActiveTouches"],[43,57,31,55],[43,62,31,60],[43,63,31,61],[43,66,31,64,"touchHistory"],[43,78,31,76],[43,79,31,77,"touchBank"],[43,88,31,86],[43,89,31,87,"touchHistory"],[43,101,31,99],[43,102,31,100,"indexOfSingleActiveTouch"],[43,126,31,124],[43,127,31,125],[43,130,31,128],[43,134,31,132],[44,6,32,4],[44,10,32,8,"oneTouchData"],[44,22,32,20],[44,27,32,25],[44,31,32,29],[44,33,32,31],[45,8,33,6],[45,12,33,10,"oneTouchData"],[45,24,33,22],[45,25,33,23,"touchActive"],[45,36,33,34],[45,40,33,38,"oneTouchData"],[45,52,33,50],[45,53,33,51,"currentTimeStamp"],[45,69,33,67],[45,72,33,70,"touchesChangedAfter"],[45,91,33,89],[45,93,33,91],[46,10,34,8,"total"],[46,15,34,13],[46,19,34,17,"ofCurrent"],[46,28,34,26],[46,32,34,30,"isXAxis"],[46,39,34,37],[46,42,34,40,"oneTouchData"],[46,54,34,52],[46,55,34,53,"currentPageX"],[46,67,34,65],[46,70,34,68,"ofCurrent"],[46,79,34,77],[46,83,34,81],[46,84,34,82,"isXAxis"],[46,91,34,89],[46,94,34,92,"oneTouchData"],[46,106,34,104],[46,107,34,105,"currentPageY"],[46,119,34,117],[46,122,34,120],[46,123,34,121,"ofCurrent"],[46,132,34,130],[46,136,34,134,"isXAxis"],[46,143,34,141],[46,146,34,144,"oneTouchData"],[46,158,34,156],[46,159,34,157,"previousPageX"],[46,172,34,170],[46,175,34,173,"oneTouchData"],[46,187,34,185],[46,188,34,186,"previousPageY"],[46,201,34,199],[47,10,35,8,"count"],[47,15,35,13],[47,18,35,16],[47,19,35,17],[48,8,36,6],[49,6,37,4],[49,7,37,5],[49,13,37,11],[50,8,38,6],[50,13,38,11],[50,17,38,15,"i"],[50,18,38,16],[50,21,38,19],[50,22,38,20],[50,24,38,22,"i"],[50,25,38,23],[50,28,38,26,"touchBank"],[50,37,38,35],[50,38,38,36,"length"],[50,44,38,42],[50,46,38,44,"i"],[50,47,38,45],[50,49,38,47],[50,51,38,49],[51,10,39,8],[51,14,39,12,"touchTrack"],[51,24,39,22],[51,27,39,25,"touchBank"],[51,36,39,34],[51,37,39,35,"i"],[51,38,39,36],[51,39,39,37],[52,10,40,8],[52,14,40,12,"touchTrack"],[52,24,40,22],[52,29,40,27],[52,33,40,31],[52,37,40,35,"touchTrack"],[52,47,40,45],[52,52,40,50,"undefined"],[52,61,40,59],[52,65,40,63,"touchTrack"],[52,75,40,73],[52,76,40,74,"touchActive"],[52,87,40,85],[52,91,40,89,"touchTrack"],[52,101,40,99],[52,102,40,100,"currentTimeStamp"],[52,118,40,116],[52,122,40,120,"touchesChangedAfter"],[52,141,40,139],[52,143,40,141],[53,12,41,10],[53,16,41,14,"toAdd"],[53,21,41,19],[53,24,41,22],[53,29,41,27],[53,30,41,28],[53,31,41,29],[53,32,41,30],[54,12,42,10],[54,16,42,14,"ofCurrent"],[54,25,42,23],[54,29,42,27,"isXAxis"],[54,36,42,34],[54,38,42,36],[55,14,43,12,"toAdd"],[55,19,43,17],[55,22,43,20,"touchTrack"],[55,32,43,30],[55,33,43,31,"currentPageX"],[55,45,43,43],[56,12,44,10],[56,13,44,11],[56,19,44,17],[56,23,44,21,"ofCurrent"],[56,32,44,30],[56,36,44,34],[56,37,44,35,"isXAxis"],[56,44,44,42],[56,46,44,44],[57,14,45,12,"toAdd"],[57,19,45,17],[57,22,45,20,"touchTrack"],[57,32,45,30],[57,33,45,31,"currentPageY"],[57,45,45,43],[58,12,46,10],[58,13,46,11],[58,19,46,17],[58,23,46,21],[58,24,46,22,"ofCurrent"],[58,33,46,31],[58,37,46,35,"isXAxis"],[58,44,46,42],[58,46,46,44],[59,14,47,12,"toAdd"],[59,19,47,17],[59,22,47,20,"touchTrack"],[59,32,47,30],[59,33,47,31,"previousPageX"],[59,46,47,44],[60,12,48,10],[60,13,48,11],[60,19,48,17],[61,14,49,12,"toAdd"],[61,19,49,17],[61,22,49,20,"touchTrack"],[61,32,49,30],[61,33,49,31,"previousPageY"],[61,46,49,44],[62,12,50,10],[63,12,51,10,"total"],[63,17,51,15],[63,21,51,19,"toAdd"],[63,26,51,24],[64,12,52,10,"count"],[64,17,52,15],[64,19,52,17],[65,10,53,8],[66,8,54,6],[67,6,55,4],[68,6,56,4],[68,13,56,11,"count"],[68,18,56,16],[68,21,56,19],[68,22,56,20],[68,25,56,23,"total"],[68,30,56,28],[68,33,56,31,"count"],[68,38,56,36],[68,41,56,39,"TouchHistoryMath"],[68,57,56,55],[68,58,56,56,"noCentroid"],[68,68,56,66],[69,4,57,2],[69,5,57,3],[70,4,58,2,"currentCentroidXOfTouchesChangedAfter"],[70,41,58,39],[70,43,58,41],[70,52,58,50,"currentCentroidXOfTouchesChangedAfter"],[70,89,58,87,"currentCentroidXOfTouchesChangedAfter"],[70,90,58,88,"touchHistory"],[70,102,58,100],[70,104,58,102,"touchesChangedAfter"],[70,123,58,121],[70,125,58,123],[71,6,59,4],[71,13,59,11,"TouchHistoryMath"],[71,29,59,27],[71,30,59,28,"centroidDimension"],[71,47,59,45],[71,48,59,46,"touchHistory"],[71,60,59,58],[71,62,59,60,"touchesChangedAfter"],[71,81,59,79],[71,83,59,81],[71,87,59,85],[72,6,60,4],[73,6,61,4],[73,10,61,8],[73,11,61,9],[74,6,62,4],[74,7,62,5],[75,4,63,2],[75,5,63,3],[76,4,64,2,"currentCentroidYOfTouchesChangedAfter"],[76,41,64,39],[76,43,64,41],[76,52,64,50,"currentCentroidYOfTouchesChangedAfter"],[76,89,64,87,"currentCentroidYOfTouchesChangedAfter"],[76,90,64,88,"touchHistory"],[76,102,64,100],[76,104,64,102,"touchesChangedAfter"],[76,123,64,121],[76,125,64,123],[77,6,65,4],[77,13,65,11,"TouchHistoryMath"],[77,29,65,27],[77,30,65,28,"centroidDimension"],[77,47,65,45],[77,48,65,46,"touchHistory"],[77,60,65,58],[77,62,65,60,"touchesChangedAfter"],[77,81,65,79],[77,83,65,81],[77,88,65,86],[78,6,66,4],[79,6,67,4],[79,10,67,8],[79,11,67,9],[80,6,68,4],[80,7,68,5],[81,4,69,2],[81,5,69,3],[82,4,70,2,"previousCentroidXOfTouchesChangedAfter"],[82,42,70,40],[82,44,70,42],[82,53,70,51,"previousCentroidXOfTouchesChangedAfter"],[82,91,70,89,"previousCentroidXOfTouchesChangedAfter"],[82,92,70,90,"touchHistory"],[82,104,70,102],[82,106,70,104,"touchesChangedAfter"],[82,125,70,123],[82,127,70,125],[83,6,71,4],[83,13,71,11,"TouchHistoryMath"],[83,29,71,27],[83,30,71,28,"centroidDimension"],[83,47,71,45],[83,48,71,46,"touchHistory"],[83,60,71,58],[83,62,71,60,"touchesChangedAfter"],[83,81,71,79],[83,83,71,81],[83,87,71,85],[84,6,72,4],[85,6,73,4],[85,11,73,9],[85,12,73,10],[86,6,74,4],[86,7,74,5],[87,4,75,2],[87,5,75,3],[88,4,76,2,"previousCentroidYOfTouchesChangedAfter"],[88,42,76,40],[88,44,76,42],[88,53,76,51,"previousCentroidYOfTouchesChangedAfter"],[88,91,76,89,"previousCentroidYOfTouchesChangedAfter"],[88,92,76,90,"touchHistory"],[88,104,76,102],[88,106,76,104,"touchesChangedAfter"],[88,125,76,123],[88,127,76,125],[89,6,77,4],[89,13,77,11,"TouchHistoryMath"],[89,29,77,27],[89,30,77,28,"centroidDimension"],[89,47,77,45],[89,48,77,46,"touchHistory"],[89,60,77,58],[89,62,77,60,"touchesChangedAfter"],[89,81,77,79],[89,83,77,81],[89,88,77,86],[90,6,78,4],[91,6,79,4],[91,11,79,9],[91,12,79,10],[92,6,80,4],[92,7,80,5],[93,4,81,2],[93,5,81,3],[94,4,82,2,"currentCentroidX"],[94,20,82,18],[94,22,82,20],[94,31,82,29,"currentCentroidX"],[94,47,82,45,"currentCentroidX"],[94,48,82,46,"touchHistory"],[94,60,82,58],[94,62,82,60],[95,6,83,4],[95,13,83,11,"TouchHistoryMath"],[95,29,83,27],[95,30,83,28,"centroidDimension"],[95,47,83,45],[95,48,83,46,"touchHistory"],[95,60,83,58],[95,62,83,60],[95,63,83,61],[96,6,84,4],[97,6,85,4],[97,10,85,8],[98,6,86,4],[99,6,87,4],[99,10,87,8],[99,11,87,9],[100,6,88,4],[100,7,88,5],[101,4,89,2],[101,5,89,3],[102,4,90,2,"currentCentroidY"],[102,20,90,18],[102,22,90,20],[102,31,90,29,"currentCentroidY"],[102,47,90,45,"currentCentroidY"],[102,48,90,46,"touchHistory"],[102,60,90,58],[102,62,90,60],[103,6,91,4],[103,13,91,11,"TouchHistoryMath"],[103,29,91,27],[103,30,91,28,"centroidDimension"],[103,47,91,45],[103,48,91,46,"touchHistory"],[103,60,91,58],[103,62,91,60],[103,63,91,61],[104,6,92,4],[105,6,93,4],[105,11,93,9],[106,6,94,4],[107,6,95,4],[107,10,95,8],[107,11,95,9],[108,6,96,4],[108,7,96,5],[109,4,97,2],[109,5,97,3],[110,4,98,2,"noCentroid"],[110,14,98,12],[110,16,98,14],[110,17,98,15],[111,2,99,0],[111,3,99,1],[112,2,100,0],[112,6,100,0,"_default"],[112,14,100,0],[112,17,100,15,"TouchHistoryMath"],[112,33,100,31],[113,0,100,32],[113,3]],"functionMap":{"names":["<global>","centroidDimension","currentCentroidXOfTouchesChangedAfter","currentCentroidYOfTouchesChangedAfter","previousCentroidXOfTouchesChangedAfter","previousCentroidYOfTouchesChangedAfter","currentCentroidX","currentCentroidY"],"mappings":"AAA;qBC0B;GD8B;yCEC;GFK;yCGC;GHK;0CIC;GJK;0CKC;GLK;oBMC;GNO;oBOC;GPO"},"hasCjsExports":false},"type":"js/module"}]}