@macle-community/simulator-web 0.0.0-stage → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ /*! date: Thu Feb 26 2026, macle version: undefined, package version: 100.4.2, packeage type: es6 */!function(){"use strict";var e={187:function(e){var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function i(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){return new Promise((function(r,n){function o(r){e.removeListener(t,i),n(r)}function i(){"function"==typeof e.removeListener&&e.removeListener("error",o),r([].slice.call(arguments))}_(e,t,i,{once:!0}),"error"!==t&&function(e,t,r){"function"==typeof e.on&&_(e,"error",t,{once:!0})}(e,o)}))},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function c(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function l(e,t,r,n){var o,i,a,l;if(c(r),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),i=e._events),a=i[t]),void 0===a)a=i[t]=r,++e._eventsCount;else if("function"==typeof a?a=i[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(o=u(e))>0&&a.length>o&&!a.warned){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=a.length,l=s,console&&console.warn&&console.warn(l)}return e}function s(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},o=s.bind(n);return o.listener=r,n.wrapFn=o,o}function d(e,t,r){var n=e._events;if(void 0===n)return[];var o=n[t];return void 0===o?[]:"function"==typeof o?r?[o.listener||o]:[o]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(o):p(o,o.length)}function v(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function p(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function _(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function o(i){n.once&&e.removeEventListener(t,o),r(i)}))}}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),i.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return u(this)},i.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var o="error"===e,i=this._events;if(void 0!==i)o=o&&void 0===i.error;else if(!o)return!1;if(o){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var c=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw c.context=a,c}var u=i[e];if(void 0===u)return!1;if("function"==typeof u)n(u,this,t);else{var l=u.length,s=p(u,l);for(r=0;r<l;++r)n(s[r],this,t)}return!0},i.prototype.addListener=function(e,t){return l(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return l(this,e,t,!0)},i.prototype.once=function(e,t){return c(t),this.on(e,f(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return c(t),this.prependListener(e,f(this,e,t)),this},i.prototype.removeListener=function(e,t){var r,n,o,i,a;if(c(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(o=-1,i=r.length-1;i>=0;i--)if(r[i]===t||r[i].listener===t){a=r[i].listener,o=i;break}if(o<0)return this;0===o?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,o),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var o,i=Object.keys(r);for(n=0;n<i.length;++n)"removeListener"!==(o=i[n])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},i.prototype.listeners=function(e){return d(this,e,!0)},i.prototype.rawListeners=function(e){return d(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):v.call(e,t)},i.prototype.listenerCount=v,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),function(){var e={PAGE_EVENT:"PAGE_EVENT",SPECIAL_PAGE_EVENT:"SPECIAL_PAGE_EVENT",DOM_READY:"DOM_READY",PAGE_RERENDER:"PAGE_RERENDER",VIDEO_PLAYER_INSERT:"VIDEO_PLAYER_INSERT",VIDEO_PLAYER_REMOVE:"VIDEO_PLAYER_REMOVE",AUDIO_PLAYER_INSERT:"AUDIO_PLAYER_INSERT",MAP_INSERT:"MAP_INSERT",MAP_REMOVE:"MAP_REMOVE",CAMERA_NOTIFY:"CAMERA_NOTIFY",SEND_VIEW_INFO:"SEND_VIEW_INFO",SEND_PAGE_SCROLL_RESULT:"SEND_PAGE_SCROLL_RESULT",INSERT_HTML_WEBVIEW:"insertHTMLWebView",UPDATE_HTML_WEBVIEW:"updateHTMLWebView",INSERT_VIDEO_PLAYER:"insertVideoPlayer",UPDATE_VIDEO_PLAYER:"updateVideoPlayer",REMOVE_VIDEO_PLAYER:"removeVideoPlayer",INSERT_CAMERA:"insertCamera",UPDATE_CAMERA:"updateCamera",REMOVE_CAMERA:"removeCamera",INSERT_MAP:"insertMap",UPDATE_MAP:"updateMap",REMOVE_MAP:"removeMap",INSERT_COVER_VIEW:"insertCoverView",REMOVE_COVER_VIEW:"removeCoverView",UPDATE_COVER_VIEW:"updateCoverView",INSERT_COVER_IMAGE:"insertCoverImage",REMOVE_COVER_IMAGE:"removeCoverImage",UPDATE_COVER_IMAGE:"updateCoverImage",DOM_CONTENT_LOADED:"DOM_CONTENT_LOADED",SHOW_INPUT:"SHOW_INPUT",LINE_CHANGE:"LINE_CHANGE",WS_SEND_MESSAGE:"WS_SEND_MESSAGE",PAGE_DATA_CHANGE:"PAGE_DATA_CHANGE",VIEW_LOGIC_SYNC:"VIEW_LOGIC_SYNC",VIEW_LOGIC_SYNC_BATCH:"VIEW_LOGIC_SYNC_BATCH",AUDIO_ACTION_CHANGED:"AUDIO_ACTION_CHANGED",VIDEO_ID_BINGING:"VIDEO_ID_BINGING",MAP_ID_BINGING:"MAP_ID_BINGING",LOCALE_CHANGE:"LOCALE_CHANGE",LOCALE_MESSAGE_CHANGE:"LOCALE_MESSAGE_CHANGE",REQUEST_VIEW_INFO:"REQUEST_VIEW_INFO",PAGE_SCROLL_TO:"PAGE_SCROLL_TO",REMOVE_SKELETON:"REMOVE_SKELETON",REGISTER_SKELETON:"REGISTER_SKELETON",ON_ERROR:"onError",NAVIGATE_TO:"navigateTo",NAVIGATE_BACK:"navigateBack",REDIRECT_TO:"redirectTo",RELAUNCH:"reLaunch",SWITCHTAB:"switchTab",NAVIGATE_TO_MINI_PROGRAM:"navigateToMiniProgram",EXIT_MINI_PROGRAM:"exitMiniProgram",GOTO_BROWSER:"gotoBrowser",SHOW_MODAL:"showModal",SHOW_TOAST:"showToast",SHOW_LOADING:"showLoading",HIDE_LOADING:"hideLoading",REQUEST:"request",DOWNLOAD_FILE:"downloadFile",NETWORK_ABORT:"networkAbort",UPLOAD_FILE:"uploadFile",SCAN_CODE:"scanCode",VIBRATE_SHORT:"vibrateShort",VIBRATE_LONG:"vibrateLong",CHOOSE_CONTACT:"chooseContact",GET_NETWORK_TYPE:"getNetworkType",CHOOSE_VIDEO:"chooseVideo",CHOOSE_IMAGE:"chooseImage",PREVIEW_IMAGE:"previewImage",COMPRESS_IMAGE:"compressImage",GET_IMAGE_INFO:"getImageInfo",SAVE_IMAGE_TOPHOTOS_ALBUM:"saveImageToPhotosAlbum",GETSYSTEMINFO:"getSystemInfo",GET_SYSTEMINFO_SYNC:"getSystemInfoSync",GET_SYSTEM_SETTING:"getSystemSetting",GET_LAUNCH_OPTIONS_SYNC:"getLaunchOptionsSync",GET_LOCATION:"getLocation",GET_STATUS_BAR_HEIGHT:"getStatusBarHeight",START_PULL_DOWN_REFRESH:"startPullDownRefresh",STOP_PULL_DOWN_REFRESH:"stopPullDownRefresh",APPLYUPDATE:"applyUpdate",CANIUSE:"canIUse",CAMERA_TAKEPHOTO:"CAMERA_TAKEPHOTO",CAMERA_STARTRECORD:"CAMERA_STARTRECORD",CAMERA_STOPRECORD:"CAMERA_STOPRECORD",CAMERA_SETZOOM:"CAMERA_SETZOOM",SET_STORAGE:"setStorage",SET_STORAGE_SYNC:"setStorageSync",GET_STORAGE:"getStorage",GET_STORAGE_SYNC:"getStorageSync",GET_STORAGE_INFO:"getStorageInfo",REMOVE_STORAGE:"removeStorage",CLEAR_STORAGE:"clearStorage",SET_NAVIGATION_BAR_TITLE:"setNavigationBarTitle",SET_NAVIGATION_BAR_COLOR:"setNavigationBarColor",SET_BACKGROUND_TEXT_STYLE:"setBackgroundTextStyle",SET_BACKGROUND_COLOR:"setBackgroundColor",CAPSULE_STYLE:"capsuleStyle",SET_CAPSULE_SHOW:"setCapsuleShow",SET_SWIPE_BACK:"setSwipeBack",SHOW_ACTION_SHEET:"showActionSheet",SHOW_TAB_BAR:"showTabBar",HIDE_TAB_BAR:"hideTabBar",SHOW_TAB_BAR_RED_DOT:"showTabBarRedDot",HIDE_TAB_BAR_RED_DOT:"hideTabBarRedDot",SET_TAB_BAR_STYLE:"setTabBarStyle",SET_TAB_BAR_ITEM:"setTabBarItem",SET_TAB_BAR_BADGE:"setTabBarBadge",REMOVE_TAB_BAR_BADGE:"removeTabBarBadge",SAVE_FILE:"saveFile",REMOVE_SAVED_FILE:"removeSavedFile",OPEN_DOCUMENT:"openDocument",GET_SAVED_FILE_LIST:"getSavedFileList",GET_SAVED_FILE_INFO:"getSavedFileInfo",GET_FILE_INFO:"getFileInfo",GET_BATTERY_INFO:"getBatteryInfo",SET_SCREEN_BRIGHTNESS:"setScreenBrightness",SET_KEEP_SCREEN_ON:"setKeepScreenOn",GET_SCREEN_BRIGHTNESS:"getScreenBrightness",HIDE_KEYBOARD:"hideKeyboard",MAKE_PHONE_CALL:"makePhoneCall",START_GYROSCOPE:"startGyroscope",STOP_GYROSCOPE:"stopGyroscope",GET_MENU_BUTTON_BOUNDING_CLIENT_RECT:"getMenuButtonBoundingClientRect",ADD_MARKERS:"addMarkers",REMOVE_MARKERS:"removeMarkers",MOVE_TO_LOCATION:"moveToLocation",GET_BACKGROUND_FETCH_DATA:"getBackgroundFetchData",LOAD_FONT_FACE:"loadFontFace",START_RECORD:"startRecord",PAUSE_RECORD:"pauseRecord",RESUME_RECORD:"resumeRecord",STOP_RECORD:"stopRecord",PLAY_VOICE:"playVoice",STOP_VOICE:"stopVoice",OPEN_BLUETOOTH_ADAPTER:"openBluetoothAdapter",CLOSE_BLUETOOTH_ADAPTER:"closeBluetoothAdapter",START_BLUETOOTH_DEVICES_DISCOVERY:"startBluetoothDevicesDiscovery",STOP_BLUETOOTH_DEVICES_DISCOVERY:"stopBluetoothDevicesDiscovery",CREATE_BLE_CONNECTION:"createBLEConnection",CLOSE_BLE_CONNECTION:"closeBLEConnection",GET_BLE_DEVICE_SERVICES:"getBLEDeviceServices",GET_BLE_DEVICE_CHARACTERISTICS:"getBLEDeviceCharacteristics",READ_BLE_CHARACTERISTIC_VALUE:"readBLECharacteristicValue",WRITE_BLE_CHARACTERISTIC_VALUE:"writeBLECharacteristicValue",ON_BLUETOOTH_DEVICE_FOUND:"onBluetoothDeviceFound",SERVICE_READY:"SERVICE_READY",MACLE_PERFORMANCE_LOG:"MACLE_PERFORMANCE_LOG",MACLE_SYSTEM_LOG:"MACLE_SYSTEM_LOG",MACLE_CUSTOM_LOG:"MACLE_CUSTOM_LOG",MACLE_USER_BEHAVIOR_LOG:"MACLE_USER_BEHAVIOR_LOG",MACLE_ERROR_LOG:"MACLE_ERROR_LOG",SPECIAL_PAGE_DATA_CHANGE:"SPECIAL_PAGE_DATA_CHANGE",VIDEO_ACTION_CHANGED:"VIDEO_ACTION_CHANGED",ON_APP_ROUTE:"ON_APP_ROUTE",ON_APP_SHOW:"ON_APP_SHOW",ON_APP_HIDE:"ON_APP_HIDE",ON_PULL_DOWN_REFRESH:"ON_PULL_DOWN_REFRESH",ON_CHECK_FOR_UPDATE:"ON_CHECK_FOR_UPDATE",ON_UPDATE_READY:"ON_UPDATE_READY",ON_UPDATE_FAILED:"ON_UPDATE_FAILED",ON_NETWORK_STATUS_CHANGE:"ON_NETWORK_STATUS_CHANGE",ON_GYROSCOPE_CHANGE:"ON_GYROSCOPE_CHANGE",ON_MEMORY_WARNING:"ON_MEMORY_WARNING",ON_DOWNLOAD_PROGRESS_UPDATE:"ON_DOWNLOAD_PROGRESS_UPDATE",ON_RECORD_START:"ON_RECORD_START",ON_RECORD_PAUSE:"ON_RECORD_PAUSE",ON_RECORD_RESUME:"ON_RECORD_RESUME",ON_RECORD_STOP:"ON_RECORD_STOP",ON_RECORD_ERROR:"ON_RECORD_ERROR",ON_CAMERA_RECORD_FINISH:"ON_CAMERA_RECORD_FINISH",ON_CAMERA_RECORD_ERROR:"ON_CAMERA_RECORD_ERROR",ON_BT_DEVICE_FOUND:"ON_BT_DEVICE_FOUND",ON_KEYBOARD_HEIGHT_CHANGE:"ON_KEYBOARD_HEIGHT_CHANGE",ON_INPUT_CHANGE:"ON_INPUT_CHANGE",ON_INPUT_HIDE:"ON_INPUT_HIDE",ON_VIDEO_STOP:"ON_VIDEO_STOP",ON_VIDEO_ACTION_CHANGED:"ON_VIDEO_ACTION_CHANGED",ON_CAMERA_CHANGED:"ON_CAMERA_CHANGED",ON_MAP_MARKER_TAP:"ON_MAP_MARKER_TAP",ON_MAP_TAP:"ON_MAP_TAP",CONNECT_SOCKET:"connectSocket",CLOSE_SOCKET:"closeSocket",SEND_SOCKET_MESSAGE:"sendSocketMessage",ON_SOCKET_OPEN:"ON_SOCKET_OPEN",ON_SOCKET_CLOSE:"ON_SOCKET_CLOSE",ON_SOCKET_ERROR:"ON_SOCKET_ERROR",ON_SOCKET_MESSAGE:"ON_SOCKET_MESSAGE",REPORT_SUBMIT_FORM:"REPORT_SUBMIT_FORM",NAVIGATE_TO_FINISHED:"NAVIGATE_TO_FINISHED",GET_PERMISSION_SETTING:"getSetting",OPEN_PERMISSION_SETTING:"openSetting",PERMISSION_AUTHORIZE:"authorize",DELETE_PERMISSION_AUTHORIZE:"deauthorize",CANCLE_PERMISSION_AUTHORIZE:"cancelAuthorize",TRADE_PAY:"tradePay",WEBVIEW_ON_JS_SDK_MESSAGE:"WEBVIEW_ON_JS_SDK_MESSAGE",WEBVIEW_POST_MESSAGE:"webviewPostMessage",SET_CUSTOM_EVENT:"setCustomEvent",REMOVE_CUSTOM_EVENT:"removeCustomEvent",SET_CLIPBOARD_DATA:"setClipboardData",GET_CLIPBOARD_DATA:"getClipboardData",BASE64_TO_ARRAYBUFFER:"base64ToArrayBuffer",ARRAYBUFFER_TO_BASE64:"arrayBufferToBase64",SYNC_EVENT_NAME:{MA_EVENT:11,REQUEST_SAVE:12,COMPONENT_DEF:21,SAVE_STATE:22,RESTORE_STATE:23,LAYOUT_READY:31,SET_DATA_CALLBACK:32,FLOW_SET_DATA:33,FLUSH_BLOCKED:43,FLOW_GROUP:41,FLOW_GROUP_END:42,FLOW_DEPTH:2,FLOW_INITIAL_CREATION:3,FLOW_UPDATE:6,FLOW_DATA_OBSERVER:8,FLOW_APPLY_PROPERTY:4,FLOW_MINIPULATE_CHILD:7,FLOW_CREATE_NODE:5,FLOW_REPEAT:9,REQUEST_TAB:51,COMPONENT_DEF_TAB:52,FLOW_CREATE_TAB:53,DESTROY_TAB:54,REQUEST_BROADCAST_VIEW_ID:61,RESPONSE_BROADCAST_VIEW_ID:62,BANNING_MAP:90,CALL_METHOD_FROM_MAS:50},PATCH_TYPE:{NONE:0,TEXT:1,VNODE:2,PROPS:3,REORDER:4,INSERT:5,REMOVE:6},LIFECYCLE:{CREATED:"created",ATTACHED:"attached",READY:"ready",MOVED:"moved",DETACHED:"detached"},RELATION_TYPE:{ANCESTOR:"ancestor",PARENT:"parent",CHILD:"child",DESCENDANT:"descendant"},WRITE_FILE:"writeFile",READ_FILE:"readFile",READ_DIR:"readdir",COPY_FILE:"copyFile",MOVE_FILE:"moveFile",UNLINK:"unlink",EXISTS:"exists",MKDIR:"mkdir",REPORT_EVENT:"reportEvent",REPORT_LOG:"reportLog",REPORT_PERFORMANCE:"reportPerformance",SUBMIT_REPORT:"submitReport",GET_SMALL_APP_INFO:"getsmallappinfo",PLAY_AUDIO:"playAudio",GET_AUTH_CODE:"getAuthCode",GET_OPEN_USER_INFO:"getOpenUserInfo"};window.Enums=e;var t=e;function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}var o=function(){};function i(e,t){if("Function"!==d(t))throw new TypeError("copy method must be a Function");var r=d(e);if("Function"===r)return e;if("Array"===r)return[];if("Object"===r&&e.constructor===Object)return{};if("Date"===r)return new Date(e.getTime());if("RegExp"===r){var n=String(e),o=n.lastIndexOf("/");return new RegExp(n.slice(1,o),n.slice(o+1))}var i=t(e);return void 0!==i?i:null}function a(e,t,r,o,c){return"String"===d(e)||"Number"===d(e)||"Boolean"===d(e)||"Null"===d(e)||"Undefined"===d(e)?e:((l=e,Object.keys(l)).concat((u=e,"Function"===d(Symbol)&&u!==Array?Object.getOwnPropertySymbols(u):[])).forEach((function(u){var l,s,f,v=e[u],p=function(e,t){if("Array"!==d(e))throw new TypeError("array must be an Array");for(var r=0;r<e.length;++r)if(e[r]===t)return r;return-1}(o,v);-1===p?(f=function(e,t){return"String"===d(e)||"Number"===d(e)||"Boolean"===d(e)||"Null"===d(e)||"Undefined"===d(e)?e:i(e,t)}(v,t),s=null!==f?f:v,null!==v&&/^(?:function|object)$/.test(n(v))&&(o.push(v),c.push(s))):l=c[p],r[u]=l||a(v,t,s,o,c)})),r);var u,l}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(e,t)||u(e,t)||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.")}()}function u(e,t){if(e){if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}var f={getNestParams:function(e,t){var r=e;if("object"===s(t)){var n=Object.keys(t);return r="".concat(r,".").concat(n[0]),f.getNestParams(r,t[n[0]])}return{str:r,value:t}},selectCheck:function(e){var t=e.split(",");return!!t[1]&&"select"===t[1].trim()},handleSelect:function(e,t){var r=e.indexOf("{"),n=e.lastIndexOf("}"),o=e.slice(r+1,n),i=c(o.split(","),1)[0],a=-1,l=null;if(t){var s=Object.keys(t);if(s[0]!==i)return"";a=o.indexOf(t[i]),l=o.slice(a);for(var f=0,d=s;f<d.length;f++){var v=d[f];v!==i&&(l=l.replace("{".concat(v,"}"),t[v]))}}else a=o.indexOf("other"),l=o.slice(a);var p,_=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=u(e))){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}(l.matchAll(/{([^}]*)}/g));try{for(_.s();!(p=_.n()).done;)return p.value[1]}catch(e){_.e(e)}finally{_.f()}return i}};function d(e){return Object.prototype.toString.call(e).split(" ")[1].split("]")[0]}function v(e){return"Undefined"===d(e)}function p(e){return"Number"===d(e)}function _(e){return Number.isInteger(e)}function m(e){return Number.isInteger(e)&&e>=0}function h(e){return!Object.keys(e).length}function b(e){return"String"===d(e)}function y(e){return"Object"===d(e)}function E(e){return"Array"===d(e)}function g(e){try{return JSON.stringify(e),!0}catch(e){return!1}}function O(){var e=window&&window.navigator&&window.navigator.userAgent;return!e||-1===e.indexOf("Android")}function S(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=.001*window.crypto.getRandomValues(new Uint8Array(1))*16|0;return("x"===e?t:3&t|8).toString(16)}))}function w(e){if(!b(e))throw new Error("Add Html Url Must String, But Now is ".concat(d(e)));var t=e.split("?");return t[0]+=".html",void 0!==t[1]?"".concat(t[0],"?").concat(t[1]):t[0]}var T=console,A={info:T.info,log:T.log,warn:T.warn,error:T.error,group:T.group,groupEnd:T.groupEnd};function C(e,t){var r=e[t];[String,Number,Boolean,Object,Array].indexOf(r)>=0&&(e[t]={type:r});var n=e[t].type;void 0===e[t].value&&(e[t].value=function(){switch(n){case String:return"";case Number:return 0;case Boolean:return!1;case Array:return[];default:return null}}())}function I(e){return I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},I(e)}function R(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return N(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?N(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function P(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==I(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!==I(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key,"string"),"symbol"===I(o)?o:String(o)),n)}var o}var k=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.eventMap=new Map,this.callbackMap=new WeakMap}var t,r;return t=e,r=[{key:"on",value:function(e,t){var r=function(){try{for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];t.apply(void 0,r)}catch(e){A.error(e)}};this.callbackMap.set(t,r),this.eventMap.has(e)?this.eventMap.get(e).add(r):this.eventMap.set(e,new Set([r]))}},{key:"off",value:function(e,t){var r=this.eventMap.get(e);if(r)if(t){var n=this.callbackMap.get(t);r.delete(n)}else r.clear()}},{key:"get",value:function(e){return this.eventMap.get(e)}},{key:"emit",value:function(e){var t=this.eventMap.get(e);if(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];var i,a=R(t);try{for(a.s();!(i=a.n()).done;){var c=i.value;c.call.apply(c,[this].concat(n))}}catch(e){a.e(e)}finally{a.f()}}}}],r&&P(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),j=new k;function D(e){return D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},D(e)}var L=["key","error"],M=["key","error"];function B(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function G(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?B(Object(r),!0).forEach((function(t){V(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):B(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function V(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==D(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!==D(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===D(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function F(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var U=[],H=[],x=0,W=0,Y={registerErrorListener:function(e){},serverReport:function(e){Le("reportUserBehaviorBranchAnalytics",e,{eventType:1})&&st.notifyNative(t.MACLE_USER_BEHAVIOR_LOG,e)},event:function(e){st.notifyNative(t.REPORT_EVENT,e)},performance:function(e){st.notifyNative(t.MACLE_PERFORMANCE_LOG,e)},devPerformance:function(e){st.notifyNative(t.REPORT_PERFORMANCE,e)},system:function(e){e&&"string"==typeof e&&Date.now()-x>50&&(x=Date.now(),st.notifyNative(t.MACLE_SYSTEM_LOG,e))},custom:function(e,r){e&&"string"==typeof e&&Date.now()-W>50&&(W=Date.now(),st.notifyNative(t.MACLE_CUSTOM_LOG,{level:r,log:e,timestamp:Date.now()}))},error:function(e){var r,n,o,i,a=e.key,c=e.error,u=F(e,L);"Error"===d(c)&&(A.error(c.message),j.emit(t.ON_ERROR,c),st.notifyNative(t.MACLE_ERROR_LOG,G(G({},u),{},{key:a,apiName:e.apiName,type:c.name,message:c.message,cause:c.cause,errorStack:c.stack,keywords:e.keywords,file:null!==(r=c.fileName)&&void 0!==r?r:e.fileName,line:null!==(n=null!==(o=c.lineNumber)&&void 0!==o?o:e.lineNumber)&&void 0!==n?n:1,column:null!==(i=c.columnNumber)&&void 0!==i?i:e.columnNumber,fwkVersion:"",timestamp:Date.now()})))},normalError:function(e){A.error(e.message);var r,n,o,i,a,c=e.key,u=e.error,l=F(e,M);"Error"===d(u)&&st.notifyNative(t.MACLE_ERROR_LOG,G(G({},l),{},{key:c,type:u.name,message:u.message,errno:u.errno,cause:u.cause,errorStack:null!==(r=u.stack)&&void 0!==r?r:e.message,keywords:e.keywords,file:null!==(n=u.fileName)&&void 0!==n?n:e.fileName,line:null!==(o=null!==(i=u.lineNumber)&&void 0!==i?i:e.lineNumber)&&void 0!==o?o:1,column:null!==(a=u.columnNumber)&&void 0!==a?a:e.columnNumber,fwkVersion:"",timestamp:Date.now()}))},submit:function(){U.length&&st.notifyNative(t.MACLE_SYSTEM_LOG,U),H.length&&st.notifyNative(t.MACLE_CUSTOM_LOG,H)}};window.onbeforeunload=function(){Y.submit()};var K=Y;function z(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function J(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?z(Object(r),!0).forEach((function(t){q(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):z(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function q(e,t,r){return(t=se(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ne(e,t)}function Q(e){var t=re();return function(){var r,n=oe(e);if(t){var o=oe(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Z(this,r)}}function Z(e,t){if(t&&("object"===ie(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return X(e)}function X(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ee(e){var t="function"==typeof Map?new Map:void 0;return ee=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return te(e,arguments,oe(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),ne(n,e)},ee(e)}function te(e,t,r){return te=re()?Reflect.construct.bind():function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&ne(o,r.prototype),o},te.apply(null,arguments)}function re(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function ne(e,t){return ne=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ne(e,t)}function oe(e){return oe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},oe(e)}function ie(e){return ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ie(e)}function ae(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ue(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,se(n.key),n)}}function le(e,t,r){return t&&ue(e.prototype,t),r&&ue(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function se(e){var t=function(e,t){if("object"!==ie(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!==ie(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===ie(t)?t:String(t)}var fe=function(){function e(){ce(this,e)}return le(e,null,[{key:"formatReportError",value:function(e,t){var r,n,o,i=null!=t?t:e.constructor;if(e.name=i.name,e.stack=e.stack.replace(Error.name,i.name),!e.stack)return e;var a=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ae(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ae(e,t):void 0}}(e,t)||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.")}()}(e.stack.match(/\/([\/\w-_\.]+\.js):(\d*):(\d*)/)||[],4),c=a[1],u=a[2],l=a[3];return e.fileName=null!==(r=e.fileName)&&void 0!==r?r:c,e.lineNumber=null!==(n=e.lineNumber)&&void 0!==n?n:u,e.columnNumber=null!==(o=e.columnNumber)&&void 0!==o?o:l,e}}]),e}(),de=function(e){$(r,e);var t=Q(r);function r(e,n){var o;ce(this,r);var i="".concat(e," fail, ").concat(n);return(o=t.call(this,i)).name=o.constructor.name,fe.formatReportError(X(o)),o}return le(r)}(ee(Error)),ve=function(e){$(r,e);var t=Q(r);function r(e,n,o){var i;return ce(this,r),(i=t.call(this,e,n)).errno=o,i}return le(r)}(de),pe=function(e){$(r,e);var t=Q(r);function r(e){var n;return ce(this,r),(n=t.call(this,e)).name=n.constructor.name,fe.formatReportError(X(n)),n}return le(r)}(ee(Error));function _e(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(r,n,o,i,a){e(J({message:r,error:a,fileName:n,lineNumber:o,columnNumber:i},t))}}var me=function(){};function he(e,t,r,n){return function(){try{for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return e.apply(e,i)}catch(e){if(K.error({key:r||"logicEngineError",error:fe.formatReportError(e,pe),extend:t}),n)throw new Error("Error occured: ",e);return me}}}function be(e){return e&&"MaVirtualNode"===e.type}function ye(e){return ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ye(e)}function Ee(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==ye(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!==ye(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key,"string"),"symbol"===ye(o)?o:String(o)),n)}var o}var ge=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,r=[{key:"Errno",value:function(e,t,r){return Number("".concat(e).concat(t).concat(r))}}],null&&Ee(t.prototype,null),r&&Ee(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Oe="00",Se="00",we="001",Te="002";function Ae(e){return Ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ae(e)}function Ce(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ie(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ie(e,t):void 0}}(e,t)||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.")}()}function Ie(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Re(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ne(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Re(Object(r),!0).forEach((function(t){Pe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Re(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Pe(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Ae(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!==Ae(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===Ae(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ke(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0,i=new ve(e,r,o),a=null!=r&&r.startsWith(e)?r:i.message;if(K.normalError({apiName:e,key:"thirdPageParamsError",message:a,error:i}),!t.success&&!t.fail&&!t.complete)return new Promise((function(r,c){t.fail=c,he(t.fail,"at api ".concat(e," fail callback function"))(Ne(Ne({errMsg:a},void 0!==o?{errno:i.errno}:{}),n))}));for(var c=0,u=["fail","complete"];c<u.length;c++){var l=u[c];he(t[l]||me,"at api ".concat(e," ").concat(l," callback function"))(Ne(Ne({errMsg:a},void 0!==o?{errno:i.errno}:{}),n))}return null}function je(e,t){return!!/^(.*)\.html/gi.exec(t.url)||(ke(e,t,"".concat(e," :fail url not include html")),!1)}function De(e){try{return atob(e),!0}catch(e){return!1}}function Le(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"parameter",o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i="",a=d(t),c=d(r);if(a!==c)return"".concat(n," should be ").concat(c," instead of ").concat(a,";");if("Object"===c)for(var u=0,l=Object.entries(r);u<l.length;u++){var s=Ce(l[u],2),f=s[0],p=s[1],_=d(p),m=d(t[f]);_!==m&&(o&&v(t[f])?i="parameter error: parameter.".concat(f," is necessary, please check input param"):i+="".concat(f," should be ").concat(_," instead of ").concat(m,";"))}return!i||(t.invalidParamObj=ke(e,t,i),!1)}function Me(e,t,r){var n,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"parameter",i="",a=d(t),c=d(r);if(a!==c)return ke(e,t,"parameter error: parameter.".concat(o," type not legal, please check it."),null,ge.Errno(Oe,Se,we));if("Object"===c)for(var u=0,l=Object.entries(r);u<l.length;u++){var s=Ce(l[u],2),f=s[0],v=s[1],p=d(v),_=d(t[f]);if(void 0===t[f]){i="parameter error: parameter.".concat(f,p!==_?" type not legal, please check it.":" is necessary, please check input param."),n=ge.Errno(Oe,Se,we);break}}return!i||(t.invalidParamObj=ke(e,t,i,null,n),!1)}function Be(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"parameter",i=Ve(t,r,n),a=Le(e,t,i,o);return!!a&&Fe(e,t,i,n,o)}function Ge(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"parameter",i=Ve(t,r,n),a=Me(e,t,i,o);return a&&Ue(e,t,i,n,o)}function Ve(e,t,r){var n=Ne({},t);for(var o in t){var i;void 0===e[o]&&null!==(i=r[o])&&void 0!==i&&i.optional&&(delete n[o],delete r[o])}return n}function Fe(e,t,r,n,o){for(var i="",a=function(){var e=u[c],o=t[e],a=r[e],l=n[e],s=l.range,f=l.checkSubEleType;if(l.nonempty){var v=E(o)&&!o.length,p=b(o)&&!o.trim();(v||p)&&(i+="parameter error: ".concat(e," cannot be empty;"))}if(f&&E(o)){var _=a.map((function(e){return d(e)})),m=o.filter((function(e){return!_.includes(d(e))}));m.length&&(i+="parameter error: invalid ".concat(e," ").concat(m,", the sub-element type of ").concat(e," should be ").concat(_.join(" or "),";"))}if(f&&y(o))for(var h=0,g=Object.keys(a);h<g.length;h++){var O=g[h],S=d(o[O]),w=d(a[O]);S!==w&&(i+="parameter error: ".concat(e,".").concat(O," should be ").concat(w," instead of ").concat(S,";"))}if(null!=s&&s.length){var T=(E(o)?o:[o]).filter((function(e){return!s.includes(e)}));T.length&&(i+="parameter error: invalid ".concat(e," ").concat(T,";"))}},c=0,u=Object.keys(n);c<u.length;c++)a();return!i||(t.invalidParamObj=ke(e,t,i),!1)}function Ue(e,t,r,n,o){for(var i,a="",c=function(){var e=l[u],o=t[e],c=r[e],s=n[e],f=s.range,v=s.checkSubEleType;if(s.nonempty){var p=E(o)&&!o.length,_=b(o)&&!o.trim();(p||_)&&(a="parameter error: ".concat(e," cannot be empty;"),i=ge.Errno(Oe,Se,"003"))}if(v&&E(o)){var m=c.map((function(e){return d(e)})),h=o.filter((function(e){return!m.includes(d(e))}));h.length&&(a="parameter error: invalid ".concat(e," ").concat(h,", the sub-element type of ").concat(e," should be ").concat(m.join(" or "),";"),i=ge.Errno(Oe,Se,we))}if(v&&y(o))for(var g=0,O=Object.keys(c);g<O.length;g++){var S=O[g],w=d(o[S]),T=d(c[S]);w!==T&&(a="parameter error: ".concat(e,".").concat(S," should be ").concat(T," instead of ").concat(w,";"),i=ge.Errno(Oe,Se,we))}if(null!=f&&f.length){var A=(E(o)?o:[o]).filter((function(e){return!f.includes(e)}));A.length&&(a="parameter error: invalid ".concat(e," ").concat(A,";"),i=ge.Errno(Oe,Se,Te))}},u=0,l=Object.keys(n);u<l.length;u++)c();return!a||(t.invalidParamObj=ke(e,t,a,null,i),!1)}function He(e){for(var t={},r=0,n=Object.keys(e);r<n.length;r++){var o=n[r];switch(d(e[o])){case"String":t[o]=e[o];break;case"Number":case"Boolean":t[o]="".concat(e[o]);break;default:t[o]=JSON.stringify(e[o])}}return t}function xe(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=t;if(r&&(n=w(n)).startsWith("/"))return n.substr(1);if(n.startsWith("./"))return xe(e,n.substr(2),!1);var o=n.split("../"),i=o[o.length-1].split("/"),a=o.length-1,c=e.length>0?e.split("/"):[];return c.splice(c.length-a-1,a+1),c.concat(i).join("/")}function We(e,t){for(var r=0,n=Object.entries(t);r<n.length;r++){var o=Ce(n[r],2),i=o[0],a=o[1];e[i]=a}return e}function Ye(e,t){if(b(e)&&y(t)&&Object.keys(t).length){var r=e.split("?")[0],n=e.split("?")[1],o={};n&&n.split("&").forEach((function(e){e.length&&(o[e.split("=")[0]]=e.split("=")[1])}));for(var i={},a=0,c=Object.entries(t);a<c.length;a++){var u=Ce(c[a],2),l=u[0],s=u[1];y(s)?i[encodeURIComponent(l)]=encodeURIComponent(JSON.stringify(s)):i[encodeURIComponent(l)]=encodeURIComponent(s)}return"".concat(r,"?").concat(function(e){if(!y(e))return e;for(var t=[],r=0,n=Object.keys(e);r<n.length;r++){var o=n[r];try{t.push("".concat(encodeURIComponent(o),"=").concat(encodeURIComponent(e[o])))}catch(r){t.push("".concat(o,"=").concat(e[o]))}}return t.join("&")}(We(o,i)))}return e}function Ke(e){var t=e;return t=function(e){if(b(e)){var t=c(e.split("?"),2),r=t[0],n=t[1],o={};if(!n)return e;n.split("&").forEach((function(e){e.length&&(o[e.split("=")[0]]=e.split("=")[1])}));var i=[];for(var a in o)i.push("".concat(encodeURIComponent(a),"=").concat(encodeURIComponent(o[a])));return i.length>0?"".concat(r,"?").concat(i.join("&")):e}return e}(t=xe(window.currUrl,t)),t}function ze(e){return/^(http|https):\/\/.*/i.test(e)}function Je(e){return e.toLowerCase().startsWith("https")}function qe(e){var t=e.toLocaleUpperCase();return t.endsWith(".TTF")||t.endsWith(".WOFF")}function $e(e){for(var t=0,r=0;r<e.length;r++){var n=e.charCodeAt(r);t+=n>=0&&n<=128?1:2}return t}var Qe=["AUTH_BASE","AUTH_USER","SEND_MESSAGE","USER_NICKNAME","USER_NAME","USER_LOGIN_ID","PLAINTEXT_USER_LOGIN_ID","HASH_LOGIN_ID","USER_AVATAR","USER_GENDER","USER_BIRTHDAY","USER_NATIONALITY","USER_CONTACTINFO","USER_ADDRESS","PLAINTEXT_MOBILE_PHONE"],Ze=["location","camera","photosAlbums","contacts","record","jumpMiniApp","gotoBrowser","bluetooth","payment","video","storage"];function Xe(e){return e.filter((function(e){return!Qe.includes("".concat(e).toUpperCase())}))}function et(e){var t=[].concat(Ze,Qe).map((function(e){return"scope.".concat(e)}));return e.filter((function(e){return!t.includes("".concat(e))}))}function tt(e){return tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tt(e)}function rt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function nt(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==tt(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!==tt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===tt(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ot={},it={},at={},ct={},ut=0,lt={notifyNative:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=JSON.stringify(t);O()?r.g.webkit?r.g.webkit.messageHandlers.notifyNative.postMessage({command:e,inputParams:n}):window.global.webkit.messageHandlers.notifyNative.postMessage({command:e,inputParams:n}):logicLayerNative.notifyNative(e,n)},invoke:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];t.pagePath=window.currUrl;var o,i=JSON.stringify(t||{});if(r&&(o=++ut,at[o]=r),n){var a=t.validityPeriod;ct[o]={registryTime:Date.now(),validityPeriod:a}}lt.postMessage(e,i,o)},invokeSync:function(e,t){var r=JSON.stringify(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?rt(Object(r),!0).forEach((function(t){nt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({command:e},t));return window.prompt(r)},beforeInvoke:function(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o={},i={};for(var a in r)"function"==typeof r[a]&&(o[a]=r[a],delete r[a]);for(var c in n)"function"==typeof n[c]&&(i[c]=n[c]);if(e===t.SET_CUSTOM_EVENT||e===t.REMOVE_CUSTOM_EVENT){var u={errMsg:"".concat(e,": ok")},l={errMsg:"".concat(e,": complete")},s=window.__webviewId__?window.getPage(window.__webviewId__):{};return o.success&&o.success.call(s,u),void(o.complete&&o.complete.call(s,l))}var f=function(e,t){var r=window.__webviewId__?window.getPage(window.__webviewId__):{};0===Number(e)?(i.beforeAll&&i.beforeAll(t),i.beforeSuccess&&i.beforeSuccess(t),o.success&&o.success.call(r,t),i.afterSuccess&&i.afterSuccess(t)):1===Number(e)?(i.beforeFail&&i.beforeFail(t),o.fail&&o.fail.call(r,t)):(i.beforeSuccess&&i.beforeSuccess(t),o.preload&&o.preload.call(r,t)),2!==Number(e)&&(o.complete&&o.complete.call(r,t),i.afterAll&&i.afterAll(t))};lt.invoke(e,r,f)},invokeMethod:function(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return r.success||r.fail||r.complete||e===t.REQUEST&&r.preload?lt.beforeInvoke(e,r,n):new Promise((function(t,o){r.success=t,r.fail=o,lt.beforeInvoke(e,r,n)}))},beforeInvokeCustom:function(e,t){var r={},n=t.validityPeriod;for(var o in t)"function"==typeof t[o]&&(r[o]=t[o],delete t[o]);void 0!==n&&("number"!=typeof n||n<0)?ke(e,r,"parameter error: validityPeriod should be a non-negative number"):lt.invoke(e,t,(function(e,t){var n=window.__webviewId__?window.getPage(__webviewId__):{};0===Number(e)?r.success&&r.success.call(n,t):r.fail&&r.fail.call(n,t),r.complete&&r.complete.call(n,t)}),!0)},invokeCustomMethod:function(e,t){return t.success||t.fail||t.complete?lt.beforeInvokeCustom(e,t):new Promise((function(r,n){t.success=r,t.fail=n,lt.beforeInvokeCustom(e,t)}))},postMessage:function(e,t,n){O()?r.g.webkit?r.g.webkit.messageHandlers.invoke.postMessage({command:e,inputParams:t,callbackId:n}):window.global.webkit.messageHandlers.invoke.postMessage({command:e,inputParams:t,callbackId:n}):logicLayerNative.invoke(e,t,n)},notifyViewLayerHandler:function(e,t,n){var o={event:e,webviewIdList:t,paramsString:n};O()?r.g.webkit?r.g.webkit.messageHandlers.notifyViewLayer.postMessage(o):window.global.webkit.messageHandlers.notifyViewLayer.postMessage(o):logicLayerNative.notifyViewLayer(e,JSON.stringify(t),n)},notifyViewLayer:function(e,t,r){var n=t;n=n||[__webviewId__],r.webviewIdList=n;var o=JSON.stringify(r);lt.notifyViewLayerHandler(e,n,o)},on:function(e,t){it[e]=t},off:function(e){it[e]=void 0},subscribe:function(e,t){ot[e]=t},handlerCall:function(e,t,r){"function"==typeof e&&e(r,t||r.webviewId||"")},onNotify:function(e,t,r){var n=ot[e];lt.handlerCall(n,t,r)},onNativeNotify:function(e,t,r){var n=it[e];lt.handlerCall(n,t,r)},onInvokeFinished:function(e,t,r){var n=at[e];"function"==typeof n&&n(t,r);var o=ct[e],i=Date.now();o&&0!==o.validityPeriod&&i-o.registryTime>o.validityPeriod&&delete ct[e],2!==Number(t)&&!ct[e]&&delete at[e]}};window.logicLayer=lt;var st=lt,ft=Object.assign({NETWORK_STATUS_CHANGE:"networkStatusChange",GYROSCOPE_CHANGE:"gyroscopeChange",MEMORY_WARNING:"memoryWarning"},t);function dt(e,t){var r,n,o=function(e){for(var t=e.length,r=[],n="",o=0,i=!1,a=!1,c=0;c<t;c++){var u=e[c];if("\\"===u){if(c+1<t){var l=e[c+1];-1!==[".","[","]"].indexOf(l)?(n+=l,c++):n+="\\"}}else"."===u?n&&(r.push(n),n=""):"["===u?(n&&(r.push(n),n=""),0===r.length&&K.normalError({key:"thirdPageParamsError",message:"Path can not start with []: ".concat(e),error:new pe("thirdPageParamsError: Path can not start with []: ".concat(e))}),a=!0,i=!1):"]"===u?(i||K.normalError({key:"thirdPageParamsError",message:"Must have number in []: ".concat(e),error:new pe("thirdPageParamsError: Must have number in []: ".concat(e))}),a=!1,r.push(o),o=0):a?((u<"0"||u>"9")&&K.normalError({key:"thirdPageParamsError",message:"Only number 0-9 could inside []: ".concat(e),error:new pe("thirdPageParamsError: Only number 0-9 could inside []: ".concat(e))}),i=!0,o=10*o+u.charCodeAt(0)-48):n+=u}return n&&r.push(n),0===r.length&&K.normalError({key:"thirdPageParamsError",message:"Path can not be empty",error:new pe("thirdPageParamsError: Path can not be empty")}),r}(t),i=e;return o.forEach((function(e){"Number"===d(e)?Array.isArray(i)||(i=[]):"Object"===d(i)||(i={}),n=e,r=i,i=i[e]})),{obj:r,key:n}}var vt={};function pt(){return vt}function _t(e){return vt[e]}function mt(e,t){vt[t]=e}function ht(e){if(e.children)for(var r=0;r<e.children.length;r++)ht(e.children[r]);if(e.__cid__){var n=_t(e.__cid__);n&&n.tagName===e.tagName&&(n.__component__.behaviors&&n.__component__.behaviors.forEach((function(e){e.callLifeTimeFuncRecursively(n.__component__,t.LIFECYCLE.DETACHED)})),n.__component__.detached(),n.__component__.__relationHandler(t.LIFECYCLE.DETACHED),delete vt[e.__cid__])}}window.idNodeMap=vt;var bt={list:Object.create(null),registerCustomComponent:function(e){var t=e.options||{};bt.list[e.is]={options:t,properties:e.properties,relations:e.relations,data:e.data,isCustom:e.isCustom,template:e.template,innerEvents:null}}},yt=bt,Et=t;function gt(e){return gt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gt(e)}function Ot(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==gt(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!==gt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key,"string"),"symbol"===gt(o)?o:String(o)),n)}var o}Object.assign({MA_KEY:"maKey",ATTRIBUTE_NAME:["class","style"],RPX_RATE:20,BASE_DEVICE_WIDTH:750,INLINE_STYLE:["placeholderStyle","hoverStyle","style"]},t);var St,wt=null,Tt=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.empty=!0,this.type=t,this.eventList=[],this._index=0}var t,r,n;return t=e,r=[{key:"add",value:function(e){var t=this._index++;return this.eventList.push({eventId:t,func:e}),this.empty=!1,t}},{key:"remove",value:function(e){for(var t=this.eventList,r="function"==typeof e?"func":"eventId",n=0;n<t.length;n++)if(t[n][r]===e)return t.splice(n,1),this.empty=!t.length,!0;return!1}},{key:"call",value:function(t,r){var n=this,o=!1;return this.eventList.forEach((function(i){!1===e.safeCallback(n.type,i.func,t,r)&&(o=!0)})),!o}},{key:"addGlobalErrorListener",value:function(e){return this.add(e)}},{key:"removeGlobalErrorListener",value:function(e){return this.remove(e)}}],n=[{key:"_setGlobalOptionsGetter",value:function(e){wt=e}},{key:"errHandle",value:function(t,r){var n=(St=St||new e).call(null,[t,r]);if(!r.type||!1!==n){if(A.error(r.message),wt().throwGlobalError)throw t;A.error(t.stack)}}},{key:"safeCallback",value:function(t,r,n,o){var i;try{if(!r)return A.error("Exparser method is not exit !"),i;i=r.apply(n,o)}catch(i){var a="Exparser ".concat(t||"Error Listener"," Error @ ");n&&(a+=n.is),a+="#".concat(r.name||"(anonymous)"),e.errHandle(i,{message:a,type:t,element:n,method:r,args:o})}return i}}],r&&Ot(t.prototype,r),n&&Ot(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),At=Tt;function Ct(e){return Ct="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ct(e)}function It(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==Ct(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!==Ct(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key,"string"),"symbol"===Ct(o)?o:String(o)),n)}var o}var Rt=["created","attached","detached"],Nt=Object.create(null),Pt=function(e,t,r){for(var n in t[r])e[r][n]=t[r][n]},kt=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Nt[t.is||""]=this,this.is=t.is,this.template=t.template,this.properties=Object.create(null),this.data=Object.create(null),this.lifetimes=Object.create(null),this.methods=Object.create(null),this.listeners=Object.create(null),this.observers=Object.create(null),this.filters=Object.create(null),this.ancestors=[],this.getBehaviorsProps(t),this.getSelfProps(t),this.ancestors.push(this)}var t,r;return t=e,r=[{key:"getBehaviorsProps",value:function(e){var t=this;e.behaviors=e.behaviors?e.behaviors:[],e.behaviors.forEach((function(e){var r;"string"==typeof e&&(r=Nt[e]),r&&(["properties","data","methods","observers","filters"].forEach((function(e){Pt(t,r,e)})),r.ancestors.forEach((function(e){t.ancestors.indexOf(e)<0&&t.ancestors.push(e)})))}))}},{key:"getSelfProps",value:function(e){var t=this;for(var r in["properties","data","listeners","methods","observers","filters"].forEach((function(r){Pt(t,e,r)})),e.lifetimes)Rt.indexOf(r)>=0&&(this.lifetimes[r]=e.lifetimes[r])}},{key:"getAllListeners",value:function(){var e=Object.create(null);return this.ancestors.forEach((function(t){for(var r in t.listeners)e[r]?e[r].push(t.listeners[r]):e[r]=[t.listeners[r]]})),e}},{key:"getAllLifeTimeFuncs",value:function(){var e=this,t=Object.create(null);return Rt.forEach((function(r){t[r]=new At("Lifetime Method");var n=t[r];e.ancestors.forEach((function(e){e.lifetimes[r]&&n.add(e.lifetimes[r])}))})),t}},{key:"hasBehavior",value:function(e){var t=!1;return this.ancestors.forEach((function(r){r.is===e&&(t=!0)})),t}}],r&&It(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),jt=kt;function Dt(e){return Dt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Dt(e)}_e(K.error,{key:"webviewScriptError",extend:"webviewId is ".concat(window.__webviewId__,", path: ").concat(window.__route__)});var Lt=String.fromCharCode(36);function Mt(e,t,r){!0===r?e.setAttribute(t,""):!1===r||null==r?e.removeAttribute(t):e.setAttribute(t,r)}function Bt(e,t,r){e[t]=r}function Gt(e,t,r){e.classList.toggle(t,!!r)}function Vt(e,t,r){e.style[t]=r}function Ft(e,t){return e.childNodes.indexOf(t)}var Ut=Date.now(),Ht=!1,xt={getEventOpt:function(e,t,r,n){return{target:e,currentTarget:e,type:t,timeStamp:Date.now()-Ut,detail:r,preventDefault:function(){n.originalEvent&&n.originalEvent.preventDefault()},stopPropagation:function(){Ht=!0}}},setExtraFields:function(e,t){for(var r in e)t[r]=e[r]},exeEvent:function(e,t,r){t.currentTarget=r,!1===e.call(r,[t])&&(t.preventDefault(),t.stopPropagation())},goAhead:function(e,t,r,n,o){return!!e&&(t===e&&e.parentNode,e.__maEvents&&e.__maEvents[o]&&xt.exeEvent(e.__maEvents[o],r,e),n.bubbles&&!Ht)},triggerInTurn:function(e,t,r,n){for(var o=e.parentNode,i=e;xt.goAhead(i,o,t,r,n);)if(i.__maElement){if(!r.composed)break;o&&o.__domElement||(o=i.__maElement,t.target=o),i=i.__maElement}else{var a=!0;(i.__domElement||i.__virtual)&&(a=!1),i=a||!r.composed?i.parentNode:i.__slotParent}}},Wt={triggerEvent:function(e,t,r,n){var o,i,a=n;a=a||{},Ht=!1;var c=e.__maElement||e;if(null!==(o=c.shadowRoot)&&void 0!==o&&null!==(i=o._prevent_default_event_)&&void 0!==i&&i[t]&&(null==n||!n.manually))return!1;e===c.shadowRoot&&(c=e);var u=xt.getEventOpt(c,t,r,a);return xt.setExtraFields(a.extraFields||{},u),xt.triggerInTurn(c,u,a,t),!0},addListenerToElement:function(e,t,r){var n=e.__maElement||e;return e===n.shadowRoot&&(n=e),n.__maEvents||(n.__maEvents=Object.create(null)),n.__maEvents[t]||(n.__maEvents[t]=new At("Event Listener")),n.__maEvents[t].add(r)},removeListenerFromElement:function(e,t,r){var n=e.__maElement||e;e===n.shadowRoot&&(n=e),n.__maEvents&&n.__maEvents[t]&&n.__maEvents[t].remove(r)}},Yt=Wt;function Kt(e){return Kt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kt(e)}function zt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==Kt(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!==Kt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key,"string"),"symbol"===Kt(o)?o:String(o)),n)}var o}var Jt=function(e,t,r,n){var o=n.subtree?e._callback:e._noSubtreeCallback;t[r]||(t[r]=new At("Observer Callback")),t[r].add(o),e.count++},qt=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._callback=t,this._noSubtreeCallback=function(e){e.target===this&&t.call(this,e)}}var t,r,n;return t=e,n=[{key:"_callObservers",value:function(e,t,r){var n=e;do{n[t]&&n[t].call(e,[r]),n=n.parentNode}while(n&&n.__subtreeObserversCount)}},{key:"_updateSubtreeCaches",value:function(t,r){t.__subtreeObserversCount+=r;var n=t.childNodes;if(n)for(var o=0;o<n.length;o++)e._updateSubtreeCaches(n[o],r)}}],(r=[{key:"observe",value:function(t,r){var n=r||{};this.count=0,n.properties&&Jt(this,t,"__propObservers",n),n.childList&&Jt(this,t,"__childObservers",n),n.characterData&&Jt(this,t,"__textObservers",n),n.subtree&&e._updateSubtreeCaches(t,this.count)}}])&&zt(t.prototype,r),n&&zt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),$t=qt;function Qt(e){return Qt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qt(e)}function Zt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==Qt(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!==Qt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key,"string"),"symbol"===Qt(o)?o:String(o)),n)}var o}var Xt={childHandle:function(e,t,r,n){var o=n?r:t;return Xt.updateSubtree(e,t,r,n)?o:null},updateSubtree:function(e,t,r,n){var o=n,i=Ft(e,r);if(r&&i<0)return!1;t===r&&(o=!1),o&&Xt.removeOldNodeHandler(e,r);var a=e;return e.__slots&&(a=e.__slots[""]),t&&Xt.newNodeHandler(e,t,i,null,a),Xt.attachShadowRoot(a,t,r,o),-1===i&&(i=e.childNodes.length),function(e,t,r,n){t?e.childNodes.splice(r,n?1:0,t):e.childNodes.splice(r,n?1:0)}(e,t,i,o),o&&(Xt.detachedElement(r),Xt.childObserver(e,"remove",r)),t&&(Xt.attachedElement(t),Xt.childObserver(e,"add",t)),!0},newNodeHandler:function(e,t,r,n,o){n=t.parentNode;var i=r;t.parentNode=e,t.__slotParent=o;var a=e.__subtreeObserversCount;if(n){var c=Ft(n,t);n.childNodes.splice(c,1),n===e&&c<i&&i--,a-=n.__subtreeObserversCount}a&&$t._updateSubtreeCaches(t,a)},removeOldNodeHandler:function(e,t){e.__subtreeObserversCount&&$t._updateSubtreeCaches(t,-e.__subtreeObserversCount),t.parentNode=null,t.__slotParent=null},attachShadowRoot:function(e,t,r,n){var o=n,i=r,a=e,c=Xt.findSlotDom(a,t,i),u=c.ele;if(i=c.old,a=u){var l=null;t&&(l=Xt.findNewDomEle(t));var s=null;if(i){var f=Xt.findOldDomEle(t,i,e,o,a);s=f.oldDomEle,o=f.willRemoveOldNode}o?l?a.replaceChild(l,s):a.removeChild(s):l&&(s?a.insertBefore(l,s):a.appendChild(l))}},findSlotDom:function(e,t,r){var n=e,o=r;if(n instanceof er){for(;n.__virtual;){var i=n.__slotParent;if(!i)return!1;if(t&&!o){var a=i.__slotChildren.indexOf(n);o=i.__slotChildren[a+1]}n=i}n instanceof er&&(n=n.__domElement)}return{ele:n,old:o}},findNewDomEle:function(e){var t=null;if(e.__virtual){var r=document.createDocumentFragment();Xt.handleDomElement(e,r,"append"),t=r}else t=e.__domElement;return t},findNonVirtualNode:function(e,t){for(var r,n=t;n<e.__slotChildren.length;n++){var o=e.__slotChildren[n];if(!o.__virtual)return o;var i=Xt.findNonVirtualNode(o,0);if(i)return i}return r},findOldDomEle:function(e,t,r,n,o){var i=null,a=t,c=n;if(a.__virtual){var u=r,l=0;if(c?(Xt.handleDomElement(a,o,"remove"),c=!1,l=r.__slotChildren.indexOf(a)+1):l=(u=a.__slotParent).__slotChildren.indexOf(a),e){a=null;for(var s=u;!(a=Xt.findNonVirtualNode(s,l))&&s.__virtual;s=s.__slotParent)l=s.__slotParent.__slotChildren.indexOf(s)+1;a&&(i=a.__domElement)}}else i=a.__domElement;return{oldDomEle:i,willRemoveOldNode:c}},handleDomElement:function(e,t,r){for(var n=0;n<e.__slotChildren.length;n++){var o=e.__slotChildren[n];o.__virtual?Xt.handleDomElement(o,t,r):"append"===r?t.appendChild(o.__domElement):t.removeChild(o.__domElement)}},attachedElement:function(e){e.parentNode&&!e.parentNode.__attached||(Xt.setAttachedRecursively(e,!0),Xt.callLifeTimeFuncRecursively(e,"attached"))},detachedElement:function(e){e.__attached&&(Xt.setAttachedRecursively(e,!1),Xt.callLifeTimeFuncRecursively(e,"detached"))},setAttachedRecursively:function(e,t){e.__attached=t,e.shadowRoot instanceof er&&Xt.setAttachedRecursively(e.shadowRoot,t);var r=e.childNodes;if(r)for(var n=0;n<r.length;n++)Xt.setAttachedRecursively(r[n],t)},callLifeTimeFuncRecursively:function(e,t){e.__lifeTimeFuncs&&Mr._callLifeTimeFuncs(e,t),e.shadowRoot instanceof er&&Xt.callLifeTimeFuncRecursively(e.shadowRoot,t);var r=e.childNodes;if(r)for(var n=0;n<r.length;n++)Xt.callLifeTimeFuncRecursively(r[n],t)},childObserver:function(e,t,r){if(e.__childObservers&&!e.__childObservers.empty||e.__subtreeObserversCount){var n=null;(n={type:"childList",target:e})["add"===t?"addedNodes":"removedNodes"]=[r],$t._callObservers(e,"__childObservers",n)}}},er=function(){function e(t){for(var r in function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t)Object.defineProperty(this,r,t[r])}var t,r,n;return t=e,r=[{key:"appendChild",value:function(e){return Xt.childHandle(this,e,null,!1)}},{key:"insertBefore",value:function(e,t){return Xt.childHandle(this,e,t,!1)}},{key:"removeChild",value:function(e){return Xt.childHandle(this,null,e,!0)}},{key:"replaceChild",value:function(e,t){return Xt.childHandle(this,e,t,!0)}},{key:"triggerEvent",value:function(e,t,r){Yt.triggerEvent(this,e,t,r)}},{key:"addListener",value:function(e,t){Yt.addListenerToElement(this,e,t)}},{key:"removeListener",value:function(e,t){Yt.removeListenerFromElement(this,e,t)}},{key:"hasBehavior",value:function(e){return!!this.__mergedBehaviors&&this.__mergedBehaviors.hasBehavior(e)}}],n=[{key:"initialize",value:function(e){e.__attached=!1,e.parentNode=null,e.childNodes=[],e.__slotParent=null,e.__slotChildren=e.childNodes,e.__subtreeObserversCount=0}},{key:"_attachShadowRoot",value:function(e,t){Xt.attachShadowRoot(e,t,null,!1)}},{key:"replaceDocumentElement",value:function(e,t){e.__attached||(t.parentNode.replaceChild(e.__domElement,t),Xt.attachedElement(e))}}],r&&Zt(t.prototype,r),n&&Zt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),tr=er;function rr(e){return rr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rr(e)}function nr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==rr(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!==rr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key,"string"),"symbol"===rr(o)?o:String(o)),n)}var o}var or=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._bindings=Object.create(null)}var t,r;return t=e,(r=[{key:"add",value:function(e,t,r,n){var o={exp:e,targetElem:t,targetProp:r,updateFunc:n},i=this._bindings;e.boundProps.forEach((function(e){i[e]||(i[e]=[]),i[e].push(o)}))}},{key:"update",value:function(e,t,r){var n=this._bindings[r];n&&n.forEach((function(r){var n=r.exp.calculate(e,t);r.updateFunc(r.targetElem,r.targetProp,n)}))}}])&&nr(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),ir=or;function ar(e){return ar="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ar(e)}function cr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==ar(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!==ar(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key,"string"),"symbol"===ar(o)?o:String(o)),n)}var o}function ur(e,t,r,n){var o="",i=n.prop;if(n.callee){var a=[];n.callee.forEach((function(e,r){a[r]=t[e]})),null!=(o=At.safeCallback("TemplateExparser Method",r[i],e,a))||(o="")}else o=t[i];return n.inversion?!o:o}var lr=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,n;return t=e,r=[{key:"calculate",value:function(e,t){var r=this._slices,n=null,o="";if(this.isSingleletiable)n=r[1],o=ur(e,t,this._methods,n);else for(var i=0;i<r.length;i++)n=r[i],o+=i%2?ur(e,t,this._methods,n):n;return o}}],n=[{key:"parse",value:function(t,r){var n=new e,o=t.split(/\{\{(.*?)\}\}/g),i=[];return function(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(r%2){var o=n.match(/^(!?)([-_a-zA-Z0-9]+)(?:\((([-_a-zA-Z0-9]+)(,[-_a-zA-Z0-9]+)*)\))?$/)||[!1,""],i=void 0;o[3]?(i=o[3].split(",")).forEach((function(e){!t.includes(e)&&t.push(e)})):!t.includes(o[2])&&t.push(o[2]),e[r]={inversion:!!o[1],prop:o[2],callee:i}}}}(o,i),n.boundProps=i,n.isSingleletiable=3===o.length&&""===o[0]&&""===o[2],n._slices=o,n._methods=r,n}}],r&&cr(t.prototype,r),n&&cr(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),sr=lr;function fr(e){return fr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fr(e)}function dr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==fr(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!==fr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key,"string"),"symbol"===fr(o)?o:String(o)),n)}var o}var vr=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,(r=[{key:"updateValues",value:function(e,t,r){r&&this.boundProps.update(e,t,r)}}])&&dr(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),pr=vr;function _r(e){return _r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_r(e)}function mr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==_r(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!==_r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key,"string"),"symbol"===_r(o)?o:String(o)),n)}var o}var hr={name:"virtual",slot:"",attrs:[],preRendered:document.createElement("virtual"),children:[]},br={globalOptions:function(){return{keepWhiteSpace:!1,parseTextContent:!1}},nativeRendering:function(e,t,r,n,o){var i=null;e.forEach((function(e){if(v(e.name))i=document.createTextNode(e.text),e.exp&&o.add(e.exp,i,"textContent",Bt),t.appendChild(i);else{var a=e.attrs;i=document.importNode(e.preRendered,!1),a.forEach((function(e){o.add(e.exp,i,e.name,e.updater)})),t.appendChild(i),e.id&&(r[(c=e.id,c.replace(/-([a-z])/g,(function(e,t){return t.toUpperCase()})))]=i),!v(e.slot)&&(n[e.slot]=i),br.nativeRendering(e.children,i,r,n,o)}var c}))},textNodeHandler:function(e){var t,r=e.nodeItem.textContent;e.pareOpts.keepWhiteSpace||""!==(r=r.trim())&&(e.nodeItem.textContent=r),r&&(e.pareOpts.parseTextContent&&(t=sr.parse(r,e.methods)),e.tagTree.push({exp:t,text:t?t.calculate(null,e.data):r}))},nodeAttributeHandler:function(e,t,r,n){for(var o=[],i="",a={},c=0;c<e.length;c++){var u=e[c],l=u.name;if("id"===l)i=u.value;else if("parse-text-content"===l)a.parseTextContent=!0;else if("keep-white-space"===l)a.keepWhiteSpace=!0;else{var s=void 0,f=void 0;l.slice(-1)===Lt?(f=Mt,l=l.slice(0,-1)):("class."===l.slice(0,6)&&(f=Gt,l=l.slice(6)),"style."===l.slice(0,6)&&(f=Vt,l=l.slice(6))),f&&(s=sr.parse(u.value,r));var d=s?s.calculate(null,n):u.value;!f&&(f=Mt),f(t,l,d),s&&o.push({name:l,value:d,updater:f,exp:s})}}return{attrs:o,id:i,pareOpts:a}},setElementNode:function(e,t,r,n){return{name:e.toLowerCase(),id:t,attrs:r,preRendered:n,children:[]}}},yr=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,r=[{key:"createInstance",value:function(){var e=new pr,t=Object.create(null),r=Object.create(null),n=new ir,o=document.createDocumentFragment();return br.nativeRendering(this._tagTreeRoot,o,t,r,n),e.shadowRoot=o,e.idMap=t,e.slots=r,e.boundProps=n,e}},{key:"differentNodeType",value:function(e,t,r){if(t.nodeItem.nodeType!==Node.COMMENT_NODE)if(t.nodeItem.nodeType===Node.TEXT_NODE)br.textNodeHandler(t);else if(["MA-BODY","SLOT"].indexOf(t.nodeItem.tagName)>=0)t.tagTree.push(e);else{var n=document.createElement(t.nodeItem.tagName),o=t.nodeItem.attributes;if(!o)return;var i=br.nodeAttributeHandler(o,n,t.methods,t.data),a=i.attrs,c=i.id,u=i.pareOpts,l=br.setElementNode(t.nodeItem.tagName,c,a,n);t.tagTree.push(l),t.nodeItem.childNodes&&r(l.children,t.nodeItem.childNodes,u),1===l.children.length&&l.children[0]===e&&(l.children=[],l.slot="")}}},{key:"create",value:function(e,t,r,n){var o=this,i=br.globalOptions(),a=hr,c={parseTextContent:n.parseTextContent||i.parseTextContent,keepWhiteSpace:n.keepWhiteSpace||i.keepWhiteSpace},u=[];!function e(n,i,c){i.forEach((function(i){var u={tagTree:n,pareOpts:c,nodeItem:i,data:t,methods:r};o.differentNodeType(a,u,e)}))}(u,e.content.childNodes,c),1===u.length&&u[0]===a&&u.pop(),this._tagTreeRoot=u}}],r&&mr(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Er=yr;function gr(e){return gr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gr(e)}function Or(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Sr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Or(Object(r),!0).forEach((function(t){wr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Or(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function wr(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==gr(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!==gr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===gr(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Tr(e,t,r,n){var o=r.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())}));t.type===Boolean?n?e.__domElement.setAttribute(o,""):e.__domElement.removeAttribute(o):t.type!==Object&&(t.type===Array?e.__domElement.setAttribute(o,JSON.stringify(n)):e.__domElement.setAttribute(o,n))}function Ar(e,t,r){return"function"==typeof t[r]?t[r]:e.methods[t[r]]}function Cr(e,t,r,n){e[t]={enumerable:!0,get:function(){var e=this.__propData[t];return void 0===e?n[t].value:e},set:function(e){var o=e,i=n[t];o=function(e,t){switch(t){case Number:return!!isFinite(e)&&Number(e);case String:return null==e?"":String(e);case Array:return e instanceof Array?e:[];case Boolean:return"false"!==e&&("true"===e||!!e);case Object:return"object"===Dt(e)?e:null;default:return void 0===e?null:e}}(o,i.type);var a,c=this.__propData[t];i.filter&&void 0!==(a=i.filter.apply(this,[o,c]))&&(o=a),r.filters[t]&&(o=a=r.filters[t].apply(this,[o,c])),i.public&&Tr(this,i,t,o),o!==c&&(this.__propData[t]=o,this.__templateInstance.updateValues(this,Sr(Sr({},this.__innerData),this.__propData),t),i.observer&&i.observer.apply(this,[o,c]),r.observers[t]&&r.observers[t].apply(this,[o,c]),i.public&&(this.__propObservers&&!this.__propObservers.empty||this.__subtreeObserversCount)&&$t._callObservers(this,"__propObservers",{type:"properties",target:this,propertyName:t}))}}}var Ir=function(e,t,r,n,o){for(var i in e.behavior.data)void 0!==r[i]?A.error("data name is same with props"):r[i]=e.behavior.data[i];var a=Object.create(e.maElement);tr.initialize(a),a.__domElement=t,a.__defaultValues=r,a.__cid__=n.__cid__,a.MaVirtualNode=n,t.__maElement=a;var c=o.replace("ma-","ma-exparser-");return t.setAttribute("class",c),a.is=o,a.$$=t,mt({node:n,element:a},n.__cid__),a},Rr=function(e,t){e[t]&&Object.keys(e[t]).forEach((function(r){e[t][r]=Ar(e,e[t],r)}))},Nr=function(e,t){e.data&&Object.keys(e.data).forEach((function(r){t[r]={enumerable:!0,get:function(){var t=this.__innerData[r];return void 0===t?e.data[r]:t},set:function(e){e!==this.__innerData[r]&&(this.__innerData[r]=e,this.__templateInstance.updateValues(this,Sr(Sr({},this.__innerData),this.__propData),r))}}}))},Pr=function(e,t){var r=Object.create(null),n={};return Object.keys(e.properties).forEach((function(o){var i=e.properties[o];C(e.properties,o);var a=Ar(e,i,"observer"),c=Ar(e,i,"filter");r[o]={type:i.type,value:i.value,observer:a,public:!!i.public,filter:c},n[o]=i.value,Cr(t,o,e,r)})),n},kr=function(e){var t;return e.template&&((t=document.createElement("template")).innerHTML=e.template||""),t},jr=function(e,t){var r=Object.create(null),n=function(){var n=e[o],i=[];n.forEach((function(e){"function"==typeof e?i.push(e):i.push(t.methods[e])})),r[o]=i};for(var o in e)n();return r},Dr=function(e,t){for(var r in e){var n=r.split(".",2),o=n[n.length-1],i=t.shadowRoot;if(2===n.length&&""!==n[0]&&(i="this"===n[0]?t:t.$[n[0]]),i)for(var a=e[r],c=a.length,u=0;u<c;u++)Yt.addListenerToElement(i,o,a[u].bind(t))}},Lr={list:Object.create(null),registerCustomComponent:function(e){var t=e.options||{},r=new jt(e),n=Object.create(Object.prototype,{is:{value:r.is||""}}),o=new tr(n);Lr.list[r.is]={behavior:r,maElement:o,options:t,properties:e.properties,data:e.data,isCustom:e.isCustom,template:e.template,innerEvents:null}},register:function(e){var t=new jt(e);Rr(t,"observers"),Rr(t,"filters");var r=Object.create(Object.prototype,{is:{value:e.is||""}}),n=Pr(t,r);Nr(t,r);var o=new tr(r);for(var i in o.__mergedBehaviors=t,o.__lifeTimeFuncs=t.getAllLifeTimeFuncs(),o.__defaultValues=n,t.methods)o[i]=t.methods[i];var a=kr(t),c=Object.assign({},n,t.data?t.data:{}),u=new Er;u.create(a,c,t.methods,e.options||{});var l=t.getAllListeners(),s=jr(l,t);Lr.list[t.is]={maElement:o,template:u,defaultValuesJSON:JSON.stringify(n),innerData:JSON.stringify(t.data),innerEvents:s}},create:function(e,t,r){var n=e;n=n||"virtual";var o=document.createElement(n),i=Lr.list[n]||Lr.list[""];if(i.isCustom)return Ir(i,o,t,r,n);var a=Object.create(i.maElement);tr.initialize(a),a.is=n,a.__domElement=o,a.__slot__=r.__slot__,a.__instanceId__=r.instanceId,o.__maElement=a,a.__propData=JSON.parse(i.defaultValuesJSON),a.__innerData=i.innerData?JSON.parse(i.innerData):{},a.__templateInstance=i.template.createInstance();var c=a.__templateInstance;return o.appendChild(c.shadowRoot),a.shadowRoot=o,a.__slotChildren=o.childNodes,a.$=c.idMap,a.$$=o,c.slots[""]||(c.slots[""]=o),a.__slots=c.slots,a.__slots[""].__slotChildren=a.childNodes,Dr(i.innerEvents,a),Lr._callLifeTimeFuncs(a,"created"),a},_callLifeTimeFuncs:function(e,t){e.__lifeTimeFuncs[t].call(e,[])}};Lr.register({is:"",template:"<ma-body></ma-body>"});var Mr=Lr;function Br(e,t,r){return e.splice(t,1),{index:t,key:r}}function Gr(e){return e?e.maKey:null}function Vr(e){for(var t={},r=[],n=0;n<e.length;++n){var o=e[n],i=Gr(o);i?Object.prototype.hasOwnProperty.call(t,i)?(A.error("Use ".concat(i," as maKey multiple times")),o.maKey=void 0,r.push(n)):t[i]=n:r.push(n)}return{keyIndexes:t,freeIndexes:r}}window.screen&&window.screen.width,navigator.userAgent.match("iPhone");var Fr=function(e,t){var r=Vr(e).keyIndexes;if(h(r))return{children:t,moves:null};var n=Vr(t),o=n.keyIndexes,i=n.freeIndexes;return h(o)?{children:t,moves:null}:function(e,t,r,n,o){for(var i=[],a=0,c=0,u=0;u<e.length;++u){var l=Gr(e[u]);if(l){if(Object.prototype.hasOwnProperty.call(n,l)){var s=n[l];i.push(t[s]);continue}++c,i.push(null)}else if(a<o.length){var f=o[a];i.push(t[f]),++a}else++c,i.push(null)}for(var d=o[a]||t.length,v=0;v<t.length;++v){var p=t[v],_=Gr(p);_&&(Object.prototype.hasOwnProperty.call(r,_)||i.push(p)),!_&&v>=d&&i.push(p)}for(var m=function(e,t,r){for(var n=t.slice(0),o=0,i=[],a=[],c=0;c<e.length;){for(var u=Gr(e[c]),l=n[o],s=Gr(l);null===l;)i.push(Br(n,o,s)),s=Gr(l=n[o]);s!==u?u?s&&r[s]===c+1||!s?(a.push({key:u,index:c}),++c):(i.push(Br(n,o,s)),(l=n[o])&&Gr(l)===u?++o:a.push({key:u,index:c}),++c):i.push(Br(n,o,s)):(++o,++c)}return{simulate:n,simulateIndex:o,removes:i,inserts:a}}(t,i,n),h=m.simulate,b=m.simulateIndex,y=m.removes,E=m.inserts;b<h.length;){var g=Gr(h[b]);y.push(Br(h,b,g))}var O={removes:y,inserts:E};return y.length===c&&0===E.length&&(O=null),{children:i,moves:O}}(e,t,r,o,i)};function Ur(e,t,r){for(var n=e.length-1,o=0;o<=n;){var i=n+o>>1,a=e[i];if(a<t)o=i+1;else{if(!(a>r))return!0;n=i-1}}return!1}function Hr(e,t,r,n,o){var i=o;if(e){Ur(r,i,i)&&(n[i]=e);var a=t.children;if(a)for(var c=e.childNodes,u=0;u<a.length;++u){var l=a[u],s=++i+(l.descendants||0);Ur(r,i,s)&&Hr(c[u],l,r,n,i),i=s}}}function xr(e){return xr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xr(e)}function Wr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==xr(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!==xr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key,"string"),"symbol"===xr(o)?o:String(o)),n)}var o}var Yr=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.oldTree=t,this.patches=r,this.patchIndexes=Object.keys(this.patches).map((function(e){return Number(e)}))}var t,r;return t=e,r=[{key:"apply",value:function(e){var t=this;if(0===this.patchIndexes.length)return e;var r=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n={};return r.length&&(r.sort((function(e,t){return e-t})),Hr(e,t,r,n,0)),n}(e,this.oldTree,this.patchIndexes);return this.patchIndexes.forEach((function(e){var n=r[e];n&&t.patches[e].forEach((function(e){e.apply(n)}))})),e}}],r&&Wr(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Kr=Yr;function zr(e){return zr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zr(e)}function Jr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==zr(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!==zr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key,"string"),"symbol"===zr(o)?o:String(o)),n)}var o}var qr=function(e,t,r){return t&&Jr(e.prototype,t),r&&Jr(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.type=Number(t),this.vNode=r,this.patch=n})),$r=qr;function Qr(e){return function(e){if(Array.isArray(e))return Zr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Zr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Zr(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Zr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Xr(e,t){var r=e;return r||(r=[]),r.push(t),r}function en(e,t){var r={},n=t.props,o=t.newProps.length>0?t.newProps:function(e,t){var r=e.props,n=t.props,o=Object.keys(r),i=Object.keys(n),a="ma-picker-view"===e.tagName||"ma-picker-view"===t.tagName,c="ma-picker"===e.tagName||"ma-picker"===t.tagName,u=i.filter((function(e){return!o.includes(e)})),l=o.filter((function(e){return!(a&&"value"===e||c&&("value"===e||"range"===e)||r[e]===n[e])}));return[].concat(Qr(u),Qr(l))}(e,t);return o.forEach((function(e){r[e]=n[e]})),h(r)?void 0:r}function tn(e,t,r,n){e.__cid__&&t&&(t.__cid__=e.__cid__,t.innerData=e.innerData);var o,i=r[n];if(t)if(be(t))if(be(e))if(e.tagName===t.tagName&&e.maKey===t.maKey&&"virtual"===e.tagName&&e.maVkey!==t.maVkey)i=Xr(i,new $r(Et.PATCH_TYPE.VNODE,e,t));else if(e.tagName!==t.tagName||e.maKey!==t.maKey||"virtual"===e.tagName&&e.maVkey!==t.maVkey)i=Xr(i,new $r(Et.PATCH_TYPE.VNODE,e,t));else{var a=en(e,t);a&&(i=Xr(i,new $r(Et.PATCH_TYPE.PROPS,e,a))),i=rn(e,t,r,i,n)}else i=Xr(i,new $r(Et.PATCH_TYPE.VNODE,e,t));else{if(!(o=t)||"MaVirtualText"!==o.type)throw{message:"unKnow node type !",node:t};t.text!==e.text&&(i=Xr(i,new $r(Et.PATCH_TYPE.TEXT,e,t)))}else i=Xr(i,new $r(Et.PATCH_TYPE.REMOVE,e));i&&(r[n]=i)}function rn(e,t,r,n,o){for(var i=o,a=n,c=e.children,u=Fr(c,t.children),l=u.children,s=c.length>l.length?c.length:l.length,f=0;f<s;++f){var d=c[f],v=l[f];++i,d&&d!==v?tn(d,v,r,i):v&&(a=Xr(a,new $r(Et.PATCH_TYPE.INSERT,d,v))),be(d)&&(i+=d.descendants)}return u.moves&&(a=Xr(a,new $r(Et.PATCH_TYPE.REORDER,e,u.moves))),a}var nn=function(e,t){var r={};return e!==t&&tn(e,t,r,0),new Kr(e,r)};function on(e){return on="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},on(e)}function an(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==on(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!==on(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key,"string"),"symbol"===on(o)?o:String(o)),n)}var o}var cn=function(e,t,r){return t&&an(e.prototype,t),r&&an(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.text=String(t)}));cn.prototype.type="MaVirtualText";var un=cn;function ln(e){return ln="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ln(e)}function sn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==ln(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!==ln(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key,"string"),"symbol"===ln(o)?o:String(o)),n)}var o}var fn=function(){function e(t,r,n){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.tagName=t.tag||"div",this.props=t.attr||{},this.children=r||[],this.newProps=t.n||[],this.maVkey=t.maVkey,this.template=t.template,this.__cid__=t.__cid__,this.instanceId=t.instanceId,this.pid=n,this.data=t.data,this.innerData=t.innerData,this.maKey=v(t.maKey)?t.maKey:String(t.maKey),this.descendants=0,r.forEach((function(e){var t=e;be(t)?o.descendants+=t.descendants:(b(t)||_(t))&&(t=new un(t)),++o.descendants}))}var t,r;return t=e,(r=[{key:"updateDescendants",value:function(){var e=this;return this.descendants=0,this.children.forEach((function(t){be(t)&&(e.descendants+=t.updateDescendants()),++e.descendants})),this.descendants}},{key:"diff",value:function(e){return this.updateDescendants(),nn(this,e)}}])&&sn(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();fn.prototype.type="MaVirtualNode";var dn=fn,vn="",pn="";function _n(e,t){if(Oo.isString(e)||Oo.isIntNumber(e))return r=String(e),new un(r);var r,n=[];return e.children&&e.children.forEach((function(e){n.push(_n(e,t))})),function(e,t,r){return new dn(e,t,r)}(e,n,t)}function mn(e){return yt.list[e]&&yt.list[e].isCustom}function hn(e,t){Oo.isString(e)||Oo.isIntNumber(e)||(e.instanceId=t,e.children&&e.children.forEach((function(e){hn(e,t)})))}function bn(e,t,r){if(e&&e.length)for(var n=function(n){var o=e[n];if("ma-slot"===o.tagName){var i=o.pid;return e.splice(n,1),r.slotChildren=t,t&&t.length&&t.forEach((function(t,r){t.pid=i,e.splice(n+r,0,t)})),"break"}bn(o.children,t,r)},o=0;o<e.length&&"break"!==n(o);o++);}function yn(e){if(mn(e.tagName)){var t=Oo.deepCopy(yt.list[e.tagName]);e.innerData=e.innerData?e.innerData:t.data;var r={};for(var n in t.properties)r[n]=Oo.deepCopy(e.props)[n],void 0===e.props[n]&&(r[n]=t.properties[n]&&t.properties[n].value?t.properties[n].value:t.properties[n]);var o=_n(yt.list[e.tagName].template.func(e.innerData,r),e.__cid__),i=e.__cid__?e.slotChildren:e.children;bn(o.children,i,e),e.children=o.children,e.children&&e.children.forEach((function(e){yn(e)}))}else e.children&&e.children.forEach((function(e){yn(e)}))}function En(e){if(mn(e.tagName)){var r;e.__cid__?r=bo.getComponentObj(e.__cid__):(e.__cid__=Oo.guid(),pn||(pn=bo.getCustomComponents()),r=bo.componentParse(Oo.deepCopy(pn[e.tagName]),vn,e.__cid__,e.props,e.pid),bo.setComponentObj(e.__cid__,r)),e.innerData=e.innerData?e.innerData:Oo.deepCopy(yt.list[e.tagName].data);var n={};for(var o in r.properties)n[o]=Oo.deepCopy(e.props)[o],void 0===e.props[o]&&(n[o]=r.properties[o]&&r.properties[o].value?r.properties[o].value:r.properties[o]);var i=yt.list[e.tagName].template.func(e.innerData,n);hn(i,e.__cid__),function(e){var t=e.props,r=e.instanceId,n={};for(var o in t){var i=t[o];if(o.startsWith("bind")){var a;a=o.startsWith("bind:")?o.slice(5):o.slice(4);var c=Oo.getParentObj(r);c&&(e._maEvents=e._maEvents||{},e._maEvents[a]={func:c[i],dataset:n})}o.startsWith("data-")&&(n[o.slice(5)]=i)}}(e);var a=_n(i,e.__cid__);for(var c in bn(a.children,e.children,e),e.children=a.children,e.__component__=r,mt(e,e.__cid__),r.__attached||(r.__attached=!0,r.behaviors&&r.behaviors.forEach((function(e){e.callLifeTimeFuncRecursively(r,t.LIFECYCLE.ATTACHED)})),r.attached(),r.__relationHandler(t.LIFECYCLE.ATTACHED)),e.children&&e.children.forEach((function(e){En(e)})),e.props)r.propertiesKeys.includes(c)&&(r.properties[c]=Oo.deepCopy(e.props)[c])}else e.children&&e.children.forEach((function(e){En(e)}))}function gn(e){return mn(e.tagName)?En(e):e.children&&e.children.forEach((function(e){En(e)})),e}function On(e,t){return mn(e.tagName)?En(e):e.children&&e.children.length&&e.children.forEach((function(e){En(e)})),Tn(t),e}function Sn(e){if(mn(e.tagName)){var r=_t(e.__cid__).__component__;r.behaviors&&r.behaviors.forEach((function(e){e.callLifeTimeFuncRecursively(r,t.LIFECYCLE.MOVED)})),r.moved&&r.moved(),r.__relationHandler(t.LIFECYCLE.MOVED)}else e.children&&e.children.length&&e.children.forEach((function(e){Sn(e)}))}function wn(e,t){var r=[];t.removes.forEach((function(e){r.push(e.key)}));var n=[];e.children&&e.children.forEach((function(e){r.includes(e.maKey)&&n.push(e)})),n.forEach((function(e){Sn(e)}))}function Tn(e){return ht(e),e}function An(e,t){for(var r in e)"children"!==r&&(t[r]=e[r]);t.newProps={}}function Cn(e,t){if(mn(e.tagName)){var r=e.__cid__,n=_t(r),o=_n(yt.list[e.tagName].template.func(e.innerData,Oo.deepCopy(t)));o.children&&o.children.length&&o.children.forEach((function(e){yn(e)})),An(n,o);var i=bo.getComponentObj(e.__cid__);for(var a in t)i.propertiesKeys.includes(a)&&(i.properties[a]=t[a],o.props[a]=t[a]);n.diff(o),mt(o,r)}return e}function In(e,r,n){mn(e.tagName)&&(n||r.push([t.SYNC_EVENT_NAME.FLOW_CREATE_NODE,e.__cid__])),e.children&&e.children.forEach((function(e){In(e,r)}))}function Rn(e,r,n,o,i){var a=[];vn=o,a=[[e]],e===t.SYNC_EVENT_NAME.FLOW_INITIAL_CREATION?a.push([t.SYNC_EVENT_NAME.FLOW_CREATE_NODE,n]):a.push([t.SYNC_EVENT_NAME.FLOW_CREATE_NODE,n,r]);var c,u=_t(n),l={};u&&(l=u.innerData),"ma-page"===(c=i?(0,__maAppCode__["".concat(i,".maml")])(l,r):(0,yt.list[u.tagName].template.func)(l,r)).tag&&(c.tag="body"),hn(c,n);var s=_n(c,n);return s.innerData=l,u?(An(u,s),bn(s.children,s.slotChildren,s),s.children&&s.children.forEach((function(e){yn(e)})),function(e){var r=e.patches;for(var n in r)r[n].forEach((function(e){switch(e.type){case t.PATCH_TYPE.PROPS:return Cn(e.vNode,e.patch);case t.PATCH_TYPE.INSERT:return gn(e.patch);case t.PATCH_TYPE.REMOVE:return Tn(e.vNode);case t.PATCH_TYPE.REORDER:return wn(e.vNode,e.patch);case t.PATCH_TYPE.VNODE:return On(e.patch,e.vNode);default:return e}}))}(u.diff(s)),mt(s,n)):(En(s),mt(s,n)),s.updateDescendants(),In(s,a,!0),a}function Nn(e){return Nn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nn(e)}function Pn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function kn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Pn(Object(r),!0).forEach((function(t){jn(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function jn(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Nn(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!==Nn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===Nn(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Dn=["created","attached","ready","moved","detached"],Ln=[],Mn=["data","properties","methods"];function Bn(e,t){var r,n=bo.getComponents()[e];if(!n)return K.normalError({key:"thirdPageError",message:"Component data must Object",error:new pe("thirdPageError: Component data must Object")}),r;(r={}).behaviors=n.behaviors&&Array.from(new Set(n.behaviors)),r.data={};var o=r.data;if("Object"===Oo.getDataType(r.data))for(var i in n.data)o[i]=Oo.deepCopy(n.data[i]);else K.normalError({key:"thirdPageError",message:"Component data must Object",error:new pe("thirdPageError: Component data must Object")});Dn.forEach((function(e){r[e]=n[e]||Oo.emptyFn})),r.options={};var a=r.options;for(var c in n.options)a[c]=Oo.deepCopy(n.options[c]);r.properties={};var u=r.properties;for(var l in n.properties)u[l]=Oo.deepCopy(n.properties[l]);r.relations={};var s=r.relations;for(var f in n.relations)s[f]=Oo.deepCopy(n.relations[f]);for(var d in n.methods)r[d]=n.methods[d];var v={data:Oo.deepCopy(o),properties:Oo.deepCopy(u),methods:Oo.deepCopy(r)};return n.behaviors&&n.behaviors.forEach((function(e){Mn.forEach((function(t){!function(e,t,r,n){for(var o in e[r])if("data"===r&&y(e[r][o])){var i=Oo.deepCopy(e[r][o]);n[r][o]=Object.assign(n[r][o]||{},i)}else Gn(t[r],o)||("methods"===r?n[o]=Oo.deepCopy(e[r][o]):n[r][o]=Oo.deepCopy(e[r][o]))}(e,v,t,r)}))})),r.is=e,r.template="".concat(e,".maml"),r.nameKey=t,r}function Gn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var Vn=function e(t,r){if(__maAppCode__&&__maAppCode__["".concat(r,".json")]){var n=__maAppCode__["".concat(r,".json")].usingComponents;for(var o in n=kn(kn({},Ln),n)){var i="ma-".concat(o);if(void 0===t[i]){var a=n[o],c=Bn(a,o);if(c){var u=__maAppCode__["".concat(a,".json")];u&&(c.styleIsolation=u.styleIsolation),t[i]=c,u&&u.usingComponents&&e(t,a)}}}}},Fn=function(e,r){var n={};n.webviewId=e;var o={data:{data:r,ext:n,options:{timestamp:Number(new Date)}}};Oo.notifyViewLayer(t.VIEW_LOGIC_SYNC,[e],o)},Un=function(e,r,n,o,i){var a={data:{data:Rn(e,r,n,o,i),ext:{},options:{timestamp:Number(new Date)}}};Oo.notifyViewLayer(t.VIEW_LOGIC_SYNC_BATCH,[o],a)},Hn=function(){__maAppCode__&&__maAppCode__["app.json"]&&(Ln=__maAppCode__["app.json"].usingComponents)},xn={emit:function(e,r){Oo.notifyViewLayer(t.PAGE_DATA_CHANGE,r,{data:{data:e}})},viewLogicSyncBatch:function(e,t,r,n,o){Un(e,t,r,n,o)}},Wn=xn;function Yn(e){return Yn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yn(e)}function Kn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function zn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,qn(n.key),n)}}function Jn(e,t,r){return(t=qn(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qn(e){var t=function(e,t){if("object"!==Yn(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!==Yn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===Yn(t)?t:String(t)}var $n=["created","attached","ready","moved","detached"],Qn=["data"],Zn=["__maWebviewId__","__cid__","__pid__"];function Xn(e,t,r){var n=_t(e);if(n&&"body"!==n.tagName){if(n._maEvents&&n._maEvents[t]){var o=n._maEvents[t],i=o.func,a=o.dataset;he(i)({detail:r,currentTarget:{dataset:a},type:t})}Xn(n.pid,t,r)}}function eo(e,t,r,n,o){var i=this,a=_t(e).__component__,c=a.__relationMap,u=a.is;t.forEach((function(e){var t,l,s=e.key;c[r]&&c[r].length&&c[r].forEach((function(e){e.key===o.is&&(t=e)})),s===u&&t&&(a.__relationLinks[r]=a.__relationLinks[r]||[],(Jn(l={},Et.LIFECYCLE.ATTACHED,to),Jn(l,Et.LIFECYCLE.MOVED,ro),Jn(l,Et.LIFECYCLE.DETACHED,no),l)[n].call(i,a,o,r,t,e))}))}function to(e,t,r,n,o){e.__relationLinks[r].push(t),t.__relationLinks[r===Et.RELATION_TYPE.DESCENDANT?Et.RELATION_TYPE.ANCESTOR:Et.RELATION_TYPE.PARENT].push(e),n.linked.apply(e,[t]),o.linked.apply(t,[e])}function ro(e,t,r,n){r.linkChanged.apply(e,[t]),n.linkChanged.apply(t,[e])}function no(e,t,r,n,o){var i;e.__relationLinks[r].forEach((function(e,r){e&&e.__cid__===t.__cid__&&(i=r)})),i&&e.__relationLinks[r].splice(i,1),n.unlinked.apply(e,[t]),o.unlinked.apply(t,[e])}function oo(e,t,r,n,o){if(o!==n&&n){eo(n,t,Et.RELATION_TYPE.DESCENDANT,r,e);var i=_t(n).__component__;oo(e,t,r,i.__pid__,i.__maWebviewId__)}}function io(e,t,r,n){var o=r===Et.RELATION_TYPE.PARENT,i=e[r],a=t.__pid__,c=t.__maWebviewId__;o?eo(a,i,Et.RELATION_TYPE.CHILD,n,t):oo(t,i,n,a,c)}var ao=function(){function e(t,r,n,o){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var a={__maWebviewId__:r,__cid__:n,__pid__:o};for(var c in Zn.forEach((function(e){i.__defineGetter__(e,(function(){return a[e]}))})),t.data=t.data||{},this.data=t.data,function(e,t){e.properties=t.properties,e.__properties={},e.propertiesKeys=[];var r=function(t){e.propertiesKeys.push(t);var r=e.properties[t];r?C(e.properties,t):e.properties[t]={type:null,value:null};var n=e.properties[t].value;e.properties[t]=n;var o=r?r.observer:null;o&&(e.__properties[t]=n,Object.defineProperty(e.properties,t,{set:function(r){var n=e.__properties[t];n!==r&&(e.__properties[t]=r,"function"==typeof o?o.call(e,r,n):"function"==typeof e[o]&&e[o](r,n))},get:function(){return e.__properties[t]}}))};for(var n in e.properties)r(n)}(this,t),this.data)Object.prototype.hasOwnProperty.call(this.properties,c)||(t.properties[c]=this.data[c],this.properties[c]=t.properties[c]);if(this.data=this.properties,function(e,t){var r=e.relations;t.__relationMap={};var n=t.__relationMap;t.__relationLinks={};var o=t.__relationLinks;for(var i in r){var a=r[i],c=a.type,u=xe(e.is,i);a.key=u.substring(0,u.length-5),n[c]?n[c].push(a):n[c]=[a],o[c]?o[c].push(null):o[c]=[null]}var l=[];n.parent&&l.push((function(e){io(t.__relationMap,t,Et.RELATION_TYPE.PARENT,e)})),n.ancestor&&l.push((function(e){io(t.__relationMap,t,Et.RELATION_TYPE.ANCESTOR,e)})),t.__relationHandler=function(e){l.forEach((function(r){r.call(t,e)}))}}(t,this),"Object"===d(t.data))for(var u in $n.forEach((function(e){i[e]=function(){for(var r=(t[e]||me).bind(this),n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return r.apply(this,o)}})),t)this.setComponentObjByKey(u,t);else K.normalError({key:"thirdPageError",message:"Component data must Object",error:new pe("thirdPageError: Component data must Object")})}var t,r;return t=e,r=[{key:"setComponentObjByKey",value:function(e,t){var r,n=this;r=e,-1!==Zn.indexOf(r)||Oo.isSysAttr(e,[].concat($n,Qn))||("Function"===d(t[e])?this[e]=function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t[e].apply(n,o)}:this[e]=t[e])}},{key:"setData",value:function(e){try{if("Object"===d(e))for(var t in e){var r=dt(this.data,t),n=r.obj,o=r.key;n&&(n[o]=Oo.deepCopy(e[t]))}this.__ready?Wn.viewLogicSyncBatch(Et.SYNC_EVENT_NAME.FLOW_SET_DATA,e,this.__cid__,this.__maWebviewId__):(this.__beforeCreatedData=this.__beforeCreatedData||[],this.__beforeCreatedData.push(e))}catch(e){K.error({apiName:"component setData",key:"thirdPageError",error:fe.formatReportError(e,pe)})}}},{key:"runSetData",value:function(){var e={};this.__beforeCreatedData.forEach((function(t){__mergeData__(e,t)})),Wn.viewLogicSyncBatch(Et.SYNC_EVENT_NAME.FLOW_SET_DATA,e,this.__cid__,this.__maWebviewId__)}},{key:"triggerEvent",value:function(e,t,r){var n=_t(this.__cid__);if(n._maEvents&&n._maEvents[e]){var o=n._maEvents[e],i=o.func,a=o.dataset;he(i)({detail:t,currentTarget:{dataset:a},type:e})}r&&r.bubbles&&Xn(n.pid,e,t)}},{key:"selectComponent",value:function(e){var t;return e.startsWith("#")?(t=e.slice(1),Oo.queryIdObject(t,this.__cid__)):e.startsWith(".")?(t=e.slice(1),Oo.queryClassObjectList(t,this.__cid__)):null}},{key:"getRelationNodes",value:function(e){var t=this.relations[e];if("string"!=typeof e||!t)return null;var r=[],n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Kn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Kn(e,t):void 0}}(e,t)||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.")}()}(xe(this.is,e).split(".html"),1)[0],o=t.type;return this.__relationLinks[o].forEach((function(e){e&&e.is===n&&r.push(e)})),r}}],r&&zn(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),co=ao,uo=[".","[","]"],lo=function(e){throw new Error(e)},so=function(e){for(var t=e.length,r=[],n="",o=0,i=!1,a=!1,c=0;c<t;c++){var u=e[c];"\\"===u&&c+1<t?uo.includes(e[c+1])?(n+=e[c+1],c++):n+="\\":"."===u?n&&(r.push(n),n=""):"["===u?(n&&(r.push(n),n=""),!r.length&&lo("path can not start with []:".concat(e)),a=!0,i=!1):"]"===u?(!i&&lo("must have number in []:".concat(e)),a=!1,r.push(o),o=0):a?!isNaN(Number(u))&&Number(u)>=0&&Number(u)<=9?(i=!0,o=10*o+Number(u)):lo("only number 0-9 could inside []:".concat(e)):n+=u}return n&&r.push(n),!r.length&&lo("path can not be empty"),r},fo=function(e,t,r){var n,o={},i=e,a=!1;return t.forEach((function(e){_(e)?"Array"!==d(i)&&(r&&!a?(a=!0,o[n]={__value__:[],__maspec__:!0},i=o[n].__value__):i=o[n]=[]):"Object"!==d(i)&&(r&&!a?(a=!0,o[n]={__value__:{},__maspec__:!0},i=o[n].__value__):i=o[n]={}),n=e,o=i,(i=i[e])&&i.__maspec__&&(i=i.__value__,a=!0)})),{obj:o,key:n,changed:a}},vo=function(e,t){var r=JSON.parse(JSON.stringify(e));for(var n in t){var o=so(n),i=fo(e,o,!1),a=i.obj,c=i.key,u=fo(r,o,!0),l=u.obj,s=u.key,f=u.changed;a&&(a[c]=t[n]),l&&(l[s]=f?t[n]:{__value__:t[n],__maspec__:!0})}return r};window.__mergeData__=vo;var po,_o={},mo=new Map,ho={},bo={initComponent:function(e){_o[__maRoute]=e},getComponents:function(){return _o},getComponentObj:function(e){return mo.get(e)},setComponentObj:function(e,t){mo.set(e,t)},getCustomComponents:function(){return ho},registerComponent:function(e){for(var t in e){ho[t]=e[t];var r=ho[t];if(__maAppCode__[r.template]||$gma("./".concat(r.template))){var n={is:t,isCustom:!0,properties:r.properties,relations:r.relations,template:{func:__maAppCode__[r.template]?__maAppCode__[r.template]:$gma("./".concat(r.template))},data:r.data,options:r.options};yt.registerCustomComponent(n)}else K.normalError({key:"thirdPageError",message:"custom component ".concat(r.template," do not have a template"),error:new pe("thirdPageError: custom component ".concat(r.template," do not have a template"))})}},componentParse:function(e,t,r,n,o){var i=new co(e,t,r,o);return e.behaviors&&e.behaviors.forEach((function(e){e.callLifeTimeFuncRecursively(i,Et.LIFECYCLE.CREATED)})),i.created(),i}};function yo(){po={},window.__maConfig__||(window.__maConfig__=window.__maAppCode__["app.json"]),__maConfig__&&__maConfig__.tabBar&&__maConfig__.tabBar.list&&__maConfig__.tabBar.list.forEach((function(e,t){po[e.pagePath]={index:t,info:e}}))}var Eo={skeletonTimeoutRegister:function(e,t){window.__maConfig__||(window.__maConfig__=window.__maAppCode__["app.json"]);var r=2e3;if(__maConfig__&&__maConfig__.skeleton&&__maConfig__.skeleton.page&&__maConfig__.skeleton.page[e]){__maConfig__.skeleton&&__maConfig__.skeleton.config&&void 0!==__maConfig__.skeleton.config.timeout&&m(__maConfig__.skeleton.config.timeout)&&(r=__maConfig__.skeleton.config.timeout);var n=window.__maAppCode__["".concat(e,".json")];n.skeleton&&n.skeleton.config&&void 0!==n.skeleton.config.timeout&&m(__maConfig__.skeleton.config.timeout)&&(r=n.skeleton.config.timeout),this.notifyViewLayer(Et.REGISTER_SKELETON,[t],{timeout:r})}},notifyViewLayer:function(e,t,r){var n={options:{timestamp:Date.now()}},o=r;o?o.options=Object.assign(o.options||{},n.options):o=n,logicLayer.notifyViewLayer.apply(logicLayer,[e,t,o])},safeInvoke:function(e,t){var r;if(void 0===this[e])return A.error('Page "'.concat(this.__route__,'" does not have a method ').concat(e," to handle event")),r;try{r=this[e].apply(this,[t])}catch(t){K.error({key:"thirdPageError",error:fe.formatReportError(t,pe),extend:"at ".concat(this.__route__," page ").concat(e," function"),filePath:this.__route__})}return r},warn:function(e,t){A.group("".concat(new Date," ").concat(e)),A.warn(t),A.groupEnd()},isTabbar:function(e){return po||yo(),Object.prototype.hasOwnProperty.call(po,e)||Object.prototype.hasOwnProperty.call(po,"".concat(e,".html"))},getTabbarInfo:function(e){return po||yo(),po["".concat(e,".html")]||po[e]},guid:function(){return"xxxx4xxxyxxxx".replace(/[xy]/g,(function(e){var t=.001*window.crypto.getRandomValues(new Uint8Array(1))*16|0;return("x"===e?t:3&t|8).toString(16)}))},emptyFn:function(){},deepCopy:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o;if(-1!==["String","Number","Boolean","Null","Undefined"].indexOf(d(e)))return e;var r=i(e,t),n=null!==r?r:e;return a(e,t,n,[e],[n])},isString:b,isIntNumber:_,getDataType:d,isSysAttr:function(e,t){var r=!1;return t.forEach((function(t){t===e&&(r=!0)})),r},getParentObj:function(e){var t=pi.getPageStackObjs()[e];return t?t.page:bo.getComponentObj(e)},queryIdObject:function(e,t){var r=pt();for(var n in r){var o=r[n];if(o.props.id===e&&o.pid===t){var i=o.__cid__;return bo.getComponentObj(i)}}},queryClassObjectList:function(e,t){var r=[],n=pt();for(var o in n){var i=n[o];if((i.props.class?i.props.class.split(" "):[]).includes(e)&&i.pid===t){var a=i.__cid__;r.push(bo.getComponentObj(a))}}return r}},go=_e(K.error,{key:"serviceScriptError"}),Oo=Eo;function So(e){return So="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},So(e)}function wo(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return To(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?To(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}function To(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ao(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==So(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!==So(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key,"string"),"symbol"===So(o)?o:String(o)),n)}var o}var Co=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.onEventMap=new Map,this.onceEventMap=new Map,this.callbackMap=new WeakMap}var t,r;return t=e,r=[{key:"on",value:function(e,t){var r=function(){try{for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];t.apply(void 0,r)}catch(e){A.error(e)}};this.callbackMap.set(t,r),this.onEventMap.has(e)?this.onEventMap.get(e).add(r):this.onEventMap.set(e,new Set([r]))}},{key:"once",value:function(e,t){var r=function(){try{for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];t.apply(void 0,r)}catch(e){A.error(e)}};this.callbackMap.set(t,r),this.onceEventMap.has(e)?this.onceEventMap.get(e).add(r):this.onceEventMap.set(e,new Set([r]))}},{key:"off",value:function(e,t){var r=this.onEventMap.get(e);if(r)if(t){var n=this.callbackMap.get(t);r.delete(n)}else r.clear();var o=this.onceEventMap.get(e);if(o)if(t){var i=this.callbackMap.get(t);o.delete(i)}else o.clear()}},{key:"emit",value:function(e,t){var r=this.onEventMap.get(e);if(r){var n,o=wo(r);try{for(o.s();!(n=o.n()).done;)n.value.call(this,t)}catch(e){o.e(e)}finally{o.f()}}var i=this.onceEventMap.get(e);if(i){var a,c=wo(i);try{for(c.s();!(a=c.n()).done;){var u=a.value;u.call(this,t),i.delete(u)}}catch(e){c.e(e)}finally{c.f()}}}}],r&&Ao(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Io=Co;function Ro(e){return Ro="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ro(e)}function No(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==Ro(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!==Ro(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key,"string"),"symbol"===Ro(o)?o:String(o)),n)}var o}var Po=["onLoad","onReady","onShow","onRouteEnd","onHide","onUnload"],ko=["data"],jo=["__maWebviewId__","__route__"],Do=function(){function e(t,r,n){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var i={__maWebviewId__:r,__route__:n};if(jo.forEach((function(e){o.__defineGetter__(e,(function(){return i[e]}))})),t.data=t.data||{},this.data=t.data,"Object"===d(t.data))for(var a in Po.forEach((function(e){o[e]=function(){for(var r=(t[e]||me).bind(this),n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return r.apply(this,o)}})),t)this.setPageObjByKey(a,t);else K.normalError({key:"thirdPageError",message:"Page data must Object",error:new pe("thirdPageError: Page data must Object")});this.__eventChannel__=new Io}var t,r;return t=e,r=[{key:"setPageObjByKey",value:function(e,t){var r,n=this;r=e,-1!==jo.indexOf(r)||Oo.isSysAttr(e,[].concat(Po,ko))||("Function"===d(t[e])?this[e]=function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t[e].apply(n,o)}:this[e]=t[e])}},{key:"setData",value:function(e){try{if("Object"===d(e))for(var t in e){var r=dt(this.data,t),n=r.obj,o=r.key;n&&(n[o]=Oo.deepCopy(e[t]))}this.__ready?Wn.viewLogicSyncBatch(Et.SYNC_EVENT_NAME.FLOW_SET_DATA,e,this.__maWebviewId__,this.__maWebviewId__,this.__route__):(this.__beforeCreatedData=this.__beforeCreatedData||[],this.__beforeCreatedData.push(e))}catch(e){K.error({apiName:"page setData",key:"thirdPageError",error:fe.formatReportError(e,pe)})}}},{key:"runSetData",value:function(){var e={};this.__beforeCreatedData.forEach((function(t){__mergeData__(e,t)})),Wn.viewLogicSyncBatch(Et.SYNC_EVENT_NAME.FLOW_SET_DATA,e,this.__maWebviewId__,this.__maWebviewId__,this.__route__)}},{key:"getOpenerEventChannel",value:function(){return this.__eventChannel__}},{key:"selectComponent",value:function(e){var t;return e.startsWith("#")?(t=e.slice(1),Oo.queryIdObject(t,this.__maWebviewId__)):e.startsWith(".")?(t=e.slice(1),Oo.queryClassObjectList(t,this.__maWebviewId__)):null}},{key:"removeSkeleton",value:function(e){__maConfig__&&__maConfig__.skeleton&&__maConfig__.skeleton.page&&__maConfig__.skeleton.page[this.__route__]&&this.__maWebviewId__&&Oo.notifyViewLayer(Et.REMOVE_SKELETON,[this.__maWebviewId__],e)}}],r&&No(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Lo=Do,Mo=JSON.parse('{"confirm":"Confirm","cancel":"Cancel"}'),Bo=JSON.parse('{"year":"年","month":"月","day":"日","confirm":"确定","cancel":"取消"}'),Go=JSON.parse('{"confirm":"እሽ","cancel":"ለመሰረዝ"}'),Vo=JSON.parse('{"confirm":"အိုကေ","cancel":"ပယ်ဖျက်မည်"}'),Fo=JSON.parse('{"confirm":"Tole","cancel":"Haqaa"}'),Uo=JSON.parse('{"confirm":"እወ","cancel":"ሰርዝ"}'),Ho=JSON.parse('{"confirm":"ٹھیک ہے","cancel":"منسوخ کریں"}'),xo={enUS:Mo,zhCN:Bo,am:Go,myMM:Vo,om:Fo,ti:Uo,ur:Ho},Wo=JSON.parse('{"zh-Hans":"zhCN","zh-rCN":"zhCN","zh-CN":"zhCN","en":"enUS","en-US":"enUS","am":"am","my-MM":"myMM","my-rMM":"myMM","om":"om","ti":"ti","ur":"ur"}'),Yo="en-US",Ko=[],zo=Yo,Jo=Mo,qo=function(){var e;Jo=null!==(e=xo[Wo[zo]])&&void 0!==e?e:Mo,window.i18nEnums=Jo},$o={defaultLocale:Yo,setLocale:function(e){if(zo!==e&&(zo=e,qo(),Ko.forEach((function(t){"function"==typeof t&&t(e)})),window.__webviewId__)){Oo.notifyViewLayer(t.LOCALE_CHANGE,[window.__webviewId__],{locale:e});var r=Object.keys(pageStackObjs)[0],n=pageStackObjs[r];if(pageStackObjs&&n){var o="".concat(n.route,".html");bridge.invokeMethod(Oo.isTabbar(n.route)?t.SWITCHTAB:t.RELAUNCH,{url:o})}}},mergeLocaleMessage:function(e,r){__maI18nResource__[e]=__maI18nResource__[e]||{},Object.keys(__maI18nResource__[e]).length>0?Object.assign(__maI18nResource__[e],r):__maI18nResource__[e]=r,window.__webviewId__&&Oo.notifyViewLayer(t.LOCALE_MESSAGE_CHANGE,[window.__webviewId__],{i18nSource:__maI18nResource__}),window.__webviewId__&&Wn.viewLogicSyncBatch(t.SYNC_EVENT_NAME.FLOW_SET_DATA,{},window.__webviewId__,window.__webviewId__,window.currUrl)},getLocale:function(){return zo},getFallbackLocale:function(){return"en-US"},t:function(e,t){var r;return(r=v(__maI18nResource__[zo])?__maI18nResource__["en-US"][e]:__maI18nResource__[zo][e])?(r=function(e,t){var r=e,n=f.selectCheck(r);if(!n&&t){for(var o=0,i=Object.keys(t);o<i.length;o++){var a=i[o],c=t[a];if("string"==typeof c&&(r=r.replace("{".concat(a,"}"),c)),"object"===s(c)){var u=f.getNestParams(a,c),l=u.str,d=u.value;r=r.replace("{".concat(l,"}"),d)}}return r}return n&&(r=f.handleSelect(r,t)),r}(r,t),r):(K.normalError({key:"i18 error",message:"The field ".concat(e," is not defined in the internationalization file."),error:new pe("i18Error: The field ".concat(e," is not defined in the internationalization file."))}),e)},onLocaleChange:function(e){return Ko.push(e),{off:function(){var t=Ko.indexOf(e);t>-1&&Ko.splice(t,1)}}}};function Qo(e){return Qo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qo(e)}window.i18nEnums=Jo;var Zo=[],Xo={},ei={},ti={};function ri(e){e.onUnload&&e.onUnload(),function(e){var t=_t(e);if(delete vt[e],t.children)for(var r=0;r<t.children.length;r++)ht(t.children[r])}(e.__maWebviewId__)}function ni(e,t,r){Zo=r.pageStack;var n=vi.getPage(t);n||(n=si(e,t,r));var o=Oo.getTabbarInfo(n.__route__);if(n&&n.onTabItemTap&&n.onTabItemTap({index:o.index,pagePath:n.__route__,text:o.info.text}),Xo.webviewId!==t){for(var i in ti){var a=ti[i];Oo.isTabbar(a.route)?i!==t&&i===Xo.webviewId&&a.page.onHide():(ri(a.page),delete ti[i])}n&&(li(vi,t,e),ui(n,t,e),n.onShow(),Xo={page:ti[t].page,webviewId:t,route:ti[t].route})}}function oi(e,t,r){Zo=r.pageStack,ti[Xo.webviewId].page.onHide(),si(e,t,r)}function ii(e,t,r){var n=r.pageStack;Zo.forEach((function(e){var t=e.webviewId,r=!1;n.forEach((function(e){e.webviewId===t&&(r=!0)}));var o=ti[t];r||(ri(o.page),delete ti[t])})),Zo=r.pageStack;var o=vi.getPage(t);o&&(o.onShow(),Xo={page:ti[t].page,webviewId:t,route:ti[t].route})}function ai(e,t,r){Zo=r.pageStack,ri(ti[Xo.webviewId].page),delete ti[Xo.webviewId]}function ci(e,t,r){Zo.forEach((function(e){var t=e.webviewId;ri(ti[t].page),delete ti[t]})),Zo=r.pageStack}function ui(e,r,n){var o={onPageScroll:!!e.onPageScroll,onReachBottom:!!e.onReachBottom};o.webviewId=r;var i={data:{data:e.data,ext:o,options:{firstRender:!0}}};$o.getLocale()!==$o.defaultLocale&&Oo.notifyViewLayer(t.LOCALE_CHANGE,[r],{locale:$o.getLocale()}),Oo.notifyViewLayer(t.LOCALE_MESSAGE_CHANGE,[r],{i18nSource:window.__maI18nResource__||{}}),Oo.notifyViewLayer(t.PAGE_DATA_CHANGE,[r],i)}function li(e,r,n){var o={};Vn(o,n),Fn(r,o),bo.registerComponent(o),Un(t.SYNC_EVENT_NAME.FLOW_INITIAL_CREATION,e.data,r,r,n)}function si(e,t,r){var n=e;if(!n)return null;var o={};n=n.replace(/\.htm[^\.]*$/,""),Object.prototype.hasOwnProperty.call(ei,n)&&(o=Oo.deepCopy(ei[n]));var i=new Lo(o,t,n);return ti[t]={page:i,route:n},i}window.pageStackObjs=ti;var fi,di,vi={initPage:function(e){ei[__maRoute]=e},initI18nPage:function(e){ei[__maRoute]=e,Object.assign(e,$o)},getPage:function(e){var t=ti[e];return t?t.page:void 0},getPageStackObjs:function(){return ti},getCurrentPages:function(){var e=[];return Zo.forEach((function(t){var r=ti[t.webviewId];r?(r.page.route=r.route,e.push(r.page)):A.error("this webview id ".concat(t.webviewId," is error"))})),e},skipPage:function(e,t,r,n){"appLaunch"===n?(Oo.skeletonTimeoutRegister(e,t),Zo=r.pageStack,function(e,t,r){var n;if((n=ti[t]?ti[t].page:si(e,t)).__timing={},li(n,t,e),ui(n,t),Xo={page:n,webviewId:t,route:e},window.currUrl=e,"object"===Qo(r.query))for(var o in r.query)o=decodeURIComponent(o),r.query[o]=decodeURIComponent(r.query[o]);n.onLoad(r.query),n.__timing.loadStart=Date.now(),K.performance({type:"page",eventName:"onLoad",path:e,timestamp:Date.now()}),n.onShow(r),K.performance({type:"page",eventName:"onShow",path:e,timestamp:Date.now()})}(e,t,r)):{switchTab:ni,navigateTo:oi,navigateBack:ii,redirectTo:ai,reLaunch:ci}[n].call(void 0,e,t,r),r.pageStack&&r.pageStack.length&&(window.currUrl=r.pageStack[r.pageStack.length-1].path)},onPullDownRefresh:function(e){var t=ti[e]&&ti[e].page;t&&Object.prototype.hasOwnProperty.call(t,"onPullDownRefresh")&&Oo.safeInvoke.call(t,"onPullDownRefresh")}},pi=vi,_i=void 0,mi=[],hi={},bi={},yi={onAppRoute:function(e){mi.push(e)},onWebviewEvent:function(e){fi=e},onPullDownRefresh:function(e){di=e},onAppShow:function(e){hi.app=e},onAppHide:function(e){bi.app=e}};st.on(ft.ON_APP_ROUTE,(function(e,t){var r=e;r||(r={}),r.path=r.path&&r.path.replace(/\.\w+(\?|$)/,"$1"),r.webviewId=r.webviewId||t,mi.forEach((function(e){e(r)}))})),st.subscribe(ft.PAGE_EVENT,(function(e,t){var r=e;r||(r={}),fi({data:r.data,eventName:r.eventName,webviewId:t})})),st.subscribe(ft.SPECIAL_PAGE_EVENT,(function(e,t){var r=e;r||(r={});var n=r,o=n.data,i=n.eventName,a=n.ext;if(o&&"input"===o.type){if(a.modelValueName){var c=o.detail.value,u=o.__cid__;!function(e,t,r,n){if(r&&r!==n){var o=bo.getComponentObj(r);o.data[t]=e;var i={};i[t]=e,o.setData(i)}else{var a=pi.getPageStackObjs()[n].page;a.data[t]=e;var c={};c[t]=e,a.setData(c)}}(c,a.modelValueName,u,t)}if("Function"===d(fi)&&i){var l=fi({data:o,eventName:i,webviewId:t}),s=o.detail.value;if(a&&a.setInputValue&&void 0!==l){var f={webViewId:window.__webviewId__};f.inputId=o.detail.inputId,f.hasReturn=!0,y(l)?(s!==l.value&&(f.value="".concat(l.value)),isNaN(parseInt(l.cursor))||(f.cursor=parseInt(l.cursor)),logicLayer.notifyNative(ft.SPECIAL_PAGE_DATA_CHANGE,f)):s!==l&&(f.value="".concat(l),f.cursor=-1,logicLayer.notifyNative(ft.SPECIAL_PAGE_DATA_CHANGE,f))}}}})),st.on(ft.ON_APP_SHOW,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};hi.app&&hi.app(e),j.emit(ft.ON_APP_SHOW,e)})),st.on(ft.ON_APP_HIDE,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};bi.app&&bi.app(e),j.emit(ft.ON_APP_HIDE,e)})),st.on(ft.ON_PULL_DOWN_REFRESH,(function(e,t){var r=e;r||(r={}),di(r,t)})),st.on(ft.ON_CHECK_FOR_UPDATE,(function(e){CheckForUpdateHandles.forEach((function(t){t.call(_i,e)}))})),st.on(ft.ON_UPDATE_FAILED,(function(e){UpdateFailedHandles.forEach((function(t){t.call(_i,e)}))})),st.on(ft.ON_UPDATE_READY,(function(e){UpdateReadyHandles.forEach((function(t){t.call(_i,e)}))})),st.on(ft.ON_NETWORK_STATUS_CHANGE,(function(e){j.emit(ft.NETWORK_STATUS_CHANGE,e)})),st.on(ft.ON_GYROSCOPE_CHANGE,(function(e){j.emit(ft.GYROSCOPE_CHANGE,e)})),st.on(ft.ON_MEMORY_WARNING,(function(e){j.emit(ft.MEMORY_WARNING,e)})),st.on(ft.ON_KEYBOARD_HEIGHT_CHANGE,(function(e){j.emit(ft.ON_KEYBOARD_HEIGHT_CHANGE,e)})),st.on(ft.ON_SOCKET_OPEN,(function(e){j.emit(ft.ON_SOCKET_OPEN,e)})),st.on(ft.ON_SOCKET_CLOSE,(function(e){j.emit(ft.ON_SOCKET_CLOSE,e)})),st.on(ft.ON_SOCKET_ERROR,(function(e){j.emit(ft.ON_SOCKET_ERROR,e)})),st.on(ft.ON_SOCKET_MESSAGE,(function(e){j.emit(ft.ON_SOCKET_MESSAGE,e)})),st.on(ft.ON_RECORD_START,(function(e){j.emit(ft.ON_RECORD_START,e)})),st.on(ft.ON_RECORD_PAUSE,(function(e){j.emit(ft.ON_RECORD_PAUSE,e)})),st.on(ft.ON_RECORD_RESUME,(function(e){j.emit(ft.ON_RECORD_RESUME,e)})),st.on(ft.ON_RECORD_STOP,(function(e){j.emit(ft.ON_RECORD_STOP,e)})),st.on(ft.ON_RECORD_ERROR,(function(e){j.emit(ft.ON_RECORD_ERROR,e)})),st.on(ft.ON_BT_DEVICE_FOUND,(function(e){j.emit(ft.ON_BT_DEVICE_FOUND,e)}));var Ei=yi,gi=r(187),Oi={canIUse:[],getSystemInfo:[{success:[{id:[{类型:"string"},{说明:"设备唯一 id"}]},{brand:[{类型:"string"},{说明:"设备品牌"}]},{model:[{类型:"string"},{说明:"设备型号。新机型刚推出一段时间会显示unknown,会尽快进行适配。"}]},{pixelRatio:[{类型:"number"},{说明:"设备像素比"}]},{screenWidth:[{类型:"number"},{说明:"屏幕宽度,单位px"}]},{screenHeight:[{类型:"number"},{说明:"屏幕高度,单位px"}]},{windowWidth:[{类型:"number"},{说明:"可使用窗口宽度,单位px"}]},{windowHeight:[{类型:"number"},{说明:"可使用窗口高度,单位px"}]},{statusBarHeight:[{类型:"number"},{说明:"状态栏的高度,单位px"}]},{language:[{类型:"string"},{说明:"系统语言"}]},{system:[{类型:"string"},{说明:"操作系统及版本"}]}]}],getSystemInfoSync:[{return:[{id:[{类型:"string"},{说明:"设备唯一 id"}]},{brand:[{类型:"string"},{说明:"设备品牌"}]},{model:[{类型:"string\t"},{说明:"设备型号。新机型刚推出一段时间会显示unknown,会尽快进行适配。"}]},{pixelRatio:[{类型:"number"},{说明:"设备像素比"}]},{screenWidth:[{类型:"number"},{说明:"屏幕宽度,单位px"}]},{screenHeight:[{类型:"number"},{说明:"屏幕高度,单位px"}]},{windowWidth:[{类型:"number"},{说明:"可使用窗口宽度,单位px"}]},{windowHeight:[{类型:"number"},{说明:"可使用窗口高度,单位px"}]},{statusBarHeight:[{类型:"number"},{说明:"状态栏的高度,单位px"}]},{language:[{类型:"string"},{说明:"系统语言"}]},{system:[{类型:"string"},{说明:"操作系统及版本"}]}]}],getSystemSetting:[{return:[{bluetoothEnabled:[{类型:"boolean"},{说明:"蓝牙的系统开关"}]},{locationEnabled:[{类型:"boolean"},{说明:"地理位置的系统开关"}]},{wifiEnabled:[{类型:"boolean"},{说明:"Wi-Fi 的系统开关"}]},{deviceOrientation:[{类型:"string"},{说明:"合法值为portrait或者landscape,表示设备方向(注意:IOS客户端横屏游戏获取deviceOrientation可能不准,建议以屏幕宽高为准)"}]}]}],getStatusBarHeight:[{success:[{statusBarHeight:[{类型:"string"},{说明:"状态栏高度"}]}]}],getUpdateManager:[{callback:[{hasUpdate:[{类型:"boolean"},{说明:"是否有新版本"}]}]}],onAppShow:[{callback:[]}],setCustomEvent:[{object:[{eventName:[{类型:"string"},{默认值:" "},{必填:"是"},{说明:"小程序自定义事件的事件名称"}],callback:[{类型:"function"},{默认值:{}},{必填:"是"},{说明:"小程序自定义事件的回调函数,同一个事件只能绑定一个回调"}]}]}],removeCustomEvent:[{object:[{eventName:[{类型:"string"},{默认值:" "},{必填:"是"},{说明:"小程序自定义事件的事件名称"}]}]}],onAppHide:[{callback:[]}],onError:[{callback:[]}],offAppShow:[{callback:[]}],offAppHide:[{callback:[]}],offError:[{callback:[]}],navigateTo:[{object:[{url:[{类型:"string"},{默认值:" "},{必填:"是"},{说明:"需要跳转的应用内非 tabBar 的页面的路径 (代码包路径), 路径后可以带参数。"}]}]}],redirectTo:[{object:[{url:[{类型:"string"},{默认值:" "},{必填:"是"},{说明:"需要跳转的应用内非 tabBar 的页面的路径 (代码包路径), 路径后可以带参数。"}]}]}],reLaunch:[{object:[{url:[{类型:"string"},{默认值:" "},{必填:"是"},{说明:"需要跳转的应用内页面路径 (代码包路径),路径后可以带参数。"}]}]}],switchTab:[{object:[{url:[{类型:"string"},{默认值:" "},{必填:"是"},{说明:"需要跳转的 tabBar 页面的路径 (代码包路径)(需在 app.json 的 tabBar 字段定义的页面),路径后不能带参数"}]}]}],navigateBack:[{object:[{delta:[{类型:"number"},{默认值:"1"},{必填:"否"},{说明:"返回的页面数,如果 delta 大于现有页面数,则返回到首页"}]}]}],navigateToMiniProgram:[{object:[{appId:[{类型:"string"},{默认值:" "},{必填:"是"},{说明:"要打开的小程序 appId"}]},{capsuleShow:[{类型:"boolean"},{默认值:"true"},{必填:"否"},{说明:"隐藏胶囊"}]},{path:[{类型:"string"},{默认值:" "},{必填:"否"},{说明:"打开的页面路径,如果为空则打开首页。"}]}]}],exitMiniProgram:[{object:[{clearCache:[{类型:"boolean"},{默认值:"false"},{必填:"否"},{说明:"是否清除缓存"}]}]}],gotoBrowser:[{object:[{openUrl:[{类型:"string"},{默认值:" "},{必填:"是"},{说明:"跳转Url"}]}]}],showToast:[{object:[{title:[{类型:"string"},{默认值:" "},{必填:"是"},{说明:"提示的内容"}]},{icon:[{validValue:["success","error","loading","none"]},{类型:"string"},{默认值:"success"},{必填:"否"},{说明:"图标"}]},{duration:[{类型:"number"},{默认值:"1500"},{必填:"否"},{说明:"提示的延迟时间"}]},{image:[{类型:"string"},{默认值:" "},{必填:"否"},{说明:"自定义图标的本地路径,image 的优先级高于 icon"}]},{mask:[{类型:"boolean"},{默认值:"false"},{必填:"否"},{说明:"是否显示透明蒙层,防止触摸穿透"}]}]}],showLoading:[{object:[{title:[{类型:"string"},{默认值:" "},{必填:"是"},{说明:"提示的内容"}]},{mask:[{类型:"boolean"},{默认值:"false"},{必填:"否"},{说明:"是否显示透明蒙层,防止触摸穿透"}]}]}],hideToast:[{object:[]}],hideLoading:[{object:[]}],showModal:[{object:[{title:[{类型:"string"},{默认值:" "},{必填:"否"},{说明:"提示的标题"}]},{content:[{类型:"string"},{默认值:" "},{必填:"否"},{说明:"提示的内容"}]},{showCancel:[{类型:"boolean"},{默认值:"true"},{必填:"否"},{说明:"是否显示取消按钮"}]},{cancelText:[{类型:"string"},{默认值:"取消"},{必填:"否"},{说明:"取消按钮的文字,最多 4 个字符"}]},{cancelColor:[{类型:"string"},{默认值:"#000000"},{必填:"否"},{说明:"取消按钮的文字颜色"}]},{confirmText:[{类型:"string"},{默认值:"确定"},{必填:"否"},{说明:"确认按钮的文字,最多 4 个字符"}]},{confirmColor:[{类型:"string"},{默认值:"#576B95"},{必填:"否"},{说明:"确认按钮的文字颜色"}]}]},{success:[{content:[{类型:"string"},{说明:"editable 为 true 时,用户输入的文本"}]},{confirm:[{类型:"boolean"},{说明:"为 true 时,表示用户点击了确定按钮"}]},{cancel:[{类型:"boolean"},{说明:"为 true 时,表示用户点击了取消"}]}]}],showActionSheet:[{object:[{alertText:[{类型:"string"},{默认值:" "},{必填:"否"}]},{itemList:[{类型:"Array"},{默认值:" "},{必填:"否"}]},{itemColor:[{类型:"string"},{默认值:"#000000"},{必填:"否"}]}]},{success:[{tapIndex:[{类型:"number"},{说明:"用户点击的按钮序号,从上到下的顺序,从0开始"}]}]}],setNavigationBarTitle:[{object:[{title:[{类型:"string"},{默认值:" "},{必填:"是"},{说明:"页面标题"}]}]}],setNavigationBarColor:[{object:[{frontColor:[{类型:"string"},{默认值:" "},{必填:"是"},{说明:"前景颜色值,包括按钮、标题、状态栏的颜色,仅支持 #ffffff 和 #000000"}]},{backgroundColor:[{类型:"string"},{默认值:" "},{必填:"是"},{说明:"背景颜色值,有效值为十六进制颜色"}]},{animation:[{validValue:["duration","timingFunc"]},{类型:"Object"},{默认值:" "},{必填:"否"},{说明:"动画效果"}]}]}],setBackgroundTextStyle:[{object:[{textStyle:[{validValue:["dark","light"]},{类型:"string"},{默认值:" "},{必填:"是"},{说明:"下拉背景字体、loading 图的样式。"}]}]}],setBackgroundColor:[{object:[{backgroundColor:[{类型:"string"},{默认值:" "},{必填:"否"},{说明:"窗口的背景色,必须为十六进制颜色值"}]},{backgroundColorTop:[{类型:"string"},{默认值:" "},{必填:"否"},{说明:"顶部窗口的背景色,必须为十六进制颜色值,仅 iOS 支持"}]},{backgroundColorBottom:[{类型:"string"},{默认值:" "},{必填:"否"},{说明:"底部窗口的背景色,必须为十六进制颜色值,仅 iOS 支持"}]}]}],capsuleStyle:[{object:[{style:[{类型:"number"},{默认值:""},{必填:"是"},{说明:"样式"}]}]}],setSwipeBack:[{object:[{enableSwipeBack:[{类型:"boolean"},{默认值:""},{必填:"是"},{说明:"是否禁止滑动"}]}]}],setCapsuleShow:[{object:[{isShow:[{类型:"boolean"},{默认值:"true"},{必填:"否"},{说明:"是否显示胶囊false不显示true显示"}]}]}],showTabBar:[{object:[{animation:[{类型:"boolean"},{默认值:""},{必填:"否"}]}]}],hideTabBar:[{object:[{animation:[{类型:"boolean"},{默认值:""},{必填:"否"}]}]}],showTabBarRedDot:[{object:[{index:[{类型:"number"},{默认值:""},{必填:"是"}]}]}],hideTabBarRedDot:[{object:[{index:[{类型:"number"},{默认值:""},{必填:"是"}]}]}],setTabBarStyle:[{object:[{color:[{类型:"string"},{默认值:""},{必填:"否"}]},{selectedColor:[{类型:"string"},{默认值:""},{必填:"否"}]},{backgroundColor:[{类型:"string"},{默认值:""},{必填:"否"}]},{borderStyle:[{类型:"string"},{默认值:""},{必填:"否"}]}]}],setTabBarItem:[{object:[{index:[{类型:"number"},{默认值:""},{必填:"是"}]},{text:[{类型:"string"},{默认值:""},{必填:"否"}]},{iconPath:[{类型:"string"},{默认值:""},{必填:"否"}]},{selectedIconPath:[{类型:"string"},{默认值:""},{必填:"否"}]}]}],setTabBarBadge:[{object:[{index:[{类型:"number"},{默认值:""},{必填:"是"},{说明:"tabBar 的哪一项,从左边算起,从0开始"}]},{text:[{类型:"string"},{默认值:""},{必填:"否"},{说明:"显示的文本,超过 4 个字符则显示成..."}]}]}],removeTabBarBadge:[{object:[{index:[{类型:"number"},{默认值:""},{必填:"是"},{说明:"tabBar 的哪一项,从左边算起,从0开始"}]}]}],setClipboardData:[{object:[{data:[{类型:"string"},{必填:"是"},{说明:"剪贴板的内容"}]}]}],getClipboardData:[{success:[{data:[{类型:"string"},{说明:"剪贴板的内容"}]}]}],startPullDownRefresh:[],stopPullDownRefresh:[],pageScrollTo:[{object:[{scrollTop:[{类型:"number"},{默认值:"0"},{必填:"否"},{说明:"滚动到页面的目标位置,单位 px"}]},{duration:[{类型:"number"},{默认值:"300"},{必填:"否"},{说明:"滚动动画的时长,单位 ms,若设为0时,会自动取300"}]}]}],nextTick:[{callback:[]}],getMenuButtonBoundingClientRect:[{success:[{width:[{类型:"number"}]},{height:[{类型:"number"}]},{top:[{类型:"number"}]},{right:[{类型:"number"}]},{bottom:[{类型:"number"}]},{left:[{类型:"number"}]}]}],request:[{object:[{url:[{类型:"string"},{默认值:" "},{必填:"是"},{说明:"开发者服务器接口地址"}]},{data:[{类型:"string/object/ArrayBuffer"},{默认值:" "},{必填:"否"},{说明:"请求的参数"}]},{header:[{类型:"Object"},{默认值:" "},{必填:"否"},{说明:"设置请求的 header,header 中不能设置 Referer。content-type 默认为 application/json"}]},{method:[{validValue:["GET","POST"]},{类型:"string"},{默认值:"GET"},{必填:"否"},{说明:"HTTP 请求方法"}]},{dataType:[{validValue:["json"]},{类型:"string"},{默认值:"json"},{必填:"否"},{说明:"返回的数据格式"}]}]},{success:[{data:[{类型:"string/Object/Arraybuffer"},{说明:"开发者服务器返回的数据"}]},{statusCode:[{类型:"number"},{说明:"开发者服务器返回的 HTTP 状态码"}]}]},{preload:[{data:[{类型:"string/Object/Arraybuffer"},{说明:"开发者服务器返回的数据"}]},{statusCode:[{类型:"number"},{说明:"开发者服务器返回的 HTTP 状态码"}]}]}],downloadFile:[{object:[{url:[{类型:"string"},{默认值:" "},{必填:"是"}]},{header:[{类型:"object"},{默认值:" "},{必填:"否"}]},{timeout:[{类型:"number"},{默认值:" "},{必填:"否"}]}]},{success:[{tempFilePath:[{类型:"string"}]},{statusCode:[{类型:"number"}]}]}],uploadFile:[{object:[{url:[{类型:"string"},{默认值:" "},{必填:"是"}]},{filePath:[{类型:"string"},{默认值:" "},{必填:"是"}]},{files:[{类型:"Array"},{默认值:" "},{必填:"是"}]},{name:[{类型:"string"},{默认值:" "},{必填:"是"}]},{header:[{类型:"object"},{默认值:" "},{必填:"否"}]},{formData:[{类型:"object"},{默认值:" "},{必填:"否"}]},{timeout:[{类型:"number"},{默认值:" "},{必填:"否"}]}]},{success:[{data:[{类型:"string"}]},{statusCode:[{类型:"number"}]}]}],connectSocket:[{object:[{url:[{类型:"string"},{默认值:" "},{必填:"是"},{说明:"开发者服务器 wss/ws 接口地址"}]},{header:[{类型:"object"},{默认值:" "},{必填:"否"},{说明:"HTTP Header,Header 中不能设置 Referer"}]},{protocols:[{类型:"Array"},{默认值:" "},{必填:"否"},{说明:"子协议数组"}]},{tcpNoDelay:[{类型:"boolean"},{默认值:"false"},{必填:"否"},{说明:"建立 TCP 连接的时候的 TCP_NODELAY 设置"}]},{perMessageDeflate:[{类型:"boolean"},{默认值:"false"},{必填:"否"},{说明:"是否开启压缩扩展"}]},{timeout:[{类型:"number"},{默认值:" "},{必填:"否"},{说明:"超时时间,单位为毫秒"}]}]}],sendSocketMessage:[{object:[{data:[{类型:"string"},{默认值:" "},{必填:"是"},{说明:"需要发送的内容"}]}]}],closeSocket:[{object:[{code:[{类型:"number"},{默认值:"1000"},{必填:"否"},{说明:"一个数字值表示关闭连接的状态号,表示连接被关闭的原因。"}]},{reason:[{类型:"string"},{默认值:" "},{必填:"否"},{说明:"一个可读的字符串,表示连接被关闭的原因。这个字符串必须是不长于 123 字节的 UTF-8 文本(不是字符)。"}]}]}],onSocketOpen:[{success:[{header:[{类型:"string"}]}]}],onSocketMessage:[{success:[{data:[{类型:"string"}]}]}],onSocketError:[{success:[{errMsg:[{类型:"string"}]}]}],onSocketClose:[{success:[{code:[{类型:"number"}]},{reason:[{类型:"string"}]}]}],setStorage:[{object:[{key:[{类型:"string"},{默认值:" "},{必填:"是"},{说明:"超时时间,单位为毫秒"}]},{encrypt:[{类型:"boolean"},{默认值:"false"},{必填:"否"},{说明:"是否开启加密存储"}]},{data:[{类型:"any"},{默认值:" "},{必填:"是"},{说明:"需要存储的内容。只支持原生类型、Date、及能够通过 JSON.stringify 序列化的对象。"}]}]}],setStorageSync:[],getStorage:[{object:[{key:[{类型:"string"},{默认值:" "},{必填:"是"},{说明:"本地缓存中指定的 key"}]},{encrypt:[{类型:"boolean"},{默认值:"false"},{必填:"否"},{说明:"是否开启加密存储"}]}]}],getStorageSync:[],getStorageInfo:[{success:[{msg:[{类型:"string"},{说明:"getStorageInfo:ok"}]},{keys:[{类型:"Array"},{说明:"当前 storage 中所有的 key"}]},{currentSize:[{类型:"number"},{说明:"当前占用的空间大小, 单位 KB"}]},{limitSize:[{类型:"number"},{说明:"限制的空间大小,单位 KB"}]}]}],removeStorage:[{object:[{key:[{类型:"string"},{默认值:" "},{必填:"是"},{说明:"本地缓存中指定的 key"}]}]}],clearStorage:[],createVideoContext:[],createAudioContext:[],createCameraContext:[],createMapContext:[],getFileSystemManager:[],getRecorderManager:[],saveImageToPhotosAlbum:[{object:[{filePath:[{类型:"string"},{默认值:""},{必填:"是"}]}]}],chooseVideo:[{object:[{sourceType:[{类型:"Array.<string>"},{默认值:["album","camera"]},{必填:"否"},{说明:"视频选择的来源"}]},{camera:[{类型:"string"},{默认值:"back"},{必填:"否"},{validValue:["back","front"]},{说明:"默认拉起的摄像头"}]}]},{success:[{tempFilePath:[{类型:"string"},{说明:"选定视频的临时文件路径"}]},{duration:[{类型:"number"},{说明:"选定视频的时间长度(单位为秒,两位小数精度)"}]},{size:[{类型:"number"},{说明:"选定视频的数据量大小"}]},{height:[{类型:"number"},{说明:"选定视频的高度"}]},{width:[{类型:"number"},{说明:"选定视频的宽度"}]}]}],chooseImage:[{object:[{count:[{类型:"number"},{默认值:"9"},{必填:"否"}]},{sizeType:[{validValue:["original","compressed"]}]},{sourceType:[{validValue:["album","camera"]}]}]},{success:[{msg:[{类型:"string"}]},{tempFilePaths:[{类型:"Array"}]},{tempFiles:[{validValue:["path","size"]}]}]}],previewImage:[{object:[{urls:[{类型:"Array"},{默认值:""},{必填:"是"}]},{current:[{类型:"string"}]}]}],compressImage:[{object:[{src:[{类型:"string"},{默认值:""},{必填:"是"}]},{quality:[{类型:"number"}]}]},{success:[{tempFilePath:[{类型:"string"}]},{msg:[{类型:"string"}]}]}],getImageInfo:[{object:[{src:[{类型:"string"},{默认值:""},{必填:"是"}]}]},{success:[{width:[{类型:"number"}]},{height:[{类型:"number"}]},{path:[{类型:"string"}]},{orientation:[{validValue:["up","up-mirrored","down","down-mirrored","left","left-mirrored","right","right-mirrored"]},{类型:"string"}]},{type:[{类型:"string"}]}]}],getLocation:[{object:[{useFetchData:[{类型:"boolean"},{默认值:"false"},{必填:"否"},{说明:"是否使用预取位置数据"}]}]},{success:[{latitude:[{类型:"number"},{说明:"纬度,范围为 -90~90,负数表示南纬"}]},{longitude:[{类型:"number"},{说明:"经度,范围为 -180~180,负数表示西经"}]},{speed:[{类型:"number"},{说明:"速度,单位 m/s"}]},{accuracy:[{类型:"number"},{说明:"位置的精确度"}]},{altitude:[{类型:"number"},{说明:"高度,单位 m"}]},{verticalAccuracy:[{类型:"number"},{说明:"垂直精度,单位 m(Android 无法获取,返回 0)\t"}]},{horizontalAccuracy:[{类型:"number"},{说明:"水平精度,单位 m"}]}]}],saveFile:[{object:[{tempFilePath:[{类型:"string"}]}]},{success:[{msg:[{类型:"string"}]},{"savedFilePath\t":[{类型:"string"}]}]}],openDocument:[{object:[{filePath:[{类型:"string"}]},{fileType:[{validValue:["doc","docx","xls","xlsx","ppt","pptx","pdf"]},{类型:"string"}]}]}],getFileInfo:[{object:[{filePath:[{类型:"string"}]},{digestAlgorithm:[{validValue:["md5","sha1","sha256"]},{类型:"string"}]}]},{success:[{msg:[{类型:"string"}]},{size:[{类型:"number"}]},{digest:[{类型:"string"}]}]}],removeSavedFile:[{object:[{filePath:[{类型:"string"}]}]}],getSavedFileInfo:[{object:[{filePath:[{类型:"string"}]}]},{success:[{msg:[{类型:"string"}]},{size:[{类型:"number"}]},{createTime:[{类型:"number"}]}]}],getSavedFileList:[{success:[{msg:[{类型:"string"}]},{fileList:[{类型:"Array"}]}]}],getBatteryInfo:[{success:[{level:[{类型:"number"}]},{isCharging:[{类型:"boolean"}]}]}],onNetworkStatusChange:[{success:[{networkType:[{类型:"string"}]},{isConnected:[{类型:"boolean"}]}]}],offNetworkStatusChange:[],getNetworkType:[{success:[{networkType:[{类型:"string"}]},{isConnectVPN:[{类型:"boolean"}]}]}],setScreenBrightness:[{object:[{value:[{类型:"number"}]}]}],getScreenBrightness:[{success:[{value:[{类型:"number"}]}]}],setKeepScreenOn:[{object:[{keepScreenOn:[{类型:"boolean"}]}]}],makePhoneCall:[{object:[{phoneNumber:[{类型:"string"}]}]}],scanCode:[{object:[{onlyFromCamera:[{类型:"boolean"}]},{scanType:[{validValue:["barCode","qrCode","datamatrix","pdf417"]},{类型:"Array"}]}]},{success:[{result:[{类型:"string"}]},{scanType:[{类型:"string"}]}]}],vibrateLong:[],vibrateShort:[{object:[{type:[{validValue:["heavy","medium","light"]},{类型:"string"}]}]}],chooseContact:[{success:[{phoneNumber:[{类型:"string"}]},{displayName:[{类型:"string"}]},{phoneNumberList:[{类型:"string"}]}]}],onMemoryWarning:[],offMemoryWarning:[],startGyroscope:[{object:[{interval:[{validValue:["game","ui","normal"]},{类型:"string"}]}]}],stopGyroscope:[],onGyroscopeChange:[],offGyroscopeChange:[],onKeyboardHeightChange:[],offKeyboardHeightChange:[],hideKeyboard:[],getSetting:[{success:[{authSetting:[{类型:"AuthSetting"},{说明:"用户授权结果"}]}]}],openSetting:[{success:[{authSetting:[{类型:"AuthSetting"},{说明:"用户授权结果"}]}]}],authorize:[{object:[{scope:[{类型:"string"},{默认值:" "},{必填:"否"},{说明:"需要获取权限的 scope,详见 scope 列表"}]}]}],deauthorize:[{success:[{status:[{类型:"string"},{说明:"取消当前小程序全部授权信息结果"}]}]}],cancelAuthorize:[{object:[{scopes:[{类型:"Array.<string>"},{必填:"是"},{说明:"取消当前小程序授权范围"}]}]},{success:[{status:[{类型:"string"},{说明:"取消当前小程序部分授权信息结果"}]}]}],tradePay:[{object:[{tradeNO:[{类型:"string"},{必填:"是"},{说明:"订单 ID"}],orderStr:[{类型:"string"},{必填:"是"},{说明:"订单详情"}],sign:[{类型:"string"},{必填:"是"},{说明:"订单详情签名"}],extendParam:[{类型:"string"},{默认值:" "},{必填:"否"},{说明:"预留扩展参数"}]}]},{success:[{resultCode:[{类型:"string"},{说明:"支付结果码"}],tradeNO:[{类型:"string"},{说明:"订单 ID"}],extendInfo:[{类型:"string"},{说明:"预留扩展参数"}]}]},{fail:[{resultCode:[{类型:"string"},{说明:"支付结果码"}],extendInfo:[{类型:"string"},{说明:"预留扩展参数"}]}]}],createSelectorQuery:[],DownloadTask:[],loadFontFace:[{object:[{global:[{类型:"boolean"},{默认值:"false"},{必填:"否"},{说明:"是否全局生效"}]},{family:[{类型:"string"},{默认值:" "},{必填:"是"},{说明:"定义的字体名称"}]},{source:[{类型:"string"},{默认值:""},{必填:"是"},{说明:"字体资源的地址。建议格式为 TTF 和 WOFF。"}]},{desc:[{类型:"Object"},{默认值:""},{必填:"否"},{说明:"可选的字体描述符"}]}]},{success:[{status:[{类型:"string"},{说明:"加载字体结果"}]}]}],playVoice:[{object:[{url:[{类型:"string"},{默认值:" "},{必填:"是"},{说明:"需要播放的语音文件的在线链接地址"}]},{filePath:[{类型:"string"},{默认值:" "},{必填:"是"},{说明:"需要播放的语音文件的文件路径 (本地路径)"}]},{duration:[{类型:"number"},{默认值:"60"},{必填:"否"},{说明:"指定播放时长,到达指定的播放时长后会自动停止播放,单位:秒"}]}]}],stopVoice:[],reportEvent:[{object:[{eventId:[{类型:"string"},{必填:"是"},{说明:"监控ID"}],eventData:[{类型:"object"},{必填:"否"},{说明:"多键值对,多个key:value组成的键值对象,sdk将收集这些键值对一起上报至系统"}]}]}],reportPerformance:[{object:[{reportEvent:[{类型:"string"},{必填:"是"},{说明:"性能指标的事件名,包括预置的和自定义的"}]},{reportParams:[{类型:"object"},{必填:"是"},{说明:"开发自定义的性能指标"}]}]}],reportLog:[{object:[{level:[{类型:"string"},{默认值:"info"},{必填:"否"},{说明:"日志级别,有效值:info, debug, error"}]},{log:[{类型:"string/object"},{必填:"是"},{说明:"日志信息"}]}]}],submitReport:[],isOnline:[],getsmallappinfo:[{success:[{appId:[{类型:"string"},{说明:"小程序id"}]},{name:[{类型:"string"},{说明:"小程序名称"}]},{appIcon:[{类型:"string"},{说明:"小程序图标"}]},{color:[{类型:"string"},{说明:"小程序状态栏颜色"}]}]}],getBackgroundFetchData:[{object:[{fetchType:[{类型:"string"},{默认值:""},{必填:"是"},{说明:"预取类型,目前支持pre"}]}]},{success:[{data:[{类型:"Array.<preloadedData>"},{说明:"缓存数据"}]}]}],getLaunchOptionsSync:[{return:[{serviceConfig:[{类型:"Array.<object>"},{说明:"启动小程序的服务配置参数"}]}]}],getAuthCode:[{object:[{scopes:[{类型:"Array.<string>"},{必填:"是"},{说明:"权限列表"}]}]},{success:[{authCode:[{类型:"string"},{说明:"用户登录凭证"}]}]}],getOpenUserInfo:[{success:[{userInfo:[{类型:"UserInfo"},{说明:"用户公开信息对象"}]}]}],openBluetoothAdapter:[],closeBluetoothAdapter:[],startBluetoothDevicesDiscovery:[{object:[{services:[{类型:"Array.<string>"},{必填:"否"},{说明:"要搜索的蓝牙设备主服务的 UUID 列表"}]}]}],stopBluetoothDevicesDiscovery:[],onBluetoothDeviceFound:[],offBluetoothDeviceFound:[],createBLEConnection:[{object:[{deviceId:[{类型:"string"},{必填:"是"},{说明:"蓝牙设备 id"}]},{timeout:[{类型:"number"},{默认值:3e4},{必填:"否"},{说明:"连接超时时间,单位 ms"}]}]}],closeBLEConnection:[{object:[{deviceId:[{类型:"string"},{必填:"是"},{说明:"蓝牙设备 id"}]}]}],getBLEDeviceServices:[{object:[{deviceId:[{类型:"string"},{必填:"是"},{说明:"蓝牙设备 id"}]}]},{success:[{services:[{类型:"Array.<Service>"},{说明:"设备服务列表"}]}]}],getBLEDeviceCharacteristics:[{object:[{deviceId:[{类型:"string"},{必填:"是"},{说明:"蓝牙设备 id"}]},{serviceId:[{类型:"string"},{必填:"是"},{说明:"蓝牙服务 UUID"}]}]},{success:[{characteristics:[{类型:"Array.<Characteristic>"},{说明:"设备特征列表"}]}]}],readBLECharacteristicValue:[{object:[{deviceId:[{类型:"string"},{必填:"是"},{说明:"蓝牙设备 id"}]},{serviceId:[{类型:"string"},{必填:"是"},{说明:"蓝牙特征对应服务的 UUID"}]},{characteristicId:[{类型:"string"},{必填:"是"},{说明:"蓝牙特征的 UUID"}]}]}],writeBLECharacteristicValue:[{object:[{deviceId:[{类型:"string"},{必填:"是"},{说明:"蓝牙设备 id"}]},{serviceId:[{类型:"string"},{必填:"是"},{说明:"蓝牙特征对应服务的 UUID"}]},{characteristicId:[{类型:"string"},{必填:"是"},{说明:"蓝牙特征的 UUID"}]},{value:[{类型:"ArrayBuffer"},{必填:"是"},{说明:"蓝牙设备特征对应的二进制值"}]},{writeType:[{类型:"string"},{默认值:"write(iOS) / writeNoResponse (Android)"},{必填:"否"},{说明:"蓝牙特征值的写模式设置"}]}]}]},Si={"scroll-view":[{"scroll-x":[{类型:"boolean"},{默认值:"false"},{必填:"否"},{说明:"允许横向滚动"}]},{"scroll-y":[{类型:"boolean"},{默认值:"false"},{必填:"否"},{说明:"允许纵向滚动"}]},{"upper-threshold":[{类型:"number/string"},{默认值:"50"},{必填:"否"},{说明:"距顶部/左边多远时,触发 scrolltoupper 事件"}]},{"lower-threshold":[{类型:"number/string"},{默认值:"50"},{必填:"否"},{说明:"距底部/右边多远时,触发 scrolltolower 事件"}]},{"scroll-top":[{类型:"number/string"},{默认值:" "},{必填:"否"},{说明:"设置竖向滚动条位置"}]},{"scroll-left":[{类型:"number/string"},{默认值:" "},{必填:"否"},{说明:"设置横向滚动条位置"}]},{"scroll-into-view":[{类型:"string"},{默认值:" "},{必填:"否"},{说明:"值应为某子元素id(id不能以数字开头)。设置哪个方向可滚动,则在哪个方向滚动到该元素"}]},{"scroll-with-animation":[{类型:"boolean"},{默认值:"false"},{必填:"否"},{说明:"在设置滚动条位置时使用动画过渡"}]},{enhanced:[{类型:"boolean"},{默认值:"false"},{必填:"否"},{说明:"启用 scroll-view 增强特性"}]},{"show-scrollbar":[{类型:"boolean"},{默认值:"false"},{必填:"否"},{说明:"滚动条显隐控制 (同时开启 enhanced 属性后生效"}]},{bindscrolltoupper:[{类型:"eventhandle"},{默认值:" "},{必填:"否"},{说明:"滚动到顶部/左边时触发"}]},{bindscrolltolower:[{类型:"eventhandle"},{默认值:" "},{必填:"否"},{说明:"滚动到底部/右边时触发"}]},{bindscroll:[{类型:"eventhandle"},{默认值:" "},{必填:"否"},{说明:"滚动时触发,event.detail = {scrollLeft, scrollTop, scrollHeight, scrollWidth, deltaX, deltaY}\t"}]},{binddragstart:[{类型:"eventhandle"},{默认值:" "},{必填:"否"},{说明:"滑动开始事件 (同时开启 enhanced 属性后生效) detail { scrollTop, scrollLef"}]},{binddragging:[{类型:"eventhandle"},{默认值:" "},{必填:"否"},{说明:"滑动事件 (同时开启 enhanced 属性后生效) detail { scrollTop, scrollLeft }"}]},{binddragend:[{类型:"eventhandle"},{默认值:" "},{必填:"否"},{说明:"滑动结束事件 (同时开启 enhanced 属性后生效) detail { scrollTop, scrollLeft}"}]}],swiper:[{"indicator-dots":[{类型:"boolean"},{默认值:"false"},{必填:"否"},{说明:"是否显示面板指示点"}]},{"indicator-color":[{类型:"string"},{默认值:"rgba(0, 0, 0, .3)"},{必填:"否"},{说明:"指示点颜色"}]},{"indicator-active-color":[{类型:"string"},{默认值:"#000000"},{必填:"否"},{说明:"当前选中的指示点颜色"}]},{autoplay:[{类型:"boolean"},{默认值:"false"},{必填:"否"},{说明:"是否自动切换"}]},{current:[{类型:"number"},{默认值:"0"},{必填:"否"},{说明:"当前所在滑块的index"}]},{interval:[{类型:"number"},{默认值:"5000"},{必填:"否"},{说明:"自动切换时间间隔"}]},{duration:[{类型:"number"},{默认值:"500"},{必填:"否"},{说明:"滑动动画时长"}]},{circular:[{类型:"boolean"},{默认值:"false"},{必填:"否"},{说明:"是否采用衔接滑动"}]},{vertical:[{类型:"boolean"},{默认值:"false"},{必填:"否"},{说明:"滑动方向是否为纵向"}]},{"easing-function":[{validValue:["default","linear","easeInCubic","easeOutCubic","easeInOutCubic"]},{类型:"string"},{默认值:"default"},{必填:"否"},{说明:"指定 swiper 切换缓动动画类型"}]},{bindchange:[{类型:"eventhandle"},{默认值:" "},{必填:"否"},{说明:"current 改变时会触发 change 事件,event.detail = {current, source}"}]}],"swiper-item":[{"item-id":[{类型:"string"},{默认值:" "},{必填:"否"},{说明:"该 swiper-item 的标识符"}]},{"skip-hidden-item-layout":[{类型:"boolean"},{默认值:"false"},{必填:"否"},{说明:"是否跳过未显示的滑块布局,设为 true 可优化复杂情况下的滑动性能,但会丢失隐藏状态滑块的布局信息"}]}],view:[{"hover-class":[{类型:"string"},{默认值:"none"},{必填:"否"},{说明:'指定按下去的样式类。当 hover-class="none" 时,没有点击态效果'}]},{"hover-stop-propagation":[{类型:"boolean"},{默认值:"false"},{必填:"否"},{说明:"指定是否阻止本节点的祖先节点出现点击态"}]},{"hover-start-time":[{类型:"number"},{默认值:"50"},{必填:"否"},{说明:"按住后多久出现点击态,单位毫秒"}]},{"hover-stay-time":[{类型:"number"},{默认值:"400"},{必填:"否"},{说明:"按住后多久出现点击态,单位毫秒"}]}],"cover-view":[],"cover-image":[{src:[{类型:"string"},{默认值:" "},{必填:"否"}]}],icon:[{type:[{validValue:["success","success_no_circle","info","warn","waiting","cancel","download","search","clear"]},{类型:"string"},{默认值:" "},{必填:"是"},{说明:"icon的类型"}]},{size:[{类型:"number/string"},{默认值:"23"},{必填:"否"},{说明:"icon的大小"}]},{color:[{类型:"string"},{默认值:" "},{必填:"否"},{说明:"icon的颜色,同css的color"}]}],text:[{"user-select":[{类型:"boolean"},{默认值:"false"},{必填:"否"},{说明:"文本是否可选,该属性会使文本节点显示为 inline-block"}]},{space:[{validValue:["ensp","emsp","nbsp"]},{类型:"string"},{默认值:" "},{必填:"否"},{说明:"显示连续空格"}]},{decode:[{类型:"boolean"},{默认值:"false"},{必填:"否"},{说明:"是否解码"}]}],"rich-text":[{nodes:[{类型:"boolean"}]},{space:[{validValue:["ensp","emsp","nbsp"]},{类型:"string"},{默认值:" "}]}],progress:[{percent:[{类型:"number"},{默认值:" "},{必填:"否"},{说明:"百分比0~100"}]},{"show-info":[{类型:"boolean"},{默认值:"false"},{必填:"否"},{说明:"在进度条右侧显示百分比"}]},{"border-radius":[{类型:"number/string"},{默认值:"0"},{必填:"否"},{说明:"圆角大小"}]},{"font-size":[{类型:"number/string"},{默认值:"16"},{必填:"否"},{说明:"右侧百分比字体大小"}]},{"stroke-width":[{类型:"number/string"},{默认值:"6"},{必填:"否"},{说明:"进度条线的宽度"}]},{activeColor:[{类型:"string"},{默认值:"#09BB07"},{必填:"否"},{说明:"已选择的进度条的颜色"}]},{backgroundColor:[{类型:"string"},{默认值:"#EBEBEB"},{必填:"否"},{说明:"未选择的进度条的颜色"}]},{active:[{类型:"boolean"},{默认值:"false"},{必填:"否"},{说明:"进度条从左往右的动画"}]},{"active-mode":[{类型:"string"},{默认值:"backwards\t"},{必填:"否"},{说明:"backwards: 动画从头播;forwards:动画从上次结束点接着播"}]},{duration:[{类型:"number"},{默认值:"30"},{必填:"否"},{说明:"进度增加1%所需毫秒数"}]},{bindactiveend:[{类型:"eventhandle"},{默认值:" "},{必填:"否"},{说明:"动画完成事件"}]}],button:[{size:[{validValue:["default","mini"]},{类型:"string"},{默认值:"default"},{必填:"否"},{说明:"按钮的大小"}]},{type:[{validValue:["primary","default","warn"]},{类型:"string"},{默认值:"default"},{必填:"否"},{说明:"按钮的样式类型"}]},{plain:[{类型:"boolean"},{默认值:"false"},{必填:"否"},{说明:"按钮是否镂空,背景色透明"}]},{disabled:[{类型:"boolean"},{默认值:"false"},{必填:"否"},{说明:"是否禁用"}]},{loading:[{类型:"boolean"},{默认值:"false"},{必填:"否"},{说明:"名称前是否带 loading 图标"}]},{"form-type":[{validValue:["submit","reset"]},{类型:"string"},{默认值:" "},{必填:"否"},{说明:"用于 form 组件,点击分别会触发 form 组件的 submit/reset 事件"}]},{"hover-class":[{类型:"string"},{默认值:"button-hover"},{必填:"否"},{说明:'指定按钮按下去的样式类。当 hover-class="none" 时,没有点击态效果'}]},{"hover-stop-propagation":[{类型:"boolean"},{默认值:"false"},{必填:"否"},{说明:"指定是否阻止本节点的祖先节点出现点击态"}]},{"hover-start-time":[{类型:"number"},{默认值:"20"},{必填:"否"},{说明:"按住后多久出现点击态,单位毫秒"}]},{"hover-stay-time":[{类型:"number"},{默认值:"70"},{必填:"否"},{说明:"手指松开后点击态保留时间,单位毫秒"}]}],checkbox:[{value:[{类型:"string"},{默认值:" "},{必填:"否"},{说明:"checkbox标识,选中时触发checkbox-group的 change 事件,并携带checkbox的 value"}]},{disabled:[{类型:"boolean"},{默认值:"false"},{必填:"否"},{说明:"是否禁用"}]},{checked:[{类型:"boolean"},{默认值:"false"},{必填:"否"},{说明:"当前是否选中,可用来设置默认选中"}]},{color:[{类型:"string"},{默认值:"#09BB07"},{必填:"否"},{说明:"checkbox的颜色,同css的color"}]}],"checkbox-group":[{bindchange:[{类型:"EventHandle\t"},{默认值:" "},{必填:"否"},{说明:"checkbox-group中选中项发生改变时触发 change 事件,detail = {value:[选中的checkbox的value的数组]}"}]}],form:[{bindsubmit:[{类型:"eventhandle"},{默认值:" "},{必填:"否"},{说明:'携带 form 中的数据触发 submit 事件,event.detail = {value : {name: "value"} , formId: ""}'}]},{bindreset:[{类型:"eventhandle"},{默认值:" "},{必填:"否"},{说明:"表单重置时会触发 reset 事件"}]}],input:[{value:[{类型:"string"},{默认值:" "},{必填:"是"},{说明:"输入框的初始内容"}]},{type:[{validValue:["text","number","idcard","digit"]},{类型:"string"},{默认值:"text"},{必填:"否"},{说明:"input 的类型"}]},{password:[{类型:"boolean"},{默认值:"false"},{必填:"否"},{说明:"是否是密码类型"}]},{placeholder:[{类型:"string"},{默认值:" "},{必填:"是"},{说明:"输入框为空时占位符"}]},{"placeholder-style":[{类型:"string"},{默认值:" "},{必填:"是"},{说明:"指定 placeholder 的样式"}]},{"placeholder-class":[{类型:"string"},{默认值:"input-placeholder"},{必填:"否"},{说明:"指定 placeholder 的样式类"}]},{disabled:[{类型:"boolean"},{默认值:"false"},{必填:"否"},{说明:"是否禁用"}]},{maxlength:[{类型:"number"},{默认值:"140"},{必填:"否"},{说明:"最大输入长度,设置为 -1 的时候不限制最大长度"}]},{"adjust-position":[{类型:"boolean"},{默认值:"true"},{必填:"否"},{说明:"键盘弹起时,是否自动上推页面"}]},{"auto-focus":[{类型:"boolean"},{默认值:"false"},{必填:"否"},{说明:"(即将废弃,请直接使用 focus )自动聚焦,拉起键盘"}]},{focus:[{类型:"boolean"},{默认值:"false"},{必填:"否"},{说明:"获取焦点"}]},{"confirm-hold":[{类型:"boolean"},{默认值:"false"},{必填:"否"},{说明:"点击键盘右下角按钮时是否保持键盘不收起"}]},{"confirm-type":[{类型:"string"},{默认值:"done"},{必填:"否"},{说明:"设置键盘右下角按钮的文字,仅在 type='text'时生效"}]},{cursor:[{类型:"number"},{默认值:"-1"},{必填:"是"},{说明:"指定focus时的光标位置"}]},{"selection-start":[{类型:"number"},{默认值:"-1"},{必填:"否"},{说明:"光标起始位置,自动聚集时有效,需与selection-end搭配使用"}]},{"selection-end":[{类型:"number"},{默认值:"-1"},{必填:"否"},{说明:"光标结束位置,自动聚集时有效,需与selection-start搭配使用"}]},{bindinput:[{类型:"eventhandle"},{默认值:" "},{必填:"是"},{说明:"键盘输入时触发"}]},{bindfocus:[{类型:"eventhandle"},{默认值:" "},{必填:"是"},{说明:"输入框聚焦时触发,event.detail = { value, height },height 为键盘高度"}]},{bindblur:[{类型:"eventhandle"},{默认值:" "},{必填:"是"},{说明:"输入框失去焦点时触发,event.detail = { value, encryptedValue, encryptError }"}]},{bindconfirm:[{类型:"eventhandle"},{默认值:" "},{必填:"是"},{说明:"点击完成按钮时触发,event.detail = { value }"}]}],picker:[{"header-text":[{类型:"string"},{默认值:" "},{必填:"否"},{说明:"选择器的标题,仅安卓可用"}]},{mode:[{validValue:["selector","date","time"]},{类型:"string"},{默认值:"selector"},{必填:"否"},{说明:"选择器类型"}]},{disabled:[{类型:"boolean"},{默认值:"false"},{必填:"否"},{说明:"是否禁用"}]},{bindchange:[{类型:"eventhandle"},{默认值:" "},{必填:"是"},{说明:"取消选择时触发"}]}],"picker-view":[{value:[{类型:"Array.<number>"},{默认值:" "},{必填:"否"},{说明:"数组中的数字依次表示 picker-view 内的 picker-view-column 选择的第几项(下标从 0 开始)"}]},{"indicator-style":[{类型:"string"},{默认值:" "},{必填:"否"},{说明:"设置选择器中间选中框的样式"}]},{"indicator-class":[{类型:"string"},{默认值:" "},{必填:"否"},{说明:"设置选择器中间选中框的类名"}]},{"mask-style":[{类型:"string"},{默认值:" "},{必填:"否"},{说明:"设置蒙层的样式"}]},{"mask-class":[{类型:"string"},{默认值:" "},{必填:"否"},{说明:"设置蒙层的类名"}]},{bindchange:[{类型:"eventhandle"},{默认值:" "},{必填:"否"},{说明:"滚动选择时触发change事件"}]},{bindpickstart:[{类型:"eventhandle"},{默认值:" "},{必填:"否"},{说明:"当滚动选择开始时候触发事件"}]},{bindpickend:[{类型:"eventhandle"},{默认值:" "},{必填:"否"},{说明:"当滚动选择结束时候触发事件"}]}],"picker-view-column":[],label:[{for:[{类型:"string"},{默认值:" "},{必填:"否"},{说明:"绑定控件的 id"}]}],switch:[{checked:[{类型:"boolean"},{默认值:"false"},{必填:"否"},{说明:"是否选中"}]},{disabled:[{类型:"boolean"},{默认值:"false"},{必填:"否"},{说明:"是否禁用"}]},{type:[{validValue:["switch","checkbox"]},{类型:"string"},{默认值:"switch"},{必填:"否"},{说明:"样式,有效值:switch, checkbox"}]},{color:[{类型:"string"},{默认值:"#04BE02"},{必填:"否"},{说明:"switch 的颜色,同 css 的 color"}]},{bindchange:[{类型:"eventhandle"},{默认值:" "},{必填:"否"},{说明:"checked 改变时触发 change 事件,event.detail={ value}"}]}],"radio-group":[{bindchange:[{类型:"EventHandle"},{默认值:" "},{必填:"否"},{说明:"radio-group中选中项发生改变时触发 change 事件,detail = {value:[选中的radio的value的数组]}"}]}],radio:[{value:[{类型:"string"},{默认值:" "},{必填:"否"},{说明:"radio 标识。当该radio 选中时,radio-group 的 change 事件会携带radio的value"}]},{checked:[{类型:"boolean"},{默认值:"false"},{必填:"否"},{说明:"当前是否选中"}]},{disabled:[{类型:"boolean"},{默认值:"false"},{必填:"否"},{说明:"是否禁用"}]},{color:[{类型:"string"},{默认值:"#09BB07"},{必填:"否"},{说明:"radio的颜色,同css的color"}]}],slider:[{min:[{类型:"number"},{默认值:"0"},{必填:"否"},{说明:"最小值"}]},{max:[{类型:"number"},{默认值:"100"},{必填:"否"},{说明:"最大值"}]},{step:[{类型:"number"},{默认值:"1"},{必填:"否"},{说明:"步长,取值必须大于 0,并且可被(max - min)整除"}]},{disabled:[{类型:"boolean"},{默认值:"false"},{必填:"否"},{说明:"是否禁用"}]},{value:[{类型:"number"},{默认值:"0"},{必填:"否"},{说明:"当前取值"}]},{activeColor:[{类型:"string"},{默认值:"#1aad19"},{必填:"否"},{说明:"已选择的颜色"}]},{backgroundColor:[{类型:"string"},{默认值:"#e9e9e9"},{必填:"否"},{说明:"背景条的颜色"}]},{"block-size":[{类型:"number"},{默认值:"28"},{必填:"否"},{说明:"滑块的大小,取值范围为 12 - 28"}]},{"block-color":[{类型:"string"},{默认值:"#ffffff"},{必填:"否"},{说明:"滑块的颜色"}]},{"show-value":[{类型:"boolean"},{默认值:"false"},{必填:"否"},{说明:"是否显示当前 value"}]},{bindchange:[{类型:"eventhandle"},{默认值:" "},{必填:"否"},{说明:"完成一次拖动后触发的事件,event.detail = {value}"}]},{bindchanging:[{类型:"eventhandle"},{默认值:" "},{必填:"否"},{说明:"拖动过程中触发的事件,event.detail = {value}"}]}],textarea:[{value:[{类型:"string"},{默认值:" "},{必填:"否"},{说明:"输入框的内容"}]},{placeholder:[{类型:"string"},{默认值:" "},{必填:"否"},{说明:"输入框为空时占位符"}]},{"placeholder-style":[{类型:"string"},{默认值:" "},{必填:"否"},{说明:"指定 placeholder 的样式,目前仅支持 color,font-size 和 font-weight"}]},{"placeholder-class":[{类型:"string"},{默认值:"textarea-placeholde"},{必填:"否"},{说明:"指定 placeholder 的样式类"}]},{disabled:[{类型:"boolean"},{默认值:"false"},{必填:"否"},{说明:"是否禁用"}]},{maxlength:[{类型:"number"},{默认值:"140"},{必填:"否"},{说明:"最大输入长度,设置为 -1 的时候不限制最大长度"}]},{focus:[{类型:"boolean"},{默认值:"false"},{必填:"否"},{说明:"获取焦点"}]},{"auto-height":[{类型:"boolean"},{默认值:"false"},{必填:"否"},{说明:"是否自动增高,设置 auto-height 时,style.height 不生效"}]},{cursor:[{类型:"number"},{默认值:"-1"},{必填:"是"},{说明:"指定 focus 时的光标位置,默认为行尾"}]},{"selection-start":[{类型:"number"},{默认值:"-1"},{必填:"否"},{说明:"光标起始位置,自动聚集时有效,需与selection-end搭配使用"}]},{"selection-end":[{类型:"number"},{默认值:"-1"},{必填:"否"},{说明:"光标结束位置,自动聚集时有效,需与selection-end搭配使用"}]},{bindfocus:[{类型:"eventhandle"},{默认值:""},{必填:"否"},{说明:"输入框聚焦时触发,event.detail = { value}。"}]},{bindblur:[{类型:"eventhandle"},{默认值:""},{必填:"否"},{说明:"输入框失去焦点时触发,event.detail = {value}"}]},{bindlinechange:[{类型:"eventhandle"},{默认值:""},{必填:"否"},{说明:"输入框行数变化时调用,event.detail = {height: 0, heightRpx: 0, lineCount: 0}"}]},{bindinput:[{类型:"eventhandle"},{默认值:""},{必填:"否"},{说明:"当键盘输入时,触发 input 事件,event.detail = {value, cursor, }。bindinput 处理函数的返回值并不会反映到 textarea 上。"}]}],navigator:[{url:[{类型:"string"},{默认值:" "},{必填:"否"},{说明:"当前小程序内的跳转链接"}]},{"open-type":[{validValue:["navigate","redirect","switchTab","reLaunch","navigateBack"]},{类型:"string"},{默认值:"navigate"},{必填:"否"},{说明:"跳转方式"}]},{delta:[{类型:"number"},{默认值:"1"},{必填:"否"},{说明:"当 open-type 为 navigateBack 时有效,表示回退的层数"}]},{"hover-class":[{类型:"string"},{默认值:"navigator-hover"},{必填:"否"},{说明:'指定点击时的样式类,当 hover-class="none"时,没有点击态效果'}]},{"hover-stop-propagation":[{类型:"boolean"},{默认值:"false"},{必填:"否"},{说明:"指定是否阻止本节点的祖先节点出现点击态"}]},{"hover-start-time":[{类型:"number"},{默认值:"50"},{必填:"否"},{说明:"按住后多久出现点击态,单位毫秒"}]},{"hover-stay-time":[{类型:"number"},{默认值:"600"},{必填:"否"},{说明:"手指松开后点击态保留时间,单位毫秒"}]}],image:[{src:[{类型:"string"},{默认值:" "},{必填:"否"},{说明:"图片资源地址"}]},{mode:[{validValue:["scaleToFill","aspectFit","aspectFill","widthFix","top","bottom","center","left","right","top left","top right","bottom left","bottom right"]},{类型:"string"},{默认值:"scaleToFill"},{必填:"否"},{说明:"图片裁剪、缩放的模式"}]},{binderror:[{类型:"eventhandle"},{默认值:" "},{必填:"否"},{说明:"当错误发生时触发,event.detail = {errMsg}"}]},{bindload:[{类型:"eventhandle"},{默认值:" "},{必填:"否"},{说明:"当图片载入完毕时触发,event.detail = {height, width}"}]}],video:[{src:[{类型:"string"},{默认值:" "},{必填:"是"},{说明:"要播放视频的资源地址,支持网络路径、本地临时路径"}]},{controls:[{类型:"boolean"},{默认值:"true"},{必填:"否"},{说明:"是否显示默认播放控件(播放/暂停按钮、播放进度、时间)"}]},{autoplay:[{类型:"boolean"},{默认值:"false"},{必填:"否"},{说明:"是否自动播放"}]},{loop:[{类型:"boolean"},{默认值:"false"},{必填:"否"},{说明:"是否循环播放"}]},{muted:[{类型:"boolean"},{默认值:"false"},{必填:"否"},{说明:"是否静音播放"}]},{direction:[{validValue:["0","90","-90"]},{类型:"number"},{默认值:" "},{必填:"否"},{说明:"设置全屏时视频的方向,不指定则根据宽高比自动判断"}]},{"object-fit":[{validValue:["contain","fill","cover"]},{类型:"string"},{默认值:"contain"},{必填:"否"},{说明:"当视频大小与 video 容器大小不一致时,视频的表现形式"}]},{poster:[{类型:"string"},{默认值:" "},{必填:"否"},{说明:"视频封面的图片网络资源地址。若 controls 属性值为 false 则设置 poster 无效"}]},{bindplay:[{类型:"eventhandle"},{默认值:" "},{必填:"否"},{说明:"当开始/继续播放时触发 play 事件"}]},{bindpause:[{类型:"eventhandle"},{默认值:" "},{必填:"否"},{说明:"当暂停播放时触发 pause 事件"}]},{bindended:[{类型:"eventhandle"},{默认值:" "},{必填:"否"},{说明:"当播放到末尾时触发 ended 事件"}]},{bindtimeupdate:[{类型:"eventhandle"},{默认值:" "},{必填:"否"},{说明:"播放进度变化时触发,event.detail = {currentTime, duration} 。触发频率 250ms 一次"}]},{binderror:[{类型:"eventhandle"},{默认值:" "},{必填:"否"},{说明:"视频播放出错时触发"}]}],map:[{longitude:[{类型:"number"},{默认值:" "},{必填:"是"},{说明:"中心经度"}]},{latitude:[{类型:"number"},{默认值:" "},{必填:"是"},{说明:"中心维度"}]},{scale:[{类型:"number"},{默认值:"16"},{必填:"否"},{说明:"缩放级别,取值范围3-20"}]},{markers:[{类型:"Array.<marker>"},{默认值:" "},{必填:"否"},{说明:"标记点"}]},{polyline:[{类型:"Array.<polyline>"},{默认值:""},{必填:"否"},{说明:"路线"}]},{circles:[{类型:"Array.<circle>"},{默认值:" "},{必填:"否"},{说明:"圆"}]},{"include-points":[{类型:"Array.<point>"},{默认值:" "},{必填:"否"},{说明:"缩放视野以包含所有给定的坐标点"}]},{"show-location":[{类型:"boolean"},{默认值:"false"},{必填:"否"},{说明:"显示带有方向的当前定位点 // 安卓暂不支持"}]},{bindtap:[{类型:"eventhandle"},{默认值:" "},{必填:"否"},{说明:"点击地图时触发,e.detail={longitude,latitude}"}]},{bindmarkertap:[{类型:"eventhandle"},{默认值:" "},{必填:"否"},{说明:"点击地图标记点触发,e.detail={markerId}"}]}],audio:[{id:[{类型:"string"},{默认值:" "},{必填:"否"},{说明:"audio 组件的唯一标识符"}]},{src:[{类型:"string"},{默认值:" "},{必填:"否"},{说明:"要播放音频的资源地址"}]},{loop:[{类型:"boolean"},{默认值:"false"},{必填:"否"},{说明:"是否循环播放"}]},{controls:[{类型:"boolean"},{默认值:"false"},{必填:"否"},{说明:"是否显示默认控件"}]},{poster:[{类型:"string"},{默认值:" "},{必填:"否"},{说明:"默认控件上的音频封面的图片资源地址,如果 controls 属性值为 false 则设置 poster 无效"}]},{name:[{类型:"string"},{默认值:" "},{必填:"否"},{说明:"默认控件上的音频名字,如果 controls 属性值为 false 则设置 name 无效"}]},{author:[{类型:"string"},{默认值:" "},{必填:"否"},{说明:"默认控件上的作者名字,如果 controls 属性值为 false 则设置 author 无效"}]},{binderror:[{类型:"eventhandle"},{默认值:" "},{必填:"否"},{说明:"当发生错误时触发 error 事件,detail = {errMsg}"}]},{bindplay:[{类型:"eventhandle"},{默认值:" "},{必填:"否"},{说明:"当开始/继续播放时触发 play 事件"}]},{bindpause:[{类型:"eventhandle"},{默认值:" "},{必填:"否"},{说明:"当暂停播放时触发 pause 事件"}]},{bindended:[{类型:"eventhandle"},{默认值:" "},{必填:"否"},{说明:"当播放到末尾时触发 ended 事件"}]},{"bindtimeupdate\t":[{类型:"eventhandle"},{默认值:" "},{必填:"否"},{说明:"当播放进度改变时触发 timeupdate 事件,detail = {currentTime, duration}"}]}],camera:[{"device-position":[{validValue:["front","back"]},{类型:"string"},{默认值:"back"},{必填:"否"},{说明:"摄像头朝向"}]},{resolution:[{validValue:["low","medium"]},{类型:"string"},{默认值:"medium"},{必填:"否"},{说明:"分辨率,不支持动态修改"}]},{flash:[{validValue:["auto","on","off"]},{类型:"string"},{默认值:"auto"},{必填:"否"},{说明:"闪光灯,值为 auto, on, off"}]},{binderror:[{类型:"eventhandle"},{默认值:" "},{必填:"否"},{说明:"摄像头在非正常终止时触发,如退出后台等情况"}]},{bindstop:[{类型:"eventhandle"},{默认值:" "},{必填:"否"},{说明:"用户不允许使用摄像头时触发"}]}],"web-view":[{src:[{类型:"string"},{默认值:" "},{必填:"否"},{说明:"webview 指向网页的链接"}]},{header:[{类型:"string"},{默认值:" "},{必填:"否"},{说明:"访问网页的链接所需要的header信息"}]},{loadingStyle:[{类型:"string"},{默认值:"default"},{必填:"否"},{说明:"访问页面加载过程中的loading样式类型"}]}],"page-meta":[{"root-font-size":[{类型:"string"},{默认值:" "},{必填:"否"},{说明:"页面的根字体大小,页面中的所有 rem 单位,将使用这个字体大小作为参考值,即 1rem 等于这个字体大小。"}]}]};function wi(e){return wi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wi(e)}function Ti(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ai(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ti(Object(r),!0).forEach((function(t){Ci(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ti(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ci(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==wi(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!==wi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===wi(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ii={optional:!0},Ri={nonempty:!0},Ni={openBluetoothAdapter:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return st.invokeMethod(ft.OPEN_BLUETOOTH_ADAPTER,e)},closeBluetoothAdapter:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return st.invokeMethod(ft.CLOSE_BLUETOOTH_ADAPTER,e)},startBluetoothDevicesDiscovery:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Be(ft.START_BLUETOOTH_DEVICES_DISCOVERY,e,{services:[""]},{services:Ii})?st.invokeMethod(ft.START_BLUETOOTH_DEVICES_DISCOVERY,e):e.invalidParamObj},stopBluetoothDevicesDiscovery:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return st.invokeMethod(ft.STOP_BLUETOOTH_DEVICES_DISCOVERY,e)},onBluetoothDeviceFound:function(e){!function(e){return"Function"===d(e)}(e)?function(e,t){var r=new de(e,"callback is not a function");K.normalError({key:"MacleApiError",message:r.message,error:r})}(ft.ON_BLUETOOTH_DEVICE_FOUND):j.on(ft.ON_BT_DEVICE_FOUND,e)},offBluetoothDeviceFound:function(){j.off(ft.ON_BT_DEVICE_FOUND)},createBLEConnection:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Be(ft.CREATE_BLE_CONNECTION,e,{deviceId:"",timeout:0},{deviceId:Ri,timeout:Ii})?st.invokeMethod(ft.CREATE_BLE_CONNECTION,e):e.invalidParamObj},closeBLEConnection:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Be(ft.CLOSE_BLE_CONNECTION,e,{deviceId:""},{deviceId:Ri})?st.invokeMethod(ft.CLOSE_BLE_CONNECTION,e):e.invalidParamObj},getBLEDeviceServices:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Be(ft.GET_BLE_DEVICE_SERVICES,e,{deviceId:""},{deviceId:Ri})?st.invokeMethod(ft.GET_BLE_DEVICE_SERVICES,e):e.invalidParamObj},getBLEDeviceCharacteristics:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Be(ft.GET_BLE_DEVICE_CHARACTERISTICS,e,{deviceId:"",serviceId:""},{deviceId:Ri,serviceId:Ri})?st.invokeMethod(ft.GET_BLE_DEVICE_CHARACTERISTICS,e):e.invalidParamObj},readBLECharacteristicValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Be(ft.READ_BLE_CHARACTERISTIC_VALUE,e,{deviceId:"",serviceId:"",characteristicId:""},{deviceId:Ri,serviceId:Ri,characteristicId:Ri})?st.invokeMethod(ft.READ_BLE_CHARACTERISTIC_VALUE,e):e.invalidParamObj},writeBLECharacteristicValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Be(ft.WRITE_BLE_CHARACTERISTIC_VALUE,e,{deviceId:"",serviceId:"",characteristicId:"",value:new ArrayBuffer,writeType:""},{deviceId:Ri,serviceId:Ri,characteristicId:Ri,writeType:Ai(Ai({},Ii),{},{range:["write","writeNoResponse","signedWrite"]})})?(e.value=Array.from(new Uint8Array(e.value)),st.invokeMethod(ft.WRITE_BLE_CHARACTERISTIC_VALUE,e)):e.invalidParamObj}};function Pi(e){return Pi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pi(e)}function ki(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ji(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ki(Object(r),!0).forEach((function(t){Di(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ki(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Di(e,t,r){return(t=Mi(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Li(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Mi(n.key),n)}}function Mi(e){var t=function(e,t){if("object"!==Pi(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!==Pi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===Pi(t)?t:String(t)}var Bi={},Gi={},Vi={optional:!0},Fi=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.webviewId=t}var r,n;return r=e,n=[{key:"takePhoto",value:function(e){var r=Bi[this.webviewId];return r?(e.webviewId=window.__webviewId__,st.invokeMethod(t.CAMERA_TAKEPHOTO,ji({camera:r},e))):K.error({apiName:"takePhoto",key:"cameraError",error:new de("CameraContext: takePhoto","the page does not have a camera component.")})}},{key:"startRecord",value:function(e){if(Be("startRecord",e,{timeout:0},{timeout:Vi})){e.webviewId=window.__webviewId__,e.timeout=e.timeout||30;var r=e.timeout,n=Bi[this.webviewId];return n?r%1!=0?ke(t.START_RECORD,e,"timeout value invalid."):r>180||r<1?ke(t.START_RECORD,e,"timeout value should between 1 and 180."):("function"==typeof e.timeoutCallback&&(Gi[this.webviewId]=e.timeoutCallback),st.invokeMethod(t.CAMERA_STARTRECORD,ji({camera:n},e))):K.error({apiName:"startRecord",key:"cameraError",error:new de("CameraContext: startRecord","the page does not have a camera component.")})}return e.invalidParamObj}},{key:"stopRecord",value:function(e){var r=Bi[this.webviewId];return r?(e.webviewId=window.__webviewId__,st.invokeMethod(t.CAMERA_STOPRECORD,ji({camera:r},e))):K.error({apiName:"stopRecord",key:"cameraError",error:new de("CameraContext: stopRecord","the page does not have a camera component.")})}},{key:"setZoom",value:function(e){var r=e.zoom;if(!r)return ke("setZoom",e,"zoom value is empty.");if("number"==typeof r&&r>=1){var n=Bi[this.webviewId],o=e;return o.zoom=Math.floor(o.zoom),n?st.invokeMethod(t.CAMERA_SETZOOM,ji(ji({},n),o)):K.error({apiName:"setZoom",key:"cameraError",error:new de("CameraContext: setZoom","the page does not have a camera component.")})}return ke("setZoom",e,"zoom value invalid.")}}],n&&Li(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),e}();logicLayer.subscribe(t.CAMERA_NOTIFY,(function(e){var t=e.webViewId;"insert"===e.type||"update"===e.type?Bi[t]=e:delete Bi[t]})),j.on(t.ON_CAMERA_RECORD_FINISH,(function(e){var t=e.webviewId;Gi[t]&&(delete e.webviewId,Gi[t].call(void 0,e))})),logicLayer.on(t.ON_CAMERA_RECORD_FINISH,(function(e){j.emit(t.ON_CAMERA_RECORD_FINISH,e)})),logicLayer.on(t.ON_CAMERA_RECORD_ERROR,(function(e){return K.error({apiName:"cameraRecorderError",key:"recordError",error:new de("CameraContext: recorder","recorder error")})}));function Ui(e){return Ui="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ui(e)}function Hi(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==Ui(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!==Ui(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key,"string"),"symbol"===Ui(o)?o:String(o)),n)}var o}var xi={},Wi=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),b(t)?(this.audioId=t,this.webviewId=r):K.error({apiName:"Audio",key:"videoIDError",error:new de("Audio: init","audioId should be a String")})}var t,r;return t=e,(r=[{key:"setSrc",value:function(e){this._sendAction({method:"setSrc",src:e})}},{key:"play",value:function(){this._sendAction({method:"play"})}},{key:"pause",value:function(){this._sendAction({method:"pause"})}},{key:"seek",value:function(e){this._sendAction({method:"seek",position:e})}},{key:"_sendAction",value:function(e){e.audioId=this.audioId,xi["".concat(this.webviewId,"_").concat(this.audioId)]&&st.notifyViewLayer(Et.AUDIO_ACTION_CHANGED,[this.webviewId],e)}}])&&Hi(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();st.subscribe(Et.AUDIO_PLAYER_INSERT,(function(e){var t=e.audioId,r=e.webviewId;xi["".concat(r,"_").concat(t)]=!0}));function Yi(e){return Yi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yi(e)}function Ki(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==Yi(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!==Yi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key,"string"),"symbol"===Yi(o)?o:String(o)),n)}var o}var zi={},Ji=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),b(t)?(this.domId=t,this.webviewId=r):K.error({apiName:"Map",key:"MapIdError",error:new de("Map: init","mapId should be a String")})}var r,n;return r=e,(n=[{key:"addMarkers",value:function(e){this._sendAction(t.ADD_MARKERS,e)}},{key:"removeMarkers",value:function(e){this._sendAction(t.REMOVE_MARKERS,e)}},{key:"moveToLocation",value:function(e){this._sendAction(t.MOVE_TO_LOCATION,e)}},{key:"_sendAction",value:function(e,r){r.domId=this.domId,r.webviewId=this.webviewId,zi["".concat(this.webviewId,"_").concat(this.domId)]?(r.mapId=zi["".concat(this.webviewId,"_").concat(this.domId)],st.invokeMethod(e,r)):(r.mapId=S(),st.notifyViewLayer(t.MAP_ID_BINGING,[this.webviewId],r))}}])&&Ki(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),e}();st.subscribe(t.MAP_INSERT,(function(e){var t=e.domId,r=e.mapId,n=e.webviewId;zi["".concat(n,"_").concat(t)]=r})),st.subscribe(t.MAP_REMOVE,(function(e){var t=e.domId,r=e.webviewId;delete zi["".concat(r,"_").concat(t)]}));function qi(e){return qi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qi(e)}function $i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qi(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==qi(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!==qi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key,"string"),"symbol"===qi(o)?o:String(o)),n)}var o}function Zi(e,t,r){return t&&Qi(e.prototype,t),r&&Qi(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var Xi={},ea={},ta=function(){function e(t,r,n){$i(this,e),this.selectQuery=t,this.selector=t.prefix+r,this.single=n}return Zi(e,[{key:"fields",value:function(e,t){return this.selectQuery._push(this.selector,this.single,e,t),this.selectQuery}},{key:"boundingClientRect",value:function(e){return this.selectQuery._push(this.selector,this.single,{id:!0,dataset:!0,rect:!0,size:!0},e),this.selectQuery}},{key:"scrollOffset",value:function(e){return this.selectQuery._push(this.selector,this.single,{id:!0,dataset:!0,scrollOffset:!0},e),this.selectQuery}}]),e}(),ra=function(){function e(t){$i(this,e),this.webviewId=t,this.queueId=S(),this.queue=[],ea[this.queueId]=[],this.prefix=""}return Zi(e,[{key:"_push",value:function(e,t,r,n){this.queue.push({selector:e,single:t,fields:r}),ea[this.queueId].push(n||null)}},{key:"in",value:function(e){if(e.__cid__){var t=e.nameKey;this.prefix=".ma-exparser-".concat(t," ")}return this}},{key:"select",value:function(e){return new ta(this,e,!0)}},{key:"selectAll",value:function(e){return new ta(this,e,!1)}},{key:"selectViewport",value:function(){return new ta(this,"viewPort",!1)}},{key:"exec",value:function(e){var r=S();Xi[r]=e,st.notifyViewLayer(t.REQUEST_VIEW_INFO,[this.webviewId],{callbackId:r,queueId:this.queueId,queue:this.queue})}}]),e}();st.subscribe(t.SEND_VIEW_INFO,(function(e){for(var t=e.selectQueryResult,r=ea[e.queueId],n=0;n<r.length;n++){var o=r[n];"function"==typeof o&&o(t[n])}"function"==typeof Xi[e.callbackId]&&Xi[e.callbackId](t)}));var na=ra;function oa(e){return oa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oa(e)}function ia(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==oa(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!==oa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key,"string"),"symbol"===oa(o)?o:String(o)),n)}var o}var aa=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,(r=[{key:"postMessage",value:function(e){st.invokeMethod(ft.WEBVIEW_POST_MESSAGE,e,{})}},{key:"onMessage",value:function(e){"Function"===d(e)&&(st.off(ft.WEBVIEW_ON_JS_SDK_MESSAGE),st.on(ft.WEBVIEW_ON_JS_SDK_MESSAGE,(function(t){e(t)})))}}])&&ia(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),ca=aa;function ua(e){return ua="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ua(e)}function la(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==ua(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!==ua(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key,"string"),"symbol"===ua(o)?o:String(o)),n)}var o}var sa={},fa=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),b(t)?(this.domId=t,this.webviewId=r):K.error({apiName:"Video",key:"videoIDError",error:new de("VideoControl: init","Video ID should be a String")})}var r,n;return r=e,n=[{key:"play",value:function(){this._sendAction("play")}},{key:"pause",value:function(){this._sendAction("pause")}},{key:"seek",value:function(e){!p(e)&&!b(e)||isNaN(Number(e))?K.error({apiName:"Video",key:"videoContextError",error:new de("VideoContext: seek","parameter should be a Number or a numeric String")}):this._sendAction("seek",{position:e})}},{key:"stop",value:function(){this._sendAction("stop")}},{key:"_sendAction",value:function(e,r){var n={method:e,data:r};n.domId=this.domId,n.webviewId=this.webviewId,sa["".concat(this.webviewId,"_").concat(this.domId)]?(n.videoPlayerId=sa["".concat(this.webviewId,"_").concat(this.domId)],st.notifyNative(t.VIDEO_ACTION_CHANGED,n)):(n.videoPlayerId=S(),st.notifyViewLayer(t.VIDEO_ID_BINGING,[this.webviewId],n))}}],n&&la(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),e}();st.subscribe(t.VIDEO_PLAYER_INSERT,(function(e){var t=e.domId,r=e.videoPlayerId,n=e.webviewId;sa["".concat(n,"_").concat(t)]=r})),st.subscribe(t.VIDEO_PLAYER_REMOVE,(function(e){var t=e.domId,r=e.webviewId;delete sa["".concat(r,"_").concat(t)]}));function da(e){return da="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},da(e)}function va(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function pa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ba(n.key),n)}}function ma(e,t,r){return t&&_a(e.prototype,t),r&&_a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function ha(e,t,r){return(t=ba(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ba(e){var t=function(e,t){if("object"!==da(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!==da(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===da(t)?t:String(t)}var ya=function(){function e(t,r){pa(this,e),ha(this,"handlers",[]),this.taskId=t,this.webviewId=r}return ma(e,[{key:"abort",value:function(){return st.invokeMethod(Et.NETWORK_ABORT,{taskId:this.taskId})}},{key:"onProgressUpdate",value:function(e){Le("onProgressUpdate",e,(function(e){}))&&-1===this.handlers.indexOf(e)&&this.handlers.push(e)}},{key:"offProgressUpdate",value:function(e){if(e){var t=this.handlers.indexOf(e);t>-1&&this.handlers.splice(t,1)}else this.handlers.length=0}}]),e}(),Ea=function(){function e(){pa(this,e),this.taskMap={},this.onProgressUpdate()}return ma(e,[{key:"onProgressUpdate",value:function(){var e=this;st.on(Et.ON_DOWNLOAD_PROGRESS_UPDATE,(function(t){var r=e.taskMap[t.taskId],n=window.getPage(r.webviewId),o=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?va(Object(r),!0).forEach((function(t){ha(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):va(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},t);delete o.taskId,r.handlers.length>0&&n&&r.handlers.forEach((function(e){e.call(n,t)}))}))}},{key:"createTask",value:function(e){var t=S(),r=new ya(t,e);return this.taskMap[t]=r,r}}]),e}(),ga=new Ea;function Oa(e){return Oa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Oa(e)}function Sa(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==Oa(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!==Oa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key,"string"),"symbol"===Oa(o)?o:String(o)),n)}var o}var wa=["ascii","base64","ucs2","ucs-2","utf16le","utf-16le","utf-8","utf8","latin1"],Ta=10485760,Aa=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,(r=[{key:"writeFile",value:function(e){return Le("writeFile",e,{filePath:""})?e.data||""===e.data?"string"==typeof e.data||e.data instanceof ArrayBuffer?(e.encoding||(e.encoding="utf8"),"string"!=typeof e.encoding||-1===wa.indexOf(e.encoding.toLowerCase())?ke(Et.WRITE_FILE,e,"parameter error: parameter.encoding is invalid"):"string"==typeof e.data&&e.data.length>Ta||e.data instanceof ArrayBuffer&&e.data.byteLength>Ta?ke(Et.WRITE_FILE,e,"parameter error: parameter.data size is greater than 10 MB"):(e.data instanceof ArrayBuffer&&(e.data=Array.from(new Uint8Array(e.data))),e.encoding=e.encoding.toLowerCase(),st.invokeMethod(Et.WRITE_FILE,e))):ke(Et.WRITE_FILE,e,"parameter error: parameter.data must be of type String or an instance of ArrayBuffer"):ke(Et.WRITE_FILE,e,"parameter error: parameter.data is required"):e.invalidParamObj}},{key:"readFile",value:function(e){return Le("readFile",e,{filePath:""})?!e.encoding||"string"==typeof e.encoding&&-1!==wa.indexOf(e.encoding.toLowerCase())?Object.prototype.hasOwnProperty.call(e,"position")&&"number"!=typeof e.position?ke(Et.READ_FILE,e,"parameter error: parameter.position is invalid"):Object.prototype.hasOwnProperty.call(e,"length")&&"number"!=typeof e.length?ke(Et.READ_FILE,e,"parameter error: parameter.length is invalid"):(e.encoding&&(e.encoding=e.encoding.toLowerCase()),st.invokeMethod(Et.READ_FILE,e,{beforeSuccess:function(e){e.data instanceof Array&&(e.data=new Uint8Array(e.data).buffer)}})):ke(Et.READ_FILE,e,"parameter error: parameter.encoding is invalid"):e.invalidParamObj}},{key:"readdir",value:function(e){return Le("readdir",e,{dirPath:""})?st.invokeMethod(Et.READ_DIR,e):e.invalidParamObj}},{key:"copyFile",value:function(e){return Le("copyFile",e,{srcPath:""})&&Le("copyFile",e,{destPath:""})?st.invokeMethod(Et.COPY_FILE,e):e.invalidParamObj}},{key:"moveFile",value:function(e){return Le("moveFile",e,{srcPath:""})&&Le("moveFile",e,{destPath:""})?st.invokeMethod(Et.MOVE_FILE,e):e.invalidParamObj}},{key:"unlink",value:function(e){return Le("unlink",e,{filePath:""})?st.invokeMethod(Et.UNLINK,e):e.invalidParamObj}},{key:"exists",value:function(e){return Le("exists",e,{path:""})?st.invokeMethod(Et.EXISTS,e):e.invalidParamObj}},{key:"mkdir",value:function(e){return Le("mkdir",e,{dirPath:""})?(e.recursive=!!e.recursive,st.invokeMethod(Et.MKDIR,e)):e.invalidParamObj}},{key:"saveFile",value:function(e){return $a.saveFile(e)}},{key:"getFileInfo",value:function(e){return $a.getFileInfo(e)}},{key:"getSavedFileInfo",value:function(e){return $a.getSavedFileInfo(e)}},{key:"getSavedFileList",value:function(e){return $a.getSavedFileList(e)}},{key:"removeSavedFile",value:function(e){return $a.removeSavedFile(e)}}])&&Sa(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Ca(e){return Ca="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ca(e)}function Ia(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==Ca(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!==Ca(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key,"string"),"symbol"===Ca(o)?o:String(o)),n)}var o}var Ra={8e3:"16000,48000",11025:"16000,48000",12e3:"24000,64000",16e3:"24000,96000",22050:"32000,128000",24e3:"32000,128000",32e3:"48000,192000",44100:"64000,320000",48e3:"64000,320000"};function Na(e){j.emit(ft.ON_RECORD_ERROR,{errMsg:e})}function Pa(e){return"Function"===d(e)}var ka=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,(r=[{key:"start",value:function(e){if(Le(ft.START_RECORD,e,{})){var t=function(e){var t="";for(var r in e){var n=d(e[r]);if("Undefined"!==n){if("String"!==n&&"Number"!==n){t=r;break}if("String"===n){var o=e[r].trim();if(!/^\d+$/.test(o)){t=r;break}e[r]=parseInt(o)}"duration"===r&&0===e[r]&&(e[r]=18e4)}else delete e[r]}return t}(e);return t?(Na("operateRecorder: fail;parameter error: parameter.".concat(t," should be Number")),ke(ft.START_RECORD,e,"parameter error: parameter.".concat(t," should be Number"))):function(e){var t,r,n=(null!==(t=e.sampleRate)&&void 0!==t?t:8e3).toString(),o=null!==(r=e.encodeBitRate)&&void 0!==r?r:48e3;if(!Ra[n])return Na("operateRecorder: fail;invalid sampleRate ".concat(n,", sampleRate should be one of [8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000]")),!1;var i=Ra[n].split(","),a=parseInt(i[0]),c=parseInt(i[1]);return!(o<a||o>c)||(Na("operateRecorder: fail;invalid encodeBitRate ".concat(o,", encodeBitRate should be greater than ").concat(a," and less than ").concat(c)),!1)}(e)?function(e){if("Undefined"===d(e))return!0;var t=parseInt(e);return t>=0&&t<=18e4}(e.duration)?function(e){if("Undefined"===d(e))return!0;var t=parseInt(e);return 1===t||2===t}(e.numberOfChannels)?st.invokeMethod(ft.START_RECORD,e):(Na("operateRecorder: fail;invalid numberOfChannels ".concat(e.numberOfChannels,", numberOfChannels should be 1 or 2")),ke(ft.START_RECORD,e,"error: duration should be in valid range")):(Na("operateRecorder: fail;invalid duration ".concat(e.duration,", duration should be integer which is greater than 0 and less than 180000")),ke(ft.START_RECORD,e,"error: duration should be in valid range")):ke(ft.START_RECORD,e,"error: parameter is invalid, sampleRate and sencodeBitRate should be in valid range")}return e.invalidParamObj}},{key:"pause",value:function(){return st.invokeMethod(ft.PAUSE_RECORD,{})}},{key:"resume",value:function(){return st.invokeMethod(ft.RESUME_RECORD,{})}},{key:"stop",value:function(){return st.invokeMethod(ft.STOP_RECORD,{})}},{key:"onStart",value:function(e){Pa(e)&&j.on(ft.ON_RECORD_START,e)}},{key:"offStart",value:function(e){j.off(ft.ON_RECORD_START,e)}},{key:"onPause",value:function(e){Pa(e)&&j.on(ft.ON_RECORD_PAUSE,e)}},{key:"offPause",value:function(e){j.off(ft.ON_RECORD_PAUSE,e)}},{key:"onResume",value:function(e){Pa(e)&&j.on(ft.ON_RECORD_RESUME,e)}},{key:"offResume",value:function(e){j.off(ft.ON_RECORD_RESUME,e)}},{key:"onStop",value:function(e){Pa(e)&&j.on(ft.ON_RECORD_STOP,e)}},{key:"offStop",value:function(e){j.off(ft.ON_RECORD_STOP,e)}},{key:"onError",value:function(e){Pa(e)&&j.on(ft.ON_RECORD_ERROR,e)}},{key:"offError",value:function(e){j.off(ft.ON_RECORD_ERROR,e)}}])&&Ia(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),ja=new ka;function Da(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function La(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Da(Object(r),!0).forEach((function(t){Ma(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Da(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ma(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Ba(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!==Ba(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===Ba(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ba(e){return Ba="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ba(e)}function Ga(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Va(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Va(e,t):void 0}}(e,t)||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.")}()}function Va(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}window.CheckForUpdateHandles=[],window.UpdateReadyHandles=[],window.UpdateFailedHandles=[],window.bridge=st;var Fa={},Ua="custom_",Ha=new gi.EventEmitter,xa={optional:!0},Wa={nonempty:!0};function Ya(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var o=[].concat(r),i=o.map((function(e){switch(e){case null:return"null";case void 0:return"undefined";default:return e.toString()}})).join(" ");K.custom(i,e)}}function Ka(e){var t=Ga(e,3),r=t[0],n=t[1],o=t[2],i=Si[r];if(!n)return!0;for(var a=0;a<i.length;a++)if("object"===Ba(i[a])&&i[a][n]){for(var c=0;c<i[a][n].length;c++){var u;return!o||!!((null===(u=i[a][n][c].validValue)||void 0===u?void 0:u.indexOf(o))>-1)}return!1}return!1}function za(e,t,r,n){for(var o=r.method,i=r.param,a=r.options,c=0;c<e[t][o].length;c++)if("object"===Ba(e[t][o][c])&&e[t][o][c][i])for(var u=0;u<e[t][o][c][i].length;u++){var l;return!a||!!((null===(l=e[t][o][c][i][u][n])||void 0===l?void 0:l.indexOf(a))>-1)}return!1}function Ja(e){var t=Ga(e,4),r=t[0],n=t[1],o=t[2],i=t[3],a=Oi[r];if(!n)return!0;if(["return","success","object","callback"].indexOf(n)<0)return!1;for(var c=0;c<a.length;c++)if("object"===Ba(a[c])&&a[c][n])return!o||za(a,c,{method:n,options:i,param:o},"validValue");return!1}function qa(e){var t=!0;return!e.desc||("style"in e.desc&&-1===["normal","italic","oblique"].indexOf(e.desc.style)&&(t=!1),"weight"in e.desc&&-1===["normal","bold","100","200","300","400","500","600","700","800","900"].indexOf(e.desc.weight)&&(t=!1),"variant"in e.desc&&-1===["normal","small-caps","inherit"].indexOf(e.desc.variant)&&(t=!1),t)}var $a=La(La({},Ni),{},{startPullDownRefresh:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return st.invokeMethod(ft.START_PULL_DOWN_REFRESH,e)},stopPullDownRefresh:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return st.invokeMethod(ft.STOP_PULL_DOWN_REFRESH,e)},navigateTo:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Le("navigateTo",e,{url:""})&&(e.url=Ke(e.url),je("navigateTo",e))){var t=e.events;return st.invokeMethod(ft.NAVIGATE_TO,e,{beforeSuccess:function(e){var r=pi.getPage(__webviewId__).getOpenerEventChannel();if(t)for(var n in t)r.on(n,t[n]);e.eventChannel=r}})}return e.invalidParamObj},redirectTo:function(e){return Le("redirectTo",e,{url:""})&&(e.url=Ke(e.url),je("redirectTo",e))?st.invokeMethod(ft.REDIRECT_TO,e):e.invalidParamObj},switchTab:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Le(ft.SWITCHTAB,e,{url:""})&&(/\?.*$/.test(e.url)&&(A.warn("switchTab: url does not support queryString."),e.url=e.url.replace(/\?.*$/,"")),e.url=Ke(e.url),je(ft.SWITCHTAB,e))?st.invokeMethod(ft.SWITCHTAB,e):e.invalidParamObj},reLaunch:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Le("reLaunch",e,{url:""})&&(e.url=Ke(e.url),je("reLaunch",e))?st.invokeMethod(ft.RELAUNCH,e):e.invalidParamObj},navigateBack:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"number"!=typeof e.delta?e.delta=1:(e.delta=parseInt(e.delta),e.delta<1&&(e.delta=1)),st.invokeMethod(ft.NAVIGATE_BACK,e)},navigateToMiniProgram:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Ge(ft.NAVIGATE_TO_MINI_PROGRAM,e,{appId:"",capsuleShow:!0,path:""},{capsuleShow:xa,path:xa})?st.invokeMethod(ft.NAVIGATE_TO_MINI_PROGRAM,e):e.invalidParamObj},exitMiniProgram:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Be(ft.EXIT_MINI_PROGRAM,e,{clearCache:!1},{clearCache:xa})?st.invokeMethod(ft.EXIT_MINI_PROGRAM,e):e.invalidParamObj},gotoBrowser:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Le(ft.GOTO_BROWSER,e,{openUrl:""})?st.invokeMethod(ft.GOTO_BROWSER,e):e.invalidParamObj},showModal:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=window.getI18nInstance(),r=t.getLocale(),n="zh-CN"===r||"zh-rCN"===r||"zh-Hans"===r,o={title:"",content:"",confirmText:i18nEnums.confirm,cancelText:i18nEnums.cancel,showCancel:!0,confirmColor:"#576B95",cancelColor:"#000000",editable:!1};return o=We(o,e),n&&$e(o.confirmText)>8?ke(ft.SHOW_MODAL,e,"parameter error: parameter.confirmText is invalid, length should be less than 4 characters."):n&&$e(o.cancelText)>8?ke(ft.SHOW_MODAL,e,"parameter error: parameter.cancelText is invalid, length should be less than 4 characters."):b(o.content)?st.invokeMethod(ft.SHOW_MODAL,o,{beforeSuccess:function(e){e.confirm=Boolean(e.confirm)}}):ke(ft.SHOW_MODAL,e,"parameter error: parameter.content should be String instead of ".concat(d(o.content)))},showToast:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.webviewId=window.__webviewId__;var t={duration:1500,title:"",icon:"success",mask:!1},r=We(t,e);if(r.duration>1e4&&(r.duration=1e4),Be(ft.SHOW_TOAST,r,{title:"",icon:"",duration:0,mask:!1},{title:xa,icon:xa,duration:xa,mask:xa})){var n=["success","error","loading","none"];return n.includes(r.icon)?st.invokeMethod(ft.SHOW_TOAST,r):ke(ft.SHOW_TOAST,r,"parameter error: invalid icon ".concat(r.icon))}return r.invalidParamObj},showLoading:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.webviewId=window.__webviewId__;var t={title:"",mask:!1},r=We(t,e);return Be(ft.SHOW_LOADING,r,{title:"",mask:!1},{title:xa,mask:xa})?st.invokeMethod(ft.SHOW_LOADING,r):r.invalidParamObj},hideLoading:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.webviewId=window.__webviewId__,st.invokeMethod(ft.HIDE_LOADING,e)},hideToast:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.webviewId=window.__webviewId__,st.invokeMethod("hideToast",e)},request:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Le(ft.REQUEST,e,{url:""})){if(!ze(e.url))return ke(ft.REQUEST,e,"parameter error: invalid url ".concat(e.url));if("Function"===d(e.data))return ke(ft.REQUEST,e,"parameter error: data should not be Function");for(var t in y(e.header)||(e.header={}),e.header=He(e.header),e.header)if("content-type"===t.toLowerCase()){var r=e.header[t];delete e.header[t],e.header[t.toLowerCase()]=r}e.method=e.method?e.method.toUpperCase():"GET",e.dataType=e.dataType||"json",e.header["content-type"]=e.header["content-type"]||"application/json";var n="";return e.data&&(n=y(e.data)?JSON.stringify(e.data):e.data),"GET"===e.method&&(e.url=Ye(e.url,e.data)),st.invokeMethod(ft.REQUEST,{url:e.url,data:n,header:e.header,method:e.method,timeout:e.timeout,success:e.success,preload:e.preload,fail:e.fail,complete:e.complete},{beforeSuccess:function(t){if("json"===e.dataType)try{"String"===d(t.data)&&(t.data=JSON.parse(t.data))}catch(t){A.error("JSON parse data error from ".concat(e.url)),A.error(t)}}})}return e.invalidParamObj},getBackgroundFetchData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.webviewId=window.__webviewId__,st.invokeMethod(ft.GET_BACKGROUND_FETCH_DATA,e,{beforeSuccess:function(e){try{"Array"===d(e.data)&&e.data.forEach((function(t,r){"String"===d(t.fetchedData)&&""!==t.fetchedData&&(e.data[r].fetchedData=JSON.parse(t.fetchedData))}))}catch(e){A.error("getBackgroundFetchData:JSON parse data error"),A.error(e)}}})},downloadFile:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Le(ft.DOWNLOAD_FILE,e,{url:""})){if(!ze(e.url))return ke(ft.DOWNLOAD_FILE,e,"parameter error: invalid url ".concat(e.url));var t=ga.createTask(window.__webviewId__);return e.taskId=t.taskId,st.invokeMethod(ft.DOWNLOAD_FILE,e),t}return e.invalidParamObj},uploadFile:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!e.url)return ke(ft.UPLOAD_FILE,e,"parameter error: parameter.url should be String instead of Undefined;");if(e.files)e.filePath="",e.name="";else{if(!e.filePath)return ke(ft.UPLOAD_FILE,e,"parameter error: parameter.filePath should be String instead of Undefined;");if(!e.name)return ke(ft.UPLOAD_FILE,e,"parameter error: parameter.name should be String instead of Undefined;")}return st.invokeMethod(ft.UPLOAD_FILE,e)},scanCode:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return st.invokeMethod(ft.SCAN_CODE,e)},vibrateShort:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return st.invokeMethod(ft.VIBRATE_SHORT,e)},vibrateLong:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return st.invokeMethod(ft.VIBRATE_LONG,e)},chooseContact:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return st.invokeMethod(ft.CHOOSE_CONTACT,e)},getNetworkType:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return st.invokeMethod(ft.GET_NETWORK_TYPE,e)},chooseVideo:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={sourceType:La(La({},xa),{},{checkSubEleType:!0,range:["album","camera"]}),camera:La(La({},xa),{},{range:["back","front"]})};if(Be(ft.CHOOSE_VIDEO,e,{sourceType:[""],camera:""},t)){var r=Object.assign({sourceType:["album","camera"],camera:"back"},e);return st.invokeMethod(ft.CHOOSE_VIDEO,r)}return e.invalidParamObj},chooseImage:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={sourceType:La(La({},xa),{},{checkSubEleType:!0,range:["album","camera"]}),sizeType:La(La({},xa),{},{range:["compressed","original"]})};if(Be(ft.CHOOSE_IMAGE,e,{sourceType:[""],sizeType:[""]},t)){var r=Object.assign({count:9,sourceType:["album","camera"],sizeType:["compressed","original"]},e);return st.invokeMethod(ft.CHOOSE_IMAGE,r)}return e.invalidParamObj},previewImage:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.webviewId=window.__webviewId__,e.urls&&""!==e.urls?st.invokeMethod(ft.PREVIEW_IMAGE,e):ke(ft.PREVIEW_IMAGE,e,"parameter error: parameter.urls should be Array instead of Undefined;")},compressImage:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.webviewId=window.__webviewId__,e.src&&""!==e.src?st.invokeMethod(ft.COMPRESS_IMAGE,e):ke(ft.COMPRESS_IMAGE,e,"decode image fail")},getImageInfo:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.webviewId=window.__webviewId__,e.src&&""!==e.src?st.invokeMethod(ft.GET_IMAGE_INFO,e):ke(ft.GET_IMAGE_INFO,e,"parameter error: parameter.src should be String instead of Undefined;")},saveImageToPhotosAlbum:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.filePath&&""!==e.filePath?"string"!=typeof e.filePath?ke(ft.SAVE_IMAGE_TOPHOTOS_ALBUM,e,'The "filePath" argument must be of type String.'):st.invokeMethod(ft.SAVE_IMAGE_TOPHOTOS_ALBUM,e):ke(ft.SAVE_IMAGE_TOPHOTOS_ALBUM,e,'The "filePath" argument should be String instead of Undefined;')},getLocation:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.useFetchData=null!==(e=t.useFetchData)&&void 0!==e&&e,Me(ft.GET_LOCATION,t,{useFetchData:!1})?st.invokeMethod(ft.GET_LOCATION,t,{}):t.invalidParamObj},getSystemInfo:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return st.invokeMethod(ft.GETSYSTEMINFO,e,{})},getStatusBarHeight:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return st.invokeMethod(ft.GET_STATUS_BAR_HEIGHT,e,{beforeSuccess:function(e){var t;e.statusBarHeight=null!==(t=e.statusBarHeight)&&void 0!==t?t:e.xm_string_callback_key,delete e.xm_string_callback_key}})},getUpdateManager:function(){return{onCheckForUpdate:function(e){CheckForUpdateHandles.push(e)},onUpdateReady:function(e){UpdateReadyHandles.push(e)},onUpdateFailed:function(e){UpdateFailedHandles.push(e)},applyUpdate:function(){st.invoke("applyUpdate",{})}}},onAppShow:function(e){j.on(ft.ON_APP_SHOW,e)},createWebviewContext:function(){return new ca},setCustomEvent:function(e){if(Be(ft.SET_CUSTOM_EVENT,e,{eventName:"",callback:function(){}})){var t=e.eventName,r=e.callback,n=Ua+t;return""===t?ke(ft.SET_CUSTOM_EVENT,e,"parameter error: eventName can not be empty"):(st.off(n),st.on(n,(function(e){r(e)})),st.invokeMethod(ft.SET_CUSTOM_EVENT,e,{}))}return e.invalidParamObj},removeCustomEvent:function(e){if(Be(ft.REMOVE_CUSTOM_EVENT,e,{eventName:""})){var t=e.eventName,r=Ua+t;return""===t?ke(ft.REMOVE_CUSTOM_EVENT,e,"parameter error: eventName can not be empty"):(st.off(r),st.invokeMethod(ft.REMOVE_CUSTOM_EVENT,e,{}))}return e.invalidParamObj},onAppHide:function(e){j.on(ft.ON_APP_HIDE,e)},onError:function(e){j.on(ft.ON_ERROR,e)},offError:function(e){j.off(ft.ON_ERROR,e)},offAppShow:function(e){j.off(ft.ON_APP_SHOW,e)},offAppHide:function(e){j.off(ft.ON_APP_HIDE,e)},getLogManager:function(){return{log:Ya("log"),debug:Ya("debug"),info:Ya("info"),warn:Ya("warn"),error:Ya("error")}},canIUse:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if("string"!=typeof e)return ke(ft.CANIUSE,e,"schema should be an object"),!1;var t=e.split("."),r=t[0];return Si[r]?Ka(t):!!Oi[r]&&Ja(t)},setStorage:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.encrypt=null!==(e=t.encrypt)&&void 0!==e&&e,Le("setStorage",t,{key:"",encrypt:!1})?st.invokeMethod(ft.SET_STORAGE,t):t.invalidParamObj},getStorage:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.encrypt=null!==(e=t.encrypt)&&void 0!==e&&e,Le("getStorage",t,{key:"",encrypt:!1})?st.invokeMethod(ft.GET_STORAGE,t):t.invalidParamObj},getStorageInfo:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Le("getStorageInfo",e)?st.invokeMethod(ft.GET_STORAGE_INFO,e):e.invalidParamObj},removeStorage:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Le("removeStorage",e,{key:""})?st.invokeMethod(ft.REMOVE_STORAGE,e):e.invalidParamObj},clearStorage:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Le("clearStorage",e)?st.invokeMethod(ft.CLEAR_STORAGE,e):e.invalidParamObj},setNavigationBarTitle:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.webviewId=window.__webviewId__,Le("setNavigationBarTitle",e,{title:""})?st.invokeMethod(ft.SET_NAVIGATION_BAR_TITLE,e):e.invalidParamObj},setNavigationBarColor:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e.webviewId=window.__webviewId__,Le("setNavigationBarColor",e,{frontColor:""})){if(0===e.frontColor.length)return ke(ft.SET_NAVIGATION_BAR_COLOR,e,"parameter error: parameter.frontColor is empty");if("#ffffff"!==e.frontColor&&"#000000"!==e.frontColor)return ke(ft.SET_NAVIGATION_BAR_COLOR,e,"parameter error: parameter.frontColor is invalid");if(Le("setNavigationBarColor",e,{backgroundColor:""})){var t=/^#[0-9A-F]{6}$/i;return 0===e.backgroundColor.length?ke(ft.SET_NAVIGATION_BAR_COLOR,e,"parameter error: parameter.backgroundColor is empty"):t.test(e.backgroundColor)?st.invokeMethod(ft.SET_NAVIGATION_BAR_COLOR,e):ke(ft.SET_NAVIGATION_BAR_COLOR,e,"parameter error: parameter.backgroundColor is invalid")}}return e.invalidParamObj},setBackgroundTextStyle:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.webviewId=window.__webviewId__,Le("setBackgroundTextStyle",e,{textStyle:""})?e.textStyle?"dark"!==e.textStyle&&"light"!==e.textStyle?ke(ft.SET_BACKGROUND_TEXT_STYLE,e,"parameter error: parameter.textStyle should be dark or light"):st.invokeMethod(ft.SET_BACKGROUND_TEXT_STYLE,e):ke(ft.SET_BACKGROUND_TEXT_STYLE,e,"parameter error: textStyle cannot be empty"):e.invalidParamObj},setBackgroundColor:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e.webviewId=window.__webviewId__,e.backgroundColor){var t=/^#[0-9A-F]{6}$/i;return t.test(e.backgroundColor)?st.invokeMethod(ft.SET_BACKGROUND_COLOR,e):ke(ft.SET_BACKGROUND_COLOR,e,"parameter error: parameter.backgroundColor invalid")}return st.invokeMethod(ft.SET_BACKGROUND_COLOR,e)},setSwipeBack:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Le(ft.SET_SWIPE_BACK,e,{enableSwipeBack:!0},"parameter",!0)?st.invokeMethod(ft.SET_SWIPE_BACK,e):e.invalidParamObj},capsuleStyle:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Le(ft.CAPSULE_STYLE,e,{style:0})?[0,1].includes(e.style)?st.invokeMethod(ft.CAPSULE_STYLE,e):ke(ft.CAPSULE_STYLE,e,"parameter error: invalid style ".concat(e.style)):e.invalidParamObj},setCapsuleShow:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Be(ft.SET_CAPSULE_SHOW,e,{isShow:!0},{isShow:xa})?st.invokeMethod(ft.SET_CAPSULE_SHOW,e):e.invalidParamObj},showActionSheet:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Le("showActionSheet",e,{itemList:["1"]})?0===e.itemList.length?ke(ft.SHOW_ACTION_SHEET,e,"parameter error: required fields cannot be empty"):e.itemList.length>6?ke(ft.SHOW_ACTION_SHEET,e,"parameter error: itemList should not be large than 6"):st.invokeMethod(ft.SHOW_ACTION_SHEET,e):e.invalidParamObj},showTabBar:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.webviewId=window.__webviewId__,st.invokeMethod(ft.SHOW_TAB_BAR,e,{})},hideTabBar:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.webviewId=window.__webviewId__,st.invokeMethod(ft.HIDE_TAB_BAR,e,{})},showTabBarRedDot:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.webviewId=window.__webviewId__,Le("showTabBarRedDot",e,{index:1})?st.invokeMethod(ft.SHOW_TAB_BAR_RED_DOT,e):e.invalidParamObj},hideTabBarRedDot:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.webviewId=window.__webviewId__,Le("hideTabBarRedDot",e,{index:1})?st.invokeMethod(ft.HIDE_TAB_BAR_RED_DOT,e):e.invalidParamObj},setTabBarStyle:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.webviewId=window.__webviewId__,Le("setTabBarStyle",e)?st.invokeMethod(ft.SET_TAB_BAR_STYLE,e):e.invalidParamObj},setTabBarItem:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.webviewId=window.__webviewId__,Le("setTabBarItem",e,{index:1})?st.invokeMethod(ft.SET_TAB_BAR_ITEM,e):e.invalidParamObj},setTabBarBadge:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.webviewId=window.__webviewId__,Me(ft.SET_TAB_BAR_BADGE,e,{index:1,text:""})?st.invokeMethod(ft.SET_TAB_BAR_BADGE,e):e.invalidParamObj},removeTabBarBadge:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.webviewId=window.__webviewId__,Me(ft.REMOVE_TAB_BAR_BADGE,e,{index:1})?st.invokeMethod(ft.REMOVE_TAB_BAR_BADGE,e):e.invalidParamObj},setClipboardData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Me(ft.SET_CLIPBOARD_DATA,e,{data:""})?st.invokeMethod(ft.SET_CLIPBOARD_DATA,e):e.invalidParamObj},getClipboardData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return st.invokeMethod(ft.GET_CLIPBOARD_DATA,e)},saveFile:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Le("saveFile",e,{tempFilePath:""})?st.invokeMethod(ft.SAVE_FILE,e):e.invalidParamObj},removeSavedFile:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Le("removeSavedFile",e,{filePath:""})?st.invokeMethod(ft.REMOVE_SAVED_FILE,e):e.invalidParamObj},openDocument:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Le("openDocument",e,{filePath:""})?st.invokeMethod(ft.OPEN_DOCUMENT,e):e.invalidParamObj},getSavedFileList:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Le("getSavedFileList",e)?st.invokeMethod(ft.GET_SAVED_FILE_LIST,e):e.invalidParamObj},getSavedFileInfo:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Le("getSavedFileInfo",e,{filePath:""})?st.invokeMethod(ft.GET_SAVED_FILE_INFO,e):e.invalidParamObj},getFileInfo:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e;return(arguments.length<=1?0:arguments.length-1)>0&&(t=void 0!==(arguments.length<=1?void 0:arguments[1])?arguments.length<=1?void 0:arguments[1]:{}),Le("getFileInfo",t,{filePath:""})?void 0!==t.digestAlgorithm&&Le("getFileInfo",t,{digestAlgorithm:""})&&-1===["md5","sha1","sha256"].indexOf(t.digestAlgorithm)?ke("getFileInfo",t,'parameter error: invalid digestAlgorithm "'.concat(t.digestAlgorithm,'"')):st.invokeMethod(ft.GET_FILE_INFO,t):e.invalidParamObj},getBatteryInfo:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return st.invokeMethod(ft.GET_BATTERY_INFO,e)},setScreenBrightness:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Le("setScreenBrightness",e,{value:1})?st.invokeMethod(ft.SET_SCREEN_BRIGHTNESS,e):e.invalidParamObj},setKeepScreenOn:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Le("setKeepScreenOn",e,{keepScreenOn:!1})?st.invokeMethod(ft.SET_KEEP_SCREEN_ON,e):e.invalidParamObj},getScreenBrightness:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return st.invokeMethod(ft.GET_SCREEN_BRIGHTNESS,e)},hideKeyboard:function(e){return st.invokeMethod(ft.HIDE_KEYBOARD,e)},getMenuButtonBoundingClientRect:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return st.invokeMethod(ft.GET_MENU_BUTTON_BOUNDING_CLIENT_RECT,e)},makePhoneCall:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Le("makePhoneCall",e,{phoneNumber:""})?st.invokeMethod(ft.MAKE_PHONE_CALL,e):e.invalidParamObj},startGyroscope:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return st.invokeMethod(ft.START_GYROSCOPE,e)},stopGyroscope:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return st.invokeMethod(ft.STOP_GYROSCOPE,e)},onNetworkStatusChange:function(e){j.on(ft.NETWORK_STATUS_CHANGE,e)},offNetworkStatusChange:function(e){j.off(ft.NETWORK_STATUS_CHANGE,e)},onGyroscopeChange:function(e){j.on(ft.GYROSCOPE_CHANGE,e)},offGyroscopeChange:function(e){j.off(ft.GYROSCOPE_CHANGE,e)},onKeyboardHeightChange:function(e){j.on(ft.ON_KEYBOARD_HEIGHT_CHANGE,e)},offKeyboardHeightChange:function(e){j.off(ft.ON_KEYBOARD_HEIGHT_CHANGE,e)},onMemoryWarning:function(e){j.on(ft.MEMORY_WARNING,e)},offMemoryWarning:function(e){j.off(ft.MEMORY_WARNING,e)},createCameraContext:function(){return new Fi(window.__webviewId__)},createVideoContext:function(e){return function(e,t){return new fa(e,t||window.__webviewId__)}(e)},createAudioContext:function(e){return function(e,t){return new Wi(e,t||window.__webviewId__)}(e)},createMapContext:function(e){return function(e){return new Ji(e,window.__webviewId__)}(e)},getFileSystemManager:function(){return new Aa},createSelectorQuery:function(){return new na(window.__webviewId__)},pageScrollTo:function(e){var t=e,r=function(e){return"number"==typeof e&&e>=0};if(t.scrollTop){if(!r(t.scrollTop))return ke("pageScrollTo",t,"parameter error: invalid scrollTop ".concat(t.scrollTop))}else t.scrollTop=0;if(t.duration){if(!r(t.duration))return ke("pageScrollTo",t,"parameter error: invalid duration ".concat(t.duration))}else t.duration=300;var n=S();return Fa[n]=t,t=Object.assign(t,{callbackId:n}),logicLayer.notifyViewLayer(ft.PAGE_SCROLL_TO,[__webviewId__],t),t.success||t.fail||t.complete?"":new Promise((function(e,r){t.success=e,t.fail=r,Ha.on("pageScrollRes",(function(e){e.callbackId===n&&(t.success({msg:t.errMsg}),t.fail({errMsg:t.errMsg}))}))}))},connectSocket:function(e){var t;return y(e)?Le(ft.CONNECT_SOCKET,e,{url:""})?(t=e.url,/^(ws|wss):\/\/.*/i.test(t)?(y(e.header)||(e.header={}),e.header=He(e.header),e.Referer&&delete e.Referer,st.invokeMethod(ft.CONNECT_SOCKET,e)):ke(ft.CONNECT_SOCKET,e,"parameter error: invalid url ".concat(e.url))):e.invalidParamObj:ke(ft.CONNECT_SOCKET,e,"parameter error: params must be object")},closeSocket:function(e){return function(){if(!_(e.code)){var t=parseInt(e.code);e.code=isNaN(t)?0:t}}(),st.invokeMethod(ft.CLOSE_SOCKET,e)},onSocketOpen:function(e){j.on(ft.ON_SOCKET_OPEN,e)},onSocketError:function(e){j.on(ft.ON_SOCKET_ERROR,e)},onSocketClose:function(e){var t=this;j.on(ft.ON_SOCKET_CLOSE,(function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];e.apply(t,n),j.off(ft.ON_SOCKET_OPEN),j.off(ft.ON_SOCKET_ERROR),j.off(ft.ON_SOCKET_MESSAGE),j.off(ft.ON_SOCKET_CLOSE)}))},onSocketMessage:function(e){j.on(ft.ON_SOCKET_MESSAGE,e)},sendSocketMessage:function(e){return st.invokeMethod(ft.SEND_SOCKET_MESSAGE,e)},getSetting:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return st.invokeMethod(ft.GET_PERMISSION_SETTING,e)},openSetting:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return st.invokeMethod(ft.OPEN_PERMISSION_SETTING,e)},authorize:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return st.invokeMethod(ft.PERMISSION_AUTHORIZE,e)},deauthorize:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return st.invokeMethod(ft.DELETE_PERMISSION_AUTHORIZE,e)},cancelAuthorize:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Be(ft.CANCLE_PERMISSION_AUTHORIZE,e,{scopes:[""]})){var t=et(e.scopes);return t.length?ke(ft.CANCLE_PERMISSION_AUTHORIZE,e,"parameter error: invalid scopes ".concat(t)):st.invokeMethod(ft.CANCLE_PERMISSION_AUTHORIZE,e)}return e.invalidParamObj},tradePay:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Be(ft.TRADE_PAY,e,{tradeNO:"",orderStr:"",sign:"",extendParam:""},{tradeNO:Wa,orderStr:Wa,sign:Wa,extendParam:xa})?st.invokeMethod(ft.TRADE_PAY,e):e.invalidParamObj},loadFontFace:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Le("loadFontFace",e,{source:"",family:""})?Je(e.source)?qe(e.source)?qa(e)?st.invokeMethod(ft.LOAD_FONT_FACE,e):ke(ft.LOAD_FONT_FACE,e,"parameter error: invalid desc ".concat(e.desc),{status:"error"}):ke(ft.LOAD_FONT_FACE,e,"parameter error: url should be TTF or WOFF",{status:"error"}):ke(ft.LOAD_FONT_FACE,e,"parameter error: invalid url ".concat(e.source),{status:"error"}):e.invalidParamObj},getRecorderManager:function(){return ja},playVoice:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Object.prototype.hasOwnProperty.call(e,"filePath")){if(Le("playVoice",e,{filePath:""}))return delete e.url,st.invokeMethod(ft.PLAY_VOICE,e)}else if(Le("playVoice",e,{url:""}))return ze(e.url)?st.invokeMethod(ft.PLAY_VOICE,e):ke(ft.PLAY_VOICE,e,"parameter error: invalid url ".concat(e.url));return e.invalidParamObj},stopVoice:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Le("stopVoice",e,{})&&st.invokeMethod(ft.STOP_VOICE,e),e.invalidParamObj},reportEvent:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e.pagePath=window.currUrl,Be(ft.REPORT_EVENT,e,{eventId:"",eventData:{}},{eventId:Wa,eventData:xa})){e.eventData||(e.eventData={});for(var t=Object.keys(e.eventData),r=0,n=t;r<n.length;r++){var o=n[r],i=e.eventData[o];if(!b(i)&&!p(i))return ke(ft.REPORT_EVENT,e,"parameter error: invalid value ".concat(i));p(i)&&(e.eventData[o]=Number(i.toFixed(6)))}return K.event(e)}return e.invalidParamObj},reportPerformance:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.pagePath=window.currUrl,Le(ft.REPORT_PERFORMANCE,e,{reportEvent:"",reportParams:{}})&&K.devPerformance(e),e.invalidParamObj},reportLog:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.pagePath=window.currUrl,t.level=null!==(e=t.level)&&void 0!==e?e:"info",Le(ft.REPORT_LOG,t,{level:""})){if(!["info","debug","error"].includes(t.level))return ke(ft.REPORT_LOG,t,"parameter error: invalid level ".concat(t.level));if(!y(t.log)&&!b(t.log))return ke(ft.REPORT_LOG,t,"parameter error: log should not be ".concat(d(t.log)));if(y(t.log)){if(!g(t))return ke(ft.REPORT_LOG,t,"parameter error: log should be serializable");t.log=JSON.stringify(t.log)}st.notifyNative(ft.REPORT_LOG,t)}return t.invalidParamObj},submitReport:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return st.invokeMethod(ft.SUBMIT_REPORT,e)},reportUserBehaviorBranchAnalytics:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Le("reportUserBehaviorBranchAnalytics",e,{})&&K.serverReport(e),e.invalidParamObj},getsmallappinfo:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return st.invokeMethod(ft.GET_SMALL_APP_INFO,e)},getOpenUserInfo:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return st.invokeMethod(ft.GET_OPEN_USER_INFO,e)},getAuthCode:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Me(ft.GET_AUTH_CODE,e,{scopes:[]})){var t=Xe(e.scopes);return t.length?ke(ft.GET_AUTH_CODE,e,"parameter error: invalid scopes ".concat(t),null,ge.Errno(Oe,Se,Te)):st.invokeMethod(ft.GET_AUTH_CODE,e)}return e.invalidParamObj}}),Qa={getSystemInfoSync:function(){var e=st.invokeSync(ft.GET_SYSTEMINFO_SYNC);return e&&JSON.parse(e)},getSystemSetting:function(){var e=st.invokeSync(ft.GET_SYSTEM_SETTING);return e&&JSON.parse(e)},getStorageSync:function(e){if(Le(ft.GET_STORAGE_SYNC,{key:e},{key:""})){var t,r=st.invokeSync(ft.GET_STORAGE_SYNC,{key:e});return r&&(null===(t=JSON.parse(r))||void 0===t?void 0:t.data)}return""},setStorageSync:function(e,t){(Le(ft.SET_STORAGE_SYNC,{key:e},{key:""})||t)&&st.invokeSync(ft.SET_STORAGE_SYNC,{key:e,data:t})},base64ToArrayBuffer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t={base64:e};if(Me(ft.BASE64_TO_ARRAYBUFFER,t,{base64:""})){if(!De(e))return ke(ft.BASE64_TO_ARRAYBUFFER,t,"parameter error: parameter base64 is invalid base64 string, please check it.",null,ge.Errno(Oe,Se,we));for(var r=atob(e),n=r.length,o=new Uint8Array(n),i=0;i<n;i++)o[i]=r.charCodeAt(i);return o.buffer}return t.invalidParamObj},arrayBufferToBase64:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Uint8Array,t=new Uint8Array(e),r=t.byteLength,n=new Array(r),o=0;o<r;o++)n[o]=String.fromCharCode(t[o]);var i=n.join("");return btoa(i)},nextTick:function(e){he((function(){setTimeout(e,0)}),"nextTick callBack error","thirdLogicError")()},isOnline:function(){return window.navigator.onLine},getLaunchOptionsSync:function(){var e=st.invokeSync(ft.GET_LAUNCH_OPTIONS_SYNC);return e&&JSON.parse(e)}};logicLayer.subscribe(ft.SEND_PAGE_SCROLL_RESULT,(function(e){var t=Fa[e.callbackId];t&&"function"==typeof t.success&&t.success({msg:e.errMsg}),t&&"function"==typeof t.complete&&t.complete({errMsg:e.errMsg}),Ha.emit("pageScrollRes",e)}));var Za,Xa=function(e,t){return st.invokeCustomMethod(e,t)};function ec(e){return ec="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ec(e)}function tc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function rc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?tc(Object(r),!0).forEach((function(t){nc(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function nc(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==ec(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!==ec(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===ec(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Xa(Za,e)}window.macleApi={register:function(e,t){$a[e]=function(e){return bridge.invokeMethod(Za,t(e))}}};var ic={get:function(e,t){if(t in e)return e[t];if(t==="webpackJsonp"||(typeof t==="string"&&t.startsWith("webpackChunk"))){e[t]=[];return e[t]}return Za=t,Qa[t]?he(Qa[t],t,"",!0):$a[t]?he($a[t],t):oc}};window.Proxy?window.ma=new Proxy({},ic):window.ma=rc(rc({},$a),Qa);var ac=Ei;function cc(e){return cc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cc(e)}function uc(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==cc(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!==cc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key,"string"),"symbol"===cc(o)?o:String(o)),n)}var o}var lc,sc=["onLaunch","onShow","onHide","onError","onPageNotFound","onUnhandledRejection","onThemeChange"],fc=function(e,t,r){return t&&uc(e.prototype,t),r&&uc(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(e){return function(){var n=(t[e]||me).bind(r);try{for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];n.apply(r,i)}catch(t){K.error({key:"App_lifeCycleMethod ",error:fe.formatReportError(t,pe),extend:"App catch error in lifeCycleMethod ".concat(e," function")})}}};sc.forEach((function(e){r[e]=n(e)}));var o=function(e){"Function"===d(t[e])?r[e]=n(e):r[e]=t[e]};for(var i in t)!sc.includes(i)&&o(i);Hn(),K.registerErrorListener(this.onError);var a=window.__maConfig?window.__maConfig:{};this.onLaunch(a),K.performance({type:"app",eventName:"onLaunch",path:"",timestamp:Date.now()});var c=function(e){this.onHide(e)},u=function(e){this.onShow(e)};ac.onAppShow((function(e){u.apply(r,[e])})),ac.onAppHide((function(e){c.apply(r,[e])}))}));function dc(e){return dc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dc(e)}function vc(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==dc(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!==dc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key,"string"),"symbol"===dc(o)?o:String(o)),n)}var o}var pc=["created","attached","moved","detached","ready"],_c=["properties","data","methods"],mc={mergeData:function(e,t,r){for(var n in t[r])y(t[r][n])&&"data"===r?e[r][n]=Object.assign(e[r][n]||{},t[r][n]):mc.hasProperty(e,n)||(e[r][n]=t[r][n])},hasProperty:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},hc=function(){function e(t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.properties=Object.create(null),this.data=Object.create(null),this.methods=Object.create(null),this.behaviors=t.behaviors,e.getBehaviorsProps(this,t),e.getSelfProps(this,t),this}var t,r,n;return t=e,r=[{key:"callLifeTimeFuncRecursively",value:function(e,t){pc.indexOf(t)>=0&&(this.behaviors&&this.behaviors.forEach((function(r){r.behaviors&&r.callLifeTimeFuncRecursively(e,t)})),this[t]&&this[t].apply(e))}}],n=[{key:"getBehaviorsProps",value:function(e,t){t.behaviors=t.behaviors||[],t.behaviors.forEach((function(t){t&&_c.forEach((function(r){mc.mergeData(e,t,r)}))}))}},{key:"getSelfProps",value:function(e,t){for(var r in _c.forEach((function(r){mc.mergeData(e,t,r)})),t)pc.indexOf(r)>=0&&(e[r]=t[r]);if(t.methods)for(var n in t.methods)e[n]=t.methods[n]}}],r&&vc(t.prototype,r),n&&vc(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),bc=hc,yc=function(e){return new bc(e)};function Ec(e){e.forEach((function(e){var r=_t(e),n=r&&r.__component__;n&&!n.__ready&&(n.__ready=!0,n.behaviors&&n.behaviors.forEach((function(e){e.callLifeTimeFuncRecursively(n,t.LIFECYCLE.READY)})),n.__beforeCreatedData&&n.runSetData(),n.ready())}))}ac.onWebviewEvent(he((function(e){return function(e,r,n){var o=pi.getPageStackObjs();if(!Object.prototype.hasOwnProperty.call(o,e))return Oo.warn("事件警告","OnWebviewEvent: ".concat(r,", WebviewId: ").concat(e," not found"));var i=o[e],a=i.page;if(r===t.DOM_READY)return a.__timing.domComplete=Date.now(),a.__timing.domAnalysisTime=a.__timing.domComplete-a.__timing.loadStart,K.performance({type:"page",eventName:"onReady",path:i.route,pageLoadingTime:a.__timing.domAnalysisTime,timestamp:Date.now()}),Ec(n.customIdList),a.__ready=!0,a.__beforeCreatedData&&a.runSetData(),a.onReady();if(r===t.PAGE_RERENDER)return Ec(n.customIdList);if(n&&n.__cid__&&n.__cid__!==e){var c=bo.getComponentObj(n.__cid__);return Oo.safeInvoke.call(c,r,n)}return Oo.safeInvoke.call(a,r,n)}(e.webviewId,e.eventName,e.data)}),"onWebviewEvent")),ac.onAppRoute(he((function(e){var t=e.path,r=e.openType;window.__webviewId__=e.webviewId;var n=window.__webviewId__,o={query:e.query||{},pageStack:e.pageStack||[]};pi.skipPage(t,n,o,r)}),"onAppRoute")),ac.onPullDownRefresh(he((function(e,t){pi.onPullDownRefresh(t)}),"onPullDownRefresh")),window.App=function(e){lc=new fc(e)},window.getApp=function(){return lc},window.Page=pi.initPage,window.getPage=pi.getPage,window.getCurrentPages=pi.getCurrentPages,window.Component=bo.initComponent,window.Behavior=yc,window.I18nPage=pi.initI18nPage,window.getI18nInstance=function(){return $o},window.initI18n=function(e){e.defaultLocale&&(zo=e.defaultLocale,qo())},window.onerror=go;var gc={},Oc="miniprogram_npm";function Sc(e){throw new Error(e)}function wc(e,t){var r=[];return e.split("/").forEach((function(e){""!==e&&"."!==e&&(".."===e?(!r.length&&Sc("can not find module : ".concat(t)),r.pop()):r.push(e))})),r.join("/")}function Tc(e){if(e&&__maConfig__.subPackages)for(var t=0,r=__maConfig__.subPackages.length;t<r;t++)if(0===e.indexOf(__maConfig__.subPackages[t].root))return __maConfig__.subPackages[t];return""}function Ac(e,t){var r=wc("".concat(e,"/index.js"),t);return gc[r]?r:(r=wc(e,t),/\.js$/.test(r)||(r+=".js"),gc[r]?r:"")}function Cc(e){if("string"!=typeof e)throw new Error("require path must be a string");var t=gc[e];if(!t)throw new Error("module ".concat(e," is not defined !"));if(!t.isExports){var r,n=t.factory,o={exports:{}};n&&(Object.assign(window,{eval:null}),r=n(function(e){var t=function(e){var t=e.match(/(.*)\/([^\/]+)?$/);return t&&t[1]?t[1]:"./"}(e);return function(r){"string"!=typeof r&&Sc("require path must be a string");var n=function(e,t,r){var n=/\.js$/.test(e)?e:"".concat(e,".js");if(gc[n])return n;var o=wc(t,r),i=e.substring(o.length);i="/"===i[0]?i:"/".concat(i);for(var a=o.split("/");a.length;){var c=Ac("".concat(a.join("/"),"/").concat(Oc).concat(i),r);if(c)return c;a.pop()}return Ac(Oc.concat(i),r)||r}(wc("".concat(t,"/").concat(r),r),t,r);return n||Sc("cannot find module ".concat(r)),window.__maConfig__&&__maConfig__.subPackages&&Tc(n)&&Tc(n)!==Tc(e)&&Sc("should not require ".concat(r," in ").concat(e," because they are in diffrent subPackages")),Cc(n)}}(e),o,o.exports)),t.exports=o.exports||r,t.isExports=!0}return t.exports}window.define=function(e,t){gc[e]={isExports:!1,factory:t}},window.require=Cc}()}();