"use strict";function _asyncToGenerator(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){return function r(a,o){try{var i=t[a](o),u=i.value}catch(e){return void n(e)}if(!i.done)return Promise.resolve(u).then(function(e){r("next",e)},function(e){r("throw",e)});e(u)}("next")})}}drill.init(function(){var e=_asyncToGenerator(regeneratorRuntime.mark(function e(t){var n,r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t("common/data");case 2:n=e.sent,r=$("[p-custom]"),n.on("pageLoaded",function(e,n){var a=r.find('[p-page="'+n.pageId+'"]');a.length&&(a.prop("eleData",{target:a.attr("p-target")||"safe",hor:"center",ver:"center",x:"0",y:"0",w:"100%",h:"100%"}),n.page.append(a),t("util/viewUtil").then(function(e){e.refreshView(a[0]);var n=a.attr("p-rely");t(n).post({page:a})}))});case 5:case"end":return e.stop()}},e,void 0)}));return function(t){return e.apply(this,arguments)}}());