if("undefined"==typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(t){const e=this.constructor;return this.then((n=>e.resolve(t()).then((()=>n))),(n=>e.resolve(t()).then((()=>{throw n}))))}),"undefined"!=typeof uni&&uni&&uni.requireGlobal){const t=uni.requireGlobal();ArrayBuffer=t.ArrayBuffer,Int8Array=t.Int8Array,Uint8Array=t.Uint8Array,Uint8ClampedArray=t.Uint8ClampedArray,Int16Array=t.Int16Array,Uint16Array=t.Uint16Array,Int32Array=t.Int32Array,Uint32Array=t.Uint32Array,Float32Array=t.Float32Array,Float64Array=t.Float64Array,BigInt64Array=t.BigInt64Array,BigUint64Array=t.BigUint64Array}uni.restoreGlobal&&uni.restoreGlobal(Vue,weex,plus,setTimeout,clearTimeout,setInterval,clearInterval),function(t,e){"use strict";function n(e,n){return"Function"===t.toRawType(n)?"function() { [native code] }":n}function a(e,a,o){if("string"==typeof __channelId__&&__channelId__)return o.push(a.replace("at ","uni-app:///")),console[e].apply(console,o);return o.map((function(e){const a=t.toTypeString(e).toLowerCase();if(-1!==["[object object]","[object array]","[object module]"].indexOf(a))try{e="---BEGIN:JSON---"+JSON.stringify(e,n)+"---END:JSON---"}catch(o){e=a}else if(null===e)e="---NULL---";else if(void 0===e)e="---UNDEFINED---";else{const n=t.toRawType(e).toUpperCase();e="NUMBER"===n||"BOOLEAN"===n?"---BEGIN:"+n+"---"+e+"---END:"+n+"---":String(e)}return e})).join("---COMMA---")+" "+a}function o(t,e,...n){const o=a(t,e,n);o&&console[t](o)}var r=(t,e)=>{const n=t.__vccOpts||t;for(const[a,o]of e)n[a]=o;return n};var i=r({name:"page-head",props:{title:{type:String,default:""}}},[["render",function(t,n,a,o,r,i){return e.openBlock(),e.createElementBlock("view",{class:"common-page-head"},[e.createElementVNode("view",{class:"common-page-head-title"},e.toDisplayString(a.title),1)])}]]);function l(e,n){return t.isString(e)?n:e}let s,c=1;const u={};function p(e){if("function"==typeof e){const t=c++;return u[t]=e,t}return t.isPlainObject(e)&&Object.keys(e).forEach((t=>{e[t]=p(e[t])})),e}function m(){var t;return s||(t="UTS-Proxy",s=weex.requireModule(t)),s}function d(e,{package:n,class:a,name:o,id:r,companion:i}){const l=({id:t,name:e,params:r,keepAlive:i})=>{const l=u[t];l?(l(...r),i||delete u[t]):console.error(`${n}${a}.${o} ${e} is not found`)},s=r?{id:r,name:o}:{package:n,class:a,name:o,companion:i};return(...n)=>{const a=t.extend({},s,{params:n.map((t=>p(t)))});return e?new Promise(((t,e)=>{m().invokeAsync(a,(n=>{"return"!==n.type?l(n):n.errMsg?e(n.errMsg):t(n.params)}))})):function(t){if(t.errMsg)throw new Error(t.errMsg);return t.params}(m().invokeSync(a,l))}}const y=function(t,e){return d(t,e)},f="uts.modules.utsHelloworld",h="IndexKt",g=y(!1,{package:f,class:h,name:"callWithoutParam"}),v=y(!1,{package:f,class:h,name:"callWithStringParam"}),A=y(!1,{package:f,class:h,name:"callWithJSONParam"});var k=r({data:()=>({title:"UTS入门示例",stringParam:"hello world"}),onUnload:function(){},methods:{testDoSthWithCallback:function(){g({success:function(){uni.showToast({title:"成功调用uts插件uts-helloworld的callWithoutParam",icon:"none"})}})},testDoSthWithString:function(){v(this.stringParam,(function(t){uni.showToast({title:"uts插件uts-helloworld的callWithStringParam方法收到了你输入的字符串:"+t,icon:"none"})}))},testDoSthWithJSON:function(){o("log","at pages/tabBar/Primer/Primer.vue:51",this.jsonParam);var t={inputText:this.stringParam};A({input:t,success:function(t){o("log","at pages/tabBar/Primer/Primer.vue:59",t),uni.showToast({title:"执行结果:"+JSON.stringify(t),icon:"none"})}})}}},[["render",function(t,n,a,o,r,s){const c=l(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:r.title},null,8,["title"]),e.withDirectives(e.createElementVNode("input",{class:"uni-input","onUpdate:modelValue":n[0]||(n[0]=t=>r.stringParam=t)},null,512),[[e.vModelText,r.stringParam]]),e.createElementVNode("view",{class:"uni-btn-v uni-common-mt"},[e.createElementVNode("button",{type:"primary",onClick:n[1]||(n[1]=(...t)=>s.testDoSthWithCallback&&s.testDoSthWithCallback(...t))},"uts异步方法(无参数)"),e.createElementVNode("button",{type:"primary",onClick:n[2]||(n[2]=(...t)=>s.testDoSthWithString&&s.testDoSthWithString(...t))},"uts异步方法(字符串参数)"),e.createElementVNode("button",{type:"primary",onClick:n[3]||(n[3]=(...t)=>s.testDoSthWithJSON&&s.testDoSthWithJSON(...t))},"uts异步方法(json参数)")])])}]]);const S="uts.modules.utsAdvance",I="IndexKt",w=y(!1,{package:S,class:I,name:"doTimerTask"}),P=y(!1,{package:S,class:I,name:"doIntervalTask"});var N=r({data:()=>({title:"UTS进阶示例",taskId:0}),onUnload:function(){},methods:{testTimer:function(){w({start:function(t){uni.showToast({title:t,icon:"none"})},work:function(t){uni.showToast({title:t,icon:"none"})}})},testInterval:function(){var t=P({start:function(t){uni.showToast({title:t,icon:"none"})},work:function(t){uni.showToast({title:t,icon:"none"})}});this.taskId=t.taskId},testClearInterval:function(){o("log","at pages/tabBar/Advance/Advance.vue:62",this.taskId)}}},[["render",function(t,n,a,o,r,s){const c=l(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:r.title},null,8,["title"]),e.createElementVNode("view",{class:"uni-btn-v uni-common-mt"},[e.createElementVNode("button",{type:"primary",onClick:n[0]||(n[0]=(...t)=>s.testTimer&&s.testTimer(...t))},"延迟任务"),e.createElementVNode("button",{type:"primary",onClick:n[1]||(n[1]=(...t)=>s.testInterval&&s.testInterval(...t))},"定时任务"),e.createElementVNode("button",{type:"primary",onClick:n[2]||(n[2]=(...t)=>s.testClearInterval&&s.testClearInterval(...t))},"关闭定时任务")])])}]]);const b=y(!1,{package:"uts.modules.utsOsapi",class:"IndexKt",name:"getBatteryCapacity"});var B=r({data:()=>({title:"系统API示例"}),onUnload:function(){},methods:{testGetBatteryCapacity:function(){var t=b();o("log","at pages/tabBar/SystemAPI/SystemAPI.vue:25",t),uni.showToast({title:"当前电量:"+t,icon:"none"})}}},[["render",function(t,n,a,o,r,s){const c=l(e.resolveDynamicComponent("page-head"),i);return e.openBlock(),e.createElementBlock("view",null,[e.createVNode(c,{title:r.title},null,8,["title"]),e.createElementVNode("view",{class:"uni-btn-v uni-common-mt"},[e.createElementVNode("button",{type:"primary",onClick:n[0]||(n[0]=(...t)=>s.testGetBatteryCapacity&&s.testGetBatteryCapacity(...t))},"获取电池电量")])])}]]);var E=r({data:()=>({}),methods:{}},[["render",function(t,n,a,o,r,i){return e.openBlock(),e.createElementBlock("view",null,[e.createElementVNode("text",null,"sdk集成")])}]]);__definePage("pages/tabBar/Primer/Primer",k),__definePage("pages/tabBar/Advance/Advance",N),__definePage("pages/tabBar/SystemAPI/SystemAPI",B),__definePage("pages/tabBar/SDKIntegration/SDKIntegration",E);const C={onLaunch:function(){o("log","at App.vue:4","App Launch")},onShow:function(){o("log","at App.vue:7","App Show")},onHide:function(){o("log","at App.vue:10","App Hide")}};const{app:T,Vuex:_,Pinia:V}={app:e.createVueApp(C)};uni.Vuex=_,uni.Pinia=V,T.provide("__globalStyles",__uniConfig.styles),T._component.mpType="app",T._component.render=()=>{},T.mount("#app")}(uni.VueShared,Vue);