drill.define(async t=>{let[e,a,i]=await t("util/dataUtil","common/data","util/animationCSSUtil"),g=0;return{get isRunAnime(){return g},toPage(t){if(g)return;let e=$('.p_main .page[active="1"]'),n=e.index(),r=$(".p_main .page").eq(t);if(!r.length||n==t)return;let o=e.prop("pageData"),c=r.prop("pageData");r.attr("active",2),n>t?(e.css(i.toCSSObj(o.pos1)),r.css(i.toCSSObj(c.pos2))):(e.css(i.toCSSObj(o.pos2_after)),r.css(i.toCSSObj(c.pos1_after))),g=1,a.trigger("changePageStart",{activePage:e,activeId:n,nextPage:r,nextId:t}),setTimeout(()=>{g=0,e.attr("active",0),r.attr("active",1),a.trigger("changePageEnd",{activePage:r,activeId:t,oldPage:e,oldId:n})},500)},toNextPage(){let t=$('.p_main .page[active="1"]');this.toPage(t.index()+1)},toPrevPage(){let t=$('.p_main .page[active="1"]').index()-1;t>=0&&this.toPage(t)}}});