yc-ui2 0.1.2-beta15 → 0.1.2-beta16

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- {"version":3,"file":"yc-ui2.umd.js","mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;;;;;;;ACVa;AACb,iBAAiB,mBAAO,CAAC,GAA0B;AACnD,kBAAkB,mBAAO,CAAC,IAA4B;;AAEtD;;AAEA;AACA;AACA;AACA;AACA;;;;;;;;;ACVa;AACb,eAAe,mBAAO,CAAC,GAAwB;;AAE/C;AACA;;AAEA;AACA;AACA;AACA;AACA;;;;;;;;;ACVa;AACb,sBAAsB,mBAAO,CAAC,IAAgC;AAC9D,sBAAsB,mBAAO,CAAC,IAAgC;AAC9D,wBAAwB,mBAAO,CAAC,IAAmC;;AAEnE,sBAAsB,mBAAmB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,WAAW,gBAAgB;AACjC;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;AChCa;AACb,kBAAkB,mBAAO,CAAC,IAA0B;AACpD,cAAc,mBAAO,CAAC,IAAuB;;AAE7C;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,0CAA0C,iBAAiB;AAC3D,IAAI;AACJ;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA,IAAI;AACJ,EAAE;AACF;AACA;;;;;;;;;AC1Ba;AACb,kBAAkB,mBAAO,CAAC,IAAoC;;AAE9D,6BAA6B;AAC7B;;AAEA;AACA;AACA;;;;;;;;;ACRa;AACb,aAAa,mBAAO,CAAC,IAA+B;AACpD,cAAc,mBAAO,CAAC,IAAuB;AAC7C,qCAAqC,mBAAO,CAAC,IAAiD;AAC9F,2BAA2B,mBAAO,CAAC,IAAqC;;AAExE;AACA;AACA;AACA;AACA,kBAAkB,iBAAiB;AACnC;AACA;AACA;AACA;AACA;A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AAE,uCAAM;AACR,EAAE,oDAAM;AACR,EAAE,6DAAe;AACjB;AACA;AACA;AACA;AACA;AACA;;AAEA,yCAAe,cAAS;;ACnBsB;AACQ;AACd;AACZ;AAG5B,MAAMuiB,UAAU,GAAG,CACjBqQ,aAAa,EACbC,iBAAiB,EACjBC,UAAU,EACVC,IAAI,CACL;AACD;AACA,MAAMC,OAAO,GAAG,SAAAA,CAAUC,GAAG,EAAE;EAC5B;EACD1Q,UAAU,CAAC6N,OAAO,CAAC8C,SAAS,IAAI;IAC9BD,GAAG,CAACC,SAAS,CAACA,SAAS,CAACrZ,IAAI,EAAEqZ,SAAS,CAAC;EAC1C,CAAC,CAAC;;EAEF;EACA,IAAI,OAAO15B,MAAM,KAAK,WAAW,IAAIA,MAAM,CAACy5B,GAAG,EAAE;IAC/CD,OAAO,CAACx5B,MAAM,CAACy5B,GAAG,CAAC;EACrB;AACF,CAAC;;AAED;AACA,iDAAe;EACbD;AACF,CAAC;;AC5BuB;AACA;AACxB,8CAAe,YAAG;AACI","sources":["webpack://yc-ui2/webpack/universalModuleDefinition","webpack://yc-ui2/./node_modules/core-js/internals/a-callable.js","webpack://yc-ui2/./node_modules/core-js/internals/an-object.js","webpack://yc-ui2/./node_modules/core-js/internals/array-includes.js","webpack://yc-ui2/./node_modules/core-js/internals/array-set-length.js","webpack://yc-ui2/./node_modules/core-js/internals/classof-raw.js","webpack://yc-ui2/./node_modules/core-js/internals/copy-constructor-properties.js","webpack://yc-ui2/./node_modules/core-js/internals/create-non-enumerable-property.js","webpack://yc-ui2/./node_modules/core-js/internals/create-property-descriptor.js","webpack://yc-ui2/./node_modules/core-js/internals/define-built-in.js","webpack://yc-ui2/./node_modules/core-js/internals/define-global-property.js","webpack://yc-ui2/./node_modules/core-js/internals/descriptors.js","webpack://yc-ui2/./node_modules/core-js/internals/document-all.js","webpack://yc-ui2/./node_modules/core-js/internals/document-create-element.js","webpack://yc-ui2/./node_modules/core-js/internals/does-not-exceed-safe-integer.js","webpack://yc-ui2/./node_modules/core-js/internals/engine-user-agent.js","webpack://yc-ui2/./node_modules/core-js/internals/engine-v8-version.js","webpack://yc-ui2/./node_modules/core-js/internals/enum-bug-keys.js","webpack://yc-ui2/./node_modules/core-js/internals/export.js","webpack://yc-ui2/./node_modules/core-js/internals/fails.js","webpack://yc-ui2/./node_modules/core-js/internals/function-bind-native.js","webpack://yc-ui2/./node_modules/core-js/internals/function-call.js","webpack://yc-ui2/./node_modules/core-js/internals/function-name.js","webpack://yc-ui2/./node_modules/core-js/internals/function-uncurry-this.js","webpack://yc-ui2/./node_modules/core-js/internals/get-built-in.js","webpack://yc-ui2/./node_modules/core-js/internals/get-method.js","webpack://yc-ui2/./node_modules/core-js/internals/global.js","webpack://yc-ui2/./node_modules/core-js/internals/has-own-property.js","webpack://yc-ui2/./node_modules/core-js/internals/hidden-keys.js","webpack://yc-ui2/./node_modules/core-js/internals/ie8-dom-define.js","webpack://yc-ui2/./node_modules/core-js/internals/indexed-object.js","webpack://yc-ui2/./node_modules/core-js/internals/inspect-source.js","webpack://yc-ui2/./node_modules/core-js/internals/internal-state.js","webpack://yc-ui2/./node_modules/core-js/internals/is-array.js","webpack://yc-ui2/./node_modules/core-js/internals/is-callable.js","webpack://yc-ui2/./node_modules/core-js/internals/is-forced.js","webpack://yc-ui2/./node_modules/core-js/internals/is-null-or-undefined.js","webpack://yc-ui2/./node_modules/core-js/internals/is-object.js","webpack://yc-ui2/./node_modules/core-js/internals/is-pure.js","webpack://yc-ui2/./node_modules/core-js/internals/is-symbol.js","webpack://yc-ui2/./node_modules/core-js/internals/length-of-array-like.js","webpack://yc-ui2/./node_modules/core-js/internals/make-built-in.js","webpack://yc-ui2/./node_modules/core-js/internals/math-trunc.js","webpack://yc-ui2/./node_modules/core-js/internals/object-define-property.js","webpack://yc-ui2/./node_modules/core-js/internals/object-get-own-property-descriptor.js","webpack://yc-ui2/./node_modules/core-js/internals/object-get-own-property-names.js","webpack://yc-ui2/./node_modules/core-js/internals/object-get-own-property-symbols.js","webpack://yc-ui2/./node_modules/core-js/internals/object-is-prototype-of.js","webpack://yc-ui2/./node_modules/core-js/internals/object-keys-internal.js","webpack://yc-ui2/./node_modules/core-js/internals/object-property-is-enumerable.js","webpack://yc-ui2/./node_modules/core-js/internals/ordinary-to-primitive.js","webpack://yc-ui2/./node_modules/core-js/internals/own-keys.js","webpack://yc-ui2/./node_modules/core-js/internals/require-object-coercible.js","webpack://yc-ui2/./node_modules/core-js/internals/shared-key.js","webpack://yc-ui2/./node_modules/core-js/internals/shared-store.js","webpack://yc-ui2/./node_modules/core-js/internals/shared.js","webpack://yc-ui2/./node_modules/core-js/internals/symbol-constructor-detection.js","webpack://yc-ui2/./node_modules/core-js/internals/to-absolute-index.js","webpack://yc-ui2/./node_modules/core-js/internals/to-indexed-object.js","webpack://yc-ui2/./node_modules/core-js/internals/to-integer-or-infinity.js","webpack://yc-ui2/./node_modules/core-js/internals/to-length.js","webpack://yc-ui2/./node_modules/core-js/internals/to-object.js","webpack://yc-ui2/./node_modules/core-js/internals/to-primitive.js","webpack://yc-ui2/./node_modules/core-js/internals/to-property-key.js","webpack://yc-ui2/./node_modules/core-js/internals/try-to-string.js","webpack://yc-ui2/./node_modules/core-js/internals/uid.js","webpack://yc-ui2/./node_modules/core-js/internals/use-symbol-as-uid.js","webpack://yc-ui2/./node_modules/core-js/internals/v8-prototype-define-bug.js","webpack://yc-ui2/./node_modules/core-js/internals/weak-map-basic-detection.js","webpack://yc-ui2/./node_modules/core-js/internals/well-known-symbol.js","webpack://yc-ui2/./node_modules/core-js/modules/es.array.push.js","webpack://yc-ui2/./src/components/YcCA/mTokenPluginBeijin/xtxasyn.js","webpack://yc-ui2/./src/components/YcCA/mTokenPlugin/mToken.js","webpack://yc-ui2/webpack/bootstrap","webpack://yc-ui2/webpack/runtime/compat get default export","webpack://yc-ui2/webpack/runtime/define property getters","webpack://yc-ui2/webpack/runtime/global","webpack://yc-ui2/webpack/runtime/hasOwnProperty shorthand","webpack://yc-ui2/webpack/runtime/make namespace object","webpack://yc-ui2/webpack/runtime/publicPath","webpack://yc-ui2/./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js","webpack://yc-ui2/./src/components/YcSlideVerify/index.vue","webpack://yc-ui2/src/components/YcSlideVerify/index.vue","webpack://yc-ui2/./src/components/YcSlideVerify/index.vue?7fa0","webpack://yc-ui2/./src/components/YcSlideVerify/index.vue?359a","webpack://yc-ui2/./src/components/YcSlideVerify/index.vue?cddb","webpack://yc-ui2/./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js","webpack://yc-ui2/./src/components/YcSlideVerify/index.vue?0582","webpack://yc-ui2/./src/components/YcCustomerService/index.vue","webpack://yc-ui2/./src/components/YcCustomerService/index.vue?88e2","webpack://yc-ui2/./src/components/YcCustomerService/chat.vue","webpack://yc-ui2/./src/components/YcCustomerService/chatMixin.js","webpack://yc-ui2/src/components/YcCustomerService/chat.vue","webpack://yc-ui2/./src/components/YcCustomerService/chat.vue?e8eb","webpack://yc-ui2/./src/components/YcCustomerService/chat.vue?fc16","webpack://yc-ui2/./src/components/YcCustomerService/chat.vue?1f05","webpack://yc-ui2/./src/components/YcCustomerService/chat.vue?40e1","webpack://yc-ui2/src/components/YcCustomerService/index.vue","webpack://yc-ui2/./src/components/YcCustomerService/index.vue?bf2a","webpack://yc-ui2/./src/components/YcCustomerService/index.vue?aaa3","webpack://yc-ui2/./src/components/YcCustomerService/index.vue?0e28","webpack://yc-ui2/./src/components/YcCustomerService/index.vue?cfd4","webpack://yc-ui2/./src/components/YcQuestion/index.vue","webpack://yc-ui2/src/components/YcQuestion/index.vue","webpack://yc-ui2/./src/components/YcQuestion/index.vue?6b41","webpack://yc-ui2/./src/components/YcQuestion/index.vue?b7c1","webpack://yc-ui2/./src/components/YcQuestion/index.vue?78f7","webpack://yc-ui2/./src/components/YcQuestion/index.vue?c0dd","webpack://yc-ui2/./src/components/YcCA/index.vue","webpack://yc-ui2/./src/components/YcCA/index.vue?4c22","webpack://yc-ui2/./src/components/YcCA/mTokenPlugin/base64.js","webpack://yc-ui2/./src/components/YcCA/mTokenPlugin/hunca_mToken_core2.js","webpack://yc-ui2/./src/components/YcCA/mTokenPluginBeijin/formateTime.js","webpack://yc-ui2/src/components/YcCA/index.vue","webpack://yc-ui2/./src/components/YcCA/index.vue?2187","webpack://yc-ui2/./src/components/YcCA/index.vue?f710","webpack://yc-ui2/./src/components/YcCA/index.vue?2aec","webpack://yc-ui2/./src/components/YcCA/index.vue?ea8d","webpack://yc-ui2/./src/packages/index.js","webpack://yc-ui2/./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"yc-ui2\"] = factory();\n\telse\n\t\troot[\"yc-ui2\"] = factory();\n})((typeof self !== 'undefined' ? self : this), function() {\nreturn ","'use strict';\nvar isCallable = require('../internals/is-callable');\nvar tryToString = require('../internals/try-to-string');\n\nvar $TypeError = TypeError;\n\n// `Assert: IsCallable(argument) is true`\nmodule.exports = function (argument) {\n if (isCallable(argument)) return argument;\n throw new $TypeError(tryToString(argument) + ' is not a function');\n};\n","'use strict';\nvar isObject = require('../internals/is-object');\n\nvar $String = String;\nvar $TypeError = TypeError;\n\n// `Assert: Type(argument) is Object`\nmodule.exports = function (argument) {\n if (isObject(argument)) return argument;\n throw new $TypeError($String(argument) + ' is not an object');\n};\n","'use strict';\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\n\n// `Array.prototype.{ indexOf, includes }` methods implementation\nvar createMethod = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIndexedObject($this);\n var length = lengthOfArrayLike(O);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare -- NaN check\n if (IS_INCLUDES && el !== el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare -- NaN check\n if (value !== value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) {\n if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.includes` method\n // https://tc39.es/ecma262/#sec-array.prototype.includes\n includes: createMethod(true),\n // `Array.prototype.indexOf` method\n // https://tc39.es/ecma262/#sec-array.prototype.indexof\n indexOf: createMethod(false)\n};\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar isArray = require('../internals/is-array');\n\nvar $TypeError = TypeError;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// Safari < 13 does not throw an error in this case\nvar SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS && !function () {\n // makes no sense without proper strict mode support\n if (this !== undefined) return true;\n try {\n // eslint-disable-next-line es/no-object-defineproperty -- safe\n Object.defineProperty([], 'length', { writable: false }).length = 1;\n } catch (error) {\n return error instanceof TypeError;\n }\n}();\n\nmodule.exports = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {\n if (isArray(O) && !getOwnPropertyDescriptor(O, 'length').writable) {\n throw new $TypeError('Cannot set read only .length');\n } return O.length = length;\n} : function (O, length) {\n return O.length = length;\n};\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\n\nvar toString = uncurryThis({}.toString);\nvar stringSlice = uncurryThis(''.slice);\n\nmodule.exports = function (it) {\n return stringSlice(toString(it), 8, -1);\n};\n","'use strict';\nvar hasOwn = require('../internals/has-own-property');\nvar ownKeys = require('../internals/own-keys');\nvar getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');\nvar definePropertyModule = require('../internals/object-define-property');\n\nmodule.exports = function (target, source, exceptions) {\n var keys = ownKeys(source);\n var defineProperty = definePropertyModule.f;\n var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {\n defineProperty(target, key, getOwnPropertyDescriptor(source, key));\n }\n }\n};\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = DESCRIPTORS ? function (object, key, value) {\n return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","'use strict';\nmodule.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","'use strict';\nvar isCallable = require('../internals/is-callable');\nvar definePropertyModule = require('../internals/object-define-property');\nvar makeBuiltIn = require('../internals/make-built-in');\nvar defineGlobalProperty = require('../internals/define-global-property');\n\nmodule.exports = function (O, key, value, options) {\n if (!options) options = {};\n var simple = options.enumerable;\n var name = options.name !== undefined ? options.name : key;\n if (isCallable(value)) makeBuiltIn(value, name, options);\n if (options.global) {\n if (simple) O[key] = value;\n else defineGlobalProperty(key, value);\n } else {\n try {\n if (!options.unsafe) delete O[key];\n else if (O[key]) simple = true;\n } catch (error) { /* empty */ }\n if (simple) O[key] = value;\n else definePropertyModule.f(O, key, {\n value: value,\n enumerable: false,\n configurable: !options.nonConfigurable,\n writable: !options.nonWritable\n });\n } return O;\n};\n","'use strict';\nvar global = require('../internals/global');\n\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\n\nmodule.exports = function (key, value) {\n try {\n defineProperty(global, key, { value: value, configurable: true, writable: true });\n } catch (error) {\n global[key] = value;\n } return value;\n};\n","'use strict';\nvar fails = require('../internals/fails');\n\n// Detect IE8's incomplete defineProperty implementation\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;\n});\n","'use strict';\nvar documentAll = typeof document == 'object' && document.all;\n\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot\n// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing\nvar IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;\n\nmodule.exports = {\n all: documentAll,\n IS_HTMLDDA: IS_HTMLDDA\n};\n","'use strict';\nvar global = require('../internals/global');\nvar isObject = require('../internals/is-object');\n\nvar document = global.document;\n// typeof document.createElement is 'object' in old IE\nvar EXISTS = isObject(document) && isObject(document.createElement);\n\nmodule.exports = function (it) {\n return EXISTS ? document.createElement(it) : {};\n};\n","'use strict';\nvar $TypeError = TypeError;\nvar MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991\n\nmodule.exports = function (it) {\n if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');\n return it;\n};\n","'use strict';\nmodule.exports = typeof navigator != 'undefined' && String(navigator.userAgent) || '';\n","'use strict';\nvar global = require('../internals/global');\nvar userAgent = require('../internals/engine-user-agent');\n\nvar process = global.process;\nvar Deno = global.Deno;\nvar versions = process && process.versions || Deno && Deno.version;\nvar v8 = versions && versions.v8;\nvar match, version;\n\nif (v8) {\n match = v8.split('.');\n // in old Chrome, versions of V8 isn't V8 = Chrome / 10\n // but their correct versions are not interesting for us\n version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);\n}\n\n// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`\n// so check `userAgent` even if `.v8` exists, but 0\nif (!version && userAgent) {\n match = userAgent.match(/Edge\\/(\\d+)/);\n if (!match || match[1] >= 74) {\n match = userAgent.match(/Chrome\\/(\\d+)/);\n if (match) version = +match[1];\n }\n}\n\nmodule.exports = version;\n","'use strict';\n// IE8- don't enum bug keys\nmodule.exports = [\n 'constructor',\n 'hasOwnProperty',\n 'isPrototypeOf',\n 'propertyIsEnumerable',\n 'toLocaleString',\n 'toString',\n 'valueOf'\n];\n","'use strict';\nvar global = require('../internals/global');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar defineGlobalProperty = require('../internals/define-global-property');\nvar copyConstructorProperties = require('../internals/copy-constructor-properties');\nvar isForced = require('../internals/is-forced');\n\n/*\n options.target - name of the target object\n options.global - target is the global object\n options.stat - export as static methods of target\n options.proto - export as prototype methods of target\n options.real - real prototype method for the `pure` version\n options.forced - export even if the native feature is available\n options.bind - bind methods to the target, required for the `pure` version\n options.wrap - wrap constructors to preventing global pollution, required for the `pure` version\n options.unsafe - use the simple assignment of property instead of delete + defineProperty\n options.sham - add a flag to not completely full polyfills\n options.enumerable - export as enumerable property\n options.dontCallGetSet - prevent calling a getter on target\n options.name - the .name of the function if it does not match the key\n*/\nmodule.exports = function (options, source) {\n var TARGET = options.target;\n var GLOBAL = options.global;\n var STATIC = options.stat;\n var FORCED, target, key, targetProperty, sourceProperty, descriptor;\n if (GLOBAL) {\n target = global;\n } else if (STATIC) {\n target = global[TARGET] || defineGlobalProperty(TARGET, {});\n } else {\n target = (global[TARGET] || {}).prototype;\n }\n if (target) for (key in source) {\n sourceProperty = source[key];\n if (options.dontCallGetSet) {\n descriptor = getOwnPropertyDescriptor(target, key);\n targetProperty = descriptor && descriptor.value;\n } else targetProperty = target[key];\n FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);\n // contained in target\n if (!FORCED && targetProperty !== undefined) {\n if (typeof sourceProperty == typeof targetProperty) continue;\n copyConstructorProperties(sourceProperty, targetProperty);\n }\n // add a flag to not completely full polyfills\n if (options.sham || (targetProperty && targetProperty.sham)) {\n createNonEnumerableProperty(sourceProperty, 'sham', true);\n }\n defineBuiltIn(target, key, sourceProperty, options);\n }\n};\n","'use strict';\nmodule.exports = function (exec) {\n try {\n return !!exec();\n } catch (error) {\n return true;\n }\n};\n","'use strict';\nvar fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-function-prototype-bind -- safe\n var test = (function () { /* empty */ }).bind();\n // eslint-disable-next-line no-prototype-builtins -- safe\n return typeof test != 'function' || test.hasOwnProperty('prototype');\n});\n","'use strict';\nvar NATIVE_BIND = require('../internals/function-bind-native');\n\nvar call = Function.prototype.call;\n\nmodule.exports = NATIVE_BIND ? call.bind(call) : function () {\n return call.apply(call, arguments);\n};\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar hasOwn = require('../internals/has-own-property');\n\nvar FunctionPrototype = Function.prototype;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;\n\nvar EXISTS = hasOwn(FunctionPrototype, 'name');\n// additional protection from minified / mangled / dropped function names\nvar PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';\nvar CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));\n\nmodule.exports = {\n EXISTS: EXISTS,\n PROPER: PROPER,\n CONFIGURABLE: CONFIGURABLE\n};\n","'use strict';\nvar NATIVE_BIND = require('../internals/function-bind-native');\n\nvar FunctionPrototype = Function.prototype;\nvar call = FunctionPrototype.call;\nvar uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);\n\nmodule.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) {\n return function () {\n return call.apply(fn, arguments);\n };\n};\n","'use strict';\nvar global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\n\nvar aFunction = function (argument) {\n return isCallable(argument) ? argument : undefined;\n};\n\nmodule.exports = function (namespace, method) {\n return arguments.length < 2 ? aFunction(global[namespace]) : global[namespace] && global[namespace][method];\n};\n","'use strict';\nvar aCallable = require('../internals/a-callable');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\n\n// `GetMethod` abstract operation\n// https://tc39.es/ecma262/#sec-getmethod\nmodule.exports = function (V, P) {\n var func = V[P];\n return isNullOrUndefined(func) ? undefined : aCallable(func);\n};\n","'use strict';\nvar check = function (it) {\n return it && it.Math === Math && it;\n};\n\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nmodule.exports =\n // eslint-disable-next-line es/no-global-this -- safe\n check(typeof globalThis == 'object' && globalThis) ||\n check(typeof window == 'object' && window) ||\n // eslint-disable-next-line no-restricted-globals -- safe\n check(typeof self == 'object' && self) ||\n check(typeof global == 'object' && global) ||\n // eslint-disable-next-line no-new-func -- fallback\n (function () { return this; })() || this || Function('return this')();\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar toObject = require('../internals/to-object');\n\nvar hasOwnProperty = uncurryThis({}.hasOwnProperty);\n\n// `HasOwnProperty` abstract operation\n// https://tc39.es/ecma262/#sec-hasownproperty\n// eslint-disable-next-line es/no-object-hasown -- safe\nmodule.exports = Object.hasOwn || function hasOwn(it, key) {\n return hasOwnProperty(toObject(it), key);\n};\n","'use strict';\nmodule.exports = {};\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\nvar createElement = require('../internals/document-create-element');\n\n// Thanks to IE8 for its funny defineProperty\nmodule.exports = !DESCRIPTORS && !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(createElement('div'), 'a', {\n get: function () { return 7; }\n }).a !== 7;\n});\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar classof = require('../internals/classof-raw');\n\nvar $Object = Object;\nvar split = uncurryThis(''.split);\n\n// fallback for non-array-like ES3 and non-enumerable old V8 strings\nmodule.exports = fails(function () {\n // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346\n // eslint-disable-next-line no-prototype-builtins -- safe\n return !$Object('z').propertyIsEnumerable(0);\n}) ? function (it) {\n return classof(it) === 'String' ? split(it, '') : $Object(it);\n} : $Object;\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar isCallable = require('../internals/is-callable');\nvar store = require('../internals/shared-store');\n\nvar functionToString = uncurryThis(Function.toString);\n\n// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper\nif (!isCallable(store.inspectSource)) {\n store.inspectSource = function (it) {\n return functionToString(it);\n };\n}\n\nmodule.exports = store.inspectSource;\n","'use strict';\nvar NATIVE_WEAK_MAP = require('../internals/weak-map-basic-detection');\nvar global = require('../internals/global');\nvar isObject = require('../internals/is-object');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar hasOwn = require('../internals/has-own-property');\nvar shared = require('../internals/shared-store');\nvar sharedKey = require('../internals/shared-key');\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar OBJECT_ALREADY_INITIALIZED = 'Object already initialized';\nvar TypeError = global.TypeError;\nvar WeakMap = global.WeakMap;\nvar set, get, has;\n\nvar enforce = function (it) {\n return has(it) ? get(it) : set(it, {});\n};\n\nvar getterFor = function (TYPE) {\n return function (it) {\n var state;\n if (!isObject(it) || (state = get(it)).type !== TYPE) {\n throw new TypeError('Incompatible receiver, ' + TYPE + ' required');\n } return state;\n };\n};\n\nif (NATIVE_WEAK_MAP || shared.state) {\n var store = shared.state || (shared.state = new WeakMap());\n /* eslint-disable no-self-assign -- prototype methods protection */\n store.get = store.get;\n store.has = store.has;\n store.set = store.set;\n /* eslint-enable no-self-assign -- prototype methods protection */\n set = function (it, metadata) {\n if (store.has(it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n store.set(it, metadata);\n return metadata;\n };\n get = function (it) {\n return store.get(it) || {};\n };\n has = function (it) {\n return store.has(it);\n };\n} else {\n var STATE = sharedKey('state');\n hiddenKeys[STATE] = true;\n set = function (it, metadata) {\n if (hasOwn(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n createNonEnumerableProperty(it, STATE, metadata);\n return metadata;\n };\n get = function (it) {\n return hasOwn(it, STATE) ? it[STATE] : {};\n };\n has = function (it) {\n return hasOwn(it, STATE);\n };\n}\n\nmodule.exports = {\n set: set,\n get: get,\n has: has,\n enforce: enforce,\n getterFor: getterFor\n};\n","'use strict';\nvar classof = require('../internals/classof-raw');\n\n// `IsArray` abstract operation\n// https://tc39.es/ecma262/#sec-isarray\n// eslint-disable-next-line es/no-array-isarray -- safe\nmodule.exports = Array.isArray || function isArray(argument) {\n return classof(argument) === 'Array';\n};\n","'use strict';\nvar $documentAll = require('../internals/document-all');\n\nvar documentAll = $documentAll.all;\n\n// `IsCallable` abstract operation\n// https://tc39.es/ecma262/#sec-iscallable\nmodule.exports = $documentAll.IS_HTMLDDA ? function (argument) {\n return typeof argument == 'function' || argument === documentAll;\n} : function (argument) {\n return typeof argument == 'function';\n};\n","'use strict';\nvar fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\n\nvar replacement = /#|\\.prototype\\./;\n\nvar isForced = function (feature, detection) {\n var value = data[normalize(feature)];\n return value === POLYFILL ? true\n : value === NATIVE ? false\n : isCallable(detection) ? fails(detection)\n : !!detection;\n};\n\nvar normalize = isForced.normalize = function (string) {\n return String(string).replace(replacement, '.').toLowerCase();\n};\n\nvar data = isForced.data = {};\nvar NATIVE = isForced.NATIVE = 'N';\nvar POLYFILL = isForced.POLYFILL = 'P';\n\nmodule.exports = isForced;\n","'use strict';\n// we can't use just `it == null` since of `document.all` special case\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec\nmodule.exports = function (it) {\n return it === null || it === undefined;\n};\n","'use strict';\nvar isCallable = require('../internals/is-callable');\nvar $documentAll = require('../internals/document-all');\n\nvar documentAll = $documentAll.all;\n\nmodule.exports = $documentAll.IS_HTMLDDA ? function (it) {\n return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll;\n} : function (it) {\n return typeof it == 'object' ? it !== null : isCallable(it);\n};\n","'use strict';\nmodule.exports = false;\n","'use strict';\nvar getBuiltIn = require('../internals/get-built-in');\nvar isCallable = require('../internals/is-callable');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar $Object = Object;\n\nmodule.exports = USE_SYMBOL_AS_UID ? function (it) {\n return typeof it == 'symbol';\n} : function (it) {\n var $Symbol = getBuiltIn('Symbol');\n return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));\n};\n","'use strict';\nvar toLength = require('../internals/to-length');\n\n// `LengthOfArrayLike` abstract operation\n// https://tc39.es/ecma262/#sec-lengthofarraylike\nmodule.exports = function (obj) {\n return toLength(obj.length);\n};\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\nvar hasOwn = require('../internals/has-own-property');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar CONFIGURABLE_FUNCTION_NAME = require('../internals/function-name').CONFIGURABLE;\nvar inspectSource = require('../internals/inspect-source');\nvar InternalStateModule = require('../internals/internal-state');\n\nvar enforceInternalState = InternalStateModule.enforce;\nvar getInternalState = InternalStateModule.get;\nvar $String = String;\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\nvar stringSlice = uncurryThis(''.slice);\nvar replace = uncurryThis(''.replace);\nvar join = uncurryThis([].join);\n\nvar CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () {\n return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;\n});\n\nvar TEMPLATE = String(String).split('String');\n\nvar makeBuiltIn = module.exports = function (value, name, options) {\n if (stringSlice($String(name), 0, 7) === 'Symbol(') {\n name = '[' + replace($String(name), /^Symbol\\(([^)]*)\\)/, '$1') + ']';\n }\n if (options && options.getter) name = 'get ' + name;\n if (options && options.setter) name = 'set ' + name;\n if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {\n if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true });\n else value.name = name;\n }\n if (CONFIGURABLE_LENGTH && options && hasOwn(options, 'arity') && value.length !== options.arity) {\n defineProperty(value, 'length', { value: options.arity });\n }\n try {\n if (options && hasOwn(options, 'constructor') && options.constructor) {\n if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false });\n // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable\n } else if (value.prototype) value.prototype = undefined;\n } catch (error) { /* empty */ }\n var state = enforceInternalState(value);\n if (!hasOwn(state, 'source')) {\n state.source = join(TEMPLATE, typeof name == 'string' ? name : '');\n } return value;\n};\n\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n// eslint-disable-next-line no-extend-native -- required\nFunction.prototype.toString = makeBuiltIn(function toString() {\n return isCallable(this) && getInternalState(this).source || inspectSource(this);\n}, 'toString');\n","'use strict';\nvar ceil = Math.ceil;\nvar floor = Math.floor;\n\n// `Math.trunc` method\n// https://tc39.es/ecma262/#sec-math.trunc\n// eslint-disable-next-line es/no-math-trunc -- safe\nmodule.exports = Math.trunc || function trunc(x) {\n var n = +x;\n return (n > 0 ? floor : ceil)(n);\n};\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\nvar V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug');\nvar anObject = require('../internals/an-object');\nvar toPropertyKey = require('../internals/to-property-key');\n\nvar $TypeError = TypeError;\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar $defineProperty = Object.defineProperty;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar ENUMERABLE = 'enumerable';\nvar CONFIGURABLE = 'configurable';\nvar WRITABLE = 'writable';\n\n// `Object.defineProperty` method\n// https://tc39.es/ecma262/#sec-object.defineproperty\nexports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {\n var current = $getOwnPropertyDescriptor(O, P);\n if (current && current[WRITABLE]) {\n O[P] = Attributes.value;\n Attributes = {\n configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],\n enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],\n writable: false\n };\n }\n } return $defineProperty(O, P, Attributes);\n} : $defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return $defineProperty(O, P, Attributes);\n } catch (error) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw new $TypeError('Accessors not supported');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar call = require('../internals/function-call');\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toPropertyKey = require('../internals/to-property-key');\nvar hasOwn = require('../internals/has-own-property');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\n\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// `Object.getOwnPropertyDescriptor` method\n// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor\nexports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {\n O = toIndexedObject(O);\n P = toPropertyKey(P);\n if (IE8_DOM_DEFINE) try {\n return $getOwnPropertyDescriptor(O, P);\n } catch (error) { /* empty */ }\n if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);\n};\n","'use strict';\nvar internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\nvar hiddenKeys = enumBugKeys.concat('length', 'prototype');\n\n// `Object.getOwnPropertyNames` method\n// https://tc39.es/ecma262/#sec-object.getownpropertynames\n// eslint-disable-next-line es/no-object-getownpropertynames -- safe\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return internalObjectKeys(O, hiddenKeys);\n};\n","'use strict';\n// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe\nexports.f = Object.getOwnPropertySymbols;\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = uncurryThis({}.isPrototypeOf);\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar hasOwn = require('../internals/has-own-property');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar indexOf = require('../internals/array-includes').indexOf;\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar push = uncurryThis([].push);\n\nmodule.exports = function (object, names) {\n var O = toIndexedObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (hasOwn(O, key = names[i++])) {\n ~indexOf(result, key) || push(result, key);\n }\n return result;\n};\n","'use strict';\nvar $propertyIsEnumerable = {}.propertyIsEnumerable;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// Nashorn ~ JDK8 bug\nvar NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);\n\n// `Object.prototype.propertyIsEnumerable` method implementation\n// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable\nexports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {\n var descriptor = getOwnPropertyDescriptor(this, V);\n return !!descriptor && descriptor.enumerable;\n} : $propertyIsEnumerable;\n","'use strict';\nvar call = require('../internals/function-call');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\n\nvar $TypeError = TypeError;\n\n// `OrdinaryToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-ordinarytoprimitive\nmodule.exports = function (input, pref) {\n var fn, val;\n if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val;\n if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n throw new $TypeError(\"Can't convert object to primitive value\");\n};\n","'use strict';\nvar getBuiltIn = require('../internals/get-built-in');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');\nvar getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');\nvar anObject = require('../internals/an-object');\n\nvar concat = uncurryThis([].concat);\n\n// all object keys, includes non-enumerable and symbols\nmodule.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {\n var keys = getOwnPropertyNamesModule.f(anObject(it));\n var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;\n};\n","'use strict';\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\n\nvar $TypeError = TypeError;\n\n// `RequireObjectCoercible` abstract operation\n// https://tc39.es/ecma262/#sec-requireobjectcoercible\nmodule.exports = function (it) {\n if (isNullOrUndefined(it)) throw new $TypeError(\"Can't call method on \" + it);\n return it;\n};\n","'use strict';\nvar shared = require('../internals/shared');\nvar uid = require('../internals/uid');\n\nvar keys = shared('keys');\n\nmodule.exports = function (key) {\n return keys[key] || (keys[key] = uid(key));\n};\n","'use strict';\nvar global = require('../internals/global');\nvar defineGlobalProperty = require('../internals/define-global-property');\n\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || defineGlobalProperty(SHARED, {});\n\nmodule.exports = store;\n","'use strict';\nvar IS_PURE = require('../internals/is-pure');\nvar store = require('../internals/shared-store');\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: '3.33.0',\n mode: IS_PURE ? 'pure' : 'global',\n copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',\n license: 'https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE',\n source: 'https://github.com/zloirock/core-js'\n});\n","'use strict';\n/* eslint-disable es/no-symbol -- required for testing */\nvar V8_VERSION = require('../internals/engine-v8-version');\nvar fails = require('../internals/fails');\nvar global = require('../internals/global');\n\nvar $String = global.String;\n\n// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing\nmodule.exports = !!Object.getOwnPropertySymbols && !fails(function () {\n var symbol = Symbol('symbol detection');\n // Chrome 38 Symbol has incorrect toString conversion\n // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances\n // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,\n // of course, fail.\n return !$String(symbol) || !(Object(symbol) instanceof Symbol) ||\n // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances\n !Symbol.sham && V8_VERSION && V8_VERSION < 41;\n});\n","'use strict';\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar max = Math.max;\nvar min = Math.min;\n\n// Helper for a popular repeating case of the spec:\n// Let integer be ? ToInteger(index).\n// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).\nmodule.exports = function (index, length) {\n var integer = toIntegerOrInfinity(index);\n return integer < 0 ? max(integer + length, 0) : min(integer, length);\n};\n","'use strict';\n// toObject with fallback for non-array-like ES3 strings\nvar IndexedObject = require('../internals/indexed-object');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nmodule.exports = function (it) {\n return IndexedObject(requireObjectCoercible(it));\n};\n","'use strict';\nvar trunc = require('../internals/math-trunc');\n\n// `ToIntegerOrInfinity` abstract operation\n// https://tc39.es/ecma262/#sec-tointegerorinfinity\nmodule.exports = function (argument) {\n var number = +argument;\n // eslint-disable-next-line no-self-compare -- NaN check\n return number !== number || number === 0 ? 0 : trunc(number);\n};\n","'use strict';\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar min = Math.min;\n\n// `ToLength` abstract operation\n// https://tc39.es/ecma262/#sec-tolength\nmodule.exports = function (argument) {\n return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991\n};\n","'use strict';\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nvar $Object = Object;\n\n// `ToObject` abstract operation\n// https://tc39.es/ecma262/#sec-toobject\nmodule.exports = function (argument) {\n return $Object(requireObjectCoercible(argument));\n};\n","'use strict';\nvar call = require('../internals/function-call');\nvar isObject = require('../internals/is-object');\nvar isSymbol = require('../internals/is-symbol');\nvar getMethod = require('../internals/get-method');\nvar ordinaryToPrimitive = require('../internals/ordinary-to-primitive');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar $TypeError = TypeError;\nvar TO_PRIMITIVE = wellKnownSymbol('toPrimitive');\n\n// `ToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-toprimitive\nmodule.exports = function (input, pref) {\n if (!isObject(input) || isSymbol(input)) return input;\n var exoticToPrim = getMethod(input, TO_PRIMITIVE);\n var result;\n if (exoticToPrim) {\n if (pref === undefined) pref = 'default';\n result = call(exoticToPrim, input, pref);\n if (!isObject(result) || isSymbol(result)) return result;\n throw new $TypeError(\"Can't convert object to primitive value\");\n }\n if (pref === undefined) pref = 'number';\n return ordinaryToPrimitive(input, pref);\n};\n","'use strict';\nvar toPrimitive = require('../internals/to-primitive');\nvar isSymbol = require('../internals/is-symbol');\n\n// `ToPropertyKey` abstract operation\n// https://tc39.es/ecma262/#sec-topropertykey\nmodule.exports = function (argument) {\n var key = toPrimitive(argument, 'string');\n return isSymbol(key) ? key : key + '';\n};\n","'use strict';\nvar $String = String;\n\nmodule.exports = function (argument) {\n try {\n return $String(argument);\n } catch (error) {\n return 'Object';\n }\n};\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\n\nvar id = 0;\nvar postfix = Math.random();\nvar toString = uncurryThis(1.0.toString);\n\nmodule.exports = function (key) {\n return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);\n};\n","'use strict';\n/* eslint-disable es/no-symbol -- required for testing */\nvar NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');\n\nmodule.exports = NATIVE_SYMBOL\n && !Symbol.sham\n && typeof Symbol.iterator == 'symbol';\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\n\n// V8 ~ Chrome 36-\n// https://bugs.chromium.org/p/v8/issues/detail?id=3334\nmodule.exports = DESCRIPTORS && fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(function () { /* empty */ }, 'prototype', {\n value: 42,\n writable: false\n }).prototype !== 42;\n});\n","'use strict';\nvar global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\n\nvar WeakMap = global.WeakMap;\n\nmodule.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap));\n","'use strict';\nvar global = require('../internals/global');\nvar shared = require('../internals/shared');\nvar hasOwn = require('../internals/has-own-property');\nvar uid = require('../internals/uid');\nvar NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar Symbol = global.Symbol;\nvar WellKnownSymbolsStore = shared('wks');\nvar createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol['for'] || Symbol : Symbol && Symbol.withoutSetter || uid;\n\nmodule.exports = function (name) {\n if (!hasOwn(WellKnownSymbolsStore, name)) {\n WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn(Symbol, name)\n ? Symbol[name]\n : createWellKnownSymbol('Symbol.' + name);\n } return WellKnownSymbolsStore[name];\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar toObject = require('../internals/to-object');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar setArrayLength = require('../internals/array-set-length');\nvar doesNotExceedSafeInteger = require('../internals/does-not-exceed-safe-integer');\nvar fails = require('../internals/fails');\n\nvar INCORRECT_TO_LENGTH = fails(function () {\n return [].push.call({ length: 0x100000000 }, 1) !== 4294967297;\n});\n\n// V8 and Safari <= 15.4, FF < 23 throws InternalError\n// https://bugs.chromium.org/p/v8/issues/detail?id=12681\nvar properErrorOnNonWritableLength = function () {\n try {\n // eslint-disable-next-line es/no-object-defineproperty -- safe\n Object.defineProperty([], 'length', { writable: false }).push();\n } catch (error) {\n return error instanceof TypeError;\n }\n};\n\nvar FORCED = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength();\n\n// `Array.prototype.push` method\n// https://tc39.es/ecma262/#sec-array.prototype.push\n$({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n push: function push(item) {\n var O = toObject(this);\n var len = lengthOfArrayLike(O);\n var argCount = arguments.length;\n doesNotExceedSafeInteger(len + argCount);\n for (var i = 0; i < argCount; i++) {\n O[len] = arguments[i];\n len++;\n }\n setArrayLength(O, len);\n return len;\n }\n});\n","/* eslint-disable no-unused-vars */\r\n/*\r\n --------------------------------------------------------------\r\n * FileName:xtxasyn.js\r\n * This Javascript provides asynchronous interfaces\r\n * Support bjca client version 3.4.1 and later\r\n * Author:BJCA-zys\r\n * Date: 2021-05-06\r\n *\r\n --------------------------------------------------------------\r\n */\r\n \r\n(function() {\r\nif (typeof xtxasyn === 'undefined') {\r\n // eslint-disable-next-line no-undef\r\n xtxasyn = {};\r\n}\r\n})();\r\n\r\n// initialize xtxasyn hashMap object\r\n(function() {\r\n\r\nfunction XTXAsynHashMap(){\r\n this.map = {};\r\n}\r\n\r\nXTXAsynHashMap.prototype = {\r\n put : function(key , value){\r\n this.map[key] = value;\r\n },\r\n\r\n get : function(key){\r\n // eslint-disable-next-line no-prototype-builtins\r\n if(this.map.hasOwnProperty(key)){\r\n return this.map[key];\r\n }\r\n return null;\r\n },\r\n \r\n remove : function(key){\r\n // eslint-disable-next-line no-prototype-builtins\r\n if(this.map.hasOwnProperty(key)){\r\n return delete this.map[key];\r\n }\r\n return false;\r\n },\r\n \r\n removeAll : function(){\r\n this.map = {};\r\n },\r\n \r\n keySet : function(){\r\n var _keys = [];\r\n for(var i in this.map){\r\n _keys.push(i);\r\n }\r\n return _keys;\r\n }\r\n};\r\n\r\nXTXAsynHashMap.prototype.constructor = XTXAsynHashMap;\r\n\r\n// eslint-disable-next-line no-undef\r\nxtxasyn.HashMap = XTXAsynHashMap;\r\n})();\r\n\r\n// initialize xtxasyn util object\r\n(function() {\r\n\r\nfunction initUtilObject(xtxasyn) {\r\n\r\n var util = xtxasyn.util = xtxasyn.util || {};\r\n \r\n util.checkBrowserISIE = function() {\r\n return (!!window.ActiveXObject || 'ActiveXObject' in window) ? true : false;\r\n }\r\n \r\n util.checkLocationIsHttps = function() {\r\n return 'https:' == document.location.protocol ? true: false;\r\n }\r\n \r\n util.evalFunction = function (func) {\r\n if (typeof func === 'function') {\r\n return func;\r\n } else if (typeof func === 'string') {\r\n // eslint-disable-next-line no-undef\r\n cb = eval(func);\r\n } else {\r\n return null;\r\n }\r\n }\r\n \r\n util.consolelog = function(param) {\r\n if (window.console == undefined || window.console.log == undefined) {\r\n return;\r\n }\r\n console.log(param);\r\n }\r\n \r\n util.isEmpty = function(param) {\r\n if (!param) {\r\n return true;\r\n }\r\n if (typeof param == 'string' && param == \"\") {\r\n return true;\r\n }\r\n \r\n return false;\r\n }\r\n\r\n util.loadIECtl = function(clsid, ctlName, checkFunc) {\r\n if (!util.checkBrowserISIE()) {\r\n return null;\r\n }\r\n var ctl = document.getElementById(ctlName);\r\n if (ctl) {\r\n return ctl;\r\n }\r\n try {\r\n var loadObjString = '<object id=\"' + ctlName + '\" classid=\"CLSID:' + clsid + '\" style=\"HEIGHT:0px; WIDTH:0px\">';\r\n loadObjString += '</object>';\r\n document.write(loadObjString);\r\n if (checkFunc != null && checkFunc != \"\" && eval(ctlName + \".\" + checkFunc) == undefined) {\r\n return null; \r\n }\r\n } catch (e) {\r\n util.consolelog(e);\r\n return null;\r\n }\r\n return document.getElementById(ctlName);\r\n }\r\n\r\n util.getAutoExecFunctionString = function (func) {\r\n var ret = \"(\";\r\n ret += func.toString();\r\n ret += \")()\";\r\n \r\n return ret;\r\n }\r\n\r\n util.attachIEEvent = function(ctlName, eventName, eventFunc) {\r\n var ctl;\r\n if (typeof ctlName === 'string') {\r\n ctl = eval(ctlName);\r\n } else {\r\n ctl = ctlName;\r\n }\r\n eventName = eventName.toLowerCase();\r\n\r\n var cb = util.evalFunction(eventFunc);\r\n if (cb == null) {\r\n return;\r\n }\r\n\r\n if (ctl.attachEvent) {\r\n ctl.attachEvent(eventName, cb);\r\n } else { // IE11 not support attachEvent, and addEventListener do not work well, so addEvent ourself\r\n var handler = document.createElement(\"script\");\r\n handler.setAttribute(\"for\", ctlName);\r\n handler.setAttribute(\"event\", eventName);\r\n var eventScript = util.getAutoExecFunctionString(eventFunc);\r\n handler.appendChild(document.createTextNode(eventScript));\r\n document.getElementsByTagName(\"head\")[0].appendChild(handler);\r\n }\r\n }\r\n\r\n util.loadWebSocketCtl = function(wsUrl, wssUrl) {\r\n if (xtxasyn.wsObject) {\r\n return xtxasyn.wsObject;\r\n }\r\n var url;\r\n if (util.checkLocationIsHttps()) {\r\n url = \"wss://\" + wssUrl;\r\n } else {\r\n url = \"ws://\" + wsUrl;\r\n }\r\n \r\n var wsObject = {\r\n socket : undefined,\r\n wsMessageQueue : new xtxasyn.HashMap(),\r\n wsMessageQueueId : 0,\r\n wsEventQueue : new xtxasyn.HashMap(),\r\n wsURL : url,\r\n wsCacheMessage : []\r\n };\r\n xtxasyn.wsObject = wsObject;\r\n xtxasyn.wsObject.wsEventQueue.put(\"onusbkeychange\", util.evalFunction(xtxasyn.custom.defaultUsbkeyChange));\r\n \r\n try {\r\n wsObject.socket = new WebSocket(url); \r\n } catch (e) {\r\n util.consolelog(e);\r\n return null;\r\n }\r\n \r\n // eslint-disable-next-line no-unused-vars\r\n wsObject.socket.onopen = function(evt) {\r\n xtxasyn.util.consolelog(\"open websocket[\" + url + \"] ok...\");\r\n xtxasyn.SOF_GetVersion(function(ret) {\r\n util.consolelog(\"SOF_GetVersion:(\" + ret.retVal + \")\");\r\n });\r\n while (xtxasyn.wsObject.wsCacheMessage.length > 0) {\r\n var tb_send = xtxasyn.wsObject.wsCacheMessage.shift();\r\n //alert(tb_send);\r\n xtxasyn.wsObject.socket.send(tb_send);\r\n }\r\n }\r\n // eslint-disable-next-line no-unused-vars\r\n wsObject.socket.onclose = function(evt) {\r\n util.consolelog(\"websocket[\" + url + \"] closed, reopen it...\");\r\n xtxasyn.wsObject = undefined;\r\n xtxasyn.XTXAppWebSocket = xtxasyn.util.loadWebSocketCtl(wsUrl, wssUrl);\r\n };\r\n wsObject.socket.onmessage = function(evt) {\r\n // eslint-disable-next-line no-unused-vars\r\n var eventCmd = false;\r\n if (xtxasyn.util.isEmpty(evt.data)) {\r\n util.consolelog(\"onmessage evt.data is NULL or empty!!!\");\r\n return;\r\n }\r\n try {\r\n var res = JSON.parse(evt.data);\r\n var cmdId = undefined;\r\n // eslint-disable-next-line no-prototype-builtins\r\n if (res.hasOwnProperty('call_cmd_id')) {\r\n cmdId = res['call_cmd_id'];\r\n } else {\r\n util.consolelog(\"return JSON not include call_cmd_id!!!\");\r\n return;\r\n }\r\n \r\n var retVal = undefined;\r\n // eslint-disable-next-line no-prototype-builtins\r\n if (res.hasOwnProperty('retValue')) {\r\n retVal = res['retValue'];\r\n // eslint-disable-next-line no-prototype-builtins\r\n } else if (res.hasOwnProperty('retVal')) {\r\n retVal = res['retVal'];\r\n }\r\n \r\n var methodName = undefined;\r\n var eventName = cmdId.toLowerCase();\r\n var execFunc = xtxasyn.wsObject.wsEventQueue.get(eventName);\r\n if (execFunc && typeof execFunc == 'function') { // event\r\n execFunc(retVal);\r\n } else { // function\r\n var messageQueue = xtxasyn.wsObject.wsMessageQueue.get(cmdId);\r\n if (!messageQueue || !messageQueue.method) {\r\n util.consolelog(\"can't find call_cmd_id[\" + res['call_cmd_id'] + \"]'s method name!!!\");\r\n return;\r\n }\r\n methodName = messageQueue.method;\r\n execFunc = messageQueue.cb;\r\n if (!execFunc || typeof execFunc != 'function') {\r\n util.consolelog(\"can't find call_cmd_id[\" + res['call_cmd_id'] + \"]'s call back function!!!\");\r\n return;\r\n }\r\n var ctx = messageQueue.ctx;\r\n ctx = ctx || {returnType:\"string\"};\r\n var ret;\r\n if (ctx.returnType == \"bool\"){\r\n if (typeof(retVal) == 'string') {\r\n ret = retVal == \"true\" ? true : false;\r\n } else {\r\n ret = retVal;\r\n }\r\n if (ret == undefined) {\r\n ret = false;\r\n }\r\n } else if (ctx.returnType == \"number\"){\r\n if (typeof(retVal) == 'string') {\r\n ret = Number(retVal);\r\n } else {\r\n ret = retVal;\r\n }\r\n if (ret == undefined) {\r\n ret = -1;\r\n }\r\n } else{\r\n ret = retVal;\r\n if (ret == undefined) {\r\n ret = \"\";\r\n }\r\n }\r\n if (res.token) {\r\n //alert(res.token);\r\n xtxasyn.custom.setToken(res.token);\r\n }\r\n if (((methodName == 'SOF_Login' || methodName == 'SOF_LoginEx') && !ret) || (methodName == 'SOF_Logout' && ret)) {\r\n xtxasyn.custom.setToken(\"\");\r\n } \r\n var retObj = {retVal:ret, ctx:ctx};\r\n execFunc(retObj);\r\n xtxasyn.wsObject.wsMessageQueue.remove(cmdId);\r\n }\r\n } catch (e) {\r\n return;\r\n }\r\n };\r\n wsObject.socket.onerror = function(evt) { \r\n xtxasyn.util.consolelog(evt.data);\r\n };\r\n \r\n return wsObject;\r\n }\r\n \r\n util.attachWebSocketEvent = function(wsObject, eventName, eventFunc) {\r\n if (wsObject == null) {\r\n return;\r\n }\r\n wsObject.wsEventQueue.put(eventName.toLowerCase(), util.evalFunction(eventFunc));\r\n }\r\n \r\n util.callWebSocketMethod = function (wsObject, clsid, method, cb, ctx, returnType, argsArray) {\r\n if (wsObject == null) {\r\n return;\r\n }\r\n wsObject.wsMessageQueueId++;\r\n if (typeof(cb) == 'function'){\r\n ctx = ctx || {};\r\n ctx.returnType = returnType;\r\n var messageQueue = {cb:cb, ctx:ctx, method:method};\r\n wsObject.wsMessageQueue.put('i_' + wsObject.wsMessageQueueId, messageQueue);\r\n }\r\n\r\n var sendArray = {\r\n 'call_cmd_id' : 'i_' + wsObject.wsMessageQueueId,\r\n 'CLSID' : clsid,\r\n 'xtx_func_name' : method,\r\n 'func' : method,\r\n 'URL' : window.location.href\r\n };\r\n if (arguments.length > 6) {\r\n for (var i = 1; i <= argsArray.length; i++) {\r\n var strParam = \"param_\" + i;\r\n sendArray[strParam] = argsArray[i - 1];\r\n }\r\n sendArray[\"param\"] = argsArray;\r\n }\r\n var token = xtxasyn.custom.getToken();\r\n if (token && token != \"\") {\r\n sendArray.token = token;\r\n }\r\n if (wsObject.socket.readyState == WebSocket.OPEN) {\r\n wsObject.socket.send(JSON.stringify(sendArray));\r\n } else if (wsObject.socket.readyState == WebSocket.CONNECTING) {\r\n // The websocket connection has not been successfully created. \r\n // If the html page already has requested data, we will put it in the cache(wsObject.wsCacheMessage),\r\n // and then send the data one by one after the connection is successfully created.\r\n wsObject.wsCacheMessage.push(JSON.stringify(sendArray));\r\n } else {\r\n xtxasyn.util.consolelog(\"Can't connect to WebSocket server[\" + wsObject.wsURL + \"]!!!\");\r\n }\r\n }\r\n\r\n util.SynToAsyn = function(retVal, cb, ctx)\r\n {\r\n if (typeof cb == 'function') {\r\n var retObj = {retVal:retVal, ctx:ctx};\r\n cb(retObj);\r\n } \r\n }\r\n}\r\n\r\n// eslint-disable-next-line no-undef\r\nreturn initUtilObject(xtxasyn);\r\n})();\r\n\r\n// initialize index page and other custom action\r\n(function() {\r\n \r\nfunction initCustomActions(xtxasyn) {\r\n var custom = xtxasyn.custom = xtxasyn.custom || {};\r\n \r\n custom.softCertListID = \"\";\r\n custom.hardCertListID = \"\";\r\n custom.allCertListID = \"\";\r\n custom.loginCertID = \"\";\r\n custom.logoutFunc = null;\r\n custom.UsbkeyChangeFunc = null;\r\n custom.loginToken = \"\";\r\n \r\n custom.errorReportFunc = function(msg) {\r\n alert(msg);\r\n }\r\n \r\n custom.setAutoLogoutParameter = function(strCertID, logoutFunc) {\r\n var custom = xtxasyn.custom;\r\n custom.loginCertID = strCertID;\r\n custom.logoutFunc = logoutFunc;\r\n }\r\n\r\n custom.clearDropList = function(dropListId) {\r\n if (dropListId == \"\") {\r\n return;\r\n }\r\n\r\n var obj = document.getElementById(dropListId);\r\n if (obj == undefined) {\r\n obj = eval(dropListId);\r\n } \r\n if (obj == undefined) {\r\n return;\r\n }\r\n\r\n var i, n = obj.length;\r\n for (i = 0; i < n; i++) {\r\n obj.remove(0);\r\n }\r\n }\r\n\r\n custom.pushOneDropListBox = function(userListArray, strListID) \r\n {\r\n var obj = document.getElementById(strListID);\r\n if (obj == undefined) {\r\n obj = eval(strListID);\r\n }\r\n if (obj == undefined) {\r\n return;\r\n }\r\n \r\n for (var i = 0; i < userListArray.length; i++) {\r\n var certObj = userListArray[i];\r\n var objItem = new Option(certObj.certName, certObj.certID);\r\n obj.options.add(objItem);\r\n } \r\n return;\r\n }\r\n\r\n custom.pushUserListToAllDroplist = function(retObj) {\r\n var custom = xtxasyn.custom;\r\n\r\n custom.clearDropList(custom.softCertListID);\r\n custom.clearDropList(custom.hardCertListID);\r\n custom.clearDropList(custom.allCertListID);\r\n\r\n var strUserList = retObj.retVal;\r\n var allListArray = [];\r\n // eslint-disable-next-line no-constant-condition\r\n while (true) {\r\n var i = strUserList.indexOf(\"&&&\");\r\n if (i <= 0 ) {\r\n break;\r\n }\r\n var strOneUser = strUserList.substring(0, i);\r\n var strName = strOneUser.substring(0, strOneUser.indexOf(\"||\"));\r\n var strCertID = strOneUser.substring(strOneUser.indexOf(\"||\") + 2, strOneUser.length);\r\n allListArray.push({certName:strName, certID:strCertID});\r\n \r\n if (custom.hardCertListID != \"\") {\r\n xtxasyn.GetDeviceInfo(strCertID, 7, function(retObj) {\r\n if (retObj.retVal == \"HARD\") {\r\n custom.pushOneDropListBox([retObj.ctx], custom.hardCertListID);\r\n }\r\n }, {certName:strName, certID:strCertID});\r\n }\r\n \r\n if (custom.softCertListID != \"\") {\r\n xtxasyn.GetDeviceInfo(strCertID, 7, function(retObj) {\r\n if (retObj.retVal == \"SOFT\") {\r\n custom.pushOneDropListBox([retObj.ctx], custom.softCertListID);\r\n }\r\n }, {certName:strName, certID:strCertID});\r\n }\r\n var len = strUserList.length;\r\n strUserList = strUserList.substring(i + 3, len);\r\n }\r\n\r\n if (custom.allCertListID != \"\") {\r\n custom.pushOneDropListBox(allListArray, custom.allCertListID);\r\n }\r\n }\r\n \r\n custom.setUserCertList = function(certListId, certType) {\r\n var custom = xtxasyn.custom;\r\n\r\n if (certType == CERT_TYPE_ALL || certType == undefined) {\r\n custom.allCertListID = certListId;\r\n }\r\n \r\n if (certType == CERT_TYPE_HARD) {\r\n custom.hardCertListID = certListId;\r\n }\r\n \r\n if (certType == CERT_TYPE_SOFT) {\r\n custom.softCertListID = certListId;\r\n }\r\n xtxasyn.SOF_GetUserList(custom.pushUserListToAllDroplist);\r\n }\r\n \r\n custom.setOnUsbKeyChangeCallBack = function(callback) {\r\n var custom = xtxasyn.custom;\r\n custom.UsbkeyChangeFunc = callback;\r\n }\r\n \r\n custom.setErrorReportFunc = function(errFunc) {\r\n var custom = xtxasyn.custom;\r\n custom.errorReportFunc = errFunc;\r\n }\r\n\r\n custom.autoLogoutCallBack = function(retObj) {\r\n var custom = xtxasyn.custom;\r\n if (retObj.retVal.indexOf(custom.loginCertID) <= 0) {\r\n custom.logoutFunc();\r\n }\r\n }\r\n \r\n custom.defaultUsbkeyChange = function() {\r\n var custom = xtxasyn.custom;\r\n xtxasyn.SOF_GetUserList(custom.pushUserListToAllDroplist);\r\n \r\n if (typeof custom.UsbkeyChangeFunc == 'function') {\r\n custom.UsbkeyChangeFunc();\r\n }\r\n\r\n if (custom.loginCertID != \"\" && typeof custom.logoutFunc == 'function') {\r\n xtxasyn.SOF_GetUserList(custom.autoLogoutCallBack);\r\n }\r\n }\r\n \r\n custom.getToken = function() {\r\n return custom.loginToken;\r\n }\r\n \r\n custom.setToken = function(token) {\r\n custom.loginToken = token;\r\n }\r\n}\r\n\r\n// eslint-disable-next-line no-undef\r\nreturn initCustomActions(xtxasyn);\r\n})();\r\n\r\n// initialize xtxappcom object\r\n(function() {\r\n \r\nfunction initXTXAppCOM(xtxasyn) {\r\n var util = xtxasyn.util;\r\n var custom = xtxasyn.custom; \r\n\r\n xtxasyn.XTXAppCOM = util.loadIECtl(xtxasyn.xtx_clsid, \"XTXAppObj\", \"SOF_GetVersion()\");\r\n if (xtxasyn.XTXAppCOM == null) {\r\n custom.errorReportFunc(\"加载XTXAppCOM控件失败,请确认已正确安装BJCA证书应用环境!\");\r\n return false;\r\n }\r\n var XTXAppCOM = xtxasyn.XTXAppCOM;\r\n \r\n util.attachIEEvent(\"XTXAppObj\", \"onUsbkeyChange\", xtxasyn.custom.defaultUsbkeyChange);\r\n \r\n // get key pic interface\r\n var GetPicObj = util.loadIECtl(xtxasyn.getpic_clsid, \"GetPicObj\", \"Hash('0')\");\r\n if (GetPicObj == null) {\r\n //custom.errorReportFunc(\"加载GetKeyPic控件失败,请确认已正确安装GetKeyPic控件!\");\r\n } else {\r\n XTXAppCOM.GetPic = function(strCertID) {\r\n return GetPicObj.GetPic(strCertID);\r\n }\r\n XTXAppCOM.Hash = function(inData) {\r\n return GetPicObj.Hash(inData);\r\n }\r\n XTXAppCOM.ConvertPicFormat = function(inData, type) {\r\n return GetPicObj.ConvertPicFormat(inData, type);\r\n }\r\n XTXAppCOM.ConvertGif2Jpg = function(inData) {\r\n return GetPicObj.ConvertGif2Jpg(inData);\r\n }\r\n XTXAppCOM.GetPic1 = function(strCertID) {\r\n return GetPicObj.GetPic1(strCertID);\r\n }\r\n XTXAppCOM.ConvertPicSize = function(strPicture, w, h) {\r\n return GetPicObj.ConvertPicSize(strPicture, w, h);\r\n }\r\n }\r\n \r\n // xtxversion interface\r\n var XTXVersionOBJ = util.loadIECtl(xtxasyn.xtx_version_clsid, \"XTXVersionOBJ\", \"GetEnvVersion()\");\r\n if (XTXVersionOBJ == null) {\r\n //custom.errorReportFunc(\"加载XTXVersion控件失败,请确认已正确安装证书应用环境!\");\r\n } else {\r\n XTXAppCOM.GetEnvVersion = function() {\r\n return XTXVersionOBJ.GetEnvVersion();\r\n }\r\n } \r\n \r\n return true;\r\n}\r\n\r\nfunction initXTXAppWebSocket(xtxasyn) { \r\n xtxasyn.XTXAppWebSocket = xtxasyn.util.loadWebSocketCtl(\"127.0.0.1:21051/xtxapp/\", \"127.0.0.1:21061/xtxapp/\");\r\n if (xtxasyn.XTXAppWebSocket == null) {\r\n // eslint-disable-next-line no-undef\r\n custom.errorReportFunc(\"连接XTXAppCOM服务失败,请确认已正确安装BJCA证书应用环境!\");\r\n return false;\r\n }\r\n\r\n return true;\r\n}\r\n\r\nfunction initXTXAppObject(xtxasyn) {\r\n var util = xtxasyn.util;\r\n xtxasyn.xtx_clsid = \"3F367B74-92D9-4C5E-AB93-234F8A91D5E6\";\r\n xtxasyn.getpic_clsid = \"3BC3C868-95B5-47ED-8686-E0E3E94EF366\";\r\n xtxasyn.xtx_version_clsid = \"574887FB-22A5-488B-A49C-2CF25F56BE68\";\r\n var getImplmentFunction;\r\n\r\n if (util.checkBrowserISIE()) { // IE\r\n if (!initXTXAppCOM(xtxasyn)) {\r\n return false;\r\n }\r\n getImplmentFunction = function(methodInfo) {\r\n if (methodInfo.inParams == '') { // 0 input param\r\n window[methodInfo.funcName] = new Function('cb', 'ctx', \r\n 'xtxasyn.util.SynToAsyn(xtxasyn.XTXAppCOM.' + methodInfo.funcName + '(), cb, ctx);');\r\n } else {\r\n window[methodInfo.funcName] = new Function(methodInfo.inParams, 'cb', 'ctx', \r\n 'xtxasyn.util.SynToAsyn(xtxasyn.XTXAppCOM.' + methodInfo.funcName + '(' + methodInfo.inParams + '), cb, ctx);');\r\n }\r\n }\r\n } else { // other brower\r\n if (!initXTXAppWebSocket(xtxasyn)) {\r\n return false;\r\n }\r\n getImplmentFunction = function(methodInfo) {\r\n if (methodInfo.inParams == '') { // 0 input param\r\n window[methodInfo.funcName] = new Function('cb, ctx', \r\n \"xtxasyn.util.callWebSocketMethod(xtxasyn.XTXAppWebSocket, '\" + methodInfo.clsid + \"', '\" + \r\n methodInfo.funcName + \"', cb, ctx, '\" + methodInfo.outParamType + \"', []);\");\r\n } else {\r\n window[methodInfo.funcName] = new Function(methodInfo.inParams + ', cb, ctx', \r\n \"xtxasyn.util.callWebSocketMethod(xtxasyn.XTXAppWebSocket, '\" + methodInfo.clsid + \"', '\" + \r\n methodInfo.funcName + \"', cb, ctx, '\" + methodInfo.outParamType + \"', [\" + methodInfo.inParams + \"]);\");\r\n }\r\n }\r\n }\r\n\r\n var export_functions = [\r\n {funcName:'SOF_SetSignMethod', inParams:'SignMethod', outParamType:'number', clsid:xtxasyn.xtx_clsid, aliasName:'SetSignMethod'},\r\n {funcName:'SOF_GetSignMethod', inParams:'', outParamType:'number', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_SetEncryptMethod', inParams:'EncryptMethod', outParamType:'number', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_GetEncryptMethod', inParams:'', outParamType:'number', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_GetUserList', inParams:'', outParamType:'string', clsid:xtxasyn.xtx_clsid, aliasName:'GetUserList'},\r\n {funcName:'SOF_ExportUserCert', inParams:'CertID', outParamType:'string', clsid:xtxasyn.xtx_clsid, aliasName:'GetSignCert'},\r\n {funcName:'SOF_Login', inParams:'CertID, PassWd', outParamType:'bool', clsid:xtxasyn.xtx_clsid, aliasName:'VerifyUserPIN'},\r\n {funcName:'SOF_GetPinRetryCount', inParams:'CertID', outParamType:'number', clsid:xtxasyn.xtx_clsid, aliasName:'GetUserPINRetryCount'},\r\n {funcName:'SOF_ChangePassWd', inParams:'CertID, oldPass, newPass', outParamType:'bool', clsid:xtxasyn.xtx_clsid, aliasName:'ChangeUserPassword'},\r\n {funcName:'SOF_GetCertInfo', inParams:'Cert, type', outParamType:'string', clsid:xtxasyn.xtx_clsid, aliasName:'GetCertBasicinfo'},\r\n {funcName:'SOF_GetCertInfoByOid', inParams:'Cert, Oid', outParamType:'string', clsid:xtxasyn.xtx_clsid, aliasName:'GetExtCertInfoByOID'},\r\n {funcName:'SOF_SignData', inParams:'CertID, InData', outParamType:'string', clsid:xtxasyn.xtx_clsid, aliasName:'SignedData'},\r\n {funcName:'SOF_VerifySignedData', inParams:'Cert, InData, SignValue', outParamType:'bool', clsid:xtxasyn.xtx_clsid, aliasName:'VerifySignedData'},\r\n {funcName:'SOF_SignFile', inParams:'CertID, InFile', outParamType:'string', clsid:xtxasyn.xtx_clsid, aliasName:'SOF_SignFile'},\r\n {funcName:'SOF_VerifySignedFile', inParams:'Cert, InFile, SignValue', outParamType:'bool', clsid:xtxasyn.xtx_clsid, aliasName:'VerifySignFile'},\r\n {funcName:'SOF_EncryptData', inParams:'Cert, InData', outParamType:'string', clsid:xtxasyn.xtx_clsid, aliasName:'EncodeP7Enveloped'},\r\n {funcName:'SOF_DecryptData', inParams:'CertID, InData', outParamType:'string', clsid:xtxasyn.xtx_clsid, aliasName:'DecodeP7Enveloped'},\r\n {funcName:'SOF_EncryptFile', inParams:'Cert, InFile, OutFile', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_DecryptFile', inParams:'CertID, InFile, OutFile', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_SignMessage', inParams:'dwFlag, CertID, InData', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_VerifySignedMessage', inParams:'MessageData, InData', outParamType:'bool', clsid:xtxasyn.xtx_clsid, aliasName:'VerifyDatabyP7'},\r\n {funcName:'SOF_GetInfoFromSignedMessage', inParams:'SignedMessage, type', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_SignDataXML', inParams:'CertID, InData', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_VerifySignedDataXML', inParams:'InData', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_GetXMLSignatureInfo', inParams:'XMLSignedData, type', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_GenRandom', inParams:'RandomLen', outParamType:'string', clsid:xtxasyn.xtx_clsid, aliasName:'GenerateRandom'},\r\n {funcName:'SOF_PubKeyEncrypt', inParams:'Cert, InData', outParamType:'string', clsid:xtxasyn.xtx_clsid, aliasName:'PubKeyEncrypt'},\r\n {funcName:'SOF_PriKeyDecrypt', inParams:'CertID, InData', outParamType:'string', clsid:xtxasyn.xtx_clsid, aliasName:'PriKeyDecrypt'},\r\n {funcName:'SOF_SecertSegment', inParams:'Secert, m, n, k', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_SecertRecovery', inParams:'Seg', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_GetLastError', inParams:'', outParamType:'number', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'GetDeviceCount', inParams:'', outParamType:'number', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'GetAllDeviceSN', inParams:'', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'GetDeviceSNByIndex', inParams:'iIndex', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'GetDeviceInfo', inParams:'sDeviceSN, iType', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'ChangeAdminPass', inParams:'sDeviceSN, sOldPass, sNewPass', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'UnlockUserPass', inParams:'sDeviceSN, sAdminPass, sNewUserPass', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'GenerateKeyPair', inParams:'sDeviceSN, sContainerName, iKeyType, bSign', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'ExportPubKey', inParams:'sDeviceSN, sContainerName, bSign', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'ImportSignCert', inParams:'sDeviceSN, sContainerName, sCert', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'ImportEncCert', inParams:'sDeviceSN, sContainerName, sCert, sPriKeyCipher', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'ReadFile', inParams:'sDeviceSN, sFileName', outParamType:'string', clsid:xtxasyn.xtx_clsid, aliasName:'readFile'},\r\n {funcName:'WriteFile', inParams:'sDeviceSN, sFileName, sContent, bPrivate', outParamType:'bool', clsid:xtxasyn.xtx_clsid, aliasName:'writeFile'},\r\n {funcName:'IsContainerExist', inParams:'sDeviceSN, sContainerName', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'DeleteContainer', inParams:'sDeviceSN, sContainerName', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'ExportPKCS10', inParams:'sDeviceSN, sContainerName, sDN, bSign', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'InitDevice', inParams:'sDeviceSN, sAdminPass', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'AddSignInfo', inParams:'sUserPass', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_GetVersion', inParams:'', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_ExportExChangeUserCert', inParams:'CertID', outParamType:'string', clsid:xtxasyn.xtx_clsid, aliasName:'GetExchCert'},\r\n {funcName:'SOF_ValidateCert', inParams:'Cert', outParamType:'number', clsid:xtxasyn.xtx_clsid, aliasName:'ValidateCert'},\r\n {funcName:'GetENVSN', inParams:'sDeviceSN', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SetENVSN', inParams:'sDeviceSN, sEnvsn', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'IsDeviceExist', inParams:'sDeviceSN', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'GetContainerCount', inParams:'sDeviceSN', outParamType:'number', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_SymEncryptData', inParams:'sKey, indata', outParamType:'string', clsid:xtxasyn.xtx_clsid, aliasName:'EncryptData'},\r\n {funcName:'SOF_SymDecryptData', inParams:'sKey, indata', outParamType:'string', clsid:xtxasyn.xtx_clsid, aliasName:'DecryptData'},\r\n {funcName:'SOF_SymEncryptFile', inParams:'sKey, inFile, outFile', outParamType:'bool', clsid:xtxasyn.xtx_clsid, aliasName:'EncryptFile'},\r\n {funcName:'SOF_SymDecryptFile', inParams:'sKey, inFile, outFile', outParamType:'bool', clsid:xtxasyn.xtx_clsid, aliasName:'DecryptFile'},\r\n {funcName:'SOF_GetLastErrMsg', inParams:'', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_Base64Encode', inParams:'sIndata', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_Base64Decode', inParams:'sIndata', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_HashData', inParams:'hashAlg, sInData', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_HashFile', inParams:'hashAlg, inFile', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'UnlockUserPassEx', inParams:'sDeviceSN, sAdminPin, sNewUserPass', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'DeleteOldContainer', inParams:'sDeviceSN', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'WriteFileEx', inParams:'sDeviceSN, sFileName, sContent', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'ReadFileEx', inParams:'sDeviceSN, sFileName', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n\t\t{funcName:'WriteFileBase64', inParams:'sDeviceSN, sFileName, sContent', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n\t\t{funcName:'DeleteFile', inParams:'sDeviceSN, sFileName', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_EncryptDataEx', inParams:'Cert, InData', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'Base64EncodeFile', inParams:'sInFile', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_GetRetryCount', inParams:'CertID', outParamType:'number', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_GetAllContainerName', inParams:'sDeviceSN', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'CreateSoftDevice', inParams:'sDeviceSN, sLabel', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'DeleteSoftDevice', inParams:'sDeviceSN, sPasswd', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'EnableSoftDevice', inParams:'enable, sDeviceSN', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SoftDeviceBackup', inParams:'sDeviceSN, sPasswd', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SoftDeviceRestore', inParams:'sDeviceSN, sPasswd, sInFilePath', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_Logout', inParams:'CertID', outParamType:'bool', clsid:xtxasyn.xtx_clsid, aliasName:'Logout'},\r\n {funcName:'SetUserConfig', inParams:'type, strConfig', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_SignByteData', inParams:'CertID, byteLen', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_VerifySignedByteData', inParams:'Cert, byteLen, SignValue', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'OTP_GetChallengeCode', inParams:'sCertID', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'ImportEncCertEx', inParams:'sDeviceSN, sContainerName, sCert, sPriKeyCipher, ulSymAlg', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_GetCertEntity', inParams:'sCert', outParamType:'string', clsid:xtxasyn.xtx_clsid, aliasName:'GetCertEntity'},\r\n {funcName:'SOF_HMAC', inParams:'hashid, key, indata', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_SignDataByPriKey', inParams:'sPriKey, sCert, sInData', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'ImportKeyCertToSoftDevice', inParams:'sDeviceSN, sContainerName, sPriKey, sCert, bSign', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'InitDeviceEx', inParams:'sDeviceSN, sAdminPass, sUserPin, sKeyLabel, adminPinMaxRetry, userPinMaxRetry', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SelectFile', inParams:'', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_SignHashData', inParams:'CertID, b64ashData, hashAlg', outParamType:'string', clsid:xtxasyn.xtx_clsid, aliasName:'SignHashData'},\r\n {funcName:'SOF_VerifySignedHashData', inParams:'Cert, b64ashData, SignValue, hashAlg', outParamType:'bool', clsid:xtxasyn.xtx_clsid, aliasName:'VerifySignedHashData'},\r\n {funcName:'CheckSoftDeviceEnv', inParams:'', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'ImportPfxToDevice', inParams:'sDeviceSN, sContainerName, bSign, strPfx, strPfxPass', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_HashDataEx', inParams:'hashAlg, sInData, sCert, sID', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_HashFileEx', inParams:'hashAlg, inFile, sCert, sID', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'GetDeviceCountEx', inParams:'type', outParamType:'number', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'GetAllDeviceSNEx', inParams:'type', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_UpdateCert', inParams:'CertID, type', outParamType:'number', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'OpenSpecifiedFolder', inParams:'backupFilePath', outParamType:'', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'OTP_GetChallengeCodeEx', inParams:'sCertID, szAccount, money', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'Base64DecodeFile', inParams:'sInData, sFilePath', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'EnumFilesInDevice', inParams:'sDeviceSN', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'OTP_Halt', inParams:'sCertID', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_TSGenREQ', inParams:'b64Hash, hashAlg, bReqCert, policyID, b64Nonce, b64Extension', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_TSCompareNonce', inParams:'b64TSReq, b64TSAResp', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_TSGenPDFSignature', inParams:'b64TSAResp, b64OriPDFSignature', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_TSVerifyPDFSignature', inParams:'b64TSPDFSignature', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_TSGetPDFSignatureInfo', inParams:'b64TSPDFSignature, iType', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'OTP_GetState', inParams:'sCertID, bCert', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'OTP_GetSyncCode', inParams:'sCertID, ChallengeCode', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_IsLogin', inParams:'CertID', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_LoginEx', inParams:'CertID, PassWd, updateFlag', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'EnumSupportDeviceList', inParams:'', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'ExportPfxFromDevice', inParams:'sDeviceSN, sContainerName, bSign, strPfxPass', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_SignHashMessage', inParams:'CertID, InHashData, hashAlg', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'ExportPfxToFile', inParams:'sDeviceSN, sContainerName, bSign, strPfxPass', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_SignAPK', inParams:'CertID, strOriSignature', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'YZT_GenerateKeyPair', inParams:'sDeviceSN, sContainerName, iKeyTypeRSA, iKeyTypeSM2', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'YZT_ExportPubKey', inParams:'sDeviceSN, sContainerName, bSign', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'YZT_ImportSignCert', inParams:'sDeviceSN, sContainerName, sRSACert, sSM2Cert', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'YZT_ImportEncCert', inParams:'sDeviceSN, sContainerName, sRSACert, sRSAPriKeyCipher, ulRSASymAlg, sSM2Cert, sSM2PriKeyCipher, ulSM2SymAlg', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_ListenUKey', inParams:'Parm', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_EnableLoginWindow', inParams:'Parm', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_SignEnvelope', inParams:'CertID, Cert, InData', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_UnSignEnvelope', inParams:'CertID, InData', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'BIO_MAKExportPKCS10', inParams:'sDeviceSN, iKeyType, sDN', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'BIO_MAKImportSignEncCert', inParams:'sDeviceSN, sSignCert, sEncCert, sPriKeyCipher', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'BIO_IssueDAKCert', inParams:'sDeviceSN, iKeyType, sDN', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'BIO_InfoCollect', inParams:'', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'BIO_GetBioInfo', inParams:'sDeviceSN', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_GetLastLoginCertID', inParams:'', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_ReadESealData', inParams:'CertID, ulKeyIndex, ulKeyAlgId, ulFlags', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_ReadKFXESealData', inParams:'CertID, ulKeyIndex, ulKeyAlgId, ulFlags', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_SymDecryptFileToData', inParams:'sKey, inFile', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_SignMessageBase64', inParams:'dwFlag, CertID, InData', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_VerifySignedMessageBase64', inParams:'MessageData, InData', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_VerifySignedHashMessage', inParams:'MessageData, InHashData', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_SignDataBase64', inParams:'CertID, InData', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_VerifySignedDataBase64', inParams:'Cert, InData, SignValue', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_HashDataExBase64', inParams:'hashAlg, sInData, sCert, sID', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_GetProductVersion', inParams:'', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_UpdateCertEx', inParams:'CertID, PassWd', outParamType:'number', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_GetLastSignDataCertID', inParams:'CertID', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'BIO_SetUserConfig', inParams:'CertID, type, strConfig', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'BIO_InvokeCommand', inParams:'CertID, bstrCommand', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_ImportSymmKey', inParams:'CertID, ulKeyIndex, InData, ulFlags', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_WriteESealData', inParams:'CertID, InData, ulFlags', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_EPS_Encrypt', inParams:'CertID, ulKeyIndex, ulKeyAlgId, IVData, DivCount, DivComponent, InData, ulFlags', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_EPS_Decrypt', inParams:'CertID, ulKeyIndex, ulKeyAlgId, IVData, DivCount, DivComponent, InData, ulFlags', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_EPS_Mac', inParams:'CertID, ulKeyIndex, ulKeyAlgId, IVData, DivCount, DivComponent, InData, ulFlags', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_PriKeyDecryptEx', inParams:'CertID, InData', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_EPS_ReadESealData', inParams:'CertID, ulKeyIndex, ulKeyAlgId, ulFlags', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_EPS_WriteESealData', inParams:'CertID, InData, ulFlags', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'EnumESeal', inParams:'sDeviceSN', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n\t\t{funcName:'GetPicture', inParams:'bstrConName', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n\t\t{funcName:'SOF_SignEnvelopeFile', inParams:'CertID, Cert, InFile, OutFile', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n\t\t{funcName:'SOF_UnSignEnvelopeFile', inParams:'CertID, InFile, OutFile', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n\t\t{funcName:'SOFX_EncryptFile', inParams:'CertID, Cert, InFile, OutFile, ulFlags', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n\t\t{funcName:'SOFX_DecryptFile', inParams:'CertID, InFile, OutFile, ulFlags', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\t\t\r\n {funcName:'GetPic', inParams:'bstrConName', outParamType:'string', clsid:xtxasyn.getpic_clsid},\r\n {funcName:'Hash', inParams:'inData', outParamType:'string', clsid:xtxasyn.getpic_clsid},\r\n {funcName:'ConvertPicFormat', inParams:'inData, type', outParamType:'string', clsid:xtxasyn.getpic_clsid},\r\n {funcName:'ConvertGif2Jpg', inParams:'inData', outParamType:'string', clsid:xtxasyn.getpic_clsid},\r\n {funcName:'GetPic1', inParams:'bstrConName', outParamType:'string', clsid:xtxasyn.getpic_clsid},\r\n {funcName:'ConvertPicSize', inParams:'bstrPic, w, h', outParamType:'string', clsid:xtxasyn.getpic_clsid},\t\t\r\n {funcName:'GetEnvVersion', inParams:'', outParamType:'string', clsid:xtxasyn.xtx_version_clsid},\r\n\t\t{funcName:'InitDeviceWithParam', inParams:'sDeviceSN, sAppName, sAdminPass, sUserPin, sKeyLabel, adminPinMaxRetry, userPinMaxRetry, createFileRights', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n\t\t{funcName:'SOF_SignDataEx', inParams:'CertID, InData,signFlag', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_VerifySignedDataEx', inParams:'Cert, InData, SignValue,signFlag', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n\t\t{funcName:'SOF_SymEncryptDataEx', inParams:'sKey,sIV,indata', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_SymDecryptDataEx', inParams:'sKey,sIV,indata', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n\t\t\r\n\t\t// 3.8 added \r\n\t\t{funcName:'SOFX_InvokeCommand', inParams:'pluginName,InParam', outParamType:'string', clsid:xtxasyn.xtx_clsid},\t\r\n\t\t\r\n\t\t{funcName:'SOF_SymEncryptFileEx', inParams:'sKey,sIV,inFile, outFile', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_SymDecryptFileEx', inParams:'sKey,sIV,inFile, outFile', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n\t\t{funcName:'SOF_SymDecryptFileToDataEx', inParams:'sKey,sIV,inFile', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n\t\t{funcName:'SOFX_SymEncryptDataWithPadding', inParams:'sKey,sIV,padding,indata', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOFX_SymDecryptDataWithPadding', inParams:'sKey,sIV,padding,indata', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n\t\t{funcName:'SOFX_SymEncryptFileWithPadding', inParams:'sKey,sIV,padding,inFile, outFile', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOFX_SymDecryptFileWithPadding', inParams:'sKey,sIV,padding,inFile, outFile', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n\t\t{funcName:'SOFX_VerifySignedDataWithID', inParams:'Cert, InData, SignValue,userId', outParamType:'bool', clsid:xtxasyn.xtx_clsid}, \r\n {funcName:'SOFX_VerifySignedFileWithID', inParams:'Cert, InFile, SignValue,userId', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n ];\r\n\r\n for (var i = 0; i < export_functions.length; i++) {\r\n getImplmentFunction(export_functions[i]);\r\n xtxasyn[export_functions[i].funcName] = window[export_functions[i].funcName];\r\n if (export_functions[i].aliasName) {\r\n window[export_functions[i].aliasName] = window[export_functions[i].funcName];\r\n xtxasyn[export_functions[i].aliasName] = window[export_functions[i].funcName];\r\n }\r\n \r\n }\r\n\r\n return true;\r\n}\r\n\r\n// eslint-disable-next-line no-undef\r\nreturn initXTXAppObject(xtxasyn);\r\n})();\r\n\r\n///////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n////////////////////////////////////// EXPORT VAR AND FUNCTIONS ///////////////////////////////////////////\r\n///////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n// const var\r\nvar CERT_TYPE_HARD = 1;\r\nvar CERT_TYPE_SOFT = 2;\r\nvar CERT_TYPE_ALL = 3;\r\n\r\n// set auto logout parameters\r\nfunction SetAutoLogoutParameter(strCertID, logoutFunc) {\r\n // eslint-disable-next-line no-undef\r\n xtxasyn.custom.setAutoLogoutParameter(strCertID, logoutFunc);\r\n}\r\n\r\n// set user cert list id\r\nfunction SetUserCertList(strListID, certType) {\r\n // eslint-disable-next-line no-undef\r\n xtxasyn.custom.setUserCertList(strListID, certType);\r\n}\r\n\r\n// set custom usbkeychange callback\r\nfunction SetOnUsbKeyChangeCallBack(callback) {\r\n // eslint-disable-next-line no-undef\r\n xtxasyn.custom.setOnUsbKeyChangeCallBack(callback);\r\n}\r\n\r\n// set custom alert function\r\nfunction SetAlertFunction(custom_alert) {\r\n // eslint-disable-next-line no-undef\r\n xtxasyn.custom.setErrorReportFunc(custom_alert);\r\n}\r\n\r\n// get custom userlogin token \r\nfunction GetLoginToken() {\r\n // eslint-disable-next-line no-undef\r\n return xtxasyn.custom.getToken();\r\n}\r\n\r\nfunction SetLoginToken(tokenData) {\r\n // eslint-disable-next-line no-undef\r\n return xtxasyn.custom.setToken(tokenData);\r\n}\r\n\r\nfunction GetUserListByType(strType, cb, ctx) { // strType is 'HARD' or 'SOFT'\r\n // eslint-disable-next-line no-undef\r\n SOF_GetUserList(function(retObj) {\r\n var strUserList = retObj.retVal;\r\n // eslint-disable-next-line no-constant-condition\r\n while (true) {\r\n var i = strUserList.indexOf(\"&&&\");\r\n if (i <= 0 ) {\r\n break;\r\n }\r\n var strOneUser = strUserList.substring(0, i);\r\n var strName = strOneUser.substring(0, strOneUser.indexOf(\"||\"));\r\n var strCertID = strOneUser.substring(strOneUser.indexOf(\"||\") + 2, strOneUser.length);\r\n GetDeviceType(strCertID, function(retObj) {\r\n if (retObj.retVal == retObj.ctx.ctx.type) {\r\n if (typeof retObj.ctx.ctx.cb == 'function') {\r\n retObj.ctx.ctx.cb({retVal:retObj.ctx.userList, ctx:retObj.ctx.ctx.ctx})\r\n }\r\n }\r\n }, {userList:strOneUser, ctx:retObj.ctx});\r\n var len = strUserList.length;\r\n strUserList = strUserList.substring(i + 3, len);\r\n }\r\n }, {type:strType, cb:cb, ctx:ctx});\r\n}\r\n\r\n//get usbKey user list\r\nfunction GetUserList_USBKey(cb, ctx) {\r\n return GetUserListByType(\"HARD\", cb, ctx);\r\n}\r\n\r\n//get soft user list\r\nfunction GetUserList_Soft() {\r\n // eslint-disable-next-line no-undef\r\n return GetUserListByType(\"SOFT\", cb, ctx);\r\n}\r\n\r\n//sign data with pkcs7 format\r\nfunction SignByP7(strCertID, strInData, bDetach) {\r\n // eslint-disable-next-line no-undef\r\n return xtxasyn.SOF_SignMessage(bDetach ? 1 : 0, strCertID, strInData);\r\n}\r\n\r\n//get symmitric key length \r\n//because xtx and secxv2 secx default symmitric alg is no equal\r\nfunction GetSymKeyLength() {\r\n return 24; \r\n}\r\n\r\n//get device type return SOFT or HARD\r\nfunction GetDeviceType(strCertID) {\r\n // eslint-disable-next-line no-undef\r\n return xtxasyn.GetDeviceInfo(strCertID, 7); \r\n}\r\n\r\n// calculate file's hash\r\nfunction HashFile(strFilePath) {\r\n // eslint-disable-next-line no-undef\r\n return xtxasyn.SOF_HashFile(2/*sha1*/, strFilePath);\r\n}\r\n\r\nfunction ParseDateString(strDate) {\r\n var strYear = strDate.substring(0, 4);\r\n var strMonth = strDate.substring(4, 6);\r\n var strDay = strDate.substring(6, 8);\r\n var strHour = strDate.substring(8, 10);\r\n var strMin = strDate.substring(10, 12);\r\n var strSecond = strDate.substring(12, 14);\r\n var RtnDate = new Date();\r\n RtnDate.setFullYear(Number(strYear), Number(strMonth) - 1, Number(strDay));\r\n RtnDate.setHours(Number(strHour));\r\n RtnDate.setMinutes(Number(strMin));\r\n RtnDate.setSeconds(Number(strSecond));\r\n return RtnDate;\r\n}\r\n\r\nfunction __loginSignRandomCallBack(retObj) {\r\n if (retObj.retVal == \"\") {\r\n // eslint-disable-next-line no-undef\r\n xtxasyn.custom.errorReportFunc(\"客户端签名失败!\");\r\n if (typeof retObj.ctx.cb === 'function') {\r\n retObj.ctx.cb(false);\r\n }\r\n return;\r\n }\r\n var objForm = retObj.ctx.objForm;\r\n objForm.UserSignedData.value = retObj.retVal;\r\n // eslint-disable-next-line no-undef\r\n objForm.LoginToken.value = xtxasyn.custom.getToken();\r\n if (typeof retObj.ctx.cb === 'function') {\r\n retObj.ctx.cb(true);\r\n } else {\r\n objForm.action = retObj.ctx.action;\r\n objForm.submit();\r\n }\r\n}\r\n\r\nfunction __loginVerifyServerSignatureCallBack(retObj) {\r\n if (!retObj.retVal) {\r\n // eslint-disable-next-line no-undef\r\n xtxasyn.custom.errorReportFunc(\"验证服务器端信息失败!\");\r\n if (typeof retObj.ctx.cb === 'function') {\r\n retObj.ctx.cb(false);\r\n }\r\n return;\r\n }\r\n \r\n var strCertID = retObj.ctx.certID;\r\n // eslint-disable-next-line no-undef\r\n xtxasyn.SOF_SignData(strCertID, strServerRan, __loginSignRandomCallBack, retObj.ctx);\r\n}\r\nfunction __loginCheckCertValidNotAfter(retObj) {\r\n var notAfterDate = ParseDateString(retObj.retVal);\r\n var milliseconds = notAfterDate.getTime() - new Date().getTime();\r\n if (milliseconds < 0) {\r\n // eslint-disable-next-line no-undef\r\n xtxasyn.custom.errorReportFunc(\"您的证书已过期,请尽快到北京数字证书认证中心办理证书更新手续!\");\r\n if (typeof retObj.ctx.cb === 'function') {\r\n retObj.ctx.cb(false);\r\n }\r\n return;\r\n }\r\n\r\n // eslint-disable-next-line no-undef\r\n days = parseInt(milliseconds / (1000*60*60*24));\r\n // eslint-disable-next-line no-undef\r\n if (days > 0 && days <= 60) {\r\n // eslint-disable-next-line no-undef\r\n xtxasyn.custom.errorReportFunc(\"您的证书还有\" + days + \"天过期\\n请您尽快到北京数字证书认证中心办理证书更新手续!\");\r\n // eslint-disable-next-line no-undef\r\n } else if (days == 0) { // 证书有效期天数小于1天\r\n var hours = parseInt(milliseconds / (1000*60*60));\r\n if (hours > 0) {\r\n // eslint-disable-next-line no-undef\r\n xtxasyn.custom.errorReportFunc(\"您的证书还有\" + hours + \"小时过期\\n请您尽快到北京数字证书认证中心办理证书更新手续!\");\r\n }\r\n // 证书有效期小于1小时\r\n var minutes = parseInt(milliseconds / (1000*60));\r\n if (minutes > 1) {\r\n // eslint-disable-next-line no-undef\r\n xtxasyn.custom.errorReportFunc(\"您的证书还有\" + minutes + \"分钟过期\\n请您尽快到北京数字证书认证中心办理证书更新手续!\");\r\n } else {\r\n // eslint-disable-next-line no-undef\r\n xtxasyn.custom.errorReportFunc(\"您的证书已过期,请尽快到北京数字证书认证中心办理证书更新手续!\");\r\n if (typeof retObj.ctx.cb === 'function') {\r\n retObj.ctx.cb(false);\r\n }\r\n return;\r\n }\r\n }\r\n\r\n // eslint-disable-next-line no-undef\r\n xtxasyn.SOF_VerifySignedData(strServerCert, strServerRan, strServerSignedData, \r\n __loginVerifyServerSignatureCallBack, retObj.ctx);\r\n}\r\n\r\nfunction __loginCheckCertValidNotBefore(retObj) {\r\n var notBeforeDate = ParseDateString(retObj.retVal);\r\n var days = parseInt((notBeforeDate.getTime() - new Date().getTime()) / (1000*60*60*24));\r\n if (days > 0) {\r\n // eslint-disable-next-line no-undef\r\n xtxasyn.custom.errorReportFunc(\"您的证书尚未生效!距离生效日期还剩\" + days + \"天!\");\r\n if (typeof retObj.ctx.cb === 'function') {\r\n retObj.ctx.cb(false);\r\n }\r\n return;\r\n }\r\n var strUserCert = retObj.ctx.objForm.UserCert.value;\r\n // eslint-disable-next-line no-undef\r\n xtxasyn.SOF_GetCertInfo(strUserCert, 12, __loginCheckCertValidNotAfter, retObj.ctx);\r\n}\r\n\r\nfunction __loginGetSignCertCallBack(retObj) {\r\n var strUserCert = retObj.retVal;\r\n if (strUserCert == \"\") {\r\n // eslint-disable-next-line no-undef\r\n xtxasyn.custom.errorReportFunc(\"导出用户证书失败!\");\r\n if (typeof retObj.ctx.cb === 'function') {\r\n retObj.ctx.cb(false);\r\n }\r\n return;\r\n }\r\n retObj.ctx.objForm.UserCert.value = strUserCert;\r\n \r\n // eslint-disable-next-line no-undef\r\n xtxasyn.SOF_GetCertInfo(strUserCert, 11, __loginCheckCertValidNotBefore, retObj.ctx);\r\n}\r\n\r\nfunction __loginGetPINRetryCallBack(retObj) {\r\n var retryCount = Number(retObj.retVal);\r\n if (retryCount > 0) {\r\n // eslint-disable-next-line no-undef\r\n xtxasyn.custom.errorReportFunc(\"校验证书密码失败!您还有\" + retryCount + \"次机会重试!\");\r\n } else if (retryCount == 0) {\r\n // eslint-disable-next-line no-undef\r\n xtxasyn.custom.errorReportFunc(\"您的证书密码已被锁死,请联系BJCA进行解锁!\");\r\n } else {\r\n // eslint-disable-next-line no-undef\r\n xtxasyn.custom.errorReportFunc(\"登录失败!\");\r\n }\r\n if (typeof retObj.ctx.cb === 'function') {\r\n retObj.ctx.cb();\r\n }\r\n}\r\n\r\nfunction __loginVerifyPINCallBack(retObj) {\r\n var strCertID = retObj.ctx.certID;\r\n var objForm = retObj.ctx.objForm;\r\n if (!retObj.retVal) {\r\n // eslint-disable-next-line no-undef\r\n xtxasyn.SOF_GetPinRetryCount(strCertID, __loginGetPINRetryCallBack, retObj.ctx);\r\n return;\r\n }\r\n objForm.CertID.value = strCertID;\r\n objForm.ContainerName.value = strCertID; \r\n \r\n // eslint-disable-next-line no-undef\r\n xtxasyn.SOF_ExportUserCert(strCertID, __loginGetSignCertCallBack, retObj.ctx);\r\n}\r\n\r\n//Form login\r\nfunction Login(formName, strCertID, strPin, strAction, custom_cb) {\r\n var objForm = eval(formName);\r\n if (objForm == null) {\r\n // eslint-disable-next-line no-undef\r\n xtxasyn.custom.errorReportFunc(\"表单错误!\");\r\n if (typeof(custom_cb) === 'function') {\r\n custom_cb(false);\r\n }\r\n return;\r\n }\r\n if (strCertID == null || strCertID == \"\") {\r\n // eslint-disable-next-line no-undef\r\n xtxasyn.custom.errorReportFunc(\"请输入证书密码!\");\r\n if (typeof(custom_cb) === 'function') {\r\n custom_cb(false);\r\n }\r\n return;\r\n }\r\n if (strPin == null || strPin == \"\") {\r\n // eslint-disable-next-line no-undef\r\n xtxasyn.custom.errorReportFunc(\"请输入证书密码!\");\r\n if (typeof(custom_cb) === 'function') {\r\n custom_cb(false);\r\n }\r\n return;\r\n }\r\n\r\n //Add a hidden item ...\r\n if (objForm.UserSignedData == null) {\r\n objForm.insertAdjacentHTML(\"BeforeEnd\", \"<input type=\\\"hidden\\\" name=\\\"UserSignedData\\\" value=\\\"\\\">\");\r\n }\r\n if (objForm.UserCert == null) {\r\n objForm.insertAdjacentHTML(\"BeforeEnd\", \"<input type=\\\"hidden\\\" name=\\\"UserCert\\\" value=\\\"\\\">\");\r\n }\r\n if (objForm.CertID == null) {\r\n objForm.insertAdjacentHTML(\"BeforeEnd\", \"<input type=\\\"hidden\\\" name=\\\"CertID\\\" value=\\\"\\\">\");\r\n }\r\n if (objForm.ContainerName == null) {\r\n objForm.insertAdjacentHTML(\"BeforeEnd\", \"<input type=\\\"hidden\\\" name=\\\"ContainerName\\\" value=\\\"\\\">\");\r\n } \r\n if (objForm.LoginToken == null) {\r\n objForm.insertAdjacentHTML(\"BeforeEnd\", \"<input type=\\\"hidden\\\" name=\\\"LoginToken\\\" value=\\\"\\\">\");\r\n }\r\n\r\n var ctx = {certID:strCertID, objForm:objForm, action:strAction, cb:custom_cb};\r\n \r\n // eslint-disable-next-line no-undef\r\n xtxasyn.SOF_Login(strCertID, strPin, __loginVerifyPINCallBack, ctx);\r\n\r\n return;\r\n}\r\n","/*******************************************************\r\n*\r\n* 使用此JS脚本之前请先仔细阅读帮助文档!\r\n*\r\n* @author Fuly\r\n* @version 3.2.3\r\n* @date 2020/12/23\r\n*\r\n**********************************************************/\r\n\r\n\r\n\r\nvar split;\r\n\r\n// Avoid running twice; that would break the `nativeSplit` reference\r\n// eslint-disable-next-line no-unused-vars\r\nsplit = split || function (undef) {\r\n\r\n var nativeSplit = String.prototype.split,\r\n compliantExecNpcg = /()??/.exec(\"\")[1] === undef, // NPCG: nonparticipating capturing group\r\n self;\r\n\r\n self = function (str, separator, limit) {\r\n // If `separator` is not a regex, use `nativeSplit`\r\n if (Object.prototype.toString.call(separator) !== \"[object RegExp]\") {\r\n return nativeSplit.call(str, separator, limit);\r\n }\r\n var output = [],\r\n flags = (separator.ignoreCase ? \"i\" : \"\") +\r\n (separator.multiline ? \"m\" : \"\") +\r\n (separator.extended ? \"x\" : \"\") + // Proposed for ES6\r\n (separator.sticky ? \"y\" : \"\"), // Firefox 3+\r\n lastLastIndex = 0,\r\n // Make `global` and avoid `lastIndex` issues by working with a copy\r\n // eslint-disable-next-line no-redeclare\r\n separator = new RegExp(separator.source, flags + \"g\"),\r\n separator2, match, lastIndex, lastLength;\r\n str += \"\"; // Type-convert\r\n if (!compliantExecNpcg) {\r\n // Doesn't need flags gy, but they don't hurt\r\n separator2 = new RegExp(\"^\" + separator.source + \"$(?!\\\\s)\", flags);\r\n }\r\n /* Values for `limit`, per the spec:\r\n * If undefined: 4294967295 // Math.pow(2, 32) - 1\r\n * If 0, Infinity, or NaN: 0\r\n * If positive number: limit = Math.floor(limit); if (limit > 4294967295) limit -= 4294967296;\r\n * If negative number: 4294967296 - Math.floor(Math.abs(limit))\r\n * If other: Type-convert, then use the above rules\r\n */\r\n limit = limit === undef ?\r\n -1 >>> 0 : // Math.pow(2, 32) - 1\r\n limit >>> 0; // ToUint32(limit)\r\n // eslint-disable-next-line no-cond-assign\r\n while (match = separator.exec(str)) {\r\n // `separator.lastIndex` is not reliable cross-browser\r\n lastIndex = match.index + match[0].length;\r\n if (lastIndex > lastLastIndex) {\r\n output.push(str.slice(lastLastIndex, match.index));\r\n // Fix browsers whose `exec` methods don't consistently return `undefined` for\r\n // nonparticipating capturing groups\r\n if (!compliantExecNpcg && match.length > 1) {\r\n match[0].replace(separator2, function () {\r\n for (var i = 1; i < arguments.length - 2; i++) {\r\n if (arguments[i] === undef) {\r\n match[i] = undef;\r\n }\r\n }\r\n });\r\n }\r\n if (match.length > 1 && match.index < str.length) {\r\n Array.prototype.push.apply(output, match.slice(1));\r\n }\r\n lastLength = match[0].length;\r\n lastLastIndex = lastIndex;\r\n if (output.length >= limit) {\r\n break;\r\n }\r\n }\r\n if (separator.lastIndex === match.index) {\r\n separator.lastIndex++; // Avoid an infinite loop\r\n }\r\n }\r\n if (lastLastIndex === str.length) {\r\n if (lastLength || !separator.test(\"\")) {\r\n output.push(\"\");\r\n }\r\n } else {\r\n output.push(str.slice(lastLastIndex));\r\n }\r\n return output.length > limit ? output.slice(0, limit) : output;\r\n };\r\n\r\n // For convenience\r\n String.prototype.split = function (separator, limit) {\r\n return self(this, separator, limit);\r\n };\r\n\r\n return self;\r\n\r\n}();\r\n\r\n\r\nexport function mToken (obj) {\r\n this.obj = obj;\r\n\r\n this.SAR_OK = 0;\r\n this.SAR_FALSE = 1;\r\n\r\n //分组加密算法标识\r\n this.SGD_SM1_ECB = 0x00000101;\r\n this.SGD_SM1_CBC = 0x00000102;\r\n this.SGD_SM1_CFB = 0x00000104;\r\n this.SGD_SM1_OFB = 0x00000108;\r\n this.SGD_SM1_MAC = 0x00000110;\r\n this.SGD_SSF33_ECB = 0x00000201;\r\n this.SGD_SSF33_CBC = 0x00000202;\r\n this.SGD_SSF33_CFB = 0x00000204;\r\n this.SGD_SSF33_OFB = 0x00000208;\r\n this.SGD_SSF33_MAC = 0x00000210;\r\n this.SGD_SM4_ECB = 0x00000401;\r\n this.SGD_SM4_CBC = 0x00000402;\r\n this.SGD_SM4_CFB = 0x00000404;\r\n this.SGD_SM4_OFB = 0x00000408;\r\n this.SGD_SM4_MAC = 0x00000410;\r\n\r\n this.SGD_VENDOR_DEFINED = 0x80000000;\r\n this.SGD_DES_ECB = this.SGD_VENDOR_DEFINED + 0x00000211\r\n this.SGD_DES_CBC = this.SGD_VENDOR_DEFINED + 0x00000212\r\n\r\n this.SGD_3DES168_ECB = this.SGD_VENDOR_DEFINED + 0x00000241\r\n this.SGD_3DES168_CBC = this.SGD_VENDOR_DEFINED + 0x00000242\r\n\r\n this.SGD_3DES112_ECB = this.SGD_VENDOR_DEFINED + 0x00000221\r\n this.SGD_3DES112_CBC = this.SGD_VENDOR_DEFINED + 0x00000222\r\n\r\n this.SGD_AES128_ECB = this.SGD_VENDOR_DEFINED + 0x00000111\r\n this.SGD_AES128_CBC = this.SGD_VENDOR_DEFINED + 0x00000112\r\n\r\n this.SGD_AES192_ECB = this.SGD_VENDOR_DEFINED + 0x00000121\r\n this.SGD_AES192_CBC = this.SGD_VENDOR_DEFINED + 0x00000122\r\n\r\n this.SGD_AES256_ECB = this.SGD_VENDOR_DEFINED + 0x00000141\r\n this.SGD_AES256_CBC = this.SGD_VENDOR_DEFINED + 0x00000142\r\n\r\n\r\n //非对称密码算法标识\r\n this.SGD_RSA = 0x00010000;\r\n this.SGD_SM2_1 = 0x00020100; //ECC签名\r\n this.SGD_SM2_2 = 0x00020200; //ECC密钥交换\r\n this.SGD_SM2_3 = 0x00020400; //ECC加密\r\n\r\n //密码杂凑算法标识\r\n this.SGD_SM3 = 0x00000001;\r\n this.SGD_SHA1 = 0x00000002;\r\n this.SGD_SHA256 = 0x00000004;\r\n this.SGD_RAW = 0x00000080;\r\n this.SGD_MD5 = 0x00000081;\r\n this.SGD_SHA384 = 0x00000082;\r\n this.SGD_SHA512 = 0x00000083;\r\n\r\n\r\n this.SGD_CERT_VERSION = 0x00000001;\r\n this.SGD_CERT_SERIAL = 0x00000002;\r\n this.SGD_CERT_ISSUE = 0x00000005;\r\n this.SGD_CERT_VALID_TIME = 0x00000006;\r\n this.SGD_CERT_SUBJECT = 0x00000007;\r\n this.SGD_CERT_DER_PUBLIC_KEY = 0x00000008;\r\n this.SGD_CERT_DER_EXTENSIONS = 0x00000009;\r\n this.SGD_CERT_NOT_BEFORE = 0x00000010;\r\n this.SGD_CERT_ISSUER_CN = 0x00000021;\r\n this.SGD_CERT_ISSUER_O = 0x00000022;\r\n this.SGD_CERT_ISSUER_OU = 0x00000023;\r\n this.SGD_CERT_ISSUER_C = 0x00000024;\r\n this.SGD_CERT_ISSUER_P = 0x00000025;\r\n this.SGD_CERT_ISSUER_L = 0x00000026;\r\n this.SGD_CERT_ISSUER_S = 0x00000027;\r\n this.SGD_CERT_ISSUER_EMAIL = 0x00000028;\r\n\r\n this.SGD_CERT_SUBJECT_CN = 0x00000031;\r\n this.SGD_CERT_SUBJECT_O = 0x00000032;\r\n this.SGD_CERT_SUBJECT_OU = 0x00000033;\r\n this.SGD_CERT_SUBJECT_EMALL = 0x00000034;\r\n this.SGD_REMAIN_TIME = 0x00000035;\r\n this.SGD_SIGNATURE_ALG = 0x00000036;\r\n this.SGD_CERT_SUBJECT_C = 0x00000037;\r\n this.SGD_CERT_SUBJECT_P = 0x00000038;\r\n this.SGD_CERT_SUBJECT_L = 0x00000039;\r\n this.SGD_CERT_SUBJECT_S = 0x0000003A;\r\n\r\n this.SGD_CERT_CRL = 0x00000041;\r\n\r\n\r\n this.SGD_DEVICE_SORT = 0x00000201;\r\n this.SGD_DEVICE_TYPE = 0x00000202;\r\n this.SGD_DEVICE_NAME = 0x00000203;\r\n this.SGD_DEVICE_MANUFACTURER = 0x00000204;\r\n this.SGD_DEVICE_HARDWARE_VERSION = 0x00000205;\r\n this.SGD_DEVICE_SOFTWARE_VERSION = 0x00000206;\r\n this.SGD_DEVICE_STANDARD_VERSION = 0x00000207;\r\n this.SGD_DEVICE_SERIAL_NUMBER = 0x00000208;\r\n this.SGD_DEVICE_SUPPORT_SYM_ALG = 0x00000209;\r\n this.SGD_DEVICE_SUPPORT_ASYM_ALG = 0x0000020A;\r\n this.SGD_DEVICE_SUPPORT_HASH_ALG = 0x0000020B;\r\n this.SGD_DEVICE_SUPPORT_STORANGE_SPACE = 0x0000020C;\r\n this.SGD_DEVICE_SUPPORT_FREE_SAPCE = 0x0000020D;\r\n this.SGD_DEVICE_RUNTIME = 0x0000020E;\r\n this.SGD_DEVICE_USED_TIMES = 0x0000020F;\r\n this.SGD_DEVICE_LOCATION = 0x00000210;\r\n this.SGD_DEVICE_DESCRIPTION = 0x00000211;\r\n this.SGD_DEVICE_MANAGER_INFO = 0x00000212;\r\n this.SGD_DEVICE_MAX_DATA_SIZE = 0x00000213;\r\n\r\n this.TRUE = 1;\r\n this.FALSE = 0;\r\n\r\n this.GM3000 = 1;\r\n this.K5 = 3;\r\n this.TF = 4;\r\n this.HT = 5;\r\n this.SJK1137 = 2;\r\n\r\n this.TYPE_UKEY = 1; //普通UKEY\r\n this.TYPE_FPKEY = 2; //指纹UKEY\r\n\r\n var g_mTokenPlugin = null;\r\n\r\n\r\n this.SOF_GetLastError = function () {\r\n if (g_mTokenPlugin == null) {\r\n return -1;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_GetLastError();\r\n }\r\n\r\n // eslint-disable-next-line no-unused-vars\r\n function isIe () {\r\n return (\"ActiveXObject\" in window);\r\n }\r\n\r\n function isMobile () {\r\n var browser = {\r\n versions: function () {\r\n // eslint-disable-next-line no-unused-vars\r\n var u = navigator.userAgent, app = navigator.appVersion;\r\n return {//移动终端浏览器版本信息\r\n trident: u.indexOf('Trident') > -1, //IE内核\r\n presto: u.indexOf('Presto') > -1, //opera内核\r\n webKit: u.indexOf('AppleWebKit') > -1, //苹果、谷歌内核\r\n gecko: u.indexOf('Gecko') > -1 && u.indexOf('KHTML') == -1, //火狐内核\r\n mobile: !!u.match(/AppleWebKit.*Mobile.*/), //是否为移动终端\r\n ios: !!u.match(/\\(i[^;]+;( U;)? CPU.+Mac OS X/), //ios终端\r\n android: u.indexOf('Android') > -1 || u.indexOf('Linux') > -1, //android终端或者uc浏览器\r\n iPhone: u.indexOf('iPhone') > -1, //是否为iPhone或者QQHD浏览器\r\n iPad: u.indexOf('iPad') > -1, //是否iPad\r\n webApp: u.indexOf('Safari') == -1\r\n //是否web应该程序,没有头部与底部\r\n };\r\n }(),\r\n language: (navigator.browserLanguage || navigator.language).toLowerCase()\r\n }\r\n\r\n if ((browser.versions.mobile) && (browser.versions.ios || browser.versions.android || browser.versions.iPhone || browser.versions.iPad)) {\r\n return true;\r\n }\r\n else {\r\n return false;\r\n }\r\n }\r\n\r\n this.SOF_LoadLibrary = function (type) {\r\n os = check_os();\r\n var ret;\r\n if (g_mTokenPlugin == null) {\r\n g_mTokenPlugin = new mTokenPlugin();\r\n }\r\n\r\n if (type == this.GM3000) {\r\n if (isMobile()) {\r\n ret = g_mTokenPlugin.SOF_LoadLibrary(\"1\", \"mToken OTG\", \"com.longmai.security.plugin.driver.otg.OTGDriver\");\r\n }\r\n else {\r\n ret = g_mTokenPlugin.SOF_LoadLibrary(\"mtoken_gm3000_hnca.dll\", \"libgm3000.1.0.so\", \"libgm3000.1.0.dylib\");\r\n }\r\n }\r\n else if (type == this.SJK1137) {\r\n ret = g_mTokenPlugin.SOF_LoadLibrary(\"SKF_APP.dll\", \"libhunca_hsic_skf.so\", \"libhunca_hsic_skf.dylib\");\r\n }\r\n else if (type == this.HT) {\r\n ret = g_mTokenPlugin.SOF_LoadLibrary(\"HUNCA_HT_20522_SKF.dll\", \"libhunca_ht_h2070f63_skf.so\", \"libhunca_ht_h2070f63_skf.dylib\");\r\n }\r\n else if (type == this.K5) {\r\n if (isMobile()) {\r\n ret = g_mTokenPlugin.SOF_LoadLibrary(\"2\", \"mToken K5 Bluetooth\", \"com.longmai.security.plugin.driver.ble.BLEDriver\");\r\n }\r\n else {\r\n ret = g_mTokenPlugin.SOF_LoadLibrary(\"mtoken_k5.dll\", \"libgm3000.1.0.so\", \"libk5.1.0.dylib\");\r\n }\r\n }\r\n else if (type == this.TF) {\r\n if (isMobile()) {\r\n ret = g_mTokenPlugin.SOF_LoadLibrary(\"0\", \"mToken TF/SD Card\", \"com.longmai.security.plugin.driver.tf.TFDriver\");\r\n } else {\r\n ret = g_mTokenPlugin.SOF_LoadLibrary(\"mtoken_tf.dll\", \"libgm3000.1.0.so\", \"libtf.dylib\");\r\n }\r\n }\r\n else {\r\n return -1;\r\n }\r\n\r\n if (ret != 0) {\r\n return -2;\r\n }\r\n return this.SAR_OK;\r\n };\r\n\r\n\r\n this.SOF_EnumDevice = function () {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n var array = g_mTokenPlugin.SOF_EnumDevice();\r\n if (array == null || array.length <= 0) {\r\n return null;\r\n }\r\n\r\n return array.split(\"||\");\r\n\r\n };\r\n\r\n\r\n this.SOF_GetVersion = function () {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_GetVersion();\r\n };\r\n\r\n\r\n this.SOF_GetDeviceInstance = function (DeviceName, ApplicationName) {\r\n if (g_mTokenPlugin == null) {\r\n return -1;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_GetDeviceInstance(DeviceName, ApplicationName);\r\n };\r\n\r\n this.SOF_ReleaseDeviceInstance = function () {\r\n if (g_mTokenPlugin == null) {\r\n return -1;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_ReleaseDeviceInstance()\r\n }\r\n\r\n\r\n this.SOF_GetUserList = function () {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n var array = g_mTokenPlugin.SOF_GetUserList();\r\n if (array == null || array.length <= 0)\r\n return null;\r\n\r\n var list = new Array();\r\n var user = array.split(\"&&&\");\r\n var length = user.length;\r\n for (var i = 0; i < length; i++) {\r\n list[i] = user[i].split(\"||\");\r\n }\r\n\r\n return list;\r\n };\r\n\r\n\r\n this.SOF_ExportUserCert = function (ContainerName, KeySpec) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_ExportUserCert(ContainerName, KeySpec);\r\n };\r\n\r\n\r\n this.SOF_GetDeviceInfo = function (Type) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_GetDeviceInfo(Type);\r\n };\r\n\r\n\r\n this.SOF_GetCertInfo = function (Base64EncodeCert, Type) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_GetCertInfo(Base64EncodeCert, Type);\r\n };\r\n\r\n this.SOF_GetCertInfoByOid = function (Base64EncodeCert, OID) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_GetCertInfoByOid(Base64EncodeCert, OID);\r\n }\r\n\r\n this.SOF_Login = function (PassWd) {\r\n if (g_mTokenPlugin == null) {\r\n return -1;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_Login(PassWd);\r\n };\r\n\r\n\r\n this.SOF_LogOut = function () {\r\n if (g_mTokenPlugin == null) {\r\n return -1;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_LogOut();\r\n };\r\n\r\n\r\n this.SOF_GetPinRetryCount = function () {\r\n if (g_mTokenPlugin == null) {\r\n return -1;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_GetPinRetryCount();\r\n };\r\n\r\n\r\n this.SOF_ChangePassWd = function (OldPassWd, NewPassWd) {\r\n if (g_mTokenPlugin == null) {\r\n return -1;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_ChangePassWd(OldPassWd, NewPassWd);\r\n };\r\n\r\n\r\n this.SOF_SetDigestMethod = function (DigestMethod) {\r\n if (g_mTokenPlugin == null) {\r\n return -1;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_SetDigestMethod(DigestMethod);\r\n };\r\n\r\n\r\n this.SOF_SetUserID = function (UserID) {\r\n if (g_mTokenPlugin == null) {\r\n return -1;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_SetUserID(UserID);\r\n };\r\n\r\n\r\n this.SOF_SetEncryptMethodAndIV = function (EncryptMethod, EncryptIV) {\r\n if (g_mTokenPlugin == null) {\r\n return -1;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_SetEncryptMethodAndIV(EncryptMethod, EncryptIV);\r\n };\r\n\r\n\r\n this.SOF_EncryptFileToPKCS7 = function (Cert, InFile, OutFile, type) {\r\n if (g_mTokenPlugin == null) {\r\n return -1;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_EncryptFileToPKCS7(Cert, InFile, OutFile, type);\r\n };\r\n\r\n\r\n this.SOF_SignFileToPKCS7 = function (ContainerName, InFile, OutFile) {\r\n if (g_mTokenPlugin == null) {\r\n return -1;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_SignFileToPKCS7(ContainerName, InFile, OutFile);\r\n };\r\n\r\n this.SOF_VerifyFileToPKCS7 = function (strPkcs7Data, InFilePath) {\r\n if (g_mTokenPlugin == null) {\r\n return -1;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_VerifyFileToPKCS7(strPkcs7Data, InFilePath);\r\n };\r\n\r\n this.SOF_DecryptFileToPKCS7 = function (ContainerName, keySpec, Pkcs7Data, InFile, OutFile, type) {\r\n if (g_mTokenPlugin == null) {\r\n return -1;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_DecryptFileToPKCS7(ContainerName, keySpec, Pkcs7Data, InFile, OutFile, type);\r\n };\r\n\r\n this.SOF_DigestData = function (ContainerName, nData, InDataLen) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_DigestData(ContainerName, nData, InDataLen);\r\n };\r\n\r\n this.SOF_SignData = function (ContainerName, ulKeySpec, InData, InDataLen) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_SignData(ContainerName, ulKeySpec, InData, InDataLen);\r\n };\r\n //交互式签名\r\n this.SOF_SignDataInteractive = function (ContainerName, ulKeySpec, InData, InDataLen) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_SignDataInteractive(ContainerName, ulKeySpec, InData, InDataLen);\r\n }\r\n\r\n\r\n this.SOF_SignDataToPKCS7 = function (ContainerName, ulKeySpec, InData, ulDetached) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_SignDataToPKCS7(ContainerName, ulKeySpec, InData, ulDetached);\r\n };\r\n\r\n\r\n\r\n this.SOF_VerifyDataToPKCS7 = function (Base64EncodeCert, InData, SignedValue) {\r\n if (g_mTokenPlugin == null) {\r\n return -1;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_VerifyDataToPKCS7(Base64EncodeCert, InData, SignedValue);\r\n };\r\n\r\n\r\n this.SOF_VerifySignedData = function (Base64EncodeCert, digestMethod, InData, SignedValue) {\r\n if (g_mTokenPlugin == null) {\r\n return -1;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_VerifySignedData(Base64EncodeCert, digestMethod, InData, SignedValue);\r\n };\r\n\r\n\r\n this.SOF_EncryptDataPKCS7 = function (Base64EncodeCert, InData, InDataLen) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_EncryptDataPKCS7(Base64EncodeCert, InData, InDataLen);\r\n };\r\n\r\n\r\n this.SOF_DecryptDataPKCS7 = function (ContainerName, ulKeySpec, InData) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_DecryptDataPKCS7(ContainerName, ulKeySpec, InData);\r\n };\r\n\r\n\r\n this.SOF_GenRemoteUnblockRequest = function () {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_GenRemoteUnblockRequest();\r\n };\r\n\r\n\r\n this.SOF_GenResetpwdResponse = function (request, soPin, userPin) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_GenResetpwdResponse(request, soPin, userPin);\r\n };\r\n\r\n\r\n this.SOF_RemoteUnblockPIN = function (request) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_RemoteUnblockPIN(request);\r\n };\r\n\r\n\r\n this.SOF_SignDataToPKCS7 = function (ContainerName, ulKeySpec, InData, ulDetached) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_SignDataToPKCS7(ContainerName, ulKeySpec, InData, ulDetached);\r\n };\r\n\r\n\r\n this.SOF_VerifyDataToPKCS7 = function (strPkcs7Data, OriginalText, ulDetached) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_VerifyDataToPKCS7(strPkcs7Data, OriginalText, ulDetached);\r\n };\r\n\r\n //按expType导出的公钥,格式为国密规范指定的格式或DER格式\r\n this.SOF_ExportPubKey = function (containerName, cerType, expType) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_ExportPubKey(containerName, cerType, expType);\r\n }\r\n\r\n this.SOF_EncryptByPubKey = function (strPubKey, strInput, cerType) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_EncryptByPubKey(strPubKey, strInput, cerType);\r\n }\r\n\r\n this.SOF_DecryptByPrvKey = function (containerName, cerType, strAsymCipher) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_DecryptByPrvKey(containerName, cerType, strAsymCipher);\r\n }\r\n\r\n //RA客户端相关接口:P10及证书导入等\r\n this.SOF_GenerateP10Request = function (deviceName, container, dn, asymAlg, keySpec, keyLength) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_GenerateP10Request(deviceName, container, dn, asymAlg, keySpec, keyLength);\r\n }\r\n\r\n this.SOF_EnumCertContiner = function () {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_EnumCertContiner();\r\n }\r\n\r\n this.SOF_FindContainer = function (certSN) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_FindContainer(certSN);\r\n }\r\n\r\n this.SOF_DeleteCert = function (certSN) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_DeleteCert(certSN);\r\n }\r\n\r\n this.SOF_DeleteContainer = function (certSN) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_DeleteContainer(certSN);\r\n }\r\n\r\n this.SOF_SignByCert = function (certSN, plain) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_SignByCert(certSN, plain);\r\n }\r\n\r\n this.SOF_VerifyByCert = function (certSN, plain, signature) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_VerifyByCert(certSN, plain, signature);\r\n }\r\n\r\n\r\n this.SOF_ImportCert = function (container, cert, keySpec) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_ImportCert(container, cert, keySpec);\r\n }\r\n\r\n this.SOF_ImportCryptoCertAndKey = function (container, cert, nAsymAlg, EncryptedSessionKeyData, symAlg, EncryptedPrivateKeyData, mode) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_ImportCryptoCertAndKey(container, cert, nAsymAlg, EncryptedSessionKeyData, symAlg, EncryptedPrivateKeyData, mode);\r\n }\r\n\r\n this.SOF_VerifyByExtCert = function (cert, plain, signature, digestMethod) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_VerifyByExtCert(cert, plain, signature, digestMethod);\r\n }\r\n\r\n this.SOF_GenerateRandom = function (length) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_GenerateRandom(length);\r\n }\r\n\r\n this.SOF_SymEncryptFile = function (sessionKey, srcfile, destfile, type) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_SymEncryptFile(sessionKey, srcfile, destfile, type);\r\n }\r\n\r\n this.SOF_SymDecryptFile = function (sessionKey, srcfile, destfile, type) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_SymDecryptFile(sessionKey, srcfile, destfile, type);\r\n }\r\n\r\n this.SOF_SymEncryptData = function (sessionKey, inData) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_SymEncryptData(sessionKey, inData);\r\n }\r\n\r\n this.SOF_SymDecryptData = function (sessionKey, inData) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_SymDecryptData(sessionKey, inData);\r\n }\r\n\r\n this.SOF_GenerateQRCode = function (qrcode_text) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_GenerateQRCode(qrcode_text);\r\n }\r\n\r\n\r\n this.SOF_VerifyPinMS = function (responseKey) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_VerifyPinMS(responseKey);\r\n }\r\n\r\n this.SOF_GetHardwareType = function () {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_GetHardwareType();\r\n }\r\n\r\n this.SOF_VerifyFingerprint = function () {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_VerifyFingerprint();\r\n }\r\n\r\n\r\n this.SOF_EnumFiles = function () {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n var array = g_mTokenPlugin.SOF_EnumFiles();\r\n if (array == null || array.length <= 0) {\r\n return null;\r\n }\r\n\r\n return array.split(\"||\");\r\n }\r\n\r\n this.SOF_ReadFile = function (fileName, offset, length) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n return g_mTokenPlugin.SOF_ReadFile(fileName, Number(offset), Number(length));\r\n }\r\n\r\n this.SOF_WriteFile = function (fileName, offset, data) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n return g_mTokenPlugin.SOF_WriteFile(fileName, offset, data);\r\n }\r\n\r\n this.SOF_CreateFile = function (fileName, length, readRight, writeRight) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n return g_mTokenPlugin.SOF_CreateFile(fileName, length, readRight, writeRight);\r\n }\r\n\r\n this.SOF_DeleteFile = function (fileName) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n return g_mTokenPlugin.SOF_DeleteFile(fileName);\r\n }\r\n\r\n\r\n}\r\n\r\n//判断插件名称是否存在\r\nfunction hasPlugin (name) {\r\n name = name.toLowerCase();\r\n for (var i = 0; i < navigator.plugins.length; i++) {\r\n if (navigator.plugins[i].name.toLowerCase().indexOf(name) > -1) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n}\r\n//判断系统\r\nfunction check_os () {\r\n var windows = (navigator.userAgent.indexOf(\"Windows\", 0) != -1) ? 1 : 0;\r\n // eslint-disable-next-line no-unused-vars\r\n var mac = (navigator.userAgent.indexOf(\"mac\", 0) != -1) ? 1 : 0;\r\n var linux = (navigator.userAgent.indexOf(\"Linux\", 0) != -1) ? 1 : 0;\r\n // eslint-disable-next-line no-unused-vars\r\n var unix = (navigator.userAgent.indexOf(\"X11\", 0) != -1) ? 1 : 0;\r\n var os_type = \"\";\r\n if (windows) os_type = \"MS Windows\";\r\n // eslint-disable-next-line no-unused-vars\r\n else if (linux) os_type = \"Lunix\";\r\n if (hasPlugin(\"mPlugin1.0.0.1\")) {\r\n linuxWin = 2;\r\n return \"id_mPluginV2Router\";\r\n } else {\r\n linuxWin = 1;\r\n return \"mTokenPlugin\";\r\n }\r\n\r\n\r\n}\r\nvar linuxWin = 0;\r\nvar os;\r\n\r\nfunction mTokenPlugin () {\r\n var _xmlhttp;\r\n var retJSON = \"\";\r\n\r\n function AjaxIO (json_in) {\r\n //id_mPluginV2Router mTokenPlugin\r\n if (os == \"id_mPluginV2Router\") {\r\n var router = null;\r\n //var url = \"http://192.168.1.25:51235/alpha\";\r\n var url = \"http://127.0.0.1:51235/alpha\";\r\n\r\n router = document.getElementById(\"id_mPluginV2Router\");\r\n if (null == router) {\r\n alert(\"无法获取到插件,请确认已经安装好插件!\");\r\n }\r\n /*\r\n if(\"https:\" == document.location.protocol)\r\n {\r\n url = \"https://127.0.0.1:51245/alpha\";\r\n }\r\n */\r\n var json = json_in;\r\n\r\n retJSON = router.invoke(url, json);\r\n return retJSON;\r\n } else {\r\n\r\n // eslint-disable-next-line no-unused-vars\r\n var _curDevName = \"\";\r\n var _url = \"http://127.0.0.1:51235/alpha\";\r\n let json = json_in;\r\n if (_xmlhttp == null) {\r\n if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari\r\n _xmlhttp = new XMLHttpRequest();\r\n } else { // code for IE6, IE5\r\n // eslint-disable-next-line no-undef\r\n _xmlhttp = new ActiveXObject(\"Microsoft.XMLHTTP\");\r\n }\r\n }\r\n\r\n /***\r\n if (\"https:\" == document.location.protocol) {\r\n _url = \"https://127.0.0.1:51245/alpha\";\r\n }\r\n ***/\r\n _xmlhttp.open(\"POST\", _url, false);\r\n _xmlhttp.setRequestHeader(\"Content-type\", \"application/x-www-form-urlencoded\");\r\n _xmlhttp.send(\"json=\" + json);\r\n }\r\n\r\n\r\n\r\n\r\n }\r\n\r\n function GetHttpResult () {\r\n if (_xmlhttp.readyState == 4 && _xmlhttp.status == 200) {\r\n var obj = eval(\"(\" + _xmlhttp.responseText + \")\");\r\n return obj;\r\n }\r\n else {\r\n return null;\r\n }\r\n }\r\n\r\n this.SOF_GetLastError = function () {\r\n var json = '{\"function\":\"SOF_GetLastError\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.errorCode;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.rtn;\r\n }\r\n\r\n return -2;\r\n }\r\n }\r\n\r\n this.SOF_LoadLibrary = function (windows, linux, mac) {\r\n var json = '{\"function\":\"SOF_LoadLibrary\", \"winDllName\":\"' + windows + '\", \"linuxSOName\":\"' + linux + '\", \"macDylibName\":\"' + mac + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.rtn;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.rtn;\r\n }\r\n\r\n return -2;\r\n }\r\n };\r\n\r\n\r\n this.SOF_EnumDevice = function () {\r\n var json = '{\"function\":\"SOF_EnumDevice\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.array;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.array;\r\n }\r\n\r\n return -2;\r\n }\r\n };\r\n\r\n\r\n this.SOF_GetVersion = function () {\r\n var json = '{\"function\":\"SOF_GetVersion\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.version;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.version;\r\n }\r\n\r\n return -2;\r\n }\r\n };\r\n\r\n var _curDevName;\r\n this.SOF_GetDeviceInstance = function (DeviceName, ApplicationName) {\r\n var json = '{\"function\":\"SOF_GetDeviceInstance\", \"deviceName\":\"' + DeviceName + '\", \"applicationName\":\"' + ApplicationName + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n _curDevName = DeviceName;\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.rtn;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n if (ret.rtn == 0) {\r\n _curDevName = DeviceName;\r\n }\r\n return ret.rtn;\r\n }\r\n\r\n return -2;\r\n }\r\n };\r\n\r\n this.SOF_ReleaseDeviceInstance = function () {\r\n var json = '{\"function\":\"SOF_ReleaseDeviceInstance\", \"deviceName\":\"' + _curDevName + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n }\r\n catch (e) {\r\n return -3;\r\n }\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.array;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.rtn;\r\n }\r\n\r\n return -2;\r\n }\r\n };\r\n\r\n this.SOF_GetUserList = function () {\r\n var json = '{\"function\":\"SOF_GetUserList\", \"deviceName\":\"' + _curDevName + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.array;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.array;\r\n }\r\n\r\n return -2;\r\n }\r\n };\r\n\r\n\r\n this.SOF_ExportUserCert = function (ContainerName, KeySpec) {\r\n\r\n var json = '{\"function\":\"SOF_ExportUserCert\", \"deviceName\":\"' + _curDevName + '\", \"containerName\":\"' + ContainerName + '\", \"keySpec\":' + KeySpec + '}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.cert;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.cert;\r\n }\r\n\r\n return -2;\r\n }\r\n };\r\n\r\n\r\n this.SOF_GetDeviceInfo = function (Type) {\r\n var json = '{\"function\":\"SOF_GetDeviceInfo\", \"deviceName\":\"' + _curDevName + '\", \"type\":' + Type + '}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.info;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.info;\r\n }\r\n\r\n return -2;\r\n }\r\n\r\n };\r\n\r\n\r\n this.SOF_GetCertInfo = function (Base64EncodeCert, Type) {\r\n var json = '{\"function\":\"SOF_GetCertInfo\", \"base64EncodeCert\":\"' + Base64EncodeCert + '\", \"type\":' + Type + '}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.info;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.info;\r\n }\r\n\r\n return -2;\r\n }\r\n\r\n };\r\n\r\n\r\n this.SOF_GetCertInfoByOid = function (Base64EncodeCert, OID) {\r\n var json = '{\"function\":\"SOF_GetCertInfoByOid\", \"base64EncodeCert\":\"' + Base64EncodeCert + '\", \"oid\":\"' + OID + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.info;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n }\r\n catch (e) {\r\n return -3;\r\n }\r\n\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.info;\r\n }\r\n\r\n return null;\r\n }\r\n\r\n };\r\n\r\n\r\n\r\n this.SOF_Login = function (PassWd) {\r\n\r\n var json = '{\"function\":\"SOF_Login\", \"deviceName\":\"' + _curDevName + '\", \"passWd\":\"' + PassWd + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.rtn;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.rtn;\r\n }\r\n\r\n return -2;\r\n }\r\n };\r\n\r\n\r\n this.SOF_LogOut = function () {\r\n\r\n var json = '{\"function\":\"SOF_LogOut\", \"deviceName\":\"' + _curDevName + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.rtn;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.rtn;\r\n }\r\n\r\n return -2;\r\n }\r\n };\r\n\r\n\r\n this.SOF_GetPinRetryCount = function () {\r\n\r\n var json = '{\"function\":\"SOF_GetPinRetryCount\", \"deviceName\":\"' + _curDevName + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.retryCount;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.retryCount;\r\n }\r\n\r\n return -2;\r\n }\r\n };\r\n\r\n\r\n this.SOF_ChangePassWd = function (OldPassWd, NewPassWd) {\r\n\r\n var json = '{\"function\":\"SOF_ChangePassWd\", \"deviceName\":\"' + _curDevName + '\", \"oldUpin\":\"' + OldPassWd + '\", \"newUpin\":\"' + NewPassWd + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.rtn;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.rtn;\r\n }\r\n\r\n return -2;\r\n }\r\n };\r\n\r\n\r\n this.SOF_SetDigestMethod = function (DigestMethod) {\r\n\r\n var json = '{\"function\":\"SOF_SetDigestMethod\",\"deviceName\":\"' + _curDevName + '\", \"digestMethod\":' + DigestMethod + '}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.rtn;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.rtn;\r\n }\r\n\r\n return -2;\r\n }\r\n };\r\n\r\n\r\n this.SOF_SetUserID = function (UserID) {\r\n\r\n var json = '{\"function\":\"SOF_SetUserID\",\"deviceName\":\"' + _curDevName + '\", \"userID\":\"' + UserID + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.rtn;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.rtn;\r\n }\r\n\r\n return -2;\r\n }\r\n };\r\n\r\n\r\n this.SOF_SetEncryptMethodAndIV = function (EncryptMethod, EncryptIV) {\r\n\r\n var json = '{\"function\":\"SOF_SetEncryptMethodAndIV\",\"deviceName\":\"' + _curDevName + '\", \"encryptMethod\":' + EncryptMethod + ', \"encryptIV\":\"' + EncryptIV + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.rtn;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.rtn;\r\n }\r\n\r\n return -2;\r\n }\r\n };\r\n\r\n\r\n this.SOF_EncryptFileToPKCS7 = function (Cert, InFile, OutFile, type) {\r\n\r\n var json = '{\"function\":\"SOF_EncryptFileToPKCS7\", \"deviceName\":\"' + _curDevName + '\", \"cert\":\"' + Cert + '\", \"inFile\":\"' + InFile.replace(/\\\\/g, '\\\\\\\\') + '\", \"outFile\":\"' + OutFile.replace(/\\\\/g, '\\\\\\\\') + '\", \"type\":' + type + '}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.envelopData;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.envelopData;\r\n }\r\n\r\n return -2;\r\n }\r\n };\r\n\r\n\r\n this.SOF_SignFileToPKCS7 = function (ContainerName, KeySpec, InFile) {\r\n\r\n var json = '{\"function\":\"SOF_SignFileToPKCS7\", \"deviceName\":\"' + _curDevName + '\", \"containerName\":\"' + ContainerName + '\", \"KeySpec\":' + KeySpec + ', \"inFile\":\"' + InFile.replace(/\\\\/g, '\\\\\\\\') + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.signed;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.signed;\r\n }\r\n\r\n return -2;\r\n }\r\n };\r\n\r\n\r\n this.SOF_VerifyFileToPKCS7 = function (strPkcs7Data, InFilePath) {\r\n var json = '{\"function\":\"SOF_VerifyFileToPKCS7\", \"deviceName\":\"' + _curDevName + '\",\"strPkcs7Data\":\"' + strPkcs7Data + '\", \"inFile\":\"' + InFilePath.replace(/\\\\/g, '\\\\\\\\') + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.rtn;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.rtn;\r\n }\r\n\r\n return -2;\r\n }\r\n };\r\n\r\n\r\n this.SOF_DecryptFileToPKCS7 = function (ContainerName, keySpec, Pkcs7Data, InFile, OutFile, type) {\r\n\r\n var json = '{\"function\":\"SOF_DecryptFileToPKCS7\", \"deviceName\":\"' + _curDevName + '\", \"containerName\":\"' + ContainerName + '\", \"keySpec\":' + keySpec + ', \"pkcs7Data\":\"' + Pkcs7Data + '\", \"inFile\":\"' + InFile.replace(/\\\\/g, '\\\\\\\\') + '\", \"outFile\":\"' + OutFile.replace(/\\\\/g, '\\\\\\\\') + '\", \"type\":' + type + '}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.rtn;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.rtn;\r\n }\r\n\r\n return -2;\r\n }\r\n };\r\n\r\n\r\n this.SOF_DigestData = function (ContainerName, InData, InDataLen) {\r\n\r\n var json = '{\"function\":\"SOF_DigestData\",\"deviceName\":\"' + _curDevName + '\", \"containerName\":\"' + ContainerName + '\", \"inData\":\"' + InData + '\", \"inDataLen\":' + InDataLen + '}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.digest;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.digest;\r\n }\r\n\r\n return -2;\r\n }\r\n };\r\n\r\n //交互式签名\r\n this.SOF_SignDataInteractive = function (ContainerName, ulKeySpec, inData, InDataLen) {\r\n var InDataBase64 = inData; //对报文进行Base64编码\r\n var json = '{\"function\":\"SOF_SignDataInteractive\", \"deviceName\":\"' + _curDevName + '\", \"containerName\":\"' + ContainerName + '\", \"keySpec\":' + ulKeySpec + ', \"inData\":\"' + InDataBase64 + '\", \"inDataLen\":' + InDataLen + '}';\r\n\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.signed;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n }\r\n catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.signed;\r\n }\r\n\r\n return null;\r\n }\r\n };\r\n\r\n this.SOF_SignData = function (ContainerName, ulKeySpec, InData, InDataLen) {\r\n\r\n var json = '{\"function\":\"SOF_SignDataEx\", \"deviceName\":\"' + _curDevName + '\", \"containerName\":\"' + ContainerName + '\", \"keySpec\":' + ulKeySpec + ', \"inData\":\"' + InData + '\", \"inDataLen\":' + InDataLen + '}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.signed;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.signed;\r\n }\r\n\r\n return -2;\r\n }\r\n };\r\n\r\n\r\n this.SOF_VerifySignedData = function (Base64EncodeCert, digestMethod, InData, SignedValue) {\r\n var json = '{\"function\":\"SOF_VerifySignedDataEx\",\"deviceName\":\"' + _curDevName + '\", \"base64EncodeCert\":\"' + Base64EncodeCert + '\", \"digestMethod\":' + digestMethod + ', \"inData\":\"' + InData + '\", \"signedValue\":\"' + SignedValue + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.rtn;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.rtn;\r\n }\r\n\r\n return -2;\r\n }\r\n };\r\n\r\n\r\n this.SOF_EncryptDataPKCS7 = function (Base64EncodeCert, InData, InDataLen) {\r\n\r\n var json = '{\"function\":\"SOF_EncryptDataPKCS7\", \"deviceName\":\"' + _curDevName + '\", \"base64EncodeCert\":\"' + Base64EncodeCert + '\", \"inData\":\"' + InData + '\", \"inDataLen\":' + InDataLen + '}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.encrypedData;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.encrypedData;\r\n }\r\n\r\n return -2;\r\n }\r\n\r\n };\r\n\r\n\r\n this.SOF_DecryptDataPKCS7 = function (ContainerName, ulKeySpec, InData) {\r\n\r\n var json = '{\"function\":\"SOF_DecryptDataPKCS7\", \"deviceName\":\"' + _curDevName + '\", \"containerName\":\"' + ContainerName + '\", \"keySpec\":' + ulKeySpec + ', \"inData\":\"' + InData + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.decryptedData;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.decryptedData;\r\n }\r\n\r\n return -2;\r\n }\r\n };\r\n\r\n\r\n this.SOF_GenRemoteUnblockRequest = function () {\r\n\r\n var json = '{\"function\":\"SOF_GenRemoteUnblockRequest\", \"deviceName\":\"' + _curDevName + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.request;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.request;\r\n }\r\n\r\n return -2;\r\n }\r\n };\r\n\r\n\r\n this.SOF_GenResetpwdResponse = function (request, soPin, userPin) {\r\n\r\n var json = '{\"function\":\"SOF_GenResetpwdResponse\", \"deviceName\":\"' + _curDevName + '\", \"request\":\"' + request + '\", \"soPin\":\"' + soPin + '\", \"userPin\":\"' + userPin + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.request;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.request;\r\n }\r\n\r\n return -2;\r\n }\r\n };\r\n\r\n\r\n this.SOF_RemoteUnblockPIN = function (request) {\r\n\r\n var json = '{\"function\":\"SOF_RemoteUnblockPIN\", \"deviceName\":\"' + _curDevName + '\", \"request\":\"' + request + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.rtn;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.rtn;\r\n }\r\n\r\n return -2;\r\n }\r\n };\r\n\r\n\r\n this.SOF_SignDataToPKCS7 = function (ContainerName, ulKeySpec, InData, ulDetached) {\r\n\r\n var json = '{\"function\":\"SOF_SignDataToPKCS7\", \"deviceName\":\"' + _curDevName + '\", \"containerName\":\"' + ContainerName + '\", \"keySpec\":' + ulKeySpec + ', \"inData\":\"' + InData + '\", \"detached\":' + ulDetached + '}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.pkcs7;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.pkcs7;\r\n }\r\n\r\n return -2;\r\n }\r\n };\r\n\r\n\r\n this.SOF_VerifyDataToPKCS7 = function (strPkcs7Data, OriginalText, ulDetached) {\r\n\r\n var json = '{\"function\":\"SOF_VerifyDataToPKCS7\", \"deviceName\":\"' + _curDevName + '\", \"pkcs7\":\"' + strPkcs7Data + '\", \"original\":\"' + OriginalText + '\", \"detached\":' + ulDetached + '}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.rtn;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.rtn;\r\n }\r\n\r\n return -2;\r\n }\r\n };\r\n\r\n //按expType导出的公钥,格式为国密规范指定的格式或DER格式或裸数据格式\r\n this.SOF_ExportPubKey = function (containerName, keySpec, expType) //expType=1: 国密格式; 2:DER; 3:RAW (SM2 public key ONLY: X|Y, X,Y各为32字节)\r\n {\r\n var json = '{\"function\":\"SOF_ExportPubKeyEx\",\"deviceName\":\"' + _curDevName + '\", \"containerName\":\"' + containerName + '\", \"keySpec\":' + keySpec + ', \"expType\":' + expType + '}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.pubKey;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.pubKey;\r\n }\r\n\r\n return -2;\r\n }\r\n }\r\n\r\n //公钥加密\r\n this.SOF_EncryptByPubKey = function (strPubKey, strInput, cerType) {\r\n var json = '{\"function\":\"SOF_EncryptByPubKey\", \"deviceName\":\"' + _curDevName + '\", \"pubKey\":\"' + strPubKey + '\", \"asymPlain\":\"' + strInput + '\", \"keySpec\":' + cerType + '}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.asymCipher;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n }\r\n catch (e) {\r\n return -3;\r\n }\r\n\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.asymCipher;\r\n }\r\n\r\n return null;\r\n }\r\n }\r\n\r\n //私钥解密\r\n this.SOF_DecryptByPrvKey = function (containerName, cerType, strAsymCipher) {\r\n var json = '{\"function\":\"SOF_DecryptByPrvKey\", \"deviceName\":\"' + _curDevName + '\", \"containerName\":\"' + containerName + '\", \"asymCipher\":\"' + strAsymCipher + '\", \"keySpec\":' + cerType + '}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.asymPlain;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n }\r\n catch (e) {\r\n return -3;\r\n }\r\n\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.asymPlain;\r\n }\r\n\r\n return null;\r\n }\r\n }\r\n\r\n //RA客户端控件\r\n this.SOF_CreateKeyPair = function (container, keySpec, asymAlg, keyLength) {\r\n var json = '{\"function\":\"SOF_CreateKeyPair\",\"deviceName\":\"' + _curDevName + '\", \"containerName\":\"' + container + '\", \"asymAlg\":' + asymAlg + ', \"keySpec\":' + keySpec + ',\"keyLength\":' + keyLength + '}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.rtn;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n }\r\n catch (e) {\r\n return -3;\r\n }\r\n\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.rtn;\r\n }\r\n\r\n return -2;\r\n }\r\n }\r\n\r\n this.SOF_EnumCertContiner = function () {\r\n var json = '{\"function\":\"SOF_EnumCertContiner\", \"deviceName\":\"' + _curDevName + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.containerName;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n }\r\n catch (e) {\r\n return -3;\r\n }\r\n\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.containerName;\r\n }\r\n\r\n return \"\";\r\n }\r\n }\r\n\r\n this.SOF_FindContainer = function (certSN) {\r\n var json = '{\"function\":\"SOF_FindContainer\",\"deviceName\":\"' + _curDevName + '\", \"certSN\":\"' + certSN + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.containerName;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n }\r\n catch (e) {\r\n return -3;\r\n }\r\n\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.containerName;\r\n }\r\n\r\n return \"\";\r\n }\r\n }\r\n\r\n this.SOF_DeleteCert = function (certSN) {\r\n var json = '{\"function\":\"SOF_DeleteCert\",\"deviceName\":\"' + _curDevName + '\", \"certSN\":\"' + certSN + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.rtn;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n }\r\n catch (e) {\r\n return -3;\r\n }\r\n\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.rtn;\r\n }\r\n\r\n return -2;\r\n }\r\n }\r\n\r\n this.SOF_DeleteContainer = function (certSN) {\r\n var json = '{\"function\":\"SOF_DeleteContainer\", \"deviceName\":\"' + _curDevName + '\", \"certSN\":\"' + certSN + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.rtn;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n }\r\n catch (e) {\r\n return -3;\r\n }\r\n\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.rtn;\r\n }\r\n\r\n return -2;\r\n }\r\n }\r\n\r\n this.SOF_SignByCert = function (certSN, plain) {\r\n var json = '{\"function\":\"SOF_SignByCert\", \"deviceName\":\"' + _curDevName + '\", \"certSN\":\"' + certSN + '\", \"inData\":\"' + plain + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.signed;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n }\r\n catch (e) {\r\n return -3;\r\n }\r\n\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.signed;\r\n }\r\n\r\n return null;\r\n }\r\n }\r\n\r\n this.SOF_VerifyByCert = function (certSN, plain, signature, digestMethod) {\r\n\r\n var json = '{\"function\":\"SOF_VerifyByCert\", \"deviceName\":\"' + _curDevName + '\", \"certSN\":\"' + certSN + '\",\"digestMethod\":' + digestMethod + ', \"inData\":\"' + plain + '\", \"signed\":\"' + signature + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.rtn;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n }\r\n catch (e) {\r\n return -3;\r\n }\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.rtn;\r\n }\r\n\r\n return -2;\r\n }\r\n }\r\n\r\n this.SOF_VerifyByExtCert = function (cert, plain, signature, digestMethod) {\r\n var json = '{\"function\":\"SOF_VerifyByExtCert\",\"deviceName\":\"' + _curDevName + '\", \"cert\":\"' + cert + '\", \"digestMethod\":' + digestMethod + ', \"inData\":\"' + plain + '\", \"signed\":\"' + signature + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.rtn;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n }\r\n catch (e) {\r\n return -3;\r\n }\r\n\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.rtn;\r\n }\r\n\r\n return -2;\r\n }\r\n }\r\n\r\n // this.SOF_GenerateP10Request = function (container, dn, asymAlg, keySpec, keyLength) {\r\n // var json = '{\"function\":\"SOF_GenerateP10Request\", \"deviceName\":\"' + _curDevName + '\", \"containerName\":\"' + container + '\", \"certDN\":\"' + dn + '\", \"asymAlg\":' + asymAlg + ', \"keySpec\":' + keySpec + ',\"keyLength\":' + keyLength + '}';\r\n // if (linuxWin == 2) {\r\n // var retJSON = \"\";\r\n // try {\r\n // retJSON = AjaxIO(json);\r\n // } catch (e) {\r\n // return -3;\r\n // }\r\n //\r\n //\r\n // if (retJSON.length > 3) {\r\n // var obj = eval(\"(\" + retJSON + \")\");\r\n // return obj.outData;\r\n // } else {\r\n // return -2;\r\n //\r\n // }\r\n // } else {\r\n // try {\r\n // AjaxIO(json);\r\n // }\r\n // catch (e) {\r\n // return -3;\r\n // }\r\n //\r\n // var ret = GetHttpResult();\r\n // if (ret) {\r\n // return ret.outData;\r\n // }\r\n //\r\n // return null;\r\n // }\r\n // }\r\n this.SOF_GenerateP10Request = function (_curDevName, container, dn, asymAlg, keySpec, keyLength) {\r\n var json = '{\"function\":\"SOF_GenerateP10Request\", \"deviceName\":\"' + _curDevName + '\", \"containerName\":\"' + container + '\", \"certDN\":\"' + dn + '\", \"asymAlg\":' + asymAlg + ', \"keySpec\":' + keySpec + ',\"keyLength\":' + keyLength + '}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.outData;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n }\r\n catch (e) {\r\n return -3;\r\n }\r\n\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.outData;\r\n }\r\n\r\n return null;\r\n }\r\n }\r\n this.SOF_ImportCert = function (container, cert, keySpec) {\r\n var json = '{\"function\":\"SOF_ImportCert\", \"deviceName\":\"' + _curDevName + '\", \"containerName\":\"' + container + '\", \"cert\":\"' + cert + '\", \"keySpec\":' + keySpec + '}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.rtn;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n }\r\n catch (e) {\r\n return -3;\r\n }\r\n\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.rtn;\r\n }\r\n\r\n return -2;\r\n }\r\n }\r\n\r\n this.SOF_ImportCryptoCertAndKey = function (container, cert, nAsymAlg, EncryptedSessionKeyData, symAlg, EncryptedPrivateKeyData, mode) {\r\n var json = '{\"function\":\"SOF_ImportCryptoCertAndKey\", \"deviceName\":\"' + _curDevName + '\", \"containerName\":\"' + container + '\", \"cert\":\"' + cert + '\", \"asymAlg\":' + nAsymAlg + ', \"sessionKey\":\"' + EncryptedSessionKeyData + '\", \"symAlg\":\"' + symAlg + '\", \"encrypedData\":\"' + EncryptedPrivateKeyData + ', + \"mode\":' + mode + '}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.rtn;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n }\r\n catch (e) {\r\n return -3;\r\n }\r\n\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.rtn;\r\n }\r\n\r\n return -2;\r\n }\r\n }\r\n\r\n this.SOF_GenerateRandom = function (length) {\r\n var json = '{\"function\":\"SOF_GenRandom\", \"deviceName\":\"' + _curDevName + '\", \"inDataLen\":' + length + '}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.outData;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n }\r\n catch (e) {\r\n return -3;\r\n }\r\n\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.outData;\r\n }\r\n\r\n return -2;\r\n }\r\n }\r\n\r\n this.SOF_SymEncryptFile = function (sessionKey, srcfile, destfile, type) {\r\n var json = '{\"function\":\"SOF_SymEncryptFile\", \"deviceName\":\"' + _curDevName + '\", \"sessionKey\":\"' + sessionKey + '\", \"inFile\":\"' + srcfile.replace(/\\\\/g, '\\\\\\\\') + '\", \"outFile\":\"' + destfile.replace(/\\\\/g, '\\\\\\\\') + '\", \"type\":' + type + '}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.rtn;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n }\r\n catch (e) {\r\n return -3;\r\n }\r\n\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.rtn;\r\n }\r\n\r\n return -2;\r\n }\r\n }\r\n\r\n this.SOF_SymDecryptFile = function (sessionKey, srcfile, destfile, type) {\r\n var json = '{\"function\":\"SOF_SymDecryptFile\", \"deviceName\":\"' + _curDevName + '\", \"sessionKey\":\"' + sessionKey + '\", \"inFile\":\"' + srcfile.replace(/\\\\/g, '\\\\\\\\') + '\", \"outFile\":\"' + destfile.replace(/\\\\/g, '\\\\\\\\') + '\", \"type\":' + type + '}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.rtn;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n }\r\n catch (e) {\r\n return -3;\r\n }\r\n\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.rtn;\r\n }\r\n\r\n return -2;\r\n }\r\n }\r\n\r\n this.SOF_SymEncryptData = function (sessionKey, inData) {\r\n var json = '{\"function\":\"SOF_SymEncryptData\", \"deviceName\":\"' + _curDevName + '\", \"sessionKey\":\"' + sessionKey + '\", \"inData\":\"' + inData + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.outData;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n }\r\n catch (e) {\r\n return -3;\r\n }\r\n\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.outData;\r\n }\r\n\r\n return null;\r\n }\r\n }\r\n\r\n this.SOF_SymDecryptData = function (sessionKey, inData) {\r\n var json = '{\"function\":\"SOF_SymDecryptData\", \"deviceName\":\"' + _curDevName + '\", \"sessionKey\":\"' + sessionKey + '\", \"inData\":\"' + inData + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.outData;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n }\r\n catch (e) {\r\n return -3;\r\n }\r\n\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.outData;\r\n }\r\n\r\n return null;\r\n }\r\n }\r\n\r\n /////////////////////////////////////////////////////////////////\r\n this.SOF_GenerateQRCode = function (qrcode_text_in) {\r\n var qrcode_text = qrcode_text_in.replace(/\"/g, '\\\\\"');\r\n var json = '{\"module\":\"libQR\",\"function\":\"SOF_GenerateQRCode\", \"inData\":\"' + qrcode_text + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.outData;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n }\r\n catch (e) {\r\n return -3;\r\n }\r\n\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.outData;\r\n }\r\n\r\n return null;\r\n }\r\n }\r\n\r\n this.SOF_VerifyPinMS = function (responseKey) {\r\n var json = '{\"function\":\"SOF_VerifyPinMS\", \"deviceName\":\"' + _curDevName + '\", \"passWd\":\"' + responseKey + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.rtn;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n }\r\n catch (e) {\r\n return -3;\r\n }\r\n\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.rtn;\r\n }\r\n\r\n return -2;\r\n }\r\n }\r\n /////////////////////////////////////////////////////////////////\r\n this.SOF_GetHardwareType = function () {\r\n var json = '{\"function\":\"SOF_GetHardwareType\", \"deviceName\":\"' + _curDevName + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.type;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n }\r\n catch (e) {\r\n return -3;\r\n }\r\n\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.type;\r\n }\r\n\r\n return -2;\r\n }\r\n }\r\n\r\n this.SOF_VerifyFingerprint = function () {\r\n var json = '{\"function\":\"SOF_VerifyFingerprint\", \"deviceName\":\"' + _curDevName + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.rtn;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n }\r\n catch (e) {\r\n return -3;\r\n }\r\n\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.rtn;\r\n }\r\n\r\n return -2;\r\n }\r\n }\r\n\r\n this.SOF_EnumFiles = function () {\r\n var json = '{\"function\":\"SOF_EnumFiles\", \"deviceName\":\"' + _curDevName + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.array;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n }\r\n catch (e) {\r\n return -3;\r\n }\r\n\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.array;\r\n }\r\n\r\n return -2;\r\n }\r\n }\r\n\r\n this.SOF_ReadFile = function (fileName, offset, length) {\r\n var json = '{\"function\":\"SOF_ReadFile\", \"deviceName\":\"' + _curDevName + '\", \"fileName\":\"' + fileName + '\", \"offset\":' + offset + ',\"length\":' + length + '}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.outData;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n }\r\n catch (e) {\r\n return -3;\r\n }\r\n\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.outData;\r\n }\r\n }\r\n }\r\n\r\n this.SOF_WriteFile = function (fileName, offset, data) {\r\n var json = '{\"function\":\"SOF_WriteFile\", \"deviceName\":\"' + _curDevName + '\", \"fileName\":\"' + fileName + '\", \"offset\":' + offset + ',\"inData\":\"' + data + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.rtn;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n }\r\n catch (e) {\r\n return -3;\r\n }\r\n\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.rtn;\r\n }\r\n }\r\n }\r\n\r\n this.SOF_CreateFile = function (fileName, length, readRight, writeRight) {\r\n var json = '{\"function\":\"SOF_CreateFile\", \"deviceName\":\"' + _curDevName + '\",\"fileName\":\"' + fileName + '\", \"length\" :' + length + ', \"readRight\":' + readRight + ',\"writeRight\":' + writeRight + '}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.rtn;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n }\r\n catch (e) {\r\n return -3;\r\n }\r\n\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.rtn;\r\n }\r\n }\r\n }\r\n\r\n this.SOF_DeleteFile = function (fileName) {\r\n var json = '{\"function\":\"SOF_DeleteFile\", \"deviceName\":\"' + _curDevName + '\",\"fileName\":\"' + fileName + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.rtn;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n }\r\n catch (e) {\r\n return -3;\r\n }\r\n\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.rtn;\r\n }\r\n }\r\n }\r\n\r\n //Socket API\r\n this.SocketConnect = function (HostName, Port) {\r\n var json = '{\"module\":\"libSocket\",\"function\":\"SocketConnect\", \"HostName\":\"' + HostName + '\", \"Port\":' + Port + '}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.rtn;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n }\r\n catch (e) {\r\n return -3;\r\n }\r\n\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.rtn;\r\n }\r\n }\r\n }\r\n\r\n this.SocketDisConnect = function () {\r\n var json = '{\"module\":\"libSocket\",\"function\":\"SocketDisConnect\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.rtn;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n }\r\n catch (e) {\r\n return -3;\r\n }\r\n\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.rtn;\r\n }\r\n }\r\n }\r\n\r\n this.SocketSendText = function (SendText) {\r\n var json = '{\"module\":\"libSocket\",\"function\":\"SocketSendText\", \"SendText\":\"' + SendText + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.RecvText;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n }\r\n catch (e) {\r\n return -3;\r\n }\r\n\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.RecvText;\r\n }\r\n }\r\n }\r\n}\r\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.p = \"\";","/* eslint-disable no-var */\n// This file is imported into lib/wc client bundles.\n\nif (typeof window !== 'undefined') {\n var currentScript = window.document.currentScript\n if (process.env.NEED_CURRENTSCRIPT_POLYFILL) {\n var getCurrentScript = require('@soda/get-current-script')\n currentScript = getCurrentScript()\n\n // for backward compatibility, because previously we directly included the polyfill\n if (!('currentScript' in document)) {\n Object.defineProperty(document, 'currentScript', { get: getCurrentScript })\n }\n }\n\n var src = currentScript && currentScript.src.match(/(.+\\/)[^/]+\\.js(\\?.*)?$/)\n if (src) {\n __webpack_public_path__ = src[1] // eslint-disable-line\n }\n}\n\n// Indicate to webpack that this file can be concatenated\nexport default null\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('el-dialog',{attrs:{\"title\":_vm.title,\"visible\":_vm.isShow,\"width\":\"350px\",\"append-to-body\":true},on:{\"close\":_vm.handleClose}},[_c('slide-verify',{ref:\"slideblock\",attrs:{\"l\":42,\"r\":10,\"w\":310,\"h\":155,\"imgs\":_vm.imgs,\"accuracy\":_vm.accuracy,\"slider-text\":_vm.sliderText},on:{\"success\":_vm.onSuccess,\"fail\":_vm.onFail,\"again\":_vm.onAgain,\"refresh\":_vm.onRefresh,\"fulfilled\":_vm.onFulfilled}})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <el-dialog\r\n :title=\"title\"\r\n :visible=\"isShow\"\r\n width=\"350px\"\r\n :append-to-body=\"true\"\r\n @close=\"handleClose\"\r\n >\r\n <slide-verify\r\n ref=\"slideblock\"\r\n :l=\"42\"\r\n :r=\"10\"\r\n :w=\"310\"\r\n :h=\"155\"\r\n :imgs=\"imgs\"\r\n :accuracy=\"accuracy\"\r\n :slider-text=\"sliderText\"\r\n @success=\"onSuccess\"\r\n @fail=\"onFail\"\r\n @again=\"onAgain\"\r\n @refresh=\"onRefresh\"\r\n @fulfilled=\"onFulfilled\"\r\n ></slide-verify>\r\n </el-dialog>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n name: \"YcSlideVerify\",\r\n props: {\r\n title: {\r\n type: String,\r\n default: \"滑动验证\",\r\n },\r\n isShow: {\r\n type: Boolean,\r\n default: true,\r\n },\r\n },\r\n data() {\r\n return {\r\n accuracy: 5,\r\n sliderText: \"拖动完成上方拼图\",\r\n countDownNum: 120,\r\n }\r\n },\r\n computed: {\r\n imgs() {\r\n const list = []\r\n for (let i = 1; i < 9; i++) {\r\n list.push(`/cloud-img/${i}.jpg`)\r\n }\r\n return list\r\n },\r\n },\r\n watch: {\r\n isShow(newVal) {\r\n // 这里第三方引用,ref没有渲染完成,reset报错,还不能用?号\r\n newVal &&\r\n this.$refs.slideblock &&\r\n this.$refs.slideblock.reset &&\r\n this.$refs.slideblock.reset()\r\n },\r\n },\r\n created() {},\r\n methods: {\r\n onSuccess() {\r\n this.$emit(\"success\")\r\n },\r\n onFail() {},\r\n onAgain() {},\r\n onRefresh() {},\r\n onFulfilled() {},\r\n handleClose() {\r\n this.$emit(\"close\")\r\n },\r\n },\r\n}\r\n</script>\r\n<style lang=\"scss\" scoped>\r\n.el-dialog__wrapper {\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n}\r\n::v-deep .el-dialog {\r\n margin-top: 0 !important;\r\n border-radius: 8px;\r\n}\r\n::v-deep .el-dialog__header {\r\n background-color: #f2f6fc;\r\n border-radius: 8px 8px 0 0;\r\n}\r\n.el-dialog__body {\r\n display: flex;\r\n justify-content: center;\r\n}\r\n</style>\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","// extracted by mini-css-extract-plugin\nexport {};","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!../../../node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!../../../node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=33a7114a&prod&lang=scss&scoped=true&\"","/* globals __VUE_SSR_CONTEXT__ */\n\n// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).\n// This module is a runtime utility for cleaner component module output and will\n// be included in the final webpack user bundle.\n\nexport default function normalizeComponent(\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier /* server only */,\n shadowMode /* vue-cli only */\n) {\n // Vue.extend constructor export interop\n var options =\n typeof scriptExports === 'function' ? scriptExports.options : scriptExports\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) {\n // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () {\n injectStyles.call(\n this,\n (options.functional ? this.parent : this).$root.$options.shadowRoot\n )\n }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functional component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection(h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing ? [].concat(existing, hook) : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}\n","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=33a7114a&scoped=true&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=33a7114a&prod&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"33a7114a\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{ref:\"customer\",staticStyle:{\"display\":\"none\"}},[_c('chat-vue',{attrs:{\"visible\":_vm.visible,\"jumpPage\":_vm.jumpPage,\"title\":_vm.title,\"json\":_vm.json,\"regular\":_vm.regular},on:{\"update:visible\":function($event){_vm.visible=$event}}}),_c('div',{staticClass:\"customerService\"},[_c('div',{staticClass:\"mobile\"},[_vm._t(\"default\")],2),_c('div',{staticClass:\"headset\",on:{\"click\":function($event){_vm.visible = !_vm.visible}}},[_vm._m(0),_vm._m(1)])])],1)\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',[_c('i',{staticClass:\"el-icon-headset\"})])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',[_c('a',[_vm._v(\"在线客服\")])])\n}]\n\nexport { render, staticRenderFns }","export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./index.vue?vue&type=template&id=849349a0&scoped=true&\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.visible),expression:\"visible\"}],staticClass:\"chat\"},[_c('header',[_c('img',{attrs:{\"src\":\"/cloud-img/customerService/admin.jpg\"}}),_c('span',[_vm._v(_vm._s(_vm.title))]),(_vm.jumpPage)?_c('i',{staticClass:\"icon-enlarge\",on:{\"click\":_vm.enlarge}},[_c('img',{attrs:{\"src\":\"/cloud-img/customerService/enlarge.png\"}})]):_vm._e(),_c('i',{staticClass:\"el-icon-close\",on:{\"click\":_vm.close}})]),_c('main',{ref:\"main\"},_vm._l((_vm.messagelist),function(item,index){return _c('div',{key:index,class:['message', item.id]},[_c('img',{staticClass:\"avatar\",attrs:{\"src\":`/cloud-img/customerService/${item.id}.jpg`}}),_c('div',{staticClass:\"content\"},[_vm._l((item.msg),function(msg,index){return _c('span',{key:msg + index,class:item.msg.length > 1 ? 'href' : '',domProps:{\"innerHTML\":_vm._s((item.msg.length > 1 ? 1 + index + '. ' : ' ') + msg)},on:{\"click\":function($event){item.msg.length > 1 && _vm.regularClick(msg)}}})}),(item.based)?_c('div',{staticClass:\"based\",on:{\"click\":function($event){return _vm.handExpand(item)}}},[_c('span',[_vm._v(\"依据\")]),_c('span',{class:{ 'is-active': item.isActive }},[_vm._v(_vm._s(item.based)),_c('i',{staticClass:\"el-icon-d-arrow-right\"})])]):_vm._e()],2)])}),0),_c('nav',_vm._l((_vm.regular),function(item,index){return _c('el-button',{key:item + index,attrs:{\"size\":\"mini\",\"round\":\"\"},on:{\"click\":function($event){return _vm.regularClick(item)}}},[_vm._v(_vm._s(item))])}),1),_c('el-input',{attrs:{\"type\":\"textarea\",\"maxlength\":\"500\",\"autosize\":{ minRows: 2, maxRows: 3 },\"autofocus\":\"true\",\"resize\":\"none\",\"placeholder\":\"请反馈您的问题,我们将尽快回复\"},nativeOn:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;return _vm.carriageReturn.apply(null, arguments)}},model:{value:(_vm.textareaValue),callback:function ($$v) {_vm.textareaValue=$$v},expression:\"textareaValue\"}}),_c('el-button',{attrs:{\"type\":\"primary\",\"size\":\"mini\",\"disabled\":!_vm.textareaValue},on:{\"click\":_vm.send}},[_vm._v(\"发送\")])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export default {\r\n props: {\r\n visible: Boolean,\r\n jumpPage: String,\r\n json: String,\r\n title: String,\r\n commit: String,\r\n regular: Array\r\n },\r\n data() {\r\n return {\r\n textareaValue: \"\",\r\n // regular: ['发票增值税率', '城市维护建设税', '教育费附加征收率'],\r\n messagelist: [\r\n {id: 'admin', msg: ['您好,38号客服很高兴为你服务!'], isActive: false},\r\n // {id: 'personal', msg: ['消费税?']}\r\n ],\r\n isActive: false\r\n }\r\n },\r\n computed: {\r\n questions() {\r\n return JSON.parse(this.json)\r\n }\r\n },\r\n methods: {\r\n close() {\r\n this.$emit(\"update:visible\", false);\r\n },\r\n carriageReturn() {\r\n let e = window.event || arguments[0];\r\n if ((e.key == \"Enter\" || e.code == \"Enter\" || e.keyCode == 13) && this.textareaValue) {\r\n this.send()\r\n }\r\n },\r\n send() {\r\n if(!this.textareaValue.replace(/[^\\w\\u4E00-\\u9FA5]/g, ''))\r\n return\r\n\r\n this.add(this.textareaValue, \"personal\", ()=> {this.textareaValue = ''})\r\n this.search(this.textareaValue)\r\n },\r\n regularClick(msg) {\r\n this.add(msg)\r\n this.search(msg)\r\n },\r\n search(msg) {\r\n const list = this.questions.filter(item => item.faq.replace(/[^\\w\\u4E00-\\u9FA5]/g, '').toLowerCase().includes(msg.replace(/[^\\w\\u4E00-\\u9FA5]/g, '').toLowerCase()))\r\n let [vlaue, based] = ['', '']\r\n \r\n if(list.length > 1) {\r\n vlaue = list.reduce((prev, curr) => [...prev, curr.faq], [])\r\n } else if(list.length == 1) {\r\n [vlaue, based] = [list[0].msg, list[0].based]\r\n } else if([\"您好\",\"你好\"].includes(msg.replace(/[^\\w\\u4E00-\\u9FA5]/g, ''))) {\r\n vlaue = '您好!'\r\n } else {\r\n vlaue = '请提关键词问题?<br/> 比如: 税率<br/><br/><a href=\"tel:4000770168\">客服热线:<span style=\"color: #FF575F;\">400 0770 168</span></a>'\r\n }\r\n this.add(vlaue, 'admin', null, based)\r\n },\r\n add(msg, id=\"personal\", fun, based = \"\") {\r\n this.messagelist.push({\r\n id,\r\n msg: Array.isArray(msg) ? msg : [msg],\r\n based,\r\n isActive: false\r\n })\r\n this.$nextTick(() => {\r\n fun && fun()\r\n // this.$refs.main.scrollTop += 70\r\n this.$refs.main.scrollTop = this.$refs.main.scrollHeight\r\n // console.log(this.$refs.main.scrollTop, this.$refs.main.scrollHeight)\r\n })\r\n },\r\n enlarge() {\r\n // this.$router.resolve({\r\n // name: this.jumpPage\r\n // })\r\n \r\n window.open(this.jumpPage, '_blank')\r\n },\r\n handExpand(item) {\r\n item.isActive = !item.isActive\r\n }\r\n }\r\n}","<template>\r\n <div class=\"chat\" v-show=\"visible\">\r\n <header>\r\n <img src=\"/cloud-img/customerService/admin.jpg\" />\r\n <span>{{ title }}</span>\r\n <i class=\"icon-enlarge\" v-if=\"jumpPage\" @click=\"enlarge\"\r\n ><img src=\"/cloud-img/customerService/enlarge.png\"\r\n /></i>\r\n <i class=\"el-icon-close\" @click=\"close\"></i>\r\n </header>\r\n <main ref=\"main\">\r\n <div\r\n v-for=\"(item, index) in messagelist\"\r\n :key=\"index\"\r\n :class=\"['message', item.id]\"\r\n >\r\n <img\r\n class=\"avatar\"\r\n :src=\"`/cloud-img/customerService/${item.id}.jpg`\"\r\n />\r\n <div class=\"content\">\r\n <span\r\n v-for=\"(msg, index) in item.msg\"\r\n :key=\"msg + index\"\r\n v-html=\"(item.msg.length > 1 ? 1 + index + '. ' : ' ') + msg\"\r\n :class=\"item.msg.length > 1 ? 'href' : ''\"\r\n @click=\"item.msg.length > 1 && regularClick(msg)\"\r\n ></span>\r\n <div class=\"based\" v-if=\"item.based\" @click=\"handExpand(item)\">\r\n <span>依据</span\r\n ><span :class=\"{ 'is-active': item.isActive }\"\r\n >{{ item.based }}<i class=\"el-icon-d-arrow-right\"></i\r\n ></span>\r\n </div>\r\n </div>\r\n </div>\r\n </main>\r\n <nav>\r\n <el-button\r\n size=\"mini\"\r\n round\r\n v-for=\"(item, index) in regular\"\r\n :key=\"item + index\"\r\n @click=\"regularClick(item)\"\r\n >{{ item }}</el-button\r\n >\r\n </nav>\r\n <el-input\r\n type=\"textarea\"\r\n maxlength=\"500\"\r\n :autosize=\"{ minRows: 2, maxRows: 3 }\"\r\n autofocus=\"true\"\r\n resize=\"none\"\r\n placeholder=\"请反馈您的问题,我们将尽快回复\"\r\n v-model=\"textareaValue\"\r\n @keyup.enter.native=\"carriageReturn\"\r\n >\r\n </el-input>\r\n <!-- <el-button size=\"mini\" type=\"primary\">发送</el-button> -->\r\n <el-button\r\n type=\"primary\"\r\n size=\"mini\"\r\n :disabled=\"!textareaValue\"\r\n @click=\"send\"\r\n >发送</el-button\r\n >\r\n </div>\r\n</template>\r\n<script>\r\nimport chatMixin from \"./chatMixin\"\r\nexport default {\r\n name: \"ChatMini\",\r\n mixins: [chatMixin],\r\n}\r\n</script>\r\n<style lang=\"scss\" scoped>\r\n.chat {\r\n width: 350px;\r\n height: 480px;\r\n position: fixed;\r\n bottom: 10px;\r\n right: 55px;\r\n z-index: 2001;\r\n background-color: #ffffff;\r\n border-radius: 12px;\r\n border: 1px solid #e6ebf5;\r\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 0 6px rgba(0, 0, 0, 0.04);\r\n overflow: hidden;\r\n > header {\r\n display: flex;\r\n justify-content: flex-start;\r\n align-items: center;\r\n background-color: #ff575f;\r\n font-size: 16px;\r\n padding: 10px;\r\n font-weight: 400;\r\n color: #fafdff;\r\n > img {\r\n width: 44px;\r\n height: 44px;\r\n border-radius: 50%;\r\n margin-right: 10px;\r\n transition: all 0.3s linear;\r\n &:focus,\r\n &:hover {\r\n transform: scale(1.2, 1.2) rotate(15deg);\r\n }\r\n }\r\n i {\r\n cursor: pointer;\r\n position: absolute;\r\n top: 5px;\r\n width: 20px;\r\n height: 20px;\r\n border-radius: 6px;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n transition: all 0.3s linear;\r\n &:focus,\r\n &:hover {\r\n transform: scale(1.2, 1.2);\r\n background-color: rgba(255, 137, 122, 0.8);\r\n }\r\n &.el-icon-close {\r\n right: 10px;\r\n }\r\n &.icon-enlarge {\r\n right: 35px;\r\n }\r\n > img {\r\n width: 12px;\r\n }\r\n }\r\n }\r\n\r\n > main {\r\n width: 100%;\r\n height: 60%;\r\n overflow-y: auto;\r\n padding-bottom: 20px;\r\n background-color: #f7f7f9;\r\n // 滚动条宽度\r\n &::-webkit-scrollbar {\r\n width: 6px;\r\n }\r\n // 滚动条轨道\r\n &::-webkit-scrollbar-track {\r\n background: rgb(239, 239, 239);\r\n border-radius: 2px;\r\n }\r\n // 小滑块\r\n &::-webkit-scrollbar-thumb {\r\n background: #ff8879;\r\n border-radius: 10px;\r\n }\r\n &::-webkit-scrollbar-thumb:hover {\r\n background: #ff755d;\r\n }\r\n .message {\r\n display: flex;\r\n gap: 15px;\r\n position: relative;\r\n margin: 20px 5px 0px 5px;\r\n opacity: 0;\r\n .avatar {\r\n width: 30px;\r\n height: 30px;\r\n border-radius: 50%;\r\n }\r\n .content {\r\n width: fit-content;\r\n max-width: 250px;\r\n font-weight: 400;\r\n font-size: 12px;\r\n color: #4c4c4d;\r\n line-height: 20px;\r\n padding: 10px;\r\n border-radius: 10px;\r\n background-color: #ffffff;\r\n .href {\r\n cursor: pointer;\r\n display: block;\r\n color: #ff575f;\r\n margin-bottom: 0.5rem;\r\n &:hover {\r\n text-decoration: underline;\r\n }\r\n }\r\n\r\n > .based {\r\n cursor: pointer;\r\n color: #909399;\r\n display: flex;\r\n align-items: flex-start;\r\n justify-content: flex-start;\r\n border-top: 1px solid #ebebed;\r\n padding-top: 5px;\r\n margin-top: 5px;\r\n gap: 5px;\r\n\r\n & > span:first-child {\r\n white-space: nowrap;\r\n color: #4c4c4d;\r\n border-radius: 10px;\r\n background-color: #eeeef0;\r\n padding: 0px 7px;\r\n }\r\n\r\n & > span:last-child {\r\n width: 100%;\r\n position: relative;\r\n display: inline-block;\r\n overflow: hidden;\r\n white-space: nowrap;\r\n text-overflow: ellipsis;\r\n padding-right: 12px;\r\n\r\n .el-icon-d-arrow-right {\r\n position: absolute;\r\n right: 0px;\r\n bottom: 5px;\r\n transform: rotate(90deg);\r\n transition: all 0.35s linear;\r\n }\r\n &.is-active {\r\n overflow: visible;\r\n white-space: normal;\r\n .el-icon-d-arrow-right {\r\n transform: rotate(270deg);\r\n }\r\n }\r\n\r\n &:hover {\r\n color: #ff575f;\r\n }\r\n }\r\n }\r\n }\r\n &.admin {\r\n animation: animation01 0.3s linear 1.5s forwards;\r\n .content::before {\r\n content: \"\";\r\n position: absolute;\r\n top: 2px;\r\n left: 37px;\r\n transform: rotate(-45deg);\r\n border-width: 10px;\r\n border-style: solid;\r\n border-color: transparent transparent transparent #ffffff;\r\n }\r\n }\r\n &.personal {\r\n animation: animation01 0.3s linear 0.3s forwards;\r\n flex-direction: row-reverse;\r\n .content::after {\r\n content: \"\";\r\n position: absolute;\r\n top: 2px;\r\n right: 37px;\r\n transform: rotate(-45deg);\r\n border-width: 10px;\r\n border-style: solid;\r\n border-color: transparent transparent #ffffff transparent;\r\n }\r\n }\r\n @keyframes animation01 {\r\n 0% {\r\n transform: translateY(20px);\r\n opacity: 0;\r\n }\r\n\r\n 100% {\r\n transform: translateY(0px);\r\n opacity: 1;\r\n }\r\n }\r\n }\r\n }\r\n > nav {\r\n // overflow-x: auto;\r\n background-color: #f7f7f9;\r\n border-bottom: 1px solid #e7e7ea;\r\n padding: 5px 10px;\r\n display: flex;\r\n .el-button {\r\n font-size: 12px;\r\n font-weight: 400;\r\n color: #4c4c4d;\r\n background-color: #fff !important;\r\n border: 1px solid #e7e7ea;\r\n padding: 5px 8px;\r\n }\r\n }\r\n > .el-textarea {\r\n border-color: transparent;\r\n textarea {\r\n overflow-y: hidden;\r\n padding-right: 65px;\r\n font-weight: 400;\r\n color: #19191a;\r\n font-size: 12px;\r\n font-family: Source Han Sans CN-Regular, Source Han Sans CN;\r\n }\r\n textarea,\r\n textarea:focus {\r\n border-color: transparent;\r\n }\r\n }\r\n > .el-button {\r\n position: absolute;\r\n bottom: 10px;\r\n right: 10px;\r\n }\r\n}\r\n</style>\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./chat.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./chat.vue?vue&type=script&lang=js&\"","// extracted by mini-css-extract-plugin\nexport {};","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!../../../node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!../../../node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./chat.vue?vue&type=style&index=0&id=42a8b467&prod&lang=scss&scoped=true&\"","import { render, staticRenderFns } from \"./chat.vue?vue&type=template&id=42a8b467&scoped=true&\"\nimport script from \"./chat.vue?vue&type=script&lang=js&\"\nexport * from \"./chat.vue?vue&type=script&lang=js&\"\nimport style0 from \"./chat.vue?vue&type=style&index=0&id=42a8b467&prod&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"42a8b467\",\n null\n \n)\n\nexport default component.exports","<template>\r\n <div ref=\"customer\" style=\"display: none\">\r\n <chat-vue\r\n :visible.sync=\"visible\"\r\n :jumpPage=\"jumpPage\"\r\n :title=\"title\"\r\n :json=\"json\"\r\n :regular=\"regular\"\r\n />\r\n <div class=\"customerService\">\r\n <div class=\"mobile\">\r\n <slot></slot>\r\n <!-- <div><i class=\"el-icon-mobile\"></i></div>\r\n <div>\r\n <span>客服热线</span>\r\n <a href=\"tel:4000770168\">400 0770 168</a>\r\n <template v-if=\"!['/login', '/register'].includes($route.path)\">\r\n <span style=\"margin-top: 10px\">银行服务电话</span>\r\n <a href=\"tel:13973004180\">13973004180(蒋行长)</a>\r\n <a href=\"tel:15773001997\">15773001997(彭经理)</a>\r\n </template>\r\n </div> -->\r\n </div>\r\n <div class=\"headset\" @click=\"visible = !visible\">\r\n <div><i class=\"el-icon-headset\"></i></div>\r\n <div><a>在线客服</a></div>\r\n </div>\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport chatVue from \"./chat.vue\"\r\nexport default {\r\n name: \"YcCustomerService\",\r\n components: {\r\n chatVue,\r\n },\r\n props: {\r\n jumpPage: String,\r\n title: String,\r\n json: String,\r\n regular: Array,\r\n },\r\n data() {\r\n return {\r\n visible: false,\r\n }\r\n },\r\n computed: {\r\n hasSlot() {\r\n return Boolean(this.$slots.default)\r\n },\r\n },\r\n watch: {\r\n $route(to) {\r\n if (to.path != this.jumpPage) {\r\n this.$refs.customer.style.display = \"block\"\r\n } else {\r\n this.$refs.customer.style.display = \"none\"\r\n }\r\n },\r\n },\r\n mounted() {\r\n this.$refs.customer.style.display = \"block\"\r\n },\r\n}\r\n</script>\r\n<style lang=\"scss\" scoped>\r\n.customerService {\r\n position: fixed;\r\n right: 0px;\r\n bottom: 35px;\r\n z-index: 2001;\r\n > div {\r\n cursor: pointer;\r\n position: absolute;\r\n right: 0px;\r\n display: flex;\r\n align-items: center;\r\n background-color: #ffffff;\r\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 0 6px rgba(0, 0, 0, 0.04);\r\n &:hover {\r\n > div:first-child {\r\n color: #ff4949;\r\n i {\r\n animation-name: animateRotate;\r\n animation-duration: 0.5s;\r\n animation-iteration-count: infinite;\r\n }\r\n }\r\n }\r\n > div:first-child {\r\n width: 50px;\r\n height: 50px;\r\n text-align: center;\r\n line-height: 50px;\r\n font-size: 18px;\r\n }\r\n > div:last-child {\r\n opacity: 0;\r\n // transition: all 0.3s linear;\r\n padding: 10px;\r\n border-radius: 6px;\r\n position: absolute;\r\n min-height: 50px;\r\n display: flex;\r\n flex-direction: column;\r\n // align-items: center;\r\n justify-content: space-around;\r\n background-color: #ffffff;\r\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 0 6px rgba(0, 0, 0, 0.04);\r\n &::after {\r\n content: \"\";\r\n position: absolute;\r\n top: calc(50% - 10px);\r\n right: -20px;\r\n border-width: 10px;\r\n border-style: solid;\r\n border-color: transparent transparent transparent #ffffff;\r\n filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.2));\r\n }\r\n a {\r\n color: #333;\r\n font-size: 14px;\r\n display: block;\r\n }\r\n }\r\n }\r\n .mobile {\r\n bottom: 50px;\r\n border-bottom: 1px solid #e6ebf5;\r\n &:hover {\r\n > div:last-child {\r\n left: -210px;\r\n opacity: 1;\r\n animation-name: animateMobile;\r\n animation-duration: 0.5s;\r\n }\r\n }\r\n > div:last-child {\r\n left: -120vw;\r\n width: 190px;\r\n bottom: 0px;\r\n a {\r\n width: fit-content;\r\n position: relative;\r\n margin-top: 5px;\r\n text-indent: 5px;\r\n &:hover {\r\n color: #ff4949;\r\n &::before {\r\n width: 100%;\r\n right: auto;\r\n left: 0px;\r\n }\r\n }\r\n &::before {\r\n content: \"\";\r\n width: 0%;\r\n height: 1px;\r\n opacity: 0.6;\r\n background: #ff4949;\r\n transition: all 0.5s linear;\r\n position: absolute;\r\n right: 0px;\r\n bottom: -2px;\r\n }\r\n }\r\n &::after {\r\n top: calc(100% - 35px);\r\n }\r\n }\r\n @keyframes animateMobile {\r\n 0% {\r\n left: -200vw;\r\n opacity: 0;\r\n }\r\n 0.1% {\r\n left: -310px;\r\n opacity: 0;\r\n }\r\n 100% {\r\n left: -210px;\r\n opacity: 1;\r\n }\r\n }\r\n }\r\n .headset {\r\n bottom: 0px;\r\n &:hover {\r\n > div:last-child {\r\n left: -110px;\r\n opacity: 1;\r\n animation-name: animateHeadset;\r\n animation-duration: 0.5s;\r\n }\r\n }\r\n > div:last-child {\r\n left: -120vw;\r\n width: 90px;\r\n }\r\n @keyframes animateHeadset {\r\n 0% {\r\n left: -120vw;\r\n opacity: 0;\r\n }\r\n 0.1% {\r\n left: -210px;\r\n opacity: 0.5;\r\n }\r\n 100% {\r\n left: -110px;\r\n opacity: 1;\r\n }\r\n }\r\n }\r\n @keyframes animateRotate {\r\n 0% {\r\n transform: rotate(0deg);\r\n }\r\n 20% {\r\n transform: rotate(7deg);\r\n }\r\n 40% {\r\n transform: rotate(0deg);\r\n }\r\n 80% {\r\n transform: rotate(-7deg);\r\n }\r\n 100% {\r\n transform: rotate(0deg);\r\n }\r\n }\r\n}\r\n</style>\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","// extracted by mini-css-extract-plugin\nexport {};","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!../../../node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!../../../node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=849349a0&prod&lang=scss&scoped=true&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=849349a0&scoped=true&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=849349a0&prod&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"849349a0\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"YcQuestion\"},[_c('div',{staticClass:\"chatPage\"},[_c('header',{staticStyle:{\"background\":\"url('/cloud-img/customerService/chatTop.png') center\",\"background-size\":\"cover\"}},[_c('div',[_c('h3',[_vm._v(_vm._s(_vm.title))]),_c('span',[_vm._v(\"Problem Help\")])]),_c('p',[_vm._v(\"小优为您提供24小时服务\")])]),_c('div',{staticClass:\"main\"},[_c('div',[_c('main',{ref:\"main\"},[_c('p',[_vm._v(\"今天\"+_vm._s(_vm.currData))]),_vm._l((_vm.messagelist),function(item,index){return _c('div',{key:index,class:['message', item.id]},[_c('img',{staticClass:\"avatar\",attrs:{\"src\":'/cloud-img/customerService/' + item.id + '.jpg'}}),_c('div',{staticClass:\"content\"},[_vm._l((item.msg),function(msg,index){return _c('span',{key:msg + index,class:item.msg.length > 1 ? 'href' : '',domProps:{\"innerHTML\":_vm._s((item.msg.length > 1 ? 1 + index + '. ' : ' ') + msg)},on:{\"click\":function($event){item.msg.length > 1 && _vm.regularClick(msg)}}})}),(item.based)?_c('div',{staticClass:\"based\",on:{\"click\":function($event){$event.preventDefault();return _vm.handExpand(item)}}},[_c('span',[_vm._v(\"依据\")]),_c('span',{class:{ 'is-active': item.isActive }},[_vm._v(_vm._s(item.based)),_c('i',{staticClass:\"el-icon-d-arrow-right\"})])]):_vm._e()],2)])})],2),_c('footer',[_c('el-input',{attrs:{\"type\":\"textarea\",\"maxlength\":\"500\",\"autosize\":{ minRows: 6, maxRows: 6 },\"autofocus\":\"true\",\"resize\":\"none\",\"placeholder\":\"请输入你要咨询的问题\"},nativeOn:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;return _vm.carriageReturn.apply(null, arguments)}},model:{value:(_vm.textareaValue),callback:function ($$v) {_vm.textareaValue=$$v},expression:\"textareaValue\"}}),_c('el-button',{style:(!_vm.textareaValue\n ? 'background-color: #F7F7F9;color: #FF575F;border-color: transparent;'\n : ''),attrs:{\"type\":\"primary\",\"disabled\":!_vm.textareaValue},on:{\"click\":_vm.send}},[_vm._v(\"发送\")])],1)]),_c('aside',[_c('el-collapse',{attrs:{\"accordion\":\"\"},model:{value:(_vm.activeNames),callback:function ($$v) {_vm.activeNames=$$v},expression:\"activeNames\"}},_vm._l((_vm.questionsList),function(item,key,index){return _c('el-collapse-item',{key:key,attrs:{\"name\":index}},[_c('template',{slot:\"title\"},[_c('img',{attrs:{\"src\":\"/cloud-img/customerService/ellipticalWenh.png\"}}),_vm._v(_vm._s(key)+\" \")]),_vm._l((item),function(faq){return _c('div',{key:faq,domProps:{\"innerHTML\":_vm._s(faq)},on:{\"click\":function($event){return _vm.regularClick(faq)}}})})],2)}),1)],1)])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"YcQuestion\">\r\n <div class=\"chatPage\">\r\n <header\r\n style=\"\r\n background: url('/cloud-img/customerService/chatTop.png') center\r\n no-repeat cover;\r\n background-size: cover;\r\n \"\r\n >\r\n <div>\r\n <h3>{{ title }}</h3>\r\n <span>Problem Help</span>\r\n </div>\r\n <p>小优为您提供24小时服务</p>\r\n </header>\r\n <div class=\"main\">\r\n <div>\r\n <main ref=\"main\">\r\n <p>今天{{ currData }}</p>\r\n <div\r\n v-for=\"(item, index) in messagelist\"\r\n :key=\"index\"\r\n :class=\"['message', item.id]\"\r\n >\r\n <img\r\n class=\"avatar\"\r\n :src=\"'/cloud-img/customerService/' + item.id + '.jpg'\"\r\n />\r\n <div class=\"content\">\r\n <span\r\n v-for=\"(msg, index) in item.msg\"\r\n :key=\"msg + index\"\r\n v-html=\"(item.msg.length > 1 ? 1 + index + '. ' : ' ') + msg\"\r\n :class=\"item.msg.length > 1 ? 'href' : ''\"\r\n @click=\"item.msg.length > 1 && regularClick(msg)\"\r\n ></span>\r\n <div\r\n class=\"based\"\r\n v-if=\"item.based\"\r\n @click.prevent=\"handExpand(item)\"\r\n >\r\n <span>依据</span\r\n ><span :class=\"{ 'is-active': item.isActive }\"\r\n >{{ item.based }}<i class=\"el-icon-d-arrow-right\"></i\r\n ></span>\r\n </div>\r\n </div>\r\n </div>\r\n </main>\r\n <footer>\r\n <el-input\r\n type=\"textarea\"\r\n maxlength=\"500\"\r\n :autosize=\"{ minRows: 6, maxRows: 6 }\"\r\n autofocus=\"true\"\r\n resize=\"none\"\r\n placeholder=\"请输入你要咨询的问题\"\r\n v-model=\"textareaValue\"\r\n @keyup.enter.native=\"carriageReturn\"\r\n >\r\n </el-input>\r\n <el-button\r\n type=\"primary\"\r\n :disabled=\"!textareaValue\"\r\n :style=\"\r\n !textareaValue\r\n ? 'background-color: #F7F7F9;color: #FF575F;border-color: transparent;'\r\n : ''\r\n \"\r\n @click=\"send\"\r\n >发送</el-button\r\n >\r\n </footer>\r\n </div>\r\n <aside>\r\n <el-collapse v-model=\"activeNames\" accordion>\r\n <el-collapse-item\r\n v-for=\"(item, key, index) in questionsList\"\r\n :key=\"key\"\r\n :name=\"index\"\r\n >\r\n <template slot=\"title\">\r\n <img src=\"/cloud-img/customerService/ellipticalWenh.png\" />{{\r\n key\r\n }}\r\n </template>\r\n <div\r\n v-for=\"faq in item\"\r\n :key=\"faq\"\r\n v-html=\"faq\"\r\n @click=\"regularClick(faq)\"\r\n ></div>\r\n </el-collapse-item>\r\n </el-collapse>\r\n </aside>\r\n </div>\r\n </div>\r\n </div>\r\n</template>\r\n<script>\r\nimport chatMixin from \"comp/YcCustomerService/chatMixin\"\r\nexport default {\r\n name: \"YcQuestion\",\r\n mixins: [chatMixin],\r\n data() {\r\n return {\r\n activeNames: [1],\r\n }\r\n },\r\n computed: {\r\n currData() {\r\n const currData = new Date()\r\n return `${currData.getHours()}:${currData.getMinutes()}`\r\n },\r\n questionsList() {\r\n return this.questions.reduce((prev, curr) => {\r\n // eslint-disable-next-line no-prototype-builtins\r\n if (prev.hasOwnProperty(curr.type)) {\r\n prev[curr.type].push(curr.faq)\r\n } else {\r\n prev[curr.type] = [curr.faq]\r\n }\r\n return prev\r\n }, {})\r\n },\r\n },\r\n}\r\n</script>\r\n<style lang=\"scss\" scoped>\r\n.YcQuestion {\r\n // min-width: auto;\r\n // overflow: hidden;\r\n // height: 100vh;\r\n ::v-deep .chatPage {\r\n background-color: #ffffff;\r\n\r\n > header {\r\n height: 8vw;\r\n display: flex;\r\n justify-content: flex-start;\r\n align-items: center;\r\n gap: 5vw;\r\n padding-left: 8vw;\r\n // background: url(\"/cloud-img/customerService/chatTop.png\");\r\n background-position: center center;\r\n background-repeat: no-repeat;\r\n background-size: cover;\r\n\r\n > div {\r\n display: flex;\r\n flex-direction: column;\r\n justify-content: center;\r\n align-items: center;\r\n\r\n // flex-direction: row-reverse;\r\n h3 {\r\n height: 1vw;\r\n margin-top: 0px;\r\n font-size: 2.125rem;\r\n font-weight: bold;\r\n color: #191a2c;\r\n font-family: Source Han Sans CN-Bold, Source Han Sans CN;\r\n }\r\n\r\n span {\r\n font-size: 1rem;\r\n font-family: LXGW New Clear Gothic-Regular, LXGW New Clear Gothic;\r\n font-weight: 400;\r\n color: #666;\r\n }\r\n }\r\n\r\n p {\r\n font-size: 1rem;\r\n font-family: Source Han Sans CN-Regular, Source Han Sans CN;\r\n font-weight: 400;\r\n color: #2e2f42;\r\n }\r\n }\r\n\r\n .main {\r\n display: flex;\r\n\r\n > div {\r\n width: 74vw;\r\n position: relative;\r\n\r\n > main {\r\n height: 62vh;\r\n overflow-y: auto;\r\n padding-bottom: 2vw;\r\n background-color: #f7f7f9;\r\n\r\n // 滚动条宽度\r\n &::-webkit-scrollbar {\r\n width: 6px;\r\n }\r\n\r\n // 滚动条轨道\r\n &::-webkit-scrollbar-track {\r\n background: rgb(239, 239, 239);\r\n border-radius: 2px;\r\n }\r\n\r\n // 小滑块\r\n &::-webkit-scrollbar-thumb {\r\n background: #ff8879;\r\n border-radius: 10px;\r\n }\r\n\r\n &::-webkit-scrollbar-thumb:hover {\r\n background: #ff755d;\r\n }\r\n\r\n > p {\r\n text-align: center;\r\n font-size: 0.875rem;\r\n font-family: Source Han Sans CN-Regular, Source Han Sans CN;\r\n font-weight: 400;\r\n color: #909399;\r\n }\r\n\r\n .message {\r\n display: flex;\r\n gap: 15px;\r\n margin: 1.5vw 1.5vw 0px 1.5vw;\r\n opacity: 0;\r\n\r\n .avatar {\r\n width: 2.5vw;\r\n height: 2.5vw;\r\n min-width: 35px;\r\n min-height: 35px;\r\n border-radius: 50%;\r\n transition: all 0.3s linear;\r\n &:focus,\r\n &:hover {\r\n transform: scale(1.2, 1.2) rotate(15deg);\r\n }\r\n }\r\n\r\n .content {\r\n width: fit-content;\r\n max-width: 50vw;\r\n font-weight: 400;\r\n font-size: 1rem;\r\n color: #4c4c4d;\r\n padding: 10px;\r\n border-radius: 10px;\r\n position: relative;\r\n background-color: #ffffff;\r\n\r\n .href {\r\n cursor: pointer;\r\n display: block;\r\n color: #ff575f;\r\n margin-bottom: 1.5rem;\r\n\r\n &:hover {\r\n text-decoration: underline;\r\n }\r\n }\r\n\r\n > .based {\r\n cursor: pointer;\r\n font-size: 1rem;\r\n font-weight: 400;\r\n color: #909399;\r\n display: flex;\r\n align-items: flex-start;\r\n justify-content: flex-start;\r\n border-top: 1px solid #ebebed;\r\n padding-top: 0.625rem;\r\n margin-top: 0.625rem;\r\n gap: 0.625rem;\r\n\r\n & > span:first-child {\r\n white-space: nowrap;\r\n color: #4c4c4d;\r\n border-radius: 18px;\r\n background-color: #eeeef0;\r\n padding: 0.1875rem 0.625rem;\r\n margin-top: -0.1875rem;\r\n }\r\n\r\n & > span:last-child {\r\n width: 100%;\r\n position: relative;\r\n display: inline-block;\r\n overflow: hidden;\r\n white-space: nowrap;\r\n text-overflow: ellipsis;\r\n padding-right: 12px;\r\n\r\n .el-icon-d-arrow-right {\r\n position: absolute;\r\n right: 0px;\r\n bottom: 0px;\r\n transform: rotate(90deg);\r\n transition: all 0.35s linear;\r\n }\r\n &.is-active {\r\n overflow: visible;\r\n white-space: normal;\r\n .el-icon-d-arrow-right {\r\n transform: rotate(270deg);\r\n }\r\n }\r\n\r\n &:hover {\r\n color: #ff575f;\r\n }\r\n }\r\n }\r\n }\r\n\r\n &.admin {\r\n animation: animation01 0.3s linear 1.5s forwards;\r\n\r\n .content {\r\n margin-top: 20px;\r\n\r\n &::before {\r\n content: \"\";\r\n position: absolute;\r\n top: 2px;\r\n left: -10px;\r\n transform: rotate(-45deg);\r\n border-width: 10px;\r\n border-style: solid;\r\n border-color: transparent transparent transparent #fff;\r\n }\r\n\r\n &::after {\r\n content: \"小优客服【38号为您服务】\";\r\n width: 200px;\r\n font-size: 0.875rem;\r\n font-family: Source Han Sans CN-Medium, Source Han Sans CN;\r\n font-weight: 500;\r\n color: #8b8c8f;\r\n position: absolute;\r\n left: 0px;\r\n top: -20px;\r\n }\r\n }\r\n }\r\n\r\n &.personal {\r\n animation: animation01 0.3s linear 0.3s forwards;\r\n flex-direction: row-reverse;\r\n\r\n .content::after {\r\n content: \"\";\r\n position: absolute;\r\n top: 2px;\r\n right: -10px;\r\n transform: rotate(-45deg);\r\n border-width: 10px;\r\n border-style: solid;\r\n border-color: transparent transparent #ffffff transparent;\r\n }\r\n }\r\n\r\n @keyframes animation01 {\r\n 0% {\r\n transform: translateY(20px);\r\n opacity: 0;\r\n }\r\n\r\n 100% {\r\n transform: translateY(0px);\r\n opacity: 1;\r\n }\r\n }\r\n }\r\n }\r\n\r\n footer {\r\n height: 30vh;\r\n border: 1px solid #e7e7ea;\r\n\r\n > .el-textarea {\r\n border-color: transparent;\r\n\r\n textarea {\r\n overflow-y: hidden;\r\n // padding-right: 65px;\r\n font-weight: 400;\r\n color: #19191a;\r\n font-size: 1rem;\r\n font-family: Source Han Sans CN-Regular, Source Han Sans CN;\r\n }\r\n\r\n textarea,\r\n textarea:focus {\r\n border-color: transparent;\r\n }\r\n }\r\n\r\n > .el-button {\r\n float: right;\r\n // position: absolute;\r\n // bottom: 40px;\r\n // right: 40px;\r\n z-index: 1;\r\n font-size: 0.875rem;\r\n font-family: Source Han Sans CN-Regular, Source Han Sans CN;\r\n font-weight: 400;\r\n border-radius: 4px;\r\n margin-right: 2vw;\r\n width: 5vw;\r\n min-width: 92px;\r\n }\r\n }\r\n }\r\n\r\n aside {\r\n width: 26vw;\r\n height: calc(100vh - 8vw);\r\n padding: 1vw;\r\n overflow-y: auto;\r\n background-color: #ffffff;\r\n\r\n .el-collapse-item__header {\r\n color: #373a3c;\r\n font-size: 1.5rem;\r\n font-weight: 500;\r\n font-family: Source Han Sans CN-Medium, Source Han Sans CN;\r\n padding: 2rem;\r\n background-color: #f00;\r\n background: linear-gradient(#ffdad4, #ffa9a3);\r\n\r\n &.is-active {\r\n color: #ffffff;\r\n background: linear-gradient(#ff897a, #ff645a);\r\n\r\n i {\r\n color: #ffffff;\r\n }\r\n }\r\n\r\n img {\r\n width: 2.25rem;\r\n height: 2.25rem;\r\n float: left;\r\n margin-left: -0.5rem;\r\n margin-right: 0.5rem;\r\n }\r\n\r\n i {\r\n font-size: 2rem;\r\n color: #ff575f;\r\n font-weight: 900;\r\n }\r\n }\r\n\r\n .el-collapse-item__content {\r\n font-size: 1rem;\r\n font-family: Source Han Sans CN-Regular, Source Han Sans CN;\r\n font-weight: 400;\r\n padding: 20px 20px 20px 40px;\r\n color: #000000;\r\n background-color: #f7f7f9;\r\n\r\n > div {\r\n position: relative;\r\n margin-top: 1rem;\r\n cursor: pointer;\r\n transition: all 0.3s linear;\r\n\r\n &:first-child {\r\n margin-top: 0px;\r\n }\r\n\r\n &::before {\r\n content: \"\";\r\n position: absolute;\r\n top: 5px;\r\n left: -15px;\r\n // transform: rotate(-45deg);\r\n // float: left;\r\n border-width: 10px;\r\n border-style: solid;\r\n border-color: transparent transparent transparent #ffa9a3;\r\n }\r\n\r\n &:hover {\r\n color: #ff575f;\r\n transform: translate(0.5rem);\r\n\r\n &::before {\r\n border-color: transparent transparent transparent #ff575f;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n}\r\n</style>\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","// extracted by mini-css-extract-plugin\nexport {};","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!../../../node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!../../../node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=b15e6fbc&prod&lang=scss&scoped=true&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=b15e6fbc&scoped=true&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=b15e6fbc&prod&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"b15e6fbc\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('el-form',{ref:\"loginForm\",staticClass:\"login-form\",attrs:{\"model\":_vm.loginForm,\"rules\":_vm.loginRules}},[(_vm.loginForm.username == undefined)?_c('div',{staticClass:\"ca-bg-box\"},[_c('div',{staticClass:\"ca-bg-img\"}),_c('div',{staticClass:\"ca-bg-text\"},[_vm._v(\"请插入UKEY证书\")]),_c('img',{staticClass:\"ca-refresh\",attrs:{\"src\":require('comp/YcCA/images/refresh.png'),\"alt\":\"\"},on:{\"click\":_vm.caRead}})]):_c('div',{staticClass:\"ca-bg-info\"},[_c('div',{staticClass:\"ca-bg-text\"},[_vm._v(\" CA名称:\"),_c('span',{staticClass:\"caName\"},[_vm._v(_vm._s(_vm.loginForm.username))])]),_c('img',{staticClass:\"ca-refresh\",attrs:{\"src\":require('comp/YcCA/images/refresh.png'),\"alt\":\"\"},on:{\"click\":_vm.caRead}})]),_c('el-form-item',{attrs:{\"prop\":\"password\"}},[_c('el-input',{attrs:{\"type\":\"password\",\"auto-complete\":\"off\",\"placeholder\":\"密码\",\"show-password\":\"\"},nativeOn:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;return _vm.handleLogin.apply(null, arguments)}},model:{value:(_vm.loginForm.password),callback:function ($$v) {_vm.$set(_vm.loginForm, \"password\", $$v)},expression:\"loginForm.password\"}},[_c('el-image',{staticClass:\"el-input__icon input-icon\",attrs:{\"slot\":\"prefix\",\"src\":require('./images/password.svg')},slot:\"prefix\"})],1)],1),_c('el-form-item',[_c('el-button',{staticClass:\"login-btn\",staticStyle:{\"width\":\"100%\"},attrs:{\"loading\":_vm.loading,\"size\":\"medium\",\"type\":\"primary\"},nativeOn:{\"click\":function($event){$event.preventDefault();return _vm.handleLogin.apply(null, arguments)}}},[(!_vm.loading)?_c('span',[_vm._v(\"登 录\")]):_c('span',[_vm._v(\"登 录 中...\")])])],1),_vm._t(\"default\")],2),_c('el-dialog',{attrs:{\"title\":\"提示\",\"visible\":_vm.dialogVisible.showInfo,\"width\":\"30%\",\"center\":\"\"},on:{\"update:visible\":function($event){return _vm.$set(_vm.dialogVisible, \"showInfo\", $event)}}},[_c('span',{staticStyle:{\"color\":\"red\"}},[_vm._v(\"4444\"+_vm._s(_vm.caInfo.error_text))]),_c('span',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":function($event){_vm.dialogVisible.showInfo = false}}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":function($event){_vm.dialogVisible.showInfo = false}}},[_vm._v(\"确 定\")])],1)])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./index.vue?vue&type=template&id=3a3b9de4&scoped=true&\"","/* eslint-disable no-unused-vars */\r\n/*******************************************************\r\n *\r\n * 函数名称:Base64encode()\r\n * 功 能:对数据进行Base64加密\r\n * 说\t明:函数中将数据使用_utf8_encode()进行编码转换后再加密,保证数据完整\r\n *\r\n **********************************************************/\r\n\r\nvar _keyStr = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\";\r\n\r\nexport function _Base64encode (input) {\r\n\r\n var output = \"\";\r\n var chr1, chr2, chr3, enc1, enc2, enc3, enc4;\r\n var i = 0;\r\n\r\n input = _utf8_encode(input);\r\n\r\n while (i < input.length) {\r\n\r\n chr1 = input.charCodeAt(i++);\r\n chr2 = input.charCodeAt(i++);\r\n chr3 = input.charCodeAt(i++);\r\n\r\n enc1 = chr1 >> 2;\r\n enc2 = ((chr1 & 3) << 4) | (chr2 >> 4);\r\n enc3 = ((chr2 & 15) << 2) | (chr3 >> 6);\r\n enc4 = chr3 & 63;\r\n\r\n if (isNaN(chr2)) {\r\n enc3 = enc4 = 64;\r\n } else if (isNaN(chr3)) {\r\n enc4 = 64;\r\n }\r\n output = output + _keyStr.charAt(enc1) + _keyStr.charAt(enc2) + _keyStr.charAt(enc3) + _keyStr.charAt(enc4);\r\n }\r\n return output;\r\n}\r\n\r\n/*******************************************************\r\n *\r\n * 函数名称:Base64decode()\r\n * 功 能:对数据进行Base64解密\r\n * 说\t明:函数中将数据使用_utf8_decode()将解密后的数据编码,保证数据完整\r\n *\r\n **********************************************************/\r\nfunction _Base64decode (input) {\r\n var output = \"\";\r\n var chr1, chr2, chr3;\r\n var enc1, enc2, enc3, enc4;\r\n var i = 0;\r\n\r\n //input = input.replace(/[^A-Za-z0-9\\+\\/\\=]/g, \"\");\r\n // eslint-disable-next-line no-useless-escape\r\n input = input.replace(/[^A-Za-z0-9\\+\\/\\=]/g, \"\");\r\n while (i < input.length) {\r\n\r\n enc1 = _keyStr.indexOf(input.charAt(i++));\r\n enc2 = _keyStr.indexOf(input.charAt(i++));\r\n enc3 = _keyStr.indexOf(input.charAt(i++));\r\n enc4 = _keyStr.indexOf(input.charAt(i++));\r\n\r\n chr1 = (enc1 << 2) | (enc2 >> 4);\r\n chr2 = ((enc2 & 15) << 4) | (enc3 >> 2);\r\n chr3 = ((enc3 & 3) << 6) | enc4;\r\n\r\n output = output + String.fromCharCode(chr1);\r\n\r\n if (enc3 != 64) {\r\n output = output + String.fromCharCode(chr2);\r\n }\r\n if (enc4 != 64) {\r\n output = output + String.fromCharCode(chr3);\r\n }\r\n\r\n }\r\n\r\n output = _utf8_decode(output);\r\n\r\n return output;\r\n}\r\n\r\n/*******************************************************\r\n *\r\n * 函数名称:_utf8_encode()\r\n * 功 能:将数据进行utf8编码\r\n * 说\t明:\r\n *\r\n **********************************************************/\r\nfunction _utf8_encode (in_string) {\r\n var string = \"\" + in_string;\r\n string = string.replace(/\\r\\n/g, \"\\n\");\r\n var utftext = \"\";\r\n\r\n for (var n = 0; n < string.length; n++) {\r\n\r\n var c = string.charCodeAt(n);\r\n\r\n if (c < 128) {\r\n utftext += String.fromCharCode(c);\r\n } else if ((c > 127) && (c < 2048)) {\r\n utftext += String.fromCharCode((c >> 6) | 192);\r\n utftext += String.fromCharCode((c & 63) | 128);\r\n } else {\r\n utftext += String.fromCharCode((c >> 12) | 224);\r\n utftext += String.fromCharCode(((c >> 6) & 63) | 128);\r\n utftext += String.fromCharCode((c & 63) | 128);\r\n }\r\n }\r\n return utftext;\r\n}\r\n\r\n/*******************************************************\r\n *\r\n * 函数名称:_utf8_decode()\r\n * 功 能:将数据进行utf8解码\r\n * 说\t明:\r\n *\r\n **********************************************************/\r\nfunction _utf8_decode (utftext) {\r\n var string = \"\";\r\n var i = 0;\r\n var c1 = 0;\r\n var c2 = 0;\r\n var c3 = 0;\r\n var c = c1 = c2 = 0;\r\n\r\n while (i < utftext.length) {\r\n\r\n c = utftext.charCodeAt(i);\r\n\r\n if (c < 128) {\r\n string += String.fromCharCode(c);\r\n i++;\r\n } else if ((c > 191) && (c < 224)) {\r\n c2 = utftext.charCodeAt(i + 1);\r\n string += String.fromCharCode(((c & 31) << 6) | (c2 & 63));\r\n i += 2;\r\n } else {\r\n c2 = utftext.charCodeAt(i + 1);\r\n c3 = utftext.charCodeAt(i + 2);\r\n string += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63));\r\n i += 3;\r\n }\r\n }\r\n return string;\r\n}\r\n","/**\r\n * @name mTokenPlugin集成代码\r\n * @author Akay\r\n * @version 0.7.12\r\n * @date 2020.07.21\r\n *\r\n * @description\r\n *ver 0.7.12 2020.12.21\r\n * 1. 新增操作系统判断,根据不同的系统加载不同的配置\r\n *\r\n *ver 0.7.11 2020.07.21\r\n *\t1. 解决Https的问题\r\n *\r\n * ver 0.7.10 2020.04.04\r\n * 1. 新增获取设备序号\r\n * 2. 支持多Key\r\n *\r\n * ver 0.7.9 2020.01.08\r\n * 1. 支持SJK1137型号\r\n *\r\n * ver 0.7.8 2019.10.23\r\n * 1. 新增UKey适配\r\n *\r\n * ver 0.7.4 2019.09.18\r\n * 1. 新增证书生效,失效时间\r\n *\r\n * ver 0.7.3 2019.08.19\r\n * 1. 获取证书使用者信息\r\n *\r\n * ver 0.7.2 2019.08.08\r\n * 1. 新增远程解锁接口\r\n *\r\n * ver 0.7.1 2019.07.17\r\n * TODO: 未安装组件时,判断组件是否安装(暂定,未解决)\r\n *\r\n * ver 0.7.0 2019.07.04\r\n * 1. 更新核心文件,解决多Key插入问题\r\n * 2. Ukey目前仅支持国密证书\r\n *\r\n * ver 0.6.3 2019.06.24\r\n * 1. 修复部分Bug\r\n *\r\n * ver 0.6.1 2019.06.24\r\n * 1. 支持数字信封数据解密接口\r\n * 2. 修复加密接口错误部分。\r\n *\r\n * ver 0.6.0 2019.06.20\r\n * 1. 支持数字信封数据加密接口\r\n * 2. 暂不支持多Ukey\r\n *\r\n * ver 0.5.1 2019.06.19\r\n * 1. 修正新Ukey引入导致的Bug\r\n *\r\n * ver 0.5 2019.06.18\r\n * 1. 适配SJK1137型号Ukey\r\n *\r\n * ver 0.4 2019.03.16\r\n * 1. 新增方法 枚举Ukey获取证书“G项信息”列表\r\n * 2. 新增方法 将“证书G项信息”转化为“证书名称”方法\r\n *\r\n * ver 0.3 2018.12.10\r\n * 1. 新增修改Ukey密码的方法\r\n *\r\n * ver 0.2 2018.09.26\r\n * 1. 新增获取签名证书SN号的方法\r\n * 2. 修正部分Bug\r\n *\r\n * ver 0.1 2018.09.21\r\n * 1. 搭建初步框架\r\n * 2. 完成签名功能\r\n *\r\n */\r\nimport { mToken } from \"comp/YcCA/mTokenPlugin/mToken\";\r\nimport { _Base64encode } from \"comp/YcCA/mTokenPlugin/base64\";\r\nexport function hunca_mToken_core () {\r\n\r\n var token = new mToken(\"mTokenPlugin\");\r\n // eslint-disable-next-line no-unused-vars\r\n var certInfoList = null;\r\n // eslint-disable-next-line no-unused-vars\r\n var singleKey = 0;\r\n var libraryNameList = null;\r\n\r\n if ((navigator.platform == \"Win32\") || (navigator.platform == \"Windows\")) {\r\n libraryNameList = Array(\"GM3000\", \"HT\", \"SJK1137\");\r\n } else {\r\n //libraryNameList = Array(\"GM3000\"); //国产操作系统支持GM3000型号\r\n libraryNameList = Array(\"HT\"); //国产操作系统支持海泰型号\r\n }\r\n /**\r\n * 错误信息\r\n */\r\n var LAST_ERRORSTRING = \"\";\r\n\r\n /**\r\n * 证书用途\r\n */\r\n var KEY_SPEC_TYPE_ENCRYPT = 0;\r\n var KEY_SPEC_TYPE_SIGN = 1;\r\n\r\n /**\r\n * 摘要算法\r\n */\r\n var SGD_SM3 = 1;\r\n // eslint-disable-next-line no-unused-vars\r\n var SGD_SHA1 = 2;\r\n\r\n /**\r\n * 加密算法\r\n */\r\n //分组加密算法标识\r\n // eslint-disable-next-line no-unused-vars\r\n let SGD_SM1_ECB = 0x00000101;\r\n // eslint-disable-next-line no-unused-vars\r\n let SGD_SM1_CBC = 0x00000102;\r\n // eslint-disable-next-line no-unused-vars\r\n let SGD_SM1_CFB = 0x00000104;\r\n // eslint-disable-next-line no-unused-vars\r\n let SGD_SM1_OFB = 0x00000108;\r\n // eslint-disable-next-line no-unused-vars\r\n let SGD_SM1_MAC = 0x00000110;\r\n let SGD_SM4_ECB = 0x00000401;\r\n // eslint-disable-next-line no-unused-vars\r\n let SGD_SM4_CBC = 0x00000402;\r\n // eslint-disable-next-line no-unused-vars\r\n let SGD_SM4_CFB = 0x00000404;\r\n // eslint-disable-next-line no-unused-vars\r\n let SGD_SM4_OFB = 0x00000408;\r\n // eslint-disable-next-line no-unused-vars\r\n let SGD_SM4_MAC = 0x00000410;\r\n\r\n\r\n /**\r\n * 用户ID(固定)\r\n */\r\n var USER_ID = \"1234567812345678\";\r\n\r\n\r\n /**\r\n * 错误信息提示列表\r\n */\r\n var ERROR_MESSAGE_NOT_LOADLIBRARY = \"控件加载失败,错误码:\";\r\n var ERROR_MESSAGE_NOT_FIND_UKEY = \"未找到UKey!\\n1.请确认是否安装最新驱动!\\n2.计算机是否插入湖南CA UKey!\";\r\n // eslint-disable-next-line no-unused-vars\r\n var ERROR_MSSSAGE_FIND_MORE_UKEY = \"计算机插入多个UKey,请拔除多余“湖南CA UKey”!\";\r\n var ERROR_MESSAGE_NOT_INSTANCE_DEVICE = \"USBKey实例化失败,请确认此UKey是否插入计算机!\\n点击‘刷新’按钮,更新设备列表。\\n错误码:\";\r\n var ERROR_MESSAGE_USERPIN_LENGTH = \"Ukey密码必须为4~16位!\";\r\n var ERROR_MESSAGE_USERPIN_IS_ERROR = \"UKey密码错误\";\r\n var ERROR_MESSAGE_USERPIN_CHANGE_ERROR = \"UKey密码修改失败\";\r\n var ERROR_MESSAGE_KEY_NOT_EXIT = \"UKey不存在,请确认此UKey是否插入计算机,并点击'刷新'按钮,更新设备列表!\";\r\n var ERROR_MESSAGE_USERNAME_IS_NULL = \"请点击‘刷新’按钮,更新设备列表并选择相应设备!\";\r\n var ERROR_MESSAGE_KEY_EXPORT_CERT = \"证书获取失败,请加检测Key中是否存在证书!\";\r\n var ERROR_MESSAGE_SET_DIGEST_METHOD_ERROR = \"设置摘要算法失败,请重新刷新浏览器!\";\r\n var ERROR_MESSAGE_SET_USERID_ERROR = \"设置用户ID失败,请重新刷新浏览器\";\r\n var ERROR_MESSAGE_SIGN_ORIGINALDATA_IS_NULL = \"签名失败,待签名原文不能为空\";\r\n var ERROR_MESSAGE_SIGN_ERROR = \"签名失败,返回错误码:\";\r\n var ERROR_MESSAGE_USERNAMEGN_IS_NULL = \"请点击‘刷新’按钮,更新设备列表并选择相应设备!\";\r\n var ERROR_MESSAGE_USERNAMEGN_TO_USERNAME_ERROR = \"证书G项信息转化证书名称失败,请点击“刷新”按钮!\";\r\n var ERROR_MESSAGE_KEY_LIBRAY = \"加载国密库失败!\";\r\n var ERROR_MESSAGE_ENCRYPT_DATA_IS_NULL = \"加密失败:待加密原文不能为空!\";\r\n var ERROR_MESSAGE_DECRYPT_DATA_IS_NULL = \"解密失败:待解密密文不能为空!\";\r\n var ERROR_MESSAGE_DECRYPT_DATA_IS_ERROR = \"解密失败:请确认密文是否完整!\\n解密所采用的Ukey是否为加密时的Ukey!\";\r\n var ERROR_MESSAGE_GET_REMOTEUNLOCKREQUEST_FAIL = \"申请解锁请求失败!\";\r\n var ERROR_MESSAGE_GET_REMOTEUNLOCKREQUEST_NOT_SUPPORT = \"此型号Ukey不支持解锁!\";\r\n var ERROR_MESSAGE_REMOTE_UNLOCK_FAIL = \"Ukey解锁失败!\";\r\n\r\n /**\r\n * 私有变量\r\n */\r\n var tokenInfoList = null;\r\n\r\n /**\r\n * 私有变量\r\n */\r\n var signResultSignData = null;\r\n var signResultCert = null;\r\n\r\n /**\r\n * 证书信息\r\n */\r\n var certSn = null; //证书Sn\r\n var cert_subject_GN = null; //证书Gn\r\n var cert_subject = null; //证书使用者\r\n var cert_validTime = null; //证书失效时间\r\n var cert_notbeforetime = null; //证书生效时间\r\n\r\n /**\r\n * 返回错误信息\r\n */\r\n this.Hunca_GetLastError = function () {\r\n return LAST_ERRORSTRING;\r\n }\r\n\r\n /**\r\n * 获取证书列表\r\n */\r\n this.Hunca_GetUserList = function () {\r\n var deviceArray = null;\r\n var containerName = null;\r\n var userName = null;\r\n var tmpInfo = null;\r\n\r\n signResultCert = null;\r\n signResultSignData = null;\r\n tokenInfoList = new Array(); //清空信息\r\n\r\n for (var index = 0; index < libraryNameList.length; index++) {\r\n var libraryName = libraryNameList[index];\r\n if (!SOF_LoadLibrary(libraryName)) {\r\n continue;\r\n }\r\n\r\n deviceArray = SOF_EnumDevice();\r\n if (null == deviceArray) {\r\n continue;\r\n }\r\n\r\n for (var i = 0; i < deviceArray.length; i++) {\r\n var tokenInfo = new Object();\r\n //实例化设备失败\r\n if (!SOF_GetDeviceInstance(deviceArray[i])) {\r\n break;\r\n }\r\n\r\n //获取设备信息\r\n tmpInfo = SOF_GetUserList();\r\n if (null != tmpInfo || tmpInfo.length != 0) {\r\n containerName = tmpInfo[0][1];\r\n userName = tmpInfo[0][0];\r\n\r\n tokenInfo.libraryName = libraryName; //Ukey型号\r\n tokenInfo.serial = deviceArray[i]; //设备序列号\r\n tokenInfo.userName = userName; //证书名称\r\n tokenInfo.containerName = containerName; //应用名称\r\n\r\n tokenInfoList.push(tokenInfo);\r\n } else {\r\n continue;\r\n }\r\n SOF_LogOut();\r\n }\r\n }\r\n\r\n //返回证书信息\r\n var userNameList = new Array();\r\n for (let i = 0; i < tokenInfoList.length; i++) {\r\n userNameList[i] = tokenInfoList[i].userName;\r\n }\r\n\r\n if (userNameList.length == 0) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_NOT_FIND_UKEY;\r\n return \"\";\r\n }\r\n\r\n return userNameList;\r\n }\r\n\r\n /**\r\n * 获取证书G项信息列表\r\n */\r\n this.Hunca_GetUserListGN = function Hunca_GetUserListGN () {\r\n var deviceArray = null;\r\n var containerName = null;\r\n var userName = null;\r\n var tmpInfo = null;\r\n var certB64 = null;\r\n var deviceSerial = \"\";\r\n\r\n // eslint-disable-next-line no-unused-vars\r\n var signResultCert = null;\r\n // eslint-disable-next-line no-unused-vars\r\n var signResultSignData = null;\r\n tokenInfoList = new Array(); //清空信息\r\n var LAST_ERRORSTRING = \"\";\r\n\r\n for (var index = 0; index < libraryNameList.length; index++) {\r\n var libraryName = libraryNameList[index];\r\n //加载控件\r\n if (!SOF_LoadLibrary(libraryName)) {\r\n continue;\r\n }\r\n\r\n deviceArray = SOF_EnumDevice();\r\n if (null == deviceArray) {\r\n continue;\r\n }\r\n\r\n for (var i = 0; i < deviceArray.length; i++) {\r\n cert_subject_GN = null;\r\n certSn = null;\r\n deviceSerial = deviceArray[i];\r\n\r\n var tokenInfo = new Object();\r\n\r\n //实例化设备失败\r\n if (!SOF_GetDeviceInstance(deviceSerial)) {\r\n break;\r\n }\r\n\r\n //获取设备信息\r\n tmpInfo = SOF_GetUserList();\r\n if (null != tmpInfo || tmpInfo.length != 0) {\r\n containerName = tmpInfo[0][1];\r\n userName = tmpInfo[0][0];\r\n\r\n tokenInfo.libraryName = libraryName;\r\n tokenInfo.serial = deviceArray[i]; //设备序列号\r\n tokenInfo.userName = userName; //证书名称\r\n tokenInfo.containerName = containerName;\r\n } else {\r\n continue;\r\n }\r\n\r\n //获取证书G项信息\r\n certB64 = SOF_ExportUserCert(tokenInfo.containerName, KEY_SPEC_TYPE_SIGN);\r\n if (SOF_GetCertInfo(certB64)) {\r\n tokenInfo.subjectGN = cert_subject_GN; //设备证书G项目;\r\n } else {\r\n continue;\r\n }\r\n\r\n tokenInfoList.push(tokenInfo);\r\n SOF_LogOut();\r\n }\r\n }\r\n\r\n //返回证书G项信息\r\n var userNameGNList = new Array();\r\n for (let i = 0; i < tokenInfoList.length; i++) {\r\n userNameGNList[i] = tokenInfoList[i].subjectGN;\r\n }\r\n\r\n if (userNameGNList.length == 0) {\r\n // eslint-disable-next-line no-unused-vars\r\n LAST_ERRORSTRING = ERROR_MESSAGE_NOT_FIND_UKEY;\r\n return \"\";\r\n }\r\n\r\n /*****\r\n if (userNameGNList.length > 1){\r\n LAST_ERRORSTRING = ERROR_MSSSAGE_FIND_MORE_UKEY;\r\n return \"\";\r\n }\r\n ****/\r\n return userNameGNList;\r\n }\r\n\r\n /**\r\n * 将证书G项信息转化为证书名称\r\n */\r\n this.Hunca_userNameGNToUserName = function (userNameGN) {\r\n var userName = null;\r\n LAST_ERRORSTRING = \"\";\r\n if (null == userNameGN || userNameGN.length == 0) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_USERNAMEGN_IS_NULL;\r\n }\r\n\r\n for (var i = 0; i < tokenInfoList.length; i++) {\r\n if (userNameGN == tokenInfoList[i].subjectGN) {\r\n userName = tokenInfoList[i].userName;\r\n break;\r\n }\r\n }\r\n\r\n if (null == userName || userName.length == 0) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_USERNAMEGN_TO_USERNAME_ERROR;\r\n return null;\r\n }\r\n return userName;\r\n }\r\n\r\n this.Hunca_GenRemoteUnblockRequest = function (userName) {\r\n var tokenInfo = null; //Ukey设备信息\r\n var tempTokenInfo = null; //临时设备信息,循环遍历用\r\n var request = \"\";\r\n\r\n LAST_ERRORSTRING = \"\";\r\n\r\n //设备名称为空\r\n if (null == userName || userName.length == null) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_USERNAME_IS_NULL;\r\n return false;\r\n }\r\n\r\n //查找匹配的设备序列号\r\n if (null == tokenInfoList || tokenInfoList.length == 0) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_NOT_FIND_UKEY;\r\n return false;\r\n }\r\n\r\n //索引设备编号\r\n for (var i = 0; i < tokenInfoList.length; i++) {\r\n tempTokenInfo = tokenInfoList[i];\r\n if (tempTokenInfo.userName == userName) {\r\n tokenInfo = tempTokenInfo;\r\n break;\r\n }\r\n }\r\n\r\n //如果所选择的设备不存在\r\n if (null == tokenInfo) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_KEY_NOT_EXIT;\r\n return false;\r\n }\r\n\r\n //判断设备是否支持远程解锁\r\n if (tokenInfo.libraryName != \"GM3000\") {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_GET_REMOTEUNLOCKREQUEST_NOT_SUPPORT;\r\n return false;\r\n }\r\n\r\n //加载库文件\r\n if (!SOF_LoadLibrary(tokenInfo.libraryName)) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_KEY_LIBRAY;\r\n return false;\r\n }\r\n\r\n //实例化设备\r\n if (!SOF_GetDeviceInstance(tokenInfo.serial)) {\r\n return false;\r\n }\r\n\r\n //枚举容器,并选择第一个容器\r\n if (SOF_GetUserList() == null) {\r\n return false;\r\n }\r\n\r\n //远程解锁\r\n request = SOF_GenRemoteUnblockRequest()\r\n\r\n return request;\r\n }\r\n\r\n this.HUnca_GetDeviceNumber = function (userName) {\r\n var m_devNumber = null;\r\n\r\n //设备名称为空\r\n if (null == userName || userName.length == null) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_USERNAME_IS_NULL;\r\n return false;\r\n }\r\n\r\n //查找匹配的设备序列号\r\n if (null == tokenInfoList || tokenInfoList.length == 0) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_NOT_FIND_UKEY;\r\n return false;\r\n }\r\n\r\n //索引设备编号\r\n for (var i = 0; i < tokenInfoList.length; i++) {\r\n let tempTokenInfo = tokenInfoList[i];\r\n if (tempTokenInfo.userName == userName) {\r\n // eslint-disable-next-line no-undef\r\n tokenInfo = tempTokenInfo;\r\n break;\r\n }\r\n }\r\n\r\n //如果所选择的设备不存在\r\n // eslint-disable-next-line no-undef\r\n if (null == tokenInfo) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_KEY_NOT_EXIT;\r\n return false;\r\n }\r\n\r\n //加载库文件\r\n // eslint-disable-next-line no-undef\r\n if (!SOF_LoadLibrary(tokenInfo.libraryName)) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_KEY_LIBRAY;\r\n return false;\r\n }\r\n\r\n //实例化设备\r\n // eslint-disable-next-line no-undef\r\n if (!SOF_GetDeviceInstance(tokenInfo.serial)) {\r\n return false;\r\n }\r\n m_devNumber = SOF_GetDeviceNumber();\r\n\r\n return m_devNumber + \"\";\r\n }\r\n\r\n this.Hunca_RemoteUnlockPIN = function (userName, response) {\r\n var tokenInfo = null; //Ukey设备信息\r\n var tempTokenInfo = null; //临时设备信息,循环遍历用\r\n var result = false;\r\n\r\n LAST_ERRORSTRING = \"\";\r\n\r\n //设备名称为空\r\n if (null == userName || userName.length == null) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_USERNAME_IS_NULL;\r\n return false;\r\n }\r\n\r\n //查找匹配的设备序列号\r\n if (null == tokenInfoList || tokenInfoList.length == 0) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_NOT_FIND_UKEY;\r\n return false;\r\n }\r\n\r\n //索引设备编号\r\n for (var i = 0; i < tokenInfoList.length; i++) {\r\n tempTokenInfo = tokenInfoList[i];\r\n if (tempTokenInfo.userName == userName) {\r\n tokenInfo = tempTokenInfo;\r\n break;\r\n }\r\n }\r\n\r\n //如果所选择的设备不存在\r\n if (null == tokenInfo) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_KEY_NOT_EXIT;\r\n return false;\r\n }\r\n\r\n //判断设备是否支持远程解锁\r\n if (tokenInfo.libraryName != \"GM3000\") {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_GET_REMOTEUNLOCKREQUEST_NOT_SUPPORT;\r\n return false;\r\n }\r\n\r\n //加载库文件\r\n if (!SOF_LoadLibrary(tokenInfo.libraryName)) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_KEY_LIBRAY;\r\n return false;\r\n }\r\n\r\n //实例化设备\r\n if (!SOF_GetDeviceInstance(tokenInfo.serial)) {\r\n return false;\r\n }\r\n\r\n //枚举容器,并选择第一个容器\r\n if (SOF_GetUserList() == null) {\r\n return false;\r\n }\r\n\r\n //远程解锁\r\n result = SOF_RemoteUnlockPIN(response)\r\n return result;\r\n }\r\n\r\n /**\r\n * 修改Ukey密码\r\n */\r\n this.Hunca_ChangeUserPin = function (userName, oldUserPin, newUserPin) {\r\n var tokenInfo = null; //Ukey设备信息\r\n var tempTokenInfo = null; //临时设备信息,循环遍历用\r\n LAST_ERRORSTRING = \"\";\r\n\r\n //设备名称为空\r\n if (null == userName || userName.length == null) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_USERNAME_IS_NULL;\r\n return false;\r\n }\r\n\r\n //查找匹配的设备序列号\r\n if (null == tokenInfoList || tokenInfoList.length == 0) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_NOT_FIND_UKEY;\r\n return false;\r\n }\r\n\r\n //索引设备编号\r\n for (var i = 0; i < tokenInfoList.length; i++) {\r\n tempTokenInfo = tokenInfoList[i];\r\n if (tempTokenInfo.userName == userName) {\r\n tokenInfo = tempTokenInfo;\r\n break;\r\n }\r\n }\r\n\r\n //如果所选择的设备不存在\r\n if (null == tokenInfo) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_KEY_NOT_EXIT;\r\n return false;\r\n }\r\n\r\n //加载库文件\r\n if (!SOF_LoadLibrary(tokenInfo.libraryName)) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_KEY_LIBRAY;\r\n }\r\n\r\n //实例化设备\r\n if (!SOF_GetDeviceInstance(tokenInfo.serial)) {\r\n return false;\r\n }\r\n\r\n //修改密码\r\n if (!SOF_ChangeUserPin(oldUserPin, newUserPin)) {\r\n return false;\r\n }\r\n\r\n SOF_LogOut();\r\n return true;\r\n }\r\n\r\n /**\r\n * 对数据进行签名,并返回签名是否成功\r\n * @param {string} originalData 待签名原文\r\n * @param {string} userName Ukey用户名称\r\n * @param {string} userPin Ukey密码\r\n */\r\n this.Hunca_PKCS1 = function (originalData, userName, userPin) {\r\n // eslint-disable-next-line no-unused-vars\r\n var libraryName = null;\r\n var tokenInfo = null; //Ukey设备信息\r\n var tempTokenInfo = null; //临时设备信息,循环遍历用\r\n var certBase64 = null; //签名证书值\r\n\r\n var LAST_ERRORSTRING = \"\";\r\n // eslint-disable-next-line no-unused-vars\r\n var signResultInfo = null;\r\n // eslint-disable-next-line no-unused-vars\r\n var certInfo = new Object();\r\n //设备名称为空\r\n if (null == userName || userName.length == null) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_USERNAME_IS_NULL;\r\n return false;\r\n }\r\n\r\n //查找匹配的设备序列号\r\n if (null == tokenInfoList || tokenInfoList.length == 0) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_NOT_FIND_UKEY;\r\n return false;\r\n }\r\n\r\n //索引设备编号\r\n for (var i = 0; i < tokenInfoList.length; i++) {\r\n tempTokenInfo = tokenInfoList[i];\r\n if (tempTokenInfo.userName == userName) {\r\n tokenInfo = tempTokenInfo;\r\n break;\r\n }\r\n }\r\n\r\n //如果所选择的设备不存在\r\n if (null == tokenInfo) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_KEY_NOT_EXIT;\r\n return false;\r\n }\r\n\r\n //加载库文件\r\n if (!SOF_LoadLibrary(tokenInfo.libraryName)) {\r\n // eslint-disable-next-line no-unused-vars\r\n LAST_ERRORSTRING = ERROR_MESSAGE_KEY_LIBRAY;\r\n }\r\n\r\n //实例化设备\r\n if (!SOF_GetDeviceInstance(tokenInfo.serial)) {\r\n return false;\r\n }\r\n\r\n //登陆应用\r\n if (!SOF_Login(userPin)) {\r\n return false;\r\n }\r\n\r\n //获取签名证书Base64\r\n certBase64 = SOF_ExportUserCert(tokenInfo.containerName, KEY_SPEC_TYPE_SIGN);\r\n if (null == certBase64) {\r\n return false;\r\n }\r\n\r\n //设置摘要算法\r\n if (!SOF_SetDigestMethod(SGD_SM3)) {\r\n return false;\r\n }\r\n\r\n if (!SOF_SetUserID()) {\r\n return false;\r\n }\r\n\r\n //进行签名\r\n if (!SOF_SignData(tokenInfo.containerName, SGD_SM3, originalData, certBase64)) {\r\n return false;\r\n }\r\n\r\n //获取证书信息\r\n if (!SOF_GetCertInfo(certBase64)) {\r\n return false;\r\n }\r\n\r\n SOF_LogOut();\r\n return true;\r\n }\r\n\r\n /**\r\n * 获取签名结果\r\n */\r\n this.Hunca_GetSignData = function () {\r\n return signResultSignData;\r\n }\r\n\r\n /**\r\n * 获取签名证书\r\n */\r\n this.Hunca_GetSignCert = function () {\r\n return signResultCert;\r\n }\r\n\r\n this.Hunca_GetSignCertSn = function () {\r\n return certSn\r\n }\r\n\r\n this.Hunca_GetSignCertSubject = function () {\r\n return cert_subject;\r\n }\r\n\r\n this.Hunca_GetValidTime = function () {\r\n return cert_validTime;\r\n }\r\n\r\n this.HUnca_GetNotBeforeTime = function () {\r\n return cert_notbeforetime;\r\n }\r\n /**\r\n * 处理设备中签名证书信息\r\n * @param {*} userName\r\n */\r\n this.Hunca_DealCertInfo = function (userName) {\r\n var tokenInfo = null; //Ukey设备信息\r\n var tempTokenInfo = null; //临时设备信息,循环遍历用\r\n var certBase64 = null; //签名证书值\r\n\r\n LAST_ERRORSTRING = \"\";\r\n // eslint-disable-next-line no-undef\r\n signResultInfo = null;\r\n // eslint-disable-next-line no-undef\r\n certInfo = new Object();\r\n //设备名称为空\r\n if (null == userName || userName.length == null) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_USERNAME_IS_NULL;\r\n return false;\r\n }\r\n\r\n //查找匹配的设备序列号\r\n if (null == tokenInfoList || tokenInfoList.length == 0) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_NOT_FIND_UKEY;\r\n return false;\r\n }\r\n\r\n //索引设备编号\r\n for (var i = 0; i < tokenInfoList.length; i++) {\r\n tempTokenInfo = tokenInfoList[i];\r\n if (tempTokenInfo.userName == userName) {\r\n tokenInfo = tempTokenInfo;\r\n break;\r\n }\r\n }\r\n\r\n //如果所选择的设备不存在\r\n if (null == tokenInfo) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_KEY_NOT_EXIT;\r\n return false;\r\n }\r\n\r\n if (!SOF_LoadLibrary(tokenInfo.libraryName)) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_KEY_LIBRAY;\r\n return false;\r\n }\r\n\r\n //实例化设备\r\n if (!SOF_GetDeviceInstance(tokenInfo.serial)) {\r\n return false;\r\n }\r\n\r\n //导出证书\r\n certBase64 = SOF_ExportUserCert(tokenInfo.containerName, KEY_SPEC_TYPE_SIGN);\r\n if (null == certBase64 || certBase64.length == 0) {\r\n return false;\r\n }\r\n\r\n SOF_GetCertInfo(certBase64);\r\n SOF_LogOut();\r\n return true;\r\n }\r\n\r\n /**\r\n * 对数据进行数字信封加密\r\n * @param {string} inData 待加密原文\r\n * @param {string} userName Ukey用户名称\r\n * @param {string} EncryptMethod 对称加密方式\r\n * @param {string} EncryptIV 加密IV值\r\n * @returns {string} \"\",加密失败;非空,加密成功\r\n */\r\n this.Hunca_EncryptDataPKCS7 = function (inData, userName, EncryptMethod, EncryptIV) {\r\n var tokenInfo = null; //Ukey设备信息\r\n var tempTokenInfo = null; //临时设备信息,循环遍历用\r\n var certBase64 = null; //签名证书值\r\n var m_EncryptMethod = \"\",\r\n m_EncryptIV = \"\";\r\n\r\n var LAST_ERRORSTRING = \"\";\r\n // eslint-disable-next-line no-unused-vars\r\n var signResultInfo = null;\r\n // eslint-disable-next-line no-unused-vars\r\n var certInfo = new Object();\r\n\r\n\r\n //设备名称为空\r\n if (null == userName || userName.length == null) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_USERNAME_IS_NULL;\r\n return \"\";\r\n }\r\n\r\n //查找匹配的设备序列号\r\n if (null == tokenInfoList || tokenInfoList.length == 0) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_NOT_FIND_UKEY;\r\n return \"\";\r\n }\r\n\r\n //索引设备编号\r\n for (var i = 0; i < tokenInfoList.length; i++) {\r\n tempTokenInfo = tokenInfoList[i];\r\n if (tempTokenInfo.userName == userName) {\r\n tokenInfo = tempTokenInfo;\r\n break;\r\n }\r\n }\r\n\r\n //如果所选择的设备不存在\r\n if (null == tokenInfo) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_KEY_NOT_EXIT;\r\n return \"\";\r\n }\r\n\r\n //加载链接库\r\n if (!SOF_LoadLibrary(tokenInfo.libraryName)) {\r\n // eslint-disable-next-line no-unused-vars\r\n LAST_ERRORSTRING = ERROR_MESSAGE_KEY_LIBRAY;\r\n return \"\";\r\n }\r\n\r\n //实例化设备\r\n if (!SOF_GetDeviceInstance(tokenInfo.serial)) {\r\n return \"\";\r\n }\r\n\r\n //导出加密证书\r\n certBase64 = SOF_ExportUserCert(tokenInfo.containerName, KEY_SPEC_TYPE_ENCRYPT);\r\n if (null == certBase64 || certBase64.length == 0) {\r\n return \"\";\r\n }\r\n\r\n //设置加密方式\r\n\r\n m_EncryptMethod = EncryptMethod + \"\";\r\n m_EncryptIV = EncryptIV + \"\";\r\n\r\n if (m_EncryptMethod == null || m_EncryptMethod.length == 0) {\r\n m_EncryptMethod = SGD_SM4_ECB;\r\n m_EncryptIV = \"\";\r\n }\r\n\r\n if (!SOF_SetEncryptMethodAndIV(m_EncryptMethod, m_EncryptIV)) {\r\n return \"\";\r\n }\r\n\r\n //对数据进行加密\r\n // eslint-disable-next-line no-undef\r\n encryptData = SOF_EncryptDataPKCS7(certBase64, inData);\r\n\r\n SOF_LogOut();\r\n\r\n // eslint-disable-next-line no-undef\r\n return encryptData;\r\n }\r\n\r\n /**\r\n * 对密文进行数字信封解密操作\r\n * @param {string} encryptData 待解密密文\r\n * @param {string} userName Ukey用户名称\r\n * @param {string} userPin Ukey用户PIN码\r\n * @param {string} EncryptMethod 对称加密方式\r\n * @param {string} EncryptIV 加密IV值\r\n * @returns {string} \"\",加密失败;非空,加密成功\r\n */\r\n this.Hunca_DecryptDataPKCS7 = function (encryptData, userName, userPin, EncryptMethod, EncryptIV) {\r\n var tokenInfo = null; //Ukey设备信息\r\n var tempTokenInfo = null; //临时设备信息,循环遍历用\r\n var m_EncryptMethod = \"\",\r\n m_EncryptIV = \"\";\r\n var m_EncryptData = \"\";\r\n var m_DecryptData = \"\";\r\n var resData = \"\";\r\n\r\n var LAST_ERRORSTRING = \"\";\r\n // eslint-disable-next-line no-unused-vars\r\n var signResultInfo = null;\r\n // eslint-disable-next-line no-unused-vars\r\n var certInfo = new Object();\r\n\r\n\r\n m_EncryptData = \"\" + encryptData;\r\n //设备名称为空\r\n if (null == userName || userName.length == null) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_USERNAME_IS_NULL;\r\n return \"\";\r\n }\r\n\r\n //查找匹配的设备序列号\r\n if (null == tokenInfoList || tokenInfoList.length == 0) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_NOT_FIND_UKEY;\r\n return \"\";\r\n }\r\n\r\n //索引设备编号\r\n for (var i = 0; i < tokenInfoList.length; i++) {\r\n tempTokenInfo = tokenInfoList[i];\r\n if (tempTokenInfo.userName == userName) {\r\n tokenInfo = tempTokenInfo;\r\n break;\r\n }\r\n }\r\n\r\n //如果所选择的设备不存在\r\n if (null == tokenInfo) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_KEY_NOT_EXIT;\r\n return \"\";\r\n }\r\n\r\n //加载链接库\r\n if (!SOF_LoadLibrary(tokenInfo.libraryName)) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_KEY_LIBRAY;\r\n return \"\";\r\n }\r\n\r\n //实例化设备\r\n if (!SOF_GetDeviceInstance(tokenInfo.serial)) {\r\n return \"\";\r\n }\r\n\r\n //登陆应用\r\n if (!SOF_Login(userPin)) {\r\n return \"\";\r\n }\r\n\r\n //设置加密方式\r\n m_EncryptMethod = EncryptMethod + \"\";\r\n m_EncryptIV = EncryptIV + \"\";\r\n if (m_EncryptMethod == null || m_EncryptMethod.length == 0) {\r\n m_EncryptMethod = SGD_SM4_ECB;\r\n m_EncryptIV = \"\";\r\n }\r\n\r\n if (!SOF_SetEncryptMethodAndIV(m_EncryptMethod, m_EncryptIV)) {\r\n return \"\";\r\n }\r\n\r\n m_DecryptData = SOF_DecryptDataPKCS7(tokenInfo.containerName, KEY_SPEC_TYPE_ENCRYPT, m_EncryptData);\r\n if (m_DecryptData.length == 0) {\r\n return \"\";\r\n }\r\n\r\n try {\r\n // eslint-disable-next-line no-undef\r\n resData = _Base64decode(m_DecryptData);\r\n } catch (e) {\r\n resData = m_DecryptData;\r\n // eslint-disable-next-line no-unused-vars\r\n LAST_ERRORSTRING = \"解密失败:Base64解码失败\";\r\n }\r\n\r\n return resData;\r\n }\r\n\r\n /**\r\n * 加载底层文件\r\n * @returns {boolean} true,加载成功;false加载失败;\r\n */\r\n function SOF_LoadLibrary (libraryName) {\r\n var resultCode = 0;\r\n if (libraryName == \"GM3000\") {\r\n resultCode = token.SOF_LoadLibrary(token.GM3000);\r\n }\r\n else if (libraryName == \"HT\") {\r\n resultCode = token.SOF_LoadLibrary(token.HT);\r\n }\r\n else if (libraryName == \"SJK1137\") {\r\n resultCode = token.SOF_LoadLibrary(token.SJK1137);\r\n }\r\n\r\n if (resultCode != 0) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_NOT_LOADLIBRARY + token.SOF_GetLastError();\r\n return false;\r\n }\r\n return true;\r\n }\r\n\r\n /**\r\n * 枚举设备\r\n */\r\n function SOF_EnumDevice () {\r\n var deviceNameList = \"\";\r\n\r\n deviceNameList = token.SOF_EnumDevice();\r\n\r\n //检测是否插入USBKey\r\n if (null == deviceNameList || deviceNameList.length == 0) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_NOT_FIND_UKEY;\r\n return null;\r\n }\r\n\r\n return deviceNameList;\r\n }\r\n\r\n /**\r\n * 实例化设备,为后续一系列操作准备\r\n * @param {string} deviceName 设备名称\r\n */\r\n function SOF_GetDeviceInstance (deviceName) {\r\n var resultCode = 0;\r\n\r\n resultCode = token.SOF_GetDeviceInstance(deviceName, \"\");\r\n //设备未正常实例化\r\n if (resultCode != 0) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_NOT_INSTANCE_DEVICE + token.SOF_GetLastError();\r\n return false;\r\n }\r\n return true;\r\n }\r\n\r\n /**\r\n * 枚举应用中的容器\r\n */\r\n function SOF_GetUserList () {\r\n var userList = \"\";\r\n\r\n userList = token.SOF_GetUserList();\r\n if (null == userList || userList.length == 0) {\r\n LAST_ERRORSTRING = \"USBkey中未找到证书!\";\r\n return null;\r\n }\r\n\r\n return userList;\r\n }\r\n\r\n /**\r\n * 登陆应用,验证密码是否正确\r\n * @param {string} userPin\r\n */\r\n function SOF_Login (userPin) {\r\n var resultCode = 0;\r\n var m_userPin = \"\" + userPin;\r\n var RetryCount = 0;\r\n\r\n if (null == m_userPin || m_userPin.length == 0) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_USERPIN_LENGTH;\r\n return false;\r\n }\r\n\r\n if (m_userPin.length < 4 || m_userPin.length > 16) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_USERPIN_LENGTH;\r\n return false;\r\n }\r\n\r\n resultCode = token.SOF_Login(m_userPin);\r\n if (resultCode != 0) {\r\n RetryCount = SOF_GetPinRetryCount();\r\n if (RetryCount > 0) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_USERPIN_IS_ERROR + \",还剩 \" + RetryCount + \" 次重试机会!\";\r\n } else {\r\n LAST_ERRORSTRING = \"UKey已经锁死,请联系管理员进行解锁!\"\r\n }\r\n return false;\r\n }\r\n return true\r\n }\r\n\r\n /**\r\n * 修改UKey密码\r\n * @param {*} oldUserPin\r\n * @param {*} newUserPin\r\n */\r\n function SOF_ChangeUserPin (oldUserPin, newUserPin) {\r\n var resultCode = 0;\r\n var m_oldUserPin = \"\" + oldUserPin;\r\n var m_newUserPin = \"\" + newUserPin;\r\n var RetryCount = 0;\r\n\r\n if (null == m_oldUserPin || m_oldUserPin.length == 0) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_USERPIN_LENGTH;\r\n return false;\r\n }\r\n\r\n if (null == m_newUserPin || m_newUserPin.length == 0) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_USERPIN_LENGTH;\r\n return false;\r\n }\r\n\r\n if (m_oldUserPin.length < 4 || m_oldUserPin.length > 16) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_USERPIN_LENGTH;\r\n return false;\r\n }\r\n\r\n if (m_newUserPin.length < 4 || m_newUserPin.length > 16) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_USERPIN_LENGTH;\r\n return false;\r\n }\r\n\r\n resultCode = token.SOF_ChangePassWd(m_oldUserPin, m_newUserPin);\r\n if (resultCode != 0) {\r\n RetryCount = SOF_GetPinRetryCount();\r\n if (RetryCount > 0) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_USERPIN_CHANGE_ERROR + \",还剩 \" + RetryCount + \" 次重试机会!\";\r\n } else {\r\n LAST_ERRORSTRING = \"UKey已经锁死,请联系管理员进行解锁!\"\r\n }\r\n return false;\r\n }\r\n return true;\r\n }\r\n\r\n /**\r\n * 返回重试次数\r\n */\r\n function SOF_GetPinRetryCount () {\r\n var retryCount = 0;\r\n retryCount = token.SOF_GetPinRetryCount();\r\n return retryCount;\r\n }\r\n\r\n function SOF_GetDeviceNumber () {\r\n var deviceNumber = null;\r\n deviceNumber = token.SOF_GetDeviceInfo(token.SGD_DEVICE_SERIAL_NUMBER);\r\n return deviceNumber;\r\n }\r\n\r\n /**\r\n * 导出证书值\r\n * @param {string} containerName 容器名称\r\n * @param {int} keySec 证书用途\r\n */\r\n function SOF_ExportUserCert (containerName, keySec) {\r\n var certBase64;\r\n certBase64 = token.SOF_ExportUserCert(containerName, keySec);\r\n if (null == certBase64 || certBase64.length == 0) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_KEY_EXPORT_CERT;\r\n return null;\r\n }\r\n return certBase64;\r\n }\r\n\r\n /**\r\n * 设置加密算法\r\n * @param {*} EncryptMethod 设置加密算法\r\n * @param {*} EncryptIV 设置IV值\r\n */\r\n function SOF_SetEncryptMethodAndIV (EncryptMethod, EncryptIV) {\r\n var resCode = 1;\r\n\r\n if (EncryptMethod == undefined || EncryptMethod == null) {\r\n LAST_ERRORSTRING = \"请设置加密方式!\";\r\n return false;\r\n }\r\n\r\n resCode = token.SOF_SetEncryptMethodAndIV(EncryptMethod, _Base64encode(EncryptIV));\r\n if (resCode != 0) {\r\n LAST_ERRORSTRING = token.SOF_GetLastError();\r\n return false;\r\n }\r\n return true;\r\n }\r\n\r\n /**\r\n * 设置签名算法\r\n * @param {}} digestMethod\r\n */\r\n function SOF_SetDigestMethod (digestMethod) {\r\n var resultCode = 0;\r\n resultCode = token.SOF_SetDigestMethod(digestMethod);\r\n if (resultCode != 0) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_SET_DIGEST_METHOD_ERROR;\r\n return false;\r\n }\r\n\r\n return true;\r\n }\r\n\r\n /**\r\n * 设置默认USERID\r\n */\r\n function SOF_SetUserID () {\r\n var resultCode = 0;\r\n resultCode = token.SOF_SetUserID(USER_ID);\r\n if (resultCode != 0) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_SET_USERID_ERROR;\r\n return false;\r\n }\r\n return true;\r\n }\r\n\r\n /**\r\n * 数字信封加密\r\n * @param {String} Base64EncodeCert 加密证书值\r\n * @param {String} inData 待加密原文\r\n * @returns {*} \"\",表示加密失败;非空,加密成功\r\n */\r\n function SOF_EncryptDataPKCS7 (Base64EncodeCert, inData) {\r\n var encryptData = \"\";\r\n var inDataBase64 = \"\";\r\n var m_inData = \"\";\r\n\r\n m_inData = \"\" + inData;\r\n if (m_inData.length == 0) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_ENCRYPT_DATA_IS_NULL;\r\n return \"\";\r\n }\r\n\r\n inDataBase64 = _Base64encode(m_inData)\r\n encryptData = token.SOF_EncryptDataPKCS7(Base64EncodeCert, inDataBase64, inData.length);\r\n\r\n if (encryptData == null || encryptData.length == 0) {\r\n LAST_ERRORSTRING = \"加密失败,\" + token.SOF_GetLastError();\r\n return \"\";\r\n }\r\n return encryptData;\r\n }\r\n\r\n /**\r\n * 数字信封解密\r\n * @param {*} containerName 应用名称\r\n * @param {int} cerType\r\n * @param {*} encrypedData\r\n */\r\n function SOF_DecryptDataPKCS7 (containerName, cerType, encrypedData) {\r\n var m_EncrypedData = \"\",\r\n m_DecryptData = \"\";\r\n\r\n m_EncrypedData = \"\" + encrypedData;\r\n if (containerName == null || containerName.length == 0) {\r\n LAST_ERRORSTRING = \"应用名称不能为空!\";\r\n return \"\";\r\n }\r\n\r\n if (m_EncrypedData.length == 0) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_DECRYPT_DATA_IS_NULL;\r\n return \"\";\r\n }\r\n\r\n try {\r\n m_DecryptData = token.SOF_DecryptDataPKCS7(containerName, cerType, m_EncrypedData);\r\n } catch (e) {\r\n m_DecryptData = \"\";\r\n }\r\n if (undefined == m_DecryptData || m_DecryptData == null || m_DecryptData == \"\") {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_DECRYPT_DATA_IS_ERROR;\r\n return \"\";\r\n }\r\n\r\n return m_DecryptData;\r\n }\r\n\r\n /**\r\n * 数据签名\r\n * @param {*} containerName\r\n * @param {*} ulKeySpec\r\n * @param {*} data\r\n * @param {*} certBase64\r\n */\r\n function SOF_SignData (containerName, ulKeySpec, data, certBase64) {\r\n var signData = null;\r\n var b64Data = null;\r\n var m_data = \"\" + data;\r\n\r\n\r\n if (null == m_data || m_data.length == 0) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_SIGN_ORIGINALDATA_IS_NULL;\r\n return false;\r\n }\r\n\r\n b64Data = _Base64encode(m_data);\r\n signData = token.SOF_SignData(containerName, ulKeySpec, _Base64encode(b64Data), b64Data.length)\r\n if (null == signData || signData.length == 0) {\r\n // eslint-disable-next-line no-undef\r\n LAST_ERRORSTRING = ERROR_MESSAGE_SIGN_ERROR + SOF_GetLastError();\r\n return false;\r\n }\r\n\r\n signResultCert = certBase64;\r\n signResultSignData = signData;\r\n\r\n return true;\r\n }\r\n\r\n /**\r\n * 导出证书\r\n * @param {*} certBase64\r\n */\r\n function SOF_GetCertInfo (certBase64) {\r\n var str = null;\r\n var subject = null;\r\n var tmpList = null;\r\n var validTime = null;\r\n var notBeforetime = null;\r\n var key, value;\r\n\r\n if (null == certBase64 || certBase64.length == 0) {\r\n return false;\r\n }\r\n\r\n cert_subject_GN = \"\";\r\n certSn = \"\";\r\n cert_subject = \"\";\r\n\r\n str = token.SOF_GetCertInfo(certBase64, token.SGD_CERT_SERIAL);\r\n certSn = hexToDec(str);\r\n\r\n subject = token.SOF_GetCertInfo(certBase64, token.SGD_CERT_SUBJECT);\r\n cert_subject = subject;\r\n\r\n validTime = token.SOF_GetCertInfo(certBase64, token.SGD_CERT_VALID_TIME);\r\n cert_validTime = validTime;\r\n\r\n notBeforetime = token.SOF_GetCertInfo(certBase64, token.SGD_CERT_NOT_BEFORE);\r\n cert_notbeforetime = notBeforetime;\r\n\r\n tmpList = subject.split(',');\r\n for (var i = 0; i < tmpList.length; i++) {\r\n if (tmpList[i].indexOf(\"=\") == -1) {\r\n continue;\r\n }\r\n\r\n key = tmpList[i].split('=')[0];\r\n value = tmpList[i].split('=')[1];\r\n\r\n if (key == 'GN') {\r\n cert_subject_GN = value;\r\n break;\r\n }\r\n }\r\n return true;\r\n }\r\n\r\n\r\n\r\n /**\r\n * 登出UKey\r\n */\r\n function SOF_LogOut () {\r\n token.SOF_LogOut();\r\n }\r\n\r\n /**\r\n * 生成解锁请求\r\n */\r\n function SOF_GenRemoteUnblockRequest () {\r\n var request = token.SOF_GenRemoteUnblockRequest();\r\n if (request == null || request == \"\") {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_GET_REMOTEUNLOCKREQUEST_FAIL;\r\n return \"\";\r\n }\r\n\r\n return request;\r\n }\r\n\r\n function SOF_RemoteUnlockPIN (response) {\r\n var result = false;\r\n\r\n if (null == response || response.length == 0) {\r\n LAST_ERRORSTRING = \"解锁失败解:响应不能为空!\";\r\n return false;\r\n }\r\n\r\n result = token.SOF_RemoteUnblockPIN(response);\r\n if (result != 0) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_REMOTE_UNLOCK_FAIL;\r\n return false;\r\n } else {\r\n return true;\r\n }\r\n }\r\n\r\n function add (x, y, base) {\r\n var z = [];\r\n var n = Math.max(x.length, y.length);\r\n var carry = 0;\r\n var i = 0;\r\n while (i < n || carry) {\r\n var xi = i < x.length ? x[i] : 0;\r\n var yi = i < y.length ? y[i] : 0;\r\n var zi = carry + xi + yi;\r\n z.push(zi % base);\r\n carry = Math.floor(zi / base);\r\n i++;\r\n }\r\n return z;\r\n }\r\n\r\n function multiplyByNumber (num, x, base) {\r\n if (num < 0) return null;\r\n if (num == 0) return [];\r\n\r\n var result = [];\r\n var power = x;\r\n // eslint-disable-next-line no-constant-condition\r\n while (true) {\r\n if (num & 1) {\r\n result = add(result, power, base);\r\n }\r\n num = num >> 1;\r\n if (num === 0) break;\r\n power = add(power, power, base);\r\n }\r\n\r\n return result;\r\n }\r\n\r\n function parseToDigitsArray (str, base) {\r\n var digits = str.split('');\r\n var ary = [];\r\n for (var i = digits.length - 1; i >= 0; i--) {\r\n var n = parseInt(digits[i], base);\r\n if (isNaN(n)) return null;\r\n ary.push(n);\r\n }\r\n return ary;\r\n }\r\n\r\n\r\n function convertBase (str, fromBase, toBase) {\r\n var digits = parseToDigitsArray(str, fromBase);\r\n if (digits === null) return null;\r\n\r\n var outArray = [];\r\n var power = [1];\r\n for (var i = 0; i < digits.length; i++) {\r\n // invariant: at this point, fromBase^i = power\r\n if (digits[i]) {\r\n outArray = add(outArray, multiplyByNumber(digits[i], power, toBase), toBase);\r\n }\r\n power = multiplyByNumber(fromBase, power, toBase);\r\n }\r\n\r\n var out = '';\r\n for (let i = outArray.length - 1; i >= 0; i--) {\r\n out += outArray[i].toString(toBase);\r\n }\r\n return out;\r\n }\r\n\r\n // eslint-disable-next-line no-unused-vars\r\n function decToHex (decStr) {\r\n var hex = convertBase(decStr, 10, 16);\r\n return hex ? '0x' + hex : null;\r\n }\r\n\r\n\r\n function hexToDec (hexStr) {\r\n if (hexStr.substring(0, 2) === '0x') hexStr = hexStr.substring(2);\r\n hexStr = hexStr.toLowerCase();\r\n return convertBase(hexStr, 16, 10);\r\n }\r\n}\r\n","// 过滤时间\r\nexport function formateTime(dateStr) {\r\n let year = dateStr.slice(0, 4);\r\n let month = dateStr.slice(4, 6);\r\n let date = dateStr.slice(6, 8);\r\n let hours = dateStr.slice(8, 10);\r\n let minute = dateStr.slice(10, 12);\r\n let second = dateStr.slice(12);\r\n return `${year}-${month}-${date} ${hours}:${minute}:${second}`;\r\n}\r\n","<template>\r\n <div>\r\n <el-form\r\n ref=\"loginForm\"\r\n :model=\"loginForm\"\r\n :rules=\"loginRules\"\r\n class=\"login-form\"\r\n >\r\n <div class=\"ca-bg-box\" v-if=\"loginForm.username == undefined\">\r\n <div class=\"ca-bg-img\"></div>\r\n <div class=\"ca-bg-text\">请插入UKEY证书</div>\r\n <img\r\n :src=\"require('comp/YcCA/images/refresh.png')\"\r\n class=\"ca-refresh\"\r\n @click=\"caRead\"\r\n alt=\"\"\r\n />\r\n </div>\r\n <div class=\"ca-bg-info\" v-else>\r\n <div class=\"ca-bg-text\">\r\n CA名称:<span class=\"caName\">{{ loginForm.username }}</span>\r\n </div>\r\n <img\r\n :src=\"require('comp/YcCA/images/refresh.png')\"\r\n class=\"ca-refresh\"\r\n @click=\"caRead\"\r\n alt=\"\"\r\n />\r\n </div>\r\n <el-form-item prop=\"password\">\r\n <el-input\r\n v-model=\"loginForm.password\"\r\n type=\"password\"\r\n auto-complete=\"off\"\r\n placeholder=\"密码\"\r\n show-password\r\n @keyup.enter.native=\"handleLogin\"\r\n >\r\n <el-image\r\n slot=\"prefix\"\r\n class=\"el-input__icon input-icon\"\r\n :src=\"require('./images/password.svg')\"\r\n />\r\n </el-input>\r\n </el-form-item>\r\n <el-form-item>\r\n <el-button\r\n :loading=\"loading\"\r\n size=\"medium\"\r\n type=\"primary\"\r\n class=\"login-btn\"\r\n style=\"width: 100%\"\r\n @click.native.prevent=\"handleLogin\"\r\n >\r\n <span v-if=\"!loading\">登 录</span>\r\n <span v-else>登 录 中...</span>\r\n </el-button>\r\n </el-form-item>\r\n <slot></slot>\r\n </el-form>\r\n <el-dialog\r\n title=\"提示\"\r\n :visible.sync=\"dialogVisible.showInfo\"\r\n width=\"30%\"\r\n center\r\n >\r\n <span style=\"color: red\">4444{{ caInfo.error_text }}</span>\r\n <span slot=\"footer\" class=\"dialog-footer\">\r\n <el-button @click=\"dialogVisible.showInfo = false\">取 消</el-button>\r\n <el-button type=\"primary\" @click=\"dialogVisible.showInfo = false\"\r\n >确 定</el-button\r\n >\r\n </span>\r\n </el-dialog>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport { hunca_mToken_core } from \"comp/YcCA/mTokenPlugin/hunca_mToken_core2\"\r\n// 北京ca\r\nimport \"comp/YcCA/mTokenPluginBeijin/xtxasyn\"\r\nimport { formateTime } from \"comp/YcCA/mTokenPluginBeijin/formateTime\"\r\nexport default {\r\n name: \"YcCA\",\r\n props: {\r\n region: {\r\n /** 1背景CA,0湖南CA */\r\n type: Number,\r\n default: 0,\r\n },\r\n },\r\n data() {\r\n return {\r\n form: {},\r\n caInfo: {\r\n error_text: \"\",\r\n have_error_info: false,\r\n },\r\n loginForm: {\r\n username: \"\",\r\n password: \"\",\r\n uuid: \"\",\r\n caInfo: \"\",\r\n },\r\n dialogVisible: {\r\n ca: false,\r\n showInfo: false,\r\n },\r\n loginRules: {\r\n password: [\r\n { required: true, trigger: \"blur\", message: \"请输入您的密码\" },\r\n ],\r\n },\r\n loading: false,\r\n }\r\n },\r\n computed: {\r\n isBJCA() {\r\n return this.region == 1\r\n },\r\n },\r\n watch: {\r\n region() {\r\n this.caRead()\r\n },\r\n },\r\n created() {\r\n // this.caRead()\r\n },\r\n methods: {\r\n //读取CA\r\n caRead() {\r\n if (this.isBJCA) {\r\n this.caReadBeijin()\r\n } else {\r\n window.mToken = new hunca_mToken_core()\r\n let tempName = window.mToken.Hunca_GetUserListGN()\r\n this.loginForm.username = tempName[0]\r\n }\r\n },\r\n async caReadBeijin() {\r\n let retObj = await new Promise((resolve) => {\r\n window.SOF_GetUserList(function (retObj) {\r\n resolve(retObj)\r\n })\r\n })\r\n this.loginForm.username = retObj.retVal.split(\"||\")[0]\r\n },\r\n // CA登录选择\r\n caLogin(flag) {\r\n switch (flag) {\r\n case 0:\r\n this.HNCALogin()\r\n break\r\n default:\r\n this.$message({\r\n type: \"warning\",\r\n message: \"请选择CA平台!!!\",\r\n })\r\n }\r\n },\r\n // 湖南CA平台登录\r\n HNCALogin() {\r\n window.mToken = new hunca_mToken_core()\r\n this.loginForm.username = window.mToken.Hunca_GetUserListGN()\r\n let tempuserName = window.mToken.Hunca_userNameGNToUserName(\r\n this.loginForm.username[0]\r\n ) //将证书G项信息转化为证书名称\r\n let rn = Math.random()\r\n if (\r\n !window.mToken.Hunca_PKCS1(rn, tempuserName, this.loginForm.password)\r\n ) {\r\n this.caInfo.error_text = window.mToken.Hunca_GetLastError()\r\n this.caInfo.have_error_info = true\r\n this.dialogVisible.showInfo = true\r\n return false\r\n }\r\n this.ca_cert = window.mToken.Hunca_GetSignCert()\r\n this.sign = window.mToken.Hunca_GetSignData()\r\n this.certSn = window.mToken.Hunca_GetSignCertSn() //CA唯一码\r\n this.cert_subject = window.mToken.Hunca_GetSignCertSubject() //CA信息\r\n this.cert_validTime = window.mToken.Hunca_GetValidTime() //过期时间\r\n this.cert_notBeforeTime = window.mToken.HUnca_GetNotBeforeTime() //生效时间\r\n let tempinfo = this.cert_subject.split(\",\")\r\n let tempinfo1 = {}\r\n tempinfo.forEach((e) => {\r\n tempinfo1[e.split(\"=\")[0]] = e.split(\"=\")[1]\r\n })\r\n this.loginForm = {\r\n cert: this.ca_cert,\r\n sign: this.sign,\r\n rn: rn,\r\n caInfo: this.cert_subject, //CA信息\r\n caAddr: tempinfo1.ST + tempinfo1.OU, //设备归属地\r\n caCode: tempinfo1.TITLE, //证书代码\r\n caName: tempinfo1.GN, //ca名字\r\n caSn: this.certSn, //CA唯一码\r\n caEffectiveDate: this.cert_notBeforeTime, //生效时间\r\n caExpireDate: this.cert_validTime, //过期时间\r\n loginType: \"3\",\r\n username: tempinfo1.GN,\r\n }\r\n return true\r\n },\r\n handleLogin() {\r\n this.$refs.loginForm.validate((valid) => {\r\n if (valid) {\r\n this.loading = true\r\n if (this.isBJCA) {\r\n this.BJCALogin()\r\n } else {\r\n this.HNCALogin()\r\n if (this.dialogVisible.showInfo == true) {\r\n this.loading = false\r\n } else if (this.loginForm.username != undefined) {\r\n this.loading = true\r\n this.$emit(\"caSuccess\", this.loginForm, () => {\r\n this.loading = false\r\n })\r\n } else {\r\n this.msgErr(\"请插入CA\")\r\n }\r\n }\r\n }\r\n })\r\n },\r\n async BJCALogin() {\r\n if (this.loginForm.password == undefined) {\r\n this.msgErr(\"请插入CA\")\r\n return\r\n } else {\r\n let certId = await new Promise((resolve) => {\r\n window.SOF_GetUserList(function (retObj) {\r\n resolve(retObj.retVal.split(\"&&&\")[0].split(\"||\")[1])\r\n })\r\n })\r\n // --------------执行ca登录接口开始\r\n var time_begin = new Date()\r\n let passwd = this.loginForm.password\r\n if (!certId || !passwd) {\r\n return\r\n }\r\n var platform = navigator.platform.toLowerCase()\r\n if (platform.indexOf(\"win\") != -1) {\r\n window.SOF_LoginEx(certId, passwd, 0, this.login_callback, {\r\n begin: time_begin,\r\n certId: certId,\r\n })\r\n } else {\r\n window.SOF_Login(certId, passwd, this.login_callback, {\r\n begin: time_begin,\r\n certId: certId,\r\n })\r\n }\r\n // --------------执行ca登录接口结束\r\n }\r\n },\r\n login_callback(retObj) {\r\n const that = this\r\n var certId = retObj.ctx.certId\r\n if (retObj.retVal) {\r\n // 登录成功对数据进行签名\r\n this.BJSignData()\r\n } else {\r\n //当登录失败时,调用SOF_GetLastError取错误码,errcode为79时表示pin码复杂度不符合\r\n window.SOF_GetLastError(function (retObj) {\r\n var err = retObj.retVal\r\n if (err == 79) {\r\n that.msgErr(\"请核对pin码复杂度是否符合要求\")\r\n }\r\n }, retObj.ctx)\r\n // 实际情况可能仅在登录失败时获取一下重试次数做个提醒\r\n window.SOF_GetPinRetryCount(\r\n certId,\r\n function (retObj) {\r\n var certId = retObj.ctx.certId\r\n that.msgErr(\r\n \"证书[\" + certId + \"]重试次数剩余:\" + retObj.retVal + \"次...\"\r\n )\r\n },\r\n retObj.ctx\r\n )\r\n }\r\n },\r\n async BJSignData() {\r\n let certId = await new Promise((resolve) => {\r\n window.SOF_GetUserList(function (retObj) {\r\n resolve(retObj.retVal.split(\"&&&\")[0].split(\"||\")[1])\r\n })\r\n })\r\n let rn = Math.random()\r\n this.form[\"rn\"] = rn\r\n window.SOF_SignData(certId, rn, this.signData_callback, {\r\n certId: certId,\r\n })\r\n // --------------登录成功对数据进行签名结束\r\n },\r\n async signData_callback(retObj) {\r\n if (retObj.retVal == \"\") {\r\n this.caInfo.error_text = \"数据签名失败\"\r\n this.caInfo.have_error_info = true\r\n this.dialogVisible.showInfo = true\r\n return\r\n }\r\n this.form[\"sign\"] = retObj.retVal\r\n // 签名成功获取其他信息后端登录接口所需信息-------\r\n var certId = retObj.ctx.certId\r\n // 导出用户证书\r\n let userCert = await new Promise((resolve) => {\r\n window.SOF_ExportUserCert(certId, function (retObj) {\r\n resolve(retObj.retVal)\r\n })\r\n })\r\n this.form[\"username\"] = userCert\r\n if (userCert) {\r\n var certInfoTypeArray = {\r\n caAddrProvince: { type: 16, label: \"使用者省州名ST\" }, //caAddr\r\n caAddrcity: { type: 18, label: \"使用者城市名L\" }, //caAddr\r\n caEffectiveDate: { type: 11, label: \"证书有效开始日期\" }, //caEffectiveDate\r\n caExpireDate: { type: 12, label: \"证书有效结束日期\" }, //caExpireDate\r\n caInfo: { type: 35, label: \"使用者DN项第2种格式\" }, //caInfo\r\n //caCode\r\n //username\r\n caSn: { type: 2, label: \"证书序列号\" }, //caSn\r\n caType: { type: 34, label: \"颁发者DN项第1种格式\" }, //caType\r\n }\r\n // 导出证书成功,解析证书基本项\r\n for (let key in certInfoTypeArray) {\r\n let certInfo = await new Promise((resolve) => {\r\n window.SOF_GetCertInfo(\r\n userCert,\r\n certInfoTypeArray[key].type,\r\n function (retObj) {\r\n resolve(retObj)\r\n },\r\n { key: key }\r\n )\r\n })\r\n this.form[certInfo.ctx.key] = certInfo.retVal\r\n }\r\n let bindParams = {\r\n caSn: this.form[\"caSn\"],\r\n caInfo: this.form[\"caInfo\"],\r\n caAddr: this.form[\"caAddrProvince\"] + this.form[\"caAddrcity\"],\r\n caCode: this.form[\"caInfo\"]\r\n .split(\",\")\r\n .filter((v) => {\r\n return v.search(/^title=/i) != -1\r\n })[0]\r\n .replace(/title=/i, \"\"),\r\n username: this.form[\"caInfo\"]\r\n .split(\",\")\r\n .filter((v) => {\r\n return v.search(/^cn=/i) != -1\r\n })[0]\r\n .replace(/cn=/i, \"\"),\r\n caEffectiveDate: formateTime(this.form[\"caEffectiveDate\"]),\r\n caExpireDate: formateTime(this.form[\"caExpireDate\"]),\r\n // region: this.readForm.region,\r\n pass: this.loginForm.password,\r\n caType: \"北京ca\",\r\n sign: this.form.sign,\r\n rn: this.form.rn,\r\n cert: this.form.username,\r\n }\r\n this.form = bindParams\r\n this.loginForm = {\r\n cert: this.form.cert,\r\n sign: this.form.sign,\r\n rn: this.form.rn,\r\n caInfo: this.form.caInfo, //CA信息\r\n caAddr: this.form.caAddr, //设备归属地\r\n caCode: this.form.caCode, //证书代码\r\n caName: this.form.username, //证书名称\r\n caSn: this.form.caSn, //CA唯一码\r\n caEffectiveDate: this.form.caEffectiveDate, //生效时间\r\n caExpireDate: this.form.caExpireDate, //过期时间\r\n loginType: \"3\",\r\n username: this.form.username,\r\n }\r\n if (this.dialogVisible.showInfo == true) {\r\n this.loading = false\r\n } else if (this.loginForm.username != undefined) {\r\n this.$emit(\"caSuccess\", this.loginForm, () => {\r\n this.loading = false\r\n })\r\n } else {\r\n this.msgErr(\"请插入CA\")\r\n }\r\n }\r\n },\r\n handleClose(done) {\r\n this.$confirm(\"确认关闭?\")\r\n .then(() => {\r\n done()\r\n this.loading = false\r\n })\r\n .catch(() => {})\r\n },\r\n msgErr(msg) {\r\n this.loading = false\r\n this.$message.error(msg)\r\n },\r\n },\r\n}\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n::v-deep .el-input__prefix {\r\n display: flex;\r\n align-items: center;\r\n left: 1.04vw;\r\n}\r\n::v-deep .el-form-item__error {\r\n font-size: 0.04vw;\r\n}\r\n::v-deep .el-input__icon {\r\n color: #409eff;\r\n width: 0.98vw;\r\n height: 1.14vw;\r\n}\r\n::v-deep .el-input__inner {\r\n padding: 0 3.64vw;\r\n height: 2.81vw;\r\n font-size: 1.04vw;\r\n border: 0.1vw solid #409eff;\r\n}\r\n::v-deep .el-input .el-input__clear {\r\n font-size: 1.24vw;\r\n}\r\n::v-deep .el-input__suffix {\r\n right: 1.04vw;\r\n top: 0.46vw;\r\n}\r\n.el-form-item {\r\n margin-bottom: 1.2vw;\r\n margin-top: 1vw;\r\n}\r\n.ca-download-box {\r\n display: flex;\r\n justify-content: right;\r\n align-items: center;\r\n margin: 10px 0;\r\n .ca-download-text {\r\n color: #53a8ff;\r\n font-size: 14px;\r\n font-weight: 400;\r\n }\r\n .ca-download-img {\r\n width: 10px;\r\n height: 10px;\r\n background: url(\"comp/YcCA/images/ca-download.png\") no-repeat;\r\n background-size: 100% 100%;\r\n margin-left: 2px;\r\n }\r\n}\r\n.contentBox {\r\n width: 100%;\r\n height: 50px;\r\n margin-bottom: 15px;\r\n}\r\n.ca-bg-box {\r\n background-color: #ecf5ff;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n padding: 30px 70px;\r\n position: relative;\r\n -webkit-animation: fadeinout 1s linear forwards;\r\n animation: fadeinout 1s linear forwards;\r\n .ca-bg-img {\r\n width: 97px;\r\n height: 57px;\r\n background: url(\"comp/YcCA/images/ca-bg.png\") no-repeat;\r\n background-size: 100% 100%;\r\n }\r\n}\r\n@-webkit-keyframes fadeinout {\r\n 0% {\r\n opacity: 0;\r\n }\r\n 50% {\r\n opacity: 0.5;\r\n }\r\n 100% {\r\n opacity: 1;\r\n }\r\n}\r\n\r\n@keyframes fadeinout {\r\n 0% {\r\n opacity: 0;\r\n }\r\n 50% {\r\n opacity: 0.5;\r\n }\r\n 100% {\r\n opacity: 1;\r\n }\r\n}\r\n.ca-bg-info {\r\n display: flex;\r\n padding: 40px 70px 40px 25px;\r\n position: relative;\r\n background: url(\"comp/YcCA/images/caBg.png\") no-repeat;\r\n background-size: 100% 100%;\r\n -webkit-animation: fadeinout 1s linear forwards;\r\n animation: fadeinout 1s linear forwards;\r\n}\r\n.ca-bg-text {\r\n margin-left: 15px;\r\n font-size: 18px;\r\n font-weight: 500;\r\n color: #53a8ff;\r\n}\r\n.caName {\r\n margin-left: 10px;\r\n color: #303133;\r\n}\r\n.ca-refresh {\r\n position: absolute;\r\n top: 6px;\r\n right: 8px;\r\n width: 25px;\r\n height: 25px;\r\n}\r\n.login-btn {\r\n height: 2.81vw;\r\n font-size: 1.04vw;\r\n font-weight: bold;\r\n background: url(\"comp/YcCA/images/login-btn-bg.png\") no-repeat;\r\n background-size: 100% 100%;\r\n border: none;\r\n}\r\n</style>\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","// extracted by mini-css-extract-plugin\nexport {};","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!../../../node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!../../../node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=3a3b9de4&prod&lang=scss&scoped=true&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=3a3b9de4&scoped=true&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=3a3b9de4&prod&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"3a3b9de4\",\n null\n \n)\n\nexport default component.exports","import YcSlideVerify from 'comp/YcSlideVerify'\r\nimport YcCustomerService from 'comp/YcCustomerService'\r\nimport YcQuestion from 'comp/YcQuestion'\r\nimport YcCA from 'comp/YcCA'\r\n\r\n\r\nconst components = [\r\n YcSlideVerify,\r\n YcCustomerService,\r\n YcQuestion,\r\n YcCA\r\n]\r\n// 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册\r\nconst install = function (Vue) {\r\n // 遍历注册全局组件\r\n components.forEach(component => {\r\n Vue.component(component.name, component)\r\n })\r\n\r\n // 判断是否是直接引入文件,如果是,就不用调用 Vue.use()\r\n if (typeof window !== 'undefined' && window.Vue) {\r\n install(window.Vue)\r\n }\r\n}\r\n\r\n// 导出的对象必须具有 install,才能被 Vue.use() 方法安装\r\nexport default {\r\n install\r\n}\r\n","import './setPublicPath'\nimport mod from '~entry'\nexport default mod\nexport * from '~entry'\n"],"names":["xtxasyn","XTXAsynHashMap","map","prototype","put","key","value","get","hasOwnProperty","remove","removeAll","keySet","_keys","i","push","constructor","HashMap","initUtilObject","util","checkBrowserISIE","window","ActiveXObject","checkLocationIsHttps","document","location","protocol","evalFunction","func","cb","eval","consolelog","param","console","undefined","log","isEmpty","loadIECtl","clsid","ctlName","checkFunc","ctl","getElementById","loadObjString","write","e","getAutoExecFunctionString","ret","toString","attachIEEvent","eventName","eventFunc","toLowerCase","attachEvent","handler","createElement","setAttribute","eventScript","appendChild","createTextNode","getElementsByTagName","loadWebSocketCtl","wsUrl","wssUrl","wsObject","url","socket","wsMessageQueue","wsMessageQueueId","wsEventQueue","wsURL","wsCacheMessage","custom","defaultUsbkeyChange","WebSocket","onopen","evt","SOF_GetVersion","retVal","length","tb_send","shift","send","onclose","XTXAppWebSocket","onmessage","eventCmd","data","res","JSON","parse","cmdId","methodName","execFunc","messageQueue","method","ctx","returnType","Number","token","setToken","retObj","onerror","attachWebSocketEvent","callWebSocketMethod","argsArray","sendArray","href","arguments","strParam","getToken","readyState","OPEN","stringify","CONNECTING","SynToAsyn","initCustomActions","softCertListID","hardCertListID","allCertListID","loginCertID","logoutFunc","UsbkeyChangeFunc","loginToken","errorReportFunc","msg","alert","setAutoLogoutParameter","strCertID","clearDropList","dropListId","obj","n","pushOneDropListBox","userListArray","strListID","certObj","objItem","Option","certName","certID","options","add","pushUserListToAllDroplist","strUserList","allListArray","indexOf","strOneUser","substring","strName","GetDeviceInfo","len","setUserCertList","certListId","certType","CERT_TYPE_ALL","CERT_TYPE_HARD","CERT_TYPE_SOFT","SOF_GetUserList","setOnUsbKeyChangeCallBack","callback","setErrorReportFunc","errFunc","autoLogoutCallBack","initXTXAppCOM","XTXAppCOM","xtx_clsid","GetPicObj","getpic_clsid","GetPic","Hash","inData","ConvertPicFormat","type","ConvertGif2Jpg","GetPic1","ConvertPicSize","strPicture","w","h","XTXVersionOBJ","xtx_version_clsid","GetEnvVersion","initXTXAppWebSocket","initXTXAppObject","getImplmentFunction","methodInfo","inParams","funcName","Function","outParamType","export_functions","aliasName","SetAutoLogoutParameter","SetUserCertList","SetOnUsbKeyChangeCallBack","SetAlertFunction","custom_alert","GetLoginToken","SetLoginToken","tokenData","GetUserListByType","strType","GetDeviceType","userList","GetUserList_USBKey","GetUserList_Soft","SignByP7","strInData","bDetach","SOF_SignMessage","GetSymKeyLength","HashFile","strFilePath","SOF_HashFile","ParseDateString","strDate","strYear","strMonth","strDay","strHour","strMin","strSecond","RtnDate","Date","setFullYear","setHours","setMinutes","setSeconds","__loginSignRandomCallBack","objForm","UserSignedData","LoginToken","action","submit","__loginVerifyServerSignatureCallBack","SOF_SignData","strServerRan","__loginCheckCertValidNotAfter","notAfterDate","milliseconds","getTime","days","parseInt","hours","minutes","SOF_VerifySignedData","strServerCert","strServerSignedData","__loginCheckCertValidNotBefore","notBeforeDate","strUserCert","UserCert","SOF_GetCertInfo","__loginGetSignCertCallBack","__loginGetPINRetryCallBack","retryCount","__loginVerifyPINCallBack","SOF_GetPinRetryCount","CertID","ContainerName","SOF_ExportUserCert","Login","formName","strPin","strAction","custom_cb","insertAdjacentHTML","SOF_Login","split","undef","nativeSplit","String","compliantExecNpcg","exec","self","str","separator","limit","Object","call","output","flags","ignoreCase","multiline","extended","sticky","lastLastIndex","RegExp","source","separator2","match","lastIndex","lastLength","index","slice","replace","Array","apply","test","mToken","SAR_OK","SAR_FALSE","SGD_SM1_ECB","SGD_SM1_CBC","SGD_SM1_CFB","SGD_SM1_OFB","SGD_SM1_MAC","SGD_SSF33_ECB","SGD_SSF33_CBC","SGD_SSF33_CFB","SGD_SSF33_OFB","SGD_SSF33_MAC","SGD_SM4_ECB","SGD_SM4_CBC","SGD_SM4_CFB","SGD_SM4_OFB","SGD_SM4_MAC","SGD_VENDOR_DEFINED","SGD_DES_ECB","SGD_DES_CBC","SGD_3DES168_ECB","SGD_3DES168_CBC","SGD_3DES112_ECB","SGD_3DES112_CBC","SGD_AES128_ECB","SGD_AES128_CBC","SGD_AES192_ECB","SGD_AES192_CBC","SGD_AES256_ECB","SGD_AES256_CBC","SGD_RSA","SGD_SM2_1","SGD_SM2_2","SGD_SM2_3","SGD_SM3","SGD_SHA1","SGD_SHA256","SGD_RAW","SGD_MD5","SGD_SHA384","SGD_SHA512","SGD_CERT_VERSION","SGD_CERT_SERIAL","SGD_CERT_ISSUE","SGD_CERT_VALID_TIME","SGD_CERT_SUBJECT","SGD_CERT_DER_PUBLIC_KEY","SGD_CERT_DER_EXTENSIONS","SGD_CERT_NOT_BEFORE","SGD_CERT_ISSUER_CN","SGD_CERT_ISSUER_O","SGD_CERT_ISSUER_OU","SGD_CERT_ISSUER_C","SGD_CERT_ISSUER_P","SGD_CERT_ISSUER_L","SGD_CERT_ISSUER_S","SGD_CERT_ISSUER_EMAIL","SGD_CERT_SUBJECT_CN","SGD_CERT_SUBJECT_O","SGD_CERT_SUBJECT_OU","SGD_CERT_SUBJECT_EMALL","SGD_REMAIN_TIME","SGD_SIGNATURE_ALG","SGD_CERT_SUBJECT_C","SGD_CERT_SUBJECT_P","SGD_CERT_SUBJECT_L","SGD_CERT_SUBJECT_S","SGD_CERT_CRL","SGD_DEVICE_SORT","SGD_DEVICE_TYPE","SGD_DEVICE_NAME","SGD_DEVICE_MANUFACTURER","SGD_DEVICE_HARDWARE_VERSION","SGD_DEVICE_SOFTWARE_VERSION","SGD_DEVICE_STANDARD_VERSION","SGD_DEVICE_SERIAL_NUMBER","SGD_DEVICE_SUPPORT_SYM_ALG","SGD_DEVICE_SUPPORT_ASYM_ALG","SGD_DEVICE_SUPPORT_HASH_ALG","SGD_DEVICE_SUPPORT_STORANGE_SPACE","SGD_DEVICE_SUPPORT_FREE_SAPCE","SGD_DEVICE_RUNTIME","SGD_DEVICE_USED_TIMES","SGD_DEVICE_LOCATION","SGD_DEVICE_DESCRIPTION","SGD_DEVICE_MANAGER_INFO","SGD_DEVICE_MAX_DATA_SIZE","TRUE","FALSE","GM3000","K5","TF","HT","SJK1137","TYPE_UKEY","TYPE_FPKEY","g_mTokenPlugin","SOF_GetLastError","isIe","isMobile","browser","versions","u","navigator","userAgent","app","appVersion","trident","presto","webKit","gecko","mobile","ios","android","iPhone","iPad","webApp","language","browserLanguage","SOF_LoadLibrary","os","check_os","mTokenPlugin","SOF_EnumDevice","array","SOF_GetDeviceInstance","DeviceName","ApplicationName","SOF_ReleaseDeviceInstance","list","user","KeySpec","SOF_GetDeviceInfo","Type","Base64EncodeCert","SOF_GetCertInfoByOid","OID","PassWd","SOF_LogOut","SOF_ChangePassWd","OldPassWd","NewPassWd","SOF_SetDigestMethod","DigestMethod","SOF_SetUserID","UserID","SOF_SetEncryptMethodAndIV","EncryptMethod","EncryptIV","SOF_EncryptFileToPKCS7","Cert","InFile","OutFile","SOF_SignFileToPKCS7","SOF_VerifyFileToPKCS7","strPkcs7Data","InFilePath","SOF_DecryptFileToPKCS7","keySpec","Pkcs7Data","SOF_DigestData","nData","InDataLen","ulKeySpec","InData","SOF_SignDataInteractive","SOF_SignDataToPKCS7","ulDetached","SOF_VerifyDataToPKCS7","SignedValue","digestMethod","SOF_EncryptDataPKCS7","SOF_DecryptDataPKCS7","SOF_GenRemoteUnblockRequest","SOF_GenResetpwdResponse","request","soPin","userPin","SOF_RemoteUnblockPIN","OriginalText","SOF_ExportPubKey","containerName","cerType","expType","SOF_EncryptByPubKey","strPubKey","strInput","SOF_DecryptByPrvKey","strAsymCipher","SOF_GenerateP10Request","deviceName","container","dn","asymAlg","keyLength","SOF_EnumCertContiner","SOF_FindContainer","certSN","SOF_DeleteCert","SOF_DeleteContainer","SOF_SignByCert","plain","SOF_VerifyByCert","signature","SOF_ImportCert","cert","SOF_ImportCryptoCertAndKey","nAsymAlg","EncryptedSessionKeyData","symAlg","EncryptedPrivateKeyData","mode","SOF_VerifyByExtCert","SOF_GenerateRandom","SOF_SymEncryptFile","sessionKey","srcfile","destfile","SOF_SymDecryptFile","SOF_SymEncryptData","SOF_SymDecryptData","SOF_GenerateQRCode","qrcode_text","SOF_VerifyPinMS","responseKey","SOF_GetHardwareType","SOF_VerifyFingerprint","SOF_EnumFiles","SOF_ReadFile","fileName","offset","SOF_WriteFile","SOF_CreateFile","readRight","writeRight","SOF_DeleteFile","hasPlugin","name","plugins","windows","mac","linux","unix","os_type","linuxWin","_xmlhttp","retJSON","AjaxIO","json_in","router","json","invoke","_curDevName","_url","XMLHttpRequest","open","setRequestHeader","GetHttpResult","status","responseText","errorCode","rtn","version","info","envelopData","signed","digest","InDataBase64","encrypedData","decryptedData","pkcs7","pubKey","asymCipher","asymPlain","SOF_CreateKeyPair","outData","qrcode_text_in","SocketConnect","HostName","Port","SocketDisConnect","SocketSendText","SendText","RecvText","render","_vm","_c","_self","attrs","title","isShow","on","handleClose","ref","imgs","accuracy","sliderText","onSuccess","onFail","onAgain","onRefresh","onFulfilled","staticRenderFns","props","default","Boolean","countDownNum","computed","watch","newVal","$refs","slideblock","reset","created","methods","$emit","staticStyle","visible","jumpPage","regular","update:visible","$event","staticClass","_t","click","_m","_v","directives","rawName","expression","_s","enlarge","_e","close","_l","messagelist","item","class","id","domProps","regularClick","based","handExpand","isActive","minRows","maxRows","nativeOn","keyup","_k","keyCode","carriageReturn","model","textareaValue","$$v","commit","questions","event","code","search","filter","faq","includes","vlaue","reduce","prev","curr","fun","isArray","$nextTick","main","scrollTop","scrollHeight","chatMixin","mixins","chatVue","components","hasSlot","$slots","$route","to","path","customer","style","display","mounted","currData","preventDefault","activeNames","questionsList","slot","getHours","getMinutes","loginForm","loginRules","username","require","caRead","handleLogin","password","$set","loading","dialogVisible","showInfo","caInfo","error_text","_keyStr","_Base64encode","input","chr1","chr2","chr3","enc1","enc2","enc3","enc4","_utf8_encode","charCodeAt","isNaN","charAt","_Base64decode","fromCharCode","_utf8_decode","in_string","string","utftext","c","c1","c2","c3","hunca_mToken_core","certInfoList","singleKey","libraryNameList","platform","LAST_ERRORSTRING","KEY_SPEC_TYPE_ENCRYPT","KEY_SPEC_TYPE_SIGN","USER_ID","ERROR_MESSAGE_NOT_LOADLIBRARY","ERROR_MESSAGE_NOT_FIND_UKEY","ERROR_MSSSAGE_FIND_MORE_UKEY","ERROR_MESSAGE_NOT_INSTANCE_DEVICE","ERROR_MESSAGE_USERPIN_LENGTH","ERROR_MESSAGE_USERPIN_IS_ERROR","ERROR_MESSAGE_USERPIN_CHANGE_ERROR","ERROR_MESSAGE_KEY_NOT_EXIT","ERROR_MESSAGE_USERNAME_IS_NULL","ERROR_MESSAGE_KEY_EXPORT_CERT","ERROR_MESSAGE_SET_DIGEST_METHOD_ERROR","ERROR_MESSAGE_SET_USERID_ERROR","ERROR_MESSAGE_SIGN_ORIGINALDATA_IS_NULL","ERROR_MESSAGE_SIGN_ERROR","ERROR_MESSAGE_USERNAMEGN_IS_NULL","ERROR_MESSAGE_USERNAMEGN_TO_USERNAME_ERROR","ERROR_MESSAGE_KEY_LIBRAY","ERROR_MESSAGE_ENCRYPT_DATA_IS_NULL","ERROR_MESSAGE_DECRYPT_DATA_IS_NULL","ERROR_MESSAGE_DECRYPT_DATA_IS_ERROR","ERROR_MESSAGE_GET_REMOTEUNLOCKREQUEST_FAIL","ERROR_MESSAGE_GET_REMOTEUNLOCKREQUEST_NOT_SUPPORT","ERROR_MESSAGE_REMOTE_UNLOCK_FAIL","tokenInfoList","signResultSignData","signResultCert","certSn","cert_subject_GN","cert_subject","cert_validTime","cert_notbeforetime","Hunca_GetLastError","Hunca_GetUserList","deviceArray","userName","tmpInfo","libraryName","tokenInfo","serial","userNameList","Hunca_GetUserListGN","certB64","deviceSerial","subjectGN","userNameGNList","Hunca_userNameGNToUserName","userNameGN","Hunca_GenRemoteUnblockRequest","tempTokenInfo","HUnca_GetDeviceNumber","m_devNumber","SOF_GetDeviceNumber","Hunca_RemoteUnlockPIN","response","result","SOF_RemoteUnlockPIN","Hunca_ChangeUserPin","oldUserPin","newUserPin","SOF_ChangeUserPin","Hunca_PKCS1","originalData","certBase64","signResultInfo","certInfo","Hunca_GetSignData","Hunca_GetSignCert","Hunca_GetSignCertSn","Hunca_GetSignCertSubject","Hunca_GetValidTime","HUnca_GetNotBeforeTime","Hunca_DealCertInfo","Hunca_EncryptDataPKCS7","m_EncryptMethod","m_EncryptIV","encryptData","Hunca_DecryptDataPKCS7","m_EncryptData","m_DecryptData","resData","resultCode","deviceNameList","m_userPin","RetryCount","m_oldUserPin","m_newUserPin","deviceNumber","keySec","resCode","inDataBase64","m_inData","m_EncrypedData","signData","b64Data","m_data","subject","tmpList","validTime","notBeforetime","hexToDec","x","y","base","z","Math","max","carry","xi","yi","zi","floor","multiplyByNumber","num","power","parseToDigitsArray","digits","ary","convertBase","fromBase","toBase","outArray","out","decToHex","decStr","hex","hexStr","formateTime","dateStr","year","month","date","minute","second","region","form","have_error_info","uuid","ca","required","trigger","message","isBJCA","caReadBeijin","tempName","Promise","resolve","caLogin","flag","HNCALogin","$message","tempuserName","rn","random","ca_cert","sign","cert_notBeforeTime","tempinfo","tempinfo1","forEach","caAddr","ST","OU","caCode","TITLE","caName","GN","caSn","caEffectiveDate","caExpireDate","loginType","validate","valid","BJCALogin","msgErr","certId","time_begin","passwd","SOF_LoginEx","login_callback","begin","that","BJSignData","err","signData_callback","userCert","certInfoTypeArray","caAddrProvince","label","caAddrcity","caType","bindParams","v","pass","done","$confirm","then","catch","error","YcSlideVerify","YcCustomerService","YcQuestion","YcCA","install","Vue","component"],"sourceRoot":""}
1
+ {"version":3,"file":"yc-ui2.umd.js","mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;;;;;;;ACVa;AACb,iBAAiB,mBAAO,CAAC,GAA0B;AACnD,kBAAkB,mBAAO,CAAC,IAA4B;;AAEtD;;AAEA;AACA;AACA;AACA;AACA;;;;;;;;;ACVa;AACb,eAAe,mBAAO,CAAC,GAAwB;;AAE/C;AACA;;AAEA;AACA;AACA;AACA;AACA;;;;;;;;;ACVa;AACb,sBAAsB,mBAAO,CAAC,IAAgC;AAC9D,sBAAsB,mBAAO,CAAC,IAAgC;AAC9D,wBAAwB,mBAAO,CAAC,IAAmC;;AAEnE,sBAAsB,mBAAmB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,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CAAkC,kDAAkD;AACpF,IAAI;AACJ;AACA,IAAI;AACJ;;;;;;;;;ACZa;AACb,YAAY,mBAAO,CAAC,IAAoB;;AAExC;AACA;AACA;AACA,iCAAiC,OAAO,mBAAmB,aAAa;AACxE,CAAC;;;;;;;;;ACPY;AACb;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;;;;;;;;ACVa;AACb,aAAa,mBAAO,CAAC,IAAqB;AAC1C,eAAe,mBAAO,CAAC,GAAwB;;AAE/C;AACA;AACA;;AAEA;AACA;AACA;;;;;;;;;ACVa;AACb;AACA,yCAAyC;;AAEzC;AACA;AACA;AACA;;;;;;;;;ACPa;AACb;;;;;;;;;ACDa;AACb,aAAa,mBAAO,CAAC,IAAqB;AAC1C,gBAAgB,mBAAO,CAAC,IAAgC;;AAExD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;AC3Ba;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACVa;AACb,aAAa,mBAAO,CAAC,IAAqB;AAC1C,+BAA+B,6BAA4D;AAC3F,kCAAkC,mBAAO,CAAC,IAA6C;AACvF,oBAAoB,mBAAO,CAAC,IAA8B;AAC1D,2BAA2B,mBAAO,CAAC,IAAqC;AACxE,gCAAgC,mBAAO,CAAC,IAA0C;AAClF,eAAe,mBAAO,CAAC,IAAwB;;AAE/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ,8DAA8D;AAC9D,IAAI;AACJ,kCAAkC;AAClC;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACtDa;AACb;AACA;AACA;AACA,IAAI;AACJ;A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O,CAAC,IAA0B;;AAEhD;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA,EAAE;;;;;;;;;ACfW;AACb,kBAAkB,mBAAO,CAAC,IAAoC;AAC9D,iBAAiB,mBAAO,CAAC,GAA0B;AACnD,YAAY,mBAAO,CAAC,IAA2B;;AAE/C;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;ACda;AACb,sBAAsB,mBAAO,CAAC,IAAuC;AACrE,aAAa,mBAAO,CAAC,IAAqB;AAC1C,eAAe,mBAAO,CAAC,GAAwB;AAC/C,kCAAkC,mBAAO,CAAC,IAA6C;AACvF,aAAa,mBAAO,CAAC,IAA+B;AACpD,aAAa,mBAAO,CAAC,IAA2B;AAChD,gBAAgB,mBAAO,CAAC,IAAyB;AACjD,iBAAiB,mBAAO,CAAC,IAA0B;;AAEnD;AACA;AACA;AACA;;AAEA;AACA,uCAAuC;AACvC;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACtEa;AACb,cAAc,mBAAO,CAAC,IAA0B;;AAEhD;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACRa;AACb,mBAAmB,mBAAO,CAAC,IAA2B;;AAEtD;;AAEA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;;;;;;;;;ACXa;AACb,YAAY,mBAAO,CAAC,IAAoB;AACxC,iBAAiB,mBAAO,CAAC,GAA0B;;AAEnD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;;;;;;;;ACtBa;AACb;AACA;AACA;AACA;AACA;;;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,SAAAha,CAAA,MAAAA,CAAA,MAAAA,CAAA;QACAga,IAAA,CAAA/Z,IAAA,eAAAD,CAAA;MACA;MACA,OAAAga,IAAA;IACA;EACA;EACAmL,KAAA;IACAlB,OAAAmB,MAAA;MACA;MACAA,MAAA,IACA,KAAAC,KAAA,CAAAC,UAAA,IACA,KAAAD,KAAA,CAAAC,UAAA,CAAAC,KAAA,IACA,KAAAF,KAAA,CAAAC,UAAA,CAAAC,KAAA;IACA;EACA;EACAC,QAAA;EACAC,OAAA;IACAjB,UAAA;MACA,KAAAkB,KAAA;IACA;IACAjB,OAAA;IACAC,QAAA;IACAC,UAAA;IACAC,YAAA;IACAT,YAAA;MACA,KAAAuB,KAAA;IACA;EACA;AACA,CAAC;;AC7E4P,CAAC,qFAAe,qCAAG,EAAC;;ACAjR;;;;;AEAA;;AAEA;AACA;AACA;;AAEe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AC/FgG;AACvC;AACL;AACpD,CAA+F;;;AAG/F;AACsG;AACtG,gBAAgB,kBAAU;AAC1B,EAAE,gDAAM;AACR,EAAE,MAAM;AACR,EAAE,eAAe;AACjB;AACA;AACA;AACA;AACA;AACA;;AAEA,kDAAe;;ACnBf,IAAI/B,iEAAM,GAAG,SAASA,MAAMA,CAAA,EAAE;EAAC,IAAIC,GAAG,GAAC,IAAI;IAACC,EAA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;AACA;AACxB,8CAAe,YAAG;AACI","sources":["webpack://yc-ui2/webpack/universalModuleDefinition","webpack://yc-ui2/./node_modules/core-js/internals/a-callable.js","webpack://yc-ui2/./node_modules/core-js/internals/an-object.js","webpack://yc-ui2/./node_modules/core-js/internals/array-includes.js","webpack://yc-ui2/./node_modules/core-js/internals/array-set-length.js","webpack://yc-ui2/./node_modules/core-js/internals/classof-raw.js","webpack://yc-ui2/./node_modules/core-js/internals/copy-constructor-properties.js","webpack://yc-ui2/./node_modules/core-js/internals/create-non-enumerable-property.js","webpack://yc-ui2/./node_modules/core-js/internals/create-property-descriptor.js","webpack://yc-ui2/./node_modules/core-js/internals/define-built-in.js","webpack://yc-ui2/./node_modules/core-js/internals/define-global-property.js","webpack://yc-ui2/./node_modules/core-js/internals/descriptors.js","webpack://yc-ui2/./node_modules/core-js/internals/document-all.js","webpack://yc-ui2/./node_modules/core-js/internals/document-create-element.js","webpack://yc-ui2/./node_modules/core-js/internals/does-not-exceed-safe-integer.js","webpack://yc-ui2/./node_modules/core-js/internals/engine-user-agent.js","webpack://yc-ui2/./node_modules/core-js/internals/engine-v8-version.js","webpack://yc-ui2/./node_modules/core-js/internals/enum-bug-keys.js","webpack://yc-ui2/./node_modules/core-js/internals/export.js","webpack://yc-ui2/./node_modules/core-js/internals/fails.js","webpack://yc-ui2/./node_modules/core-js/internals/function-bind-native.js","webpack://yc-ui2/./node_modules/core-js/internals/function-call.js","webpack://yc-ui2/./node_modules/core-js/internals/function-name.js","webpack://yc-ui2/./node_modules/core-js/internals/function-uncurry-this.js","webpack://yc-ui2/./node_modules/core-js/internals/get-built-in.js","webpack://yc-ui2/./node_modules/core-js/internals/get-method.js","webpack://yc-ui2/./node_modules/core-js/internals/global.js","webpack://yc-ui2/./node_modules/core-js/internals/has-own-property.js","webpack://yc-ui2/./node_modules/core-js/internals/hidden-keys.js","webpack://yc-ui2/./node_modules/core-js/internals/ie8-dom-define.js","webpack://yc-ui2/./node_modules/core-js/internals/indexed-object.js","webpack://yc-ui2/./node_modules/core-js/internals/inspect-source.js","webpack://yc-ui2/./node_modules/core-js/internals/internal-state.js","webpack://yc-ui2/./node_modules/core-js/internals/is-array.js","webpack://yc-ui2/./node_modules/core-js/internals/is-callable.js","webpack://yc-ui2/./node_modules/core-js/internals/is-forced.js","webpack://yc-ui2/./node_modules/core-js/internals/is-null-or-undefined.js","webpack://yc-ui2/./node_modules/core-js/internals/is-object.js","webpack://yc-ui2/./node_modules/core-js/internals/is-pure.js","webpack://yc-ui2/./node_modules/core-js/internals/is-symbol.js","webpack://yc-ui2/./node_modules/core-js/internals/length-of-array-like.js","webpack://yc-ui2/./node_modules/core-js/internals/make-built-in.js","webpack://yc-ui2/./node_modules/core-js/internals/math-trunc.js","webpack://yc-ui2/./node_modules/core-js/internals/object-define-property.js","webpack://yc-ui2/./node_modules/core-js/internals/object-get-own-property-descriptor.js","webpack://yc-ui2/./node_modules/core-js/internals/object-get-own-property-names.js","webpack://yc-ui2/./node_modules/core-js/internals/object-get-own-property-symbols.js","webpack://yc-ui2/./node_modules/core-js/internals/object-is-prototype-of.js","webpack://yc-ui2/./node_modules/core-js/internals/object-keys-internal.js","webpack://yc-ui2/./node_modules/core-js/internals/object-property-is-enumerable.js","webpack://yc-ui2/./node_modules/core-js/internals/ordinary-to-primitive.js","webpack://yc-ui2/./node_modules/core-js/internals/own-keys.js","webpack://yc-ui2/./node_modules/core-js/internals/require-object-coercible.js","webpack://yc-ui2/./node_modules/core-js/internals/shared-key.js","webpack://yc-ui2/./node_modules/core-js/internals/shared-store.js","webpack://yc-ui2/./node_modules/core-js/internals/shared.js","webpack://yc-ui2/./node_modules/core-js/internals/symbol-constructor-detection.js","webpack://yc-ui2/./node_modules/core-js/internals/to-absolute-index.js","webpack://yc-ui2/./node_modules/core-js/internals/to-indexed-object.js","webpack://yc-ui2/./node_modules/core-js/internals/to-integer-or-infinity.js","webpack://yc-ui2/./node_modules/core-js/internals/to-length.js","webpack://yc-ui2/./node_modules/core-js/internals/to-object.js","webpack://yc-ui2/./node_modules/core-js/internals/to-primitive.js","webpack://yc-ui2/./node_modules/core-js/internals/to-property-key.js","webpack://yc-ui2/./node_modules/core-js/internals/try-to-string.js","webpack://yc-ui2/./node_modules/core-js/internals/uid.js","webpack://yc-ui2/./node_modules/core-js/internals/use-symbol-as-uid.js","webpack://yc-ui2/./node_modules/core-js/internals/v8-prototype-define-bug.js","webpack://yc-ui2/./node_modules/core-js/internals/weak-map-basic-detection.js","webpack://yc-ui2/./node_modules/core-js/internals/well-known-symbol.js","webpack://yc-ui2/./node_modules/core-js/modules/es.array.push.js","webpack://yc-ui2/./src/components/YcCA/mTokenPluginBeijin/xtxasyn.js","webpack://yc-ui2/./src/components/YcCA/mTokenPlugin/mToken.js","webpack://yc-ui2/webpack/bootstrap","webpack://yc-ui2/webpack/runtime/compat get default export","webpack://yc-ui2/webpack/runtime/define property getters","webpack://yc-ui2/webpack/runtime/global","webpack://yc-ui2/webpack/runtime/hasOwnProperty shorthand","webpack://yc-ui2/webpack/runtime/make namespace object","webpack://yc-ui2/webpack/runtime/publicPath","webpack://yc-ui2/./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js","webpack://yc-ui2/./src/components/YcSlideVerify/index.vue","webpack://yc-ui2/src/components/YcSlideVerify/index.vue","webpack://yc-ui2/./src/components/YcSlideVerify/index.vue?7fa0","webpack://yc-ui2/./src/components/YcSlideVerify/index.vue?359a","webpack://yc-ui2/./src/components/YcSlideVerify/index.vue?cddb","webpack://yc-ui2/./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js","webpack://yc-ui2/./src/components/YcSlideVerify/index.vue?0582","webpack://yc-ui2/./src/components/YcCustomerService/index.vue","webpack://yc-ui2/./src/components/YcCustomerService/index.vue?88e2","webpack://yc-ui2/./src/components/YcCustomerService/chat.vue","webpack://yc-ui2/./src/components/YcCustomerService/chatMixin.js","webpack://yc-ui2/src/components/YcCustomerService/chat.vue","webpack://yc-ui2/./src/components/YcCustomerService/chat.vue?e8eb","webpack://yc-ui2/./src/components/YcCustomerService/chat.vue?fc16","webpack://yc-ui2/./src/components/YcCustomerService/chat.vue?1f05","webpack://yc-ui2/./src/components/YcCustomerService/chat.vue?40e1","webpack://yc-ui2/src/components/YcCustomerService/index.vue","webpack://yc-ui2/./src/components/YcCustomerService/index.vue?bf2a","webpack://yc-ui2/./src/components/YcCustomerService/index.vue?aaa3","webpack://yc-ui2/./src/components/YcCustomerService/index.vue?0e28","webpack://yc-ui2/./src/components/YcCustomerService/index.vue?cfd4","webpack://yc-ui2/./src/components/YcQuestion/index.vue","webpack://yc-ui2/src/components/YcQuestion/index.vue","webpack://yc-ui2/./src/components/YcQuestion/index.vue?6b41","webpack://yc-ui2/./src/components/YcQuestion/index.vue?b7c1","webpack://yc-ui2/./src/components/YcQuestion/index.vue?78f7","webpack://yc-ui2/./src/components/YcQuestion/index.vue?c0dd","webpack://yc-ui2/./src/components/YcCA/index.vue","webpack://yc-ui2/./src/components/YcCA/index.vue?4593","webpack://yc-ui2/./src/components/YcCA/mTokenPlugin/base64.js","webpack://yc-ui2/./src/components/YcCA/mTokenPlugin/hunca_mToken_core2.js","webpack://yc-ui2/./src/components/YcCA/mTokenPluginBeijin/formateTime.js","webpack://yc-ui2/src/components/YcCA/index.vue","webpack://yc-ui2/./src/components/YcCA/index.vue?2187","webpack://yc-ui2/./src/components/YcCA/index.vue?9ba9","webpack://yc-ui2/./src/components/YcCA/index.vue?341f","webpack://yc-ui2/./src/components/YcCA/index.vue?ea8d","webpack://yc-ui2/./src/packages/index.js","webpack://yc-ui2/./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"yc-ui2\"] = factory();\n\telse\n\t\troot[\"yc-ui2\"] = factory();\n})((typeof self !== 'undefined' ? self : this), function() {\nreturn ","'use strict';\nvar isCallable = require('../internals/is-callable');\nvar tryToString = require('../internals/try-to-string');\n\nvar $TypeError = TypeError;\n\n// `Assert: IsCallable(argument) is true`\nmodule.exports = function (argument) {\n if (isCallable(argument)) return argument;\n throw new $TypeError(tryToString(argument) + ' is not a function');\n};\n","'use strict';\nvar isObject = require('../internals/is-object');\n\nvar $String = String;\nvar $TypeError = TypeError;\n\n// `Assert: Type(argument) is Object`\nmodule.exports = function (argument) {\n if (isObject(argument)) return argument;\n throw new $TypeError($String(argument) + ' is not an object');\n};\n","'use strict';\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\n\n// `Array.prototype.{ indexOf, includes }` methods implementation\nvar createMethod = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIndexedObject($this);\n var length = lengthOfArrayLike(O);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare -- NaN check\n if (IS_INCLUDES && el !== el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare -- NaN check\n if (value !== value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) {\n if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.includes` method\n // https://tc39.es/ecma262/#sec-array.prototype.includes\n includes: createMethod(true),\n // `Array.prototype.indexOf` method\n // https://tc39.es/ecma262/#sec-array.prototype.indexof\n indexOf: createMethod(false)\n};\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar isArray = require('../internals/is-array');\n\nvar $TypeError = TypeError;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// Safari < 13 does not throw an error in this case\nvar SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS && !function () {\n // makes no sense without proper strict mode support\n if (this !== undefined) return true;\n try {\n // eslint-disable-next-line es/no-object-defineproperty -- safe\n Object.defineProperty([], 'length', { writable: false }).length = 1;\n } catch (error) {\n return error instanceof TypeError;\n }\n}();\n\nmodule.exports = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {\n if (isArray(O) && !getOwnPropertyDescriptor(O, 'length').writable) {\n throw new $TypeError('Cannot set read only .length');\n } return O.length = length;\n} : function (O, length) {\n return O.length = length;\n};\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\n\nvar toString = uncurryThis({}.toString);\nvar stringSlice = uncurryThis(''.slice);\n\nmodule.exports = function (it) {\n return stringSlice(toString(it), 8, -1);\n};\n","'use strict';\nvar hasOwn = require('../internals/has-own-property');\nvar ownKeys = require('../internals/own-keys');\nvar getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');\nvar definePropertyModule = require('../internals/object-define-property');\n\nmodule.exports = function (target, source, exceptions) {\n var keys = ownKeys(source);\n var defineProperty = definePropertyModule.f;\n var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {\n defineProperty(target, key, getOwnPropertyDescriptor(source, key));\n }\n }\n};\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = DESCRIPTORS ? function (object, key, value) {\n return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","'use strict';\nmodule.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","'use strict';\nvar isCallable = require('../internals/is-callable');\nvar definePropertyModule = require('../internals/object-define-property');\nvar makeBuiltIn = require('../internals/make-built-in');\nvar defineGlobalProperty = require('../internals/define-global-property');\n\nmodule.exports = function (O, key, value, options) {\n if (!options) options = {};\n var simple = options.enumerable;\n var name = options.name !== undefined ? options.name : key;\n if (isCallable(value)) makeBuiltIn(value, name, options);\n if (options.global) {\n if (simple) O[key] = value;\n else defineGlobalProperty(key, value);\n } else {\n try {\n if (!options.unsafe) delete O[key];\n else if (O[key]) simple = true;\n } catch (error) { /* empty */ }\n if (simple) O[key] = value;\n else definePropertyModule.f(O, key, {\n value: value,\n enumerable: false,\n configurable: !options.nonConfigurable,\n writable: !options.nonWritable\n });\n } return O;\n};\n","'use strict';\nvar global = require('../internals/global');\n\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\n\nmodule.exports = function (key, value) {\n try {\n defineProperty(global, key, { value: value, configurable: true, writable: true });\n } catch (error) {\n global[key] = value;\n } return value;\n};\n","'use strict';\nvar fails = require('../internals/fails');\n\n// Detect IE8's incomplete defineProperty implementation\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;\n});\n","'use strict';\nvar documentAll = typeof document == 'object' && document.all;\n\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot\n// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing\nvar IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;\n\nmodule.exports = {\n all: documentAll,\n IS_HTMLDDA: IS_HTMLDDA\n};\n","'use strict';\nvar global = require('../internals/global');\nvar isObject = require('../internals/is-object');\n\nvar document = global.document;\n// typeof document.createElement is 'object' in old IE\nvar EXISTS = isObject(document) && isObject(document.createElement);\n\nmodule.exports = function (it) {\n return EXISTS ? document.createElement(it) : {};\n};\n","'use strict';\nvar $TypeError = TypeError;\nvar MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991\n\nmodule.exports = function (it) {\n if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');\n return it;\n};\n","'use strict';\nmodule.exports = typeof navigator != 'undefined' && String(navigator.userAgent) || '';\n","'use strict';\nvar global = require('../internals/global');\nvar userAgent = require('../internals/engine-user-agent');\n\nvar process = global.process;\nvar Deno = global.Deno;\nvar versions = process && process.versions || Deno && Deno.version;\nvar v8 = versions && versions.v8;\nvar match, version;\n\nif (v8) {\n match = v8.split('.');\n // in old Chrome, versions of V8 isn't V8 = Chrome / 10\n // but their correct versions are not interesting for us\n version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);\n}\n\n// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`\n// so check `userAgent` even if `.v8` exists, but 0\nif (!version && userAgent) {\n match = userAgent.match(/Edge\\/(\\d+)/);\n if (!match || match[1] >= 74) {\n match = userAgent.match(/Chrome\\/(\\d+)/);\n if (match) version = +match[1];\n }\n}\n\nmodule.exports = version;\n","'use strict';\n// IE8- don't enum bug keys\nmodule.exports = [\n 'constructor',\n 'hasOwnProperty',\n 'isPrototypeOf',\n 'propertyIsEnumerable',\n 'toLocaleString',\n 'toString',\n 'valueOf'\n];\n","'use strict';\nvar global = require('../internals/global');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar defineGlobalProperty = require('../internals/define-global-property');\nvar copyConstructorProperties = require('../internals/copy-constructor-properties');\nvar isForced = require('../internals/is-forced');\n\n/*\n options.target - name of the target object\n options.global - target is the global object\n options.stat - export as static methods of target\n options.proto - export as prototype methods of target\n options.real - real prototype method for the `pure` version\n options.forced - export even if the native feature is available\n options.bind - bind methods to the target, required for the `pure` version\n options.wrap - wrap constructors to preventing global pollution, required for the `pure` version\n options.unsafe - use the simple assignment of property instead of delete + defineProperty\n options.sham - add a flag to not completely full polyfills\n options.enumerable - export as enumerable property\n options.dontCallGetSet - prevent calling a getter on target\n options.name - the .name of the function if it does not match the key\n*/\nmodule.exports = function (options, source) {\n var TARGET = options.target;\n var GLOBAL = options.global;\n var STATIC = options.stat;\n var FORCED, target, key, targetProperty, sourceProperty, descriptor;\n if (GLOBAL) {\n target = global;\n } else if (STATIC) {\n target = global[TARGET] || defineGlobalProperty(TARGET, {});\n } else {\n target = (global[TARGET] || {}).prototype;\n }\n if (target) for (key in source) {\n sourceProperty = source[key];\n if (options.dontCallGetSet) {\n descriptor = getOwnPropertyDescriptor(target, key);\n targetProperty = descriptor && descriptor.value;\n } else targetProperty = target[key];\n FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);\n // contained in target\n if (!FORCED && targetProperty !== undefined) {\n if (typeof sourceProperty == typeof targetProperty) continue;\n copyConstructorProperties(sourceProperty, targetProperty);\n }\n // add a flag to not completely full polyfills\n if (options.sham || (targetProperty && targetProperty.sham)) {\n createNonEnumerableProperty(sourceProperty, 'sham', true);\n }\n defineBuiltIn(target, key, sourceProperty, options);\n }\n};\n","'use strict';\nmodule.exports = function (exec) {\n try {\n return !!exec();\n } catch (error) {\n return true;\n }\n};\n","'use strict';\nvar fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-function-prototype-bind -- safe\n var test = (function () { /* empty */ }).bind();\n // eslint-disable-next-line no-prototype-builtins -- safe\n return typeof test != 'function' || test.hasOwnProperty('prototype');\n});\n","'use strict';\nvar NATIVE_BIND = require('../internals/function-bind-native');\n\nvar call = Function.prototype.call;\n\nmodule.exports = NATIVE_BIND ? call.bind(call) : function () {\n return call.apply(call, arguments);\n};\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar hasOwn = require('../internals/has-own-property');\n\nvar FunctionPrototype = Function.prototype;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;\n\nvar EXISTS = hasOwn(FunctionPrototype, 'name');\n// additional protection from minified / mangled / dropped function names\nvar PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';\nvar CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));\n\nmodule.exports = {\n EXISTS: EXISTS,\n PROPER: PROPER,\n CONFIGURABLE: CONFIGURABLE\n};\n","'use strict';\nvar NATIVE_BIND = require('../internals/function-bind-native');\n\nvar FunctionPrototype = Function.prototype;\nvar call = FunctionPrototype.call;\nvar uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);\n\nmodule.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) {\n return function () {\n return call.apply(fn, arguments);\n };\n};\n","'use strict';\nvar global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\n\nvar aFunction = function (argument) {\n return isCallable(argument) ? argument : undefined;\n};\n\nmodule.exports = function (namespace, method) {\n return arguments.length < 2 ? aFunction(global[namespace]) : global[namespace] && global[namespace][method];\n};\n","'use strict';\nvar aCallable = require('../internals/a-callable');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\n\n// `GetMethod` abstract operation\n// https://tc39.es/ecma262/#sec-getmethod\nmodule.exports = function (V, P) {\n var func = V[P];\n return isNullOrUndefined(func) ? undefined : aCallable(func);\n};\n","'use strict';\nvar check = function (it) {\n return it && it.Math === Math && it;\n};\n\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nmodule.exports =\n // eslint-disable-next-line es/no-global-this -- safe\n check(typeof globalThis == 'object' && globalThis) ||\n check(typeof window == 'object' && window) ||\n // eslint-disable-next-line no-restricted-globals -- safe\n check(typeof self == 'object' && self) ||\n check(typeof global == 'object' && global) ||\n // eslint-disable-next-line no-new-func -- fallback\n (function () { return this; })() || this || Function('return this')();\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar toObject = require('../internals/to-object');\n\nvar hasOwnProperty = uncurryThis({}.hasOwnProperty);\n\n// `HasOwnProperty` abstract operation\n// https://tc39.es/ecma262/#sec-hasownproperty\n// eslint-disable-next-line es/no-object-hasown -- safe\nmodule.exports = Object.hasOwn || function hasOwn(it, key) {\n return hasOwnProperty(toObject(it), key);\n};\n","'use strict';\nmodule.exports = {};\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\nvar createElement = require('../internals/document-create-element');\n\n// Thanks to IE8 for its funny defineProperty\nmodule.exports = !DESCRIPTORS && !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(createElement('div'), 'a', {\n get: function () { return 7; }\n }).a !== 7;\n});\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar classof = require('../internals/classof-raw');\n\nvar $Object = Object;\nvar split = uncurryThis(''.split);\n\n// fallback for non-array-like ES3 and non-enumerable old V8 strings\nmodule.exports = fails(function () {\n // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346\n // eslint-disable-next-line no-prototype-builtins -- safe\n return !$Object('z').propertyIsEnumerable(0);\n}) ? function (it) {\n return classof(it) === 'String' ? split(it, '') : $Object(it);\n} : $Object;\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar isCallable = require('../internals/is-callable');\nvar store = require('../internals/shared-store');\n\nvar functionToString = uncurryThis(Function.toString);\n\n// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper\nif (!isCallable(store.inspectSource)) {\n store.inspectSource = function (it) {\n return functionToString(it);\n };\n}\n\nmodule.exports = store.inspectSource;\n","'use strict';\nvar NATIVE_WEAK_MAP = require('../internals/weak-map-basic-detection');\nvar global = require('../internals/global');\nvar isObject = require('../internals/is-object');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar hasOwn = require('../internals/has-own-property');\nvar shared = require('../internals/shared-store');\nvar sharedKey = require('../internals/shared-key');\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar OBJECT_ALREADY_INITIALIZED = 'Object already initialized';\nvar TypeError = global.TypeError;\nvar WeakMap = global.WeakMap;\nvar set, get, has;\n\nvar enforce = function (it) {\n return has(it) ? get(it) : set(it, {});\n};\n\nvar getterFor = function (TYPE) {\n return function (it) {\n var state;\n if (!isObject(it) || (state = get(it)).type !== TYPE) {\n throw new TypeError('Incompatible receiver, ' + TYPE + ' required');\n } return state;\n };\n};\n\nif (NATIVE_WEAK_MAP || shared.state) {\n var store = shared.state || (shared.state = new WeakMap());\n /* eslint-disable no-self-assign -- prototype methods protection */\n store.get = store.get;\n store.has = store.has;\n store.set = store.set;\n /* eslint-enable no-self-assign -- prototype methods protection */\n set = function (it, metadata) {\n if (store.has(it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n store.set(it, metadata);\n return metadata;\n };\n get = function (it) {\n return store.get(it) || {};\n };\n has = function (it) {\n return store.has(it);\n };\n} else {\n var STATE = sharedKey('state');\n hiddenKeys[STATE] = true;\n set = function (it, metadata) {\n if (hasOwn(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n createNonEnumerableProperty(it, STATE, metadata);\n return metadata;\n };\n get = function (it) {\n return hasOwn(it, STATE) ? it[STATE] : {};\n };\n has = function (it) {\n return hasOwn(it, STATE);\n };\n}\n\nmodule.exports = {\n set: set,\n get: get,\n has: has,\n enforce: enforce,\n getterFor: getterFor\n};\n","'use strict';\nvar classof = require('../internals/classof-raw');\n\n// `IsArray` abstract operation\n// https://tc39.es/ecma262/#sec-isarray\n// eslint-disable-next-line es/no-array-isarray -- safe\nmodule.exports = Array.isArray || function isArray(argument) {\n return classof(argument) === 'Array';\n};\n","'use strict';\nvar $documentAll = require('../internals/document-all');\n\nvar documentAll = $documentAll.all;\n\n// `IsCallable` abstract operation\n// https://tc39.es/ecma262/#sec-iscallable\nmodule.exports = $documentAll.IS_HTMLDDA ? function (argument) {\n return typeof argument == 'function' || argument === documentAll;\n} : function (argument) {\n return typeof argument == 'function';\n};\n","'use strict';\nvar fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\n\nvar replacement = /#|\\.prototype\\./;\n\nvar isForced = function (feature, detection) {\n var value = data[normalize(feature)];\n return value === POLYFILL ? true\n : value === NATIVE ? false\n : isCallable(detection) ? fails(detection)\n : !!detection;\n};\n\nvar normalize = isForced.normalize = function (string) {\n return String(string).replace(replacement, '.').toLowerCase();\n};\n\nvar data = isForced.data = {};\nvar NATIVE = isForced.NATIVE = 'N';\nvar POLYFILL = isForced.POLYFILL = 'P';\n\nmodule.exports = isForced;\n","'use strict';\n// we can't use just `it == null` since of `document.all` special case\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec\nmodule.exports = function (it) {\n return it === null || it === undefined;\n};\n","'use strict';\nvar isCallable = require('../internals/is-callable');\nvar $documentAll = require('../internals/document-all');\n\nvar documentAll = $documentAll.all;\n\nmodule.exports = $documentAll.IS_HTMLDDA ? function (it) {\n return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll;\n} : function (it) {\n return typeof it == 'object' ? it !== null : isCallable(it);\n};\n","'use strict';\nmodule.exports = false;\n","'use strict';\nvar getBuiltIn = require('../internals/get-built-in');\nvar isCallable = require('../internals/is-callable');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar $Object = Object;\n\nmodule.exports = USE_SYMBOL_AS_UID ? function (it) {\n return typeof it == 'symbol';\n} : function (it) {\n var $Symbol = getBuiltIn('Symbol');\n return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));\n};\n","'use strict';\nvar toLength = require('../internals/to-length');\n\n// `LengthOfArrayLike` abstract operation\n// https://tc39.es/ecma262/#sec-lengthofarraylike\nmodule.exports = function (obj) {\n return toLength(obj.length);\n};\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\nvar hasOwn = require('../internals/has-own-property');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar CONFIGURABLE_FUNCTION_NAME = require('../internals/function-name').CONFIGURABLE;\nvar inspectSource = require('../internals/inspect-source');\nvar InternalStateModule = require('../internals/internal-state');\n\nvar enforceInternalState = InternalStateModule.enforce;\nvar getInternalState = InternalStateModule.get;\nvar $String = String;\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\nvar stringSlice = uncurryThis(''.slice);\nvar replace = uncurryThis(''.replace);\nvar join = uncurryThis([].join);\n\nvar CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () {\n return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;\n});\n\nvar TEMPLATE = String(String).split('String');\n\nvar makeBuiltIn = module.exports = function (value, name, options) {\n if (stringSlice($String(name), 0, 7) === 'Symbol(') {\n name = '[' + replace($String(name), /^Symbol\\(([^)]*)\\)/, '$1') + ']';\n }\n if (options && options.getter) name = 'get ' + name;\n if (options && options.setter) name = 'set ' + name;\n if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {\n if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true });\n else value.name = name;\n }\n if (CONFIGURABLE_LENGTH && options && hasOwn(options, 'arity') && value.length !== options.arity) {\n defineProperty(value, 'length', { value: options.arity });\n }\n try {\n if (options && hasOwn(options, 'constructor') && options.constructor) {\n if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false });\n // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable\n } else if (value.prototype) value.prototype = undefined;\n } catch (error) { /* empty */ }\n var state = enforceInternalState(value);\n if (!hasOwn(state, 'source')) {\n state.source = join(TEMPLATE, typeof name == 'string' ? name : '');\n } return value;\n};\n\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n// eslint-disable-next-line no-extend-native -- required\nFunction.prototype.toString = makeBuiltIn(function toString() {\n return isCallable(this) && getInternalState(this).source || inspectSource(this);\n}, 'toString');\n","'use strict';\nvar ceil = Math.ceil;\nvar floor = Math.floor;\n\n// `Math.trunc` method\n// https://tc39.es/ecma262/#sec-math.trunc\n// eslint-disable-next-line es/no-math-trunc -- safe\nmodule.exports = Math.trunc || function trunc(x) {\n var n = +x;\n return (n > 0 ? floor : ceil)(n);\n};\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\nvar V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug');\nvar anObject = require('../internals/an-object');\nvar toPropertyKey = require('../internals/to-property-key');\n\nvar $TypeError = TypeError;\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar $defineProperty = Object.defineProperty;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar ENUMERABLE = 'enumerable';\nvar CONFIGURABLE = 'configurable';\nvar WRITABLE = 'writable';\n\n// `Object.defineProperty` method\n// https://tc39.es/ecma262/#sec-object.defineproperty\nexports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {\n var current = $getOwnPropertyDescriptor(O, P);\n if (current && current[WRITABLE]) {\n O[P] = Attributes.value;\n Attributes = {\n configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],\n enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],\n writable: false\n };\n }\n } return $defineProperty(O, P, Attributes);\n} : $defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return $defineProperty(O, P, Attributes);\n } catch (error) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw new $TypeError('Accessors not supported');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar call = require('../internals/function-call');\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toPropertyKey = require('../internals/to-property-key');\nvar hasOwn = require('../internals/has-own-property');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\n\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// `Object.getOwnPropertyDescriptor` method\n// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor\nexports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {\n O = toIndexedObject(O);\n P = toPropertyKey(P);\n if (IE8_DOM_DEFINE) try {\n return $getOwnPropertyDescriptor(O, P);\n } catch (error) { /* empty */ }\n if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);\n};\n","'use strict';\nvar internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\nvar hiddenKeys = enumBugKeys.concat('length', 'prototype');\n\n// `Object.getOwnPropertyNames` method\n// https://tc39.es/ecma262/#sec-object.getownpropertynames\n// eslint-disable-next-line es/no-object-getownpropertynames -- safe\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return internalObjectKeys(O, hiddenKeys);\n};\n","'use strict';\n// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe\nexports.f = Object.getOwnPropertySymbols;\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = uncurryThis({}.isPrototypeOf);\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar hasOwn = require('../internals/has-own-property');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar indexOf = require('../internals/array-includes').indexOf;\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar push = uncurryThis([].push);\n\nmodule.exports = function (object, names) {\n var O = toIndexedObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (hasOwn(O, key = names[i++])) {\n ~indexOf(result, key) || push(result, key);\n }\n return result;\n};\n","'use strict';\nvar $propertyIsEnumerable = {}.propertyIsEnumerable;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// Nashorn ~ JDK8 bug\nvar NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);\n\n// `Object.prototype.propertyIsEnumerable` method implementation\n// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable\nexports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {\n var descriptor = getOwnPropertyDescriptor(this, V);\n return !!descriptor && descriptor.enumerable;\n} : $propertyIsEnumerable;\n","'use strict';\nvar call = require('../internals/function-call');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\n\nvar $TypeError = TypeError;\n\n// `OrdinaryToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-ordinarytoprimitive\nmodule.exports = function (input, pref) {\n var fn, val;\n if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val;\n if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n throw new $TypeError(\"Can't convert object to primitive value\");\n};\n","'use strict';\nvar getBuiltIn = require('../internals/get-built-in');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');\nvar getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');\nvar anObject = require('../internals/an-object');\n\nvar concat = uncurryThis([].concat);\n\n// all object keys, includes non-enumerable and symbols\nmodule.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {\n var keys = getOwnPropertyNamesModule.f(anObject(it));\n var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;\n};\n","'use strict';\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\n\nvar $TypeError = TypeError;\n\n// `RequireObjectCoercible` abstract operation\n// https://tc39.es/ecma262/#sec-requireobjectcoercible\nmodule.exports = function (it) {\n if (isNullOrUndefined(it)) throw new $TypeError(\"Can't call method on \" + it);\n return it;\n};\n","'use strict';\nvar shared = require('../internals/shared');\nvar uid = require('../internals/uid');\n\nvar keys = shared('keys');\n\nmodule.exports = function (key) {\n return keys[key] || (keys[key] = uid(key));\n};\n","'use strict';\nvar global = require('../internals/global');\nvar defineGlobalProperty = require('../internals/define-global-property');\n\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || defineGlobalProperty(SHARED, {});\n\nmodule.exports = store;\n","'use strict';\nvar IS_PURE = require('../internals/is-pure');\nvar store = require('../internals/shared-store');\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: '3.33.0',\n mode: IS_PURE ? 'pure' : 'global',\n copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',\n license: 'https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE',\n source: 'https://github.com/zloirock/core-js'\n});\n","'use strict';\n/* eslint-disable es/no-symbol -- required for testing */\nvar V8_VERSION = require('../internals/engine-v8-version');\nvar fails = require('../internals/fails');\nvar global = require('../internals/global');\n\nvar $String = global.String;\n\n// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing\nmodule.exports = !!Object.getOwnPropertySymbols && !fails(function () {\n var symbol = Symbol('symbol detection');\n // Chrome 38 Symbol has incorrect toString conversion\n // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances\n // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,\n // of course, fail.\n return !$String(symbol) || !(Object(symbol) instanceof Symbol) ||\n // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances\n !Symbol.sham && V8_VERSION && V8_VERSION < 41;\n});\n","'use strict';\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar max = Math.max;\nvar min = Math.min;\n\n// Helper for a popular repeating case of the spec:\n// Let integer be ? ToInteger(index).\n// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).\nmodule.exports = function (index, length) {\n var integer = toIntegerOrInfinity(index);\n return integer < 0 ? max(integer + length, 0) : min(integer, length);\n};\n","'use strict';\n// toObject with fallback for non-array-like ES3 strings\nvar IndexedObject = require('../internals/indexed-object');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nmodule.exports = function (it) {\n return IndexedObject(requireObjectCoercible(it));\n};\n","'use strict';\nvar trunc = require('../internals/math-trunc');\n\n// `ToIntegerOrInfinity` abstract operation\n// https://tc39.es/ecma262/#sec-tointegerorinfinity\nmodule.exports = function (argument) {\n var number = +argument;\n // eslint-disable-next-line no-self-compare -- NaN check\n return number !== number || number === 0 ? 0 : trunc(number);\n};\n","'use strict';\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar min = Math.min;\n\n// `ToLength` abstract operation\n// https://tc39.es/ecma262/#sec-tolength\nmodule.exports = function (argument) {\n return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991\n};\n","'use strict';\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nvar $Object = Object;\n\n// `ToObject` abstract operation\n// https://tc39.es/ecma262/#sec-toobject\nmodule.exports = function (argument) {\n return $Object(requireObjectCoercible(argument));\n};\n","'use strict';\nvar call = require('../internals/function-call');\nvar isObject = require('../internals/is-object');\nvar isSymbol = require('../internals/is-symbol');\nvar getMethod = require('../internals/get-method');\nvar ordinaryToPrimitive = require('../internals/ordinary-to-primitive');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar $TypeError = TypeError;\nvar TO_PRIMITIVE = wellKnownSymbol('toPrimitive');\n\n// `ToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-toprimitive\nmodule.exports = function (input, pref) {\n if (!isObject(input) || isSymbol(input)) return input;\n var exoticToPrim = getMethod(input, TO_PRIMITIVE);\n var result;\n if (exoticToPrim) {\n if (pref === undefined) pref = 'default';\n result = call(exoticToPrim, input, pref);\n if (!isObject(result) || isSymbol(result)) return result;\n throw new $TypeError(\"Can't convert object to primitive value\");\n }\n if (pref === undefined) pref = 'number';\n return ordinaryToPrimitive(input, pref);\n};\n","'use strict';\nvar toPrimitive = require('../internals/to-primitive');\nvar isSymbol = require('../internals/is-symbol');\n\n// `ToPropertyKey` abstract operation\n// https://tc39.es/ecma262/#sec-topropertykey\nmodule.exports = function (argument) {\n var key = toPrimitive(argument, 'string');\n return isSymbol(key) ? key : key + '';\n};\n","'use strict';\nvar $String = String;\n\nmodule.exports = function (argument) {\n try {\n return $String(argument);\n } catch (error) {\n return 'Object';\n }\n};\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\n\nvar id = 0;\nvar postfix = Math.random();\nvar toString = uncurryThis(1.0.toString);\n\nmodule.exports = function (key) {\n return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);\n};\n","'use strict';\n/* eslint-disable es/no-symbol -- required for testing */\nvar NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');\n\nmodule.exports = NATIVE_SYMBOL\n && !Symbol.sham\n && typeof Symbol.iterator == 'symbol';\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\n\n// V8 ~ Chrome 36-\n// https://bugs.chromium.org/p/v8/issues/detail?id=3334\nmodule.exports = DESCRIPTORS && fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(function () { /* empty */ }, 'prototype', {\n value: 42,\n writable: false\n }).prototype !== 42;\n});\n","'use strict';\nvar global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\n\nvar WeakMap = global.WeakMap;\n\nmodule.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap));\n","'use strict';\nvar global = require('../internals/global');\nvar shared = require('../internals/shared');\nvar hasOwn = require('../internals/has-own-property');\nvar uid = require('../internals/uid');\nvar NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar Symbol = global.Symbol;\nvar WellKnownSymbolsStore = shared('wks');\nvar createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol['for'] || Symbol : Symbol && Symbol.withoutSetter || uid;\n\nmodule.exports = function (name) {\n if (!hasOwn(WellKnownSymbolsStore, name)) {\n WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn(Symbol, name)\n ? Symbol[name]\n : createWellKnownSymbol('Symbol.' + name);\n } return WellKnownSymbolsStore[name];\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar toObject = require('../internals/to-object');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar setArrayLength = require('../internals/array-set-length');\nvar doesNotExceedSafeInteger = require('../internals/does-not-exceed-safe-integer');\nvar fails = require('../internals/fails');\n\nvar INCORRECT_TO_LENGTH = fails(function () {\n return [].push.call({ length: 0x100000000 }, 1) !== 4294967297;\n});\n\n// V8 and Safari <= 15.4, FF < 23 throws InternalError\n// https://bugs.chromium.org/p/v8/issues/detail?id=12681\nvar properErrorOnNonWritableLength = function () {\n try {\n // eslint-disable-next-line es/no-object-defineproperty -- safe\n Object.defineProperty([], 'length', { writable: false }).push();\n } catch (error) {\n return error instanceof TypeError;\n }\n};\n\nvar FORCED = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength();\n\n// `Array.prototype.push` method\n// https://tc39.es/ecma262/#sec-array.prototype.push\n$({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n push: function push(item) {\n var O = toObject(this);\n var len = lengthOfArrayLike(O);\n var argCount = arguments.length;\n doesNotExceedSafeInteger(len + argCount);\n for (var i = 0; i < argCount; i++) {\n O[len] = arguments[i];\n len++;\n }\n setArrayLength(O, len);\n return len;\n }\n});\n","/* eslint-disable no-unused-vars */\r\n/*\r\n --------------------------------------------------------------\r\n * FileName:xtxasyn.js\r\n * This Javascript provides asynchronous interfaces\r\n * Support bjca client version 3.4.1 and later\r\n * Author:BJCA-zys\r\n * Date: 2021-05-06\r\n *\r\n --------------------------------------------------------------\r\n */\r\n \r\n(function() {\r\nif (typeof xtxasyn === 'undefined') {\r\n // eslint-disable-next-line no-undef\r\n xtxasyn = {};\r\n}\r\n})();\r\n\r\n// initialize xtxasyn hashMap object\r\n(function() {\r\n\r\nfunction XTXAsynHashMap(){\r\n this.map = {};\r\n}\r\n\r\nXTXAsynHashMap.prototype = {\r\n put : function(key , value){\r\n this.map[key] = value;\r\n },\r\n\r\n get : function(key){\r\n // eslint-disable-next-line no-prototype-builtins\r\n if(this.map.hasOwnProperty(key)){\r\n return this.map[key];\r\n }\r\n return null;\r\n },\r\n \r\n remove : function(key){\r\n // eslint-disable-next-line no-prototype-builtins\r\n if(this.map.hasOwnProperty(key)){\r\n return delete this.map[key];\r\n }\r\n return false;\r\n },\r\n \r\n removeAll : function(){\r\n this.map = {};\r\n },\r\n \r\n keySet : function(){\r\n var _keys = [];\r\n for(var i in this.map){\r\n _keys.push(i);\r\n }\r\n return _keys;\r\n }\r\n};\r\n\r\nXTXAsynHashMap.prototype.constructor = XTXAsynHashMap;\r\n\r\n// eslint-disable-next-line no-undef\r\nxtxasyn.HashMap = XTXAsynHashMap;\r\n})();\r\n\r\n// initialize xtxasyn util object\r\n(function() {\r\n\r\nfunction initUtilObject(xtxasyn) {\r\n\r\n var util = xtxasyn.util = xtxasyn.util || {};\r\n \r\n util.checkBrowserISIE = function() {\r\n return (!!window.ActiveXObject || 'ActiveXObject' in window) ? true : false;\r\n }\r\n \r\n util.checkLocationIsHttps = function() {\r\n return 'https:' == document.location.protocol ? true: false;\r\n }\r\n \r\n util.evalFunction = function (func) {\r\n if (typeof func === 'function') {\r\n return func;\r\n } else if (typeof func === 'string') {\r\n // eslint-disable-next-line no-undef\r\n cb = eval(func);\r\n } else {\r\n return null;\r\n }\r\n }\r\n \r\n util.consolelog = function(param) {\r\n if (window.console == undefined || window.console.log == undefined) {\r\n return;\r\n }\r\n console.log(param);\r\n }\r\n \r\n util.isEmpty = function(param) {\r\n if (!param) {\r\n return true;\r\n }\r\n if (typeof param == 'string' && param == \"\") {\r\n return true;\r\n }\r\n \r\n return false;\r\n }\r\n\r\n util.loadIECtl = function(clsid, ctlName, checkFunc) {\r\n if (!util.checkBrowserISIE()) {\r\n return null;\r\n }\r\n var ctl = document.getElementById(ctlName);\r\n if (ctl) {\r\n return ctl;\r\n }\r\n try {\r\n var loadObjString = '<object id=\"' + ctlName + '\" classid=\"CLSID:' + clsid + '\" style=\"HEIGHT:0px; WIDTH:0px\">';\r\n loadObjString += '</object>';\r\n document.write(loadObjString);\r\n if (checkFunc != null && checkFunc != \"\" && eval(ctlName + \".\" + checkFunc) == undefined) {\r\n return null; \r\n }\r\n } catch (e) {\r\n util.consolelog(e);\r\n return null;\r\n }\r\n return document.getElementById(ctlName);\r\n }\r\n\r\n util.getAutoExecFunctionString = function (func) {\r\n var ret = \"(\";\r\n ret += func.toString();\r\n ret += \")()\";\r\n \r\n return ret;\r\n }\r\n\r\n util.attachIEEvent = function(ctlName, eventName, eventFunc) {\r\n var ctl;\r\n if (typeof ctlName === 'string') {\r\n ctl = eval(ctlName);\r\n } else {\r\n ctl = ctlName;\r\n }\r\n eventName = eventName.toLowerCase();\r\n\r\n var cb = util.evalFunction(eventFunc);\r\n if (cb == null) {\r\n return;\r\n }\r\n\r\n if (ctl.attachEvent) {\r\n ctl.attachEvent(eventName, cb);\r\n } else { // IE11 not support attachEvent, and addEventListener do not work well, so addEvent ourself\r\n var handler = document.createElement(\"script\");\r\n handler.setAttribute(\"for\", ctlName);\r\n handler.setAttribute(\"event\", eventName);\r\n var eventScript = util.getAutoExecFunctionString(eventFunc);\r\n handler.appendChild(document.createTextNode(eventScript));\r\n document.getElementsByTagName(\"head\")[0].appendChild(handler);\r\n }\r\n }\r\n\r\n util.loadWebSocketCtl = function(wsUrl, wssUrl) {\r\n if (xtxasyn.wsObject) {\r\n return xtxasyn.wsObject;\r\n }\r\n var url;\r\n if (util.checkLocationIsHttps()) {\r\n url = \"wss://\" + wssUrl;\r\n } else {\r\n url = \"ws://\" + wsUrl;\r\n }\r\n \r\n var wsObject = {\r\n socket : undefined,\r\n wsMessageQueue : new xtxasyn.HashMap(),\r\n wsMessageQueueId : 0,\r\n wsEventQueue : new xtxasyn.HashMap(),\r\n wsURL : url,\r\n wsCacheMessage : []\r\n };\r\n xtxasyn.wsObject = wsObject;\r\n xtxasyn.wsObject.wsEventQueue.put(\"onusbkeychange\", util.evalFunction(xtxasyn.custom.defaultUsbkeyChange));\r\n \r\n try {\r\n wsObject.socket = new WebSocket(url); \r\n } catch (e) {\r\n util.consolelog(e);\r\n return null;\r\n }\r\n \r\n // eslint-disable-next-line no-unused-vars\r\n wsObject.socket.onopen = function(evt) {\r\n xtxasyn.util.consolelog(\"open websocket[\" + url + \"] ok...\");\r\n xtxasyn.SOF_GetVersion(function(ret) {\r\n util.consolelog(\"SOF_GetVersion:(\" + ret.retVal + \")\");\r\n });\r\n while (xtxasyn.wsObject.wsCacheMessage.length > 0) {\r\n var tb_send = xtxasyn.wsObject.wsCacheMessage.shift();\r\n //alert(tb_send);\r\n xtxasyn.wsObject.socket.send(tb_send);\r\n }\r\n }\r\n // eslint-disable-next-line no-unused-vars\r\n wsObject.socket.onclose = function(evt) {\r\n util.consolelog(\"websocket[\" + url + \"] closed, reopen it...\");\r\n xtxasyn.wsObject = undefined;\r\n xtxasyn.XTXAppWebSocket = xtxasyn.util.loadWebSocketCtl(wsUrl, wssUrl);\r\n };\r\n wsObject.socket.onmessage = function(evt) {\r\n // eslint-disable-next-line no-unused-vars\r\n var eventCmd = false;\r\n if (xtxasyn.util.isEmpty(evt.data)) {\r\n util.consolelog(\"onmessage evt.data is NULL or empty!!!\");\r\n return;\r\n }\r\n try {\r\n var res = JSON.parse(evt.data);\r\n var cmdId = undefined;\r\n // eslint-disable-next-line no-prototype-builtins\r\n if (res.hasOwnProperty('call_cmd_id')) {\r\n cmdId = res['call_cmd_id'];\r\n } else {\r\n util.consolelog(\"return JSON not include call_cmd_id!!!\");\r\n return;\r\n }\r\n \r\n var retVal = undefined;\r\n // eslint-disable-next-line no-prototype-builtins\r\n if (res.hasOwnProperty('retValue')) {\r\n retVal = res['retValue'];\r\n // eslint-disable-next-line no-prototype-builtins\r\n } else if (res.hasOwnProperty('retVal')) {\r\n retVal = res['retVal'];\r\n }\r\n \r\n var methodName = undefined;\r\n var eventName = cmdId.toLowerCase();\r\n var execFunc = xtxasyn.wsObject.wsEventQueue.get(eventName);\r\n if (execFunc && typeof execFunc == 'function') { // event\r\n execFunc(retVal);\r\n } else { // function\r\n var messageQueue = xtxasyn.wsObject.wsMessageQueue.get(cmdId);\r\n if (!messageQueue || !messageQueue.method) {\r\n util.consolelog(\"can't find call_cmd_id[\" + res['call_cmd_id'] + \"]'s method name!!!\");\r\n return;\r\n }\r\n methodName = messageQueue.method;\r\n execFunc = messageQueue.cb;\r\n if (!execFunc || typeof execFunc != 'function') {\r\n util.consolelog(\"can't find call_cmd_id[\" + res['call_cmd_id'] + \"]'s call back function!!!\");\r\n return;\r\n }\r\n var ctx = messageQueue.ctx;\r\n ctx = ctx || {returnType:\"string\"};\r\n var ret;\r\n if (ctx.returnType == \"bool\"){\r\n if (typeof(retVal) == 'string') {\r\n ret = retVal == \"true\" ? true : false;\r\n } else {\r\n ret = retVal;\r\n }\r\n if (ret == undefined) {\r\n ret = false;\r\n }\r\n } else if (ctx.returnType == \"number\"){\r\n if (typeof(retVal) == 'string') {\r\n ret = Number(retVal);\r\n } else {\r\n ret = retVal;\r\n }\r\n if (ret == undefined) {\r\n ret = -1;\r\n }\r\n } else{\r\n ret = retVal;\r\n if (ret == undefined) {\r\n ret = \"\";\r\n }\r\n }\r\n if (res.token) {\r\n //alert(res.token);\r\n xtxasyn.custom.setToken(res.token);\r\n }\r\n if (((methodName == 'SOF_Login' || methodName == 'SOF_LoginEx') && !ret) || (methodName == 'SOF_Logout' && ret)) {\r\n xtxasyn.custom.setToken(\"\");\r\n } \r\n var retObj = {retVal:ret, ctx:ctx};\r\n execFunc(retObj);\r\n xtxasyn.wsObject.wsMessageQueue.remove(cmdId);\r\n }\r\n } catch (e) {\r\n return;\r\n }\r\n };\r\n wsObject.socket.onerror = function(evt) { \r\n xtxasyn.util.consolelog(evt.data);\r\n };\r\n \r\n return wsObject;\r\n }\r\n \r\n util.attachWebSocketEvent = function(wsObject, eventName, eventFunc) {\r\n if (wsObject == null) {\r\n return;\r\n }\r\n wsObject.wsEventQueue.put(eventName.toLowerCase(), util.evalFunction(eventFunc));\r\n }\r\n \r\n util.callWebSocketMethod = function (wsObject, clsid, method, cb, ctx, returnType, argsArray) {\r\n if (wsObject == null) {\r\n return;\r\n }\r\n wsObject.wsMessageQueueId++;\r\n if (typeof(cb) == 'function'){\r\n ctx = ctx || {};\r\n ctx.returnType = returnType;\r\n var messageQueue = {cb:cb, ctx:ctx, method:method};\r\n wsObject.wsMessageQueue.put('i_' + wsObject.wsMessageQueueId, messageQueue);\r\n }\r\n\r\n var sendArray = {\r\n 'call_cmd_id' : 'i_' + wsObject.wsMessageQueueId,\r\n 'CLSID' : clsid,\r\n 'xtx_func_name' : method,\r\n 'func' : method,\r\n 'URL' : window.location.href\r\n };\r\n if (arguments.length > 6) {\r\n for (var i = 1; i <= argsArray.length; i++) {\r\n var strParam = \"param_\" + i;\r\n sendArray[strParam] = argsArray[i - 1];\r\n }\r\n sendArray[\"param\"] = argsArray;\r\n }\r\n var token = xtxasyn.custom.getToken();\r\n if (token && token != \"\") {\r\n sendArray.token = token;\r\n }\r\n if (wsObject.socket.readyState == WebSocket.OPEN) {\r\n wsObject.socket.send(JSON.stringify(sendArray));\r\n } else if (wsObject.socket.readyState == WebSocket.CONNECTING) {\r\n // The websocket connection has not been successfully created. \r\n // If the html page already has requested data, we will put it in the cache(wsObject.wsCacheMessage),\r\n // and then send the data one by one after the connection is successfully created.\r\n wsObject.wsCacheMessage.push(JSON.stringify(sendArray));\r\n } else {\r\n xtxasyn.util.consolelog(\"Can't connect to WebSocket server[\" + wsObject.wsURL + \"]!!!\");\r\n }\r\n }\r\n\r\n util.SynToAsyn = function(retVal, cb, ctx)\r\n {\r\n if (typeof cb == 'function') {\r\n var retObj = {retVal:retVal, ctx:ctx};\r\n cb(retObj);\r\n } \r\n }\r\n}\r\n\r\n// eslint-disable-next-line no-undef\r\nreturn initUtilObject(xtxasyn);\r\n})();\r\n\r\n// initialize index page and other custom action\r\n(function() {\r\n \r\nfunction initCustomActions(xtxasyn) {\r\n var custom = xtxasyn.custom = xtxasyn.custom || {};\r\n \r\n custom.softCertListID = \"\";\r\n custom.hardCertListID = \"\";\r\n custom.allCertListID = \"\";\r\n custom.loginCertID = \"\";\r\n custom.logoutFunc = null;\r\n custom.UsbkeyChangeFunc = null;\r\n custom.loginToken = \"\";\r\n \r\n custom.errorReportFunc = function(msg) {\r\n alert(msg);\r\n }\r\n \r\n custom.setAutoLogoutParameter = function(strCertID, logoutFunc) {\r\n var custom = xtxasyn.custom;\r\n custom.loginCertID = strCertID;\r\n custom.logoutFunc = logoutFunc;\r\n }\r\n\r\n custom.clearDropList = function(dropListId) {\r\n if (dropListId == \"\") {\r\n return;\r\n }\r\n\r\n var obj = document.getElementById(dropListId);\r\n if (obj == undefined) {\r\n obj = eval(dropListId);\r\n } \r\n if (obj == undefined) {\r\n return;\r\n }\r\n\r\n var i, n = obj.length;\r\n for (i = 0; i < n; i++) {\r\n obj.remove(0);\r\n }\r\n }\r\n\r\n custom.pushOneDropListBox = function(userListArray, strListID) \r\n {\r\n var obj = document.getElementById(strListID);\r\n if (obj == undefined) {\r\n obj = eval(strListID);\r\n }\r\n if (obj == undefined) {\r\n return;\r\n }\r\n \r\n for (var i = 0; i < userListArray.length; i++) {\r\n var certObj = userListArray[i];\r\n var objItem = new Option(certObj.certName, certObj.certID);\r\n obj.options.add(objItem);\r\n } \r\n return;\r\n }\r\n\r\n custom.pushUserListToAllDroplist = function(retObj) {\r\n var custom = xtxasyn.custom;\r\n\r\n custom.clearDropList(custom.softCertListID);\r\n custom.clearDropList(custom.hardCertListID);\r\n custom.clearDropList(custom.allCertListID);\r\n\r\n var strUserList = retObj.retVal;\r\n var allListArray = [];\r\n // eslint-disable-next-line no-constant-condition\r\n while (true) {\r\n var i = strUserList.indexOf(\"&&&\");\r\n if (i <= 0 ) {\r\n break;\r\n }\r\n var strOneUser = strUserList.substring(0, i);\r\n var strName = strOneUser.substring(0, strOneUser.indexOf(\"||\"));\r\n var strCertID = strOneUser.substring(strOneUser.indexOf(\"||\") + 2, strOneUser.length);\r\n allListArray.push({certName:strName, certID:strCertID});\r\n \r\n if (custom.hardCertListID != \"\") {\r\n xtxasyn.GetDeviceInfo(strCertID, 7, function(retObj) {\r\n if (retObj.retVal == \"HARD\") {\r\n custom.pushOneDropListBox([retObj.ctx], custom.hardCertListID);\r\n }\r\n }, {certName:strName, certID:strCertID});\r\n }\r\n \r\n if (custom.softCertListID != \"\") {\r\n xtxasyn.GetDeviceInfo(strCertID, 7, function(retObj) {\r\n if (retObj.retVal == \"SOFT\") {\r\n custom.pushOneDropListBox([retObj.ctx], custom.softCertListID);\r\n }\r\n }, {certName:strName, certID:strCertID});\r\n }\r\n var len = strUserList.length;\r\n strUserList = strUserList.substring(i + 3, len);\r\n }\r\n\r\n if (custom.allCertListID != \"\") {\r\n custom.pushOneDropListBox(allListArray, custom.allCertListID);\r\n }\r\n }\r\n \r\n custom.setUserCertList = function(certListId, certType) {\r\n var custom = xtxasyn.custom;\r\n\r\n if (certType == CERT_TYPE_ALL || certType == undefined) {\r\n custom.allCertListID = certListId;\r\n }\r\n \r\n if (certType == CERT_TYPE_HARD) {\r\n custom.hardCertListID = certListId;\r\n }\r\n \r\n if (certType == CERT_TYPE_SOFT) {\r\n custom.softCertListID = certListId;\r\n }\r\n xtxasyn.SOF_GetUserList(custom.pushUserListToAllDroplist);\r\n }\r\n \r\n custom.setOnUsbKeyChangeCallBack = function(callback) {\r\n var custom = xtxasyn.custom;\r\n custom.UsbkeyChangeFunc = callback;\r\n }\r\n \r\n custom.setErrorReportFunc = function(errFunc) {\r\n var custom = xtxasyn.custom;\r\n custom.errorReportFunc = errFunc;\r\n }\r\n\r\n custom.autoLogoutCallBack = function(retObj) {\r\n var custom = xtxasyn.custom;\r\n if (retObj.retVal.indexOf(custom.loginCertID) <= 0) {\r\n custom.logoutFunc();\r\n }\r\n }\r\n \r\n custom.defaultUsbkeyChange = function() {\r\n var custom = xtxasyn.custom;\r\n xtxasyn.SOF_GetUserList(custom.pushUserListToAllDroplist);\r\n \r\n if (typeof custom.UsbkeyChangeFunc == 'function') {\r\n custom.UsbkeyChangeFunc();\r\n }\r\n\r\n if (custom.loginCertID != \"\" && typeof custom.logoutFunc == 'function') {\r\n xtxasyn.SOF_GetUserList(custom.autoLogoutCallBack);\r\n }\r\n }\r\n \r\n custom.getToken = function() {\r\n return custom.loginToken;\r\n }\r\n \r\n custom.setToken = function(token) {\r\n custom.loginToken = token;\r\n }\r\n}\r\n\r\n// eslint-disable-next-line no-undef\r\nreturn initCustomActions(xtxasyn);\r\n})();\r\n\r\n// initialize xtxappcom object\r\n(function() {\r\n \r\nfunction initXTXAppCOM(xtxasyn) {\r\n var util = xtxasyn.util;\r\n var custom = xtxasyn.custom; \r\n\r\n xtxasyn.XTXAppCOM = util.loadIECtl(xtxasyn.xtx_clsid, \"XTXAppObj\", \"SOF_GetVersion()\");\r\n if (xtxasyn.XTXAppCOM == null) {\r\n custom.errorReportFunc(\"加载XTXAppCOM控件失败,请确认已正确安装BJCA证书应用环境!\");\r\n return false;\r\n }\r\n var XTXAppCOM = xtxasyn.XTXAppCOM;\r\n \r\n util.attachIEEvent(\"XTXAppObj\", \"onUsbkeyChange\", xtxasyn.custom.defaultUsbkeyChange);\r\n \r\n // get key pic interface\r\n var GetPicObj = util.loadIECtl(xtxasyn.getpic_clsid, \"GetPicObj\", \"Hash('0')\");\r\n if (GetPicObj == null) {\r\n //custom.errorReportFunc(\"加载GetKeyPic控件失败,请确认已正确安装GetKeyPic控件!\");\r\n } else {\r\n XTXAppCOM.GetPic = function(strCertID) {\r\n return GetPicObj.GetPic(strCertID);\r\n }\r\n XTXAppCOM.Hash = function(inData) {\r\n return GetPicObj.Hash(inData);\r\n }\r\n XTXAppCOM.ConvertPicFormat = function(inData, type) {\r\n return GetPicObj.ConvertPicFormat(inData, type);\r\n }\r\n XTXAppCOM.ConvertGif2Jpg = function(inData) {\r\n return GetPicObj.ConvertGif2Jpg(inData);\r\n }\r\n XTXAppCOM.GetPic1 = function(strCertID) {\r\n return GetPicObj.GetPic1(strCertID);\r\n }\r\n XTXAppCOM.ConvertPicSize = function(strPicture, w, h) {\r\n return GetPicObj.ConvertPicSize(strPicture, w, h);\r\n }\r\n }\r\n \r\n // xtxversion interface\r\n var XTXVersionOBJ = util.loadIECtl(xtxasyn.xtx_version_clsid, \"XTXVersionOBJ\", \"GetEnvVersion()\");\r\n if (XTXVersionOBJ == null) {\r\n //custom.errorReportFunc(\"加载XTXVersion控件失败,请确认已正确安装证书应用环境!\");\r\n } else {\r\n XTXAppCOM.GetEnvVersion = function() {\r\n return XTXVersionOBJ.GetEnvVersion();\r\n }\r\n } \r\n \r\n return true;\r\n}\r\n\r\nfunction initXTXAppWebSocket(xtxasyn) { \r\n xtxasyn.XTXAppWebSocket = xtxasyn.util.loadWebSocketCtl(\"127.0.0.1:21051/xtxapp/\", \"127.0.0.1:21061/xtxapp/\");\r\n if (xtxasyn.XTXAppWebSocket == null) {\r\n // eslint-disable-next-line no-undef\r\n custom.errorReportFunc(\"连接XTXAppCOM服务失败,请确认已正确安装BJCA证书应用环境!\");\r\n return false;\r\n }\r\n\r\n return true;\r\n}\r\n\r\nfunction initXTXAppObject(xtxasyn) {\r\n var util = xtxasyn.util;\r\n xtxasyn.xtx_clsid = \"3F367B74-92D9-4C5E-AB93-234F8A91D5E6\";\r\n xtxasyn.getpic_clsid = \"3BC3C868-95B5-47ED-8686-E0E3E94EF366\";\r\n xtxasyn.xtx_version_clsid = \"574887FB-22A5-488B-A49C-2CF25F56BE68\";\r\n var getImplmentFunction;\r\n\r\n if (util.checkBrowserISIE()) { // IE\r\n if (!initXTXAppCOM(xtxasyn)) {\r\n return false;\r\n }\r\n getImplmentFunction = function(methodInfo) {\r\n if (methodInfo.inParams == '') { // 0 input param\r\n window[methodInfo.funcName] = new Function('cb', 'ctx', \r\n 'xtxasyn.util.SynToAsyn(xtxasyn.XTXAppCOM.' + methodInfo.funcName + '(), cb, ctx);');\r\n } else {\r\n window[methodInfo.funcName] = new Function(methodInfo.inParams, 'cb', 'ctx', \r\n 'xtxasyn.util.SynToAsyn(xtxasyn.XTXAppCOM.' + methodInfo.funcName + '(' + methodInfo.inParams + '), cb, ctx);');\r\n }\r\n }\r\n } else { // other brower\r\n if (!initXTXAppWebSocket(xtxasyn)) {\r\n return false;\r\n }\r\n getImplmentFunction = function(methodInfo) {\r\n if (methodInfo.inParams == '') { // 0 input param\r\n window[methodInfo.funcName] = new Function('cb, ctx', \r\n \"xtxasyn.util.callWebSocketMethod(xtxasyn.XTXAppWebSocket, '\" + methodInfo.clsid + \"', '\" + \r\n methodInfo.funcName + \"', cb, ctx, '\" + methodInfo.outParamType + \"', []);\");\r\n } else {\r\n window[methodInfo.funcName] = new Function(methodInfo.inParams + ', cb, ctx', \r\n \"xtxasyn.util.callWebSocketMethod(xtxasyn.XTXAppWebSocket, '\" + methodInfo.clsid + \"', '\" + \r\n methodInfo.funcName + \"', cb, ctx, '\" + methodInfo.outParamType + \"', [\" + methodInfo.inParams + \"]);\");\r\n }\r\n }\r\n }\r\n\r\n var export_functions = [\r\n {funcName:'SOF_SetSignMethod', inParams:'SignMethod', outParamType:'number', clsid:xtxasyn.xtx_clsid, aliasName:'SetSignMethod'},\r\n {funcName:'SOF_GetSignMethod', inParams:'', outParamType:'number', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_SetEncryptMethod', inParams:'EncryptMethod', outParamType:'number', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_GetEncryptMethod', inParams:'', outParamType:'number', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_GetUserList', inParams:'', outParamType:'string', clsid:xtxasyn.xtx_clsid, aliasName:'GetUserList'},\r\n {funcName:'SOF_ExportUserCert', inParams:'CertID', outParamType:'string', clsid:xtxasyn.xtx_clsid, aliasName:'GetSignCert'},\r\n {funcName:'SOF_Login', inParams:'CertID, PassWd', outParamType:'bool', clsid:xtxasyn.xtx_clsid, aliasName:'VerifyUserPIN'},\r\n {funcName:'SOF_GetPinRetryCount', inParams:'CertID', outParamType:'number', clsid:xtxasyn.xtx_clsid, aliasName:'GetUserPINRetryCount'},\r\n {funcName:'SOF_ChangePassWd', inParams:'CertID, oldPass, newPass', outParamType:'bool', clsid:xtxasyn.xtx_clsid, aliasName:'ChangeUserPassword'},\r\n {funcName:'SOF_GetCertInfo', inParams:'Cert, type', outParamType:'string', clsid:xtxasyn.xtx_clsid, aliasName:'GetCertBasicinfo'},\r\n {funcName:'SOF_GetCertInfoByOid', inParams:'Cert, Oid', outParamType:'string', clsid:xtxasyn.xtx_clsid, aliasName:'GetExtCertInfoByOID'},\r\n {funcName:'SOF_SignData', inParams:'CertID, InData', outParamType:'string', clsid:xtxasyn.xtx_clsid, aliasName:'SignedData'},\r\n {funcName:'SOF_VerifySignedData', inParams:'Cert, InData, SignValue', outParamType:'bool', clsid:xtxasyn.xtx_clsid, aliasName:'VerifySignedData'},\r\n {funcName:'SOF_SignFile', inParams:'CertID, InFile', outParamType:'string', clsid:xtxasyn.xtx_clsid, aliasName:'SOF_SignFile'},\r\n {funcName:'SOF_VerifySignedFile', inParams:'Cert, InFile, SignValue', outParamType:'bool', clsid:xtxasyn.xtx_clsid, aliasName:'VerifySignFile'},\r\n {funcName:'SOF_EncryptData', inParams:'Cert, InData', outParamType:'string', clsid:xtxasyn.xtx_clsid, aliasName:'EncodeP7Enveloped'},\r\n {funcName:'SOF_DecryptData', inParams:'CertID, InData', outParamType:'string', clsid:xtxasyn.xtx_clsid, aliasName:'DecodeP7Enveloped'},\r\n {funcName:'SOF_EncryptFile', inParams:'Cert, InFile, OutFile', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_DecryptFile', inParams:'CertID, InFile, OutFile', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_SignMessage', inParams:'dwFlag, CertID, InData', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_VerifySignedMessage', inParams:'MessageData, InData', outParamType:'bool', clsid:xtxasyn.xtx_clsid, aliasName:'VerifyDatabyP7'},\r\n {funcName:'SOF_GetInfoFromSignedMessage', inParams:'SignedMessage, type', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_SignDataXML', inParams:'CertID, InData', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_VerifySignedDataXML', inParams:'InData', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_GetXMLSignatureInfo', inParams:'XMLSignedData, type', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_GenRandom', inParams:'RandomLen', outParamType:'string', clsid:xtxasyn.xtx_clsid, aliasName:'GenerateRandom'},\r\n {funcName:'SOF_PubKeyEncrypt', inParams:'Cert, InData', outParamType:'string', clsid:xtxasyn.xtx_clsid, aliasName:'PubKeyEncrypt'},\r\n {funcName:'SOF_PriKeyDecrypt', inParams:'CertID, InData', outParamType:'string', clsid:xtxasyn.xtx_clsid, aliasName:'PriKeyDecrypt'},\r\n {funcName:'SOF_SecertSegment', inParams:'Secert, m, n, k', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_SecertRecovery', inParams:'Seg', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_GetLastError', inParams:'', outParamType:'number', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'GetDeviceCount', inParams:'', outParamType:'number', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'GetAllDeviceSN', inParams:'', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'GetDeviceSNByIndex', inParams:'iIndex', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'GetDeviceInfo', inParams:'sDeviceSN, iType', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'ChangeAdminPass', inParams:'sDeviceSN, sOldPass, sNewPass', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'UnlockUserPass', inParams:'sDeviceSN, sAdminPass, sNewUserPass', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'GenerateKeyPair', inParams:'sDeviceSN, sContainerName, iKeyType, bSign', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'ExportPubKey', inParams:'sDeviceSN, sContainerName, bSign', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'ImportSignCert', inParams:'sDeviceSN, sContainerName, sCert', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'ImportEncCert', inParams:'sDeviceSN, sContainerName, sCert, sPriKeyCipher', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'ReadFile', inParams:'sDeviceSN, sFileName', outParamType:'string', clsid:xtxasyn.xtx_clsid, aliasName:'readFile'},\r\n {funcName:'WriteFile', inParams:'sDeviceSN, sFileName, sContent, bPrivate', outParamType:'bool', clsid:xtxasyn.xtx_clsid, aliasName:'writeFile'},\r\n {funcName:'IsContainerExist', inParams:'sDeviceSN, sContainerName', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'DeleteContainer', inParams:'sDeviceSN, sContainerName', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'ExportPKCS10', inParams:'sDeviceSN, sContainerName, sDN, bSign', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'InitDevice', inParams:'sDeviceSN, sAdminPass', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'AddSignInfo', inParams:'sUserPass', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_GetVersion', inParams:'', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_ExportExChangeUserCert', inParams:'CertID', outParamType:'string', clsid:xtxasyn.xtx_clsid, aliasName:'GetExchCert'},\r\n {funcName:'SOF_ValidateCert', inParams:'Cert', outParamType:'number', clsid:xtxasyn.xtx_clsid, aliasName:'ValidateCert'},\r\n {funcName:'GetENVSN', inParams:'sDeviceSN', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SetENVSN', inParams:'sDeviceSN, sEnvsn', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'IsDeviceExist', inParams:'sDeviceSN', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'GetContainerCount', inParams:'sDeviceSN', outParamType:'number', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_SymEncryptData', inParams:'sKey, indata', outParamType:'string', clsid:xtxasyn.xtx_clsid, aliasName:'EncryptData'},\r\n {funcName:'SOF_SymDecryptData', inParams:'sKey, indata', outParamType:'string', clsid:xtxasyn.xtx_clsid, aliasName:'DecryptData'},\r\n {funcName:'SOF_SymEncryptFile', inParams:'sKey, inFile, outFile', outParamType:'bool', clsid:xtxasyn.xtx_clsid, aliasName:'EncryptFile'},\r\n {funcName:'SOF_SymDecryptFile', inParams:'sKey, inFile, outFile', outParamType:'bool', clsid:xtxasyn.xtx_clsid, aliasName:'DecryptFile'},\r\n {funcName:'SOF_GetLastErrMsg', inParams:'', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_Base64Encode', inParams:'sIndata', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_Base64Decode', inParams:'sIndata', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_HashData', inParams:'hashAlg, sInData', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_HashFile', inParams:'hashAlg, inFile', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'UnlockUserPassEx', inParams:'sDeviceSN, sAdminPin, sNewUserPass', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'DeleteOldContainer', inParams:'sDeviceSN', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'WriteFileEx', inParams:'sDeviceSN, sFileName, sContent', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'ReadFileEx', inParams:'sDeviceSN, sFileName', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n\t\t{funcName:'WriteFileBase64', inParams:'sDeviceSN, sFileName, sContent', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n\t\t{funcName:'DeleteFile', inParams:'sDeviceSN, sFileName', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_EncryptDataEx', inParams:'Cert, InData', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'Base64EncodeFile', inParams:'sInFile', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_GetRetryCount', inParams:'CertID', outParamType:'number', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_GetAllContainerName', inParams:'sDeviceSN', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'CreateSoftDevice', inParams:'sDeviceSN, sLabel', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'DeleteSoftDevice', inParams:'sDeviceSN, sPasswd', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'EnableSoftDevice', inParams:'enable, sDeviceSN', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SoftDeviceBackup', inParams:'sDeviceSN, sPasswd', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SoftDeviceRestore', inParams:'sDeviceSN, sPasswd, sInFilePath', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_Logout', inParams:'CertID', outParamType:'bool', clsid:xtxasyn.xtx_clsid, aliasName:'Logout'},\r\n {funcName:'SetUserConfig', inParams:'type, strConfig', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_SignByteData', inParams:'CertID, byteLen', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_VerifySignedByteData', inParams:'Cert, byteLen, SignValue', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'OTP_GetChallengeCode', inParams:'sCertID', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'ImportEncCertEx', inParams:'sDeviceSN, sContainerName, sCert, sPriKeyCipher, ulSymAlg', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_GetCertEntity', inParams:'sCert', outParamType:'string', clsid:xtxasyn.xtx_clsid, aliasName:'GetCertEntity'},\r\n {funcName:'SOF_HMAC', inParams:'hashid, key, indata', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_SignDataByPriKey', inParams:'sPriKey, sCert, sInData', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'ImportKeyCertToSoftDevice', inParams:'sDeviceSN, sContainerName, sPriKey, sCert, bSign', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'InitDeviceEx', inParams:'sDeviceSN, sAdminPass, sUserPin, sKeyLabel, adminPinMaxRetry, userPinMaxRetry', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SelectFile', inParams:'', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_SignHashData', inParams:'CertID, b64ashData, hashAlg', outParamType:'string', clsid:xtxasyn.xtx_clsid, aliasName:'SignHashData'},\r\n {funcName:'SOF_VerifySignedHashData', inParams:'Cert, b64ashData, SignValue, hashAlg', outParamType:'bool', clsid:xtxasyn.xtx_clsid, aliasName:'VerifySignedHashData'},\r\n {funcName:'CheckSoftDeviceEnv', inParams:'', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'ImportPfxToDevice', inParams:'sDeviceSN, sContainerName, bSign, strPfx, strPfxPass', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_HashDataEx', inParams:'hashAlg, sInData, sCert, sID', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_HashFileEx', inParams:'hashAlg, inFile, sCert, sID', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'GetDeviceCountEx', inParams:'type', outParamType:'number', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'GetAllDeviceSNEx', inParams:'type', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_UpdateCert', inParams:'CertID, type', outParamType:'number', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'OpenSpecifiedFolder', inParams:'backupFilePath', outParamType:'', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'OTP_GetChallengeCodeEx', inParams:'sCertID, szAccount, money', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'Base64DecodeFile', inParams:'sInData, sFilePath', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'EnumFilesInDevice', inParams:'sDeviceSN', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'OTP_Halt', inParams:'sCertID', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_TSGenREQ', inParams:'b64Hash, hashAlg, bReqCert, policyID, b64Nonce, b64Extension', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_TSCompareNonce', inParams:'b64TSReq, b64TSAResp', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_TSGenPDFSignature', inParams:'b64TSAResp, b64OriPDFSignature', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_TSVerifyPDFSignature', inParams:'b64TSPDFSignature', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_TSGetPDFSignatureInfo', inParams:'b64TSPDFSignature, iType', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'OTP_GetState', inParams:'sCertID, bCert', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'OTP_GetSyncCode', inParams:'sCertID, ChallengeCode', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_IsLogin', inParams:'CertID', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_LoginEx', inParams:'CertID, PassWd, updateFlag', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'EnumSupportDeviceList', inParams:'', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'ExportPfxFromDevice', inParams:'sDeviceSN, sContainerName, bSign, strPfxPass', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_SignHashMessage', inParams:'CertID, InHashData, hashAlg', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'ExportPfxToFile', inParams:'sDeviceSN, sContainerName, bSign, strPfxPass', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_SignAPK', inParams:'CertID, strOriSignature', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'YZT_GenerateKeyPair', inParams:'sDeviceSN, sContainerName, iKeyTypeRSA, iKeyTypeSM2', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'YZT_ExportPubKey', inParams:'sDeviceSN, sContainerName, bSign', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'YZT_ImportSignCert', inParams:'sDeviceSN, sContainerName, sRSACert, sSM2Cert', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'YZT_ImportEncCert', inParams:'sDeviceSN, sContainerName, sRSACert, sRSAPriKeyCipher, ulRSASymAlg, sSM2Cert, sSM2PriKeyCipher, ulSM2SymAlg', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_ListenUKey', inParams:'Parm', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_EnableLoginWindow', inParams:'Parm', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_SignEnvelope', inParams:'CertID, Cert, InData', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_UnSignEnvelope', inParams:'CertID, InData', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'BIO_MAKExportPKCS10', inParams:'sDeviceSN, iKeyType, sDN', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'BIO_MAKImportSignEncCert', inParams:'sDeviceSN, sSignCert, sEncCert, sPriKeyCipher', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'BIO_IssueDAKCert', inParams:'sDeviceSN, iKeyType, sDN', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'BIO_InfoCollect', inParams:'', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'BIO_GetBioInfo', inParams:'sDeviceSN', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_GetLastLoginCertID', inParams:'', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_ReadESealData', inParams:'CertID, ulKeyIndex, ulKeyAlgId, ulFlags', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_ReadKFXESealData', inParams:'CertID, ulKeyIndex, ulKeyAlgId, ulFlags', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_SymDecryptFileToData', inParams:'sKey, inFile', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_SignMessageBase64', inParams:'dwFlag, CertID, InData', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_VerifySignedMessageBase64', inParams:'MessageData, InData', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_VerifySignedHashMessage', inParams:'MessageData, InHashData', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_SignDataBase64', inParams:'CertID, InData', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_VerifySignedDataBase64', inParams:'Cert, InData, SignValue', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_HashDataExBase64', inParams:'hashAlg, sInData, sCert, sID', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_GetProductVersion', inParams:'', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_UpdateCertEx', inParams:'CertID, PassWd', outParamType:'number', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_GetLastSignDataCertID', inParams:'CertID', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'BIO_SetUserConfig', inParams:'CertID, type, strConfig', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'BIO_InvokeCommand', inParams:'CertID, bstrCommand', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_ImportSymmKey', inParams:'CertID, ulKeyIndex, InData, ulFlags', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_WriteESealData', inParams:'CertID, InData, ulFlags', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_EPS_Encrypt', inParams:'CertID, ulKeyIndex, ulKeyAlgId, IVData, DivCount, DivComponent, InData, ulFlags', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_EPS_Decrypt', inParams:'CertID, ulKeyIndex, ulKeyAlgId, IVData, DivCount, DivComponent, InData, ulFlags', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_EPS_Mac', inParams:'CertID, ulKeyIndex, ulKeyAlgId, IVData, DivCount, DivComponent, InData, ulFlags', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_PriKeyDecryptEx', inParams:'CertID, InData', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_EPS_ReadESealData', inParams:'CertID, ulKeyIndex, ulKeyAlgId, ulFlags', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_EPS_WriteESealData', inParams:'CertID, InData, ulFlags', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'EnumESeal', inParams:'sDeviceSN', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n\t\t{funcName:'GetPicture', inParams:'bstrConName', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n\t\t{funcName:'SOF_SignEnvelopeFile', inParams:'CertID, Cert, InFile, OutFile', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n\t\t{funcName:'SOF_UnSignEnvelopeFile', inParams:'CertID, InFile, OutFile', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n\t\t{funcName:'SOFX_EncryptFile', inParams:'CertID, Cert, InFile, OutFile, ulFlags', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n\t\t{funcName:'SOFX_DecryptFile', inParams:'CertID, InFile, OutFile, ulFlags', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\t\t\r\n {funcName:'GetPic', inParams:'bstrConName', outParamType:'string', clsid:xtxasyn.getpic_clsid},\r\n {funcName:'Hash', inParams:'inData', outParamType:'string', clsid:xtxasyn.getpic_clsid},\r\n {funcName:'ConvertPicFormat', inParams:'inData, type', outParamType:'string', clsid:xtxasyn.getpic_clsid},\r\n {funcName:'ConvertGif2Jpg', inParams:'inData', outParamType:'string', clsid:xtxasyn.getpic_clsid},\r\n {funcName:'GetPic1', inParams:'bstrConName', outParamType:'string', clsid:xtxasyn.getpic_clsid},\r\n {funcName:'ConvertPicSize', inParams:'bstrPic, w, h', outParamType:'string', clsid:xtxasyn.getpic_clsid},\t\t\r\n {funcName:'GetEnvVersion', inParams:'', outParamType:'string', clsid:xtxasyn.xtx_version_clsid},\r\n\t\t{funcName:'InitDeviceWithParam', inParams:'sDeviceSN, sAppName, sAdminPass, sUserPin, sKeyLabel, adminPinMaxRetry, userPinMaxRetry, createFileRights', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n\t\t{funcName:'SOF_SignDataEx', inParams:'CertID, InData,signFlag', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_VerifySignedDataEx', inParams:'Cert, InData, SignValue,signFlag', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n\t\t{funcName:'SOF_SymEncryptDataEx', inParams:'sKey,sIV,indata', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_SymDecryptDataEx', inParams:'sKey,sIV,indata', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n\t\t\r\n\t\t// 3.8 added \r\n\t\t{funcName:'SOFX_InvokeCommand', inParams:'pluginName,InParam', outParamType:'string', clsid:xtxasyn.xtx_clsid},\t\r\n\t\t\r\n\t\t{funcName:'SOF_SymEncryptFileEx', inParams:'sKey,sIV,inFile, outFile', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOF_SymDecryptFileEx', inParams:'sKey,sIV,inFile, outFile', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n\t\t{funcName:'SOF_SymDecryptFileToDataEx', inParams:'sKey,sIV,inFile', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n\t\t{funcName:'SOFX_SymEncryptDataWithPadding', inParams:'sKey,sIV,padding,indata', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOFX_SymDecryptDataWithPadding', inParams:'sKey,sIV,padding,indata', outParamType:'string', clsid:xtxasyn.xtx_clsid},\r\n\t\t{funcName:'SOFX_SymEncryptFileWithPadding', inParams:'sKey,sIV,padding,inFile, outFile', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n {funcName:'SOFX_SymDecryptFileWithPadding', inParams:'sKey,sIV,padding,inFile, outFile', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n\t\t{funcName:'SOFX_VerifySignedDataWithID', inParams:'Cert, InData, SignValue,userId', outParamType:'bool', clsid:xtxasyn.xtx_clsid}, \r\n {funcName:'SOFX_VerifySignedFileWithID', inParams:'Cert, InFile, SignValue,userId', outParamType:'bool', clsid:xtxasyn.xtx_clsid},\r\n ];\r\n\r\n for (var i = 0; i < export_functions.length; i++) {\r\n getImplmentFunction(export_functions[i]);\r\n xtxasyn[export_functions[i].funcName] = window[export_functions[i].funcName];\r\n if (export_functions[i].aliasName) {\r\n window[export_functions[i].aliasName] = window[export_functions[i].funcName];\r\n xtxasyn[export_functions[i].aliasName] = window[export_functions[i].funcName];\r\n }\r\n \r\n }\r\n\r\n return true;\r\n}\r\n\r\n// eslint-disable-next-line no-undef\r\nreturn initXTXAppObject(xtxasyn);\r\n})();\r\n\r\n///////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n////////////////////////////////////// EXPORT VAR AND FUNCTIONS ///////////////////////////////////////////\r\n///////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n// const var\r\nvar CERT_TYPE_HARD = 1;\r\nvar CERT_TYPE_SOFT = 2;\r\nvar CERT_TYPE_ALL = 3;\r\n\r\n// set auto logout parameters\r\nfunction SetAutoLogoutParameter(strCertID, logoutFunc) {\r\n // eslint-disable-next-line no-undef\r\n xtxasyn.custom.setAutoLogoutParameter(strCertID, logoutFunc);\r\n}\r\n\r\n// set user cert list id\r\nfunction SetUserCertList(strListID, certType) {\r\n // eslint-disable-next-line no-undef\r\n xtxasyn.custom.setUserCertList(strListID, certType);\r\n}\r\n\r\n// set custom usbkeychange callback\r\nfunction SetOnUsbKeyChangeCallBack(callback) {\r\n // eslint-disable-next-line no-undef\r\n xtxasyn.custom.setOnUsbKeyChangeCallBack(callback);\r\n}\r\n\r\n// set custom alert function\r\nfunction SetAlertFunction(custom_alert) {\r\n // eslint-disable-next-line no-undef\r\n xtxasyn.custom.setErrorReportFunc(custom_alert);\r\n}\r\n\r\n// get custom userlogin token \r\nfunction GetLoginToken() {\r\n // eslint-disable-next-line no-undef\r\n return xtxasyn.custom.getToken();\r\n}\r\n\r\nfunction SetLoginToken(tokenData) {\r\n // eslint-disable-next-line no-undef\r\n return xtxasyn.custom.setToken(tokenData);\r\n}\r\n\r\nfunction GetUserListByType(strType, cb, ctx) { // strType is 'HARD' or 'SOFT'\r\n // eslint-disable-next-line no-undef\r\n SOF_GetUserList(function(retObj) {\r\n var strUserList = retObj.retVal;\r\n // eslint-disable-next-line no-constant-condition\r\n while (true) {\r\n var i = strUserList.indexOf(\"&&&\");\r\n if (i <= 0 ) {\r\n break;\r\n }\r\n var strOneUser = strUserList.substring(0, i);\r\n var strName = strOneUser.substring(0, strOneUser.indexOf(\"||\"));\r\n var strCertID = strOneUser.substring(strOneUser.indexOf(\"||\") + 2, strOneUser.length);\r\n GetDeviceType(strCertID, function(retObj) {\r\n if (retObj.retVal == retObj.ctx.ctx.type) {\r\n if (typeof retObj.ctx.ctx.cb == 'function') {\r\n retObj.ctx.ctx.cb({retVal:retObj.ctx.userList, ctx:retObj.ctx.ctx.ctx})\r\n }\r\n }\r\n }, {userList:strOneUser, ctx:retObj.ctx});\r\n var len = strUserList.length;\r\n strUserList = strUserList.substring(i + 3, len);\r\n }\r\n }, {type:strType, cb:cb, ctx:ctx});\r\n}\r\n\r\n//get usbKey user list\r\nfunction GetUserList_USBKey(cb, ctx) {\r\n return GetUserListByType(\"HARD\", cb, ctx);\r\n}\r\n\r\n//get soft user list\r\nfunction GetUserList_Soft() {\r\n // eslint-disable-next-line no-undef\r\n return GetUserListByType(\"SOFT\", cb, ctx);\r\n}\r\n\r\n//sign data with pkcs7 format\r\nfunction SignByP7(strCertID, strInData, bDetach) {\r\n // eslint-disable-next-line no-undef\r\n return xtxasyn.SOF_SignMessage(bDetach ? 1 : 0, strCertID, strInData);\r\n}\r\n\r\n//get symmitric key length \r\n//because xtx and secxv2 secx default symmitric alg is no equal\r\nfunction GetSymKeyLength() {\r\n return 24; \r\n}\r\n\r\n//get device type return SOFT or HARD\r\nfunction GetDeviceType(strCertID) {\r\n // eslint-disable-next-line no-undef\r\n return xtxasyn.GetDeviceInfo(strCertID, 7); \r\n}\r\n\r\n// calculate file's hash\r\nfunction HashFile(strFilePath) {\r\n // eslint-disable-next-line no-undef\r\n return xtxasyn.SOF_HashFile(2/*sha1*/, strFilePath);\r\n}\r\n\r\nfunction ParseDateString(strDate) {\r\n var strYear = strDate.substring(0, 4);\r\n var strMonth = strDate.substring(4, 6);\r\n var strDay = strDate.substring(6, 8);\r\n var strHour = strDate.substring(8, 10);\r\n var strMin = strDate.substring(10, 12);\r\n var strSecond = strDate.substring(12, 14);\r\n var RtnDate = new Date();\r\n RtnDate.setFullYear(Number(strYear), Number(strMonth) - 1, Number(strDay));\r\n RtnDate.setHours(Number(strHour));\r\n RtnDate.setMinutes(Number(strMin));\r\n RtnDate.setSeconds(Number(strSecond));\r\n return RtnDate;\r\n}\r\n\r\nfunction __loginSignRandomCallBack(retObj) {\r\n if (retObj.retVal == \"\") {\r\n // eslint-disable-next-line no-undef\r\n xtxasyn.custom.errorReportFunc(\"客户端签名失败!\");\r\n if (typeof retObj.ctx.cb === 'function') {\r\n retObj.ctx.cb(false);\r\n }\r\n return;\r\n }\r\n var objForm = retObj.ctx.objForm;\r\n objForm.UserSignedData.value = retObj.retVal;\r\n // eslint-disable-next-line no-undef\r\n objForm.LoginToken.value = xtxasyn.custom.getToken();\r\n if (typeof retObj.ctx.cb === 'function') {\r\n retObj.ctx.cb(true);\r\n } else {\r\n objForm.action = retObj.ctx.action;\r\n objForm.submit();\r\n }\r\n}\r\n\r\nfunction __loginVerifyServerSignatureCallBack(retObj) {\r\n if (!retObj.retVal) {\r\n // eslint-disable-next-line no-undef\r\n xtxasyn.custom.errorReportFunc(\"验证服务器端信息失败!\");\r\n if (typeof retObj.ctx.cb === 'function') {\r\n retObj.ctx.cb(false);\r\n }\r\n return;\r\n }\r\n \r\n var strCertID = retObj.ctx.certID;\r\n // eslint-disable-next-line no-undef\r\n xtxasyn.SOF_SignData(strCertID, strServerRan, __loginSignRandomCallBack, retObj.ctx);\r\n}\r\nfunction __loginCheckCertValidNotAfter(retObj) {\r\n var notAfterDate = ParseDateString(retObj.retVal);\r\n var milliseconds = notAfterDate.getTime() - new Date().getTime();\r\n if (milliseconds < 0) {\r\n // eslint-disable-next-line no-undef\r\n xtxasyn.custom.errorReportFunc(\"您的证书已过期,请尽快到北京数字证书认证中心办理证书更新手续!\");\r\n if (typeof retObj.ctx.cb === 'function') {\r\n retObj.ctx.cb(false);\r\n }\r\n return;\r\n }\r\n\r\n // eslint-disable-next-line no-undef\r\n days = parseInt(milliseconds / (1000*60*60*24));\r\n // eslint-disable-next-line no-undef\r\n if (days > 0 && days <= 60) {\r\n // eslint-disable-next-line no-undef\r\n xtxasyn.custom.errorReportFunc(\"您的证书还有\" + days + \"天过期\\n请您尽快到北京数字证书认证中心办理证书更新手续!\");\r\n // eslint-disable-next-line no-undef\r\n } else if (days == 0) { // 证书有效期天数小于1天\r\n var hours = parseInt(milliseconds / (1000*60*60));\r\n if (hours > 0) {\r\n // eslint-disable-next-line no-undef\r\n xtxasyn.custom.errorReportFunc(\"您的证书还有\" + hours + \"小时过期\\n请您尽快到北京数字证书认证中心办理证书更新手续!\");\r\n }\r\n // 证书有效期小于1小时\r\n var minutes = parseInt(milliseconds / (1000*60));\r\n if (minutes > 1) {\r\n // eslint-disable-next-line no-undef\r\n xtxasyn.custom.errorReportFunc(\"您的证书还有\" + minutes + \"分钟过期\\n请您尽快到北京数字证书认证中心办理证书更新手续!\");\r\n } else {\r\n // eslint-disable-next-line no-undef\r\n xtxasyn.custom.errorReportFunc(\"您的证书已过期,请尽快到北京数字证书认证中心办理证书更新手续!\");\r\n if (typeof retObj.ctx.cb === 'function') {\r\n retObj.ctx.cb(false);\r\n }\r\n return;\r\n }\r\n }\r\n\r\n // eslint-disable-next-line no-undef\r\n xtxasyn.SOF_VerifySignedData(strServerCert, strServerRan, strServerSignedData, \r\n __loginVerifyServerSignatureCallBack, retObj.ctx);\r\n}\r\n\r\nfunction __loginCheckCertValidNotBefore(retObj) {\r\n var notBeforeDate = ParseDateString(retObj.retVal);\r\n var days = parseInt((notBeforeDate.getTime() - new Date().getTime()) / (1000*60*60*24));\r\n if (days > 0) {\r\n // eslint-disable-next-line no-undef\r\n xtxasyn.custom.errorReportFunc(\"您的证书尚未生效!距离生效日期还剩\" + days + \"天!\");\r\n if (typeof retObj.ctx.cb === 'function') {\r\n retObj.ctx.cb(false);\r\n }\r\n return;\r\n }\r\n var strUserCert = retObj.ctx.objForm.UserCert.value;\r\n // eslint-disable-next-line no-undef\r\n xtxasyn.SOF_GetCertInfo(strUserCert, 12, __loginCheckCertValidNotAfter, retObj.ctx);\r\n}\r\n\r\nfunction __loginGetSignCertCallBack(retObj) {\r\n var strUserCert = retObj.retVal;\r\n if (strUserCert == \"\") {\r\n // eslint-disable-next-line no-undef\r\n xtxasyn.custom.errorReportFunc(\"导出用户证书失败!\");\r\n if (typeof retObj.ctx.cb === 'function') {\r\n retObj.ctx.cb(false);\r\n }\r\n return;\r\n }\r\n retObj.ctx.objForm.UserCert.value = strUserCert;\r\n \r\n // eslint-disable-next-line no-undef\r\n xtxasyn.SOF_GetCertInfo(strUserCert, 11, __loginCheckCertValidNotBefore, retObj.ctx);\r\n}\r\n\r\nfunction __loginGetPINRetryCallBack(retObj) {\r\n var retryCount = Number(retObj.retVal);\r\n if (retryCount > 0) {\r\n // eslint-disable-next-line no-undef\r\n xtxasyn.custom.errorReportFunc(\"校验证书密码失败!您还有\" + retryCount + \"次机会重试!\");\r\n } else if (retryCount == 0) {\r\n // eslint-disable-next-line no-undef\r\n xtxasyn.custom.errorReportFunc(\"您的证书密码已被锁死,请联系BJCA进行解锁!\");\r\n } else {\r\n // eslint-disable-next-line no-undef\r\n xtxasyn.custom.errorReportFunc(\"登录失败!\");\r\n }\r\n if (typeof retObj.ctx.cb === 'function') {\r\n retObj.ctx.cb();\r\n }\r\n}\r\n\r\nfunction __loginVerifyPINCallBack(retObj) {\r\n var strCertID = retObj.ctx.certID;\r\n var objForm = retObj.ctx.objForm;\r\n if (!retObj.retVal) {\r\n // eslint-disable-next-line no-undef\r\n xtxasyn.SOF_GetPinRetryCount(strCertID, __loginGetPINRetryCallBack, retObj.ctx);\r\n return;\r\n }\r\n objForm.CertID.value = strCertID;\r\n objForm.ContainerName.value = strCertID; \r\n \r\n // eslint-disable-next-line no-undef\r\n xtxasyn.SOF_ExportUserCert(strCertID, __loginGetSignCertCallBack, retObj.ctx);\r\n}\r\n\r\n//Form login\r\nfunction Login(formName, strCertID, strPin, strAction, custom_cb) {\r\n var objForm = eval(formName);\r\n if (objForm == null) {\r\n // eslint-disable-next-line no-undef\r\n xtxasyn.custom.errorReportFunc(\"表单错误!\");\r\n if (typeof(custom_cb) === 'function') {\r\n custom_cb(false);\r\n }\r\n return;\r\n }\r\n if (strCertID == null || strCertID == \"\") {\r\n // eslint-disable-next-line no-undef\r\n xtxasyn.custom.errorReportFunc(\"请输入证书密码!\");\r\n if (typeof(custom_cb) === 'function') {\r\n custom_cb(false);\r\n }\r\n return;\r\n }\r\n if (strPin == null || strPin == \"\") {\r\n // eslint-disable-next-line no-undef\r\n xtxasyn.custom.errorReportFunc(\"请输入证书密码!\");\r\n if (typeof(custom_cb) === 'function') {\r\n custom_cb(false);\r\n }\r\n return;\r\n }\r\n\r\n //Add a hidden item ...\r\n if (objForm.UserSignedData == null) {\r\n objForm.insertAdjacentHTML(\"BeforeEnd\", \"<input type=\\\"hidden\\\" name=\\\"UserSignedData\\\" value=\\\"\\\">\");\r\n }\r\n if (objForm.UserCert == null) {\r\n objForm.insertAdjacentHTML(\"BeforeEnd\", \"<input type=\\\"hidden\\\" name=\\\"UserCert\\\" value=\\\"\\\">\");\r\n }\r\n if (objForm.CertID == null) {\r\n objForm.insertAdjacentHTML(\"BeforeEnd\", \"<input type=\\\"hidden\\\" name=\\\"CertID\\\" value=\\\"\\\">\");\r\n }\r\n if (objForm.ContainerName == null) {\r\n objForm.insertAdjacentHTML(\"BeforeEnd\", \"<input type=\\\"hidden\\\" name=\\\"ContainerName\\\" value=\\\"\\\">\");\r\n } \r\n if (objForm.LoginToken == null) {\r\n objForm.insertAdjacentHTML(\"BeforeEnd\", \"<input type=\\\"hidden\\\" name=\\\"LoginToken\\\" value=\\\"\\\">\");\r\n }\r\n\r\n var ctx = {certID:strCertID, objForm:objForm, action:strAction, cb:custom_cb};\r\n \r\n // eslint-disable-next-line no-undef\r\n xtxasyn.SOF_Login(strCertID, strPin, __loginVerifyPINCallBack, ctx);\r\n\r\n return;\r\n}\r\n","/*******************************************************\r\n*\r\n* 使用此JS脚本之前请先仔细阅读帮助文档!\r\n*\r\n* @author Fuly\r\n* @version 3.2.3\r\n* @date 2020/12/23\r\n*\r\n**********************************************************/\r\n\r\n\r\n\r\nvar split;\r\n\r\n// Avoid running twice; that would break the `nativeSplit` reference\r\n// eslint-disable-next-line no-unused-vars\r\nsplit = split || function (undef) {\r\n\r\n var nativeSplit = String.prototype.split,\r\n compliantExecNpcg = /()??/.exec(\"\")[1] === undef, // NPCG: nonparticipating capturing group\r\n self;\r\n\r\n self = function (str, separator, limit) {\r\n // If `separator` is not a regex, use `nativeSplit`\r\n if (Object.prototype.toString.call(separator) !== \"[object RegExp]\") {\r\n return nativeSplit.call(str, separator, limit);\r\n }\r\n var output = [],\r\n flags = (separator.ignoreCase ? \"i\" : \"\") +\r\n (separator.multiline ? \"m\" : \"\") +\r\n (separator.extended ? \"x\" : \"\") + // Proposed for ES6\r\n (separator.sticky ? \"y\" : \"\"), // Firefox 3+\r\n lastLastIndex = 0,\r\n // Make `global` and avoid `lastIndex` issues by working with a copy\r\n // eslint-disable-next-line no-redeclare\r\n separator = new RegExp(separator.source, flags + \"g\"),\r\n separator2, match, lastIndex, lastLength;\r\n str += \"\"; // Type-convert\r\n if (!compliantExecNpcg) {\r\n // Doesn't need flags gy, but they don't hurt\r\n separator2 = new RegExp(\"^\" + separator.source + \"$(?!\\\\s)\", flags);\r\n }\r\n /* Values for `limit`, per the spec:\r\n * If undefined: 4294967295 // Math.pow(2, 32) - 1\r\n * If 0, Infinity, or NaN: 0\r\n * If positive number: limit = Math.floor(limit); if (limit > 4294967295) limit -= 4294967296;\r\n * If negative number: 4294967296 - Math.floor(Math.abs(limit))\r\n * If other: Type-convert, then use the above rules\r\n */\r\n limit = limit === undef ?\r\n -1 >>> 0 : // Math.pow(2, 32) - 1\r\n limit >>> 0; // ToUint32(limit)\r\n // eslint-disable-next-line no-cond-assign\r\n while (match = separator.exec(str)) {\r\n // `separator.lastIndex` is not reliable cross-browser\r\n lastIndex = match.index + match[0].length;\r\n if (lastIndex > lastLastIndex) {\r\n output.push(str.slice(lastLastIndex, match.index));\r\n // Fix browsers whose `exec` methods don't consistently return `undefined` for\r\n // nonparticipating capturing groups\r\n if (!compliantExecNpcg && match.length > 1) {\r\n match[0].replace(separator2, function () {\r\n for (var i = 1; i < arguments.length - 2; i++) {\r\n if (arguments[i] === undef) {\r\n match[i] = undef;\r\n }\r\n }\r\n });\r\n }\r\n if (match.length > 1 && match.index < str.length) {\r\n Array.prototype.push.apply(output, match.slice(1));\r\n }\r\n lastLength = match[0].length;\r\n lastLastIndex = lastIndex;\r\n if (output.length >= limit) {\r\n break;\r\n }\r\n }\r\n if (separator.lastIndex === match.index) {\r\n separator.lastIndex++; // Avoid an infinite loop\r\n }\r\n }\r\n if (lastLastIndex === str.length) {\r\n if (lastLength || !separator.test(\"\")) {\r\n output.push(\"\");\r\n }\r\n } else {\r\n output.push(str.slice(lastLastIndex));\r\n }\r\n return output.length > limit ? output.slice(0, limit) : output;\r\n };\r\n\r\n // For convenience\r\n String.prototype.split = function (separator, limit) {\r\n return self(this, separator, limit);\r\n };\r\n\r\n return self;\r\n\r\n}();\r\n\r\n\r\nexport function mToken (obj) {\r\n this.obj = obj;\r\n\r\n this.SAR_OK = 0;\r\n this.SAR_FALSE = 1;\r\n\r\n //分组加密算法标识\r\n this.SGD_SM1_ECB = 0x00000101;\r\n this.SGD_SM1_CBC = 0x00000102;\r\n this.SGD_SM1_CFB = 0x00000104;\r\n this.SGD_SM1_OFB = 0x00000108;\r\n this.SGD_SM1_MAC = 0x00000110;\r\n this.SGD_SSF33_ECB = 0x00000201;\r\n this.SGD_SSF33_CBC = 0x00000202;\r\n this.SGD_SSF33_CFB = 0x00000204;\r\n this.SGD_SSF33_OFB = 0x00000208;\r\n this.SGD_SSF33_MAC = 0x00000210;\r\n this.SGD_SM4_ECB = 0x00000401;\r\n this.SGD_SM4_CBC = 0x00000402;\r\n this.SGD_SM4_CFB = 0x00000404;\r\n this.SGD_SM4_OFB = 0x00000408;\r\n this.SGD_SM4_MAC = 0x00000410;\r\n\r\n this.SGD_VENDOR_DEFINED = 0x80000000;\r\n this.SGD_DES_ECB = this.SGD_VENDOR_DEFINED + 0x00000211\r\n this.SGD_DES_CBC = this.SGD_VENDOR_DEFINED + 0x00000212\r\n\r\n this.SGD_3DES168_ECB = this.SGD_VENDOR_DEFINED + 0x00000241\r\n this.SGD_3DES168_CBC = this.SGD_VENDOR_DEFINED + 0x00000242\r\n\r\n this.SGD_3DES112_ECB = this.SGD_VENDOR_DEFINED + 0x00000221\r\n this.SGD_3DES112_CBC = this.SGD_VENDOR_DEFINED + 0x00000222\r\n\r\n this.SGD_AES128_ECB = this.SGD_VENDOR_DEFINED + 0x00000111\r\n this.SGD_AES128_CBC = this.SGD_VENDOR_DEFINED + 0x00000112\r\n\r\n this.SGD_AES192_ECB = this.SGD_VENDOR_DEFINED + 0x00000121\r\n this.SGD_AES192_CBC = this.SGD_VENDOR_DEFINED + 0x00000122\r\n\r\n this.SGD_AES256_ECB = this.SGD_VENDOR_DEFINED + 0x00000141\r\n this.SGD_AES256_CBC = this.SGD_VENDOR_DEFINED + 0x00000142\r\n\r\n\r\n //非对称密码算法标识\r\n this.SGD_RSA = 0x00010000;\r\n this.SGD_SM2_1 = 0x00020100; //ECC签名\r\n this.SGD_SM2_2 = 0x00020200; //ECC密钥交换\r\n this.SGD_SM2_3 = 0x00020400; //ECC加密\r\n\r\n //密码杂凑算法标识\r\n this.SGD_SM3 = 0x00000001;\r\n this.SGD_SHA1 = 0x00000002;\r\n this.SGD_SHA256 = 0x00000004;\r\n this.SGD_RAW = 0x00000080;\r\n this.SGD_MD5 = 0x00000081;\r\n this.SGD_SHA384 = 0x00000082;\r\n this.SGD_SHA512 = 0x00000083;\r\n\r\n\r\n this.SGD_CERT_VERSION = 0x00000001;\r\n this.SGD_CERT_SERIAL = 0x00000002;\r\n this.SGD_CERT_ISSUE = 0x00000005;\r\n this.SGD_CERT_VALID_TIME = 0x00000006;\r\n this.SGD_CERT_SUBJECT = 0x00000007;\r\n this.SGD_CERT_DER_PUBLIC_KEY = 0x00000008;\r\n this.SGD_CERT_DER_EXTENSIONS = 0x00000009;\r\n this.SGD_CERT_NOT_BEFORE = 0x00000010;\r\n this.SGD_CERT_ISSUER_CN = 0x00000021;\r\n this.SGD_CERT_ISSUER_O = 0x00000022;\r\n this.SGD_CERT_ISSUER_OU = 0x00000023;\r\n this.SGD_CERT_ISSUER_C = 0x00000024;\r\n this.SGD_CERT_ISSUER_P = 0x00000025;\r\n this.SGD_CERT_ISSUER_L = 0x00000026;\r\n this.SGD_CERT_ISSUER_S = 0x00000027;\r\n this.SGD_CERT_ISSUER_EMAIL = 0x00000028;\r\n\r\n this.SGD_CERT_SUBJECT_CN = 0x00000031;\r\n this.SGD_CERT_SUBJECT_O = 0x00000032;\r\n this.SGD_CERT_SUBJECT_OU = 0x00000033;\r\n this.SGD_CERT_SUBJECT_EMALL = 0x00000034;\r\n this.SGD_REMAIN_TIME = 0x00000035;\r\n this.SGD_SIGNATURE_ALG = 0x00000036;\r\n this.SGD_CERT_SUBJECT_C = 0x00000037;\r\n this.SGD_CERT_SUBJECT_P = 0x00000038;\r\n this.SGD_CERT_SUBJECT_L = 0x00000039;\r\n this.SGD_CERT_SUBJECT_S = 0x0000003A;\r\n\r\n this.SGD_CERT_CRL = 0x00000041;\r\n\r\n\r\n this.SGD_DEVICE_SORT = 0x00000201;\r\n this.SGD_DEVICE_TYPE = 0x00000202;\r\n this.SGD_DEVICE_NAME = 0x00000203;\r\n this.SGD_DEVICE_MANUFACTURER = 0x00000204;\r\n this.SGD_DEVICE_HARDWARE_VERSION = 0x00000205;\r\n this.SGD_DEVICE_SOFTWARE_VERSION = 0x00000206;\r\n this.SGD_DEVICE_STANDARD_VERSION = 0x00000207;\r\n this.SGD_DEVICE_SERIAL_NUMBER = 0x00000208;\r\n this.SGD_DEVICE_SUPPORT_SYM_ALG = 0x00000209;\r\n this.SGD_DEVICE_SUPPORT_ASYM_ALG = 0x0000020A;\r\n this.SGD_DEVICE_SUPPORT_HASH_ALG = 0x0000020B;\r\n this.SGD_DEVICE_SUPPORT_STORANGE_SPACE = 0x0000020C;\r\n this.SGD_DEVICE_SUPPORT_FREE_SAPCE = 0x0000020D;\r\n this.SGD_DEVICE_RUNTIME = 0x0000020E;\r\n this.SGD_DEVICE_USED_TIMES = 0x0000020F;\r\n this.SGD_DEVICE_LOCATION = 0x00000210;\r\n this.SGD_DEVICE_DESCRIPTION = 0x00000211;\r\n this.SGD_DEVICE_MANAGER_INFO = 0x00000212;\r\n this.SGD_DEVICE_MAX_DATA_SIZE = 0x00000213;\r\n\r\n this.TRUE = 1;\r\n this.FALSE = 0;\r\n\r\n this.GM3000 = 1;\r\n this.K5 = 3;\r\n this.TF = 4;\r\n this.HT = 5;\r\n this.SJK1137 = 2;\r\n\r\n this.TYPE_UKEY = 1; //普通UKEY\r\n this.TYPE_FPKEY = 2; //指纹UKEY\r\n\r\n var g_mTokenPlugin = null;\r\n\r\n\r\n this.SOF_GetLastError = function () {\r\n if (g_mTokenPlugin == null) {\r\n return -1;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_GetLastError();\r\n }\r\n\r\n // eslint-disable-next-line no-unused-vars\r\n function isIe () {\r\n return (\"ActiveXObject\" in window);\r\n }\r\n\r\n function isMobile () {\r\n var browser = {\r\n versions: function () {\r\n // eslint-disable-next-line no-unused-vars\r\n var u = navigator.userAgent, app = navigator.appVersion;\r\n return {//移动终端浏览器版本信息\r\n trident: u.indexOf('Trident') > -1, //IE内核\r\n presto: u.indexOf('Presto') > -1, //opera内核\r\n webKit: u.indexOf('AppleWebKit') > -1, //苹果、谷歌内核\r\n gecko: u.indexOf('Gecko') > -1 && u.indexOf('KHTML') == -1, //火狐内核\r\n mobile: !!u.match(/AppleWebKit.*Mobile.*/), //是否为移动终端\r\n ios: !!u.match(/\\(i[^;]+;( U;)? CPU.+Mac OS X/), //ios终端\r\n android: u.indexOf('Android') > -1 || u.indexOf('Linux') > -1, //android终端或者uc浏览器\r\n iPhone: u.indexOf('iPhone') > -1, //是否为iPhone或者QQHD浏览器\r\n iPad: u.indexOf('iPad') > -1, //是否iPad\r\n webApp: u.indexOf('Safari') == -1\r\n //是否web应该程序,没有头部与底部\r\n };\r\n }(),\r\n language: (navigator.browserLanguage || navigator.language).toLowerCase()\r\n }\r\n\r\n if ((browser.versions.mobile) && (browser.versions.ios || browser.versions.android || browser.versions.iPhone || browser.versions.iPad)) {\r\n return true;\r\n }\r\n else {\r\n return false;\r\n }\r\n }\r\n\r\n this.SOF_LoadLibrary = function (type) {\r\n os = check_os();\r\n var ret;\r\n if (g_mTokenPlugin == null) {\r\n g_mTokenPlugin = new mTokenPlugin();\r\n }\r\n\r\n if (type == this.GM3000) {\r\n if (isMobile()) {\r\n ret = g_mTokenPlugin.SOF_LoadLibrary(\"1\", \"mToken OTG\", \"com.longmai.security.plugin.driver.otg.OTGDriver\");\r\n }\r\n else {\r\n ret = g_mTokenPlugin.SOF_LoadLibrary(\"mtoken_gm3000_hnca.dll\", \"libgm3000.1.0.so\", \"libgm3000.1.0.dylib\");\r\n }\r\n }\r\n else if (type == this.SJK1137) {\r\n ret = g_mTokenPlugin.SOF_LoadLibrary(\"SKF_APP.dll\", \"libhunca_hsic_skf.so\", \"libhunca_hsic_skf.dylib\");\r\n }\r\n else if (type == this.HT) {\r\n ret = g_mTokenPlugin.SOF_LoadLibrary(\"HUNCA_HT_20522_SKF.dll\", \"libhunca_ht_h2070f63_skf.so\", \"libhunca_ht_h2070f63_skf.dylib\");\r\n }\r\n else if (type == this.K5) {\r\n if (isMobile()) {\r\n ret = g_mTokenPlugin.SOF_LoadLibrary(\"2\", \"mToken K5 Bluetooth\", \"com.longmai.security.plugin.driver.ble.BLEDriver\");\r\n }\r\n else {\r\n ret = g_mTokenPlugin.SOF_LoadLibrary(\"mtoken_k5.dll\", \"libgm3000.1.0.so\", \"libk5.1.0.dylib\");\r\n }\r\n }\r\n else if (type == this.TF) {\r\n if (isMobile()) {\r\n ret = g_mTokenPlugin.SOF_LoadLibrary(\"0\", \"mToken TF/SD Card\", \"com.longmai.security.plugin.driver.tf.TFDriver\");\r\n } else {\r\n ret = g_mTokenPlugin.SOF_LoadLibrary(\"mtoken_tf.dll\", \"libgm3000.1.0.so\", \"libtf.dylib\");\r\n }\r\n }\r\n else {\r\n return -1;\r\n }\r\n\r\n if (ret != 0) {\r\n return -2;\r\n }\r\n return this.SAR_OK;\r\n };\r\n\r\n\r\n this.SOF_EnumDevice = function () {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n var array = g_mTokenPlugin.SOF_EnumDevice();\r\n if (array == null || array.length <= 0) {\r\n return null;\r\n }\r\n\r\n return array.split(\"||\");\r\n\r\n };\r\n\r\n\r\n this.SOF_GetVersion = function () {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_GetVersion();\r\n };\r\n\r\n\r\n this.SOF_GetDeviceInstance = function (DeviceName, ApplicationName) {\r\n if (g_mTokenPlugin == null) {\r\n return -1;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_GetDeviceInstance(DeviceName, ApplicationName);\r\n };\r\n\r\n this.SOF_ReleaseDeviceInstance = function () {\r\n if (g_mTokenPlugin == null) {\r\n return -1;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_ReleaseDeviceInstance()\r\n }\r\n\r\n\r\n this.SOF_GetUserList = function () {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n var array = g_mTokenPlugin.SOF_GetUserList();\r\n if (array == null || array.length <= 0)\r\n return null;\r\n\r\n var list = new Array();\r\n var user = array.split(\"&&&\");\r\n var length = user.length;\r\n for (var i = 0; i < length; i++) {\r\n list[i] = user[i].split(\"||\");\r\n }\r\n\r\n return list;\r\n };\r\n\r\n\r\n this.SOF_ExportUserCert = function (ContainerName, KeySpec) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_ExportUserCert(ContainerName, KeySpec);\r\n };\r\n\r\n\r\n this.SOF_GetDeviceInfo = function (Type) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_GetDeviceInfo(Type);\r\n };\r\n\r\n\r\n this.SOF_GetCertInfo = function (Base64EncodeCert, Type) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_GetCertInfo(Base64EncodeCert, Type);\r\n };\r\n\r\n this.SOF_GetCertInfoByOid = function (Base64EncodeCert, OID) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_GetCertInfoByOid(Base64EncodeCert, OID);\r\n }\r\n\r\n this.SOF_Login = function (PassWd) {\r\n if (g_mTokenPlugin == null) {\r\n return -1;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_Login(PassWd);\r\n };\r\n\r\n\r\n this.SOF_LogOut = function () {\r\n if (g_mTokenPlugin == null) {\r\n return -1;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_LogOut();\r\n };\r\n\r\n\r\n this.SOF_GetPinRetryCount = function () {\r\n if (g_mTokenPlugin == null) {\r\n return -1;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_GetPinRetryCount();\r\n };\r\n\r\n\r\n this.SOF_ChangePassWd = function (OldPassWd, NewPassWd) {\r\n if (g_mTokenPlugin == null) {\r\n return -1;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_ChangePassWd(OldPassWd, NewPassWd);\r\n };\r\n\r\n\r\n this.SOF_SetDigestMethod = function (DigestMethod) {\r\n if (g_mTokenPlugin == null) {\r\n return -1;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_SetDigestMethod(DigestMethod);\r\n };\r\n\r\n\r\n this.SOF_SetUserID = function (UserID) {\r\n if (g_mTokenPlugin == null) {\r\n return -1;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_SetUserID(UserID);\r\n };\r\n\r\n\r\n this.SOF_SetEncryptMethodAndIV = function (EncryptMethod, EncryptIV) {\r\n if (g_mTokenPlugin == null) {\r\n return -1;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_SetEncryptMethodAndIV(EncryptMethod, EncryptIV);\r\n };\r\n\r\n\r\n this.SOF_EncryptFileToPKCS7 = function (Cert, InFile, OutFile, type) {\r\n if (g_mTokenPlugin == null) {\r\n return -1;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_EncryptFileToPKCS7(Cert, InFile, OutFile, type);\r\n };\r\n\r\n\r\n this.SOF_SignFileToPKCS7 = function (ContainerName, InFile, OutFile) {\r\n if (g_mTokenPlugin == null) {\r\n return -1;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_SignFileToPKCS7(ContainerName, InFile, OutFile);\r\n };\r\n\r\n this.SOF_VerifyFileToPKCS7 = function (strPkcs7Data, InFilePath) {\r\n if (g_mTokenPlugin == null) {\r\n return -1;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_VerifyFileToPKCS7(strPkcs7Data, InFilePath);\r\n };\r\n\r\n this.SOF_DecryptFileToPKCS7 = function (ContainerName, keySpec, Pkcs7Data, InFile, OutFile, type) {\r\n if (g_mTokenPlugin == null) {\r\n return -1;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_DecryptFileToPKCS7(ContainerName, keySpec, Pkcs7Data, InFile, OutFile, type);\r\n };\r\n\r\n this.SOF_DigestData = function (ContainerName, nData, InDataLen) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_DigestData(ContainerName, nData, InDataLen);\r\n };\r\n\r\n this.SOF_SignData = function (ContainerName, ulKeySpec, InData, InDataLen) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_SignData(ContainerName, ulKeySpec, InData, InDataLen);\r\n };\r\n //交互式签名\r\n this.SOF_SignDataInteractive = function (ContainerName, ulKeySpec, InData, InDataLen) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_SignDataInteractive(ContainerName, ulKeySpec, InData, InDataLen);\r\n }\r\n\r\n\r\n this.SOF_SignDataToPKCS7 = function (ContainerName, ulKeySpec, InData, ulDetached) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_SignDataToPKCS7(ContainerName, ulKeySpec, InData, ulDetached);\r\n };\r\n\r\n\r\n\r\n this.SOF_VerifyDataToPKCS7 = function (Base64EncodeCert, InData, SignedValue) {\r\n if (g_mTokenPlugin == null) {\r\n return -1;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_VerifyDataToPKCS7(Base64EncodeCert, InData, SignedValue);\r\n };\r\n\r\n\r\n this.SOF_VerifySignedData = function (Base64EncodeCert, digestMethod, InData, SignedValue) {\r\n if (g_mTokenPlugin == null) {\r\n return -1;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_VerifySignedData(Base64EncodeCert, digestMethod, InData, SignedValue);\r\n };\r\n\r\n\r\n this.SOF_EncryptDataPKCS7 = function (Base64EncodeCert, InData, InDataLen) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_EncryptDataPKCS7(Base64EncodeCert, InData, InDataLen);\r\n };\r\n\r\n\r\n this.SOF_DecryptDataPKCS7 = function (ContainerName, ulKeySpec, InData) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_DecryptDataPKCS7(ContainerName, ulKeySpec, InData);\r\n };\r\n\r\n\r\n this.SOF_GenRemoteUnblockRequest = function () {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_GenRemoteUnblockRequest();\r\n };\r\n\r\n\r\n this.SOF_GenResetpwdResponse = function (request, soPin, userPin) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_GenResetpwdResponse(request, soPin, userPin);\r\n };\r\n\r\n\r\n this.SOF_RemoteUnblockPIN = function (request) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_RemoteUnblockPIN(request);\r\n };\r\n\r\n\r\n this.SOF_SignDataToPKCS7 = function (ContainerName, ulKeySpec, InData, ulDetached) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_SignDataToPKCS7(ContainerName, ulKeySpec, InData, ulDetached);\r\n };\r\n\r\n\r\n this.SOF_VerifyDataToPKCS7 = function (strPkcs7Data, OriginalText, ulDetached) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_VerifyDataToPKCS7(strPkcs7Data, OriginalText, ulDetached);\r\n };\r\n\r\n //按expType导出的公钥,格式为国密规范指定的格式或DER格式\r\n this.SOF_ExportPubKey = function (containerName, cerType, expType) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_ExportPubKey(containerName, cerType, expType);\r\n }\r\n\r\n this.SOF_EncryptByPubKey = function (strPubKey, strInput, cerType) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_EncryptByPubKey(strPubKey, strInput, cerType);\r\n }\r\n\r\n this.SOF_DecryptByPrvKey = function (containerName, cerType, strAsymCipher) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_DecryptByPrvKey(containerName, cerType, strAsymCipher);\r\n }\r\n\r\n //RA客户端相关接口:P10及证书导入等\r\n this.SOF_GenerateP10Request = function (deviceName, container, dn, asymAlg, keySpec, keyLength) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_GenerateP10Request(deviceName, container, dn, asymAlg, keySpec, keyLength);\r\n }\r\n\r\n this.SOF_EnumCertContiner = function () {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_EnumCertContiner();\r\n }\r\n\r\n this.SOF_FindContainer = function (certSN) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_FindContainer(certSN);\r\n }\r\n\r\n this.SOF_DeleteCert = function (certSN) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_DeleteCert(certSN);\r\n }\r\n\r\n this.SOF_DeleteContainer = function (certSN) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_DeleteContainer(certSN);\r\n }\r\n\r\n this.SOF_SignByCert = function (certSN, plain) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_SignByCert(certSN, plain);\r\n }\r\n\r\n this.SOF_VerifyByCert = function (certSN, plain, signature) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_VerifyByCert(certSN, plain, signature);\r\n }\r\n\r\n\r\n this.SOF_ImportCert = function (container, cert, keySpec) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_ImportCert(container, cert, keySpec);\r\n }\r\n\r\n this.SOF_ImportCryptoCertAndKey = function (container, cert, nAsymAlg, EncryptedSessionKeyData, symAlg, EncryptedPrivateKeyData, mode) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_ImportCryptoCertAndKey(container, cert, nAsymAlg, EncryptedSessionKeyData, symAlg, EncryptedPrivateKeyData, mode);\r\n }\r\n\r\n this.SOF_VerifyByExtCert = function (cert, plain, signature, digestMethod) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_VerifyByExtCert(cert, plain, signature, digestMethod);\r\n }\r\n\r\n this.SOF_GenerateRandom = function (length) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_GenerateRandom(length);\r\n }\r\n\r\n this.SOF_SymEncryptFile = function (sessionKey, srcfile, destfile, type) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_SymEncryptFile(sessionKey, srcfile, destfile, type);\r\n }\r\n\r\n this.SOF_SymDecryptFile = function (sessionKey, srcfile, destfile, type) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_SymDecryptFile(sessionKey, srcfile, destfile, type);\r\n }\r\n\r\n this.SOF_SymEncryptData = function (sessionKey, inData) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_SymEncryptData(sessionKey, inData);\r\n }\r\n\r\n this.SOF_SymDecryptData = function (sessionKey, inData) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_SymDecryptData(sessionKey, inData);\r\n }\r\n\r\n this.SOF_GenerateQRCode = function (qrcode_text) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_GenerateQRCode(qrcode_text);\r\n }\r\n\r\n\r\n this.SOF_VerifyPinMS = function (responseKey) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_VerifyPinMS(responseKey);\r\n }\r\n\r\n this.SOF_GetHardwareType = function () {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_GetHardwareType();\r\n }\r\n\r\n this.SOF_VerifyFingerprint = function () {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n return g_mTokenPlugin.SOF_VerifyFingerprint();\r\n }\r\n\r\n\r\n this.SOF_EnumFiles = function () {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n\r\n var array = g_mTokenPlugin.SOF_EnumFiles();\r\n if (array == null || array.length <= 0) {\r\n return null;\r\n }\r\n\r\n return array.split(\"||\");\r\n }\r\n\r\n this.SOF_ReadFile = function (fileName, offset, length) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n return g_mTokenPlugin.SOF_ReadFile(fileName, Number(offset), Number(length));\r\n }\r\n\r\n this.SOF_WriteFile = function (fileName, offset, data) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n return g_mTokenPlugin.SOF_WriteFile(fileName, offset, data);\r\n }\r\n\r\n this.SOF_CreateFile = function (fileName, length, readRight, writeRight) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n return g_mTokenPlugin.SOF_CreateFile(fileName, length, readRight, writeRight);\r\n }\r\n\r\n this.SOF_DeleteFile = function (fileName) {\r\n if (g_mTokenPlugin == null) {\r\n return null;\r\n }\r\n return g_mTokenPlugin.SOF_DeleteFile(fileName);\r\n }\r\n\r\n\r\n}\r\n\r\n//判断插件名称是否存在\r\nfunction hasPlugin (name) {\r\n name = name.toLowerCase();\r\n for (var i = 0; i < navigator.plugins.length; i++) {\r\n if (navigator.plugins[i].name.toLowerCase().indexOf(name) > -1) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n}\r\n//判断系统\r\nfunction check_os () {\r\n var windows = (navigator.userAgent.indexOf(\"Windows\", 0) != -1) ? 1 : 0;\r\n // eslint-disable-next-line no-unused-vars\r\n var mac = (navigator.userAgent.indexOf(\"mac\", 0) != -1) ? 1 : 0;\r\n var linux = (navigator.userAgent.indexOf(\"Linux\", 0) != -1) ? 1 : 0;\r\n // eslint-disable-next-line no-unused-vars\r\n var unix = (navigator.userAgent.indexOf(\"X11\", 0) != -1) ? 1 : 0;\r\n var os_type = \"\";\r\n if (windows) os_type = \"MS Windows\";\r\n // eslint-disable-next-line no-unused-vars\r\n else if (linux) os_type = \"Lunix\";\r\n if (hasPlugin(\"mPlugin1.0.0.1\")) {\r\n linuxWin = 2;\r\n return \"id_mPluginV2Router\";\r\n } else {\r\n linuxWin = 1;\r\n return \"mTokenPlugin\";\r\n }\r\n\r\n\r\n}\r\nvar linuxWin = 0;\r\nvar os;\r\n\r\nfunction mTokenPlugin () {\r\n var _xmlhttp;\r\n var retJSON = \"\";\r\n\r\n function AjaxIO (json_in) {\r\n //id_mPluginV2Router mTokenPlugin\r\n if (os == \"id_mPluginV2Router\") {\r\n var router = null;\r\n //var url = \"http://192.168.1.25:51235/alpha\";\r\n var url = \"http://127.0.0.1:51235/alpha\";\r\n\r\n router = document.getElementById(\"id_mPluginV2Router\");\r\n if (null == router) {\r\n alert(\"无法获取到插件,请确认已经安装好插件!\");\r\n }\r\n /*\r\n if(\"https:\" == document.location.protocol)\r\n {\r\n url = \"https://127.0.0.1:51245/alpha\";\r\n }\r\n */\r\n var json = json_in;\r\n\r\n retJSON = router.invoke(url, json);\r\n return retJSON;\r\n } else {\r\n\r\n // eslint-disable-next-line no-unused-vars\r\n var _curDevName = \"\";\r\n var _url = \"http://127.0.0.1:51235/alpha\";\r\n let json = json_in;\r\n if (_xmlhttp == null) {\r\n if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari\r\n _xmlhttp = new XMLHttpRequest();\r\n } else { // code for IE6, IE5\r\n // eslint-disable-next-line no-undef\r\n _xmlhttp = new ActiveXObject(\"Microsoft.XMLHTTP\");\r\n }\r\n }\r\n\r\n /***\r\n if (\"https:\" == document.location.protocol) {\r\n _url = \"https://127.0.0.1:51245/alpha\";\r\n }\r\n ***/\r\n _xmlhttp.open(\"POST\", _url, false);\r\n _xmlhttp.setRequestHeader(\"Content-type\", \"application/x-www-form-urlencoded\");\r\n _xmlhttp.send(\"json=\" + json);\r\n }\r\n\r\n\r\n\r\n\r\n }\r\n\r\n function GetHttpResult () {\r\n if (_xmlhttp.readyState == 4 && _xmlhttp.status == 200) {\r\n var obj = eval(\"(\" + _xmlhttp.responseText + \")\");\r\n return obj;\r\n }\r\n else {\r\n return null;\r\n }\r\n }\r\n\r\n this.SOF_GetLastError = function () {\r\n var json = '{\"function\":\"SOF_GetLastError\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.errorCode;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.rtn;\r\n }\r\n\r\n return -2;\r\n }\r\n }\r\n\r\n this.SOF_LoadLibrary = function (windows, linux, mac) {\r\n var json = '{\"function\":\"SOF_LoadLibrary\", \"winDllName\":\"' + windows + '\", \"linuxSOName\":\"' + linux + '\", \"macDylibName\":\"' + mac + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.rtn;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.rtn;\r\n }\r\n\r\n return -2;\r\n }\r\n };\r\n\r\n\r\n this.SOF_EnumDevice = function () {\r\n var json = '{\"function\":\"SOF_EnumDevice\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.array;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.array;\r\n }\r\n\r\n return -2;\r\n }\r\n };\r\n\r\n\r\n this.SOF_GetVersion = function () {\r\n var json = '{\"function\":\"SOF_GetVersion\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.version;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.version;\r\n }\r\n\r\n return -2;\r\n }\r\n };\r\n\r\n var _curDevName;\r\n this.SOF_GetDeviceInstance = function (DeviceName, ApplicationName) {\r\n var json = '{\"function\":\"SOF_GetDeviceInstance\", \"deviceName\":\"' + DeviceName + '\", \"applicationName\":\"' + ApplicationName + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n _curDevName = DeviceName;\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.rtn;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n if (ret.rtn == 0) {\r\n _curDevName = DeviceName;\r\n }\r\n return ret.rtn;\r\n }\r\n\r\n return -2;\r\n }\r\n };\r\n\r\n this.SOF_ReleaseDeviceInstance = function () {\r\n var json = '{\"function\":\"SOF_ReleaseDeviceInstance\", \"deviceName\":\"' + _curDevName + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n }\r\n catch (e) {\r\n return -3;\r\n }\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.array;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.rtn;\r\n }\r\n\r\n return -2;\r\n }\r\n };\r\n\r\n this.SOF_GetUserList = function () {\r\n var json = '{\"function\":\"SOF_GetUserList\", \"deviceName\":\"' + _curDevName + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.array;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.array;\r\n }\r\n\r\n return -2;\r\n }\r\n };\r\n\r\n\r\n this.SOF_ExportUserCert = function (ContainerName, KeySpec) {\r\n\r\n var json = '{\"function\":\"SOF_ExportUserCert\", \"deviceName\":\"' + _curDevName + '\", \"containerName\":\"' + ContainerName + '\", \"keySpec\":' + KeySpec + '}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.cert;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.cert;\r\n }\r\n\r\n return -2;\r\n }\r\n };\r\n\r\n\r\n this.SOF_GetDeviceInfo = function (Type) {\r\n var json = '{\"function\":\"SOF_GetDeviceInfo\", \"deviceName\":\"' + _curDevName + '\", \"type\":' + Type + '}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.info;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.info;\r\n }\r\n\r\n return -2;\r\n }\r\n\r\n };\r\n\r\n\r\n this.SOF_GetCertInfo = function (Base64EncodeCert, Type) {\r\n var json = '{\"function\":\"SOF_GetCertInfo\", \"base64EncodeCert\":\"' + Base64EncodeCert + '\", \"type\":' + Type + '}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.info;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.info;\r\n }\r\n\r\n return -2;\r\n }\r\n\r\n };\r\n\r\n\r\n this.SOF_GetCertInfoByOid = function (Base64EncodeCert, OID) {\r\n var json = '{\"function\":\"SOF_GetCertInfoByOid\", \"base64EncodeCert\":\"' + Base64EncodeCert + '\", \"oid\":\"' + OID + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.info;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n }\r\n catch (e) {\r\n return -3;\r\n }\r\n\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.info;\r\n }\r\n\r\n return null;\r\n }\r\n\r\n };\r\n\r\n\r\n\r\n this.SOF_Login = function (PassWd) {\r\n\r\n var json = '{\"function\":\"SOF_Login\", \"deviceName\":\"' + _curDevName + '\", \"passWd\":\"' + PassWd + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.rtn;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.rtn;\r\n }\r\n\r\n return -2;\r\n }\r\n };\r\n\r\n\r\n this.SOF_LogOut = function () {\r\n\r\n var json = '{\"function\":\"SOF_LogOut\", \"deviceName\":\"' + _curDevName + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.rtn;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.rtn;\r\n }\r\n\r\n return -2;\r\n }\r\n };\r\n\r\n\r\n this.SOF_GetPinRetryCount = function () {\r\n\r\n var json = '{\"function\":\"SOF_GetPinRetryCount\", \"deviceName\":\"' + _curDevName + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.retryCount;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.retryCount;\r\n }\r\n\r\n return -2;\r\n }\r\n };\r\n\r\n\r\n this.SOF_ChangePassWd = function (OldPassWd, NewPassWd) {\r\n\r\n var json = '{\"function\":\"SOF_ChangePassWd\", \"deviceName\":\"' + _curDevName + '\", \"oldUpin\":\"' + OldPassWd + '\", \"newUpin\":\"' + NewPassWd + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.rtn;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.rtn;\r\n }\r\n\r\n return -2;\r\n }\r\n };\r\n\r\n\r\n this.SOF_SetDigestMethod = function (DigestMethod) {\r\n\r\n var json = '{\"function\":\"SOF_SetDigestMethod\",\"deviceName\":\"' + _curDevName + '\", \"digestMethod\":' + DigestMethod + '}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.rtn;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.rtn;\r\n }\r\n\r\n return -2;\r\n }\r\n };\r\n\r\n\r\n this.SOF_SetUserID = function (UserID) {\r\n\r\n var json = '{\"function\":\"SOF_SetUserID\",\"deviceName\":\"' + _curDevName + '\", \"userID\":\"' + UserID + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.rtn;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.rtn;\r\n }\r\n\r\n return -2;\r\n }\r\n };\r\n\r\n\r\n this.SOF_SetEncryptMethodAndIV = function (EncryptMethod, EncryptIV) {\r\n\r\n var json = '{\"function\":\"SOF_SetEncryptMethodAndIV\",\"deviceName\":\"' + _curDevName + '\", \"encryptMethod\":' + EncryptMethod + ', \"encryptIV\":\"' + EncryptIV + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.rtn;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.rtn;\r\n }\r\n\r\n return -2;\r\n }\r\n };\r\n\r\n\r\n this.SOF_EncryptFileToPKCS7 = function (Cert, InFile, OutFile, type) {\r\n\r\n var json = '{\"function\":\"SOF_EncryptFileToPKCS7\", \"deviceName\":\"' + _curDevName + '\", \"cert\":\"' + Cert + '\", \"inFile\":\"' + InFile.replace(/\\\\/g, '\\\\\\\\') + '\", \"outFile\":\"' + OutFile.replace(/\\\\/g, '\\\\\\\\') + '\", \"type\":' + type + '}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.envelopData;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.envelopData;\r\n }\r\n\r\n return -2;\r\n }\r\n };\r\n\r\n\r\n this.SOF_SignFileToPKCS7 = function (ContainerName, KeySpec, InFile) {\r\n\r\n var json = '{\"function\":\"SOF_SignFileToPKCS7\", \"deviceName\":\"' + _curDevName + '\", \"containerName\":\"' + ContainerName + '\", \"KeySpec\":' + KeySpec + ', \"inFile\":\"' + InFile.replace(/\\\\/g, '\\\\\\\\') + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.signed;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.signed;\r\n }\r\n\r\n return -2;\r\n }\r\n };\r\n\r\n\r\n this.SOF_VerifyFileToPKCS7 = function (strPkcs7Data, InFilePath) {\r\n var json = '{\"function\":\"SOF_VerifyFileToPKCS7\", \"deviceName\":\"' + _curDevName + '\",\"strPkcs7Data\":\"' + strPkcs7Data + '\", \"inFile\":\"' + InFilePath.replace(/\\\\/g, '\\\\\\\\') + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.rtn;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.rtn;\r\n }\r\n\r\n return -2;\r\n }\r\n };\r\n\r\n\r\n this.SOF_DecryptFileToPKCS7 = function (ContainerName, keySpec, Pkcs7Data, InFile, OutFile, type) {\r\n\r\n var json = '{\"function\":\"SOF_DecryptFileToPKCS7\", \"deviceName\":\"' + _curDevName + '\", \"containerName\":\"' + ContainerName + '\", \"keySpec\":' + keySpec + ', \"pkcs7Data\":\"' + Pkcs7Data + '\", \"inFile\":\"' + InFile.replace(/\\\\/g, '\\\\\\\\') + '\", \"outFile\":\"' + OutFile.replace(/\\\\/g, '\\\\\\\\') + '\", \"type\":' + type + '}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.rtn;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.rtn;\r\n }\r\n\r\n return -2;\r\n }\r\n };\r\n\r\n\r\n this.SOF_DigestData = function (ContainerName, InData, InDataLen) {\r\n\r\n var json = '{\"function\":\"SOF_DigestData\",\"deviceName\":\"' + _curDevName + '\", \"containerName\":\"' + ContainerName + '\", \"inData\":\"' + InData + '\", \"inDataLen\":' + InDataLen + '}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.digest;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.digest;\r\n }\r\n\r\n return -2;\r\n }\r\n };\r\n\r\n //交互式签名\r\n this.SOF_SignDataInteractive = function (ContainerName, ulKeySpec, inData, InDataLen) {\r\n var InDataBase64 = inData; //对报文进行Base64编码\r\n var json = '{\"function\":\"SOF_SignDataInteractive\", \"deviceName\":\"' + _curDevName + '\", \"containerName\":\"' + ContainerName + '\", \"keySpec\":' + ulKeySpec + ', \"inData\":\"' + InDataBase64 + '\", \"inDataLen\":' + InDataLen + '}';\r\n\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.signed;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n }\r\n catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.signed;\r\n }\r\n\r\n return null;\r\n }\r\n };\r\n\r\n this.SOF_SignData = function (ContainerName, ulKeySpec, InData, InDataLen) {\r\n\r\n var json = '{\"function\":\"SOF_SignDataEx\", \"deviceName\":\"' + _curDevName + '\", \"containerName\":\"' + ContainerName + '\", \"keySpec\":' + ulKeySpec + ', \"inData\":\"' + InData + '\", \"inDataLen\":' + InDataLen + '}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.signed;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.signed;\r\n }\r\n\r\n return -2;\r\n }\r\n };\r\n\r\n\r\n this.SOF_VerifySignedData = function (Base64EncodeCert, digestMethod, InData, SignedValue) {\r\n var json = '{\"function\":\"SOF_VerifySignedDataEx\",\"deviceName\":\"' + _curDevName + '\", \"base64EncodeCert\":\"' + Base64EncodeCert + '\", \"digestMethod\":' + digestMethod + ', \"inData\":\"' + InData + '\", \"signedValue\":\"' + SignedValue + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.rtn;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.rtn;\r\n }\r\n\r\n return -2;\r\n }\r\n };\r\n\r\n\r\n this.SOF_EncryptDataPKCS7 = function (Base64EncodeCert, InData, InDataLen) {\r\n\r\n var json = '{\"function\":\"SOF_EncryptDataPKCS7\", \"deviceName\":\"' + _curDevName + '\", \"base64EncodeCert\":\"' + Base64EncodeCert + '\", \"inData\":\"' + InData + '\", \"inDataLen\":' + InDataLen + '}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.encrypedData;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.encrypedData;\r\n }\r\n\r\n return -2;\r\n }\r\n\r\n };\r\n\r\n\r\n this.SOF_DecryptDataPKCS7 = function (ContainerName, ulKeySpec, InData) {\r\n\r\n var json = '{\"function\":\"SOF_DecryptDataPKCS7\", \"deviceName\":\"' + _curDevName + '\", \"containerName\":\"' + ContainerName + '\", \"keySpec\":' + ulKeySpec + ', \"inData\":\"' + InData + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.decryptedData;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.decryptedData;\r\n }\r\n\r\n return -2;\r\n }\r\n };\r\n\r\n\r\n this.SOF_GenRemoteUnblockRequest = function () {\r\n\r\n var json = '{\"function\":\"SOF_GenRemoteUnblockRequest\", \"deviceName\":\"' + _curDevName + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.request;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.request;\r\n }\r\n\r\n return -2;\r\n }\r\n };\r\n\r\n\r\n this.SOF_GenResetpwdResponse = function (request, soPin, userPin) {\r\n\r\n var json = '{\"function\":\"SOF_GenResetpwdResponse\", \"deviceName\":\"' + _curDevName + '\", \"request\":\"' + request + '\", \"soPin\":\"' + soPin + '\", \"userPin\":\"' + userPin + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.request;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.request;\r\n }\r\n\r\n return -2;\r\n }\r\n };\r\n\r\n\r\n this.SOF_RemoteUnblockPIN = function (request) {\r\n\r\n var json = '{\"function\":\"SOF_RemoteUnblockPIN\", \"deviceName\":\"' + _curDevName + '\", \"request\":\"' + request + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.rtn;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.rtn;\r\n }\r\n\r\n return -2;\r\n }\r\n };\r\n\r\n\r\n this.SOF_SignDataToPKCS7 = function (ContainerName, ulKeySpec, InData, ulDetached) {\r\n\r\n var json = '{\"function\":\"SOF_SignDataToPKCS7\", \"deviceName\":\"' + _curDevName + '\", \"containerName\":\"' + ContainerName + '\", \"keySpec\":' + ulKeySpec + ', \"inData\":\"' + InData + '\", \"detached\":' + ulDetached + '}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.pkcs7;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.pkcs7;\r\n }\r\n\r\n return -2;\r\n }\r\n };\r\n\r\n\r\n this.SOF_VerifyDataToPKCS7 = function (strPkcs7Data, OriginalText, ulDetached) {\r\n\r\n var json = '{\"function\":\"SOF_VerifyDataToPKCS7\", \"deviceName\":\"' + _curDevName + '\", \"pkcs7\":\"' + strPkcs7Data + '\", \"original\":\"' + OriginalText + '\", \"detached\":' + ulDetached + '}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.rtn;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.rtn;\r\n }\r\n\r\n return -2;\r\n }\r\n };\r\n\r\n //按expType导出的公钥,格式为国密规范指定的格式或DER格式或裸数据格式\r\n this.SOF_ExportPubKey = function (containerName, keySpec, expType) //expType=1: 国密格式; 2:DER; 3:RAW (SM2 public key ONLY: X|Y, X,Y各为32字节)\r\n {\r\n var json = '{\"function\":\"SOF_ExportPubKeyEx\",\"deviceName\":\"' + _curDevName + '\", \"containerName\":\"' + containerName + '\", \"keySpec\":' + keySpec + ', \"expType\":' + expType + '}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.pubKey;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.pubKey;\r\n }\r\n\r\n return -2;\r\n }\r\n }\r\n\r\n //公钥加密\r\n this.SOF_EncryptByPubKey = function (strPubKey, strInput, cerType) {\r\n var json = '{\"function\":\"SOF_EncryptByPubKey\", \"deviceName\":\"' + _curDevName + '\", \"pubKey\":\"' + strPubKey + '\", \"asymPlain\":\"' + strInput + '\", \"keySpec\":' + cerType + '}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.asymCipher;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n }\r\n catch (e) {\r\n return -3;\r\n }\r\n\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.asymCipher;\r\n }\r\n\r\n return null;\r\n }\r\n }\r\n\r\n //私钥解密\r\n this.SOF_DecryptByPrvKey = function (containerName, cerType, strAsymCipher) {\r\n var json = '{\"function\":\"SOF_DecryptByPrvKey\", \"deviceName\":\"' + _curDevName + '\", \"containerName\":\"' + containerName + '\", \"asymCipher\":\"' + strAsymCipher + '\", \"keySpec\":' + cerType + '}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.asymPlain;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n }\r\n catch (e) {\r\n return -3;\r\n }\r\n\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.asymPlain;\r\n }\r\n\r\n return null;\r\n }\r\n }\r\n\r\n //RA客户端控件\r\n this.SOF_CreateKeyPair = function (container, keySpec, asymAlg, keyLength) {\r\n var json = '{\"function\":\"SOF_CreateKeyPair\",\"deviceName\":\"' + _curDevName + '\", \"containerName\":\"' + container + '\", \"asymAlg\":' + asymAlg + ', \"keySpec\":' + keySpec + ',\"keyLength\":' + keyLength + '}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.rtn;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n }\r\n catch (e) {\r\n return -3;\r\n }\r\n\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.rtn;\r\n }\r\n\r\n return -2;\r\n }\r\n }\r\n\r\n this.SOF_EnumCertContiner = function () {\r\n var json = '{\"function\":\"SOF_EnumCertContiner\", \"deviceName\":\"' + _curDevName + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.containerName;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n }\r\n catch (e) {\r\n return -3;\r\n }\r\n\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.containerName;\r\n }\r\n\r\n return \"\";\r\n }\r\n }\r\n\r\n this.SOF_FindContainer = function (certSN) {\r\n var json = '{\"function\":\"SOF_FindContainer\",\"deviceName\":\"' + _curDevName + '\", \"certSN\":\"' + certSN + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.containerName;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n }\r\n catch (e) {\r\n return -3;\r\n }\r\n\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.containerName;\r\n }\r\n\r\n return \"\";\r\n }\r\n }\r\n\r\n this.SOF_DeleteCert = function (certSN) {\r\n var json = '{\"function\":\"SOF_DeleteCert\",\"deviceName\":\"' + _curDevName + '\", \"certSN\":\"' + certSN + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.rtn;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n }\r\n catch (e) {\r\n return -3;\r\n }\r\n\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.rtn;\r\n }\r\n\r\n return -2;\r\n }\r\n }\r\n\r\n this.SOF_DeleteContainer = function (certSN) {\r\n var json = '{\"function\":\"SOF_DeleteContainer\", \"deviceName\":\"' + _curDevName + '\", \"certSN\":\"' + certSN + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.rtn;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n }\r\n catch (e) {\r\n return -3;\r\n }\r\n\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.rtn;\r\n }\r\n\r\n return -2;\r\n }\r\n }\r\n\r\n this.SOF_SignByCert = function (certSN, plain) {\r\n var json = '{\"function\":\"SOF_SignByCert\", \"deviceName\":\"' + _curDevName + '\", \"certSN\":\"' + certSN + '\", \"inData\":\"' + plain + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.signed;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n }\r\n catch (e) {\r\n return -3;\r\n }\r\n\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.signed;\r\n }\r\n\r\n return null;\r\n }\r\n }\r\n\r\n this.SOF_VerifyByCert = function (certSN, plain, signature, digestMethod) {\r\n\r\n var json = '{\"function\":\"SOF_VerifyByCert\", \"deviceName\":\"' + _curDevName + '\", \"certSN\":\"' + certSN + '\",\"digestMethod\":' + digestMethod + ', \"inData\":\"' + plain + '\", \"signed\":\"' + signature + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.rtn;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n }\r\n catch (e) {\r\n return -3;\r\n }\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.rtn;\r\n }\r\n\r\n return -2;\r\n }\r\n }\r\n\r\n this.SOF_VerifyByExtCert = function (cert, plain, signature, digestMethod) {\r\n var json = '{\"function\":\"SOF_VerifyByExtCert\",\"deviceName\":\"' + _curDevName + '\", \"cert\":\"' + cert + '\", \"digestMethod\":' + digestMethod + ', \"inData\":\"' + plain + '\", \"signed\":\"' + signature + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.rtn;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n }\r\n catch (e) {\r\n return -3;\r\n }\r\n\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.rtn;\r\n }\r\n\r\n return -2;\r\n }\r\n }\r\n\r\n // this.SOF_GenerateP10Request = function (container, dn, asymAlg, keySpec, keyLength) {\r\n // var json = '{\"function\":\"SOF_GenerateP10Request\", \"deviceName\":\"' + _curDevName + '\", \"containerName\":\"' + container + '\", \"certDN\":\"' + dn + '\", \"asymAlg\":' + asymAlg + ', \"keySpec\":' + keySpec + ',\"keyLength\":' + keyLength + '}';\r\n // if (linuxWin == 2) {\r\n // var retJSON = \"\";\r\n // try {\r\n // retJSON = AjaxIO(json);\r\n // } catch (e) {\r\n // return -3;\r\n // }\r\n //\r\n //\r\n // if (retJSON.length > 3) {\r\n // var obj = eval(\"(\" + retJSON + \")\");\r\n // return obj.outData;\r\n // } else {\r\n // return -2;\r\n //\r\n // }\r\n // } else {\r\n // try {\r\n // AjaxIO(json);\r\n // }\r\n // catch (e) {\r\n // return -3;\r\n // }\r\n //\r\n // var ret = GetHttpResult();\r\n // if (ret) {\r\n // return ret.outData;\r\n // }\r\n //\r\n // return null;\r\n // }\r\n // }\r\n this.SOF_GenerateP10Request = function (_curDevName, container, dn, asymAlg, keySpec, keyLength) {\r\n var json = '{\"function\":\"SOF_GenerateP10Request\", \"deviceName\":\"' + _curDevName + '\", \"containerName\":\"' + container + '\", \"certDN\":\"' + dn + '\", \"asymAlg\":' + asymAlg + ', \"keySpec\":' + keySpec + ',\"keyLength\":' + keyLength + '}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.outData;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n }\r\n catch (e) {\r\n return -3;\r\n }\r\n\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.outData;\r\n }\r\n\r\n return null;\r\n }\r\n }\r\n this.SOF_ImportCert = function (container, cert, keySpec) {\r\n var json = '{\"function\":\"SOF_ImportCert\", \"deviceName\":\"' + _curDevName + '\", \"containerName\":\"' + container + '\", \"cert\":\"' + cert + '\", \"keySpec\":' + keySpec + '}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.rtn;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n }\r\n catch (e) {\r\n return -3;\r\n }\r\n\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.rtn;\r\n }\r\n\r\n return -2;\r\n }\r\n }\r\n\r\n this.SOF_ImportCryptoCertAndKey = function (container, cert, nAsymAlg, EncryptedSessionKeyData, symAlg, EncryptedPrivateKeyData, mode) {\r\n var json = '{\"function\":\"SOF_ImportCryptoCertAndKey\", \"deviceName\":\"' + _curDevName + '\", \"containerName\":\"' + container + '\", \"cert\":\"' + cert + '\", \"asymAlg\":' + nAsymAlg + ', \"sessionKey\":\"' + EncryptedSessionKeyData + '\", \"symAlg\":\"' + symAlg + '\", \"encrypedData\":\"' + EncryptedPrivateKeyData + ', + \"mode\":' + mode + '}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.rtn;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n }\r\n catch (e) {\r\n return -3;\r\n }\r\n\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.rtn;\r\n }\r\n\r\n return -2;\r\n }\r\n }\r\n\r\n this.SOF_GenerateRandom = function (length) {\r\n var json = '{\"function\":\"SOF_GenRandom\", \"deviceName\":\"' + _curDevName + '\", \"inDataLen\":' + length + '}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.outData;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n }\r\n catch (e) {\r\n return -3;\r\n }\r\n\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.outData;\r\n }\r\n\r\n return -2;\r\n }\r\n }\r\n\r\n this.SOF_SymEncryptFile = function (sessionKey, srcfile, destfile, type) {\r\n var json = '{\"function\":\"SOF_SymEncryptFile\", \"deviceName\":\"' + _curDevName + '\", \"sessionKey\":\"' + sessionKey + '\", \"inFile\":\"' + srcfile.replace(/\\\\/g, '\\\\\\\\') + '\", \"outFile\":\"' + destfile.replace(/\\\\/g, '\\\\\\\\') + '\", \"type\":' + type + '}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.rtn;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n }\r\n catch (e) {\r\n return -3;\r\n }\r\n\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.rtn;\r\n }\r\n\r\n return -2;\r\n }\r\n }\r\n\r\n this.SOF_SymDecryptFile = function (sessionKey, srcfile, destfile, type) {\r\n var json = '{\"function\":\"SOF_SymDecryptFile\", \"deviceName\":\"' + _curDevName + '\", \"sessionKey\":\"' + sessionKey + '\", \"inFile\":\"' + srcfile.replace(/\\\\/g, '\\\\\\\\') + '\", \"outFile\":\"' + destfile.replace(/\\\\/g, '\\\\\\\\') + '\", \"type\":' + type + '}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.rtn;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n }\r\n catch (e) {\r\n return -3;\r\n }\r\n\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.rtn;\r\n }\r\n\r\n return -2;\r\n }\r\n }\r\n\r\n this.SOF_SymEncryptData = function (sessionKey, inData) {\r\n var json = '{\"function\":\"SOF_SymEncryptData\", \"deviceName\":\"' + _curDevName + '\", \"sessionKey\":\"' + sessionKey + '\", \"inData\":\"' + inData + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.outData;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n }\r\n catch (e) {\r\n return -3;\r\n }\r\n\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.outData;\r\n }\r\n\r\n return null;\r\n }\r\n }\r\n\r\n this.SOF_SymDecryptData = function (sessionKey, inData) {\r\n var json = '{\"function\":\"SOF_SymDecryptData\", \"deviceName\":\"' + _curDevName + '\", \"sessionKey\":\"' + sessionKey + '\", \"inData\":\"' + inData + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.outData;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n }\r\n catch (e) {\r\n return -3;\r\n }\r\n\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.outData;\r\n }\r\n\r\n return null;\r\n }\r\n }\r\n\r\n /////////////////////////////////////////////////////////////////\r\n this.SOF_GenerateQRCode = function (qrcode_text_in) {\r\n var qrcode_text = qrcode_text_in.replace(/\"/g, '\\\\\"');\r\n var json = '{\"module\":\"libQR\",\"function\":\"SOF_GenerateQRCode\", \"inData\":\"' + qrcode_text + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.outData;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n }\r\n catch (e) {\r\n return -3;\r\n }\r\n\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.outData;\r\n }\r\n\r\n return null;\r\n }\r\n }\r\n\r\n this.SOF_VerifyPinMS = function (responseKey) {\r\n var json = '{\"function\":\"SOF_VerifyPinMS\", \"deviceName\":\"' + _curDevName + '\", \"passWd\":\"' + responseKey + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.rtn;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n }\r\n catch (e) {\r\n return -3;\r\n }\r\n\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.rtn;\r\n }\r\n\r\n return -2;\r\n }\r\n }\r\n /////////////////////////////////////////////////////////////////\r\n this.SOF_GetHardwareType = function () {\r\n var json = '{\"function\":\"SOF_GetHardwareType\", \"deviceName\":\"' + _curDevName + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.type;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n }\r\n catch (e) {\r\n return -3;\r\n }\r\n\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.type;\r\n }\r\n\r\n return -2;\r\n }\r\n }\r\n\r\n this.SOF_VerifyFingerprint = function () {\r\n var json = '{\"function\":\"SOF_VerifyFingerprint\", \"deviceName\":\"' + _curDevName + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.rtn;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n }\r\n catch (e) {\r\n return -3;\r\n }\r\n\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.rtn;\r\n }\r\n\r\n return -2;\r\n }\r\n }\r\n\r\n this.SOF_EnumFiles = function () {\r\n var json = '{\"function\":\"SOF_EnumFiles\", \"deviceName\":\"' + _curDevName + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.array;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n }\r\n catch (e) {\r\n return -3;\r\n }\r\n\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.array;\r\n }\r\n\r\n return -2;\r\n }\r\n }\r\n\r\n this.SOF_ReadFile = function (fileName, offset, length) {\r\n var json = '{\"function\":\"SOF_ReadFile\", \"deviceName\":\"' + _curDevName + '\", \"fileName\":\"' + fileName + '\", \"offset\":' + offset + ',\"length\":' + length + '}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.outData;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n }\r\n catch (e) {\r\n return -3;\r\n }\r\n\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.outData;\r\n }\r\n }\r\n }\r\n\r\n this.SOF_WriteFile = function (fileName, offset, data) {\r\n var json = '{\"function\":\"SOF_WriteFile\", \"deviceName\":\"' + _curDevName + '\", \"fileName\":\"' + fileName + '\", \"offset\":' + offset + ',\"inData\":\"' + data + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.rtn;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n }\r\n catch (e) {\r\n return -3;\r\n }\r\n\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.rtn;\r\n }\r\n }\r\n }\r\n\r\n this.SOF_CreateFile = function (fileName, length, readRight, writeRight) {\r\n var json = '{\"function\":\"SOF_CreateFile\", \"deviceName\":\"' + _curDevName + '\",\"fileName\":\"' + fileName + '\", \"length\" :' + length + ', \"readRight\":' + readRight + ',\"writeRight\":' + writeRight + '}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.rtn;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n }\r\n catch (e) {\r\n return -3;\r\n }\r\n\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.rtn;\r\n }\r\n }\r\n }\r\n\r\n this.SOF_DeleteFile = function (fileName) {\r\n var json = '{\"function\":\"SOF_DeleteFile\", \"deviceName\":\"' + _curDevName + '\",\"fileName\":\"' + fileName + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.rtn;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n }\r\n catch (e) {\r\n return -3;\r\n }\r\n\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.rtn;\r\n }\r\n }\r\n }\r\n\r\n //Socket API\r\n this.SocketConnect = function (HostName, Port) {\r\n var json = '{\"module\":\"libSocket\",\"function\":\"SocketConnect\", \"HostName\":\"' + HostName + '\", \"Port\":' + Port + '}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.rtn;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n }\r\n catch (e) {\r\n return -3;\r\n }\r\n\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.rtn;\r\n }\r\n }\r\n }\r\n\r\n this.SocketDisConnect = function () {\r\n var json = '{\"module\":\"libSocket\",\"function\":\"SocketDisConnect\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.rtn;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n }\r\n catch (e) {\r\n return -3;\r\n }\r\n\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.rtn;\r\n }\r\n }\r\n }\r\n\r\n this.SocketSendText = function (SendText) {\r\n var json = '{\"module\":\"libSocket\",\"function\":\"SocketSendText\", \"SendText\":\"' + SendText + '\"}';\r\n if (linuxWin == 2) {\r\n var retJSON = \"\";\r\n try {\r\n retJSON = AjaxIO(json);\r\n } catch (e) {\r\n return -3;\r\n }\r\n\r\n\r\n if (retJSON.length > 3) {\r\n var obj = eval(\"(\" + retJSON + \")\");\r\n return obj.RecvText;\r\n } else {\r\n return -2;\r\n\r\n }\r\n } else {\r\n try {\r\n AjaxIO(json);\r\n }\r\n catch (e) {\r\n return -3;\r\n }\r\n\r\n var ret = GetHttpResult();\r\n if (ret) {\r\n return ret.RecvText;\r\n }\r\n }\r\n }\r\n}\r\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.p = \"\";","/* eslint-disable no-var */\n// This file is imported into lib/wc client bundles.\n\nif (typeof window !== 'undefined') {\n var currentScript = window.document.currentScript\n if (process.env.NEED_CURRENTSCRIPT_POLYFILL) {\n var getCurrentScript = require('@soda/get-current-script')\n currentScript = getCurrentScript()\n\n // for backward compatibility, because previously we directly included the polyfill\n if (!('currentScript' in document)) {\n Object.defineProperty(document, 'currentScript', { get: getCurrentScript })\n }\n }\n\n var src = currentScript && currentScript.src.match(/(.+\\/)[^/]+\\.js(\\?.*)?$/)\n if (src) {\n __webpack_public_path__ = src[1] // eslint-disable-line\n }\n}\n\n// Indicate to webpack that this file can be concatenated\nexport default null\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('el-dialog',{attrs:{\"title\":_vm.title,\"visible\":_vm.isShow,\"width\":\"350px\",\"append-to-body\":true},on:{\"close\":_vm.handleClose}},[_c('slide-verify',{ref:\"slideblock\",attrs:{\"l\":42,\"r\":10,\"w\":310,\"h\":155,\"imgs\":_vm.imgs,\"accuracy\":_vm.accuracy,\"slider-text\":_vm.sliderText},on:{\"success\":_vm.onSuccess,\"fail\":_vm.onFail,\"again\":_vm.onAgain,\"refresh\":_vm.onRefresh,\"fulfilled\":_vm.onFulfilled}})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <el-dialog\r\n :title=\"title\"\r\n :visible=\"isShow\"\r\n width=\"350px\"\r\n :append-to-body=\"true\"\r\n @close=\"handleClose\"\r\n >\r\n <slide-verify\r\n ref=\"slideblock\"\r\n :l=\"42\"\r\n :r=\"10\"\r\n :w=\"310\"\r\n :h=\"155\"\r\n :imgs=\"imgs\"\r\n :accuracy=\"accuracy\"\r\n :slider-text=\"sliderText\"\r\n @success=\"onSuccess\"\r\n @fail=\"onFail\"\r\n @again=\"onAgain\"\r\n @refresh=\"onRefresh\"\r\n @fulfilled=\"onFulfilled\"\r\n ></slide-verify>\r\n </el-dialog>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n name: \"YcSlideVerify\",\r\n props: {\r\n title: {\r\n type: String,\r\n default: \"滑动验证\",\r\n },\r\n isShow: {\r\n type: Boolean,\r\n default: true,\r\n },\r\n },\r\n data() {\r\n return {\r\n accuracy: 5,\r\n sliderText: \"拖动完成上方拼图\",\r\n countDownNum: 120,\r\n }\r\n },\r\n computed: {\r\n imgs() {\r\n const list = []\r\n for (let i = 1; i < 9; i++) {\r\n list.push(`/cloud-img/${i}.jpg`)\r\n }\r\n return list\r\n },\r\n },\r\n watch: {\r\n isShow(newVal) {\r\n // 这里第三方引用,ref没有渲染完成,reset报错,还不能用?号\r\n newVal &&\r\n this.$refs.slideblock &&\r\n this.$refs.slideblock.reset &&\r\n this.$refs.slideblock.reset()\r\n },\r\n },\r\n created() {},\r\n methods: {\r\n onSuccess() {\r\n this.$emit(\"success\")\r\n },\r\n onFail() {},\r\n onAgain() {},\r\n onRefresh() {},\r\n onFulfilled() {},\r\n handleClose() {\r\n this.$emit(\"close\")\r\n },\r\n },\r\n}\r\n</script>\r\n<style lang=\"scss\" scoped>\r\n.el-dialog__wrapper {\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n}\r\n::v-deep .el-dialog {\r\n margin-top: 0 !important;\r\n border-radius: 8px;\r\n}\r\n::v-deep .el-dialog__header {\r\n background-color: #f2f6fc;\r\n border-radius: 8px 8px 0 0;\r\n}\r\n.el-dialog__body {\r\n display: flex;\r\n justify-content: center;\r\n}\r\n</style>\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","// extracted by mini-css-extract-plugin\nexport {};","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!../../../node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!../../../node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=33a7114a&prod&lang=scss&scoped=true&\"","/* globals __VUE_SSR_CONTEXT__ */\n\n// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).\n// This module is a runtime utility for cleaner component module output and will\n// be included in the final webpack user bundle.\n\nexport default function normalizeComponent(\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier /* server only */,\n shadowMode /* vue-cli only */\n) {\n // Vue.extend constructor export interop\n var options =\n typeof scriptExports === 'function' ? scriptExports.options : scriptExports\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) {\n // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () {\n injectStyles.call(\n this,\n (options.functional ? this.parent : this).$root.$options.shadowRoot\n )\n }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functional component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection(h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing ? [].concat(existing, hook) : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}\n","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=33a7114a&scoped=true&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=33a7114a&prod&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"33a7114a\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{ref:\"customer\",staticStyle:{\"display\":\"none\"}},[_c('chat-vue',{attrs:{\"visible\":_vm.visible,\"jumpPage\":_vm.jumpPage,\"title\":_vm.title,\"json\":_vm.json,\"regular\":_vm.regular},on:{\"update:visible\":function($event){_vm.visible=$event}}}),_c('div',{staticClass:\"customerService\"},[_c('div',{staticClass:\"mobile\"},[_vm._t(\"default\")],2),_c('div',{staticClass:\"headset\",on:{\"click\":function($event){_vm.visible = !_vm.visible}}},[_vm._m(0),_vm._m(1)])])],1)\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',[_c('i',{staticClass:\"el-icon-headset\"})])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',[_c('a',[_vm._v(\"在线客服\")])])\n}]\n\nexport { render, staticRenderFns }","export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./index.vue?vue&type=template&id=849349a0&scoped=true&\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.visible),expression:\"visible\"}],staticClass:\"chat\"},[_c('header',[_c('img',{attrs:{\"src\":\"/cloud-img/customerService/admin.jpg\"}}),_c('span',[_vm._v(_vm._s(_vm.title))]),(_vm.jumpPage)?_c('i',{staticClass:\"icon-enlarge\",on:{\"click\":_vm.enlarge}},[_c('img',{attrs:{\"src\":\"/cloud-img/customerService/enlarge.png\"}})]):_vm._e(),_c('i',{staticClass:\"el-icon-close\",on:{\"click\":_vm.close}})]),_c('main',{ref:\"main\"},_vm._l((_vm.messagelist),function(item,index){return _c('div',{key:index,class:['message', item.id]},[_c('img',{staticClass:\"avatar\",attrs:{\"src\":`/cloud-img/customerService/${item.id}.jpg`}}),_c('div',{staticClass:\"content\"},[_vm._l((item.msg),function(msg,index){return _c('span',{key:msg + index,class:item.msg.length > 1 ? 'href' : '',domProps:{\"innerHTML\":_vm._s((item.msg.length > 1 ? 1 + index + '. ' : ' ') + msg)},on:{\"click\":function($event){item.msg.length > 1 && _vm.regularClick(msg)}}})}),(item.based)?_c('div',{staticClass:\"based\",on:{\"click\":function($event){return _vm.handExpand(item)}}},[_c('span',[_vm._v(\"依据\")]),_c('span',{class:{ 'is-active': item.isActive }},[_vm._v(_vm._s(item.based)),_c('i',{staticClass:\"el-icon-d-arrow-right\"})])]):_vm._e()],2)])}),0),_c('nav',_vm._l((_vm.regular),function(item,index){return _c('el-button',{key:item + index,attrs:{\"size\":\"mini\",\"round\":\"\"},on:{\"click\":function($event){return _vm.regularClick(item)}}},[_vm._v(_vm._s(item))])}),1),_c('el-input',{attrs:{\"type\":\"textarea\",\"maxlength\":\"500\",\"autosize\":{ minRows: 2, maxRows: 3 },\"autofocus\":\"true\",\"resize\":\"none\",\"placeholder\":\"请反馈您的问题,我们将尽快回复\"},nativeOn:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;return _vm.carriageReturn.apply(null, arguments)}},model:{value:(_vm.textareaValue),callback:function ($$v) {_vm.textareaValue=$$v},expression:\"textareaValue\"}}),_c('el-button',{attrs:{\"type\":\"primary\",\"size\":\"mini\",\"disabled\":!_vm.textareaValue},on:{\"click\":_vm.send}},[_vm._v(\"发送\")])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export default {\r\n props: {\r\n visible: Boolean,\r\n jumpPage: String,\r\n json: String,\r\n title: String,\r\n commit: String,\r\n regular: Array\r\n },\r\n data() {\r\n return {\r\n textareaValue: \"\",\r\n // regular: ['发票增值税率', '城市维护建设税', '教育费附加征收率'],\r\n messagelist: [\r\n {id: 'admin', msg: ['您好,38号客服很高兴为你服务!'], isActive: false},\r\n // {id: 'personal', msg: ['消费税?']}\r\n ],\r\n isActive: false\r\n }\r\n },\r\n computed: {\r\n questions() {\r\n return JSON.parse(this.json)\r\n }\r\n },\r\n methods: {\r\n close() {\r\n this.$emit(\"update:visible\", false);\r\n },\r\n carriageReturn() {\r\n let e = window.event || arguments[0];\r\n if ((e.key == \"Enter\" || e.code == \"Enter\" || e.keyCode == 13) && this.textareaValue) {\r\n this.send()\r\n }\r\n },\r\n send() {\r\n if(!this.textareaValue.replace(/[^\\w\\u4E00-\\u9FA5]/g, ''))\r\n return\r\n\r\n this.add(this.textareaValue, \"personal\", ()=> {this.textareaValue = ''})\r\n this.search(this.textareaValue)\r\n },\r\n regularClick(msg) {\r\n this.add(msg)\r\n this.search(msg)\r\n },\r\n search(msg) {\r\n const list = this.questions.filter(item => item.faq.replace(/[^\\w\\u4E00-\\u9FA5]/g, '').toLowerCase().includes(msg.replace(/[^\\w\\u4E00-\\u9FA5]/g, '').toLowerCase()))\r\n let [vlaue, based] = ['', '']\r\n \r\n if(list.length > 1) {\r\n vlaue = list.reduce((prev, curr) => [...prev, curr.faq], [])\r\n } else if(list.length == 1) {\r\n [vlaue, based] = [list[0].msg, list[0].based]\r\n } else if([\"您好\",\"你好\"].includes(msg.replace(/[^\\w\\u4E00-\\u9FA5]/g, ''))) {\r\n vlaue = '您好!'\r\n } else {\r\n vlaue = '请提关键词问题?<br/> 比如: 税率<br/><br/><a href=\"tel:4000770168\">客服热线:<span style=\"color: #FF575F;\">400 0770 168</span></a>'\r\n }\r\n this.add(vlaue, 'admin', null, based)\r\n },\r\n add(msg, id=\"personal\", fun, based = \"\") {\r\n this.messagelist.push({\r\n id,\r\n msg: Array.isArray(msg) ? msg : [msg],\r\n based,\r\n isActive: false\r\n })\r\n this.$nextTick(() => {\r\n fun && fun()\r\n // this.$refs.main.scrollTop += 70\r\n this.$refs.main.scrollTop = this.$refs.main.scrollHeight\r\n // console.log(this.$refs.main.scrollTop, this.$refs.main.scrollHeight)\r\n })\r\n },\r\n enlarge() {\r\n // this.$router.resolve({\r\n // name: this.jumpPage\r\n // })\r\n \r\n window.open(this.jumpPage, '_blank')\r\n },\r\n handExpand(item) {\r\n item.isActive = !item.isActive\r\n }\r\n }\r\n}","<template>\r\n <div class=\"chat\" v-show=\"visible\">\r\n <header>\r\n <img src=\"/cloud-img/customerService/admin.jpg\" />\r\n <span>{{ title }}</span>\r\n <i class=\"icon-enlarge\" v-if=\"jumpPage\" @click=\"enlarge\"\r\n ><img src=\"/cloud-img/customerService/enlarge.png\"\r\n /></i>\r\n <i class=\"el-icon-close\" @click=\"close\"></i>\r\n </header>\r\n <main ref=\"main\">\r\n <div\r\n v-for=\"(item, index) in messagelist\"\r\n :key=\"index\"\r\n :class=\"['message', item.id]\"\r\n >\r\n <img\r\n class=\"avatar\"\r\n :src=\"`/cloud-img/customerService/${item.id}.jpg`\"\r\n />\r\n <div class=\"content\">\r\n <span\r\n v-for=\"(msg, index) in item.msg\"\r\n :key=\"msg + index\"\r\n v-html=\"(item.msg.length > 1 ? 1 + index + '. ' : ' ') + msg\"\r\n :class=\"item.msg.length > 1 ? 'href' : ''\"\r\n @click=\"item.msg.length > 1 && regularClick(msg)\"\r\n ></span>\r\n <div class=\"based\" v-if=\"item.based\" @click=\"handExpand(item)\">\r\n <span>依据</span\r\n ><span :class=\"{ 'is-active': item.isActive }\"\r\n >{{ item.based }}<i class=\"el-icon-d-arrow-right\"></i\r\n ></span>\r\n </div>\r\n </div>\r\n </div>\r\n </main>\r\n <nav>\r\n <el-button\r\n size=\"mini\"\r\n round\r\n v-for=\"(item, index) in regular\"\r\n :key=\"item + index\"\r\n @click=\"regularClick(item)\"\r\n >{{ item }}</el-button\r\n >\r\n </nav>\r\n <el-input\r\n type=\"textarea\"\r\n maxlength=\"500\"\r\n :autosize=\"{ minRows: 2, maxRows: 3 }\"\r\n autofocus=\"true\"\r\n resize=\"none\"\r\n placeholder=\"请反馈您的问题,我们将尽快回复\"\r\n v-model=\"textareaValue\"\r\n @keyup.enter.native=\"carriageReturn\"\r\n >\r\n </el-input>\r\n <!-- <el-button size=\"mini\" type=\"primary\">发送</el-button> -->\r\n <el-button\r\n type=\"primary\"\r\n size=\"mini\"\r\n :disabled=\"!textareaValue\"\r\n @click=\"send\"\r\n >发送</el-button\r\n >\r\n </div>\r\n</template>\r\n<script>\r\nimport chatMixin from \"./chatMixin\"\r\nexport default {\r\n name: \"ChatMini\",\r\n mixins: [chatMixin],\r\n}\r\n</script>\r\n<style lang=\"scss\" scoped>\r\n.chat {\r\n width: 350px;\r\n height: 480px;\r\n position: fixed;\r\n bottom: 10px;\r\n right: 55px;\r\n z-index: 2001;\r\n background-color: #ffffff;\r\n border-radius: 12px;\r\n border: 1px solid #e6ebf5;\r\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 0 6px rgba(0, 0, 0, 0.04);\r\n overflow: hidden;\r\n > header {\r\n display: flex;\r\n justify-content: flex-start;\r\n align-items: center;\r\n background-color: #ff575f;\r\n font-size: 16px;\r\n padding: 10px;\r\n font-weight: 400;\r\n color: #fafdff;\r\n > img {\r\n width: 44px;\r\n height: 44px;\r\n border-radius: 50%;\r\n margin-right: 10px;\r\n transition: all 0.3s linear;\r\n &:focus,\r\n &:hover {\r\n transform: scale(1.2, 1.2) rotate(15deg);\r\n }\r\n }\r\n i {\r\n cursor: pointer;\r\n position: absolute;\r\n top: 5px;\r\n width: 20px;\r\n height: 20px;\r\n border-radius: 6px;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n transition: all 0.3s linear;\r\n &:focus,\r\n &:hover {\r\n transform: scale(1.2, 1.2);\r\n background-color: rgba(255, 137, 122, 0.8);\r\n }\r\n &.el-icon-close {\r\n right: 10px;\r\n }\r\n &.icon-enlarge {\r\n right: 35px;\r\n }\r\n > img {\r\n width: 12px;\r\n }\r\n }\r\n }\r\n\r\n > main {\r\n width: 100%;\r\n height: 60%;\r\n overflow-y: auto;\r\n padding-bottom: 20px;\r\n background-color: #f7f7f9;\r\n // 滚动条宽度\r\n &::-webkit-scrollbar {\r\n width: 6px;\r\n }\r\n // 滚动条轨道\r\n &::-webkit-scrollbar-track {\r\n background: rgb(239, 239, 239);\r\n border-radius: 2px;\r\n }\r\n // 小滑块\r\n &::-webkit-scrollbar-thumb {\r\n background: #ff8879;\r\n border-radius: 10px;\r\n }\r\n &::-webkit-scrollbar-thumb:hover {\r\n background: #ff755d;\r\n }\r\n .message {\r\n display: flex;\r\n gap: 15px;\r\n position: relative;\r\n margin: 20px 5px 0px 5px;\r\n opacity: 0;\r\n .avatar {\r\n width: 30px;\r\n height: 30px;\r\n border-radius: 50%;\r\n }\r\n .content {\r\n width: fit-content;\r\n max-width: 250px;\r\n font-weight: 400;\r\n font-size: 12px;\r\n color: #4c4c4d;\r\n line-height: 20px;\r\n padding: 10px;\r\n border-radius: 10px;\r\n background-color: #ffffff;\r\n .href {\r\n cursor: pointer;\r\n display: block;\r\n color: #ff575f;\r\n margin-bottom: 0.5rem;\r\n &:hover {\r\n text-decoration: underline;\r\n }\r\n }\r\n\r\n > .based {\r\n cursor: pointer;\r\n color: #909399;\r\n display: flex;\r\n align-items: flex-start;\r\n justify-content: flex-start;\r\n border-top: 1px solid #ebebed;\r\n padding-top: 5px;\r\n margin-top: 5px;\r\n gap: 5px;\r\n\r\n & > span:first-child {\r\n white-space: nowrap;\r\n color: #4c4c4d;\r\n border-radius: 10px;\r\n background-color: #eeeef0;\r\n padding: 0px 7px;\r\n }\r\n\r\n & > span:last-child {\r\n width: 100%;\r\n position: relative;\r\n display: inline-block;\r\n overflow: hidden;\r\n white-space: nowrap;\r\n text-overflow: ellipsis;\r\n padding-right: 12px;\r\n\r\n .el-icon-d-arrow-right {\r\n position: absolute;\r\n right: 0px;\r\n bottom: 5px;\r\n transform: rotate(90deg);\r\n transition: all 0.35s linear;\r\n }\r\n &.is-active {\r\n overflow: visible;\r\n white-space: normal;\r\n .el-icon-d-arrow-right {\r\n transform: rotate(270deg);\r\n }\r\n }\r\n\r\n &:hover {\r\n color: #ff575f;\r\n }\r\n }\r\n }\r\n }\r\n &.admin {\r\n animation: animation01 0.3s linear 1.5s forwards;\r\n .content::before {\r\n content: \"\";\r\n position: absolute;\r\n top: 2px;\r\n left: 37px;\r\n transform: rotate(-45deg);\r\n border-width: 10px;\r\n border-style: solid;\r\n border-color: transparent transparent transparent #ffffff;\r\n }\r\n }\r\n &.personal {\r\n animation: animation01 0.3s linear 0.3s forwards;\r\n flex-direction: row-reverse;\r\n .content::after {\r\n content: \"\";\r\n position: absolute;\r\n top: 2px;\r\n right: 37px;\r\n transform: rotate(-45deg);\r\n border-width: 10px;\r\n border-style: solid;\r\n border-color: transparent transparent #ffffff transparent;\r\n }\r\n }\r\n @keyframes animation01 {\r\n 0% {\r\n transform: translateY(20px);\r\n opacity: 0;\r\n }\r\n\r\n 100% {\r\n transform: translateY(0px);\r\n opacity: 1;\r\n }\r\n }\r\n }\r\n }\r\n > nav {\r\n // overflow-x: auto;\r\n background-color: #f7f7f9;\r\n border-bottom: 1px solid #e7e7ea;\r\n padding: 5px 10px;\r\n display: flex;\r\n .el-button {\r\n font-size: 12px;\r\n font-weight: 400;\r\n color: #4c4c4d;\r\n background-color: #fff !important;\r\n border: 1px solid #e7e7ea;\r\n padding: 5px 8px;\r\n }\r\n }\r\n > .el-textarea {\r\n border-color: transparent;\r\n textarea {\r\n overflow-y: hidden;\r\n padding-right: 65px;\r\n font-weight: 400;\r\n color: #19191a;\r\n font-size: 12px;\r\n font-family: Source Han Sans CN-Regular, Source Han Sans CN;\r\n }\r\n textarea,\r\n textarea:focus {\r\n border-color: transparent;\r\n }\r\n }\r\n > .el-button {\r\n position: absolute;\r\n bottom: 10px;\r\n right: 10px;\r\n }\r\n}\r\n</style>\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./chat.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./chat.vue?vue&type=script&lang=js&\"","// extracted by mini-css-extract-plugin\nexport {};","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!../../../node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!../../../node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./chat.vue?vue&type=style&index=0&id=42a8b467&prod&lang=scss&scoped=true&\"","import { render, staticRenderFns } from \"./chat.vue?vue&type=template&id=42a8b467&scoped=true&\"\nimport script from \"./chat.vue?vue&type=script&lang=js&\"\nexport * from \"./chat.vue?vue&type=script&lang=js&\"\nimport style0 from \"./chat.vue?vue&type=style&index=0&id=42a8b467&prod&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"42a8b467\",\n null\n \n)\n\nexport default component.exports","<template>\r\n <div ref=\"customer\" style=\"display: none\">\r\n <chat-vue\r\n :visible.sync=\"visible\"\r\n :jumpPage=\"jumpPage\"\r\n :title=\"title\"\r\n :json=\"json\"\r\n :regular=\"regular\"\r\n />\r\n <div class=\"customerService\">\r\n <div class=\"mobile\">\r\n <slot></slot>\r\n <!-- <div><i class=\"el-icon-mobile\"></i></div>\r\n <div>\r\n <span>客服热线</span>\r\n <a href=\"tel:4000770168\">400 0770 168</a>\r\n <template v-if=\"!['/login', '/register'].includes($route.path)\">\r\n <span style=\"margin-top: 10px\">银行服务电话</span>\r\n <a href=\"tel:13973004180\">13973004180(蒋行长)</a>\r\n <a href=\"tel:15773001997\">15773001997(彭经理)</a>\r\n </template>\r\n </div> -->\r\n </div>\r\n <div class=\"headset\" @click=\"visible = !visible\">\r\n <div><i class=\"el-icon-headset\"></i></div>\r\n <div><a>在线客服</a></div>\r\n </div>\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport chatVue from \"./chat.vue\"\r\nexport default {\r\n name: \"YcCustomerService\",\r\n components: {\r\n chatVue,\r\n },\r\n props: {\r\n jumpPage: String,\r\n title: String,\r\n json: String,\r\n regular: Array,\r\n },\r\n data() {\r\n return {\r\n visible: false,\r\n }\r\n },\r\n computed: {\r\n hasSlot() {\r\n return Boolean(this.$slots.default)\r\n },\r\n },\r\n watch: {\r\n $route(to) {\r\n if (to.path != this.jumpPage) {\r\n this.$refs.customer.style.display = \"block\"\r\n } else {\r\n this.$refs.customer.style.display = \"none\"\r\n }\r\n },\r\n },\r\n mounted() {\r\n this.$refs.customer.style.display = \"block\"\r\n },\r\n}\r\n</script>\r\n<style lang=\"scss\" scoped>\r\n.customerService {\r\n position: fixed;\r\n right: 0px;\r\n bottom: 35px;\r\n z-index: 2001;\r\n > div {\r\n cursor: pointer;\r\n position: absolute;\r\n right: 0px;\r\n display: flex;\r\n align-items: center;\r\n background-color: #ffffff;\r\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 0 6px rgba(0, 0, 0, 0.04);\r\n &:hover {\r\n > div:first-child {\r\n color: #ff4949;\r\n i {\r\n animation-name: animateRotate;\r\n animation-duration: 0.5s;\r\n animation-iteration-count: infinite;\r\n }\r\n }\r\n }\r\n > div:first-child {\r\n width: 50px;\r\n height: 50px;\r\n text-align: center;\r\n line-height: 50px;\r\n font-size: 18px;\r\n }\r\n > div:last-child {\r\n opacity: 0;\r\n // transition: all 0.3s linear;\r\n padding: 10px;\r\n border-radius: 6px;\r\n position: absolute;\r\n min-height: 50px;\r\n display: flex;\r\n flex-direction: column;\r\n // align-items: center;\r\n justify-content: space-around;\r\n background-color: #ffffff;\r\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 0 6px rgba(0, 0, 0, 0.04);\r\n &::after {\r\n content: \"\";\r\n position: absolute;\r\n top: calc(50% - 10px);\r\n right: -20px;\r\n border-width: 10px;\r\n border-style: solid;\r\n border-color: transparent transparent transparent #ffffff;\r\n filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.2));\r\n }\r\n a {\r\n color: #333;\r\n font-size: 14px;\r\n display: block;\r\n }\r\n }\r\n }\r\n .mobile {\r\n bottom: 50px;\r\n border-bottom: 1px solid #e6ebf5;\r\n &:hover {\r\n > div:last-child {\r\n left: -210px;\r\n opacity: 1;\r\n animation-name: animateMobile;\r\n animation-duration: 0.5s;\r\n }\r\n }\r\n > div:last-child {\r\n left: -120vw;\r\n width: 190px;\r\n bottom: 0px;\r\n a {\r\n width: fit-content;\r\n position: relative;\r\n margin-top: 5px;\r\n text-indent: 5px;\r\n &:hover {\r\n color: #ff4949;\r\n &::before {\r\n width: 100%;\r\n right: auto;\r\n left: 0px;\r\n }\r\n }\r\n &::before {\r\n content: \"\";\r\n width: 0%;\r\n height: 1px;\r\n opacity: 0.6;\r\n background: #ff4949;\r\n transition: all 0.5s linear;\r\n position: absolute;\r\n right: 0px;\r\n bottom: -2px;\r\n }\r\n }\r\n &::after {\r\n top: calc(100% - 35px);\r\n }\r\n }\r\n @keyframes animateMobile {\r\n 0% {\r\n left: -200vw;\r\n opacity: 0;\r\n }\r\n 0.1% {\r\n left: -310px;\r\n opacity: 0;\r\n }\r\n 100% {\r\n left: -210px;\r\n opacity: 1;\r\n }\r\n }\r\n }\r\n .headset {\r\n bottom: 0px;\r\n &:hover {\r\n > div:last-child {\r\n left: -110px;\r\n opacity: 1;\r\n animation-name: animateHeadset;\r\n animation-duration: 0.5s;\r\n }\r\n }\r\n > div:last-child {\r\n left: -120vw;\r\n width: 90px;\r\n }\r\n @keyframes animateHeadset {\r\n 0% {\r\n left: -120vw;\r\n opacity: 0;\r\n }\r\n 0.1% {\r\n left: -210px;\r\n opacity: 0.5;\r\n }\r\n 100% {\r\n left: -110px;\r\n opacity: 1;\r\n }\r\n }\r\n }\r\n @keyframes animateRotate {\r\n 0% {\r\n transform: rotate(0deg);\r\n }\r\n 20% {\r\n transform: rotate(7deg);\r\n }\r\n 40% {\r\n transform: rotate(0deg);\r\n }\r\n 80% {\r\n transform: rotate(-7deg);\r\n }\r\n 100% {\r\n transform: rotate(0deg);\r\n }\r\n }\r\n}\r\n</style>\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","// extracted by mini-css-extract-plugin\nexport {};","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!../../../node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!../../../node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=849349a0&prod&lang=scss&scoped=true&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=849349a0&scoped=true&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=849349a0&prod&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"849349a0\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"YcQuestion\"},[_c('div',{staticClass:\"chatPage\"},[_c('header',{staticStyle:{\"background\":\"url('/cloud-img/customerService/chatTop.png') center\",\"background-size\":\"cover\"}},[_c('div',[_c('h3',[_vm._v(_vm._s(_vm.title))]),_c('span',[_vm._v(\"Problem Help\")])]),_c('p',[_vm._v(\"小优为您提供24小时服务\")])]),_c('div',{staticClass:\"main\"},[_c('div',[_c('main',{ref:\"main\"},[_c('p',[_vm._v(\"今天\"+_vm._s(_vm.currData))]),_vm._l((_vm.messagelist),function(item,index){return _c('div',{key:index,class:['message', item.id]},[_c('img',{staticClass:\"avatar\",attrs:{\"src\":'/cloud-img/customerService/' + item.id + '.jpg'}}),_c('div',{staticClass:\"content\"},[_vm._l((item.msg),function(msg,index){return _c('span',{key:msg + index,class:item.msg.length > 1 ? 'href' : '',domProps:{\"innerHTML\":_vm._s((item.msg.length > 1 ? 1 + index + '. ' : ' ') + msg)},on:{\"click\":function($event){item.msg.length > 1 && _vm.regularClick(msg)}}})}),(item.based)?_c('div',{staticClass:\"based\",on:{\"click\":function($event){$event.preventDefault();return _vm.handExpand(item)}}},[_c('span',[_vm._v(\"依据\")]),_c('span',{class:{ 'is-active': item.isActive }},[_vm._v(_vm._s(item.based)),_c('i',{staticClass:\"el-icon-d-arrow-right\"})])]):_vm._e()],2)])})],2),_c('footer',[_c('el-input',{attrs:{\"type\":\"textarea\",\"maxlength\":\"500\",\"autosize\":{ minRows: 6, maxRows: 6 },\"autofocus\":\"true\",\"resize\":\"none\",\"placeholder\":\"请输入你要咨询的问题\"},nativeOn:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;return _vm.carriageReturn.apply(null, arguments)}},model:{value:(_vm.textareaValue),callback:function ($$v) {_vm.textareaValue=$$v},expression:\"textareaValue\"}}),_c('el-button',{style:(!_vm.textareaValue\n ? 'background-color: #F7F7F9;color: #FF575F;border-color: transparent;'\n : ''),attrs:{\"type\":\"primary\",\"disabled\":!_vm.textareaValue},on:{\"click\":_vm.send}},[_vm._v(\"发送\")])],1)]),_c('aside',[_c('el-collapse',{attrs:{\"accordion\":\"\"},model:{value:(_vm.activeNames),callback:function ($$v) {_vm.activeNames=$$v},expression:\"activeNames\"}},_vm._l((_vm.questionsList),function(item,key,index){return _c('el-collapse-item',{key:key,attrs:{\"name\":index}},[_c('template',{slot:\"title\"},[_c('img',{attrs:{\"src\":\"/cloud-img/customerService/ellipticalWenh.png\"}}),_vm._v(_vm._s(key)+\" \")]),_vm._l((item),function(faq){return _c('div',{key:faq,domProps:{\"innerHTML\":_vm._s(faq)},on:{\"click\":function($event){return _vm.regularClick(faq)}}})})],2)}),1)],1)])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"YcQuestion\">\r\n <div class=\"chatPage\">\r\n <header\r\n style=\"\r\n background: url('/cloud-img/customerService/chatTop.png') center\r\n no-repeat cover;\r\n background-size: cover;\r\n \"\r\n >\r\n <div>\r\n <h3>{{ title }}</h3>\r\n <span>Problem Help</span>\r\n </div>\r\n <p>小优为您提供24小时服务</p>\r\n </header>\r\n <div class=\"main\">\r\n <div>\r\n <main ref=\"main\">\r\n <p>今天{{ currData }}</p>\r\n <div\r\n v-for=\"(item, index) in messagelist\"\r\n :key=\"index\"\r\n :class=\"['message', item.id]\"\r\n >\r\n <img\r\n class=\"avatar\"\r\n :src=\"'/cloud-img/customerService/' + item.id + '.jpg'\"\r\n />\r\n <div class=\"content\">\r\n <span\r\n v-for=\"(msg, index) in item.msg\"\r\n :key=\"msg + index\"\r\n v-html=\"(item.msg.length > 1 ? 1 + index + '. ' : ' ') + msg\"\r\n :class=\"item.msg.length > 1 ? 'href' : ''\"\r\n @click=\"item.msg.length > 1 && regularClick(msg)\"\r\n ></span>\r\n <div\r\n class=\"based\"\r\n v-if=\"item.based\"\r\n @click.prevent=\"handExpand(item)\"\r\n >\r\n <span>依据</span\r\n ><span :class=\"{ 'is-active': item.isActive }\"\r\n >{{ item.based }}<i class=\"el-icon-d-arrow-right\"></i\r\n ></span>\r\n </div>\r\n </div>\r\n </div>\r\n </main>\r\n <footer>\r\n <el-input\r\n type=\"textarea\"\r\n maxlength=\"500\"\r\n :autosize=\"{ minRows: 6, maxRows: 6 }\"\r\n autofocus=\"true\"\r\n resize=\"none\"\r\n placeholder=\"请输入你要咨询的问题\"\r\n v-model=\"textareaValue\"\r\n @keyup.enter.native=\"carriageReturn\"\r\n >\r\n </el-input>\r\n <el-button\r\n type=\"primary\"\r\n :disabled=\"!textareaValue\"\r\n :style=\"\r\n !textareaValue\r\n ? 'background-color: #F7F7F9;color: #FF575F;border-color: transparent;'\r\n : ''\r\n \"\r\n @click=\"send\"\r\n >发送</el-button\r\n >\r\n </footer>\r\n </div>\r\n <aside>\r\n <el-collapse v-model=\"activeNames\" accordion>\r\n <el-collapse-item\r\n v-for=\"(item, key, index) in questionsList\"\r\n :key=\"key\"\r\n :name=\"index\"\r\n >\r\n <template slot=\"title\">\r\n <img src=\"/cloud-img/customerService/ellipticalWenh.png\" />{{\r\n key\r\n }}\r\n </template>\r\n <div\r\n v-for=\"faq in item\"\r\n :key=\"faq\"\r\n v-html=\"faq\"\r\n @click=\"regularClick(faq)\"\r\n ></div>\r\n </el-collapse-item>\r\n </el-collapse>\r\n </aside>\r\n </div>\r\n </div>\r\n </div>\r\n</template>\r\n<script>\r\nimport chatMixin from \"comp/YcCustomerService/chatMixin\"\r\nexport default {\r\n name: \"YcQuestion\",\r\n mixins: [chatMixin],\r\n data() {\r\n return {\r\n activeNames: [1],\r\n }\r\n },\r\n computed: {\r\n currData() {\r\n const currData = new Date()\r\n return `${currData.getHours()}:${currData.getMinutes()}`\r\n },\r\n questionsList() {\r\n return this.questions.reduce((prev, curr) => {\r\n // eslint-disable-next-line no-prototype-builtins\r\n if (prev.hasOwnProperty(curr.type)) {\r\n prev[curr.type].push(curr.faq)\r\n } else {\r\n prev[curr.type] = [curr.faq]\r\n }\r\n return prev\r\n }, {})\r\n },\r\n },\r\n}\r\n</script>\r\n<style lang=\"scss\" scoped>\r\n.YcQuestion {\r\n // min-width: auto;\r\n // overflow: hidden;\r\n // height: 100vh;\r\n ::v-deep .chatPage {\r\n background-color: #ffffff;\r\n\r\n > header {\r\n height: 8vw;\r\n display: flex;\r\n justify-content: flex-start;\r\n align-items: center;\r\n gap: 5vw;\r\n padding-left: 8vw;\r\n // background: url(\"/cloud-img/customerService/chatTop.png\");\r\n background-position: center center;\r\n background-repeat: no-repeat;\r\n background-size: cover;\r\n\r\n > div {\r\n display: flex;\r\n flex-direction: column;\r\n justify-content: center;\r\n align-items: center;\r\n\r\n // flex-direction: row-reverse;\r\n h3 {\r\n height: 1vw;\r\n margin-top: 0px;\r\n font-size: 2.125rem;\r\n font-weight: bold;\r\n color: #191a2c;\r\n font-family: Source Han Sans CN-Bold, Source Han Sans CN;\r\n }\r\n\r\n span {\r\n font-size: 1rem;\r\n font-family: LXGW New Clear Gothic-Regular, LXGW New Clear Gothic;\r\n font-weight: 400;\r\n color: #666;\r\n }\r\n }\r\n\r\n p {\r\n font-size: 1rem;\r\n font-family: Source Han Sans CN-Regular, Source Han Sans CN;\r\n font-weight: 400;\r\n color: #2e2f42;\r\n }\r\n }\r\n\r\n .main {\r\n display: flex;\r\n\r\n > div {\r\n width: 74vw;\r\n position: relative;\r\n\r\n > main {\r\n height: 62vh;\r\n overflow-y: auto;\r\n padding-bottom: 2vw;\r\n background-color: #f7f7f9;\r\n\r\n // 滚动条宽度\r\n &::-webkit-scrollbar {\r\n width: 6px;\r\n }\r\n\r\n // 滚动条轨道\r\n &::-webkit-scrollbar-track {\r\n background: rgb(239, 239, 239);\r\n border-radius: 2px;\r\n }\r\n\r\n // 小滑块\r\n &::-webkit-scrollbar-thumb {\r\n background: #ff8879;\r\n border-radius: 10px;\r\n }\r\n\r\n &::-webkit-scrollbar-thumb:hover {\r\n background: #ff755d;\r\n }\r\n\r\n > p {\r\n text-align: center;\r\n font-size: 0.875rem;\r\n font-family: Source Han Sans CN-Regular, Source Han Sans CN;\r\n font-weight: 400;\r\n color: #909399;\r\n }\r\n\r\n .message {\r\n display: flex;\r\n gap: 15px;\r\n margin: 1.5vw 1.5vw 0px 1.5vw;\r\n opacity: 0;\r\n\r\n .avatar {\r\n width: 2.5vw;\r\n height: 2.5vw;\r\n min-width: 35px;\r\n min-height: 35px;\r\n border-radius: 50%;\r\n transition: all 0.3s linear;\r\n &:focus,\r\n &:hover {\r\n transform: scale(1.2, 1.2) rotate(15deg);\r\n }\r\n }\r\n\r\n .content {\r\n width: fit-content;\r\n max-width: 50vw;\r\n font-weight: 400;\r\n font-size: 1rem;\r\n color: #4c4c4d;\r\n padding: 10px;\r\n border-radius: 10px;\r\n position: relative;\r\n background-color: #ffffff;\r\n\r\n .href {\r\n cursor: pointer;\r\n display: block;\r\n color: #ff575f;\r\n margin-bottom: 1.5rem;\r\n\r\n &:hover {\r\n text-decoration: underline;\r\n }\r\n }\r\n\r\n > .based {\r\n cursor: pointer;\r\n font-size: 1rem;\r\n font-weight: 400;\r\n color: #909399;\r\n display: flex;\r\n align-items: flex-start;\r\n justify-content: flex-start;\r\n border-top: 1px solid #ebebed;\r\n padding-top: 0.625rem;\r\n margin-top: 0.625rem;\r\n gap: 0.625rem;\r\n\r\n & > span:first-child {\r\n white-space: nowrap;\r\n color: #4c4c4d;\r\n border-radius: 18px;\r\n background-color: #eeeef0;\r\n padding: 0.1875rem 0.625rem;\r\n margin-top: -0.1875rem;\r\n }\r\n\r\n & > span:last-child {\r\n width: 100%;\r\n position: relative;\r\n display: inline-block;\r\n overflow: hidden;\r\n white-space: nowrap;\r\n text-overflow: ellipsis;\r\n padding-right: 12px;\r\n\r\n .el-icon-d-arrow-right {\r\n position: absolute;\r\n right: 0px;\r\n bottom: 0px;\r\n transform: rotate(90deg);\r\n transition: all 0.35s linear;\r\n }\r\n &.is-active {\r\n overflow: visible;\r\n white-space: normal;\r\n .el-icon-d-arrow-right {\r\n transform: rotate(270deg);\r\n }\r\n }\r\n\r\n &:hover {\r\n color: #ff575f;\r\n }\r\n }\r\n }\r\n }\r\n\r\n &.admin {\r\n animation: animation01 0.3s linear 1.5s forwards;\r\n\r\n .content {\r\n margin-top: 20px;\r\n\r\n &::before {\r\n content: \"\";\r\n position: absolute;\r\n top: 2px;\r\n left: -10px;\r\n transform: rotate(-45deg);\r\n border-width: 10px;\r\n border-style: solid;\r\n border-color: transparent transparent transparent #fff;\r\n }\r\n\r\n &::after {\r\n content: \"小优客服【38号为您服务】\";\r\n width: 200px;\r\n font-size: 0.875rem;\r\n font-family: Source Han Sans CN-Medium, Source Han Sans CN;\r\n font-weight: 500;\r\n color: #8b8c8f;\r\n position: absolute;\r\n left: 0px;\r\n top: -20px;\r\n }\r\n }\r\n }\r\n\r\n &.personal {\r\n animation: animation01 0.3s linear 0.3s forwards;\r\n flex-direction: row-reverse;\r\n\r\n .content::after {\r\n content: \"\";\r\n position: absolute;\r\n top: 2px;\r\n right: -10px;\r\n transform: rotate(-45deg);\r\n border-width: 10px;\r\n border-style: solid;\r\n border-color: transparent transparent #ffffff transparent;\r\n }\r\n }\r\n\r\n @keyframes animation01 {\r\n 0% {\r\n transform: translateY(20px);\r\n opacity: 0;\r\n }\r\n\r\n 100% {\r\n transform: translateY(0px);\r\n opacity: 1;\r\n }\r\n }\r\n }\r\n }\r\n\r\n footer {\r\n height: 30vh;\r\n border: 1px solid #e7e7ea;\r\n\r\n > .el-textarea {\r\n border-color: transparent;\r\n\r\n textarea {\r\n overflow-y: hidden;\r\n // padding-right: 65px;\r\n font-weight: 400;\r\n color: #19191a;\r\n font-size: 1rem;\r\n font-family: Source Han Sans CN-Regular, Source Han Sans CN;\r\n }\r\n\r\n textarea,\r\n textarea:focus {\r\n border-color: transparent;\r\n }\r\n }\r\n\r\n > .el-button {\r\n float: right;\r\n // position: absolute;\r\n // bottom: 40px;\r\n // right: 40px;\r\n z-index: 1;\r\n font-size: 0.875rem;\r\n font-family: Source Han Sans CN-Regular, Source Han Sans CN;\r\n font-weight: 400;\r\n border-radius: 4px;\r\n margin-right: 2vw;\r\n width: 5vw;\r\n min-width: 92px;\r\n }\r\n }\r\n }\r\n\r\n aside {\r\n width: 26vw;\r\n height: calc(100vh - 8vw);\r\n padding: 1vw;\r\n overflow-y: auto;\r\n background-color: #ffffff;\r\n\r\n .el-collapse-item__header {\r\n color: #373a3c;\r\n font-size: 1.5rem;\r\n font-weight: 500;\r\n font-family: Source Han Sans CN-Medium, Source Han Sans CN;\r\n padding: 2rem;\r\n background-color: #f00;\r\n background: linear-gradient(#ffdad4, #ffa9a3);\r\n\r\n &.is-active {\r\n color: #ffffff;\r\n background: linear-gradient(#ff897a, #ff645a);\r\n\r\n i {\r\n color: #ffffff;\r\n }\r\n }\r\n\r\n img {\r\n width: 2.25rem;\r\n height: 2.25rem;\r\n float: left;\r\n margin-left: -0.5rem;\r\n margin-right: 0.5rem;\r\n }\r\n\r\n i {\r\n font-size: 2rem;\r\n color: #ff575f;\r\n font-weight: 900;\r\n }\r\n }\r\n\r\n .el-collapse-item__content {\r\n font-size: 1rem;\r\n font-family: Source Han Sans CN-Regular, Source Han Sans CN;\r\n font-weight: 400;\r\n padding: 20px 20px 20px 40px;\r\n color: #000000;\r\n background-color: #f7f7f9;\r\n\r\n > div {\r\n position: relative;\r\n margin-top: 1rem;\r\n cursor: pointer;\r\n transition: all 0.3s linear;\r\n\r\n &:first-child {\r\n margin-top: 0px;\r\n }\r\n\r\n &::before {\r\n content: \"\";\r\n position: absolute;\r\n top: 5px;\r\n left: -15px;\r\n // transform: rotate(-45deg);\r\n // float: left;\r\n border-width: 10px;\r\n border-style: solid;\r\n border-color: transparent transparent transparent #ffa9a3;\r\n }\r\n\r\n &:hover {\r\n color: #ff575f;\r\n transform: translate(0.5rem);\r\n\r\n &::before {\r\n border-color: transparent transparent transparent #ff575f;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n}\r\n</style>\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","// extracted by mini-css-extract-plugin\nexport {};","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!../../../node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!../../../node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=b15e6fbc&prod&lang=scss&scoped=true&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=b15e6fbc&scoped=true&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=b15e6fbc&prod&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"b15e6fbc\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('el-form',{ref:\"loginForm\",staticClass:\"login-form\",attrs:{\"model\":_vm.loginForm,\"rules\":_vm.loginRules}},[(_vm.loginForm.username == undefined)?_c('div',{staticClass:\"ca-bg-box\"},[_c('div',{staticClass:\"ca-bg-img\"}),_c('div',{staticClass:\"ca-bg-text\"},[_vm._v(\"请插入UKEY证书\")]),_c('img',{staticClass:\"ca-refresh\",attrs:{\"src\":require('comp/YcCA/images/refresh.png'),\"alt\":\"\"},on:{\"click\":_vm.caRead}})]):_c('div',{staticClass:\"ca-bg-info\"},[_c('div',{staticClass:\"ca-bg-text\"},[_vm._v(\" CA名称:\"),_c('span',{staticClass:\"caName\"},[_vm._v(_vm._s(_vm.loginForm.username))])]),_c('img',{staticClass:\"ca-refresh\",attrs:{\"src\":require('comp/YcCA/images/refresh.png'),\"alt\":\"\"},on:{\"click\":_vm.caRead}})]),_c('el-form-item',{attrs:{\"prop\":\"password\"}},[_c('el-input',{attrs:{\"type\":\"password\",\"auto-complete\":\"off\",\"placeholder\":\"密码\",\"show-password\":\"\"},nativeOn:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;return _vm.handleLogin.apply(null, arguments)}},model:{value:(_vm.loginForm.password),callback:function ($$v) {_vm.$set(_vm.loginForm, \"password\", $$v)},expression:\"loginForm.password\"}},[_c('img',{staticClass:\"el-input__icon input-icon\",attrs:{\"slot\":\"prefix\",\"src\":require('./images/password.svg')},slot:\"prefix\"})])],1),_c('el-form-item',[_c('el-button',{staticClass:\"login-btn\",staticStyle:{\"width\":\"100%\"},attrs:{\"loading\":_vm.loading,\"size\":\"medium\",\"type\":\"primary\"},nativeOn:{\"click\":function($event){$event.preventDefault();return _vm.handleLogin.apply(null, arguments)}}},[(!_vm.loading)?_c('span',[_vm._v(\"登 录\")]):_c('span',[_vm._v(\"登 录 中...\")])])],1),_vm._t(\"default\")],2),_c('el-dialog',{attrs:{\"title\":\"提示\",\"visible\":_vm.dialogVisible.showInfo,\"width\":\"30%\",\"center\":\"\"},on:{\"update:visible\":function($event){return _vm.$set(_vm.dialogVisible, \"showInfo\", $event)}}},[_c('span',{staticStyle:{\"color\":\"red\"}},[_vm._v(\"4444\"+_vm._s(_vm.caInfo.error_text))]),_c('span',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":function($event){_vm.dialogVisible.showInfo = false}}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":function($event){_vm.dialogVisible.showInfo = false}}},[_vm._v(\"确 定\")])],1)])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./index.vue?vue&type=template&id=f0d3063c&scoped=true&\"","/* eslint-disable no-unused-vars */\r\n/*******************************************************\r\n *\r\n * 函数名称:Base64encode()\r\n * 功 能:对数据进行Base64加密\r\n * 说\t明:函数中将数据使用_utf8_encode()进行编码转换后再加密,保证数据完整\r\n *\r\n **********************************************************/\r\n\r\nvar _keyStr = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\";\r\n\r\nexport function _Base64encode (input) {\r\n\r\n var output = \"\";\r\n var chr1, chr2, chr3, enc1, enc2, enc3, enc4;\r\n var i = 0;\r\n\r\n input = _utf8_encode(input);\r\n\r\n while (i < input.length) {\r\n\r\n chr1 = input.charCodeAt(i++);\r\n chr2 = input.charCodeAt(i++);\r\n chr3 = input.charCodeAt(i++);\r\n\r\n enc1 = chr1 >> 2;\r\n enc2 = ((chr1 & 3) << 4) | (chr2 >> 4);\r\n enc3 = ((chr2 & 15) << 2) | (chr3 >> 6);\r\n enc4 = chr3 & 63;\r\n\r\n if (isNaN(chr2)) {\r\n enc3 = enc4 = 64;\r\n } else if (isNaN(chr3)) {\r\n enc4 = 64;\r\n }\r\n output = output + _keyStr.charAt(enc1) + _keyStr.charAt(enc2) + _keyStr.charAt(enc3) + _keyStr.charAt(enc4);\r\n }\r\n return output;\r\n}\r\n\r\n/*******************************************************\r\n *\r\n * 函数名称:Base64decode()\r\n * 功 能:对数据进行Base64解密\r\n * 说\t明:函数中将数据使用_utf8_decode()将解密后的数据编码,保证数据完整\r\n *\r\n **********************************************************/\r\nfunction _Base64decode (input) {\r\n var output = \"\";\r\n var chr1, chr2, chr3;\r\n var enc1, enc2, enc3, enc4;\r\n var i = 0;\r\n\r\n //input = input.replace(/[^A-Za-z0-9\\+\\/\\=]/g, \"\");\r\n // eslint-disable-next-line no-useless-escape\r\n input = input.replace(/[^A-Za-z0-9\\+\\/\\=]/g, \"\");\r\n while (i < input.length) {\r\n\r\n enc1 = _keyStr.indexOf(input.charAt(i++));\r\n enc2 = _keyStr.indexOf(input.charAt(i++));\r\n enc3 = _keyStr.indexOf(input.charAt(i++));\r\n enc4 = _keyStr.indexOf(input.charAt(i++));\r\n\r\n chr1 = (enc1 << 2) | (enc2 >> 4);\r\n chr2 = ((enc2 & 15) << 4) | (enc3 >> 2);\r\n chr3 = ((enc3 & 3) << 6) | enc4;\r\n\r\n output = output + String.fromCharCode(chr1);\r\n\r\n if (enc3 != 64) {\r\n output = output + String.fromCharCode(chr2);\r\n }\r\n if (enc4 != 64) {\r\n output = output + String.fromCharCode(chr3);\r\n }\r\n\r\n }\r\n\r\n output = _utf8_decode(output);\r\n\r\n return output;\r\n}\r\n\r\n/*******************************************************\r\n *\r\n * 函数名称:_utf8_encode()\r\n * 功 能:将数据进行utf8编码\r\n * 说\t明:\r\n *\r\n **********************************************************/\r\nfunction _utf8_encode (in_string) {\r\n var string = \"\" + in_string;\r\n string = string.replace(/\\r\\n/g, \"\\n\");\r\n var utftext = \"\";\r\n\r\n for (var n = 0; n < string.length; n++) {\r\n\r\n var c = string.charCodeAt(n);\r\n\r\n if (c < 128) {\r\n utftext += String.fromCharCode(c);\r\n } else if ((c > 127) && (c < 2048)) {\r\n utftext += String.fromCharCode((c >> 6) | 192);\r\n utftext += String.fromCharCode((c & 63) | 128);\r\n } else {\r\n utftext += String.fromCharCode((c >> 12) | 224);\r\n utftext += String.fromCharCode(((c >> 6) & 63) | 128);\r\n utftext += String.fromCharCode((c & 63) | 128);\r\n }\r\n }\r\n return utftext;\r\n}\r\n\r\n/*******************************************************\r\n *\r\n * 函数名称:_utf8_decode()\r\n * 功 能:将数据进行utf8解码\r\n * 说\t明:\r\n *\r\n **********************************************************/\r\nfunction _utf8_decode (utftext) {\r\n var string = \"\";\r\n var i = 0;\r\n var c1 = 0;\r\n var c2 = 0;\r\n var c3 = 0;\r\n var c = c1 = c2 = 0;\r\n\r\n while (i < utftext.length) {\r\n\r\n c = utftext.charCodeAt(i);\r\n\r\n if (c < 128) {\r\n string += String.fromCharCode(c);\r\n i++;\r\n } else if ((c > 191) && (c < 224)) {\r\n c2 = utftext.charCodeAt(i + 1);\r\n string += String.fromCharCode(((c & 31) << 6) | (c2 & 63));\r\n i += 2;\r\n } else {\r\n c2 = utftext.charCodeAt(i + 1);\r\n c3 = utftext.charCodeAt(i + 2);\r\n string += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63));\r\n i += 3;\r\n }\r\n }\r\n return string;\r\n}\r\n","/**\r\n * @name mTokenPlugin集成代码\r\n * @author Akay\r\n * @version 0.7.12\r\n * @date 2020.07.21\r\n *\r\n * @description\r\n *ver 0.7.12 2020.12.21\r\n * 1. 新增操作系统判断,根据不同的系统加载不同的配置\r\n *\r\n *ver 0.7.11 2020.07.21\r\n *\t1. 解决Https的问题\r\n *\r\n * ver 0.7.10 2020.04.04\r\n * 1. 新增获取设备序号\r\n * 2. 支持多Key\r\n *\r\n * ver 0.7.9 2020.01.08\r\n * 1. 支持SJK1137型号\r\n *\r\n * ver 0.7.8 2019.10.23\r\n * 1. 新增UKey适配\r\n *\r\n * ver 0.7.4 2019.09.18\r\n * 1. 新增证书生效,失效时间\r\n *\r\n * ver 0.7.3 2019.08.19\r\n * 1. 获取证书使用者信息\r\n *\r\n * ver 0.7.2 2019.08.08\r\n * 1. 新增远程解锁接口\r\n *\r\n * ver 0.7.1 2019.07.17\r\n * TODO: 未安装组件时,判断组件是否安装(暂定,未解决)\r\n *\r\n * ver 0.7.0 2019.07.04\r\n * 1. 更新核心文件,解决多Key插入问题\r\n * 2. Ukey目前仅支持国密证书\r\n *\r\n * ver 0.6.3 2019.06.24\r\n * 1. 修复部分Bug\r\n *\r\n * ver 0.6.1 2019.06.24\r\n * 1. 支持数字信封数据解密接口\r\n * 2. 修复加密接口错误部分。\r\n *\r\n * ver 0.6.0 2019.06.20\r\n * 1. 支持数字信封数据加密接口\r\n * 2. 暂不支持多Ukey\r\n *\r\n * ver 0.5.1 2019.06.19\r\n * 1. 修正新Ukey引入导致的Bug\r\n *\r\n * ver 0.5 2019.06.18\r\n * 1. 适配SJK1137型号Ukey\r\n *\r\n * ver 0.4 2019.03.16\r\n * 1. 新增方法 枚举Ukey获取证书“G项信息”列表\r\n * 2. 新增方法 将“证书G项信息”转化为“证书名称”方法\r\n *\r\n * ver 0.3 2018.12.10\r\n * 1. 新增修改Ukey密码的方法\r\n *\r\n * ver 0.2 2018.09.26\r\n * 1. 新增获取签名证书SN号的方法\r\n * 2. 修正部分Bug\r\n *\r\n * ver 0.1 2018.09.21\r\n * 1. 搭建初步框架\r\n * 2. 完成签名功能\r\n *\r\n */\r\nimport { mToken } from \"comp/YcCA/mTokenPlugin/mToken\";\r\nimport { _Base64encode } from \"comp/YcCA/mTokenPlugin/base64\";\r\nexport function hunca_mToken_core () {\r\n\r\n var token = new mToken(\"mTokenPlugin\");\r\n // eslint-disable-next-line no-unused-vars\r\n var certInfoList = null;\r\n // eslint-disable-next-line no-unused-vars\r\n var singleKey = 0;\r\n var libraryNameList = null;\r\n\r\n if ((navigator.platform == \"Win32\") || (navigator.platform == \"Windows\")) {\r\n libraryNameList = Array(\"GM3000\", \"HT\", \"SJK1137\");\r\n } else {\r\n //libraryNameList = Array(\"GM3000\"); //国产操作系统支持GM3000型号\r\n libraryNameList = Array(\"HT\"); //国产操作系统支持海泰型号\r\n }\r\n /**\r\n * 错误信息\r\n */\r\n var LAST_ERRORSTRING = \"\";\r\n\r\n /**\r\n * 证书用途\r\n */\r\n var KEY_SPEC_TYPE_ENCRYPT = 0;\r\n var KEY_SPEC_TYPE_SIGN = 1;\r\n\r\n /**\r\n * 摘要算法\r\n */\r\n var SGD_SM3 = 1;\r\n // eslint-disable-next-line no-unused-vars\r\n var SGD_SHA1 = 2;\r\n\r\n /**\r\n * 加密算法\r\n */\r\n //分组加密算法标识\r\n // eslint-disable-next-line no-unused-vars\r\n let SGD_SM1_ECB = 0x00000101;\r\n // eslint-disable-next-line no-unused-vars\r\n let SGD_SM1_CBC = 0x00000102;\r\n // eslint-disable-next-line no-unused-vars\r\n let SGD_SM1_CFB = 0x00000104;\r\n // eslint-disable-next-line no-unused-vars\r\n let SGD_SM1_OFB = 0x00000108;\r\n // eslint-disable-next-line no-unused-vars\r\n let SGD_SM1_MAC = 0x00000110;\r\n let SGD_SM4_ECB = 0x00000401;\r\n // eslint-disable-next-line no-unused-vars\r\n let SGD_SM4_CBC = 0x00000402;\r\n // eslint-disable-next-line no-unused-vars\r\n let SGD_SM4_CFB = 0x00000404;\r\n // eslint-disable-next-line no-unused-vars\r\n let SGD_SM4_OFB = 0x00000408;\r\n // eslint-disable-next-line no-unused-vars\r\n let SGD_SM4_MAC = 0x00000410;\r\n\r\n\r\n /**\r\n * 用户ID(固定)\r\n */\r\n var USER_ID = \"1234567812345678\";\r\n\r\n\r\n /**\r\n * 错误信息提示列表\r\n */\r\n var ERROR_MESSAGE_NOT_LOADLIBRARY = \"控件加载失败,错误码:\";\r\n var ERROR_MESSAGE_NOT_FIND_UKEY = \"未找到UKey!\\n1.请确认是否安装最新驱动!\\n2.计算机是否插入湖南CA UKey!\";\r\n // eslint-disable-next-line no-unused-vars\r\n var ERROR_MSSSAGE_FIND_MORE_UKEY = \"计算机插入多个UKey,请拔除多余“湖南CA UKey”!\";\r\n var ERROR_MESSAGE_NOT_INSTANCE_DEVICE = \"USBKey实例化失败,请确认此UKey是否插入计算机!\\n点击‘刷新’按钮,更新设备列表。\\n错误码:\";\r\n var ERROR_MESSAGE_USERPIN_LENGTH = \"Ukey密码必须为4~16位!\";\r\n var ERROR_MESSAGE_USERPIN_IS_ERROR = \"UKey密码错误\";\r\n var ERROR_MESSAGE_USERPIN_CHANGE_ERROR = \"UKey密码修改失败\";\r\n var ERROR_MESSAGE_KEY_NOT_EXIT = \"UKey不存在,请确认此UKey是否插入计算机,并点击'刷新'按钮,更新设备列表!\";\r\n var ERROR_MESSAGE_USERNAME_IS_NULL = \"请点击‘刷新’按钮,更新设备列表并选择相应设备!\";\r\n var ERROR_MESSAGE_KEY_EXPORT_CERT = \"证书获取失败,请加检测Key中是否存在证书!\";\r\n var ERROR_MESSAGE_SET_DIGEST_METHOD_ERROR = \"设置摘要算法失败,请重新刷新浏览器!\";\r\n var ERROR_MESSAGE_SET_USERID_ERROR = \"设置用户ID失败,请重新刷新浏览器\";\r\n var ERROR_MESSAGE_SIGN_ORIGINALDATA_IS_NULL = \"签名失败,待签名原文不能为空\";\r\n var ERROR_MESSAGE_SIGN_ERROR = \"签名失败,返回错误码:\";\r\n var ERROR_MESSAGE_USERNAMEGN_IS_NULL = \"请点击‘刷新’按钮,更新设备列表并选择相应设备!\";\r\n var ERROR_MESSAGE_USERNAMEGN_TO_USERNAME_ERROR = \"证书G项信息转化证书名称失败,请点击“刷新”按钮!\";\r\n var ERROR_MESSAGE_KEY_LIBRAY = \"加载国密库失败!\";\r\n var ERROR_MESSAGE_ENCRYPT_DATA_IS_NULL = \"加密失败:待加密原文不能为空!\";\r\n var ERROR_MESSAGE_DECRYPT_DATA_IS_NULL = \"解密失败:待解密密文不能为空!\";\r\n var ERROR_MESSAGE_DECRYPT_DATA_IS_ERROR = \"解密失败:请确认密文是否完整!\\n解密所采用的Ukey是否为加密时的Ukey!\";\r\n var ERROR_MESSAGE_GET_REMOTEUNLOCKREQUEST_FAIL = \"申请解锁请求失败!\";\r\n var ERROR_MESSAGE_GET_REMOTEUNLOCKREQUEST_NOT_SUPPORT = \"此型号Ukey不支持解锁!\";\r\n var ERROR_MESSAGE_REMOTE_UNLOCK_FAIL = \"Ukey解锁失败!\";\r\n\r\n /**\r\n * 私有变量\r\n */\r\n var tokenInfoList = null;\r\n\r\n /**\r\n * 私有变量\r\n */\r\n var signResultSignData = null;\r\n var signResultCert = null;\r\n\r\n /**\r\n * 证书信息\r\n */\r\n var certSn = null; //证书Sn\r\n var cert_subject_GN = null; //证书Gn\r\n var cert_subject = null; //证书使用者\r\n var cert_validTime = null; //证书失效时间\r\n var cert_notbeforetime = null; //证书生效时间\r\n\r\n /**\r\n * 返回错误信息\r\n */\r\n this.Hunca_GetLastError = function () {\r\n return LAST_ERRORSTRING;\r\n }\r\n\r\n /**\r\n * 获取证书列表\r\n */\r\n this.Hunca_GetUserList = function () {\r\n var deviceArray = null;\r\n var containerName = null;\r\n var userName = null;\r\n var tmpInfo = null;\r\n\r\n signResultCert = null;\r\n signResultSignData = null;\r\n tokenInfoList = new Array(); //清空信息\r\n\r\n for (var index = 0; index < libraryNameList.length; index++) {\r\n var libraryName = libraryNameList[index];\r\n if (!SOF_LoadLibrary(libraryName)) {\r\n continue;\r\n }\r\n\r\n deviceArray = SOF_EnumDevice();\r\n if (null == deviceArray) {\r\n continue;\r\n }\r\n\r\n for (var i = 0; i < deviceArray.length; i++) {\r\n var tokenInfo = new Object();\r\n //实例化设备失败\r\n if (!SOF_GetDeviceInstance(deviceArray[i])) {\r\n break;\r\n }\r\n\r\n //获取设备信息\r\n tmpInfo = SOF_GetUserList();\r\n if (null != tmpInfo || tmpInfo.length != 0) {\r\n containerName = tmpInfo[0][1];\r\n userName = tmpInfo[0][0];\r\n\r\n tokenInfo.libraryName = libraryName; //Ukey型号\r\n tokenInfo.serial = deviceArray[i]; //设备序列号\r\n tokenInfo.userName = userName; //证书名称\r\n tokenInfo.containerName = containerName; //应用名称\r\n\r\n tokenInfoList.push(tokenInfo);\r\n } else {\r\n continue;\r\n }\r\n SOF_LogOut();\r\n }\r\n }\r\n\r\n //返回证书信息\r\n var userNameList = new Array();\r\n for (let i = 0; i < tokenInfoList.length; i++) {\r\n userNameList[i] = tokenInfoList[i].userName;\r\n }\r\n\r\n if (userNameList.length == 0) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_NOT_FIND_UKEY;\r\n return \"\";\r\n }\r\n\r\n return userNameList;\r\n }\r\n\r\n /**\r\n * 获取证书G项信息列表\r\n */\r\n this.Hunca_GetUserListGN = function Hunca_GetUserListGN () {\r\n var deviceArray = null;\r\n var containerName = null;\r\n var userName = null;\r\n var tmpInfo = null;\r\n var certB64 = null;\r\n var deviceSerial = \"\";\r\n\r\n // eslint-disable-next-line no-unused-vars\r\n var signResultCert = null;\r\n // eslint-disable-next-line no-unused-vars\r\n var signResultSignData = null;\r\n tokenInfoList = new Array(); //清空信息\r\n var LAST_ERRORSTRING = \"\";\r\n\r\n for (var index = 0; index < libraryNameList.length; index++) {\r\n var libraryName = libraryNameList[index];\r\n //加载控件\r\n if (!SOF_LoadLibrary(libraryName)) {\r\n continue;\r\n }\r\n\r\n deviceArray = SOF_EnumDevice();\r\n if (null == deviceArray) {\r\n continue;\r\n }\r\n\r\n for (var i = 0; i < deviceArray.length; i++) {\r\n cert_subject_GN = null;\r\n certSn = null;\r\n deviceSerial = deviceArray[i];\r\n\r\n var tokenInfo = new Object();\r\n\r\n //实例化设备失败\r\n if (!SOF_GetDeviceInstance(deviceSerial)) {\r\n break;\r\n }\r\n\r\n //获取设备信息\r\n tmpInfo = SOF_GetUserList();\r\n if (null != tmpInfo || tmpInfo.length != 0) {\r\n containerName = tmpInfo[0][1];\r\n userName = tmpInfo[0][0];\r\n\r\n tokenInfo.libraryName = libraryName;\r\n tokenInfo.serial = deviceArray[i]; //设备序列号\r\n tokenInfo.userName = userName; //证书名称\r\n tokenInfo.containerName = containerName;\r\n } else {\r\n continue;\r\n }\r\n\r\n //获取证书G项信息\r\n certB64 = SOF_ExportUserCert(tokenInfo.containerName, KEY_SPEC_TYPE_SIGN);\r\n if (SOF_GetCertInfo(certB64)) {\r\n tokenInfo.subjectGN = cert_subject_GN; //设备证书G项目;\r\n } else {\r\n continue;\r\n }\r\n\r\n tokenInfoList.push(tokenInfo);\r\n SOF_LogOut();\r\n }\r\n }\r\n\r\n //返回证书G项信息\r\n var userNameGNList = new Array();\r\n for (let i = 0; i < tokenInfoList.length; i++) {\r\n userNameGNList[i] = tokenInfoList[i].subjectGN;\r\n }\r\n\r\n if (userNameGNList.length == 0) {\r\n // eslint-disable-next-line no-unused-vars\r\n LAST_ERRORSTRING = ERROR_MESSAGE_NOT_FIND_UKEY;\r\n return \"\";\r\n }\r\n\r\n /*****\r\n if (userNameGNList.length > 1){\r\n LAST_ERRORSTRING = ERROR_MSSSAGE_FIND_MORE_UKEY;\r\n return \"\";\r\n }\r\n ****/\r\n return userNameGNList;\r\n }\r\n\r\n /**\r\n * 将证书G项信息转化为证书名称\r\n */\r\n this.Hunca_userNameGNToUserName = function (userNameGN) {\r\n var userName = null;\r\n LAST_ERRORSTRING = \"\";\r\n if (null == userNameGN || userNameGN.length == 0) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_USERNAMEGN_IS_NULL;\r\n }\r\n\r\n for (var i = 0; i < tokenInfoList.length; i++) {\r\n if (userNameGN == tokenInfoList[i].subjectGN) {\r\n userName = tokenInfoList[i].userName;\r\n break;\r\n }\r\n }\r\n\r\n if (null == userName || userName.length == 0) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_USERNAMEGN_TO_USERNAME_ERROR;\r\n return null;\r\n }\r\n return userName;\r\n }\r\n\r\n this.Hunca_GenRemoteUnblockRequest = function (userName) {\r\n var tokenInfo = null; //Ukey设备信息\r\n var tempTokenInfo = null; //临时设备信息,循环遍历用\r\n var request = \"\";\r\n\r\n LAST_ERRORSTRING = \"\";\r\n\r\n //设备名称为空\r\n if (null == userName || userName.length == null) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_USERNAME_IS_NULL;\r\n return false;\r\n }\r\n\r\n //查找匹配的设备序列号\r\n if (null == tokenInfoList || tokenInfoList.length == 0) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_NOT_FIND_UKEY;\r\n return false;\r\n }\r\n\r\n //索引设备编号\r\n for (var i = 0; i < tokenInfoList.length; i++) {\r\n tempTokenInfo = tokenInfoList[i];\r\n if (tempTokenInfo.userName == userName) {\r\n tokenInfo = tempTokenInfo;\r\n break;\r\n }\r\n }\r\n\r\n //如果所选择的设备不存在\r\n if (null == tokenInfo) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_KEY_NOT_EXIT;\r\n return false;\r\n }\r\n\r\n //判断设备是否支持远程解锁\r\n if (tokenInfo.libraryName != \"GM3000\") {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_GET_REMOTEUNLOCKREQUEST_NOT_SUPPORT;\r\n return false;\r\n }\r\n\r\n //加载库文件\r\n if (!SOF_LoadLibrary(tokenInfo.libraryName)) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_KEY_LIBRAY;\r\n return false;\r\n }\r\n\r\n //实例化设备\r\n if (!SOF_GetDeviceInstance(tokenInfo.serial)) {\r\n return false;\r\n }\r\n\r\n //枚举容器,并选择第一个容器\r\n if (SOF_GetUserList() == null) {\r\n return false;\r\n }\r\n\r\n //远程解锁\r\n request = SOF_GenRemoteUnblockRequest()\r\n\r\n return request;\r\n }\r\n\r\n this.HUnca_GetDeviceNumber = function (userName) {\r\n var m_devNumber = null;\r\n\r\n //设备名称为空\r\n if (null == userName || userName.length == null) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_USERNAME_IS_NULL;\r\n return false;\r\n }\r\n\r\n //查找匹配的设备序列号\r\n if (null == tokenInfoList || tokenInfoList.length == 0) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_NOT_FIND_UKEY;\r\n return false;\r\n }\r\n\r\n //索引设备编号\r\n for (var i = 0; i < tokenInfoList.length; i++) {\r\n let tempTokenInfo = tokenInfoList[i];\r\n if (tempTokenInfo.userName == userName) {\r\n // eslint-disable-next-line no-undef\r\n tokenInfo = tempTokenInfo;\r\n break;\r\n }\r\n }\r\n\r\n //如果所选择的设备不存在\r\n // eslint-disable-next-line no-undef\r\n if (null == tokenInfo) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_KEY_NOT_EXIT;\r\n return false;\r\n }\r\n\r\n //加载库文件\r\n // eslint-disable-next-line no-undef\r\n if (!SOF_LoadLibrary(tokenInfo.libraryName)) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_KEY_LIBRAY;\r\n return false;\r\n }\r\n\r\n //实例化设备\r\n // eslint-disable-next-line no-undef\r\n if (!SOF_GetDeviceInstance(tokenInfo.serial)) {\r\n return false;\r\n }\r\n m_devNumber = SOF_GetDeviceNumber();\r\n\r\n return m_devNumber + \"\";\r\n }\r\n\r\n this.Hunca_RemoteUnlockPIN = function (userName, response) {\r\n var tokenInfo = null; //Ukey设备信息\r\n var tempTokenInfo = null; //临时设备信息,循环遍历用\r\n var result = false;\r\n\r\n LAST_ERRORSTRING = \"\";\r\n\r\n //设备名称为空\r\n if (null == userName || userName.length == null) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_USERNAME_IS_NULL;\r\n return false;\r\n }\r\n\r\n //查找匹配的设备序列号\r\n if (null == tokenInfoList || tokenInfoList.length == 0) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_NOT_FIND_UKEY;\r\n return false;\r\n }\r\n\r\n //索引设备编号\r\n for (var i = 0; i < tokenInfoList.length; i++) {\r\n tempTokenInfo = tokenInfoList[i];\r\n if (tempTokenInfo.userName == userName) {\r\n tokenInfo = tempTokenInfo;\r\n break;\r\n }\r\n }\r\n\r\n //如果所选择的设备不存在\r\n if (null == tokenInfo) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_KEY_NOT_EXIT;\r\n return false;\r\n }\r\n\r\n //判断设备是否支持远程解锁\r\n if (tokenInfo.libraryName != \"GM3000\") {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_GET_REMOTEUNLOCKREQUEST_NOT_SUPPORT;\r\n return false;\r\n }\r\n\r\n //加载库文件\r\n if (!SOF_LoadLibrary(tokenInfo.libraryName)) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_KEY_LIBRAY;\r\n return false;\r\n }\r\n\r\n //实例化设备\r\n if (!SOF_GetDeviceInstance(tokenInfo.serial)) {\r\n return false;\r\n }\r\n\r\n //枚举容器,并选择第一个容器\r\n if (SOF_GetUserList() == null) {\r\n return false;\r\n }\r\n\r\n //远程解锁\r\n result = SOF_RemoteUnlockPIN(response)\r\n return result;\r\n }\r\n\r\n /**\r\n * 修改Ukey密码\r\n */\r\n this.Hunca_ChangeUserPin = function (userName, oldUserPin, newUserPin) {\r\n var tokenInfo = null; //Ukey设备信息\r\n var tempTokenInfo = null; //临时设备信息,循环遍历用\r\n LAST_ERRORSTRING = \"\";\r\n\r\n //设备名称为空\r\n if (null == userName || userName.length == null) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_USERNAME_IS_NULL;\r\n return false;\r\n }\r\n\r\n //查找匹配的设备序列号\r\n if (null == tokenInfoList || tokenInfoList.length == 0) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_NOT_FIND_UKEY;\r\n return false;\r\n }\r\n\r\n //索引设备编号\r\n for (var i = 0; i < tokenInfoList.length; i++) {\r\n tempTokenInfo = tokenInfoList[i];\r\n if (tempTokenInfo.userName == userName) {\r\n tokenInfo = tempTokenInfo;\r\n break;\r\n }\r\n }\r\n\r\n //如果所选择的设备不存在\r\n if (null == tokenInfo) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_KEY_NOT_EXIT;\r\n return false;\r\n }\r\n\r\n //加载库文件\r\n if (!SOF_LoadLibrary(tokenInfo.libraryName)) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_KEY_LIBRAY;\r\n }\r\n\r\n //实例化设备\r\n if (!SOF_GetDeviceInstance(tokenInfo.serial)) {\r\n return false;\r\n }\r\n\r\n //修改密码\r\n if (!SOF_ChangeUserPin(oldUserPin, newUserPin)) {\r\n return false;\r\n }\r\n\r\n SOF_LogOut();\r\n return true;\r\n }\r\n\r\n /**\r\n * 对数据进行签名,并返回签名是否成功\r\n * @param {string} originalData 待签名原文\r\n * @param {string} userName Ukey用户名称\r\n * @param {string} userPin Ukey密码\r\n */\r\n this.Hunca_PKCS1 = function (originalData, userName, userPin) {\r\n // eslint-disable-next-line no-unused-vars\r\n var libraryName = null;\r\n var tokenInfo = null; //Ukey设备信息\r\n var tempTokenInfo = null; //临时设备信息,循环遍历用\r\n var certBase64 = null; //签名证书值\r\n\r\n var LAST_ERRORSTRING = \"\";\r\n // eslint-disable-next-line no-unused-vars\r\n var signResultInfo = null;\r\n // eslint-disable-next-line no-unused-vars\r\n var certInfo = new Object();\r\n //设备名称为空\r\n if (null == userName || userName.length == null) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_USERNAME_IS_NULL;\r\n return false;\r\n }\r\n\r\n //查找匹配的设备序列号\r\n if (null == tokenInfoList || tokenInfoList.length == 0) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_NOT_FIND_UKEY;\r\n return false;\r\n }\r\n\r\n //索引设备编号\r\n for (var i = 0; i < tokenInfoList.length; i++) {\r\n tempTokenInfo = tokenInfoList[i];\r\n if (tempTokenInfo.userName == userName) {\r\n tokenInfo = tempTokenInfo;\r\n break;\r\n }\r\n }\r\n\r\n //如果所选择的设备不存在\r\n if (null == tokenInfo) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_KEY_NOT_EXIT;\r\n return false;\r\n }\r\n\r\n //加载库文件\r\n if (!SOF_LoadLibrary(tokenInfo.libraryName)) {\r\n // eslint-disable-next-line no-unused-vars\r\n LAST_ERRORSTRING = ERROR_MESSAGE_KEY_LIBRAY;\r\n }\r\n\r\n //实例化设备\r\n if (!SOF_GetDeviceInstance(tokenInfo.serial)) {\r\n return false;\r\n }\r\n\r\n //登陆应用\r\n if (!SOF_Login(userPin)) {\r\n return false;\r\n }\r\n\r\n //获取签名证书Base64\r\n certBase64 = SOF_ExportUserCert(tokenInfo.containerName, KEY_SPEC_TYPE_SIGN);\r\n if (null == certBase64) {\r\n return false;\r\n }\r\n\r\n //设置摘要算法\r\n if (!SOF_SetDigestMethod(SGD_SM3)) {\r\n return false;\r\n }\r\n\r\n if (!SOF_SetUserID()) {\r\n return false;\r\n }\r\n\r\n //进行签名\r\n if (!SOF_SignData(tokenInfo.containerName, SGD_SM3, originalData, certBase64)) {\r\n return false;\r\n }\r\n\r\n //获取证书信息\r\n if (!SOF_GetCertInfo(certBase64)) {\r\n return false;\r\n }\r\n\r\n SOF_LogOut();\r\n return true;\r\n }\r\n\r\n /**\r\n * 获取签名结果\r\n */\r\n this.Hunca_GetSignData = function () {\r\n return signResultSignData;\r\n }\r\n\r\n /**\r\n * 获取签名证书\r\n */\r\n this.Hunca_GetSignCert = function () {\r\n return signResultCert;\r\n }\r\n\r\n this.Hunca_GetSignCertSn = function () {\r\n return certSn\r\n }\r\n\r\n this.Hunca_GetSignCertSubject = function () {\r\n return cert_subject;\r\n }\r\n\r\n this.Hunca_GetValidTime = function () {\r\n return cert_validTime;\r\n }\r\n\r\n this.HUnca_GetNotBeforeTime = function () {\r\n return cert_notbeforetime;\r\n }\r\n /**\r\n * 处理设备中签名证书信息\r\n * @param {*} userName\r\n */\r\n this.Hunca_DealCertInfo = function (userName) {\r\n var tokenInfo = null; //Ukey设备信息\r\n var tempTokenInfo = null; //临时设备信息,循环遍历用\r\n var certBase64 = null; //签名证书值\r\n\r\n LAST_ERRORSTRING = \"\";\r\n // eslint-disable-next-line no-undef\r\n signResultInfo = null;\r\n // eslint-disable-next-line no-undef\r\n certInfo = new Object();\r\n //设备名称为空\r\n if (null == userName || userName.length == null) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_USERNAME_IS_NULL;\r\n return false;\r\n }\r\n\r\n //查找匹配的设备序列号\r\n if (null == tokenInfoList || tokenInfoList.length == 0) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_NOT_FIND_UKEY;\r\n return false;\r\n }\r\n\r\n //索引设备编号\r\n for (var i = 0; i < tokenInfoList.length; i++) {\r\n tempTokenInfo = tokenInfoList[i];\r\n if (tempTokenInfo.userName == userName) {\r\n tokenInfo = tempTokenInfo;\r\n break;\r\n }\r\n }\r\n\r\n //如果所选择的设备不存在\r\n if (null == tokenInfo) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_KEY_NOT_EXIT;\r\n return false;\r\n }\r\n\r\n if (!SOF_LoadLibrary(tokenInfo.libraryName)) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_KEY_LIBRAY;\r\n return false;\r\n }\r\n\r\n //实例化设备\r\n if (!SOF_GetDeviceInstance(tokenInfo.serial)) {\r\n return false;\r\n }\r\n\r\n //导出证书\r\n certBase64 = SOF_ExportUserCert(tokenInfo.containerName, KEY_SPEC_TYPE_SIGN);\r\n if (null == certBase64 || certBase64.length == 0) {\r\n return false;\r\n }\r\n\r\n SOF_GetCertInfo(certBase64);\r\n SOF_LogOut();\r\n return true;\r\n }\r\n\r\n /**\r\n * 对数据进行数字信封加密\r\n * @param {string} inData 待加密原文\r\n * @param {string} userName Ukey用户名称\r\n * @param {string} EncryptMethod 对称加密方式\r\n * @param {string} EncryptIV 加密IV值\r\n * @returns {string} \"\",加密失败;非空,加密成功\r\n */\r\n this.Hunca_EncryptDataPKCS7 = function (inData, userName, EncryptMethod, EncryptIV) {\r\n var tokenInfo = null; //Ukey设备信息\r\n var tempTokenInfo = null; //临时设备信息,循环遍历用\r\n var certBase64 = null; //签名证书值\r\n var m_EncryptMethod = \"\",\r\n m_EncryptIV = \"\";\r\n\r\n var LAST_ERRORSTRING = \"\";\r\n // eslint-disable-next-line no-unused-vars\r\n var signResultInfo = null;\r\n // eslint-disable-next-line no-unused-vars\r\n var certInfo = new Object();\r\n\r\n\r\n //设备名称为空\r\n if (null == userName || userName.length == null) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_USERNAME_IS_NULL;\r\n return \"\";\r\n }\r\n\r\n //查找匹配的设备序列号\r\n if (null == tokenInfoList || tokenInfoList.length == 0) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_NOT_FIND_UKEY;\r\n return \"\";\r\n }\r\n\r\n //索引设备编号\r\n for (var i = 0; i < tokenInfoList.length; i++) {\r\n tempTokenInfo = tokenInfoList[i];\r\n if (tempTokenInfo.userName == userName) {\r\n tokenInfo = tempTokenInfo;\r\n break;\r\n }\r\n }\r\n\r\n //如果所选择的设备不存在\r\n if (null == tokenInfo) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_KEY_NOT_EXIT;\r\n return \"\";\r\n }\r\n\r\n //加载链接库\r\n if (!SOF_LoadLibrary(tokenInfo.libraryName)) {\r\n // eslint-disable-next-line no-unused-vars\r\n LAST_ERRORSTRING = ERROR_MESSAGE_KEY_LIBRAY;\r\n return \"\";\r\n }\r\n\r\n //实例化设备\r\n if (!SOF_GetDeviceInstance(tokenInfo.serial)) {\r\n return \"\";\r\n }\r\n\r\n //导出加密证书\r\n certBase64 = SOF_ExportUserCert(tokenInfo.containerName, KEY_SPEC_TYPE_ENCRYPT);\r\n if (null == certBase64 || certBase64.length == 0) {\r\n return \"\";\r\n }\r\n\r\n //设置加密方式\r\n\r\n m_EncryptMethod = EncryptMethod + \"\";\r\n m_EncryptIV = EncryptIV + \"\";\r\n\r\n if (m_EncryptMethod == null || m_EncryptMethod.length == 0) {\r\n m_EncryptMethod = SGD_SM4_ECB;\r\n m_EncryptIV = \"\";\r\n }\r\n\r\n if (!SOF_SetEncryptMethodAndIV(m_EncryptMethod, m_EncryptIV)) {\r\n return \"\";\r\n }\r\n\r\n //对数据进行加密\r\n // eslint-disable-next-line no-undef\r\n encryptData = SOF_EncryptDataPKCS7(certBase64, inData);\r\n\r\n SOF_LogOut();\r\n\r\n // eslint-disable-next-line no-undef\r\n return encryptData;\r\n }\r\n\r\n /**\r\n * 对密文进行数字信封解密操作\r\n * @param {string} encryptData 待解密密文\r\n * @param {string} userName Ukey用户名称\r\n * @param {string} userPin Ukey用户PIN码\r\n * @param {string} EncryptMethod 对称加密方式\r\n * @param {string} EncryptIV 加密IV值\r\n * @returns {string} \"\",加密失败;非空,加密成功\r\n */\r\n this.Hunca_DecryptDataPKCS7 = function (encryptData, userName, userPin, EncryptMethod, EncryptIV) {\r\n var tokenInfo = null; //Ukey设备信息\r\n var tempTokenInfo = null; //临时设备信息,循环遍历用\r\n var m_EncryptMethod = \"\",\r\n m_EncryptIV = \"\";\r\n var m_EncryptData = \"\";\r\n var m_DecryptData = \"\";\r\n var resData = \"\";\r\n\r\n var LAST_ERRORSTRING = \"\";\r\n // eslint-disable-next-line no-unused-vars\r\n var signResultInfo = null;\r\n // eslint-disable-next-line no-unused-vars\r\n var certInfo = new Object();\r\n\r\n\r\n m_EncryptData = \"\" + encryptData;\r\n //设备名称为空\r\n if (null == userName || userName.length == null) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_USERNAME_IS_NULL;\r\n return \"\";\r\n }\r\n\r\n //查找匹配的设备序列号\r\n if (null == tokenInfoList || tokenInfoList.length == 0) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_NOT_FIND_UKEY;\r\n return \"\";\r\n }\r\n\r\n //索引设备编号\r\n for (var i = 0; i < tokenInfoList.length; i++) {\r\n tempTokenInfo = tokenInfoList[i];\r\n if (tempTokenInfo.userName == userName) {\r\n tokenInfo = tempTokenInfo;\r\n break;\r\n }\r\n }\r\n\r\n //如果所选择的设备不存在\r\n if (null == tokenInfo) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_KEY_NOT_EXIT;\r\n return \"\";\r\n }\r\n\r\n //加载链接库\r\n if (!SOF_LoadLibrary(tokenInfo.libraryName)) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_KEY_LIBRAY;\r\n return \"\";\r\n }\r\n\r\n //实例化设备\r\n if (!SOF_GetDeviceInstance(tokenInfo.serial)) {\r\n return \"\";\r\n }\r\n\r\n //登陆应用\r\n if (!SOF_Login(userPin)) {\r\n return \"\";\r\n }\r\n\r\n //设置加密方式\r\n m_EncryptMethod = EncryptMethod + \"\";\r\n m_EncryptIV = EncryptIV + \"\";\r\n if (m_EncryptMethod == null || m_EncryptMethod.length == 0) {\r\n m_EncryptMethod = SGD_SM4_ECB;\r\n m_EncryptIV = \"\";\r\n }\r\n\r\n if (!SOF_SetEncryptMethodAndIV(m_EncryptMethod, m_EncryptIV)) {\r\n return \"\";\r\n }\r\n\r\n m_DecryptData = SOF_DecryptDataPKCS7(tokenInfo.containerName, KEY_SPEC_TYPE_ENCRYPT, m_EncryptData);\r\n if (m_DecryptData.length == 0) {\r\n return \"\";\r\n }\r\n\r\n try {\r\n // eslint-disable-next-line no-undef\r\n resData = _Base64decode(m_DecryptData);\r\n } catch (e) {\r\n resData = m_DecryptData;\r\n // eslint-disable-next-line no-unused-vars\r\n LAST_ERRORSTRING = \"解密失败:Base64解码失败\";\r\n }\r\n\r\n return resData;\r\n }\r\n\r\n /**\r\n * 加载底层文件\r\n * @returns {boolean} true,加载成功;false加载失败;\r\n */\r\n function SOF_LoadLibrary (libraryName) {\r\n var resultCode = 0;\r\n if (libraryName == \"GM3000\") {\r\n resultCode = token.SOF_LoadLibrary(token.GM3000);\r\n }\r\n else if (libraryName == \"HT\") {\r\n resultCode = token.SOF_LoadLibrary(token.HT);\r\n }\r\n else if (libraryName == \"SJK1137\") {\r\n resultCode = token.SOF_LoadLibrary(token.SJK1137);\r\n }\r\n\r\n if (resultCode != 0) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_NOT_LOADLIBRARY + token.SOF_GetLastError();\r\n return false;\r\n }\r\n return true;\r\n }\r\n\r\n /**\r\n * 枚举设备\r\n */\r\n function SOF_EnumDevice () {\r\n var deviceNameList = \"\";\r\n\r\n deviceNameList = token.SOF_EnumDevice();\r\n\r\n //检测是否插入USBKey\r\n if (null == deviceNameList || deviceNameList.length == 0) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_NOT_FIND_UKEY;\r\n return null;\r\n }\r\n\r\n return deviceNameList;\r\n }\r\n\r\n /**\r\n * 实例化设备,为后续一系列操作准备\r\n * @param {string} deviceName 设备名称\r\n */\r\n function SOF_GetDeviceInstance (deviceName) {\r\n var resultCode = 0;\r\n\r\n resultCode = token.SOF_GetDeviceInstance(deviceName, \"\");\r\n //设备未正常实例化\r\n if (resultCode != 0) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_NOT_INSTANCE_DEVICE + token.SOF_GetLastError();\r\n return false;\r\n }\r\n return true;\r\n }\r\n\r\n /**\r\n * 枚举应用中的容器\r\n */\r\n function SOF_GetUserList () {\r\n var userList = \"\";\r\n\r\n userList = token.SOF_GetUserList();\r\n if (null == userList || userList.length == 0) {\r\n LAST_ERRORSTRING = \"USBkey中未找到证书!\";\r\n return null;\r\n }\r\n\r\n return userList;\r\n }\r\n\r\n /**\r\n * 登陆应用,验证密码是否正确\r\n * @param {string} userPin\r\n */\r\n function SOF_Login (userPin) {\r\n var resultCode = 0;\r\n var m_userPin = \"\" + userPin;\r\n var RetryCount = 0;\r\n\r\n if (null == m_userPin || m_userPin.length == 0) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_USERPIN_LENGTH;\r\n return false;\r\n }\r\n\r\n if (m_userPin.length < 4 || m_userPin.length > 16) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_USERPIN_LENGTH;\r\n return false;\r\n }\r\n\r\n resultCode = token.SOF_Login(m_userPin);\r\n if (resultCode != 0) {\r\n RetryCount = SOF_GetPinRetryCount();\r\n if (RetryCount > 0) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_USERPIN_IS_ERROR + \",还剩 \" + RetryCount + \" 次重试机会!\";\r\n } else {\r\n LAST_ERRORSTRING = \"UKey已经锁死,请联系管理员进行解锁!\"\r\n }\r\n return false;\r\n }\r\n return true\r\n }\r\n\r\n /**\r\n * 修改UKey密码\r\n * @param {*} oldUserPin\r\n * @param {*} newUserPin\r\n */\r\n function SOF_ChangeUserPin (oldUserPin, newUserPin) {\r\n var resultCode = 0;\r\n var m_oldUserPin = \"\" + oldUserPin;\r\n var m_newUserPin = \"\" + newUserPin;\r\n var RetryCount = 0;\r\n\r\n if (null == m_oldUserPin || m_oldUserPin.length == 0) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_USERPIN_LENGTH;\r\n return false;\r\n }\r\n\r\n if (null == m_newUserPin || m_newUserPin.length == 0) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_USERPIN_LENGTH;\r\n return false;\r\n }\r\n\r\n if (m_oldUserPin.length < 4 || m_oldUserPin.length > 16) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_USERPIN_LENGTH;\r\n return false;\r\n }\r\n\r\n if (m_newUserPin.length < 4 || m_newUserPin.length > 16) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_USERPIN_LENGTH;\r\n return false;\r\n }\r\n\r\n resultCode = token.SOF_ChangePassWd(m_oldUserPin, m_newUserPin);\r\n if (resultCode != 0) {\r\n RetryCount = SOF_GetPinRetryCount();\r\n if (RetryCount > 0) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_USERPIN_CHANGE_ERROR + \",还剩 \" + RetryCount + \" 次重试机会!\";\r\n } else {\r\n LAST_ERRORSTRING = \"UKey已经锁死,请联系管理员进行解锁!\"\r\n }\r\n return false;\r\n }\r\n return true;\r\n }\r\n\r\n /**\r\n * 返回重试次数\r\n */\r\n function SOF_GetPinRetryCount () {\r\n var retryCount = 0;\r\n retryCount = token.SOF_GetPinRetryCount();\r\n return retryCount;\r\n }\r\n\r\n function SOF_GetDeviceNumber () {\r\n var deviceNumber = null;\r\n deviceNumber = token.SOF_GetDeviceInfo(token.SGD_DEVICE_SERIAL_NUMBER);\r\n return deviceNumber;\r\n }\r\n\r\n /**\r\n * 导出证书值\r\n * @param {string} containerName 容器名称\r\n * @param {int} keySec 证书用途\r\n */\r\n function SOF_ExportUserCert (containerName, keySec) {\r\n var certBase64;\r\n certBase64 = token.SOF_ExportUserCert(containerName, keySec);\r\n if (null == certBase64 || certBase64.length == 0) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_KEY_EXPORT_CERT;\r\n return null;\r\n }\r\n return certBase64;\r\n }\r\n\r\n /**\r\n * 设置加密算法\r\n * @param {*} EncryptMethod 设置加密算法\r\n * @param {*} EncryptIV 设置IV值\r\n */\r\n function SOF_SetEncryptMethodAndIV (EncryptMethod, EncryptIV) {\r\n var resCode = 1;\r\n\r\n if (EncryptMethod == undefined || EncryptMethod == null) {\r\n LAST_ERRORSTRING = \"请设置加密方式!\";\r\n return false;\r\n }\r\n\r\n resCode = token.SOF_SetEncryptMethodAndIV(EncryptMethod, _Base64encode(EncryptIV));\r\n if (resCode != 0) {\r\n LAST_ERRORSTRING = token.SOF_GetLastError();\r\n return false;\r\n }\r\n return true;\r\n }\r\n\r\n /**\r\n * 设置签名算法\r\n * @param {}} digestMethod\r\n */\r\n function SOF_SetDigestMethod (digestMethod) {\r\n var resultCode = 0;\r\n resultCode = token.SOF_SetDigestMethod(digestMethod);\r\n if (resultCode != 0) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_SET_DIGEST_METHOD_ERROR;\r\n return false;\r\n }\r\n\r\n return true;\r\n }\r\n\r\n /**\r\n * 设置默认USERID\r\n */\r\n function SOF_SetUserID () {\r\n var resultCode = 0;\r\n resultCode = token.SOF_SetUserID(USER_ID);\r\n if (resultCode != 0) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_SET_USERID_ERROR;\r\n return false;\r\n }\r\n return true;\r\n }\r\n\r\n /**\r\n * 数字信封加密\r\n * @param {String} Base64EncodeCert 加密证书值\r\n * @param {String} inData 待加密原文\r\n * @returns {*} \"\",表示加密失败;非空,加密成功\r\n */\r\n function SOF_EncryptDataPKCS7 (Base64EncodeCert, inData) {\r\n var encryptData = \"\";\r\n var inDataBase64 = \"\";\r\n var m_inData = \"\";\r\n\r\n m_inData = \"\" + inData;\r\n if (m_inData.length == 0) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_ENCRYPT_DATA_IS_NULL;\r\n return \"\";\r\n }\r\n\r\n inDataBase64 = _Base64encode(m_inData)\r\n encryptData = token.SOF_EncryptDataPKCS7(Base64EncodeCert, inDataBase64, inData.length);\r\n\r\n if (encryptData == null || encryptData.length == 0) {\r\n LAST_ERRORSTRING = \"加密失败,\" + token.SOF_GetLastError();\r\n return \"\";\r\n }\r\n return encryptData;\r\n }\r\n\r\n /**\r\n * 数字信封解密\r\n * @param {*} containerName 应用名称\r\n * @param {int} cerType\r\n * @param {*} encrypedData\r\n */\r\n function SOF_DecryptDataPKCS7 (containerName, cerType, encrypedData) {\r\n var m_EncrypedData = \"\",\r\n m_DecryptData = \"\";\r\n\r\n m_EncrypedData = \"\" + encrypedData;\r\n if (containerName == null || containerName.length == 0) {\r\n LAST_ERRORSTRING = \"应用名称不能为空!\";\r\n return \"\";\r\n }\r\n\r\n if (m_EncrypedData.length == 0) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_DECRYPT_DATA_IS_NULL;\r\n return \"\";\r\n }\r\n\r\n try {\r\n m_DecryptData = token.SOF_DecryptDataPKCS7(containerName, cerType, m_EncrypedData);\r\n } catch (e) {\r\n m_DecryptData = \"\";\r\n }\r\n if (undefined == m_DecryptData || m_DecryptData == null || m_DecryptData == \"\") {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_DECRYPT_DATA_IS_ERROR;\r\n return \"\";\r\n }\r\n\r\n return m_DecryptData;\r\n }\r\n\r\n /**\r\n * 数据签名\r\n * @param {*} containerName\r\n * @param {*} ulKeySpec\r\n * @param {*} data\r\n * @param {*} certBase64\r\n */\r\n function SOF_SignData (containerName, ulKeySpec, data, certBase64) {\r\n var signData = null;\r\n var b64Data = null;\r\n var m_data = \"\" + data;\r\n\r\n\r\n if (null == m_data || m_data.length == 0) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_SIGN_ORIGINALDATA_IS_NULL;\r\n return false;\r\n }\r\n\r\n b64Data = _Base64encode(m_data);\r\n signData = token.SOF_SignData(containerName, ulKeySpec, _Base64encode(b64Data), b64Data.length)\r\n if (null == signData || signData.length == 0) {\r\n // eslint-disable-next-line no-undef\r\n LAST_ERRORSTRING = ERROR_MESSAGE_SIGN_ERROR + SOF_GetLastError();\r\n return false;\r\n }\r\n\r\n signResultCert = certBase64;\r\n signResultSignData = signData;\r\n\r\n return true;\r\n }\r\n\r\n /**\r\n * 导出证书\r\n * @param {*} certBase64\r\n */\r\n function SOF_GetCertInfo (certBase64) {\r\n var str = null;\r\n var subject = null;\r\n var tmpList = null;\r\n var validTime = null;\r\n var notBeforetime = null;\r\n var key, value;\r\n\r\n if (null == certBase64 || certBase64.length == 0) {\r\n return false;\r\n }\r\n\r\n cert_subject_GN = \"\";\r\n certSn = \"\";\r\n cert_subject = \"\";\r\n\r\n str = token.SOF_GetCertInfo(certBase64, token.SGD_CERT_SERIAL);\r\n certSn = hexToDec(str);\r\n\r\n subject = token.SOF_GetCertInfo(certBase64, token.SGD_CERT_SUBJECT);\r\n cert_subject = subject;\r\n\r\n validTime = token.SOF_GetCertInfo(certBase64, token.SGD_CERT_VALID_TIME);\r\n cert_validTime = validTime;\r\n\r\n notBeforetime = token.SOF_GetCertInfo(certBase64, token.SGD_CERT_NOT_BEFORE);\r\n cert_notbeforetime = notBeforetime;\r\n\r\n tmpList = subject.split(',');\r\n for (var i = 0; i < tmpList.length; i++) {\r\n if (tmpList[i].indexOf(\"=\") == -1) {\r\n continue;\r\n }\r\n\r\n key = tmpList[i].split('=')[0];\r\n value = tmpList[i].split('=')[1];\r\n\r\n if (key == 'GN') {\r\n cert_subject_GN = value;\r\n break;\r\n }\r\n }\r\n return true;\r\n }\r\n\r\n\r\n\r\n /**\r\n * 登出UKey\r\n */\r\n function SOF_LogOut () {\r\n token.SOF_LogOut();\r\n }\r\n\r\n /**\r\n * 生成解锁请求\r\n */\r\n function SOF_GenRemoteUnblockRequest () {\r\n var request = token.SOF_GenRemoteUnblockRequest();\r\n if (request == null || request == \"\") {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_GET_REMOTEUNLOCKREQUEST_FAIL;\r\n return \"\";\r\n }\r\n\r\n return request;\r\n }\r\n\r\n function SOF_RemoteUnlockPIN (response) {\r\n var result = false;\r\n\r\n if (null == response || response.length == 0) {\r\n LAST_ERRORSTRING = \"解锁失败解:响应不能为空!\";\r\n return false;\r\n }\r\n\r\n result = token.SOF_RemoteUnblockPIN(response);\r\n if (result != 0) {\r\n LAST_ERRORSTRING = ERROR_MESSAGE_REMOTE_UNLOCK_FAIL;\r\n return false;\r\n } else {\r\n return true;\r\n }\r\n }\r\n\r\n function add (x, y, base) {\r\n var z = [];\r\n var n = Math.max(x.length, y.length);\r\n var carry = 0;\r\n var i = 0;\r\n while (i < n || carry) {\r\n var xi = i < x.length ? x[i] : 0;\r\n var yi = i < y.length ? y[i] : 0;\r\n var zi = carry + xi + yi;\r\n z.push(zi % base);\r\n carry = Math.floor(zi / base);\r\n i++;\r\n }\r\n return z;\r\n }\r\n\r\n function multiplyByNumber (num, x, base) {\r\n if (num < 0) return null;\r\n if (num == 0) return [];\r\n\r\n var result = [];\r\n var power = x;\r\n // eslint-disable-next-line no-constant-condition\r\n while (true) {\r\n if (num & 1) {\r\n result = add(result, power, base);\r\n }\r\n num = num >> 1;\r\n if (num === 0) break;\r\n power = add(power, power, base);\r\n }\r\n\r\n return result;\r\n }\r\n\r\n function parseToDigitsArray (str, base) {\r\n var digits = str.split('');\r\n var ary = [];\r\n for (var i = digits.length - 1; i >= 0; i--) {\r\n var n = parseInt(digits[i], base);\r\n if (isNaN(n)) return null;\r\n ary.push(n);\r\n }\r\n return ary;\r\n }\r\n\r\n\r\n function convertBase (str, fromBase, toBase) {\r\n var digits = parseToDigitsArray(str, fromBase);\r\n if (digits === null) return null;\r\n\r\n var outArray = [];\r\n var power = [1];\r\n for (var i = 0; i < digits.length; i++) {\r\n // invariant: at this point, fromBase^i = power\r\n if (digits[i]) {\r\n outArray = add(outArray, multiplyByNumber(digits[i], power, toBase), toBase);\r\n }\r\n power = multiplyByNumber(fromBase, power, toBase);\r\n }\r\n\r\n var out = '';\r\n for (let i = outArray.length - 1; i >= 0; i--) {\r\n out += outArray[i].toString(toBase);\r\n }\r\n return out;\r\n }\r\n\r\n // eslint-disable-next-line no-unused-vars\r\n function decToHex (decStr) {\r\n var hex = convertBase(decStr, 10, 16);\r\n return hex ? '0x' + hex : null;\r\n }\r\n\r\n\r\n function hexToDec (hexStr) {\r\n if (hexStr.substring(0, 2) === '0x') hexStr = hexStr.substring(2);\r\n hexStr = hexStr.toLowerCase();\r\n return convertBase(hexStr, 16, 10);\r\n }\r\n}\r\n","// 过滤时间\r\nexport function formateTime(dateStr) {\r\n let year = dateStr.slice(0, 4);\r\n let month = dateStr.slice(4, 6);\r\n let date = dateStr.slice(6, 8);\r\n let hours = dateStr.slice(8, 10);\r\n let minute = dateStr.slice(10, 12);\r\n let second = dateStr.slice(12);\r\n return `${year}-${month}-${date} ${hours}:${minute}:${second}`;\r\n}\r\n","<template>\r\n <div>\r\n <el-form\r\n ref=\"loginForm\"\r\n :model=\"loginForm\"\r\n :rules=\"loginRules\"\r\n class=\"login-form\"\r\n >\r\n <div class=\"ca-bg-box\" v-if=\"loginForm.username == undefined\">\r\n <div class=\"ca-bg-img\"></div>\r\n <div class=\"ca-bg-text\">请插入UKEY证书</div>\r\n <img\r\n :src=\"require('comp/YcCA/images/refresh.png')\"\r\n class=\"ca-refresh\"\r\n @click=\"caRead\"\r\n alt=\"\"\r\n />\r\n </div>\r\n <div class=\"ca-bg-info\" v-else>\r\n <div class=\"ca-bg-text\">\r\n CA名称:<span class=\"caName\">{{ loginForm.username }}</span>\r\n </div>\r\n <img\r\n :src=\"require('comp/YcCA/images/refresh.png')\"\r\n class=\"ca-refresh\"\r\n @click=\"caRead\"\r\n alt=\"\"\r\n />\r\n </div>\r\n <el-form-item prop=\"password\">\r\n <el-input\r\n v-model=\"loginForm.password\"\r\n type=\"password\"\r\n auto-complete=\"off\"\r\n placeholder=\"密码\"\r\n show-password\r\n @keyup.enter.native=\"handleLogin\"\r\n >\r\n <img\r\n slot=\"prefix\"\r\n class=\"el-input__icon input-icon\"\r\n :src=\"require('./images/password.svg')\"\r\n />\r\n </el-input>\r\n </el-form-item>\r\n <el-form-item>\r\n <el-button\r\n :loading=\"loading\"\r\n size=\"medium\"\r\n type=\"primary\"\r\n class=\"login-btn\"\r\n style=\"width: 100%\"\r\n @click.native.prevent=\"handleLogin\"\r\n >\r\n <span v-if=\"!loading\">登 录</span>\r\n <span v-else>登 录 中...</span>\r\n </el-button>\r\n </el-form-item>\r\n <slot></slot>\r\n </el-form>\r\n <el-dialog\r\n title=\"提示\"\r\n :visible.sync=\"dialogVisible.showInfo\"\r\n width=\"30%\"\r\n center\r\n >\r\n <span style=\"color: red\">4444{{ caInfo.error_text }}</span>\r\n <span slot=\"footer\" class=\"dialog-footer\">\r\n <el-button @click=\"dialogVisible.showInfo = false\">取 消</el-button>\r\n <el-button type=\"primary\" @click=\"dialogVisible.showInfo = false\"\r\n >确 定</el-button\r\n >\r\n </span>\r\n </el-dialog>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport { hunca_mToken_core } from \"comp/YcCA/mTokenPlugin/hunca_mToken_core2\"\r\n// 北京ca\r\nimport \"comp/YcCA/mTokenPluginBeijin/xtxasyn\"\r\nimport { formateTime } from \"comp/YcCA/mTokenPluginBeijin/formateTime\"\r\nexport default {\r\n name: \"YcCA\",\r\n props: {\r\n region: {\r\n /** 1背景CA,0湖南CA */\r\n type: Number,\r\n default: 0,\r\n },\r\n },\r\n data() {\r\n return {\r\n form: {},\r\n caInfo: {\r\n error_text: \"\",\r\n have_error_info: false,\r\n },\r\n loginForm: {\r\n username: \"\",\r\n password: \"\",\r\n uuid: \"\",\r\n caInfo: \"\",\r\n },\r\n dialogVisible: {\r\n ca: false,\r\n showInfo: false,\r\n },\r\n loginRules: {\r\n password: [\r\n { required: true, trigger: \"blur\", message: \"请输入您的密码\" },\r\n ],\r\n },\r\n loading: false,\r\n }\r\n },\r\n computed: {\r\n isBJCA() {\r\n return this.region == 1\r\n },\r\n },\r\n watch: {\r\n region() {\r\n this.caRead()\r\n },\r\n },\r\n created() {\r\n // this.caRead()\r\n },\r\n methods: {\r\n //读取CA\r\n caRead() {\r\n if (this.isBJCA) {\r\n this.caReadBeijin()\r\n } else {\r\n window.mToken = new hunca_mToken_core()\r\n let tempName = window.mToken.Hunca_GetUserListGN()\r\n this.loginForm.username = tempName[0]\r\n }\r\n },\r\n async caReadBeijin() {\r\n let retObj = await new Promise((resolve) => {\r\n window.SOF_GetUserList(function (retObj) {\r\n resolve(retObj)\r\n })\r\n })\r\n this.loginForm.username = retObj.retVal.split(\"||\")[0]\r\n },\r\n // CA登录选择\r\n caLogin(flag) {\r\n switch (flag) {\r\n case 0:\r\n this.HNCALogin()\r\n break\r\n default:\r\n this.$message({\r\n type: \"warning\",\r\n message: \"请选择CA平台!!!\",\r\n })\r\n }\r\n },\r\n // 湖南CA平台登录\r\n HNCALogin() {\r\n window.mToken = new hunca_mToken_core()\r\n this.loginForm.username = window.mToken.Hunca_GetUserListGN()\r\n let tempuserName = window.mToken.Hunca_userNameGNToUserName(\r\n this.loginForm.username[0]\r\n ) //将证书G项信息转化为证书名称\r\n let rn = Math.random()\r\n if (\r\n !window.mToken.Hunca_PKCS1(rn, tempuserName, this.loginForm.password)\r\n ) {\r\n this.caInfo.error_text = window.mToken.Hunca_GetLastError()\r\n this.caInfo.have_error_info = true\r\n this.dialogVisible.showInfo = true\r\n return false\r\n }\r\n this.ca_cert = window.mToken.Hunca_GetSignCert()\r\n this.sign = window.mToken.Hunca_GetSignData()\r\n this.certSn = window.mToken.Hunca_GetSignCertSn() //CA唯一码\r\n this.cert_subject = window.mToken.Hunca_GetSignCertSubject() //CA信息\r\n this.cert_validTime = window.mToken.Hunca_GetValidTime() //过期时间\r\n this.cert_notBeforeTime = window.mToken.HUnca_GetNotBeforeTime() //生效时间\r\n let tempinfo = this.cert_subject.split(\",\")\r\n let tempinfo1 = {}\r\n tempinfo.forEach((e) => {\r\n tempinfo1[e.split(\"=\")[0]] = e.split(\"=\")[1]\r\n })\r\n this.loginForm = {\r\n cert: this.ca_cert,\r\n sign: this.sign,\r\n rn: rn,\r\n caInfo: this.cert_subject, //CA信息\r\n caAddr: tempinfo1.ST + tempinfo1.OU, //设备归属地\r\n caCode: tempinfo1.TITLE, //证书代码\r\n caName: tempinfo1.GN, //ca名字\r\n caSn: this.certSn, //CA唯一码\r\n caEffectiveDate: this.cert_notBeforeTime, //生效时间\r\n caExpireDate: this.cert_validTime, //过期时间\r\n loginType: \"3\",\r\n username: tempinfo1.GN,\r\n }\r\n return true\r\n },\r\n handleLogin() {\r\n this.$refs.loginForm.validate((valid) => {\r\n if (valid) {\r\n this.loading = true\r\n if (this.isBJCA) {\r\n this.BJCALogin()\r\n } else {\r\n this.HNCALogin()\r\n if (this.dialogVisible.showInfo == true) {\r\n this.loading = false\r\n } else if (this.loginForm.username != undefined) {\r\n this.loading = true\r\n this.$emit(\"caSuccess\", this.loginForm, () => {\r\n this.loading = false\r\n })\r\n } else {\r\n this.msgErr(\"请插入CA\")\r\n }\r\n }\r\n }\r\n })\r\n },\r\n async BJCALogin() {\r\n if (this.loginForm.password == undefined) {\r\n this.msgErr(\"请插入CA\")\r\n return\r\n } else {\r\n let certId = await new Promise((resolve) => {\r\n window.SOF_GetUserList(function (retObj) {\r\n resolve(retObj.retVal.split(\"&&&\")[0].split(\"||\")[1])\r\n })\r\n })\r\n // --------------执行ca登录接口开始\r\n var time_begin = new Date()\r\n let passwd = this.loginForm.password\r\n if (!certId || !passwd) {\r\n return\r\n }\r\n var platform = navigator.platform.toLowerCase()\r\n if (platform.indexOf(\"win\") != -1) {\r\n window.SOF_LoginEx(certId, passwd, 0, this.login_callback, {\r\n begin: time_begin,\r\n certId: certId,\r\n })\r\n } else {\r\n window.SOF_Login(certId, passwd, this.login_callback, {\r\n begin: time_begin,\r\n certId: certId,\r\n })\r\n }\r\n // --------------执行ca登录接口结束\r\n }\r\n },\r\n login_callback(retObj) {\r\n const that = this\r\n var certId = retObj.ctx.certId\r\n if (retObj.retVal) {\r\n // 登录成功对数据进行签名\r\n this.BJSignData()\r\n } else {\r\n //当登录失败时,调用SOF_GetLastError取错误码,errcode为79时表示pin码复杂度不符合\r\n window.SOF_GetLastError(function (retObj) {\r\n var err = retObj.retVal\r\n if (err == 79) {\r\n that.msgErr(\"请核对pin码复杂度是否符合要求\")\r\n }\r\n }, retObj.ctx)\r\n // 实际情况可能仅在登录失败时获取一下重试次数做个提醒\r\n window.SOF_GetPinRetryCount(\r\n certId,\r\n function (retObj) {\r\n var certId = retObj.ctx.certId\r\n that.msgErr(\r\n \"证书[\" + certId + \"]重试次数剩余:\" + retObj.retVal + \"次...\"\r\n )\r\n },\r\n retObj.ctx\r\n )\r\n }\r\n },\r\n async BJSignData() {\r\n let certId = await new Promise((resolve) => {\r\n window.SOF_GetUserList(function (retObj) {\r\n resolve(retObj.retVal.split(\"&&&\")[0].split(\"||\")[1])\r\n })\r\n })\r\n let rn = Math.random()\r\n this.form[\"rn\"] = rn\r\n window.SOF_SignData(certId, rn, this.signData_callback, {\r\n certId: certId,\r\n })\r\n // --------------登录成功对数据进行签名结束\r\n },\r\n async signData_callback(retObj) {\r\n if (retObj.retVal == \"\") {\r\n this.caInfo.error_text = \"数据签名失败\"\r\n this.caInfo.have_error_info = true\r\n this.dialogVisible.showInfo = true\r\n return\r\n }\r\n this.form[\"sign\"] = retObj.retVal\r\n // 签名成功获取其他信息后端登录接口所需信息-------\r\n var certId = retObj.ctx.certId\r\n // 导出用户证书\r\n let userCert = await new Promise((resolve) => {\r\n window.SOF_ExportUserCert(certId, function (retObj) {\r\n resolve(retObj.retVal)\r\n })\r\n })\r\n this.form[\"username\"] = userCert\r\n if (userCert) {\r\n var certInfoTypeArray = {\r\n caAddrProvince: { type: 16, label: \"使用者省州名ST\" }, //caAddr\r\n caAddrcity: { type: 18, label: \"使用者城市名L\" }, //caAddr\r\n caEffectiveDate: { type: 11, label: \"证书有效开始日期\" }, //caEffectiveDate\r\n caExpireDate: { type: 12, label: \"证书有效结束日期\" }, //caExpireDate\r\n caInfo: { type: 35, label: \"使用者DN项第2种格式\" }, //caInfo\r\n //caCode\r\n //username\r\n caSn: { type: 2, label: \"证书序列号\" }, //caSn\r\n caType: { type: 34, label: \"颁发者DN项第1种格式\" }, //caType\r\n }\r\n // 导出证书成功,解析证书基本项\r\n for (let key in certInfoTypeArray) {\r\n let certInfo = await new Promise((resolve) => {\r\n window.SOF_GetCertInfo(\r\n userCert,\r\n certInfoTypeArray[key].type,\r\n function (retObj) {\r\n resolve(retObj)\r\n },\r\n { key: key }\r\n )\r\n })\r\n this.form[certInfo.ctx.key] = certInfo.retVal\r\n }\r\n let bindParams = {\r\n caSn: this.form[\"caSn\"],\r\n caInfo: this.form[\"caInfo\"],\r\n caAddr: this.form[\"caAddrProvince\"] + this.form[\"caAddrcity\"],\r\n caCode: this.form[\"caInfo\"]\r\n .split(\",\")\r\n .filter((v) => {\r\n return v.search(/^title=/i) != -1\r\n })[0]\r\n .replace(/title=/i, \"\"),\r\n username: this.form[\"caInfo\"]\r\n .split(\",\")\r\n .filter((v) => {\r\n return v.search(/^cn=/i) != -1\r\n })[0]\r\n .replace(/cn=/i, \"\"),\r\n caEffectiveDate: formateTime(this.form[\"caEffectiveDate\"]),\r\n caExpireDate: formateTime(this.form[\"caExpireDate\"]),\r\n // region: this.readForm.region,\r\n pass: this.loginForm.password,\r\n caType: \"北京ca\",\r\n sign: this.form.sign,\r\n rn: this.form.rn,\r\n cert: this.form.username,\r\n }\r\n this.form = bindParams\r\n this.loginForm = {\r\n cert: this.form.cert,\r\n sign: this.form.sign,\r\n rn: this.form.rn,\r\n caInfo: this.form.caInfo, //CA信息\r\n caAddr: this.form.caAddr, //设备归属地\r\n caCode: this.form.caCode, //证书代码\r\n caName: this.form.username, //证书名称\r\n caSn: this.form.caSn, //CA唯一码\r\n caEffectiveDate: this.form.caEffectiveDate, //生效时间\r\n caExpireDate: this.form.caExpireDate, //过期时间\r\n loginType: \"3\",\r\n username: this.form.username,\r\n }\r\n if (this.dialogVisible.showInfo == true) {\r\n this.loading = false\r\n } else if (this.loginForm.username != undefined) {\r\n this.$emit(\"caSuccess\", this.loginForm, () => {\r\n this.loading = false\r\n })\r\n } else {\r\n this.msgErr(\"请插入CA\")\r\n }\r\n }\r\n },\r\n handleClose(done) {\r\n this.$confirm(\"确认关闭?\")\r\n .then(() => {\r\n done()\r\n this.loading = false\r\n })\r\n .catch(() => {})\r\n },\r\n msgErr(msg) {\r\n this.loading = false\r\n this.$message.error(msg)\r\n },\r\n },\r\n}\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n::v-deep .el-input__prefix {\r\n display: flex;\r\n align-items: center;\r\n left: 1.04vw;\r\n}\r\n::v-deep .el-form-item__error {\r\n font-size: 0.04vw;\r\n}\r\n::v-deep .el-input__icon {\r\n color: #409eff;\r\n width: 0.98vw;\r\n height: 1.14vw;\r\n}\r\n::v-deep .el-input__inner {\r\n padding: 0 3.64vw;\r\n height: 2.81vw;\r\n font-size: 1.04vw;\r\n border: 0.1vw solid #409eff;\r\n}\r\n::v-deep .el-input .el-input__clear {\r\n font-size: 1.24vw;\r\n}\r\n::v-deep .el-input__suffix {\r\n right: 1.04vw;\r\n top: 0.46vw;\r\n}\r\n.el-form-item {\r\n margin-bottom: 1.2vw;\r\n margin-top: 1vw;\r\n}\r\n.ca-download-box {\r\n display: flex;\r\n justify-content: right;\r\n align-items: center;\r\n margin: 10px 0;\r\n .ca-download-text {\r\n color: #53a8ff;\r\n font-size: 14px;\r\n font-weight: 400;\r\n }\r\n .ca-download-img {\r\n width: 10px;\r\n height: 10px;\r\n background: url(\"comp/YcCA/images/ca-download.png\") no-repeat;\r\n background-size: 100% 100%;\r\n margin-left: 2px;\r\n }\r\n}\r\n.contentBox {\r\n width: 100%;\r\n height: 50px;\r\n margin-bottom: 15px;\r\n}\r\n.ca-bg-box {\r\n background-color: #ecf5ff;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n padding: 30px 70px;\r\n position: relative;\r\n -webkit-animation: fadeinout 1s linear forwards;\r\n animation: fadeinout 1s linear forwards;\r\n .ca-bg-img {\r\n width: 97px;\r\n height: 57px;\r\n background: url(\"comp/YcCA/images/ca-bg.png\") no-repeat;\r\n background-size: 100% 100%;\r\n }\r\n}\r\n@-webkit-keyframes fadeinout {\r\n 0% {\r\n opacity: 0;\r\n }\r\n 50% {\r\n opacity: 0.5;\r\n }\r\n 100% {\r\n opacity: 1;\r\n }\r\n}\r\n\r\n@keyframes fadeinout {\r\n 0% {\r\n opacity: 0;\r\n }\r\n 50% {\r\n opacity: 0.5;\r\n }\r\n 100% {\r\n opacity: 1;\r\n }\r\n}\r\n.ca-bg-info {\r\n display: flex;\r\n padding: 40px 70px 40px 25px;\r\n position: relative;\r\n background: url(\"comp/YcCA/images/caBg.png\") no-repeat;\r\n background-size: 100% 100%;\r\n -webkit-animation: fadeinout 1s linear forwards;\r\n animation: fadeinout 1s linear forwards;\r\n}\r\n.ca-bg-text {\r\n margin-left: 15px;\r\n font-size: 18px;\r\n font-weight: 500;\r\n color: #53a8ff;\r\n}\r\n.caName {\r\n margin-left: 10px;\r\n color: #303133;\r\n}\r\n.ca-refresh {\r\n position: absolute;\r\n top: 6px;\r\n right: 8px;\r\n width: 25px;\r\n height: 25px;\r\n}\r\n.login-btn {\r\n height: 2.81vw;\r\n font-size: 1.04vw;\r\n font-weight: bold;\r\n background: url(\"comp/YcCA/images/login-btn-bg.png\") no-repeat;\r\n background-size: 100% 100%;\r\n border: none;\r\n}\r\n</style>\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","// extracted by mini-css-extract-plugin\nexport {};","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!../../../node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!../../../node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=f0d3063c&prod&lang=scss&scoped=true&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=f0d3063c&scoped=true&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=f0d3063c&prod&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"f0d3063c\",\n null\n \n)\n\nexport default component.exports","import YcSlideVerify from 'comp/YcSlideVerify'\r\nimport YcCustomerService from 'comp/YcCustomerService'\r\nimport YcQuestion from 'comp/YcQuestion'\r\nimport YcCA from 'comp/YcCA'\r\n\r\n\r\nconst components = [\r\n YcSlideVerify,\r\n YcCustomerService,\r\n YcQuestion,\r\n YcCA\r\n]\r\n// 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册\r\nconst install = function (Vue) {\r\n // 遍历注册全局组件\r\n components.forEach(component => {\r\n Vue.component(component.name, component)\r\n })\r\n\r\n // 判断是否是直接引入文件,如果是,就不用调用 Vue.use()\r\n if (typeof window !== 'undefined' && window.Vue) {\r\n install(window.Vue)\r\n }\r\n}\r\n\r\n// 导出的对象必须具有 install,才能被 Vue.use() 方法安装\r\nexport default {\r\n install\r\n}\r\n","import './setPublicPath'\nimport mod from '~entry'\nexport default mod\nexport * from '~entry'\n"],"names":["xtxasyn","XTXAsynHashMap","map","prototype","put","key","value","get","hasOwnProperty","remove","removeAll","keySet","_keys","i","push","constructor","HashMap","initUtilObject","util","checkBrowserISIE","window","ActiveXObject","checkLocationIsHttps","document","location","protocol","evalFunction","func","cb","eval","consolelog","param","console","undefined","log","isEmpty","loadIECtl","clsid","ctlName","checkFunc","ctl","getElementById","loadObjString","write","e","getAutoExecFunctionString","ret","toString","attachIEEvent","eventName","eventFunc","toLowerCase","attachEvent","handler","createElement","setAttribute","eventScript","appendChild","createTextNode","getElementsByTagName","loadWebSocketCtl","wsUrl","wssUrl","wsObject","url","socket","wsMessageQueue","wsMessageQueueId","wsEventQueue","wsURL","wsCacheMessage","custom","defaultUsbkeyChange","WebSocket","onopen","evt","SOF_GetVersion","retVal","length","tb_send","shift","send","onclose","XTXAppWebSocket","onmessage","eventCmd","data","res","JSON","parse","cmdId","methodName","execFunc","messageQueue","method","ctx","returnType","Number","token","setToken","retObj","onerror","attachWebSocketEvent","callWebSocketMethod","argsArray","sendArray","href","arguments","strParam","getToken","readyState","OPEN","stringify","CONNECTING","SynToAsyn","initCustomActions","softCertListID","hardCertListID","allCertListID","loginCertID","logoutFunc","UsbkeyChangeFunc","loginToken","errorReportFunc","msg","alert","setAutoLogoutParameter","strCertID","clearDropList","dropListId","obj","n","pushOneDropListBox","userListArray","strListID","certObj","objItem","Option","certName","certID","options","add","pushUserListToAllDroplist","strUserList","allListArray","indexOf","strOneUser","substring","strName","GetDeviceInfo","len","setUserCertList","certListId","certType","CERT_TYPE_ALL","CERT_TYPE_HARD","CERT_TYPE_SOFT","SOF_GetUserList","setOnUsbKeyChangeCallBack","callback","setErrorReportFunc","errFunc","autoLogoutCallBack","initXTXAppCOM","XTXAppCOM","xtx_clsid","GetPicObj","getpic_clsid","GetPic","Hash","inData","ConvertPicFormat","type","ConvertGif2Jpg","GetPic1","ConvertPicSize","strPicture","w","h","XTXVersionOBJ","xtx_version_clsid","GetEnvVersion","initXTXAppWebSocket","initXTXAppObject","getImplmentFunction","methodInfo","inParams","funcName","Function","outParamType","export_functions","aliasName","SetAutoLogoutParameter","SetUserCertList","SetOnUsbKeyChangeCallBack","SetAlertFunction","custom_alert","GetLoginToken","SetLoginToken","tokenData","GetUserListByType","strType","GetDeviceType","userList","GetUserList_USBKey","GetUserList_Soft","SignByP7","strInData","bDetach","SOF_SignMessage","GetSymKeyLength","HashFile","strFilePath","SOF_HashFile","ParseDateString","strDate","strYear","strMonth","strDay","strHour","strMin","strSecond","RtnDate","Date","setFullYear","setHours","setMinutes","setSeconds","__loginSignRandomCallBack","objForm","UserSignedData","LoginToken","action","submit","__loginVerifyServerSignatureCallBack","SOF_SignData","strServerRan","__loginCheckCertValidNotAfter","notAfterDate","milliseconds","getTime","days","parseInt","hours","minutes","SOF_VerifySignedData","strServerCert","strServerSignedData","__loginCheckCertValidNotBefore","notBeforeDate","strUserCert","UserCert","SOF_GetCertInfo","__loginGetSignCertCallBack","__loginGetPINRetryCallBack","retryCount","__loginVerifyPINCallBack","SOF_GetPinRetryCount","CertID","ContainerName","SOF_ExportUserCert","Login","formName","strPin","strAction","custom_cb","insertAdjacentHTML","SOF_Login","split","undef","nativeSplit","String","compliantExecNpcg","exec","self","str","separator","limit","Object","call","output","flags","ignoreCase","multiline","extended","sticky","lastLastIndex","RegExp","source","separator2","match","lastIndex","lastLength","index","slice","replace","Array","apply","test","mToken","SAR_OK","SAR_FALSE","SGD_SM1_ECB","SGD_SM1_CBC","SGD_SM1_CFB","SGD_SM1_OFB","SGD_SM1_MAC","SGD_SSF33_ECB","SGD_SSF33_CBC","SGD_SSF33_CFB","SGD_SSF33_OFB","SGD_SSF33_MAC","SGD_SM4_ECB","SGD_SM4_CBC","SGD_SM4_CFB","SGD_SM4_OFB","SGD_SM4_MAC","SGD_VENDOR_DEFINED","SGD_DES_ECB","SGD_DES_CBC","SGD_3DES168_ECB","SGD_3DES168_CBC","SGD_3DES112_ECB","SGD_3DES112_CBC","SGD_AES128_ECB","SGD_AES128_CBC","SGD_AES192_ECB","SGD_AES192_CBC","SGD_AES256_ECB","SGD_AES256_CBC","SGD_RSA","SGD_SM2_1","SGD_SM2_2","SGD_SM2_3","SGD_SM3","SGD_SHA1","SGD_SHA256","SGD_RAW","SGD_MD5","SGD_SHA384","SGD_SHA512","SGD_CERT_VERSION","SGD_CERT_SERIAL","SGD_CERT_ISSUE","SGD_CERT_VALID_TIME","SGD_CERT_SUBJECT","SGD_CERT_DER_PUBLIC_KEY","SGD_CERT_DER_EXTENSIONS","SGD_CERT_NOT_BEFORE","SGD_CERT_ISSUER_CN","SGD_CERT_ISSUER_O","SGD_CERT_ISSUER_OU","SGD_CERT_ISSUER_C","SGD_CERT_ISSUER_P","SGD_CERT_ISSUER_L","SGD_CERT_ISSUER_S","SGD_CERT_ISSUER_EMAIL","SGD_CERT_SUBJECT_CN","SGD_CERT_SUBJECT_O","SGD_CERT_SUBJECT_OU","SGD_CERT_SUBJECT_EMALL","SGD_REMAIN_TIME","SGD_SIGNATURE_ALG","SGD_CERT_SUBJECT_C","SGD_CERT_SUBJECT_P","SGD_CERT_SUBJECT_L","SGD_CERT_SUBJECT_S","SGD_CERT_CRL","SGD_DEVICE_SORT","SGD_DEVICE_TYPE","SGD_DEVICE_NAME","SGD_DEVICE_MANUFACTURER","SGD_DEVICE_HARDWARE_VERSION","SGD_DEVICE_SOFTWARE_VERSION","SGD_DEVICE_STANDARD_VERSION","SGD_DEVICE_SERIAL_NUMBER","SGD_DEVICE_SUPPORT_SYM_ALG","SGD_DEVICE_SUPPORT_ASYM_ALG","SGD_DEVICE_SUPPORT_HASH_ALG","SGD_DEVICE_SUPPORT_STORANGE_SPACE","SGD_DEVICE_SUPPORT_FREE_SAPCE","SGD_DEVICE_RUNTIME","SGD_DEVICE_USED_TIMES","SGD_DEVICE_LOCATION","SGD_DEVICE_DESCRIPTION","SGD_DEVICE_MANAGER_INFO","SGD_DEVICE_MAX_DATA_SIZE","TRUE","FALSE","GM3000","K5","TF","HT","SJK1137","TYPE_UKEY","TYPE_FPKEY","g_mTokenPlugin","SOF_GetLastError","isIe","isMobile","browser","versions","u","navigator","userAgent","app","appVersion","trident","presto","webKit","gecko","mobile","ios","android","iPhone","iPad","webApp","language","browserLanguage","SOF_LoadLibrary","os","check_os","mTokenPlugin","SOF_EnumDevice","array","SOF_GetDeviceInstance","DeviceName","ApplicationName","SOF_ReleaseDeviceInstance","list","user","KeySpec","SOF_GetDeviceInfo","Type","Base64EncodeCert","SOF_GetCertInfoByOid","OID","PassWd","SOF_LogOut","SOF_ChangePassWd","OldPassWd","NewPassWd","SOF_SetDigestMethod","DigestMethod","SOF_SetUserID","UserID","SOF_SetEncryptMethodAndIV","EncryptMethod","EncryptIV","SOF_EncryptFileToPKCS7","Cert","InFile","OutFile","SOF_SignFileToPKCS7","SOF_VerifyFileToPKCS7","strPkcs7Data","InFilePath","SOF_DecryptFileToPKCS7","keySpec","Pkcs7Data","SOF_DigestData","nData","InDataLen","ulKeySpec","InData","SOF_SignDataInteractive","SOF_SignDataToPKCS7","ulDetached","SOF_VerifyDataToPKCS7","SignedValue","digestMethod","SOF_EncryptDataPKCS7","SOF_DecryptDataPKCS7","SOF_GenRemoteUnblockRequest","SOF_GenResetpwdResponse","request","soPin","userPin","SOF_RemoteUnblockPIN","OriginalText","SOF_ExportPubKey","containerName","cerType","expType","SOF_EncryptByPubKey","strPubKey","strInput","SOF_DecryptByPrvKey","strAsymCipher","SOF_GenerateP10Request","deviceName","container","dn","asymAlg","keyLength","SOF_EnumCertContiner","SOF_FindContainer","certSN","SOF_DeleteCert","SOF_DeleteContainer","SOF_SignByCert","plain","SOF_VerifyByCert","signature","SOF_ImportCert","cert","SOF_ImportCryptoCertAndKey","nAsymAlg","EncryptedSessionKeyData","symAlg","EncryptedPrivateKeyData","mode","SOF_VerifyByExtCert","SOF_GenerateRandom","SOF_SymEncryptFile","sessionKey","srcfile","destfile","SOF_SymDecryptFile","SOF_SymEncryptData","SOF_SymDecryptData","SOF_GenerateQRCode","qrcode_text","SOF_VerifyPinMS","responseKey","SOF_GetHardwareType","SOF_VerifyFingerprint","SOF_EnumFiles","SOF_ReadFile","fileName","offset","SOF_WriteFile","SOF_CreateFile","readRight","writeRight","SOF_DeleteFile","hasPlugin","name","plugins","windows","mac","linux","unix","os_type","linuxWin","_xmlhttp","retJSON","AjaxIO","json_in","router","json","invoke","_curDevName","_url","XMLHttpRequest","open","setRequestHeader","GetHttpResult","status","responseText","errorCode","rtn","version","info","envelopData","signed","digest","InDataBase64","encrypedData","decryptedData","pkcs7","pubKey","asymCipher","asymPlain","SOF_CreateKeyPair","outData","qrcode_text_in","SocketConnect","HostName","Port","SocketDisConnect","SocketSendText","SendText","RecvText","render","_vm","_c","_self","attrs","title","isShow","on","handleClose","ref","imgs","accuracy","sliderText","onSuccess","onFail","onAgain","onRefresh","onFulfilled","staticRenderFns","props","default","Boolean","countDownNum","computed","watch","newVal","$refs","slideblock","reset","created","methods","$emit","staticStyle","visible","jumpPage","regular","update:visible","$event","staticClass","_t","click","_m","_v","directives","rawName","expression","_s","enlarge","_e","close","_l","messagelist","item","class","id","domProps","regularClick","based","handExpand","isActive","minRows","maxRows","nativeOn","keyup","_k","keyCode","carriageReturn","model","textareaValue","$$v","commit","questions","event","code","search","filter","faq","includes","vlaue","reduce","prev","curr","fun","isArray","$nextTick","main","scrollTop","scrollHeight","chatMixin","mixins","chatVue","components","hasSlot","$slots","$route","to","path","customer","style","display","mounted","currData","preventDefault","activeNames","questionsList","slot","getHours","getMinutes","loginForm","loginRules","username","require","caRead","handleLogin","password","$set","loading","dialogVisible","showInfo","caInfo","error_text","_keyStr","_Base64encode","input","chr1","chr2","chr3","enc1","enc2","enc3","enc4","_utf8_encode","charCodeAt","isNaN","charAt","_Base64decode","fromCharCode","_utf8_decode","in_string","string","utftext","c","c1","c2","c3","hunca_mToken_core","certInfoList","singleKey","libraryNameList","platform","LAST_ERRORSTRING","KEY_SPEC_TYPE_ENCRYPT","KEY_SPEC_TYPE_SIGN","USER_ID","ERROR_MESSAGE_NOT_LOADLIBRARY","ERROR_MESSAGE_NOT_FIND_UKEY","ERROR_MSSSAGE_FIND_MORE_UKEY","ERROR_MESSAGE_NOT_INSTANCE_DEVICE","ERROR_MESSAGE_USERPIN_LENGTH","ERROR_MESSAGE_USERPIN_IS_ERROR","ERROR_MESSAGE_USERPIN_CHANGE_ERROR","ERROR_MESSAGE_KEY_NOT_EXIT","ERROR_MESSAGE_USERNAME_IS_NULL","ERROR_MESSAGE_KEY_EXPORT_CERT","ERROR_MESSAGE_SET_DIGEST_METHOD_ERROR","ERROR_MESSAGE_SET_USERID_ERROR","ERROR_MESSAGE_SIGN_ORIGINALDATA_IS_NULL","ERROR_MESSAGE_SIGN_ERROR","ERROR_MESSAGE_USERNAMEGN_IS_NULL","ERROR_MESSAGE_USERNAMEGN_TO_USERNAME_ERROR","ERROR_MESSAGE_KEY_LIBRAY","ERROR_MESSAGE_ENCRYPT_DATA_IS_NULL","ERROR_MESSAGE_DECRYPT_DATA_IS_NULL","ERROR_MESSAGE_DECRYPT_DATA_IS_ERROR","ERROR_MESSAGE_GET_REMOTEUNLOCKREQUEST_FAIL","ERROR_MESSAGE_GET_REMOTEUNLOCKREQUEST_NOT_SUPPORT","ERROR_MESSAGE_REMOTE_UNLOCK_FAIL","tokenInfoList","signResultSignData","signResultCert","certSn","cert_subject_GN","cert_subject","cert_validTime","cert_notbeforetime","Hunca_GetLastError","Hunca_GetUserList","deviceArray","userName","tmpInfo","libraryName","tokenInfo","serial","userNameList","Hunca_GetUserListGN","certB64","deviceSerial","subjectGN","userNameGNList","Hunca_userNameGNToUserName","userNameGN","Hunca_GenRemoteUnblockRequest","tempTokenInfo","HUnca_GetDeviceNumber","m_devNumber","SOF_GetDeviceNumber","Hunca_RemoteUnlockPIN","response","result","SOF_RemoteUnlockPIN","Hunca_ChangeUserPin","oldUserPin","newUserPin","SOF_ChangeUserPin","Hunca_PKCS1","originalData","certBase64","signResultInfo","certInfo","Hunca_GetSignData","Hunca_GetSignCert","Hunca_GetSignCertSn","Hunca_GetSignCertSubject","Hunca_GetValidTime","HUnca_GetNotBeforeTime","Hunca_DealCertInfo","Hunca_EncryptDataPKCS7","m_EncryptMethod","m_EncryptIV","encryptData","Hunca_DecryptDataPKCS7","m_EncryptData","m_DecryptData","resData","resultCode","deviceNameList","m_userPin","RetryCount","m_oldUserPin","m_newUserPin","deviceNumber","keySec","resCode","inDataBase64","m_inData","m_EncrypedData","signData","b64Data","m_data","subject","tmpList","validTime","notBeforetime","hexToDec","x","y","base","z","Math","max","carry","xi","yi","zi","floor","multiplyByNumber","num","power","parseToDigitsArray","digits","ary","convertBase","fromBase","toBase","outArray","out","decToHex","decStr","hex","hexStr","formateTime","dateStr","year","month","date","minute","second","region","form","have_error_info","uuid","ca","required","trigger","message","isBJCA","caReadBeijin","tempName","Promise","resolve","caLogin","flag","HNCALogin","$message","tempuserName","rn","random","ca_cert","sign","cert_notBeforeTime","tempinfo","tempinfo1","forEach","caAddr","ST","OU","caCode","TITLE","caName","GN","caSn","caEffectiveDate","caExpireDate","loginType","validate","valid","BJCALogin","msgErr","certId","time_begin","passwd","SOF_LoginEx","login_callback","begin","that","BJSignData","err","signData_callback","userCert","certInfoTypeArray","caAddrProvince","label","caAddrcity","caType","bindParams","v","pass","done","$confirm","then","catch","error","YcSlideVerify","YcCustomerService","YcQuestion","YcCA","install","Vue","component"],"sourceRoot":""}