UNPKG

bytefun-js

Version:

ByteFun JavaScript SDK

26 lines 1.19 MB
/* * Copyright 2025-2101 广州莱聚信息科技有限公司. * * This software is part of the bytefun Library. * * Licensed under the GNU Lesser General Public License, Version 3.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.gnu.org/licenses/lgpl-3.0.html * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * This software includes third-party libraries: * - jss (https://github.com/cssinjs/jss) * Licensed under the MIT License. * - sm-crypto (https://github.com/JuneAndGreen/sm-crypto) * Licensed under the MIT License. * - DOMPurify (https://github.com/cure53/DOMPurify) * Licensed under the MPL-2.0 OR Apache-2.0 License. */ var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},jsbn={exports:{}};!function(e){(function(){var t;function i(e,t,i){null!=e&&("number"==typeof e?this.fromNumber(e,t,i):null==t&&"string"!=typeof e?this.fromString(e,256):this.fromString(e,t))}function a(){return new i(null)}var n="undefined"!=typeof navigator;n&&"Microsoft Internet Explorer"==navigator.appName?(i.prototype.am=function(e,t,i,a,n,r){for(var s=32767&t,o=t>>15;--r>=0;){var l=32767&this[e],c=this[e++]>>15,d=o*l+c*s;n=((l=s*l+((32767&d)<<15)+i[a]+(1073741823&n))>>>30)+(d>>>15)+o*c+(n>>>30),i[a++]=1073741823&l}return n},t=30):n&&"Netscape"!=navigator.appName?(i.prototype.am=function(e,t,i,a,n,r){for(;--r>=0;){var s=t*this[e++]+i[a]+n;n=Math.floor(s/67108864),i[a++]=67108863&s}return n},t=26):(i.prototype.am=function(e,t,i,a,n,r){for(var s=16383&t,o=t>>14;--r>=0;){var l=16383&this[e],c=this[e++]>>14,d=o*l+c*s;n=((l=s*l+((16383&d)<<14)+i[a]+n)>>28)+(d>>14)+o*c,i[a++]=268435455&l}return n},t=28),i.prototype.DB=t,i.prototype.DM=(1<<t)-1,i.prototype.DV=1<<t;i.prototype.FV=Math.pow(2,52),i.prototype.F1=52-t,i.prototype.F2=2*t-52;var r,s,o=new Array;for(r="0".charCodeAt(0),s=0;s<=9;++s)o[r++]=s;for(r="a".charCodeAt(0),s=10;s<36;++s)o[r++]=s;for(r="A".charCodeAt(0),s=10;s<36;++s)o[r++]=s;function l(e){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(e)}function c(e,t){var i=o[e.charCodeAt(t)];return null==i?-1:i}function d(e){var t=a();return t.fromInt(e),t}function _(e){var t,i=1;return 0!=(t=e>>>16)&&(e=t,i+=16),0!=(t=e>>8)&&(e=t,i+=8),0!=(t=e>>4)&&(e=t,i+=4),0!=(t=e>>2)&&(e=t,i+=2),0!=(t=e>>1)&&(e=t,i+=1),i}function h(e){this.m=e}function u(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}function x(e,t){return e&t}function p(e,t){return e|t}function f(e,t){return e^t}function g(e,t){return e&~t}function T(e){if(0==e)return-1;var t=0;return 65535&e||(e>>=16,t+=16),255&e||(e>>=8,t+=8),15&e||(e>>=4,t+=4),3&e||(e>>=2,t+=2),1&e||++t,t}function b(e){for(var t=0;0!=e;)e&=e-1,++t;return t}function m(){}function E(e){return e}function C(e){this.r2=a(),this.q3=a(),i.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e),this.m=e}h.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},h.prototype.revert=function(e){return e},h.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},h.prototype.mulTo=function(e,t,i){e.multiplyTo(t,i),this.reduce(i)},h.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},u.prototype.convert=function(e){var t=a();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(i.ZERO)>0&&this.m.subTo(t,t),t},u.prototype.revert=function(e){var t=a();return e.copyTo(t),this.reduce(t),t},u.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var i=32767&e[t],a=i*this.mpl+((i*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(e[i=t+this.m.t]+=this.m.am(0,a,e,t,0,this.m.t);e[i]>=e.DV;)e[i]-=e.DV,e[++i]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},u.prototype.mulTo=function(e,t,i){e.multiplyTo(t,i),this.reduce(i)},u.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},i.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},i.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},i.prototype.fromString=function(e,t){var a;if(16==t)a=4;else if(8==t)a=3;else if(256==t)a=8;else if(2==t)a=1;else if(32==t)a=5;else{if(4!=t)return void this.fromRadix(e,t);a=2}this.t=0,this.s=0;for(var n=e.length,r=!1,s=0;--n>=0;){var o=8==a?255&e[n]:c(e,n);o<0?"-"==e.charAt(n)&&(r=!0):(r=!1,0==s?this[this.t++]=o:s+a>this.DB?(this[this.t-1]|=(o&(1<<this.DB-s)-1)<<s,this[this.t++]=o>>this.DB-s):this[this.t-1]|=o<<s,(s+=a)>=this.DB&&(s-=this.DB))}8==a&&128&e[0]&&(this.s=-1,s>0&&(this[this.t-1]|=(1<<this.DB-s)-1<<s)),this.clamp(),r&&i.ZERO.subTo(this,this)},i.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},i.prototype.dlShiftTo=function(e,t){var i;for(i=this.t-1;i>=0;--i)t[i+e]=this[i];for(i=e-1;i>=0;--i)t[i]=0;t.t=this.t+e,t.s=this.s},i.prototype.drShiftTo=function(e,t){for(var i=e;i<this.t;++i)t[i-e]=this[i];t.t=Math.max(this.t-e,0),t.s=this.s},i.prototype.lShiftTo=function(e,t){var i,a=e%this.DB,n=this.DB-a,r=(1<<n)-1,s=Math.floor(e/this.DB),o=this.s<<a&this.DM;for(i=this.t-1;i>=0;--i)t[i+s+1]=this[i]>>n|o,o=(this[i]&r)<<a;for(i=s-1;i>=0;--i)t[i]=0;t[s]=o,t.t=this.t+s+1,t.s=this.s,t.clamp()},i.prototype.rShiftTo=function(e,t){t.s=this.s;var i=Math.floor(e/this.DB);if(i>=this.t)t.t=0;else{var a=e%this.DB,n=this.DB-a,r=(1<<a)-1;t[0]=this[i]>>a;for(var s=i+1;s<this.t;++s)t[s-i-1]|=(this[s]&r)<<n,t[s-i]=this[s]>>a;a>0&&(t[this.t-i-1]|=(this.s&r)<<n),t.t=this.t-i,t.clamp()}},i.prototype.subTo=function(e,t){for(var i=0,a=0,n=Math.min(e.t,this.t);i<n;)a+=this[i]-e[i],t[i++]=a&this.DM,a>>=this.DB;if(e.t<this.t){for(a-=e.s;i<this.t;)a+=this[i],t[i++]=a&this.DM,a>>=this.DB;a+=this.s}else{for(a+=this.s;i<e.t;)a-=e[i],t[i++]=a&this.DM,a>>=this.DB;a-=e.s}t.s=a<0?-1:0,a<-1?t[i++]=this.DV+a:a>0&&(t[i++]=a),t.t=i,t.clamp()},i.prototype.multiplyTo=function(e,t){var a=this.abs(),n=e.abs(),r=a.t;for(t.t=r+n.t;--r>=0;)t[r]=0;for(r=0;r<n.t;++r)t[r+a.t]=a.am(0,n[r],t,r,0,a.t);t.s=0,t.clamp(),this.s!=e.s&&i.ZERO.subTo(t,t)},i.prototype.squareTo=function(e){for(var t=this.abs(),i=e.t=2*t.t;--i>=0;)e[i]=0;for(i=0;i<t.t-1;++i){var a=t.am(i,t[i],e,2*i,0,1);(e[i+t.t]+=t.am(i+1,2*t[i],e,2*i+1,a,t.t-i-1))>=t.DV&&(e[i+t.t]-=t.DV,e[i+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(i,t[i],e,2*i,0,1)),e.s=0,e.clamp()},i.prototype.divRemTo=function(e,t,n){var r=e.abs();if(!(r.t<=0)){var s=this.abs();if(s.t<r.t)return null!=t&&t.fromInt(0),void(null!=n&&this.copyTo(n));null==n&&(n=a());var o=a(),l=this.s,c=e.s,d=this.DB-_(r[r.t-1]);d>0?(r.lShiftTo(d,o),s.lShiftTo(d,n)):(r.copyTo(o),s.copyTo(n));var h=o.t,u=o[h-1];if(0!=u){var x=u*(1<<this.F1)+(h>1?o[h-2]>>this.F2:0),p=this.FV/x,f=(1<<this.F1)/x,g=1<<this.F2,T=n.t,b=T-h,m=null==t?a():t;for(o.dlShiftTo(b,m),n.compareTo(m)>=0&&(n[n.t++]=1,n.subTo(m,n)),i.ONE.dlShiftTo(h,m),m.subTo(o,o);o.t<h;)o[o.t++]=0;for(;--b>=0;){var E=n[--T]==u?this.DM:Math.floor(n[T]*p+(n[T-1]+g)*f);if((n[T]+=o.am(0,E,n,b,0,h))<E)for(o.dlShiftTo(b,m),n.subTo(m,n);n[T]<--E;)n.subTo(m,n)}null!=t&&(n.drShiftTo(h,t),l!=c&&i.ZERO.subTo(t,t)),n.t=h,n.clamp(),d>0&&n.rShiftTo(d,n),l<0&&i.ZERO.subTo(n,n)}}},i.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(!(1&e))return 0;var t=3&e;return(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)>0?this.DV-t:-t},i.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},i.prototype.exp=function(e,t){if(e>4294967295||e<1)return i.ONE;var n=a(),r=a(),s=t.convert(this),o=_(e)-1;for(s.copyTo(n);--o>=0;)if(t.sqrTo(n,r),(e&1<<o)>0)t.mulTo(r,s,n);else{var l=n;n=r,r=l}return t.revert(n)},i.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)return this.toRadix(e);t=2}var i,a=(1<<t)-1,n=!1,r="",s=this.t,o=this.DB-s*this.DB%t;if(s-- >0)for(o<this.DB&&(i=this[s]>>o)>0&&(n=!0,r=l(i));s>=0;)o<t?(i=(this[s]&(1<<o)-1)<<t-o,i|=this[--s]>>(o+=this.DB-t)):(i=this[s]>>(o-=t)&a,o<=0&&(o+=this.DB,--s)),i>0&&(n=!0),n&&(r+=l(i));return n?r:"0"},i.prototype.negate=function(){var e=a();return i.ZERO.subTo(this,e),e},i.prototype.abs=function(){return this.s<0?this.negate():this},i.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var i=this.t;if(0!=(t=i-e.t))return this.s<0?-t:t;for(;--i>=0;)if(0!=(t=this[i]-e[i]))return t;return 0},i.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+_(this[this.t-1]^this.s&this.DM)},i.prototype.mod=function(e){var t=a();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(i.ZERO)>0&&e.subTo(t,t),t},i.prototype.modPowInt=function(e,t){var i;return i=e<256||t.isEven()?new h(t):new u(t),this.exp(e,i)},i.ZERO=d(0),i.ONE=d(1),m.prototype.convert=E,m.prototype.revert=E,m.prototype.mulTo=function(e,t,i){e.multiplyTo(t,i)},m.prototype.sqrTo=function(e,t){e.squareTo(t)},C.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=a();return e.copyTo(t),this.reduce(t),t},C.prototype.revert=function(e){return e},C.prototype.reduce=function(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);e.compareTo(this.m)>=0;)e.subTo(this.m,e)},C.prototype.mulTo=function(e,t,i){e.multiplyTo(t,i),this.reduce(i)},C.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)};var S,w,O,y=[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],v=(1<<26)/y[y.length-1];function N(){var e;e=(new Date).getTime(),w[O++]^=255&e,w[O++]^=e>>8&255,w[O++]^=e>>16&255,w[O++]^=e>>24&255,O>=R&&(O-=R)}if(i.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},i.prototype.toRadix=function(e){if(null==e&&(e=10),0==this.signum()||e<2||e>36)return"0";var t=this.chunkSize(e),i=Math.pow(e,t),n=d(i),r=a(),s=a(),o="";for(this.divRemTo(n,r,s);r.signum()>0;)o=(i+s.intValue()).toString(e).substr(1)+o,r.divRemTo(n,r,s);return s.intValue().toString(e)+o},i.prototype.fromRadix=function(e,t){this.fromInt(0),null==t&&(t=10);for(var a=this.chunkSize(t),n=Math.pow(t,a),r=!1,s=0,o=0,l=0;l<e.length;++l){var d=c(e,l);d<0?"-"==e.charAt(l)&&0==this.signum()&&(r=!0):(o=t*o+d,++s>=a&&(this.dMultiply(n),this.dAddOffset(o,0),s=0,o=0))}s>0&&(this.dMultiply(Math.pow(t,s)),this.dAddOffset(o,0)),r&&i.ZERO.subTo(this,this)},i.prototype.fromNumber=function(e,t,a){if("number"==typeof t)if(e<2)this.fromInt(1);else for(this.fromNumber(e,a),this.testBit(e-1)||this.bitwiseTo(i.ONE.shiftLeft(e-1),p,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(t);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(i.ONE.shiftLeft(e-1),this);else{var n=new Array,r=7&e;n.length=1+(e>>3),t.nextBytes(n),r>0?n[0]&=(1<<r)-1:n[0]=0,this.fromString(n,256)}},i.prototype.bitwiseTo=function(e,t,i){var a,n,r=Math.min(e.t,this.t);for(a=0;a<r;++a)i[a]=t(this[a],e[a]);if(e.t<this.t){for(n=e.s&this.DM,a=r;a<this.t;++a)i[a]=t(this[a],n);i.t=this.t}else{for(n=this.s&this.DM,a=r;a<e.t;++a)i[a]=t(n,e[a]);i.t=e.t}i.s=t(this.s,e.s),i.clamp()},i.prototype.changeBit=function(e,t){var a=i.ONE.shiftLeft(e);return this.bitwiseTo(a,t,a),a},i.prototype.addTo=function(e,t){for(var i=0,a=0,n=Math.min(e.t,this.t);i<n;)a+=this[i]+e[i],t[i++]=a&this.DM,a>>=this.DB;if(e.t<this.t){for(a+=e.s;i<this.t;)a+=this[i],t[i++]=a&this.DM,a>>=this.DB;a+=this.s}else{for(a+=this.s;i<e.t;)a+=e[i],t[i++]=a&this.DM,a>>=this.DB;a+=e.s}t.s=a<0?-1:0,a>0?t[i++]=a:a<-1&&(t[i++]=this.DV+a),t.t=i,t.clamp()},i.prototype.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},i.prototype.dAddOffset=function(e,t){if(0!=e){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=e;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},i.prototype.multiplyLowerTo=function(e,t,i){var a,n=Math.min(this.t+e.t,t);for(i.s=0,i.t=n;n>0;)i[--n]=0;for(a=i.t-this.t;n<a;++n)i[n+this.t]=this.am(0,e[n],i,n,0,this.t);for(a=Math.min(e.t,t);n<a;++n)this.am(0,e[n],i,n,0,t-n);i.clamp()},i.prototype.multiplyUpperTo=function(e,t,i){--t;var a=i.t=this.t+e.t-t;for(i.s=0;--a>=0;)i[a]=0;for(a=Math.max(t-this.t,0);a<e.t;++a)i[this.t+a-t]=this.am(t-a,e[a],i,0,0,this.t+a-t);i.clamp(),i.drShiftTo(1,i)},i.prototype.modInt=function(e){if(e<=0)return 0;var t=this.DV%e,i=this.s<0?e-1:0;if(this.t>0)if(0==t)i=this[0]%e;else for(var a=this.t-1;a>=0;--a)i=(t*i+this[a])%e;return i},i.prototype.millerRabin=function(e){var t=this.subtract(i.ONE),n=t.getLowestSetBit();if(n<=0)return!1;var r=t.shiftRight(n);(e=e+1>>1)>y.length&&(e=y.length);for(var s=a(),o=0;o<e;++o){s.fromInt(y[Math.floor(Math.random()*y.length)]);var l=s.modPow(r,this);if(0!=l.compareTo(i.ONE)&&0!=l.compareTo(t)){for(var c=1;c++<n&&0!=l.compareTo(t);)if(0==(l=l.modPowInt(2,this)).compareTo(i.ONE))return!1;if(0!=l.compareTo(t))return!1}}return!0},i.prototype.clone=function(){var e=a();return this.copyTo(e),e},i.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]},i.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},i.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},i.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},i.prototype.toByteArray=function(){var e=this.t,t=new Array;t[0]=this.s;var i,a=this.DB-e*this.DB%8,n=0;if(e-- >0)for(a<this.DB&&(i=this[e]>>a)!=(this.s&this.DM)>>a&&(t[n++]=i|this.s<<this.DB-a);e>=0;)a<8?(i=(this[e]&(1<<a)-1)<<8-a,i|=this[--e]>>(a+=this.DB-8)):(i=this[e]>>(a-=8)&255,a<=0&&(a+=this.DB,--e)),128&i&&(i|=-256),0==n&&(128&this.s)!=(128&i)&&++n,(n>0||i!=this.s)&&(t[n++]=i);return t},i.prototype.equals=function(e){return 0==this.compareTo(e)},i.prototype.min=function(e){return this.compareTo(e)<0?this:e},i.prototype.max=function(e){return this.compareTo(e)>0?this:e},i.prototype.and=function(e){var t=a();return this.bitwiseTo(e,x,t),t},i.prototype.or=function(e){var t=a();return this.bitwiseTo(e,p,t),t},i.prototype.xor=function(e){var t=a();return this.bitwiseTo(e,f,t),t},i.prototype.andNot=function(e){var t=a();return this.bitwiseTo(e,g,t),t},i.prototype.not=function(){for(var e=a(),t=0;t<this.t;++t)e[t]=this.DM&~this[t];return e.t=this.t,e.s=~this.s,e},i.prototype.shiftLeft=function(e){var t=a();return e<0?this.rShiftTo(-e,t):this.lShiftTo(e,t),t},i.prototype.shiftRight=function(e){var t=a();return e<0?this.lShiftTo(-e,t):this.rShiftTo(e,t),t},i.prototype.getLowestSetBit=function(){for(var e=0;e<this.t;++e)if(0!=this[e])return e*this.DB+T(this[e]);return this.s<0?this.t*this.DB:-1},i.prototype.bitCount=function(){for(var e=0,t=this.s&this.DM,i=0;i<this.t;++i)e+=b(this[i]^t);return e},i.prototype.testBit=function(e){var t=Math.floor(e/this.DB);return t>=this.t?0!=this.s:!!(this[t]&1<<e%this.DB)},i.prototype.setBit=function(e){return this.changeBit(e,p)},i.prototype.clearBit=function(e){return this.changeBit(e,g)},i.prototype.flipBit=function(e){return this.changeBit(e,f)},i.prototype.add=function(e){var t=a();return this.addTo(e,t),t},i.prototype.subtract=function(e){var t=a();return this.subTo(e,t),t},i.prototype.multiply=function(e){var t=a();return this.multiplyTo(e,t),t},i.prototype.divide=function(e){var t=a();return this.divRemTo(e,t,null),t},i.prototype.remainder=function(e){var t=a();return this.divRemTo(e,null,t),t},i.prototype.divideAndRemainder=function(e){var t=a(),i=a();return this.divRemTo(e,t,i),new Array(t,i)},i.prototype.modPow=function(e,t){var i,n,r=e.bitLength(),s=d(1);if(r<=0)return s;i=r<18?1:r<48?3:r<144?4:r<768?5:6,n=r<8?new h(t):t.isEven()?new C(t):new u(t);var o=new Array,l=3,c=i-1,x=(1<<i)-1;if(o[1]=n.convert(this),i>1){var p=a();for(n.sqrTo(o[1],p);l<=x;)o[l]=a(),n.mulTo(p,o[l-2],o[l]),l+=2}var f,g,T=e.t-1,b=!0,m=a();for(r=_(e[T])-1;T>=0;){for(r>=c?f=e[T]>>r-c&x:(f=(e[T]&(1<<r+1)-1)<<c-r,T>0&&(f|=e[T-1]>>this.DB+r-c)),l=i;!(1&f);)f>>=1,--l;if((r-=l)<0&&(r+=this.DB,--T),b)o[f].copyTo(s),b=!1;else{for(;l>1;)n.sqrTo(s,m),n.sqrTo(m,s),l-=2;l>0?n.sqrTo(s,m):(g=s,s=m,m=g),n.mulTo(m,o[f],s)}for(;T>=0&&!(e[T]&1<<r);)n.sqrTo(s,m),g=s,s=m,m=g,--r<0&&(r=this.DB-1,--T)}return n.revert(s)},i.prototype.modInverse=function(e){var t=e.isEven();if(this.isEven()&&t||0==e.signum())return i.ZERO;for(var a=e.clone(),n=this.clone(),r=d(1),s=d(0),o=d(0),l=d(1);0!=a.signum();){for(;a.isEven();)a.rShiftTo(1,a),t?(r.isEven()&&s.isEven()||(r.addTo(this,r),s.subTo(e,s)),r.rShiftTo(1,r)):s.isEven()||s.subTo(e,s),s.rShiftTo(1,s);for(;n.isEven();)n.rShiftTo(1,n),t?(o.isEven()&&l.isEven()||(o.addTo(this,o),l.subTo(e,l)),o.rShiftTo(1,o)):l.isEven()||l.subTo(e,l),l.rShiftTo(1,l);a.compareTo(n)>=0?(a.subTo(n,a),t&&r.subTo(o,r),s.subTo(l,s)):(n.subTo(a,n),t&&o.subTo(r,o),l.subTo(s,l))}return 0!=n.compareTo(i.ONE)?i.ZERO:l.compareTo(e)>=0?l.subtract(e):l.signum()<0?(l.addTo(e,l),l.signum()<0?l.add(e):l):l},i.prototype.pow=function(e){return this.exp(e,new m)},i.prototype.gcd=function(e){var t=this.s<0?this.negate():this.clone(),i=e.s<0?e.negate():e.clone();if(t.compareTo(i)<0){var a=t;t=i,i=a}var n=t.getLowestSetBit(),r=i.getLowestSetBit();if(r<0)return t;for(n<r&&(r=n),r>0&&(t.rShiftTo(r,t),i.rShiftTo(r,i));t.signum()>0;)(n=t.getLowestSetBit())>0&&t.rShiftTo(n,t),(n=i.getLowestSetBit())>0&&i.rShiftTo(n,i),t.compareTo(i)>=0?(t.subTo(i,t),t.rShiftTo(1,t)):(i.subTo(t,i),i.rShiftTo(1,i));return r>0&&i.lShiftTo(r,i),i},i.prototype.isProbablePrime=function(e){var t,i=this.abs();if(1==i.t&&i[0]<=y[y.length-1]){for(t=0;t<y.length;++t)if(i[0]==y[t])return!0;return!1}if(i.isEven())return!1;for(t=1;t<y.length;){for(var a=y[t],n=t+1;n<y.length&&a<v;)a*=y[n++];for(a=i.modInt(a);t<n;)if(a%y[t++]==0)return!1}return i.millerRabin(e)},i.prototype.square=function(){var e=a();return this.squareTo(e),e},i.prototype.Barrett=C,null==w){var L;if(w=new Array,O=0,"undefined"!=typeof window&&window.crypto)if(window.crypto.getRandomValues){var M=new Uint8Array(32);for(window.crypto.getRandomValues(M),L=0;L<32;++L)w[O++]=M[L]}else if("Netscape"==navigator.appName&&navigator.appVersion<"5"){var I=window.crypto.random(32);for(L=0;L<I.length;++L)w[O++]=255&I.charCodeAt(L)}for(;O<R;)L=Math.floor(65536*Math.random()),w[O++]=L>>>8,w[O++]=255&L;O=0,N()}function P(){if(null==S){for(N(),(S=new V).init(w),O=0;O<w.length;++O)w[O]=0;O=0}return S.next()}function A(){}function V(){this.i=0,this.j=0,this.S=new Array}A.prototype.nextBytes=function(e){var t;for(t=0;t<e.length;++t)e[t]=P()},V.prototype.init=function(e){var t,i,a;for(t=0;t<256;++t)this.S[t]=t;for(i=0,t=0;t<256;++t)i=i+this.S[t]+e[t%e.length]&255,a=this.S[t],this.S[t]=this.S[i],this.S[i]=a;this.i=0,this.j=0},V.prototype.next=function(){var e;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,e=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=e,this.S[e+this.S[this.i]&255]};var R=256;e.exports={default:i,BigInteger:i,SecureRandom:A}}).call(commonjsGlobal)}(jsbn);var jsbnExports=jsbn.exports;const{BigInteger:BigInteger$3}=jsbnExports;function bigintToValue(e){let t=e.toString(16);if("-"!==t[0])t.length%2==1?t="0"+t:t.match(/^[0-7]/)||(t="00"+t);else{t=t.substr(1);let i=t.length;i%2==1?i+=1:t.match(/^[0-7]/)||(i+=2);let a="";for(let e=0;e<i;e++)a+="f";a=new BigInteger$3(a,16),t=a.xor(e).add(BigInteger$3.ONE),t=t.toString(16).replace(/^-/,"")}return t}class ASN1Object{constructor(){this.tlv=null,this.t="00",this.l="00",this.v=""}getEncodedHex(){return this.tlv||(this.v=this.getValue(),this.l=this.getLength(),this.tlv=this.t+this.l+this.v),this.tlv}getLength(){const e=this.v.length/2;let t=e.toString(16);if(t.length%2==1&&(t="0"+t),e<128)return t;return(128+t.length/2).toString(16)+t}getValue(){return""}}class DERInteger extends ASN1Object{constructor(e){super(),this.t="02",e&&(this.v=bigintToValue(e))}getValue(){return this.v}}class DERSequence extends ASN1Object{constructor(e){super(),this.t="30",this.asn1Array=e}getValue(){return this.v=this.asn1Array.map((e=>e.getEncodedHex())).join(""),this.v}}function getLenOfL(e,t){return+e[t+2]<8?1:128&+e.substr(t+2,2)}function getL(e,t){const i=getLenOfL(e,t),a=e.substr(t+2,2*i);if(!a)return-1;return(+a[0]<8?new BigInteger$3(a,16):new BigInteger$3(a.substr(2),16)).intValue()}function getStartOfV(e,t){return t+2*(getLenOfL(e,t)+1)}var asn1={encodeDer(e,t){const i=new DERInteger(e),a=new DERInteger(t);return new DERSequence([i,a]).getEncodedHex()},decodeDer(e){const t=getStartOfV(e,0),i=getStartOfV(e,t),a=getL(e,t),n=e.substr(i,2*a),r=i+n.length,s=getStartOfV(e,r),o=getL(e,r),l=e.substr(s,2*o);return{r:new BigInteger$3(n,16),s:new BigInteger$3(l,16)}}};const{BigInteger:BigInteger$2}=jsbnExports,TWO=new BigInteger$2("2"),THREE=new BigInteger$2("3");class ECFieldElementFp{constructor(e,t){this.x=t,this.q=e}equals(e){return e===this||this.q.equals(e.q)&&this.x.equals(e.x)}toBigInteger(){return this.x}negate(){return new ECFieldElementFp(this.q,this.x.negate().mod(this.q))}add(e){return new ECFieldElementFp(this.q,this.x.add(e.toBigInteger()).mod(this.q))}subtract(e){return new ECFieldElementFp(this.q,this.x.subtract(e.toBigInteger()).mod(this.q))}multiply(e){return new ECFieldElementFp(this.q,this.x.multiply(e.toBigInteger()).mod(this.q))}divide(e){return new ECFieldElementFp(this.q,this.x.multiply(e.toBigInteger().modInverse(this.q)).mod(this.q))}square(){return new ECFieldElementFp(this.q,this.x.square().mod(this.q))}}class ECPointFp{constructor(e,t,i,a){this.curve=e,this.x=t,this.y=i,this.z=null==a?BigInteger$2.ONE:a,this.zinv=null}getX(){return null===this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.x.toBigInteger().multiply(this.zinv).mod(this.curve.q))}getY(){return null===this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.y.toBigInteger().multiply(this.zinv).mod(this.curve.q))}equals(e){if(e===this)return!0;if(this.isInfinity())return e.isInfinity();if(e.isInfinity())return this.isInfinity();if(!e.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(e.z)).mod(this.curve.q).equals(BigInteger$2.ZERO))return!1;return e.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(e.z)).mod(this.curve.q).equals(BigInteger$2.ZERO)}isInfinity(){return null===this.x&&null===this.y||this.z.equals(BigInteger$2.ZERO)&&!this.y.toBigInteger().equals(BigInteger$2.ZERO)}negate(){return new ECPointFp(this.curve,this.x,this.y.negate(),this.z)}add(e){if(this.isInfinity())return e;if(e.isInfinity())return this;const t=this.x.toBigInteger(),i=this.y.toBigInteger(),a=this.z,n=e.x.toBigInteger(),r=e.y.toBigInteger(),s=e.z,o=this.curve.q,l=t.multiply(s).mod(o),c=n.multiply(a).mod(o),d=l.subtract(c),_=i.multiply(s).mod(o),h=r.multiply(a).mod(o),u=_.subtract(h);if(BigInteger$2.ZERO.equals(d))return BigInteger$2.ZERO.equals(u)?this.twice():this.curve.infinity;const x=l.add(c),p=a.multiply(s).mod(o),f=d.square().mod(o),g=d.multiply(f).mod(o),T=p.multiply(u.square()).subtract(x.multiply(f)).mod(o),b=d.multiply(T).mod(o),m=u.multiply(f.multiply(l).subtract(T)).subtract(_.multiply(g)).mod(o),E=g.multiply(p).mod(o);return new ECPointFp(this.curve,this.curve.fromBigInteger(b),this.curve.fromBigInteger(m),E)}twice(){if(this.isInfinity())return this;if(!this.y.toBigInteger().signum())return this.curve.infinity;const e=this.x.toBigInteger(),t=this.y.toBigInteger(),i=this.z,a=this.curve.q,n=this.curve.a.toBigInteger(),r=e.square().multiply(THREE).add(n.multiply(i.square())).mod(a),s=t.shiftLeft(1).multiply(i).mod(a),o=t.square().mod(a),l=o.multiply(e).multiply(i).mod(a),c=s.square().mod(a),d=r.square().subtract(l.shiftLeft(3)).mod(a),_=s.multiply(d).mod(a),h=r.multiply(l.shiftLeft(2).subtract(d)).subtract(c.shiftLeft(1).multiply(o)).mod(a),u=s.multiply(c).mod(a);return new ECPointFp(this.curve,this.curve.fromBigInteger(_),this.curve.fromBigInteger(h),u)}multiply(e){if(this.isInfinity())return this;if(!e.signum())return this.curve.infinity;const t=e.multiply(THREE),i=this.negate();let a=this;for(let n=t.bitLength()-2;n>0;n--){a=a.twice();const r=t.testBit(n);r!==e.testBit(n)&&(a=a.add(r?this:i))}return a}}let ECCurveFp$1=class{constructor(e,t,i){this.q=e,this.a=this.fromBigInteger(t),this.b=this.fromBigInteger(i),this.infinity=new ECPointFp(this,null,null)}equals(e){return e===this||this.q.equals(e.q)&&this.a.equals(e.a)&&this.b.equals(e.b)}fromBigInteger(e){return new ECFieldElementFp(this.q,e)}decodePointHex(e){switch(parseInt(e.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:const t=this.fromBigInteger(new BigInteger$2(e.substr(2),16));let i=this.fromBigInteger(t.multiply(t.square()).add(t.multiply(this.a)).add(this.b).toBigInteger().modPow(this.q.divide(new BigInteger$2("4")).add(BigInteger$2.ONE),this.q));return i.toBigInteger().mod(TWO).equals(new BigInteger$2(e.substr(0,2),16).subtract(TWO))||(i=i.negate()),new ECPointFp(this,t,i);case 4:case 6:case 7:const a=(e.length-2)/2,n=e.substr(2,a),r=e.substr(a+2,a);return new ECPointFp(this,this.fromBigInteger(new BigInteger$2(n,16)),this.fromBigInteger(new BigInteger$2(r,16)));default:return null}}};var ec={ECPointFp:ECPointFp,ECCurveFp:ECCurveFp$1};const{BigInteger:BigInteger$1,SecureRandom:SecureRandom}=jsbnExports,{ECCurveFp:ECCurveFp2}=ec,rng=new SecureRandom,{curve:curve$1,G:G$1,n:n$1}=generateEcparam();function getGlobalCurve(){return curve$1}function generateEcparam(){const e=new BigInteger$1("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFF",16),t=new BigInteger$1("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFC",16),i=new BigInteger$1("28E9FA9E9D9F5E344D5A9E4BCF6509A7F39789F515AB8F92DDBCBD414D940E93",16),a=new ECCurveFp2(e,t,i),n=a.decodePointHex("0432C4AE2C1F1981195F9904466A39C9948FE30BBFF2660BE1715A4589334C74C7BC3736A2F4F6779C59BDCEE36B692153D0A9877CC62A474002DF32E52139F0A0");return{curve:a,G:n,n:new BigInteger$1("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFF7203DF6B21C6052B53BBF40939D54123",16)}}function generateKeyPairHex(e,t,i){const a=(e?new BigInteger$1(e,t,i):new BigInteger$1(n$1.bitLength(),rng)).mod(n$1.subtract(BigInteger$1.ONE)).add(BigInteger$1.ONE),n=leftPad$1(a.toString(16),64),r=G$1.multiply(a);return{privateKey:n,publicKey:"04"+leftPad$1(r.getX().toBigInteger().toString(16),64)+leftPad$1(r.getY().toBigInteger().toString(16),64)}}function compressPublicKeyHex(e){if(130!==e.length)throw new Error("Invalid public key to compress");const t=(e.length-2)/2,i=e.substr(2,t);let a="03";return new BigInteger$1(e.substr(t+2,t),16).mod(new BigInteger$1("2")).equals(BigInteger$1.ZERO)&&(a="02"),a+i}function utf8ToHex(e){const t=(e=unescape(encodeURIComponent(e))).length,i=[];for(let a=0;a<t;a++)i[a>>>2]|=(255&e.charCodeAt(a))<<24-a%4*8;const a=[];for(let e=0;e<t;e++){const t=i[e>>>2]>>>24-e%4*8&255;a.push((t>>>4).toString(16)),a.push((15&t).toString(16))}return a.join("")}function leftPad$1(e,t){return e.length>=t?e:new Array(t-e.length+1).join("0")+e}function arrayToHex(e){return e.map((e=>1===(e=e.toString(16)).length?"0"+e:e)).join("")}function arrayToUtf8$1(e){const t=[];let i=0;for(let a=0;a<2*e.length;a+=2)t[a>>>3]|=parseInt(e[i],10)<<24-a%8*4,i++;try{const i=[];for(let a=0;a<e.length;a++){const e=t[a>>>2]>>>24-a%4*8&255;i.push(String.fromCharCode(e))}return decodeURIComponent(escape(i.join("")))}catch(e){throw new Error("Malformed UTF-8 data")}}function hexToArray$2(e){const t=[];let i=e.length;i%2!=0&&(e=leftPad$1(e,i+1)),i=e.length;for(let a=0;a<i;a+=2)t.push(parseInt(e.substr(a,2),16));return t}function verifyPublicKey(e){const t=curve$1.decodePointHex(e);if(!t)return!1;const i=t.getX();return t.getY().square().equals(i.multiply(i.square()).add(i.multiply(curve$1.a)).add(curve$1.b))}function comparePublicKeyHex(e,t){const i=curve$1.decodePointHex(e);if(!i)return!1;const a=curve$1.decodePointHex(t);return!!a&&i.equals(a)}var utils={getGlobalCurve:getGlobalCurve,generateEcparam:generateEcparam,generateKeyPairHex:generateKeyPairHex,compressPublicKeyHex:compressPublicKeyHex,utf8ToHex:utf8ToHex,leftPad:leftPad$1,arrayToHex:arrayToHex,arrayToUtf8:arrayToUtf8$1,hexToArray:hexToArray$2,verifyPublicKey:verifyPublicKey,comparePublicKeyHex:comparePublicKeyHex};const W=new Uint32Array(68),M=new Uint32Array(64);function rotl$1(e,t){const i=31&t;return e<<i|e>>>32-i}function xor(e,t){const i=[];for(let a=e.length-1;a>=0;a--)i[a]=255&(e[a]^t[a]);return i}function P0(e){return e^rotl$1(e,9)^rotl$1(e,17)}function P1(e){return e^rotl$1(e,15)^rotl$1(e,23)}function sm3$2(e){let t=8*e.length,i=t%512;i=i>=448?512-i%448-1:448-i-1;const a=new Array((i-7)/8),n=new Array(8);for(let e=0,t=a.length;e<t;e++)a[e]=0;for(let e=0,t=n.length;e<t;e++)n[e]=0;t=t.toString(2);for(let e=7;e>=0;e--)if(t.length>8){const i=t.length-8;n[e]=parseInt(t.substr(i),2),t=t.substr(0,i)}else t.length>0&&(n[e]=parseInt(t,2),t="");const r=new Uint8Array([...e,128,...a,...n]),s=new DataView(r.buffer,0),o=r.length/64,l=new Uint32Array([1937774191,1226093241,388252375,3666478592,2842636476,372324522,3817729613,2969243214]);for(let e=0;e<o;e++){W.fill(0),M.fill(0);const t=16*e;for(let e=0;e<16;e++)W[e]=s.getUint32(4*(t+e),!1);for(let e=16;e<68;e++)W[e]=P1(W[e-16]^W[e-9]^rotl$1(W[e-3],15))^rotl$1(W[e-13],7)^W[e-6];for(let e=0;e<64;e++)M[e]=W[e]^W[e+4];const i=2043430169,a=2055708042;let n,r,o,c,d,_=l[0],h=l[1],u=l[2],x=l[3],p=l[4],f=l[5],g=l[6],T=l[7];for(let e=0;e<64;e++)d=e>=0&&e<=15?i:a,n=rotl$1(rotl$1(_,12)+p+rotl$1(d,e),7),r=n^rotl$1(_,12),o=(e>=0&&e<=15?_^h^u:_&h|_&u|h&u)+x+r+M[e],c=(e>=0&&e<=15?p^f^g:p&f|~p&g)+T+n+W[e],x=u,u=rotl$1(h,9),h=_,_=o,T=g,g=rotl$1(f,19),f=p,p=P0(c);l[0]^=_,l[1]^=h,l[2]^=u,l[3]^=x,l[4]^=p,l[5]^=f,l[6]^=g,l[7]^=T}const c=[];for(let e=0,t=l.length;e<t;e++){const t=l[e];c.push((4278190080&t)>>>24,(16711680&t)>>>16,(65280&t)>>>8,255&t)}return c}const blockLen=64,iPad=new Uint8Array(64),oPad=new Uint8Array(64);for(let e=0;e<64;e++)iPad[e]=54,oPad[e]=92;function hmac$1(e,t){for(t.length>64&&(t=sm3$2(t));t.length<64;)t.push(0);const i=xor(t,iPad),a=xor(t,oPad),n=sm3$2([...i,...e]);return sm3$2([...a,...n])}var sm3_1$1={sm3:sm3$2,hmac:hmac$1};const{BigInteger:BigInteger}=jsbnExports,{encodeDer:encodeDer,decodeDer:decodeDer}=asn1,_=utils,sm3$1=sm3_1$1.sm3,{G:G,curve:curve,n:n}=_.generateEcparam(),C1C2C3=0;function doEncrypt(e,t,i=1){e="string"==typeof e?_.hexToArray(_.utf8ToHex(e)):Array.prototype.slice.call(e),t=_.getGlobalCurve().decodePointHex(t);const a=_.generateKeyPairHex(),n=new BigInteger(a.privateKey,16);let r=a.publicKey;r.length>128&&(r=r.substr(r.length-128));const s=t.multiply(n),o=_.hexToArray(_.leftPad(s.getX().toBigInteger().toRadix(16),64)),l=_.hexToArray(_.leftPad(s.getY().toBigInteger().toRadix(16),64)),c=_.arrayToHex(sm3$1([].concat(o,e,l)));let d=1,h=0,u=[];const x=[].concat(o,l),p=()=>{u=sm3$1([...x,d>>24&255,d>>16&255,d>>8&255,255&d]),d++,h=0};p();for(let t=0,i=e.length;t<i;t++)h===u.length&&p(),e[t]^=255&u[h++];const f=_.arrayToHex(e);return 0===i?r+f+c:r+c+f}function doDecrypt(e,t,i=1,{output:a="string"}={}){t=new BigInteger(t,16);let n=e.substr(128,64),r=e.substr(192);0===i&&(n=e.substr(e.length-64),r=e.substr(128,e.length-128-64));const s=_.hexToArray(r),o=_.getGlobalCurve().decodePointHex("04"+e.substr(0,128)).multiply(t),l=_.hexToArray(_.leftPad(o.getX().toBigInteger().toRadix(16),64)),c=_.hexToArray(_.leftPad(o.getY().toBigInteger().toRadix(16),64));let d=1,h=0,u=[];const x=[].concat(l,c),p=()=>{u=sm3$1([...x,d>>24&255,d>>16&255,d>>8&255,255&d]),d++,h=0};p();for(let e=0,t=s.length;e<t;e++)h===u.length&&p(),s[e]^=255&u[h++];return _.arrayToHex(sm3$1([].concat(l,s,c)))===n.toLowerCase()?"array"===a?s:_.arrayToUtf8(s):"array"===a?[]:""}function doSignature(e,t,{pointPool:i,der:a,hash:r,publicKey:s,userId:o}={}){let l="string"==typeof e?_.utf8ToHex(e):_.arrayToHex(e);r&&(l=getHash(l,s=s||getPublicKeyFromPrivateKey(t),o));const c=new BigInteger(t,16),d=new BigInteger(l,16);let h=null,u=null,x=null;do{do{let e;e=i&&i.length?i.pop():getPoint(),h=e.k,u=d.add(e.x1).mod(n)}while(u.equals(BigInteger.ZERO)||u.add(h).equals(n));x=c.add(BigInteger.ONE).modInverse(n).multiply(h.subtract(u.multiply(c))).mod(n)}while(x.equals(BigInteger.ZERO));return a?encodeDer(u,x):_.leftPad(u.toString(16),64)+_.leftPad(x.toString(16),64)}function doVerifySignature(e,t,i,{der:a,hash:r,userId:s}={}){let o,l,c="string"==typeof e?_.utf8ToHex(e):_.arrayToHex(e);if(r&&(c=getHash(c,i,s)),a){const e=decodeDer(t);o=e.r,l=e.s}else o=new BigInteger(t.substring(0,64),16),l=new BigInteger(t.substring(64),16);const d=curve.decodePointHex(i),h=new BigInteger(c,16),u=o.add(l).mod(n);if(u.equals(BigInteger.ZERO))return!1;const x=G.multiply(l).add(d.multiply(u)),p=h.add(x.getX().toBigInteger()).mod(n);return o.equals(p)}function getHash(e,t,i="1234567812345678"){i=_.utf8ToHex(i);const a=_.leftPad(G.curve.a.toBigInteger().toRadix(16),64),n=_.leftPad(G.curve.b.toBigInteger().toRadix(16),64),r=_.leftPad(G.getX().toBigInteger().toRadix(16),64),s=_.leftPad(G.getY().toBigInteger().toRadix(16),64);let o,l;if(128===t.length)o=t.substr(0,64),l=t.substr(64,64);else{const e=G.curve.decodePointHex(t);o=_.leftPad(e.getX().toBigInteger().toRadix(16),64),l=_.leftPad(e.getY().toBigInteger().toRadix(16),64)}const c=_.hexToArray(i+a+n+r+s+o+l),d=4*i.length;c.unshift(255&d),c.unshift(d>>8&255);const h=sm3$1(c);return _.arrayToHex(sm3$1(h.concat(_.hexToArray(e))))}function getPublicKeyFromPrivateKey(e){const t=G.multiply(new BigInteger(e,16));return"04"+_.leftPad(t.getX().toBigInteger().toString(16),64)+_.leftPad(t.getY().toBigInteger().toString(16),64)}function getPoint(){const e=_.generateKeyPairHex(),t=curve.decodePointHex(e.publicKey);return e.k=new BigInteger(e.privateKey,16),e.x1=t.getX().toBigInteger(),e}var sm2={generateKeyPairHex:_.generateKeyPairHex,compressPublicKeyHex:_.compressPublicKeyHex,comparePublicKeyHex:_.comparePublicKeyHex,doEncrypt:doEncrypt,doDecrypt:doDecrypt,doSignature:doSignature,doVerifySignature:doVerifySignature,getPublicKeyFromPrivateKey:getPublicKeyFromPrivateKey,getPoint:getPoint,verifyPublicKey:_.verifyPublicKey};const{sm3:sm3,hmac:hmac}=sm3_1$1;function leftPad(e,t){return e.length>=t?e:new Array(t-e.length+1).join("0")+e}function ArrayToHex$1(e){return e.map((e=>1===(e=e.toString(16)).length?"0"+e:e)).join("")}function hexToArray$1(e){const t=[];let i=e.length;i%2!=0&&(e=leftPad(e,i+1)),i=e.length;for(let a=0;a<i;a+=2)t.push(parseInt(e.substr(a,2),16));return t}function utf8ToArray$1(e){const t=[];for(let i=0,a=e.length;i<a;i++){const a=e.codePointAt(i);if(a<=127)t.push(a);else if(a<=2047)t.push(192|a>>>6),t.push(128|63&a);else if(a<=55295||a>=57344&&a<=65535)t.push(224|a>>>12),t.push(128|a>>>6&63),t.push(128|63&a);else{if(!(a>=65536&&a<=1114111))throw t.push(a),new Error("input is not supported");i++,t.push(240|a>>>18&28),t.push(128|a>>>12&63),t.push(128|a>>>6&63),t.push(128|63&a)}}return t}var sm3_1=function(e,t){if(e="string"==typeof e?utf8ToArray$1(e):Array.prototype.slice.call(e),t){if("hmac"!==(t.mode||"hmac"))throw new Error("invalid mode");let i=t.key;if(!i)throw new Error("invalid key");return i="string"==typeof i?hexToArray$1(i):Array.prototype.slice.call(i),ArrayToHex$1(hmac(e,i))}return ArrayToHex$1(sm3(e))};const DECRYPT=0,ROUND=32,BLOCK=16,Sbox=[214,144,233,254,204,225,61,183,22,182,20,194,40,251,44,5,43,103,154,118,42,190,4,195,170,68,19,38,73,134,6,153,156,66,80,244,145,239,152,122,51,84,11,67,237,207,172,98,228,179,28,169,201,8,232,149,128,223,148,250,117,143,63,166,71,7,167,252,243,115,23,186,131,89,60,25,230,133,79,168,104,107,129,178,113,100,218,139,248,235,15,75,112,86,157,53,30,36,14,94,99,88,209,162,37,34,124,59,1,33,120,135,212,0,70,87,159,211,39,82,76,54,2,231,160,196,200,158,234,191,138,210,64,199,56,181,163,247,242,206,249,97,21,161,224,174,93,164,155,52,26,85,173,147,50,48,245,140,177,227,29,246,226,46,130,102,202,96,192,41,35,171,13,83,78,111,213,219,55,69,222,253,142,47,3,255,106,114,109,108,91,81,141,27,175,146,187,221,188,127,17,217,92,65,31,16,90,216,10,193,49,136,165,205,123,189,45,116,208,18,184,229,180,176,137,105,151,74,12,150,119,126,101,185,241,9,197,110,198,132,24,240,125,236,58,220,77,32,121,238,95,62,215,203,57,72],CK=[462357,472066609,943670861,1415275113,1886879365,2358483617,2830087869,3301692121,3773296373,4228057617,404694573,876298825,1347903077,1819507329,2291111581,2762715833,3234320085,3705924337,4177462797,337322537,808926789,1280531041,1752135293,2223739545,2695343797,3166948049,3638552301,4110090761,269950501,741554753,1213159005,1684763257];function hexToArray(e){const t=[];for(let i=0,a=e.length;i<a;i+=2)t.push(parseInt(e.substr(i,2),16));return t}function ArrayToHex(e){return e.map((e=>1===(e=e.toString(16)).length?"0"+e:e)).join("")}function utf8ToArray(e){const t=[];for(let i=0,a=e.length;i<a;i++){const a=e.codePointAt(i);if(a<=127)t.push(a);else if(a<=2047)t.push(192|a>>>6),t.push(128|63&a);else if(a<=55295||a>=57344&&a<=65535)t.push(224|a>>>12),t.push(128|a>>>6&63),t.push(128|63&a);else{if(!(a>=65536&&a<=1114111))throw t.push(a),new Error("input is not supported");i++,t.push(240|a>>>18&28),t.push(128|a>>>12&63),t.push(128|a>>>6&63),t.push(128|63&a)}}return t}function arrayToUtf8(e){const t=[];for(let i=0,a=e.length;i<a;i++)e[i]>=240&&e[i]<=247?(t.push(String.fromCodePoint(((7&e[i])<<18)+((63&e[i+1])<<12)+((63&e[i+2])<<6)+(63&e[i+3]))),i+=3):e[i]>=224&&e[i]<=239?(t.push(String.fromCodePoint(((15&e[i])<<12)+((63&e[i+1])<<6)+(63&e[i+2]))),i+=2):e[i]>=192&&e[i]<=223?(t.push(String.fromCodePoint(((31&e[i])<<6)+(63&e[i+1]))),i++):t.push(String.fromCodePoint(e[i]));return t.join("")}function rotl(e,t){const i=31&t;return e<<i|e>>>32-i}function byteSub(e){return(255&Sbox[e>>>24&255])<<24|(255&Sbox[e>>>16&255])<<16|(255&Sbox[e>>>8&255])<<8|255&Sbox[255&e]}function l1(e){return e^rotl(e,2)^rotl(e,10)^rotl(e,18)^rotl(e,24)}function l2(e){return e^rotl(e,13)^rotl(e,23)}function sms4Crypt(e,t,i){const a=new Array(4),n=new Array(4);for(let t=0;t<4;t++)n[0]=255&e[4*t],n[1]=255&e[4*t+1],n[2]=255&e[4*t+2],n[3]=255&e[4*t+3],a[t]=n[0]<<24|n[1]<<16|n[2]<<8|n[3];for(let e,t=0;t<32;t+=4)e=a[1]^a[2]^a[3]^i[t+0],a[0]^=l1(byteSub(e)),e=a[2]^a[3]^a[0]^i[t+1],a[1]^=l1(byteSub(e)),e=a[3]^a[0]^a[1]^i[t+2],a[2]^=l1(byteSub(e)),e=a[0]^a[1]^a[2]^i[t+3],a[3]^=l1(byteSub(e));for(let e=0;e<16;e+=4)t[e]=a[3-e/4]>>>24&255,t[e+1]=a[3-e/4]>>>16&255,t[e+2]=a[3-e/4]>>>8&255,t[e+3]=255&a[3-e/4]}function sms4KeyExt(e,t,i){const a=new Array(4),n=new Array(4);for(let t=0;t<4;t++)n[0]=255&e[0+4*t],n[1]=255&e[1+4*t],n[2]=255&e[2+4*t],n[3]=255&e[3+4*t],a[t]=n[0]<<24|n[1]<<16|n[2]<<8|n[3];a[0]^=2746333894,a[1]^=1453994832,a[2]^=1736282519,a[3]^=2993693404;for(let e,i=0;i<32;i+=4)e=a[1]^a[2]^a[3]^CK[i+0],t[i+0]=a[0]^=l2(byteSub(e)),e=a[2]^a[3]^a[0]^CK[i+1],t[i+1]=a[1]^=l2(byteSub(e)),e=a[3]^a[0]^a[1]^CK[i+2],t[i+2]=a[2]^=l2(byteSub(e)),e=a[0]^a[1]^a[2]^CK[i+3],t[i+3]=a[3]^=l2(byteSub(e));if(0===i)for(let e,i=0;i<16;i++)e=t[i],t[i]=t[31-i],t[31-i]=e}function sm4(e,t,i,{padding:a="pkcs#7",mode:n,iv:r=[],output:s="string"}={}){if("cbc"===n&&("string"==typeof r&&(r=hexToArray(r)),16!==r.length))throw new Error("iv is invalid");if("string"==typeof t&&(t=hexToArray(t)),16!==t.length)throw new Error("key is invalid");if(e="string"==typeof e?0!==i?utf8ToArray(e):hexToArray(e):[...e],("pkcs#5"===a||"pkcs#7"===a)&&0!==i){const t=16-e.length%16;for(let i=0;i<t;i++)e.push(t)}const o=new Array(32);sms4KeyExt(t,o,i);const l=[];let c=r,d=e.length,_=0;for(;d>=16;){const t=e.slice(_,_+16),a=new Array(16);if("cbc"===n)for(let e=0;e<16;e++)0!==i&&(t[e]^=c[e]);sms4Crypt(t,a,o);for(let e=0;e<16;e++)"cbc"===n&&0===i&&(a[e]^=c[e]),l[_+e]=a[e];"cbc"===n&&(c=0!==i?a:t),d-=16,_+=16}if(("pkcs#5"===a||"pkcs#7"===a)&&0===i){const e=l.length,t=l[e-1];for(let i=1;i<=t;i++)if(l[e-i]!==t)throw new Error("padding is invalid");l.splice(e-t,t)}return"array"!==s?0!==i?ArrayToHex(l):arrayToUtf8(l):l}var sm4_1={encrypt:(e,t,i)=>sm4(e,t,1,i),decrypt:(e,t,i)=>sm4(e,t,0,i)},src={sm2:sm2,sm3:sm3_1,sm4:sm4_1};const _0x45763a=(e,t)=>e<<t|e>>>32-t,_0x56b824=(e,t)=>{const i=2147483648&e,a=2147483648&t,n=1073741824&e,r=1073741824&t,s=(1073741823&e)+(1073741823&t);return n&r?2147483648^s^i^a:n|r?1073741824&s?3221225472^s^i^a:1073741824^s^i^a:s^i^a},_0x6643e1=(e,t,i)=>e&t|~e&i,_0x110f0d=(e,t,i)=>e&i|t&~i,_0x48960d=(e,t,i)=>e^t^i,_0x255c2c=(e,t,i)=>t^(e|~i),_0x3870d8=(e,t,i,a,n,r,s)=>(e=_0x56b824(e,_0x56b824(_0x56b824(_0x6643e1(t,i,a),n),s)),_0x56b824(_0x45763a(e,r),t)),_0x2d7f27=(e,t,i,a,n,r,s)=>(e=_0x56b824(e,_0x56b824(_0x56b824(_0x110f0d(t,i,a),n),s)),_0x56b824(_0x45763a(e,r),t)),_0x57653e=(e,t,i,a,n,r,s)=>(e=_0x56b824(e,_0x56b824(_0x56b824(_0x48960d(t,i,a),n),s)),_0x56b824(_0x45763a(e,r),t)),_0x7abf99=(e,t,i,a,n,r,s)=>(e=_0x56b824(e,_0x56b824(_0x56b824(_0x255c2c(t,i,a),n),s)),_0x56b824(_0x45763a(e,r),t)),_0x14609b=e=>{let t;const i=e.length,a=i+8,n=16*((a-a%64)/64+1),r=new Array(n-1);let s=0,o=0;for(;o<i;)t=(o-o%4)/4,s=o%4*8,r[t]=r[t]|e.charCodeAt(o)<<s,o++;return t=(o-o%4)/4,s=o%4*8,r[t]=r[t]|128<<s,r[n-2]=i<<3,r[n-1]=i>>>29,r},_0x602a75=e=>{let t,i="",a="";for(let n=0;n<=3;n++)t=e>>>8*n&255,a="0"+t.toString(16),i+=a.substr(a.length-2,2);return i},_0x489ad5=e=>{e=e.replace(/\r\n/g,"\n");let t="";for(let i=0;i<e.length;i++){const a=e.charCodeAt(i);a<128?t+=String.fromCharCode(a):a>127&&a<2048?(t+=String.fromCharCode(a>>6|192),t+=String.fromCharCode(63&a|128)):(t+=String.fromCharCode(a>>12|224),t+=String.fromCharCode(a>>6&63|128),t+=String.fromCharCode(63&a|128))}return t},_0x625519=e=>{let t,i,a,n,r,s,o,l,c,d;for(e=_0x489ad5(e),t=_0x14609b(e),o=1732584193,l=4023233417,c=2562383102,d=271733878,i=0;i<t.length;i+=16)a=o,n=l,r=c,s=d,o=_0x3870d8(o,l,c,d,t[i+0],7,3614090360),d=_0x3870d8(d,o,l,c,t[i+1],12,3905402710),c=_0x3870d8(c,d,o,l,t[i+2],17,606105819),l=_0x3870d8(l,c,d,o,t[i+3],22,3250441966),o=_0x3870d8(o,l,c,d,t[i+4],7,4118548399),d=_0x3870d8(d,o,l,c,t[i+5],12,1200080426),c=_0x3870d8(c,d,o,l,t[i+6],17,2821735955),l=_0x3870d8(l,c,d,o,t[i+7],22,4249261313),o=_0x3870d8(o,l,c,d,t[i+8],7,1770035416),d=_0x3870d8(d,o,l,c,t[i+9],12,2336552879),c=_0x3870d8(c,d,o,l,t[i+10],17,4294925233),l=_0x3870d8(l,c,d,o,t[i+11],22,2304563134),o=_0x3870d8(o,l,c,d,t[i+12],7,1804603682),d=_0x3870d8(d,o,l,c,t[i+13],12,4254626195),c=_0x3870d8(c,d,o,l,t[i+14],17,2792965006),l=_0x3870d8(l,c,d,o,t[i+15],22,1236535329),o=_0x2d7f27(o,l,c,d,t[i+1],5,4129170786),d=_0x2d7f27(d,o,l,c,t[i+6],9,3225465664),c=_0x2d7f27(c,d,o,l,t[i+11],14,643717713),l=_0x2d7f27(l,c,d,o,t[i+0],20,3921069994),o=_0x2d7f27(o,l,c,d,t[i+5],5,3593408605),d=_0x2d7f27(d,o,l,c,t[i+10],9,38016083),c=_0x2d7f27(c,d,o,l,t[i+15],14,3634488961),l=_0x2d7f27(l,c,d,o,t[i+4],20,3889429448),o=_0x2d7f27(o,l,c,d,t[i+9],5,568446438),d=_0x2d7f27(d,o,l,c,t[i+14],9,3275163606),c=_0x2d7f27(c,d,o,l,t[i+3],14,4107603335),l=_0x2d7f27(l,c,d,o,t[i+8],20,1163531501),o=_0x2d7f27(o,l,c,d,t[i+13],5,2850285829),d=_0x2d7f27(d,o,l,c,t[i+2],9,4243563512),c=_0x2d7f27(c,d,o,l,t[i+7],14,1735328473),l=_0x2d7f27(l,c,d,o,t[i+12],20,2368359562),o=_0x57653e(o,l,c,d,t[i+5],4,4294588738),d=_0x57653e(d,o,l,c,t[i+8],11,2272392833),c=_0x57653e(c,d,o,l,t[i+11],16,1839030562),l=_0x57653e(l,c,d,o,t[i+14],23,4259657740),o=_0x57653e(o,l,c,d,t[i+1],4,2763975236),d=_0x57653e(d,o,l,c,t[i+4],11,1272893353),c=_0x57653e(c,d,o,l,t[i+7],16,4139469664),l=_0x57653e(l,c,d,o,t[i+10],23,3200236656),o=_0x57653e(o,l,c,d,t[i+13],4,681279174),d=_0x57653e(d,o,l,c,t[i+0],11,3936430074),c=_0x57653e(c,d,o,l,t[i+3],16,3572445317),l=_0x57653e(l,c,d,o,t[i+6],23,76029189),o=_0x57653e(o,l,c,d,t[i+9],4,3654602809),d=_0x57653e(d,o,l,c,t[i+12],11,3873151461),c=_0x57653e(c,d,o,l,t[i+15],16,530742520),l=_0x57653e(l,c,d,o,t[i+2],23,3299628645),o=_0x7abf99(o,l,c,d,t[i+0],6,4096336452),d=_0x7abf99(d,o,l,c,t[i+7],10,1126891415),c=_0x7abf99(c,d,o,l,t[i+14],15,2878612391),l=_0x7abf99(l,c,d,o,t[i+5],21,4237533241),o=_0x7abf99(o,l,c,d,t[i+12],6,1700485571),d=_0x7abf99(d,o,l,c,t[i+3],10,2399980690),c=_0x7abf99(c,d,o,l,t[i+10],15,4293915773),l=_0x7abf99(l,c,d,o,t[i+1],21,2240044497),o=_0x7abf99(o,l,c,d,t[i+8],6,1873313359),d=_0x7abf99(d,o,l,c,t[i+15],10,4264355552),c=_0x7abf99(c,d,o,l,t[i+6],15,2734768916),l=_0x7abf99(l,c,d,o,t[i+13],21,1309151649),o=_0x7abf99(o,l,c,d,t[i+4],6,4149444226),d=_0x7abf99(d,o,l,c,t[i+11],10,3174756917),c=_0x7abf99(c,d,o,l,t[i+2],15,718787259),l=_0x7abf99(l,c,d,o,t[i+9],21,3951481745),o=_0x56b824(o,a),l=_0x56b824(l,n),c=_0x56b824(c,r),d=_0x56b824(d,s);return(_0x602a75(o)+_0x602a75(l)+_0x602a75(c)+_0x602a75(d)).toLowerCase()};class _0x11a89c{static getCanvasShowH(){return this.canvasH-this.bottomBarH-this.statusBarH}}class _0x436043{constructor(){this.layoutX=0,this.layoutY=0,this.layoutW=0,this.layoutH=0,this.minW=0,this.minH=0,this.maxW=0,this.maxH=0,this.alignParent=100,this.padding=0,this.paddingLeft=0,this.paddingRight=0,this.paddingTop=0,this.paddingBottom=0,this.margin=0,this.marginLeft=0,this.marginRight=0,this.marginTop=0,this.marginBottom=0,this.border=0,this.borderLeft=0,this.borderRight=0,this.borderTop=0,this.borderBottom=0}cloneModelLayoutParam(e){this.alignParent=e.alignParent,this.padding=e.padding,this.paddingLeft=e.paddingLeft,this.paddingRight=e.paddingRight,this.paddingTop=e.paddingTop,this.paddingBottom=e.paddingBottom,this.margin=e.margin,this.marginLeft=e.marginLeft,this.marginRight=e.marginRight,this.marginTop=e.marginTop,this.marginBottom=e.marginBottom,this.border=e.border,this.borderLeft=e.borderLeft,this.borderRight=e.borderRight,this.borderTop=e.borderTop,this.borderBottom=e.borderBottom}}class _0x48980d{constructor(e){this.valueList=[],e&&this.valueList.push(e)}append(e){return this.valueList.push(e),this}toString(){return this.valueList.join("")}}var ALIGN_PARENT=(e=>(e[e.LEFT_CENTER=0]="LEFT_CENTER",e[e.LEFT_TOP=1]="LEFT_TOP",e[e.LEFT_BOTTOM=2]="LEFT_BOTTOM",e[e.RIGHT_CENTER=3]="RIGHT_CENTER",e[e.RIGHT_TOP=4]="RIGHT_TOP",e[e.RIGHT_BOTTOM=5]="RIGHT_BOTTOM",e[e.CENTER=6]="CENTER",e[e.TOP_CENTER=7]="TOP_CENTER",e[e.BOTTOM_CENTER=8]="BOTTOM_CENTER",e[e.HORIZONTAL_CENTER=9]="HORIZONTAL_CENTER",e[e.VERTICAL_CENTER=10]="VERTICAL_CENTER",e[e.NONE=100]="NONE",e))(ALIGN_PARENT||{});class _0x5939b5{static getVarName(e){return""+this.var+e.substring(0,1).toUpperCase()+e.substring(1)}}_0x5939b5.FAIL="fail",_0x5939b5.SUC="suc",_0x5939b5.ALICE_HAO="$alice_",_0x5939b5.FUN_HAO="$fun_",_0x5939b5.VAR_HAO="$var_",_0x5939b5.ALICE_EID_INPUT="$eid_",_0x5939b5.KONG_GE=" ",_0x5939b5.NONE="",_0x5939b5.ASSETS_FILE=".ap",_0x5939b5.noCache=0,_0x5939b5.verUpdateCache=1,_0x5939b5.WENHAO="?",_0x5939b5.DENG="=",_0x5939b5.HE="&",_0x5939b5.key="key",_0x5939b5.val="val",_0x5939b5.type="type",_0x5939b5.var="var",_0x5939b5.varKey="varKey",_0x5939b5.DATA_TYPE_OBJECT=1,_0x5939b5.DATA_TYPE_ARRAY=2,_0x5939b5.UNUSE_COLOR="",_0x5939b5.UNUSE_INT=-923582351,_0x5939b5.TRANSPARENT_COLOR="#00000000",_0x5939b5.DEF_COLOR="#000000",_0x5939b5.EX_MODIFY_AFTER_ADD=1,_0x5939b5.EX_MODIFY_BEFORE_ADD=2,_0x5939b5.EX_MODIFY_AFTER_SUB=3,_0x5939b5.EX_MODIFY_BEFORE_SUB=4,_0x5939b5.DEF_NUMBER=0,_0x5939b5.SHARE_SCENE_HY=0,_0x5939b5.SHARE_SCENE_PYQ=1,_0x5939b5.SHARE_SCENE_SC=2;class _0x5d3984{constructor(e){if(this.keys=[],this.values=[],e){const t=Object.keys(e);for(const i of t)this.keys.push(i),this.values.push(e[i])}}put(e,t){const i=this.keys.indexOf(e);-1===i?(this.keys.push(e),this.values.push(t)):this.values[i]=t}get(e){const t=this.keys.indexOf(e);return-1===t?void 0:this.values[t]}getKey(e){return this.keys[e]}getVal(e){return this.values[e]}has(e){return this.keys.includes(e)}remove(e){const t=this.keys.indexOf(e);-1!==t&&(this.keys.splice(t,1),this.values.splice(t,1))}putAll(e){const t=e.getKeys(),i=e.getValues();for(let e=0;e<t.length;e++)this.put(t[e],i[e])}size(){return this.keys.length}clear(){this.keys=[],this.values=[]}getKeys(){return this.keys}getValues(){return this.values}clone(){const e=new _0x5d3984;for(let t=0;t<this.keys.length;t++)e.put(this.keys[t],this.values[t]);return e}containsKey(e){return this.keys.includes(e)}isEmpty(){return 0==this.keys.length&&0===this.values.length}forEach(e){for(let t=0;t<this.keys.length;t++){const i=e(this.values[t],this.keys[t]);if(!1===i)break;if(!0!==i&&void 0!==i)return i}}toObject(){const e={};for(let t=0;t<this.keys.length;t++)e[this.keys[t]]=this.values[t];return e}toJSONString(){const e={};return this.forEach(((t,i)=>{e[i]=t})),JSON.stringify(e)}*[Symbol.iterator](){for(let e=0;e<this.keys.length;e++)yield[this.keys[e],this.values[e]]}toUrlParams(){const e=new _0x48980d;if(this.size()>0){let t=0;this.forEach(((i,a)=>{t++,e.append(a),e.append(_0x5939b5.DENG),e.append(i),t<this.size()&&e.append(_0x5939b5.HE)}))}return e.toString()}}const _0x4a827b=class e{static encrypt(t){return src.sm4.encrypt(t,e.key,{mode:"cbc",iv:e.iv,padding:"pkcs#7"})}static decrypt(t){return src.sm4.decrypt(t,e.key,{mode:"cbc",iv:e.iv,padding:"pkcs#7"})}};_0x4a827b.key="8e57ceb3d52f37ba5caee980377958a2",_0x4a827b.iv="fedcba98765432100123456789abcdef";let _0x4bb58a=_0x4a827b;const _0x3f69c5=class e{static toParams(t){let i=