You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

1 lines
23 KiB

(this["webpackJsonp"]=this["webpackJsonp"]||[]).push([["app-service"],{"0de9":function(t,e,n){"use strict";function r(t){var e=Object.prototype.toString.call(t);return e.substring(8,e.length-1)}function o(){return"string"===typeof __channelId__&&__channelId__}function i(t,e){switch(r(e)){case"Function":return"function() { [native code] }";default:return e}}function a(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];console[t].apply(console,n)}function u(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var a=e.shift();if(o())return e.push(e.pop().replace("at ","uni-app:///")),console[a].apply(console,e);var u=e.map((function(t){var e=Object.prototype.toString.call(t).toLowerCase();if("[object object]"===e||"[object array]"===e)try{t="---BEGIN:JSON---"+JSON.stringify(t,i)+"---END:JSON---"}catch(o){t=e}else if(null===t)t="---NULL---";else if(void 0===t)t="---UNDEFINED---";else{var n=r(t).toUpperCase();t="NUMBER"===n||"BOOLEAN"===n?"---BEGIN:"+n+"---"+t+"---END:"+n+"---":String(t)}return t})),s="";if(u.length>1){var c=u.pop();s=u.join("---COMMA---"),0===c.indexOf(" at ")?s+=c:s+="---COMMA---"+c}else s=u[0];console[a](s)}n.r(e),n.d(e,"log",(function(){return a})),n.d(e,"default",(function(){return u}))},"278c":function(t,e,n){var r=n("c135"),o=n("9b42"),i=n("6613"),a=n("c240");t.exports=function(t,e){return r(t)||o(t,e)||i(t,e)||a()},t.exports.__esModule=!0,t.exports["default"]=t.exports},"3d23":function(t,e,n){"use strict";n.r(e);var r=n("a921"),o=n.n(r);for(var i in r)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(i);e["default"]=o.a},"4a12":function(t,e){t.exports={httpRequest:function(t){return new Promise((function(e,n){uni.request({url:"https://aip.baidubce.com/"+t.url,data:t.data,header:t.header||{"Content-Type":"application/json;charset=utf-8","api-version":t.apiVersion||"1.0"},method:t.method&&t.method.toUpperCase()||"POST",dataType:t.dataType,responseType:t.responseType,success:function(t){200==t.statusCode&&200===t.data.code||401===t.data.code||(503===t.data.code?uni.showToast({icon:"none",title:"\u7cfb\u7edf\u5f02\u5e38",duration:3e3}):t.data.msg&&uni.showToast({icon:"none",title:t.data.msg,duration:3e3})),e(t.data)},fail:function(t){"request:fail timeout"===t.errMsg&&uni.showToast({icon:"none",title:"\u7f51\u7edc\u8fde\u63a5\u8d85\u65f6,\u8bf7\u7a0d\u540e\u91cd\u8bd5"}),n(t),setTimeout((function(){uni.hideLoading()}),1500)},complete:function(t){e(t)}})}))}}},"4ea4":function(t,e){t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports["default"]=t.exports},"50cb":function(t,e,n){"use strict";n.r(e);var r=n("6304"),o=n.n(r);for(var i in r)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(i);e["default"]=o.a},"5a07":function(t,e,n){"use strict";var r=n("4a12"),o={getToken:"oauth/2.0/token",idCard:"rest/2.0/ocr/v1/accurate_basic"};t.exports={getTokenR:function(t){return(0,r.httpRequest)({url:"".concat(o.getToken,"?grant_type=client_credentials&client_id=W4jgXICF2kyaivdsYzKoDOxD&client_secret=h6uwa0q0hkjn4im4Vb9QXaC7xrBbvw6B")})},getMessage:function(t){return(0,r.httpRequest)({url:"".concat(o.idCard,"?access_token=").concat(t.access_token),data:t.data,header:{"Content-Type":"application/x-www-form-urlencoded"}})}}},"5a43":function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},t.exports.__esModule=!0,t.exports["default"]=t.exports},6304:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={onLaunch:function(){t("log","App Launch"," at App.vue:4"),this.qxcz()},onShow:function(){t("log","App Show"," at App.vue:8")},onHide:function(){t("log","App Hide"," at App.vue:12")},methods:{qxcz:function(){plus.android.requestPermissions(["android.permission.WRITE_EXTERNAL_STORAGE"],(function(t){t.deniedAlways.length>0&&uni.showModal({title:"\u5b58\u50a8\u6743\u9650",content:"\u60a8\u62d2\u7edd\u4e86\u5b58\u50a8\u6743\u9650\uff0c\u8bf7\u53bb\u8bbe\u7f6e-\u5e94\u7528\u5f00\u542f\u5b58\u50a8\u6743\u9650\u3002",success:function(t){t.confirm||t.cancel}}),t.deniedPresent.length>0&&plus.android.requestPermissions(["android.permission.WRITE_EXTERNAL_STORAGE"]),t.granted.length}),(function(t){}))}}};e.default=n}).call(this,n("0de9")["default"])},6613:function(t,e,n){var r=n("5a43");t.exports=function(t,e){if(t){if("string"===typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}},t.exports.__esModule=!0,t.exports["default"]=t.exports},7037:function(t,e){function n(e){return t.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports["default"]=t.exports,n(e)}t.exports=n,t.exports.__esModule=!0,t.exports["default"]=t.exports},7445:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){}));var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",{staticClass:t._$s(0,"sc","box"),attrs:{_i:0}},[n("view",{staticClass:t._$s(1,"sc","header"),attrs:{_i:1}},[n("button",{attrs:{_i:2},on:{click:t.uploadImage}})]),n("view",{staticClass:t._$s(3,"sc","main"),attrs:{_i:3}},[n("scroll-view",{},[n("view",[t._$s(6,"i",t.content.length>0)?n("h4"):t._e(),n("text",[t._v(t._$s(7,"t0-0",t._s(t.message)))])]),n("view",t._l(t._$s(9,"f",{forItems:t.content}),(function(e,r,o,i){return n("text",{key:t._$s(9,"f",{forIndex:o,key:r})},[n("p",[n("text",{},[t._v(t._$s("11-"+i,"t0-0",t._s(e.words)))])])])})),0)])]),n("view",{staticClass:t._$s(12,"sc","footer"),attrs:{_i:12}},[t._$s(13,"i",""!==t.contentStr)?n("button",{attrs:{_i:13},on:{click:function(e){return t.saveTxt(t.contentStr)}}}):t._e()])])},o=[]},"823b":function(t,e,n){"use strict";n.r(e);var r=n("50cb");for(var o in r)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(o);var i=n("f0c5"),a=Object(i["a"])(r["default"],void 0,void 0,!1,null,null,null,!1,void 0,void 0);e["default"]=a.exports},"8bbf":function(t,e){t.exports=Vue},9523:function(t,e,n){var r=n("a395");t.exports=function(t,e,n){return e=r(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},t.exports.__esModule=!0,t.exports["default"]=t.exports},"9b42":function(t,e){t.exports=function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==e);s=!0);}catch(f){c=!0,o=f}finally{try{if(!s&&null!=n["return"]&&(a=n["return"](),Object(a)!==a))return}finally{if(c)throw o}}return u}},t.exports.__esModule=!0,t.exports["default"]=t.exports},a395:function(t,e,n){var r=n("7037")["default"],o=n("e50d");t.exports=function(t){var e=o(t,"string");return"symbol"===r(e)?e:String(e)},t.exports.__esModule=!0,t.exports["default"]=t.exports},a524:function(t,e,n){"use strict";(function(t){var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.pathToBase64=function(e){return new Promise((function(n,r){if("object"===("undefined"===typeof window?"undefined":(0,o.default)(window))&&"document"in window){if("function"===typeof FileReader){var i=new XMLHttpRequest;return i.open("GET",e,!0),i.responseType="blob",i.onload=function(){if(200===this.status){var t=new FileReader;t.onload=function(t){n(t.target.result)},t.onerror=r,t.readAsDataURL(this.response)}},i.onerror=r,void i.send()}var a=document.createElement("canvas"),u=a.getContext("2d"),s=new Image;return s.onload=function(){a.width=s.width,a.height=s.height,u.drawImage(s,0,0),n(a.toDataURL()),a.height=a.width=0},s.onerror=r,void(s.src=e)}"object"!==("undefined"===typeof plus?"undefined":(0,o.default)(plus))?"object"===("undefined"===typeof t?"undefined":(0,o.default)(t))&&t.canIUse("getFileSystemManager")?t.getFileSystemManager().readFile({filePath:e,encoding:"base64",success:function(t){n("data:image/png;base64,"+t.data)},fail:function(t){r(t)}}):r(new Error("not support")):plus.io.resolveLocalFileSystemURL(function(t){if(0===t.indexOf("_www")||0===t.indexOf("_doc")||0===t.indexOf("_documents")||0===t.indexOf("_downloads"))return t;if(0===t.indexOf("file://"))return t;if(0===t.indexOf("/storage/emulated/0/"))return t;if(0===t.indexOf("/")){var e=plus.io.convertAbsoluteFileSystem(t);if(e!==t)return e;t=t.substr(1)}return"_www/"+t}(e),(function(t){t.file((function(t){var e=new plus.io.FileReader;e.onload=function(t){n(t.target.result)},e.onerror=function(t){r(t)},e.readAsDataURL(t)}),(function(t){r(t)}))}),(function(t){r(t)}))}))};var o=r(n("7037"))}).call(this,n("fe07")["default"])},a921:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n("5a07"),o=n("a524"),i={data:function(){return{content:[],token:"",contentStr:"",message:""}},created:function(){var t=this;(0,r.getTokenR)().then((function(e){t.token=e.access_token}))},methods:{uploadImage:function(){var t=this;uni.chooseImage({count:1,sizeType:["original","compressed"],success:function(e){t.contentStr="",t.message="",uni.showLoading({title:"\u6b63\u5728\u8bc6\u522b\u4e2d..."}),(0,o.pathToBase64)(e.tempFilePaths[0]).then((function(e){uni.request({url:"https://aip.baidubce.com/rest/2.0/ocr/v1/accurate_basic?access_token=".concat(t.token),data:{image:e,language_type:"ENG",detect_direction:!0},method:"POST",header:{"Content-Type":"application/x-www-form-urlencoded"},success:function(e){for(var n in t.content=e.data.words_result,e.data.words_result)t.contentStr+=e.data.words_result[n].words+"\n";uni.hideLoading()}})}))}})},saveTxt:function(e){var n="/A_store/".concat(Date.parse(new Date),".txt"),r=plus.android.importClass("android.os.Environment"),o=r.getExternalStorageDirectory(),i=plus.android.importClass("java.io.File"),a=(plus.android.importClass("java.io.BufferedReader"),plus.android.importClass("java.io.FileReader"),plus.android.importClass("java.io.FileWriter"));plus.android.importClass("java.io.BufferedWriter"),plus.android.importClass("java.io.OutputStreamWriter"),plus.android.importClass("java.io.FileOutputStream");try{var u=new i(o+"/A_store");u.exists()||(t("log","\u521b\u5efa\u76ee\u5f55"," at pages/index/index.vue:111"),u.mkdirs());var s=new i(o+n);t("log",s.exists()," at pages/index/index.vue:115"),s.exists()||s.createNewFile();var c=new a(o+n,!0);return c.write(e),c.close(),uni.showToast({icon:"success",mask:!0,title:"\u4fdd\u5b58\u6210\u529f"}),this.message="\uff08\u63d0\u793a\uff1a\u6587\u4ef6\u5b58\u50a8\u5728\u672c\u5730/A_store/\u76ee\u5f55\u4e0b\uff09",!0}catch(f){return uni.showToast({icon:"error",mask:!0,title:"\u4fdd\u5b58\u5931\u8d25"}),!1}return!1}}};e.default=i}).call(this,n("0de9")["default"])},c135:function(t,e){t.exports=function(t){if(Array.isArray(t))return t},t.exports.__esModule=!0,t.exports["default"]=t.exports},c240:function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports["default"]=t.exports},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},d188:function(t,e,n){"use strict";var r=n("4ea4"),o=r(n("9523"));n("d6d7");var i=r(n("823b")),a=r(n("8bbf"));function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}a.default.config.productionTip=!1,i.default.mpType="app";var s=new a.default(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){(0,o.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},i.default));s.$mount()},d6d7:function(t,e,n){if("undefined"===typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(t){var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){throw n}))}))}),"undefined"!==typeof uni&&uni&&uni.requireGlobal){var r=uni.requireGlobal();ArrayBuffer=r.ArrayBuffer,Int8Array=r.Int8Array,Uint8Array=r.Uint8Array,Uint8ClampedArray=r.Uint8ClampedArray,Int16Array=r.Int16Array,Uint16Array=r.Uint16Array,Int32Array=r.Int32Array,Uint32Array=r.Uint32Array,Float32Array=r.Float32Array,Float64Array=r.Float64Array,BigInt64Array=r.BigInt64Array,BigUint64Array=r.BigUint64Array}uni.restoreGlobal&&uni.restoreGlobal(weex,plus,setTimeout,clearTimeout,setInterval,clearInterval),__definePage("pages/index/index",(function(){return Vue.extend(n("dc05").default)}))},dc05:function(t,e,n){"use strict";n.r(e);var r=n("7445"),o=n("3d23");for(var i in o)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(i);var a=n("f0c5"),u=Object(a["a"])(o["default"],r["b"],r["c"],!1,null,"0e7f6ffa",null,!1,r["a"],void 0);e["default"]=u.exports},e50d:function(t,e,n){var r=n("7037")["default"];t.exports=function(t,e){if("object"!==r(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)},t.exports.__esModule=!0,t.exports["default"]=t.exports},f0c5:function(t,e,n){"use strict";function r(t,e,n,r,o,i,a,u,s,c){var f,l="function"===typeof t?t.options:t;if(s){l.components||(l.components={});var p=Object.prototype.hasOwnProperty;for(var d in s)p.call(s,d)&&!p.call(l.components,d)&&(l.components[d]=s[d])}if(c&&((c.beforeCreate||(c.beforeCreate=[])).unshift((function(){this[c.__module]=this})),(l.mixins||(l.mixins=[])).push(c)),e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),i&&(l._scopeId="data-v-"+i),a?(f=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},l._ssrRegister=f):o&&(f=u?function(){o.call(this,this.$root.$options.shadowRoot)}:o),f)if(l.functional){l._injectStyles=f;var v=l.render;l.render=function(t,e){return f.call(e),v(t,e)}}else{var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,f):[f]}return{exports:t,options:l}}n.d(e,"a",(function(){return r}))},fe07:function(t,e,n){"use strict";(function(t){var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.Behavior=function(t){return t},e.Component=function(e){var n=function(e){var n=e.data,r=e.options,o=e.methods,i=e.behaviors,a=e.lifetimes,u=e.observers,f=e.relations,l=e.properties,d=e.pageLifetimes,v=e.externalClasses,h={mixins:[],props:{},watch:{},mpOptions:{mpObservers:[]}};return c(h),s(n,h),function(t,e){if(!t)return;e.mpOptions.options=t}(r,h),j(o,h),E(i,h),function(t,e){if(!t)return;A(t,e)}(a,h),function(t,e){if(!t)return;var n=e.mpOptions.mpObservers;Object.keys(t).forEach((function(e){n.push({paths:C(e),observer:t[e]})}))}(u,h),function(e,n){if(!e)return;Object.keys(e).forEach((function(n){var r=e[n];r.name=n,r.target=r.target?String(r.target):function(t,e){0===e.indexOf("/")&&(t="");var n=t.split("/"),r=e.split("/");n.pop();while(r.length){var o=r.shift();""!==o&&"."!==o&&(".."!==o?n.push(o):n.pop())}return n.join("/")}(t.__wxRoute,n)})),n.mpOptions.relations=e}(f,h),w(l,h),function(t,e){if(!t)return;x.forEach((function(n){var r=t[n];p(r)&&(e[g[n]]=r)}))}(d,h),function(t,e){if(!t)return;Array.isArray(t)||(t=[t]);e.mpOptions.externalClasses=t,e.mpOptions.properties||(e.mpOptions.properties=Object.create(null));t.forEach((function(t){e.mpOptions.properties[y(t)]={type:String,value:""}}))}(v,h),A(e,h),$(e),h}(e);n.mixins.unshift(Q),n.mpOptions.path=t.__wxRoute,function(t){t.onServiceAttached||(t.onServiceAttached=[]);t.onServiceAttached.push((function(){N(this,"linked")}))}(n),t.__wxComponents[t.__wxRoute]=n},e.Page=function(e){var n=function(t){var e={mixins:[],mpOptions:{}};return c(e),s(t.data,e),function(t,e){var n=Object.create(null);Object.keys(t).forEach((function(e){var r=t[e];p(r)&&-1===O.indexOf(e)&&(n[e]=r)})),e.methods=n}(t,e),function(t,e){Object.keys(t).forEach((function(n){-1!==O.indexOf(n)&&(e[n]=t[n])}))}(t,e),e}(e);n.mixins.unshift(Q),n.mpOptions.path=t.__wxRoute,t.__wxComponents[t.__wxRoute]=n},e.nextTick=e.default=void 0;var o,i=r(n("9523")),a=r(n("278c")),u=r(n("8bbf"));function s(t,e){t&&(e.mpOptions.data=t)}function c(e){e.components=t.__wxVueOptions.components}var f=Object.prototype.toString,l=Object.prototype.hasOwnProperty;function p(t){return"function"===typeof t}function d(t){return"[object Object]"===f.call(t)}function v(t,e){return l.call(t,e)}function h(){}var m=/-(\w)/g,y=function(t){var e=Object.create(null);return function(n){var r=e[n];return r||(e[n]=t(n))}}((function(t){return t.replace(m,(function(t,e){return e?e.toUpperCase():""}))})),_={created:"onServiceCreated",attached:"onServiceAttached",ready:"mounted",moved:"moved",detached:"destroyed"},b=Object.keys(_),g={show:"onPageShow",hide:"onPageHide",resize:"onPageResize"},x=Object.keys(g),O=["onLoad","onShow","onReady","onHide","onUnload","onPullDownRefresh","onReachBottom","onShareAppMessage","onPageScroll","onResize","onTabItemTap"];function w(t,e){t&&(e.mpOptions.properties=t)}function j(t,e){t&&(t.$emit&&(console.warn('Method "$emit" conflicts with an existing Vue instance method'),delete t.$emit),e.methods=t)}function A(t,e){b.forEach((function(n){v(t,n)&&(e[_[n]]||(e[_[n]]=[])).push(t[n])}))}var S={"wx://form-field":{},"wx://component-export":{}};function $(t,e){(function(t){var e=t.behaviors,n=t.definitionFilter,r=[];if(Array.isArray(e)&&e.forEach((function(e){e="string"===typeof e?S[e]:e,e.definitionFilter&&(r.push(e.definitionFilter),e.definitionFilter.call(null,t,[]))})),p(n));})(t)}var T={"wx://form-field":{beforeCreate:function(){var t=this.$options.mpOptions;t.properties||(t.properties=Object.create(null));var e=t.properties;v(e,"name")||(e.name={type:String}),v(e,"value")||(e.value={type:String})}}};function E(t,e){t&&t.forEach((function(t){"string"===typeof t?T[t]&&e.mixins.push(T[t]):e.mixins.push(function(t){var e=t.data,n=t.methods,r=t.behaviors,o=t.properties,i={watch:{},mpOptions:{mpObservers:[]}};return s(e,i),j(n,i),E(r,i),w(o,i),A(t,i),$(t),i}(t))}))}function C(t){return t.split(",").map((function(t){return function(t){return t.split(".")}(t)}))}function k(t,e,n,r){if(e){var o="_$".concat(t,"Handlers");(r[o]||(r[o]=[])).push((function(){e.call(r,n)}))}}function P(t,e,n){var r=t.name,o=n._$relationNodes||(n._$relationNodes=Object.create(null));(o[r]||(o[r]=[])).push(e),k("linked",t["linked"],e,n)}function R(t,e,n){k("unlinked",t["unlinked"],e,n)}function I(t,e,n){var r=t&&t.$options.mpOptions&&t.$options.mpOptions.relations;if(!r)return[];var o=Object.keys(r).find((function(t){var o=r[t];return o.target===e&&o.type===n}));return o?[r[o],t]:[]}function M(t,e,n){var r=n(t,t.$options.mpOptions.path),o=(0,a.default)(r,2),i=o[0],u=o[1];i&&(P(i,t,u),P(e,u,t),R(i,t,u),R(e,u,t))}function F(t){var e=t.$options.mpOptions||{},n=e.relations;n&&Object.keys(n).forEach((function(e){(function(t,e){var n=t.type;"parent"===n?M(e,t,(function(t,e){return I(t.$parent,e,"child")})):"ancestor"===n&&M(e,t,(function(t,e){var n=t.$parent;while(n){var r=I(n,e,"descendant");if(r.length)return r;n=n.$parent}return[]}))})(n[e],t)}))}function N(t,e){var n=t["_$".concat(e,"Handlers")];n&&n.forEach((function(t){return t()}))}var U={enumerable:!0,configurable:!0,get:h,set:h};function D(t,e,n){U.get=function(){return this[e][n]},U.set=function(t){this[e][n]=t},Object.defineProperty(t,n,U)}function B(t,e){var n=this;d(t)&&(Object.keys(t).forEach((function(e){(function(t,e,n){var r=t.replace(/\[(\d+?)\]/g,".$1").split(".");return r.reduce((function(t,n,o){if(o!==r.length-1)return"undefined"===typeof t[n]&&(t[n]={}),t[n];t[n]=e}),n),1===r.length})(e,t[e],n.data)&&!v(n,e)&&D(n,"__data__",e)})),this.$forceUpdate(),p(e)&&this.$nextTick(e))}var L=Object.prototype.toString,q=function(t){return function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=L.call(n);if("[object Array]"===r)return e=n.slice(0),e;if("[object Object]"===r){for(var o in n)e[o]=t(e[o],n[o]);return e}if("[object Date]"===r)return new Date(n.getTime());if("[object RegExp]"===r){var i=String(n),a=i.lastIndexOf("/");return new RegExp(i.slice(1,a),i.slice(a+1))}return n}("[object Array]"===L.call(t)?[]:{},t)},G=(o={},(0,i.default)(o,String,""),(0,i.default)(o,Number,0),(0,i.default)(o,Boolean,!1),(0,i.default)(o,Object,null),(0,i.default)(o,Array,[]),(0,i.default)(o,null,null),o);function V(t){return G[t]}function z(t){return d(t)?t.type:t}function H(t,e,n,r){var o=n[t];if(void 0!==o){var i=e[t],a=z(i);o=J(o,a);var u=i&&i.observer;return u&&setTimeout((function(){X(u,r,o)}),4),o}return function(t){return d(t)?v(t,"value")?t.value:V(t.type):V(t)}(e[t])}function J(t,e){return e===Boolean?!!t:e===String?String(t):t}function X(t,e,n,r){try{"function"===typeof t?t.call(e,n,r):"string"===typeof t&&"function"===typeof e[t]&&e[t](n,r)}catch(o){console.error("execute observer ".concat(t," callback fail! err: ").concat(o))}}function W(t){var e=t.$options.mpOptions&&t.$options.mpOptions.properties,n=t.$options.propsData;n&&e&&Object.keys(e).forEach((function(r){v(n,r)&&(t[r]=J(n[r],z(e[r])))}))}function K(t){var e=JSON.parse(JSON.stringify(t.$options.mpOptions.data||{}));t["__data__"]=e;var n={get:function(){return t["__data__"]},set:function(e){t["__data__"]=e}};Object.defineProperties(t,{data:n,properties:n}),t.setData=B,function(t,e){var n=t.$options.mpOptions.properties;if(n){var r=q(t.$options.propsData)||{},o=function(o){var i=!!d(n[o])&&n[o].observer,a=H(o,n,r,t);Object.defineProperty(e,o,{enumerable:!0,configurable:!0,get:function(){return a},set:function(e){var n=a;e===a||e!==e&&a!==a||(a=Array.isArray(e)?e.slice(0):e,i&&X(i,t,e,n),t.$forceUpdate())}})};for(var i in n)o(i)}}(t,e),Object.keys(e).forEach((function(e){D(t,"__data__",e)}))}var Q={beforeCreate:function(){this._renderProxy=this,this._$self=this,this._$noop=h},created:function(){K(this),function(t){var e=t.$emit;t.triggerEvent=function(n,r,o){var i={dataset:t.$el.dataset},a={target:i,currentTarget:i,detail:r,preventDefault:h,stopPropagation:h};e.call(t,n,a)},t.$emit=function(){t.triggerEvent.apply(t,arguments)},t.getRelationNodes=function(e){return(t._$relationNodes&&t._$relationNodes[e]||[]).filter((function(t){return!t._isDestroyed}))},t._$updateProperties=W}(this),F(this)},mounted:function(){(function(t){var e=t.$options.watch;e&&Object.keys(e).forEach((function(n){var r=e[n];if(r.mounted){var o=t[n],i=r.handler;"string"===typeof i&&(i=t[i]),i&&i.call(t,o,o)}}))})(this)},destroyed:function(){N(this,"unlinked")}};t.__wxRoute="",t.__wxComponents=Object.create(null),t.__wxVueOptions=Object.create(null);var Y=u.default.nextTick;e.nextTick=Y;var Z=uni.__$wx__,tt=Z;e.default=tt}).call(this,n("c8ba"))}},[["d188","app-config"]]]);