/* Copyright 2025 <FireWave Interactive>. This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. You may not use this work for commercial purposes, and you may not alter, transform, or build upon this work. For more details, visit http://creativecommons.org/licenses/by-nc-nd/4.0/ */
(function(_0x15d75d,_0x3b45d7){const _0x2a9168=_0x37ab,_0x28d0ce=_0x15d75d();while(!![]){try{const _0x1f435f=parseInt(_0x2a9168(0x1cc))/0x1*(parseInt(_0x2a9168(0x1ce))/0x2)+parseInt(_0x2a9168(0x1c9))/0x3+parseInt(_0x2a9168(0x1cf))/0x4*(-parseInt(_0x2a9168(0x1c8))/0x5)+-parseInt(_0x2a9168(0x1d1))/0x6+-parseInt(_0x2a9168(0x1cd))/0x7+parseInt(_0x2a9168(0x1d3))/0x8*(-parseInt(_0x2a9168(0x1d0))/0x9)+parseInt(_0x2a9168(0x1d2))/0xa;if(_0x1f435f===_0x3b45d7)break;else _0x28d0ce['push'](_0x28d0ce['shift']());}catch(_0x44982d){_0x28d0ce['push'](_0x28d0ce['shift']());}}}(_0x55e9,0x768e8));function _0x55e9(){const _0x2bb720=['reduce','min','6135zJlray','920520xzDrCj','Interpolation\x20factor\x20\x27lerp\x27\x20must\x20be\x20within\x20the\x20range\x20[0,\x201].','length','2cciPZO','5428892EwRxck','151770aFzNqj','1416RDoyLa','63qiiMPg','3899040sWYxrv','22281210HeghiZ','390136IwgvZj','floor','random'];_0x55e9=function(){return _0x2bb720;};return _0x55e9();}function _0x37ab(_0x43903f,_0x572a25){const _0x55e918=_0x55e9();return _0x37ab=function(_0x37ab57,_0x138176){_0x37ab57=_0x37ab57-0x1c7;let _0x47d91c=_0x55e918[_0x37ab57];return _0x47d91c;},_0x37ab(_0x43903f,_0x572a25);}export const sum=(..._0x2c1d43)=>{const _0x227673=_0x37ab;return _0x2c1d43[_0x227673(0x1d6)]((_0x277ee0,_0x122737)=>_0x277ee0+_0x122737,0x0);};export const avg=(..._0x57ee24)=>{const _0x393755=_0x37ab;if(_0x57ee24[_0x393755(0x1cb)]===0x0)throw new Error('Cannot\x20calculate\x20the\x20average\x20of\x20an\x20empty\x20list.');return sum(..._0x57ee24)/_0x57ee24['length'];};export const degToRad=_0x15da13=>{return _0x15da13*(Math['PI']/0xb4);};export const radToDeg=_0x41fbc2=>{return _0x41fbc2*(0xb4/Math['PI']);};export const randomRange=(_0xd77971,_0x79c278)=>{const _0x24a6bf=_0x37ab;return Math[_0x24a6bf(0x1d4)](Math[_0x24a6bf(0x1d5)]()*(_0x79c278-_0xd77971+0x1))+_0xd77971;};export const randomAB=(_0x1d0ee5,_0x36d448)=>{return _0x1d0ee5+Math['random']()*(_0x36d448-_0x1d0ee5);};export const clamp=(_0x2eb294,_0x781190,_0x35ae3d)=>{const _0x3f0cff=_0x37ab;return Math['max'](_0x781190,Math[_0x3f0cff(0x1c7)](_0x35ae3d,_0x2eb294));};export const lerp=(_0x58dfc2,_0x59f69b,_0x14bb71)=>{const _0x26a395=_0x37ab;if(_0x14bb71<0x0||_0x14bb71>0x1)throw new Error(_0x26a395(0x1ca));return _0x58dfc2+(_0x59f69b-_0x58dfc2)*_0x14bb71;};