if(!window.plus||window.plus&&!window.plus.isReady){var 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 t=e.tools={__UUID__:0,UNKNOWN:-1,IOS:0,ANDROID:1,platform:-1,debug:!1,UUID:function(e){return e+this.__UUID__+++(new Date).valueOf()},extend:function(e,t){for(var n in t)e[n]=t[n]},typeName:function(e){return Object.prototype.toString.call(e).slice(8,-1)},isDate:function(e){return"Date"==t.typeName(e)},isArray:function(e){return"Array"==t.typeName(e)},isDebug:function(){return e.tools.debug},stringify:function(e){return window.JSON3?window.JSON3.stringify(e):JSON.stringify(e)},isNumber:function(e){return"number"==typeof e||e instanceof Number},getElementOffsetInWebview:function(e,t){for(var n=0,i=e;i;)n+=i[t],i=i.offsetParent;return n},getElementOffsetXInWebview:function(e){return t.getElementOffsetInWebview(e,"offsetLeft")},getElementOffsetYInWebview:function(e){return t.getElementOffsetInWebview(e,"offsetTop")},execJSfile:function(e){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=n instanceof Array;for(var o in t){var r=!0;if(i)for(var c=0;c-1&&(a.splice(t,1),0===a.length&&(n.exec(o,"stop",[]),r=!1))}var d={getCurrentAcceleration:function(e,t,n){var i=_(function(t){f(i),e(t)},function(e){f(i),t&&t(e)});a.push(i),r||l(-1)},watchAcceleration:function(e,n,o){var u=o&&o.frequency&&"number"==typeof o.frequency?o.frequency:500,d=i.UUID("watch"),h=_(function(){},function(e){f(h),n&&n(e)});return a.push(h),c[d]={timer:t.setInterval(function(){s&&e(s)},u),listeners:h},r?s&&e(s):l(u),d},clearWatch:function(e){e&&c[e]&&(t.clearInterval(c[e].timer),f(c[e].listeners),delete c[e])}};e.accelerometer=d}(this.plus,this),function(e){var t=(e=e).bridge,n=e.tools;e.audio={getRecorder:function(){var e={_Audio_UUID__:n.UUID("Record"),supportedFormats:["amr","3gp","aac"],supportedSamplerates:[44100,16e3,8e3],record:function(e,n,i){var o=t.callbackId(n,i);t.exec("Audio","RecorderExecMethod",["record",[this._Audio_UUID__,o,e]])},stop:function(){t.exec("Audio","RecorderExecMethod",["stop",[this._Audio_UUID__]])},pause:function(){t.exec("Audio","RecorderExecMethod",["pause",[this._Audio_UUID__]])},resume:function(){t.exec("Audio","RecorderExecMethod",["resume",[this._Audio_UUID__]])}};return n.IOS==n.platform&&(e.supportedFormats=["wav","aac","amr","mp3"]),e},createPlayer:function(e){var i={_Player_Param:e,_Audio_Player_UUID_:n.UUID("Player"),play:function(e,n){var i=t.callbackId(e,n);t.exec("Audio","AudioExecMethod",["play",[this._Audio_Player_UUID_,i]])},pause:function(){t.exec("Audio","AudioExecMethod",["pause",[this._Audio_Player_UUID_]])},resume:function(){t.exec("Audio","AudioExecMethod",["resume",[this._Audio_Player_UUID_]])},stop:function(){t.exec("Audio","AudioExecMethod",["stop",[this._Audio_Player_UUID_]])},seekTo:function(e){t.exec("Audio","AudioExecMethod",["seekTo",[this._Audio_Player_UUID_,e]])},getDuration:function(){return t.execSync2("Audio","AudioSyncExecMethod",["getDuration",[this._Audio_Player_UUID_]])},getPosition:function(){return t.execSync2("Audio","AudioSyncExecMethod",["getPosition",[this._Audio_Player_UUID_]])},setRoute:function(e){t.exec("Audio","AudioExecMethod",["setRoute",[this._Audio_Player_UUID_,e]])},setSessionCategory:function(e){t.exec("Audio","AudioExecMethod",["setSessionCategory",[this._Audio_Player_UUID_,e]])},isPaused:function(){return t.execSync2("Audio","AudioSyncExecMethod",["getPaused",[this._Audio_Player_UUID_]])},getBuffered:function(){return t.execSync2("Audio","AudioSyncExecMethod",["getBuffered",[this._Audio_Player_UUID_]])},getStyles:function(e){return t.execSync2("Audio","AudioSyncExecMethod",["getStyles",[this._Audio_Player_UUID_,e]])},setStyles:function(e){t.exec("Audio","AudioExecMethod",["setStyles",[this._Audio_Player_UUID_,e]])},addEventListener:function(e,n){var i=t.callbackId(n);t.exec("Audio","AudioExecMethod",["addEventListener",[this._Audio_Player_UUID_,e,i]])},removeEventListener:function(e){t.exec("Audio","AudioExecMethod",["removeEventListener",[this._Audio_Player_UUID_,e]])},close:function(){t.exec("Audio","AudioExecMethod",["close",[this._Audio_Player_UUID_]])},playbackRate:function(e){t.exec("Audio","AudioExecMethod",["playbackRate",[this._Audio_Player_UUID_,e]])}},o={};return"string"==typeof i._Player_Param?o.src=i._Player_Param:o=i._Player_Param,t.execSync("Audio","AudioSyncExecMethod",["CreatePlayer",[i._Audio_Player_UUID_,o]]),i},ROUTE_SPEAKER:0,ROUTE_EARPIECE:1}}(window.plus),function(e){var t="barcode",n=(e=e).tools,i=e.bridge,o={};function r(e,o,r,c,a,s){var u=this;u.IDENTITY=t,u.onmarked=null,u.onerror=null,u.isClose=!1,u.__uuid__=n.UUID("bc"),u.callbackId=null;var l=null;a||(a=u.__uuid__),this.callbackId=i.callbackId(function(e){"function"==typeof u.onmarked&&u.onmarked(e.type,e.message,e.file)},function(e){"function"==typeof u.onerror&&u.onerror(e)}),div=document.getElementById(e),null!=div&&void 0!=div&&(div.addEventListener("resize",function(){var e=[div.offsetLeft,div.offsetTop,div.offsetWidth,div.offsetHeight];i.exec(t,"resize",[e])},!1),l=[div.offsetLeft,div.offsetTop,div.offsetWidth,div.offsetHeight]);var _=!0;void 0==s||null==s||s||(_=!1),_&&i.exec(t,"Barcode",[this.__uuid__,this.callbackId,a,l,o,r,c])}var c=r.prototype;c.setStyle=function(e){this.isClose||i.exec(t,"setStyle",[this.__uuid__,e])},c.start=function(e){this.isClose||i.exec(t,"start",[this.__uuid__,e])},c.setFlash=function(e){this.isClose||i.exec(t,"setFlash",[this.__uuid__,e])},c.cancel=function(){this.isClose||i.exec(t,"cancel",[this.__uuid__])},c.close=function(){this.isClose||(i.exec(t,"close",[this.__uuid__]),this.isClose=!0)};var a={Barcode:r,create:function(t,n,i,r){var c=new e.barcode.Barcode(null,n,i,r,t,!0);return o[c.__uuid__]=c,o[c.__uuid__]},getBarcodeById:function(n){if(n&&"string"==typeof n){var r=i.execSync(t,"getBarcodeById",[n]);if(null!=r&&null!=r.uuid){if(o[r.uuid])return o[r.uuid];if(null!=r&&void 0!=r){var c=new e.barcode.Barcode(null,r.filters,r.options,r.autoDecodeCharset,n,!1);return c.__uuid__=r.uuid,i.exec(t,"addCallBack",[c.__uuid__,c.callbackId]),o[c.__uuid__]=c,c}return null}}},scan:function(e,n,o,r,c){var a="function"!=typeof n?null:function(e){n(e.type,e.message,e.file,e.charSet)},s="function"!=typeof o?null:function(e){o(e)},u=i.callbackId(a,s);i.exec(t,"scan",[u,e,r,c])},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};e.barcode=a}(window.plus),function(e){var t=(e=e).bridge,n="Cache";e.cache={clear:function(e){var i=t.callbackId(function(t){e&&e()},null);window.localStorage.clear(),window.sessionStorage.clear(),t.exec(n,"clear",[i])},calculate:function(e){var i=t.callbackId(function(t){e&&e(t)},null);t.exec(n,"calculate",[i])},setMaxSize:function(e){t.exec(n,"setMaxSize",[e])}}}(window.plus),function(e){var t,n=(e=e).bridge;function i(){this.index=1,this.__busy__=!1,this.supportedImageResolutions=[],this.supportedVideoResolutions=[],this.supportedImageFormats=[],this.supportedVideoFormats=[]}var o=i.prototype;o.captureImage=function(e,t,i){var o=this;if(!o.__busy__){var r="function"!=typeof e?null:function(t){o.__busy__=!1,e(t)},c="function"!=typeof t?null:function(e){o.__busy__=!1,t(e)},a=n.callbackId(r,c);i||(i={}),i.index||(i.index=this.index),n.exec("Camera","captureImage",[a,i])}},o.startVideoCapture=function(e,t,i){var o=this;if(!o.__busy__){var r="function"!=typeof e?null:function(t){o.__busy__=!1,e(t)},c="function"!=typeof t?null:function(e){o.__busy__=!1,t(e)},a=n.callbackId(r,c);i||(i={}),i.index||(i.index=this.index),n.exec("Camera","startVideoCapture",[a,i])}},o.stopVideoCapture=function(){n.exec("Camera","stopVideoCapture",[])};var r={getCamera:function(o){if(t)return t;if((t=new i).index=o,e.tools.ANDROID==e.tools.platform){var r=n.callbackId(function(e){t.supportedImageFormats=e.supportedImageFormats,t.supportedVideoFormats=e.supportedVideoFormats,t.supportedImageResolutions=e.supportedImageResolutions,t.supportedVideoResolutions=e.supportedVideoResolutions},null);return(c=n.execSync("Camera","getCamera",[t.__UUID__,o,r]))&&(t.supportedImageFormats=c.supportedImageFormats,t.supportedVideoFormats=c.supportedVideoFormats,t.supportedImageResolutions=c.supportedImageResolutions,t.supportedVideoResolutions=c.supportedVideoResolutions),t}var c;return(c=n.execSync("Camera","getCamera",[t.__UUID__,o]))?(t.supportedImageFormats=c.supportedImageFormats,t.supportedVideoFormats=c.supportedVideoFormats,t.supportedImageResolutions=c.supportedImageResolutions,t.supportedVideoResolutions=c.supportedVideoResolutions):(t.supportedImageFormats=["png","jpg"],t.supportedImageResolutions=["640*480","1280*720","960*540","high","medium","low"],t.supportedVideoFormats=["mp4"],t.supportedVideoResolutions=["640*480","1280*720","960*540"]),t}};e.camera=r}(window.plus),function(e){var t,n,i=(e=e).bridge,o=e.tools,r=function(e){this.code=e||null};function c(e,t,n,i,o,r,c,a,s,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=c||null,this.ims=a||null,this.organizations=s||null,this.birthday=u||null,this.note=l||null,this.photos=_||null,this.categories=f||null,this.urls=d||null}r.UNKNOWN_ERROR=0,r.INVALID_ARGUMENT_ERROR=1,r.TIMEOUT_ERROR=2,r.PENDING_OPERATION_ERROR=3,r.IO_ERROR=4,r.NOT_SUPPORTED_ERROR=5,r.PERMISSION_DENIED_ERROR=20;var a=c.prototype;function s(e){this.type=e}a.remove=function(e,t){var n=t&&function(e){t(new r(e))};if(null===this.id)n(r.UNKNOWN_ERROR);else{var o=i.callbackId(e,n);i.exec("Contacts","remove",[o,this.id,this.target],{cbid:o})}},a.clone=function(){var e=o.clone(this);function t(e){if(e)for(var t=e.length,n=0;n0&&(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 u(e,t){var n=setTimeout(function(){l(n),n=null,e(new a(a.TIMEOUT,"Position retrieval timed out."))},t);return n}function l(e){!0!==e&&clearTimeout(e)}a.PERMISSION_DENIED=1,a.POSITION_UNAVAILABLE=2,a.TIMEOUT=3,a.UNKNOWN_ERROR=4;var _=e.geolocation={lastPosition:null,getCurrentPosition:function(e,t,n){f(e,t,n,!0)},watchPosition:function(e,r,d){d=s(d);var h=i.UUID("timer");o[h]=f(e,r,d,!1);var p=function(e){o[h].isStop=!0,l(o[h].timer);var t=new a(e.code,e.message);r&&r(t)},y=n.callbackId(function(t){if(!o[h].isStop){l(o[h].timer),d.timeout!==1/0&&(o[h].timer=u(p,d.timeout));var n=new c({latitude:t.latitude,longitude:t.longitude,altitude:t.altitude,accuracy:t.accuracy,heading:t.heading,velocity:t.velocity,coordsType:t.coordsType,address:t.address,addresses:t.addresses,altitudeAccuracy:t.altitudeAccuracy},void 0===t.timestamp?(new Date).getTime():t.timestamp instanceof Date?t.timestamp.getTime():t.timestamp);_.lastPosition=n,e(n)}},p);return n.exec(t,"watchPosition",[y,h,d.enableHighAccuracy,d.coordsType,d.provider,d.geocode,d.timeout,d.maximumAge],{cbid:y,l:location.href}),h},clearWatch:function(e){e&&void 0!==o[e]&&(l(o[e].timer),o[e].isStop=!0,o[e].timer=!1,n.exec(t,"clearWatch",[e]))}};function f(e,i,o,r){o=s(o);var f={timer:null,isStop:!1},d=function(e){l(f.timer),f.timer=null;var t=new a(e.code,e.message);i&&i(t)};if(_.lastPosition&&o.maximumAge&&(new Date).getTime()-_.lastPosition.timestamp<=o.maximumAge)e(_.lastPosition);else if(0===o.timeout)d(new a(a.TIMEOUT,"timeout value in PositionOptions set to 0 and no cached Position object available, or cached Position object's age exceeds provided PositionOptions' maximumAge parameter."));else if(o.timeout!==1/0?f.timer=u(d,o.timeout):f.timer=!0,r){var h=n.callbackId(function(t){if(l(f.timer),f.timer){var n=new c({latitude:t.latitude,longitude:t.longitude,altitude:t.altitude,accuracy:t.accuracy,heading:t.heading,velocity:t.velocity,coordsType:t.coordsType,address:t.address,addresses:t.addresses,altitudeAccuracy:t.altitudeAccuracy},void 0===t.timestamp?(new Date).getTime():t.timestamp instanceof Date?t.timestamp.getTime():t.timestamp);_.lastPosition=n,e(n)}},d);n.exec(t,"getCurrentPosition",[h,o.enableHighAccuracy,o.maximumAge,o.coordsType,o.provider,o.geocode,o.timeout],{cbid:h,l:location.href})}return f}}(window.plus),function(e){var t=(e=e).bridge,n=(e.tools,[]),i={NATIVEF:"File",exec:function(e,n,o,r){var c=t.callbackId(e,n);t.exec(i.NATIVEF,o,[c,r])}};function o(e){this.code=e.code||null,this.message=e.message||""}function r(e){var t="unknown error";switch(e){case o.NOT_FOUND_ERR:t="file not found";break;case o.SECURITY_ERR:t="not authorized";break;case o.ABORT_ERR:t="cancel";break;case o.NOT_READABLE_ERR:t="not allowed to read";break;case o.ENCODING_ERR:t="Coding error";break;case o.NO_MODIFICATION_ALLOWED_ERR:t="no modification allowed";break;case o.INVALID_STATE_ERR:t="invalid state";break;case o.SYNTAX_ERR:t="syntax error";break;case o.INVALID_MODIFICATION_ERR:t="invalid modification";break;case o.QUOTA_EXCEEDED_ERR:t="execution error";break;case o.TYPE_MISMATCH_ERR:t="type mismatch";break;case o.PATH_EXISTS_ERR:t="the path exists"}return{code:e,message:t}}function c(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 a(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}o.NOT_FOUND_ERR=1,o.SECURITY_ERR=2,o.ABORT_ERR=3,o.NOT_READABLE_ERR=4,o.ENCODING_ERR=5,o.NO_MODIFICATION_ALLOWED_ERR=6,o.INVALID_STATE_ERR=7,o.SYNTAX_ERR=8,o.INVALID_MODIFICATION_ERR=9,o.QUOTA_EXCEEDED_ERR=10,o.TYPE_MISMATCH_ERR=11,o.PATH_EXISTS_ERR=12;var s=a.prototype;function u(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:""}s.slice=function(e,t,n){var i=this.size>0?this.size-1:0,o=0,r=i;if(arguments.length&&(o=e<0?Math.max(i+e,0):Math.min(i,e)),arguments.length>=2&&(r=t<0?Math.max(i+t,0):Math.min(t,i)),rthis.length?this.position=this.length:this.position=e)},g.truncate=function(e){if(this.readyState===v.WRITING)throw new o(o.INVALID_STATE_ERR);this.readyState=v.WRITING;var t=this;"function"==typeof t.onwritestart&&t.onwritestart(new c("writestart",{target:this})),i.exec(function(e){t.readyState!==v.DONE&&(t.readyState=v.DONE,t.length=e,t.position=Math.min(t.position,e),"function"==typeof t.onwrite&&t.onwrite(new c("write",{target:t})),"function"==typeof t.onwriteend&&t.onwriteend(new c("writeend",{target:t})))},function(e){t.readyState!==v.DONE&&(t.readyState=v.DONE,t.error=new o(e),"function"==typeof t.onerror&&t.onerror(new c("error",{target:t})),"function"==typeof t.onwriteend&&t.onwriteend(new c("writeend",{target:t})))},"truncate",[this.fileName,e,this.position])},e.io={FileSystem:w,DirectoryEntry:f,DirectoryReader:h,FileReader:p,FileWriter:v,requestFileSystem:function(e,t,c){var a=function(e){"function"==typeof c&&c(new o(e))};if(e<1||e>4)a(r(o.SYNTAX_ERR));else{var s=n[e],u=function(i){i?"function"==typeof t&&(s||(s=new w(i.name,i.root),n[e]=s),t(s)):a(r(o.NOT_FOUND_ERR))};s?window.setTimeout(u(s),0):i.exec(u,a,"requestFileSystem",[e])}},resolveLocalFileSystemURL:function(e,t,c){var a=function(e){c&&c(new o(e))};"string"==typeof e?i.exec(function(e){var i;if(e){if(t){var c=n[e.type];c||(c=new w(e.fsName,e.fsRoot),n[e.type]=c),i=e.isDirectory?new f(e.name,e.fullPath,c,e.remoteURL):new _(e.name,e.fullPath,c,e.remoteURL),t(i)}}else a(r(o.NOT_FOUND_ERR))},a,"resolveLocalFileSystemURL",[e]):setTimeout(function(){a(r(o.ENCODING_ERR))},0)},convertLocalFileSystemURL:function(e){return t.execSync(i.NATIVEF,"convertLocalFileSystemURL",[e])},convertAbsoluteFileSystem:function(e){return t.execSync(i.NATIVEF,"convertAbsoluteFileSystem",[e])},getImageInfo:function(e){var n="function"!=typeof e.complete?function(){}:e.complete,o="function"!=typeof e.success?n:function(t){e.success(t),n(t)},r="function"!=typeof e.fail?n:function(t){e.fail(t),n(t)},c="string"!=typeof e.savePath?"":e.savePath;callbackID=t.callbackId(o,r),t.exec(i.NATIVEF,"getImageInfo",[callbackID,e.src,c])},getFileInfo:function(e){I(e,"getFileInfo",function(){return{filePath:e.filePath,digestAlgorithm:e.digestAlgorithm}})},getAudioInfo:function(e){I(e,"getAudioInfo",function(){return{filePath:e.filePath}})},getVideoInfo:function(e){I(e,"getVideoInfo",function(){return{filePath:e.filePath}})},chooseFile:function(e,n,o){var r="function"!=typeof n?null:function(e){n(e)},c="function"!=typeof o?null:function(e){o(e)};callbackID=t.callbackId(r,c),t.exec(i.NATIVEF,"chooseFile",[callbackID,e])},PRIVATE_WWW:1,PRIVATE_DOC:2,PUBLIC_DOCUMENTS:3,PUBLIC_DOWNLOADS:4}}(window.plus),function(e){var t=(e=e).bridge,n=e.tools,i="Maps",o="createObject",r="updateObject",c="updateObjectSYNC",a="execMethod",s={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])}},u={};function l(e,r,c,a){return n.ANDROID==n.platform?t.exec(i,o,[n.stringify([e,r,c,a])],null):t.exec(i,o,[e,r,c,a],null)}function _(e,o,c){return n.ANDROID==n.platform?t.exec(i,r,[n.stringify([e,[o,c]])],null):t.exec(i,r,[e,[o,c]],null)}function f(e,o,r){return n.ANDROID==n.platform?t.exec(i,a,[n.stringify([e,[o,r]])],null):t.exec(i,a,[e,[o,r]],null)}function d(t,o,r,c,a){o=function(e){var t={zoom:12,type:"MAPTYPE_NORMAL",traffic:!1,zoomControls:!1};return e&&e.center instanceof g&&(t.center=e.center),e&&"number"==typeof e.zoom&&e.zoom<=22&&e.zoom>=1&&(t.zoom=e.zoom),!e||"MAPTYPE_NORMAL"!=e.type&&"MAPTYPE_SATELLITE"!=e.type||(t.type=e.type),e&&"boolean"==typeof e.traffic&&(t.traffic=e.traffic),e&&"boolean"==typeof e.zoomControls&&(t.zoomControls=e.zoomControls),e&&"string"==typeof e.position&&(t.position=e.position),e&&(t.top=e.top,t.left=e.left,t.width=e.width,t.height=e.height),t}(o);var f=this;if(this.IDENTITY=i,this._UUID_=a||n.UUID("map"),this._map_id_=r,this._ui_div_id_=t,this.__showUserLocationVisable__=!1,this.center=o.center?o.center:new e.maps.Point(116.39716,39.91669),this.zoom=o.zoom,this.userLocation=null,this.mapType=o.type,this.zoomControlsVisable=o.zoomControls,this.trafficVisable=o.traffic,this.visable=!0,this.onclick=function(e){},this.onstatuschanged=function(){},s.pushCallback(this._UUID_,function(e,t){if("click"==t.callbackType)f.onclick&&f.onclick(t.payload);else if("change"==t.callbackType&&(f&&(f.zoom=t.zoom),f.onstatuschanged)){var n={};n.target=f,n.zoom=t.zoom,n.center=new g(t.center.long,t.center.lat),t.northease&&(n.bounds=new v(new g(t.northease.long,t.northease.lat),new g(t.southwest.long,t.southwest.lat))),f.onstatuschanged(n)}}),!c){var d=document.getElementById(this._ui_div_id_),h=[o];d&&(e.tools.platform==e.tools.ANDROID?document.addEventListener("plusorientationchange",function(){setTimeout(function(){var e=[d.offsetLeft,d.offsetTop,d.offsetWidth,d.offsetHeight];_(f._UUID_,"resize",e)},200)},!1):d.addEventListener("resize",function(){var e=[d.offsetLeft,d.offsetTop,d.offsetWidth,d.offsetHeight];_(f._UUID_,"resize",e)},!1),h=[o,d.offsetLeft,d.offsetTop,d.offsetWidth,d.offsetHeight]),u[this._UUID_]=l(this._UUID_,"mapview",h,this._map_id_)}}var h=d.prototype;function p(e){this._UUID_=n.UUID("Bubble"),this.label="string"==typeof e?e:"",this.icon=null,this.marker=null,this.__contentImage=null,this.__contentImageAsDataURL=null,this.onclick=function(e){}}h.close=function(){f("map","close",this._UUID_),u[this._UUID_]&&delete u[this._UUID_]},h.centerAndZoom=function(e,t){if(e instanceof g&&"number"==typeof t){this.center=e,this.zoom=t;var n=[e,t];_(this._UUID_,"centerAndZoom",n)}},h.setCenter=function(e){if(e instanceof g){this.center=e;var t=[e];_(this._UUID_,"setCenter",t)}},h.getCenter=function(){return this.center},h.setZoom=function(e){"number"==typeof e&&(this.zoom=e,_(this._UUID_,"setZoom",[e]))},h.resize=function(){var e=document.getElementById(this._ui_div_id_),t=[null];e&&(t=[e.offsetLeft,e.offsetTop,e.offsetWidth,e.offsetHeight]),_(this._UUID_,"resize",t)},h.getZoom=function(){return this.zoom},h.setMapType=function(e){"MAPTYPE_NORMAL"!=e&&"MAPTYPE_SATELLITE"!=e||(this.mapType=e,_(this._UUID_,"setMapType",[e]))},h.getMapType=function(){return this.mapType},h.showUserLocation=function(e){if("boolean"==typeof e&&this.__showUserLocationVisable__!=e){this.__showUserLocationVisable__=e;var t=[e];_(this._UUID_,"showUserLocation",t)}},h.isShowUserLocation=function(){return this.__showUserLocationVisable__},h.getUserLocation=function(e){if("function"==typeof e){var t=n.UUID("callback");s.pushCallback(t,function(t,n){e&&e(n.state,n.point)},!0);var i=[t,window.__HtMl_Id__];return _(this._UUID_,"getUserLocation",i),!0}return!1},h.getCurrentCenter=function(e){if("function"==typeof e){function n(t,n){e&&e(n.state,n.point)}var i=t.callbackId(n);s.pushCallback(i,n,!0);var o=[i,window.__HtMl_Id__];return _(this._UUID_,"getCurrentCenter",o),!0}return!1},h.setTraffic=function(e){if("boolean"==typeof e&&e!=this.trafficVisable){this.trafficVisable=e;var t=[e];_(this._UUID_,"setTraffic",t)}},h.isTraffic=function(){return this.trafficVisable},h.showZoomControls=function(e){if("boolean"==typeof e&&e!=this.zoomControlsVisable){this.zoomControlsVisable=e;var t=[e];_(this._UUID_,"showZoomControls",t)}},h.isShowZoomControls=function(){return this.zoomControlsVisable},h.getBounds=function(){var e,o,r,a=(e=this._UUID_,o="getBounds",r=[],n.ANDROID==n.platform?t.execSync(i,c,[n.stringify([e,[o,r]])],null):t.execSync(i,c,[e,[o,r]],null));return new v(new g(a.northease.longitude,a.northease.latitude),new g(a.southwest.longitude,a.southwest.latitude))},h.reset=function(){_(this._UUID_,"reset",[null])},h.show=function(){if(1!=this.visable){this.visable=!0;var e=document.getElementById(this._ui_div_id_),t=[null];e&&(e.style.display="",t=[e.offsetLeft,e.offsetTop,e.offsetWidth,e.offsetHeight]),_(this._UUID_,"show",t)}},h.hide=function(){0!=this.visable&&(this.visable=!1,document.getElementById(this._ui_div_id_)&&(document.getElementById(this._ui_div_id_).style.display="none"),_(this._UUID_,"hide",[null]))},h.addOverlay=function(e){if(e instanceof D||e instanceof T||e instanceof E||e instanceof N||e instanceof m){var t=[e._UUID_];return _(this._UUID_,"addOverlay",t),!0}return!1},h.removeOverlay=function(e){if(e instanceof D||e instanceof T||e instanceof E||e instanceof N||e instanceof m){var t=[e._UUID_];return _(this._UUID_,"removeOverlay",t),!0}return!1},h.clearOverlays=function(){_(this._UUID_,"clearOverlays",[null])},d.calculateDistance=function(e,n,o,r){var c=t.callbackId(function(e){"function"==typeof o&&o({distance:e})},function(e){"function"==typeof r&&r(e)});t.exec(i,"calculateDistance",[e,n,c])},d.calculateArea=function(e,n,o){var r=t.callbackId(function(e){"function"==typeof n&&n({area:e})},function(e){"function"==typeof o&&o(e)});t.exec(i,"calculateArea",[e,r])},d.convertCoordinates=function(e,n,o,r){var c=t.callbackId(function(e){if("function"==typeof o){var t={};t.coord=new g(e.long,e.lat),t.coordType=e.type,o(t)}},function(e){"function"==typeof r&&r(e)});t.exec(i,"convertCoordinates",[e,n,c])},d.geocode=function(e,n,o,r){var c=t.callbackId(function(e){if("function"==typeof o){var t={};t.coord=new g(e.long,e.lat),t.address=e.addr,t.coordType=e.type,o(t)}},function(e){"function"==typeof r&&r(e)});t.exec(i,"geocode",[e,n,c])},d.reverseGeocode=function(e,n,o,r){var c=t.callbackId(function(e){if("function"==typeof o){var t={};t.coord=new g(e.long,e.lat),t.address=e.addr,t.coordType=e.type,o(t)}},function(e){"function"==typeof r&&r(e)});t.exec(i,"reverseGeocode",[e,n,c])};var y=p.prototype;function v(e,t,n,i){"number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof i?(this.northease=new g(e,t),this.northeast=new g(e,t),this.southwest=new g(n,i)):e instanceof g&&t instanceof g&&(this.northease=e,this.northeast=e,this.southwest=t)}function g(e,t){this.longitude=e,this.latitude=t}y.setIcon=function(e){"string"==typeof e&&(this.icon=e,this.marker&&_(this.marker._UUID_,"setBubbleIcon",[this.icon]))},y.loadImage=function(e){this.__contentImage=e,this.__contentImageAsDataURL=null,this.marker&&_(this.marker._UUID_,"loadImage",[e])},y.loadImageDataURL=function(e){this.__contentImage=null,this.__contentImageAsDataURL=e,this.marker&&_(this.marker._UUID_,"loadImageDataURL",[e])},y.getLabel=function(){return this.label},y.setLabel=function(e){"string"==typeof e&&(this.label=e,this.marker&&_(this.marker._UUID_,"setBubbleLabel",[this.label]))},y.belongMarker=function(){return this.marker},v.prototype.setNorthEase=function(e){e instanceof g&&(this.northease=e,this.northeast=e)},v.prototype.setNorthEast=function(e){e instanceof g&&(this.northeast=e,this.northease=e)},v.prototype.getNorthEase=function(){return this.northease},v.prototype.getNorthEast=function(){return this.northeast},v.prototype.setSouthWest=function(e){e instanceof g&&(this.southwest=e)},v.prototype.getSouthWest=function(){return this.southwest},v.prototype.contains=function(e){return e instanceof g&&(e.longitude<=this.northease.longitude&&e.longitude>=this.southwest.longitude&&e.latitude<=this.northease.latitude&&e.latitude>=this.southwest.latitude)},v.prototype.equals=function(e){return e instanceof v&&(this.northease.equals(e.northease)&&this.southwest.equals(e.southwest))},v.prototype.getCenter=function(){var e=(this.northease.longitude-this.southwest.longitude)/2,t=(this.northease.latitude-this.southwest.latitude)/2;return new g(e+this.southwest.longitude,t+this.southwest.latitude)};var w=g.prototype;function I(){this._UUID_=null,this.visable=!0}w.setLng=function(e){this.longitude=e},w.getLng=function(){return this.longitude},w.setLat=function(e){this.latitude=e},w.getLat=function(){return this.latitude},w.equals=function(e){return this.longitude==e.longitude&&this.latitude==e.latitude};var b=I.prototype;function m(e){var t=this;this._UUID_=n.UUID("marker"),this.point=e,this.icon="",this.caption="",this.bubble=null,this.canDraggable=!1,this.onclick=function(e){},this.onDrag=function(e){},s.pushCallback(this._UUID_,function(e,n){"bubbleclick"==n.type?t.bubble&&t.bubble.onclick&&t.bubble.onclick(t.bubble):"markerclick"==n.type?t.onclick&&t.onclick(t):"onDrag"==n.type&&(t.point=n.pt,t.onDrag(t))}),l(this._UUID_,"marker",[e])}b.show=function(){1!=this.visable&&(this.visable=!0,_(this._UUID_,"show",["true"]))},b.hide=function(){0!=this.visable&&(this.visable=!1,_(this._UUID_,"hide",["false"]))},b.isVisible=function(){return this.visable},b.bringToTop=function(){_(this._UUID_,"bringToTop",[])},m.prototype=new I;var x=m.prototype;function S(){this.strokeColor="#FFFFFF",this.strokeOpacity=1,this.fillColor="#FFFFFF",this.fillOpacity=1,this.lineWidth=5,this.visable=!0}x.constructor=m,x.setPoint=function(e){if(e instanceof g){this.point=e;var t=[e];_(this._UUID_,"setPoint",t)}},x.getPoint=function(){return this.point},x.setIcon=function(e){"string"==typeof e&&(this.icon=e,_(this._UUID_,"setIcon",[e]))},x.setLabel=function(e){"string"==typeof e&&(this.caption=e,_(this._UUID_,"setLabel",[e]))},x.getLabel=function(){return this.caption},x.setBubble=function(e,t){if(e instanceof p){var n=e.marker;if(n&&n!=this){n.bubble=null;var i=[null,null,null,null,!1];_(n._UUID_,"setBubble",i)}e.marker=this,this.bubble=e;i=[this.bubble.label,this.bubble.icon,this.bubble.__contentImageAsDataURL,this.bubble.__contentImage,t];_(this._UUID_,"setBubble",i)}else null==e&&_(this._UUID_,"setBubble",[null,null,null,null,t])},x.hideBubble=function(){this.bubble&&_(this._UUID_,"hideBubble",[])},x.getBubble=function(){return this.bubble},x.setDraggable=function(e){e!=this.canDraggable&&(this.canDraggable=!this.canDraggable,_(this._UUID_,"setDraggable",[this.canDraggable]))},x.isDraggable=function(){return this.canDraggable},x.setIcons=function(e,t){_(this._UUID_,"setIcons",[e,t])},S.prototype=new I;var k=S.prototype;function D(e,t){this.center=e,this.radius=t,this._UUID_=n.UUID("circle"),l(this._UUID_,"circle",[e,t])}k.constructor=S,k.setStrokeColor=function(e){"string"==typeof e&&(this.strokeColor=e,_(this._UUID_,"setStrokeColor",[e]))},k.getStrokeColor=function(){return this.strokeColor},k.setStrokeOpacity=function(e){"number"==typeof e&&(e<0?e=0:e>1&&(e=1),this.strokeOpacity=e,_(this._UUID_,"setStrokeOpacity",[e]))},k.getStrokeOpacity=function(){return this.strokeOpacity},k.setFillColor=function(e){"string"==typeof e&&(this.fillColor=e,_(this._UUID_,"setFillColor",[e]))},k.getFillColor=function(){return this.fillColor},k.setFillOpacity=function(e){"number"==typeof e&&(e<0?e=0:e>1&&(e=1),this.fillOpacity=e,_(this._UUID_,"setFillOpacity",[e]))},k.getFillOpacity=function(){return this.fillOpacity},k.setLineWidth=function(e){"number"==typeof e&&(e<0&&(e=0),this.lineWidth=e,_(this._UUID_,"setLineWidth",[e]))},k.getLineWidth=function(){return this.lineWidth},D.prototype=new S;var U=D.prototype;function T(e){this.path=e,this._UUID_=n.UUID("polygon"),l(this._UUID_,"polygon",[e])}U.constructor=D,U.setCenter=function(e){e instanceof g&&(this.center=e,_(this._UUID_,"setCenter",[e]))},U.getCenter=function(){return this.center},U.setRadius=function(e){"number"==typeof e&&e>=0&&(this.radius=e,_(this._UUID_,"setRadius",[e]))},U.getRadius=function(){return this.radius},T.prototype=new S;var C=T.prototype;function E(e){this.path=e,this._UUID_=n.UUID("polyline"),l(this._UUID_,"polyline",[e])}C.constructor=T,C.setPath=function(e){this.path=e,_(this._UUID_,"setPath",[e])},C.getPath=function(){return this.path},E.prototype=new S;var R=E.prototype;function N(e,t,i){this._UUID_=n.UUID("route"),this.startPoint=e,this.endPoint=t,this.pointCount=0,this.pointList=[],this.distance=0,this.routeTip="",void 0===i&&l(this._UUID_,"route",[e,t,i])}function A(){this.__state__=0,this.__type__=1,this.startPosition=null,this.endPosition=null,this.routeNumber=0,this.routeList=[]}function O(){this.__state__=0,this.__type__=0,this.totalNumber=0,this.currentNumber=0,this.pageNumber=0,this.pageIndex=0,this.poiList=[]}function B(e){var t=this;this._UUID_=n.UUID("search"),this.pageCapacity=10,this.map=e,this.onPoiSearchComplete=function(e,t){},this.onRouteSearchComplete=function(e,t){},s.pushCallback(this._UUID_,function(e,n){0==n.__type__?t.onPoiSearchComplete&&t.onPoiSearchComplete(n.__state__,n):1==n.__type__&&t.onRouteSearchComplete&&t.onRouteSearchComplete(n.__state__,n)}),l(this._UUID_,"search",[null])}R.constructor=E,R.setPath=function(e){this.path=e,_(this._UUID_,"setPath",[e])},R.getPath=function(){return this.path},N.prototype=new I,N.prototype.constructor=N,A.prototype.getRoute=function(e){return e>=0&&e=0&&e=0;i--){var o=this.__view_array__[i];if(n==o.id)return o}var r=t.execSync(this,"findViewById",[n]),c=r.identity,a=r.option,s=(r.uuid,new e.ui.__nviews__[c](a));return s.__uuid__=r.uuid,this.__view_array__.push(s),s},t.NWindow=o}(window.plus),function(e){var t=e.ui;e=e;function n(){t.NView.prototype.constructor.apply(this,["Navigator"]),e.obj.Callback.prototype.constructor.apply(this)}t.register("Navigator",n);var i=n.prototype;i.constructor=n,e.tools.extend(i,t.NView.prototype),i.setLeft=function(e){t.exec(this,"setLeft",[e])},i.setRight=function(e){t.exec(this,"setRight",[e])},i.setSystemList=function(e){t.exec(this,"setSystemList",[e])},i.setRight=function(e){t.exec(this,"setRight",[e])},i.addNavigationListener=function(n){var i=e.bridge.callbackId(n);t.exec(this,"addNavigationListener",[i])},i.addListItemListener=function(n){var i=e.bridge.callbackId(n);t.exec(this,"addListItemListener",[i])},i.setTitleText=function(e){t.exec(this,"setTitleText",[e])},i.setList=function(e){t.exec(this,"setList",[e])},t.Navigator=n}(window.plus),function(e){var t=(e=e).bridge,n=e.tools,i="Orientation",o=!1,r={},c=[],a=null,s=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},u=void 0,l=void 0,_=void 0;function f(){var e=t.callbackId(function(e){u=e.magneticHeading,l=e.trueHeading,_=e.headingAccuracy,function(e){var t=c.slice(0);a=new s(e.alpha,e.beta,e.gamma,u,l,_);for(var n=0,i=t.length;n-1&&(c.splice(n,1),0===c.length&&(t.exec(i,"stop",[]),o=!1))}var p={getCurrentOrientation:function(e,t){var n;n=d(function(t){h(n),e(t)},function(e){h(n),t&&t(e)}),c.push(n),o||f()},watchOrientation:function(e,t,i){var s=i&&i.frequency&&("number"==typeof i.frequency||i.frequency instanceof Number)?i.frequency:500,u=n.UUID("watch"),l=d(function(){},function(e){h(l),t&&t(e)});return c.push(l),r[u]={timer:window.setInterval(function(){a&&e(a)},s),listeners:l},o?a&&e(a):f(),u},clearWatch:function(e){e&&r[e]&&(window.clearInterval(r[e].timer),h(r[e].listeners),delete r[e])}};e.orientation=p}(window.plus),function(e){e=e;var t="Payment",n=window.plus.bridge;function i(){function i(e){"object"==typeof e&&(e.errCode=e.code,e.errMsg=e.message||"")}this.id="",this.description="",this.serviceReady=!0,this.installService=function(){n.exec(t,"installService",[this.id])},this.appStoreReceipt=function(e,i,o){return n.execSync(t,"appStoreReceipt",[this.id])},this.finishTransaction=function(e,o,r){if("appleiap"!==this.id){r({errorcode:"-3"})}var c="function"!=typeof o?null:function(e){o(e)},a="function"!=typeof r?null:function(e){i(e),r(e)},s=n.callbackId(c,a);n.exec(t,"finishTransactionRequest",[this.id,s,e])},this.restoreCompletedTransactions=function(e,t,n){this.restoreComplateRequest(e,t,n)},this.restoreComplateRequest=function(e,o,r){if("appleiap"!==this.id){r({errorcode:"-3"})}var c="function"!=typeof o?null:function(e){o(e)},a="function"!=typeof r?null:function(e){i(e),r(e)},s=n.callbackId(c,a);n.exec(t,"restoreComplateRequest",[this.id,s,e])},this.requestProduct=function(e,t,n){this.requestOrder(e,t,n)},this.requestOrder=function(e,o,r){if("appleiap"===this.id){var c="function"!=typeof o?null:function(e){o(e)},a="function"!=typeof r?null:function(e){i(e),r(e)},s=n.callbackId(c,a);n.exec(t,"requestOrder",[this.id,s,e])}else{r({errorcode:"-3"})}},this.isReadyToPay=function(i,o,r){if(e.tools.ANDROID==e.tools.platform){var c="function"!=typeof o?null:function(e){o(e)},a="function"!=typeof r?null:function(e){r(e)},s=n.callbackId(c,a);n.exec(t,"isReadyToPay",[this.id,i,s])}}}var o={Channel:i,getChannels:function(e,i){var r="function"!=typeof e?null:function(t){for(var n=[],i=t.length,r=0;r10&&"blob:file:"==e.url.substring(0,10)){var o=new XMLHttpRequest;o.open("GET",e.url,!0),o.setRequestHeader("Content-type","application/x-www-form-urlencoded"),o.responseType="blob",o.onload=function(o){if(200==this.status){var r=this.response;try{const o=new FileReader;o.onload=function(o){var r=t.callbackId(n,i);t.exec("Runtime","downloadBlob",[o.target.result,e.fileName,r])},o.readAsDataURL(r),o.onerror=function(){i({code:-1,message:"blob error"})}}catch(e){i(c={code:-1,message:e})}}else{var c={code:-1,message:this.status};i(c)}},o.onerror=function(e){i({code:-1,message:"data error"})},o.send()}else{var r=document.createElement("a");r.href=e.url+"&DCLOUD_DOWNLOAD_BLOB:"+e.fileName,r.download=e.fileName,r.click()}else try{const o=new FileReader;o.onload=function(o){var r=t.callbackId(n,i);t.exec("Runtime","downloadBlob",[o.target.result,e.fileName,r])},o.readAsDataURL(e.url),o.onerror=function(){i({code:-1,message:"blob error"})}}catch(e){i({code:-1,message:e})}}}}(window.plus),function(e){var t=(e=e).bridge,n=e.tools,i="Share",o={};function r(e,t,n,i){this.id=e,this.description=t,this.authenticated=n,this.accessToken=i,this.nativeClient=!1}var c=r.prototype;function a(o,r){var c=this;c.__UUID__=n.UUID("Authorize"),c.__componentid__=o,c.display=r,c.onloaded=null,c.onauthenticated=null,c.onerror=null,c.__top__=0,c.__left__=0,c.__width__=0,c.__height__=0;var a=document.getElementById(c.__componentid__);a&&(c.__left__=a.offsetLeft,c.__top__=a.offsetTop,c.__width__=a.offsetWidth,c.__height__=a.offsetHeight);var s=function(e){"function"==typeof c.onerror&&c.onerror(e)},u=t.callbackId(function(t){"load"==t.evt?"function"==typeof c.onloaded&&c.onloaded():"auth"==t.evt&&"function"==typeof c.onauthenticated&&e.share.getServices(function(e){for(var n=0;no.Uninitialized&&("function"==typeof this.onabort&&this.onabort(this.__progessEvent__),this.__init__(),t.exec(o.__F__,"abort",[this.__UUID__]))},r.getAllResponseHeaders=function(){if(this.readyState>=o.Receiving){if(this.__noParseResponseHeader__)return this.__noParseResponseHeader__;var e="";for(var t in this.__responseHeaders__)e=e+t+": "+this.__responseHeaders__[t]+"\r\n";return this.__noParseResponseHeader__=e,this.__noParseResponseHeader__}return null},r.getResponseHeader=function(e){if("string"==typeof e&&this.readyState>=o.Receiving){var t=null;if(e=e.toLowerCase(),t=this.__cacheReponseHeaders__[e])return t;for(var n in this.__responseHeaders__){var i=this.__responseHeaders__[n];e===(n=n.toLowerCase())&&(t=t?t+", "+i:i)}return this.__cacheReponseHeaders__[e]=t,t}return null},r.setRequestHeader=function(e,t){if("string"==typeof e&&"string"==typeof t&&o.Open==this.readyState){var n=this.__requestHeaders__[e];this.__requestHeaders__[e]=n?n+", "+t:t}},r.open=function(e,n,i,r){o.Open!=this.readyState&&o.Loaded!=this.readyState||this.__init__(),o.Uninitialized==this.readyState&&(this.readyState=o.Open,t.exec(o.__F__,"open",[this.__UUID__,e,function(e){return"string"==typeof e?0==(e=e.replace(/(^\s*)|(\s*$)/g,"")).indexOf("http://")||0==e.indexOf("https://")?e:e=0==e.indexOf("/")?location.origin+e:location.origin+location.pathname+e:""}(n),i,r,this.timeout]),"function"==typeof this.onreadystatechange&&this.onreadystatechange())},r.overrideMimeType=function(e){t.exec(o.__F__,"overrideMimeType",[this.__UUID__,e])},r.send=function(e){var n=this;if(o.Open==this.readyState){this.readyState=o.Sent,"function"==typeof this.onloadstart&&this.onloadstart(n.__progessEvent__);var r=t.callbackId(function(e){if(o.Receiving==e.readyState)o.Sent==n.readyState?(n.readyState=o.Receiving,n.status=e.status,n.statusText=e.statusText,n.__responseHeaders__=e.header,n.__progessEvent__.lengthComputable=e.lengthComputable,n.__progessEvent__.total=e.totalSize):o.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(o.Loaded==e.readyState){n.readyState=o.Loaded,e.status&&(n.status=e.status);try{if(n.responseText){var t=new DOMParser;n.responseXML=t.parseFromString(n.responseText,"text/xml")}}catch(e){n.responseXML=null}try{if("document"==n.responseType){t=new DOMParser;n.response=n.responseXML}else"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 t.exec(o.__F__,"send",[this.__UUID__,r,e,this.__requestHeaders__]),void("function"==typeof this.onreadystatechange&&this.onreadystatechange())}throw new Error("XMLHttpRequest not open")},e.net={XMLHttpRequest:o}}(window.plus),function(e){e=e;var t=window.plus.bridge;e.zip={compressVideo:function(e,n,i){var o=t.callbackId(function(e){if(n){var t={tempFilePath:e.tempFilePath,size:e.size};n(t)}},i);t.exec("Zip","compressVideo",[e,o])},decompress:function(e,n,i,o){var r=t.callbackId(i,o);t.exec("Zip","decompress",[e,n,r])},compress:function(e,n,i,o){var r=t.callbackId(i,o);t.exec("Zip","compress",[e,n,r])},compressImage:function(e,n,i){var o=t.callbackId(function(e){if(n){var t={target:e.path,width:e.w,height:e.h,size:e.size};n(t)}},i);t.exec("Zip","compressImage",[e,o])}}}(window.plus),function(e){var t=(e=e).bridge,n=e.tools,i="Proximity",o=!1,r={},c=[];function a(e){var n=c.indexOf(e);n>-1&&(c.splice(n,1),0===c.length&&(t.exec(i,"stop",[]),o=!1))}var s={getCurrentProximity:function(e,o){var r=t.callbackId(function(t){n.IOS==n.platform&&(t=0==t?0:1/0),e&&e(t)},function(e){o&&o(e)});t.exec(i,"getCurrentProximity",[r])},watchProximity:function(e,s){var u,l=n.UUID("watch"),_={win:function(t){n.IOS==n.platform&&(t=0==t?0:1/0),e&&e(t)},fail:function(e){a(_),s&&s(e)}};return c.push(_),r[l]={listeners:_},o||(u=t.callbackId(function(e){for(var t=c.slice(0),n=0,i=t.length;n0)for(var _=0;_=0;s--)r=s==a-1?o.importClass(c[s],null):o.importClass(c[s],c[s+1]);return n&&(n.__proto__=r.prototype),r}return null},u.prototype.invoke=function(t,n){for(var i=null,o=[],r=2;r0){for(var o=0;o