export function isJudgeTaskEntry(_0x346f2a){return _0x346f2a?.['isJudgeTask']===!![]||_0x346f2a?.['taskType']==='judge'||_0x346f2a?.['task_type']==='judge';}export function getDisplayTaskVariants(_0x582fb6){if(!Array['isArray'](_0x582fb6))return[];const _0x328d2b=_0x582fb6['filter'](_0x1e68be=>!isJudgeTaskEntry(_0x1e68be));return _0x328d2b['length']>0x0?_0x328d2b:_0x582fb6;}export function getDisplayTaskVariantCount(_0x224780){return getDisplayTaskVariants(_0x224780)['length'];}export function isDisplayTaskGroup(_0x401b16){return getDisplayTaskVariantCount(_0x401b16)>0x1;}export function getAggregateTaskStatus(_0x3f3c4f,{fallback:fallback='unknown'}={}){const _0x3e27f8=Array['isArray'](_0x3f3c4f)?_0x3f3c4f['filter'](Boolean):[];if(_0x3e27f8['length']===0x0)return fallback;const _0x1c7344=_0x3e27f8['map'](_0x34b85c=>_0x34b85c?.['status']||'unknown'),_0x4333ce=_0x383ded=>_0x1c7344['every'](_0x44423a=>_0x44423a===_0x383ded),_0x51f71e=_0x539b2f=>_0x1c7344['some'](_0x198bd7=>_0x198bd7===_0x539b2f);if(_0x4333ce('staged'))return'staged';if(_0x4333ce('queued'))return'queued';if(_0x51f71e('running'))return'running';if(_0x51f71e('queued'))return'queued';if(_0x51f71e('failed'))return'failed';if(_0x4333ce('interrupted'))return'interrupted';if(_0x51f71e('completed'))return'completed';return fallback;}export function getTaskTileStatus({primary:_0x264170,variants:_0x41f33d,isGroup:isGroup=![]}={}){const _0x361871=_0x264170?.['status']||'unknown',_0x314f4f=Array['isArray'](_0x41f33d)?_0x41f33d['filter'](Boolean):[],_0x44ce33=_0x314f4f['some'](_0x3eb722=>_0x3eb722?.['taskId']!==_0x264170?.['taskId']&&isJudgeTaskEntry(_0x3eb722));if(!isGroup&&!_0x44ce33)return _0x361871;return getAggregateTaskStatus(_0x314f4f['length']>0x0?_0x314f4f:[_0x264170],{'fallback':_0x361871});}