sws-micro-app-adapter-mobile
Version:
SWS移动端微应用适配器
2 lines (1 loc) • 18 kB
JavaScript
var e=function(){return e=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},e.apply(this,arguments)};function t(e,t,n,r){return new(n||(n=Promise))((function(a,o){function i(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}c((r=r.apply(e,t||[])).next())}))}function n(e,t){var n,r,a,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=s(0),i.throw=s(1),i.return=s(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(a=2&s[0]?r.return:s[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,s[1])).done)return a;switch(r=0,a&&(s=[2&s[0],a.value]),s[0]){case 0:case 1:a=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(a=o.trys,(a=a.length>0&&a[a.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!a||s[1]>a[0]&&s[1]<a[3])){o.label=s[1];break}if(6===s[0]&&o.label<a[1]){o.label=a[1],a=s;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(s);break}a[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=a=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}"function"==typeof SuppressedError&&SuppressedError;var r="sws-micro-app-adapter",a={baseUrl:"https://api.chinasws.com",isMobile:void 0},o=function(e){a.baseUrl=e.baseUrl,a.isMobile=e.isMobile},i=function(e){return null==e||null==e||""===e||Array.isArray(e)&&0==e.length},s=function(){return i(a.isMobile)?/(iPhone|iPad|iPod|iOS|Android|OpenHarmony)/i.test(navigator.userAgent):a.isMobile},c=function(){return i(a.isMobile)?/(Android)/i.test(navigator.userAgent):a.isMobile},u=function(){return i(a.isMobile)?/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent):a.isMobile};function f(e,t){null===console||void 0===console||console.warn("[".concat(r,"]: ").concat(e),t)}function h(e,t){null===console||void 0===console||console.error("[".concat(r,"]: ").concat(e),t)}var l,d={warn:f,error:h},p={get:function(t){var n=new URLSearchParams(t.url),r=t.params;for(var a in t.params)n.append(a,r[a]);return new Promise((function(n,r){fetch(t.url,{method:"GET",headers:e({},t.headers)}).then((function(e){return e.json()})).then((function(e){n(e)})).catch((function(e){r(new Error(e))}))}))},post:function(t){var n=new URLSearchParams(t.url),r=t.params;for(var a in t.params)n.append(a,r[a]);return new Promise((function(n,r){fetch(t.url,{method:"POST",headers:e({},t.headers),body:new URLSearchParams(t.data)}).then((function(e){return e.json()})).then((function(e){n(e)})).catch((function(e){r(new Error(e))}))}))},put:function(t){var n=new URLSearchParams(t.url),r=t.params;for(var a in t.params)n.append(a,r[a]);return new Promise((function(n,r){fetch(t.url,{method:"PUT",headers:e({},t.headers),body:new URLSearchParams(t.data)}).then((function(e){return e.json()})).then((function(e){n(e)})).catch((function(e){r(new Error(e))}))}))},delete:function(t){var n=new URLSearchParams(t.url),r=t.params;for(var a in t.params)n.append(a,r[a]);return new Promise((function(n,r){fetch(t.url,{method:"DELETE",headers:e({},t.headers),body:new URLSearchParams(t.data)}).then((function(e){return e.json()})).then((function(e){n(e)})).catch((function(e){r(new Error(e))}))}))}};!function(e){e.H5="h5",e.CORDOVA="cordova"}(l||(l={}));var w=function(){return null!=window.cordova||s()?l.CORDOVA:l.H5},b=function(e){switch(w()){case l.H5:e();break;case l.CORDOVA:document.addEventListener("deviceready",(function(){e()}),!1)}},v=function(e){switch(w()){case l.H5:case l.CORDOVA:e()}};class m{constructor(){this._dataLength=0,this._bufferLength=0,this._state=new Int32Array(4),this._buffer=new ArrayBuffer(68),this._buffer8=new Uint8Array(this._buffer,0,68),this._buffer32=new Uint32Array(this._buffer,0,17),this.start()}static hashStr(e,t=!1){return this.onePassHasher.start().appendStr(e).end(t)}static hashAsciiStr(e,t=!1){return this.onePassHasher.start().appendAsciiStr(e).end(t)}static _hex(e){const t=m.hexChars,n=m.hexOut;let r,a,o,i;for(i=0;i<4;i+=1)for(a=8*i,r=e[i],o=0;o<8;o+=2)n[a+1+o]=t.charAt(15&r),r>>>=4,n[a+0+o]=t.charAt(15&r),r>>>=4;return n.join("")}static _md5cycle(e,t){let n=e[0],r=e[1],a=e[2],o=e[3];n+=(r&a|~r&o)+t[0]-680876936|0,n=(n<<7|n>>>25)+r|0,o+=(n&r|~n&a)+t[1]-389564586|0,o=(o<<12|o>>>20)+n|0,a+=(o&n|~o&r)+t[2]+606105819|0,a=(a<<17|a>>>15)+o|0,r+=(a&o|~a&n)+t[3]-1044525330|0,r=(r<<22|r>>>10)+a|0,n+=(r&a|~r&o)+t[4]-176418897|0,n=(n<<7|n>>>25)+r|0,o+=(n&r|~n&a)+t[5]+1200080426|0,o=(o<<12|o>>>20)+n|0,a+=(o&n|~o&r)+t[6]-1473231341|0,a=(a<<17|a>>>15)+o|0,r+=(a&o|~a&n)+t[7]-45705983|0,r=(r<<22|r>>>10)+a|0,n+=(r&a|~r&o)+t[8]+1770035416|0,n=(n<<7|n>>>25)+r|0,o+=(n&r|~n&a)+t[9]-1958414417|0,o=(o<<12|o>>>20)+n|0,a+=(o&n|~o&r)+t[10]-42063|0,a=(a<<17|a>>>15)+o|0,r+=(a&o|~a&n)+t[11]-1990404162|0,r=(r<<22|r>>>10)+a|0,n+=(r&a|~r&o)+t[12]+1804603682|0,n=(n<<7|n>>>25)+r|0,o+=(n&r|~n&a)+t[13]-40341101|0,o=(o<<12|o>>>20)+n|0,a+=(o&n|~o&r)+t[14]-1502002290|0,a=(a<<17|a>>>15)+o|0,r+=(a&o|~a&n)+t[15]+1236535329|0,r=(r<<22|r>>>10)+a|0,n+=(r&o|a&~o)+t[1]-165796510|0,n=(n<<5|n>>>27)+r|0,o+=(n&a|r&~a)+t[6]-1069501632|0,o=(o<<9|o>>>23)+n|0,a+=(o&r|n&~r)+t[11]+643717713|0,a=(a<<14|a>>>18)+o|0,r+=(a&n|o&~n)+t[0]-373897302|0,r=(r<<20|r>>>12)+a|0,n+=(r&o|a&~o)+t[5]-701558691|0,n=(n<<5|n>>>27)+r|0,o+=(n&a|r&~a)+t[10]+38016083|0,o=(o<<9|o>>>23)+n|0,a+=(o&r|n&~r)+t[15]-660478335|0,a=(a<<14|a>>>18)+o|0,r+=(a&n|o&~n)+t[4]-405537848|0,r=(r<<20|r>>>12)+a|0,n+=(r&o|a&~o)+t[9]+568446438|0,n=(n<<5|n>>>27)+r|0,o+=(n&a|r&~a)+t[14]-1019803690|0,o=(o<<9|o>>>23)+n|0,a+=(o&r|n&~r)+t[3]-187363961|0,a=(a<<14|a>>>18)+o|0,r+=(a&n|o&~n)+t[8]+1163531501|0,r=(r<<20|r>>>12)+a|0,n+=(r&o|a&~o)+t[13]-1444681467|0,n=(n<<5|n>>>27)+r|0,o+=(n&a|r&~a)+t[2]-51403784|0,o=(o<<9|o>>>23)+n|0,a+=(o&r|n&~r)+t[7]+1735328473|0,a=(a<<14|a>>>18)+o|0,r+=(a&n|o&~n)+t[12]-1926607734|0,r=(r<<20|r>>>12)+a|0,n+=(r^a^o)+t[5]-378558|0,n=(n<<4|n>>>28)+r|0,o+=(n^r^a)+t[8]-2022574463|0,o=(o<<11|o>>>21)+n|0,a+=(o^n^r)+t[11]+1839030562|0,a=(a<<16|a>>>16)+o|0,r+=(a^o^n)+t[14]-35309556|0,r=(r<<23|r>>>9)+a|0,n+=(r^a^o)+t[1]-1530992060|0,n=(n<<4|n>>>28)+r|0,o+=(n^r^a)+t[4]+1272893353|0,o=(o<<11|o>>>21)+n|0,a+=(o^n^r)+t[7]-155497632|0,a=(a<<16|a>>>16)+o|0,r+=(a^o^n)+t[10]-1094730640|0,r=(r<<23|r>>>9)+a|0,n+=(r^a^o)+t[13]+681279174|0,n=(n<<4|n>>>28)+r|0,o+=(n^r^a)+t[0]-358537222|0,o=(o<<11|o>>>21)+n|0,a+=(o^n^r)+t[3]-722521979|0,a=(a<<16|a>>>16)+o|0,r+=(a^o^n)+t[6]+76029189|0,r=(r<<23|r>>>9)+a|0,n+=(r^a^o)+t[9]-640364487|0,n=(n<<4|n>>>28)+r|0,o+=(n^r^a)+t[12]-421815835|0,o=(o<<11|o>>>21)+n|0,a+=(o^n^r)+t[15]+530742520|0,a=(a<<16|a>>>16)+o|0,r+=(a^o^n)+t[2]-995338651|0,r=(r<<23|r>>>9)+a|0,n+=(a^(r|~o))+t[0]-198630844|0,n=(n<<6|n>>>26)+r|0,o+=(r^(n|~a))+t[7]+1126891415|0,o=(o<<10|o>>>22)+n|0,a+=(n^(o|~r))+t[14]-1416354905|0,a=(a<<15|a>>>17)+o|0,r+=(o^(a|~n))+t[5]-57434055|0,r=(r<<21|r>>>11)+a|0,n+=(a^(r|~o))+t[12]+1700485571|0,n=(n<<6|n>>>26)+r|0,o+=(r^(n|~a))+t[3]-1894986606|0,o=(o<<10|o>>>22)+n|0,a+=(n^(o|~r))+t[10]-1051523|0,a=(a<<15|a>>>17)+o|0,r+=(o^(a|~n))+t[1]-2054922799|0,r=(r<<21|r>>>11)+a|0,n+=(a^(r|~o))+t[8]+1873313359|0,n=(n<<6|n>>>26)+r|0,o+=(r^(n|~a))+t[15]-30611744|0,o=(o<<10|o>>>22)+n|0,a+=(n^(o|~r))+t[6]-1560198380|0,a=(a<<15|a>>>17)+o|0,r+=(o^(a|~n))+t[13]+1309151649|0,r=(r<<21|r>>>11)+a|0,n+=(a^(r|~o))+t[4]-145523070|0,n=(n<<6|n>>>26)+r|0,o+=(r^(n|~a))+t[11]-1120210379|0,o=(o<<10|o>>>22)+n|0,a+=(n^(o|~r))+t[2]+718787259|0,a=(a<<15|a>>>17)+o|0,r+=(o^(a|~n))+t[9]-343485551|0,r=(r<<21|r>>>11)+a|0,e[0]=n+e[0]|0,e[1]=r+e[1]|0,e[2]=a+e[2]|0,e[3]=o+e[3]|0}start(){return this._dataLength=0,this._bufferLength=0,this._state.set(m.stateIdentity),this}appendStr(e){const t=this._buffer8,n=this._buffer32;let r,a,o=this._bufferLength;for(a=0;a<e.length;a+=1){if(r=e.charCodeAt(a),r<128)t[o++]=r;else if(r<2048)t[o++]=192+(r>>>6),t[o++]=63&r|128;else if(r<55296||r>56319)t[o++]=224+(r>>>12),t[o++]=r>>>6&63|128,t[o++]=63&r|128;else{if(r=1024*(r-55296)+(e.charCodeAt(++a)-56320)+65536,r>1114111)throw new Error("Unicode standard supports code points up to U+10FFFF");t[o++]=240+(r>>>18),t[o++]=r>>>12&63|128,t[o++]=r>>>6&63|128,t[o++]=63&r|128}o>=64&&(this._dataLength+=64,m._md5cycle(this._state,n),o-=64,n[0]=n[16])}return this._bufferLength=o,this}appendAsciiStr(e){const t=this._buffer8,n=this._buffer32;let r,a=this._bufferLength,o=0;for(;;){for(r=Math.min(e.length-o,64-a);r--;)t[a++]=e.charCodeAt(o++);if(a<64)break;this._dataLength+=64,m._md5cycle(this._state,n),a=0}return this._bufferLength=a,this}appendByteArray(e){const t=this._buffer8,n=this._buffer32;let r,a=this._bufferLength,o=0;for(;;){for(r=Math.min(e.length-o,64-a);r--;)t[a++]=e[o++];if(a<64)break;this._dataLength+=64,m._md5cycle(this._state,n),a=0}return this._bufferLength=a,this}getState(){const e=this._state;return{buffer:String.fromCharCode.apply(null,Array.from(this._buffer8)),buflen:this._bufferLength,length:this._dataLength,state:[e[0],e[1],e[2],e[3]]}}setState(e){const t=e.buffer,n=e.state,r=this._state;let a;for(this._dataLength=e.length,this._bufferLength=e.buflen,r[0]=n[0],r[1]=n[1],r[2]=n[2],r[3]=n[3],a=0;a<t.length;a+=1)this._buffer8[a]=t.charCodeAt(a)}end(e=!1){const t=this._bufferLength,n=this._buffer8,r=this._buffer32,a=1+(t>>2);this._dataLength+=t;const o=8*this._dataLength;if(n[t]=128,n[t+1]=n[t+2]=n[t+3]=0,r.set(m.buffer32Identity.subarray(a),a),t>55&&(m._md5cycle(this._state,r),r.set(m.buffer32Identity)),o<=4294967295)r[14]=o;else{const e=o.toString(16).match(/(.*?)(.{0,8})$/);if(null===e)return;const t=parseInt(e[2],16),n=parseInt(e[1],16)||0;r[14]=t,r[15]=n}return m._md5cycle(this._state,r),e?this._state:m._hex(this._state)}}if(m.stateIdentity=new Int32Array([1732584193,-271733879,-1732584194,271733878]),m.buffer32Identity=new Int32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),m.hexChars="0123456789abcdef",m.hexOut=[],m.onePassHasher=new m,"5d41402abc4b2a76b9719d911017c592"!==m.hashStr("hello"))throw new Error("Md5 self test failed.");var y,g="sws:work:user:userInfo",_=function(e,r,o){return void 0===o&&(o="036476"),t(void 0,void 0,void 0,(function(){var t,i;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,p.post({url:a.baseUrl+"/blade-auth/oauth/token",data:{grant_type:"password",username:e,password:m.hashStr(r)},headers:{"Content-Type":"application/x-www-form-urlencoded","Tenant-Id":o,Authorization:"Basic c3dvcmQ6c3dvcmRfc2VjcmV0"}})];case 1:return t=n.sent(),i={id:t.user_id,accessToken:t.access_token,account:t.account,avatar:t.avatar,deptId:t.dept_id,nickName:t.nick_name,realName:t.real_name,roleId:t.role_id,roleName:t.role_name},sessionStorage.setItem(g,JSON.stringify(i)),[2,Promise.resolve(i)];case 2:return n.sent(),[2,Promise.reject("用户登录失败")];case 3:return[2]}}))}))},A=function(){var e=w(),t=null;try{switch(e){case l.H5:t=sessionStorage.getItem(g),t=i(t)?"":JSON.parse(t);break;case l.CORDOVA:var n=window.getLoginData();t={id:n.user_id,accessToken:n.access_token,account:n.account,avatar:n.avatar,deptId:n.dept_id,nickName:n.nick_name,realName:n.real_name,roleId:n.role_id,roleName:n.role_name}}}catch(e){d.error("获取用户信息失败",e)}return t},O=function(){return t(void 0,void 0,void 0,(function(){return n(this,(function(e){return[2,I()]}))}))},I=function(){return t(void 0,void 0,void 0,(function(){var e,t;return n(this,(function(n){switch(n.label){case 0:e=w(),t=null,n.label=1;case 1:switch(n.trys.push([1,6,,7]),e){case l.H5:return[3,2];case l.CORDOVA:return[3,4]}return[3,5];case 2:return[4,p.get({url:a.baseUrl+"/blade-system/sws-menu/routes?category=11",headers:{"Blade-Auth":"bearer ".concat(P())}})];case 3:return t=n.sent(),[3,5];case 4:return t=window.getPermissionList(),[3,5];case 5:return[2,Promise.resolve(t)];case 6:return n.sent(),[2,Promise.reject("获取用户权限信息失败")];case 7:return[2]}}))}))},P=function(){return A().accessToken},R=function(e,r){return t(void 0,void 0,void 0,(function(){var t,o,s;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),t=P(),i(t)?[2,Promise.reject("用户未登录")]:(o=a.baseUrl+"/blade-system/micro-app/config/"+e,i(r)||(o+="/"+r),s=null,[4,p.get({url:o,headers:{"blade-auth":"bearer ".concat(t)}})]);case 1:return s=n.sent(),[2,Promise.resolve(s)];case 2:return n.sent(),[2,Promise.reject("获取微应用配置失败")];case 3:return[2]}}))}))},L=function(){return new Promise((function(e,t){try{switch(w()){case l.H5:t("不支持在非Cordova环境调用客户端进行扫码");break;case l.CORDOVA:window.CodeScanner.scan((function(t){e(t)}))}}catch(e){t("调起客户端扫码失败")}}))},C=function(e){return new Promise((function(t,n){try{var r=w();r!=l.H5&&r!=l.CORDOVA||window.navigator.geolocation.getCurrentPosition((function(e){var n={latitude:e.coords.latitude,longitude:e.coords.longitude};t(n)}),(function(e){var t=["您拒绝共享位置信息","获取不到位置信息","获取位置信息超时"][e.code-1];i(t)&&(t="调用客户端获取定位失败"),n(t)}),e)}catch(e){n("调用客户端获取定位失败")}}))},S=function(){switch(w()){case l.H5:return navigator.language;case l.CORDOVA:return window.i18n_locale}},k=function(){switch(w()){case l.H5:return"#005bac";case l.CORDOVA:return"#".concat(window.ui_theme.themeCode)}};!function(e){e.DARK="dark",e.LIGHT="light"}(y||(y={}));var E,U=function(){return window.matchMedia("(prefers-color-scheme: dark)").matches?y.DARK:y.LIGHT},D=function(e){window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",(function(t){t.matches?e(y.DARK):e(y.LIGHT)}))};!function(e){e.FACIAL="facial",e.FINGER_PRINT="fingerPrint"}(E||(E={}));var F,H=function(){var e=w(),t=new Array;e===l.CORDOVA&&(window.getFaceRecognitionAuthFlag()&&t.push(E.FACIAL),window.getFingerprintAuthFlag()&&t.push(E.FINGER_PRINT));return t},V=function(e){var t,n,r=w(),a=!1;try{if(r==l.CORDOVA){i(e)&&(e=c()?[E.FACIAL,E.FINGER_PRINT]:[E.FINGER_PRINT,E.FACIAL]);try{for(var o=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),s=o.next();!s.done;s=o.next()){switch(s.value){case E.FACIAL:window.faceRecognitionAuth((function(){a=!0}));break;case E.FINGER_PRINT:window.verifyFingerprintAuth((function(){a=!0}))}if(a)break}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}}}catch(e){return Promise.reject(e)}return a?Promise.resolve():Promise.reject("生物认证失败")};!function(e){e.IMAGE="image/*",e.VIDEO="video/*",e.AUDIO="AUDIO/*"}(F||(F={}));var T=function(e){var t=u()?"file://"+e:e;return new Promise((function(e,n){window.cordova.resolveLocalFileSystemURL(t,(function(t){return t.file((function(t){var n=new window.cordova.FileReader;n.onloadend=function(n){var r,a=null===(r=n.target)||void 0===r?void 0:r.result,o=new File([new Uint8Array(a)],t.name,{type:t.type});e(o)},n.readAsArrayBuffer(t)}),(function(e){return n(e)}))}),(function(e){return n(e)}))}))},N=function(e){return new Promise((function(t){var n=document.createElement("input");n.type="file",n.multiple=!1,n.accept=null!=e?e:"*",n.onchange=function(){console.log(n.files[0]),t(n.files[0])},n.click()}))},j=function(){switch(w()){case l.H5:return N(F.IMAGE);case l.CORDOVA:return new Promise((function(e,r){window.navigator.device.capture.captureImage((function(r){return t(this,void 0,void 0,(function(){var t,a;return n(this,(function(n){switch(n.label){case 0:return t=r[0],[4,T(t.fullPath)];case 1:return a=n.sent(),e(a),[2]}}))}))}),(function(e){return r(e)}))}))}},M=function(){switch(w()){case l.H5:return N(F.VIDEO);case l.CORDOVA:return new Promise((function(e,r){window.navigator.device.capture.captureVideo((function(r){return t(this,void 0,void 0,(function(){var t,a;return n(this,(function(n){switch(n.label){case 0:return t=r[0],[4,T(t.fullPath)];case 1:return a=n.sent(),e(a),[2]}}))}))}),(function(e){return r(e)}))}))}},x=function(e){switch(w()){case l.H5:alert("不支持在非 SWS TIME 环境调用跳转到其他微应用");break;case l.CORDOVA:window.openAppById(e.appId,e.path)}},G=function(e){switch(w()){case l.H5:window.open(e,"_blank");break;case l.CORDOVA:window.openAppByUrl(e)}},B=function(e,r){return void 0===r&&(r=!0),t(void 0,void 0,void 0,(function(){var t,o,i;return n(this,(function(n){if(t=e,r&&(t=encodeURIComponent(encodeURIComponent(decodeURIComponent(e)))),!(o=P()))throw new Error("获取用户信息失败");switch(i="".concat(a.baseUrl,"/sws-mobile-app/fineReport/ssoTokenRedirect?viewlet=").concat(t,"&token=").concat(o),w()){case l.H5:window.open(i,"_blank");break;case l.CORDOVA:window.openAppByUrl(i)}return[2]}))}))};export{E as BiometricAuthenticationMode,y as ColorMode,F as FileType,l as RuntimeEnvironment,N as chooseFile,o as defineConfig,p as fetchRequest,P as getAccessToken,R as getAppConfig,U as getColorMode,S as getLocale,C as getLocation,O as getPermissionList,k as getPrimaryColor,w as getRuntimeEnvironment,H as getSupportBiometricAuthentication,A as getUserInfo,a as globalConfig,c as isAndroid,i as isEmpty,u as isIos,s as isMobile,I as loadCurrentUserPermissions,d as logging,_ as login,b as mountApp,G as navigateTo,B as navigateToFineReport,x as navigateToMicroApp,D as onColorModeChange,h as printErrorLog,f as printWarnLog,T as readFile,M as recordVideo,L as scanCode,V as startBiometricAuthentication,j as takePhoto,v as unmountApp,g as userInfoStorageKey};