Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

2 linhas
86KB

  1. import{D as me}from"./index-90c78f99.js";const rr=e=>me.post("/api/v1/verification/send",e),ar=e=>me.post(`/api/v1/user/auth/login?credential=${e.credential}&identifier=${e.identifier}&loginType=${e.loginType}`),sr=()=>me.post("/api/v1/user/auth/logout");function T(){return T=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},T.apply(null,arguments)}function we(e,n,t,r,i,s,c){try{var a=e[s](c),l=a.value}catch(d){return void t(d)}a.done?n(l):Promise.resolve(l).then(r,i)}function K(e){return function(){var n=this,t=arguments;return new Promise(function(r,i){var s=e.apply(n,t);function c(l){we(s,r,i,c,a,"next",l)}function a(l){we(s,r,i,c,a,"throw",l)}c(void 0)})}}var ue={},At={get exports(){return ue},set exports(e){ue=e}},de={},Pt={get exports(){return de},set exports(e){de=e}};(function(e){function n(t){return e.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(Pt);(function(e){var n=de.default;function t(){e.exports=t=function(){return i},e.exports.__esModule=!0,e.exports.default=e.exports;var r,i={},s=Object.prototype,c=s.hasOwnProperty,a=Object.defineProperty||function(h,f,m){h[f]=m.value},l=typeof Symbol=="function"?Symbol:{},d=l.iterator||"@@iterator",u=l.asyncIterator||"@@asyncIterator",p=l.toStringTag||"@@toStringTag";function v(h,f,m){return Object.defineProperty(h,f,{value:m,enumerable:!0,configurable:!0,writable:!0}),h[f]}try{v({},"")}catch(h){v=function(m,I,P){return m[I]=P}}function w(h,f,m,I){var P=f&&f.prototype instanceof ie?f:ie,k=Object.create(P.prototype),y=new se(I||[]);return a(k,"_invoke",{value:It(h,m,y)}),k}function b(h,f,m){try{return{type:"normal",arg:h.call(f,m)}}catch(I){return{type:"throw",arg:I}}}i.wrap=w;var D="suspendedStart",J="suspendedYield",O="executing",M="completed",N={};function ie(){}function $(){}function _(){}var te={};v(te,d,function(){return this});var re=Object.getPrototypeOf,Y=re&&re(re(ce([])));Y&&Y!==s&&c.call(Y,d)&&(te=Y);var z=_.prototype=ie.prototype=Object.create(te);function Ae(h){["next","throw","return"].forEach(function(f){v(h,f,function(m){return this._invoke(f,m)})})}function Q(h,f){function m(P,k,y,E){var R=b(h[P],h,k);if(R.type!=="throw"){var F=R.arg,L=F.value;return L&&n(L)=="object"&&c.call(L,"__await")?f.resolve(L.__await).then(function(W){m("next",W,y,E)},function(W){m("throw",W,y,E)}):f.resolve(L).then(function(W){F.value=W,y(F)},function(W){return m("throw",W,y,E)})}E(R.arg)}var I;a(this,"_invoke",{value:function(k,y){function E(){return new f(function(R,F){m(k,y,R,F)})}return I=I?I.then(E,E):E()}})}function It(h,f,m){var I=D;return function(P,k){if(I===O)throw Error("Generator is already running");if(I===M){if(P==="throw")throw k;return{value:r,done:!0}}for(m.method=P,m.arg=k;;){var y=m.delegate;if(y){var E=Pe(y,m);if(E){if(E===N)continue;return E}}if(m.method==="next")m.sent=m._sent=m.arg;else if(m.method==="throw"){if(I===D)throw I=M,m.arg;m.dispatchException(m.arg)}else m.method==="return"&&m.abrupt("return",m.arg);I=O;var R=b(h,f,m);if(R.type==="normal"){if(I=m.done?M:J,R.arg===N)continue;return{value:R.arg,done:m.done}}R.type==="throw"&&(I=M,m.method="throw",m.arg=R.arg)}}}function Pe(h,f){var m=f.method,I=h.iterator[m];if(I===r)return f.delegate=null,m==="throw"&&h.iterator.return&&(f.method="return",f.arg=r,Pe(h,f),f.method==="throw")||m!=="return"&&(f.method="throw",f.arg=new TypeError("The iterator does not provide a '"+m+"' method")),N;var P=b(I,h.iterator,f.arg);if(P.type==="throw")return f.method="throw",f.arg=P.arg,f.delegate=null,N;var k=P.arg;return k?k.done?(f[h.resultName]=k.value,f.next=h.nextLoc,f.method!=="return"&&(f.method="next",f.arg=r),f.delegate=null,N):k:(f.method="throw",f.arg=new TypeError("iterator result is not an object"),f.delegate=null,N)}function kt(h){var f={tryLoc:h[0]};1 in h&&(f.catchLoc=h[1]),2 in h&&(f.finallyLoc=h[2],f.afterLoc=h[3]),this.tryEntries.push(f)}function ae(h){var f=h.completion||{};f.type="normal",delete f.arg,h.completion=f}function se(h){this.tryEntries=[{tryLoc:"root"}],h.forEach(kt,this),this.reset(!0)}function ce(h){if(h||h===""){var f=h[d];if(f)return f.call(h);if(typeof h.next=="function")return h;if(!isNaN(h.length)){var m=-1,I=function P(){for(;++m<h.length;)if(c.call(h,m))return P.value=h[m],P.done=!1,P;return P.value=r,P.done=!0,P};return I.next=I}}throw new TypeError(n(h)+" is not iterable")}return $.prototype=_,a(z,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:$,configurable:!0}),$.displayName=v(_,p,"GeneratorFunction"),i.isGeneratorFunction=function(h){var f=typeof h=="function"&&h.constructor;return!!f&&(f===$||(f.displayName||f.name)==="GeneratorFunction")},i.mark=function(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,_):(h.__proto__=_,v(h,p,"GeneratorFunction")),h.prototype=Object.create(z),h},i.awrap=function(h){return{__await:h}},Ae(Q.prototype),v(Q.prototype,u,function(){return this}),i.AsyncIterator=Q,i.async=function(h,f,m,I,P){P===void 0&&(P=Promise);var k=new Q(w(h,f,m,I),P);return i.isGeneratorFunction(f)?k:k.next().then(function(y){return y.done?y.value:k.next()})},Ae(z),v(z,p,"Generator"),v(z,d,function(){return this}),v(z,"toString",function(){return"[object Generator]"}),i.keys=function(h){var f=Object(h),m=[];for(var I in f)m.push(I);return m.reverse(),function P(){for(;m.length;){var k=m.pop();if(k in f)return P.value=k,P.done=!1,P}return P.done=!0,P}},i.values=ce,se.prototype={constructor:se,reset:function(f){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(ae),!f)for(var m in this)m.charAt(0)==="t"&&c.call(this,m)&&!isNaN(+m.slice(1))&&(this[m]=r)},stop:function(){this.done=!0;var f=this.tryEntries[0].completion;if(f.type==="throw")throw f.arg;return this.rval},dispatchException:function(f){if(this.done)throw f;var m=this;function I(F,L){return y.type="throw",y.arg=f,m.next=F,L&&(m.method="next",m.arg=r),!!L}for(var P=this.tryEntries.length-1;P>=0;--P){var k=this.tryEntries[P],y=k.completion;if(k.tryLoc==="root")return I("end");if(k.tryLoc<=this.prev){var E=c.call(k,"catchLoc"),R=c.call(k,"finallyLoc");if(E&&R){if(this.prev<k.catchLoc)return I(k.catchLoc,!0);if(this.prev<k.finallyLoc)return I(k.finallyLoc)}else if(E){if(this.prev<k.catchLoc)return I(k.catchLoc,!0)}else{if(!R)throw Error("try statement without catch or finally");if(this.prev<k.finallyLoc)return I(k.finallyLoc)}}}},abrupt:function(f,m){for(var I=this.tryEntries.length-1;I>=0;--I){var P=this.tryEntries[I];if(P.tryLoc<=this.prev&&c.call(P,"finallyLoc")&&this.prev<P.finallyLoc){var k=P;break}}k&&(f==="break"||f==="continue")&&k.tryLoc<=m&&m<=k.finallyLoc&&(k=null);var y=k?k.completion:{};return y.type=f,y.arg=m,k?(this.method="next",this.next=k.finallyLoc,N):this.complete(y)},complete:function(f,m){if(f.type==="throw")throw f.arg;return f.type==="break"||f.type==="continue"?this.next=f.arg:f.type==="return"?(this.rval=this.arg=f.arg,this.method="return",this.next="end"):f.type==="normal"&&m&&(this.next=m),N},finish:function(f){for(var m=this.tryEntries.length-1;m>=0;--m){var I=this.tryEntries[m];if(I.finallyLoc===f)return this.complete(I.completion,I.afterLoc),ae(I),N}},catch:function(f){for(var m=this.tryEntries.length-1;m>=0;--m){var I=this.tryEntries[m];if(I.tryLoc===f){var P=I.completion;if(P.type==="throw"){var k=P.arg;ae(I)}return k}}throw Error("illegal catch attempt")},delegateYield:function(f,m,I){return this.delegate={iterator:ce(f),resultName:m,nextLoc:I},this.method==="next"&&(this.arg=r),N}},i}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(At);var X=ue(),x=X;try{regeneratorRuntime=X}catch(e){typeof globalThis=="object"?globalThis.regeneratorRuntime=X:Function("r","regeneratorRuntime = r")(X)}function Z(e){return e==="undefined"}function ve(){return!Z(typeof my)&&my!==null&&!Z(typeof my.alert)}var C;(function(e){e.CANCEL="-1",e.SUCCESS="0",e.API_UNDEFINED="1",e.INVALID_PARAMS="2",e.UNKNOWN_ERROR="3",e.UNAUTHORIZED_CALL="4",e.WRONG_CORP_ID="5",e.CREATE_CHAT_FAILED="6",e.UNAUTHORIZED_API="7",e.INVALID_CORP_ID="8",e.SERVER_RESPONSE_ERROR="9",e.WRONG_DEVICE_INFO="10",e.UPLOAD_FAIL="11",e.PROCESS_FAIL="12",e.DUPLICATED_CALL="13",e.TOO_LARGE_PIC="14",e.REQUEST_REJECT_OR_INSECURE_REQUEST="15",e.PC_NOT_ALLOWED_TO_OPEN_SIDE_PANE_OR_MODAL="21",e.PC_CLOSE_SIDE_PANE_OR_MODAL="22",e.UNAUTHORIZED_PARAMS="23",e.GESTURE_PASSWORD_DOES_NOT_EXIST="24",e.NETWORK_ERROR="25"})(C||(C={}));var A;(function(e){e.MOBILE="mobile",e.PC="pc",e.MINI_APP="mini",e.UNKNOWN="unknown"})(A||(A={}));var g;(function(e){e.ANDROID="android",e.IOS="ios",e.UNKNOW="unknow"})(g||(g={}));var G;(function(e){e.UPDATE_NETWORK_STATUS="DINGGOV_ON_NETWORK_TYPE_CHANGED",e.UPDATE_LOCATION="DINGGOV_GEO_LOCATION_UPDATE",e.UPDATE_TRACE="DINGGOV_TRACE_UPDATE",e.ON_SHAKE="onShake"})(G||(G={}));var S;(function(e){e.isDingTalk="DingTalk",e.isMpaas="mPaaS",e.isUnknow="unknow"})(S||(S={}));var H=navigator&&(navigator.swuserAgent||navigator.userAgent)||"",mn=function(){function e(){this.readyFnStack=[],this.generalEventCallbackStack={},this.apiList={},this.continuousCallbackStack={},this.isH5Mobile=null,this.appType=null,this.platformType=null,this.aliBridge=window&&window.navigator&&window.AlipayJSBridge,this.isReady=!1,this.init(),console.warn("请将 gdt-jsapi 版本请升级到 1.9.24 版本以上的最新版本,谢谢")}var n=e.prototype;return n.h5AndroidbridgeInit=function(){var t=this;this.h5BridgeReadyPromise=new Promise(function(r,i){var s=function(){try{window.WebViewJavascriptBridgeAndroid=window.nuva&&window.nuva.require(),t.execReadyFn()}catch(c){}};window.nuva&&(window.nuva.isReady===void 0||window.nuva.isReady)?s():(document.addEventListener("runtimeready",function(){s()},!1),document.addEventListener("runtimefailed",function(c){var a=c&&c.detail||{errorCode:C.INVALID_PARAMS,errorMessage:"unknown nuvajs bootstrap error"};t.handleBridgeResponse(a,r,i)},!1))})},n.h5IosBridgeInit=function(){var t=this;this.h5BridgeReadyPromise=new Promise(function(r,i){if(typeof WebViewJavascriptBridge!="undefined")try{WebViewJavascriptBridge.init(function(s,c){}),t.execReadyFn()}catch(s){}else document.addEventListener("WebViewJavascriptBridgeReady",function(){try{WebViewJavascriptBridge&&WebViewJavascriptBridge.init(function(s,c){}),t.execReadyFn()}catch(s){}},!1)})},n.init=function(){var t=this,r=this.getAppType(),i=this.getContainerType();if(r===A.PC&&window.dingtalk&&!window.dingtalk.isRegister&&(window.dingtalk.isRegister=!0,window.dingtalk.callbackStack={},window.dingtalk.event.register(function(c,a){if(t.continuousCallbackStack[c])t.continuousCallbackStack[c](a);else if(a){var l=""+a.msgId;c==="openapi.event.emit"?(console.log("dingtalk receive event:",a,"identifer is",l),window.dingtalk.callbackStack[l]&&(window.dingtalk.callbackStack[l](a),delete window.dingtalk.callbackStack[l])):c==="im.fileTask.addNewTask"||c==="im.fileTask.updateTask"?(a.msgId||a.taskId)&&typeof t.continuousCallbackStack[a.msgId||a.taskId]=="function"&&t.continuousCallbackStack[a.msgId||a.taskId](c,a):t.generalEventCallbackStack[c]&&t.generalEventCallbackStack[c].forEach(function(d){d.call(t,a)})}})),r===A.MOBILE){if(i===S.isDingTalk)this.platformType===g.ANDROID?!this.h5BridgeReadyPromise&&this.h5AndroidbridgeInit():this.platformType===g.IOS&&!this.h5BridgeReadyPromise&&this.h5IosBridgeInit();else if(i===S.isMpaas&&r===A.MOBILE)if(window.AlipayJSBridge)this.execReadyFn();else{var s=setTimeout(function(){console.warn("window.AlipayJSBridge 未初始化完毕,走到兜底逻辑",t.isReady,window.AlipayJSBridge),t.isReady||t.execReadyFn.call(t)},5200);document.addEventListener("AlipayJSBridgeReady",function(){t.isReady||(clearTimeout(s),t.execReadyFn.call(t))},!1)}}else setTimeout(function(){t.execReadyFn()})},n.execReadyFn=function(){this.isReady=!0;for(var t=this.readyFnStack.shift();t;)t&&t(this),t=this.readyFnStack.shift()},n.onReady=function(t){this.isReady?t&&t(this):this.readyFnStack.push(t)},n.setCurrentInvoker=function(t){this.currentInvoker=t},n.getCurrentInvoker=function(){return this.currentInvoker},n.getBridge=function(){return this.aliBridge},n.getContainerType=function(){return/TaurusApp/g.test(H)?/DingTalk/g.test(H)?S.isDingTalk:S.isMpaas:/DingTalk/g.test(H)?S.isDingTalk:/mPaaSClient/g.test(H)||/Nebula/g.test(H)?S.isMpaas:S.isUnknow},n.getAppType=function(){return this.appType||(this.isMobile()?this.appType=A.MOBILE:window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("dingtalk-win")>=0&&window.navigator.userAgent.indexOf("TaurusApp")>=0?this.appType=A.PC:ve()?this.appType=A.MINI_APP:(console.warn("检测到页面在非专有钉钉客户端中打开,JSAPI 调用可能不会生效!"),this.appType=A.UNKNOWN)),this.appType},n.isMobile=function(){var t=/iPhone|iPad|iPod|iOS/i.test(H),r=/Android/i.test(H),i=window&&window.navigator&&window.navigator.userAgent||"";return this.isH5Mobile!==null?this.isH5Mobile:i&&i.indexOf("dingtalk-win")>=0?(this.isH5Mobile=!1,!1):!(!i||!(i.includes("mPaaSClient")||i.includes("Nebula")||i.includes("DingTalk")))&&(this.isH5Mobile=!0,this.platformType=t?g.IOS:r?g.ANDROID:g.UNKNOW,!0)},n.registerEvent=function(t,r){var i=this;if(typeof r=="function")return this.getAppType()===A.PC?(this.generalEventCallbackStack[t]||(this.generalEventCallbackStack[t]=[]),this.generalEventCallbackStack[t].push(r),function(){var s=i.generalEventCallbackStack[t].findIndex(function(c){return c===r});i.generalEventCallbackStack[t].splice(s,1)}):this.getAppType()===A.MOBILE?(document.addEventListener(t,r,!1),function(){document.removeEventListener(t,r)}):void 0;console.error("callback 参数应该为函数")},n.registerClientAPI=function(t,r){this.apiList[t]=r},n.registerAPI=function(t,r){if(this.isMobile(),typeof r=="object"){var i=r,s=this.getAppType();this.registerClientAPI(t,i[s])}else this.registerClientAPI(t,r)},n.invokeMiniApp=function(){var t=K(x.mark(function r(i,s){var c=this;return x.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return s===void 0&&(s={}),a.abrupt("return",new Promise(function(l,d){s=T({_apiName:i},s);var u=c.apiList[i],p=c.getContainerType();if(!u)return console.warn("API: "+i+",未注册"),d("API: "+i+",未注册");if(p===S.isMpaas){if(typeof u=="function")return void u.call(null,s,{context:my,resolve:l,reject:d,methodName:i});my.call(i,s,function(v){c.handleBridgeResponse(v,l,d)})}else if(p===S.isDingTalk){if(typeof u=="function")return void u.call(null,s,{context:dd.dtBridge,resolve:l,reject:d,methodName:i,containerType:p,appType:A.MINI_APP});dd.dtBridge({m:"taurus.common."+i,args:s,onSuccess:function(v){c.handleBridgeResponse(v,l,d)},onFail:function(v){c.handleBridgeResponse(v,l,d)}})}}));case 2:case"end":return a.stop()}},r)}));return function(r,i){return t.apply(this,arguments)}}(),n.invokeMobile=function(){var t=K(x.mark(function r(i,s,c){var a=this;return x.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return s===void 0&&(s={}),l.abrupt("return",new Promise(function(d,u){s=T({_apiName:i},s);var p=a.apiList[i],v=a.getContainerType();if(!p)return console.warn("API: "+i+",未注册"),u("API: "+i+",未注册");if(v===S.isDingTalk){if(a.platformType===g.IOS){var w=Object.assign({},s);if(w.watch===!0&&typeof WebViewJavascriptBridge!="undefined"&&WebViewJavascriptBridge.registerHandler(c!=null&&c.dingTalkAPIName?c==null?void 0:c.dingTalkAPIName:"taurus.common."+i,function(O,M){typeof s.onSuccess=="function"&&s.onSuccess.call(null,O),M&&M({errorCode:"0",errorMessage:"success"})}),typeof p=="function")return void p.call(null,s,{context:window.WebViewJavascriptBridge,resolve:d,reject:u,methodName:i,containerType:v,appType:A.MOBILE,platformType:g.IOS,watch:w.watch});window.WebViewJavascriptBridge!==void 0&&window.WebViewJavascriptBridge.callHandler("taurus.common."+i,Object.assign({},w),function(O){!w.watch&&a.handleBridgeResponse(O||{},d,u)})}else if(a.platformType===g.ANDROID){var b=i.split("."),D=b.pop()||"",J=b.join(".")||"taurus.common";if(typeof p=="function")return void p.call(null,s,{context:window.WebViewJavascriptBridgeAndroid,resolve:d,reject:u,methodName:i,containerType:v,appType:A.MOBILE,platformType:g.ANDROID});typeof window.WebViewJavascriptBridgeAndroid=="function"&&window.WebViewJavascriptBridgeAndroid(function(O){a.handleBridgeResponse(O,d,u)},function(O){a.handleBridgeResponse(O,d,u)},J,D,s)}}else if(v===S.isMpaas){if(typeof p=="function")return void p.call(null,s,{context:AlipayJSBridge,resolve:d,reject:u,methodName:i});AlipayJSBridge.call(i,s,function(O){a.handleBridgeResponse(O,d,u)})}}));case 2:case"end":return l.stop()}},r)}));return function(r,i,s){return t.apply(this,arguments)}}(),n.findFitMsgId=function(t){var r,i;return(r=window.dingtalk)!==null&&r!==void 0&&(i=r.callbackStack)!==null&&i!==void 0&&i[t]?this.findFitMsgId(t+1):t},n.invokePC=function(){var t=K(x.mark(function r(i,s,c){var a=this;return x.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return s===void 0&&(s={}),c===void 0&&(c={msgId:1}),l.abrupt("return",new Promise(function(d,u){try{s=T({_apiName:i},s);var p=a.findFitMsgId(Date.now()),v=c.pcClientAPIName||i;if(c.msgId=p,!window.dingtalk)return Promise.reject(new Error("请在钉钉容器内使用 JSAPI"));a.apiList[i]?a.apiList[i].call(null,s,c):(console.info("invoke bridge api:",v,p,s),window.dingtalk.platform.invokeAPI(p,v,s)),window.dingtalk&&window.dingtalk.isRegister&&!window.dingtalk.callbackStack&&(window.dingtalk.callbackStack={}),window.dingtalk.callbackStack[""+p]=function(w){var b=w;return b.body?d(b.body):d(b)}}catch(w){u(w)}}));case 3:case"end":return l.stop()}},r)}));return function(r,i,s){return t.apply(this,arguments)}}(),n.handleBridgeResponse=function(t,r,i){t&&t.errorCode?t.errorCode===C.SUCCESS?r(t.result):(console.warn("API 调用失败",t),i(t)):t&&t.success==="false"?i(t):r(t)},n.invoke=function(){var t=K(x.mark(function r(i,s,c){var a;return x.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(s===void 0&&(s={}),(a=this.getAppType())!==A.MOBILE){l.next=8;break}if(this.isReady){l.next=5;break}return l.abrupt("return",Promise.reject("错误:请在 dd.ready() 回调中使用 JSAPI,当前调用函数:"+i));case 5:return l.abrupt("return",this.invokeMobile(i,s,c));case 8:if(a!==A.PC){l.next=12;break}return l.abrupt("return",this.invokePC(i,s,c));case 12:if(a!==A.MINI_APP){l.next=16;break}return l.abrupt("return",this.invokeMiniApp(i,s));case 16:return l.abrupt("return",Promise.reject("错误:未在钉钉运行环境下调用该 API,无效,请检查运行环境"));case 17:case"end":return l.stop()}},r,this)}));return function(r,i,s){return t.apply(this,arguments)}}(),n.existEventListener=function(t){return!!this.continuousCallbackStack[t]},n.registerContinuesEvent=function(t,r){this.continuousCallbackStack[t]=r},n.removeContinuesEvent=function(t){this.existEventListener(t)&&(this.continuousCallbackStack[t](),delete this.continuousCallbackStack[t])},e}();ve()||(window._invoker=window._invoker||new mn);const o=ve()?new mn:window._invoker;function wt(e,n){if(e)return function(t){return typeof t=="function"||n.includes("Sync")||n.startsWith("create")?e(t):new Promise(function(r,i){e(T({},t,{success:function(s){r(s)},fail:function(s){i(s)}}))})}}function be(e,n){var t=n.resolve,r=n.reject,i=n.context,s=n.containerType,c=n.appType,a=n.platformType;if(s){var l=function(u){o.handleBridgeResponse(u,t,r)},d=function(u){o.handleBridgeResponse(u,t,r)};c===A.MINI_APP?i&&i({m:"taurus.common.alert",args:e,onSuccess:l,onFail:d}):a===g.ANDROID?i&&i(l,d,"taurus.common","alert",e):a===g.IOS&&i.callHandler("taurus.common.alert",Object.assign({},e),function(u){t(u)})}else i&&i.call("alert",e,function(){t()})}o.registerAPI("alert",{mini:be,mobile:be}),vn.version={android:"1.3.2",ios:"1.3.2"};function vn(e){return o.invoke("alert",e)}o.registerAPI("authConfig",{mini:!0,mobile:!0}),hn.version={android:"1.2.0",ios:"1.2.0",pc:"1.2.0"};function hn(e){return o.invoke("authConfig",e)}function ye(e,n){var t=n.resolve,r=n.reject,i=n.context,s=n.containerType,c=n.appType,a=n.platformType;if(s){var l=function(u){o.handleBridgeResponse(u,t,r)},d=function(u){o.handleBridgeResponse(u,t,r)};c===A.MINI_APP?i&&i({m:"taurus.common.bizContactDepartmentsPickerExternal",args:e,onSuccess:l,onFail:d}):a===g.ANDROID?i&&i(l,d,"taurus.common","bizContactDepartmentsPickerExternal",e):a===g.IOS&&i.callHandler("taurus.common.bizContactDepartmentsPickerExternal",Object.assign({},e),function(u){o.handleBridgeResponse(u,t,r)})}else i&&i.call("bizContactDepartmentsPickerExternal",e,function(u){o.handleBridgeResponse(u,t,r)})}o.registerAPI("bizContactDepartmentsPickerExternal",{mini:ye,mobile:ye,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.contact.departmentsPickerEx",e)}}),In.version={android:"3.0.3",ios:"3.0.3",pc:"3.0.3"};function In(e){return o.invoke("bizContactDepartmentsPickerExternal",e)}function Se(e,n){var t=n.resolve,r=n.reject,i=n.context,s=n.containerType,c=n.appType,a=n.platformType;if(s){var l=function(u){o.handleBridgeResponse(u,t,r)},d=function(u){o.handleBridgeResponse(u,t,r)};c===A.MINI_APP?i&&i({m:"taurus.common.bizCustomContactChooseExternal",args:e,onSuccess:l,onFail:d}):a===g.ANDROID?i&&i(l,d,"taurus.common","bizCustomContactChooseExternal",e):a===g.IOS&&i.callHandler("taurus.common.bizCustomContactChooseExternal",Object.assign({},e),function(u){o.handleBridgeResponse(u,t,r)})}else i&&i.call("bizCustomContactChooseExternal",e,function(u){o.handleBridgeResponse(u,t,r)})}o.registerAPI("bizCustomContactChooseExternal",{mini:Se,mobile:Se,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.customContact.chooseEx",e)}}),kn.version={android:"3.0.3",ios:"3.0.3",pc:"3.0.3"};function kn(e){return o.invoke("bizCustomContactChooseExternal",e)}function Te(e,n){var t=n.resolve,r=n.reject,i=n.context,s=n.containerType,c=n.appType,a=n.platformType;if(s){var l=function(u){o.handleBridgeResponse(u,t,r)},d=function(u){o.handleBridgeResponse(u,t,r)};c===A.MINI_APP?i&&i({m:"taurus.common.bizCustomContactMultipleChooseExternal",args:e,onSuccess:l,onFail:d}):a===g.ANDROID?i&&i(l,d,"taurus.common","bizCustomContactMultipleChooseExternal",e):a===g.IOS&&i.callHandler("taurus.common.bizCustomContactMultipleChooseExternal",Object.assign({},e),function(u){o.handleBridgeResponse(u,t,r)})}else i&&i.call("bizCustomContactMultipleChooseExternal",e,function(u){o.handleBridgeResponse(u,t,r)})}o.registerAPI("bizCustomContactMultipleChooseExternal",{mini:Te,mobile:Te,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.customContact.multipleChooseEx",e)}}),An.version={android:"3.0.3",ios:"3.0.3",pc:"3.0.3"};function An(e){return o.invoke("bizCustomContactMultipleChooseExternal",e)}o.registerAPI("callPhone",{mini:!0,mobile:!0}),Pn.version={android:"1.1.0",ios:"1.1.0"};function Pn(e){return o.invoke("callPhone",e)}o.registerAPI("version",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"version",{})}});function ne(){return o.invoke("version")}var bt=1,yt=-1,wn=0;function St(e,n){return typeof e!="number"&&(e=0),typeof n!="number"&&(n=0),e>n?bt:e<n?yt:wn}function he(e,n){e===void 0&&(e=""),n===void 0&&(n="");var t=/^\d+(\.\d+){2,3}$/;if(!t.test(e)||!t.test(n))throw new Error("请传入正确的版本号格式");for(var r=(""+e).split(".").map(function(l){return parseInt(l,10)}),i=(""+n).split(".").map(function(l){return parseInt(l,10)}),s=Math.max(r.length,i.length),c=0,a=0;a<s&&(c=St(r[a],i[a]))===wn;a++);return c}var pe=navigator&&navigator.userAgent||"",Tt=function(){return pe.indexOf("Android")>-1||pe.indexOf("Adr")>-1},Ct=function(){return!!pe.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)},Et=function(){return/(windows)/i.test(navigator.userAgent)};function Rt(e){return bn.apply(this,arguments)}function bn(){return(bn=K(x.mark(function e(n){var t,r,i,s;return x.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:if(gn[n]){c.next=2;break}return c.abrupt("return",!1);case 2:return c.next=4,ne();case 4:return t=c.sent,r=t.version,i=gn[n].version,s=Tt()?"android":Ct()?"ios":Et()?"pc":"unknown",c.abrupt("return",!(!i||!i[s])&&he(r,i[s])>0);case 9:case"end":return c.stop()}},e)}))).apply(this,arguments)}o.registerAPI("checkVPNAppInstalled",{mini:!0,mobile:!0}),yn.version={android:"1.6.0",ios:"1.6.0"};function yn(){return o.invoke("checkVPNAppInstalled")}o.registerAPI("checkVPNAppOnline",{mini:!0,mobile:!0}),Sn.version={android:"1.6.0",ios:"1.6.0"};function Sn(){return o.invoke("checkVPNAppOnline")}var Ce;(function(e){e[e.DEFAULT=1]="DEFAULT",e[e.NEW=2]="NEW"})(Ce||(Ce={}));var Ee;(function(e){e[e.GLOBAL_ORG=1]="GLOBAL_ORG",e[e.FRIEND=2]="FRIEND",e[e.GROUP=4]="GROUP",e[e.RECOMMEND=5]="RECOMMEND",e[e.SPECIAL_ATTENTION=7]="SPECIAL_ATTENTION",e[e.LOAD_GROUP_PERSON=8]="LOAD_GROUP_PERSON",e[e.ORG=9]="ORG"})(Ee||(Ee={}));var Re;(function(e){e.PHONE_HIDE="PHONE_HIDE",e.CHAT_INVALID="CHAT_INVALID",e.GROUP_CHAT_PULL_INVALID="GROUP_CHAT_PULL_INVALID",e.APP_DING_INVALID="APP_DING_INVALID",e.PHONE_DING_INVALID="PHONE_DING_INVALID",e.SMS_DING_INVALID="SMS_DING_INVALID",e.AUDIO_VIDEO_HIDE="AUDIO_VIDEO_HIDE"})(Re||(Re={})),o.registerAPI("chooseContact",{pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.contact.choose",e)}}),Tn.version={pc:"1.1.0"};function Tn(e){return o.invoke("chooseContact",e)}function Oe(e,n){var t=n.resolve,r=n.reject,i=n.context,s=n.containerType,c=n.appType,a=n.platformType;if(s){var l=function(u){o.handleBridgeResponse(u,t,r)},d=function(u){o.handleBridgeResponse(u,t,r)};c===A.MINI_APP?i&&i({m:"taurus.common.chooseContactWithComplexPicker",args:e,onSuccess:l,onFail:d}):a===g.ANDROID?i&&i(l,d,"taurus.common","chooseContactWithComplexPicker",e):a===g.IOS&&i.callHandler("taurus.common.chooseContactWithComplexPicker",Object.assign({},e),function(u){o.handleBridgeResponse(u,t,r)})}else i&&i.call("chooseContactWithComplexPicker",e,function(u){u.error&&u.error.toString()===C.API_UNDEFINED?i.call("complexPicker",e,function(p){o.handleBridgeResponse(p,t,r)}):o.handleBridgeResponse(u,t,r)})}o.registerAPI("chooseContactWithComplexPicker",{mini:Oe,mobile:Oe,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.contact.complexPicker",e)}}),Cn.version={android:"1.1.0",ios:"1.1.0",pc:"1.6.2"};function Cn(e){return o.invoke("chooseContactWithComplexPicker",e)}o.registerAPI("chooseDateRangeWithCalendar",{mini:!0,mobile:!0}),En.version={android:"1.3.10",ios:"1.3.10"};function En(e){return o.invoke("chooseDateRangeWithCalendar",e)}o.registerAPI("chooseDayWithCalendar",{mini:!0,mobile:!0}),Rn.version={android:"1.3.10",ios:"1.3.10"};function Rn(e){return o.invoke("chooseDayWithCalendar",e)}o.registerAPI("chooseDepartments",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.contact.departmentsPicker",e)}}),On.version={android:"1.1.0",ios:"1.1.0",pc:"1.6.2"};function On(e){return o.invoke("chooseDepartments",e)}o.registerAPI("chooseFile",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.util.chooseFile",e)}}),Dn.version={android:"1.3.2",ios:"1.3.2",pc:"1.3.6"};function Dn(e){return o.invoke("chooseFile",e)}o.registerAPI("chooseHalfDayWithCalendar",{mini:!0,mobile:!0}),Nn.version={android:"1.3.10",ios:"1.3.10"};function Nn(e){return o.invoke("chooseHalfDayWithCalendar",e)}var De;(function(e){e[e.image=0]="image",e[e.video=1]="video"})(De||(De={})),o.registerAPI("dgChooseImage",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.util.dgChooseImage",e)}}),xn.version={android:"1.3.2",ios:"1.3.2",pc:"1.3.6"};function xn(e){return o.invoke("dgChooseImage",T({},e,{_apiName:"chooseImage"}))}o.registerAPI("chooseInterconnectionChat",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"chooseInterconnectionChat",e)}}),Ln.version={pc:"2.9.0",ios:"2.9.0",android:"2.9.0"};function Ln(e){return o.invoke("chooseInterconnectionChat",e)}o.registerAPI("chooseImage",{mini:!0}),Bn.version={android:"1.6.2",ios:"1.6.2"};function Bn(e){return new Promise(function(n,t){my.chooseImage(T({},e,{success:function(r){n(r)},fail:function(r){t(r)}}))})}o.registerAPI("chooseSpaceDir",{mini:!0,mobile:!0,pc:function(e,n){e===void 0&&(e={}),window.dingtalk.platform.invokeAPI(n.msgId,"biz.util.chooseSpaceDir",e)}}),Mn.version={android:"1.6.0",ios:"1.6.0",pc:"2.6.0"};function Mn(){return o.invoke("chooseSpaceDir")}o.registerAPI("chooseTimeWithCalendar",{mini:!0,mobile:!0}),_n.version={android:"1.3.10",ios:"1.3.10"};function _n(e){return o.invoke("chooseTimeWithCalendar",e)}o.registerAPI("chooseVideo",{mini:!0,mobile:!0}),Fn.version={android:"1.6.2",ios:"1.6.2"};function Fn(e){return o.invoke("chooseVideo",e)}function Ne(e,n){var t=n.resolve,r=n.reject,i=n.context,s=n.containerType,c=n.appType,a=n.platformType;if(s){var l=function(u){o.handleBridgeResponse(u,t,r)},d=function(u){o.handleBridgeResponse(u,t,r)};c===A.MINI_APP?i&&i({m:"biz.navigation.close",args:e,onSuccess:l,onFail:d}):a===g.ANDROID?i&&i(l,d,"biz.navigation","close",e):a===g.IOS&&i.callHandler("biz.navigation.close",Object.assign({},e),function(u){o.handleBridgeResponse(u,t,r)})}else i&&i.call("popWindow",e,function(u){o.handleBridgeResponse(u,t,r)})}o.registerAPI("closePage",{mini:Ne,mobile:Ne,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.navigation.quit",e)}}),Wn.version={android:"1.2.0",ios:"1.2.0",pc:"1.2.0"};function Wn(e){return o.invoke("closePage",T({},e,{_apiName:"closePage"}))}var xe;(function(e){e.CODE="code",e.ACCOUNTID="accountId"})(xe||(xe={}));var Le;(function(e){e.CODE="code",e.id="id"})(Le||(Le={})),o.registerAPI("complexPickerAdmin",{pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.contact.complexPickerAdmin",e)}}),Hn.version={pc:"2.8.0"};function Hn(e){return o.invoke("complexPickerAdmin",e)}o.registerAPI("confirm",{mini:function(e,n){var t=n.resolve,r=n.reject,i=n.context,s=n.containerType,c={message:e.message,title:e.title,okButton:e.buttonLabels[0],cancelButton:e.buttonLabels[1]};s===S.isDingTalk?i({m:"taurus.common.confirm",args:c,onSuccess:function(a){var l={errorCode:C.SUCCESS,result:{buttonIndex:a.ok?0:1}};o.handleBridgeResponse(l,t,r)},onFail:function(a){o.handleBridgeResponse(a,t,r)}}):i&&i.call("confirm",c,function(a){var l={errorCode:C.SUCCESS,result:{buttonIndex:a.ok?0:1}};o.handleBridgeResponse(l,t,r)})},mobile:function(e,n){var t=n.resolve,r=n.reject,i=n.context,s=n.containerType,c=n.platformType,a={message:e.message,title:e.title,okButton:e.buttonLabels[0],cancelButton:e.buttonLabels[1]};s?c===g.ANDROID?i&&i(function(l){var d={errorCode:C.SUCCESS,result:{buttonIndex:l.ok?0:1}};o.handleBridgeResponse(d,t,r)},function(l){o.handleBridgeResponse(l,t,r)},"taurus.common","confirm",a):c===g.IOS&&i.callHandler("taurus.common.confirm",Object.assign({},a),function(l){o.handleBridgeResponse(l,t,r)}):i&&i.call("confirm",a,function(l){var d={errorCode:C.SUCCESS,result:{buttonIndex:l.ok?0:1}};o.handleBridgeResponse(d,t,r)})},pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"device.notification.confirm",e)}}),jn.version={android:"1.3.2",ios:"1.3.2",pc:"1.3.2"};function jn(e){return o.invoke("confirm",e)}o.registerAPI("copyToClipboard",{mini:!0,mobile:!0}),Vn.version={android:"1.3.2",ios:"1.3.2"};function Vn(e){return o.invoke("copyToClipboard",e)}o.registerAPI("createChatGroup",{mini:!0,mobile:!0}),zn.version={android:"1.3.0",ios:"1.3.0",pc:"1.3.0"};function zn(e){return o.invoke("createChatGroup",e)}o.registerAPI("createDing",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.ding.create",e)}}),Un.version={android:"1.3.9",ios:"1.3.9",pc:"1.3.9"};function Un(e){return o.invoke("createDing",e)}o.registerAPI("createDingV2",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.ding.createV2",e)}}),Gn.version={android:"2.7.0",ios:"2.7.0",pc:"2.7.0"};function Gn(e){return o.invoke("createDingV2",e)}function Be(e,n){e===void 0&&(e={});var t=n.resolve,r=n.reject,i=n.context,s=n.containerType,c=n.appType,a=n.platformType;if(s){var l=function(u){o.handleBridgeResponse(u,t,r)},d=function(u){o.handleBridgeResponse(u,t,r)};c===A.MINI_APP?i&&i({m:"biz.conference.createVideoConf",args:e,onSuccess:l,onFail:d}):a===g.ANDROID?i&&i(l,d,"biz.conference","createVideoConf",e):a===g.IOS&&i.callHandler("biz.conference.createVideoConf",Object.assign({},e),function(u){o.handleBridgeResponse(u,t,r)})}else i&&i.call("createVideoConf",e,function(){t()})}o.registerAPI("createVideoConf",{mini:Be,mobile:Be,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.conference.createVideoConf",T({},e))}}),Jn.version={android:"3.7.5",ios:"3.7.5",pc:"3.7.5"};function Jn(e){return o.invoke("createVideoConf",e)}o.registerAPI("createVideoMeeting",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.meeting.create",T({isVideoConference:!0},e))}}),Kn.version={android:"1.3.1.1",ios:"1.3.1.1",pc:"1.9.4"};function Kn(e){return o.invoke("createVideoMeeting",e)}o.registerAPI("dealWithBackAction",{mobile:!0}),$n.version={android:"1.2.0.10"};function $n(e){return o.invoke("dealWithBackAction",e)}o.registerAPI("disableClosePage",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.util.disableClosePage",{})}}),Yn.version={pc:"3.4.0"};function Yn(){return o.invoke("disableClosePage")}o.registerAPI("disablePullToRefresh",{mobile:function(e,n){var t=n.resolve,r=n.reject,i=n.context,s=n.containerType,c=n.platformType;s?c===g.ANDROID?i&&i(function(){t()},function(){r()},"ui.pullToRefresh","disable",{}):c===g.IOS&&i.callHandler("ui.pullToRefresh.disable",Object.assign({},{}),function(a){t(a)}):i&&i.call("pullRefresh",{pullRefresh:!1},function(){t()})}}),Qn.version={android:"1.3.0",ios:"1.3.0"};function Qn(){return o.invoke("disablePullToRefresh",{_apiName:"disablePullToRefresh"})}o.registerAPI("disableWebviewBounce",{mobile:function(e,n){var t=n.resolve,r=n.reject,i=n.context,s=n.containerType,c=n.platformType;s?c===g.ANDROID?i&&i(function(){t()},function(){r()},"ui.webViewBounce","disable",{}):c===g.IOS&&i.callHandler("ui.webViewBounce.disable",Object.assign({},{}),function(a){t(a)}):i&&i.call("bounce",{enable:!1},function(a){t(a)})}}),qn.version={ios:"1.3.0"};function qn(){return o.invoke("disableWebviewBounce",{_apiName:"disableWebviewBounce"})}o.registerAPI("downloadAudio",{mini:!0,mobile:!0}),Xn.version={android:"1.3.0",ios:"1.3.0"};function Xn(e){return o.invoke("downloadAudio",e)}var Ot=1;function Zn(e){return o.invoke("downloadFile",e)}o.registerAPI("downloadFile",{mini:function(e,n){var t=n.resolve,r=n.reject,i=n.containerType,s=n.context;i===S.isDingTalk?s&&s({m:"taurus.common.downloadFile",args:e,onSuccess:function(c){o.handleBridgeResponse(c,t,r)},onFail:function(c){o.handleBridgeResponse(c,t,r)}}):s&&s.call("downloadFile",e,function(c){c.error?r(c):t(c)})},pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.util.downloadFile",e),o.registerContinuesEvent(n.msgId,function(t,r){t==="im.fileTask.addNewTask"&&(o.removeContinuesEvent(n.msgId),o.registerContinuesEvent(r.taskId,function(i,s){if(i==="im.fileTask.updateTask"){var c=s.doneSize,a=s.fileName,l=s.filePath,d=s.fileSize,u=s.speed;e.onProgress({doneSize:c,fileName:a,filePath:l,fileSize:d,speed:u}),s.status===Ot&&o.removeContinuesEvent(s.taskId)}}))})}}),Zn.version={pc:"1.3.5"};o.registerAPI("enablePullToRefresh",{mobile:function(e,n){var t=n.resolve,r=n.reject,i=n.context,s=n.containerType,c=n.platformType;s?c===g.ANDROID?i&&i(function(){t()},function(){r()},"ui.pullToRefresh","enable",{}):c===g.IOS&&i.callHandler("ui.pullToRefresh.enable",Object.assign({},{}),function(){t()}):i&&i.call("pullRefresh",{pullRefresh:!0},function(){t()})}}),eo.version={android:"1.3.0",ios:"1.3.0"};function eo(){return o.invoke("enablePullToRefresh",{_apiName:"enablePullToRefresh"})}o.registerAPI("enableVpn",{mini:!0,mobile:!0}),no.version={android:"1.1.0",ios:"1.1.0"};function no(){return o.invoke("enableVpn")}o.registerAPI("enableWebviewBounce",{mobile:function(e,n){var t=n.resolve,r=n.reject,i=n.context,s=n.containerType,c=n.platformType;s?c===g.ANDROID?i&&i(function(){t()},function(){r()},"taurus.common","bounce",{enable:!0}):c===g.IOS&&i.callHandler("taurus.common.bounce",Object.assign({},{enable:!0}),function(a){t(a)}):i&&i.call("bounce",{enable:!0},function(a){t(a)})}}),oo.version={ios:"1.3.0"};function oo(){return o.invoke("enableWebviewBounce",{_apiName:"enableWebviewBounce"})}o.registerAPI("exclusiveInvoke",{mini:!0,mobile:!0}),io.version={ios:"1.9.5",android:"1.9.5"};function io(e){return o.invoke("exclusiveInvoke",e)}o.registerAPI("faceComparison",{mobile:!0,mini:!0}),to.version={android:"2.4.0",ios:"2.4.0"};function to(e){return o.invoke("faceComparison",e)}var Me;(function(e){e.PNG="png",e.JPG="jpg"})(Me||(Me={})),o.registerAPI("faceRecognition",{mobile:!0,mini:!0}),ro.version={android:"2.4.0",ios:"2.4.0"};function ro(e){return o.invoke("faceRecognition",e)}o.registerAPI("getAppInstallStatus",{mini:!0,mobile:!0}),ao.version={android:"2.1.10",ios:"2.1.10"};function ao(e){return o.invoke("getAppInstallStatus",e)}o.registerAPI("getAuthCode",{pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"runtime.permission.requestAuthCode",e)},mobile:!0,mini:!0}),so.version={android:"1.0.0",ios:"1.0.0",pc:"1.0.0"};function so(e){return o.invoke("getAuthCode",e)}o.registerAPI("getConfig",{mobile:!0,mini:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"getConfig",e)}}),co.version={android:"1.3.2",ios:"1.3.2",pc:"1.3.2"};function co(){return o.invoke("getConfig",{})}function Ie(){return o.getContainerType()}o.registerAPI("getDeviceId",{mobile:!0,mini:!0}),lo.version={android:"2.5.0",ios:"2.5.0"};function lo(){return o.invoke("getDeviceId",{})}o.registerAPI("getFromClipboard",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"util.clipboardData.getData",e)}}),uo.version={android:"2.3.1",ios:"2.3.1",pc:"2.6.10"};function uo(){return o.invoke("getFromClipboard")}o.registerAPI("getGeolocation",{mini:!0,mobile:!0}),po.version={android:"1.2.0",ios:"1.2.0"};function po(e){return o.invoke("getGeolocation",e)}o.registerAPI("getGeolocationStatus",{mobile:!0,mini:!0}),fo.version={android:"1.6.2",ios:"1.6.2"};function fo(e){return o.invoke("getGeolocationStatus",e)}o.registerAPI("getHotspotInfo",{mobile:!0,mini:!0}),go.version={android:"1.3.5",ios:"1.3.5"};function go(){return o.invoke("getHotspotInfo")}o.registerAPI("getLanguageSetting",{mobile:!0,mini:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"getLanguageSetting",e)}}),mo.version={android:"1.4.0",ios:"1.4.0",pc:"1.4.0"};function mo(){return o.invoke("getLanguageSetting")}o.registerAPI("getLoginUser",{mobile:!0,mini:!0}),vo.version={android:"1.1.0",ios:"1.1.0"};function vo(){return o.invoke("getLoginUser")}o.registerAPI("getNetworkType",{mobile:!0,mini:!0}),ho.version={android:"1.3.0",ios:"1.3.0"};function ho(){return o.invoke("getNetworkType")}o.registerAPI("getPhoneInfo",{mini:!0,mobile:!0}),Io.version={android:"1.3.5",ios:"1.3.5"};function Io(){return o.invoke("getPhoneInfo")}var _e;(function(e){e.SOCKS5="SOCKS5",e.HTTP="HTTP"})(_e||(_e={})),o.registerAPI("getProxyInfo",{pc:function(e,n){e===void 0&&(e={}),window.dingtalk.platform.invokeAPI(n.msgId,"net.util.getProxyInfo",e)}}),ko.version={pc:"2.10.0"};function ko(){return o.invoke("getProxyInfo",{})}o.registerAPI("getStorageItem",{mobile:!0,mini:!0}),Ao.version={android:"1.3.1.1",ios:"1.3.1.1"};function Ao(e){return o.invoke("getStorageItem",e)}o.registerAPI("getTraceStatus",{mobile:!0}),Po.version={android:"1.3.4",ios:"1.3.4"};function Po(e){return o.invoke("getTraceStatus",e)}o.registerAPI("getUUID",{mobile:!0,mini:!0}),wo.version={android:"1.3.5",ios:"1.3.5"};function wo(){return o.invoke("getUUID")}var Dt=/TaurusApp\((\S*)\/(\S*)\)/;function Nt(){if(window&&window.navigator){var e=window.navigator.userAgent;if(e){var n=e.match(Dt);return Promise.resolve({group:"TaurusApp",name:n[1],version:n[2]})}return Promise.reject("调用错误:无法检测到当下环境的 userAgent,请确保在政务钉钉客户端 H5 容器下调用。")}}o.registerAPI("getUserAgent",{mobile:!0,mini:!0,pc:!0}),bo.version={android:"1.6.2",ios:"1.6.2",pc:"1.6.2"};function bo(){var e=o.getAppType();return e===A.PC||e===A.MOBILE?Nt():e===A.MINI_APP?o.invoke("getUserAgent",{}):void 0}var Fe,We,He;(function(e){e.off="0",e.on="1"})(Fe||(Fe={})),function(e){e[e.off=0]="off",e[e.on=1]="on"}(We||(We={})),function(e){e[e.name=1]="name",e[e.id=2]="id",e[e.custom=3]="custom"}(He||(He={})),o.registerAPI("getWaterMarkConfig",{pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"getWaterMarkConfig",e)},mini:!0,mobile:!0});function fe(e){return o.invoke("getWaterMarkConfig",e)}var oe,yo="h5Page",xt="meetingDetail",Lt="docPreview",Bt=[yo,xt,Lt],B=!Z(typeof my)&&my!==null&&!Z(typeof my.alert);B&&(oe=my.getSystemInfoSync());var je=B?oe.platform:navigator.userAgent,Mt=B?oe.screenWidth:window.screen.width,q=(B?oe.pixelRatio:window.devicePixelRatio)||2,le=B?Promise.resolve(""):"",_t=function(){function e(t){t===void 0&&(t={}),this.options=T({texts:[""],width:50,height:50,textRotate:-10,textColor:"#000000",textFont:"PingFangSC-Regular,system-ui,sans-serif",fontStyle:"normal",opacity:90,canvas:[],fontSize:14},t),this.options.width*=this.options.fontSize/12,this.options.height*=this.options.fontSize/12,this.options.deg=this.options.textRotate*Math.PI/180,this.options.cosDeg=Math.cos(this.options.deg),this.options.absSinDeg=Math.abs(Math.sin(this.options.deg))}var n=e.prototype;return n.init=function(){var t=this,r=null,i=null;B?i=my.createCanvasContext("canvasBg"):(r=this.createCanvas(),i=r.getContext("2d")),this.calcTextSize();var s=this.options,c=s.allItemsWidth,a=s.drawItems,l=s.height,d=s.containerComp,u=Math.ceil(Mt/c),p=new Array(u).fill(a).reduce(function(b,D){return b.concat(D)},[]),v=function(){t.setCanvasStyle(i),t.drawText(i,p),i.translate(0,l),t.drawText(i,p.reverse(),!0)};if(B)return new Promise(function(b){d.setState({width:c*u,height:2*l},function(){setTimeout(function(){v(),i.draw(),b(i.toDataURL("image/png"))},0)})});r.width=c*u,r.height=2*l,r.style.display="none",v();var w=r.toDataURL("image/png");return this.destroy(),w},n.calcTextSize=function(){var t=0,r=0,i=this.options;i.drawItems=[].map.call(i.texts,function(c){var a,l,d,u;if(B){for(var p=0,v=0;v<c.length;v+=1)p+=/[\uff00-\uffff]/.test(c[v])?1:.5;a=1.1*i.fontSize*p,l=1.2*i.fontSize}else{var w=(d='<span style="font:'+i.fontSize+"px "+i.textFont+';visibility:hidden;">'+c+"</span>",(u=document.createElement("div")).innerHTML=d.trim(),u.firstChild);document.body.appendChild(w),a=w.offsetWidth,l=w.offsetHeight,document.body.removeChild(w)}return t=Math.max(t,a),i.fontHeight||(i.fontHeight=l),r+=Math.ceil(i.cosDeg*(i.width<a?a:i.width)),{txt:c,width:a,height:l}}),t>i.width&&(i.width=t);var s=t*i.absSinDeg+i.fontHeight*i.cosDeg;s>i.height&&(i.height=s),i.maxItemWidth=t,i.allItemsWidth=r},n.setCanvasStyle=function(t){var r=this.options,i=r.deg,s=r.absSinDeg,c=r.height,a=r.fontHeight,l=r.fontStyle,d=r.fontSize,u=r.textFont,p=r.textColor,v=r.opacity;t.rotate(i);var w=s*(c-a);t.translate(-w,0),t.font=l+" "+d+"px "+u,t.fillStyle=p,t.textAlign="left",t.textBaseline="bottom",t.globalAlpha=v},n.drawText=function(t,r,i){i===void 0&&(i=!1);var s=this.options,c=s.maxItemWidth,a=s.width,l=s.height,d=s.deg,u=s.cosDeg,p=s.absSinDeg;r.forEach(function(v,w){var b=u*(c-v.width)/2,D=a*u*w,J=Math.abs(D*Math.tan(d))+l;t.fillText(v.txt,D+(i?u*(a-v.width)/2:b),J+(i?p*(a-v.width)/2:0))})},n.createCanvas=function(){var t=document.createElement("canvas");return this.options.canvas.push(t),t},n.destroy=function(){this.options.canvas.forEach(function(t){t.remove(),t=null})},e}();function Ft(e,n){var t=JSON.parse(e),r=t.watermark||t;if(!r||String(r.watermarkStatus)==="0"||!Array.isArray(r.targetPages)||!r.targetPages.some(function(p){return p.name===n&&String(p.value)==="1"}))return le;var i=[];if(Array.isArray(r.contentType)){var s="";r.contentType.includes(1)&&(s+=r.userName+" "),r.contentType.includes(2)&&(s+=(r.account||"").slice(-4)),s&&i.push(s),r.contentType.includes(0)&&r.contentCustom&&i.push(r.contentCustom)}if(!i.length)return le;var c,a,l=/Android|Adr|SymbianOS|Windows\s*Phone|Mobile/.test(je),d=/iPhone|iPad|iPod|Mac\s*OS.*Mobile|iOS/.test(je),u=String(r.watermarkShowDensity)==="0";return d?u?(c=114,a=66):(c=86,a=45):l?u?(c=47*q,a=40*q):(c=25*q,a=25*q):u?(c=300,a=126):(c=194,a=106),new _t({containerComp:this,texts:i,width:c,height:a,textRotate:-10,textColor:{0:"#FF0000",1:"#000000",2:"#0000FF"}[r.fontColor]||"#000000",textFont:"PingFangSC-Regular,system-ui,sans-serif",fontStyle:String(r.fontStyle)==="0"?"normal":"bold",opacity:(120-parseInt(r.fontDiaphaneity,10))/100,fontSize:{0:12,1:16,2:28}[r.fontSize]||16}).init()}function ge(e,n){if(e===void 0&&(e={}),n===void 0&&(n=yo),!Bt.includes(n))throw new Error("第二个可选参数,仅能为“h5Page”或“meetingDetail”");try{return Ft.call(this,JSON.stringify(e),n)}catch(t){throw t}}So.version={android:"1.1.0",ios:"1.1.0",pc:"1.1.0"};function So(e,n){return e===void 0&&(e=""),new Promise(function(t,r){fe({pageInfo:e}).then(function(i){try{var s=ge(i,n);t(s)}catch(c){r(c)}})})}var Ve;(function(e){e[e.ENABLE=1]="ENABLE",e[e.DISABLE=0]="DISABLE"})(Ve||(Ve={})),o.registerAPI("getWaterMarkConfigV2",{mobile:!0,mini:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"getWaterMarkConfigV2",e)}}),ke.version={android:"2.8.0",ios:"2.8.0",pc:"2.8.0"};function ke(e){return o.invoke("getWaterMarkConfigV2",e)}var j;(function(e){e[e.DISABLE=0]="DISABLE",e[e.ENABLE=1]="ENABLE"})(j||(j={}));var ee;(function(e){e.IMSESSIONLIST="imSessionList",e.DOCPREVIEW="docPreview",e.H5PAGEOTHER="h5PageOther",e.MEETINGDETAIL="meetingDetail",e.H5PAGEBASIC="h5PageBasic",e.SELECTIONCOMPONENT="selectionComponent",e.CONTACTLIST="contactList",e.CONTACTDETAIL="contactDetail",e.CHAT="chat",e.SECRETCHAT="secretChat",e.CAMERA="camera"})(ee||(ee={}));var ze,Ue="",Wt={1:"normal",2:"bold",3:"italic"};(function(e){e[e.LOOSE=0]="LOOSE",e[e.NORMAL=1]="NORMAL",e[e.DENSE=2]="DENSE"})(ze||(ze={}));var V;(function(e){e[e.RIGHT=0]="RIGHT",e[e.LEFT=1]="LEFT"})(V||(V={}));var Ht=749,jt=326,Vt=200,zt=16,Ge=1.3,Ut=function(){function e(t){this.options=Object.assign({texts:"",width:50,height:50,tiltAngle:-15,fontColor:"#171A1D",textFont:"PingFangSC-Regular,system-ui,sans-serif",transparency:90,canvas:[],fontSize:13,tWidth:0,tHeight:0,deg:-15},t,{width:t.leftAndRightSpacing,height:t.upAndDownSpacing}),this.options.deg=this.options.tiltAngle*Math.PI/180}var n=e.prototype;return n.init=function(){var t,r,i,s,c,a,l,d,u,p=null;return u=(p=this.createCanvas()).getContext("2d"),p.width=((t=window)===null||t===void 0||(r=t.screen)===null||r===void 0?void 0:r.width)||((i=document)===null||i===void 0||(s=i.documentElement)===null||s===void 0?void 0:s.clientWidth)||Ht,p.height=((c=window)===null||c===void 0||(a=c.screen)===null||a===void 0?void 0:a.height)||((l=document)===null||l===void 0||(d=l.documentElement)===null||d===void 0?void 0:d.clientHeight)||jt,this.calcTextSize(),this.setCanvasStyle(u),this.drawText(u),p.toDataURL("image/png")},n.calcTextSize=function(){var t,r,i=this.options,s="exclusiveDingTalkWaterMarkCustomClass"+100*Math.random(),c=(t='<span id="'+s+'" style="font:'+i.fontSize+"px "+i.textFont+';visibility:hidden;display:inline-block;">'+i.texts+"</span>",(r=document.createElement("div")).innerHTML=t.trim(),r.firstChild);document.body.appendChild(c);var a=document.getElementById(s),l=Math.max(a.clientWidth,i.texts.length*i.fontSize*Ge)||Vt,d=Math.min(a.clientHeight,i.fontSize*Ge)||zt;i.tWidth=l,i.tHeight=d,document.body.removeChild(c)},n.setCanvasStyle=function(t){var r=this.options,i=r.deg,s=r.fontStyle,c=r.fontSize,a=r.textFont,l=r.fontColor,d=r.transparency;t.rotate(i),t.font=s+" "+c+"px "+a,t.fillStyle=l,t.textAlign="left",t.textBaseline="bottom",t.globalAlpha=(100-d)/100},n.fillContent=function(t,r){for(var i=this.options,s=i.width,c=i.height,a=i.texts,l=i.tWidth,d=i.tHeight,u=0;u<40;u++)for(var p=u*c+d,v=0;v<40;v++){var w=void 0;w=u%2==0?t===V.RIGHT?(l+s)*v:(l+s)*v+l+s:t===V.RIGHT?(l+s)*v+s:(l+s)*v+l,r.fillText(a,t===V.RIGHT?w:-w,p)}},n.drawText=function(t){this.fillContent(V.RIGHT,t),this.fillContent(V.LEFT,t)},n.createCanvas=function(){var t=document.createElement("canvas");return this.options.canvas.push(t),t},e}();function Gt(e,n){var t,r,i,s,c,a,l,d;n===void 0&&(n=ee.H5PAGEOTHER);var u=null;try{u=JSON.parse(e)}catch(D){u={}}var p=(t=u)===null||t===void 0||(r=t.watermark)===null||r===void 0?void 0:r.ruleContent,v=(i=u)===null||i===void 0?void 0:i.userInfo;if((p==null?void 0:p.enable)===j.DISABLE||(p==null?void 0:p.enable)===j.ENABLE&&(p==null||(s=p.effectPage)===null||s===void 0?void 0:s[n])!==j.ENABLE)return Ue;var w,b="";return(p==null||(c=p.watermarkContent)===null||c===void 0?void 0:c.enableUsername)===j.ENABLE&&(b+=v==null?void 0:v.userName),(p==null||(a=p.watermarkContent)===null||a===void 0?void 0:a.enablePhoneNumber)===j.ENABLE&&(b+=" "+(v==null?void 0:v.lastFourPhoneNo)),p!=null&&(l=p.watermarkContent)!==null&&l!==void 0&&l.customCopy&&(b+=" "+(p==null||(w=p.watermarkContent)===null||w===void 0?void 0:w.customCopy)),b.length?new Ut(Object.assign({texts:b,textFont:"PingFangSC-Regular,system-ui,sans-serif"},p==null?void 0:p.watermarkStyle,{fontStyle:Wt[p==null||(d=p.watermarkStyle)===null||d===void 0?void 0:d.fontStyle]})).init():Ue}function Jt(e,n){n===void 0&&(n=ee.H5PAGEOTHER);try{return Gt.call(null,JSON.stringify(e),n)}catch(t){return""}}function Kt(e){return new Promise(function(n,t){ne().then(function(r){var i=r.version;he(i,"2.8.0")!==-1?ke({pageInfo:e}).then(function(s){try{var c=Jt(s,e);n(c)}catch(a){t(a)}}):fe({pageInfo:e}).then(function(s){try{var c=ge(s,e);n(c)}catch(a){t(a)}})}).catch(function(){fe({pageInfo:e}).then(function(r){try{var i=ge(r,e);n(i)}catch(s){t(s)}})})})}o.registerAPI("getWifiStatus",{mobile:!0,mini:!0}),To.version={android:"1.3.5",ios:"1.3.5"};function To(){return o.invoke("getWifiStatus")}o.registerAPI("getWorkbenchContext",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"getWorkbenchContext",e)}}),Co.version={android:"2.1.10",ios:"2.1.10"};function Co(){return o.invoke("getWorkbenchContext")}o.registerAPI("h5PageBack",{mobile:function(e,n){var t=n.resolve,r=n.reject,i=n.context,s=n.containerType,c=n.platformType;s?c===g.ANDROID?i&&i(function(a){o.handleBridgeResponse(a,t,r)},function(a){o.handleBridgeResponse(a,t,r)},"biz.navigation","goBack",e):c===g.IOS&&i.callHandler("biz.navigation.goBack",Object.assign({},e),function(a){t(a)}):i&&i.call("h5PageBack",{_apiName:"goBack"},function(){t()})}}),Eo.version={android:"1.3.0",ios:"1.3.9"};function Eo(){return o.invoke("h5PageBack",{_apiName:"goBack"})}function Je(e,n){var t=n.resolve,r=n.reject,i=n.context,s=n.containerType,c=n.appType,a=n.platformType;if(s){var l=function(u){o.handleBridgeResponse(u,t,r)},d=function(u){o.handleBridgeResponse(u,t,r)};c===A.MINI_APP?i&&i({m:"device.notification.hidePreloader",args:e,onSuccess:l,onFail:d}):a===g.ANDROID?i&&i(l,d,"device.notification","hidePreloader",e):a===g.IOS&&i.callHandler("device.notification.hidePreloader",Object.assign({},e),function(u){t(u)})}else i&&i.call("hideLoading",e,function(){t()})}o.registerAPI("hideLoading",{mini:Je,mobile:Je}),Ro.version={android:"1.3.2",ios:"1.3.2"};function Ro(){return o.invoke("hideLoading")}function $t(e,n){var t=n.resolve,r=n.reject,i=n.context,s=n.containerType,c=(n.appType,n.platformType);if(s){var a={show:!1,control:!0,text:""};c===g.ANDROID?i&&i(function(l){o.handleBridgeResponse(l,t,r)},function(l){o.handleBridgeResponse(l,t,r)},"biz.navigation","setRight",a):c===g.IOS&&i.callHandler("biz.navigation.setRight",Object.assign({},a),function(l){t(l)})}else i&&i.call("hideOptionMenu",e,function(){t()})}o.registerAPI("hideOptionMenu",{mobile:$t}),Oo.version={android:"1.1.0",ios:"1.1.0"};function Oo(){return o.invoke("hideOptionMenu")}function Ke(e,n){var t=n.resolve,r=n.reject,i=n.containerType,s=n.platformType,c=n.appType,a=n.context,l=Object.assign(e,{hidden:!0});if(i){var d=function(){e.onSuccess&&e.onSuccess(),t()},u=function(){e.onFail&&e.onFail(),r()};c===A.MINI_APP?a&&a({m:"biz.navigation.hideBar",args:l,onSuccess:d,onFail:u}):s===g.ANDROID?a&&a(d,u,"biz.navigation","hideBar",l):s===g.IOS&&a.callHandler("biz.navigation.hideBar",Object.assign({},l),function(){t()})}else a&&a.call("hideTitlebar",l,function(){t()})}o.registerAPI("hideTitlebar",{mini:Ke,mobile:Ke}),Do.version={android:"2.1.0",ios:"2.1.0"};function Do(){return o.invoke("hideTitlebar")}o.registerAPI("isDownloadFileExist",{pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.util.isLocalFileExist",e)}}),No.version={pc:"1.3.5"};function No(e){return o.invoke("isDownloadFileExist",e)}function $e(e,n){e===void 0&&(e={});var t=n.resolve,r=n.reject,i=n.context,s=n.containerType,c=n.appType,a=n.platformType;if(s){var l=function(u){o.handleBridgeResponse(u,t,r)},d=function(u){o.handleBridgeResponse(u,t,r)};c===A.MINI_APP?i&&i({m:"biz.conference.joinScheduleConf",args:e,onSuccess:l,onFail:d}):a===g.ANDROID?i&&i(l,d,"biz.conference","joinScheduleConf",e):a===g.IOS&&i.callHandler("biz.conference.joinScheduleConf",Object.assign({},e),function(u){o.handleBridgeResponse(u,t,r)})}else i&&i.call("joinScheduleConf",e,function(){t()})}o.registerAPI("joinScheduleConf",{mini:$e,mobile:$e,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.conference.joinScheduleConf",T({},e))}}),xo.version={android:"3.7.5",ios:"3.7.5",pc:"3.7.5"};function xo(e){return o.invoke("joinScheduleConf",e)}function Ye(e,n){e===void 0&&(e={});var t=n.resolve,r=n.reject,i=n.context,s=n.containerType,c=n.appType,a=n.platformType;if(s){var l=function(u){o.handleBridgeResponse(u,t,r)},d=function(u){o.handleBridgeResponse(u,t,r)};c===A.MINI_APP?i&&i({m:"biz.conference.joinVideoConf",args:e,onSuccess:l,onFail:d}):a===g.ANDROID?i&&i(l,d,"biz.conference","joinVideoConf",e):a===g.IOS&&i.callHandler("biz.conference.joinVideoConf",Object.assign({},e),function(u){o.handleBridgeResponse(u,t,r)})}else i&&i.call("joinVideoConf",e,function(){t()})}o.registerAPI("joinVideoConf",{mini:Ye,mobile:Ye,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.conference.joinVideoConf",T({},e))}}),Lo.version={android:"3.7.5",ios:"3.7.5",pc:"3.7.5"};function Lo(e){return o.invoke("joinVideoConf",e)}o.registerAPI("joinVideoMeeting",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.conference.joinVideoMeeting",T({},e))}}),Bo.version={android:"3.9.0",ios:"3.9.0",pc:"3.9.0"};function Bo(e){return o.invoke("joinVideoMeeting",e)}o.registerAPI("locateOnMap",{mobile:!0,mini:!0}),Mo.version={android:"1.3.0",ios:"1.3.0"};function Mo(e){return o.invoke("locateOnMap",e)}function Yt(e,n){return o.registerEvent(e,n)}o.registerAPI("onAudioPlayEnd",{mini:!0,mobile:!0}),_o.version={android:"1.6.2",ios:"1.6.2"};function _o(){return o.invoke("onAudioPlayEnd")}o.registerAPI("onRecordAudioEnd",{mini:!0,mobile:!0}),Fo.version={android:"1.3.0",ios:"1.3.0"};function Fo(e){return o.invoke("onRecordAudioEnd",e)}o.registerAPI("openApiInvoker",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"openApiInvoker",e)}}),Wo.version={ios:"3.0.1",android:"3.0.1",pc:"3.0.1"};function Wo(e){return o.invoke("openApiInvoker",e)}o.registerAPI("openApp",{mini:!0,mobile:!0}),Ho.version={android:"1.3.2",ios:"1.3.2"};function Ho(e){return o.invoke("openApp",e)}o.registerAPI("openBrowser",{mini:!0,mobile:!0}),jo.version={android:"1.2.3"};function jo(e){return o.invoke("openBrowser",e)}o.registerAPI("openChat",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"internal.chat.toConversation",{cid:e.chatId})}}),Vo.version={android:"1.2.0",ios:"1.2.0",pc:"1.2.0"};function Vo(e){return o.invoke("openChat",e)}o.registerAPI("openDownloadFile",{pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.util.openLocalFile",e)}}),zo.version={pc:"1.3.5"};function zo(e){return o.invoke("openDownloadFile",e)}function Qe(e,n){var t=n.resolve,r=n.reject,i=n.context,s=n.containerType,c=n.appType,a=n.platformType;ne().then(function(l){var d=l.version,u=he(d,"1.6.2")!==-1;if(s){var p=function(w){o.handleBridgeResponse(w,t,r)},v=function(w){o.handleBridgeResponse(w,t,r)};c===A.MINI_APP?i&&i({m:u?"taurus.common.openLink":"taurus.common.pushWindow",args:e,onSuccess:p,onFail:v}):a===g.ANDROID?i&&i(p,v,"taurus.common",u?"openLink":"pushWindow",e):a===g.IOS&&i.callHandler(u?"taurus.common.openLink":"taurus.common.pushWindow",Object.assign({},e),function(w){o.handleBridgeResponse(w,t,r)})}else i&&i.call(u?"openLink":"pushWindow",e,function(w){o.handleBridgeResponse(w,t,r)})})}o.registerAPI("openLink",{mini:Qe,mobile:Qe,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.util.openLink",e)}}),Uo.version={android:"1.2.0",ios:"1.2.0",pc:"1.2.0"};function Uo(e){return o.invoke("openLink",e)}o.registerAPI("openPage",{mini:!0,mobile:!0}),Go.version={android:"1.1.0",ios:"1.1.0"};function Go(e){return o.invoke("openPage",e)}o.registerAPI("dgOpenApp",{mobile:!0,mini:!0}),Jo.version={android:"1.3.1.1",ios:"1.3.1.1"};function Jo(e){return o.invoke("dgOpenApp",T({},e,{_apiName:"openSchemeUrl"}))}o.registerAPI("openSlidePanel",{pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.util.openSlidePanel",e)}}),Ko.version={pc:"1.3.5"};function Ko(e){return o.invoke("openSlidePanel",e)}o.registerAPI("openWatermarkCamera",{mobile:!0,mini:!0}),$o.version={android:"1.3.7",ios:"1.3.7"};function $o(){return o.invoke("openWatermarkCamera")}o.registerAPI("pauseAudio",{mini:!0,mobile:!0}),Yo.version={android:"1.3.0",ios:"1.3.0"};function Yo(e){return o.invoke("pauseAudio",e)}o.registerAPI("pickChat",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.chat.pickConversation",e)}}),Qo.version={android:"1.2.0",ios:"1.2.0",pc:"2.9.0"};function Qo(e){return o.invoke("pickChat",e)}o.registerAPI("pickChatByCorpId",{mini:!0,mobile:!0});function Qt(e){return o.invoke("pickChatByCorpId",e)}o.registerAPI("pickGroupChat",{pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.contact.pickGroupChat",e)}}),qo.version={pc:"2.10.30"};function qo(e){return o.invoke("pickGroupChat",e)}function qe(e,n){e===void 0&&(e={});var t=n.resolve,r=n.reject,i=n.context,s=n.containerType,c=n.appType,a=n.platformType;if(s){var l=function(u){o.handleBridgeResponse(u,t,r)},d=function(u){o.handleBridgeResponse(u,t,r)};c===A.MINI_APP?i&&i({m:a===g.ANDROID?"taurus.common.pickGroupConversation":"internal.chat.pickGroupConversation",args:e,onSuccess:l,onFail:d}):a===g.ANDROID?i&&i(l,d,"taurus.common","pickGroupConversation",e):a===g.IOS&&i.callHandler("internal.chat.pickGroupConversation",Object.assign({},e),function(u){t(u)})}else i&&i.call("pickGroupConversation",e,function(){t()})}o.registerAPI("pickGroupConversation",{mini:qe,mobile:qe}),Xo.version={android:"2.8.0",ios:"2.8.0"};function Xo(e){return e===void 0&&(e={owner:!1}),o.invoke("pickGroupConversation",e)}o.registerAPI("playAudio",{mini:!0,mobile:!0}),Zo.version={android:"1.3.0",ios:"1.3.0"};function Zo(e){return o.invoke("playAudio",e)}o.registerAPI("previewDoc",{mini:!0,mobile:!0}),ei.version={android:"1.1.0",ios:"1.1.0"};function ei(e){return o.invoke("previewDoc",e)}o.registerAPI("previewImage",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.util.previewImage",e)}}),ni.version={android:"1.2.0",ios:"1.2.0",pc:"1.2.0"};function ni(e){return o.invoke("previewImage",e)}o.registerAPI("printFile",{mini:!0,mobile:!0}),oi.version={android:"2.2.10"};function oi(e){return o.invoke("printFile",e)}o.registerAPI("printNativeLog",{mini:!0,mobile:!0}),ii.version={android:"1.9.4",ios:"1.9.4"};function ii(e){return o.invoke("printNativeLog",e)}function Xe(e,n){var t=n.resolve,r=n.reject,i=n.context,s=n.containerType,c=n.appType,a=n.platformType,l={message:e.message,title:e.title,okButton:e.buttonLabels[0],cancelButton:e.buttonLabels[1]};if(s){var d=function(p){o.handleBridgeResponse(p,t,r)},u=function(p){o.handleBridgeResponse(p,t,r)};c===A.MINI_APP?i&&i({m:"taurus.common.prompt",args:l,onSuccess:d,onFail:u}):a===g.ANDROID?i&&i(d,u,"taurus.common","prompt",l):a===g.IOS&&i.callHandler("taurus.common.prompt",Object.assign({},l),function(p){o.handleBridgeResponse(p,t,r)})}else i&&i.call("prompt",l,function(p){var v={errorCode:C.SUCCESS,result:{buttonIndex:p.ok?0:1,value:p.inputValue}};o.handleBridgeResponse(v,t,r)})}o.registerAPI("prompt",{mini:Xe,mobile:Xe,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"device.notification.prompt",e)}}),ti.version={android:"1.3.2",ios:"1.3.2",pc:"1.3.2"};function ti(e){return o.invoke("prompt",e)}o.registerAPI("pushWindow",{mini:!0,mobile:!0}),ri.version={android:"2.9.7",ios:"2.9.7"};function ri(e){return o.invoke("pushWindow",e)}o.registerAPI("readImageToBase64",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"readImageToBase64",e)}}),ai.version={ios:"2.1.0",android:"2.1.0",pc:"2.1.0"};function ai(e){return o.invoke("readImageToBase64",e)}function qt(e){typeof e=="function"?o.onReady(e):console.error("dd.ready's param must be function! ")}var Ze;(function(e){e[e.ADJUST_BY_NET=0]="ADJUST_BY_NET",e[e.LOW_QUALITY=1]="LOW_QUALITY",e[e.MID_QUALITY=2]="MID_QUALITY",e[e.HIGH_QUALITY=3]="HIGH_QUALITY",e[e.NOT_COMPRESSED=4]="NOT_COMPRESSED",e[e.CUSTOM=5]="CUSTOM"})(Ze||(Ze={})),o.registerAPI("reduceImageSize",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"reduceImageSize",e)}}),si.version={ios:"2.1.0",android:"2.1.0",pc:"2.1.0"};function si(e){return o.invoke("reduceImageSize",e)}o.registerAPI("removeStorageItem",{mobile:!0,mini:!0}),ci.version={android:"1.3.1.1",ios:"1.3.1.1"};function ci(e){return o.invoke("removeStorageItem",e)}function en(e,n){var t=n.resolve,r=n.reject,i=n.containerType,s=n.platformType,c=n.appType,a=n.context;if(i){var l=function(){e.onSuccess&&e.onSuccess(),t()},d=function(){e.onFail&&e.onFail(),r()};c===A.MINI_APP?a&&a({m:"biz.navigation.replace",args:e,onSuccess:l,onFail:d}):s===g.ANDROID?a&&a(l,d,"biz.navigation","replace",e):s===g.IOS&&a.callHandler("taurus.common.replacePage",Object.assign({},e),function(){t()})}else a&&a.call("replacePage",e,function(){t()})}o.registerAPI("replacePage",{mini:en,mobile:en}),li.version={android:"1.3.2",ios:"1.3.2"};function li(e){return o.invoke("replacePage",e)}o.registerAPI("resetView",{mini:!0,mobile:!0}),ui.version={android:"1.3.0",ios:"1.3.0"};function ui(){return o.invoke("resetView")}o.registerAPI("resumeAudio",{mini:!0,mobile:!0}),di.version={android:"1.3.0",ios:"1.3.0"};function di(e){return o.invoke("resumeAudio",e)}o.registerAPI("rotateView",{mini:!0,mobile:!0}),pi.version={android:"1.3.0",ios:"1.3.0"};function pi(e){return o.invoke("rotateView",e)}o.registerAPI("scan",{mini:!0,mobile:!0}),fi.version={android:"1.3.2",ios:"1.3.2"};function fi(e){return o.invoke("scan",e)}o.registerAPI("searchOnMap",{mini:!0,mobile:!0}),gi.version={android:"1.3.2",ios:"1.3.2"};function gi(e){return o.invoke("searchOnMap",e)}function Xt(e){return T({},e,{actionId:"",actionType:"0"})}function nn(e,n){var t=n.resolve,r=n.context;r&&r.call("sendOutData",Xt(e),function(){t()})}o.registerAPI("cardSendOutData",{mini:nn,mobile:nn}),mi.version={android:"2.5.0",ios:"2.5.0"};function mi(e){return o.invoke("cardSendOutData",e)}var on;(function(e){e.DEFAULT="0",e.DISABLEALL="1",e.ENABLEALL="2"})(on||(on={})),o.registerAPI("setLocalScreenShotPolicy",{mini:!0,mobile:!0}),vi.version={android:"2.12.12",ios:"2.12.12"};function vi(e){return o.invoke("setLocalScreenShotPolicy",e)}function Zt(e,n){var t=n.resolve,r=n.reject,i=n.containerType,s=n.platformType,c=n.context;i?s===g.ANDROID?c&&c(function(a){e.onSuccess&&e.onSuccess(),t()},function(a){r()},"biz.navigation","setIcon",e):s===g.IOS&&c.callHandler("biz.navigation.setIcon",Object.assign({},e),function(a){t()}):c&&c.call("setNavIcon",e,function(a){t()})}o.registerAPI("setNavIcon",{mobile:Zt}),hi.version={android:"1.3.0",ios:"1.3.0"};function hi(e){return o.invoke("setNavIcon",e)}function tn(e,n){var t=n.resolve,r=n.reject,i=n.context,s=n.containerType,c=n.appType,a=n.platformType,l=n.watch;if(s){var d=function(p){e.onSuccess&&e.onSuccess(),o.handleBridgeResponse(p,t,r)},u=function(p){o.handleBridgeResponse(p,t,r)};c===A.MINI_APP?i&&i({m:"biz.navigation.setLeft",args:e,onSuccess:d,onFail:u}):a===g.ANDROID?i&&i(d,u,"biz.navigation","setLeft",e):a===g.IOS&&i.callHandler("biz.navigation.setLeft",Object.assign({},e),function(p){!l&&t(p)})}else i&&i.call("setNavLeftText",e,function(){t()})}o.registerAPI("setNavLeftText",{mini:tn,mobile:tn,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.navigation.setLeft",e)}}),Ii.version={ios:"1.2.0",pc:"1.2.0"};function Ii(e){var n=Ie();return o.invoke("setNavLeftText",n===S.isDingTalk?Object.assign({watch:!0,show:!0,control:!1,showIcon:!0,text:""},e):e,{dingTalkAPIName:n===S.isDingTalk?"biz.navigation.setLeft":null})}o.registerAPI("setOptionMenu",{mobile:function(e,n){var t=n.resolve,r=n.reject,i=n.context,s=n.containerType,c=n.platformType;if(s){var a,l,d={text:e.title,show:e.show===void 0||e.show,control:e.control===void 0||e.control};if(c===g.ANDROID)i&&i(function(v){e.onSuccess&&e.onSuccess(v),t(v)},function v(w){e.onFail&&e.onFail(w),r(v)},"biz.navigation",(e==null||(a=e.menus)===null||a===void 0?void 0:a.length)>1?"setMenu":"setRight",(e==null||(l=e.menus)===null||l===void 0?void 0:l.length)>1?e:d);else if(c===g.IOS){var u,p;i.callHandler((e==null||(u=e.menus)===null||u===void 0?void 0:u.length)>1?"biz.navigation.setMenu":"biz.navigation.setRight",Object.assign({},(e==null||(p=e.menus)===null||p===void 0?void 0:p.length)>1?e:d),function(){t()})}}else i&&i.call("setOptionMenu",e,function(){t()})}}),ki.version={android:"1.1.0",ios:"1.1.0"};function ki(e){var n=Ie();return o.invoke("setOptionMenu",n===S.isDingTalk?Object.assign({watch:!0,show:!0,control:!1,showIcon:!0,text:""},e):e,n===S.isDingTalk?{dingTalkAPIName:"biz.navigation.setRight"}:null)}o.registerAPI("setProxyInfo",{pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"net.util.setProxyInfo",e)}}),Ai.version={pc:"2.10.0"};function Ai(e){return o.invoke("setProxyInfo",e)}o.registerAPI("setStorageItem",{mobile:!0,mini:!0}),Pi.version={android:"1.3.1.1",ios:"1.3.1.1"};function Pi(e){return o.invoke("setStorageItem",e)}var rn;function an(e,n){var t=n.resolve,r=n.reject,i=n.context,s=n.containerType,c=n.appType,a=n.platformType;if(s){var l=function(u){o.handleBridgeResponse(u,t,r)},d=function(u){o.handleBridgeResponse(u,t,r)};c===A.MINI_APP?i&&i({m:"biz.navigation.setTitle",args:e,onSuccess:l,onFail:d}):a===g.ANDROID?i&&i(l,d,"biz.navigation","setTitle",e):a===g.IOS&&i.callHandler("biz.navigation.setTitle",Object.assign({},e),function(u){o.handleBridgeResponse(u,t,r)})}else i&&i.call("setTitle",e,function(){t()})}(function(e){e.TRUE="true",e.FALSE="false"})(rn||(rn={})),o.registerAPI("setTitle",{mini:an,mobile:an,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.navigation.setTitle",e)}}),wi.version={android:"1.2.0",ios:"1.2.0",pc:"1.2.0"};function wi(e){return o.invoke("setTitle",e)}o.registerAPI("shareFileToMessage",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"shareFileToMessage",e)}}),bi.version={android:"1.8.2",ios:"1.8.2",pc:"1.8.2"};function bi(e){return o.invoke("shareFileToMessage",e)}o.registerAPI("shareImageToMessage",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"shareImageToMessage",e)}}),yi.version={android:"1.8.2",ios:"1.8.2",pc:"1.8.2"};function yi(e){return o.invoke("shareImageToMessage",e)}o.registerAPI("shareToMessage",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.util.share",e)}}),Si.version={android:"1.3.5",ios:"1.3.5",pc:"1.3.5"};function Si(e){return o.invoke("shareToMessage",e)}o.registerAPI("shootVideo",{mini:!0,mobile:!0}),Ti.version={android:"1.3.5",ios:"1.3.5"};function Ti(){return o.invoke("shootVideo")}o.registerAPI("showActionSheet",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"device.notification.actionSheet",e)}}),Ci.version={android:"1.3.2",ios:"1.3.2",pc:"1.3.2"};function Ci(e){return o.invoke("showActionSheet",e)}o.registerAPI("showCallMenu",{mini:!0,mobile:!0}),Ei.version={android:"1.3.9",ios:"1.3.9"};function Ei(e){return o.invoke("showCallMenu",e)}o.registerAPI("showDatePicker",{mobile:!0,mini:!0}),Ri.version={android:"1.3.0",ios:"1.3.0"};function Ri(e){return o.invoke("showDatePicker",e)}o.registerAPI("showDateTimePicker",{mini:!0,mobile:!0}),Oi.version={android:"1.3.10",ios:"1.3.10"};function Oi(e){return o.invoke("showDateTimePicker",e)}o.registerAPI("showExtendModal",{mini:!0,mobile:!0}),Di.version={android:"1.3.5",ios:"1.3.5"};function Di(e){return o.invoke("showExtendModal",e)}o.registerAPI("showHomeBottomTab",{mobile:!0}),Ni.version={android:"1.3.0",ios:"1.3.0"};function Ni(e){return o.invoke("showHomeBottomTab",e)}function sn(e,n){var t=n.resolve,r=n.reject,i=n.context,s=n.containerType,c=n.appType,a=n.platformType;if(s){var l=function(u){o.handleBridgeResponse(u,t,r)},d=function(u){o.handleBridgeResponse(u,t,r)};c===A.MINI_APP?i&&i({m:"device.notification.showPreloader",args:e,onSuccess:l,onFail:d}):a===g.ANDROID?i&&i(l,d,"device.notification","showPreloader",e):a===g.IOS&&i.callHandler("device.notification.showPreloader",Object.assign({},e),function(u){t(u)})}else i&&i.call("showLoading",e,function(){t()})}o.registerAPI("showLoading",{mini:sn,mobile:sn}),xi.version={android:"1.3.2",ios:"1.3.2"};function xi(e){return o.invoke("showLoading",e)}o.registerAPI("showModal",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.util.openModal",e)}}),Li.version={android:"1.3.5",ios:"1.3.5",pc:"1.3.5"};function Li(e){return o.invoke("showModal",e)}o.registerAPI("showMultiSelect",{mini:!0,mobile:!0}),Bi.version={android:"1.3.10",ios:"1.3.10"};function Bi(e){return o.invoke("showMultiSelect",e)}o.registerAPI("showOnMap",{mini:!0,mobile:!0}),Mi.version={android:"1.3.2",ios:"1.3.2"};function Mi(e){return o.invoke("showOnMap",e)}o.registerAPI("showOptionMenu",{mobile:function(e,n){var t=n.resolve,r=n.reject,i=n.context,s=n.platformType;n.containerType?s===g.ANDROID?i&&i(function(){t()},function(){r()},"taurus.common","showOptionMenu",e):s===g.IOS&&i.callHandler("taurus.common.showOptionMenu",Object.assign({},e),function(){t()}):i&&i.call("showOptionMenu",e,function(){t()})}}),_i.version={android:"1.1.0",ios:"1.1.0"};function _i(){return o.invoke("showOptionMenu")}o.registerAPI("showPlainInputUponKeyboard",{mobile:!0,mini:!0}),Fi.version={android:"1.3.0",ios:"1.3.0"};function Fi(e){return o.invoke("showPlainInputUponKeyboard",e)}o.registerAPI("showQuickCallMenu",{mini:!0,mobile:!0}),Wi.version={android:"1.6.2",ios:"1.6.2"};function Wi(e){return o.invoke("showQuickCallMenu",e)}o.registerAPI("showSelect",{mini:!0,mobile:!0}),Hi.version={android:"1.3.2",ios:"1.3.2"};function Hi(e){return o.invoke("showSelect",e)}o.registerAPI("showSignature",{mobile:!0}),ji.version={android:"1.3.4"};function ji(e){return o.invoke("showSignature",e)}o.registerAPI("showSocialShare",{mini:!0,mobile:!0}),Vi.version={android:"1.2.0.10",ios:"1.2.0.10"};function Vi(e){return o.invoke("showSocialShare",e)}o.registerAPI("showTimePicker",{mobile:!0,mini:!0}),zi.version={android:"1.3.0",ios:"1.3.0"};function zi(e){return o.invoke("showTimePicker",e)}function cn(e,n){var t=n.resolve,r=n.reject,i=n.containerType,s=n.platformType,c=n.appType,a=n.context,l=Object.assign(e,{hidden:!1});if(i){var d=function(){e.onSuccess&&e.onSuccess(),t()},u=function(){e.onFail&&e.onFail(),r()};c===A.MINI_APP?a&&a({m:"biz.navigation.hideBar",args:l,onSuccess:d,onFail:u}):s===g.ANDROID?a&&a(d,u,"biz.navigation","hideBar",l):s===g.IOS&&a.callHandler("biz.navigation.hideBar",Object.assign({},l),function(){t()})}else a&&a.call("showTitlebar",l,function(){t()})}o.registerAPI("showTitlebar",{mini:cn,mobile:cn}),Ui.version={android:"2.1.0",ios:"2.1.0"};function Ui(){return o.invoke("showTitlebar")}o.registerAPI("startFaceRecognition",{mini:!0,mobile:!0}),Gi.version={android:"1.8.2",ios:"1.8.2"};function Gi(e){return o.invoke("startFaceRecognition",e)}function ln(e,n){var t=n.resolve,r=n.reject,i=n.context,s=n.platformType,c=n.containerType,a=n.appType,l=o.registerEvent(G.UPDATE_LOCATION,function(p){var v=p.data;v.errorCode!==C.SUCCESS?e.onFail&&e.onFail(v):e.onSuccess&&e.onSuccess(v.result)});if(c){var d=function(p){o.registerContinuesEvent(e.sceneId,l),o.handleBridgeResponse(p,t,r)},u=function(p){o.registerContinuesEvent(e.sceneId,l),o.handleBridgeResponse(p,t,r)};a===A.MINI_APP?(console.log("taurus.common.startGeolocation",e),i&&i({m:"taurus.common.startGeolocation",args:e,onSuccess:d,onFail:u})):s===g.ANDROID?i&&i(d,u,"taurus.common","startGeolocation",e):s===g.IOS&&i.callHandler("taurus.common.startGeolocation",Object.assign({},e),function(p){o.registerContinuesEvent(e.sceneId,l),o.handleBridgeResponse(p,t,r)})}else i&&i.call("startGeolocation",e,function(p){o.registerContinuesEvent(e.sceneId,l),o.handleBridgeResponse(p,t,r)})}o.registerAPI("startGeolocation",{mobile:ln,mini:ln}),Ji.version={android:"1.3.2",ios:"1.3.2"};function Ji(e){return o.invoke("startGeolocation",e)}function un(e,n){var t=n.resolve,r=n.reject,i=n.context,s=n.containerType,c=n.appType,a=n.platformType,l=o.registerEvent(G.UPDATE_NETWORK_STATUS,function(p){var v=p.data;v.errorCode!==C.SUCCESS?e.onFail&&e.onFail(v):e.onSuccess&&e.onSuccess(v.result)});if(s){var d=function(p){o.registerContinuesEvent(p.result.requestId,l),o.handleBridgeResponse(p,t,r)},u=function(p){o.registerContinuesEvent(p.result.requestId,l),o.handleBridgeResponse(p,t,r)};c===A.MINI_APP?i&&i({m:"taurus.common.startListenNetworkStatus",args:e,onSuccess:d,onFail:u}):a===g.ANDROID?i&&i(d,u,"taurus.common","startListenNetworkStatus",e):a===g.IOS&&i.callHandler("taurus.common.startListenNetworkStatus",Object.assign({},e),function(p){o.registerContinuesEvent(p.result.requestId,l),o.handleBridgeResponse(p,t,r)})}else i&&i.call("startListenNetworkStatus",e,function(p){o.registerContinuesEvent(p.result.requestId,l),o.handleBridgeResponse(p,t,r)})}o.registerAPI("startListenNetworkStatus",{mobile:un,mini:un}),Ki.version={android:"1.3.1.1",ios:"1.3.1.1"};function Ki(e){return o.invoke("startListenNetworkStatus",e)}o.registerAPI("startRecordAudio",{mini:!0,mobile:!0}),$i.version={android:"1.3.0",ios:"1.3.0"};function $i(e){return o.invoke("startRecordAudio",e)}function er(e,n){var t=n.resolve,r=n.reject,i=n.context,s=n.containerType,c=n.platformType,a=n.appType,l=o.registerEvent(G.UPDATE_TRACE,function(p){var v=p.data;v.errorCode&&v.errorCode!==C.SUCCESS?e.onFail&&e.onFail(v):e.onSuccess&&e.onSuccess(v.result||v)});if(s){var d=function(p){o.registerContinuesEvent(e.traceId,l),o.handleBridgeResponse(p,t,r)},u=function(p){o.registerContinuesEvent(e.traceId,l),o.handleBridgeResponse(p,t,r)};a===A.MINI_APP?i&&i({m:"taurus.common.startTraceReport",args:e,onSuccess:d,onFail:u}):c===g.ANDROID?i&&i(d,u,"taurus.common","startTraceReport",e):c===g.IOS&&i.callHandler("taurus.common.startTraceReport",Object.assign({},e),function(p){o.registerContinuesEvent(e.traceId,l),o.handleBridgeResponse(p,t,r)})}else i&&i.call("startTraceReport",e,function(p){o.registerContinuesEvent(e.traceId,l),o.handleBridgeResponse(p,t,r)})}o.registerAPI("startTraceReport",{mobile:er,mini:!0}),Yi.version={android:"1.3.4",ios:"1.3.4"};function Yi(e){return o.invoke("startTraceReport",e)}o.registerAPI("startVPNApp",{mini:!0,mobile:!0}),Qi.version={android:"1.6.0",ios:"1.6.0"};function Qi(e){return o.invoke("startVPNApp",e)}function nr(e,n){var t=n.resolve,r=n.reject,i=n.context,s=n.containerType,c=n.platformType,a=o.registerEvent(G.ON_SHAKE,function(){e.onSuccess&&e.onSuccess()});s?c===g.ANDROID?i&&i(function(l){e.onSuccess&&e.onSuccess(),t()},function(l){r()},"taurus.common","startWatchShake",e):c===g.IOS&&i.callHandler("taurus.common.startWatchShake",Object.assign({},e),function(l){t()}):i&&i.call("startWatchShake",e,function(l){o.registerContinuesEvent("shake",a),o.handleBridgeResponse(l,t,r)})}o.registerAPI("startWatchShake",{mobile:nr}),qi.version={android:"1.6.2",ios:"1.6.2"};function qi(e){return o.invoke("startWatchShake",e)}o.registerAPI("stopAudio",{mini:!0,mobile:!0}),Xi.version={android:"1.3.0",ios:"1.3.0"};function Xi(e){return o.invoke("stopAudio",e)}function dn(e,n){var t=n.resolve,r=n.reject,i=n.containerType,s=n.platformType,c=n.appType,a=n.context;if(i){var l=function(u){o.removeContinuesEvent(e.sceneId),o.handleBridgeResponse(u,t,r)},d=function(u){o.removeContinuesEvent(e.sceneId),o.handleBridgeResponse(u,t,r)};c===A.MINI_APP?a&&a({m:"taurus.common.stopGeolocation",args:e,onSuccess:l,onFail:d}):s===g.ANDROID?a&&a(l,d,"taurus.common","stopGeolocation",e):s===g.IOS&&a.callHandler("taurus.common.stopGeolocation",Object.assign({},e),function(u){o.removeContinuesEvent(e.sceneId),o.handleBridgeResponse(u,t,r)})}else a&&a.call("stopGeolocation",e,function(u){o.removeContinuesEvent(e.sceneId),o.handleBridgeResponse(u,t,r)})}o.registerAPI("stopGeolocation",{mobile:dn,mini:dn}),Zi.version={android:"1.3.2",ios:"1.3.2"};function Zi(e){return o.invoke("stopGeolocation",e)}function pn(e,n){var t=n.resolve,r=n.reject,i=n.containerType,s=n.appType,c=n.platformType,a=n.context;if(i){var l=function(u){o.removeContinuesEvent(e.requestId),o.handleBridgeResponse(u,t,r)},d=function(u){o.removeContinuesEvent(e.requestId),o.handleBridgeResponse(u,t,r)};s===A.MINI_APP?a&&a({m:"taurus.common.stopListenNetworkStatus",args:e,onSuccess:l,onFail:d}):c===g.ANDROID?a&&a(l,d,"taurus.common","stopListenNetworkStatus",e):c===g.IOS&&a.callHandler("taurus.common.stopListenNetworkStatus",Object.assign({},e),function(u){o.removeContinuesEvent(e.requestId),o.handleBridgeResponse(u,t,r)})}else a&&a.call("stopListenNetworkStatus",e,function(u){o.removeContinuesEvent(e.requestId),o.handleBridgeResponse(u,t,r)})}o.registerAPI("stopListenNetworkStatus",{mini:pn,mobile:pn}),et.version={android:"1.3.1.1",ios:"1.3.1.1"};function et(e){return o.invoke("stopListenNetworkStatus",e)}o.registerAPI("stopPullToRefresh",{mobile:function(e,n){var t=n.resolve,r=n.reject,i=n.context,s=n.containerType,c=n.platformType;s?c===g.ANDROID?i&&i(function(){t()},function(){r()},"ui.pullToRefresh","stop",e):c===g.IOS&&i.callHandler("ui.pullToRefresh.stop",Object.assign({},e),function(){t()}):i&&i.call("restorePullToRefresh",e,function(){t()})}}),nt.version={android:"1.3.0",ios:"1.3.0"};function nt(){return o.invoke("stopPullToRefresh",{_apiName:"stopPullToRefresh"})}o.registerAPI("stopRecordAudio",{mini:!0,mobile:!0}),ot.version={android:"1.3.0",ios:"1.3.0"};function ot(e){return o.invoke("stopRecordAudio",e)}function or(e,n){var t=n.resolve,r=n.reject,i=n.containerType,s=n.platformType,c=n.context;i?s===g.ANDROID?c&&c(function(a){o.removeContinuesEvent(e.traceId),o.handleBridgeResponse(a,t,r)},function(a){o.removeContinuesEvent(e.traceId),o.handleBridgeResponse(a,t,r)},"taurus.common","stopTraceReport",e):s===g.IOS&&c.callHandler("taurus.common.stopTraceReport",Object.assign({},e),function(a){o.removeContinuesEvent(e.traceId),o.handleBridgeResponse(a,t,r)}):c&&c.call("stopTraceReport",e,function(a){o.removeContinuesEvent(e.traceId),o.handleBridgeResponse(a,t,r)})}o.registerAPI("stopTraceReport",{mobile:or}),it.version={android:"1.3.4",ios:"1.3.4"};function it(e){return o.invoke("stopTraceReport",e)}o.registerAPI("stopVPNApp",{mini:!0,mobile:!0}),tt.version={android:"1.6.0",ios:"1.6.0"};function tt(e){return o.invoke("stopVPNApp",e)}function ir(e,n){var t=n.resolve,r=n.reject,i=n.containerType,s=n.platformType,c=n.context;i?s===g.ANDROID?c&&c(function(a){e.onSuccess&&e.onSuccess(),t()},function(a){r()},"taurus.common","stopWatchShake",e):s===g.IOS&&c.callHandler("taurus.common.stopWatchShake",Object.assign({},e),function(a){t()}):c&&c.call("stopWatchShake",e,function(a){o.removeContinuesEvent("shake"),o.handleBridgeResponse(a,t,r)})}o.registerAPI("stopWatchShake",{mobile:ir}),rt.version={android:"1.6.2",ios:"1.6.2"};function rt(){return o.invoke("stopWatchShake")}o.registerAPI("subscribe",{mobile:function(e,n){var t=n.resolve,r=n.reject,i=n.context,s=n.containerType,c=n.platformType,a=!1;s?c===g.ANDROID?i&&i(function(l){a?(e.onSuccess||e.onFail)&&(l.errorCode!=="0"?e.onFail&&e.onFail(l):e.onSuccess&&e.onSuccess(l.result)):(a=!0,o.handleBridgeResponse(l,t,r))},function(l){a?e.onFail&&e.onFail(l):(a=!0,o.handleBridgeResponse(l,t,r))},"taurus.common","subscribe",e):c===g.IOS&&i.callHandler("taurus.common.subscribe",Object.assign({},e),function(l){a?(e.onSuccess||e.onFail)&&(l.errorCode!=="0"?e.onFail&&e.onFail(l):e.onSuccess&&e.onSuccess(l.result)):(a=!0,o.handleBridgeResponse(l,t,r))}):i&&i.call("subscribe",e,function(l){a?(e.onSuccess||e.onFail)&&(l.errorCode!=="0"?e.onFail&&e.onFail(l):e.onSuccess&&e.onSuccess(l.result)):(a=!0,o.handleBridgeResponse(l,t,r))})}}),at.version={android:"1.6.0",ios:"1.6.0"};function at(e){return o.invoke("subscribe",e)}o.registerAPI("takePhoto",{mini:!0,mobile:!0}),st.version={android:"1.3.5",ios:"1.3.5"};function st(){return o.invoke("takePhoto")}o.registerAPI("testProxy",{pc:function(e,n){e===void 0&&(e={}),window.dingtalk.platform.invokeAPI(n.msgId,"net.util.testProxy",e)}}),ct.version={pc:"2.10.0"};function ct(){return o.invoke("testProxy",{})}function fn(e,n){var t=n.resolve,r=n.reject,i=n.context,s=n.containerType,c=n.platformType,a=n.appType,l={type:e.icon==="error"?"fail":e.icon==="success"?"success":"none",content:e.text,duration:1e3*e.duration,taurusToastStyle:e.taurusToastStyle};if(s){var d=function(){o.handleBridgeResponse({errorCode:C.SUCCESS,result:{}},t,r)},u=function(p){o.handleBridgeResponse(p,t,r)};a===A.MINI_APP?i&&i({m:"taurus.common.toast",args:l,onSuccess:d,onFail:u}):c===g.ANDROID?i&&i(d,u,"taurus.common","toast",l):c===g.IOS&&i.callHandler("taurus.common.toast",Object.assign({},l),function(){o.handleBridgeResponse({errorCode:C.SUCCESS,result:{}},t,r)})}else i&&i.call("toast",l,function(){o.handleBridgeResponse({errorCode:C.SUCCESS,result:{}},t,r)})}o.registerAPI("toast",{mobile:fn,mini:fn,pc:function(e,n){var t=e.icon,r=e.text,i=e.duration,s=e.delay;window.dingtalk.platform.invokeAPI(n.msgId,"device.notification.toast",{type:t,text:r,duration:i,delay:s})}}),lt.version={android:"1.3.2",ios:"1.3.2"};function lt(e){return o.invoke("toast",e)}o.registerAPI("unlockWithSecurityVerification",{mini:!0,mobile:!0}),ut.version={android:"1.3.1.1",ios:"1.3.1.1"};function ut(){return o.invoke("unlockWithSecurityVerification")}o.registerAPI("unsubscribe",{mobile:!0}),dt.version={android:"1.6.0",ios:"1.6.0"};function dt(e){return o.invoke("unsubscribe",e)}o.registerAPI("dgUploadFile",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.util.dgUploadFile",e)}}),pt.version={android:"1.3.2",ios:"1.3.2",pc:"1.3.6"};function pt(e){return o.invoke("dgUploadFile",T({},e,{_apiName:"uploadFile"}))}o.registerAPI("uploadFileByType",{mini:!0,mobile:!0}),ft.version={android:"1.3.0",ios:"1.3.0"};function ft(e){return o.invoke("uploadFileByType",e)}o.registerAPI("uploadFile",{mini:!0}),gt.version={android:"1.6.2",ios:"1.6.2"};function gt(e){return new Promise(function(n,t){my.uploadFile(T({},e,{success:function(r){n(r)},fail:function(r){t(r)}}))})}o.registerAPI("uploadRemoteFileToDisk",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.util.uploadRemoteFileToDisk",e)}}),mt.version={android:"1.6.0",ios:"1.6.0",pc:"2.6.0"};function mt(e){return o.invoke("uploadRemoteFileToDisk",e)}o.registerAPI("ut",{pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.util.ut",e)}}),vt.version={pc:"1.3.10"};function vt(e){return o.invoke("ut",e)}o.registerAPI("vibrate",{mini:!0,mobile:!0}),ht.version={android:"1.3.1",ios:"1.3.1"};function ht(e){return o.invoke("vibrate",e)}var U={alert:vn,authConfig:hn,bizContactDepartmentsPickerExternal:In,bizCustomContactChooseExternal:kn,bizCustomContactMultipleChooseExternal:An,callPhone:Pn,canIUse:Rt,checkVPNAppInstalled:yn,checkVPNAppOnline:Sn,chooseContact:Tn,chooseContactWithComplexPicker:Cn,chooseDateRangeWithCalendar:En,chooseDayWithCalendar:Rn,chooseDepartments:On,chooseFile:Dn,chooseHalfDayWithCalendar:Nn,chooseImage:xn,chooseInterconnectionChat:Ln,chooseLocalImage:Bn,chooseSpaceDir:Mn,chooseTimeWithCalendar:_n,chooseVideo:Fn,closePage:Wn,complexPickerAdmin:Hn,confirm:jn,copyToClipboard:Vn,createChatGroup:zn,createDing:Un,createDingV2:Gn,createVideoConf:Jn,createVideoMeeting:Kn,dealWithBackAction:$n,disableClosePage:Yn,disablePullToRefresh:Qn,disableWebviewBounce:qn,downloadAudio:Xn,downloadFile:Zn,enablePullToRefresh:eo,enableVpn:no,enableWebviewBounce:oo,exclusiveInvoke:io,faceComparison:to,faceRecognition:ro,getAppInstallStatus:ao,getAuthCode:so,getConfig:co,getContainerType:Ie,getDeviceId:lo,getFromClipboard:uo,getGeolocation:po,getGeolocationStatus:fo,getHotspotInfo:go,getLanguageSetting:mo,getLoginUser:vo,getNetworkType:ho,getPhoneInfo:Io,getProxyInfo:ko,getStorageItem:Ao,getTraceStatus:Po,getUUID:wo,getUserAgent:bo,getWaterMark:So,getWaterMarkConfigV2:ke,getWaterMarkV2:Kt,getWifiStatus:To,getWorkbenchContext:Co,goBack:Eo,hideLoading:Ro,hideOptionMenu:Oo,hideTitleBar:Do,isDownloadFileExist:No,joinScheduleConf:xo,joinVideoConf:Lo,joinVideoMeeting:Bo,locateOnMap:Mo,on:Yt,onAudioPlayEnd:_o,onRecordAudioEnd:Fo,openApiInvoker:Wo,openApp:Ho,openBrowser:jo,openChat:Vo,openDownloadFile:zo,openLink:Uo,openPage:Go,openSchemeUrl:Jo,openSlidePanel:Ko,openWatermarkCamera:$o,pauseAudio:Yo,pickChat:Qo,pickChatByCorpId:Qt,pickGroupChat:qo,pickGroupConversation:Xo,playAudio:Zo,previewDoc:ei,previewImage:ni,printFile:oi,printNativeLog:ii,prompt:ti,pushWindow:ri,readImageToBase64:ai,ready:qt,reduceImageSize:si,removeStorageItem:ci,replacePage:li,resetView:ui,resumeAudio:di,rotateView:pi,scan:fi,searchOnMap:gi,sendOutData:mi,setLocalScreenShotPolicy:vi,setNavIcon:hi,setNavLeftText:Ii,setOptionMenu:ki,setProxyInfo:Ai,setStorageItem:Pi,setTitle:wi,shareFileToMessage:bi,shareImageToMessage:yi,shareToMessage:Si,shootVideo:Ti,showActionSheet:Ci,showCallMenu:Ei,showDatePicker:Ri,showDateTimePicker:Oi,showExtendModal:Di,showHomeBottomTab:Ni,showLoading:xi,showModal:Li,showMultiSelect:Bi,showOnMap:Mi,showOptionMenu:_i,showPlainInputUponKeyboard:Fi,showQuickCallMenu:Wi,showSelect:Hi,showSignature:ji,showSocialShare:Vi,showTimePicker:zi,showTitleBar:Ui,startFaceRecognition:Gi,startGeolocation:Ji,startListenNetworkStatus:Ki,startRecordAudio:$i,startTraceReport:Yi,startVPNApp:Qi,startWatchShake:qi,stopAudio:Xi,stopGeolocation:Zi,stopListenNetworkStatus:et,stopPullToRefresh:nt,stopRecordAudio:ot,stopTraceReport:it,stopVPNApp:tt,stopWatchShake:rt,subscribe:at,takePhoto:st,testProxy:ct,toast:lt,unlockWithSecurityVerification:ut,unsubscribe:dt,uploadFile:pt,uploadFileByType:ft,uploadLocalFile:gt,uploadRemoteFileToDisk:mt,ut:vt,version:ne,vibrate:ht};if(o.getAppType()===A.MINI_APP)U=new Proxy(U,{get:function(e,n,t){return n in U?Reflect.get(e,n,t):wt(Reflect.get(my,n,t),n)}});else{window.dd&&console.warn("已经存在 window.dd 变量,引入 gdt-jsapi 会修改 window.dd 的值。");try{Object.defineProperty(window,"dd",{value:U,writable:!0})}catch(e){console.error(e)}window.gdt&&console.warn("已经存在 window.gdt 变量,引入 gdt-jsapi 会修改 window.gdt 的值。");try{Object.defineProperty(window,"gdt",{value:U,writable:!0})}catch(e){console.error(e)}}const gn=U;export{sr as a,gn as d,rr as g,ar as l};