export const DEFAULT_LAZY_RENDER_MIN_FILES=0xc8;export const DEFAULT_LAZY_RENDER_MAX_FILES=0x3e7;export const DEFAULT_LAZY_RENDER_CHUNK_SIZE=0x28;export const DEFAULT_AUTO_COLLAPSE_MIN_FILES=0xc8;export function getLazyRenderUpperBound({maxFiles:maxFiles=DEFAULT_LAZY_RENDER_MAX_FILES,serverMaxFiles:serverMaxFiles=null}={}){if(!Number['isFinite'](serverMaxFiles))return maxFiles;return Math['min'](maxFiles,serverMaxFiles);}export function shouldUseLazyRendering(_0x4b445f,{minFiles:minFiles=DEFAULT_LAZY_RENDER_MIN_FILES,maxFiles:maxFiles=DEFAULT_LAZY_RENDER_MAX_FILES,serverMaxFiles:serverMaxFiles=null}={}){const _0x1c6379=getLazyRenderUpperBound({'maxFiles':maxFiles,'serverMaxFiles':serverMaxFiles});return _0x4b445f>=minFiles&&_0x4b445f<=_0x1c6379;}export function shouldAutoCollapseDiff(_0x7ef0cf,{threshold:threshold=DEFAULT_AUTO_COLLAPSE_MIN_FILES}={}){return _0x7ef0cf>=threshold;}export function getNextRenderedCount({renderedCount:_0x3fa2fa,totalFiles:_0xd822f2,chunkSize:chunkSize=DEFAULT_LAZY_RENDER_CHUNK_SIZE}){return Math['min'](_0x3fa2fa+chunkSize,_0xd822f2);}export function renderedCountForTarget({renderedCount:_0x1a315a,targetIndex:_0x28fec4,totalFiles:_0x4e354d,chunkSize:chunkSize=DEFAULT_LAZY_RENDER_CHUNK_SIZE}){let _0x25ff72=_0x1a315a;while(_0x25ff72<=_0x28fec4&&_0x25ff72<_0x4e354d){_0x25ff72=getNextRenderedCount({'renderedCount':_0x25ff72,'totalFiles':_0x4e354d,'chunkSize':chunkSize});}return _0x25ff72;}export function getLazyLoadMoreText({filesLength:_0x30efc8,renderedCount:_0x1bcee9,chunkSize:_0x2003f4}){const _0x3fb9e3=Math['max'](0x0,_0x30efc8-_0x1bcee9),_0x3905d6=Math['min'](_0x2003f4,_0x3fb9e3);return'Load\x20'+_0x3905d6['toLocaleString']()+'\x20more\x20files\x20('+_0x1bcee9['toLocaleString']()+'\x20/\x20'+_0x30efc8['toLocaleString']()+')';}export function getFileNameFromDiffFile(_0x2ea4eb){return _0x2ea4eb?.['newPath']||_0x2ea4eb?.['oldPath']||'';}export function buildCollapsedStateUpdates({files:_0x770256,collapsed:_0x346fa4,storageKeyPrefix:_0xa097cf,getStorageKey:_0x4e8fd9}){const _0x50a676=[];for(const _0x32f48e of _0x770256||[]){const _0x2a9b8a=getFileNameFromDiffFile(_0x32f48e);if(!_0x2a9b8a)continue;_0x50a676['push']({'key':_0x4e8fd9(_0xa097cf,_0x2a9b8a),'value':String(_0x346fa4),'fileName':_0x2a9b8a});}return _0x50a676;}