No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

2 líneas
84KB

  1. import{d as pi,l as fi,c as gi,a5 as mi,a6 as vi,M as hi,o as Ii,G as ki}from"./index.db1e0641.js";function E(){return E=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},E.apply(this,arguments)}function Ae(e,n,i,r,o,s,c){try{var a=e[s](c),l=a.value}catch(d){i(d);return}a.done?n(l):Promise.resolve(l).then(r,o)}function K(e){return function(){var n=this,i=arguments;return new Promise(function(r,o){var s=e.apply(n,i);function c(l){Ae(s,r,o,c,a,"next",l)}function a(l){Ae(s,r,o,c,a,"throw",l)}c(void 0)})}}var ln={exports:{}},un={exports:{}};(function(e){function n(i){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(i)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(un);(function(e){var n=un.exports.default;function i(){e.exports=i=function(){return o},e.exports.__esModule=!0,e.exports.default=e.exports;var r,o={},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,w){return m[I]=w}}function P(h,f,m,I){var w=f&&f.prototype instanceof oe?f:oe,k=Object.create(w.prototype),y=new se(I||[]);return a(k,"_invoke",{value:ui(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}}}o.wrap=P;var D="suspendedStart",J="suspendedYield",O="executing",B="completed",N={};function oe(){}function Y(){}function M(){}var ie={};v(ie,d,function(){return this});var re=Object.getPrototypeOf,$=re&&re(re(ce([])));$&&$!==s&&c.call($,d)&&(ie=$);var G=M.prototype=oe.prototype=Object.create(ie);function Ie(h){["next","throw","return"].forEach(function(f){v(h,f,function(m){return this._invoke(f,m)})})}function Q(h,f){function m(w,k,y,C){var R=b(h[w],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,C)},function(W){m("throw",W,y,C)}):f.resolve(L).then(function(W){F.value=W,y(F)},function(W){return m("throw",W,y,C)})}C(R.arg)}var I;a(this,"_invoke",{value:function(k,y){function C(){return new f(function(R,F){m(k,y,R,F)})}return I=I?I.then(C,C):C()}})}function ui(h,f,m){var I=D;return function(w,k){if(I===O)throw new Error("Generator is already running");if(I===B){if(w==="throw")throw k;return{value:r,done:!0}}for(m.method=w,m.arg=k;;){var y=m.delegate;if(y){var C=ke(y,m);if(C){if(C===N)continue;return C}}if(m.method==="next")m.sent=m._sent=m.arg;else if(m.method==="throw"){if(I===D)throw I=B,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?B:J,R.arg===N)continue;return{value:R.arg,done:m.done}}R.type==="throw"&&(I=B,m.method="throw",m.arg=R.arg)}}}function ke(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,ke(h,f),f.method==="throw")||m!=="return"&&(f.method="throw",f.arg=new TypeError("The iterator does not provide a '"+m+"' method")),N;var w=b(I,h.iterator,f.arg);if(w.type==="throw")return f.method="throw",f.arg=w.arg,f.delegate=null,N;var k=w.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 di(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(di,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 w(){for(;++m<h.length;)if(c.call(h,m))return w.value=h[m],w.done=!1,w;return w.value=r,w.done=!0,w};return I.next=I}}throw new TypeError(n(h)+" is not iterable")}return Y.prototype=M,a(G,"constructor",{value:M,configurable:!0}),a(M,"constructor",{value:Y,configurable:!0}),Y.displayName=v(M,p,"GeneratorFunction"),o.isGeneratorFunction=function(h){var f=typeof h=="function"&&h.constructor;return!!f&&(f===Y||(f.displayName||f.name)==="GeneratorFunction")},o.mark=function(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,M):(h.__proto__=M,v(h,p,"GeneratorFunction")),h.prototype=Object.create(G),h},o.awrap=function(h){return{__await:h}},Ie(Q.prototype),v(Q.prototype,u,function(){return this}),o.AsyncIterator=Q,o.async=function(h,f,m,I,w){w===void 0&&(w=Promise);var k=new Q(P(h,f,m,I),w);return o.isGeneratorFunction(f)?k:k.next().then(function(y){return y.done?y.value:k.next()})},Ie(G),v(G,p,"Generator"),v(G,d,function(){return this}),v(G,"toString",function(){return"[object Generator]"}),o.keys=function(h){var f=Object(h),m=[];for(var I in f)m.push(I);return m.reverse(),function w(){for(;m.length;){var k=m.pop();if(k in f)return w.value=k,w.done=!1,w}return w.done=!0,w}},o.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 w=this.tryEntries.length-1;w>=0;--w){var k=this.tryEntries[w],y=k.completion;if(k.tryLoc==="root")return I("end");if(k.tryLoc<=this.prev){var C=c.call(k,"catchLoc"),R=c.call(k,"finallyLoc");if(C&&R){if(this.prev<k.catchLoc)return I(k.catchLoc,!0);if(this.prev<k.finallyLoc)return I(k.finallyLoc)}else if(C){if(this.prev<k.catchLoc)return I(k.catchLoc,!0)}else{if(!R)throw new 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 w=this.tryEntries[I];if(w.tryLoc<=this.prev&&c.call(w,"finallyLoc")&&this.prev<w.finallyLoc){var k=w;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 w=I.completion;if(w.type==="throw"){var k=w.arg;ae(I)}return k}}throw new 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}},o}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports})(ln);var X=ln.exports(),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 ge(){return!Z(typeof my)&&my!==null&&!Z(typeof my.alert)}var T;(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"})(T||(T={}));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 V;(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"})(V||(V={}));var S;(function(e){e.isDingTalk="DingTalk",e.isMpaas="mPaaS",e.isUnknow="unknow"})(S||(S={}));var H=navigator&&(navigator.swuserAgent||navigator.userAgent)||"",dn=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("\u8BF7\u5C06 gdt-jsapi \u7248\u672C\u8BF7\u5347\u7EA7\u5230 1.9.24 \u7248\u672C\u4EE5\u4E0A\u7684\u6700\u65B0\u7248\u672C\uFF0C\u8C22\u8C22")}var n=e.prototype;return n.h5AndroidbridgeInit=function(){var i=this;this.h5BridgeReadyPromise=new Promise(function(r,o){var s=function(){try{window.WebViewJavascriptBridgeAndroid=window.nuva&&window.nuva.require(),i.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:T.INVALID_PARAMS,errorMessage:"unknown nuvajs bootstrap error"};i.handleBridgeResponse(a,r,o)},!1))})},n.h5IosBridgeInit=function(){var i=this;this.h5BridgeReadyPromise=new Promise(function(r,o){if(typeof WebViewJavascriptBridge<"u")try{WebViewJavascriptBridge.init(function(s,c){}),i.execReadyFn()}catch(s){}else document.addEventListener("WebViewJavascriptBridgeReady",function(){try{WebViewJavascriptBridge&&WebViewJavascriptBridge.init(function(s,c){}),i.execReadyFn()}catch(s){}},!1)})},n.init=function(){var i=this,r=this.getAppType(),o=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(i.continuousCallbackStack[c])i.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 i.continuousCallbackStack[a.msgId||a.taskId]=="function"&&i.continuousCallbackStack[a.msgId||a.taskId](c,a):i.generalEventCallbackStack[c]&&i.generalEventCallbackStack[c].forEach(function(d){d.call(i,a)})}})),r===A.MOBILE){if(o===S.isDingTalk)this.platformType===g.ANDROID?!this.h5BridgeReadyPromise&&this.h5AndroidbridgeInit():this.platformType===g.IOS&&!this.h5BridgeReadyPromise&&this.h5IosBridgeInit();else if(o===S.isMpaas&&r===A.MOBILE)if(window.AlipayJSBridge)this.execReadyFn();else{var s=setTimeout(function(){console.warn("window.AlipayJSBridge \u672A\u521D\u59CB\u5316\u5B8C\u6BD5\uFF0C\u8D70\u5230\u515C\u5E95\u903B\u8F91",i.isReady,window.AlipayJSBridge),i.isReady||i.execReadyFn.call(i)},5200);document.addEventListener("AlipayJSBridgeReady",function(){i.isReady||(clearTimeout(s),i.execReadyFn.call(i))},!1)}}else setTimeout(function(){i.execReadyFn()})},n.execReadyFn=function(){this.isReady=!0;for(var i=this.readyFnStack.shift();i;)i&&i(this),i=this.readyFnStack.shift()},n.onReady=function(i){this.isReady?i&&i(this):this.readyFnStack.push(i)},n.setCurrentInvoker=function(i){this.currentInvoker=i},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:ge()?this.appType=A.MINI_APP:(console.warn("\u68C0\u6D4B\u5230\u9875\u9762\u5728\u975E\u4E13\u6709\u9489\u9489\u5BA2\u6237\u7AEF\u4E2D\u6253\u5F00\uFF0CJSAPI \u8C03\u7528\u53EF\u80FD\u4E0D\u4F1A\u751F\u6548\uFF01"),this.appType=A.UNKNOWN)),this.appType},n.isMobile=function(){var i=/iPhone|iPad|iPod|iOS/i.test(H),r=/Android/i.test(H),o=window&&window.navigator&&window.navigator.userAgent||"";return this.isH5Mobile!==null?this.isH5Mobile:o&&o.indexOf("dingtalk-win")>=0?(this.isH5Mobile=!1,!1):!(!o||!(o.includes("mPaaSClient")||o.includes("Nebula")||o.includes("DingTalk")))&&(this.isH5Mobile=!0,this.platformType=i?g.IOS:r?g.ANDROID:g.UNKNOW,!0)},n.registerEvent=function(i,r){var o=this;if(typeof r=="function")return this.getAppType()===A.PC?(this.generalEventCallbackStack[i]||(this.generalEventCallbackStack[i]=[]),this.generalEventCallbackStack[i].push(r),function(){var s=o.generalEventCallbackStack[i].findIndex(function(c){return c===r});o.generalEventCallbackStack[i].splice(s,1)}):this.getAppType()===A.MOBILE?(document.addEventListener(i,r,!1),function(){document.removeEventListener(i,r)}):void 0;console.error("callback \u53C2\u6570\u5E94\u8BE5\u4E3A\u51FD\u6570")},n.registerClientAPI=function(i,r){this.apiList[i]=r},n.registerAPI=function(i,r){if(this.isMobile(),typeof r=="object"){var o=r,s=this.getAppType();this.registerClientAPI(i,o[s])}else this.registerClientAPI(i,r)},n.invokeMiniApp=function(){var i=K(x.mark(function r(o,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=E({_apiName:o},s);var u=c.apiList[o],p=c.getContainerType();if(!u)return console.warn("API: "+o+"\uFF0C\u672A\u6CE8\u518C"),d("API: "+o+"\uFF0C\u672A\u6CE8\u518C");if(p===S.isMpaas){if(typeof u=="function")return void u.call(null,s,{context:my,resolve:l,reject:d,methodName:o});my.call(o,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:o,containerType:p,appType:A.MINI_APP});dd.dtBridge({m:"taurus.common."+o,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,o){return i.apply(this,arguments)}}(),n.invokeMobile=function(){var i=K(x.mark(function r(o,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=E({_apiName:o},s);var p=a.apiList[o],v=a.getContainerType();if(!p)return console.warn("API: "+o+"\uFF0C\u672A\u6CE8\u518C"),u("API: "+o+"\uFF0C\u672A\u6CE8\u518C");if(v===S.isDingTalk){if(a.platformType===g.IOS){var P=Object.assign({},s);if(P.watch===!0&&typeof WebViewJavascriptBridge<"u"&&WebViewJavascriptBridge.registerHandler(c!=null&&c.dingTalkAPIName?c==null?void 0:c.dingTalkAPIName:"taurus.common."+o,function(O,B){typeof s.onSuccess=="function"&&s.onSuccess.call(null,O),B&&B({errorCode:"0",errorMessage:"success"})}),typeof p=="function")return void p.call(null,s,{context:window.WebViewJavascriptBridge,resolve:d,reject:u,methodName:o,containerType:v,appType:A.MOBILE,platformType:g.IOS,watch:P.watch});window.WebViewJavascriptBridge!==void 0&&window.WebViewJavascriptBridge.callHandler("taurus.common."+o,Object.assign({},P),function(O){!P.watch&&a.handleBridgeResponse(O||{},d,u)})}else if(a.platformType===g.ANDROID){var b=o.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:o,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:o});AlipayJSBridge.call(o,s,function(O){a.handleBridgeResponse(O,d,u)})}}));case 2:case"end":return l.stop()}},r)}));return function(r,o,s){return i.apply(this,arguments)}}(),n.findFitMsgId=function(i){var r,o;return(r=window.dingtalk)!==null&&r!==void 0&&(o=r.callbackStack)!==null&&o!==void 0&&o[i]?this.findFitMsgId(i+1):i},n.invokePC=function(){var i=K(x.mark(function r(o,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=E({_apiName:o},s);var p=a.findFitMsgId(Date.now()),v=c.pcClientAPIName||o;if(c.msgId=p,!window.dingtalk)return Promise.reject(new Error("\u8BF7\u5728\u9489\u9489\u5BB9\u5668\u5185\u4F7F\u7528 JSAPI"));a.apiList[o]?a.apiList[o].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(P){var b=P;return b.body?d(b.body):d(b)}}catch(P){u(P)}}));case 3:case"end":return l.stop()}},r)}));return function(r,o,s){return i.apply(this,arguments)}}(),n.handleBridgeResponse=function(i,r,o){i&&i.errorCode?i.errorCode===T.SUCCESS?r(i.result):(console.warn("API \u8C03\u7528\u5931\u8D25",i),o(i)):i&&i.success==="false"?o(i):r(i)},n.invoke=function(){var i=K(x.mark(function r(o,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("\u9519\u8BEF\uFF1A\u8BF7\u5728 dd.ready() \u56DE\u8C03\u4E2D\u4F7F\u7528 JSAPI\uFF0C\u5F53\u524D\u8C03\u7528\u51FD\u6570\uFF1A"+o));case 5:return l.abrupt("return",this.invokeMobile(o,s,c));case 8:if(a!==A.PC){l.next=12;break}return l.abrupt("return",this.invokePC(o,s,c));case 12:if(a!==A.MINI_APP){l.next=16;break}return l.abrupt("return",this.invokeMiniApp(o,s));case 16:return l.abrupt("return",Promise.reject("\u9519\u8BEF\uFF1A\u672A\u5728\u9489\u9489\u8FD0\u884C\u73AF\u5883\u4E0B\u8C03\u7528\u8BE5 API\uFF0C\u65E0\u6548\uFF0C\u8BF7\u68C0\u67E5\u8FD0\u884C\u73AF\u5883"));case 17:case"end":return l.stop()}},r,this)}));return function(r,o,s){return i.apply(this,arguments)}}(),n.existEventListener=function(i){return!!this.continuousCallbackStack[i]},n.registerContinuesEvent=function(i,r){this.continuousCallbackStack[i]=r},n.removeContinuesEvent=function(i){this.existEventListener(i)&&(this.continuousCallbackStack[i](),delete this.continuousCallbackStack[i])},e}();ge()||(window._invoker=window._invoker||new dn);const t=ge()?new dn:window._invoker;function Ai(e,n){if(e)return function(i){return typeof i=="function"||n.includes("Sync")||n.startsWith("create")?e(i):new Promise(function(r,o){e(E({},i,{success:function(s){r(s)},fail:function(s){o(s)}}))})}}function we(e,n){var i=n.resolve,r=n.reject,o=n.context,s=n.containerType,c=n.appType,a=n.platformType;if(s){var l=function(u){t.handleBridgeResponse(u,i,r)},d=function(u){t.handleBridgeResponse(u,i,r)};c===A.MINI_APP?o&&o({m:"taurus.common.alert",args:e,onSuccess:l,onFail:d}):a===g.ANDROID?o&&o(l,d,"taurus.common","alert",e):a===g.IOS&&o.callHandler("taurus.common.alert",Object.assign({},e),function(u){i(u)})}else o&&o.call("alert",e,function(){i()})}t.registerAPI("alert",{mini:we,mobile:we}),pn.version={android:"1.3.2",ios:"1.3.2"};function pn(e){return t.invoke("alert",e)}t.registerAPI("authConfig",{mini:!0,mobile:!0}),fn.version={android:"1.2.0",ios:"1.2.0",pc:"1.2.0"};function fn(e){return t.invoke("authConfig",e)}function Pe(e,n){var i=n.resolve,r=n.reject,o=n.context,s=n.containerType,c=n.appType,a=n.platformType;if(s){var l=function(u){t.handleBridgeResponse(u,i,r)},d=function(u){t.handleBridgeResponse(u,i,r)};c===A.MINI_APP?o&&o({m:"taurus.common.bizContactDepartmentsPickerExternal",args:e,onSuccess:l,onFail:d}):a===g.ANDROID?o&&o(l,d,"taurus.common","bizContactDepartmentsPickerExternal",e):a===g.IOS&&o.callHandler("taurus.common.bizContactDepartmentsPickerExternal",Object.assign({},e),function(u){t.handleBridgeResponse(u,i,r)})}else o&&o.call("bizContactDepartmentsPickerExternal",e,function(u){t.handleBridgeResponse(u,i,r)})}t.registerAPI("bizContactDepartmentsPickerExternal",{mini:Pe,mobile:Pe,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.contact.departmentsPickerEx",e)}}),gn.version={android:"3.0.3",ios:"3.0.3",pc:"3.0.3"};function gn(e){return t.invoke("bizContactDepartmentsPickerExternal",e)}function be(e,n){var i=n.resolve,r=n.reject,o=n.context,s=n.containerType,c=n.appType,a=n.platformType;if(s){var l=function(u){t.handleBridgeResponse(u,i,r)},d=function(u){t.handleBridgeResponse(u,i,r)};c===A.MINI_APP?o&&o({m:"taurus.common.bizCustomContactChooseExternal",args:e,onSuccess:l,onFail:d}):a===g.ANDROID?o&&o(l,d,"taurus.common","bizCustomContactChooseExternal",e):a===g.IOS&&o.callHandler("taurus.common.bizCustomContactChooseExternal",Object.assign({},e),function(u){t.handleBridgeResponse(u,i,r)})}else o&&o.call("bizCustomContactChooseExternal",e,function(u){t.handleBridgeResponse(u,i,r)})}t.registerAPI("bizCustomContactChooseExternal",{mini:be,mobile:be,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.customContact.chooseEx",e)}}),mn.version={android:"3.0.3",ios:"3.0.3",pc:"3.0.3"};function mn(e){return t.invoke("bizCustomContactChooseExternal",e)}function ye(e,n){var i=n.resolve,r=n.reject,o=n.context,s=n.containerType,c=n.appType,a=n.platformType;if(s){var l=function(u){t.handleBridgeResponse(u,i,r)},d=function(u){t.handleBridgeResponse(u,i,r)};c===A.MINI_APP?o&&o({m:"taurus.common.bizCustomContactMultipleChooseExternal",args:e,onSuccess:l,onFail:d}):a===g.ANDROID?o&&o(l,d,"taurus.common","bizCustomContactMultipleChooseExternal",e):a===g.IOS&&o.callHandler("taurus.common.bizCustomContactMultipleChooseExternal",Object.assign({},e),function(u){t.handleBridgeResponse(u,i,r)})}else o&&o.call("bizCustomContactMultipleChooseExternal",e,function(u){t.handleBridgeResponse(u,i,r)})}t.registerAPI("bizCustomContactMultipleChooseExternal",{mini:ye,mobile:ye,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.customContact.multipleChooseEx",e)}}),vn.version={android:"3.0.3",ios:"3.0.3",pc:"3.0.3"};function vn(e){return t.invoke("bizCustomContactMultipleChooseExternal",e)}t.registerAPI("callPhone",{mini:!0,mobile:!0}),hn.version={android:"1.1.0",ios:"1.1.0"};function hn(e){return t.invoke("callPhone",e)}t.registerAPI("version",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"version",{})}});function ne(){return t.invoke("version")}var wi=1,Pi=-1,In=0;function bi(e,n){return typeof e!="number"&&(e=0),typeof n!="number"&&(n=0),e>n?wi:e<n?Pi:In}function me(e,n){e===void 0&&(e=""),n===void 0&&(n="");var i=/^\d+(\.\d+){2,3}$/;if(!i.test(e)||!i.test(n))throw new Error("\u8BF7\u4F20\u5165\u6B63\u786E\u7684\u7248\u672C\u53F7\u683C\u5F0F");for(var r=(""+e).split(".").map(function(l){return parseInt(l,10)}),o=(""+n).split(".").map(function(l){return parseInt(l,10)}),s=Math.max(r.length,o.length),c=0,a=0;a<s&&(c=bi(r[a],o[a]))===In;a++);return c}var ue=navigator&&navigator.userAgent||"",yi=function(){return ue.indexOf("Android")>-1||ue.indexOf("Adr")>-1},Si=function(){return!!ue.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)},Ti=function(){return/(windows)/i.test(navigator.userAgent)};function Ci(e){return kn.apply(this,arguments)}function kn(){return(kn=K(x.mark(function e(n){var i,r,o,s;return x.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:if(fe[n]){c.next=2;break}return c.abrupt("return",!1);case 2:return c.next=4,ne();case 4:return i=c.sent,r=i.version,o=fe[n].version,s=yi()?"android":Si()?"ios":Ti()?"pc":"unknown",c.abrupt("return",!(!o||!o[s])&&me(r,o[s])>0);case 9:case"end":return c.stop()}},e)}))).apply(this,arguments)}t.registerAPI("checkVPNAppInstalled",{mini:!0,mobile:!0}),An.version={android:"1.6.0",ios:"1.6.0"};function An(){return t.invoke("checkVPNAppInstalled")}t.registerAPI("checkVPNAppOnline",{mini:!0,mobile:!0}),wn.version={android:"1.6.0",ios:"1.6.0"};function wn(){return t.invoke("checkVPNAppOnline")}var Se;(function(e){e[e.DEFAULT=1]="DEFAULT",e[e.NEW=2]="NEW"})(Se||(Se={}));var Te;(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"})(Te||(Te={}));var Ce;(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"})(Ce||(Ce={})),t.registerAPI("chooseContact",{pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.contact.choose",e)}}),Pn.version={pc:"1.1.0"};function Pn(e){return t.invoke("chooseContact",e)}function Ee(e,n){var i=n.resolve,r=n.reject,o=n.context,s=n.containerType,c=n.appType,a=n.platformType;if(s){var l=function(u){t.handleBridgeResponse(u,i,r)},d=function(u){t.handleBridgeResponse(u,i,r)};c===A.MINI_APP?o&&o({m:"taurus.common.chooseContactWithComplexPicker",args:e,onSuccess:l,onFail:d}):a===g.ANDROID?o&&o(l,d,"taurus.common","chooseContactWithComplexPicker",e):a===g.IOS&&o.callHandler("taurus.common.chooseContactWithComplexPicker",Object.assign({},e),function(u){t.handleBridgeResponse(u,i,r)})}else o&&o.call("chooseContactWithComplexPicker",e,function(u){u.error&&u.error.toString()===T.API_UNDEFINED?o.call("complexPicker",e,function(p){t.handleBridgeResponse(p,i,r)}):t.handleBridgeResponse(u,i,r)})}t.registerAPI("chooseContactWithComplexPicker",{mini:Ee,mobile:Ee,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.contact.complexPicker",e)}}),bn.version={android:"1.1.0",ios:"1.1.0",pc:"1.6.2"};function bn(e){return t.invoke("chooseContactWithComplexPicker",e)}t.registerAPI("chooseDateRangeWithCalendar",{mini:!0,mobile:!0}),yn.version={android:"1.3.10",ios:"1.3.10"};function yn(e){return t.invoke("chooseDateRangeWithCalendar",e)}t.registerAPI("chooseDayWithCalendar",{mini:!0,mobile:!0}),Sn.version={android:"1.3.10",ios:"1.3.10"};function Sn(e){return t.invoke("chooseDayWithCalendar",e)}t.registerAPI("chooseDepartments",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.contact.departmentsPicker",e)}}),Tn.version={android:"1.1.0",ios:"1.1.0",pc:"1.6.2"};function Tn(e){return t.invoke("chooseDepartments",e)}t.registerAPI("chooseFile",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.util.chooseFile",e)}}),Cn.version={android:"1.3.2",ios:"1.3.2",pc:"1.3.6"};function Cn(e){return t.invoke("chooseFile",e)}t.registerAPI("chooseHalfDayWithCalendar",{mini:!0,mobile:!0}),En.version={android:"1.3.10",ios:"1.3.10"};function En(e){return t.invoke("chooseHalfDayWithCalendar",e)}var Re;(function(e){e[e.image=0]="image",e[e.video=1]="video"})(Re||(Re={})),t.registerAPI("dgChooseImage",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.util.dgChooseImage",e)}}),Rn.version={android:"1.3.2",ios:"1.3.2",pc:"1.3.6"};function Rn(e){return t.invoke("dgChooseImage",E({},e,{_apiName:"chooseImage"}))}t.registerAPI("chooseInterconnectionChat",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"chooseInterconnectionChat",e)}}),On.version={pc:"2.9.0",ios:"2.9.0",android:"2.9.0"};function On(e){return t.invoke("chooseInterconnectionChat",e)}t.registerAPI("chooseImage",{mini:!0}),Dn.version={android:"1.6.2",ios:"1.6.2"};function Dn(e){return new Promise(function(n,i){my.chooseImage(E({},e,{success:function(r){n(r)},fail:function(r){i(r)}}))})}t.registerAPI("chooseSpaceDir",{mini:!0,mobile:!0,pc:function(e,n){e===void 0&&(e={}),window.dingtalk.platform.invokeAPI(n.msgId,"biz.util.chooseSpaceDir",e)}}),Nn.version={android:"1.6.0",ios:"1.6.0",pc:"2.6.0"};function Nn(){return t.invoke("chooseSpaceDir")}t.registerAPI("chooseTimeWithCalendar",{mini:!0,mobile:!0}),xn.version={android:"1.3.10",ios:"1.3.10"};function xn(e){return t.invoke("chooseTimeWithCalendar",e)}t.registerAPI("chooseVideo",{mini:!0,mobile:!0}),Ln.version={android:"1.6.2",ios:"1.6.2"};function Ln(e){return t.invoke("chooseVideo",e)}function Oe(e,n){var i=n.resolve,r=n.reject,o=n.context,s=n.containerType,c=n.appType,a=n.platformType;if(s){var l=function(u){t.handleBridgeResponse(u,i,r)},d=function(u){t.handleBridgeResponse(u,i,r)};c===A.MINI_APP?o&&o({m:"biz.navigation.close",args:e,onSuccess:l,onFail:d}):a===g.ANDROID?o&&o(l,d,"biz.navigation","close",e):a===g.IOS&&o.callHandler("biz.navigation.close",Object.assign({},e),function(u){t.handleBridgeResponse(u,i,r)})}else o&&o.call("popWindow",e,function(u){t.handleBridgeResponse(u,i,r)})}t.registerAPI("closePage",{mini:Oe,mobile:Oe,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.navigation.quit",e)}}),_n.version={android:"1.2.0",ios:"1.2.0",pc:"1.2.0"};function _n(e){return t.invoke("closePage",E({},e,{_apiName:"closePage"}))}var De;(function(e){e.CODE="code",e.ACCOUNTID="accountId"})(De||(De={}));var Ne;(function(e){e.CODE="code",e.id="id"})(Ne||(Ne={})),t.registerAPI("complexPickerAdmin",{pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.contact.complexPickerAdmin",e)}}),Bn.version={pc:"2.8.0"};function Bn(e){return t.invoke("complexPickerAdmin",e)}t.registerAPI("confirm",{mini:function(e,n){var i=n.resolve,r=n.reject,o=n.context,s=n.containerType,c={message:e.message,title:e.title,okButton:e.buttonLabels[0],cancelButton:e.buttonLabels[1]};s===S.isDingTalk?o({m:"taurus.common.confirm",args:c,onSuccess:function(a){var l={errorCode:T.SUCCESS,result:{buttonIndex:a.ok?0:1}};t.handleBridgeResponse(l,i,r)},onFail:function(a){t.handleBridgeResponse(a,i,r)}}):o&&o.call("confirm",c,function(a){var l={errorCode:T.SUCCESS,result:{buttonIndex:a.ok?0:1}};t.handleBridgeResponse(l,i,r)})},mobile:function(e,n){var i=n.resolve,r=n.reject,o=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?o&&o(function(l){var d={errorCode:T.SUCCESS,result:{buttonIndex:l.ok?0:1}};t.handleBridgeResponse(d,i,r)},function(l){t.handleBridgeResponse(l,i,r)},"taurus.common","confirm",a):c===g.IOS&&o.callHandler("taurus.common.confirm",Object.assign({},a),function(l){t.handleBridgeResponse(l,i,r)}):o&&o.call("confirm",a,function(l){var d={errorCode:T.SUCCESS,result:{buttonIndex:l.ok?0:1}};t.handleBridgeResponse(d,i,r)})},pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"device.notification.confirm",e)}}),Mn.version={android:"1.3.2",ios:"1.3.2",pc:"1.3.2"};function Mn(e){return t.invoke("confirm",e)}t.registerAPI("copyToClipboard",{mini:!0,mobile:!0}),Fn.version={android:"1.3.2",ios:"1.3.2"};function Fn(e){return t.invoke("copyToClipboard",e)}t.registerAPI("createChatGroup",{mini:!0,mobile:!0}),Wn.version={android:"1.3.0",ios:"1.3.0",pc:"1.3.0"};function Wn(e){return t.invoke("createChatGroup",e)}t.registerAPI("createDing",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.ding.create",e)}}),Hn.version={android:"1.3.9",ios:"1.3.9",pc:"1.3.9"};function Hn(e){return t.invoke("createDing",e)}t.registerAPI("createDingV2",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.ding.createV2",e)}}),jn.version={android:"2.7.0",ios:"2.7.0",pc:"2.7.0"};function jn(e){return t.invoke("createDingV2",e)}t.registerAPI("createVideoMeeting",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.meeting.create",E({isVideoConference:!0},e))}}),Un.version={android:"1.3.1.1",ios:"1.3.1.1",pc:"1.9.4"};function Un(e){return t.invoke("createVideoMeeting",e)}t.registerAPI("dealWithBackAction",{mobile:!0}),Gn.version={android:"1.2.0.10"};function Gn(e){return t.invoke("dealWithBackAction",e)}t.registerAPI("disableClosePage",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.util.disableClosePage",{})}}),zn.version={pc:"3.4.0"};function zn(){return t.invoke("disableClosePage")}t.registerAPI("disablePullToRefresh",{mobile:function(e,n){var i=n.resolve,r=n.reject,o=n.context,s=n.containerType,c=n.platformType;s?c===g.ANDROID?o&&o(function(){i()},function(){r()},"ui.pullToRefresh","disable",{}):c===g.IOS&&o.callHandler("ui.pullToRefresh.disable",Object.assign({},{}),function(a){i(a)}):o&&o.call("pullRefresh",{pullRefresh:!1},function(){i()})}}),Vn.version={android:"1.3.0",ios:"1.3.0"};function Vn(){return t.invoke("disablePullToRefresh",{_apiName:"disablePullToRefresh"})}t.registerAPI("disableWebviewBounce",{mobile:function(e,n){var i=n.resolve,r=n.reject,o=n.context,s=n.containerType,c=n.platformType;s?c===g.ANDROID?o&&o(function(){i()},function(){r()},"ui.webViewBounce","disable",{}):c===g.IOS&&o.callHandler("ui.webViewBounce.disable",Object.assign({},{}),function(a){i(a)}):o&&o.call("bounce",{enable:!1},function(a){i(a)})}}),Jn.version={ios:"1.3.0"};function Jn(){return t.invoke("disableWebviewBounce",{_apiName:"disableWebviewBounce"})}t.registerAPI("downloadAudio",{mini:!0,mobile:!0}),Kn.version={android:"1.3.0",ios:"1.3.0"};function Kn(e){return t.invoke("downloadAudio",e)}var Ei=1;function Yn(e){return t.invoke("downloadFile",e)}t.registerAPI("downloadFile",{mini:function(e,n){var i=n.resolve,r=n.reject,o=n.containerType,s=n.context;o===S.isDingTalk?s&&s({m:"taurus.common.downloadFile",args:e,onSuccess:function(c){t.handleBridgeResponse(c,i,r)},onFail:function(c){t.handleBridgeResponse(c,i,r)}}):s&&s.call("downloadFile",e,function(c){c.error?r(c):i(c)})},pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.util.downloadFile",e),t.registerContinuesEvent(n.msgId,function(i,r){i==="im.fileTask.addNewTask"&&(t.removeContinuesEvent(n.msgId),t.registerContinuesEvent(r.taskId,function(o,s){if(o==="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===Ei&&t.removeContinuesEvent(s.taskId)}}))})}}),Yn.version={pc:"1.3.5"};t.registerAPI("enablePullToRefresh",{mobile:function(e,n){var i=n.resolve,r=n.reject,o=n.context,s=n.containerType,c=n.platformType;s?c===g.ANDROID?o&&o(function(){i()},function(){r()},"ui.pullToRefresh","enable",{}):c===g.IOS&&o.callHandler("ui.pullToRefresh.enable",Object.assign({},{}),function(){i()}):o&&o.call("pullRefresh",{pullRefresh:!0},function(){i()})}}),$n.version={android:"1.3.0",ios:"1.3.0"};function $n(){return t.invoke("enablePullToRefresh",{_apiName:"enablePullToRefresh"})}t.registerAPI("enableVpn",{mini:!0,mobile:!0}),Qn.version={android:"1.1.0",ios:"1.1.0"};function Qn(){return t.invoke("enableVpn")}t.registerAPI("enableWebviewBounce",{mobile:function(e,n){var i=n.resolve,r=n.reject,o=n.context,s=n.containerType,c=n.platformType;s?c===g.ANDROID?o&&o(function(){i()},function(){r()},"taurus.common","bounce",{enable:!0}):c===g.IOS&&o.callHandler("taurus.common.bounce",Object.assign({},{enable:!0}),function(a){i(a)}):o&&o.call("bounce",{enable:!0},function(a){i(a)})}}),qn.version={ios:"1.3.0"};function qn(){return t.invoke("enableWebviewBounce",{_apiName:"enableWebviewBounce"})}t.registerAPI("exclusiveInvoke",{mini:!0,mobile:!0}),Xn.version={ios:"1.9.5",android:"1.9.5"};function Xn(e){return t.invoke("exclusiveInvoke",e)}t.registerAPI("faceComparison",{mobile:!0,mini:!0}),Zn.version={android:"2.4.0",ios:"2.4.0"};function Zn(e){return t.invoke("faceComparison",e)}var xe;(function(e){e.PNG="png",e.JPG="jpg"})(xe||(xe={})),t.registerAPI("faceRecognition",{mobile:!0,mini:!0}),et.version={android:"2.4.0",ios:"2.4.0"};function et(e){return t.invoke("faceRecognition",e)}t.registerAPI("getAppInstallStatus",{mini:!0,mobile:!0}),nt.version={android:"2.1.10",ios:"2.1.10"};function nt(e){return t.invoke("getAppInstallStatus",e)}t.registerAPI("getAuthCode",{pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"runtime.permission.requestAuthCode",e)},mobile:!0,mini:!0}),tt.version={android:"1.0.0",ios:"1.0.0",pc:"1.0.0"};function tt(e){return t.invoke("getAuthCode",e)}t.registerAPI("getConfig",{mobile:!0,mini:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"getConfig",e)}}),ot.version={android:"1.3.2",ios:"1.3.2",pc:"1.3.2"};function ot(){return t.invoke("getConfig",{})}function ve(){return t.getContainerType()}t.registerAPI("getDeviceId",{mobile:!0,mini:!0}),it.version={android:"2.5.0",ios:"2.5.0"};function it(){return t.invoke("getDeviceId",{})}t.registerAPI("getFromClipboard",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"util.clipboardData.getData",e)}}),rt.version={android:"2.3.1",ios:"2.3.1",pc:"2.6.10"};function rt(){return t.invoke("getFromClipboard")}t.registerAPI("getGeolocation",{mini:!0,mobile:!0}),at.version={android:"1.2.0",ios:"1.2.0"};function at(e){return t.invoke("getGeolocation",e)}t.registerAPI("getGeolocationStatus",{mobile:!0,mini:!0}),st.version={android:"1.6.2",ios:"1.6.2"};function st(e){return t.invoke("getGeolocationStatus",e)}t.registerAPI("getHotspotInfo",{mobile:!0,mini:!0}),ct.version={android:"1.3.5",ios:"1.3.5"};function ct(){return t.invoke("getHotspotInfo")}t.registerAPI("getLanguageSetting",{mobile:!0,mini:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"getLanguageSetting",e)}}),lt.version={android:"1.4.0",ios:"1.4.0",pc:"1.4.0"};function lt(){return t.invoke("getLanguageSetting")}t.registerAPI("getLoginUser",{mobile:!0,mini:!0}),ut.version={android:"1.1.0",ios:"1.1.0"};function ut(){return t.invoke("getLoginUser")}t.registerAPI("getNetworkType",{mobile:!0,mini:!0}),dt.version={android:"1.3.0",ios:"1.3.0"};function dt(){return t.invoke("getNetworkType")}t.registerAPI("getPhoneInfo",{mini:!0,mobile:!0}),pt.version={android:"1.3.5",ios:"1.3.5"};function pt(){return t.invoke("getPhoneInfo")}var Le;(function(e){e.SOCKS5="SOCKS5",e.HTTP="HTTP"})(Le||(Le={})),t.registerAPI("getProxyInfo",{pc:function(e,n){e===void 0&&(e={}),window.dingtalk.platform.invokeAPI(n.msgId,"net.util.getProxyInfo",e)}}),ft.version={pc:"2.10.0"};function ft(){return t.invoke("getProxyInfo",{})}t.registerAPI("getStorageItem",{mobile:!0,mini:!0}),gt.version={android:"1.3.1.1",ios:"1.3.1.1"};function gt(e){return t.invoke("getStorageItem",e)}t.registerAPI("getTraceStatus",{mobile:!0}),mt.version={android:"1.3.4",ios:"1.3.4"};function mt(e){return t.invoke("getTraceStatus",e)}t.registerAPI("getUUID",{mobile:!0,mini:!0}),vt.version={android:"1.3.5",ios:"1.3.5"};function vt(){return t.invoke("getUUID")}var Ri=/TaurusApp\((\S*)\/(\S*)\)/;function Oi(){if(window&&window.navigator){var e=window.navigator.userAgent;if(e){var n=e.match(Ri);return Promise.resolve({group:"TaurusApp",name:n[1],version:n[2]})}return Promise.reject("\u8C03\u7528\u9519\u8BEF\uFF1A\u65E0\u6CD5\u68C0\u6D4B\u5230\u5F53\u4E0B\u73AF\u5883\u7684 userAgent\uFF0C\u8BF7\u786E\u4FDD\u5728\u653F\u52A1\u9489\u9489\u5BA2\u6237\u7AEF H5 \u5BB9\u5668\u4E0B\u8C03\u7528\u3002")}}t.registerAPI("getUserAgent",{mobile:!0,mini:!0,pc:!0}),ht.version={android:"1.6.2",ios:"1.6.2",pc:"1.6.2"};function ht(){var e=t.getAppType();return e===A.PC||e===A.MOBILE?Oi():e===A.MINI_APP?t.invoke("getUserAgent",{}):void 0}var _e,Be,Me;(function(e){e.off="0",e.on="1"})(_e||(_e={})),function(e){e[e.off=0]="off",e[e.on=1]="on"}(Be||(Be={})),function(e){e[e.name=1]="name",e[e.id=2]="id",e[e.custom=3]="custom"}(Me||(Me={})),t.registerAPI("getWaterMarkConfig",{pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"getWaterMarkConfig",e)},mini:!0,mobile:!0});function de(e){return t.invoke("getWaterMarkConfig",e)}var te,It="h5Page",Di="meetingDetail",Ni="docPreview",xi=[It,Di,Ni],_=!Z(typeof my)&&my!==null&&!Z(typeof my.alert);_&&(te=my.getSystemInfoSync());var Fe=_?te.platform:navigator.userAgent,Li=_?te.screenWidth:window.screen.width,q=(_?te.pixelRatio:window.devicePixelRatio)||2,le=_?Promise.resolve(""):"",_i=function(){function e(i){i===void 0&&(i={}),this.options=E({texts:[""],width:50,height:50,textRotate:-10,textColor:"#000000",textFont:"PingFangSC-Regular,system-ui,sans-serif",fontStyle:"normal",opacity:90,canvas:[],fontSize:14},i),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 i=this,r=null,o=null;_?o=my.createCanvasContext("canvasBg"):(r=this.createCanvas(),o=r.getContext("2d")),this.calcTextSize();var s=this.options,c=s.allItemsWidth,a=s.drawItems,l=s.height,d=s.containerComp,u=Math.ceil(Li/c),p=new Array(u).fill(a).reduce(function(b,D){return b.concat(D)},[]),v=function(){i.setCanvasStyle(o),i.drawText(o,p),o.translate(0,l),i.drawText(o,p.reverse(),!0)};if(_)return new Promise(function(b){d.setState({width:c*u,height:2*l},function(){setTimeout(function(){v(),o.draw(),b(o.toDataURL("image/png"))},0)})});r.width=c*u,r.height=2*l,r.style.display="none",v();var P=r.toDataURL("image/png");return this.destroy(),P},n.calcTextSize=function(){var i=0,r=0,o=this.options;o.drawItems=[].map.call(o.texts,function(c){var a,l,d,u;if(_){for(var p=0,v=0;v<c.length;v+=1)p+=/[\uff00-\uffff]/.test(c[v])?1:.5;a=1.1*o.fontSize*p,l=1.2*o.fontSize}else{var P=(d='<span style="font:'+o.fontSize+"px "+o.textFont+';visibility:hidden;">'+c+"</span>",(u=document.createElement("div")).innerHTML=d.trim(),u.firstChild);document.body.appendChild(P),a=P.offsetWidth,l=P.offsetHeight,document.body.removeChild(P)}return i=Math.max(i,a),o.fontHeight||(o.fontHeight=l),r+=Math.ceil(o.cosDeg*(o.width<a?a:o.width)),{txt:c,width:a,height:l}}),i>o.width&&(o.width=i);var s=i*o.absSinDeg+o.fontHeight*o.cosDeg;s>o.height&&(o.height=s),o.maxItemWidth=i,o.allItemsWidth=r},n.setCanvasStyle=function(i){var r=this.options,o=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;i.rotate(o);var P=s*(c-a);i.translate(-P,0),i.font=l+" "+d+"px "+u,i.fillStyle=p,i.textAlign="left",i.textBaseline="bottom",i.globalAlpha=v},n.drawText=function(i,r,o){o===void 0&&(o=!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,P){var b=u*(c-v.width)/2,D=a*u*P,J=Math.abs(D*Math.tan(d))+l;i.fillText(v.txt,D+(o?u*(a-v.width)/2:b),J+(o?p*(a-v.width)/2:0))})},n.createCanvas=function(){var i=document.createElement("canvas");return this.options.canvas.push(i),i},n.destroy=function(){this.options.canvas.forEach(function(i){i.remove(),i=null})},e}();function Bi(e,n){var i=JSON.parse(e),r=i.watermark||i;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 o=[];if(Array.isArray(r.contentType)){var s="";r.contentType.includes(1)&&(s+=r.userName+" "),r.contentType.includes(2)&&(s+=(r.account||"").slice(-4)),s&&o.push(s),r.contentType.includes(0)&&r.contentCustom&&o.push(r.contentCustom)}if(!o.length)return le;var c,a,l=/Android|Adr|SymbianOS|Windows\s*Phone|Mobile/.test(Fe),d=/iPhone|iPad|iPod|Mac\s*OS.*Mobile|iOS/.test(Fe),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 _i({containerComp:this,texts:o,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 pe(e,n){if(e===void 0&&(e={}),n===void 0&&(n=It),!xi.includes(n))throw new Error("\u7B2C\u4E8C\u4E2A\u53EF\u9009\u53C2\u6570\uFF0C\u4EC5\u80FD\u4E3A\u201Ch5Page\u201D\u6216\u201CmeetingDetail\u201D");try{return Bi.call(this,JSON.stringify(e),n)}catch(i){throw i}}kt.version={android:"1.1.0",ios:"1.1.0",pc:"1.1.0"};function kt(e,n){return e===void 0&&(e=""),new Promise(function(i,r){de({pageInfo:e}).then(function(o){try{var s=pe(o,n);i(s)}catch(c){r(c)}})})}var We;(function(e){e[e.ENABLE=1]="ENABLE",e[e.DISABLE=0]="DISABLE"})(We||(We={})),t.registerAPI("getWaterMarkConfigV2",{mobile:!0,mini:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"getWaterMarkConfigV2",e)}}),he.version={android:"2.8.0",ios:"2.8.0",pc:"2.8.0"};function he(e){return t.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 He,je="",Mi={1:"normal",2:"bold",3:"italic"};(function(e){e[e.LOOSE=0]="LOOSE",e[e.NORMAL=1]="NORMAL",e[e.DENSE=2]="DENSE"})(He||(He={}));var U;(function(e){e[e.RIGHT=0]="RIGHT",e[e.LEFT=1]="LEFT"})(U||(U={}));var Fi=749,Wi=326,Hi=200,ji=16,Ue=1.3,Ui=function(){function e(i){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},i,{width:i.leftAndRightSpacing,height:i.upAndDownSpacing}),this.options.deg=this.options.tiltAngle*Math.PI/180}var n=e.prototype;return n.init=function(){var i,r,o,s,c,a,l,d,u,p=null;return u=(p=this.createCanvas()).getContext("2d"),p.width=((i=window)===null||i===void 0||(r=i.screen)===null||r===void 0?void 0:r.width)||((o=document)===null||o===void 0||(s=o.documentElement)===null||s===void 0?void 0:s.clientWidth)||Fi,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)||Wi,this.calcTextSize(),this.setCanvasStyle(u),this.drawText(u),p.toDataURL("image/png")},n.calcTextSize=function(){var i,r,o=this.options,s="exclusiveDingTalkWaterMarkCustomClass"+100*Math.random(),c=(i='<span id="'+s+'" style="font:'+o.fontSize+"px "+o.textFont+';visibility:hidden;display:inline-block;">'+o.texts+"</span>",(r=document.createElement("div")).innerHTML=i.trim(),r.firstChild);document.body.appendChild(c);var a=document.getElementById(s),l=Math.max(a.clientWidth,o.texts.length*o.fontSize*Ue)||Hi,d=Math.min(a.clientHeight,o.fontSize*Ue)||ji;o.tWidth=l,o.tHeight=d,document.body.removeChild(c)},n.setCanvasStyle=function(i){var r=this.options,o=r.deg,s=r.fontStyle,c=r.fontSize,a=r.textFont,l=r.fontColor,d=r.transparency;i.rotate(o),i.font=s+" "+c+"px "+a,i.fillStyle=l,i.textAlign="left",i.textBaseline="bottom",i.globalAlpha=(100-d)/100},n.fillContent=function(i,r){for(var o=this.options,s=o.width,c=o.height,a=o.texts,l=o.tWidth,d=o.tHeight,u=0;u<40;u++)for(var p=u*c+d,v=0;v<40;v++){var P=void 0;P=u%2==0?i===U.RIGHT?(l+s)*v:(l+s)*v+l+s:i===U.RIGHT?(l+s)*v+s:(l+s)*v+l,r.fillText(a,i===U.RIGHT?P:-P,p)}},n.drawText=function(i){this.fillContent(U.RIGHT,i),this.fillContent(U.LEFT,i)},n.createCanvas=function(){var i=document.createElement("canvas");return this.options.canvas.push(i),i},e}();function Gi(e,n){var i,r,o,s,c,a,l,d;n===void 0&&(n=ee.H5PAGEOTHER);var u=null;try{u=JSON.parse(e)}catch(D){u={}}var p=(i=u)===null||i===void 0||(r=i.watermark)===null||r===void 0?void 0:r.ruleContent,v=(o=u)===null||o===void 0?void 0:o.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 je;var P,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||(P=p.watermarkContent)===null||P===void 0?void 0:P.customCopy)),b.length?new Ui(Object.assign({texts:b,textFont:"PingFangSC-Regular,system-ui,sans-serif"},p==null?void 0:p.watermarkStyle,{fontStyle:Mi[p==null||(d=p.watermarkStyle)===null||d===void 0?void 0:d.fontStyle]})).init():je}function zi(e,n){n===void 0&&(n=ee.H5PAGEOTHER);try{return Gi.call(null,JSON.stringify(e),n)}catch(i){return""}}function Vi(e){return new Promise(function(n,i){ne().then(function(r){var o=r.version;me(o,"2.8.0")!==-1?he({pageInfo:e}).then(function(s){try{var c=zi(s,e);n(c)}catch(a){i(a)}}):de({pageInfo:e}).then(function(s){try{var c=pe(s,e);n(c)}catch(a){i(a)}})}).catch(function(){de({pageInfo:e}).then(function(r){try{var o=pe(r,e);n(o)}catch(s){i(s)}})})})}t.registerAPI("getWifiStatus",{mobile:!0,mini:!0}),At.version={android:"1.3.5",ios:"1.3.5"};function At(){return t.invoke("getWifiStatus")}t.registerAPI("getWorkbenchContext",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"getWorkbenchContext",e)}}),wt.version={android:"2.1.10",ios:"2.1.10"};function wt(){return t.invoke("getWorkbenchContext")}t.registerAPI("h5PageBack",{mobile:function(e,n){var i=n.resolve,r=n.reject,o=n.context,s=n.containerType,c=n.platformType;s?c===g.ANDROID?o&&o(function(a){t.handleBridgeResponse(a,i,r)},function(a){t.handleBridgeResponse(a,i,r)},"biz.navigation","goBack",e):c===g.IOS&&o.callHandler("biz.navigation.goBack",Object.assign({},e),function(a){i(a)}):o&&o.call("h5PageBack",{_apiName:"goBack"},function(){i()})}}),Pt.version={android:"1.3.0",ios:"1.3.9"};function Pt(){return t.invoke("h5PageBack",{_apiName:"goBack"})}function Ge(e,n){var i=n.resolve,r=n.reject,o=n.context,s=n.containerType,c=n.appType,a=n.platformType;if(s){var l=function(u){t.handleBridgeResponse(u,i,r)},d=function(u){t.handleBridgeResponse(u,i,r)};c===A.MINI_APP?o&&o({m:"device.notification.hidePreloader",args:e,onSuccess:l,onFail:d}):a===g.ANDROID?o&&o(l,d,"device.notification","hidePreloader",e):a===g.IOS&&o.callHandler("device.notification.hidePreloader",Object.assign({},e),function(u){i(u)})}else o&&o.call("hideLoading",e,function(){i()})}t.registerAPI("hideLoading",{mini:Ge,mobile:Ge}),bt.version={android:"1.3.2",ios:"1.3.2"};function bt(){return t.invoke("hideLoading")}function Ji(e,n){var i=n.resolve,r=n.reject,o=n.context,s=n.containerType,c=(n.appType,n.platformType);if(s){var a={show:!1,control:!0,text:""};c===g.ANDROID?o&&o(function(l){t.handleBridgeResponse(l,i,r)},function(l){t.handleBridgeResponse(l,i,r)},"biz.navigation","setRight",a):c===g.IOS&&o.callHandler("biz.navigation.setRight",Object.assign({},a),function(l){i(l)})}else o&&o.call("hideOptionMenu",e,function(){i()})}t.registerAPI("hideOptionMenu",{mobile:Ji}),yt.version={android:"1.1.0",ios:"1.1.0"};function yt(){return t.invoke("hideOptionMenu")}function ze(e,n){var i=n.resolve,r=n.reject,o=n.containerType,s=n.platformType,c=n.appType,a=n.context,l=Object.assign(e,{hidden:!0});if(o){var d=function(){e.onSuccess&&e.onSuccess(),i()},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(){i()})}else a&&a.call("hideTitlebar",l,function(){i()})}t.registerAPI("hideTitlebar",{mini:ze,mobile:ze}),St.version={android:"2.1.0",ios:"2.1.0"};function St(){return t.invoke("hideTitlebar")}t.registerAPI("isDownloadFileExist",{pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.util.isLocalFileExist",e)}}),Tt.version={pc:"1.3.5"};function Tt(e){return t.invoke("isDownloadFileExist",e)}t.registerAPI("locateOnMap",{mobile:!0,mini:!0}),Ct.version={android:"1.3.0",ios:"1.3.0"};function Ct(e){return t.invoke("locateOnMap",e)}function Ki(e,n){return t.registerEvent(e,n)}t.registerAPI("onAudioPlayEnd",{mini:!0,mobile:!0}),Et.version={android:"1.6.2",ios:"1.6.2"};function Et(){return t.invoke("onAudioPlayEnd")}t.registerAPI("onRecordAudioEnd",{mini:!0,mobile:!0}),Rt.version={android:"1.3.0",ios:"1.3.0"};function Rt(e){return t.invoke("onRecordAudioEnd",e)}t.registerAPI("openApiInvoker",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"openApiInvoker",e)}}),Ot.version={ios:"3.0.1",android:"3.0.1",pc:"3.0.1"};function Ot(e){return t.invoke("openApiInvoker",e)}t.registerAPI("openApp",{mini:!0,mobile:!0}),Dt.version={android:"1.3.2",ios:"1.3.2"};function Dt(e){return t.invoke("openApp",e)}t.registerAPI("openBrowser",{mini:!0,mobile:!0}),Nt.version={android:"1.2.3"};function Nt(e){return t.invoke("openBrowser",e)}t.registerAPI("openChat",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"internal.chat.toConversation",{cid:e.chatId})}}),xt.version={android:"1.2.0",ios:"1.2.0",pc:"1.2.0"};function xt(e){return t.invoke("openChat",e)}t.registerAPI("openDownloadFile",{pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.util.openLocalFile",e)}}),Lt.version={pc:"1.3.5"};function Lt(e){return t.invoke("openDownloadFile",e)}function Ve(e,n){var i=n.resolve,r=n.reject,o=n.context,s=n.containerType,c=n.appType,a=n.platformType;ne().then(function(l){var d=l.version,u=me(d,"1.6.2")!==-1;if(s){var p=function(P){t.handleBridgeResponse(P,i,r)},v=function(P){t.handleBridgeResponse(P,i,r)};c===A.MINI_APP?o&&o({m:u?"taurus.common.openLink":"taurus.common.pushWindow",args:e,onSuccess:p,onFail:v}):a===g.ANDROID?o&&o(p,v,"taurus.common",u?"openLink":"pushWindow",e):a===g.IOS&&o.callHandler(u?"taurus.common.openLink":"taurus.common.pushWindow",Object.assign({},e),function(P){t.handleBridgeResponse(P,i,r)})}else o&&o.call(u?"openLink":"pushWindow",e,function(P){t.handleBridgeResponse(P,i,r)})})}t.registerAPI("openLink",{mini:Ve,mobile:Ve,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.util.openLink",e)}}),_t.version={android:"1.2.0",ios:"1.2.0",pc:"1.2.0"};function _t(e){return t.invoke("openLink",e)}t.registerAPI("openPage",{mini:!0,mobile:!0}),Bt.version={android:"1.1.0",ios:"1.1.0"};function Bt(e){return t.invoke("openPage",e)}t.registerAPI("dgOpenApp",{mobile:!0,mini:!0}),Mt.version={android:"1.3.1.1",ios:"1.3.1.1"};function Mt(e){return t.invoke("dgOpenApp",E({},e,{_apiName:"openSchemeUrl"}))}t.registerAPI("openSlidePanel",{pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.util.openSlidePanel",e)}}),Ft.version={pc:"1.3.5"};function Ft(e){return t.invoke("openSlidePanel",e)}t.registerAPI("openWatermarkCamera",{mobile:!0,mini:!0}),Wt.version={android:"1.3.7",ios:"1.3.7"};function Wt(){return t.invoke("openWatermarkCamera")}t.registerAPI("pauseAudio",{mini:!0,mobile:!0}),Ht.version={android:"1.3.0",ios:"1.3.0"};function Ht(e){return t.invoke("pauseAudio",e)}t.registerAPI("pickChat",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.chat.pickConversation",e)}}),jt.version={android:"1.2.0",ios:"1.2.0",pc:"2.9.0"};function jt(e){return t.invoke("pickChat",e)}t.registerAPI("pickChatByCorpId",{mini:!0,mobile:!0});function Yi(e){return t.invoke("pickChatByCorpId",e)}t.registerAPI("pickGroupChat",{pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.contact.pickGroupChat",e)}}),Ut.version={pc:"2.10.30"};function Ut(e){return t.invoke("pickGroupChat",e)}function Je(e,n){e===void 0&&(e={});var i=n.resolve,r=n.reject,o=n.context,s=n.containerType,c=n.appType,a=n.platformType;if(s){var l=function(u){t.handleBridgeResponse(u,i,r)},d=function(u){t.handleBridgeResponse(u,i,r)};c===A.MINI_APP?o&&o({m:a===g.ANDROID?"taurus.common.pickGroupConversation":"internal.chat.pickGroupConversation",args:e,onSuccess:l,onFail:d}):a===g.ANDROID?o&&o(l,d,"taurus.common","pickGroupConversation",e):a===g.IOS&&o.callHandler("internal.chat.pickGroupConversation",Object.assign({},e),function(u){i(u)})}else o&&o.call("pickGroupConversation",e,function(){i()})}t.registerAPI("pickGroupConversation",{mini:Je,mobile:Je}),Gt.version={android:"2.8.0",ios:"2.8.0"};function Gt(e){return e===void 0&&(e={owner:!1}),t.invoke("pickGroupConversation",e)}t.registerAPI("playAudio",{mini:!0,mobile:!0}),zt.version={android:"1.3.0",ios:"1.3.0"};function zt(e){return t.invoke("playAudio",e)}t.registerAPI("previewDoc",{mini:!0,mobile:!0}),Vt.version={android:"1.1.0",ios:"1.1.0"};function Vt(e){return t.invoke("previewDoc",e)}t.registerAPI("previewImage",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.util.previewImage",e)}}),Jt.version={android:"1.2.0",ios:"1.2.0",pc:"1.2.0"};function Jt(e){return t.invoke("previewImage",e)}t.registerAPI("printFile",{mini:!0,mobile:!0}),Kt.version={android:"2.2.10"};function Kt(e){return t.invoke("printFile",e)}t.registerAPI("printNativeLog",{mini:!0,mobile:!0}),Yt.version={android:"1.9.4",ios:"1.9.4"};function Yt(e){return t.invoke("printNativeLog",e)}function Ke(e,n){var i=n.resolve,r=n.reject,o=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){t.handleBridgeResponse(p,i,r)},u=function(p){t.handleBridgeResponse(p,i,r)};c===A.MINI_APP?o&&o({m:"taurus.common.prompt",args:l,onSuccess:d,onFail:u}):a===g.ANDROID?o&&o(d,u,"taurus.common","prompt",l):a===g.IOS&&o.callHandler("taurus.common.prompt",Object.assign({},l),function(p){t.handleBridgeResponse(p,i,r)})}else o&&o.call("prompt",l,function(p){var v={errorCode:T.SUCCESS,result:{buttonIndex:p.ok?0:1,value:p.inputValue}};t.handleBridgeResponse(v,i,r)})}t.registerAPI("prompt",{mini:Ke,mobile:Ke,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"device.notification.prompt",e)}}),$t.version={android:"1.3.2",ios:"1.3.2",pc:"1.3.2"};function $t(e){return t.invoke("prompt",e)}t.registerAPI("pushWindow",{mini:!0,mobile:!0}),Qt.version={android:"2.9.7",ios:"2.9.7"};function Qt(e){return t.invoke("pushWindow",e)}t.registerAPI("readImageToBase64",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"readImageToBase64",e)}}),qt.version={ios:"2.1.0",android:"2.1.0",pc:"2.1.0"};function qt(e){return t.invoke("readImageToBase64",e)}function $i(e){typeof e=="function"?t.onReady(e):console.error("dd.ready's param must be function! ")}var Ye;(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"})(Ye||(Ye={})),t.registerAPI("reduceImageSize",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"reduceImageSize",e)}}),Xt.version={ios:"2.1.0",android:"2.1.0",pc:"2.1.0"};function Xt(e){return t.invoke("reduceImageSize",e)}t.registerAPI("removeStorageItem",{mobile:!0,mini:!0}),Zt.version={android:"1.3.1.1",ios:"1.3.1.1"};function Zt(e){return t.invoke("removeStorageItem",e)}function $e(e,n){var i=n.resolve,r=n.reject,o=n.containerType,s=n.platformType,c=n.appType,a=n.context;if(o){var l=function(){e.onSuccess&&e.onSuccess(),i()},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(){i()})}else a&&a.call("replacePage",e,function(){i()})}t.registerAPI("replacePage",{mini:$e,mobile:$e}),eo.version={android:"1.3.2",ios:"1.3.2"};function eo(e){return t.invoke("replacePage",e)}t.registerAPI("resetView",{mini:!0,mobile:!0}),no.version={android:"1.3.0",ios:"1.3.0"};function no(){return t.invoke("resetView")}t.registerAPI("resumeAudio",{mini:!0,mobile:!0}),to.version={android:"1.3.0",ios:"1.3.0"};function to(e){return t.invoke("resumeAudio",e)}t.registerAPI("rotateView",{mini:!0,mobile:!0}),oo.version={android:"1.3.0",ios:"1.3.0"};function oo(e){return t.invoke("rotateView",e)}t.registerAPI("scan",{mini:!0,mobile:!0}),io.version={android:"1.3.2",ios:"1.3.2"};function io(e){return t.invoke("scan",e)}t.registerAPI("searchOnMap",{mini:!0,mobile:!0}),ro.version={android:"1.3.2",ios:"1.3.2"};function ro(e){return t.invoke("searchOnMap",e)}function Qi(e){return E({},e,{actionId:"",actionType:"0"})}function Qe(e,n){var i=n.resolve,r=n.context;r&&r.call("sendOutData",Qi(e),function(){i()})}t.registerAPI("cardSendOutData",{mini:Qe,mobile:Qe}),ao.version={android:"2.5.0",ios:"2.5.0"};function ao(e){return t.invoke("cardSendOutData",e)}var qe;(function(e){e.DEFAULT="0",e.DISABLEALL="1",e.ENABLEALL="2"})(qe||(qe={})),t.registerAPI("setLocalScreenShotPolicy",{mini:!0,mobile:!0}),so.version={android:"2.12.12",ios:"2.12.12"};function so(e){return t.invoke("setLocalScreenShotPolicy",e)}function qi(e,n){var i=n.resolve,r=n.reject,o=n.containerType,s=n.platformType,c=n.context;o?s===g.ANDROID?c&&c(function(a){e.onSuccess&&e.onSuccess(),i()},function(a){r()},"biz.navigation","setIcon",e):s===g.IOS&&c.callHandler("biz.navigation.setIcon",Object.assign({},e),function(a){i()}):c&&c.call("setNavIcon",e,function(a){i()})}t.registerAPI("setNavIcon",{mobile:qi}),co.version={android:"1.3.0",ios:"1.3.0"};function co(e){return t.invoke("setNavIcon",e)}function Xe(e,n){var i=n.resolve,r=n.reject,o=n.context,s=n.containerType,c=n.appType,a=n.platformType,l=n.watch;if(s){var d=function(p){e.onSuccess&&e.onSuccess(),t.handleBridgeResponse(p,i,r)},u=function(p){t.handleBridgeResponse(p,i,r)};c===A.MINI_APP?o&&o({m:"biz.navigation.setLeft",args:e,onSuccess:d,onFail:u}):a===g.ANDROID?o&&o(d,u,"biz.navigation","setLeft",e):a===g.IOS&&o.callHandler("biz.navigation.setLeft",Object.assign({},e),function(p){!l&&i(p)})}else o&&o.call("setNavLeftText",e,function(){i()})}t.registerAPI("setNavLeftText",{mini:Xe,mobile:Xe,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.navigation.setLeft",e)}}),lo.version={ios:"1.2.0",pc:"1.2.0"};function lo(e){var n=ve();return t.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})}t.registerAPI("setOptionMenu",{mobile:function(e,n){var i=n.resolve,r=n.reject,o=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)o&&o(function(v){e.onSuccess&&e.onSuccess(v),i(v)},function v(P){e.onFail&&e.onFail(P),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;o.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(){i()})}}else o&&o.call("setOptionMenu",e,function(){i()})}}),uo.version={android:"1.1.0",ios:"1.1.0"};function uo(e){var n=ve();return t.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)}t.registerAPI("setProxyInfo",{pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"net.util.setProxyInfo",e)}}),po.version={pc:"2.10.0"};function po(e){return t.invoke("setProxyInfo",e)}t.registerAPI("setStorageItem",{mobile:!0,mini:!0}),fo.version={android:"1.3.1.1",ios:"1.3.1.1"};function fo(e){return t.invoke("setStorageItem",e)}var Ze;function en(e,n){var i=n.resolve,r=n.reject,o=n.context,s=n.containerType,c=n.appType,a=n.platformType;if(s){var l=function(u){t.handleBridgeResponse(u,i,r)},d=function(u){t.handleBridgeResponse(u,i,r)};c===A.MINI_APP?o&&o({m:"biz.navigation.setTitle",args:e,onSuccess:l,onFail:d}):a===g.ANDROID?o&&o(l,d,"biz.navigation","setTitle",e):a===g.IOS&&o.callHandler("biz.navigation.setTitle",Object.assign({},e),function(u){t.handleBridgeResponse(u,i,r)})}else o&&o.call("setTitle",e,function(){i()})}(function(e){e.TRUE="true",e.FALSE="false"})(Ze||(Ze={})),t.registerAPI("setTitle",{mini:en,mobile:en,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.navigation.setTitle",e)}}),go.version={android:"1.2.0",ios:"1.2.0",pc:"1.2.0"};function go(e){return t.invoke("setTitle",e)}t.registerAPI("shareFileToMessage",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"shareFileToMessage",e)}}),mo.version={android:"1.8.2",ios:"1.8.2",pc:"1.8.2"};function mo(e){return t.invoke("shareFileToMessage",e)}t.registerAPI("shareImageToMessage",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"shareImageToMessage",e)}}),vo.version={android:"1.8.2",ios:"1.8.2",pc:"1.8.2"};function vo(e){return t.invoke("shareImageToMessage",e)}t.registerAPI("shareToMessage",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.util.share",e)}}),ho.version={android:"1.3.5",ios:"1.3.5",pc:"1.3.5"};function ho(e){return t.invoke("shareToMessage",e)}t.registerAPI("shootVideo",{mini:!0,mobile:!0}),Io.version={android:"1.3.5",ios:"1.3.5"};function Io(){return t.invoke("shootVideo")}t.registerAPI("showActionSheet",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"device.notification.actionSheet",e)}}),ko.version={android:"1.3.2",ios:"1.3.2",pc:"1.3.2"};function ko(e){return t.invoke("showActionSheet",e)}t.registerAPI("showCallMenu",{mini:!0,mobile:!0}),Ao.version={android:"1.3.9",ios:"1.3.9"};function Ao(e){return t.invoke("showCallMenu",e)}t.registerAPI("showDatePicker",{mobile:!0,mini:!0}),wo.version={android:"1.3.0",ios:"1.3.0"};function wo(e){return t.invoke("showDatePicker",e)}t.registerAPI("showDateTimePicker",{mini:!0,mobile:!0}),Po.version={android:"1.3.10",ios:"1.3.10"};function Po(e){return t.invoke("showDateTimePicker",e)}t.registerAPI("showExtendModal",{mini:!0,mobile:!0}),bo.version={android:"1.3.5",ios:"1.3.5"};function bo(e){return t.invoke("showExtendModal",e)}t.registerAPI("showHomeBottomTab",{mobile:!0}),yo.version={android:"1.3.0",ios:"1.3.0"};function yo(e){return t.invoke("showHomeBottomTab",e)}function nn(e,n){var i=n.resolve,r=n.reject,o=n.context,s=n.containerType,c=n.appType,a=n.platformType;if(s){var l=function(u){t.handleBridgeResponse(u,i,r)},d=function(u){t.handleBridgeResponse(u,i,r)};c===A.MINI_APP?o&&o({m:"device.notification.showPreloader",args:e,onSuccess:l,onFail:d}):a===g.ANDROID?o&&o(l,d,"device.notification","showPreloader",e):a===g.IOS&&o.callHandler("device.notification.showPreloader",Object.assign({},e),function(u){i(u)})}else o&&o.call("showLoading",e,function(){i()})}t.registerAPI("showLoading",{mini:nn,mobile:nn}),So.version={android:"1.3.2",ios:"1.3.2"};function So(e){return t.invoke("showLoading",e)}t.registerAPI("showModal",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.util.openModal",e)}}),To.version={android:"1.3.5",ios:"1.3.5",pc:"1.3.5"};function To(e){return t.invoke("showModal",e)}t.registerAPI("showMultiSelect",{mini:!0,mobile:!0}),Co.version={android:"1.3.10",ios:"1.3.10"};function Co(e){return t.invoke("showMultiSelect",e)}t.registerAPI("showOnMap",{mini:!0,mobile:!0}),Eo.version={android:"1.3.2",ios:"1.3.2"};function Eo(e){return t.invoke("showOnMap",e)}t.registerAPI("showOptionMenu",{mobile:function(e,n){var i=n.resolve,r=n.reject,o=n.context,s=n.platformType;n.containerType?s===g.ANDROID?o&&o(function(){i()},function(){r()},"taurus.common","showOptionMenu",e):s===g.IOS&&o.callHandler("taurus.common.showOptionMenu",Object.assign({},e),function(){i()}):o&&o.call("showOptionMenu",e,function(){i()})}}),Ro.version={android:"1.1.0",ios:"1.1.0"};function Ro(){return t.invoke("showOptionMenu")}t.registerAPI("showPlainInputUponKeyboard",{mobile:!0,mini:!0}),Oo.version={android:"1.3.0",ios:"1.3.0"};function Oo(e){return t.invoke("showPlainInputUponKeyboard",e)}t.registerAPI("showQuickCallMenu",{mini:!0,mobile:!0}),Do.version={android:"1.6.2",ios:"1.6.2"};function Do(e){return t.invoke("showQuickCallMenu",e)}t.registerAPI("showSelect",{mini:!0,mobile:!0}),No.version={android:"1.3.2",ios:"1.3.2"};function No(e){return t.invoke("showSelect",e)}t.registerAPI("showSignature",{mobile:!0}),xo.version={android:"1.3.4"};function xo(e){return t.invoke("showSignature",e)}t.registerAPI("showSocialShare",{mini:!0,mobile:!0}),Lo.version={android:"1.2.0.10",ios:"1.2.0.10"};function Lo(e){return t.invoke("showSocialShare",e)}t.registerAPI("showTimePicker",{mobile:!0,mini:!0}),_o.version={android:"1.3.0",ios:"1.3.0"};function _o(e){return t.invoke("showTimePicker",e)}function tn(e,n){var i=n.resolve,r=n.reject,o=n.containerType,s=n.platformType,c=n.appType,a=n.context,l=Object.assign(e,{hidden:!1});if(o){var d=function(){e.onSuccess&&e.onSuccess(),i()},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(){i()})}else a&&a.call("showTitlebar",l,function(){i()})}t.registerAPI("showTitlebar",{mini:tn,mobile:tn}),Bo.version={android:"2.1.0",ios:"2.1.0"};function Bo(){return t.invoke("showTitlebar")}t.registerAPI("startFaceRecognition",{mini:!0,mobile:!0}),Mo.version={android:"1.8.2",ios:"1.8.2"};function Mo(e){return t.invoke("startFaceRecognition",e)}function on(e,n){var i=n.resolve,r=n.reject,o=n.context,s=n.platformType,c=n.containerType,a=n.appType,l=t.registerEvent(V.UPDATE_LOCATION,function(p){var v=p.data;v.errorCode!==T.SUCCESS?e.onFail&&e.onFail(v):e.onSuccess&&e.onSuccess(v.result)});if(c){var d=function(p){t.registerContinuesEvent(e.sceneId,l),t.handleBridgeResponse(p,i,r)},u=function(p){t.registerContinuesEvent(e.sceneId,l),t.handleBridgeResponse(p,i,r)};a===A.MINI_APP?(console.log("taurus.common.startGeolocation",e),o&&o({m:"taurus.common.startGeolocation",args:e,onSuccess:d,onFail:u})):s===g.ANDROID?o&&o(d,u,"taurus.common","startGeolocation",e):s===g.IOS&&o.callHandler("taurus.common.startGeolocation",Object.assign({},e),function(p){t.registerContinuesEvent(e.sceneId,l),t.handleBridgeResponse(p,i,r)})}else o&&o.call("startGeolocation",e,function(p){t.registerContinuesEvent(e.sceneId,l),t.handleBridgeResponse(p,i,r)})}t.registerAPI("startGeolocation",{mobile:on,mini:on}),Fo.version={android:"1.3.2",ios:"1.3.2"};function Fo(e){return t.invoke("startGeolocation",e)}function rn(e,n){var i=n.resolve,r=n.reject,o=n.context,s=n.containerType,c=n.appType,a=n.platformType,l=t.registerEvent(V.UPDATE_NETWORK_STATUS,function(p){var v=p.data;v.errorCode!==T.SUCCESS?e.onFail&&e.onFail(v):e.onSuccess&&e.onSuccess(v.result)});if(s){var d=function(p){t.registerContinuesEvent(p.result.requestId,l),t.handleBridgeResponse(p,i,r)},u=function(p){t.registerContinuesEvent(p.result.requestId,l),t.handleBridgeResponse(p,i,r)};c===A.MINI_APP?o&&o({m:"taurus.common.startListenNetworkStatus",args:e,onSuccess:d,onFail:u}):a===g.ANDROID?o&&o(d,u,"taurus.common","startListenNetworkStatus",e):a===g.IOS&&o.callHandler("taurus.common.startListenNetworkStatus",Object.assign({},e),function(p){t.registerContinuesEvent(p.result.requestId,l),t.handleBridgeResponse(p,i,r)})}else o&&o.call("startListenNetworkStatus",e,function(p){t.registerContinuesEvent(p.result.requestId,l),t.handleBridgeResponse(p,i,r)})}t.registerAPI("startListenNetworkStatus",{mobile:rn,mini:rn}),Wo.version={android:"1.3.1.1",ios:"1.3.1.1"};function Wo(e){return t.invoke("startListenNetworkStatus",e)}t.registerAPI("startRecordAudio",{mini:!0,mobile:!0}),Ho.version={android:"1.3.0",ios:"1.3.0"};function Ho(e){return t.invoke("startRecordAudio",e)}function Xi(e,n){var i=n.resolve,r=n.reject,o=n.context,s=n.containerType,c=n.platformType,a=n.appType,l=t.registerEvent(V.UPDATE_TRACE,function(p){var v=p.data;v.errorCode&&v.errorCode!==T.SUCCESS?e.onFail&&e.onFail(v):e.onSuccess&&e.onSuccess(v.result||v)});if(s){var d=function(p){t.registerContinuesEvent(e.traceId,l),t.handleBridgeResponse(p,i,r)},u=function(p){t.registerContinuesEvent(e.traceId,l),t.handleBridgeResponse(p,i,r)};a===A.MINI_APP?o&&o({m:"taurus.common.startTraceReport",args:e,onSuccess:d,onFail:u}):c===g.ANDROID?o&&o(d,u,"taurus.common","startTraceReport",e):c===g.IOS&&o.callHandler("taurus.common.startTraceReport",Object.assign({},e),function(p){t.registerContinuesEvent(e.traceId,l),t.handleBridgeResponse(p,i,r)})}else o&&o.call("startTraceReport",e,function(p){t.registerContinuesEvent(e.traceId,l),t.handleBridgeResponse(p,i,r)})}t.registerAPI("startTraceReport",{mobile:Xi,mini:!0}),jo.version={android:"1.3.4",ios:"1.3.4"};function jo(e){return t.invoke("startTraceReport",e)}t.registerAPI("startVPNApp",{mini:!0,mobile:!0}),Uo.version={android:"1.6.0",ios:"1.6.0"};function Uo(e){return t.invoke("startVPNApp",e)}function Zi(e,n){var i=n.resolve,r=n.reject,o=n.context,s=n.containerType,c=n.platformType,a=t.registerEvent(V.ON_SHAKE,function(){e.onSuccess&&e.onSuccess()});s?c===g.ANDROID?o&&o(function(l){e.onSuccess&&e.onSuccess(),i()},function(l){r()},"taurus.common","startWatchShake",e):c===g.IOS&&o.callHandler("taurus.common.startWatchShake",Object.assign({},e),function(l){i()}):o&&o.call("startWatchShake",e,function(l){t.registerContinuesEvent("shake",a),t.handleBridgeResponse(l,i,r)})}t.registerAPI("startWatchShake",{mobile:Zi}),Go.version={android:"1.6.2",ios:"1.6.2"};function Go(e){return t.invoke("startWatchShake",e)}t.registerAPI("stopAudio",{mini:!0,mobile:!0}),zo.version={android:"1.3.0",ios:"1.3.0"};function zo(e){return t.invoke("stopAudio",e)}function an(e,n){var i=n.resolve,r=n.reject,o=n.containerType,s=n.platformType,c=n.appType,a=n.context;if(o){var l=function(u){t.removeContinuesEvent(e.sceneId),t.handleBridgeResponse(u,i,r)},d=function(u){t.removeContinuesEvent(e.sceneId),t.handleBridgeResponse(u,i,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){t.removeContinuesEvent(e.sceneId),t.handleBridgeResponse(u,i,r)})}else a&&a.call("stopGeolocation",e,function(u){t.removeContinuesEvent(e.sceneId),t.handleBridgeResponse(u,i,r)})}t.registerAPI("stopGeolocation",{mobile:an,mini:an}),Vo.version={android:"1.3.2",ios:"1.3.2"};function Vo(e){return t.invoke("stopGeolocation",e)}function sn(e,n){var i=n.resolve,r=n.reject,o=n.containerType,s=n.appType,c=n.platformType,a=n.context;if(o){var l=function(u){t.removeContinuesEvent(e.requestId),t.handleBridgeResponse(u,i,r)},d=function(u){t.removeContinuesEvent(e.requestId),t.handleBridgeResponse(u,i,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){t.removeContinuesEvent(e.requestId),t.handleBridgeResponse(u,i,r)})}else a&&a.call("stopListenNetworkStatus",e,function(u){t.removeContinuesEvent(e.requestId),t.handleBridgeResponse(u,i,r)})}t.registerAPI("stopListenNetworkStatus",{mini:sn,mobile:sn}),Jo.version={android:"1.3.1.1",ios:"1.3.1.1"};function Jo(e){return t.invoke("stopListenNetworkStatus",e)}t.registerAPI("stopPullToRefresh",{mobile:function(e,n){var i=n.resolve,r=n.reject,o=n.context,s=n.containerType,c=n.platformType;s?c===g.ANDROID?o&&o(function(){i()},function(){r()},"ui.pullToRefresh","stop",e):c===g.IOS&&o.callHandler("ui.pullToRefresh.stop",Object.assign({},e),function(){i()}):o&&o.call("restorePullToRefresh",e,function(){i()})}}),Ko.version={android:"1.3.0",ios:"1.3.0"};function Ko(){return t.invoke("stopPullToRefresh",{_apiName:"stopPullToRefresh"})}t.registerAPI("stopRecordAudio",{mini:!0,mobile:!0}),Yo.version={android:"1.3.0",ios:"1.3.0"};function Yo(e){return t.invoke("stopRecordAudio",e)}function er(e,n){var i=n.resolve,r=n.reject,o=n.containerType,s=n.platformType,c=n.context;o?s===g.ANDROID?c&&c(function(a){t.removeContinuesEvent(e.traceId),t.handleBridgeResponse(a,i,r)},function(a){t.removeContinuesEvent(e.traceId),t.handleBridgeResponse(a,i,r)},"taurus.common","stopTraceReport",e):s===g.IOS&&c.callHandler("taurus.common.stopTraceReport",Object.assign({},e),function(a){t.removeContinuesEvent(e.traceId),t.handleBridgeResponse(a,i,r)}):c&&c.call("stopTraceReport",e,function(a){t.removeContinuesEvent(e.traceId),t.handleBridgeResponse(a,i,r)})}t.registerAPI("stopTraceReport",{mobile:er}),$o.version={android:"1.3.4",ios:"1.3.4"};function $o(e){return t.invoke("stopTraceReport",e)}t.registerAPI("stopVPNApp",{mini:!0,mobile:!0}),Qo.version={android:"1.6.0",ios:"1.6.0"};function Qo(e){return t.invoke("stopVPNApp",e)}function nr(e,n){var i=n.resolve,r=n.reject,o=n.containerType,s=n.platformType,c=n.context;o?s===g.ANDROID?c&&c(function(a){e.onSuccess&&e.onSuccess(),i()},function(a){r()},"taurus.common","stopWatchShake",e):s===g.IOS&&c.callHandler("taurus.common.stopWatchShake",Object.assign({},e),function(a){i()}):c&&c.call("stopWatchShake",e,function(a){t.removeContinuesEvent("shake"),t.handleBridgeResponse(a,i,r)})}t.registerAPI("stopWatchShake",{mobile:nr}),qo.version={android:"1.6.2",ios:"1.6.2"};function qo(){return t.invoke("stopWatchShake")}t.registerAPI("subscribe",{mobile:function(e,n){var i=n.resolve,r=n.reject,o=n.context,s=n.containerType,c=n.platformType,a=!1;s?c===g.ANDROID?o&&o(function(l){a?(e.onSuccess||e.onFail)&&(l.errorCode!=="0"?e.onFail&&e.onFail(l):e.onSuccess&&e.onSuccess(l.result)):(a=!0,t.handleBridgeResponse(l,i,r))},function(l){a?e.onFail&&e.onFail(l):(a=!0,t.handleBridgeResponse(l,i,r))},"taurus.common","subscribe",e):c===g.IOS&&o.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,t.handleBridgeResponse(l,i,r))}):o&&o.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,t.handleBridgeResponse(l,i,r))})}}),Xo.version={android:"1.6.0",ios:"1.6.0"};function Xo(e){return t.invoke("subscribe",e)}t.registerAPI("takePhoto",{mini:!0,mobile:!0}),Zo.version={android:"1.3.5",ios:"1.3.5"};function Zo(){return t.invoke("takePhoto")}t.registerAPI("testProxy",{pc:function(e,n){e===void 0&&(e={}),window.dingtalk.platform.invokeAPI(n.msgId,"net.util.testProxy",e)}}),ei.version={pc:"2.10.0"};function ei(){return t.invoke("testProxy",{})}function cn(e,n){var i=n.resolve,r=n.reject,o=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(){t.handleBridgeResponse({errorCode:T.SUCCESS,result:{}},i,r)},u=function(p){t.handleBridgeResponse(p,i,r)};a===A.MINI_APP?o&&o({m:"taurus.common.toast",args:l,onSuccess:d,onFail:u}):c===g.ANDROID?o&&o(d,u,"taurus.common","toast",l):c===g.IOS&&o.callHandler("taurus.common.toast",Object.assign({},l),function(){t.handleBridgeResponse({errorCode:T.SUCCESS,result:{}},i,r)})}else o&&o.call("toast",l,function(){t.handleBridgeResponse({errorCode:T.SUCCESS,result:{}},i,r)})}t.registerAPI("toast",{mobile:cn,mini:cn,pc:function(e,n){var i=e.icon,r=e.text,o=e.duration,s=e.delay;window.dingtalk.platform.invokeAPI(n.msgId,"device.notification.toast",{type:i,text:r,duration:o,delay:s})}}),ni.version={android:"1.3.2",ios:"1.3.2"};function ni(e){return t.invoke("toast",e)}t.registerAPI("unlockWithSecurityVerification",{mini:!0,mobile:!0}),ti.version={android:"1.3.1.1",ios:"1.3.1.1"};function ti(){return t.invoke("unlockWithSecurityVerification")}t.registerAPI("unsubscribe",{mobile:!0}),oi.version={android:"1.6.0",ios:"1.6.0"};function oi(e){return t.invoke("unsubscribe",e)}t.registerAPI("dgUploadFile",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.util.dgUploadFile",e)}}),ii.version={android:"1.3.2",ios:"1.3.2",pc:"1.3.6"};function ii(e){return t.invoke("dgUploadFile",E({},e,{_apiName:"uploadFile"}))}t.registerAPI("uploadFileByType",{mini:!0,mobile:!0}),ri.version={android:"1.3.0",ios:"1.3.0"};function ri(e){return t.invoke("uploadFileByType",e)}t.registerAPI("uploadFile",{mini:!0}),ai.version={android:"1.6.2",ios:"1.6.2"};function ai(e){return new Promise(function(n,i){my.uploadFile(E({},e,{success:function(r){n(r)},fail:function(r){i(r)}}))})}t.registerAPI("uploadRemoteFileToDisk",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.util.uploadRemoteFileToDisk",e)}}),si.version={android:"1.6.0",ios:"1.6.0",pc:"2.6.0"};function si(e){return t.invoke("uploadRemoteFileToDisk",e)}t.registerAPI("ut",{pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.util.ut",e)}}),ci.version={pc:"1.3.10"};function ci(e){return t.invoke("ut",e)}t.registerAPI("vibrate",{mini:!0,mobile:!0}),li.version={android:"1.3.1",ios:"1.3.1"};function li(e){return t.invoke("vibrate",e)}var z={alert:pn,authConfig:fn,bizContactDepartmentsPickerExternal:gn,bizCustomContactChooseExternal:mn,bizCustomContactMultipleChooseExternal:vn,callPhone:hn,canIUse:Ci,checkVPNAppInstalled:An,checkVPNAppOnline:wn,chooseContact:Pn,chooseContactWithComplexPicker:bn,chooseDateRangeWithCalendar:yn,chooseDayWithCalendar:Sn,chooseDepartments:Tn,chooseFile:Cn,chooseHalfDayWithCalendar:En,chooseImage:Rn,chooseInterconnectionChat:On,chooseLocalImage:Dn,chooseSpaceDir:Nn,chooseTimeWithCalendar:xn,chooseVideo:Ln,closePage:_n,complexPickerAdmin:Bn,confirm:Mn,copyToClipboard:Fn,createChatGroup:Wn,createDing:Hn,createDingV2:jn,createVideoMeeting:Un,dealWithBackAction:Gn,disableClosePage:zn,disablePullToRefresh:Vn,disableWebviewBounce:Jn,downloadAudio:Kn,downloadFile:Yn,enablePullToRefresh:$n,enableVpn:Qn,enableWebviewBounce:qn,exclusiveInvoke:Xn,faceComparison:Zn,faceRecognition:et,getAppInstallStatus:nt,getAuthCode:tt,getConfig:ot,getContainerType:ve,getDeviceId:it,getFromClipboard:rt,getGeolocation:at,getGeolocationStatus:st,getHotspotInfo:ct,getLanguageSetting:lt,getLoginUser:ut,getNetworkType:dt,getPhoneInfo:pt,getProxyInfo:ft,getStorageItem:gt,getTraceStatus:mt,getUUID:vt,getUserAgent:ht,getWaterMark:kt,getWaterMarkConfigV2:he,getWaterMarkV2:Vi,getWifiStatus:At,getWorkbenchContext:wt,goBack:Pt,hideLoading:bt,hideOptionMenu:yt,hideTitleBar:St,isDownloadFileExist:Tt,locateOnMap:Ct,on:Ki,onAudioPlayEnd:Et,onRecordAudioEnd:Rt,openApiInvoker:Ot,openApp:Dt,openBrowser:Nt,openChat:xt,openDownloadFile:Lt,openLink:_t,openPage:Bt,openSchemeUrl:Mt,openSlidePanel:Ft,openWatermarkCamera:Wt,pauseAudio:Ht,pickChat:jt,pickChatByCorpId:Yi,pickGroupChat:Ut,pickGroupConversation:Gt,playAudio:zt,previewDoc:Vt,previewImage:Jt,printFile:Kt,printNativeLog:Yt,prompt:$t,pushWindow:Qt,readImageToBase64:qt,ready:$i,reduceImageSize:Xt,removeStorageItem:Zt,replacePage:eo,resetView:no,resumeAudio:to,rotateView:oo,scan:io,searchOnMap:ro,sendOutData:ao,setLocalScreenShotPolicy:so,setNavIcon:co,setNavLeftText:lo,setOptionMenu:uo,setProxyInfo:po,setStorageItem:fo,setTitle:go,shareFileToMessage:mo,shareImageToMessage:vo,shareToMessage:ho,shootVideo:Io,showActionSheet:ko,showCallMenu:Ao,showDatePicker:wo,showDateTimePicker:Po,showExtendModal:bo,showHomeBottomTab:yo,showLoading:So,showModal:To,showMultiSelect:Co,showOnMap:Eo,showOptionMenu:Ro,showPlainInputUponKeyboard:Oo,showQuickCallMenu:Do,showSelect:No,showSignature:xo,showSocialShare:Lo,showTimePicker:_o,showTitleBar:Bo,startFaceRecognition:Mo,startGeolocation:Fo,startListenNetworkStatus:Wo,startRecordAudio:Ho,startTraceReport:jo,startVPNApp:Uo,startWatchShake:Go,stopAudio:zo,stopGeolocation:Vo,stopListenNetworkStatus:Jo,stopPullToRefresh:Ko,stopRecordAudio:Yo,stopTraceReport:$o,stopVPNApp:Qo,stopWatchShake:qo,subscribe:Xo,takePhoto:Zo,testProxy:ei,toast:ni,unlockWithSecurityVerification:ti,unsubscribe:oi,uploadFile:ii,uploadFileByType:ri,uploadLocalFile:ai,uploadRemoteFileToDisk:si,ut:ci,version:ne,vibrate:li};if(t.getAppType()===A.MINI_APP)z=new Proxy(z,{get:function(e,n,i){return n in z?Reflect.get(e,n,i):Ai(Reflect.get(my,n,i),n)}});else{window.dd&&console.warn("\u5DF2\u7ECF\u5B58\u5728 window.dd \u53D8\u91CF\uFF0C\u5F15\u5165 gdt-jsapi \u4F1A\u4FEE\u6539 window.dd \u7684\u503C\u3002");try{Object.defineProperty(window,"dd",{value:z,writable:!0})}catch(e){console.error(e)}window.gdt&&console.warn("\u5DF2\u7ECF\u5B58\u5728 window.gdt \u53D8\u91CF\uFF0C\u5F15\u5165 gdt-jsapi \u4F1A\u4FEE\u6539 window.gdt \u7684\u503C\u3002");try{Object.defineProperty(window,"gdt",{value:z,writable:!0})}catch(e){console.error(e)}}const fe=z;const tr={class:"login"},or=pi({name:"login"}),rr=Object.assign(or,{setup(e){const n=ki(),i=async()=>{const r=await fe.getAuthCode({});if(r){localStorage.clear(),console.log("result: ",r),mi({message:"\u767B\u5F55\u4E2D..."});const o=await vi({code:r.code,loginType:"DING_AC_LOGIN"});console.log(o),setTimeout(()=>{hi("\u767B\u5F55\u6210\u529F\uFF01"),setTimeout(()=>{n.replace({name:"indicatorBoard"})},1e3)},1500)}};return fi(()=>{i()}),(r,o)=>(Ii(),gi("div",tr))}});export{rr as default};