drill.init(async(e,t)=>{let a=$('\n    <div class="view_iframe_con">\n        <iframe></iframe>\n    </div>\n    '),n=await e("common/data"),i=`${location.origin}/pageCreator/runner/index.html`,o=a.que("iframe");const r=async()=>{let a=t.mainPage.findIndex(e=>{if(1==e.selected)return!0;let t=!1;return e.forEach(e=>{1==e.selected&&(t=!0)}),t});o.attr("src",`${i}?active=${a}`);let n=await e("common/runnerData");o.ele.onload=(()=>{o.ele.contentWindow.postMessage(JSON.parse(JSON.stringify({type:"initRunnerData",runnerData:n})),"*")})};window.addEventListener("message",e=>{let t=e.data;switch(t.type){case"initBack":setTimeout(()=>{o.ele.contentWindow.postMessage({type:"pptModeCommond",rid:n.pptData.cid},"*")},300);break;case"pptModeBack":n.pptData.cid=t.cid,n.pptData.count=t.count}}),n.pptData.watch("cid",(e,t)=>{o.ele.contentWindow.postMessage({type:"pptModeCommond",rid:t},"*")}),r();const s=()=>{let e=t.mainPage.seek("[selected=1]")[0];if(e)return"p-page"!==e.tag&&(e=e.parent),e};let c=s().hostkey;return t.watch("mainPage",(e,t)=>{let a=!1;e.modifys.forEach(e=>{switch(e.key){case"thumbnail":break;case"selected":let t=s();t&&t.hostkey!=c&&(a=!0,c=t.hostkey);break;case"runAnime":break;default:a=!0}}),a&&r()}),a});