@xybplugins/xyb-agent 0.0.30 → 0.0.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  > 最新版本:
4
4
  > * JSSDK:2.0.10
5
- > * npm-package: 0.0.27
5
+ > * npm-package: 0.0.30
6
6
 
7
7
  ## npm包相关说明
8
8
 
@@ -42,7 +42,7 @@
42
42
  | 湘易办APP-小程序-webview | `是` | `1.1.8` | `0.0.11` | 完全支持 |
43
43
  | 湘易办APP-webview | `是` | `2.0.0` | `0.0.11` | 部分支持,持续迭代中 |
44
44
  | 三方小程序 | `否` | -- | -- | 不支持 |
45
- | 三方小程序-webview | `是` | -- | `0.0.27` | 部分支持,持续迭代中 |
45
+ | 三方小程序-webview | `是` | -- | `0.0.30` | 部分支持,持续迭代中 |
46
46
 
47
47
  ## 注意事项:
48
48
 
@@ -212,11 +212,11 @@ this.$xybAgent.getAccessLink().then(res => {
212
212
 
213
213
  | 环境类型 | 是否适配 | JSSDK版本(最低) | NPM包版本(最低) |
214
214
  |----------------|:----:|:------------|------------|
215
- | 湘易办小程序 | `是` | `1.1.4` | `0.0.27` |
216
- | 湘易办小程序-webview | `是` | `1.1.8` | `0.0.27` |
217
- | 湘易办 - webview | `是` | `2.0.0` | `0.0.27` |
215
+ | 湘易办小程序 | `是` | `1.1.4` | `0.0.30` |
216
+ | 湘易办小程序-webview | `是` | `1.1.8` | `0.0.30` |
217
+ | 湘易办 - webview | `是` | `2.0.0` | `0.0.30` |
218
218
  | 三方小程序 | `否` | -- | -- |
219
- | 三方小程序-webview | `是` | -- | `0.0.27` |
219
+ | 三方小程序-webview | `是` | -- | `0.0.30` |
220
220
 
221
221
  * 入参
222
222
 
@@ -285,7 +285,7 @@ this.$xybAgent.authFace(userInfo).then(({isSuccess}) => {
285
285
  | 湘易办小程序-webview | `是` | `1.1.8` | `0.0.11` |
286
286
  | 湘易办 - webview | `是` | `2.0.0` | `0.0.11` |
287
287
  | 三方小程序 | `否` | -- | -- |
288
- | 三方小程序-webview | `是` | -- | `0.0.27` |
288
+ | 三方小程序-webview | `是` | -- | `0.0.30` |
289
289
 
290
290
  * 入参-`无`
291
291
 
@@ -1615,11 +1615,11 @@ this.$xybAgent.openAlipayMiniApp('/pages/index/index').then(({isSuccess, code})
1615
1615
 
1616
1616
  | 环境类型 | 是否适配 | JSSDK版本(最低) | NPM包版本(最低) |
1617
1617
  |-----------------|:----:|:------------|------------|
1618
- | 湘易办小程序 | `是` | `2.0.0` | `0.0.27` |
1619
- | 湘易办小程序-webview | `是` | `2.0.0` | `0.0.27` |
1620
- | 湘易办 - webview | `是` | `2.0.0` | `0.0.27` |
1618
+ | 湘易办小程序 | `是` | `2.0.0` | `0.0.30` |
1619
+ | 湘易办小程序-webview | `是` | `2.0.0` | `0.0.30` |
1620
+ | 湘易办 - webview | `是` | `2.0.0` | `0.0.30` |
1621
1621
  | 三方小程序 | `否` | -- | -- |
1622
- | 三方小程序 - webview | `是` | -- | `0.0.27` |
1622
+ | 三方小程序 - webview | `是` | -- | `0.0.30` |
1623
1623
 
1624
1624
  * 入参
1625
1625
 
@@ -1627,6 +1627,7 @@ this.$xybAgent.openAlipayMiniApp('/pages/index/index').then(({isSuccess, code})
1627
1627
  |:-----------|----------|-----|--------------------------------------|
1628
1628
  | lat | `String` | `是` | 纬度 |
1629
1629
  | lng | `String` | `是` | 经度 |
1630
+ | name | `String` | `是` | 目的地名称 |
1630
1631
  | address | `String` | `是` | 目的地地址信息 |
1631
1632
  | dinateType | `String` | `是` | 坐标系类型,默认值:`GCJ02`,可选值:`BD09`、`WGS84` |
1632
1633
 
package/dist/index.esm.js CHANGED
@@ -1 +1 @@
1
- const e=(e="",t="",i="log",n="")=>{const o={error:"错误",warn:"警告",info:"提示",log:"日志"}[i]||"日志",a=JSON.stringify(n);console.log(`\n=============🚀START - V${F} 🚀=============\n【事件名称】:${e} \n【日志类型】:${o} \n【日志信息】:${t} ${"error"===i?`【错误信息】:${JSON.stringify(a)}`:""} \n==============🚀END🚀==============`),console.log("")},t=(t={})=>{if("function"==typeof t)return e("deepClone","数据类型为function,无法执行深拷贝,请检查","error"),t;try{return JSON.parse(JSON.stringify(t))}catch(i){return e("deepClone","执行数据深拷贝异常","error",i),t}},i=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}),n=(e={},t={})=>{for(let i in e)t[i]=e[i]},o=(t=!1)=>{let i={route:null,path:null,options:{}};try{const e="function"==typeof getCurrentPages?getCurrentPages():[],n=[];for(let t in e)n.push({route:e[t].route,path:e[t].$page?.fullPath,options:e[t].$page?.options});const o=n?.length||0;if(o){const e=n[o-1],a=n[o-2];i=(t?a:e)||{}}}catch(t){e("getCurrentPagePath","获取页面信息失败","error",t)}return i},a=e=>{try{return JSON.parse(e)}catch(t){return e}},s=(t={},i={})=>{let n=i;try{n=a(i)}catch(t){e("formatResponseData","格式化失败","error",t),n=i}t(n)},r=e=>null==e,c=(e="",t="")=>{let i=t||window?.location?.href;if(i=decodeURIComponent(i),i?.includes(e)){let t=i.split(`${e}=`)[1];return t?.includes("&")&&(t=t.split("&")[0]),t}return""},l=(e="",t="")=>{if(e)return new Promise(t=>{const i=document.createElement("script");i.src=e,i.onload=t,document.head.appendChild(i)})},u=(t,i)=>{window?.my?.navigateTo({url:t,fail:t=>{e("openAlipayMiniApp","跳转失败,请检查配置信息","error",t),i({code:-1,isSuccess:!1,message:"跳转失败,请检查配置信息"})}})},d=(t,i)=>{window.wx?.miniProgram?.navigateTo({url:t,fail:t=>{e("executeAuthFaceInBrowser","跳转失败,请检查配置信息","error",t),i({code:-1,isSuccess:!1,message:"跳转失败,请检查配置信息"})}})},m="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};let g={finished:!1,result:!1},h={finished:!1,result:!1},v={finished:!1,result:!1},p={finished:!1,result:!1};const f=()=>y()?navigator.userAgent.toLowerCase():"",w=()=>{const e=f();return/android/i.test(e)?"android":/iphone|ipad|ipod|mac/i.test(e)&&!window.MSStream?"ios":/windows phone/i.test(e)?"windows":"harmony"},y=()=>window&&document,S=()=>{if(p.finished)return p.result;if(p.finished=!0,!y())return p.result=!1,!1;const t=f();return p.result=t.includes("uni-app"),e("checkIsMiniAppBrowserEnv",`当前是否为小程序的浏览器环境:${p.result}`),p.result},N=()=>{const{finished:t,result:i}=g;return t?i:(g.result=(()=>{if(v.finished)return v.result;if(v.finished=!0,!y())return v.result=!1,!1;const t=f();return v.result=t.includes("xybwebcomponent")||t.includes("uni-app"),e("checkIsXybBrowserEnv",`当前是否为湘易办浏览器环境:${v.result}`),v.result})()||S(),g.finished=!0,e("checkIsWebviewEnv",`当前是否为Webview环境:${g.result}`),g.result)},C=()=>{const{finished:t,result:i}=h;if(t)return i;if(h.finished=!0,!y())return h.result=!1,!1;const n=f();return h.result=n.includes("xybwebcomponent")&&!n.includes("uniminiapp"),e("checkIsAppWebviewEnv",`当前是否为APP的Webview环境:${h.result}`),h.result},I=()=>y()?f().includes("micromessenger"):"mp-weixin"===w(),M=()=>y()?f().includes("alipay"):"mp-alipay"===w(),E=()=>void 0!==typeof m.uni&&((!m?.uni||"function"==typeof m?.uni?.sendNativeEvent)&&(!(!m?.uni||"function"!=typeof m?.uni?.sendNativeEvent)||void 0!==m?.uni&&Object.prototype.hasOwnProperty.call(m?.uni,"sendNativeEvent"))),$=()=>window?.uni&&"function"==typeof window?.uni?.webView?.postMessage,A=()=>"function"==typeof window?.wx?.chooseImage,b=()=>"function"===Boolean(window?.my)?.chooseImage,P=(t,i)=>{const n=52.35987755982988,o=t-.0065,a=i-.006,s=Math.sqrt(o*o+a*a)-2e-5*Math.sin(a*n),r=Math.atan2(a,o)-3e-6*Math.cos(o*n),c=parseFloat(s*Math.cos(r)).toFixed(8),l=parseFloat(s*Math.sin(r)).toFixed(8);return e("BaiduToGCJ02",`已完成百度坐标系转换成国测坐标系的转换,转换后的值:lng:${c}, lat:${l}`),{lng:c,lat:l}},x=(t,i)=>{let n=null;try{n=Math.PI}catch(t){e("wgsToGCJ02","获取PI值失败","error",t)}if(o=i,(a=t)<72.004||a>137.8347||o<.8293||o>55.8271)return{lat:i,lon:t};var o,a;const s=6378245,r=.006693421622965943,c=((e,t)=>{let i=2*e-100+3*t+.2*t*t+.1*e*t+.2*Math.sqrt(Math.abs(e));return i+=2*(20*Math.sin(6*e*Math.PI)+20*Math.sin(2*e*Math.PI))/3,i+=2*(20*Math.sin(t*Math.PI)+40*Math.sin(t/3*Math.PI))/3,i+=2*(160*Math.sin(t/12*Math.PI)+320*Math.sin(t*Math.PI/30))/3,i})(t-105,i-35),l=((e,t)=>{let i=300+e+2*t+.1*e*e+.1*e*t+.1*Math.sqrt(Math.abs(e));return i+=2*(20*Math.sin(6*e*Math.PI)+20*Math.sin(2*e*Math.PI))/3,i+=2*(20*Math.sin(e*Math.PI)+40*Math.sin(e/3*Math.PI))/3,i+=2*(150*Math.sin(e/12*Math.PI)+300*Math.sin(e/30*Math.PI))/3,i})(t-105,i-35),u=i/180*Math.PI;let d=Math.sin(u);d=1-r*d*d;const m=Math.sqrt(d),g=i+180*c/(s*(1-r)/(d*m)*Math.PI),h=t+180*l/(s/m*Math.cos(u)*Math.PI);return{lat:parseFloat(g).toFixed(8),lng:parseFloat(h).toFixed(8)}},k=t=>{const{dinateType:i,lat:n,lng:o,address:a}=t;if(e("replaceCoordinate",`坐标转换开始:${i}`,"log"),"BD09"===i){const e=P(o,n);return{destinationName:a,destinationLongitude:e?.lng,destinationLatitude:e?.lat}}if("WGS84"===i){const e=x(o,n);return{destinationName:a,destinationLongitude:e?.lng,destinationLatitude:e?.lat}}return e("replaceCoordinate",`坐标系转换异常,未在匹配规则内,传递的坐标系类型:${i}`,"log"),{destinationLatitude:t?.lat||"",destinationLongitude:t?.lng||"",destinationName:t?.address||"",dinateType:t?.dinateType||"",address:t?.address||"",name:t?.name||""}},D=[{isCustomEv:!0,eventName:"authFace",uniEvName:"Auth_face",description:"人脸识别功能",nativeEvName:"faceAuth",reqDataFormat:t=>{e("authFace",`执行人脸验证,参数信息:${JSON.stringify(t)}`);const{name:i,certNo:n,appId:o,sign:a,created:s,nonce:r}=t;return i&&n&&o&&a&&s&&r?t:(e("authFace","缺少必要参数:name, certNo, appId, sign, created, nonce","error","缺少必要参数"),!1)},resDataFormat:e=>({isSuccess:Boolean(e),certifyId:e}),resErrorFormat:e=>"harmony"===w().toLowerCase()?{isSuccess:!1,errorMsg:e}:e},{isCustomEv:!0,eventName:"startNavigation",uniEvName:"Start_navigation",description:"目的地导航",nativeEvName:"start_navigation",reqDataFormat:t=>{let i={};const{dinateType:n,lat:o,lng:a,address:s,destinationLatitude:r,destinationLongitude:c}=t;return r&&c?t:(e("replaceCoordinate",`坐标系值:LAT:${o},LNG:${a}`,"log"),i=n&&"GCJ02"!==n?k(t):{destinationLatitude:o,destinationLongitude:a,destinationName:s},e("replaceCoordinate",`转换后值:LAT:${i.destinationLatitude},LNG:${i.destinationLongitude}`,"log"),i)}},{isWindowEv:!0,eventName:"getLoginStatus",uniEvName:"Auth_checkLogin",description:"获取登录状态",nativeEvName:"CallNativeMethodGetUserInfo",resDataFormat:e=>{const i=t(e);return{logined:1===Number(i?.isLogin)}},resErrorFormat:()=>({logined:!1})},{isWindowEv:!0,eventName:"getLoginUserInfo",uniEvName:"Auth_getUserInfo",description:"获取登录用户数据信息",nativeEvName:"CallNativeMethodGetUserInfo",resDataFormat:e=>t(e),resErrorFormat:()=>({isSuccess:!1})},{isCustomEv:!0,eventName:"getAuthToken",uniEvName:"Auth_getToken",description:"获取授权token",nativeEvName:"get_token",resDataFormat:e=>{try{const i=t(e);return{token:i?.token,isSuccess:Boolean(i?.token)}}catch(t){return{token:e?.token,isSuccess:Boolean(e?.token)}}},resErrorFormat:()=>({isSuccess:!1})},{isWindowEv:!0,eventName:"getAccessLink",uniEvName:"Auth_getAccessLink",nativeEvName:"CallNativeMethodGetAccessLink",description:"获取授权链接",resDataFormat:e=>"ios"===w().toLowerCase()?{isSuccess:!0,accessLink:e}:t(e),resErrorFormat:()=>({isSuccess:!1})},{moduleName:"image",eventName:"chooseImg",uniEvName:"Image_choose",nativeEvName:"chooseImage",browserEvName:"chooseImage",description:"选择本地图片",reqDataFormat:e=>{const{count:t,sizeType:i,sourceType:n,isCircleCrop:o}=e||{};return{count:t||9,sizeType:i||["original","compressed"],sourceType:n||["album"],isCircleCrop:o||!1}},resDataFormat:e=>t(e),bResDataFormat:e=>{const{tempFiles:t}=e,i=[];for(let e in t){const{name:n,path:o,size:a,type:s}=t[e];i.push({name:n,path:o,size:a,type:s})}return{resultObj:i,isSuccess:!0,message:"选择图片功能操作完成"}}},{moduleName:"image",eventName:"imgPreview",uniEvName:"Image_preview",nativeEvName:"previewImage",browserEvName:"previewImage",description:"执行图片预览"},{moduleName:"image",eventName:"imgUpload",uniEvName:"Image_upload",nativeEvName:"uploadImage",description:"执行图片上传",resDataFormat:e=>t(e),resErrorFormat:e=>e},{eventName:"imgDownload",uniEvName:"Image_download",nativeEvName:"",browserEvName:"downloadImage",description:"执行图片下载"},{eventName:"fileUpload",uniEvName:"File_upload",nativeEvName:"",description:"执行文件上传"},{moduleName:"file",eventName:"fileDownload",uniEvName:"File_download",nativeEvName:"downloadFile",description:"执行文件下载",resDataFormat:e=>({isSuccess:Boolean(e),resultObj:{path:e}})},{moduleName:"file",eventName:"filePreview",uniEvName:"File_preview",nativeEvName:"previewFile",description:"执行文件预览"},{moduleName:"file",eventName:"openLocalFile",uniEvName:"File_openLocal",nativeEvName:"openLocalFile",description:"执行打开本地文件"},{moduleName:"file",eventName:"chooseLocalFile",uniEvName:"File_chooseLocal",nativeEvName:"chooseLocalFile",browserEvName:"chooseFile",description:"选择本地文件",resDataFormat:e=>t(e)},{moduleName:"file",eventName:"openThirdFile",uniEvName:"File_openThirdParty",nativeEvName:"openFileWithThirdParty",description:"执行打开第三方文件"},{eventName:"openApp",uniEvName:"Util_openApp",nativeEvName:"",description:"打开APP"},{isCustomEv:!0,eventName:"openXybApp",uniEvName:"Util_openXYBMiniApp",nativeEvName:"jumpToMiniApp",description:"打开湘易办融合APP小程序",reqDataFormat:e=>{if(C()){const{pageUrl:t}=e;return{...e,path:t}}return e}},{eventName:"postMsgToOtherApp",uniEvName:"Util_postMessageToXYBMiniApp",nativeEvName:"",description:"发送消息给其他小程序"},{isWindowEv:!0,eventName:"scanCode",uniEvName:"Scan_code",description:"扫描二维码",browserEvName:"scanQRCode",nativeEvName:"CallNativeMethodScanQRCode",resDataFormat:e=>({text:e}),bReqDataFormat:e=>({...e,needResult:1}),bResDataFormat:e=>({text:e?.resultStr||""})},{moduleName:"system",eventName:"getAppInfo",nativeEvName:"getAppInfo",description:"获取应用信息",uniEvName:"System_getAppInfo",resDataFormat:e=>t(e)},{moduleName:"util",eventName:"copyToClipboard",uniEvName:"Util_clipboardData",nativeEvName:"clipboardData",description:"复制内容到剪切板",reqDataFormat:e=>({text:e}),resDataFormat:e=>C()?{isSuccess:Boolean(e)}:{isSuccess:!0}},{moduleName:"util",eventName:"getCacheSize",uniEvName:"Util_getCacheSize",nativeEvName:"getCacheSize",description:"获取缓存大小",resDataFormat:e=>t(e)},{moduleName:"util",eventName:"clearCache",uniEvName:"Util_clearCache",nativeEvName:"clearCache",description:"执行缓存清除",resDataFormat:()=>({isSuccess:!0}),resErrorFormat:()=>({isSuccess:!1})},{moduleName:"telephone",eventName:"callPhone",uniEvName:"Util_callDesignateNumber",nativeEvName:"call",description:"拨打电话",browserEvName:"makePhoneCall",reqDataFormat:e=>"object"==typeof a(e)?a(e):C()?{phoneCode:"+86",phoneNumber:String(e).replace("+86","")}:{text:e}},{eventName:"forbidScreenShot",uniEvName:"Util_forbidScreenShot",nativeEvName:"",description:"执行禁止截屏"},{eventName:"setScreenLight",uniEvName:"Util_setScreenLight",nativeEvName:"",description:"设置屏幕是否常亮",reqDataFormat:e=>({idleTimerValue:e})},{eventName:"sendMatterId",uniEvName:"Param_MatterID",nativeEvName:"",description:"执行页面事件ID上报",reqDataFormat:e=>({matterID:e})},{isWindowEv:!0,description:"获取位置信息",eventName:"getLocationInfo",uniEvName:"Util_getLocationInformation",nativeEvName:"CallNativeMethodGetLocationInformation",resDataFormat:e=>{const{location:i,data:n}=e;let o=t(e);return i&&(o=t(e?.location)),n&&(o=t(e?.data)),{isSuccess:!0,location:o}},nativeResFormat:e=>{const{location:i,data:n}=e;let o=t(e);return i&&(o=t(e?.location)),n&&(o=t(e?.data)),{isSuccess:!0,location:o}},resErrorFormat:()=>({isSuccess:!1,location:{}})},{eventName:"checkPermission",uniEvName:"Auth_matterHandleAuthority",nativeEvName:"",description:"检查事项权限",reqDataFormat:e=>({matterCode:e})},{eventName:"showComment",uniEvName:"Util_jumpToComment",nativeEvName:"",description:"打开评价弹窗"},{isWindowEv:!0,description:"打开微信小程序",eventName:"openWechatMiniApp",uniEvName:"Util_openWechatMiniProgram",nativeEvName:"CallNativeMethodJumpToWechatMiniProgram",reqDataFormat:e=>{if(C()){const t={};for(let i in e)t[i]=String(e[i]);return JSON.stringify(t)}return e}},{isWindowEv:!0,description:"打开支付宝小程序",eventName:"openAliPayMiniApp",uniEvName:"Util_openAlipayMiniProgram",nativeEvName:"CallNativeMethodJumpToAliPay",reqDataFormat:e=>C()?JSON.stringify(e):e},{eventName:"showMenuPanel",uniEvName:"menu_present",nativeEvName:"",description:"显示菜单面板"},{isCustomEv:!0,eventName:"addCalendarEvent",uniEvName:"Util_addCalendarEvent",nativeEvName:"addCalendarEvent",description:"添加日历日程"},{isCustomEv:!0,eventName:"deleteCalendarEvent",uniEvName:"Util_deleteCalendarEvent",nativeEvName:"deleteCalendarEvent",description:"删除日历日程"},{isCustomEv:!0,eventName:"queryCalendarEvent",uniEvName:"Util_queryCalendarEvent",nativeEvName:"queryCalendarEvent",description:"查询日历日程"}],F="0.0.30",O={custom(t,i){e("custom",`通过custom调用${t}事件`);const n=D?.find(e=>e?.nativeEvName===t||e?.eventName===t);return new Promise((e,o)=>{const{reqDataFormat:a}=n||null,s=n||{isCustomEv:!0,moduleName:"custom",eventName:"call",description:"通过Custom调用的C2事件",nativeEvName:t};if(!C())return void e({code:-1,msg:"非APP环境的Webview环境,不支持该功能"});const r=a?a(i):i;this.executeSendMsgToApp({moduleName:"custom",eventName:"call",actionName:t,isCustomEv:!0,dataInfo:r,resolveInfo:e,evConfig:s})})}},T=e=>Number(e)>9?e:`0${e}`,L=()=>{const e=new Date;return`${e.getFullYear()}-${T(e.getMonth()+1)}-${T(e.getDate())} ${T(e.getHours())}:${T(e.getMinutes())}:${T(e.getSeconds())}`},B={trackStack:[],anaSDKLoadTimes:0,locationInfo:{},isProdEnv:!1,track(t="",n={}){if(t){if(n)return y()&&!this.anaSDKInit?(this.trackStack.push({id:i(),eventID:t,eventPro:n}),void e("track","埋点上报插件初始化未完成,本次数据在插件初始化后自动上报","log")):void this.executeTrack(t,n);e("track","埋点数据上报失败","error","请传入埋点数据")}else e("track","埋点数据上报失败","error","请传入埋点事件")},async executeTrack(t="",i={}){if("object"==typeof t)return void await this.track(t?.eventID,t?.eventPro);const n=await this.initTrackParams(i);if(e("track",`执行埋点数据上报,事件名称:${t},事项编码:${n.code},是否上报到生产环境:${this.isProdEnv},完整埋点数据:${JSON.stringify(n)}`,"log"),y()&&xybAgent?.AnalysysAgent)return e("track","通过浏览器插件执行埋点数据上报","log"),void window.xybAgent.AnalysysAgent.track(t,n);if(E())try{e("track",`埋点数据:${JSON.stringify(n)},埋点ID:${t}`,"log"),uni.sendNativeEvent("Analysis_common",{eventID:t,eventPro:n})}catch(t){e("track","执行数据埋点功能异常","error",t)}},trackSDKInit(t){return new Promise((i,n)=>{y()||(e("initTrack","非浏览器环境无需使用init执行初","error"),i(!0)),this.anaSDKInsert?this.configAnaSDK(t,i):l("https://mobile.zwfw.hunan.gov.cn:8088/AnalysysAgent_JS_SDK.min.js","极光").then(()=>{window.AnalysysAgent&&(xybAgent.AnalysysAgent=window.AnalysysAgent,this.anaSDKInsert=!0,this.configAnaSDK(t,i))})})},configAnaSDK(t,i){const n="800c298f0c42c94c",o="40d556c15f872084";let a=location?.host?.includes("hunan.gov.cn")?n:o;if("object"==typeof t)a=o;else{const e={production:n,development:o},i=[n,o];(e[t]||i.includes(t))&&(a=e[t]?e[t]:t)}this.isProdEnv=a===n,e("configAnaSDK",`配置信息:${JSON.stringify(t)},是否为生产环境:${this.isProdEnv},上报的key值:${a}`),y()?(window.xybAgent.AnalysysAgent&&(window.xybAgent.AnalysysAgent.init({appkey:a,uploadURL:"https://mobile.zwfw.hunan.gov.cn:8088/aurora-api"}),e("configAnaSDK","xybAgent已初始化完成,可正常执行埋点操作","log"),this.anaSDKInit=!0,this.isInit=!0,this.checkTrackStack(),i(!0)),!Boolean(window.xybAgent.AnalysysAgent)&&this.anaSDKLoadTimes<10&&setTimeout(()=>this.trackSDKInit(i),300),!Boolean(window.xybAgent.AnalysysAgent)&&this.anaSDKLoadTimes>=10&&(e("configAnaSDK","xybAgent初始化失败","error","请检查app key、uploadURL是否正确"),i(!1))):i(!1)},async initTrackParams(e={}){const{code:t,name:i,aff_city_code:n,aff_city_name:o,unit_code:a,area_code:s,unit_name:r,is_finish:c,category:l,user_id:u,miniAppCode:d,$url_domain:m}=e,g=this.getVisitSource(),h=this.getPageSource(),v=await this.getPositionInfo();return{code:t||void 0,name:i||void 0,aff_city_code:n||void 0,aff_city_name:o||void 0,unit_code:a||void 0,area_code:s||void 0,unit_name:r||void 0,is_finish:c||void 0,category:l||void 0,user_id:u||void 0,miniAppCode:d||void 0,$url_domain:m||void 0,curr_time:L(),source:g,page_source:h,location:v}},getVisitSource(){if(!y()){const e=uni?.getSystemInfoSync(),{uniPlatform:t}=e||{};return"mp-weixin"===t?"wx":"mp-alipay"===t?"alipay":"app"}return I()?"wx":M()?"alipay":"app"},checkTrackStack(){e("checkTrackStack","执行埋点数据堆栈检测","log");t(this.trackStack).forEach(t=>{const{eventID:i,eventPro:n,id:o}=t;e("checkTrackStack",`执行id值为${o} 的埋点数据再次上报`,"log"),this.track(i,n);const a=this.trackStack.findIndex(e=>e.id===o);a>-1&&this.trackStack.splice(a,1)})},getPageSource(){let e=null;e=y()?location.href:decodeURIComponent(o().path);const t=e?.includes("source=");if(!t)return"click";const i=e.split("source=")[1];let n="click";return n=i.includes("&")?i.split("&")[0]:i,["copy","share","click","search"].includes(n)?n:"click"},async getPositionInfo(){if(!this.locationInfo?.province)try{const{location:e}=await this.getLocationInfo()||{};this.locationInfo=e||""}catch(t){e("getLocationInfo","获取位置信息异常","error",t),this.locationInfo={}}return JSON.stringify(this.locationInfo)}},W={weChatSDKReady:!1,weChatConfigReady:!1,initWeChatSDK(){if(e("initWeChatSDK","初始化weChat SDK"),y())return A()?(this.initWeChatConfig(),void e("initWeChatSDK","WeChat SDK已挂载完成,无需二次挂载")):void l("https://res.wx.qq.com/open/js/jweixin-1.6.0.js","微信").then(()=>{A()&&(this.weChatSDKReady=!0,this.initWeChatConfig(),e("initWeChatSDK","WeChat SDK挂载完成"))});e("initWeChatSDK","非浏览器环境,无需执行挂载动作")},initWeChatConfig(){if(this.weChatConfigReady)return;const t=new XMLHttpRequest;t.open("POST","https://xybfw.zwfw.hunan.gov.cn/gateway3/api/auth/wechat/v1/getJsapiTicket",!0),t.setRequestHeader("Content-Type","application/json"),t.onload=()=>{if(t.status>=200&&t.status<300){const i=JSON.parse(t.responseText);e("initWeChatConfig",`返回结果是否包含签名信息:${JSON.stringify(i?.data?.nonceStr)}`),this.weChatConfigReady=!0;const n=i?.data||{};return e("getLocationInWeChat","获取签名信息完成"),window?.wx?.config({appId:"wx44bc5d5e34ac0c01",timestamp:n?.timestamp,nonceStr:n?.noncestr,signature:n?.signature,jsApiList:["getLocation","openLocation","chooseImage","chooseFile","scanQRCode","previewImage","downloadImage"]}),e("initWeChatConfig",`初始化已完成,执行获取定位堆栈检测,需执行的定位堆栈数量:${this.locationStackList.length}`),void this.checkLocationEvStack()}e("initWeChatConfig",`请求错误,状态码:${t.status}`)},t.onerror=()=>{e("initWeChatConfig","网络错误,无法链接到服务器")},t.send(JSON.stringify({url:window.location.href.split("#")[0]}))}},J={initMobileBridgeGlobalConfig(){const t=w();e("initMobileBridgeGlobalConfig",`开始初始化移动端桥链接配置,访问设备类型:${t}`),window.c2={},"ios"===t&&this.initIOSCallbackEvConfig(),"android"===t&&this.initAndroidCallbackEvConfig(),e("initMobileBridgeGlobalConfig","初始化移动端桥链接配置完成"),window.CreatorJsBridge=window.c2},initIOSCallbackEvConfig(){try{const t=this;window.c2.iOS={},window.c2.iOS.callJS=function(){window?.c2.iOS?.callJSCallback||(window.c2.iOS.callJSCallback={}),e("initIOSCallbackEvConfig",`开始处理IOS设备回调事件,回调数据:${JSON.stringify(arguments)}`),t.IOSCallbackEvFormat(arguments[0])}}catch(t){e("initIOSCallbackEvConfig","初始化IOS回调事件配置异常","error",t)}},initAndroidCallbackEvConfig(){window.c2.sendDataWarpToWeb=(e,t,i)=>{e(i)}},IOSCallbackEvFormat(i){const{returnValue:n,funcName:o}=i;let s=this.base64Decode(n);s=a(s),e("IOSCallbackEvFormat",`IOS设备回调事件处理开始,回调数据:${JSON.stringify(s)}, 格式:${typeof s}`);const r=o.split("_a")[0],c=o.replace(r,""),l=this.iosCallBackList.find(e=>e.id===r);if(!l)return;const{resolveInfo:u,configInfo:d}=l,{resDataFormat:m,resErrorFormat:g}=d;if(c.includes("onFail")&&g)return s=g({isSuccess:!1,errorMsg:t(n)}),void u(s);m&&(s=m(s)),e("IOSCallbackEvFormat",`IOS设备回调事件处理完成,返回数据:${JSON.stringify(s)}`),u(s);const h=this.iosCallBackList.findIndex(e=>e.id===r);this.iosCallBackList.splice(h,1)},base64Decode(e){let t,i,n,o,a,s,r,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",l="",u=0;for(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");u<e.length;)o=c.indexOf(e.charAt(u++)),a=c.indexOf(e.charAt(u++)),s=c.indexOf(e.charAt(u++)),r=c.indexOf(e.charAt(u++)),t=o<<2|a>>4,i=(15&a)<<4|s>>2,n=(3&s)<<6|r,l+=String.fromCharCode(t),64!=s&&(l+=String.fromCharCode(i)),64!=r&&(l+=String.fromCharCode(n));return l=this._utf8_decode(l),l},_utf8_decode(e){let t="",i=0,n=0,o=0,a=0;for(;i<e.length;)n=e.charCodeAt(i),n<128?(t+=String.fromCharCode(n),i++):n>191&&n<224?(a=e.charCodeAt(i+1),t+=String.fromCharCode((31&n)<<6|63&a),i+=2):(a=e.charCodeAt(i+1),o=e.charCodeAt(i+2),t+=String.fromCharCode((15&n)<<12|(63&a)<<6|63&o),i+=3);return t},checkMobileModuleBack(e,t,i){const n=i?"custom":e,o=`${i?"call":t}Callback`;window.c2.hasOwnProperty(n)||(window.c2[n]={}),window.c2[n].hasOwnProperty(o)||(window.c2[n][o]={})}};let _=null,q=null,R=null;E()?(_=uni&&uni?.requireNativePlugin?uni?.requireNativePlugin("GCUniPlugin-RUM"):null,q=uni&&uni?.requireNativePlugin?uni?.requireNativePlugin("GCUniPlugin-Tracer"):null,R=uni&&uni?.getSystemInfoSync?uni.getSystemInfoSync().platform:null):e("请求插件初始化","未找到uni对象","warn");const U={defaults:{headers:{},baseURL:""},interceptor:{request:null,response:null},requestOb:!1,request(i={}){return new Promise((n,o)=>{let a=t(i);if(!this.interceptor.request||"function"!=typeof this.interceptor.request||i.ignore||(a=this.interceptor.request(i),a))if(E()&&this.requestOb&&Boolean(_)&&Boolean(q))try{e("request","走服务监控平台的请求配置","log"),this.executeCloudObRequest(a,n,o)}catch(t){e("request","走服务监控平台的请求配置失败","error",t)}else e("request","走uni的请求配置","log"),this.executeNormalRequest(a,n,o);else n(!1)})},executeCloudObRequest(t,n,o){let a=i();const s=this.checkCloudObRequestHeader(t,a);if(!s)return;const{traceHeader:c,filter:l}=s;let u,d,m;_.startResource({key:a}),uni.request({url:`${this.defaults.baseURL}${t.url}`,method:t.method,header:c,data:t.data,timeout:t.timeout,withCredentials:t?.withCredentials||void 0,success:i=>{if(e("executeCloudObRequest",`接口:${t.url},请求成功`,"log"),l||(u=i.header,d=i.data.toString(),m=i.statusCode),r(t.success)||t.success(i),this.interceptor.response&&"function"==typeof this.interceptor.response&&!t.ignore){const e=this.interceptor.response(i);return void n(e)}n(i)},fail:i=>{e("executeCloudObRequest",`接口:${t.url},请求失败`,"error",i),l||(d=i?.errMsg),r(t?.fail)||t.fail(i),o(i)},complete:()=>{if(e("executeCloudObRequest",`接口:${t.url},请求完成`,"log"),!l){e("executeCloudObRequest",`无filter配置的数据信息::::key值:${a};URL地址:${t.url};`),_.stopResource({key:a});const i={url:`${this.defaults.baseURL}${t.url}`,httpMethod:t.method,requestHeader:c,responseHeader:u,responseBody:d,resourceStatus:m};_.addResource({key:a,content:i})}Boolean(t?.complete)&&t?.complete()}})},checkCloudObRequestHeader(t,i){let n;r(t?.filterPlatform)?(e("executeCloudObRequest",`options.filterPlatform:${t.filterPlatform}`,"log"),n=!1):(n=t?.filterPlatform?.includes(R),e("executeCloudObRequest",`platform:${t.filterPlatform}`,"log")),e("executeCloudObRequest",`rum:${_},tracer:${q}`,"log");let o={};return n||(o=q?.getTraceHeader({key:i,url:t.url})),e("executeCloudObRequest",`是否读取到【tracer】插件配置:${Boolean(q)},是否读取到【rum】插件配置:${Boolean(_)}`,"log"),_&&q?(o=Object.assign({},o,t.header),o=Object.assign({},o,this.defaults.headers),{traceHeader:o,filter:n}):(e("executeCloudObRequest","请配置服务监控平台原生插件","log"),!1)},executeNormalRequest(t,i,n){const{url:o,header:a,data:s,method:r}=t||{},c=Object.assign({},this.defaults.headers,a);uni.request({url:`${this.defaults.baseURL}${o}`,header:c,data:s,method:r,withCredentials:t?.withCredentials||void 0,success:n=>{if(e("normalRequest",`接口:${o},请求成功`,"log"),this.interceptor.response&&"function"==typeof this.interceptor.response&&!t.ignore){const e=this.interceptor.response(n);return void i(e)}i(n)},fail:t=>{e("normalRequest",`接口:${o},请求异常`,"error",t),n(t)}})}},H={resetMenuBtnConfig(){e("hideNativeBtn","隐藏原生APP分享、评价按钮","log");const t={share:{show:!1},comment:{show:!1},favorite:{show:!0}};try{this.menuBtnConfig(t),this.pageChangeEv(i=>{if(!this.autoUpdate)return void e("resetMenuBtnConfig","业务侧设置不自动重置胶囊按钮,中断配置动作");const{options:n}=i,{xybModuleCode:o}=n||{};if(o&&this.autoConfigMenuBtn)return e("resetMenuBtnConfig",`页面拦截事件生效 自动设置原生APP分享、评价按钮,配置信息:${JSON.stringify(i)}`,"log"),void this.menuBtnConfig({share:{show:!0,code:o,type:4},comment:{show:!0,code:o,type:4},favorite:{show:!0}});e("resetMenuBtnConfig","页面拦截事件生效 自动重置原生APP分享、评价按钮配置信息","log"),this.menuBtnConfig(t)})}catch(t){e("resetMenuBtnConfig","配置APP的胶囊按钮清单显示失败,请检查参数是否正确","error",t)}},pageChangeEv(t){if(!uni)return;["navigateTo","redirectTo","switchTab","reLaunch","navigateBack","onBackPress"].forEach(i=>{try{uni.addInterceptor(i,{invoke(n){try{const{url:a}=n;let s={options:{},path:null,route:null},r=decodeURIComponent(a);s.path=r,s.route=r.split("?")[0],r?.includes("xybModuleCode=")&&(console.log(`🚀当前页面路径信息:${r}`),s.options.xybModuleCode=c("xybModuleCode",r)),r?.includes("?")&&(s.route=r.split("?")[0]),i?.includes("Back")&&(s=o(i?.includes("Back"))),e("pageChangeEv",`页面路径发生了变化,当前页面路径:${s.path}`,"log"),"function"==typeof t&&t(s)}catch(t){console.log("🚀 错误信息:::::",t),e("pageChangeEv","拦截路径变化时发生了异常","error",t)}return!0}})}catch(t){e("pageChangeEv","执行页面变化拦截异常","error",t)}})},menuBtnConfig(t={}){e("menuBtnConfig",`配置APP胶囊按钮清单显示,配置信息:${JSON.stringify(t)}`,"log");let i=!0;for(let n in t){if("object"!=typeof t[n]){i=!1,e("menuBtnConfig","配置参数错误","error","请传入一个Object配置数据");break}}if(i)if(N())this.miniAppH5SendMsgToApp(null,"menuBtnConfig",t,"配置APP的胶囊按钮清单显示");else if(!y()&&uni&&uni?.sendNativeEvent)try{e("menuBtnConfig","开始执行配置APP胶囊按钮清单显示","log"),uni?.sendNativeEvent("Util_MiniAppConfigMenu",t)}catch(t){e("menuBtnConfig","配置APP的胶囊按钮清单显示时发生异常","error",t)}else e("menuBtnConfig","配置APP胶囊按钮清单显示功能无法在非UNI环境运行","log")}},K={executeBrowserEvent(t,i={},n={},o={}){const a=I()?"微信小程序":M()?"支付宝小程序":"浏览器",{eventName:s,description:r,browserEvName:c,bResDataFormat:l,bReqDataFormat:u,reqDataFormat:d}=o,m="startNavigation"===s?n:i;e("normalEvDataTransition",`开始调用${a}嵌套H5的能力,事件名称:${s},入参:${JSON.stringify(m)},配置信息:${JSON.stringify(o)}`);const g={authFace:"executeAuthFaceInBrowser",getLocationInfo:"executeGetLocationInBrowser",startNavigation:"startNavigationInBrowser",fileUpload:"executeFileUploadInBrowser",chooseImg:"executeImageChooseInBrowser",executePayment:"executePayment"}[s];if(g)return void this[g](t,m,o);if(!c)return void t({isSuccess:!1,code:-1,message:`非常抱歉,${r}功能无法在当前环境中使用`});const h=d?d(i):u?u(i):i;M()||I()?this.executeMPBrowserEvent(t,c,i,s):this.executeNativeBrowserEv(t,c,h,l)},executeMPBrowserEvent(i,n,o,a){e("executeMPBrowserEvent",`配置信息:${JSON.stringify(o)}`);let s=t(o);e("executeMPBrowserEvent",`配置信息:${JSON.stringify(s)}`),s.success=t=>{e("executeMPBrowserEvent",`执行:${a}事件完成,返回结果:${JSON.stringify(t)}`)},s.fail=t=>{e("executeMPBrowserEvent",`执行:${a}事件失败,错误信息:${JSON.stringify(t)}`)},e("executeWeChatBrowserEv",`${a},配置信息:${JSON.stringify(s)}`),I()?window.wx[n](s):window.my[n](s)},executeNativeBrowserEv(e,i){let n=t(i);n.success=function(e){console.log(e)},n.fail=function(e){console.error(e)},window.uni[e](n)}},j={executePayment(t={}){const{orderToken:i,reqURL:n,returnUrl:o}=t;if(e("executePayment",`配置信息:${JSON.stringify(t)}`),!i||!n||!o)return void e("executePayment","缺失必要参数,请按照API文档进行检查");if(!M()&&!I())return void e("executePayment","目前仅支持微信小程序/支付宝小程序下使用");const a=`/pages/epay/openPay?orderToken=${encodeURIComponent(i)}&serverRequestUrl=${encodeURIComponent(n)}&returnUrl=${encodeURIComponent(o)}`;I()?d(a):M()?u(a):e("executePayment","当前环境不支持湘易办支付能力")}},G={executeAuthFaceInBrowser(t,i={},n={}){const o=function(i){let n=c("faceKey",window?.location?.href);if(e("executeAuthFaceInBrowser",`获取到的faceKey参数值::::${n}`),!window?.location?.href.includes("faceKey"))return;const a={isSuccess:Boolean(n),certifyId:n?`MINI_${n}`:null,portrait:null,errorMsg:Boolean(n)?null:"人脸验证失败,请检查参数信息"};window.removeEventListener("hashchange",o),setTimeout(()=>{e("executeAuthFaceInBrowser",`执行验证结果回抛给业务侧:${JSON.stringify(a)}`),t(a)},100)};window.addEventListener("hashchange",o);const a=encodeURIComponent(window.location.href),{certNo:s,name:r}=i;let l=`/pages/sdk/sdk?redirectUrl=${a}&type=authFace&idCard=${encodeURIComponent(s)}&name=${r}`;I()?d(l,t):M()?u(l,t):(e("executeAuthFaceInBrowser","当前环境不支持人脸识别","warning"),t({isSuccess:!1,code:-1,message:"当前环境下不支持人脸识别验证功能"}))}},z={locationCheck:!1,locationStackList:[],checkLocationEvStack(){this.locationStackList.forEach(e=>{this.getLocationInWeChat(e.resolveInfo,e.id)})},executeGetLocationInBrowser(t){e("executeGetLocationInBrowser","在微信/支付宝浏览器中获取定位信息"),M()?this.getLocationInAliPay(t):I()?this.getLocationInWeChat(t):t({code:-1,isSuccess:!1,message:"当前环境无法支持位置信息获取,请检查是否为湘易办相关环境"})},getLocationInWeChat(t,n){return this.weChatConfigReady?this.locationCheck?(e("getLocationInWeChat","已缓存签名信息,直接调用对应API获取位置信息"),void this.executeGetWeChatLocation(t,n)):void this.executeGetWeChatLocation(t,n):(e("getLocationInWeChat","微信SDK尚未初始化完毕,先行进行堆栈,待微信SDK初始化后,统一调用"),void this.locationStackList.push({id:i(),resolveInfo:t}))},executeGetWeChatLocation(t,i){e("executeGetWeChatLocation","在微信环境中获取位置信息");let n=null;if(i){const e=this.locationStackList.findIndex(e=>e.id===i);n=this.locationStackList[e].resolveInfo}window?.wx?.getLocation({type:"gcj02",success:o=>{this.locationCheck=!0,e("executeGetWeChatLocation",`获取到的坐标信息:${JSON.stringify(o)}`);const a={isSuccess:!0,location:{longitude:o?.longitude,latitude:o?.latitude},message:"微信小程序下只提供经纬度"};if(i)return n(a),void this.clearLocationEventStack(i);t(a)},fail:o=>{const a={isSuccess:!1,message:"调用微信获取位置信息失败,请查看控制台"};if(e("executeGetWeChatLocation",`调用微信获取位置信息失败,信息是:${JSON.stringify(o)}`),i)return n(a),void this.clearLocationEventStack(i);t(a)}})},clearLocationEventStack(e){const t=this.locationStackList.findIndex(t=>t.id===e);-1!==t&&this.locationStackList.splice(t,1)},getLocationInAliPay(t){e("getLocationInAliPay","在支付宝环境中获取位置信息"),window?.my?.getLocation({success:i=>{e("getLocationInAliPay",`获取到的坐标信息:${JSON.stringify(i)}`),t({isSuccess:!0,location:{longitude:i?.longitude,latitude:i?.latitude},message:"支付宝小程序只提供经纬度"})},fail:i=>{e("getLocationInAliPay","获取位置信息失败","error",i),t({code:-1,isSuccess:!1,message:"获取位置信息失败"})}})}},V={executeImageChooseInBrowser(t,i,n){const{count:o,sizeType:a,sourceType:s}=i,{bResDataFormat:r}=n;if(I()||M()){const i={count:o||9,mediaType:["image"],sizeType:a||["original","compressed"],sourceType:s||["album"],success:i=>{i?.success&&t(r?r(i):i),e("executeChooseImageInWeChat",`微信/支付宝环境下执行选择图片API执行完毕,结果:${JSON.stringify(i)}`)},fail:t=>{e("executeChooseImageInWeChat",`微信/支付宝环境下执行选择图片API执行失败,结果:${JSON.stringify(t)}`)}};return void(M()?window.my.chooseImage(i):window.wx.chooseImage(i))}t({isSuccess:!1,code:-1,message:"目前环境暂不支持,敬请期待"})}},Q={navigationCheck:!1,startNavigationInBrowser(t,i={}){const n=encodeURIComponent(window?.location?.href),{lat:o,lng:a,address:s,name:r,dinateType:c}=i;let l=`/pages/sdk/sdk?redirectUrl=${n}&type=navigation&latitude=${o}&longitude=${a}&address=${s}&name=${r}`;if(c&&"GCJ02"!==c){const e=k(i),{destinationLatitude:t,destinationLongitude:o}=e;l=`/pages/sdk/sdk?redirectUrl=${n}&type=navigation&latitude=${t}&longitude=${o}&address=${s}&name=${r}`}e("startNavigationInBrowser",`跳转目标URL:${l}`),I()?d(l,t):M()?u(l,t):(e("startNavigationInBrowser","导航功能无法在当前环境下执行"),t({isSuccess:!1,code:-1,message:"导航功能无法在当前环境下执行,请检查是否为微信/支付宝小程序的浏览器环境中"}))}},X={wvInfo:null,isHarmony:!1,isCheckDevice:!1,async initMessage(...t){const i=t[0];await this.checkDeviceInfo(),await this.initVMInfo(t[2]),y()?window.addEventListener("message",t=>{e("initMessage",`浏览器webview接收到的消息内容,${JSON.stringify(t)}`,"log"),this.getMsgFromH5(t)}):(e("initMessage",`非浏览器中的webview接收到的消息内容,${JSON.stringify(i)}`,"log"),this.getMsgFromH5(i))},checkDeviceInfo(){this.isCheckDevice||(this.isCheckDevice=!0,uni.sendNativeEvent("System_getAppInfo",{},e=>{this.isHarmony=e?.platform?.toLowerCase().includes("harmony")}))},initVMInfo(t){if(!this.wvInfo)if(this.isHarmony)this.wvInfo=uni.createWebviewContext("webview",t);else try{this.wvInfo=t,t?.$scope?.$getAppWebview()&&(this.wvInfo=t.$scope.$getAppWebview().children()[0])}catch(t){e("initMessage","初始化消息模块,是否包含wvInfo:"+typeof this.wvInfo?.evalJS)}},getMsgFromH5(t={}){let i=this.getMsgDataFromH5(t);const{origin:n}=t||{},{href:o}=location||{};if(y()&&o?.includes(n))return!1;const{isH5Send:a,methodName:s,methodData:r}=i||{};return!!a&&(s?null==r?(e("getMsgFromH5","请传入需要执行的事件数据","warn"),!1):(e("getMsgFromH5",`需要执行的事件名称【${s}】,需要执行的事件数据【${JSON.stringify(r)}】,是否为H5发送的消息【${a}】`,"log"),void(this[s]?this.executeH5MethodName(s,i):e("getMsgFromH5",`【${s}】事件不存在`,"warn"))):(e("getMsgFromH5","请传入需要执行的事件名称","warn"),!1))},executeH5MethodName(t,i){const{msgId:n,methodData:o}=i;try{const i=this[t].toString();if(e("executeH5MethodName",`【${t}】方法定义:${i}`,"log"),i.includes("Promise"))return void this[t](o).then(i=>{e("executeH5MethodName",`${t}方法执行结果:${JSON.stringify(i)}`,"log");let o=i;try{o=JSON.parse(i)}catch(t){e("executeH5MethodName","强制给数据进行序列化失败","error",t)}this.postMsgToH5({msgId:n,sourceMethod:t,resultInfo:o,isWebviewSend:!0,resultMessage:`执行${t}方法完成`})}).catch(i=>{e("executeH5MethodName",`${t}方法执行失败`,"error",i),this.postMsgToH5({msgId:n,sourceMethod:t,resultInfo:null,isWebviewSend:!0,resultMessage:`执行${t}方法失败,具体错误信息,请查看控制台`})});this[t](o),this.postMsgToH5({msgId:n,sourceMethod:t,resultInfo:null,isWebviewSend:!0,resultMessage:`执行${t}方法完成`})}catch(i){e("getMsgFromH5",`${t}方法执行失败`,"error",i)}},postMsgToH5(t){const i=JSON.stringify(t);if(e("postMsgToH5",`消息内容:${i}`,"log"),y()){e("postMsgToH5","父页面运行在浏览器","log");document.querySelector("iframe").contentWindow.postMessage(JSON.stringify(i),"*")}else try{e("postMsgToH5","父页面运行在非浏览器","log"),this.wvInfo.evalJS(`getMessageFromWebview('${i}')`)}catch(t){e("postMsgToH5","执行浏览器的webview回传异常","error",t)}},getMsgDataFromH5(t){let i=null;const{data:n}=t;try{i=y()?n?.data?.arg?n?.data?.arg:n?.data?n.data:n:t.detail?.data[0]}catch(t){return e("getMsgDataFromH5","处理消息内容时发生异常","error",t),!1}return e("getMsgDataFromH5",`获取到的消息内容:${JSON.stringify(i)}`,"log"),i}},Y=(t,i,n)=>{if(e("_parseFunction",`${JSON.stringify(t)}`),"function"==typeof t)return n[i]=t,void(t="[Function]::"+i);if("object"!=typeof t)return;let o=null;for(let e in t)switch(typeof t[e]){case"object":o=i?i+"_"+e:e,Y(t[e],o,n);break;case"function":o=i?i+"_"+e:e,n[o]=t[e],t[e]="[Function]::"+o}},Z=e=>{let t=0;return"string"==typeof e?t=1:"number"==typeof e?t=2:"boolean"==typeof e?t=3:"function"==typeof e?t=4:e instanceof Array?t=6:"object"==typeof e&&(t=5),t},ee={appH5SendMsgToApp(e,t={},i={}){const{isWindowEv:n,moduleName:o,nativeEvName:a,isCustomEv:s}=t;if(n)return void this.h5SendMsgToAppByWindow(e,t,i);const r=s?"custom":o,c=s?"call":a;this.executeSendMsgToApp({resolveInfo:e,moduleName:r,eventName:c,actionName:a,dataInfo:i,isCustomEv:s,evConfig:t})},executeSendMsgToApp(i={}){const{moduleName:n,eventName:o,actionName:a,dataInfo:s,resolveInfo:r,isCustomEv:c,evConfig:l}=i||{},{description:u}=l,d=this;try{let i={};if(("object"==typeof s?Object.keys(s):[]).length>0&&(i=t(s)),c){const n=t(i);e("webviewSendMsgToApp",`${u}功能在是通过custom.call的方式调用,需要重新处理入参`),i.params=n,i.action=a}e("webviewSendMsgToApp",`${u}的完整参数:${JSON.stringify(i)}`),this.initEventCallbackEv(r,i,l);const m=function(){return d.formatBridgeData(window.c2[n][`${o}Callback`],arguments)}(i);e("webviewSendMsgToApp",`${u}功能在${w()}的Webview环境下执行,调用参数:${JSON.stringify(m)}`),this.h5SendMsgToAppByBrowser(r,l,m)}catch(t){console.log(`🚀发送消息给APP出现错误,错误信息:${t},${JSON.stringify(t)}`),e("webviewSendMsgToApp",`${u}执行数据处理失败`,"error",t)}},initEventCallbackEv(i,n,o={}){const{description:a,resDataFormat:s,resErrorFormat:r}=o;n.onSuccess=function(t){e("webviewSendMsgToApp",`${a}功能在App的Webview环境下执行完成`),i(s?s(t):t)},n.onFail=function(n){const o=t(n);e("webviewSendMsgToApp",`${a}功能在App的Webview环境下执行失败,收到的回调数据:::${JSON.stringify(o)}`),i(r?r(o):s?s(o):o)}},formatBridgeData(t,i){try{const n=Math.random().toString(32).slice(2),o=[];for(let e in i){const a=n+"_a"+e,s=i[e],r={};!1===/OpenHarmony ([5-9])|OpenHarmony (\d{2})/i.test(navigator.userAgent)&&Y(s,a,r);for(let e in r)t[e]=r[e],this.C2ReceiveQueue.push(t);o.push({type:Z(s),name:a,value:s})}return e("formatBridgeData",`格式化后的参数:${JSON.stringify(o)}`),{params:o,id:n}}catch(t){e("formatBridgeData","消息通讯数据格式化异常","error",t)}},h5SendMsgToAppByWindow(t,i={},n={}){const{nativeEvName:o,description:s,resDataFormat:r}=i,c=w(),l=`${o}Back`;let u=n;e("h5SendMsgToAppByWindow",`给【${c}】APP发送【${s}】-【${o}】事件调用,回调函数名称:【${l}】`,"log"),window[l]=i=>{let n=i;e("h5SendMsgToAppByWindow",`收到【${c}】APP发送的${s}事件调用的回调值:${JSON.stringify(n)},回调数据类型::${typeof n}`,"log"),n=a(n),t(r?r(n):n)},setTimeout(()=>{"ios"!==c.toLowerCase()?"android"!==c.toLowerCase()?window.harmony[o](u):window.android[o](u):window.webkit.messageHandlers[o].postMessage(u)},100)},h5SendMsgToAppByBrowser(t,i={},n={}){const o=w();e("h5SendMsgToAppByBrowser",`给【${o}】APP发送【${i.nativeEvName}】事件调用,入参:${JSON.stringify(n)}`,"log");const{nativeEvName:a,moduleName:s,isCustomEv:r}=i,{id:c,params:l}=n;if("android"!==o)return"ios"===o?(this.iosCallBackList.push({id:c,resolveInfo:t,configInfo:i}),void this.h5SendMsgToIOS(c,s,a,l,r)):void("harmony"===o&&this.h5SendMsgToHarmony(c,s,a,l,r));this.h5SendMsgToAndroid(c,s,a,l,r)},h5SendMsgToAndroid(t,i,n,o,a){const s={id:t,module:a?"custom":i,method:a?"call":n,parameters:o};return e("h5SendMsgToAndroid",`发送给安卓APP的消息:${JSON.stringify(s)}`),JSON.parse(window.AndroidFunction.callAndroidFun(JSON.stringify(s)))},h5SendMsgToIOS(t,i,n,o,a){const s={id:t,module:a?"custom":i,method:a?"call":n,parameters:o};return e("h5SendMsgToIOS",`发送给IOS APP的消息:${JSON.stringify(s)}`),JSON.parse(prompt(JSON.stringify(s)))},h5SendMsgToHarmony(t,i,n,o,a){const s={id:t,module:a?"custom":i,method:a?"call":n,parameters:o};return e("h5SendMsgToHarmony",`发送给鸿蒙APP的消息:${JSON.stringify(s)}`),JSON.parse(window.harmonyFunction.callHarmonyFun(s))}},te={msgList:[],msgStack:[],async miniAppH5SendMsgToApp(t,i,n){try{e("miniAppH5SendMsgToApp",`发送消息给webview:${i}`,"log");const o=await this.sendMsgToMiniApp({methodName:i,methodData:n});t(o?.resultInfo)}catch(n){e("miniAppH5SendMsgToApp",`执行${i}失败`,"error",n),t({isSuccess:!1,message:"执行事件失败,详情查看控制台"})}},sendMsgToMiniApp(t){return new Promise((n,o)=>{e("postMsgToWebview",`消息内容:${JSON.stringify(t)}`,"log");const{methodName:a,methodData:s}=t||{};if(!a)return void e("postMsgToWebview","请传入要调用的事件名称","warn");if(!s)return void e("postMsgToWebview","请传入要调用事件的数据信息","warn");const r=i(),c={data:{msgId:r,isH5Send:!0,...t}};if(this.msgList.push({id:r,resolveInfo:n,rejectInfo:o}),e("postMsgToWebview",`发送消息给父容器页面:${JSON.stringify(c)}`,"log"),!this.uniSDKInit)return e("postMsgToWebview","SDK尚未初始化完成,先行执行堆栈","log"),void this.msgStack.push({id:i(),msgContent:c,resolve:n,reject:o});uni?.webView?.postMessage?uni.webView.postMessage(c):uni?.postMessage(c)}).catch(t=>{e("postMsgToWebview","发生异常","error",t)})}},ie={getMessageFromWebview(t,i=!1){let n={};try{n=i?t:t?.data||"{}",n=a(n)}catch(t){e("getMessageFromWebview","解析数据异常","error",t)}if(e("getMessageFromWebview",`是否为webview发送的消息内容:${n?.isWebviewSend},消息内容:${JSON.stringify(n)}`,"log"),!n?.isWebviewSend)return;const{msgId:o}=n,s=this.msgList.findIndex(e=>e.id===o);if(-1===s)return;const r=this.msgList[s],{resolveInfo:c}=r;c(n),this.msgList.splice(s,1)}},ne=(t,i={},n="")=>{"location"!==n?"authFace"===n&&((e,t)=>{t.isSuccess?s(e,t):uni.sendNativeEvent("System_getAppInfo",{},i=>{i.platform.toLowerCase().includes("harmony")&&(t.isSuccess=t?.result||Boolean(t.certifyId)),s(e,t)})})(t,i):((t,i)=>{e("locationCoordinate","执行原生端坐标系值转换处理");const{location:n}=i;uni.sendNativeEvent("System_getAppInfo",{},o=>{const{platform:a}=o;if(e("locationCoordinate",`设备类型:${a},转换前的坐标值:lat:${n.latitude},lng:${n.longitude}`),a.toLowerCase().includes("harmony")){const e=x(n?.longitude,n?.latitude);i.location.longitude=e?.lng,i.location.latitude=e?.lat}if(a.toLowerCase().includes("android")){const e=P(n?.longitude,n?.latitude);i.location.longitude=e?.lng,i.location.latitude=e?.lat}e("locationCoordinate",`转换后的坐标值:lat:${n.latitude},lng:${n.longitude}`),s(t,i)})})(t,i)},oe=["getLoginUserInfo","getAuthToken"];let ae=new class{version="";isInit=!1;isWebviewPage=!1;anaSDKInit=!1;uniSDKInit=!1;alipayInit=!1;iosCallBackList=[];C2ReceiveQueue=[];autoUpdate=!0;autoConfigMenuBtn=!0;constructor(e,t){this.version=e,this.isInit=!1,this.isWebviewPage=t,this.iosCallBackList=[],this.initModuleMethod(),this.initSDKAPI(),this.initDefaultConfig()}initModuleMethod(){n(O,this),n(B,this),n(W,this),n(J,this),n(U,this),n(j,this),n(K,this),n(z,this),n(H,this),n(X,this),n(V,this),n(ee,this),n(G,this),n(Q,this),n(ie,this),n(te,this)}init(t){return new Promise(async(i,n)=>{if(e("init","SDK初始化任务执行处理"),!y())return e("init","当前环境非浏览器环境,无需执行初始化动作","warn"),void n("当前环境非浏览器环境,无需执行初始化动作");N()&&this.initWebviewMsgFormat(),this.initSDKScriptFile(),await this.trackSDKInit(t),i(this.isInit)})}initSDKScriptFile(){e("initSDKScriptFile","挂载第三方SDK脚本文件"),this.initUNISDK(),I()?this.initWeChatSDK():this.initAliPaySDK()}initWebviewMsgFormat(){e("initWebviewMsgFormat","初始化被嵌套的页面消息通讯","log"),y()?(window.addEventListener("message",t=>{e("initWebviewMsgFormat","浏览器消息处理","log"),this.getMessageFromWebview(t)}),window.getMessageFromWebview=t=>{e("initWebviewMsgFormat","事件注入消息处理","log"),this.getMessageFromWebview(t,!0)}):e("initWebviewMsgFormat","该API仅支持在被webview嵌套的H5页面中使用","error","")}initUNISDK(){y()&&($()||l("https://mobile.zwfw.hunan.gov.cn:8088/uni.webview.1.5.6.js","UNI").then(()=>{$()&&(this.uniSDKInit=!0,e("initUNISDK","UNI Webview SDK 挂载完成"))}))}initAliPaySDK(){e("initAliPaySDK","初始化Alipay SDK"),y()&&(b()||M()&&l("https://appx/web-view.min.js","支付宝").then(t=>{b()&&(this.alipayInit=!0,e("initAliPaySDK","Alipay SDK挂载完成"))}))}initSDKAPI(){C()&&(e("initSDKAPI","App的Webview环境,初始化C2调用链的回调函数"),this.initMobileBridgeGlobalConfig()),e("initSDKAPI","开始初始化SDK API"),D.forEach(t=>{const{eventName:i,moduleName:n,nativeEvName:o,isCustomEv:a}=t;if((n&&o||a)&&C()&&(e("initSDKAPI",`初始化C2调用链的回调函数:${i}`),this.checkMobileModuleBack(n,o,a)),!oe?.includes(i))try{this[i]=e=>new Promise(i=>{this.normalEvDataTransition(i,e,t)})}catch(t){e("initSDKAPI","执行API初始化挂载异常","error",t)}})}normalEvDataTransition(t,i={},n={}){const{eventName:o,description:a,reqDataFormat:s}=n||{},r=w();let c=i;if(s&&(c=s(i)),c)return C()?(e("normalEvDataTransition",`开始调用APP的嵌套H5能力,事件名称:${o},入参:${JSON.stringify(c)}`),void this.appH5SendMsgToApp(t,n,c)):S()?(e("normalEvDataTransition",`开始调用小程序/H5嵌套的H5能力,事件名称:${o},入参:${JSON.stringify(c)}`),void this.miniAppH5SendMsgToApp(t,o,c,a)):I()||M()?(e("normalEvDataTransition",`微信/支付宝小程序事件调用,事件名称:${o}, 入参:${JSON.stringify(c)}`),void this.executeBrowserEvent(t,c,i,n)):void this.executeEvByNative(t,c,n);e(o,`给【${r}】APP发送【${a}】-【${o}】事件失败,请检查数据格式是否正确`,"error")}executeEvByNative(t,i,n){const{description:o,uniEvName:a,eventName:r,nativeResFormat:c}=n;try{e("executeEvByNative",`开始调用原生${o}的能力,API名称:${a},格式化前的参数信息:${JSON.stringify(i)}`),uni.sendNativeEvent(a,i,i=>{e("executeEvByNative",`调用原生${o}的能力完成,结果:${JSON.stringify(i)}`,"log");let n=i;c&&(n=c(n),e("executeEvByNative",`调用原生${o}的能力完成,格式化后的结果:${JSON.stringify(n)}`,"log")),"fileDownload"===r&&i.isSuccess&&s(t,n),"getLocationInfo"!==r?"authFace"!==r?"fileDownload"!==r&&s(t,n):ne(t,n,"authFace"):ne(t,n,"location")})}catch(i){t({isSuccess:!1,message:`${o}API执行失败,具体错误信息请查看控制台`}),e("executeEvByNative",`${o}API执行异常`,"error",i)}}initDefaultConfig(){e("initDefaultConfig","默认胶囊按钮配置执行初始化处理"),this.autoUpdate?this.resetMenuBtnConfig():e("initDefaultConfig","业务侧配置无需自动重置胶囊按钮,不至于页面切换事件监听")}}(F,N());y()&&(window.xybAgent=ae);export{ae as default};
1
+ const logMsgFormat=(e="",t="",i="log",n="")=>{const o={error:"错误",warn:"警告",info:"提示",log:"日志"}[i]||"日志",a=JSON.stringify(n);console.log(`\n=============🚀START - V${s} 🚀=============\n【事件名称】:${e} \n【日志类型】:${o} \n【日志信息】:${t} ${"error"===i?`【错误信息】:${JSON.stringify(a)}`:""} \n==============🚀END🚀==============`),console.log("")},deepClone=(e={})=>{if("function"==typeof e)return logMsgFormat("deepClone","数据类型为function,无法执行深拷贝,请检查","error"),e;try{return JSON.parse(JSON.stringify(e))}catch(t){return logMsgFormat("deepClone","执行数据深拷贝异常","error",t),e}},getUUID=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}),objIntegration=(e={},t={})=>{for(let i in e)t[i]=e[i]},getCurrentPagePath=(e=!1)=>{let t={route:null,path:null,options:{}};try{const i="function"==typeof getCurrentPages?getCurrentPages():[],n=[];for(let e in i)n.push({route:i[e].route,path:i[e].$page?.fullPath,options:i[e].$page?.options});const o=n?.length||0;if(o){const i=n[o-1],a=n[o-2];t=(e?a:i)||{}}}catch(e){logMsgFormat("getCurrentPagePath","获取页面信息失败","error",e)}return t},parseResData=e=>{try{return JSON.parse(e)}catch(t){return e}},formatResponseData=(e={},t={})=>{let i=t;try{i=parseResData(t)}catch(e){logMsgFormat("formatResponseData","格式化失败","error",e),i=t}e(i)},isEmpty=e=>null==e,getUrlParam=(e="",t="")=>{let i=t||window?.location?.href;if(i=decodeURIComponent(i),i?.includes(e)){let t=i.split(`${e}=`)[1];return t?.includes("&")&&(t=t.split("&")[0]),t}return""},mountScriptFile=(e="",t="")=>{if(e)return new Promise(t=>{const i=document.createElement("script");i.src=e,i.onload=t,document.head.appendChild(i)})},openAlipayMiniApp=(e,t)=>{window?.my?.navigateTo({url:e,fail:e=>{logMsgFormat("openAlipayMiniApp","跳转失败,请检查配置信息","error",e),t({code:-1,isSuccess:!1,message:"跳转失败,请检查配置信息"})}})},openWeChatMiniApp=(e,t)=>{window.wx?.miniProgram?.navigateTo({url:e,fail:e=>{logMsgFormat("executeAuthFaceInBrowser","跳转失败,请检查配置信息","error",e),t({code:-1,isSuccess:!1,message:"跳转失败,请检查配置信息"})}})},e="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};let t={finished:!1,result:!1},i={finished:!1,result:!1},n={finished:!1,result:!1},o={finished:!1,result:!1};const getUserAgentInfo=()=>checkIsBrowserEnv()?navigator.userAgent.toLowerCase():"",getPlatformInfo=()=>{const e=getUserAgentInfo();return/android/i.test(e)?"android":/iphone|ipad|ipod|mac/i.test(e)&&!window.MSStream?"ios":/windows phone/i.test(e)?"windows":"harmony"},checkIsBrowserEnv=()=>window&&document,checkIsMiniAppBrowserEnv=()=>{if(o.finished)return o.result;if(o.finished=!0,!checkIsBrowserEnv())return o.result=!1,!1;const e=getUserAgentInfo();return o.result=e.includes("uni-app"),logMsgFormat("checkIsMiniAppBrowserEnv",`当前是否为小程序的浏览器环境:${o.result}`),o.result},checkIsWebviewEnv=()=>{const{finished:e,result:i}=t;return e?i:(t.result=(()=>{if(n.finished)return n.result;if(n.finished=!0,!checkIsBrowserEnv())return n.result=!1,!1;const e=getUserAgentInfo();return n.result=e.includes("xybwebcomponent")||e.includes("uni-app"),logMsgFormat("checkIsXybBrowserEnv",`当前是否为湘易办浏览器环境:${n.result}`),n.result})()||checkIsMiniAppBrowserEnv(),t.finished=!0,logMsgFormat("checkIsWebviewEnv",`当前是否为Webview环境:${t.result}`),t.result)},checkIsAppWebviewEnv=()=>{const{finished:e,result:t}=i;if(e)return t;if(i.finished=!0,!checkIsBrowserEnv())return i.result=!1,!1;const n=getUserAgentInfo();return i.result=n.includes("xybwebcomponent")&&!n.includes("uniminiapp"),logMsgFormat("checkIsAppWebviewEnv",`当前是否为APP的Webview环境:${i.result}`),i.result},checkIsWeChatEnv=()=>checkIsBrowserEnv()?getUserAgentInfo().includes("micromessenger"):"mp-weixin"===getPlatformInfo(),checkIsAlipayEnv=()=>checkIsBrowserEnv()?getUserAgentInfo().includes("alipay"):"mp-alipay"===getPlatformInfo(),checkIsAppEnv=()=>void 0!==typeof e.uni&&((!e?.uni||"function"==typeof e?.uni?.sendNativeEvent)&&(!(!e?.uni||"function"!=typeof e?.uni?.sendNativeEvent)||void 0!==e?.uni&&Object.prototype.hasOwnProperty.call(e?.uni,"sendNativeEvent"))),checkUNIReady=()=>window?.uni&&"function"==typeof window?.uni?.webView?.postMessage,checkWeChatReady=()=>"function"==typeof window?.wx?.chooseImage,checkAliPayReady=()=>"function"===Boolean(window?.my)?.chooseImage,BaiduToGCJ02=(e,t)=>{const i=52.35987755982988,n=e-.0065,o=t-.006,a=Math.sqrt(n*n+o*o)-2e-5*Math.sin(o*i),s=Math.atan2(o,n)-3e-6*Math.cos(n*i),r=parseFloat(a*Math.cos(s)).toFixed(8),c=parseFloat(a*Math.sin(s)).toFixed(8);return logMsgFormat("BaiduToGCJ02",`已完成百度坐标系转换成国测坐标系的转换,转换后的值:lng:${r}, lat:${c}`),{lng:r,lat:c}},wgsToGCJ02=(e,t)=>{let i=null;try{i=Math.PI}catch(e){logMsgFormat("wgsToGCJ02","获取PI值失败","error",e)}if(n=t,(o=e)<72.004||o>137.8347||n<.8293||n>55.8271)return{lat:t,lon:e};var n,o;const a=6378245,s=.006693421622965943,r=((e,t)=>{let i=2*e-100+3*t+.2*t*t+.1*e*t+.2*Math.sqrt(Math.abs(e));return i+=2*(20*Math.sin(6*e*Math.PI)+20*Math.sin(2*e*Math.PI))/3,i+=2*(20*Math.sin(t*Math.PI)+40*Math.sin(t/3*Math.PI))/3,i+=2*(160*Math.sin(t/12*Math.PI)+320*Math.sin(t*Math.PI/30))/3,i})(e-105,t-35),c=((e,t)=>{let i=300+e+2*t+.1*e*e+.1*e*t+.1*Math.sqrt(Math.abs(e));return i+=2*(20*Math.sin(6*e*Math.PI)+20*Math.sin(2*e*Math.PI))/3,i+=2*(20*Math.sin(e*Math.PI)+40*Math.sin(e/3*Math.PI))/3,i+=2*(150*Math.sin(e/12*Math.PI)+300*Math.sin(e/30*Math.PI))/3,i})(e-105,t-35),l=t/180*Math.PI;let u=Math.sin(l);u=1-s*u*u;const d=Math.sqrt(u),g=t+180*r/(a*(1-s)/(u*d)*Math.PI),m=e+180*c/(a/d*Math.cos(l)*Math.PI);return{lat:parseFloat(g).toFixed(8),lng:parseFloat(m).toFixed(8)}},replaceCoordinate=e=>{const{dinateType:t,lat:i,lng:n,address:o}=e;if(logMsgFormat("replaceCoordinate",`坐标转换开始:${t}`,"log"),"BD09"===t){const e=BaiduToGCJ02(n,i);return{destinationName:o,destinationLongitude:e?.lng,destinationLatitude:e?.lat}}if("WGS84"===t){const e=wgsToGCJ02(n,i);return{destinationName:o,destinationLongitude:e?.lng,destinationLatitude:e?.lat}}return logMsgFormat("replaceCoordinate",`坐标系转换异常,未在匹配规则内,传递的坐标系类型:${t}`,"log"),{destinationLatitude:e?.lat||"",destinationLongitude:e?.lng||"",destinationName:e?.address||"",dinateType:e?.dinateType||"",address:e?.address||"",name:e?.name||""}},a=[{isCustomEv:!0,eventName:"authFace",uniEvName:"Auth_face",description:"人脸识别功能",nativeEvName:"faceAuth",reqDataFormat:e=>{logMsgFormat("authFace",`执行人脸验证,参数信息:${JSON.stringify(e)}`);const{name:t,certNo:i,appId:n,sign:o,created:a,nonce:s}=e;return t&&i&&n&&o&&a&&s?e:(logMsgFormat("authFace","缺少必要参数:name, certNo, appId, sign, created, nonce","error","缺少必要参数"),!1)},resDataFormat:e=>({isSuccess:Boolean(e),certifyId:e}),resErrorFormat:e=>"harmony"===getPlatformInfo().toLowerCase()?{isSuccess:!1,errorMsg:e}:e},{isCustomEv:!0,eventName:"startNavigation",uniEvName:"Start_navigation",description:"目的地导航",nativeEvName:"start_navigation",reqDataFormat:e=>{let t={};const{dinateType:i,lat:n,lng:o,address:a,destinationLatitude:s,destinationLongitude:r}=e;return s&&r?e:(logMsgFormat("replaceCoordinate",`坐标系值:LAT:${n},LNG:${o}`,"log"),t=i&&"GCJ02"!==i?replaceCoordinate(e):{destinationLatitude:n,destinationLongitude:o,destinationName:a},logMsgFormat("replaceCoordinate",`转换后值:LAT:${t.destinationLatitude},LNG:${t.destinationLongitude}`,"log"),t)}},{isWindowEv:!0,eventName:"getLoginStatus",uniEvName:"Auth_checkLogin",description:"获取登录状态",nativeEvName:"CallNativeMethodGetUserInfo",resDataFormat:e=>{const t=deepClone(e);return{logined:1===Number(t?.isLogin)}},resErrorFormat:()=>({logined:!1})},{isWindowEv:!0,eventName:"getLoginUserInfo",uniEvName:"Auth_getUserInfo",description:"获取登录用户数据信息",nativeEvName:"CallNativeMethodGetUserInfo",resDataFormat:e=>deepClone(e),resErrorFormat:()=>({isSuccess:!1})},{isCustomEv:!0,eventName:"getAuthToken",uniEvName:"Auth_getToken",description:"获取授权token",nativeEvName:"get_token",resDataFormat:e=>{try{const t=deepClone(e);return{token:t?.token,isSuccess:Boolean(t?.token)}}catch(t){return{token:e?.token,isSuccess:Boolean(e?.token)}}},resErrorFormat:()=>({isSuccess:!1})},{isWindowEv:!0,eventName:"getAccessLink",uniEvName:"Auth_getAccessLink",nativeEvName:"CallNativeMethodGetAccessLink",description:"获取授权链接",resDataFormat:e=>"ios"===getPlatformInfo().toLowerCase()?{isSuccess:!0,accessLink:e}:deepClone(e),resErrorFormat:()=>({isSuccess:!1})},{moduleName:"image",eventName:"chooseImg",uniEvName:"Image_choose",nativeEvName:"chooseImage",browserEvName:"chooseImage",description:"选择本地图片",reqDataFormat:e=>{const{count:t,sizeType:i,sourceType:n,isCircleCrop:o}=e||{};return{count:t||9,sizeType:i||["original","compressed"],sourceType:n||["album"],isCircleCrop:o||!1}},resDataFormat:e=>deepClone(e),bResDataFormat:e=>{const{tempFiles:t}=e,i=[];for(let e in t){const{name:n,path:o,size:a,type:s}=t[e];i.push({name:n,path:o,size:a,type:s})}return{resultObj:i,isSuccess:!0,message:"选择图片功能操作完成"}}},{moduleName:"image",eventName:"imgPreview",uniEvName:"Image_preview",nativeEvName:"previewImage",browserEvName:"previewImage",description:"执行图片预览"},{moduleName:"image",eventName:"imgUpload",uniEvName:"Image_upload",nativeEvName:"uploadImage",description:"执行图片上传",resDataFormat:e=>deepClone(e),resErrorFormat:e=>e},{eventName:"imgDownload",uniEvName:"Image_download",nativeEvName:"",browserEvName:"downloadImage",description:"执行图片下载"},{eventName:"fileUpload",uniEvName:"File_upload",nativeEvName:"",description:"执行文件上传"},{moduleName:"file",eventName:"fileDownload",uniEvName:"File_download",nativeEvName:"downloadFile",description:"执行文件下载",resDataFormat:e=>({isSuccess:Boolean(e),resultObj:{path:e}})},{moduleName:"file",eventName:"filePreview",uniEvName:"File_preview",nativeEvName:"previewFile",description:"执行文件预览"},{moduleName:"file",eventName:"openLocalFile",uniEvName:"File_openLocal",nativeEvName:"openLocalFile",description:"执行打开本地文件"},{moduleName:"file",eventName:"chooseLocalFile",uniEvName:"File_chooseLocal",nativeEvName:"chooseLocalFile",browserEvName:"chooseFile",description:"选择本地文件",resDataFormat:e=>deepClone(e)},{moduleName:"file",eventName:"openThirdFile",uniEvName:"File_openThirdParty",nativeEvName:"openFileWithThirdParty",description:"执行打开第三方文件"},{eventName:"openApp",uniEvName:"Util_openApp",nativeEvName:"",description:"打开APP"},{isCustomEv:!0,eventName:"openXybApp",uniEvName:"Util_openXYBMiniApp",nativeEvName:"jumpToMiniApp",description:"打开湘易办融合APP小程序",reqDataFormat:e=>{if(checkIsAppWebviewEnv()){const{pageUrl:t}=e;return{...e,path:t}}return e}},{eventName:"postMsgToOtherApp",uniEvName:"Util_postMessageToXYBMiniApp",nativeEvName:"",description:"发送消息给其他小程序"},{isWindowEv:!0,eventName:"scanCode",uniEvName:"Scan_code",description:"扫描二维码",browserEvName:"scanQRCode",nativeEvName:"CallNativeMethodScanQRCode",resDataFormat:e=>({text:e}),bReqDataFormat:e=>({...e,needResult:1}),bResDataFormat:e=>({text:e?.resultStr||""})},{moduleName:"system",eventName:"getAppInfo",nativeEvName:"getAppInfo",description:"获取应用信息",uniEvName:"System_getAppInfo",resDataFormat:e=>deepClone(e)},{moduleName:"util",eventName:"copyToClipboard",uniEvName:"Util_clipboardData",nativeEvName:"clipboardData",description:"复制内容到剪切板",reqDataFormat:e=>({text:e}),resDataFormat:e=>checkIsAppWebviewEnv()?{isSuccess:Boolean(e)}:{isSuccess:!0}},{moduleName:"util",eventName:"getCacheSize",uniEvName:"Util_getCacheSize",nativeEvName:"getCacheSize",description:"获取缓存大小",resDataFormat:e=>deepClone(e)},{moduleName:"util",eventName:"clearCache",uniEvName:"Util_clearCache",nativeEvName:"clearCache",description:"执行缓存清除",resDataFormat:()=>({isSuccess:!0}),resErrorFormat:()=>({isSuccess:!1})},{moduleName:"telephone",eventName:"callPhone",uniEvName:"Util_callDesignateNumber",nativeEvName:"call",description:"拨打电话",browserEvName:"makePhoneCall",reqDataFormat:e=>"object"==typeof parseResData(e)?parseResData(e):checkIsAppWebviewEnv()?{phoneCode:"+86",phoneNumber:String(e).replace("+86","")}:{text:e}},{eventName:"forbidScreenShot",uniEvName:"Util_forbidScreenShot",nativeEvName:"",description:"执行禁止截屏"},{eventName:"setScreenLight",uniEvName:"Util_setScreenLight",nativeEvName:"",description:"设置屏幕是否常亮",reqDataFormat:e=>({idleTimerValue:e})},{eventName:"sendMatterId",uniEvName:"Param_MatterID",nativeEvName:"",description:"执行页面事件ID上报",reqDataFormat:e=>({matterID:e})},{isWindowEv:!0,description:"获取位置信息",eventName:"getLocationInfo",uniEvName:"Util_getLocationInformation",nativeEvName:"CallNativeMethodGetLocationInformation",resDataFormat:e=>{const{location:t,data:i}=e;let n=deepClone(e);return t&&(n=deepClone(e?.location)),i&&(n=deepClone(e?.data)),{isSuccess:!0,location:n}},nativeResFormat:e=>{const{location:t,data:i}=e;let n=deepClone(e);return t&&(n=deepClone(e?.location)),i&&(n=deepClone(e?.data)),{isSuccess:!0,location:n}},resErrorFormat:()=>({isSuccess:!1,location:{}})},{eventName:"checkPermission",uniEvName:"Auth_matterHandleAuthority",nativeEvName:"",description:"检查事项权限",reqDataFormat:e=>({matterCode:e})},{eventName:"showComment",uniEvName:"Util_jumpToComment",nativeEvName:"",description:"打开评价弹窗"},{isWindowEv:!0,description:"打开微信小程序",eventName:"openWechatMiniApp",uniEvName:"Util_openWechatMiniProgram",nativeEvName:"CallNativeMethodJumpToWechatMiniProgram",reqDataFormat:e=>{if(checkIsAppWebviewEnv()){const t={};for(let i in e)t[i]=String(e[i]);return JSON.stringify(t)}return e}},{isWindowEv:!0,description:"打开支付宝小程序",eventName:"openAliPayMiniApp",uniEvName:"Util_openAlipayMiniProgram",nativeEvName:"CallNativeMethodJumpToAliPay",reqDataFormat:e=>checkIsAppWebviewEnv()?JSON.stringify(e):e},{eventName:"showMenuPanel",uniEvName:"menu_present",nativeEvName:"",description:"显示菜单面板"},{isCustomEv:!0,eventName:"addCalendarEvent",uniEvName:"Util_addCalendarEvent",nativeEvName:"addCalendarEvent",description:"添加日历日程"},{isCustomEv:!0,eventName:"deleteCalendarEvent",uniEvName:"Util_deleteCalendarEvent",nativeEvName:"deleteCalendarEvent",description:"删除日历日程"},{isCustomEv:!0,eventName:"queryCalendarEvent",uniEvName:"Util_queryCalendarEvent",nativeEvName:"queryCalendarEvent",description:"查询日历日程"}],s="0.0.31",r={custom(e,t){logMsgFormat("custom",`通过custom调用${e}事件`);const i=a?.find(t=>t?.nativeEvName===e||t?.eventName===e);return new Promise((n,o)=>{const{reqDataFormat:a}=i||null,s=i||{isCustomEv:!0,moduleName:"custom",eventName:"call",description:"通过Custom调用的C2事件",nativeEvName:e};if(!checkIsAppWebviewEnv())return void n({code:-1,msg:"非APP环境的Webview环境,不支持该功能"});const r=a?a(t):t;this.executeSendMsgToApp({moduleName:"custom",eventName:"call",actionName:e,isCustomEv:!0,dataInfo:r,resolveInfo:n,evConfig:s})})}},supZero=e=>Number(e)>9?e:`0${e}`,getCurrentDateTime=()=>{const e=new Date;return`${e.getFullYear()}-${supZero(e.getMonth()+1)}-${supZero(e.getDate())} ${supZero(e.getHours())}:${supZero(e.getMinutes())}:${supZero(e.getSeconds())}`},c={trackStack:[],anaSDKLoadTimes:0,locationInfo:{},isProdEnv:!1,track(e="",t={}){if(e){if(t)return checkIsBrowserEnv()&&!this.anaSDKInit?(this.trackStack.push({id:getUUID(),eventID:e,eventPro:t}),void logMsgFormat("track","埋点上报插件初始化未完成,本次数据在插件初始化后自动上报","log")):void this.executeTrack(e,t);logMsgFormat("track","埋点数据上报失败","error","请传入埋点数据")}else logMsgFormat("track","埋点数据上报失败","error","请传入埋点事件")},async executeTrack(e="",t={}){if("object"==typeof e)return void await this.track(e?.eventID,e?.eventPro);const i=await this.initTrackParams(t);if(logMsgFormat("track",`执行埋点数据上报,事件名称:${e},事项编码:${i.code},是否上报到生产环境:${this.isProdEnv},完整埋点数据:${JSON.stringify(i)}`,"log"),checkIsBrowserEnv()&&xybAgent?.AnalysysAgent)return logMsgFormat("track","通过浏览器插件执行埋点数据上报","log"),void window.xybAgent.AnalysysAgent.track(e,i);if(checkIsAppEnv())try{logMsgFormat("track",`埋点数据:${JSON.stringify(i)},埋点ID:${e}`,"log"),uni.sendNativeEvent("Analysis_common",{eventID:e,eventPro:i})}catch(e){logMsgFormat("track","执行数据埋点功能异常","error",e)}},trackSDKInit(e){return new Promise((t,i)=>{checkIsBrowserEnv()||(logMsgFormat("initTrack","非浏览器环境无需使用init执行初","error"),t(!0)),this.anaSDKInsert?this.configAnaSDK(e,t):mountScriptFile("https://mobile.zwfw.hunan.gov.cn:8088/AnalysysAgent_JS_SDK.min.js","极光").then(()=>{window.AnalysysAgent&&(xybAgent.AnalysysAgent=window.AnalysysAgent,this.anaSDKInsert=!0,this.configAnaSDK(e,t))})})},configAnaSDK(e,t){const i="800c298f0c42c94c",n="40d556c15f872084";let o=location?.host?.includes("hunan.gov.cn")?i:n;if("object"==typeof e)o=n;else{const t={production:i,development:n},a=[i,n];(t[e]||a.includes(e))&&(o=t[e]?t[e]:e)}this.isProdEnv=o===i,logMsgFormat("configAnaSDK",`配置信息:${JSON.stringify(e)},是否为生产环境:${this.isProdEnv},上报的key值:${o}`),checkIsBrowserEnv()?(window.xybAgent.AnalysysAgent&&(window.xybAgent.AnalysysAgent.init({appkey:o,uploadURL:"https://mobile.zwfw.hunan.gov.cn:8088/aurora-api"}),logMsgFormat("configAnaSDK","xybAgent已初始化完成,可正常执行埋点操作","log"),this.anaSDKInit=!0,this.isInit=!0,this.checkTrackStack(),t(!0)),!Boolean(window.xybAgent.AnalysysAgent)&&this.anaSDKLoadTimes<10&&setTimeout(()=>this.trackSDKInit(t),300),!Boolean(window.xybAgent.AnalysysAgent)&&this.anaSDKLoadTimes>=10&&(logMsgFormat("configAnaSDK","xybAgent初始化失败","error","请检查app key、uploadURL是否正确"),t(!1))):t(!1)},async initTrackParams(e={}){const{code:t,name:i,aff_city_code:n,aff_city_name:o,unit_code:a,area_code:s,unit_name:r,is_finish:c,category:l,user_id:u,miniAppCode:d,$url_domain:g}=e,m=this.getVisitSource(),h=this.getPageSource(),v=await this.getPositionInfo();return{code:t||void 0,name:i||void 0,aff_city_code:n||void 0,aff_city_name:o||void 0,unit_code:a||void 0,area_code:s||void 0,unit_name:r||void 0,is_finish:c||void 0,category:l||void 0,user_id:u||void 0,miniAppCode:d||void 0,$url_domain:g||void 0,curr_time:getCurrentDateTime(),source:m,page_source:h,location:v}},getVisitSource(){if(!checkIsBrowserEnv()){const e=uni?.getSystemInfoSync(),{uniPlatform:t}=e||{};return"mp-weixin"===t?"wx":"mp-alipay"===t?"alipay":"app"}return checkIsWeChatEnv()?"wx":checkIsAlipayEnv()?"alipay":"app"},checkTrackStack(){logMsgFormat("checkTrackStack","执行埋点数据堆栈检测","log");deepClone(this.trackStack).forEach(e=>{const{eventID:t,eventPro:i,id:n}=e;logMsgFormat("checkTrackStack",`执行id值为${n} 的埋点数据再次上报`,"log"),this.track(t,i);const o=this.trackStack.findIndex(e=>e.id===n);o>-1&&this.trackStack.splice(o,1)})},getPageSource(){let e=null;e=checkIsBrowserEnv()?location.href:decodeURIComponent(getCurrentPagePath().path);const t=e?.includes("source=");if(!t)return"click";const i=e.split("source=")[1];let n="click";return n=i.includes("&")?i.split("&")[0]:i,["copy","share","click","search"].includes(n)?n:"click"},async getPositionInfo(){if(!this.locationInfo?.province)try{const{location:e}=await this.getLocationInfo()||{};this.locationInfo=e||""}catch(e){logMsgFormat("getLocationInfo","获取位置信息异常","error",e),this.locationInfo={}}return JSON.stringify(this.locationInfo)}},l={weChatSDKReady:!1,weChatConfigReady:!1,initWeChatSDK(){if(logMsgFormat("initWeChatSDK","初始化weChat SDK"),checkIsBrowserEnv())return checkWeChatReady()?(this.weChatConfigReady=!0,this.initWeChatConfig(),void logMsgFormat("initWeChatSDK","WeChat SDK已挂载完成,无需二次挂载")):void mountScriptFile("https://res.wx.qq.com/open/js/jweixin-1.6.0.js","微信").then(()=>{checkWeChatReady()&&(this.weChatSDKReady=!0,this.initWeChatConfig(),logMsgFormat("initWeChatSDK","WeChat SDK挂载完成"))});logMsgFormat("initWeChatSDK","非浏览器环境,无需执行挂载动作")},initWeChatConfig(){if(this.weChatConfigReady)return;const{timestamp:e,appId:t,noncestr:i,signature:n}=this.wxSignParam;if(e&&t&&i&&n)return logMsgFormat("initWeChatConfig",`业务侧自行执行加签动作,加签参数:${JSON.stringify(this.wxSignParam)}`),void this.executeWeChatSign(this.wxSignParam);const o=new XMLHttpRequest;o.open("POST","https://xybfw.zwfw.hunan.gov.cn/gateway3/api/auth/wechat/v1/getJsapiTicket",!0),o.setRequestHeader("Content-Type","application/json"),o.onload=()=>{if(o.status>=200&&o.status<300){const e=JSON.parse(o.responseText);logMsgFormat("initWeChatConfig",`返回结果是否包含签名信息:${JSON.stringify(e?.data?.nonceStr)}`);const t=e?.data||{};return t.appId="wx44bc5d5e34ac0c01",logMsgFormat("getLocationInWeChat","获取签名信息完成"),void this.executeWeChatSign(t)}logMsgFormat("initWeChatConfig",`请求错误,状态码:${o.status}`)},o.onerror=()=>{logMsgFormat("initWeChatConfig","网络错误,无法链接到服务器")},o.send(JSON.stringify({url:window.location.href.split("#")[0]}))},executeWeChatSign(e){window?.wx?.config({appId:e?.appId,timestamp:e?.timestamp,nonceStr:e?.noncestr,signature:e?.signature,jsApiList:["getLocation","openLocation","chooseImage","chooseFile","scanQRCode","previewImage","downloadImage"]}),window?.wx.ready(()=>{this.weChatConfigReady=!0,logMsgFormat("executeWeChatSign",`微信配置初始化已完成,执行获取定位堆栈检测,需执行的定位堆栈数量:${this.locationStackList.length}`),this.checkLocationEvStack()}),window?.wx.error(e=>{throw logMsgFormat("executeWeChatSign","微信配置初始化失败","error",e),new Error(e)})}},u={initMobileBridgeGlobalConfig(){const e=getPlatformInfo();logMsgFormat("initMobileBridgeGlobalConfig",`开始初始化移动端桥链接配置,访问设备类型:${e}`),window.c2={},"ios"===e&&this.initIOSCallbackEvConfig(),"android"===e&&this.initAndroidCallbackEvConfig(),logMsgFormat("initMobileBridgeGlobalConfig","初始化移动端桥链接配置完成"),window.CreatorJsBridge=window.c2},initIOSCallbackEvConfig(){try{const e=this;window.c2.iOS={},window.c2.iOS.callJS=function(){window?.c2.iOS?.callJSCallback||(window.c2.iOS.callJSCallback={}),logMsgFormat("initIOSCallbackEvConfig",`开始处理IOS设备回调事件,回调数据:${JSON.stringify(arguments)}`),e.IOSCallbackEvFormat(arguments[0])}}catch(e){logMsgFormat("initIOSCallbackEvConfig","初始化IOS回调事件配置异常","error",e)}},initAndroidCallbackEvConfig(){window.c2.sendDataWarpToWeb=(e,t,i)=>{e(i)}},IOSCallbackEvFormat(e){const{returnValue:t,funcName:i}=e;let n=this.base64Decode(t);n=parseResData(n),logMsgFormat("IOSCallbackEvFormat",`IOS设备回调事件处理开始,回调数据:${JSON.stringify(n)}, 格式:${typeof n}`);const o=i.split("_a")[0],a=i.replace(o,""),s=this.iosCallBackList.find(e=>e.id===o);if(!s)return;const{resolveInfo:r,configInfo:c}=s,{resDataFormat:l,resErrorFormat:u}=c;if(a.includes("onFail")&&u)return n=u({isSuccess:!1,errorMsg:deepClone(t)}),void r(n);l&&(n=l(n)),logMsgFormat("IOSCallbackEvFormat",`IOS设备回调事件处理完成,返回数据:${JSON.stringify(n)}`),r(n);const d=this.iosCallBackList.findIndex(e=>e.id===o);this.iosCallBackList.splice(d,1)},base64Decode(e){let t,i,n,o,a,s,r,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",l="",u=0;for(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");u<e.length;)o=c.indexOf(e.charAt(u++)),a=c.indexOf(e.charAt(u++)),s=c.indexOf(e.charAt(u++)),r=c.indexOf(e.charAt(u++)),t=o<<2|a>>4,i=(15&a)<<4|s>>2,n=(3&s)<<6|r,l+=String.fromCharCode(t),64!=s&&(l+=String.fromCharCode(i)),64!=r&&(l+=String.fromCharCode(n));return l=this._utf8_decode(l),l},_utf8_decode(e){let t="",i=0,n=0,o=0,a=0;for(;i<e.length;)n=e.charCodeAt(i),n<128?(t+=String.fromCharCode(n),i++):n>191&&n<224?(a=e.charCodeAt(i+1),t+=String.fromCharCode((31&n)<<6|63&a),i+=2):(a=e.charCodeAt(i+1),o=e.charCodeAt(i+2),t+=String.fromCharCode((15&n)<<12|(63&a)<<6|63&o),i+=3);return t},checkMobileModuleBack(e,t,i){const n=i?"custom":e,o=`${i?"call":t}Callback`;window.c2.hasOwnProperty(n)||(window.c2[n]={}),window.c2[n].hasOwnProperty(o)||(window.c2[n][o]={})}};let d=null,g=null,m=null;checkIsAppEnv()?(d=uni&&uni?.requireNativePlugin?uni?.requireNativePlugin("GCUniPlugin-RUM"):null,g=uni&&uni?.requireNativePlugin?uni?.requireNativePlugin("GCUniPlugin-Tracer"):null,m=uni&&uni?.getSystemInfoSync?uni.getSystemInfoSync().platform:null):logMsgFormat("请求插件初始化","未找到uni对象","warn");const h={defaults:{headers:{},baseURL:""},interceptor:{request:null,response:null},requestOb:!1,request(e={}){return new Promise((t,i)=>{let n=deepClone(e);if(!this.interceptor.request||"function"!=typeof this.interceptor.request||e.ignore||(n=this.interceptor.request(e),n))if(checkIsAppEnv()&&this.requestOb&&Boolean(d)&&Boolean(g))try{logMsgFormat("request","走服务监控平台的请求配置","log"),this.executeCloudObRequest(n,t,i)}catch(e){logMsgFormat("request","走服务监控平台的请求配置失败","error",e)}else logMsgFormat("request","走uni的请求配置","log"),this.executeNormalRequest(n,t,i);else t(!1)})},executeCloudObRequest(e,t,i){let n=getUUID();const o=this.checkCloudObRequestHeader(e,n);if(!o)return;const{traceHeader:a,filter:s}=o;let r,c,l;d.startResource({key:n}),uni.request({url:`${this.defaults.baseURL}${e.url}`,method:e.method,header:a,data:e.data,timeout:e.timeout,withCredentials:e?.withCredentials||void 0,success:i=>{if(logMsgFormat("executeCloudObRequest",`接口:${e.url},请求成功`,"log"),s||(r=i.header,c=i.data.toString(),l=i.statusCode),isEmpty(e.success)||e.success(i),this.interceptor.response&&"function"==typeof this.interceptor.response&&!e.ignore){const e=this.interceptor.response(i);return void t(e)}t(i)},fail:t=>{logMsgFormat("executeCloudObRequest",`接口:${e.url},请求失败`,"error",t),s||(c=t?.errMsg),isEmpty(e?.fail)||e.fail(t),i(t)},complete:()=>{if(logMsgFormat("executeCloudObRequest",`接口:${e.url},请求完成`,"log"),!s){logMsgFormat("executeCloudObRequest",`无filter配置的数据信息::::key值:${n};URL地址:${e.url};`),d.stopResource({key:n});const t={url:`${this.defaults.baseURL}${e.url}`,httpMethod:e.method,requestHeader:a,responseHeader:r,responseBody:c,resourceStatus:l};d.addResource({key:n,content:t})}Boolean(e?.complete)&&e?.complete()}})},checkCloudObRequestHeader(e,t){let i;isEmpty(e?.filterPlatform)?(logMsgFormat("executeCloudObRequest",`options.filterPlatform:${e.filterPlatform}`,"log"),i=!1):(i=e?.filterPlatform?.includes(m),logMsgFormat("executeCloudObRequest",`platform:${e.filterPlatform}`,"log")),logMsgFormat("executeCloudObRequest",`rum:${d},tracer:${g}`,"log");let n={};return i||(n=g?.getTraceHeader({key:t,url:e.url})),logMsgFormat("executeCloudObRequest",`是否读取到【tracer】插件配置:${Boolean(g)},是否读取到【rum】插件配置:${Boolean(d)}`,"log"),d&&g?(n=Object.assign({},n,e.header),n=Object.assign({},n,this.defaults.headers),{traceHeader:n,filter:i}):(logMsgFormat("executeCloudObRequest","请配置服务监控平台原生插件","log"),!1)},executeNormalRequest(e,t,i){const{url:n,header:o,data:a,method:s}=e||{},r=Object.assign({},this.defaults.headers,o);uni.request({url:`${this.defaults.baseURL}${n}`,header:r,data:a,method:s,withCredentials:e?.withCredentials||void 0,success:i=>{if(logMsgFormat("normalRequest",`接口:${n},请求成功`,"log"),this.interceptor.response&&"function"==typeof this.interceptor.response&&!e.ignore){const e=this.interceptor.response(i);return void t(e)}t(i)},fail:e=>{logMsgFormat("normalRequest",`接口:${n},请求异常`,"error",e),i(e)}})}},v="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},p={resetMenuBtnConfig(){logMsgFormat("hideNativeBtn","隐藏原生APP分享、评价按钮","log");const e={share:{show:!1},comment:{show:!1},favorite:{show:!0}};try{this.menuBtnConfig(e),this.pageChangeEv(t=>{if(!this.autoUpdate)return void logMsgFormat("resetMenuBtnConfig","业务侧设置不自动重置胶囊按钮,中断配置动作");const{options:i}=t,{xybModuleCode:n}=i||{};if(n&&this.autoConfigMenuBtn)return logMsgFormat("resetMenuBtnConfig",`页面拦截事件生效 自动设置原生APP分享、评价按钮,配置信息:${JSON.stringify(t)}`,"log"),void this.menuBtnConfig({share:{show:!0,code:n,type:4},comment:{show:!0,code:n,type:4},favorite:{show:!0}});logMsgFormat("resetMenuBtnConfig","页面拦截事件生效 自动重置原生APP分享、评价按钮配置信息","log"),this.menuBtnConfig(e)})}catch(e){console.log(e),logMsgFormat("resetMenuBtnConfig","配置APP的胶囊按钮清单显示失败,请检查参数是否正确","error",e)}},pageChangeEv(e){if(void 0===typeof v?.uni)return void logMsgFormat("pageChangeEv","无法在非uni环境下执行该API任务");["navigateTo","redirectTo","switchTab","reLaunch","navigateBack","onBackPress"].forEach(t=>{try{uni.addInterceptor(t,{invoke(i){try{const{url:n}=i;let o={options:{},path:null,route:null},a=decodeURIComponent(n);o.path=a,o.route=a.split("?")[0],a?.includes("xybModuleCode=")&&(console.log(`🚀当前页面路径信息:${a}`),o.options.xybModuleCode=getUrlParam("xybModuleCode",a)),a?.includes("?")&&(o.route=a.split("?")[0]),t?.includes("Back")&&(o=getCurrentPagePath(t?.includes("Back"))),logMsgFormat("pageChangeEv",`页面路径发生了变化,当前页面路径:${o.path}`,"log"),"function"==typeof e&&e(o)}catch(e){console.log("🚀 错误信息:::::",e),logMsgFormat("pageChangeEv","拦截路径变化时发生了异常","error",e)}return!0}})}catch(e){logMsgFormat("pageChangeEv","执行页面变化拦截异常","error",e)}})},menuBtnConfig(e={}){logMsgFormat("menuBtnConfig",`配置APP胶囊按钮清单显示,配置信息:${JSON.stringify(e)}`,"log");let t=!0;for(let i in e){if("object"!=typeof e[i]){t=!1,logMsgFormat("menuBtnConfig","配置参数错误","error","请传入一个Object配置数据");break}}if(t)if(checkIsWebviewEnv())this.miniAppH5SendMsgToApp(null,"menuBtnConfig",e,"配置APP的胶囊按钮清单显示");else if(!checkIsBrowserEnv()&&uni&&uni?.sendNativeEvent)try{logMsgFormat("menuBtnConfig","开始执行配置APP胶囊按钮清单显示","log"),uni?.sendNativeEvent("Util_MiniAppConfigMenu",e)}catch(e){logMsgFormat("menuBtnConfig","配置APP的胶囊按钮清单显示时发生异常","error",e)}else logMsgFormat("menuBtnConfig","配置APP胶囊按钮清单显示功能无法在非UNI环境运行","log")}},f={executeBrowserEvent(e,t={},i={},n={}){const o=checkIsWeChatEnv()?"微信小程序":checkIsAlipayEnv()?"支付宝小程序":"浏览器",{eventName:a,description:s,browserEvName:r,bResDataFormat:c,bReqDataFormat:l,reqDataFormat:u}=n,d="startNavigation"===a?i:t;logMsgFormat("normalEvDataTransition",`开始调用${o}嵌套H5的能力,事件名称:${a},入参:${JSON.stringify(d)},配置信息:${JSON.stringify(n)}`);const g={authFace:"executeAuthFaceInBrowser",getLocationInfo:"executeGetLocationInBrowser",startNavigation:"startNavigationInBrowser",fileUpload:"executeFileUploadInBrowser",chooseImg:"executeImageChooseInBrowser",executePayment:"executePayment"}[a];if(g)return void this[g](e,d,n);if(!r)return void e({isSuccess:!1,code:-1,message:`非常抱歉,${s}功能无法在当前环境中使用`});const m=u?u(t):l?l(t):t;checkIsAlipayEnv()||checkIsWeChatEnv()?this.executeMPBrowserEvent(e,r,t,a):this.executeNativeBrowserEv(e,r,m,c)},executeMPBrowserEvent(e,t,i,n){logMsgFormat("executeMPBrowserEvent",`配置信息:${JSON.stringify(i)}`);let o=deepClone(i);logMsgFormat("executeMPBrowserEvent",`配置信息:${JSON.stringify(o)}`),o.success=e=>{logMsgFormat("executeMPBrowserEvent",`执行:${n}事件完成,返回结果:${JSON.stringify(e)}`)},o.fail=e=>{logMsgFormat("executeMPBrowserEvent",`执行:${n}事件失败,错误信息:${JSON.stringify(e)}`)},logMsgFormat("executeWeChatBrowserEv",`${n},配置信息:${JSON.stringify(o)}`),checkIsWeChatEnv()?window.wx[t](o):window.my[t](o)},executeNativeBrowserEv(e,t){let i=deepClone(t);i.success=function(e){console.log(e)},i.fail=function(e){console.error(e)},window.uni[e](i)}},w={executePayment(e={}){const{orderToken:t,reqURL:i,returnUrl:n}=e;if(logMsgFormat("executePayment",`配置信息:${JSON.stringify(e)}`),!t||!i||!n)return void logMsgFormat("executePayment","缺失必要参数,请按照API文档进行检查");if(!checkIsAlipayEnv()&&!checkIsWeChatEnv())return void logMsgFormat("executePayment","目前仅支持微信小程序/支付宝小程序下使用");const o=`/pages/epay/openPay?orderToken=${encodeURIComponent(t)}&serverRequestUrl=${encodeURIComponent(i)}&returnUrl=${encodeURIComponent(n)}`;checkIsWeChatEnv()?openWeChatMiniApp(o):checkIsAlipayEnv()?openAlipayMiniApp(o):logMsgFormat("executePayment","当前环境不支持湘易办支付能力")}},y={executeAuthFaceInBrowser(e,t={},i={}){const hashChangeEv=function(t){let i=getUrlParam("faceKey",window?.location?.href);if(logMsgFormat("executeAuthFaceInBrowser",`获取到的faceKey参数值::::${i}`),!window?.location?.href.includes("faceKey"))return;const n={isSuccess:Boolean(i),certifyId:i?`MINI_${i}`:null,portrait:null,errorMsg:Boolean(i)?null:"人脸验证失败,请检查参数信息"};window.removeEventListener("hashchange",hashChangeEv),setTimeout(()=>{logMsgFormat("executeAuthFaceInBrowser",`执行验证结果回抛给业务侧:${JSON.stringify(n)}`),e(n)},100)};window.addEventListener("hashchange",hashChangeEv);const n=encodeURIComponent(window.location.href),{certNo:o,name:a}=t;let s=`/pages/sdk/sdk?redirectUrl=${n}&type=authFace&idCard=${encodeURIComponent(o)}&name=${a}`;checkIsWeChatEnv()?openWeChatMiniApp(s,e):checkIsAlipayEnv()?openAlipayMiniApp(s,e):(logMsgFormat("executeAuthFaceInBrowser","当前环境不支持人脸识别","warning"),e({isSuccess:!1,code:-1,message:"当前环境下不支持人脸识别验证功能"}))}},S={locationCheck:!1,locationStackList:[],checkLocationEvStack(){this.locationStackList.forEach(e=>{this.getLocationInWeChat(e.resolveInfo,e.id)})},executeGetLocationInBrowser(e){logMsgFormat("executeGetLocationInBrowser","在微信/支付宝浏览器中获取定位信息"),checkIsAlipayEnv()?this.getLocationInAliPay(e):checkIsWeChatEnv()?this.getLocationInWeChat(e):e({code:-1,isSuccess:!1,message:"当前环境无法支持位置信息获取,请检查是否为湘易办相关环境"})},getLocationInWeChat(e,t){return this.weChatConfigReady?this.locationCheck?(logMsgFormat("getLocationInWeChat","已缓存签名信息,直接调用对应API获取位置信息"),void this.executeGetWeChatLocation(e,t)):void this.executeGetWeChatLocation(e,t):(logMsgFormat("getLocationInWeChat","微信SDK尚未初始化完毕,先行进行堆栈,待微信SDK初始化后,统一调用"),void this.locationStackList.push({id:getUUID(),resolveInfo:e}))},executeGetWeChatLocation(e,t){logMsgFormat("executeGetWeChatLocation","在微信环境中获取位置信息");let i=null;if(t){const e=this.locationStackList.findIndex(e=>e.id===t);i=this.locationStackList[e].resolveInfo}window?.wx?.getLocation({type:"gcj02",success:n=>{this.locationCheck=!0,logMsgFormat("executeGetWeChatLocation",`获取到的坐标信息:${JSON.stringify(n)}`);const o={isSuccess:!0,location:{longitude:n?.longitude,latitude:n?.latitude},message:"微信小程序下只提供经纬度"};if(t)return i(o),void this.clearLocationEventStack(t);e(o)},fail:n=>{const o={isSuccess:!1,message:"调用微信获取位置信息失败,请查看控制台"};if(logMsgFormat("executeGetWeChatLocation",`调用微信获取位置信息失败,信息是:${JSON.stringify(n)}`),t)return i(o),void this.clearLocationEventStack(t);e(o)}})},clearLocationEventStack(e){const t=this.locationStackList.findIndex(t=>t.id===e);-1!==t&&this.locationStackList.splice(t,1)},getLocationInAliPay(e){logMsgFormat("getLocationInAliPay","在支付宝环境中获取位置信息"),window?.my?.getLocation({success:t=>{logMsgFormat("getLocationInAliPay",`获取到的坐标信息:${JSON.stringify(t)}`),e({isSuccess:!0,location:{longitude:t?.longitude,latitude:t?.latitude},message:"支付宝小程序只提供经纬度"})},fail:t=>{logMsgFormat("getLocationInAliPay","获取位置信息失败","error",t),e({code:-1,isSuccess:!1,message:"获取位置信息失败"})}})}},N={executeImageChooseInBrowser(e,t,i){const{count:n,sizeType:o,sourceType:a}=t,{bResDataFormat:s}=i;if(checkIsWeChatEnv()||checkIsAlipayEnv()){const t={count:n||9,mediaType:["image"],sizeType:o||["original","compressed"],sourceType:a||["album"],success:t=>{t?.success&&e(s?s(t):t),logMsgFormat("executeChooseImageInWeChat",`微信/支付宝环境下执行选择图片API执行完毕,结果:${JSON.stringify(t)}`)},fail:e=>{logMsgFormat("executeChooseImageInWeChat",`微信/支付宝环境下执行选择图片API执行失败,结果:${JSON.stringify(e)}`)}};return void(checkIsAlipayEnv()?window.my.chooseImage(t):window.wx.chooseImage(t))}e({isSuccess:!1,code:-1,message:"目前环境暂不支持,敬请期待"})}},C={navigationCheck:!1,startNavigationInBrowser(e,t={}){const i=encodeURIComponent(window?.location?.href),{lat:n,lng:o,address:a,name:s,dinateType:r}=t;let c=`/pages/sdk/sdk?redirectUrl=${i}&type=navigation&latitude=${n}&longitude=${o}&address=${a}&name=${s}`;if(r&&"GCJ02"!==r){const e=replaceCoordinate(t),{destinationLatitude:n,destinationLongitude:o}=e;c=`/pages/sdk/sdk?redirectUrl=${i}&type=navigation&latitude=${n}&longitude=${o}&address=${a}&name=${s}`}logMsgFormat("startNavigationInBrowser",`跳转目标URL:${c}`),checkIsWeChatEnv()?openWeChatMiniApp(c,e):checkIsAlipayEnv()?openAlipayMiniApp(c,e):(logMsgFormat("startNavigationInBrowser","导航功能无法在当前环境下执行"),e({isSuccess:!1,code:-1,message:"导航功能无法在当前环境下执行,请检查是否为微信/支付宝小程序的浏览器环境中"}))}},I={wvInfo:null,isHarmony:!1,isCheckDevice:!1,async initMessage(...e){const t=e[0];await this.checkDeviceInfo(),await this.initVMInfo(e[2]),checkIsBrowserEnv()?window.addEventListener("message",e=>{logMsgFormat("initMessage",`浏览器webview接收到的消息内容,${JSON.stringify(e)}`,"log"),this.getMsgFromH5(e)}):(logMsgFormat("initMessage",`非浏览器中的webview接收到的消息内容,${JSON.stringify(t)}`,"log"),this.getMsgFromH5(t))},checkDeviceInfo(){this.isCheckDevice||(this.isCheckDevice=!0,uni.sendNativeEvent("System_getAppInfo",{},e=>{this.isHarmony=e?.platform?.toLowerCase().includes("harmony")}))},initVMInfo(e){if(!this.wvInfo)if(this.isHarmony)this.wvInfo=uni.createWebviewContext("webview",e);else try{this.wvInfo=e,e?.$scope?.$getAppWebview()&&(this.wvInfo=e.$scope.$getAppWebview().children()[0])}catch(e){logMsgFormat("initMessage","初始化消息模块,是否包含wvInfo:"+typeof this.wvInfo?.evalJS)}},getMsgFromH5(e={}){let t=this.getMsgDataFromH5(e);const{origin:i}=e||{},{href:n}=location||{};if(checkIsBrowserEnv()&&n?.includes(i))return!1;const{isH5Send:o,methodName:a,methodData:s}=t||{};return!!o&&(a?null==s?(logMsgFormat("getMsgFromH5","请传入需要执行的事件数据","warn"),!1):(logMsgFormat("getMsgFromH5",`需要执行的事件名称【${a}】,需要执行的事件数据【${JSON.stringify(s)}】,是否为H5发送的消息【${o}】`,"log"),void(this[a]?this.executeH5MethodName(a,t):logMsgFormat("getMsgFromH5",`【${a}】事件不存在`,"warn"))):(logMsgFormat("getMsgFromH5","请传入需要执行的事件名称","warn"),!1))},executeH5MethodName(e,t){const{msgId:i,methodData:n}=t;try{const t=this[e].toString();if(logMsgFormat("executeH5MethodName",`【${e}】方法定义:${t}`,"log"),t.includes("Promise"))return void this[e](n).then(t=>{logMsgFormat("executeH5MethodName",`${e}方法执行结果:${JSON.stringify(t)}`,"log");let n=t;try{n=JSON.parse(t)}catch(e){logMsgFormat("executeH5MethodName","强制给数据进行序列化失败","error",e)}this.postMsgToH5({msgId:i,sourceMethod:e,resultInfo:n,isWebviewSend:!0,resultMessage:`执行${e}方法完成`})}).catch(t=>{logMsgFormat("executeH5MethodName",`${e}方法执行失败`,"error",t),this.postMsgToH5({msgId:i,sourceMethod:e,resultInfo:null,isWebviewSend:!0,resultMessage:`执行${e}方法失败,具体错误信息,请查看控制台`})});this[e](n),this.postMsgToH5({msgId:i,sourceMethod:e,resultInfo:null,isWebviewSend:!0,resultMessage:`执行${e}方法完成`})}catch(t){logMsgFormat("getMsgFromH5",`${e}方法执行失败`,"error",t)}},postMsgToH5(e){const t=JSON.stringify(e);if(logMsgFormat("postMsgToH5",`消息内容:${t}`,"log"),checkIsBrowserEnv()){logMsgFormat("postMsgToH5","父页面运行在浏览器","log");document.querySelector("iframe").contentWindow.postMessage(JSON.stringify(t),"*")}else try{logMsgFormat("postMsgToH5","父页面运行在非浏览器","log"),this.wvInfo.evalJS(`getMessageFromWebview('${t}')`)}catch(e){logMsgFormat("postMsgToH5","执行浏览器的webview回传异常","error",e)}},getMsgDataFromH5(e){let t=null;const{data:i}=e;try{t=checkIsBrowserEnv()?i?.data?.arg?i?.data?.arg:i?.data?i.data:i:e.detail?.data[0]}catch(e){return logMsgFormat("getMsgDataFromH5","处理消息内容时发生异常","error",e),!1}return logMsgFormat("getMsgDataFromH5",`获取到的消息内容:${JSON.stringify(t)}`,"log"),t}},_parseFunction=(e,t,i)=>{if(logMsgFormat("_parseFunction",`${JSON.stringify(e)}`),"function"==typeof e)return i[t]=e,void(e="[Function]::"+t);if("object"!=typeof e)return;let n=null;for(let o in e)switch(typeof e[o]){case"object":n=t?t+"_"+o:o,_parseFunction(e[o],n,i);break;case"function":n=t?t+"_"+o:o,i[n]=e[o],e[o]="[Function]::"+n}},_getType=e=>{let t=0;return"string"==typeof e?t=1:"number"==typeof e?t=2:"boolean"==typeof e?t=3:"function"==typeof e?t=4:e instanceof Array?t=6:"object"==typeof e&&(t=5),t},E={appH5SendMsgToApp(e,t={},i={}){const{isWindowEv:n,moduleName:o,nativeEvName:a,isCustomEv:s}=t;if(n)return void this.h5SendMsgToAppByWindow(e,t,i);const r=s?"custom":o,c=s?"call":a;this.executeSendMsgToApp({resolveInfo:e,moduleName:r,eventName:c,actionName:a,dataInfo:i,isCustomEv:s,evConfig:t})},executeSendMsgToApp(e={}){const{moduleName:t,eventName:i,actionName:n,dataInfo:o,resolveInfo:a,isCustomEv:s,evConfig:r}=e||{},{description:c}=r,l=this;try{let e={};if(("object"==typeof o?Object.keys(o):[]).length>0&&(e=deepClone(o)),s){const t=deepClone(e);logMsgFormat("webviewSendMsgToApp",`${c}功能在是通过custom.call的方式调用,需要重新处理入参`),e.params=t,e.action=n}logMsgFormat("webviewSendMsgToApp",`${c}的完整参数:${JSON.stringify(e)}`),this.initEventCallbackEv(a,e,r);const u=function(){return l.formatBridgeData(window.c2[t][`${i}Callback`],arguments)}(e);logMsgFormat("webviewSendMsgToApp",`${c}功能在${getPlatformInfo()}的Webview环境下执行,调用参数:${JSON.stringify(u)}`),this.h5SendMsgToAppByBrowser(a,r,u)}catch(e){console.log(`🚀发送消息给APP出现错误,错误信息:${e},${JSON.stringify(e)}`),logMsgFormat("webviewSendMsgToApp",`${c}执行数据处理失败`,"error",e)}},initEventCallbackEv(e,t,i={}){const{description:n,resDataFormat:o,resErrorFormat:a}=i;t.onSuccess=function(t){logMsgFormat("webviewSendMsgToApp",`${n}功能在App的Webview环境下执行完成`),e(o?o(t):t)},t.onFail=function(t){const i=deepClone(t);logMsgFormat("webviewSendMsgToApp",`${n}功能在App的Webview环境下执行失败,收到的回调数据:::${JSON.stringify(i)}`),e(a?a(i):o?o(i):i)}},formatBridgeData(e,t){try{const i=Math.random().toString(32).slice(2),n=[];for(let o in t){const a=i+"_a"+o,s=t[o],r={};!1===/OpenHarmony ([5-9])|OpenHarmony (\d{2})/i.test(navigator.userAgent)&&_parseFunction(s,a,r);for(let t in r)e[t]=r[t],this.C2ReceiveQueue.push(e);n.push({type:_getType(s),name:a,value:s})}return logMsgFormat("formatBridgeData",`格式化后的参数:${JSON.stringify(n)}`),{params:n,id:i}}catch(e){logMsgFormat("formatBridgeData","消息通讯数据格式化异常","error",e)}},h5SendMsgToAppByWindow(e,t={},i={}){const{nativeEvName:n,description:o,resDataFormat:a}=t,s=getPlatformInfo(),r=`${n}Back`;let c=i;logMsgFormat("h5SendMsgToAppByWindow",`给【${s}】APP发送【${o}】-【${n}】事件调用,回调函数名称:【${r}】`,"log"),window[r]=t=>{let i=t;logMsgFormat("h5SendMsgToAppByWindow",`收到【${s}】APP发送的${o}事件调用的回调值:${JSON.stringify(i)},回调数据类型::${typeof i}`,"log"),i=parseResData(i),e(a?a(i):i)},setTimeout(()=>{"ios"!==s.toLowerCase()?"android"!==s.toLowerCase()?window.harmony[n](c):window.android[n](c):window.webkit.messageHandlers[n].postMessage(c)},100)},h5SendMsgToAppByBrowser(e,t={},i={}){const n=getPlatformInfo();logMsgFormat("h5SendMsgToAppByBrowser",`给【${n}】APP发送【${t.nativeEvName}】事件调用,入参:${JSON.stringify(i)}`,"log");const{nativeEvName:o,moduleName:a,isCustomEv:s}=t,{id:r,params:c}=i;if("android"!==n)return"ios"===n?(this.iosCallBackList.push({id:r,resolveInfo:e,configInfo:t}),void this.h5SendMsgToIOS(r,a,o,c,s)):void("harmony"===n&&this.h5SendMsgToHarmony(r,a,o,c,s));this.h5SendMsgToAndroid(r,a,o,c,s)},h5SendMsgToAndroid(e,t,i,n,o){const a={id:e,module:o?"custom":t,method:o?"call":i,parameters:n};return logMsgFormat("h5SendMsgToAndroid",`发送给安卓APP的消息:${JSON.stringify(a)}`),JSON.parse(window.AndroidFunction.callAndroidFun(JSON.stringify(a)))},h5SendMsgToIOS(e,t,i,n,o){const a={id:e,module:o?"custom":t,method:o?"call":i,parameters:n};return logMsgFormat("h5SendMsgToIOS",`发送给IOS APP的消息:${JSON.stringify(a)}`),JSON.parse(prompt(JSON.stringify(a)))},h5SendMsgToHarmony(e,t,i,n,o){const a={id:e,module:o?"custom":t,method:o?"call":i,parameters:n};return logMsgFormat("h5SendMsgToHarmony",`发送给鸿蒙APP的消息:${JSON.stringify(a)}`),JSON.parse(window.harmonyFunction.callHarmonyFun(a))}},M={msgList:[],msgStack:[],async miniAppH5SendMsgToApp(e,t,i){try{logMsgFormat("miniAppH5SendMsgToApp",`发送消息给webview:${t}`,"log");const n=await this.sendMsgToMiniApp({methodName:t,methodData:i});e(n?.resultInfo)}catch(i){logMsgFormat("miniAppH5SendMsgToApp",`执行${t}失败`,"error",i),e({isSuccess:!1,message:"执行事件失败,详情查看控制台"})}},sendMsgToMiniApp(e){return new Promise((t,i)=>{logMsgFormat("postMsgToWebview",`消息内容:${JSON.stringify(e)}`,"log");const{methodName:n,methodData:o}=e||{};if(!n)return void logMsgFormat("postMsgToWebview","请传入要调用的事件名称","warn");if(!o)return void logMsgFormat("postMsgToWebview","请传入要调用事件的数据信息","warn");const a=getUUID(),s={data:{msgId:a,isH5Send:!0,...e}};if(this.msgList.push({id:a,resolveInfo:t,rejectInfo:i}),logMsgFormat("postMsgToWebview",`发送消息给父容器页面:${JSON.stringify(s)}`,"log"),!this.uniSDKInit)return logMsgFormat("postMsgToWebview","SDK尚未初始化完成,先行执行堆栈","log"),void this.msgStack.push({id:getUUID(),msgContent:s,resolve:t,reject:i});uni?.webView?.postMessage?uni.webView.postMessage(s):uni?.postMessage(s)}).catch(e=>{logMsgFormat("postMsgToWebview","发生异常","error",e)})}},$={getMessageFromWebview(e,t=!1){let i={};try{i=t?e:e?.data||"{}",i=parseResData(i)}catch(e){logMsgFormat("getMessageFromWebview","解析数据异常","error",e)}if(logMsgFormat("getMessageFromWebview",`是否为webview发送的消息内容:${i?.isWebviewSend},消息内容:${JSON.stringify(i)}`,"log"),!i?.isWebviewSend)return;const{msgId:n}=i,o=this.msgList.findIndex(e=>e.id===n);if(-1===o)return;const a=this.msgList[o],{resolveInfo:s}=a;s(i),this.msgList.splice(o,1)}},nativeResDataFormatFac=(e,t={},i="")=>{"location"!==i?"authFace"===i&&((e,t)=>{t.isSuccess?formatResponseData(e,t):uni.sendNativeEvent("System_getAppInfo",{},i=>{i.platform.toLowerCase().includes("harmony")&&(t.isSuccess=t?.result||Boolean(t.certifyId)),formatResponseData(e,t)})})(e,t):((e,t)=>{logMsgFormat("locationCoordinate","执行原生端坐标系值转换处理");const{location:i}=t;uni.sendNativeEvent("System_getAppInfo",{},n=>{const{platform:o}=n;if(logMsgFormat("locationCoordinate",`设备类型:${o},转换前的坐标值:lat:${i.latitude},lng:${i.longitude}`),o.toLowerCase().includes("harmony")){const e=wgsToGCJ02(i?.longitude,i?.latitude);t.location.longitude=e?.lng,t.location.latitude=e?.lat}if(o.toLowerCase().includes("android")){const e=BaiduToGCJ02(i?.longitude,i?.latitude);t.location.longitude=e?.lng,t.location.latitude=e?.lat}logMsgFormat("locationCoordinate",`转换后的坐标值:lat:${i.latitude},lng:${i.longitude}`),formatResponseData(e,t)})})(e,t)},A=["getLoginUserInfo","getAuthToken"];let b=new class XybAgent{version="";isInit=!1;isWebviewPage=!1;anaSDKInit=!1;uniSDKInit=!1;alipayInit=!1;iosCallBackList=[];C2ReceiveQueue=[];autoUpdate=!0;wxSignParam={};autoConfigMenuBtn=!0;constructor(e,t){this.version=e,this.isInit=!1,this.isWebviewPage=t,this.iosCallBackList=[],this.initModuleMethod(),this.initSDKAPI(),this.initDefaultConfig()}initModuleMethod(){objIntegration(r,this),objIntegration(c,this),objIntegration(l,this),objIntegration(u,this),objIntegration(h,this),objIntegration(w,this),objIntegration(f,this),objIntegration(S,this),objIntegration(p,this),objIntegration(I,this),objIntegration(N,this),objIntegration(E,this),objIntegration(y,this),objIntegration(C,this),objIntegration($,this),objIntegration(M,this)}init(e){return new Promise(async(t,i)=>{if(logMsgFormat("init","SDK初始化任务执行处理"),!checkIsBrowserEnv())return logMsgFormat("init","当前环境非浏览器环境,无需执行初始化动作","warn"),void i("当前环境非浏览器环境,无需执行初始化动作");checkIsWebviewEnv()&&this.initWebviewMsgFormat(),this.initSDKScriptFile(),await this.trackSDKInit(e),t(this.isInit)})}initSDKScriptFile(){logMsgFormat("initSDKScriptFile","挂载第三方SDK脚本文件"),this.initUNISDK(),checkIsWeChatEnv()?this.initWeChatSDK():this.initAliPaySDK()}initWebviewMsgFormat(){logMsgFormat("initWebviewMsgFormat","初始化被嵌套的页面消息通讯","log"),checkIsBrowserEnv()?(window.addEventListener("message",e=>{logMsgFormat("initWebviewMsgFormat","浏览器消息处理","log"),this.getMessageFromWebview(e)}),window.getMessageFromWebview=e=>{logMsgFormat("initWebviewMsgFormat","事件注入消息处理","log"),this.getMessageFromWebview(e,!0)}):logMsgFormat("initWebviewMsgFormat","该API仅支持在被webview嵌套的H5页面中使用","error","")}initUNISDK(){checkIsBrowserEnv()&&(checkUNIReady()?this.uniSDKInit=!0:mountScriptFile("https://mobile.zwfw.hunan.gov.cn:8088/uni.webview.1.5.6.js","UNI").then(()=>{checkUNIReady()&&(this.uniSDKInit=!0,logMsgFormat("initUNISDK","UNI Webview SDK 挂载完成"))}))}initAliPaySDK(){logMsgFormat("initAliPaySDK","初始化Alipay SDK"),checkIsBrowserEnv()&&(checkAliPayReady()||checkIsAlipayEnv()&&mountScriptFile("https://appx/web-view.min.js","支付宝").then(e=>{checkAliPayReady()&&(this.alipayInit=!0,logMsgFormat("initAliPaySDK","Alipay SDK挂载完成"))}))}initSDKAPI(){checkIsAppWebviewEnv()&&(logMsgFormat("initSDKAPI","App的Webview环境,初始化C2调用链的回调函数"),this.initMobileBridgeGlobalConfig()),logMsgFormat("initSDKAPI","开始初始化SDK API"),a.forEach(e=>{const{eventName:t,moduleName:i,nativeEvName:n,isCustomEv:o}=e;if((i&&n||o)&&checkIsAppWebviewEnv()&&(logMsgFormat("initSDKAPI",`初始化C2调用链的回调函数:${t}`),this.checkMobileModuleBack(i,n,o)),!A?.includes(t))try{this[t]=t=>new Promise(i=>{this.normalEvDataTransition(i,t,e)})}catch(e){logMsgFormat("initSDKAPI","执行API初始化挂载异常","error",e)}})}normalEvDataTransition(e,t={},i={}){const{eventName:n,description:o,reqDataFormat:a}=i||{},s=getPlatformInfo();let r=t;if(a&&(r=a(t)),r)return checkIsAppWebviewEnv()?(logMsgFormat("normalEvDataTransition",`开始调用APP的嵌套H5能力,事件名称:${n},入参:${JSON.stringify(r)}`),void this.appH5SendMsgToApp(e,i,r)):checkIsMiniAppBrowserEnv()?(logMsgFormat("normalEvDataTransition",`开始调用小程序/H5嵌套的H5能力,事件名称:${n},入参:${JSON.stringify(r)}`),void this.miniAppH5SendMsgToApp(e,n,r,o)):checkIsWeChatEnv()||checkIsAlipayEnv()?(logMsgFormat("normalEvDataTransition",`微信/支付宝小程序事件调用,事件名称:${n}, 入参:${JSON.stringify(r)}`),void this.executeBrowserEvent(e,r,t,i)):void this.executeEvByNative(e,r,i);logMsgFormat(n,`给【${s}】APP发送【${o}】-【${n}】事件失败,请检查数据格式是否正确`,"error")}executeEvByNative(e,t,i){const{description:n,uniEvName:o,eventName:a,nativeResFormat:s}=i;if(!checkIsAppEnv())return logMsgFormat("executeEvByNative","非湘易办APP环境,无法执行该API"),void e({code:-1,isSuccess:!1,message:"非湘易办APP环境,无法执行该API"});try{logMsgFormat("executeEvByNative",`开始调用原生${n}的能力,API名称:${o},格式化前的参数信息:${JSON.stringify(t)}`),uni.sendNativeEvent(o,t,t=>{logMsgFormat("executeEvByNative",`调用原生${n}的能力完成,结果:${JSON.stringify(t)}`,"log");let i=t;s&&(i=s(i),logMsgFormat("executeEvByNative",`调用原生${n}的能力完成,格式化后的结果:${JSON.stringify(i)}`,"log")),"fileDownload"===a&&t.isSuccess&&formatResponseData(e,i),"getLocationInfo"!==a?"authFace"!==a?"fileDownload"!==a&&formatResponseData(e,i):nativeResDataFormatFac(e,i,"authFace"):nativeResDataFormatFac(e,i,"location")})}catch(t){e({isSuccess:!1,message:`${n}API执行失败,具体错误信息请查看控制台`}),logMsgFormat("executeEvByNative",`${n}API执行异常`,"error",t)}}initDefaultConfig(){logMsgFormat("initDefaultConfig","默认胶囊按钮配置执行初始化处理"),this.autoUpdate?this.resetMenuBtnConfig():logMsgFormat("initDefaultConfig","业务侧配置无需自动重置胶囊按钮,不至于页面切换事件监听")}}(s,checkIsWebviewEnv());checkIsBrowserEnv()&&(window.xybAgent=b);export{b as default};
package/dist/index.umd.js CHANGED
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).xybAgent=t()}(this,function(){"use strict";const e=(e="",t="",i="log",n="")=>{const o={error:"错误",warn:"警告",info:"提示",log:"日志"}[i]||"日志",a=JSON.stringify(n);console.log(`\n=============🚀START - V${F} 🚀=============\n【事件名称】:${e} \n【日志类型】:${o} \n【日志信息】:${t} ${"error"===i?`【错误信息】:${JSON.stringify(a)}`:""} \n==============🚀END🚀==============`),console.log("")},t=(t={})=>{if("function"==typeof t)return e("deepClone","数据类型为function,无法执行深拷贝,请检查","error"),t;try{return JSON.parse(JSON.stringify(t))}catch(i){return e("deepClone","执行数据深拷贝异常","error",i),t}},i=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}),n=(e={},t={})=>{for(let i in e)t[i]=e[i]},o=(t=!1)=>{let i={route:null,path:null,options:{}};try{const e="function"==typeof getCurrentPages?getCurrentPages():[],n=[];for(let t in e)n.push({route:e[t].route,path:e[t].$page?.fullPath,options:e[t].$page?.options});const o=n?.length||0;if(o){const e=n[o-1],a=n[o-2];i=(t?a:e)||{}}}catch(t){e("getCurrentPagePath","获取页面信息失败","error",t)}return i},a=e=>{try{return JSON.parse(e)}catch(t){return e}},s=(t={},i={})=>{let n=i;try{n=a(i)}catch(t){e("formatResponseData","格式化失败","error",t),n=i}t(n)},r=e=>null==e,c=(e="",t="")=>{let i=t||window?.location?.href;if(i=decodeURIComponent(i),i?.includes(e)){let t=i.split(`${e}=`)[1];return t?.includes("&")&&(t=t.split("&")[0]),t}return""},l=(e="",t="")=>{if(e)return new Promise(t=>{const i=document.createElement("script");i.src=e,i.onload=t,document.head.appendChild(i)})},u=(t,i)=>{window?.my?.navigateTo({url:t,fail:t=>{e("openAlipayMiniApp","跳转失败,请检查配置信息","error",t),i({code:-1,isSuccess:!1,message:"跳转失败,请检查配置信息"})}})},d=(t,i)=>{window.wx?.miniProgram?.navigateTo({url:t,fail:t=>{e("executeAuthFaceInBrowser","跳转失败,请检查配置信息","error",t),i({code:-1,isSuccess:!1,message:"跳转失败,请检查配置信息"})}})},m="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};let g={finished:!1,result:!1},h={finished:!1,result:!1},v={finished:!1,result:!1},p={finished:!1,result:!1};const f=()=>y()?navigator.userAgent.toLowerCase():"",w=()=>{const e=f();return/android/i.test(e)?"android":/iphone|ipad|ipod|mac/i.test(e)&&!window.MSStream?"ios":/windows phone/i.test(e)?"windows":"harmony"},y=()=>window&&document,S=()=>{if(p.finished)return p.result;if(p.finished=!0,!y())return p.result=!1,!1;const t=f();return p.result=t.includes("uni-app"),e("checkIsMiniAppBrowserEnv",`当前是否为小程序的浏览器环境:${p.result}`),p.result},N=()=>{const{finished:t,result:i}=g;return t?i:(g.result=(()=>{if(v.finished)return v.result;if(v.finished=!0,!y())return v.result=!1,!1;const t=f();return v.result=t.includes("xybwebcomponent")||t.includes("uni-app"),e("checkIsXybBrowserEnv",`当前是否为湘易办浏览器环境:${v.result}`),v.result})()||S(),g.finished=!0,e("checkIsWebviewEnv",`当前是否为Webview环境:${g.result}`),g.result)},C=()=>{const{finished:t,result:i}=h;if(t)return i;if(h.finished=!0,!y())return h.result=!1,!1;const n=f();return h.result=n.includes("xybwebcomponent")&&!n.includes("uniminiapp"),e("checkIsAppWebviewEnv",`当前是否为APP的Webview环境:${h.result}`),h.result},I=()=>y()?f().includes("micromessenger"):"mp-weixin"===w(),M=()=>y()?f().includes("alipay"):"mp-alipay"===w(),E=()=>void 0!==typeof m.uni&&((!m?.uni||"function"==typeof m?.uni?.sendNativeEvent)&&(!(!m?.uni||"function"!=typeof m?.uni?.sendNativeEvent)||void 0!==m?.uni&&Object.prototype.hasOwnProperty.call(m?.uni,"sendNativeEvent"))),$=()=>window?.uni&&"function"==typeof window?.uni?.webView?.postMessage,A=()=>"function"==typeof window?.wx?.chooseImage,b=()=>"function"===Boolean(window?.my)?.chooseImage,P=(t,i)=>{const n=52.35987755982988,o=t-.0065,a=i-.006,s=Math.sqrt(o*o+a*a)-2e-5*Math.sin(a*n),r=Math.atan2(a,o)-3e-6*Math.cos(o*n),c=parseFloat(s*Math.cos(r)).toFixed(8),l=parseFloat(s*Math.sin(r)).toFixed(8);return e("BaiduToGCJ02",`已完成百度坐标系转换成国测坐标系的转换,转换后的值:lng:${c}, lat:${l}`),{lng:c,lat:l}},x=(t,i)=>{let n=null;try{n=Math.PI}catch(t){e("wgsToGCJ02","获取PI值失败","error",t)}if(o=i,(a=t)<72.004||a>137.8347||o<.8293||o>55.8271)return{lat:i,lon:t};var o,a;const s=6378245,r=.006693421622965943,c=((e,t)=>{let i=2*e-100+3*t+.2*t*t+.1*e*t+.2*Math.sqrt(Math.abs(e));return i+=2*(20*Math.sin(6*e*Math.PI)+20*Math.sin(2*e*Math.PI))/3,i+=2*(20*Math.sin(t*Math.PI)+40*Math.sin(t/3*Math.PI))/3,i+=2*(160*Math.sin(t/12*Math.PI)+320*Math.sin(t*Math.PI/30))/3,i})(t-105,i-35),l=((e,t)=>{let i=300+e+2*t+.1*e*e+.1*e*t+.1*Math.sqrt(Math.abs(e));return i+=2*(20*Math.sin(6*e*Math.PI)+20*Math.sin(2*e*Math.PI))/3,i+=2*(20*Math.sin(e*Math.PI)+40*Math.sin(e/3*Math.PI))/3,i+=2*(150*Math.sin(e/12*Math.PI)+300*Math.sin(e/30*Math.PI))/3,i})(t-105,i-35),u=i/180*Math.PI;let d=Math.sin(u);d=1-r*d*d;const m=Math.sqrt(d),g=i+180*c/(s*(1-r)/(d*m)*Math.PI),h=t+180*l/(s/m*Math.cos(u)*Math.PI);return{lat:parseFloat(g).toFixed(8),lng:parseFloat(h).toFixed(8)}},k=t=>{const{dinateType:i,lat:n,lng:o,address:a}=t;if(e("replaceCoordinate",`坐标转换开始:${i}`,"log"),"BD09"===i){const e=P(o,n);return{destinationName:a,destinationLongitude:e?.lng,destinationLatitude:e?.lat}}if("WGS84"===i){const e=x(o,n);return{destinationName:a,destinationLongitude:e?.lng,destinationLatitude:e?.lat}}return e("replaceCoordinate",`坐标系转换异常,未在匹配规则内,传递的坐标系类型:${i}`,"log"),{destinationLatitude:t?.lat||"",destinationLongitude:t?.lng||"",destinationName:t?.address||"",dinateType:t?.dinateType||"",address:t?.address||"",name:t?.name||""}},D=[{isCustomEv:!0,eventName:"authFace",uniEvName:"Auth_face",description:"人脸识别功能",nativeEvName:"faceAuth",reqDataFormat:t=>{e("authFace",`执行人脸验证,参数信息:${JSON.stringify(t)}`);const{name:i,certNo:n,appId:o,sign:a,created:s,nonce:r}=t;return i&&n&&o&&a&&s&&r?t:(e("authFace","缺少必要参数:name, certNo, appId, sign, created, nonce","error","缺少必要参数"),!1)},resDataFormat:e=>({isSuccess:Boolean(e),certifyId:e}),resErrorFormat:e=>"harmony"===w().toLowerCase()?{isSuccess:!1,errorMsg:e}:e},{isCustomEv:!0,eventName:"startNavigation",uniEvName:"Start_navigation",description:"目的地导航",nativeEvName:"start_navigation",reqDataFormat:t=>{let i={};const{dinateType:n,lat:o,lng:a,address:s,destinationLatitude:r,destinationLongitude:c}=t;return r&&c?t:(e("replaceCoordinate",`坐标系值:LAT:${o},LNG:${a}`,"log"),i=n&&"GCJ02"!==n?k(t):{destinationLatitude:o,destinationLongitude:a,destinationName:s},e("replaceCoordinate",`转换后值:LAT:${i.destinationLatitude},LNG:${i.destinationLongitude}`,"log"),i)}},{isWindowEv:!0,eventName:"getLoginStatus",uniEvName:"Auth_checkLogin",description:"获取登录状态",nativeEvName:"CallNativeMethodGetUserInfo",resDataFormat:e=>{const i=t(e);return{logined:1===Number(i?.isLogin)}},resErrorFormat:()=>({logined:!1})},{isWindowEv:!0,eventName:"getLoginUserInfo",uniEvName:"Auth_getUserInfo",description:"获取登录用户数据信息",nativeEvName:"CallNativeMethodGetUserInfo",resDataFormat:e=>t(e),resErrorFormat:()=>({isSuccess:!1})},{isCustomEv:!0,eventName:"getAuthToken",uniEvName:"Auth_getToken",description:"获取授权token",nativeEvName:"get_token",resDataFormat:e=>{try{const i=t(e);return{token:i?.token,isSuccess:Boolean(i?.token)}}catch(t){return{token:e?.token,isSuccess:Boolean(e?.token)}}},resErrorFormat:()=>({isSuccess:!1})},{isWindowEv:!0,eventName:"getAccessLink",uniEvName:"Auth_getAccessLink",nativeEvName:"CallNativeMethodGetAccessLink",description:"获取授权链接",resDataFormat:e=>"ios"===w().toLowerCase()?{isSuccess:!0,accessLink:e}:t(e),resErrorFormat:()=>({isSuccess:!1})},{moduleName:"image",eventName:"chooseImg",uniEvName:"Image_choose",nativeEvName:"chooseImage",browserEvName:"chooseImage",description:"选择本地图片",reqDataFormat:e=>{const{count:t,sizeType:i,sourceType:n,isCircleCrop:o}=e||{};return{count:t||9,sizeType:i||["original","compressed"],sourceType:n||["album"],isCircleCrop:o||!1}},resDataFormat:e=>t(e),bResDataFormat:e=>{const{tempFiles:t}=e,i=[];for(let e in t){const{name:n,path:o,size:a,type:s}=t[e];i.push({name:n,path:o,size:a,type:s})}return{resultObj:i,isSuccess:!0,message:"选择图片功能操作完成"}}},{moduleName:"image",eventName:"imgPreview",uniEvName:"Image_preview",nativeEvName:"previewImage",browserEvName:"previewImage",description:"执行图片预览"},{moduleName:"image",eventName:"imgUpload",uniEvName:"Image_upload",nativeEvName:"uploadImage",description:"执行图片上传",resDataFormat:e=>t(e),resErrorFormat:e=>e},{eventName:"imgDownload",uniEvName:"Image_download",nativeEvName:"",browserEvName:"downloadImage",description:"执行图片下载"},{eventName:"fileUpload",uniEvName:"File_upload",nativeEvName:"",description:"执行文件上传"},{moduleName:"file",eventName:"fileDownload",uniEvName:"File_download",nativeEvName:"downloadFile",description:"执行文件下载",resDataFormat:e=>({isSuccess:Boolean(e),resultObj:{path:e}})},{moduleName:"file",eventName:"filePreview",uniEvName:"File_preview",nativeEvName:"previewFile",description:"执行文件预览"},{moduleName:"file",eventName:"openLocalFile",uniEvName:"File_openLocal",nativeEvName:"openLocalFile",description:"执行打开本地文件"},{moduleName:"file",eventName:"chooseLocalFile",uniEvName:"File_chooseLocal",nativeEvName:"chooseLocalFile",browserEvName:"chooseFile",description:"选择本地文件",resDataFormat:e=>t(e)},{moduleName:"file",eventName:"openThirdFile",uniEvName:"File_openThirdParty",nativeEvName:"openFileWithThirdParty",description:"执行打开第三方文件"},{eventName:"openApp",uniEvName:"Util_openApp",nativeEvName:"",description:"打开APP"},{isCustomEv:!0,eventName:"openXybApp",uniEvName:"Util_openXYBMiniApp",nativeEvName:"jumpToMiniApp",description:"打开湘易办融合APP小程序",reqDataFormat:e=>{if(C()){const{pageUrl:t}=e;return{...e,path:t}}return e}},{eventName:"postMsgToOtherApp",uniEvName:"Util_postMessageToXYBMiniApp",nativeEvName:"",description:"发送消息给其他小程序"},{isWindowEv:!0,eventName:"scanCode",uniEvName:"Scan_code",description:"扫描二维码",browserEvName:"scanQRCode",nativeEvName:"CallNativeMethodScanQRCode",resDataFormat:e=>({text:e}),bReqDataFormat:e=>({...e,needResult:1}),bResDataFormat:e=>({text:e?.resultStr||""})},{moduleName:"system",eventName:"getAppInfo",nativeEvName:"getAppInfo",description:"获取应用信息",uniEvName:"System_getAppInfo",resDataFormat:e=>t(e)},{moduleName:"util",eventName:"copyToClipboard",uniEvName:"Util_clipboardData",nativeEvName:"clipboardData",description:"复制内容到剪切板",reqDataFormat:e=>({text:e}),resDataFormat:e=>C()?{isSuccess:Boolean(e)}:{isSuccess:!0}},{moduleName:"util",eventName:"getCacheSize",uniEvName:"Util_getCacheSize",nativeEvName:"getCacheSize",description:"获取缓存大小",resDataFormat:e=>t(e)},{moduleName:"util",eventName:"clearCache",uniEvName:"Util_clearCache",nativeEvName:"clearCache",description:"执行缓存清除",resDataFormat:()=>({isSuccess:!0}),resErrorFormat:()=>({isSuccess:!1})},{moduleName:"telephone",eventName:"callPhone",uniEvName:"Util_callDesignateNumber",nativeEvName:"call",description:"拨打电话",browserEvName:"makePhoneCall",reqDataFormat:e=>"object"==typeof a(e)?a(e):C()?{phoneCode:"+86",phoneNumber:String(e).replace("+86","")}:{text:e}},{eventName:"forbidScreenShot",uniEvName:"Util_forbidScreenShot",nativeEvName:"",description:"执行禁止截屏"},{eventName:"setScreenLight",uniEvName:"Util_setScreenLight",nativeEvName:"",description:"设置屏幕是否常亮",reqDataFormat:e=>({idleTimerValue:e})},{eventName:"sendMatterId",uniEvName:"Param_MatterID",nativeEvName:"",description:"执行页面事件ID上报",reqDataFormat:e=>({matterID:e})},{isWindowEv:!0,description:"获取位置信息",eventName:"getLocationInfo",uniEvName:"Util_getLocationInformation",nativeEvName:"CallNativeMethodGetLocationInformation",resDataFormat:e=>{const{location:i,data:n}=e;let o=t(e);return i&&(o=t(e?.location)),n&&(o=t(e?.data)),{isSuccess:!0,location:o}},nativeResFormat:e=>{const{location:i,data:n}=e;let o=t(e);return i&&(o=t(e?.location)),n&&(o=t(e?.data)),{isSuccess:!0,location:o}},resErrorFormat:()=>({isSuccess:!1,location:{}})},{eventName:"checkPermission",uniEvName:"Auth_matterHandleAuthority",nativeEvName:"",description:"检查事项权限",reqDataFormat:e=>({matterCode:e})},{eventName:"showComment",uniEvName:"Util_jumpToComment",nativeEvName:"",description:"打开评价弹窗"},{isWindowEv:!0,description:"打开微信小程序",eventName:"openWechatMiniApp",uniEvName:"Util_openWechatMiniProgram",nativeEvName:"CallNativeMethodJumpToWechatMiniProgram",reqDataFormat:e=>{if(C()){const t={};for(let i in e)t[i]=String(e[i]);return JSON.stringify(t)}return e}},{isWindowEv:!0,description:"打开支付宝小程序",eventName:"openAliPayMiniApp",uniEvName:"Util_openAlipayMiniProgram",nativeEvName:"CallNativeMethodJumpToAliPay",reqDataFormat:e=>C()?JSON.stringify(e):e},{eventName:"showMenuPanel",uniEvName:"menu_present",nativeEvName:"",description:"显示菜单面板"},{isCustomEv:!0,eventName:"addCalendarEvent",uniEvName:"Util_addCalendarEvent",nativeEvName:"addCalendarEvent",description:"添加日历日程"},{isCustomEv:!0,eventName:"deleteCalendarEvent",uniEvName:"Util_deleteCalendarEvent",nativeEvName:"deleteCalendarEvent",description:"删除日历日程"},{isCustomEv:!0,eventName:"queryCalendarEvent",uniEvName:"Util_queryCalendarEvent",nativeEvName:"queryCalendarEvent",description:"查询日历日程"}],F="0.0.30",O={custom(t,i){e("custom",`通过custom调用${t}事件`);const n=D?.find(e=>e?.nativeEvName===t||e?.eventName===t);return new Promise((e,o)=>{const{reqDataFormat:a}=n||null,s=n||{isCustomEv:!0,moduleName:"custom",eventName:"call",description:"通过Custom调用的C2事件",nativeEvName:t};if(!C())return void e({code:-1,msg:"非APP环境的Webview环境,不支持该功能"});const r=a?a(i):i;this.executeSendMsgToApp({moduleName:"custom",eventName:"call",actionName:t,isCustomEv:!0,dataInfo:r,resolveInfo:e,evConfig:s})})}},T=e=>Number(e)>9?e:`0${e}`,L=()=>{const e=new Date;return`${e.getFullYear()}-${T(e.getMonth()+1)}-${T(e.getDate())} ${T(e.getHours())}:${T(e.getMinutes())}:${T(e.getSeconds())}`},B={trackStack:[],anaSDKLoadTimes:0,locationInfo:{},isProdEnv:!1,track(t="",n={}){if(t){if(n)return y()&&!this.anaSDKInit?(this.trackStack.push({id:i(),eventID:t,eventPro:n}),void e("track","埋点上报插件初始化未完成,本次数据在插件初始化后自动上报","log")):void this.executeTrack(t,n);e("track","埋点数据上报失败","error","请传入埋点数据")}else e("track","埋点数据上报失败","error","请传入埋点事件")},async executeTrack(t="",i={}){if("object"==typeof t)return void await this.track(t?.eventID,t?.eventPro);const n=await this.initTrackParams(i);if(e("track",`执行埋点数据上报,事件名称:${t},事项编码:${n.code},是否上报到生产环境:${this.isProdEnv},完整埋点数据:${JSON.stringify(n)}`,"log"),y()&&xybAgent?.AnalysysAgent)return e("track","通过浏览器插件执行埋点数据上报","log"),void window.xybAgent.AnalysysAgent.track(t,n);if(E())try{e("track",`埋点数据:${JSON.stringify(n)},埋点ID:${t}`,"log"),uni.sendNativeEvent("Analysis_common",{eventID:t,eventPro:n})}catch(t){e("track","执行数据埋点功能异常","error",t)}},trackSDKInit(t){return new Promise((i,n)=>{y()||(e("initTrack","非浏览器环境无需使用init执行初","error"),i(!0)),this.anaSDKInsert?this.configAnaSDK(t,i):l("https://mobile.zwfw.hunan.gov.cn:8088/AnalysysAgent_JS_SDK.min.js","极光").then(()=>{window.AnalysysAgent&&(xybAgent.AnalysysAgent=window.AnalysysAgent,this.anaSDKInsert=!0,this.configAnaSDK(t,i))})})},configAnaSDK(t,i){const n="800c298f0c42c94c",o="40d556c15f872084";let a=location?.host?.includes("hunan.gov.cn")?n:o;if("object"==typeof t)a=o;else{const e={production:n,development:o},i=[n,o];(e[t]||i.includes(t))&&(a=e[t]?e[t]:t)}this.isProdEnv=a===n,e("configAnaSDK",`配置信息:${JSON.stringify(t)},是否为生产环境:${this.isProdEnv},上报的key值:${a}`),y()?(window.xybAgent.AnalysysAgent&&(window.xybAgent.AnalysysAgent.init({appkey:a,uploadURL:"https://mobile.zwfw.hunan.gov.cn:8088/aurora-api"}),e("configAnaSDK","xybAgent已初始化完成,可正常执行埋点操作","log"),this.anaSDKInit=!0,this.isInit=!0,this.checkTrackStack(),i(!0)),!Boolean(window.xybAgent.AnalysysAgent)&&this.anaSDKLoadTimes<10&&setTimeout(()=>this.trackSDKInit(i),300),!Boolean(window.xybAgent.AnalysysAgent)&&this.anaSDKLoadTimes>=10&&(e("configAnaSDK","xybAgent初始化失败","error","请检查app key、uploadURL是否正确"),i(!1))):i(!1)},async initTrackParams(e={}){const{code:t,name:i,aff_city_code:n,aff_city_name:o,unit_code:a,area_code:s,unit_name:r,is_finish:c,category:l,user_id:u,miniAppCode:d,$url_domain:m}=e,g=this.getVisitSource(),h=this.getPageSource(),v=await this.getPositionInfo();return{code:t||void 0,name:i||void 0,aff_city_code:n||void 0,aff_city_name:o||void 0,unit_code:a||void 0,area_code:s||void 0,unit_name:r||void 0,is_finish:c||void 0,category:l||void 0,user_id:u||void 0,miniAppCode:d||void 0,$url_domain:m||void 0,curr_time:L(),source:g,page_source:h,location:v}},getVisitSource(){if(!y()){const e=uni?.getSystemInfoSync(),{uniPlatform:t}=e||{};return"mp-weixin"===t?"wx":"mp-alipay"===t?"alipay":"app"}return I()?"wx":M()?"alipay":"app"},checkTrackStack(){e("checkTrackStack","执行埋点数据堆栈检测","log");t(this.trackStack).forEach(t=>{const{eventID:i,eventPro:n,id:o}=t;e("checkTrackStack",`执行id值为${o} 的埋点数据再次上报`,"log"),this.track(i,n);const a=this.trackStack.findIndex(e=>e.id===o);a>-1&&this.trackStack.splice(a,1)})},getPageSource(){let e=null;e=y()?location.href:decodeURIComponent(o().path);const t=e?.includes("source=");if(!t)return"click";const i=e.split("source=")[1];let n="click";return n=i.includes("&")?i.split("&")[0]:i,["copy","share","click","search"].includes(n)?n:"click"},async getPositionInfo(){if(!this.locationInfo?.province)try{const{location:e}=await this.getLocationInfo()||{};this.locationInfo=e||""}catch(t){e("getLocationInfo","获取位置信息异常","error",t),this.locationInfo={}}return JSON.stringify(this.locationInfo)}},W={weChatSDKReady:!1,weChatConfigReady:!1,initWeChatSDK(){if(e("initWeChatSDK","初始化weChat SDK"),y())return A()?(this.initWeChatConfig(),void e("initWeChatSDK","WeChat SDK已挂载完成,无需二次挂载")):void l("https://res.wx.qq.com/open/js/jweixin-1.6.0.js","微信").then(()=>{A()&&(this.weChatSDKReady=!0,this.initWeChatConfig(),e("initWeChatSDK","WeChat SDK挂载完成"))});e("initWeChatSDK","非浏览器环境,无需执行挂载动作")},initWeChatConfig(){if(this.weChatConfigReady)return;const t=new XMLHttpRequest;t.open("POST","https://xybfw.zwfw.hunan.gov.cn/gateway3/api/auth/wechat/v1/getJsapiTicket",!0),t.setRequestHeader("Content-Type","application/json"),t.onload=()=>{if(t.status>=200&&t.status<300){const i=JSON.parse(t.responseText);e("initWeChatConfig",`返回结果是否包含签名信息:${JSON.stringify(i?.data?.nonceStr)}`),this.weChatConfigReady=!0;const n=i?.data||{};return e("getLocationInWeChat","获取签名信息完成"),window?.wx?.config({appId:"wx44bc5d5e34ac0c01",timestamp:n?.timestamp,nonceStr:n?.noncestr,signature:n?.signature,jsApiList:["getLocation","openLocation","chooseImage","chooseFile","scanQRCode","previewImage","downloadImage"]}),e("initWeChatConfig",`初始化已完成,执行获取定位堆栈检测,需执行的定位堆栈数量:${this.locationStackList.length}`),void this.checkLocationEvStack()}e("initWeChatConfig",`请求错误,状态码:${t.status}`)},t.onerror=()=>{e("initWeChatConfig","网络错误,无法链接到服务器")},t.send(JSON.stringify({url:window.location.href.split("#")[0]}))}},J={initMobileBridgeGlobalConfig(){const t=w();e("initMobileBridgeGlobalConfig",`开始初始化移动端桥链接配置,访问设备类型:${t}`),window.c2={},"ios"===t&&this.initIOSCallbackEvConfig(),"android"===t&&this.initAndroidCallbackEvConfig(),e("initMobileBridgeGlobalConfig","初始化移动端桥链接配置完成"),window.CreatorJsBridge=window.c2},initIOSCallbackEvConfig(){try{const t=this;window.c2.iOS={},window.c2.iOS.callJS=function(){window?.c2.iOS?.callJSCallback||(window.c2.iOS.callJSCallback={}),e("initIOSCallbackEvConfig",`开始处理IOS设备回调事件,回调数据:${JSON.stringify(arguments)}`),t.IOSCallbackEvFormat(arguments[0])}}catch(t){e("initIOSCallbackEvConfig","初始化IOS回调事件配置异常","error",t)}},initAndroidCallbackEvConfig(){window.c2.sendDataWarpToWeb=(e,t,i)=>{e(i)}},IOSCallbackEvFormat(i){const{returnValue:n,funcName:o}=i;let s=this.base64Decode(n);s=a(s),e("IOSCallbackEvFormat",`IOS设备回调事件处理开始,回调数据:${JSON.stringify(s)}, 格式:${typeof s}`);const r=o.split("_a")[0],c=o.replace(r,""),l=this.iosCallBackList.find(e=>e.id===r);if(!l)return;const{resolveInfo:u,configInfo:d}=l,{resDataFormat:m,resErrorFormat:g}=d;if(c.includes("onFail")&&g)return s=g({isSuccess:!1,errorMsg:t(n)}),void u(s);m&&(s=m(s)),e("IOSCallbackEvFormat",`IOS设备回调事件处理完成,返回数据:${JSON.stringify(s)}`),u(s);const h=this.iosCallBackList.findIndex(e=>e.id===r);this.iosCallBackList.splice(h,1)},base64Decode(e){let t,i,n,o,a,s,r,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",l="",u=0;for(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");u<e.length;)o=c.indexOf(e.charAt(u++)),a=c.indexOf(e.charAt(u++)),s=c.indexOf(e.charAt(u++)),r=c.indexOf(e.charAt(u++)),t=o<<2|a>>4,i=(15&a)<<4|s>>2,n=(3&s)<<6|r,l+=String.fromCharCode(t),64!=s&&(l+=String.fromCharCode(i)),64!=r&&(l+=String.fromCharCode(n));return l=this._utf8_decode(l),l},_utf8_decode(e){let t="",i=0,n=0,o=0,a=0;for(;i<e.length;)n=e.charCodeAt(i),n<128?(t+=String.fromCharCode(n),i++):n>191&&n<224?(a=e.charCodeAt(i+1),t+=String.fromCharCode((31&n)<<6|63&a),i+=2):(a=e.charCodeAt(i+1),o=e.charCodeAt(i+2),t+=String.fromCharCode((15&n)<<12|(63&a)<<6|63&o),i+=3);return t},checkMobileModuleBack(e,t,i){const n=i?"custom":e,o=`${i?"call":t}Callback`;window.c2.hasOwnProperty(n)||(window.c2[n]={}),window.c2[n].hasOwnProperty(o)||(window.c2[n][o]={})}};let _=null,q=null,R=null;E()?(_=uni&&uni?.requireNativePlugin?uni?.requireNativePlugin("GCUniPlugin-RUM"):null,q=uni&&uni?.requireNativePlugin?uni?.requireNativePlugin("GCUniPlugin-Tracer"):null,R=uni&&uni?.getSystemInfoSync?uni.getSystemInfoSync().platform:null):e("请求插件初始化","未找到uni对象","warn");const U={defaults:{headers:{},baseURL:""},interceptor:{request:null,response:null},requestOb:!1,request(i={}){return new Promise((n,o)=>{let a=t(i);if(!this.interceptor.request||"function"!=typeof this.interceptor.request||i.ignore||(a=this.interceptor.request(i),a))if(E()&&this.requestOb&&Boolean(_)&&Boolean(q))try{e("request","走服务监控平台的请求配置","log"),this.executeCloudObRequest(a,n,o)}catch(t){e("request","走服务监控平台的请求配置失败","error",t)}else e("request","走uni的请求配置","log"),this.executeNormalRequest(a,n,o);else n(!1)})},executeCloudObRequest(t,n,o){let a=i();const s=this.checkCloudObRequestHeader(t,a);if(!s)return;const{traceHeader:c,filter:l}=s;let u,d,m;_.startResource({key:a}),uni.request({url:`${this.defaults.baseURL}${t.url}`,method:t.method,header:c,data:t.data,timeout:t.timeout,withCredentials:t?.withCredentials||void 0,success:i=>{if(e("executeCloudObRequest",`接口:${t.url},请求成功`,"log"),l||(u=i.header,d=i.data.toString(),m=i.statusCode),r(t.success)||t.success(i),this.interceptor.response&&"function"==typeof this.interceptor.response&&!t.ignore){const e=this.interceptor.response(i);return void n(e)}n(i)},fail:i=>{e("executeCloudObRequest",`接口:${t.url},请求失败`,"error",i),l||(d=i?.errMsg),r(t?.fail)||t.fail(i),o(i)},complete:()=>{if(e("executeCloudObRequest",`接口:${t.url},请求完成`,"log"),!l){e("executeCloudObRequest",`无filter配置的数据信息::::key值:${a};URL地址:${t.url};`),_.stopResource({key:a});const i={url:`${this.defaults.baseURL}${t.url}`,httpMethod:t.method,requestHeader:c,responseHeader:u,responseBody:d,resourceStatus:m};_.addResource({key:a,content:i})}Boolean(t?.complete)&&t?.complete()}})},checkCloudObRequestHeader(t,i){let n;r(t?.filterPlatform)?(e("executeCloudObRequest",`options.filterPlatform:${t.filterPlatform}`,"log"),n=!1):(n=t?.filterPlatform?.includes(R),e("executeCloudObRequest",`platform:${t.filterPlatform}`,"log")),e("executeCloudObRequest",`rum:${_},tracer:${q}`,"log");let o={};return n||(o=q?.getTraceHeader({key:i,url:t.url})),e("executeCloudObRequest",`是否读取到【tracer】插件配置:${Boolean(q)},是否读取到【rum】插件配置:${Boolean(_)}`,"log"),_&&q?(o=Object.assign({},o,t.header),o=Object.assign({},o,this.defaults.headers),{traceHeader:o,filter:n}):(e("executeCloudObRequest","请配置服务监控平台原生插件","log"),!1)},executeNormalRequest(t,i,n){const{url:o,header:a,data:s,method:r}=t||{},c=Object.assign({},this.defaults.headers,a);uni.request({url:`${this.defaults.baseURL}${o}`,header:c,data:s,method:r,withCredentials:t?.withCredentials||void 0,success:n=>{if(e("normalRequest",`接口:${o},请求成功`,"log"),this.interceptor.response&&"function"==typeof this.interceptor.response&&!t.ignore){const e=this.interceptor.response(n);return void i(e)}i(n)},fail:t=>{e("normalRequest",`接口:${o},请求异常`,"error",t),n(t)}})}},H={resetMenuBtnConfig(){e("hideNativeBtn","隐藏原生APP分享、评价按钮","log");const t={share:{show:!1},comment:{show:!1},favorite:{show:!0}};try{this.menuBtnConfig(t),this.pageChangeEv(i=>{if(!this.autoUpdate)return void e("resetMenuBtnConfig","业务侧设置不自动重置胶囊按钮,中断配置动作");const{options:n}=i,{xybModuleCode:o}=n||{};if(o&&this.autoConfigMenuBtn)return e("resetMenuBtnConfig",`页面拦截事件生效 自动设置原生APP分享、评价按钮,配置信息:${JSON.stringify(i)}`,"log"),void this.menuBtnConfig({share:{show:!0,code:o,type:4},comment:{show:!0,code:o,type:4},favorite:{show:!0}});e("resetMenuBtnConfig","页面拦截事件生效 自动重置原生APP分享、评价按钮配置信息","log"),this.menuBtnConfig(t)})}catch(t){e("resetMenuBtnConfig","配置APP的胶囊按钮清单显示失败,请检查参数是否正确","error",t)}},pageChangeEv(t){if(!uni)return;["navigateTo","redirectTo","switchTab","reLaunch","navigateBack","onBackPress"].forEach(i=>{try{uni.addInterceptor(i,{invoke(n){try{const{url:a}=n;let s={options:{},path:null,route:null},r=decodeURIComponent(a);s.path=r,s.route=r.split("?")[0],r?.includes("xybModuleCode=")&&(console.log(`🚀当前页面路径信息:${r}`),s.options.xybModuleCode=c("xybModuleCode",r)),r?.includes("?")&&(s.route=r.split("?")[0]),i?.includes("Back")&&(s=o(i?.includes("Back"))),e("pageChangeEv",`页面路径发生了变化,当前页面路径:${s.path}`,"log"),"function"==typeof t&&t(s)}catch(t){console.log("🚀 错误信息:::::",t),e("pageChangeEv","拦截路径变化时发生了异常","error",t)}return!0}})}catch(t){e("pageChangeEv","执行页面变化拦截异常","error",t)}})},menuBtnConfig(t={}){e("menuBtnConfig",`配置APP胶囊按钮清单显示,配置信息:${JSON.stringify(t)}`,"log");let i=!0;for(let n in t){if("object"!=typeof t[n]){i=!1,e("menuBtnConfig","配置参数错误","error","请传入一个Object配置数据");break}}if(i)if(N())this.miniAppH5SendMsgToApp(null,"menuBtnConfig",t,"配置APP的胶囊按钮清单显示");else if(!y()&&uni&&uni?.sendNativeEvent)try{e("menuBtnConfig","开始执行配置APP胶囊按钮清单显示","log"),uni?.sendNativeEvent("Util_MiniAppConfigMenu",t)}catch(t){e("menuBtnConfig","配置APP的胶囊按钮清单显示时发生异常","error",t)}else e("menuBtnConfig","配置APP胶囊按钮清单显示功能无法在非UNI环境运行","log")}},K={executeBrowserEvent(t,i={},n={},o={}){const a=I()?"微信小程序":M()?"支付宝小程序":"浏览器",{eventName:s,description:r,browserEvName:c,bResDataFormat:l,bReqDataFormat:u,reqDataFormat:d}=o,m="startNavigation"===s?n:i;e("normalEvDataTransition",`开始调用${a}嵌套H5的能力,事件名称:${s},入参:${JSON.stringify(m)},配置信息:${JSON.stringify(o)}`);const g={authFace:"executeAuthFaceInBrowser",getLocationInfo:"executeGetLocationInBrowser",startNavigation:"startNavigationInBrowser",fileUpload:"executeFileUploadInBrowser",chooseImg:"executeImageChooseInBrowser",executePayment:"executePayment"}[s];if(g)return void this[g](t,m,o);if(!c)return void t({isSuccess:!1,code:-1,message:`非常抱歉,${r}功能无法在当前环境中使用`});const h=d?d(i):u?u(i):i;M()||I()?this.executeMPBrowserEvent(t,c,i,s):this.executeNativeBrowserEv(t,c,h,l)},executeMPBrowserEvent(i,n,o,a){e("executeMPBrowserEvent",`配置信息:${JSON.stringify(o)}`);let s=t(o);e("executeMPBrowserEvent",`配置信息:${JSON.stringify(s)}`),s.success=t=>{e("executeMPBrowserEvent",`执行:${a}事件完成,返回结果:${JSON.stringify(t)}`)},s.fail=t=>{e("executeMPBrowserEvent",`执行:${a}事件失败,错误信息:${JSON.stringify(t)}`)},e("executeWeChatBrowserEv",`${a},配置信息:${JSON.stringify(s)}`),I()?window.wx[n](s):window.my[n](s)},executeNativeBrowserEv(e,i){let n=t(i);n.success=function(e){console.log(e)},n.fail=function(e){console.error(e)},window.uni[e](n)}},j={executePayment(t={}){const{orderToken:i,reqURL:n,returnUrl:o}=t;if(e("executePayment",`配置信息:${JSON.stringify(t)}`),!i||!n||!o)return void e("executePayment","缺失必要参数,请按照API文档进行检查");if(!M()&&!I())return void e("executePayment","目前仅支持微信小程序/支付宝小程序下使用");const a=`/pages/epay/openPay?orderToken=${encodeURIComponent(i)}&serverRequestUrl=${encodeURIComponent(n)}&returnUrl=${encodeURIComponent(o)}`;I()?d(a):M()?u(a):e("executePayment","当前环境不支持湘易办支付能力")}},G={executeAuthFaceInBrowser(t,i={},n={}){const o=function(i){let n=c("faceKey",window?.location?.href);if(e("executeAuthFaceInBrowser",`获取到的faceKey参数值::::${n}`),!window?.location?.href.includes("faceKey"))return;const a={isSuccess:Boolean(n),certifyId:n?`MINI_${n}`:null,portrait:null,errorMsg:Boolean(n)?null:"人脸验证失败,请检查参数信息"};window.removeEventListener("hashchange",o),setTimeout(()=>{e("executeAuthFaceInBrowser",`执行验证结果回抛给业务侧:${JSON.stringify(a)}`),t(a)},100)};window.addEventListener("hashchange",o);const a=encodeURIComponent(window.location.href),{certNo:s,name:r}=i;let l=`/pages/sdk/sdk?redirectUrl=${a}&type=authFace&idCard=${encodeURIComponent(s)}&name=${r}`;I()?d(l,t):M()?u(l,t):(e("executeAuthFaceInBrowser","当前环境不支持人脸识别","warning"),t({isSuccess:!1,code:-1,message:"当前环境下不支持人脸识别验证功能"}))}},z={locationCheck:!1,locationStackList:[],checkLocationEvStack(){this.locationStackList.forEach(e=>{this.getLocationInWeChat(e.resolveInfo,e.id)})},executeGetLocationInBrowser(t){e("executeGetLocationInBrowser","在微信/支付宝浏览器中获取定位信息"),M()?this.getLocationInAliPay(t):I()?this.getLocationInWeChat(t):t({code:-1,isSuccess:!1,message:"当前环境无法支持位置信息获取,请检查是否为湘易办相关环境"})},getLocationInWeChat(t,n){return this.weChatConfigReady?this.locationCheck?(e("getLocationInWeChat","已缓存签名信息,直接调用对应API获取位置信息"),void this.executeGetWeChatLocation(t,n)):void this.executeGetWeChatLocation(t,n):(e("getLocationInWeChat","微信SDK尚未初始化完毕,先行进行堆栈,待微信SDK初始化后,统一调用"),void this.locationStackList.push({id:i(),resolveInfo:t}))},executeGetWeChatLocation(t,i){e("executeGetWeChatLocation","在微信环境中获取位置信息");let n=null;if(i){const e=this.locationStackList.findIndex(e=>e.id===i);n=this.locationStackList[e].resolveInfo}window?.wx?.getLocation({type:"gcj02",success:o=>{this.locationCheck=!0,e("executeGetWeChatLocation",`获取到的坐标信息:${JSON.stringify(o)}`);const a={isSuccess:!0,location:{longitude:o?.longitude,latitude:o?.latitude},message:"微信小程序下只提供经纬度"};if(i)return n(a),void this.clearLocationEventStack(i);t(a)},fail:o=>{const a={isSuccess:!1,message:"调用微信获取位置信息失败,请查看控制台"};if(e("executeGetWeChatLocation",`调用微信获取位置信息失败,信息是:${JSON.stringify(o)}`),i)return n(a),void this.clearLocationEventStack(i);t(a)}})},clearLocationEventStack(e){const t=this.locationStackList.findIndex(t=>t.id===e);-1!==t&&this.locationStackList.splice(t,1)},getLocationInAliPay(t){e("getLocationInAliPay","在支付宝环境中获取位置信息"),window?.my?.getLocation({success:i=>{e("getLocationInAliPay",`获取到的坐标信息:${JSON.stringify(i)}`),t({isSuccess:!0,location:{longitude:i?.longitude,latitude:i?.latitude},message:"支付宝小程序只提供经纬度"})},fail:i=>{e("getLocationInAliPay","获取位置信息失败","error",i),t({code:-1,isSuccess:!1,message:"获取位置信息失败"})}})}},V={executeImageChooseInBrowser(t,i,n){const{count:o,sizeType:a,sourceType:s}=i,{bResDataFormat:r}=n;if(I()||M()){const i={count:o||9,mediaType:["image"],sizeType:a||["original","compressed"],sourceType:s||["album"],success:i=>{i?.success&&t(r?r(i):i),e("executeChooseImageInWeChat",`微信/支付宝环境下执行选择图片API执行完毕,结果:${JSON.stringify(i)}`)},fail:t=>{e("executeChooseImageInWeChat",`微信/支付宝环境下执行选择图片API执行失败,结果:${JSON.stringify(t)}`)}};return void(M()?window.my.chooseImage(i):window.wx.chooseImage(i))}t({isSuccess:!1,code:-1,message:"目前环境暂不支持,敬请期待"})}},Q={navigationCheck:!1,startNavigationInBrowser(t,i={}){const n=encodeURIComponent(window?.location?.href),{lat:o,lng:a,address:s,name:r,dinateType:c}=i;let l=`/pages/sdk/sdk?redirectUrl=${n}&type=navigation&latitude=${o}&longitude=${a}&address=${s}&name=${r}`;if(c&&"GCJ02"!==c){const e=k(i),{destinationLatitude:t,destinationLongitude:o}=e;l=`/pages/sdk/sdk?redirectUrl=${n}&type=navigation&latitude=${t}&longitude=${o}&address=${s}&name=${r}`}e("startNavigationInBrowser",`跳转目标URL:${l}`),I()?d(l,t):M()?u(l,t):(e("startNavigationInBrowser","导航功能无法在当前环境下执行"),t({isSuccess:!1,code:-1,message:"导航功能无法在当前环境下执行,请检查是否为微信/支付宝小程序的浏览器环境中"}))}},X={wvInfo:null,isHarmony:!1,isCheckDevice:!1,async initMessage(...t){const i=t[0];await this.checkDeviceInfo(),await this.initVMInfo(t[2]),y()?window.addEventListener("message",t=>{e("initMessage",`浏览器webview接收到的消息内容,${JSON.stringify(t)}`,"log"),this.getMsgFromH5(t)}):(e("initMessage",`非浏览器中的webview接收到的消息内容,${JSON.stringify(i)}`,"log"),this.getMsgFromH5(i))},checkDeviceInfo(){this.isCheckDevice||(this.isCheckDevice=!0,uni.sendNativeEvent("System_getAppInfo",{},e=>{this.isHarmony=e?.platform?.toLowerCase().includes("harmony")}))},initVMInfo(t){if(!this.wvInfo)if(this.isHarmony)this.wvInfo=uni.createWebviewContext("webview",t);else try{this.wvInfo=t,t?.$scope?.$getAppWebview()&&(this.wvInfo=t.$scope.$getAppWebview().children()[0])}catch(t){e("initMessage","初始化消息模块,是否包含wvInfo:"+typeof this.wvInfo?.evalJS)}},getMsgFromH5(t={}){let i=this.getMsgDataFromH5(t);const{origin:n}=t||{},{href:o}=location||{};if(y()&&o?.includes(n))return!1;const{isH5Send:a,methodName:s,methodData:r}=i||{};return!!a&&(s?null==r?(e("getMsgFromH5","请传入需要执行的事件数据","warn"),!1):(e("getMsgFromH5",`需要执行的事件名称【${s}】,需要执行的事件数据【${JSON.stringify(r)}】,是否为H5发送的消息【${a}】`,"log"),void(this[s]?this.executeH5MethodName(s,i):e("getMsgFromH5",`【${s}】事件不存在`,"warn"))):(e("getMsgFromH5","请传入需要执行的事件名称","warn"),!1))},executeH5MethodName(t,i){const{msgId:n,methodData:o}=i;try{const i=this[t].toString();if(e("executeH5MethodName",`【${t}】方法定义:${i}`,"log"),i.includes("Promise"))return void this[t](o).then(i=>{e("executeH5MethodName",`${t}方法执行结果:${JSON.stringify(i)}`,"log");let o=i;try{o=JSON.parse(i)}catch(t){e("executeH5MethodName","强制给数据进行序列化失败","error",t)}this.postMsgToH5({msgId:n,sourceMethod:t,resultInfo:o,isWebviewSend:!0,resultMessage:`执行${t}方法完成`})}).catch(i=>{e("executeH5MethodName",`${t}方法执行失败`,"error",i),this.postMsgToH5({msgId:n,sourceMethod:t,resultInfo:null,isWebviewSend:!0,resultMessage:`执行${t}方法失败,具体错误信息,请查看控制台`})});this[t](o),this.postMsgToH5({msgId:n,sourceMethod:t,resultInfo:null,isWebviewSend:!0,resultMessage:`执行${t}方法完成`})}catch(i){e("getMsgFromH5",`${t}方法执行失败`,"error",i)}},postMsgToH5(t){const i=JSON.stringify(t);if(e("postMsgToH5",`消息内容:${i}`,"log"),y()){e("postMsgToH5","父页面运行在浏览器","log");document.querySelector("iframe").contentWindow.postMessage(JSON.stringify(i),"*")}else try{e("postMsgToH5","父页面运行在非浏览器","log"),this.wvInfo.evalJS(`getMessageFromWebview('${i}')`)}catch(t){e("postMsgToH5","执行浏览器的webview回传异常","error",t)}},getMsgDataFromH5(t){let i=null;const{data:n}=t;try{i=y()?n?.data?.arg?n?.data?.arg:n?.data?n.data:n:t.detail?.data[0]}catch(t){return e("getMsgDataFromH5","处理消息内容时发生异常","error",t),!1}return e("getMsgDataFromH5",`获取到的消息内容:${JSON.stringify(i)}`,"log"),i}},Y=(t,i,n)=>{if(e("_parseFunction",`${JSON.stringify(t)}`),"function"==typeof t)return n[i]=t,void(t="[Function]::"+i);if("object"!=typeof t)return;let o=null;for(let e in t)switch(typeof t[e]){case"object":o=i?i+"_"+e:e,Y(t[e],o,n);break;case"function":o=i?i+"_"+e:e,n[o]=t[e],t[e]="[Function]::"+o}},Z=e=>{let t=0;return"string"==typeof e?t=1:"number"==typeof e?t=2:"boolean"==typeof e?t=3:"function"==typeof e?t=4:e instanceof Array?t=6:"object"==typeof e&&(t=5),t},ee={appH5SendMsgToApp(e,t={},i={}){const{isWindowEv:n,moduleName:o,nativeEvName:a,isCustomEv:s}=t;if(n)return void this.h5SendMsgToAppByWindow(e,t,i);const r=s?"custom":o,c=s?"call":a;this.executeSendMsgToApp({resolveInfo:e,moduleName:r,eventName:c,actionName:a,dataInfo:i,isCustomEv:s,evConfig:t})},executeSendMsgToApp(i={}){const{moduleName:n,eventName:o,actionName:a,dataInfo:s,resolveInfo:r,isCustomEv:c,evConfig:l}=i||{},{description:u}=l,d=this;try{let i={};if(("object"==typeof s?Object.keys(s):[]).length>0&&(i=t(s)),c){const n=t(i);e("webviewSendMsgToApp",`${u}功能在是通过custom.call的方式调用,需要重新处理入参`),i.params=n,i.action=a}e("webviewSendMsgToApp",`${u}的完整参数:${JSON.stringify(i)}`),this.initEventCallbackEv(r,i,l);const m=function(){return d.formatBridgeData(window.c2[n][`${o}Callback`],arguments)}(i);e("webviewSendMsgToApp",`${u}功能在${w()}的Webview环境下执行,调用参数:${JSON.stringify(m)}`),this.h5SendMsgToAppByBrowser(r,l,m)}catch(t){console.log(`🚀发送消息给APP出现错误,错误信息:${t},${JSON.stringify(t)}`),e("webviewSendMsgToApp",`${u}执行数据处理失败`,"error",t)}},initEventCallbackEv(i,n,o={}){const{description:a,resDataFormat:s,resErrorFormat:r}=o;n.onSuccess=function(t){e("webviewSendMsgToApp",`${a}功能在App的Webview环境下执行完成`),i(s?s(t):t)},n.onFail=function(n){const o=t(n);e("webviewSendMsgToApp",`${a}功能在App的Webview环境下执行失败,收到的回调数据:::${JSON.stringify(o)}`),i(r?r(o):s?s(o):o)}},formatBridgeData(t,i){try{const n=Math.random().toString(32).slice(2),o=[];for(let e in i){const a=n+"_a"+e,s=i[e],r={};!1===/OpenHarmony ([5-9])|OpenHarmony (\d{2})/i.test(navigator.userAgent)&&Y(s,a,r);for(let e in r)t[e]=r[e],this.C2ReceiveQueue.push(t);o.push({type:Z(s),name:a,value:s})}return e("formatBridgeData",`格式化后的参数:${JSON.stringify(o)}`),{params:o,id:n}}catch(t){e("formatBridgeData","消息通讯数据格式化异常","error",t)}},h5SendMsgToAppByWindow(t,i={},n={}){const{nativeEvName:o,description:s,resDataFormat:r}=i,c=w(),l=`${o}Back`;let u=n;e("h5SendMsgToAppByWindow",`给【${c}】APP发送【${s}】-【${o}】事件调用,回调函数名称:【${l}】`,"log"),window[l]=i=>{let n=i;e("h5SendMsgToAppByWindow",`收到【${c}】APP发送的${s}事件调用的回调值:${JSON.stringify(n)},回调数据类型::${typeof n}`,"log"),n=a(n),t(r?r(n):n)},setTimeout(()=>{"ios"!==c.toLowerCase()?"android"!==c.toLowerCase()?window.harmony[o](u):window.android[o](u):window.webkit.messageHandlers[o].postMessage(u)},100)},h5SendMsgToAppByBrowser(t,i={},n={}){const o=w();e("h5SendMsgToAppByBrowser",`给【${o}】APP发送【${i.nativeEvName}】事件调用,入参:${JSON.stringify(n)}`,"log");const{nativeEvName:a,moduleName:s,isCustomEv:r}=i,{id:c,params:l}=n;if("android"!==o)return"ios"===o?(this.iosCallBackList.push({id:c,resolveInfo:t,configInfo:i}),void this.h5SendMsgToIOS(c,s,a,l,r)):void("harmony"===o&&this.h5SendMsgToHarmony(c,s,a,l,r));this.h5SendMsgToAndroid(c,s,a,l,r)},h5SendMsgToAndroid(t,i,n,o,a){const s={id:t,module:a?"custom":i,method:a?"call":n,parameters:o};return e("h5SendMsgToAndroid",`发送给安卓APP的消息:${JSON.stringify(s)}`),JSON.parse(window.AndroidFunction.callAndroidFun(JSON.stringify(s)))},h5SendMsgToIOS(t,i,n,o,a){const s={id:t,module:a?"custom":i,method:a?"call":n,parameters:o};return e("h5SendMsgToIOS",`发送给IOS APP的消息:${JSON.stringify(s)}`),JSON.parse(prompt(JSON.stringify(s)))},h5SendMsgToHarmony(t,i,n,o,a){const s={id:t,module:a?"custom":i,method:a?"call":n,parameters:o};return e("h5SendMsgToHarmony",`发送给鸿蒙APP的消息:${JSON.stringify(s)}`),JSON.parse(window.harmonyFunction.callHarmonyFun(s))}},te={msgList:[],msgStack:[],async miniAppH5SendMsgToApp(t,i,n){try{e("miniAppH5SendMsgToApp",`发送消息给webview:${i}`,"log");const o=await this.sendMsgToMiniApp({methodName:i,methodData:n});t(o?.resultInfo)}catch(n){e("miniAppH5SendMsgToApp",`执行${i}失败`,"error",n),t({isSuccess:!1,message:"执行事件失败,详情查看控制台"})}},sendMsgToMiniApp(t){return new Promise((n,o)=>{e("postMsgToWebview",`消息内容:${JSON.stringify(t)}`,"log");const{methodName:a,methodData:s}=t||{};if(!a)return void e("postMsgToWebview","请传入要调用的事件名称","warn");if(!s)return void e("postMsgToWebview","请传入要调用事件的数据信息","warn");const r=i(),c={data:{msgId:r,isH5Send:!0,...t}};if(this.msgList.push({id:r,resolveInfo:n,rejectInfo:o}),e("postMsgToWebview",`发送消息给父容器页面:${JSON.stringify(c)}`,"log"),!this.uniSDKInit)return e("postMsgToWebview","SDK尚未初始化完成,先行执行堆栈","log"),void this.msgStack.push({id:i(),msgContent:c,resolve:n,reject:o});uni?.webView?.postMessage?uni.webView.postMessage(c):uni?.postMessage(c)}).catch(t=>{e("postMsgToWebview","发生异常","error",t)})}},ie={getMessageFromWebview(t,i=!1){let n={};try{n=i?t:t?.data||"{}",n=a(n)}catch(t){e("getMessageFromWebview","解析数据异常","error",t)}if(e("getMessageFromWebview",`是否为webview发送的消息内容:${n?.isWebviewSend},消息内容:${JSON.stringify(n)}`,"log"),!n?.isWebviewSend)return;const{msgId:o}=n,s=this.msgList.findIndex(e=>e.id===o);if(-1===s)return;const r=this.msgList[s],{resolveInfo:c}=r;c(n),this.msgList.splice(s,1)}},ne=(t,i={},n="")=>{"location"!==n?"authFace"===n&&((e,t)=>{t.isSuccess?s(e,t):uni.sendNativeEvent("System_getAppInfo",{},i=>{i.platform.toLowerCase().includes("harmony")&&(t.isSuccess=t?.result||Boolean(t.certifyId)),s(e,t)})})(t,i):((t,i)=>{e("locationCoordinate","执行原生端坐标系值转换处理");const{location:n}=i;uni.sendNativeEvent("System_getAppInfo",{},o=>{const{platform:a}=o;if(e("locationCoordinate",`设备类型:${a},转换前的坐标值:lat:${n.latitude},lng:${n.longitude}`),a.toLowerCase().includes("harmony")){const e=x(n?.longitude,n?.latitude);i.location.longitude=e?.lng,i.location.latitude=e?.lat}if(a.toLowerCase().includes("android")){const e=P(n?.longitude,n?.latitude);i.location.longitude=e?.lng,i.location.latitude=e?.lat}e("locationCoordinate",`转换后的坐标值:lat:${n.latitude},lng:${n.longitude}`),s(t,i)})})(t,i)},oe=["getLoginUserInfo","getAuthToken"];let ae=new class{version="";isInit=!1;isWebviewPage=!1;anaSDKInit=!1;uniSDKInit=!1;alipayInit=!1;iosCallBackList=[];C2ReceiveQueue=[];autoUpdate=!0;autoConfigMenuBtn=!0;constructor(e,t){this.version=e,this.isInit=!1,this.isWebviewPage=t,this.iosCallBackList=[],this.initModuleMethod(),this.initSDKAPI(),this.initDefaultConfig()}initModuleMethod(){n(O,this),n(B,this),n(W,this),n(J,this),n(U,this),n(j,this),n(K,this),n(z,this),n(H,this),n(X,this),n(V,this),n(ee,this),n(G,this),n(Q,this),n(ie,this),n(te,this)}init(t){return new Promise(async(i,n)=>{if(e("init","SDK初始化任务执行处理"),!y())return e("init","当前环境非浏览器环境,无需执行初始化动作","warn"),void n("当前环境非浏览器环境,无需执行初始化动作");N()&&this.initWebviewMsgFormat(),this.initSDKScriptFile(),await this.trackSDKInit(t),i(this.isInit)})}initSDKScriptFile(){e("initSDKScriptFile","挂载第三方SDK脚本文件"),this.initUNISDK(),I()?this.initWeChatSDK():this.initAliPaySDK()}initWebviewMsgFormat(){e("initWebviewMsgFormat","初始化被嵌套的页面消息通讯","log"),y()?(window.addEventListener("message",t=>{e("initWebviewMsgFormat","浏览器消息处理","log"),this.getMessageFromWebview(t)}),window.getMessageFromWebview=t=>{e("initWebviewMsgFormat","事件注入消息处理","log"),this.getMessageFromWebview(t,!0)}):e("initWebviewMsgFormat","该API仅支持在被webview嵌套的H5页面中使用","error","")}initUNISDK(){y()&&($()||l("https://mobile.zwfw.hunan.gov.cn:8088/uni.webview.1.5.6.js","UNI").then(()=>{$()&&(this.uniSDKInit=!0,e("initUNISDK","UNI Webview SDK 挂载完成"))}))}initAliPaySDK(){e("initAliPaySDK","初始化Alipay SDK"),y()&&(b()||M()&&l("https://appx/web-view.min.js","支付宝").then(t=>{b()&&(this.alipayInit=!0,e("initAliPaySDK","Alipay SDK挂载完成"))}))}initSDKAPI(){C()&&(e("initSDKAPI","App的Webview环境,初始化C2调用链的回调函数"),this.initMobileBridgeGlobalConfig()),e("initSDKAPI","开始初始化SDK API"),D.forEach(t=>{const{eventName:i,moduleName:n,nativeEvName:o,isCustomEv:a}=t;if((n&&o||a)&&C()&&(e("initSDKAPI",`初始化C2调用链的回调函数:${i}`),this.checkMobileModuleBack(n,o,a)),!oe?.includes(i))try{this[i]=e=>new Promise(i=>{this.normalEvDataTransition(i,e,t)})}catch(t){e("initSDKAPI","执行API初始化挂载异常","error",t)}})}normalEvDataTransition(t,i={},n={}){const{eventName:o,description:a,reqDataFormat:s}=n||{},r=w();let c=i;if(s&&(c=s(i)),c)return C()?(e("normalEvDataTransition",`开始调用APP的嵌套H5能力,事件名称:${o},入参:${JSON.stringify(c)}`),void this.appH5SendMsgToApp(t,n,c)):S()?(e("normalEvDataTransition",`开始调用小程序/H5嵌套的H5能力,事件名称:${o},入参:${JSON.stringify(c)}`),void this.miniAppH5SendMsgToApp(t,o,c,a)):I()||M()?(e("normalEvDataTransition",`微信/支付宝小程序事件调用,事件名称:${o}, 入参:${JSON.stringify(c)}`),void this.executeBrowserEvent(t,c,i,n)):void this.executeEvByNative(t,c,n);e(o,`给【${r}】APP发送【${a}】-【${o}】事件失败,请检查数据格式是否正确`,"error")}executeEvByNative(t,i,n){const{description:o,uniEvName:a,eventName:r,nativeResFormat:c}=n;try{e("executeEvByNative",`开始调用原生${o}的能力,API名称:${a},格式化前的参数信息:${JSON.stringify(i)}`),uni.sendNativeEvent(a,i,i=>{e("executeEvByNative",`调用原生${o}的能力完成,结果:${JSON.stringify(i)}`,"log");let n=i;c&&(n=c(n),e("executeEvByNative",`调用原生${o}的能力完成,格式化后的结果:${JSON.stringify(n)}`,"log")),"fileDownload"===r&&i.isSuccess&&s(t,n),"getLocationInfo"!==r?"authFace"!==r?"fileDownload"!==r&&s(t,n):ne(t,n,"authFace"):ne(t,n,"location")})}catch(i){t({isSuccess:!1,message:`${o}API执行失败,具体错误信息请查看控制台`}),e("executeEvByNative",`${o}API执行异常`,"error",i)}}initDefaultConfig(){e("initDefaultConfig","默认胶囊按钮配置执行初始化处理"),this.autoUpdate?this.resetMenuBtnConfig():e("initDefaultConfig","业务侧配置无需自动重置胶囊按钮,不至于页面切换事件监听")}}(F,N());return y()&&(window.xybAgent=ae),ae});
1
+ function _0x37bd(_0x4b46ac,_0x1d7e82){const _0x173935=_0x1c02();return _0x37bd=function(_0x405aff,_0x4a1d2b){_0x405aff=_0x405aff-(0x1*-0x117a+-0x1b16+0x2db3);let _0x5d1ac2=_0x173935[_0x405aff];if(_0x37bd['ugcRLN']===undefined){var _0x3df40e=function(_0x430333){const _0xe845a9='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4d2d4f='',_0x4e9c98='',_0x3edf7c=_0x4d2d4f+_0x3df40e;for(let _0x3f38f2=0x699*0x1+-0x1f6d+0x18d4,_0x1b641f,_0x52a722,_0x39f49a=-0x146*-0x6+-0x2*0x8fc+0xa54;_0x52a722=_0x430333['charAt'](_0x39f49a++);~_0x52a722&&(_0x1b641f=_0x3f38f2%(0x2523+-0x1*0xb71+-0x19ae)?_0x1b641f*(-0x1dfa+0x4*-0x443+-0x2f46*-0x1)+_0x52a722:_0x52a722,_0x3f38f2++%(-0xb*0x345+0x13d4+0x1027))?_0x4d2d4f+=_0x3edf7c['charCodeAt'](_0x39f49a+(0x1708+0xd48+0x1*-0x2446))-(0x1d*-0xda+0x1*-0x8aa+0x5a*0x5f)!==0x240f*-0x1+0xe*-0x151+0x367d?String['fromCharCode'](0x852+0x34f+-0xaa2&_0x1b641f>>(-(0xbc3+-0x1*-0xa8b+0xb26*-0x2)*_0x3f38f2&-0x1756+-0x36*0xaf+0x3c46)):_0x3f38f2:-0x182b+0x4bb*-0x3+-0x2*-0x132e){_0x52a722=_0xe845a9['indexOf'](_0x52a722);}for(let _0x1c6ae3=0xe59+0xb7a+0x259*-0xb,_0x5aa7bf=_0x4d2d4f['length'];_0x1c6ae3<_0x5aa7bf;_0x1c6ae3++){_0x4e9c98+='%'+('00'+_0x4d2d4f['charCodeAt'](_0x1c6ae3)['toString'](-0x1c9d*0x1+0xf1f+-0x15b*-0xa))['slice'](-(-0x2038+-0xe08+-0x3e*-0xbf));}return decodeURIComponent(_0x4e9c98);};_0x37bd['YkYXhF']=_0x3df40e,_0x4b46ac=arguments,_0x37bd['ugcRLN']=!![];}const _0x3e3219=_0x173935[-0x1*-0x80f+-0xe55+0x646],_0x112e29=_0x405aff+_0x3e3219,_0x1ce75b=_0x4b46ac[_0x112e29];if(!_0x1ce75b){const _0x278a36=function(_0x548713){this['jBHBiO']=_0x548713,this['yKpACx']=[0x20c*-0x13+0x1*-0x7c+0x1*0x2761,-0x1*0x1faf+0x1913*0x1+0x69c,0x18f2+-0x26b3+0xdc1],this['ODeKLY']=function(){return'newState';},this['RdYssu']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['sBnyOj']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x278a36['prototype']['dasDEm']=function(){const _0x20ac13=new RegExp(this['RdYssu']+this['sBnyOj']),_0x576355=_0x20ac13['test'](this['ODeKLY']['toString']())?--this['yKpACx'][0xcfb+0x2579+-0x3273]:--this['yKpACx'][0x25*-0x5+-0xa7*0x2f+0x53b*0x6];return this['sEreAW'](_0x576355);},_0x278a36['prototype']['sEreAW']=function(_0x4dd14d){if(!Boolean(~_0x4dd14d))return _0x4dd14d;return this['VFLeiM'](this['jBHBiO']);},_0x278a36['prototype']['VFLeiM']=function(_0x35d908){for(let _0x20c6bc=-0x8*0x22d+0x269*0x10+-0x1528,_0x1d41b4=this['yKpACx']['length'];_0x20c6bc<_0x1d41b4;_0x20c6bc++){this['yKpACx']['push'](Math['round'](Math['random']())),_0x1d41b4=this['yKpACx']['length'];}return _0x35d908(this['yKpACx'][0x24be+0x1df6+-0x2*0x215a]);},new _0x278a36(_0x37bd)['dasDEm'](),_0x5d1ac2=_0x37bd['YkYXhF'](_0x5d1ac2),_0x4b46ac[_0x112e29]=_0x5d1ac2;}else _0x5d1ac2=_0x1ce75b;return _0x5d1ac2;},_0x37bd(_0x4b46ac,_0x1d7e82);}function _0x1c02(){const _0x41d940=['5OMR5O+p5lQm57U056cb','Bg9JyxrPB25dAgvJAW','C3vJy2vZCW','zM9YrwfJAa','AgfYBw9UEq','C2vUze5HDgL2zuv2zw50','6i635y+w5yIW55Qe5RAi5OgV5yAf5A6577YA','Bg9N','Aw50zxjJzxb0B3i','6z2E5RMy5PIt5yQEqvbq546V5Akd77Ym5PEG5Rov5OMN6kgm6k+Lqvbj','8j+AGowpKEMaGEA2IoAbR+E7MufquowhUUEoSoMuMEIVR++8JoMuMEIVR+s/OEAbR++8MG','kcGOlISPkYKRksSK','5B6U5l+H5Bcp56Il5BQp','6zYa6kAb5OMN6kgm55Qe5lQl5lU25zcn56EW44cq','5yID5AEl5yYwqZlOSipNLkJPK77NMOtLM57OSipLH73MLBa6','BM9Uy2vtDhi','Aw1NvxbSB2fK','5OMt5BYa5B6U5l+H5Bcp56Il5BQp','y29WEvrVq2XPCgjVyxjK','Dw5PlwfWCa','ywjZ','C3rHCNrFBMf2AwDHDgLVBG','5RE75yQG5PEL5y6g5PEL56Il','6k+35lYG5ywL6zYa6kAb5OMN6kgm55Qe5lQl5lU25PwW5O2U','z2v0u3LZDgvTsw5MB1n5BMm','55UU55Qe5zYW5A+86iIQ','zM9YBwf0qNjPzgDLrgf0yq','5Rwp6kEi5zMOD2vIDMLLD+AoPEAuTUwiSoEAHoA2IoAbR+wgHEwUUE+8Ja','6k+35lYG5ywL6kAb6lcd55sO5lQl5lU255Qe5PwW5O2U5l+H5OgV','zNjVBunOyxjdB2rL','6ycj5OUP5PYS5zYW5PAh5lU2','q2fSBgjHy2S','Aw5PDfDLq2HHDenVBMzPzW','zxjYB3i','6l2S5O2I5zco55Qe5z2q5Qch5yc877YABgf0oG','qw5HBhLZExnbz2vUDa','ntKWmZC3ogTrs0L0Bq','vxrPBf9Zzxrty3jLzw5mAwDODa','6i635y+w5O6i5P2d6zo+5O6L','BMfTzq','5O6L5y+J77YA','C3bSAwnL','5z2q5Qch57o76l2S5O2I5BYc5BI477Ym5PYQ5zYO5yY56ywn6kEe5yIz5yAf77Ym5lYG6ycs55Qe5z2q5Qch57o757g75z6l77YA','5OMN6kgm5PAh5lU25lIk5lYG','zxHLy3v0zuv2qNLoyxrPDMu','BwLUAufWCeG1u2vUze1Zz1rVqxbW','Aw1NuhjLDMLLDW','6k+35lYG5ywL6kAb6lcd55sO55Qe5lQl5lU25zcn56EW','5OMN6kgmAwtLGlZKUlO','44cr5lQl5lU25AsX6lsL77Ym6k+35Qoa5P+L5PwW5O2U5Qc85BYp5PIV5zcM5Q2J56gU','BxaTywXPCgf5','6ywn572U5l+H5OgV77YA','CgXHDgzVCM0','nJCXntrLBMr1whC','iaRJGjdML6xLV5FNSBVLNOVJGjhVVjO','yxv0B1vWzgf0zq','zMLSzq','z2v0u2vJB25KCW','5BYa5AEl6lcd55sOqvbq55Qe5Bwm5AwxsdxOG73LIPVVViZKUOVKU7BLKi3NP7dVVjO','yxbWsdvtzw5KtxnNvg9bCha','z2v0vhjHy2vizwfKzxi','ywn0Aw9U','AxniyxjTB255','Cg9ZDe1Zz1rVsdu','zxHLy3v0zvrYywnR','5B2t5yMn5PIV5zcM5lI65RMy5PIt5yQE5Rwp6kEi5zMO546V5Akd77YA','6Ag16z2I5OUM5OIQ5lQl5lU255sF5PwiioIhQUwkQoMhJEE9RUwoN+EuN0fquowiHUs6Q+oaGEIVHos7T+AmIEMsRUMfJEE9RUs/OEAbRW','rMLSzv9JAg9VC2vmB2nHBa','6lEZ6l2S55UU5Qchvvjm77YA','y2fSBeHHCM1VBNLgDw4','77Ym6k+35Rgc5BYc5BI4','6i635y+w5l2n572U5l+H5OgV5BYc5BI4','AxnqCM9Krw52','uhjVBwLZzq','jhbHz2u','z2v0tw9UDgG','D2fYBMLUzW','6k+35Rgc5O+s5lU25yID5AEl5yYw','zM9YyMLKu2nYzwvUu2HVDa','z2v0tg9NAw5vC2vYsw5MBW','5y+r6ycb57Uz6BI/6jkzqvbq55Qe5RAi5OgV77YA','5OMN6kgm5lQ66is46AQm6k+b77Ym5y+c5PwW5l+H5OgV77YA','8j+AGow9K+wjJEMHTEMDOUI3R+w+Hos/OEAbR++8MG','mJu2oduZmun5rvD5vG','5OMN6kgm5OMt5BYa56YS5lIj5PA55PAh5lU2','z2v0txnNrgf0yuzYB21inq','5yQF6io95PEG5Rov5zYO5B2t5yMn546V5Akd5lIT5l2/55sO','5B6U5l+H6ywn572U5yID5AEl5yYw5AsX6lsL','y29UzMLNqw5Hu0rl','Bgf0Axr1zgu','Aw5PDefSAvbHEvnesW','zgf0yq','Dw5Pu0rlsw5PDa','yxjN','z2v0qwnJzxnZtgLUAW','y2HLy2TdBg91ze9IuMvXDwvZDeHLywrLCG','5lQl5lU25A6m5OIq77Ym6l+u5zUE57Ut5P6C77YA','mZm3ntG2mvH2AMvJua','57Y65Bcr5B+f6kAb5y+c5PwW77YABMfTzsWGy2vYDe5VlcbHChbjzcWGC2LNBIWGy3jLyxrLzcWGBM9Uy2u','zxHLy3v0zvbHEw1LBNq','5Rwp6kEi5zMO','Dw5PBwLUAwfWCa','l3bHz2vZl3nKAY9ZzgS/CMvKAxjLy3rvCMW9','yxnZAwDU','5B2t5yMn546V5Akd5PEG5Rov5PsV5OYb5l2n572U5l+H5OgV6i635y+w77Ym6k+35Qoa5P+L5PIV5zcM5lI65RMy5PIt5yQE55U45ywZ546V5Akd','CMvTB3zLrxzLBNrmAxn0zw5LCG','CMvXDwvZDe9I','cJ09pt09pt09pt09pt3WN5Qau1rbuLqGlsaGvG','Cg9ZDe1LC3nHz2u','5Qoa5P+L5lQl6Ag55P2d6zMq','C3rVCfjLC291CMnL','y2HLy2TqzxjTAxnZAw9U','y2HLy2TuCMfJA1n0ywnR','B25cywnRuhjLC3m','5zYO5B6U5l+Hl+AuR+s7MowUNEA1J+INIowzQos4REIoT+wpLUwUMUs9JEs/OEAbRW','y2XPCgjVyxjKrgf0yq','B3bLBKfWCa','BwvZC2fNzq','Aw5PDfDLyNzPzxDnC2DgB3jTyxq','B3bLBLDLy2HHDe1PBMLbCha','5OMN6kgm5PAh5lU25lIl6l29','BwvUDuj0BKnVBMzPzW','DhjHy2TtDgfJAW','CMfUzg9T','CMvWBgfJzunVB3jKAw5HDgu','zMfPBa','B3b0Aw9UCW','mtm1sMLNDM1u','zNvSBfbHDgG','5OUO5OMt55s16k+D','zxHLy3v0zvnLBMrnC2DuB0fWCa','Ag9ZDa','77Ym5ywL5y+c77YA','Cg9ZDe1Zz1rVv2vIDMLLDW','5yID5AEl5yYwD2vdAgf0ifnesW','B3bLBKXVy2fSrMLSzq','Axnxzwj2Awv3u2vUza','5P+L6k+I5PEL5y6g5PEL56Il','jMXVBMDPDhvKzt0','5yQF6io95zYOqxbW55Qev2vIDMLLD+EoR+wIG+s4I+AjP+IHJowUJoAiKa','C3bSAxq','zxzLBNrjra','Bg9Uz2L0DwrL','y29WEq','yxbW','Aw5PDa','5OMt5BYa6k+e5lU35BY556Qx','mJC1mJqXnNjUweHrAW','ChvZAa','5OMN6kgm5lQl5lU25AsX6lsL77Ym6k+M5Oof5P+L55Yl5O6N5yI25y+W','C3rYAw5NAwz5','iaO9pt09pt09pt09pt09pFcFMObftKtWN5Qapt09pt09pt09pt09pt0','C291CMnLpq','rMLSzv9KB3DUBg9Hza','vxrPBf9JBgLWyM9HCMreyxrH','Aw5PDe1LC3nHz2u','5B2t5yMn5PIV5zcM5lI6qvbq55Qev2vIDMLLD+EoR+wIG++8MG','Dw5KzwzPBMvK','z2v0vMLZAxrtB3vYy2u','AxndAgvJA0rLDMLJzq','x3v0zJHFzgvJB2rL','5BY65yI257Uz5PwW5O2U6l+B6kgm5BQp5yIx5yYw5AsX6lsL','rMLSzv9VCgvUtg9JywW','AhvUyw4Uz292lMnU','AgLKzu5HDgL2zuj0BG','y2HPBgrYzw4','zgv0ywLS','y2HLy2TjC01PBMLbChbcCM93C2vYrw52','jNr5Cgu9BMf2AwDHDgLVBIzSyxrPDhvKzt0','z2v0q3vYCMvUDfbHz2vqyxrO','5OMN6kgm6Ag16z2I5y+y5yYw5OUM5OIQ5BYc5BI4','q2fSBe5HDgL2zu1LDgHVzeDLDfvZzxjjBMzV','y2HLy2TezxzPy2vjBMzV','5B2t5yMn546V5Akd5lIn5PsV5OYb5RMy5PIt5yQE5PsV5lUy6io95yQB','z2v0qxbWsw5MBW','odaWyZi5ogyWyZqYyZK0yW','5yID5AEl5yYw6kkR5Bwm5Awx55Qe6Ag16z2I5RAi5OgV6ycA6k6V','5PsV5lUy5A6D5Bcp56Il5BQp5y+Q5O+q5l6B57Up57QS5BQM','z2nQmdi','B25SB2fK','44cr77Ym5PIV5zcM5lI6sdxLJ5hPGihNMOtMTOJMGA/JGja','77Ym5PIV5zcM5lIk5OQL5yIW55sF5lQN546V5Akd77YA','Ahr0Chm6lY9TB2jPBguUENDMDY5ODw5HBI5NB3yUy246oda4oc91BMKUD2vIDMLLDY4XlJuUnI5QCW','C2vUza','qvbj5OMN6kgm5BYc5BI4','y2HVB3nLtg9JywXgAwXL','5OMN6kgm6Ag16z2I5lQl5lU2sutKUiRMIQu','ue9tva','DgHLBG','C3rHDhvZq29Kzq','5BYa5AEl5Ase55cgsu9t6k6+5Ash5zUE6lcd5lQl5lU277Ym5zUE6lcd5PwW5O2U77YA','jNjLDhvYBLvYBd0','qxv0Af9NzxrvC2vYsw5MBW','6k+35lYG5ywL5z+l54k55lQl5lU2','77Ym5A6m5Pw05z+l54k55PwW5O2U77YA','BM9YBwfSuMvXDwvZDa','5OMN6kgm5zU+54Mh6Ake6kEi','AgfZt3DUuhjVCgvYDhK','5lIA5yQH5l6N6ywn572U5PEG6zYa6iEQ5yQO6yEn572U6io25zUk5OYj6zkU77Ym5lIn6iEZ5lQo6Ag16z2I5yIh5O2I5lQl5lU255Ur5zcS','5PEG5Rov5zYO6z2EDw5P546V5Akd5lIl5OMN6kgm6k+Lqvbj5lU75yQH','6kEJ5P6q5PwW5O2U5BYc5BI4','B3b0Aw9UCY5MAwX0zxjqBgf0zM9YBtO','AxntDwnJzxnZ','6z2E5Rwp6kEi5zMO5lIT55QeD2vIDMLLD+AoPEAuTUwiSoEAHoA2IoAbR+wgHEwUUE+8Ja','zgvZDgLUyxrPB25mB25NAxr1zgu','CgfYC2u','6ycj5OUP5PYS5zYW5zU+54Mh','Ahr0Chm6lY9HChb4l3DLyI12Awv3lM1PBI5QCW','Bg9JyxrPB25tDgfJA0XPC3q','su9t6k6+5Ash5zUE6lcd5lQl5lU25Ase55cg5BYa5AEl77Ym5zUE6lcd5PwW5O2U77YA','zMLUza','y2HVB3nLrMLSzq','ywrKsw50zxjJzxb0B3i','ywXIDw0','y2HLy2TjC0fWCfDLyNzPzxDfBNy','su9tq2fSBgjHy2TfDKzVCM1HDa','y2vYDgLMEuLK','77Ym5RAi5OgV5yAf5A65oG','rMLSzv9WCMv2Awv3','CMvWBgfJzq','5PsV5lUy5A6D','DxrPBa','y2HLy2TnB2jPBgvnB2r1BgvcywnR','Bgf0','zxjYtxnN','sw1Hz2vFDxbSB2fK','y2XLyxjmB2nHDgLVBKv2zw50u3rHy2S','zMLUzeLUzgv4','EhLItw9KDwXLq29Kzt0','6k+35Rgc6zsz6k+V77Ym54Q25Ocb56cb77YA','Advtzw5KtxnNvg9bChbcEujYB3DZzxi','Advtzw5KtxnNvg9bChbcEvDPBMrVDW','EhLIqwDLBNtLIj3LP4VLJjBLPlhOTku','Aw5PDe1VzhvSzu1LDgHVza','44cq6zsz6k+V5l+H5OgV44cr77YA','Aw5PDfnes1nJCMLWDezPBgu','Dg9mB3DLCKnHC2u','z2v0twLUDxrLCW','5B2t5yMn5PIV5zcM5lI6v2vIDMLLD+EoR+wIG++8MG','Aw9Zq2fSBejHy2TmAxn0','l3bHz2vZl2vWyxKVB3bLBLbHEt9VCMrLCLrVA2vUpq','u3rHCNrFBMf2AwDHDgLVBG','sw1Hz2vFChjLDMLLDW','z2v0rNvSBfLLyxi','AwDUB3jL','vu5j','ANvTCfrVtwLUAufWCa','y29TCgXLDgu','44cr77Ym6zYa6kAb5OMN6kgm55Qe5lQl5lU25PwW5O2U44cq','77Ym5lIk5OQL55QeA2v55yc877YA','B3bLBKzPBgvxAxrOvgHPCMrqyxj0Eq','zxHLy3v0zvDLq2HHDfnPz24','Dw5P','D2vdAgf0q29UzMLNuMvHzhK','qw5KCM9Pzez1BMn0Aw9U','B3bLBKXVy2f0Aw9U','6i635y+w5yIW55QezMfJzuTLEEwpGUAvSowaVdO6oJO','su9t6k6+5Ash5zUE6lcd5lQl5lU25Ase55cg5A6m5OIq77Ym6l+u5zUE5PwW5O2U77YA','6k+36ywn572U5PYn5yQH55Ur5O6N5BMZ5y+W5y6F55sF5O+s5lU2','EhLIqwDLBNtLT7lLIj3LP4VLJjBLROZMIjdVViZLJ6/MRApLUlJMIAFOOyZLN4VNGRNMK43KVzW','57Y65Bcr5B+f6kAb5y+c5PwW','BMf0AxzLrxzoyw1L','ywrKCMvZCW','Aw5PDerLzMf1BhrdB25MAwC','DgvZDa','Dg9gAxHLza','AhjLzG','Advtzw5KtxnNvg9iyxjTB255','z2v0x3rVA2vU','z2v0ug9ZAxrPB25jBMzV','B3bLBLH5yKfWCa','BwfRzvbOB25Lq2fSBa','D2vIDMLLDW','DxbSB2fKsw1Hz2u','D2vIvMLLDW','Aw5PDe1VyMLSzujYAwrNzuDSB2jHBenVBMzPzW','CMvZCg9UC2vuzxH0','CMvZDwX0sw5MBW','sw1Hz2vFy2HVB3nL','zxzLBNroyw1L','5Bwm5AwxsdxNMOtOG73LIPVVViZKUOVKU7BLKi3NP7dVVjO','u0rl5yID5AEl5yYw5lU75yQH5OMN6kgm5Ase55cg','EhLIqwDLBNq','z2v0ugfNzvnVDxjJzq','DMvYC2LVBG','y29TChjLC3nLza','55Qe5A6m5Pw05y+c5PwW77YA','6lcd55sO5B6U5l+H6i635y+w5l2n572U5l+H5OgV5AsX6lsL77Ym5l+H5OgV5PIV77YA','B25LCNjVCG','5PIV5zcM6k+75y+w5yIW44cqDhjHy2vY44cr5O+s5lU26ywn572U77YA','qwXPCgf5ifnes+AmGUI9VEwUJoAiKa','6z2Eqvbq546V5Akd55Qev2vIDMLLD+EoR+wIG++8Jos4JEAuR+AmGEIVPEwkN+IdVq','zgvSzxrLq2fSzw5KyxjfDMvUDa','BgvUz3rO','C2HHCMu','y3vZDg9T','6l2S5O2I5zco5yc877YAtefuoG','54I26Ag16z2I6l+q6kgm5zYO5Rwp6kEi5zMO','5OMN6kgm77YA','5yID5AEl5yYw56E75yQO56UV5QgL6zo+5O6L6ywn572U5A6m5OIq','Bwv0Ag9K','zxHWB3j0CW','y2HHCKnVzgvbDa','AgfZAgnOyw5Nzq','C2HVD0nVBw1LBNq','6ywn572Uqvbq6io25zUk5OYj6zkU5RIf5y2v5PI+56s677Ym6ywn572U5l+H5OgV77YA','5zYO5B6U5l+H546V5Akd5lIT6i635y+w5l2n572U5l+H5OgV','z2v0twvZC2fNzuzYB21xzwj2Awv3','5B6U5l+Hl+AuR+s7MowUNEEoR+wIG+s4I+AjP+IHJoMaIEAlQEwBVUEjH0fqsEAjP+IHJowUJoAVLE+8JoE7K+AENo+8MG','Advtzw5KtxnNvg9jt1m','yMfZzty0rgvJB2rL','zMLSzvbYzxzPzxC','6ywn572Uqvbq55Qe6io25zUk5OYj6zkU5RIf5y2v5PI+56s6','6k6+5Ash57g75z6l77YA','rMLSzv9VCgvUvgHPCMrqyxj0Eq','zxHLy3v0zuG1twv0Ag9KtMfTzq','Aw5PDefUzhjVAwrdywXSyMfJA0v2q29UzMLN','D3zjBMzV','C3rHCNroyxzPz2f0Aw9U','CMvHzhK','jhnJB3bL','q2fSBe5HDgL2zu1LDgHVzeP1BxbuB1DLy2HHDe1PBMLqCM9NCMfT','y2HVB3nLsw1Hz2u','5A+86iIQ5yQF6io95PEG5Rov5zYO5B2t5yMn546V5Akd5lIl5OMN6kgm77Ym6k+35Qoa5P+L5PIV5zcM5lI65B6U5l+Hl+AuR+s7MowUNEwWJ+EOI+w6J+EAHoA1J+INIowzQoEoR+wIG+s4Rq','DxnLCKfNzw50','CMvZzxrnzw51qNrUq29UzMLN','B3bLBKfSAxbHEu1PBMLbCha','5RAi5OgV5yAf5A6577YA','z2v0tg9JyxrPB25jBMzV','5BYa5AEl6lcd55sO','Ahr0Chm6lY9TB2jPBguUENDMDY5ODw5HBI5NB3yUy246oda4oc9bBMfSExn5C0fNzw50x0Ptx1nesY5TAw4UANm','44crlEoaKa','DgLTzw91Da','Dg9Rzw4','zxHLy3v0zuzPBgvvCgXVywrjBKjYB3DZzxi','y2HHCKf0','yxv0AezHy2u','5PwW5O2U57g75z6l5lI6zNvUy3rPB27VViZML6dMS5xMIAFOOyZMT7hMI7FOTj3VViZOR7FMO4dMN6u','y3jLyxrLrwXLBwvUDa','44crqvbq5y+r6ycb44cq','54I26Ag16z2I6l+q6kgm5zYO6z2E5Rwp6kEi5zMO','yxrHBJi','C2vHCMnO','y2fSBa','zxzLBNrqCM8','Cg9ZDe1Zz1rVt3rOzxjbCha','B3jPz2LUywW','5Qc85BYp5yYw5AsX6lsL','vxrPBf9MB3jIAwrty3jLzw5tAg90','C2vUze1Zz1rVtwLUAufWCa','zxzHBePt','CMvXDwvZDa','u0rl5BcA5PYQ5yID5AEl5yYw5A6m5OIq77Ym5ywi6kgm5OMN6kgm5Acg5Qci','vxrPBf9NzxrdywnOzvnPEMu','6ycA6l+hq3vZDg9T6lcd55sO55QeqZlKUOVKU7y','5BEY5A6m5OIq55M+5BQM5z2q5Qch57o76l2S5O2I5OIq5zU95Rwl5z2q5Qch57o755Qe6l2S5O2I77Ym6l2S5O2I5zco55Qe5yc877YABg5NoG','yxv0B0nVBMzPz01LBNvcDg4','x3bHCNnLrNvUy3rPB24','Aw5PDfvosvnesW','Aw5PDfDLq2HHDfnesW','z2v0tg9JyxrPB25jBKfSAvbHEq','y29Z','C2LU','6i635y+w5yIW55Qe5z2q5Qch5l+H5OgV77YA','5OMN6kgm57Yt5A2y5RIf6zMK','y2f0y2G','44cr5lQl5lU25lIn5A2y5zYO','77YmDhjHy2vYoG','AgvHzgvYCW','Axnxzwj2Awv3ugfNzq','yw5Hu0rltg9HzfrPBwvZ','zMLSDgvYugXHDgzVCM0','CgfYyw1Z','qxv0Af9MywnL','5B2t5yMn5PIV5zcM5lI65Bcp56Il5BQp55Qe5Rwp6kEi5zMO546V5Akd77YA','y2fSBefUzhjVAwrgDw4','5yID5AEl5yYwsu9t5zUE6lcd5lQl5lU26ywn572U5BYc5BI4','5PA55Rov5OMN6kgm5AsX6lsL','BM9Uy2vZDhi','CMvZB2X2zuLUzM8','5lQ66is46k+g5yIR5yQF6io9','yxbWzw5Kq2HPBgq','zxHLy3v0zujYB3DZzxjfDMvUDa','mZblv053qve','5A+86iIQ5yQF6io95PEG5Rov5zYO5B2t5yMn546V5Akd5lIl5OMN6kgm','EhLItw9KDwXLq29Kzq','Aw5PDeLpu0nHBgXIywnRrxzdB25MAwC','5OMN6kgm6AQm6k+b57Ut5P6C5zUE5OQB57Uz5lIA5yQH5l6N77YA','5yQF6io95zYOqxbW55Qev2vIDMLLD+EoR+wIG+s4I+AjP+IHJowKSEI0PE+8JoAuTUwiSoEAHowBNUIWG+AvSoAnRU+8MU+8MU+8MG','77Ym5PIV5zcM6k+75y+w5yIW44cqCNvT44cr5O+s5lU26ywn572U77YA','qKqWoq','y29UDgvUDfDPBMrVDW','jgDLDefWCfDLyNzPzxC','5OUM5OIQ6lEV5B6e5y+y5yYw5PE25y+r55sF5lQg5BYc5BI4','5BYa5AEl6lcd55sO5Bcp56Il5BQpl0G15Bwm5Awx55QesdxOG73LIPVVViZKUOVKU7BLKi3NP7dVVjO','5PA55Rov5OMN6kgm57Ut5P6C77YA','C2HVD01LBNvqyw5LBa','57Y65AsX5B+f6kAb5y+c5PwW77Ym6k+35OYj54wNqvbj5PAh5QgJ6l+B6kgm5Qoa5P+L','qZjszwnLAxzLuxvLDwu','q2fSBe5HDgL2zu1LDgHVzeP1BxbuB0fSAvbHEq','5BYa5AEl5yID5AEl5yYwu0rliefqsq','z2v0txnNrNjVBuG1','qxv0Af9NzxruB2TLBG','Dg9tDhjPBMC','zxHLy3v0zuDLDfDLq2HHDeXVy2f0Aw9U','ChjVDMLUy2u','77Ym6k+35Rgc5AsX6lsL','tvntDhjLyw0','6ywn572Uqvbq6io25zUk5OYj6zkU5RIf5y2v5PI+56s65yQF6io95PEG5Rov5zYO6z2Evu5j546V5Akd6l+q6kgm','y2fSBePtq2fSBgjHy2S','zxHLy3v0zunOB29ZzuLTywDLsw5xzunOyxq','6l+u5zUE57Ut5P6C5PIV5zcM5yYf5zcR562+5zcn5l+H5OgV77YA','BMf2AwDHDgvuBW','Aw5PDfznsw5MBW','C3fYDa','Aw1Hz2u','5B2t5yMn546V5Akd5lIn5PsV5OYb5lQ66is46k+g5yIR','C2v0uMvXDwvZDeHLywrLCG','5z2q5Qch57o75yc877YAtefuoG','Aw1Nrg93BMXVywq','zMLUAxnOzwq','77Ym6ywn572U5l+H5OgV77YA','Aw5PDfnes0fqsq','y2XPy2S','z2v0q2fJAgvtAxPL','77Ym5PIV5zcM5lI655sF5lQN546V5Akd77YA','z2v0twvZC2fNzuzYB21xzwj2Awv3kcC','55Qe6io95yQB5A6m5OIq77Ym57Ut5P6C77YA','zMfJzuTLEq','5PA55Rov5AsX6lsL77Ym5yw35l2t6zsz6k+V5l+H5OgV77Ym6k+35P+L55Yl5O6N5yI25y+W','B3bLBKfSAvbHEu1PBMLbCha','C3rYAw5N','qxv0Af9Tyxr0zxjiyw5KBgvbDxrOB3jPDhK','DgvSzxbOB25L','q3jLyxrVCKPZqNjPzgDL','5y+r6ycb57Uz5A6j5y2tqvbq55Qe5RAi5OgV77YA','5y+r6ycb5RAi5OgV57Uz5yw25lUw5Bcp56Il5BQp','yw5Hu0rlsw5PDa','5OMN6kgm5zU+54Mh5lIk5lYG','vxrPBf9VCgvUqxbW','zgvLCenSB25L','v0Dtodq','tuLosv8','C2nHBLfsq29Kzq','zNvUy3rPB24','zxHLy3v0zuf1DgHgywnLsw5cCM93C2vY','q2fSBe5HDgL2zu1LDgHVzfnJyw5ruKnVzgu','6k6+572U5Bgp5BMv5PIV5zcM5BI45lQU','BM9YBwfSrxzeyxrHvhjHBNnPDgLVBG','ywrKuMvZB3vYy2u','vxrPBf9VCgvUwfLctwLUAufWCa','CMvXDwLYzu5HDgL2zvbSDwDPBG','CgXHDgzVCM06','5y+r6ycb57Uzsu9tiefquoEAHoA2IoAbR++8MG','CMvZDwX0','Au9t','Bg5N','5OMt5BYaqvbq','yxbWswq','5lQ66is46AQm6k+b5AsX6lsL77Ym6k+35Qoa5P+L5y+c5PwW5l+H5OgV','ywXPCgf5sw5PDa','Advtzw5KtxnNvg9bBMrYB2LK','zgLUyxrLvhLWzq','6lEZ6l2S5AsX6lsL77Ym6k+35Qoa5P+L6ywn572U5l+H5OgV','BxnNtgLZDa','6i635y+w562+5zcn5l+H5OgV5A6m5OIq','jM5HBwu9','CMvKAxjLy3ruBW','vxrPBf9VCgvUqwXPCgf5twLUAvbYB2DYyw0','5BYa5AEl6lcd55sO5y6F55sF','zxHLy3v0zuLTywDLq2HVB3nLsw5cCM93C2vY','Cgf0Aa','6ywn572U5y+c5PwW6zsz6k+V','qMfJAW','77Ym6k+35Rgc5OIq5yQF','u2nHBL9JB2rL','y2fSBfbOB25L','CgfNzunOyw5Nzuv2','D3HtAwDUugfYyw0','6i635y+w55M75B2v54Q25Ocb','zgvMyxvSDhm','DxjS','6i635y+w5l2n572U5l+H5OgV','BwLUAvbYB2DYyw0','5Asn5yI25yAf5A655yIW5yMQ5yIh5P2/','Bg9JyxrPB25dB29YzgLUyxrL','z2v0tg9JyxrPB25jBLDLq2HHDa','D2DZvg9hq0OWmG','CMvZDwX0u3rY','5y+r6ycb5RAi5OgV57Uz54I25A655zMO6Ag16z2IoG','yM9VBgvHBG','C2vUzerHDgfxyxjWvg9xzwi','6k+35lYG5ywL5lIa5lIQt2jQzwn06ywn572U5PwW5O2U','5PEGzMLSDgvY6ywn572U55Qe5PwW5O2U5l+H5OgV77YA77YA77YA77YAA2v55yc877YA','ywrKq2fSzw5KyxjfDMvUDa','CM91Dgu','z2v0qxv0AfrVA2vU','zxHLy3v0zvDLq2HHDejYB3DZzxjfDG','zMLSzvvWBg9Hza','C3DPDgnOvgfI','vxrPBf9NzxrmB2nHDgLVBKLUzM9YBwf0Aw9U','y2HLy2TjC1H5yKjYB3DZzxjfBNy','77Ym6l2S5O2I5yMn55Qe5z2q5Qch5yc877YABgf0oG','572r57UC6zsz6k+V77Ym5PEG5Rov6zo+5O6L5yIW5PYn5yQH5zMO','jNnLCNzLCLjLCxvLC3rvCMW9','CxvLCNLdywXLBMrHCKv2zw50','ioEAHowFI+EcUEAvSoAnRUwgJEASOEs4IUAkPq','C3rHCNroyxzPz2f0Aw9Usw5cCM93C2vY','6z2E5BI45OQX5Q2j77Ym','5z+l54k55PwW5O2U5lIk5OQL5AsX6lsL','Bg9JyxrPB25jBMzV','BwLJCM9TzxnZzw5Nzxi','5Ase55cg5RAi5OgV5yAf5A655PE25y+r55sF5BYc5BI4','q2fSBe5HDgL2zu1LDgHVzeDLDefJy2vZC0XPBMS','z2v0tg9NAw5tDgf0Dxm','6ycj5OUP5zU+54Mh5yQF6io95Pon5l2C5A6m5OIq','zM9YBwf0uMvZCg9UC2veyxrH','6lwW5PYn5yQH55Ur5O6N5BMZ5y+W55Qe6k+35Rgc6ywn572U','zMfJzuf1DgG','ChjLDMLLD0zPBgu','zg93BMXVywrjBwfNzq','mZa4nJq3mJz4zuvlDLq','6i635y+w5O6i5P2dDg9Rzw4','BxnNu3rHy2S','6i635y+wueNLGlZLPlhOTku','6i635y+w5l2n572U5l+H5OgV5AsX6lsL','z2v0tg9JyxrPB24','5OMN6kgm5PwW5O2U5REX5OU36lsD5BYc5BI4','DhjHy2S','yMfZzvvsta','D2L0AenYzwrLBNrPywXZ','zxHLy3v0zunSB3vKt2jszxf1zxn0','C3rHDhvZ','CMvZCg9UC2u','77Ym5zUE6lcd5PwW5O2U57g75z6l77YA77YA','5zYO5PsV5lUy5A6D546V5Akd5lIT6i635y+w5l2n572U5l+H5OgV','mc4WlJmX','w0z1BMn0Aw9UxtO6','55UU5yMn5lUf5PsV5OYb5B6U5l+H5Bcp56Il5BQpl+AuR+s7MowUNEwWJ+EOI+w6J+s4I+s9V+EuQa','6lwW5PYn5yQH55Ur5O6N5BMZ5y+W55Qe6k+35Rgc6ywn572U5AsX6lsL','5lQl5lU25AsX6lsL77Ym6zsz6k+V5l+H5OgV77YA','BwvZC2fNzuHHBMrSzxjZ','Aw5JBhvKzxm','BNvTyMvY','5lIA5yQH5l6N6k6+572U5lIn6iEQ5yQO6yEn572U6io25zUk5OYj6zkU77Ym5lIT5PAT6ywn572U5yQO5l2C','Bg9JyxrPB24','5z2q5Qch6l2S5O2I5BYa5AEloG','q29UDgvUDc1uExbL','AxnjBML0','5Qc85BYp5yYw5zco55Qe5y+c5PwW77YA','y3jLyxrLv2vIDMLLD0nVBNrLEhq','6lcd55sO5y6F55sF','yw5Hu0rlsw5Zzxj0','z2v0rgf0zq','B2jQzwn0','5OMN6kgm5y6F55sF56UV5z2q5Qch57o75yc86l2S5O2I5Ase55cg','Aw5KzxHpzG','r0nvBMLqBhvNAw4TvhjHy2vY','6ywn572Uqvbq55Qe6io25zUk5OYj6zkU5RIf5y2v5PI+56s65AsX6lsL77Ym6k+35Qoa5P+L5y+c5PwW5PIV5zcM5Q2J56gU','6zQq6jEp5y6F55sFqvbq5yIg5lQR44cb6k+e5lU35OYj6zkU','kZG2','6k+35lYG5ywL6zYa6kAb5OMN6kgm55Qe5lQl5lU25zcn56EW','77Ym6k+35Rgc5A6m5OIq','5PA55Rov5A6m5OIq','zxHLy3v0zu1qqNjVD3nLCKv2zw50','yw5KCM9Pza','55Qe6io95yQB77Ymqvbj5zcn56EW77YA','u3LZDgvTx2DLDefWCeLUzM8','BxaTD2vPEgLU','6ywn572Uqvbq55Qe6io25zUk5OYj6zkU5RIf5y2v5PI+56s65PE25y+r55sF5BYc5BI4','y2XLyxjdywnOzq','5RAi5OgV6ycA6k6V5PwW5O2U5Qc85BYp5yYw5BYc5BI4','C2vUze1HDhrLCKLK','B3bLBG','8j+AGcdPLjNOR6/KV6hMGA/VVjRVVjRVVjRVVjRVVjO','C2XPy2u','6i635y+w57Yt5A2y5AsN5Bcp','CMvmyxvUy2G','mtm2mty0v3rrD2jk','ChjLDMLLD0LTywDL','vxrPBf9WB3n0twvZC2fNzvrVwfLctwLUAufWCa','ywrKrxzLBNrmAxn0zw5LCG','55Qev2vIDMLLD+EoR+wIG+s4I+AjP+IHJo+8JoIWG+EuQowpGUAvSo+8MG','zxHLy3v0zu5HDgL2zujYB3DZzxjfDG','Aw9Z','5B2t5yMn546V5Akd6z2E5Rwp6kEi5zMO546V5Akd77Ym5PEG6zYa5OMN6kgm5yID5AEl5yYw5yQO5l2C','C3rHCNrszxnVDxjJzq','ywXPCgf5','5BEY57Yt5A2y562+5zcn5l+H5OgV77Ym55U05O6L6lcd55sO5A+55BQuqvbj6i635y+w5l2n572U5l+H5OgV','D2vIDMLLD1nLBMrnC2DuB0fWCa','jMfKzhjLC3m9','qw5HBhLZAxnFy29TBw9U','5PsV5lUy5A6D5Bcp56Il5BQp','qxbW55Qev2vIDMLLD+EoR+wIG++8JowiNEwNI+wmLKmY6lcd55sO6zo+55Qe5zUE6lcd5yE95PwW','zxHLy3v0zuDLDeXVy2f0Aw9Usw5cCM93C2vY','DhjHy2TtreTjBML0','D3G0ngjJnwq1ztm0ywmWyZaX','5y+r6ycb5RAi5OgV57UzD2vIDMLLDZO','AgvHzgvY','5lIA5yQH5l6N6iEQ6kgm5OMN6kgm5yQG562+5yQO5l2C77Ym5yQG562+5y+c5PwW77YA','6lcd55sO5B6U5l+H6i635y+w5l2n572U5l+H5OgV5AsX6lsL77Ym6k+35P+L55Yl5O6N5yI25y+W','6k+Lqvbj5lUf5PsV5OYb5zYO6kkRD2vIDMLLD+w1JowLL+EAHeG16Ag16z2I5lIT5l2/55sO','6z2E5Rwp6kEi5zMO546V5Akd5PEG6zYa5l2/55sOAw5PDoAjP+IHJowiNq','D2fYBG','ChjVDg90ExbL','B25tDwnJzxnZ'];_0x1c02=function(){return _0x41d940;};return _0x1c02();}(function(_0x5c84b2,_0x131aae){const _0x5ab471=_0x37bd,_0x153c8f=_0x5c84b2();while(!![]){try{const _0x3f9169=-parseInt(_0x5ab471(0x20a))/(0x1fcd+0x67*0x3d+-0x3857)*(-parseInt(_0x5ab471(0x31e))/(0x1391*-0x1+-0x496*-0x5+-0x35b))+parseInt(_0x5ab471(0x34a))/(0x1*-0x14e7+-0x1afd+0x1*0x2fe7)+parseInt(_0x5ab471(0x2cd))/(-0x2*-0x9bd+-0x9c4+-0x92*0x11)*(parseInt(_0x5ab471(0x368))/(-0x43+0x1925+-0x5f*0x43))+parseInt(_0x5ab471(0x30d))/(-0x1094+0x35b+0x1*0xd3f)+parseInt(_0x5ab471(0x33c))/(0x1116+0xa3f+-0x1b4e)+-parseInt(_0x5ab471(0x37c))/(0x857+0x2412+-0x7*0x657)+-parseInt(_0x5ab471(0x294))/(0x1010+-0x6ba+0x1*-0x94d);if(_0x3f9169===_0x131aae)break;else _0x153c8f['push'](_0x153c8f['shift']());}catch(_0x188721){_0x153c8f['push'](_0x153c8f['shift']());}}}(_0x1c02,-0x85743+-0x283*-0x745+-0x517e),!function(_0x468df1,_0x2a2bdf){const _0x166c9b=_0x37bd,_0x5088c1=(function(){let _0xe25a22=!![];return function(_0x25b31e,_0xbe359e){const _0x55c959=_0xe25a22?function(){if(_0xbe359e){const _0x4e000c=_0xbe359e['apply'](_0x25b31e,arguments);return _0xbe359e=null,_0x4e000c;}}:function(){};return _0xe25a22=![],_0x55c959;};}()),_0x506994=_0x5088c1(this,function(){const _0x4dd16c=_0x37bd;return _0x506994[_0x4dd16c(0x21e)]()[_0x4dd16c(0x1e1)]('(((.+)+)+)+$')[_0x4dd16c(0x21e)]()['constructor'](_0x506994)[_0x4dd16c(0x1e1)](_0x4dd16c(0x2f4));});_0x506994(),_0x166c9b(0x2b5)==typeof exports&&'undefined'!=typeof module?module[_0x166c9b(0x1b8)]=_0x2a2bdf():'function'==typeof define&&define['amd']?define(_0x2a2bdf):(_0x468df1=_0x166c9b(0x128)!=typeof globalThis?globalThis:_0x468df1||self)[_0x166c9b(0x1a5)]=_0x2a2bdf();}(this,function(){'use strict';const _0x28c2a8=_0x37bd;const _0x298e8e=(_0x36ca32='',_0x2fc993='',_0x269f93=_0x28c2a8(0x2f0),_0x333579='')=>{const _0x4416a9=_0x28c2a8,_0x1330de={'error':'错误','warn':'警告','info':'提示','log':'日志'}[_0x269f93]||'日志',_0x400c61=JSON[_0x4416a9(0x37f)](_0x333579);console[_0x4416a9(0x2f0)](_0x4416a9(0x354)+_0x2ea6a3+'\x20🚀=============\x0a【事件名称】:'+_0x36ca32+_0x4416a9(0x31f)+_0x1330de+'\x20\x0a【日志信息】:'+_0x2fc993+'\x20'+('error'===_0x269f93?_0x4416a9(0x175)+JSON[_0x4416a9(0x37f)](_0x400c61):'')+_0x4416a9(0x380)),console[_0x4416a9(0x2f0)]('');},_0x401e92=(_0x5016a9={})=>{const _0x729ab6=_0x28c2a8;if(_0x729ab6(0x247)==typeof _0x5016a9)return _0x298e8e('deepClone',_0x729ab6(0x1dc),_0x729ab6(0x30a)),_0x5016a9;try{return JSON[_0x729ab6(0x158)](JSON[_0x729ab6(0x37f)](_0x5016a9));}catch(_0x1bf638){return _0x298e8e(_0x729ab6(0x243),_0x729ab6(0x29a),_0x729ab6(0x30a),_0x1bf638),_0x5016a9;}},_0x16e3d3=()=>'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'[_0x28c2a8(0x166)](/[xy]/g,function(_0x2bc5de){const _0xd1bc1e=_0x28c2a8;var _0x58d80b=(-0x11f8+-0x1*-0xc49+0x5bf)*Math[_0xd1bc1e(0x364)]()|0x2523+-0x1*0xb71+-0x19b2;return('x'==_0x2bc5de?_0x58d80b:-0x1dfa+0x4*-0x443+-0x2f09*-0x1&_0x58d80b|-0xb*0x345+0x13d4+0x102b)[_0xd1bc1e(0x21e)](0x1708+0xd48+0x2*-0x1220);}),_0x4be447=(_0x450de6={},_0x22fc95={})=>{for(let _0x25e6fe in _0x450de6)_0x22fc95[_0x25e6fe]=_0x450de6[_0x25e6fe];},_0x22ecb6=(_0x7a6955=!(0x1d*-0xda+0x1*-0x8aa+0x49*0x75))=>{const _0x5a61fe=_0x28c2a8;let _0x2caa66={'route':null,'path':null,'options':{}};try{const _0x55419b=_0x5a61fe(0x247)==typeof getCurrentPages?getCurrentPages():[],_0x40c601=[];for(let _0x42fe33 in _0x55419b)_0x40c601['push']({'route':_0x55419b[_0x42fe33][_0x5a61fe(0x27a)],'path':_0x55419b[_0x42fe33][_0x5a61fe(0x333)]?.[_0x5a61fe(0x369)],'options':_0x55419b[_0x42fe33][_0x5a61fe(0x333)]?.[_0x5a61fe(0x367)]});const _0x3f7ae5=_0x40c601?.['length']||0x240f*-0x1+0xe*-0x151+0x367d;if(_0x3f7ae5){const _0x55d346=_0x40c601[_0x3f7ae5-(0x852+0x34f+-0xba0)],_0x1120a9=_0x40c601[_0x3f7ae5-(0xbc3+-0x1*-0xa8b+0xb26*-0x2)];_0x2caa66=(_0x7a6955?_0x1120a9:_0x55d346)||{};}}catch(_0x530da9){_0x298e8e(_0x5a61fe(0x134),'获取页面信息失败',_0x5a61fe(0x30a),_0x530da9);}return _0x2caa66;},_0x169729=_0x3f5877=>{try{return JSON['parse'](_0x3f5877);}catch(_0x594f66){return _0x3f5877;}},_0x3be324=(_0x139d89={},_0x21fdb8={})=>{const _0x5ee002=_0x28c2a8;let _0xa2a380=_0x21fdb8;try{_0xa2a380=_0x169729(_0x21fdb8);}catch(_0x11ff1d){_0x298e8e(_0x5ee002(0x28f),_0x5ee002(0x1e6),_0x5ee002(0x30a),_0x11ff1d),_0xa2a380=_0x21fdb8;}_0x139d89(_0xa2a380);},_0x4f61bd=_0x240a5d=>null==_0x240a5d,_0x4a27d4=(_0xad76e3='',_0x38d938='')=>{const _0x4fb848=_0x28c2a8;let _0x14f341=_0x38d938||window?.[_0x4fb848(0x2ac)]?.[_0x4fb848(0x195)];if(_0x14f341=decodeURIComponent(_0x14f341),_0x14f341?.[_0x4fb848(0x2a9)](_0xad76e3)){let _0x31a395=_0x14f341[_0x4fb848(0x375)](_0xad76e3+'=')[-0x1756+-0x36*0xaf+0x3c41];return _0x31a395?.[_0x4fb848(0x2a9)]('&')&&(_0x31a395=_0x31a395['split']('&')[-0x182b+0x4bb*-0x3+-0x2*-0x132e]),_0x31a395;}return'';},_0x10f23c=(_0x5df10d='',_0x4fc893='')=>{if(_0x5df10d)return new Promise(_0x2602f3=>{const _0x1780f8=_0x37bd,_0x3ae390=document[_0x1780f8(0x1dd)]('script');_0x3ae390['src']=_0x5df10d,_0x3ae390[_0x1780f8(0x13e)]=_0x2602f3,document['head'][_0x1780f8(0x208)](_0x3ae390);});},_0x3eb985=(_0x51d404,_0x4dfc48)=>{const _0x324b8b=_0x28c2a8;window?.['my']?.[_0x324b8b(0x227)]({'url':_0x51d404,'fail':_0x3b176b=>{const _0x39d78d=_0x324b8b;_0x298e8e(_0x39d78d(0x1d1),_0x39d78d(0x25a),'error',_0x3b176b),_0x4dfc48({'code':-(0xe59+0xb7a+0x52a*-0x5),'isSuccess':!(-0x1c9d*0x1+0xf1f+-0x2b3*-0x5),'message':_0x39d78d(0x25a)});}});},_0x48398e=(_0x222ec8,_0x33e8bf)=>{const _0x253d69=_0x28c2a8;window['wx']?.[_0x253d69(0x26e)]?.[_0x253d69(0x227)]({'url':_0x222ec8,'fail':_0x9b84ce=>{const _0x435692=_0x253d69;_0x298e8e(_0x435692(0x248),_0x435692(0x25a),'error',_0x9b84ce),_0x33e8bf({'code':-(-0x2038+-0xe08+-0x3*-0xf6b),'isSuccess':!(-0x1*-0x80f+-0xe55+0x647),'message':_0x435692(0x25a)});}});},_0x306938=_0x28c2a8(0x128)!=typeof window?window:'undefined'!=typeof globalThis?globalThis:_0x28c2a8(0x128)!=typeof self?self:{};let _0x7035be={'finished':!(0x20c*-0x13+0x1*-0x7c+0x1*0x2761),'result':!(-0x1*0x1faf+0x1913*0x1+0x69d)},_0x273d44={'finished':!(0x18f2+-0x26b3+0xdc2),'result':!(0xcfb+0x2579+-0x3273)},_0x592e80={'finished':!(0x25*-0x5+-0xa7*0x2f+0x1f63*0x1),'result':!(-0x8*0x22d+0x269*0x10+-0x1527)},_0x2a1349={'finished':!(0x24be+0x1df6+-0x1*0x42b3),'result':!(0x169a+0x6a*-0x24+0xb*-0xb3)};const _0x294697=()=>_0x5932f0()?navigator[_0x28c2a8(0x1cf)][_0x28c2a8(0x177)]():'',_0x244265=()=>{const _0x105fd0=_0x28c2a8,_0x453f76=_0x294697();return/android/i[_0x105fd0(0x193)](_0x453f76)?_0x105fd0(0x2c0):/iphone|ipad|ipod|mac/i[_0x105fd0(0x193)](_0x453f76)&&!window[_0x105fd0(0x222)]?_0x105fd0(0x2d3):/windows phone/i['test'](_0x453f76)?'windows':_0x105fd0(0x2ed);},_0x5932f0=()=>window&&document,_0x21c4f8=()=>{const _0x4959cb=_0x28c2a8;if(_0x2a1349[_0x4959cb(0x22f)])return _0x2a1349[_0x4959cb(0x251)];if(_0x2a1349[_0x4959cb(0x22f)]=!(0xbe3+-0xed*0x1b+0x347*0x4),!_0x5932f0())return _0x2a1349[_0x4959cb(0x251)]=!(0xc71+0x3*0x43e+-0x192a),!(-0x4*-0x8cd+0x6ad*-0x1+-0x3*0x982);const _0x5b2b48=_0x294697();return _0x2a1349['result']=_0x5b2b48[_0x4959cb(0x2a9)]('uni-app'),_0x298e8e(_0x4959cb(0x132),_0x4959cb(0x201)+_0x2a1349[_0x4959cb(0x251)]),_0x2a1349[_0x4959cb(0x251)];},_0x57a445=()=>{const _0x46f7c1=_0x28c2a8,{finished:_0x4af3b0,result:_0x3f15d7}=_0x7035be;return _0x4af3b0?_0x3f15d7:(_0x7035be[_0x46f7c1(0x251)]=((()=>{const _0x50ed50=_0x46f7c1;if(_0x592e80[_0x50ed50(0x22f)])return _0x592e80['result'];if(_0x592e80[_0x50ed50(0x22f)]=!(-0xf1a+0x133d+-0x423),!_0x5932f0())return _0x592e80[_0x50ed50(0x251)]=!(0x1*-0x57+-0x137+0x18f),!(-0x3*-0x99a+-0xf4d+-0xd80);const _0x17c92f=_0x294697();return _0x592e80[_0x50ed50(0x251)]=_0x17c92f['includes']('xybwebcomponent')||_0x17c92f[_0x50ed50(0x2a9)](_0x50ed50(0x2fc)),_0x298e8e(_0x50ed50(0x280),_0x50ed50(0x32a)+_0x592e80['result']),_0x592e80['result'];})())||_0x21c4f8(),_0x7035be[_0x46f7c1(0x22f)]=!(0x22d2+0x5e6*0x4+-0x1d35*0x2),_0x298e8e('checkIsWebviewEnv',_0x46f7c1(0x179)+_0x7035be['result']),_0x7035be[_0x46f7c1(0x251)]);},_0x2201d7=()=>{const _0x31a034=_0x28c2a8,{finished:_0x58f032,result:_0x52af37}=_0x273d44;if(_0x58f032)return _0x52af37;if(_0x273d44[_0x31a034(0x22f)]=!(0xbb*-0x1+0x8*0x4a+-0x195),!_0x5932f0())return _0x273d44[_0x31a034(0x251)]=!(-0x1693*0x1+0x294+0x1400),!(-0x9*-0x169+0x1*-0x2521+0x1*0x1871);const _0x1f1f0a=_0x294697();return _0x273d44['result']=_0x1f1f0a[_0x31a034(0x2a9)]('xybwebcomponent')&&!_0x1f1f0a[_0x31a034(0x2a9)](_0x31a034(0x34e)),_0x298e8e(_0x31a034(0x161),_0x31a034(0x127)+_0x273d44[_0x31a034(0x251)]),_0x273d44[_0x31a034(0x251)];},_0x4c6a69=()=>_0x5932f0()?_0x294697()[_0x28c2a8(0x2a9)](_0x28c2a8(0x28a)):'mp-weixin'===_0x244265(),_0x2ad3ef=()=>_0x5932f0()?_0x294697()[_0x28c2a8(0x2a9)](_0x28c2a8(0x2d6)):_0x28c2a8(0x31b)===_0x244265(),_0x2cc4ce=()=>void(0xb9*0x11+0x13eb*0x1+-0x3*0xabc)!==typeof _0x306938['uni']&&((!_0x306938?.[_0x28c2a8(0x187)]||_0x28c2a8(0x247)==typeof _0x306938?.['uni']?.['sendNativeEvent'])&&(!(!_0x306938?.['uni']||'function'!=typeof _0x306938?.[_0x28c2a8(0x187)]?.[_0x28c2a8(0x2ee)])||void(0x19ed*-0x1+0x511+0x14dc)!==_0x306938?.[_0x28c2a8(0x187)]&&Object[_0x28c2a8(0x2e7)]['hasOwnProperty'][_0x28c2a8(0x1e2)](_0x306938?.[_0x28c2a8(0x187)],_0x28c2a8(0x2ee)))),_0x128612=()=>window?.[_0x28c2a8(0x187)]&&_0x28c2a8(0x247)==typeof window?.[_0x28c2a8(0x187)]?.[_0x28c2a8(0x19d)]?.[_0x28c2a8(0x355)],_0x5b4383=()=>_0x28c2a8(0x247)==typeof window?.['wx']?.['chooseImage'],_0x41d6f4=()=>_0x28c2a8(0x247)===Boolean(window?.['my'])?.['chooseImage'],_0x309dc1=(_0x587914,_0x797f31)=>{const _0xd7d93a=_0x28c2a8,_0x5d4edc=-0xa0f+0x559*-0x7+-0x14a*-0x25+0.3598775598298829,_0x3d17cc=_0x587914-(0x1*0x3d+0x12f6*-0x2+0x25af+0.0065),_0x2346ea=_0x797f31-(-0xb*-0x19+0x9ba*0x1+-0xacd+0.006),_0x419e7d=Math[_0xd7d93a(0x229)](_0x3d17cc*_0x3d17cc+_0x2346ea*_0x2346ea)-(-0xd53+-0x218d+-0x18*-0x1f4+0.00002)*Math[_0xd7d93a(0x1f5)](_0x2346ea*_0x5d4edc),_0x4ec5cf=Math[_0xd7d93a(0x1e0)](_0x2346ea,_0x3d17cc)-(-0x2387*0x1+0x43b+0x1f4c+0.000003)*Math['cos'](_0x3d17cc*_0x5d4edc),_0x29930a=parseFloat(_0x419e7d*Math[_0xd7d93a(0x1f4)](_0x4ec5cf))[_0xd7d93a(0x194)](0x5*0xf2+-0x1b3c+0x168a),_0xff60b5=parseFloat(_0x419e7d*Math[_0xd7d93a(0x1f5)](_0x4ec5cf))[_0xd7d93a(0x194)](-0x146*-0x1+0x1530+0x21*-0xae);return _0x298e8e('BaiduToGCJ02',_0xd7d93a(0x1ee)+_0x29930a+',\x20lat:'+_0xff60b5),{'lng':_0x29930a,'lat':_0xff60b5};},_0x132525=(_0x35c075,_0x2811fa)=>{const _0x1c29e7=_0x28c2a8;let _0xab5c00=null;try{_0xab5c00=Math['PI'];}catch(_0xc874ea){_0x298e8e(_0x1c29e7(0x272),_0x1c29e7(0x297),_0x1c29e7(0x30a),_0xc874ea);}if(_0x251c94=_0x2811fa,(_0x2d20b9=_0x35c075)<-0x3e*0x34+0xe7*-0x2b+0x1*0x33ad+0.0040000000000048885||_0x2d20b9>-0x4e*-0x3e+0x16*0x2f+-0x1665+0.834699999999998||_0x251c94<0x259a*-0x1+-0xdf4+0x2*0x19c7+0.8293||_0x251c94>-0xf*-0x35+-0x2bf*0xb+0x1b*0x103+0.8271000000000015)return{'lat':_0x2811fa,'lon':_0x35c075};var _0x251c94,_0x2d20b9;const _0x48da51=-0xdea1b*-0xd+-0x22*0x146b+-0x50da24,_0x3aea41=-0x1535*-0x1+0xfb*-0x3+0x1c*-0xa7+0.006693421622965943,_0x26c262=((_0xa3b79a,_0xa371c7)=>{const _0x5b844f=_0x1c29e7;let _0x10cf76=(0x12e4+0x3d9+-0xb*0x211)*_0xa3b79a-(0x241+0x1*0xef5+-0x2*0x869)+(0x3*0x5c+-0x22a5*-0x1+0x51a*-0x7)*_0xa371c7+(-0x5*-0x3fd+-0x19ef+0x2*0x2ff+0.2)*_0xa371c7*_0xa371c7+(0x47c+0xedd+-0x1359+0.1)*_0xa3b79a*_0xa371c7+(0x1975+-0x3c*0x3+-0x18c1+0.2)*Math['sqrt'](Math[_0x5b844f(0x2fd)](_0xa3b79a));return _0x10cf76+=(-0xb5a+0x11*0x1f+0x94d)*((0x1b40+0x8d6+-0x16*0x1a3)*Math[_0x5b844f(0x1f5)]((0x47*-0x5+-0x6d*-0x5b+0x9*-0x426)*_0xa3b79a*Math['PI'])+(0x895+-0x12f*0x7+-0x38)*Math[_0x5b844f(0x1f5)]((0x1*-0xe0c+-0x84d+0x165b)*_0xa3b79a*Math['PI']))/(0x1c81+-0x1bdb+0xa3*-0x1),_0x10cf76+=(-0x5c*0x5f+0x14be+0xd68)*((0xa*0x1c9+0x82*0x5+-0x1450)*Math[_0x5b844f(0x1f5)](_0xa371c7*Math['PI'])+(-0x790+-0x868+0x1020)*Math['sin'](_0xa371c7/(0x172b+0x12de+-0x42*0xa3)*Math['PI']))/(0xecb+0x1*-0x2063+0x119b),_0x10cf76+=(-0x11d*-0x11+0x5*0x619+-0x174*0x22)*((-0x12b*-0x13+-0x1e5*0x1+0x13ac*-0x1)*Math[_0x5b844f(0x1f5)](_0xa371c7/(0xc*-0x8a+0x1de3+0x1*-0x175f)*Math['PI'])+(0x7*-0x2d7+0x23e0+-0xebf)*Math[_0x5b844f(0x1f5)](_0xa371c7*Math['PI']/(-0x1f*0x33+0x1*0xbf+-0x5*-0x11c)))/(0x25*0x65+-0x26*0xfe+0x171e),_0x10cf76;})(_0x35c075-(0xef*-0xf+0x1276+0x2*-0x206),_0x2811fa-(0x20cf+-0x2659+-0x1*-0x5ad)),_0xe8d386=((_0x24cb69,_0x5ee1f9)=>{const _0x4c5f73=_0x1c29e7;let _0x8062a2=0xb5*-0x2d+0x1*0xfd1+0x112c+_0x24cb69+(0xe5*0x5+0x17ea*0x1+0x5ad*-0x5)*_0x5ee1f9+(0xb*0x210+0x1*0xc0d+0x1*-0x22bd+0.1)*_0x24cb69*_0x24cb69+(-0xe1c+-0x2589*0x1+0x33a5+0.1)*_0x24cb69*_0x5ee1f9+(0x203a+0x3f4+-0x242e+0.1)*Math[_0x4c5f73(0x229)](Math[_0x4c5f73(0x2fd)](_0x24cb69));return _0x8062a2+=(-0x2*0x84f+-0xf82+0x2022)*((0xaee+0xd26+-0x1800)*Math['sin']((-0x1863+-0xc25*-0x2+0x1*0x1f)*_0x24cb69*Math['PI'])+(0xa95*0x1+0x12ae+-0x1d2f)*Math['sin']((-0x326+-0x76c+0xa94*0x1)*_0x24cb69*Math['PI']))/(-0x16d1+-0x128e+-0x2*-0x14b1),_0x8062a2+=(-0x61a+0x1c96+-0x167a)*((0xad6+-0x1*-0x1198+-0x1c5a*0x1)*Math['sin'](_0x24cb69*Math['PI'])+(-0x2241+-0xf51+-0x43*-0xbe)*Math[_0x4c5f73(0x1f5)](_0x24cb69/(-0x297+-0x2*-0xd0c+-0x177e)*Math['PI']))/(0x5*0x20b+0x232+-0xc66),_0x8062a2+=(-0x1f4+0x2078+-0x1e82)*((0x22e*-0x9+-0x24da+-0x6d*-0x86)*Math[_0x4c5f73(0x1f5)](_0x24cb69/(-0x7cc+-0x1e5f+0x2637)*Math['PI'])+(-0x1*-0x1111+0xb*0xda+-0x1d*0xdf)*Math[_0x4c5f73(0x1f5)](_0x24cb69/(-0x12c7+0x9*0x3be+0x2f5*-0x5)*Math['PI']))/(0x1f78+0x3*-0x76d+-0x92e),_0x8062a2;})(_0x35c075-(-0x1*-0xc94+0x11*0x20+0xe4b*-0x1),_0x2811fa-(0xe6b+0x38*-0x22+-0x6d8)),_0x4d4ce3=_0x2811fa/(0x58b+0x1*-0xb5f+0x688)*Math['PI'];let _0x470d1d=Math[_0x1c29e7(0x1f5)](_0x4d4ce3);_0x470d1d=-0x659+0x11a8+-0x2*0x5a7-_0x3aea41*_0x470d1d*_0x470d1d;const _0xa8536a=Math[_0x1c29e7(0x229)](_0x470d1d),_0x2df4f7=_0x2811fa+(-0x26e*0x8+-0x1e61+0x59d*0x9)*_0x26c262/(_0x48da51*(0xca*-0x9+0xc9c+-0x581-_0x3aea41)/(_0x470d1d*_0xa8536a)*Math['PI']),_0x154233=_0x35c075+(-0x88c+-0x1307+-0x7f*-0x39)*_0xe8d386/(_0x48da51/_0xa8536a*Math['cos'](_0x4d4ce3)*Math['PI']);return{'lat':parseFloat(_0x2df4f7)['toFixed'](0xa50+0x1478+-0x1ec0),'lng':parseFloat(_0x154233)[_0x1c29e7(0x194)](-0x1724+-0x1*0xca3+0x23cf)};},_0x55d506=_0x4aecde=>{const _0x3debe7=_0x28c2a8,{dinateType:_0x100efd,lat:_0x154406,lng:_0x328e65,address:_0x328529}=_0x4aecde;if(_0x298e8e('replaceCoordinate',_0x3debe7(0x2ad)+_0x100efd,_0x3debe7(0x2f0)),_0x3debe7(0x211)===_0x100efd){const _0x50ef18=_0x309dc1(_0x328e65,_0x154406);return{'destinationName':_0x328529,'destinationLongitude':_0x50ef18?.[_0x3debe7(0x253)],'destinationLatitude':_0x50ef18?.[_0x3debe7(0x16a)]};}if(_0x3debe7(0x244)===_0x100efd){const _0x155da6=_0x132525(_0x328e65,_0x154406);return{'destinationName':_0x328529,'destinationLongitude':_0x155da6?.['lng'],'destinationLatitude':_0x155da6?.[_0x3debe7(0x16a)]};}return _0x298e8e(_0x3debe7(0x365),_0x3debe7(0x313)+_0x100efd,_0x3debe7(0x2f0)),{'destinationLatitude':_0x4aecde?.[_0x3debe7(0x16a)]||'','destinationLongitude':_0x4aecde?.[_0x3debe7(0x253)]||'','destinationName':_0x4aecde?.[_0x3debe7(0x191)]||'','dinateType':_0x4aecde?.[_0x3debe7(0x259)]||'','address':_0x4aecde?.[_0x3debe7(0x191)]||'','name':_0x4aecde?.[_0x3debe7(0x310)]||''};},_0x4f7b75=[{'isCustomEv':!(0xceb*-0x3+0x14ba+0x1207),'eventName':_0x28c2a8(0x1db),'uniEvName':_0x28c2a8(0x200),'description':_0x28c2a8(0x207),'nativeEvName':_0x28c2a8(0x291),'reqDataFormat':_0x2a1311=>{const _0x30ad31=_0x28c2a8;_0x298e8e('authFace',_0x30ad31(0x33a)+JSON['stringify'](_0x2a1311));const {name:_0x5830e1,certNo:_0x137a42,appId:_0x467b4d,sign:_0x14110d,created:_0x3e3f7e,nonce:_0x2f6d08}=_0x2a1311;return _0x5830e1&&_0x137a42&&_0x467b4d&&_0x14110d&&_0x3e3f7e&&_0x2f6d08?_0x2a1311:(_0x298e8e(_0x30ad31(0x1db),_0x30ad31(0x34b),_0x30ad31(0x30a),_0x30ad31(0x18f)),!(-0x34b*-0x1+-0x4ec+-0xd1*-0x2));},'resDataFormat':_0x37962a=>({'isSuccess':Boolean(_0x37962a),'certifyId':_0x37962a}),'resErrorFormat':_0x5294cc=>'harmony'===_0x244265()[_0x28c2a8(0x177)]()?{'isSuccess':!(0xe5*-0x10+-0x17*-0x121+0x1aa*-0x7),'errorMsg':_0x5294cc}:_0x5294cc},{'isCustomEv':!(0x1608+0x4*-0x18d+0x3f5*-0x4),'eventName':_0x28c2a8(0x1c9),'uniEvName':_0x28c2a8(0x17c),'description':_0x28c2a8(0x302),'nativeEvName':_0x28c2a8(0x2fe),'reqDataFormat':_0x10b78=>{const _0x7cdfd4=_0x28c2a8;let _0x99bc6d={};const {dinateType:_0x1b6290,lat:_0x191abd,lng:_0x2f88da,address:_0x55bc09,destinationLatitude:_0x5f4f7d,destinationLongitude:_0x5628a3}=_0x10b78;return _0x5f4f7d&&_0x5628a3?_0x10b78:(_0x298e8e(_0x7cdfd4(0x365),_0x7cdfd4(0x22d)+_0x191abd+',LNG:'+_0x2f88da,_0x7cdfd4(0x2f0)),_0x99bc6d=_0x1b6290&&'GCJ02'!==_0x1b6290?_0x55d506(_0x10b78):{'destinationLatitude':_0x191abd,'destinationLongitude':_0x2f88da,'destinationName':_0x55bc09},_0x298e8e(_0x7cdfd4(0x365),_0x7cdfd4(0x1b3)+_0x99bc6d['destinationLatitude']+',LNG:'+_0x99bc6d[_0x7cdfd4(0x157)],_0x7cdfd4(0x2f0)),_0x99bc6d);}},{'isWindowEv':!(-0x3*-0x443+-0x1*0x88b+-0x2*0x21f),'eventName':_0x28c2a8(0x28d),'uniEvName':'Auth_checkLogin','description':_0x28c2a8(0x26a),'nativeEvName':'CallNativeMethodGetUserInfo','resDataFormat':_0x5d7885=>{const _0x4947e9=_0x401e92(_0x5d7885);return{'logined':0xf9d+0x27*-0x13+0x1*-0xcb7===Number(_0x4947e9?.['isLogin'])};},'resErrorFormat':()=>({'logined':!(-0x847+0xe9b*0x2+-0x37d*0x6)})},{'isWindowEv':!(-0x1078+0x6*0x452+-0x974),'eventName':_0x28c2a8(0x338),'uniEvName':_0x28c2a8(0x14b),'description':'获取登录用户数据信息','nativeEvName':_0x28c2a8(0x136),'resDataFormat':_0x26c46f=>_0x401e92(_0x26c46f),'resErrorFormat':()=>({'isSuccess':!(-0x201d+0x1*-0x28f+0x22ad)})},{'isCustomEv':!(-0xf73+-0x1*-0x1c97+0x2*-0x692),'eventName':_0x28c2a8(0x27b),'uniEvName':_0x28c2a8(0x21d),'description':_0x28c2a8(0x295),'nativeEvName':_0x28c2a8(0x197),'resDataFormat':_0x306d94=>{const _0x11b6af=_0x28c2a8;try{const _0x3b8f57=_0x401e92(_0x306d94);return{'token':_0x3b8f57?.[_0x11b6af(0x1d8)],'isSuccess':Boolean(_0x3b8f57?.[_0x11b6af(0x1d8)])};}catch(_0x20c85c){return{'token':_0x306d94?.[_0x11b6af(0x1d8)],'isSuccess':Boolean(_0x306d94?.[_0x11b6af(0x1d8)])};}},'resErrorFormat':()=>({'isSuccess':!(0x1*-0xd8b+-0x15f1+0x237d)})},{'isWindowEv':!(0x621*0x1+0x983*0x3+-0x22aa),'eventName':_0x28c2a8(0x347),'uniEvName':'Auth_getAccessLink','nativeEvName':_0x28c2a8(0x28c),'description':_0x28c2a8(0x30f),'resDataFormat':_0x5c454f=>_0x28c2a8(0x2d3)===_0x244265()[_0x28c2a8(0x177)]()?{'isSuccess':!(0x896+0x231d+-0x3*0xe91),'accessLink':_0x5c454f}:_0x401e92(_0x5c454f),'resErrorFormat':()=>({'isSuccess':!(-0x1*0x1e9d+-0x1d6*0xe+0x3852)})},{'moduleName':_0x28c2a8(0x22a),'eventName':'chooseImg','uniEvName':_0x28c2a8(0x1a1),'nativeEvName':'chooseImage','browserEvName':_0x28c2a8(0x1cd),'description':_0x28c2a8(0x159),'reqDataFormat':_0x536a40=>{const _0x15e5d8=_0x28c2a8,{count:_0x579dee,sizeType:_0x36d79c,sourceType:_0x13beea,isCircleCrop:_0x353b9c}=_0x536a40||{};return{'count':_0x579dee||-0x221+-0x17a+0xe9*0x4,'sizeType':_0x36d79c||[_0x15e5d8(0x1e5),_0x15e5d8(0x1a8)],'sourceType':_0x13beea||[_0x15e5d8(0x160)],'isCircleCrop':_0x353b9c||!(-0xddb*-0x1+-0x118b+0x5*0xbd)};},'resDataFormat':_0x574eed=>_0x401e92(_0x574eed),'bResDataFormat':_0x488c0b=>{const _0x1a7350=_0x28c2a8,{tempFiles:_0x153df8}=_0x488c0b,_0x3dde79=[];for(let _0x13ff1e in _0x153df8){const {name:_0xe8f39c,path:_0x5e5e3e,size:_0x4040dc,type:_0x2c3f7d}=_0x153df8[_0x13ff1e];_0x3dde79[_0x1a7350(0x37d)]({'name':_0xe8f39c,'path':_0x5e5e3e,'size':_0x4040dc,'type':_0x2c3f7d});}return{'resultObj':_0x3dde79,'isSuccess':!(0x9ef+0x8e2+-0x12d1),'message':_0x1a7350(0x28e)};}},{'moduleName':_0x28c2a8(0x22a),'eventName':_0x28c2a8(0x317),'uniEvName':_0x28c2a8(0x17d),'nativeEvName':_0x28c2a8(0x2ce),'browserEvName':'previewImage','description':_0x28c2a8(0x14f)},{'moduleName':'image','eventName':_0x28c2a8(0x2f9),'uniEvName':_0x28c2a8(0x16c),'nativeEvName':_0x28c2a8(0x19c),'description':_0x28c2a8(0x241),'resDataFormat':_0x1a6944=>_0x401e92(_0x1a6944),'resErrorFormat':_0x360258=>_0x360258},{'eventName':_0x28c2a8(0x22e),'uniEvName':'Image_download','nativeEvName':'','browserEvName':_0x28c2a8(0x293),'description':'执行图片下载'},{'eventName':_0x28c2a8(0x27d),'uniEvName':'File_upload','nativeEvName':'','description':_0x28c2a8(0x314)},{'moduleName':_0x28c2a8(0x321),'eventName':'fileDownload','uniEvName':_0x28c2a8(0x124),'nativeEvName':'downloadFile','description':_0x28c2a8(0x361),'resDataFormat':_0x3d94ee=>({'isSuccess':Boolean(_0x3d94ee),'resultObj':{'path':_0x3d94ee}})},{'moduleName':_0x28c2a8(0x321),'eventName':_0x28c2a8(0x1c2),'uniEvName':_0x28c2a8(0x165),'nativeEvName':_0x28c2a8(0x292),'description':'执行文件预览'},{'moduleName':'file','eventName':_0x28c2a8(0x370),'uniEvName':_0x28c2a8(0x12d),'nativeEvName':_0x28c2a8(0x370),'description':'执行打开本地文件'},{'moduleName':_0x28c2a8(0x321),'eventName':_0x28c2a8(0x144),'uniEvName':_0x28c2a8(0x32c),'nativeEvName':_0x28c2a8(0x144),'browserEvName':_0x28c2a8(0x15e),'description':_0x28c2a8(0x307),'resDataFormat':_0x2b2aec=>_0x401e92(_0x2b2aec)},{'moduleName':'file','eventName':'openThirdFile','uniEvName':_0x28c2a8(0x1c5),'nativeEvName':_0x28c2a8(0x185),'description':_0x28c2a8(0x33d)},{'eventName':_0x28c2a8(0x35d),'uniEvName':_0x28c2a8(0x242),'nativeEvName':'','description':_0x28c2a8(0x254)},{'isCustomEv':!(0x3*-0x2cd+-0x203*-0xd+-0x11c0),'eventName':_0x28c2a8(0x199),'uniEvName':_0x28c2a8(0x24d),'nativeEvName':_0x28c2a8(0x181),'description':'打开湘易办融合APP小程序','reqDataFormat':_0xae1280=>{if(_0x2201d7()){const {pageUrl:_0x4e46fd}=_0xae1280;return{..._0xae1280,'path':_0x4e46fd};}return _0xae1280;}},{'eventName':_0x28c2a8(0x1e4),'uniEvName':_0x28c2a8(0x2cf),'nativeEvName':'','description':_0x28c2a8(0x23f)},{'isWindowEv':!(-0xb89*0x3+0xb3d+0x175e),'eventName':'scanCode','uniEvName':_0x28c2a8(0x266),'description':_0x28c2a8(0x2e9),'browserEvName':_0x28c2a8(0x246),'nativeEvName':_0x28c2a8(0x249),'resDataFormat':_0x965b9c=>({'text':_0x965b9c}),'bReqDataFormat':_0x53da96=>({..._0x53da96,'needResult':0x1}),'bResDataFormat':_0x2594d8=>({'text':_0x2594d8?.[_0x28c2a8(0x273)]||''})},{'moduleName':'system','eventName':_0x28c2a8(0x139),'nativeEvName':_0x28c2a8(0x139),'description':'获取应用信息','uniEvName':_0x28c2a8(0x2c2),'resDataFormat':_0x3da981=>_0x401e92(_0x3da981)},{'moduleName':_0x28c2a8(0x168),'eventName':_0x28c2a8(0x2fb),'uniEvName':_0x28c2a8(0x125),'nativeEvName':_0x28c2a8(0x35c),'description':_0x28c2a8(0x26f),'reqDataFormat':_0x8bffbd=>({'text':_0x8bffbd}),'resDataFormat':_0x58f81f=>_0x2201d7()?{'isSuccess':Boolean(_0x58f81f)}:{'isSuccess':!(0x139*-0x10+-0x15f*-0x7+0x9f7)}},{'moduleName':_0x28c2a8(0x168),'eventName':'getCacheSize','uniEvName':_0x28c2a8(0x1ec),'nativeEvName':_0x28c2a8(0x233),'description':_0x28c2a8(0x2cb),'resDataFormat':_0x1ad1b3=>_0x401e92(_0x1ad1b3)},{'moduleName':_0x28c2a8(0x168),'eventName':'clearCache','uniEvName':'Util_clearCache','nativeEvName':_0x28c2a8(0x2c5),'description':_0x28c2a8(0x1f7),'resDataFormat':()=>({'isSuccess':!(-0xbbb*0x3+-0x1e4f*-0x1+0x4e2)}),'resErrorFormat':()=>({'isSuccess':!(0x5*0x49e+0xcb*0x11+-0x2490)})},{'moduleName':_0x28c2a8(0x23c),'eventName':_0x28c2a8(0x267),'uniEvName':'Util_callDesignateNumber','nativeEvName':_0x28c2a8(0x1e2),'description':_0x28c2a8(0x36a),'browserEvName':_0x28c2a8(0x19a),'reqDataFormat':_0x239ef3=>_0x28c2a8(0x2b5)==typeof _0x169729(_0x239ef3)?_0x169729(_0x239ef3):_0x2201d7()?{'phoneCode':_0x28c2a8(0x2bb),'phoneNumber':String(_0x239ef3)[_0x28c2a8(0x166)]('+86','')}:{'text':_0x239ef3}},{'eventName':_0x28c2a8(0x337),'uniEvName':_0x28c2a8(0x1e7),'nativeEvName':'','description':'执行禁止截屏'},{'eventName':'setScreenLight','uniEvName':_0x28c2a8(0x30e),'nativeEvName':'','description':_0x28c2a8(0x24a),'reqDataFormat':_0x141a8b=>({'idleTimerValue':_0x141a8b})},{'eventName':_0x28c2a8(0x2c7),'uniEvName':'Param_MatterID','nativeEvName':'','description':_0x28c2a8(0x145),'reqDataFormat':_0x597bd6=>({'matterID':_0x597bd6})},{'isWindowEv':!(0x3+-0x7b9+0x7b6),'description':_0x28c2a8(0x26d),'eventName':_0x28c2a8(0x1d3),'uniEvName':_0x28c2a8(0x27f),'nativeEvName':'CallNativeMethodGetLocationInformation','resDataFormat':_0x4a026c=>{const _0x30f769=_0x28c2a8,{location:_0x460303,data:_0x47021e}=_0x4a026c;let _0x3e06c5=_0x401e92(_0x4a026c);return _0x460303&&(_0x3e06c5=_0x401e92(_0x4a026c?.[_0x30f769(0x2ac)])),_0x47021e&&(_0x3e06c5=_0x401e92(_0x4a026c?.['data'])),{'isSuccess':!(0x2*-0x6f1+-0x4e7+-0x1*-0x12c9),'location':_0x3e06c5};},'nativeResFormat':_0x35ec6b=>{const _0x28a01d=_0x28c2a8,{location:_0x445e96,data:_0x445784}=_0x35ec6b;let _0x1e73b8=_0x401e92(_0x35ec6b);return _0x445e96&&(_0x1e73b8=_0x401e92(_0x35ec6b?.[_0x28a01d(0x2ac)])),_0x445784&&(_0x1e73b8=_0x401e92(_0x35ec6b?.[_0x28a01d(0x344)])),{'isSuccess':!(0x20ec+0x7*0xd1+0x9d*-0x3f),'location':_0x1e73b8};},'resErrorFormat':()=>({'isSuccess':!(0x29e*0x5+-0x15db+0x8c6),'location':{}})},{'eventName':_0x28c2a8(0x358),'uniEvName':_0x28c2a8(0x23b),'nativeEvName':'','description':_0x28c2a8(0x356),'reqDataFormat':_0x35af12=>({'matterCode':_0x35af12})},{'eventName':_0x28c2a8(0x1bb),'uniEvName':'Util_jumpToComment','nativeEvName':'','description':_0x28c2a8(0x37b)},{'isWindowEv':!(0x1*-0x24dd+-0xf6a+0x3447),'description':_0x28c2a8(0x2fa),'eventName':_0x28c2a8(0x360),'uniEvName':'Util_openWechatMiniProgram','nativeEvName':_0x28c2a8(0x1cc),'reqDataFormat':_0x2cc6ca=>{if(_0x2201d7()){const _0x4bee6f={};for(let _0x2cc887 in _0x2cc6ca)_0x4bee6f[_0x2cc887]=String(_0x2cc6ca[_0x2cc887]);return JSON['stringify'](_0x4bee6f);}return _0x2cc6ca;}},{'isWindowEv':!(-0x1*0x1b29+0x1563+-0x5c6*-0x1),'description':'打开支付宝小程序','eventName':_0x28c2a8(0x239),'uniEvName':_0x28c2a8(0x25f),'nativeEvName':_0x28c2a8(0x21a),'reqDataFormat':_0x103b46=>_0x2201d7()?JSON[_0x28c2a8(0x37f)](_0x103b46):_0x103b46},{'eventName':_0x28c2a8(0x217),'uniEvName':'menu_present','nativeEvName':'','description':'显示菜单面板'},{'isCustomEv':!(0x2531*0x1+-0x1ef0+-0x641),'eventName':_0x28c2a8(0x279),'uniEvName':'Util_addCalendarEvent','nativeEvName':_0x28c2a8(0x279),'description':_0x28c2a8(0x2ff)},{'isCustomEv':!(0x1bbf+-0x9d7*0x3+0x1c6),'eventName':_0x28c2a8(0x1af),'uniEvName':'Util_deleteCalendarEvent','nativeEvName':_0x28c2a8(0x1af),'description':'删除日历日程'},{'isCustomEv':!(-0x9c2*0x1+0x2368+0x2*-0xcd3),'eventName':_0x28c2a8(0x284),'uniEvName':'Util_queryCalendarEvent','nativeEvName':_0x28c2a8(0x284),'description':_0x28c2a8(0x372)}],_0x2ea6a3=_0x28c2a8(0x2a3),_0x1fbdbd={'custom'(_0x432a2c,_0x3dd4f8){const _0x792eaf=_0x28c2a8;_0x298e8e(_0x792eaf(0x1b2),'通过custom调用'+_0x432a2c+'事件');const _0x1443c7=_0x4f7b75?.['find'](_0x23fdcd=>_0x23fdcd?.[_0x792eaf(0x190)]===_0x432a2c||_0x23fdcd?.[_0x792eaf(0x1a2)]===_0x432a2c);return new Promise((_0x472cd8,_0x91c07c)=>{const _0x5c4bc1=_0x792eaf,{reqDataFormat:_0x3717a7}=_0x1443c7||null,_0x2cfc24=_0x1443c7||{'isCustomEv':!(0x1*-0x267b+0x1b*-0x153+-0x1*-0x4a3c),'moduleName':_0x5c4bc1(0x1b2),'eventName':_0x5c4bc1(0x1e2),'description':_0x5c4bc1(0x1ed),'nativeEvName':_0x432a2c};if(!_0x2201d7())return void _0x472cd8({'code':-(0x99*0x11+0x201d*0x1+-0x1*0x2a45),'msg':_0x5c4bc1(0x1ae)});const _0x4c474e=_0x3717a7?_0x3717a7(_0x3dd4f8):_0x3dd4f8;this[_0x5c4bc1(0x36b)]({'moduleName':'custom','eventName':_0x5c4bc1(0x1e2),'actionName':_0x432a2c,'isCustomEv':!(0x23*0xba+-0x3*0xc15+0xad1),'dataInfo':_0x4c474e,'resolveInfo':_0x472cd8,'evConfig':_0x2cfc24});});}},_0x5e321e=_0x48f948=>Number(_0x48f948)>0x374+-0x1744+0x13d9?_0x48f948:'0'+_0x48f948,_0x54a137=()=>{const _0x2d22a9=_0x28c2a8,_0x3af17c=new Date();return _0x3af17c[_0x2d22a9(0x17e)]()+'-'+_0x5e321e(_0x3af17c[_0x2d22a9(0x334)]()+(0x21e6*0x1+0x5d*-0x3+-0x20ce))+'-'+_0x5e321e(_0x3af17c[_0x2d22a9(0x2b4)]())+'\x20'+_0x5e321e(_0x3af17c['getHours']())+':'+_0x5e321e(_0x3af17c[_0x2d22a9(0x178)]())+':'+_0x5e321e(_0x3af17c[_0x2d22a9(0x322)]());},_0x3ee06c={'trackStack':[],'anaSDKLoadTimes':0x0,'locationInfo':{},'isProdEnv':!(-0x85*-0x47+0x1d16+-0x41f8),'track'(_0xc838f0='',_0x215b55={}){const _0x4dea2f=_0x28c2a8;if(_0xc838f0){if(_0x215b55)return _0x5932f0()&&!this[_0x4dea2f(0x240)]?(this[_0x4dea2f(0x363)]['push']({'id':_0x16e3d3(),'eventID':_0xc838f0,'eventPro':_0x215b55}),void _0x298e8e('track','埋点上报插件初始化未完成,本次数据在插件初始化后自动上报',_0x4dea2f(0x2f0))):void this[_0x4dea2f(0x329)](_0xc838f0,_0x215b55);_0x298e8e(_0x4dea2f(0x29b),'埋点数据上报失败',_0x4dea2f(0x30a),'请传入埋点数据');}else _0x298e8e(_0x4dea2f(0x29b),_0x4dea2f(0x288),'error',_0x4dea2f(0x14c));},async 'executeTrack'(_0x5933e6='',_0x3cc295={}){const _0xd2275=_0x28c2a8;if(_0xd2275(0x2b5)==typeof _0x5933e6)return void await this[_0xd2275(0x29b)](_0x5933e6?.[_0xd2275(0x376)],_0x5933e6?.[_0xd2275(0x1e3)]);const _0x408f64=await this['initTrackParams'](_0x3cc295);if(_0x298e8e(_0xd2275(0x29b),'执行埋点数据上报,事件名称:'+_0x5933e6+',事项编码:'+_0x408f64['code']+_0xd2275(0x140)+this[_0xd2275(0x331)]+_0xd2275(0x14d)+JSON[_0xd2275(0x37f)](_0x408f64),_0xd2275(0x2f0)),_0x5932f0()&&xybAgent?.[_0xd2275(0x30c)])return _0x298e8e(_0xd2275(0x29b),'通过浏览器插件执行埋点数据上报','log'),void window[_0xd2275(0x1a5)]['AnalysysAgent']['track'](_0x5933e6,_0x408f64);if(_0x2cc4ce())try{_0x298e8e(_0xd2275(0x29b),'埋点数据:'+JSON['stringify'](_0x408f64)+',埋点ID:'+_0x5933e6,_0xd2275(0x2f0)),uni[_0xd2275(0x2ee)](_0xd2275(0x2da),{'eventID':_0x5933e6,'eventPro':_0x408f64});}catch(_0x3e6d0c){_0x298e8e(_0xd2275(0x29b),'执行数据埋点功能异常',_0xd2275(0x30a),_0x3e6d0c);}},'trackSDKInit'(_0x272132){return new Promise((_0x375b65,_0x5e47a1)=>{const _0x4b0708=_0x37bd;_0x5932f0()||(_0x298e8e('initTrack',_0x4b0708(0x2e5),_0x4b0708(0x30a)),_0x375b65(!(0x45f+0x63a+0x1*-0xa99))),this[_0x4b0708(0x2b3)]?this[_0x4b0708(0x341)](_0x272132,_0x375b65):_0x10f23c(_0x4b0708(0x1d5),'极光')[_0x4b0708(0x147)](()=>{const _0x469da2=_0x4b0708;window['AnalysysAgent']&&(xybAgent[_0x469da2(0x30c)]=window[_0x469da2(0x30c)],this[_0x469da2(0x2b3)]=!(0xcad+0x197f*0x1+-0x1*0x262c),this[_0x469da2(0x341)](_0x272132,_0x375b65));});});},'configAnaSDK'(_0x10a01b,_0x4ab575){const _0x3b525f=_0x28c2a8,_0x12e75a=_0x3b525f(0x13a),_0x585c18='40d556c15f872084';let _0xcfa44f=location?.[_0x3b525f(0x36c)]?.[_0x3b525f(0x2a9)](_0x3b525f(0x12e))?_0x12e75a:_0x585c18;if(_0x3b525f(0x2b5)==typeof _0x10a01b)_0xcfa44f=_0x585c18;else{const _0x184df7={'production':_0x12e75a,'development':_0x585c18},_0x1672fe=[_0x12e75a,_0x585c18];(_0x184df7[_0x10a01b]||_0x1672fe['includes'](_0x10a01b))&&(_0xcfa44f=_0x184df7[_0x10a01b]?_0x184df7[_0x10a01b]:_0x10a01b);}this['isProdEnv']=_0xcfa44f===_0x12e75a,_0x298e8e('configAnaSDK','配置信息:'+JSON[_0x3b525f(0x37f)](_0x10a01b)+_0x3b525f(0x234)+this[_0x3b525f(0x331)]+_0x3b525f(0x184)+_0xcfa44f),_0x5932f0()?(window[_0x3b525f(0x1a5)][_0x3b525f(0x30c)]&&(window['xybAgent']['AnalysysAgent'][_0x3b525f(0x37a)]({'appkey':_0xcfa44f,'uploadURL':'https://mobile.zwfw.hunan.gov.cn:8088/aurora-api'}),_0x298e8e(_0x3b525f(0x341),_0x3b525f(0x18e),'log'),this['anaSDKInit']=!(-0x50d+-0x3*-0x1dd+0x6*-0x17),this[_0x3b525f(0x2af)]=!(-0x242d+-0x11e9+-0x2e*-0x12d),this['checkTrackStack'](),_0x4ab575(!(-0xa*-0xff+-0x1c4*-0x2+-0xd7e))),!Boolean(window['xybAgent'][_0x3b525f(0x30c)])&&this['anaSDKLoadTimes']<0x1ba1+-0x406*-0x6+0x29*-0x143&&setTimeout(()=>this[_0x3b525f(0x2de)](_0x4ab575),-0x1564+-0x1da9*-0x1+-0x719*0x1),!Boolean(window[_0x3b525f(0x1a5)][_0x3b525f(0x30c)])&&this[_0x3b525f(0x1fd)]>=-0x9c4+0x269*0x2+-0xb*-0x74&&(_0x298e8e(_0x3b525f(0x341),_0x3b525f(0x173),_0x3b525f(0x30a),'请检查app\x20key、uploadURL是否正确'),_0x4ab575(!(-0x1*-0x1a9d+-0x1372+-0x72a)))):_0x4ab575(!(0x223e+-0x414+-0x1e29*0x1));},async 'initTrackParams'(_0x13bba6={}){const _0x300f3f=_0x28c2a8,{code:_0x1f87db,name:_0x1e3452,aff_city_code:_0x3c6f9b,aff_city_name:_0x29c3d2,unit_code:_0x3a3206,area_code:_0x100efc,unit_name:_0x5baecb,is_finish:_0x51a991,category:_0x434e04,user_id:_0x35e3aa,miniAppCode:_0x41e70a,$url_domain:_0x555e2e}=_0x13bba6,_0x534aaa=this[_0x300f3f(0x129)](),_0x34ef86=this[_0x300f3f(0x1a6)](),_0x1b0786=await this[_0x300f3f(0x198)]();return{'code':_0x1f87db||void(0xbdb*0x2+0xfa1+-0x2757),'name':_0x1e3452||void(0x5f5*-0x5+-0x5da+0x23a3),'aff_city_code':_0x3c6f9b||void(0x9e4+0x1*0x246b+-0x2e4f),'aff_city_name':_0x29c3d2||void(0x2*0x10f1+0xaca*-0x2+-0x627*0x2),'unit_code':_0x3a3206||void(0x335*-0x5+-0x18d1*0x1+-0xd9e*-0x3),'area_code':_0x100efc||void(-0x1b40+-0x8bd*0x3+0x3577),'unit_name':_0x5baecb||void(0x1f8+0xab1+-0xca9),'is_finish':_0x51a991||void(-0x1087+-0x1*-0x923+0x764),'category':_0x434e04||void(0x2f*-0x1d+-0x1*-0x1445+0x1*-0xef2),'user_id':_0x35e3aa||void(-0x1*0x2359+0x11b5+0x11a4),'miniAppCode':_0x41e70a||void(0x11*0x14a+0x1759+-0x2d43),'$url_domain':_0x555e2e||void(0x1fcf+0x1e90+-0x3e5f),'curr_time':_0x54a137(),'source':_0x534aaa,'page_source':_0x34ef86,'location':_0x1b0786};},'getVisitSource'(){const _0x232123=_0x28c2a8;if(!_0x5932f0()){const _0x1ca66e=uni?.[_0x232123(0x301)](),{uniPlatform:_0x2f1681}=_0x1ca66e||{};return _0x232123(0x2c3)===_0x2f1681?'wx':_0x232123(0x31b)===_0x2f1681?'alipay':_0x232123(0x379);}return _0x4c6a69()?'wx':_0x2ad3ef()?'alipay':_0x232123(0x379);},'checkTrackStack'(){const _0x5a9818=_0x28c2a8;_0x298e8e(_0x5a9818(0x359),'执行埋点数据堆栈检测','log'),_0x401e92(this['trackStack'])[_0x5a9818(0x2ec)](_0x2855c1=>{const _0x4dd7d4=_0x5a9818,{eventID:_0x4946e3,eventPro:_0xf4d176,id:_0x3a4e38}=_0x2855c1;_0x298e8e(_0x4dd7d4(0x359),_0x4dd7d4(0x319)+_0x3a4e38+_0x4dd7d4(0x285),_0x4dd7d4(0x2f0)),this['track'](_0x4946e3,_0xf4d176);const _0xfb9c89=this[_0x4dd7d4(0x363)][_0x4dd7d4(0x16e)](_0x54eed1=>_0x54eed1['id']===_0x3a4e38);_0xfb9c89>-(-0x1da9+-0x3d*-0x79+0x47*0x3)&&this[_0x4dd7d4(0x363)][_0x4dd7d4(0x312)](_0xfb9c89,0x4*-0x935+-0x1*-0xf2a+0x15ab);});},'getPageSource'(){const _0x53aedb=_0x28c2a8;let _0x4143ab=null;_0x4143ab=_0x5932f0()?location[_0x53aedb(0x195)]:decodeURIComponent(_0x22ecb6()[_0x53aedb(0x262)]);const _0x318775=_0x4143ab?.[_0x53aedb(0x2a9)](_0x53aedb(0x123));if(!_0x318775)return _0x53aedb(0x232);const _0x424b65=_0x4143ab[_0x53aedb(0x375)](_0x53aedb(0x123))[-0x20f*0x3+-0x1bd5+0x2203];let _0x2f640e=_0x53aedb(0x232);return _0x2f640e=_0x424b65[_0x53aedb(0x2a9)]('&')?_0x424b65['split']('&')[0x1*-0x33b+-0x170e+0x1a49]:_0x424b65,[_0x53aedb(0x378),_0x53aedb(0x1b1),_0x53aedb(0x232),_0x53aedb(0x1e1)][_0x53aedb(0x2a9)](_0x2f640e)?_0x2f640e:'click';},async 'getPositionInfo'(){const _0x5793c1=_0x28c2a8;if(!this[_0x5793c1(0x289)]?.[_0x5793c1(0x220)])try{const {location:_0x1fd386}=await this[_0x5793c1(0x1d3)]()||{};this['locationInfo']=_0x1fd386||'';}catch(_0x5244b5){_0x298e8e(_0x5793c1(0x1d3),_0x5793c1(0x330),'error',_0x5244b5),this[_0x5793c1(0x289)]={};}return JSON['stringify'](this['locationInfo']);}},_0x2a2247={'weChatSDKReady':!(-0x1159*0x1+-0x192e+0x2a88),'weChatConfigReady':!(-0x85d*-0x4+0xb*-0x2e3+-0x1*0x1b2),'initWeChatSDK'(){const _0x2fc9e9=_0x28c2a8;if(_0x298e8e(_0x2fc9e9(0x1f2),_0x2fc9e9(0x36f)),_0x5932f0())return _0x5b4383()?(this[_0x2fc9e9(0x188)]=!(0x1*0xf2a+0x53*0x1a+-0x5*0x4b8),this[_0x2fc9e9(0x309)](),void _0x298e8e(_0x2fc9e9(0x1f2),'WeChat\x20SDK已挂载完成,无需二次挂载')):void _0x10f23c('https://res.wx.qq.com/open/js/jweixin-1.6.0.js','微信')[_0x2fc9e9(0x147)](()=>{const _0x25d3cb=_0x2fc9e9;_0x5b4383()&&(this['weChatSDKReady']=!(-0xaa2+0x29*0x4b+-0x161),this[_0x25d3cb(0x309)](),_0x298e8e('initWeChatSDK','WeChat\x20SDK挂载完成'));});_0x298e8e(_0x2fc9e9(0x1f2),'非浏览器环境,无需执行挂载动作');},'initWeChatConfig'(){const _0x40f769=_0x28c2a8;if(this[_0x40f769(0x188)])return;const {timestamp:_0x3cc9fe,appId:_0x391a4a,noncestr:_0x3683cb,signature:_0x5c196f}=this[_0x40f769(0x269)];if(_0x3cc9fe&&_0x391a4a&&_0x3683cb&&_0x5c196f)return _0x298e8e(_0x40f769(0x309),_0x40f769(0x2e2)+JSON[_0x40f769(0x37f)](this[_0x40f769(0x269)])),void this[_0x40f769(0x186)](this['wxSignParam']);const _0x4976dc=new XMLHttpRequest();_0x4976dc[_0x40f769(0x2c8)](_0x40f769(0x146),'https://xybfw.zwfw.hunan.gov.cn/gateway3/api/auth/wechat/v1/getJsapiTicket',!(0x30d*0x1+0x2cd+-0x5da)),_0x4976dc[_0x40f769(0x22c)](_0x40f769(0x2ae),'application/json'),_0x4976dc['onload']=()=>{const _0x546f2e=_0x40f769;if(_0x4976dc[_0x546f2e(0x29f)]>=0xfd*0xd+-0x5b4+-0x65d&&_0x4976dc[_0x546f2e(0x29f)]<-0x16bf+-0x2*-0x2d1+0x1249){const _0x18f19b=JSON[_0x546f2e(0x158)](_0x4976dc[_0x546f2e(0x19f)]);_0x298e8e('initWeChatConfig',_0x546f2e(0x226)+JSON[_0x546f2e(0x37f)](_0x18f19b?.[_0x546f2e(0x344)]?.[_0x546f2e(0x2f8)]));const _0x28972b=_0x18f19b?.[_0x546f2e(0x344)]||{};return _0x28972b['appId']=_0x546f2e(0x2df),_0x298e8e(_0x546f2e(0x271),_0x546f2e(0x25c)),void this[_0x546f2e(0x186)](_0x28972b);}_0x298e8e(_0x546f2e(0x309),_0x546f2e(0x170)+_0x4976dc[_0x546f2e(0x29f)]);},_0x4976dc[_0x40f769(0x1ab)]=()=>{const _0xc0cdd0=_0x40f769;_0x298e8e('initWeChatConfig',_0xc0cdd0(0x282));},_0x4976dc[_0x40f769(0x142)](JSON[_0x40f769(0x37f)]({'url':window[_0x40f769(0x2ac)][_0x40f769(0x195)][_0x40f769(0x375)]('#')[-0x1ee4+-0x114+0x1ff8]}));},'executeWeChatSign'(_0x32e057){const _0x4db552=_0x28c2a8;window?.['wx']?.['config']({'appId':_0x32e057?.[_0x4db552(0x255)],'timestamp':_0x32e057?.['timestamp'],'nonceStr':_0x32e057?.[_0x4db552(0x205)],'signature':_0x32e057?.['signature'],'jsApiList':[_0x4db552(0x299),_0x4db552(0x18a),'chooseImage',_0x4db552(0x15e),_0x4db552(0x246),'previewImage',_0x4db552(0x293)]}),window?.['wx'][_0x4db552(0x1ca)](()=>{const _0x365f4f=_0x4db552;this[_0x365f4f(0x188)]=!(-0x12ba*0x2+-0x1*-0x86c+0x2*0xe84),_0x298e8e(_0x365f4f(0x186),'微信配置初始化已完成,执行获取定位堆栈检测,需执行的定位堆栈数量:'+this['locationStackList'][_0x365f4f(0x1b0)]),this['checkLocationEvStack']();}),window?.['wx'][_0x4db552(0x30a)](_0x195d01=>{const _0x44eb74=_0x4db552;throw _0x298e8e('executeWeChatSign',_0x44eb74(0x340),'error',_0x195d01),new Error(_0x195d01);});}},_0x27bbd6={'initMobileBridgeGlobalConfig'(){const _0x1df171=_0x28c2a8,_0x365e7c=_0x244265();_0x298e8e(_0x1df171(0x19e),'开始初始化移动端桥链接配置,访问设备类型:'+_0x365e7c),window['c2']={},_0x1df171(0x2d3)===_0x365e7c&&this['initIOSCallbackEvConfig'](),_0x1df171(0x2c0)===_0x365e7c&&this[_0x1df171(0x1c7)](),_0x298e8e(_0x1df171(0x19e),_0x1df171(0x1b6)),window[_0x1df171(0x23d)]=window['c2'];},'initIOSCallbackEvConfig'(){const _0x1fa2fb=_0x28c2a8;try{const _0x3e6061=this;window['c2'][_0x1fa2fb(0x252)]={},window['c2'][_0x1fa2fb(0x252)]['callJS']=function(){const _0x4d32e5=_0x1fa2fb;window?.['c2'][_0x4d32e5(0x252)]?.['callJSCallback']||(window['c2']['iOS'][_0x4d32e5(0x224)]={}),_0x298e8e('initIOSCallbackEvConfig',_0x4d32e5(0x149)+JSON[_0x4d32e5(0x37f)](arguments)),_0x3e6061['IOSCallbackEvFormat'](arguments[-0x1*0xe9f+-0x1*0x7a7+0x1646]);};}catch(_0xcd2567){_0x298e8e(_0x1fa2fb(0x20d),_0x1fa2fb(0x203),'error',_0xcd2567);}},'initAndroidCallbackEvConfig'(){const _0xf532ab=_0x28c2a8;window['c2'][_0xf532ab(0x276)]=(_0x30bdbb,_0x149f9a,_0x326b4a)=>{_0x30bdbb(_0x326b4a);};},'IOSCallbackEvFormat'(_0x8ba9fd){const _0x586d3c=_0x28c2a8,{returnValue:_0x122c31,funcName:_0xc4531b}=_0x8ba9fd;let _0x341a38=this[_0x586d3c(0x1c1)](_0x122c31);_0x341a38=_0x169729(_0x341a38),_0x298e8e(_0x586d3c(0x162),_0x586d3c(0x15c)+JSON[_0x586d3c(0x37f)](_0x341a38)+',\x20格式:'+typeof _0x341a38);const _0x4e55cf=_0xc4531b[_0x586d3c(0x375)]('_a')[0x12cc+0x164+-0x143*0x10],_0x2e9c90=_0xc4531b[_0x586d3c(0x166)](_0x4e55cf,''),_0x3125f6=this['iosCallBackList'][_0x586d3c(0x15d)](_0x637076=>_0x637076['id']===_0x4e55cf);if(!_0x3125f6)return;const {resolveInfo:_0x4b4bac,configInfo:_0x2c2023}=_0x3125f6,{resDataFormat:_0x7ed550,resErrorFormat:_0x34895e}=_0x2c2023;if(_0x2e9c90['includes']('onFail')&&_0x34895e)return _0x341a38=_0x34895e({'isSuccess':!(-0x8d*-0x7+-0x1*0x10c3+0xce9),'errorMsg':_0x401e92(_0x122c31)}),void _0x4b4bac(_0x341a38);_0x7ed550&&(_0x341a38=_0x7ed550(_0x341a38)),_0x298e8e(_0x586d3c(0x162),_0x586d3c(0x18c)+JSON['stringify'](_0x341a38)),_0x4b4bac(_0x341a38);const _0x52f446=this['iosCallBackList'][_0x586d3c(0x16e)](_0x31d351=>_0x31d351['id']===_0x4e55cf);this[_0x586d3c(0x17a)][_0x586d3c(0x312)](_0x52f446,-0x1566+-0x5*0x4a1+-0x4*-0xb23);},'base64Decode'(_0x568eaa){const _0x1073a4=_0x28c2a8;let _0x1070ee,_0x48277c,_0x4fb7a0,_0x3b1f01,_0x5eef49,_0x22fe9a,_0x41095e,_0x42af1e='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=',_0x7fd90b='',_0x18f411=0x854+-0xd*-0x255+-0x26a5;for(_0x568eaa=_0x568eaa['replace'](/[^A-Za-z0-9\+\/\=]/g,'');_0x18f411<_0x568eaa[_0x1073a4(0x1b0)];)_0x3b1f01=_0x42af1e[_0x1073a4(0x2b7)](_0x568eaa['charAt'](_0x18f411++)),_0x5eef49=_0x42af1e['indexOf'](_0x568eaa[_0x1073a4(0x1da)](_0x18f411++)),_0x22fe9a=_0x42af1e[_0x1073a4(0x2b7)](_0x568eaa[_0x1073a4(0x1da)](_0x18f411++)),_0x41095e=_0x42af1e[_0x1073a4(0x2b7)](_0x568eaa[_0x1073a4(0x1da)](_0x18f411++)),_0x1070ee=_0x3b1f01<<0x5d5+-0x1f1d+-0x86e*-0x3|_0x5eef49>>0x49*-0x66+0x1fe3+-0x2c9,_0x48277c=(0x2402+0x3b*-0x22+0x1*-0x1c1d&_0x5eef49)<<0x1*-0xed5+-0x2281+-0x315a*-0x1|_0x22fe9a>>0x6e8+-0x5*-0x31d+0x1b*-0xd5,_0x4fb7a0=(-0x1589+-0x47+0x25*0x97&_0x22fe9a)<<0x10*0x170+-0x1de6+0x6ec|_0x41095e,_0x7fd90b+=String[_0x1073a4(0x306)](_0x1070ee),0x10*-0x1cf+0x3*-0x243+0x1*0x23f9!=_0x22fe9a&&(_0x7fd90b+=String[_0x1073a4(0x306)](_0x48277c)),0x1*0xdcd+0x2301+-0x5*0x9b6!=_0x41095e&&(_0x7fd90b+=String['fromCharCode'](_0x4fb7a0));return _0x7fd90b=this[_0x1073a4(0x12b)](_0x7fd90b),_0x7fd90b;},'_utf8_decode'(_0x687de1){const _0x567711=_0x28c2a8;let _0x15ed82='',_0x5221b3=0x1*0x1511+0x22ab+-0x29*0x15c,_0x4bcbe1=-0x4ff*0x7+0x2291+-0x68*-0x1,_0x490f2d=0x1a*0xa9+-0x17e5+0x1*0x6bb,_0x1bb9ea=-0xe3e+0x814+0x62a;for(;_0x5221b3<_0x687de1['length'];)_0x4bcbe1=_0x687de1[_0x567711(0x1b9)](_0x5221b3),_0x4bcbe1<-0x16*-0xc7+-0x1*-0x81a+0x66*-0x3e?(_0x15ed82+=String[_0x567711(0x306)](_0x4bcbe1),_0x5221b3++):_0x4bcbe1>0xa7b*-0x2+-0xd87*-0x2+-0x559*0x1&&_0x4bcbe1<-0x1a3e*0x1+0x19e8+0x136?(_0x1bb9ea=_0x687de1[_0x567711(0x1b9)](_0x5221b3+(0x1*-0x1eef+0x215*0xd+0x3df)),_0x15ed82+=String[_0x567711(0x306)]((0x67*-0x3a+0xab7+0x65f*0x2&_0x4bcbe1)<<-0x1*-0x1159+0x1*-0xdcd+-0x386|-0x1e5e+-0x3d*0xf+-0x4*-0x88c&_0x1bb9ea),_0x5221b3+=-0xe48+0x1095+-0x24b):(_0x1bb9ea=_0x687de1[_0x567711(0x1b9)](_0x5221b3+(0x1*-0x19ea+-0x1*0x839+0x14*0x1b5)),_0x490f2d=_0x687de1[_0x567711(0x1b9)](_0x5221b3+(-0x594+0x2*-0x5ab+-0xe4*-0x13)),_0x15ed82+=String[_0x567711(0x306)]((0x7a2*-0x4+-0x9a4+0x283b*0x1&_0x4bcbe1)<<-0x210+0x17b9+0xb*-0x1f7|(0x535+-0x2*-0x1221+-0x2938&_0x1bb9ea)<<0x270d+-0x1*-0xdb7+0x34be*-0x1|0x13*-0x7f+-0x7a*0x3d+0x26be&_0x490f2d),_0x5221b3+=-0x27*-0x13+-0x1*-0x2338+-0x261a);return _0x15ed82;},'checkMobileModuleBack'(_0x23287b,_0x1a344f,_0x2760f3){const _0x4bca58=_0x28c2a8,_0x391c88=_0x2760f3?_0x4bca58(0x1b2):_0x23287b,_0x447cc2=(_0x2760f3?_0x4bca58(0x1e2):_0x1a344f)+'Callback';window['c2'][_0x4bca58(0x150)](_0x391c88)||(window['c2'][_0x391c88]={}),window['c2'][_0x391c88][_0x4bca58(0x150)](_0x447cc2)||(window['c2'][_0x391c88][_0x447cc2]={});}};let _0x7d8fdc=null,_0x1289ff=null,_0x19df09=null;_0x2cc4ce()?(_0x7d8fdc=uni&&uni?.[_0x28c2a8(0x24e)]?uni?.[_0x28c2a8(0x24e)]('GCUniPlugin-RUM'):null,_0x1289ff=uni&&uni?.[_0x28c2a8(0x24e)]?uni?.[_0x28c2a8(0x24e)](_0x28c2a8(0x2b8)):null,_0x19df09=uni&&uni?.['getSystemInfoSync']?uni[_0x28c2a8(0x301)]()[_0x28c2a8(0x31d)]:null):_0x298e8e(_0x28c2a8(0x336),'未找到uni对象',_0x28c2a8(0x2e6));const _0x4c459d={'defaults':{'headers':{},'baseURL':''},'interceptor':{'request':null,'response':null},'requestOb':!(0x1f13*0x1+0x8f*-0x26+-0x1e*0x54),'request'(_0x27376f={}){return new Promise((_0x256313,_0xa70cb5)=>{const _0x23c7fa=_0x37bd;let _0x3c0f48=_0x401e92(_0x27376f);if(!this[_0x23c7fa(0x2f1)][_0x23c7fa(0x1ea)]||_0x23c7fa(0x247)!=typeof this[_0x23c7fa(0x2f1)]['request']||_0x27376f['ignore']||(_0x3c0f48=this[_0x23c7fa(0x2f1)]['request'](_0x27376f),_0x3c0f48)){if(_0x2cc4ce()&&this[_0x23c7fa(0x353)]&&Boolean(_0x7d8fdc)&&Boolean(_0x1289ff))try{_0x298e8e(_0x23c7fa(0x1ea),_0x23c7fa(0x290),_0x23c7fa(0x2f0)),this[_0x23c7fa(0x29e)](_0x3c0f48,_0x256313,_0xa70cb5);}catch(_0x2c4eed){_0x298e8e(_0x23c7fa(0x1ea),_0x23c7fa(0x2a6),_0x23c7fa(0x30a),_0x2c4eed);}else _0x298e8e(_0x23c7fa(0x1ea),'走uni的请求配置',_0x23c7fa(0x2f0)),this['executeNormalRequest'](_0x3c0f48,_0x256313,_0xa70cb5);}else _0x256313(!(-0x16ac+-0x10c1*0x2+-0x382f*-0x1));});},'executeCloudObRequest'(_0x1764a1,_0x15b6dd,_0x16c1e3){const _0x4cd166=_0x28c2a8;let _0x243699=_0x16e3d3();const _0x5b05d3=this[_0x4cd166(0x348)](_0x1764a1,_0x243699);if(!_0x5b05d3)return;const {traceHeader:_0x44d5db,filter:_0x4b7bc4}=_0x5b05d3;let _0x54a325,_0x4a5aa0,_0x3d2fb9;_0x7d8fdc[_0x4cd166(0x2d5)]({'key':_0x243699}),uni[_0x4cd166(0x1ea)]({'url':''+this[_0x4cd166(0x26b)][_0x4cd166(0x29c)]+_0x1764a1[_0x4cd166(0x26c)],'method':_0x1764a1[_0x4cd166(0x1b7)],'header':_0x44d5db,'data':_0x1764a1[_0x4cd166(0x344)],'timeout':_0x1764a1[_0x4cd166(0x1d7)],'withCredentials':_0x1764a1?.[_0x4cd166(0x29d)]||void(-0x2305+0xbb6+0x174f),'success':_0x54df3c=>{const _0x292b3e=_0x4cd166;if(_0x298e8e('executeCloudObRequest',_0x292b3e(0x311)+_0x1764a1['url']+',请求成功',_0x292b3e(0x2f0)),_0x4b7bc4||(_0x54a325=_0x54df3c[_0x292b3e(0x2e1)],_0x4a5aa0=_0x54df3c[_0x292b3e(0x344)]['toString'](),_0x3d2fb9=_0x54df3c[_0x292b3e(0x148)]),_0x4f61bd(_0x1764a1[_0x292b3e(0x2eb)])||_0x1764a1[_0x292b3e(0x2eb)](_0x54df3c),this[_0x292b3e(0x2f1)]['response']&&_0x292b3e(0x247)==typeof this[_0x292b3e(0x2f1)][_0x292b3e(0x2a0)]&&!_0x1764a1[_0x292b3e(0x17f)]){const _0x50040f=this[_0x292b3e(0x2f1)][_0x292b3e(0x2a0)](_0x54df3c);return void _0x15b6dd(_0x50040f);}_0x15b6dd(_0x54df3c);},'fail':_0x248fa8=>{const _0x506a14=_0x4cd166;_0x298e8e(_0x506a14(0x29e),_0x506a14(0x311)+_0x1764a1[_0x506a14(0x26c)]+_0x506a14(0x221),_0x506a14(0x30a),_0x248fa8),_0x4b7bc4||(_0x4a5aa0=_0x248fa8?.[_0x506a14(0x16b)]),_0x4f61bd(_0x1764a1?.[_0x506a14(0x366)])||_0x1764a1[_0x506a14(0x366)](_0x248fa8),_0x16c1e3(_0x248fa8);},'complete':()=>{const _0x1a5b71=_0x4cd166;if(_0x298e8e(_0x1a5b71(0x29e),_0x1a5b71(0x311)+_0x1764a1[_0x1a5b71(0x26c)]+_0x1a5b71(0x2bd),_0x1a5b71(0x2f0)),!_0x4b7bc4){_0x298e8e(_0x1a5b71(0x29e),_0x1a5b71(0x278)+_0x243699+';URL地址:'+_0x1764a1[_0x1a5b71(0x26c)]+';'),_0x7d8fdc[_0x1a5b71(0x357)]({'key':_0x243699});const _0x547fd7={'url':''+this[_0x1a5b71(0x26b)][_0x1a5b71(0x29c)]+_0x1764a1[_0x1a5b71(0x26c)],'httpMethod':_0x1764a1[_0x1a5b71(0x1b7)],'requestHeader':_0x44d5db,'responseHeader':_0x54a325,'responseBody':_0x4a5aa0,'resourceStatus':_0x3d2fb9};_0x7d8fdc[_0x1a5b71(0x24c)]({'key':_0x243699,'content':_0x547fd7});}Boolean(_0x1764a1?.['complete'])&&_0x1764a1?.[_0x1a5b71(0x182)]();}});},'checkCloudObRequestHeader'(_0x4cb915,_0x1d56b3){const _0x38b81b=_0x28c2a8;let _0x4b7765;_0x4f61bd(_0x4cb915?.[_0x38b81b(0x1fe)])?(_0x298e8e(_0x38b81b(0x29e),_0x38b81b(0x154)+_0x4cb915[_0x38b81b(0x1fe)],_0x38b81b(0x2f0)),_0x4b7765=!(-0x1b91+0x188f+0x101*0x3)):(_0x4b7765=_0x4cb915?.[_0x38b81b(0x1fe)]?.[_0x38b81b(0x2a9)](_0x19df09),_0x298e8e(_0x38b81b(0x29e),_0x38b81b(0x24f)+_0x4cb915[_0x38b81b(0x1fe)],_0x38b81b(0x2f0))),_0x298e8e(_0x38b81b(0x29e),'rum:'+_0x7d8fdc+_0x38b81b(0x1fa)+_0x1289ff,'log');let _0x355821={};return _0x4b7765||(_0x355821=_0x1289ff?.[_0x38b81b(0x325)]({'key':_0x1d56b3,'url':_0x4cb915[_0x38b81b(0x26c)]})),_0x298e8e(_0x38b81b(0x29e),_0x38b81b(0x1ac)+Boolean(_0x1289ff)+_0x38b81b(0x210)+Boolean(_0x7d8fdc),_0x38b81b(0x2f0)),_0x7d8fdc&&_0x1289ff?(_0x355821=Object['assign']({},_0x355821,_0x4cb915[_0x38b81b(0x2e1)]),_0x355821=Object[_0x38b81b(0x350)]({},_0x355821,this['defaults'][_0x38b81b(0x1fb)]),{'traceHeader':_0x355821,'filter':_0x4b7765}):(_0x298e8e('executeCloudObRequest',_0x38b81b(0x18d),_0x38b81b(0x2f0)),!(-0x233b+0x1ac8+0x874));},'executeNormalRequest'(_0x4b959e,_0x526e6f,_0x525a9e){const _0x4882de=_0x28c2a8,{url:_0x43a822,header:_0x1b9bef,data:_0x1f7d97,method:_0x2b8cc6}=_0x4b959e||{},_0x416c78=Object[_0x4882de(0x350)]({},this[_0x4882de(0x26b)][_0x4882de(0x1fb)],_0x1b9bef);uni[_0x4882de(0x1ea)]({'url':''+this['defaults']['baseURL']+_0x43a822,'header':_0x416c78,'data':_0x1f7d97,'method':_0x2b8cc6,'withCredentials':_0x4b959e?.[_0x4882de(0x29d)]||void(0x2b*0x72+-0xe7*0x1a+0x450),'success':_0x10b881=>{const _0x334f6e=_0x4882de;if(_0x298e8e('normalRequest','接口:'+_0x43a822+_0x334f6e(0x265),_0x334f6e(0x2f0)),this[_0x334f6e(0x2f1)][_0x334f6e(0x2a0)]&&'function'==typeof this[_0x334f6e(0x2f1)][_0x334f6e(0x2a0)]&&!_0x4b959e['ignore']){const _0x498ff0=this[_0x334f6e(0x2f1)][_0x334f6e(0x2a0)](_0x10b881);return void _0x526e6f(_0x498ff0);}_0x526e6f(_0x10b881);},'fail':_0x2f631a=>{const _0x49c65c=_0x4882de;_0x298e8e(_0x49c65c(0x14e),_0x49c65c(0x311)+_0x43a822+_0x49c65c(0x32f),'error',_0x2f631a),_0x525a9e(_0x2f631a);}});}},_0x1b8281='undefined'!=typeof window?window:_0x28c2a8(0x128)!=typeof globalThis?globalThis:'undefined'!=typeof self?self:{},_0x1a82d1={'resetMenuBtnConfig'(){const _0x417a2b=_0x28c2a8;_0x298e8e(_0x417a2b(0x12f),_0x417a2b(0x2ba),_0x417a2b(0x2f0));const _0x8dd705={'share':{'show':!(-0x927+0x8*0xe2+0x4*0x86)},'comment':{'show':!(-0x139e+-0xe65+0x2204)},'favorite':{'show':!(0x1*-0x14f8+-0x224a+-0xb*-0x506)}};try{this[_0x417a2b(0x362)](_0x8dd705),this[_0x417a2b(0x268)](_0x1fa4cf=>{const _0x306210=_0x417a2b;if(!this[_0x306210(0x320)])return void _0x298e8e('resetMenuBtnConfig',_0x306210(0x2ab));const {options:_0x3a6b4e}=_0x1fa4cf,{xybModuleCode:_0x232500}=_0x3a6b4e||{};if(_0x232500&&this[_0x306210(0x1ef)])return _0x298e8e(_0x306210(0x1d0),'页面拦截事件生效\x20自动设置原生APP分享、评价按钮,配置信息:'+JSON[_0x306210(0x37f)](_0x1fa4cf),_0x306210(0x2f0)),void this[_0x306210(0x362)]({'share':{'show':!(0x106a+0x20*-0x1d+-0xcca),'code':_0x232500,'type':0x4},'comment':{'show':!(0x2e7*0x7+-0x1e0b*0x1+0x9ba),'code':_0x232500,'type':0x4},'favorite':{'show':!(-0xa1d+0x3bf+0x65e)}});_0x298e8e(_0x306210(0x1d0),_0x306210(0x32b),_0x306210(0x2f0)),this[_0x306210(0x362)](_0x8dd705);});}catch(_0x3231be){console[_0x417a2b(0x2f0)](_0x3231be),_0x298e8e(_0x417a2b(0x1d0),_0x417a2b(0x2b9),_0x417a2b(0x30a),_0x3231be);}},'pageChangeEv'(_0x23fbb4){const _0x454d01=_0x28c2a8;if(void(-0x18*0x33+0x2*0x3fa+-0x1c*0x1d)===typeof _0x1b8281?.[_0x454d01(0x187)])return void _0x298e8e(_0x454d01(0x268),_0x454d01(0x152));[_0x454d01(0x227),_0x454d01(0x25e),_0x454d01(0x27e),_0x454d01(0x2cc),'navigateBack',_0x454d01(0x35a)][_0x454d01(0x2ec)](_0x5bab75=>{const _0x246d52=_0x454d01;try{uni[_0x246d52(0x15f)](_0x5bab75,{'invoke'(_0x48f599){const _0x170305=_0x246d52;try{const {url:_0x276e00}=_0x48f599;let _0x355784={'options':{},'path':null,'route':null},_0x24bf9f=decodeURIComponent(_0x276e00);_0x355784[_0x170305(0x262)]=_0x24bf9f,_0x355784[_0x170305(0x27a)]=_0x24bf9f[_0x170305(0x375)]('?')[0x868*-0x2+0x23c8+-0x8*0x25f],_0x24bf9f?.[_0x170305(0x2a9)](_0x170305(0x16f))&&(console[_0x170305(0x2f0)](_0x170305(0x33b)+_0x24bf9f),_0x355784['options'][_0x170305(0x20c)]=_0x4a27d4(_0x170305(0x20c),_0x24bf9f)),_0x24bf9f?.[_0x170305(0x2a9)]('?')&&(_0x355784[_0x170305(0x27a)]=_0x24bf9f[_0x170305(0x375)]('?')[0x1667+-0x242c+-0x3*-0x497]),_0x5bab75?.[_0x170305(0x2a9)]('Back')&&(_0x355784=_0x22ecb6(_0x5bab75?.[_0x170305(0x2a9)]('Back'))),_0x298e8e(_0x170305(0x268),'页面路径发生了变化,当前页面路径:'+_0x355784[_0x170305(0x262)],_0x170305(0x2f0)),_0x170305(0x247)==typeof _0x23fbb4&&_0x23fbb4(_0x355784);}catch(_0x3ea763){console[_0x170305(0x2f0)](_0x170305(0x2c9),_0x3ea763),_0x298e8e(_0x170305(0x268),_0x170305(0x214),_0x170305(0x30a),_0x3ea763);}return!(0x33*0x37+-0x1*0x2b+0x565*-0x2);}});}catch(_0x5922db){_0x298e8e(_0x246d52(0x268),_0x246d52(0x135),_0x246d52(0x30a),_0x5922db);}});},'menuBtnConfig'(_0x4b6975={}){const _0x35b52c=_0x28c2a8;_0x298e8e(_0x35b52c(0x362),_0x35b52c(0x1bc)+JSON[_0x35b52c(0x37f)](_0x4b6975),_0x35b52c(0x2f0));let _0x4acb5d=!(0x54*0x2e+-0x156c+-0x3c*-0x1b);for(let _0x1dd30f in _0x4b6975){if(_0x35b52c(0x2b5)!=typeof _0x4b6975[_0x1dd30f]){_0x4acb5d=!(0x1cf8+-0x1515*0x1+0x3f1*-0x2),_0x298e8e(_0x35b52c(0x362),_0x35b52c(0x263),_0x35b52c(0x30a),_0x35b52c(0x277));break;}}if(_0x4acb5d){if(_0x57a445())this[_0x35b52c(0x316)](null,_0x35b52c(0x362),_0x4b6975,_0x35b52c(0x1c3));else{if(!_0x5932f0()&&uni&&uni?.['sendNativeEvent'])try{_0x298e8e('menuBtnConfig','开始执行配置APP胶囊按钮清单显示','log'),uni?.[_0x35b52c(0x2ee)]('Util_MiniAppConfigMenu',_0x4b6975);}catch(_0x52a4b4){_0x298e8e('menuBtnConfig',_0x35b52c(0x2c4),_0x35b52c(0x30a),_0x52a4b4);}else _0x298e8e(_0x35b52c(0x362),_0x35b52c(0x223),_0x35b52c(0x2f0));}}}},_0x7891c0={'executeBrowserEvent'(_0xd0d2a5,_0x5961ae={},_0x3d9ed3={},_0x3ecdc9={}){const _0x333310=_0x28c2a8,_0x209d08=_0x4c6a69()?_0x333310(0x2f5):_0x2ad3ef()?_0x333310(0x2db):_0x333310(0x34d),{eventName:_0x25ea61,description:_0x2bc2e0,browserEvName:_0x2fe7dc,bResDataFormat:_0x779682,bReqDataFormat:_0x476859,reqDataFormat:_0x34de89}=_0x3ecdc9,_0x4f7567=_0x333310(0x1c9)===_0x25ea61?_0x3d9ed3:_0x5961ae;_0x298e8e(_0x333310(0x24b),_0x333310(0x1d4)+_0x209d08+_0x333310(0x1a3)+_0x25ea61+_0x333310(0x36d)+JSON['stringify'](_0x4f7567)+',配置信息:'+JSON['stringify'](_0x3ecdc9));const _0x3348c8={'authFace':_0x333310(0x248),'getLocationInfo':'executeGetLocationInBrowser','startNavigation':_0x333310(0x286),'fileUpload':_0x333310(0x1d9),'chooseImg':_0x333310(0x261),'executePayment':_0x333310(0x34c)}[_0x25ea61];if(_0x3348c8)return void this[_0x3348c8](_0xd0d2a5,_0x4f7567,_0x3ecdc9);if(!_0x2fe7dc)return void _0xd0d2a5({'isSuccess':!(-0xa6c*-0x2+-0x9b9*-0x1+-0x1e90),'code':-(0x5fd+0x1e31+-0x242d),'message':_0x333310(0x287)+_0x2bc2e0+_0x333310(0x33f)});const _0x56ef4e=_0x34de89?_0x34de89(_0x5961ae):_0x476859?_0x476859(_0x5961ae):_0x5961ae;_0x2ad3ef()||_0x4c6a69()?this[_0x333310(0x2bf)](_0xd0d2a5,_0x2fe7dc,_0x5961ae,_0x25ea61):this[_0x333310(0x2d2)](_0xd0d2a5,_0x2fe7dc,_0x56ef4e,_0x779682);},'executeMPBrowserEvent'(_0x15dadd,_0x239d17,_0x558917,_0x16bfc0){const _0x41b7c9=_0x28c2a8;_0x298e8e('executeMPBrowserEvent',_0x41b7c9(0x31c)+JSON[_0x41b7c9(0x37f)](_0x558917));let _0x5ed7e0=_0x401e92(_0x558917);_0x298e8e('executeMPBrowserEvent',_0x41b7c9(0x31c)+JSON[_0x41b7c9(0x37f)](_0x5ed7e0)),_0x5ed7e0['success']=_0x1aad42=>{const _0x283eca=_0x41b7c9;_0x298e8e('executeMPBrowserEvent',_0x283eca(0x1b5)+_0x16bfc0+_0x283eca(0x349)+JSON[_0x283eca(0x37f)](_0x1aad42));},_0x5ed7e0[_0x41b7c9(0x366)]=_0x356c59=>{const _0x2298e4=_0x41b7c9;_0x298e8e(_0x2298e4(0x2bf),_0x2298e4(0x1b5)+_0x16bfc0+_0x2298e4(0x2a7)+JSON['stringify'](_0x356c59));},_0x298e8e(_0x41b7c9(0x27c),_0x16bfc0+_0x41b7c9(0x230)+JSON[_0x41b7c9(0x37f)](_0x5ed7e0)),_0x4c6a69()?window['wx'][_0x239d17](_0x5ed7e0):window['my'][_0x239d17](_0x5ed7e0);},'executeNativeBrowserEv'(_0x239d46,_0x5eef0b){const _0x19a861=_0x28c2a8;let _0x4348ff=_0x401e92(_0x5eef0b);_0x4348ff['success']=function(_0x487329){console['log'](_0x487329);},_0x4348ff[_0x19a861(0x366)]=function(_0x527368){const _0x2a9d1f=_0x19a861;console[_0x2a9d1f(0x30a)](_0x527368);},window[_0x19a861(0x187)][_0x239d46](_0x4348ff);}},_0x1dc4c4={'executePayment'(_0x4e83d0={}){const _0x113db3=_0x28c2a8,{orderToken:_0x27773c,reqURL:_0x461643,returnUrl:_0x5b7850}=_0x4e83d0;if(_0x298e8e(_0x113db3(0x34c),_0x113db3(0x31c)+JSON['stringify'](_0x4e83d0)),!_0x27773c||!_0x461643||!_0x5b7850)return void _0x298e8e(_0x113db3(0x34c),_0x113db3(0x218));if(!_0x2ad3ef()&&!_0x4c6a69())return void _0x298e8e(_0x113db3(0x34c),_0x113db3(0x2a5));const _0x10c47c=_0x113db3(0x17b)+encodeURIComponent(_0x27773c)+_0x113db3(0x283)+encodeURIComponent(_0x461643)+_0x113db3(0x14a)+encodeURIComponent(_0x5b7850);_0x4c6a69()?_0x48398e(_0x10c47c):_0x2ad3ef()?_0x3eb985(_0x10c47c):_0x298e8e(_0x113db3(0x34c),_0x113db3(0x138));}},_0x354967={'executeAuthFaceInBrowser'(_0x473093,_0x48d643={},_0x3afb75={}){const _0x138913=_0x28c2a8,_0x3d6282=function(_0x530b92){const _0x23131a=_0x37bd;let _0x1a1801=_0x4a27d4(_0x23131a(0x237),window?.[_0x23131a(0x2ac)]?.[_0x23131a(0x195)]);if(_0x298e8e('executeAuthFaceInBrowser',_0x23131a(0x18b)+_0x1a1801),!window?.[_0x23131a(0x2ac)]?.[_0x23131a(0x195)][_0x23131a(0x2a9)](_0x23131a(0x237)))return;const _0x2b528c={'isSuccess':Boolean(_0x1a1801),'certifyId':_0x1a1801?_0x23131a(0x245)+_0x1a1801:null,'portrait':null,'errorMsg':Boolean(_0x1a1801)?null:_0x23131a(0x256)};window[_0x23131a(0x352)]('hashchange',_0x3d6282),setTimeout(()=>{const _0x16969b=_0x23131a;_0x298e8e('executeAuthFaceInBrowser',_0x16969b(0x20e)+JSON[_0x16969b(0x37f)](_0x2b528c)),_0x473093(_0x2b528c);},-0x112a+-0x26aa+0x3838);};window['addEventListener'](_0x138913(0x1ba),_0x3d6282);const _0x94ff7=encodeURIComponent(window[_0x138913(0x2ac)][_0x138913(0x195)]),{certNo:_0x5d2743,name:_0x528e50}=_0x48d643;let _0x29dcc0=_0x138913(0x34f)+_0x94ff7+'&type=authFace&idCard='+encodeURIComponent(_0x5d2743)+_0x138913(0x25d)+_0x528e50;_0x4c6a69()?_0x48398e(_0x29dcc0,_0x473093):_0x2ad3ef()?_0x3eb985(_0x29dcc0,_0x473093):(_0x298e8e('executeAuthFaceInBrowser',_0x138913(0x22b),_0x138913(0x335)),_0x473093({'isSuccess':!(0x20f2+0x1a3*-0x7+-0x1f4*0xb),'code':-(0xb7f+-0x5cd+-0x5b1),'message':'当前环境下不支持人脸识别验证功能'}));}},_0x4b6f1a={'locationCheck':!(0x5*0x1f3+-0x3a6+0x28*-0x27),'locationStackList':[],'checkLocationEvStack'(){const _0x392cae=_0x28c2a8;this[_0x392cae(0x15b)][_0x392cae(0x2ec)](_0x50f3a6=>{const _0x5ae2b1=_0x392cae;this[_0x5ae2b1(0x271)](_0x50f3a6[_0x5ae2b1(0x206)],_0x50f3a6['id']);});},'executeGetLocationInBrowser'(_0x27198c){const _0x242c46=_0x28c2a8;_0x298e8e(_0x242c46(0x2dd),_0x242c46(0x35b)),_0x2ad3ef()?this[_0x242c46(0x1f3)](_0x27198c):_0x4c6a69()?this[_0x242c46(0x271)](_0x27198c):_0x27198c({'code':-(-0xbec+-0x19e*-0x8+-0x7*0x25),'isSuccess':!(-0x3*0x48b+0xb*0x1b0+-0x4ee),'message':_0x242c46(0x351)});},'getLocationInWeChat'(_0x171675,_0x235e08){const _0x5bb9ad=_0x28c2a8;return this[_0x5bb9ad(0x188)]?this[_0x5bb9ad(0x2ea)]?(_0x298e8e('getLocationInWeChat',_0x5bb9ad(0x2d7)),void this[_0x5bb9ad(0x21f)](_0x171675,_0x235e08)):void this[_0x5bb9ad(0x21f)](_0x171675,_0x235e08):(_0x298e8e('getLocationInWeChat','微信SDK尚未初始化完毕,先行进行堆栈,待微信SDK初始化后,统一调用'),void this[_0x5bb9ad(0x15b)][_0x5bb9ad(0x37d)]({'id':_0x16e3d3(),'resolveInfo':_0x171675}));},'executeGetWeChatLocation'(_0x202f20,_0x4de9d1){const _0x2770b8=_0x28c2a8;_0x298e8e(_0x2770b8(0x21f),_0x2770b8(0x1bd));let _0x4ceb92=null;if(_0x4de9d1){const _0x27e27b=this[_0x2770b8(0x15b)][_0x2770b8(0x16e)](_0x499906=>_0x499906['id']===_0x4de9d1);_0x4ceb92=this[_0x2770b8(0x15b)][_0x27e27b][_0x2770b8(0x206)];}window?.['wx']?.['getLocation']({'type':_0x2770b8(0x13d),'success':_0x456e79=>{const _0x5ae08c=_0x2770b8;this[_0x5ae08c(0x2ea)]=!(-0x1*0x72e+-0x1305+0x1a33*0x1),_0x298e8e(_0x5ae08c(0x21f),_0x5ae08c(0x1f6)+JSON[_0x5ae08c(0x37f)](_0x456e79));const _0x3d118f={'isSuccess':!(-0x1*-0x20f2+-0x1039+-0x10b9),'location':{'longitude':_0x456e79?.[_0x5ae08c(0x377)],'latitude':_0x456e79?.[_0x5ae08c(0x342)]},'message':'微信小程序下只提供经纬度'};if(_0x4de9d1)return _0x4ceb92(_0x3d118f),void this[_0x5ae08c(0x16d)](_0x4de9d1);_0x202f20(_0x3d118f);},'fail':_0x21cd8b=>{const _0x1a3611=_0x2770b8,_0x594a8d={'isSuccess':!(-0x1*0x143f+0x3*-0x48b+0x21e1),'message':_0x1a3611(0x2e3)};if(_0x298e8e(_0x1a3611(0x21f),_0x1a3611(0x1aa)+JSON['stringify'](_0x21cd8b)),_0x4de9d1)return _0x4ceb92(_0x594a8d),void this[_0x1a3611(0x16d)](_0x4de9d1);_0x202f20(_0x594a8d);}});},'clearLocationEventStack'(_0x4132d5){const _0x50b490=_0x28c2a8,_0x12b428=this[_0x50b490(0x15b)][_0x50b490(0x16e)](_0x3739dd=>_0x3739dd['id']===_0x4132d5);-(-0x14e*-0x16+0x1c*0x91+0x3d*-0xbb)!==_0x12b428&&this['locationStackList'][_0x50b490(0x312)](_0x12b428,-0x1*-0x1e2b+-0x1*0x229d+0x473);},'getLocationInAliPay'(_0x260e0b){const _0x1a6d13=_0x28c2a8;_0x298e8e(_0x1a6d13(0x1f3),_0x1a6d13(0x2a2)),window?.['my']?.[_0x1a6d13(0x299)]({'success':_0x54ddfd=>{const _0x119ada=_0x1a6d13;_0x298e8e(_0x119ada(0x1f3),'获取到的坐标信息:'+JSON[_0x119ada(0x37f)](_0x54ddfd)),_0x260e0b({'isSuccess':!(0x1ed7+-0x4*0x1c6+-0x17bf),'location':{'longitude':_0x54ddfd?.[_0x119ada(0x377)],'latitude':_0x54ddfd?.[_0x119ada(0x342)]},'message':_0x119ada(0x13c)});},'fail':_0x13d0e2=>{const _0x3693fc=_0x1a6d13;_0x298e8e(_0x3693fc(0x1f3),'获取位置信息失败',_0x3693fc(0x30a),_0x13d0e2),_0x260e0b({'code':-(-0x1b*0x5f+-0xea2*0x1+0x18a8),'isSuccess':!(0x2*0x1310+0x593*-0x6+-0x4ad),'message':_0x3693fc(0x298)});}});}},_0x2f4556={'executeImageChooseInBrowser'(_0x3b9e7d,_0x4b20d6,_0x3a22e0){const _0x2bdbfd=_0x28c2a8,{count:_0x4f5411,sizeType:_0x30f78d,sourceType:_0xcf53c}=_0x4b20d6,{bResDataFormat:_0x5c408e}=_0x3a22e0;if(_0x4c6a69()||_0x2ad3ef()){const _0x519dd6={'count':_0x4f5411||-0x1b65+-0x915+0x1*0x2483,'mediaType':[_0x2bdbfd(0x22a)],'sizeType':_0x30f78d||[_0x2bdbfd(0x1e5),_0x2bdbfd(0x1a8)],'sourceType':_0xcf53c||[_0x2bdbfd(0x160)],'success':_0xaaaae4=>{const _0x270391=_0x2bdbfd;_0xaaaae4?.[_0x270391(0x2eb)]&&_0x3b9e7d(_0x5c408e?_0x5c408e(_0xaaaae4):_0xaaaae4),_0x298e8e(_0x270391(0x225),_0x270391(0x1bf)+JSON[_0x270391(0x37f)](_0xaaaae4));},'fail':_0x41f1f0=>{const _0x545776=_0x2bdbfd;_0x298e8e(_0x545776(0x225),'微信/支付宝环境下执行选择图片API执行失败,结果:'+JSON[_0x545776(0x37f)](_0x41f1f0));}};return void(_0x2ad3ef()?window['my']['chooseImage'](_0x519dd6):window['wx'][_0x2bdbfd(0x1cd)](_0x519dd6));}_0x3b9e7d({'isSuccess':!(0x5fa+0x1e7*-0x1+-0x2*0x209),'code':-(0x2300+-0x17af+-0x1*0xb50),'message':'目前环境暂不支持,敬请期待'});}},_0x59ff6c={'navigationCheck':!(-0x6*-0x4e7+0x1b5a+-0x38c3),'startNavigationInBrowser'(_0x293479,_0x271a83={}){const _0x36e1c7=_0x28c2a8,_0x4cf42e=encodeURIComponent(window?.[_0x36e1c7(0x2ac)]?.[_0x36e1c7(0x195)]),{lat:_0x57f0d0,lng:_0x37103d,address:_0x5dacf3,name:_0xc22f7c,dinateType:_0x57212b}=_0x271a83;let _0x5509e4=_0x36e1c7(0x34f)+_0x4cf42e+_0x36e1c7(0x133)+_0x57f0d0+_0x36e1c7(0x373)+_0x37103d+_0x36e1c7(0x2d9)+_0x5dacf3+_0x36e1c7(0x25d)+_0xc22f7c;if(_0x57212b&&'GCJ02'!==_0x57212b){const _0xc442c4=_0x55d506(_0x271a83),{destinationLatitude:_0x16ec8c,destinationLongitude:_0x17c114}=_0xc442c4;_0x5509e4='/pages/sdk/sdk?redirectUrl='+_0x4cf42e+_0x36e1c7(0x133)+_0x16ec8c+_0x36e1c7(0x373)+_0x17c114+'&address='+_0x5dacf3+_0x36e1c7(0x25d)+_0xc22f7c;}_0x298e8e('startNavigationInBrowser',_0x36e1c7(0x32d)+_0x5509e4),_0x4c6a69()?_0x48398e(_0x5509e4,_0x293479):_0x2ad3ef()?_0x3eb985(_0x5509e4,_0x293479):(_0x298e8e(_0x36e1c7(0x286),_0x36e1c7(0x20b)),_0x293479({'isSuccess':!(0x2*-0xfa7+-0x1759*-0x1+0x7f6),'code':-(-0x2458+0xa60+0x19f9),'message':_0x36e1c7(0x1ce)}));}},_0x239a29={'wvInfo':null,'isHarmony':!(-0x100c+0x15ce*0x1+0x1eb*-0x3),'isCheckDevice':!(0x3a2+0x1d6c+-0x210d),async 'initMessage'(..._0x42e1fc){const _0x340dd5=_0x28c2a8,_0x21103e=_0x42e1fc[0x1*-0x2137+0x2aa*-0x4+0x2bdf];await this[_0x340dd5(0x137)](),await this[_0x340dd5(0x228)](_0x42e1fc[0xd93+-0x1bf5*-0x1+-0x14c3*0x2]),_0x5932f0()?window[_0x340dd5(0x2d0)](_0x340dd5(0x35e),_0x4a317c=>{const _0x2ed98a=_0x340dd5;_0x298e8e(_0x2ed98a(0x126),_0x2ed98a(0x304)+JSON[_0x2ed98a(0x37f)](_0x4a317c),_0x2ed98a(0x2f0)),this[_0x2ed98a(0x21c)](_0x4a317c);}):(_0x298e8e(_0x340dd5(0x126),_0x340dd5(0x156)+JSON[_0x340dd5(0x37f)](_0x21103e),'log'),this[_0x340dd5(0x21c)](_0x21103e));},'checkDeviceInfo'(){const _0x289615=_0x28c2a8;this[_0x289615(0x12a)]||(this['isCheckDevice']=!(0x9*0x1cd+-0x17*0xe5+0x56*0xd),uni['sendNativeEvent']('System_getAppInfo',{},_0x25cd90=>{const _0x5840b2=_0x289615;this['isHarmony']=_0x25cd90?.['platform']?.[_0x5840b2(0x177)]()[_0x5840b2(0x2a9)]('harmony');}));},'initVMInfo'(_0x3f8ab0){const _0x5875c2=_0x28c2a8;if(!this[_0x5875c2(0x1c8)]){if(this[_0x5875c2(0x327)])this[_0x5875c2(0x1c8)]=uni[_0x5875c2(0x2b1)](_0x5875c2(0x19b),_0x3f8ab0);else try{this['wvInfo']=_0x3f8ab0,_0x3f8ab0?.[_0x5875c2(0x1cb)]?.[_0x5875c2(0x213)]()&&(this[_0x5875c2(0x1c8)]=_0x3f8ab0['$scope'][_0x5875c2(0x213)]()[_0x5875c2(0x130)]()[-0x1042*0x2+-0x238b+0x1*0x440f]);}catch(_0x43a181){_0x298e8e('initMessage','初始化消息模块,是否包含wvInfo:'+typeof this[_0x5875c2(0x1c8)]?.[_0x5875c2(0x1e9)]);}}},'getMsgFromH5'(_0x6a6da7={}){const _0x75faab=_0x28c2a8;let _0x2e9d5d=this[_0x75faab(0x33e)](_0x6a6da7);const {origin:_0x3a3f5f}=_0x6a6da7||{},{href:_0x568bf0}=location||{};if(_0x5932f0()&&_0x568bf0?.[_0x75faab(0x2a9)](_0x3a3f5f))return!(-0x73*-0x33+0x477*-0x3+-0x5*0x1e7);const {isH5Send:_0x589361,methodName:_0x5a0117,methodData:_0x5f1fd2}=_0x2e9d5d||{};return!!_0x589361&&(_0x5a0117?null==_0x5f1fd2?(_0x298e8e('getMsgFromH5',_0x75faab(0x300),'warn'),!(-0x129a+-0x1e1d*-0x1+-0x5c1*0x2)):(_0x298e8e(_0x75faab(0x21c),_0x75faab(0x2f6)+_0x5a0117+_0x75faab(0x183)+JSON['stringify'](_0x5f1fd2)+_0x75faab(0x13f)+_0x589361+'】',_0x75faab(0x2f0)),void(this[_0x5a0117]?this['executeH5MethodName'](_0x5a0117,_0x2e9d5d):_0x298e8e(_0x75faab(0x21c),'【'+_0x5a0117+_0x75faab(0x1f9),_0x75faab(0x2e6)))):(_0x298e8e(_0x75faab(0x21c),_0x75faab(0x2bc),'warn'),!(0x8e*-0x2+0x5b2+-0x17*0x33)));},'executeH5MethodName'(_0x47a758,_0x2405f8){const _0x13ad54=_0x28c2a8,{msgId:_0x5d2439,methodData:_0x2d6573}=_0x2405f8;try{const _0x3c6ec9=this[_0x47a758][_0x13ad54(0x21e)]();if(_0x298e8e(_0x13ad54(0x1c6),'【'+_0x47a758+'】方法定义:'+_0x3c6ec9,_0x13ad54(0x2f0)),_0x3c6ec9['includes'](_0x13ad54(0x332)))return void this[_0x47a758](_0x2d6573)[_0x13ad54(0x147)](_0x43af2b=>{const _0x4b1897=_0x13ad54;_0x298e8e('executeH5MethodName',_0x47a758+_0x4b1897(0x216)+JSON[_0x4b1897(0x37f)](_0x43af2b),_0x4b1897(0x2f0));let _0x54b9ba=_0x43af2b;try{_0x54b9ba=JSON[_0x4b1897(0x158)](_0x43af2b);}catch(_0x5f2a62){_0x298e8e(_0x4b1897(0x1c6),_0x4b1897(0x12c),'error',_0x5f2a62);}this[_0x4b1897(0x328)]({'msgId':_0x5d2439,'sourceMethod':_0x47a758,'resultInfo':_0x54b9ba,'isWebviewSend':!(-0x15ea+-0x12e*-0x18+0x333*-0x2),'resultMessage':'执行'+_0x47a758+_0x4b1897(0x2be)});})[_0x13ad54(0x1f8)](_0x42e104=>{const _0x2a2119=_0x13ad54;_0x298e8e('executeH5MethodName',_0x47a758+_0x2a2119(0x204),_0x2a2119(0x30a),_0x42e104),this[_0x2a2119(0x328)]({'msgId':_0x5d2439,'sourceMethod':_0x47a758,'resultInfo':null,'isWebviewSend':!(-0x25d*-0xf+0x5*-0x647+-0x4*0x104),'resultMessage':'执行'+_0x47a758+_0x2a2119(0x238)});});this[_0x47a758](_0x2d6573),this[_0x13ad54(0x328)]({'msgId':_0x5d2439,'sourceMethod':_0x47a758,'resultInfo':null,'isWebviewSend':!(-0x1d7*-0x1+0x16b0+-0x1887),'resultMessage':'执行'+_0x47a758+_0x13ad54(0x2be)});}catch(_0x340a26){_0x298e8e(_0x13ad54(0x21c),_0x47a758+'方法执行失败',_0x13ad54(0x30a),_0x340a26);}},'postMsgToH5'(_0x10c2b0){const _0x1d5302=_0x28c2a8,_0x10bbdb=JSON['stringify'](_0x10c2b0);if(_0x298e8e(_0x1d5302(0x328),_0x1d5302(0x1d2)+_0x10bbdb,'log'),_0x5932f0())_0x298e8e(_0x1d5302(0x328),_0x1d5302(0x1b4),_0x1d5302(0x2f0)),document['querySelector']('iframe')[_0x1d5302(0x212)][_0x1d5302(0x355)](JSON[_0x1d5302(0x37f)](_0x10bbdb),'*');else try{_0x298e8e(_0x1d5302(0x328),_0x1d5302(0x1df),'log'),this[_0x1d5302(0x1c8)]['evalJS'](_0x1d5302(0x235)+_0x10bbdb+'\x27)');}catch(_0x18497b){_0x298e8e('postMsgToH5','执行浏览器的webview回传异常','error',_0x18497b);}},'getMsgDataFromH5'(_0x54c2d1){const _0x23a48d=_0x28c2a8;let _0x1db914=null;const {data:_0x27a81a}=_0x54c2d1;try{_0x1db914=_0x5932f0()?_0x27a81a?.[_0x23a48d(0x344)]?.[_0x23a48d(0x346)]?_0x27a81a?.[_0x23a48d(0x344)]?.['arg']:_0x27a81a?.['data']?_0x27a81a[_0x23a48d(0x344)]:_0x27a81a:_0x54c2d1[_0x23a48d(0x131)]?.['data'][0x503*-0x2+-0x5*-0x241+-0xb*0x1d];}catch(_0x39a7f9){return _0x298e8e(_0x23a48d(0x33e),_0x23a48d(0x28b),_0x23a48d(0x30a),_0x39a7f9),!(-0x1*-0x250c+0xd31+0x14*-0x283);}return _0x298e8e(_0x23a48d(0x33e),_0x23a48d(0x2ef)+JSON[_0x23a48d(0x37f)](_0x1db914),_0x23a48d(0x2f0)),_0x1db914;}},_0x2d202d=(_0x5c581a,_0x5b3492,_0x51527b)=>{const _0x4371c9=_0x28c2a8;if(_0x298e8e(_0x4371c9(0x1f0),''+JSON['stringify'](_0x5c581a)),_0x4371c9(0x247)==typeof _0x5c581a)return _0x51527b[_0x5b3492]=_0x5c581a,void(_0x5c581a=_0x4371c9(0x2a4)+_0x5b3492);if(_0x4371c9(0x2b5)!=typeof _0x5c581a)return;let _0xae78fa=null;for(let _0x177d29 in _0x5c581a)switch(typeof _0x5c581a[_0x177d29]){case _0x4371c9(0x2b5):_0xae78fa=_0x5b3492?_0x5b3492+'_'+_0x177d29:_0x177d29,_0x2d202d(_0x5c581a[_0x177d29],_0xae78fa,_0x51527b);break;case _0x4371c9(0x247):_0xae78fa=_0x5b3492?_0x5b3492+'_'+_0x177d29:_0x177d29,_0x51527b[_0xae78fa]=_0x5c581a[_0x177d29],_0x5c581a[_0x177d29]='[Function]::'+_0xae78fa;}},_0x6f3e50=_0x47e471=>{const _0xa5a94b=_0x28c2a8;let _0x474a75=0x1*0x1545+-0x162d+-0x4*-0x3a;return _0xa5a94b(0x23a)==typeof _0x47e471?_0x474a75=0x161b+-0x6c8*0x2+-0x2*0x445:_0xa5a94b(0x2aa)==typeof _0x47e471?_0x474a75=0x2512+0x4e*0x2b+-0x1*0x322a:_0xa5a94b(0x275)==typeof _0x47e471?_0x474a75=-0x48e+0x2293+-0xf01*0x2:_0xa5a94b(0x247)==typeof _0x47e471?_0x474a75=-0x6*-0x3f3+0xe01+-0x25af:_0x47e471 instanceof Array?_0x474a75=-0x2*-0xb28+-0x1*-0x1384+-0x2*0x14e7:_0xa5a94b(0x2b5)==typeof _0x47e471&&(_0x474a75=0x2650+-0x900+-0x1d4b),_0x474a75;},_0x172a8d={'appH5SendMsgToApp'(_0xd5a8c2,_0x5da46d={},_0x52fa34={}){const _0x3ce053=_0x28c2a8,{isWindowEv:_0x1797b2,moduleName:_0x4ce60c,nativeEvName:_0x2c2587,isCustomEv:_0x2b2a00}=_0x5da46d;if(_0x1797b2)return void this[_0x3ce053(0x172)](_0xd5a8c2,_0x5da46d,_0x52fa34);const _0x33a8b3=_0x2b2a00?_0x3ce053(0x1b2):_0x4ce60c,_0x2b3e42=_0x2b2a00?_0x3ce053(0x1e2):_0x2c2587;this[_0x3ce053(0x36b)]({'resolveInfo':_0xd5a8c2,'moduleName':_0x33a8b3,'eventName':_0x2b3e42,'actionName':_0x2c2587,'dataInfo':_0x52fa34,'isCustomEv':_0x2b2a00,'evConfig':_0x5da46d});},'executeSendMsgToApp'(_0x4e3e8f={}){const _0x361561=_0x28c2a8,{moduleName:_0x9ad102,eventName:_0x327d8c,actionName:_0x54a03d,dataInfo:_0x16ba91,resolveInfo:_0x94253c,isCustomEv:_0x2e268d,evConfig:_0x84b10b}=_0x4e3e8f||{},{description:_0x3d12d3}=_0x84b10b,_0x813ef6=this;try{let _0xb8445d={};if(('object'==typeof _0x16ba91?Object['keys'](_0x16ba91):[])[_0x361561(0x1b0)]>-0x1e6b+-0x8e2+0x274d&&(_0xb8445d=_0x401e92(_0x16ba91)),_0x2e268d){const _0x445f9f=_0x401e92(_0xb8445d);_0x298e8e(_0x361561(0x2d8),_0x3d12d3+'功能在是通过custom.call的方式调用,需要重新处理入参'),_0xb8445d[_0x361561(0x1ff)]=_0x445f9f,_0xb8445d[_0x361561(0x326)]=_0x54a03d;}_0x298e8e('webviewSendMsgToApp',_0x3d12d3+_0x361561(0x1a9)+JSON[_0x361561(0x37f)](_0xb8445d)),this['initEventCallbackEv'](_0x94253c,_0xb8445d,_0x84b10b);const _0xfaf1aa=(function(){const _0x23f3dc=_0x361561;return _0x813ef6[_0x23f3dc(0x303)](window['c2'][_0x9ad102][_0x327d8c+_0x23f3dc(0x308)],arguments);}(_0xb8445d));_0x298e8e(_0x361561(0x2d8),_0x3d12d3+'功能在'+_0x244265()+_0x361561(0x2d1)+JSON[_0x361561(0x37f)](_0xfaf1aa)),this['h5SendMsgToAppByBrowser'](_0x94253c,_0x84b10b,_0xfaf1aa);}catch(_0x26de5f){console[_0x361561(0x2f0)](_0x361561(0x2f3)+_0x26de5f+','+JSON[_0x361561(0x37f)](_0x26de5f)),_0x298e8e(_0x361561(0x2d8),_0x3d12d3+'执行数据处理失败',_0x361561(0x30a),_0x26de5f);}},'initEventCallbackEv'(_0x4fa8f5,_0x58704d,_0x36cc7b={}){const _0x435ef8=_0x28c2a8,{description:_0x45f5b0,resDataFormat:_0x4f5991,resErrorFormat:_0x20f481}=_0x36cc7b;_0x58704d[_0x435ef8(0x2e8)]=function(_0x90fec9){const _0x44229a=_0x435ef8;_0x298e8e(_0x44229a(0x2d8),_0x45f5b0+_0x44229a(0x374)),_0x4fa8f5(_0x4f5991?_0x4f5991(_0x90fec9):_0x90fec9);},_0x58704d['onFail']=function(_0x27d6f3){const _0x1d0253=_0x435ef8,_0x1df896=_0x401e92(_0x27d6f3);_0x298e8e(_0x1d0253(0x2d8),_0x45f5b0+_0x1d0253(0x20f)+JSON[_0x1d0253(0x37f)](_0x1df896)),_0x4fa8f5(_0x20f481?_0x20f481(_0x1df896):_0x4f5991?_0x4f5991(_0x1df896):_0x1df896);};},'formatBridgeData'(_0x4bf35,_0x870bf2){const _0x3f5f2a=_0x28c2a8;try{const _0xe0f929=Math[_0x3f5f2a(0x364)]()[_0x3f5f2a(0x21e)](-0x97c+-0xadd+0x1479)[_0x3f5f2a(0x2ca)](-0xd*0x20f+0x5ef*-0x3+0x2c92),_0x39ec4e=[];for(let _0x30e50c in _0x870bf2){const _0x4efe10=_0xe0f929+'_a'+_0x30e50c,_0x3ab566=_0x870bf2[_0x30e50c],_0x136703={};!(-0x1b9b+0x2380+0x3f2*-0x2)===/OpenHarmony ([5-9])|OpenHarmony (\d{2})/i[_0x3f5f2a(0x193)](navigator[_0x3f5f2a(0x1cf)])&&_0x2d202d(_0x3ab566,_0x4efe10,_0x136703);for(let _0x3c2e08 in _0x136703)_0x4bf35[_0x3c2e08]=_0x136703[_0x3c2e08],this[_0x3f5f2a(0x219)][_0x3f5f2a(0x37d)](_0x4bf35);_0x39ec4e[_0x3f5f2a(0x37d)]({'type':_0x6f3e50(_0x3ab566),'name':_0x4efe10,'value':_0x3ab566});}return _0x298e8e('formatBridgeData',_0x3f5f2a(0x2b0)+JSON[_0x3f5f2a(0x37f)](_0x39ec4e)),{'params':_0x39ec4e,'id':_0xe0f929};}catch(_0x4572dc){_0x298e8e(_0x3f5f2a(0x303),_0x3f5f2a(0x2c6),_0x3f5f2a(0x30a),_0x4572dc);}},'h5SendMsgToAppByWindow'(_0x160abb,_0x51ebba={},_0xbdeb98={}){const _0x2eae17=_0x28c2a8,{nativeEvName:_0xf75eb0,description:_0x528486,resDataFormat:_0x1ce048}=_0x51ebba,_0x5bc53b=_0x244265(),_0xf687a1=_0xf75eb0+_0x2eae17(0x264);let _0x1d45c5=_0xbdeb98;_0x298e8e('h5SendMsgToAppByWindow','给【'+_0x5bc53b+_0x2eae17(0x1de)+_0x528486+_0x2eae17(0x1d6)+_0xf75eb0+'】事件调用,回调函数名称:【'+_0xf687a1+'】',_0x2eae17(0x2f0)),window[_0xf687a1]=_0x1615a6=>{const _0x131de4=_0x2eae17;let _0x4e0c7a=_0x1615a6;_0x298e8e(_0x131de4(0x172),'收到【'+_0x5bc53b+'】APP发送的'+_0x528486+'事件调用的回调值:'+JSON[_0x131de4(0x37f)](_0x4e0c7a)+_0x131de4(0x2a1)+typeof _0x4e0c7a,'log'),_0x4e0c7a=_0x169729(_0x4e0c7a),_0x160abb(_0x1ce048?_0x1ce048(_0x4e0c7a):_0x4e0c7a);},setTimeout(()=>{const _0x37af14=_0x2eae17;_0x37af14(0x2d3)!==_0x5bc53b['toLowerCase']()?_0x37af14(0x2c0)!==_0x5bc53b[_0x37af14(0x177)]()?window[_0x37af14(0x2ed)][_0xf75eb0](_0x1d45c5):window[_0x37af14(0x2c0)][_0xf75eb0](_0x1d45c5):window['webkit'][_0x37af14(0x2a8)][_0xf75eb0]['postMessage'](_0x1d45c5);},0x158*0x9+-0x126d+0x6b9);},'h5SendMsgToAppByBrowser'(_0x53c2b8,_0x5afb0f={},_0x5674e0={}){const _0x376a29=_0x28c2a8,_0x323b86=_0x244265();_0x298e8e(_0x376a29(0x171),'给【'+_0x323b86+_0x376a29(0x1de)+_0x5afb0f[_0x376a29(0x190)]+'】事件调用,入参:'+JSON[_0x376a29(0x37f)](_0x5674e0),_0x376a29(0x2f0));const {nativeEvName:_0x31eddc,moduleName:_0x32f1be,isCustomEv:_0x11eb6f}=_0x5afb0f,{id:_0xb6e286,params:_0x544ff2}=_0x5674e0;if(_0x376a29(0x2c0)!==_0x323b86)return _0x376a29(0x2d3)===_0x323b86?(this[_0x376a29(0x17a)][_0x376a29(0x37d)]({'id':_0xb6e286,'resolveInfo':_0x53c2b8,'configInfo':_0x5afb0f}),void this[_0x376a29(0x1c0)](_0xb6e286,_0x32f1be,_0x31eddc,_0x544ff2,_0x11eb6f)):void(_0x376a29(0x2ed)===_0x323b86&&this[_0x376a29(0x196)](_0xb6e286,_0x32f1be,_0x31eddc,_0x544ff2,_0x11eb6f));this[_0x376a29(0x258)](_0xb6e286,_0x32f1be,_0x31eddc,_0x544ff2,_0x11eb6f);},'h5SendMsgToAndroid'(_0x456dbe,_0x55f365,_0xdc5fdd,_0x5a962a,_0x3e3436){const _0x11b7fe=_0x28c2a8,_0x21499c={'id':_0x456dbe,'module':_0x3e3436?_0x11b7fe(0x1b2):_0x55f365,'method':_0x3e3436?_0x11b7fe(0x1e2):_0xdc5fdd,'parameters':_0x5a962a};return _0x298e8e('h5SendMsgToAndroid',_0x11b7fe(0x23e)+JSON[_0x11b7fe(0x37f)](_0x21499c)),JSON['parse'](window[_0x11b7fe(0x189)][_0x11b7fe(0x202)](JSON['stringify'](_0x21499c)));},'h5SendMsgToIOS'(_0x37c6a0,_0x2a1c33,_0x50c19b,_0x558c6e,_0x46c057){const _0x4a780e=_0x28c2a8,_0x337633={'id':_0x37c6a0,'module':_0x46c057?_0x4a780e(0x1b2):_0x2a1c33,'method':_0x46c057?_0x4a780e(0x1e2):_0x50c19b,'parameters':_0x558c6e};return _0x298e8e(_0x4a780e(0x1c0),_0x4a780e(0x250)+JSON[_0x4a780e(0x37f)](_0x337633)),JSON[_0x4a780e(0x158)](prompt(JSON[_0x4a780e(0x37f)](_0x337633)));},'h5SendMsgToHarmony'(_0x3e1cdb,_0x333e1f,_0x34e824,_0x3fdccd,_0x13b32f){const _0x51bf90=_0x28c2a8,_0x46b48c={'id':_0x3e1cdb,'module':_0x13b32f?_0x51bf90(0x1b2):_0x333e1f,'method':_0x13b32f?_0x51bf90(0x1e2):_0x34e824,'parameters':_0x3fdccd};return _0x298e8e(_0x51bf90(0x196),_0x51bf90(0x339)+JSON[_0x51bf90(0x37f)](_0x46b48c)),JSON[_0x51bf90(0x158)](window['harmonyFunction'][_0x51bf90(0x32e)](_0x46b48c));}},_0x5e2bdb={'msgList':[],'msgStack':[],async 'miniAppH5SendMsgToApp'(_0x551744,_0x3b2e61,_0x229cef){const _0x8863df=_0x28c2a8;try{_0x298e8e('miniAppH5SendMsgToApp',_0x8863df(0x2e0)+_0x3b2e61,_0x8863df(0x2f0));const _0x57b08b=await this[_0x8863df(0x1e8)]({'methodName':_0x3b2e61,'methodData':_0x229cef});_0x551744(_0x57b08b?.[_0x8863df(0x1a0)]);}catch(_0x51021a){_0x298e8e(_0x8863df(0x316),'执行'+_0x3b2e61+'失败',_0x8863df(0x30a),_0x51021a),_0x551744({'isSuccess':!(-0x6*-0x668+-0x1839+-0x71b*0x2),'message':_0x8863df(0x37e)});}},'sendMsgToMiniApp'(_0xacfc8c){const _0x133a29=_0x28c2a8;return new Promise((_0xbf47ce,_0x5e67bd)=>{const _0x161e66=_0x37bd;_0x298e8e('postMsgToWebview','消息内容:'+JSON[_0x161e66(0x37f)](_0xacfc8c),_0x161e66(0x2f0));const {methodName:_0x43daa6,methodData:_0x5165a9}=_0xacfc8c||{};if(!_0x43daa6)return void _0x298e8e('postMsgToWebview',_0x161e66(0x318),_0x161e66(0x2e6));if(!_0x5165a9)return void _0x298e8e(_0x161e66(0x36e),_0x161e66(0x305),'warn');const _0x5930cd=_0x16e3d3(),_0x5ba751={'data':{'msgId':_0x5930cd,'isH5Send':!(0xba*0x1d+0x4c0+-0x1*0x19d2),..._0xacfc8c}};if(this[_0x161e66(0x25b)][_0x161e66(0x37d)]({'id':_0x5930cd,'resolveInfo':_0xbf47ce,'rejectInfo':_0x5e67bd}),_0x298e8e('postMsgToWebview',_0x161e66(0x274)+JSON[_0x161e66(0x37f)](_0x5ba751),_0x161e66(0x2f0)),!this['uniSDKInit'])return _0x298e8e(_0x161e66(0x36e),_0x161e66(0x1eb),_0x161e66(0x2f0)),void this[_0x161e66(0x296)][_0x161e66(0x37d)]({'id':_0x16e3d3(),'msgContent':_0x5ba751,'resolve':_0xbf47ce,'reject':_0x5e67bd});uni?.['webView']?.[_0x161e66(0x355)]?uni[_0x161e66(0x19d)][_0x161e66(0x355)](_0x5ba751):uni?.[_0x161e66(0x355)](_0x5ba751);})[_0x133a29(0x1f8)](_0x2e7283=>{const _0x1c32b3=_0x133a29;_0x298e8e('postMsgToWebview','发生异常',_0x1c32b3(0x30a),_0x2e7283);});}},_0x1cb76d={'getMessageFromWebview'(_0x66522d,_0xef16f7=!(0x195d+0x1eb3*-0x1+-0x557*-0x1)){const _0x34e795=_0x28c2a8;let _0x1f5606={};try{_0x1f5606=_0xef16f7?_0x66522d:_0x66522d?.['data']||'{}',_0x1f5606=_0x169729(_0x1f5606);}catch(_0x1c2a96){_0x298e8e(_0x34e795(0x1be),_0x34e795(0x153),_0x34e795(0x30a),_0x1c2a96);}if(_0x298e8e('getMessageFromWebview','是否为webview发送的消息内容:'+_0x1f5606?.[_0x34e795(0x371)]+_0x34e795(0x164)+JSON['stringify'](_0x1f5606),_0x34e795(0x2f0)),!_0x1f5606?.[_0x34e795(0x371)])return;const {msgId:_0x4a11f8}=_0x1f5606,_0x23ef7c=this['msgList'][_0x34e795(0x16e)](_0x10a325=>_0x10a325['id']===_0x4a11f8);if(-(-0x6b9*0x1+0x1942+-0x1288)===_0x23ef7c)return;const _0x3a15da=this[_0x34e795(0x25b)][_0x23ef7c],{resolveInfo:_0x51b952}=_0x3a15da;_0x51b952(_0x1f5606),this['msgList'][_0x34e795(0x312)](_0x23ef7c,0x5f2+-0x13db+0xdea);}},_0x33b154=(_0x1e4cca,_0x15c1c9={},_0x53af13='')=>{const _0x184501=_0x28c2a8;_0x184501(0x2ac)!==_0x53af13?_0x184501(0x1db)===_0x53af13&&((_0x9e5fbf,_0x1f3e78)=>{const _0x45c625=_0x184501;_0x1f3e78['isSuccess']?_0x3be324(_0x9e5fbf,_0x1f3e78):uni[_0x45c625(0x2ee)]('System_getAppInfo',{},_0x534385=>{const _0x108b22=_0x45c625;_0x534385[_0x108b22(0x31d)][_0x108b22(0x177)]()['includes'](_0x108b22(0x2ed))&&(_0x1f3e78['isSuccess']=_0x1f3e78?.[_0x108b22(0x251)]||Boolean(_0x1f3e78[_0x108b22(0x163)])),_0x3be324(_0x9e5fbf,_0x1f3e78);});})(_0x1e4cca,_0x15c1c9):((_0x26fab3,_0x4e7ed8)=>{const _0x4e5dd4=_0x184501;_0x298e8e('locationCoordinate',_0x4e5dd4(0x2b6));const {location:_0x4ccf15}=_0x4e7ed8;uni[_0x4e5dd4(0x2ee)](_0x4e5dd4(0x2c2),{},_0x4a89c5=>{const _0xaaf92a=_0x4e5dd4,{platform:_0x34f0cb}=_0x4a89c5;if(_0x298e8e(_0xaaf92a(0x270),_0xaaf92a(0x1c4)+_0x34f0cb+_0xaaf92a(0x281)+_0x4ccf15[_0xaaf92a(0x342)]+',lng:'+_0x4ccf15[_0xaaf92a(0x377)]),_0x34f0cb[_0xaaf92a(0x177)]()[_0xaaf92a(0x2a9)](_0xaaf92a(0x2ed))){const _0x4790dc=_0x132525(_0x4ccf15?.['longitude'],_0x4ccf15?.['latitude']);_0x4e7ed8[_0xaaf92a(0x2ac)][_0xaaf92a(0x377)]=_0x4790dc?.[_0xaaf92a(0x253)],_0x4e7ed8[_0xaaf92a(0x2ac)][_0xaaf92a(0x342)]=_0x4790dc?.['lat'];}if(_0x34f0cb[_0xaaf92a(0x177)]()[_0xaaf92a(0x2a9)](_0xaaf92a(0x2c0))){const _0x127542=_0x309dc1(_0x4ccf15?.[_0xaaf92a(0x377)],_0x4ccf15?.[_0xaaf92a(0x342)]);_0x4e7ed8['location']['longitude']=_0x127542?.[_0xaaf92a(0x253)],_0x4e7ed8['location']['latitude']=_0x127542?.[_0xaaf92a(0x16a)];}_0x298e8e(_0xaaf92a(0x270),_0xaaf92a(0x30b)+_0x4ccf15[_0xaaf92a(0x342)]+',lng:'+_0x4ccf15[_0xaaf92a(0x377)]),_0x3be324(_0x26fab3,_0x4e7ed8);});})(_0x1e4cca,_0x15c1c9);},_0x58fda3=[_0x28c2a8(0x338),_0x28c2a8(0x27b)];let _0x34a7d1=new class _0x1a6cbc{[_0x28c2a8(0x1a7)]='';[_0x28c2a8(0x2af)]=!(-0x49d*-0x3+-0x91a*0x2+0x45e);['isWebviewPage']=!(-0xa5d*-0x1+-0x3*-0xcf2+-0x3132);[_0x28c2a8(0x240)]=!(-0x14*0x57+0x153d+-0xe70);[_0x28c2a8(0x345)]=!(-0x33b*0x1+0x21bc+-0x1e80);[_0x28c2a8(0x257)]=!(-0x154+-0x1*0x1715+0x186a);['iosCallBackList']=[];[_0x28c2a8(0x219)]=[];[_0x28c2a8(0x320)]=!(0xd70+0x203f*0x1+-0x923*0x5);[_0x28c2a8(0x269)]={};[_0x28c2a8(0x1ef)]=!(-0xaf2*0x1+0x1*0x2273+0x1*-0x1781);constructor(_0xc5668c,_0x17e7d8){const _0x516ead=_0x28c2a8;this[_0x516ead(0x1a7)]=_0xc5668c,this[_0x516ead(0x2af)]=!(-0x64e*0x3+-0x670+-0x1*-0x195b),this[_0x516ead(0x1fc)]=_0x17e7d8,this[_0x516ead(0x17a)]=[],this[_0x516ead(0x174)](),this['initSDKAPI'](),this['initDefaultConfig']();}[_0x28c2a8(0x174)](){_0x4be447(_0x1fbdbd,this),_0x4be447(_0x3ee06c,this),_0x4be447(_0x2a2247,this),_0x4be447(_0x27bbd6,this),_0x4be447(_0x4c459d,this),_0x4be447(_0x1dc4c4,this),_0x4be447(_0x7891c0,this),_0x4be447(_0x4b6f1a,this),_0x4be447(_0x1a82d1,this),_0x4be447(_0x239a29,this),_0x4be447(_0x2f4556,this),_0x4be447(_0x172a8d,this),_0x4be447(_0x354967,this),_0x4be447(_0x59ff6c,this),_0x4be447(_0x1cb76d,this),_0x4be447(_0x5e2bdb,this);}[_0x28c2a8(0x37a)](_0x45ea98){return new Promise(async(_0x1e9346,_0x5cccbd)=>{const _0x14a854=_0x37bd;if(_0x298e8e('init',_0x14a854(0x1a4)),!_0x5932f0())return _0x298e8e(_0x14a854(0x37a),_0x14a854(0x2d4),_0x14a854(0x2e6)),void _0x5cccbd(_0x14a854(0x2d4));_0x57a445()&&this[_0x14a854(0x35f)](),this['initSDKScriptFile'](),await this[_0x14a854(0x2de)](_0x45ea98),_0x1e9346(this[_0x14a854(0x2af)]);});}[_0x28c2a8(0x176)](){const _0x1e67e5=_0x28c2a8;_0x298e8e(_0x1e67e5(0x176),'挂载第三方SDK脚本文件'),this[_0x1e67e5(0x1f1)](),_0x4c6a69()?this[_0x1e67e5(0x1f2)]():this[_0x1e67e5(0x343)]();}[_0x28c2a8(0x35f)](){const _0x469e27=_0x28c2a8;_0x298e8e(_0x469e27(0x35f),_0x469e27(0x13b),_0x469e27(0x2f0)),_0x5932f0()?(window[_0x469e27(0x2d0)](_0x469e27(0x35e),_0x13cd48=>{const _0xbbfc06=_0x469e27;_0x298e8e(_0xbbfc06(0x35f),'浏览器消息处理',_0xbbfc06(0x2f0)),this['getMessageFromWebview'](_0x13cd48);}),window['getMessageFromWebview']=_0x2002cf=>{const _0xa54328=_0x469e27;_0x298e8e('initWebviewMsgFormat','事件注入消息处理',_0xa54328(0x2f0)),this[_0xa54328(0x1be)](_0x2002cf,!(0x1d*-0xa2+-0xa4b+0x1ca5*0x1));}):_0x298e8e(_0x469e27(0x35f),_0x469e27(0x2e4),_0x469e27(0x30a),'');}[_0x28c2a8(0x1f1)](){const _0x19d2e6=_0x28c2a8;_0x5932f0()&&(_0x128612()?this[_0x19d2e6(0x345)]=!(-0x25bd+0xa6f*0x3+0x670):_0x10f23c(_0x19d2e6(0x141),_0x19d2e6(0x180))[_0x19d2e6(0x147)](()=>{const _0x232149=_0x19d2e6;_0x128612()&&(this[_0x232149(0x345)]=!(-0x1436+-0x1b46*-0x1+-0x388*0x2),_0x298e8e(_0x232149(0x1f1),'UNI\x20Webview\x20SDK\x20挂载完成'));}));}[_0x28c2a8(0x343)](){const _0x2d0ac9=_0x28c2a8;_0x298e8e(_0x2d0ac9(0x343),'初始化Alipay\x20SDK'),_0x5932f0()&&(_0x41d6f4()||_0x2ad3ef()&&_0x10f23c(_0x2d0ac9(0x15a),_0x2d0ac9(0x167))[_0x2d0ac9(0x147)](_0x4dfd37=>{const _0xcfde8d=_0x2d0ac9;_0x41d6f4()&&(this['alipayInit']=!(-0x544*-0x2+-0xb*-0xc3+-0x12e9),_0x298e8e(_0xcfde8d(0x343),_0xcfde8d(0x1ad)));}));}[_0x28c2a8(0x231)](){const _0x37518a=_0x28c2a8;_0x2201d7()&&(_0x298e8e(_0x37518a(0x231),_0x37518a(0x2dc)),this['initMobileBridgeGlobalConfig']()),_0x298e8e('initSDKAPI',_0x37518a(0x21b)),_0x4f7b75[_0x37518a(0x2ec)](_0x2d2581=>{const _0x43b8b0=_0x37518a,{eventName:_0x557b2d,moduleName:_0x39aa71,nativeEvName:_0x3b0849,isCustomEv:_0x4d606e}=_0x2d2581;if((_0x39aa71&&_0x3b0849||_0x4d606e)&&_0x2201d7()&&(_0x298e8e(_0x43b8b0(0x231),_0x43b8b0(0x2f7)+_0x557b2d),this[_0x43b8b0(0x169)](_0x39aa71,_0x3b0849,_0x4d606e)),!_0x58fda3?.[_0x43b8b0(0x2a9)](_0x557b2d))try{this[_0x557b2d]=_0x4ca27f=>new Promise(_0x4a27ea=>{const _0x392899=_0x43b8b0;this[_0x392899(0x24b)](_0x4a27ea,_0x4ca27f,_0x2d2581);});}catch(_0x18ad0a){_0x298e8e(_0x43b8b0(0x231),'执行API初始化挂载异常','error',_0x18ad0a);}});}[_0x28c2a8(0x24b)](_0x17d56f,_0x170777={},_0x2d9a2f={}){const _0x208c57=_0x28c2a8,{eventName:_0x2f86f8,description:_0x816ec5,reqDataFormat:_0x11a9fc}=_0x2d9a2f||{},_0x4cb572=_0x244265();let _0x5f444f=_0x170777;if(_0x11a9fc&&(_0x5f444f=_0x11a9fc(_0x170777)),_0x5f444f)return _0x2201d7()?(_0x298e8e(_0x208c57(0x24b),_0x208c57(0x323)+_0x2f86f8+_0x208c57(0x36d)+JSON[_0x208c57(0x37f)](_0x5f444f)),void this[_0x208c57(0x324)](_0x17d56f,_0x2d9a2f,_0x5f444f)):_0x21c4f8()?(_0x298e8e(_0x208c57(0x24b),_0x208c57(0x215)+_0x2f86f8+_0x208c57(0x36d)+JSON[_0x208c57(0x37f)](_0x5f444f)),void this['miniAppH5SendMsgToApp'](_0x17d56f,_0x2f86f8,_0x5f444f,_0x816ec5)):_0x4c6a69()||_0x2ad3ef()?(_0x298e8e(_0x208c57(0x24b),'微信/支付宝小程序事件调用,事件名称:'+_0x2f86f8+',\x20入参:'+JSON[_0x208c57(0x37f)](_0x5f444f)),void this[_0x208c57(0x209)](_0x17d56f,_0x5f444f,_0x170777,_0x2d9a2f)):void this[_0x208c57(0x315)](_0x17d56f,_0x5f444f,_0x2d9a2f);_0x298e8e(_0x2f86f8,'给【'+_0x4cb572+_0x208c57(0x1de)+_0x816ec5+'】-【'+_0x2f86f8+_0x208c57(0x31a),_0x208c57(0x30a));}[_0x28c2a8(0x315)](_0x334a36,_0x39ea04,_0x2c73cd){const _0x13280d=_0x28c2a8,{description:_0x3190fe,uniEvName:_0x32dbe9,eventName:_0x2f8476,nativeResFormat:_0x15fb90}=_0x2c73cd;if(!_0x2cc4ce())return _0x298e8e(_0x13280d(0x315),_0x13280d(0x2f2)),void _0x334a36({'code':-(-0x1340+-0x1ff9+0x333a),'isSuccess':!(0xe8b+-0x1*-0xdf+-0xf69),'message':'非湘易办APP环境,无法执行该API'});try{_0x298e8e(_0x13280d(0x315),_0x13280d(0x260)+_0x3190fe+_0x13280d(0x2c1)+_0x32dbe9+',格式化前的参数信息:'+JSON[_0x13280d(0x37f)](_0x39ea04)),uni[_0x13280d(0x2ee)](_0x32dbe9,_0x39ea04,_0xeda318=>{const _0x1e3a32=_0x13280d;_0x298e8e('executeEvByNative',_0x1e3a32(0x2b2)+_0x3190fe+_0x1e3a32(0x236)+JSON[_0x1e3a32(0x37f)](_0xeda318),_0x1e3a32(0x2f0));let _0x5bae1a=_0xeda318;_0x15fb90&&(_0x5bae1a=_0x15fb90(_0x5bae1a),_0x298e8e(_0x1e3a32(0x315),_0x1e3a32(0x2b2)+_0x3190fe+'的能力完成,格式化后的结果:'+JSON[_0x1e3a32(0x37f)](_0x5bae1a),'log')),'fileDownload'===_0x2f8476&&_0xeda318[_0x1e3a32(0x155)]&&_0x3be324(_0x334a36,_0x5bae1a),'getLocationInfo'!==_0x2f8476?_0x1e3a32(0x1db)!==_0x2f8476?'fileDownload'!==_0x2f8476&&_0x3be324(_0x334a36,_0x5bae1a):_0x33b154(_0x334a36,_0x5bae1a,_0x1e3a32(0x1db)):_0x33b154(_0x334a36,_0x5bae1a,_0x1e3a32(0x2ac));});}catch(_0x167542){_0x334a36({'isSuccess':!(-0x2b5+0x2e*0x3b+-0x7e4),'message':_0x3190fe+'API执行失败,具体错误信息请查看控制台'}),_0x298e8e(_0x13280d(0x315),_0x3190fe+_0x13280d(0x143),_0x13280d(0x30a),_0x167542);}}['initDefaultConfig'](){const _0x2b726c=_0x28c2a8;_0x298e8e(_0x2b726c(0x192),'默认胶囊按钮配置执行初始化处理'),this['autoUpdate']?this[_0x2b726c(0x1d0)]():_0x298e8e(_0x2b726c(0x192),_0x2b726c(0x151));}}(_0x2ea6a3,_0x57a445());return _0x5932f0()&&(window[_0x28c2a8(0x1a5)]=_0x34a7d1),_0x34a7d1;}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xybplugins/xyb-agent",
3
- "version": "0.0.30",
3
+ "version": "0.0.31",
4
4
  "description": "湘易办功能集成JSSDK",
5
5
  "scripts": {
6
6
  "build": "rm -rf dist && NODE_ENV=production rollup -c",
@@ -12,6 +12,7 @@
12
12
  "main": "dist/index.esm.js",
13
13
  "devDependencies": {
14
14
  "@rollup/plugin-commonjs": "^28.0.3",
15
+ "@rollup/plugin-json": "^6.1.0",
15
16
  "@rollup/plugin-node-resolve": "^16.0.1",
16
17
  "@rollup/plugin-replace": "^6.0.2",
17
18
  "@rollup/plugin-terser": "^0.4.4",