drill.define(async a=>{let e=(await a("common/data")).project.mainPage,t={getData(){let a=[];return e.forEach(e=>{a.push({type:"page",data:e});let t={},r=new Set;e.forEach(a=>{if(a&&a.animateIn){r.add(a.animateInDelay),(t[a.animateInDelay]||(t[a.animateInDelay]={type:"group",arr:[]})).arr.push({type:"ele",data:a})}}),(r=Array.from(r)).sort(),r.forEach(e=>{a.push(t[e])})}),{data:a}},getCidBySelected(){let{data:a}=t.getData(),r=e.seek("[selected=1]")[0];return a.findIndex(a=>{switch(a.type){case"page":return a.data===r;case"group":return!!a.arr.find(a=>a.data===r)}return a.data===r})}};return t});