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

1 lines
173 KiB

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