jQuery;varoi=function(){vart=_asyncToGenerator(regeneratorRuntime.mark((function_callee2(t,r){varn;returnregeneratorRuntime.wrap((function_callee2$(o){for(;;)switch(o.prev=o.next){case0:returno.prev=0,o.next=3,e.import("./extensions/ext-".concat(t,"/locale/").concat(r,".js"));case3:n=o.sent,o.next=12;break;case6:returno.prev=6,o.t0=o.catch(0),console.error("Missing translation (".concat(r,") for extension ").concat(t," - using 'en'")),o.next=11,e.import("./extensions/ext-".concat(t,"/locale/en.js"));case11:n=o.sent;case12:returno.abrupt("return",n.default);case13:case"end":returno.stop()}}),_callee2,null,[[0,6]])})));returnfunctionloadExtensionTranslation(e,r){returnt.apply(this,arguments)}}();t("default",{name:"helloworld",init:functioninit(t){vare=this;return_asyncToGenerator(regeneratorRuntime.mark((function_callee(){varr,n,o,i;returnregeneratorRuntime.wrap((function_callee$(a){for(;;)switch(a.prev=a.next){case0:returnr=t.$,t.importLocale,n=e,a.next=4,oi("helloworld",n.curPrefs.lang);case4:returno=a.sent,i=n.canvas,a.abrupt("return",{name:o.name,svgicons:"helloworld-icon.xml",buttons:[{id:"hello_world",icon:"helloworld.png",type:"mode",title:o.buttons[0].title,events:{click:functionclick(){i.setMode("hello_world")}}}],mouseDown:functionmouseDown(){if("hello_world"===i.getMode())return{started:!0}},mouseUp:functionmouseUp(t){if("hello_world"===i.getMode()){vare=i.getZoom(),n=t.mouse_x/e,a=t.mouse_y/e,c=o.text;[["x",n],["y",a]].forEach((function(t){vare=_slicedToArray(t,2),r=e[0],n=e[1];c=c.replace("{"+r+"}",n)})),r.alert(c)}}});case7:case"end":returna.stop()}}),_callee)})))()}})}}}));