@ivujs/i-utils 1.1.1 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -19
- package/dist/cjs/id/index.cjs +26 -43
- package/dist/cjs/index.cjs +8 -398
- package/dist/es/id/index.d.ts +16 -0
- package/dist/es/id/index.mjs +28 -42
- package/dist/es/index.d.ts +2 -0
- package/dist/es/index.mjs +8 -58
- package/dist/index.d.ts +21 -0
- package/dist/lib/index.full.cjs.js +38 -0
- package/dist/lib/index.full.cjs.min.js +2 -0
- package/dist/lib/index.full.cjs.min.js.map +1 -0
- package/dist/lib/index.full.esm.js +35 -15822
- package/dist/lib/index.full.esm.min.js +2 -58
- package/dist/lib/index.full.esm.min.js.map +1 -0
- package/dist/lib/index.full.umd.js +39 -16176
- package/dist/lib/index.full.umd.min.js +2 -0
- package/dist/lib/index.full.umd.min.js.map +1 -0
- package/package.json +77 -54
- package/dist/cjs/ID-card/index.cjs +0 -122
- package/dist/cjs/array/index.cjs +0 -465
- package/dist/cjs/clipboard/index.cjs +0 -135
- package/dist/cjs/color/index.cjs +0 -210
- package/dist/cjs/constants/date.cjs +0 -186
- package/dist/cjs/constants/lang.cjs +0 -13
- package/dist/cjs/constants/math.cjs +0 -13
- package/dist/cjs/constants/regexp.cjs +0 -57
- package/dist/cjs/constants/sort.cjs +0 -15
- package/dist/cjs/cookie/index.cjs +0 -71
- package/dist/cjs/crypto/aes/aes.cjs +0 -533
- package/dist/cjs/crypto/aes/index.cjs +0 -28
- package/dist/cjs/crypto/base32/base32.cjs +0 -385
- package/dist/cjs/crypto/base32/index.cjs +0 -44
- package/dist/cjs/crypto/base64/base64.cjs +0 -433
- package/dist/cjs/crypto/base64/index.cjs +0 -64
- package/dist/cjs/crypto/des/des.cjs +0 -1054
- package/dist/cjs/crypto/des/index.cjs +0 -30
- package/dist/cjs/crypto/md5/index.cjs +0 -25
- package/dist/cjs/crypto/md5/md5.cjs +0 -944
- package/dist/cjs/crypto/sha/sha1/index.cjs +0 -25
- package/dist/cjs/crypto/sha/sha1/sha1.cjs +0 -602
- package/dist/cjs/crypto/sha/sha256/index.cjs +0 -46
- package/dist/cjs/crypto/sha/sha256/sha256.cjs +0 -654
- package/dist/cjs/crypto/sha/sha3/index.cjs +0 -44
- package/dist/cjs/crypto/sha/sha3/sha3.cjs +0 -747
- package/dist/cjs/crypto/sha/sha512/index.cjs +0 -88
- package/dist/cjs/crypto/sha/sha512/sha512.cjs +0 -1186
- package/dist/cjs/crypto/sm/lib/asn1.cjs +0 -167
- package/dist/cjs/crypto/sm/lib/ec.cjs +0 -352
- package/dist/cjs/crypto/sm/lib/jsbn.cjs +0 -1633
- package/dist/cjs/crypto/sm/lib/sm3.cjs +0 -173
- package/dist/cjs/crypto/sm/lib/utils.cjs +0 -198
- package/dist/cjs/crypto/sm/sm2/index.cjs +0 -122
- package/dist/cjs/crypto/sm/sm2/sm2.cjs +0 -269
- package/dist/cjs/crypto/sm/sm3/index.cjs +0 -15
- package/dist/cjs/crypto/sm/sm3/sm3.cjs +0 -103
- package/dist/cjs/crypto/sm/sm4/index.cjs +0 -28
- package/dist/cjs/crypto/sm/sm4/sm4.cjs +0 -362
- package/dist/cjs/crypto/tea/index.cjs +0 -26
- package/dist/cjs/crypto/tea/tea.cjs +0 -215
- package/dist/cjs/date/index.cjs +0 -1349
- package/dist/cjs/desensitized/index.cjs +0 -74
- package/dist/cjs/device/index.cjs +0 -159
- package/dist/cjs/dom/index.cjs +0 -176
- package/dist/cjs/file/index.cjs +0 -339
- package/dist/cjs/function/index.cjs +0 -67
- package/dist/cjs/keycode/index.cjs +0 -142
- package/dist/cjs/math/index.cjs +0 -284
- package/dist/cjs/number/index.cjs +0 -14
- package/dist/cjs/object/index.cjs +0 -216
- package/dist/cjs/pagination/index.cjs +0 -140
- package/dist/cjs/random/index.cjs +0 -25
- package/dist/cjs/regexp/index.cjs +0 -109
- package/dist/cjs/storage/index.cjs +0 -11
- package/dist/cjs/storage/localStorage.cjs +0 -40
- package/dist/cjs/storage/sessionStorage.cjs +0 -40
- package/dist/cjs/string/index.cjs +0 -338
- package/dist/cjs/url/index.cjs +0 -279
- package/dist/cjs/validate/index.cjs +0 -487
- package/dist/cjs/weapp/index.cjs +0 -151
- package/dist/es/ID-card/index.mjs +0 -116
- package/dist/es/array/index.mjs +0 -437
- package/dist/es/clipboard/index.mjs +0 -129
- package/dist/es/color/index.mjs +0 -200
- package/dist/es/constants/date.mjs +0 -184
- package/dist/es/constants/lang.mjs +0 -11
- package/dist/es/constants/math.mjs +0 -11
- package/dist/es/constants/regexp.mjs +0 -55
- package/dist/es/constants/sort.mjs +0 -13
- package/dist/es/cookie/index.mjs +0 -65
- package/dist/es/crypto/aes/aes.mjs +0 -529
- package/dist/es/crypto/aes/index.mjs +0 -25
- package/dist/es/crypto/base32/base32.mjs +0 -381
- package/dist/es/crypto/base32/index.mjs +0 -39
- package/dist/es/crypto/base64/base64.mjs +0 -427
- package/dist/es/crypto/base64/index.mjs +0 -57
- package/dist/es/crypto/des/des.mjs +0 -1050
- package/dist/es/crypto/des/index.mjs +0 -27
- package/dist/es/crypto/md5/index.mjs +0 -22
- package/dist/es/crypto/md5/md5.mjs +0 -941
- package/dist/es/crypto/sha/sha1/index.mjs +0 -22
- package/dist/es/crypto/sha/sha1/sha1.mjs +0 -599
- package/dist/es/crypto/sha/sha256/index.mjs +0 -41
- package/dist/es/crypto/sha/sha256/sha256.mjs +0 -649
- package/dist/es/crypto/sha/sha3/index.mjs +0 -39
- package/dist/es/crypto/sha/sha3/sha3.mjs +0 -742
- package/dist/es/crypto/sha/sha512/index.mjs +0 -79
- package/dist/es/crypto/sha/sha512/sha512.mjs +0 -1177
- package/dist/es/crypto/sm/lib/asn1.mjs +0 -164
- package/dist/es/crypto/sm/lib/ec.mjs +0 -349
- package/dist/es/crypto/sm/lib/jsbn.mjs +0 -1630
- package/dist/es/crypto/sm/lib/sm3.mjs +0 -170
- package/dist/es/crypto/sm/lib/utils.mjs +0 -186
- package/dist/es/crypto/sm/sm2/index.mjs +0 -111
- package/dist/es/crypto/sm/sm2/sm2.mjs +0 -258
- package/dist/es/crypto/sm/sm3/index.mjs +0 -13
- package/dist/es/crypto/sm/sm3/sm3.mjs +0 -99
- package/dist/es/crypto/sm/sm4/index.mjs +0 -25
- package/dist/es/crypto/sm/sm4/sm4.mjs +0 -359
- package/dist/es/crypto/tea/index.mjs +0 -23
- package/dist/es/crypto/tea/tea.mjs +0 -211
- package/dist/es/date/index.mjs +0 -1262
- package/dist/es/desensitized/index.mjs +0 -69
- package/dist/es/device/index.mjs +0 -145
- package/dist/es/dom/index.mjs +0 -164
- package/dist/es/file/index.mjs +0 -323
- package/dist/es/function/index.mjs +0 -63
- package/dist/es/keycode/index.mjs +0 -139
- package/dist/es/math/index.mjs +0 -274
- package/dist/es/number/index.mjs +0 -12
- package/dist/es/object/index.mjs +0 -203
- package/dist/es/pagination/index.mjs +0 -134
- package/dist/es/random/index.mjs +0 -22
- package/dist/es/regexp/index.mjs +0 -98
- package/dist/es/storage/index.mjs +0 -9
- package/dist/es/storage/localStorage.mjs +0 -35
- package/dist/es/storage/sessionStorage.mjs +0 -35
- package/dist/es/string/index.mjs +0 -321
- package/dist/es/url/index.mjs +0 -261
- package/dist/es/validate/index.mjs +0 -451
- package/dist/es/weapp/index.mjs +0 -140
|
@@ -1,58 +1,2 @@
|
|
|
1
|
-
const t={DESC:0,ASC:1,RANDOM:2},e={ROUND:0,ROUND_FLOOR:1},r={ZH:"zh",EN:"en"},n={CH:/^[\u4E00-\u9FA5]+$/,EN:/^[a-zA-Z]$/,LOWER_CASE:/^[a-z]+$/,UPPER_CASE:/^[A-Z]+$/,CH_NAME:/^[\u4e00-\u9fa5·]{2,16}$/,EN_NAME:/(^[a-zA-Z][a-zA-Z\s]{0,20}[a-zA-Z]$)/,NUMBER:/^([-+])?\d+(\.\d+)?$/,INTEGER:/^(0|[1-9][0-9]*|-[1-9][0-9]*)$/,DECIMAL:/^\d+\.\d+$/,INT_OR_FLOAT:/(^[1-9][0-9]*$)|(^[1-9][0-9]*\.[0-9]{1,2}$)|(^0\.[0-9]{1,2}$)|(^0$)/,MOBILE:/^(?:(?:\+|00)86)?1[1-9]\d{9}$/,PHONE:/^(?:(?:\d{3}-)?\d{8}|^(?:\d{4}-)?\d{7,8})(?:-\d+)?$/,EMAIL:/^[\w-]+(\.[\w-]+)*@[\w-]+(\.[\w-]+)+$/,ID_CARD:/(^\d{8}(0\d|10|11|12)([0-2]\d|30|31)\d{3}$)|(^\d{6}(18|19|20)\d{2}(0[1-9]|10|11|12)([0-2]\d|30|31)\d{3}(\d|X|x)$)/,ID_CARD15:/(^\d{8}(0\d|10|11|12)([0-2]\d|30|31)\d{3}$)/,ID_CARD18:/(^\d{6}(18|19|20)\d{2}(0[1-9]|10|11|12)([0-2]\d|30|31)\d{3}(\d|X|x)$)/,BANK_CARD:/^[1-9]\d{9,29}$/,POST_CODE:/^(0[1-7]|1[0-356]|2[0-7]|3[0-6]|4[0-7]|5[1-7]|6[1-7]|7[0-5]|8[013-6])\d{4}$/,URL:/^(?:(ftp|https?|ftps):\/\/)?((?:\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}|[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+(?:[a-zA-Z]{2,6})?)?(?::(\d+))?(?:\/([^\?#]*))?(?:\?([^#]*))?(?:#(.*))?$/,IP:/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,IP6:/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,EXTERNAL:/^(http?:|https?:|mailto:|tel:)/,FUNCTION_STR:/^(function\([\w,\s]*\)\s*{[\s\S]*})|^\(\s*([\w,\s]*)\s*\)\s*=>\s*{[\s\S]*}|^(async\s*function\s*\([\w,\s]*\)\s*{[\s\S]*}\)\s*{[\s\S]*})|^(async\(\s*([\w,\s]*)\s*\)\s*=>\s*{[\s\S]*})$/},i={AM_PM:{zh:{AM:"上午",PM:"下午"},en:{AM:"AM",PM:"PM"}},WEEK:{zh:{FULL:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],SHORT:["周日","周一","周二","周三","周四","周五","周六"],MINI:["日","一","二","三","四","五","六"]},en:{FULL:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],SHORT:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],MINI:["Su","Mo","Tu","We","Th","Fr","Sa"]}},MONTH:{zh:{FULL:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],SHORT:["一","二","三","四","五","六","七","八","九","十","十一","十二"]},en:{FULL:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORT:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}},QUARTER:{zh:{FULL:["第一季度","第二季度","第三季度","第四季度"],SHORT:["一季度","二季度","三季度","四季度"],MINI:["一","二","三","四"]},en:{FULL:["quarter 1st","quarter 2nd","quarter 3rd","quarter 4th"],SHORT:["Q1th","Q2nd","Q3rd","Q4th"],MINI:["Q1","Q2","Q3","Q4"]}},OVER_TIME:{zh:{YEAR:"年",MONTH:"月",DATE:"日",HOUR:"时",MINUTE:"分",SECOND:"秒",MILLISECOND:"毫秒",DAY:"天",QUARTER:"季度"},en:{YEAR:"year",MONTH:"month",DATE:"date",HOUR:"hour",MINUTE:"minute",SECOND:"second",MILLISECOND:"millisecond",DAY:"day",QUARTER:"quarter"}},PASS_TIME:{zh:{YEAR:"年前",MONTH:"个月前",DAY:"天前",BEFORE_YESTERDAY:"前天",YESTERDAY:"昨天",TODAY:"今天",HOUR:"小时前",MINUTE:"分钟前",JUST:"刚刚"},en:{YEAR:" year ago",MONTH:" month ago",DAY:" day ago",BEFORE_YESTERDAY:"before yesterday",YESTERDAY:" yesterday",TODAY:" today",HOUR:" hour ago",MINUTE:" minute ago",JUST:" just"}},HOLIDAY:{zh:["元旦","春节","清明节","劳动节","端午节","中秋节","国庆节"],en:["New Year‘s Day","Spring Festival","Tomb Sweeping Day","Labor Day","Dragon Boat Festival","Mid-Autumn Day","National Day"]},ZODIAC:{zh:["摩羯座","水瓶座","双鱼座","白羊座","金牛座","双子座","巨蟹座","狮子座","处女座","天秤座","天蝎座","射手座"],en:["Capricorn","Aquarius","Pisces","Aries","Taurus","Gemini","Cancer","Leo","Virgo","Libra","Scorpio","Sagittarius"]},CHINESE_ZODIAC:{zh:["鼠","牛","虎","兔","龙","蛇","马","羊","猴","鸡","狗","猪"],en:["Rat","Ox","Tiger","Rabbit","Dragon","Snake","Horse","Goat","Monkey","Rooster","Dog","Pig"]},HEAVENLY_STEMS:{zh:["甲","乙","丙","丁","戊","己","庚","辛","壬","癸"],en:["Jia","Yi","Bing","Ding","Wu","Ji","Geng","Xin","Ren","Gui"]},EARTHLY_BRANCHES:{zh:["子","丑","寅","卯","辰","巳","午","未","申","酉","戌","亥"],en:["Zi","Chou","Yin","Mao","Chen","Si","Wu","Wei","Shen","You","Xu","Hai"]}};function o(t){return t.replace(/(^\s*)|(\s*$)/g,"")}function s(t){return t.replace(/(^\s*)/g,"")}function h(t){return t.replace(/(\s*$)/g,"")}function u(t){return t.replace(/\s+/g,"")}function a(t,e,r){return t.replace(new RegExp(e,"gm"),r)}function c(t){return String(t).toLocaleUpperCase()}function f(t){String(t).toLocaleLowerCase()}function l(t){return/^[a-z]$/.test(t.charAt(0))&&!(t.indexOf("-")>0||t.indexOf("_")>0)?t.replace(/([A-Z])/g,"_$1").toLowerCase():t.indexOf("-")>0?t.replace(/-/g,"_").toLowerCase():/^[A-Z]$/.test(t.charAt(0))&&!(t.indexOf("-")>0||t.indexOf("_")>0)?(t=t.charAt(0).toLowerCase()+t.slice(1)).replace(/([A-Z])/g,"_$1").toLowerCase():void 0}function p(t){if(t.indexOf("_")>0)return t.replace(/_/g,"-").toLowerCase();if(/^[a-z]$/.test(t.charAt(0))&&!(t.indexOf("-")>0||t.indexOf("_")>0))return t.replace(/([A-Z])/g,"-$1").toLowerCase();if(/^[A-Z]$/.test(t.charAt(0))&&!(t.indexOf("-")>0||t.indexOf("_")>0)){return(t.charAt(0).toLowerCase()+t.slice(1)).replace(/([A-Z])/g,"-$1").toLowerCase()}}function d(t){return t.indexOf("_")>0?t.replace(/\_(\w)/g,(function(t,e){return e.toUpperCase()})):t.indexOf("-")>0?t.replace(/\-(\w)/g,(function(t,e){return e.toUpperCase()})):/^[A-Z]$/.test(t.charAt(0))&&!(t.indexOf("-")>0||t.indexOf("_")>0)?t.charAt(0).toLowerCase()+t.slice(1):t}function g(t){if(t.indexOf("_")>0){let e=t.replace(/\_(\w)/g,(function(t,e){return e.toUpperCase()}));return e.charAt(0).toUpperCase()+e.slice(1)}if(t.indexOf("-")>0){let e=t.replace(/\-(\w)/g,(function(t,e){return e.toUpperCase()}));return e.charAt(0).toUpperCase()+e.slice(1)}return/^[a-z]$/.test(t.charAt(0))&&!(t.indexOf("-")>0||t.indexOf("_")>0)?t.charAt(0).toUpperCase()+t.slice(1):t}function y(t,e){return e.includes(t)}function w(t,e=2){let r=t.toString().length;for(;r<e;)t="0"+t,r++;return t}function m(t,e=2){let r=t.toString().length;for(;r<e;)t+="0",r++;return t}function b(t){if(!parseFloat(t))return t;let e=(t=String(t)).indexOf(".")>-1?/(\d)(?=(\d{3})+\.)/g:/(\d)(?=(?:\d{3})+$)/g;return t.replace(e,"$1,")}function A(t){let e,r,n,i=["零","壹","贰","叁","肆","伍","陆","柒","捌","玖"],o=["","拾","佰","仟"],s=["","万","亿","兆"],h=["角","分","毫","厘"],u=Number("999999999999999.9999"),a="";if(""===t)return"";if((t=parseFloat(t))>=u)throw new Error("Calculated number overflow!");if(0===t)return a=i[0]+"元整",a;if(-1===(t=t.toString()).indexOf(".")?(e=t,r=""):(n=t.split("."),e=n[0],r=n[1].substr(0,4)),parseInt(e,10)>0){let t=0,r=e.length;for(let n=0;n<r;n++){let h=e.substr(n,1),u=r-n-1,c=u/4,f=u%4;"0"===h?t++:(t>0&&(a+=i[0]),t=0,a+=i[parseInt(h)]+o[f]),0===f&&t<4&&(a+=s[c])}a+="元"}if(""!==r){let t=r.length;for(let e=0;e<t;e++){let t=r.substr(e,1);"0"!==t&&(a+=i[Number(t)]+h[e])}}return""===a?a+=i[0]+"元整":""===r&&(a+="整"),a}function v(t,e=10){return Number.parseInt(t,e)}function S(t){return Number.isInteger(t)}function D(t){return/^\d+\.\d+$/.test(t)}function E(t){return"Number"===Object.prototype.toString.call(t).slice(8,-1)}function F(t){return"String"===Object.prototype.toString.call(t).slice(8,-1)}function M(t){return"Array"===Object.prototype.toString.call(t).slice(8,-1)}function B(t){return"Object"===Object.prototype.toString.call(t).slice(8,-1)}function C(t){return"Boolean"===Object.prototype.toString.call(t).slice(8,-1)}function T(t){return"Date"===Object.prototype.toString.call(t).slice(8,-1)}function O(t){return"Function"===Object.prototype.toString}function I(t){return"AsyncFunction"===Object.prototype.toString.call(t).slice(8,-1)}function R(t){return"Symbol"===Object.prototype.toString.call(t).slice(8,-1)}function _(t){return"RegExp"===Object.prototype.toString.call(t).slice(8,-1)}function x(t){return"Error"===Object.prototype.toString.call(t).slice(8,-1)}function N(t){return"Promise"===Object.prototype.toString.call(t).slice(8,-1)}function U(t){return"Map"===Object.prototype.toString.call(t).slice(8,-1)}function P(t){return"WeakMap"===Object.prototype.toString.call(t).slice(8,-1)}function k(t){return"Set"===Object.prototype.toString.call(t).slice(8,-1)}function z(t){return"WeakSet"===Object.prototype.toString.call(t).slice(8,-1)}function j(t){return"BigInt"===Object.prototype.toString.call(t).slice(8,-1)}function $(t){try{return JSON.parse(t),!0}catch(t){return!1}}function L(t){return!q(t)}function q(t){return null==t||"undefined"===t||"null"===t||0===t||!1===t||NaN===t}function H(t){return window.isNaN(t)||M(t)||null==t||""===t}function Y(t){return!H(t)}function V(t){return null==t||""===t}function J(t){return!V(t)}function K(t){return V(t)||!(Object.keys(t)||t).length}function W(t){return!K(t)}function Z(t){return K(t)||/^\s*$/.test(t)}function Q(t){return!Z(t)}function X(t){return void 0===t}function G(t){return!X(t)}function tt(t,e){return Object.is(t,e)}function et(t,e){return Object.is(t.toLowerCase(),e.toLowerCase())}function rt(t,e){let r,n,i,o;function s(t,e){let r;if(H(t)&&H(e)&&"number"==typeof t&&"number"==typeof e)return!0;if(t===e)return!0;if("function"==typeof t&&"function"==typeof e||t instanceof Date&&e instanceof Date||t instanceof RegExp&&e instanceof RegExp||t instanceof String&&e instanceof String||t instanceof Number&&e instanceof Number)return t.toString()===e.toString();if(!(t instanceof Object&&e instanceof Object))return!1;if(t.isPrototypeOf(e)||e.isPrototypeOf(t))return!1;if(t.constructor!==e.constructor)return!1;if(t.prototype!==e.prototype)return!1;if(i.indexOf(t)>-1||o.indexOf(e)>-1)return!1;for(r in e){if(e.hasOwnProperty(r)!==t.hasOwnProperty(r))return!1;if(typeof e[r]!=typeof t[r])return!1}for(r in t){if(e.hasOwnProperty(r)!==t.hasOwnProperty(r))return!1;if(typeof e[r]!=typeof t[r])return!1;switch(typeof t[r]){case"object":case"function":if(i.push(t),o.push(e),!s(t[r],e[r]))return!1;i.pop(),o.pop();break;default:if(t[r]!==e[r])return!1}}return!0}if(arguments.length<1)return!0;for(r=1,n=arguments.length;r<n;r++)if(i=[],o=[],!s(arguments[0],arguments[r]))return!1;return!0}function nt(t){return Math.min.apply(null,t)}function it(t){return Math.max.apply(null,t)}function ot(t){return t.reduce((function(t,e){return t+e}))}function st(t){return ot(t)/t.length}function ht(t,e){return!V(t)&&e.includes(t)}function ut(t,e){return t===e||t.length===e.length&&t.every(((t,r)=>t===e[r]))}function at(t=0){return[...Array(t).keys()]}function ct(t=[],e=0,r=void 0){if(e<0)return t;if(0===t.length)t.push(r);else{if(e>t.length-1)return t;t.splice(e,0,r)}return t}function ft(t=[],e=0,r=void 0){if(e<0)return t;if(0===t.length)t.push(r);else{if(e>t.length-1)return t;t.splice(e,0,r)}return t}function lt(t=[],e=0,r=void 0){if(e<0)return t;if(0===t.length)t.push(r);else{if(e>t.length-1)return t;t.splice(e,0,t.splice(e,1,r)[0])}return t}function pt(t=[],e=0){return e<0||e>t.length-1||t.splice(e,1),t}function dt(t=[],e=0){return e<=0||e>t.length-1||t.splice(e-1,1),t}function gt(t=[],e=0){return e<0||e>t.length-1||t.splice(e+1,1),t}function yt(t=[],e=0){return e<0||e>t.length-1||t.unshift(t.splice(e,1)[0]),t}function wt(t=[],e=0){return e<0||e>t.length-1||t.push(t.splice(e,1)[0]),t}function mt(t=[],e=0){return e<0||e>t.length-1||(e>0?t.splice(e-1,0,t.splice(e,1)[0]):t.push(t.splice(e,1)[0])),t}function bt(t=[],e=0){return e<0||e>t.length-1||(e<t.length-1?t.splice(e+1,0,t.splice(e,1)[0]):t.unshift(t.splice(e,1)[0])),t}function At(t,e,r){return e<0||r<0||e>t.length-1||r>t.length-1||([t[r],t[e]]=[t[e],t[r]]),t}function vt(e,r=t.ASC){return e.sort(((n,i)=>{switch(r){case t.ASC:return n-i;case t.DESC:return i-n;case t.RANDOM:return Math.random()-.5;default:return e}}))}function St(t){return K(t)?[]:Array.from(new Set(t))}function Dt(t){for(let e=1;e<t.length;e++){const r=Math.floor(Math.random()*(e+1));[t[r],t[e]]=[t[e],t[r]]}return t}function Et(t,e={key:"id",parentKey:"pid",childrenKey:"children"}){let r=e.key,n=e.parentKey,i=e.childrenKey;if(!t||0===t.length||!r||""===r)return[];const o=function(t,e,r){return t?(void 0!==r&&(t[e]=r),t[e]):null};let s=[],h={};for(let e=0;e<t.length;e++)t[e][i]&&delete t[e][i],h[t[e][r]]=t[e];for(let e=0;e<t.length;e++){let u=h[t[e][n]];if(u&&t[e][r]!==t[e][n]){let r=o(u,i);r||(r=o(u,i,[])),r.push(t[e])}else s.push(t[e])}return s}function Ft(t,e={childrenKey:"children"}){let r=e.childrenKey,n=[];for(let i of t)if(i[r]&&!i[r].length&&delete i[r],n.push(i),i[r]&&i[r].length){let t=Ft(i[r],e);t&&n.push(...t)}return n}function Mt(t,e){return[...new Set(t.concat(e))]}function Bt(t,e){return[...new Set(t)].filter((t=>e.includes(t)))}function Ct(t,e){return[...new Set(t)].filter((t=>!e.includes(t)))}function Tt(t,e){return[...[...new Set(t)].filter((t=>!e.includes(t))),...[...new Set(e)].filter((e=>!t.includes(e)))]}function Ot(t){let e=Object.create(null);for(let[r,n]of t)e[r]=n;return e}function It(t){return JSON.stringify(Ot(t))}function Rt(t){let e=new Map;for(let r of Object.keys(t))e.set(r,t[r]);return e}function _t(t){return Rt(JSON.parse(t))}function xt(t){return JSON.stringify(t)}function Nt(t){if(!K(t))return JSON.parse(t)}function Ut(t){return Object.assign(t)}function Pt(t){if(B(t)){let e={};for(let r in t)t.hasOwnProperty(r)&&(e[r]=Pt(t[r]));return e}if(M(t)){let e=[];for(let r=0,n=t.length;r<n;r++)e[r]=Pt(t[r]);return e}if(T(t)){let e=new Date;return e.setTime(t.getTime()),e}return t}function kt(t,e){if(t===e)return!0;if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(!t||!e||"object"!=typeof t&&"object"!=typeof e)return t===e;if(t.prototype!==e.prototype)return!1;const r=Object.keys(t);return r.length===Object.keys(e).length&&r.every((r=>kt(t[r],e[r])))}function zt(t,...e){return Object.assign(t,...e)}function jt(t,e="data"){const r=(e||"data").split(".");let n=t,i=r.length-1;for(const t in r)null!==n[r[t]]&&void 0!==n[r[t]]||(n[r[t]]=Number(t)!==i?{}:void 0),n=n[r[t]];return n}function $t(t,e="data",r){const n=(e||"data").split(".");let i="";for(const t of n)i+=`['${t}']`;new Function("target",`target${i}=${r}`)(t)}function Lt(t,e=1e3,r=!0){let n;return function(){const i=arguments;if(n&&clearTimeout(n),r){const r=!n;n=setTimeout((function(){n=null}),e),r&&t.apply(this,i)}else n=setTimeout((function(){t.apply(this,i)}),e)}}function qt(t,e=1e3){let r;return function(){const n=arguments;r||(r=setTimeout((()=>{r=null,t.apply(this,n)}),e))}}function Ht(t=1e3){return new Promise((e=>setTimeout(e,t)))}function Yt(){return Be()}function Vt(){return vr(dr(new Date,-1))}function Jt(){return vr(dr(new Date,1))}function Kt(t=new Date){return vr(dr(t,-7))}function Wt(t=new Date){return vr(dr(t,7))}function Zt(t=new Date){return vr(dr(t,-30))}function Qt(t=new Date){return vr(dr(t,30))}function Xt(t=new Date){return vr(dr(t,-365))}function Gt(t=new Date){return vr(dr(t,365))}function te(t=new Date){return t.getHours()<12}function ee(t=new Date){return t.getHours()>=12}function re(t=new Date){let e=new Date;return["getFullYear","getMonth","getDate"].every((r=>e[r]()===t[r]()))}function ne(t=new Date){let e=t.getTime();return 1===v((Date.now()-e)/864e5)}function ie(t=new Date){let e=t.getTime();return 2===v((Date.now()-e)/864e5)}function oe(t=new Date){return 1===v((t.getTime()-Date.now())/864e5)}function se(t=new Date){return 2===v((t.getTime()-Date.now())/864e5)}function he(t=new Date){let e=Ne(t);return 6!==e&&7!==e}function ue(t=new Date){let e=Ne(t);return 6===e||7===e}function ae(t=new Date){return 1===Ne(t)}function ce(t=new Date){return 7===Ne(t)}function fe(t=new Date){return 1===Ue(t)}function le(t=new Date){return Ue(t)===$e(t)}function pe(t=new Date){return 1===Pe(t)}function de(t=new Date){return Pe(t)===Le(t)}function ge(t=new Date){let e=t.getFullYear();return e%100!=0&&e%4==0||e%400==0}function ye(t=new Date){return!ge(t)}function we(t,e=new Date){return t.getTime()-e.getTime()<0}function me(t,e=new Date){return t.getTime()-e.getTime()>0}function be(t,e,r){let n=t.getTime(),i=e.getTime(),o=r.getTime();return n>i&&n<o}function Ae(t,e){return["getFullYear","getMonth","getDate"].every((r=>t[r]()===e[r]()))}function ve(t,e){let r=t.getTime()/864e5,n=e.getTime()/864e5;return v((r+4)/7)===v((n+4)/7)}function Se(t,e){return["getFullYear","getMonth"].every((r=>t[r]()===e[r]()))}function De(t,e){return["getFullYear"].every((r=>t[r]()===e[r]()))}function Ee(t,e){return Ae(t,e)||we(t,e)}function Fe(t,e){return Ae(t,e)||me(t,e)}function Me(){return new Date}function Be(t=new Date,e="yyyy-MM-dd"){return vr(t,e)}function Ce(t=new Date,e="yyyy-MM-dd HH:mm:ss"){return vr(t,e)}function Te(t=new Date){return t.getTime()}function Oe(t=new Date){return Math.round(t/1e3)}function Ie(t=new Date){return{year:t.getFullYear(),month:t.getMonth()+1,date:t.getDate(),hours:t.getHours(),minutes:t.getMinutes(),seconds:t.getSeconds(),milliseconds:t.getMilliseconds()}}function Re(t=new Date){return Object.entries(Ie(t)).map((([t,e])=>e))}function _e(t=new Date,e="E",r="zh"){return"E"===e?i.WEEK[r].MINI[t.getDay()]:"EE"===e?i.WEEK[r].SHORT[t.getDay()]:"EEE"===e?i.WEEK[r].FULL[t.getDay()]:Ne(t)}function xe(t=new Date,e="Q",r="zh"){let n=Number(Math.floor((t.getMonth()+3)/3));return"Q"===e?i.QUARTER[r].MINI[n-1]:"QQ"===e?i.QUARTER[r].SHORT[n-1]:"QQQ"===e?i.QUARTER[r].FULL[n-1]:n}function Ne(t=new Date){return[7,1,2,3,4,5,6][t.getDay()]}function Ue(t=new Date){return t.getDate()}function Pe(t=new Date){return Math.ceil((t-new Date(t.getFullYear().toString()))/864e5)+1}function ke(t=new Date){return Math.ceil((t.getDate()+6-Ne(t))/7)}function ze(t=new Date){let e=new Date(t.getFullYear(),0,1),r=Ne(e),n=Math.round((t-e)/864e5);return Math.ceil((n+r)/7)}function je(t=new Date){return 7}function $e(t=new Date){return new Date(t.getFullYear(),t.getMonth()+1,0).getDate()}function Le(t=new Date){return ge(t)?366:365}function qe(t=new Date){let e=Ne(new Date(t.getFullYear(),0,1)),r=ge(t)?366:365;return 1===e?Math.ceil(r/7):Math.ceil((r-7+e)/7)}function He(t=new Date){let e=Ne(new Date(t.getFullYear(),0,1)),r=ge(t)?366:365;return 1===e?Math.ceil(r/7):Math.ceil((r-7+e)/7)}function Ye(t=new Date){let e=Ne(t);return t.setDate(t.getDate()-e+1),vr(t)}function Ve(t=new Date){let e=Ne(t);return t.setDate(t.getDate()+(7-e)),vr(t)}function Je(t=new Date){let e=[],r=t.getDay(),n=new Date;n.setDate(t.getDate()-(0===r?6:r-1));for(let t=0;t<7;t++){let r=new Date(n);r.setDate(r.getDate()+t),e.push(vr(r))}return e}function Ke(t=new Date){return t.setDate(1),vr(t)}function We(t=new Date){return vr(new Date(t.getFullYear(),t.getMonth()+1,0))}function Ze(t=new Date){let e=[],r=new Date(t.getFullYear(),t.getMonth(),1),n=new Date(t.getFullYear(),t.getMonth()+1,0);for(let t=0;t<n.getDate();t++){let n=new Date(r);n.setDate(r.getDate()+t),e.push(n)}return e}function Qe(t=new Date){return new Date(t.getFullYear(),0,1)}function Xe(t=new Date){return new Date(t.getFullYear(),11,31)}function Ge(t=new Date){let e=[],r=new Date(t.getFullYear(),0,1),n=Le();for(let t=0;t<n;t++){let n=new Date(r);n.setDate(r.getDate()+t),e.push(n.toLocaleDateString())}return e}function tr(t,e){if(K(t)||K(e))return 0;let r=(e-t)/864e5;return r>=0?Math.abs(r):r}function er(t,e){if(K(t)||K(e))return 0;let r=(e-t)/6048e5;return r>=0?Math.abs(r):r}function rr(t,e){if(K(t)||K(e))return 0;let r=(t-e)/2592e6;return r>=0?Math.abs(r):r}function nr(t,e){if(K(t)||K(e))return 0;let r=(e-t)/31104e6;return r>=0?Math.abs(r):r}function ir(t,e){if(K(t)||K(e))return[];let r=[];for(;e-t>=0;){let e=t.getFullYear(),n=Dr(t.getMonth()+1),i=Dr(t.getDate());r.push(e+"-"+n+"-"+i),t.setDate(t.getDate()+1)}return r}function or(t,e){if(K(t)||K(e))return[];let r=[],n=new Date,i=new Date;n.setFullYear(t.getFullYear(),t.getMonth()+1),i.setFullYear(e.getFullYear(),e.getMonth()+1);let o=n,s="";for(;o<=i;){let t=o.getMonth();s=0===t?o.getFullYear()-1+"-12":o.getFullYear()+"-"+Dr(t),r.push(s),o.setMonth(t+1)}return r}function sr(t,e){if(K(t)||K(e))return[];let r=[];for(;e-t>=0;){let e=t.getFullYear();r.push(e),t.setFullYear(t.getFullYear()+1)}return r}function hr(t,e="zh"){if(V(t))return"--";let r=t.getTime(),n=Date.now()-r,o=v(n/31104e6),s=v(n/2592e6),h=v(n/864e5),u=v(n/36e5),a=v(n/6e4);return o?o+i.PASS_TIME[e].YEAR:s?s+i.PASS_TIME[e].MONTH:h?1===h?i.PASS_TIME[e].YESTERDAY:2===h?i.PASS_TIME[e].BEFORE_YESTERDAY:h+i.PASS_TIME[e].DAY:u?u>12?i.PASS_TIME[e].TODAY:u+i.PASS_TIME[e].HOUR:a?a+i.PASS_TIME[e].MINUTE:i.PASS_TIME[e].JUST}function ur(t,e="zh"){if(V(t))return"--";let r=new Date,n=t.getTime()-r.getTime(),o=0,s=0,h=0,u=0;return n>=0&&(o=Math.floor(n/1e3/3600/24),s=Math.floor(n/1e3/60/60%24),h=Math.floor(n/1e3/60%60),u=Math.floor(n/1e3%60)),`${o}${i.OVER_TIME[e].DAY} ${s}${i.OVER_TIME[e].HOUR} ${h}${i.OVER_TIME[e].MINUTE} ${u}${i.OVER_TIME[e].SECOND}`}function ar(t){let e=0,r=vr(t).split("-"),n=Number(r[0]),i=Number(r[1]),o=Number(r[2]),s=new Date,h=s.getFullYear(),u=s.getMonth()+1,a=s.getDate(),c=h-n;if(c>0){let t=u-i;e=0===t?a-o<0?c-1:c:t<0?c-1:c}return e}function cr(t,e="zh"){if(V(t))return"";let r=t.getMonth()+1;return t.getDate()<[20,19,21,20,21,22,23,23,23,24,23,22][r-1]?i.ZODIAC[e][r-1]:i.ZODIAC[e][r]}function fr(t,e="zh"){if(V(t))return"";let r=t.getFullYear();return r<1900?"未知":i.CHINESE_ZODIAC[e][(r-1900)%i.CHINESE_ZODIAC[e].length]}function lr(t=new Date,e=1){return t.setFullYear(t.getFullYear()+e),t}function pr(t=new Date,e=1){return t.setMonth(t.getMonth()+e),t}function dr(t=new Date,e=1){return t.setDate(t.getDate()+e),t}function gr(t=new Date,e=1){return t.setHours(t.getHours()+e),t}function yr(t=new Date,e=1){return t.setMinutes(t.getMinutes()+e),t}function wr(t=new Date,e=1){return t.setSeconds(t.getSeconds()+e),t}function mr(t=new Date,e=100){return t.setMilliseconds(t.getMilliseconds()+e),t}function br(t=new Date,e=1){return t.setDate(t.getDate()+7*e),t}function Ar(t=new Date,e=1){return t.setMonth(t.getMonth()+4*e),t}function vr(t,e="yyyy-MM-dd",r="zh"){if(V(t))return"";if(F(t))t=Sr(t);else if(T(t));else if(S(t)&&13===String(t).length)t=new Date(t);else{if(!S(t)||10!==String(t).length)return console.error("Not supported date format!"),t;t=new Date(1e3*t)}let n={"M+":t.getMonth()+1,"d+":t.getDate(),"h+":t.getHours()%12==0?12:t.getHours()%12,"H+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds(),"S+":t.getMilliseconds(),"a+":t.getHours()<12?"am":"pm","A+":t.getHours()<12?"AM":"PM","E+":t.getDay(),"Q+":Math.floor((t.getMonth()+3)/3),S:t.getMilliseconds()},o=new RegExp(/(y+)/g);o.test(e)&&(e=e.replace(o,(function(e,r){return(t.getFullYear()+"").substring(4-r.length)})));let s=new RegExp(/((b+)|(A+))/g);s.test(e)&&(e=e.replace(s,(function(e,n){return n.length>1?t.getHours()<12?i.AM_PM[r].AM:i.AM_PM[r].PM:n===n.toLowerCase()?t.getHours()<12?i.AM_PM.en.AM.toLowerCase():i.AM_PM.en.PM.toLowerCase():t.getHours()<12?i.AM_PM.en.AM:i.AM_PM.en.PM})));let h=new RegExp(/(E+)/g);h.test(e)&&(e=e.replace(h,(function(e,n){return 1===n.length?i.WEEK[r].MINI[t.getDay()]:2===n.length?i.WEEK[r].SHORT[t.getDay()]:i.WEEK[r].FULL[t.getDay()]})));let u=new RegExp(/(Q+)/g);u.test(e)&&(e=e.replace(u,(function(e,n){return 1===n.length?i.QUARTER[r].MINI[Math.floor((t.getMonth()+3)/3)-1]:2===n.length?i.QUARTER[r].SHORT[Math.floor((t.getMonth()+3)/3)-1]:i.QUARTER[r].FULL[Math.floor((t.getMonth()+3)/3)-1]})));for(let t in n){let r=new RegExp("("+t+")");r.test(e)&&(e=e.replace(r,(function(e,r){return 1===r.length?n[t]:2===r.length?("00"+n[t]).substring((""+n[t]).length):("000"+n[t]).substring((""+n[t]).length)})))}return e}function Sr(t){return V(t)?null:F(t)?new Date(t.replace(/-/g,"/")):S(t)&&13===String(t).length?new Date(t):S(t)&&10===String(t).length?new Date(1e3*t):(console.error("Not supported date format!"),t)}function Dr(t){return(t=t.toString())[1]?t:"0"+t}function Er(t,e){let r,n,i;try{r=t.toString().split(".")[1].length}catch(t){r=0}try{n=e.toString().split(".")[1].length}catch(t){n=0}return i=Math.pow(10,Math.max(r,n)),(t*i+e*i)/i}function Fr(t,e){let r,n,i,o;try{r=t.toString().split(".")[1].length}catch(t){r=0}try{n=e.toString().split(".")[1].length}catch(t){n=0}return i=Math.pow(10,Math.max(r,n)),o=r>=n?r:n,((t*i-e*i)/i).toFixed(o)}function Mr(t,e){let r=0,n=t.toString(),i=e.toString();try{r+=n.split(".")[1].length}catch(t){}try{r+=i.split(".")[1].length}catch(t){}return Number(n.replace(".",""))*Number(i.replace(".",""))/Math.pow(10,r)}function Br(t,e){let r,n,i=0,o=0;try{i=t.toString().split(".")[1].length}catch(t){}try{o=e.toString().split(".")[1].length}catch(t){}return r=Number(t.toString().replace(".","")),n=Number(e.toString().replace(".","")),r/n*Math.pow(10,o-i)}function Cr(t,e){let r=0,n=0,i=0;try{r=t.toString().split(".")[1].length}catch(t){}try{n=e.toString().split(".")[1].length}catch(t){}return i=Math.pow(10,Math.max(r,n)),Math.round(Number(t)*i)%Math.round(Number(e)*i)/i}function Tr(t,e){return e?Tr(e,t%e):t}function Or(t,e){return t*e/Tr(t,e)}function Ir(t,r=2,n=e.ROUND){return n===e.ROUND?function(t,e=2){if(H(t))return"--";let r=String(t);e||(e=0);-1===r.indexOf(".")&&(r+=".");if(r+=new Array(e+1).join("0"),new RegExp("^(-|\\+)?(\\d+(\\.\\d{0,"+(e+1)+"})?)\\d*$").test(r)){let t="0"+RegExp.$2,r=RegExp.$1,n=RegExp.$3.length,i=!0;if(n===e+2){if(n=t.match(/\d/g),parseInt(n[n.length-1])>4)for(let t=n.length-2;t>=0&&(n[t]=parseInt(n[t])+1,10===n[t]);t--)n[t]=0,i=1!==t;t=n.join("").replace(new RegExp("(\\d+)(\\d{"+e+"})\\d$"),"$1.$2")}return i&&(t=t.substr(1)),(r+t).replace(/\.$/,"")}return String(t)}(t,r):n===e.ROUND_FLOOR?function(t,e=2){if(H(t))return"--";let r=e,n=Number(t),i=String(n).indexOf(".")+1,o=i?String(n).length-i:0;if(0===i||o<=r){let t=n;if(0===i){t=`${t}.`;for(let e=0;e<r-o;e++)t=`${t}0`}else for(let e=0;e<r-o;e++)t=`${t}0`;return t}let s="";return s=`${String(n).split(".")[0]}.${String(n).split(".")[1].substring(0,r)}`,String(s)}(t,r):void 0}function Rr(t,r=2,n=e.ROUND){return n===e.ROUND?function(t,e=2){if(H(t))return"--";let r=Math.pow(10,e);return Math.round(t*r)/r}(t,r):n===e.ROUND_FLOOR?function(t,e=2){if(H(t))return"--";let r=Math.pow(10,e);return Math.floor(t*r)/r}(t,r):void 0}function _r(t,e){return new RegExp(e).test(t)}function xr(t){return _r(t,n.CH)}function Nr(t){return _r(t,n.EN)}function Ur(t){return _r(t,n.EXTERNAL)}function Pr(t){return _r(t,n.LOWER_CASE)}function kr(t){return _r(t,n.UPPER_CASE)}function zr(t){return _r(t,n.MOBILE)}function jr(t){return _r(t,n.EMAIL)}function $r(t){return _r(t,n.ID_CARD)}function Lr(t){return _r(t,n.URL)}function qr(t=0,e=9){return Math.floor(Math.random()*(e-t+1)+t)}function Hr(t=1){return Math.floor((Math.random()+Math.floor(9*Math.random()+1))*Math.pow(10,t-1))}function Yr(t){return K(t)?"0B":t<1024?t+"B":t<1048576?(t/1024).toFixed(2)+"KB":t<1073741824?(t/1048576).toFixed(2)+"MB":(t/1073741824).toFixed(2)+"GB"}function Vr(t){if(!K(t))return t.substring(0,t.lastIndexOf("."))}function Jr(t){if(!K(t))return t.substring(t.lastIndexOf(".")+1).toLowerCase()}function Kr(t){return new Promise(((e,r)=>{let n=new FileReader;n.readAsArrayBuffer(t),n.onload=r=>{const n=new Blob([r.target.result],{type:t.type});e(n)},n.onerror=function(t){console.error(t),r(t)}}))}function Wr(t){return new Promise(((e,r)=>{let n=new FileReader;n.readAsDataURL(t),n.onload=function(t){e(t.target.result)},n.onerror=function(t){console.error(t),r(t)}}))}function Zr(t){return new Promise(((e,r)=>{try{e(URL.createObjectURL(t))}catch(e){console.error(e),URL.revokeObjectURL(t),r(e)}}))}function Qr(t){return new Promise((async(e,r)=>{try{let r=await window.fetch(t);if(200===r.status){let t=await r.blob();e(await Xr(t))}}catch(t){console.error(t),r(t)}}))}function Xr(t,e=Date.now()){return new Promise(((r,n)=>{try{const n=t.type,i=t.size,o=n.split("/")[1];r(new File([t],`${Date.now()}.${o}`,{type:n,size:i,name:`${e}.${o}`,lastModified:Date.now(),lastModifiedDate:new Date}))}catch(t){console.error(t),n(t)}}))}function Gr(t){return new Promise(((e,r)=>{const n=new FileReader;n.onload=function(t){e(t.target.result)},n.onerror=function(t){r(t)},n.readAsText(t)}))}function tn(t){return new Promise(((e,r)=>{let n=new FileReader;n.readAsDataURL(t),n.onload=function(t){e(t.target.result)},n.onerror=function(t){console.error(t),r(t)}}))}function en(t,e=Date.now()){return new Promise(((r,n)=>{try{const n=t.split(","),i=n[0].match(/:(.*?);/)[1],o=i.split("/")[1],s=window.atob(n[1]);let h=s.length;const u=new Uint8Array(h);for(;h--;)u[h]=s.charCodeAt(h);r(new File([u],`${e}.${o}`,{type:i}))}catch(t){console.error(t),n(t)}}))}function rn(t){return new Promise(((e,r)=>{try{const r=t.split(","),n=r[0].match(/:(.*?);/)[1],i=window.atob(r[1]);let o=i.length;const s=new Uint8Array(o);for(;o--;)s[o]=i.charCodeAt(o);e(new Blob([s],{type:n}))}catch(t){console.error(t),r(t)}}))}function nn(t){return new Promise(((e,r)=>{const n=new Image;n.src=t,n.onload=function(){const t=document.createElement("canvas"),r=t.getContext("2d");t.width=n.width,t.height=n.height,r.drawImage(n,0,0,n.width,n.height);const i=t.toDataURL("image/png");e(i)},n.onerror=function(t){console.error(t),r(t)}}))}function on(t,e){try{const r=window.URL.createObjectURL(t),n=window.document.createElement("a");n.download=e,n.href=r,n.click(),URL.revokeObjectURL(r)}catch(t){console.error(t)}}function sn(t,e){try{const r=window.document.createElement("a");r.download=e,r.href=t,window.document.body.appendChild(r),r.click(),window.document.body.removeChild(r)}catch(t){console.error(t)}}function hn(t){let e=t.split(","),r=parseInt(e[0].split("(")[1]),n=parseInt(e[1]),i=parseInt(e[2].split(")")[0]);return"#"+yn(r)+yn(n)+yn(i)}function un(t){let e=t.split(","),r=parseInt(e[0].split("(")[1]),n=parseInt(e[1]),i=parseInt(e[2]),o=parseFloat(e[3].split(")")[0]);return`#${yn(Math.round(256*o-1))}${yn(r)}${yn(n)}${yn(i)}`}function an(t){let e,r,n=t.split(","),i=parseInt(n[0].split("(")[1])/255,o=parseInt(n[1])/255,s=parseInt(n[2])/255,h=parseFloat(n[3]&&n[3].split(")")[0]),u=Math.max(i,o,s),a=Math.min(i,o,s),c=(u+a)/2;if(u===a)e=r=0;else{let t=u-a;switch(r=c>.5?t/(2-u-a):t/(u+a),u){case i:e=(o-s)/t+(o<s?6:0);break;case o:e=(s-i)/t+2;break;case s:e=(i-o)/t+4}e/=6}return h?`hsla(${Math.round(360*e)},${Math.round(100*r)}%,${Math.round(100*c)}%,${h})`:`hsl(${Math.round(360*e)},${Math.round(100*r)}%,${Math.round(100*c)}%)`}function cn(t){let e={},r=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(t,e,r,n){return e+e+r+r+n+n})),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(r);return e.r=parseInt(n[1],16),e.g=parseInt(n[2],16),e.b=parseInt(n[3],16),`rgb(${e.r},${e.g},${e.b})`}function fn(t,e=1){let r={},n=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(t,e,r,n){return e+e+r+r+n+n})),i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(n);return r.r=parseInt(i[1],16),r.g=parseInt(i[2],16),r.b=parseInt(i[3],16),r.o=e,`rgba(${r.r},${r.g},${r.b},${r.o})`}function ln(t){let e,r,n=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(t,e,r,n){return e+e+r+r+n+n})),i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(n),o=parseInt(i[1],16)/255,s=parseInt(i[2],16)/255,h=parseInt(i[3],16)/255,u=Math.max(o,s,h),a=Math.min(o,s,h),c=(u+a)/2;if(u===a)e=r=0;else{let t=u-a;switch(r=c>.5?t/(2-u-a):t/(u+a),u){case o:e=(s-h)/t+(s<h?6:0);break;case s:e=(h-o)/t+2;break;case h:e=(o-s)/t+4}e/=6}return`hsl(${Math.round(360*e)},${Math.round(100*r)}%,${Math.round(100*c)}%)`}function pn(){return"#"+(t=(16777216*Math.random()|0).toString(16),new Array(7-t.length).join("0")+t);var t}function dn(){return`rgb(${Math.floor(256*Math.random())},${Math.floor(256*Math.random())},${Math.floor(256*Math.random())})`}function gn(){return`rgba(${Math.floor(256*Math.random())},${Math.floor(256*Math.random())},${Math.floor(256*Math.random())},${Number(Math.random()).toFixed(2)})`}function yn(t){if(t>255)throw"'"+t+"'' is greater than 255(0xff);";return("0"+Number(t).toString(16)).slice(-2)}const wn={8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"Caps Lock",27:"Escape",32:"Space",33:"Page Up",34:"Page Down",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",42:"Print Screen",45:"Insert",46:"Delete",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",91:"Windows",93:"Right Click",96:"Numpad 0",97:"Numpad 1",98:"Numpad 2",99:"Numpad 3",100:"Numpad 4",101:"Numpad 5",102:"Numpad 6",103:"Numpad 7",104:"Numpad 8",105:"Numpad 9",106:"Numpad *",107:"Numpad +",109:"Numpad -",110:"Numpad .",111:"Numpad /",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"Num Lock",145:"Scroll Lock",182:"My Computer",183:"My Calculator",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"};function mn(t){return wn[t]?wn[t]:(console.log("Unknow Key Code: "+t),"")}function bn(t){for(let e in wn)if(wn[e]===t)return e}function An(t=32,e=16){const r="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split("");let n,i=[];if(e=e||r.length,t)for(n=0;n<t;n++)i[n]=r[0|Math.random()*e];else{let t;for(i[8]=i[13]=i[18]=i[23]="-",i[14]="4",n=0;n<36;n++)i[n]||(t=0|16*Math.random(),i[n]=r[19===n?3&t|8:t])}return i.join("")}function vn(){let t=function(){return(65536*(1+Math.random())|0).toString(16).substring(1)};return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()}
|
|
2
|
-
|
|
3
|
-
* [hi-base64]{@link https://github.com/emn178/hi-base64}
|
|
4
|
-
*
|
|
5
|
-
* @version 0.3.1
|
|
6
|
-
* @author Chen, Yi-Cyuan [emn178@gmail.com]
|
|
7
|
-
* @copyright Chen, Yi-Cyuan 2014-2023
|
|
8
|
-
* @license MIT
|
|
9
|
-
*/var Sn="not a UTF-8 string",Dn="object"==typeof window,En=Dn?window:{};En.HI_BASE64_NO_WINDOW&&(Dn=!1);var Fn=!Dn&&"object"==typeof self,Mn=!En.HI_BASE64_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;Mn?En=global:Fn&&(En=self);for(var Bn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),Cn={},Tn=0;Tn<64;++Tn)Cn[Bn[Tn]]=Tn;Cn["-"]=62,Cn._=63;var On,In,Rn=function(t){return t.split("=")[0].replace(/[\r\n]/g,"")},_n=function(t){for(var e,r,n,i,o=[],s=0,h=(t=Rn(t)).length,u=0,a=h>>2<<2;u<a;)e=Cn[t.charAt(u++)],r=Cn[t.charAt(u++)],n=Cn[t.charAt(u++)],i=Cn[t.charAt(u++)],o[s++]=255&(e<<2|r>>>4),o[s++]=255&(r<<4|n>>>2),o[s++]=255&(n<<6|i);var c=h-a;return 2===c?(e=Cn[t.charAt(u++)],r=Cn[t.charAt(u++)],o[s++]=255&(e<<2|r>>>4)):3===c&&(e=Cn[t.charAt(u++)],r=Cn[t.charAt(u++)],n=Cn[t.charAt(u++)],o[s++]=255&(e<<2|r>>>4),o[s++]=255&(r<<4|n>>>2)),o},xn=function(t){for(var e,r,n,i=[],o=t.length,s=0,h=3*parseInt(o/3);s<h;)e=t[s++],r=t[s++],n=t[s++],i.push(Bn[e>>>2],Bn[63&(e<<4|r>>>4)],Bn[63&(r<<2|n>>>6)],Bn[63&n]);var u=o-h;return 1===u?(e=t[s],i.push(Bn[e>>>2],Bn[e<<4&63],"==")):2===u&&(e=t[s++],r=t[s],i.push(Bn[e>>>2],Bn[63&(e<<4|r>>>4)],Bn[r<<2&63],"=")),i.join("")},Nn=En.btoa,Un=En.atob;if(Mn){var Pn=require("buffer").Buffer;Nn=function(t){return Pn.from(t,"ascii").toString("base64")},xn=On=function(t){return Pn.from(t).toString("base64")},Un=function(t){return Pn.from(t,"base64").toString("ascii")},In=function(t){return Pn.from(t,"base64").toString()}}else Nn?(On=function(t){for(var e=[],r=0;r<t.length;r++){var n=t.charCodeAt(r);n<128?e.push(String.fromCharCode(n)):n<2048?e.push(String.fromCharCode(192|n>>6),String.fromCharCode(128|63&n)):n<55296||n>=57344?e.push(String.fromCharCode(224|n>>12),String.fromCharCode(128|n>>6&63),String.fromCharCode(128|63&n)):(n=65536+((1023&n)<<10|1023&t.charCodeAt(++r)),e.push(String.fromCharCode(240|n>>18),String.fromCharCode(128|n>>12&63),String.fromCharCode(128|n>>6&63),String.fromCharCode(128|63&n)))}return Nn(e.join(""))},In=function(t){var e=Un(t.replace(/-/g,"+").replace(/_/g,"/"));if(!/[^\x00-\x7F]/.test(e))return e;for(var r,n,i=[],o=0,s=e.length,h=0;o<s;)if((r=e.charCodeAt(o++))<=127)i.push(String.fromCharCode(r));else{if(r>191&&r<=223)n=31&r,h=1;else if(r<=239)n=15&r,h=2;else{if(!(r<=247))throw new Error(Sn);n=7&r,h=3}for(var u=0;u<h;++u){if((r=e.charCodeAt(o++))<128||r>191)throw new Error(Sn);n<<=6,n+=63&r}if(n>=55296&&n<=57343)throw new Error(Sn);if(n>1114111)throw new Error(Sn);n<=65535?i.push(String.fromCharCode(n)):(n-=65536,i.push(String.fromCharCode(55296+(n>>10)),String.fromCharCode(56320+(1023&n))))}return i.join("")}):(Nn=function(t){for(var e,r,n,i=[],o=t.length,s=0,h=3*parseInt(o/3);s<h;)e=t.charCodeAt(s++),r=t.charCodeAt(s++),n=t.charCodeAt(s++),i.push(Bn[e>>>2],Bn[63&(e<<4|r>>>4)],Bn[63&(r<<2|n>>>6)],Bn[63&n]);var u=o-h;return 1===u?(e=t.charCodeAt(s),i.push(Bn[e>>>2],Bn[e<<4&63],"==")):2===u&&(e=t.charCodeAt(s++),r=t.charCodeAt(s),i.push(Bn[e>>>2],Bn[63&(e<<4|r>>>4)],Bn[r<<2&63],"=")),i.join("")},On=function(t){for(var e,r,n,i=[],o=function(t){for(var e=[],r=0;r<t.length;r++){var n=t.charCodeAt(r);n<128?e[e.length]=n:n<2048?(e[e.length]=192|n>>6,e[e.length]=128|63&n):n<55296||n>=57344?(e[e.length]=224|n>>12,e[e.length]=128|n>>6&63,e[e.length]=128|63&n):(n=65536+((1023&n)<<10|1023&t.charCodeAt(++r)),e[e.length]=240|n>>18,e[e.length]=128|n>>12&63,e[e.length]=128|n>>6&63,e[e.length]=128|63&n)}return e}(t),s=o.length,h=0,u=3*parseInt(s/3);h<u;)e=o[h++],r=o[h++],n=o[h++],i.push(Bn[e>>>2],Bn[63&(e<<4|r>>>4)],Bn[63&(r<<2|n>>>6)],Bn[63&n]);var a=s-u;return 1===a?(e=o[h],i.push(Bn[e>>>2],Bn[e<<4&63],"==")):2===a&&(e=o[h++],r=o[h],i.push(Bn[e>>>2],Bn[63&(e<<4|r>>>4)],Bn[r<<2&63],"=")),i.join("")},Un=function(t){for(var e,r,n,i,o=[],s=t.length,h=0,u=s>>2<<2;h<u;)e=Cn[t.charAt(h++)],r=Cn[t.charAt(h++)],n=Cn[t.charAt(h++)],i=Cn[t.charAt(h++)],o.push(String.fromCharCode(255&(e<<2|r>>>4)),String.fromCharCode(255&(r<<4|n>>>2)),String.fromCharCode(255&(n<<6|i)));var a=s-u;return 2===a?(e=Cn[t.charAt(h++)],r=Cn[t.charAt(h++)],o.push(String.fromCharCode(255&(e<<2|r>>>4)))):3===a&&(e=Cn[t.charAt(h++)],r=Cn[t.charAt(h++)],n=Cn[t.charAt(h++)],o.push(String.fromCharCode(255&(e<<2|r>>>4)),String.fromCharCode(255&(r<<4|n>>>2)))),o.join("")},In=function(t){for(var e,r,n=[],i=_n(t),o=i.length,s=0,h=0;s<o;)if((e=i[s++])<=127)n.push(String.fromCharCode(e));else{if(e>191&&e<=223)r=31&e,h=1;else if(e<=239)r=15&e,h=2;else{if(!(e<=247))throw new Error(Sn);r=7&e,h=3}for(var u=0;u<h;++u){if((e=i[s++])<128||e>191)throw new Error(Sn);r<<=6,r+=63&e}if(r>=55296&&r<=57343)throw new Error(Sn);if(r>1114111)throw new Error(Sn);r<=65535?n.push(String.fromCharCode(r)):(r-=65536,n.push(String.fromCharCode(55296+(r>>10)),String.fromCharCode(56320+(1023&r))))}return n.join("")});var kn=function(t,e){var r="string"!=typeof t;return r&&t.constructor===En.ArrayBuffer&&(t=new Uint8Array(t)),r?xn(t):/[^\x00-\x7F]/.test(t)?On(t):Nn(t)};const zn=On,jn=In;var $n=Object.freeze({__proto__:null,decode:function(t){return e=Rn(e=t),r?Un(e):In(e);var e,r},decodeAsBytes:function(t){return _n(t)},encode:function(t){return kn(t)},encodeAsBytes:function(t){return kn(t)},utf8Decode:function(t){return jn(t)},utf8Encode:function(t){return zn(t)}}),Ln="object"==typeof window?window:{};
|
|
10
|
-
/*
|
|
11
|
-
* [hi-base32]{@link https://github.com/emn178/hi-base32}
|
|
12
|
-
*
|
|
13
|
-
* @version 0.5.0
|
|
14
|
-
* @author Chen, Yi-Cyuan [emn178@gmail.com]
|
|
15
|
-
* @copyright Chen, Yi-Cyuan 2015-2018
|
|
16
|
-
* @license MIT
|
|
17
|
-
*/!Ln.HI_BASE32_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node&&(Ln=global);var qn="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567".split(""),Hn={A:0,B:1,C:2,D:3,E:4,F:5,G:6,H:7,I:8,J:9,K:10,L:11,M:12,N:13,O:14,P:15,Q:16,R:17,S:18,T:19,U:20,V:21,W:22,X:23,Y:24,Z:25,2:26,3:27,4:28,5:29,6:30,7:31},Yn=[0,0,0,0,0,0,0,0],Vn=function(t,e){e.length>10&&(e="..."+e.substr(-10));var r=new Error("Decoded data is not valid UTF-8. Maybe try base32.decode.asBytes()? Partial data after reading "+t+" bytes: "+e+" <-");throw r.position=t,r},Jn=function(t){if(""===t)return[];if(!/^[A-Z2-7=]+$/.test(t))throw new Error("Invalid base32 characters");for(var e,r,n,i,o,s,h,u,a=[],c=0,f=(t=t.replace(/=/g,"")).length,l=0,p=f>>3<<3;l<p;)e=Hn[t.charAt(l++)],r=Hn[t.charAt(l++)],n=Hn[t.charAt(l++)],i=Hn[t.charAt(l++)],o=Hn[t.charAt(l++)],s=Hn[t.charAt(l++)],h=Hn[t.charAt(l++)],u=Hn[t.charAt(l++)],a[c++]=255&(e<<3|r>>>2),a[c++]=255&(r<<6|n<<1|i>>>4),a[c++]=255&(i<<4|o>>>1),a[c++]=255&(o<<7|s<<2|h>>>3),a[c++]=255&(h<<5|u);var d=f-p;return 2===d?(e=Hn[t.charAt(l++)],r=Hn[t.charAt(l++)],a[c++]=255&(e<<3|r>>>2)):4===d?(e=Hn[t.charAt(l++)],r=Hn[t.charAt(l++)],n=Hn[t.charAt(l++)],i=Hn[t.charAt(l++)],a[c++]=255&(e<<3|r>>>2),a[c++]=255&(r<<6|n<<1|i>>>4)):5===d?(e=Hn[t.charAt(l++)],r=Hn[t.charAt(l++)],n=Hn[t.charAt(l++)],i=Hn[t.charAt(l++)],o=Hn[t.charAt(l++)],a[c++]=255&(e<<3|r>>>2),a[c++]=255&(r<<6|n<<1|i>>>4),a[c++]=255&(i<<4|o>>>1)):7===d&&(e=Hn[t.charAt(l++)],r=Hn[t.charAt(l++)],n=Hn[t.charAt(l++)],i=Hn[t.charAt(l++)],o=Hn[t.charAt(l++)],s=Hn[t.charAt(l++)],h=Hn[t.charAt(l++)],a[c++]=255&(e<<3|r>>>2),a[c++]=255&(r<<6|n<<1|i>>>4),a[c++]=255&(i<<4|o>>>1),a[c++]=255&(o<<7|s<<2|h>>>3)),a},Kn=function(t,e){var r="string"!=typeof t;return r&&t.constructor===ArrayBuffer&&(t=new Uint8Array(t)),r?function(t){for(var e,r,n,i,o,s="",h=t.length,u=0,a=5*parseInt(h/5);u<a;)e=t[u++],r=t[u++],n=t[u++],i=t[u++],o=t[u++],s+=qn[e>>>3]+qn[31&(e<<2|r>>>6)]+qn[r>>>1&31]+qn[31&(r<<4|n>>>4)]+qn[31&(n<<1|i>>>7)]+qn[i>>>2&31]+qn[31&(i<<3|o>>>5)]+qn[31&o];var c=h-a;return 1===c?(e=t[u],s+=qn[e>>>3]+qn[e<<2&31]+"======"):2===c?(e=t[u++],r=t[u],s+=qn[e>>>3]+qn[31&(e<<2|r>>>6)]+qn[r>>>1&31]+qn[r<<4&31]+"===="):3===c?(e=t[u++],r=t[u++],n=t[u],s+=qn[e>>>3]+qn[31&(e<<2|r>>>6)]+qn[r>>>1&31]+qn[31&(r<<4|n>>>4)]+qn[n<<1&31]+"==="):4===c&&(e=t[u++],r=t[u++],n=t[u++],i=t[u],s+=qn[e>>>3]+qn[31&(e<<2|r>>>6)]+qn[r>>>1&31]+qn[31&(r<<4|n>>>4)]+qn[31&(n<<1|i>>>7)]+qn[i>>>2&31]+qn[i<<3&31]+"="),s}(t):function(t){var e,r,n,i,o,s,h,u=!1,a="",c=0,f=0,l=t.length;if(""===t)return a;do{for(Yn[0]=Yn[5],Yn[1]=Yn[6],Yn[2]=Yn[7],h=f;c<l&&h<5;++c)(s=t.charCodeAt(c))<128?Yn[h++]=s:s<2048?(Yn[h++]=192|s>>6,Yn[h++]=128|63&s):s<55296||s>=57344?(Yn[h++]=224|s>>12,Yn[h++]=128|s>>6&63,Yn[h++]=128|63&s):(s=65536+((1023&s)<<10|1023&t.charCodeAt(++c)),Yn[h++]=240|s>>18,Yn[h++]=128|s>>12&63,Yn[h++]=128|s>>6&63,Yn[h++]=128|63&s);f=h-5,c===l&&++c,c>l&&h<6&&(u=!0),e=Yn[0],h>4?(r=Yn[1],n=Yn[2],i=Yn[3],o=Yn[4],a+=qn[e>>>3]+qn[31&(e<<2|r>>>6)]+qn[r>>>1&31]+qn[31&(r<<4|n>>>4)]+qn[31&(n<<1|i>>>7)]+qn[i>>>2&31]+qn[31&(i<<3|o>>>5)]+qn[31&o]):1===h?a+=qn[e>>>3]+qn[e<<2&31]+"======":2===h?(r=Yn[1],a+=qn[e>>>3]+qn[31&(e<<2|r>>>6)]+qn[r>>>1&31]+qn[r<<4&31]+"===="):3===h?(r=Yn[1],n=Yn[2],a+=qn[e>>>3]+qn[31&(e<<2|r>>>6)]+qn[r>>>1&31]+qn[31&(r<<4|n>>>4)]+qn[n<<1&31]+"==="):(r=Yn[1],n=Yn[2],i=Yn[3],a+=qn[e>>>3]+qn[31&(e<<2|r>>>6)]+qn[r>>>1&31]+qn[31&(r<<4|n>>>4)]+qn[31&(n<<1|i>>>7)]+qn[i>>>2&31]+qn[i<<3&31]+"=")}while(!u);return a}(t)},Wn=function(t,e){return function(t){for(var e,r,n="",i=t.length,o=0,s=0;o<i;)if((e=t[o++])<=127)n+=String.fromCharCode(e);else{e>191&&e<=223?(r=31&e,s=1):e<=239?(r=15&e,s=2):e<=247?(r=7&e,s=3):Vn(o,n);for(var h=0;h<s;++h)((e=t[o++])<128||e>191)&&Vn(o,n),r<<=6,r+=63&e;r>=55296&&r<=57343&&Vn(o,n),r>1114111&&Vn(o,n),r<=65535?n+=String.fromCharCode(r):(r-=65536,n+=String.fromCharCode(55296+(r>>10)),n+=String.fromCharCode(56320+(1023&r)))}return n}(Jn(t))};var Zn=Object.freeze({__proto__:null,decode:function(t){return Wn(t)},decodeAsBytes:function(t){return Jn(t)},encode:function(t){return Kn(t)},encodeAsBytes:function(t){return Kn(t)}}),Qn="input is invalid type",Xn="object"==typeof window,Gn=Xn?window:{};
|
|
18
|
-
/**
|
|
19
|
-
* [js-md5]{@link https://github.com/emn178/js-md5}
|
|
20
|
-
*
|
|
21
|
-
* @namespace md5
|
|
22
|
-
* @version 0.8.3
|
|
23
|
-
* @author Chen, Yi-Cyuan [emn178@gmail.com]
|
|
24
|
-
* @copyright Chen, Yi-Cyuan 2014-2023
|
|
25
|
-
* @license MIT
|
|
26
|
-
*/Gn.JS_MD5_NO_WINDOW&&(Xn=!1);var ti=!Xn&&"object"==typeof self,ei=!Gn.JS_MD5_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;ei?Gn=global:ti&&(Gn=self);var ri,ni=!Gn.JS_MD5_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,ii="0123456789abcdef".split(""),oi=[128,32768,8388608,-2147483648],si=[0,8,16,24],hi=["hex","array","digest","buffer","arrayBuffer","base64"],ui="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),ai=[];if(ni){var ci=new ArrayBuffer(68);ri=new Uint8Array(ci),ai=new Uint32Array(ci)}var fi=Array.isArray;!Gn.JS_MD5_NO_NODE_JS&&fi||(fi=function(t){return"[object Array]"===Object.prototype.toString.call(t)});var li=ArrayBuffer.isView;!ni||!Gn.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW&&li||(li=function(t){return"object"==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});var pi=function(t){var e=typeof t;if("string"===e)return[t,!0];if("object"!==e||null===t)throw new Error(Qn);if(ni&&t.constructor===ArrayBuffer)return[new Uint8Array(t),!1];if(!fi(t)&&!li(t))throw new Error(Qn);return[t,!1]},di=function(t){return function(e){return new wi(!0).update(e)[t]()}},gi=function(t){var e,r=require("crypto"),n=require("buffer").Buffer;e=n.from&&!Gn.JS_MD5_NO_BUFFER_FROM?n.from:function(t){return new n(t)};return function(i){if("string"==typeof i)return r.createHash("md5").update(i,"utf8").digest("hex");if(null==i)throw new Error(Qn);return i.constructor===ArrayBuffer&&(i=new Uint8Array(i)),fi(i)||li(i)||i.constructor===n?r.createHash("md5").update(e(i)).digest("hex"):t(i)}},yi=function(t){return function(e,r){return new mi(e,!0).update(r)[t]()}};function wi(t){if(t)ai[0]=ai[16]=ai[1]=ai[2]=ai[3]=ai[4]=ai[5]=ai[6]=ai[7]=ai[8]=ai[9]=ai[10]=ai[11]=ai[12]=ai[13]=ai[14]=ai[15]=0,this.blocks=ai,this.buffer8=ri;else if(ni){var e=new ArrayBuffer(68);this.buffer8=new Uint8Array(e),this.blocks=new Uint32Array(e)}else this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}function mi(t,e){var r,n=pi(t);if(t=n[0],n[1]){var i,o=[],s=t.length,h=0;for(r=0;r<s;++r)(i=t.charCodeAt(r))<128?o[h++]=i:i<2048?(o[h++]=192|i>>>6,o[h++]=128|63&i):i<55296||i>=57344?(o[h++]=224|i>>>12,o[h++]=128|i>>>6&63,o[h++]=128|63&i):(i=65536+((1023&i)<<10|1023&t.charCodeAt(++r)),o[h++]=240|i>>>18,o[h++]=128|i>>>12&63,o[h++]=128|i>>>6&63,o[h++]=128|63&i);t=o}t.length>64&&(t=new wi(!0).update(t).array());var u=[],a=[];for(r=0;r<64;++r){var c=t[r]||0;u[r]=92^c,a[r]=54^c}wi.call(this,e),this.update(a),this.oKeyPad=u,this.inner=!0,this.sharedMemory=e}wi.prototype.update=function(t){if(this.finalized)throw new Error("finalize already called");var e=pi(t);t=e[0];for(var r,n,i=e[1],o=0,s=t.length,h=this.blocks,u=this.buffer8;o<s;){if(this.hashed&&(this.hashed=!1,h[0]=h[16],h[16]=h[1]=h[2]=h[3]=h[4]=h[5]=h[6]=h[7]=h[8]=h[9]=h[10]=h[11]=h[12]=h[13]=h[14]=h[15]=0),i)if(ni)for(n=this.start;o<s&&n<64;++o)(r=t.charCodeAt(o))<128?u[n++]=r:r<2048?(u[n++]=192|r>>>6,u[n++]=128|63&r):r<55296||r>=57344?(u[n++]=224|r>>>12,u[n++]=128|r>>>6&63,u[n++]=128|63&r):(r=65536+((1023&r)<<10|1023&t.charCodeAt(++o)),u[n++]=240|r>>>18,u[n++]=128|r>>>12&63,u[n++]=128|r>>>6&63,u[n++]=128|63&r);else for(n=this.start;o<s&&n<64;++o)(r=t.charCodeAt(o))<128?h[n>>>2]|=r<<si[3&n++]:r<2048?(h[n>>>2]|=(192|r>>>6)<<si[3&n++],h[n>>>2]|=(128|63&r)<<si[3&n++]):r<55296||r>=57344?(h[n>>>2]|=(224|r>>>12)<<si[3&n++],h[n>>>2]|=(128|r>>>6&63)<<si[3&n++],h[n>>>2]|=(128|63&r)<<si[3&n++]):(r=65536+((1023&r)<<10|1023&t.charCodeAt(++o)),h[n>>>2]|=(240|r>>>18)<<si[3&n++],h[n>>>2]|=(128|r>>>12&63)<<si[3&n++],h[n>>>2]|=(128|r>>>6&63)<<si[3&n++],h[n>>>2]|=(128|63&r)<<si[3&n++]);else if(ni)for(n=this.start;o<s&&n<64;++o)u[n++]=t[o];else for(n=this.start;o<s&&n<64;++o)h[n>>>2]|=t[o]<<si[3&n++];this.lastByteIndex=n,this.bytes+=n-this.start,n>=64?(this.start=n-64,this.hash(),this.hashed=!0):this.start=n}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296|0,this.bytes=this.bytes%4294967296),this},wi.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex;t[e>>>2]|=oi[3&e],e>=56&&(this.hashed||this.hash(),t[0]=t[16],t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.bytes<<3,t[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},wi.prototype.hash=function(){var t,e,r,n,i,o,s=this.blocks;this.first?e=((e=((t=((t=s[0]-680876937)<<7|t>>>25)-271733879|0)^(r=((r=(-271733879^(n=((n=(-1732584194^2004318071&t)+s[1]-117830708)<<12|n>>>20)+t|0)&(-271733879^t))+s[2]-1126478375)<<17|r>>>15)+n|0)&(n^t))+s[3]-1316259209)<<22|e>>>10)+r|0:(t=this.h0,e=this.h1,r=this.h2,e=((e+=((t=((t+=((n=this.h3)^e&(r^n))+s[0]-680876936)<<7|t>>>25)+e|0)^(r=((r+=(e^(n=((n+=(r^t&(e^r))+s[1]-389564586)<<12|n>>>20)+t|0)&(t^e))+s[2]+606105819)<<17|r>>>15)+n|0)&(n^t))+s[3]-1044525330)<<22|e>>>10)+r|0),e=((e+=((t=((t+=(n^e&(r^n))+s[4]-176418897)<<7|t>>>25)+e|0)^(r=((r+=(e^(n=((n+=(r^t&(e^r))+s[5]+1200080426)<<12|n>>>20)+t|0)&(t^e))+s[6]-1473231341)<<17|r>>>15)+n|0)&(n^t))+s[7]-45705983)<<22|e>>>10)+r|0,e=((e+=((t=((t+=(n^e&(r^n))+s[8]+1770035416)<<7|t>>>25)+e|0)^(r=((r+=(e^(n=((n+=(r^t&(e^r))+s[9]-1958414417)<<12|n>>>20)+t|0)&(t^e))+s[10]-42063)<<17|r>>>15)+n|0)&(n^t))+s[11]-1990404162)<<22|e>>>10)+r|0,e=((e+=((t=((t+=(n^e&(r^n))+s[12]+1804603682)<<7|t>>>25)+e|0)^(r=((r+=(e^(n=((n+=(r^t&(e^r))+s[13]-40341101)<<12|n>>>20)+t|0)&(t^e))+s[14]-1502002290)<<17|r>>>15)+n|0)&(n^t))+s[15]+1236535329)<<22|e>>>10)+r|0,e=((e+=((n=((n+=(e^r&((t=((t+=(r^n&(e^r))+s[1]-165796510)<<5|t>>>27)+e|0)^e))+s[6]-1069501632)<<9|n>>>23)+t|0)^t&((r=((r+=(t^e&(n^t))+s[11]+643717713)<<14|r>>>18)+n|0)^n))+s[0]-373897302)<<20|e>>>12)+r|0,e=((e+=((n=((n+=(e^r&((t=((t+=(r^n&(e^r))+s[5]-701558691)<<5|t>>>27)+e|0)^e))+s[10]+38016083)<<9|n>>>23)+t|0)^t&((r=((r+=(t^e&(n^t))+s[15]-660478335)<<14|r>>>18)+n|0)^n))+s[4]-405537848)<<20|e>>>12)+r|0,e=((e+=((n=((n+=(e^r&((t=((t+=(r^n&(e^r))+s[9]+568446438)<<5|t>>>27)+e|0)^e))+s[14]-1019803690)<<9|n>>>23)+t|0)^t&((r=((r+=(t^e&(n^t))+s[3]-187363961)<<14|r>>>18)+n|0)^n))+s[8]+1163531501)<<20|e>>>12)+r|0,e=((e+=((n=((n+=(e^r&((t=((t+=(r^n&(e^r))+s[13]-1444681467)<<5|t>>>27)+e|0)^e))+s[2]-51403784)<<9|n>>>23)+t|0)^t&((r=((r+=(t^e&(n^t))+s[7]+1735328473)<<14|r>>>18)+n|0)^n))+s[12]-1926607734)<<20|e>>>12)+r|0,e=((e+=((o=(n=((n+=((i=e^r)^(t=((t+=(i^n)+s[5]-378558)<<4|t>>>28)+e|0))+s[8]-2022574463)<<11|n>>>21)+t|0)^t)^(r=((r+=(o^e)+s[11]+1839030562)<<16|r>>>16)+n|0))+s[14]-35309556)<<23|e>>>9)+r|0,e=((e+=((o=(n=((n+=((i=e^r)^(t=((t+=(i^n)+s[1]-1530992060)<<4|t>>>28)+e|0))+s[4]+1272893353)<<11|n>>>21)+t|0)^t)^(r=((r+=(o^e)+s[7]-155497632)<<16|r>>>16)+n|0))+s[10]-1094730640)<<23|e>>>9)+r|0,e=((e+=((o=(n=((n+=((i=e^r)^(t=((t+=(i^n)+s[13]+681279174)<<4|t>>>28)+e|0))+s[0]-358537222)<<11|n>>>21)+t|0)^t)^(r=((r+=(o^e)+s[3]-722521979)<<16|r>>>16)+n|0))+s[6]+76029189)<<23|e>>>9)+r|0,e=((e+=((o=(n=((n+=((i=e^r)^(t=((t+=(i^n)+s[9]-640364487)<<4|t>>>28)+e|0))+s[12]-421815835)<<11|n>>>21)+t|0)^t)^(r=((r+=(o^e)+s[15]+530742520)<<16|r>>>16)+n|0))+s[2]-995338651)<<23|e>>>9)+r|0,e=((e+=((n=((n+=(e^((t=((t+=(r^(e|~n))+s[0]-198630844)<<6|t>>>26)+e|0)|~r))+s[7]+1126891415)<<10|n>>>22)+t|0)^((r=((r+=(t^(n|~e))+s[14]-1416354905)<<15|r>>>17)+n|0)|~t))+s[5]-57434055)<<21|e>>>11)+r|0,e=((e+=((n=((n+=(e^((t=((t+=(r^(e|~n))+s[12]+1700485571)<<6|t>>>26)+e|0)|~r))+s[3]-1894986606)<<10|n>>>22)+t|0)^((r=((r+=(t^(n|~e))+s[10]-1051523)<<15|r>>>17)+n|0)|~t))+s[1]-2054922799)<<21|e>>>11)+r|0,e=((e+=((n=((n+=(e^((t=((t+=(r^(e|~n))+s[8]+1873313359)<<6|t>>>26)+e|0)|~r))+s[15]-30611744)<<10|n>>>22)+t|0)^((r=((r+=(t^(n|~e))+s[6]-1560198380)<<15|r>>>17)+n|0)|~t))+s[13]+1309151649)<<21|e>>>11)+r|0,e=((e+=((n=((n+=(e^((t=((t+=(r^(e|~n))+s[4]-145523070)<<6|t>>>26)+e|0)|~r))+s[11]-1120210379)<<10|n>>>22)+t|0)^((r=((r+=(t^(n|~e))+s[2]+718787259)<<15|r>>>17)+n|0)|~t))+s[9]-343485551)<<21|e>>>11)+r|0,this.first?(this.h0=t+1732584193|0,this.h1=e-271733879|0,this.h2=r-1732584194|0,this.h3=n+271733878|0,this.first=!1):(this.h0=this.h0+t|0,this.h1=this.h1+e|0,this.h2=this.h2+r|0,this.h3=this.h3+n|0)},wi.prototype.hex=function(){this.finalize();var t=this.h0,e=this.h1,r=this.h2,n=this.h3;return ii[t>>>4&15]+ii[15&t]+ii[t>>>12&15]+ii[t>>>8&15]+ii[t>>>20&15]+ii[t>>>16&15]+ii[t>>>28&15]+ii[t>>>24&15]+ii[e>>>4&15]+ii[15&e]+ii[e>>>12&15]+ii[e>>>8&15]+ii[e>>>20&15]+ii[e>>>16&15]+ii[e>>>28&15]+ii[e>>>24&15]+ii[r>>>4&15]+ii[15&r]+ii[r>>>12&15]+ii[r>>>8&15]+ii[r>>>20&15]+ii[r>>>16&15]+ii[r>>>28&15]+ii[r>>>24&15]+ii[n>>>4&15]+ii[15&n]+ii[n>>>12&15]+ii[n>>>8&15]+ii[n>>>20&15]+ii[n>>>16&15]+ii[n>>>28&15]+ii[n>>>24&15]},wi.prototype.toString=wi.prototype.hex,wi.prototype.digest=function(){this.finalize();var t=this.h0,e=this.h1,r=this.h2,n=this.h3;return[255&t,t>>>8&255,t>>>16&255,t>>>24&255,255&e,e>>>8&255,e>>>16&255,e>>>24&255,255&r,r>>>8&255,r>>>16&255,r>>>24&255,255&n,n>>>8&255,n>>>16&255,n>>>24&255]},wi.prototype.array=wi.prototype.digest,wi.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(16),e=new Uint32Array(t);return e[0]=this.h0,e[1]=this.h1,e[2]=this.h2,e[3]=this.h3,t},wi.prototype.buffer=wi.prototype.arrayBuffer,wi.prototype.base64=function(){for(var t,e,r,n="",i=this.array(),o=0;o<15;)t=i[o++],e=i[o++],r=i[o++],n+=ui[t>>>2]+ui[63&(t<<4|e>>>4)]+ui[63&(e<<2|r>>>6)]+ui[63&r];return t=i[o],n+=ui[t>>>2]+ui[t<<4&63]+"=="},mi.prototype=new wi,mi.prototype.finalize=function(){if(wi.prototype.finalize.call(this),this.inner){this.inner=!1;var t=this.array();wi.call(this,this.sharedMemory),this.update(this.oKeyPad),this.update(t),wi.prototype.finalize.call(this)}};const bi=function(){var t=di("hex");ei&&(t=gi(t)),t.create=function(){return new wi},t.update=function(e){return t.create().update(e)};for(var e=0;e<hi.length;++e){var r=hi[e];t[r]=di(r)}return t}(),Ai=function(){var t=yi("hex");t.create=function(t){return new mi(t)},t.update=function(e,r){return t.create(e).update(r)};for(var e=0;e<hi.length;++e){var r=hi[e];t[r]=yi(r)}return t}();function vi(t){return bi(t)}function Si(t,e){return Ai(e,t)}
|
|
27
|
-
/*
|
|
28
|
-
* [js-sha1]{@link https://github.com/emn178/js-sha1}
|
|
29
|
-
*
|
|
30
|
-
* @version 0.7.0
|
|
31
|
-
* @author Chen, Yi-Cyuan [emn178@gmail.com]
|
|
32
|
-
* @copyright Chen, Yi-Cyuan 2014-2024
|
|
33
|
-
* @license MIT
|
|
34
|
-
*/var Di="input is invalid type",Ei="object"==typeof window,Fi=Ei?window:{};Fi.JS_SHA1_NO_WINDOW&&(Ei=!1);var Mi=!Ei&&"object"==typeof self,Bi=!Fi.JS_SHA1_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;Bi?Fi=global:Mi&&(Fi=self);var Ci=!Fi.JS_SHA1_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,Ti="0123456789abcdef".split(""),Oi=[-2147483648,8388608,32768,128],Ii=[24,16,8,0],Ri=["hex","array","digest","arrayBuffer"],_i=[],xi=Array.isArray;!Fi.JS_SHA1_NO_NODE_JS&&xi||(xi=function(t){return"[object Array]"===Object.prototype.toString.call(t)});var Ni=ArrayBuffer.isView;!Ci||!Fi.JS_SHA1_NO_ARRAY_BUFFER_IS_VIEW&&Ni||(Ni=function(t){return"object"==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});var Ui=function(t){var e=typeof t;if("string"===e)return[t,!0];if("object"!==e||null===t)throw new Error(Di);if(Ci&&t.constructor===ArrayBuffer)return[new Uint8Array(t),!1];if(!xi(t)&&!Ni(t))throw new Error(Di);return[t,!1]},Pi=function(t){return function(e){return new ji(!0).update(e)[t]()}},ki=function(t){var e,r=require("crypto"),n=require("buffer").Buffer;e=n.from&&!Fi.JS_SHA1_NO_BUFFER_FROM?n.from:function(t){return new n(t)};return function(i){if("string"==typeof i)return r.createHash("sha1").update(i,"utf8").digest("hex");if(null==i)throw new Error(Di);return i.constructor===ArrayBuffer&&(i=new Uint8Array(i)),xi(i)||Ni(i)||i.constructor===n?r.createHash("sha1").update(e(i)).digest("hex"):t(i)}},zi=function(t){return function(e,r){return new $i(e,!0).update(r)[t]()}};function ji(t){t?(_i[0]=_i[16]=_i[1]=_i[2]=_i[3]=_i[4]=_i[5]=_i[6]=_i[7]=_i[8]=_i[9]=_i[10]=_i[11]=_i[12]=_i[13]=_i[14]=_i[15]=0,this.blocks=_i):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.h0=1732584193,this.h1=4023233417,this.h2=2562383102,this.h3=271733878,this.h4=3285377520,this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}function $i(t,e){var r,n=Ui(t);if(t=n[0],n[1]){var i,o=[],s=t.length,h=0;for(r=0;r<s;++r)(i=t.charCodeAt(r))<128?o[h++]=i:i<2048?(o[h++]=192|i>>>6,o[h++]=128|63&i):i<55296||i>=57344?(o[h++]=224|i>>>12,o[h++]=128|i>>>6&63,o[h++]=128|63&i):(i=65536+((1023&i)<<10|1023&t.charCodeAt(++r)),o[h++]=240|i>>>18,o[h++]=128|i>>>12&63,o[h++]=128|i>>>6&63,o[h++]=128|63&i);t=o}t.length>64&&(t=new ji(!0).update(t).array());var u=[],a=[];for(r=0;r<64;++r){var c=t[r]||0;u[r]=92^c,a[r]=54^c}ji.call(this,e),this.update(a),this.oKeyPad=u,this.inner=!0,this.sharedMemory=e}ji.prototype.update=function(t){if(this.finalized)throw new Error("finalize already called");var e=Ui(t);t=e[0];for(var r,n,i=e[1],o=0,s=t.length||0,h=this.blocks;o<s;){if(this.hashed&&(this.hashed=!1,h[0]=this.block,this.block=h[16]=h[1]=h[2]=h[3]=h[4]=h[5]=h[6]=h[7]=h[8]=h[9]=h[10]=h[11]=h[12]=h[13]=h[14]=h[15]=0),i)for(n=this.start;o<s&&n<64;++o)(r=t.charCodeAt(o))<128?h[n>>>2]|=r<<Ii[3&n++]:r<2048?(h[n>>>2]|=(192|r>>>6)<<Ii[3&n++],h[n>>>2]|=(128|63&r)<<Ii[3&n++]):r<55296||r>=57344?(h[n>>>2]|=(224|r>>>12)<<Ii[3&n++],h[n>>>2]|=(128|r>>>6&63)<<Ii[3&n++],h[n>>>2]|=(128|63&r)<<Ii[3&n++]):(r=65536+((1023&r)<<10|1023&t.charCodeAt(++o)),h[n>>>2]|=(240|r>>>18)<<Ii[3&n++],h[n>>>2]|=(128|r>>>12&63)<<Ii[3&n++],h[n>>>2]|=(128|r>>>6&63)<<Ii[3&n++],h[n>>>2]|=(128|63&r)<<Ii[3&n++]);else for(n=this.start;o<s&&n<64;++o)h[n>>>2]|=t[o]<<Ii[3&n++];this.lastByteIndex=n,this.bytes+=n-this.start,n>=64?(this.block=h[16],this.start=n-64,this.hash(),this.hashed=!0):this.start=n}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296|0,this.bytes=this.bytes%4294967296),this},ji.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex;t[16]=this.block,t[e>>>2]|=Oi[3&e],this.block=t[16],e>=56&&(this.hashed||this.hash(),t[0]=this.block,t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.hBytes<<3|this.bytes>>>29,t[15]=this.bytes<<3,this.hash()}},ji.prototype.hash=function(){var t,e,r=this.h0,n=this.h1,i=this.h2,o=this.h3,s=this.h4,h=this.blocks;for(t=16;t<80;++t)e=h[t-3]^h[t-8]^h[t-14]^h[t-16],h[t]=e<<1|e>>>31;for(t=0;t<20;t+=5)r=(e=(n=(e=(i=(e=(o=(e=(s=(e=r<<5|r>>>27)+(n&i|~n&o)+s+1518500249+h[t]|0)<<5|s>>>27)+(r&(n=n<<30|n>>>2)|~r&i)+o+1518500249+h[t+1]|0)<<5|o>>>27)+(s&(r=r<<30|r>>>2)|~s&n)+i+1518500249+h[t+2]|0)<<5|i>>>27)+(o&(s=s<<30|s>>>2)|~o&r)+n+1518500249+h[t+3]|0)<<5|n>>>27)+(i&(o=o<<30|o>>>2)|~i&s)+r+1518500249+h[t+4]|0,i=i<<30|i>>>2;for(;t<40;t+=5)r=(e=(n=(e=(i=(e=(o=(e=(s=(e=r<<5|r>>>27)+(n^i^o)+s+1859775393+h[t]|0)<<5|s>>>27)+(r^(n=n<<30|n>>>2)^i)+o+1859775393+h[t+1]|0)<<5|o>>>27)+(s^(r=r<<30|r>>>2)^n)+i+1859775393+h[t+2]|0)<<5|i>>>27)+(o^(s=s<<30|s>>>2)^r)+n+1859775393+h[t+3]|0)<<5|n>>>27)+(i^(o=o<<30|o>>>2)^s)+r+1859775393+h[t+4]|0,i=i<<30|i>>>2;for(;t<60;t+=5)r=(e=(n=(e=(i=(e=(o=(e=(s=(e=r<<5|r>>>27)+(n&i|n&o|i&o)+s-1894007588+h[t]|0)<<5|s>>>27)+(r&(n=n<<30|n>>>2)|r&i|n&i)+o-1894007588+h[t+1]|0)<<5|o>>>27)+(s&(r=r<<30|r>>>2)|s&n|r&n)+i-1894007588+h[t+2]|0)<<5|i>>>27)+(o&(s=s<<30|s>>>2)|o&r|s&r)+n-1894007588+h[t+3]|0)<<5|n>>>27)+(i&(o=o<<30|o>>>2)|i&s|o&s)+r-1894007588+h[t+4]|0,i=i<<30|i>>>2;for(;t<80;t+=5)r=(e=(n=(e=(i=(e=(o=(e=(s=(e=r<<5|r>>>27)+(n^i^o)+s-899497514+h[t]|0)<<5|s>>>27)+(r^(n=n<<30|n>>>2)^i)+o-899497514+h[t+1]|0)<<5|o>>>27)+(s^(r=r<<30|r>>>2)^n)+i-899497514+h[t+2]|0)<<5|i>>>27)+(o^(s=s<<30|s>>>2)^r)+n-899497514+h[t+3]|0)<<5|n>>>27)+(i^(o=o<<30|o>>>2)^s)+r-899497514+h[t+4]|0,i=i<<30|i>>>2;this.h0=this.h0+r|0,this.h1=this.h1+n|0,this.h2=this.h2+i|0,this.h3=this.h3+o|0,this.h4=this.h4+s|0},ji.prototype.hex=function(){this.finalize();var t=this.h0,e=this.h1,r=this.h2,n=this.h3,i=this.h4;return Ti[t>>>28&15]+Ti[t>>>24&15]+Ti[t>>>20&15]+Ti[t>>>16&15]+Ti[t>>>12&15]+Ti[t>>>8&15]+Ti[t>>>4&15]+Ti[15&t]+Ti[e>>>28&15]+Ti[e>>>24&15]+Ti[e>>>20&15]+Ti[e>>>16&15]+Ti[e>>>12&15]+Ti[e>>>8&15]+Ti[e>>>4&15]+Ti[15&e]+Ti[r>>>28&15]+Ti[r>>>24&15]+Ti[r>>>20&15]+Ti[r>>>16&15]+Ti[r>>>12&15]+Ti[r>>>8&15]+Ti[r>>>4&15]+Ti[15&r]+Ti[n>>>28&15]+Ti[n>>>24&15]+Ti[n>>>20&15]+Ti[n>>>16&15]+Ti[n>>>12&15]+Ti[n>>>8&15]+Ti[n>>>4&15]+Ti[15&n]+Ti[i>>>28&15]+Ti[i>>>24&15]+Ti[i>>>20&15]+Ti[i>>>16&15]+Ti[i>>>12&15]+Ti[i>>>8&15]+Ti[i>>>4&15]+Ti[15&i]},ji.prototype.toString=ji.prototype.hex,ji.prototype.digest=function(){this.finalize();var t=this.h0,e=this.h1,r=this.h2,n=this.h3,i=this.h4;return[t>>>24&255,t>>>16&255,t>>>8&255,255&t,e>>>24&255,e>>>16&255,e>>>8&255,255&e,r>>>24&255,r>>>16&255,r>>>8&255,255&r,n>>>24&255,n>>>16&255,n>>>8&255,255&n,i>>>24&255,i>>>16&255,i>>>8&255,255&i]},ji.prototype.array=ji.prototype.digest,ji.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(20),e=new DataView(t);return e.setUint32(0,this.h0),e.setUint32(4,this.h1),e.setUint32(8,this.h2),e.setUint32(12,this.h3),e.setUint32(16,this.h4),t},$i.prototype=new ji,$i.prototype.finalize=function(){if(ji.prototype.finalize.call(this),this.inner){this.inner=!1;var t=this.array();ji.call(this,this.sharedMemory),this.update(this.oKeyPad),this.update(t),ji.prototype.finalize.call(this)}};const Li=function(){var t=Pi("hex");Bi&&(t=ki(t)),t.create=function(){return new ji},t.update=function(e){return t.create().update(e)};for(var e=0;e<Ri.length;++e){var r=Ri[e];t[r]=Pi(r)}return t}(),qi=function(){var t=zi("hex");t.create=function(t){return new $i(t)},t.update=function(e,r){return t.create(e).update(r)};for(var e=0;e<Ri.length;++e){var r=Ri[e];t[r]=zi(r)}return t}();function Hi(t){return Li(t)}function Yi(t,e){return qi(e,t)}
|
|
35
|
-
/**
|
|
36
|
-
* [js-sha256]{@link https://github.com/emn178/js-sha256}
|
|
37
|
-
*
|
|
38
|
-
* @version 0.11.0
|
|
39
|
-
* @author Chen, Yi-Cyuan [emn178@gmail.com]
|
|
40
|
-
* @copyright Chen, Yi-Cyuan 2014-2024
|
|
41
|
-
* @license MIT
|
|
42
|
-
*/var Vi="input is invalid type",Ji="object"==typeof window,Ki=Ji?window:{};Ki.JS_SHA256_NO_WINDOW&&(Ji=!1);var Wi=!Ji&&"object"==typeof self,Zi=!Ki.JS_SHA256_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;Zi?Ki=global:Wi&&(Ki=self);var Qi=!Ki.JS_SHA256_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,Xi="0123456789abcdef".split(""),Gi=[-2147483648,8388608,32768,128],to=[24,16,8,0],eo=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],ro=["hex","array","digest","arrayBuffer"],no=[];!Ki.JS_SHA256_NO_NODE_JS&&Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),!Qi||!Ki.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(t){return"object"==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});var io=function(t,e){return function(r){return new ao(e,!0).update(r)[t]()}},oo=function(t){var e=io("hex",t);Zi&&(e=so(e,t)),e.create=function(){return new ao(t)},e.update=function(t){return e.create().update(t)};for(var r=0;r<ro.length;++r){var n=ro[r];e[n]=io(n,t)}return e},so=function(t,e){var r,n=require("crypto"),i=require("buffer").Buffer,o=e?"sha224":"sha256";r=i.from&&!Ki.JS_SHA256_NO_BUFFER_FROM?i.from:function(t){return new i(t)};return function(e){if("string"==typeof e)return n.createHash(o).update(e,"utf8").digest("hex");if(null==e)throw new Error(Vi);return e.constructor===ArrayBuffer&&(e=new Uint8Array(e)),Array.isArray(e)||ArrayBuffer.isView(e)||e.constructor===i?n.createHash(o).update(r(e)).digest("hex"):t(e)}},ho=function(t,e){return function(r,n){return new co(r,e,!0).update(n)[t]()}},uo=function(t){var e=ho("hex",t);e.create=function(e){return new co(e,t)},e.update=function(t,r){return e.create(t).update(r)};for(var r=0;r<ro.length;++r){var n=ro[r];e[n]=ho(n,t)}return e};function ao(t,e){e?(no[0]=no[16]=no[1]=no[2]=no[3]=no[4]=no[5]=no[6]=no[7]=no[8]=no[9]=no[10]=no[11]=no[12]=no[13]=no[14]=no[15]=0,this.blocks=no):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=t}function co(t,e,r){var n,i=typeof t;if("string"===i){var o,s=[],h=t.length,u=0;for(n=0;n<h;++n)(o=t.charCodeAt(n))<128?s[u++]=o:o<2048?(s[u++]=192|o>>>6,s[u++]=128|63&o):o<55296||o>=57344?(s[u++]=224|o>>>12,s[u++]=128|o>>>6&63,s[u++]=128|63&o):(o=65536+((1023&o)<<10|1023&t.charCodeAt(++n)),s[u++]=240|o>>>18,s[u++]=128|o>>>12&63,s[u++]=128|o>>>6&63,s[u++]=128|63&o);t=s}else{if("object"!==i)throw new Error(Vi);if(null===t)throw new Error(Vi);if(Qi&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||Qi&&ArrayBuffer.isView(t)))throw new Error(Vi)}t.length>64&&(t=new ao(e,!0).update(t).array());var a=[],c=[];for(n=0;n<64;++n){var f=t[n]||0;a[n]=92^f,c[n]=54^f}ao.call(this,e,r),this.update(c),this.oKeyPad=a,this.inner=!0,this.sharedMemory=r}ao.prototype.update=function(t){if(!this.finalized){var e,r=typeof t;if("string"!==r){if("object"!==r)throw new Error(Vi);if(null===t)throw new Error(Vi);if(Qi&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||Qi&&ArrayBuffer.isView(t)))throw new Error(Vi);e=!0}for(var n,i,o=0,s=t.length,h=this.blocks;o<s;){if(this.hashed&&(this.hashed=!1,h[0]=this.block,this.block=h[16]=h[1]=h[2]=h[3]=h[4]=h[5]=h[6]=h[7]=h[8]=h[9]=h[10]=h[11]=h[12]=h[13]=h[14]=h[15]=0),e)for(i=this.start;o<s&&i<64;++o)h[i>>>2]|=t[o]<<to[3&i++];else for(i=this.start;o<s&&i<64;++o)(n=t.charCodeAt(o))<128?h[i>>>2]|=n<<to[3&i++]:n<2048?(h[i>>>2]|=(192|n>>>6)<<to[3&i++],h[i>>>2]|=(128|63&n)<<to[3&i++]):n<55296||n>=57344?(h[i>>>2]|=(224|n>>>12)<<to[3&i++],h[i>>>2]|=(128|n>>>6&63)<<to[3&i++],h[i>>>2]|=(128|63&n)<<to[3&i++]):(n=65536+((1023&n)<<10|1023&t.charCodeAt(++o)),h[i>>>2]|=(240|n>>>18)<<to[3&i++],h[i>>>2]|=(128|n>>>12&63)<<to[3&i++],h[i>>>2]|=(128|n>>>6&63)<<to[3&i++],h[i>>>2]|=(128|63&n)<<to[3&i++]);this.lastByteIndex=i,this.bytes+=i-this.start,i>=64?(this.block=h[16],this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296|0,this.bytes=this.bytes%4294967296),this}},ao.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex;t[16]=this.block,t[e>>>2]|=Gi[3&e],this.block=t[16],e>=56&&(this.hashed||this.hash(),t[0]=this.block,t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.hBytes<<3|this.bytes>>>29,t[15]=this.bytes<<3,this.hash()}},ao.prototype.hash=function(){var t,e,r,n,i,o,s,h,u,a=this.h0,c=this.h1,f=this.h2,l=this.h3,p=this.h4,d=this.h5,g=this.h6,y=this.h7,w=this.blocks;for(t=16;t<64;++t)e=((i=w[t-15])>>>7|i<<25)^(i>>>18|i<<14)^i>>>3,r=((i=w[t-2])>>>17|i<<15)^(i>>>19|i<<13)^i>>>10,w[t]=w[t-16]+e+w[t-7]+r|0;for(u=c&f,t=0;t<64;t+=4)this.first?(this.is224?(o=300032,y=(i=w[0]-1413257819)-150054599|0,l=i+24177077|0):(o=704751109,y=(i=w[0]-210244248)-1521486534|0,l=i+143694565|0),this.first=!1):(e=(a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10),n=(o=a&c)^a&f^u,y=l+(i=y+(r=(p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+(p&d^~p&g)+eo[t]+w[t])|0,l=i+(e+n)|0),e=(l>>>2|l<<30)^(l>>>13|l<<19)^(l>>>22|l<<10),n=(s=l&a)^l&c^o,g=f+(i=g+(r=(y>>>6|y<<26)^(y>>>11|y<<21)^(y>>>25|y<<7))+(y&p^~y&d)+eo[t+1]+w[t+1])|0,e=((f=i+(e+n)|0)>>>2|f<<30)^(f>>>13|f<<19)^(f>>>22|f<<10),n=(h=f&l)^f&a^s,d=c+(i=d+(r=(g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7))+(g&y^~g&p)+eo[t+2]+w[t+2])|0,e=((c=i+(e+n)|0)>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10),n=(u=c&f)^c&l^h,p=a+(i=p+(r=(d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&g^~d&y)+eo[t+3]+w[t+3])|0,a=i+(e+n)|0,this.chromeBugWorkAround=!0;this.h0=this.h0+a|0,this.h1=this.h1+c|0,this.h2=this.h2+f|0,this.h3=this.h3+l|0,this.h4=this.h4+p|0,this.h5=this.h5+d|0,this.h6=this.h6+g|0,this.h7=this.h7+y|0},ao.prototype.hex=function(){this.finalize();var t=this.h0,e=this.h1,r=this.h2,n=this.h3,i=this.h4,o=this.h5,s=this.h6,h=this.h7,u=Xi[t>>>28&15]+Xi[t>>>24&15]+Xi[t>>>20&15]+Xi[t>>>16&15]+Xi[t>>>12&15]+Xi[t>>>8&15]+Xi[t>>>4&15]+Xi[15&t]+Xi[e>>>28&15]+Xi[e>>>24&15]+Xi[e>>>20&15]+Xi[e>>>16&15]+Xi[e>>>12&15]+Xi[e>>>8&15]+Xi[e>>>4&15]+Xi[15&e]+Xi[r>>>28&15]+Xi[r>>>24&15]+Xi[r>>>20&15]+Xi[r>>>16&15]+Xi[r>>>12&15]+Xi[r>>>8&15]+Xi[r>>>4&15]+Xi[15&r]+Xi[n>>>28&15]+Xi[n>>>24&15]+Xi[n>>>20&15]+Xi[n>>>16&15]+Xi[n>>>12&15]+Xi[n>>>8&15]+Xi[n>>>4&15]+Xi[15&n]+Xi[i>>>28&15]+Xi[i>>>24&15]+Xi[i>>>20&15]+Xi[i>>>16&15]+Xi[i>>>12&15]+Xi[i>>>8&15]+Xi[i>>>4&15]+Xi[15&i]+Xi[o>>>28&15]+Xi[o>>>24&15]+Xi[o>>>20&15]+Xi[o>>>16&15]+Xi[o>>>12&15]+Xi[o>>>8&15]+Xi[o>>>4&15]+Xi[15&o]+Xi[s>>>28&15]+Xi[s>>>24&15]+Xi[s>>>20&15]+Xi[s>>>16&15]+Xi[s>>>12&15]+Xi[s>>>8&15]+Xi[s>>>4&15]+Xi[15&s];return this.is224||(u+=Xi[h>>>28&15]+Xi[h>>>24&15]+Xi[h>>>20&15]+Xi[h>>>16&15]+Xi[h>>>12&15]+Xi[h>>>8&15]+Xi[h>>>4&15]+Xi[15&h]),u},ao.prototype.toString=ao.prototype.hex,ao.prototype.digest=function(){this.finalize();var t=this.h0,e=this.h1,r=this.h2,n=this.h3,i=this.h4,o=this.h5,s=this.h6,h=this.h7,u=[t>>>24&255,t>>>16&255,t>>>8&255,255&t,e>>>24&255,e>>>16&255,e>>>8&255,255&e,r>>>24&255,r>>>16&255,r>>>8&255,255&r,n>>>24&255,n>>>16&255,n>>>8&255,255&n,i>>>24&255,i>>>16&255,i>>>8&255,255&i,o>>>24&255,o>>>16&255,o>>>8&255,255&o,s>>>24&255,s>>>16&255,s>>>8&255,255&s];return this.is224||u.push(h>>>24&255,h>>>16&255,h>>>8&255,255&h),u},ao.prototype.array=ao.prototype.digest,ao.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(this.is224?28:32),e=new DataView(t);return e.setUint32(0,this.h0),e.setUint32(4,this.h1),e.setUint32(8,this.h2),e.setUint32(12,this.h3),e.setUint32(16,this.h4),e.setUint32(20,this.h5),e.setUint32(24,this.h6),this.is224||e.setUint32(28,this.h7),t},co.prototype=new ao,co.prototype.finalize=function(){if(ao.prototype.finalize.call(this),this.inner){this.inner=!1;var t=this.array();ao.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(t),ao.prototype.finalize.call(this)}};const fo=oo(),lo=oo(!0),po=uo(),go=uo(!0);function yo(t){return fo(t)}function wo(t){return lo(t)}function mo(t,e){return po(e,t)}function bo(t,e){return go(e,t)}
|
|
43
|
-
/*
|
|
44
|
-
* [js-sha512]{@link https://github.com/emn178/js-sha512}
|
|
45
|
-
*
|
|
46
|
-
* @version 0.9.0
|
|
47
|
-
* @author Chen, Yi-Cyuan [emn178@gmail.com]
|
|
48
|
-
* @copyright Chen, Yi-Cyuan 2014-2024
|
|
49
|
-
* @license MIT
|
|
50
|
-
*/var Ao="input is invalid type",vo="object"==typeof window,So=vo?window:{};So.JS_SHA512_NO_WINDOW&&(vo=!1);var Do=!vo&&"object"==typeof self;!So.JS_SHA512_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node?So=global:Do&&(So=self);var Eo=!So.JS_SHA512_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,Fo="0123456789abcdef".split(""),Mo=[-2147483648,8388608,32768,128],Bo=[24,16,8,0],Co=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],To=["hex","array","digest","arrayBuffer"],Oo=[],Io=Array.isArray;!So.JS_SHA512_NO_NODE_JS&&Io||(Io=function(t){return"[object Array]"===Object.prototype.toString.call(t)});var Ro=ArrayBuffer.isView;!Eo||!So.JS_SHA512_NO_ARRAY_BUFFER_IS_VIEW&&Ro||(Ro=function(t){return"object"==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});var _o=function(t){var e=typeof t;if("string"===e)return[t,!0];if("object"!==e||null===t)throw new Error(Ao);if(Eo&&t.constructor===ArrayBuffer)return[new Uint8Array(t),!1];if(!Io(t)&&!Ro(t))throw new Error(Ao);return[t,!1]},xo=function(t,e){return function(r){return new ko(e,!0).update(r)[t]()}},No=function(t){var e=xo("hex",t);e.create=function(){return new ko(t)},e.update=function(t){return e.create().update(t)};for(var r=0;r<To.length;++r){var n=To[r];e[n]=xo(n,t)}return e},Uo=function(t,e){return function(r,n){return new zo(r,e,!0).update(n)[t]()}},Po=function(t){var e=Uo("hex",t);e.create=function(e){return new zo(e,t)},e.update=function(t,r){return e.create(t).update(r)};for(var r=0;r<To.length;++r){var n=To[r];e[n]=Uo(n,t)}return e};function ko(t,e){e?(Oo[0]=Oo[1]=Oo[2]=Oo[3]=Oo[4]=Oo[5]=Oo[6]=Oo[7]=Oo[8]=Oo[9]=Oo[10]=Oo[11]=Oo[12]=Oo[13]=Oo[14]=Oo[15]=Oo[16]=Oo[17]=Oo[18]=Oo[19]=Oo[20]=Oo[21]=Oo[22]=Oo[23]=Oo[24]=Oo[25]=Oo[26]=Oo[27]=Oo[28]=Oo[29]=Oo[30]=Oo[31]=Oo[32]=0,this.blocks=Oo):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],384==t?(this.h0h=3418070365,this.h0l=3238371032,this.h1h=1654270250,this.h1l=914150663,this.h2h=2438529370,this.h2l=812702999,this.h3h=355462360,this.h3l=4144912697,this.h4h=1731405415,this.h4l=4290775857,this.h5h=2394180231,this.h5l=1750603025,this.h6h=3675008525,this.h6l=1694076839,this.h7h=1203062813,this.h7l=3204075428):256==t?(this.h0h=573645204,this.h0l=4230739756,this.h1h=2673172387,this.h1l=3360449730,this.h2h=596883563,this.h2l=1867755857,this.h3h=2520282905,this.h3l=1497426621,this.h4h=2519219938,this.h4l=2827943907,this.h5h=3193839141,this.h5l=1401305490,this.h6h=721525244,this.h6l=746961066,this.h7h=246885852,this.h7l=2177182882):224==t?(this.h0h=2352822216,this.h0l=424955298,this.h1h=1944164710,this.h1l=2312950998,this.h2h=502970286,this.h2l=855612546,this.h3h=1738396948,this.h3l=1479516111,this.h4h=258812777,this.h4l=2077511080,this.h5h=2011393907,this.h5l=79989058,this.h6h=1067287976,this.h6l=1780299464,this.h7h=286451373,this.h7l=2446758561):(this.h0h=1779033703,this.h0l=4089235720,this.h1h=3144134277,this.h1l=2227873595,this.h2h=1013904242,this.h2l=4271175723,this.h3h=2773480762,this.h3l=1595750129,this.h4h=1359893119,this.h4l=2917565137,this.h5h=2600822924,this.h5l=725511199,this.h6h=528734635,this.h6l=4215389547,this.h7h=1541459225,this.h7l=327033209),this.bits=t,this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1}function zo(t,e,r){var n=_o(t);if(t=n[0],n[1]){for(var i,o=[],s=t.length,h=0,u=0;u<s;++u)(i=t.charCodeAt(u))<128?o[h++]=i:i<2048?(o[h++]=192|i>>>6,o[h++]=128|63&i):i<55296||i>=57344?(o[h++]=224|i>>>12,o[h++]=128|i>>>6&63,o[h++]=128|63&i):(i=65536+((1023&i)<<10|1023&t.charCodeAt(++u)),o[h++]=240|i>>>18,o[h++]=128|i>>>12&63,o[h++]=128|i>>>6&63,o[h++]=128|63&i);t=o}t.length>128&&(t=new ko(e,!0).update(t).array());var a=[],c=[];for(u=0;u<128;++u){var f=t[u]||0;a[u]=92^f,c[u]=54^f}ko.call(this,e,r),this.update(c),this.oKeyPad=a,this.inner=!0,this.sharedMemory=r}ko.prototype.update=function(t){if(this.finalized)throw new Error("finalize already called");var e=_o(t);t=e[0];for(var r,n,i=e[1],o=0,s=t.length,h=this.blocks;o<s;){if(this.hashed&&(this.hashed=!1,h[0]=this.block,this.block=h[1]=h[2]=h[3]=h[4]=h[5]=h[6]=h[7]=h[8]=h[9]=h[10]=h[11]=h[12]=h[13]=h[14]=h[15]=h[16]=h[17]=h[18]=h[19]=h[20]=h[21]=h[22]=h[23]=h[24]=h[25]=h[26]=h[27]=h[28]=h[29]=h[30]=h[31]=h[32]=0),i)for(n=this.start;o<s&&n<128;++o)(r=t.charCodeAt(o))<128?h[n>>>2]|=r<<Bo[3&n++]:r<2048?(h[n>>>2]|=(192|r>>>6)<<Bo[3&n++],h[n>>>2]|=(128|63&r)<<Bo[3&n++]):r<55296||r>=57344?(h[n>>>2]|=(224|r>>>12)<<Bo[3&n++],h[n>>>2]|=(128|r>>>6&63)<<Bo[3&n++],h[n>>>2]|=(128|63&r)<<Bo[3&n++]):(r=65536+((1023&r)<<10|1023&t.charCodeAt(++o)),h[n>>>2]|=(240|r>>>18)<<Bo[3&n++],h[n>>>2]|=(128|r>>>12&63)<<Bo[3&n++],h[n>>>2]|=(128|r>>>6&63)<<Bo[3&n++],h[n>>>2]|=(128|63&r)<<Bo[3&n++]);else for(n=this.start;o<s&&n<128;++o)h[n>>>2]|=t[o]<<Bo[3&n++];this.lastByteIndex=n,this.bytes+=n-this.start,n>=128?(this.block=h[32],this.start=n-128,this.hash(),this.hashed=!0):this.start=n}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296|0,this.bytes=this.bytes%4294967296),this},ko.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex;t[32]=this.block,t[e>>>2]|=Mo[3&e],this.block=t[32],e>=112&&(this.hashed||this.hash(),t[0]=this.block,t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=t[16]=t[17]=t[18]=t[19]=t[20]=t[21]=t[22]=t[23]=t[24]=t[25]=t[26]=t[27]=t[28]=t[29]=t[30]=t[31]=t[32]=0),t[30]=this.hBytes<<3|this.bytes>>>29,t[31]=this.bytes<<3,this.hash()}},ko.prototype.hash=function(){var t,e,r,n,i,o,s,h,u,a,c,f,l,p,d,g,y,w,m,b,A,v,S,D,E,F=this.h0h,M=this.h0l,B=this.h1h,C=this.h1l,T=this.h2h,O=this.h2l,I=this.h3h,R=this.h3l,_=this.h4h,x=this.h4l,N=this.h5h,U=this.h5l,P=this.h6h,k=this.h6l,z=this.h7h,j=this.h7l,$=this.blocks;for(t=32;t<160;t+=2)e=((b=$[t-30])>>>1|(A=$[t-29])<<31)^(b>>>8|A<<24)^b>>>7,r=(A>>>1|b<<31)^(A>>>8|b<<24)^(A>>>7|b<<25),n=((b=$[t-4])>>>19|(A=$[t-3])<<13)^(A>>>29|b<<3)^b>>>6,i=(A>>>19|b<<13)^(b>>>29|A<<3)^(A>>>6|b<<26),b=$[t-32],A=$[t-31],u=((v=$[t-14])>>>16)+(b>>>16)+(e>>>16)+(n>>>16)+((h=(65535&v)+(65535&b)+(65535&e)+(65535&n)+((s=((S=$[t-13])>>>16)+(A>>>16)+(r>>>16)+(i>>>16)+((o=(65535&S)+(65535&A)+(65535&r)+(65535&i))>>>16))>>>16))>>>16),$[t]=u<<16|65535&h,$[t+1]=s<<16|65535&o;var L=F,q=M,H=B,Y=C,V=T,J=O,K=I,W=R,Z=_,Q=x,X=N,G=U,tt=P,et=k,rt=z,nt=j;for(g=H&V,y=Y&J,t=0;t<160;t+=8)e=(L>>>28|q<<4)^(q>>>2|L<<30)^(q>>>7|L<<25),r=(q>>>28|L<<4)^(L>>>2|q<<30)^(L>>>7|q<<25),n=(Z>>>14|Q<<18)^(Z>>>18|Q<<14)^(Q>>>9|Z<<23),i=(Q>>>14|Z<<18)^(Q>>>18|Z<<14)^(Z>>>9|Q<<23),w=(a=L&H)^L&V^g,m=(c=q&Y)^q&J^y,D=Z&X^~Z&tt,E=Q&G^~Q&et,b=$[t],A=$[t+1],b=(u=((v=Co[t])>>>16)+(b>>>16)+(D>>>16)+(n>>>16)+(rt>>>16)+((h=(65535&v)+(65535&b)+(65535&D)+(65535&n)+(65535&rt)+((s=((S=Co[t+1])>>>16)+(A>>>16)+(E>>>16)+(i>>>16)+(nt>>>16)+((o=(65535&S)+(65535&A)+(65535&E)+(65535&i)+(65535&nt))>>>16))>>>16))>>>16))<<16|65535&h,A=s<<16|65535&o,v=(u=(w>>>16)+(e>>>16)+((h=(65535&w)+(65535&e)+((s=(m>>>16)+(r>>>16)+((o=(65535&m)+(65535&r))>>>16))>>>16))>>>16))<<16|65535&h,S=s<<16|65535&o,rt=(u=(K>>>16)+(b>>>16)+((h=(65535&K)+(65535&b)+((s=(W>>>16)+(A>>>16)+((o=(65535&W)+(65535&A))>>>16))>>>16))>>>16))<<16|65535&h,nt=s<<16|65535&o,e=((K=(u=(v>>>16)+(b>>>16)+((h=(65535&v)+(65535&b)+((s=(S>>>16)+(A>>>16)+((o=(65535&S)+(65535&A))>>>16))>>>16))>>>16))<<16|65535&h)>>>28|(W=s<<16|65535&o)<<4)^(W>>>2|K<<30)^(W>>>7|K<<25),r=(W>>>28|K<<4)^(K>>>2|W<<30)^(K>>>7|W<<25),n=(rt>>>14|nt<<18)^(rt>>>18|nt<<14)^(nt>>>9|rt<<23),i=(nt>>>14|rt<<18)^(nt>>>18|rt<<14)^(rt>>>9|nt<<23),w=(f=K&L)^K&H^a,m=(l=W&q)^W&Y^c,D=rt&Z^~rt&X,E=nt&Q^~nt&G,b=$[t+2],A=$[t+3],b=(u=((v=Co[t+2])>>>16)+(b>>>16)+(D>>>16)+(n>>>16)+(tt>>>16)+((h=(65535&v)+(65535&b)+(65535&D)+(65535&n)+(65535&tt)+((s=((S=Co[t+3])>>>16)+(A>>>16)+(E>>>16)+(i>>>16)+(et>>>16)+((o=(65535&S)+(65535&A)+(65535&E)+(65535&i)+(65535&et))>>>16))>>>16))>>>16))<<16|65535&h,A=s<<16|65535&o,v=(u=(w>>>16)+(e>>>16)+((h=(65535&w)+(65535&e)+((s=(m>>>16)+(r>>>16)+((o=(65535&m)+(65535&r))>>>16))>>>16))>>>16))<<16|65535&h,S=s<<16|65535&o,tt=(u=(V>>>16)+(b>>>16)+((h=(65535&V)+(65535&b)+((s=(J>>>16)+(A>>>16)+((o=(65535&J)+(65535&A))>>>16))>>>16))>>>16))<<16|65535&h,et=s<<16|65535&o,e=((V=(u=(v>>>16)+(b>>>16)+((h=(65535&v)+(65535&b)+((s=(S>>>16)+(A>>>16)+((o=(65535&S)+(65535&A))>>>16))>>>16))>>>16))<<16|65535&h)>>>28|(J=s<<16|65535&o)<<4)^(J>>>2|V<<30)^(J>>>7|V<<25),r=(J>>>28|V<<4)^(V>>>2|J<<30)^(V>>>7|J<<25),n=(tt>>>14|et<<18)^(tt>>>18|et<<14)^(et>>>9|tt<<23),i=(et>>>14|tt<<18)^(et>>>18|tt<<14)^(tt>>>9|et<<23),w=(p=V&K)^V&L^f,m=(d=J&W)^J&q^l,D=tt&rt^~tt&Z,E=et&nt^~et&Q,b=$[t+4],A=$[t+5],b=(u=((v=Co[t+4])>>>16)+(b>>>16)+(D>>>16)+(n>>>16)+(X>>>16)+((h=(65535&v)+(65535&b)+(65535&D)+(65535&n)+(65535&X)+((s=((S=Co[t+5])>>>16)+(A>>>16)+(E>>>16)+(i>>>16)+(G>>>16)+((o=(65535&S)+(65535&A)+(65535&E)+(65535&i)+(65535&G))>>>16))>>>16))>>>16))<<16|65535&h,A=s<<16|65535&o,v=(u=(w>>>16)+(e>>>16)+((h=(65535&w)+(65535&e)+((s=(m>>>16)+(r>>>16)+((o=(65535&m)+(65535&r))>>>16))>>>16))>>>16))<<16|65535&h,S=s<<16|65535&o,X=(u=(H>>>16)+(b>>>16)+((h=(65535&H)+(65535&b)+((s=(Y>>>16)+(A>>>16)+((o=(65535&Y)+(65535&A))>>>16))>>>16))>>>16))<<16|65535&h,G=s<<16|65535&o,e=((H=(u=(v>>>16)+(b>>>16)+((h=(65535&v)+(65535&b)+((s=(S>>>16)+(A>>>16)+((o=(65535&S)+(65535&A))>>>16))>>>16))>>>16))<<16|65535&h)>>>28|(Y=s<<16|65535&o)<<4)^(Y>>>2|H<<30)^(Y>>>7|H<<25),r=(Y>>>28|H<<4)^(H>>>2|Y<<30)^(H>>>7|Y<<25),n=(X>>>14|G<<18)^(X>>>18|G<<14)^(G>>>9|X<<23),i=(G>>>14|X<<18)^(G>>>18|X<<14)^(X>>>9|G<<23),w=(g=H&V)^H&K^p,m=(y=Y&J)^Y&W^d,D=X&tt^~X&rt,E=G&et^~G&nt,b=$[t+6],A=$[t+7],b=(u=((v=Co[t+6])>>>16)+(b>>>16)+(D>>>16)+(n>>>16)+(Z>>>16)+((h=(65535&v)+(65535&b)+(65535&D)+(65535&n)+(65535&Z)+((s=((S=Co[t+7])>>>16)+(A>>>16)+(E>>>16)+(i>>>16)+(Q>>>16)+((o=(65535&S)+(65535&A)+(65535&E)+(65535&i)+(65535&Q))>>>16))>>>16))>>>16))<<16|65535&h,A=s<<16|65535&o,v=(u=(w>>>16)+(e>>>16)+((h=(65535&w)+(65535&e)+((s=(m>>>16)+(r>>>16)+((o=(65535&m)+(65535&r))>>>16))>>>16))>>>16))<<16|65535&h,S=s<<16|65535&o,Z=(u=(L>>>16)+(b>>>16)+((h=(65535&L)+(65535&b)+((s=(q>>>16)+(A>>>16)+((o=(65535&q)+(65535&A))>>>16))>>>16))>>>16))<<16|65535&h,Q=s<<16|65535&o,L=(u=(v>>>16)+(b>>>16)+((h=(65535&v)+(65535&b)+((s=(S>>>16)+(A>>>16)+((o=(65535&S)+(65535&A))>>>16))>>>16))>>>16))<<16|65535&h,q=s<<16|65535&o;u=(F>>>16)+(L>>>16)+((h=(65535&F)+(65535&L)+((s=(M>>>16)+(q>>>16)+((o=(65535&M)+(65535&q))>>>16))>>>16))>>>16),this.h0h=u<<16|65535&h,this.h0l=s<<16|65535&o,u=(B>>>16)+(H>>>16)+((h=(65535&B)+(65535&H)+((s=(C>>>16)+(Y>>>16)+((o=(65535&C)+(65535&Y))>>>16))>>>16))>>>16),this.h1h=u<<16|65535&h,this.h1l=s<<16|65535&o,u=(T>>>16)+(V>>>16)+((h=(65535&T)+(65535&V)+((s=(O>>>16)+(J>>>16)+((o=(65535&O)+(65535&J))>>>16))>>>16))>>>16),this.h2h=u<<16|65535&h,this.h2l=s<<16|65535&o,u=(I>>>16)+(K>>>16)+((h=(65535&I)+(65535&K)+((s=(R>>>16)+(W>>>16)+((o=(65535&R)+(65535&W))>>>16))>>>16))>>>16),this.h3h=u<<16|65535&h,this.h3l=s<<16|65535&o,u=(_>>>16)+(Z>>>16)+((h=(65535&_)+(65535&Z)+((s=(x>>>16)+(Q>>>16)+((o=(65535&x)+(65535&Q))>>>16))>>>16))>>>16),this.h4h=u<<16|65535&h,this.h4l=s<<16|65535&o,u=(N>>>16)+(X>>>16)+((h=(65535&N)+(65535&X)+((s=(U>>>16)+(G>>>16)+((o=(65535&U)+(65535&G))>>>16))>>>16))>>>16),this.h5h=u<<16|65535&h,this.h5l=s<<16|65535&o,u=(P>>>16)+(tt>>>16)+((h=(65535&P)+(65535&tt)+((s=(k>>>16)+(et>>>16)+((o=(65535&k)+(65535&et))>>>16))>>>16))>>>16),this.h6h=u<<16|65535&h,this.h6l=s<<16|65535&o,u=(z>>>16)+(rt>>>16)+((h=(65535&z)+(65535&rt)+((s=(j>>>16)+(nt>>>16)+((o=(65535&j)+(65535&nt))>>>16))>>>16))>>>16),this.h7h=u<<16|65535&h,this.h7l=s<<16|65535&o},ko.prototype.hex=function(){this.finalize();var t=this.h0h,e=this.h0l,r=this.h1h,n=this.h1l,i=this.h2h,o=this.h2l,s=this.h3h,h=this.h3l,u=this.h4h,a=this.h4l,c=this.h5h,f=this.h5l,l=this.h6h,p=this.h6l,d=this.h7h,g=this.h7l,y=this.bits,w=Fo[t>>>28&15]+Fo[t>>>24&15]+Fo[t>>>20&15]+Fo[t>>>16&15]+Fo[t>>>12&15]+Fo[t>>>8&15]+Fo[t>>>4&15]+Fo[15&t]+Fo[e>>>28&15]+Fo[e>>>24&15]+Fo[e>>>20&15]+Fo[e>>>16&15]+Fo[e>>>12&15]+Fo[e>>>8&15]+Fo[e>>>4&15]+Fo[15&e]+Fo[r>>>28&15]+Fo[r>>>24&15]+Fo[r>>>20&15]+Fo[r>>>16&15]+Fo[r>>>12&15]+Fo[r>>>8&15]+Fo[r>>>4&15]+Fo[15&r]+Fo[n>>>28&15]+Fo[n>>>24&15]+Fo[n>>>20&15]+Fo[n>>>16&15]+Fo[n>>>12&15]+Fo[n>>>8&15]+Fo[n>>>4&15]+Fo[15&n]+Fo[i>>>28&15]+Fo[i>>>24&15]+Fo[i>>>20&15]+Fo[i>>>16&15]+Fo[i>>>12&15]+Fo[i>>>8&15]+Fo[i>>>4&15]+Fo[15&i]+Fo[o>>>28&15]+Fo[o>>>24&15]+Fo[o>>>20&15]+Fo[o>>>16&15]+Fo[o>>>12&15]+Fo[o>>>8&15]+Fo[o>>>4&15]+Fo[15&o]+Fo[s>>>28&15]+Fo[s>>>24&15]+Fo[s>>>20&15]+Fo[s>>>16&15]+Fo[s>>>12&15]+Fo[s>>>8&15]+Fo[s>>>4&15]+Fo[15&s];return y>=256&&(w+=Fo[h>>>28&15]+Fo[h>>>24&15]+Fo[h>>>20&15]+Fo[h>>>16&15]+Fo[h>>>12&15]+Fo[h>>>8&15]+Fo[h>>>4&15]+Fo[15&h]),y>=384&&(w+=Fo[u>>>28&15]+Fo[u>>>24&15]+Fo[u>>>20&15]+Fo[u>>>16&15]+Fo[u>>>12&15]+Fo[u>>>8&15]+Fo[u>>>4&15]+Fo[15&u]+Fo[a>>>28&15]+Fo[a>>>24&15]+Fo[a>>>20&15]+Fo[a>>>16&15]+Fo[a>>>12&15]+Fo[a>>>8&15]+Fo[a>>>4&15]+Fo[15&a]+Fo[c>>>28&15]+Fo[c>>>24&15]+Fo[c>>>20&15]+Fo[c>>>16&15]+Fo[c>>>12&15]+Fo[c>>>8&15]+Fo[c>>>4&15]+Fo[15&c]+Fo[f>>>28&15]+Fo[f>>>24&15]+Fo[f>>>20&15]+Fo[f>>>16&15]+Fo[f>>>12&15]+Fo[f>>>8&15]+Fo[f>>>4&15]+Fo[15&f]),512==y&&(w+=Fo[l>>>28&15]+Fo[l>>>24&15]+Fo[l>>>20&15]+Fo[l>>>16&15]+Fo[l>>>12&15]+Fo[l>>>8&15]+Fo[l>>>4&15]+Fo[15&l]+Fo[p>>>28&15]+Fo[p>>>24&15]+Fo[p>>>20&15]+Fo[p>>>16&15]+Fo[p>>>12&15]+Fo[p>>>8&15]+Fo[p>>>4&15]+Fo[15&p]+Fo[d>>>28&15]+Fo[d>>>24&15]+Fo[d>>>20&15]+Fo[d>>>16&15]+Fo[d>>>12&15]+Fo[d>>>8&15]+Fo[d>>>4&15]+Fo[15&d]+Fo[g>>>28&15]+Fo[g>>>24&15]+Fo[g>>>20&15]+Fo[g>>>16&15]+Fo[g>>>12&15]+Fo[g>>>8&15]+Fo[g>>>4&15]+Fo[15&g]),w},ko.prototype.toString=ko.prototype.hex,ko.prototype.digest=function(){this.finalize();var t=this.h0h,e=this.h0l,r=this.h1h,n=this.h1l,i=this.h2h,o=this.h2l,s=this.h3h,h=this.h3l,u=this.h4h,a=this.h4l,c=this.h5h,f=this.h5l,l=this.h6h,p=this.h6l,d=this.h7h,g=this.h7l,y=this.bits,w=[t>>>24&255,t>>>16&255,t>>>8&255,255&t,e>>>24&255,e>>>16&255,e>>>8&255,255&e,r>>>24&255,r>>>16&255,r>>>8&255,255&r,n>>>24&255,n>>>16&255,n>>>8&255,255&n,i>>>24&255,i>>>16&255,i>>>8&255,255&i,o>>>24&255,o>>>16&255,o>>>8&255,255&o,s>>>24&255,s>>>16&255,s>>>8&255,255&s];return y>=256&&w.push(h>>>24&255,h>>>16&255,h>>>8&255,255&h),y>=384&&w.push(u>>>24&255,u>>>16&255,u>>>8&255,255&u,a>>>24&255,a>>>16&255,a>>>8&255,255&a,c>>>24&255,c>>>16&255,c>>>8&255,255&c,f>>>24&255,f>>>16&255,f>>>8&255,255&f),512==y&&w.push(l>>>24&255,l>>>16&255,l>>>8&255,255&l,p>>>24&255,p>>>16&255,p>>>8&255,255&p,d>>>24&255,d>>>16&255,d>>>8&255,255&d,g>>>24&255,g>>>16&255,g>>>8&255,255&g),w},ko.prototype.array=ko.prototype.digest,ko.prototype.arrayBuffer=function(){this.finalize();var t=this.bits,e=new ArrayBuffer(t/8),r=new DataView(e);return r.setUint32(0,this.h0h),r.setUint32(4,this.h0l),r.setUint32(8,this.h1h),r.setUint32(12,this.h1l),r.setUint32(16,this.h2h),r.setUint32(20,this.h2l),r.setUint32(24,this.h3h),t>=256&&r.setUint32(28,this.h3l),t>=384&&(r.setUint32(32,this.h4h),r.setUint32(36,this.h4l),r.setUint32(40,this.h5h),r.setUint32(44,this.h5l)),512==t&&(r.setUint32(48,this.h6h),r.setUint32(52,this.h6l),r.setUint32(56,this.h7h),r.setUint32(60,this.h7l)),e},ko.prototype.clone=function(){var t=new ko(this.bits,!1);return this.copyTo(t),t},ko.prototype.copyTo=function(t){var e=0,r=["h0h","h0l","h1h","h1l","h2h","h2l","h3h","h3l","h4h","h4l","h5h","h5l","h6h","h6l","h7h","h7l","start","bytes","hBytes","finalized","hashed","lastByteIndex"];for(e=0;e<r.length;++e)t[r[e]]=this[r[e]];for(e=0;e<this.blocks.length;++e)t.blocks[e]=this.blocks[e]},zo.prototype=new ko,zo.prototype.finalize=function(){if(ko.prototype.finalize.call(this),this.inner){this.inner=!1;var t=this.array();ko.call(this,this.bits,this.sharedMemory),this.update(this.oKeyPad),this.update(t),ko.prototype.finalize.call(this)}},zo.prototype.clone=function(){var t=new zo([],this.bits,!1);this.copyTo(t),t.inner=this.inner;for(var e=0;e<this.oKeyPad.length;++e)t.oKeyPad[e]=this.oKeyPad[e];return t};const jo=No(512),$o=No(384),Lo=No(256),qo=No(224),Ho=Po(512),Yo=Po(384),Vo=Po(256),Jo=Po(224);function Ko(t){return jo(t)}function Wo(t){return $o(t)}function Zo(t){return Lo(t)}function Qo(t){return qo(t)}function Xo(t,e){return Ho(e,t)}function Go(t,e){return Yo(e,t)}function ts(t,e){return Vo(e,t)}function es(t,e){return Jo(e,t)}
|
|
51
|
-
/**
|
|
52
|
-
* [js-sha3]{@link https://github.com/emn178/js-sha3}
|
|
53
|
-
*
|
|
54
|
-
* @version 0.9.3
|
|
55
|
-
* @author Chen, Yi-Cyuan [emn178@gmail.com]
|
|
56
|
-
* @copyright Chen, Yi-Cyuan 2015-2023
|
|
57
|
-
* @license MIT
|
|
58
|
-
*/var rs="input is invalid type",ns="object"==typeof window,is=ns?window:{};is.JS_SHA3_NO_WINDOW&&(ns=!1);var os=!ns&&"object"==typeof self;!is.JS_SHA3_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node?is=global:os&&(is=self);for(var ss=!is.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,hs="0123456789abcdef".split(""),us=[4,1024,262144,67108864],as=[0,8,16,24],cs=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],fs=[224,256,384,512],ls=[128,256],ps=["hex","buffer","arrayBuffer","array","digest"],ds={128:168,256:136},gs=is.JS_SHA3_NO_NODE_JS||!Array.isArray?function(t){return"[object Array]"===Object.prototype.toString.call(t)}:Array.isArray,ys=!ss||!is.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView?ArrayBuffer.isView:function(t){return"object"==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer},ws=function(t){var e=typeof t;if("string"===e)return[t,!0];if("object"!==e||null===t)throw new Error(rs);if(ss&&t.constructor===ArrayBuffer)return[new Uint8Array(t),!1];if(!gs(t)&&!ys(t))throw new Error(rs);return[t,!1]},ms=function(t){return 0===ws(t)[0].length},bs=function(t){for(var e=[],r=0;r<t.length;++r)e[r]=t[r];return e},As=function(t,e,r){return function(n){return new xs(t,e,t).update(n)[r]()}},vs=function(t,e,r){return function(n,i){return new xs(t,e,i).update(n)[r]()}},Ss=function(t,e,r){return function(e,n,i,o){return Bs["cshake"+t].update(e,n,i,o)[r]()}},Ds=function(t,e,r){return function(e,n,i,o){return Bs["kmac"+t].update(e,n,i,o)[r]()}},Es=function(t,e,r,n){for(var i=0;i<ps.length;++i){var o=ps[i];t[o]=e(r,n,o)}return t},Fs=function(t,e){var r=As(t,e,"hex");return r.create=function(){return new xs(t,e,t)},r.update=function(t){return r.create().update(t)},Es(r,As,t,e)},Ms=[{name:"keccak",padding:[1,256,65536,16777216],bits:fs,createMethod:Fs},{name:"sha3",padding:[6,1536,393216,100663296],bits:fs,createMethod:Fs},{name:"shake",padding:[31,7936,2031616,520093696],bits:ls,createMethod:function(t,e){var r=vs(t,e,"hex");return r.create=function(r){return new xs(t,e,r)},r.update=function(t,e){return r.create(e).update(t)},Es(r,vs,t,e)}},{name:"cshake",padding:us,bits:ls,createMethod:function(t,e){var r=ds[t],n=Ss(t,0,"hex");return n.create=function(n,i,o){return ms(i)&&ms(o)?Bs["shake"+t].create(n):new xs(t,e,n).bytepad([i,o],r)},n.update=function(t,e,r,i){return n.create(e,r,i).update(t)},Es(n,Ss,t,e)}},{name:"kmac",padding:us,bits:ls,createMethod:function(t,e){var r=ds[t],n=Ds(t,0,"hex");return n.create=function(n,i,o){return new Ns(t,e,i).bytepad(["KMAC",o],r).bytepad([n],r)},n.update=function(t,e,r,i){return n.create(t,r,i).update(e)},Es(n,Ds,t,e)}}],Bs={},Cs=0;Cs<Ms.length;++Cs)for(var Ts=Ms[Cs],Os=Ts.bits,Is=0;Is<Os.length;++Is){var Rs=Ts.name+"_"+Os[Is];if(Bs[Rs]=Ts.createMethod(Os[Is],Ts.padding),"sha3"!==Ts.name){var _s=Ts.name+Os[Is];Bs[_s]=Bs[Rs]}}function xs(t,e,r){this.blocks=[],this.s=[],this.padding=e,this.outputBits=r,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(t<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var n=0;n<50;++n)this.s[n]=0}function Ns(t,e,r){xs.call(this,t,e,r)}xs.prototype.update=function(t){if(this.finalized)throw new Error("finalize already called");var e=ws(t);t=e[0];for(var r,n,i=e[1],o=this.blocks,s=this.byteCount,h=t.length,u=this.blockCount,a=0,c=this.s;a<h;){if(this.reset)for(this.reset=!1,o[0]=this.block,r=1;r<u+1;++r)o[r]=0;if(i)for(r=this.start;a<h&&r<s;++a)(n=t.charCodeAt(a))<128?o[r>>2]|=n<<as[3&r++]:n<2048?(o[r>>2]|=(192|n>>6)<<as[3&r++],o[r>>2]|=(128|63&n)<<as[3&r++]):n<55296||n>=57344?(o[r>>2]|=(224|n>>12)<<as[3&r++],o[r>>2]|=(128|n>>6&63)<<as[3&r++],o[r>>2]|=(128|63&n)<<as[3&r++]):(n=65536+((1023&n)<<10|1023&t.charCodeAt(++a)),o[r>>2]|=(240|n>>18)<<as[3&r++],o[r>>2]|=(128|n>>12&63)<<as[3&r++],o[r>>2]|=(128|n>>6&63)<<as[3&r++],o[r>>2]|=(128|63&n)<<as[3&r++]);else for(r=this.start;a<h&&r<s;++a)o[r>>2]|=t[a]<<as[3&r++];if(this.lastByteIndex=r,r>=s){for(this.start=r-s,this.block=o[u],r=0;r<u;++r)c[r]^=o[r];Us(c),this.reset=!0}else this.start=r}return this},xs.prototype.encode=function(t,e){var r=255&t,n=1,i=[r];for(r=255&(t>>=8);r>0;)i.unshift(r),r=255&(t>>=8),++n;return e?i.push(n):i.unshift(n),this.update(i),i.length},xs.prototype.encodeString=function(t){var e=ws(t);t=e[0];var r=e[1],n=0,i=t.length;if(r)for(var o=0;o<t.length;++o){var s=t.charCodeAt(o);s<128?n+=1:s<2048?n+=2:s<55296||s>=57344?n+=3:(s=65536+((1023&s)<<10|1023&t.charCodeAt(++o)),n+=4)}else n=i;return n+=this.encode(8*n),this.update(t),n},xs.prototype.bytepad=function(t,e){for(var r=this.encode(e),n=0;n<t.length;++n)r+=this.encodeString(t[n]);var i=(e-r%e)%e,o=[];return o.length=i,this.update(o),this},xs.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex,r=this.blockCount,n=this.s;if(t[e>>2]|=this.padding[3&e],this.lastByteIndex===this.byteCount)for(t[0]=t[r],e=1;e<r+1;++e)t[e]=0;for(t[r-1]|=2147483648,e=0;e<r;++e)n[e]^=t[e];Us(n)}},xs.prototype.toString=xs.prototype.hex=function(){this.finalize();for(var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,s=0,h="";s<n;){for(o=0;o<e&&s<n;++o,++s)t=r[o],h+=hs[t>>4&15]+hs[15&t]+hs[t>>12&15]+hs[t>>8&15]+hs[t>>20&15]+hs[t>>16&15]+hs[t>>28&15]+hs[t>>24&15];s%e==0&&(r=bs(r),Us(r),o=0)}return i&&(t=r[o],h+=hs[t>>4&15]+hs[15&t],i>1&&(h+=hs[t>>12&15]+hs[t>>8&15]),i>2&&(h+=hs[t>>20&15]+hs[t>>16&15])),h},xs.prototype.arrayBuffer=function(){this.finalize();var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,s=0,h=this.outputBits>>3;t=i?new ArrayBuffer(n+1<<2):new ArrayBuffer(h);for(var u=new Uint32Array(t);s<n;){for(o=0;o<e&&s<n;++o,++s)u[s]=r[o];s%e==0&&(r=bs(r),Us(r))}return i&&(u[s]=r[o],t=t.slice(0,h)),t},xs.prototype.buffer=xs.prototype.arrayBuffer,xs.prototype.digest=xs.prototype.array=function(){this.finalize();for(var t,e,r=this.blockCount,n=this.s,i=this.outputBlocks,o=this.extraBytes,s=0,h=0,u=[];h<i;){for(s=0;s<r&&h<i;++s,++h)t=h<<2,e=n[s],u[t]=255&e,u[t+1]=e>>8&255,u[t+2]=e>>16&255,u[t+3]=e>>24&255;h%r==0&&(n=bs(n),Us(n))}return o&&(t=h<<2,e=n[s],u[t]=255&e,o>1&&(u[t+1]=e>>8&255),o>2&&(u[t+2]=e>>16&255)),u},Ns.prototype=new xs,Ns.prototype.finalize=function(){return this.encode(this.outputBits,!0),xs.prototype.finalize.call(this)};var Us=function(t){var e,r,n,i,o,s,h,u,a,c,f,l,p,d,g,y,w,m,b,A,v,S,D,E,F,M,B,C,T,O,I,R,_,x,N,U,P,k,z,j,$,L,q,H,Y,V,J,K,W,Z,Q,X,G,tt,et,rt,nt,it,ot,st,ht,ut,at;for(n=0;n<48;n+=2)i=t[0]^t[10]^t[20]^t[30]^t[40],o=t[1]^t[11]^t[21]^t[31]^t[41],s=t[2]^t[12]^t[22]^t[32]^t[42],h=t[3]^t[13]^t[23]^t[33]^t[43],u=t[4]^t[14]^t[24]^t[34]^t[44],a=t[5]^t[15]^t[25]^t[35]^t[45],c=t[6]^t[16]^t[26]^t[36]^t[46],f=t[7]^t[17]^t[27]^t[37]^t[47],e=(l=t[8]^t[18]^t[28]^t[38]^t[48])^(s<<1|h>>>31),r=(p=t[9]^t[19]^t[29]^t[39]^t[49])^(h<<1|s>>>31),t[0]^=e,t[1]^=r,t[10]^=e,t[11]^=r,t[20]^=e,t[21]^=r,t[30]^=e,t[31]^=r,t[40]^=e,t[41]^=r,e=i^(u<<1|a>>>31),r=o^(a<<1|u>>>31),t[2]^=e,t[3]^=r,t[12]^=e,t[13]^=r,t[22]^=e,t[23]^=r,t[32]^=e,t[33]^=r,t[42]^=e,t[43]^=r,e=s^(c<<1|f>>>31),r=h^(f<<1|c>>>31),t[4]^=e,t[5]^=r,t[14]^=e,t[15]^=r,t[24]^=e,t[25]^=r,t[34]^=e,t[35]^=r,t[44]^=e,t[45]^=r,e=u^(l<<1|p>>>31),r=a^(p<<1|l>>>31),t[6]^=e,t[7]^=r,t[16]^=e,t[17]^=r,t[26]^=e,t[27]^=r,t[36]^=e,t[37]^=r,t[46]^=e,t[47]^=r,e=c^(i<<1|o>>>31),r=f^(o<<1|i>>>31),t[8]^=e,t[9]^=r,t[18]^=e,t[19]^=r,t[28]^=e,t[29]^=r,t[38]^=e,t[39]^=r,t[48]^=e,t[49]^=r,d=t[0],g=t[1],V=t[11]<<4|t[10]>>>28,J=t[10]<<4|t[11]>>>28,C=t[20]<<3|t[21]>>>29,T=t[21]<<3|t[20]>>>29,st=t[31]<<9|t[30]>>>23,ht=t[30]<<9|t[31]>>>23,L=t[40]<<18|t[41]>>>14,q=t[41]<<18|t[40]>>>14,x=t[2]<<1|t[3]>>>31,N=t[3]<<1|t[2]>>>31,y=t[13]<<12|t[12]>>>20,w=t[12]<<12|t[13]>>>20,K=t[22]<<10|t[23]>>>22,W=t[23]<<10|t[22]>>>22,O=t[33]<<13|t[32]>>>19,I=t[32]<<13|t[33]>>>19,ut=t[42]<<2|t[43]>>>30,at=t[43]<<2|t[42]>>>30,tt=t[5]<<30|t[4]>>>2,et=t[4]<<30|t[5]>>>2,U=t[14]<<6|t[15]>>>26,P=t[15]<<6|t[14]>>>26,m=t[25]<<11|t[24]>>>21,b=t[24]<<11|t[25]>>>21,Z=t[34]<<15|t[35]>>>17,Q=t[35]<<15|t[34]>>>17,R=t[45]<<29|t[44]>>>3,_=t[44]<<29|t[45]>>>3,E=t[6]<<28|t[7]>>>4,F=t[7]<<28|t[6]>>>4,rt=t[17]<<23|t[16]>>>9,nt=t[16]<<23|t[17]>>>9,k=t[26]<<25|t[27]>>>7,z=t[27]<<25|t[26]>>>7,A=t[36]<<21|t[37]>>>11,v=t[37]<<21|t[36]>>>11,X=t[47]<<24|t[46]>>>8,G=t[46]<<24|t[47]>>>8,H=t[8]<<27|t[9]>>>5,Y=t[9]<<27|t[8]>>>5,M=t[18]<<20|t[19]>>>12,B=t[19]<<20|t[18]>>>12,it=t[29]<<7|t[28]>>>25,ot=t[28]<<7|t[29]>>>25,j=t[38]<<8|t[39]>>>24,$=t[39]<<8|t[38]>>>24,S=t[48]<<14|t[49]>>>18,D=t[49]<<14|t[48]>>>18,t[0]=d^~y&m,t[1]=g^~w&b,t[10]=E^~M&C,t[11]=F^~B&T,t[20]=x^~U&k,t[21]=N^~P&z,t[30]=H^~V&K,t[31]=Y^~J&W,t[40]=tt^~rt&it,t[41]=et^~nt&ot,t[2]=y^~m&A,t[3]=w^~b&v,t[12]=M^~C&O,t[13]=B^~T&I,t[22]=U^~k&j,t[23]=P^~z&$,t[32]=V^~K&Z,t[33]=J^~W&Q,t[42]=rt^~it&st,t[43]=nt^~ot&ht,t[4]=m^~A&S,t[5]=b^~v&D,t[14]=C^~O&R,t[15]=T^~I&_,t[24]=k^~j&L,t[25]=z^~$&q,t[34]=K^~Z&X,t[35]=W^~Q&G,t[44]=it^~st&ut,t[45]=ot^~ht&at,t[6]=A^~S&d,t[7]=v^~D&g,t[16]=O^~R&E,t[17]=I^~_&F,t[26]=j^~L&x,t[27]=$^~q&N,t[36]=Z^~X&H,t[37]=Q^~G&Y,t[46]=st^~ut&tt,t[47]=ht^~at&et,t[8]=S^~d&y,t[9]=D^~g&w,t[18]=R^~E&M,t[19]=_^~F&B,t[28]=L^~x&U,t[29]=q^~N&P,t[38]=X^~H&V,t[39]=G^~Y&J,t[48]=ut^~tt&rt,t[49]=at^~et&nt,t[0]^=cs[n],t[1]^=cs[n+1]};const Ps=Bs.sha3_512,ks=Bs.sha3_384,zs=Bs.sha3_256,js=Bs.sha3_224;function $s(t){return Ps(t)}function Ls(t){return ks(t)}function qs(t){return zs(t)}function Hs(t){return js(t)}var Ys;function Vs(t,e,r){null!=t&&("number"==typeof t?this.fromNumber(t,e,r):null==e&&"string"!=typeof t?this.fromString(t,256):this.fromString(t,e))}function Js(){return new Vs(null)}var Ks="undefined"!=typeof navigator;Ks&&"Microsoft Internet Explorer"==navigator.appName?(Vs.prototype.am=function(t,e,r,n,i,o){for(var s=32767&e,h=e>>15;--o>=0;){var u=32767&this[t],a=this[t++]>>15,c=h*u+a*s;i=((u=s*u+((32767&c)<<15)+r[n]+(1073741823&i))>>>30)+(c>>>15)+h*a+(i>>>30),r[n++]=1073741823&u}return i},Ys=30):Ks&&"Netscape"!=navigator.appName?(Vs.prototype.am=function(t,e,r,n,i,o){for(;--o>=0;){var s=e*this[t++]+r[n]+i;i=Math.floor(s/67108864),r[n++]=67108863&s}return i},Ys=26):(Vs.prototype.am=function(t,e,r,n,i,o){for(var s=16383&e,h=e>>14;--o>=0;){var u=16383&this[t],a=this[t++]>>14,c=h*u+a*s;i=((u=s*u+((16383&c)<<14)+r[n]+i)>>28)+(c>>14)+h*a,r[n++]=268435455&u}return i},Ys=28),Vs.prototype.DB=Ys,Vs.prototype.DM=(1<<Ys)-1,Vs.prototype.DV=1<<Ys;Vs.prototype.FV=Math.pow(2,52),Vs.prototype.F1=52-Ys,Vs.prototype.F2=2*Ys-52;var Ws,Zs,Qs="0123456789abcdefghijklmnopqrstuvwxyz",Xs=new Array;for(Ws="0".charCodeAt(0),Zs=0;Zs<=9;++Zs)Xs[Ws++]=Zs;for(Ws="a".charCodeAt(0),Zs=10;Zs<36;++Zs)Xs[Ws++]=Zs;for(Ws="A".charCodeAt(0),Zs=10;Zs<36;++Zs)Xs[Ws++]=Zs;function Gs(t){return Qs.charAt(t)}function th(t,e){var r=Xs[t.charCodeAt(e)];return null==r?-1:r}function eh(t){var e=Js();return e.fromInt(t),e}function rh(t){var e,r=1;return 0!=(e=t>>>16)&&(t=e,r+=16),0!=(e=t>>8)&&(t=e,r+=8),0!=(e=t>>4)&&(t=e,r+=4),0!=(e=t>>2)&&(t=e,r+=2),0!=(e=t>>1)&&(t=e,r+=1),r}function nh(t){this.m=t}function ih(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}function oh(t,e){return t&e}function sh(t,e){return t|e}function hh(t,e){return t^e}function uh(t,e){return t&~e}function ah(t){if(0==t)return-1;var e=0;return 65535&t||(t>>=16,e+=16),255&t||(t>>=8,e+=8),15&t||(t>>=4,e+=4),3&t||(t>>=2,e+=2),1&t||++e,e}function ch(t){for(var e=0;0!=t;)t&=t-1,++e;return e}function fh(){}function lh(t){return t}function ph(t){this.r2=Js(),this.q3=Js(),Vs.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t),this.m=t}nh.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},nh.prototype.revert=function(t){return t},nh.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},nh.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},nh.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},ih.prototype.convert=function(t){var e=Js();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(Vs.ZERO)>0&&this.m.subTo(e,e),e},ih.prototype.revert=function(t){var e=Js();return t.copyTo(e),this.reduce(e),e},ih.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var r=32767&t[e],n=r*this.mpl+((r*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;for(t[r=e+this.m.t]+=this.m.am(0,n,t,e,0,this.m.t);t[r]>=t.DV;)t[r]-=t.DV,t[++r]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},ih.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},ih.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},Vs.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},Vs.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},Vs.prototype.fromString=function(t,e){var r;if(16==e)r=4;else if(8==e)r=3;else if(256==e)r=8;else if(2==e)r=1;else if(32==e)r=5;else{if(4!=e)return void this.fromRadix(t,e);r=2}this.t=0,this.s=0;for(var n=t.length,i=!1,o=0;--n>=0;){var s=8==r?255&t[n]:th(t,n);s<0?"-"==t.charAt(n)&&(i=!0):(i=!1,0==o?this[this.t++]=s:o+r>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+=r)>=this.DB&&(o-=this.DB))}8==r&&128&t[0]&&(this.s=-1,o>0&&(this[this.t-1]|=(1<<this.DB-o)-1<<o)),this.clamp(),i&&Vs.ZERO.subTo(this,this)},Vs.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},Vs.prototype.dlShiftTo=function(t,e){var r;for(r=this.t-1;r>=0;--r)e[r+t]=this[r];for(r=t-1;r>=0;--r)e[r]=0;e.t=this.t+t,e.s=this.s},Vs.prototype.drShiftTo=function(t,e){for(var r=t;r<this.t;++r)e[r-t]=this[r];e.t=Math.max(this.t-t,0),e.s=this.s},Vs.prototype.lShiftTo=function(t,e){var r,n=t%this.DB,i=this.DB-n,o=(1<<i)-1,s=Math.floor(t/this.DB),h=this.s<<n&this.DM;for(r=this.t-1;r>=0;--r)e[r+s+1]=this[r]>>i|h,h=(this[r]&o)<<n;for(r=s-1;r>=0;--r)e[r]=0;e[s]=h,e.t=this.t+s+1,e.s=this.s,e.clamp()},Vs.prototype.rShiftTo=function(t,e){e.s=this.s;var r=Math.floor(t/this.DB);if(r>=this.t)e.t=0;else{var n=t%this.DB,i=this.DB-n,o=(1<<n)-1;e[0]=this[r]>>n;for(var s=r+1;s<this.t;++s)e[s-r-1]|=(this[s]&o)<<i,e[s-r]=this[s]>>n;n>0&&(e[this.t-r-1]|=(this.s&o)<<i),e.t=this.t-r,e.clamp()}},Vs.prototype.subTo=function(t,e){for(var r=0,n=0,i=Math.min(t.t,this.t);r<i;)n+=this[r]-t[r],e[r++]=n&this.DM,n>>=this.DB;if(t.t<this.t){for(n-=t.s;r<this.t;)n+=this[r],e[r++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;r<t.t;)n-=t[r],e[r++]=n&this.DM,n>>=this.DB;n-=t.s}e.s=n<0?-1:0,n<-1?e[r++]=this.DV+n:n>0&&(e[r++]=n),e.t=r,e.clamp()},Vs.prototype.multiplyTo=function(t,e){var r=this.abs(),n=t.abs(),i=r.t;for(e.t=i+n.t;--i>=0;)e[i]=0;for(i=0;i<n.t;++i)e[i+r.t]=r.am(0,n[i],e,i,0,r.t);e.s=0,e.clamp(),this.s!=t.s&&Vs.ZERO.subTo(e,e)},Vs.prototype.squareTo=function(t){for(var e=this.abs(),r=t.t=2*e.t;--r>=0;)t[r]=0;for(r=0;r<e.t-1;++r){var n=e.am(r,e[r],t,2*r,0,1);(t[r+e.t]+=e.am(r+1,2*e[r],t,2*r+1,n,e.t-r-1))>=e.DV&&(t[r+e.t]-=e.DV,t[r+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(r,e[r],t,2*r,0,1)),t.s=0,t.clamp()},Vs.prototype.divRemTo=function(t,e,r){var n=t.abs();if(!(n.t<=0)){var i=this.abs();if(i.t<n.t)return null!=e&&e.fromInt(0),void(null!=r&&this.copyTo(r));null==r&&(r=Js());var o=Js(),s=this.s,h=t.s,u=this.DB-rh(n[n.t-1]);u>0?(n.lShiftTo(u,o),i.lShiftTo(u,r)):(n.copyTo(o),i.copyTo(r));var a=o.t,c=o[a-1];if(0!=c){var f=c*(1<<this.F1)+(a>1?o[a-2]>>this.F2:0),l=this.FV/f,p=(1<<this.F1)/f,d=1<<this.F2,g=r.t,y=g-a,w=null==e?Js():e;for(o.dlShiftTo(y,w),r.compareTo(w)>=0&&(r[r.t++]=1,r.subTo(w,r)),Vs.ONE.dlShiftTo(a,w),w.subTo(o,o);o.t<a;)o[o.t++]=0;for(;--y>=0;){var m=r[--g]==c?this.DM:Math.floor(r[g]*l+(r[g-1]+d)*p);if((r[g]+=o.am(0,m,r,y,0,a))<m)for(o.dlShiftTo(y,w),r.subTo(w,r);r[g]<--m;)r.subTo(w,r)}null!=e&&(r.drShiftTo(a,e),s!=h&&Vs.ZERO.subTo(e,e)),r.t=a,r.clamp(),u>0&&r.rShiftTo(u,r),s<0&&Vs.ZERO.subTo(r,r)}}},Vs.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(!(1&t))return 0;var e=3&t;return(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)>0?this.DV-e:-e},Vs.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},Vs.prototype.exp=function(t,e){if(t>4294967295||t<1)return Vs.ONE;var r=Js(),n=Js(),i=e.convert(this),o=rh(t)-1;for(i.copyTo(r);--o>=0;)if(e.sqrTo(r,n),(t&1<<o)>0)e.mulTo(n,i,r);else{var s=r;r=n,n=s}return e.revert(r)},Vs.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 r,n=(1<<e)-1,i=!1,o="",s=this.t,h=this.DB-s*this.DB%e;if(s-- >0)for(h<this.DB&&(r=this[s]>>h)>0&&(i=!0,o=Gs(r));s>=0;)h<e?(r=(this[s]&(1<<h)-1)<<e-h,r|=this[--s]>>(h+=this.DB-e)):(r=this[s]>>(h-=e)&n,h<=0&&(h+=this.DB,--s)),r>0&&(i=!0),i&&(o+=Gs(r));return i?o:"0"},Vs.prototype.negate=function(){var t=Js();return Vs.ZERO.subTo(this,t),t},Vs.prototype.abs=function(){return this.s<0?this.negate():this},Vs.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var r=this.t;if(0!=(e=r-t.t))return this.s<0?-e:e;for(;--r>=0;)if(0!=(e=this[r]-t[r]))return e;return 0},Vs.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+rh(this[this.t-1]^this.s&this.DM)},Vs.prototype.mod=function(t){var e=Js();return this.abs().divRemTo(t,null,e),this.s<0&&e.compareTo(Vs.ZERO)>0&&t.subTo(e,e),e},Vs.prototype.modPowInt=function(t,e){var r;return r=t<256||e.isEven()?new nh(e):new ih(e),this.exp(t,r)},Vs.ZERO=eh(0),Vs.ONE=eh(1),fh.prototype.convert=lh,fh.prototype.revert=lh,fh.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r)},fh.prototype.sqrTo=function(t,e){t.squareTo(e)},ph.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=Js();return t.copyTo(e),this.reduce(e),e},ph.prototype.revert=function(t){return t},ph.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);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},ph.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},ph.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)};var dh,gh,yh,wh=[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],mh=(1<<26)/wh[wh.length-1];function bh(){var t;t=(new Date).getTime(),gh[yh++]^=255&t,gh[yh++]^=t>>8&255,gh[yh++]^=t>>16&255,gh[yh++]^=t>>24&255,yh>=Mh&&(yh-=Mh)}if(Vs.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},Vs.prototype.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||t>36)return"0";var e=this.chunkSize(t),r=Math.pow(t,e),n=eh(r),i=Js(),o=Js(),s="";for(this.divRemTo(n,i,o);i.signum()>0;)s=(r+o.intValue()).toString(t).substr(1)+s,i.divRemTo(n,i,o);return o.intValue().toString(t)+s},Vs.prototype.fromRadix=function(t,e){this.fromInt(0),null==e&&(e=10);for(var r=this.chunkSize(e),n=Math.pow(e,r),i=!1,o=0,s=0,h=0;h<t.length;++h){var u=th(t,h);u<0?"-"==t.charAt(h)&&0==this.signum()&&(i=!0):(s=e*s+u,++o>=r&&(this.dMultiply(n),this.dAddOffset(s,0),o=0,s=0))}o>0&&(this.dMultiply(Math.pow(e,o)),this.dAddOffset(s,0)),i&&Vs.ZERO.subTo(this,this)},Vs.prototype.fromNumber=function(t,e,r){if("number"==typeof e)if(t<2)this.fromInt(1);else for(this.fromNumber(t,r),this.testBit(t-1)||this.bitwiseTo(Vs.ONE.shiftLeft(t-1),sh,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(e);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(Vs.ONE.shiftLeft(t-1),this);else{var n=new Array,i=7&t;n.length=1+(t>>3),e.nextBytes(n),i>0?n[0]&=(1<<i)-1:n[0]=0,this.fromString(n,256)}},Vs.prototype.bitwiseTo=function(t,e,r){var n,i,o=Math.min(t.t,this.t);for(n=0;n<o;++n)r[n]=e(this[n],t[n]);if(t.t<this.t){for(i=t.s&this.DM,n=o;n<this.t;++n)r[n]=e(this[n],i);r.t=this.t}else{for(i=this.s&this.DM,n=o;n<t.t;++n)r[n]=e(i,t[n]);r.t=t.t}r.s=e(this.s,t.s),r.clamp()},Vs.prototype.changeBit=function(t,e){var r=Vs.ONE.shiftLeft(t);return this.bitwiseTo(r,e,r),r},Vs.prototype.addTo=function(t,e){for(var r=0,n=0,i=Math.min(t.t,this.t);r<i;)n+=this[r]+t[r],e[r++]=n&this.DM,n>>=this.DB;if(t.t<this.t){for(n+=t.s;r<this.t;)n+=this[r],e[r++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;r<t.t;)n+=t[r],e[r++]=n&this.DM,n>>=this.DB;n+=t.s}e.s=n<0?-1:0,n>0?e[r++]=n:n<-1&&(e[r++]=this.DV+n),e.t=r,e.clamp()},Vs.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},Vs.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]}},Vs.prototype.multiplyLowerTo=function(t,e,r){var n,i=Math.min(this.t+t.t,e);for(r.s=0,r.t=i;i>0;)r[--i]=0;for(n=r.t-this.t;i<n;++i)r[i+this.t]=this.am(0,t[i],r,i,0,this.t);for(n=Math.min(t.t,e);i<n;++i)this.am(0,t[i],r,i,0,e-i);r.clamp()},Vs.prototype.multiplyUpperTo=function(t,e,r){--e;var n=r.t=this.t+t.t-e;for(r.s=0;--n>=0;)r[n]=0;for(n=Math.max(e-this.t,0);n<t.t;++n)r[this.t+n-e]=this.am(e-n,t[n],r,0,0,this.t+n-e);r.clamp(),r.drShiftTo(1,r)},Vs.prototype.modInt=function(t){if(t<=0)return 0;var e=this.DV%t,r=this.s<0?t-1:0;if(this.t>0)if(0==e)r=this[0]%t;else for(var n=this.t-1;n>=0;--n)r=(e*r+this[n])%t;return r},Vs.prototype.millerRabin=function(t){var e=this.subtract(Vs.ONE),r=e.getLowestSetBit();if(r<=0)return!1;var n=e.shiftRight(r);(t=t+1>>1)>wh.length&&(t=wh.length);for(var i=Js(),o=0;o<t;++o){i.fromInt(wh[Math.floor(Math.random()*wh.length)]);var s=i.modPow(n,this);if(0!=s.compareTo(Vs.ONE)&&0!=s.compareTo(e)){for(var h=1;h++<r&&0!=s.compareTo(e);)if(0==(s=s.modPowInt(2,this)).compareTo(Vs.ONE))return!1;if(0!=s.compareTo(e))return!1}}return!0},Vs.prototype.clone=function(){var t=Js();return this.copyTo(t),t},Vs.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]},Vs.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},Vs.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},Vs.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},Vs.prototype.toByteArray=function(){var t=this.t,e=new Array;e[0]=this.s;var r,n=this.DB-t*this.DB%8,i=0;if(t-- >0)for(n<this.DB&&(r=this[t]>>n)!=(this.s&this.DM)>>n&&(e[i++]=r|this.s<<this.DB-n);t>=0;)n<8?(r=(this[t]&(1<<n)-1)<<8-n,r|=this[--t]>>(n+=this.DB-8)):(r=this[t]>>(n-=8)&255,n<=0&&(n+=this.DB,--t)),128&r&&(r|=-256),0==i&&(128&this.s)!=(128&r)&&++i,(i>0||r!=this.s)&&(e[i++]=r);return e},Vs.prototype.equals=function(t){return 0==this.compareTo(t)},Vs.prototype.min=function(t){return this.compareTo(t)<0?this:t},Vs.prototype.max=function(t){return this.compareTo(t)>0?this:t},Vs.prototype.and=function(t){var e=Js();return this.bitwiseTo(t,oh,e),e},Vs.prototype.or=function(t){var e=Js();return this.bitwiseTo(t,sh,e),e},Vs.prototype.xor=function(t){var e=Js();return this.bitwiseTo(t,hh,e),e},Vs.prototype.andNot=function(t){var e=Js();return this.bitwiseTo(t,uh,e),e},Vs.prototype.not=function(){for(var t=Js(),e=0;e<this.t;++e)t[e]=this.DM&~this[e];return t.t=this.t,t.s=~this.s,t},Vs.prototype.shiftLeft=function(t){var e=Js();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},Vs.prototype.shiftRight=function(t){var e=Js();return t<0?this.lShiftTo(-t,e):this.rShiftTo(t,e),e},Vs.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(0!=this[t])return t*this.DB+ah(this[t]);return this.s<0?this.t*this.DB:-1},Vs.prototype.bitCount=function(){for(var t=0,e=this.s&this.DM,r=0;r<this.t;++r)t+=ch(this[r]^e);return t},Vs.prototype.testBit=function(t){var e=Math.floor(t/this.DB);return e>=this.t?0!=this.s:!!(this[e]&1<<t%this.DB)},Vs.prototype.setBit=function(t){return this.changeBit(t,sh)},Vs.prototype.clearBit=function(t){return this.changeBit(t,uh)},Vs.prototype.flipBit=function(t){return this.changeBit(t,hh)},Vs.prototype.add=function(t){var e=Js();return this.addTo(t,e),e},Vs.prototype.subtract=function(t){var e=Js();return this.subTo(t,e),e},Vs.prototype.multiply=function(t){var e=Js();return this.multiplyTo(t,e),e},Vs.prototype.divide=function(t){var e=Js();return this.divRemTo(t,e,null),e},Vs.prototype.remainder=function(t){var e=Js();return this.divRemTo(t,null,e),e},Vs.prototype.divideAndRemainder=function(t){var e=Js(),r=Js();return this.divRemTo(t,e,r),new Array(e,r)},Vs.prototype.modPow=function(t,e){var r,n,i=t.bitLength(),o=eh(1);if(i<=0)return o;r=i<18?1:i<48?3:i<144?4:i<768?5:6,n=i<8?new nh(e):e.isEven()?new ph(e):new ih(e);var s=new Array,h=3,u=r-1,a=(1<<r)-1;if(s[1]=n.convert(this),r>1){var c=Js();for(n.sqrTo(s[1],c);h<=a;)s[h]=Js(),n.mulTo(c,s[h-2],s[h]),h+=2}var f,l,p=t.t-1,d=!0,g=Js();for(i=rh(t[p])-1;p>=0;){for(i>=u?f=t[p]>>i-u&a:(f=(t[p]&(1<<i+1)-1)<<u-i,p>0&&(f|=t[p-1]>>this.DB+i-u)),h=r;!(1&f);)f>>=1,--h;if((i-=h)<0&&(i+=this.DB,--p),d)s[f].copyTo(o),d=!1;else{for(;h>1;)n.sqrTo(o,g),n.sqrTo(g,o),h-=2;h>0?n.sqrTo(o,g):(l=o,o=g,g=l),n.mulTo(g,s[f],o)}for(;p>=0&&!(t[p]&1<<i);)n.sqrTo(o,g),l=o,o=g,g=l,--i<0&&(i=this.DB-1,--p)}return n.revert(o)},Vs.prototype.modInverse=function(t){var e=t.isEven();if(this.isEven()&&e||0==t.signum())return Vs.ZERO;for(var r=t.clone(),n=this.clone(),i=eh(1),o=eh(0),s=eh(0),h=eh(1);0!=r.signum();){for(;r.isEven();)r.rShiftTo(1,r),e?(i.isEven()&&o.isEven()||(i.addTo(this,i),o.subTo(t,o)),i.rShiftTo(1,i)):o.isEven()||o.subTo(t,o),o.rShiftTo(1,o);for(;n.isEven();)n.rShiftTo(1,n),e?(s.isEven()&&h.isEven()||(s.addTo(this,s),h.subTo(t,h)),s.rShiftTo(1,s)):h.isEven()||h.subTo(t,h),h.rShiftTo(1,h);r.compareTo(n)>=0?(r.subTo(n,r),e&&i.subTo(s,i),o.subTo(h,o)):(n.subTo(r,n),e&&s.subTo(i,s),h.subTo(o,h))}return 0!=n.compareTo(Vs.ONE)?Vs.ZERO:h.compareTo(t)>=0?h.subtract(t):h.signum()<0?(h.addTo(t,h),h.signum()<0?h.add(t):h):h},Vs.prototype.pow=function(t){return this.exp(t,new fh)},Vs.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),r=t.s<0?t.negate():t.clone();if(e.compareTo(r)<0){var n=e;e=r,r=n}var i=e.getLowestSetBit(),o=r.getLowestSetBit();if(o<0)return e;for(i<o&&(o=i),o>0&&(e.rShiftTo(o,e),r.rShiftTo(o,r));e.signum()>0;)(i=e.getLowestSetBit())>0&&e.rShiftTo(i,e),(i=r.getLowestSetBit())>0&&r.rShiftTo(i,r),e.compareTo(r)>=0?(e.subTo(r,e),e.rShiftTo(1,e)):(r.subTo(e,r),r.rShiftTo(1,r));return o>0&&r.lShiftTo(o,r),r},Vs.prototype.isProbablePrime=function(t){var e,r=this.abs();if(1==r.t&&r[0]<=wh[wh.length-1]){for(e=0;e<wh.length;++e)if(r[0]==wh[e])return!0;return!1}if(r.isEven())return!1;for(e=1;e<wh.length;){for(var n=wh[e],i=e+1;i<wh.length&&n<mh;)n*=wh[i++];for(n=r.modInt(n);e<i;)if(n%wh[e++]==0)return!1}return r.millerRabin(t)},Vs.prototype.square=function(){var t=Js();return this.squareTo(t),t},Vs.prototype.Barrett=ph,null==gh){var Ah;if(gh=new Array,yh=0,"undefined"!=typeof window&&window.crypto)if(window.crypto.getRandomValues){var vh=new Uint8Array(32);for(window.crypto.getRandomValues(vh),Ah=0;Ah<32;++Ah)gh[yh++]=vh[Ah]}else if("Netscape"==navigator.appName&&navigator.appVersion<"5"){var Sh=window.crypto.random(32);for(Ah=0;Ah<Sh.length;++Ah)gh[yh++]=255&Sh.charCodeAt(Ah)}for(;yh<Mh;)Ah=Math.floor(65536*Math.random()),gh[yh++]=Ah>>>8,gh[yh++]=255&Ah;yh=0,bh()}function Dh(){if(null==dh){for(bh(),(dh=new Fh).init(gh),yh=0;yh<gh.length;++yh)gh[yh]=0;yh=0}return dh.next()}function Eh(){}function Fh(){this.i=0,this.j=0,this.S=new Array}Eh.prototype.nextBytes=function(t){var e;for(e=0;e<t.length;++e)t[e]=Dh()},Fh.prototype.init=function(t){var e,r,n;for(e=0;e<256;++e)this.S[e]=e;for(r=0,e=0;e<256;++e)r=r+this.S[e]+t[e%t.length]&255,n=this.S[e],this.S[e]=this.S[r],this.S[r]=n;this.i=0,this.j=0},Fh.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]};var Mh=256,Bh=Object.freeze({__proto__:null,BigInteger:Vs,SecureRandom:Eh});const{BigInteger:Ch}=Bh;class Th{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 t=this.v.length/2;let e=t.toString(16);if(e.length%2==1&&(e="0"+e),t<128)return e;return(128+e.length/2).toString(16)+e}getValue(){return""}}class Oh extends Th{constructor(t){super(),this.t="02",t&&(this.v=function(t){let e=t.toString(16);if("-"!==e[0])e.length%2==1?e="0"+e:e.match(/^[0-7]/)||(e="00"+e);else{e=e.substr(1);let r=e.length;r%2==1?r+=1:e.match(/^[0-7]/)||(r+=2);let n="";for(let t=0;t<r;t++)n+="f";n=new Ch(n,16),e=n.xor(t).add(Ch.ONE),e=e.toString(16).replace(/^-/,"")}return e}(t))}getValue(){return this.v}}class Ih extends Th{constructor(t){super(),this.t="30",this.asn1Array=t}getValue(){return this.v=this.asn1Array.map((t=>t.getEncodedHex())).join(""),this.v}}function Rh(t,e){return+t[e+2]<8?1:128&+t.substr(e+2,2)}function _h(t,e){const r=Rh(t,e),n=t.substr(e+2,2*r);if(!n)return-1;return(+n[0]<8?new Ch(n,16):new Ch(n.substr(2),16)).intValue()}function xh(t,e){return e+2*(Rh(t,e)+1)}var Nh=Object.freeze({__proto__:null,decodeDer:function(t){const e=xh(t,0),r=xh(t,e),n=_h(t,e),i=t.substr(r,2*n),o=r+i.length,s=xh(t,o),h=_h(t,o),u=t.substr(s,2*h);return{r:new Ch(i,16),s:new Ch(u,16)}},encodeDer:function(t,e){const r=new Oh(t),n=new Oh(e);return new Ih([r,n]).getEncodedHex()}});const{BigInteger:Uh}=Bh,Ph=new Uh("2"),kh=new Uh("3");class zh{constructor(t,e){this.x=e,this.q=t}equals(t){return t===this||this.q.equals(t.q)&&this.x.equals(t.x)}toBigInteger(){return this.x}negate(){return new zh(this.q,this.x.negate().mod(this.q))}add(t){return new zh(this.q,this.x.add(t.toBigInteger()).mod(this.q))}subtract(t){return new zh(this.q,this.x.subtract(t.toBigInteger()).mod(this.q))}multiply(t){return new zh(this.q,this.x.multiply(t.toBigInteger()).mod(this.q))}divide(t){return new zh(this.q,this.x.multiply(t.toBigInteger().modInverse(this.q)).mod(this.q))}square(){return new zh(this.q,this.x.square().mod(this.q))}}class jh{constructor(t,e,r,n){this.curve=t,this.x=e,this.y=r,this.z=null==n?Uh.ONE:n,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(t){if(t===this)return!0;if(this.isInfinity())return t.isInfinity();if(t.isInfinity())return this.isInfinity();if(!t.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(t.z)).mod(this.curve.q).equals(Uh.ZERO))return!1;return t.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(t.z)).mod(this.curve.q).equals(Uh.ZERO)}isInfinity(){return null===this.x&&null===this.y||this.z.equals(Uh.ZERO)&&!this.y.toBigInteger().equals(Uh.ZERO)}negate(){return new jh(this.curve,this.x,this.y.negate(),this.z)}add(t){if(this.isInfinity())return t;if(t.isInfinity())return this;const e=this.x.toBigInteger(),r=this.y.toBigInteger(),n=this.z,i=t.x.toBigInteger(),o=t.y.toBigInteger(),s=t.z,h=this.curve.q,u=e.multiply(s).mod(h),a=i.multiply(n).mod(h),c=u.subtract(a),f=r.multiply(s).mod(h),l=o.multiply(n).mod(h),p=f.subtract(l);if(Uh.ZERO.equals(c))return Uh.ZERO.equals(p)?this.twice():this.curve.infinity;const d=u.add(a),g=n.multiply(s).mod(h),y=c.square().mod(h),w=c.multiply(y).mod(h),m=g.multiply(p.square()).subtract(d.multiply(y)).mod(h),b=c.multiply(m).mod(h),A=p.multiply(y.multiply(u).subtract(m)).subtract(f.multiply(w)).mod(h),v=w.multiply(g).mod(h);return new jh(this.curve,this.curve.fromBigInteger(b),this.curve.fromBigInteger(A),v)}twice(){if(this.isInfinity())return this;if(!this.y.toBigInteger().signum())return this.curve.infinity;const t=this.x.toBigInteger(),e=this.y.toBigInteger(),r=this.z,n=this.curve.q,i=this.curve.a.toBigInteger(),o=t.square().multiply(kh).add(i.multiply(r.square())).mod(n),s=e.shiftLeft(1).multiply(r).mod(n),h=e.square().mod(n),u=h.multiply(t).multiply(r).mod(n),a=s.square().mod(n),c=o.square().subtract(u.shiftLeft(3)).mod(n),f=s.multiply(c).mod(n),l=o.multiply(u.shiftLeft(2).subtract(c)).subtract(a.shiftLeft(1).multiply(h)).mod(n),p=s.multiply(a).mod(n);return new jh(this.curve,this.curve.fromBigInteger(f),this.curve.fromBigInteger(l),p)}multiply(t){if(this.isInfinity())return this;if(!t.signum())return this.curve.infinity;const e=t.multiply(kh),r=this.negate();let n=this;for(let i=e.bitLength()-2;i>0;i--){n=n.twice();const o=e.testBit(i);o!==t.testBit(i)&&(n=n.add(o?this:r))}return n}}var $h=Object.freeze({__proto__:null,ECCurveFp:class{constructor(t,e,r){this.q=t,this.a=this.fromBigInteger(e),this.b=this.fromBigInteger(r),this.infinity=new jh(this,null,null)}equals(t){return t===this||this.q.equals(t.q)&&this.a.equals(t.a)&&this.b.equals(t.b)}fromBigInteger(t){return new zh(this.q,t)}decodePointHex(t){switch(parseInt(t.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:const e=this.fromBigInteger(new Uh(t.substr(2),16));let r=this.fromBigInteger(e.multiply(e.square()).add(e.multiply(this.a)).add(this.b).toBigInteger().modPow(this.q.divide(new Uh("4")).add(Uh.ONE),this.q));return r.toBigInteger().mod(Ph).equals(new Uh(t.substr(0,2),16).subtract(Ph))||(r=r.negate()),new jh(this,e,r);case 4:case 6:case 7:const n=(t.length-2)/2,i=t.substr(2,n),o=t.substr(n+2,n);return new jh(this,this.fromBigInteger(new Uh(i,16)),this.fromBigInteger(new Uh(o,16)));default:return null}}},ECPointFp:jh});const{BigInteger:Lh,SecureRandom:qh}=Bh,{ECCurveFp:Hh}=$h,Yh=new qh,{curve:Vh,G:Jh,n:Kh}=Zh();function Wh(){return Vh}function Zh(){const t=new Lh("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFF",16),e=new Lh("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFC",16),r=new Lh("28E9FA9E9D9F5E344D5A9E4BCF6509A7F39789F515AB8F92DDBCBD414D940E93",16),n=new Hh(t,e,r),i=n.decodePointHex("0432C4AE2C1F1981195F9904466A39C9948FE30BBFF2660BE1715A4589334C74C7BC3736A2F4F6779C59BDCEE36B692153D0A9877CC62A474002DF32E52139F0A0");return{curve:n,G:i,n:new Lh("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFF7203DF6B21C6052B53BBF40939D54123",16)}}function Qh(t,e,r){const n=(t?new Lh(t,e,r):new Lh(Kh.bitLength(),Yh)).mod(Kh.subtract(Lh.ONE)).add(Lh.ONE),i=Gh(n.toString(16),64),o=Jh.multiply(n);return{privateKey:i,publicKey:"04"+Gh(o.getX().toBigInteger().toString(16),64)+Gh(o.getY().toBigInteger().toString(16),64)}}function Xh(t){const e=(t=unescape(encodeURIComponent(t))).length,r=[];for(let n=0;n<e;n++)r[n>>>2]|=(255&t.charCodeAt(n))<<24-n%4*8;const n=[];for(let t=0;t<e;t++){const e=r[t>>>2]>>>24-t%4*8&255;n.push((e>>>4).toString(16)),n.push((15&e).toString(16))}return n.join("")}function Gh(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t}function tu(t){return t.map((t=>1===(t=t.toString(16)).length?"0"+t:t)).join("")}function eu(t){const e=[];let r=t.length;r%2!=0&&(t=Gh(t,r+1)),r=t.length;for(let n=0;n<r;n+=2)e.push(parseInt(t.substr(n,2),16));return e}const ru=new Uint32Array(68),nu=new Uint32Array(64);function iu(t,e){const r=31&e;return t<<r|t>>>32-r}function ou(t,e){const r=[];for(let n=t.length-1;n>=0;n--)r[n]=255&(t[n]^e[n]);return r}function su(t){return t^iu(t,9)^iu(t,17)}function hu(t){let e=8*t.length,r=e%512;r=r>=448?512-r%448-1:448-r-1;const n=new Array((r-7)/8),i=new Array(8);for(let t=0,e=n.length;t<e;t++)n[t]=0;for(let t=0,e=i.length;t<e;t++)i[t]=0;e=e.toString(2);for(let t=7;t>=0;t--)if(e.length>8){const r=e.length-8;i[t]=parseInt(e.substr(r),2),e=e.substr(0,r)}else e.length>0&&(i[t]=parseInt(e,2),e="");const o=new Uint8Array([...t,128,...n,...i]),s=new DataView(o.buffer,0),h=o.length/64,u=new Uint32Array([1937774191,1226093241,388252375,3666478592,2842636476,372324522,3817729613,2969243214]);for(let t=0;t<h;t++){ru.fill(0),nu.fill(0);const e=16*t;for(let t=0;t<16;t++)ru[t]=s.getUint32(4*(e+t),!1);for(let t=16;t<68;t++)ru[t]=(a=ru[t-16]^ru[t-9]^iu(ru[t-3],15))^iu(a,15)^iu(a,23)^iu(ru[t-13],7)^ru[t-6];for(let t=0;t<64;t++)nu[t]=ru[t]^ru[t+4];const r=2043430169,n=2055708042;let i,o,h,c,f,l=u[0],p=u[1],d=u[2],g=u[3],y=u[4],w=u[5],m=u[6],b=u[7];for(let t=0;t<64;t++)f=t>=0&&t<=15?r:n,i=iu(iu(l,12)+y+iu(f,t),7),o=i^iu(l,12),h=(t>=0&&t<=15?l^p^d:l&p|l&d|p&d)+g+o+nu[t],c=(t>=0&&t<=15?y^w^m:y&w|~y&m)+b+i+ru[t],g=d,d=iu(p,9),p=l,l=h,b=m,m=iu(w,19),w=y,y=su(c);u[0]^=l,u[1]^=p,u[2]^=d,u[3]^=g,u[4]^=y,u[5]^=w,u[6]^=m,u[7]^=b}var a;const c=[];for(let t=0,e=u.length;t<e;t++){const e=u[t];c.push((4278190080&e)>>>24,(16711680&e)>>>16,(65280&e)>>>8,255&e)}return c}const uu=64,au=new Uint8Array(uu),cu=new Uint8Array(uu);for(let t=0;t<uu;t++)au[t]=54,cu[t]=92;const{BigInteger:fu}=Bh,{decodeDer:lu,encodeDer:pu}=Nh,{G:du,curve:gu,n:yu}=Zh(),wu=0;function mu(t,e,r=1,{output:n="string"}={}){e=new fu(e,16);let i=t.substr(128,64),o=t.substr(192);r===wu&&(i=t.substr(t.length-64),o=t.substr(128,t.length-128-64));const s=eu(o),h=Wh().decodePointHex("04"+t.substr(0,128)).multiply(e),u=eu(Gh(h.getX().toBigInteger().toRadix(16),64)),a=eu(Gh(h.getY().toBigInteger().toRadix(16),64));let c=1,f=0,l=[];const p=[].concat(u,a),d=()=>{l=hu([...p,c>>24&255,c>>16&255,c>>8&255,255&c]),c++,f=0};d();for(let t=0,e=s.length;t<e;t++)f===l.length&&d(),s[t]^=255&l[f++];return tu(hu([].concat(u,s,a)))===i.toLowerCase()?"array"===n?s:function(t){const e=[];let r=0;for(let n=0;n<2*t.length;n+=2)e[n>>>3]|=parseInt(t[r],10)<<24-n%8*4,r++;try{const r=[];for(let n=0;n<t.length;n++){const t=e[n>>>2]>>>24-n%4*8&255;r.push(String.fromCharCode(t))}return decodeURIComponent(escape(r.join("")))}catch(t){throw new Error("Malformed UTF-8 data")}}(s):"array"===n?[]:""}function bu(t,e,r="1234567812345678"){r=Xh(r);const n=Gh(du.curve.a.toBigInteger().toRadix(16),64),i=Gh(du.curve.b.toBigInteger().toRadix(16),64),o=Gh(du.getX().toBigInteger().toRadix(16),64),s=Gh(du.getY().toBigInteger().toRadix(16),64);let h,u;if(128===e.length)h=e.substr(0,64),u=e.substr(64,64);else{const t=du.curve.decodePointHex(e);h=Gh(t.getX().toBigInteger().toRadix(16),64),u=Gh(t.getY().toBigInteger().toRadix(16),64)}const a=eu(r+n+i+o+s+h+u),c=4*r.length;a.unshift(255&c),a.unshift(c>>8&255);const f=hu(a);return tu(hu(f.concat(eu(t))))}function Au(t){const e=du.multiply(new fu(t,16));return"04"+Gh(e.getX().toBigInteger().toString(16),64)+Gh(e.getY().toBigInteger().toString(16),64)}function vu(){const t=Qh(),e=gu.decodePointHex(t.publicKey);return t.k=new fu(t.privateKey,16),t.x1=e.getX().toBigInteger(),t}const Su=Qh,Du=function(t){if(130!==t.length)throw new Error("Invalid public key to compress");const e=(t.length-2)/2,r=t.substr(2,e);let n="03";return new Lh(t.substr(e+2,e),16).mod(new Lh("2")).equals(Lh.ZERO)&&(n="02"),n+r},Eu=function(t,e){const r=Vh.decodePointHex(t);if(!r)return!1;const n=Vh.decodePointHex(e);return!!n&&r.equals(n)},Fu=function(t){const e=Vh.decodePointHex(t);if(!e)return!1;const r=e.getX();return e.getY().square().equals(r.multiply(r.square()).add(r.multiply(Vh.a)).add(Vh.b))};var Mu=Object.freeze({__proto__:null,comparePublicKeyHex:function(t,e){return Eu(t,e)},compressPublicKeyHex:function(t){return Du(t)},decrypt:function(t,e,r=1,n={output:"string"}){return mu(t,e,r,n)},doSignature:function(t,e,r){return function(t,e,{pointPool:r,der:n,hash:i,publicKey:o,userId:s}={}){let h="string"==typeof t?Xh(t):tu(t);i&&(h=bu(h,o=o||Au(e),s));const u=new fu(e,16),a=new fu(h,16);let c=null,f=null,l=null;do{do{let t;t=r&&r.length?r.pop():vu(),c=t.k,f=a.add(t.x1).mod(yu)}while(f.equals(fu.ZERO)||f.add(c).equals(yu));l=u.add(fu.ONE).modInverse(yu).multiply(c.subtract(f.multiply(u))).mod(yu)}while(l.equals(fu.ZERO));return n?pu(f,l):Gh(f.toString(16),64)+Gh(l.toString(16),64)}(t,e,r)},doVerifySignature:function(t,e,r,n){return function(t,e,r,{der:n,hash:i,userId:o}={}){let s,h,u="string"==typeof t?Xh(t):tu(t);if(i&&(u=bu(u,r,o)),n){const t=lu(e);s=t.r,h=t.s}else s=new fu(e.substring(0,64),16),h=new fu(e.substring(64),16);const a=gu.decodePointHex(r),c=new fu(u,16),f=s.add(h).mod(yu);if(f.equals(fu.ZERO))return!1;const l=du.multiply(h).add(a.multiply(f)),p=c.add(l.getX().toBigInteger()).mod(yu);return s.equals(p)}(t,e,r,n)},encrypt:function(t,e,r=1){return function(t,e,r=1){t="string"==typeof t?eu(Xh(t)):Array.prototype.slice.call(t),e=Wh().decodePointHex(e);const n=Qh(),i=new fu(n.privateKey,16);let o=n.publicKey;o.length>128&&(o=o.substr(o.length-128));const s=e.multiply(i),h=eu(Gh(s.getX().toBigInteger().toRadix(16),64)),u=eu(Gh(s.getY().toBigInteger().toRadix(16),64)),a=tu(hu([].concat(h,t,u)));let c=1,f=0,l=[];const p=[].concat(h,u),d=()=>{l=hu([...p,c>>24&255,c>>16&255,c>>8&255,255&c]),c++,f=0};d();for(let e=0,r=t.length;e<r;e++)f===l.length&&d(),t[e]^=255&l[f++];const g=tu(t);return r===wu?o+g+a:o+a+g}(t,e,r)},generateKeyPairHex:function(t,e){return Su(t,e)},getPoint:function(){return vu()},getPublicKeyFromPrivateKey:function(t){return Au(t)},verifyPublicKey:function(t){return Fu(t)}});function Bu(t){return t.map((t=>1===(t=t.toString(16)).length?"0"+t:t)).join("")}function Cu(t){const e=[];let r=t.length;var n,i;r%2!=0&&(i=r+1,t=(n=t).length>=i?n:new Array(i-n.length+1).join("0")+n),r=t.length;for(let n=0;n<r;n+=2)e.push(parseInt(t.substr(n,2),16));return e}function Tu(t,e){if(t="string"==typeof t?function(t){const e=[];for(let r=0,n=t.length;r<n;r++){const n=t.codePointAt(r);if(n<=127)e.push(n);else if(n<=2047)e.push(192|n>>>6),e.push(128|63&n);else if(n<=55295||n>=57344&&n<=65535)e.push(224|n>>>12),e.push(128|n>>>6&63),e.push(128|63&n);else{if(!(n>=65536&&n<=1114111))throw e.push(n),new Error("input is not supported");r++,e.push(240|n>>>18&28),e.push(128|n>>>12&63),e.push(128|n>>>6&63),e.push(128|63&n)}}return e}(t):Array.prototype.slice.call(t),e){if("hmac"!==(e.mode||"hmac"))throw new Error("invalid mode");let r=e.key;if(!r)throw new Error("invalid key");return r="string"==typeof r?Cu(r):Array.prototype.slice.call(r),Bu(function(t,e){for(e.length>uu&&(e=hu(e));e.length<uu;)e.push(0);const r=ou(e,au),n=ou(e,cu),i=hu([...r,...t]);return hu([...n,...i])}(t,r))}return Bu(hu(t))}var Ou=Object.freeze({__proto__:null,encrypt:function(t,e){return Tu(t,e)}});const Iu=0,Ru=32,_u=16,xu=[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],Nu=[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 Uu(t){const e=[];for(let r=0,n=t.length;r<n;r+=2)e.push(parseInt(t.substr(r,2),16));return e}function Pu(t,e){const r=31&e;return t<<r|t>>>32-r}function ku(t){return(255&xu[t>>>24&255])<<24|(255&xu[t>>>16&255])<<16|(255&xu[t>>>8&255])<<8|255&xu[255&t]}function zu(t){return t^Pu(t,2)^Pu(t,10)^Pu(t,18)^Pu(t,24)}function ju(t){return t^Pu(t,13)^Pu(t,23)}function $u(t,e,r){const n=new Array(4),i=new Array(4);for(let e=0;e<4;e++)i[0]=255&t[4*e],i[1]=255&t[4*e+1],i[2]=255&t[4*e+2],i[3]=255&t[4*e+3],n[e]=i[0]<<24|i[1]<<16|i[2]<<8|i[3];for(let t,e=0;e<32;e+=4)t=n[1]^n[2]^n[3]^r[e+0],n[0]^=zu(ku(t)),t=n[2]^n[3]^n[0]^r[e+1],n[1]^=zu(ku(t)),t=n[3]^n[0]^n[1]^r[e+2],n[2]^=zu(ku(t)),t=n[0]^n[1]^n[2]^r[e+3],n[3]^=zu(ku(t));for(let t=0;t<16;t+=4)e[t]=n[3-t/4]>>>24&255,e[t+1]=n[3-t/4]>>>16&255,e[t+2]=n[3-t/4]>>>8&255,e[t+3]=255&n[3-t/4]}function Lu(t,e,r,{padding:n="pkcs#7",mode:i,iv:o=[],output:s="string"}={}){if("cbc"===i&&("string"==typeof o&&(o=Uu(o)),16!==o.length))throw new Error("iv is invalid");if("string"==typeof e&&(e=Uu(e)),16!==e.length)throw new Error("key is invalid");if(t="string"==typeof t?r!==Iu?function(t){const e=[];for(let r=0,n=t.length;r<n;r++){const n=t.codePointAt(r);if(n<=127)e.push(n);else if(n<=2047)e.push(192|n>>>6),e.push(128|63&n);else if(n<=55295||n>=57344&&n<=65535)e.push(224|n>>>12),e.push(128|n>>>6&63),e.push(128|63&n);else{if(!(n>=65536&&n<=1114111))throw e.push(n),new Error("input is not supported");r++,e.push(240|n>>>18&28),e.push(128|n>>>12&63),e.push(128|n>>>6&63),e.push(128|63&n)}}return e}(t):Uu(t):[...t],("pkcs#5"===n||"pkcs#7"===n)&&r!==Iu){const e=_u-t.length%_u;for(let r=0;r<e;r++)t.push(e)}const h=new Array(Ru);!function(t,e,r){const n=new Array(4),i=new Array(4);for(let e=0;e<4;e++)i[0]=255&t[0+4*e],i[1]=255&t[1+4*e],i[2]=255&t[2+4*e],i[3]=255&t[3+4*e],n[e]=i[0]<<24|i[1]<<16|i[2]<<8|i[3];n[0]^=2746333894,n[1]^=1453994832,n[2]^=1736282519,n[3]^=2993693404;for(let t,r=0;r<32;r+=4)t=n[1]^n[2]^n[3]^Nu[r+0],e[r+0]=n[0]^=ju(ku(t)),t=n[2]^n[3]^n[0]^Nu[r+1],e[r+1]=n[1]^=ju(ku(t)),t=n[3]^n[0]^n[1]^Nu[r+2],e[r+2]=n[2]^=ju(ku(t)),t=n[0]^n[1]^n[2]^Nu[r+3],e[r+3]=n[3]^=ju(ku(t));if(r===Iu)for(let t,r=0;r<16;r++)t=e[r],e[r]=e[31-r],e[31-r]=t}(e,h,r);const u=[];let a=o,c=t.length,f=0;for(;c>=_u;){const e=t.slice(f,f+16),n=new Array(16);if("cbc"===i)for(let t=0;t<_u;t++)r!==Iu&&(e[t]^=a[t]);$u(e,n,h);for(let t=0;t<_u;t++)"cbc"===i&&r===Iu&&(n[t]^=a[t]),u[f+t]=n[t];"cbc"===i&&(a=r!==Iu?n:e),c-=_u,f+=_u}if(("pkcs#5"===n||"pkcs#7"===n)&&r===Iu){const t=u.length,e=u[t-1];for(let r=1;r<=e;r++)if(u[t-r]!==e)throw new Error("padding is invalid");u.splice(t-e,e)}return"array"!==s?r!==Iu?u.map((t=>1===(t=t.toString(16)).length?"0"+t:t)).join(""):function(t){const e=[];for(let r=0,n=t.length;r<n;r++)t[r]>=240&&t[r]<=247?(e.push(String.fromCodePoint(((7&t[r])<<18)+((63&t[r+1])<<12)+((63&t[r+2])<<6)+(63&t[r+3]))),r+=3):t[r]>=224&&t[r]<=239?(e.push(String.fromCodePoint(((15&t[r])<<12)+((63&t[r+1])<<6)+(63&t[r+2]))),r+=2):t[r]>=192&&t[r]<=223?(e.push(String.fromCodePoint(((31&t[r])<<6)+(63&t[r+1]))),r++):e.push(String.fromCodePoint(t[r]));return e.join("")}(u):u}var qu=Object.freeze({__proto__:null,decrypt:function(t,e,r){return function(t,e,r){return Lu(t,e,0,r)}(t,e,r)},encrypt:function(t,e,r){return function(t,e,r){return Lu(t,e,1,r)}(t,e,r)}});const{encode:Hu,decode:Yu,utf8Decode:Vu,utf8Encode:Ju}=$n;class Ku{static cipher(t,e){const r=e.length/4-1;let n=[[],[],[],[]];for(let e=0;e<16;e++)n[e%4][Math.floor(e/4)]=t[e];n=Ku.addRoundKey(n,e,0,4);for(let t=1;t<r;t++)n=Ku.subBytes(n,4),n=Ku.shiftRows(n,4),n=Ku.mixColumns(n,4),n=Ku.addRoundKey(n,e,t,4);n=Ku.subBytes(n,4),n=Ku.shiftRows(n,4),n=Ku.addRoundKey(n,e,r,4);const i=new Array(16);for(let t=0;t<16;t++)i[t]=n[t%4][Math.floor(t/4)];return i}static keyExpansion(t){const e=t.length/4,r=e+6,n=new Array(4*(r+1));let i=new Array(4);for(let r=0;r<e;r++){const e=[t[4*r],t[4*r+1],t[4*r+2],t[4*r+3]];n[r]=e}for(let t=e;t<4*(r+1);t++){n[t]=new Array(4);for(let e=0;e<4;e++)i[e]=n[t-1][e];if(t%e==0){i=Ku.subWord(Ku.rotWord(i));for(let r=0;r<4;r++)i[r]^=Ku.rCon[t/e][r]}else e>6&&t%e==4&&(i=Ku.subWord(i));for(let r=0;r<4;r++)n[t][r]=n[t-e][r]^i[r]}return n}static subBytes(t,e){for(let r=0;r<4;r++)for(let n=0;n<e;n++)t[r][n]=Ku.sBox[t[r][n]];return t}static shiftRows(t,e){const r=new Array(4);for(let n=1;n<4;n++){for(let i=0;i<4;i++)r[i]=t[n][(i+n)%e];for(let e=0;e<4;e++)t[n][e]=r[e]}return t}static mixColumns(t,e){for(let r=0;r<e;r++){const n=new Array(e),i=new Array(e);for(let e=0;e<4;e++)n[e]=t[e][r],i[e]=128&t[e][r]?t[e][r]<<1^283:t[e][r]<<1;t[0][r]=i[0]^n[1]^i[1]^n[2]^n[3],t[1][r]=n[0]^i[1]^n[2]^i[2]^n[3],t[2][r]=n[0]^n[1]^i[2]^n[3]^i[3],t[3][r]=n[0]^i[0]^n[1]^n[2]^i[3]}return t}static addRoundKey(t,e,r,n){for(let i=0;i<4;i++)for(let o=0;o<n;o++)t[i][o]^=e[4*r+o][i];return t}static subWord(t){for(let e=0;e<4;e++)t[e]=Ku.sBox[t[e]];return t}static rotWord(t){const e=t[0];for(let e=0;e<3;e++)t[e]=t[e+1];return t[3]=e,t}}Ku.sBox=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],Ku.rCon=[[0,0,0,0],[1,0,0,0],[2,0,0,0],[4,0,0,0],[8,0,0,0],[16,0,0,0],[32,0,0,0],[64,0,0,0],[128,0,0,0],[27,0,0,0],[54,0,0,0]];class Wu extends Ku{static encrypt(t,e,r){if(![128,192,256].includes(r))throw new Error("Key size is not 128 / 192 / 256");t=Wu.utf8Encode(String(t)),e=Wu.utf8Encode(String(e));const n=r/8,i=new Array(n);for(let t=0;t<n;t++)i[t]=t<e.length?e.charCodeAt(t):0;let o=Ku.cipher(i,Ku.keyExpansion(i));o=o.concat(o.slice(0,n-16));const s=(new Date).getTime(),h=s%1e3,u=Math.floor(s/1e3),a=Math.floor(65535*Math.random()),c=[255&h,h>>>8&255,255&a,a>>>8&255,255&u,u>>>8&255,u>>>16&255,u>>>24&255,0,0,0,0,0,0,0,0],f=c.slice(0,8).map((t=>String.fromCharCode(t))).join(""),l=t.split("").map((t=>t.charCodeAt(0))),p=Wu.nistEncryption(l,o,c).map((t=>String.fromCharCode(t))).join("");return Wu.base64Encode(f+p)}static nistEncryption(t,e,r){const n=16,i=Ku.keyExpansion(e),o=Math.ceil(t.length/n),s=new Array(t.length);for(let e=0;e<o;e++){const h=Ku.cipher(r,i),u=e<o-1?n:(t.length-1)%n+1;for(let r=0;r<u;r++)s[e*n+r]=h[r]^t[e*n+r];r[15]++;for(let t=15;t>=8;t--)r[t-1]+=r[t]>>8,r[t]&=255;"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&e%1e3==0&&self.postMessage({progress:e/o})}return s}static decrypt(t,e,r){if(![128,192,256].includes(r))throw new Error("Key size is not 128 / 192 / 256");t=Wu.base64Decode(String(t)),e=Wu.utf8Encode(String(e));const n=r/8,i=new Array(n);for(let t=0;t<n;t++)i[t]=t<e.length?e.charCodeAt(t):0;let o=Ku.cipher(i,Ku.keyExpansion(i));o=o.concat(o.slice(0,n-16));const s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(let e=0;e<8;e++)s[e]=t.charCodeAt(e);const h=new Array(t.length-8);for(let e=8;e<t.length;e++)h[e-8]=t.charCodeAt(e);const u=Wu.nistDecryption(h,o,s).map((t=>String.fromCharCode(t))).join("");return Wu.utf8Decode(u)}static nistDecryption(t,e,r){const n=16,i=Ku.keyExpansion(e),o=Math.ceil(t.length/n),s=new Array(t.length);for(let e=0;e<o;e++){const h=Ku.cipher(r,i),u=e<o-1?n:(t.length-1)%n+1;for(let r=0;r<u;r++)s[e*n+r]=h[r]^t[e*n+r];r[15]++;for(let t=15;t>=8;t--)r[t-1]+=r[t]>>8,r[t]&=255;"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&e%1e3==0&&self.postMessage({progress:e/o})}return s}static utf8Encode(t){return Ju(t)}static utf8Decode(t){return Vu(t)}static base64Encode(t){return Hu(t)}static base64Decode(t){return Yu(t)}}var Zu=Object.freeze({__proto__:null,decrypt:function(t,e,r){return Wu.decrypt(t,e,r)},encrypt:function(t,e,r=256){return Wu.encrypt(t,e,r)}});const{encode:Qu,decode:Xu}=$n;function Gu(t,e){this.key=t,this.value=e}Gu.prototype._DesCreate=function(t,e,r){var n=e;if("decrypt"===r){for(var i="",o="0x"==e.substr(0,2)?2:0;o<e.length;o+=2)i+=String.fromCharCode(parseInt(e.substr(o,2),16));n=i}var s,h,u,a,c,f,l,p,d,g=new Array(16843776,0,65536,16843780,16842756,66564,4,65536,1024,16843776,16843780,1024,16778244,16842756,16777216,4,1028,16778240,16778240,66560,66560,16842752,16842752,16778244,65540,16777220,16777220,65540,0,1028,66564,16777216,65536,16843780,4,16842752,16843776,16777216,16777216,1024,16842756,65536,66560,16777220,1024,4,16778244,66564,16843780,65540,16842752,16778244,16777220,1028,66564,16843776,1028,16778240,16778240,0,65540,66560,0,16842756),y=new Array(-2146402272,-2147450880,32768,1081376,1048576,32,-2146435040,-2147450848,-2147483616,-2146402272,-2146402304,-2147483648,-2147450880,1048576,32,-2146435040,1081344,1048608,-2147450848,0,-2147483648,32768,1081376,-2146435072,1048608,-2147483616,0,1081344,32800,-2146402304,-2146435072,32800,0,1081376,-2146435040,1048576,-2147450848,-2146435072,-2146402304,32768,-2146435072,-2147450880,32,-2146402272,1081376,32,32768,-2147483648,32800,-2146402304,1048576,-2147483616,1048608,-2147450848,-2147483616,1048608,1081344,0,-2147450880,32800,-2147483648,-2146435040,-2146402272,1081344),w=new Array(520,134349312,0,134348808,134218240,0,131592,134218240,131080,134217736,134217736,131072,134349320,131080,134348800,520,134217728,8,134349312,512,131584,134348800,134348808,131592,134218248,131584,131072,134218248,8,134349320,512,134217728,134349312,134217728,131080,520,131072,134349312,134218240,0,512,131080,134349320,134218240,134217736,512,0,134348808,134218248,131072,134217728,134349320,8,131592,131584,134217736,134348800,134218248,520,134348800,131592,8,134348808,131584),m=new Array(8396801,8321,8321,128,8396928,8388737,8388609,8193,0,8396800,8396800,8396929,129,0,8388736,8388609,1,8192,8388608,8396801,128,8388608,8193,8320,8388737,1,8320,8388736,8192,8396928,8396929,129,8388736,8388609,8396800,8396929,129,0,0,8396800,8320,8388736,8388737,1,8396801,8321,8321,128,8396929,129,1,8192,8388609,8193,8396928,8388737,8193,8320,8388608,8396801,128,8388608,8192,8396928),b=new Array(256,34078976,34078720,1107296512,524288,256,1073741824,34078720,1074266368,524288,33554688,1074266368,1107296512,1107820544,524544,1073741824,33554432,1074266112,1074266112,0,1073742080,1107820800,1107820800,33554688,1107820544,1073742080,0,1107296256,34078976,33554432,1107296256,524544,524288,1107296512,256,33554432,1073741824,34078720,1107296512,1074266368,33554688,1073741824,1107820544,34078976,1074266368,256,33554432,1107820544,1107820800,524544,1107296256,1107820800,34078720,0,1074266112,1107296256,524544,33554688,1073742080,524288,0,1074266112,34078976,1073742080),A=new Array(536870928,541065216,16384,541081616,541065216,16,541081616,4194304,536887296,4210704,4194304,536870928,4194320,536887296,536870912,16400,0,4194320,536887312,16384,4210688,536887312,16,541065232,541065232,0,4210704,541081600,16400,4210688,541081600,536870912,536887296,16,541065232,4210688,541081616,4194304,16400,536870928,4194304,536887296,536870912,16400,536870928,541081616,4210688,541065216,4210704,541081600,0,541065232,16,16384,541065216,4210704,16384,4194320,536887312,0,541081600,536870912,4194320,536887312),v=new Array(2097152,69206018,67110914,0,2048,67110914,2099202,69208064,69208066,2097152,0,67108866,2,67108864,69206018,2050,67110912,2099202,2097154,67110912,67108866,69206016,69208064,2097154,69206016,2048,2050,69208066,2099200,2,67108864,2099200,67108864,2099200,2097152,67110914,67110914,69206018,69206018,2,2097154,67108864,67110912,2097152,69208064,2050,2099202,69208064,2050,67108866,69208066,69206016,2099200,0,2,69208066,0,2099202,69206016,2048,67108866,67110912,2048,2097154),S=new Array(268439616,4096,262144,268701760,268435456,268439616,64,268435456,262208,268697600,268701760,266240,268701696,266304,4096,64,268697600,268435520,268439552,4160,266240,262208,268697664,268701696,4160,0,0,268697664,268435520,268439552,266304,262144,266304,262144,268701696,4096,64,268697664,4096,266304,268439552,64,268435520,268697600,268697664,268435456,262144,268439616,0,268701760,262208,268435520,268697600,268439552,268439616,0,268701760,266240,266240,4160,4160,262208,268435456,268701696),D=this._DesCreateKeys(t),E=0,F=n.length,M=0,B=32==D.length?3:9;l=3==B?"encrypt"===r?new Array(0,32,2):new Array(30,-2,-2):"encrypt"===r?new Array(0,32,2,62,30,-2,64,96,2):new Array(94,62,-2,32,64,2,30,-2,-2);for(var C="",T="";E<F;){for(c=n.charCodeAt(E++)<<24|n.charCodeAt(E++)<<16|n.charCodeAt(E++)<<8|n.charCodeAt(E++),c^=(h=252645135&(c>>>4^(f=n.charCodeAt(E++)<<24|n.charCodeAt(E++)<<16|n.charCodeAt(E++)<<8|n.charCodeAt(E++))))<<4,c^=(h=65535&(c>>>16^(f^=h)))<<16,c^=h=858993459&((f^=h)>>>2^c),c^=h=16711935&((f^=h<<2)>>>8^c),c=(c^=(h=1431655765&(c>>>1^(f^=h<<8)))<<1)<<1|c>>>31,f=(f^=h)<<1|f>>>31,s=0;s<B;s+=3){for(p=l[s+1],d=l[s+2],o=l[s];o!=p;o+=d)u=f^D[o],a=(f>>>4|f<<28)^D[o+1],h=c,c=f,f=h^(y[u>>>24&63]|m[u>>>16&63]|A[u>>>8&63]|S[63&u]|g[a>>>24&63]|w[a>>>16&63]|b[a>>>8&63]|v[63&a]);h=c,c=f,f=h}f=f>>>1|f<<31,f^=h=1431655765&((c=c>>>1|c<<31)>>>1^f),f^=(h=16711935&(f>>>8^(c^=h<<1)))<<8,f^=(h=858993459&(f>>>2^(c^=h)))<<2,f^=h=65535&((c^=h)>>>16^f),f^=h=252645135&((c^=h<<16)>>>4^f),c^=h<<4,T+=String.fromCharCode(c>>>24,c>>>16&255,c>>>8&255,255&c,f>>>24,f>>>16&255,f>>>8&255,255&f),512==(M+=8)&&(C+=T,T="",M=0)}var O=C+T;if("encrypt"===r){var I="",R=new Array("0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f");for(o=0;o<O.length;o++)I+=R[O.charCodeAt(o)>>4]+R[15&O.charCodeAt(o)];return I}return C+T},Gu.prototype._DesCreateKeys=function(t){for(var e,r,n,i=new Array(0,4,536870912,536870916,65536,65540,536936448,536936452,512,516,536871424,536871428,66048,66052,536936960,536936964),o=new Array(0,1,1048576,1048577,67108864,67108865,68157440,68157441,256,257,1048832,1048833,67109120,67109121,68157696,68157697),s=new Array(0,8,2048,2056,16777216,16777224,16779264,16779272,0,8,2048,2056,16777216,16777224,16779264,16779272),h=new Array(0,2097152,134217728,136314880,8192,2105344,134225920,136323072,131072,2228224,134348800,136445952,139264,2236416,134356992,136454144),u=new Array(0,262144,16,262160,0,262144,16,262160,4096,266240,4112,266256,4096,266240,4112,266256),a=new Array(0,1024,32,1056,0,1024,32,1056,33554432,33555456,33554464,33555488,33554432,33555456,33554464,33555488),c=new Array(0,268435456,524288,268959744,2,268435458,524290,268959746,0,268435456,524288,268959744,2,268435458,524290,268959746),f=new Array(0,65536,2048,67584,536870912,536936448,536872960,536938496,131072,196608,133120,198656,537001984,537067520,537004032,537069568),l=new Array(0,262144,0,262144,2,262146,2,262146,33554432,33816576,33554432,33816576,33554434,33816578,33554434,33816578),p=new Array(0,268435456,8,268435464,0,268435456,8,268435464,1024,268436480,1032,268436488,1024,268436480,1032,268436488),d=new Array(0,32,0,32,1048576,1048608,1048576,1048608,8192,8224,8192,8224,1056768,1056800,1056768,1056800),g=new Array(0,16777216,512,16777728,2097152,18874368,2097664,18874880,67108864,83886080,67109376,83886592,69206016,85983232,69206528,85983744),y=new Array(0,4096,134217728,134221824,524288,528384,134742016,134746112,16,4112,134217744,134221840,524304,528400,134742032,134746128),w=new Array(0,4,256,260,0,4,256,260,1,5,257,261,1,5,257,261),m=t.length>8?3:1,b=new Array(32*m),A=new Array(0,0,1,1,1,1,1,1,0,1,1,1,1,1,1,0),v=0,S=0,D=0;D<m;D++){var E=t.charCodeAt(v++)<<24|t.charCodeAt(v++)<<16|t.charCodeAt(v++)<<8|t.charCodeAt(v++),F=t.charCodeAt(v++)<<24|t.charCodeAt(v++)<<16|t.charCodeAt(v++)<<8|t.charCodeAt(v++);E^=(n=252645135&(E>>>4^F))<<4,E^=n=65535&((F^=n)>>>-16^E),E^=(n=858993459&(E>>>2^(F^=n<<-16)))<<2,E^=n=65535&((F^=n)>>>-16^E),E^=(n=1431655765&(E>>>1^(F^=n<<-16)))<<1,E^=n=16711935&((F^=n)>>>8^E),n=(E^=(n=1431655765&(E>>>1^(F^=n<<8)))<<1)<<8|(F^=n)>>>20&240,E=F<<24|F<<8&16711680|F>>>8&65280|F>>>24&240,F=n;for(var M=0;M<A.length;M++)A[M]?(E=E<<2|E>>>26,F=F<<2|F>>>26):(E=E<<1|E>>>27,F=F<<1|F>>>27),F&=-15,e=i[(E&=-15)>>>28]|o[E>>>24&15]|s[E>>>20&15]|h[E>>>16&15]|u[E>>>12&15]|a[E>>>8&15]|c[E>>>4&15],n=65535&((r=f[F>>>28]|l[F>>>24&15]|p[F>>>20&15]|d[F>>>16&15]|g[F>>>12&15]|y[F>>>8&15]|w[F>>>4&15])>>>16^e),b[S++]=e^n,b[S++]=r^n<<16}return b},Gu.prototype.encrypt=function(t,e){var r=Qu(e);return this._DesCreate(t,r,"encrypt")},Gu.prototype.decrypt=function(t,e){var r=this._DesCreate(t,e,"decrypt");return Xu(r)};var ta=Object.freeze({__proto__:null,decrypt:function(t,e){return new Gu(e,t).decrypt(e,t)},encrypt:function(t,e){return new Gu(e,t).encrypt(e,t)}});class ea{static encrypt(t,e){if(t=String(t),e=String(e),0==t.length)return"";const r=ea.strToLongs(ea.utf8Encode(t)),n=ea.strToLongs(ea.utf8Encode(e).slice(0,16)),i=ea.encode(r,n),o=ea.longsToStr(i);return ea.base64Encode(o)}static decrypt(t,e){if(t=String(t),e=String(e),0==t.length)return"";const r=ea.strToLongs(ea.base64Decode(t)),n=ea.strToLongs(ea.utf8Encode(e).slice(0,16)),i=ea.decode(r,n),o=ea.longsToStr(i);return ea.utf8Decode(o.replace(/\0+$/,""))}static encode(t,e){t.length<2&&(t[1]=0);const r=t.length;let n,i,o=Math.floor(6+52/r),s=t[r-1],h=t[0],u=0;for(;o-- >0;){u+=2654435769,i=u>>>2&3;for(let o=0;o<r;o++)h=t[(o+1)%r],n=(s>>>5^h<<2)+(h>>>3^s<<4)^(u^h)+(e[3&o^i]^s),s=t[o]+=n}return t}static decode(t,e){const r=t.length,n=2654435769,i=Math.floor(6+52/r);let o,s,h=t[r-1],u=t[0],a=i*n;for(;0!=a;){s=a>>>2&3;for(let n=r-1;n>=0;n--)h=t[n>0?n-1:r-1],o=(h>>>5^u<<2)+(u>>>3^h<<4)^(a^u)+(e[3&n^s]^h),u=t[n]-=o;a-=n}return t}static strToLongs(t){const e=new Array(Math.ceil(t.length/4));for(let r=0;r<e.length;r++)e[r]=t.charCodeAt(4*r)+(t.charCodeAt(4*r+1)<<8)+(t.charCodeAt(4*r+2)<<16)+(t.charCodeAt(4*r+3)<<24);return e}static longsToStr(t){let e="";for(let r=0;r<t.length;r++)e+=String.fromCharCode(255&t[r],t[r]>>>8&255,t[r]>>>16&255,t[r]>>>24&255);return e}static utf8Encode(t){return unescape(encodeURIComponent(t))}static utf8Decode(t){try{return decodeURIComponent(escape(t))}catch(e){return t}}static base64Encode(t){if("undefined"!=typeof btoa)return btoa(t);if("undefined"!=typeof Buffer)return new Buffer(t,"binary").toString("base64");throw new Error("No Base64 Encode")}static base64Decode(t){if("undefined"==typeof atob&&"undefined"==typeof Buffer)throw new Error("No base64 decode");try{if("undefined"!=typeof atob)return atob(t);if("undefined"!=typeof Buffer)return new Buffer(t,"base64").toString("binary")}catch(t){throw new Error("Invalid ciphertext")}}}var ra=Object.freeze({__proto__:null,decrypt:function(t,e){return ea.decrypt(t,e)},encrypt:function(t,e){return ea.encrypt(t,e)}});function na(t){return 2===t.length?ha(t,1,1):t.length>2?ha(t,1,t.length-2):t}function ia(t,e=3,r=4){return ha(t,e,r)}function oa(t,e=4,r=8){return ha(t,e,r)}function sa(t,e=4,r=11){return ha(t,e,r)}function ha(t,e,r){if(e>(t=String(t)).length)return t;let n="";return r<0&&(r=0),r>t.length-e&&(r=t.length-e),n=String().padEnd(r,"*"),t.substring(0,e)+n+t.substring(e+r)}function ua(t){if(!V(t))return{province:la(t),birthday:aa(t),age:ca(t),sex:fa(t)}}function aa(t){if(!V(t))return 15===t.length?"19"+t.substring(6,8)+"-"+t.substring(8,10)+"-"+t.substring(10,12):18===t.length?t.substring(6,10)+"-"+t.substring(10,12)+"-"+t.substring(12,14):void 0}function ca(t){if(V(t))return;return ar(Sr(aa(t)))}function fa(t){if(!V(t))return 15===t.length?Number(t.substring(14))%2==0?"女":"男":18===t.length?Number(t.substring(16,17))%2==0?"女":"男":void 0}function la(t){if(V(t))return;return{11:"北京",12:"天津",13:"河北",14:"山西",15:"内蒙古",21:"辽宁",22:"吉林",23:"黑龙江",31:"上海",32:"江苏",33:"浙江",34:"安徽",35:"福建",36:"江西",37:"山东",41:"河南",42:"湖北",43:"湖南",44:"广东",45:"广西",46:"海南",50:"重庆",51:"四川",52:"贵州",53:"云南",54:"西藏",61:"陕西",62:"甘肃",63:"青海",64:"宁夏",65:"新疆",71:"台湾",81:"香港",82:"澳门",91:"国外"}[t.substring(0,2)]}function pa(t={page:1,pageSize:10,total:0,totalPage:0,pagerCount:7}){return[t.pageSize*(t.page-1),t.pageSize*t.page]}function da(t={page:1,pageSize:10,total:0,totalPage:0,pagerCount:7}){return Math.ceil((t.total||0)/(t.pageSize||0))}function ga(t={page:1,pageSize:10,total:0,totalPage:0,pagerCount:7},e){return new Promise((r=>{let n=t.page||1,i=t.totalPage>0?t.totalPage:da(t),o=t.pagerCount||7,s=!(1&o),h=o>>1,u=o>>1,a=o;s&&u++,i<o&&(a=i);let c=new Array(a);if(i>=o)if(n<=h)for(let t=0;t<c.length;t++)c[t]=t+1;else if(n>i-u)for(let t=0;t<c.length;t++)c[t]=t+i-o+1;else for(let t=0;t<c.length;t++)c[t]=t+n-h+(s?1:0);else for(let t=0;t<c.length;t++)c[t]=t+1;e&&e(c),r(c)}))}function ya(t={page:1,pageSize:10,total:0,totalPage:0,pagerCount:7},e){return new Promise((r=>{t.page>1?t.page--:t.page=1,e&&e(t.page),r(t.page)}))}function wa(t={page:1,pageSize:10,total:0,totalPage:0,pagerCount:7},e){return new Promise((r=>{let n=t.totalPage>0?t.totalPage:da(t);t.page>0?t.page<n?t.page++:t.page=n:t.page=1,e&&e(t.page),r(t.page)}))}function ma(t=window.location.href){let e=t.match(n.URL);if(e)return e[1]||""}function ba(t=window.location.href){let e=t.match(n.URL);if(e)return(e[2]||"")+(e[3]?":"+e[3]:"")}function Aa(t=window.location.href){let e=t.match(n.URL);if(e)return e[2]||""}function va(t=window.location.href){let e=t.match(n.URL);if(e)return e[3]||""}function Sa(t=window.location.href){let e=t.match(n.URL);if(e)return e[4]||""}function Da(t=window.location.href){let e=t.match(n.URL);if(e)return e[6]||""}function Ea(t=window.location.href){let e=t.match(n.URL);if(console.log(e),e)return e[5]||""}function Fa(t,e=window.location.href){t=t.replace(/[[\]]/g,"\\$&"),e=Ea(e);let r=new RegExp("(^|&)"+t+"=([^&]*)(&|$)"),n=e.substring(0).match(r);if(n)return decodeURIComponent(n[2])}function Ma(t,e,r=window.location.href){let n=toSearchParam(r);return n[t]=e,r.replace(/(\?.+?)(?=#|$)/,"?"+toSearchString(n))}function Ba(t,e=window.location.href){return void 0!==toSearchParam(e)[t]}function Ca(t,e,r=window.location.href){let n=Ea(r).split("&");if(M(e)){let r=[];for(let n=0;n<e.length;n++)r.push(`${encodeURIComponent(t)}[${n}]=${encodeURIComponent(e[n])}`);n.unshift(...r)}else n.unshift(`${encodeURIComponent(t)}=${encodeURIComponent(e)}`);return r.replace(/(\?.+?)(?=#|$)/,"?"+n.join("&"))}function Ta(t,e,r,n=window.location.href){let i=Ea(n).split("&"),o=i.findIndex((t=>t.includes(r))),s=ft(i,o,`${t}=${e}`);return n.replace(/(\?.+?)(?=#|$)/,"?"+s.join("&"))}function Oa(t,e,r=window.location.href){let n=Ea(r).split("&");return n.push(`${t}=${e}`),r.replace(/(\?.+?)(?=#|$)/,"?"+n.join("&"))}function Ia(t,e,r,n=window.location.href){let i=Ea(n).split("&"),o=i.findIndex((t=>t.includes(r))),s=lt(i,o,`${t}=${e}`);return n.replace(/(\?.+?)(?=#|$)/,"?"+s.join("&"))}function Ra(t,e=window.location.href){let r=Ea(e).split("&"),n=r.findIndex((e=>e.includes(t)));return n>-1&&r.splice(n,1),e.replace(/(\?.+?)(?=#|$)/,"?"+r.join("&"))}function _a(t=window.location.href){let e=Ea(t).split("&"),r={};for(let t=0;t<e.length;t++){let n=e[t].split("=");r[decodeURIComponent(n[0])]=decodeURIComponent(n[1]||"")}return r}function xa(t,e=void 0){if("object"!=typeof t)return t;let r=[];for(let e in t){let n=t[e];if(M(n))for(let t=0;t<n.length;++t)r.push(encodeURIComponent(e+"["+t+"]")+"="+encodeURIComponent(n[t]));else r.push(encodeURIComponent(e)+"="+encodeURIComponent(t[e]))}return e?e.replace(/(\?.+?)(?=#|$)/,"?"+r.join("&")):r.join("&")}function Na(){return window.navigator.cookieEnabled}function Ua(t){if("undefined"==typeof document)return"";let e=document.cookie?document.cookie.replace(/\s/g,"").split(";"):[];for(let r in e){let n=e[r].split("=");if(n[0]===t)return decodeURIComponent(n[1])}return""}function Pa(t,e,r=864e5){"undefined"!=typeof document&&(document.cookie=t+"="+e+";expires="+new Date(Date.now()+r))}function ka(t){K(t)||Pa(t,"",-1)}function za(t=document.domain){let e=document.cookie.match(/[^ =;]+(?==)/g);if(e)for(let r=e.length;r--;)document.cookie=e[r]+"=0;path=/;"+t?"domain="+t+";":"expires="+new Date(0).toUTCString()}function ja(t){return window.localStorage.getItem(t)||void 0}function $a(t,e){window.localStorage.setItem(t,e)}function La(t){window.localStorage.removeItem(t)}function qa(){window.localStorage.clear()}function Ha(t){return window.sessionStorage.getItem(t)||""}function Ya(t,e){window.sessionStorage.setItem(t,e)}function Va(t){window.sessionStorage.removeItem(t)}function Ja(){window.sessionStorage.clear()}function Ka(){return!(!window.localStorage||!window.sessionStorage)}function Wa(t,e){return t.className.indexOf(e)>0}function Za(t,e){Wa(t,e)||(t.className+=" "+e)}function Qa(t,e){Wa(t,e)&&(t.className=t.className.replace(new RegExp(e,"gm"),""))}function Xa(t,e,r){Qa(t,r),Za(t,e)}function Ga(t,e={}){if(t)for(let r in e)t.style[r]=e[r]}function tc(t,e){if(t)return t.style[e]}function ec(t,e){t&&t.style.removeProperty(e)}function rc(t){const e={"<":"<",">":">","&":"&","(":"(",")":")","/":"/"," ":" ",'"':""","'":"'"};return t.replace(/[<>&|()\/ '"]/g,(function(t){return e[t]}))}function nc(t){const e={"<":"<",">":">","&":"&","(":"(",")":")","/":"/"," ":" ",""":'"',"'":"'"};return t.replace(/(<|>|&|(|)|/| |"|')/gi,(function(t,r){return e[r]}))}function ic(t){return new Promise(((e,r)=>{navigator.clipboard.writeText(t).then((()=>{e(t)})).catch((t=>{console.error("copy error!"),r(t)}))}))}function oc(){return new Promise(((t,e)=>{navigator.clipboard.readText().then((e=>{t(e)})).catch((t=>{e(t)}))}))}function sc(){let t=window.navigator.userAgent.toLowerCase(),e=t.match(/rv:([\d.]+)\) like gecko/)||t.match(/msie ([\d\.]+)/),r=t.match(/edg\/([\d\.]+)/),n=t.match(/firefox\/([\d\.]+)/),i=t.match(/(?:opera|opr).([\d\.]+)/),o=t.match(/chrome\/([\d\.]+)/),s=t.match(/version\/([\d\.]+).*safari/);return e?{name:"ie",version:e[1]}:r?{name:"edge",version:r[1]}:n?{name:"firefox",version:n[1]}:i?{name:"opera",version:i[1]}:o?{name:"chrome",version:o[1]}:s?{name:"safari",version:s[1]}:"unknown"}function hc(){return!uc()}function uc(){let t=window.navigator.userAgent;return/Android|webOS|iPhone|iPod|BlackBerry|Windows Phone|IEMobile/i.test(t)}function ac(){let t=window.navigator.userAgent;return/Android|BlackBerry/i.test(t)}function cc(){let t=window.navigator.userAgent;return/iPhone|iPad|iPod|iOS/i.test(t)}function fc(){let t=window.navigator.userAgent;return/Windows Phone/i.test(t)}function lc(){let t=window.navigator.userAgent;return/win/i.test(t)}function pc(){let t=window.navigator.userAgent;return/linux/i.test(t)}function dc(){let t=window.navigator.userAgent;return/mac/i.test(t)}function gc(){let t=window.navigator.userAgent;return/iPhone/i.test(t)}function yc(){let t=window.navigator.userAgent;return/iPod/i.test(t)}function wc(){let t=window.navigator.userAgent;return/MicroMessenger/i.test(t)}function mc(){let t=window.navigator.userAgent;return/QQ/i.test(t)}function bc(){return new Promise(((t,e)=>{window.navigator.clipboard?window.navigator.clipboard.read().then((e=>{let r=[];for(let t of e)for(let e of t.types)t.getType(e).then((async t=>{if(t.type.includes("text")){let e=await Gr(t);r.push({type:t.type,data:e})}else r.push({type:t.type,data:t})}));t(r)})):console.warn("not support navigator clipboard!")}))}function Ac(){return new Promise(((t,e)=>{window.navigator.clipboard?window.navigator.clipboard.readText().then((e=>{t(e)})).catch((t=>{e(t)})):console.warn("not support navigator clipboard!")}))}function vc(t){return new Promise(((e,r)=>{if(window.navigator.clipboard){let n=null;if("string"==typeof t){let e=new Blob([t],{type:"text/plain"});n=new window.ClipboardItem({"text/plain":e})}else n=new window.ClipboardItem({[t.type]:t});window.navigator.clipboard.write([n]).then((t=>{e(!0)}),(t=>{r(!1)}))}else console.warn("not support navigator clipboard!")}))}function Sc(t){return new Promise(((e,r)=>{window.navigator.clipboard?window.navigator.clipboard.writeText(t).then((t=>{e(!0)}),(t=>{r(!1)})):console.warn("not support navigator clipboard!")}))}function Dc(){return new Promise((async(t,e)=>{await Sc(""),t(!0)}))}function Ec(t,e){wx.setStorageSync(t,e)}function Fc(t){return wx.getStorageSync(t)}function Mc(){return wx.getStorageInfoSync()}function Bc(t){wx.removeStorageSync(t)}function Cc(){wx.clearStorageSync()}function Tc({key:t,data:e,encrypt:r=!1}){return new Promise(((n,i)=>{wx.setStorage({key:t,data:e,encrypt:r,success(t){n(t)},fail(t){i(t)}})}))}function Oc({key:t,encrypt:e=!1}){return new Promise(((r,n)=>{wx.getStorage({key:t,encrypt:e,success(t){r(t)},fail(t){n(t)}})}))}function Ic(){return new Promise(((t,e)=>{wx.getStorageInfo({success(e){t(e)},fail(t){e(t)}})}))}function Rc({key:t}){return new Promise(((e,r)=>{wx.removeStorage({key:t,success(t){e(t)},fail(t){r(t)}})}))}function _c(){return new Promise(((t,e)=>{wx.clearStorage({success(e){t(e)},fail(t){e(t)}})}))}const xc=function(){console.log("Nice, iUtils loaded successfully!")};export{i as DATE,r as LANG,e as MATH,n as REGEXP,t as SORT,Er as add,Za as addClass,dr as addDate,gr as addHours,mr as addMillisecond,yr as addMinutes,pr as addMonth,Ar as addQuarter,wr as addSeconds,Ga as addStyle,br as addWeek,lr as addYear,Zu as aes,Oa as appendSearchParam,Ia as appendToSearchParam,st as arrayAvg,wt as arrayBottom,Tt as arrayComplement,at as arrayCreate,Ct as arrayDifference,bt as arrayDown,ut as arrayEquals,ct as arrayInsert,lt as arrayInsertAfter,ft as arrayInsertBefore,Bt as arrayIntersect,it as arrayMax,nt as arrayMin,pt as arrayRemove,gt as arrayRemoveAfter,dt as arrayRemoveBefore,Dt as arrayShuffle,vt as arraySort,ot as arraySum,At as arraySwap,Et as arrayToTree,yt as arrayTop,Mt as arrayUnion,St as arrayUnique,mt as arrayUp,Zn as base32,$n as base64,rn as base64ToBlob,en as base64ToFile,tn as blobToBase64,Xr as blobToFile,Gr as blobToText,Dc as clearClipboard,za as clearCookie,qa as clearLocalStorage,Ja as clearSessionStorage,_c as clearStorage,Cc as clearStorageSync,Ut as clone,Pt as cloneDeep,ic as copyText,Lt as debounce,rt as deepCompare,ta as des,Br as divide,on as downloadBlobFile,sn as downloadFileUrl,tt as equals,et as equalsIgnoreCase,Wr as fileToBase64,Kr as fileToBlob,Zr as fileToUrl,vr as formatDate,Yr as formatFileSize,A as formatRmbChinese,xa as formatSearchString,sa as formatStartOfBankCard,oa as formatStartOfIDCard,ia as formatStartOfMobile,na as formatStartOfName,b as formatThousand,Tr as gcd,ar as getAge,ca as getAgeByIDCard,ir as getBetweenDates,or as getBetweenMonths,sr as getBetweenYears,aa as getBirthdayByIDCard,sc as getBrowserInfo,fr as getChineseZodiac,bc as getClipboard,Ac as getClipboardText,Ua as getCookie,oc as getCopyText,Be as getDate,Re as getDateArray,Ie as getDateObject,Ce as getDateTime,Ue as getDayOfMonth,Ne as getDayOfWeek,Pe as getDayOfYear,$e as getDaysOfMonth,je as getDaysOfWeek,Le as getDaysOfYear,tr as getDiffDay,rr as getDiffMonth,er as getDiffWeek,nr as getDiffYear,Vr as getFileName,Jr as getFileSuffix,Ke as getFirstDateOfMonth,Ye as getFirstDateOfWeek,Qe as getFirstDateOfYear,Ze as getFullDateOfMonth,Je as getFullDateOfWeek,Ge as getFullDateOfYear,vn as getGUID,ba as getHost,Aa as getHostName,ua as getInfoByIDCard,bn as getKeyCode,mn as getKeyName,We as getLastDateOfMonth,Ve as getLastDateOfWeek,Xe as getLastDateOfYear,pa as getLimit,ja as getLocalStorage,wa as getNextPage,Me as getNow,ur as getOverTime,hr as getPastTime,va as getPort,ya as getPrevPage,ma as getProtocol,la as getProvinceByIDCard,xe as getQuarter,ga as getRainbowPager,qr as getRandom,Hr as getRandomDigit,pn as getRandomHex,dn as getRandomRgb,gn as getRandomRgba,Fa as getSearchParam,Ea as getSearchString,Ha as getSessionStorage,fa as getSexByIDCard,Oc as getStorage,Ic as getStorageInfo,Mc as getStorageInfoSync,Fc as getStorageSync,tc as getStyle,jt as getTargetValueByPath,Te as getTimestamp,da as getTotalPage,An as getUUID,Oe as getUnixTimestamp,Da as getUrlHash,Sa as getUrlPath,_e as getWeek,ke as getWeekOfMonth,ze as getWeekOfYear,qe as getWeeksOfMonth,He as getWeeksOfYear,cr as getZodiac,Wa as hasClass,Ba as hasSearchParam,ln as hexToHsl,cn as hexToRgb,fn as hexToRgba,nc as htmlDecode,rc as htmlEncode,ht as inArray,y as inString,te as isAM,me as isAfter,se as isAfterTomorrow,ac as isAndroid,M as isArray,I as isAsyncFunction,we as isBefore,ie as isBeforeYesterday,be as isBetween,j as isBigInt,Z as isBlank,C as isBoolean,xr as isChinese,ye as isCommonYear,T as isDate,D as isDecimal,jr as isEmail,K as isEmpty,Nr as isEnglish,x as isError,Ur as isExternal,q as isFalse,fe as isFirstDayOfMonth,ae as isFirstDayOfWeek,pe as isFirstDayOfYear,O as isFunction,$r as isIdCard,S as isInteger,cc as isIos,yc as isIpad,gc as isIphone,$ as isJson,le as isLastDayOfMonth,ce as isLastDayOfWeek,de as isLastDayOfYear,ge as isLeapYear,pc as isLinux,Pr as isLowerCase,dc as isMac,U as isMap,zr as isMobile,H as isNaN,Q as isNotBlank,W as isNotEmpty,Y as isNotNaN,J as isNotNull,G as isNotUndefined,V as isNull,E as isNumber,B as isObject,ee as isPM,hc as isPc,uc as isPhone,N as isPromise,mc as isQQ,_ as isRegExp,Ae as isSame,Se as isSameMonth,Fe as isSameOrAfter,Ee as isSameOrBefore,ve as isSameWeek,De as isSameYear,k as isSet,F as isString,Na as isSupportCookie,Ka as isSupportStorage,R as isSymbol,re as isToday,oe as isTomorrow,L as isTrue,X as isUndefined,kr as isUpperCase,Lr as isUrl,P as isWeakMap,z as isWeakSet,ue as isWeekend,wc as isWeixin,lc as isWindows,fc as isWindowsPhone,he as isWorkday,ne as isYesterday,_t as jsonToMap,Zt as lastMonth,Kt as lastWeek,Xt as lastYear,xc as loadedTest,It as mapToJson,Ot as mapToObject,vi as md5,Si as md5_hmac,zt as merge,Cr as modulo,Mr as multiply,Qt as nextMonth,Wt as nextWeek,Gt as nextYear,kt as objectEquals,Rt as objectToMap,Sr as parseDate,v as parseInt,Nt as parseJson,_a as parseSearchParam,Ca as prependSearchParam,Ta as prependToSearchParam,_r as regexpTest,Qa as removeClass,ka as removeCookie,La as removeLocalStorage,Ra as removeSearchParam,Va as removeSessionStorage,Rc as removeStorage,Bc as removeStorageSync,ec as removeStyle,a as replaceAll,Xa as replaceClass,hn as rgbToHex,un as rgbaToHex,an as rgbaToHsl,Or as scm,vc as setClipboard,Sc as setClipboardText,Pa as setCookie,$a as setLocalStorage,Ma as setSearchParam,Ya as setSessionStorage,Tc as setStorage,Ec as setStorageSync,$t as setTargetValueByPath,Hi as sha1,Yi as sha1_hmac,wo as sha224,bo as sha224_hmac,yo as sha256,mo as sha256_hmac,Wo as sha384,Go as sha384_hmac,Hs as sha3_224,qs as sha3_256,Ls as sha3_384,$s as sha3_512,Ko as sha512,Qo as sha512_224,es as sha512_224_hmac,Zo as sha512_256,ts as sha512_256_hmac,Xo as sha512_hmac,Ht as sleep,Mu as sm2,Ou as sm3,qu as sm4,xt as stringifyJson,Fr as subtract,ra as tea,qt as throttle,d as toCamelCase,Rr as toDecimal,Ir as toFixed,p as toKebabCase,f as toLower,g as toPascalCase,l as toSnakeCase,c as toUpper,Yt as today,Jt as tomorrow,Ft as treeToArray,o as trim,u as trimAll,h as trimEnd,s as trimStart,nn as urlToBase64,Qr as urlToFile,Vt as yesterday,m as zeroEnd,w as zeroStart};
|
|
1
|
+
function t(t=32,n=16){const o="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split("");let e,r=[];if(n=n||o.length,t)for(e=0;e<t;e++)r[e]=o[0|Math.random()*n];else{let t;for(r[8]=r[13]=r[18]=r[23]="-",r[14]="4",e=0;e<36;e++)r[e]||(t=0|16*Math.random(),r[e]=o[19===e?3&t|8:t])}return r.join("")}function n(){let t=function(){return(65536*(1+Math.random())|0).toString(16).substring(1)};return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()}function o(){console.log("Nice, iUtils loaded successfully!")}export{n as getGUID,t as getUUID,o as loadedTest};
|
|
2
|
+
//# sourceMappingURL=index.full.esm.min.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.full.esm.min.js","sources":["../../src/id/index.ts","../../src/index.ts"],"sourcesContent":["/**\r\n * 生成UUID\r\n * @param {Number} len 生成的长度,默认32位\r\n * @param {Number} radix 进制数,默认16进制\r\n * @example\r\n * getUUID() // 输出:0a559343dbbf0e7e6c1de90163e7aa0a\r\n * @returns {String} 返回字符串\r\n */\r\nexport function getUUID(len: number = 32, radix: number = 16): string {\r\n const CHARS = \"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\".split(\"\");\r\n let uuid = [],\r\n i;\r\n radix = radix || CHARS.length;\r\n if (len) {\r\n for (i = 0; i < len; i++) uuid[i] = CHARS[0 | (Math.random() * radix)];\r\n } else {\r\n let r;\r\n uuid[8] = uuid[13] = uuid[18] = uuid[23] = \"-\";\r\n uuid[14] = \"4\";\r\n for (i = 0; i < 36; i++) {\r\n if (!uuid[i]) {\r\n r = 0 | (Math.random() * 16);\r\n uuid[i] = CHARS[i === 19 ? (r & 0x3) | 0x8 : r];\r\n }\r\n }\r\n }\r\n return uuid.join(\"\");\r\n}\r\n\r\n/**\r\n * 生成GUID\r\n * @example\r\n * getGUID() // 输出:275ec770-0853-6767-4875-7b270220ce9c\r\n * @returns {String} 返回字符串\r\n */\r\nexport function getGUID(): string {\r\n let s4 = function () {\r\n return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);\r\n };\r\n return s4() + s4() + \"-\" + s4() + \"-\" + s4() + \"-\" + s4() + \"-\" + s4() + s4() + s4();\r\n}\r\n","// 测试加载成功方法\r\nexport function loadedTest(): void {\r\n console.log(\"Nice, iUtils loaded successfully!\");\r\n}\r\n\r\n// 生成id\r\nexport * from \"./id/index.ts\";\r\n"],"names":["getUUID","len","radix","CHARS","split","i","uuid","length","Math","random","r","join","getGUID","s4","toString","substring","loadedTest","console","log"],"mappings":"AAQO,SAASA,EAAQC,EAAc,GAAIC,EAAgB,IACxD,MAAMC,EAAQ,iEAAiEC,MAAM,IACrF,IACEC,EADEC,EAAO,GAGX,GADAJ,EAAQA,GAASC,EAAMI,OACnBN,EACF,IAAKI,EAAI,EAAGA,EAAIJ,EAAKI,IAAKC,EAAKD,GAAKF,EAAM,EAAKK,KAAKC,SAAWP,OAC1D,CACL,IAAIQ,EAGJ,IAFAJ,EAAK,GAAKA,EAAK,IAAMA,EAAK,IAAMA,EAAK,IAAM,IAC3CA,EAAK,IAAM,IACND,EAAI,EAAGA,EAAI,GAAIA,IACbC,EAAKD,KACRK,EAAI,EAAqB,GAAhBF,KAAKC,SACdH,EAAKD,GAAKF,EAAY,KAANE,EAAgB,EAAJK,EAAW,EAAMA,GAGnD,CACA,OAAOJ,EAAKK,KAAK,GACnB,CAQO,SAASC,IACd,IAAIC,EAAK,WACP,OAA+B,OAArB,EAAIL,KAAKC,UAAuB,GAAGK,SAAS,IAAIC,UAAU,EACtE,EACA,OAAOF,IAAOA,IAAO,IAAMA,IAAO,IAAMA,IAAO,IAAMA,IAAO,IAAMA,IAAOA,IAAOA,GAClF,CCvCO,SAASG,IACdC,QAAQC,IAAI,oCACd"}
|