Files
flux-web/jverification_web.js
2026-01-22 18:31:30 +08:00

55 lines
176 KiB
JavaScript
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

!function(n){var i={};function r(t){if(i[t])return i[t].exports;var e=i[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}r.m=n,r.c=i,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=18)}([function(t,e,n){var i,l,r,o,s,a,p,c,u,h,f,d,g;t.exports=(i=i||(l=Math,r=Object.create||function(){function n(){}return function(t){var e;return n.prototype=t,e=new n,n.prototype=null,e}}(),s=(o={}).lib={},a=s.Base={extend:function(t){var e=r(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),(e.init.prototype=e).$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},p=s.WordArray=a.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:4*t.length},toString:function(t){return(t||u).stringify(this)},concat:function(t){var e=this.words,n=t.words,i=this.sigBytes,r=t.sigBytes;if(this.clamp(),i%4)for(var o=0;o<r;o++){var s=n[o>>>2]>>>24-o%4*8&255;e[i+o>>>2]|=s<<24-(i+o)%4*8}else for(var o=0;o<r;o+=4)e[i+o>>>2]=n[o>>>2];return this.sigBytes+=r,this},clamp:function(){var t=this.words,e=this.sigBytes;t[e>>>2]&=4294967295<<32-e%4*8,t.length=l.ceil(e/4)},clone:function(){var t=a.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e,n=[],i=function(e){var e=e,n=987654321,i=4294967295;return function(){var t=((n=36969*(65535&n)+(n>>16)&i)<<16)+(e=18e3*(65535&e)+(e>>16)&i)&i;return t/=4294967296,(t+=.5)*(.5<l.random()?1:-1)}},r=0;r<t;r+=4){var o=i(4294967296*(e||l.random()));e=987654071*o(),n.push(4294967296*o()|0)}return new p.init(n,t)}}),c=o.enc={},u=c.Hex={stringify:function(t){for(var e=t.words,n=t.sigBytes,i=[],r=0;r<n;r++){var o=e[r>>>2]>>>24-r%4*8&255;i.push((o>>>4).toString(16)),i.push((15&o).toString(16))}return i.join("")},parse:function(t){for(var e=t.length,n=[],i=0;i<e;i+=2)n[i>>>3]|=parseInt(t.substr(i,2),16)<<24-i%8*4;return new p.init(n,e/2)}},h=c.Latin1={stringify:function(t){for(var e=t.words,n=t.sigBytes,i=[],r=0;r<n;r++){var o=e[r>>>2]>>>24-r%4*8&255;i.push(String.fromCharCode(o))}return i.join("")},parse:function(t){for(var e=t.length,n=[],i=0;i<e;i++)n[i>>>2]|=(255&t.charCodeAt(i))<<24-i%4*8;return new p.init(n,e)}},f=c.Utf8={stringify:function(t){try{return decodeURIComponent(escape(h.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return h.parse(unescape(encodeURIComponent(t)))}},d=s.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new p.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=f.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(t){var e=this._data,n=e.words,i=e.sigBytes,r=this.blockSize,o=4*r,s=i/o,a=(s=t?l.ceil(s):l.max((0|s)-this._minBufferSize,0))*r,c=l.min(4*a,i);if(a){for(var u=0;u<a;u+=r)this._doProcessBlock(n,u);var h=n.splice(0,a);e.sigBytes-=c}return new p.init(h,c)},clone:function(){var t=a.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),s.Hasher=d.extend({cfg:a.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){d.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){t&&this._append(t);var e=this._doFinalize();return e},blockSize:16,_createHelper:function(n){return function(t,e){return new n.init(e).finalize(t)}},_createHmacHelper:function(n){return function(t,e){return new g.HMAC.init(n,e).finalize(t)}}}),g=o.algo={},o),i)},function(t,e,n){var i,r,o,s,c,a,u,h,l,p,f,d,g,m,y,v,C,T,E,S,O,_,A;t.exports=(i=n(0),n(4),void(i.lib.Cipher||(o=(r=i).lib,s=o.Base,c=o.WordArray,a=o.BufferedBlockAlgorithm,(u=r.enc).Utf8,h=u.Base64,l=r.algo,p=l.EvpKDF,f=o.Cipher=a.extend({cfg:s.extend(),createEncryptor:function(t,e){return this.create(this._ENC_XFORM_MODE,t,e)},createDecryptor:function(t,e){return this.create(this._DEC_XFORM_MODE,t,e)},init:function(t,e,n){this.cfg=this.cfg.extend(n),this._xformMode=t,this._key=e,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(t){return this._append(t),this._process()},finalize:function(t){t&&this._append(t);var e=this._doFinalize();return e},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function r(t){return"string"==typeof t?A:S}return function(i){return{encrypt:function(t,e,n){return r(e).encrypt(i,t,e,n)},decrypt:function(t,e,n){return r(e).decrypt(i,t,e,n)}}}}()}),o.StreamCipher=f.extend({_doFinalize:function(){var t=this._process(!0);return t},blockSize:1}),d=r.mode={},g=o.BlockCipherMode=s.extend({createEncryptor:function(t,e){return this.Encryptor.create(t,e)},createDecryptor:function(t,e){return this.Decryptor.create(t,e)},init:function(t,e){this._cipher=t,this._iv=e}}),m=d.CBC=function(){var t=g.extend();function o(t,e,n){var i=this._iv;if(i){var r=i;this._iv=void 0}else var r=this._prevBlock;for(var o=0;o<n;o++)t[e+o]^=r[o]}return t.Encryptor=t.extend({processBlock:function(t,e){var n=this._cipher,i=n.blockSize;o.call(this,t,e,i),n.encryptBlock(t,e),this._prevBlock=t.slice(e,e+i)}}),t.Decryptor=t.extend({processBlock:function(t,e){var n=this._cipher,i=n.blockSize,r=t.slice(e,e+i);n.decryptBlock(t,e),o.call(this,t,e,i),this._prevBlock=r}}),t}(),y=r.pad={},v=y.Pkcs7={pad:function(t,e){for(var n=4*e,i=n-t.sigBytes%n,r=i<<24|i<<16|i<<8|i,o=[],s=0;s<i;s+=4)o.push(r);var a=c.create(o,i);t.concat(a)},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},o.BlockCipher=f.extend({cfg:f.cfg.extend({mode:m,padding:v}),reset:function(){f.reset.call(this);var t=this.cfg,e=t.iv,n=t.mode;if(this._xformMode==this._ENC_XFORM_MODE)var i=n.createEncryptor;else{var i=n.createDecryptor;this._minBufferSize=1}this._mode&&this._mode.__creator==i?this._mode.init(this,e&&e.words):(this._mode=i.call(n,this,e&&e.words),this._mode.__creator=i)},_doProcessBlock:function(t,e){this._mode.processBlock(t,e)},_doFinalize:function(){var t=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){t.pad(this._data,this.blockSize);var e=this._process(!0)}else{var e=this._process(!0);t.unpad(e)}return e},blockSize:4}),C=o.CipherParams=s.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}}),T=r.format={},E=T.OpenSSL={stringify:function(t){var e=t.ciphertext,n=t.salt;if(n)var i=c.create([1398893684,1701076831]).concat(n).concat(e);else var i=e;return i.toString(h)},parse:function(t){var e=h.parse(t),n=e.words;if(1398893684==n[0]&&1701076831==n[1]){var i=c.create(n.slice(2,4));n.splice(0,4),e.sigBytes-=16}return C.create({ciphertext:e,salt:i})}},S=o.SerializableCipher=s.extend({cfg:s.extend({format:E}),encrypt:function(t,e,n,i){i=this.cfg.extend(i);var r=t.createEncryptor(n,i),o=r.finalize(e),s=r.cfg;return C.create({ciphertext:o,key:n,iv:s.iv,algorithm:t,mode:s.mode,padding:s.padding,blockSize:t.blockSize,formatter:i.format})},decrypt:function(t,e,n,i){i=this.cfg.extend(i),e=this._parse(e,i.format);var r=t.createDecryptor(n,i).finalize(e.ciphertext);return r},_parse:function(t,e){return"string"==typeof t?e.parse(t,this):t}}),O=r.kdf={},_=O.OpenSSL={execute:function(t,e,n,i){i||(i=c.random(8));var r=p.create({keySize:e+n}).compute(t,i),o=c.create(r.words.slice(e),4*n);return r.sigBytes=4*e,C.create({key:r,iv:o,salt:i})}},A=o.PasswordBasedCipher=S.extend({cfg:S.cfg.extend({kdf:_}),encrypt:function(t,e,n,i){var r=(i=this.cfg.extend(i)).kdf.execute(n,t.keySize,t.ivSize);i.iv=r.iv;var o=S.encrypt.call(this,t,e,r.key,i);return o.mixIn(r),o},decrypt:function(t,e,n,i){i=this.cfg.extend(i),e=this._parse(e,i.format);var r=i.kdf.execute(n,t.keySize,t.ivSize,e.salt);i.iv=r.iv;var o=S.decrypt.call(this,t,e,r.key,i);return o}}))))},function(t,e,n){"use strict";(function(t){e.__esModule=!0,e.JGCons={SDK_VERSION:"5.3.1",LOG_TAG_PREFIX:"[JIGUANG-JVerification]",META_NAME:"referrer",META_CONTENT:"always",IFRAME_URL:"https://jverification.jiguang.cn",HTML_URL:"http://huminios.com",URL_SIGN_CU:"https://h5.verification.jiguang.cn/v1/open/sign/cu2",REQUEST:{URL_INIT:"https://h5.verification.jiguang.cn/v1/open/init",URL_SIGN_CM:"https://h5.verification.jiguang.cn/v1/open/sign/cm",URL_LOGIN_SIGN_CM:"https://h5.verification.jiguang.cn/v1/open/login/sign/cm",URL_SIGN_CT:"https://h5.verification.jiguang.cn/v1/open/sign/ct",URL_LOGIN_SIGN_CT:"https://h5.verification.jiguang.cn/v1/open/login/sign/ct",URL_SIGN_CU:"https://h5.verification.jiguang.cn/v1/open/sign/cu2",URL_SIGN_CU2:t.env.URL_SIGN_CU2,TIME_OUT:5e3,TOKEN:{TYPE:"verify",VERSION:1},LOGIN:{TYPE:"login",VERSION:1}},OPERATOR:{CM:"CM",CM_SUPPORT:!0,CM_YDRZ:"https://www.cmpassport.com/NumberAbility/jssdkVlm_yw/jssdk_v1.0.0.min.js",CM_LOGIN_SRC:"https://h5auth.cmpassport.com/h5/js/jssdk_auth_idaas/jssdk.min.js",CM_LOGIN_SEC_CSS:"https://h5auth.cmpassport.com/h5/js/jssdk_auth_idaas/css/ydrz-layer.css",CM_CHECK_SRC_TIME:500,CM_CHECK_SRC_COUNT:10,CU:"CU",CU_SUPPORT:!0,CU_CUAU:"https://opencloud.wostore.cn/authz/resource/js/jssdk/auth-ujssdk.min.js",CU_LOGIN_SRC:"https://opencloud.wostore.cn/h5netauth/h5login/singleton/h5auth1.min.js",CU_UI:{CU_LOGIN_LOGO:"https://opencloud.wostore.cn/h5netauth/resource/images/logo5.png",CU_APP_NAME:"应用"},CU_CHECK_SRC_TIME:500,CU_CHECK_SRC_COUNT:10,CT:"CT",CT_SUPPORT:!0,CT_LOGIN_SRC:"https://static.e.189.cn/open/login/js/wap/js-sdk/EAccountSDK-fjs-1.5.2.min.js",CT_CHECK_SRC_TIME:500,CT_CHECK_SRC_COUNT:10},CUSTOMUI:{appName:"应用名称",btnName:2,logo:"/image/logo.png",iframeLogo:"",iframeLogoPath:"",maskPhone:"",authPageType:0,isConcealLoginBtn:!1,loginBtnColor:"",loginTextColor:"",customPolicyLink1:["",""],customPolicyLink2:["",""],customPolicyLink3:["",""],customPolicyLinkColor:"",isDisplayOtherWayBtn:!1,customOtherWayText:"",customOtherWayTextColor:"",isOpenAuthOperationMonitor:!0}}}).call(this,n(14))},function(t,e,n){"use strict";e.__esModule=!0;var i=n(7);e.getRandomId=function(t){return Math.random().toString(36).substr(2,t||8)},e.isEmpty=function(t){return!t||0==t.length},e.log=function(t,e,n){n?i.Log.dd(e,t):i.Log.d(e,t)},e.isOnLine=function(){var t=!0;if(window.navigator){if("boolean"==typeof(t=window.navigator.onLine))return t;t=!0}return t},e.isWifi=function(){var t="",e=window.navigator.connection;return e&&(t=e.type),!!t&&"WIFI"==t.toUpperCase()},e.isDesktop=function(){return!/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent)},e.uuid=function(t,e){var n,i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),r=[];if(e=e||i.length,t)for(n=0;n<t;n++)r[n]=i[0|Math.random()*e];else{var o=void 0;for(r[8]=r[13]=r[18]=r[23]="-",r[14]="4",n=0;n<36;n++)r[n]||(o=0|16*Math.random(),r[n]=i[19==n?3&o|8:o])}return r.join("")},e.dateFormat=function(t,e){var n={"M+":t.getMonth()+1,"d+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds(),"q+":Math.floor((t.getMonth()+3)/3),"S+":t.getMilliseconds()};for(var i in/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length))),n)new RegExp("("+i+")").test(e)&&(e=e.replace(RegExp.$1,1==RegExp.$1.length?n[i]:((3==RegExp.$1.length&&"S+"==i?"000":"00")+n[i]).substr((""+n[i]).length)));return e},e.addScriptVar=function(t){var e=document.createTextNode(t);document.getElementsByClassName("script")[0].appendChild(e)},e.addScript=function(t){var e=document.getElementsByTagName("HEAD").item(0),n=document.createElement("script");n.type="text/javascript",n.src=t,e.appendChild(n)},e.addLink=function(t){var e=document.getElementsByTagName("HEAD").item(0),n=document.createElement("link");n.type="text/css",n.href=t,n.rel="stylesheet",e.appendChild(n)},e.base64ToHex=function(t){for(var e=function(t){var e,n,i,r,o,s,a,c=new Array,u=0,h=t;if(t=t.replace(/[^A-Za-z0-9\+\/\=]/g,""),h!=t&&alert("Warning! Characters outside Base64 range in input string ignored."),t.length%4)return alert("Error: Input length is not a multiple of 4 bytes."),"";for(var l=0;u<t.length;)r=p.indexOf(t.charAt(u++)),o=p.indexOf(t.charAt(u++)),s=p.indexOf(t.charAt(u++)),a=p.indexOf(t.charAt(u++)),e=r<<2|o>>4,n=(15&o)<<4|s>>2,i=(3&s)<<6|a,c[l++]=e,64!=s&&(c[l++]=n),64!=a&&(c[l++]=i);return c}(t),n="",i=0;i<e.length;i++)n=n+(e[i]<16?"0":"")+o(e[i]);return n};var r="0123456789ABCDEF";function o(t){for(var e=r.substr(15&t,1);15<t;)t>>=4,e=r.substr(15&t,1)+e;return e=e.toLowerCase()}var p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},function(t,e,n){var i,r,o,s,h,a,c,u;t.exports=(i=n(0),n(12),n(13),o=(r=i).lib,s=o.Base,h=o.WordArray,a=r.algo,c=a.MD5,u=a.EvpKDF=s.extend({cfg:s.extend({keySize:4,hasher:c,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var n=this.cfg,i=n.hasher.create(),r=h.create(),o=r.words,s=n.keySize,a=n.iterations;o.length<s;){c&&i.update(c);var c=i.update(t).finalize(e);i.reset();for(var u=1;u<a;u++)c=i.finalize(c),i.reset();r.concat(c)}return r.sigBytes=4*s,r}}),r.EvpKDF=function(t,e,n){return u.create(n).compute(t,e)},i.EvpKDF)},function(t,e,n){var i,r,c;t.exports=(i=n(0),c=(r=i).lib.WordArray,r.enc.Base64={stringify:function(t){var e=t.words,n=t.sigBytes,i=this._map;t.clamp();for(var r=[],o=0;o<n;o+=3)for(var s=(e[o>>>2]>>>24-o%4*8&255)<<16|(e[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|e[o+2>>>2]>>>24-(o+2)%4*8&255,a=0;a<4&&o+.75*a<n;a++)r.push(i.charAt(s>>>6*(3-a)&63));var c=i.charAt(64);if(c)for(;r.length%4;)r.push(c);return r.join("")},parse:function(t){var e=t.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var r=0;r<n.length;r++)i[n.charCodeAt(r)]=r}var o=n.charAt(64);if(o){var s=t.indexOf(o);-1!==s&&(e=s)}return function(t,e,n){for(var i=[],r=0,o=0;o<e;o++)if(o%4){var s=n[t.charCodeAt(o-1)]<<o%4*2,a=n[t.charCodeAt(o)]>>>6-o%4*2;i[r>>>2]|=(s|a)<<24-r%4*8,r++}return c.create(i,r)}(t,e,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},i.enc.Base64)},function(t,e,n){var s;t.exports=(s=n(0),function(h){var t=s,e=t.lib,n=e.WordArray,i=e.Hasher,r=t.algo,I=[];!function(){for(var t=0;t<64;t++)I[t]=4294967296*h.abs(h.sin(t+1))|0}();var o=r.MD5=i.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,e){for(var n=0;n<16;n++){var i=e+n,r=t[i];t[i]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}var o=this._hash.words,s=t[e+0],a=t[e+1],c=t[e+2],u=t[e+3],h=t[e+4],l=t[e+5],p=t[e+6],f=t[e+7],d=t[e+8],g=t[e+9],m=t[e+10],y=t[e+11],v=t[e+12],C=t[e+13],T=t[e+14],E=t[e+15],S=o[0],O=o[1],_=o[2],A=o[3];O=k(O=k(O=k(O=k(O=M(O=M(O=M(O=M(O=w(O=w(O=w(O=w(O=b(O=b(O=b(O=b(O,_=b(_,A=b(A,S=b(S,O,_,A,s,7,I[0]),O,_,a,12,I[1]),S,O,c,17,I[2]),A,S,u,22,I[3]),_=b(_,A=b(A,S=b(S,O,_,A,h,7,I[4]),O,_,l,12,I[5]),S,O,p,17,I[6]),A,S,f,22,I[7]),_=b(_,A=b(A,S=b(S,O,_,A,d,7,I[8]),O,_,g,12,I[9]),S,O,m,17,I[10]),A,S,y,22,I[11]),_=b(_,A=b(A,S=b(S,O,_,A,v,7,I[12]),O,_,C,12,I[13]),S,O,T,17,I[14]),A,S,E,22,I[15]),_=w(_,A=w(A,S=w(S,O,_,A,a,5,I[16]),O,_,p,9,I[17]),S,O,y,14,I[18]),A,S,s,20,I[19]),_=w(_,A=w(A,S=w(S,O,_,A,l,5,I[20]),O,_,m,9,I[21]),S,O,E,14,I[22]),A,S,h,20,I[23]),_=w(_,A=w(A,S=w(S,O,_,A,g,5,I[24]),O,_,T,9,I[25]),S,O,u,14,I[26]),A,S,d,20,I[27]),_=w(_,A=w(A,S=w(S,O,_,A,C,5,I[28]),O,_,c,9,I[29]),S,O,f,14,I[30]),A,S,v,20,I[31]),_=M(_,A=M(A,S=M(S,O,_,A,l,4,I[32]),O,_,d,11,I[33]),S,O,y,16,I[34]),A,S,T,23,I[35]),_=M(_,A=M(A,S=M(S,O,_,A,a,4,I[36]),O,_,h,11,I[37]),S,O,f,16,I[38]),A,S,m,23,I[39]),_=M(_,A=M(A,S=M(S,O,_,A,C,4,I[40]),O,_,s,11,I[41]),S,O,u,16,I[42]),A,S,p,23,I[43]),_=M(_,A=M(A,S=M(S,O,_,A,g,4,I[44]),O,_,v,11,I[45]),S,O,E,16,I[46]),A,S,c,23,I[47]),_=k(_,A=k(A,S=k(S,O,_,A,s,6,I[48]),O,_,f,10,I[49]),S,O,T,15,I[50]),A,S,l,21,I[51]),_=k(_,A=k(A,S=k(S,O,_,A,v,6,I[52]),O,_,u,10,I[53]),S,O,m,15,I[54]),A,S,a,21,I[55]),_=k(_,A=k(A,S=k(S,O,_,A,d,6,I[56]),O,_,E,10,I[57]),S,O,p,15,I[58]),A,S,C,21,I[59]),_=k(_,A=k(A,S=k(S,O,_,A,h,6,I[60]),O,_,y,10,I[61]),S,O,c,15,I[62]),A,S,g,21,I[63]),o[0]=o[0]+S|0,o[1]=o[1]+O|0,o[2]=o[2]+_|0,o[3]=o[3]+A|0},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;e[i>>>5]|=128<<24-i%32;var r=h.floor(n/4294967296),o=n;e[15+(i+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e[14+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),t.sigBytes=4*(e.length+1),this._process();for(var s=this._hash,a=s.words,c=0;c<4;c++){var u=a[c];a[c]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return s},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t}});function b(t,e,n,i,r,o,s){var a=t+(e&n|~e&i)+r+s;return(a<<o|a>>>32-o)+e}function w(t,e,n,i,r,o,s){var a=t+(e&i|n&~i)+r+s;return(a<<o|a>>>32-o)+e}function M(t,e,n,i,r,o,s){var a=t+(e^n^i)+r+s;return(a<<o|a>>>32-o)+e}function k(t,e,n,i,r,o,s){var a=t+(n^(e|~i))+r+s;return(a<<o|a>>>32-o)+e}t.MD5=i._createHelper(o),t.HmacMD5=i._createHmacHelper(o)}(Math),s.MD5)},function(t,e,n){"use strict";e.__esModule=!0;var i,r,o,s=n(2);i=e.Log||(e.Log={}),r=!1,o=s.JGCons.LOG_TAG_PREFIX,i.setDebugMode=function(t){i.d(o,"setDebugMode:"+t),r=t},i.d=function(t,e){},i.dd=function(t,e){r&&window.console&&console.log(o+"["+t+"]"+e)},i.ww=function(t,e){window.console&&console.warn(o+"["+t+"]"+e)},i.ee=function(t,e){window.console&&console.error(o+"["+t+"]"+e)}},function(t,e,n){"use strict";e.__esModule=!0;var s=n(7),a=n(2),c="RequestHelper",i=function(){function s(){}return s.prototype.request=function(t,e){var n=this.generateHttpRequest();if(n){if(n.onload=function(t){4===n.readyState&&(200==n.status?e(!0,s.REQUEST_SUCC,n.responseText,n.status):403==n.status?e(!1,s.REQUEST_FAILED,n.responseText,n.status):e(!1,s.REQUEST_FAILED,"request failed with status "+n.status,n.status))},n.onloadstart=function(t){},n.onabort=function(t){e(!1,s.REQUEST_ERROR,"request onabort")},n.onerror=function(t){e(!1,s.REQUEST_ERROR,"request error")},n.ontimeout=function(t){e(!1,s.REQUEST_TIME_OUT,"request timeout")},"GET"==t.method){if(t.param){var i=t.param,r=[];for(var o in i)i.hasOwnProperty(o)&&r.push(encodeURIComponent(o)+"="+encodeURIComponent(i[o]));t.url=t.url+"?"+r.join("&")}n.open("GET",t.url,t.async),t.async&&(n.timeout=a.JGCons.REQUEST.TIME_OUT),n.send(null)}else n.open("POST",t.url,t.async),t.async&&(n.timeout=a.JGCons.REQUEST.TIME_OUT),n.setRequestHeader("Content-Type","application/json;charset=UTF-8"),n.send(t.param);return t.async?void 0:200==n.status?{result:n.responseText,statusCode:n.status}:{reslut:"request failed with status "+n.status,statusCode:n.status}}e(!1,s.REQUEST_ERROR,"not support ajax")},s.prototype.generateHttpRequest=function(){var e;if(XMLHttpRequest)try{e=new XMLHttpRequest}catch(t){}else if(ActiveXObject)try{e=new ActiveXObject("Microsoft.XMLHTTP")}catch(t){e=new ActiveXObject("Msxml2.XMLHTTP")}return e},s.REQUEST_SUCC=0,s.REQUEST_TIME_OUT=1,s.REQUEST_ERROR=2,s.REQUEST_FAILED=3,s}();e.RequestController=i,e.http=function(t){return t.async?new Promise(function(r,o){(new i).request(t,function(t,e,n,i){t?(s.Log.d(c,"request "+(t?"success":"failed")+":"+i+"_"+JSON.stringify(n)),r({result:n})):(s.Log.ee(c,"request failed :"+i+"_"+e+"_"+JSON.stringify(n)),o({code:e,result:n,statusCode:i}))})}):(new i).request(t,function(t,e,n,i){})},e.jsonp=function(e){if(!(e=e||{}).url||!e.callback)throw new Error("参数不合法");var n=document.getElementsByTagName("head")[0],t="";e.data?(e.data[e.callback]=e.callback,t+=function(t){var e=[];for(var n in t)e.push(encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e.join("&")}(e.data)):t+=e.callback+"="+e.callback;var i=document.createElement("script");n.appendChild(i);var r=window;if(r[e.callback]=function(t){n.removeChild(i),clearTimeout(i.timer),r[e.callback]=null,e.success&&e.success(t)},1===e.oSscrType){var o=e.url.indexOf("?")<0?"?":"&";i.src=e.url+o+t}else i.src=e.url;i.timer=setTimeout(function(){r[e.callback]=null,n.removeChild(i),e.fail&&e.fail({message:"request timeout"})},a.JGCons.REQUEST.TIME_OUT)}},function(t,e,n){var i;t.exports=(i=n(0),n(10),n(24),n(25),n(5),n(6),n(12),n(15),n(26),n(16),n(27),n(28),n(29),n(13),n(30),n(4),n(1),n(31),n(32),n(33),n(34),n(35),n(36),n(37),n(38),n(39),n(40),n(41),n(42),n(43),n(44),n(45),n(46),i)},function(t,e,n){var i,r,o,s,a,c;t.exports=(i=n(0),o=(r=i).lib,s=o.Base,a=o.WordArray,(c=r.x64={}).Word=s.extend({init:function(t,e){this.high=t,this.low=e}}),c.WordArray=s.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:8*t.length},toX32:function(){for(var t=this.words,e=t.length,n=[],i=0;i<e;i++){var r=t[i];n.push(r.high),n.push(r.low)}return a.create(n,this.sigBytes)},clone:function(){for(var t=s.clone.call(this),e=t.words=this.words.slice(0),n=e.length,i=0;i<n;i++)e[i]=e[i].clone();return t}}),i)},function(t,e,n){"use strict";e.__esModule=!0;var r=n(3),o=n(2),i=function(){function i(t,e,n){this.mInitStatu=i.INIT_FAIL,this.mSupport=!1,this.mType="",this.mAppid="",this.mAppKey="",this.cmAppKey="",this.mCMOpenType="0",this.mTimeOut=3e3,this.mType=t,this.mSupport=e,this.mAppKey=n,this.init()}return i.prototype.isSupport=function(){return!r.isEmpty(this.getType())&&this.mSupport},i.prototype.getInitStatu=function(){return this.mInitStatu},i.prototype.isInit=function(){return this.mInitStatu==i.INIT_SUCC},i.prototype.setInitStatu=function(t){r.log("change init status to :"+t,this.getType()),this.mInitStatu=t},i.prototype.setAppId=function(t){this.mAppid=t},i.prototype.setCMOpenType=function(t){this.mCMOpenType=t},i.prototype.setCMAppKey=function(t){this.cmAppKey=t},i.prototype.setLoginAuthTimeout=function(t){this.mTimeOut=t},i.prototype.setPreloginCallback=function(t){this.mPreloginCallback=t},i.prototype.getType=function(){return this.mType},i.prototype.buildTokenMsg=function(t){return t.platform="web",t.time=Math.round(Date.now()/1e3),"CU"==this.getType()?t.carrier="CU2":t.carrier=this.getType(),t.type=o.JGCons.REQUEST.TOKEN.TYPE,t.version=o.JGCons.REQUEST.TOKEN.VERSION,t.sdk_ver=o.JGCons.SDK_VERSION,JSON.stringify(t)},i.prototype.buildLoginMsg=function(t){return t.platform="web",t.time=Math.round(Date.now()/1e3),"CU"==this.getType()?t.carrier="CU2":t.carrier=this.getType(),t.type=o.JGCons.REQUEST.LOGIN.TYPE,t.version=o.JGCons.REQUEST.LOGIN.VERSION,t.sdk_ver=o.JGCons.SDK_VERSION,JSON.stringify(t)},i.INIT_SUCC="INITSUCC",i.INIT_ING="INITING",i.INIT_FAIL="INITFAIL",i}();e.Operater=i},function(t,e,n){var i,r,o,s,a,c,l,u;t.exports=(i=n(0),o=(r=i).lib,s=o.WordArray,a=o.Hasher,c=r.algo,l=[],u=c.SHA1=a.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=this._hash.words,i=n[0],r=n[1],o=n[2],s=n[3],a=n[4],c=0;c<80;c++){if(c<16)l[c]=0|t[e+c];else{var u=l[c-3]^l[c-8]^l[c-14]^l[c-16];l[c]=u<<1|u>>>31}var h=(i<<5|i>>>27)+a+l[c];h+=c<20?1518500249+(r&o|~r&s):c<40?1859775393+(r^o^s):c<60?(r&o|r&s|o&s)-1894007588:(r^o^s)-899497514,a=s,s=o,o=r<<30|r>>>2,r=i,i=h}n[0]=n[0]+i|0,n[1]=n[1]+r|0,n[2]=n[2]+o|0,n[3]=n[3]+s|0,n[4]=n[4]+a|0},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;return e[i>>>5]|=128<<24-i%32,e[14+(i+64>>>9<<4)]=Math.floor(n/4294967296),e[15+(i+64>>>9<<4)]=n,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=a.clone.call(this);return t._hash=this._hash.clone(),t}}),r.SHA1=a._createHelper(u),r.HmacSHA1=a._createHmacHelper(u),i.SHA1)},function(t,e,n){var i,r,o,s,a,u,c;t.exports=(i=n(0),o=(r=i).lib,s=o.Base,a=r.enc,u=a.Utf8,c=r.algo,void(c.HMAC=s.extend({init:function(t,e){t=this._hasher=new t.init,"string"==typeof e&&(e=u.parse(e));var n=t.blockSize,i=4*n;e.sigBytes>i&&(e=t.finalize(e)),e.clamp();for(var r=this._oKey=e.clone(),o=this._iKey=e.clone(),s=r.words,a=o.words,c=0;c<n;c++)s[c]^=1549556828,a[c]^=909522486;r.sigBytes=o.sigBytes=i,this.reset()},reset:function(){var t=this._hasher;t.reset(),t.update(this._iKey)},update:function(t){return this._hasher.update(t),this},finalize:function(t){var e=this._hasher,n=e.finalize(t);e.reset();var i=e.finalize(this._oKey.clone().concat(n));return i}})))},function(t,e){var n,i,r=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(t){i=s}}();var c,u=[],h=!1,l=-1;function p(){h&&c&&(h=!1,c.length?u=c.concat(u):l=-1,u.length&&f())}function f(){if(!h){var t=a(p);h=!0;for(var e=u.length;e;){for(c=u,u=[];++l<e;)c&&c[l].run();l=-1,e=u.length}c=null,h=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function g(){}r.nextTick=function(t){var e=new Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];u.push(new d(t,e)),1!==u.length||h||a(f)},d.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=g,r.addListener=g,r.once=g,r.off=g,r.removeListener=g,r.removeAllListeners=g,r.emit=g,r.prependListener=g,r.prependOnceListener=g,r.listeners=function(t){return[]},r.binding=function(t){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(t){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(t,e,n){var c;t.exports=(c=n(0),function(r){var t=c,e=t.lib,n=e.WordArray,i=e.Hasher,o=t.algo,s=[],C=[];!function(){function t(t){for(var e=r.sqrt(t),n=2;n<=e;n++)if(!(t%n))return!1;return!0}function e(t){return 4294967296*(t-(0|t))|0}for(var n=2,i=0;i<64;)t(n)&&(i<8&&(s[i]=e(r.pow(n,.5))),C[i]=e(r.pow(n,1/3)),i++),n++}();var T=[],a=o.SHA256=i.extend({_doReset:function(){this._hash=new n.init(s.slice(0))},_doProcessBlock:function(t,e){for(var n=this._hash.words,i=n[0],r=n[1],o=n[2],s=n[3],a=n[4],c=n[5],u=n[6],h=n[7],l=0;l<64;l++){if(l<16)T[l]=0|t[e+l];else{var p=T[l-15],f=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,d=T[l-2],g=(d<<15|d>>>17)^(d<<13|d>>>19)^d>>>10;T[l]=f+T[l-7]+g+T[l-16]}var m=i&r^i&o^r&o,y=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22),v=h+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&c^~a&u)+C[l]+T[l];h=u,u=c,c=a,a=s+v|0,s=o,o=r,r=i,i=v+(y+m)|0}n[0]=n[0]+i|0,n[1]=n[1]+r|0,n[2]=n[2]+o|0,n[3]=n[3]+s|0,n[4]=n[4]+a|0,n[5]=n[5]+c|0,n[6]=n[6]+u|0,n[7]=n[7]+h|0},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;return e[i>>>5]|=128<<24-i%32,e[14+(i+64>>>9<<4)]=r.floor(n/4294967296),e[15+(i+64>>>9<<4)]=n,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t}});t.SHA256=i._createHelper(a),t.HmacSHA256=i._createHmacHelper(a)}(Math),c.SHA256)},function(t,e,n){var c;t.exports=(c=n(0),n(10),function(){var t=c,e=t.lib.Hasher,n=t.x64,i=n.Word,r=n.WordArray,o=t.algo;function s(){return i.create.apply(i,arguments)}var Ot=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],_t=[];!function(){for(var t=0;t<80;t++)_t[t]=s()}();var a=o.SHA512=e.extend({_doReset:function(){this._hash=new r.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(t,e){for(var n=this._hash.words,i=n[0],r=n[1],o=n[2],s=n[3],a=n[4],c=n[5],u=n[6],h=n[7],l=i.high,p=i.low,f=r.high,d=r.low,g=o.high,m=o.low,y=s.high,v=s.low,C=a.high,T=a.low,E=c.high,S=c.low,O=u.high,_=u.low,A=h.high,I=h.low,b=l,w=p,M=f,k=d,U=g,R=m,B=y,x=v,D=C,L=T,N=E,G=S,P=O,J=_,H=A,V=I,j=0;j<80;j++){var F=_t[j];if(j<16)var Q=F.high=0|t[e+2*j],K=F.low=0|t[e+2*j+1];else{var q=_t[j-15],z=q.high,Z=q.low,Y=(z>>>1|Z<<31)^(z>>>8|Z<<24)^z>>>7,W=(Z>>>1|z<<31)^(Z>>>8|z<<24)^(Z>>>7|z<<25),X=_t[j-2],$=X.high,tt=X.low,et=($>>>19|tt<<13)^($<<3|tt>>>29)^$>>>6,nt=(tt>>>19|$<<13)^(tt<<3|$>>>29)^(tt>>>6|$<<26),it=_t[j-7],rt=it.high,ot=it.low,st=_t[j-16],at=st.high,ct=st.low;Q=(Q=(Q=Y+rt+((K=W+ot)>>>0<W>>>0?1:0))+et+((K+=nt)>>>0<nt>>>0?1:0))+at+((K+=ct)>>>0<ct>>>0?1:0),F.high=Q,F.low=K}var ut,ht=D&N^~D&P,lt=L&G^~L&J,pt=b&M^b&U^M&U,ft=w&k^w&R^k&R,dt=(b>>>28|w<<4)^(b<<30|w>>>2)^(b<<25|w>>>7),gt=(w>>>28|b<<4)^(w<<30|b>>>2)^(w<<25|b>>>7),mt=(D>>>14|L<<18)^(D>>>18|L<<14)^(D<<23|L>>>9),yt=(L>>>14|D<<18)^(L>>>18|D<<14)^(L<<23|D>>>9),vt=Ot[j],Ct=vt.high,Tt=vt.low,Et=H+mt+((ut=V+yt)>>>0<V>>>0?1:0),St=gt+ft;H=P,V=J,P=N,J=G,N=D,G=L,D=B+(Et=(Et=(Et=Et+ht+((ut+=lt)>>>0<lt>>>0?1:0))+Ct+((ut+=Tt)>>>0<Tt>>>0?1:0))+Q+((ut+=K)>>>0<K>>>0?1:0))+((L=x+ut|0)>>>0<x>>>0?1:0)|0,B=U,x=R,U=M,R=k,M=b,k=w,b=Et+(dt+pt+(St>>>0<gt>>>0?1:0))+((w=ut+St|0)>>>0<ut>>>0?1:0)|0}p=i.low=p+w,i.high=l+b+(p>>>0<w>>>0?1:0),d=r.low=d+k,r.high=f+M+(d>>>0<k>>>0?1:0),m=o.low=m+R,o.high=g+U+(m>>>0<R>>>0?1:0),v=s.low=v+x,s.high=y+B+(v>>>0<x>>>0?1:0),T=a.low=T+L,a.high=C+D+(T>>>0<L>>>0?1:0),S=c.low=S+G,c.high=E+N+(S>>>0<G>>>0?1:0),_=u.low=_+J,u.high=O+P+(_>>>0<J>>>0?1:0),I=h.low=I+V,h.high=A+H+(I>>>0<V>>>0?1:0)},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;return e[i>>>5]|=128<<24-i%32,e[30+(i+128>>>10<<5)]=Math.floor(n/4294967296),e[31+(i+128>>>10<<5)]=n,t.sigBytes=4*e.length,this._process(),this._hash.toX32()},clone:function(){var t=e.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32});t.SHA512=e._createHelper(a),t.HmacSHA512=e._createHmacHelper(a)}(),c.SHA512)},function(t,n,e){"use strict";function i(t){var e="";switch(t){case n.MSG_CODE.SUCC:e="success";break;case n.MSG_CODE.FAILED:e="unknown error";break;case n.MSG_CODE.INIT.INITING:e="initing , please try again later";break;case n.MSG_CODE.INIT.APPKEY_EMPTY:e="empty appkey";break;case n.MSG_CODE.INIT.INIT_FAILED:e="init failed";break;case n.MSG_CODE.INIT.INIT_TIME_OUT:e="init timeout";break;case n.MSG_CODE.INIT.NO_INTERNET:e="no internet";break;case n.MSG_CODE.INIT.DOMAIN_NAME_EMPTY:e="domain name empty";break;case n.MSG_CODE.TOKEN.NOT_INIT:e="please call init correctly first";break;case n.MSG_CODE.TOKEN.GET_TOKEN_FAILED:e="getToken faild";break;case n.MSG_CODE.TOKEN.REQUESTING:e="token requesting, please try again later";break;case n.MSG_CODE.TOKEN.NOT_SUPPORT:e="not support";break;case n.MSG_CODE.TOKEN.ERROR_OPERATER:e="operater has to be one of CM,CT,CU2";break;case n.MSG_CODE.USEREVENT.CHECKOUT_CLOCE_PAGE:e="Close Page";break;case n.MSG_CODE.USEREVENT.CHECKOUT_SELECT:e="CheckBox Select";break;case n.MSG_CODE.USEREVENT.CHECKOUT_UNSELECT:e="CheckBox unSelect";break;case n.MSG_CODE.USEREVENT.CHECKOUT_INPUT_START:e="Start typing";break;case n.MSG_CODE.USEREVENT.CHECKOUT_INPUT_END:e="End typing";break;case n.MSG_CODE.USEREVENT.CHECKOUT_LOGIN:e="Start Auth";break;case n.MSG_CODE.USEREVENT.CHECKOUT_OTHER_LOGIN:e="Other Login";break;case n.MSG_CODE.USEREVENT.CHECKOUT_LOGINAUTHPAGE_SHOW:e="Login Auth Page Show";break;case n.MSG_CODE.TOKEN.TIME_OUT:e="Login Auth Time Out"}return e}n.__esModule=!0,n.MSG_CODE={SUCC:0,FAILED:1e3,INIT:{INITING:1001,APPKEY_EMPTY:1002,INIT_FAILED:1003,INIT_TIME_OUT:1004,NO_INTERNET:1005,DOMAIN_NAME_EMPTY:1006},TOKEN:{NOT_INIT:2001,GET_TOKEN_FAILED:2002,REQUESTING:2003,NOT_SUPPORT:2004,ERROR_OPERATER:2005,TIME_OUT:2006},USEREVENT:{CHECKOUT_CLOCE_PAGE:3001,CHECKOUT_SELECT:3002,CHECKOUT_UNSELECT:3003,CHECKOUT_INPUT_START:3004,CHECKOUT_INPUT_END:3005,CHECKOUT_LOGIN:3006,CHECKOUT_OTHER_LOGIN:3007,CHECKOUT_LOGINAUTHPAGE_SHOW:3008}},n.buildCallbakMsg=function(t,e){return{code:t,message:i(t),content:e}},n.buildfEventCallbakMsg=function(t,e){return{code:t,message:i(t),content:e}},n.buildOperaterCallbakMsg=function(t,e,n){return{code:t,operater:e,message:i(t),content:n}}},function(t,e,n){"use strict";e.__esModule=!0;var c=n(7),i=n(3),u=n(2);n(19);var o=n(22),s=n(17),r=n(51),a=n(8),h="JVerificationInterface";var l=new(function(){function r(){this.mInitStatu=r.INIT_FAIL}return r.prototype.init=function(t,e){if(c.Log.setDebugMode(t.debugMode),this.mInitStatu!=r.INIT_ING)if(i.isEmpty(t.appkey))e.onFail(s.buildCallbakMsg(s.MSG_CODE.INIT.APPKEY_EMPTY));else if(i.isEmpty(t.domainName))e.onFail(s.buildCallbakMsg(s.MSG_CODE.INIT.DOMAIN_NAME_EMPTY));else{if(c.Log.dd(h,"action:init - sdkVersion:"+u.JGCons.SDK_VERSION),this.isInitSuccess())return c.Log.dd(h,"already init success"),void e.onSuccess(s.buildCallbakMsg(s.MSG_CODE.SUCC));if(!i.isOnLine())return c.Log.ww(h,"init failno internet"),void e.onFail(s.buildCallbakMsg(s.MSG_CODE.INIT.NO_INTERNET));this.mInitStatu=r.INIT_ING,this._initConfig(t);try{this._init(e)}catch(t){c.Log.ww(h,"init fail"+t),e.onFail(s.buildCallbakMsg(s.MSG_CODE.FAILED))}}else e.onFail(s.buildCallbakMsg(s.MSG_CODE.INIT.INITING))},r.prototype._initConfig=function(t){t.sdkVersion=u.JGCons.SDK_VERSION,this.mInitConfig=t,u.JGCons.HTML_URL=this.mInitConfig.domainName},r.prototype._init=function(n){var i=this;a.http({url:u.JGCons.REQUEST.URL_INIT,method:"GET",param:{appKey:this.mInitConfig.appkey,probIsp:!0},async:!0,header:!0}).then(function(t){var e=JSON.parse(t.result);i.mOperaterControl=new o.OperaterControl(i.mInitConfig.appkey),i.mOperaterControl.setAppId(u.JGCons.OPERATOR.CM,e.cmApId),i.mOperaterControl.setCMOpenType(e.cmOpenType),i.mOperaterControl.setCMAppKey(u.JGCons.OPERATOR.CM,e.cmAppkey),i.mOperaterControl.setAppId(u.JGCons.OPERATOR.CU,e.cu2ApId),i.mOperaterControl.setAppId(u.JGCons.OPERATOR.CT,e.ctApId),i.mOperaterControl.setFirstOprater(e.isp),i.mInitStatu=r.INIT_SUCC,c.Log.dd(h,"init success"),n.onSuccess(s.buildCallbakMsg(s.MSG_CODE.SUCC))}).catch(function(t){i.mInitStatu=r.INIT_FAIL,c.Log.ee(h,"init failed :"+JSON.stringify(t.code)+" "+JSON.stringify(t.result)),t.code==a.RequestController.REQUEST_TIME_OUT?n.onFail(s.buildCallbakMsg(s.MSG_CODE.INIT.INIT_TIME_OUT)):n.onFail(s.buildCallbakMsg(s.MSG_CODE.INIT.INIT_FAILED))})},r.prototype.isInitSuccess=function(){return this.mInitStatu==r.INIT_SUCC},r.prototype.getToken=function(t,e){if(this.isInitSuccess())try{this.mOperaterControl.getToken(function(t){c.Log.dd(h,"getToken succ"+JSON.stringify(t)),e.onSuccess(t)},function(t){c.Log.ww(h,"getToken fail"+JSON.stringify(t)),e.onFail(t)},t)}catch(t){c.Log.ww(h,"getToken fail"+t),e.onFail(s.buildCallbakMsg(s.MSG_CODE.FAILED))}else e.onFail(s.buildCallbakMsg(s.MSG_CODE.TOKEN.NOT_INIT))},r.prototype.setCustomUIWithConfig=function(t){if(t){if(c.Log.dd(h,"setCustomUIWithConfig"+JSON.stringify(t)),t.logo&&(u.JGCons.OPERATOR.CU_UI.CU_LOGIN_LOGO=t.logo,u.JGCons.CUSTOMUI.logo=t.logo,-1!=t.logo.indexOf("http")?u.JGCons.CUSTOMUI.iframeLogoPath=t.logo:(u.JGCons.CUSTOMUI.iframeLogo=t.logo,s=t.logo,(a=document.createElement("img")).src=s,a.crossOrigin="anonymous",a.onload=function(){var t,e,n=(t=a,(e=document.createElement("canvas")).width=t.width,e.height=t.height,e.getContext("2d").drawImage(t,0,0,t.width,t.height),e.toDataURL("image/png"));c.Log.dd(h,"loginAuth image"+n.length),u.JGCons.CUSTOMUI.iframeLogo=n})),t.appName){var e=t.appName;6<e.length&&(c.Log.dd(h,"appName length too loog"),e=e.substring(0,6)),u.JGCons.OPERATOR.CU_UI.CU_APP_NAME=e,u.JGCons.CUSTOMUI.appName=e}if(t.btnName&&(u.JGCons.CUSTOMUI.btnName=t.btnName),t.isConcealLoginBtn&&(u.JGCons.CUSTOMUI.isConcealLoginBtn=t.isConcealLoginBtn),t.loginBtnColor&&(u.JGCons.CUSTOMUI.loginBtnColor=t.loginBtnColor),t.loginTextColor&&(u.JGCons.CUSTOMUI.loginTextColor=t.loginTextColor),void 0!==t.customPolicyLink1&&0!==t.customPolicyLink1.length&&t.customPolicyLink1[0]&&t.customPolicyLink1[1]){var n=t.customPolicyLink1[0];15<n.length&&(c.Log.dd(h,"customPolicy length too loog"),n=n.substring(0,15)),u.JGCons.CUSTOMUI.customPolicyLink1=[n,t.customPolicyLink1[1]]}if(void 0!==t.customPolicyLink2&&0!==t.customPolicyLink2.length&&t.customPolicyLink2[0]&&t.customPolicyLink2[1]){var i=t.customPolicyLink2[0];15<i.length&&(c.Log.dd(h,"customPolicy length too loog"),i=i.substring(0,15)),u.JGCons.CUSTOMUI.customPolicyLink2=[i,t.customPolicyLink2[1]]}if(void 0!==t.customPolicyLink3&&0!==t.customPolicyLink3.length&&t.customPolicyLink3[0]&&t.customPolicyLink3[1]){var r=t.customPolicyLink3[0];15<r.length&&(c.Log.dd(h,"customPolicy length too loog"),r=r.substring(0,15)),u.JGCons.CUSTOMUI.customPolicyLink3=[r,t.customPolicyLink3[1]]}if(t.customPolicyLinkColor&&(u.JGCons.CUSTOMUI.customPolicyLinkColor=t.customPolicyLinkColor),u.JGCons.CUSTOMUI.isDisplayOtherWayBtn=t.isDisplayOtherWayBtn,void 0!==t.customOtherWayText&&0<t.customOtherWayText.length){var o=t.customOtherWayText;10<o.length&&(o=o.substring(0,10)),u.JGCons.CUSTOMUI.customOtherWayText=o}t.customOtherWayTextColor&&(u.JGCons.CUSTOMUI.customOtherWayTextColor=t.customOtherWayTextColor)}var s,a},r.prototype._destroyIframe=function(t){try{t.contentWindow.document.write(""),t.contentWindow.document.clear()}catch(t){}t.parentNode.removeChild(t)},r.prototype._eventHandle=function(t,e){"-1"==t?e.userEvent(s.buildfEventCallbakMsg(s.MSG_CODE.USEREVENT.CHECKOUT_CLOCE_PAGE)):"-2"==t?e.userEvent(s.buildfEventCallbakMsg(s.MSG_CODE.USEREVENT.CHECKOUT_OTHER_LOGIN)):"001"==t?e.userEvent(s.buildfEventCallbakMsg(s.MSG_CODE.USEREVENT.CHECKOUT_SELECT)):"002"==t?e.userEvent(s.buildfEventCallbakMsg(s.MSG_CODE.USEREVENT.CHECKOUT_UNSELECT)):"003"==t?e.userEvent(s.buildfEventCallbakMsg(s.MSG_CODE.USEREVENT.CHECKOUT_INPUT_START)):"004"==t?e.userEvent(s.buildfEventCallbakMsg(s.MSG_CODE.USEREVENT.CHECKOUT_INPUT_END)):-1!=t.indexOf("005")?e.userEvent(s.buildfEventCallbakMsg(s.MSG_CODE.USEREVENT.CHECKOUT_LOGIN)):-1!=t.indexOf("006")&&e.userEvent(s.buildfEventCallbakMsg(s.MSG_CODE.USEREVENT.CHECKOUT_LOGINAUTHPAGE_SHOW))},r.prototype.addEventListen=function(n){c.Log.dd(h,"addEventListen success");var i=this;u.JGCons.CUSTOMUI.isOpenAuthOperationMonitor=!0,window.addEventListener("jiguang_cu_even",function(t){if(c.Log.d("TAG","cu_even :"+JSON.stringify(t.detail)),"even"==t.detail.type){var e=JSON.parse(t.detail.data);i._eventHandle(e.code,n)}},!1),window.addEventListener("message",function(t){if(c.Log.d("TAG","EventListener data"+JSON.stringify(t.data)),c.Log.d("TAG","EventListener origin"+JSON.stringify(t.origin)),t.origin==u.JGCons.IFRAME_URL||t.origin==u.JGCons.HTML_URL){var e=t.data;i._eventHandle(e,n)}},!1)},r.prototype._closePage=function(){if(1==u.JGCons.CUSTOMUI.authPageType){var t=document.getElementById("jv-pop-loginBox"),e=document.getElementById("qs_key_board_dev"),n=document.getElementById("jv-pop-id-main");c.Log.dd(h,"cm_dev"+t),c.Log.dd(h,"keyboard_dev"+e),t&&document.body.removeChild(t),e&&n.removeChild(e)}else{var i=document.getElementById("cmiframe");c.Log.dd(h,"cm_iframe"+i),i&&l._destroyIframe(i)}this.mOperaterControl.mIsGetToken=!1},r.prototype.loginAuth=function(t,e,n,i){if(this.isInitSuccess()){c.Log.dd(h,"operater->"+t+" type->"+e),u.JGCons.CUSTOMUI.authPageType="dialog"==e?1:0;var r=this;window.addEventListener("message",function(t){if(t.origin==u.JGCons.IFRAME_URL||t.origin==u.JGCons.HTML_URL){var e=t.data;"-1"==e?(r._closePage(),r.mOperaterControl.setOpraterState(!1),i.userEvent(s.buildfEventCallbakMsg(s.MSG_CODE.USEREVENT.CHECKOUT_CLOCE_PAGE))):"-2"==e&&r._closePage()}},!1);try{this.mOperaterControl.loginAuth(function(t){c.Log.dd(h,"loginAuth succ"+JSON.stringify(t)),r._closePage(),i.onSuccess(t)},function(t){c.Log.ww(h,"loginAuth fail"+JSON.stringify(t)),r._closePage(),i.onFail(t)},t,e,n)}catch(t){c.Log.ww(h,"loginAuth fail"+t),r._closePage(),i.onFail(s.buildCallbakMsg(s.MSG_CODE.FAILED))}}else i.onFail(s.buildCallbakMsg(s.MSG_CODE.TOKEN.NOT_INIT))},r.prototype.checkVerifyEnable=function(){return!(i.isWifi()||i.isDesktop()||!i.isOnLine())},r.prototype.isCellular=function(){return"cellular"==this.mOperaterControl.getConnection()},r.prototype.isWifi=function(){return"wifi"==this.mOperaterControl.getConnection()},r.prototype._getCUSign=function(){return this.mOperaterControl.signCU()},r.prototype._getCULoginTokenFail=function(t){var e=new CustomEvent("jiguang_cu_login",{detail:{data:JSON.stringify(t),type:"fail"}});window.dispatchEvent(e)},r.prototype._getCULoginTokenSuccess=function(t){var e=new CustomEvent("jiguang_cu_login",{detail:{data:JSON.stringify(t),type:"succ"}});window.dispatchEvent(e)},r.prototype._authOperationMonitor=function(t){var e=new CustomEvent("jiguang_cu_even",{detail:{data:JSON.stringify(t),type:"even"}});window.dispatchEvent(e)},r.prototype.addMeta=function(){var t=document.getElementsByTagName("head"),e=document.createElement("meta");e.name=u.JGCons.META_NAME,e.content=u.JGCons.META_CONTENT,t[0].appendChild(e)},r.INIT_SUCC="INITSUCC",r.INIT_ING="INITING",r.INIT_FAIL="INITFAIL",r}());l.addMeta(),window.JVerificationInterface={init:function(t){l.init(t,new r.CallbackHelper(t))},isInitSuccess:function(){return l.isInitSuccess()},getToken:function(t){l.getToken(t.operater,new r.CallbackHelper(t))},checkVerifyEnable:function(){return l.checkVerifyEnable()},isCellular:function(){return l.isCellular()},isWifi:function(){return l.isWifi()},loginAuth:function(t){l.loginAuth(t.operater,t.type,t.timeout,new r.CallbackHelper(t))},addEventListen:function(t){l.addEventListen(new r.CallbackHelper(t))},setCustomUIWithConfig:function(t){l.setCustomUIWithConfig(t)},_getCUSign:function(){return l._getCUSign()},_getCULoginTokenSuccess:function(t){l._getCULoginTokenSuccess(t)},_getCULoginTokenFail:function(t){l._getCULoginTokenFail(t)},_authOperationMonitor:function(t){l._authOperationMonitor(t)}}},function(t,e,n){"use strict";t.exports=n(20).polyfill()},function(t,e,n){(function(H,V){
/*!
* @overview es6-promise - a tiny implementation of Promises/A+.
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
* @license Licensed under MIT license
* See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
* @version v4.2.6+9869a4bc
*/
t.exports=function(){"use strict";function u(t){return"function"==typeof t}var n=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},i=0,e=void 0,r=void 0,a=function(t,e){p[i]=t,p[i+1]=e,2===(i+=2)&&(r?r(f):v())},t="undefined"!=typeof window?window:void 0,o=t||{},s=o.MutationObserver||o.WebKitMutationObserver,c="undefined"==typeof self&&void 0!==H&&"[object process]"==={}.toString.call(H),h="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function l(){var t=setTimeout;return function(){return t(f,1)}}var p=new Array(1e3);function f(){for(var t=0;t<i;t+=2){var e=p[t],n=p[t+1];e(n),p[t]=void 0,p[t+1]=void 0}i=0}var d,g,m,y,v=void 0;function C(t,e){var n=this,i=new this.constructor(S);void 0===i[E]&&G(i);var r=n._state;if(r){var o=arguments[r-1];a(function(){return L(r,i,o,n._result)})}else x(n,i,t,e);return i}function T(t){if(t&&"object"==typeof t&&t.constructor===this)return t;var e=new this(S);return k(e,t),e}v=c?function(){return H.nextTick(f)}:s?(g=0,m=new s(f),y=document.createTextNode(""),m.observe(y,{characterData:!0}),function(){y.data=g=++g%2}):h?((d=new MessageChannel).port1.onmessage=f,function(){return d.port2.postMessage(0)}):void 0===t?function(){try{var t=Function("return this")().require("vertx");return void 0===(e=t.runOnLoop||t.runOnContext)?l():function(){e(f)}}catch(t){return l()}}():l();var E=Math.random().toString(36).substring(2);function S(){}var O=void 0,_=1,A=2,I={error:null};function b(t){try{return t.then}catch(t){return I.error=t,I}}function w(t,e,n,i){try{t.call(e,n,i)}catch(t){return t}}function M(t,e,n){var i,r,o,s;e.constructor===t.constructor&&n===C&&e.constructor.resolve===T?(o=t,(s=e)._state===_?R(o,s._result):s._state===A?B(o,s._result):x(s,void 0,function(t){return k(o,t)},function(t){return B(o,t)})):n===I?(B(t,I.error),I.error=null):void 0===n?R(t,e):u(n)?(i=e,r=n,a(function(e){var n=!1,t=w(r,i,function(t){n||(n=!0,i!==t?k(e,t):R(e,t))},function(t){n||(n=!0,B(e,t))},e._label);!n&&t&&(n=!0,B(e,t))},t)):R(t,e)}function k(t,e){var n,i;t===e?B(t,new TypeError("You cannot resolve a promise with itself")):(i=typeof(n=e),null===n||"object"!==i&&"function"!==i?R(t,e):M(t,e,b(e)))}function U(t){t._onerror&&t._onerror(t._result),D(t)}function R(t,e){t._state===O&&(t._result=e,t._state=_,0!==t._subscribers.length&&a(D,t))}function B(t,e){t._state===O&&(t._state=A,t._result=e,a(U,t))}function x(t,e,n,i){var r=t._subscribers,o=r.length;t._onerror=null,r[o]=e,r[o+_]=n,r[o+A]=i,0===o&&t._state&&a(D,t)}function D(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var i=void 0,r=void 0,o=t._result,s=0;s<e.length;s+=3)i=e[s],r=e[s+n],i?L(n,i,r,o):r(o);t._subscribers.length=0}}function L(t,e,n,i){var r=u(n),o=void 0,s=void 0,a=void 0,c=void 0;if(r){if((o=function(t,e){try{return t(e)}catch(t){return I.error=t,I}}(n,i))===I?(c=!0,s=o.error,o.error=null):a=!0,e===o)return void B(e,new TypeError("A promises callback cannot return that same promise."))}else o=i,a=!0;e._state!==O||(r&&a?k(e,o):c?B(e,s):t===_?R(e,o):t===A&&B(e,o))}var N=0;function G(t){t[E]=N++,t._state=void 0,t._result=void 0,t._subscribers=[]}var P=function(){function t(t,e){this._instanceConstructor=t,this.promise=new t(S),this.promise[E]||G(this.promise),n(e)?(this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?R(this.promise,this._result):(this.length=this.length||0,this._enumerate(e),0===this._remaining&&R(this.promise,this._result))):B(this.promise,new Error("Array Methods must be provided an Array"))}return t.prototype._enumerate=function(t){for(var e=0;this._state===O&&e<t.length;e++)this._eachEntry(t[e],e)},t.prototype._eachEntry=function(e,t){var n=this._instanceConstructor,i=n.resolve;if(i===T){var r=b(e);if(r===C&&e._state!==O)this._settledAt(e._state,t,e._result);else if("function"!=typeof r)this._remaining--,this._result[t]=e;else if(n===J){var o=new n(S);M(o,e,r),this._willSettleAt(o,t)}else this._willSettleAt(new n(function(t){return t(e)}),t)}else this._willSettleAt(i(e),t)},t.prototype._settledAt=function(t,e,n){var i=this.promise;i._state===O&&(this._remaining--,t===A?B(i,n):this._result[e]=n),0===this._remaining&&R(i,this._result)},t.prototype._willSettleAt=function(t,e){var n=this;x(t,void 0,function(t){return n._settledAt(_,e,t)},function(t){return n._settledAt(A,e,t)})},t}(),J=function(){function e(t){this[E]=N++,this._result=this._state=void 0,this._subscribers=[],S!==t&&("function"!=typeof t&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof e?function(e,t){try{t(function(t){k(e,t)},function(t){B(e,t)})}catch(t){B(e,t)}}(this,t):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}())}return e.prototype.catch=function(t){return this.then(null,t)},e.prototype.finally=function(e){var n=this.constructor;return u(e)?this.then(function(t){return n.resolve(e()).then(function(){return t})},function(t){return n.resolve(e()).then(function(){throw t})}):this.then(e,e)},e}();return J.prototype.then=C,J.all=function(t){return new P(this,t).promise},J.race=function(r){var o=this;return n(r)?new o(function(t,e){for(var n=r.length,i=0;i<n;i++)o.resolve(r[i]).then(t,e)}):new o(function(t,e){return e(new TypeError("You must pass an array to race."))})},J.resolve=T,J.reject=function(t){var e=new this(S);return B(e,t),e},J._setScheduler=function(t){r=t},J._setAsap=function(t){a=t},J._asap=a,J.polyfill=function(){var t=void 0;if(void 0!==V)t=V;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(t){throw new Error("polyfill failed because global object is unavailable in this environment")}var e=t.Promise;if(e){var n=null;try{n=Object.prototype.toString.call(e.resolve())}catch(t){}if("[object Promise]"===n&&!e.cast)return}t.Promise=J},J.Promise=J}()}).call(this,n(14),n(21))},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";e.__esModule=!0;var i=n(23),r=n(47),o=n(49),c=n(2),u=n(7),h=n(3),l=n(17),p=n(9),f=n(50),d="OperaterControl",s=function(){function t(t){this.mAppKey="",this.mOperaterArr=[c.JGCons.OPERATOR.CM,c.JGCons.OPERATOR.CU,c.JGCons.OPERATOR.CT],this.mFisrtOperater=c.JGCons.OPERATOR.CM,this.mIsGetToken=!1,this.mIsCanEnd=!1,this.mTimeout=9e3,this.mOverTime=!1,this.mCMOpenType="0",this.mOperaterArrSorted=[""],this.mAppKey=t,this.mOperaterCM=new i.OperaterCM(t),this.mOperaterCU=new r.OperaterCU(t),this.mOperaterCT=new o.OperaterCT(t)}return t.prototype.getConnection=function(){var t=this.mOperaterCM.getConnection(),e=JSON.parse(JSON.stringify(t));return u.Log.dd(d,"connection:"+JSON.stringify(t)),u.Log.dd(d,"netType:"+e.netType),e.netType},t.prototype.getOperater=function(t){return t==c.JGCons.OPERATOR.CT?this.mOperaterCT:t==c.JGCons.OPERATOR.CU?this.mOperaterCU:t==c.JGCons.OPERATOR.CM?this.mOperaterCM:void 0},t.prototype.setAppId=function(t,e){this.getOperater(t).setAppId(e)},t.prototype.setCMAppKey=function(t,e){this.mOperaterCM.setCMAppKey(e)},t.prototype.setCMOpenType=function(t){this.mCMOpenType=t,this.getOperater(c.JGCons.OPERATOR.CM).setCMOpenType(t)},t.prototype.setOpraterState=function(t){this.mIsGetToken=t},t.prototype.setmIsCanEnd=function(t){this.mIsCanEnd=t},t.prototype.setFirstOprater=function(t){h.isEmpty(t)||(u.Log.dd(d,"set firstOprater from init:"+t),this.mFisrtOperater=t)},t.prototype.getToken=function(t,e,n){this.mIsGetToken?e(l.buildCallbakMsg(l.MSG_CODE.TOKEN.REQUESTING)):n&&void 0===this.getOperater(n)?e(l.buildCallbakMsg(l.MSG_CODE.TOKEN.ERROR_OPERATER)):(this.mIsGetToken=!0,this._sortOperaterArr(n),this.mGetTokenErrorMap=new Map,this._getToken(t,e))},t.prototype._sortOperaterArr=function(t){t?u.Log.dd(d,"set firstOprater from getToken:"+t):t=this.mFisrtOperater;var e=this.mOperaterArr.slice(0);t!=c.JGCons.OPERATOR.CM&&(e.splice(e.indexOf(t),1),e.unshift(t)),this.mOperaterArrSorted=e},t.prototype._getToken=function(n,e){var i=this,r=this,o=r.mOperaterArrSorted.shift();o?(u.Log.dd(d,"try to get token:"+o),this.getOperater(o).getToken().then(function(t){i.mIsGetToken=!1,u.Log.d(d,o+" get token result:"+t);var e=r._encryptToken(t);o=o,n(l.buildOperaterCallbakMsg(l.MSG_CODE.SUCC,o,e))}).catch(function(t){u.Log.dd(d,o+" get token fail:"+t),i.mGetTokenErrorMap.set(o,t),i._getToken(n,e)})):(this.mIsGetToken=!1,u.Log.dd(d,"get token all fail"),e(l.buildCallbakMsg(l.MSG_CODE.TOKEN.GET_TOKEN_FAILED,{CM:this.mGetTokenErrorMap.get(c.JGCons.OPERATOR.CM),CT:this.mGetTokenErrorMap.get(c.JGCons.OPERATOR.CT),CU:this.mGetTokenErrorMap.get(c.JGCons.OPERATOR.CU)})))},t.prototype._encryptToken=function(t){var e=h.getRandomId()+h.getRandomId(),n=p.MD5(this.mAppKey+":"+e).toString().substring(8,24),i=p.enc.Utf8.parse(n),r=p.enc.Utf8.parse("irafdfrzwcww0re&"),o=p.enc.Utf8.parse(t),s=p.AES.encrypt(o,i,{iv:r,mode:p.mode.CBC,padding:p.pad.Pkcs7}).ciphertext.toString(),a=new f.JSEncrypt;a.setPublicKey("-----BEGIN PUBLIC KEY-----\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCqbWqFTsOiGnzZ63KDGG+5Ry3z\nM6HHkDGAX2ntBhgwGYiIr4qKwJHeKosFf78Ukip7wX+8XnCGBz1plvHPZGVecv2+\nkObGrU7Pe22PtP/Q8dcPG/cvyiclrf+4D7bso9ympONafeie7Z/3VwKphn4jQrTZ\n221itqP4anr5HhvLTQIDAQAB\n-----END PUBLIC KEY-----");var c=a.encrypt(e);return h.base64ToHex(c)+s},t.prototype.signCU=function(){return this.mOperaterCU?this.mOperaterCU.sign((new Date).getTime()):""},t.prototype.loginAuth=function(t,e,n,i,r){var o=this;if(void 0===r&&(r=9e3),this.mIsGetToken)e(l.buildCallbakMsg(l.MSG_CODE.TOKEN.REQUESTING));else if(n&&void 0===this.getOperater(n))e(l.buildCallbakMsg(l.MSG_CODE.TOKEN.ERROR_OPERATER));else{(r<5e3||2e4<r)&&(u.Log.dd(d,"login auth timeout can't less than 5000 or more than 200000 : "+r),r=9e3),u.Log.dd(d,"start login auth with timeout: "+r),this.mTimeout=r,this.mIsGetToken=!0,this.mIsCanEnd=!1,this.mOverTime=!1,"0/1/2"==this.mCMOpenType?this.mOperaterArrSorted=[c.JGCons.OPERATOR.CM]:this._sortOperaterArr(n),this.mGetTokenErrorMap=new Map,u.Log.dd(d,"loginAuth type:"+i);var s=(this.mTimeout-3e3)/2;this.getOperater(c.JGCons.OPERATOR.CU).setLoginAuthTimeout(s),this.getOperater(c.JGCons.OPERATOR.CT).setLoginAuthTimeout(s);var a=function(){u.Log.dd(d,"prelogin finished"),o.stopTimeOut()};this.getOperater(c.JGCons.OPERATOR.CM).setPreloginCallback(a),this.getOperater(c.JGCons.OPERATOR.CU).setPreloginCallback(a),this.getOperater(c.JGCons.OPERATOR.CT).setPreloginCallback(a),this.mTimeroutTimer=setTimeout(function(){u.Log.dd(d,"login auth timeout fire:"+o.mTimeout),o.mOverTime=!0,o.mIsGetToken=!1,e(l.buildCallbakMsg(l.MSG_CODE.TOKEN.TIME_OUT,{CM:o.mGetTokenErrorMap.get(c.JGCons.OPERATOR.CM),CT:o.mGetTokenErrorMap.get(c.JGCons.OPERATOR.CT),CU:o.mGetTokenErrorMap.get(c.JGCons.OPERATOR.CU)}))},this.mTimeout),this._loginAuth(t,e,i)}},t.prototype._loginAuth=function(n,i,r){var o=this;if(this.mOverTime)u.Log.dd(d,"loginAuth has timeout, stop go on");else{var s=this,a=s.mOperaterArrSorted.shift();if(a&&!this.mIsCanEnd)u.Log.dd(d,"try to loginAuth:"+a),this.getOperater(a).loginAuth(r).then(function(t){s.mIsGetToken=!1,o.stopTimeOut(),u.Log.d(d,a+" loginAuth result:"+t);var e=s._encryptToken(t);n(l.buildOperaterCallbakMsg(l.MSG_CODE.SUCC,a,e))}).catch(function(t){if(u.Log.dd(d,a+" loginAuth fail:"+JSON.stringify(t)+"--"+typeof t.toString),o.mGetTokenErrorMap.set(a,t),t&&"string"==typeof t.toString||"function"==typeof t.toString){var e=t.split("|");if(u.Log.dd(d,"code"+e[0]+("104007"==e[0])),e&&1<e.length&&("-1"==e[0]||"-2"==e[0]||"104007"==e[0])){if(o.mIsCanEnd=!0,s.mIsGetToken=!1,o.mOverTime)return void u.Log.dd(d,"loginAuth has timeout, stop fail callback");o.stopTimeOut(),i(l.buildCallbakMsg(l.MSG_CODE.TOKEN.GET_TOKEN_FAILED,{CM:o.mGetTokenErrorMap.get(c.JGCons.OPERATOR.CM)}))}else s._loginAuth(n,i,r)}else s._loginAuth(n,i,r)});else{if(this.mIsGetToken=!1,u.Log.dd(d,"loginAuth all fail"),this.mOverTime)return void u.Log.dd(d,"loginAuth has timeout, stop fail callback");this.stopTimeOut(),i(l.buildCallbakMsg(l.MSG_CODE.TOKEN.GET_TOKEN_FAILED,{CM:this.mGetTokenErrorMap.get(c.JGCons.OPERATOR.CM),CT:this.mGetTokenErrorMap.get(c.JGCons.OPERATOR.CT),CU:this.mGetTokenErrorMap.get(c.JGCons.OPERATOR.CU)}))}}},t.prototype.stopTimeOut=function(){u.Log.dd(d,"remove login timeout"),clearTimeout(this.mTimeroutTimer)},t}();e.OperaterControl=s},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});e.__esModule=!0;var u=n(2),o=n(11),h=n(8),l=n(3),c=n(9),p=n(9),s=function(e){function t(t){return e.call(this,u.JGCons.OPERATOR.CM,u.JGCons.OPERATOR.CM_SUPPORT,t)||this}return r(t,e),t.prototype.init=function(){this.isSupport()&&(this.isInit()&&YDRZ||(l.log("init....",this.getType()),this.setInitStatu(o.Operater.INIT_ING),l.addScript(u.JGCons.OPERATOR.CM_YDRZ),l.addScript(u.JGCons.OPERATOR.CM_LOGIN_SRC),l.addLink(u.JGCons.OPERATOR.CM_LOGIN_SEC_CSS),window.addEventListener("message",this.receiveMessage,!1),this.setInitStatu(o.Operater.INIT_SUCC)))},t.prototype.receiveMessage=function(t){"010"==t.data&&document.getElementById("cmiframe").contentWindow.postMessage(u.JGCons.CUSTOMUI.iframeLogo,u.JGCons.IFRAME_URL)},t.prototype.getConnection=function(){return YDRZ.getConnection(this.mAppid)},t.prototype.getToken=function(){var r=this,o=this;return new Promise(function(t,e){if(o.isSupport())if(l.isEmpty(r.mAppid))e("CM appid is empty");else if("undefined"==typeof YDRZ)var n=0,i=setInterval(function(){n++,"undefined"!=typeof YDRZ?(o._getToken(t,e),clearInterval(i)):n>=u.JGCons.OPERATOR.CM_CHECK_SRC_COUNT?(e("load YDRZ failed"),clearInterval(i)):l.log("try to load YDRZ times:"+n,o.getType())},u.JGCons.OPERATOR.CM_CHECK_SRC_TIME);else o._getToken(t,e);else e("is not support now")})},t.prototype._getNowTime=function(){var t=new Date,e=t.getFullYear(),n=9<t.getMonth()+1?""+(t.getMonth()+1).toString():"0"+(t.getMonth()+1).toString(),i=t.getDate()<10?"0"+t.getDate():""+t.getDate(),r=t.getHours()<10?"0"+t.getHours():""+t.getHours(),o=t.getMinutes()<10?"0"+t.getMinutes():""+t.getMinutes(),s=t.getSeconds()<10?"0"+t.getSeconds():""+t.getSeconds(),a=t.getMilliseconds();return e+n+i+r+o+s+(a<10?"00"+a:a<100?"0"+a:""+a)},t.prototype._getNum=function(){for(var t=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],e="",n=0;n<32;n++){e+=t[parseInt((61*Math.random()).toString())]}return e},t.prototype._getToken=function(e,n){var i=this,t=i._getNum().toString(),r=i._getNowTime().toString(),o=t,s=i.mAppid+"1"+t+r+o+"1.0"+this.cmAppKey,a=c.MD5(s).toString();YDRZ.getTokenInfo({data:{version:"1.0",appId:i.mAppid,sign:a,openType:"0",traceId:o,timestamp:r},success:function(t){l.log("cm getToken result: "+JSON.stringify(t),i.getType()),"103000"===t.code?e(i.buildTokenMsg({token:t.token,user_information:t.userInformation})):n(t.code+"|"+t.message)},error:function(t){l.log("cm getToken error: "+JSON.stringify(t),i.getType()),n(t.code+"|"+t.message+"|"+t.msgId)}})},t.prototype.loginAuth=function(r){var o=this,s=this;return new Promise(function(t,e){if(s.isSupport())if(l.isEmpty(o.mAppid))e("CM appid is empty");else if("undefined"==typeof YDRZAuthLogin)var n=0,i=setInterval(function(){n++,"undefined"!=typeof YDRZAuthLogin?(s._loginAuth(t,e,r),clearInterval(i)):n>=u.JGCons.OPERATOR.CM_CHECK_SRC_COUNT?(e("load YDRZAuthLogin failed"),clearInterval(i)):l.log("try to load YDRZAuthLogin times:"+n,s.getType())},u.JGCons.OPERATOR.CM_CHECK_SRC_TIME);else s._loginAuth(t,e,r);else e("is not support now")})},t.prototype._loginAuth=function(o,s,t){var a=this,c=this;h.http({url:u.JGCons.REQUEST.URL_LOGIN_SIGN_CM,method:"GET",param:{appKey:this.mAppKey},async:!0,header:!0}).then(function(t){var e=JSON.parse(t.result),n="0";"0/1/2"==a.mCMOpenType&&(n=a.mCMOpenType);var i={version:"2.0",timestamp:e.timestamp,appId:c.mAppid,appkey:"0242CB62691821785A700E2A94B014FF",businessType:"8",openType:n,traceId:e.msgId,expandParams:"",isTest:""},r=i.appId+i.businessType+i.traceId+i.timestamp+i.traceId+i.version+i.appkey;p.MD5(r).toString();a.setCMUI(),YDRZAuthLogin.getTokenInfo({data:{version:i.version,appId:i.appId,sign:e.sign,traceId:i.traceId,timestamp:i.timestamp,openType:i.openType,expandParams:i.expandParams,isTest:i.isTest,authPageType:"2"},success:function(t){l.log("getTokenInfo result: "+JSON.stringify(t),c.getType()),"103000"===t.code?o(c.buildLoginMsg({token:t.token,user_information:t.userInformation,isNewCmToken:1})):s(t.code+"|"+t.message+"|"+t.msgId)},error:function(t){l.log("authGetToken getToken error: "+JSON.stringify(t),c.getType()),t.YDData?"501"==t.YDData.code?(window.parent.postMessage("-1",u.JGCons.HTML_URL),s("-1|"+JSON.stringify(t)+"|"+t.msgId)):s(t.YDData.code+"|"+JSON.stringify(t)+"|"+t.msgId):"501"==t.code?(window.parent.postMessage("-1",u.JGCons.HTML_URL),s("-1|"+t.message+"|"+t.msgId)):s(t.code+"|"+t.message+"|"+t.msgId)},layerCallback:function(t){l.log("layerCallback: "+JSON.stringify(t)),"103000"==t.code&&window.parent.postMessage("004",u.JGCons.HTML_URL)},clickListenerCallback:function(t){l.log("clickListenerCallback: "+JSON.stringify(t)),"2"==t.code&&(t.checked?window.parent.postMessage("001",u.JGCons.HTML_URL):window.parent.postMessage("002",u.JGCons.HTML_URL))},authLoadSuccess:function(t){l.log("authLoadSuccess: "+JSON.stringify(t)),"103000"==t.code&&(window.parent.postMessage("006",u.JGCons.HTML_URL),c.mPreloginCallback())}})}).catch(function(t){s("request sign failed")})},t.prototype.setCMUI=function(){var t=0<=u.JGCons.CUSTOMUI.logo.length&&"/image/logo.png"!=u.JGCons.CUSTOMUI.logo?u.JGCons.CUSTOMUI.logo:u.JGCons.IFRAME_URL+"/scripts/5.1.3/image/logo.png",e=0<u.JGCons.CUSTOMUI.appName.length&&"应用名称"!=u.JGCons.CUSTOMUI.appName?u.JGCons.CUSTOMUI.appName:"本机号码登录",n=0<u.JGCons.CUSTOMUI.loginBtnColor.length?u.JGCons.CUSTOMUI.loginBtnColor:"",i=0<u.JGCons.CUSTOMUI.loginTextColor.length?u.JGCons.CUSTOMUI.loginTextColor:"",r=[];0<u.JGCons.CUSTOMUI.customPolicyLink1[0].length&&r.push({name:u.JGCons.CUSTOMUI.customPolicyLink1[0],url:u.JGCons.CUSTOMUI.customPolicyLink1[1]}),0<u.JGCons.CUSTOMUI.customPolicyLink2[0].length&&r.push({name:u.JGCons.CUSTOMUI.customPolicyLink2[0],url:u.JGCons.CUSTOMUI.customPolicyLink2[1]}),0<u.JGCons.CUSTOMUI.customPolicyLink3[0].length&&r.push({name:u.JGCons.CUSTOMUI.customPolicyLink3[0],url:u.JGCons.CUSTOMUI.customPolicyLink3[1]});var o=0<u.JGCons.CUSTOMUI.customPolicyLinkColor.length?u.JGCons.CUSTOMUI.customPolicyLinkColor:"",s=document.getElementById("ydrzCustomControls"),a=!(!s||"DIV"!==s.tagName),c={logoStyle:{width:"60px",height:"60px",high:"30px",url:t},layerStyle:{width:a?"":"320px",height:"300px",bgColor:a?"transparent":"#ffffff",borderRadius:"23px"},maskStyle:{ifShowMask:!a,bgColor:"",opacity:""},phoneStyle:{fontSize:"",fontColor:"#000000",high:"130px",left:"center"},agreeStyle:{fontSize:"",textalign:"",fontColor:"",hrefColor:o,high:"230px",left:"",agreeArr:r},closeBtnStyle:{ifShowBtn:!0,btnImage:"",top:"",right:"",width:"",height:""},submitBtnStyle:{ifShow:!0,high:"170px",fontColor:i,bgColor:n},titleStyle:{ifShow:!0,high:"100px",name:e}};YDRZAuthLogin.CustomControlsInit("ydrzCustomControls",c)},t}(o.Operater);e.OperaterCM=s},function(t,e,n){var i;t.exports=(i=n(0),function(){if("function"==typeof ArrayBuffer){var t=i.lib.WordArray,r=t.init;(t.init=function(t){if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),(t instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)),t instanceof Uint8Array){for(var e=t.byteLength,n=[],i=0;i<e;i++)n[i>>>2]|=t[i]<<24-i%4*8;r.call(this,n,e)}else r.apply(this,arguments)}).prototype=t}}(),i.lib.WordArray)},function(t,e,n){var i;t.exports=(i=n(0),function(){var t=i,r=t.lib.WordArray,e=t.enc;function s(t){return t<<8&4278255360|t>>>8&16711935}e.Utf16=e.Utf16BE={stringify:function(t){for(var e=t.words,n=t.sigBytes,i=[],r=0;r<n;r+=2){var o=e[r>>>2]>>>16-r%4*8&65535;i.push(String.fromCharCode(o))}return i.join("")},parse:function(t){for(var e=t.length,n=[],i=0;i<e;i++)n[i>>>1]|=t.charCodeAt(i)<<16-i%2*16;return r.create(n,2*e)}},e.Utf16LE={stringify:function(t){for(var e=t.words,n=t.sigBytes,i=[],r=0;r<n;r+=2){var o=s(e[r>>>2]>>>16-r%4*8&65535);i.push(String.fromCharCode(o))}return i.join("")},parse:function(t){for(var e=t.length,n=[],i=0;i<e;i++)n[i>>>1]|=s(t.charCodeAt(i)<<16-i%2*16);return r.create(n,2*e)}}}(),i.enc.Utf16)},function(t,e,n){var i,r,o,s,a,c;t.exports=(i=n(0),n(15),o=(r=i).lib.WordArray,s=r.algo,a=s.SHA256,c=s.SHA224=a.extend({_doReset:function(){this._hash=new o.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var t=a._doFinalize.call(this);return t.sigBytes-=4,t}}),r.SHA224=a._createHelper(c),r.HmacSHA224=a._createHmacHelper(c),i.SHA224)},function(t,e,n){var i,r,o,s,a,c,u,h;t.exports=(i=n(0),n(10),n(16),o=(r=i).x64,s=o.Word,a=o.WordArray,c=r.algo,u=c.SHA512,h=c.SHA384=u.extend({_doReset:function(){this._hash=new a.init([new s.init(3418070365,3238371032),new s.init(1654270250,914150663),new s.init(2438529370,812702999),new s.init(355462360,4144912697),new s.init(1731405415,4290775857),new s.init(2394180231,1750603025),new s.init(3675008525,1694076839),new s.init(1203062813,3204075428)])},_doFinalize:function(){var t=u._doFinalize.call(this);return t.sigBytes-=16,t}}),r.SHA384=u._createHelper(h),r.HmacSHA384=u._createHmacHelper(h),i.SHA384)},function(t,e,n){var o;t.exports=(o=n(0),n(10),function(p){var t=o,e=t.lib,f=e.WordArray,i=e.Hasher,h=t.x64.Word,n=t.algo,M=[],k=[],U=[];!function(){for(var t=1,e=0,n=0;n<24;n++){M[t+5*e]=(n+1)*(n+2)/2%64;var i=(2*t+3*e)%5;t=e%5,e=i}for(t=0;t<5;t++)for(e=0;e<5;e++)k[t+5*e]=e+(2*t+3*e)%5*5;for(var r=1,o=0;o<24;o++){for(var s=0,a=0,c=0;c<7;c++){if(1&r){var u=(1<<c)-1;u<32?a^=1<<u:s^=1<<u-32}128&r?r=r<<1^113:r<<=1}U[o]=h.create(s,a)}}();var R=[];!function(){for(var t=0;t<25;t++)R[t]=h.create()}();var r=n.SHA3=i.extend({cfg:i.cfg.extend({outputLength:512}),_doReset:function(){for(var t=this._state=[],e=0;e<25;e++)t[e]=new h.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(t,e){for(var n=this._state,i=this.blockSize/2,r=0;r<i;r++){var o=t[e+2*r],s=t[e+2*r+1];o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),s=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),(_=n[r]).high^=s,_.low^=o}for(var a=0;a<24;a++){for(var c=0;c<5;c++){for(var u=0,h=0,l=0;l<5;l++)u^=(_=n[c+5*l]).high,h^=_.low;var p=R[c];p.high=u,p.low=h}for(c=0;c<5;c++){var f=R[(c+4)%5],d=R[(c+1)%5],g=d.high,m=d.low;for(u=f.high^(g<<1|m>>>31),h=f.low^(m<<1|g>>>31),l=0;l<5;l++)(_=n[c+5*l]).high^=u,_.low^=h}for(var y=1;y<25;y++){var v=(_=n[y]).high,C=_.low,T=M[y];h=T<32?(u=v<<T|C>>>32-T,C<<T|v>>>32-T):(u=C<<T-32|v>>>64-T,v<<T-32|C>>>64-T);var E=R[k[y]];E.high=u,E.low=h}var S=R[0],O=n[0];for(S.high=O.high,S.low=O.low,c=0;c<5;c++)for(l=0;l<5;l++){var _=n[y=c+5*l],A=R[y],I=R[(c+1)%5+5*l],b=R[(c+2)%5+5*l];_.high=A.high^~I.high&b.high,_.low=A.low^~I.low&b.low}_=n[0];var w=U[a];_.high^=w.high,_.low^=w.low}},_doFinalize:function(){var t=this._data,e=t.words,n=(this._nDataBytes,8*t.sigBytes),i=32*this.blockSize;e[n>>>5]|=1<<24-n%32,e[(p.ceil((n+1)/i)*i>>>5)-1]|=128,t.sigBytes=4*e.length,this._process();for(var r=this._state,o=this.cfg.outputLength/8,s=o/8,a=[],c=0;c<s;c++){var u=r[c],h=u.high,l=u.low;h=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),l=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8),a.push(l),a.push(h)}return new f.init(a,o)},clone:function(){for(var t=i.clone.call(this),e=t._state=this._state.slice(0),n=0;n<25;n++)e[n]=e[n].clone();return t}});t.SHA3=i._createHelper(r),t.HmacSHA3=i._createHmacHelper(r)}(Math),o.SHA3)},function(t,e,n){var a;t.exports=(a=n(0),
/** @preserve
(c) 2012 by Cédric Mesnil. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
function(t){var e=a,n=e.lib,i=n.WordArray,r=n.Hasher,o=e.algo,O=i.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),_=i.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),A=i.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),I=i.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),b=i.create([0,1518500249,1859775393,2400959708,2840853838]),w=i.create([1352829926,1548603684,1836072691,2053994217,0]),s=o.RIPEMD160=r.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=0;n<16;n++){var i=e+n,r=t[i];t[i]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}var o,s,a,c,u,h,l,p,f,d,g,m=this._hash.words,y=b.words,v=w.words,C=O.words,T=_.words,E=A.words,S=I.words;for(h=o=m[0],l=s=m[1],p=a=m[2],f=c=m[3],d=u=m[4],n=0;n<80;n+=1)g=o+t[e+C[n]]|0,g+=n<16?M(s,a,c)+y[0]:n<32?k(s,a,c)+y[1]:n<48?U(s,a,c)+y[2]:n<64?R(s,a,c)+y[3]:B(s,a,c)+y[4],g=(g=x(g|=0,E[n]))+u|0,o=u,u=c,c=x(a,10),a=s,s=g,g=h+t[e+T[n]]|0,g+=n<16?B(l,p,f)+v[0]:n<32?R(l,p,f)+v[1]:n<48?U(l,p,f)+v[2]:n<64?k(l,p,f)+v[3]:M(l,p,f)+v[4],g=(g=x(g|=0,S[n]))+d|0,h=d,d=f,f=x(p,10),p=l,l=g;g=m[1]+a+f|0,m[1]=m[2]+c+d|0,m[2]=m[3]+u+h|0,m[3]=m[4]+o+l|0,m[4]=m[0]+s+p|0,m[0]=g},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;e[i>>>5]|=128<<24-i%32,e[14+(i+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),t.sigBytes=4*(e.length+1),this._process();for(var r=this._hash,o=r.words,s=0;s<5;s++){var a=o[s];o[s]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}return r},clone:function(){var t=r.clone.call(this);return t._hash=this._hash.clone(),t}});function M(t,e,n){return t^e^n}function k(t,e,n){return t&e|~t&n}function U(t,e,n){return(t|~e)^n}function R(t,e,n){return t&n|e&~n}function B(t,e,n){return t^(e|~n)}function x(t,e){return t<<e|t>>>32-e}e.RIPEMD160=r._createHelper(s),e.HmacRIPEMD160=r._createHmacHelper(s)}(Math),a.RIPEMD160)},function(t,e,n){var i,r,o,s,y,a,c,v,u;t.exports=(i=n(0),n(12),n(13),o=(r=i).lib,s=o.Base,y=o.WordArray,a=r.algo,c=a.SHA1,v=a.HMAC,u=a.PBKDF2=s.extend({cfg:s.extend({keySize:4,hasher:c,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var n=this.cfg,i=v.create(n.hasher,t),r=y.create(),o=y.create([1]),s=r.words,a=o.words,c=n.keySize,u=n.iterations;s.length<c;){var h=i.update(e).finalize(o);i.reset();for(var l=h.words,p=l.length,f=h,d=1;d<u;d++){f=i.finalize(f),i.reset();for(var g=f.words,m=0;m<p;m++)l[m]^=g[m]}r.concat(h),a[0]++}return r.sigBytes=4*c,r}}),r.PBKDF2=function(t,e,n){return u.create(n).compute(t,e)},i.PBKDF2)},function(t,e,n){var i;t.exports=(i=n(0),n(1),i.mode.CFB=function(){var t=i.lib.BlockCipherMode.extend();function o(t,e,n,i){var r=this._iv;if(r){var o=r.slice(0);this._iv=void 0}else o=this._prevBlock;i.encryptBlock(o,0);for(var s=0;s<n;s++)t[e+s]^=o[s]}return t.Encryptor=t.extend({processBlock:function(t,e){var n=this._cipher,i=n.blockSize;o.call(this,t,e,i,n),this._prevBlock=t.slice(e,e+i)}}),t.Decryptor=t.extend({processBlock:function(t,e){var n=this._cipher,i=n.blockSize,r=t.slice(e,e+i);o.call(this,t,e,i,n),this._prevBlock=r}}),t}(),i.mode.CFB)},function(t,e,n){var i,r,o;t.exports=(i=n(0),n(1),i.mode.CTR=(r=i.lib.BlockCipherMode.extend(),o=r.Encryptor=r.extend({processBlock:function(t,e){var n=this._cipher,i=n.blockSize,r=this._iv,o=this._counter;r&&(o=this._counter=r.slice(0),this._iv=void 0);var s=o.slice(0);n.encryptBlock(s,0),o[i-1]=o[i-1]+1|0;for(var a=0;a<i;a++)t[e+a]^=s[a]}}),r.Decryptor=o,r),i.mode.CTR)},function(t,e,n){var i;t.exports=(i=n(0),n(1),
/** @preserve
* Counter block mode compatible with Dr Brian Gladman fileenc.c
* derived from CryptoJS.mode.CTR
* Jan Hruby jhruby.web@gmail.com
*/
i.mode.CTRGladman=function(){var t=i.lib.BlockCipherMode.extend();function u(t){if(255==(t>>24&255)){var e=t>>16&255,n=t>>8&255,i=255&t;255===e?(e=0,255===n?(n=0,255===i?i=0:++i):++n):++e,t=0,t+=e<<16,t+=n<<8,t+=i}else t+=1<<24;return t}var e=t.Encryptor=t.extend({processBlock:function(t,e){var n,i=this._cipher,r=i.blockSize,o=this._iv,s=this._counter;o&&(s=this._counter=o.slice(0),this._iv=void 0),0===((n=s)[0]=u(n[0]))&&(n[1]=u(n[1]));var a=s.slice(0);i.encryptBlock(a,0);for(var c=0;c<r;c++)t[e+c]^=a[c]}});return t.Decryptor=e,t}(),i.mode.CTRGladman)},function(t,e,n){var i,r,o;t.exports=(i=n(0),n(1),i.mode.OFB=(r=i.lib.BlockCipherMode.extend(),o=r.Encryptor=r.extend({processBlock:function(t,e){var n=this._cipher,i=n.blockSize,r=this._iv,o=this._keystream;r&&(o=this._keystream=r.slice(0),this._iv=void 0),n.encryptBlock(o,0);for(var s=0;s<i;s++)t[e+s]^=o[s]}}),r.Decryptor=o,r),i.mode.OFB)},function(t,e,n){var i,r;t.exports=(i=n(0),n(1),i.mode.ECB=((r=i.lib.BlockCipherMode.extend()).Encryptor=r.extend({processBlock:function(t,e){this._cipher.encryptBlock(t,e)}}),r.Decryptor=r.extend({processBlock:function(t,e){this._cipher.decryptBlock(t,e)}}),r),i.mode.ECB)},function(t,e,n){var i;t.exports=(i=n(0),n(1),i.pad.AnsiX923={pad:function(t,e){var n=t.sigBytes,i=4*e,r=i-n%i,o=n+r-1;t.clamp(),t.words[o>>>2]|=r<<24-o%4*8,t.sigBytes+=r},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},i.pad.Ansix923)},function(t,e,n){var r;t.exports=(r=n(0),n(1),r.pad.Iso10126={pad:function(t,e){var n=4*e,i=n-t.sigBytes%n;t.concat(r.lib.WordArray.random(i-1)).concat(r.lib.WordArray.create([i<<24],1))},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},r.pad.Iso10126)},function(t,e,n){var i;t.exports=(i=n(0),n(1),i.pad.Iso97971={pad:function(t,e){t.concat(i.lib.WordArray.create([2147483648],1)),i.pad.ZeroPadding.pad(t,e)},unpad:function(t){i.pad.ZeroPadding.unpad(t),t.sigBytes--}},i.pad.Iso97971)},function(t,e,n){var i;t.exports=(i=n(0),n(1),i.pad.ZeroPadding={pad:function(t,e){var n=4*e;t.clamp(),t.sigBytes+=n-(t.sigBytes%n||n)},unpad:function(t){for(var e=t.words,n=t.sigBytes-1;!(e[n>>>2]>>>24-n%4*8&255);)n--;t.sigBytes=n+1}},i.pad.ZeroPadding)},function(t,e,n){var i;t.exports=(i=n(0),n(1),i.pad.NoPadding={pad:function(){},unpad:function(){}},i.pad.NoPadding)},function(t,e,n){var i,r,o,s;t.exports=(i=n(0),n(1),o=(r=i).lib.CipherParams,s=r.enc.Hex,r.format.Hex={stringify:function(t){return t.ciphertext.toString(s)},parse:function(t){var e=s.parse(t);return o.create({ciphertext:e})}},i.format.Hex)},function(t,e,n){var r;t.exports=(r=n(0),n(5),n(6),n(4),n(1),function(){var t=r,e=t.lib.BlockCipher,n=t.algo,u=[],h=[],l=[],p=[],f=[],d=[],g=[],m=[],y=[],v=[];!function(){for(var t=[],e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;var n=0,i=0;for(e=0;e<256;e++){var r=i^i<<1^i<<2^i<<3^i<<4;r=r>>>8^255&r^99,u[n]=r;var o=t[h[r]=n],s=t[o],a=t[s],c=257*t[r]^16843008*r;l[n]=c<<24|c>>>8,p[n]=c<<16|c>>>16,f[n]=c<<8|c>>>24,d[n]=c,c=16843009*a^65537*s^257*o^16843008*n,g[r]=c<<24|c>>>8,m[r]=c<<16|c>>>16,y[r]=c<<8|c>>>24,v[r]=c,n?(n=o^t[t[t[a^o]]],i^=t[t[i]]):n=i=1}}();var C=[0,1,2,4,8,16,32,64,128,27,54],i=n.AES=e.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,e=t.words,n=t.sigBytes/4,i=4*((this._nRounds=n+6)+1),r=this._keySchedule=[],o=0;o<i;o++)if(o<n)r[o]=e[o];else{var s=r[o-1];o%n?6<n&&o%n==4&&(s=u[s>>>24]<<24|u[s>>>16&255]<<16|u[s>>>8&255]<<8|u[255&s]):(s=u[(s=s<<8|s>>>24)>>>24]<<24|u[s>>>16&255]<<16|u[s>>>8&255]<<8|u[255&s],s^=C[o/n|0]<<24),r[o]=r[o-n]^s}for(var a=this._invKeySchedule=[],c=0;c<i;c++)o=i-c,s=c%4?r[o]:r[o-4],a[c]=c<4||o<=4?s:g[u[s>>>24]]^m[u[s>>>16&255]]^y[u[s>>>8&255]]^v[u[255&s]]}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,l,p,f,d,u)},decryptBlock:function(t,e){var n=t[e+1];t[e+1]=t[e+3],t[e+3]=n,this._doCryptBlock(t,e,this._invKeySchedule,g,m,y,v,h),n=t[e+1],t[e+1]=t[e+3],t[e+3]=n},_doCryptBlock:function(t,e,n,i,r,o,s,a){for(var c=this._nRounds,u=t[e]^n[0],h=t[e+1]^n[1],l=t[e+2]^n[2],p=t[e+3]^n[3],f=4,d=1;d<c;d++){var g=i[u>>>24]^r[h>>>16&255]^o[l>>>8&255]^s[255&p]^n[f++],m=i[h>>>24]^r[l>>>16&255]^o[p>>>8&255]^s[255&u]^n[f++],y=i[l>>>24]^r[p>>>16&255]^o[u>>>8&255]^s[255&h]^n[f++],v=i[p>>>24]^r[u>>>16&255]^o[h>>>8&255]^s[255&l]^n[f++];u=g,h=m,l=y,p=v}g=(a[u>>>24]<<24|a[h>>>16&255]<<16|a[l>>>8&255]<<8|a[255&p])^n[f++],m=(a[h>>>24]<<24|a[l>>>16&255]<<16|a[p>>>8&255]<<8|a[255&u])^n[f++],y=(a[l>>>24]<<24|a[p>>>16&255]<<16|a[u>>>8&255]<<8|a[255&h])^n[f++],v=(a[p>>>24]<<24|a[u>>>16&255]<<16|a[h>>>8&255]<<8|a[255&l])^n[f++],t[e]=g,t[e+1]=m,t[e+2]=y,t[e+3]=v},keySize:8});t.AES=e._createHelper(i)}(),r.AES)},function(t,e,n){var a;t.exports=(a=n(0),n(5),n(6),n(4),n(1),function(){var t=a,e=t.lib,n=e.WordArray,i=e.BlockCipher,r=t.algo,u=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],h=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],p=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],f=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],o=r.DES=i.extend({_doReset:function(){for(var t=this._key.words,e=[],n=0;n<56;n++){var i=u[n]-1;e[n]=t[i>>>5]>>>31-i%32&1}for(var r=this._subKeys=[],o=0;o<16;o++){var s=r[o]=[],a=l[o];for(n=0;n<24;n++)s[n/6|0]|=e[(h[n]-1+a)%28]<<31-n%6,s[4+(n/6|0)]|=e[28+(h[n+24]-1+a)%28]<<31-n%6;for(s[0]=s[0]<<1|s[0]>>>31,n=1;n<7;n++)s[n]=s[n]>>>4*(n-1)+3;s[7]=s[7]<<5|s[7]>>>27}var c=this._invSubKeys=[];for(n=0;n<16;n++)c[n]=r[15-n]},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._subKeys)},decryptBlock:function(t,e){this._doCryptBlock(t,e,this._invSubKeys)},_doCryptBlock:function(t,e,n){this._lBlock=t[e],this._rBlock=t[e+1],d.call(this,4,252645135),d.call(this,16,65535),g.call(this,2,858993459),g.call(this,8,16711935),d.call(this,1,1431655765);for(var i=0;i<16;i++){for(var r=n[i],o=this._lBlock,s=this._rBlock,a=0,c=0;c<8;c++)a|=p[c][((s^r[c])&f[c])>>>0];this._lBlock=s,this._rBlock=o^a}var u=this._lBlock;this._lBlock=this._rBlock,this._rBlock=u,d.call(this,1,1431655765),g.call(this,8,16711935),g.call(this,2,858993459),d.call(this,16,65535),d.call(this,4,252645135),t[e]=this._lBlock,t[e+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function d(t,e){var n=(this._lBlock>>>t^this._rBlock)&e;this._rBlock^=n,this._lBlock^=n<<t}function g(t,e){var n=(this._rBlock>>>t^this._lBlock)&e;this._lBlock^=n,this._rBlock^=n<<t}t.DES=i._createHelper(o);var s=r.TripleDES=i.extend({_doReset:function(){var t=this._key.words;this._des1=o.createEncryptor(n.create(t.slice(0,2))),this._des2=o.createEncryptor(n.create(t.slice(2,4))),this._des3=o.createEncryptor(n.create(t.slice(4,6)))},encryptBlock:function(t,e){this._des1.encryptBlock(t,e),this._des2.decryptBlock(t,e),this._des3.encryptBlock(t,e)},decryptBlock:function(t,e){this._des3.decryptBlock(t,e),this._des2.encryptBlock(t,e),this._des1.decryptBlock(t,e)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=i._createHelper(s)}(),a.TripleDES)},function(t,e,n){var s;t.exports=(s=n(0),n(5),n(6),n(4),n(1),function(){var t=s,e=t.lib.StreamCipher,n=t.algo,i=n.RC4=e.extend({_doReset:function(){for(var t=this._key,e=t.words,n=t.sigBytes,i=this._S=[],r=0;r<256;r++)i[r]=r;for(var o=r=0;r<256;r++){var s=r%n,a=e[s>>>2]>>>24-s%4*8&255;o=(o+i[r]+a)%256;var c=i[r];i[r]=i[o],i[o]=c}this._i=this._j=0},_doProcessBlock:function(t,e){t[e]^=r.call(this)},keySize:8,ivSize:0});function r(){for(var t=this._S,e=this._i,n=this._j,i=0,r=0;r<4;r++){n=(n+t[e=(e+1)%256])%256;var o=t[e];t[e]=t[n],t[n]=o,i|=t[(t[e]+t[n])%256]<<24-8*r}return this._i=e,this._j=n,i}t.RC4=e._createHelper(i);var o=n.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var t=this.cfg.drop;0<t;t--)r.call(this)}});t.RC4Drop=e._createHelper(o)}(),s.RC4)},function(t,e,n){var o;t.exports=(o=n(0),n(5),n(6),n(4),n(1),function(){var t=o,e=t.lib.StreamCipher,n=t.algo,r=[],c=[],u=[],i=n.Rabbit=e.extend({_doReset:function(){for(var t=this._key.words,e=this.cfg.iv,n=0;n<4;n++)t[n]=16711935&(t[n]<<8|t[n]>>>24)|4278255360&(t[n]<<24|t[n]>>>8);var i=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],r=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];for(n=this._b=0;n<4;n++)p.call(this);for(n=0;n<8;n++)r[n]^=i[n+4&7];if(e){var o=e.words,s=o[0],a=o[1],c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),h=c>>>16|4294901760&u,l=u<<16|65535&c;for(r[0]^=c,r[1]^=h,r[2]^=u,r[3]^=l,r[4]^=c,r[5]^=h,r[6]^=u,r[7]^=l,n=0;n<4;n++)p.call(this)}},_doProcessBlock:function(t,e){var n=this._X;p.call(this),r[0]=n[0]^n[5]>>>16^n[3]<<16,r[1]=n[2]^n[7]>>>16^n[5]<<16,r[2]=n[4]^n[1]>>>16^n[7]<<16,r[3]=n[6]^n[3]>>>16^n[1]<<16;for(var i=0;i<4;i++)r[i]=16711935&(r[i]<<8|r[i]>>>24)|4278255360&(r[i]<<24|r[i]>>>8),t[e+i]^=r[i]},blockSize:4,ivSize:2});function p(){for(var t=this._X,e=this._C,n=0;n<8;n++)c[n]=e[n];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<c[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<c[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<c[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<c[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<c[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<c[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<c[6]>>>0?1:0)|0,this._b=e[7]>>>0<c[7]>>>0?1:0,n=0;n<8;n++){var i=t[n]+e[n],r=65535&i,o=i>>>16,s=((r*r>>>17)+r*o>>>15)+o*o,a=((4294901760&i)*i|0)+((65535&i)*i|0);u[n]=s^a}t[0]=u[0]+(u[7]<<16|u[7]>>>16)+(u[6]<<16|u[6]>>>16)|0,t[1]=u[1]+(u[0]<<8|u[0]>>>24)+u[7]|0,t[2]=u[2]+(u[1]<<16|u[1]>>>16)+(u[0]<<16|u[0]>>>16)|0,t[3]=u[3]+(u[2]<<8|u[2]>>>24)+u[1]|0,t[4]=u[4]+(u[3]<<16|u[3]>>>16)+(u[2]<<16|u[2]>>>16)|0,t[5]=u[5]+(u[4]<<8|u[4]>>>24)+u[3]|0,t[6]=u[6]+(u[5]<<16|u[5]>>>16)+(u[4]<<16|u[4]>>>16)|0,t[7]=u[7]+(u[6]<<8|u[6]>>>24)+u[5]|0}t.Rabbit=e._createHelper(i)}(),o.Rabbit)},function(t,e,n){var o;t.exports=(o=n(0),n(5),n(6),n(4),n(1),function(){var t=o,e=t.lib.StreamCipher,n=t.algo,r=[],c=[],u=[],i=n.RabbitLegacy=e.extend({_doReset:function(){for(var t=this._key.words,e=this.cfg.iv,n=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],i=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]],r=this._b=0;r<4;r++)p.call(this);for(r=0;r<8;r++)i[r]^=n[r+4&7];if(e){var o=e.words,s=o[0],a=o[1],c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),h=c>>>16|4294901760&u,l=u<<16|65535&c;for(i[0]^=c,i[1]^=h,i[2]^=u,i[3]^=l,i[4]^=c,i[5]^=h,i[6]^=u,i[7]^=l,r=0;r<4;r++)p.call(this)}},_doProcessBlock:function(t,e){var n=this._X;p.call(this),r[0]=n[0]^n[5]>>>16^n[3]<<16,r[1]=n[2]^n[7]>>>16^n[5]<<16,r[2]=n[4]^n[1]>>>16^n[7]<<16,r[3]=n[6]^n[3]>>>16^n[1]<<16;for(var i=0;i<4;i++)r[i]=16711935&(r[i]<<8|r[i]>>>24)|4278255360&(r[i]<<24|r[i]>>>8),t[e+i]^=r[i]},blockSize:4,ivSize:2});function p(){for(var t=this._X,e=this._C,n=0;n<8;n++)c[n]=e[n];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<c[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<c[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<c[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<c[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<c[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<c[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<c[6]>>>0?1:0)|0,this._b=e[7]>>>0<c[7]>>>0?1:0,n=0;n<8;n++){var i=t[n]+e[n],r=65535&i,o=i>>>16,s=((r*r>>>17)+r*o>>>15)+o*o,a=((4294901760&i)*i|0)+((65535&i)*i|0);u[n]=s^a}t[0]=u[0]+(u[7]<<16|u[7]>>>16)+(u[6]<<16|u[6]>>>16)|0,t[1]=u[1]+(u[0]<<8|u[0]>>>24)+u[7]|0,t[2]=u[2]+(u[1]<<16|u[1]>>>16)+(u[0]<<16|u[0]>>>16)|0,t[3]=u[3]+(u[2]<<8|u[2]>>>24)+u[1]|0,t[4]=u[4]+(u[3]<<16|u[3]>>>16)+(u[2]<<16|u[2]>>>16)|0,t[5]=u[5]+(u[4]<<8|u[4]>>>24)+u[3]|0,t[6]=u[6]+(u[5]<<16|u[5]>>>16)+(u[4]<<16|u[4]>>>16)|0,t[7]=u[7]+(u[6]<<8|u[6]>>>24)+u[5]|0}t.RabbitLegacy=e._createHelper(i)}(),o.RabbitLegacy)},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});e.__esModule=!0;var a=n(2),o=n(11),c=n(3),s=n(8),u=n(48),h=function(e){function t(t){return e.call(this,a.JGCons.OPERATOR.CU,a.JGCons.OPERATOR.CU_SUPPORT,t)||this}return r(t,e),t.prototype.init=function(){if(this.isSupport()&&!this.isInit()){c.log("init....",this.getType()),this.setInitStatu(o.Operater.INIT_ING);var t=document.createElement("span");t.id="b",document.body.appendChild(t),window.signType="A",c.addScript(a.JGCons.IFRAME_URL+"/scripts/5.1.6/sdk/cu2/1.0.0/jquery.js"),c.addScript(a.JGCons.IFRAME_URL+"/scripts/5.1.6/sdk/cu2/1.0.0/fingerprint2.min.1.5.1.js"),c.addScript(a.JGCons.IFRAME_URL+"/scripts/5.1.6/sdk/cu2/1.0.0/nis-h5-sdk-1.2-timeout-version.js"),c.addScript(a.JGCons.IFRAME_URL+"/scripts/5.1.6/sdk/cu2/1.0.0/ispAuthPrefetch.js"),c.addLink(a.JGCons.IFRAME_URL+"/scripts/5.1.5/css/pop.css"),window.addEventListener("message",this.receiveMessage,!1),this.setInitStatu(o.Operater.INIT_SUCC)}},t.prototype.receiveMessage=function(t){"010"==t.data&&document.getElementById("cmiframe").contentWindow.postMessage(a.JGCons.CUSTOMUI.iframeLogo,a.JGCons.IFRAME_URL)},t.prototype.getToken=function(){var r=this,o=this;return new Promise(function(t,e){if(o.isSupport())if(c.isEmpty(r.mAppid))e("CU appid is empty");else if("undefined"==typeof NisSDK)var n=0,i=setInterval(function(){n++,"undefined"!=typeof NisSDK?(o._getToken(t,e),clearInterval(i)):n>=a.JGCons.OPERATOR.CU_CHECK_SRC_COUNT?(e("load CUAU failed"),clearInterval(i)):c.log("try to load CUAU times:"+n,o.getType())},a.JGCons.OPERATOR.CU_CHECK_SRC_TIME);else o._getToken(t,e);else e("is not support now")})},t.prototype._getToken=function(e,n){var i=this,t=(new Date).getTime(),r=this.sign(t);c.log("cu sign :"+r),LTRZ.getTokenInfo({appKey:this.mAppid,authenticator:r,ts:t}).then(function(t){c.log("getToken result :"+JSON.stringify(t),i.getType()),void 0!==t.accessCode?t.operator!=a.JGCons.OPERATOR.CU?n("current operater is not CU"):e(i.buildTokenMsg({token:t.accessCode})):(c.log("cu getToken error code:"+t.code+" msg:"+t.msg,i.getType()),-2==t.code?n("-17|"+t.msg):n(t.code+"|"+t.msg+"|"+t.msgid))}).catch(function(t){c.log("cu getToken error code:"+t.code+" msg:"+t.msg,i.getType()),-2==t.code?n("-17|"+t.msg):n(t.code+"|"+t.msg)})},t.prototype.sign=function(t){var e=null!=t?t:(new Date).getTime(),n=s.http({url:a.JGCons.REQUEST.URL_SIGN_CU,method:"GET",param:{appKey:this.mAppKey,ts:e},async:!1,header:!0});c.log("cu getSign result :"+JSON.stringify(n),this.getType());var i="";return 200==n.statusCode&&(i=JSON.parse(n.result).sign),i},t.prototype.loginAuth=function(i){var r=this,o=this;return c.log("cu2 login auth",o.getType()),new Promise(function(t,e){if(o.isSupport())if(c.isEmpty(r.mAppid))e("CU appid is empty");else if("undefined"==typeof NisSDK)var n=setInterval(function(){0,"undefined"!=typeof NisSDK?(o._loginAuth(t,e,i),clearInterval(n)):e("didn't find CU LOGIN sdk")},a.JGCons.OPERATOR.CU_CHECK_SRC_TIME);else o._loginAuth(t,e,i);else e("is not support now")})},t.prototype.nisLogin=function(){var e=this;NisSDK.nisLogin().then(function(t){c.log(t,e.getType())}).catch(function(t){c.log(t,e.getType())})},t.prototype._loginAuth=function(i,r,o){var s=this;c.log("cu2 _login auth appid:"+this.mAppid,s.getType());var t=(new Date).getTime();window.login="nisLogin()";var e={authenticator:this.sign(t),clientId:this.mAppid,reqTime:t,logo:a.JGCons.OPERATOR.CU_UI.CU_LOGIN_LOGO,appName:a.JGCons.OPERATOR.CU_UI.CU_APP_NAME,appPrivacyOne:["中国联通认证服务条款","https://hs.wosms.cn/protocol/protocol.html"],appPrivacyTwo:["客户自定义条款","https://*****.html"],timeout:this.mTimeOut};Object.assign(e,a.JGCons.CUSTOMUI),c.log("ui config setting :"+JSON.stringify(e),s.getType(),!0),NisSDK.getAuthurl(e).then(function(t){if(void 0!==t.accessCode){c.log("cu getAuthurl result:"+JSON.stringify(t),s.getType());var e={code:t.code,msg:t.msg,traceId:t.traceId,operator:t.operator,pmobile:t.pmobile,accessToken:t.accessCode};if(a.JGCons.CUSTOMUI.maskPhone=e.pmobile,c.log("CU2 getAuthurl type:"+o),null!=s.operaterUI&&null!=s.operaterUI||(s.operaterUI=new u.OperaterUI,s.operaterUI.operateType=a.JGCons.OPERATOR.CU),"dialog"==o)s.operaterUI.loginAuthPop(),s.mPreloginCallback(),s._authLogin(i,r,e,o);else{var n=s.operaterUI.createIframe();n.allowFullscreen=!1,n.style.overflow="hidden",n.addEventListener("load",function(){window.parent.postMessage("006",a.JGCons.HTML_URL),s.mPreloginCallback(),c.log("CU: login Auth Page show success")}),document.body.appendChild(n),s._authLogin(i,r,e,o)}}else r(t.code+"|"+t.msg)}).catch(function(t){c.log("cu getAuthurl error code:"+t,s.getType()),c.log("cu getAuthurl error code:"+t.code+" msg:"+t.msg,s.getType()),-2==t.code?r("-17|"+t.msg):r(t.code+"|"+t.msg)})},t.prototype._authLogin=function(i,r,t,e){var o=this,s=t;window.addEventListener("message",function(t){if((t.origin==a.JGCons.IFRAME_URL||t.origin==a.JGCons.HTML_URL)&&-1!=t.data.indexOf("005")){c.log("CU2 AUTH LOGIN:"+s.pmobile,o.getType());var e=t.data.replace("005-","");if(c.isEmpty(e))return c.log("Not operating for too long maskPhone expire",o.getType()),void r("Not operating for too long maskPhone expire");if(c.isEmpty(s.accessToken))return c.log("Not operating for too long maskPhone expire",o.getType()),void r("Not operating for too long maskPhone expire");if(c.isEmpty(s.pmobile))return c.log("Not pmobile or pmobile expire",o.getType()),void r("Not pmobile or pmobile expire");var n=s.pmobile.replace("****",e);i(o.buildLoginMsg({token:s.accessToken,phone:n}))}},!1)},t}(o.Operater);e.OperaterCU=h},function(t,e,n){"use strict";e.__esModule=!0;var L=n(2),N=n(3),i=function(){function t(){var n=this;this._doKeys=function(t){var e=t.target.getAttribute("qs-data-value");if(null!=e)switch(e){case"<":this._maskPhone(e);break;case"":break;default:this._maskPhone(Number(e))}},this._keyBoardClick=function(t){var e=n;switch(t.target.nodeName){case"TD":case"IMG":e._doKeys(t)}},this._closeAuthPage=function(){N.log("js closeAuthPage"),window.parent.postMessage("-1",L.JGCons.HTML_URL)},this._selectProtocol=function(){var t=document.getElementById("jv-checkbox");document.getElementById("jv-login");t.checked?window.parent.postMessage("001",L.JGCons.HTML_URL):window.parent.postMessage("002",L.JGCons.HTML_URL)},this._loginOtherWay=function(){N.log("postMessage->loginOtherWay"),window.parent.postMessage("-2",L.JGCons.HTML_URL)}}return t.prototype.init=function(t,e){this.uiconfig=t,this.preloginInfo=e},t.prototype.createIframe=function(){var t=document.createElement("iframe");t.id="cmiframe",t.style.width="100%",t.style.height="100%",t.style.margin="0",t.style.padding="0",t.style.overflow="hidden",t.style.border="none",t.style.position="fixed",t.style.zIndex="2147483647",t.style.backgroundColor=" rgb(255, 255, 255)",t.style.left="0",t.style.top="0";var e=L.JGCons.IFRAME_URL+"/scripts/5.1.4/JVCustomUI.html?";if(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e+"maskPhone="+encodeURIComponent(L.JGCons.CUSTOMUI.maskPhone))+"&authPageType="+L.JGCons.CUSTOMUI.authPageType)+"&logo="+L.JGCons.CUSTOMUI.iframeLogoPath)+"&appName="+encodeURIComponent(L.JGCons.CUSTOMUI.appName))+"&loginBtnColor="+encodeURIComponent(L.JGCons.CUSTOMUI.loginBtnColor.replace("#","")))+"&loginTextColor="+encodeURIComponent(L.JGCons.CUSTOMUI.loginTextColor.replace("#","")))+"&isDisplayOtherWayBtn="+Boolean(L.JGCons.CUSTOMUI.isDisplayOtherWayBtn))+"&customOtherWayText="+encodeURIComponent(L.JGCons.CUSTOMUI.customOtherWayText))+"&customOtherWayTextColor="+encodeURIComponent(L.JGCons.CUSTOMUI.customOtherWayTextColor.replace("#","")))+"&customPolicyLinkColor="+encodeURIComponent(L.JGCons.CUSTOMUI.customPolicyLinkColor.replace("#","")),this.operateType==L.JGCons.OPERATOR.CU){var n="《中国联通认证服务条款》",i="https://hs.wosms.cn/protocol/protocol.html";e=(e=e+"&customPolicyLink0_0="+encodeURIComponent(n))+"&customPolicyLink0_1="+i}else{n="《中国移动认证服务协议》",i="https://wap.cmpassport.com/resources/html/contract.html?flag=true";e=(e=e+"&customPolicyLink0_0="+encodeURIComponent(n))+"&customPolicyLink0_1="+i}return void 0!==L.JGCons.CUSTOMUI.customPolicyLink1&&0!==L.JGCons.CUSTOMUI.customPolicyLink1.length&&L.JGCons.CUSTOMUI.customPolicyLink1[0]&&L.JGCons.CUSTOMUI.customPolicyLink1[1]&&(e=(e=e+"&customPolicyLink1_0="+encodeURIComponent(L.JGCons.CUSTOMUI.customPolicyLink1[0]))+"&customPolicyLink1_1="+L.JGCons.CUSTOMUI.customPolicyLink1[1]),void 0!==L.JGCons.CUSTOMUI.customPolicyLink2&&0!==L.JGCons.CUSTOMUI.customPolicyLink2.length&&L.JGCons.CUSTOMUI.customPolicyLink2[0]&&L.JGCons.CUSTOMUI.customPolicyLink2[1]&&(e=(e=e+"&customPolicyLink2_0="+encodeURIComponent(L.JGCons.CUSTOMUI.customPolicyLink2[0]))+"&customPolicyLink2_1="+L.JGCons.CUSTOMUI.customPolicyLink2[1]),void 0!==L.JGCons.CUSTOMUI.customPolicyLink3&&0!==L.JGCons.CUSTOMUI.customPolicyLink3.length&&L.JGCons.CUSTOMUI.customPolicyLink3[0]&&L.JGCons.CUSTOMUI.customPolicyLink3[1]&&(e=(e=e+"&customPolicyLink3_0="+encodeURIComponent(L.JGCons.CUSTOMUI.customPolicyLink3[0]))+"&customPolicyLink3_1="+L.JGCons.CUSTOMUI.customPolicyLink3[1]),e=e+"&domainName="+L.JGCons.HTML_URL,console.log("iframe.src->"+e),t.src=e,t},t.prototype._maskPhone=function(t){var e=document.getElementById("inputVal3"),n=document.getElementById("inputVal4"),i=document.getElementById("inputVal5"),r=document.getElementById("inputVal6");"<"==t?r.textContent?r.textContent="":i.textContent?i.textContent="":n.textContent?n.textContent="":e.textContent&&(e.textContent=""):e.textContent?n.textContent?i.textContent?r.textContent||(window.parent.postMessage("004",L.JGCons.HTML_URL),r.textContent=t):i.textContent=t:n.textContent=t:(e.textContent=""+t,window.parent.postMessage("003",L.JGCons.HTML_URL));var o=document.getElementById("jv-login");e.textContent&&n.textContent&&i.textContent&&r.textContent?(o.disabled=!1,L.JGCons.CUSTOMUI.loginBtnColor?o.style.backgroundColor=L.JGCons.CUSTOMUI.loginBtnColor:o.style.backgroundColor="#9400D3"):(o.disabled=!0,o.style.backgroundColor="#ccc")},t.prototype._keyBordUI=function(){var t=document.getElementById("jv-pop-id-main"),e=document.createElement("script");e.type="text/css",e.src=L.JGCons.IFRAME_URL+"/scripts/5.1.4/css/keyboard.css",document.body.appendChild(e);var n,i,r=[1,2,3,4,5,6,7,8,9," ","0","<"],o=document.createElement("DIV"),s=document.createElement("DIV"),a=document.createElement("TABLE"),c=document.createElement("TBODY");o.className="qs-key-board-wrap",o.id="qs_key_board_dev",s.className="qs-key-board",s.id="qs-keyboard-id",s.addEventListener("click",this._keyBoardClick,!1);for(var u=0;u<r.length;u++){if(u%3==0&&(n=document.createElement("TR")),r[u]||0===r[u]){if((i=document.createElement("TD")).style.width="33.3%"," "==r[u])i.className="key-non-icon";else if("<"==r[u]){i.className="del-icon";var h=document.createElement("img");h.src=L.JGCons.IFRAME_URL+"/scripts/5.1.4/image/del.png",h.setAttribute("qs-data-value","<"),i.appendChild(h)}else i.innerHTML=r[u],i.className="shadow",i.setAttribute("qs-data-value",r[u]);n.appendChild(i)}u%3==2&&c.appendChild(n)}a.appendChild(c),s.appendChild(a),o.appendChild(s),t.appendChild(o)},t.prototype.loginAuthPop=function(){var r=this;N.log("create dialog div");var t=document.createElement("div");t.id="jv-pop-loginBox";var o=document.createElement("div");o.id="jv-pop-loginBoxBg",o.className="jv-popup",t.appendChild(o);var e=document.createElement("div");e.className="jv-pop-main top",e.id="jv-pop-id-main",o.appendChild(e);var n=document.createElement("div");n.className="jv-pop-main-content",e.appendChild(n);var i=document.createElement("div");i.className="jv-pop-back-area",n.appendChild(i);var s=document.createElement("img");s.className="jv-pop-img-back",s.addEventListener("click",this._closeAuthPage,!1),s.src="data:image/png;base64,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",i.appendChild(s);var a=document.createElement("div");a.className="jv-pop-head-area",n.appendChild(a);var c=document.createElement("div");c.className="jv-pop-logo-div",a.appendChild(c);var u=document.createElement("img");u.className="jv-pop-app-logo-img","/image/logo.png"==L.JGCons.CUSTOMUI.logo&&this.operateType==L.JGCons.OPERATOR.CU?u.src="/image/culogo.png":u.src=L.JGCons.CUSTOMUI.logo,c.appendChild(u);var h=document.createElement("div");h.className="jv-pop-subtitle",h.textContent="请填写本机完整号码并授权"+L.JGCons.OPERATOR.CU_UI.CU_APP_NAME+"使用",a.appendChild(h);var l=document.createElement("div");l.className="jv-pop-phone-num",a.appendChild(l);var p=L.JGCons.CUSTOMUI.maskPhone,f=p.substring(0,3),d=document.createElement("span");d.innerText=f,l.appendChild(d);for(var g=0;g<p.length;g++){var m=p.charAt(g);if(0<m.length&&"*"==m){var y=document.createElement("span");y.id="inputVal"+g,y.className="jv-pop-inputbox",l.appendChild(y)}}var v=p.substring(p.length-4,p.length),C=document.createElement("span");C.innerText=v,l.appendChild(C);var T=document.createElement("div");T.className="jv-login-div disable",T.id="jv-login",n.appendChild(T),T.addEventListener("click",function(){var t=document.getElementById("inputVal3"),e=document.getElementById("inputVal4"),n=document.getElementById("inputVal5"),i=document.getElementById("inputVal6");t.textContent&&e.textContent&&n.textContent&&i.textContent&&(document.getElementById("jv-checkbox").checked?t.textContent&&e.textContent&&n.textContent&&i.textContent&&window.parent.postMessage("005-"+t.textContent+e.textContent+n.textContent+i.textContent,L.JGCons.HTML_URL):function(t,e){e=isNaN(e)?3e3:e;var n=document.createElement("div");n.innerHTML=t,n.style.cssText="max-width:80%;min-width: 200px;padding:0 14px;height: 40px;color: rgb(255, 255, 255);line-height: 40px;text-align: center;border-radius: 4px;position: fixed;top: 50%;left: 50%;transform: translate(-50%, -50%);z-index: 9999999999;background: rgba(0, 0, 0,.7);font-size: 16px;",document.body.appendChild(n),setTimeout(function(){n.style.webkitTransition="-webkit-transform 0.5s ease-in, opacity 0.5s ease-in",n.style.opacity="0",setTimeout(function(){document.body.removeChild(n)},500)},e)}("请阅读并同意相关用户协议",5))},!1);var E=document.createElement("span");E.textContent="本机号码登录",L.JGCons.CUSTOMUI.loginTextColor?E.style.color=L.JGCons.CUSTOMUI.loginTextColor:E.style.color="#FFFFFF",T.appendChild(E);var S=document.createElement("div");S.className="jv-other-way-div",S.textContent=L.JGCons.CUSTOMUI.customOtherWayText?L.JGCons.CUSTOMUI.customOtherWayText:"其他登录方式",S.style.color=L.JGCons.CUSTOMUI.customOtherWayTextColor?L.JGCons.CUSTOMUI.customOtherWayTextColor:"#333333",S.addEventListener("click",this._loginOtherWay,!1),L.JGCons.CUSTOMUI.isDisplayOtherWayBtn?S.style.display="block":S.style.display="none",n.appendChild(S);var O=[];if(this.operateType==L.JGCons.OPERATOR.CU){var _="《中国联通认证服务条款》",A="https://hs.wosms.cn/protocol/protocol.html";O.push([_,A])}else{_="《中国移动认证服务协议》",A="https://wap.cmpassport.com/resources/html/contract.html?flag=true";O.push([_,A])}if(void 0!==L.JGCons.CUSTOMUI.customPolicyLink1&&0!==L.JGCons.CUSTOMUI.customPolicyLink1.length){var I=L.JGCons.CUSTOMUI.customPolicyLink1[0],b=L.JGCons.CUSTOMUI.customPolicyLink1[1];I&&b&&O.push([I,b])}if(void 0!==L.JGCons.CUSTOMUI.customPolicyLink2&&0!==L.JGCons.CUSTOMUI.customPolicyLink2.length){var w=L.JGCons.CUSTOMUI.customPolicyLink2[0],M=L.JGCons.CUSTOMUI.customPolicyLink2[1];w&&M&&O.push([w,M])}if(void 0!==L.JGCons.CUSTOMUI.customPolicyLink3&&0!==L.JGCons.CUSTOMUI.customPolicyLink3.length){var k=L.JGCons.CUSTOMUI.customPolicyLink3[0],U=L.JGCons.CUSTOMUI.customPolicyLink3[1];k&&U&&O.push([k,U])}(B=document.createElement("div")).className="jv-pop-agreement-div",n.appendChild(B);var R=document.createElement("input");R.id="jv-checkbox",R.type="checkbox",B.appendChild(R),R.addEventListener("click",this._selectProtocol,!1);var B,x=document.createElement("span");x.className="jv-pop-agreeement-span",B.appendChild(x),x.innerText="我已阅读并同意",x.style.color="rgb(51, 51, 51)";var D=function(t){var e=O[t],n=document.createElement("span");n.textContent=e[0],n.className="jv-pop-agreeement-policy",n.style.color=L.JGCons.CUSTOMUI.customPolicyLinkColor?L.JGCons.CUSTOMUI.customPolicyLinkColor:"#333333",x.appendChild(n);var i=e[1];n.addEventListener("click",function(){return r._openAgreementPopupArea(i,o)},!1)};for(g=0;g<O.length;g++)D(g);(B=document.createElement("div")).className="jv-login-foot",n.appendChild(B),document.body.appendChild(t),this._keyBordUI(),window.parent.postMessage("006",L.JGCons.HTML_URL),N.log("dialog div login Auth Page show success")},t.prototype._openAgreementPopupArea=function(t,e){var n=document.createElement("div");n.className="jv-pop-agreement-area",n.style.zIndex="3147483648",n.style.position="fixed";var i=document.createElement("div");i.className="jv-pop-agreement-close",i.style.height="3%",i.style.paddingTop="2%",i.style.textAlign="right",n.appendChild(i);var r=document.createElement("img");r.className="jv-pop-agreement-close-img",r.style.width="0.1em",r.style.marginRight="0.1em",r.style.verticalAlign="top",r.src="data:image/png;base64,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",i.appendChild(r),i.addEventListener("click",function(){e.removeChild(n)});var o=document.createElement("iframe");o.className="jv-pop-agreement-iframe",o.id="jv-pop-agreement-iframe",n.appendChild(o),o.src=t,e.appendChild(n)},t}();e.OperaterUI=i},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});e.__esModule=!0;var h=n(2),o=n(11),l=n(8),p=n(3),f=n(9),s=function(e){function t(t){return e.call(this,h.JGCons.OPERATOR.CT,h.JGCons.OPERATOR.CT_SUPPORT,t)||this}return r(t,e),t.prototype.init=function(){if(this.isSupport()){p.log("init....",this.getType()),this.setInitStatu(o.Operater.INIT_ING);var t=document.createElement("button");t.innerHTML="",t.id="jg-ct-fix-btn",t.style.display="none",document.body.appendChild(t),p.addScript(h.JGCons.OPERATOR.CT_LOGIN_SRC),this.setInitStatu(o.Operater.INIT_SUCC)}},t.prototype.getToken=function(){var t=this,u=this;return new Promise(function(s,a){if(u.isSupport()){var c=p.getRandomId()+p.getRandomId();p.log("aesKey:"+c,u.getType()),l.http({url:h.JGCons.REQUEST.URL_SIGN_CT,method:"GET",param:{appKey:t.mAppKey,aesKey:c},async:!0,header:!0}).then(function(t){p.log("getSign result :"+JSON.stringify(t.result),u.getType());var e="https://id6.me/auth/preauth.do?"+JSON.parse(t.result).sign;p.log("CT"+e),l.jsonp({url:e,callback:"tCallback",oSscrType:0,success:function(t){if(t.data){var e=f.enc.Utf8.parse(c),n=f.enc.Utf8.parse("0000000000000000"),i=f.enc.Hex.parse(t.data),r=f.enc.Base64.stringify(i),o=f.AES.decrypt(r,e,{iv:n,mode:f.mode.CBC,padding:f.pad.Pkcs7}).toString(f.enc.Utf8);o&&(t.data=JSON.parse(o))}p.log("getToken result:"+JSON.stringify(t),u.getType()),0==t.result?"CT"!=t.data.operatorType?a("current operater is not CT"):s(u.buildTokenMsg({token:t.data.accessCode})):a(t.result+"|"+t.msg)},fail:function(){a("request token error")}})}).catch(function(t){a("request sign failed")})}else a("is not support now")})},t.prototype.loginAuth=function(r){var o=this,s=this;return new Promise(function(t,e){if(s.isSupport())if(p.isEmpty(o.mAppid))e("CT appid is empty");else if("undefined"==typeof fjs)var n=0,i=setInterval(function(){n++,"undefined"!=typeof fjs?(s._loginAuth(t,e,r),clearInterval(i)):n>=h.JGCons.OPERATOR.CM_CHECK_SRC_COUNT?(e("load CT login fjs failed"),clearInterval(i)):p.log("try to load CT login fjs times:"+n)},h.JGCons.OPERATOR.CM_CHECK_SRC_TIME);else s._loginAuth(t,e,r);else e("is not support now")})},t.prototype._loginAuth=function(e,i,t){var r=this,n="";t&&"dialog"==t&&(n="lite"),fjs.getAccessCode({debug:!1,btnId:"jg-ct-fix-btn",appId:this.mAppid,timeout:this.mTimeOut,theme:n,getSignParams:function(t){p.log("getSignParams :"+t.encryValue,r.getType()),l.http({url:h.JGCons.REQUEST.URL_LOGIN_SIGN_CT,method:"GET",param:{appKey:r.mAppKey,encryptValue:t.encryValue},async:!0,header:!0}).then(function(t){p.log("getSign result :"+JSON.stringify(t.result),r.getType());var e=JSON.parse(t.result);fjs.setSign(e.sign)}).catch(function(t){i("request sign failed")})},ready:function(t){p.log("getToken ready: "+JSON.stringify(t),r.getType());var e=document.getElementById("jg-ct-fix-btn");try{var n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,document.defaultView,0,0,0,-1,-1,!1,!1,!1,!1,0,null),e.dispatchEvent(n),window.parent.postMessage("006",h.JGCons.HTML_URL),r.mPreloginCallback(),p.log("CT: login Auth Page show success")}catch(t){i("ct dispath event failed")}},success:function(t){p.log("getToken result: "+JSON.stringify(t),r.getType()),"0"===t.result?e(r.buildLoginMsg({token:t.accessCode})):i(t.result+"|"+t.msg)},error:function(t){"string"!=typeof t&&(p.log("getToken error->: "+JSON.stringify(t),r.getType()),i(t.result+"|"+t.msg))}})},t}(o.Operater);e.OperaterCT=s},function(t,e,n){!function(t){"use strict";var e="0123456789abcdefghijklmnopqrstuvwxyz";function c(t){return e.charAt(t)}function n(t,e){return t&e}function u(t,e){return t|e}function i(t,e){return t^e}function r(t,e){return t&~e}function o(t){if(0==t)return-1;var e=0;return 0==(65535&t)&&(t>>=16,e+=16),0==(255&t)&&(t>>=8,e+=8),0==(15&t)&&(t>>=4,e+=4),0==(3&t)&&(t>>=2,e+=2),0==(1&t)&&++e,e}function s(t){for(var e=0;0!=t;)t&=t-1,++e;return e}var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function h(t){var e,n,i="";for(e=0;e+3<=t.length;e+=3)n=parseInt(t.substring(e,e+3),16),i+=a.charAt(n>>6)+a.charAt(63&n);for(e+1==t.length?(n=parseInt(t.substring(e,e+1),16),i+=a.charAt(n<<2)):e+2==t.length&&(n=parseInt(t.substring(e,e+2),16),i+=a.charAt(n>>2)+a.charAt((3&n)<<4));0<(3&i.length);)i+="=";return i}function l(t){var e,n="",i=0,r=0;for(e=0;e<t.length&&"="!=t.charAt(e);++e){var o=a.indexOf(t.charAt(e));o<0||(i=0==i?(n+=c(o>>2),r=3&o,1):1==i?(n+=c(r<<2|o>>4),r=15&o,2):2==i?(n+=c(r),n+=c(o>>2),r=3&o,3):(n+=c(r<<2|o>>4),n+=c(15&o),0))}return 1==i&&(n+=c(r<<2)),n}
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */var p,f,d=function(t,e){return(d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},g={decode:function(t){var e;if(void 0===p){var n="0123456789ABCDEF",i=" \f\n\r\t \u2028\u2029";for(p={},e=0;e<16;++e)p[n.charAt(e)]=e;for(n=n.toLowerCase(),e=10;e<16;++e)p[n.charAt(e)]=e;for(e=0;e<i.length;++e)p[i.charAt(e)]=-1}var r=[],o=0,s=0;for(e=0;e<t.length;++e){var a=t.charAt(e);if("="==a)break;if(-1!=(a=p[a])){if(void 0===a)throw new Error("Illegal character at offset "+e);o|=a,2<=++s?(r[r.length]=o,s=o=0):o<<=4}}if(s)throw new Error("Hex encoding incomplete: 4 bits missing");return r}},m={decode:function(t){var e;if(void 0===f){var n="= \f\n\r\t \u2028\u2029";for(f=Object.create(null),e=0;e<64;++e)f["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)]=e;for(e=0;e<n.length;++e)f[n.charAt(e)]=-1}var i=[],r=0,o=0;for(e=0;e<t.length;++e){var s=t.charAt(e);if("="==s)break;if(-1!=(s=f[s])){if(void 0===s)throw new Error("Illegal character at offset "+e);r|=s,4<=++o?(i[i.length]=r>>16,i[i.length]=r>>8&255,i[i.length]=255&r,o=r=0):r<<=6}}switch(o){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:i[i.length]=r>>10;break;case 3:i[i.length]=r>>16,i[i.length]=r>>8&255}return i},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(t){var e=m.re.exec(t);if(e)if(e[1])t=e[1];else{if(!e[2])throw new Error("RegExp out of sync");t=e[2]}return m.decode(t)}},y=1e13,v=function(){function t(t){this.buf=[+t||0]}return t.prototype.mulAdd=function(t,e){var n,i,r=this.buf,o=r.length;for(n=0;n<o;++n)(i=r[n]*t+e)<y?e=0:i-=(e=0|i/y)*y,r[n]=i;0<e&&(r[n]=e)},t.prototype.sub=function(t){var e,n,i=this.buf,r=i.length;for(e=0;e<r;++e)n=i[e]-t,t=n<0?(n+=y,1):0,i[e]=n;for(;0===i[i.length-1];)i.pop()},t.prototype.toString=function(t){if(10!=(t||10))throw new Error("only base 10 is supported");for(var e=this.buf,n=e[e.length-1].toString(),i=e.length-2;0<=i;--i)n+=(y+e[i]).toString().substring(1);return n},t.prototype.valueOf=function(){for(var t=this.buf,e=0,n=t.length-1;0<=n;--n)e=e*y+t[n];return e},t.prototype.simplify=function(){var t=this.buf;return 1==t.length?t[0]:this},t}(),C="…",T=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,E=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function S(t,e){return t.length>e&&(t=t.substring(0,e)+C),t}var O,_=function(){function n(t,e){this.hexDigits="0123456789ABCDEF",this.pos=t instanceof n?(this.enc=t.enc,t.pos):(this.enc=t,e)}return n.prototype.get=function(t){if(void 0===t&&(t=this.pos++),t>=this.enc.length)throw new Error("Requesting byte offset "+t+" on a stream of length "+this.enc.length);return"string"==typeof this.enc?this.enc.charCodeAt(t):this.enc[t]},n.prototype.hexByte=function(t){return this.hexDigits.charAt(t>>4&15)+this.hexDigits.charAt(15&t)},n.prototype.hexDump=function(t,e,n){for(var i="",r=t;r<e;++r)if(i+=this.hexByte(this.get(r)),!0!==n)switch(15&r){case 7:i+=" ";break;case 15:i+="\n";break;default:i+=" "}return i},n.prototype.isASCII=function(t,e){for(var n=t;n<e;++n){var i=this.get(n);if(i<32||176<i)return!1}return!0},n.prototype.parseStringISO=function(t,e){for(var n="",i=t;i<e;++i)n+=String.fromCharCode(this.get(i));return n},n.prototype.parseStringUTF=function(t,e){for(var n="",i=t;i<e;){var r=this.get(i++);n+=r<128?String.fromCharCode(r):191<r&&r<224?String.fromCharCode((31&r)<<6|63&this.get(i++)):String.fromCharCode((15&r)<<12|(63&this.get(i++))<<6|63&this.get(i++))}return n},n.prototype.parseStringBMP=function(t,e){for(var n,i,r="",o=t;o<e;)n=this.get(o++),i=this.get(o++),r+=String.fromCharCode(n<<8|i);return r},n.prototype.parseTime=function(t,e,n){var i=this.parseStringISO(t,e),r=(n?T:E).exec(i);return r?(n&&(r[1]=+r[1],r[1]+=+r[1]<70?2e3:1900),i=r[1]+"-"+r[2]+"-"+r[3]+" "+r[4],r[5]&&(i+=":"+r[5],r[6]&&(i+=":"+r[6],r[7]&&(i+="."+r[7]))),r[8]&&(i+=" UTC","Z"!=r[8]&&(i+=r[8],r[9]&&(i+=":"+r[9]))),i):"Unrecognized time: "+i},n.prototype.parseInteger=function(t,e){for(var n,i=this.get(t),r=127<i,o=r?255:0,s="";i==o&&++t<e;)i=this.get(t);if(0==(n=e-t))return r?-1:0;if(4<n){for(s=i,n<<=3;0==(128&(+s^o));)s=+s<<1,--n;s="("+n+" bit)\n"}r&&(i-=256);for(var a=new v(i),c=t+1;c<e;++c)a.mulAdd(256,this.get(c));return s+a.toString()},n.prototype.parseBitString=function(t,e,n){for(var i=this.get(t),r=(e-t-1<<3)-i,o="("+r+" bit)\n",s="",a=t+1;a<e;++a){for(var c=this.get(a),u=a==e-1?i:0,h=7;u<=h;--h)s+=c>>h&1?"1":"0";if(s.length>n)return o+S(s,n)}return o+s},n.prototype.parseOctetString=function(t,e,n){if(this.isASCII(t,e))return S(this.parseStringISO(t,e),n);var i=e-t,r="("+i+" byte)\n";(n/=2)<i&&(e=t+n);for(var o=t;o<e;++o)r+=this.hexByte(this.get(o));return n<i&&(r+=C),r},n.prototype.parseOID=function(t,e,n){for(var i="",r=new v,o=0,s=t;s<e;++s){var a=this.get(s);if(r.mulAdd(128,127&a),o+=7,!(128&a)){if(""===i)if((r=r.simplify())instanceof v)r.sub(80),i="2."+r.toString();else{var c=r<80?r<40?0:1:2;i=c+"."+(r-40*c)}else i+="."+r.toString();if(i.length>n)return S(i,n);r=new v,o=0}}return 0<o&&(i+=".incomplete"),i},n}(),A=function(){function h(t,e,n,i,r){if(!(i instanceof I))throw new Error("Invalid tag value.");this.stream=t,this.header=e,this.length=n,this.tag=i,this.sub=r}return h.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},h.prototype.content=function(t){if(void 0===this.tag)return null;void 0===t&&(t=1/0);var e=this.posContent(),n=Math.abs(this.length);if(!this.tag.isUniversal())return null!==this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+n,t);switch(this.tag.tagNumber){case 1:return 0===this.stream.get(e)?"false":"true";case 2:return this.stream.parseInteger(e,e+n);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(e,e+n,t);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+n,t);case 6:return this.stream.parseOID(e,e+n,t);case 16:case 17:return null!==this.sub?"("+this.sub.length+" elem)":"(no elem)";case 12:return S(this.stream.parseStringUTF(e,e+n),t);case 18:case 19:case 20:case 21:case 22:case 26:return S(this.stream.parseStringISO(e,e+n),t);case 30:return S(this.stream.parseStringBMP(e,e+n),t);case 23:case 24:return this.stream.parseTime(e,e+n,23==this.tag.tagNumber)}return null},h.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(null===this.sub?"null":this.sub.length)+"]"},h.prototype.toPrettyString=function(t){void 0===t&&(t="");var e=t+this.typeName()+" @"+this.stream.pos;if(0<=this.length&&(e+="+"),e+=this.length,this.tag.tagConstructed?e+=" (constructed)":!this.tag.isUniversal()||3!=this.tag.tagNumber&&4!=this.tag.tagNumber||null===this.sub||(e+=" (encapsulates)"),e+="\n",null!==this.sub){t+=" ";for(var n=0,i=this.sub.length;n<i;++n)e+=this.sub[n].toPrettyString(t)}return e},h.prototype.posStart=function(){return this.stream.pos},h.prototype.posContent=function(){return this.stream.pos+this.header},h.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},h.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},h.decodeLength=function(t){var e=t.get(),n=127&e;if(n==e)return n;if(6<n)throw new Error("Length over 48 bits not supported at position "+(t.pos-1));if(0===n)return null;for(var i=e=0;i<n;++i)e=256*e+t.get();return e},h.prototype.getHexStringValue=function(){var t=this.toHexString(),e=2*this.header,n=2*this.length;return t.substr(e,n)},h.decode=function(t){var i;i=t instanceof _?t:new _(t,0);var e=new _(i),n=new I(i),r=h.decodeLength(i),o=i.pos,s=o-e.pos,a=null,c=function(){var t=[];if(null!==r){for(var e=o+r;i.pos<e;)t[t.length]=h.decode(i);if(i.pos!=e)throw new Error("Content size is not correct for container starting at offset "+o)}else try{for(;;){var n=h.decode(i);if(n.tag.isEOC())break;t[t.length]=n}r=o-i.pos}catch(t){throw new Error("Exception while decoding undefined length content: "+t)}return t};if(n.tagConstructed)a=c();else if(n.isUniversal()&&(3==n.tagNumber||4==n.tagNumber))try{if(3==n.tagNumber&&0!=i.get())throw new Error("BIT STRINGs with unused bits cannot encapsulate.");a=c();for(var u=0;u<a.length;++u)if(a[u].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(t){a=null}if(null===a){if(null===r)throw new Error("We can't skip over an invalid tag with undefined length at offset "+o);i.pos=o+Math.abs(r)}return new h(e,s,r,n,a)},h}(),I=function(){function t(t){var e=t.get();if(this.tagClass=e>>6,this.tagConstructed=0!=(32&e),this.tagNumber=31&e,31==this.tagNumber){for(var n=new v;e=t.get(),n.mulAdd(128,127&e),128&e;);this.tagNumber=n.simplify()}}return t.prototype.isUniversal=function(){return 0===this.tagClass},t.prototype.isEOC=function(){return 0===this.tagClass&&0===this.tagNumber},t}(),b=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],w=(1<<26)/b[b.length-1],M=function(){function C(t,e,n){null!=t&&("number"==typeof t?this.fromNumber(t,e,n):null==e&&"string"!=typeof t?this.fromString(t,256):this.fromString(t,e))}return C.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else{if(4!=t)return this.toRadix(t);e=2}var n,i=(1<<e)-1,r=!1,o="",s=this.t,a=this.DB-s*this.DB%e;if(0<s--)for(a<this.DB&&0<(n=this[s]>>a)&&(r=!0,o=c(n));0<=s;)a<e?(n=(this[s]&(1<<a)-1)<<e-a,n|=this[--s]>>(a+=this.DB-e)):(n=this[s]>>(a-=e)&i,a<=0&&(a+=this.DB,--s)),0<n&&(r=!0),r&&(o+=c(n));return r?o:"0"},C.prototype.negate=function(){var t=x();return C.ZERO.subTo(this,t),t},C.prototype.abs=function(){return this.s<0?this.negate():this},C.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var n=this.t;if(0!=(e=n-t.t))return this.s<0?-e:e;for(;0<=--n;)if(0!=(e=this[n]-t[n]))return e;return 0},C.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+H(this[this.t-1]^this.s&this.DM)},C.prototype.mod=function(t){var e=x();return this.abs().divRemTo(t,null,e),this.s<0&&0<e.compareTo(C.ZERO)&&t.subTo(e,e),e},C.prototype.modPowInt=function(t,e){var n;return n=t<256||e.isEven()?new U(e):new R(e),this.exp(t,n)},C.prototype.clone=function(){var t=x();return this.copyTo(t),t},C.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},C.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},C.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},C.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},C.prototype.toByteArray=function(){var t=this.t,e=[];e[0]=this.s;var n,i=this.DB-t*this.DB%8,r=0;if(0<t--)for(i<this.DB&&(n=this[t]>>i)!=(this.s&this.DM)>>i&&(e[r++]=n|this.s<<this.DB-i);0<=t;)i<8?(n=(this[t]&(1<<i)-1)<<8-i,n|=this[--t]>>(i+=this.DB-8)):(n=this[t]>>(i-=8)&255,i<=0&&(i+=this.DB,--t)),0!=(128&n)&&(n|=-256),0==r&&(128&this.s)!=(128&n)&&++r,(0<r||n!=this.s)&&(e[r++]=n);return e},C.prototype.equals=function(t){return 0==this.compareTo(t)},C.prototype.min=function(t){return this.compareTo(t)<0?this:t},C.prototype.max=function(t){return 0<this.compareTo(t)?this:t},C.prototype.and=function(t){var e=x();return this.bitwiseTo(t,n,e),e},C.prototype.or=function(t){var e=x();return this.bitwiseTo(t,u,e),e},C.prototype.xor=function(t){var e=x();return this.bitwiseTo(t,i,e),e},C.prototype.andNot=function(t){var e=x();return this.bitwiseTo(t,r,e),e},C.prototype.not=function(){for(var t=x(),e=0;e<this.t;++e)t[e]=this.DM&~this[e];return t.t=this.t,t.s=~this.s,t},C.prototype.shiftLeft=function(t){var e=x();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},C.prototype.shiftRight=function(t){var e=x();return t<0?this.lShiftTo(-t,e):this.rShiftTo(t,e),e},C.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(0!=this[t])return t*this.DB+o(this[t]);return this.s<0?this.t*this.DB:-1},C.prototype.bitCount=function(){for(var t=0,e=this.s&this.DM,n=0;n<this.t;++n)t+=s(this[n]^e);return t},C.prototype.testBit=function(t){var e=Math.floor(t/this.DB);return e>=this.t?0!=this.s:0!=(this[e]&1<<t%this.DB)},C.prototype.setBit=function(t){return this.changeBit(t,u)},C.prototype.clearBit=function(t){return this.changeBit(t,r)},C.prototype.flipBit=function(t){return this.changeBit(t,i)},C.prototype.add=function(t){var e=x();return this.addTo(t,e),e},C.prototype.subtract=function(t){var e=x();return this.subTo(t,e),e},C.prototype.multiply=function(t){var e=x();return this.multiplyTo(t,e),e},C.prototype.divide=function(t){var e=x();return this.divRemTo(t,e,null),e},C.prototype.remainder=function(t){var e=x();return this.divRemTo(t,null,e),e},C.prototype.divideAndRemainder=function(t){var e=x(),n=x();return this.divRemTo(t,e,n),[e,n]},C.prototype.modPow=function(t,e){var n,i,r=t.bitLength(),o=J(1);if(r<=0)return o;n=r<18?1:r<48?3:r<144?4:r<768?5:6,i=r<8?new U(e):e.isEven()?new B(e):new R(e);var s=[],a=3,c=n-1,u=(1<<n)-1;if(s[1]=i.convert(this),1<n){var h=x();for(i.sqrTo(s[1],h);a<=u;)s[a]=x(),i.mulTo(h,s[a-2],s[a]),a+=2}var l,p,f=t.t-1,d=!0,g=x();for(r=H(t[f])-1;0<=f;){for(c<=r?l=t[f]>>r-c&u:(l=(t[f]&(1<<r+1)-1)<<c-r,0<f&&(l|=t[f-1]>>this.DB+r-c)),a=n;0==(1&l);)l>>=1,--a;if((r-=a)<0&&(r+=this.DB,--f),d)s[l].copyTo(o),d=!1;else{for(;1<a;)i.sqrTo(o,g),i.sqrTo(g,o),a-=2;0<a?i.sqrTo(o,g):(p=o,o=g,g=p),i.mulTo(g,s[l],o)}for(;0<=f&&0==(t[f]&1<<r);)i.sqrTo(o,g),p=o,o=g,g=p,--r<0&&(r=this.DB-1,--f)}return i.revert(o)},C.prototype.modInverse=function(t){var e=t.isEven();if(this.isEven()&&e||0==t.signum())return C.ZERO;for(var n=t.clone(),i=this.clone(),r=J(1),o=J(0),s=J(0),a=J(1);0!=n.signum();){for(;n.isEven();)n.rShiftTo(1,n),e?(r.isEven()&&o.isEven()||(r.addTo(this,r),o.subTo(t,o)),r.rShiftTo(1,r)):o.isEven()||o.subTo(t,o),o.rShiftTo(1,o);for(;i.isEven();)i.rShiftTo(1,i),e?(s.isEven()&&a.isEven()||(s.addTo(this,s),a.subTo(t,a)),s.rShiftTo(1,s)):a.isEven()||a.subTo(t,a),a.rShiftTo(1,a);0<=n.compareTo(i)?(n.subTo(i,n),e&&r.subTo(s,r),o.subTo(a,o)):(i.subTo(n,i),e&&s.subTo(r,s),a.subTo(o,a))}return 0!=i.compareTo(C.ONE)?C.ZERO:0<=a.compareTo(t)?a.subtract(t):a.signum()<0?(a.addTo(t,a),a.signum()<0?a.add(t):a):a},C.prototype.pow=function(t){return this.exp(t,new k)},C.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),n=t.s<0?t.negate():t.clone();if(e.compareTo(n)<0){var i=e;e=n,n=i}var r=e.getLowestSetBit(),o=n.getLowestSetBit();if(o<0)return e;for(r<o&&(o=r),0<o&&(e.rShiftTo(o,e),n.rShiftTo(o,n));0<e.signum();)0<(r=e.getLowestSetBit())&&e.rShiftTo(r,e),0<(r=n.getLowestSetBit())&&n.rShiftTo(r,n),0<=e.compareTo(n)?(e.subTo(n,e),e.rShiftTo(1,e)):(n.subTo(e,n),n.rShiftTo(1,n));return 0<o&&n.lShiftTo(o,n),n},C.prototype.isProbablePrime=function(t){var e,n=this.abs();if(1==n.t&&n[0]<=b[b.length-1]){for(e=0;e<b.length;++e)if(n[0]==b[e])return!0;return!1}if(n.isEven())return!1;for(e=1;e<b.length;){for(var i=b[e],r=e+1;r<b.length&&i<w;)i*=b[r++];for(i=n.modInt(i);e<r;)if(i%b[e++]==0)return!1}return n.millerRabin(t)},C.prototype.copyTo=function(t){for(var e=this.t-1;0<=e;--e)t[e]=this[e];t.t=this.t,t.s=this.s},C.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,0<t?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},C.prototype.fromString=function(t,e){var n;if(16==e)n=4;else if(8==e)n=3;else if(256==e)n=8;else if(2==e)n=1;else if(32==e)n=5;else{if(4!=e)return void this.fromRadix(t,e);n=2}this.t=0,this.s=0;for(var i=t.length,r=!1,o=0;0<=--i;){var s=8==n?255&+t[i]:P(t,i);s<0?"-"==t.charAt(i)&&(r=!0):(r=!1,0==o?this[this.t++]=s:o+n>this.DB?(this[this.t-1]|=(s&(1<<this.DB-o)-1)<<o,this[this.t++]=s>>this.DB-o):this[this.t-1]|=s<<o,(o+=n)>=this.DB&&(o-=this.DB))}8==n&&0!=(128&+t[0])&&(this.s=-1,0<o&&(this[this.t-1]|=(1<<this.DB-o)-1<<o)),this.clamp(),r&&C.ZERO.subTo(this,this)},C.prototype.clamp=function(){for(var t=this.s&this.DM;0<this.t&&this[this.t-1]==t;)--this.t},C.prototype.dlShiftTo=function(t,e){var n;for(n=this.t-1;0<=n;--n)e[n+t]=this[n];for(n=t-1;0<=n;--n)e[n]=0;e.t=this.t+t,e.s=this.s},C.prototype.drShiftTo=function(t,e){for(var n=t;n<this.t;++n)e[n-t]=this[n];e.t=Math.max(this.t-t,0),e.s=this.s},C.prototype.lShiftTo=function(t,e){for(var n=t%this.DB,i=this.DB-n,r=(1<<i)-1,o=Math.floor(t/this.DB),s=this.s<<n&this.DM,a=this.t-1;0<=a;--a)e[a+o+1]=this[a]>>i|s,s=(this[a]&r)<<n;for(var a=o-1;0<=a;--a)e[a]=0;e[o]=s,e.t=this.t+o+1,e.s=this.s,e.clamp()},C.prototype.rShiftTo=function(t,e){e.s=this.s;var n=Math.floor(t/this.DB);if(n>=this.t)e.t=0;else{var i=t%this.DB,r=this.DB-i,o=(1<<i)-1;e[0]=this[n]>>i;for(var s=n+1;s<this.t;++s)e[s-n-1]|=(this[s]&o)<<r,e[s-n]=this[s]>>i;0<i&&(e[this.t-n-1]|=(this.s&o)<<r),e.t=this.t-n,e.clamp()}},C.prototype.subTo=function(t,e){for(var n=0,i=0,r=Math.min(t.t,this.t);n<r;)i+=this[n]-t[n],e[n++]=i&this.DM,i>>=this.DB;if(t.t<this.t){for(i-=t.s;n<this.t;)i+=this[n],e[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;n<t.t;)i-=t[n],e[n++]=i&this.DM,i>>=this.DB;i-=t.s}e.s=i<0?-1:0,i<-1?e[n++]=this.DV+i:0<i&&(e[n++]=i),e.t=n,e.clamp()},C.prototype.multiplyTo=function(t,e){var n=this.abs(),i=t.abs(),r=n.t;for(e.t=r+i.t;0<=--r;)e[r]=0;for(r=0;r<i.t;++r)e[r+n.t]=n.am(0,i[r],e,r,0,n.t);e.s=0,e.clamp(),this.s!=t.s&&C.ZERO.subTo(e,e)},C.prototype.squareTo=function(t){for(var e=this.abs(),n=t.t=2*e.t;0<=--n;)t[n]=0;for(n=0;n<e.t-1;++n){var i=e.am(n,e[n],t,2*n,0,1);(t[n+e.t]+=e.am(n+1,2*e[n],t,2*n+1,i,e.t-n-1))>=e.DV&&(t[n+e.t]-=e.DV,t[n+e.t+1]=1)}0<t.t&&(t[t.t-1]+=e.am(n,e[n],t,2*n,0,1)),t.s=0,t.clamp()},C.prototype.divRemTo=function(t,e,n){var i=t.abs();if(!(i.t<=0)){var r=this.abs();if(r.t<i.t)return null!=e&&e.fromInt(0),void(null!=n&&this.copyTo(n));null==n&&(n=x());var o=x(),s=this.s,a=t.s,c=this.DB-H(i[i.t-1]);0<c?(i.lShiftTo(c,o),r.lShiftTo(c,n)):(i.copyTo(o),r.copyTo(n));var u=o.t,h=o[u-1];if(0!=h){var l=h*(1<<this.F1)+(1<u?o[u-2]>>this.F2:0),p=this.FV/l,f=(1<<this.F1)/l,d=1<<this.F2,g=n.t,m=g-u,y=null==e?x():e;for(o.dlShiftTo(m,y),0<=n.compareTo(y)&&(n[n.t++]=1,n.subTo(y,n)),C.ONE.dlShiftTo(u,y),y.subTo(o,o);o.t<u;)o[o.t++]=0;for(;0<=--m;){var v=n[--g]==h?this.DM:Math.floor(n[g]*p+(n[g-1]+d)*f);if((n[g]+=o.am(0,v,n,m,0,u))<v)for(o.dlShiftTo(m,y),n.subTo(y,n);n[g]<--v;)n.subTo(y,n)}null!=e&&(n.drShiftTo(u,e),s!=a&&C.ZERO.subTo(e,e)),n.t=u,n.clamp(),0<c&&n.rShiftTo(c,n),s<0&&C.ZERO.subTo(n,n)}}},C.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;return 0<(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)?this.DV-e:-e},C.prototype.isEven=function(){return 0==(0<this.t?1&this[0]:this.s)},C.prototype.exp=function(t,e){if(4294967295<t||t<1)return C.ONE;var n=x(),i=x(),r=e.convert(this),o=H(t)-1;for(r.copyTo(n);0<=--o;)if(e.sqrTo(n,i),0<(t&1<<o))e.mulTo(i,r,n);else{var s=n;n=i,i=s}return e.revert(n)},C.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},C.prototype.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||36<t)return"0";var e=this.chunkSize(t),n=Math.pow(t,e),i=J(n),r=x(),o=x(),s="";for(this.divRemTo(i,r,o);0<r.signum();)s=(n+o.intValue()).toString(t).substr(1)+s,r.divRemTo(i,r,o);return o.intValue().toString(t)+s},C.prototype.fromRadix=function(t,e){this.fromInt(0),null==e&&(e=10);for(var n=this.chunkSize(e),i=Math.pow(e,n),r=!1,o=0,s=0,a=0;a<t.length;++a){var c=P(t,a);c<0?"-"==t.charAt(a)&&0==this.signum()&&(r=!0):(s=e*s+c,++o>=n&&(this.dMultiply(i),this.dAddOffset(s,0),s=o=0))}0<o&&(this.dMultiply(Math.pow(e,o)),this.dAddOffset(s,0)),r&&C.ZERO.subTo(this,this)},C.prototype.fromNumber=function(t,e,n){if("number"==typeof e)if(t<2)this.fromInt(1);else for(this.fromNumber(t,n),this.testBit(t-1)||this.bitwiseTo(C.ONE.shiftLeft(t-1),u,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(e);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(C.ONE.shiftLeft(t-1),this);else{var i=[],r=7&t;i.length=1+(t>>3),e.nextBytes(i),0<r?i[0]&=(1<<r)-1:i[0]=0,this.fromString(i,256)}},C.prototype.bitwiseTo=function(t,e,n){var i,r,o=Math.min(t.t,this.t);for(i=0;i<o;++i)n[i]=e(this[i],t[i]);if(t.t<this.t){for(r=t.s&this.DM,i=o;i<this.t;++i)n[i]=e(this[i],r);n.t=this.t}else{for(r=this.s&this.DM,i=o;i<t.t;++i)n[i]=e(r,t[i]);n.t=t.t}n.s=e(this.s,t.s),n.clamp()},C.prototype.changeBit=function(t,e){var n=C.ONE.shiftLeft(t);return this.bitwiseTo(n,e,n),n},C.prototype.addTo=function(t,e){for(var n=0,i=0,r=Math.min(t.t,this.t);n<r;)i+=this[n]+t[n],e[n++]=i&this.DM,i>>=this.DB;if(t.t<this.t){for(i+=t.s;n<this.t;)i+=this[n],e[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;n<t.t;)i+=t[n],e[n++]=i&this.DM,i>>=this.DB;i+=t.s}e.s=i<0?-1:0,0<i?e[n++]=i:i<-1&&(e[n++]=this.DV+i),e.t=n,e.clamp()},C.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},C.prototype.dAddOffset=function(t,e){if(0!=t){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},C.prototype.multiplyLowerTo=function(t,e,n){var i=Math.min(this.t+t.t,e);for(n.s=0,n.t=i;0<i;)n[--i]=0;for(var r=n.t-this.t;i<r;++i)n[i+this.t]=this.am(0,t[i],n,i,0,this.t);for(var r=Math.min(t.t,e);i<r;++i)this.am(0,t[i],n,i,0,e-i);n.clamp()},C.prototype.multiplyUpperTo=function(t,e,n){--e;var i=n.t=this.t+t.t-e;for(n.s=0;0<=--i;)n[i]=0;for(i=Math.max(e-this.t,0);i<t.t;++i)n[this.t+i-e]=this.am(e-i,t[i],n,0,0,this.t+i-e);n.clamp(),n.drShiftTo(1,n)},C.prototype.modInt=function(t){if(t<=0)return 0;var e=this.DV%t,n=this.s<0?t-1:0;if(0<this.t)if(0==e)n=this[0]%t;else for(var i=this.t-1;0<=i;--i)n=(e*n+this[i])%t;return n},C.prototype.millerRabin=function(t){var e=this.subtract(C.ONE),n=e.getLowestSetBit();if(n<=0)return!1;var i=e.shiftRight(n);b.length<(t=t+1>>1)&&(t=b.length);for(var r=x(),o=0;o<t;++o){r.fromInt(b[Math.floor(Math.random()*b.length)]);var s=r.modPow(i,this);if(0!=s.compareTo(C.ONE)&&0!=s.compareTo(e)){for(var a=1;a++<n&&0!=s.compareTo(e);)if(0==(s=s.modPowInt(2,this)).compareTo(C.ONE))return!1;if(0!=s.compareTo(e))return!1}}return!0},C.prototype.square=function(){var t=x();return this.squareTo(t),t},C.prototype.gcda=function(t,e){var n=this.s<0?this.negate():this.clone(),i=t.s<0?t.negate():t.clone();if(n.compareTo(i)<0){var r=n;n=i,i=r}var o=n.getLowestSetBit(),s=i.getLowestSetBit();if(s<0)e(n);else{o<s&&(s=o),0<s&&(n.rShiftTo(s,n),i.rShiftTo(s,i));var a=function(){0<(o=n.getLowestSetBit())&&n.rShiftTo(o,n),0<(o=i.getLowestSetBit())&&i.rShiftTo(o,i),0<=n.compareTo(i)?(n.subTo(i,n),n.rShiftTo(1,n)):(i.subTo(n,i),i.rShiftTo(1,i)),0<n.signum()?setTimeout(a,0):(0<s&&i.lShiftTo(s,i),setTimeout(function(){e(i)},0))};setTimeout(a,10)}},C.prototype.fromNumberAsync=function(t,e,n,i){if("number"==typeof e)if(t<2)this.fromInt(1);else{this.fromNumber(t,n),this.testBit(t-1)||this.bitwiseTo(C.ONE.shiftLeft(t-1),u,this),this.isEven()&&this.dAddOffset(1,0);var r=this,o=function(){r.dAddOffset(2,0),r.bitLength()>t&&r.subTo(C.ONE.shiftLeft(t-1),r),r.isProbablePrime(e)?setTimeout(function(){i()},0):setTimeout(o,0)};setTimeout(o,0)}else{var s=[],a=7&t;s.length=1+(t>>3),e.nextBytes(s),0<a?s[0]&=(1<<a)-1:s[0]=0,this.fromString(s,256)}},C}(),k=function(){function t(){}return t.prototype.convert=function(t){return t},t.prototype.revert=function(t){return t},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n)},t.prototype.sqrTo=function(t,e){t.squareTo(e)},t}(),U=function(){function t(t){this.m=t}return t.prototype.convert=function(t){return t.s<0||0<=t.compareTo(this.m)?t.mod(this.m):t},t.prototype.revert=function(t){return t},t.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}(),R=function(){function t(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}return t.prototype.convert=function(t){var e=x();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&0<e.compareTo(M.ZERO)&&this.m.subTo(e,e),e},t.prototype.revert=function(t){var e=x();return t.copyTo(e),this.reduce(e),e},t.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var n=32767&t[e],i=n*this.mpl+((n*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;for(n=e+this.m.t,t[n]+=this.m.am(0,i,t,e,0,this.m.t);t[n]>=t.DV;)t[n]-=t.DV,t[++n]++}t.clamp(),t.drShiftTo(this.m.t,t),0<=t.compareTo(this.m)&&t.subTo(this.m,t)},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}(),B=function(){function t(t){this.m=t,this.r2=x(),this.q3=x(),M.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t)}return t.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=x();return t.copyTo(e),this.reduce(e),e},t.prototype.revert=function(t){return t},t.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);0<=t.compareTo(this.m);)t.subTo(this.m,t)},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}();function x(){return new M(null)}function D(t,e){return new M(t,e)}O="Microsoft Internet Explorer"==navigator.appName?(M.prototype.am=function(t,e,n,i,r,o){for(var s=32767&e,a=e>>15;0<=--o;){var c=32767&this[t],u=this[t++]>>15,h=a*c+u*s;c=s*c+((32767&h)<<15)+n[i]+(1073741823&r),r=(c>>>30)+(h>>>15)+a*u+(r>>>30),n[i++]=1073741823&c}return r},30):"Netscape"!=navigator.appName?(M.prototype.am=function(t,e,n,i,r,o){for(;0<=--o;){var s=e*this[t++]+n[i]+r;r=Math.floor(s/67108864),n[i++]=67108863&s}return r},26):(M.prototype.am=function(t,e,n,i,r,o){for(var s=16383&e,a=e>>14;0<=--o;){var c=16383&this[t],u=this[t++]>>14,h=a*c+u*s;c=s*c+((16383&h)<<14)+n[i]+r,r=(c>>28)+(h>>14)+a*u,n[i++]=268435455&c}return r},28),M.prototype.DB=O,M.prototype.DM=(1<<O)-1,M.prototype.DV=1<<O,M.prototype.FV=Math.pow(2,52),M.prototype.F1=52-O,M.prototype.F2=2*O-52;var L,N,G=[];for(L="0".charCodeAt(0),N=0;N<=9;++N)G[L++]=N;for(L="a".charCodeAt(0),N=10;N<36;++N)G[L++]=N;for(L="A".charCodeAt(0),N=10;N<36;++N)G[L++]=N;function P(t,e){var n=G[t.charCodeAt(e)];return null==n?-1:n}function J(t){var e=x();return e.fromInt(t),e}function H(t){var e,n=1;return 0!=(e=t>>>16)&&(t=e,n+=16),0!=(e=t>>8)&&(t=e,n+=8),0!=(e=t>>4)&&(t=e,n+=4),0!=(e=t>>2)&&(t=e,n+=2),0!=(e=t>>1)&&(t=e,n+=1),n}M.ZERO=J(0),M.ONE=J(1);var V,j,F=function(){function t(){this.i=0,this.j=0,this.S=[]}return t.prototype.init=function(t){var e,n,i;for(e=0;e<256;++e)this.S[e]=e;for(e=n=0;e<256;++e)n=n+this.S[e]+t[e%t.length]&255,i=this.S[e],this.S[e]=this.S[n],this.S[n]=i;this.i=0,this.j=0},t.prototype.next=function(){var t;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,t=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=t,this.S[t+this.S[this.i]&255]},t}(),Q=256,K=null;if(null==K){K=[];var q=void(j=0);if(window.crypto&&window.crypto.getRandomValues){var z=new Uint32Array(256);for(window.crypto.getRandomValues(z),q=0;q<z.length;++q)K[j++]=255&z[q]}var Z=function(t){if(this.count=this.count||0,256<=this.count||Q<=j)window.removeEventListener?window.removeEventListener("mousemove",Z,!1):window.detachEvent&&window.detachEvent("onmousemove",Z);else try{var e=t.x+t.y;K[j++]=255&e,this.count+=1}catch(t){}};window.addEventListener?window.addEventListener("mousemove",Z,!1):window.attachEvent&&window.attachEvent("onmousemove",Z)}function Y(){if(null==V){for(V=new F;j<Q;){var t=Math.floor(65536*Math.random());K[j++]=255&t}for(V.init(K),j=0;j<K.length;++j)K[j]=0;j=0}return V.next()}var W=function(){function t(){}return t.prototype.nextBytes=function(t){for(var e=0;e<t.length;++e)t[e]=Y()},t}(),X=function(){function t(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return t.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)},t.prototype.doPrivate=function(t){if(null==this.p||null==this.q)return t.modPow(this.d,this.n);for(var e=t.mod(this.p).modPow(this.dmp1,this.p),n=t.mod(this.q).modPow(this.dmq1,this.q);e.compareTo(n)<0;)e=e.add(this.p);return e.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n)},t.prototype.setPublic=function(t,e){null!=t&&null!=e&&0<t.length&&0<e.length?(this.n=D(t,16),this.e=parseInt(e,16)):console.error("Invalid RSA public key")},t.prototype.encrypt=function(t){var e=function(t,e){if(e<t.length+11)return console.error("Message too long for RSA"),null;for(var n=[],i=t.length-1;0<=i&&0<e;){var r=t.charCodeAt(i--);n[--e]=r<128?r:127<r&&r<2048?(n[--e]=63&r|128,r>>6|192):(n[--e]=63&r|128,n[--e]=r>>6&63|128,r>>12|224)}n[--e]=0;for(var o=new W,s=[];2<e;){for(s[0]=0;0==s[0];)o.nextBytes(s);n[--e]=s[0]}return n[--e]=2,n[--e]=0,new M(n)}(t,this.n.bitLength()+7>>3);if(null==e)return null;var n=this.doPublic(e);if(null==n)return null;var i=n.toString(16);return 0==(1&i.length)?i:"0"+i},t.prototype.setPrivate=function(t,e,n){null!=t&&null!=e&&0<t.length&&0<e.length?(this.n=D(t,16),this.e=parseInt(e,16),this.d=D(n,16)):console.error("Invalid RSA private key")},t.prototype.setPrivateEx=function(t,e,n,i,r,o,s,a){null!=t&&null!=e&&0<t.length&&0<e.length?(this.n=D(t,16),this.e=parseInt(e,16),this.d=D(n,16),this.p=D(i,16),this.q=D(r,16),this.dmp1=D(o,16),this.dmq1=D(s,16),this.coeff=D(a,16)):console.error("Invalid RSA private key")},t.prototype.generate=function(t,e){var n=new W,i=t>>1;this.e=parseInt(e,16);for(var r=new M(e,16);;){for(;this.p=new M(t-i,1,n),0!=this.p.subtract(M.ONE).gcd(r).compareTo(M.ONE)||!this.p.isProbablePrime(10););for(;this.q=new M(i,1,n),0!=this.q.subtract(M.ONE).gcd(r).compareTo(M.ONE)||!this.q.isProbablePrime(10););if(this.p.compareTo(this.q)<=0){var o=this.p;this.p=this.q,this.q=o}var s=this.p.subtract(M.ONE),a=this.q.subtract(M.ONE),c=s.multiply(a);if(0==c.gcd(r).compareTo(M.ONE)){this.n=this.p.multiply(this.q),this.d=r.modInverse(c),this.dmp1=this.d.mod(s),this.dmq1=this.d.mod(a),this.coeff=this.q.modInverse(this.p);break}}},t.prototype.decrypt=function(t){var e=D(t,16),n=this.doPrivate(e);return null==n?null:function(t,e){for(var n=t.toByteArray(),i=0;i<n.length&&0==n[i];)++i;if(n.length-i!=e-1||2!=n[i])return null;for(++i;0!=n[i];)if(++i>=n.length)return null;for(var r="";++i<n.length;){var o=255&n[i];o<128?r+=String.fromCharCode(o):191<o&&o<224?(r+=String.fromCharCode((31&o)<<6|63&n[i+1]),++i):(r+=String.fromCharCode((15&o)<<12|(63&n[i+1])<<6|63&n[i+2]),i+=2)}return r}(n,this.n.bitLength()+7>>3)},t.prototype.generateAsync=function(t,e,r){var o=new W,s=t>>1;this.e=parseInt(e,16);var a=new M(e,16),c=this,u=function(){var e=function(){if(c.p.compareTo(c.q)<=0){var t=c.p;c.p=c.q,c.q=t}var e=c.p.subtract(M.ONE),n=c.q.subtract(M.ONE),i=e.multiply(n);0==i.gcd(a).compareTo(M.ONE)?(c.n=c.p.multiply(c.q),c.d=a.modInverse(i),c.dmp1=c.d.mod(e),c.dmq1=c.d.mod(n),c.coeff=c.q.modInverse(c.p),setTimeout(function(){r()},0)):setTimeout(u,0)},n=function(){c.q=x(),c.q.fromNumberAsync(s,1,o,function(){c.q.subtract(M.ONE).gcda(a,function(t){0==t.compareTo(M.ONE)&&c.q.isProbablePrime(10)?setTimeout(e,0):setTimeout(n,0)})})},i=function(){c.p=x(),c.p.fromNumberAsync(t-s,1,o,function(){c.p.subtract(M.ONE).gcda(a,function(t){0==t.compareTo(M.ONE)&&c.p.isProbablePrime(10)?setTimeout(n,0):setTimeout(i,0)})})};setTimeout(i,0)};setTimeout(u,0)},t.prototype.sign=function(t,e,n){var i=$[n]||"",r=i+e(t).toString(),o=function(t,e){if(e<t.length+22)return console.error("Message too long for RSA"),null;for(var n=e-t.length-6,i="",r=0;r<n;r+=2)i+="ff";return D("0001"+i+"00"+t,16)}(r,this.n.bitLength()/4);if(null==o)return null;var s=this.doPrivate(o);if(null==s)return null;var a=s.toString(16);return 0==(1&a.length)?a:"0"+a},t.prototype.verify=function(t,e,n){var i=D(e,16),r=this.doPublic(i);if(null==r)return null;var o=r.toString(16).replace(/^1f+00/,""),s=function(t){for(var e in $)if($.hasOwnProperty(e)){var n=$[e],i=n.length;if(t.substr(0,i)==n)return t.substr(i)}return t}
/*!
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.com/yui/license.html
version: 2.9.0
*/(o);return s==n(t).toString()},t}(),$={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"},tt={};tt.lang={extend:function(t,e,n){if(!e||!t)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var i=function(){};if(i.prototype=e.prototype,t.prototype=new i,(t.prototype.constructor=t).superclass=e.prototype,e.prototype.constructor==Object.prototype.constructor&&(e.prototype.constructor=e),n){var r;for(r in n)t.prototype[r]=n[r];var o=function(){},s=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(o=function(t,e){for(r=0;r<s.length;r+=1){var n=s[r],i=e[n];"function"==typeof i&&i!=Object.prototype[n]&&(t[n]=i)}})}catch(t){}o(t.prototype,n)}}};
/**
* @fileOverview
* @name asn1-1.0.js
* @author Kenji Urushima kenji.urushima@gmail.com
* @version asn1 1.0.13 (2017-Jun-02)
* @since jsrsasign 2.1
* @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
*/
var et={};void 0!==et.asn1&&et.asn1||(et.asn1={}),et.asn1.ASN1Util=new function(){this.integerToByteHex=function(t){var e=t.toString(16);return e.length%2==1&&(e="0"+e),e},this.bigIntToMinTwosComplementsHex=function(t){var e=t.toString(16);if("-"!=e.substr(0,1))e.length%2==1?e="0"+e:e.match(/^[0-7]/)||(e="00"+e);else{var n=e.substr(1),i=n.length;i%2==1?i+=1:e.match(/^[0-7]/)||(i+=2);for(var r="",o=0;o<i;o++)r+="f";var s=new M(r,16),a=s.xor(t).add(M.ONE);e=a.toString(16).replace(/^-/,"")}return e},this.getPEMStringFromHex=function(t,e){return hextopem(t,e)},this.newObject=function(t){var e=et,n=e.asn1,i=n.DERBoolean,r=n.DERInteger,o=n.DERBitString,s=n.DEROctetString,a=n.DERNull,c=n.DERObjectIdentifier,u=n.DEREnumerated,h=n.DERUTF8String,l=n.DERNumericString,p=n.DERPrintableString,f=n.DERTeletexString,d=n.DERIA5String,g=n.DERUTCTime,m=n.DERGeneralizedTime,y=n.DERSequence,v=n.DERSet,C=n.DERTaggedObject,T=n.ASN1Util.newObject,E=Object.keys(t);if(1!=E.length)throw"key of param shall be only one.";var S=E[0];if(-1==":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+S+":"))throw"undefined key: "+S;if("bool"==S)return new i(t[S]);if("int"==S)return new r(t[S]);if("bitstr"==S)return new o(t[S]);if("octstr"==S)return new s(t[S]);if("null"==S)return new a(t[S]);if("oid"==S)return new c(t[S]);if("enum"==S)return new u(t[S]);if("utf8str"==S)return new h(t[S]);if("numstr"==S)return new l(t[S]);if("prnstr"==S)return new p(t[S]);if("telstr"==S)return new f(t[S]);if("ia5str"==S)return new d(t[S]);if("utctime"==S)return new g(t[S]);if("gentime"==S)return new m(t[S]);if("seq"==S){for(var O=t[S],_=[],A=0;A<O.length;A++){var I=T(O[A]);_.push(I)}return new y({array:_})}if("set"==S){for(var O=t[S],_=[],A=0;A<O.length;A++){var I=T(O[A]);_.push(I)}return new v({array:_})}if("tag"==S){var b=t[S];if("[object Array]"===Object.prototype.toString.call(b)&&3==b.length){var w=T(b[2]);return new C({tag:b[0],explicit:b[1],obj:w})}var M={};if(void 0!==b.explicit&&(M.explicit=b.explicit),void 0!==b.tag&&(M.tag=b.tag),void 0===b.obj)throw"obj shall be specified for 'tag'.";return M.obj=T(b.obj),new C(M)}},this.jsonToASN1HEX=function(t){var e=this.newObject(t);return e.getEncodedHex()}},et.asn1.ASN1Util.oidHexToInt=function(t){for(var e="",n=parseInt(t.substr(0,2),16),i=Math.floor(n/40),r=n%40,e=i+"."+r,o="",s=2;s<t.length;s+=2){var a=parseInt(t.substr(s,2),16),c=("00000000"+a.toString(2)).slice(-8);if(o+=c.substr(1,7),"0"==c.substr(0,1)){var u=new M(o,2);e=e+"."+u.toString(10),o=""}}return e},et.asn1.ASN1Util.oidIntToHex=function(t){var c=function(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e},e=function(t){var e="",n=new M(t,10),i=n.toString(2),r=7-i.length%7;7==r&&(r=0);for(var o="",s=0;s<r;s++)o+="0";i=o+i;for(var s=0;s<i.length-1;s+=7){var a=i.substr(s,7);s!=i.length-7&&(a="1"+a),e+=c(parseInt(a,2))}return e};if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var n="",i=t.split("."),r=40*parseInt(i[0])+parseInt(i[1]);n+=c(r),i.splice(0,2);for(var o=0;o<i.length;o++)n+=e(i[o]);return n},et.asn1.ASN1Object=function(){this.getLengthHexFromValue=function(){if(void 0===this.hV||null==this.hV)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+"".length+",v="+this.hV;var t=this.hV.length/2,e=t.toString(16);if(e.length%2==1&&(e="0"+e),t<128)return e;var n=e.length/2;if(15<n)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);var i=128+n;return i.toString(16)+e},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},et.asn1.DERAbstractString=function(t){et.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(this.s)},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?this.setString(t):void 0!==t.str?this.setString(t.str):void 0!==t.hex&&this.setStringHex(t.hex))},tt.lang.extend(et.asn1.DERAbstractString,et.asn1.ASN1Object),et.asn1.DERAbstractTime=function(t){et.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(t){utc=t.getTime()+6e4*t.getTimezoneOffset();var e=new Date(utc);return e},this.formatDate=function(t,e,n){var i=this.zeroPadding,r=this.localDateToUTC(t),o=String(r.getFullYear());"utc"==e&&(o=o.substr(2,2));var s=i(String(r.getMonth()+1),2),a=i(String(r.getDate()),2),c=i(String(r.getHours()),2),u=i(String(r.getMinutes()),2),h=i(String(r.getSeconds()),2),l=o+s+a+c+u+h;if(!0===n){var p=r.getMilliseconds();if(0!=p){var f=i(String(p),3);f=f.replace(/[0]+$/,""),l=l+"."+f}}return l+"Z"},this.zeroPadding=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(t)},this.setByDateValue=function(t,e,n,i,r,o){var s=new Date(Date.UTC(t,e-1,n,i,r,o,0));this.setByDate(s)},this.getFreshValueHex=function(){return this.hV}},tt.lang.extend(et.asn1.DERAbstractTime,et.asn1.ASN1Object),et.asn1.DERAbstractStructured=function(t){et.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,void 0!==t&&void 0!==t.array&&(this.asn1Array=t.array)},tt.lang.extend(et.asn1.DERAbstractStructured,et.asn1.ASN1Object),et.asn1.DERBoolean=function(){et.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},tt.lang.extend(et.asn1.DERBoolean,et.asn1.ASN1Object),et.asn1.DERInteger=function(t){et.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=et.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new M(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.bigint?this.setByBigInteger(t.bigint):void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},tt.lang.extend(et.asn1.DERInteger,et.asn1.ASN1Object),et.asn1.DERBitString=function(t){if(void 0!==t&&void 0!==t.obj){var e=et.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}et.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null,this.isModified=!0,this.hV=t},this.setUnusedBitsAndHexValue=function(t,e){if(t<0||7<t)throw"unused bits shall be from 0 to 7: u = "+t;var n="0"+t;this.hTLV=null,this.isModified=!0,this.hV=n+e},this.setByBinaryString=function(t){var e=8-(t=t.replace(/0+$/,"")).length%8;8==e&&(e=0);for(var n=0;n<=e;n++)t+="0";for(var i="",n=0;n<t.length-1;n+=8){var r=t.substr(n,8),o=parseInt(r,2).toString(16);1==o.length&&(o="0"+o),i+=o}this.hTLV=null,this.isModified=!0,this.hV="0"+e+i},this.setByBooleanArray=function(t){for(var e="",n=0;n<t.length;n++)1==t[n]?e+="1":e+="0";this.setByBinaryString(e)},this.newFalseArray=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=!1;return e},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t&&t.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(t):void 0!==t.hex?this.setHexValueIncludingUnusedBits(t.hex):void 0!==t.bin?this.setByBinaryString(t.bin):void 0!==t.array&&this.setByBooleanArray(t.array))},tt.lang.extend(et.asn1.DERBitString,et.asn1.ASN1Object),et.asn1.DEROctetString=function(t){if(void 0!==t&&void 0!==t.obj){var e=et.asn1.ASN1Util.newObject(t.obj);t.hex=e.getEncodedHex()}et.asn1.DEROctetString.superclass.constructor.call(this,t),this.hT="04"},tt.lang.extend(et.asn1.DEROctetString,et.asn1.DERAbstractString),et.asn1.DERNull=function(){et.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},tt.lang.extend(et.asn1.DERNull,et.asn1.ASN1Object),et.asn1.DERObjectIdentifier=function(t){var c=function(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e},o=function(t){var e="",n=new M(t,10),i=n.toString(2),r=7-i.length%7;7==r&&(r=0);for(var o="",s=0;s<r;s++)o+="0";i=o+i;for(var s=0;s<i.length-1;s+=7){var a=i.substr(s,7);s!=i.length-7&&(a="1"+a),e+=c(parseInt(a,2))}return e};et.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.setValueOidString=function(t){if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var e="",n=t.split("."),i=40*parseInt(n[0])+parseInt(n[1]);e+=c(i),n.splice(0,2);for(var r=0;r<n.length;r++)e+=o(n[r]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=e},this.setValueName=function(t){var e=et.asn1.x509.OID.name2oid(t);if(""===e)throw"DERObjectIdentifier oidName undefined: "+t;this.setValueOidString(e)},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?t.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(t):this.setValueName(t):void 0!==t.oid?this.setValueOidString(t.oid):void 0!==t.hex?this.setValueHex(t.hex):void 0!==t.name&&this.setValueName(t.name))},tt.lang.extend(et.asn1.DERObjectIdentifier,et.asn1.ASN1Object),et.asn1.DEREnumerated=function(t){et.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=et.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new M(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},tt.lang.extend(et.asn1.DEREnumerated,et.asn1.ASN1Object),et.asn1.DERUTF8String=function(t){et.asn1.DERUTF8String.superclass.constructor.call(this,t),this.hT="0c"},tt.lang.extend(et.asn1.DERUTF8String,et.asn1.DERAbstractString),et.asn1.DERNumericString=function(t){et.asn1.DERNumericString.superclass.constructor.call(this,t),this.hT="12"},tt.lang.extend(et.asn1.DERNumericString,et.asn1.DERAbstractString),et.asn1.DERPrintableString=function(t){et.asn1.DERPrintableString.superclass.constructor.call(this,t),this.hT="13"},tt.lang.extend(et.asn1.DERPrintableString,et.asn1.DERAbstractString),et.asn1.DERTeletexString=function(t){et.asn1.DERTeletexString.superclass.constructor.call(this,t),this.hT="14"},tt.lang.extend(et.asn1.DERTeletexString,et.asn1.DERAbstractString),et.asn1.DERIA5String=function(t){et.asn1.DERIA5String.superclass.constructor.call(this,t),this.hT="16"},tt.lang.extend(et.asn1.DERIA5String,et.asn1.DERAbstractString),et.asn1.DERUTCTime=function(t){et.asn1.DERUTCTime.superclass.constructor.call(this,t),this.hT="17",this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},void 0!==t&&(void 0!==t.str?this.setString(t.str):"string"==typeof t&&t.match(/^[0-9]{12}Z$/)?this.setString(t):void 0!==t.hex?this.setStringHex(t.hex):void 0!==t.date&&this.setByDate(t.date))},tt.lang.extend(et.asn1.DERUTCTime,et.asn1.DERAbstractTime),et.asn1.DERGeneralizedTime=function(t){et.asn1.DERGeneralizedTime.superclass.constructor.call(this,t),this.hT="18",this.withMillis=!1,this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},void 0!==t&&(void 0!==t.str?this.setString(t.str):"string"==typeof t&&t.match(/^[0-9]{14}Z$/)?this.setString(t):void 0!==t.hex?this.setStringHex(t.hex):void 0!==t.date&&this.setByDate(t.date),!0===t.millis&&(this.withMillis=!0))},tt.lang.extend(et.asn1.DERGeneralizedTime,et.asn1.DERAbstractTime),et.asn1.DERSequence=function(t){et.asn1.DERSequence.superclass.constructor.call(this,t),this.hT="30",this.getFreshValueHex=function(){for(var t="",e=0;e<this.asn1Array.length;e++){var n=this.asn1Array[e];t+=n.getEncodedHex()}return this.hV=t,this.hV}},tt.lang.extend(et.asn1.DERSequence,et.asn1.DERAbstractStructured),et.asn1.DERSet=function(t){et.asn1.DERSet.superclass.constructor.call(this,t),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var t=new Array,e=0;e<this.asn1Array.length;e++){var n=this.asn1Array[e];t.push(n.getEncodedHex())}return 1==this.sortFlag&&t.sort(),this.hV=t.join(""),this.hV},void 0!==t&&void 0!==t.sortflag&&0==t.sortflag&&(this.sortFlag=!1)},tt.lang.extend(et.asn1.DERSet,et.asn1.DERAbstractStructured),et.asn1.DERTaggedObject=function(t){et.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(t,e,n){this.hT=e,this.isExplicit=t,this.asn1Object=n,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=n.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,e),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.tag&&(this.hT=t.tag),void 0!==t.explicit&&(this.isExplicit=t.explicit),void 0!==t.obj&&(this.asn1Object=t.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},tt.lang.extend(et.asn1.DERTaggedObject,et.asn1.ASN1Object);var nt=function(n){function i(t){var e=n.call(this)||this;return t&&("string"==typeof t?e.parseKey(t):(i.hasPrivateKeyProperty(t)||i.hasPublicKeyProperty(t))&&e.parsePropertiesFrom(t)),e}return function(t,e){function n(){this.constructor=t}d(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(i,n),i.prototype.parseKey=function(t){try{var e=0,n=0,i=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/.test(t)?g.decode(t):m.unarmor(t),r=A.decode(i);if(3===r.sub.length&&(r=r.sub[2].sub[0]),9===r.sub.length){e=r.sub[1].getHexStringValue(),this.n=D(e,16),n=r.sub[2].getHexStringValue(),this.e=parseInt(n,16);var o=r.sub[3].getHexStringValue();this.d=D(o,16);var s=r.sub[4].getHexStringValue();this.p=D(s,16);var a=r.sub[5].getHexStringValue();this.q=D(a,16);var c=r.sub[6].getHexStringValue();this.dmp1=D(c,16);var u=r.sub[7].getHexStringValue();this.dmq1=D(u,16);var h=r.sub[8].getHexStringValue();this.coeff=D(h,16)}else{if(2!==r.sub.length)return!1;var l=r.sub[1],p=l.sub[0];e=p.sub[0].getHexStringValue(),this.n=D(e,16),n=p.sub[1].getHexStringValue(),this.e=parseInt(n,16)}return!0}catch(t){return!1}},i.prototype.getPrivateBaseKey=function(){var t={array:[new et.asn1.DERInteger({int:0}),new et.asn1.DERInteger({bigint:this.n}),new et.asn1.DERInteger({int:this.e}),new et.asn1.DERInteger({bigint:this.d}),new et.asn1.DERInteger({bigint:this.p}),new et.asn1.DERInteger({bigint:this.q}),new et.asn1.DERInteger({bigint:this.dmp1}),new et.asn1.DERInteger({bigint:this.dmq1}),new et.asn1.DERInteger({bigint:this.coeff})]},e=new et.asn1.DERSequence(t);return e.getEncodedHex()},i.prototype.getPrivateBaseKeyB64=function(){return h(this.getPrivateBaseKey())},i.prototype.getPublicBaseKey=function(){var t=new et.asn1.DERSequence({array:[new et.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new et.asn1.DERNull]}),e=new et.asn1.DERSequence({array:[new et.asn1.DERInteger({bigint:this.n}),new et.asn1.DERInteger({int:this.e})]}),n=new et.asn1.DERBitString({hex:"00"+e.getEncodedHex()}),i=new et.asn1.DERSequence({array:[t,n]});return i.getEncodedHex()},i.prototype.getPublicBaseKeyB64=function(){return h(this.getPublicBaseKey())},i.wordwrap=function(t,e){if(e=e||64,!t)return t;var n="(.{1,"+e+"})( +|$\n?)|(.{1,"+e+"})";return t.match(RegExp(n,"g")).join("\n")},i.prototype.getPrivateKey=function(){var t="-----BEGIN RSA PRIVATE KEY-----\n";return t+=i.wordwrap(this.getPrivateBaseKeyB64())+"\n",t+="-----END RSA PRIVATE KEY-----"},i.prototype.getPublicKey=function(){var t="-----BEGIN PUBLIC KEY-----\n";return t+=i.wordwrap(this.getPublicBaseKeyB64())+"\n",t+="-----END PUBLIC KEY-----"},i.hasPublicKeyProperty=function(t){return(t=t||{}).hasOwnProperty("n")&&t.hasOwnProperty("e")},i.hasPrivateKeyProperty=function(t){return(t=t||{}).hasOwnProperty("n")&&t.hasOwnProperty("e")&&t.hasOwnProperty("d")&&t.hasOwnProperty("p")&&t.hasOwnProperty("q")&&t.hasOwnProperty("dmp1")&&t.hasOwnProperty("dmq1")&&t.hasOwnProperty("coeff")},i.prototype.parsePropertiesFrom=function(t){this.n=t.n,this.e=t.e,t.hasOwnProperty("d")&&(this.d=t.d,this.p=t.p,this.q=t.q,this.dmp1=t.dmp1,this.dmq1=t.dmq1,this.coeff=t.coeff)},i}(X),it=function(){function t(t){t=t||{},this.default_key_size=parseInt(t.default_key_size,10)||1024,this.default_public_exponent=t.default_public_exponent||"010001",this.log=t.log||!1,this.key=null}return t.prototype.setKey=function(t){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new nt(t)},t.prototype.setPrivateKey=function(t){this.setKey(t)},t.prototype.setPublicKey=function(t){this.setKey(t)},t.prototype.decrypt=function(t){try{return this.getKey().decrypt(l(t))}catch(t){return!1}},t.prototype.encrypt=function(t){try{return h(this.getKey().encrypt(t))}catch(t){return!1}},t.prototype.sign=function(t,e,n){try{return h(this.getKey().sign(t,e,n))}catch(t){return!1}},t.prototype.verify=function(t,e,n){try{return this.getKey().verify(t,l(e),n)}catch(t){return!1}},t.prototype.getKey=function(t){if(!this.key){if(this.key=new nt,t&&"[object Function]"==={}.toString.call(t))return void this.key.generateAsync(this.default_key_size,this.default_public_exponent,t);this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},t.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},t.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},t.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},t.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},t.version="3.0.0-rc.1",t}();window.JSEncrypt=it,t.JSEncrypt=it,t.default=it,Object.defineProperty(t,"__esModule",{value:!0})}(e)},function(t,e,n){"use strict";e.__esModule=!0;var i=function(){function t(t){this.success=t.success,this.fail=t.fail,this.event=t.event}return t.prototype.onSuccess=function(t){this.success&&"function"==typeof this.success&&this.success(t)},t.prototype.onFail=function(t){this.fail&&"function"==typeof this.fail&&this.fail(t)},t.prototype.userEvent=function(t){this.event&&"function"==typeof this.event&&this.event(t)},t}();e.CallbackHelper=i}]);