Files
pezkuwi-mobile-app/frontend/.metro-cache/cache/cd/552529be34ca8d139e9c884e5dcab03558f84e4f7682a2debfdad3eef346a91320ea1c
T
2025-10-24 02:46:09 +00:00

1 line
10 KiB
Plaintext

{"dependencies":[],"output":[{"data":{"code":"__d(function (global, require, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {\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\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 function stiffnessFromOrigamiValue(oValue) {\n return (oValue - 30) * 3.62 + 194;\n }\n function dampingFromOrigamiValue(oValue) {\n return (oValue - 8) * 3 + 25;\n }\n function fromOrigamiTensionAndFriction(tension, friction) {\n return {\n stiffness: stiffnessFromOrigamiValue(tension),\n damping: dampingFromOrigamiValue(friction)\n };\n }\n function fromBouncinessAndSpeed(bounciness, speed) {\n function normalize(value, startValue, endValue) {\n return (value - startValue) / (endValue - startValue);\n }\n function projectNormal(n, start, end) {\n return start + n * (end - start);\n }\n function linearInterpolation(t, start, end) {\n return t * end + (1 - t) * start;\n }\n function quadraticOutInterpolation(t, start, end) {\n return linearInterpolation(2 * t - t * t, start, end);\n }\n function b3Friction1(x) {\n return 0.0007 * Math.pow(x, 3) - 0.031 * Math.pow(x, 2) + 0.64 * x + 1.28;\n }\n function b3Friction2(x) {\n return 0.000044 * Math.pow(x, 3) - 0.006 * Math.pow(x, 2) + 0.36 * x + 2;\n }\n function b3Friction3(x) {\n return 0.00000045 * Math.pow(x, 3) - 0.000332 * Math.pow(x, 2) + 0.1078 * x + 5.84;\n }\n function b3Nobounce(tension) {\n if (tension <= 18) {\n return b3Friction1(tension);\n } else if (tension > 18 && tension <= 44) {\n return b3Friction2(tension);\n } else {\n return b3Friction3(tension);\n }\n }\n var b = normalize(bounciness / 1.7, 0, 20);\n b = projectNormal(b, 0, 0.8);\n var s = normalize(speed / 1.7, 0, 20);\n var bouncyTension = projectNormal(s, 0.5, 200);\n var bouncyFriction = quadraticOutInterpolation(b, b3Nobounce(bouncyTension), 0.01);\n return {\n stiffness: stiffnessFromOrigamiValue(bouncyTension),\n damping: dampingFromOrigamiValue(bouncyFriction)\n };\n }\n var _default = {\n fromOrigamiTensionAndFriction,\n fromBouncinessAndSpeed\n };\n});","lineCount":80,"map":[[2,2,1,0],[3,0,2,0],[4,0,3,0],[5,0,4,0],[6,0,5,0],[7,0,6,0],[8,0,7,0],[9,0,8,0],[10,0,9,0],[12,2,11,0],[12,14,11,12],[14,2,11,13,"Object"],[14,8,11,13],[14,9,11,13,"defineProperty"],[14,23,11,13],[14,24,11,13,"exports"],[14,31,11,13],[15,4,11,13,"value"],[15,9,11,13],[16,2,11,13],[17,2,66,0,"Object"],[17,8,66,0],[17,9,66,0,"defineProperty"],[17,23,66,0],[17,24,66,0,"exports"],[17,31,66,0],[18,4,66,0,"enumerable"],[18,14,66,0],[19,4,66,0,"get"],[19,7,66,0],[19,18,66,0,"get"],[19,19,66,0],[20,6,66,0],[20,13,66,0,"_default"],[20,21,66,0],[21,4,66,0],[22,2,66,0],[23,2,13,0],[23,11,13,9,"stiffnessFromOrigamiValue"],[23,36,13,34,"stiffnessFromOrigamiValue"],[23,37,13,35,"oValue"],[23,43,13,41],[23,45,13,43],[24,4,14,2],[24,11,14,9],[24,12,14,10,"oValue"],[24,18,14,16],[24,21,14,19],[24,23,14,21],[24,27,14,25],[24,31,14,29],[24,34,14,32],[24,37,14,35],[25,2,15,0],[26,2,16,0],[26,11,16,9,"dampingFromOrigamiValue"],[26,34,16,32,"dampingFromOrigamiValue"],[26,35,16,33,"oValue"],[26,41,16,39],[26,43,16,41],[27,4,17,2],[27,11,17,9],[27,12,17,10,"oValue"],[27,18,17,16],[27,21,17,19],[27,22,17,20],[27,26,17,24],[27,27,17,25],[27,30,17,28],[27,32,17,30],[28,2,18,0],[29,2,19,0],[29,11,19,9,"fromOrigamiTensionAndFriction"],[29,40,19,38,"fromOrigamiTensionAndFriction"],[29,41,19,39,"tension"],[29,48,19,46],[29,50,19,48,"friction"],[29,58,19,56],[29,60,19,58],[30,4,20,2],[30,11,20,9],[31,6,21,4,"stiffness"],[31,15,21,13],[31,17,21,15,"stiffnessFromOrigamiValue"],[31,42,21,40],[31,43,21,41,"tension"],[31,50,21,48],[31,51,21,49],[32,6,22,4,"damping"],[32,13,22,11],[32,15,22,13,"dampingFromOrigamiValue"],[32,38,22,36],[32,39,22,37,"friction"],[32,47,22,45],[33,4,23,2],[33,5,23,3],[34,2,24,0],[35,2,25,0],[35,11,25,9,"fromBouncinessAndSpeed"],[35,33,25,31,"fromBouncinessAndSpeed"],[35,34,25,32,"bounciness"],[35,44,25,42],[35,46,25,44,"speed"],[35,51,25,49],[35,53,25,51],[36,4,26,2],[36,13,26,11,"normalize"],[36,22,26,20,"normalize"],[36,23,26,21,"value"],[36,28,26,26],[36,30,26,28,"startValue"],[36,40,26,38],[36,42,26,40,"endValue"],[36,50,26,48],[36,52,26,50],[37,6,27,4],[37,13,27,11],[37,14,27,12,"value"],[37,19,27,17],[37,22,27,20,"startValue"],[37,32,27,30],[37,37,27,35,"endValue"],[37,45,27,43],[37,48,27,46,"startValue"],[37,58,27,56],[37,59,27,57],[38,4,28,2],[39,4,29,2],[39,13,29,11,"projectNormal"],[39,26,29,24,"projectNormal"],[39,27,29,25,"n"],[39,28,29,26],[39,30,29,28,"start"],[39,35,29,33],[39,37,29,35,"end"],[39,40,29,38],[39,42,29,40],[40,6,30,4],[40,13,30,11,"start"],[40,18,30,16],[40,21,30,19,"n"],[40,22,30,20],[40,26,30,24,"end"],[40,29,30,27],[40,32,30,30,"start"],[40,37,30,35],[40,38,30,36],[41,4,31,2],[42,4,32,2],[42,13,32,11,"linearInterpolation"],[42,32,32,30,"linearInterpolation"],[42,33,32,31,"t"],[42,34,32,32],[42,36,32,34,"start"],[42,41,32,39],[42,43,32,41,"end"],[42,46,32,44],[42,48,32,46],[43,6,33,4],[43,13,33,11,"t"],[43,14,33,12],[43,17,33,15,"end"],[43,20,33,18],[43,23,33,21],[43,24,33,22],[43,25,33,23],[43,28,33,26,"t"],[43,29,33,27],[43,33,33,31,"start"],[43,38,33,36],[44,4,34,2],[45,4,35,2],[45,13,35,11,"quadraticOutInterpolation"],[45,38,35,36,"quadraticOutInterpolation"],[45,39,35,37,"t"],[45,40,35,38],[45,42,35,40,"start"],[45,47,35,45],[45,49,35,47,"end"],[45,52,35,50],[45,54,35,52],[46,6,36,4],[46,13,36,11,"linearInterpolation"],[46,32,36,30],[46,33,36,31],[46,34,36,32],[46,37,36,35,"t"],[46,38,36,36],[46,41,36,39,"t"],[46,42,36,40],[46,45,36,43,"t"],[46,46,36,44],[46,48,36,46,"start"],[46,53,36,51],[46,55,36,53,"end"],[46,58,36,56],[46,59,36,57],[47,4,37,2],[48,4,38,2],[48,13,38,11,"b3Friction1"],[48,24,38,22,"b3Friction1"],[48,25,38,23,"x"],[48,26,38,24],[48,28,38,26],[49,6,39,4],[49,13,39,11],[49,19,39,17],[49,22,39,20,"Math"],[49,26,39,24],[49,27,39,25,"pow"],[49,30,39,28],[49,31,39,29,"x"],[49,32,39,30],[49,34,39,32],[49,35,39,33],[49,36,39,34],[49,39,39,37],[49,44,39,42],[49,47,39,45,"Math"],[49,51,39,49],[49,52,39,50,"pow"],[49,55,39,53],[49,56,39,54,"x"],[49,57,39,55],[49,59,39,57],[49,60,39,58],[49,61,39,59],[49,64,39,62],[49,68,39,66],[49,71,39,69,"x"],[49,72,39,70],[49,75,39,73],[49,79,39,77],[50,4,40,2],[51,4,41,2],[51,13,41,11,"b3Friction2"],[51,24,41,22,"b3Friction2"],[51,25,41,23,"x"],[51,26,41,24],[51,28,41,26],[52,6,42,4],[52,13,42,11],[52,21,42,19],[52,24,42,22,"Math"],[52,28,42,26],[52,29,42,27,"pow"],[52,32,42,30],[52,33,42,31,"x"],[52,34,42,32],[52,36,42,34],[52,37,42,35],[52,38,42,36],[52,41,42,39],[52,46,42,44],[52,49,42,47,"Math"],[52,53,42,51],[52,54,42,52,"pow"],[52,57,42,55],[52,58,42,56,"x"],[52,59,42,57],[52,61,42,59],[52,62,42,60],[52,63,42,61],[52,66,42,64],[52,70,42,68],[52,73,42,71,"x"],[52,74,42,72],[52,77,42,75],[52,78,42,76],[53,4,43,2],[54,4,44,2],[54,13,44,11,"b3Friction3"],[54,24,44,22,"b3Friction3"],[54,25,44,23,"x"],[54,26,44,24],[54,28,44,26],[55,6,45,4],[55,13,45,11],[55,23,45,21],[55,26,45,24,"Math"],[55,30,45,28],[55,31,45,29,"pow"],[55,34,45,32],[55,35,45,33,"x"],[55,36,45,34],[55,38,45,36],[55,39,45,37],[55,40,45,38],[55,43,45,41],[55,51,45,49],[55,54,45,52,"Math"],[55,58,45,56],[55,59,45,57,"pow"],[55,62,45,60],[55,63,45,61,"x"],[55,64,45,62],[55,66,45,64],[55,67,45,65],[55,68,45,66],[55,71,45,69],[55,77,45,75],[55,80,45,78,"x"],[55,81,45,79],[55,84,45,82],[55,88,45,86],[56,4,46,2],[57,4,47,2],[57,13,47,11,"b3Nobounce"],[57,23,47,21,"b3Nobounce"],[57,24,47,22,"tension"],[57,31,47,29],[57,33,47,31],[58,6,48,4],[58,10,48,8,"tension"],[58,17,48,15],[58,21,48,19],[58,23,48,21],[58,25,48,23],[59,8,49,6],[59,15,49,13,"b3Friction1"],[59,26,49,24],[59,27,49,25,"tension"],[59,34,49,32],[59,35,49,33],[60,6,50,4],[60,7,50,5],[60,13,50,11],[60,17,50,15,"tension"],[60,24,50,22],[60,27,50,25],[60,29,50,27],[60,33,50,31,"tension"],[60,40,50,38],[60,44,50,42],[60,46,50,44],[60,48,50,46],[61,8,51,6],[61,15,51,13,"b3Friction2"],[61,26,51,24],[61,27,51,25,"tension"],[61,34,51,32],[61,35,51,33],[62,6,52,4],[62,7,52,5],[62,13,52,11],[63,8,53,6],[63,15,53,13,"b3Friction3"],[63,26,53,24],[63,27,53,25,"tension"],[63,34,53,32],[63,35,53,33],[64,6,54,4],[65,4,55,2],[66,4,56,2],[66,8,56,6,"b"],[66,9,56,7],[66,12,56,10,"normalize"],[66,21,56,19],[66,22,56,20,"bounciness"],[66,32,56,30],[66,35,56,33],[66,38,56,36],[66,40,56,38],[66,41,56,39],[66,43,56,41],[66,45,56,43],[66,46,56,44],[67,4,57,2,"b"],[67,5,57,3],[67,8,57,6,"projectNormal"],[67,21,57,19],[67,22,57,20,"b"],[67,23,57,21],[67,25,57,23],[67,26,57,24],[67,28,57,26],[67,31,57,29],[67,32,57,30],[68,4,58,2],[68,8,58,6,"s"],[68,9,58,7],[68,12,58,10,"normalize"],[68,21,58,19],[68,22,58,20,"speed"],[68,27,58,25],[68,30,58,28],[68,33,58,31],[68,35,58,33],[68,36,58,34],[68,38,58,36],[68,40,58,38],[68,41,58,39],[69,4,59,2],[69,8,59,6,"bouncyTension"],[69,21,59,19],[69,24,59,22,"projectNormal"],[69,37,59,35],[69,38,59,36,"s"],[69,39,59,37],[69,41,59,39],[69,44,59,42],[69,46,59,44],[69,49,59,47],[69,50,59,48],[70,4,60,2],[70,8,60,6,"bouncyFriction"],[70,22,60,20],[70,25,60,23,"quadraticOutInterpolation"],[70,50,60,48],[70,51,60,49,"b"],[70,52,60,50],[70,54,60,52,"b3Nobounce"],[70,64,60,62],[70,65,60,63,"bouncyTension"],[70,78,60,76],[70,79,60,77],[70,81,60,79],[70,85,60,83],[70,86,60,84],[71,4,61,2],[71,11,61,9],[72,6,62,4,"stiffness"],[72,15,62,13],[72,17,62,15,"stiffnessFromOrigamiValue"],[72,42,62,40],[72,43,62,41,"bouncyTension"],[72,56,62,54],[72,57,62,55],[73,6,63,4,"damping"],[73,13,63,11],[73,15,63,13,"dampingFromOrigamiValue"],[73,38,63,36],[73,39,63,37,"bouncyFriction"],[73,53,63,51],[74,4,64,2],[74,5,64,3],[75,2,65,0],[76,2,66,0],[76,6,66,0,"_default"],[76,14,66,0],[76,17,66,15],[77,4,67,2,"fromOrigamiTensionAndFriction"],[77,33,67,31],[78,4,68,2,"fromBouncinessAndSpeed"],[79,2,69,0],[79,3,69,1],[80,0,69,2],[80,3]],"functionMap":{"names":["<global>","stiffnessFromOrigamiValue","dampingFromOrigamiValue","fromOrigamiTensionAndFriction","fromBouncinessAndSpeed","normalize","projectNormal","linearInterpolation","quadraticOutInterpolation","b3Friction1","b3Friction2","b3Friction3","b3Nobounce"],"mappings":"AAA;ACY;CDE;AEC;CFE;AGC;CHK;AIC;ECC;GDE;EEC;GFE;EGC;GHE;EIC;GJE;EKC;GLE;EMC;GNE;EOC;GPE;EQC;GRQ;CJU"},"hasCjsExports":false},"type":"js/module"}]}