yc-ui2 0.1.3-beta5 → 0.1.3-beta7

Sign up to get free protection for your applications and to get access to all the features.
@@ -21,5 +21,5 @@
21
21
  * @internal
22
22
  * @license Modernizr 3.0.0pre (Custom Build) | MIT
23
23
  */
24
- function a(e,t){if(!r.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,a=n in document;if(!a){var o=document.createElement("div");o.setAttribute(n,"return;"),a="function"===typeof o[n]}return!a&&i&&"wheel"===e&&(a=document.implementation.hasFeature("Events.wheel","3.0")),a}r.canUseDOM&&(i=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),e.exports=a},5399:function(e,t,n){"use strict";var i=n(9088),r=n(6211),a=10,o=40,s=800;function l(e){var t=0,n=0,i=0,r=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),i=t*a,r=n*a,"deltaY"in e&&(r=e.deltaY),"deltaX"in e&&(i=e.deltaX),(i||r)&&e.deltaMode&&(1==e.deltaMode?(i*=o,r*=o):(i*=s,r*=s)),i&&!t&&(t=i<1?-1:1),r&&!n&&(n=r<1?-1:1),{spinX:t,spinY:n,pixelX:i,pixelY:r}}l.getEventType=function(){return i.firefox()?"DOMMouseScroll":r("wheel")?"wheel":"mousewheel"},e.exports=l},3569:function(e,t,n){"use strict";n.r(t);n(7658);var i=function(){if("undefined"!==typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,i){return e[0]===t&&(n=i,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),i=this.__entries__[n];return i&&i[1]},t.prototype.set=function(t,n){var i=e(this.__entries__,t);~i?this.__entries__[i][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,i=e(n,t);~i&&n.splice(i,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,i=this.__entries__;n<i.length;n++){var r=i[n];e.call(t,r[1],r[0])}},t}()}(),r="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,a=function(){return"undefined"!==typeof n.g&&n.g.Math===Math?n.g:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")()}(),o=function(){return"function"===typeof requestAnimationFrame?requestAnimationFrame.bind(a):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)}}(),s=2;function l(e,t){var n=!1,i=!1,r=0;function a(){n&&(n=!1,e()),i&&u()}function l(){o(a)}function u(){var e=Date.now();if(n){if(e-r<s)return;i=!0}else n=!0,i=!1,setTimeout(l,t);r=e}return u}var u=20,c=["top","right","bottom","left","width","height","size","weight"],h="undefined"!==typeof MutationObserver,d=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=l(this.refresh.bind(this),u)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var e=this.updateObservers_();e&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),h?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t,i=c.some((function(e){return!!~n.indexOf(e)}));i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),f=function(e,t){for(var n=0,i=Object.keys(t);n<i.length;n++){var r=i[n];Object.defineProperty(e,r,{value:t[r],enumerable:!1,writable:!1,configurable:!0})}return e},p=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||a},m=k(0,0,0,0);function v(e){return parseFloat(e)||0}function g(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){var i=e["border-"+n+"-width"];return t+v(i)}),0)}function y(e){for(var t=["top","right","bottom","left"],n={},i=0,r=t;i<r.length;i++){var a=r[i],o=e["padding-"+a];n[a]=v(o)}return n}function b(e){var t=e.getBBox();return k(0,0,t.width,t.height)}function _(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return m;var i=p(e).getComputedStyle(e),r=y(i),a=r.left+r.right,o=r.top+r.bottom,s=v(i.width),l=v(i.height);if("border-box"===i.boxSizing&&(Math.round(s+a)!==t&&(s-=g(i,"left","right")+a),Math.round(l+o)!==n&&(l-=g(i,"top","bottom")+o)),!S(e)){var u=Math.round(s+a)-t,c=Math.round(l+o)-n;1!==Math.abs(u)&&(s-=u),1!==Math.abs(c)&&(l-=c)}return k(r.left,r.top,s,l)}var x=function(){return"undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof p(e).SVGGraphicsElement}:function(e){return e instanceof p(e).SVGElement&&"function"===typeof e.getBBox}}();function S(e){return e===p(e).document.documentElement}function w(e){return r?x(e)?b(e):_(e):m}function C(e){var t=e.x,n=e.y,i=e.width,r=e.height,a="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,o=Object.create(a.prototype);return f(o,{x:t,y:n,width:i,height:r,top:n,right:t+i,bottom:r+n,left:t}),o}function k(e,t,n,i){return{x:e,y:t,width:n,height:i}}var O=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=k(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=w(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),D=function(){function e(e,t){var n=C(t);f(this,{target:e,contentRect:n})}return e}(),E=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new i,"function"!==typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof p(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new O(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof p(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new D(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),N="undefined"!==typeof WeakMap?new WeakMap:new i,A=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=d.getInstance(),i=new E(t,n,this);N.set(this,i)}return e}();["observe","unobserve","disconnect"].forEach((function(e){A.prototype[e]=function(){var t;return(t=N.get(this))[e].apply(t,arguments)}}));var T=function(){return"undefined"!==typeof a.ResizeObserver?a.ResizeObserver:A}();t["default"]=T},6365:function(e,t,n){var i=n(8714);e.exports=function(e,t,n){return void 0===n?i(e,t,!1):i(e,n,!1!==t)}},7869:function(e,t,n){var i=n(8714),r=n(6365);e.exports={throttle:i,debounce:r}},8714:function(e){e.exports=function(e,t,n,i){var r,a=0;function o(){var o=this,s=Number(new Date)-a,l=arguments;function u(){a=Number(new Date),n.apply(o,l)}function c(){r=void 0}i&&!r&&u(),r&&clearTimeout(r),void 0===i&&s>e?u():!0!==t&&(r=setTimeout(i?c:u,void 0===i?e-s:e))}return"boolean"!==typeof t&&(i=n,n=t,t=void 0),o}},9343:function(__unused_webpack_module,__unused_webpack_exports,__webpack_require__){__webpack_require__(7658),function(){"undefined"===typeof xtxasyn&&(xtxasyn={})}(),function(){function e(){this.map={}}e.prototype={put:function(e,t){this.map[e]=t},get:function(e){return this.map.hasOwnProperty(e)?this.map[e]:null},remove:function(e){return!!this.map.hasOwnProperty(e)&&delete this.map[e]},removeAll:function(){this.map={}},keySet:function(){var e=[];for(var t in this.map)e.push(t);return e}},e.prototype.constructor=e,xtxasyn.HashMap=e}(),function(){function initUtilObject(xtxasyn){var util=xtxasyn.util=xtxasyn.util||{};util.checkBrowserISIE=function(){return!(!window.ActiveXObject&&!("ActiveXObject"in window))},util.checkLocationIsHttps=function(){return"https:"==document.location.protocol},util.evalFunction=function(func){return"function"===typeof func?func:"string"!==typeof func?null:void(cb=eval(func))},util.consolelog=function(e){void 0!=window.console&&void 0!=window.console.log&&console.log(e)},util.isEmpty=function(e){return!e||"string"==typeof e&&""==e},util.loadIECtl=function(clsid,ctlName,checkFunc){if(!util.checkBrowserISIE())return null;var ctl=document.getElementById(ctlName);if(ctl)return ctl;try{var loadObjString='<object id="'+ctlName+'" classid="CLSID:'+clsid+'" style="HEIGHT:0px; WIDTH:0px">';if(loadObjString+="</object>",document.write(loadObjString),null!=checkFunc&&""!=checkFunc&&void 0==eval(ctlName+"."+checkFunc))return null}catch(e){return util.consolelog(e),null}return document.getElementById(ctlName)},util.getAutoExecFunctionString=function(e){var t="(";return t+=e.toString(),t+=")()",t},util.attachIEEvent=function(ctlName,eventName,eventFunc){var ctl;ctl="string"===typeof ctlName?eval(ctlName):ctlName,eventName=eventName.toLowerCase();var cb=util.evalFunction(eventFunc);if(null!=cb)if(ctl.attachEvent)ctl.attachEvent(eventName,cb);else{var handler=document.createElement("script");handler.setAttribute("for",ctlName),handler.setAttribute("event",eventName);var eventScript=util.getAutoExecFunctionString(eventFunc);handler.appendChild(document.createTextNode(eventScript)),document.getElementsByTagName("head")[0].appendChild(handler)}},util.loadWebSocketCtl=function(e,t){if(xtxasyn.wsObject)return xtxasyn.wsObject;var n;n=util.checkLocationIsHttps()?"wss://"+t:"ws://"+e;var i={socket:void 0,wsMessageQueue:new xtxasyn.HashMap,wsMessageQueueId:0,wsEventQueue:new xtxasyn.HashMap,wsURL:n,wsCacheMessage:[]};xtxasyn.wsObject=i,xtxasyn.wsObject.wsEventQueue.put("onusbkeychange",util.evalFunction(xtxasyn.custom.defaultUsbkeyChange));try{i.socket=new WebSocket(n)}catch(r){return util.consolelog(r),null}return i.socket.onopen=function(e){xtxasyn.util.consolelog("open websocket["+n+"] ok..."),xtxasyn.SOF_GetVersion((function(e){util.consolelog("SOF_GetVersion:("+e.retVal+")")}));while(xtxasyn.wsObject.wsCacheMessage.length>0){var t=xtxasyn.wsObject.wsCacheMessage.shift();xtxasyn.wsObject.socket.send(t)}},i.socket.onclose=function(i){util.consolelog("websocket["+n+"] closed, reopen it..."),xtxasyn.wsObject=void 0,xtxasyn.XTXAppWebSocket=xtxasyn.util.loadWebSocketCtl(e,t)},i.socket.onmessage=function(e){if(xtxasyn.util.isEmpty(e.data))util.consolelog("onmessage evt.data is NULL or empty!!!");else try{var t=JSON.parse(e.data),n=void 0;if(!t.hasOwnProperty("call_cmd_id"))return void util.consolelog("return JSON not include call_cmd_id!!!");n=t["call_cmd_id"];var i=void 0;t.hasOwnProperty("retValue")?i=t["retValue"]:t.hasOwnProperty("retVal")&&(i=t["retVal"]);var a=void 0,o=n.toLowerCase(),s=xtxasyn.wsObject.wsEventQueue.get(o);if(s&&"function"==typeof s)s(i);else{var l=xtxasyn.wsObject.wsMessageQueue.get(n);if(!l||!l.method)return void util.consolelog("can't find call_cmd_id["+t["call_cmd_id"]+"]'s method name!!!");if(a=l.method,s=l.cb,!s||"function"!=typeof s)return void util.consolelog("can't find call_cmd_id["+t["call_cmd_id"]+"]'s call back function!!!");var u,c=l.ctx;c=c||{returnType:"string"},"bool"==c.returnType?(u="string"==typeof i?"true"==i:i,void 0==u&&(u=!1)):"number"==c.returnType?(u="string"==typeof i?Number(i):i,void 0==u&&(u=-1)):(u=i,void 0==u&&(u="")),t.token&&xtxasyn.custom.setToken(t.token),(("SOF_Login"==a||"SOF_LoginEx"==a)&&!u||"SOF_Logout"==a&&u)&&xtxasyn.custom.setToken("");var h={retVal:u,ctx:c};s(h),xtxasyn.wsObject.wsMessageQueue.remove(n)}}catch(r){return}},i.socket.onerror=function(e){xtxasyn.util.consolelog(e.data)},i},util.attachWebSocketEvent=function(e,t,n){null!=e&&e.wsEventQueue.put(t.toLowerCase(),util.evalFunction(n))},util.callWebSocketMethod=function(e,t,n,i,r,a,o){if(null!=e){if(e.wsMessageQueueId++,"function"==typeof i){r=r||{},r.returnType=a;var s={cb:i,ctx:r,method:n};e.wsMessageQueue.put("i_"+e.wsMessageQueueId,s)}var l={call_cmd_id:"i_"+e.wsMessageQueueId,CLSID:t,xtx_func_name:n,func:n,URL:window.location.href};if(arguments.length>6){for(var u=1;u<=o.length;u++){var c="param_"+u;l[c]=o[u-1]}l["param"]=o}var h=xtxasyn.custom.getToken();h&&""!=h&&(l.token=h),e.socket.readyState==WebSocket.OPEN?e.socket.send(JSON.stringify(l)):e.socket.readyState==WebSocket.CONNECTING?e.wsCacheMessage.push(JSON.stringify(l)):xtxasyn.util.consolelog("Can't connect to WebSocket server["+e.wsURL+"]!!!")}},util.SynToAsyn=function(e,t,n){if("function"==typeof t){var i={retVal:e,ctx:n};t(i)}}}initUtilObject(xtxasyn)}(),function(){function initCustomActions(xtxasyn){var custom=xtxasyn.custom=xtxasyn.custom||{};custom.softCertListID="",custom.hardCertListID="",custom.allCertListID="",custom.loginCertID="",custom.logoutFunc=null,custom.UsbkeyChangeFunc=null,custom.loginToken="",custom.errorReportFunc=function(e){alert(e)},custom.setAutoLogoutParameter=function(e,t){var n=xtxasyn.custom;n.loginCertID=e,n.logoutFunc=t},custom.clearDropList=function(dropListId){if(""!=dropListId){var obj=document.getElementById(dropListId);if(void 0==obj&&(obj=eval(dropListId)),void 0!=obj){var i,n=obj.length;for(i=0;i<n;i++)obj.remove(0)}}},custom.pushOneDropListBox=function(userListArray,strListID){var obj=document.getElementById(strListID);if(void 0==obj&&(obj=eval(strListID)),void 0!=obj)for(var i=0;i<userListArray.length;i++){var certObj=userListArray[i],objItem=new Option(certObj.certName,certObj.certID);obj.options.add(objItem)}},custom.pushUserListToAllDroplist=function(e){var t=xtxasyn.custom;t.clearDropList(t.softCertListID),t.clearDropList(t.hardCertListID),t.clearDropList(t.allCertListID);var n=e.retVal,i=[];while(1){var r=n.indexOf("&&&");if(r<=0)break;var a=n.substring(0,r),o=a.substring(0,a.indexOf("||")),s=a.substring(a.indexOf("||")+2,a.length);i.push({certName:o,certID:s}),""!=t.hardCertListID&&xtxasyn.GetDeviceInfo(s,7,(function(e){"HARD"==e.retVal&&t.pushOneDropListBox([e.ctx],t.hardCertListID)}),{certName:o,certID:s}),""!=t.softCertListID&&xtxasyn.GetDeviceInfo(s,7,(function(e){"SOFT"==e.retVal&&t.pushOneDropListBox([e.ctx],t.softCertListID)}),{certName:o,certID:s});var l=n.length;n=n.substring(r+3,l)}""!=t.allCertListID&&t.pushOneDropListBox(i,t.allCertListID)},custom.setUserCertList=function(e,t){var n=xtxasyn.custom;t!=CERT_TYPE_ALL&&void 0!=t||(n.allCertListID=e),t==CERT_TYPE_HARD&&(n.hardCertListID=e),t==CERT_TYPE_SOFT&&(n.softCertListID=e),xtxasyn.SOF_GetUserList(n.pushUserListToAllDroplist)},custom.setOnUsbKeyChangeCallBack=function(e){var t=xtxasyn.custom;t.UsbkeyChangeFunc=e},custom.setErrorReportFunc=function(e){var t=xtxasyn.custom;t.errorReportFunc=e},custom.autoLogoutCallBack=function(e){var t=xtxasyn.custom;e.retVal.indexOf(t.loginCertID)<=0&&t.logoutFunc()},custom.defaultUsbkeyChange=function(){var e=xtxasyn.custom;xtxasyn.SOF_GetUserList(e.pushUserListToAllDroplist),"function"==typeof e.UsbkeyChangeFunc&&e.UsbkeyChangeFunc(),""!=e.loginCertID&&"function"==typeof e.logoutFunc&&xtxasyn.SOF_GetUserList(e.autoLogoutCallBack)},custom.getToken=function(){return custom.loginToken},custom.setToken=function(e){custom.loginToken=e}}initCustomActions(xtxasyn)}(),function(){function e(e){var t=e.util,n=e.custom;if(e.XTXAppCOM=t.loadIECtl(e.xtx_clsid,"XTXAppObj","SOF_GetVersion()"),null==e.XTXAppCOM)return n.errorReportFunc("加载XTXAppCOM控件失败,请确认已正确安装BJCA证书应用环境!"),!1;var i=e.XTXAppCOM;t.attachIEEvent("XTXAppObj","onUsbkeyChange",e.custom.defaultUsbkeyChange);var r=t.loadIECtl(e.getpic_clsid,"GetPicObj","Hash('0')");null==r||(i.GetPic=function(e){return r.GetPic(e)},i.Hash=function(e){return r.Hash(e)},i.ConvertPicFormat=function(e,t){return r.ConvertPicFormat(e,t)},i.ConvertGif2Jpg=function(e){return r.ConvertGif2Jpg(e)},i.GetPic1=function(e){return r.GetPic1(e)},i.ConvertPicSize=function(e,t,n){return r.ConvertPicSize(e,t,n)});var a=t.loadIECtl(e.xtx_version_clsid,"XTXVersionOBJ","GetEnvVersion()");return null==a||(i.GetEnvVersion=function(){return a.GetEnvVersion()}),!0}function t(e){return e.XTXAppWebSocket=e.util.loadWebSocketCtl("127.0.0.1:21051/xtxapp/","127.0.0.1:21061/xtxapp/"),null!=e.XTXAppWebSocket||(custom.errorReportFunc("连接XTXAppCOM服务失败,请确认已正确安装BJCA证书应用环境!"),!1)}function n(n){var i,r=n.util;if(n.xtx_clsid="3F367B74-92D9-4C5E-AB93-234F8A91D5E6",n.getpic_clsid="3BC3C868-95B5-47ED-8686-E0E3E94EF366",n.xtx_version_clsid="574887FB-22A5-488B-A49C-2CF25F56BE68",r.checkBrowserISIE()){if(!e(n))return!1;i=function(e){""==e.inParams?window[e.funcName]=new Function("cb","ctx","xtxasyn.util.SynToAsyn(xtxasyn.XTXAppCOM."+e.funcName+"(), cb, ctx);"):window[e.funcName]=new Function(e.inParams,"cb","ctx","xtxasyn.util.SynToAsyn(xtxasyn.XTXAppCOM."+e.funcName+"("+e.inParams+"), cb, ctx);")}}else{if(!t(n))return!1;i=function(e){""==e.inParams?window[e.funcName]=new Function("cb, ctx","xtxasyn.util.callWebSocketMethod(xtxasyn.XTXAppWebSocket, '"+e.clsid+"', '"+e.funcName+"', cb, ctx, '"+e.outParamType+"', []);"):window[e.funcName]=new Function(e.inParams+", cb, ctx","xtxasyn.util.callWebSocketMethod(xtxasyn.XTXAppWebSocket, '"+e.clsid+"', '"+e.funcName+"', cb, ctx, '"+e.outParamType+"', ["+e.inParams+"]);")}}for(var a=[{funcName:"SOF_SetSignMethod",inParams:"SignMethod",outParamType:"number",clsid:n.xtx_clsid,aliasName:"SetSignMethod"},{funcName:"SOF_GetSignMethod",inParams:"",outParamType:"number",clsid:n.xtx_clsid},{funcName:"SOF_SetEncryptMethod",inParams:"EncryptMethod",outParamType:"number",clsid:n.xtx_clsid},{funcName:"SOF_GetEncryptMethod",inParams:"",outParamType:"number",clsid:n.xtx_clsid},{funcName:"SOF_GetUserList",inParams:"",outParamType:"string",clsid:n.xtx_clsid,aliasName:"GetUserList"},{funcName:"SOF_ExportUserCert",inParams:"CertID",outParamType:"string",clsid:n.xtx_clsid,aliasName:"GetSignCert"},{funcName:"SOF_Login",inParams:"CertID, PassWd",outParamType:"bool",clsid:n.xtx_clsid,aliasName:"VerifyUserPIN"},{funcName:"SOF_GetPinRetryCount",inParams:"CertID",outParamType:"number",clsid:n.xtx_clsid,aliasName:"GetUserPINRetryCount"},{funcName:"SOF_ChangePassWd",inParams:"CertID, oldPass, newPass",outParamType:"bool",clsid:n.xtx_clsid,aliasName:"ChangeUserPassword"},{funcName:"SOF_GetCertInfo",inParams:"Cert, type",outParamType:"string",clsid:n.xtx_clsid,aliasName:"GetCertBasicinfo"},{funcName:"SOF_GetCertInfoByOid",inParams:"Cert, Oid",outParamType:"string",clsid:n.xtx_clsid,aliasName:"GetExtCertInfoByOID"},{funcName:"SOF_SignData",inParams:"CertID, InData",outParamType:"string",clsid:n.xtx_clsid,aliasName:"SignedData"},{funcName:"SOF_VerifySignedData",inParams:"Cert, InData, SignValue",outParamType:"bool",clsid:n.xtx_clsid,aliasName:"VerifySignedData"},{funcName:"SOF_SignFile",inParams:"CertID, InFile",outParamType:"string",clsid:n.xtx_clsid,aliasName:"SOF_SignFile"},{funcName:"SOF_VerifySignedFile",inParams:"Cert, InFile, SignValue",outParamType:"bool",clsid:n.xtx_clsid,aliasName:"VerifySignFile"},{funcName:"SOF_EncryptData",inParams:"Cert, InData",outParamType:"string",clsid:n.xtx_clsid,aliasName:"EncodeP7Enveloped"},{funcName:"SOF_DecryptData",inParams:"CertID, InData",outParamType:"string",clsid:n.xtx_clsid,aliasName:"DecodeP7Enveloped"},{funcName:"SOF_EncryptFile",inParams:"Cert, InFile, OutFile",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"SOF_DecryptFile",inParams:"CertID, InFile, OutFile",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"SOF_SignMessage",inParams:"dwFlag, CertID, InData",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_VerifySignedMessage",inParams:"MessageData, InData",outParamType:"bool",clsid:n.xtx_clsid,aliasName:"VerifyDatabyP7"},{funcName:"SOF_GetInfoFromSignedMessage",inParams:"SignedMessage, type",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_SignDataXML",inParams:"CertID, InData",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_VerifySignedDataXML",inParams:"InData",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"SOF_GetXMLSignatureInfo",inParams:"XMLSignedData, type",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_GenRandom",inParams:"RandomLen",outParamType:"string",clsid:n.xtx_clsid,aliasName:"GenerateRandom"},{funcName:"SOF_PubKeyEncrypt",inParams:"Cert, InData",outParamType:"string",clsid:n.xtx_clsid,aliasName:"PubKeyEncrypt"},{funcName:"SOF_PriKeyDecrypt",inParams:"CertID, InData",outParamType:"string",clsid:n.xtx_clsid,aliasName:"PriKeyDecrypt"},{funcName:"SOF_SecertSegment",inParams:"Secert, m, n, k",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_SecertRecovery",inParams:"Seg",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_GetLastError",inParams:"",outParamType:"number",clsid:n.xtx_clsid},{funcName:"GetDeviceCount",inParams:"",outParamType:"number",clsid:n.xtx_clsid},{funcName:"GetAllDeviceSN",inParams:"",outParamType:"string",clsid:n.xtx_clsid},{funcName:"GetDeviceSNByIndex",inParams:"iIndex",outParamType:"string",clsid:n.xtx_clsid},{funcName:"GetDeviceInfo",inParams:"sDeviceSN, iType",outParamType:"string",clsid:n.xtx_clsid},{funcName:"ChangeAdminPass",inParams:"sDeviceSN, sOldPass, sNewPass",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"UnlockUserPass",inParams:"sDeviceSN, sAdminPass, sNewUserPass",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"GenerateKeyPair",inParams:"sDeviceSN, sContainerName, iKeyType, bSign",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"ExportPubKey",inParams:"sDeviceSN, sContainerName, bSign",outParamType:"string",clsid:n.xtx_clsid},{funcName:"ImportSignCert",inParams:"sDeviceSN, sContainerName, sCert",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"ImportEncCert",inParams:"sDeviceSN, sContainerName, sCert, sPriKeyCipher",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"ReadFile",inParams:"sDeviceSN, sFileName",outParamType:"string",clsid:n.xtx_clsid,aliasName:"readFile"},{funcName:"WriteFile",inParams:"sDeviceSN, sFileName, sContent, bPrivate",outParamType:"bool",clsid:n.xtx_clsid,aliasName:"writeFile"},{funcName:"IsContainerExist",inParams:"sDeviceSN, sContainerName",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"DeleteContainer",inParams:"sDeviceSN, sContainerName",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"ExportPKCS10",inParams:"sDeviceSN, sContainerName, sDN, bSign",outParamType:"string",clsid:n.xtx_clsid},{funcName:"InitDevice",inParams:"sDeviceSN, sAdminPass",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"AddSignInfo",inParams:"sUserPass",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"SOF_GetVersion",inParams:"",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_ExportExChangeUserCert",inParams:"CertID",outParamType:"string",clsid:n.xtx_clsid,aliasName:"GetExchCert"},{funcName:"SOF_ValidateCert",inParams:"Cert",outParamType:"number",clsid:n.xtx_clsid,aliasName:"ValidateCert"},{funcName:"GetENVSN",inParams:"sDeviceSN",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SetENVSN",inParams:"sDeviceSN, sEnvsn",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"IsDeviceExist",inParams:"sDeviceSN",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"GetContainerCount",inParams:"sDeviceSN",outParamType:"number",clsid:n.xtx_clsid},{funcName:"SOF_SymEncryptData",inParams:"sKey, indata",outParamType:"string",clsid:n.xtx_clsid,aliasName:"EncryptData"},{funcName:"SOF_SymDecryptData",inParams:"sKey, indata",outParamType:"string",clsid:n.xtx_clsid,aliasName:"DecryptData"},{funcName:"SOF_SymEncryptFile",inParams:"sKey, inFile, outFile",outParamType:"bool",clsid:n.xtx_clsid,aliasName:"EncryptFile"},{funcName:"SOF_SymDecryptFile",inParams:"sKey, inFile, outFile",outParamType:"bool",clsid:n.xtx_clsid,aliasName:"DecryptFile"},{funcName:"SOF_GetLastErrMsg",inParams:"",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_Base64Encode",inParams:"sIndata",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_Base64Decode",inParams:"sIndata",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_HashData",inParams:"hashAlg, sInData",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_HashFile",inParams:"hashAlg, inFile",outParamType:"string",clsid:n.xtx_clsid},{funcName:"UnlockUserPassEx",inParams:"sDeviceSN, sAdminPin, sNewUserPass",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"DeleteOldContainer",inParams:"sDeviceSN",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"WriteFileEx",inParams:"sDeviceSN, sFileName, sContent",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"ReadFileEx",inParams:"sDeviceSN, sFileName",outParamType:"string",clsid:n.xtx_clsid},{funcName:"WriteFileBase64",inParams:"sDeviceSN, sFileName, sContent",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"DeleteFile",inParams:"sDeviceSN, sFileName",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"SOF_EncryptDataEx",inParams:"Cert, InData",outParamType:"string",clsid:n.xtx_clsid},{funcName:"Base64EncodeFile",inParams:"sInFile",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_GetRetryCount",inParams:"CertID",outParamType:"number",clsid:n.xtx_clsid},{funcName:"SOF_GetAllContainerName",inParams:"sDeviceSN",outParamType:"string",clsid:n.xtx_clsid},{funcName:"CreateSoftDevice",inParams:"sDeviceSN, sLabel",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"DeleteSoftDevice",inParams:"sDeviceSN, sPasswd",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"EnableSoftDevice",inParams:"enable, sDeviceSN",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"SoftDeviceBackup",inParams:"sDeviceSN, sPasswd",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SoftDeviceRestore",inParams:"sDeviceSN, sPasswd, sInFilePath",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"SOF_Logout",inParams:"CertID",outParamType:"bool",clsid:n.xtx_clsid,aliasName:"Logout"},{funcName:"SetUserConfig",inParams:"type, strConfig",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"SOF_SignByteData",inParams:"CertID, byteLen",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_VerifySignedByteData",inParams:"Cert, byteLen, SignValue",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"OTP_GetChallengeCode",inParams:"sCertID",outParamType:"string",clsid:n.xtx_clsid},{funcName:"ImportEncCertEx",inParams:"sDeviceSN, sContainerName, sCert, sPriKeyCipher, ulSymAlg",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"SOF_GetCertEntity",inParams:"sCert",outParamType:"string",clsid:n.xtx_clsid,aliasName:"GetCertEntity"},{funcName:"SOF_HMAC",inParams:"hashid, key, indata",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_SignDataByPriKey",inParams:"sPriKey, sCert, sInData",outParamType:"string",clsid:n.xtx_clsid},{funcName:"ImportKeyCertToSoftDevice",inParams:"sDeviceSN, sContainerName, sPriKey, sCert, bSign",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"InitDeviceEx",inParams:"sDeviceSN, sAdminPass, sUserPin, sKeyLabel, adminPinMaxRetry, userPinMaxRetry",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"SelectFile",inParams:"",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_SignHashData",inParams:"CertID, b64ashData, hashAlg",outParamType:"string",clsid:n.xtx_clsid,aliasName:"SignHashData"},{funcName:"SOF_VerifySignedHashData",inParams:"Cert, b64ashData, SignValue, hashAlg",outParamType:"bool",clsid:n.xtx_clsid,aliasName:"VerifySignedHashData"},{funcName:"CheckSoftDeviceEnv",inParams:"",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"ImportPfxToDevice",inParams:"sDeviceSN, sContainerName, bSign, strPfx, strPfxPass",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"SOF_HashDataEx",inParams:"hashAlg, sInData, sCert, sID",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_HashFileEx",inParams:"hashAlg, inFile, sCert, sID",outParamType:"string",clsid:n.xtx_clsid},{funcName:"GetDeviceCountEx",inParams:"type",outParamType:"number",clsid:n.xtx_clsid},{funcName:"GetAllDeviceSNEx",inParams:"type",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_UpdateCert",inParams:"CertID, type",outParamType:"number",clsid:n.xtx_clsid},{funcName:"OpenSpecifiedFolder",inParams:"backupFilePath",outParamType:"",clsid:n.xtx_clsid},{funcName:"OTP_GetChallengeCodeEx",inParams:"sCertID, szAccount, money",outParamType:"string",clsid:n.xtx_clsid},{funcName:"Base64DecodeFile",inParams:"sInData, sFilePath",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"EnumFilesInDevice",inParams:"sDeviceSN",outParamType:"string",clsid:n.xtx_clsid},{funcName:"OTP_Halt",inParams:"sCertID",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"SOF_TSGenREQ",inParams:"b64Hash, hashAlg, bReqCert, policyID, b64Nonce, b64Extension",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_TSCompareNonce",inParams:"b64TSReq, b64TSAResp",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"SOF_TSGenPDFSignature",inParams:"b64TSAResp, b64OriPDFSignature",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_TSVerifyPDFSignature",inParams:"b64TSPDFSignature",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"SOF_TSGetPDFSignatureInfo",inParams:"b64TSPDFSignature, iType",outParamType:"string",clsid:n.xtx_clsid},{funcName:"OTP_GetState",inParams:"sCertID, bCert",outParamType:"string",clsid:n.xtx_clsid},{funcName:"OTP_GetSyncCode",inParams:"sCertID, ChallengeCode",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_IsLogin",inParams:"CertID",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"SOF_LoginEx",inParams:"CertID, PassWd, updateFlag",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"EnumSupportDeviceList",inParams:"",outParamType:"string",clsid:n.xtx_clsid},{funcName:"ExportPfxFromDevice",inParams:"sDeviceSN, sContainerName, bSign, strPfxPass",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_SignHashMessage",inParams:"CertID, InHashData, hashAlg",outParamType:"string",clsid:n.xtx_clsid},{funcName:"ExportPfxToFile",inParams:"sDeviceSN, sContainerName, bSign, strPfxPass",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_SignAPK",inParams:"CertID, strOriSignature",outParamType:"string",clsid:n.xtx_clsid},{funcName:"YZT_GenerateKeyPair",inParams:"sDeviceSN, sContainerName, iKeyTypeRSA, iKeyTypeSM2",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"YZT_ExportPubKey",inParams:"sDeviceSN, sContainerName, bSign",outParamType:"string",clsid:n.xtx_clsid},{funcName:"YZT_ImportSignCert",inParams:"sDeviceSN, sContainerName, sRSACert, sSM2Cert",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"YZT_ImportEncCert",inParams:"sDeviceSN, sContainerName, sRSACert, sRSAPriKeyCipher, ulRSASymAlg, sSM2Cert, sSM2PriKeyCipher, ulSM2SymAlg",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"SOF_ListenUKey",inParams:"Parm",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_EnableLoginWindow",inParams:"Parm",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_SignEnvelope",inParams:"CertID, Cert, InData",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_UnSignEnvelope",inParams:"CertID, InData",outParamType:"string",clsid:n.xtx_clsid},{funcName:"BIO_MAKExportPKCS10",inParams:"sDeviceSN, iKeyType, sDN",outParamType:"string",clsid:n.xtx_clsid},{funcName:"BIO_MAKImportSignEncCert",inParams:"sDeviceSN, sSignCert, sEncCert, sPriKeyCipher",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"BIO_IssueDAKCert",inParams:"sDeviceSN, iKeyType, sDN",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"BIO_InfoCollect",inParams:"",outParamType:"string",clsid:n.xtx_clsid},{funcName:"BIO_GetBioInfo",inParams:"sDeviceSN",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_GetLastLoginCertID",inParams:"",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_ReadESealData",inParams:"CertID, ulKeyIndex, ulKeyAlgId, ulFlags",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_ReadKFXESealData",inParams:"CertID, ulKeyIndex, ulKeyAlgId, ulFlags",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_SymDecryptFileToData",inParams:"sKey, inFile",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_SignMessageBase64",inParams:"dwFlag, CertID, InData",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_VerifySignedMessageBase64",inParams:"MessageData, InData",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"SOF_VerifySignedHashMessage",inParams:"MessageData, InHashData",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"SOF_SignDataBase64",inParams:"CertID, InData",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_VerifySignedDataBase64",inParams:"Cert, InData, SignValue",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"SOF_HashDataExBase64",inParams:"hashAlg, sInData, sCert, sID",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_GetProductVersion",inParams:"",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_UpdateCertEx",inParams:"CertID, PassWd",outParamType:"number",clsid:n.xtx_clsid},{funcName:"SOF_GetLastSignDataCertID",inParams:"CertID",outParamType:"string",clsid:n.xtx_clsid},{funcName:"BIO_SetUserConfig",inParams:"CertID, type, strConfig",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"BIO_InvokeCommand",inParams:"CertID, bstrCommand",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_ImportSymmKey",inParams:"CertID, ulKeyIndex, InData, ulFlags",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"SOF_WriteESealData",inParams:"CertID, InData, ulFlags",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"SOF_EPS_Encrypt",inParams:"CertID, ulKeyIndex, ulKeyAlgId, IVData, DivCount, DivComponent, InData, ulFlags",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_EPS_Decrypt",inParams:"CertID, ulKeyIndex, ulKeyAlgId, IVData, DivCount, DivComponent, InData, ulFlags",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_EPS_Mac",inParams:"CertID, ulKeyIndex, ulKeyAlgId, IVData, DivCount, DivComponent, InData, ulFlags",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_PriKeyDecryptEx",inParams:"CertID, InData",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_EPS_ReadESealData",inParams:"CertID, ulKeyIndex, ulKeyAlgId, ulFlags",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_EPS_WriteESealData",inParams:"CertID, InData, ulFlags",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"EnumESeal",inParams:"sDeviceSN",outParamType:"string",clsid:n.xtx_clsid},{funcName:"GetPicture",inParams:"bstrConName",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_SignEnvelopeFile",inParams:"CertID, Cert, InFile, OutFile",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"SOF_UnSignEnvelopeFile",inParams:"CertID, InFile, OutFile",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"SOFX_EncryptFile",inParams:"CertID, Cert, InFile, OutFile, ulFlags",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"SOFX_DecryptFile",inParams:"CertID, InFile, OutFile, ulFlags",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"GetPic",inParams:"bstrConName",outParamType:"string",clsid:n.getpic_clsid},{funcName:"Hash",inParams:"inData",outParamType:"string",clsid:n.getpic_clsid},{funcName:"ConvertPicFormat",inParams:"inData, type",outParamType:"string",clsid:n.getpic_clsid},{funcName:"ConvertGif2Jpg",inParams:"inData",outParamType:"string",clsid:n.getpic_clsid},{funcName:"GetPic1",inParams:"bstrConName",outParamType:"string",clsid:n.getpic_clsid},{funcName:"ConvertPicSize",inParams:"bstrPic, w, h",outParamType:"string",clsid:n.getpic_clsid},{funcName:"GetEnvVersion",inParams:"",outParamType:"string",clsid:n.xtx_version_clsid},{funcName:"InitDeviceWithParam",inParams:"sDeviceSN, sAppName, sAdminPass, sUserPin, sKeyLabel, adminPinMaxRetry, userPinMaxRetry, createFileRights",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"SOF_SignDataEx",inParams:"CertID, InData,signFlag",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_VerifySignedDataEx",inParams:"Cert, InData, SignValue,signFlag",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"SOF_SymEncryptDataEx",inParams:"sKey,sIV,indata",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_SymDecryptDataEx",inParams:"sKey,sIV,indata",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOFX_InvokeCommand",inParams:"pluginName,InParam",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_SymEncryptFileEx",inParams:"sKey,sIV,inFile, outFile",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"SOF_SymDecryptFileEx",inParams:"sKey,sIV,inFile, outFile",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"SOF_SymDecryptFileToDataEx",inParams:"sKey,sIV,inFile",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOFX_SymEncryptDataWithPadding",inParams:"sKey,sIV,padding,indata",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOFX_SymDecryptDataWithPadding",inParams:"sKey,sIV,padding,indata",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOFX_SymEncryptFileWithPadding",inParams:"sKey,sIV,padding,inFile, outFile",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"SOFX_SymDecryptFileWithPadding",inParams:"sKey,sIV,padding,inFile, outFile",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"SOFX_VerifySignedDataWithID",inParams:"Cert, InData, SignValue,userId",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"SOFX_VerifySignedFileWithID",inParams:"Cert, InFile, SignValue,userId",outParamType:"bool",clsid:n.xtx_clsid}],o=0;o<a.length;o++)i(a[o]),n[a[o].funcName]=window[a[o].funcName],a[o].aliasName&&(window[a[o].aliasName]=window[a[o].funcName],n[a[o].aliasName]=window[a[o].funcName]);return!0}n(xtxasyn)}();var CERT_TYPE_HARD=1,CERT_TYPE_SOFT=2,CERT_TYPE_ALL=3;function SetAutoLogoutParameter(e,t){xtxasyn.custom.setAutoLogoutParameter(e,t)}function SetUserCertList(e,t){xtxasyn.custom.setUserCertList(e,t)}function SetOnUsbKeyChangeCallBack(e){xtxasyn.custom.setOnUsbKeyChangeCallBack(e)}function SetAlertFunction(e){xtxasyn.custom.setErrorReportFunc(e)}function GetLoginToken(){return xtxasyn.custom.getToken()}function SetLoginToken(e){return xtxasyn.custom.setToken(e)}function GetUserListByType(e,t,n){SOF_GetUserList((function(e){var t=e.retVal;while(1){var n=t.indexOf("&&&");if(n<=0)break;var i=t.substring(0,n),r=(i.substring(0,i.indexOf("||")),i.substring(i.indexOf("||")+2,i.length));GetDeviceType(r,(function(e){e.retVal==e.ctx.ctx.type&&"function"==typeof e.ctx.ctx.cb&&e.ctx.ctx.cb({retVal:e.ctx.userList,ctx:e.ctx.ctx.ctx})}),{userList:i,ctx:e.ctx});var a=t.length;t=t.substring(n+3,a)}}),{type:e,cb:t,ctx:n})}function GetUserList_USBKey(e,t){return GetUserListByType("HARD",e,t)}function GetUserList_Soft(){return GetUserListByType("SOFT",cb,ctx)}function SignByP7(e,t,n){return xtxasyn.SOF_SignMessage(n?1:0,e,t)}function GetSymKeyLength(){return 24}function GetDeviceType(e){return xtxasyn.GetDeviceInfo(e,7)}function HashFile(e){return xtxasyn.SOF_HashFile(2,e)}function ParseDateString(e){var t=e.substring(0,4),n=e.substring(4,6),i=e.substring(6,8),r=e.substring(8,10),a=e.substring(10,12),o=e.substring(12,14),s=new Date;return s.setFullYear(Number(t),Number(n)-1,Number(i)),s.setHours(Number(r)),s.setMinutes(Number(a)),s.setSeconds(Number(o)),s}function __loginSignRandomCallBack(e){if(""==e.retVal)return xtxasyn.custom.errorReportFunc("客户端签名失败!"),void("function"===typeof e.ctx.cb&&e.ctx.cb(!1));var t=e.ctx.objForm;t.UserSignedData.value=e.retVal,t.LoginToken.value=xtxasyn.custom.getToken(),"function"===typeof e.ctx.cb?e.ctx.cb(!0):(t.action=e.ctx.action,t.submit())}function __loginVerifyServerSignatureCallBack(e){if(!e.retVal)return xtxasyn.custom.errorReportFunc("验证服务器端信息失败!"),void("function"===typeof e.ctx.cb&&e.ctx.cb(!1));var t=e.ctx.certID;xtxasyn.SOF_SignData(t,strServerRan,__loginSignRandomCallBack,e.ctx)}function __loginCheckCertValidNotAfter(e){var t=ParseDateString(e.retVal),n=t.getTime()-(new Date).getTime();if(n<0)return xtxasyn.custom.errorReportFunc("您的证书已过期,请尽快到北京数字证书认证中心办理证书更新手续!"),void("function"===typeof e.ctx.cb&&e.ctx.cb(!1));if(days=parseInt(n/864e5),days>0&&days<=60)xtxasyn.custom.errorReportFunc("您的证书还有"+days+"天过期\n请您尽快到北京数字证书认证中心办理证书更新手续!");else if(0==days){var i=parseInt(n/36e5);i>0&&xtxasyn.custom.errorReportFunc("您的证书还有"+i+"小时过期\n请您尽快到北京数字证书认证中心办理证书更新手续!");var r=parseInt(n/6e4);if(!(r>1))return xtxasyn.custom.errorReportFunc("您的证书已过期,请尽快到北京数字证书认证中心办理证书更新手续!"),void("function"===typeof e.ctx.cb&&e.ctx.cb(!1));xtxasyn.custom.errorReportFunc("您的证书还有"+r+"分钟过期\n请您尽快到北京数字证书认证中心办理证书更新手续!")}xtxasyn.SOF_VerifySignedData(strServerCert,strServerRan,strServerSignedData,__loginVerifyServerSignatureCallBack,e.ctx)}function __loginCheckCertValidNotBefore(e){var t=ParseDateString(e.retVal),n=parseInt((t.getTime()-(new Date).getTime())/864e5);if(n>0)return xtxasyn.custom.errorReportFunc("您的证书尚未生效!距离生效日期还剩"+n+"天!"),void("function"===typeof e.ctx.cb&&e.ctx.cb(!1));var i=e.ctx.objForm.UserCert.value;xtxasyn.SOF_GetCertInfo(i,12,__loginCheckCertValidNotAfter,e.ctx)}function __loginGetSignCertCallBack(e){var t=e.retVal;if(""==t)return xtxasyn.custom.errorReportFunc("导出用户证书失败!"),void("function"===typeof e.ctx.cb&&e.ctx.cb(!1));e.ctx.objForm.UserCert.value=t,xtxasyn.SOF_GetCertInfo(t,11,__loginCheckCertValidNotBefore,e.ctx)}function __loginGetPINRetryCallBack(e){var t=Number(e.retVal);t>0?xtxasyn.custom.errorReportFunc("校验证书密码失败!您还有"+t+"次机会重试!"):0==t?xtxasyn.custom.errorReportFunc("您的证书密码已被锁死,请联系BJCA进行解锁!"):xtxasyn.custom.errorReportFunc("登录失败!"),"function"===typeof e.ctx.cb&&e.ctx.cb()}function __loginVerifyPINCallBack(e){var t=e.ctx.certID,n=e.ctx.objForm;e.retVal?(n.CertID.value=t,n.ContainerName.value=t,xtxasyn.SOF_ExportUserCert(t,__loginGetSignCertCallBack,e.ctx)):xtxasyn.SOF_GetPinRetryCount(t,__loginGetPINRetryCallBack,e.ctx)}function Login(formName,strCertID,strPin,strAction,custom_cb){var objForm=eval(formName);if(null==objForm)return xtxasyn.custom.errorReportFunc("表单错误!"),void("function"===typeof custom_cb&&custom_cb(!1));if(null==strCertID||""==strCertID)return xtxasyn.custom.errorReportFunc("请输入证书密码!"),void("function"===typeof custom_cb&&custom_cb(!1));if(null==strPin||""==strPin)return xtxasyn.custom.errorReportFunc("请输入证书密码!"),void("function"===typeof custom_cb&&custom_cb(!1));null==objForm.UserSignedData&&objForm.insertAdjacentHTML("BeforeEnd",'<input type="hidden" name="UserSignedData" value="">'),null==objForm.UserCert&&objForm.insertAdjacentHTML("BeforeEnd",'<input type="hidden" name="UserCert" value="">'),null==objForm.CertID&&objForm.insertAdjacentHTML("BeforeEnd",'<input type="hidden" name="CertID" value="">'),null==objForm.ContainerName&&objForm.insertAdjacentHTML("BeforeEnd",'<input type="hidden" name="ContainerName" value="">'),null==objForm.LoginToken&&objForm.insertAdjacentHTML("BeforeEnd",'<input type="hidden" name="LoginToken" value="">');var ctx={certID:strCertID,objForm:objForm,action:strAction,cb:custom_cb};xtxasyn.SOF_Login(strCertID,strPin,__loginVerifyPINCallBack,ctx)}},353:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{R:function(){return mToken}});var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(7658),core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__),split;function mToken(e){this.obj=e,this.SAR_OK=0,this.SAR_FALSE=1,this.SGD_SM1_ECB=257,this.SGD_SM1_CBC=258,this.SGD_SM1_CFB=260,this.SGD_SM1_OFB=264,this.SGD_SM1_MAC=272,this.SGD_SSF33_ECB=513,this.SGD_SSF33_CBC=514,this.SGD_SSF33_CFB=516,this.SGD_SSF33_OFB=520,this.SGD_SSF33_MAC=528,this.SGD_SM4_ECB=1025,this.SGD_SM4_CBC=1026,this.SGD_SM4_CFB=1028,this.SGD_SM4_OFB=1032,this.SGD_SM4_MAC=1040,this.SGD_VENDOR_DEFINED=2147483648,this.SGD_DES_ECB=this.SGD_VENDOR_DEFINED+529,this.SGD_DES_CBC=this.SGD_VENDOR_DEFINED+530,this.SGD_3DES168_ECB=this.SGD_VENDOR_DEFINED+577,this.SGD_3DES168_CBC=this.SGD_VENDOR_DEFINED+578,this.SGD_3DES112_ECB=this.SGD_VENDOR_DEFINED+545,this.SGD_3DES112_CBC=this.SGD_VENDOR_DEFINED+546,this.SGD_AES128_ECB=this.SGD_VENDOR_DEFINED+273,this.SGD_AES128_CBC=this.SGD_VENDOR_DEFINED+274,this.SGD_AES192_ECB=this.SGD_VENDOR_DEFINED+289,this.SGD_AES192_CBC=this.SGD_VENDOR_DEFINED+290,this.SGD_AES256_ECB=this.SGD_VENDOR_DEFINED+321,this.SGD_AES256_CBC=this.SGD_VENDOR_DEFINED+322,this.SGD_RSA=65536,this.SGD_SM2_1=131328,this.SGD_SM2_2=131584,this.SGD_SM2_3=132096,this.SGD_SM3=1,this.SGD_SHA1=2,this.SGD_SHA256=4,this.SGD_RAW=128,this.SGD_MD5=129,this.SGD_SHA384=130,this.SGD_SHA512=131,this.SGD_CERT_VERSION=1,this.SGD_CERT_SERIAL=2,this.SGD_CERT_ISSUE=5,this.SGD_CERT_VALID_TIME=6,this.SGD_CERT_SUBJECT=7,this.SGD_CERT_DER_PUBLIC_KEY=8,this.SGD_CERT_DER_EXTENSIONS=9,this.SGD_CERT_NOT_BEFORE=16,this.SGD_CERT_ISSUER_CN=33,this.SGD_CERT_ISSUER_O=34,this.SGD_CERT_ISSUER_OU=35,this.SGD_CERT_ISSUER_C=36,this.SGD_CERT_ISSUER_P=37,this.SGD_CERT_ISSUER_L=38,this.SGD_CERT_ISSUER_S=39,this.SGD_CERT_ISSUER_EMAIL=40,this.SGD_CERT_SUBJECT_CN=49,this.SGD_CERT_SUBJECT_O=50,this.SGD_CERT_SUBJECT_OU=51,this.SGD_CERT_SUBJECT_EMALL=52,this.SGD_REMAIN_TIME=53,this.SGD_SIGNATURE_ALG=54,this.SGD_CERT_SUBJECT_C=55,this.SGD_CERT_SUBJECT_P=56,this.SGD_CERT_SUBJECT_L=57,this.SGD_CERT_SUBJECT_S=58,this.SGD_CERT_CRL=65,this.SGD_DEVICE_SORT=513,this.SGD_DEVICE_TYPE=514,this.SGD_DEVICE_NAME=515,this.SGD_DEVICE_MANUFACTURER=516,this.SGD_DEVICE_HARDWARE_VERSION=517,this.SGD_DEVICE_SOFTWARE_VERSION=518,this.SGD_DEVICE_STANDARD_VERSION=519,this.SGD_DEVICE_SERIAL_NUMBER=520,this.SGD_DEVICE_SUPPORT_SYM_ALG=521,this.SGD_DEVICE_SUPPORT_ASYM_ALG=522,this.SGD_DEVICE_SUPPORT_HASH_ALG=523,this.SGD_DEVICE_SUPPORT_STORANGE_SPACE=524,this.SGD_DEVICE_SUPPORT_FREE_SAPCE=525,this.SGD_DEVICE_RUNTIME=526,this.SGD_DEVICE_USED_TIMES=527,this.SGD_DEVICE_LOCATION=528,this.SGD_DEVICE_DESCRIPTION=529,this.SGD_DEVICE_MANAGER_INFO=530,this.SGD_DEVICE_MAX_DATA_SIZE=531,this.TRUE=1,this.FALSE=0,this.GM3000=1,this.K5=3,this.TF=4,this.HT=5,this.SJK1137=2,this.TYPE_UKEY=1,this.TYPE_FPKEY=2;var t=null;function n(){var e={versions:function(){var e=navigator.userAgent;navigator.appVersion;return{trident:e.indexOf("Trident")>-1,presto:e.indexOf("Presto")>-1,webKit:e.indexOf("AppleWebKit")>-1,gecko:e.indexOf("Gecko")>-1&&-1==e.indexOf("KHTML"),mobile:!!e.match(/AppleWebKit.*Mobile.*/),ios:!!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),android:e.indexOf("Android")>-1||e.indexOf("Linux")>-1,iPhone:e.indexOf("iPhone")>-1,iPad:e.indexOf("iPad")>-1,webApp:-1==e.indexOf("Safari")}}(),language:(navigator.browserLanguage||navigator.language).toLowerCase()};return!(!e.versions.mobile||!(e.versions.ios||e.versions.android||e.versions.iPhone||e.versions.iPad))}this.SOF_GetLastError=function(){return null==t?-1:t.SOF_GetLastError()},this.SOF_LoadLibrary=function(e){var i;if(os=check_os(),null==t&&(t=new mTokenPlugin),e==this.GM3000)i=n()?t.SOF_LoadLibrary("1","mToken OTG","com.longmai.security.plugin.driver.otg.OTGDriver"):t.SOF_LoadLibrary("mtoken_gm3000_hnca.dll","libgm3000.1.0.so","libgm3000.1.0.dylib");else if(e==this.SJK1137)i=t.SOF_LoadLibrary("SKF_APP.dll","libhunca_hsic_skf.so","libhunca_hsic_skf.dylib");else if(e==this.HT)i=t.SOF_LoadLibrary("HUNCA_HT_20522_SKF.dll","libhunca_ht_h2070f63_skf.so","libhunca_ht_h2070f63_skf.dylib");else if(e==this.K5)i=n()?t.SOF_LoadLibrary("2","mToken K5 Bluetooth","com.longmai.security.plugin.driver.ble.BLEDriver"):t.SOF_LoadLibrary("mtoken_k5.dll","libgm3000.1.0.so","libk5.1.0.dylib");else{if(e!=this.TF)return-1;i=n()?t.SOF_LoadLibrary("0","mToken TF/SD Card","com.longmai.security.plugin.driver.tf.TFDriver"):t.SOF_LoadLibrary("mtoken_tf.dll","libgm3000.1.0.so","libtf.dylib")}return 0!=i?-2:this.SAR_OK},this.SOF_EnumDevice=function(){if(null==t)return null;var e=t.SOF_EnumDevice();return null==e||e.length<=0?null:e.split("||")},this.SOF_GetVersion=function(){return null==t?null:t.SOF_GetVersion()},this.SOF_GetDeviceInstance=function(e,n){return null==t?-1:t.SOF_GetDeviceInstance(e,n)},this.SOF_ReleaseDeviceInstance=function(){return null==t?-1:t.SOF_ReleaseDeviceInstance()},this.SOF_GetUserList=function(){if(null==t)return null;var e=t.SOF_GetUserList();if(null==e||e.length<=0)return null;for(var n=new Array,i=e.split("&&&"),r=i.length,a=0;a<r;a++)n[a]=i[a].split("||");return n},this.SOF_ExportUserCert=function(e,n){return null==t?null:t.SOF_ExportUserCert(e,n)},this.SOF_GetDeviceInfo=function(e){return null==t?null:t.SOF_GetDeviceInfo(e)},this.SOF_GetCertInfo=function(e,n){return null==t?null:t.SOF_GetCertInfo(e,n)},this.SOF_GetCertInfoByOid=function(e,n){return null==t?null:t.SOF_GetCertInfoByOid(e,n)},this.SOF_Login=function(e){return null==t?-1:t.SOF_Login(e)},this.SOF_LogOut=function(){return null==t?-1:t.SOF_LogOut()},this.SOF_GetPinRetryCount=function(){return null==t?-1:t.SOF_GetPinRetryCount()},this.SOF_ChangePassWd=function(e,n){return null==t?-1:t.SOF_ChangePassWd(e,n)},this.SOF_SetDigestMethod=function(e){return null==t?-1:t.SOF_SetDigestMethod(e)},this.SOF_SetUserID=function(e){return null==t?-1:t.SOF_SetUserID(e)},this.SOF_SetEncryptMethodAndIV=function(e,n){return null==t?-1:t.SOF_SetEncryptMethodAndIV(e,n)},this.SOF_EncryptFileToPKCS7=function(e,n,i,r){return null==t?-1:t.SOF_EncryptFileToPKCS7(e,n,i,r)},this.SOF_SignFileToPKCS7=function(e,n,i){return null==t?-1:t.SOF_SignFileToPKCS7(e,n,i)},this.SOF_VerifyFileToPKCS7=function(e,n){return null==t?-1:t.SOF_VerifyFileToPKCS7(e,n)},this.SOF_DecryptFileToPKCS7=function(e,n,i,r,a,o){return null==t?-1:t.SOF_DecryptFileToPKCS7(e,n,i,r,a,o)},this.SOF_DigestData=function(e,n,i){return null==t?null:t.SOF_DigestData(e,n,i)},this.SOF_SignData=function(e,n,i,r){return null==t?null:t.SOF_SignData(e,n,i,r)},this.SOF_SignDataInteractive=function(e,n,i,r){return null==t?null:t.SOF_SignDataInteractive(e,n,i,r)},this.SOF_SignDataToPKCS7=function(e,n,i,r){return null==t?null:t.SOF_SignDataToPKCS7(e,n,i,r)},this.SOF_VerifyDataToPKCS7=function(e,n,i){return null==t?-1:t.SOF_VerifyDataToPKCS7(e,n,i)},this.SOF_VerifySignedData=function(e,n,i,r){return null==t?-1:t.SOF_VerifySignedData(e,n,i,r)},this.SOF_EncryptDataPKCS7=function(e,n,i){return null==t?null:t.SOF_EncryptDataPKCS7(e,n,i)},this.SOF_DecryptDataPKCS7=function(e,n,i){return null==t?null:t.SOF_DecryptDataPKCS7(e,n,i)},this.SOF_GenRemoteUnblockRequest=function(){return null==t?null:t.SOF_GenRemoteUnblockRequest()},this.SOF_GenResetpwdResponse=function(e,n,i){return null==t?null:t.SOF_GenResetpwdResponse(e,n,i)},this.SOF_RemoteUnblockPIN=function(e){return null==t?null:t.SOF_RemoteUnblockPIN(e)},this.SOF_SignDataToPKCS7=function(e,n,i,r){return null==t?null:t.SOF_SignDataToPKCS7(e,n,i,r)},this.SOF_VerifyDataToPKCS7=function(e,n,i){return null==t?null:t.SOF_VerifyDataToPKCS7(e,n,i)},this.SOF_ExportPubKey=function(e,n,i){return null==t?null:t.SOF_ExportPubKey(e,n,i)},this.SOF_EncryptByPubKey=function(e,n,i){return null==t?null:t.SOF_EncryptByPubKey(e,n,i)},this.SOF_DecryptByPrvKey=function(e,n,i){return null==t?null:t.SOF_DecryptByPrvKey(e,n,i)},this.SOF_GenerateP10Request=function(e,n,i,r,a,o){return null==t?null:t.SOF_GenerateP10Request(e,n,i,r,a,o)},this.SOF_EnumCertContiner=function(){return null==t?null:t.SOF_EnumCertContiner()},this.SOF_FindContainer=function(e){return null==t?null:t.SOF_FindContainer(e)},this.SOF_DeleteCert=function(e){return null==t?null:t.SOF_DeleteCert(e)},this.SOF_DeleteContainer=function(e){return null==t?null:t.SOF_DeleteContainer(e)},this.SOF_SignByCert=function(e,n){return null==t?null:t.SOF_SignByCert(e,n)},this.SOF_VerifyByCert=function(e,n,i){return null==t?null:t.SOF_VerifyByCert(e,n,i)},this.SOF_ImportCert=function(e,n,i){return null==t?null:t.SOF_ImportCert(e,n,i)},this.SOF_ImportCryptoCertAndKey=function(e,n,i,r,a,o,s){return null==t?null:t.SOF_ImportCryptoCertAndKey(e,n,i,r,a,o,s)},this.SOF_VerifyByExtCert=function(e,n,i,r){return null==t?null:t.SOF_VerifyByExtCert(e,n,i,r)},this.SOF_GenerateRandom=function(e){return null==t?null:t.SOF_GenerateRandom(e)},this.SOF_SymEncryptFile=function(e,n,i,r){return null==t?null:t.SOF_SymEncryptFile(e,n,i,r)},this.SOF_SymDecryptFile=function(e,n,i,r){return null==t?null:t.SOF_SymDecryptFile(e,n,i,r)},this.SOF_SymEncryptData=function(e,n){return null==t?null:t.SOF_SymEncryptData(e,n)},this.SOF_SymDecryptData=function(e,n){return null==t?null:t.SOF_SymDecryptData(e,n)},this.SOF_GenerateQRCode=function(e){return null==t?null:t.SOF_GenerateQRCode(e)},this.SOF_VerifyPinMS=function(e){return null==t?null:t.SOF_VerifyPinMS(e)},this.SOF_GetHardwareType=function(){return null==t?null:t.SOF_GetHardwareType()},this.SOF_VerifyFingerprint=function(){return null==t?null:t.SOF_VerifyFingerprint()},this.SOF_EnumFiles=function(){if(null==t)return null;var e=t.SOF_EnumFiles();return null==e||e.length<=0?null:e.split("||")},this.SOF_ReadFile=function(e,n,i){return null==t?null:t.SOF_ReadFile(e,Number(n),Number(i))},this.SOF_WriteFile=function(e,n,i){return null==t?null:t.SOF_WriteFile(e,n,i)},this.SOF_CreateFile=function(e,n,i,r){return null==t?null:t.SOF_CreateFile(e,n,i,r)},this.SOF_DeleteFile=function(e){return null==t?null:t.SOF_DeleteFile(e)}}function hasPlugin(e){e=e.toLowerCase();for(var t=0;t<navigator.plugins.length;t++)if(navigator.plugins[t].name.toLowerCase().indexOf(e)>-1)return!0;return!1}function check_os(){var e=-1!=navigator.userAgent.indexOf("Windows",0)?1:0,t=(navigator.userAgent.indexOf("mac",0),-1!=navigator.userAgent.indexOf("Linux",0)?1:0);navigator.userAgent.indexOf("X11",0);return e?"MS Windows":t&&"Lunix",hasPlugin("mPlugin1.0.0.1")?(linuxWin=2,"id_mPluginV2Router"):(linuxWin=1,"mTokenPlugin")}split=split||function(e){var t,n=String.prototype.split,i=/()??/.exec("")[1]===e;return t=function(t,r,a){if("[object RegExp]"!==Object.prototype.toString.call(r))return n.call(t,r,a);var o,s,l,u,c=[],h=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.extended?"x":"")+(r.sticky?"y":""),d=0;r=new RegExp(r.source,h+"g");t+="",i||(o=new RegExp("^"+r.source+"$(?!\\s)",h)),a=a===e?-1>>>0:a>>>0;while(s=r.exec(t)){if(l=s.index+s[0].length,l>d&&(c.push(t.slice(d,s.index)),!i&&s.length>1&&s[0].replace(o,(function(){for(var t=1;t<arguments.length-2;t++)arguments[t]===e&&(s[t]=e)})),s.length>1&&s.index<t.length&&Array.prototype.push.apply(c,s.slice(1)),u=s[0].length,d=l,c.length>=a))break;r.lastIndex===s.index&&r.lastIndex++}return d===t.length?!u&&r.test("")||c.push(""):c.push(t.slice(d)),c.length>a?c.slice(0,a):c},String.prototype.split=function(e,n){return t(this,e,n)},t}();var linuxWin=0,os;function mTokenPlugin(){var _xmlhttp,retJSON="",_curDevName;function AjaxIO(e){if("id_mPluginV2Router"==os){var t=null,n="http://127.0.0.1:51235/alpha";t=document.getElementById("id_mPluginV2Router"),null==t&&alert("无法获取到插件,请确认已经安装好插件!");var i=e;return retJSON=t.invoke(n,i),retJSON}{var r="http://127.0.0.1:51235/alpha";let t=e;null==_xmlhttp&&(_xmlhttp=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP")),_xmlhttp.open("POST",r,!1),_xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded"),_xmlhttp.send("json="+t)}}function GetHttpResult(){if(4==_xmlhttp.readyState&&200==_xmlhttp.status){var obj=eval("("+_xmlhttp.responseText+")");return obj}return null}this.SOF_GetLastError=function(){var json='{"function":"SOF_GetLastError"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.errorCode}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_LoadLibrary=function(windows,linux,mac){var json='{"function":"SOF_LoadLibrary", "winDllName":"'+windows+'", "linuxSOName":"'+linux+'", "macDylibName":"'+mac+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_EnumDevice=function(){var json='{"function":"SOF_EnumDevice"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.array}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.array:-2},this.SOF_GetVersion=function(){var json='{"function":"SOF_GetVersion"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.version}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.version:-2},this.SOF_GetDeviceInstance=function(DeviceName,ApplicationName){var json='{"function":"SOF_GetDeviceInstance", "deviceName":"'+DeviceName+'", "applicationName":"'+ApplicationName+'"}';if(2==linuxWin){var retJSON="";try{_curDevName=DeviceName,retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?(0==ret.rtn&&(_curDevName=DeviceName),ret.rtn):-2},this.SOF_ReleaseDeviceInstance=function(){var json='{"function":"SOF_ReleaseDeviceInstance", "deviceName":"'+_curDevName+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.array}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_GetUserList=function(){var json='{"function":"SOF_GetUserList", "deviceName":"'+_curDevName+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.array}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.array:-2},this.SOF_ExportUserCert=function(ContainerName,KeySpec){var json='{"function":"SOF_ExportUserCert", "deviceName":"'+_curDevName+'", "containerName":"'+ContainerName+'", "keySpec":'+KeySpec+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.cert}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.cert:-2},this.SOF_GetDeviceInfo=function(Type){var json='{"function":"SOF_GetDeviceInfo", "deviceName":"'+_curDevName+'", "type":'+Type+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.info}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.info:-2},this.SOF_GetCertInfo=function(Base64EncodeCert,Type){var json='{"function":"SOF_GetCertInfo", "base64EncodeCert":"'+Base64EncodeCert+'", "type":'+Type+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.info}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.info:-2},this.SOF_GetCertInfoByOid=function(Base64EncodeCert,OID){var json='{"function":"SOF_GetCertInfoByOid", "base64EncodeCert":"'+Base64EncodeCert+'", "oid":"'+OID+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.info}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.info:null},this.SOF_Login=function(PassWd){var json='{"function":"SOF_Login", "deviceName":"'+_curDevName+'", "passWd":"'+PassWd+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_LogOut=function(){var json='{"function":"SOF_LogOut", "deviceName":"'+_curDevName+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_GetPinRetryCount=function(){var json='{"function":"SOF_GetPinRetryCount", "deviceName":"'+_curDevName+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.retryCount}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.retryCount:-2},this.SOF_ChangePassWd=function(OldPassWd,NewPassWd){var json='{"function":"SOF_ChangePassWd", "deviceName":"'+_curDevName+'", "oldUpin":"'+OldPassWd+'", "newUpin":"'+NewPassWd+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_SetDigestMethod=function(DigestMethod){var json='{"function":"SOF_SetDigestMethod","deviceName":"'+_curDevName+'", "digestMethod":'+DigestMethod+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_SetUserID=function(UserID){var json='{"function":"SOF_SetUserID","deviceName":"'+_curDevName+'", "userID":"'+UserID+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_SetEncryptMethodAndIV=function(EncryptMethod,EncryptIV){var json='{"function":"SOF_SetEncryptMethodAndIV","deviceName":"'+_curDevName+'", "encryptMethod":'+EncryptMethod+', "encryptIV":"'+EncryptIV+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_EncryptFileToPKCS7=function(Cert,InFile,OutFile,type){var json='{"function":"SOF_EncryptFileToPKCS7", "deviceName":"'+_curDevName+'", "cert":"'+Cert+'", "inFile":"'+InFile.replace(/\\/g,"\\\\")+'", "outFile":"'+OutFile.replace(/\\/g,"\\\\")+'", "type":'+type+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.envelopData}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.envelopData:-2},this.SOF_SignFileToPKCS7=function(ContainerName,KeySpec,InFile){var json='{"function":"SOF_SignFileToPKCS7", "deviceName":"'+_curDevName+'", "containerName":"'+ContainerName+'", "KeySpec":'+KeySpec+', "inFile":"'+InFile.replace(/\\/g,"\\\\")+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.signed}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.signed:-2},this.SOF_VerifyFileToPKCS7=function(strPkcs7Data,InFilePath){var json='{"function":"SOF_VerifyFileToPKCS7", "deviceName":"'+_curDevName+'","strPkcs7Data":"'+strPkcs7Data+'", "inFile":"'+InFilePath.replace(/\\/g,"\\\\")+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_DecryptFileToPKCS7=function(ContainerName,keySpec,Pkcs7Data,InFile,OutFile,type){var json='{"function":"SOF_DecryptFileToPKCS7", "deviceName":"'+_curDevName+'", "containerName":"'+ContainerName+'", "keySpec":'+keySpec+', "pkcs7Data":"'+Pkcs7Data+'", "inFile":"'+InFile.replace(/\\/g,"\\\\")+'", "outFile":"'+OutFile.replace(/\\/g,"\\\\")+'", "type":'+type+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_DigestData=function(ContainerName,InData,InDataLen){var json='{"function":"SOF_DigestData","deviceName":"'+_curDevName+'", "containerName":"'+ContainerName+'", "inData":"'+InData+'", "inDataLen":'+InDataLen+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.digest}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.digest:-2},this.SOF_SignDataInteractive=function(ContainerName,ulKeySpec,inData,InDataLen){var InDataBase64=inData,json='{"function":"SOF_SignDataInteractive", "deviceName":"'+_curDevName+'", "containerName":"'+ContainerName+'", "keySpec":'+ulKeySpec+', "inData":"'+InDataBase64+'", "inDataLen":'+InDataLen+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.signed}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.signed:null},this.SOF_SignData=function(ContainerName,ulKeySpec,InData,InDataLen){var json='{"function":"SOF_SignDataEx", "deviceName":"'+_curDevName+'", "containerName":"'+ContainerName+'", "keySpec":'+ulKeySpec+', "inData":"'+InData+'", "inDataLen":'+InDataLen+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.signed}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.signed:-2},this.SOF_VerifySignedData=function(Base64EncodeCert,digestMethod,InData,SignedValue){var json='{"function":"SOF_VerifySignedDataEx","deviceName":"'+_curDevName+'", "base64EncodeCert":"'+Base64EncodeCert+'", "digestMethod":'+digestMethod+', "inData":"'+InData+'", "signedValue":"'+SignedValue+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_EncryptDataPKCS7=function(Base64EncodeCert,InData,InDataLen){var json='{"function":"SOF_EncryptDataPKCS7", "deviceName":"'+_curDevName+'", "base64EncodeCert":"'+Base64EncodeCert+'", "inData":"'+InData+'", "inDataLen":'+InDataLen+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.encrypedData}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.encrypedData:-2},this.SOF_DecryptDataPKCS7=function(ContainerName,ulKeySpec,InData){var json='{"function":"SOF_DecryptDataPKCS7", "deviceName":"'+_curDevName+'", "containerName":"'+ContainerName+'", "keySpec":'+ulKeySpec+', "inData":"'+InData+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.decryptedData}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.decryptedData:-2},this.SOF_GenRemoteUnblockRequest=function(){var json='{"function":"SOF_GenRemoteUnblockRequest", "deviceName":"'+_curDevName+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.request}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.request:-2},this.SOF_GenResetpwdResponse=function(request,soPin,userPin){var json='{"function":"SOF_GenResetpwdResponse", "deviceName":"'+_curDevName+'", "request":"'+request+'", "soPin":"'+soPin+'", "userPin":"'+userPin+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.request}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.request:-2},this.SOF_RemoteUnblockPIN=function(request){var json='{"function":"SOF_RemoteUnblockPIN", "deviceName":"'+_curDevName+'", "request":"'+request+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_SignDataToPKCS7=function(ContainerName,ulKeySpec,InData,ulDetached){var json='{"function":"SOF_SignDataToPKCS7", "deviceName":"'+_curDevName+'", "containerName":"'+ContainerName+'", "keySpec":'+ulKeySpec+', "inData":"'+InData+'", "detached":'+ulDetached+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.pkcs7}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.pkcs7:-2},this.SOF_VerifyDataToPKCS7=function(strPkcs7Data,OriginalText,ulDetached){var json='{"function":"SOF_VerifyDataToPKCS7", "deviceName":"'+_curDevName+'", "pkcs7":"'+strPkcs7Data+'", "original":"'+OriginalText+'", "detached":'+ulDetached+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_ExportPubKey=function(containerName,keySpec,expType){var json='{"function":"SOF_ExportPubKeyEx","deviceName":"'+_curDevName+'", "containerName":"'+containerName+'", "keySpec":'+keySpec+', "expType":'+expType+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.pubKey}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.pubKey:-2},this.SOF_EncryptByPubKey=function(strPubKey,strInput,cerType){var json='{"function":"SOF_EncryptByPubKey", "deviceName":"'+_curDevName+'", "pubKey":"'+strPubKey+'", "asymPlain":"'+strInput+'", "keySpec":'+cerType+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.asymCipher}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.asymCipher:null},this.SOF_DecryptByPrvKey=function(containerName,cerType,strAsymCipher){var json='{"function":"SOF_DecryptByPrvKey", "deviceName":"'+_curDevName+'", "containerName":"'+containerName+'", "asymCipher":"'+strAsymCipher+'", "keySpec":'+cerType+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.asymPlain}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.asymPlain:null},this.SOF_CreateKeyPair=function(container,keySpec,asymAlg,keyLength){var json='{"function":"SOF_CreateKeyPair","deviceName":"'+_curDevName+'", "containerName":"'+container+'", "asymAlg":'+asymAlg+', "keySpec":'+keySpec+',"keyLength":'+keyLength+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_EnumCertContiner=function(){var json='{"function":"SOF_EnumCertContiner", "deviceName":"'+_curDevName+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.containerName}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.containerName:""},this.SOF_FindContainer=function(certSN){var json='{"function":"SOF_FindContainer","deviceName":"'+_curDevName+'", "certSN":"'+certSN+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.containerName}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.containerName:""},this.SOF_DeleteCert=function(certSN){var json='{"function":"SOF_DeleteCert","deviceName":"'+_curDevName+'", "certSN":"'+certSN+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_DeleteContainer=function(certSN){var json='{"function":"SOF_DeleteContainer", "deviceName":"'+_curDevName+'", "certSN":"'+certSN+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_SignByCert=function(certSN,plain){var json='{"function":"SOF_SignByCert", "deviceName":"'+_curDevName+'", "certSN":"'+certSN+'", "inData":"'+plain+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.signed}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.signed:null},this.SOF_VerifyByCert=function(certSN,plain,signature,digestMethod){var json='{"function":"SOF_VerifyByCert", "deviceName":"'+_curDevName+'", "certSN":"'+certSN+'","digestMethod":'+digestMethod+', "inData":"'+plain+'", "signed":"'+signature+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_VerifyByExtCert=function(cert,plain,signature,digestMethod){var json='{"function":"SOF_VerifyByExtCert","deviceName":"'+_curDevName+'", "cert":"'+cert+'", "digestMethod":'+digestMethod+', "inData":"'+plain+'", "signed":"'+signature+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_GenerateP10Request=function(_curDevName,container,dn,asymAlg,keySpec,keyLength){var json='{"function":"SOF_GenerateP10Request", "deviceName":"'+_curDevName+'", "containerName":"'+container+'", "certDN":"'+dn+'", "asymAlg":'+asymAlg+', "keySpec":'+keySpec+',"keyLength":'+keyLength+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.outData}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.outData:null},this.SOF_ImportCert=function(container,cert,keySpec){var json='{"function":"SOF_ImportCert", "deviceName":"'+_curDevName+'", "containerName":"'+container+'", "cert":"'+cert+'", "keySpec":'+keySpec+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_ImportCryptoCertAndKey=function(container,cert,nAsymAlg,EncryptedSessionKeyData,symAlg,EncryptedPrivateKeyData,mode){var json='{"function":"SOF_ImportCryptoCertAndKey", "deviceName":"'+_curDevName+'", "containerName":"'+container+'", "cert":"'+cert+'", "asymAlg":'+nAsymAlg+', "sessionKey":"'+EncryptedSessionKeyData+'", "symAlg":"'+symAlg+'", "encrypedData":"'+EncryptedPrivateKeyData+', + "mode":'+mode+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_GenerateRandom=function(length){var json='{"function":"SOF_GenRandom", "deviceName":"'+_curDevName+'", "inDataLen":'+length+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.outData}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.outData:-2},this.SOF_SymEncryptFile=function(sessionKey,srcfile,destfile,type){var json='{"function":"SOF_SymEncryptFile", "deviceName":"'+_curDevName+'", "sessionKey":"'+sessionKey+'", "inFile":"'+srcfile.replace(/\\/g,"\\\\")+'", "outFile":"'+destfile.replace(/\\/g,"\\\\")+'", "type":'+type+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_SymDecryptFile=function(sessionKey,srcfile,destfile,type){var json='{"function":"SOF_SymDecryptFile", "deviceName":"'+_curDevName+'", "sessionKey":"'+sessionKey+'", "inFile":"'+srcfile.replace(/\\/g,"\\\\")+'", "outFile":"'+destfile.replace(/\\/g,"\\\\")+'", "type":'+type+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_SymEncryptData=function(sessionKey,inData){var json='{"function":"SOF_SymEncryptData", "deviceName":"'+_curDevName+'", "sessionKey":"'+sessionKey+'", "inData":"'+inData+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.outData}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.outData:null},this.SOF_SymDecryptData=function(sessionKey,inData){var json='{"function":"SOF_SymDecryptData", "deviceName":"'+_curDevName+'", "sessionKey":"'+sessionKey+'", "inData":"'+inData+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.outData}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.outData:null},this.SOF_GenerateQRCode=function(qrcode_text_in){var qrcode_text=qrcode_text_in.replace(/"/g,'\\"'),json='{"module":"libQR","function":"SOF_GenerateQRCode", "inData":"'+qrcode_text+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.outData}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.outData:null},this.SOF_VerifyPinMS=function(responseKey){var json='{"function":"SOF_VerifyPinMS", "deviceName":"'+_curDevName+'", "passWd":"'+responseKey+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_GetHardwareType=function(){var json='{"function":"SOF_GetHardwareType", "deviceName":"'+_curDevName+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.type}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.type:-2},this.SOF_VerifyFingerprint=function(){var json='{"function":"SOF_VerifyFingerprint", "deviceName":"'+_curDevName+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_EnumFiles=function(){var json='{"function":"SOF_EnumFiles", "deviceName":"'+_curDevName+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.array}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.array:-2},this.SOF_ReadFile=function(fileName,offset,length){var json='{"function":"SOF_ReadFile", "deviceName":"'+_curDevName+'", "fileName":"'+fileName+'", "offset":'+offset+',"length":'+length+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.outData}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();if(ret)return ret.outData},this.SOF_WriteFile=function(fileName,offset,data){var json='{"function":"SOF_WriteFile", "deviceName":"'+_curDevName+'", "fileName":"'+fileName+'", "offset":'+offset+',"inData":"'+data+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();if(ret)return ret.rtn},this.SOF_CreateFile=function(fileName,length,readRight,writeRight){var json='{"function":"SOF_CreateFile", "deviceName":"'+_curDevName+'","fileName":"'+fileName+'", "length" :'+length+', "readRight":'+readRight+',"writeRight":'+writeRight+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();if(ret)return ret.rtn},this.SOF_DeleteFile=function(fileName){var json='{"function":"SOF_DeleteFile", "deviceName":"'+_curDevName+'","fileName":"'+fileName+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();if(ret)return ret.rtn},this.SocketConnect=function(HostName,Port){var json='{"module":"libSocket","function":"SocketConnect", "HostName":"'+HostName+'", "Port":'+Port+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();if(ret)return ret.rtn},this.SocketDisConnect=function(){var json='{"module":"libSocket","function":"SocketDisConnect"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();if(ret)return ret.rtn},this.SocketSendText=function(SendText){var json='{"module":"libSocket","function":"SocketSendText", "SendText":"'+SendText+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.RecvText}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();if(ret)return ret.RecvText}}},7021:function(e,t,n){var i={"./admin.jpg":6296,"./personal.jpg":1865,"./personal1.jpg":456,"./personal2.jpg":6964};function r(e){var t=a(e);return n(t)}function a(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}r.keys=function(){return Object.keys(i)},r.resolve=a,e.exports=r,r.id=7021},3284:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAAVCAYAAACkCdXRAAAAAXNSR0IArs4c6QAAAeFJREFUOE+tlLtrFFEUh7/fjEWK/AEWio2QSrKFVhq46wNsBAuLFAHdh5DCMmJAxBEUC7VWdDcb0CKloGDhYy8YsbEwIGhaiWBpkcIimSMzzqy7s8lmjA4MF+45883vPMWIp9q2CYNjBOwjZk2w3G1odbtPtJXheMsOxAGLgNvC/jwImX1zXt+KtiFYqkZ4YC/GGmKJmFUCJoCZ9B6+y3BFlQMwF9ke9vMecRhjiYCar+lnrsB1bAzjMXAO44Nv6Ei/ukFY204iXgJf+MohH2mjGEr2w8+IgxinfEOvcp9BWMduY8xjzPmG7m2XaLdgV4GbyevrujYEy3LVIqkeJOfyiEInPs3ER0Yzz12qzC3YHWBuVJvsYLvr67os98gcIV2MdcQDxHppqDGOMYv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VM48Qs08R36RFqqkSnqbFRT4bcdo6lJHIWFypR/HtiqzsLTSFkeM4DHcST/ADiuSS1dw8EYlcoPDeiUmqLKJcKGllwKN9BJKtH/ACCE+mPPftXqkMmqyTQjKkk/pn78mnthZNcwtzjpWt0KlmTB7xKdUVLWSDbmOX84QoWux4jcenarZAtm3hLz696s5go6p7Ykxk+e2LW+9P0/XELy2Mo3p1H5qdhdiA7H+U/ik2QlxxCo6yU22KVC/uDgO11GW0+DGR6UzudOiuzvBwfUUvTWKalxTT05ptQNiO7XwwGuP/x+f2oE6KB/s/H71CNlmJKIkJnlTd7eWyEE+p/jEX12QjCpg981JNETOWckdsU40ChqlFEaM12UZrZSugH0/JwtiSW9kLv9zR080VhEFX7CntppDLaWm0hKEAJA+gw9VQo2is2zF2LN1NTxzUao1CjQKj4n2rOfeg2V/frgea1in5Yc0VBeS2/CHj0NJs6E1Fe7NtayNVtzhFLEI2wK0cE7SruIozRqBAkpLz/ar0keHVYH23wda2cUg3NS68v5YztTApkbabZQGmkJQhOwSkWAw2VQowo4pKzM53Mcmp45qNf/2Q=="},4800:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs4c6QAACspJREFUeF7dnGtsHNUVx39n1684thPbJBDzaNrS4lQ8wktACyUJRDiACEkgJNAP8Am+tVJVNVGrUrWVIFLVglSp5dlCFZFApJRACykhBKJWeUFJCDSGKqTQhLywYzv2ete7c6ozdza249fuemfWcKSrHXvv3Hvuf87z3jMrREyqeg4wGzgXsOuzg5a9No7+BxwMWvb6U+BdEbG/IyMJeyZVjQFXAbcCtwCXjHPO3cDLQdshIt44xxv19tAAUtUlwG3AAmBaSIs4BrwCrBeRv4QxR1EBUlUb707gl8A3w2B4lDE/BH4KrBMRLdbcRQNIVecAvwEuLRZzBY6zC1gpIpsKvH/QbeMGSFUNEAPGAJpIZAAZUAZYwVQwQIE6PQj8DCh4nII5z+1GU7Wfm8oXq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mYnatf/e6gHQA2Cf1rwDEDvA1Ir/iEw/meviitHv/zpRwnzvl7SBAAAAAElFTkSuQmCC"},1061:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAANZJREFUSEvdlkEWgzAIRJmT1pu03qSeFB+tsUkEQ6GLPt1pdD4QhghmZrKvGcCjX2ZmeXY/+W5fwrUAAOBJW3uHmZ9EdOvXmhJFAZa4wNIARXypM0kBNHEAU904AtjbUGtJa08scXm/AUQ29Uw8DRiJpwAe8Q3wKbu3RF7xgw88gKh48YGk8xp4AGZlsPUOXaQVPYENjZaJvARgGu0X4mYGWfHNvO+yN64D5D5V84MPugOnGVRE9NWGlrr3s8g6MkPiowxKEGFxL0Br89APwOjQr0H/CVgBgZLfzn7jTLEAAAAASUVORK5CYII="},1865:function(e){"use strict";e.exports="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAMCAgICAgMCAgIDAwMDBAYEBAQEBAgGBgUGCQgKCgkICQkKDA8MCgsOCwkJDRENDg8QEBEQCgwSExIQEw8QEBD/2wBDAQMDAwQDBAgEBAgQCwkLEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBD/wAARCAAsACwDAREAAhEBAxEB/8QAGwAAAgIDAQAAAAAAAAAAAAAABwkGCAIEBQD/xAA0EAABAwMDAgMFBgcAAAAAAAABAgMEBQYRAAcSITEIQWEJExQVIiMyUXGBghZSYnJzobH/xAAbAQABBQEBAAAAAAAAAAAAAAAFAAECBAYDB//EADARAAEDAgQEAwcFAAAAAAAAAAEAAgMEEQUhMVEGEhNBIiOhFDJxscHR8EJSYXKB/9oADAMBAAIRAxEAPwBp777UZpTzyuKU6ShJI2Jpc7RV68Q/jBsXYpTVLqolz63LY+IjUqEAHPdkkBx1xXRtJKVAYyrocJPfTaoaJKisPl+Fqpdd3tGd661LWq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HWkrHavHE6VEUrHeF2g1vZ3voXBfdukKnUmoRCltWeF5AhstraVjrhSeJJx169Ouk29NJkPuNq5HH0KbrQ6phptxPMf2aZCytxxltx1rlrUkFSM54SR1Ge+NZwa0IVhjfO3oW641VdiNowZcduLMMatzXwEc5TK88loAk8HEkEqOM4wBgklgtkDRiQs/qgFzn68sI9aYBT/4CN/ZR/iNa8OVZaedXm1rdbmUoSpJUnmOKKOnmkYGf1B0GnTC07oT0FWWWtScmu69KA7UYpqFPY5sxhP5YOC6n09x20KN0etsZxbTZcIGQkEAk9gTVpMZEhxKVq0g9eeKztb+6tu3X1ddUu/aFbbs68JtZFRDsme+wG+AIDbKG0LS2pI5fUKSSSTnpgBEs/GkPiJxxuYAy+SRoJ6ctiQMnuMA+VMcq3SbWlCo51tgDfH2N9vijtUdmNHQy7IjVGSyG0lZ4wlYAAz9D++icixx20KcCyAATvvy9q7x+JZBUELQDntkf3QJv7cU3ar+oFy3zUotRbrVwtGamspnOJMSRy+EFtgENqBWMqQsKJJIBHTEkT4UW0/npc1NBJIPfy/edsc87VTfdlP3AslOFE4wPv23zROsimvXHy47TTrbEZKUvPFPh6DyB7k+mjHDXH0TiWOpbLK0KTzyMpz5KHP2B8qFXOxu21wBawQe3P1FF1hhqMyiOygJbbSEpA7AatKUVqKlczVYAAYFSajXteDcNk2/cZ50+IUSMfnsngWffsfuDpbvfCdrvx1ym8L/ANk7K/o+oNEoV2lQPC0rw9juP+elC2p1atW/zaNBrUxUR0FlSHlBeEnoQMjw9PTGsfuM2fZNUCNJWW1ZSQohWx22yNvTFOEdlibiQ62nUN8jI3899/WrHZVm0ys04CpSpz8dlYWmKXyGeI+Z4QPP2OmnhfhKFcYo/LWtaEnIQVeDPfAA39aFXS7vx3f4kpCiP8sb+9EeLEjQWERYcdtllsYShCQAPtrVY8dmI2GWEhKRyAGAKVXHFuqK3Dknqam12qFf/9k="},7203:function(e){"use strict";e.exports=__WEBPACK_EXTERNAL_MODULE__7203__}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.loaded=!0,n.exports}!function(){__webpack_require__.amdO={}}(),function(){__webpack_require__.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return __webpack_require__.d(t,{a:t}),t}}(),function(){__webpack_require__.d=function(e,t){for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}}(),function(){__webpack_require__.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){__webpack_require__.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){__webpack_require__.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e}}(),function(){__webpack_require__.p=""}();var __webpack_exports__={};return function(){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:function(){return Un}});var e={};if(__webpack_require__.r(e),__webpack_require__.d(e,{hasBrowserEnv:function(){return Xe},hasStandardBrowserEnv:function(){return Ze},hasStandardBrowserWebWorkerEnv:function(){return et}}),"undefined"!==typeof window){var t=window.document.currentScript,n=t&&t.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);n&&(__webpack_require__.p=n[1])}var i=function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{title:e.title,visible:e.isShow,width:"350px","append-to-body":!0},on:{close:e.handleClose}},[t("slide-verify",{ref:"slideblock",attrs:{l:42,r:10,w:310,h:155,imgs:e.imgs,accuracy:e.accuracy,"slider-text":e.sliderText},on:{success:e.onSuccess,fail:e.onFail,again:e.onAgain,refresh:e.onRefresh,fulfilled:e.onFulfilled}})],1)},r=[],a=(__webpack_require__(7658),function(){var e=this,t=e._self._c;return t("div",{staticClass:"slide-verify",style:{width:e.w+"px"},attrs:{id:"slideVerify",onselectstart:"return false;"}},[t("div",{class:{"slider-verify-loading":e.loadBlock}}),t("canvas",{ref:"canvas",attrs:{width:e.w,height:e.h}}),e.show?t("div",{staticClass:"slide-verify-refresh-icon",on:{click:e.refresh}}):e._e(),t("canvas",{ref:"block",staticClass:"slide-verify-block",attrs:{width:e.w,height:e.h}}),t("div",{staticClass:"slide-verify-slider",class:{"container-active":e.containerActive,"container-success":e.containerSuccess,"container-fail":e.containerFail}},[t("div",{staticClass:"slide-verify-slider-mask",style:{width:e.sliderMaskWidth}},[t("div",{staticClass:"slide-verify-slider-mask-item",style:{left:e.sliderLeft},on:{mousedown:e.sliderDown,touchstart:e.touchStartEvent,touchmove:function(t){return e.handleMoveEvent(t,"touch")},touchend:function(t){return e.handleMoveEndEvent(t,"touch")}}},[t("div",{staticClass:"slide-verify-slider-mask-item-icon"})])]),t("span",{staticClass:"slide-verify-slider-text"},[e._v(e._s(e.sliderText))])])])}),o=[];const s=Math.PI;function l(e,t){return e+t}function u(e){return e*e}var c={name:"SlideVerify",props:{l:{type:Number,default:42},r:{type:Number,default:10},w:{type:Number,default:310},h:{type:Number,default:155},sliderText:{type:String,default:"Slide filled right"},accuracy:{type:Number,default:5},show:{type:Boolean,default:!0},imgs:{type:Array,default:()=>[]}},data(){return{containerActive:!1,containerSuccess:!1,containerFail:!1,canvasCtx:null,blockCtx:null,block:null,block_x:void 0,block_y:void 0,L:this.l+2*this.r+3,img:void 0,originX:void 0,originY:void 0,isMouseDown:!1,trail:[],sliderLeft:0,sliderMaskWidth:0,success:!1,loadBlock:!0,timestamp:null}},mounted(){this.init()},methods:{init(){this.initDom(),this.initImg(),this.bindEvents()},initDom(){this.block=this.$refs.block,this.canvasCtx=this.$refs.canvas.getContext("2d"),this.blockCtx=this.block.getContext("2d")},initImg(){const e=this.createImg((()=>{this.loadBlock=!1,this.drawBlock(),this.canvasCtx.drawImage(e,0,0,this.w,this.h),this.blockCtx.drawImage(e,0,0,this.w,this.h);let{block_x:t,block_y:n,r:i,L:r}=this,a=n-2*i-1,o=this.blockCtx.getImageData(t,a,r,r);this.block.width=r,this.blockCtx.putImageData(o,0,a)}));this.img=e},drawBlock(){this.block_x=this.getRandomNumberByRange(this.L+10,this.w-(this.L+10)),this.block_y=this.getRandomNumberByRange(10+2*this.r,this.h-(this.L+10)),this.draw(this.canvasCtx,this.block_x,this.block_y,"fill"),this.draw(this.blockCtx,this.block_x,this.block_y,"clip")},draw(e,t,n,i){let{l:r,r:a}=this;e.beginPath(),e.moveTo(t,n),e.arc(t+r/2,n-a+2,a,.72*s,2.26*s),e.lineTo(t+r,n),e.arc(t+r+a-2,n+r/2,a,1.21*s,2.78*s),e.lineTo(t+r,n+r),e.lineTo(t,n+r),e.arc(t+a-2,n+r/2,a+.4,2.76*s,1.24*s,!0),e.lineTo(t,n),e.lineWidth=2,e.fillStyle="rgba(255, 255, 255, 0.7)",e.strokeStyle="rgba(255, 255, 255, 0.7)",e.stroke(),e[i](),e.globalCompositeOperation="destination-over"},createImg(e){const t=document.createElement("img");return t.crossOrigin="Anonymous",t.onload=e,t.onerror=()=>{t.src=this.getRandomImg()},t.src=this.getRandomImg(),t},getRandomImg(){const e=this.imgs.length;return e>0?this.imgs[this.getRandomNumberByRange(0,e-1)]:"https://source.unsplash.com/300x150/?book,library"},getRandomNumberByRange(e,t){return Math.round(Math.random()*(t-e)+e)},refresh(){this.reset(),this.$emit("refresh")},sliderDown(e){this.success||(this.originX=e.clientX,this.originY=e.clientY,this.isMouseDown=!0,this.timestamp=+new Date)},touchStartEvent(e){this.success||(this.originX=e.changedTouches[0].pageX,this.originY=e.changedTouches[0].pageY,this.isMouseDown=!0,this.timestamp=+new Date)},bindEvents(){document.addEventListener("mousemove",this.handleMoveEvent),document.addEventListener("mouseup",this.handleMoveEndEvent)},handleMoveEvent:h((function(e,t="mouse"){if(!this.isMouseDown)return!1;const n="mouse"===t?e.clientX-this.originX:e.changedTouches[0].pageX-this.originX,i="mouse"===t?e.clientY-this.originY:e.changedTouches[0].pageY-this.originY;if(n<0||n+38>=this.w)return!1;this.sliderLeft=n+"px";let r=(this.w-40-20)/(this.w-40)*n;this.block.style.left=r+"px",this.containerActive=!0,this.sliderMaskWidth=n+"px",this.trail.push(i)})),handleMoveEndEvent(e,t="mouse"){if(!this.isMouseDown)return!1;if(this.isMouseDown=!1,"mouse"===t&&e.clientX===this.originX||"touch"===t&&e.changedTouches[0].pageX===this.originX)return!1;this.containerActive=!1,this.timestamp=+new Date-this.timestamp;const{spliced:n,TuringTest:i}=this.verify();if(n){if(-1===this.accuracy)return this.containerSuccess=!0,this.success=!0,void this.$emit("success",this.timestamp);i?(this.containerSuccess=!0,this.success=!0,this.$emit("success",this.timestamp)):(this.containerFail=!0,this.$emit("again"))}else this.containerFail=!0,this.$emit("fail"),setTimeout((()=>{this.reset()}),1e3)},verify(){const e=this.trail,t=e.reduce(l)/e.length,n=e.map((e=>e-t)),i=Math.sqrt(n.map(u).reduce(l)/e.length),r=parseInt(this.block.style.left),a=this.accuracy<=1?1:this.accuracy>10?10:this.accuracy;return{spliced:Math.abs(r-this.block_x)<=a,TuringTest:t!==i}},reset(){this.success=!1,this.containerActive=!1,this.containerSuccess=!1,this.containerFail=!1,this.sliderLeft=0,this.block.style.left=0,this.sliderMaskWidth=0;let{w:e,h:t}=this;this.canvasCtx.clearRect(0,0,e,t),this.blockCtx.clearRect(0,0,e,t),this.block.width=e,this.img.src=this.getRandomImg(),this.$emit("fulfilled")}},destroyed(){document.removeEventListener("mousemove",this.handleMoveEvent),document.removeEventListener("mouseup",this.handleMoveEndEvent)}};function h(e,t=50,n={leading:!0,trailing:!0}){const{leading:i,trailing:r,resultCallback:a}=n;let o=0,s=null;const l=function(...n){return new Promise(((l,u)=>{const c=(new Date).getTime();o||i||(o=c);const h=t-(c-o);if(h<=0){s&&(clearTimeout(s),s=null);const t=e.apply(this,n);return a&&a(t),l(t),void(o=c)}r&&!s&&(s=setTimeout((()=>{s=null,o=i?(new Date).getTime():0;const t=e.apply(this,n);a&&a(t),l(t)}),h))}))};return l.cancel=function(){s&&clearTimeout(s),s=null,o=0},l}var d=c;function f(e,t,n,i,r,a,o,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),a&&(u._scopeId="data-v-"+a),o?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},u._ssrRegister=l):r&&(l=s?function(){r.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:u}}var p=f(d,a,o,!1,null,"b67196d8",null),m=p.exports,v={name:"YcSlideVerify",components:{SlideVerify:m},props:{title:{type:String,default:"滑动验证"},isShow:{type:Boolean,default:!0}},data(){return{accuracy:5,sliderText:"拖动完成上方拼图",countDownNum:120}},computed:{imgs(){const e=[];for(let t=1;t<9;t++)e.push(`/cloud-img/${t}.jpg`);return e}},watch:{isShow(e){e&&this.$refs.slideblock&&this.$refs.slideblock.reset&&this.$refs.slideblock.reset()}},created(){},methods:{onSuccess(){this.$emit("success"),this.$emit("update:isShow",!1)},onFail(){},onAgain(){},onRefresh(){},onFulfilled(){},handleClose(){this.$emit("update:isShow",!1),this.$emit("close")}}},g=v,y=f(g,i,r,!1,null,"2a264bef",null),b=y.exports,_=function(){var e=this,t=e._self._c;return t("div",{ref:"customer",staticStyle:{display:"none"}},[t("chat-vue",{attrs:{visible:e.visible,jumpPage:e.jumpPage,title:e.title,id:e.id},on:{"update:visible":function(t){e.visible=t}}}),t("div",{staticClass:"customerService"},[t("div",{staticClass:"mobile"},[e._t("default")],2),t("div",{staticClass:"headset",on:{click:function(t){e.visible=!e.visible}}},[e._m(0),e._m(1)])])],1)},x=[function(){var e=this,t=e._self._c;return t("div",[t("i",{staticClass:"el-icon-headset"})])},function(){var e=this,t=e._self._c;return t("div",[t("a",[e._v("在线客服")])])}],S=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"chat"},[t("header",[t("img",{attrs:{src:__webpack_require__(6296)}}),t("span",[e._v(e._s(e.title))]),e.jumpPage?t("i",{staticClass:"icon-enlarge",on:{click:e.enlarge}},[t("img",{attrs:{src:__webpack_require__(1061)}})]):e._e(),t("i",{staticClass:"el-icon-close",on:{click:e.close}})]),t("main",{ref:"main"},e._l(e.messagelist,(function(n,i){return t("div",{key:i,class:["message",n.id]},[t("img",{staticClass:"avatar",attrs:{src:__webpack_require__(7021)(`./${n.id}.jpg`)}}),t("div",{staticClass:"content"},[e._l(n.msg,(function(i,r){return t("span",{key:i+r,class:n.msg.length>1?"href":"",domProps:{innerHTML:e._s((n.msg.length>1?1+r+". ":" ")+i)},on:{click:function(t){n.msg.length>1&&e.regularClick(i)}}})})),n.based?t("div",{staticClass:"based",on:{click:function(t){return e.handExpand(n)}}},[t("span",[e._v("依据")]),t("span",{class:{"is-active":n.isActive}},[e._v(e._s(n.based)),t("i",{staticClass:"el-icon-d-arrow-right"})])]):e._e()],2)])})),0),t("nav",e._l(e.regular,(function(n,i){return t("el-button",{key:n+i,attrs:{size:"mini",round:""},on:{click:function(t){return e.regularClick(n)}}},[e._v(e._s(n))])})),1),t("el-input",{attrs:{type:"textarea",maxlength:"500",autosize:{minRows:2,maxRows:3},autofocus:"true",resize:"none",placeholder:"请反馈您的问题,我们将尽快回复"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.carriageReturn.apply(null,arguments)}},model:{value:e.textareaValue,callback:function(t){e.textareaValue=t},expression:"textareaValue"}}),t("el-button",{attrs:{type:"primary",size:"mini",disabled:!e.textareaValue},on:{click:e.send}},[e._v("发送")])],1)},w=[];__webpack_require__(1439),__webpack_require__(7585),__webpack_require__(5315);function C(e,t){return function(){return e.apply(t,arguments)}}const{toString:k}=Object.prototype,{getPrototypeOf:O}=Object,D=(e=>t=>{const n=k.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),E=e=>(e=e.toLowerCase(),t=>D(t)===e),N=e=>t=>typeof t===e,{isArray:A}=Array,T=N("undefined");function P(e){return null!==e&&!T(e)&&null!==e.constructor&&!T(e.constructor)&&M(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const I=E("ArrayBuffer");function F(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&I(e.buffer),t}const j=N("string"),M=N("function"),$=N("number"),L=e=>null!==e&&"object"===typeof e,R=e=>!0===e||!1===e,B=e=>{if("object"!==D(e))return!1;const t=O(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},V=E("Date"),z=E("File"),H=E("Blob"),W=E("FileList"),G=e=>L(e)&&M(e.pipe),U=e=>{let t;return e&&("function"===typeof FormData&&e instanceof FormData||M(e.append)&&("formdata"===(t=D(e))||"object"===t&&M(e.toString)&&"[object FormData]"===e.toString()))},q=E("URLSearchParams"),K=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function J(e,t,{allOwnKeys:n=!1}={}){if(null===e||"undefined"===typeof e)return;let i,r;if("object"!==typeof e&&(e=[e]),A(e))for(i=0,r=e.length;i<r;i++)t.call(null,e[i],i,e);else{const r=n?Object.getOwnPropertyNames(e):Object.keys(e),a=r.length;let o;for(i=0;i<a;i++)o=r[i],t.call(null,e[o],o,e)}}function Y(e,t){t=t.toLowerCase();const n=Object.keys(e);let i,r=n.length;while(r-- >0)if(i=n[r],t===i.toLowerCase())return i;return null}const Q=(()=>"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global)(),X=e=>!T(e)&&e!==Q;function Z(){const{caseless:e}=X(this)&&this||{},t={},n=(n,i)=>{const r=e&&Y(t,i)||i;B(t[r])&&B(n)?t[r]=Z(t[r],n):B(n)?t[r]=Z({},n):A(n)?t[r]=n.slice():t[r]=n};for(let i=0,r=arguments.length;i<r;i++)arguments[i]&&J(arguments[i],n);return t}const ee=(e,t,n,{allOwnKeys:i}={})=>(J(t,((t,i)=>{n&&M(t)?e[i]=C(t,n):e[i]=t}),{allOwnKeys:i}),e),te=e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),ne=(e,t,n,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},ie=(e,t,n,i)=>{let r,a,o;const s={};if(t=t||{},null==e)return t;do{r=Object.getOwnPropertyNames(e),a=r.length;while(a-- >0)o=r[a],i&&!i(o,e,t)||s[o]||(t[o]=e[o],s[o]=!0);e=!1!==n&&O(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},re=(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const i=e.indexOf(t,n);return-1!==i&&i===n},ae=e=>{if(!e)return null;if(A(e))return e;let t=e.length;if(!$(t))return null;const n=new Array(t);while(t-- >0)n[t]=e[t];return n},oe=(e=>t=>e&&t instanceof e)("undefined"!==typeof Uint8Array&&O(Uint8Array)),se=(e,t)=>{const n=e&&e[Symbol.iterator],i=n.call(e);let r;while((r=i.next())&&!r.done){const n=r.value;t.call(e,n[0],n[1])}},le=(e,t)=>{let n;const i=[];while(null!==(n=e.exec(t)))i.push(n);return i},ue=E("HTMLFormElement"),ce=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),he=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),de=E("RegExp"),fe=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};J(n,((n,r)=>{let a;!1!==(a=t(n,r,e))&&(i[r]=a||n)})),Object.defineProperties(e,i)},pe=e=>{fe(e,((t,n)=>{if(M(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const i=e[n];M(i)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},me=(e,t)=>{const n={},i=e=>{e.forEach((e=>{n[e]=!0}))};return A(e)?i(e):i(String(e).split(t)),n},ve=()=>{},ge=(e,t)=>(e=+e,Number.isFinite(e)?e:t),ye="abcdefghijklmnopqrstuvwxyz",be="0123456789",_e={DIGIT:be,ALPHA:ye,ALPHA_DIGIT:ye+ye.toUpperCase()+be},xe=(e=16,t=_e.ALPHA_DIGIT)=>{let n="";const{length:i}=t;while(e--)n+=t[Math.random()*i|0];return n};function Se(e){return!!(e&&M(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])}const we=e=>{const t=new Array(10),n=(e,i)=>{if(L(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[i]=e;const r=A(e)?[]:{};return J(e,((e,t)=>{const a=n(e,i+1);!T(a)&&(r[t]=a)})),t[i]=void 0,r}}return e};return n(e,0)},Ce=E("AsyncFunction"),ke=e=>e&&(L(e)||M(e))&&M(e.then)&&M(e.catch);var Oe={isArray:A,isArrayBuffer:I,isBuffer:P,isFormData:U,isArrayBufferView:F,isString:j,isNumber:$,isBoolean:R,isObject:L,isPlainObject:B,isUndefined:T,isDate:V,isFile:z,isBlob:H,isRegExp:de,isFunction:M,isStream:G,isURLSearchParams:q,isTypedArray:oe,isFileList:W,forEach:J,merge:Z,extend:ee,trim:K,stripBOM:te,inherits:ne,toFlatObject:ie,kindOf:D,kindOfTest:E,endsWith:re,toArray:ae,forEachEntry:se,matchAll:le,isHTMLForm:ue,hasOwnProperty:he,hasOwnProp:he,reduceDescriptors:fe,freezeMethods:pe,toObjectSet:me,toCamelCase:ce,noop:ve,toFiniteNumber:ge,findKey:Y,global:Q,isContextDefined:X,ALPHABET:_e,generateString:xe,isSpecCompliantForm:Se,toJSONObject:we,isAsyncFn:Ce,isThenable:ke};__webpack_require__(541);function De(e,t,n,i,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),r&&(this.response=r)}Oe.inherits(De,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Oe.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Ee=De.prototype,Ne={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{Ne[e]={value:e}})),Object.defineProperties(De,Ne),Object.defineProperty(Ee,"isAxiosError",{value:!0}),De.from=(e,t,n,i,r,a)=>{const o=Object.create(Ee);return Oe.toFlatObject(e,o,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),De.call(o,e.message,t,n,i,r),o.cause=e,o.name=e.name,a&&Object.assign(o,a),o};var Ae=De,Te=null;function Pe(e){return Oe.isPlainObject(e)||Oe.isArray(e)}function Ie(e){return Oe.endsWith(e,"[]")?e.slice(0,-2):e}function Fe(e,t,n){return e?e.concat(t).map((function(e,t){return e=Ie(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}function je(e){return Oe.isArray(e)&&!e.some(Pe)}const Me=Oe.toFlatObject(Oe,{},null,(function(e){return/^is[A-Z]/.test(e)}));function $e(e,t,n){if(!Oe.isObject(e))throw new TypeError("target must be an object");t=t||new(Te||FormData),n=Oe.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Oe.isUndefined(t[e])}));const i=n.metaTokens,r=n.visitor||c,a=n.dots,o=n.indexes,s=n.Blob||"undefined"!==typeof Blob&&Blob,l=s&&Oe.isSpecCompliantForm(t);if(!Oe.isFunction(r))throw new TypeError("visitor must be a function");function u(e){if(null===e)return"";if(Oe.isDate(e))return e.toISOString();if(!l&&Oe.isBlob(e))throw new Ae("Blob is not supported. Use a Buffer instead.");return Oe.isArrayBuffer(e)||Oe.isTypedArray(e)?l&&"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,r){let s=e;if(e&&!r&&"object"===typeof e)if(Oe.endsWith(n,"{}"))n=i?n:n.slice(0,-2),e=JSON.stringify(e);else if(Oe.isArray(e)&&je(e)||(Oe.isFileList(e)||Oe.endsWith(n,"[]"))&&(s=Oe.toArray(e)))return n=Ie(n),s.forEach((function(e,i){!Oe.isUndefined(e)&&null!==e&&t.append(!0===o?Fe([n],i,a):null===o?n:n+"[]",u(e))})),!1;return!!Pe(e)||(t.append(Fe(r,n,a),u(e)),!1)}const h=[],d=Object.assign(Me,{defaultVisitor:c,convertValue:u,isVisitable:Pe});function f(e,n){if(!Oe.isUndefined(e)){if(-1!==h.indexOf(e))throw Error("Circular reference detected in "+n.join("."));h.push(e),Oe.forEach(e,(function(e,i){const a=!(Oe.isUndefined(e)||null===e)&&r.call(t,e,Oe.isString(i)?i.trim():i,n,d);!0===a&&f(e,n?n.concat(i):[i])})),h.pop()}}if(!Oe.isObject(e))throw new TypeError("data must be an object");return f(e),t}var Le=$e;function Re(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Be(e,t){this._pairs=[],e&&Le(e,this,t)}const Ve=Be.prototype;Ve.append=function(e,t){this._pairs.push([e,t])},Ve.toString=function(e){const t=e?function(t){return e.call(this,t,Re)}:Re;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var ze=Be;function He(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function We(e,t,n){if(!t)return e;const i=n&&n.encode||He,r=n&&n.serialize;let a;if(a=r?r(t,n):Oe.isURLSearchParams(t)?t.toString():new ze(t,n).toString(i),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}class Ge{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Oe.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}var Ue=Ge,qe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ke=(__webpack_require__(6229),__webpack_require__(7330),__webpack_require__(2062),"undefined"!==typeof URLSearchParams?URLSearchParams:ze),Je="undefined"!==typeof FormData?FormData:null,Ye="undefined"!==typeof Blob?Blob:null,Qe={isBrowser:!0,classes:{URLSearchParams:Ke,FormData:Je,Blob:Ye},protocols:["http","https","file","blob","url","data"]};const Xe="undefined"!==typeof window&&"undefined"!==typeof document,Ze=(e=>Xe&&["ReactNative","NativeScript","NS"].indexOf(e)<0)("undefined"!==typeof navigator&&navigator.product),et=(()=>"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts)();var tt={...e,...Qe};function nt(e,t){return Le(e,new tt.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,i){return tt.isNode&&Oe.isBuffer(e)?(this.append(t,e.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function it(e){return Oe.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}function rt(e){const t={},n=Object.keys(e);let i;const r=n.length;let a;for(i=0;i<r;i++)a=n[i],t[a]=e[a];return t}function at(e){function t(e,n,i,r){let a=e[r++];const o=Number.isFinite(+a),s=r>=e.length;if(a=!a&&Oe.isArray(i)?i.length:a,s)return Oe.hasOwnProp(i,a)?i[a]=[i[a],n]:i[a]=n,!o;i[a]&&Oe.isObject(i[a])||(i[a]=[]);const l=t(e,n,i[a],r);return l&&Oe.isArray(i[a])&&(i[a]=rt(i[a])),!o}if(Oe.isFormData(e)&&Oe.isFunction(e.entries)){const n={};return Oe.forEachEntry(e,((e,i)=>{t(it(e),i,n,0)})),n}return null}var ot=at;function st(e,t,n){if(Oe.isString(e))try{return(t||JSON.parse)(e),Oe.trim(e)}catch(i){if("SyntaxError"!==i.name)throw i}return(n||JSON.stringify)(e)}const lt={transitional:qe,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",i=n.indexOf("application/json")>-1,r=Oe.isObject(e);r&&Oe.isHTMLForm(e)&&(e=new FormData(e));const a=Oe.isFormData(e);if(a)return i&&i?JSON.stringify(ot(e)):e;if(Oe.isArrayBuffer(e)||Oe.isBuffer(e)||Oe.isStream(e)||Oe.isFile(e)||Oe.isBlob(e))return e;if(Oe.isArrayBufferView(e))return e.buffer;if(Oe.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(r){if(n.indexOf("application/x-www-form-urlencoded")>-1)return nt(e,this.formSerializer).toString();if((o=Oe.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Le(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return r||i?(t.setContentType("application/json",!1),st(e)):e}],transformResponse:[function(e){const t=this.transitional||lt.transitional,n=t&&t.forcedJSONParsing,i="json"===this.responseType;if(e&&Oe.isString(e)&&(n&&!this.responseType||i)){const n=t&&t.silentJSONParsing,a=!n&&i;try{return JSON.parse(e)}catch(r){if(a){if("SyntaxError"===r.name)throw Ae.from(r,Ae.ERR_BAD_RESPONSE,this,null,this.response);throw r}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:tt.classes.FormData,Blob:tt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Oe.forEach(["delete","get","head","post","put","patch"],(e=>{lt.headers[e]={}}));var ut=lt;const ct=Oe.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var ht=e=>{const t={};let n,i,r;return e&&e.split("\n").forEach((function(e){r=e.indexOf(":"),n=e.substring(0,r).trim().toLowerCase(),i=e.substring(r+1).trim(),!n||t[n]&&ct[n]||("set-cookie"===n?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)})),t};const dt=Symbol("internals");function ft(e){return e&&String(e).trim().toLowerCase()}function pt(e){return!1===e||null==e?e:Oe.isArray(e)?e.map(pt):String(e)}function mt(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;while(i=n.exec(e))t[i[1]]=i[2];return t}const vt=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function gt(e,t,n,i,r){return Oe.isFunction(i)?i.call(this,t,n):(r&&(t=n),Oe.isString(t)?Oe.isString(i)?-1!==t.indexOf(i):Oe.isRegExp(i)?i.test(t):void 0:void 0)}function yt(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}function bt(e,t){const n=Oe.toCamelCase(" "+t);["get","set","has"].forEach((i=>{Object.defineProperty(e,i+n,{value:function(e,n,r){return this[i].call(this,t,e,n,r)},configurable:!0})}))}class _t{constructor(e){e&&this.set(e)}set(e,t,n){const i=this;function r(e,t,n){const r=ft(t);if(!r)throw new Error("header name must be a non-empty string");const a=Oe.findKey(i,r);(!a||void 0===i[a]||!0===n||void 0===n&&!1!==i[a])&&(i[a||t]=pt(e))}const a=(e,t)=>Oe.forEach(e,((e,n)=>r(e,n,t)));return Oe.isPlainObject(e)||e instanceof this.constructor?a(e,t):Oe.isString(e)&&(e=e.trim())&&!vt(e)?a(ht(e),t):null!=e&&r(t,e,n),this}get(e,t){if(e=ft(e),e){const n=Oe.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return mt(e);if(Oe.isFunction(t))return t.call(this,e,n);if(Oe.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ft(e),e){const n=Oe.findKey(this,e);return!(!n||void 0===this[n]||t&&!gt(this,this[n],n,t))}return!1}delete(e,t){const n=this;let i=!1;function r(e){if(e=ft(e),e){const r=Oe.findKey(n,e);!r||t&&!gt(n,n[r],r,t)||(delete n[r],i=!0)}}return Oe.isArray(e)?e.forEach(r):r(e),i}clear(e){const t=Object.keys(this);let n=t.length,i=!1;while(n--){const r=t[n];e&&!gt(this,this[r],r,e,!0)||(delete this[r],i=!0)}return i}normalize(e){const t=this,n={};return Oe.forEach(this,((i,r)=>{const a=Oe.findKey(n,r);if(a)return t[a]=pt(i),void delete t[r];const o=e?yt(r):String(r).trim();o!==r&&delete t[r],t[o]=pt(i),n[o]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Oe.forEach(this,((n,i)=>{null!=n&&!1!==n&&(t[i]=e&&Oe.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=this[dt]=this[dt]={accessors:{}},n=t.accessors,i=this.prototype;function r(e){const t=ft(e);n[t]||(bt(i,e),n[t]=!0)}return Oe.isArray(e)?e.forEach(r):r(e),this}}_t.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Oe.reduceDescriptors(_t.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),Oe.freezeMethods(_t);var xt=_t;function St(e,t){const n=this||ut,i=t||n,r=xt.from(i.headers);let a=i.data;return Oe.forEach(e,(function(e){a=e.call(n,a,r.normalize(),t?t.status:void 0)})),r.normalize(),a}function wt(e){return!(!e||!e.__CANCEL__)}function Ct(e,t,n){Ae.call(this,null==e?"canceled":e,Ae.ERR_CANCELED,t,n),this.name="CanceledError"}Oe.inherits(Ct,Ae,{__CANCEL__:!0});var kt=Ct;__webpack_require__(2801);function Ot(e,t,n){const i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(new Ae("Request failed with status code "+n.status,[Ae.ERR_BAD_REQUEST,Ae.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}var Dt=tt.hasStandardBrowserEnv?{write(e,t,n,i,r,a){const o=[e+"="+encodeURIComponent(t)];Oe.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),Oe.isString(i)&&o.push("path="+i),Oe.isString(r)&&o.push("domain="+r),!0===a&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Et(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Nt(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function At(e,t){return e&&!Et(t)?Nt(e,t):t}var Tt=tt.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function i(n){let i=n;return e&&(t.setAttribute("href",i),i=t.href),t.setAttribute("href",i),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=i(window.location.href),function(e){const t=Oe.isString(e)?i(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return function(){return!0}}();function Pt(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function It(e,t){e=e||10;const n=new Array(e),i=new Array(e);let r,a=0,o=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),u=i[o];r||(r=l),n[a]=s,i[a]=l;let c=o,h=0;while(c!==a)h+=n[c++],c%=e;if(a=(a+1)%e,a===o&&(o=(o+1)%e),l-r<t)return;const d=u&&l-u;return d?Math.round(1e3*h/d):void 0}}var Ft=It;function jt(e,t){let n=0;const i=Ft(50,250);return r=>{const a=r.loaded,o=r.lengthComputable?r.total:void 0,s=a-n,l=i(s),u=a<=o;n=a;const c={loaded:a,total:o,progress:o?a/o:void 0,bytes:s,rate:l||void 0,estimated:l&&o&&u?(o-a)/l:void 0,event:r};c[t?"download":"upload"]=!0,e(c)}}const Mt="undefined"!==typeof XMLHttpRequest;var $t=Mt&&function(e){return new Promise((function(t,n){let i=e.data;const r=xt.from(e.headers).normalize();let a,o,{responseType:s,withXSRFToken:l}=e;function u(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}if(Oe.isFormData(i))if(tt.hasStandardBrowserEnv||tt.hasStandardBrowserWebWorkerEnv)r.setContentType(!1);else if(!1!==(o=r.getContentType())){const[e,...t]=o?o.split(";").map((e=>e.trim())).filter(Boolean):[];r.setContentType([e||"multipart/form-data",...t].join("; "))}let c=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";r.set("Authorization","Basic "+btoa(t+":"+n))}const h=At(e.baseURL,e.url);function d(){if(!c)return;const i=xt.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),r=s&&"text"!==s&&"json"!==s?c.response:c.responseText,a={data:r,status:c.status,statusText:c.statusText,headers:i,config:e,request:c};Ot((function(e){t(e),u()}),(function(e){n(e),u()}),a),c=null}if(c.open(e.method.toUpperCase(),We(h,e.params,e.paramsSerializer),!0),c.timeout=e.timeout,"onloadend"in c?c.onloadend=d:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(d)},c.onabort=function(){c&&(n(new Ae("Request aborted",Ae.ECONNABORTED,e,c)),c=null)},c.onerror=function(){n(new Ae("Network Error",Ae.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const i=e.transitional||qe;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new Ae(t,i.clarifyTimeoutError?Ae.ETIMEDOUT:Ae.ECONNABORTED,e,c)),c=null},tt.hasStandardBrowserEnv&&(l&&Oe.isFunction(l)&&(l=l(e)),l||!1!==l&&Tt(h))){const t=e.xsrfHeaderName&&e.xsrfCookieName&&Dt.read(e.xsrfCookieName);t&&r.set(e.xsrfHeaderName,t)}void 0===i&&r.setContentType(null),"setRequestHeader"in c&&Oe.forEach(r.toJSON(),(function(e,t){c.setRequestHeader(t,e)})),Oe.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),s&&"json"!==s&&(c.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&c.addEventListener("progress",jt(e.onDownloadProgress,!0)),"function"===typeof e.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",jt(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=t=>{c&&(n(!t||t.type?new kt(null,e,c):t),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const f=Pt(h);f&&-1===tt.protocols.indexOf(f)?n(new Ae("Unsupported protocol "+f+":",Ae.ERR_BAD_REQUEST,e)):c.send(i||null)}))};const Lt={http:Te,xhr:$t};Oe.forEach(Lt,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}}));const Rt=e=>`- ${e}`,Bt=e=>Oe.isFunction(e)||null===e||!1===e;var Vt={getAdapter:e=>{e=Oe.isArray(e)?e:[e];const{length:t}=e;let n,i;const r={};for(let a=0;a<t;a++){let t;if(n=e[a],i=n,!Bt(n)&&(i=Lt[(t=String(n)).toLowerCase()],void 0===i))throw new Ae(`Unknown adapter '${t}'`);if(i)break;r[t||"#"+a]=i}if(!i){const e=Object.entries(r).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let n=t?e.length>1?"since :\n"+e.map(Rt).join("\n"):" "+Rt(e[0]):"as no adapter specified";throw new Ae("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return i},adapters:Lt};function zt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new kt(null,e)}function Ht(e){zt(e),e.headers=xt.from(e.headers),e.data=St.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);const t=Vt.getAdapter(e.adapter||ut.adapter);return t(e).then((function(t){return zt(e),t.data=St.call(e,e.transformResponse,t),t.headers=xt.from(t.headers),t}),(function(t){return wt(t)||(zt(e),t&&t.response&&(t.response.data=St.call(e,e.transformResponse,t.response),t.response.headers=xt.from(t.response.headers))),Promise.reject(t)}))}const Wt=e=>e instanceof xt?e.toJSON():e;function Gt(e,t){t=t||{};const n={};function i(e,t,n){return Oe.isPlainObject(e)&&Oe.isPlainObject(t)?Oe.merge.call({caseless:n},e,t):Oe.isPlainObject(t)?Oe.merge({},t):Oe.isArray(t)?t.slice():t}function r(e,t,n){return Oe.isUndefined(t)?Oe.isUndefined(e)?void 0:i(void 0,e,n):i(e,t,n)}function a(e,t){if(!Oe.isUndefined(t))return i(void 0,t)}function o(e,t){return Oe.isUndefined(t)?Oe.isUndefined(e)?void 0:i(void 0,e):i(void 0,t)}function s(n,r,a){return a in t?i(n,r):a in e?i(void 0,n):void 0}const l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(e,t)=>r(Wt(e),Wt(t),!0)};return Oe.forEach(Object.keys(Object.assign({},e,t)),(function(i){const a=l[i]||r,o=a(e[i],t[i],i);Oe.isUndefined(o)&&a!==s||(n[i]=o)})),n}const Ut="1.6.2",qt={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{qt[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const Kt={};function Jt(e,t,n){if("object"!==typeof e)throw new Ae("options must be an object",Ae.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let r=i.length;while(r-- >0){const a=i[r],o=t[a];if(o){const t=e[a],n=void 0===t||o(t,a,e);if(!0!==n)throw new Ae("option "+a+" must be "+n,Ae.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Ae("Unknown option "+a,Ae.ERR_BAD_OPTION)}}qt.transitional=function(e,t,n){function i(e,t){return"[Axios v"+Ut+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,r,a)=>{if(!1===e)throw new Ae(i(r," has been removed"+(t?" in "+t:"")),Ae.ERR_DEPRECATED);return t&&!Kt[r]&&(Kt[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,a)}};var Yt={assertOptions:Jt,validators:qt};const Qt=Yt.validators;class Xt{constructor(e){this.defaults=e,this.interceptors={request:new Ue,response:new Ue}}request(e,t){"string"===typeof e?(t=t||{},t.url=e):t=e||{},t=Gt(this.defaults,t);const{transitional:n,paramsSerializer:i,headers:r}=t;void 0!==n&&Yt.assertOptions(n,{silentJSONParsing:Qt.transitional(Qt.boolean),forcedJSONParsing:Qt.transitional(Qt.boolean),clarifyTimeoutError:Qt.transitional(Qt.boolean)},!1),null!=i&&(Oe.isFunction(i)?t.paramsSerializer={serialize:i}:Yt.assertOptions(i,{encode:Qt.function,serialize:Qt.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=r&&Oe.merge(r.common,r[t.method]);r&&Oe.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete r[e]})),t.headers=xt.concat(a,r);const o=[];let s=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,o.unshift(e.fulfilled,e.rejected))}));const l=[];let u;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let c,h=0;if(!s){const e=[Ht.bind(this),void 0];e.unshift.apply(e,o),e.push.apply(e,l),c=e.length,u=Promise.resolve(t);while(h<c)u=u.then(e[h++],e[h++]);return u}c=o.length;let d=t;h=0;while(h<c){const e=o[h++],t=o[h++];try{d=e(d)}catch(f){t.call(this,f);break}}try{u=Ht.call(this,d)}catch(f){return Promise.reject(f)}h=0,c=l.length;while(h<c)u=u.then(l[h++],l[h++]);return u}getUri(e){e=Gt(this.defaults,e);const t=At(e.baseURL,e.url);return We(t,e.params,e.paramsSerializer)}}Oe.forEach(["delete","get","head","options"],(function(e){Xt.prototype[e]=function(t,n){return this.request(Gt(n||{},{method:e,url:t,data:(n||{}).data}))}})),Oe.forEach(["post","put","patch"],(function(e){function t(t){return function(n,i,r){return this.request(Gt(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}Xt.prototype[e]=t(),Xt.prototype[e+"Form"]=t(!0)}));var Zt=Xt;class en{constructor(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;while(t-- >0)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const i=new Promise((e=>{n.subscribe(e),t=e})).then(e);return i.cancel=function(){n.unsubscribe(t)},i},e((function(e,i,r){n.reason||(n.reason=new kt(e,i,r),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;const t=new en((function(t){e=t}));return{token:t,cancel:e}}}var tn=en;function nn(e){return function(t){return e.apply(null,t)}}function rn(e){return Oe.isObject(e)&&!0===e.isAxiosError}const an={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(an).forEach((([e,t])=>{an[t]=e}));var on=an;function sn(e){const t=new Zt(e),n=C(Zt.prototype.request,t);return Oe.extend(n,Zt.prototype,t,{allOwnKeys:!0}),Oe.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return sn(Gt(e,t))},n}const ln=sn(ut);ln.Axios=Zt,ln.CanceledError=kt,ln.CancelToken=tn,ln.isCancel=wt,ln.VERSION=Ut,ln.toFormData=Le,ln.AxiosError=Ae,ln.Cancel=ln.CanceledError,ln.all=function(e){return Promise.all(e)},ln.spread=nn,ln.isAxiosError=rn,ln.mergeConfig=Gt,ln.AxiosHeaders=xt,ln.formToJSON=e=>ot(Oe.isHTMLForm(e)?new FormData(e):e),ln.getAdapter=Vt.getAdapter,ln.HttpStatusCode=on,ln.default=ln;var un=ln,cn=__webpack_require__(5824);un.defaults.headers["Content-Type"]="application/json;charset=utf-8";const hn=un.create({baseURL:"/customer-api",timeout:1e4});hn.interceptors.request.use((e=>e),(e=>{Promise.reject(e)})),hn.interceptors.response.use((e=>e.data),(e=>{let{message:t}=e;return"Network Error"==t?t="后端接口连接异常":t.includes("timeout")?t="系统接口请求超时":t.includes("Request failed with status code")&&(t="系统接口"+t.substr(t.length-3)+"异常"),(0,cn.Message)({message:t,type:"error",duration:5e3}),Promise.reject(e)}));var dn=hn;function fn(e){return dn({url:"/aiService/discourse/getProblemTypeAndProblem/"+e,method:"GET"})}function pn(e){return dn({url:"/aiService/discourse/findDataByProblem",method:"POST",data:e})}function mn(e){return dn({url:"/aiService/discourse/findMaxNumData/"+e,method:"GET"})}var vn={props:{visible:Boolean,jumpPage:String,title:String,commit:String,id:{default:0,type:Number}},data(){return{textareaValue:"",regular:[],messagelist:[{id:"admin",msg:["您好,很高兴为你服务!"],isActive:!1}],isActive:!1}},computed:{questions(){return JSON.parse(this.json)}},methods:{close(){this.$emit("update:visible",!1)},carriageReturn(){let e=window.event||arguments[0];"Enter"!=e.key&&"Enter"!=e.code&&13!=e.keyCode||!this.textareaValue||this.send()},send(){this.textareaValue.replace(/[^\w\u4E00-\u9FA5]/g,"")&&(this.add(this.textareaValue,"personal",(()=>{this.textareaValue=""})),this.search(this.textareaValue))},regularClick(e){this.add(e),this.search(e)},search(e){pn({problem:e.replace(/\n/g,""),aiServiceId:1}).then((e=>{this.add(e?.data?.answer||"您好","admin",null,e?.data?.based)}))},add(e,t="personal",n,i=""){this.messagelist.push({id:t,msg:Array.isArray(e)?e:[e],based:i,isActive:!1}),this.$nextTick((()=>{n&&n(),this.$refs.main.scrollTop=this.$refs.main.scrollHeight}))},enlarge(){window.open(this.jumpPage,"_blank")},handExpand(e){e.isActive=!e.isActive}}},gn={name:"ChatMini",mixins:[vn],watch:{id(e){this.findMaxNumData(e)}},created(){this.findMaxNumData(this.id)},methods:{findMaxNumData(e){e&&mn(e).then((({data:e})=>{this.regular=e.map((e=>e.problem))}))}}},yn=gn,bn=f(yn,S,w,!1,null,"4d4d12d8",null),_n=bn.exports,xn={name:"YcCustomerService",components:{chatVue:_n},props:{jumpPage:String,title:String,id:Number},data(){return{visible:!1}},computed:{hasSlot(){return Boolean(this.$slots.default)}},watch:{$route(e){e.path!=this.jumpPage?this.$refs.customer.style.display="block":this.$refs.customer.style.display="none"}},mounted(){this.$refs.customer.style.display="block"}},Sn=xn,wn=f(Sn,_,x,!1,null,"20a37cb1",null),Cn=wn.exports,kn=function(){var e=this,t=e._self._c;return t("div",{staticClass:"YcQuestion"},[t("div",{staticClass:"chatPage"},[t("header",{staticStyle:{background:"url(/cloud-img/customerService/chatTop.png) center","background-size":"cover"}},[t("div",[t("h3",[e._v(e._s(e.title))]),t("span",[e._v("Problem Help")])]),t("p",[e._v(e._s(e.commit))])]),t("div",{staticClass:"main"},[t("div",[t("main",{ref:"main"},[t("p",[e._v("今天"+e._s(e.currData))]),e._l(e.messagelist,(function(n,i){return t("div",{key:i,class:["message",n.id]},[t("img",{staticClass:"avatar",attrs:{src:__webpack_require__(7021)(`./${n.id}.jpg`)}}),t("div",{staticClass:"content",attrs:{"data-before":`${e.title}【${e.id}号为您服务】`}},[e._l(n.msg,(function(i,r){return t("span",{key:i+r,class:n.msg.length>1?"href":"",domProps:{innerHTML:e._s((n.msg.length>1?1+r+". ":" ")+i)},on:{click:function(t){n.msg.length>1&&e.regularClick(i)}}})})),n.based?t("div",{staticClass:"based",on:{click:function(t){return t.preventDefault(),e.handExpand(n)}}},[t("span",[e._v("依据")]),t("span",{class:{"is-active":n.isActive}},[e._v(e._s(n.based)),t("i",{staticClass:"el-icon-d-arrow-right"})])]):e._e()],2)])}))],2),t("footer",[t("el-input",{attrs:{type:"textarea",maxlength:"500",autosize:{minRows:6,maxRows:6},autofocus:"true",resize:"none",placeholder:"请输入你要咨询的问题"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.carriageReturn.apply(null,arguments)}},model:{value:e.textareaValue,callback:function(t){e.textareaValue=t},expression:"textareaValue"}}),t("el-button",{style:e.textareaValue?"":"background-color: #F7F7F9;color: #FF575F;border-color: transparent;",attrs:{type:"primary",disabled:!e.textareaValue},on:{click:e.send}},[e._v("发送")])],1)]),t("aside",[t("el-collapse",{attrs:{accordion:""},model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},e._l(e.questionsList,(function({discourseVoList:n,answerTypeId:i,answerType:r}){return t("el-collapse-item",{key:i,attrs:{name:i}},[t("template",{slot:"title"},[t("img",{attrs:{src:__webpack_require__(4800)}}),e._v(e._s(r)+" ")]),e._l(n,(function({problem:n,problemId:i}){return t("div",{key:i,domProps:{innerHTML:e._s(n)},on:{click:function(t){return e.regularClick(n)}}})}))],2)})),1)],1)])])])},On=[],Dn={name:"YcQuestion",mixins:[vn],data(){return{activeNames:[1],questionsList:[]}},computed:{currData(){const e=new Date;return`${e.getHours()}:${e.getMinutes()}`}},watch:{id(e){this.getProblemTypeAndProblem(e)}},created(){this.getProblemTypeAndProblem(this.id)},methods:{getProblemTypeAndProblem(e){e&&fn(e).then((({data:e})=>{this.questionsList=e}))}}},En=Dn,Nn=f(En,kn,On,!1,null,"d5040714",null),An=Nn.exports,Tn=function(){var e=this,t=e._self._c;return t("div",[t("el-form",{ref:"loginForm",staticClass:"login-form",attrs:{model:e.loginForm,rules:e.loginRules}},[void 0==e.loginForm.username?t("div",{staticClass:"ca-bg-box"},[t("div",{staticClass:"ca-bg-img"}),t("div",{staticClass:"ca-bg-text"},[e._v("请插入UKEY证书")]),t("img",{staticClass:"ca-refresh",class:{start:e.caLoading},attrs:{src:__webpack_require__(3379),alt:""},on:{click:e.caRead}})]):t("div",{staticClass:"ca-bg-info"},[t("div",{staticClass:"ca-bg-text"},[e._v(" CA名称:"),t("span",{staticClass:"caName"},[e._v(e._s(e.loginForm.username))])]),t("img",{staticClass:"ca-refresh",class:{start:e.caLoading},attrs:{src:__webpack_require__(3379),alt:""},on:{click:e.caRead}})]),t("el-form-item",{attrs:{prop:"password"}},[t("el-input",{attrs:{type:"password","auto-complete":"off",placeholder:"密码","show-password":""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleLogin.apply(null,arguments)}},model:{value:e.loginForm.password,callback:function(t){e.$set(e.loginForm,"password",t)},expression:"loginForm.password"}},[t("img",{staticClass:"el-input__icon input-icon",attrs:{slot:"prefix",src:__webpack_require__(3284)},slot:"prefix"})])],1),t("el-form-item",[t("el-button",{staticClass:"login-btn",staticStyle:{width:"100%"},attrs:{loading:e.loading,size:"medium",type:"primary"},nativeOn:{click:function(t){return t.preventDefault(),e.handleLogin.apply(null,arguments)}}},[e.loading?t("span",[e._v("登 录 中...")]):t("span",[e._v("登 录")])])],1),e._t("default")],2),t("el-dialog",{attrs:{title:"提示",visible:e.dialogVisible.showInfo,width:"30%",center:""},on:{"update:visible":function(t){return e.$set(e.dialogVisible,"showInfo",t)}}},[t("span",{staticStyle:{color:"red"}},[e._v(e._s(e.caInfo.error_text))]),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:function(t){e.dialogVisible.showInfo=!1}}},[e._v("取 消")]),t("el-button",{attrs:{type:"primary"},on:{click:function(t){e.dialogVisible.showInfo=!1}}},[e._v("确 定")])],1)])],1)},Pn=[],In=__webpack_require__(353),Fn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function jn(e){var t,n,i,r,a,o,s,l="",u=0;e=Mn(e);while(u<e.length)t=e.charCodeAt(u++),n=e.charCodeAt(u++),i=e.charCodeAt(u++),r=t>>2,a=(3&t)<<4|n>>4,o=(15&n)<<2|i>>6,s=63&i,isNaN(n)?o=s=64:isNaN(i)&&(s=64),l=l+Fn.charAt(r)+Fn.charAt(a)+Fn.charAt(o)+Fn.charAt(s);return l}function Mn(e){var t=""+e;t=t.replace(/\r\n/g,"\n");for(var n="",i=0;i<t.length;i++){var r=t.charCodeAt(i);r<128?n+=String.fromCharCode(r):r>127&&r<2048?(n+=String.fromCharCode(r>>6|192),n+=String.fromCharCode(63&r|128)):(n+=String.fromCharCode(r>>12|224),n+=String.fromCharCode(r>>6&63|128),n+=String.fromCharCode(63&r|128))}return n}function $n(){var e=new In.R("mTokenPlugin"),t=null;t="Win32"==navigator.platform||"Windows"==navigator.platform?Array("GM3000","HT","SJK1137"):Array("HT");var n="",i=0,r=1,a=1;let o=1025;var s="1234567812345678",l="控件加载失败,错误码:",u="未找到UKey!\n1.请确认是否安装最新驱动!\n2.计算机是否插入湖南CA UKey!",c="USBKey实例化失败,请确认此UKey是否插入计算机!\n点击‘刷新’按钮,更新设备列表。\n错误码:",h="Ukey密码必须为4~16位!",d="UKey密码错误",f="UKey密码修改失败",p="UKey不存在,请确认此UKey是否插入计算机,并点击'刷新'按钮,更新设备列表!",m="请点击‘刷新’按钮,更新设备列表并选择相应设备!",v="证书获取失败,请加检测Key中是否存在证书!",g="设置摘要算法失败,请重新刷新浏览器!",y="设置用户ID失败,请重新刷新浏览器",b="签名失败,待签名原文不能为空",_="签名失败,返回错误码:",x="请点击‘刷新’按钮,更新设备列表并选择相应设备!",S="证书G项信息转化证书名称失败,请点击“刷新”按钮!",w="加载国密库失败!",C="加密失败:待加密原文不能为空!",k="解密失败:待解密密文不能为空!",O="解密失败:请确认密文是否完整!\n解密所采用的Ukey是否为加密时的Ukey!",D="申请解锁请求失败!",E="此型号Ukey不支持解锁!",N="Ukey解锁失败!",A=null,T=null,P=null,I=null,F=null,j=null,M=null,$=null;function L(t){var i=0;return"GM3000"==t?i=e.SOF_LoadLibrary(e.GM3000):"HT"==t?i=e.SOF_LoadLibrary(e.HT):"SJK1137"==t&&(i=e.SOF_LoadLibrary(e.SJK1137)),0==i||(n=l+e.SOF_GetLastError(),!1)}function R(){var t="";return t=e.SOF_EnumDevice(),null==t||0==t.length?(n=u,null):t}function B(t){var i=0;return i=e.SOF_GetDeviceInstance(t,""),0==i||(n=c+e.SOF_GetLastError(),!1)}function V(){var t="";return t=e.SOF_GetUserList(),null==t||0==t.length?(n="USBkey中未找到证书!",null):t}function z(t){var i=0,r=""+t,a=0;return null==r||0==r.length||r.length<4||r.length>16?(n=h,!1):(i=e.SOF_Login(r),0==i||(a=W(),n=a>0?d+",还剩 "+a+" 次重试机会!":"UKey已经锁死,请联系管理员进行解锁!",!1))}function H(t,i){var r=0,a=""+t,o=""+i,s=0;return null==a||0==a.length||null==o||0==o.length||a.length<4||a.length>16||o.length<4||o.length>16?(n=h,!1):(r=e.SOF_ChangePassWd(a,o),0==r||(s=W(),n=s>0?f+",还剩 "+s+" 次重试机会!":"UKey已经锁死,请联系管理员进行解锁!",!1))}function W(){var t=0;return t=e.SOF_GetPinRetryCount(),t}function G(){var t=null;return t=e.SOF_GetDeviceInfo(e.SGD_DEVICE_SERIAL_NUMBER),t}function U(t,i){var r;return r=e.SOF_ExportUserCert(t,i),null==r||0==r.length?(n=v,null):r}function q(t,i){var r=1;return void 0==t||null==t?(n="请设置加密方式!",!1):(r=e.SOF_SetEncryptMethodAndIV(t,jn(i)),0==r||(n=e.SOF_GetLastError(),!1))}function K(t){var i=0;return i=e.SOF_SetDigestMethod(t),0==i||(n=g,!1)}function J(){var t=0;return t=e.SOF_SetUserID(s),0==t||(n=y,!1)}function Y(t,i){var r="",a="",o="";return o=""+i,0==o.length?(n=C,""):(a=jn(o),r=e.SOF_EncryptDataPKCS7(t,a,i.length),null==r||0==r.length?(n="加密失败,"+e.SOF_GetLastError(),""):r)}function Q(t,i,r){var a="",o="";if(a=""+r,null==t||0==t.length)return n="应用名称不能为空!","";if(0==a.length)return n=k,"";try{o=e.SOF_DecryptDataPKCS7(t,i,a)}catch(s){o=""}return void 0==o||null==o||""==o?(n=O,""):o}function X(t,i,r,a){var o=null,s=null,l=""+r;return null==l||0==l.length?(n=b,!1):(s=jn(l),o=e.SOF_SignData(t,i,jn(s),s.length),null==o||0==o.length?(n=_+SOF_GetLastError(),!1):(P=a,T=o,!0))}function Z(t){var n,i,r=null,a=null,o=null,s=null,l=null;if(null==t||0==t.length)return!1;F="",I="",j="",r=e.SOF_GetCertInfo(t,e.SGD_CERT_SERIAL),I=se(r),a=e.SOF_GetCertInfo(t,e.SGD_CERT_SUBJECT),j=a,s=e.SOF_GetCertInfo(t,e.SGD_CERT_VALID_TIME),M=s,l=e.SOF_GetCertInfo(t,e.SGD_CERT_NOT_BEFORE),$=l,o=a.split(",");for(var u=0;u<o.length;u++)if(-1!=o[u].indexOf("=")&&(n=o[u].split("=")[0],i=o[u].split("=")[1],"GN"==n)){F=i;break}return!0}function ee(){e.SOF_LogOut()}function te(){var t=e.SOF_GenRemoteUnblockRequest();return null==t||""==t?(n=D,""):t}function ne(t){var i=!1;return null==t||0==t.length?(n="解锁失败解:响应不能为空!",!1):(i=e.SOF_RemoteUnblockPIN(t),0==i||(n=N,!1))}function ie(e,t,n){var i=[],r=Math.max(e.length,t.length),a=0,o=0;while(o<r||a){var s=o<e.length?e[o]:0,l=o<t.length?t[o]:0,u=a+s+l;i.push(u%n),a=Math.floor(u/n),o++}return i}function re(e,t,n){if(e<0)return null;if(0==e)return[];var i=[],r=t;while(1){if(1&e&&(i=ie(i,r,n)),e>>=1,0===e)break;r=ie(r,r,n)}return i}function ae(e,t){for(var n=e.split(""),i=[],r=n.length-1;r>=0;r--){var a=parseInt(n[r],t);if(isNaN(a))return null;i.push(a)}return i}function oe(e,t,n){var i=ae(e,t);if(null===i)return null;for(var r=[],a=[1],o=0;o<i.length;o++)i[o]&&(r=ie(r,re(i[o],a,n),n)),a=re(t,a,n);var s="";for(let l=r.length-1;l>=0;l--)s+=r[l].toString(n);return s}function se(e){return"0x"===e.substring(0,2)&&(e=e.substring(2)),e=e.toLowerCase(),oe(e,16,10)}this.Hunca_GetLastError=function(){return n},this.Hunca_GetUserList=function(){var e=null,i=null,r=null,a=null;P=null,T=null,A=new Array;for(var o=0;o<t.length;o++){var s=t[o];if(L(s)&&(e=R(),null!=e))for(var l=0;l<e.length;l++){var c=new Object;if(!B(e[l]))break;a=V(),null==a&&0==a.length||(i=a[0][1],r=a[0][0],c.libraryName=s,c.serial=e[l],c.userName=r,c.containerName=i,A.push(c),ee())}}var h=new Array;for(let t=0;t<A.length;t++)h[t]=A[t].userName;return 0==h.length?(n=u,""):h},this.Hunca_GetUserListGN=function(){var e=null,n=null,i=null,a=null,o=null,s="";A=new Array;for(var l=0;l<t.length;l++){var c=t[l];if(L(c)&&(e=R(),null!=e))for(var h=0;h<e.length;h++){F=null,I=null,s=e[h];var d=new Object;if(!B(s))break;a=V(),null==a&&0==a.length||(n=a[0][1],i=a[0][0],d.libraryName=c,d.serial=e[h],d.userName=i,d.containerName=n,o=U(d.containerName,r),Z(o)&&(d.subjectGN=F,A.push(d),ee()))}}var f=new Array;for(let t=0;t<A.length;t++)f[t]=A[t].subjectGN;return 0==f.length?(u,""):f},this.Hunca_userNameGNToUserName=function(e){var t=null;n="",null!=e&&0!=e.length||(n=x);for(var i=0;i<A.length;i++)if(e==A[i].subjectGN){t=A[i].userName;break}return null==t||0==t.length?(n=S,null):t},this.Hunca_GenRemoteUnblockRequest=function(e){var t=null,i=null,r="";if(n="",null==e||null==e.length)return n=m,!1;if(null==A||0==A.length)return n=u,!1;for(var a=0;a<A.length;a++)if(i=A[a],i.userName==e){t=i;break}return null==t?(n=p,!1):"GM3000"!=t.libraryName?(n=E,!1):L(t.libraryName)?!!B(t.serial)&&(null!=V()&&(r=te(),r)):(n=w,!1)},this.HUnca_GetDeviceNumber=function(e){var t=null;if(null==e||null==e.length)return n=m,!1;if(null==A||0==A.length)return n=u,!1;for(var i=0;i<A.length;i++){let t=A[i];if(t.userName==e){tokenInfo=t;break}}return null==tokenInfo?(n=p,!1):L(tokenInfo.libraryName)?!!B(tokenInfo.serial)&&(t=G(),t+""):(n=w,!1)},this.Hunca_RemoteUnlockPIN=function(e,t){var i=null,r=null,a=!1;if(n="",null==e||null==e.length)return n=m,!1;if(null==A||0==A.length)return n=u,!1;for(var o=0;o<A.length;o++)if(r=A[o],r.userName==e){i=r;break}return null==i?(n=p,!1):"GM3000"!=i.libraryName?(n=E,!1):L(i.libraryName)?!!B(i.serial)&&(null!=V()&&(a=ne(t),a)):(n=w,!1)},this.Hunca_ChangeUserPin=function(e,t,i){var r=null,a=null;if(n="",null==e||null==e.length)return n=m,!1;if(null==A||0==A.length)return n=u,!1;for(var o=0;o<A.length;o++)if(a=A[o],a.userName==e){r=a;break}return null==r?(n=p,!1):(L(r.libraryName)||(n=w),!!B(r.serial)&&(!!H(t,i)&&(ee(),!0)))},this.Hunca_PKCS1=function(e,t,n){var i=null,o=null,s=null;new Object;if(null==t||null==t.length)return m,!1;if(null==A||0==A.length)return u,!1;for(var l=0;l<A.length;l++)if(o=A[l],o.userName==t){i=o;break}return null==i?(p,!1):(L(i.libraryName)||w,!!B(i.serial)&&(!!z(n)&&(s=U(i.containerName,r),null!=s&&(!!K(a)&&(!!J()&&(!!X(i.containerName,a,e,s)&&(!!Z(s)&&(ee(),!0))))))))},this.Hunca_GetSignData=function(){return T},this.Hunca_GetSignCert=function(){return P},this.Hunca_GetSignCertSn=function(){return I},this.Hunca_GetSignCertSubject=function(){return j},this.Hunca_GetValidTime=function(){return M},this.HUnca_GetNotBeforeTime=function(){return $},this.Hunca_DealCertInfo=function(e){var t=null,i=null,a=null;if(n="",signResultInfo=null,certInfo=new Object,null==e||null==e.length)return n=m,!1;if(null==A||0==A.length)return n=u,!1;for(var o=0;o<A.length;o++)if(i=A[o],i.userName==e){t=i;break}return null==t?(n=p,!1):L(t.libraryName)?!!B(t.serial)&&(a=U(t.containerName,r),null!=a&&0!=a.length&&(Z(a),ee(),!0)):(n=w,!1)},this.Hunca_EncryptDataPKCS7=function(e,t,n,r){var a=null,s=null,l=null,c="",h="";new Object;if(null==t||null==t.length)return m,"";if(null==A||0==A.length)return u,"";for(var d=0;d<A.length;d++)if(s=A[d],s.userName==t){a=s;break}return null==a?(p,""):L(a.libraryName)?B(a.serial)?(l=U(a.containerName,i),null==l||0==l.length?"":(c=n+"",h=r+"",null!=c&&0!=c.length||(c=o,h=""),q(c,h)?(encryptData=Y(l,e),ee(),encryptData):"")):"":(w,"")},this.Hunca_DecryptDataPKCS7=function(e,t,n,r,a){var s=null,l=null,c="",h="",d="",f="",v="";new Object;if(d=""+e,null==t||null==t.length)return m,"";if(null==A||0==A.length)return u,"";for(var g=0;g<A.length;g++)if(l=A[g],l.userName==t){s=l;break}if(null==s)return p,"";if(!L(s.libraryName))return w,"";if(!B(s.serial))return"";if(!z(n))return"";if(c=r+"",h=a+"",null!=c&&0!=c.length||(c=o,h=""),!q(c,h))return"";if(f=Q(s.containerName,i,d),0==f.length)return"";try{v=_Base64decode(f)}catch(y){v=f,"解密失败:Base64解码失败"}return v}}__webpack_require__(9343);function Ln(e){let t=e.slice(0,4),n=e.slice(4,6),i=e.slice(6,8),r=e.slice(8,10),a=e.slice(10,12),o=e.slice(12);return`${t}-${n}-${i} ${r}:${a}:${o}`}var Rn={name:"YcCA",props:{region:{type:Number,default:0}},data(){return{form:{},caInfo:{error_text:"",have_error_info:!1},loginForm:{username:"",password:"",uuid:"",caInfo:""},dialogVisible:{ca:!1,showInfo:!1},loginRules:{password:[{required:!0,trigger:"blur",message:"请输入您的密码"}]},loading:!1,caLoading:!1}},computed:{isBJCA(){return 1==this.region}},watch:{region(){this.caRead()}},created(){},methods:{caRead(){if(this.isBJCA)this.caReadBeijin();else{window.mToken=new $n;let e=window.mToken.Hunca_GetUserListGN();this.loginForm.username=e[0]}},async caReadBeijin(){if(this.caLoading)return;this.caLoading=!0,setTimeout((()=>{this.caLoading=!1}),1e3);let e=await new Promise((e=>{window.SOF_GetUserList((function(t){e(t)}))}));this.loginForm.username=e.retVal.split("||")[0]},caLogin(e){switch(e){case 0:this.HNCALogin();break;default:this.$message({type:"warning",message:"请选择CA平台!!!"})}},HNCALogin(){window.mToken=new $n,this.loginForm.username=window.mToken.Hunca_GetUserListGN();let e=window.mToken.Hunca_userNameGNToUserName(this.loginForm.username[0]),t=Math.random();if(!window.mToken.Hunca_PKCS1(t,e,this.loginForm.password))return this.caInfo.error_text=window.mToken.Hunca_GetLastError(),this.caInfo.have_error_info=!0,this.dialogVisible.showInfo=!0,!1;this.ca_cert=window.mToken.Hunca_GetSignCert(),this.sign=window.mToken.Hunca_GetSignData(),this.certSn=window.mToken.Hunca_GetSignCertSn(),this.cert_subject=window.mToken.Hunca_GetSignCertSubject(),this.cert_validTime=window.mToken.Hunca_GetValidTime(),this.cert_notBeforeTime=window.mToken.HUnca_GetNotBeforeTime();let n=this.cert_subject.split(","),i={};return n.forEach((e=>{i[e.split("=")[0]]=e.split("=")[1]})),this.loginForm={cert:this.ca_cert,sign:this.sign,rn:t,caInfo:this.cert_subject,caAddr:i.ST+i.OU,caCode:i.TITLE,caName:i.GN,caSn:this.certSn,caEffectiveDate:this.cert_notBeforeTime,caExpireDate:this.cert_validTime,loginType:"3",username:i.GN},!0},handleLogin(){this.$refs.loginForm.validate((e=>{e&&(this.loading=!0,this.isBJCA?this.BJCALogin():(this.HNCALogin(),1==this.dialogVisible.showInfo?this.loading=!1:void 0!=this.loginForm.username?(this.loading=!0,this.$emit("caSuccess",this.loginForm,(()=>{this.loading=!1}))):this.msgErr("请插入CA")))}))},async BJCALogin(){if(void 0!=this.loginForm.password){let n=await new Promise((e=>{window.SOF_GetUserList((function(t){e(t.retVal.split("&&&")[0].split("||")[1])}))}));var e=new Date;let i=this.loginForm.password;if(!n||!i)return;var t=navigator.platform.toLowerCase();-1!=t.indexOf("win")?window.SOF_LoginEx(n,i,0,this.login_callback,{begin:e,certId:n}):window.SOF_Login(n,i,this.login_callback,{begin:e,certId:n})}else this.msgErr("请插入CA")},login_callback(e){const t=this;var n=e.ctx.certId;e.retVal?this.BJSignData():(window.SOF_GetLastError((function(e){var n=e.retVal;79==n&&t.msgErr("请核对pin码复杂度是否符合要求")}),e.ctx),window.SOF_GetPinRetryCount(n,(function(e){var n=e.ctx.certId;t.msgErr("证书["+n+"]重试次数剩余:"+e.retVal+"次...")}),e.ctx))},async BJSignData(){let e=await new Promise((e=>{window.SOF_GetUserList((function(t){e(t.retVal.split("&&&")[0].split("||")[1])}))})),t=Math.random();this.form["rn"]=t,window.SOF_SignData(e,t,this.signData_callback,{certId:e})},async signData_callback(e){if(""==e.retVal)return this.caInfo.error_text="数据签名失败",this.caInfo.have_error_info=!0,void(this.dialogVisible.showInfo=!0);this.form["sign"]=e.retVal;var t=e.ctx.certId;let n=await new Promise((e=>{window.SOF_ExportUserCert(t,(function(t){e(t.retVal)}))}));if(this.form["username"]=n,n){var i={caAddrProvince:{type:16,label:"使用者省州名ST"},caAddrcity:{type:18,label:"使用者城市名L"},caEffectiveDate:{type:11,label:"证书有效开始日期"},caExpireDate:{type:12,label:"证书有效结束日期"},caInfo:{type:35,label:"使用者DN项第2种格式"},caSn:{type:2,label:"证书序列号"},caType:{type:34,label:"颁发者DN项第1种格式"}};for(let t in i){let e=await new Promise((e=>{window.SOF_GetCertInfo(n,i[t].type,(function(t){e(t)}),{key:t})}));this.form[e.ctx.key]=e.retVal}let e={caSn:this.form["caSn"],caInfo:this.form["caInfo"],caAddr:this.form["caAddrProvince"]+this.form["caAddrcity"],caCode:this.form["caInfo"].split(",").filter((e=>-1!=e.search(/^title=/i)))[0].replace(/title=/i,""),username:this.form["caInfo"].split(",").filter((e=>-1!=e.search(/^cn=/i)))[0].replace(/cn=/i,""),caEffectiveDate:Ln(this.form["caEffectiveDate"]),caExpireDate:Ln(this.form["caExpireDate"]),pass:this.loginForm.password,caType:"北京ca",sign:this.form.sign,rn:this.form.rn,cert:this.form.username};this.form=e,this.loginForm={cert:this.form.cert,sign:this.form.sign,rn:this.form.rn,caInfo:this.form.caInfo,caAddr:this.form.caAddr,caCode:this.form.caCode,caName:this.form.username,caSn:this.form.caSn,caEffectiveDate:this.form.caEffectiveDate,caExpireDate:this.form.caExpireDate,loginType:"3",username:this.form.username},1==this.dialogVisible.showInfo?this.loading=!1:void 0!=this.loginForm.username?this.$emit("caSuccess",this.loginForm,(()=>{this.loading=!1})):this.msgErr("请插入CA")}},handleClose(e){this.$confirm("确认关闭?").then((()=>{e(),this.loading=!1})).catch((()=>{}))},msgErr(e){this.loading=!1,this.$message.error(e)}}},Bn=Rn,Vn=f(Bn,Tn,Pn,!1,null,"eeb04946",null),zn=Vn.exports;const Hn=[b,Cn,An,zn],Wn=function(e){Hn.forEach((t=>{e.component(t.name,t)})),"undefined"!==typeof window&&window.Vue&&Wn(window.Vue)};var Gn={install:Wn},Un=Gn}(),__webpack_exports__}()}));
24
+ function a(e,t){if(!r.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,a=n in document;if(!a){var o=document.createElement("div");o.setAttribute(n,"return;"),a="function"===typeof o[n]}return!a&&i&&"wheel"===e&&(a=document.implementation.hasFeature("Events.wheel","3.0")),a}r.canUseDOM&&(i=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),e.exports=a},5399:function(e,t,n){"use strict";var i=n(9088),r=n(6211),a=10,o=40,s=800;function l(e){var t=0,n=0,i=0,r=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),i=t*a,r=n*a,"deltaY"in e&&(r=e.deltaY),"deltaX"in e&&(i=e.deltaX),(i||r)&&e.deltaMode&&(1==e.deltaMode?(i*=o,r*=o):(i*=s,r*=s)),i&&!t&&(t=i<1?-1:1),r&&!n&&(n=r<1?-1:1),{spinX:t,spinY:n,pixelX:i,pixelY:r}}l.getEventType=function(){return i.firefox()?"DOMMouseScroll":r("wheel")?"wheel":"mousewheel"},e.exports=l},3569:function(e,t,n){"use strict";n.r(t);n(7658);var i=function(){if("undefined"!==typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,i){return e[0]===t&&(n=i,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),i=this.__entries__[n];return i&&i[1]},t.prototype.set=function(t,n){var i=e(this.__entries__,t);~i?this.__entries__[i][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,i=e(n,t);~i&&n.splice(i,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,i=this.__entries__;n<i.length;n++){var r=i[n];e.call(t,r[1],r[0])}},t}()}(),r="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,a=function(){return"undefined"!==typeof n.g&&n.g.Math===Math?n.g:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")()}(),o=function(){return"function"===typeof requestAnimationFrame?requestAnimationFrame.bind(a):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)}}(),s=2;function l(e,t){var n=!1,i=!1,r=0;function a(){n&&(n=!1,e()),i&&u()}function l(){o(a)}function u(){var e=Date.now();if(n){if(e-r<s)return;i=!0}else n=!0,i=!1,setTimeout(l,t);r=e}return u}var u=20,c=["top","right","bottom","left","width","height","size","weight"],h="undefined"!==typeof MutationObserver,d=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=l(this.refresh.bind(this),u)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var e=this.updateObservers_();e&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),h?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t,i=c.some((function(e){return!!~n.indexOf(e)}));i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),f=function(e,t){for(var n=0,i=Object.keys(t);n<i.length;n++){var r=i[n];Object.defineProperty(e,r,{value:t[r],enumerable:!1,writable:!1,configurable:!0})}return e},p=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||a},m=k(0,0,0,0);function v(e){return parseFloat(e)||0}function g(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){var i=e["border-"+n+"-width"];return t+v(i)}),0)}function y(e){for(var t=["top","right","bottom","left"],n={},i=0,r=t;i<r.length;i++){var a=r[i],o=e["padding-"+a];n[a]=v(o)}return n}function b(e){var t=e.getBBox();return k(0,0,t.width,t.height)}function _(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return m;var i=p(e).getComputedStyle(e),r=y(i),a=r.left+r.right,o=r.top+r.bottom,s=v(i.width),l=v(i.height);if("border-box"===i.boxSizing&&(Math.round(s+a)!==t&&(s-=g(i,"left","right")+a),Math.round(l+o)!==n&&(l-=g(i,"top","bottom")+o)),!S(e)){var u=Math.round(s+a)-t,c=Math.round(l+o)-n;1!==Math.abs(u)&&(s-=u),1!==Math.abs(c)&&(l-=c)}return k(r.left,r.top,s,l)}var x=function(){return"undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof p(e).SVGGraphicsElement}:function(e){return e instanceof p(e).SVGElement&&"function"===typeof e.getBBox}}();function S(e){return e===p(e).document.documentElement}function w(e){return r?x(e)?b(e):_(e):m}function C(e){var t=e.x,n=e.y,i=e.width,r=e.height,a="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,o=Object.create(a.prototype);return f(o,{x:t,y:n,width:i,height:r,top:n,right:t+i,bottom:r+n,left:t}),o}function k(e,t,n,i){return{x:e,y:t,width:n,height:i}}var O=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=k(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=w(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),D=function(){function e(e,t){var n=C(t);f(this,{target:e,contentRect:n})}return e}(),E=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new i,"function"!==typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof p(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new O(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof p(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new D(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),N="undefined"!==typeof WeakMap?new WeakMap:new i,A=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=d.getInstance(),i=new E(t,n,this);N.set(this,i)}return e}();["observe","unobserve","disconnect"].forEach((function(e){A.prototype[e]=function(){var t;return(t=N.get(this))[e].apply(t,arguments)}}));var T=function(){return"undefined"!==typeof a.ResizeObserver?a.ResizeObserver:A}();t["default"]=T},6365:function(e,t,n){var i=n(8714);e.exports=function(e,t,n){return void 0===n?i(e,t,!1):i(e,n,!1!==t)}},7869:function(e,t,n){var i=n(8714),r=n(6365);e.exports={throttle:i,debounce:r}},8714:function(e){e.exports=function(e,t,n,i){var r,a=0;function o(){var o=this,s=Number(new Date)-a,l=arguments;function u(){a=Number(new Date),n.apply(o,l)}function c(){r=void 0}i&&!r&&u(),r&&clearTimeout(r),void 0===i&&s>e?u():!0!==t&&(r=setTimeout(i?c:u,void 0===i?e-s:e))}return"boolean"!==typeof t&&(i=n,n=t,t=void 0),o}},9343:function(__unused_webpack_module,__unused_webpack_exports,__webpack_require__){__webpack_require__(7658),function(){"undefined"===typeof xtxasyn&&(xtxasyn={})}(),function(){function e(){this.map={}}e.prototype={put:function(e,t){this.map[e]=t},get:function(e){return this.map.hasOwnProperty(e)?this.map[e]:null},remove:function(e){return!!this.map.hasOwnProperty(e)&&delete this.map[e]},removeAll:function(){this.map={}},keySet:function(){var e=[];for(var t in this.map)e.push(t);return e}},e.prototype.constructor=e,xtxasyn.HashMap=e}(),function(){function initUtilObject(xtxasyn){var util=xtxasyn.util=xtxasyn.util||{};util.checkBrowserISIE=function(){return!(!window.ActiveXObject&&!("ActiveXObject"in window))},util.checkLocationIsHttps=function(){return"https:"==document.location.protocol},util.evalFunction=function(func){return"function"===typeof func?func:"string"!==typeof func?null:void(cb=eval(func))},util.consolelog=function(e){void 0!=window.console&&void 0!=window.console.log&&console.log(e)},util.isEmpty=function(e){return!e||"string"==typeof e&&""==e},util.loadIECtl=function(clsid,ctlName,checkFunc){if(!util.checkBrowserISIE())return null;var ctl=document.getElementById(ctlName);if(ctl)return ctl;try{var loadObjString='<object id="'+ctlName+'" classid="CLSID:'+clsid+'" style="HEIGHT:0px; WIDTH:0px">';if(loadObjString+="</object>",document.write(loadObjString),null!=checkFunc&&""!=checkFunc&&void 0==eval(ctlName+"."+checkFunc))return null}catch(e){return util.consolelog(e),null}return document.getElementById(ctlName)},util.getAutoExecFunctionString=function(e){var t="(";return t+=e.toString(),t+=")()",t},util.attachIEEvent=function(ctlName,eventName,eventFunc){var ctl;ctl="string"===typeof ctlName?eval(ctlName):ctlName,eventName=eventName.toLowerCase();var cb=util.evalFunction(eventFunc);if(null!=cb)if(ctl.attachEvent)ctl.attachEvent(eventName,cb);else{var handler=document.createElement("script");handler.setAttribute("for",ctlName),handler.setAttribute("event",eventName);var eventScript=util.getAutoExecFunctionString(eventFunc);handler.appendChild(document.createTextNode(eventScript)),document.getElementsByTagName("head")[0].appendChild(handler)}},util.loadWebSocketCtl=function(e,t){if(xtxasyn.wsObject)return xtxasyn.wsObject;var n;n=util.checkLocationIsHttps()?"wss://"+t:"ws://"+e;var i={socket:void 0,wsMessageQueue:new xtxasyn.HashMap,wsMessageQueueId:0,wsEventQueue:new xtxasyn.HashMap,wsURL:n,wsCacheMessage:[]};xtxasyn.wsObject=i,xtxasyn.wsObject.wsEventQueue.put("onusbkeychange",util.evalFunction(xtxasyn.custom.defaultUsbkeyChange));try{i.socket=new WebSocket(n)}catch(r){return util.consolelog(r),null}return i.socket.onopen=function(e){xtxasyn.util.consolelog("open websocket["+n+"] ok..."),xtxasyn.SOF_GetVersion((function(e){util.consolelog("SOF_GetVersion:("+e.retVal+")")}));while(xtxasyn.wsObject.wsCacheMessage.length>0){var t=xtxasyn.wsObject.wsCacheMessage.shift();xtxasyn.wsObject.socket.send(t)}},i.socket.onclose=function(i){util.consolelog("websocket["+n+"] closed, reopen it..."),xtxasyn.wsObject=void 0,xtxasyn.XTXAppWebSocket=xtxasyn.util.loadWebSocketCtl(e,t)},i.socket.onmessage=function(e){if(xtxasyn.util.isEmpty(e.data))util.consolelog("onmessage evt.data is NULL or empty!!!");else try{var t=JSON.parse(e.data),n=void 0;if(!t.hasOwnProperty("call_cmd_id"))return void util.consolelog("return JSON not include call_cmd_id!!!");n=t["call_cmd_id"];var i=void 0;t.hasOwnProperty("retValue")?i=t["retValue"]:t.hasOwnProperty("retVal")&&(i=t["retVal"]);var a=void 0,o=n.toLowerCase(),s=xtxasyn.wsObject.wsEventQueue.get(o);if(s&&"function"==typeof s)s(i);else{var l=xtxasyn.wsObject.wsMessageQueue.get(n);if(!l||!l.method)return void util.consolelog("can't find call_cmd_id["+t["call_cmd_id"]+"]'s method name!!!");if(a=l.method,s=l.cb,!s||"function"!=typeof s)return void util.consolelog("can't find call_cmd_id["+t["call_cmd_id"]+"]'s call back function!!!");var u,c=l.ctx;c=c||{returnType:"string"},"bool"==c.returnType?(u="string"==typeof i?"true"==i:i,void 0==u&&(u=!1)):"number"==c.returnType?(u="string"==typeof i?Number(i):i,void 0==u&&(u=-1)):(u=i,void 0==u&&(u="")),t.token&&xtxasyn.custom.setToken(t.token),(("SOF_Login"==a||"SOF_LoginEx"==a)&&!u||"SOF_Logout"==a&&u)&&xtxasyn.custom.setToken("");var h={retVal:u,ctx:c};s(h),xtxasyn.wsObject.wsMessageQueue.remove(n)}}catch(r){return}},i.socket.onerror=function(e){xtxasyn.util.consolelog(e.data)},i},util.attachWebSocketEvent=function(e,t,n){null!=e&&e.wsEventQueue.put(t.toLowerCase(),util.evalFunction(n))},util.callWebSocketMethod=function(e,t,n,i,r,a,o){if(null!=e){if(e.wsMessageQueueId++,"function"==typeof i){r=r||{},r.returnType=a;var s={cb:i,ctx:r,method:n};e.wsMessageQueue.put("i_"+e.wsMessageQueueId,s)}var l={call_cmd_id:"i_"+e.wsMessageQueueId,CLSID:t,xtx_func_name:n,func:n,URL:window.location.href};if(arguments.length>6){for(var u=1;u<=o.length;u++){var c="param_"+u;l[c]=o[u-1]}l["param"]=o}var h=xtxasyn.custom.getToken();h&&""!=h&&(l.token=h),e.socket.readyState==WebSocket.OPEN?e.socket.send(JSON.stringify(l)):e.socket.readyState==WebSocket.CONNECTING?e.wsCacheMessage.push(JSON.stringify(l)):xtxasyn.util.consolelog("Can't connect to WebSocket server["+e.wsURL+"]!!!")}},util.SynToAsyn=function(e,t,n){if("function"==typeof t){var i={retVal:e,ctx:n};t(i)}}}initUtilObject(xtxasyn)}(),function(){function initCustomActions(xtxasyn){var custom=xtxasyn.custom=xtxasyn.custom||{};custom.softCertListID="",custom.hardCertListID="",custom.allCertListID="",custom.loginCertID="",custom.logoutFunc=null,custom.UsbkeyChangeFunc=null,custom.loginToken="",custom.errorReportFunc=function(e){alert(e)},custom.setAutoLogoutParameter=function(e,t){var n=xtxasyn.custom;n.loginCertID=e,n.logoutFunc=t},custom.clearDropList=function(dropListId){if(""!=dropListId){var obj=document.getElementById(dropListId);if(void 0==obj&&(obj=eval(dropListId)),void 0!=obj){var i,n=obj.length;for(i=0;i<n;i++)obj.remove(0)}}},custom.pushOneDropListBox=function(userListArray,strListID){var obj=document.getElementById(strListID);if(void 0==obj&&(obj=eval(strListID)),void 0!=obj)for(var i=0;i<userListArray.length;i++){var certObj=userListArray[i],objItem=new Option(certObj.certName,certObj.certID);obj.options.add(objItem)}},custom.pushUserListToAllDroplist=function(e){var t=xtxasyn.custom;t.clearDropList(t.softCertListID),t.clearDropList(t.hardCertListID),t.clearDropList(t.allCertListID);var n=e.retVal,i=[];while(1){var r=n.indexOf("&&&");if(r<=0)break;var a=n.substring(0,r),o=a.substring(0,a.indexOf("||")),s=a.substring(a.indexOf("||")+2,a.length);i.push({certName:o,certID:s}),""!=t.hardCertListID&&xtxasyn.GetDeviceInfo(s,7,(function(e){"HARD"==e.retVal&&t.pushOneDropListBox([e.ctx],t.hardCertListID)}),{certName:o,certID:s}),""!=t.softCertListID&&xtxasyn.GetDeviceInfo(s,7,(function(e){"SOFT"==e.retVal&&t.pushOneDropListBox([e.ctx],t.softCertListID)}),{certName:o,certID:s});var l=n.length;n=n.substring(r+3,l)}""!=t.allCertListID&&t.pushOneDropListBox(i,t.allCertListID)},custom.setUserCertList=function(e,t){var n=xtxasyn.custom;t!=CERT_TYPE_ALL&&void 0!=t||(n.allCertListID=e),t==CERT_TYPE_HARD&&(n.hardCertListID=e),t==CERT_TYPE_SOFT&&(n.softCertListID=e),xtxasyn.SOF_GetUserList(n.pushUserListToAllDroplist)},custom.setOnUsbKeyChangeCallBack=function(e){var t=xtxasyn.custom;t.UsbkeyChangeFunc=e},custom.setErrorReportFunc=function(e){var t=xtxasyn.custom;t.errorReportFunc=e},custom.autoLogoutCallBack=function(e){var t=xtxasyn.custom;e.retVal.indexOf(t.loginCertID)<=0&&t.logoutFunc()},custom.defaultUsbkeyChange=function(){var e=xtxasyn.custom;xtxasyn.SOF_GetUserList(e.pushUserListToAllDroplist),"function"==typeof e.UsbkeyChangeFunc&&e.UsbkeyChangeFunc(),""!=e.loginCertID&&"function"==typeof e.logoutFunc&&xtxasyn.SOF_GetUserList(e.autoLogoutCallBack)},custom.getToken=function(){return custom.loginToken},custom.setToken=function(e){custom.loginToken=e}}initCustomActions(xtxasyn)}(),function(){function e(e){var t=e.util,n=e.custom;if(e.XTXAppCOM=t.loadIECtl(e.xtx_clsid,"XTXAppObj","SOF_GetVersion()"),null==e.XTXAppCOM)return n.errorReportFunc("加载XTXAppCOM控件失败,请确认已正确安装BJCA证书应用环境!"),!1;var i=e.XTXAppCOM;t.attachIEEvent("XTXAppObj","onUsbkeyChange",e.custom.defaultUsbkeyChange);var r=t.loadIECtl(e.getpic_clsid,"GetPicObj","Hash('0')");null==r||(i.GetPic=function(e){return r.GetPic(e)},i.Hash=function(e){return r.Hash(e)},i.ConvertPicFormat=function(e,t){return r.ConvertPicFormat(e,t)},i.ConvertGif2Jpg=function(e){return r.ConvertGif2Jpg(e)},i.GetPic1=function(e){return r.GetPic1(e)},i.ConvertPicSize=function(e,t,n){return r.ConvertPicSize(e,t,n)});var a=t.loadIECtl(e.xtx_version_clsid,"XTXVersionOBJ","GetEnvVersion()");return null==a||(i.GetEnvVersion=function(){return a.GetEnvVersion()}),!0}function t(e){return e.XTXAppWebSocket=e.util.loadWebSocketCtl("127.0.0.1:21051/xtxapp/","127.0.0.1:21061/xtxapp/"),null!=e.XTXAppWebSocket||(custom.errorReportFunc("连接XTXAppCOM服务失败,请确认已正确安装BJCA证书应用环境!"),!1)}function n(n){var i,r=n.util;if(n.xtx_clsid="3F367B74-92D9-4C5E-AB93-234F8A91D5E6",n.getpic_clsid="3BC3C868-95B5-47ED-8686-E0E3E94EF366",n.xtx_version_clsid="574887FB-22A5-488B-A49C-2CF25F56BE68",r.checkBrowserISIE()){if(!e(n))return!1;i=function(e){""==e.inParams?window[e.funcName]=new Function("cb","ctx","xtxasyn.util.SynToAsyn(xtxasyn.XTXAppCOM."+e.funcName+"(), cb, ctx);"):window[e.funcName]=new Function(e.inParams,"cb","ctx","xtxasyn.util.SynToAsyn(xtxasyn.XTXAppCOM."+e.funcName+"("+e.inParams+"), cb, ctx);")}}else{if(!t(n))return!1;i=function(e){""==e.inParams?window[e.funcName]=new Function("cb, ctx","xtxasyn.util.callWebSocketMethod(xtxasyn.XTXAppWebSocket, '"+e.clsid+"', '"+e.funcName+"', cb, ctx, '"+e.outParamType+"', []);"):window[e.funcName]=new Function(e.inParams+", cb, ctx","xtxasyn.util.callWebSocketMethod(xtxasyn.XTXAppWebSocket, '"+e.clsid+"', '"+e.funcName+"', cb, ctx, '"+e.outParamType+"', ["+e.inParams+"]);")}}for(var a=[{funcName:"SOF_SetSignMethod",inParams:"SignMethod",outParamType:"number",clsid:n.xtx_clsid,aliasName:"SetSignMethod"},{funcName:"SOF_GetSignMethod",inParams:"",outParamType:"number",clsid:n.xtx_clsid},{funcName:"SOF_SetEncryptMethod",inParams:"EncryptMethod",outParamType:"number",clsid:n.xtx_clsid},{funcName:"SOF_GetEncryptMethod",inParams:"",outParamType:"number",clsid:n.xtx_clsid},{funcName:"SOF_GetUserList",inParams:"",outParamType:"string",clsid:n.xtx_clsid,aliasName:"GetUserList"},{funcName:"SOF_ExportUserCert",inParams:"CertID",outParamType:"string",clsid:n.xtx_clsid,aliasName:"GetSignCert"},{funcName:"SOF_Login",inParams:"CertID, PassWd",outParamType:"bool",clsid:n.xtx_clsid,aliasName:"VerifyUserPIN"},{funcName:"SOF_GetPinRetryCount",inParams:"CertID",outParamType:"number",clsid:n.xtx_clsid,aliasName:"GetUserPINRetryCount"},{funcName:"SOF_ChangePassWd",inParams:"CertID, oldPass, newPass",outParamType:"bool",clsid:n.xtx_clsid,aliasName:"ChangeUserPassword"},{funcName:"SOF_GetCertInfo",inParams:"Cert, type",outParamType:"string",clsid:n.xtx_clsid,aliasName:"GetCertBasicinfo"},{funcName:"SOF_GetCertInfoByOid",inParams:"Cert, Oid",outParamType:"string",clsid:n.xtx_clsid,aliasName:"GetExtCertInfoByOID"},{funcName:"SOF_SignData",inParams:"CertID, InData",outParamType:"string",clsid:n.xtx_clsid,aliasName:"SignedData"},{funcName:"SOF_VerifySignedData",inParams:"Cert, InData, SignValue",outParamType:"bool",clsid:n.xtx_clsid,aliasName:"VerifySignedData"},{funcName:"SOF_SignFile",inParams:"CertID, InFile",outParamType:"string",clsid:n.xtx_clsid,aliasName:"SOF_SignFile"},{funcName:"SOF_VerifySignedFile",inParams:"Cert, InFile, SignValue",outParamType:"bool",clsid:n.xtx_clsid,aliasName:"VerifySignFile"},{funcName:"SOF_EncryptData",inParams:"Cert, InData",outParamType:"string",clsid:n.xtx_clsid,aliasName:"EncodeP7Enveloped"},{funcName:"SOF_DecryptData",inParams:"CertID, InData",outParamType:"string",clsid:n.xtx_clsid,aliasName:"DecodeP7Enveloped"},{funcName:"SOF_EncryptFile",inParams:"Cert, InFile, OutFile",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"SOF_DecryptFile",inParams:"CertID, InFile, OutFile",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"SOF_SignMessage",inParams:"dwFlag, CertID, InData",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_VerifySignedMessage",inParams:"MessageData, InData",outParamType:"bool",clsid:n.xtx_clsid,aliasName:"VerifyDatabyP7"},{funcName:"SOF_GetInfoFromSignedMessage",inParams:"SignedMessage, type",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_SignDataXML",inParams:"CertID, InData",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_VerifySignedDataXML",inParams:"InData",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"SOF_GetXMLSignatureInfo",inParams:"XMLSignedData, type",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_GenRandom",inParams:"RandomLen",outParamType:"string",clsid:n.xtx_clsid,aliasName:"GenerateRandom"},{funcName:"SOF_PubKeyEncrypt",inParams:"Cert, InData",outParamType:"string",clsid:n.xtx_clsid,aliasName:"PubKeyEncrypt"},{funcName:"SOF_PriKeyDecrypt",inParams:"CertID, InData",outParamType:"string",clsid:n.xtx_clsid,aliasName:"PriKeyDecrypt"},{funcName:"SOF_SecertSegment",inParams:"Secert, m, n, k",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_SecertRecovery",inParams:"Seg",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_GetLastError",inParams:"",outParamType:"number",clsid:n.xtx_clsid},{funcName:"GetDeviceCount",inParams:"",outParamType:"number",clsid:n.xtx_clsid},{funcName:"GetAllDeviceSN",inParams:"",outParamType:"string",clsid:n.xtx_clsid},{funcName:"GetDeviceSNByIndex",inParams:"iIndex",outParamType:"string",clsid:n.xtx_clsid},{funcName:"GetDeviceInfo",inParams:"sDeviceSN, iType",outParamType:"string",clsid:n.xtx_clsid},{funcName:"ChangeAdminPass",inParams:"sDeviceSN, sOldPass, sNewPass",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"UnlockUserPass",inParams:"sDeviceSN, sAdminPass, sNewUserPass",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"GenerateKeyPair",inParams:"sDeviceSN, sContainerName, iKeyType, bSign",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"ExportPubKey",inParams:"sDeviceSN, sContainerName, bSign",outParamType:"string",clsid:n.xtx_clsid},{funcName:"ImportSignCert",inParams:"sDeviceSN, sContainerName, sCert",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"ImportEncCert",inParams:"sDeviceSN, sContainerName, sCert, sPriKeyCipher",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"ReadFile",inParams:"sDeviceSN, sFileName",outParamType:"string",clsid:n.xtx_clsid,aliasName:"readFile"},{funcName:"WriteFile",inParams:"sDeviceSN, sFileName, sContent, bPrivate",outParamType:"bool",clsid:n.xtx_clsid,aliasName:"writeFile"},{funcName:"IsContainerExist",inParams:"sDeviceSN, sContainerName",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"DeleteContainer",inParams:"sDeviceSN, sContainerName",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"ExportPKCS10",inParams:"sDeviceSN, sContainerName, sDN, bSign",outParamType:"string",clsid:n.xtx_clsid},{funcName:"InitDevice",inParams:"sDeviceSN, sAdminPass",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"AddSignInfo",inParams:"sUserPass",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"SOF_GetVersion",inParams:"",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_ExportExChangeUserCert",inParams:"CertID",outParamType:"string",clsid:n.xtx_clsid,aliasName:"GetExchCert"},{funcName:"SOF_ValidateCert",inParams:"Cert",outParamType:"number",clsid:n.xtx_clsid,aliasName:"ValidateCert"},{funcName:"GetENVSN",inParams:"sDeviceSN",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SetENVSN",inParams:"sDeviceSN, sEnvsn",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"IsDeviceExist",inParams:"sDeviceSN",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"GetContainerCount",inParams:"sDeviceSN",outParamType:"number",clsid:n.xtx_clsid},{funcName:"SOF_SymEncryptData",inParams:"sKey, indata",outParamType:"string",clsid:n.xtx_clsid,aliasName:"EncryptData"},{funcName:"SOF_SymDecryptData",inParams:"sKey, indata",outParamType:"string",clsid:n.xtx_clsid,aliasName:"DecryptData"},{funcName:"SOF_SymEncryptFile",inParams:"sKey, inFile, outFile",outParamType:"bool",clsid:n.xtx_clsid,aliasName:"EncryptFile"},{funcName:"SOF_SymDecryptFile",inParams:"sKey, inFile, outFile",outParamType:"bool",clsid:n.xtx_clsid,aliasName:"DecryptFile"},{funcName:"SOF_GetLastErrMsg",inParams:"",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_Base64Encode",inParams:"sIndata",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_Base64Decode",inParams:"sIndata",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_HashData",inParams:"hashAlg, sInData",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_HashFile",inParams:"hashAlg, inFile",outParamType:"string",clsid:n.xtx_clsid},{funcName:"UnlockUserPassEx",inParams:"sDeviceSN, sAdminPin, sNewUserPass",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"DeleteOldContainer",inParams:"sDeviceSN",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"WriteFileEx",inParams:"sDeviceSN, sFileName, sContent",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"ReadFileEx",inParams:"sDeviceSN, sFileName",outParamType:"string",clsid:n.xtx_clsid},{funcName:"WriteFileBase64",inParams:"sDeviceSN, sFileName, sContent",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"DeleteFile",inParams:"sDeviceSN, sFileName",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"SOF_EncryptDataEx",inParams:"Cert, InData",outParamType:"string",clsid:n.xtx_clsid},{funcName:"Base64EncodeFile",inParams:"sInFile",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_GetRetryCount",inParams:"CertID",outParamType:"number",clsid:n.xtx_clsid},{funcName:"SOF_GetAllContainerName",inParams:"sDeviceSN",outParamType:"string",clsid:n.xtx_clsid},{funcName:"CreateSoftDevice",inParams:"sDeviceSN, sLabel",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"DeleteSoftDevice",inParams:"sDeviceSN, sPasswd",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"EnableSoftDevice",inParams:"enable, sDeviceSN",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"SoftDeviceBackup",inParams:"sDeviceSN, sPasswd",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SoftDeviceRestore",inParams:"sDeviceSN, sPasswd, sInFilePath",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"SOF_Logout",inParams:"CertID",outParamType:"bool",clsid:n.xtx_clsid,aliasName:"Logout"},{funcName:"SetUserConfig",inParams:"type, strConfig",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"SOF_SignByteData",inParams:"CertID, byteLen",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_VerifySignedByteData",inParams:"Cert, byteLen, SignValue",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"OTP_GetChallengeCode",inParams:"sCertID",outParamType:"string",clsid:n.xtx_clsid},{funcName:"ImportEncCertEx",inParams:"sDeviceSN, sContainerName, sCert, sPriKeyCipher, ulSymAlg",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"SOF_GetCertEntity",inParams:"sCert",outParamType:"string",clsid:n.xtx_clsid,aliasName:"GetCertEntity"},{funcName:"SOF_HMAC",inParams:"hashid, key, indata",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_SignDataByPriKey",inParams:"sPriKey, sCert, sInData",outParamType:"string",clsid:n.xtx_clsid},{funcName:"ImportKeyCertToSoftDevice",inParams:"sDeviceSN, sContainerName, sPriKey, sCert, bSign",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"InitDeviceEx",inParams:"sDeviceSN, sAdminPass, sUserPin, sKeyLabel, adminPinMaxRetry, userPinMaxRetry",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"SelectFile",inParams:"",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_SignHashData",inParams:"CertID, b64ashData, hashAlg",outParamType:"string",clsid:n.xtx_clsid,aliasName:"SignHashData"},{funcName:"SOF_VerifySignedHashData",inParams:"Cert, b64ashData, SignValue, hashAlg",outParamType:"bool",clsid:n.xtx_clsid,aliasName:"VerifySignedHashData"},{funcName:"CheckSoftDeviceEnv",inParams:"",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"ImportPfxToDevice",inParams:"sDeviceSN, sContainerName, bSign, strPfx, strPfxPass",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"SOF_HashDataEx",inParams:"hashAlg, sInData, sCert, sID",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_HashFileEx",inParams:"hashAlg, inFile, sCert, sID",outParamType:"string",clsid:n.xtx_clsid},{funcName:"GetDeviceCountEx",inParams:"type",outParamType:"number",clsid:n.xtx_clsid},{funcName:"GetAllDeviceSNEx",inParams:"type",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_UpdateCert",inParams:"CertID, type",outParamType:"number",clsid:n.xtx_clsid},{funcName:"OpenSpecifiedFolder",inParams:"backupFilePath",outParamType:"",clsid:n.xtx_clsid},{funcName:"OTP_GetChallengeCodeEx",inParams:"sCertID, szAccount, money",outParamType:"string",clsid:n.xtx_clsid},{funcName:"Base64DecodeFile",inParams:"sInData, sFilePath",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"EnumFilesInDevice",inParams:"sDeviceSN",outParamType:"string",clsid:n.xtx_clsid},{funcName:"OTP_Halt",inParams:"sCertID",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"SOF_TSGenREQ",inParams:"b64Hash, hashAlg, bReqCert, policyID, b64Nonce, b64Extension",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_TSCompareNonce",inParams:"b64TSReq, b64TSAResp",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"SOF_TSGenPDFSignature",inParams:"b64TSAResp, b64OriPDFSignature",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_TSVerifyPDFSignature",inParams:"b64TSPDFSignature",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"SOF_TSGetPDFSignatureInfo",inParams:"b64TSPDFSignature, iType",outParamType:"string",clsid:n.xtx_clsid},{funcName:"OTP_GetState",inParams:"sCertID, bCert",outParamType:"string",clsid:n.xtx_clsid},{funcName:"OTP_GetSyncCode",inParams:"sCertID, ChallengeCode",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_IsLogin",inParams:"CertID",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"SOF_LoginEx",inParams:"CertID, PassWd, updateFlag",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"EnumSupportDeviceList",inParams:"",outParamType:"string",clsid:n.xtx_clsid},{funcName:"ExportPfxFromDevice",inParams:"sDeviceSN, sContainerName, bSign, strPfxPass",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_SignHashMessage",inParams:"CertID, InHashData, hashAlg",outParamType:"string",clsid:n.xtx_clsid},{funcName:"ExportPfxToFile",inParams:"sDeviceSN, sContainerName, bSign, strPfxPass",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_SignAPK",inParams:"CertID, strOriSignature",outParamType:"string",clsid:n.xtx_clsid},{funcName:"YZT_GenerateKeyPair",inParams:"sDeviceSN, sContainerName, iKeyTypeRSA, iKeyTypeSM2",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"YZT_ExportPubKey",inParams:"sDeviceSN, sContainerName, bSign",outParamType:"string",clsid:n.xtx_clsid},{funcName:"YZT_ImportSignCert",inParams:"sDeviceSN, sContainerName, sRSACert, sSM2Cert",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"YZT_ImportEncCert",inParams:"sDeviceSN, sContainerName, sRSACert, sRSAPriKeyCipher, ulRSASymAlg, sSM2Cert, sSM2PriKeyCipher, ulSM2SymAlg",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"SOF_ListenUKey",inParams:"Parm",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_EnableLoginWindow",inParams:"Parm",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_SignEnvelope",inParams:"CertID, Cert, InData",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_UnSignEnvelope",inParams:"CertID, InData",outParamType:"string",clsid:n.xtx_clsid},{funcName:"BIO_MAKExportPKCS10",inParams:"sDeviceSN, iKeyType, sDN",outParamType:"string",clsid:n.xtx_clsid},{funcName:"BIO_MAKImportSignEncCert",inParams:"sDeviceSN, sSignCert, sEncCert, sPriKeyCipher",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"BIO_IssueDAKCert",inParams:"sDeviceSN, iKeyType, sDN",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"BIO_InfoCollect",inParams:"",outParamType:"string",clsid:n.xtx_clsid},{funcName:"BIO_GetBioInfo",inParams:"sDeviceSN",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_GetLastLoginCertID",inParams:"",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_ReadESealData",inParams:"CertID, ulKeyIndex, ulKeyAlgId, ulFlags",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_ReadKFXESealData",inParams:"CertID, ulKeyIndex, ulKeyAlgId, ulFlags",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_SymDecryptFileToData",inParams:"sKey, inFile",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_SignMessageBase64",inParams:"dwFlag, CertID, InData",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_VerifySignedMessageBase64",inParams:"MessageData, InData",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"SOF_VerifySignedHashMessage",inParams:"MessageData, InHashData",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"SOF_SignDataBase64",inParams:"CertID, InData",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_VerifySignedDataBase64",inParams:"Cert, InData, SignValue",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"SOF_HashDataExBase64",inParams:"hashAlg, sInData, sCert, sID",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_GetProductVersion",inParams:"",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_UpdateCertEx",inParams:"CertID, PassWd",outParamType:"number",clsid:n.xtx_clsid},{funcName:"SOF_GetLastSignDataCertID",inParams:"CertID",outParamType:"string",clsid:n.xtx_clsid},{funcName:"BIO_SetUserConfig",inParams:"CertID, type, strConfig",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"BIO_InvokeCommand",inParams:"CertID, bstrCommand",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_ImportSymmKey",inParams:"CertID, ulKeyIndex, InData, ulFlags",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"SOF_WriteESealData",inParams:"CertID, InData, ulFlags",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"SOF_EPS_Encrypt",inParams:"CertID, ulKeyIndex, ulKeyAlgId, IVData, DivCount, DivComponent, InData, ulFlags",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_EPS_Decrypt",inParams:"CertID, ulKeyIndex, ulKeyAlgId, IVData, DivCount, DivComponent, InData, ulFlags",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_EPS_Mac",inParams:"CertID, ulKeyIndex, ulKeyAlgId, IVData, DivCount, DivComponent, InData, ulFlags",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_PriKeyDecryptEx",inParams:"CertID, InData",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_EPS_ReadESealData",inParams:"CertID, ulKeyIndex, ulKeyAlgId, ulFlags",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_EPS_WriteESealData",inParams:"CertID, InData, ulFlags",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"EnumESeal",inParams:"sDeviceSN",outParamType:"string",clsid:n.xtx_clsid},{funcName:"GetPicture",inParams:"bstrConName",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_SignEnvelopeFile",inParams:"CertID, Cert, InFile, OutFile",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"SOF_UnSignEnvelopeFile",inParams:"CertID, InFile, OutFile",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"SOFX_EncryptFile",inParams:"CertID, Cert, InFile, OutFile, ulFlags",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"SOFX_DecryptFile",inParams:"CertID, InFile, OutFile, ulFlags",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"GetPic",inParams:"bstrConName",outParamType:"string",clsid:n.getpic_clsid},{funcName:"Hash",inParams:"inData",outParamType:"string",clsid:n.getpic_clsid},{funcName:"ConvertPicFormat",inParams:"inData, type",outParamType:"string",clsid:n.getpic_clsid},{funcName:"ConvertGif2Jpg",inParams:"inData",outParamType:"string",clsid:n.getpic_clsid},{funcName:"GetPic1",inParams:"bstrConName",outParamType:"string",clsid:n.getpic_clsid},{funcName:"ConvertPicSize",inParams:"bstrPic, w, h",outParamType:"string",clsid:n.getpic_clsid},{funcName:"GetEnvVersion",inParams:"",outParamType:"string",clsid:n.xtx_version_clsid},{funcName:"InitDeviceWithParam",inParams:"sDeviceSN, sAppName, sAdminPass, sUserPin, sKeyLabel, adminPinMaxRetry, userPinMaxRetry, createFileRights",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"SOF_SignDataEx",inParams:"CertID, InData,signFlag",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_VerifySignedDataEx",inParams:"Cert, InData, SignValue,signFlag",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"SOF_SymEncryptDataEx",inParams:"sKey,sIV,indata",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_SymDecryptDataEx",inParams:"sKey,sIV,indata",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOFX_InvokeCommand",inParams:"pluginName,InParam",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOF_SymEncryptFileEx",inParams:"sKey,sIV,inFile, outFile",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"SOF_SymDecryptFileEx",inParams:"sKey,sIV,inFile, outFile",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"SOF_SymDecryptFileToDataEx",inParams:"sKey,sIV,inFile",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOFX_SymEncryptDataWithPadding",inParams:"sKey,sIV,padding,indata",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOFX_SymDecryptDataWithPadding",inParams:"sKey,sIV,padding,indata",outParamType:"string",clsid:n.xtx_clsid},{funcName:"SOFX_SymEncryptFileWithPadding",inParams:"sKey,sIV,padding,inFile, outFile",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"SOFX_SymDecryptFileWithPadding",inParams:"sKey,sIV,padding,inFile, outFile",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"SOFX_VerifySignedDataWithID",inParams:"Cert, InData, SignValue,userId",outParamType:"bool",clsid:n.xtx_clsid},{funcName:"SOFX_VerifySignedFileWithID",inParams:"Cert, InFile, SignValue,userId",outParamType:"bool",clsid:n.xtx_clsid}],o=0;o<a.length;o++)i(a[o]),n[a[o].funcName]=window[a[o].funcName],a[o].aliasName&&(window[a[o].aliasName]=window[a[o].funcName],n[a[o].aliasName]=window[a[o].funcName]);return!0}n(xtxasyn)}();var CERT_TYPE_HARD=1,CERT_TYPE_SOFT=2,CERT_TYPE_ALL=3;function SetAutoLogoutParameter(e,t){xtxasyn.custom.setAutoLogoutParameter(e,t)}function SetUserCertList(e,t){xtxasyn.custom.setUserCertList(e,t)}function SetOnUsbKeyChangeCallBack(e){xtxasyn.custom.setOnUsbKeyChangeCallBack(e)}function SetAlertFunction(e){xtxasyn.custom.setErrorReportFunc(e)}function GetLoginToken(){return xtxasyn.custom.getToken()}function SetLoginToken(e){return xtxasyn.custom.setToken(e)}function GetUserListByType(e,t,n){SOF_GetUserList((function(e){var t=e.retVal;while(1){var n=t.indexOf("&&&");if(n<=0)break;var i=t.substring(0,n),r=(i.substring(0,i.indexOf("||")),i.substring(i.indexOf("||")+2,i.length));GetDeviceType(r,(function(e){e.retVal==e.ctx.ctx.type&&"function"==typeof e.ctx.ctx.cb&&e.ctx.ctx.cb({retVal:e.ctx.userList,ctx:e.ctx.ctx.ctx})}),{userList:i,ctx:e.ctx});var a=t.length;t=t.substring(n+3,a)}}),{type:e,cb:t,ctx:n})}function GetUserList_USBKey(e,t){return GetUserListByType("HARD",e,t)}function GetUserList_Soft(){return GetUserListByType("SOFT",cb,ctx)}function SignByP7(e,t,n){return xtxasyn.SOF_SignMessage(n?1:0,e,t)}function GetSymKeyLength(){return 24}function GetDeviceType(e){return xtxasyn.GetDeviceInfo(e,7)}function HashFile(e){return xtxasyn.SOF_HashFile(2,e)}function ParseDateString(e){var t=e.substring(0,4),n=e.substring(4,6),i=e.substring(6,8),r=e.substring(8,10),a=e.substring(10,12),o=e.substring(12,14),s=new Date;return s.setFullYear(Number(t),Number(n)-1,Number(i)),s.setHours(Number(r)),s.setMinutes(Number(a)),s.setSeconds(Number(o)),s}function __loginSignRandomCallBack(e){if(""==e.retVal)return xtxasyn.custom.errorReportFunc("客户端签名失败!"),void("function"===typeof e.ctx.cb&&e.ctx.cb(!1));var t=e.ctx.objForm;t.UserSignedData.value=e.retVal,t.LoginToken.value=xtxasyn.custom.getToken(),"function"===typeof e.ctx.cb?e.ctx.cb(!0):(t.action=e.ctx.action,t.submit())}function __loginVerifyServerSignatureCallBack(e){if(!e.retVal)return xtxasyn.custom.errorReportFunc("验证服务器端信息失败!"),void("function"===typeof e.ctx.cb&&e.ctx.cb(!1));var t=e.ctx.certID;xtxasyn.SOF_SignData(t,strServerRan,__loginSignRandomCallBack,e.ctx)}function __loginCheckCertValidNotAfter(e){var t=ParseDateString(e.retVal),n=t.getTime()-(new Date).getTime();if(n<0)return xtxasyn.custom.errorReportFunc("您的证书已过期,请尽快到北京数字证书认证中心办理证书更新手续!"),void("function"===typeof e.ctx.cb&&e.ctx.cb(!1));if(days=parseInt(n/864e5),days>0&&days<=60)xtxasyn.custom.errorReportFunc("您的证书还有"+days+"天过期\n请您尽快到北京数字证书认证中心办理证书更新手续!");else if(0==days){var i=parseInt(n/36e5);i>0&&xtxasyn.custom.errorReportFunc("您的证书还有"+i+"小时过期\n请您尽快到北京数字证书认证中心办理证书更新手续!");var r=parseInt(n/6e4);if(!(r>1))return xtxasyn.custom.errorReportFunc("您的证书已过期,请尽快到北京数字证书认证中心办理证书更新手续!"),void("function"===typeof e.ctx.cb&&e.ctx.cb(!1));xtxasyn.custom.errorReportFunc("您的证书还有"+r+"分钟过期\n请您尽快到北京数字证书认证中心办理证书更新手续!")}xtxasyn.SOF_VerifySignedData(strServerCert,strServerRan,strServerSignedData,__loginVerifyServerSignatureCallBack,e.ctx)}function __loginCheckCertValidNotBefore(e){var t=ParseDateString(e.retVal),n=parseInt((t.getTime()-(new Date).getTime())/864e5);if(n>0)return xtxasyn.custom.errorReportFunc("您的证书尚未生效!距离生效日期还剩"+n+"天!"),void("function"===typeof e.ctx.cb&&e.ctx.cb(!1));var i=e.ctx.objForm.UserCert.value;xtxasyn.SOF_GetCertInfo(i,12,__loginCheckCertValidNotAfter,e.ctx)}function __loginGetSignCertCallBack(e){var t=e.retVal;if(""==t)return xtxasyn.custom.errorReportFunc("导出用户证书失败!"),void("function"===typeof e.ctx.cb&&e.ctx.cb(!1));e.ctx.objForm.UserCert.value=t,xtxasyn.SOF_GetCertInfo(t,11,__loginCheckCertValidNotBefore,e.ctx)}function __loginGetPINRetryCallBack(e){var t=Number(e.retVal);t>0?xtxasyn.custom.errorReportFunc("校验证书密码失败!您还有"+t+"次机会重试!"):0==t?xtxasyn.custom.errorReportFunc("您的证书密码已被锁死,请联系BJCA进行解锁!"):xtxasyn.custom.errorReportFunc("登录失败!"),"function"===typeof e.ctx.cb&&e.ctx.cb()}function __loginVerifyPINCallBack(e){var t=e.ctx.certID,n=e.ctx.objForm;e.retVal?(n.CertID.value=t,n.ContainerName.value=t,xtxasyn.SOF_ExportUserCert(t,__loginGetSignCertCallBack,e.ctx)):xtxasyn.SOF_GetPinRetryCount(t,__loginGetPINRetryCallBack,e.ctx)}function Login(formName,strCertID,strPin,strAction,custom_cb){var objForm=eval(formName);if(null==objForm)return xtxasyn.custom.errorReportFunc("表单错误!"),void("function"===typeof custom_cb&&custom_cb(!1));if(null==strCertID||""==strCertID)return xtxasyn.custom.errorReportFunc("请输入证书密码!"),void("function"===typeof custom_cb&&custom_cb(!1));if(null==strPin||""==strPin)return xtxasyn.custom.errorReportFunc("请输入证书密码!"),void("function"===typeof custom_cb&&custom_cb(!1));null==objForm.UserSignedData&&objForm.insertAdjacentHTML("BeforeEnd",'<input type="hidden" name="UserSignedData" value="">'),null==objForm.UserCert&&objForm.insertAdjacentHTML("BeforeEnd",'<input type="hidden" name="UserCert" value="">'),null==objForm.CertID&&objForm.insertAdjacentHTML("BeforeEnd",'<input type="hidden" name="CertID" value="">'),null==objForm.ContainerName&&objForm.insertAdjacentHTML("BeforeEnd",'<input type="hidden" name="ContainerName" value="">'),null==objForm.LoginToken&&objForm.insertAdjacentHTML("BeforeEnd",'<input type="hidden" name="LoginToken" value="">');var ctx={certID:strCertID,objForm:objForm,action:strAction,cb:custom_cb};xtxasyn.SOF_Login(strCertID,strPin,__loginVerifyPINCallBack,ctx)}},353:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{R:function(){return mToken}});var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(7658),core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__),split;function mToken(e){this.obj=e,this.SAR_OK=0,this.SAR_FALSE=1,this.SGD_SM1_ECB=257,this.SGD_SM1_CBC=258,this.SGD_SM1_CFB=260,this.SGD_SM1_OFB=264,this.SGD_SM1_MAC=272,this.SGD_SSF33_ECB=513,this.SGD_SSF33_CBC=514,this.SGD_SSF33_CFB=516,this.SGD_SSF33_OFB=520,this.SGD_SSF33_MAC=528,this.SGD_SM4_ECB=1025,this.SGD_SM4_CBC=1026,this.SGD_SM4_CFB=1028,this.SGD_SM4_OFB=1032,this.SGD_SM4_MAC=1040,this.SGD_VENDOR_DEFINED=2147483648,this.SGD_DES_ECB=this.SGD_VENDOR_DEFINED+529,this.SGD_DES_CBC=this.SGD_VENDOR_DEFINED+530,this.SGD_3DES168_ECB=this.SGD_VENDOR_DEFINED+577,this.SGD_3DES168_CBC=this.SGD_VENDOR_DEFINED+578,this.SGD_3DES112_ECB=this.SGD_VENDOR_DEFINED+545,this.SGD_3DES112_CBC=this.SGD_VENDOR_DEFINED+546,this.SGD_AES128_ECB=this.SGD_VENDOR_DEFINED+273,this.SGD_AES128_CBC=this.SGD_VENDOR_DEFINED+274,this.SGD_AES192_ECB=this.SGD_VENDOR_DEFINED+289,this.SGD_AES192_CBC=this.SGD_VENDOR_DEFINED+290,this.SGD_AES256_ECB=this.SGD_VENDOR_DEFINED+321,this.SGD_AES256_CBC=this.SGD_VENDOR_DEFINED+322,this.SGD_RSA=65536,this.SGD_SM2_1=131328,this.SGD_SM2_2=131584,this.SGD_SM2_3=132096,this.SGD_SM3=1,this.SGD_SHA1=2,this.SGD_SHA256=4,this.SGD_RAW=128,this.SGD_MD5=129,this.SGD_SHA384=130,this.SGD_SHA512=131,this.SGD_CERT_VERSION=1,this.SGD_CERT_SERIAL=2,this.SGD_CERT_ISSUE=5,this.SGD_CERT_VALID_TIME=6,this.SGD_CERT_SUBJECT=7,this.SGD_CERT_DER_PUBLIC_KEY=8,this.SGD_CERT_DER_EXTENSIONS=9,this.SGD_CERT_NOT_BEFORE=16,this.SGD_CERT_ISSUER_CN=33,this.SGD_CERT_ISSUER_O=34,this.SGD_CERT_ISSUER_OU=35,this.SGD_CERT_ISSUER_C=36,this.SGD_CERT_ISSUER_P=37,this.SGD_CERT_ISSUER_L=38,this.SGD_CERT_ISSUER_S=39,this.SGD_CERT_ISSUER_EMAIL=40,this.SGD_CERT_SUBJECT_CN=49,this.SGD_CERT_SUBJECT_O=50,this.SGD_CERT_SUBJECT_OU=51,this.SGD_CERT_SUBJECT_EMALL=52,this.SGD_REMAIN_TIME=53,this.SGD_SIGNATURE_ALG=54,this.SGD_CERT_SUBJECT_C=55,this.SGD_CERT_SUBJECT_P=56,this.SGD_CERT_SUBJECT_L=57,this.SGD_CERT_SUBJECT_S=58,this.SGD_CERT_CRL=65,this.SGD_DEVICE_SORT=513,this.SGD_DEVICE_TYPE=514,this.SGD_DEVICE_NAME=515,this.SGD_DEVICE_MANUFACTURER=516,this.SGD_DEVICE_HARDWARE_VERSION=517,this.SGD_DEVICE_SOFTWARE_VERSION=518,this.SGD_DEVICE_STANDARD_VERSION=519,this.SGD_DEVICE_SERIAL_NUMBER=520,this.SGD_DEVICE_SUPPORT_SYM_ALG=521,this.SGD_DEVICE_SUPPORT_ASYM_ALG=522,this.SGD_DEVICE_SUPPORT_HASH_ALG=523,this.SGD_DEVICE_SUPPORT_STORANGE_SPACE=524,this.SGD_DEVICE_SUPPORT_FREE_SAPCE=525,this.SGD_DEVICE_RUNTIME=526,this.SGD_DEVICE_USED_TIMES=527,this.SGD_DEVICE_LOCATION=528,this.SGD_DEVICE_DESCRIPTION=529,this.SGD_DEVICE_MANAGER_INFO=530,this.SGD_DEVICE_MAX_DATA_SIZE=531,this.TRUE=1,this.FALSE=0,this.GM3000=1,this.K5=3,this.TF=4,this.HT=5,this.SJK1137=2,this.TYPE_UKEY=1,this.TYPE_FPKEY=2;var t=null;function n(){var e={versions:function(){var e=navigator.userAgent;navigator.appVersion;return{trident:e.indexOf("Trident")>-1,presto:e.indexOf("Presto")>-1,webKit:e.indexOf("AppleWebKit")>-1,gecko:e.indexOf("Gecko")>-1&&-1==e.indexOf("KHTML"),mobile:!!e.match(/AppleWebKit.*Mobile.*/),ios:!!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),android:e.indexOf("Android")>-1||e.indexOf("Linux")>-1,iPhone:e.indexOf("iPhone")>-1,iPad:e.indexOf("iPad")>-1,webApp:-1==e.indexOf("Safari")}}(),language:(navigator.browserLanguage||navigator.language).toLowerCase()};return!(!e.versions.mobile||!(e.versions.ios||e.versions.android||e.versions.iPhone||e.versions.iPad))}this.SOF_GetLastError=function(){return null==t?-1:t.SOF_GetLastError()},this.SOF_LoadLibrary=function(e){var i;if(os=check_os(),null==t&&(t=new mTokenPlugin),e==this.GM3000)i=n()?t.SOF_LoadLibrary("1","mToken OTG","com.longmai.security.plugin.driver.otg.OTGDriver"):t.SOF_LoadLibrary("mtoken_gm3000_hnca.dll","libgm3000.1.0.so","libgm3000.1.0.dylib");else if(e==this.SJK1137)i=t.SOF_LoadLibrary("SKF_APP.dll","libhunca_hsic_skf.so","libhunca_hsic_skf.dylib");else if(e==this.HT)i=t.SOF_LoadLibrary("HUNCA_HT_20522_SKF.dll","libhunca_ht_h2070f63_skf.so","libhunca_ht_h2070f63_skf.dylib");else if(e==this.K5)i=n()?t.SOF_LoadLibrary("2","mToken K5 Bluetooth","com.longmai.security.plugin.driver.ble.BLEDriver"):t.SOF_LoadLibrary("mtoken_k5.dll","libgm3000.1.0.so","libk5.1.0.dylib");else{if(e!=this.TF)return-1;i=n()?t.SOF_LoadLibrary("0","mToken TF/SD Card","com.longmai.security.plugin.driver.tf.TFDriver"):t.SOF_LoadLibrary("mtoken_tf.dll","libgm3000.1.0.so","libtf.dylib")}return 0!=i?-2:this.SAR_OK},this.SOF_EnumDevice=function(){if(null==t)return null;var e=t.SOF_EnumDevice();return null==e||e.length<=0?null:e.split("||")},this.SOF_GetVersion=function(){return null==t?null:t.SOF_GetVersion()},this.SOF_GetDeviceInstance=function(e,n){return null==t?-1:t.SOF_GetDeviceInstance(e,n)},this.SOF_ReleaseDeviceInstance=function(){return null==t?-1:t.SOF_ReleaseDeviceInstance()},this.SOF_GetUserList=function(){if(null==t)return null;var e=t.SOF_GetUserList();if(null==e||e.length<=0)return null;for(var n=new Array,i=e.split("&&&"),r=i.length,a=0;a<r;a++)n[a]=i[a].split("||");return n},this.SOF_ExportUserCert=function(e,n){return null==t?null:t.SOF_ExportUserCert(e,n)},this.SOF_GetDeviceInfo=function(e){return null==t?null:t.SOF_GetDeviceInfo(e)},this.SOF_GetCertInfo=function(e,n){return null==t?null:t.SOF_GetCertInfo(e,n)},this.SOF_GetCertInfoByOid=function(e,n){return null==t?null:t.SOF_GetCertInfoByOid(e,n)},this.SOF_Login=function(e){return null==t?-1:t.SOF_Login(e)},this.SOF_LogOut=function(){return null==t?-1:t.SOF_LogOut()},this.SOF_GetPinRetryCount=function(){return null==t?-1:t.SOF_GetPinRetryCount()},this.SOF_ChangePassWd=function(e,n){return null==t?-1:t.SOF_ChangePassWd(e,n)},this.SOF_SetDigestMethod=function(e){return null==t?-1:t.SOF_SetDigestMethod(e)},this.SOF_SetUserID=function(e){return null==t?-1:t.SOF_SetUserID(e)},this.SOF_SetEncryptMethodAndIV=function(e,n){return null==t?-1:t.SOF_SetEncryptMethodAndIV(e,n)},this.SOF_EncryptFileToPKCS7=function(e,n,i,r){return null==t?-1:t.SOF_EncryptFileToPKCS7(e,n,i,r)},this.SOF_SignFileToPKCS7=function(e,n,i){return null==t?-1:t.SOF_SignFileToPKCS7(e,n,i)},this.SOF_VerifyFileToPKCS7=function(e,n){return null==t?-1:t.SOF_VerifyFileToPKCS7(e,n)},this.SOF_DecryptFileToPKCS7=function(e,n,i,r,a,o){return null==t?-1:t.SOF_DecryptFileToPKCS7(e,n,i,r,a,o)},this.SOF_DigestData=function(e,n,i){return null==t?null:t.SOF_DigestData(e,n,i)},this.SOF_SignData=function(e,n,i,r){return null==t?null:t.SOF_SignData(e,n,i,r)},this.SOF_SignDataInteractive=function(e,n,i,r){return null==t?null:t.SOF_SignDataInteractive(e,n,i,r)},this.SOF_SignDataToPKCS7=function(e,n,i,r){return null==t?null:t.SOF_SignDataToPKCS7(e,n,i,r)},this.SOF_VerifyDataToPKCS7=function(e,n,i){return null==t?-1:t.SOF_VerifyDataToPKCS7(e,n,i)},this.SOF_VerifySignedData=function(e,n,i,r){return null==t?-1:t.SOF_VerifySignedData(e,n,i,r)},this.SOF_EncryptDataPKCS7=function(e,n,i){return null==t?null:t.SOF_EncryptDataPKCS7(e,n,i)},this.SOF_DecryptDataPKCS7=function(e,n,i){return null==t?null:t.SOF_DecryptDataPKCS7(e,n,i)},this.SOF_GenRemoteUnblockRequest=function(){return null==t?null:t.SOF_GenRemoteUnblockRequest()},this.SOF_GenResetpwdResponse=function(e,n,i){return null==t?null:t.SOF_GenResetpwdResponse(e,n,i)},this.SOF_RemoteUnblockPIN=function(e){return null==t?null:t.SOF_RemoteUnblockPIN(e)},this.SOF_SignDataToPKCS7=function(e,n,i,r){return null==t?null:t.SOF_SignDataToPKCS7(e,n,i,r)},this.SOF_VerifyDataToPKCS7=function(e,n,i){return null==t?null:t.SOF_VerifyDataToPKCS7(e,n,i)},this.SOF_ExportPubKey=function(e,n,i){return null==t?null:t.SOF_ExportPubKey(e,n,i)},this.SOF_EncryptByPubKey=function(e,n,i){return null==t?null:t.SOF_EncryptByPubKey(e,n,i)},this.SOF_DecryptByPrvKey=function(e,n,i){return null==t?null:t.SOF_DecryptByPrvKey(e,n,i)},this.SOF_GenerateP10Request=function(e,n,i,r,a,o){return null==t?null:t.SOF_GenerateP10Request(e,n,i,r,a,o)},this.SOF_EnumCertContiner=function(){return null==t?null:t.SOF_EnumCertContiner()},this.SOF_FindContainer=function(e){return null==t?null:t.SOF_FindContainer(e)},this.SOF_DeleteCert=function(e){return null==t?null:t.SOF_DeleteCert(e)},this.SOF_DeleteContainer=function(e){return null==t?null:t.SOF_DeleteContainer(e)},this.SOF_SignByCert=function(e,n){return null==t?null:t.SOF_SignByCert(e,n)},this.SOF_VerifyByCert=function(e,n,i){return null==t?null:t.SOF_VerifyByCert(e,n,i)},this.SOF_ImportCert=function(e,n,i){return null==t?null:t.SOF_ImportCert(e,n,i)},this.SOF_ImportCryptoCertAndKey=function(e,n,i,r,a,o,s){return null==t?null:t.SOF_ImportCryptoCertAndKey(e,n,i,r,a,o,s)},this.SOF_VerifyByExtCert=function(e,n,i,r){return null==t?null:t.SOF_VerifyByExtCert(e,n,i,r)},this.SOF_GenerateRandom=function(e){return null==t?null:t.SOF_GenerateRandom(e)},this.SOF_SymEncryptFile=function(e,n,i,r){return null==t?null:t.SOF_SymEncryptFile(e,n,i,r)},this.SOF_SymDecryptFile=function(e,n,i,r){return null==t?null:t.SOF_SymDecryptFile(e,n,i,r)},this.SOF_SymEncryptData=function(e,n){return null==t?null:t.SOF_SymEncryptData(e,n)},this.SOF_SymDecryptData=function(e,n){return null==t?null:t.SOF_SymDecryptData(e,n)},this.SOF_GenerateQRCode=function(e){return null==t?null:t.SOF_GenerateQRCode(e)},this.SOF_VerifyPinMS=function(e){return null==t?null:t.SOF_VerifyPinMS(e)},this.SOF_GetHardwareType=function(){return null==t?null:t.SOF_GetHardwareType()},this.SOF_VerifyFingerprint=function(){return null==t?null:t.SOF_VerifyFingerprint()},this.SOF_EnumFiles=function(){if(null==t)return null;var e=t.SOF_EnumFiles();return null==e||e.length<=0?null:e.split("||")},this.SOF_ReadFile=function(e,n,i){return null==t?null:t.SOF_ReadFile(e,Number(n),Number(i))},this.SOF_WriteFile=function(e,n,i){return null==t?null:t.SOF_WriteFile(e,n,i)},this.SOF_CreateFile=function(e,n,i,r){return null==t?null:t.SOF_CreateFile(e,n,i,r)},this.SOF_DeleteFile=function(e){return null==t?null:t.SOF_DeleteFile(e)}}function hasPlugin(e){e=e.toLowerCase();for(var t=0;t<navigator.plugins.length;t++)if(navigator.plugins[t].name.toLowerCase().indexOf(e)>-1)return!0;return!1}function check_os(){var e=-1!=navigator.userAgent.indexOf("Windows",0)?1:0,t=(navigator.userAgent.indexOf("mac",0),-1!=navigator.userAgent.indexOf("Linux",0)?1:0);navigator.userAgent.indexOf("X11",0);return e?"MS Windows":t&&"Lunix",hasPlugin("mPlugin1.0.0.1")?(linuxWin=2,"id_mPluginV2Router"):(linuxWin=1,"mTokenPlugin")}split=split||function(e){var t,n=String.prototype.split,i=/()??/.exec("")[1]===e;return t=function(t,r,a){if("[object RegExp]"!==Object.prototype.toString.call(r))return n.call(t,r,a);var o,s,l,u,c=[],h=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.extended?"x":"")+(r.sticky?"y":""),d=0;r=new RegExp(r.source,h+"g");t+="",i||(o=new RegExp("^"+r.source+"$(?!\\s)",h)),a=a===e?-1>>>0:a>>>0;while(s=r.exec(t)){if(l=s.index+s[0].length,l>d&&(c.push(t.slice(d,s.index)),!i&&s.length>1&&s[0].replace(o,(function(){for(var t=1;t<arguments.length-2;t++)arguments[t]===e&&(s[t]=e)})),s.length>1&&s.index<t.length&&Array.prototype.push.apply(c,s.slice(1)),u=s[0].length,d=l,c.length>=a))break;r.lastIndex===s.index&&r.lastIndex++}return d===t.length?!u&&r.test("")||c.push(""):c.push(t.slice(d)),c.length>a?c.slice(0,a):c},String.prototype.split=function(e,n){return t(this,e,n)},t}();var linuxWin=0,os;function mTokenPlugin(){var _xmlhttp,retJSON="",_curDevName;function AjaxIO(e){if("id_mPluginV2Router"==os){var t=null,n="http://127.0.0.1:51235/alpha";t=document.getElementById("id_mPluginV2Router"),null==t&&alert("无法获取到插件,请确认已经安装好插件!");var i=e;return retJSON=t.invoke(n,i),retJSON}{var r="http://127.0.0.1:51235/alpha";let t=e;null==_xmlhttp&&(_xmlhttp=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP")),_xmlhttp.open("POST",r,!1),_xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded"),_xmlhttp.send("json="+t)}}function GetHttpResult(){if(4==_xmlhttp.readyState&&200==_xmlhttp.status){var obj=eval("("+_xmlhttp.responseText+")");return obj}return null}this.SOF_GetLastError=function(){var json='{"function":"SOF_GetLastError"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.errorCode}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_LoadLibrary=function(windows,linux,mac){var json='{"function":"SOF_LoadLibrary", "winDllName":"'+windows+'", "linuxSOName":"'+linux+'", "macDylibName":"'+mac+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_EnumDevice=function(){var json='{"function":"SOF_EnumDevice"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.array}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.array:-2},this.SOF_GetVersion=function(){var json='{"function":"SOF_GetVersion"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.version}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.version:-2},this.SOF_GetDeviceInstance=function(DeviceName,ApplicationName){var json='{"function":"SOF_GetDeviceInstance", "deviceName":"'+DeviceName+'", "applicationName":"'+ApplicationName+'"}';if(2==linuxWin){var retJSON="";try{_curDevName=DeviceName,retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?(0==ret.rtn&&(_curDevName=DeviceName),ret.rtn):-2},this.SOF_ReleaseDeviceInstance=function(){var json='{"function":"SOF_ReleaseDeviceInstance", "deviceName":"'+_curDevName+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.array}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_GetUserList=function(){var json='{"function":"SOF_GetUserList", "deviceName":"'+_curDevName+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.array}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.array:-2},this.SOF_ExportUserCert=function(ContainerName,KeySpec){var json='{"function":"SOF_ExportUserCert", "deviceName":"'+_curDevName+'", "containerName":"'+ContainerName+'", "keySpec":'+KeySpec+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.cert}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.cert:-2},this.SOF_GetDeviceInfo=function(Type){var json='{"function":"SOF_GetDeviceInfo", "deviceName":"'+_curDevName+'", "type":'+Type+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.info}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.info:-2},this.SOF_GetCertInfo=function(Base64EncodeCert,Type){var json='{"function":"SOF_GetCertInfo", "base64EncodeCert":"'+Base64EncodeCert+'", "type":'+Type+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.info}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.info:-2},this.SOF_GetCertInfoByOid=function(Base64EncodeCert,OID){var json='{"function":"SOF_GetCertInfoByOid", "base64EncodeCert":"'+Base64EncodeCert+'", "oid":"'+OID+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.info}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.info:null},this.SOF_Login=function(PassWd){var json='{"function":"SOF_Login", "deviceName":"'+_curDevName+'", "passWd":"'+PassWd+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_LogOut=function(){var json='{"function":"SOF_LogOut", "deviceName":"'+_curDevName+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_GetPinRetryCount=function(){var json='{"function":"SOF_GetPinRetryCount", "deviceName":"'+_curDevName+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.retryCount}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.retryCount:-2},this.SOF_ChangePassWd=function(OldPassWd,NewPassWd){var json='{"function":"SOF_ChangePassWd", "deviceName":"'+_curDevName+'", "oldUpin":"'+OldPassWd+'", "newUpin":"'+NewPassWd+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_SetDigestMethod=function(DigestMethod){var json='{"function":"SOF_SetDigestMethod","deviceName":"'+_curDevName+'", "digestMethod":'+DigestMethod+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_SetUserID=function(UserID){var json='{"function":"SOF_SetUserID","deviceName":"'+_curDevName+'", "userID":"'+UserID+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_SetEncryptMethodAndIV=function(EncryptMethod,EncryptIV){var json='{"function":"SOF_SetEncryptMethodAndIV","deviceName":"'+_curDevName+'", "encryptMethod":'+EncryptMethod+', "encryptIV":"'+EncryptIV+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_EncryptFileToPKCS7=function(Cert,InFile,OutFile,type){var json='{"function":"SOF_EncryptFileToPKCS7", "deviceName":"'+_curDevName+'", "cert":"'+Cert+'", "inFile":"'+InFile.replace(/\\/g,"\\\\")+'", "outFile":"'+OutFile.replace(/\\/g,"\\\\")+'", "type":'+type+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.envelopData}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.envelopData:-2},this.SOF_SignFileToPKCS7=function(ContainerName,KeySpec,InFile){var json='{"function":"SOF_SignFileToPKCS7", "deviceName":"'+_curDevName+'", "containerName":"'+ContainerName+'", "KeySpec":'+KeySpec+', "inFile":"'+InFile.replace(/\\/g,"\\\\")+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.signed}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.signed:-2},this.SOF_VerifyFileToPKCS7=function(strPkcs7Data,InFilePath){var json='{"function":"SOF_VerifyFileToPKCS7", "deviceName":"'+_curDevName+'","strPkcs7Data":"'+strPkcs7Data+'", "inFile":"'+InFilePath.replace(/\\/g,"\\\\")+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_DecryptFileToPKCS7=function(ContainerName,keySpec,Pkcs7Data,InFile,OutFile,type){var json='{"function":"SOF_DecryptFileToPKCS7", "deviceName":"'+_curDevName+'", "containerName":"'+ContainerName+'", "keySpec":'+keySpec+', "pkcs7Data":"'+Pkcs7Data+'", "inFile":"'+InFile.replace(/\\/g,"\\\\")+'", "outFile":"'+OutFile.replace(/\\/g,"\\\\")+'", "type":'+type+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_DigestData=function(ContainerName,InData,InDataLen){var json='{"function":"SOF_DigestData","deviceName":"'+_curDevName+'", "containerName":"'+ContainerName+'", "inData":"'+InData+'", "inDataLen":'+InDataLen+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.digest}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.digest:-2},this.SOF_SignDataInteractive=function(ContainerName,ulKeySpec,inData,InDataLen){var InDataBase64=inData,json='{"function":"SOF_SignDataInteractive", "deviceName":"'+_curDevName+'", "containerName":"'+ContainerName+'", "keySpec":'+ulKeySpec+', "inData":"'+InDataBase64+'", "inDataLen":'+InDataLen+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.signed}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.signed:null},this.SOF_SignData=function(ContainerName,ulKeySpec,InData,InDataLen){var json='{"function":"SOF_SignDataEx", "deviceName":"'+_curDevName+'", "containerName":"'+ContainerName+'", "keySpec":'+ulKeySpec+', "inData":"'+InData+'", "inDataLen":'+InDataLen+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.signed}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.signed:-2},this.SOF_VerifySignedData=function(Base64EncodeCert,digestMethod,InData,SignedValue){var json='{"function":"SOF_VerifySignedDataEx","deviceName":"'+_curDevName+'", "base64EncodeCert":"'+Base64EncodeCert+'", "digestMethod":'+digestMethod+', "inData":"'+InData+'", "signedValue":"'+SignedValue+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_EncryptDataPKCS7=function(Base64EncodeCert,InData,InDataLen){var json='{"function":"SOF_EncryptDataPKCS7", "deviceName":"'+_curDevName+'", "base64EncodeCert":"'+Base64EncodeCert+'", "inData":"'+InData+'", "inDataLen":'+InDataLen+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.encrypedData}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.encrypedData:-2},this.SOF_DecryptDataPKCS7=function(ContainerName,ulKeySpec,InData){var json='{"function":"SOF_DecryptDataPKCS7", "deviceName":"'+_curDevName+'", "containerName":"'+ContainerName+'", "keySpec":'+ulKeySpec+', "inData":"'+InData+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.decryptedData}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.decryptedData:-2},this.SOF_GenRemoteUnblockRequest=function(){var json='{"function":"SOF_GenRemoteUnblockRequest", "deviceName":"'+_curDevName+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.request}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.request:-2},this.SOF_GenResetpwdResponse=function(request,soPin,userPin){var json='{"function":"SOF_GenResetpwdResponse", "deviceName":"'+_curDevName+'", "request":"'+request+'", "soPin":"'+soPin+'", "userPin":"'+userPin+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.request}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.request:-2},this.SOF_RemoteUnblockPIN=function(request){var json='{"function":"SOF_RemoteUnblockPIN", "deviceName":"'+_curDevName+'", "request":"'+request+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_SignDataToPKCS7=function(ContainerName,ulKeySpec,InData,ulDetached){var json='{"function":"SOF_SignDataToPKCS7", "deviceName":"'+_curDevName+'", "containerName":"'+ContainerName+'", "keySpec":'+ulKeySpec+', "inData":"'+InData+'", "detached":'+ulDetached+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.pkcs7}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.pkcs7:-2},this.SOF_VerifyDataToPKCS7=function(strPkcs7Data,OriginalText,ulDetached){var json='{"function":"SOF_VerifyDataToPKCS7", "deviceName":"'+_curDevName+'", "pkcs7":"'+strPkcs7Data+'", "original":"'+OriginalText+'", "detached":'+ulDetached+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_ExportPubKey=function(containerName,keySpec,expType){var json='{"function":"SOF_ExportPubKeyEx","deviceName":"'+_curDevName+'", "containerName":"'+containerName+'", "keySpec":'+keySpec+', "expType":'+expType+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.pubKey}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.pubKey:-2},this.SOF_EncryptByPubKey=function(strPubKey,strInput,cerType){var json='{"function":"SOF_EncryptByPubKey", "deviceName":"'+_curDevName+'", "pubKey":"'+strPubKey+'", "asymPlain":"'+strInput+'", "keySpec":'+cerType+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.asymCipher}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.asymCipher:null},this.SOF_DecryptByPrvKey=function(containerName,cerType,strAsymCipher){var json='{"function":"SOF_DecryptByPrvKey", "deviceName":"'+_curDevName+'", "containerName":"'+containerName+'", "asymCipher":"'+strAsymCipher+'", "keySpec":'+cerType+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.asymPlain}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.asymPlain:null},this.SOF_CreateKeyPair=function(container,keySpec,asymAlg,keyLength){var json='{"function":"SOF_CreateKeyPair","deviceName":"'+_curDevName+'", "containerName":"'+container+'", "asymAlg":'+asymAlg+', "keySpec":'+keySpec+',"keyLength":'+keyLength+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_EnumCertContiner=function(){var json='{"function":"SOF_EnumCertContiner", "deviceName":"'+_curDevName+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.containerName}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.containerName:""},this.SOF_FindContainer=function(certSN){var json='{"function":"SOF_FindContainer","deviceName":"'+_curDevName+'", "certSN":"'+certSN+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.containerName}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.containerName:""},this.SOF_DeleteCert=function(certSN){var json='{"function":"SOF_DeleteCert","deviceName":"'+_curDevName+'", "certSN":"'+certSN+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_DeleteContainer=function(certSN){var json='{"function":"SOF_DeleteContainer", "deviceName":"'+_curDevName+'", "certSN":"'+certSN+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_SignByCert=function(certSN,plain){var json='{"function":"SOF_SignByCert", "deviceName":"'+_curDevName+'", "certSN":"'+certSN+'", "inData":"'+plain+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.signed}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.signed:null},this.SOF_VerifyByCert=function(certSN,plain,signature,digestMethod){var json='{"function":"SOF_VerifyByCert", "deviceName":"'+_curDevName+'", "certSN":"'+certSN+'","digestMethod":'+digestMethod+', "inData":"'+plain+'", "signed":"'+signature+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_VerifyByExtCert=function(cert,plain,signature,digestMethod){var json='{"function":"SOF_VerifyByExtCert","deviceName":"'+_curDevName+'", "cert":"'+cert+'", "digestMethod":'+digestMethod+', "inData":"'+plain+'", "signed":"'+signature+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_GenerateP10Request=function(_curDevName,container,dn,asymAlg,keySpec,keyLength){var json='{"function":"SOF_GenerateP10Request", "deviceName":"'+_curDevName+'", "containerName":"'+container+'", "certDN":"'+dn+'", "asymAlg":'+asymAlg+', "keySpec":'+keySpec+',"keyLength":'+keyLength+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.outData}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.outData:null},this.SOF_ImportCert=function(container,cert,keySpec){var json='{"function":"SOF_ImportCert", "deviceName":"'+_curDevName+'", "containerName":"'+container+'", "cert":"'+cert+'", "keySpec":'+keySpec+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_ImportCryptoCertAndKey=function(container,cert,nAsymAlg,EncryptedSessionKeyData,symAlg,EncryptedPrivateKeyData,mode){var json='{"function":"SOF_ImportCryptoCertAndKey", "deviceName":"'+_curDevName+'", "containerName":"'+container+'", "cert":"'+cert+'", "asymAlg":'+nAsymAlg+', "sessionKey":"'+EncryptedSessionKeyData+'", "symAlg":"'+symAlg+'", "encrypedData":"'+EncryptedPrivateKeyData+', + "mode":'+mode+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_GenerateRandom=function(length){var json='{"function":"SOF_GenRandom", "deviceName":"'+_curDevName+'", "inDataLen":'+length+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.outData}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.outData:-2},this.SOF_SymEncryptFile=function(sessionKey,srcfile,destfile,type){var json='{"function":"SOF_SymEncryptFile", "deviceName":"'+_curDevName+'", "sessionKey":"'+sessionKey+'", "inFile":"'+srcfile.replace(/\\/g,"\\\\")+'", "outFile":"'+destfile.replace(/\\/g,"\\\\")+'", "type":'+type+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_SymDecryptFile=function(sessionKey,srcfile,destfile,type){var json='{"function":"SOF_SymDecryptFile", "deviceName":"'+_curDevName+'", "sessionKey":"'+sessionKey+'", "inFile":"'+srcfile.replace(/\\/g,"\\\\")+'", "outFile":"'+destfile.replace(/\\/g,"\\\\")+'", "type":'+type+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_SymEncryptData=function(sessionKey,inData){var json='{"function":"SOF_SymEncryptData", "deviceName":"'+_curDevName+'", "sessionKey":"'+sessionKey+'", "inData":"'+inData+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.outData}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.outData:null},this.SOF_SymDecryptData=function(sessionKey,inData){var json='{"function":"SOF_SymDecryptData", "deviceName":"'+_curDevName+'", "sessionKey":"'+sessionKey+'", "inData":"'+inData+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.outData}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.outData:null},this.SOF_GenerateQRCode=function(qrcode_text_in){var qrcode_text=qrcode_text_in.replace(/"/g,'\\"'),json='{"module":"libQR","function":"SOF_GenerateQRCode", "inData":"'+qrcode_text+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.outData}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.outData:null},this.SOF_VerifyPinMS=function(responseKey){var json='{"function":"SOF_VerifyPinMS", "deviceName":"'+_curDevName+'", "passWd":"'+responseKey+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_GetHardwareType=function(){var json='{"function":"SOF_GetHardwareType", "deviceName":"'+_curDevName+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.type}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.type:-2},this.SOF_VerifyFingerprint=function(){var json='{"function":"SOF_VerifyFingerprint", "deviceName":"'+_curDevName+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_EnumFiles=function(){var json='{"function":"SOF_EnumFiles", "deviceName":"'+_curDevName+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.array}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.array:-2},this.SOF_ReadFile=function(fileName,offset,length){var json='{"function":"SOF_ReadFile", "deviceName":"'+_curDevName+'", "fileName":"'+fileName+'", "offset":'+offset+',"length":'+length+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.outData}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();if(ret)return ret.outData},this.SOF_WriteFile=function(fileName,offset,data){var json='{"function":"SOF_WriteFile", "deviceName":"'+_curDevName+'", "fileName":"'+fileName+'", "offset":'+offset+',"inData":"'+data+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();if(ret)return ret.rtn},this.SOF_CreateFile=function(fileName,length,readRight,writeRight){var json='{"function":"SOF_CreateFile", "deviceName":"'+_curDevName+'","fileName":"'+fileName+'", "length" :'+length+', "readRight":'+readRight+',"writeRight":'+writeRight+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();if(ret)return ret.rtn},this.SOF_DeleteFile=function(fileName){var json='{"function":"SOF_DeleteFile", "deviceName":"'+_curDevName+'","fileName":"'+fileName+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();if(ret)return ret.rtn},this.SocketConnect=function(HostName,Port){var json='{"module":"libSocket","function":"SocketConnect", "HostName":"'+HostName+'", "Port":'+Port+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();if(ret)return ret.rtn},this.SocketDisConnect=function(){var json='{"module":"libSocket","function":"SocketDisConnect"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();if(ret)return ret.rtn},this.SocketSendText=function(SendText){var json='{"module":"libSocket","function":"SocketSendText", "SendText":"'+SendText+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.RecvText}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();if(ret)return ret.RecvText}}},7021:function(e,t,n){var i={"./admin.jpg":6296,"./personal.jpg":1865,"./personal1.jpg":456,"./personal2.jpg":6964};function r(e){var t=a(e);return n(t)}function a(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}r.keys=function(){return Object.keys(i)},r.resolve=a,e.exports=r,r.id=7021},3284:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAAVCAYAAACkCdXRAAAAAXNSR0IArs4c6QAAAeFJREFUOE+tlLtrFFEUh7/fjEWK/AEWio2QSrKFVhq46wNsBAuLFAHdh5DCMmJAxBEUC7VWdDcb0CKloGDhYy8YsbEwIGhaiWBpkcIimSMzzqy7s8lmjA4MF+45883vPMWIp9q2CYNjBOwjZk2w3G1odbtPtJXheMsOxAGLgNvC/jwImX1zXt+KtiFYqkZ4YC/GGmKJmFUCJoCZ9B6+y3BFlQMwF9ke9vMecRhjiYCar+lnrsB1bAzjMXAO44Nv6Ei/ukFY204iXgJf+MohH2mjGEr2w8+IgxinfEOvcp9BWMduY8xjzPmG7m2XaLdgV4GbyevrujYEy3LVIqkeJOfyiEInPs3ER0Yzz12qzC3YHWBuVJvsYLvr67os98gcIV2MdcQDxHppqDGOMYvSc0quY9cxomL8ZYEuz7OY/wMTka/pRhFSbdukiYqMj92GVoaqm4sR0UhYddGO2mbab0+ImVHIdPeC3vUDe5HtBMscN3xdt1zHrmCM97dCWryyylzLThN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kMmqyTQjKkk/pn78mnthZNcwtzjpWt0KlmTB7xKdUVLWSDbmOX84QoWux4jcenarZAtm3hLz696s5go6p7Ykxk+e2LW+9P0/XELy2Mo3p1H5qdhdiA7H+U/ik2QlxxCo6yU22KVC/uDgO11GW0+DGR6UzudOiuzvBwfUUvTWKalxTT05ptQNiO7XwwGuP/x+f2oE6KB/s/H71CNlmJKIkJnlTd7eWyEE+p/jEX12QjCpg981JNETOWckdsU40ChqlFEaM12UZrZSugH0/JwtiSW9kLv9zR080VhEFX7CntppDLaWm0hKEAJA+gw9VQo2is2zF2LN1NTxzUao1CjQKj4n2rOfeg2V/frgea1in5Yc0VBeS2/CHj0NJs6E1Fe7NtayNVtzhFLEI2wK0cE7SruIozRqBAkpLz/ar0keHVYH23wda2cUg3NS68v5YztTApkbabZQGmkJQhOwSkWAw2VQowo4pKzM53Mcmp45qNf/2Q=="},4800:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs4c6QAACspJREFUeF7dnGtsHNUVx39n1684thPbJBDzaNrS4lQ8wktACyUJRDiACEkgJNAP8Am+tVJVNVGrUrWVIFLVglSp5dlCFZFApJRACykhBKJWeUFJCDSGKqTQhLywYzv2ete7c6ozdza249fuemfWcKSrHXvv3Hvuf87z3jMrREyqeg4wGzgXsOuzg5a9No7+BxwMWvb6U+BdEbG/IyMJeyZVjQFXAbcCtwCXjHPO3cDLQdshIt44xxv19tAAUtUlwG3AAmBaSIs4BrwCrBeRv4QxR1EBUlUb707gl8A3w2B4lDE/BH4KrBMRLdbcRQNIVecAvwEuLRZzBY6zC1gpIpsKvH/QbeMGSFUNEAPGAJpIZAAZUAZYwVQwQIE6PQj8DCh4nII5z+1GU7Wfm8oXqnYFLUxV64DVgWfKjdXS9jKvd4+IdObLRt4AqeoFwIuAfX6RqBW4SUT+mw/TeQGkqvPMpQImQV9E+hxYKiKbc2U+Z4BU9YfAKiCe6+ATtF8G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Ge+NZwa0IVhjfO3oW641VdiNowZcduLMMatzXwEc5TK88loAk8HEkEqOM4wBgklgtkDRiQs/qgFzn68sI9aYBT/4CN/ZR/iNa8OVZaedXm1rdbmUoSpJUnmOKKOnmkYGf1B0GnTC07oT0FWWWtScmu69KA7UYpqFPY5sxhP5YOC6n09x20KN0etsZxbTZcIGQkEAk9gTVpMZEhxKVq0g9eeKztb+6tu3X1ddUu/aFbbs68JtZFRDsme+wG+AIDbKG0LS2pI5fUKSSSTnpgBEs/GkPiJxxuYAy+SRoJ6ctiQMnuMA+VMcq3SbWlCo51tgDfH2N9vijtUdmNHQy7IjVGSyG0lZ4wlYAAz9D++icixx20KcCyAATvvy9q7x+JZBUELQDntkf3QJv7cU3ar+oFy3zUotRbrVwtGamspnOJMSRy+EFtgENqBWMqQsKJJIBHTEkT4UW0/npc1NBJIPfy/edsc87VTfdlP3AslOFE4wPv23zROsimvXHy47TTrbEZKUvPFPh6DyB7k+mjHDXH0TiWOpbLK0KTzyMpz5KHP2B8qFXOxu21wBawQe3P1FF1hhqMyiOygJbbSEpA7AatKUVqKlczVYAAYFSajXteDcNk2/cZ50+IUSMfnsngWffsfuDpbvfCdrvx1ym8L/ANk7K/o+oNEoV2lQPC0rw9juP+elC2p1atW/zaNBrUxUR0FlSHlBeEnoQMjw9PTGsfuM2fZNUCNJWW1ZSQohWx22yNvTFOEdlibiQ62nUN8jI3899/WrHZVm0ys04CpSpz8dlYWmKXyGeI+Z4QPP2OmnhfhKFcYo/LWtaEnIQVeDPfAA39aFXS7vx3f4kpCiP8sb+9EeLEjQWERYcdtllsYShCQAPtrVY8dmI2GWEhKRyAGAKVXHFuqK3Dknqam12qFf/9k="},7203:function(e){"use strict";e.exports=__WEBPACK_EXTERNAL_MODULE__7203__}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.loaded=!0,n.exports}!function(){__webpack_require__.amdO={}}(),function(){__webpack_require__.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return __webpack_require__.d(t,{a:t}),t}}(),function(){__webpack_require__.d=function(e,t){for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}}(),function(){__webpack_require__.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){__webpack_require__.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){__webpack_require__.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e}}(),function(){__webpack_require__.p=""}();var __webpack_exports__={};return function(){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:function(){return Un}});var e={};if(__webpack_require__.r(e),__webpack_require__.d(e,{hasBrowserEnv:function(){return Xe},hasStandardBrowserEnv:function(){return Ze},hasStandardBrowserWebWorkerEnv:function(){return et}}),"undefined"!==typeof window){var t=window.document.currentScript,n=t&&t.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);n&&(__webpack_require__.p=n[1])}var i=function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{title:e.title,visible:e.isShow,width:"350px","append-to-body":!0},on:{close:e.handleClose}},[t("slide-verify",{ref:"slideblock",attrs:{l:42,r:10,w:310,h:155,imgs:e.imgs,accuracy:e.accuracy,"slider-text":e.sliderText},on:{success:e.onSuccess,fail:e.onFail,again:e.onAgain,refresh:e.onRefresh,fulfilled:e.onFulfilled}})],1)},r=[],a=(__webpack_require__(7658),function(){var e=this,t=e._self._c;return t("div",{staticClass:"slide-verify",style:{width:e.w+"px"},attrs:{id:"slideVerify",onselectstart:"return false;"}},[t("div",{class:{"slider-verify-loading":e.loadBlock}}),t("canvas",{ref:"canvas",attrs:{width:e.w,height:e.h}}),e.show?t("div",{staticClass:"slide-verify-refresh-icon",on:{click:e.refresh}}):e._e(),t("canvas",{ref:"block",staticClass:"slide-verify-block",attrs:{width:e.w,height:e.h}}),t("div",{staticClass:"slide-verify-slider",class:{"container-active":e.containerActive,"container-success":e.containerSuccess,"container-fail":e.containerFail}},[t("div",{staticClass:"slide-verify-slider-mask",style:{width:e.sliderMaskWidth}},[t("div",{staticClass:"slide-verify-slider-mask-item",style:{left:e.sliderLeft},on:{mousedown:e.sliderDown,touchstart:e.touchStartEvent,touchmove:function(t){return e.handleMoveEvent(t,"touch")},touchend:function(t){return e.handleMoveEndEvent(t,"touch")}}},[t("div",{staticClass:"slide-verify-slider-mask-item-icon"})])]),t("span",{staticClass:"slide-verify-slider-text"},[e._v(e._s(e.sliderText))])])])}),o=[];const s=Math.PI;function l(e,t){return e+t}function u(e){return e*e}var c={name:"SlideVerify",props:{l:{type:Number,default:42},r:{type:Number,default:10},w:{type:Number,default:310},h:{type:Number,default:155},sliderText:{type:String,default:"Slide filled right"},accuracy:{type:Number,default:5},show:{type:Boolean,default:!0},imgs:{type:Array,default:()=>[]}},data(){return{containerActive:!1,containerSuccess:!1,containerFail:!1,canvasCtx:null,blockCtx:null,block:null,block_x:void 0,block_y:void 0,L:this.l+2*this.r+3,img:void 0,originX:void 0,originY:void 0,isMouseDown:!1,trail:[],sliderLeft:0,sliderMaskWidth:0,success:!1,loadBlock:!0,timestamp:null}},mounted(){this.init()},methods:{init(){this.initDom(),this.initImg(),this.bindEvents()},initDom(){this.block=this.$refs.block,this.canvasCtx=this.$refs.canvas.getContext("2d"),this.blockCtx=this.block.getContext("2d")},initImg(){const e=this.createImg((()=>{this.loadBlock=!1,this.drawBlock(),this.canvasCtx.drawImage(e,0,0,this.w,this.h),this.blockCtx.drawImage(e,0,0,this.w,this.h);let{block_x:t,block_y:n,r:i,L:r}=this,a=n-2*i-1,o=this.blockCtx.getImageData(t,a,r,r);this.block.width=r,this.blockCtx.putImageData(o,0,a)}));this.img=e},drawBlock(){this.block_x=this.getRandomNumberByRange(this.L+10,this.w-(this.L+10)),this.block_y=this.getRandomNumberByRange(10+2*this.r,this.h-(this.L+10)),this.draw(this.canvasCtx,this.block_x,this.block_y,"fill"),this.draw(this.blockCtx,this.block_x,this.block_y,"clip")},draw(e,t,n,i){let{l:r,r:a}=this;e.beginPath(),e.moveTo(t,n),e.arc(t+r/2,n-a+2,a,.72*s,2.26*s),e.lineTo(t+r,n),e.arc(t+r+a-2,n+r/2,a,1.21*s,2.78*s),e.lineTo(t+r,n+r),e.lineTo(t,n+r),e.arc(t+a-2,n+r/2,a+.4,2.76*s,1.24*s,!0),e.lineTo(t,n),e.lineWidth=2,e.fillStyle="rgba(255, 255, 255, 0.7)",e.strokeStyle="rgba(255, 255, 255, 0.7)",e.stroke(),e[i](),e.globalCompositeOperation="destination-over"},createImg(e){const t=document.createElement("img");return t.crossOrigin="Anonymous",t.onload=e,t.onerror=()=>{t.src=this.getRandomImg()},t.src=this.getRandomImg(),t},getRandomImg(){const e=this.imgs.length;return e>0?this.imgs[this.getRandomNumberByRange(0,e-1)]:"https://source.unsplash.com/300x150/?book,library"},getRandomNumberByRange(e,t){return Math.round(Math.random()*(t-e)+e)},refresh(){this.reset(),this.$emit("refresh")},sliderDown(e){this.success||(this.originX=e.clientX,this.originY=e.clientY,this.isMouseDown=!0,this.timestamp=+new Date)},touchStartEvent(e){this.success||(this.originX=e.changedTouches[0].pageX,this.originY=e.changedTouches[0].pageY,this.isMouseDown=!0,this.timestamp=+new Date)},bindEvents(){document.addEventListener("mousemove",this.handleMoveEvent),document.addEventListener("mouseup",this.handleMoveEndEvent)},handleMoveEvent:h((function(e,t="mouse"){if(!this.isMouseDown)return!1;const n="mouse"===t?e.clientX-this.originX:e.changedTouches[0].pageX-this.originX,i="mouse"===t?e.clientY-this.originY:e.changedTouches[0].pageY-this.originY;if(n<0||n+38>=this.w)return!1;this.sliderLeft=n+"px";let r=(this.w-40-20)/(this.w-40)*n;this.block.style.left=r+"px",this.containerActive=!0,this.sliderMaskWidth=n+"px",this.trail.push(i)})),handleMoveEndEvent(e,t="mouse"){if(!this.isMouseDown)return!1;if(this.isMouseDown=!1,"mouse"===t&&e.clientX===this.originX||"touch"===t&&e.changedTouches[0].pageX===this.originX)return!1;this.containerActive=!1,this.timestamp=+new Date-this.timestamp;const{spliced:n,TuringTest:i}=this.verify();if(n){if(-1===this.accuracy)return this.containerSuccess=!0,this.success=!0,void this.$emit("success",this.timestamp);i?(this.containerSuccess=!0,this.success=!0,this.$emit("success",this.timestamp)):(this.containerFail=!0,this.$emit("again"))}else this.containerFail=!0,this.$emit("fail"),setTimeout((()=>{this.reset()}),1e3)},verify(){const e=this.trail,t=e.reduce(l)/e.length,n=e.map((e=>e-t)),i=Math.sqrt(n.map(u).reduce(l)/e.length),r=parseInt(this.block.style.left),a=this.accuracy<=1?1:this.accuracy>10?10:this.accuracy;return{spliced:Math.abs(r-this.block_x)<=a,TuringTest:t!==i}},reset(){this.success=!1,this.containerActive=!1,this.containerSuccess=!1,this.containerFail=!1,this.sliderLeft=0,this.block.style.left=0,this.sliderMaskWidth=0;let{w:e,h:t}=this;this.canvasCtx.clearRect(0,0,e,t),this.blockCtx.clearRect(0,0,e,t),this.block.width=e,this.img.src=this.getRandomImg(),this.$emit("fulfilled")}},destroyed(){document.removeEventListener("mousemove",this.handleMoveEvent),document.removeEventListener("mouseup",this.handleMoveEndEvent)}};function h(e,t=50,n={leading:!0,trailing:!0}){const{leading:i,trailing:r,resultCallback:a}=n;let o=0,s=null;const l=function(...n){return new Promise(((l,u)=>{const c=(new Date).getTime();o||i||(o=c);const h=t-(c-o);if(h<=0){s&&(clearTimeout(s),s=null);const t=e.apply(this,n);return a&&a(t),l(t),void(o=c)}r&&!s&&(s=setTimeout((()=>{s=null,o=i?(new Date).getTime():0;const t=e.apply(this,n);a&&a(t),l(t)}),h))}))};return l.cancel=function(){s&&clearTimeout(s),s=null,o=0},l}var d=c;function f(e,t,n,i,r,a,o,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),a&&(u._scopeId="data-v-"+a),o?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},u._ssrRegister=l):r&&(l=s?function(){r.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:u}}var p=f(d,a,o,!1,null,"b67196d8",null),m=p.exports,v={name:"YcSlideVerify",components:{SlideVerify:m},props:{title:{type:String,default:"滑动验证"},isShow:{type:Boolean,default:!0}},data(){return{accuracy:5,sliderText:"拖动完成上方拼图",countDownNum:120}},computed:{imgs(){const e=[];for(let t=1;t<9;t++)e.push(`/cloud-img/${t}.jpg`);return e}},watch:{isShow(e){e&&this.$refs.slideblock&&this.$refs.slideblock.reset&&this.$refs.slideblock.reset()}},created(){},methods:{onSuccess(){this.$emit("success"),this.$emit("update:isShow",!1)},onFail(){},onAgain(){},onRefresh(){},onFulfilled(){},handleClose(){this.$emit("update:isShow",!1),this.$emit("close")}}},g=v,y=f(g,i,r,!1,null,"2a264bef",null),b=y.exports,_=function(){var e=this,t=e._self._c;return t("div",{ref:"customer",staticStyle:{display:"none"}},[t("chat-vue",{attrs:{visible:e.visible,jumpPage:e.jumpPage,title:e.title,id:e.id},on:{"update:visible":function(t){e.visible=t}}}),t("div",{staticClass:"customerService"},[t("div",{staticClass:"mobile"},[e._t("default")],2),t("div",{staticClass:"headset",on:{click:function(t){e.visible=!e.visible}}},[e._m(0),e._m(1)])])],1)},x=[function(){var e=this,t=e._self._c;return t("div",[t("i",{staticClass:"el-icon-headset"})])},function(){var e=this,t=e._self._c;return t("div",[t("a",[e._v("在线客服")])])}],S=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"chat"},[t("header",[t("img",{attrs:{src:__webpack_require__(6296)}}),t("span",[e._v(e._s(e.title))]),e.jumpPage?t("i",{staticClass:"icon-enlarge",on:{click:e.enlarge}},[t("img",{attrs:{src:__webpack_require__(1061)}})]):e._e(),t("i",{staticClass:"el-icon-close",on:{click:e.close}})]),t("main",{ref:"main"},e._l(e.messagelist,(function(n,i){return t("div",{key:i,class:["message",n.id]},[t("img",{staticClass:"avatar",attrs:{src:__webpack_require__(7021)(`./${n.id}.jpg`)}}),t("div",{staticClass:"content"},[e._l(n.msg,(function(i,r){return t("span",{key:i+r,class:n.msg.length>1?"href":"",domProps:{innerHTML:e._s((n.msg.length>1?1+r+". ":" ")+i)},on:{click:function(t){n.msg.length>1&&e.regularClick(i)}}})})),n.based?t("div",{staticClass:"based",on:{click:function(t){return e.handExpand(n)}}},[t("span",[e._v("依据")]),t("span",{class:{"is-active":n.isActive}},[e._v(e._s(n.based)),t("i",{staticClass:"el-icon-d-arrow-right"})])]):e._e()],2)])})),0),t("nav",e._l(e.regular,(function(n,i){return t("el-button",{key:n+i,attrs:{size:"mini",round:""},on:{click:function(t){return e.regularClick(n)}}},[e._v(e._s(n))])})),1),t("el-input",{attrs:{type:"textarea",maxlength:"500",autosize:{minRows:2,maxRows:3},autofocus:"true",resize:"none",placeholder:"请反馈您的问题,我们将尽快回复"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.carriageReturn.apply(null,arguments)}},model:{value:e.textareaValue,callback:function(t){e.textareaValue=t},expression:"textareaValue"}}),t("el-button",{attrs:{type:"primary",size:"mini",disabled:!e.textareaValue},on:{click:e.send}},[e._v("发送")])],1)},w=[];__webpack_require__(1439),__webpack_require__(7585),__webpack_require__(5315);function C(e,t){return function(){return e.apply(t,arguments)}}const{toString:k}=Object.prototype,{getPrototypeOf:O}=Object,D=(e=>t=>{const n=k.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),E=e=>(e=e.toLowerCase(),t=>D(t)===e),N=e=>t=>typeof t===e,{isArray:A}=Array,T=N("undefined");function P(e){return null!==e&&!T(e)&&null!==e.constructor&&!T(e.constructor)&&M(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const I=E("ArrayBuffer");function F(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&I(e.buffer),t}const j=N("string"),M=N("function"),$=N("number"),L=e=>null!==e&&"object"===typeof e,R=e=>!0===e||!1===e,B=e=>{if("object"!==D(e))return!1;const t=O(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},V=E("Date"),z=E("File"),H=E("Blob"),W=E("FileList"),G=e=>L(e)&&M(e.pipe),U=e=>{let t;return e&&("function"===typeof FormData&&e instanceof FormData||M(e.append)&&("formdata"===(t=D(e))||"object"===t&&M(e.toString)&&"[object FormData]"===e.toString()))},q=E("URLSearchParams"),K=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function J(e,t,{allOwnKeys:n=!1}={}){if(null===e||"undefined"===typeof e)return;let i,r;if("object"!==typeof e&&(e=[e]),A(e))for(i=0,r=e.length;i<r;i++)t.call(null,e[i],i,e);else{const r=n?Object.getOwnPropertyNames(e):Object.keys(e),a=r.length;let o;for(i=0;i<a;i++)o=r[i],t.call(null,e[o],o,e)}}function Y(e,t){t=t.toLowerCase();const n=Object.keys(e);let i,r=n.length;while(r-- >0)if(i=n[r],t===i.toLowerCase())return i;return null}const Q=(()=>"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global)(),X=e=>!T(e)&&e!==Q;function Z(){const{caseless:e}=X(this)&&this||{},t={},n=(n,i)=>{const r=e&&Y(t,i)||i;B(t[r])&&B(n)?t[r]=Z(t[r],n):B(n)?t[r]=Z({},n):A(n)?t[r]=n.slice():t[r]=n};for(let i=0,r=arguments.length;i<r;i++)arguments[i]&&J(arguments[i],n);return t}const ee=(e,t,n,{allOwnKeys:i}={})=>(J(t,((t,i)=>{n&&M(t)?e[i]=C(t,n):e[i]=t}),{allOwnKeys:i}),e),te=e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),ne=(e,t,n,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},ie=(e,t,n,i)=>{let r,a,o;const s={};if(t=t||{},null==e)return t;do{r=Object.getOwnPropertyNames(e),a=r.length;while(a-- >0)o=r[a],i&&!i(o,e,t)||s[o]||(t[o]=e[o],s[o]=!0);e=!1!==n&&O(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},re=(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const i=e.indexOf(t,n);return-1!==i&&i===n},ae=e=>{if(!e)return null;if(A(e))return e;let t=e.length;if(!$(t))return null;const n=new Array(t);while(t-- >0)n[t]=e[t];return n},oe=(e=>t=>e&&t instanceof e)("undefined"!==typeof Uint8Array&&O(Uint8Array)),se=(e,t)=>{const n=e&&e[Symbol.iterator],i=n.call(e);let r;while((r=i.next())&&!r.done){const n=r.value;t.call(e,n[0],n[1])}},le=(e,t)=>{let n;const i=[];while(null!==(n=e.exec(t)))i.push(n);return i},ue=E("HTMLFormElement"),ce=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),he=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),de=E("RegExp"),fe=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};J(n,((n,r)=>{let a;!1!==(a=t(n,r,e))&&(i[r]=a||n)})),Object.defineProperties(e,i)},pe=e=>{fe(e,((t,n)=>{if(M(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const i=e[n];M(i)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},me=(e,t)=>{const n={},i=e=>{e.forEach((e=>{n[e]=!0}))};return A(e)?i(e):i(String(e).split(t)),n},ve=()=>{},ge=(e,t)=>(e=+e,Number.isFinite(e)?e:t),ye="abcdefghijklmnopqrstuvwxyz",be="0123456789",_e={DIGIT:be,ALPHA:ye,ALPHA_DIGIT:ye+ye.toUpperCase()+be},xe=(e=16,t=_e.ALPHA_DIGIT)=>{let n="";const{length:i}=t;while(e--)n+=t[Math.random()*i|0];return n};function Se(e){return!!(e&&M(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])}const we=e=>{const t=new Array(10),n=(e,i)=>{if(L(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[i]=e;const r=A(e)?[]:{};return J(e,((e,t)=>{const a=n(e,i+1);!T(a)&&(r[t]=a)})),t[i]=void 0,r}}return e};return n(e,0)},Ce=E("AsyncFunction"),ke=e=>e&&(L(e)||M(e))&&M(e.then)&&M(e.catch);var Oe={isArray:A,isArrayBuffer:I,isBuffer:P,isFormData:U,isArrayBufferView:F,isString:j,isNumber:$,isBoolean:R,isObject:L,isPlainObject:B,isUndefined:T,isDate:V,isFile:z,isBlob:H,isRegExp:de,isFunction:M,isStream:G,isURLSearchParams:q,isTypedArray:oe,isFileList:W,forEach:J,merge:Z,extend:ee,trim:K,stripBOM:te,inherits:ne,toFlatObject:ie,kindOf:D,kindOfTest:E,endsWith:re,toArray:ae,forEachEntry:se,matchAll:le,isHTMLForm:ue,hasOwnProperty:he,hasOwnProp:he,reduceDescriptors:fe,freezeMethods:pe,toObjectSet:me,toCamelCase:ce,noop:ve,toFiniteNumber:ge,findKey:Y,global:Q,isContextDefined:X,ALPHABET:_e,generateString:xe,isSpecCompliantForm:Se,toJSONObject:we,isAsyncFn:Ce,isThenable:ke};__webpack_require__(541);function De(e,t,n,i,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),r&&(this.response=r)}Oe.inherits(De,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Oe.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Ee=De.prototype,Ne={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{Ne[e]={value:e}})),Object.defineProperties(De,Ne),Object.defineProperty(Ee,"isAxiosError",{value:!0}),De.from=(e,t,n,i,r,a)=>{const o=Object.create(Ee);return Oe.toFlatObject(e,o,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),De.call(o,e.message,t,n,i,r),o.cause=e,o.name=e.name,a&&Object.assign(o,a),o};var Ae=De,Te=null;function Pe(e){return Oe.isPlainObject(e)||Oe.isArray(e)}function Ie(e){return Oe.endsWith(e,"[]")?e.slice(0,-2):e}function Fe(e,t,n){return e?e.concat(t).map((function(e,t){return e=Ie(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}function je(e){return Oe.isArray(e)&&!e.some(Pe)}const Me=Oe.toFlatObject(Oe,{},null,(function(e){return/^is[A-Z]/.test(e)}));function $e(e,t,n){if(!Oe.isObject(e))throw new TypeError("target must be an object");t=t||new(Te||FormData),n=Oe.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Oe.isUndefined(t[e])}));const i=n.metaTokens,r=n.visitor||c,a=n.dots,o=n.indexes,s=n.Blob||"undefined"!==typeof Blob&&Blob,l=s&&Oe.isSpecCompliantForm(t);if(!Oe.isFunction(r))throw new TypeError("visitor must be a function");function u(e){if(null===e)return"";if(Oe.isDate(e))return e.toISOString();if(!l&&Oe.isBlob(e))throw new Ae("Blob is not supported. Use a Buffer instead.");return Oe.isArrayBuffer(e)||Oe.isTypedArray(e)?l&&"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,r){let s=e;if(e&&!r&&"object"===typeof e)if(Oe.endsWith(n,"{}"))n=i?n:n.slice(0,-2),e=JSON.stringify(e);else if(Oe.isArray(e)&&je(e)||(Oe.isFileList(e)||Oe.endsWith(n,"[]"))&&(s=Oe.toArray(e)))return n=Ie(n),s.forEach((function(e,i){!Oe.isUndefined(e)&&null!==e&&t.append(!0===o?Fe([n],i,a):null===o?n:n+"[]",u(e))})),!1;return!!Pe(e)||(t.append(Fe(r,n,a),u(e)),!1)}const h=[],d=Object.assign(Me,{defaultVisitor:c,convertValue:u,isVisitable:Pe});function f(e,n){if(!Oe.isUndefined(e)){if(-1!==h.indexOf(e))throw Error("Circular reference detected in "+n.join("."));h.push(e),Oe.forEach(e,(function(e,i){const a=!(Oe.isUndefined(e)||null===e)&&r.call(t,e,Oe.isString(i)?i.trim():i,n,d);!0===a&&f(e,n?n.concat(i):[i])})),h.pop()}}if(!Oe.isObject(e))throw new TypeError("data must be an object");return f(e),t}var Le=$e;function Re(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Be(e,t){this._pairs=[],e&&Le(e,this,t)}const Ve=Be.prototype;Ve.append=function(e,t){this._pairs.push([e,t])},Ve.toString=function(e){const t=e?function(t){return e.call(this,t,Re)}:Re;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var ze=Be;function He(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function We(e,t,n){if(!t)return e;const i=n&&n.encode||He,r=n&&n.serialize;let a;if(a=r?r(t,n):Oe.isURLSearchParams(t)?t.toString():new ze(t,n).toString(i),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}class Ge{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Oe.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}var Ue=Ge,qe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ke=(__webpack_require__(6229),__webpack_require__(7330),__webpack_require__(2062),"undefined"!==typeof URLSearchParams?URLSearchParams:ze),Je="undefined"!==typeof FormData?FormData:null,Ye="undefined"!==typeof Blob?Blob:null,Qe={isBrowser:!0,classes:{URLSearchParams:Ke,FormData:Je,Blob:Ye},protocols:["http","https","file","blob","url","data"]};const Xe="undefined"!==typeof window&&"undefined"!==typeof document,Ze=(e=>Xe&&["ReactNative","NativeScript","NS"].indexOf(e)<0)("undefined"!==typeof navigator&&navigator.product),et=(()=>"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts)();var tt={...e,...Qe};function nt(e,t){return Le(e,new tt.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,i){return tt.isNode&&Oe.isBuffer(e)?(this.append(t,e.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function it(e){return Oe.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}function rt(e){const t={},n=Object.keys(e);let i;const r=n.length;let a;for(i=0;i<r;i++)a=n[i],t[a]=e[a];return t}function at(e){function t(e,n,i,r){let a=e[r++];const o=Number.isFinite(+a),s=r>=e.length;if(a=!a&&Oe.isArray(i)?i.length:a,s)return Oe.hasOwnProp(i,a)?i[a]=[i[a],n]:i[a]=n,!o;i[a]&&Oe.isObject(i[a])||(i[a]=[]);const l=t(e,n,i[a],r);return l&&Oe.isArray(i[a])&&(i[a]=rt(i[a])),!o}if(Oe.isFormData(e)&&Oe.isFunction(e.entries)){const n={};return Oe.forEachEntry(e,((e,i)=>{t(it(e),i,n,0)})),n}return null}var ot=at;function st(e,t,n){if(Oe.isString(e))try{return(t||JSON.parse)(e),Oe.trim(e)}catch(i){if("SyntaxError"!==i.name)throw i}return(n||JSON.stringify)(e)}const lt={transitional:qe,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",i=n.indexOf("application/json")>-1,r=Oe.isObject(e);r&&Oe.isHTMLForm(e)&&(e=new FormData(e));const a=Oe.isFormData(e);if(a)return i&&i?JSON.stringify(ot(e)):e;if(Oe.isArrayBuffer(e)||Oe.isBuffer(e)||Oe.isStream(e)||Oe.isFile(e)||Oe.isBlob(e))return e;if(Oe.isArrayBufferView(e))return e.buffer;if(Oe.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(r){if(n.indexOf("application/x-www-form-urlencoded")>-1)return nt(e,this.formSerializer).toString();if((o=Oe.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Le(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return r||i?(t.setContentType("application/json",!1),st(e)):e}],transformResponse:[function(e){const t=this.transitional||lt.transitional,n=t&&t.forcedJSONParsing,i="json"===this.responseType;if(e&&Oe.isString(e)&&(n&&!this.responseType||i)){const n=t&&t.silentJSONParsing,a=!n&&i;try{return JSON.parse(e)}catch(r){if(a){if("SyntaxError"===r.name)throw Ae.from(r,Ae.ERR_BAD_RESPONSE,this,null,this.response);throw r}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:tt.classes.FormData,Blob:tt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Oe.forEach(["delete","get","head","post","put","patch"],(e=>{lt.headers[e]={}}));var ut=lt;const ct=Oe.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var ht=e=>{const t={};let n,i,r;return e&&e.split("\n").forEach((function(e){r=e.indexOf(":"),n=e.substring(0,r).trim().toLowerCase(),i=e.substring(r+1).trim(),!n||t[n]&&ct[n]||("set-cookie"===n?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)})),t};const dt=Symbol("internals");function ft(e){return e&&String(e).trim().toLowerCase()}function pt(e){return!1===e||null==e?e:Oe.isArray(e)?e.map(pt):String(e)}function mt(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;while(i=n.exec(e))t[i[1]]=i[2];return t}const vt=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function gt(e,t,n,i,r){return Oe.isFunction(i)?i.call(this,t,n):(r&&(t=n),Oe.isString(t)?Oe.isString(i)?-1!==t.indexOf(i):Oe.isRegExp(i)?i.test(t):void 0:void 0)}function yt(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}function bt(e,t){const n=Oe.toCamelCase(" "+t);["get","set","has"].forEach((i=>{Object.defineProperty(e,i+n,{value:function(e,n,r){return this[i].call(this,t,e,n,r)},configurable:!0})}))}class _t{constructor(e){e&&this.set(e)}set(e,t,n){const i=this;function r(e,t,n){const r=ft(t);if(!r)throw new Error("header name must be a non-empty string");const a=Oe.findKey(i,r);(!a||void 0===i[a]||!0===n||void 0===n&&!1!==i[a])&&(i[a||t]=pt(e))}const a=(e,t)=>Oe.forEach(e,((e,n)=>r(e,n,t)));return Oe.isPlainObject(e)||e instanceof this.constructor?a(e,t):Oe.isString(e)&&(e=e.trim())&&!vt(e)?a(ht(e),t):null!=e&&r(t,e,n),this}get(e,t){if(e=ft(e),e){const n=Oe.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return mt(e);if(Oe.isFunction(t))return t.call(this,e,n);if(Oe.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ft(e),e){const n=Oe.findKey(this,e);return!(!n||void 0===this[n]||t&&!gt(this,this[n],n,t))}return!1}delete(e,t){const n=this;let i=!1;function r(e){if(e=ft(e),e){const r=Oe.findKey(n,e);!r||t&&!gt(n,n[r],r,t)||(delete n[r],i=!0)}}return Oe.isArray(e)?e.forEach(r):r(e),i}clear(e){const t=Object.keys(this);let n=t.length,i=!1;while(n--){const r=t[n];e&&!gt(this,this[r],r,e,!0)||(delete this[r],i=!0)}return i}normalize(e){const t=this,n={};return Oe.forEach(this,((i,r)=>{const a=Oe.findKey(n,r);if(a)return t[a]=pt(i),void delete t[r];const o=e?yt(r):String(r).trim();o!==r&&delete t[r],t[o]=pt(i),n[o]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Oe.forEach(this,((n,i)=>{null!=n&&!1!==n&&(t[i]=e&&Oe.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=this[dt]=this[dt]={accessors:{}},n=t.accessors,i=this.prototype;function r(e){const t=ft(e);n[t]||(bt(i,e),n[t]=!0)}return Oe.isArray(e)?e.forEach(r):r(e),this}}_t.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Oe.reduceDescriptors(_t.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),Oe.freezeMethods(_t);var xt=_t;function St(e,t){const n=this||ut,i=t||n,r=xt.from(i.headers);let a=i.data;return Oe.forEach(e,(function(e){a=e.call(n,a,r.normalize(),t?t.status:void 0)})),r.normalize(),a}function wt(e){return!(!e||!e.__CANCEL__)}function Ct(e,t,n){Ae.call(this,null==e?"canceled":e,Ae.ERR_CANCELED,t,n),this.name="CanceledError"}Oe.inherits(Ct,Ae,{__CANCEL__:!0});var kt=Ct;__webpack_require__(2801);function Ot(e,t,n){const i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(new Ae("Request failed with status code "+n.status,[Ae.ERR_BAD_REQUEST,Ae.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}var Dt=tt.hasStandardBrowserEnv?{write(e,t,n,i,r,a){const o=[e+"="+encodeURIComponent(t)];Oe.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),Oe.isString(i)&&o.push("path="+i),Oe.isString(r)&&o.push("domain="+r),!0===a&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Et(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Nt(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function At(e,t){return e&&!Et(t)?Nt(e,t):t}var Tt=tt.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function i(n){let i=n;return e&&(t.setAttribute("href",i),i=t.href),t.setAttribute("href",i),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=i(window.location.href),function(e){const t=Oe.isString(e)?i(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return function(){return!0}}();function Pt(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function It(e,t){e=e||10;const n=new Array(e),i=new Array(e);let r,a=0,o=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),u=i[o];r||(r=l),n[a]=s,i[a]=l;let c=o,h=0;while(c!==a)h+=n[c++],c%=e;if(a=(a+1)%e,a===o&&(o=(o+1)%e),l-r<t)return;const d=u&&l-u;return d?Math.round(1e3*h/d):void 0}}var Ft=It;function jt(e,t){let n=0;const i=Ft(50,250);return r=>{const a=r.loaded,o=r.lengthComputable?r.total:void 0,s=a-n,l=i(s),u=a<=o;n=a;const c={loaded:a,total:o,progress:o?a/o:void 0,bytes:s,rate:l||void 0,estimated:l&&o&&u?(o-a)/l:void 0,event:r};c[t?"download":"upload"]=!0,e(c)}}const Mt="undefined"!==typeof XMLHttpRequest;var $t=Mt&&function(e){return new Promise((function(t,n){let i=e.data;const r=xt.from(e.headers).normalize();let a,o,{responseType:s,withXSRFToken:l}=e;function u(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}if(Oe.isFormData(i))if(tt.hasStandardBrowserEnv||tt.hasStandardBrowserWebWorkerEnv)r.setContentType(!1);else if(!1!==(o=r.getContentType())){const[e,...t]=o?o.split(";").map((e=>e.trim())).filter(Boolean):[];r.setContentType([e||"multipart/form-data",...t].join("; "))}let c=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";r.set("Authorization","Basic "+btoa(t+":"+n))}const h=At(e.baseURL,e.url);function d(){if(!c)return;const i=xt.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),r=s&&"text"!==s&&"json"!==s?c.response:c.responseText,a={data:r,status:c.status,statusText:c.statusText,headers:i,config:e,request:c};Ot((function(e){t(e),u()}),(function(e){n(e),u()}),a),c=null}if(c.open(e.method.toUpperCase(),We(h,e.params,e.paramsSerializer),!0),c.timeout=e.timeout,"onloadend"in c?c.onloadend=d:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(d)},c.onabort=function(){c&&(n(new Ae("Request aborted",Ae.ECONNABORTED,e,c)),c=null)},c.onerror=function(){n(new Ae("Network Error",Ae.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const i=e.transitional||qe;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new Ae(t,i.clarifyTimeoutError?Ae.ETIMEDOUT:Ae.ECONNABORTED,e,c)),c=null},tt.hasStandardBrowserEnv&&(l&&Oe.isFunction(l)&&(l=l(e)),l||!1!==l&&Tt(h))){const t=e.xsrfHeaderName&&e.xsrfCookieName&&Dt.read(e.xsrfCookieName);t&&r.set(e.xsrfHeaderName,t)}void 0===i&&r.setContentType(null),"setRequestHeader"in c&&Oe.forEach(r.toJSON(),(function(e,t){c.setRequestHeader(t,e)})),Oe.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),s&&"json"!==s&&(c.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&c.addEventListener("progress",jt(e.onDownloadProgress,!0)),"function"===typeof e.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",jt(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=t=>{c&&(n(!t||t.type?new kt(null,e,c):t),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const f=Pt(h);f&&-1===tt.protocols.indexOf(f)?n(new Ae("Unsupported protocol "+f+":",Ae.ERR_BAD_REQUEST,e)):c.send(i||null)}))};const Lt={http:Te,xhr:$t};Oe.forEach(Lt,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}}));const Rt=e=>`- ${e}`,Bt=e=>Oe.isFunction(e)||null===e||!1===e;var Vt={getAdapter:e=>{e=Oe.isArray(e)?e:[e];const{length:t}=e;let n,i;const r={};for(let a=0;a<t;a++){let t;if(n=e[a],i=n,!Bt(n)&&(i=Lt[(t=String(n)).toLowerCase()],void 0===i))throw new Ae(`Unknown adapter '${t}'`);if(i)break;r[t||"#"+a]=i}if(!i){const e=Object.entries(r).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let n=t?e.length>1?"since :\n"+e.map(Rt).join("\n"):" "+Rt(e[0]):"as no adapter specified";throw new Ae("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return i},adapters:Lt};function zt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new kt(null,e)}function Ht(e){zt(e),e.headers=xt.from(e.headers),e.data=St.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);const t=Vt.getAdapter(e.adapter||ut.adapter);return t(e).then((function(t){return zt(e),t.data=St.call(e,e.transformResponse,t),t.headers=xt.from(t.headers),t}),(function(t){return wt(t)||(zt(e),t&&t.response&&(t.response.data=St.call(e,e.transformResponse,t.response),t.response.headers=xt.from(t.response.headers))),Promise.reject(t)}))}const Wt=e=>e instanceof xt?e.toJSON():e;function Gt(e,t){t=t||{};const n={};function i(e,t,n){return Oe.isPlainObject(e)&&Oe.isPlainObject(t)?Oe.merge.call({caseless:n},e,t):Oe.isPlainObject(t)?Oe.merge({},t):Oe.isArray(t)?t.slice():t}function r(e,t,n){return Oe.isUndefined(t)?Oe.isUndefined(e)?void 0:i(void 0,e,n):i(e,t,n)}function a(e,t){if(!Oe.isUndefined(t))return i(void 0,t)}function o(e,t){return Oe.isUndefined(t)?Oe.isUndefined(e)?void 0:i(void 0,e):i(void 0,t)}function s(n,r,a){return a in t?i(n,r):a in e?i(void 0,n):void 0}const l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(e,t)=>r(Wt(e),Wt(t),!0)};return Oe.forEach(Object.keys(Object.assign({},e,t)),(function(i){const a=l[i]||r,o=a(e[i],t[i],i);Oe.isUndefined(o)&&a!==s||(n[i]=o)})),n}const Ut="1.6.2",qt={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{qt[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const Kt={};function Jt(e,t,n){if("object"!==typeof e)throw new Ae("options must be an object",Ae.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let r=i.length;while(r-- >0){const a=i[r],o=t[a];if(o){const t=e[a],n=void 0===t||o(t,a,e);if(!0!==n)throw new Ae("option "+a+" must be "+n,Ae.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Ae("Unknown option "+a,Ae.ERR_BAD_OPTION)}}qt.transitional=function(e,t,n){function i(e,t){return"[Axios v"+Ut+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,r,a)=>{if(!1===e)throw new Ae(i(r," has been removed"+(t?" in "+t:"")),Ae.ERR_DEPRECATED);return t&&!Kt[r]&&(Kt[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,a)}};var Yt={assertOptions:Jt,validators:qt};const Qt=Yt.validators;class Xt{constructor(e){this.defaults=e,this.interceptors={request:new Ue,response:new Ue}}request(e,t){"string"===typeof e?(t=t||{},t.url=e):t=e||{},t=Gt(this.defaults,t);const{transitional:n,paramsSerializer:i,headers:r}=t;void 0!==n&&Yt.assertOptions(n,{silentJSONParsing:Qt.transitional(Qt.boolean),forcedJSONParsing:Qt.transitional(Qt.boolean),clarifyTimeoutError:Qt.transitional(Qt.boolean)},!1),null!=i&&(Oe.isFunction(i)?t.paramsSerializer={serialize:i}:Yt.assertOptions(i,{encode:Qt.function,serialize:Qt.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=r&&Oe.merge(r.common,r[t.method]);r&&Oe.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete r[e]})),t.headers=xt.concat(a,r);const o=[];let s=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,o.unshift(e.fulfilled,e.rejected))}));const l=[];let u;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let c,h=0;if(!s){const e=[Ht.bind(this),void 0];e.unshift.apply(e,o),e.push.apply(e,l),c=e.length,u=Promise.resolve(t);while(h<c)u=u.then(e[h++],e[h++]);return u}c=o.length;let d=t;h=0;while(h<c){const e=o[h++],t=o[h++];try{d=e(d)}catch(f){t.call(this,f);break}}try{u=Ht.call(this,d)}catch(f){return Promise.reject(f)}h=0,c=l.length;while(h<c)u=u.then(l[h++],l[h++]);return u}getUri(e){e=Gt(this.defaults,e);const t=At(e.baseURL,e.url);return We(t,e.params,e.paramsSerializer)}}Oe.forEach(["delete","get","head","options"],(function(e){Xt.prototype[e]=function(t,n){return this.request(Gt(n||{},{method:e,url:t,data:(n||{}).data}))}})),Oe.forEach(["post","put","patch"],(function(e){function t(t){return function(n,i,r){return this.request(Gt(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}Xt.prototype[e]=t(),Xt.prototype[e+"Form"]=t(!0)}));var Zt=Xt;class en{constructor(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;while(t-- >0)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const i=new Promise((e=>{n.subscribe(e),t=e})).then(e);return i.cancel=function(){n.unsubscribe(t)},i},e((function(e,i,r){n.reason||(n.reason=new kt(e,i,r),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;const t=new en((function(t){e=t}));return{token:t,cancel:e}}}var tn=en;function nn(e){return function(t){return e.apply(null,t)}}function rn(e){return Oe.isObject(e)&&!0===e.isAxiosError}const an={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(an).forEach((([e,t])=>{an[t]=e}));var on=an;function sn(e){const t=new Zt(e),n=C(Zt.prototype.request,t);return Oe.extend(n,Zt.prototype,t,{allOwnKeys:!0}),Oe.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return sn(Gt(e,t))},n}const ln=sn(ut);ln.Axios=Zt,ln.CanceledError=kt,ln.CancelToken=tn,ln.isCancel=wt,ln.VERSION=Ut,ln.toFormData=Le,ln.AxiosError=Ae,ln.Cancel=ln.CanceledError,ln.all=function(e){return Promise.all(e)},ln.spread=nn,ln.isAxiosError=rn,ln.mergeConfig=Gt,ln.AxiosHeaders=xt,ln.formToJSON=e=>ot(Oe.isHTMLForm(e)?new FormData(e):e),ln.getAdapter=Vt.getAdapter,ln.HttpStatusCode=on,ln.default=ln;var un=ln,cn=__webpack_require__(5824);un.defaults.headers["Content-Type"]="application/json;charset=utf-8";const hn=un.create({baseURL:"/customer-api",timeout:1e4});hn.interceptors.request.use((e=>e),(e=>{Promise.reject(e)})),hn.interceptors.response.use((e=>e.data),(e=>{let{message:t}=e;return"Network Error"==t?t="后端接口连接异常":t.includes("timeout")?t="系统接口请求超时":t.includes("Request failed with status code")&&(t="系统接口"+t.substr(t.length-3)+"异常"),(0,cn.Message)({message:t,type:"error",duration:5e3}),Promise.reject(e)}));var dn=hn;function fn(e){return dn({url:"/aiService/discourse/getProblemTypeAndProblem/"+e,method:"GET"})}function pn(e){return dn({url:"/aiService/discourse/findDataByProblem",method:"POST",data:e})}function mn(e){return dn({url:"/aiService/discourse/findMaxNumData/"+e,method:"GET"})}var vn={props:{visible:Boolean,jumpPage:String,title:String,commit:String,id:{default:0,type:Number}},data(){return{textareaValue:"",regular:[],messagelist:[{id:"admin",msg:["您好,很高兴为你服务!"],isActive:!1}],isActive:!1}},computed:{questions(){return JSON.parse(this.json)}},methods:{close(){this.$emit("update:visible",!1)},carriageReturn(){let e=window.event||arguments[0];"Enter"!=e.key&&"Enter"!=e.code&&13!=e.keyCode||!this.textareaValue||this.send()},send(){this.textareaValue.replace(/[^\w\u4E00-\u9FA5]/g,"")&&(this.add(this.textareaValue,"personal",(()=>{this.textareaValue=""})),this.search(this.textareaValue))},regularClick(e){this.add(e),this.search(e)},search(e){pn({problem:e.replace(/\n/g,""),aiServiceId:1}).then((e=>{this.add(e?.data?.answer||"您好","admin",null,e?.data?.based)}))},add(e,t="personal",n,i=""){this.messagelist.push({id:t,msg:Array.isArray(e)?e:[e],based:i,isActive:!1}),this.$nextTick((()=>{n&&n(),this.$refs.main.scrollTop=this.$refs.main.scrollHeight}))},enlarge(){window.open(this.jumpPage,"_blank")},handExpand(e){e.isActive=!e.isActive}}},gn={name:"ChatMini",mixins:[vn],watch:{id(e){this.findMaxNumData(e)}},created(){this.findMaxNumData(this.id)},methods:{findMaxNumData(e){e&&mn(e).then((({data:e})=>{this.regular=e.map((e=>e.problem))}))}}},yn=gn,bn=f(yn,S,w,!1,null,"4d4d12d8",null),_n=bn.exports,xn={name:"YcCustomerService",components:{chatVue:_n},props:{jumpPage:String,title:String,id:Number},data(){return{visible:!1}},computed:{hasSlot(){return Boolean(this.$slots.default)}},watch:{$route(e){e.path!=this.jumpPage?this.$refs.customer.style.display="block":this.$refs.customer.style.display="none"}},mounted(){this.$refs.customer.style.display="block"}},Sn=xn,wn=f(Sn,_,x,!1,null,"20a37cb1",null),Cn=wn.exports,kn=function(){var e=this,t=e._self._c;return t("div",{staticClass:"YcQuestion"},[t("div",{staticClass:"chatPage"},[t("header",{staticStyle:{background:"url(/cloud-img/customerService/chatTop.png) center","background-size":"cover"}},[t("div",[t("h3",[e._v(e._s(e.title))]),t("span",[e._v("Problem Help")])]),t("p",[e._v(e._s(e.commit))])]),t("div",{staticClass:"main"},[t("div",[t("main",{ref:"main"},[t("p",[e._v("今天"+e._s(e.currData))]),e._l(e.messagelist,(function(n,i){return t("div",{key:i,class:["message",n.id]},[t("img",{staticClass:"avatar",attrs:{src:__webpack_require__(7021)(`./${n.id}.jpg`)}}),t("div",{staticClass:"content",attrs:{"data-before":`${e.title}【${e.id}号为您服务】`}},[e._l(n.msg,(function(i,r){return t("span",{key:i+r,class:n.msg.length>1?"href":"",domProps:{innerHTML:e._s((n.msg.length>1?1+r+". ":" ")+i)},on:{click:function(t){n.msg.length>1&&e.regularClick(i)}}})})),n.based?t("div",{staticClass:"based",on:{click:function(t){return t.preventDefault(),e.handExpand(n)}}},[t("span",[e._v("依据")]),t("span",{class:{"is-active":n.isActive}},[e._v(e._s(n.based)),t("i",{staticClass:"el-icon-d-arrow-right"})])]):e._e()],2)])}))],2),t("footer",[t("el-input",{attrs:{type:"textarea",maxlength:"500",autosize:{minRows:6,maxRows:6},autofocus:"true",resize:"none",placeholder:"请输入你要咨询的问题"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.carriageReturn.apply(null,arguments)}},model:{value:e.textareaValue,callback:function(t){e.textareaValue=t},expression:"textareaValue"}}),t("el-button",{style:e.textareaValue?"":"background-color: #F7F7F9;color: #FF575F;border-color: transparent;",attrs:{type:"primary",disabled:!e.textareaValue},on:{click:e.send}},[e._v("发送")])],1)]),t("aside",[t("el-collapse",{attrs:{accordion:""},model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},e._l(e.questionsList,(function({discourseVoList:n,answerTypeId:i,answerType:r}){return t("el-collapse-item",{key:i,attrs:{name:i}},[t("template",{slot:"title"},[t("img",{attrs:{src:__webpack_require__(4800)}}),e._v(e._s(r)+" ")]),e._l(n,(function({problem:n,problemId:i}){return t("div",{key:i,domProps:{innerHTML:e._s(n)},on:{click:function(t){return e.regularClick(n)}}})}))],2)})),1)],1)])])])},On=[],Dn={name:"YcQuestion",mixins:[vn],data(){return{activeNames:[1],questionsList:[]}},computed:{currData(){const e=new Date;return`${e.getHours()}:${e.getMinutes()}`}},watch:{id(e){this.getProblemTypeAndProblem(e)}},created(){this.getProblemTypeAndProblem(this.id)},methods:{getProblemTypeAndProblem(e){e&&fn(e).then((({data:e})=>{this.questionsList=e}))}}},En=Dn,Nn=f(En,kn,On,!1,null,"3f6d4c7a",null),An=Nn.exports,Tn=function(){var e=this,t=e._self._c;return t("div",[t("el-form",{ref:"loginForm",staticClass:"login-form",attrs:{model:e.loginForm,rules:e.loginRules}},[void 0==e.loginForm.username?t("div",{staticClass:"ca-bg-box"},[t("div",{staticClass:"ca-bg-img"}),t("div",{staticClass:"ca-bg-text"},[e._v("请插入UKEY证书")]),t("img",{staticClass:"ca-refresh",class:{start:e.caLoading},attrs:{src:__webpack_require__(3379),alt:""},on:{click:e.caRead}})]):t("div",{staticClass:"ca-bg-info"},[t("div",{staticClass:"ca-bg-text"},[e._v(" CA名称:"),t("span",{staticClass:"caName"},[e._v(e._s(e.loginForm.username))])]),t("img",{staticClass:"ca-refresh",class:{start:e.caLoading},attrs:{src:__webpack_require__(3379),alt:""},on:{click:e.caRead}})]),t("el-form-item",{attrs:{prop:"password"}},[t("el-input",{attrs:{type:"password","auto-complete":"off",placeholder:"密码","show-password":""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleLogin.apply(null,arguments)}},model:{value:e.loginForm.password,callback:function(t){e.$set(e.loginForm,"password",t)},expression:"loginForm.password"}},[t("img",{staticClass:"el-input__icon input-icon",attrs:{slot:"prefix",src:__webpack_require__(3284)},slot:"prefix"})])],1),t("el-form-item",[t("el-button",{staticClass:"login-btn",staticStyle:{width:"100%"},attrs:{loading:e.loading,size:"medium",type:"primary"},nativeOn:{click:function(t){return t.preventDefault(),e.handleLogin.apply(null,arguments)}}},[e.loading?t("span",[e._v("登 录 中...")]):t("span",[e._v("登 录")])])],1),e._t("default")],2),t("el-dialog",{attrs:{title:"提示",visible:e.dialogVisible.showInfo,width:"30%",center:""},on:{"update:visible":function(t){return e.$set(e.dialogVisible,"showInfo",t)}}},[t("span",{staticStyle:{color:"red"}},[e._v(e._s(e.caInfo.error_text))]),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:function(t){e.dialogVisible.showInfo=!1}}},[e._v("取 消")]),t("el-button",{attrs:{type:"primary"},on:{click:function(t){e.dialogVisible.showInfo=!1}}},[e._v("确 定")])],1)])],1)},Pn=[],In=__webpack_require__(353),Fn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function jn(e){var t,n,i,r,a,o,s,l="",u=0;e=Mn(e);while(u<e.length)t=e.charCodeAt(u++),n=e.charCodeAt(u++),i=e.charCodeAt(u++),r=t>>2,a=(3&t)<<4|n>>4,o=(15&n)<<2|i>>6,s=63&i,isNaN(n)?o=s=64:isNaN(i)&&(s=64),l=l+Fn.charAt(r)+Fn.charAt(a)+Fn.charAt(o)+Fn.charAt(s);return l}function Mn(e){var t=""+e;t=t.replace(/\r\n/g,"\n");for(var n="",i=0;i<t.length;i++){var r=t.charCodeAt(i);r<128?n+=String.fromCharCode(r):r>127&&r<2048?(n+=String.fromCharCode(r>>6|192),n+=String.fromCharCode(63&r|128)):(n+=String.fromCharCode(r>>12|224),n+=String.fromCharCode(r>>6&63|128),n+=String.fromCharCode(63&r|128))}return n}function $n(){var e=new In.R("mTokenPlugin"),t=null;t="Win32"==navigator.platform||"Windows"==navigator.platform?Array("GM3000","HT","SJK1137"):Array("HT");var n="",i=0,r=1,a=1;let o=1025;var s="1234567812345678",l="控件加载失败,错误码:",u="未找到UKey!\n1.请确认是否安装最新驱动!\n2.计算机是否插入湖南CA UKey!",c="USBKey实例化失败,请确认此UKey是否插入计算机!\n点击‘刷新’按钮,更新设备列表。\n错误码:",h="Ukey密码必须为4~16位!",d="UKey密码错误",f="UKey密码修改失败",p="UKey不存在,请确认此UKey是否插入计算机,并点击'刷新'按钮,更新设备列表!",m="请点击‘刷新’按钮,更新设备列表并选择相应设备!",v="证书获取失败,请加检测Key中是否存在证书!",g="设置摘要算法失败,请重新刷新浏览器!",y="设置用户ID失败,请重新刷新浏览器",b="签名失败,待签名原文不能为空",_="签名失败,返回错误码:",x="请点击‘刷新’按钮,更新设备列表并选择相应设备!",S="证书G项信息转化证书名称失败,请点击“刷新”按钮!",w="加载国密库失败!",C="加密失败:待加密原文不能为空!",k="解密失败:待解密密文不能为空!",O="解密失败:请确认密文是否完整!\n解密所采用的Ukey是否为加密时的Ukey!",D="申请解锁请求失败!",E="此型号Ukey不支持解锁!",N="Ukey解锁失败!",A=null,T=null,P=null,I=null,F=null,j=null,M=null,$=null;function L(t){var i=0;return"GM3000"==t?i=e.SOF_LoadLibrary(e.GM3000):"HT"==t?i=e.SOF_LoadLibrary(e.HT):"SJK1137"==t&&(i=e.SOF_LoadLibrary(e.SJK1137)),0==i||(n=l+e.SOF_GetLastError(),!1)}function R(){var t="";return t=e.SOF_EnumDevice(),null==t||0==t.length?(n=u,null):t}function B(t){var i=0;return i=e.SOF_GetDeviceInstance(t,""),0==i||(n=c+e.SOF_GetLastError(),!1)}function V(){var t="";return t=e.SOF_GetUserList(),null==t||0==t.length?(n="USBkey中未找到证书!",null):t}function z(t){var i=0,r=""+t,a=0;return null==r||0==r.length||r.length<4||r.length>16?(n=h,!1):(i=e.SOF_Login(r),0==i||(a=W(),n=a>0?d+",还剩 "+a+" 次重试机会!":"UKey已经锁死,请联系管理员进行解锁!",!1))}function H(t,i){var r=0,a=""+t,o=""+i,s=0;return null==a||0==a.length||null==o||0==o.length||a.length<4||a.length>16||o.length<4||o.length>16?(n=h,!1):(r=e.SOF_ChangePassWd(a,o),0==r||(s=W(),n=s>0?f+",还剩 "+s+" 次重试机会!":"UKey已经锁死,请联系管理员进行解锁!",!1))}function W(){var t=0;return t=e.SOF_GetPinRetryCount(),t}function G(){var t=null;return t=e.SOF_GetDeviceInfo(e.SGD_DEVICE_SERIAL_NUMBER),t}function U(t,i){var r;return r=e.SOF_ExportUserCert(t,i),null==r||0==r.length?(n=v,null):r}function q(t,i){var r=1;return void 0==t||null==t?(n="请设置加密方式!",!1):(r=e.SOF_SetEncryptMethodAndIV(t,jn(i)),0==r||(n=e.SOF_GetLastError(),!1))}function K(t){var i=0;return i=e.SOF_SetDigestMethod(t),0==i||(n=g,!1)}function J(){var t=0;return t=e.SOF_SetUserID(s),0==t||(n=y,!1)}function Y(t,i){var r="",a="",o="";return o=""+i,0==o.length?(n=C,""):(a=jn(o),r=e.SOF_EncryptDataPKCS7(t,a,i.length),null==r||0==r.length?(n="加密失败,"+e.SOF_GetLastError(),""):r)}function Q(t,i,r){var a="",o="";if(a=""+r,null==t||0==t.length)return n="应用名称不能为空!","";if(0==a.length)return n=k,"";try{o=e.SOF_DecryptDataPKCS7(t,i,a)}catch(s){o=""}return void 0==o||null==o||""==o?(n=O,""):o}function X(t,i,r,a){var o=null,s=null,l=""+r;return null==l||0==l.length?(n=b,!1):(s=jn(l),o=e.SOF_SignData(t,i,jn(s),s.length),null==o||0==o.length?(n=_+SOF_GetLastError(),!1):(P=a,T=o,!0))}function Z(t){var n,i,r=null,a=null,o=null,s=null,l=null;if(null==t||0==t.length)return!1;F="",I="",j="",r=e.SOF_GetCertInfo(t,e.SGD_CERT_SERIAL),I=se(r),a=e.SOF_GetCertInfo(t,e.SGD_CERT_SUBJECT),j=a,s=e.SOF_GetCertInfo(t,e.SGD_CERT_VALID_TIME),M=s,l=e.SOF_GetCertInfo(t,e.SGD_CERT_NOT_BEFORE),$=l,o=a.split(",");for(var u=0;u<o.length;u++)if(-1!=o[u].indexOf("=")&&(n=o[u].split("=")[0],i=o[u].split("=")[1],"GN"==n)){F=i;break}return!0}function ee(){e.SOF_LogOut()}function te(){var t=e.SOF_GenRemoteUnblockRequest();return null==t||""==t?(n=D,""):t}function ne(t){var i=!1;return null==t||0==t.length?(n="解锁失败解:响应不能为空!",!1):(i=e.SOF_RemoteUnblockPIN(t),0==i||(n=N,!1))}function ie(e,t,n){var i=[],r=Math.max(e.length,t.length),a=0,o=0;while(o<r||a){var s=o<e.length?e[o]:0,l=o<t.length?t[o]:0,u=a+s+l;i.push(u%n),a=Math.floor(u/n),o++}return i}function re(e,t,n){if(e<0)return null;if(0==e)return[];var i=[],r=t;while(1){if(1&e&&(i=ie(i,r,n)),e>>=1,0===e)break;r=ie(r,r,n)}return i}function ae(e,t){for(var n=e.split(""),i=[],r=n.length-1;r>=0;r--){var a=parseInt(n[r],t);if(isNaN(a))return null;i.push(a)}return i}function oe(e,t,n){var i=ae(e,t);if(null===i)return null;for(var r=[],a=[1],o=0;o<i.length;o++)i[o]&&(r=ie(r,re(i[o],a,n),n)),a=re(t,a,n);var s="";for(let l=r.length-1;l>=0;l--)s+=r[l].toString(n);return s}function se(e){return"0x"===e.substring(0,2)&&(e=e.substring(2)),e=e.toLowerCase(),oe(e,16,10)}this.Hunca_GetLastError=function(){return n},this.Hunca_GetUserList=function(){var e=null,i=null,r=null,a=null;P=null,T=null,A=new Array;for(var o=0;o<t.length;o++){var s=t[o];if(L(s)&&(e=R(),null!=e))for(var l=0;l<e.length;l++){var c=new Object;if(!B(e[l]))break;a=V(),null==a&&0==a.length||(i=a[0][1],r=a[0][0],c.libraryName=s,c.serial=e[l],c.userName=r,c.containerName=i,A.push(c),ee())}}var h=new Array;for(let t=0;t<A.length;t++)h[t]=A[t].userName;return 0==h.length?(n=u,""):h},this.Hunca_GetUserListGN=function(){var e=null,n=null,i=null,a=null,o=null,s="";A=new Array;for(var l=0;l<t.length;l++){var c=t[l];if(L(c)&&(e=R(),null!=e))for(var h=0;h<e.length;h++){F=null,I=null,s=e[h];var d=new Object;if(!B(s))break;a=V(),null==a&&0==a.length||(n=a[0][1],i=a[0][0],d.libraryName=c,d.serial=e[h],d.userName=i,d.containerName=n,o=U(d.containerName,r),Z(o)&&(d.subjectGN=F,A.push(d),ee()))}}var f=new Array;for(let t=0;t<A.length;t++)f[t]=A[t].subjectGN;return 0==f.length?(u,""):f},this.Hunca_userNameGNToUserName=function(e){var t=null;n="",null!=e&&0!=e.length||(n=x);for(var i=0;i<A.length;i++)if(e==A[i].subjectGN){t=A[i].userName;break}return null==t||0==t.length?(n=S,null):t},this.Hunca_GenRemoteUnblockRequest=function(e){var t=null,i=null,r="";if(n="",null==e||null==e.length)return n=m,!1;if(null==A||0==A.length)return n=u,!1;for(var a=0;a<A.length;a++)if(i=A[a],i.userName==e){t=i;break}return null==t?(n=p,!1):"GM3000"!=t.libraryName?(n=E,!1):L(t.libraryName)?!!B(t.serial)&&(null!=V()&&(r=te(),r)):(n=w,!1)},this.HUnca_GetDeviceNumber=function(e){var t=null;if(null==e||null==e.length)return n=m,!1;if(null==A||0==A.length)return n=u,!1;for(var i=0;i<A.length;i++){let t=A[i];if(t.userName==e){tokenInfo=t;break}}return null==tokenInfo?(n=p,!1):L(tokenInfo.libraryName)?!!B(tokenInfo.serial)&&(t=G(),t+""):(n=w,!1)},this.Hunca_RemoteUnlockPIN=function(e,t){var i=null,r=null,a=!1;if(n="",null==e||null==e.length)return n=m,!1;if(null==A||0==A.length)return n=u,!1;for(var o=0;o<A.length;o++)if(r=A[o],r.userName==e){i=r;break}return null==i?(n=p,!1):"GM3000"!=i.libraryName?(n=E,!1):L(i.libraryName)?!!B(i.serial)&&(null!=V()&&(a=ne(t),a)):(n=w,!1)},this.Hunca_ChangeUserPin=function(e,t,i){var r=null,a=null;if(n="",null==e||null==e.length)return n=m,!1;if(null==A||0==A.length)return n=u,!1;for(var o=0;o<A.length;o++)if(a=A[o],a.userName==e){r=a;break}return null==r?(n=p,!1):(L(r.libraryName)||(n=w),!!B(r.serial)&&(!!H(t,i)&&(ee(),!0)))},this.Hunca_PKCS1=function(e,t,n){var i=null,o=null,s=null;new Object;if(null==t||null==t.length)return m,!1;if(null==A||0==A.length)return u,!1;for(var l=0;l<A.length;l++)if(o=A[l],o.userName==t){i=o;break}return null==i?(p,!1):(L(i.libraryName)||w,!!B(i.serial)&&(!!z(n)&&(s=U(i.containerName,r),null!=s&&(!!K(a)&&(!!J()&&(!!X(i.containerName,a,e,s)&&(!!Z(s)&&(ee(),!0))))))))},this.Hunca_GetSignData=function(){return T},this.Hunca_GetSignCert=function(){return P},this.Hunca_GetSignCertSn=function(){return I},this.Hunca_GetSignCertSubject=function(){return j},this.Hunca_GetValidTime=function(){return M},this.HUnca_GetNotBeforeTime=function(){return $},this.Hunca_DealCertInfo=function(e){var t=null,i=null,a=null;if(n="",signResultInfo=null,certInfo=new Object,null==e||null==e.length)return n=m,!1;if(null==A||0==A.length)return n=u,!1;for(var o=0;o<A.length;o++)if(i=A[o],i.userName==e){t=i;break}return null==t?(n=p,!1):L(t.libraryName)?!!B(t.serial)&&(a=U(t.containerName,r),null!=a&&0!=a.length&&(Z(a),ee(),!0)):(n=w,!1)},this.Hunca_EncryptDataPKCS7=function(e,t,n,r){var a=null,s=null,l=null,c="",h="";new Object;if(null==t||null==t.length)return m,"";if(null==A||0==A.length)return u,"";for(var d=0;d<A.length;d++)if(s=A[d],s.userName==t){a=s;break}return null==a?(p,""):L(a.libraryName)?B(a.serial)?(l=U(a.containerName,i),null==l||0==l.length?"":(c=n+"",h=r+"",null!=c&&0!=c.length||(c=o,h=""),q(c,h)?(encryptData=Y(l,e),ee(),encryptData):"")):"":(w,"")},this.Hunca_DecryptDataPKCS7=function(e,t,n,r,a){var s=null,l=null,c="",h="",d="",f="",v="";new Object;if(d=""+e,null==t||null==t.length)return m,"";if(null==A||0==A.length)return u,"";for(var g=0;g<A.length;g++)if(l=A[g],l.userName==t){s=l;break}if(null==s)return p,"";if(!L(s.libraryName))return w,"";if(!B(s.serial))return"";if(!z(n))return"";if(c=r+"",h=a+"",null!=c&&0!=c.length||(c=o,h=""),!q(c,h))return"";if(f=Q(s.containerName,i,d),0==f.length)return"";try{v=_Base64decode(f)}catch(y){v=f,"解密失败:Base64解码失败"}return v}}__webpack_require__(9343);function Ln(e){let t=e.slice(0,4),n=e.slice(4,6),i=e.slice(6,8),r=e.slice(8,10),a=e.slice(10,12),o=e.slice(12);return`${t}-${n}-${i} ${r}:${a}:${o}`}var Rn={name:"YcCA",props:{region:{type:Number,default:0}},data(){return{form:{},caInfo:{error_text:"",have_error_info:!1},loginForm:{username:"",password:"",uuid:"",caInfo:""},dialogVisible:{ca:!1,showInfo:!1},loginRules:{password:[{required:!0,trigger:"blur",message:"请输入您的密码"}]},loading:!1,caLoading:!1}},computed:{isBJCA(){return 1==this.region}},watch:{region(){this.caRead()}},created(){},methods:{caRead(){if(this.isBJCA)this.caReadBeijin();else{window.mToken=new $n;let e=window.mToken.Hunca_GetUserListGN();this.loginForm.username=e[0]}},async caReadBeijin(){if(this.caLoading)return;this.caLoading=!0,setTimeout((()=>{this.caLoading=!1}),1e3);let e=await new Promise((e=>{window.SOF_GetUserList((function(t){e(t)}))}));this.loginForm.username=e.retVal.split("||")[0]},caLogin(e){switch(e){case 0:this.HNCALogin();break;default:this.$message({type:"warning",message:"请选择CA平台!!!"})}},HNCALogin(){window.mToken=new $n,this.loginForm.username=window.mToken.Hunca_GetUserListGN();let e=window.mToken.Hunca_userNameGNToUserName(this.loginForm.username[0]),t=Math.random();if(!window.mToken.Hunca_PKCS1(t,e,this.loginForm.password))return this.caInfo.error_text=window.mToken.Hunca_GetLastError(),this.caInfo.have_error_info=!0,this.dialogVisible.showInfo=!0,!1;this.ca_cert=window.mToken.Hunca_GetSignCert(),this.sign=window.mToken.Hunca_GetSignData(),this.certSn=window.mToken.Hunca_GetSignCertSn(),this.cert_subject=window.mToken.Hunca_GetSignCertSubject(),this.cert_validTime=window.mToken.Hunca_GetValidTime(),this.cert_notBeforeTime=window.mToken.HUnca_GetNotBeforeTime();let n=this.cert_subject.split(","),i={};return n.forEach((e=>{i[e.split("=")[0]]=e.split("=")[1]})),this.loginForm={cert:this.ca_cert,sign:this.sign,rn:t,caInfo:this.cert_subject,caAddr:i.ST+i.OU,caCode:i.TITLE,caName:i.GN,caSn:this.certSn,caEffectiveDate:this.cert_notBeforeTime,caExpireDate:this.cert_validTime,loginType:"3",username:i.GN},!0},handleLogin(){this.$refs.loginForm.validate((e=>{e&&(this.loading=!0,this.isBJCA?this.BJCALogin():(this.HNCALogin(),1==this.dialogVisible.showInfo?this.loading=!1:void 0!=this.loginForm.username?(this.loading=!0,this.$emit("caSuccess",this.loginForm,(()=>{this.loading=!1}))):this.msgErr("请插入CA")))}))},async BJCALogin(){if(void 0!=this.loginForm.password){let n=await new Promise((e=>{window.SOF_GetUserList((function(t){e(t.retVal.split("&&&")[0].split("||")[1])}))}));var e=new Date;let i=this.loginForm.password;if(!n||!i)return;var t=navigator.platform.toLowerCase();-1!=t.indexOf("win")?window.SOF_LoginEx(n,i,0,this.login_callback,{begin:e,certId:n}):window.SOF_Login(n,i,this.login_callback,{begin:e,certId:n})}else this.msgErr("请插入CA")},login_callback(e){const t=this;var n=e.ctx.certId;e.retVal?this.BJSignData():(window.SOF_GetLastError((function(e){var n=e.retVal;79==n&&t.msgErr("请核对pin码复杂度是否符合要求")}),e.ctx),window.SOF_GetPinRetryCount(n,(function(e){var n=e.ctx.certId;t.msgErr("证书["+n+"]重试次数剩余:"+e.retVal+"次...")}),e.ctx))},async BJSignData(){let e=await new Promise((e=>{window.SOF_GetUserList((function(t){e(t.retVal.split("&&&")[0].split("||")[1])}))})),t=Math.random();this.form["rn"]=t,window.SOF_SignData(e,t,this.signData_callback,{certId:e})},async signData_callback(e){if(""==e.retVal)return this.caInfo.error_text="数据签名失败",this.caInfo.have_error_info=!0,void(this.dialogVisible.showInfo=!0);this.form["sign"]=e.retVal;var t=e.ctx.certId;let n=await new Promise((e=>{window.SOF_ExportUserCert(t,(function(t){e(t.retVal)}))}));if(this.form["username"]=n,n){var i={caAddrProvince:{type:16,label:"使用者省州名ST"},caAddrcity:{type:18,label:"使用者城市名L"},caEffectiveDate:{type:11,label:"证书有效开始日期"},caExpireDate:{type:12,label:"证书有效结束日期"},caInfo:{type:35,label:"使用者DN项第2种格式"},caSn:{type:2,label:"证书序列号"},caType:{type:34,label:"颁发者DN项第1种格式"}};for(let t in i){let e=await new Promise((e=>{window.SOF_GetCertInfo(n,i[t].type,(function(t){e(t)}),{key:t})}));this.form[e.ctx.key]=e.retVal}let e={caSn:this.form["caSn"],caInfo:this.form["caInfo"],caAddr:this.form["caAddrProvince"]+this.form["caAddrcity"],caCode:this.form["caInfo"].split(",").filter((e=>-1!=e.search(/^title=/i)))[0].replace(/title=/i,""),username:this.form["caInfo"].split(",").filter((e=>-1!=e.search(/^cn=/i)))[0].replace(/cn=/i,""),caEffectiveDate:Ln(this.form["caEffectiveDate"]),caExpireDate:Ln(this.form["caExpireDate"]),pass:this.loginForm.password,caType:"北京ca",sign:this.form.sign,rn:this.form.rn,cert:this.form.username};this.form=e,this.loginForm={cert:this.form.cert,sign:this.form.sign,rn:this.form.rn,caInfo:this.form.caInfo,caAddr:this.form.caAddr,caCode:this.form.caCode,caName:this.form.username,caSn:this.form.caSn,caEffectiveDate:this.form.caEffectiveDate,caExpireDate:this.form.caExpireDate,loginType:"3",username:this.form.username},1==this.dialogVisible.showInfo?this.loading=!1:void 0!=this.loginForm.username?this.$emit("caSuccess",this.loginForm,(()=>{this.loading=!1})):this.msgErr("请插入CA")}},handleClose(e){this.$confirm("确认关闭?").then((()=>{e(),this.loading=!1})).catch((()=>{}))},msgErr(e){this.loading=!1,this.$message.error(e)}}},Bn=Rn,Vn=f(Bn,Tn,Pn,!1,null,"4143c42c",null),zn=Vn.exports;const Hn=[b,Cn,An,zn],Wn=function(e){Hn.forEach((t=>{e.component(t.name,t)})),"undefined"!==typeof window&&window.Vue&&Wn(window.Vue)};var Gn={install:Wn},Un=Gn}(),__webpack_exports__}()}));
25
25
  //# sourceMappingURL=yc-ui2.umd.min.js.map