yc-ui2 0.1.2-beta24 → 0.1.2-beta26

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,2 +1,2 @@
1
- (function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["yc-ui2"]=t():e["yc-ui2"]=t()})("undefined"!==typeof self?self:this,(function(){return function(){var __webpack_modules__={9662:function(e,t,r){"use strict";var n=r(614),a=r(6330),i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(a(e)+" is not a function")}},9670:function(e,t,r){"use strict";var n=r(111),a=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(a(e)+" is not an object")}},1318:function(e,t,r){"use strict";var n=r(5656),a=r(1400),i=r(6244),s=function(e){return function(t,r,s){var o,c=n(t),u=i(c),l=a(s,u);if(e&&r!==r){while(u>l)if(o=c[l++],o!==o)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:s(!0),indexOf:s(!1)}},3658:function(e,t,r){"use strict";var n=r(9781),a=r(3157),i=TypeError,s=Object.getOwnPropertyDescriptor,o=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=o?function(e,t){if(a(e)&&!s(e,"length").writable)throw new i("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},4326:function(e,t,r){"use strict";var n=r(1702),a=n({}.toString),i=n("".slice);e.exports=function(e){return i(a(e),8,-1)}},9920:function(e,t,r){"use strict";var n=r(2597),a=r(3887),i=r(1236),s=r(3070);e.exports=function(e,t,r){for(var o=a(t),c=s.f,u=i.f,l=0;l<o.length;l++){var f=o[l];n(e,f)||r&&n(r,f)||c(e,f,u(t,f))}}},8880:function(e,t,r){"use strict";var n=r(9781),a=r(3070),i=r(9114);e.exports=n?function(e,t,r){return a.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},9114:function(e){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},8052:function(e,t,r){"use strict";var n=r(614),a=r(3070),i=r(6339),s=r(3072);e.exports=function(e,t,r,o){o||(o={});var c=o.enumerable,u=void 0!==o.name?o.name:t;if(n(r)&&i(r,u,o),o.global)c?e[t]=r:s(t,r);else{try{o.unsafe?e[t]&&(c=!0):delete e[t]}catch(l){}c?e[t]=r:a.f(e,t,{value:r,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return e}},3072:function(e,t,r){"use strict";var n=r(7854),a=Object.defineProperty;e.exports=function(e,t){try{a(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},9781:function(e,t,r){"use strict";var n=r(7293);e.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4154:function(e){"use strict";var t="object"==typeof document&&document.all,r="undefined"==typeof t&&void 0!==t;e.exports={all:t,IS_HTMLDDA:r}},317:function(e,t,r){"use strict";var n=r(7854),a=r(111),i=n.document,s=a(i)&&a(i.createElement);e.exports=function(e){return s?i.createElement(e):{}}},7207:function(e){"use strict";var t=TypeError,r=9007199254740991;e.exports=function(e){if(e>r)throw t("Maximum allowed index exceeded");return e}},8113:function(e){"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},7392:function(e,t,r){"use strict";var n,a,i=r(7854),s=r(8113),o=i.process,c=i.Deno,u=o&&o.versions||c&&c.version,l=u&&u.v8;l&&(n=l.split("."),a=n[0]>0&&n[0]<4?1:+(n[0]+n[1])),!a&&s&&(n=s.match(/Edge\/(\d+)/),(!n||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/),n&&(a=+n[1]))),e.exports=a},748:function(e){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(e,t,r){"use strict";var n=r(7854),a=r(1236).f,i=r(8880),s=r(8052),o=r(3072),c=r(9920),u=r(4705);e.exports=function(e,t){var r,l,f,m,S,d,p=e.target,y=e.global,_=e.stat;if(l=y?n:_?n[p]||o(p,{}):(n[p]||{}).prototype,l)for(f in t){if(S=t[f],e.dontCallGetSet?(d=a(l,f),m=d&&d.value):m=l[f],r=u(y?f:p+(_?".":"#")+f,e.forced),!r&&void 0!==m){if(typeof S==typeof m)continue;c(S,m)}(e.sham||m&&m.sham)&&i(S,"sham",!0),s(l,f,S,e)}}},7293:function(e){"use strict";e.exports=function(e){try{return!!e()}catch(t){return!0}}},4374:function(e,t,r){"use strict";var n=r(7293);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},6916:function(e,t,r){"use strict";var n=r(4374),a=Function.prototype.call;e.exports=n?a.bind(a):function(){return a.apply(a,arguments)}},6530:function(e,t,r){"use strict";var n=r(9781),a=r(2597),i=Function.prototype,s=n&&Object.getOwnPropertyDescriptor,o=a(i,"name"),c=o&&"something"===function(){}.name,u=o&&(!n||n&&s(i,"name").configurable);e.exports={EXISTS:o,PROPER:c,CONFIGURABLE:u}},1702:function(e,t,r){"use strict";var n=r(4374),a=Function.prototype,i=a.call,s=n&&a.bind.bind(i,i);e.exports=n?s:function(e){return function(){return i.apply(e,arguments)}}},5005:function(e,t,r){"use strict";var n=r(7854),a=r(614),i=function(e){return a(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(n[e]):n[e]&&n[e][t]}},8173:function(e,t,r){"use strict";var n=r(9662),a=r(8554);e.exports=function(e,t){var r=e[t];return a(r)?void 0:n(r)}},7854:function(e,t,r){"use strict";var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||function(){return this}()||this||Function("return this")()},2597:function(e,t,r){"use strict";var n=r(1702),a=r(7908),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(a(e),t)}},3501:function(e){"use strict";e.exports={}},4664:function(e,t,r){"use strict";var n=r(9781),a=r(7293),i=r(317);e.exports=!n&&!a((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},8361:function(e,t,r){"use strict";var n=r(1702),a=r(7293),i=r(4326),s=Object,o=n("".split);e.exports=a((function(){return!s("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?o(e,""):s(e)}:s},2788:function(e,t,r){"use strict";var n=r(1702),a=r(614),i=r(5465),s=n(Function.toString);a(i.inspectSource)||(i.inspectSource=function(e){return s(e)}),e.exports=i.inspectSource},9909:function(e,t,r){"use strict";var n,a,i,s=r(4811),o=r(7854),c=r(111),u=r(8880),l=r(2597),f=r(5465),m=r(6200),S=r(3501),d="Object already initialized",p=o.TypeError,y=o.WeakMap,_=function(e){return i(e)?a(e):n(e,{})},h=function(e){return function(t){var r;if(!c(t)||(r=a(t)).type!==e)throw new p("Incompatible receiver, "+e+" required");return r}};if(s||f.state){var g=f.state||(f.state=new y);g.get=g.get,g.has=g.has,g.set=g.set,n=function(e,t){if(g.has(e))throw new p(d);return t.facade=e,g.set(e,t),t},a=function(e){return g.get(e)||{}},i=function(e){return g.has(e)}}else{var x=m("state");S[x]=!0,n=function(e,t){if(l(e,x))throw new p(d);return t.facade=e,u(e,x,t),t},a=function(e){return l(e,x)?e[x]:{}},i=function(e){return l(e,x)}}e.exports={set:n,get:a,has:i,enforce:_,getterFor:h}},3157:function(e,t,r){"use strict";var n=r(4326);e.exports=Array.isArray||function(e){return"Array"===n(e)}},614:function(e,t,r){"use strict";var n=r(4154),a=n.all;e.exports=n.IS_HTMLDDA?function(e){return"function"==typeof e||e===a}:function(e){return"function"==typeof e}},4705:function(e,t,r){"use strict";var n=r(7293),a=r(614),i=/#|\.prototype\./,s=function(e,t){var r=c[o(e)];return r===l||r!==u&&(a(t)?n(t):!!t)},o=s.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=s.data={},u=s.NATIVE="N",l=s.POLYFILL="P";e.exports=s},8554:function(e){"use strict";e.exports=function(e){return null===e||void 0===e}},111:function(e,t,r){"use strict";var n=r(614),a=r(4154),i=a.all;e.exports=a.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:n(e)||e===i}:function(e){return"object"==typeof e?null!==e:n(e)}},1913:function(e){"use strict";e.exports=!1},2190:function(e,t,r){"use strict";var n=r(5005),a=r(614),i=r(7976),s=r(3307),o=Object;e.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return a(t)&&i(t.prototype,o(e))}},6244:function(e,t,r){"use strict";var n=r(7466);e.exports=function(e){return n(e.length)}},6339:function(e,t,r){"use strict";var n=r(1702),a=r(7293),i=r(614),s=r(2597),o=r(9781),c=r(6530).CONFIGURABLE,u=r(2788),l=r(9909),f=l.enforce,m=l.get,S=String,d=Object.defineProperty,p=n("".slice),y=n("".replace),_=n([].join),h=o&&!a((function(){return 8!==d((function(){}),"length",{value:8}).length})),g=String(String).split("String"),x=e.exports=function(e,t,r){"Symbol("===p(S(t),0,7)&&(t="["+y(S(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!s(e,"name")||c&&e.name!==t)&&(o?d(e,"name",{value:t,configurable:!0}):e.name=t),h&&r&&s(r,"arity")&&e.length!==r.arity&&d(e,"length",{value:r.arity});try{r&&s(r,"constructor")&&r.constructor?o&&d(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(a){}var n=f(e);return s(n,"source")||(n.source=_(g,"string"==typeof t?t:"")),e};Function.prototype.toString=x((function(){return i(this)&&m(this).source||u(this)}),"toString")},4758:function(e){"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},3070:function(e,t,r){"use strict";var n=r(9781),a=r(4664),i=r(3353),s=r(9670),o=r(4948),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",m="configurable",S="writable";t.f=n?i?function(e,t,r){if(s(e),t=o(t),s(r),"function"===typeof e&&"prototype"===t&&"value"in r&&S in r&&!r[S]){var n=l(e,t);n&&n[S]&&(e[t]=r.value,r={configurable:m in r?r[m]:n[m],enumerable:f in r?r[f]:n[f],writable:!1})}return u(e,t,r)}:u:function(e,t,r){if(s(e),t=o(t),s(r),a)try{return u(e,t,r)}catch(n){}if("get"in r||"set"in r)throw new c("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},1236:function(e,t,r){"use strict";var n=r(9781),a=r(6916),i=r(5296),s=r(9114),o=r(5656),c=r(4948),u=r(2597),l=r(4664),f=Object.getOwnPropertyDescriptor;t.f=n?f:function(e,t){if(e=o(e),t=c(t),l)try{return f(e,t)}catch(r){}if(u(e,t))return s(!a(i.f,e,t),e[t])}},8006:function(e,t,r){"use strict";var n=r(6324),a=r(748),i=a.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},5181:function(e,t){"use strict";t.f=Object.getOwnPropertySymbols},7976:function(e,t,r){"use strict";var n=r(1702);e.exports=n({}.isPrototypeOf)},6324:function(e,t,r){"use strict";var n=r(1702),a=r(2597),i=r(5656),s=r(1318).indexOf,o=r(3501),c=n([].push);e.exports=function(e,t){var r,n=i(e),u=0,l=[];for(r in n)!a(o,r)&&a(n,r)&&c(l,r);while(t.length>u)a(n,r=t[u++])&&(~s(l,r)||c(l,r));return l}},5296:function(e,t){"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,a=n&&!r.call({1:2},1);t.f=a?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},2140:function(e,t,r){"use strict";var n=r(6916),a=r(614),i=r(111),s=TypeError;e.exports=function(e,t){var r,o;if("string"===t&&a(r=e.toString)&&!i(o=n(r,e)))return o;if(a(r=e.valueOf)&&!i(o=n(r,e)))return o;if("string"!==t&&a(r=e.toString)&&!i(o=n(r,e)))return o;throw new s("Can't convert object to primitive value")}},3887:function(e,t,r){"use strict";var n=r(5005),a=r(1702),i=r(8006),s=r(5181),o=r(9670),c=a([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(o(e)),r=s.f;return r?c(t,r(e)):t}},4488:function(e,t,r){"use strict";var n=r(8554),a=TypeError;e.exports=function(e){if(n(e))throw new a("Can't call method on "+e);return e}},6200:function(e,t,r){"use strict";var n=r(2309),a=r(9711),i=n("keys");e.exports=function(e){return i[e]||(i[e]=a(e))}},5465:function(e,t,r){"use strict";var n=r(7854),a=r(3072),i="__core-js_shared__",s=n[i]||a(i,{});e.exports=s},2309:function(e,t,r){"use strict";var n=r(1913),a=r(5465);(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.33.0",mode:n?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"})},6293:function(e,t,r){"use strict";var n=r(7392),a=r(7293),i=r(7854),s=i.String;e.exports=!!Object.getOwnPropertySymbols&&!a((function(){var e=Symbol("symbol detection");return!s(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},1400:function(e,t,r){"use strict";var n=r(9303),a=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?a(r+t,0):i(r,t)}},5656:function(e,t,r){"use strict";var n=r(8361),a=r(4488);e.exports=function(e){return n(a(e))}},9303:function(e,t,r){"use strict";var n=r(4758);e.exports=function(e){var t=+e;return t!==t||0===t?0:n(t)}},7466:function(e,t,r){"use strict";var n=r(9303),a=Math.min;e.exports=function(e){return e>0?a(n(e),9007199254740991):0}},7908:function(e,t,r){"use strict";var n=r(4488),a=Object;e.exports=function(e){return a(n(e))}},7593:function(e,t,r){"use strict";var n=r(6916),a=r(111),i=r(2190),s=r(8173),o=r(2140),c=r(5112),u=TypeError,l=c("toPrimitive");e.exports=function(e,t){if(!a(e)||i(e))return e;var r,c=s(e,l);if(c){if(void 0===t&&(t="default"),r=n(c,e,t),!a(r)||i(r))return r;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),o(e,t)}},4948:function(e,t,r){"use strict";var n=r(7593),a=r(2190);e.exports=function(e){var t=n(e,"string");return a(t)?t:t+""}},6330:function(e){"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(r){return"Object"}}},9711:function(e,t,r){"use strict";var n=r(1702),a=0,i=Math.random(),s=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++a+i,36)}},3307:function(e,t,r){"use strict";var n=r(6293);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(e,t,r){"use strict";var n=r(9781),a=r(7293);e.exports=n&&a((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},4811:function(e,t,r){"use strict";var n=r(7854),a=r(614),i=n.WeakMap;e.exports=a(i)&&/native code/.test(String(i))},5112:function(e,t,r){"use strict";var n=r(7854),a=r(2309),i=r(2597),s=r(9711),o=r(6293),c=r(3307),u=n.Symbol,l=a("wks"),f=c?u["for"]||u:u&&u.withoutSetter||s;e.exports=function(e){return i(l,e)||(l[e]=o&&i(u,e)?u[e]:f("Symbol."+e)),l[e]}},7658:function(e,t,r){"use strict";var n=r(2109),a=r(7908),i=r(6244),s=r(3658),o=r(7207),c=r(7293),u=c((function(){return 4294967297!==[].push.call({length:4294967296},1)})),l=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}},f=u||!l();n({target:"Array",proto:!0,arity:1,forced:f},{push:function(e){var t=a(this),r=i(t),n=arguments.length;o(r+n);for(var c=0;c<n;c++)t[r]=arguments[c],r++;return s(t,r),r}})},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 r;r=util.checkLocationIsHttps()?"wss://"+t:"ws://"+e;var n={socket:void 0,wsMessageQueue:new xtxasyn.HashMap,wsMessageQueueId:0,wsEventQueue:new xtxasyn.HashMap,wsURL:r,wsCacheMessage:[]};xtxasyn.wsObject=n,xtxasyn.wsObject.wsEventQueue.put("onusbkeychange",util.evalFunction(xtxasyn.custom.defaultUsbkeyChange));try{n.socket=new WebSocket(r)}catch(a){return util.consolelog(a),null}return n.socket.onopen=function(e){xtxasyn.util.consolelog("open websocket["+r+"] 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)}},n.socket.onclose=function(n){util.consolelog("websocket["+r+"] closed, reopen it..."),xtxasyn.wsObject=void 0,xtxasyn.XTXAppWebSocket=xtxasyn.util.loadWebSocketCtl(e,t)},n.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),r=void 0;if(!t.hasOwnProperty("call_cmd_id"))return void util.consolelog("return JSON not include call_cmd_id!!!");r=t["call_cmd_id"];var n=void 0;t.hasOwnProperty("retValue")?n=t["retValue"]:t.hasOwnProperty("retVal")&&(n=t["retVal"]);var i=void 0,s=r.toLowerCase(),o=xtxasyn.wsObject.wsEventQueue.get(s);if(o&&"function"==typeof o)o(n);else{var c=xtxasyn.wsObject.wsMessageQueue.get(r);if(!c||!c.method)return void util.consolelog("can't find call_cmd_id["+t["call_cmd_id"]+"]'s method name!!!");if(i=c.method,o=c.cb,!o||"function"!=typeof o)return void util.consolelog("can't find call_cmd_id["+t["call_cmd_id"]+"]'s call back function!!!");var u,l=c.ctx;l=l||{returnType:"string"},"bool"==l.returnType?(u="string"==typeof n?"true"==n:n,void 0==u&&(u=!1)):"number"==l.returnType?(u="string"==typeof n?Number(n):n,void 0==u&&(u=-1)):(u=n,void 0==u&&(u="")),t.token&&xtxasyn.custom.setToken(t.token),(("SOF_Login"==i||"SOF_LoginEx"==i)&&!u||"SOF_Logout"==i&&u)&&xtxasyn.custom.setToken("");var f={retVal:u,ctx:l};o(f),xtxasyn.wsObject.wsMessageQueue.remove(r)}}catch(a){return}},n.socket.onerror=function(e){xtxasyn.util.consolelog(e.data)},n},util.attachWebSocketEvent=function(e,t,r){null!=e&&e.wsEventQueue.put(t.toLowerCase(),util.evalFunction(r))},util.callWebSocketMethod=function(e,t,r,n,a,i,s){if(null!=e){if(e.wsMessageQueueId++,"function"==typeof n){a=a||{},a.returnType=i;var o={cb:n,ctx:a,method:r};e.wsMessageQueue.put("i_"+e.wsMessageQueueId,o)}var c={call_cmd_id:"i_"+e.wsMessageQueueId,CLSID:t,xtx_func_name:r,func:r,URL:window.location.href};if(arguments.length>6){for(var u=1;u<=s.length;u++){var l="param_"+u;c[l]=s[u-1]}c["param"]=s}var f=xtxasyn.custom.getToken();f&&""!=f&&(c.token=f),e.socket.readyState==WebSocket.OPEN?e.socket.send(JSON.stringify(c)):e.socket.readyState==WebSocket.CONNECTING?e.wsCacheMessage.push(JSON.stringify(c)):xtxasyn.util.consolelog("Can't connect to WebSocket server["+e.wsURL+"]!!!")}},util.SynToAsyn=function(e,t,r){if("function"==typeof t){var n={retVal:e,ctx:r};t(n)}}}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 r=xtxasyn.custom;r.loginCertID=e,r.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 r=e.retVal,n=[];while(1){var a=r.indexOf("&&&");if(a<=0)break;var i=r.substring(0,a),s=i.substring(0,i.indexOf("||")),o=i.substring(i.indexOf("||")+2,i.length);n.push({certName:s,certID:o}),""!=t.hardCertListID&&xtxasyn.GetDeviceInfo(o,7,(function(e){"HARD"==e.retVal&&t.pushOneDropListBox([e.ctx],t.hardCertListID)}),{certName:s,certID:o}),""!=t.softCertListID&&xtxasyn.GetDeviceInfo(o,7,(function(e){"SOFT"==e.retVal&&t.pushOneDropListBox([e.ctx],t.softCertListID)}),{certName:s,certID:o});var c=r.length;r=r.substring(a+3,c)}""!=t.allCertListID&&t.pushOneDropListBox(n,t.allCertListID)},custom.setUserCertList=function(e,t){var r=xtxasyn.custom;t!=CERT_TYPE_ALL&&void 0!=t||(r.allCertListID=e),t==CERT_TYPE_HARD&&(r.hardCertListID=e),t==CERT_TYPE_SOFT&&(r.softCertListID=e),xtxasyn.SOF_GetUserList(r.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,r=e.custom;if(e.XTXAppCOM=t.loadIECtl(e.xtx_clsid,"XTXAppObj","SOF_GetVersion()"),null==e.XTXAppCOM)return r.errorReportFunc("加载XTXAppCOM控件失败,请确认已正确安装BJCA证书应用环境!"),!1;var n=e.XTXAppCOM;t.attachIEEvent("XTXAppObj","onUsbkeyChange",e.custom.defaultUsbkeyChange);var a=t.loadIECtl(e.getpic_clsid,"GetPicObj","Hash('0')");null==a||(n.GetPic=function(e){return a.GetPic(e)},n.Hash=function(e){return a.Hash(e)},n.ConvertPicFormat=function(e,t){return a.ConvertPicFormat(e,t)},n.ConvertGif2Jpg=function(e){return a.ConvertGif2Jpg(e)},n.GetPic1=function(e){return a.GetPic1(e)},n.ConvertPicSize=function(e,t,r){return a.ConvertPicSize(e,t,r)});var i=t.loadIECtl(e.xtx_version_clsid,"XTXVersionOBJ","GetEnvVersion()");return null==i||(n.GetEnvVersion=function(){return i.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 r(r){var n,a=r.util;if(r.xtx_clsid="3F367B74-92D9-4C5E-AB93-234F8A91D5E6",r.getpic_clsid="3BC3C868-95B5-47ED-8686-E0E3E94EF366",r.xtx_version_clsid="574887FB-22A5-488B-A49C-2CF25F56BE68",a.checkBrowserISIE()){if(!e(r))return!1;n=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(r))return!1;n=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 i=[{funcName:"SOF_SetSignMethod",inParams:"SignMethod",outParamType:"number",clsid:r.xtx_clsid,aliasName:"SetSignMethod"},{funcName:"SOF_GetSignMethod",inParams:"",outParamType:"number",clsid:r.xtx_clsid},{funcName:"SOF_SetEncryptMethod",inParams:"EncryptMethod",outParamType:"number",clsid:r.xtx_clsid},{funcName:"SOF_GetEncryptMethod",inParams:"",outParamType:"number",clsid:r.xtx_clsid},{funcName:"SOF_GetUserList",inParams:"",outParamType:"string",clsid:r.xtx_clsid,aliasName:"GetUserList"},{funcName:"SOF_ExportUserCert",inParams:"CertID",outParamType:"string",clsid:r.xtx_clsid,aliasName:"GetSignCert"},{funcName:"SOF_Login",inParams:"CertID, PassWd",outParamType:"bool",clsid:r.xtx_clsid,aliasName:"VerifyUserPIN"},{funcName:"SOF_GetPinRetryCount",inParams:"CertID",outParamType:"number",clsid:r.xtx_clsid,aliasName:"GetUserPINRetryCount"},{funcName:"SOF_ChangePassWd",inParams:"CertID, oldPass, newPass",outParamType:"bool",clsid:r.xtx_clsid,aliasName:"ChangeUserPassword"},{funcName:"SOF_GetCertInfo",inParams:"Cert, type",outParamType:"string",clsid:r.xtx_clsid,aliasName:"GetCertBasicinfo"},{funcName:"SOF_GetCertInfoByOid",inParams:"Cert, Oid",outParamType:"string",clsid:r.xtx_clsid,aliasName:"GetExtCertInfoByOID"},{funcName:"SOF_SignData",inParams:"CertID, InData",outParamType:"string",clsid:r.xtx_clsid,aliasName:"SignedData"},{funcName:"SOF_VerifySignedData",inParams:"Cert, InData, SignValue",outParamType:"bool",clsid:r.xtx_clsid,aliasName:"VerifySignedData"},{funcName:"SOF_SignFile",inParams:"CertID, InFile",outParamType:"string",clsid:r.xtx_clsid,aliasName:"SOF_SignFile"},{funcName:"SOF_VerifySignedFile",inParams:"Cert, InFile, SignValue",outParamType:"bool",clsid:r.xtx_clsid,aliasName:"VerifySignFile"},{funcName:"SOF_EncryptData",inParams:"Cert, InData",outParamType:"string",clsid:r.xtx_clsid,aliasName:"EncodeP7Enveloped"},{funcName:"SOF_DecryptData",inParams:"CertID, InData",outParamType:"string",clsid:r.xtx_clsid,aliasName:"DecodeP7Enveloped"},{funcName:"SOF_EncryptFile",inParams:"Cert, InFile, OutFile",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_DecryptFile",inParams:"CertID, InFile, OutFile",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_SignMessage",inParams:"dwFlag, CertID, InData",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_VerifySignedMessage",inParams:"MessageData, InData",outParamType:"bool",clsid:r.xtx_clsid,aliasName:"VerifyDatabyP7"},{funcName:"SOF_GetInfoFromSignedMessage",inParams:"SignedMessage, type",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_SignDataXML",inParams:"CertID, InData",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_VerifySignedDataXML",inParams:"InData",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_GetXMLSignatureInfo",inParams:"XMLSignedData, type",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_GenRandom",inParams:"RandomLen",outParamType:"string",clsid:r.xtx_clsid,aliasName:"GenerateRandom"},{funcName:"SOF_PubKeyEncrypt",inParams:"Cert, InData",outParamType:"string",clsid:r.xtx_clsid,aliasName:"PubKeyEncrypt"},{funcName:"SOF_PriKeyDecrypt",inParams:"CertID, InData",outParamType:"string",clsid:r.xtx_clsid,aliasName:"PriKeyDecrypt"},{funcName:"SOF_SecertSegment",inParams:"Secert, m, n, k",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_SecertRecovery",inParams:"Seg",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_GetLastError",inParams:"",outParamType:"number",clsid:r.xtx_clsid},{funcName:"GetDeviceCount",inParams:"",outParamType:"number",clsid:r.xtx_clsid},{funcName:"GetAllDeviceSN",inParams:"",outParamType:"string",clsid:r.xtx_clsid},{funcName:"GetDeviceSNByIndex",inParams:"iIndex",outParamType:"string",clsid:r.xtx_clsid},{funcName:"GetDeviceInfo",inParams:"sDeviceSN, iType",outParamType:"string",clsid:r.xtx_clsid},{funcName:"ChangeAdminPass",inParams:"sDeviceSN, sOldPass, sNewPass",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"UnlockUserPass",inParams:"sDeviceSN, sAdminPass, sNewUserPass",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"GenerateKeyPair",inParams:"sDeviceSN, sContainerName, iKeyType, bSign",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"ExportPubKey",inParams:"sDeviceSN, sContainerName, bSign",outParamType:"string",clsid:r.xtx_clsid},{funcName:"ImportSignCert",inParams:"sDeviceSN, sContainerName, sCert",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"ImportEncCert",inParams:"sDeviceSN, sContainerName, sCert, sPriKeyCipher",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"ReadFile",inParams:"sDeviceSN, sFileName",outParamType:"string",clsid:r.xtx_clsid,aliasName:"readFile"},{funcName:"WriteFile",inParams:"sDeviceSN, sFileName, sContent, bPrivate",outParamType:"bool",clsid:r.xtx_clsid,aliasName:"writeFile"},{funcName:"IsContainerExist",inParams:"sDeviceSN, sContainerName",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"DeleteContainer",inParams:"sDeviceSN, sContainerName",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"ExportPKCS10",inParams:"sDeviceSN, sContainerName, sDN, bSign",outParamType:"string",clsid:r.xtx_clsid},{funcName:"InitDevice",inParams:"sDeviceSN, sAdminPass",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"AddSignInfo",inParams:"sUserPass",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_GetVersion",inParams:"",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_ExportExChangeUserCert",inParams:"CertID",outParamType:"string",clsid:r.xtx_clsid,aliasName:"GetExchCert"},{funcName:"SOF_ValidateCert",inParams:"Cert",outParamType:"number",clsid:r.xtx_clsid,aliasName:"ValidateCert"},{funcName:"GetENVSN",inParams:"sDeviceSN",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SetENVSN",inParams:"sDeviceSN, sEnvsn",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"IsDeviceExist",inParams:"sDeviceSN",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"GetContainerCount",inParams:"sDeviceSN",outParamType:"number",clsid:r.xtx_clsid},{funcName:"SOF_SymEncryptData",inParams:"sKey, indata",outParamType:"string",clsid:r.xtx_clsid,aliasName:"EncryptData"},{funcName:"SOF_SymDecryptData",inParams:"sKey, indata",outParamType:"string",clsid:r.xtx_clsid,aliasName:"DecryptData"},{funcName:"SOF_SymEncryptFile",inParams:"sKey, inFile, outFile",outParamType:"bool",clsid:r.xtx_clsid,aliasName:"EncryptFile"},{funcName:"SOF_SymDecryptFile",inParams:"sKey, inFile, outFile",outParamType:"bool",clsid:r.xtx_clsid,aliasName:"DecryptFile"},{funcName:"SOF_GetLastErrMsg",inParams:"",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_Base64Encode",inParams:"sIndata",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_Base64Decode",inParams:"sIndata",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_HashData",inParams:"hashAlg, sInData",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_HashFile",inParams:"hashAlg, inFile",outParamType:"string",clsid:r.xtx_clsid},{funcName:"UnlockUserPassEx",inParams:"sDeviceSN, sAdminPin, sNewUserPass",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"DeleteOldContainer",inParams:"sDeviceSN",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"WriteFileEx",inParams:"sDeviceSN, sFileName, sContent",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"ReadFileEx",inParams:"sDeviceSN, sFileName",outParamType:"string",clsid:r.xtx_clsid},{funcName:"WriteFileBase64",inParams:"sDeviceSN, sFileName, sContent",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"DeleteFile",inParams:"sDeviceSN, sFileName",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_EncryptDataEx",inParams:"Cert, InData",outParamType:"string",clsid:r.xtx_clsid},{funcName:"Base64EncodeFile",inParams:"sInFile",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_GetRetryCount",inParams:"CertID",outParamType:"number",clsid:r.xtx_clsid},{funcName:"SOF_GetAllContainerName",inParams:"sDeviceSN",outParamType:"string",clsid:r.xtx_clsid},{funcName:"CreateSoftDevice",inParams:"sDeviceSN, sLabel",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"DeleteSoftDevice",inParams:"sDeviceSN, sPasswd",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"EnableSoftDevice",inParams:"enable, sDeviceSN",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SoftDeviceBackup",inParams:"sDeviceSN, sPasswd",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SoftDeviceRestore",inParams:"sDeviceSN, sPasswd, sInFilePath",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_Logout",inParams:"CertID",outParamType:"bool",clsid:r.xtx_clsid,aliasName:"Logout"},{funcName:"SetUserConfig",inParams:"type, strConfig",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_SignByteData",inParams:"CertID, byteLen",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_VerifySignedByteData",inParams:"Cert, byteLen, SignValue",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"OTP_GetChallengeCode",inParams:"sCertID",outParamType:"string",clsid:r.xtx_clsid},{funcName:"ImportEncCertEx",inParams:"sDeviceSN, sContainerName, sCert, sPriKeyCipher, ulSymAlg",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_GetCertEntity",inParams:"sCert",outParamType:"string",clsid:r.xtx_clsid,aliasName:"GetCertEntity"},{funcName:"SOF_HMAC",inParams:"hashid, key, indata",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_SignDataByPriKey",inParams:"sPriKey, sCert, sInData",outParamType:"string",clsid:r.xtx_clsid},{funcName:"ImportKeyCertToSoftDevice",inParams:"sDeviceSN, sContainerName, sPriKey, sCert, bSign",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"InitDeviceEx",inParams:"sDeviceSN, sAdminPass, sUserPin, sKeyLabel, adminPinMaxRetry, userPinMaxRetry",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SelectFile",inParams:"",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_SignHashData",inParams:"CertID, b64ashData, hashAlg",outParamType:"string",clsid:r.xtx_clsid,aliasName:"SignHashData"},{funcName:"SOF_VerifySignedHashData",inParams:"Cert, b64ashData, SignValue, hashAlg",outParamType:"bool",clsid:r.xtx_clsid,aliasName:"VerifySignedHashData"},{funcName:"CheckSoftDeviceEnv",inParams:"",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"ImportPfxToDevice",inParams:"sDeviceSN, sContainerName, bSign, strPfx, strPfxPass",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_HashDataEx",inParams:"hashAlg, sInData, sCert, sID",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_HashFileEx",inParams:"hashAlg, inFile, sCert, sID",outParamType:"string",clsid:r.xtx_clsid},{funcName:"GetDeviceCountEx",inParams:"type",outParamType:"number",clsid:r.xtx_clsid},{funcName:"GetAllDeviceSNEx",inParams:"type",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_UpdateCert",inParams:"CertID, type",outParamType:"number",clsid:r.xtx_clsid},{funcName:"OpenSpecifiedFolder",inParams:"backupFilePath",outParamType:"",clsid:r.xtx_clsid},{funcName:"OTP_GetChallengeCodeEx",inParams:"sCertID, szAccount, money",outParamType:"string",clsid:r.xtx_clsid},{funcName:"Base64DecodeFile",inParams:"sInData, sFilePath",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"EnumFilesInDevice",inParams:"sDeviceSN",outParamType:"string",clsid:r.xtx_clsid},{funcName:"OTP_Halt",inParams:"sCertID",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_TSGenREQ",inParams:"b64Hash, hashAlg, bReqCert, policyID, b64Nonce, b64Extension",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_TSCompareNonce",inParams:"b64TSReq, b64TSAResp",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_TSGenPDFSignature",inParams:"b64TSAResp, b64OriPDFSignature",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_TSVerifyPDFSignature",inParams:"b64TSPDFSignature",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_TSGetPDFSignatureInfo",inParams:"b64TSPDFSignature, iType",outParamType:"string",clsid:r.xtx_clsid},{funcName:"OTP_GetState",inParams:"sCertID, bCert",outParamType:"string",clsid:r.xtx_clsid},{funcName:"OTP_GetSyncCode",inParams:"sCertID, ChallengeCode",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_IsLogin",inParams:"CertID",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_LoginEx",inParams:"CertID, PassWd, updateFlag",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"EnumSupportDeviceList",inParams:"",outParamType:"string",clsid:r.xtx_clsid},{funcName:"ExportPfxFromDevice",inParams:"sDeviceSN, sContainerName, bSign, strPfxPass",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_SignHashMessage",inParams:"CertID, InHashData, hashAlg",outParamType:"string",clsid:r.xtx_clsid},{funcName:"ExportPfxToFile",inParams:"sDeviceSN, sContainerName, bSign, strPfxPass",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_SignAPK",inParams:"CertID, strOriSignature",outParamType:"string",clsid:r.xtx_clsid},{funcName:"YZT_GenerateKeyPair",inParams:"sDeviceSN, sContainerName, iKeyTypeRSA, iKeyTypeSM2",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"YZT_ExportPubKey",inParams:"sDeviceSN, sContainerName, bSign",outParamType:"string",clsid:r.xtx_clsid},{funcName:"YZT_ImportSignCert",inParams:"sDeviceSN, sContainerName, sRSACert, sSM2Cert",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"YZT_ImportEncCert",inParams:"sDeviceSN, sContainerName, sRSACert, sRSAPriKeyCipher, ulRSASymAlg, sSM2Cert, sSM2PriKeyCipher, ulSM2SymAlg",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_ListenUKey",inParams:"Parm",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_EnableLoginWindow",inParams:"Parm",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_SignEnvelope",inParams:"CertID, Cert, InData",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_UnSignEnvelope",inParams:"CertID, InData",outParamType:"string",clsid:r.xtx_clsid},{funcName:"BIO_MAKExportPKCS10",inParams:"sDeviceSN, iKeyType, sDN",outParamType:"string",clsid:r.xtx_clsid},{funcName:"BIO_MAKImportSignEncCert",inParams:"sDeviceSN, sSignCert, sEncCert, sPriKeyCipher",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"BIO_IssueDAKCert",inParams:"sDeviceSN, iKeyType, sDN",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"BIO_InfoCollect",inParams:"",outParamType:"string",clsid:r.xtx_clsid},{funcName:"BIO_GetBioInfo",inParams:"sDeviceSN",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_GetLastLoginCertID",inParams:"",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_ReadESealData",inParams:"CertID, ulKeyIndex, ulKeyAlgId, ulFlags",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_ReadKFXESealData",inParams:"CertID, ulKeyIndex, ulKeyAlgId, ulFlags",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_SymDecryptFileToData",inParams:"sKey, inFile",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_SignMessageBase64",inParams:"dwFlag, CertID, InData",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_VerifySignedMessageBase64",inParams:"MessageData, InData",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_VerifySignedHashMessage",inParams:"MessageData, InHashData",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_SignDataBase64",inParams:"CertID, InData",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_VerifySignedDataBase64",inParams:"Cert, InData, SignValue",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_HashDataExBase64",inParams:"hashAlg, sInData, sCert, sID",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_GetProductVersion",inParams:"",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_UpdateCertEx",inParams:"CertID, PassWd",outParamType:"number",clsid:r.xtx_clsid},{funcName:"SOF_GetLastSignDataCertID",inParams:"CertID",outParamType:"string",clsid:r.xtx_clsid},{funcName:"BIO_SetUserConfig",inParams:"CertID, type, strConfig",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"BIO_InvokeCommand",inParams:"CertID, bstrCommand",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_ImportSymmKey",inParams:"CertID, ulKeyIndex, InData, ulFlags",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_WriteESealData",inParams:"CertID, InData, ulFlags",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_EPS_Encrypt",inParams:"CertID, ulKeyIndex, ulKeyAlgId, IVData, DivCount, DivComponent, InData, ulFlags",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_EPS_Decrypt",inParams:"CertID, ulKeyIndex, ulKeyAlgId, IVData, DivCount, DivComponent, InData, ulFlags",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_EPS_Mac",inParams:"CertID, ulKeyIndex, ulKeyAlgId, IVData, DivCount, DivComponent, InData, ulFlags",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_PriKeyDecryptEx",inParams:"CertID, InData",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_EPS_ReadESealData",inParams:"CertID, ulKeyIndex, ulKeyAlgId, ulFlags",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_EPS_WriteESealData",inParams:"CertID, InData, ulFlags",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"EnumESeal",inParams:"sDeviceSN",outParamType:"string",clsid:r.xtx_clsid},{funcName:"GetPicture",inParams:"bstrConName",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_SignEnvelopeFile",inParams:"CertID, Cert, InFile, OutFile",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_UnSignEnvelopeFile",inParams:"CertID, InFile, OutFile",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOFX_EncryptFile",inParams:"CertID, Cert, InFile, OutFile, ulFlags",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOFX_DecryptFile",inParams:"CertID, InFile, OutFile, ulFlags",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"GetPic",inParams:"bstrConName",outParamType:"string",clsid:r.getpic_clsid},{funcName:"Hash",inParams:"inData",outParamType:"string",clsid:r.getpic_clsid},{funcName:"ConvertPicFormat",inParams:"inData, type",outParamType:"string",clsid:r.getpic_clsid},{funcName:"ConvertGif2Jpg",inParams:"inData",outParamType:"string",clsid:r.getpic_clsid},{funcName:"GetPic1",inParams:"bstrConName",outParamType:"string",clsid:r.getpic_clsid},{funcName:"ConvertPicSize",inParams:"bstrPic, w, h",outParamType:"string",clsid:r.getpic_clsid},{funcName:"GetEnvVersion",inParams:"",outParamType:"string",clsid:r.xtx_version_clsid},{funcName:"InitDeviceWithParam",inParams:"sDeviceSN, sAppName, sAdminPass, sUserPin, sKeyLabel, adminPinMaxRetry, userPinMaxRetry, createFileRights",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_SignDataEx",inParams:"CertID, InData,signFlag",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_VerifySignedDataEx",inParams:"Cert, InData, SignValue,signFlag",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_SymEncryptDataEx",inParams:"sKey,sIV,indata",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_SymDecryptDataEx",inParams:"sKey,sIV,indata",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOFX_InvokeCommand",inParams:"pluginName,InParam",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_SymEncryptFileEx",inParams:"sKey,sIV,inFile, outFile",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_SymDecryptFileEx",inParams:"sKey,sIV,inFile, outFile",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_SymDecryptFileToDataEx",inParams:"sKey,sIV,inFile",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOFX_SymEncryptDataWithPadding",inParams:"sKey,sIV,padding,indata",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOFX_SymDecryptDataWithPadding",inParams:"sKey,sIV,padding,indata",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOFX_SymEncryptFileWithPadding",inParams:"sKey,sIV,padding,inFile, outFile",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOFX_SymDecryptFileWithPadding",inParams:"sKey,sIV,padding,inFile, outFile",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOFX_VerifySignedDataWithID",inParams:"Cert, InData, SignValue,userId",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOFX_VerifySignedFileWithID",inParams:"Cert, InFile, SignValue,userId",outParamType:"bool",clsid:r.xtx_clsid}],s=0;s<i.length;s++)n(i[s]),r[i[s].funcName]=window[i[s].funcName],i[s].aliasName&&(window[i[s].aliasName]=window[i[s].funcName],r[i[s].aliasName]=window[i[s].funcName]);return!0}r(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,r){SOF_GetUserList((function(e){var t=e.retVal;while(1){var r=t.indexOf("&&&");if(r<=0)break;var n=t.substring(0,r),a=(n.substring(0,n.indexOf("||")),n.substring(n.indexOf("||")+2,n.length));GetDeviceType(a,(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:n,ctx:e.ctx});var i=t.length;t=t.substring(r+3,i)}}),{type:e,cb:t,ctx:r})}function GetUserList_USBKey(e,t){return GetUserListByType("HARD",e,t)}function GetUserList_Soft(){return GetUserListByType("SOFT",cb,ctx)}function SignByP7(e,t,r){return xtxasyn.SOF_SignMessage(r?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),r=e.substring(4,6),n=e.substring(6,8),a=e.substring(8,10),i=e.substring(10,12),s=e.substring(12,14),o=new Date;return o.setFullYear(Number(t),Number(r)-1,Number(n)),o.setHours(Number(a)),o.setMinutes(Number(i)),o.setSeconds(Number(s)),o}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),r=t.getTime()-(new Date).getTime();if(r<0)return xtxasyn.custom.errorReportFunc("您的证书已过期,请尽快到北京数字证书认证中心办理证书更新手续!"),void("function"===typeof e.ctx.cb&&e.ctx.cb(!1));if(days=parseInt(r/864e5),days>0&&days<=60)xtxasyn.custom.errorReportFunc("您的证书还有"+days+"天过期\n请您尽快到北京数字证书认证中心办理证书更新手续!");else if(0==days){var n=parseInt(r/36e5);n>0&&xtxasyn.custom.errorReportFunc("您的证书还有"+n+"小时过期\n请您尽快到北京数字证书认证中心办理证书更新手续!");var a=parseInt(r/6e4);if(!(a>1))return xtxasyn.custom.errorReportFunc("您的证书已过期,请尽快到北京数字证书认证中心办理证书更新手续!"),void("function"===typeof e.ctx.cb&&e.ctx.cb(!1));xtxasyn.custom.errorReportFunc("您的证书还有"+a+"分钟过期\n请您尽快到北京数字证书认证中心办理证书更新手续!")}xtxasyn.SOF_VerifySignedData(strServerCert,strServerRan,strServerSignedData,__loginVerifyServerSignatureCallBack,e.ctx)}function __loginCheckCertValidNotBefore(e){var t=ParseDateString(e.retVal),r=parseInt((t.getTime()-(new Date).getTime())/864e5);if(r>0)return xtxasyn.custom.errorReportFunc("您的证书尚未生效!距离生效日期还剩"+r+"天!"),void("function"===typeof e.ctx.cb&&e.ctx.cb(!1));var n=e.ctx.objForm.UserCert.value;xtxasyn.SOF_GetCertInfo(n,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,r=e.ctx.objForm;e.retVal?(r.CertID.value=t,r.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 r(){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 n;if(os=check_os(),null==t&&(t=new mTokenPlugin),e==this.GM3000)n=r()?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)n=t.SOF_LoadLibrary("SKF_APP.dll","libhunca_hsic_skf.so","libhunca_hsic_skf.dylib");else if(e==this.HT)n=t.SOF_LoadLibrary("HUNCA_HT_20522_SKF.dll","libhunca_ht_h2070f63_skf.so","libhunca_ht_h2070f63_skf.dylib");else if(e==this.K5)n=r()?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;n=r()?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!=n?-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,r){return null==t?-1:t.SOF_GetDeviceInstance(e,r)},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 r=new Array,n=e.split("&&&"),a=n.length,i=0;i<a;i++)r[i]=n[i].split("||");return r},this.SOF_ExportUserCert=function(e,r){return null==t?null:t.SOF_ExportUserCert(e,r)},this.SOF_GetDeviceInfo=function(e){return null==t?null:t.SOF_GetDeviceInfo(e)},this.SOF_GetCertInfo=function(e,r){return null==t?null:t.SOF_GetCertInfo(e,r)},this.SOF_GetCertInfoByOid=function(e,r){return null==t?null:t.SOF_GetCertInfoByOid(e,r)},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,r){return null==t?-1:t.SOF_ChangePassWd(e,r)},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,r){return null==t?-1:t.SOF_SetEncryptMethodAndIV(e,r)},this.SOF_EncryptFileToPKCS7=function(e,r,n,a){return null==t?-1:t.SOF_EncryptFileToPKCS7(e,r,n,a)},this.SOF_SignFileToPKCS7=function(e,r,n){return null==t?-1:t.SOF_SignFileToPKCS7(e,r,n)},this.SOF_VerifyFileToPKCS7=function(e,r){return null==t?-1:t.SOF_VerifyFileToPKCS7(e,r)},this.SOF_DecryptFileToPKCS7=function(e,r,n,a,i,s){return null==t?-1:t.SOF_DecryptFileToPKCS7(e,r,n,a,i,s)},this.SOF_DigestData=function(e,r,n){return null==t?null:t.SOF_DigestData(e,r,n)},this.SOF_SignData=function(e,r,n,a){return null==t?null:t.SOF_SignData(e,r,n,a)},this.SOF_SignDataInteractive=function(e,r,n,a){return null==t?null:t.SOF_SignDataInteractive(e,r,n,a)},this.SOF_SignDataToPKCS7=function(e,r,n,a){return null==t?null:t.SOF_SignDataToPKCS7(e,r,n,a)},this.SOF_VerifyDataToPKCS7=function(e,r,n){return null==t?-1:t.SOF_VerifyDataToPKCS7(e,r,n)},this.SOF_VerifySignedData=function(e,r,n,a){return null==t?-1:t.SOF_VerifySignedData(e,r,n,a)},this.SOF_EncryptDataPKCS7=function(e,r,n){return null==t?null:t.SOF_EncryptDataPKCS7(e,r,n)},this.SOF_DecryptDataPKCS7=function(e,r,n){return null==t?null:t.SOF_DecryptDataPKCS7(e,r,n)},this.SOF_GenRemoteUnblockRequest=function(){return null==t?null:t.SOF_GenRemoteUnblockRequest()},this.SOF_GenResetpwdResponse=function(e,r,n){return null==t?null:t.SOF_GenResetpwdResponse(e,r,n)},this.SOF_RemoteUnblockPIN=function(e){return null==t?null:t.SOF_RemoteUnblockPIN(e)},this.SOF_SignDataToPKCS7=function(e,r,n,a){return null==t?null:t.SOF_SignDataToPKCS7(e,r,n,a)},this.SOF_VerifyDataToPKCS7=function(e,r,n){return null==t?null:t.SOF_VerifyDataToPKCS7(e,r,n)},this.SOF_ExportPubKey=function(e,r,n){return null==t?null:t.SOF_ExportPubKey(e,r,n)},this.SOF_EncryptByPubKey=function(e,r,n){return null==t?null:t.SOF_EncryptByPubKey(e,r,n)},this.SOF_DecryptByPrvKey=function(e,r,n){return null==t?null:t.SOF_DecryptByPrvKey(e,r,n)},this.SOF_GenerateP10Request=function(e,r,n,a,i,s){return null==t?null:t.SOF_GenerateP10Request(e,r,n,a,i,s)},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,r){return null==t?null:t.SOF_SignByCert(e,r)},this.SOF_VerifyByCert=function(e,r,n){return null==t?null:t.SOF_VerifyByCert(e,r,n)},this.SOF_ImportCert=function(e,r,n){return null==t?null:t.SOF_ImportCert(e,r,n)},this.SOF_ImportCryptoCertAndKey=function(e,r,n,a,i,s,o){return null==t?null:t.SOF_ImportCryptoCertAndKey(e,r,n,a,i,s,o)},this.SOF_VerifyByExtCert=function(e,r,n,a){return null==t?null:t.SOF_VerifyByExtCert(e,r,n,a)},this.SOF_GenerateRandom=function(e){return null==t?null:t.SOF_GenerateRandom(e)},this.SOF_SymEncryptFile=function(e,r,n,a){return null==t?null:t.SOF_SymEncryptFile(e,r,n,a)},this.SOF_SymDecryptFile=function(e,r,n,a){return null==t?null:t.SOF_SymDecryptFile(e,r,n,a)},this.SOF_SymEncryptData=function(e,r){return null==t?null:t.SOF_SymEncryptData(e,r)},this.SOF_SymDecryptData=function(e,r){return null==t?null:t.SOF_SymDecryptData(e,r)},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,r,n){return null==t?null:t.SOF_ReadFile(e,Number(r),Number(n))},this.SOF_WriteFile=function(e,r,n){return null==t?null:t.SOF_WriteFile(e,r,n)},this.SOF_CreateFile=function(e,r,n,a){return null==t?null:t.SOF_CreateFile(e,r,n,a)},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,r=String.prototype.split,n=/()??/.exec("")[1]===e;return t=function(t,a,i){if("[object RegExp]"!==Object.prototype.toString.call(a))return r.call(t,a,i);var s,o,c,u,l=[],f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.extended?"x":"")+(a.sticky?"y":""),m=0;a=new RegExp(a.source,f+"g");t+="",n||(s=new RegExp("^"+a.source+"$(?!\\s)",f)),i=i===e?-1>>>0:i>>>0;while(o=a.exec(t)){if(c=o.index+o[0].length,c>m&&(l.push(t.slice(m,o.index)),!n&&o.length>1&&o[0].replace(s,(function(){for(var t=1;t<arguments.length-2;t++)arguments[t]===e&&(o[t]=e)})),o.length>1&&o.index<t.length&&Array.prototype.push.apply(l,o.slice(1)),u=o[0].length,m=c,l.length>=i))break;a.lastIndex===o.index&&a.lastIndex++}return m===t.length?!u&&a.test("")||l.push(""):l.push(t.slice(m)),l.length>i?l.slice(0,i):l},String.prototype.split=function(e,r){return t(this,e,r)},t}();var linuxWin=0,os;function mTokenPlugin(){var _xmlhttp,retJSON="",_curDevName;function AjaxIO(e){if("id_mPluginV2Router"==os){var t=null,r="http://127.0.0.1:51235/alpha";t=document.getElementById("id_mPluginV2Router"),null==t&&alert("无法获取到插件,请确认已经安装好插件!");var n=e;return retJSON=t.invoke(r,n),retJSON}{var a="http://127.0.0.1:51235/alpha";let t=e;null==_xmlhttp&&(_xmlhttp=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP")),_xmlhttp.open("POST",a,!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,r){var n={"./admin.jpg":6296,"./personal.jpg":1865,"./personal1.jpg":456,"./personal2.jpg":6964};function a(e){var t=i(e);return r(t)}function i(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}a.keys=function(){return Object.keys(n)},a.resolve=i,e.exports=a,a.id=7021},3284:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAAVCAYAAACkCdXRAAAAAXNSR0IArs4c6QAAAeFJREFUOE+tlLtrFFEUh7/fjEWK/AEWio2QSrKFVhq46wNsBAuLFAHdh5DCMmJAxBEUC7VWdDcb0CKloGDhYy8YsbEwIGhaiWBpkcIimSMzzqy7s8lmjA4MF+45883vPMWIp9q2CYNjBOwjZk2w3G1odbtPtJXheMsOxAGLgNvC/jwImX1zXt+KtiFYqkZ4YC/GGmKJmFUCJoCZ9B6+y3BFlQMwF9ke9vM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iyW+aIGFhyPOqodPExWdDweo+vnXJn+YNGrcTiGnNL7bjlIqMNhEWQAS22pCbKaJ6KvdVuurbkbegP6fahbS6Z7sjAOCSR5kHkH9Ppis5dRsjkMKxnO/EivZ4+G/HpTDnwmImFH7NOny09Tvuf2/GNbp+mW2mb/AAP8zk96oLFutVM48Qs08R36RFqqkSnqbFRT4bcdo6lJHIWFypR/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/IyMJeyZVjQFXAbcCtwCXjHPO3cDL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mdI06MW4QucpGkCB2sXoPLQU1V+AfKNQpgq7Tz9C5EHqmtYU+ksvw81bVIAGTqDtny4GWYTozSANhS16rLu0DbWf6Iqvk/qmif8TXcMtxzfm7Z99GzK3IWK/aTbeHymw1OAliG1g6ox/FGp8x4I++31oEjQSA6pHaziROh88O3yfCRo0mYnatf/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//EADARAAEDAgQEAwc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2OmnhfhKFcYo/LWtaEnIQVeDPfAA39aFXS7vx3f4kpCiP8sb+9EeLEjQWERYcdtllsYShCQAPtrVY8dmI2GWEhKRyAGAKVXHFuqK3Dknqam12qFf/9k="}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.exports}!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 r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}}(),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__.p=""}();var __webpack_exports__={};return function(){"use strict";if(__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:function(){return U}}),"undefined"!==typeof window){var e=window.document.currentScript,t=e&&e.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);t&&(__webpack_require__.p=t[1])}var r=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)},n=[],a=(__webpack_require__(7658),{name:"YcSlideVerify",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")},onFail(){},onAgain(){},onRefresh(){},onFulfilled(){},handleClose(){this.$emit("close")}}}),i=a;function s(e,t,r,n,a,i,s,o){var c,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=r,u._compiled=!0),n&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),s?(c=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__),a&&a.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},u._ssrRegister=c):a&&(c=o?function(){a.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:a),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(e,t){return c.call(t),l(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,c):[c]}return{exports:e,options:u}}var o=s(i,r,n,!1,null,"33a7114a",null),c=o.exports,u=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,json:e.json,regular:e.regular},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)},l=[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("在线客服")])])}],f=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(r,n){return t("div",{key:n,class:["message",r.id]},[t("img",{staticClass:"avatar",attrs:{src:__webpack_require__(7021)(`./${r.id}.jpg`)}}),t("div",{staticClass:"content"},[e._l(r.msg,(function(n,a){return t("span",{key:n+a,class:r.msg.length>1?"href":"",domProps:{innerHTML:e._s((r.msg.length>1?1+a+". ":" ")+n)},on:{click:function(t){r.msg.length>1&&e.regularClick(n)}}})})),r.based?t("div",{staticClass:"based",on:{click:function(t){return e.handExpand(r)}}},[t("span",[e._v("依据")]),t("span",{class:{"is-active":r.isActive}},[e._v(e._s(r.based)),t("i",{staticClass:"el-icon-d-arrow-right"})])]):e._e()],2)])})),0),t("nav",e._l(e.regular,(function(r,n){return t("el-button",{key:r+n,attrs:{size:"mini",round:""},on:{click:function(t){return e.regularClick(r)}}},[e._v(e._s(r))])})),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)},m=[],S={props:{visible:Boolean,jumpPage:String,json:String,title:String,commit:String,regular:Array},data(){return{textareaValue:"",messagelist:[{id:"admin",msg:["您好,38号客服很高兴为你服务!"],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){const t=this.questions.filter((t=>t.faq.replace(/[^\w\u4E00-\u9FA5]/g,"").toLowerCase().includes(e.replace(/[^\w\u4E00-\u9FA5]/g,"").toLowerCase())));let[r,n]=["",""];t.length>1?r=t.reduce(((e,t)=>[...e,t.faq]),[]):1==t.length?[r,n]=[t[0].msg,t[0].based]:r=["您好","你好"].includes(e.replace(/[^\w\u4E00-\u9FA5]/g,""))?"您好!":'请提关键词问题?<br/> 比如: 税率<br/><br/><a href="tel:4000770168">客服热线:<span style="color: #FF575F;">400 0770 168</span></a>',this.add(r,"admin",null,n)},add(e,t="personal",r,n=""){this.messagelist.push({id:t,msg:Array.isArray(e)?e:[e],based:n,isActive:!1}),this.$nextTick((()=>{r&&r(),this.$refs.main.scrollTop=this.$refs.main.scrollHeight}))},enlarge(){window.open(this.jumpPage,"_blank")},handExpand(e){e.isActive=!e.isActive}}},d={name:"ChatMini",mixins:[S]},p=d,y=s(p,f,m,!1,null,"755436e0",null),_=y.exports,h={name:"YcCustomerService",components:{chatVue:_},props:{jumpPage:String,title:String,json:String,regular:Array},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"}},g=h,x=s(g,u,l,!1,null,"849349a0",null),v=x.exports,O=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("小优为您提供24小时服务")])]),t("div",{staticClass:"main"},[t("div",[t("main",{ref:"main"},[t("p",[e._v("今天"+e._s(e.currData))]),e._l(e.messagelist,(function(r,n){return t("div",{key:n,class:["message",r.id]},[t("img",{staticClass:"avatar",attrs:{src:__webpack_require__(7021)(`./${r.id}.jpg`)}}),t("div",{staticClass:"content"},[e._l(r.msg,(function(n,a){return t("span",{key:n+a,class:r.msg.length>1?"href":"",domProps:{innerHTML:e._s((r.msg.length>1?1+a+". ":" ")+n)},on:{click:function(t){r.msg.length>1&&e.regularClick(n)}}})})),r.based?t("div",{staticClass:"based",on:{click:function(t){return t.preventDefault(),e.handExpand(r)}}},[t("span",[e._v("依据")]),t("span",{class:{"is-active":r.isActive}},[e._v(e._s(r.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(r,n,a){return t("el-collapse-item",{key:n,attrs:{name:a}},[t("template",{slot:"title"},[t("img",{attrs:{src:__webpack_require__(4800)}}),e._v(e._s(n)+" ")]),e._l(r,(function(r){return t("div",{key:r,domProps:{innerHTML:e._s(r)},on:{click:function(t){return e.regularClick(r)}}})}))],2)})),1)],1)])])])},A=[],N={name:"YcQuestion",mixins:[S],data(){return{activeNames:[1]}},computed:{currData(){const e=new Date;return`${e.getHours()}:${e.getMinutes()}`},questionsList(){return this.questions.reduce(((e,t)=>(e.hasOwnProperty(t.type)?e[t.type].push(t.faq):e[t.type]=[t.faq],e)),{})}}},D=N,F=s(D,O,A,!1,null,"6185ef7a",null),b=F.exports,C=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)},P=[],E=__webpack_require__(353),I="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function j(e){var t,r,n,a,i,s,o,c="",u=0;e=T(e);while(u<e.length)t=e.charCodeAt(u++),r=e.charCodeAt(u++),n=e.charCodeAt(u++),a=t>>2,i=(3&t)<<4|r>>4,s=(15&r)<<2|n>>6,o=63&n,isNaN(r)?s=o=64:isNaN(n)&&(o=64),c=c+I.charAt(a)+I.charAt(i)+I.charAt(s)+I.charAt(o);return c}function T(e){var t=""+e;t=t.replace(/\r\n/g,"\n");for(var r="",n=0;n<t.length;n++){var a=t.charCodeAt(n);a<128?r+=String.fromCharCode(a):a>127&&a<2048?(r+=String.fromCharCode(a>>6|192),r+=String.fromCharCode(63&a|128)):(r+=String.fromCharCode(a>>12|224),r+=String.fromCharCode(a>>6&63|128),r+=String.fromCharCode(63&a|128))}return r}function w(){var e=new E.R("mTokenPlugin"),t=null;t="Win32"==navigator.platform||"Windows"==navigator.platform?Array("GM3000","HT","SJK1137"):Array("HT");var r="",n=0,a=1,i=1;let s=1025;var o="1234567812345678",c="控件加载失败,错误码:",u="未找到UKey!\n1.请确认是否安装最新驱动!\n2.计算机是否插入湖南CA UKey!",l="USBKey实例化失败,请确认此UKey是否插入计算机!\n点击‘刷新’按钮,更新设备列表。\n错误码:",f="Ukey密码必须为4~16位!",m="UKey密码错误",S="UKey密码修改失败",d="UKey不存在,请确认此UKey是否插入计算机,并点击'刷新'按钮,更新设备列表!",p="请点击‘刷新’按钮,更新设备列表并选择相应设备!",y="证书获取失败,请加检测Key中是否存在证书!",_="设置摘要算法失败,请重新刷新浏览器!",h="设置用户ID失败,请重新刷新浏览器",g="签名失败,待签名原文不能为空",x="签名失败,返回错误码:",v="请点击‘刷新’按钮,更新设备列表并选择相应设备!",O="证书G项信息转化证书名称失败,请点击“刷新”按钮!",A="加载国密库失败!",N="加密失败:待加密原文不能为空!",D="解密失败:待解密密文不能为空!",F="解密失败:请确认密文是否完整!\n解密所采用的Ukey是否为加密时的Ukey!",b="申请解锁请求失败!",C="此型号Ukey不支持解锁!",P="Ukey解锁失败!",I=null,T=null,w=null,G=null,k=null,B=null,R=null,J=null;function L(t){var n=0;return"GM3000"==t?n=e.SOF_LoadLibrary(e.GM3000):"HT"==t?n=e.SOF_LoadLibrary(e.HT):"SJK1137"==t&&(n=e.SOF_LoadLibrary(e.SJK1137)),0==n||(r=c+e.SOF_GetLastError(),!1)}function K(){var t="";return t=e.SOF_EnumDevice(),null==t||0==t.length?(r=u,null):t}function V(t){var n=0;return n=e.SOF_GetDeviceInstance(t,""),0==n||(r=l+e.SOF_GetLastError(),!1)}function U(){var t="";return t=e.SOF_GetUserList(),null==t||0==t.length?(r="USBkey中未找到证书!",null):t}function M(t){var n=0,a=""+t,i=0;return null==a||0==a.length||a.length<4||a.length>16?(r=f,!1):(n=e.SOF_Login(a),0==n||(i=Q(),r=i>0?m+",还剩 "+i+" 次重试机会!":"UKey已经锁死,请联系管理员进行解锁!",!1))}function H(t,n){var a=0,i=""+t,s=""+n,o=0;return null==i||0==i.length||null==s||0==s.length||i.length<4||i.length>16||s.length<4||s.length>16?(r=f,!1):(a=e.SOF_ChangePassWd(i,s),0==a||(o=Q(),r=o>0?S+",还剩 "+o+" 次重试机会!":"UKey已经锁死,请联系管理员进行解锁!",!1))}function Q(){var t=0;return t=e.SOF_GetPinRetryCount(),t}function W(){var t=null;return t=e.SOF_GetDeviceInfo(e.SGD_DEVICE_SERIAL_NUMBER),t}function q(t,n){var a;return a=e.SOF_ExportUserCert(t,n),null==a||0==a.length?(r=y,null):a}function X(t,n){var a=1;return void 0==t||null==t?(r="请设置加密方式!",!1):(a=e.SOF_SetEncryptMethodAndIV(t,j(n)),0==a||(r=e.SOF_GetLastError(),!1))}function Y(t){var n=0;return n=e.SOF_SetDigestMethod(t),0==n||(r=_,!1)}function Z(){var t=0;return t=e.SOF_SetUserID(o),0==t||(r=h,!1)}function z(t,n){var a="",i="",s="";return s=""+n,0==s.length?(r=N,""):(i=j(s),a=e.SOF_EncryptDataPKCS7(t,i,n.length),null==a||0==a.length?(r="加密失败,"+e.SOF_GetLastError(),""):a)}function $(t,n,a){var i="",s="";if(i=""+a,null==t||0==t.length)return r="应用名称不能为空!","";if(0==i.length)return r=D,"";try{s=e.SOF_DecryptDataPKCS7(t,n,i)}catch(o){s=""}return void 0==s||null==s||""==s?(r=F,""):s}function ee(t,n,a,i){var s=null,o=null,c=""+a;return null==c||0==c.length?(r=g,!1):(o=j(c),s=e.SOF_SignData(t,n,j(o),o.length),null==s||0==s.length?(r=x+SOF_GetLastError(),!1):(w=i,T=s,!0))}function te(t){var r,n,a=null,i=null,s=null,o=null,c=null;if(null==t||0==t.length)return!1;k="",G="",B="",a=e.SOF_GetCertInfo(t,e.SGD_CERT_SERIAL),G=ue(a),i=e.SOF_GetCertInfo(t,e.SGD_CERT_SUBJECT),B=i,o=e.SOF_GetCertInfo(t,e.SGD_CERT_VALID_TIME),R=o,c=e.SOF_GetCertInfo(t,e.SGD_CERT_NOT_BEFORE),J=c,s=i.split(",");for(var u=0;u<s.length;u++)if(-1!=s[u].indexOf("=")&&(r=s[u].split("=")[0],n=s[u].split("=")[1],"GN"==r)){k=n;break}return!0}function re(){e.SOF_LogOut()}function ne(){var t=e.SOF_GenRemoteUnblockRequest();return null==t||""==t?(r=b,""):t}function ae(t){var n=!1;return null==t||0==t.length?(r="解锁失败解:响应不能为空!",!1):(n=e.SOF_RemoteUnblockPIN(t),0==n||(r=P,!1))}function ie(e,t,r){var n=[],a=Math.max(e.length,t.length),i=0,s=0;while(s<a||i){var o=s<e.length?e[s]:0,c=s<t.length?t[s]:0,u=i+o+c;n.push(u%r),i=Math.floor(u/r),s++}return n}function se(e,t,r){if(e<0)return null;if(0==e)return[];var n=[],a=t;while(1){if(1&e&&(n=ie(n,a,r)),e>>=1,0===e)break;a=ie(a,a,r)}return n}function oe(e,t){for(var r=e.split(""),n=[],a=r.length-1;a>=0;a--){var i=parseInt(r[a],t);if(isNaN(i))return null;n.push(i)}return n}function ce(e,t,r){var n=oe(e,t);if(null===n)return null;for(var a=[],i=[1],s=0;s<n.length;s++)n[s]&&(a=ie(a,se(n[s],i,r),r)),i=se(t,i,r);var o="";for(let c=a.length-1;c>=0;c--)o+=a[c].toString(r);return o}function ue(e){return"0x"===e.substring(0,2)&&(e=e.substring(2)),e=e.toLowerCase(),ce(e,16,10)}this.Hunca_GetLastError=function(){return r},this.Hunca_GetUserList=function(){var e=null,n=null,a=null,i=null;w=null,T=null,I=new Array;for(var s=0;s<t.length;s++){var o=t[s];if(L(o)&&(e=K(),null!=e))for(var c=0;c<e.length;c++){var l=new Object;if(!V(e[c]))break;i=U(),null==i&&0==i.length||(n=i[0][1],a=i[0][0],l.libraryName=o,l.serial=e[c],l.userName=a,l.containerName=n,I.push(l),re())}}var f=new Array;for(let t=0;t<I.length;t++)f[t]=I[t].userName;return 0==f.length?(r=u,""):f},this.Hunca_GetUserListGN=function(){var e=null,r=null,n=null,i=null,s=null,o="";I=new Array;for(var c=0;c<t.length;c++){var l=t[c];if(L(l)&&(e=K(),null!=e))for(var f=0;f<e.length;f++){k=null,G=null,o=e[f];var m=new Object;if(!V(o))break;i=U(),null==i&&0==i.length||(r=i[0][1],n=i[0][0],m.libraryName=l,m.serial=e[f],m.userName=n,m.containerName=r,s=q(m.containerName,a),te(s)&&(m.subjectGN=k,I.push(m),re()))}}var S=new Array;for(let t=0;t<I.length;t++)S[t]=I[t].subjectGN;return 0==S.length?(u,""):S},this.Hunca_userNameGNToUserName=function(e){var t=null;r="",null!=e&&0!=e.length||(r=v);for(var n=0;n<I.length;n++)if(e==I[n].subjectGN){t=I[n].userName;break}return null==t||0==t.length?(r=O,null):t},this.Hunca_GenRemoteUnblockRequest=function(e){var t=null,n=null,a="";if(r="",null==e||null==e.length)return r=p,!1;if(null==I||0==I.length)return r=u,!1;for(var i=0;i<I.length;i++)if(n=I[i],n.userName==e){t=n;break}return null==t?(r=d,!1):"GM3000"!=t.libraryName?(r=C,!1):L(t.libraryName)?!!V(t.serial)&&(null!=U()&&(a=ne(),a)):(r=A,!1)},this.HUnca_GetDeviceNumber=function(e){var t=null;if(null==e||null==e.length)return r=p,!1;if(null==I||0==I.length)return r=u,!1;for(var n=0;n<I.length;n++){let t=I[n];if(t.userName==e){tokenInfo=t;break}}return null==tokenInfo?(r=d,!1):L(tokenInfo.libraryName)?!!V(tokenInfo.serial)&&(t=W(),t+""):(r=A,!1)},this.Hunca_RemoteUnlockPIN=function(e,t){var n=null,a=null,i=!1;if(r="",null==e||null==e.length)return r=p,!1;if(null==I||0==I.length)return r=u,!1;for(var s=0;s<I.length;s++)if(a=I[s],a.userName==e){n=a;break}return null==n?(r=d,!1):"GM3000"!=n.libraryName?(r=C,!1):L(n.libraryName)?!!V(n.serial)&&(null!=U()&&(i=ae(t),i)):(r=A,!1)},this.Hunca_ChangeUserPin=function(e,t,n){var a=null,i=null;if(r="",null==e||null==e.length)return r=p,!1;if(null==I||0==I.length)return r=u,!1;for(var s=0;s<I.length;s++)if(i=I[s],i.userName==e){a=i;break}return null==a?(r=d,!1):(L(a.libraryName)||(r=A),!!V(a.serial)&&(!!H(t,n)&&(re(),!0)))},this.Hunca_PKCS1=function(e,t,r){var n=null,s=null,o=null;new Object;if(null==t||null==t.length)return p,!1;if(null==I||0==I.length)return u,!1;for(var c=0;c<I.length;c++)if(s=I[c],s.userName==t){n=s;break}return null==n?(d,!1):(L(n.libraryName)||A,!!V(n.serial)&&(!!M(r)&&(o=q(n.containerName,a),null!=o&&(!!Y(i)&&(!!Z()&&(!!ee(n.containerName,i,e,o)&&(!!te(o)&&(re(),!0))))))))},this.Hunca_GetSignData=function(){return T},this.Hunca_GetSignCert=function(){return w},this.Hunca_GetSignCertSn=function(){return G},this.Hunca_GetSignCertSubject=function(){return B},this.Hunca_GetValidTime=function(){return R},this.HUnca_GetNotBeforeTime=function(){return J},this.Hunca_DealCertInfo=function(e){var t=null,n=null,i=null;if(r="",signResultInfo=null,certInfo=new Object,null==e||null==e.length)return r=p,!1;if(null==I||0==I.length)return r=u,!1;for(var s=0;s<I.length;s++)if(n=I[s],n.userName==e){t=n;break}return null==t?(r=d,!1):L(t.libraryName)?!!V(t.serial)&&(i=q(t.containerName,a),null!=i&&0!=i.length&&(te(i),re(),!0)):(r=A,!1)},this.Hunca_EncryptDataPKCS7=function(e,t,r,a){var i=null,o=null,c=null,l="",f="";new Object;if(null==t||null==t.length)return p,"";if(null==I||0==I.length)return u,"";for(var m=0;m<I.length;m++)if(o=I[m],o.userName==t){i=o;break}return null==i?(d,""):L(i.libraryName)?V(i.serial)?(c=q(i.containerName,n),null==c||0==c.length?"":(l=r+"",f=a+"",null!=l&&0!=l.length||(l=s,f=""),X(l,f)?(encryptData=z(c,e),re(),encryptData):"")):"":(A,"")},this.Hunca_DecryptDataPKCS7=function(e,t,r,a,i){var o=null,c=null,l="",f="",m="",S="",y="";new Object;if(m=""+e,null==t||null==t.length)return p,"";if(null==I||0==I.length)return u,"";for(var _=0;_<I.length;_++)if(c=I[_],c.userName==t){o=c;break}if(null==o)return d,"";if(!L(o.libraryName))return A,"";if(!V(o.serial))return"";if(!M(r))return"";if(l=a+"",f=i+"",null!=l&&0!=l.length||(l=s,f=""),!X(l,f))return"";if(S=$(o.containerName,n,m),0==S.length)return"";try{y=_Base64decode(S)}catch(h){y=S,"解密失败:Base64解码失败"}return y}}__webpack_require__(9343);function G(e){let t=e.slice(0,4),r=e.slice(4,6),n=e.slice(6,8),a=e.slice(8,10),i=e.slice(10,12),s=e.slice(12);return`${t}-${r}-${n} ${a}:${i}:${s}`}var k={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 w;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 w,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 r=this.cert_subject.split(","),n={};return r.forEach((e=>{n[e.split("=")[0]]=e.split("=")[1]})),this.loginForm={cert:this.ca_cert,sign:this.sign,rn:t,caInfo:this.cert_subject,caAddr:n.ST+n.OU,caCode:n.TITLE,caName:n.GN,caSn:this.certSn,caEffectiveDate:this.cert_notBeforeTime,caExpireDate:this.cert_validTime,loginType:"3",username:n.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 r=await new Promise((e=>{window.SOF_GetUserList((function(t){e(t.retVal.split("&&&")[0].split("||")[1])}))}));var e=new Date;let n=this.loginForm.password;if(!r||!n)return;var t=navigator.platform.toLowerCase();-1!=t.indexOf("win")?window.SOF_LoginEx(r,n,0,this.login_callback,{begin:e,certId:r}):window.SOF_Login(r,n,this.login_callback,{begin:e,certId:r})}else this.msgErr("请插入CA")},login_callback(e){const t=this;var r=e.ctx.certId;e.retVal?this.BJSignData():(window.SOF_GetLastError((function(e){var r=e.retVal;79==r&&t.msgErr("请核对pin码复杂度是否符合要求")}),e.ctx),window.SOF_GetPinRetryCount(r,(function(e){var r=e.ctx.certId;t.msgErr("证书["+r+"]重试次数剩余:"+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 r=await new Promise((e=>{window.SOF_ExportUserCert(t,(function(t){e(t.retVal)}))}));if(this.form["username"]=r,r){var n={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 n){let e=await new Promise((e=>{window.SOF_GetCertInfo(r,n[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:G(this.form["caEffectiveDate"]),caExpireDate:G(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)}}},B=k,R=s(B,C,P,!1,null,"eeb04946",null),J=R.exports;const L=[c,v,b,J],K=function(e){L.forEach((t=>{e.component(t.name,t)})),"undefined"!==typeof window&&window.Vue&&K(window.Vue)};var V={install:K},U=V}(),__webpack_exports__}()}));
1
+ (function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["yc-ui2"]=t():e["yc-ui2"]=t()})("undefined"!==typeof self?self:this,(function(){return function(){var __webpack_modules__={9662:function(e,t,r){"use strict";var n=r(614),i=r(6330),a=TypeError;e.exports=function(e){if(n(e))return e;throw new a(i(e)+" is not a function")}},9670:function(e,t,r){"use strict";var n=r(111),i=String,a=TypeError;e.exports=function(e){if(n(e))return e;throw new a(i(e)+" is not an object")}},1318:function(e,t,r){"use strict";var n=r(5656),i=r(1400),a=r(6244),s=function(e){return function(t,r,s){var o,c=n(t),u=a(c),l=i(s,u);if(e&&r!==r){while(u>l)if(o=c[l++],o!==o)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:s(!0),indexOf:s(!1)}},3658:function(e,t,r){"use strict";var n=r(9781),i=r(3157),a=TypeError,s=Object.getOwnPropertyDescriptor,o=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=o?function(e,t){if(i(e)&&!s(e,"length").writable)throw new a("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},4326:function(e,t,r){"use strict";var n=r(1702),i=n({}.toString),a=n("".slice);e.exports=function(e){return a(i(e),8,-1)}},9920:function(e,t,r){"use strict";var n=r(2597),i=r(3887),a=r(1236),s=r(3070);e.exports=function(e,t,r){for(var o=i(t),c=s.f,u=a.f,l=0;l<o.length;l++){var m=o[l];n(e,m)||r&&n(r,m)||c(e,m,u(t,m))}}},8880:function(e,t,r){"use strict";var n=r(9781),i=r(3070),a=r(9114);e.exports=n?function(e,t,r){return i.f(e,t,a(1,r))}:function(e,t,r){return e[t]=r,e}},9114:function(e){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},8052:function(e,t,r){"use strict";var n=r(614),i=r(3070),a=r(6339),s=r(3072);e.exports=function(e,t,r,o){o||(o={});var c=o.enumerable,u=void 0!==o.name?o.name:t;if(n(r)&&a(r,u,o),o.global)c?e[t]=r:s(t,r);else{try{o.unsafe?e[t]&&(c=!0):delete e[t]}catch(l){}c?e[t]=r:i.f(e,t,{value:r,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return e}},3072:function(e,t,r){"use strict";var n=r(7854),i=Object.defineProperty;e.exports=function(e,t){try{i(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},9781:function(e,t,r){"use strict";var n=r(7293);e.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4154:function(e){"use strict";var t="object"==typeof document&&document.all,r="undefined"==typeof t&&void 0!==t;e.exports={all:t,IS_HTMLDDA:r}},317:function(e,t,r){"use strict";var n=r(7854),i=r(111),a=n.document,s=i(a)&&i(a.createElement);e.exports=function(e){return s?a.createElement(e):{}}},7207:function(e){"use strict";var t=TypeError,r=9007199254740991;e.exports=function(e){if(e>r)throw t("Maximum allowed index exceeded");return e}},8113:function(e){"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},7392:function(e,t,r){"use strict";var n,i,a=r(7854),s=r(8113),o=a.process,c=a.Deno,u=o&&o.versions||c&&c.version,l=u&&u.v8;l&&(n=l.split("."),i=n[0]>0&&n[0]<4?1:+(n[0]+n[1])),!i&&s&&(n=s.match(/Edge\/(\d+)/),(!n||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/),n&&(i=+n[1]))),e.exports=i},748:function(e){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(e,t,r){"use strict";var n=r(7854),i=r(1236).f,a=r(8880),s=r(8052),o=r(3072),c=r(9920),u=r(4705);e.exports=function(e,t){var r,l,m,f,d,S,h=e.target,p=e.global,y=e.stat;if(l=p?n:y?n[h]||o(h,{}):(n[h]||{}).prototype,l)for(m in t){if(d=t[m],e.dontCallGetSet?(S=i(l,m),f=S&&S.value):f=l[m],r=u(p?m:h+(y?".":"#")+m,e.forced),!r&&void 0!==f){if(typeof d==typeof f)continue;c(d,f)}(e.sham||f&&f.sham)&&a(d,"sham",!0),s(l,m,d,e)}}},7293:function(e){"use strict";e.exports=function(e){try{return!!e()}catch(t){return!0}}},4374:function(e,t,r){"use strict";var n=r(7293);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},6916:function(e,t,r){"use strict";var n=r(4374),i=Function.prototype.call;e.exports=n?i.bind(i):function(){return i.apply(i,arguments)}},6530:function(e,t,r){"use strict";var n=r(9781),i=r(2597),a=Function.prototype,s=n&&Object.getOwnPropertyDescriptor,o=i(a,"name"),c=o&&"something"===function(){}.name,u=o&&(!n||n&&s(a,"name").configurable);e.exports={EXISTS:o,PROPER:c,CONFIGURABLE:u}},1702:function(e,t,r){"use strict";var n=r(4374),i=Function.prototype,a=i.call,s=n&&i.bind.bind(a,a);e.exports=n?s:function(e){return function(){return a.apply(e,arguments)}}},5005:function(e,t,r){"use strict";var n=r(7854),i=r(614),a=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?a(n[e]):n[e]&&n[e][t]}},8173:function(e,t,r){"use strict";var n=r(9662),i=r(8554);e.exports=function(e,t){var r=e[t];return i(r)?void 0:n(r)}},7854:function(e,t,r){"use strict";var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||function(){return this}()||this||Function("return this")()},2597:function(e,t,r){"use strict";var n=r(1702),i=r(7908),a=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return a(i(e),t)}},3501:function(e){"use strict";e.exports={}},4664:function(e,t,r){"use strict";var n=r(9781),i=r(7293),a=r(317);e.exports=!n&&!i((function(){return 7!==Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},8361:function(e,t,r){"use strict";var n=r(1702),i=r(7293),a=r(4326),s=Object,o=n("".split);e.exports=i((function(){return!s("z").propertyIsEnumerable(0)}))?function(e){return"String"===a(e)?o(e,""):s(e)}:s},2788:function(e,t,r){"use strict";var n=r(1702),i=r(614),a=r(5465),s=n(Function.toString);i(a.inspectSource)||(a.inspectSource=function(e){return s(e)}),e.exports=a.inspectSource},9909:function(e,t,r){"use strict";var n,i,a,s=r(4811),o=r(7854),c=r(111),u=r(8880),l=r(2597),m=r(5465),f=r(6200),d=r(3501),S="Object already initialized",h=o.TypeError,p=o.WeakMap,y=function(e){return a(e)?i(e):n(e,{})},_=function(e){return function(t){var r;if(!c(t)||(r=i(t)).type!==e)throw new h("Incompatible receiver, "+e+" required");return r}};if(s||m.state){var g=m.state||(m.state=new p);g.get=g.get,g.has=g.has,g.set=g.set,n=function(e,t){if(g.has(e))throw new h(S);return t.facade=e,g.set(e,t),t},i=function(e){return g.get(e)||{}},a=function(e){return g.has(e)}}else{var v=f("state");d[v]=!0,n=function(e,t){if(l(e,v))throw new h(S);return t.facade=e,u(e,v,t),t},i=function(e){return l(e,v)?e[v]:{}},a=function(e){return l(e,v)}}e.exports={set:n,get:i,has:a,enforce:y,getterFor:_}},3157:function(e,t,r){"use strict";var n=r(4326);e.exports=Array.isArray||function(e){return"Array"===n(e)}},614:function(e,t,r){"use strict";var n=r(4154),i=n.all;e.exports=n.IS_HTMLDDA?function(e){return"function"==typeof e||e===i}:function(e){return"function"==typeof e}},4705:function(e,t,r){"use strict";var n=r(7293),i=r(614),a=/#|\.prototype\./,s=function(e,t){var r=c[o(e)];return r===l||r!==u&&(i(t)?n(t):!!t)},o=s.normalize=function(e){return String(e).replace(a,".").toLowerCase()},c=s.data={},u=s.NATIVE="N",l=s.POLYFILL="P";e.exports=s},8554:function(e){"use strict";e.exports=function(e){return null===e||void 0===e}},111:function(e,t,r){"use strict";var n=r(614),i=r(4154),a=i.all;e.exports=i.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:n(e)||e===a}:function(e){return"object"==typeof e?null!==e:n(e)}},1913:function(e){"use strict";e.exports=!1},2190:function(e,t,r){"use strict";var n=r(5005),i=r(614),a=r(7976),s=r(3307),o=Object;e.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return i(t)&&a(t.prototype,o(e))}},6244:function(e,t,r){"use strict";var n=r(7466);e.exports=function(e){return n(e.length)}},6339:function(e,t,r){"use strict";var n=r(1702),i=r(7293),a=r(614),s=r(2597),o=r(9781),c=r(6530).CONFIGURABLE,u=r(2788),l=r(9909),m=l.enforce,f=l.get,d=String,S=Object.defineProperty,h=n("".slice),p=n("".replace),y=n([].join),_=o&&!i((function(){return 8!==S((function(){}),"length",{value:8}).length})),g=String(String).split("String"),v=e.exports=function(e,t,r){"Symbol("===h(d(t),0,7)&&(t="["+p(d(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!s(e,"name")||c&&e.name!==t)&&(o?S(e,"name",{value:t,configurable:!0}):e.name=t),_&&r&&s(r,"arity")&&e.length!==r.arity&&S(e,"length",{value:r.arity});try{r&&s(r,"constructor")&&r.constructor?o&&S(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(i){}var n=m(e);return s(n,"source")||(n.source=y(g,"string"==typeof t?t:"")),e};Function.prototype.toString=v((function(){return a(this)&&f(this).source||u(this)}),"toString")},4758:function(e){"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},3070:function(e,t,r){"use strict";var n=r(9781),i=r(4664),a=r(3353),s=r(9670),o=r(4948),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,m="enumerable",f="configurable",d="writable";t.f=n?a?function(e,t,r){if(s(e),t=o(t),s(r),"function"===typeof e&&"prototype"===t&&"value"in r&&d in r&&!r[d]){var n=l(e,t);n&&n[d]&&(e[t]=r.value,r={configurable:f in r?r[f]:n[f],enumerable:m in r?r[m]:n[m],writable:!1})}return u(e,t,r)}:u:function(e,t,r){if(s(e),t=o(t),s(r),i)try{return u(e,t,r)}catch(n){}if("get"in r||"set"in r)throw new c("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},1236:function(e,t,r){"use strict";var n=r(9781),i=r(6916),a=r(5296),s=r(9114),o=r(5656),c=r(4948),u=r(2597),l=r(4664),m=Object.getOwnPropertyDescriptor;t.f=n?m:function(e,t){if(e=o(e),t=c(t),l)try{return m(e,t)}catch(r){}if(u(e,t))return s(!i(a.f,e,t),e[t])}},8006:function(e,t,r){"use strict";var n=r(6324),i=r(748),a=i.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,a)}},5181:function(e,t){"use strict";t.f=Object.getOwnPropertySymbols},7976:function(e,t,r){"use strict";var n=r(1702);e.exports=n({}.isPrototypeOf)},6324:function(e,t,r){"use strict";var n=r(1702),i=r(2597),a=r(5656),s=r(1318).indexOf,o=r(3501),c=n([].push);e.exports=function(e,t){var r,n=a(e),u=0,l=[];for(r in n)!i(o,r)&&i(n,r)&&c(l,r);while(t.length>u)i(n,r=t[u++])&&(~s(l,r)||c(l,r));return l}},5296:function(e,t){"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,i=n&&!r.call({1:2},1);t.f=i?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},2140:function(e,t,r){"use strict";var n=r(6916),i=r(614),a=r(111),s=TypeError;e.exports=function(e,t){var r,o;if("string"===t&&i(r=e.toString)&&!a(o=n(r,e)))return o;if(i(r=e.valueOf)&&!a(o=n(r,e)))return o;if("string"!==t&&i(r=e.toString)&&!a(o=n(r,e)))return o;throw new s("Can't convert object to primitive value")}},3887:function(e,t,r){"use strict";var n=r(5005),i=r(1702),a=r(8006),s=r(5181),o=r(9670),c=i([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=a.f(o(e)),r=s.f;return r?c(t,r(e)):t}},4488:function(e,t,r){"use strict";var n=r(8554),i=TypeError;e.exports=function(e){if(n(e))throw new i("Can't call method on "+e);return e}},6200:function(e,t,r){"use strict";var n=r(2309),i=r(9711),a=n("keys");e.exports=function(e){return a[e]||(a[e]=i(e))}},5465:function(e,t,r){"use strict";var n=r(7854),i=r(3072),a="__core-js_shared__",s=n[a]||i(a,{});e.exports=s},2309:function(e,t,r){"use strict";var n=r(1913),i=r(5465);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.33.0",mode:n?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"})},6293:function(e,t,r){"use strict";var n=r(7392),i=r(7293),a=r(7854),s=a.String;e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol("symbol detection");return!s(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},1400:function(e,t,r){"use strict";var n=r(9303),i=Math.max,a=Math.min;e.exports=function(e,t){var r=n(e);return r<0?i(r+t,0):a(r,t)}},5656:function(e,t,r){"use strict";var n=r(8361),i=r(4488);e.exports=function(e){return n(i(e))}},9303:function(e,t,r){"use strict";var n=r(4758);e.exports=function(e){var t=+e;return t!==t||0===t?0:n(t)}},7466:function(e,t,r){"use strict";var n=r(9303),i=Math.min;e.exports=function(e){return e>0?i(n(e),9007199254740991):0}},7908:function(e,t,r){"use strict";var n=r(4488),i=Object;e.exports=function(e){return i(n(e))}},7593:function(e,t,r){"use strict";var n=r(6916),i=r(111),a=r(2190),s=r(8173),o=r(2140),c=r(5112),u=TypeError,l=c("toPrimitive");e.exports=function(e,t){if(!i(e)||a(e))return e;var r,c=s(e,l);if(c){if(void 0===t&&(t="default"),r=n(c,e,t),!i(r)||a(r))return r;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),o(e,t)}},4948:function(e,t,r){"use strict";var n=r(7593),i=r(2190);e.exports=function(e){var t=n(e,"string");return i(t)?t:t+""}},6330:function(e){"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(r){return"Object"}}},9711:function(e,t,r){"use strict";var n=r(1702),i=0,a=Math.random(),s=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++i+a,36)}},3307:function(e,t,r){"use strict";var n=r(6293);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(e,t,r){"use strict";var n=r(9781),i=r(7293);e.exports=n&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},4811:function(e,t,r){"use strict";var n=r(7854),i=r(614),a=n.WeakMap;e.exports=i(a)&&/native code/.test(String(a))},5112:function(e,t,r){"use strict";var n=r(7854),i=r(2309),a=r(2597),s=r(9711),o=r(6293),c=r(3307),u=n.Symbol,l=i("wks"),m=c?u["for"]||u:u&&u.withoutSetter||s;e.exports=function(e){return a(l,e)||(l[e]=o&&a(u,e)?u[e]:m("Symbol."+e)),l[e]}},7658:function(e,t,r){"use strict";var n=r(2109),i=r(7908),a=r(6244),s=r(3658),o=r(7207),c=r(7293),u=c((function(){return 4294967297!==[].push.call({length:4294967296},1)})),l=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}},m=u||!l();n({target:"Array",proto:!0,arity:1,forced:m},{push:function(e){var t=i(this),r=a(t),n=arguments.length;o(r+n);for(var c=0;c<n;c++)t[r]=arguments[c],r++;return s(t,r),r}})},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 r;r=util.checkLocationIsHttps()?"wss://"+t:"ws://"+e;var n={socket:void 0,wsMessageQueue:new xtxasyn.HashMap,wsMessageQueueId:0,wsEventQueue:new xtxasyn.HashMap,wsURL:r,wsCacheMessage:[]};xtxasyn.wsObject=n,xtxasyn.wsObject.wsEventQueue.put("onusbkeychange",util.evalFunction(xtxasyn.custom.defaultUsbkeyChange));try{n.socket=new WebSocket(r)}catch(i){return util.consolelog(i),null}return n.socket.onopen=function(e){xtxasyn.util.consolelog("open websocket["+r+"] 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)}},n.socket.onclose=function(n){util.consolelog("websocket["+r+"] closed, reopen it..."),xtxasyn.wsObject=void 0,xtxasyn.XTXAppWebSocket=xtxasyn.util.loadWebSocketCtl(e,t)},n.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),r=void 0;if(!t.hasOwnProperty("call_cmd_id"))return void util.consolelog("return JSON not include call_cmd_id!!!");r=t["call_cmd_id"];var n=void 0;t.hasOwnProperty("retValue")?n=t["retValue"]:t.hasOwnProperty("retVal")&&(n=t["retVal"]);var a=void 0,s=r.toLowerCase(),o=xtxasyn.wsObject.wsEventQueue.get(s);if(o&&"function"==typeof o)o(n);else{var c=xtxasyn.wsObject.wsMessageQueue.get(r);if(!c||!c.method)return void util.consolelog("can't find call_cmd_id["+t["call_cmd_id"]+"]'s method name!!!");if(a=c.method,o=c.cb,!o||"function"!=typeof o)return void util.consolelog("can't find call_cmd_id["+t["call_cmd_id"]+"]'s call back function!!!");var u,l=c.ctx;l=l||{returnType:"string"},"bool"==l.returnType?(u="string"==typeof n?"true"==n:n,void 0==u&&(u=!1)):"number"==l.returnType?(u="string"==typeof n?Number(n):n,void 0==u&&(u=-1)):(u=n,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 m={retVal:u,ctx:l};o(m),xtxasyn.wsObject.wsMessageQueue.remove(r)}}catch(i){return}},n.socket.onerror=function(e){xtxasyn.util.consolelog(e.data)},n},util.attachWebSocketEvent=function(e,t,r){null!=e&&e.wsEventQueue.put(t.toLowerCase(),util.evalFunction(r))},util.callWebSocketMethod=function(e,t,r,n,i,a,s){if(null!=e){if(e.wsMessageQueueId++,"function"==typeof n){i=i||{},i.returnType=a;var o={cb:n,ctx:i,method:r};e.wsMessageQueue.put("i_"+e.wsMessageQueueId,o)}var c={call_cmd_id:"i_"+e.wsMessageQueueId,CLSID:t,xtx_func_name:r,func:r,URL:window.location.href};if(arguments.length>6){for(var u=1;u<=s.length;u++){var l="param_"+u;c[l]=s[u-1]}c["param"]=s}var m=xtxasyn.custom.getToken();m&&""!=m&&(c.token=m),e.socket.readyState==WebSocket.OPEN?e.socket.send(JSON.stringify(c)):e.socket.readyState==WebSocket.CONNECTING?e.wsCacheMessage.push(JSON.stringify(c)):xtxasyn.util.consolelog("Can't connect to WebSocket server["+e.wsURL+"]!!!")}},util.SynToAsyn=function(e,t,r){if("function"==typeof t){var n={retVal:e,ctx:r};t(n)}}}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 r=xtxasyn.custom;r.loginCertID=e,r.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 r=e.retVal,n=[];while(1){var i=r.indexOf("&&&");if(i<=0)break;var a=r.substring(0,i),s=a.substring(0,a.indexOf("||")),o=a.substring(a.indexOf("||")+2,a.length);n.push({certName:s,certID:o}),""!=t.hardCertListID&&xtxasyn.GetDeviceInfo(o,7,(function(e){"HARD"==e.retVal&&t.pushOneDropListBox([e.ctx],t.hardCertListID)}),{certName:s,certID:o}),""!=t.softCertListID&&xtxasyn.GetDeviceInfo(o,7,(function(e){"SOFT"==e.retVal&&t.pushOneDropListBox([e.ctx],t.softCertListID)}),{certName:s,certID:o});var c=r.length;r=r.substring(i+3,c)}""!=t.allCertListID&&t.pushOneDropListBox(n,t.allCertListID)},custom.setUserCertList=function(e,t){var r=xtxasyn.custom;t!=CERT_TYPE_ALL&&void 0!=t||(r.allCertListID=e),t==CERT_TYPE_HARD&&(r.hardCertListID=e),t==CERT_TYPE_SOFT&&(r.softCertListID=e),xtxasyn.SOF_GetUserList(r.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,r=e.custom;if(e.XTXAppCOM=t.loadIECtl(e.xtx_clsid,"XTXAppObj","SOF_GetVersion()"),null==e.XTXAppCOM)return r.errorReportFunc("加载XTXAppCOM控件失败,请确认已正确安装BJCA证书应用环境!"),!1;var n=e.XTXAppCOM;t.attachIEEvent("XTXAppObj","onUsbkeyChange",e.custom.defaultUsbkeyChange);var i=t.loadIECtl(e.getpic_clsid,"GetPicObj","Hash('0')");null==i||(n.GetPic=function(e){return i.GetPic(e)},n.Hash=function(e){return i.Hash(e)},n.ConvertPicFormat=function(e,t){return i.ConvertPicFormat(e,t)},n.ConvertGif2Jpg=function(e){return i.ConvertGif2Jpg(e)},n.GetPic1=function(e){return i.GetPic1(e)},n.ConvertPicSize=function(e,t,r){return i.ConvertPicSize(e,t,r)});var a=t.loadIECtl(e.xtx_version_clsid,"XTXVersionOBJ","GetEnvVersion()");return null==a||(n.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 r(r){var n,i=r.util;if(r.xtx_clsid="3F367B74-92D9-4C5E-AB93-234F8A91D5E6",r.getpic_clsid="3BC3C868-95B5-47ED-8686-E0E3E94EF366",r.xtx_version_clsid="574887FB-22A5-488B-A49C-2CF25F56BE68",i.checkBrowserISIE()){if(!e(r))return!1;n=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(r))return!1;n=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:r.xtx_clsid,aliasName:"SetSignMethod"},{funcName:"SOF_GetSignMethod",inParams:"",outParamType:"number",clsid:r.xtx_clsid},{funcName:"SOF_SetEncryptMethod",inParams:"EncryptMethod",outParamType:"number",clsid:r.xtx_clsid},{funcName:"SOF_GetEncryptMethod",inParams:"",outParamType:"number",clsid:r.xtx_clsid},{funcName:"SOF_GetUserList",inParams:"",outParamType:"string",clsid:r.xtx_clsid,aliasName:"GetUserList"},{funcName:"SOF_ExportUserCert",inParams:"CertID",outParamType:"string",clsid:r.xtx_clsid,aliasName:"GetSignCert"},{funcName:"SOF_Login",inParams:"CertID, PassWd",outParamType:"bool",clsid:r.xtx_clsid,aliasName:"VerifyUserPIN"},{funcName:"SOF_GetPinRetryCount",inParams:"CertID",outParamType:"number",clsid:r.xtx_clsid,aliasName:"GetUserPINRetryCount"},{funcName:"SOF_ChangePassWd",inParams:"CertID, oldPass, newPass",outParamType:"bool",clsid:r.xtx_clsid,aliasName:"ChangeUserPassword"},{funcName:"SOF_GetCertInfo",inParams:"Cert, type",outParamType:"string",clsid:r.xtx_clsid,aliasName:"GetCertBasicinfo"},{funcName:"SOF_GetCertInfoByOid",inParams:"Cert, Oid",outParamType:"string",clsid:r.xtx_clsid,aliasName:"GetExtCertInfoByOID"},{funcName:"SOF_SignData",inParams:"CertID, InData",outParamType:"string",clsid:r.xtx_clsid,aliasName:"SignedData"},{funcName:"SOF_VerifySignedData",inParams:"Cert, InData, SignValue",outParamType:"bool",clsid:r.xtx_clsid,aliasName:"VerifySignedData"},{funcName:"SOF_SignFile",inParams:"CertID, InFile",outParamType:"string",clsid:r.xtx_clsid,aliasName:"SOF_SignFile"},{funcName:"SOF_VerifySignedFile",inParams:"Cert, InFile, SignValue",outParamType:"bool",clsid:r.xtx_clsid,aliasName:"VerifySignFile"},{funcName:"SOF_EncryptData",inParams:"Cert, InData",outParamType:"string",clsid:r.xtx_clsid,aliasName:"EncodeP7Enveloped"},{funcName:"SOF_DecryptData",inParams:"CertID, InData",outParamType:"string",clsid:r.xtx_clsid,aliasName:"DecodeP7Enveloped"},{funcName:"SOF_EncryptFile",inParams:"Cert, InFile, OutFile",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_DecryptFile",inParams:"CertID, InFile, OutFile",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_SignMessage",inParams:"dwFlag, CertID, InData",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_VerifySignedMessage",inParams:"MessageData, InData",outParamType:"bool",clsid:r.xtx_clsid,aliasName:"VerifyDatabyP7"},{funcName:"SOF_GetInfoFromSignedMessage",inParams:"SignedMessage, type",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_SignDataXML",inParams:"CertID, InData",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_VerifySignedDataXML",inParams:"InData",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_GetXMLSignatureInfo",inParams:"XMLSignedData, type",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_GenRandom",inParams:"RandomLen",outParamType:"string",clsid:r.xtx_clsid,aliasName:"GenerateRandom"},{funcName:"SOF_PubKeyEncrypt",inParams:"Cert, InData",outParamType:"string",clsid:r.xtx_clsid,aliasName:"PubKeyEncrypt"},{funcName:"SOF_PriKeyDecrypt",inParams:"CertID, InData",outParamType:"string",clsid:r.xtx_clsid,aliasName:"PriKeyDecrypt"},{funcName:"SOF_SecertSegment",inParams:"Secert, m, n, k",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_SecertRecovery",inParams:"Seg",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_GetLastError",inParams:"",outParamType:"number",clsid:r.xtx_clsid},{funcName:"GetDeviceCount",inParams:"",outParamType:"number",clsid:r.xtx_clsid},{funcName:"GetAllDeviceSN",inParams:"",outParamType:"string",clsid:r.xtx_clsid},{funcName:"GetDeviceSNByIndex",inParams:"iIndex",outParamType:"string",clsid:r.xtx_clsid},{funcName:"GetDeviceInfo",inParams:"sDeviceSN, iType",outParamType:"string",clsid:r.xtx_clsid},{funcName:"ChangeAdminPass",inParams:"sDeviceSN, sOldPass, sNewPass",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"UnlockUserPass",inParams:"sDeviceSN, sAdminPass, sNewUserPass",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"GenerateKeyPair",inParams:"sDeviceSN, sContainerName, iKeyType, bSign",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"ExportPubKey",inParams:"sDeviceSN, sContainerName, bSign",outParamType:"string",clsid:r.xtx_clsid},{funcName:"ImportSignCert",inParams:"sDeviceSN, sContainerName, sCert",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"ImportEncCert",inParams:"sDeviceSN, sContainerName, sCert, sPriKeyCipher",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"ReadFile",inParams:"sDeviceSN, sFileName",outParamType:"string",clsid:r.xtx_clsid,aliasName:"readFile"},{funcName:"WriteFile",inParams:"sDeviceSN, sFileName, sContent, bPrivate",outParamType:"bool",clsid:r.xtx_clsid,aliasName:"writeFile"},{funcName:"IsContainerExist",inParams:"sDeviceSN, sContainerName",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"DeleteContainer",inParams:"sDeviceSN, sContainerName",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"ExportPKCS10",inParams:"sDeviceSN, sContainerName, sDN, bSign",outParamType:"string",clsid:r.xtx_clsid},{funcName:"InitDevice",inParams:"sDeviceSN, sAdminPass",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"AddSignInfo",inParams:"sUserPass",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_GetVersion",inParams:"",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_ExportExChangeUserCert",inParams:"CertID",outParamType:"string",clsid:r.xtx_clsid,aliasName:"GetExchCert"},{funcName:"SOF_ValidateCert",inParams:"Cert",outParamType:"number",clsid:r.xtx_clsid,aliasName:"ValidateCert"},{funcName:"GetENVSN",inParams:"sDeviceSN",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SetENVSN",inParams:"sDeviceSN, sEnvsn",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"IsDeviceExist",inParams:"sDeviceSN",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"GetContainerCount",inParams:"sDeviceSN",outParamType:"number",clsid:r.xtx_clsid},{funcName:"SOF_SymEncryptData",inParams:"sKey, indata",outParamType:"string",clsid:r.xtx_clsid,aliasName:"EncryptData"},{funcName:"SOF_SymDecryptData",inParams:"sKey, indata",outParamType:"string",clsid:r.xtx_clsid,aliasName:"DecryptData"},{funcName:"SOF_SymEncryptFile",inParams:"sKey, inFile, outFile",outParamType:"bool",clsid:r.xtx_clsid,aliasName:"EncryptFile"},{funcName:"SOF_SymDecryptFile",inParams:"sKey, inFile, outFile",outParamType:"bool",clsid:r.xtx_clsid,aliasName:"DecryptFile"},{funcName:"SOF_GetLastErrMsg",inParams:"",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_Base64Encode",inParams:"sIndata",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_Base64Decode",inParams:"sIndata",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_HashData",inParams:"hashAlg, sInData",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_HashFile",inParams:"hashAlg, inFile",outParamType:"string",clsid:r.xtx_clsid},{funcName:"UnlockUserPassEx",inParams:"sDeviceSN, sAdminPin, sNewUserPass",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"DeleteOldContainer",inParams:"sDeviceSN",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"WriteFileEx",inParams:"sDeviceSN, sFileName, sContent",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"ReadFileEx",inParams:"sDeviceSN, sFileName",outParamType:"string",clsid:r.xtx_clsid},{funcName:"WriteFileBase64",inParams:"sDeviceSN, sFileName, sContent",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"DeleteFile",inParams:"sDeviceSN, sFileName",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_EncryptDataEx",inParams:"Cert, InData",outParamType:"string",clsid:r.xtx_clsid},{funcName:"Base64EncodeFile",inParams:"sInFile",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_GetRetryCount",inParams:"CertID",outParamType:"number",clsid:r.xtx_clsid},{funcName:"SOF_GetAllContainerName",inParams:"sDeviceSN",outParamType:"string",clsid:r.xtx_clsid},{funcName:"CreateSoftDevice",inParams:"sDeviceSN, sLabel",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"DeleteSoftDevice",inParams:"sDeviceSN, sPasswd",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"EnableSoftDevice",inParams:"enable, sDeviceSN",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SoftDeviceBackup",inParams:"sDeviceSN, sPasswd",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SoftDeviceRestore",inParams:"sDeviceSN, sPasswd, sInFilePath",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_Logout",inParams:"CertID",outParamType:"bool",clsid:r.xtx_clsid,aliasName:"Logout"},{funcName:"SetUserConfig",inParams:"type, strConfig",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_SignByteData",inParams:"CertID, byteLen",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_VerifySignedByteData",inParams:"Cert, byteLen, SignValue",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"OTP_GetChallengeCode",inParams:"sCertID",outParamType:"string",clsid:r.xtx_clsid},{funcName:"ImportEncCertEx",inParams:"sDeviceSN, sContainerName, sCert, sPriKeyCipher, ulSymAlg",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_GetCertEntity",inParams:"sCert",outParamType:"string",clsid:r.xtx_clsid,aliasName:"GetCertEntity"},{funcName:"SOF_HMAC",inParams:"hashid, key, indata",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_SignDataByPriKey",inParams:"sPriKey, sCert, sInData",outParamType:"string",clsid:r.xtx_clsid},{funcName:"ImportKeyCertToSoftDevice",inParams:"sDeviceSN, sContainerName, sPriKey, sCert, bSign",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"InitDeviceEx",inParams:"sDeviceSN, sAdminPass, sUserPin, sKeyLabel, adminPinMaxRetry, userPinMaxRetry",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SelectFile",inParams:"",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_SignHashData",inParams:"CertID, b64ashData, hashAlg",outParamType:"string",clsid:r.xtx_clsid,aliasName:"SignHashData"},{funcName:"SOF_VerifySignedHashData",inParams:"Cert, b64ashData, SignValue, hashAlg",outParamType:"bool",clsid:r.xtx_clsid,aliasName:"VerifySignedHashData"},{funcName:"CheckSoftDeviceEnv",inParams:"",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"ImportPfxToDevice",inParams:"sDeviceSN, sContainerName, bSign, strPfx, strPfxPass",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_HashDataEx",inParams:"hashAlg, sInData, sCert, sID",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_HashFileEx",inParams:"hashAlg, inFile, sCert, sID",outParamType:"string",clsid:r.xtx_clsid},{funcName:"GetDeviceCountEx",inParams:"type",outParamType:"number",clsid:r.xtx_clsid},{funcName:"GetAllDeviceSNEx",inParams:"type",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_UpdateCert",inParams:"CertID, type",outParamType:"number",clsid:r.xtx_clsid},{funcName:"OpenSpecifiedFolder",inParams:"backupFilePath",outParamType:"",clsid:r.xtx_clsid},{funcName:"OTP_GetChallengeCodeEx",inParams:"sCertID, szAccount, money",outParamType:"string",clsid:r.xtx_clsid},{funcName:"Base64DecodeFile",inParams:"sInData, sFilePath",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"EnumFilesInDevice",inParams:"sDeviceSN",outParamType:"string",clsid:r.xtx_clsid},{funcName:"OTP_Halt",inParams:"sCertID",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_TSGenREQ",inParams:"b64Hash, hashAlg, bReqCert, policyID, b64Nonce, b64Extension",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_TSCompareNonce",inParams:"b64TSReq, b64TSAResp",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_TSGenPDFSignature",inParams:"b64TSAResp, b64OriPDFSignature",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_TSVerifyPDFSignature",inParams:"b64TSPDFSignature",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_TSGetPDFSignatureInfo",inParams:"b64TSPDFSignature, iType",outParamType:"string",clsid:r.xtx_clsid},{funcName:"OTP_GetState",inParams:"sCertID, bCert",outParamType:"string",clsid:r.xtx_clsid},{funcName:"OTP_GetSyncCode",inParams:"sCertID, ChallengeCode",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_IsLogin",inParams:"CertID",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_LoginEx",inParams:"CertID, PassWd, updateFlag",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"EnumSupportDeviceList",inParams:"",outParamType:"string",clsid:r.xtx_clsid},{funcName:"ExportPfxFromDevice",inParams:"sDeviceSN, sContainerName, bSign, strPfxPass",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_SignHashMessage",inParams:"CertID, InHashData, hashAlg",outParamType:"string",clsid:r.xtx_clsid},{funcName:"ExportPfxToFile",inParams:"sDeviceSN, sContainerName, bSign, strPfxPass",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_SignAPK",inParams:"CertID, strOriSignature",outParamType:"string",clsid:r.xtx_clsid},{funcName:"YZT_GenerateKeyPair",inParams:"sDeviceSN, sContainerName, iKeyTypeRSA, iKeyTypeSM2",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"YZT_ExportPubKey",inParams:"sDeviceSN, sContainerName, bSign",outParamType:"string",clsid:r.xtx_clsid},{funcName:"YZT_ImportSignCert",inParams:"sDeviceSN, sContainerName, sRSACert, sSM2Cert",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"YZT_ImportEncCert",inParams:"sDeviceSN, sContainerName, sRSACert, sRSAPriKeyCipher, ulRSASymAlg, sSM2Cert, sSM2PriKeyCipher, ulSM2SymAlg",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_ListenUKey",inParams:"Parm",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_EnableLoginWindow",inParams:"Parm",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_SignEnvelope",inParams:"CertID, Cert, InData",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_UnSignEnvelope",inParams:"CertID, InData",outParamType:"string",clsid:r.xtx_clsid},{funcName:"BIO_MAKExportPKCS10",inParams:"sDeviceSN, iKeyType, sDN",outParamType:"string",clsid:r.xtx_clsid},{funcName:"BIO_MAKImportSignEncCert",inParams:"sDeviceSN, sSignCert, sEncCert, sPriKeyCipher",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"BIO_IssueDAKCert",inParams:"sDeviceSN, iKeyType, sDN",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"BIO_InfoCollect",inParams:"",outParamType:"string",clsid:r.xtx_clsid},{funcName:"BIO_GetBioInfo",inParams:"sDeviceSN",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_GetLastLoginCertID",inParams:"",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_ReadESealData",inParams:"CertID, ulKeyIndex, ulKeyAlgId, ulFlags",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_ReadKFXESealData",inParams:"CertID, ulKeyIndex, ulKeyAlgId, ulFlags",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_SymDecryptFileToData",inParams:"sKey, inFile",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_SignMessageBase64",inParams:"dwFlag, CertID, InData",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_VerifySignedMessageBase64",inParams:"MessageData, InData",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_VerifySignedHashMessage",inParams:"MessageData, InHashData",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_SignDataBase64",inParams:"CertID, InData",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_VerifySignedDataBase64",inParams:"Cert, InData, SignValue",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_HashDataExBase64",inParams:"hashAlg, sInData, sCert, sID",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_GetProductVersion",inParams:"",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_UpdateCertEx",inParams:"CertID, PassWd",outParamType:"number",clsid:r.xtx_clsid},{funcName:"SOF_GetLastSignDataCertID",inParams:"CertID",outParamType:"string",clsid:r.xtx_clsid},{funcName:"BIO_SetUserConfig",inParams:"CertID, type, strConfig",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"BIO_InvokeCommand",inParams:"CertID, bstrCommand",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_ImportSymmKey",inParams:"CertID, ulKeyIndex, InData, ulFlags",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_WriteESealData",inParams:"CertID, InData, ulFlags",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_EPS_Encrypt",inParams:"CertID, ulKeyIndex, ulKeyAlgId, IVData, DivCount, DivComponent, InData, ulFlags",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_EPS_Decrypt",inParams:"CertID, ulKeyIndex, ulKeyAlgId, IVData, DivCount, DivComponent, InData, ulFlags",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_EPS_Mac",inParams:"CertID, ulKeyIndex, ulKeyAlgId, IVData, DivCount, DivComponent, InData, ulFlags",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_PriKeyDecryptEx",inParams:"CertID, InData",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_EPS_ReadESealData",inParams:"CertID, ulKeyIndex, ulKeyAlgId, ulFlags",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_EPS_WriteESealData",inParams:"CertID, InData, ulFlags",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"EnumESeal",inParams:"sDeviceSN",outParamType:"string",clsid:r.xtx_clsid},{funcName:"GetPicture",inParams:"bstrConName",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_SignEnvelopeFile",inParams:"CertID, Cert, InFile, OutFile",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_UnSignEnvelopeFile",inParams:"CertID, InFile, OutFile",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOFX_EncryptFile",inParams:"CertID, Cert, InFile, OutFile, ulFlags",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOFX_DecryptFile",inParams:"CertID, InFile, OutFile, ulFlags",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"GetPic",inParams:"bstrConName",outParamType:"string",clsid:r.getpic_clsid},{funcName:"Hash",inParams:"inData",outParamType:"string",clsid:r.getpic_clsid},{funcName:"ConvertPicFormat",inParams:"inData, type",outParamType:"string",clsid:r.getpic_clsid},{funcName:"ConvertGif2Jpg",inParams:"inData",outParamType:"string",clsid:r.getpic_clsid},{funcName:"GetPic1",inParams:"bstrConName",outParamType:"string",clsid:r.getpic_clsid},{funcName:"ConvertPicSize",inParams:"bstrPic, w, h",outParamType:"string",clsid:r.getpic_clsid},{funcName:"GetEnvVersion",inParams:"",outParamType:"string",clsid:r.xtx_version_clsid},{funcName:"InitDeviceWithParam",inParams:"sDeviceSN, sAppName, sAdminPass, sUserPin, sKeyLabel, adminPinMaxRetry, userPinMaxRetry, createFileRights",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_SignDataEx",inParams:"CertID, InData,signFlag",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_VerifySignedDataEx",inParams:"Cert, InData, SignValue,signFlag",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_SymEncryptDataEx",inParams:"sKey,sIV,indata",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_SymDecryptDataEx",inParams:"sKey,sIV,indata",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOFX_InvokeCommand",inParams:"pluginName,InParam",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_SymEncryptFileEx",inParams:"sKey,sIV,inFile, outFile",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_SymDecryptFileEx",inParams:"sKey,sIV,inFile, outFile",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_SymDecryptFileToDataEx",inParams:"sKey,sIV,inFile",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOFX_SymEncryptDataWithPadding",inParams:"sKey,sIV,padding,indata",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOFX_SymDecryptDataWithPadding",inParams:"sKey,sIV,padding,indata",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOFX_SymEncryptFileWithPadding",inParams:"sKey,sIV,padding,inFile, outFile",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOFX_SymDecryptFileWithPadding",inParams:"sKey,sIV,padding,inFile, outFile",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOFX_VerifySignedDataWithID",inParams:"Cert, InData, SignValue,userId",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOFX_VerifySignedFileWithID",inParams:"Cert, InFile, SignValue,userId",outParamType:"bool",clsid:r.xtx_clsid}],s=0;s<a.length;s++)n(a[s]),r[a[s].funcName]=window[a[s].funcName],a[s].aliasName&&(window[a[s].aliasName]=window[a[s].funcName],r[a[s].aliasName]=window[a[s].funcName]);return!0}r(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,r){SOF_GetUserList((function(e){var t=e.retVal;while(1){var r=t.indexOf("&&&");if(r<=0)break;var n=t.substring(0,r),i=(n.substring(0,n.indexOf("||")),n.substring(n.indexOf("||")+2,n.length));GetDeviceType(i,(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:n,ctx:e.ctx});var a=t.length;t=t.substring(r+3,a)}}),{type:e,cb:t,ctx:r})}function GetUserList_USBKey(e,t){return GetUserListByType("HARD",e,t)}function GetUserList_Soft(){return GetUserListByType("SOFT",cb,ctx)}function SignByP7(e,t,r){return xtxasyn.SOF_SignMessage(r?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),r=e.substring(4,6),n=e.substring(6,8),i=e.substring(8,10),a=e.substring(10,12),s=e.substring(12,14),o=new Date;return o.setFullYear(Number(t),Number(r)-1,Number(n)),o.setHours(Number(i)),o.setMinutes(Number(a)),o.setSeconds(Number(s)),o}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),r=t.getTime()-(new Date).getTime();if(r<0)return xtxasyn.custom.errorReportFunc("您的证书已过期,请尽快到北京数字证书认证中心办理证书更新手续!"),void("function"===typeof e.ctx.cb&&e.ctx.cb(!1));if(days=parseInt(r/864e5),days>0&&days<=60)xtxasyn.custom.errorReportFunc("您的证书还有"+days+"天过期\n请您尽快到北京数字证书认证中心办理证书更新手续!");else if(0==days){var n=parseInt(r/36e5);n>0&&xtxasyn.custom.errorReportFunc("您的证书还有"+n+"小时过期\n请您尽快到北京数字证书认证中心办理证书更新手续!");var i=parseInt(r/6e4);if(!(i>1))return xtxasyn.custom.errorReportFunc("您的证书已过期,请尽快到北京数字证书认证中心办理证书更新手续!"),void("function"===typeof e.ctx.cb&&e.ctx.cb(!1));xtxasyn.custom.errorReportFunc("您的证书还有"+i+"分钟过期\n请您尽快到北京数字证书认证中心办理证书更新手续!")}xtxasyn.SOF_VerifySignedData(strServerCert,strServerRan,strServerSignedData,__loginVerifyServerSignatureCallBack,e.ctx)}function __loginCheckCertValidNotBefore(e){var t=ParseDateString(e.retVal),r=parseInt((t.getTime()-(new Date).getTime())/864e5);if(r>0)return xtxasyn.custom.errorReportFunc("您的证书尚未生效!距离生效日期还剩"+r+"天!"),void("function"===typeof e.ctx.cb&&e.ctx.cb(!1));var n=e.ctx.objForm.UserCert.value;xtxasyn.SOF_GetCertInfo(n,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,r=e.ctx.objForm;e.retVal?(r.CertID.value=t,r.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 r(){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 n;if(os=check_os(),null==t&&(t=new mTokenPlugin),e==this.GM3000)n=r()?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)n=t.SOF_LoadLibrary("SKF_APP.dll","libhunca_hsic_skf.so","libhunca_hsic_skf.dylib");else if(e==this.HT)n=t.SOF_LoadLibrary("HUNCA_HT_20522_SKF.dll","libhunca_ht_h2070f63_skf.so","libhunca_ht_h2070f63_skf.dylib");else if(e==this.K5)n=r()?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;n=r()?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!=n?-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,r){return null==t?-1:t.SOF_GetDeviceInstance(e,r)},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 r=new Array,n=e.split("&&&"),i=n.length,a=0;a<i;a++)r[a]=n[a].split("||");return r},this.SOF_ExportUserCert=function(e,r){return null==t?null:t.SOF_ExportUserCert(e,r)},this.SOF_GetDeviceInfo=function(e){return null==t?null:t.SOF_GetDeviceInfo(e)},this.SOF_GetCertInfo=function(e,r){return null==t?null:t.SOF_GetCertInfo(e,r)},this.SOF_GetCertInfoByOid=function(e,r){return null==t?null:t.SOF_GetCertInfoByOid(e,r)},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,r){return null==t?-1:t.SOF_ChangePassWd(e,r)},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,r){return null==t?-1:t.SOF_SetEncryptMethodAndIV(e,r)},this.SOF_EncryptFileToPKCS7=function(e,r,n,i){return null==t?-1:t.SOF_EncryptFileToPKCS7(e,r,n,i)},this.SOF_SignFileToPKCS7=function(e,r,n){return null==t?-1:t.SOF_SignFileToPKCS7(e,r,n)},this.SOF_VerifyFileToPKCS7=function(e,r){return null==t?-1:t.SOF_VerifyFileToPKCS7(e,r)},this.SOF_DecryptFileToPKCS7=function(e,r,n,i,a,s){return null==t?-1:t.SOF_DecryptFileToPKCS7(e,r,n,i,a,s)},this.SOF_DigestData=function(e,r,n){return null==t?null:t.SOF_DigestData(e,r,n)},this.SOF_SignData=function(e,r,n,i){return null==t?null:t.SOF_SignData(e,r,n,i)},this.SOF_SignDataInteractive=function(e,r,n,i){return null==t?null:t.SOF_SignDataInteractive(e,r,n,i)},this.SOF_SignDataToPKCS7=function(e,r,n,i){return null==t?null:t.SOF_SignDataToPKCS7(e,r,n,i)},this.SOF_VerifyDataToPKCS7=function(e,r,n){return null==t?-1:t.SOF_VerifyDataToPKCS7(e,r,n)},this.SOF_VerifySignedData=function(e,r,n,i){return null==t?-1:t.SOF_VerifySignedData(e,r,n,i)},this.SOF_EncryptDataPKCS7=function(e,r,n){return null==t?null:t.SOF_EncryptDataPKCS7(e,r,n)},this.SOF_DecryptDataPKCS7=function(e,r,n){return null==t?null:t.SOF_DecryptDataPKCS7(e,r,n)},this.SOF_GenRemoteUnblockRequest=function(){return null==t?null:t.SOF_GenRemoteUnblockRequest()},this.SOF_GenResetpwdResponse=function(e,r,n){return null==t?null:t.SOF_GenResetpwdResponse(e,r,n)},this.SOF_RemoteUnblockPIN=function(e){return null==t?null:t.SOF_RemoteUnblockPIN(e)},this.SOF_SignDataToPKCS7=function(e,r,n,i){return null==t?null:t.SOF_SignDataToPKCS7(e,r,n,i)},this.SOF_VerifyDataToPKCS7=function(e,r,n){return null==t?null:t.SOF_VerifyDataToPKCS7(e,r,n)},this.SOF_ExportPubKey=function(e,r,n){return null==t?null:t.SOF_ExportPubKey(e,r,n)},this.SOF_EncryptByPubKey=function(e,r,n){return null==t?null:t.SOF_EncryptByPubKey(e,r,n)},this.SOF_DecryptByPrvKey=function(e,r,n){return null==t?null:t.SOF_DecryptByPrvKey(e,r,n)},this.SOF_GenerateP10Request=function(e,r,n,i,a,s){return null==t?null:t.SOF_GenerateP10Request(e,r,n,i,a,s)},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,r){return null==t?null:t.SOF_SignByCert(e,r)},this.SOF_VerifyByCert=function(e,r,n){return null==t?null:t.SOF_VerifyByCert(e,r,n)},this.SOF_ImportCert=function(e,r,n){return null==t?null:t.SOF_ImportCert(e,r,n)},this.SOF_ImportCryptoCertAndKey=function(e,r,n,i,a,s,o){return null==t?null:t.SOF_ImportCryptoCertAndKey(e,r,n,i,a,s,o)},this.SOF_VerifyByExtCert=function(e,r,n,i){return null==t?null:t.SOF_VerifyByExtCert(e,r,n,i)},this.SOF_GenerateRandom=function(e){return null==t?null:t.SOF_GenerateRandom(e)},this.SOF_SymEncryptFile=function(e,r,n,i){return null==t?null:t.SOF_SymEncryptFile(e,r,n,i)},this.SOF_SymDecryptFile=function(e,r,n,i){return null==t?null:t.SOF_SymDecryptFile(e,r,n,i)},this.SOF_SymEncryptData=function(e,r){return null==t?null:t.SOF_SymEncryptData(e,r)},this.SOF_SymDecryptData=function(e,r){return null==t?null:t.SOF_SymDecryptData(e,r)},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,r,n){return null==t?null:t.SOF_ReadFile(e,Number(r),Number(n))},this.SOF_WriteFile=function(e,r,n){return null==t?null:t.SOF_WriteFile(e,r,n)},this.SOF_CreateFile=function(e,r,n,i){return null==t?null:t.SOF_CreateFile(e,r,n,i)},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,r=String.prototype.split,n=/()??/.exec("")[1]===e;return t=function(t,i,a){if("[object RegExp]"!==Object.prototype.toString.call(i))return r.call(t,i,a);var s,o,c,u,l=[],m=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.extended?"x":"")+(i.sticky?"y":""),f=0;i=new RegExp(i.source,m+"g");t+="",n||(s=new RegExp("^"+i.source+"$(?!\\s)",m)),a=a===e?-1>>>0:a>>>0;while(o=i.exec(t)){if(c=o.index+o[0].length,c>f&&(l.push(t.slice(f,o.index)),!n&&o.length>1&&o[0].replace(s,(function(){for(var t=1;t<arguments.length-2;t++)arguments[t]===e&&(o[t]=e)})),o.length>1&&o.index<t.length&&Array.prototype.push.apply(l,o.slice(1)),u=o[0].length,f=c,l.length>=a))break;i.lastIndex===o.index&&i.lastIndex++}return f===t.length?!u&&i.test("")||l.push(""):l.push(t.slice(f)),l.length>a?l.slice(0,a):l},String.prototype.split=function(e,r){return t(this,e,r)},t}();var linuxWin=0,os;function mTokenPlugin(){var _xmlhttp,retJSON="",_curDevName;function AjaxIO(e){if("id_mPluginV2Router"==os){var t=null,r="http://127.0.0.1:51235/alpha";t=document.getElementById("id_mPluginV2Router"),null==t&&alert("无法获取到插件,请确认已经安装好插件!");var n=e;return retJSON=t.invoke(r,n),retJSON}{var i="http://127.0.0.1:51235/alpha";let t=e;null==_xmlhttp&&(_xmlhttp=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP")),_xmlhttp.open("POST",i,!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,r){var n={"./admin.jpg":6296,"./personal.jpg":1865,"./personal1.jpg":456,"./personal2.jpg":6964};function i(e){var t=a(e);return r(t)}function a(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}i.keys=function(){return Object.keys(n)},i.resolve=a,e.exports=i,i.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+ImVHIdPeC3vUDe5HtBMscN3xdt1zHrmCM97d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CE+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+1GU7Wfm8oXqnYFLUxV64DVgWfKjdXS9jKvd4+IdObLRt4AqeoFwIuAfX6RqBW4SUT+mw/TeQGkqvPMpQImQV9E+hxYKiKbc2U+Z4BU9YfAKiC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UkFSM54SR1Ge+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="}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.exports}!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 r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}}(),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__.p=""}();var __webpack_exports__={};return function(){"use strict";if(__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:function(){return $}}),"undefined"!==typeof window){var e=window.document.currentScript,t=e&&e.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);t&&(__webpack_require__.p=t[1])}var r=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)},n=[],i=(__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))])])])}),a=[];const s=Math.PI;function o(e,t){return e+t}function c(e){return e*e}var u={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:r,r:n,L:i}=this,a=r-2*n-1,s=this.blockCtx.getImageData(t,a,i,i);this.block.width=i,this.blockCtx.putImageData(s,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,r,n){let{l:i,r:a}=this;e.beginPath(),e.moveTo(t,r),e.arc(t+i/2,r-a+2,a,.72*s,2.26*s),e.lineTo(t+i,r),e.arc(t+i+a-2,r+i/2,a,1.21*s,2.78*s),e.lineTo(t+i,r+i),e.lineTo(t,r+i),e.arc(t+a-2,r+i/2,a+.4,2.76*s,1.24*s,!0),e.lineTo(t,r),e.lineWidth=2,e.fillStyle="rgba(255, 255, 255, 0.7)",e.strokeStyle="rgba(255, 255, 255, 0.7)",e.stroke(),e[n](),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:l((function(e,t="mouse"){if(!this.isMouseDown)return!1;const r="mouse"===t?e.clientX-this.originX:e.changedTouches[0].pageX-this.originX,n="mouse"===t?e.clientY-this.originY:e.changedTouches[0].pageY-this.originY;if(r<0||r+38>=this.w)return!1;this.sliderLeft=r+"px";let i=(this.w-40-20)/(this.w-40)*r;this.block.style.left=i+"px",this.containerActive=!0,this.sliderMaskWidth=r+"px",this.trail.push(n)})),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:r,TuringTest:n}=this.verify();if(r){if(-1===this.accuracy)return this.containerSuccess=!0,this.success=!0,void this.$emit("success",this.timestamp);n?(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(o)/e.length,r=e.map((e=>e-t)),n=Math.sqrt(r.map(c).reduce(o)/e.length),i=parseInt(this.block.style.left),a=this.accuracy<=1?1:this.accuracy>10?10:this.accuracy;return{spliced:Math.abs(i-this.block_x)<=a,TuringTest:t!==n}},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 l(e,t=50,r={leading:!0,trailing:!0}){const{leading:n,trailing:i,resultCallback:a}=r;let s=0,o=null;const c=function(...r){return new Promise(((c,u)=>{const l=(new Date).getTime();s||n||(s=l);const m=t-(l-s);if(m<=0){o&&(clearTimeout(o),o=null);const t=e.apply(this,r);return a&&a(t),c(t),void(s=l)}i&&!o&&(o=setTimeout((()=>{o=null,s=n?(new Date).getTime():0;const t=e.apply(this,r);a&&a(t),c(t)}),m))}))};return c.cancel=function(){o&&clearTimeout(o),o=null,s=0},c}var m=u;function f(e,t,r,n,i,a,s,o){var c,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=r,u._compiled=!0),n&&(u.functional=!0),a&&(u._scopeId="data-v-"+a),s?(c=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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},u._ssrRegister=c):i&&(c=o?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(e,t){return c.call(t),l(e,t)}}else{var m=u.beforeCreate;u.beforeCreate=m?[].concat(m,c):[c]}return{exports:e,options:u}}var d=f(m,i,a,!1,null,"b67196d8",null),S=d.exports,h={name:"YcSlideVerify",components:{SlideVerify:S},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")},onFail(){},onAgain(){},onRefresh(){},onFulfilled(){},handleClose(){this.$emit("close")}}},p=h,y=f(p,r,n,!1,null,"2c1e2525",null),_=y.exports,g=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,json:e.json,regular:e.regular},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)},v=[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("在线客服")])])}],x=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(r,n){return t("div",{key:n,class:["message",r.id]},[t("img",{staticClass:"avatar",attrs:{src:__webpack_require__(7021)(`./${r.id}.jpg`)}}),t("div",{staticClass:"content"},[e._l(r.msg,(function(n,i){return t("span",{key:n+i,class:r.msg.length>1?"href":"",domProps:{innerHTML:e._s((r.msg.length>1?1+i+". ":" ")+n)},on:{click:function(t){r.msg.length>1&&e.regularClick(n)}}})})),r.based?t("div",{staticClass:"based",on:{click:function(t){return e.handExpand(r)}}},[t("span",[e._v("依据")]),t("span",{class:{"is-active":r.isActive}},[e._v(e._s(r.based)),t("i",{staticClass:"el-icon-d-arrow-right"})])]):e._e()],2)])})),0),t("nav",e._l(e.regular,(function(r,n){return t("el-button",{key:r+n,attrs:{size:"mini",round:""},on:{click:function(t){return e.regularClick(r)}}},[e._v(e._s(r))])})),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)},A=[],O={props:{visible:Boolean,jumpPage:String,json:String,title:String,commit:String,regular:Array},data(){return{textareaValue:"",messagelist:[{id:"admin",msg:["您好,38号客服很高兴为你服务!"],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){const t=this.questions.filter((t=>t.faq.replace(/[^\w\u4E00-\u9FA5]/g,"").toLowerCase().includes(e.replace(/[^\w\u4E00-\u9FA5]/g,"").toLowerCase())));let[r,n]=["",""];t.length>1?r=t.reduce(((e,t)=>[...e,t.faq]),[]):1==t.length?[r,n]=[t[0].msg,t[0].based]:r=["您好","你好"].includes(e.replace(/[^\w\u4E00-\u9FA5]/g,""))?"您好!":'请提关键词问题?<br/> 比如: 税率<br/><br/><a href="tel:4000770168">客服热线:<span style="color: #FF575F;">400 0770 168</span></a>',this.add(r,"admin",null,n)},add(e,t="personal",r,n=""){this.messagelist.push({id:t,msg:Array.isArray(e)?e:[e],based:n,isActive:!1}),this.$nextTick((()=>{r&&r(),this.$refs.main.scrollTop=this.$refs.main.scrollHeight}))},enlarge(){window.open(this.jumpPage,"_blank")},handExpand(e){e.isActive=!e.isActive}}},N={name:"ChatMini",mixins:[O]},D=N,b=f(D,x,A,!1,null,"755436e0",null),F=b.exports,C={name:"YcCustomerService",components:{chatVue:F},props:{jumpPage:String,title:String,json:String,regular:Array},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"}},P=C,E=f(P,g,v,!1,null,"849349a0",null),I=E.exports,j=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("小优为您提供24小时服务")])]),t("div",{staticClass:"main"},[t("div",[t("main",{ref:"main"},[t("p",[e._v("今天"+e._s(e.currData))]),e._l(e.messagelist,(function(r,n){return t("div",{key:n,class:["message",r.id]},[t("img",{staticClass:"avatar",attrs:{src:__webpack_require__(7021)(`./${r.id}.jpg`)}}),t("div",{staticClass:"content"},[e._l(r.msg,(function(n,i){return t("span",{key:n+i,class:r.msg.length>1?"href":"",domProps:{innerHTML:e._s((r.msg.length>1?1+i+". ":" ")+n)},on:{click:function(t){r.msg.length>1&&e.regularClick(n)}}})})),r.based?t("div",{staticClass:"based",on:{click:function(t){return t.preventDefault(),e.handExpand(r)}}},[t("span",[e._v("依据")]),t("span",{class:{"is-active":r.isActive}},[e._v(e._s(r.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(r,n,i){return t("el-collapse-item",{key:n,attrs:{name:i}},[t("template",{slot:"title"},[t("img",{attrs:{src:__webpack_require__(4800)}}),e._v(e._s(n)+" ")]),e._l(r,(function(r){return t("div",{key:r,domProps:{innerHTML:e._s(r)},on:{click:function(t){return e.regularClick(r)}}})}))],2)})),1)],1)])])])},T=[],w={name:"YcQuestion",mixins:[O],data(){return{activeNames:[1]}},computed:{currData(){const e=new Date;return`${e.getHours()}:${e.getMinutes()}`},questionsList(){return this.questions.reduce(((e,t)=>(e.hasOwnProperty(t.type)?e[t.type].push(t.faq):e[t.type]=[t.faq],e)),{})}}},k=w,G=f(k,j,T,!1,null,"6185ef7a",null),R=G.exports,B=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)},J=[],L=__webpack_require__(353),K="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function V(e){var t,r,n,i,a,s,o,c="",u=0;e=U(e);while(u<e.length)t=e.charCodeAt(u++),r=e.charCodeAt(u++),n=e.charCodeAt(u++),i=t>>2,a=(3&t)<<4|r>>4,s=(15&r)<<2|n>>6,o=63&n,isNaN(r)?s=o=64:isNaN(n)&&(o=64),c=c+K.charAt(i)+K.charAt(a)+K.charAt(s)+K.charAt(o);return c}function U(e){var t=""+e;t=t.replace(/\r\n/g,"\n");for(var r="",n=0;n<t.length;n++){var i=t.charCodeAt(n);i<128?r+=String.fromCharCode(i):i>127&&i<2048?(r+=String.fromCharCode(i>>6|192),r+=String.fromCharCode(63&i|128)):(r+=String.fromCharCode(i>>12|224),r+=String.fromCharCode(i>>6&63|128),r+=String.fromCharCode(63&i|128))}return r}function M(){var e=new L.R("mTokenPlugin"),t=null;t="Win32"==navigator.platform||"Windows"==navigator.platform?Array("GM3000","HT","SJK1137"):Array("HT");var r="",n=0,i=1,a=1;let s=1025;var o="1234567812345678",c="控件加载失败,错误码:",u="未找到UKey!\n1.请确认是否安装最新驱动!\n2.计算机是否插入湖南CA UKey!",l="USBKey实例化失败,请确认此UKey是否插入计算机!\n点击‘刷新’按钮,更新设备列表。\n错误码:",m="Ukey密码必须为4~16位!",f="UKey密码错误",d="UKey密码修改失败",S="UKey不存在,请确认此UKey是否插入计算机,并点击'刷新'按钮,更新设备列表!",h="请点击‘刷新’按钮,更新设备列表并选择相应设备!",p="证书获取失败,请加检测Key中是否存在证书!",y="设置摘要算法失败,请重新刷新浏览器!",_="设置用户ID失败,请重新刷新浏览器",g="签名失败,待签名原文不能为空",v="签名失败,返回错误码:",x="请点击‘刷新’按钮,更新设备列表并选择相应设备!",A="证书G项信息转化证书名称失败,请点击“刷新”按钮!",O="加载国密库失败!",N="加密失败:待加密原文不能为空!",D="解密失败:待解密密文不能为空!",b="解密失败:请确认密文是否完整!\n解密所采用的Ukey是否为加密时的Ukey!",F="申请解锁请求失败!",C="此型号Ukey不支持解锁!",P="Ukey解锁失败!",E=null,I=null,j=null,T=null,w=null,k=null,G=null,R=null;function B(t){var n=0;return"GM3000"==t?n=e.SOF_LoadLibrary(e.GM3000):"HT"==t?n=e.SOF_LoadLibrary(e.HT):"SJK1137"==t&&(n=e.SOF_LoadLibrary(e.SJK1137)),0==n||(r=c+e.SOF_GetLastError(),!1)}function J(){var t="";return t=e.SOF_EnumDevice(),null==t||0==t.length?(r=u,null):t}function K(t){var n=0;return n=e.SOF_GetDeviceInstance(t,""),0==n||(r=l+e.SOF_GetLastError(),!1)}function U(){var t="";return t=e.SOF_GetUserList(),null==t||0==t.length?(r="USBkey中未找到证书!",null):t}function M(t){var n=0,i=""+t,a=0;return null==i||0==i.length||i.length<4||i.length>16?(r=m,!1):(n=e.SOF_Login(i),0==n||(a=Q(),r=a>0?f+",还剩 "+a+" 次重试机会!":"UKey已经锁死,请联系管理员进行解锁!",!1))}function H(t,n){var i=0,a=""+t,s=""+n,o=0;return null==a||0==a.length||null==s||0==s.length||a.length<4||a.length>16||s.length<4||s.length>16?(r=m,!1):(i=e.SOF_ChangePassWd(a,s),0==i||(o=Q(),r=o>0?d+",还剩 "+o+" 次重试机会!":"UKey已经锁死,请联系管理员进行解锁!",!1))}function Q(){var t=0;return t=e.SOF_GetPinRetryCount(),t}function W(){var t=null;return t=e.SOF_GetDeviceInfo(e.SGD_DEVICE_SERIAL_NUMBER),t}function q(t,n){var i;return i=e.SOF_ExportUserCert(t,n),null==i||0==i.length?(r=p,null):i}function X(t,n){var i=1;return void 0==t||null==t?(r="请设置加密方式!",!1):(i=e.SOF_SetEncryptMethodAndIV(t,V(n)),0==i||(r=e.SOF_GetLastError(),!1))}function Y(t){var n=0;return n=e.SOF_SetDigestMethod(t),0==n||(r=y,!1)}function Z(){var t=0;return t=e.SOF_SetUserID(o),0==t||(r=_,!1)}function z(t,n){var i="",a="",s="";return s=""+n,0==s.length?(r=N,""):(a=V(s),i=e.SOF_EncryptDataPKCS7(t,a,n.length),null==i||0==i.length?(r="加密失败,"+e.SOF_GetLastError(),""):i)}function $(t,n,i){var a="",s="";if(a=""+i,null==t||0==t.length)return r="应用名称不能为空!","";if(0==a.length)return r=D,"";try{s=e.SOF_DecryptDataPKCS7(t,n,a)}catch(o){s=""}return void 0==s||null==s||""==s?(r=b,""):s}function ee(t,n,i,a){var s=null,o=null,c=""+i;return null==c||0==c.length?(r=g,!1):(o=V(c),s=e.SOF_SignData(t,n,V(o),o.length),null==s||0==s.length?(r=v+SOF_GetLastError(),!1):(j=a,I=s,!0))}function te(t){var r,n,i=null,a=null,s=null,o=null,c=null;if(null==t||0==t.length)return!1;w="",T="",k="",i=e.SOF_GetCertInfo(t,e.SGD_CERT_SERIAL),T=ue(i),a=e.SOF_GetCertInfo(t,e.SGD_CERT_SUBJECT),k=a,o=e.SOF_GetCertInfo(t,e.SGD_CERT_VALID_TIME),G=o,c=e.SOF_GetCertInfo(t,e.SGD_CERT_NOT_BEFORE),R=c,s=a.split(",");for(var u=0;u<s.length;u++)if(-1!=s[u].indexOf("=")&&(r=s[u].split("=")[0],n=s[u].split("=")[1],"GN"==r)){w=n;break}return!0}function re(){e.SOF_LogOut()}function ne(){var t=e.SOF_GenRemoteUnblockRequest();return null==t||""==t?(r=F,""):t}function ie(t){var n=!1;return null==t||0==t.length?(r="解锁失败解:响应不能为空!",!1):(n=e.SOF_RemoteUnblockPIN(t),0==n||(r=P,!1))}function ae(e,t,r){var n=[],i=Math.max(e.length,t.length),a=0,s=0;while(s<i||a){var o=s<e.length?e[s]:0,c=s<t.length?t[s]:0,u=a+o+c;n.push(u%r),a=Math.floor(u/r),s++}return n}function se(e,t,r){if(e<0)return null;if(0==e)return[];var n=[],i=t;while(1){if(1&e&&(n=ae(n,i,r)),e>>=1,0===e)break;i=ae(i,i,r)}return n}function oe(e,t){for(var r=e.split(""),n=[],i=r.length-1;i>=0;i--){var a=parseInt(r[i],t);if(isNaN(a))return null;n.push(a)}return n}function ce(e,t,r){var n=oe(e,t);if(null===n)return null;for(var i=[],a=[1],s=0;s<n.length;s++)n[s]&&(i=ae(i,se(n[s],a,r),r)),a=se(t,a,r);var o="";for(let c=i.length-1;c>=0;c--)o+=i[c].toString(r);return o}function ue(e){return"0x"===e.substring(0,2)&&(e=e.substring(2)),e=e.toLowerCase(),ce(e,16,10)}this.Hunca_GetLastError=function(){return r},this.Hunca_GetUserList=function(){var e=null,n=null,i=null,a=null;j=null,I=null,E=new Array;for(var s=0;s<t.length;s++){var o=t[s];if(B(o)&&(e=J(),null!=e))for(var c=0;c<e.length;c++){var l=new Object;if(!K(e[c]))break;a=U(),null==a&&0==a.length||(n=a[0][1],i=a[0][0],l.libraryName=o,l.serial=e[c],l.userName=i,l.containerName=n,E.push(l),re())}}var m=new Array;for(let t=0;t<E.length;t++)m[t]=E[t].userName;return 0==m.length?(r=u,""):m},this.Hunca_GetUserListGN=function(){var e=null,r=null,n=null,a=null,s=null,o="";E=new Array;for(var c=0;c<t.length;c++){var l=t[c];if(B(l)&&(e=J(),null!=e))for(var m=0;m<e.length;m++){w=null,T=null,o=e[m];var f=new Object;if(!K(o))break;a=U(),null==a&&0==a.length||(r=a[0][1],n=a[0][0],f.libraryName=l,f.serial=e[m],f.userName=n,f.containerName=r,s=q(f.containerName,i),te(s)&&(f.subjectGN=w,E.push(f),re()))}}var d=new Array;for(let t=0;t<E.length;t++)d[t]=E[t].subjectGN;return 0==d.length?(u,""):d},this.Hunca_userNameGNToUserName=function(e){var t=null;r="",null!=e&&0!=e.length||(r=x);for(var n=0;n<E.length;n++)if(e==E[n].subjectGN){t=E[n].userName;break}return null==t||0==t.length?(r=A,null):t},this.Hunca_GenRemoteUnblockRequest=function(e){var t=null,n=null,i="";if(r="",null==e||null==e.length)return r=h,!1;if(null==E||0==E.length)return r=u,!1;for(var a=0;a<E.length;a++)if(n=E[a],n.userName==e){t=n;break}return null==t?(r=S,!1):"GM3000"!=t.libraryName?(r=C,!1):B(t.libraryName)?!!K(t.serial)&&(null!=U()&&(i=ne(),i)):(r=O,!1)},this.HUnca_GetDeviceNumber=function(e){var t=null;if(null==e||null==e.length)return r=h,!1;if(null==E||0==E.length)return r=u,!1;for(var n=0;n<E.length;n++){let t=E[n];if(t.userName==e){tokenInfo=t;break}}return null==tokenInfo?(r=S,!1):B(tokenInfo.libraryName)?!!K(tokenInfo.serial)&&(t=W(),t+""):(r=O,!1)},this.Hunca_RemoteUnlockPIN=function(e,t){var n=null,i=null,a=!1;if(r="",null==e||null==e.length)return r=h,!1;if(null==E||0==E.length)return r=u,!1;for(var s=0;s<E.length;s++)if(i=E[s],i.userName==e){n=i;break}return null==n?(r=S,!1):"GM3000"!=n.libraryName?(r=C,!1):B(n.libraryName)?!!K(n.serial)&&(null!=U()&&(a=ie(t),a)):(r=O,!1)},this.Hunca_ChangeUserPin=function(e,t,n){var i=null,a=null;if(r="",null==e||null==e.length)return r=h,!1;if(null==E||0==E.length)return r=u,!1;for(var s=0;s<E.length;s++)if(a=E[s],a.userName==e){i=a;break}return null==i?(r=S,!1):(B(i.libraryName)||(r=O),!!K(i.serial)&&(!!H(t,n)&&(re(),!0)))},this.Hunca_PKCS1=function(e,t,r){var n=null,s=null,o=null;new Object;if(null==t||null==t.length)return h,!1;if(null==E||0==E.length)return u,!1;for(var c=0;c<E.length;c++)if(s=E[c],s.userName==t){n=s;break}return null==n?(S,!1):(B(n.libraryName)||O,!!K(n.serial)&&(!!M(r)&&(o=q(n.containerName,i),null!=o&&(!!Y(a)&&(!!Z()&&(!!ee(n.containerName,a,e,o)&&(!!te(o)&&(re(),!0))))))))},this.Hunca_GetSignData=function(){return I},this.Hunca_GetSignCert=function(){return j},this.Hunca_GetSignCertSn=function(){return T},this.Hunca_GetSignCertSubject=function(){return k},this.Hunca_GetValidTime=function(){return G},this.HUnca_GetNotBeforeTime=function(){return R},this.Hunca_DealCertInfo=function(e){var t=null,n=null,a=null;if(r="",signResultInfo=null,certInfo=new Object,null==e||null==e.length)return r=h,!1;if(null==E||0==E.length)return r=u,!1;for(var s=0;s<E.length;s++)if(n=E[s],n.userName==e){t=n;break}return null==t?(r=S,!1):B(t.libraryName)?!!K(t.serial)&&(a=q(t.containerName,i),null!=a&&0!=a.length&&(te(a),re(),!0)):(r=O,!1)},this.Hunca_EncryptDataPKCS7=function(e,t,r,i){var a=null,o=null,c=null,l="",m="";new Object;if(null==t||null==t.length)return h,"";if(null==E||0==E.length)return u,"";for(var f=0;f<E.length;f++)if(o=E[f],o.userName==t){a=o;break}return null==a?(S,""):B(a.libraryName)?K(a.serial)?(c=q(a.containerName,n),null==c||0==c.length?"":(l=r+"",m=i+"",null!=l&&0!=l.length||(l=s,m=""),X(l,m)?(encryptData=z(c,e),re(),encryptData):"")):"":(O,"")},this.Hunca_DecryptDataPKCS7=function(e,t,r,i,a){var o=null,c=null,l="",m="",f="",d="",p="";new Object;if(f=""+e,null==t||null==t.length)return h,"";if(null==E||0==E.length)return u,"";for(var y=0;y<E.length;y++)if(c=E[y],c.userName==t){o=c;break}if(null==o)return S,"";if(!B(o.libraryName))return O,"";if(!K(o.serial))return"";if(!M(r))return"";if(l=i+"",m=a+"",null!=l&&0!=l.length||(l=s,m=""),!X(l,m))return"";if(d=$(o.containerName,n,f),0==d.length)return"";try{p=_Base64decode(d)}catch(_){p=d,"解密失败:Base64解码失败"}return p}}__webpack_require__(9343);function H(e){let t=e.slice(0,4),r=e.slice(4,6),n=e.slice(6,8),i=e.slice(8,10),a=e.slice(10,12),s=e.slice(12);return`${t}-${r}-${n} ${i}:${a}:${s}`}var Q={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 M;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 M,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 r=this.cert_subject.split(","),n={};return r.forEach((e=>{n[e.split("=")[0]]=e.split("=")[1]})),this.loginForm={cert:this.ca_cert,sign:this.sign,rn:t,caInfo:this.cert_subject,caAddr:n.ST+n.OU,caCode:n.TITLE,caName:n.GN,caSn:this.certSn,caEffectiveDate:this.cert_notBeforeTime,caExpireDate:this.cert_validTime,loginType:"3",username:n.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 r=await new Promise((e=>{window.SOF_GetUserList((function(t){e(t.retVal.split("&&&")[0].split("||")[1])}))}));var e=new Date;let n=this.loginForm.password;if(!r||!n)return;var t=navigator.platform.toLowerCase();-1!=t.indexOf("win")?window.SOF_LoginEx(r,n,0,this.login_callback,{begin:e,certId:r}):window.SOF_Login(r,n,this.login_callback,{begin:e,certId:r})}else this.msgErr("请插入CA")},login_callback(e){const t=this;var r=e.ctx.certId;e.retVal?this.BJSignData():(window.SOF_GetLastError((function(e){var r=e.retVal;79==r&&t.msgErr("请核对pin码复杂度是否符合要求")}),e.ctx),window.SOF_GetPinRetryCount(r,(function(e){var r=e.ctx.certId;t.msgErr("证书["+r+"]重试次数剩余:"+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 r=await new Promise((e=>{window.SOF_ExportUserCert(t,(function(t){e(t.retVal)}))}));if(this.form["username"]=r,r){var n={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 n){let e=await new Promise((e=>{window.SOF_GetCertInfo(r,n[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:H(this.form["caEffectiveDate"]),caExpireDate:H(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)}}},W=Q,q=f(W,B,J,!1,null,"eeb04946",null),X=q.exports;const Y=[_,I,R,X],Z=function(e){Y.forEach((t=>{e.component(t.name,t)})),"undefined"!==typeof window&&window.Vue&&Z(window.Vue)};var z={install:Z},$=z}(),__webpack_exports__}()}));
2
2
  //# sourceMappingURL=yc-ui2.umd.min.js.map