all.js 170 KB

123456
  1. function __adsfsdaf99dsafsd090dsfsd__(){function e(e,t){t=[e][i[5]]([][i[6]][i[7]](t)),logger[i[8]][i[9]](logger,t)}function t(e,t){try{switch(t){case i[10]:case i[11]:return JSON[i[12]](e);case i[13]:return i[14]}}catch(e){return i[15]+e}return null===e||void 0===e?Object[i[16]].toString[i[7]](e):e[i[17]]()}function n(e,n){if(null===e||void 0===e)return[i[18]];if(1==arguments[i[19]])return[e[i[17]]()];typeof e!=i[20]&&(e=e[i[17]]());for(var o=/(.*?)%(.)(.*)/,r=e,s=[];n[i[19]];){var a=o[i[21]](r);if(!a)break;var c=n[i[22]]();r=a[3],s[i[23]](a[1]),a[2]!=i[24]?s[i[23]](t(c,a[2])):(s[i[23]](i[24]),n[i[26]](c))}s[i[23]](r);var u=[][i[6]][i[7]](n);return u[i[26]](s[i[27]](i[14])),u}var i=["plus","tools","bridge","Console","console","concat","slice","call","logLevel","apply","j","o","stringify","c","","error JSON.stringify()ing argument: ","prototype","toString","","length","string","exec","shift","push","%","%","unshift","join","","log","LOG","info","INFO","warn","WARN","error","ERROR","assert","ASSERT:","clear","clear","time","valueOf","timeEnd","Timer [",": ","ms]","format","logLevel"," ","debug","addEventListener","error","message","\rfilename:","filename","\rlineno:","lineno"],o=(window[i[0]][i[1]],window[i[0]]);B=window[i[0]][i[2]],_LOGF=i[3],winConsole=window[i[4]],Timers={},logger={},logger[i[29]]=function(t){e(i[30],arguments)},logger[i[31]]=function(t){e(i[32],arguments)},logger[i[33]]=function(t){e(i[34],arguments)},logger[i[35]]=function(t){e(i[36],arguments)},logger[i[37]]=function(e){if(!e){var t=vformat([][i[6]][i[7]](arguments,1));throw logger[i[29]](i[38]+t),new Error(t)}},logger[i[39]]=function(){B[i[21]](_LOGF,i[40],0)},logger[i[41]]=function(e){Timers[e]=(new Date)[i[42]]()},logger[i[43]]=function(e){var t=Timers[e];if(t){var n=(new Date)[i[42]]()-t;logger[i[29]](i[44]+e+i[45]+n+i[46])}},logger[i[8]]=function(e){var t=[][i[6]][i[7]](arguments,1),n=logger[i[47]][i[9]](logger[i[47]],t);B[i[21]](_LOGF,i[48],[e,n])},logger[i[47]]=function(e,t){return n(arguments[0],[][i[6]][i[7]](arguments,1))[i[27]](i[49])},o[i[4]]={},o[i[4]][i[29]]=function(){},o[i[4]][i[31]]=function(){},o[i[4]][i[35]]=function(){},o[i[4]][i[33]]=function(){},o[i[4]][i[37]]=function(){},o[i[4]][i[39]]=function(){},o[i[4]][i[41]]=function(){},o[i[4]][i[43]]=function(){},o[i[1]][i[50]]&&(window[i[4]][i[29]]=logger[i[29]],window[i[4]][i[31]]=logger[i[31]],window[i[4]][i[35]]=logger[i[35]],window[i[4]][i[33]]=logger[i[33]],window[i[51]](i[52],function(e){var t=e[i[53]]+i[54]+e[i[55]]+i[56]+e[i[57]];window[i[4]][i[35]](t)}))}if(!window.plus||window.plus&&!window.plus.isReady){var type=typeof window.plus;"function"==type||"object"==type?(window.plus.isReady=!0,navigator.plus=window.__html5plus__=window.plus):window.__html5plus__=window.plus=navigator.plus={isReady:!0}}!function(e){var t=e.tools={__UUID__:0,UNKNOWN:-1,IOS:0,ANDROID:1,platform:-1,debug:!1,UUID:function(e){return e+this.__UUID__+++(new Date).valueOf()},extend:function(e,t){for(var n in t)e[n]=t[n]},typeName:function(e){return Object.prototype.toString.call(e).slice(8,-1)},isDate:function(e){return"Date"==t.typeName(e)},isArray:function(e){return"Array"==t.typeName(e)},isDebug:function(){return e.tools.debug},stringify:function(e){return window.JSON3?window.JSON3.stringify(e):JSON.stringify(e)},isNumber:function(e){return"number"==typeof e||e instanceof Number},getElementOffsetInWebview:function(e,t){for(var n=0,i=e;i;)n+=i[t],i=i.offsetParent;return n},getElementOffsetXInWebview:function(e){return t.getElementOffsetInWebview(e,"offsetLeft")},getElementOffsetYInWebview:function(e){return t.getElementOffsetInWebview(e,"offsetTop")},execJSfile:function(e){function t(e){var n=document.head,i=document.body;n?n.insertBefore(e,n.firstChild):i?i.insertBefore(e,i.firstChild):setTimeout(function(){t(e)},100)}var n=document.createElement("script");n.type="text/javascript",n.src=e,t(n)},copyObjProp2Obj:function(e,t,n){var i=n instanceof Array;for(var o in t){var r=!0;if(i)for(var s=0;s<n.length;s++)if(o==n[s]){r=!1;break}r?e[o]=t[o]:r=!0}},clone:function(e){if(!e||"function"==typeof e||t.isDate(e)||"object"!=typeof e)return e;var n,i;if(t.isArray(e)){for(n=[],i=0;i<e.length;++i)n.push(t.clone(e[i]));return n}n={};for(i in e)i in n&&n[i]==e[i]||(n[i]=t.clone(e[i]));return n}};t.debug=!(!window.__nativeparamer__||!window.__nativeparamer__.debug),t.platform=window._____platform_____}(window.plus),function(plus){window.__prompt__=window.prompt;var T=plus.tools,B=plus.bridge={NO_RESULT:0,OK:1,CLASS_NOT_FOUND_EXCEPTION:2,ILLEGAL_ACCESS_EXCEPTION:3,INSTANTIATION_EXCEPTION:4,MALFORMED_URL_EXCEPTION:5,IO_EXCEPTION:6,INVALID_ACTION:7,JSON_EXCEPTION:8,ERROR:9,callbacks:{},isInEvalJs:0,exec:function(e,t,n,i,o){if(n&&n.push(i),T.IOS==T.platform){if(window.webkit&&window.webkit.messageHandlers)return void window.webkit.messageHandlers.plus.postMessage(T.stringify([window.__HtMl_Id__,e,t,i||null,n]));"function"==typeof __dc_plus_Command_&&__dc_plus_Command_(T.stringify([window.__HtMl_Id__,e,t,i||null,n]))}else T.ANDROID==T.platform&&(o||window._____platform_os_version_____&&window._____platform_os_version_____<21?window.__prompt__(T.stringify(n),"pdr:"+T.stringify([e,t,!0])):window._bridge.prompt(T.stringify(n),"pdr:"+T.stringify([e,t,!0])))},execSync2:function(e,t,n,i,o){try{if(T.IOS==T.platform&&"function"==typeof __dc__plusGo){var r=T.stringify([window.__HtMl_Id__,e,t,null,n]),s=__dc__plusGo(r);return i?i(s):window.eval(s)}}catch(n){console.log("sf:"+t+"-"+e)}return B.execSync(e,t,n,i,o)},execSync:function(service,action,args,fn,force){if(T.IOS==T.platform){if("function"==typeof __dc__plusGo){var json=T.stringify([window.__HtMl_Id__,service,action,null,args]),ret=__dc__plusGo(json);return fn?fn(ret):window.eval(ret)}try{if(window.webkit&&window.webkit.messageHandlers){var json=T.stringify([window.__HtMl_Id__,service,action,null,args]),retValue=prompt(json,"__dc__plusGo:");return fn?fn(retValue):window.eval(retValue)}}catch(e){console.log("sf:"+action+"-"+service)}return window.eval(sync.responseText)}if(T.ANDROID==T.platform){var ret;return ret=force||window._____platform_os_version_____&&window._____platform_os_version_____<21?window.__prompt__(T.stringify(args),"pdr:"+T.stringify([service,action,!1])):window._bridge.prompt(T.stringify(args),"pdr:"+T.stringify([service,action,!1])),fn?fn(ret):eval(ret)}},callbackFromNative:function(e,t){var n=B.callbacks[e];n&&(t.status==B.OK&&n.success?n.success&&n.success(t.message):n.fail&&n.fail(t.message),t.keepCallback||delete B.callbacks[e])},callbackId:function(e,t){var n=T.UUID("plus");return B.callbacks[n]={success:e,fail:t},n}}}(window.plus),plus.obj=plus.obj||{},plus.obj.Callback=function(){function e(){var e=this;e.__callbacks__={},e.__callback_id__=plus.bridge.callbackId(function(t){var n=t.evt,i=t.args,o=e.__callbacks__[n];if(o)for(var r=o.length,s=0;s<r;s++)e.onCallback(o[s],n,i)})}return e.prototype.addEventListener=function(e,t,n){var i=!1,o=this;return t&&(o.__callbacks__[e]||(o.__callbacks__[e]=[],i=!0),o.__callbacks__[e].push(t)),i},e.prototype.removeEventListener=function(e,t){var n=!1,i=this;return i.__callbacks__[e]&&(i.__callbacks__[e].pop(t),(n=0===i.__callbacks__[e].length)&&(i.__callbacks__[e]=null)),n},e}(),function(e,t){function n(e){var t=s.callbackId(function(e){var t=_.slice(0);f=new d(e.x,e.y,e.z);for(var n=0,i=t.length;n<i;n++)t[n].win(f)},function(e){for(var t=_.slice(0),n=0,i=t.length;n<i;n++)t[n].fail(e)});s.exec(c,"start",[t,e]),u=!0}function i(){s.exec(c,"stop",[]),u=!1}function o(e,t){return{win:e,fail:t}}function r(e){var t=_.indexOf(e);t>-1&&(_.splice(t,1),0===_.length&&i())}var e=e,s=e.bridge,a=e.tools,c="Accelerometer",u=!1,l={},_=[],f=null,d=function(e,t,n){this.xAxis=e,this.yAxis=t,this.zAxis=n},h={getCurrentAcceleration:function(e,t,i){var s=o(function(t){r(s),e(t)},function(e){r(s),t&&t(e)});_.push(s),u||n(-1)},watchAcceleration:function(e,i,s){var c=s&&s.frequency&&"number"==typeof s.frequency?s.frequency:500,d=a.UUID("watch"),h=o(function(){},function(e){r(h),i&&i(e)});return _.push(h),l[d]={timer:t.setInterval(function(){f&&e(f)},c),listeners:h},u?f&&e(f):n(c),d},clearWatch:function(e){e&&l[e]&&(t.clearInterval(l[e].timer),r(l[e].listeners),delete l[e])}};e.accelerometer=h}(this.plus,this),function(e){var e=e,t=e.bridge,n=e.tools;e.audio={getRecorder:function(){var e={_Audio_UUID__:n.UUID("Record"),supportedFormats:["amr","3gp","aac"],supportedSamplerates:[44100,16e3,8e3],record:function(e,n,i){var o=t.callbackId(n,i);t.exec("Audio","RecorderExecMethod",["record",[this._Audio_UUID__,o,e]])},stop:function(){t.exec("Audio","RecorderExecMethod",["stop",[this._Audio_UUID__]])},pause:function(){t.exec("Audio","RecorderExecMethod",["pause",[this._Audio_UUID__]])},resume:function(){t.exec("Audio","RecorderExecMethod",["resume",[this._Audio_UUID__]])}};return n.IOS==n.platform&&(e.supportedFormats=["wav","aac","amr","mp3"]),e},createPlayer:function(e){var i={_Player_Param:e,_Audio_Player_UUID_:n.UUID("Player"),play:function(e,n){var i=t.callbackId(e,n);t.exec("Audio","AudioExecMethod",["play",[this._Audio_Player_UUID_,i]])},pause:function(){t.exec("Audio","AudioExecMethod",["pause",[this._Audio_Player_UUID_]])},resume:function(){t.exec("Audio","AudioExecMethod",["resume",[this._Audio_Player_UUID_]])},stop:function(){t.exec("Audio","AudioExecMethod",["stop",[this._Audio_Player_UUID_]])},seekTo:function(e){t.exec("Audio","AudioExecMethod",["seekTo",[this._Audio_Player_UUID_,e]])},getDuration:function(){return t.execSync2("Audio","AudioSyncExecMethod",["getDuration",[this._Audio_Player_UUID_]])},getPosition:function(){return t.execSync2("Audio","AudioSyncExecMethod",["getPosition",[this._Audio_Player_UUID_]])},setRoute:function(e){t.exec("Audio","AudioExecMethod",["setRoute",[this._Audio_Player_UUID_,e]])},setSessionCategory:function(e){n.IOS==n.platform&&t.exec("Audio","AudioExecMethod",["setSessionCategory",[this._Audio_Player_UUID_,e]])},isPaused:function(){return t.execSync2("Audio","AudioSyncExecMethod",["getPaused",[this._Audio_Player_UUID_]])},getBuffered:function(){return t.execSync2("Audio","AudioSyncExecMethod",["getBuffered",[this._Audio_Player_UUID_]])},getStyles:function(e){return t.execSync2("Audio","AudioSyncExecMethod",["getStyles",[this._Audio_Player_UUID_,e]])},setStyles:function(e){t.exec("Audio","AudioExecMethod",["setStyles",[this._Audio_Player_UUID_,e]])},addEventListener:function(e,n){var i=t.callbackId(n);t.exec("Audio","AudioExecMethod",["addEventListener",[this._Audio_Player_UUID_,e,i]])},removeEventListener:function(e){t.exec("Audio","AudioExecMethod",["removeEventListener",[this._Audio_Player_UUID_,e]])},close:function(){t.exec("Audio","AudioExecMethod",["close",[this._Audio_Player_UUID_]])}},o={};return"string"==typeof i._Player_Param?o.src=i._Player_Param:o=i._Player_Param,t.execSync("Audio","AudioSyncExecMethod",["CreatePlayer",[i._Audio_Player_UUID_,o]]),i},ROUTE_SPEAKER:0,ROUTE_EARPIECE:1}}(window.plus),function(e){function t(e,t,n,i,a){var c=this;c.IDENTITY=o,c.onmarked=null,c.onerror=null,c.isClose=!1,c.__uuid__=r.UUID("bc"),c.callbackId=null;var u=null;this.id=void 0!=i?i:c.__uuid__,this.callbackId=s.callbackId(function(e){"function"==typeof c.onmarked&&c.onmarked(e.type,e.message,e.file)},function(e){"function"==typeof c.onerror&&c.onerror(e)}),div=document.getElementById(e),null!=div&&void 0!=div&&(div.addEventListener("resize",function(){var e=[div.offsetLeft,div.offsetTop,div.offsetWidth,div.offsetHeight];s.exec(o,"resize",[e])},!1),u=[div.offsetLeft,div.offsetTop,div.offsetWidth,div.offsetHeight]);var l=!0;void 0==a||null==a||a||(l=!1),l&&s.exec(o,"Barcode",[this.__uuid__,this.callbackId,this.id,u,t,n])}function n(t,n,i){var o=new e.barcode.Barcode(null,n,i,t,!0);return a[o.__uuid__]=o,a[o.__uuid__]}function i(t){if(t&&"string"==typeof t){var n=s.execSync(o,"getBarcodeById",[t]);if(null!=n&&null!=n.uuid){if(a[n.uuid])return a[n.uuid];if(null!=n&&void 0!=n){var i=new e.barcode.Barcode(null,n.filters,n.options,t,!1);return i.__uuid__=n.uuid,s.exec(o,"addCallBack",[i.__uuid__,i.callbackId]),a[i.__uuid__]=i,i}return null}}}var e=e,o="barcode",r=e.tools,s=e.bridge,a={},c=t.prototype;c.setStyle=function(e){this.isClose||s.exec(o,"setStyle",[this.__uuid__,e])},c.start=function(e){this.isClose||s.exec(o,"start",[this.__uuid__,e])},c.setFlash=function(e){this.isClose||s.exec(o,"setFlash",[this.__uuid__,e])},c.cancel=function(){this.isClose||s.exec(o,"cancel",[this.__uuid__])},c.close=function(){this.isClose||(s.exec(o,"close",[this.__uuid__]),this.isClose=!0)};var u={Barcode:t,create:n,getBarcodeById:i,scan:function(e,t,n,i){var r="function"!=typeof t?null:function(e){t(e.type,e.message,e.file)},a="function"!=typeof n?null:function(e){n(e)},c=s.callbackId(r,a);s.exec(o,"scan",[c,e,i])}};u.QR=0,u.EAN13=1,u.EAN8=2,u.AZTEC=3,u.DATAMATRIX=4,u.UPCA=5,u.UPCE=6,u.CODABAR=7,u.CODE39=8,u.CODE93=9,u.CODE128=10,u.ITF=11,u.MAXICODE=12,u.PDF417=13,u.RSS14=14,u.RSSEXPANDED=15,e.barcode=u}(window.plus),function(e){var e=e,t=e.bridge,n="Cache";e.cache={clear:function(e){var i=t.callbackId(function(t){e&&e()},null);window.localStorage.clear(),window.sessionStorage.clear(),t.exec(n,"clear",[i])},calculate:function(e){var i=t.callbackId(function(t){e&&e(t)},null);t.exec(n,"calculate",[i])},setMaxSize:function(e){t.exec(n,"setMaxSize",[e])}}}(window.plus),function(e){function t(){this.index=1,this.__busy__=!1,this.supportedImageResolutions=[],this.supportedVideoResolutions=[],this.supportedImageFormats=[],this.supportedVideoFormats=[]}var n,e=e,i=e.bridge,o=t.prototype;o.captureImage=function(e,t,n){var o=this;if(!o.__busy__){var r="function"!=typeof e?null:function(t){o.__busy__=!1,e(t)},s="function"!=typeof t?null:function(e){o.__busy__=!1,t(e)},a=i.callbackId(r,s);n||(n={}),n.index||(n.index=this.index),i.exec("Camera","captureImage",[a,n])}},o.startVideoCapture=function(e,t,n){var o=this;if(!o.__busy__){var r="function"!=typeof e?null:function(t){o.__busy__=!1,e(t)},s="function"!=typeof t?null:function(e){o.__busy__=!1,t(e)},a=i.callbackId(r,s);n||(n={}),n.index||(n.index=this.index),i.exec("Camera","startVideoCapture",[a,n])}},o.stopVideoCapture=function(){i.exec("Camera","stopVideoCapture",[])};var r={getCamera:function(e){if(n)return n;n=new t,n.index=e;var o=i.execSync("Camera","getCamera",[n.__UUID__,e]);return o?(n.supportedImageFormats=o.supportedImageFormats,n.supportedVideoFormats=o.supportedVideoFormats,n.supportedImageResolutions=o.supportedImageResolutions,n.supportedVideoResolutions=o.supportedVideoResolutions):(n.supportedImageFormats=["png","jpg"],n.supportedImageResolutions=["640*480","1280*720","960*540","high","medium","low"],n.supportedVideoFormats=["mp4"],n.supportedVideoResolutions=["640*480","1280*720","960*540"]),n}};e.camera=r}(window.plus),plus.__updateStartArgs=function(e){e.debug?__adsfsdaf99dsafsd090dsfsd__():(plus.console={},plus.console.log=function(){},plus.console.info=function(){},plus.console.error=function(){},plus.console.warn=function(){},plus.console.assert=function(){},plus.console.clear=function(){},plus.console.time=function(){},plus.console.timeEnd=function(){}),plus.runtime&&(plus.runtime.isRecovery=e.isRecovery)},plus.__updateStartArgs(plus.tools),function(e){function t(e,t,n,i,o,r,s,a,c,u,l,_,f,d,h){this.id=e||null,this.rawId=h||null,this.target=0,this.displayName=t||null,this.name=n||null,this.nickname=i||null,this.phoneNumbers=o||null,this.emails=r||null,this.addresses=s||null,this.ims=a||null,this.organizations=c||null,this.birthday=u||null,this.note=l||null,this.photos=_||null,this.categories=f||null,this.urls=d||null}function n(e,t){function n(e,t){if(e&&t)for(var n=e.length,i=0;i<n;++i)t[i].id=e[i].id}t.id=e.id,n(e.phoneNumbers,t.phoneNumbers),n(e.emails,t.emails),n(e.addresses,t.addresses),n(e.ims,t.ims),n(e.organizations,t.organizations),n(e.categories,t.categories),n(e.photos,t.photos),n(e.urls,t.urls)}function i(e){var t=e.birthday;try{u.isDate(t)||(e.birthday=new Date(parseFloat(t)))}catch(e){console.log("Cordova Contact convertIn error: exception creating date.")}return e}function o(e){var t=e.birthday;if(null!==t){if(!u.isDate(t))try{t=new Date(t)}catch(e){t=null}u.isDate(t)&&(t=t.valueOf()),e.birthday=t}return e}function r(e){this.type=e}var s,a,e=e,c=e.bridge,u=e.tools,l=function(e){this.code=e||null};l.UNKNOWN_ERROR=0,l.INVALID_ARGUMENT_ERROR=1,l.TIMEOUT_ERROR=2,l.PENDING_OPERATION_ERROR=3,l.IO_ERROR=4,l.NOT_SUPPORTED_ERROR=5,l.PERMISSION_DENIED_ERROR=20;var _=t.prototype;_.remove=function(e,t){var n=t&&function(e){t(new l(e))};if(null===this.id)n(l.UNKNOWN_ERROR);else{var i=c.callbackId(e,n);c.exec("Contacts","remove",[i,this.id,this.target],{cbid:i})}},_.clone=function(){function e(e){if(e)for(var t=e.length,n=0;n<t;++n)e[n].id=null}var t=u.clone(this);return t.id=null,e(t.phoneNumbers),e(t.emails),e(t.addresses),e(t.ims),e(t.organizations),e(t.categories),e(t.photos),e(t.urls),t},_.save=function(e,t){var r=this,_=function(e){t&&t(new l(e))},f=function(t){if(t)try{var o=0==r.target?s.create(t):a.create(t);e&&(n(i(o),r),e(r))}catch(e){console.log(e)}else _(l.UNKNOWN_ERROR)},d=o(u.clone(this)),h=c.callbackId(f,_);c.exec("Contacts","save",[h,d,this.target],{cbid:h})};var f=r.prototype;f.create=function(e){var n=new t;n.target=this.type;for(var i in e)void 0!==n[i]&&e.hasOwnProperty(i)&&(n[i]=e[i]);return n},f.find=function(e,t,n,i){var o=function(e){for(var n=[],i=0,o=e.length;i<o;i++)n.push(s.create(e[i]));t(n)},r=c.callbackId(o,n);c.exec("Contacts","search",[r,e,i],{cbid:r})};var d=e.contacts={getAddressBook:function(e,t,n){0===e&&1===e||(e=0);var i=function(n){t&&(d.ADDRESSBOOK_PHONE==e?(s=s||new r(0),t(s)):(a=a||new r(1),t(s)))},o=function(e){n(new l(e))},u=c.callbackId(i,o);c.exec("Contacts","getAddressBook",[u,e],{cbid:u})},ADDRESSBOOK_PHONE:0,ADDRESSBOOK_SIM:1}}(window.plus),function(e){var e=e,t=e.bridge;e.device={imei:"",imsi:[],model:"",vendor:"",uuid:"",dial:function(e,n){t.exec("Device","dial",[e,n])},beep:function(e){t.exec("Device","beep",[e])},vibrate:function(e){t.exec("Device","vibrate",[e])},setWakelock:function(e){t.exec("Device","setWakelock",[e])},isWakelock:function(){return t.execSync("Device","isWakelock",[])},setVolume:function(e){t.execSync("Device","setVolume",[e])},getVolume:function(){return t.execSync("Device","getVolume",[])},execCallback:function(e,n){var i="function"!=typeof e.complete?function(){}:e.complete,o="function"!=typeof e.success?i:function(t){e.success(t),i(t)},r="function"!=typeof e.fail?i:function(t){e.fail(t),i(t)};callbackID=t.callbackId(o,r),t.exec("Device",n,[callbackID])},getInfo:function(e){this.execCallback(e,"getInfo")},getOAID:function(e){this.execCallback(e,"getOAID")},getVAID:function(e){this.execCallback(e,"getVAID")},getAAID:function(e){this.execCallback(e,"getAAID")}},e.os={language:"",version:"",name:"",vendor:""},e.screen={resolutionHeight:0,resolutionWidth:0,scale:1,dpiX:0,dpiY:0,height:0,width:0,setBrightness:function(e){t.execSync("Device","setBrightness",[e])},lockOrientation:function(e){t.exec("Device","lockOrientation",[e])},unlockOrientation:function(){t.exec("Device","unlockOrientation",[])},getBrightness:function(){return t.execSync("Device","getBrightness",[])},getCureentSize:function(){return t.execSync("Device","getCurrentSize",[])},getCurrentSize:function(){return t.execSync("Device","getCurrentSize",[])},isCaptured:function(){return t.execSync("Device","isCaptured",[])}},e.display={resolutionHeight:0,resolutionWidth:0},e.networkinfo={getCurrentType:function(){return e.tools.IOS==e.tools.platform?e.networkinfo.CONNECTION_TYPE:e.tools.ANDROID==e.tools.platform?t.execSync("Device","getCurrentType",null):void 0},getCurrentAPN:function(){return t.execSync("Device","getCurrentAPN",null)}},e.networkinfo.CONNECTION_TYPE=0,e.networkinfo.CONNECTION_UNKNOW=0,e.networkinfo.CONNECTION_NONE=1,e.networkinfo.CONNECTION_ETHERNET=2,e.networkinfo.CONNECTION_WIFI=3,e.networkinfo.CONNECTION_CELL2G=4,e.networkinfo.CONNECTION_CELL3G=5,e.networkinfo.CONNECTION_CELL4G=6}(window.plus),function(e){function t(e,t,n){this.type=r.getValue(e,""),this.handles=[],this.capture=r.getValue(n,!1),"function"==typeof t&&this.handles.push(t)}function n(e,t,n){var i=this;i.id=o.UUID("dt"),i.url=r.getValue(e,""),i.downloadedSize=0,i.totalSize=0,i.options=t||{},i.filename=r.getValue(i.options.filename,""),i.method=r.getValue(i.options.method,"GET"),i.timeout=r.getValue(i.options.timeout,120),i.retry=r.getValue(i.options.retry,3),i.retryInterval=r.getValue(i.options.retryInterval,30),i.priority=r.getValue(i.options.priority,1),i.onCompleted=n||null,i.eventHandlers={},i.data=r.getValue(i.options.data,null),i.__requestHeaders__={},i.__responseHeaders__={},i.__noParseResponseHeader__=null,i.__cacheReponseHeaders__={}}var e=e,i=e.bridge,o=e.tools,r={server:"Downloader",getValue:function(e,t){return void 0===e?t:e}};t.prototype.fire=function(e){for(var t=0;t<this.handles.length;++t)this.handles[t].apply(this,arguments)};var s=n.prototype;s.getFileName=function(){return this.filename},s.start=function(){i.exec(r.server,"start",[this.id,this.__requestHeaders__])},s.pause=function(){i.exec(r.server,"pause",[this.id])},s.resume=function(){i.exec(r.server,"resume",[this.id])},s.abort=function(){i.exec(r.server,"abort",[this.id])},s.getAllResponseHeaders=function(){if(this.__noParseResponseHeader__)return this.__noParseResponseHeader__;var e="";for(var t in this.__responseHeaders__)e=e+t+" : "+this.__responseHeaders__[t]+"\r\n";return this.__noParseResponseHeader__=e,this.__noParseResponseHeader__},s.getResponseHeader=function(e){if("string"==typeof e){var t=null;if(e=e.toLowerCase(),t=this.__cacheReponseHeaders__[e])return t;for(var n in this.__responseHeaders__){var i=this.__responseHeaders__[n];n=n.toLowerCase(),e===n&&(t=t?t+", "+i:i)}return this.__cacheReponseHeaders__[e]=t,t}return""},s.setRequestHeader=function(e,t){if("string"==typeof e&&"string"==typeof t){var n=this.__requestHeaders__[e];this.__requestHeaders__[e]=n?n+", "+t:t}},s.addEventListener=function(e,n,i){if("string"==typeof e&&"function"==typeof n){var o=e.toLowerCase();void 0===this.eventHandlers[o]?this.eventHandlers[o]=new t(e,n,i):this.eventHandlers[o].handles.push(n)}},s.__handlerEvt__=function(e){var t=this;t.filename=r.getValue(e.filename,t.filename),t.state=r.getValue(e.state,t.state),t.downloadedSize=r.getValue(e.downloadedSize,t.downloadedSize),t.totalSize=r.getValue(e.totalSize,t.totalSize),t.__responseHeaders__=r.getValue(e.headers,{}),4==t.state&&"function"==typeof t.onCompleted&&t.onCompleted(t,e.status||null);var n=this.eventHandlers.statechanged;n&&n.fire(t,e.status||null)};var a=e.downloader={__taskList__:[],createDownload:function(e,t,o){if("string"==typeof e){var s=new n(e,t,o);return a.__taskList__[s.id]=s,i.exec(r.server,"createDownload",[s]),s}return null},enumerate:function(e,t){var o=i.callbackId(function(t){for(var i=[],o=t.length,s=0,c=a.__taskList__;s<o;s++){var u=t[s];if(u&&u.uuid){var l=c[u.uuid];l||(l=new n,l.id=u.uuid,c[l.id]=l),l.state=r.getValue(u.state,l.state),l.options=r.getValue(u.options,l.options),l.filename=r.getValue(u.filename,l.filename),l.url=r.getValue(u.url,l.url),l.downloadedSize=r.getValue(u.downloadedSize,l.downloadedSize),l.totalSize=r.getValue(u.totalSize,l.totalSize),l.__responseHeaders__=r.getValue(t.headers,l.__responseHeaders__),i.push(l)}}"function"==typeof e&&e(i)});i.exec(r.server,"enumerate",[o,t])},clear:function(e){var t=-1e4;("number"==typeof e||e instanceof Number)&&(t=e),i.exec(r.server,"clear",[t])},startAll:function(){i.exec(r.server,"startAll",[0])},__handlerEvt__:function(e,t){var n=a.__taskList__[e];n&&(6==t.state&&delete a.__taskList__[e],n.__handlerEvt__(t))}}}(window.plus),function(e){function t(e,t){this.code=e,this.message=t,this.UNSUPPORT=1,this.KEYGUARD_INSECURE=2,this.FINGERPRINT_UNENROLLED=3,this.AUTHENTICATE_MISMATCH=4,this.AUTHENTICATE_OVERLIMIT=5,this.CANCEL=6,this.UNKNOWN_ERROR=7}var e=e,n=e.bridge;e.fingerprint={isSupport:function(){return n.execSync("fingerprint","isSupport")},isEnrolledFingerprints:function(){return n.execSync("fingerprint","isEnrolledFingerprints")},isKeyguardSecure:function(){return n.execSync("fingerprint","isKeyguardSecure")},authenticate:function(e,i,o){var r="function"!=typeof e?null:function(t){e(t)},s="function"!=typeof i?null:function(e){i(new t(e.code,e.message))};callbackID=n.callbackId(r,s),n.exec("fingerprint","authenticate",[callbackID,o])},cancel:function(){return n.exec("fingerprint","cancel")}}}(window.plus),function(e){function t(e,t){this.code=e||null,this.message=t||""}var e=e,n=e.bridge,i={Ready:0,Busy:1};t.BUSY=1;var o=e.gallery={__galleryStatus:i.Ready,onPickImageFinished:null,pick:function(e,r,s){if(i.Busy==o.__galleryStatus)return void window.setTimeout(function(){"function"==typeof r&&r(new t(t.BUSY,"已经打开了相册"))},0);o.__galleryStatus=i.Busy;var a=n.callbackId(function(t){if(o.__galleryStatus=i.Ready,"function"==typeof e)if(t&&t.multiple){var n={};n.files=t.files,e(n)}else e(t.files[0])},function(e){o.__galleryStatus=i.Ready,"function"==typeof r&&r(e)}),c=n.callbackId(function(){"function"==typeof s.onmaxed&&s.onmaxed()});n.exec("Gallery","pick",[a,s,c],{cbid:a})},save:function(e,t,i){if("string"==typeof e){var o=n.callbackId(function(e){"function"==typeof t&&t(e)},function(e){"function"==typeof i&&i(e)});return n.exec("Gallery","save",[e,o],{cbid:o}),!0}return!1}}}(window.plus),function(e){function t(e,t,n,i,o,r,s){this.latitude=e,this.longitude=t,this.accuracy=void 0!==i?i:null,this.altitude=void 0!==n?n:null,this.heading=void 0!==o?o:null,this.speed=void 0!==r?r:null,0!==this.speed&&null!==this.speed||(this.heading=NaN),this.altitudeAccuracy=void 0!==s?s:null}function n(e,n){e?(this.coordsType=e.coordsType,this.address=e.address,this.addresses=e.addresses,this.coords=new t(e.latitude,e.longitude,e.altitude,e.accuracy,e.heading,e.velocity,e.altitudeAccuracy)):this.coords=new t,this.timestamp=void 0!==n?n:(new Date).getTime()}function i(e,t){this.code=e||null,this.message=t||""}function o(e){var t={maximumAge:0,enableHighAccuracy:!1,timeout:1/0,geocode:!0};return e&&(void 0!==e.maximumAge&&!isNaN(e.maximumAge)&&e.maximumAge>0&&(t.maximumAge=e.maximumAge),void 0!==e.enableHighAccuracy&&(t.enableHighAccuracy=e.enableHighAccuracy),void 0===e.timeout||isNaN(e.timeout)||(e.timeout<0?t.timeout=0:t.timeout=e.timeout),e.coordsType&&(t.coordsType=e.coordsType),e.provider&&(t.provider=e.provider),void 0!==e.geocode&&(t.geocode=e.geocode)),t}function r(e,t){var n=setTimeout(function(){s(n),n=null,e(new i(i.TIMEOUT,"Position retrieval timed out."))},t);return n}function s(e){!0!==e&&clearTimeout(e)}function a(e,t,a,l){a=o(a);var _={timer:null},d=function(t){if(s(_.timer),_.timer){var i=new n({latitude:t.latitude,longitude:t.longitude,altitude:t.altitude,accuracy:t.accuracy,heading:t.heading,velocity:t.velocity,coordsType:t.coordsType,address:t.address,addresses:t.addresses,altitudeAccuracy:t.altitudeAccuracy},void 0===t.timestamp?(new Date).getTime():t.timestamp instanceof Date?t.timestamp.getTime():t.timestamp);f.lastPosition=i,e(i)}},h=function(e){s(_.timer),_.timer=null;var n=new i(e.code,e.message);t&&t(n)};if(f.lastPosition&&a.maximumAge&&(new Date).getTime()-f.lastPosition.timestamp<=a.maximumAge)e(f.lastPosition);else if(0===a.timeout)h(new i(i.TIMEOUT,"timeout value in PositionOptions set to 0 and no cached Position object available, or cached Position object's age exceeds provided PositionOptions' maximumAge parameter."));else if(a.timeout!==1/0?_.timer=r(h,a.timeout):_.timer=!0,l){var p=u.callbackId(d,h);u.exec(c,"getCurrentPosition",[p,a.enableHighAccuracy,a.maximumAge,a.coordsType,a.provider,a.geocode,a.timeout],{cbid:p,l:location.href})}return _}var e=e,c="Geolocation",u=e.bridge,l=e.tools,_={};i.PERMISSION_DENIED=1,i.POSITION_UNAVAILABLE=2,i.TIMEOUT=3,i.UNKNOWN_ERROR=4;var f=e.geolocation={lastPosition:null,getCurrentPosition:function(e,t,n){a(e,t,n,!0)},watchPosition:function(e,t,d){d=o(d);var h=l.UUID("timer");_[h]=a(e,t,d,!1);var p=function(e){s(_[h].timer);var n=new i(e.code,e.message);t&&t(n)},v=function(t){s(_[h].timer),d.timeout!==1/0&&(_[h].timer=r(p,d.timeout));var i=new n({latitude:t.latitude,longitude:t.longitude,altitude:t.altitude,accuracy:t.accuracy,heading:t.heading,velocity:t.velocity,coordsType:t.coordsType,address:t.address,addresses:t.addresses,altitudeAccuracy:t.altitudeAccuracy},void 0===t.timestamp?(new Date).getTime():t.timestamp instanceof Date?t.timestamp.getTime():t.timestamp);f.lastPosition=i,e(i)},y=u.callbackId(v,p);return u.exec(c,"watchPosition",[y,h,d.enableHighAccuracy,d.coordsType,d.provider,d.geocode,d.timeout,d.maximumAge],{cbid:y,l:location.href}),h},clearWatch:function(e){e&&void 0!==_[e]&&(s(_[e].timer),_[e].timer=!1,u.exec(c,"clearWatch",[e]))}}}(window.plus),function(e){function t(e){this.code=e.code||null,this.message=e.message||""}function n(e){var n="未知错误";switch(e){case t.NOT_FOUND_ERR:n="文件没有发现";break;case t.SECURITY_ERR:n="没有获得授权";break;case t.ABORT_ERR:n="取消";break;case t.NOT_READABLE_ERR:n="不允许读";break;case t.ENCODING_ERR:n="编码错误";break;case t.NO_MODIFICATION_ALLOWED_ERR:n="不允许修改";break;case t.INVALID_STATE_ERR:n="无效的状态";break;case t.SYNTAX_ERR:n="语法错误";break;case t.INVALID_MODIFICATION_ERR:n="无效的修改";break;case t.QUOTA_EXCEEDED_ERR:n="执行出错";break;case t.TYPE_MISMATCH_ERR:n="类型不匹配";break;case t.PATH_EXISTS_ERR:n="路径存在"}return{code:e,message:n}}function i(e,t){t=t||{},this.type=e,this.bubbles=!1,this.cancelBubble=!1,this.cancelable=!1,this.lengthComputable=!1,this.loaded=t.loaded||0,this.total=t.total||0,this.target=t.target||null}function o(e,t,n,i,o){this.size=o||0,this.type=n||null,this.name=e||"",this.lastModifiedDate=new Date(i)||null,this.fullPath=t||null}function r(e){this.modificationTime=void 0!==e?new Date(e):null,this.size=0,this.directoryCount=0,this.fileCount=0}function s(e,t,n,i,o,r){this.isFile=void 0!==e&&e,this.isDirectory=void 0!==t&&t,this.name=n||"",this.fullPath=i||"",this.fileSystem=o||null,this.__PURL__=r||"",this.__remoteURL__=r?"http://localhost:13131/"+r:""}function a(e,t,n,i){T.constructor.apply(this,[!0,!1,e,t,n,i])}function c(e,t,n,i){T.constructor.apply(this,[!1,!0,e,t,n,i])}function u(e,t){this.path=e||null,this.__fileSystem__=t||null}function l(){this.fileName="",this.readyState=0,this.result=null,this.error=null,this.onloadstart=null,this.onprogress=null,this.onload=null,this.onabort=null,this.onerror=null,this.onloadend=null}function _(e){this.fileName="",this.readyState=0,this.result=null,this.length=0,e&&(this.fileName=e.fullPath||e,this.length=e.size||0),this.position=0,this.error=null,this.onwritestart=null,this.onprogress=null,this.onwrite=null,this.onabort=null,this.onsuccess=null,this.onerror=null,this.onwriteend=null}function f(e,t){this.name=e||null,this.root=null,t&&(this.root=new c(t.name,t.fullPath,this,t.remoteURL))}function d(e,i,o){var r=function(e){"function"==typeof o&&o(new t(e))};if(e<1||e>4)r(n(t.SYNTAX_ERR));else{var s=S[e],a=function(o){o?"function"==typeof i&&(s||(s=new f(o.name,o.root),S[e]=s),i(s)):r(n(t.NOT_FOUND_ERR))};s?window.setTimeout(a(s),0):D.exec(a,r,"requestFileSystem",[e])}}function h(e,i,o){var r=function(e){o&&o(new t(e))};if("string"!=typeof e)return void setTimeout(function(){r(n(t.ENCODING_ERR))},0);var s=function(e){var o;if(e){if(i){var s=S[e.type];s||(s=new f(e.fsName,e.fsRoot),S[e.type]=s),o=e.isDirectory?new c(e.name,e.fullPath,s,e.remoteURL):new a(e.name,e.fullPath,s,e.remoteURL),i(o)}}else r(n(t.NOT_FOUND_ERR))};D.exec(s,r,"resolveLocalFileSystemURL",[e])}function p(e){return I.execSync(D.NATIVEF,"convertLocalFileSystemURL",[e])}function v(e){return I.execSync(D.NATIVEF,"convertAbsoluteFileSystem",[e])}function y(e){var t="function"!=typeof e.complete?function(){}:e.complete,n="function"!=typeof e.success?t:function(n){e.success(n),t(n)},i="function"!=typeof e.fail?t:function(n){e.fail(n),t(n)};callbackID=I.callbackId(n,i),x.ANDROID==x.platform?I.execSync(D.NATIVEF,"getImageInfo",[callbackID,e.src]):I.exec(D.NATIVEF,"getImageInfo",[callbackID,e.src])}function g(e,t,n){
  2. var i="function"!=typeof e.complete?function(){}:e.complete,o="function"!=typeof e.success?i:function(t){e.success(t),i(t)},r="function"!=typeof e.fail?i:function(t){e.fail(t),i(t)};callbackID=I.callbackId(o,r),I.exec(D.NATIVEF,t,[callbackID,n()])}function w(e){g(e,"getFileInfo",function(){return{filePath:e.filePath,digestAlgorithm:e.digestAlgorithm}})}function m(e){g(e,"getAudioInfo",function(){return{filePath:e.filePath}})}function b(e){g(e,"getVideoInfo",function(){return{filePath:e.filePath}})}var e=e,I=e.bridge,x=e.tools,S=[],D={NATIVEF:"File",exec:function(e,t,n,i){var o=I.callbackId(e,t);I.exec(D.NATIVEF,n,[o,i])}};t.NOT_FOUND_ERR=1,t.SECURITY_ERR=2,t.ABORT_ERR=3,t.NOT_READABLE_ERR=4,t.ENCODING_ERR=5,t.NO_MODIFICATION_ALLOWED_ERR=6,t.INVALID_STATE_ERR=7,t.SYNTAX_ERR=8,t.INVALID_MODIFICATION_ERR=9,t.QUOTA_EXCEEDED_ERR=10,t.TYPE_MISMATCH_ERR=11,t.PATH_EXISTS_ERR=12;var k=o.prototype;k.slice=function(e,t,n){var i=this.size>0?this.size-1:0,r=0,s=i;if(arguments.length&&(r=e<0?Math.max(i+e,0):Math.min(i,e)),arguments.length>=2&&(s=t<0?Math.max(i+t,0):Math.min(t,i)),s<r)return null;var a=new o(this.name,this.fullPath,this.type,this.lastModifiedDate,s-r+1);return a.start=r,a.end=s,a},k.close=function(){};var T=s.prototype;T.getMetadata=function(e,n,i){var o="function"!=typeof e?null:function(t){var n=new r(t.lastModifiedDate);n.size=t.size,n.directoryCount=t.directoryCount,n.fileCount=t.fileCount,e(n)},s="function"!=typeof n?null:function(e){n(new t(e))};D.exec(o,s,"getMetadata",[this.fullPath,i])},T.setMetadata=function(e,t,n){D.exec(e,t,"setMetadata",[this.fullPath,n])},T.moveTo=function(e,i,o,r){var s=this,u=function(e){"function"==typeof r&&r(new t(e))};if(!e)return void u(n(t.NOT_FOUND_ERR));var l=this.fullPath,_=i||this.name,f=function(e){if(e){if("function"==typeof o){var i=e.isDirectory?new c(e.name,e.fullPath,s.fileSystem,e.remoteURL):new a(e.name,e.fullPath,s.fileSystem,e.remoteURL);try{o(i)}catch(e){}}}else u(n(t.NOT_FOUND_ERR))};D.exec(f,u,"moveTo",[l,e.fullPath,_])},T.copyTo=function(e,i,o,r){var s=this,u=function(e){"function"==typeof r&&r(new t(e))};if(!e)return void u(n(t.NOT_FOUND_ERR));var l=this.fullPath,_=i||this.name,f=function(e){if(e){if("function"==typeof o){var i=e.isDirectory?new c(e.name,e.fullPath,e.fileSystem,s.remoteURL):new a(e.name,e.fullPath,s.fileSystem,e.remoteURL);try{o(i)}catch(e){}}}else u(n(t.NOT_FOUND_ERR))};D.exec(f,u,"copyTo",[l,e.fullPath,_])},T.remove=function(e,n){var i="function"!=typeof n?null:function(e){n(new t(e))};D.exec(e,i,"remove",[this.fullPath])},T.toURL=function(){return this.__PURL__},T.toLocalURL=function(){return"file://"+this.fullPath},T.toRemoteURL=function(){return this.__remoteURL__},T.getParent=function(e,n){var i=this,o="function"!=typeof e?null:function(t){var n=new c(t.name,t.fullPath,i.fileSystem,t.remoteURL);e(n)},r="function"!=typeof n?null:function(e){n(new t(e))};D.exec(o,r,"getParent",[this.fullPath])},a.prototype=new s,a.prototype.constructor=a,a.prototype.createWriter=function(e,i){this.file(function(o){var r=new _(o);null===r.fileName||""===r.fileName?"function"==typeof i&&i(new t(n(t.INVALID_STATE_ERR))):"function"==typeof e&&e(r)},i)},a.prototype.file=function(e,n){var i="function"!=typeof e?null:function(t){var n=new o(t.name,t.fullPath,t.type,t.lastModifiedDate,t.size);e(n)},r="function"!=typeof n?null:function(e){n(new t(e))};D.exec(i,r,"getFileMetadata",[this.fullPath])};var U=new s;c.prototype=U,U.constructor=c,U.createReader=function(){return new u(this.fullPath,this.fileSystem)},U.getDirectory=function(e,n,i,o){var r=this,s="function"!=typeof i?null:function(e){var t=new c(e.name,e.fullPath,r.fileSystem,e.remoteURL);i(t)},a="function"!=typeof o?null:function(e){o(new t(e))};D.exec(s,a,"getDirectory",[this.fullPath,e,n])},U.removeRecursively=function(e,n){var i="function"!=typeof n?null:function(e){n(new t(e))};D.exec(e,i,"removeRecursively",[this.fullPath])},U.getFile=function(e,n,i,o){var r=this,s="function"!=typeof i?null:function(e){var t=new a(e.name,e.fullPath,r.fileSystem,e.remoteURL);i(t)},c="function"!=typeof o?null:function(e){o(new t(e))};D.exec(s,c,"getFile",[this.fullPath,e,n])},u.prototype.readEntries=function(e,n){var i=this,o="function"!=typeof e?null:function(t){for(var n=[],o=0;o<t.length;o++){var r=null;t[o].isDirectory?r=new c(t[o].name,t[o].fullPath,i.__fileSystem__,t[o].remoteURL):t[o].isFile&&(r=new a(t[o].name,t[o].fullPath,i.__fileSystem__,t[o].remoteURL)),n.push(r)}e(n)},r="function"!=typeof n?null:function(e){n(new t(e))};D.exec(o,r,"readEntries",[this.path])},l.EMPTY=0,l.LOADING=1,l.DONE=2;var E=l.prototype;E.abort=function(){this.result=null,this.readyState!=l.DONE&&this.readyState!=l.EMPTY&&(this.readyState=l.DONE,"function"==typeof this.onabort&&this.onabort(new i("abort",{target:this})),"function"==typeof this.onloadend&&this.onloadend(new i("loadend",{target:this})))},E.readAsText=function(e,n){if(this.fileName="",void 0===e.fullPath?this.fileName=e:this.fileName=e.fullPath,this.readyState==l.LOADING)throw new t(t.INVALID_STATE_ERR);this.readyState=l.LOADING,"function"==typeof this.onloadstart&&this.onloadstart(new i("loadstart",{target:this}));var o=n||"UTF-8",r=this;D.exec(function(e){r.readyState!==l.DONE&&(r.result=e,"function"==typeof r.onload&&r.onload(new i("load",{target:r})),r.readyState=l.DONE,"function"==typeof r.onloadend&&r.onloadend(new i("loadend",{target:r})))},function(e){r.readyState!==l.DONE&&(r.readyState=l.DONE,r.result=null,r.error=new t(e),"function"==typeof r.onerror&&r.onerror(new i("error",{target:r})),"function"==typeof r.onloadend&&r.onloadend(new i("loadend",{target:r})))},"readAsText",[this.fileName,o,e.start,e.end])},E.readAsDataURL=function(e){if(this.fileName="",void 0===e.fullPath?this.fileName=e:this.fileName=e.fullPath,this.readyState==l.LOADING)throw new t(t.INVALID_STATE_ERR);this.readyState=l.LOADING,"function"==typeof this.onloadstart&&this.onloadstart(new i("loadstart",{target:this}));var n=this;D.exec(function(e){n.readyState!==l.DONE&&(n.readyState=l.DONE,n.result=e,"function"==typeof n.onload&&n.onload(new i("load",{target:n})),"function"==typeof n.onloadend&&n.onloadend(new i("loadend",{target:n})))},function(e){n.readyState!==l.DONE&&(n.readyState=l.DONE,n.result=null,n.error=new t(e),"function"==typeof n.onerror&&n.onerror(new i("error",{target:n})),"function"==typeof n.onloadend&&n.onloadend(new i("loadend",{target:n})))},"readAsDataURL",[this.fileName,e.start,e.end])},E.readAsArrayBuffer=function(e){},_.INIT=0,_.WRITING=1,_.DONE=2;var R=_.prototype;R.abort=function(){if(this.readyState===_.DONE||this.readyState===_.INIT)throw new t(n(t.INVALID_STATE_ERR));this.error=new t(n(t.ABORT_ERR)),this.readyState=_.DONE,"function"==typeof this.onabort&&this.onabort(new i("abort",{target:this})),"function"==typeof this.onwriteend&&this.onwriteend(new i("writeend",{target:this}))},R.write=function(e){var n=this;if("string"!=typeof e)throw new t(t.TYPE_MISMATCH_ERR);if(this.readyState===_.WRITING)throw new t(t.INVALID_STATE_ERR);this.readyState=_.WRITING,"function"==typeof n.onwritestart&&n.onwritestart(new i("writestart",{target:n})),D.exec(function(e){n.readyState!==_.DONE&&(n.position+=e,n.length+=e,n.readyState=_.DONE,"function"==typeof n.onwrite&&n.onwrite(new i("write",{target:n})),"function"==typeof n.onsuccess&&n.onsuccess(new i("success",{target:n})),"function"==typeof n.onwriteend&&n.onwriteend(new i("writeend",{target:n})))},function(e){n.readyState!==_.DONE&&(n.readyState=_.DONE,n.error=new t(e),"function"==typeof n.onerror&&n.onerror(new i("error",{target:n})),"function"==typeof n.onwriteend&&n.onwriteend(new i("writeend",{target:n})))},"write",[this.fileName,e,this.position])},R.seek=function(e){if(this.readyState===_.WRITING)throw new t(t.INVALID_STATE_ERR);(e||0===e)&&(e<0?this.position=Math.max(e+this.length,0):e>this.length?this.position=this.length:this.position=e)},R.truncate=function(e){if(this.readyState===_.WRITING)throw new t(t.INVALID_STATE_ERR);this.readyState=_.WRITING;var n=this;"function"==typeof n.onwritestart&&n.onwritestart(new i("writestart",{target:this})),D.exec(function(e){n.readyState!==_.DONE&&(n.readyState=_.DONE,n.length=e,n.position=Math.min(n.position,e),"function"==typeof n.onwrite&&n.onwrite(new i("write",{target:n})),"function"==typeof n.onwriteend&&n.onwriteend(new i("writeend",{target:n})))},function(e){n.readyState!==_.DONE&&(n.readyState=_.DONE,n.error=new t(e),"function"==typeof n.onerror&&n.onerror(new i("error",{target:n})),"function"==typeof n.onwriteend&&n.onwriteend(new i("writeend",{target:n})))},"truncate",[this.fileName,e,this.position])},e.io={FileSystem:f,DirectoryEntry:c,DirectoryReader:u,FileReader:l,FileWriter:_,requestFileSystem:d,resolveLocalFileSystemURL:h,convertLocalFileSystemURL:p,convertAbsoluteFileSystem:v,getImageInfo:y,getFileInfo:w,getAudioInfo:m,getVideoInfo:b,PRIVATE_WWW:1,PRIVATE_DOC:2,PUBLIC_DOCUMENTS:3,PUBLIC_DOWNLOADS:4}}(window.plus),function(e){function t(e,t){this.type=e,this.value=t}function n(){this.__TYPE__="JSBObject",this.__UUID__=a.UUID("JSBaseObject")}function i(t,n){t=r(t);var i=this;this.__UUID__=a.UUID("JSImplements"),this.callback=n,this.callbackId=s.callbackId(function(t){for(var n=t.arguments,o=[],r=0;r<n.length;r++)o.push(e.ios.__Tool.New(n[r],!0));i.callback[t.method].apply(i,o)},null);var o=[];for(var c in n)o.push(c);var u=s.execSync2(_Server,"implements",[this.__UUID__,t,o,this.callbackId],null,!0);return e.ios.__Tool.New(u,!0)}function o(){this.__Tool=c,this.__JSBBaseObject=n}function r(e){if("string"!=typeof e||a.platform==a.IOS)return e;var t,n;for(var i in _)if(0==e.indexOf(i)){t=i,n=_[i];break}return n&&e?e.replace(t,n):e}var e=e,s=window.plus.bridge,a=window.plus.tools;_Server="Invocation",_importHash=[],_frameObjHash={},_currentFrameObj=null;var c={},u={};c.undefObjectHash={};var l="";e.tools.IOS==e.tools.platform?l+="plus.ios.":e.tools.ANDROID==e.tools.platform&&(l+="plus.android."),c.process=function(e){for(var t=[],n=0;n<e.length;n++)t.push(this.warp(e[n]));return t},c.attach=function(e,t){var n=this.undefObjectHash[e];if(n&&t){for(var i=0;i<n.length;i++)n[i].__proto__=t.prototype;delete this.undefObjectHash.className}},c.New=function(e,i){var o=null;if(e){if("object"==e.type){var r=u.isImport(e.className);if(r)o=new r(i);else{if(e.superClassNames)for(var s=0;s<e.superClassNames.length&&!(r=u.isImport(e.superClassNames[s]));s++);if(r)o=new r(i);else{o=new n;var a=this.undefObjectHash[e.className];a||(this.undefObjectHash[e.className]=a=[]),a.push(o)}}return o.className=e.className,o.__UUID__=e.value,o}if("struct"==e.type)return new t(e.type,e.value);if(e.value instanceof Array)for(var s=0;s<e.value.length;s++)e.value[s]=c.New(e.value[s],i);return e.value}return null},c.handleClassName=function(e){return e.replace("$",".")},c.saveContent=function(e,t){s.execSync2(_Server,"__saveContent",[e,t],null,!0)},c.warp=function(n){var i={};if(n&&"JSBObject"==n.__TYPE__)i.type="object",i.value=n.__UUID__;else if(n instanceof t){if(i.type=n.type,i.value=n.value,0==n.type.indexOf("@block")){i.type=n.type;var o=s.callbackId(function(t){n.value;for(var i=[],o=0;o<t.length;o++)i.push(e.ios.__Tool.New(t[o],!0));n.value.apply(this,i)});i.value=o,alert(i.value)}}else if(void 0===n||null==n)i.type="null",i.value=n;else if("string"==typeof n||"String"==typeof n)i.type="string",i.value=n;else if("number"==typeof n)i.type="number",i.value=n;else if("boolean"==typeof n)i.type="boolean",i.value=n;else if("function"==typeof n){i.type="block";var o=s.callbackId(function(t){for(var i=[],o=0;o<t.length;o++)i.push(e.ios.__Tool.New(t[o],!0));n.apply(this,i)});i.value=o}else i=n;return i},t.prototype.constructor=t,n.prototype.plusSetAttribute=function(){var t=null;try{for(var n=[],i=1;i<arguments.length;i++)n.push(c.warp(arguments[i]));t=e.bridge.execSync2(_Server,"__plusSetAttribute",[this.__UUID__,arguments[0],n],null,!0),t=c.New(t,!0)}catch(e){throw e}return t},n.prototype.plusGetAttribute=function(t){var n=null;try{n=e.bridge.execSync2(_Server,"__plusGetAttribute",[this.__UUID__,t],null,!0),n=e.ios.__Tool.New(n,!0)}catch(e){throw e}return n},n.prototype.importClass=function(){return e.android.importClass(this)},n.prototype.plusCallMethod=function(t){var n=null;try{var i="",o=[],r=0;for(var s in t){if("string"!=typeof s)return;var a=t[s];if(0==r){if(i=s,void 0===a){r++;break}i+=":"}else i+=s+":";o.push(a),r++}if(0==r)return;var o=window.plus.ios.__Tool.process(o);n=window.plus.bridge.execSync2(_Server,"__exec",[this.__UUID__,i,o],null,!0),n=e.ios.__Tool.New(n,!0)}catch(e){throw e}return n},i.prototype=new n,i.prototype.constructor=i,u.hashTable={},u.importClass=function(t,n){var i=this.isImport(t);if(i)return i;for(var o=this.newClassDefine(t,n),r=s.execSync2(_Server,"import",[t],null,!0),a=r.ClassMethod,l=0;l<a.length;l++)o+=this.AddMethodToClass(t,a[l],!0);for(var _=r.InstanceMethod,l=0;l<_.length;l++)o+=this.AddMethodToClass(t,_[l]);if(e.tools.ANDROID==e.tools.platform)for(var f=r.ClassConstKeys,d=r.ClassConstValues,l=0;l<f.length;l++)o+=this.AddStaticConstToClass(t,f[l],d[l]);return this.hashTable[t]=i=u.createClass(t,o),c.attach(t,i),i},u.isImport=function(e){return u.hashTable[e]},u.newClassDefine=function(e,t){var n="",i=e;e=c.handleClassName(e),t&&(t=c.handleClassName(t));var o,r;o=l+e,r=l+t;for(var s=o.split("."),a="window",u=0;u<s.length-1;u++)a=a+"."+s[u],n+="if(!"+a+")",n+=a+"={};";return n+=a+"."+s[s.length-1]+"=",n+="function(nocreate) { this.__UUID__ = window.plus.tools.UUID('JSB'); this.__TYPE__ = 'JSBObject'; var args = window.plus.ios.__Tool.process(arguments); if ( nocreate && plus.tools.IOS == plus.tools.platform ) {} else { window.plus.bridge.execSync2('"+_Server+"', '__Instance',[this.__UUID__, '"+i+"',args],null,true); } };",t=t?r:"plus.ios.__JSBBaseObject",t&&(n+=o+".prototype = new "+t+"('__super__constructor__');",n+=o+".prototype.constructor = "+o+";"),n},u.createClass=function(e,t){e=c.handleClassName(e);var n="(function(plus){"+t+"return "+l+e+";})(window.plus);";return window.eval(n)},u.AddStaticConstToClass=function(e,t,n){var i;return e=c.handleClassName(e),n instanceof Array&&0==n.length?(i=l+e+"."+t+"=[];",i+=l+e+".prototype."+t+"=[];"):(i=l+e+"."+t+"="+n+";",i+=l+e+".prototype."+t+"="+n+";"),i},u.AddMethodToClass=function(t,n,i){var o,r=t;t=c.handleClassName(t);var s="";if(e.tools.IOS==e.tools.platform){var a=n.split(":"),u=a.length;if(u>0)for(var _=0;_<u;_++)s+=a[_];else s=a}else s=n;return o=i?l+t+"."+s:l+t+".prototype."+s,o+=" = function (){ var ret = null; try { var args = window.plus.ios.__Tool.process(arguments);",o+=i?"ret = window.plus.bridge.execSync2('"+_Server+"', '__execStatic', ['"+r+"', '"+n+"', args],null,true);":"ret = window.plus.bridge.execSync2('"+_Server+"', '__exec', [this.__UUID__, '"+n+"', args],null,true);",o+="ret = plus.ios.__Tool.New(ret, true); } catch (e) { throw e; } return ret; };"},o.prototype.requestPermissions=function(e,t,n){if(!(e instanceof Array)){return void n({code:"-1",message:"请求权限必须为数组类型"})}var i=s.callbackId(t,n);s.exec(_Server,"requestPermissions",[i,e])},o.prototype.importClass=function(e){e=r(e);var t,n;if(e.__TYPE__){if(!e.className)return;n=e.__UUID__,t=e,e=e.className}var i=u.isImport(e);if(i)return i;var o=s.execSync2(_Server,"__inheritList",[e,n],null,!0);if(o){for(var a=o.length,c=a-1;c>=0;c--)i=c==a-1?u.importClass(o[c],null):u.importClass(o[c],o[c+1]);return t&&(t.__proto__=i.prototype),i}return null},o.prototype.invoke=function(t,n){for(var i=null,o=[],r=2;r<arguments.length;r++)o.push(window.plus.ios.__Tool.warp(arguments[r]));if("string"==typeof t)try{i=window.plus.bridge.execSync2(_Server,"__execStatic",[t,n,o],null,!0)}catch(e){throw e}else t&&"JSBObject"==t.__TYPE__?i=window.plus.bridge.execSync2(_Server,"__exec",[t.__UUID__,n,o],null,!0):null==t&&"string"==typeof n&&(i=window.plus.bridge.execSync2(_Server,"__execCFunction",[n,o],null,!0));return i=e.ios.__Tool.New(i,!0)},o.prototype.autoCollection=function(e){e&&"JSBObject"==e.__TYPE__&&window.plus.bridge.execSync2(_Server,"__autoCollection",[e.__UUID__],null,!0)},o.prototype.setAttribute=function(e,t,n){"function"==typeof e||e&&"JSBObject"==e.__TYPE__&&e.plusSetAttribute(t,n)},o.prototype.getAttribute=function(e,t){if("function"==typeof e);else if(e&&"JSBObject"==e.__TYPE__)return e.plusGetAttribute(t);return null},o.prototype.load=function(e){window.plus.bridge.execSync2(_Server,"__loadDylib",[e],null,!0)},o.prototype.newObject=function(n,i){var o=null;if("string"==typeof n){for(var r=[],s=1;s<arguments.length;s++)r.push(window.plus.ios.__Tool.warp(arguments[s]));o=window.plus.bridge.execSync2(_Server,"__newObject",[n,r],null,!0)}return(o=e.ios.__Tool.New(o,!0))||new t(n,i)},o.prototype.currentWebview=function(){if(!_currentFrameObj){var t=window.plus.bridge.execSync2(_Server,"currentWebview",[],null,!0);_currentFrameObj=e.ios.__Tool.New(t,!0)}return _currentFrameObj},o.prototype.getWebviewById=function(t){if(t===window.__HtMl_Id__)return this.currentWebview();var n=_frameObjHash[t];return n||(n=window.plus.bridge.execSync2(_Server,"getWebviewById",[t],null,!0),(n=e.ios.__Tool.New(n,!0))&&(_frameObjHash[t]=n)),n},o.prototype.deleteObject=function(e){s.execSync2(_Server,"__release",[e.__UUID__],null,!0)},o.prototype.implements=function(e,t){return new i(e,t)};var _={"io.dcloud.adapter.":"io.dcloud.common.adapter.","io.dcloud.android.content.":"io.dcloud.feature.internal.reflect.","io.dcloud.app.":"io.dcloud.common.app.","io.dcloud.constant.":"io.dcloud.common.constant.","io.dcloud.core.":"io.dcloud.common.core.","io.dcloud.DHInterface.":"io.dcloud.common.DHInterface.","io.dcloud.net.":"io.dcloud.common.util.net.","io.dcloud.permission.":"io.dcloud.common.core.permission.","io.dcloud.sdk.":"io.dcloud.feature.internal.sdk.","io.dcloud.splash.":"io.dcloud.feature.internal.splash.","io.dcloud.ui.":"io.dcloud.common.core.ui.","io.dcloud.util.":"io.dcloud.common.util."};e.ios=e.android=new o,e.tools.ANDROID==e.tools.platform&&(e.android.runtimeMainActivity=function(){var t;if(e.android.__runtimeMainActivity__)return e.android.__runtimeMainActivity__;var n=function(e){t.onActivityResult&&t.onActivityResult(e[0],e[1],e[2])},i=e.bridge.callbackId(n);t=e.bridge.execSync2(_Server,"getContext",[i],null,!0);var o=t.className;return t.superClassNames=[],t=e.ios.__Tool.New(t,!0),e.android.importClass(o),e.android.__runtimeMainActivity__=t,t})}(window.plus),function(e){function t(e,t,n,i){return S.ANDROID==S.platform?x.exec(D,k,[S.stringify([e,t,n,i])],null):x.exec(D,k,[e,t,n,i],null)}function n(e,t,n){return S.ANDROID==S.platform?x.exec(D,T,[S.stringify([e,[t,n]])],null):x.exec(D,T,[e,[t,n]],null)}function i(e,t,n){return S.ANDROID==S.platform?x.execSync(D,U,[S.stringify([e,[t,n]])],null):x.execSync(D,U,[e,[t,n]],null)}function o(e,t,n){return S.ANDROID==S.platform?x.exec(D,E,[S.stringify([e,[t,n]])],null):x.exec(D,E,[e,[t,n]],null)}function r(e){var t={zoom:12,type:"MAPTYPE_NORMAL",traffic:!1,zoomControls:!1};return e&&e.center instanceof u&&(t.center=e.center),e&&"number"==typeof e.zoom&&e.zoom<=22&&e.zoom>=1&&(t.zoom=e.zoom),!e||"MAPTYPE_NORMAL"!=e.type&&"MAPTYPE_SATELLITE"!=e.type||(t.type=e.type),e&&"boolean"==typeof e.traffic&&(t.traffic=e.traffic),e&&"boolean"==typeof e.zoomControls&&(t.zoomControls=e.zoomControls),e&&"string"==typeof e.position&&(t.position=e.position),e&&(t.top=e.top,t.left=e.left,t.width=e.width,t.height=e.height),t}function s(i,o,s,a,l){function _(e,t){if("click"==t.callbackType)f.onclick&&f.onclick(t.payload);else if("change"==t.callbackType&&(f&&(f.zoom=t.zoom),f.onstatuschanged)){var n={};n.target=f,n.zoom=t.zoom,n.center=new u(t.center.long,t.center.lat),t.northease&&(n.bounds=new c(new u(t.northease.long,t.northease.lat),new u(t.southwest.long,t.southwest.lat))),f.onstatuschanged(n)}}o=r(o);var f=this;if(this.IDENTITY=D,this._UUID_=l||S.UUID("map"),this._map_id_=s,this._ui_div_id_=i,this.__showUserLocationVisable__=!1,this.center=o.center?o.center:new e.maps.Point(116.39716,39.91669),this.zoom=o.zoom,this.userLocation=null,this.mapType=o.type,this.zoomControlsVisable=o.zoomControls,this.trafficVisable=o.traffic,this.visable=!0,this.onclick=function(e){},this.onstatuschanged=function(){},R.pushCallback(this._UUID_,_),!a){var d=document.getElementById(this._ui_div_id_),h=[o];d&&(e.tools.platform==e.tools.ANDROID?document.addEventListener("plusorientationchange",function(){setTimeout(function(){var e=[d.offsetLeft,d.offsetTop,d.offsetWidth,d.offsetHeight];n(f._UUID_,"resize",e)},200)},!1):d.addEventListener("resize",function(){var e=[d.offsetLeft,d.offsetTop,d.offsetWidth,d.offsetHeight];n(f._UUID_,"resize",e)},!1),h=[o,d.offsetLeft,d.offsetTop,d.offsetWidth,d.offsetHeight]),A[this._UUID_]=t(this._UUID_,"mapview",h,this._map_id_)}}function a(e){this._UUID_=S.UUID("Bubble"),this.label="string"==typeof e?e:"",this.icon=null,this.marker=null,this.__contentImage=null,this.__contentImageAsDataURL=null,this.onclick=function(e){}}function c(e,t,n,i){"number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof i?(this.northease=new u(e,t),this.northeast=new u(e,t),this.southwest=new u(n,i)):e instanceof u&&t instanceof u&&(this.northease=e,this.northeast=e,this.southwest=t)}function u(e,t){this.longitude=e,this.latitude=t}function l(){this._UUID_=null,this.visable=!0}function _(e){function n(e,t){"bubbleclick"==t.type?i.bubble&&i.bubble.onclick&&i.bubble.onclick(i.bubble):"markerclick"==t.type?i.onclick&&i.onclick(i):"onDrag"==t.type&&(i.point=t.pt,i.onDrag(i))}var i=this;this._UUID_=S.UUID("marker"),this.point=e,this.icon="",this.caption="",this.bubble=null,this.canDraggable=!1,this.onclick=function(e){},this.onDrag=function(e){},R.pushCallback(this._UUID_,n),t(this._UUID_,"marker",[e])}function f(){this.strokeColor="#FFFFFF",this.strokeOpacity=1,this.fillColor="#FFFFFF",this.fillOpacity=1,this.lineWidth=5,this.visable=!0}function d(e,n){this.center=e,this.radius=n,this._UUID_=S.UUID("circle"),t(this._UUID_,"circle",[e,n])}function h(e){this.path=e,this._UUID_=S.UUID("polygon"),t(this._UUID_,"polygon",[e])}function p(e){this.path=e,this._UUID_=S.UUID("polyline"),t(this._UUID_,"polyline",[e])}function v(e,n,i){this._UUID_=S.UUID("route"),this.startPoint=e,this.endPoint=n,this.pointCount=0,this.pointList=[],this.distance=0,this.routeTip="",void 0===i&&t(this._UUID_,"route",[e,n,i])}function y(e){this.point=e,this.address="",this.city="",this.name="",this.phone="",this.postcode=""}function g(){this.__state__=0,this.__type__=1,this.startPosition=null,this.endPosition=null,this.routeNumber=0,this.routeList=[]}function w(){this.__state__=0,this.__type__=0,this.totalNumber=0,this.currentNumber=0,this.pageNumber=0,this.pageIndex=0,this.poiList=[]}function m(e){function n(e,t){0==t.__type__?i.onPoiSearchComplete&&i.onPoiSearchComplete(t.__state__,t):1==t.__type__&&i.onRouteSearchComplete&&i.onRouteSearchComplete(t.__state__,t)}var i=this;this._UUID_=S.UUID("search"),this.pageCapacity=10,this.map=e,this.onPoiSearchComplete=function(e,t){},this.onRouteSearchComplete=function(e,t){},R.pushCallback(this._UUID_,n),t(this._UUID_,"search",[null])}function b(e,t,n,i){return new s(void 0,t,e,n,i)}function I(e){var t;if(t=S.ANDROID==S.platform?x.execSync(D,"getMapById",[S.stringify([e])],null):x.execSync(D,"getMapById",[e],null)){var n=A[t.uuid];return n||(n=b(e,t.options,"no",t.uuid),A[t.uuid]=n),n}return null}var e=e,x=e.bridge,S=e.tools,D="Maps",k="createObject",T="updateObject",U="updateObjectSYNC",E="execMethod",R={callback:[],pushCallback:function(e,t,n){this.callback[e]={fun:t,nokeep:n}},execCallback:function(e,t){this.callback[e]&&(this.callback[e].fun&&this.callback[e].fun(e,t),this.callback[e].nokeep&&delete this.callback[e])}},A={},C=s.prototype;C.close=function(){o("map","close",this._UUID_),A[this._UUID_]&&delete A[this._UUID_]},C.centerAndZoom=function(e,t){if(e instanceof u&&"number"==typeof t){this.center=e,this.zoom=t;var i=[e,t];n(this._UUID_,"centerAndZoom",i)}},C.setCenter=function(e){if(e instanceof u){this.center=e;var t=[e];n(this._UUID_,"setCenter",t)}},C.getCenter=function(){return this.center},C.setZoom=function(e){"number"==typeof e&&(this.zoom=e,n(this._UUID_,"setZoom",[e]))},C.resize=function(){var e=document.getElementById(this._ui_div_id_),t=[null];e&&(t=[e.offsetLeft,e.offsetTop,e.offsetWidth,e.offsetHeight]),n(this._UUID_,"resize",t)},C.getZoom=function(){return this.zoom},C.setMapType=function(e){"MAPTYPE_NORMAL"!=e&&"MAPTYPE_SATELLITE"!=e||(this.mapType=e,n(this._UUID_,"setMapType",[e]))},C.getMapType=function(){return this.mapType},C.showUserLocation=function(e){if("boolean"==typeof e&&this.__showUserLocationVisable__!=e){this.__showUserLocationVisable__=e;var t=[e];n(this._UUID_,"showUserLocation",t)}},C.isShowUserLocation=function(){return this.__showUserLocationVisable__},C.getUserLocation=function(e){function t(t,n){e&&e(n.state,n.point)}if("function"==typeof e){var i=S.UUID("callback");R.pushCallback(i,t,!0);var o=[i,window.__HtMl_Id__];return n(this._UUID_,"getUserLocation",o),!0}return!1},C.getCurrentCenter=function(e){function t(t,n){e&&e(n.state,n.point)}if("function"==typeof e){var i=x.callbackId(t);R.pushCallback(i,t,!0);var o=[i,window.__HtMl_Id__];return n(this._UUID_,"getCurrentCenter",o),!0}return!1},C.setTraffic=function(e){if("boolean"==typeof e&&e!=this.trafficVisable){this.trafficVisable=e;var t=[e];n(this._UUID_,"setTraffic",t)}},C.isTraffic=function(){return this.trafficVisable},C.showZoomControls=function(e){if("boolean"==typeof e&&e!=this.zoomControlsVisable){this.zoomControlsVisable=e;var t=[e];n(this._UUID_,"showZoomControls",t)}},C.isShowZoomControls=function(){return this.zoomControlsVisable},C.getBounds=function(){var e=i(this._UUID_,"getBounds",[]);return new c(new u(e.northease.longitude,e.northease.latitude),new u(e.southwest.longitude,e.southwest.latitude))},C.reset=function(){n(this._UUID_,"reset",[null])},C.show=function(){if(1!=this.visable){this.visable=!0;var e=document.getElementById(this._ui_div_id_),t=[null];e&&(e.style.display="",t=[e.offsetLeft,e.offsetTop,e.offsetWidth,e.offsetHeight]),n(this._UUID_,"show",t)}},C.hide=function(){if(0!=this.visable){this.visable=!1;document.getElementById(this._ui_div_id_)&&(document.getElementById(this._ui_div_id_).style.display="none"),n(this._UUID_,"hide",[null])}},C.addOverlay=function(e){if(e instanceof d||e instanceof h||e instanceof p||e instanceof v||e instanceof _){var t=[e._UUID_];return n(this._UUID_,"addOverlay",t),!0}return!1},C.removeOverlay=function(e){if(e instanceof d||e instanceof h||e instanceof p||e instanceof v||e instanceof _){var t=[e._UUID_];return n(this._UUID_,"removeOverlay",t),!0}return!1},C.clearOverlays=function(){var e=[null];n(this._UUID_,"clearOverlays",e)},s.calculateDistance=function(e,t,n,i){var o=x.callbackId(function(e){"function"==typeof n&&n({distance:e})},function(e){"function"==typeof i&&i(e)});x.exec(D,"calculateDistance",[e,t,o])},s.calculateArea=function(e,t,n){var i=x.callbackId(function(e){"function"==typeof t&&t({area:e})},function(e){"function"==typeof n&&n(e)});x.exec(D,"calculateArea",[e,i])},s.convertCoordinates=function(e,t,n,i){var o=x.callbackId(function(e){if("function"==typeof n){var t={};t.coord=new u(e.long,e.lat),t.coordType=e.type,n(t)}},function(e){"function"==typeof i&&i(e)});x.exec(D,"convertCoordinates",[e,t,o])},s.geocode=function(e,t,n,i){var o=x.callbackId(function(e){if("function"==typeof n){var t={};t.coord=new u(e.long,e.lat),t.address=e.addr,t.coordType=e.type,n(t)}},function(e){"function"==typeof i&&i(e)});x.exec(D,"geocode",[e,t,o])},s.reverseGeocode=function(e,t,n,i){var o=x.callbackId(function(e){if("function"==typeof n){var t={};t.coord=new u(e.long,e.lat),t.address=e.addr,t.coordType=e.type,n(t)}},function(e){"function"==typeof i&&i(e)});x.exec(D,"reverseGeocode",[e,t,o])};var N=a.prototype;N.setIcon=function(e){"string"==typeof e&&(this.icon=e,this.marker&&n(this.marker._UUID_,"setBubbleIcon",[this.icon]))},N.loadImage=function(e){this.__contentImage=e,this.__contentImageAsDataURL=null,this.marker&&n(this.marker._UUID_,"loadImage",[e])},N.loadImageDataURL=function(e){this.__contentImage=null,this.__contentImageAsDataURL=e,this.marker&&n(this.marker._UUID_,"loadImageDataURL",[e])},N.getLabel=function(){return this.label},N.setLabel=function(e){"string"==typeof e&&(this.label=e,this.marker&&n(this.marker._UUID_,"setBubbleLabel",[this.label]))},N.belongMarker=function(){return this.marker},c.prototype.setNorthEase=function(e){e instanceof u&&(this.northease=e,this.northeast=e)},c.prototype.setNorthEast=function(e){e instanceof u&&(this.northeast=e,this.northease=e)},c.prototype.getNorthEase=function(){return this.northease},c.prototype.getNorthEast=function(){return this.northeast},c.prototype.setSouthWest=function(e){e instanceof u&&(this.southwest=e)},c.prototype.getSouthWest=function(){return this.southwest},c.prototype.contains=function(e){return e instanceof u&&(e.longitude<=this.northease.longitude&&e.longitude>=this.southwest.longitude&&e.latitude<=this.northease.latitude&&e.latitude>=this.southwest.latitude)},c.prototype.equals=function(e){return e instanceof c&&(this.northease.equals(e.northease)&&this.southwest.equals(e.southwest))},c.prototype.getCenter=function(){var e=(this.northease.longitude-this.southwest.longitude)/2,t=(this.northease.latitude-this.southwest.latitude)/2;return new u(e+this.southwest.longitude,t+this.southwest.latitude)};var O=u.prototype;O.setLng=function(e){this.longitude=e},O.getLng=function(){return this.longitude},O.setLat=function(e){this.latitude=e},O.getLat=function(){return this.latitude},O.equals=function(e){return this.longitude==e.longitude&&this.latitude==e.latitude};var P=l.prototype;P.show=function(){1!=this.visable&&(this.visable=!0,n(this._UUID_,"show",["true"]))},P.hide=function(){0!=this.visable&&(this.visable=!1,n(this._UUID_,"hide",["false"]))},P.isVisible=function(){return this.visable},P.bringToTop=function(){n(this._UUID_,"bringToTop",[])},_.prototype=new l;var L=_.prototype;L.constructor=_,L.setPoint=function(e){if(e instanceof u){this.point=e;var t=[e];n(this._UUID_,"setPoint",t)}},L.getPoint=function(){return this.point},L.setIcon=function(e){"string"==typeof e&&(this.icon=e,n(this._UUID_,"setIcon",[e]))},L.setLabel=function(e){"string"==typeof e&&(this.caption=e,n(this._UUID_,"setLabel",[e]))},L.getLabel=function(){return this.caption},L.setBubble=function(e,t){if(e instanceof a){var i=e.marker;if(i&&i!=this){i.bubble=null;var o=[null,null,null,null,!1];n(i._UUID_,"setBubble",o)}e.marker=this,this.bubble=e;var o=[this.bubble.label,this.bubble.icon,this.bubble.__contentImageAsDataURL,this.bubble.__contentImage,t];n(this._UUID_,"setBubble",o)}else null==e&&n(this._UUID_,"setBubble",[null,null,null,null,t])},L.hideBubble=function(){this.bubble&&n(this._UUID_,"hideBubble",[])},L.getBubble=function(){return this.bubble},L.setDraggable=function(e){e!=this.canDraggable&&(this.canDraggable=!this.canDraggable,n(this._UUID_,"setDraggable",[this.canDraggable]))},L.isDraggable=function(){return this.canDraggable},L.setIcons=function(e,t){n(this._UUID_,"setIcons",[e,t])},f.prototype=new l;var B=f.prototype;B.constructor=f,B.setStrokeColor=function(e){"string"==typeof e&&(this.strokeColor=e,n(this._UUID_,"setStrokeColor",[e]))},B.getStrokeColor=function(){return this.strokeColor},B.setStrokeOpacity=function(e){"number"==typeof e&&(e<0?e=0:e>1&&(e=1),this.strokeOpacity=e,n(this._UUID_,"setStrokeOpacity",[e]))},B.getStrokeOpacity=function(){return this.strokeOpacity},B.setFillColor=function(e){"string"==typeof e&&(this.fillColor=e,n(this._UUID_,"setFillColor",[e]))},B.getFillColor=function(){return this.fillColor},B.setFillOpacity=function(e){"number"==typeof e&&(e<0?e=0:e>1&&(e=1),this.fillOpacity=e,n(this._UUID_,"setFillOpacity",[e]))},B.getFillOpacity=function(){return this.fillOpacity},
  3. B.setLineWidth=function(e){"number"==typeof e&&(e<0&&(e=0),this.lineWidth=e,n(this._UUID_,"setLineWidth",[e]))},B.getLineWidth=function(){return this.lineWidth},d.prototype=new f;var V=d.prototype;V.constructor=d,V.setCenter=function(e){e instanceof u&&(this.center=e,n(this._UUID_,"setCenter",[e]))},V.getCenter=function(){return this.center},V.setRadius=function(e){"number"==typeof e&&e>=0&&(this.radius=e,n(this._UUID_,"setRadius",[e]))},V.getRadius=function(){return this.radius},h.prototype=new f;var M=h.prototype;M.constructor=h,M.setPath=function(e){this.path=e,n(this._UUID_,"setPath",[e])},M.getPath=function(){return this.path},p.prototype=new f;var F=p.prototype;F.constructor=p,F.setPath=function(e){this.path=e,n(this._UUID_,"setPath",[e])},F.getPath=function(){return this.path},v.prototype=new l,v.prototype.constructor=v,g.prototype.getRoute=function(e){return e>=0&&e<this.routeNumber?this.routeList[e]:null},w.prototype.getPosition=function(e){return e>=0&&e<this.currentNumber?this.poiList[e]:null};var W=m.prototype;W.setPageCapacity=function(e){this.pageCapacity=e;var t=[e];n(this._UUID_,"setPageCapacity",t)},W.getPageCapacity=function(){return this.pageCapacity},W.poiSearchInCity=function(e,t,i){if("string"==typeof e&&"string"==typeof t){var o=[e,t,i];return n(this._UUID_,"poiSearchInCity",o),!0}return!1},W.poiSearchNearBy=function(e,t,i,o){if("string"==typeof e&&t instanceof u&&"number"==typeof i){var r=[e,t,i,o];return n(this._UUID_,"poiSearchNearBy",r),!0}return!1},W.poiSearchInbounds=function(e,t,i,o){if("string"==typeof e&&t instanceof u&&i instanceof u){var r=[e,t,i,o];return n(this._UUID_,"poiSearchInbounds",r),!0}return!1},W.setTransitPolicy=function(e){var t=[e];n(this._UUID_,"setTransitPolicy",t)},W.transitSearch=function(e,t,i){if((e instanceof u||"string"==typeof e)&&(t instanceof u||"string"==typeof t)&&"string"==typeof i){var o=[e,t,i];return n(this._UUID_,"transitSearch",o),!0}return!1},W.setDrivingPolicy=function(e){var t=[e];n(this._UUID_,"setDrivingPolicy",t)},W.drivingSearch=function(e,t,i,o){if((e instanceof u||"string"==typeof e)&&(i instanceof u||"string"==typeof i)&&"string"==typeof t&&"string"==typeof o){var r=[e,t,i,o];return n(this._UUID_,"drivingSearch",r),!0}return!1},W.walkingSearch=function(e,t,i,o){if((e instanceof u||"string"==typeof e)&&(i instanceof u||"string"==typeof i)&&"string"==typeof t&&"string"==typeof o){var r=[e,t,i,o];return n(this._UUID_,"walkingSearch",r),!0}return!1},C.setStyles=function(e){S.ANDROID==S.platform?json_map=x.exec(D,"setStyles",[S.stringify([this._UUID_,e])],null):json_map=x.exec(D,"setStyles",[this._UUID_,e],null)},e.maps={Map:s,openSysMap:function(e,t,n){e instanceof u&&n instanceof u&&o("map","openSysMap",[e,t,n])},MapType:{MAPTYPE_SATELLITE:"MAPTYPE_SATELLITE",MAPTYPE_NORMAL:"MAPTYPE_NORMAL"},Marker:_,Bubble:a,Point:u,Bounds:c,Circle:d,Polygon:h,Polyline:p,Position:y,Route:v,Search:m,SearchPolicy:{TRANSIT_TIME_FIRST:"TRANSIT_TIME_FIRST",TRANSIT_TRANSFER_FIRST:"TRANSIT_TRANSFER_FIRST",TRANSIT_WALK_FIRST:"TRANSIT_WALK_FIRST",TRANSIT_FEE_FIRST:"TRANSIT_FEE_FIRST",DRIVING_TIME_FIRST:"DRIVING_TIME_FIRST",DRIVING_NO_EXPRESSWAY:"DRIVING_NO_EXPRESSWAY",DRIVING_FEE_FIRST:"DRIVING_FEE_FIRST"},__SearchRouteResult__:g,__SearchPoiResult__:w,__bridge__:R,create:b,getMapById:I}}(window.plus),function(e){function t(e){this.__hasPendingOperation__=!1,this.to=[],this.cc=[],this.bcc=[],this.subject="",this.body="",this.bodyType="text",this.silent=!1,this.attachment=[],this.type=e}var e=e,n=window.plus.bridge;t.prototype.addAttachment=function(e){"string"==typeof e&&this.attachment.push(e)},e.messaging={createMessage:function(e){return new t(e)},sendMessage:function(e,i,o){if(e instanceof t){var r="function"!=typeof i?null:function(){e.__hasPendingOperation__=!1,i()},s="function"!=typeof o?null:function(t){e.__hasPendingOperation__=!1,o(t)};if(e.__hasPendingOperation__)return void s({code:2,message:"sending"});e.__hasPendingOperation__=!0;var a=n.callbackId(r,s);n.exec("Messaging","sendMessage",[a,e],{cbid:a})}},listenMessage:function(e,t){var i="function"!=typeof e?null:function(t){e(t)},o="function"!=typeof t?null:function(e){t(e)},r=n.callbackId(i,o);n.exec("Messaging","listenMessage",[r],{cbid:r})},TYPE_SMS:1,TYPE_MMS:2,TYPE_EMAIL:3}}(window.plus),function(e){function t(e,t,n,i){var o,r;e&&(r="string"!=typeof e?e.toString():e,t&&(o=I.callbackId(function(e){t(e)})),m.exec(b,"alert",[window.__HtMl_Id__,[r,o,n,i]]))}function n(e,t){return new v("actionSheet",e,t)}function i(e,t){var n;e&&(n="string"!=typeof e?e.toString():e,m.exec(b,"toast",[window.__HtMl_Id__,[n,t]]))}function o(){m.exec(b,"closeToast",[window.__HtMl_Id__,[]])}function r(e,t,n){if(e){e.onclick&&(e.__plus__onclickCallbackId=I.callbackId(e.onclick));var i;n&&(i=I.callbackId(function(e){var i={};i.index=e.index,i.target=t[e.index],n(i)})),m.exec(b,"showMenu",[window.__HtMl_Id__,[e,t,i]])}}function s(){m.exec(b,"hideMenu",[window.__HtMl_Id__])}function a(e){m.exec(b,"setUiStyle",[e])}function c(){return m.execSync(b,"isTitlebarVisible",[window.__HtMl_Id__])}function u(e){return m.exec(b,"setTitlebarVisible",[window.__HtMl_Id__,[e]])}function l(){return m.execSync(b,"getTitlebarHeight",[window.__HtMl_Id__])}function _(e,t,n,i){var o,r;e&&(r="string"!=typeof e?e.toString():e,t&&(o=I.callbackId(function(e){var n={};n.index=e,t(n)})),m.exec(b,"confirm",[window.__HtMl_Id__,[r,o,n,i]]))}function f(e,t,n,i,o){var r;if(e){r="string"!=typeof e?e.toString():e;var s;t&&(s=I.callbackId(function(e){e.value=e.message,t(e)})),m.exec(b,"prompt",[window.__HtMl_Id__,[r,s,n,i,o]])}}function d(e,t,n){if(e&&"function"==typeof e){var i={};n&&(n.minDate instanceof Date?(i.startYear=n.minDate.getFullYear(),i.startMonth=n.minDate.getMonth(),i.startDay=n.minDate.getDate()):x.isNumber(n.startYear)&&(i.startYear=n.startYear,i.startMonth=0,i.startDay=1),n.maxDate instanceof Date?(i.endYear=n.maxDate.getFullYear(),i.endMonth=n.maxDate.getMonth(),i.endDay=n.maxDate.getDate()):x.isNumber(n.endYear)&&(i.endYear=n.endYear,i.endMonth=11,i.endDay=31),n.date instanceof Date&&(i.setYear=n.date.getFullYear(),i.setMonth=n.date.getMonth(),i.setDay=n.date.getDate()),i.popover=n.popover,i.title=n.title);var o="function"!=typeof e?null:function(t){var n=void 0!==t?new Date(t):null,i={};i.date=n,e(i)},r="function"!=typeof t?null:function(e){t(e)},s=I.callbackId(o,r);m.exec(b,"pickDate",[window.__HtMl_Id__,[s,i]])}}function h(e,t,n){if(e&&"function"==typeof e){var i=!1;if("object"==typeof n){var o=n.time;o instanceof Date&&(n.__hours=o.getHours(),n.__minutes=o.getMinutes(),i=!0)}var r="function"!=typeof e?null:function(t){var n=void 0!==t?new Date(t):null,i={};i.date=n,e(i)},s="function"!=typeof t?null:function(e){t(e)},a=I.callbackId(r,s);m.exec(b,"pickTime",[window.__HtMl_Id__,[a,n]]),i&&(delete n.__hours,delete n.__minutes)}}function p(t,n){this.__uuid__=e.tools.UUID("WaitingView"),this.onclose=null;var i=this,o=I.callbackId(function(){"function"==typeof i.onclose&&i.onclose()});m.exec(b,"WaitingView",[this.__uuid__,[t,n,o]])}function v(t,n,i){this.__uuid__=e.tools.UUID("NativeObj_");var o;i&&(o=I.callbackId(function(e){var t={};t.index=e,i(t)})),m.exec("NativeUI",t,[window.__HtMl_Id__,[n,o,this.__uuid__]])}function y(e,t){return new p(e,t)}function g(){I.exec(b,"closeWaiting",[])}function w(e,t){var n=t,i=I.callbackId(function(e){"function"==typeof n.onLongPress&&n.onLongPress(e)});I.exec(b,"previewImage",[this.__uuid__,[e,t,i]])}var e=e,m=e.bridge,b="NativeUI",I=e.bridge,x=e.tools;p.prototype.close=function(){m.exec(b,"WaitingView_close",[this.__uuid__])},p.prototype.setTitle=function(e){m.exec(b,"WaitingView_setTitle",[this.__uuid__,[e]])},v.prototype.close=function(){m.exec("NativeUI","_NativeObj_close",[this.__uuid__])},e.nativeUI={pickTime:h,pickDate:d,alert:t,confirm:_,showWaiting:y,prompt:f,toast:i,closeToast:o,showMenu:r,hideMenu:s,isTitlebarVisible:c,setTitlebarVisible:u,getTitlebarHeight:l,actionSheet:n,closeWaiting:g,setUiStyle:a,setUIStyle:a,previewImage:w}}(window.plus),function(e){function t(e,t,n){this.__id__=d.UUID("Bitmap"),this.id=e,this.type="bitmap",n||(p[this.__id__]=this,f.exec(_,"Bitmap",[this.__id__,e,t]))}function n(e,t,n,i){var r=new o(e,t,n,i,"ImageSlider");return r.type="ImageSlider",r}function i(e){if(e instanceof Array)for(var t,n=0;n<e.length;n++)t=e[n],t&&"input"==t.tag?t.inputStyles&&(t.inputStyles.onComplete&&"function"==typeof t.inputStyles.onComplete&&(t.inputStyles.__onCompleteCallBackId__=f.callbackId(t.inputStyles.onComplete)),t.inputStyles.onFocus&&"function"==typeof t.inputStyles.onFocus&&(t.inputStyles.__onFocusCallBackId__=f.callbackId(t.inputStyles.onFocus)),t.inputStyles.onBlur&&"function"==typeof t.inputStyles.onBlur&&(t.inputStyles.__onBlurCallBackId__=f.callbackId(t.inputStyles.onBlur))):t&&"richtext"==t.tag&&t.richTextStyles&&t.richTextStyles.onClick&&"function"==typeof t.richTextStyles.onClick&&(t.richTextStyles.__onClickCallBackId__=f.callbackId(t.richTextStyles.onClick))}function o(e,t,n,o,r){this.__id__=e,this.id=e,this.__uuid__=d.UUID("NativeView"),this.type="nativeView",this.IDENTITY=_,o||(i(n),f.exec(_,"View",[this.__id__,this.__uuid__,t,n,r]),h[this.__uuid__]=this)}function r(e,t){var n=null;for(var i in y){var o=y[i];if(t){if(o.uid&&o.uid==e||o.uuid&&o.uuid==e){n=o;break}}else if(o.id==e){n=o;break}}return n}function s(t){var n=h[t.uuid];if(!n){if(t.type&&"ImageSlider"==t.type)n=new e.nativeObj.ImageSlider(t.id,t.styles,"",!0);else{var i=v[t.type];n=i?new i(t.id,t.styles,"",!0):new e.nativeObj.View(t.id,t.styles,"",!0)}n.__uuid__=t.uuid,h[n.__uuid__]=n}return n}function a(t,n,i,o){var r=new e.nativeObj.View(n,i,o);return r.__uuid__=t,h[r.__uuid__]=r,r}function c(e){y[e.uuid]=e}function u(e){for(var t=0;t<e.length;t++)delete y[e[t]]}function l(e,t){e&&"function"==typeof t&&(v[e]=t)}var e=e,_="NativeObj",f=e.bridge,d=e.tools,h={},p={},v={},y={};t.prototype.clear=function(){f.exec(_,"clear",[this.__id__]),this.__id__=void 0,p[this.__id__]&&delete p[this.__id__]},t.prototype.recycle=function(){f.exec(_,"bitmapRecycle",[this.__id__])},t.prototype.load=function(e,t,n){var i=function(e){"function"==typeof n&&n(e)};if(this.__id__){var o=f.callbackId(function(){"function"==typeof t&&t()},i);f.exec(_,"load",[this.__id__,e,o])}else i({code:-1,message:"已经销毁的对象"})},t.prototype.loadBase64Data=function(e,t,n){var i=function(e){"function"==typeof n&&n(e)};if(this.__id__){var o=f.callbackId(function(){"function"==typeof t&&t()},i);f.exec(_,"loadBase64Data",[this.__id__,e,o])}else i({code:-1,message:"已经销毁的对象"})},t.prototype.save=function(e,t,n,i){var o=function(e){"function"==typeof i&&i(e)};if(this.__id__){var r=f.callbackId(function(e){if("function"==typeof n){var t={target:e.path,width:e.w,height:e.h,size:e.size};n(t)}},o);f.exec(_,"save",[this.__id__,e,t,r])}else o({code:-1,message:"已经销毁的对象"})},t.prototype.__captureWebview=function(e,t,n,i){var o=function(e){"function"==typeof i&&i(e)};if(this.__id__){var r=f.callbackId(function(){"function"==typeof n&&n()},o);f.exec(_,"captureWebview",[this.__id__,e,r,t])}else o({code:-1,message:"已经销毁的对象"})},t.prototype.toBase64Data=function(){return this.__id__?f.execSync(_,"toBase64Data",[this.__id__]):null},t.getItems=function(){for(var e=[],n=f.execSync(_,"getItems",[]),i=0;i<n.length;i++){var o=n[i].__id__,r=p[o];if(!r){var s=new t(n[i].id,null,!0);s.__id__=o,p[o]=s,r=s}e.push(r)}return e},t.getBitmapById=function(e){var n=f.execSync(_,"getBitmapById",[e]);if(n){var i=p[n.__id__];if(!i){var o=new t(n.id,null,!0);o.__id__=n.__id__,p[n.__id__]=o,i=o}return i}return null},o.prototype.setImages=function(e){f.exec(_,"setImages",[this.__id__,this.__uuid__,e])},o.prototype.currentImageIndex=function(){return f.execSync(_,"currentImageIndex",[this.__id__,this.__uuid__])},o.prototype.addImages=function(e){f.exec(_,"addImages",[this.__id__,this.__uuid__,e])},o.prototype.drawBitmap=function(e,t,n,i){f.exec(_,"drawBitmap",[this.__id__,this.__uuid__,e,t,n,i])},o.prototype.drawText=function(e,t,n,i){f.exec(_,"drawText",[this.__id__,this.__uuid__,e,t,n,i])},o.prototype.drawRichText=function(e,t,n,i){n&&n.onClick&&"function"==typeof n.onClick&&(n.__onClickCallBackId__=f.callbackId(n.onClick)),f.exec(_,"drawRichText",[this.__id__,this.__uuid__,e,t,n,i])},o.prototype.drawInput=function(e,t,n){t.onComplete&&"function"==typeof t.onComplete&&(t.__onCompleteCallBackId__=f.callbackId(t.onComplete)),t.onFocus&&"function"==typeof t.onFocus&&(t.__onFocusCallBackId__=f.callbackId(t.onFocus)),t.onBlur&&"function"==typeof t.onBlur&&(t.__onBlurCallBackId__=f.callbackId(t.onBlur)),f.exec(_,"drawInput",[this.__id__,this.__uuid__,e,t,n])},o.prototype.getInputValueById=function(e){return f.execSync(_,"getInputValueById",[this.__id__,this.__uuid__,e])},o.prototype.getInputFocusById=function(e){return f.execSync(_,"getInputFocusById",[this.__id__,this.__uuid__,e])},o.prototype.setInputFocusById=function(e,t){f.exec(_,"setInputFocusById",[this.__id__,this.__uuid__,e,t])},o.prototype.show=function(){f.exec(_,"show",[this.__id__,this.__uuid__])},o.prototype.setStyle=function(e){f.exec(_,"setStyle",[this.__id__,this.__uuid__,e])},o.prototype.hide=function(){f.exec(_,"hide",[this.__id__,this.__uuid__])},o.prototype.clear=function(){this.close()},o.prototype.close=function(){f.exec(_,"view_close",[this.__id__,this.__uuid__]),delete h[this.__uuid__]},o.prototype.animate=function(e,t){var n;t&&(n=f.callbackId(function(){"function"==typeof t&&t()})),f.exec(_,"view_animate",[this.__id__,this.__uuid__,e,n])},o.prototype.reset=function(){f.exec(_,"view_reset",[this.__id__,this.__uuid__])},o.prototype.restore=function(){f.exec(_,"view_restore",[this.__id__,this.__uuid__])},o.prototype.isVisible=function(){return f.execSync(_,"isVisible",[this.__id__,this.__uuid__])},o.prototype.drawRect=function(e,t,n){f.exec(_,"view_drawRect",[this.__id__,this.__uuid__,e,t,n])},o.prototype.interceptTouchEvent=function(e){f.exec(_,"interceptTouchEvent",[this.__id__,this.__uuid__,e])},o.prototype.addEventListener=function(e,t){var n,i=this;if(t){var o=function(e){"function"==typeof t&&(e.target=i,t(e))};t.callback=o,n=f.callbackId(o)}f.exec(_,"addEventListener",[this.__id__,this.__uuid__,e,n])},o.prototype.setEventListener=function(e,t){var n,i=this;if(t){var o=function(e){"function"==typeof t&&(e.target=i,t(e))};t.callback=o,n=f.callbackId(o)}f.exec(_,"setEventListener",[this.__id__,this.__uuid__,e,n])},o.prototype.setTouchEventRect=function(e){f.exec(_,"setTouchEventRect",[this.__id__,this.__uuid__,e])},o.getViewById=function(e){var t=f.execSync(_,"getViewById",[e]);return t||(t=r(e,!1)),t?s(t):null},o.__getViewByUidAndCreate=function(e){return s(e)},o.__getViewByUidFromCache=function(e){var t=r(e,!0);return t?s(t):null},o.startAnimation=function(e,t,n,i){if(e&&t){var r,s;s=t instanceof o?{viewId:t.__uuid__}:{uuid:t.bitmap?t.bitmap.__id__:null,texts:{value:t.text,textStyles:t.textStyles,textRect:t.textRect}};var a;n&&(a=n instanceof o?{viewId:n.__uuid__}:{uuid:n.bitmap?n.bitmap.__id__:null,texts:{value:n.text,textStyles:n.textStyles,textRect:n.textRect}}),i&&(r=f.callbackId(function(){"function"==typeof i&&i()})),f.exec(_,"startAnimation",[e,s,a,r])}},o.clearAnimation=function(e){e||(e="none"),f.exec(_,"clearAnimation",[e])},o.prototype.clearRect=function(e,t){f.exec(_,"view_clearRect",[this.__id__,this.__uuid__,e,t])},o.prototype.draw=function(e){i(e),f.exec(_,"view_draw",[this.__id__,this.__uuid__,e])};var g={Bitmap:t,View:o,ImageSlider:n,__createNView:a,__appendSubViewInfo:c,__removeSubViewInfos:u,__regChildViews:l};e.nativeObj=g}(plus),function(e){var e=e,t=window.plus.bridge,n=e.tools,i="Navigator";e.navigator={closeSplashscreen:function(){t.exec(i,"closeSplashscreen",[0])},updateSplashscreen:function(e){t.exec(i,"updateSplashscreen",[e])},isFullscreen:function(){return t.execSync(i,"isFullScreen",[0])},setFullscreen:function(e){t.exec(i,"setFullscreen",[e])},isImmersedStatusbar:function(){return t.execSync(i,"isImmersedStatusbar",[])},getStatusbarHeight:function(e){return this.__statusBarHeight__||(this.__statusBarHeight__=t.execSync(i,"getStatusbarHeight",[])),this.__statusBarHeight__},setStatusBarBackground:function(e){t.exec(i,"setStatusBarBackground",[e])},getStatusBarBackground:function(){return t.execSync(i,"getStatusBarBackground",[])},setStatusBarStyle:function(e){t.exec(i,"setStatusBarStyle",[e])},getStatusBarStyle:function(){return t.execSync(i,"getStatusBarStyle",[])},getUiStyle:function(){return t.execSync(i,"getUiStyle",[])},setUserAgent:function(e,n){t.execSync(i,"setUserAgent",[e,n])},getUserAgent:function(){return t.execSync(i,"getUserAgent",[],function(e){try{return null==window.eval(e)?null:e}catch(t){return e}return e})},removeCookie:function(e){t.exec(i,"removeCookie",[e])},removeSessionCookie:function(e,n){t.exec(i,"removeSessionCookie",[])},removeAllCookie:function(e,n){t.exec(i,"removeAllCookie",[])},setCookie:function(e,n){t.exec(i,"setCookie",[e,n])},getCookie:function(e){return t.execSync(i,"getCookie",[e],function(e){try{return null==window.eval(e)?null:e}catch(t){return e}return e})},setLogs:function(e){t.exec(i,"setLogs",[e])},isLogs:function(){return t.execSync(i,"isLogs",[0])},createShortcut:function(e,n,o){var r=t.callbackId(n,o);t.exec(i,"createShortcut",[e,r])},hasShortcut:function(e,o){if(n.platform!=n.IOS){var r=t.callbackId(o);t.exec(i,"hasShortcut",[e,r])}},checkPermission:function(e){return t.execSync(i,"checkPermission",[e])},requestPermission:function(e,n){var o=t.callbackId(n);return t.exec(i,"requestPermission",[e,o])},isBackground:function(){return t.execSync(i,"isBackground",[])},hasNotchInScreen:function(){return t.execSync(i,"hasNotchInScreen",[])},hasSplashscreen:function(){return t.execSync(i,"hasSplashscreen",[])},hideSystemNavigation:function(){return t.exec(i,"hideSystemNavigation",[])},getSafeAreaInsets:function(){return e.tools.ANDROID==e.tools.platform?{bottom:0,left:0,right:0,top:0,deviceBottom:0,deviceLeft:0,deviceRight:0,deviceTop:0}:t.execSync(i,"getSafeAreaInsets",[])},getOrientation:function(){return t.execSync(i,"getOrientation",[])}},e.navigator.getUIStyle=e.navigator.getUiStyle}(window.plus),function(e){function t(){this.id="",this.description="",this.authResult=null,this.userInfo=null,this.appleInfo=null}var e=e,n=e.bridge;t.prototype.login=function(e,t,i){var o=this,r="function"!=typeof e?null:function(t){var n={};n.target=o,o.authResult=t.authResult,o.userInfo=t.userInfo,o.appleInfo=t.appleInfo,o.extra=t.extra,e(n)},s="function"!=typeof t?null:function(e){t(e)},a=n.callbackId(r,s);n.exec("OAuth","login",[this.id,a,i],{cbid:a,sid:this.id})},t.prototype.authorize=function(e,t,i){var o=this,r="function"!=typeof e?null:function(t){var n={};n=t,n.target=o,e(n)},s="function"!=typeof t?null:function(e){t(e)};if("weixin"==o.id){var a=n.callbackId(r,s);n.exec("OAuth","authorize",[this.id,a,i],{cbid:a,sid:this.id})}else{t({code:10012,message:"WeChat only"})}},t.prototype.logout=function(e,t){var i=this,o="function"!=typeof e?null:function(t){var n={};i.authResult=null,i.userInfo=null,i.appleInfo=null,i.extra=t.extra,n.target=i,e(n)},r="function"!=typeof t?null:function(e){t(e)};this.authResult=null,this.userInfo=null,this.appleInfo=null;var s=n.callbackId(o,r);n.exec("OAuth","logout",[this.id,s],{cbid:s,sid:this.id})},t.prototype.getUserInfo=function(e,t){var i=this,o="function"!=typeof e?null:function(t){var n={};i.authResult=t.authResult,i.userInfo=t.userInfo,i.appleInfo=t.appleInfo,i.extra=t.extra,n.target=i,e(n)},r="function"!=typeof t?null:function(e){t(e)},s=n.callbackId(o,r);n.exec("OAuth","getUserInfo",[this.id,s],{cbid:s,sid:this.id})},t.prototype.addPhoneNumber=function(e,t){var i=this,o="function"!=typeof e?null:function(t){var n={};i.authResult=t.authResult,i.userInfo=t.userInfo,i.appleInfo=t.appleInfo,i.extra=t.extra,n.target=i,e(n)},r="function"!=typeof t?null:function(e){t(e)},s=n.callbackId(o,r);n.exec("OAuth","addPhoneNumber",[this.id,s],{cbid:s,sid:this.id})};var i={AuthService:t,getServices:function(e,t){var o="function"!=typeof e?null:function(t){for(var n=[],o=t.length,r=0;r<o;r++){var s=new i.AuthService;s.id=t[r].id,s.description=t[r].description,s.authResult=t[r].authResult,s.userInfo=t[r].userInfo,s.appleInfo=t[r].appleInfo,n[r]=s}e(n)},r="function"!=typeof t?null:function(e){t(e)},s=n.callbackId(o,r);n.exec("OAuth","getServices",[s])}};e.oauth=i}(window.plus),function(e){function t(e){var t=f.slice(0);d=new h(e.alpha,e.beta,e.gamma,p,v,y);for(var n=0,i=t.length;n<i;n++)t[n].win(d)}function n(e){for(var t=f.slice(0),n=0,i=t.length;n<i;n++)t[n].fail(e)}function i(){var e=a.callbackId(function(e){p=e.magneticHeading,v=e.trueHeading,y=e.headingAccuracy,t(e)},function(e){n(e)});a.exec(u,"start",[e]),l=!0}function o(){a.exec(u,"stop",[]),l=!1}function r(e,t){return{win:e,fail:t}}function s(e){var t=f.indexOf(e);t>-1&&(f.splice(t,1),0===f.length&&o())}var e=e,a=e.bridge,c=e.tools,u="Orientation",l=!1,_={},f=[],d=null,h=function(e,t,n,i,o,r){this.alpha=e,this.beta=t,this.gamma=n,this.magneticHeading=i,this.trueHeading=o,this.headingAccuracy=r},p=void 0,v=void 0,y=void 0,g={getCurrentOrientation:function(e,t){var n;n=r(function(t){s(n),e(t)},function(e){s(n),t&&t(e)}),f.push(n),l||i()},watchOrientation:function(e,t,n){var o=n&&n.frequency&&("number"==typeof n.frequency||n.frequency instanceof Number)?n.frequency:500,a=c.UUID("watch"),u=r(function(){},function(e){s(u),t&&t(e)});return f.push(u),_[a]={timer:window.setInterval(function(){d&&e(d)},o),listeners:u},l?d&&e(d):i(),a},clearWatch:function(e){e&&_[e]&&(window.clearInterval(_[e].timer),s(_[e].listeners),delete _[e])}};e.orientation=g}(window.plus),function(e){function t(){this.id="",this.description="",this.serviceReady=!0,this.installService=function(){i.exec(n,"installService",[this.id])},this.appStoreReceipt=function(){return i.execSync(n,"appStoreReceipt",[this.id])},this.restoreComplateRequest=function(e,t,o){if("appleiap"!==this.id){o({errorcode:"-3"})}var r="function"!=typeof t?null:function(e){t(e)},s="function"!=typeof o?null:function(e){o(e)},a=i.callbackId(r,s);i.exec(n,"restoreComplateRequest",[this.id,a,e])},this.requestOrder=function(e,t,o){if("appleiap"!==this.id){return void o({errorcode:"-3"})}var r="function"!=typeof t?null:function(e){t(e)},s="function"!=typeof o?null:function(e){o(e)},a=i.callbackId(r,s);i.exec(n,"requestOrder",[this.id,a,e])}}var e=e,n="Payment",i=window.plus.bridge,o={Channel:t,getChannels:function(e,t){var r="function"!=typeof e?null:function(t){for(var n=[],i=t.length,r=0;r<i;r++){var s=new o.Channel;s.id=t[r].id,s.description=t[r].description,s.serviceReady=t[r].serviceReady,n[r]=s}e(n)},s="function"!=typeof t?null:function(e){t(e)},a=i.callbackId(r,s);i.exec(n,"getChannels",[a])},request:function(e,o,r,s){var a="function"!=typeof r?null:function(e){r(e)},c="function"!=typeof s?null:function(e){s(e)};if(!(e instanceof t))return void window.setTimeout(function(){c({code:62e3})},0);var u=i.callbackId(a,c);i.exec(n,"request",[e.id,o,u])}};e.payment=o}(window.plus),function(e){var e=e,t=window.plus.bridge,n=e.tools;e.key={},keyEvent={},keyEvent.backbutton="back",keyEvent.menubutton="menu",keyEvent.searchbutton="search",keyEvent.volumeupbutton="volumeup",keyEvent.volumedownbutton="volumedown",keyEvent.keyup="keyup",keyEvent.keydown="keydown",keyEvent.longpressed="longpressed",e.key.addEventListener=function(n,i,o){function r(e){var t={};t.keycode=e.keyType,t.keyCode=e.keyCode,t.keyType=e.keyType,i(t)}if(n&&i&&"string"==typeof n&&"function"==typeof i){var s=e.webview.currentWebview();if(e.obj.Callback.prototype.addEventListener.apply(s,[keyEvent[n],r,o])){var a=[keyEvent[n],window.__HtMl_Id__];t.exec("UI","execMethod",[s.__IDENTITY__,"addEventListener",[s.__uuid__,a]])}}},e.key.removeEventListener=function(n,i){if(n&&i&&"string"==typeof n&&"function"==typeof i){var o=e.webview.currentWebview();if(e.obj.Callback.prototype.removeEventListener.apply(o,[keyEvent[n],i])){var r=[keyEvent[n],window.__HtMl_Id__],o=e.webview.currentWebview();t.exec("UI","execMethod",[o.__IDENTITY__,"removeEventListener",[o.__uuid__,r]])}}},e.key.setAssistantType=function(i){if(n.platform==n.IOS)window.__keyboardAssist.setInputType(i);else{var o=[i,window.__HtMl_Id__],r=e.webview.currentWebview();t.exec("UI","execMethod",[r.__IDENTITY__,"setAssistantType",[r.__uuid__,o]])}},e.key.hideSoftKeybord=function(){if(n.platform==n.IOS)t.exec("Runtime","hideSoftKeybord");else{var i=[window.__HtMl_Id__],o=e.webview.currentWebview();t.exec("UI","execMethod",[o.__IDENTITY__,"hideSoftKeybord",[o.__uuid__,i]])}},e.key.showSoftKeybord=function(){var n=[window.__HtMl_Id__],i=e.webview.currentWebview();t.exec("UI","execMethod",[i.__IDENTITY__,"showSoftKeybord",[i.__uuid__,n]])}}(window.plus),function(e){function t(){var e=r.callbackId(function(e){for(var t=l.slice(0),n=0,i=t.length;n<i;n++)t[n].win(e)},function(e){for(var t=l.slice(0),n=0,i=t.length;n<i;n++)t[n].fail(e)});r.exec(a,"start",[e]),c=!0}function n(){r.exec(a,"stop",[]),c=!1}function i(e,t){return{win:e,fail:t}}function o(e){var t=l.indexOf(e);t>-1&&(l.splice(t,1),0===l.length&&n())}var e=e,r=e.bridge,s=e.tools,a="Proximity",c=!1,u={},l=[],_={getCurrentProximity:function(e,t){var n=r.callbackId(function(t){s.IOS==s.platform&&(t=0==t?0:1/0),e&&e(t)},function(e){t&&t(e)});r.exec(a,"getCurrentProximity",[n])},watchProximity:function(e,n){var r=s.UUID("watch"),a=i(function(t){s.IOS==s.platform&&(t=0==t?0:1/0),e&&e(t)},function(e){o(a),n&&n(e)});return l.push(a),u[r]={listeners:a},c||t(),r},clearWatch:function(e){e&&u[e]&&(o(u[e].listeners),delete u[e])}};e.proximity=_}(window.plus),function(){var e='<div style="position: fixed;top: 0;left: 0;height:0px;line-height:0;width: 100%;overflow:hidden;text-align: center;z-index: 2147483647"><div style="margin: 3px auto;margin-bottom:10px;width:{WIDTH};height:{WIDTH};background-color: rgb(255, 255, 255);border-radius: 50%;box-shadow: rgb(187, 187, 187) 0px {SHADOWOFFSETY}px {SHADOWBLUR}px;"><canvas width="200" height="200" style="width:{WIDTH}"></canvas></div></div>';"function"!=typeof Object.assign&&(Object.assign=function(e,t){"use strict";if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(e),i=1;i<arguments.length;i++){var o=arguments[i];if(null!=o)for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r])}return n});var t,n=function(){function e(e){var t,n,i=a[e]={};for(e=e.split(/\s+/),t=0,n=e.length;t<n;t++)i[e[t]]=!0;return i}var t=Array.prototype.forEach,n=Object.prototype.hasOwnProperty,i={},o=function(e){return"object"==typeof e&&e instanceof Array},r=function(e){return"function"==typeof e},s=[].slice,a={},c=function(e,o,r){var s,a,c;if(e)if(t&&e.forEach===t)e.forEach(o,r);else if(e.length===+e.length){for(a=0,c=e.length;a<c;a++)if(a in e&&o.call(r,e[a],a,e)===i)return}else for(s in e)if(n.call(e,s)&&o.call(r,e[s],s,e)===i)return},u=function(t){t=t?a[t]||e(t):{};var n,i,s,c,u,l=[],_=[],f=function(e){var n,i,s;for(n=0,i=e.length;n<i;n++)s=e[n],o(s)?f(s):r(s)&&(t.unique&&h.has(s)||l.push(s))},d=function(e,o){for(o=o||[],n=!t.memory||[e,o],i=!0,u=s||0,s=0,c=l.length;l&&u<c;u++)if(!1===l[u].apply(e,o)&&t.stopOnFalse){n=!0;break}i=!1,l&&(t.once?!0===n?h.disable():l=[]:_&&_.length&&(n=_.shift(),h.fireWith(n[0],n[1])))},h={add:function(){if(l){var e=l.length;f(arguments),i?c=l.length:n&&!0!==n&&(s=e,d(n[0],n[1]))}return this},remove:function(){if(l)for(var e=arguments,n=0,o=e.length;n<o;n++)for(var r=0;r<l.length&&(e[n]!==l[r]||(i&&r<=c&&(c--,r<=u&&u--),l.splice(r--,1),!t.unique));r++);return this},has:function(e){if(l)for(var t=0,n=l.length;t<n;t++)if(e===l[t])return!0;return!1},empty:function(){return l=[],this},disable:function(){return l=_=n=void 0,this},disabled:function(){return!l},lock:function(){return _=void 0,n&&!0!==n||h.disable(),this},locked:function(){return!_},fireWith:function(e,o){return _&&(i?t.once||_.push([e,o]):t.once&&n||d(e,o)),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!n}};return h},l=function(e){var t,n=u("once memory"),i=u("once memory"),o=u("memory"),s="pending",a={resolve:n,reject:i,notify:o},_={done:n.add,fail:i.add,progress:o.add,state:function(){return s},isResolved:n.fired,isRejected:i.fired,then:function(e,t,n){return f.done(e).fail(t).progress(n),this},always:function(){return f.done.apply(f,arguments).fail.apply(f,arguments),this},pipe:function(e,t,n){return l(function(i){c({done:[e,"resolve"],fail:[t,"reject"],progress:[n,"notify"]},function(e,t){var n,o=e[0],s=e[1];r(o)?f[t](function(){n=o.apply(this,arguments),n&&r(n.promise)?n.promise().then(i.resolve,i.reject,i.notify):i[s+"With"](this===f?i:this,[n])}):f[t](i[s])})}).promise()},promise:function(e){if(e)for(var t in _)e[t]=_[t];else e=_;return e}},f=_.promise({});for(t in a)f[t]=a[t].fire,f[t+"With"]=a[t].fireWith;return f.done(function(){s="resolved"},i.disable,o.lock).fail(function(){s="rejected"},n.disable,o.lock),e&&e.call(f,f),f},_=function(e){var t=s.call(arguments,0),n=0,i=t.length,o=new Array(i),a=i,c=i<=1&&e&&r(e.promise)?e:l(),u=c.promise();if(i>1){for(;n<i;n++)t[n]&&t[n].promise&&r(t[n].promise)?t[n].promise().then(function(e){return function(n){t[e]=arguments.length>1?s.call(arguments,0):n,--a||c.resolveWith(c,t)}}(n),c.reject,function(e){return function(t){o[e]=arguments.length>1?s.call(arguments,0):t,c.notifyWith(u,o)}}(n)):--a;a||c.resolveWith(c,t)}else c!==e&&c.resolveWith(c,i?[e]:[]);return u};return l.when=_,l.Callbacks=u,l}(),i=function(){var e=window,t=e.document,n={NONE:0,NOOP:1,UP:2,RIGHT:3,DOWN:4,LEFT:5,LEFT_RIGHT:6},i={con:"",minDistance:4,onPullStart:function(){},onMove:function(){},onPullEnd:function(){}},o=function(e){"string"==typeof e.con&&(e.con=t.querySelector(e.con)),this.options=Object.assign({},i,e),this.hasTouch=!1,this.direction=n.NONE,this.distanceX=this.startY=this.startX=0,this.isPull=!1,this.initEvent()};return o.prototype={initEvent:function(){var e=this;this._touchStart=function(t){e.__start(t)},this._touchMove=function(t){e.__move(t)},this._touchEnd=function(t){e.__end(t)};var t=e.options.useCapture;this.options.con.addEventListener("touchstart",this._touchStart,t),this.options.con.addEventListener("touchmove",this._touchMove,t),this.options.con.addEventListener("touchend",this._touchEnd,t)},detachEvent:function(){var e=this.options.useCapture;this.options.con.removeEventListener("touchstart",this._touchStart,e),this.options.con.removeEventListener("touchmove",this._touchMove,e),this.options.con.removeEventListener("touchend",this._touchEnd,e)},__start:function(t){var i=t.touches;t=t.targetTouches,1===t.length&&1===i.length&&(this.startX=t[0].pageX,this.startY=t[0].pageY,this.direction=n.NONE,this.distanceX=0,this.hasTouch=!0,this.startScrollY=e.scrollY)},__move:function(e){if(this.hasTouch){if(this.direction===n.UP)return;var t=e.targetTouches[0];if(this.direction===n.NONE){this.distanceX=t.pageX-this.startX,this.distanceY=t.pageY-this.startY;var i=Math.abs(this.distanceY),o=Math.abs(this.distanceX);o+i>this.options.minDistance&&(this.direction=o>1.73*i?n.LEFT_RIGHT:i>1.73*o?this.distanceY<0?n.UP:n.DOWN:n.NOOP,this.startScrollY<10&&this.distanceY>0&&(this.direction=n.DOWN)),this.startScrollY<10&&this.direction===n.DOWN&&this.distanceY>this.options.minDistance&&(this.isPull=!0,this.options.onPullStart(e,this.distanceY))}this.isPull&&this.direction===n.DOWN&&(this.distanceY=t.pageY-this.startY,this.refreshY=parseInt(this.distanceY*this.options.pullRatio),this.options.onMove(e,this.distanceY))}},__end:function(e){!this.hasTouch||n.LEFT_RIGHT!==this.direction&&n.DOWN!==this.direction||(this.direction===n.LEFT_RIGHT&&(e.preventDefault(),e.stopPropagation(),this.options.onPullEnd(e,this.distanceX,n.LEFT_RIGHT)),this.direction===n.DOWN&&this.isPull&&(e.preventDefault(),e.stopPropagation(),this.options.onPullEnd(e,this.distanceY,n.DOWN))),this.hasTouch=!1,this.isPull=!1}},{init:function(e){return new o(e)},DIRECTION:n}}(),o=function(){var e=function(e,t,n,i,o,r,s,a,c){switch("string"==typeof t&&(t=parseFloat(t)),
  4. "string"==typeof n&&(n=parseFloat(n)),"string"==typeof i&&(i=parseFloat(i)),"string"==typeof o&&(o=parseFloat(o)),"string"==typeof r&&(r=parseFloat(r)),"string"==typeof s&&(s=parseFloat(s)),Math.PI,e.save(),a){case 0:var u=Math.sqrt((r-t)*(r-t)+(s-n)*(s-n));e.arcTo(i,o,t,n,.55*u),e.fill();break;case 1:c>.5&&(e.save(),e.beginPath(),e.moveTo(t,n),e.lineTo(i,o),e.lineTo(r,s),e.lineTo(t,n),e.fill());break;case 2:e.stroke();break;case 3:var l=(t+i+r)/3,_=(n+o+s)/3;e.quadraticCurveTo(l,_,t,n),e.fill();break;case 4:var f,d,h,p,u;if(r==t)u=s-n,f=(i+t)/2,h=(i+t)/2,d=o+u/5,p=o-u/5;else{u=Math.sqrt((r-t)*(r-t)+(s-n)*(s-n));var v=(t+r)/2,y=(n+s)/2,g=(v+i)/2,w=(y+o)/2,m=(s-n)/(r-t),b=u/(2*Math.sqrt(m*m+1))/5,I=m*b;f=g-b,d=w-I,h=g+b,p=w+I}e.bezierCurveTo(f,d,h,p,t,n),e.fill()}e.restore()},t=function(e,t,i,o,r,s,a,c,u,l,_,f,d,h){c=void 0!==c?c:3,u=void 0!==u?u:1,l=void 0!==l?l:Math.PI/8,_=void 0!==_?_:10,f=void 0!==f?f:1,e.save(),e.beginPath(),e.globalAlpha=1,e.restore(),e.lineWidth=f,e.beginPath(),e.arc(t,i,o,r,s,a),e.stroke();var p,v,y,g,w;1&u&&(p=Math.cos(r)*o+t,v=Math.sin(r)*o+i,y=Math.atan2(t-p,v-i),a?(g=p+10*Math.cos(y),w=v+10*Math.sin(y)):(g=p-10*Math.cos(y),w=v-10*Math.sin(y)),n(e,p,v,g,w,c,2,l,_,h)),2&u&&(p=Math.cos(s)*o+t,v=Math.sin(s)*o+i,y=Math.atan2(t-p,v-i),a?(g=p-10*Math.cos(y),w=v-10*Math.sin(y)):(g=p+10*Math.cos(y),w=v+10*Math.sin(y)),n(e,p-d*Math.sin(s),v+d*Math.cos(s),g-d*Math.sin(s),w+d*Math.cos(s),c,2,l,_,h)),e.restore()},n=function(t,n,i,o,r,s,a,c,u,l){"string"==typeof n&&(n=parseFloat(n)),"string"==typeof i&&(i=parseFloat(i)),"string"==typeof o&&(o=parseFloat(o)),"string"==typeof r&&(r=parseFloat(r)),s=void 0!==s?s:3,a=void 0!==a?a:1,c=void 0!==c?c:Math.PI/8,u=void 0!==u?u:10;var _,f,d,h,p="function"!=typeof s?e:s,v=Math.sqrt((o-n)*(o-n)+(r-i)*(r-i)),y=(v-u/3)/v;1&a?(_=Math.round(n+(o-n)*y),f=Math.round(i+(r-i)*y)):(_=o,f=r),2&a?(d=n+(o-n)*(1-y),h=i+(r-i)*(1-y)):(d=n,h=i),t.beginPath(),t.moveTo(d,h),t.lineTo(_,f),t.stroke();var g=Math.atan2(r-i,o-n),w=Math.abs(u/Math.cos(c));if(1&a){var m=g+Math.PI+c,b=o+Math.cos(m)*w,I=r+Math.sin(m)*w,x=g+Math.PI-c,S=o+Math.cos(x)*w,D=r+Math.sin(x)*w;p(t,b,I,o,r,S,D,s,l)}if(2&a){var m=g+c,b=n+Math.cos(m)*w,I=i+Math.sin(m)*w,x=g-c,S=n+Math.cos(x)*w,D=i+Math.sin(x)*w;p(t,b,I,n,i,S,D,s,l)}};return{drawArrow:n,drawArcedArrow:t}}(),r=function(){var t=window,r=(t.document,window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}),s={con:"",minDistance:4},a=["onPullStart","onMove","onRelease","needRefresh","doRefresh","noop"],c=25,u=300,l=10,_=function(e){return 5*e/12},f=function(){var e=document.createElement("canvas"),t=!(!e.getContext||!e.getContext("2d")),n=navigator.userAgent.toLowerCase(),i=(n.match(/chrome\/([\d.]+)/),n.match(/version\/([\d.]+).*safari/)),o=(n.match(/firefox\/([\d.]+)/),n.match(/mx[\d.]+/)),r=!1;return o&&i&&(r=!0),!t&&r}(),d=function(e){e.con=document;for(var t={},n=this,o=0;o<a.length;o++)t[a[o]]=n["_"+a[o]].bind(n);this.options=Object.assign({},s,t,e),this.shouldRefresh=!1,this.isRefreshing=!1,this.$pullTip=null,t.onPullEnd=this._onPullEnd.bind(this),e=Object.assign({},t,e),this.touchPull=i.init(e),this.refreshTimes=0};return d.prototype={_onPullStart:function(e,t){this.isRefreshing||(e.preventDefault(),this.addPullTip(this.options.con))},_onMove:function(e,t){if(!this.isRefreshing){e.preventDefault();var n=_(t);n=this.isRefreshing?n+this.minRefreshDistance:n,this.movePullTip(n),this.changePullTip(n,this.options.con)}},_onPullEnd:function(e,t,n){if(!this.isRefreshing){var i=this;this.options.needRefresh(t),this.options.onRelease().then(function(){i.options.needRefresh()?(i.isRefreshing=!0,i.refreshTimes+=1,i.options.doRefresh()):(i.reset(),i.options.noop())})}},transitionDefer:null,onTransitionEnd:function(){var e=this;e.shouldRefresh?e.canvasObj.startAuto():e.reset(),setTimeout(function(){e.transitionDefer.resolve()},!1)},_onRelease:function(){if(this.transitionDefer=n(),this.pullTipExist()){this.$pullTip.addEventListener("webkitTransitionEnd",this.onTransitionEnd.bind(this),!1);var e=this.shouldRefresh?this.minRefreshDistance:0;this.movePullTip(e,"all "+u+"ms linear",!0)}else this.transitionDefer.resolve();return this.transitionDefer},_doRefresh:function(){var e=n();return e.resolve(),e},_noop:function(){},_needRefresh:function(e){return e=_(e),!this.shouldRefresh&&e>=this.minRefreshDistance&&(this.shouldRefresh=!0),this.shouldRefresh},pullTipExist:function(){return this.$pullTip},reset:function(){var e=this.isRefreshing;this.isRefreshing=!1,this.shouldRefresh=!1,this.removePullTip(e)},canvasObj:function(){function e(){var e=(N+1)%A.length;return N=e,e}function t(e){return 360+e-F}function i(){I.clearRect(0,0,2*S,2*D)}function s(e){if(!f){var t=e.start,n=e.end,o=e.lineWidth,r=e.color,s=e.counterClockwise,a=e.co;e.clearRect&&i(),I.save(),I.globalCompositeOperation=a,I.beginPath(),I.arc(S,D,k,w(t),w(n),s),I.lineWidth=o,I.strokeStyle=r,I.stroke(),I.restore()}}function a(){if(!f){var n=V.speed,i=V.startAngle,o=L,r=V.color,a=V.lineWidth,c=V.counterClockwise,u=V.globalCompositeOperation,l=H||+new Date;o=+new Date,n=360/R*(o-l),H=o,L+=n,o=Math.min(W,L);var _="draw"===M;if(!x&&(s({start:i,end:o,color:r,lineWidth:a,counterClockwise:c,co:u,clearRect:_}),L>=W))if(I.closePath(),V="erase"!==M?P:O,"draw"===(M="erase"!==M?"erase":"draw")){C=V.color;var d=e(C);V.color=A[d],V.startAngle=(V.startAngle-F)%360,L=V.startAngle,W=t(L)}else L=V.startAngle=O.startAngle}}function _(e){if(!f){var t=e,n=O.speed,i=O.startAngle,o=O.startAngle,r=A[0];if(!isNaN(e)){e=Math.min(m.minRefreshDistance-c,e);var s=e/(m.minRefreshDistance-c);n=(W-l)*s-O.startAngle}o+=n,B=o,h({start:i,end:o,color:r,distance:e,clip:t})}}function d(){var e=m.minRefreshDistance-c,t=e/R*1.3,i=A[0],o=e,s=+new Date,a=n();return r(function e(){if(o>=0){var n=+new Date;o-=t*(n-s),s=n;var u=o/(m.minRefreshDistance-c),_=(W-l)*u-O.startAngle,f=B-_;f=Math.min(f,B),h({start:f,end:B,color:i,distance:o,clip:o}),r(e)}else a.resolve()}),a}function h(e){var t=e.distance,n=x?10:25,r=U,s=t/(m.minRefreshDistance-c);isNaN(t)||(n*=s,r=U*s),i(),E||(I.globalAlpha=1*e.distance/(m.minRefreshDistance+10)),I.strokeStyle=e.color,I.fillStyle=e.color,o.drawArcedArrow(I,S,D,k,w(e.start),w(e.end),!1,1,2,w(45),n,U,r,I.globalAlpha)}function p(e){var t=0;if(e){e=e.replace("matrix(","").replace(")",""),e=e.replace(/\s+/gi,"");t=e.split(",")[5]||0}return t}function v(){var e=m.$pullTip.ownerDocument.defaultView.getComputedStyle(m.$pullTip,null),t=p(e.transform);if(!(t<c)){var n=u,i=t/n,o=t,s=+new Date;r(function e(){if(o>c&&m.$pullTip){var t=+new Date;o-=i*(t-s),_(o-c),s=t,r(e)}})}}function y(e){}function g(e,t){var n=e;t||(n=Math.max(0,(e-c-40*m.options.ratio)/m.minRefreshDistance*360)),b.style.webkitTransition="none",b.style.webkitTransform="rotate("+n+"deg)"}function w(e){return e*(Math.PI/180)}var m=null,b=null,I=null,x=!1,S=100,D=100,k=50,T=0,U=15,E=!1,R=1e3,A=["green"],C=A[0],N=1,O={startAngle:0,speed:5,color:A[0],counterClockwise:!1,globalCompositeOperation:"source-out",lineWidth:U},P={startAngle:0,speed:5,color:"white",counterClockwise:!1,globalCompositeOperation:"destination-out",lineWidth:U+40},L=0,B=0,V=O,M="draw",F=50,W=0,H=0;return{init:function(e,n){this.reset(),H=0,E=!1,b=e.querySelector("canvas"),I=b.getContext?b.getContext("2d"):b,x=!b.getContext,B=L=0,O.startAngle=P.startAngle=0,W=t(L),N=1,A=[n.options.color],O.color=A[N],M="draw",V=O,m=n,x?(T=9,S=D=k=(40-2*T)/2):(S=D=100,T=0,k=50)},reset:function(){b=null,I=null},drawArrowedArcByDis:function(e){_(e)},drawArc:function(e){f?console.log("not support"):a()},clearCurrent:function(){f?console.log("not support"):v()},rotate:g,changeOpacity:y,autoRotate:function(){var e=b.style.webkitTransform;e=e.replace("rotate(","").replace("deg","").replace(")","");var t=parseFloat(e),n=this,i=+new Date;r(function e(){if(E){var o=+new Date,s=t+.24*(o-i);i=o,n.rotate(s,!0),t=s,r(e)}})},autoDraw:function(){if(!f){var e=function e(){E&&(a(),r(e))};d().done(function(){r(e)})}},startAuto:function(){E=!0;b.parentNode.style;m.touchPull.detachEvent(),this.autoDraw(),this.autoRotate()},stopAuto:function(){E=!1;b.parentNode.style;m.touchPull.initEvent(),clearTimeout(-1)}}}(),initCanvas:function(){this.canvasObj.init(this.$pullTip,this)},beginPullToRefresh:function(){this.shouldRefresh=!0,this.addPullTip(document.body),this._onPullEnd(null,this.minRefreshDistance,4)},addPullTip:function(t){this.removePullTip(),this.options.con;var n=this.$pullTip;if(!n){var i=document.createElement("div");i.innerHTML=e.replace(/\{WIDTH\}/g,40*this.options.ratio+"px").replace(/\{SHADOWOFFSETY\}/g,2*this.options.ratio).replace(/\{SHADOWBLUR\}/g,5*this.options.ratio),this.$pullTip=document.body.appendChild(i.firstElementChild),n=this.$pullTip,this.$pullTipInner=n.querySelector("div");var o=n.offsetHeight;c=25*this.options.ratio,this.minRefreshDistance=70*this.options.ratio;var r=n;r.querySelector("canvas");r.style.top=this.options.offset-o+"px",r.style.webkitTransition="none",r.style.webkitTransform="translate3d(0,0,0)",this.initCanvas()}},movePullTip:function(e,t,n){if(this.pullTipExist()){var i=Math.min(this.options.range+20*this.options.ratio,e);this.$pullTip.style.webkitTransition=t||"none";var o=50*this.options.ratio;i=Math.max(0,i-o),this.$pullTip.style.webkitTransform="translate3d(0,"+i+"px,0)",this.$pullTip.style.height=Math.min(e,o)+"px",this.$pullTipInner.style.webkitTransform="translateY("+Math.min(0,Math.max(-o,e-o))+"px)",0===e?this.canvasObj.clearCurrent():e>c&&(this.shouldRefresh?this.isRefreshing||!0===n||this.canvasObj.rotate(e):(e<=this.options.range+20*this.options.ratio-5&&e>=40*this.options.ratio&&this.canvasObj.rotate(e),this.canvasObj.drawArrowedArcByDis(e-c),this.canvasObj.changeOpacity(e-c)))}},changePullTip:function(e,t){this.pullTipExist()},removePullTip:function(e){if(this.pullTipExist())if(e){var t=this;t.canvasObj.stopAuto(),t.$pullTip.style.webkitTransition="all 100ms linear",t.$pullTip.style.opacity=.1,t.$pullTip.style.webkitTransform+=" scale(0.1)"}else this.$pullTip.removeEventListener("webkitTransitionEnd",this.onTransitionEnd,!1),this.$pullTip.remove(),this.$pullTip=null}},{init:function(e){return new d(e)}}}(),s=/complete|loaded|interactive/,a=function(e){s.test(document.readyState)?e():document.addEventListener("DOMContentLoaded",function(){e()},!1)},c=!1;window.__setPullToRefresh__=function(e,n){a(function(){if(!e.support&&t)return t.reset(),t.touchPull.detachEvent(),void(c=!0);if(e.support){var i=window.innerWidth;980===i&&(i=window.plus&&plus.screen.resolutionWidth||window.screen.width);var o=i/(window.plus&&plus.screen.resolutionWidth||window.screen.width),s=parseInt(e.offset),a=parseInt(e.range)||128;useCapture=!1!==e.useCapture,s*=o,a=a*o+s,t?(t.options.useCapture=useCapture,c&&t.touchPull.initEvent(),e.offset&&(t.options.offset=s),e.range&&(t.options.range=a),e.color&&(t.options.color=e.color),t.options.doRefresh=n):t=r.init({offset:s,range:a,ratio:o,useCapture:useCapture,color:e.color||"green",doRefresh:n})}})},window.__endPullToRefresh__=function(){t&&t.reset()},window.__beginPullToRefresh__=function(){t&&t.beginPullToRefresh()}}(),__Mkey__Push__=function(){var e=[];return{pushCallback_Push:function(t,n,i){e[t]={fun:n,nokeep:i}},execCallback_Push:function(t,n,i){e[t]&&e[t].fun&&e[t].fun(i)}}}(),function(e){function t(e,t,n){this.__UUID__=null,this.message=e,this.Payload=t,this.options=n}function n(){return r||(r=window.__requireNativePlugin__("UniPush"),r.initialize(),o.platform==o.ANDROID&&e.webview.currentWebview().addEventListener("close",function(){r.removePushEvent(window.__HtMl_Id__)})),r}var e=e,i=window.plus.bridge,o=window.plus.tools;window.__isUniPush__=!1,e.push={getClientInfo:function(){return __isUniPush__?n().getClientInfo():i.execSync2("Push","getClientInfo",[])},getClientInfoAsync:function(e,t){if(__isUniPush__)n().getClientInfo(function(n){0==n.ret?"function"==typeof e&&e(n.payload):"function"==typeof t&&t(n.payload)});else{var o=i.callbackId(function(t){"function"==typeof e&&e(t)},function(e){"function"==typeof t&&t(e)});i.exec("Push","getClientInfoAsync",[o])}},createMessage:function(r,s,a){if(o.platform==o.IOS)__isUniPush__?n().createMessage({content:r,payload:s,options:a}):i.exec("Push","createMessage",[r,s,a]);else{a&&a.icon&&(a.icon=e.io.convertLocalFileSystemURL(a.icon));var c,r=new t(r,s,a);c=__isUniPush__?n().createMessage(r):i.execSync("Push","createMessage",[r]),r.__UUID__=c}},clear:function(){__isUniPush__?n().clear():i.exec("Push","clear",[])},addEventListener:function(e,t,r){if(__isUniPush__)n().addPushEvent(window.__HtMl_Id__,e,t);else{var s=o.UUID(e);__Mkey__Push__.pushCallback_Push(s,t,r),i.exec("Push","addEventListener",[window.__HtMl_Id__,s,e])}},remove:function(e){__isUniPush__&&o.platform==o.ANDROID?n().remove(e.__UUID__):i.exec("Push","remove",[e.__UUID__])},getAllMessage:function(){return __isUniPush__&&o.platform==o.ANDROID?n().getAllMessage():i.execSync("Push","getAllMessage",[])},setAutoNotification:function(e){__isUniPush__&&o.platform==o.ANDROID?n().setAutoNotification(e):i.exec("Push","setAutoNotification",[e])}};var r}(window.plus),function(e){var e=e,t=window.plus.bridge;e.runtime={arguments:null,version:null,innerVersion:null,uniVersion:"",launchLoadedTime:null,launcher:null,origin:null,processId:null,startupTime:null,isRecovery:!1,restart:function(){t.exec("Runtime","restart",[])},install:function(e,n,i,o){var r=t.callbackId(i,o);t.exec("Runtime","install",[e,r,n])},getProperty:function(e,n){var i=t.callbackId(n);t.exec("Runtime","getProperty",[e,i])},quit:function(){t.exec("Runtime","quit",[])},openURL:function(e,n,i){var o=t.callbackId(null,function(e){"function"==typeof n&&n(e)});t.exec("Runtime","openURL",[e,o,i])},launchApplication:function(e,n){var i=t.callbackId(null,function(e){"function"==typeof n&&n(e)});t.exec("Runtime","launchApplication",[e,i])},setBadgeNumber:function(e,n){"number"==typeof e&&t.exec("Runtime","setBadgeNumber",[e,n])},openFile:function(e,n,i){var o=t.callbackId(null,function(e){"function"==typeof i&&i(e)});t.exec("Runtime","openFile",[e,n,o])},isStreamValid:function(){return t.execSync("Runtime","isStreamValid")},openWeb:function(e){return t.exec("Runtime","openWeb",[e])},isApplicationExist:function(e){return null!==e&&void 0!==e&&"string"!=typeof e&&t.execSync("Runtime","isApplicationExist",[e])},processDirectPage:function(){return t.execSync("Runtime","processDirectPage",[])},isCustomLaunchPath:function(){return t.execSync("Runtime","isCustomLaunchPath")},getDCloudId:function(){return t.execSync("Runtime","getDCloudId")},agreePrivacy:function(){t.exec("Runtime","agreePrivacy",[])},disagreePrivacy:function(){t.exec("Runtime","disagreePrivacy",[])},isAgreePrivacy:function(){return t.execSync("Runtime","isAgreePrivacy",[])},downloadFile:function(e,n,i){if("string"==typeof e.url)if(e.url.length>10&&"blob:file:"==e.url.substring(0,10)){var o=new XMLHttpRequest;o.open("GET",e.url,!0),o.setRequestHeader("Content-type","application/x-www-form-urlencoded"),o.responseType="blob",o.onload=function(o){if(200==this.status){var r=this.response;try{const s=new FileReader;s.onload=function(o){var r=t.callbackId(n,i);t.exec("Runtime","downloadBlob",[o.target.result,e.fileName,r])},s.readAsDataURL(r),s.onerror=function(){i({code:-1,message:"blob error"})}}catch(e){var a={code:-1,message:e};i(a)}}else{var a={code:-1,message:this.status};i(a)}},o.onerror=function(e){i({code:-1,message:"data error"})},o.send()}else{var r=document.createElement("a");r.href=e.url+"&DCLOUD_DOWNLOAD_BLOB:"+e.fileName,r.download=e.fileName,r.click()}else try{const s=new FileReader;s.onload=function(o){var r=t.callbackId(n,i);t.exec("Runtime","downloadBlob",[o.target.result,e.fileName,r])},s.readAsDataURL(e.url),s.onerror=function(){i({code:-1,message:"blob error"})}}catch(e){var a={code:-1,message:e};i(a)}}}}(window.plus),function(e){function t(e,t,n,i){this.id=e,this.description=t,this.authenticated=n,this.accessToken=i,this.nativeClient=!1}function n(t,n){var s=this;s.__UUID__=o.UUID("Authorize"),s.__componentid__=t,s.display=n,s.onloaded=null,s.onauthenticated=null,s.onerror=null,s.__top__=0,s.__left__=0,s.__width__=0,s.__height__=0;var a=document.getElementById(s.__componentid__);a&&(s.__left__=a.offsetLeft,s.__top__=a.offsetTop,s.__width__=a.offsetWidth,s.__height__=a.offsetHeight);var c=function(e){"function"==typeof s.onerror&&s.onerror(e)},u=function(t){"load"==t.evt?"function"==typeof s.onloaded&&s.onloaded():"auth"==t.evt&&"function"==typeof s.onauthenticated&&e.share.getServices(function(e){for(var n=0;n<e.length;n++){var i=e[n];if(i.id==t.type){i.authenticated=t.authenticated,i.accessToken=t.accessToken,s.onauthenticated(i);break}}},function(e){c(e)})},l=i.callbackId(u,c);i.exec(r,"create",[s.__UUID__,l,s.display,s.__left__,s.__top__,s.__width__,s.__height__])}var e=e,i=e.bridge,o=e.tools,r="Share",s={},a=t.prototype;a.authorize=function(e,t,n){var o=this,s="function"!=typeof e?null:function(t){o.authenticated=t.authenticated,o.accessToken=t.accessToken,e(o)},a="function"!=typeof t?null:function(e){t(e)},c=i.callbackId(s,a);i.exec(r,"authorize",[c,this.id,n])},a.forbid=function(){this.authenticated=!1,this.accessToken=null,i.exec(r,"forbid",[this.id])},a.send=function(e,t,n){var o="function"!=typeof t?null:function(e){t()},s="function"!=typeof n?null:function(e){n(e)},a=i.callbackId(o,s);i.exec(r,"send",[a,this.id,e])},a.launchMiniProgram=function(e,t,n){var o="function"!=typeof t?null:function(e){t(e)},s="function"!=typeof n?null:function(e){n(e)},a=i.callbackId(o,s);i.exec(r,"launchMiniProgram",[a,this.id,e])},n.prototype.load=function(e){this.id=e,i.exec(r,"load",[this.__UUID__,e])},n.prototype.setVisible=function(e){i.exec(r,"setVisible",[this.__UUID__,e])};var c={Authorize:n,getServices:function(e,n){var o="function"!=typeof e?null:function(n){for(var i=[],o=0;o<n.length;o++){var r=n[o];if(r.id){var a=s[r.id];a||(a=new t),a.id=r.id,a.description=r.description,a.authenticated=r.authenticated,a.accessToken=r.accessToken,a.nativeClient=r.nativeClient,s[r.id]=a,i.push(a)}}e(i)},a="function"!=typeof n?null:function(e){n(e)},c=i.callbackId(o,a);i.exec(r,"getServices",[c])},sendWithSystem:function(e,t,n){var o="function"!=typeof t?null:function(e){t()},s="function"!=typeof n?null:function(e){n(e)},a=i.callbackId(o,s);i.exec(r,"sendWithSystem",[a,e])}};e.share=c}(window.plus),function(e){var e=e,t=window.plus.bridge,n={startRecognize:function(e,n,i){var o="function"!=typeof n?null:function(e){n(e)},r="function"!=typeof i?null:function(e){i(e)},s=t.callbackId(o,r),a={};if(e.onstart){var c="function"!=typeof e.onstart?null:function(){e.onstart()};a.onstart=t.callbackId(c)}if(e.onend){var u="function"!=typeof e.onend?null:function(){e.onend()};a.onend=t.callbackId(u)}t.exec("Speech","startRecognize",[s,e,a])},stopRecognize:function(){t.exec("Speech","stopRecognize",[])},addEventListener:function(e,n,i){var o;if(n){var r=function(e){"function"==typeof n&&n(e)};n.listener=r,o=t.callbackId(r)}t.exec("Speech","addEventListener",[e,o,window.__HtMl_Id__])}};e.speech=n}(window.plus),function(e){var e=e,t=e.bridge,n="Statistic";e.statistic={eventTrig:function(e,i){t.exec(n,"eventTrig",[e,i])},eventStart:function(e,i){t.exec(n,"eventStart",[e,i])},eventEnd:function(e,i){t.exec(n,"eventEnd",[e,i])},eventDuration:function(e,i,o){t.exec(n,"eventDuration",[e,i,o])}}}(window.plus),function(e){var e=e,t=window.plus.bridge;e.storage={getLength:function(){return t.execSync2("Storage","getLength",[null])},getAllKeys:function(){return t.execSync2("Storage","getAllKeys",[null])},getAllKeysAsync:function(e,n){if(e&&"function"==typeof e){var i="function"!=typeof n?null:function(e){n(e)},o=t.callbackId(e,i),r=[o];t.exec("Storage","getAllKeysAsync",r)}},getItem:function(e){return"string"==typeof e&&t.execSync2("Storage","getItem",[e],function(e){var t=e.indexOf(":");return"null"===e.substr(0,t)?null:e.substr(t+1)})},getItemAsync:function(e,n,i){if("string"==typeof e&&n&&"function"==typeof n){var o="function"!=typeof i?null:function(e){i(e)},r=t.callbackId(n,o),s=[r,e];t.exec("Storage","getItemAsync",s)}},setItem:function(e,n){return"string"==typeof e&&"string"==typeof n&&t.execSync2("Storage","setItem",[e,n])},setItemAsync:function(e,n,i,o){if("string"==typeof e&&"string"==typeof n&&i&&"function"==typeof i){var r="function"!=typeof o?null:function(e){o(e)},s=t.callbackId(i,r),a=[s,e,n];t.exec("Storage","setItemAsync",a)}},removeItem:function(e){return"string"==typeof e&&t.execSync2("Storage","removeItem",[e])},removeItemAsync:function(e,n,i){if("string"==typeof e&&n&&"function"==typeof n){var o="function"!=typeof i?null:function(e){i(e)},r=t.callbackId(n,o),s=[r,e];t.exec("Storage","removeItemAsync",s)}},clear:function(){return t.execSync2("Storage","clear",[null])},clearAsync:function(e,n){if(e&&"function"==typeof e){var i="function"!=typeof n?null:function(e){n(e)},o=t.callbackId(e,i),r=[o];t.exec("Storage","clearAsync",r)}},key:function(e){return"number"==typeof e&&t.execSync2("Storage","key",[e])}}}(window.plus),function(e){var e=e,t=window.plus.bridge,n=e.tools;e.stream={open:function(e,n,i){var o=t.callbackId(n,i);t.exec("Stream","open",[e,o])},setRestoreState:function(e){t.exec("Stream","setRestoreState",[e])},preload:function(e){t.exec("Stream","preload",[e])},list:function(e,n,i){var o=t.callbackId(n,i);t.exec("Stream","list",[e,o])},remove:function(e){t.exec("Stream","remove",[e])},freetrafficRequest:function(e,i,o){if(n.platform==n.IOS)return void("function"==typeof o&&o({code:-3,message:"不支持"}));var r=t.callbackId(i,o);t.exec("Stream","freetrafficRequest",[e,r])},freetrafficBind:function(e,i,o){if(n.platform==n.IOS)return void("function"==typeof o&&o({code:-3,message:"不支持"}));var r=t.callbackId(i,o);t.exec("Stream","freetrafficBind",[e,r])},freetrafficRelease:function(e,i,o){if(n.platform==n.IOS)return void("function"==typeof o&&o({code:-3,message:"不支持"}));var r=t.callbackId(i,o);t.exec("Stream","freetrafficRelease",[e,r])},freetrafficInfo:function(e,i){if(n.platform==n.IOS)return void("function"==typeof i&&i({code:-3,message:"不支持"}));var o=t.callbackId(e,i);t.exec("Stream","freetrafficInfo",[o])},freetrafficIsValid:function(){return n.platform==n.IOS?void("function"==typeof errorCallback&&errorCallback({code:-3,message:"不支持"})):t.exec("Stream","freetrafficIsValid",null)},activate:function(){if(n.platform==n.IOS)return void("function"==typeof errorCallback&&errorCallback({code:-3,message:"不支持"}));t.exec("Stream","activate",null)}}}(window.plus),function(e){function t(e){k[e.__uuid__]=e}function n(e){delete k[e.__uuid__]}function i(t,n,i,o){e.nativeUI.alert(t,n,i,o)}function o(t,n){e.nativeUI.toast(t,n)}function r(t,n,i,o){e.nativeUI.confirm(t,n,i,o)}function s(t,n,i,o,r){e.nativeUI.prompt(t,n,i,o,r)}function a(t,n,i){e.nativeUI.pickDate(t,n,i)}function c(t,n,i){e.nativeUI.pickTime(t,n,i)}function u(t,n){return new e.ui.NWindow(t,n)}function l(e,t){T[e]=t}function _(e,t){var n=new T[e](t);return t&&(n.id=t.id),I.exec(x,S,[x,"createView",[window.__HtMl_Id__,[e,n.__uuid__,t,n.__callback_id__]]]),n}function f(e,t){e&&e.close(t)}function d(){for(var t=I.execSync(x,D,[x,"enumWindow",[window.__HtMl_Id__]]),n=[],i={},o=0;o<t.length;o++){var r=t[o],s=k[r.uuid];null!=s&&void 0!==s||(s=new e.ui.NWindow(null,null,!0),s.__uuid__=r.uuid,I.exec(x,S,[x,"setcallbackid",[s.__uuid__,[s.__callback_id__]]])),n.push(s),i[s.__uuid__]=s}return k=i,n}function h(t){var n=I.execSync(x,D,[x,"findWindowByName",[window.__HtMl_Id__,[t]]]);if(n){var i=k[n.uuid];return null==i&&(i=new e.ui.NWindow(null,null,!0),i.__uuid__=n.uuid,I.exec(x,S,[x,"setcallbackid",[i.__uuid__,[i.__callback_id__]]])),i}}function p(){var t=k[window.__HtMl_Id__];return null!=t&&void 0!==t||(t=new e.ui.NWindow(null,null,!0),t.__uuid__=window.__HtMl_Id__,k[t.__uuid__]=t,I.exec(x,S,[x,"setcallbackid",[t.__uuid__,[t.__callback_id__]]])),t}function v(){e.navigator.closeSplashscreen()}function y(t){e.navigator.setFullscreen(t)}function g(e,t,n){I.exec(x,S,[e.__IDENTITY__,t,[e.__uuid__,n]])}function w(e,t,n){return I.execSync(x,D,[e.__IDENTITY__,t,[e.__uuid__,n]])}function m(t,n){return new e.nativeUI.showWaiting(t,n)}function b(){return I.execSync(x,D,[x,"isFullScreen",[0]])}var e=e,I=e.bridge,x="UI",S="execMethod",D="syncExecMethod",k={},T=(e.bridge,e.tools,{});e.ui={createWaiting:m,pickTime:c,pickDate:a,alert:i,confirm:r,prompt:s,toast:o,findWindowByName:h,closeWindow:f,createWindow:u,getSelfWindow:p,enumWindow:d,register:l,createView:_,exec:g,execSync:w,closeSplashscreen:v,setFullscreen:y,isFullscreen:b,__pushWindow__:t,__popWindow__:n,__nviews__:T}}(window.plus),function(e){function t(t){this.__IDENTITY__=t,this.__uuid__=e.tools.UUID(t),this.id,e.obj.Callback.call(this)}var e=e,n=e.ui,i=e.bridge;t.prototype.getMetrics=function(e){var t;e&&(t=i.callbackId(function(t){e(t)}),n.exec(this,"getMetrics",[t,window.__HtMl_Id__]))},t.prototype.onCallback=function(e,t,n){e(n)},t.prototype.addEventListener=function(t,i,o){if(e.obj.Callback.prototype.addEventListener.apply(this,[t,i,o])){var r=[t,window.__HtMl_Id__];n.exec(this,"addEventListener",r)}},t.prototype.removeEventListener=function(t,i){if(e.obj.Callback.prototype.removeEventListener.apply(this,[t,i])){var o=[t,window.__HtMl_Id__];n.exec(this,"removeEventListener",o)}},n.NView=t}(window.plus),function(e){function t(e,t,o){this.__view_array__=new Array,n.NView.prototype.constructor.apply(this,[i]),o||(n.__pushWindow__(this),n.exec(this,i,[e,t,this.__callback_id__,window.location.href]))}var e=e,n=e.ui,i="NWindow",o=e.bridge,r=t.prototype;e.tools.extend(r,n.NView.prototype),r.constructor=t,r.show=function(e,t,i){n.exec(this,"show",[e,t,i])},r.close=function(t,i){e.bridge.callbackFromNative(this.__callback_id__,{status:e.bridge.OK,message:{evt:"close"},keepCallback:!0}),n.__popWindow__(this),n.exec(this,"close",[t,i])},r.setOption=function(e){n.exec(this,"setOption",[e])},r.setVisible=function(e){n.exec(this,"setVisible",[e])},r.setPreloadJsFile=function(e){n.exec(this,"setPreloadJsFile",[e])},r.appendPreloadJsFile=function(e){n.exec(this,"appendPreloadJsFile",[e])},r.setContentVisible=function(e){n.exec(this,"setContentVisible",[e])},r.getUrl=function(){return n.execSync(this,"getUrl",[])},r.getTitle=function(){return n.execSync(this,"getTitle",[])},r.getOption=function(){return n.execSync(this,"getOption")},r.load=function(e){n.exec(this,"load",[e,window.location.href])},r.stop=function(){n.exec(this,"stop",[])},r.reload=function(e){n.exec(this,"reload",[e])},r.back=function(){n.exec(this,"back",[])},r.forward=function(){n.exec(this,"forward",[])},r.canBack=function(e){var t;e&&(t=o.callbackId(function(t){e(t)})),n.exec(this,"canBack",[t])},r.canForward=function(e){var t;e&&(t=o.callbackId(function(t){e(t)})),n.exec(this,"canForward",[t])},r.clear=function(){n.exec(this,"clear",[])},r.evalJS=function(e){n.exec(this,"evalJS",[e])},r.append=function(e){this.__view_array__.push(e),n.exec(this,"append",[e.__IDENTITY__,e.__uuid__])},r.setPullToRefresh=function(t,i){var o;i&&(o=e.bridge.callbackId(i)),this.addEventListener("pulldownrefreshevent",i,!1),n.exec(this,"setPullToRefresh",[t,o])},r.endPullToRefresh=function(){n.exec(this,"endPullToRefresh",[])},r.findViewById=function(t){for(var i=this.__view_array__.length,o=i-1;o>=0;o--){var r=this.__view_array__[o];if(t==r.id)return r}var s=n.execSync(this,"findViewById",[t]),a=s.identity,c=s.option,u=(s.uuid,new e.ui.__nviews__[a](c));return u.__uuid__=s.uuid,this.__view_array__.push(u),u},n.NWindow=t}(window.plus),function(e){function t(e,t,n){this.type=r.getValue(e,""),this.handles=[],this.capture=r.getValue(n,!1),"function"==typeof t&&this.handles.push(t)}function n(e,t,n){this.__UUID__=r.UUID(),this.url=r.getValue(e,""),this.options=t||{},this.uploadedSize=0,this.totalSize=0,this.responseText="",this.method=r.getValue(this.options.method,"GET"),this.chunkSize=r.getValue(this.options.chunkSize,0),this.timeout=r.getValue(this.options.timeout,120),this.retry=r.getValue(this.options.retry,3),this.retryInterval=r.getValue(this.options.retryInterval,30),this.priority=r.getValue(this.options.priority,1),this.onCompleted=n||null,this.eventHandlers={},this.__requestHeaders__={},this.__responseHeaders__={},this.__noParseResponseHeader__=null,this.__cacheReponseHeaders__={}}var e=e,i=window.plus.bridge,o=window.plus.tools,r={UUID:function(){return o.UUID("uploader")},server:"Uploader",getValue:function(e,t){return void 0===e?t:e}};t.prototype.fire=function(e){for(var t=0;t<this.handles.length;++t)this.handles[t].apply(this,arguments)},n.prototype.addFile=function(e,t){return"string"==typeof e&&"object"==typeof t&&(i.exec(r.server,"addFile",[this.__UUID__,e,t]),!0)},n.prototype.addData=function(e,t){return"string"==typeof e&&"string"==typeof t&&(i.exec(r.server,"addData",[this.__UUID__,e,t]),!0)},n.prototype.getAllResponseHeaders=function(){if(this.__noParseResponseHeader__)return this.__noParseResponseHeader__;var e="";for(var t in this.__responseHeaders__)e=e+t+" : "+this.__responseHeaders__[t]+"\r\n";return this.__noParseResponseHeader__=e,this.__noParseResponseHeader__},n.prototype.getResponseHeader=function(e){if("string"==typeof e){var t=null;if(e=e.toLowerCase(),t=this.__cacheReponseHeaders__[e])return t;for(var n in this.__responseHeaders__){var i=this.__responseHeaders__[n];n=n.toLowerCase(),e===n&&(t=t?t+", "+i:i)}return this.__cacheReponseHeaders__[e]=t,t}return""},n.prototype.setRequestHeader=function(e,t){if("string"==typeof e&&"string"==typeof t){var n=this.__requestHeaders__[e];this.__requestHeaders__[e]=n?n+", "+t:t}},n.prototype.start=function(){i.exec(r.server,"start",[this.__UUID__,this.__requestHeaders__])},n.prototype.pause=function(){i.exec(r.server,"pause",[this.__UUID__])},n.prototype.resume=function(){i.exec(r.server,"resume",[this.__UUID__])},n.prototype.abort=function(){i.exec(r.server,"abort",[this.__UUID__])},n.prototype.addEventListener=function(e,n,i){if("string"==typeof e&&"function"==typeof n){var o=e.toLowerCase();void 0===this.eventHandlers[o]?this.eventHandlers[o]=new t(e,n,i):this.eventHandlers[o].handles.push(n)}},n.prototype.__handlerEvt__=function(e){var t=this;t.state=r.getValue(e.state,t.state),t.uploadedSize=r.getValue(e.uploadedSize,t.uploadedSize),t.totalSize=r.getValue(e.totalSize,t.totalSize),t.__responseHeaders__=r.getValue(e.headers,{}),4==t.state&&"function"==typeof t.onCompleted&&(t.responseText=r.getValue(e.responseText,t.responseText),t.onCompleted(t,e.status||null));var n=this.eventHandlers.statechanged;n&&n.fire(t,void 0===e.status?null:e.status)},e.uploader={__taskList__:{},createUpload:function(e,t,o){if("string"==typeof e){var s=new n(e,t,o);return this.__taskList__[s.__UUID__]=s,i.exec(r.server,"createUpload",[s]),s}return null},enumerate:function(e,t){var o=this,s=o.__taskList__,a=i.callbackId(function(t){for(var i=0;i<t.length;i++){var o=t[i];if(o&&o.uuid){var a=s[o.uuid];a||(a=new n,a.__UUID__=o.uuid,s[a.__UUID__]=a),a.state=r.getValue(o.state,a.state),a.options=r.getValue(o.options,a.options),a.url=r.getValue(o.url,a.url),a.uploadedSize=r.getValue(o.uploadedSize,a.uploadedSize),a.totalSize=r.getValue(o.totalSize,a.totalSize),a.responseText=r.getValue(o.responseText,a.responseText),a.__responseHeaders__=r.getValue(t.headers,a.__responseHeaders__)}}var c=[];for(var u in s)c.push(s[u]);"function"==typeof e&&e(c)});i.exec(r.server,"enumerate",[a])},clear:function(e){var t=4;"number"==typeof e&&(t=e),i.exec(r.server,"clear",[t])},startAll:function(){i.exec(r.server,"startAll",[0])},__handlerEvt__:function(e,t){var n=this.__taskList__[e];n&&n.__handlerEvt__(t)}}}(window.plus),__Media_Live__Push__=function(){var e=[];return{pushCallback_LivePush:function(t,n,i,o,r){e[r]={fun:n,nokeep:i,pushobj:o}},execCallback_LivePush:function(t,n,i){if(e[i]){var o={};o.type=t,o.target=e[i].pushobj,o.detail=n,e[i].fun&&e[i].fun(o)}}}}(),function(e){function t(e){return h.getElementOffsetXInWebview(e)}
  5. function n(e){return h.getElementOffsetYInWebview(e)}function i(i,o,r,s){this.id=h.UUID("dt"),this.IDENTITY=f,this.userId=r,div=document.getElementById(i);var a=this.id;if(!s){var c=[];div&&(e.tools.platform==e.tools.ANDROID?document.addEventListener("plusorientationchange",function(){setTimeout(function(){var e=[t(div),n(div),div.offsetWidth,div.offsetHeight];_.exec(f,"resize",[a,e])},200)},!1):div.addEventListener("resize",function(){var e=[t(div),n(div),div.offsetWidth,div.offsetHeight];_.exec(f,"resize",[a,e])},!1),c=[t(div),n(div),div.offsetWidth,div.offsetHeight]),_.exec(f,"VideoPlayer",[this.id,c,o,r])}}function o(e,t){var n=new i(null,t,e);return v[n.id]=n,v[n.id]}function r(t){if(t&&"string"==typeof t){var n=_.execSync(f,"getVideoPlayerById",[t]);if(null!=n&&null!=n.uid){if(v[n.uid])return v[n.uid];if(null!=n&&void 0!=n){var i=new e.video.VideoPlayer(null,null,n.name,!0);return i.id=n.uid,v[n.uid]=i,i}return null}}}function s(i,o,r,s){this.IDENTITY="LivePusher",this.id=r,this.__uuid__=e.tools.UUID("LivePusher"),this.options=o,this.onCapture=null,me=this;var a=null;null!=r&&void 0!=r||(this.id=this.__uuid__);var c=document.getElementById(i);null!=c&&void 0!=c&&(e.tools.ANDROID==e.tools.platform?window.onresize=function(){var e=document.getElementById(i),o=[t(e),n(e),e.offsetWidth,e.offsetHeight];_.exec(d,"resize",[me.__uuid__,o])}:e.tools.IOS==e.tools.platform&&c.addEventListener("resize",function(){var e=[t(c),n(c),c.offsetWidth,c.offsetHeight];_.exec(d,"resize",[me.__uuid__,e])},!1),a=[t(c),n(c),c.offsetWidth,c.offsetHeight]);var u=!0;void 0==s||null==s||s||(u=!1),u&&_.exec(d,"LivePusher",[this.__uuid__,this.id,a,o])}function a(t,n,i){var o=!0;void 0==i||null==i||i||(o=!1);var r=new e.video.LivePusher(null,n,t,o);return p[r.__uuid__]=r,p[r.__uuid__]}function c(t){if(t&&"string"==typeof t){var n=_.execSync(d,"getLivePusherById",[t]);if(null!=n&&void 0!=n&&n.uuid){if(p[n.uuid])return p[n.uuid];var i=new e.video.LivePusher(null,null,t,!1);return i.__uuid__=n.uuid,p[n.uuid]=i,i}return null}}function u(i,o){o&&o.onCapture&&"function"==typeof o.onCapture&&(o.__onCaptureCallbackId__=_.callbackId(o.onCapture));var r=document.getElementById(i);e.tools.ANDROID==e.tools.platform?window.onresize=function(){var e=document.getElementById(i),o=[t(e),n(e),e.offsetWidth,e.offsetHeight];_.exec(f,"resize",o)}:e.tools.IOS==e.tools.platform&&r.addEventListener("resize",function(){var e=[t(r),n(r),r.offsetWidth,r.offsetHeight];_.exec(f,"resize",e)},!1);var s=[r.offsetLeft,r.offsetTop,r.offsetWidth,r.offsetHeight];_.exec(f,"VideoCapture",[s,o])}function l(e,t){t&&t.video&&(t.video.onCaptionChanged&&"function"==typeof t.video.onCaptionChanged&&(t.video.__onCaptionChangedCallbackId__=_.callbackId(t.onCapture)),t.video.onWatermarkChanged&&"function"==typeof t.video.onWatermarkChanged&&(t.video.__onWatermarkChangedCallbackId__=_.callbackId(t.onCapture))),div=document.getElementById(e),div.addEventListener("resize",function(){var e=[div.offsetLeft,div.offsetTop,div.offsetWidth,div.offsetHeight];_.exec(_BARCODE,"resize",[e])},!1);var n=[div.offsetLeft,div.offsetTop,div.offsetWidth,div.offsetHeight];_.exec(f,"VideoEditor",[n,t])}var e=e,_=e.bridge,f="VideoPlayer",d="LivePusher",h=e.tools,p={},v={},y=i.prototype;y.play=function(){_.exec(f,"VideoPlayer_play",[this.id])},y.pause=function(){_.exec(f,"VideoPlayer_pause",[this.id])},y.stop=function(){_.exec(f,"VideoPlayer_stop",[this.id])},y.close=function(){_.exec(f,"VideoPlayer_close",[this.id])},y.sendDanmu=function(e){_.exec(f,"VideoPlayer_sendDanmu",[this.id,e])},y.seek=function(e){_.exec(f,"VideoPlayer_seek",[this.id,e])},y.playbackRate=function(e){_.exec(f,"VideoPlayer_playbackRate",[this.id,e])},y.requestFullScreen=function(e){_.exec(f,"VideoPlayer_requestFullScreen",[this.id,e])},y.exitFullScreen=function(){_.exec(f,"VideoPlayer_exitFullScreen",[this.id])},y.hide=function(){_.exec(f,"VideoPlayer_hide",[this.id])},y.show=function(){_.exec(f,"VideoPlayer_show",[this.id])},y.setOptions=function(e){_.exec(f,"VideoPlayer_setOptions",[this.id,e])},y.setStyles=y.setOptions,y.addEventListener=function(e,t){var n,i=this;if(t){var o=function(e){"function"==typeof t&&(e.target=i,t(e))};t.callback=o,n=_.callbackId(o)}_.exec(f,"VideoPlayer_addEventListener",[this.id,e,n,window.__HtMl_Id__])};var g=s.prototype;g.start=function(e,t){var n="function"!=typeof e?null:function(t){e()},i="function"!=typeof t?null:function(e){t(e)},o=_.callbackId(n,i);_.exec(d,"start",[this.__uuid__,o])},g.preview=function(){_.exec(d,"preview",[this.__uuid__])},g.stop=function(e){_.exec(d,"stop",[this.__uuid__,e])},g.pause=function(){_.exec(d,"pause",[this.__uuid__])},g.close=function(){_.exec(d,"close",[this.__uuid__])},g.resume=function(){_.exec(d,"resume",[this.__uuid__])},g.close=function(){_.exec(d,"close",[this.__uuid__])},g.setStyles=function(e){_.exec(d,"setOptions",[this.__uuid__],e)},g.setOptions=function(e){_.exec(d,"setOptions",[this.__uuid__],e)},g.switchCamera=function(e){_.exec(d,"switchCamera",[this.__uuid__])},g.addEventListener=function(e,t,n){var i,o=this;if(t){var r=function(e){"function"==typeof callback&&(e.target=o,t(e))};t.listener=r,i=_.callbackId(r)}__Media_Live__Push__.pushCallback_LivePush(e,t,n,this,i),_.exec(d,"addEventListener",[this.__uuid__,window.__HtMl_Id__,e,i])},g.snapshot=function(e,t){var n="function"!=typeof e?null:function(t){e(t)},i="function"!=typeof t?null:function(e){t(e)},o=_.callbackId(n,i);_.exec(d,"snapshot",[this.__uuid__,o])};var w=u.prototype;w.setFilter=function(e){_.exec(f,"VideoCapture_setFilter",[e])},w.setFacing=function(e){_.exec(f,"VideoCapture_setFacing",[e])},w.setResolution=function(e){_.exec(f,"VideoCapture_setResolution",[e])},w.start=function(){_.exec(f,"VideoCapture_start",[])},w.stop=function(){_.exec(f,"VideoCapture_stop",[])},w.getSupportedResolutions=function(){return _.execSync(f,"VideoCapture_getSupportedResolutions",[])},w.close=function(){_.exec(f,"VideoCapture_close",[]),this.isClose=!0};var m=l.prototype;m.setCaption=function(e,t){_.exec(f,"VideoEditor_setCaption",[e,t])},m.setWatermark=function(e,t){_.exec(f,"VideoEditor_setWatermark",[e,t])},m.setIndex=function(e){_.exec(f,"VideoEditor_setIndex",[e])},m.play=function(){_.exec(f,"VideoEditor_play",[])},m.pause=function(){_.exec(f,"VideoEditor_pause",[])},m.close=function(){_.exec(f,"VideoEditor_close",[]),this.isClose=!0};var b={VideoPlayer:i,createVideoPlayer:o,getVideoPlayerById:r,createLivePusher:a,getLivePusherById:c,VideoCapture:u,VideoEditor:l,LivePusher:s,getSupportedResolutions:function(){return _.execSync(f,"getSupportedResolutions",[])},getVideoInfo:function(e,t){var n=null;t&&"function"==typeof t&&(n=_.callbackId(t)),_.exec(f,"getVideoInfo",[e,n])}};e.video=b}(window.plus),function(e){function t(e){C[e.__uuid__]=e}function n(e){delete C[e.__uuid__]}function i(t,n,i,o){return i=i||{},i.name=n,new e.webview.Webview(t,i,!1,o)}function o(e){U.exec(E,R,[E,"prefetchURL",[window.__HtMl_Id__,[e]]])}function r(e){U.exec(E,R,[E,"prefetchURLs",[window.__HtMl_Id__,[e]]])}function s(t,n,i){var o=null;if("string"==typeof t)o=f(t);else{if(!(t instanceof e.webview.Webview))return;o=t}o&&o.close(n,i)}function a(){for(var t=U.execSync(E,A,[E,"enumWindow",[window.__HtMl_Id__]]),n=[],i={},o=0;o<t.length;o++){var r=t[o],s=C[r.uuid];s||(s=new e.webview.Webview(null,null,!0,r.extras),s.__uuid__=r.uuid,s.id=r.id,U.exec(E,R,[E,"setcallbackid",[s.__uuid__,[s.__callback_id__]]])),n.push(s),i[s.__uuid__]=s}return C=i,n}function c(){var t=U.execSync(E,A,[E,"getDisplayWebview",[window.__HtMl_Id__]]),n=[];if(!t)return n;for(var i={},o=0;o<t.length;o++){var r=t[o],s=C[r.uuid];s?s.id||(s.id=r.id):(s=new e.webview.Webview(null,null,!0,r.extras),s.__uuid__=r.uuid,s.id=r.id,U.exec(E,R,[E,"setcallbackid",[s.__uuid__,[s.__callback_id__]]])),n.push(s),i[s.__uuid__]=s}return C=i,n}function u(){return l()}function l(){return O.platform!=O.IOS&&U.execSync(E,A,[E,"defaultHardwareAccelerated",[]])}function _(t,n,i){if(t&&"string"==typeof t){var o=C[t];return o||(o=new e.webview.Webview(null,null,!0,i),o.__uuid__=t,o.id__=n,o.id=n,U.exec(E,R,[E,"setcallbackid",[o.__uuid__,[o.__callback_id__]]]),C[t]=o),o}}function f(t){if(t&&"string"==typeof t){var n=U.execSync(E,A,[E,"findWindowByName",[window.__HtMl_Id__,[t]]]);if(n){var i=C[n.uuid];return null==i&&(i=new e.webview.Webview(null,null,!0,n.extras),i.__uuid__=n.uuid,i.id=n.id,U.exec(E,R,[E,"setcallbackid",[i.__uuid__,[i.__callback_id__]]]),C[i.__uuid__]=i),i}for(var o in C){var r=C[o];if(r&&r.id===t)return r}return null}}function d(){var t=C[window.__HtMl_Id__];if(null==t||void 0===t){var n=U.execSync2(E,A,[E,"currentWebview",[window.__HtMl_Id__]]);n&&(t=new e.webview.Webview(null,null,!0,n.extras),t.__uuid__=window.__HtMl_Id__,t.id=n.id,C[t.__uuid__]=t,U.exec(E,R,[E,"setcallbackid",[t.__uuid__,[t.__callback_id__]]]))}return t}function h(e,t){var n=C[window.__HtMl_Id__];U.exec(E,R,[E,"postMessageToUniNView",[n.__uuid__,[e,t]]])}function p(e,t){var n=C[window.__HtMl_Id__];return U.execSync2(E,A,[E,"__callNativeModuleSync",[n.__uuid__,[e,t]]])}function v(){var t=U.execSync2(E,A,[E,"getLaunchWebview",[]]);if(t){var n=C[t.uuid];return null==n&&(n=new e.webview.Webview(null,null,!0,t.extras),n.__uuid__=t.uuid,n.id=t.id,U.exec(E,R,[E,"setcallbackid",[n.__uuid__,[n.__callback_id__]]]),C[n.__uuid__]=n),n}}function y(t,n,i,o){var r=null;if("string"==typeof t)r=f(t);else{if(!(t instanceof e.webview.Webview))return;r=t}r&&r.hide(n,i,o)}function g(e,t,n){U.exec(E,R,[e.__IDENTITY__,t,[e.__uuid__,n]])}function w(e,t,n){return U.execSync(E,A,[e.__IDENTITY__,t,[e.__uuid__,n]])}function m(t,n,i,o,r,s,a){var c=e.webview.create(t,n,i,a);return c.show(o,r,s),c}function b(t,n,i,o,r){var s=null;if("string"==typeof t)s=f(t);else{if(!(t instanceof e.webview.Webview))return;s=t}s&&s.show(n,i,o,r)}function I(e){var t=C[e.WebviewID];t&&("onloading"==e.Event?null!=t.onloading&&t.onloading({target:t}):"onclose"==e.Event?(null!=t.onclose&&t.onclose({target:t}),delete C[e.WebviewID]):"onerror"==e.Event?null!=t.onerror&&t.onerror({target:t}):"onloaded"==e.Event&&null!=t.onloaded&&t.onloaded({target:t}))}function x(){"save"==arguments[0]?U.exec(E,R,[E,"debug",[location.href,arguments]]):U.execSync(E,R,[E,"debug",[location.href,arguments]])}function S(){if(O.IOS==O.platform)return null;var t=U.execSync(E,A,[E,"getWapLaunchWebview",[]]);if(t){var n=C[t.uuid];return null==n&&(n=new e.webview.Webview(null,null,!0,t.extras),n.__uuid__=t.uuid,n.id=t.id,U.exec(E,R,[E,"setcallbackid",[n.__uuid__,[n.__callback_id__]]]),C[n.__uuid__]=n),n}return null}function D(){var t=U.execSync(E,A,[E,"getTopWebview",[window.__HtMl_Id__]]);if(t){var n=C[t.uuid];return null==n&&(n=new e.webview.Webview(null,null,!0,t.extras),n.__uuid__=t.uuid,n.id=t.id,U.exec(E,R,[E,"setcallbackid",[n.__uuid__,[n.__callback_id__]]]),C[n.__uuid__]=n),n}return null}function k(t,n,i){if(t&&t.view&&t.styles&&t.styles.toLeft&&("string"==typeof t.view||t.view instanceof e.webview.Webview)){t.view instanceof e.webview.Webview&&(t.view=t.view.__uuid__),n&&n.view&&("string"==typeof n.view||n.view instanceof e.webview.Webview)&&n.view instanceof e.webview.Webview&&(n.view=n.view.__uuid__);var o,r;i&&"function"==typeof i&&(o=e.webview.currentWebview().__uuid__,r=N.callbackId(function(t){t.target=e.webview._find__Window_By_UUID__(t.target.uuid),i(t)})),U.exec(E,R,[E,"startAnimation",[window.__HtMl_Id__,[t,n,o,r]]])}}function T(){var t=U.execSync2(E,A,[E,"getSecondWebview",[]]);if(t){var n=C[t.uuid];return null==n&&(n=new e.webview.Webview(null,null,!0,t.extras),n.__uuid__=t.uuid,n.id=t.id,U.exec(E,R,[E,"setcallbackid",[n.__uuid__,[n.__callback_id__]]]),C[n.__uuid__]=n),n}}var e=e,U=e.bridge,E="UI",R="execMethod",A="syncExecMethod",C={},N=e.bridge,O=e.tools;e.webview={open:m,show:b,__test__:x,hide:y,createGroup:null,getWapLaunchWebview:S,getLaunchWebview:v,getSecondWebview:T,getWebviewById:f,getTopWebview:D,close:s,create:i,prefetchURL:o,prefetchURLs:r,currentWebview:d,postMessageToUniNView:h,__callNativeModuleSync__:p,all:a,getDisplayWebview:c,defauleHardwareAccelerated:u,defaultHardwareAccelerated:l,exec:g,execSync:w,_find__Window_By_UUID__:_,__pushWindow__:t,__popWindow__:n,__JSON_Window_Stack:C,__Webview_LoadEvent_CallBack_:I,startAnimation:k}}(window.plus),function(e){function t(t){this.__IDENTITY__=t,this.__uuid__=e.tools.UUID(t),this.id,e.obj.Callback.call(this)}var e=e,n=e.webview,i=e.bridge;t.prototype.getMetrics=function(e){var t;e&&(t=i.callbackId(function(t){var n={};n.canForward=t,e(n)}),n.exec(this,"getMetrics",[t,window.__HtMl_Id__]))},t.prototype.onCallback=function(t,n,i){if("popGesture"==n){var o=i.private_args,r=e.webview._find__Window_By_UUID__(o.uuid,o.id,o.extras),s={target:r,type:i.type,progress:i.progress};"result"in i&&(s.result=i.result),i=s}else i=i||{},i.target=this;t(i)},t.prototype.addEventListener=function(t,i,o){if(e.obj.Callback.prototype.addEventListener.apply(this,[t,i,o])){var r=[t,window.__HtMl_Id__];n.exec(this,"addEventListener",r)}},t.prototype.removeEventListener=function(t,i){if(e.obj.Callback.prototype.removeEventListener.apply(this,[t,i])){var o=[t,window.__HtMl_Id__];n.exec(this,"removeEventListener",o)}},n.NView=t}(window.plus),function(e){function t(t,i){e.webview.NView.prototype.constructor.apply(this,[n]),this.__children=[];var o=[];if(t instanceof Array)for(var r=0;r<t.length;r++){var s=t[r];s.styles=s.styles||{},s.styles.name=s.id;var a=new e.webview.Webview(s.url,s.styles,!0,s.extras);e.webview.__pushWindow__(a),this.__children.push(a);var c=[a.__uuid__,[s.url,s.styles,a.__callback_id__,location.host+location.pathname,s.extras]];o.push(c)}e.webview.exec(this,"createGroup",[o,i,this.__callback_id__])}var e=e,n="WebviewGroup",i=t.prototype;e.tools.extend(i,e.webview.NView.prototype),i.constructor=t,t.prototype.setSelectIndex=function(t){e.webview.exec(this,"setSelectIndex",[t])},t.prototype.children=function(){return this.__children},e.webview.createGroup=function(e,n){return new t(e,n)},e.webview.WebviewGroup=t}(window.plus),function(e){function t(){return window.location.href}function n(e){if(e instanceof Array)for(var t=0;t<e.length;t++)i(e[t])}function i(e){!function(e){if(e.onclick&&"function"==typeof e.onclick){var t=u.callbackId(function(){e.onclick(e)});e.__cb__={id:t,htmlId:window.__HtMl_Id__}}}(e)}function o(e){if(e instanceof Array)for(var t,n=0;n<e.length;n++)t=e[n],t&&"input"==t.tag?t.inputStyles&&(t.inputStyles.onComplete&&"function"==typeof t.inputStyles.onComplete&&(t.inputStyles.__onCompleteCallBackId__=u.callbackId(t.inputStyles.onComplete)),t.inputStyles.onFocus&&"function"==typeof t.inputStyles.onFocus&&(t.inputStyles.__onFocusCallBackId__=u.callbackId(t.inputStyles.onFocus)),t.inputStyles.onBlur&&"function"==typeof t.inputStyles.onBlur&&(t.inputStyles.__onBlurCallBackId__=u.callbackId(t.inputStyles.onBlur))):t&&"richtext"==t.tag&&t.richTextStyles&&t.richTextStyles.onClick&&"function"==typeof t.richTextStyles.onClick&&(t.richTextStyles.__onClickCallBackId__=u.callbackId(t.richTextStyles.onClick))}function r(i,r,s,u){if(this.__view_array__=new Array,a.NView.prototype.constructor.apply(this,[c]),this.id=null,r&&r.name&&(this.id=r.name),u)for(var _ in u)this[_]=u[_];!this.id&&i&&(this.id=r.name=i),l.platform==l.IOS&&r&&r.navigationbar&&(this.__navigationbar__=r.navigationbar);var f=[],d=null;if(r&&(d=r.titleNView||r.navigationbar)&&(d.uuid="_Nav_Bar_"+this.__uuid__,f.push(d.uuid),e.nativeObj.__appendSubViewInfo(d),n(d.buttons),o(d.tags)),r&&r.subNViews&&r.subNViews instanceof Array){for(var h=0;h<r.subNViews.length;h++){var p=r.subNViews[h];o(p.tags),p.uuid=l.UUID("Nativeview"),f.push(p.uuid),e.nativeObj.__appendSubViewInfo(p)}this.__subNViewsUids__=f,this.checkJSObject=!0,setTimeout(function(){this.checkJSObject=!1,e.nativeObj.__removeSubViewInfos(f)})}s||(a.__pushWindow__(this),a.exec(this,c,[i,r,this.__callback_id__,t(),u]))}function s(){window.__needNotifyNative__&&"touchmove"==this.type&&(window.__needNotifyNative__=a.execSync(e.webview.currentWebview(),"needTouchEvent",[])),_.oldPreventDefault.call(this)}var e=e,a=e.webview,c="NWindow",u=e.bridge,l=e.tools,_=r.prototype;e.tools.extend(_,a.NView.prototype),_.constructor=r,_.show=function(e,t,n,i){var o;n&&"function"==typeof n&&(o=u.callbackId(function(){n()})),a.exec(this,"show",[e,t,null,o,i])},_.close=function(t,n,i){this===e.webview.__JSON_Window_Stack[window.__HtMl_Id__]&&e.bridge.callbackFromNative(this.__callback_id__,{status:e.bridge.OK,message:{evt:"close"},keepCallback:!0}),a.exec(this,"close",[t,n,i])},_.setStyle=function(e){if(e&&"object"==typeof e){if(e){var t=e.titleNView||e.navigationbar;t&&(o(t.tags),n(t.buttons))}a.exec(this,"setOption",[e])}},_.updateSubNViews=function(e){if(e instanceof Array)for(var t,n=0;n<e.length;n++)(t=e[n])&&o(t.tags);a.exec(this,"updateSubNViews",[e])},_.nativeInstanceObject=function(){var t=e.ios||e.android;return t&&t.getWebviewById?t.getWebviewById(this.__uuid__):null},_.hide=function(e,t,n){a.exec(this,"hide",[e,t,n])},_.setVisible=function(e){a.exec(this,"setVisible",[e])},_.pause=function(){a.exec(this,"pause",[])},_.resume=function(){a.exec(this,"resume",[])},_.isPause=function(){return a.execSync(this,"isPause",[])},_.isVisible=function(){return a.execSync(this,"isVisible",[])},_.setFixBottom=function(e){a.exec(this,"setFixBottom",[e])},_.getSubNViews=function(){var t=[],n=a.execSync(this,"getSubNViews",[]);if(n&&n instanceof Array&&n.length>0){for(var i=0;i<n.length;i++){var o=e.nativeObj.View.__getViewByUidAndCreate(n[i]);t.push(o)}return t}if(this.checkJSObject&&this.__subNViewsUids__)for(var i=0;i<this.__subNViewsUids__.length;i++){var o=e.nativeObj.View.__getViewByUidFromCache(this.__subNViewsUids__[i]);o&&t.push(o)}return t},_.getNavigationbar=function(){return this.getTitleNView()},_.setTitleNViewButtonBadge=function(e){a.exec(this,"setTitleNViewButtonBadge",[e])},_.removeTitleNViewButtonBadge=function(e){a.exec(this,"removeTitleNViewButtonBadge",[e])},_.showTitleNViewButtonRedDot=function(e){a.exec(this,"showTitleNViewButtonRedDot",[e])},_.hideTitleNViewButtonRedDot=function(e){a.exec(this,"hideTitleNViewButtonRedDot",[e])},_.setTitleNViewSearchInputFocus=function(e){a.exec(this,"setTitleNViewSearchInputFocus",[e])},_.setTitleNViewSearchInputText=function(e){a.exec(this,"setTitleNViewSearchInputText",[e])},_.getTitleNViewSearchInputText=function(){return a.execSync(this,"getTitleNViewSearchInputText")},_.setTitleNViewButtonStyle=function(e,t){void 0!=e&&t&&(i(t),a.exec(this,"setTitleNViewButtonStyle",[e,t]))},_.getTitleNView=function(){var t;if(l.platform==l.IOS){var n="_Nav_Bar_"+this.__uuid__;t=e.nativeObj.View.getViewById(n),!t&&this.__navigationbar__&&(t=new e.nativeObj.View(n,this.__navigationbar__,"",!0),t.__uuid__=n)}else{var n=this.__uuid__;if(t=e.nativeObj.View.getViewById(n))!t&&this.__navigationbar__&&(t=new e.nativeObj.View(n,this.__navigationbar__,"",!0),t.__uuid__=n);else{var i=a.execSync(this,"getTitleNView",[]);i&&(t=new e.nativeObj.View(i.id,i.styles,!0),t.__uuid__=i.uuid)}}return t},window.__needNotifyNative__=!1,_.__needTouchEvent__=function(){Event.prototype.preventDefault!==s&&(_.oldPreventDefault=Event.prototype.preventDefault,Event.prototype.preventDefault=s)},_.drag=function(t,n,i){if(t&&t.direction&&"string"==typeof t.direction&&t.moveMode&&"string"==typeof t.moveMode){var o=t.moveMode.toLocaleLowerCase();if("followfinger"==o||"follow"==o||"silent"==o||"bounce"==o){var r=t.direction.toLocaleLowerCase();if("left"==r||"right"==r||"rtl"==r||"ltr"==r){if("rtl"==r&&(t.direction="left"),"ltr"==r&&(t.direction="right"),n){var s=n.view;if(null!=s&&("string"==typeof s||s instanceof e.webview.Webview||s instanceof e.nativeObj.View)&&("string"!=typeof s&&(n.view=s.__uuid__),n.moveMode)){if("string"!=typeof n.moveMode)return;var c=n.moveMode.toLocaleLowerCase();if("follow"!=c&&"silent"!=c)return;if("silent"==o&&"silent"==c)return}}var l,_;i&&"function"==typeof i&&(l=e.webview.currentWebview().__uuid__,_=u.callbackId(i)),a.exec(this,"drag",[t,n,l,_])}}}},_.setJsFile=function(e,t){e&&"string"==typeof e&&a.exec(this,"setPreloadJsFile",[e,t])},_.appendJsFile=function(e){e&&"string"==typeof e&&a.exec(this,"appendPreloadJsFile",[e])},_.setContentVisible=function(e){a.exec(this,"setContentVisible",[e])},_.opener=function(){var t=a.execSync(this,"opener",[]);return t?e.webview._find__Window_By_UUID__(t.uuid,t.id,t.extras):null},_.opened=function(){var t=a.execSync(this,"opened",[]);if(t){for(var n=[],i={},o=0;o<t.length;o++){var r=t[o],s=e.webview.__JSON_Window_Stack[r];s||(s=new e.webview.Webview(null,null,!0,r.extras),s.__uuid__=r.uuid,s.id=r.id,u.exec("UI","execMethod",["UI","setcallbackid",[s.__uuid__,[s.__callback_id__]]])),n.push(s),i[s.__uuid__]=s}return n}},_.remove=function(t){var n;if("string"==typeof t)n=t;else{if(!(t instanceof e.webview.Webview))return t instanceof e.nativeObj.View?void a.exec(this,"removeNativeView",[c,t.__uuid__]):void 0;n=t.__uuid__}a.exec(this,"remove",[n])},_.removeFromParent=function(){a.exec(this,"removeFromParent",[])},_.parent=function(){var t=a.execSync(this,"parent",[]);return t?e.webview._find__Window_By_UUID__(t.uuid,t.id,t.extras):null},_.children=function(){for(var t=[],n=a.execSync(this,"children",[]),i=0;i<n.length;i++)t.push(e.webview._find__Window_By_UUID__(n[i].uuid,n[i].id,n[i].extras));return t},_.getURL=function(){return a.execSync(this,"getUrl",[])},_.getTitle=function(){return a.execSync(this,"getTitle",[])},_.getStyle=function(){return a.execSync(this,"getOption")},_.loadURL=function(e,n){e&&"string"==typeof e&&a.exec(this,"load",[e,t(),n])},_.loadData=function(e,t){e&&"string"==typeof e&&a.exec(this,"loadData",[e,t])},_.stop=function(){a.exec(this,"stop",[])},_.reload=function(e){a.exec(this,"reload",[e])},_.draw=function(e,t,n,i){if(l.platform==l.IOS)e.__captureWebview?e.__captureWebview(this.__uuid__,i,t,n):"function"==typeof n&&n({code:-1,message:"参数错误"});else{var o=function(e){"function"==typeof n&&n(e)};if(e&&e.__id__){var r=u.callbackId(function(){"function"==typeof t&&t()},o);a.exec(this,"draw",[e.__id__,this.__uuid__,r,i])}else o({code:-1,message:"已经销毁的对象"})}},_.checkRenderedContent=function(e,t,n){var i=function(e){"function"==typeof n&&n(e)},o=u.callbackId(function(e){"function"==typeof t&&t(e)},i);a.exec(this,"checkRenderedContent",[this.__uuid__,o,e])},_.back=function(){a.exec(this,"back",[])},_.forward=function(){a.exec(this,"forward",[])},_.canBack=function(e){if(e&&"function"==typeof e){var t;e&&(t=u.callbackId(function(t){var n={};n.canBack=t,e(n)})),a.exec(this,"canBack",[t])}},_.canForward=function(e){if(e&&"function"==typeof e){var t;e&&(t=u.callbackId(function(t){var n={};n.canForward=t,e(n)})),a.exec(this,"canForward",[t])}},_.clear=function(){a.exec(this,"clear",[])},_.evalJS=function(e){e&&"string"==typeof e&&a.exec(this,"evalJS",[e])},_.test=function(e){a.exec(this,"test",[e])},_.append=function(t){t&&(t instanceof e.webview.Webview||t instanceof e.webview.WebviewGroup?(this.__view_array__.push(t),a.exec(this,"append",[t.__IDENTITY__,t.__uuid__])):t instanceof e.nativeObj.View?a.exec(this,"appendNativeView",[t.IDENTITY||c,t.__uuid__]):a.exec(this,"appendNativeView",[t.IDENTITY||c,t.__uuid__||t.id||t._UUID_]))},_.setPullToRefresh=function(t,n){var i;n&&(i=e.bridge.callbackId(n)),this.addEventListener("pulldownrefreshevent",n,!1),a.exec(this,"setPullToRefresh",[t,i])},_.endPullToRefresh=function(){a.exec(this,"endPullToRefresh",[])},_.beginPullToRefresh=function(){a.exec(this,"beginPullToRefresh",[])},_.setBounce=function(e,t){a.exec(this,"setBounce",[e,t])},_.resetBounce=function(){a.exec(this,"resetBounce",[])},_.setBlockNetworkImage=function(e){a.exec(this,"setBlockNetworkImage",[e])},_.captureSnapshot=function(t,n,i){var o="function"!=typeof n?null:function(e){n()},r="function"!=typeof i?null:function(e){i(e)},s=e.bridge.callbackId(o,r);e.tools.platform==e.tools.IOS?o():a.exec(this,"captureSnapshot",[t,s])},_.clearSnapshot=function(t){e.tools.platform!=e.tools.IOS&&a.exec(this,"clearSnapshot",[t])},_.overrideUrlLoading=function(e,t){var n=u.callbackId(function(e){"function"==typeof t&&t(e)});a.exec(this,"overrideUrlLoading",[e,n])},_.overrideResourceRequest=function(e){a.exec(this,"overrideResourceRequest",[e])},_.isHardwareAccelerated=function(){return l.platform!=l.IOS&&a.execSync(this,"isHardwareAccelerated",[])},_.listenResourceLoading=function(e,t){var n=u.callbackId(function(e){"function"==typeof t&&t(e)});a.exec(this,"listenResourceLoading",[e,n])},_.setCssFile=function(e){a.exec(this,"setCssFile",[e])},_.setCssText=function(e){a.exec(this,"setCssText",[e])},_.showBehind=function(e){a.exec(this,"showBehind",[e.__IDENTITY__,e.__uuid__])},_.animate=function(e,t){if(l.platform==l.IOS)return void setTimeout(t,10);var n;t&&(n=u.callbackId(function(){"function"==typeof t&&t()})),a.exec(this,"webview_animate",[e,n])},_.interceptTouchEvent=function(e){a.exec(this,"interceptTouchEvent",[e])},_.setFavoriteOptions=function(e){a.exec(this,"setFavoriteOptions",[e])},_.getFavoriteOptions=function(){return a.execSync(this,"getFavoriteOptions")},_.setShareOptions=function(e){a.exec(this,"setShareOptions",[e])},_.getShareOptions=function(){return a.execSync(this,"getShareOptions")},_.getSafeAreaInsets=function(){return e.tools.ANDROID==e.tools.platform?{bottom:0,left:0,right:0,top:0,deviceBottom:0,deviceLeft:0,deviceRight:0,deviceTop:0}:a.execSync(this,"getSafeAreaInsets")},_.restore=function(){a.exec(this,"webview_restore",null)},_.setSoftinputTemporary=function(e){a.exec(this,"setSoftinputTemporary",[e])},a.Webview=r}(window.plus),function(e){function t(e,t,n,i){this.target=e,this.lengthComputable=t,this.loaded=n,this.total=i}function n(){}function i(){this.__init__(),this.__UUID__=s.UUID("xhr")}function o(e){return"string"==typeof e?(e=e.replace(/(^\s*)|(\s*$)/g,""),0==e.indexOf("http://")||0==e.indexOf("https://")?e:e=0==e.indexOf("/")?location.origin+e:location.origin+location.pathname+e):""}var e=e,r=e.bridge,s=e.tools;n.Timeout=0,n.Other=1,i.Uninitialized=0,i.Open=1,i.Sent=2,i.Receiving=3,i.Loaded=4,i.__F__="XMLHttpRequest";var a=i.prototype;a.__init__=function(){this.readyState=i.Uninitialized,this.responseText="",this.responseXML=null,this.status=i.Uninitialized,this.statusText=null,this.onreadystatechange,this.responseType=null,this.response=null,this.withCredentials=!0,this.timeout=12e4,this.__noParseResponseHeader__=null,this.__requestHeaders__={},this.__responseHeaders__={},this.__cacheReponseHeaders__={},this.__progessEvent__=new t(this,!1,0,0),Object.defineProperty(this.__progessEvent__,"target",{enumerable:!1})},a.abort=function(){this.readyState>i.Uninitialized&&("function"==typeof this.onabort&&this.onabort(this.__progessEvent__),this.__init__(),r.exec(i.__F__,"abort",[this.__UUID__]))},a.getAllResponseHeaders=function(){if(this.readyState>=i.Receiving){if(this.__noParseResponseHeader__)return this.__noParseResponseHeader__;var e="";for(var t in this.__responseHeaders__)e=e+t+": "+this.__responseHeaders__[t]+"\r\n";return this.__noParseResponseHeader__=e,this.__noParseResponseHeader__}return null},a.getResponseHeader=function(e){if("string"==typeof e&&this.readyState>=i.Receiving){var t=null;if(e=e.toLowerCase(),t=this.__cacheReponseHeaders__[e])return t;for(var n in this.__responseHeaders__){var o=this.__responseHeaders__[n];n=n.toLowerCase(),e===n&&(t=t?t+", "+o:o)}return this.__cacheReponseHeaders__[e]=t,t}return null},a.setRequestHeader=function(e,t){if("string"==typeof e&&"string"==typeof t&&i.Open==this.readyState){var n=this.__requestHeaders__[e];this.__requestHeaders__[e]=n?n+", "+t:t}},a.open=function(e,t,n,s){i.Open!=this.readyState&&i.Loaded!=this.readyState||this.__init__(),i.Uninitialized==this.readyState&&(this.readyState=i.Open,r.exec(i.__F__,"open",[this.__UUID__,e,o(t),n,s,this.timeout]),"function"==typeof this.onreadystatechange&&this.onreadystatechange())},a.overrideMimeType=function(e){r.exec(i.__F__,"overrideMimeType",[this.__UUID__,e])},a.send=function(e){var t=this;if(i.Open==this.readyState){this.readyState=i.Sent,"function"==typeof this.onloadstart&&this.onloadstart(t.__progessEvent__);var o=r.callbackId(function(e){if(i.Receiving==e.readyState)i.Sent==t.readyState?(t.readyState=i.Receiving,t.status=e.status,t.statusText=e.statusText,t.__responseHeaders__=e.header,t.__progessEvent__.lengthComputable=e.lengthComputable,t.__progessEvent__.total=e.totalSize):i.Receiving==t.readyState&&(t.responseText=e.responseText,t.__progessEvent__.loaded=e.revSize),"function"==typeof t.onreadystatechange&&t.onreadystatechange(),"function"==typeof t.onprogress&&t.onprogress(t.__progessEvent__);else if(i.Loaded==e.readyState){t.readyState=i.Loaded,e.status&&(t.status=e.status);try{if(t.responseText){var o=new DOMParser;t.responseXML=o.parseFromString(t.responseText,"text/xml")}}catch(e){t.responseXML=null}try{if("document"==t.responseType){var o=new DOMParser;t.response=t.responseXML}else"json"==t.responseType&&(t.response=JSON.parse(t.responseText))}catch(e){t.response=null}"function"==typeof t.onreadystatechange&&t.onreadystatechange(),e.error==n.Timeout?"function"==typeof t.ontimeout&&t.ontimeout(t.__progessEvent__):e.error==n.Other?"function"==typeof t.onerror&&t.onerror(t.__progessEvent__):"function"==typeof t.onload&&t.onload(t.__progessEvent__),"function"==typeof t.onloadend&&t.onloadend(t.__progessEvent__)}});return r.exec(i.__F__,"send",[this.__UUID__,o,e,this.__requestHeaders__]),void("function"==typeof this.onreadystatechange&&this.onreadystatechange())}throw new Error("XMLHttpRequest not open")},e.net={XMLHttpRequest:i}}(window.plus),function(e){var e=e,t=window.plus.bridge;e.zip={decompress:function(e,n,i,o){var r=t.callbackId(i,o);t.exec("Zip","decompress",[e,n,r])},compress:function(e,n,i,o){var r=t.callbackId(i,o);t.exec("Zip","compress",[e,n,r])},compressImage:function(e,n,i){var o=t.callbackId(function(e){if(n){var t={target:e.path,width:e.w,height:e.h,size:e.size};n(t)}},i);t.exec("Zip","compressImage",[e,o])}}}(window.plus),function(e){function t(e){return c.getElementOffsetXInWebview(e)}function n(e){return c.getElementOffsetYInWebview(e)}function i(i,o){this.id=c.UUID("dt"),this.IDENTITY=a,div=document.getElementById(i);var r=this.id,u=[];div&&(e.tools.platform==e.tools.ANDROID?document.addEventListener("plusorientationchange",function(){setTimeout(function(){var e=[t(div),n(div),div.offsetWidth,div.offsetHeight];s.exec(a,"resize",[r,e])},200)},!1):div.addEventListener("resize",function(){var e=[t(div),n(div),div.offsetWidth,div.offsetHeight];s.exec(a,"resize",[r,e])},!1),u=[t(div),n(div),div.offsetWidth,div.offsetHeight]),s.exec(a,"ShortVideo",[this.id,u,o])}function o(i,o){this.id=c.UUID("dt"),this.IDENTITY=a,div=document.getElementById(i);var r=[],u=this.id;div&&(e.tools.platform==e.tools.ANDROID?document.addEventListener("plusorientationchange",function(){setTimeout(function(){var e=[t(div),n(div),div.offsetWidth,div.offsetHeight];s.exec(a,"shortVideoEditor_resize",[u,e])},200)},!1):div.addEventListener("resize",function(){var e=[t(div),n(div),div.offsetWidth,div.offsetHeight];s.exec(a,"shortVideoEditor_resize",[u,e])},!1),r=[t(div),n(div),div.offsetWidth,div.offsetHeight]),s.exec(a,"ShortVideoEditor",[this.id,r,o])}function r(e,t,n){var i="function"!=typeof t?null:function(e){t(e)},o="function"!=typeof n?null:function(e){n(e)},r=s.callbackId(i,o);s.exec(a,"uploader",[e,r])}var e=e,s=e.bridge,a="ShortVideo",c=e.tools,u=i.prototype;u.start=function(e){s.exec(a,"ShortVideo_start",[this.id,e])},u.pause=function(){s.exec(a,"ShortVideo_pause",[this.id])},u.resume=function(){s.exec(a,"ShortVideo_resume",[this.id])},u.stop=function(){s.exec(a,"ShortVideo_stop",[this.id])},u.close=function(){s.exec(a,"ShortVideo_close",[this.id])},u.switchCamera=function(e){s.exec(a,"ShortVideo_switchCamera",[this.id,e])},u.setStyles=function(e){s.exec(a,"ShortVideo_setStyles",[this.id,e])},u.startMixAudio=function(e){s.exec(a,"ShortVideo_startMixAudio",[this.id,e])},u.pauseMixAudio=function(){s.exec(a,"ShortVideo_pauseMixAudio",[this.id])},
  6. u.resumeMixAudio=function(){s.exec(a,"ShortVideo_resumeMixAudio",[this.id])},u.stopMixAudio=function(){s.exec(a,"ShortVideo_stopMixAudio",[this.id])},u.addEventListener=function(e,t){var n,i=this;if(t){var o=function(e){"function"==typeof t&&(e.target=i,t(e))};t.callback=o,n=s.callbackId(o)}s.exec(a,"ShortVideo_addEventListener",[this.id,e,n])};var l=o.prototype;l.play=function(){s.exec(a,"shortVideoEditor_play",[this.id])},l.pause=function(){s.exec(a,"shortVideoEditor_pause",[this.id])},l.resume=function(){s.exec(a,"shortVideoEditor_resume",[this.id])},l.stop=function(){s.exec(a,"shortVideoEditor_stop",[this.id])},l.close=function(){s.exec(a,"shortVideoEditor_close",[this.id])},l.setStyles=function(e){s.exec(a,"shortVideoEditor_setStyles",[this.id,e])},l.save=function(e,t,n){var i="function"!=typeof t?null:function(e){t(e)},o="function"!=typeof n?null:function(e){n(e)},r=s.callbackId(i,o);s.exec(a,"shortVideoEditor_save",[this.id,e,r])},l.addEventListener=function(e,t){var n,i=this;if(t){var o=function(e){"function"==typeof t&&(e.target=i,t(e))};t.callback=o,n=s.callbackId(o)}s.exec(a,"shortVideoEditor_addEventListener",[this.id,e,n])};var _={Camera:i,Editor:o,upload:r};e.shortvideo=_}(window.plus),function(e){var t=e.bridge,n={startBeaconDiscovery:function(e){if("object"==typeof e){var n="function"!=typeof e.complete?function(){}:e.complete,i="function"!=typeof e.success?n:function(t){e.success(t),n(t)},o="function"!=typeof e.fail?n:function(t){e.fail(t),n(t)};return callbackID=t.callbackId(i,o),t.exec("iBeacon","startBeaconDiscovery",[callbackID,e.uuids])}},stopBeaconDiscovery:function(e){var n="function"!=typeof e.complete?function(){}:e.complete,i="function"!=typeof e.success?n:function(t){e.success(t),n(t)},o="function"!=typeof e.fail?n:function(t){e.fail(t),n(t)};return callbackID=t.callbackId(i,o),t.exec("iBeacon","stopBeaconDiscovery",[callbackID])},getBeacons:function(e){var n="function"!=typeof e.complete?function(){}:e.complete,i="function"!=typeof e.success?n:function(t){e.success(t),n(t)},o="function"!=typeof e.fail?n:function(t){e.fail(t),n(t)};return callbackID=t.callbackId(i,o),t.exec("iBeacon","getBeacons",[callbackID])},onBeaconUpdate:function(e){var n="function"!=typeof e?null:e;return callbackID=t.callbackId(n),t.exec("iBeacon","onBeaconUpdate",[callbackID])},onBeaconServiceChange:function(e){var n="function"!=typeof e?null:e;return callbackID=t.callbackId(n),t.execSync("iBeacon","onBeaconServiceChange",[callbackID])}};e.ibeacon=n}(window.plus),function(e){var t=window.plus.bridge,n={closeBluetoothAdapter:function(e){return callbackID=this.getCallbackIDByFunction(e.success,e.fail,e.complete),t.exec("Bluetooth","closeBluetoothAdapter",[callbackID])},openBluetoothAdapter:function(e){return callbackID=this.getCallbackIDByFunction(e.success,e.fail,e.complete),t.exec("Bluetooth","openBluetoothAdapter",[callbackID])},getBluetoothAdapterState:function(e){return callbackID=this.getCallbackIDByFunction(e.success,e.fail,e.complete),t.exec("Bluetooth","getBluetoothAdapterState",[callbackID])},getBluetoothDevices:function(e){var n=this,i="function"!=typeof e.complete?function(){}:e.complete,o="function"!=typeof e.success?null:function(t){for(var o=t.devices,r=0;r<o.length;r++){var s=o[r];if(s.advertisData&&"string"==typeof s.advertisData&&"{}"!=s.advertisData&&(s.advertisData=n.string2ArrayBuffer(s.advertisData)),s.serviceData&&"{}"!=s.serviceData)for(var a in s.serviceData)"string"==typeof s.serviceData[a]&&""!=s.serviceData[a]&&(s.serviceData[a]=n.string2ArrayBuffer(s.serviceData[a]))}e.success(t),i(t)},r="function"!=typeof e.fail?null:function(t){e.fail(t),i(t)},s=t.callbackId(o,r);return t.exec("Bluetooth","getBluetoothDevices",[s])},getConnectedBluetoothDevices:function(e){return callbackID=this.getCallbackIDByFunction(e.success,e.fail,e.complete),t.exec("Bluetooth","getConnectedBluetoothDevices",[callbackID,e])},startBluetoothDevicesDiscovery:function(e){return callbackID=this.getCallbackIDByFunction(e.success,e.fail,e.complete),t.exec("Bluetooth","startBluetoothDevicesDiscovery",[callbackID,e])},stopBluetoothDevicesDiscovery:function(e){return callbackID=this.getCallbackIDByFunction(e.success,e.fail,e.complete),t.exec("Bluetooth","stopBluetoothDevicesDiscovery",[callbackID])},onBluetoothAdapterStateChange:function(e){return callbackID=this.getCallbackIDByFunction(e),t.exec("Bluetooth","onBluetoothAdapterStateChange",[callbackID])},onBluetoothDeviceFound:function(e){var n=this,i="function"!=typeof e?null:function(t){for(var i=t.devices,o=0;o<i.length;o++){var r=i[o];if(r.advertisData&&"string"==typeof r.advertisData&&"{}"!=r.advertisData&&(r.advertisData=n.string2ArrayBuffer(r.advertisData)),r.serviceData&&"{}"!=r.serviceData)for(var s in r.serviceData)"string"==typeof r.serviceData[s]&&""!=r.serviceData[s]&&(r.serviceData[s]=n.string2ArrayBuffer(r.serviceData[s]))}e(t)};return callbackID=t.callbackId(i),t.exec("Bluetooth","onBluetoothDeviceFound",[callbackID])},createBLEConnection:function(e){return callbackID=this.getCallbackIDByFunction(e.success,e.fail,e.complete),t.exec("Bluetooth","createBLEConnection",[callbackID,e])},closeBLEConnection:function(e){return callbackID=this.getCallbackIDByFunction(e.success,e.fail,e.complete),t.exec("Bluetooth","closeBLEConnection",[callbackID,e])},getBLEDeviceCharacteristics:function(e){return callbackID=this.getCallbackIDByFunction(e.success,e.fail,e.complete),t.exec("Bluetooth","getBLEDeviceCharacteristics",[callbackID,e])},getBLEDeviceServices:function(e){return callbackID=this.getCallbackIDByFunction(e.success,e.fail,e.complete),t.exec("Bluetooth","getBLEDeviceServices",[callbackID,e])},notifyBLECharacteristicValueChange:function(e){return callbackID=this.getCallbackIDByFunction(e.success,e.fail,e.complete),t.exec("Bluetooth","notifyBLECharacteristicValueChange",[callbackID,e])},onBLECharacteristicValueChange:function(e){var n=this,i="function"!=typeof e?null:function(t){t.value&&"string"==typeof t.value&&(t.value=n.string2ArrayBuffer(t.value)),e(t)};return callbackID=t.callbackId(i),t.exec("Bluetooth","onBLECharacteristicValueChange",[callbackID])},onBLEConnectionStateChange:function(e){return callbackID=this.getCallbackIDByFunction(e),t.exec("Bluetooth","onBLEConnectionStateChange",[callbackID])},readBLECharacteristicValue:function(e){return callbackID=this.getCallbackIDByFunction(e.success,e.fail,e.complete),t.exec("Bluetooth","readBLECharacteristicValue",[callbackID,e])},writeBLECharacteristicValue:function(e){return"string"==typeof e.value?void e.fail({code:10019,message:"Value cannot be a string"}):(callbackID=this.getCallbackIDByFunction(e.success,e.fail,e.complete),e.value=this.ab2hex(e.value),t.exec("Bluetooth","writeBLECharacteristicValue",[callbackID,e]))},ab2hex:function(e){return Array.prototype.map.call(new Uint8Array(e),function(e){return("00"+e.toString(16)).slice(-2)}).join("")},string2ArrayBuffer:function(e){return new Uint8Array(e.match(/[\da-f]{2}/gi).map(function(e){return parseInt(e,16)})).buffer},getCallbackIDByFunction:function(e,n,i){var i="function"!=typeof i?function(){}:i,o="function"!=typeof e?null:function(t){e(t),i(t)},r="function"!=typeof n?null:function(e){n(e),i(e)};return t.callbackId(o,r)}};e.bluetooth=n}(window.plus),function(e){var t=e.bridge,n={isOpenDatabase:function(e){return t.execSync("Sqlite","isOpenDatabase",[e])},openDatabase:function(e){if(e&&e.name&&e.path)return callbackID=this.getCallbackIDByFunction(e.success,e.fail),t.exec("Sqlite","openDatabase",[callbackID,e.name,e.path])},closeDatabase:function(e){if(e&&e.name)return callbackID=this.getCallbackIDByFunction(e.success,e.fail),t.exec("Sqlite","closeDatabase",[callbackID,e.name])},transaction:function(e){if(e&&e.name&&e.operation)return callbackID=this.getCallbackIDByFunction(e.success,e.fail),t.exec("Sqlite","transaction",[callbackID,e.name,e.operation])},executeSql:function(e){if(e&&e.name&&e.sql)return callbackID=this.getCallbackIDByFunction(e.success,e.fail),t.exec("Sqlite","executeSql",[callbackID,e.name,e.sql])},selectSql:function(e){if(e&&e.name&&e.sql)return callbackID=this.getCallbackIDByFunction(e.success,e.fail),t.exec("Sqlite","selectSql",[callbackID,e.name,e.sql])},getCallbackIDByFunction:function(e,n,i){var o="function"!=typeof e?null:function(t){e(t)},r="function"!=typeof n?null:function(e){n(e)};return t.callbackId(o,r)}};e.sqlite=n}(window.plus),window.__requireNativePlugin__=function(){"use strict";function e(e){var t=Object.prototype.toString.call(e);return t.substring(8,t.length-1)}function t(e){if("function"!=typeof btoa)return"";var t=Array.prototype.map.call(new Uint8Array(e),function(e){return String.fromCharCode(e)}).join("");return btoa(t)}function n(n){var i=e(n);switch(i){case"Undefined":case"Null":return"";case"RegExp":return n.toString();case"Date":return n.toISOString();case"Number":case"String":case"Boolean":case"Array":case"Object":return n;case"ArrayBuffer":return{"@type":"binary",dataType:i,base64:t(n)};case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":return{"@type":"binary",dataType:i,base64:t(n.buffer)};default:return JSON.stringify(n)}}function i(e){return f++,d[f]=e,f}function o(e,t,n){var i=d[e];if(void 0!==n&&!1!==n||delete d[e],"function"==typeof i)try{return i(t)}catch(e){throw console.error("Failed to execute the callback function:\n "+e.toString()),e}return new Error('invalid callback id "'+e+'"')}function r(e){return"function"==typeof e?"CALLBACK_"+i(e):n(e)}function s(e,t,n,i){n=n.map(function(e){return r(e)});var o={type:"requireNativePlugin",plugin:e,method:t,args:n};return i?plus.webview.__callNativeModuleSync__(o,h):plus.webview.postMessageToUniNView(o,h)}function a(e,t,n){return function(){for(var i=arguments.length,o=Array(i),r=0;r<i;r++)o[r]=arguments[r];return s(e,t,o,n)}}function c(e,t,n,i){return"function"!=typeof n?(console.error(e+"."+t+" must be assigned as a function."),null):function(n){return s(e,t,[n],i)}}function u(e,t,n){var i=n.split(":"),o=i[0],r="sync"===i[1];Object.defineProperty(e,o,{enumerable:!0,configurable:!0,get:function(){return a(t,o,r)},set:function(e){return c(t,o,e,r)}})}function l(e,t){var n={};return u(n,e,"addEventListener"),t.forEach(function(t){return u(n,e,t)}),p[e]=n,n}function _(e){var t=p[e];if(!t){var n=window.__NATIVE_PLUGINS__[e];if(!n)throw new Error("当前运行的基座不包含原生插件["+e+"],请在manifest中配置该插件,重新制作包括该原生插件的自定义运行基座");t=l(e,n)}return t}var f=+new Date,d={};window.__NATIVE_PLUGINS__={clipboard:["setString","getString"],globalEvent:["removeEventListener"],locale:["getLanguages","getLanguageSync","getLanguage"],modal:["confirm","toast","prompt","alert"],picker:["pickTime","pick","pickDate"],plus:["postMessage"],plusstorage:["getItem","getAllKeys","setItem","removeItem","length"],storage:["setItemPersistent","getItem","getAllKeys","setItem","removeItem","length"],stream:["sendHttp","fetch"],timer:["setInterval","clearInterval","setTimeout","clearTimeout"],webSocket:["onopen","onmessage","onclose","close","WebSocket","onerror","send"]},window.__NATIVE_PLUGINS_REGISTERED__=!1,document.addEventListener("uniNViewMessage",function(e){e.data&&"requireNativePluginCallback"===e.data.type&&o(e.data.data.id,e.data.data.ret,e.data.data.keepAlive)});var h="__uniapp__nvue",p={};return _}(),function(e){function t(t,n,i,o,r){e.nativeObj.View.prototype.constructor.call(this,t,n,i,o,r),this.type="UniAdView"}function n(){var e=this;this.__cbs__={},this.callbackId=o.callbackId(function(t){var n=t.evt,i=t.args,o=e.__cbs__[n];if(o)for(var r=o.length,s=0,s=0;s<r;s++)o[s](i)})}function i(e){this.__uuid__=r.UUID("RewardedVideoAd"),this.__cbs__=new n,o.exec(s,"RewardedVideoAd",[this.__uuid__,e,this.__cbs__.callbackId])}var e=e,o=e.bridge,r=e.tools,s="Ad",a=t.prototype;e.tools.extend(a,e.nativeObj.View.prototype),a.constructor=t,e.nativeObj.__regChildViews("UniAdView",t),t.prototype.bind=function(e){o.exec(s,"bind",[e&&e.__id,e&&e.__provider,this.__uuid__])},t.prototype.renderingBind=function(e){o.exec(s,"renderingBind",[e&&e.__id,e&&e.__provider,this.__uuid__])},t.prototype.changeDownloadStatus=function(){o.exec(s,"changeDownloadStatus",[this.__uuid__])},t.prototype.setDownloadListener=function(e){this.setEventListener("download",e)},t.prototype.setRenderingListener=function(e){this.setEventListener("render",e)},t.prototype.setDislikeListener=function(e){this.setEventListener("dislike",e)},n.prototype.push=function(e,t){this.__cbs__[e]||(this.__cbs__[e]=[]),this.__cbs__[e].push(t)},n.prototype.pop=function(e,t){this.__cbs__[e]&&this.__cbs__[e].pop(t)},i.prototype.load=function(){o.exec(s,"load",[this.__uuid__])},i.prototype.show=function(){o.exec(s,"show",[this.__uuid__])},i.prototype.getProvider=function(){return o.execSync(s,"getProvider",[this.__uuid__])},i.prototype.destroy=function(){o.exec(s,"destroy",[this.__uuid__])},i.prototype.onLoad=function(e){this.__cbs__.push("load",e)},i.prototype.offLoad=function(e){this.__cbs__.pop("load",e)},i.prototype.onError=function(e){this.__cbs__.push("error",e)},i.prototype.offError=function(e){this.__cbs__.pop("error",e)},i.prototype.onClose=function(e){this.__cbs__.push("close",e)},i.prototype.offClose=function(e){this.__cbs__.pop("close",e)},i.prototype.onVerify=function(e){this.__cbs__.push("verify",e)},i.prototype.offVerify=function(e){this.__cbs__.pop("verify",e)},e.ad={getProviders:function(e,t){var n="function"!=typeof e?null:function(t){e(t)},i="function"!=typeof t?null:function(e){t(e)},r=o.callbackId(n,i);o.exec(s,"getProviders",[r])},getAds:function(e,t,n){var i="function"!=typeof t?null:function(e){t(e)},r="function"!=typeof n?null:function(e){n(e)},a=o.callbackId(i,r);o.exec(s,"getAds",[a,e])},releaseAdData:function(e){o.exec(s,"releaseAdData",[e&&e.__id,e&&e.__provider])},measureAdHeight:function(e,t){return o.execSync(s,"measureAdHeight",[t&&t.__id,t&&t.__provider,e])},createAdView:function(e){return e=e||{},new t(e.id,e,null,!1,"UniAdView")},createRewardedVideoAd:function(e){return e=e||{},new i(e)}}}(window.plus);