webcc-key 1.0.14 → 1.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see webcckey.min.js.LICENSE.txt */
2
- (()=>{"use strict";var t={124:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){}return t.safeAdd=function(t,e){var r=(65535&t)+(65535&e);return(t>>>16)+(e>>>16)+(r>>>16)<<16|65535&r},t.bitRotateLeft=function(t,e){return t<<e|t>>>32-e},t.md5cmn=function(e,r,n,o,i,a){return t.safeAdd(t.bitRotateLeft(t.safeAdd(t.safeAdd(r,e),t.safeAdd(o,a)),i),n)},t.md5ff=function(e,r,n,o,i,a,f){return t.md5cmn(r&n|~r&o,e,r,i,a,f)},t.md5gg=function(e,r,n,o,i,a,f){return t.md5cmn(r&o|n&~o,e,r,i,a,f)},t.md5hh=function(e,r,n,o,i,a,f){return t.md5cmn(r^n^o,e,r,i,a,f)},t.md5ii=function(e,r,n,o,i,a,f){return t.md5cmn(n^(r|~o),e,r,i,a,f)},t.binlMD5=function(e,r){var n,o,i,a,f;e[r>>5]|=128<<r%32,e[14+(r+64>>>9<<4)]=r;var u=1732584193,c=-271733879,l=-1732584194,d=271733878;for(n=0;n<e.length;n+=16)o=u,i=c,a=l,f=d,u=t.md5ff(u,c,l,d,e[n],7,-680876936),d=t.md5ff(d,u,c,l,e[n+1],12,-389564586),l=t.md5ff(l,d,u,c,e[n+2],17,606105819),c=t.md5ff(c,l,d,u,e[n+3],22,-1044525330),u=t.md5ff(u,c,l,d,e[n+4],7,-176418897),d=t.md5ff(d,u,c,l,e[n+5],12,1200080426),l=t.md5ff(l,d,u,c,e[n+6],17,-1473231341),c=t.md5ff(c,l,d,u,e[n+7],22,-45705983),u=t.md5ff(u,c,l,d,e[n+8],7,1770035416),d=t.md5ff(d,u,c,l,e[n+9],12,-1958414417),l=t.md5ff(l,d,u,c,e[n+10],17,-42063),c=t.md5ff(c,l,d,u,e[n+11],22,-1990404162),u=t.md5ff(u,c,l,d,e[n+12],7,1804603682),d=t.md5ff(d,u,c,l,e[n+13],12,-40341101),l=t.md5ff(l,d,u,c,e[n+14],17,-1502002290),c=t.md5ff(c,l,d,u,e[n+15],22,1236535329),u=t.md5gg(u,c,l,d,e[n+1],5,-165796510),d=t.md5gg(d,u,c,l,e[n+6],9,-1069501632),l=t.md5gg(l,d,u,c,e[n+11],14,643717713),c=t.md5gg(c,l,d,u,e[n],20,-373897302),u=t.md5gg(u,c,l,d,e[n+5],5,-701558691),d=t.md5gg(d,u,c,l,e[n+10],9,38016083),l=t.md5gg(l,d,u,c,e[n+15],14,-660478335),c=t.md5gg(c,l,d,u,e[n+4],20,-405537848),u=t.md5gg(u,c,l,d,e[n+9],5,568446438),d=t.md5gg(d,u,c,l,e[n+14],9,-1019803690),l=t.md5gg(l,d,u,c,e[n+3],14,-187363961),c=t.md5gg(c,l,d,u,e[n+8],20,1163531501),u=t.md5gg(u,c,l,d,e[n+13],5,-1444681467),d=t.md5gg(d,u,c,l,e[n+2],9,-51403784),l=t.md5gg(l,d,u,c,e[n+7],14,1735328473),c=t.md5gg(c,l,d,u,e[n+12],20,-1926607734),u=t.md5hh(u,c,l,d,e[n+5],4,-378558),d=t.md5hh(d,u,c,l,e[n+8],11,-2022574463),l=t.md5hh(l,d,u,c,e[n+11],16,1839030562),c=t.md5hh(c,l,d,u,e[n+14],23,-35309556),u=t.md5hh(u,c,l,d,e[n+1],4,-1530992060),d=t.md5hh(d,u,c,l,e[n+4],11,1272893353),l=t.md5hh(l,d,u,c,e[n+7],16,-155497632),c=t.md5hh(c,l,d,u,e[n+10],23,-1094730640),u=t.md5hh(u,c,l,d,e[n+13],4,681279174),d=t.md5hh(d,u,c,l,e[n],11,-358537222),l=t.md5hh(l,d,u,c,e[n+3],16,-722521979),c=t.md5hh(c,l,d,u,e[n+6],23,76029189),u=t.md5hh(u,c,l,d,e[n+9],4,-640364487),d=t.md5hh(d,u,c,l,e[n+12],11,-421815835),l=t.md5hh(l,d,u,c,e[n+15],16,530742520),c=t.md5hh(c,l,d,u,e[n+2],23,-995338651),u=t.md5ii(u,c,l,d,e[n],6,-198630844),d=t.md5ii(d,u,c,l,e[n+7],10,1126891415),l=t.md5ii(l,d,u,c,e[n+14],15,-1416354905),c=t.md5ii(c,l,d,u,e[n+5],21,-57434055),u=t.md5ii(u,c,l,d,e[n+12],6,1700485571),d=t.md5ii(d,u,c,l,e[n+3],10,-1894986606),l=t.md5ii(l,d,u,c,e[n+10],15,-1051523),c=t.md5ii(c,l,d,u,e[n+1],21,-2054922799),u=t.md5ii(u,c,l,d,e[n+8],6,1873313359),d=t.md5ii(d,u,c,l,e[n+15],10,-30611744),l=t.md5ii(l,d,u,c,e[n+6],15,-1560198380),c=t.md5ii(c,l,d,u,e[n+13],21,1309151649),u=t.md5ii(u,c,l,d,e[n+4],6,-145523070),d=t.md5ii(d,u,c,l,e[n+11],10,-1120210379),l=t.md5ii(l,d,u,c,e[n+2],15,718787259),c=t.md5ii(c,l,d,u,e[n+9],21,-343485551),u=t.safeAdd(u,o),c=t.safeAdd(c,i),l=t.safeAdd(l,a),d=t.safeAdd(d,f);return[u,c,l,d]},t.binl2rstr=function(t){var e,r="",n=32*t.length;for(e=0;e<n;e+=8)r+=String.fromCharCode(t[e>>5]>>>e%32&255);return r},t.rstr2binl=function(t){var e,r=[];for(r[(t.length>>2)-1]=void 0,e=0;e<r.length;e+=1)r[e]=0;var n=8*t.length;for(e=0;e<n;e+=8)r[e>>5]|=(255&t.charCodeAt(e/8))<<e%32;return r},t.rstrMD5=function(e){return t.binl2rstr(t.binlMD5(t.rstr2binl(e),8*e.length))},t.rstrHMACMD5=function(e,r){var n,o,i=t.rstr2binl(e),a=[],f=[];for(a[15]=f[15]=void 0,i.length>16&&(i=t.binlMD5(i,8*e.length)),n=0;n<16;n+=1)a[n]=909522486^i[n],f[n]=1549556828^i[n];return o=t.binlMD5(a.concat(t.rstr2binl(r)),512+8*r.length),t.binl2rstr(t.binlMD5(f.concat(o),640))},t.rstr2hex=function(t){var e,r,n="";for(r=0;r<t.length;r+=1)e=t.charCodeAt(r),n+="0123456789abcdef".charAt(e>>>4&15)+"0123456789abcdef".charAt(15&e);return n},t.str2rstrUTF8=function(t){return decodeURIComponent(encodeURIComponent(t))},t.rawMD5=function(e){return t.rstrMD5(t.str2rstrUTF8(e))},t.hexMD5=function(e){return t.rstr2hex(t.rawMD5(e))},t.rawHMACMD5=function(e,r){return t.rstrHMACMD5(t.str2rstrUTF8(e),t.str2rstrUTF8(r))},t.hexHMACMD5=function(e,r){return t.rstr2hex(t.rawHMACMD5(e,r))},t.md5=function(e,r,n){return r?n?t.rawHMACMD5(r,e):t.hexHMACMD5(r,e):n?t.rawMD5(e):t.hexMD5(e)},t}();e.default=r},655:(t,e,r)=>{r.r(e),r.d(e,{__assign:()=>i,__asyncDelegator:()=>_,__asyncGenerator:()=>w,__asyncValues:()=>O,__await:()=>g,__awaiter:()=>l,__classPrivateFieldGet:()=>x,__classPrivateFieldSet:()=>A,__createBinding:()=>s,__decorate:()=>f,__exportStar:()=>h,__extends:()=>o,__generator:()=>d,__importDefault:()=>P,__importStar:()=>S,__makeTemplateObject:()=>j,__metadata:()=>c,__param:()=>u,__read:()=>m,__rest:()=>a,__spread:()=>y,__spreadArray:()=>v,__spreadArrays:()=>b,__values:()=>p});var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)};function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var i=function(){return(i=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function a(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}function f(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var f=t.length-1;f>=0;f--)(o=t[f])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}function u(t,e){return function(r,n){e(r,n,t)}}function c(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function l(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function f(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,f)}u((n=n.apply(t,e||[])).next())}))}function d(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:f(0),throw:f(1),return:f(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function f(i){return function(f){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,f])}}}var s=Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]};function h(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||s(e,t,r)}function p(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function y(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(m(arguments[e]));return t}function b(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;var n=Array(t),o=0;for(e=0;e<r;e++)for(var i=arguments[e],a=0,f=i.length;a<f;a++,o++)n[o]=i[a];return n}function v(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))}function g(t){return this instanceof g?(this.v=t,this):new g(t)}function w(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(t,e||[]),i=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(t){o[t]&&(n[t]=function(e){return new Promise((function(r,n){i.push([t,e,r,n])>1||f(t,e)}))})}function f(t,e){try{(r=o[t](e)).value instanceof g?Promise.resolve(r.value.v).then(u,c):l(i[0][2],r)}catch(t){l(i[0][3],t)}var r}function u(t){f("next",t)}function c(t){f("throw",t)}function l(t,e){t(e),i.shift(),i.length&&f(i[0][0],i[0][1])}}function _(t){var e,r;return e={},n("next"),n("throw",(function(t){throw t})),n("return"),e[Symbol.iterator]=function(){return this},e;function n(n,o){e[n]=t[n]?function(e){return(r=!r)?{value:g(t[n](e)),done:"return"===n}:o?o(e):e}:o}}function O(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,r=t[Symbol.asyncIterator];return r?r.call(t):(t=p(t),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(r){e[r]=t[r]&&function(e){return new Promise((function(n,o){(function(t,e,r,n){Promise.resolve(n).then((function(e){t({value:e,done:r})}),e)})(n,o,(e=t[r](e)).done,e.value)}))}}}function j(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var M=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};function S(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&s(e,t,r);return M(e,t),e}function P(t){return t&&t.__esModule?t:{default:t}}function x(t,e,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(t):n?n.value:e.get(t)}function A(t,e,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(t,r):o?o.value=r:e.set(t,r),r}}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n](i,i.exports,r),i.exports}r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{var t=n;Object.defineProperty(t,"__esModule",{value:!0}),t.Tkk=void 0;var e=r(655).__importDefault(r(124)),o=function(){function t(t){this.tk=t,this.data="ewoic2lnIjoiaWxvdmV5b3Utd2lreXdpbi0xOTg2MDQxMSIsCiJlMSI6InRva2VuIGludmFsaWQhIHBsZWFzZSBjb250YWN0IGF3ZXMud2hlbkBnbWFpbC5jb20iLAoiZTIiOiJ0b2tlbiBoYXNuJ3QgYmVlbiBzdGFydGVkIHlldCEiLAoiZTMiOiJ0b2tlbiBleHBpcmVkISBwbGVhc2UgY29udGFjdCBhd2VzLndoZW5AZ21haWwuY29tIiwKImU0IjoiaXMgbm90IGF1dGhvcml6ZWQgdG8geW91LCBwbGVhc2UgY29udGFjdCB3ZWJjYyBieSBhd2VzLndoZW5AZ21haWwuY29",""!==t&&(this.dec=this.pb(t))}return t.prototype.tv=function(){var t=this.pt;if(this.dec,!this.vs())throw new Error(t.e1);var e=this.dec;if(new Date<new Date(e.stm))throw new Error(t.e2);if(new Date>new Date(e.exp))throw new Error(t.e3)},Object.defineProperty(t.prototype,"mini",{get:function(){return this.dec.lite},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"e4",{get:function(){return this.pt.e4},enumerable:!1,configurable:!0}),t.prototype.pb=function(t){var e=t.split(".")[0].replace(/-/g,"+").replace(/_/g,"/"),r=decodeURIComponent(atob(e).split("").map((function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)})).join(""));return JSON.parse(r)},t.prototype.vs=function(){var t=this.tk.split("."),e=t[0];return t[1]===this.sg(e)},t.prototype.encode=function(t){var e=btoa(JSON.stringify(t));return e+"."+this.sg(e)},t.prototype.sg=function(t){var r=function(t){var e=t.split("").reverse(),r="";return e.forEach((function(t){var e=t.charCodeAt(0);e+=411,e*=e,e=46===(e=(e-=1986)%94+33)?47:e,r=""+r+String.fromCharCode(e)})),r},n=r(t),o=r(btoa(this.pt.sig));return e.default.md5(n+":"+o)},Object.defineProperty(t.prototype,"pt",{get:function(){return this.pb(this.data+"tIgp9.1")},enumerable:!1,configurable:!0}),t}();t.Tkk=o})();var o=exports;for(var i in n)o[i]=n[i];n.__esModule&&Object.defineProperty(o,"__esModule",{value:!0})})();
2
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.webcckey=e():t.webcckey=e()}(this,()=>(()=>{"use strict";var t={124:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){}return t.safeAdd=function(t,e){var r=(65535&t)+(65535&e);return(t>>>16)+(e>>>16)+(r>>>16)<<16|65535&r},t.bitRotateLeft=function(t,e){return t<<e|t>>>32-e},t.md5cmn=function(e,r,n,o,i,a){return t.safeAdd(t.bitRotateLeft(t.safeAdd(t.safeAdd(r,e),t.safeAdd(o,a)),i),n)},t.md5ff=function(e,r,n,o,i,a,f){return t.md5cmn(r&n|~r&o,e,r,i,a,f)},t.md5gg=function(e,r,n,o,i,a,f){return t.md5cmn(r&o|n&~o,e,r,i,a,f)},t.md5hh=function(e,r,n,o,i,a,f){return t.md5cmn(r^n^o,e,r,i,a,f)},t.md5ii=function(e,r,n,o,i,a,f){return t.md5cmn(n^(r|~o),e,r,i,a,f)},t.binlMD5=function(e,r){var n,o,i,a,f;e[r>>5]|=128<<r%32,e[14+(r+64>>>9<<4)]=r;var c=1732584193,u=-271733879,l=-1732584194,d=271733878;for(n=0;n<e.length;n+=16)o=c,i=u,a=l,f=d,c=t.md5ff(c,u,l,d,e[n],7,-680876936),d=t.md5ff(d,c,u,l,e[n+1],12,-389564586),l=t.md5ff(l,d,c,u,e[n+2],17,606105819),u=t.md5ff(u,l,d,c,e[n+3],22,-1044525330),c=t.md5ff(c,u,l,d,e[n+4],7,-176418897),d=t.md5ff(d,c,u,l,e[n+5],12,1200080426),l=t.md5ff(l,d,c,u,e[n+6],17,-1473231341),u=t.md5ff(u,l,d,c,e[n+7],22,-45705983),c=t.md5ff(c,u,l,d,e[n+8],7,1770035416),d=t.md5ff(d,c,u,l,e[n+9],12,-1958414417),l=t.md5ff(l,d,c,u,e[n+10],17,-42063),u=t.md5ff(u,l,d,c,e[n+11],22,-1990404162),c=t.md5ff(c,u,l,d,e[n+12],7,1804603682),d=t.md5ff(d,c,u,l,e[n+13],12,-40341101),l=t.md5ff(l,d,c,u,e[n+14],17,-1502002290),u=t.md5ff(u,l,d,c,e[n+15],22,1236535329),c=t.md5gg(c,u,l,d,e[n+1],5,-165796510),d=t.md5gg(d,c,u,l,e[n+6],9,-1069501632),l=t.md5gg(l,d,c,u,e[n+11],14,643717713),u=t.md5gg(u,l,d,c,e[n],20,-373897302),c=t.md5gg(c,u,l,d,e[n+5],5,-701558691),d=t.md5gg(d,c,u,l,e[n+10],9,38016083),l=t.md5gg(l,d,c,u,e[n+15],14,-660478335),u=t.md5gg(u,l,d,c,e[n+4],20,-405537848),c=t.md5gg(c,u,l,d,e[n+9],5,568446438),d=t.md5gg(d,c,u,l,e[n+14],9,-1019803690),l=t.md5gg(l,d,c,u,e[n+3],14,-187363961),u=t.md5gg(u,l,d,c,e[n+8],20,1163531501),c=t.md5gg(c,u,l,d,e[n+13],5,-1444681467),d=t.md5gg(d,c,u,l,e[n+2],9,-51403784),l=t.md5gg(l,d,c,u,e[n+7],14,1735328473),u=t.md5gg(u,l,d,c,e[n+12],20,-1926607734),c=t.md5hh(c,u,l,d,e[n+5],4,-378558),d=t.md5hh(d,c,u,l,e[n+8],11,-2022574463),l=t.md5hh(l,d,c,u,e[n+11],16,1839030562),u=t.md5hh(u,l,d,c,e[n+14],23,-35309556),c=t.md5hh(c,u,l,d,e[n+1],4,-1530992060),d=t.md5hh(d,c,u,l,e[n+4],11,1272893353),l=t.md5hh(l,d,c,u,e[n+7],16,-155497632),u=t.md5hh(u,l,d,c,e[n+10],23,-1094730640),c=t.md5hh(c,u,l,d,e[n+13],4,681279174),d=t.md5hh(d,c,u,l,e[n],11,-358537222),l=t.md5hh(l,d,c,u,e[n+3],16,-722521979),u=t.md5hh(u,l,d,c,e[n+6],23,76029189),c=t.md5hh(c,u,l,d,e[n+9],4,-640364487),d=t.md5hh(d,c,u,l,e[n+12],11,-421815835),l=t.md5hh(l,d,c,u,e[n+15],16,530742520),u=t.md5hh(u,l,d,c,e[n+2],23,-995338651),c=t.md5ii(c,u,l,d,e[n],6,-198630844),d=t.md5ii(d,c,u,l,e[n+7],10,1126891415),l=t.md5ii(l,d,c,u,e[n+14],15,-1416354905),u=t.md5ii(u,l,d,c,e[n+5],21,-57434055),c=t.md5ii(c,u,l,d,e[n+12],6,1700485571),d=t.md5ii(d,c,u,l,e[n+3],10,-1894986606),l=t.md5ii(l,d,c,u,e[n+10],15,-1051523),u=t.md5ii(u,l,d,c,e[n+1],21,-2054922799),c=t.md5ii(c,u,l,d,e[n+8],6,1873313359),d=t.md5ii(d,c,u,l,e[n+15],10,-30611744),l=t.md5ii(l,d,c,u,e[n+6],15,-1560198380),u=t.md5ii(u,l,d,c,e[n+13],21,1309151649),c=t.md5ii(c,u,l,d,e[n+4],6,-145523070),d=t.md5ii(d,c,u,l,e[n+11],10,-1120210379),l=t.md5ii(l,d,c,u,e[n+2],15,718787259),u=t.md5ii(u,l,d,c,e[n+9],21,-343485551),c=t.safeAdd(c,o),u=t.safeAdd(u,i),l=t.safeAdd(l,a),d=t.safeAdd(d,f);return[c,u,l,d]},t.binl2rstr=function(t){var e,r="",n=32*t.length;for(e=0;e<n;e+=8)r+=String.fromCharCode(t[e>>5]>>>e%32&255);return r},t.rstr2binl=function(t){var e,r=[];for(r[(t.length>>2)-1]=void 0,e=0;e<r.length;e+=1)r[e]=0;var n=8*t.length;for(e=0;e<n;e+=8)r[e>>5]|=(255&t.charCodeAt(e/8))<<e%32;return r},t.rstrMD5=function(e){return t.binl2rstr(t.binlMD5(t.rstr2binl(e),8*e.length))},t.rstrHMACMD5=function(e,r){var n,o,i=t.rstr2binl(e),a=[],f=[];for(a[15]=f[15]=void 0,i.length>16&&(i=t.binlMD5(i,8*e.length)),n=0;n<16;n+=1)a[n]=909522486^i[n],f[n]=1549556828^i[n];return o=t.binlMD5(a.concat(t.rstr2binl(r)),512+8*r.length),t.binl2rstr(t.binlMD5(f.concat(o),640))},t.rstr2hex=function(t){var e,r,n="";for(r=0;r<t.length;r+=1)e=t.charCodeAt(r),n+="0123456789abcdef".charAt(e>>>4&15)+"0123456789abcdef".charAt(15&e);return n},t.str2rstrUTF8=function(t){return decodeURIComponent(encodeURIComponent(t))},t.rawMD5=function(e){return t.rstrMD5(t.str2rstrUTF8(e))},t.hexMD5=function(e){return t.rstr2hex(t.rawMD5(e))},t.rawHMACMD5=function(e,r){return t.rstrHMACMD5(t.str2rstrUTF8(e),t.str2rstrUTF8(r))},t.hexHMACMD5=function(e,r){return t.rstr2hex(t.rawHMACMD5(e,r))},t.md5=function(e,r,n){return r?n?t.rawHMACMD5(r,e):t.hexHMACMD5(r,e):n?t.rawMD5(e):t.hexMD5(e)},t}();e.default=r},655:(t,e,r)=>{r.r(e),r.d(e,{__assign:()=>i,__asyncDelegator:()=>_,__asyncGenerator:()=>w,__asyncValues:()=>O,__await:()=>v,__awaiter:()=>l,__classPrivateFieldGet:()=>A,__classPrivateFieldSet:()=>P,__createBinding:()=>s,__decorate:()=>f,__exportStar:()=>h,__extends:()=>o,__generator:()=>d,__importDefault:()=>x,__importStar:()=>S,__makeTemplateObject:()=>j,__metadata:()=>u,__param:()=>c,__read:()=>m,__rest:()=>a,__spread:()=>y,__spreadArray:()=>g,__spreadArrays:()=>b,__values:()=>p});var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)};function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var i=function(){return(i=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function a(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}function f(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var f=t.length-1;f>=0;f--)(o=t[f])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}function c(t,e){return function(r,n){e(r,n,t)}}function u(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function l(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{c(n.next(t))}catch(t){i(t)}}function f(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,f)}c((n=n.apply(t,e||[])).next())}))}function d(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:f(0),throw:f(1),return:f(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function f(i){return function(f){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,f])}}}var s=Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]};function h(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||s(e,t,r)}function p(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function y(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(m(arguments[e]));return t}function b(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;var n=Array(t),o=0;for(e=0;e<r;e++)for(var i=arguments[e],a=0,f=i.length;a<f;a++,o++)n[o]=i[a];return n}function g(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))}function v(t){return this instanceof v?(this.v=t,this):new v(t)}function w(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(t,e||[]),i=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(t){o[t]&&(n[t]=function(e){return new Promise((function(r,n){i.push([t,e,r,n])>1||f(t,e)}))})}function f(t,e){try{(r=o[t](e)).value instanceof v?Promise.resolve(r.value.v).then(c,u):l(i[0][2],r)}catch(t){l(i[0][3],t)}var r}function c(t){f("next",t)}function u(t){f("throw",t)}function l(t,e){t(e),i.shift(),i.length&&f(i[0][0],i[0][1])}}function _(t){var e,r;return e={},n("next"),n("throw",(function(t){throw t})),n("return"),e[Symbol.iterator]=function(){return this},e;function n(n,o){e[n]=t[n]?function(e){return(r=!r)?{value:v(t[n](e)),done:"return"===n}:o?o(e):e}:o}}function O(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,r=t[Symbol.asyncIterator];return r?r.call(t):(t=p(t),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(r){e[r]=t[r]&&function(e){return new Promise((function(n,o){(function(t,e,r,n){Promise.resolve(n).then((function(e){t({value:e,done:r})}),e)})(n,o,(e=t[r](e)).done,e.value)}))}}}function j(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var M=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};function S(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&s(e,t,r);return M(e,t),e}function x(t){return t&&t.__esModule?t:{default:t}}function A(t,e,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(t):n?n.value:e.get(t)}function P(t,e,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(t,r):o?o.value=r:e.set(t,r),r}}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n](i,i.exports,r),i.exports}r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n,o={};return n=r(655).__importDefault(r(124)),function(){function t(t){this.tk=t,this.data="ewoic2lnIjoiaWxvdmV5b3Utd2lreXdpbi0xOTg2MDQxMSIsCiJlMSI6InRva2VuIGludmFsaWQhIHBsZWFzZSBjb250YWN0IGF3ZXMud2hlbkBnbWFpbC5jb20iLAoiZTIiOiJ0b2tlbiBoYXNuJ3QgYmVlbiBzdGFydGVkIHlldCEiLAoiZTMiOiJ0b2tlbiBleHBpcmVkISBwbGVhc2UgY29udGFjdCBhd2VzLndoZW5AZ21haWwuY29tIiwKImU0IjoiaXMgbm90IGF1dGhvcml6ZWQgdG8geW91LCBwbGVhc2UgY29udGFjdCB3ZWJjYyBieSBhd2VzLndoZW5AZ21haWwuY29",""!==t&&(this.dec=this.pb(t))}t.prototype.tv=function(){var t=this.pt;if(this.dec,!this.vs())throw new Error(t.e1);var e=this.dec;if(new Date<new Date(e.stm))throw new Error(t.e2);if(new Date>new Date(e.exp))throw new Error(t.e3)},Object.defineProperty(t.prototype,"mini",{get:function(){return this.dec.lite},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"e4",{get:function(){return this.pt.e4},enumerable:!1,configurable:!0}),t.prototype.pb=function(t){var e=t.split(".")[0].replace(/-/g,"+").replace(/_/g,"/"),r=decodeURIComponent(atob(e).split("").map((function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)})).join(""));return JSON.parse(r)},t.prototype.vs=function(){var t=this.tk.split("."),e=t[0];return t[1]===this.sg(e)},t.prototype.encode=function(t){var e=btoa(JSON.stringify(t));return e+"."+this.sg(e)},t.prototype.sg=function(t){var e=function(t){var e=t.split("").reverse(),r="";return e.forEach((function(t){var e=t.charCodeAt(0);e+=411,e*=e,e=46==(e=(e-=1986)%94+33)?47:e,r=""+r+String.fromCharCode(e)})),r},r=e(t),o=e(btoa(this.pt.sig));return n.default.md5(r+":"+o)},Object.defineProperty(t.prototype,"pt",{get:function(){return this.pb(this.data+"tIgp9.1")},enumerable:!1,configurable:!0})}(),o=o.default})());
package/index.d.ts CHANGED
@@ -1,10 +1,9 @@
1
- declare namespace wkey {
2
- class Tkk{
1
+ declare class Tkk{
3
2
  constructor(token: string);
4
3
  tv(): void;
5
4
  get mini(): boolean;
6
5
  get e4(): string;
7
6
  }
8
- }
9
7
 
10
- export default wkey;
8
+ export { Tkk };
9
+ export default Tkk;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webcc-key",
3
- "version": "1.0.14",
3
+ "version": "1.0.16",
4
4
  "description": "",
5
5
  "main": "dist/webcckey.min.js",
6
6
  "scripts": {
@@ -29,8 +29,5 @@
29
29
  "webpack": "^5.88.2",
30
30
  "webpack-cli": "^4.10.0",
31
31
  "webpack-dev-server": "^4.15.1"
32
- },
33
- "dependencies": {
34
- "blueimp-md5": "^2.19.0"
35
32
  }
36
33
  }