const TASK_GROUP_SELECTION_PREFIX='task-group-';export function buildTaskGroupSelectionKey({groupId:groupId=null,taskIds:taskIds=[]}={}){if(groupId)return''+TASK_GROUP_SELECTION_PREFIX+groupId;const _0x29550e=Array['isArray'](taskIds)?taskIds['map'](_0x171377=>String(_0x171377||'')['trim']())['filter'](Boolean):[];if(_0x29550e['length']===0x0)return null;return''+TASK_GROUP_SELECTION_PREFIX+[..._0x29550e]['sort']()['join'](',');}export function isTaskGroupSelectionKey(_0x3ec2fb){return typeof _0x3ec2fb==='string'&&_0x3ec2fb['startsWith'](TASK_GROUP_SELECTION_PREFIX);}export function getSelectedTaskGroupVariantId({groupId:groupId=null,taskIds:taskIds=[]}={}){const _0x105e0b=Array['isArray'](taskIds)?taskIds['map'](_0x1a5154=>String(_0x1a5154||'')['trim']())['filter'](Boolean):[],_0x366310=buildTaskGroupSelectionKey({'groupId':groupId,'taskIds':_0x105e0b});if(!_0x366310||_0x105e0b['length']===0x0)return null;try{const _0x4f0367=localStorage['getItem'](_0x366310);return _0x4f0367&&_0x105e0b['includes'](_0x4f0367)?_0x4f0367:null;}catch{return null;}}export function saveSelectedTaskGroupVariantId({groupId:groupId=null,taskIds:taskIds=[],taskId:taskId=null}={}){if(!taskId)return![];const _0x24e466=buildTaskGroupSelectionKey({'groupId':groupId,'taskIds':taskIds});if(!_0x24e466)return![];try{return localStorage['setItem'](_0x24e466,taskId),!![];}catch{return![];}}