jcc_wallet 4.0.2 → 4.0.4
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/dist/jcc-wallet.min.js +54 -30
- package/lib/eccrypto.d.ts +3 -3
- package/lib/eccrypto.js +12 -13
- package/lib/hd/constant.d.ts +3 -1
- package/lib/hd/constant.js +5 -1
- package/lib/hd/eos.plugin.js +4 -4
- package/lib/hd/ethereum.plugin.js +6 -6
- package/lib/hd/index.js +17 -7
- package/lib/hd/plugins.js +4 -1
- package/lib/hd/swtc.plugin.js +6 -6
- package/lib/hd/tron.plugin.js +1 -1
- package/lib/index.js +17 -7
- package/lib/jingchangWallet.js +21 -11
- package/lib/minify-eosjs/PrivateKey.d.ts +1 -1
- package/lib/minify-eosjs/PublicKey.d.ts +1 -1
- package/lib/minify-eosjs/Signature.d.ts +1 -1
- package/lib/minify-eosjs/eosjs-key-conversions.d.ts +1 -1
- package/lib/minify-eosjs/eosjs-key-conversions.js +4 -4
- package/lib/minify-eosjs/eosjs-numeric.js +8 -8
- package/lib/minify-ethereumjs-util/account.js +2 -2
- package/lib/minify-ethereumjs-util/signature.js +3 -3
- package/lib/minify-swtc-keypair/address-codec.js +3 -3
- package/lib/minify-swtc-keypair/index.js +32 -43
- package/lib/minify-swtc-keypair/sha512.d.ts +1 -1
- package/lib/minify-swtc-keypair/sha512.js +4 -4
- package/lib/minify-swtc-keypair/utils.js +4 -4
- package/lib/minify-tron/crypto.js +2 -2
- package/lib/util/index.js +6 -6
- package/package.json +10 -16
package/dist/jcc-wallet.min.js
CHANGED
|
@@ -1,52 +1,76 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.jcc_wallet=t():e.jcc_wallet=t()}(self,(()=>(()=>{var e={2269:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getHash=i,t.createCurve=function(e,t){const r=t=>(0,n.weierstrass)({...e,...i(t)});return Object.freeze({...r(t),create:r})};
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.jcc_wallet=t():e.jcc_wallet=t()}(self,()=>(()=>{var e={81:e=>{"use strict";e.exports=JSON.parse('["的","一","是","在","不","了","有","和","人","這","中","大","為","上","個","國","我","以","要","他","時","來","用","們","生","到","作","地","於","出","就","分","對","成","會","可","主","發","年","動","同","工","也","能","下","過","子","說","產","種","面","而","方","後","多","定","行","學","法","所","民","得","經","十","三","之","進","著","等","部","度","家","電","力","裡","如","水","化","高","自","二","理","起","小","物","現","實","加","量","都","兩","體","制","機","當","使","點","從","業","本","去","把","性","好","應","開","它","合","還","因","由","其","些","然","前","外","天","政","四","日","那","社","義","事","平","形","相","全","表","間","樣","與","關","各","重","新","線","內","數","正","心","反","你","明","看","原","又","麼","利","比","或","但","質","氣","第","向","道","命","此","變","條","只","沒","結","解","問","意","建","月","公","無","系","軍","很","情","者","最","立","代","想","已","通","並","提","直","題","黨","程","展","五","果","料","象","員","革","位","入","常","文","總","次","品","式","活","設","及","管","特","件","長","求","老","頭","基","資","邊","流","路","級","少","圖","山","統","接","知","較","將","組","見","計","別","她","手","角","期","根","論","運","農","指","幾","九","區","強","放","決","西","被","幹","做","必","戰","先","回","則","任","取","據","處","隊","南","給","色","光","門","即","保","治","北","造","百","規","熱","領","七","海","口","東","導","器","壓","志","世","金","增","爭","濟","階","油","思","術","極","交","受","聯","什","認","六","共","權","收","證","改","清","美","再","採","轉","更","單","風","切","打","白","教","速","花","帶","安","場","身","車","例","真","務","具","萬","每","目","至","達","走","積","示","議","聲","報","鬥","完","類","八","離","華","名","確","才","科","張","信","馬","節","話","米","整","空","元","況","今","集","溫","傳","土","許","步","群","廣","石","記","需","段","研","界","拉","林","律","叫","且","究","觀","越","織","裝","影","算","低","持","音","眾","書","布","复","容","兒","須","際","商","非","驗","連","斷","深","難","近","礦","千","週","委","素","技","備","半","辦","青","省","列","習","響","約","支","般","史","感","勞","便","團","往","酸","歷","市","克","何","除","消","構","府","稱","太","準","精","值","號","率","族","維","劃","選","標","寫","存","候","毛","親","快","效","斯","院","查","江","型","眼","王","按","格","養","易","置","派","層","片","始","卻","專","狀","育","廠","京","識","適","屬","圓","包","火","住","調","滿","縣","局","照","參","紅","細","引","聽","該","鐵","價","嚴","首","底","液","官","德","隨","病","蘇","失","爾","死","講","配","女","黃","推","顯","談","罪","神","藝","呢","席","含","企","望","密","批","營","項","防","舉","球","英","氧","勢","告","李","台","落","木","幫","輪","破","亞","師","圍","注","遠","字","材","排","供","河","態","封","另","施","減","樹","溶","怎","止","案","言","士","均","武","固","葉","魚","波","視","僅","費","緊","愛","左","章","早","朝","害","續","輕","服","試","食","充","兵","源","判","護","司","足","某","練","差","致","板","田","降","黑","犯","負","擊","范","繼","興","似","餘","堅","曲","輸","修","故","城","夫","夠","送","筆","船","佔","右","財","吃","富","春","職","覺","漢","畫","功","巴","跟","雖","雜","飛","檢","吸","助","昇","陽","互","初","創","抗","考","投","壞","策","古","徑","換","未","跑","留","鋼","曾","端","責","站","簡","述","錢","副","盡","帝","射","草","衝","承","獨","令","限","阿","宣","環","雙","請","超","微","讓","控","州","良","軸","找","否","紀","益","依","優","頂","礎","載","倒","房","突","坐","粉","敵","略","客","袁","冷","勝","絕","析","塊","劑","測","絲","協","訴","念","陳","仍","羅","鹽","友","洋","錯","苦","夜","刑","移","頻","逐","靠","混","母","短","皮","終","聚","汽","村","雲","哪","既","距","衛","停","烈","央","察","燒","迅","境","若","印","洲","刻","括","激","孔","搞","甚","室","待","核","校","散","侵","吧","甲","遊","久","菜","味","舊","模","湖","貨","損","預","阻","毫","普","穩","乙","媽","植","息","擴","銀","語","揮","酒","守","拿","序","紙","醫","缺","雨","嗎","針","劉","啊","急","唱","誤","訓","願","審","附","獲","茶","鮮","糧","斤","孩","脫","硫","肥","善","龍","演","父","漸","血","歡","械","掌","歌","沙","剛","攻","謂","盾","討","晚","粒","亂","燃","矛","乎","殺","藥","寧","魯","貴","鐘","煤","讀","班","伯","香","介","迫","句","豐","培","握","蘭","擔","弦","蛋","沉","假","穿","執","答","樂","誰","順","煙","縮","徵","臉","喜","松","腳","困","異","免","背","星","福","買","染","井","概","慢","怕","磁","倍","祖","皇","促","靜","補","評","翻","肉","踐","尼","衣","寬","揚","棉","希","傷","操","垂","秋","宜","氫","套","督","振","架","亮","末","憲","慶","編","牛","觸","映","雷","銷","詩","座","居","抓","裂","胞","呼","娘","景","威","綠","晶","厚","盟","衡","雞","孫","延","危","膠","屋","鄉","臨","陸","顧","掉","呀","燈","歲","措","束","耐","劇","玉","趙","跳","哥","季","課","凱","胡","額","款","紹","卷","齊","偉","蒸","殖","永","宗","苗","川","爐","岩","弱","零","楊","奏","沿","露","桿","探","滑","鎮","飯","濃","航","懷","趕","庫","奪","伊","靈","稅","途","滅","賽","歸","召","鼓","播","盤","裁","險","康","唯","錄","菌","純","借","糖","蓋","橫","符","私","努","堂","域","槍","潤","幅","哈","竟","熟","蟲","澤","腦","壤","碳","歐","遍","側","寨","敢","徹","慮","斜","薄","庭","納","彈","飼","伸","折","麥","濕","暗","荷","瓦","塞","床","築","惡","戶","訪","塔","奇","透","梁","刀","旋","跡","卡","氯","遇","份","毒","泥","退","洗","擺","灰","彩","賣","耗","夏","擇","忙","銅","獻","硬","予","繁","圈","雪","函","亦","抽","篇","陣","陰","丁","尺","追","堆","雄","迎","泛","爸","樓","避","謀","噸","野","豬","旗","累","偏","典","館","索","秦","脂","潮","爺","豆","忽","托","驚","塑","遺","愈","朱","替","纖","粗","傾","尚","痛","楚","謝","奮","購","磨","君","池","旁","碎","骨","監","捕","弟","暴","割","貫","殊","釋","詞","亡","壁","頓","寶","午","塵","聞","揭","炮","殘","冬","橋","婦","警","綜","招","吳","付","浮","遭","徐","您","搖","谷","贊","箱","隔","訂","男","吹","園","紛","唐","敗","宋","玻","巨","耕","坦","榮","閉","灣","鍵","凡","駐","鍋","救","恩","剝","凝","鹼","齒","截","煉","麻","紡","禁","廢","盛","版","緩","淨","睛","昌","婚","涉","筒","嘴","插","岸","朗","莊","街","藏","姑","貿","腐","奴","啦","慣","乘","夥","恢","勻","紗","扎","辯","耳","彪","臣","億","璃","抵","脈","秀","薩","俄","網","舞","店","噴","縱","寸","汗","掛","洪","賀","閃","柬","爆","烯","津","稻","牆","軟","勇","像","滾","厘","蒙","芳","肯","坡","柱","盪","腿","儀","旅","尾","軋","冰","貢","登","黎","削","鑽","勒","逃","障","氨","郭","峰","幣","港","伏","軌","畝","畢","擦","莫","刺","浪","秘","援","株","健","售","股","島","甘","泡","睡","童","鑄","湯","閥","休","匯","舍","牧","繞","炸","哲","磷","績","朋","淡","尖","啟","陷","柴","呈","徒","顏","淚","稍","忘","泵","藍","拖","洞","授","鏡","辛","壯","鋒","貧","虛","彎","摩","泰","幼","廷","尊","窗","綱","弄","隸","疑","氏","宮","姐","震","瑞","怪","尤","琴","循","描","膜","違","夾","腰","緣","珠","窮","森","枝","竹","溝","催","繩","憶","邦","剩","幸","漿","欄","擁","牙","貯","禮","濾","鈉","紋","罷","拍","咱","喊","袖","埃","勤","罰","焦","潛","伍","墨","欲","縫","姓","刊","飽","仿","獎","鋁","鬼","麗","跨","默","挖","鏈","掃","喝","袋","炭","污","幕","諸","弧","勵","梅","奶","潔","災","舟","鑑","苯","訟","抱","毀","懂","寒","智","埔","寄","屆","躍","渡","挑","丹","艱","貝","碰","拔","爹","戴","碼","夢","芽","熔","赤","漁","哭","敬","顆","奔","鉛","仲","虎","稀","妹","乏","珍","申","桌","遵","允","隆","螺","倉","魏","銳","曉","氮","兼","隱","礙","赫","撥","忠","肅","缸","牽","搶","博","巧","殼","兄","杜","訊","誠","碧","祥","柯","頁","巡","矩","悲","灌","齡","倫","票","尋","桂","鋪","聖","恐","恰","鄭","趣","抬","荒","騰","貼","柔","滴","猛","闊","輛","妻","填","撤","儲","簽","鬧","擾","紫","砂","遞","戲","吊","陶","伐","餵","療","瓶","婆","撫","臂","摸","忍","蝦","蠟","鄰","胸","鞏","擠","偶","棄","槽","勁","乳","鄧","吉","仁","爛","磚","租","烏","艦","伴","瓜","淺","丙","暫","燥","橡","柳","迷","暖","牌","秧","膽","詳","簧","踏","瓷","譜","呆","賓","糊","洛","輝","憤","競","隙","怒","粘","乃","緒","肩","籍","敏","塗","熙","皆","偵","懸","掘","享","糾","醒","狂","鎖","淀","恨","牲","霸","爬","賞","逆","玩","陵","祝","秒","浙","貌","役","彼","悉","鴨","趨","鳳","晨","畜","輩","秩","卵","署","梯","炎","灘","棋","驅","篩","峽","冒","啥","壽","譯","浸","泉","帽","遲","矽","疆","貸","漏","稿","冠","嫩","脅","芯","牢","叛","蝕","奧","鳴","嶺","羊","憑","串","塘","繪","酵","融","盆","錫","廟","籌","凍","輔","攝","襲","筋","拒","僚","旱","鉀","鳥","漆","沈","眉","疏","添","棒","穗","硝","韓","逼","扭","僑","涼","挺","碗","栽","炒","杯","患","餾","勸","豪","遼","勃","鴻","旦","吏","拜","狗","埋","輥","掩","飲","搬","罵","辭","勾","扣","估","蔣","絨","霧","丈","朵","姆","擬","宇","輯","陝","雕","償","蓄","崇","剪","倡","廳","咬","駛","薯","刷","斥","番","賦","奉","佛","澆","漫","曼","扇","鈣","桃","扶","仔","返","俗","虧","腔","鞋","棱","覆","框","悄","叔","撞","騙","勘","旺","沸","孤","吐","孟","渠","屈","疾","妙","惜","仰","狠","脹","諧","拋","黴","桑","崗","嘛","衰","盜","滲","臟","賴","湧","甜","曹","閱","肌","哩","厲","烴","緯","毅","昨","偽","症","煮","嘆","釘","搭","莖","籠","酷","偷","弓","錐","恆","傑","坑","鼻","翼","綸","敘","獄","逮","罐","絡","棚","抑","膨","蔬","寺","驟","穆","冶","枯","冊","屍","凸","紳","坯","犧","焰","轟","欣","晉","瘦","禦","錠","錦","喪","旬","鍛","壟","搜","撲","邀","亭","酯","邁","舒","脆","酶","閒","憂","酚","頑","羽","漲","卸","仗","陪","闢","懲","杭","姚","肚","捉","飄","漂","昆","欺","吾","郎","烷","汁","呵","飾","蕭","雅","郵","遷","燕","撒","姻","赴","宴","煩","債","帳","斑","鈴","旨","醇","董","餅","雛","姿","拌","傅","腹","妥","揉","賢","拆","歪","葡","胺","丟","浩","徽","昂","墊","擋","覽","貪","慰","繳","汪","慌","馮","諾","姜","誼","兇","劣","誣","耀","昏","躺","盈","騎","喬","溪","叢","盧","抹","悶","諮","刮","駕","纜","悟","摘","鉺","擲","頗","幻","柄","惠","慘","佳","仇","臘","窩","滌","劍","瞧","堡","潑","蔥","罩","霍","撈","胎","蒼","濱","倆","捅","湘","砍","霞","邵","萄","瘋","淮","遂","熊","糞","烘","宿","檔","戈","駁","嫂","裕","徙","箭","捐","腸","撐","曬","辨","殿","蓮","攤","攪","醬","屏","疫","哀","蔡","堵","沫","皺","暢","疊","閣","萊","敲","轄","鉤","痕","壩","巷","餓","禍","丘","玄","溜","曰","邏","彭","嘗","卿","妨","艇","吞","韋","怨","矮","歇"]')},91:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getIcapAddress=t.getAddress=void 0;const o=r(7256),n=r(1490),a=BigInt(0),i=BigInt(36);function s(e){const t=(e=e.toLowerCase()).substring(2).split(""),r=new Uint8Array(40);for(let e=0;e<40;e++)r[e]=t[e].charCodeAt(0);const a=(0,n.getBytes)((0,o.keccak256)(r));for(let e=0;e<40;e+=2)a[e>>1]>>4>=8&&(t[e]=t[e].toUpperCase()),(15&a[e>>1])>=8&&(t[e+1]=t[e+1].toUpperCase());return"0x"+t.join("")}const c={};for(let e=0;e<10;e++)c[String(e)]=String(e);for(let e=0;e<26;e++)c[String.fromCharCode(65+e)]=String(10+e);function l(e){let t=(e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+"00").split("").map(e=>c[e]).join("");for(;t.length>=15;){let e=t.substring(0,15);t=parseInt(e,10)%97+t.substring(e.length)}let r=String(98-parseInt(t,10)%97);for(;r.length<2;)r="0"+r;return r}const u=function(){const e={};for(let t=0;t<36;t++){e["0123456789abcdefghijklmnopqrstuvwxyz"[t]]=BigInt(t)}return e}();function f(e){if((0,n.assertArgument)("string"==typeof e,"invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/)){e.startsWith("0x")||(e="0x"+e);const t=s(e);return(0,n.assertArgument)(!e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)||t===e,"bad address checksum","address",e),t}if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){(0,n.assertArgument)(e.substring(2,4)===l(e),"bad icap checksum","address",e);let t=function(e){e=e.toLowerCase();let t=a;for(let r=0;r<e.length;r++)t=t*i+u[e[r]];return t}(e.substring(4)).toString(16);for(;t.length<40;)t="0"+t;return s("0x"+t)}(0,n.assertArgument)(!1,"invalid address","address",e)}t.getAddress=f,t.getIcapAddress=function(e){let t=BigInt(f(e)).toString(36).toUpperCase();for(;t.length<30;)t="0"+t;return"XE"+l("XE00"+t)+t}},102:(e,t)=>{"use strict";function r(e){if("string"!=typeof e)throw new Error("[isHexPrefixed] input must be type 'string', received type "+typeof e);return"0"===e[0]&&"x"===e[1]}Object.defineProperty(t,"__esModule",{value:!0}),t.stripHexPrefix=void 0,t.padToEven=function(e){let t=e;if("string"!=typeof t)throw new Error("[padToEven] value must be type 'string', received "+typeof t);t.length%2&&(t=`0${t}`);return t},t.isHexPrefixed=r;t.stripHexPrefix=e=>{if("string"!=typeof e)throw new Error("[stripHexPrefix] input must be type 'string', received "+typeof e);return r(e)?e.slice(2):e}},190:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ripemd160=t.RIPEMD160=t.md5=t.MD5=t.sha1=t.SHA1=void 0;const o=r(9877),n=r(4904),a=Uint32Array.from([1732584193,4023233417,2562383102,271733878,3285377520]),i=new Uint32Array(80);class s extends o.HashMD{constructor(){super(64,20,8,!1),this.A=0|a[0],this.B=0|a[1],this.C=0|a[2],this.D=0|a[3],this.E=0|a[4]}get(){const{A:e,B:t,C:r,D:o,E:n}=this;return[e,t,r,o,n]}set(e,t,r,o,n){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|o,this.E=0|n}process(e,t){for(let r=0;r<16;r++,t+=4)i[r]=e.getUint32(t,!1);for(let e=16;e<80;e++)i[e]=(0,n.rotl)(i[e-3]^i[e-8]^i[e-14]^i[e-16],1);let{A:r,B:a,C:s,D:c,E:l}=this;for(let e=0;e<80;e++){let t,u;e<20?(t=(0,o.Chi)(a,s,c),u=1518500249):e<40?(t=a^s^c,u=1859775393):e<60?(t=(0,o.Maj)(a,s,c),u=2400959708):(t=a^s^c,u=3395469782);const f=(0,n.rotl)(r,5)+t+l+u+i[e]|0;l=c,c=s,s=(0,n.rotl)(a,30),a=r,r=f}r=r+this.A|0,a=a+this.B|0,s=s+this.C|0,c=c+this.D|0,l=l+this.E|0,this.set(r,a,s,c,l)}roundClean(){(0,n.clean)(i)}destroy(){this.set(0,0,0,0,0),(0,n.clean)(this.buffer)}}t.SHA1=s,t.sha1=(0,n.createHasher)(()=>new s);const c=Math.pow(2,32),l=Array.from({length:64},(e,t)=>Math.floor(c*Math.abs(Math.sin(t+1)))),u=a.slice(0,4),f=new Uint32Array(16);class d extends o.HashMD{constructor(){super(64,16,8,!0),this.A=0|u[0],this.B=0|u[1],this.C=0|u[2],this.D=0|u[3]}get(){const{A:e,B:t,C:r,D:o}=this;return[e,t,r,o]}set(e,t,r,o){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|o}process(e,t){for(let r=0;r<16;r++,t+=4)f[r]=e.getUint32(t,!0);let{A:r,B:a,C:i,D:s}=this;for(let e=0;e<64;e++){let t,c,u;e<16?(t=(0,o.Chi)(a,i,s),c=e,u=[7,12,17,22]):e<32?(t=(0,o.Chi)(s,a,i),c=(5*e+1)%16,u=[5,9,14,20]):e<48?(t=a^i^s,c=(3*e+5)%16,u=[4,11,16,23]):(t=i^(a|~s),c=7*e%16,u=[6,10,15,21]),t=t+r+l[e]+f[c],r=s,s=i,i=a,a+=(0,n.rotl)(t,u[e%4])}r=r+this.A|0,a=a+this.B|0,i=i+this.C|0,s=s+this.D|0,this.set(r,a,i,s)}roundClean(){(0,n.clean)(f)}destroy(){this.set(0,0,0,0),(0,n.clean)(this.buffer)}}t.MD5=d,t.md5=(0,n.createHasher)(()=>new d);const h=Uint8Array.from([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),p=(()=>Uint8Array.from(new Array(16).fill(0).map((e,t)=>t)))(),g=(()=>p.map(e=>(9*e+5)%16))(),m=(()=>{const e=[[p],[g]];for(let t=0;t<4;t++)for(let r of e)r.push(r[t].map(e=>h[e]));return e})(),b=(()=>m[0])(),y=(()=>m[1])(),v=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(e=>Uint8Array.from(e)),w=b.map((e,t)=>e.map(e=>v[t][e])),E=y.map((e,t)=>e.map(e=>v[t][e])),B=Uint32Array.from([0,1518500249,1859775393,2400959708,2840853838]),x=Uint32Array.from([1352829926,1548603684,1836072691,2053994217,0]);function A(e,t,r,o){return 0===e?t^r^o:1===e?t&r|~t&o:2===e?(t|~r)^o:3===e?t&o|r&~o:t^(r|~o)}const k=new Uint32Array(16);class S extends o.HashMD{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:e,h1:t,h2:r,h3:o,h4:n}=this;return[e,t,r,o,n]}set(e,t,r,o,n){this.h0=0|e,this.h1=0|t,this.h2=0|r,this.h3=0|o,this.h4=0|n}process(e,t){for(let r=0;r<16;r++,t+=4)k[r]=e.getUint32(t,!0);let r=0|this.h0,o=r,a=0|this.h1,i=a,s=0|this.h2,c=s,l=0|this.h3,u=l,f=0|this.h4,d=f;for(let e=0;e<5;e++){const t=4-e,h=B[e],p=x[e],g=b[e],m=y[e],v=w[e],S=E[e];for(let t=0;t<16;t++){const o=(0,n.rotl)(r+A(e,a,s,l)+k[g[t]]+h,v[t])+f|0;r=f,f=l,l=0|(0,n.rotl)(s,10),s=a,a=o}for(let e=0;e<16;e++){const r=(0,n.rotl)(o+A(t,i,c,u)+k[m[e]]+p,S[e])+d|0;o=d,d=u,u=0|(0,n.rotl)(c,10),c=i,i=r}}this.set(this.h1+s+u|0,this.h2+l+d|0,this.h3+f+o|0,this.h4+r+i|0,this.h0+a+c|0)}roundClean(){(0,n.clean)(k)}destroy(){this.destroyed=!0,(0,n.clean)(this.buffer),this.set(0,0,0,0,0)}}t.RIPEMD160=S,t.ripemd160=(0,n.createHasher)(()=>new S)},212:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unsafe=t.aeskwp=t.aeskw=t.siv=t.gcmsiv=t.gcm=t.cfb=t.cbc=t.ecb=t.ctr=void 0;const o=r(7837),n=r(4266),a=16,i=new Uint8Array(a);function s(e){return e<<1^283&-(e>>7)}function c(e,t){let r=0;for(;t>0;t>>=1)r^=e&-(1&t),e=s(e);return r}const l=(()=>{const e=new Uint8Array(256);for(let t=0,r=1;t<256;t++,r^=s(r))e[t]=r;const t=new Uint8Array(256);t[0]=99;for(let r=0;r<255;r++){let o=e[255-r];o|=o<<8,t[e[r]]=255&(o^o>>4^o>>5^o>>6^o>>7^99)}return(0,n.clean)(e),t})(),u=l.map((e,t)=>l.indexOf(t)),f=e=>e<<24|e>>>8,d=e=>e<<8|e>>>24,h=e=>e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255;function p(e,t){if(256!==e.length)throw new Error("Wrong sbox length");const r=new Uint32Array(256).map((r,o)=>t(e[o])),o=r.map(d),n=o.map(d),a=n.map(d),i=new Uint32Array(65536),s=new Uint32Array(65536),c=new Uint16Array(65536);for(let t=0;t<256;t++)for(let l=0;l<256;l++){const u=256*t+l;i[u]=r[t]^o[l],s[u]=n[t]^a[l],c[u]=e[t]<<8|e[l]}return{sbox:e,sbox2:c,T0:r,T1:o,T2:n,T3:a,T01:i,T23:s}}const g=p(l,e=>c(e,3)<<24|e<<16|e<<8|c(e,2)),m=p(u,e=>c(e,11)<<24|c(e,13)<<16|c(e,9)<<8|c(e,14)),b=(()=>{const e=new Uint8Array(16);for(let t=0,r=1;t<16;t++,r=s(r))e[t]=r;return e})();function y(e){(0,n.abytes)(e);const t=e.length;if(![16,24,32].includes(t))throw new Error("aes: invalid key size, should be 16, 24 or 32, got "+t);const{sbox2:r}=g,o=[];(0,n.isAligned32)(e)||o.push(e=(0,n.copyBytes)(e));const a=(0,n.u32)(e),i=a.length,s=e=>E(r,e,e,e,e),c=new Uint32Array(t+28);c.set(a);for(let e=i;e<c.length;e++){let t=c[e-1];e%i===0?t=s(f(t))^b[e/i-1]:i>6&&e%i===4&&(t=s(t)),c[e]=c[e-i]^t}return(0,n.clean)(...o),c}function v(e){const t=y(e),r=t.slice(),o=t.length,{sbox2:a}=g,{T0:i,T1:s,T2:c,T3:l}=m;for(let e=0;e<o;e+=4)for(let n=0;n<4;n++)r[e+n]=t[o-e-4+n];(0,n.clean)(t);for(let e=4;e<o-4;e++){const t=r[e],o=E(a,t,t,t,t);r[e]=i[255&o]^s[o>>>8&255]^c[o>>>16&255]^l[o>>>24]}return r}function w(e,t,r,o,n,a){return e[r<<8&65280|o>>>8&255]^t[n>>>8&65280|a>>>24&255]}function E(e,t,r,o,n){return e[255&t|65280&r]|e[o>>>16&255|n>>>16&65280]<<16}function B(e,t,r,o,n){const{sbox2:a,T01:i,T23:s}=g;let c=0;t^=e[c++],r^=e[c++],o^=e[c++],n^=e[c++];const l=e.length/4-2;for(let a=0;a<l;a++){const a=e[c++]^w(i,s,t,r,o,n),l=e[c++]^w(i,s,r,o,n,t),u=e[c++]^w(i,s,o,n,t,r),f=e[c++]^w(i,s,n,t,r,o);t=a,r=l,o=u,n=f}return{s0:e[c++]^E(a,t,r,o,n),s1:e[c++]^E(a,r,o,n,t),s2:e[c++]^E(a,o,n,t,r),s3:e[c++]^E(a,n,t,r,o)}}function x(e,t,r,o,n){const{sbox2:a,T01:i,T23:s}=m;let c=0;t^=e[c++],r^=e[c++],o^=e[c++],n^=e[c++];const l=e.length/4-2;for(let a=0;a<l;a++){const a=e[c++]^w(i,s,t,n,o,r),l=e[c++]^w(i,s,r,t,n,o),u=e[c++]^w(i,s,o,r,t,n),f=e[c++]^w(i,s,n,o,r,t);t=a,r=l,o=u,n=f}return{s0:e[c++]^E(a,t,n,o,r),s1:e[c++]^E(a,r,t,n,o),s2:e[c++]^E(a,o,r,t,n),s3:e[c++]^E(a,n,o,r,t)}}function A(e,t,r,o){(0,n.abytes)(t,a),(0,n.abytes)(r);const i=r.length;o=(0,n.getOutput)(i,o),(0,n.complexOverlapBytes)(r,o);const s=t,c=(0,n.u32)(s);let{s0:l,s1:u,s2:f,s3:d}=B(e,c[0],c[1],c[2],c[3]);const h=(0,n.u32)(r),p=(0,n.u32)(o);for(let t=0;t+4<=h.length;t+=4){p[t+0]=h[t+0]^l,p[t+1]=h[t+1]^u,p[t+2]=h[t+2]^f,p[t+3]=h[t+3]^d;let r=1;for(let e=s.length-1;e>=0;e--)r=r+(255&s[e])|0,s[e]=255&r,r>>>=8;({s0:l,s1:u,s2:f,s3:d}=B(e,c[0],c[1],c[2],c[3]))}const g=a*Math.floor(h.length/4);if(g<i){const e=new Uint32Array([l,u,f,d]),t=(0,n.u8)(e);for(let e=g,n=0;e<i;e++,n++)o[e]=r[e]^t[n];(0,n.clean)(e)}return o}function k(e,t,r,o,i){(0,n.abytes)(r,a),(0,n.abytes)(o),i=(0,n.getOutput)(o.length,i);const s=r,c=(0,n.u32)(s),l=(0,n.createView)(s),u=(0,n.u32)(o),f=(0,n.u32)(i),d=t?0:12,h=o.length;let p=l.getUint32(d,t),{s0:g,s1:m,s2:b,s3:y}=B(e,c[0],c[1],c[2],c[3]);for(let r=0;r+4<=u.length;r+=4)f[r+0]=u[r+0]^g,f[r+1]=u[r+1]^m,f[r+2]=u[r+2]^b,f[r+3]=u[r+3]^y,p=p+1>>>0,l.setUint32(d,p,t),({s0:g,s1:m,s2:b,s3:y}=B(e,c[0],c[1],c[2],c[3]));const v=a*Math.floor(u.length/4);if(v<h){const e=new Uint32Array([g,m,b,y]),t=(0,n.u8)(e);for(let e=v,r=0;e<h;e++,r++)i[e]=o[e]^t[r];(0,n.clean)(e)}return i}function S(e){if((0,n.abytes)(e),e.length%a!==0)throw new Error("aes-(cbc/ecb).decrypt ciphertext should consist of blocks with size 16")}function C(e,t,r){(0,n.abytes)(e);let o=e.length;const i=o%a;if(!t&&0!==i)throw new Error("aec/(cbc-ecb): unpadded plaintext with disabled padding");(0,n.isAligned32)(e)||(e=(0,n.copyBytes)(e));const s=(0,n.u32)(e);if(t){let e=a-i;e||(e=a),o+=e}r=(0,n.getOutput)(o,r),(0,n.complexOverlapBytes)(e,r);return{b:s,o:(0,n.u32)(r),out:r}}function T(e,t){if(!t)return e;const r=e.length;if(!r)throw new Error("aes/pcks5: empty ciphertext not allowed");const o=e[r-1];if(o<=0||o>16)throw new Error("aes/pcks5: wrong padding");const n=e.subarray(0,-o);for(let t=0;t<o;t++)if(e[r-t-1]!==o)throw new Error("aes/pcks5: wrong padding");return n}function P(e){const t=new Uint8Array(16),r=(0,n.u32)(t);t.set(e);const o=a-e.length;for(let e=a-o;e<a;e++)t[e]=o;return r}function O(e,t,r,o,a){const i=a?a.length:0,s=e.create(r,o.length+i);a&&s.update(a);const c=(0,n.u64Lengths)(8*o.length,8*i,t);s.update(o),s.update(c);const l=s.digest();return(0,n.clean)(c),l}t.ctr=(0,n.wrapCipher)({blockSize:16,nonceLength:16},function(e,t){function r(r,o){if((0,n.abytes)(r),void 0!==o&&((0,n.abytes)(o),!(0,n.isAligned32)(o)))throw new Error("unaligned destination");const a=y(e),i=(0,n.copyBytes)(t),s=[a,i];(0,n.isAligned32)(r)||s.push(r=(0,n.copyBytes)(r));const c=A(a,i,r,o);return(0,n.clean)(...s),c}return{encrypt:(e,t)=>r(e,t),decrypt:(e,t)=>r(e,t)}}),t.ecb=(0,n.wrapCipher)({blockSize:16},function(e,t={}){const r=!t.disablePadding;return{encrypt(t,o){const{b:a,o:i,out:s}=C(t,r,o),c=y(e);let l=0;for(;l+4<=a.length;){const{s0:e,s1:t,s2:r,s3:o}=B(c,a[l+0],a[l+1],a[l+2],a[l+3]);i[l++]=e,i[l++]=t,i[l++]=r,i[l++]=o}if(r){const e=P(t.subarray(4*l)),{s0:r,s1:o,s2:n,s3:a}=B(c,e[0],e[1],e[2],e[3]);i[l++]=r,i[l++]=o,i[l++]=n,i[l++]=a}return(0,n.clean)(c),s},decrypt(t,o){S(t);const a=v(e);o=(0,n.getOutput)(t.length,o);const i=[a];(0,n.isAligned32)(t)||i.push(t=(0,n.copyBytes)(t)),(0,n.complexOverlapBytes)(t,o);const s=(0,n.u32)(t),c=(0,n.u32)(o);for(let e=0;e+4<=s.length;){const{s0:t,s1:r,s2:o,s3:n}=x(a,s[e+0],s[e+1],s[e+2],s[e+3]);c[e++]=t,c[e++]=r,c[e++]=o,c[e++]=n}return(0,n.clean)(...i),T(o,r)}}}),t.cbc=(0,n.wrapCipher)({blockSize:16,nonceLength:16},function(e,t,r={}){const o=!r.disablePadding;return{encrypt(r,a){const i=y(e),{b:s,o:c,out:l}=C(r,o,a);let u=t;const f=[i];(0,n.isAligned32)(u)||f.push(u=(0,n.copyBytes)(u));const d=(0,n.u32)(u);let h=d[0],p=d[1],g=d[2],m=d[3],b=0;for(;b+4<=s.length;)h^=s[b+0],p^=s[b+1],g^=s[b+2],m^=s[b+3],({s0:h,s1:p,s2:g,s3:m}=B(i,h,p,g,m)),c[b++]=h,c[b++]=p,c[b++]=g,c[b++]=m;if(o){const e=P(r.subarray(4*b));h^=e[0],p^=e[1],g^=e[2],m^=e[3],({s0:h,s1:p,s2:g,s3:m}=B(i,h,p,g,m)),c[b++]=h,c[b++]=p,c[b++]=g,c[b++]=m}return(0,n.clean)(...f),l},decrypt(r,a){S(r);const i=v(e);let s=t;const c=[i];(0,n.isAligned32)(s)||c.push(s=(0,n.copyBytes)(s));const l=(0,n.u32)(s);a=(0,n.getOutput)(r.length,a),(0,n.isAligned32)(r)||c.push(r=(0,n.copyBytes)(r)),(0,n.complexOverlapBytes)(r,a);const u=(0,n.u32)(r),f=(0,n.u32)(a);let d=l[0],h=l[1],p=l[2],g=l[3];for(let e=0;e+4<=u.length;){const t=d,r=h,o=p,n=g;d=u[e+0],h=u[e+1],p=u[e+2],g=u[e+3];const{s0:a,s1:s,s2:c,s3:l}=x(i,d,h,p,g);f[e++]=a^t,f[e++]=s^r,f[e++]=c^o,f[e++]=l^n}return(0,n.clean)(...c),T(a,o)}}}),t.cfb=(0,n.wrapCipher)({blockSize:16,nonceLength:16},function(e,t){function r(r,o,i){(0,n.abytes)(r);const s=r.length;if(i=(0,n.getOutput)(s,i),(0,n.overlapBytes)(r,i))throw new Error("overlapping src and dst not supported.");const c=y(e);let l=t;const u=[c];(0,n.isAligned32)(l)||u.push(l=(0,n.copyBytes)(l)),(0,n.isAligned32)(r)||u.push(r=(0,n.copyBytes)(r));const f=(0,n.u32)(r),d=(0,n.u32)(i),h=o?d:f,p=(0,n.u32)(l);let g=p[0],m=p[1],b=p[2],v=p[3];for(let e=0;e+4<=f.length;){const{s0:t,s1:r,s2:o,s3:n}=B(c,g,m,b,v);d[e+0]=f[e+0]^t,d[e+1]=f[e+1]^r,d[e+2]=f[e+2]^o,d[e+3]=f[e+3]^n,g=h[e++],m=h[e++],b=h[e++],v=h[e++]}const w=a*Math.floor(f.length/4);if(w<s){({s0:g,s1:m,s2:b,s3:v}=B(c,g,m,b,v));const e=(0,n.u8)(new Uint32Array([g,m,b,v]));for(let t=w,o=0;t<s;t++,o++)i[t]=r[t]^e[o];(0,n.clean)(e)}return(0,n.clean)(...u),i}return{encrypt:(e,t)=>r(e,!0,t),decrypt:(e,t)=>r(e,!1,t)}}),t.gcm=(0,n.wrapCipher)({blockSize:16,nonceLength:12,tagLength:16,varSizeNonce:!0},function(e,t,r){if(t.length<8)throw new Error("aes/gcm: invalid nonce length");function a(e,t,n){const a=O(o.ghash,!1,e,n,r);for(let e=0;e<t.length;e++)a[e]^=t[e];return a}function s(){const r=y(e),a=i.slice(),s=i.slice();if(k(r,!1,s,s,a),12===t.length)s.set(t);else{const e=i.slice(),r=(0,n.createView)(e);(0,n.setBigUint64)(r,8,BigInt(8*t.length),!1);const c=o.ghash.create(a).update(t).update(e);c.digestInto(s),c.destroy()}return{xk:r,authKey:a,counter:s,tagMask:k(r,!1,s,i)}}return{encrypt(e){const{xk:t,authKey:r,counter:o,tagMask:i}=s(),c=new Uint8Array(e.length+16),l=[t,r,o,i];(0,n.isAligned32)(e)||l.push(e=(0,n.copyBytes)(e)),k(t,!1,o,e,c.subarray(0,e.length));const u=a(r,i,c.subarray(0,c.length-16));return l.push(u),c.set(u,e.length),(0,n.clean)(...l),c},decrypt(e){const{xk:t,authKey:r,counter:o,tagMask:i}=s(),c=[t,r,i,o];(0,n.isAligned32)(e)||c.push(e=(0,n.copyBytes)(e));const l=e.subarray(0,-16),u=e.subarray(-16),f=a(r,i,l);if(c.push(f),!(0,n.equalBytes)(f,u))throw new Error("aes/gcm: invalid ghash tag");const d=k(t,!1,o,l);return(0,n.clean)(...c),d}}});const I=(e,t,r)=>o=>{if(!Number.isSafeInteger(o)||t>o||o>r){throw new Error(e+": expected value in range "+("["+t+".."+r+"]")+", got "+o)}};function z(e){return e instanceof Uint32Array||ArrayBuffer.isView(e)&&"Uint32Array"===e.constructor.name}function L(e,t){if((0,n.abytes)(t,16),!z(e))throw new Error("_encryptBlock accepts result of expandKeyLE");const r=(0,n.u32)(t);let{s0:o,s1:a,s2:i,s3:s}=B(e,r[0],r[1],r[2],r[3]);return r[0]=o,r[1]=a,r[2]=i,r[3]=s,t}function R(e,t){if((0,n.abytes)(t,16),!z(e))throw new Error("_decryptBlock accepts result of expandKeyLE");const r=(0,n.u32)(t);let{s0:o,s1:a,s2:i,s3:s}=x(e,r[0],r[1],r[2],r[3]);return r[0]=o,r[1]=a,r[2]=i,r[3]=s,t}t.gcmsiv=(0,n.wrapCipher)({blockSize:16,nonceLength:12,tagLength:16,varSizeNonce:!0},function(e,t,r){const a=I("AAD",0,2**36),i=I("plaintext",0,2**36),s=I("nonce",12,12),c=I("ciphertext",16,2**36+16);function l(){const r=y(e),o=new Uint8Array(e.length),a=new Uint8Array(16),i=[r,o];let s=t;(0,n.isAligned32)(s)||i.push(s=(0,n.copyBytes)(s));const c=(0,n.u32)(s);let l=0,u=c[0],f=c[1],d=c[2],h=0;for(const e of[a,o].map(n.u32)){const t=(0,n.u32)(e);for(let e=0;e<t.length;e+=2){const{s0:o,s1:n}=B(r,l,u,f,d);t[e+0]=o,t[e+1]=n,l=++h}}const p={authKey:a,encKey:y(o)};return(0,n.clean)(...i),p}function u(e,a,i){const s=O(o.polyval,!0,a,i,r);for(let e=0;e<12;e++)s[e]^=t[e];s[15]&=127;const c=(0,n.u32)(s);let l=c[0],u=c[1],f=c[2],d=c[3];return({s0:l,s1:u,s2:f,s3:d}=B(e,l,u,f,d)),c[0]=l,c[1]=u,c[2]=f,c[3]=d,s}function f(e,t,r){let o=(0,n.copyBytes)(t);o[15]|=128;const a=k(e,!0,o,r);return(0,n.clean)(o),a}return(0,n.abytes)(e,16,24,32),s(t.length),void 0!==r&&a(r.length),{encrypt(e){i(e.length);const{encKey:t,authKey:r}=l(),o=u(t,r,e),a=[t,r,o];(0,n.isAligned32)(e)||a.push(e=(0,n.copyBytes)(e));const s=new Uint8Array(e.length+16);return s.set(o,e.length),s.set(f(t,o,e)),(0,n.clean)(...a),s},decrypt(e){c(e.length);const t=e.subarray(-16),{encKey:r,authKey:o}=l(),a=[r,o];(0,n.isAligned32)(e)||a.push(e=(0,n.copyBytes)(e));const i=f(r,t,e.subarray(0,-16)),s=u(r,o,i);if(a.push(s),!(0,n.equalBytes)(t,s))throw(0,n.clean)(...a),new Error("invalid polyval tag");return(0,n.clean)(...a),i}}}),t.siv=t.gcmsiv;const N={encrypt(e,t){if(t.length>=2**32)throw new Error("plaintext should be less than 4gb");const r=y(e);if(16===t.length)L(r,t);else{const e=(0,n.u32)(t);let o=e[0],a=e[1];for(let t=0,n=1;t<6;t++)for(let t=2;t<e.length;t+=2,n++){const{s0:i,s1:s,s2:c,s3:l}=B(r,o,a,e[t],e[t+1]);o=i,a=s^h(n),e[t]=c,e[t+1]=l}e[0]=o,e[1]=a}r.fill(0)},decrypt(e,t){if(t.length-8>=2**32)throw new Error("ciphertext should be less than 4gb");const r=v(e),o=t.length/8-1;if(1===o)R(r,t);else{const e=(0,n.u32)(t);let a=e[0],i=e[1];for(let t=0,n=6*o;t<6;t++)for(let t=2*o;t>=1;t-=2,n--){i^=h(n);const{s0:o,s1:s,s2:c,s3:l}=x(r,a,i,e[t],e[t+1]);a=o,i=s,e[t]=c,e[t+1]=l}e[0]=a,e[1]=i}r.fill(0)}},_=new Uint8Array(8).fill(166);t.aeskw=(0,n.wrapCipher)({blockSize:8},e=>({encrypt(t){if(!t.length||t.length%8!=0)throw new Error("invalid plaintext length");if(8===t.length)throw new Error("8-byte keys not allowed in AESKW, use AESKWP instead");const r=(0,n.concatBytes)(_,t);return N.encrypt(e,r),r},decrypt(t){if(t.length%8!=0||t.length<24)throw new Error("invalid ciphertext length");const r=(0,n.copyBytes)(t);if(N.decrypt(e,r),!(0,n.equalBytes)(r.subarray(0,8),_))throw new Error("integrity check failed");return r.subarray(0,8).fill(0),r.subarray(8)}}));const j=2790873510;t.aeskwp=(0,n.wrapCipher)({blockSize:8},e=>({encrypt(t){if(!t.length)throw new Error("invalid plaintext length");const r=8*Math.ceil(t.length/8),o=new Uint8Array(8+r);o.set(t,8);const a=(0,n.u32)(o);return a[0]=j,a[1]=h(t.length),N.encrypt(e,o),o},decrypt(t){if(t.length<16)throw new Error("invalid ciphertext length");const r=(0,n.copyBytes)(t),o=(0,n.u32)(r);N.decrypt(e,r);const a=h(o[1])>>>0,i=8*Math.ceil(a/8);if(o[0]!==j||r.length-8!==i)throw new Error("integrity check failed");for(let e=a;e<i;e++)if(0!==r[8+e])throw new Error("integrity check failed");return r.subarray(0,8).fill(0),r.subarray(8,8+a)}})),t.unsafe={expandKeyLE:y,expandKeyDecLE:v,encrypt:B,decrypt:x,encryptBlock:L,decryptBlock:R,ctrCounter:A,ctr32:k}},247:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapHashToField=t.getMinHashLength=t.getFieldBytesLength=t.hashToPrivateScalar=t.FpSqrtEven=t.FpSqrtOdd=t.Field=t.nLength=t.FpIsSquare=t.FpDiv=t.FpInvertBatch=t.FpPow=t.validateField=t.isNegativeLE=t.FpSqrt=t.tonelliShanks=t.invert=t.pow2=t.pow=t.mod=void 0;
|
|
2
2
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
3
|
-
const a=r(1062),o=r(4904),n=r(8116);function i(e){return{hash:e,hmac:(t,...r)=>(0,a.hmac)(e,t,(0,o.concatBytes)(...r)),randomBytes:o.randomBytes}}},831:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wNAF=function(e,t){const r=(e,t)=>{const r=t.negate();return e?r:t},a=e=>({windows:Math.ceil(t/e)+1,windowSize:2**(e-1)});return{constTimeNegate:r,unsafeLadder(t,r){let a=e.ZERO,o=t;for(;r>n;)r&i&&(a=a.add(o)),o=o.double(),r>>=i;return a},precomputeWindow(e,t){const{windows:r,windowSize:o}=a(t),n=[];let i=e,s=i;for(let e=0;e<r;e++){s=i,n.push(s);for(let e=1;e<o;e++)s=s.add(i),n.push(s);i=s.double()}return n},wNAF(t,o,n){const{windows:s,windowSize:c}=a(t);let l=e.ZERO,u=e.BASE;const d=BigInt(2**t-1),f=2**t,h=BigInt(t);for(let e=0;e<s;e++){const t=e*c;let a=Number(n&d);n>>=h,a>c&&(a-=f,n+=i);const s=t,p=t+Math.abs(a)-1,g=e%2!=0,m=a<0;0===a?u=u.add(r(g,o[s])):l=l.add(r(m,o[p]))}return{p:l,f:u}},wNAFCached(e,t,r,a){const o=e._WINDOW_SIZE||1;let n=t.get(e);return n||(n=this.precomputeWindow(e,o),1!==o&&t.set(e,a(n))),this.wNAF(o,n,r)}}},t.validateBasic=function(e){return(0,a.validateField)(e.Fp),(0,o.validateObject)(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,a.nLength)(e.n,e.nBitLength),...e,p:e.Fp.ORDER})};
|
|
3
|
+
const o=r(8460),n=BigInt(0),a=BigInt(1),i=BigInt(2),s=BigInt(3),c=BigInt(4),l=BigInt(5),u=BigInt(8);BigInt(9),BigInt(16);function f(e,t){const r=e%t;return r>=n?r:t+r}function d(e,t,r){if(r<=n||t<n)throw new Error("Expected power/modulo > 0");if(r===a)return n;let o=a;for(;t>n;)t&a&&(o=o*e%r),e=e*e%r,t>>=a;return o}function h(e,t){if(e===n||t<=n)throw new Error(`invert: expected positive integers, got n=${e} mod=${t}`);let r=f(e,t),o=t,i=n,s=a,c=a,l=n;for(;r!==n;){const e=o/r,t=o%r,n=i-c*e,a=s-l*e;o=r,r=t,i=c,s=l,c=n,l=a}if(o!==a)throw new Error("invert: does not exist");return f(i,t)}function p(e){const t=(e-a)/i;let r,o,s;for(r=e-a,o=0;r%i===n;r/=i,o++);for(s=i;s<e&&d(s,t,e)!==e-a;s++);if(1===o){const t=(e+a)/c;return function(e,r){const o=e.pow(r,t);if(!e.eql(e.sqr(o),r))throw new Error("Cannot find square root");return o}}const l=(r+a)/i;return function(e,n){if(e.pow(n,t)===e.neg(e.ONE))throw new Error("Cannot find square root");let i=o,c=e.pow(e.mul(e.ONE,s),r),u=e.pow(n,l),f=e.pow(n,r);for(;!e.eql(f,e.ONE);){if(e.eql(f,e.ZERO))return e.ZERO;let t=1;for(let r=e.sqr(f);t<i&&!e.eql(r,e.ONE);t++)r=e.sqr(r);const r=e.pow(c,a<<BigInt(i-t-1));c=e.sqr(r),u=e.mul(u,r),f=e.mul(f,c),i=t}return u}}function g(e){if(e%c===s){const t=(e+a)/c;return function(e,r){const o=e.pow(r,t);if(!e.eql(e.sqr(o),r))throw new Error("Cannot find square root");return o}}if(e%u===l){const t=(e-l)/u;return function(e,r){const o=e.mul(r,i),n=e.pow(o,t),a=e.mul(r,n),s=e.mul(e.mul(a,i),n),c=e.mul(a,e.sub(s,e.ONE));if(!e.eql(e.sqr(c),r))throw new Error("Cannot find square root");return c}}return p(e)}t.mod=f,t.pow=d,t.pow2=function(e,t,r){let o=e;for(;t-- >n;)o*=o,o%=r;return o},t.invert=h,t.tonelliShanks=p,t.FpSqrt=g;t.isNegativeLE=(e,t)=>(f(e,t)&a)===a;const m=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function b(e,t,r){if(r<n)throw new Error("Expected power > 0");if(r===n)return e.ONE;if(r===a)return t;let o=e.ONE,i=t;for(;r>n;)r&a&&(o=e.mul(o,i)),i=e.sqr(i),r>>=a;return o}function y(e,t){const r=new Array(t.length),o=t.reduce((t,o,n)=>e.is0(o)?t:(r[n]=t,e.mul(t,o)),e.ONE),n=e.inv(o);return t.reduceRight((t,o,n)=>e.is0(o)?t:(r[n]=e.mul(t,r[n]),e.mul(t,o)),n),r}function v(e,t){const r=void 0!==t?t:e.toString(2).length;return{nBitLength:r,nByteLength:Math.ceil(r/8)}}function w(e){if("bigint"!=typeof e)throw new Error("field order must be bigint");const t=e.toString(2).length;return Math.ceil(t/8)}function E(e){const t=w(e);return t+Math.ceil(t/2)}t.validateField=function(e){const t=m.reduce((e,t)=>(e[t]="function",e),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"});return(0,o.validateObject)(e,t)},t.FpPow=b,t.FpInvertBatch=y,t.FpDiv=function(e,t,r){return e.mul(t,"bigint"==typeof r?h(r,e.ORDER):e.inv(r))},t.FpIsSquare=function(e){const t=(e.ORDER-a)/i;return r=>{const o=e.pow(r,t);return e.eql(o,e.ZERO)||e.eql(o,e.ONE)}},t.nLength=v,t.Field=function(e,t,r=!1,i={}){if(e<=n)throw new Error(`Expected Field ORDER > 0, got ${e}`);const{nBitLength:s,nByteLength:c}=v(e,t);if(c>2048)throw new Error("Field lengths over 2048 bytes are not supported");const l=g(e),u=Object.freeze({ORDER:e,BITS:s,BYTES:c,MASK:(0,o.bitMask)(s),ZERO:n,ONE:a,create:t=>f(t,e),isValid:t=>{if("bigint"!=typeof t)throw new Error("Invalid field element: expected bigint, got "+typeof t);return n<=t&&t<e},is0:e=>e===n,isOdd:e=>(e&a)===a,neg:t=>f(-t,e),eql:(e,t)=>e===t,sqr:t=>f(t*t,e),add:(t,r)=>f(t+r,e),sub:(t,r)=>f(t-r,e),mul:(t,r)=>f(t*r,e),pow:(e,t)=>b(u,e,t),div:(t,r)=>f(t*h(r,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>h(t,e),sqrt:i.sqrt||(e=>l(u,e)),invertBatch:e=>y(u,e),cmov:(e,t,r)=>r?t:e,toBytes:e=>r?(0,o.numberToBytesLE)(e,c):(0,o.numberToBytesBE)(e,c),fromBytes:e=>{if(e.length!==c)throw new Error(`Fp.fromBytes: expected ${c}, got ${e.length}`);return r?(0,o.bytesToNumberLE)(e):(0,o.bytesToNumberBE)(e)}});return Object.freeze(u)},t.FpSqrtOdd=function(e,t){if(!e.isOdd)throw new Error("Field doesn't have isOdd");const r=e.sqrt(t);return e.isOdd(r)?r:e.neg(r)},t.FpSqrtEven=function(e,t){if(!e.isOdd)throw new Error("Field doesn't have isOdd");const r=e.sqrt(t);return e.isOdd(r)?e.neg(r):r},t.hashToPrivateScalar=function(e,t,r=!1){const n=(e=(0,o.ensureBytes)("privateHash",e)).length,i=v(t).nByteLength+8;if(i<24||n<i||n>1024)throw new Error(`hashToPrivateScalar: expected ${i}-1024 bytes of input, got ${n}`);return f(r?(0,o.bytesToNumberLE)(e):(0,o.bytesToNumberBE)(e),t-a)+a},t.getFieldBytesLength=w,t.getMinHashLength=E,t.mapHashToField=function(e,t,r=!1){const n=e.length,i=w(t),s=E(t);if(n<16||n<s||n>1024)throw new Error(`expected ${s}-1024 bytes of input, got ${n}`);const c=f(r?(0,o.bytesToNumberBE)(e):(0,o.bytesToNumberLE)(e),t-a)+a;return r?(0,o.numberToBytesLE)(c,i):(0,o.numberToBytesBE)(c,i)}},306:(e,t)=>{"use strict";function r(e){if("number"!=typeof e)throw new Error("Input must be a number");if(e<0||e>255)throw new Error("Input must be a byte");const t="0123456789ABCDEF";let r="";return r+=t.charAt(e>>4),r+=t.charAt(15&e),r}Object.defineProperty(t,"__esModule",{value:!0}),t.byteArray2hexStr=function(e){let t="";for(let o=0;o<e.length;o++)t+=r(e[o]);return t},t.byte2hexStr=r},347:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toUtf8CodePoints=t.toUtf8String=t.toUtf8Bytes=t.Utf8ErrorFuncs=void 0;const o=r(8256),n=r(7991);function a(e,t,r,o,n){if("BAD_PREFIX"===e||"UNEXPECTED_CONTINUE"===e){let e=0;for(let o=t+1;o<r.length&&r[o]>>6==2;o++)e++;return e}return"OVERRUN"===e?r.length-t-1:0}function i(e,r){null==r&&(r=t.Utf8ErrorFuncs.error);const n=(0,o.getBytes)(e,"bytes"),a=[];let i=0;for(;i<n.length;){const e=n[i++];if(!(e>>7)){a.push(e);continue}let t=null,o=null;if(192==(224&e))t=1,o=127;else if(224==(240&e))t=2,o=2047;else{if(240!=(248&e)){i+=r(128==(192&e)?"UNEXPECTED_CONTINUE":"BAD_PREFIX",i-1,n,a);continue}t=3,o=65535}if(i-1+t>=n.length){i+=r("OVERRUN",i-1,n,a);continue}let s=e&(1<<8-t-1)-1;for(let e=0;e<t;e++){let e=n[i];if(128!=(192&e)){i+=r("MISSING_CONTINUE",i,n,a),s=null;break}s=s<<6|63&e,i++}null!==s&&(s>1114111?i+=r("OUT_OF_RANGE",i-1-t,n,a,s):s>=55296&&s<=57343?i+=r("UTF16_SURROGATE",i-1-t,n,a,s):s<=o?i+=r("OVERLONG",i-1-t,n,a,s):a.push(s))}return a}function s(e,t){(0,n.assertArgument)("string"==typeof e,"invalid string value","str",e),null!=t&&((0,n.assertNormalize)(t),e=e.normalize(t));let r=[];for(let t=0;t<e.length;t++){const o=e.charCodeAt(t);if(o<128)r.push(o);else if(o<2048)r.push(o>>6|192),r.push(63&o|128);else if(55296==(64512&o)){t++;const a=e.charCodeAt(t);(0,n.assertArgument)(t<e.length&&56320==(64512&a),"invalid surrogate pair","str",e);const i=65536+((1023&o)<<10)+(1023&a);r.push(i>>18|240),r.push(i>>12&63|128),r.push(i>>6&63|128),r.push(63&i|128)}else r.push(o>>12|224),r.push(o>>6&63|128),r.push(63&o|128)}return new Uint8Array(r)}t.Utf8ErrorFuncs=Object.freeze({error:function(e,t,r,o,a){(0,n.assertArgument)(!1,`invalid codepoint at offset ${t}; ${e}`,"bytes",r)},ignore:a,replace:function(e,t,r,o,i){return"OVERLONG"===e?((0,n.assertArgument)("number"==typeof i,"invalid bad code point for replacement","badCodepoint",i),o.push(i),0):(o.push(65533),a(e,t,r))}}),t.toUtf8Bytes=s,t.toUtf8String=function(e,t){return i(e,t).map(e=>e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10&1023),56320+(1023&e)))).join("")},t.toUtf8CodePoints=function(e,t){return i(s(e,t))}},486:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha384=t.sha512_256=t.sha512_224=t.sha512=t.SHA512=void 0;const o=r(2355),n=r(4062),a=r(791),[i,s]=(()=>n.default.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))))(),c=new Uint32Array(80),l=new Uint32Array(80);class u extends o.SHA2{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:e,Al:t,Bh:r,Bl:o,Ch:n,Cl:a,Dh:i,Dl:s,Eh:c,El:l,Fh:u,Fl:f,Gh:d,Gl:h,Hh:p,Hl:g}=this;return[e,t,r,o,n,a,i,s,c,l,u,f,d,h,p,g]}set(e,t,r,o,n,a,i,s,c,l,u,f,d,h,p,g){this.Ah=0|e,this.Al=0|t,this.Bh=0|r,this.Bl=0|o,this.Ch=0|n,this.Cl=0|a,this.Dh=0|i,this.Dl=0|s,this.Eh=0|c,this.El=0|l,this.Fh=0|u,this.Fl=0|f,this.Gh=0|d,this.Gl=0|h,this.Hh=0|p,this.Hl=0|g}process(e,t){for(let r=0;r<16;r++,t+=4)c[r]=e.getUint32(t),l[r]=e.getUint32(t+=4);for(let e=16;e<80;e++){const t=0|c[e-15],r=0|l[e-15],o=n.default.rotrSH(t,r,1)^n.default.rotrSH(t,r,8)^n.default.shrSH(t,r,7),a=n.default.rotrSL(t,r,1)^n.default.rotrSL(t,r,8)^n.default.shrSL(t,r,7),i=0|c[e-2],s=0|l[e-2],u=n.default.rotrSH(i,s,19)^n.default.rotrBH(i,s,61)^n.default.shrSH(i,s,6),f=n.default.rotrSL(i,s,19)^n.default.rotrBL(i,s,61)^n.default.shrSL(i,s,6),d=n.default.add4L(a,f,l[e-7],l[e-16]),h=n.default.add4H(d,o,u,c[e-7],c[e-16]);c[e]=0|h,l[e]=0|d}let{Ah:r,Al:o,Bh:a,Bl:u,Ch:f,Cl:d,Dh:h,Dl:p,Eh:g,El:m,Fh:b,Fl:y,Gh:v,Gl:w,Hh:E,Hl:B}=this;for(let e=0;e<80;e++){const t=n.default.rotrSH(g,m,14)^n.default.rotrSH(g,m,18)^n.default.rotrBH(g,m,41),x=n.default.rotrSL(g,m,14)^n.default.rotrSL(g,m,18)^n.default.rotrBL(g,m,41),A=g&b^~g&v,k=m&y^~m&w,S=n.default.add5L(B,x,k,s[e],l[e]),C=n.default.add5H(S,E,t,A,i[e],c[e]),T=0|S,P=n.default.rotrSH(r,o,28)^n.default.rotrBH(r,o,34)^n.default.rotrBH(r,o,39),O=n.default.rotrSL(r,o,28)^n.default.rotrBL(r,o,34)^n.default.rotrBL(r,o,39),I=r&a^r&f^a&f,z=o&u^o&d^u&d;E=0|v,B=0|w,v=0|b,w=0|y,b=0|g,y=0|m,({h:g,l:m}=n.default.add(0|h,0|p,0|C,0|T)),h=0|f,p=0|d,f=0|a,d=0|u,a=0|r,u=0|o;const L=n.default.add3L(T,O,z);r=n.default.add3H(L,C,P,I),o=0|L}({h:r,l:o}=n.default.add(0|this.Ah,0|this.Al,0|r,0|o)),({h:a,l:u}=n.default.add(0|this.Bh,0|this.Bl,0|a,0|u)),({h:f,l:d}=n.default.add(0|this.Ch,0|this.Cl,0|f,0|d)),({h,l:p}=n.default.add(0|this.Dh,0|this.Dl,0|h,0|p)),({h:g,l:m}=n.default.add(0|this.Eh,0|this.El,0|g,0|m)),({h:b,l:y}=n.default.add(0|this.Fh,0|this.Fl,0|b,0|y)),({h:v,l:w}=n.default.add(0|this.Gh,0|this.Gl,0|v,0|w)),({h:E,l:B}=n.default.add(0|this.Hh,0|this.Hl,0|E,0|B)),this.set(r,o,a,u,f,d,h,p,g,m,b,y,v,w,E,B)}roundClean(){c.fill(0),l.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}t.SHA512=u;class f extends u{constructor(){super(),this.Ah=-1942145080,this.Al=424955298,this.Bh=1944164710,this.Bl=-1982016298,this.Ch=502970286,this.Cl=855612546,this.Dh=1738396948,this.Dl=1479516111,this.Eh=258812777,this.El=2077511080,this.Fh=2011393907,this.Fl=79989058,this.Gh=1067287976,this.Gl=1780299464,this.Hh=286451373,this.Hl=-1848208735,this.outputLen=28}}class d extends u{constructor(){super(),this.Ah=573645204,this.Al=-64227540,this.Bh=-1621794909,this.Bl=-934517566,this.Ch=596883563,this.Cl=1867755857,this.Dh=-1774684391,this.Dl=1497426621,this.Eh=-1775747358,this.El=-1467023389,this.Fh=-1101128155,this.Fl=1401305490,this.Gh=721525244,this.Gl=746961066,this.Hh=246885852,this.Hl=-2117784414,this.outputLen=32}}class h extends u{constructor(){super(),this.Ah=-876896931,this.Al=-1056596264,this.Bh=1654270250,this.Bl=914150663,this.Ch=-1856437926,this.Cl=812702999,this.Dh=355462360,this.Dl=-150054599,this.Eh=1731405415,this.El=-4191439,this.Fh=-1900787065,this.Fl=1750603025,this.Gh=-619958771,this.Gl=1694076839,this.Hh=1203062813,this.Hl=-1090891868,this.outputLen=48}}t.sha512=(0,a.wrapConstructor)(()=>new u),t.sha512_224=(0,a.wrapConstructor)(()=>new f),t.sha512_256=(0,a.wrapConstructor)(()=>new d),t.sha384=(0,a.wrapConstructor)(()=>new h)},502:function(e,t,r){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.derivePrivateKey=function(e,t={}){const r=t.validator,o=n.secp256k1.CURVE.n,a=s(e);if(r)return a;const i=n.secp256k1.ProjectivePoint.BASE.multiply(a).toRawBytes(!0),c=t.accountIndex||0;return(s(i,c)+a)%o};const n=r(8241),a=o(r(2121)),i=BigInt(0);function s(e,t){const r=n.secp256k1.CURVE.n;for(let o=0;o<=4294967295;o++){const n=(new a.default).add(e);void 0!==t&&n.addU32(t),n.addU32(o);const s=n.first256BigInt();if(s>i&&s<r)return s}throw new Error("impossible unicorn ;)")}},592:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pbkdf2=function(e,t,r,o){const{c:s,dkLen:c,DK:l,PRF:u,PRFSalt:f}=a(e,t,r,o);let d;const h=new Uint8Array(4),p=(0,n.createView)(h),g=new Uint8Array(u.outputLen);for(let e=1,t=0;t<c;e++,t+=u.outputLen){const r=l.subarray(t,t+u.outputLen);p.setInt32(0,e,!1),(d=f._cloneInto(d)).update(h).digestInto(g),r.set(g.subarray(0,r.length));for(let e=1;e<s;e++){u._cloneInto(d).update(g).digestInto(g);for(let e=0;e<r.length;e++)r[e]^=g[e]}}return i(u,f,l,d,g)},t.pbkdf2Async=async function(e,t,r,o){const{c:s,dkLen:c,asyncTick:l,DK:u,PRF:f,PRFSalt:d}=a(e,t,r,o);let h;const p=new Uint8Array(4),g=(0,n.createView)(p),m=new Uint8Array(f.outputLen);for(let e=1,t=0;t<c;e++,t+=f.outputLen){const r=u.subarray(t,t+f.outputLen);g.setInt32(0,e,!1),(h=d._cloneInto(h)).update(p).digestInto(m),r.set(m.subarray(0,r.length)),await(0,n.asyncLoop)(s-1,l,()=>{f._cloneInto(h).update(m).digestInto(m);for(let e=0;e<r.length;e++)r[e]^=m[e]})}return i(f,d,u,h,m)};const o=r(1062),n=r(4904);function a(e,t,r,a){(0,n.ahash)(e);const i=(0,n.checkOpts)({dkLen:32,asyncTick:10},a),{c:s,dkLen:c,asyncTick:l}=i;if((0,n.anumber)(s),(0,n.anumber)(c),(0,n.anumber)(l),s<1)throw new Error("iterations (c) should be >= 1");const u=(0,n.kdfInputToBytes)(t),f=(0,n.kdfInputToBytes)(r),d=new Uint8Array(c),h=o.hmac.create(e,u),p=h._cloneInto().update(f);return{c:s,dkLen:c,asyncTick:l,DK:d,PRF:h,PRFSalt:p}}function i(e,t,r,o,a){return e.destroy(),t.destroy(),o&&o.destroy(),(0,n.clean)(a),r}},681:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=void 0,t.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},733:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomBytes=void 0;const o=r(6710);let n=!1;const a=function(e){return new Uint8Array((0,o.randomBytes)(e))};let i=a;function s(e){return i(e)}t.randomBytes=s,s._=a,s.lock=function(){n=!0},s.register=function(e){if(n)throw new Error("randomBytes is locked");i=e},Object.freeze(s)},791:(e,t,r)=>{"use strict";
|
|
4
|
+
/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */Object.defineProperty(t,"__esModule",{value:!0}),t.randomBytes=t.wrapXOFConstructorWithOpts=t.wrapConstructorWithOpts=t.wrapConstructor=t.checkOpts=t.Hash=t.concatBytes=t.toBytes=t.utf8ToBytes=t.asyncLoop=t.nextTick=t.hexToBytes=t.bytesToHex=t.isLE=t.rotr=t.createView=t.u32=t.u8=void 0;const o=r(681),n=e=>e instanceof Uint8Array;t.u8=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength);t.u32=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4));t.createView=e=>new DataView(e.buffer,e.byteOffset,e.byteLength);if(t.rotr=(e,t)=>e<<32-t|e>>>t,t.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],!t.isLE)throw new Error("Non little-endian hardware is not supported");const a=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));t.bytesToHex=function(e){if(!n(e))throw new Error("Uint8Array expected");let t="";for(let r=0;r<e.length;r++)t+=a[e[r]];return t},t.hexToBytes=function(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);const t=e.length;if(t%2)throw new Error("padded hex string expected, got unpadded hex of length "+t);const r=new Uint8Array(t/2);for(let t=0;t<r.length;t++){const o=2*t,n=e.slice(o,o+2),a=Number.parseInt(n,16);if(Number.isNaN(a)||a<0)throw new Error("Invalid byte sequence");r[t]=a}return r};function i(e){if("string"!=typeof e)throw new Error("utf8ToBytes expected string, got "+typeof e);return new Uint8Array((new TextEncoder).encode(e))}function s(e){if("string"==typeof e&&(e=i(e)),!n(e))throw new Error("expected Uint8Array, got "+typeof e);return e}t.nextTick=async()=>{},t.asyncLoop=async function(e,r,o){let n=Date.now();for(let a=0;a<e;a++){o(a);const e=Date.now()-n;e>=0&&e<r||(await(0,t.nextTick)(),n+=e)}},t.utf8ToBytes=i,t.toBytes=s,t.concatBytes=function(...e){const t=new Uint8Array(e.reduce((e,t)=>e+t.length,0));let r=0;return e.forEach(e=>{if(!n(e))throw new Error("Uint8Array expected");t.set(e,r),r+=e.length}),t};t.Hash=class{clone(){return this._cloneInto()}};const c={}.toString;t.checkOpts=function(e,t){if(void 0!==t&&"[object Object]"!==c.call(t))throw new Error("Options should be object or undefined");return Object.assign(e,t)},t.wrapConstructor=function(e){const t=t=>e().update(s(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t},t.wrapConstructorWithOpts=function(e){const t=(t,r)=>e(r).update(s(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t},t.wrapXOFConstructorWithOpts=function(e){const t=(t,r)=>e(r).update(s(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t},t.randomBytes=function(e=32){if(o.crypto&&"function"==typeof o.crypto.getRandomValues)return o.crypto.getRandomValues(new Uint8Array(e));throw new Error("crypto.getRandomValues must be defined")}},830:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.authorizationify=void 0;const o=r(4815),n=r(7256),a=r(1490);t.authorizationify=function(e){return{address:(0,o.getAddress)(e.address),nonce:(0,a.getBigInt)(null!=e.nonce?e.nonce:0),chainId:(0,a.getBigInt)(null!=e.chainId?e.chainId:0),signature:n.Signature.from(e.signature)}}},831:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wNAF=function(e,t){return{constTimeNegate:s,hasPrecomputes:e=>1!==g(e),unsafeLadder(t,r,o=e.ZERO){let n=t;for(;r>a;)r&i&&(o=o.add(n)),n=n.double(),r>>=i;return o},precomputeWindow(e,r){const{windows:o,windowSize:n}=l(r,t),a=[];let i=e,s=i;for(let e=0;e<o;e++){s=i,a.push(s);for(let e=1;e<n;e++)s=s.add(i),a.push(s);i=s.double()}return a},wNAF(r,o,n){let a=e.ZERO,i=e.BASE;const c=l(r,t);for(let e=0;e<c.windows;e++){const{nextN:t,offset:r,isZero:l,isNeg:f,isNegF:d,offsetF:h}=u(n,e,c);n=t,l?i=i.add(s(d,o[h])):a=a.add(s(f,o[r]))}return{p:a,f:i}},wNAFUnsafe(r,o,n,i=e.ZERO){const s=l(r,t);for(let e=0;e<s.windows&&n!==a;e++){const{nextN:t,offset:r,isZero:a,isNeg:c}=u(n,e,s);if(n=t,!a){const e=o[r];i=i.add(c?e.negate():e)}}return i},getPrecomputes(e,t,r){let o=h.get(t);return o||(o=this.precomputeWindow(t,e),1!==e&&h.set(t,r(o))),o},wNAFCached(e,t,r){const o=g(e);return this.wNAF(o,this.getPrecomputes(o,e,r),t)},wNAFCachedUnsafe(e,t,r,o){const n=g(e);return 1===n?this.unsafeLadder(e,t,o):this.wNAFUnsafe(n,this.getPrecomputes(n,e,r),t,o)},setWindowSize(e,r){c(r,t),p.set(e,r),h.delete(e)}}},t.pippenger=function(e,t,r,o){if(f(r,e),d(o,t),r.length!==o.length)throw new Error("arrays of points and scalars must have equal length");const a=e.ZERO,i=(0,n.bitLen)(BigInt(r.length)),s=i>12?i-3:i>4?i-2:i?2:1,c=(0,n.bitMask)(s),l=new Array(Number(c)+1).fill(a),u=Math.floor((t.BITS-1)/s)*s;let h=a;for(let e=u;e>=0;e-=s){l.fill(a);for(let t=0;t<o.length;t++){const n=o[t],a=Number(n>>BigInt(e)&c);l[a]=l[a].add(r[t])}let t=a;for(let e=l.length-1,r=a;e>0;e--)r=r.add(l[e]),t=t.add(r);if(h=h.add(t),0!==e)for(let e=0;e<s;e++)h=h.double()}return h},t.precomputeMSMUnsafe=function(e,t,r,o){c(o,t.BITS),f(r,e);const a=e.ZERO,i=2**o-1,s=Math.ceil(t.BITS/o),l=(0,n.bitMask)(o),u=r.map(e=>{const t=[];for(let r=0,o=e;r<i;r++)t.push(o),o=o.add(e);return t});return e=>{if(d(e,t),e.length>r.length)throw new Error("array of scalars must be smaller than array of points");let n=a;for(let t=0;t<s;t++){if(n!==a)for(let e=0;e<o;e++)n=n.double();const r=BigInt(s*o-(t+1)*o);for(let t=0;t<e.length;t++){const o=e[t],a=Number(o>>r&l);a&&(n=n.add(u[t][a-1]))}}return n}},t.validateBasic=function(e){return(0,o.validateField)(e.Fp),(0,n.validateObject)(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,o.nLength)(e.n,e.nBitLength),...e,p:e.Fp.ORDER})};
|
|
4
5
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
5
|
-
const
|
|
6
|
-
/*!
|
|
7
|
-
|
|
6
|
+
const o=r(6630),n=r(5565),a=BigInt(0),i=BigInt(1);function s(e,t){const r=t.negate();return e?r:t}function c(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error("invalid window size, expected [1.."+t+"], got W="+e)}function l(e,t){c(e,t);const r=2**e;return{windows:Math.ceil(t/e)+1,windowSize:2**(e-1),mask:(0,n.bitMask)(e),maxNumber:r,shiftBy:BigInt(e)}}function u(e,t,r){const{windowSize:o,mask:n,maxNumber:a,shiftBy:s}=r;let c=Number(e&n),l=e>>s;c>o&&(c-=a,l+=i);const u=t*o;return{nextN:l,offset:u+Math.abs(c)-1,isZero:0===c,isNeg:c<0,isNegF:t%2!=0,offsetF:u}}function f(e,t){if(!Array.isArray(e))throw new Error("array expected");e.forEach((e,r)=>{if(!(e instanceof t))throw new Error("invalid point at index "+r)})}function d(e,t){if(!Array.isArray(e))throw new Error("array of scalars expected");e.forEach((e,r)=>{if(!t.isValid(e))throw new Error("invalid scalar at index "+r)})}const h=new WeakMap,p=new WeakMap;function g(e){return p.get(e)||1}},984:function(e,t){e.exports&&(t=e.exports=function(e,t){"use strict";return Array.prototype.indexOf||(Array.prototype.indexOf=function(e){var t=this.length>>>0,r=Number(arguments[1])||0;for((r=r<0?Math.ceil(r):Math.floor(r))<0&&(r+=t);r<t;r++)if(r in this&&this[r]===e)return r;return-1}),t.prefix="",t._getPrefixedKey=function(e,t){return(t=t||{}).noPrefix?e:this.prefix+e},t.set=function(e,t,r){var o=this._getPrefixedKey(e,r);try{localStorage.setItem(o,JSON.stringify({data:t}))}catch(r){console&&console.warn("Lockr didn't successfully save the '{"+e+": "+t+"}' pair, because the localStorage is full.")}},t.get=function(e,t,r){var o,n=this._getPrefixedKey(e,r);try{o=JSON.parse(localStorage.getItem(n))}catch(e){o=localStorage[n]?{data:localStorage.getItem(n)}:null}return o?"object"==typeof o&&void 0!==o.data?o.data:void 0:t},t.sadd=function(e,r,o){var n,a=this._getPrefixedKey(e,o),i=t.smembers(e);if(i.indexOf(r)>-1)return null;try{i.push(r),n=JSON.stringify({data:i}),localStorage.setItem(a,n)}catch(t){console.log(t),console&&console.warn("Lockr didn't successfully add the "+r+" to "+e+" set, because the localStorage is full.")}},t.smembers=function(e,t){var r,o=this._getPrefixedKey(e,t);try{r=JSON.parse(localStorage.getItem(o))}catch(e){r=null}return r&&r.data?r.data:[]},t.sismember=function(e,r,o){return t.smembers(e).indexOf(r)>-1},t.keys=function(){var e=[],r=Object.keys(localStorage);return 0===t.prefix.length?r:(r.forEach(function(r){-1!==r.indexOf(t.prefix)&&e.push(r.replace(t.prefix,""))}),e)},t.getAll=function(e){var r=t.keys();return e?r.reduce(function(e,r){var o={};return o[r]=t.get(r),e.push(o),e},[]):r.map(function(e){return t.get(e)})},t.srem=function(e,r,o){var n,a,i=this._getPrefixedKey(e,o),s=t.smembers(e,r);(a=s.indexOf(r))>-1&&s.splice(a,1),n=JSON.stringify({data:s});try{localStorage.setItem(i,n)}catch(t){console&&console.warn("Lockr couldn't remove the "+r+" from the set "+e)}},t.rm=function(e){var t=this._getPrefixedKey(e);localStorage.removeItem(t)},t.flush=function(){t.prefix.length?t.keys().forEach(function(e){localStorage.removeItem(t._getPrefixedKey(e))}):localStorage.clear()},t}(0,t))},1024:(e,t)=>{
|
|
7
|
+
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
8
|
+
t.read=function(e,t,r,o,n){var a,i,s=8*n-o-1,c=(1<<s)-1,l=c>>1,u=-7,f=r?n-1:0,d=r?-1:1,h=e[t+f];for(f+=d,a=h&(1<<-u)-1,h>>=-u,u+=s;u>0;a=256*a+e[t+f],f+=d,u-=8);for(i=a&(1<<-u)-1,a>>=-u,u+=o;u>0;i=256*i+e[t+f],f+=d,u-=8);if(0===a)a=1-l;else{if(a===c)return i?NaN:1/0*(h?-1:1);i+=Math.pow(2,o),a-=l}return(h?-1:1)*i*Math.pow(2,a-o)},t.write=function(e,t,r,o,n,a){var i,s,c,l=8*a-n-1,u=(1<<l)-1,f=u>>1,d=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,h=o?0:a-1,p=o?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,i=u):(i=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-i))<1&&(i--,c*=2),(t+=i+f>=1?d/c:d*Math.pow(2,1-f))*c>=2&&(i++,c/=2),i+f>=u?(s=0,i=u):i+f>=1?(s=(t*c-1)*Math.pow(2,n),i+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,n),i=0));n>=8;e[r+h]=255&s,h+=p,s/=256,n-=8);for(i=i<<n|s,l+=n;l>0;e[r+h]=255&i,h+=p,i/=256,l-=8);e[r+h-p]|=128*g}},1062:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hmac=t.HMAC=void 0;const o=r(4904);class n extends o.Hash{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,(0,o.ahash)(e);const r=(0,o.toBytes)(t);if(this.iHash=e.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const n=this.blockLen,a=new Uint8Array(n);a.set(r.length>n?e.create().update(r).digest():r);for(let e=0;e<a.length;e++)a[e]^=54;this.iHash.update(a),this.oHash=e.create();for(let e=0;e<a.length;e++)a[e]^=106;this.oHash.update(a),(0,o.clean)(a)}update(e){return(0,o.aexists)(this),this.iHash.update(e),this}digestInto(e){(0,o.aexists)(this),(0,o.abytes)(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){const e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));const{oHash:t,iHash:r,finished:o,destroyed:n,blockLen:a,outputLen:i}=this;return e.finished=o,e.destroyed=n,e.blockLen=a,e.outputLen=i,e.oHash=t._cloneInto(e.oHash),e.iHash=r._cloneInto(e.iHash),e}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}t.HMAC=n;t.hmac=(e,t,r)=>new n(e,t).update(r).digest(),t.hmac.create=(e,t)=>new n(e,t)},1103:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha224=t.sha256=void 0;const o=r(2355),n=r(791),a=(e,t,r)=>e&t^~e&r,i=(e,t,r)=>e&t^e&r^t&r,s=new Uint32Array([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]),c=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),l=new Uint32Array(64);class u extends o.SHA2{constructor(){super(64,32,8,!1),this.A=0|c[0],this.B=0|c[1],this.C=0|c[2],this.D=0|c[3],this.E=0|c[4],this.F=0|c[5],this.G=0|c[6],this.H=0|c[7]}get(){const{A:e,B:t,C:r,D:o,E:n,F:a,G:i,H:s}=this;return[e,t,r,o,n,a,i,s]}set(e,t,r,o,n,a,i,s){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|o,this.E=0|n,this.F=0|a,this.G=0|i,this.H=0|s}process(e,t){for(let r=0;r<16;r++,t+=4)l[r]=e.getUint32(t,!1);for(let e=16;e<64;e++){const t=l[e-15],r=l[e-2],o=(0,n.rotr)(t,7)^(0,n.rotr)(t,18)^t>>>3,a=(0,n.rotr)(r,17)^(0,n.rotr)(r,19)^r>>>10;l[e]=a+l[e-7]+o+l[e-16]|0}let{A:r,B:o,C:c,D:u,E:f,F:d,G:h,H:p}=this;for(let e=0;e<64;e++){const t=p+((0,n.rotr)(f,6)^(0,n.rotr)(f,11)^(0,n.rotr)(f,25))+a(f,d,h)+s[e]+l[e]|0,g=((0,n.rotr)(r,2)^(0,n.rotr)(r,13)^(0,n.rotr)(r,22))+i(r,o,c)|0;p=h,h=d,d=f,f=u+t|0,u=c,c=o,o=r,r=t+g|0}r=r+this.A|0,o=o+this.B|0,c=c+this.C|0,u=u+this.D|0,f=f+this.E|0,d=d+this.F|0,h=h+this.G|0,p=p+this.H|0,this.set(r,o,c,u,f,d,h,p)}roundClean(){l.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class f extends u{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}t.sha256=(0,n.wrapConstructor)(()=>new u),t.sha224=(0,n.wrapConstructor)(()=>new f)},1386:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createCurve=t.getHash=void 0;
|
|
8
9
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
9
|
-
const a=r(5565),o=BigInt(0),n=BigInt(1),i=BigInt(2),s=BigInt(3),c=BigInt(4),l=BigInt(5),u=BigInt(8);BigInt(9),BigInt(16);function d(e,t){const r=e%t;return r>=o?r:t+r}function f(e,t,r){if(r<=o||t<o)throw new Error("Expected power/modulo > 0");if(r===n)return o;let a=n;for(;t>o;)t&n&&(a=a*e%r),e=e*e%r,t>>=n;return a}function h(e,t){if(e===o||t<=o)throw new Error(`invert: expected positive integers, got n=${e} mod=${t}`);let r=d(e,t),a=t,i=o,s=n,c=n,l=o;for(;r!==o;){const e=a/r,t=a%r,o=i-c*e,n=s-l*e;a=r,r=t,i=c,s=l,c=o,l=n}if(a!==n)throw new Error("invert: does not exist");return d(i,t)}function p(e){const t=(e-n)/i;let r,a,s;for(r=e-n,a=0;r%i===o;r/=i,a++);for(s=i;s<e&&f(s,t,e)!==e-n;s++);if(1===a){const t=(e+n)/c;return function(e,r){const a=e.pow(r,t);if(!e.eql(e.sqr(a),r))throw new Error("Cannot find square root");return a}}const l=(r+n)/i;return function(e,o){if(e.pow(o,t)===e.neg(e.ONE))throw new Error("Cannot find square root");let i=a,c=e.pow(e.mul(e.ONE,s),r),u=e.pow(o,l),d=e.pow(o,r);for(;!e.eql(d,e.ONE);){if(e.eql(d,e.ZERO))return e.ZERO;let t=1;for(let r=e.sqr(d);t<i&&!e.eql(r,e.ONE);t++)r=e.sqr(r);const r=e.pow(c,n<<BigInt(i-t-1));c=e.sqr(r),u=e.mul(u,r),d=e.mul(d,c),i=t}return u}}function g(e){if(e%c===s){const t=(e+n)/c;return function(e,r){const a=e.pow(r,t);if(!e.eql(e.sqr(a),r))throw new Error("Cannot find square root");return a}}if(e%u===l){const t=(e-l)/u;return function(e,r){const a=e.mul(r,i),o=e.pow(a,t),n=e.mul(r,o),s=e.mul(e.mul(n,i),o),c=e.mul(n,e.sub(s,e.ONE));if(!e.eql(e.sqr(c),r))throw new Error("Cannot find square root");return c}}return p(e)}t.isNegativeLE=(e,t)=>(d(e,t)&n)===n;const m=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function b(e,t,r){if(r<o)throw new Error("Expected power > 0");if(r===o)return e.ONE;if(r===n)return t;let a=e.ONE,i=t;for(;r>o;)r&n&&(a=e.mul(a,i)),i=e.sqr(i),r>>=n;return a}function y(e,t){const r=new Array(t.length),a=t.reduce(((t,a,o)=>e.is0(a)?t:(r[o]=t,e.mul(t,a))),e.ONE),o=e.inv(a);return t.reduceRight(((t,a,o)=>e.is0(a)?t:(r[o]=e.mul(t,r[o]),e.mul(t,a))),o),r}function v(e,t){const r=void 0!==t?t:e.toString(2).length;return{nBitLength:r,nByteLength:Math.ceil(r/8)}}function w(e){if("bigint"!=typeof e)throw new Error("field order must be bigint");const t=e.toString(2).length;return Math.ceil(t/8)}function k(e){const t=w(e);return t+Math.ceil(t/2)}},4873:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.montgomery=function(e){const t=(h=e,(0,o.validateObject)(h,{a:"bigint"},{montgomeryBits:"isSafeInteger",nByteLength:"isSafeInteger",adjustScalarBytes:"function",domain:"function",powPminus2:"function",Gu:"bigint"}),Object.freeze({...h})),{P:r}=t,s=e=>(0,a.mod)(e,r),c=t.montgomeryBits,l=Math.ceil(c/8),u=t.nByteLength,d=t.adjustScalarBytes||(e=>e),f=t.powPminus2||(e=>(0,a.pow)(e,r-BigInt(2),r));var h;function p(e,t,r){const a=s(e*(t-r));return[t=s(t-a),r=s(r+a)]}function g(e){if("bigint"==typeof e&&n<=e&&e<r)return e;throw new Error("Expected valid scalar 0 < scalar < CURVE.P")}const m=(t.a-BigInt(2))/BigInt(4);function b(e){return(0,o.numberToBytesLE)(s(e),l)}function y(e,t){const r=function(e){const t=(0,o.ensureBytes)("u coordinate",e,l);return 32===u&&(t[31]&=127),(0,o.bytesToNumberLE)(t)}(t),a=function(e,t){const r=g(e),a=g(t),o=r;let l,u=i,d=n,h=r,b=i,y=n;for(let e=BigInt(c-1);e>=n;e--){const t=a>>e&i;y^=t,l=p(y,u,h),u=l[0],h=l[1],l=p(y,d,b),d=l[0],b=l[1],y=t;const r=u+d,n=s(r*r),c=u-d,f=s(c*c),g=n-f,v=h+b,w=s((h-b)*r),k=s(v*c),E=w+k,B=w-k;h=s(E*E),b=s(o*s(B*B)),u=s(n*f),d=s(g*(n+s(m*g)))}l=p(y,u,h),u=l[0],h=l[1],l=p(y,d,b),d=l[0],b=l[1];const v=f(d);return s(u*v)}(r,function(e){const t=(0,o.ensureBytes)("scalar",e),r=t.length;if(r!==l&&r!==u)throw new Error(`Expected ${l} or ${u} bytes, got ${r}`);return(0,o.bytesToNumberLE)(d(t))}(e));if(a===n)throw new Error("Invalid private or public key received");return b(a)}const v=b(t.Gu);function w(e){return y(e,v)}return{scalarMult:y,scalarMultBase:w,getSharedSecret:(e,t)=>y(e,t),getPublicKey:e=>w(e),utils:{randomPrivateKey:()=>t.randomBytes(t.nByteLength)},GuBytes:v}};
|
|
10
|
+
const o=r(7983),n=r(791),a=r(4329);function i(e){return{hash:e,hmac:(t,...r)=>(0,o.hmac)(e,t,(0,n.concatBytes)(...r)),randomBytes:n.randomBytes}}t.getHash=i,t.createCurve=function(e,t){const r=t=>(0,a.weierstrass)({...e,...i(t)});return Object.freeze({...r(t),create:r})}},1490:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toUtf8String=t.toUtf8CodePoints=t.toUtf8Bytes=t.parseUnits=t.formatUnits=t.parseEther=t.formatEther=t.encodeRlp=t.decodeRlp=t.defineProperties=t.resolveProperties=t.toQuantity=t.toBeArray=t.toBeHex=t.toNumber=t.toBigInt=t.getUint=t.getNumber=t.getBigInt=t.mask=t.toTwos=t.fromTwos=t.FixedNumber=t.FetchCancelSignal=t.FetchResponse=t.FetchRequest=t.EventPayload=t.makeError=t.assertNormalize=t.assertPrivate=t.assertArgumentCount=t.assertArgument=t.assert=t.isError=t.isCallException=t.zeroPadBytes=t.zeroPadValue=t.stripZerosLeft=t.dataSlice=t.dataLength=t.concat=t.hexlify=t.isBytesLike=t.isHexString=t.getBytesCopy=t.getBytes=t.encodeBase64=t.decodeBase64=t.encodeBase58=t.decodeBase58=void 0,t.uuidV4=t.Utf8ErrorFuncs=void 0;var o=r(2112);Object.defineProperty(t,"decodeBase58",{enumerable:!0,get:function(){return o.decodeBase58}}),Object.defineProperty(t,"encodeBase58",{enumerable:!0,get:function(){return o.encodeBase58}});var n=r(6930);Object.defineProperty(t,"decodeBase64",{enumerable:!0,get:function(){return n.decodeBase64}}),Object.defineProperty(t,"encodeBase64",{enumerable:!0,get:function(){return n.encodeBase64}});var a=r(8256);Object.defineProperty(t,"getBytes",{enumerable:!0,get:function(){return a.getBytes}}),Object.defineProperty(t,"getBytesCopy",{enumerable:!0,get:function(){return a.getBytesCopy}}),Object.defineProperty(t,"isHexString",{enumerable:!0,get:function(){return a.isHexString}}),Object.defineProperty(t,"isBytesLike",{enumerable:!0,get:function(){return a.isBytesLike}}),Object.defineProperty(t,"hexlify",{enumerable:!0,get:function(){return a.hexlify}}),Object.defineProperty(t,"concat",{enumerable:!0,get:function(){return a.concat}}),Object.defineProperty(t,"dataLength",{enumerable:!0,get:function(){return a.dataLength}}),Object.defineProperty(t,"dataSlice",{enumerable:!0,get:function(){return a.dataSlice}}),Object.defineProperty(t,"stripZerosLeft",{enumerable:!0,get:function(){return a.stripZerosLeft}}),Object.defineProperty(t,"zeroPadValue",{enumerable:!0,get:function(){return a.zeroPadValue}}),Object.defineProperty(t,"zeroPadBytes",{enumerable:!0,get:function(){return a.zeroPadBytes}});var i=r(7991);Object.defineProperty(t,"isCallException",{enumerable:!0,get:function(){return i.isCallException}}),Object.defineProperty(t,"isError",{enumerable:!0,get:function(){return i.isError}}),Object.defineProperty(t,"assert",{enumerable:!0,get:function(){return i.assert}}),Object.defineProperty(t,"assertArgument",{enumerable:!0,get:function(){return i.assertArgument}}),Object.defineProperty(t,"assertArgumentCount",{enumerable:!0,get:function(){return i.assertArgumentCount}}),Object.defineProperty(t,"assertPrivate",{enumerable:!0,get:function(){return i.assertPrivate}}),Object.defineProperty(t,"assertNormalize",{enumerable:!0,get:function(){return i.assertNormalize}}),Object.defineProperty(t,"makeError",{enumerable:!0,get:function(){return i.makeError}});var s=r(2633);Object.defineProperty(t,"EventPayload",{enumerable:!0,get:function(){return s.EventPayload}});var c=r(8478);Object.defineProperty(t,"FetchRequest",{enumerable:!0,get:function(){return c.FetchRequest}}),Object.defineProperty(t,"FetchResponse",{enumerable:!0,get:function(){return c.FetchResponse}}),Object.defineProperty(t,"FetchCancelSignal",{enumerable:!0,get:function(){return c.FetchCancelSignal}});var l=r(9593);Object.defineProperty(t,"FixedNumber",{enumerable:!0,get:function(){return l.FixedNumber}});var u=r(7597);Object.defineProperty(t,"fromTwos",{enumerable:!0,get:function(){return u.fromTwos}}),Object.defineProperty(t,"toTwos",{enumerable:!0,get:function(){return u.toTwos}}),Object.defineProperty(t,"mask",{enumerable:!0,get:function(){return u.mask}}),Object.defineProperty(t,"getBigInt",{enumerable:!0,get:function(){return u.getBigInt}}),Object.defineProperty(t,"getNumber",{enumerable:!0,get:function(){return u.getNumber}}),Object.defineProperty(t,"getUint",{enumerable:!0,get:function(){return u.getUint}}),Object.defineProperty(t,"toBigInt",{enumerable:!0,get:function(){return u.toBigInt}}),Object.defineProperty(t,"toNumber",{enumerable:!0,get:function(){return u.toNumber}}),Object.defineProperty(t,"toBeHex",{enumerable:!0,get:function(){return u.toBeHex}}),Object.defineProperty(t,"toBeArray",{enumerable:!0,get:function(){return u.toBeArray}}),Object.defineProperty(t,"toQuantity",{enumerable:!0,get:function(){return u.toQuantity}});var f=r(5213);Object.defineProperty(t,"resolveProperties",{enumerable:!0,get:function(){return f.resolveProperties}}),Object.defineProperty(t,"defineProperties",{enumerable:!0,get:function(){return f.defineProperties}});var d=r(4975);Object.defineProperty(t,"decodeRlp",{enumerable:!0,get:function(){return d.decodeRlp}});var h=r(6763);Object.defineProperty(t,"encodeRlp",{enumerable:!0,get:function(){return h.encodeRlp}});var p=r(5113);Object.defineProperty(t,"formatEther",{enumerable:!0,get:function(){return p.formatEther}}),Object.defineProperty(t,"parseEther",{enumerable:!0,get:function(){return p.parseEther}}),Object.defineProperty(t,"formatUnits",{enumerable:!0,get:function(){return p.formatUnits}}),Object.defineProperty(t,"parseUnits",{enumerable:!0,get:function(){return p.parseUnits}});var g=r(347);Object.defineProperty(t,"toUtf8Bytes",{enumerable:!0,get:function(){return g.toUtf8Bytes}}),Object.defineProperty(t,"toUtf8CodePoints",{enumerable:!0,get:function(){return g.toUtf8CodePoints}}),Object.defineProperty(t,"toUtf8String",{enumerable:!0,get:function(){return g.toUtf8String}}),Object.defineProperty(t,"Utf8ErrorFuncs",{enumerable:!0,get:function(){return g.Utf8ErrorFuncs}});var m=r(4791);Object.defineProperty(t,"uuidV4",{enumerable:!0,get:function(){return m.uuidV4}})},1613:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.Alphabet=void 0,function(e){e.JINGTUM="jpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65rkm8oFqi1tuvAxyz",e.SWT="jpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65rkm8oFqi1tuvAxyz",e.RIPPLE="rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz",e.CALL="cpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2brdeCg65jkm8oFqi1tuvAxyz",e.STREAM="vpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1turAxyz",e.BVCADT="bpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2rcdeCg65jkm8oFqi1tuvAxyz",e.BIZAIN="bpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2jcdeCg65rkm8oFqi1tuvAxyz",e.XRP="rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz",e.SWTC="jpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65rkm8oFqi1tuvAxyz"}(r||(t.Alphabet=r={}))},1630:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TRON_MESSAGE_PREFIX=void 0,t.hashMessage=u,t.signMessage=function(e,t){t.match(/^0x/)||(t="0x"+t);const r=new i.SigningKey(t),o=u(e),n=r.sign(o);return l(n)},t.verifyMessage=function(e,t){t.match(/^0x/)||(t="0x"+t);const r=(0,s.recoverAddress)(u(e),t);return(0,n.getBase58CheckAddress)((0,a.hexStr2byteArray)(r.replace(/^0x/,o.ADDRESS_PREFIX)))};const o=r(2737),n=r(4856),a=r(9660),i=r(7256),s=r(4927),c=r(1490),l=e=>i.Signature.from(e).serialized;function u(e){return"string"==typeof e&&(e=(0,c.toUtf8Bytes)(e)),Array.isArray(e)&&(e=new Uint8Array(e)),(0,i.keccak256)((0,c.concat)([(0,c.toUtf8Bytes)(t.TRON_MESSAGE_PREFIX),(0,c.toUtf8Bytes)(String(e.length)),e]))}t.TRON_MESSAGE_PREFIX="TRON Signed Message:\n"},1636:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pubToAddress=void 0;const o=r(8241),n=r(4790),a=r(9967);t.pubToAddress=function(e,t=!1){if((0,a.assertIsBytes)(e),t&&64!==e.length&&(e=o.secp256k1.ProjectivePoint.fromHex(e).toRawBytes(!1).slice(1)),64!==e.length)throw new Error("Expected pubKey to be of length 64");return(0,n.keccak256)(e).subarray(-20)}},1678:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessagePrefix=t.EtherSymbol=t.MaxInt256=t.MinInt256=t.MaxUint256=t.WeiPerEther=t.N=t.ZeroHash=t.ZeroAddress=void 0;var o=r(4138);Object.defineProperty(t,"ZeroAddress",{enumerable:!0,get:function(){return o.ZeroAddress}});var n=r(9092);Object.defineProperty(t,"ZeroHash",{enumerable:!0,get:function(){return n.ZeroHash}});var a=r(4660);Object.defineProperty(t,"N",{enumerable:!0,get:function(){return a.N}}),Object.defineProperty(t,"WeiPerEther",{enumerable:!0,get:function(){return a.WeiPerEther}}),Object.defineProperty(t,"MaxUint256",{enumerable:!0,get:function(){return a.MaxUint256}}),Object.defineProperty(t,"MinInt256",{enumerable:!0,get:function(){return a.MinInt256}}),Object.defineProperty(t,"MaxInt256",{enumerable:!0,get:function(){return a.MaxInt256}});var i=r(4907);Object.defineProperty(t,"EtherSymbol",{enumerable:!0,get:function(){return i.EtherSymbol}}),Object.defineProperty(t,"MessagePrefix",{enumerable:!0,get:function(){return i.MessagePrefix}})},1831:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pbkdf2=void 0;const o=r(6710),n=r(1490);let a=!1;const i=function(e,t,r,n,a){return(0,o.pbkdf2Sync)(e,t,r,n,a)};let s=i;function c(e,t,r,o,a){const i=(0,n.getBytes)(e,"password"),c=(0,n.getBytes)(t,"salt");return(0,n.hexlify)(s(i,c,r,o,a))}t.pbkdf2=c,c._=i,c.lock=function(){a=!0},c.register=function(e){if(a)throw new Error("pbkdf2 is locked");s=e},Object.freeze(c)},1919:e=>{e.exports=[[2147483648,"BTC","Bitcoin"],[2147483649,"","Testnet (all coins)"],[2147483650,"LTC","Litecoin"],[2147483651,"DOGE","Dogecoin"],[2147483652,"RDD","Reddcoin"],[2147483653,"DASH","Dash"],[2147483654,"PPC","Peercoin"],[2147483655,"NMC","Namecoin"],[2147483656,"FTC","Feathercoin"],[2147483657,"XCP","Counterparty"],[2147483658,"BLK","Blackcoin"],[2147483659,"NSR","NuShares"],[2147483660,"NBT","NuBits"],[2147483661,"MZC","Mazacoin"],[2147483662,"VIA","Viacoin"],[2147483663,"XCH","ClearingHouse"],[2147483664,"RBY","Rubycoin"],[2147483665,"GRS","Groestlcoin"],[2147483666,"DGC","Digitalcoin"],[2147483667,"CCN","Cannacoin"],[2147483668,"DGB","DigiByte"],[2147483669,"","Open Assets"],[2147483670,"MONA","Monacoin"],[2147483671,"CLAM","Clams"],[2147483672,"XPM","Primecoin"],[2147483673,"NEOS","Neoscoin"],[2147483674,"JBS","Jumbucks"],[2147483675,"ZRC","ziftrCOIN"],[2147483676,"VTC","Vertcoin"],[2147483677,"NXT","NXT"],[2147483678,"BURST","Burst"],[2147483679,"MUE","MonetaryUnit"],[2147483680,"ZOOM","Zoom"],[2147483681,"VASH","Virtual Cash"],[2147483682,"CDN","Canada eCoin"],[2147483683,"SDC","ShadowCash"],[2147483684,"PKB","ParkByte"],[2147483685,"PND","Pandacoin"],[2147483686,"START","StartCOIN"],[2147483687,"MOIN","MOIN"],[2147483688,"EXP","Expanse"],[2147483689,"EMC2","Einsteinium"],[2147483690,"DCR","Decred"],[2147483691,"XEM","NEM"],[2147483692,"PART","Particl"],[2147483693,"ARG","Argentum (dead)"],[2147483694,"","Libertas"],[2147483695,"","Posw coin"],[2147483696,"SHR","Shreeji"],[2147483697,"GCR","Global Currency Reserve (GCRcoin)"],[2147483698,"NVC","Novacoin"],[2147483699,"AC","Asiacoin"],[2147483700,"BTCD","BitcoinDark"],[2147483701,"DOPE","Dopecoin"],[2147483702,"TPC","Templecoin"],[2147483703,"AIB","AIB"],[2147483704,"EDRC","EDRCoin"],[2147483705,"SYS","Syscoin"],[2147483706,"SLR","Solarcoin"],[2147483707,"SMLY","Smileycoin"],[2147483708,"ETH","Ether"],[2147483709,"ETC","Ether Classic"],[2147483710,"PSB","Pesobit"],[2147483711,"LDCN","Landcoin (dead)"],[2147483712,"","Open Chain"],[2147483713,"XBC","Bitcoinplus"],[2147483714,"IOP","Internet of People"],[2147483715,"NXS","Nexus"],[2147483716,"INSN","InsaneCoin"],[2147483717,"OK","OKCash"],[2147483718,"BRIT","BritCoin"],[2147483719,"CMP","Compcoin"],[2147483720,"CRW","Crown"],[2147483721,"BELA","BelaCoin"],[2147483722,"ICX","ICON"],[2147483723,"FJC","FujiCoin"],[2147483724,"MIX","MIX"],[2147483725,"XVG","Verge Currency"],[2147483726,"EFL","Electronic Gulden"],[2147483727,"CLUB","ClubCoin"],[2147483728,"RICHX","RichCoin"],[2147483729,"POT","Potcoin"],[2147483730,"QRK","Quarkcoin"],[2147483731,"TRC","Terracoin"],[2147483732,"GRC","Gridcoin"],[2147483733,"AUR","Auroracoin"],[2147483734,"IXC","IXCoin"],[2147483735,"NLG","Gulden"],[2147483736,"BITB","BitBean"],[2147483737,"BTA","Bata"],[2147483738,"XMY","Myriadcoin"],[2147483739,"BSD","BitSend"],[2147483740,"UNO","Unobtanium"],[2147483741,"MTR","MasterTrader"],[2147483742,"GB","GoldBlocks"],[2147483743,"SHM","Saham"],[2147483744,"CRX","Chronos"],[2147483745,"BIQ","Ubiquoin"],[2147483746,"EVO","Evotion"],[2147483747,"STO","SaveTheOcean"],[2147483748,"BIGUP","BigUp"],[2147483749,"GAME","GameCredits"],[2147483750,"DLC","Dollarcoins"],[2147483751,"ZYD","Zayedcoin"],[2147483752,"DBIC","Dubaicoin"],[2147483753,"STRAT","Stratis"],[2147483754,"SH","Shilling"],[2147483755,"MARS","MarsCoin"],[2147483756,"UBQ","Ubiq"],[2147483757,"PTC","Pesetacoin"],[2147483758,"NRO","Neurocoin"],[2147483759,"ARK","ARK"],[2147483760,"USC","UltimateSecureCashMain"],[2147483761,"THC","Hempcoin"],[2147483762,"LINX","Linx"],[2147483763,"ECN","Ecoin"],[2147483764,"DNR","Denarius"],[2147483765,"PINK","Pinkcoin"],[2147483766,"ATOM","Atom"],[2147483767,"PIVX","Pivx"],[2147483768,"FLASH","Flashcoin"],[2147483769,"ZEN","Zencash"],[2147483770,"PUT","Putincoin"],[2147483771,"ZNY","BitZeny"],[2147483772,"UNIFY","Unify"],[2147483773,"XST","StealthCoin"],[2147483774,"BRK","Breakout Coin"],[2147483775,"VC","Vcash"],[2147483776,"XMR","Monero"],[2147483777,"VOX","Voxels"],[2147483778,"NAV","NavCoin"],[2147483779,"FCT","Factom Factoids"],[2147483780,"EC","Factom Entry Credits"],[2147483781,"ZEC","Zcash"],[2147483782,"LSK","Lisk"],[2147483783,"STEEM","Steem"],[2147483784,"XZC","ZCoin"],[2147483785,"RBTC","Rootstock"],[2147483786,"","Giftblock"],[2147483787,"RPT","RealPointCoin"],[2147483788,"LBC","LBRY Credits"],[2147483789,"KMD","Komodo"],[2147483790,"BSQ","bisq Token"],[2147483791,"RIC","Riecoin"],[2147483792,"XRP","XRP"],[2147483793,"BCH","Bitcoin Cash"],[2147483794,"NEBL","Neblio"],[2147483795,"ZCL","ZClassic"],[2147483796,"XLM","Stellar Lumens"],[2147483797,"NLC2","NoLimitCoin2"],[2147483798,"WHL","WhaleCoin"],[2147483799,"ERC","EuropeCoin"],[2147483800,"DMD","Diamond"],[2147483801,"BTM","Bytom"],[2147483802,"BIO","Biocoin"],[2147483803,"XWCC","Whitecoin Classic"],[2147483804,"BTG","Bitcoin Gold"],[2147483805,"BTC2X","Bitcoin 2x"],[2147483806,"SSN","SuperSkynet"],[2147483807,"TOA","TOACoin"],[2147483808,"BTX","Bitcore"],[2147483809,"ACC","Adcoin"],[2147483810,"BCO","Bridgecoin"],[2147483811,"ELLA","Ellaism"],[2147483812,"PIRL","Pirl"],[2147483813,"XNO","Nano"],[2147483814,"VIVO","Vivo"],[2147483815,"FRST","Firstcoin"],[2147483816,"HNC","Helleniccoin"],[2147483817,"BUZZ","BUZZ"],[2147483818,"MBRS","Ember"],[2147483819,"HC","Hcash"],[2147483820,"HTML","HTMLCOIN"],[2147483821,"ODN","Obsidian"],[2147483822,"ONX","OnixCoin"],[2147483823,"RVN","Ravencoin"],[2147483824,"GBX","GoByte"],[2147483825,"BTCZ","BitcoinZ"],[2147483826,"POA","Poa"],[2147483827,"NYC","NewYorkCoin"],[2147483828,"MXT","MarteXcoin"],[2147483829,"WC","Wincoin"],[2147483830,"MNX","Minexcoin"],[2147483831,"BTCP","Bitcoin Private"],[2147483832,"MUSIC","Musicoin"],[2147483833,"BCA","Bitcoin Atom"],[2147483834,"CRAVE","Crave"],[2147483835,"STAK","STRAKS"],[2147483836,"WBTC","World Bitcoin"],[2147483837,"LCH","LiteCash"],[2147483838,"EXCL","ExclusiveCoin"],[2147483839,"LYNX","Lynx"],[2147483840,"LCC","LitecoinCash"],[2147483841,"XFE","Feirm"],[2147483842,"EOS","EOS"],[2147483843,"TRX","Tron"],[2147483844,"KOBO","Kobocoin"],[2147483845,"HUSH","HUSH"],[2147483846,"BAN","Banano"],[2147483847,"ETF","ETF"],[2147483848,"OMNI","Omni"],[2147483849,"BIFI","BitcoinFile"],[2147483850,"UFO","Uniform Fiscal Object"],[2147483851,"CNMC","Cryptonodes"],[2147483852,"BCN","Bytecoin"],[2147483853,"RIN","Ringo"],[2147483854,"ATP","Alaya"],[2147483855,"EVT","everiToken"],[2147483856,"ATN","ATN"],[2147483857,"BIS","Bismuth"],[2147483858,"NEET","NEETCOIN"],[2147483859,"BOPO","BopoChain"],[2147483860,"OOT","Utrum"],[2147483861,"ALIAS","Alias"],[2147483862,"MONK","Monkey Project"],[2147483863,"BOXY","BoxyCoin"],[2147483864,"FLO","Flo"],[2147483865,"MEC","Megacoin"],[2147483866,"BTDX","BitCloud"],[2147483867,"XAX","Artax"],[2147483868,"ANON","ANON"],[2147483869,"LTZ","LitecoinZ"],[2147483870,"BITG","Bitcoin Green"],[2147483871,"ICP","Internet Computer (DFINITY)"],[2147483872,"SMART","Smartcash"],[2147483873,"XUEZ","XUEZ"],[2147483874,"HLM","Helium"],[2147483875,"WEB","Webchain"],[2147483876,"ACM","Actinium"],[2147483877,"NOS","NOS Stable Coins"],[2147483878,"BITC","BitCash"],[2147483879,"HTH","Help The Homeless Coin"],[2147483880,"TZC","Trezarcoin"],[2147483881,"VAR","Varda"],[2147483882,"IOV","IOV"],[2147483883,"FIO","FIO"],[2147483884,"BSV","BitcoinSV"],[2147483885,"DXN","DEXON"],[2147483886,"QRL","Quantum Resistant Ledger"],[2147483887,"PCX","ChainX"],[2147483888,"LOKI","Loki"],[2147483889,"","Imagewallet"],[2147483890,"NIM","Nimiq"],[2147483891,"SOV","Sovereign Coin"],[2147483892,"JCT","Jibital Coin"],[2147483893,"SLP","Simple Ledger Protocol"],[2147483894,"EWT","Energy Web"],[2147483895,"UC","Ulord"],[2147483896,"EXOS","EXOS"],[2147483897,"ECA","Electra"],[2147483898,"SOOM","Soom"],[2147483899,"XRD","Redstone"],[2147483900,"FREE","FreeCoin"],[2147483901,"NPW","NewPowerCoin"],[2147483902,"BST","BlockStamp"],[2147483903,"","SmartHoldem"],[2147483904,"NANO","Bitcoin Nano"],[2147483905,"BTCC","Bitcoin Core"],[2147483906,"","Zen Protocol"],[2147483907,"ZEST","Zest"],[2147483908,"ABT","ArcBlock"],[2147483909,"PION","Pion"],[2147483910,"DT3","DreamTeam3"],[2147483911,"ZBUX","Zbux"],[2147483912,"KPL","Kepler"],[2147483913,"TPAY","TokenPay"],[2147483914,"ZILLA","ChainZilla"],[2147483915,"ANK","Anker"],[2147483916,"BCC","BCChain"],[2147483917,"HPB","HPB"],[2147483918,"ONE","ONE"],[2147483919,"SBC","SBC"],[2147483920,"IPC","IPChain"],[2147483921,"DMTC","Dominantchain"],[2147483922,"OGC","Onegram"],[2147483923,"SHIT","Shitcoin"],[2147483924,"ANDES","Andescoin"],[2147483925,"AREPA","Arepacoin"],[2147483926,"BOLI","Bolivarcoin"],[2147483927,"RIL","Rilcoin"],[2147483928,"HTR","Hathor Network"],[2147483929,"ACME","Accumulate"],[2147483930,"BRAVO","BRAVO"],[2147483931,"ALGO","Algorand"],[2147483932,"BZX","Bitcoinzero"],[2147483933,"GXX","GravityCoin"],[2147483934,"HEAT","HEAT"],[2147483935,"XDN","DigitalNote"],[2147483936,"FSN","FUSION"],[2147483937,"CPC","Capricoin"],[2147483938,"BOLD","Bold"],[2147483939,"IOST","IOST"],[2147483940,"TKEY","Tkeycoin"],[2147483941,"USE","Usechain"],[2147483942,"BCZ","BitcoinCZ"],[2147483943,"IOC","Iocoin"],[2147483944,"ASF","Asofe"],[2147483945,"MASS","MASS"],[2147483946,"FAIR","FairCoin"],[2147483947,"NUKO","Nekonium"],[2147483948,"GNX","Genaro Network"],[2147483949,"DIVI","Divi Project"],[2147483950,"CMT","Community"],[2147483951,"EUNO","EUNO"],[2147483952,"IOTX","IoTeX"],[2147483953,"ONION","DeepOnion"],[2147483954,"8BIT","8Bit"],[2147483955,"ATC","AToken Coin"],[2147483956,"BTS","Bitshares"],[2147483957,"CKB","Nervos CKB"],[2147483958,"UGAS","Ultrain"],[2147483959,"ADS","Adshares"],[2147483960,"ARA","Aura"],[2147483961,"ZIL","Zilliqa"],[2147483962,"MOAC","MOAC"],[2147483963,"SWTC","SWTC"],[2147483964,"VNSC","vnscoin"],[2147483965,"PLUG","Pl^g"],[2147483966,"MAN","Matrix AI Network"],[2147483967,"ECC","ECCoin"],[2147483968,"RPD","Rapids"],[2147483969,"RAP","Rapture"],[2147483970,"GARD","Hashgard"],[2147483971,"ZER","Zero"],[2147483972,"EBST","eBoost"],[2147483973,"SHARD","Shard"],[2147483974,"MRX","Metrix Coin"],[2147483975,"CMM","Commercium"],[2147483976,"BLOCK","Blocknet"],[2147483977,"AUDAX","AUDAX"],[2147483978,"LUNA","Terra"],[2147483979,"ZPM","zPrime"],[2147483980,"KUVA","Kuva Utility Note"],[2147483981,"MEM","MemCoin"],[2147483982,"CS","Credits"],[2147483983,"SWIFT","SwiftCash"],[2147483984,"FIX","FIX"],[2147483985,"CPC","CPChain"],[2147483986,"VGO","VirtualGoodsToken"],[2147483987,"DVT","DeVault"],[2147483988,"N8V","N8VCoin"],[2147483989,"MTNS","OmotenashiCoin"],[2147483990,"BLAST","BLAST"],[2147483991,"DCT","DECENT"],[2147483992,"AUX","Auxilium"],[2147483993,"USDP","USDP"],[2147483994,"HTDF","HTDF"],[2147483995,"YEC","Ycash"],[2147483996,"QLC","QLC Chain"],[2147483997,"TEA","Icetea Blockchain"],[2147483998,"ARW","ArrowChain"],[2147483999,"MDM","Medium"],[2147484e3,"CYB","Cybex"],[2147484001,"LTO","LTO Network"],[2147484002,"DOT","Polkadot"],[2147484003,"AEON","Aeon"],[2147484004,"RES","Resistance"],[2147484005,"AYA","Aryacoin"],[2147484006,"DAPS","Dapscoin"],[2147484007,"CSC","CasinoCoin"],[2147484008,"VSYS","V Systems"],[2147484009,"NOLLAR","Nollar"],[2147484010,"XNOS","NOS"],[2147484011,"CPU","CPUchain"],[2147484012,"LAMB","Lambda Storage Chain"],[2147484013,"VCT","ValueCyber"],[2147484014,"CZR","Canonchain"],[2147484015,"ABBC","ABBC"],[2147484016,"HET","HET"],[2147484017,"XAS","Asch"],[2147484018,"VDL","Vidulum"],[2147484019,"MED","MediBloc"],[2147484020,"ZVC","ZVChain"],[2147484021,"VESTX","Vestx"],[2147484022,"DBT","DarkBit"],[2147484023,"SEOS","SuperEOS"],[2147484024,"MXW","Maxonrow"],[2147484025,"ZNZ","ZENZO"],[2147484026,"XCX","XChain"],[2147484027,"SOX","SonicX"],[2147484028,"NYZO","Nyzo"],[2147484029,"ULC","ULCoin"],[2147484030,"RYO","Ryo Currency"],[2147484031,"KAL","Kaleidochain"],[2147484032,"XSN","Stakenet"],[2147484033,"DOGEC","DogeCash"],[2147484034,"BMV","Bitcoin Matteo's Vision"],[2147484035,"QBC","Quebecoin"],[2147484036,"IMG","ImageCoin"],[2147484037,"QOS","QOS"],[2147484038,"PKT","PKT"],[2147484039,"LHD","LitecoinHD"],[2147484040,"CENNZ","CENNZnet"],[2147484041,"HSN","Hyper Speed Network"],[2147484042,"CRO","Crypto Chain"],[2147484043,"UMBRU","Umbru"],[2147484044,"EVER","Everscale"],[2147484045,"NEAR","NEAR Protocol"],[2147484046,"XPC","XPChain"],[2147484047,"ZOC","01coin"],[2147484048,"NIX","NIX"],[2147484049,"UC","Utopiacoin"],[2147484050,"GALI","Galilel"],[2147484051,"OLT","Oneledger"],[2147484052,"XBI","XBI"],[2147484053,"DONU","DONU"],[2147484054,"EARTHS","Earths"],[2147484055,"HDD","HDDCash"],[2147484056,"SUGAR","Sugarchain"],[2147484057,"AILE","AileCoin"],[2147484058,"TENT","TENT"],[2147484059,"TAN","Tangerine Network"],[2147484060,"AIN","AIN"],[2147484061,"MSR","Masari"],[2147484062,"SUMO","Sumokoin"],[2147484063,"ETN","Electroneum"],[2147484064,"BYTZ","BYTZ"],[2147484065,"WOW","Wownero"],[2147484066,"XTNC","XtendCash"],[2147484067,"LTHN","Lethean"],[2147484068,"NODE","NodeHost"],[2147484069,"AGM","Argoneum"],[2147484070,"CCX","Conceal Network"],[2147484071,"TNET","Title Network"],[2147484072,"TELOS","TelosCoin"],[2147484073,"AION","Aion"],[2147484074,"BC","Bitcoin Confidential"],[2147484075,"KTV","KmushiCoin"],[2147484076,"ZCR","ZCore"],[2147484077,"ERG","Ergo"],[2147484078,"PESO","Criptopeso"],[2147484079,"BTC2","Bitcoin 2"],[2147484080,"XRPHD","XRPHD"],[2147484081,"WE","WE Coin"],[2147484082,"KSM","Kusama"],[2147484083,"PCN","Peepcoin"],[2147484084,"NCH","NetCloth"],[2147484085,"ICU","CHIPO"],[2147484086,"FNSA","FINSCHIA"],[2147484087,"DTP","DeVault Token Protocol"],[2147484088,"BTCR","Bitcoin Royale"],[2147484089,"AERGO","AERGO"],[2147484090,"XTH","Dothereum"],[2147484091,"LV","Lava"],[2147484092,"PHR","Phore"],[2147484093,"VITAE","Vitae"],[2147484094,"COCOS","Cocos-BCX"],[2147484095,"DIN","Dinero"],[2147484096,"SPL","Simplicity"],[2147484097,"YCE","MYCE"],[2147484098,"XLR","Solaris"],[2147484099,"KTS","Klimatas"],[2147484100,"DGLD","DGLD"],[2147484101,"XNS","Insolar"],[2147484102,"EM","EMPOW"],[2147484103,"SHN","ShineBlocks"],[2147484104,"SEELE","Seele"],[2147484105,"AE","æternity"],[2147484106,"ODX","ObsidianX"],[2147484107,"KAVA","Kava"],[2147484108,"GLEEC","GLEEC"],[2147484109,"FIL","Filecoin"],[2147484110,"RUTA","Rutanio"],[2147484111,"CSDT","CSDT"],[2147484112,"ETI","EtherInc"],[2147484113,"ZSLP","Zclassic Simple Ledger Protocol"],[2147484114,"ERE","EtherCore"],[2147484115,"DX","DxChain Token"],[2147484116,"CPS","Capricoin+"],[2147484117,"BTH","Bithereum"],[2147484118,"MESG","MESG"],[2147484119,"FIMK","FIMK"],[2147484120,"AR","Arweave"],[2147484121,"OGO","Origo"],[2147484122,"ROSE","Oasis Network"],[2147484123,"BARE","BARE Network"],[2147484124,"GLEEC","GleecBTC"],[2147484125,"CLR","Color Coin"],[2147484126,"RNG","Ring"],[2147484127,"OLO","Tool Global"],[2147484128,"PEXA","Pexa"],[2147484129,"MOON","Mooncoin"],[2147484130,"OCEAN","Ocean Protocol"],[2147484131,"BNT","Bluzelle Native"],[2147484132,"AMO","AMO Blockchain"],[2147484133,"FCH","FreeCash"],[2147484134,"LAT","PlatON"],[2147484135,"COIN","Bitcoin Bank"],[2147484136,"VEO","Amoveo"],[2147484137,"CCA","Counos Coin"],[2147484138,"GFN","Graphene"],[2147484139,"BIP","Minter Network"],[2147484140,"KPG","Kunpeng Network"],[2147484141,"FIN","FINL Chain"],[2147484142,"BAND","Band"],[2147484143,"DROP","Dropil"],[2147484144,"BHT","Bluehelix Chain"],[2147484145,"LYRA","Scrypta"],[2147484146,"CS","Credits"],[2147484147,"RUPX","Rupaya"],[2147484148,"THETA","Theta"],[2147484149,"SOL","Solana"],[2147484150,"THT","ThoughtAI"],[2147484151,"CFX","Conflux"],[2147484152,"KUMA","Kumacoin"],[2147484153,"HASH","Provenance"],[2147484154,"CSPR","Casper"],[2147484155,"EARTH","EARTH"],[2147484156,"EGLD","MultiversX"],[2147484157,"CHI","Xaya"],[2147484158,"KOTO","Koto"],[2147484159,"OTC","θ"],[2147484160,"RXD","Radiant"],[2147484161,"SEELEN","Seele-N"],[2147484162,"AETH","AETH"],[2147484163,"DNA","Idena"],[2147484164,"VEE","Virtual Economy Era"],[2147484165,"SIERRA","SierraCoin"],[2147484166,"LET","Linkeye"],[2147484167,"BSC","Bitcoin Smart Contract"],[2147484168,"BTCV","BitcoinVIP"],[2147484169,"ABA","Dabacus"],[2147484170,"SCC","StakeCubeCoin"],[2147484171,"EDG","Edgeware"],[2147484172,"AMS","AmsterdamCoin"],[2147484173,"GOSS","GOSSIP Coin"],[2147484174,"BU","BUMO"],[2147484175,"GRAM","GRAM"],[2147484176,"YAP","Yapstone"],[2147484177,"SCRT","Secret Network"],[2147484178,"NOVO","Novo"],[2147484179,"GHOST","Ghost"],[2147484180,"HST","HST"],[2147484181,"PRJ","ProjectCoin"],[2147484182,"YOU","YOUChain"],[2147484183,"XHV","Haven Protocol"],[2147484184,"BYND","Beyondcoin"],[2147484185,"JOYS","Joys Digital"],[2147484186,"VAL","Valorbit"],[2147484187,"FLOW","Flow"],[2147484188,"SMESH","Spacemesh Coin"],[2147484189,"SCDO","SCDO"],[2147484190,"IQS","IQ-Cash"],[2147484191,"BIND","Compendia"],[2147484192,"COINEVO","Coinevo"],[2147484193,"SCRIBE","Scribe"],[2147484194,"HYN","Hyperion"],[2147484195,"BHP","BHP"],[2147484196,"BBC","BigBang Core"],[2147484197,"MKF","MarketFinance"],[2147484198,"XDC","XinFin"],[2147484199,"STR","Straightedge"],[2147484200,"SUM","Sumcoin"],[2147484201,"HBC","HuobiChain"],[2147484202,"---","reserved"],[2147484203,"BCS","Bitcoin Smart"],[2147484204,"KTS","Kratos"],[2147484205,"LKR","Lkrcoin"],[2147484206,"TAO","Tao"],[2147484207,"XWC","Whitecoin"],[2147484208,"DEAL","DEAL"],[2147484209,"NTY","Nexty"],[2147484210,"TOP","TOP NetWork"],[2147484211,"---","reserved"],[2147484212,"AG","Agoric"],[2147484213,"CICO","Coinicles"],[2147484214,"IRIS","Irisnet"],[2147484215,"NCG","Nine Chronicles"],[2147484216,"LRG","Large Coin"],[2147484217,"SERO","Super Zero Protocol"],[2147484218,"BDX","Beldex"],[2147484219,"CCXX","Counos X"],[2147484220,"SLS","Saluscoin"],[2147484221,"SRM","Serum"],[2147484222,"---","reserved"],[2147484223,"VIVT","VIDT Datalink"],[2147484224,"BPS","BitcoinPoS"],[2147484225,"NKN","NKN"],[2147484226,"ICL","ILCOIN"],[2147484227,"BONO","Bonorum"],[2147484228,"PLC","PLATINCOIN"],[2147484229,"DUN","Dune"],[2147484230,"DMCH","Darmacash"],[2147484231,"CTC","Creditcoin"],[2147484232,"KELP","Haidai Network"],[2147484233,"GBCR","GoldBCR"],[2147484234,"XDAG","XDAG"],[2147484235,"PRV","Incognito Privacy"],[2147484236,"SCAP","SafeCapital"],[2147484237,"TFUEL","Theta Fuel"],[2147484238,"GTM","Gentarium"],[2147484239,"RNL","RentalChain"],[2147484240,"GRIN","Grin"],[2147484241,"MWC","MimbleWimbleCoin"],[2147484242,"DOCK","Dock"],[2147484243,"POLYX","Polymesh"],[2147484244,"DIVER","Divergenti"],[2147484245,"XEP","Electra Protocol"],[2147484246,"APN","Apron"],[2147484247,"TFC","Turbo File Coin"],[2147484248,"UTE","Unit-e"],[2147484249,"MTC","Metacoin"],[2147484250,"NC","NobodyCash"],[2147484251,"XINY","Xinyuehu"],[2147484252,"DYN","Dynamo"],[2147484253,"BUFS","Buffer"],[2147484254,"STOS","Stratos"],[2147484255,"TON","TON"],[2147484256,"TAFT","TAFT"],[2147484257,"HYDRA","HYDRA"],[2147484258,"NOR","Noir"],[2147484259,"","Manta Network Private Asset"],[2147484260,"","Calamari Network Private Asset"],[2147484261,"WCN","Widecoin"],[2147484262,"OPT","Optimistic Ethereum"],[2147484263,"PSWAP","PolkaSwap"],[2147484264,"VAL","Validator"],[2147484265,"XOR","Sora"],[2147484266,"SSP","SmartShare"],[2147484267,"DEI","DeimosX"],[2147484268,"---","reserved"],[2147484269,"ZERO","Singularity"],[2147484270,"ALPHA","AlphaDAO"],[2147484271,"BDECO","BDCashProtocol Ecosystem"],[2147484272,"NOBL","Nobility"],[2147484273,"EAST","Eastcoin"],[2147484274,"KDA","Kadena"],[2147484275,"SOUL","Phantasma"],[2147484276,"LORE","Gitopia"],[2147484277,"FNR","Fincor"],[2147484278,"NEXUS","Nexus"],[2147484279,"QTZ","Quartz"],[2147484280,"MAS","Massa"],[2147484281,"CALL","Callchain"],[2147484282,"VAL","Validity"],[2147484283,"POKT","Pocket Network"],[2147484284,"EMIT","EMIT"],[2147484285,"APTOS","Aptos"],[2147484286,"ADON","ADON"],[2147484287,"BTSG","BitSong"],[2147484288,"LFC","Leofcoin"],[2147484289,"KCS","KuCoin Shares"],[2147484290,"KCC","KuCoin Community Chain"],[2147484291,"AZERO","Aleph Zero"],[2147484292,"TREE","Tree"],[2147484293,"LX","Lynx"],[2147484294,"XLN","Lunarium"],[2147484295,"CIC","CIC Chain"],[2147484296,"ZRB","Zarb"],[2147484297,"---","reserved"],[2147484298,"UCO","Archethic"],[2147484299,"SFX","Safex Cash"],[2147484300,"SFT","Safex Token"],[2147484301,"WSFX","Wrapped Safex Cash"],[2147484302,"USDG","US Digital Gold"],[2147484303,"WMP","WAMP"],[2147484304,"EKTA","Ekta"],[2147484305,"YDA","YadaCoin"],[2147484306,"WHIVE","Whive"],[2147484307,"KOIN","Koinos"],[2147484308,"PIRATE","PirateCash"],[2147484309,"UNQ","Unique"],[2147484310,"ULM","UltonSmartchain"],[2147484311,"SFRX","EtherGem Sapphire"],[2147484312,"BSTY","GlobalBoost-Y"],[2147484313,"IMP","Impact Protocol"],[2147484314,"ACT","Achain"],[2147484315,"PRKL","Perkle"],[2147484316,"SSC","SelfSell"],[2147484317,"GC","GateChain"],[2147484318,"PLGR","Pledger"],[2147484319,"MPLGR","Pledger"],[2147484320,"KNOX","Knox"],[2147484321,"ZED","ZED"],[2147484322,"CNDL","Candle"],[2147484323,"WLKR","Walker Crypto Innovation Index"],[2147484324,"WLKRR","Walker"],[2147484325,"YUNGE","Yunge"],[2147484326,"Voken","Voken"],[2147484327,"APL","Apollo"],[2147484328,"Evrynet","Evrynet"],[2147484329,"NENG","Nengcoin"],[2147484330,"CHTA","Cheetahcoin"],[2147484331,"ALEO","Aleo Network"],[2147484332,"HMS","Hemis"],[2147484333,"OAS","Oasys"],[2147484334,"KAR","Karura Network"],[2147484335,"FLON","FullOn Network"],[2147484336,"CET","CoinEx Chain"],[2147484337,"XLINK","XLink Chain"],[2147484338,"KLV","KleverChain"],[2147484339,"TNT","Tangle"],[2147484340,"GTG","Gotigin"],[2147484341,"NET","RealityNet"],[2147484342,"VTBC","VTB Community"],[2147484343,"DIONE","Odyssey Chain"],[2147484344,"LUM","Lumos"],[2147484345,"AVA","Avalon"],[2147484346,"VEIL","Veil"],[2147484347,"GTB","GotaBit"],[2147484348,"XDAI","xDai"],[2147484349,"COM","Commercio"],[2147484350,"CCC","Commercio Cash Credit"],[2147484351,"SNR","Sonr"],[2147484352,"RAQ","Ra Quantum"],[2147484353,"PEG","Pegasus Token"],[2147484354,"LKG","Lionking"],[2147484355,"MCOIN","Moneta Coin"],[2147484356,"---","reserved"],[2147484357,"AVAIL","Avail"],[2147484358,"FURY","Highbury"],[2147484359,"CHC","Chaincoin"],[2147484360,"SERF","Serfnet"],[2147484361,"XTL","Katal Chain"],[2147484362,"BNB","Binance"],[2147484363,"SIN","Sinovate"],[2147484364,"DLN","Delion"],[2147484365,"BONTE","Bontecoin"],[2147484366,"PEER","Peer"],[2147484367,"ZET","Zetacoin"],[2147484368,"ABY","Artbyte"],[2147484369,"PGX","Mirai Chain"],[2147484370,"IL8P","InfiniLooP"],[2147484371,"VOI","Voi"],[2147484372,"XVC","Vanillacash"],[2147484373,"MCX","MultiCash"],[2147484374,"TARA","Taraxa"],[2147484375,"BLU","BluCrates"],[2147484376,"BFC","BFC"],[2147484377,"DCC","DecentraCast"],[2147484378,"HEALIOS","Tenacity"],[2147484379,"BMK","Bitmark"],[2147484380,"FUGA","Fuga token"],[2147484381,"TBC","TBChat"],[2147484382,"DENTX","DENTNet"],[2147484383,"NBY","Neobytes"],[2147484384,"BABY","BABY"],[2147484385,"ATOP","Financial Blockchain"],[2147484386,"BTE","Bitweb"],[2147484387,"DPC","Dpowcoin (DualPowCoin)"],[2147484388,"MDC","MyDataCoin"],[2147484389,"RIV","Rigvid"],[2147484390,"LTO","LTO Network"],[2147484391,"LKY","LuckyCoin"],[2147484392,"DUSK","Dusk"],[2147484393,"DIMI","DiminutiveCoin"],[2147484394,"PLM","Palladium"],[2147484395,"CFG","Centrifuge"],[2147484398,"XPRT","Persistence"],[2147484401,"","Age X25519 Encryption"],[2147484402,"","Age NIST Encryption"],[2147484405,"HONEY","HoneyWood"],[2147484406,"XDD","XDDCoin"],[2147484407,"TBI","TBicloud"],[2147484410,"BELLS","Bellscoin"],[2147484413,"TGN","Tagion"],[2147484415,"LLD","Liberland"],[2147484416,"BALLZ","Ballzcoin"],[2147484418,"COSA","Cosanta"],[2147484419,"BR","BR"],[2147484421,"CSB","CosmoBliss"],[2147484423,"PLSR","Pulsar Coin"],[2147484424,"KEY","Keymaker Coin"],[2147484425,"BTW","Bitcoin World"],[2147484427,"UCHAIN","UCHAIN"],[2147484428,"PLCUC","PLC Ultima Classic"],[2147484429,"PLCUX","PLC Ultima X"],[2147484430,"PLCU","PLC Ultima"],[2147484431,"SMARTBC","SMART Blockchain"],[2147484432,"SUI","Sui"],[2147484433,"ULTIMA","ULTIMA"],[2147484434,"UIDD","UIDD"],[2147484435,"ACA","Acala"],[2147484436,"BNC","Bifrost"],[2147484437,"TAU","Lamden"],[2147484438,"LKY","Luckycoin"],[2147484439,"SOMA","Soma"],[2147484442,"INTR","Interlay"],[2147484443,"KINT","Kintsugi"],[2147484447,"PDEX","Polkadex"],[2147484448,"BEET","Beetle Coin"],[2147484449,"DST","DSTRA"],[2147484450,"CY","Cyberyen"],[2147484451,"RYME","Ryme Network"],[2147484452,"ZKS","zkSync"],[2147484453,"SCASH","Scash"],[2147484456,"QVT","Qvolta"],[2147484457,"SDN","Shiden Network"],[2147484458,"ASTR","Astar Network"],[2147484459,"---","reserved"],[2147484461,"MEER","Qitmeer"],[2147484463,"FACT","ImFACT"],[2147484464,"FSC","FSC"],[2147484466,"VET","VeChain Token"],[2147484467,"REEF","Reef"],[2147484468,"CLO","Callisto"],[2147484470,"BDB","BigchainDB"],[2147484471,"TBL","TBLINK"],[2147484472,"RBNT","Redbelly Network"],[2147484474,"YBC","YBChain"],[2147484475,"ACE","Endurance"],[2147484476,"CCN","ComputeCoin"],[2147484477,"BBA","BBACHAIN"],[2147484479,"CRUZ","cruzbit"],[2147484480,"SAPP","Sapphire"],[2147484481,"777","Jackpot"],[2147484482,"KYAN","Kyanite"],[2147484483,"AZR","Azzure"],[2147484484,"CFL","CryptoFlow"],[2147484485,"DASHD","Dash Diamond"],[2147484486,"TRTT","Trittium"],[2147484487,"UCR","Ultra Clear"],[2147484488,"PNY","Peony"],[2147484489,"BECN","Beacon"],[2147484490,"MONK","Monk"],[2147484491,"SAGA","CryptoSaga"],[2147484492,"SUV","Suvereno"],[2147484493,"ESK","EskaCoin"],[2147484494,"OWO","OneWorld Coin"],[2147484495,"PEPS","PEPS Coin"],[2147484496,"BIR","Birake"],[2147484497,"MOBIC","MobilityCoin"],[2147484498,"FLS","Flits"],[2147484499,"FRECO","Freco"],[2147484500,"DSM","Desmos"],[2147484501,"PRCY","PRCY Coin"],[2147484504,"TB","TBCoin"],[2147484506,"HVH","HAVAH"],[2147484508,"XBIT","XBIT Coin"],[2147484512,"CVM","Convex"],[2147484514,"MOB","MobileCoin"],[2147484516,"IF","Infinitefuture"],[2147484521,"QUORUM","Quorum"],[2147484525,"NAM","Namada"],[2147484526,"SCR","Scorum Network"],[2147484528,"LUM","Lum Network"],[2147484529,"AEGS","Aegisum"],[2147484531,"ZBC","ZooBC"],[2147484533,"XCN","XCoin"],[2147484534,"ADF","AD Token"],[2147484536,"NEO","NEO"],[2147484537,"TOMO","TOMO"],[2147484538,"XSEL","Seln"],[2147484544,"LKSC","LKSCoin"],[2147484546,"AS","Assetchain"],[2147484547,"XEC","eCash"],[2147484548,"LMO","Lumeneo"],[2147484549,"NXT","NxtMeta"],[2147484552,"HNT","Helium"],[2147484554,"XPX","Sirius"],[2147484555,"FIS","StaFi"],[2147484557,"SGE","Saage"],[2147484559,"GERT","Gert"],[2147484561,"VARA","Vara Network"],[2147484564,"META","Metadium"],[2147484565,"FRA","Findora"],[2147484567,"CCD","Concordium"],[2147484569,"AVN","Avian Network"],[2147484573,"DIP","Dipper Network"],[2147484576,"GHM","HermitMatrixNetwork"],[2147484579,"RUNE","THORChain (RUNE)"],[2147484586,"MGO","Mango Network"],[2147484587,"AB","Argot Protocol"],[2147484589,"---","reserved"],[2147484590,"KCN","Kylacoin"],[2147484591,"LCN","Lyncoin"],[2147484593,"UNLOCK","Jasiri protocol"],[2147484598,"CNDT","Conduct Protocol"],[2147484603,"LTP","LifetionCoin"],[2147484606,"","KickSoccer"],[2147484608,"VKAX","Vkax"],[2147484613,"ATLA","Atleta Network"],[2147484614,"MATIC","Matic"],[2147484616,"UNW","UNW"],[2147484617,"QI","Quai Network"],[2147484618,"TWINS","TWINS"],[2147484623,"","TrustNet"],[2147484625,"TLOS","Telos"],[2147484629,"TAFECO","Taf ECO Chain"],[2147484633,"AU","Autonomy"],[2147484635,"VCG","VipCoin"],[2147484636,"XAZAB","Xazab core"],[2147484637,"AIOZ","AIOZ"],[2147484638,"CORE","Coreum"],[2147484639,"PEC","Phoenix"],[2147484640,"UNT","Unit"],[2147484641,"XRB","X Currency"],[2147484642,"QUAI","Quai Network"],[2147484643,"CAPS","Ternoa"],[2147484644,"OKT","OKChain Token"],[2147484645,"SUM","Solidum"],[2147484646,"LBTC","Lightning Bitcoin"],[2147484647,"BCD","Bitcoin Diamond"],[2147484648,"BTN","Bitcoin New"],[2147484649,"TT","ThunderCore"],[2147484650,"BKT","BanKitt"],[2147484651,"NODL","Nodle"],[2147484652,"PCOIN","PCOIN"],[2147484653,"TAO","Bittensor"],[2147484654,"HSK","HashKey Chain"],[2147484655,"FTM","Fantom"],[2147484656,"RPG","RPG"],[2147484657,"LAKE","iconLake"],[2147484658,"HT","Huobi ECO Chain"],[2147484659,"ELV","Eluvio"],[2147484660,"JOC","Japan Open Chain"],[2147484661,"BIC","Beincrypto"],[2147484662,"JOY","Joystream"],[2147484663,"ZCX","ZEN Exchange Token"],[2147484664,"---","reserved"],[2147484665,"ZTC","Zenchain"],[2147484668,"EVC","Evrice"],[2147484670,"XRD","Radix DLT"],[2147484671,"ONE","HARMONY-ONE (Legacy)"],[2147484672,"ONT","Ontology"],[2147484673,"CZZ","Classzz"],[2147484674,"KEX","Kira Exchange Token"],[2147484675,"MCM","Mochimo"],[2147484676,"PLS","Pulse Coin"],[2147484680,"BTCR","BTCR"],[2147484690,"MFID","Moonfish ID"],[2147484748,"CROSS","Cross Chain"],[2147484758,"ZRA","ZERA"],[2147484759,"BBC","Big Bitcoin"],[2147484764,"CORE","Core"],[2147484768,"RISE","RISE"],[2147484770,"CMT","CyberMiles Token"],[2147484776,"ETSC","Ethereum Social"],[2147484777,"DFI","DeFiChain"],[2147484778,"DFI","DeFiChain EVM Network"],[2147484782,"MESH","StateMesh"],[2147484785,"$DAG","Constellation Labs"],[2147484793,"CDY","Bitcoin Candy"],[2147484803,"ENJ","Enjin Coin"],[2147484818,"HOO","Hoo Smart Chain"],[2147484848,"GNK","Gonka"],[2147484882,"ALPH","Alephium"],[2147484884,"","Masca"],[2147484885,"","Nostr"],[2147484928,"","Kudos Setler"],[2147484932,"GLMR","Moonbeam"],[2147484933,"MOVR","Moonriver"],[2147484934,"DSG","Dessage Social Protocol"],[2147484946,"WPC","Wpc"],[2147484956,"WEI","WEI"],[2147484960,"BITS","Entropy"],[2147484985,"DFC","Defcoin"],[2147484986,"IRON","Iron Fish"],[2147484987,"WNSD","Winsdet"],[2147484996,"ISLM","IslamicCoin"],[2147485045,"HYC","Hycon"],[2147485058,"TENTSLP","TENT Simple Ledger Protocol"],[2147485068,"DEV","DogecoinEV"],[2147485095,"DNR","Dinero"],[2147485158,"XSC","XT Smart Chain"],[2147485160,"AAC","Double-A Chain"],[2147485172,"","Taler"],[2147485181,"BEAM","Beam"],[2147485184,"GAS","BubiChain"],[2147485188,"ATHENA","Athena"],[2147485199,"SDK","Sovereign SDK"],[2147485203,"APC","Apc Chain"],[2147485264,"ELF","AELF"],[2147485266,"AUDL","AUDL"],[2147485268,"ATH","Atheios"],[2147485275,"LUME","Lume Web"],[2147485290,"NEW","Newton"],[2147485305,"BTA","Btachain"],[2147485316,"NEOX","Neoxa"],[2147485317,"MEWC","Meowcoin"],[2147485336,"BCX","BitcoinX"],[2147485355,"TRMP","TrumPOW"],[2147485377,"XTZ","Tezos"],[2147485424,"LBTC","Liquid BTC"],[2147485425,"BBP","Biblepay"],[2147485432,"JPYS","JPY Stablecoin"],[2147485436,"USVAC","USVACoin"],[2147485437,"VEGA","Vega Protocol"],[2147485463,"ADA","Cardano"],[2147485466,"CUBE","Cube Chain Native Token"],[2147485536,"ZTX","Zetrix"],[2147485547,"XEC","eCash token"],[2147485548,"XNA","Neurai"],[2147485549,"CLC","Classica"],[2147485555,"BITCI","Bitcicoin"],[2147485566,"BKC","Briskcoin"],[2147485567,"VIPS","VIPSTARCOIN"],[2147485574,"CITY","City Coin"],[2147485599,"ESA","Esa"],[2147485600,"ESC","EsaCoin"],[2147485603,"XX","xx coin"],[2147485617,"MVRK","Mavryk Network"],[2147485625,"XMX","Xuma"],[2147485632,"TRTL","TurtleCoin"],[2147485633,"SLRT","Solarti Chain"],[2147485634,"QTH","Qing Tong Horizon"],[2147485635,"EGEM","EtherGem"],[2147485636,"MIRA","Mira Chain"],[2147485637,"HODL","HOdlcoin"],[2147485638,"PHL","Placeholders"],[2147485639,"SC","Sia"],[2147485643,"MYDOGE","Mydogecoin"],[2147485644,"MYT","Mineyourtime"],[2147485645,"POLIS","Polis"],[2147485646,"XMCC","Monoeci"],[2147485647,"COLX","ColossusXT"],[2147485648,"GIN","GinCoin"],[2147485649,"MNP","MNPCoin"],[2147485650,"MLN","Miraland"],[2147485651,"ISNA","iSarrana"],[2147485658,"XBT","Bitcoin Classic"],[2147485661,"JKC","Junkcoin"],[2147485663,"TEER","Integritee"],[2147485665,"KIN","Kin"],[2147485666,"EOSC","EOSClassic"],[2147485667,"GBT","GoldBean Token"],[2147485668,"PKC","PKC"],[2147485669,"SKT","Sukhavati"],[2147485670,"XHT","Xinghuo Token"],[2147485671,"COC","Chat On Chain"],[2147485672,"USBC","Universal Ledger USBC"],[2147485673,"ROCK","Zenrock Labs"],[2147485674,"ASTRON","ASTRON Token"],[2147485694,"ANY","Any"],[2147485696,"MCASH","MCashChain"],[2147485697,"TRUE","TrueChain"],[2147485698,"MOVO","Movo Smart Chain"],[2147485734,"KILT","KILT Spiritnet"],[2147485739,"FRQCY","Frequency"],[2147485757,"SAMA","Exosama Network"],[2147485760,"IoTE","IoTE"],[2147485769,"CBTC","Coordinate BTC (Anduro)"],[2147485770,"QBTC","Quasar BTC (Anduro)"],[2147485773,"BAY","BitBay"],[2147485785,"XRG","Ergon"],[2147485847,"SAMA","Moonsama Network"],[2147485869,"ASK","ASK"],[2147485870,"CWEB","Coinweb"],[2147485933,"","Qiyi Chain"],[2147485949,"QTUM","QTUM"],[2147485950,"ETP","Metaverse"],[2147485951,"GXC","GXChain"],[2147485952,"CRP","CranePay"],[2147485953,"ELA","Elastos"],[2147485986,"SNOW","Snowblossom"],[2147486013,"XIN","Mixin"],[2147486105,"HYPE","Hyperliquid"],[2147486148,"NEXI","Nexi"],[2147486218,"AOA","Aurora"],[2147486334,"AIPG","AIPowerGrid"],[2147486366,"NAS","Nebulas"],[2147486457,"LAN","Lanify"],[2147486542,"REOSC","REOSC Ecosystem"],[2147486589,"BND","Blocknode"],[2147486648,"SM","Stealth Message"],[2147486651,"LUX","LUX"],[2147486678,"HBAR","Hedera HBAR"],[2147486702,"HIVE","Hive Blockchain"],[2147486725,"COS","Contentos"],[2147486779,"DIP","Dipnet Blockchain"],[2147486789,"B1T","Bit"],[2147486924,"CCC","CodeChain"],[2147486992,"PLMC","Polimec"],[2147486981,"SXP","Solar"],[2147486986,"PEAQ","peaq"],[2147487025,"ROI","ROIcoin"],[2147487029,"DYN","Dynamic"],[2147487031,"SEQ","Sequence"],[2147487082,"PEPE","Pepecoin Core"],[2147487147,"BLAZE","Blaze"],[2147487149,"JFIN","JFIN Coin"],[2147487200,"DEO","Destocoin"],[2147487212,"DST","DeStream"],[2147487249,"CY","Cybits"],[2147487278,"EPPIE","Eppie"],[2147487405,"MPC","Partisia Blockchain"],[2147487488,"RED","ReDeFi RED"],[2147487688,"FC8","FCH Network"],[2147487744,"YEE","YeeCo"],[2147487866,"IOTA","IOTA"],[2147487867,"SMR","Shimmer"],[2147487890,"AXE","Axe"],[2147487991,"XYM","Symbol"],[2147488092,"C4E","Chain4Energy"],[2147488122,"SHIC","ShibaCoin"],[2147488294,"MST","MST"],[2147488567,"XVM","Venidium"],[2147488624,"VARA","Vara"],[2147488647,"BXN","BlackFort Exchange Network"],[2147488648,"V12","Vet The Vote"],[2147488654,"SBC","Senior Blockchain"],[2147488896,"FIC","FIC"],[2147489001,"HNS","Handshake"],[2147489052,"ISK","ISKRA"],[2147489115,"ALTME","ALTME"],[2147489203,"FUND","Unification"],[2147489405,"STX","Stacks"],[2147489543,"VOW","VowChain VOW"],[2147489568,"SLU","SILUBIUM"],[2147489643,"DUSK","Dusk Network"],[2147489708,"GO","GoChain GO"],[2147489792,"DTS","Datos"],[2147489822,"MOI","My Own Internet"],[2147489926,"STEAMX","Rails Network Mainnet"],[2147489958,"VRL","Virel Protocol"],[2147490180,"UM","Penumbra"],[2147490247,"RSC","Royal Sports City"],[2147490314,"BPA","Bitcoin Pizza"],[2147490336,"SAFE","SAFE"],[2147490415,"CC","Canton Coin"],[2147490427,"COTI","COTI"],[2147490617,"ROGER","TheHolyrogerCoin"],[2147490648,"ZETA","ZetaChain"],[2147490675,"ELLA","Ella the heart"],[2147490676,"AA","Arthera"],[2147490718,"DOI","Doichain"],[2147490739,"TOPL","Topl"],[2147490920,"ABTC","Alys BTC (Anduro)"],[2147490979,"KLY","KLYNTAR"],[2147490989,"SHFT","Shyft"],[2147491166,"MEV","MEVerse"],[2147491224,"ADIL","ADIL Chain"],[2147491425,"BTV","Bitvote"],[2147491427,"CPV","Compverse"],[2147491648,"SKY","Skycoin"],[2147491656,"BERA","Berachain"],[2147491665,"ISC","iSunCoin"],[2147491728,"","DSRV"],[2147491829,"BOC","BeOne Chain"],[2147491840,"PAC","pacprotocol"],[2147491865,"KAIA","KAIA"],[2147491987,"BTQ","BitcoinQuark"],[2147492092,"XCH","Chia"],[2147492101,"","Base"],[2147492168,"---","reserved"],[2147492328,"PLMNT","Planetmint"],[2147492380,"BLN","Bullions"],[2147492386,"ALPH","Alph Network"],[2147492514,"GGX","Golden Gate"],[2147492534,"GGXT","Golden Gate Sydney"],[2147492536,"SBTC","Super Bitcoin"],[2147492612,"NULS","NULS"],[2147492645,"BBC","Babacoin"],[2147492646,"JGC","JagoanCoin"],[2147492647,"BTP","Bitcoin Pay"],[2147492648,"AVAX","Avalanche"],[2147492649,"ARB1","Arbitrum"],[2147492650,"BOBA","Boba"],[2147492651,"LOOP","Loopring"],[2147492652,"STRK","StarkNet"],[2147492653,"AVAXC","Avalanche C-Chain"],[2147492654,"BSC","Binance Smart Chain"],[2147492655,"SATOX","Satoxcoin"],[2147492993,"WEIL","Weilliptic"],[2147493445,"NRG","Energi"],[2147493536,"BTF","Bitcoin Faith"],[2147493617,"OSMI","Osmium"],[2147493647,"GOD","Bitcoin God"],[2147493648,"FO","FIBOS"],[2147493649,"SPACE","Space"],[2147493655,"S","SONIC"],[2147493759,"DHP","dHealth"],[2147493874,"RTM","Raptoreum"],[2147493890,"AA","Arthera"],[2147493939,"XRC","XRhodium"],[2147494155,"NUM","Numbers Protocol"],[2147494253,"XPI","Lotus"],[2147494759,"ESS","Essentia One"],[2147495390,"VARCH","InvArch"],[2147495391,"TNKR","Tinkernet"],[2147495993,"IPOS","IPOS"],[2147496234,"MINA","Mina"],[2147496498,"ANLOG","Analog Timechain"],[2147496755,"BTY","BitYuan"],[2147496756,"YCC","Yuan Chain Coin"],[2147497029,"PHX","Phoenix"],[2147497649,"WAX","Worldwide Asset Exchange"],[2147499493,"SDGO","SanDeGo"],[2147499829,"XTX","Totem Live Network"],[2147500402,"ARDR","Ardor"],[2147501648,"MTR","Meter"],[2147502813,"SAFE","Safecoin"],[2147502815,"FLUX","Flux"],[2147502817,"RITO","Ritocoin"],[2147503436,"ML","Mintlayer"],[2147503684,"XND","ndau"],[2147504652,"C4EI","c4ei"],[2147504985,"XAH","Xahau"],[2147505536,"PAC","Pactus"],[2147506152,"PWR","PWRcoin"],[2147506648,"EPIC","Epic Cash"],[2147508900,"BELL","Bellcoin"],[2147509366,"CHX","Own"],[2147510065,"G1","Ğ1"],[2147512871,"NEXA","Nexa"],[2147513649,"---","reserved"],[2147514750,"ESN","EtherSocial Network"],[2147514985,"","ThePower"],[2147517064,"TEO","Trust Eth reOrigin"],[2147517526,"BTCS","Bitcoin Stake"],[2147518600,"BTT","ByteTrade"],[2147521640,"FXTC","FixedTradeCoin"],[2147522969,"AMA","Amabig"],[2147525717,"FACT","FACT0RN"],[2147526676,"AXIV","AXIV"],[2147531451,"BAX","BAX"],[2147532910,"EVE","evan"],[2147532992,"STASH","STASH"],[2147536400,"CELO","Celo"],[2147537824,"OVER","OverProtocol"],[2147545264,"TH","TianHe"],[2147549184,"KETH","Krypton World"],[2147553068,"GRLC","Garlicoin"],[2147553655,"GWL","Gewel"],[2147566941,"QUBIC","Qubic"],[2147561425,"ZYN","Wethio"],[2147572536,"RYO","c0ban"],[2147583647,"WICC","Waykichain"],[2147584148,"HOME","HomeCoin"],[2147584658,"STC","Starcoin"],[2147587757,"","Seed Hypermedia"],[2147588753,"STRAX","Strax"],[2147594759,"KAS","Kaspa"],[2147604985,"KLS","Karlsen"],[2147607104,"SPR","Spectre"],[2147614470,"WBT","WhiteBIT Coin"],[2147645451,"APTA","Bloqs4Good"],[2147672837,"QUAN","Quantus Network"],[2147684273,"AKA","Akroma"],[2147684549,"BTR","Bitlayer"],[2147708081,"CONET","CONET Holesky Network"],[2147730177,"ATS","ARTIS sigma1"],[2147734670,"AUTOX","Autox Coin"],[2147744779,"ZAMA","Zama"],[2147797807,"PI","Pi Network"],[2147816980,"VALUE","Value Chain"],[2147816981,"3333","Pi Value Consensus"],[2147907890,"X42","x42"],[2147923665,"@G","Graphite"],[2148018e3,"SCR","Scroll"],[2148150314,"VITE","Vite"],[2148217350,"ICE","Ice Network"],[2148180617,"TXC","TEXITcoin"],[2148310814,"","RGB on Bitcoin (mainnet)"],[2148310815,"","RGB on Bitcoin (testnet)"],[2148312590,"","RGB on Liquid (mainnet)"],[2148372536,"SEA","Second Exchange Alliance"],[2148532224,"AMAX","Armonia Meta Chain"],[2148654985,"ILT","iOlite"],[2148796762,"ETHO","Etho Protocol"],[2148797148,"XERO","Xerom"],[2149195792,"LAX","LAPO"],[2151407659,"EPK","EPIK Protocol"],[2152225092,"HYD","Hydra Token"],[2152547406,"","Miden"],[2152733001,"BCO","BitcoinOre"],[2152733002,"BHD","BitcoinHD"],[2152748110,"PTN","PalletOne"],[2153139288,"VLX","Velas"],[2153201998,"WAN","Wanchain"],[2153225212,"WAVES","Waves"],[2153225213,"WEST","Waves Enterprise"],[2153865827,"ABC","Abcmint"],[2154001005,"CRM","Creamcoin"],[2154655314,"BROCK","Bitrock"],[2155046253,"SEM","Semux"],[2155051384,"ION","ION"],[2155261425,"FCT","FirmaChain"],[2155308914,"WGR","WGR"],[2155308915,"OBSR","OBServer"],[2155646919,"AFS","ANFS"],[2153590966,"OSMO","Osmosis"],[2162602624,"XDS","XDS"],[2166483766,"SEI","SEI"],[2169483766,"DYDX","Dydx"],[2169483767,"INJ","Injective"],[2209201209,"AQUA","Aquachain"],[2225261425,"AZT","Aztecoin"],[2236372536,"HATCH","Hatch"],[2239410657,"kUSD","kUSD"],[2247483644,"GENS","GENS"],[2247483645,"EQ","EQ"],[2247483646,"FLUID","Fluid Chains"],[2247483647,"QKC","QuarkChain"],[2158743023,"LBR","0L"],[2167713749,"ROH","Rooch"],[2167724078,"NLK","NuLinkCoin"],[2183083648,"AXX","AtlasX Chain"],[2387563083,"ZORK","Zork Network"],[2415919427,"MON","Monad"],[2756073028,"FVDC","ForumCoin"],[3157584658,"FAIC","Free AI Chain"],[3327477068,"","Fuel"],[3327477069,"TTNC","TakeTitan"],[3327477079,"MTGBP","MTGBP"],[3327477089,"QFS","Qfs"],[3327477099,"RWA","Asset Chain"],[3327477109,"HXC","HuaXia Chain"],[3327477119,"AME","AME Chain"],[4017386593,"ATTO","Atto"]]},2013:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HDKey=t.HARDENED_OFFSET=void 0;
|
|
11
|
+
/*! scure-bip32 - MIT License (c) 2022 Patricio Palladino, Paul Miller (paulmillr.com) */
|
|
12
|
+
const o=r(6727),n=r(4254),a=r(1062),i=r(190),s=r(9741),c=r(4904),l=r(2116),u=n.secp256k1.ProjectivePoint,f=(0,l.createBase58check)(s.sha256);function d(e){(0,c.abytes)(e);const t=0===e.length?"0":(0,c.bytesToHex)(e);return BigInt("0x"+t)}const h=(0,c.utf8ToBytes)("Bitcoin seed"),p={private:76066276,public:76067358};t.HARDENED_OFFSET=2147483648;const g=e=>{if(!Number.isSafeInteger(e)||e<0||e>2**32-1)throw new Error("invalid number, should be from 0 to 2**32-1, got "+e);const t=new Uint8Array(4);return(0,c.createView)(t).setUint32(0,e,!1),t};class m{get fingerprint(){if(!this.pubHash)throw new Error("No publicKey set!");return e=this.pubHash,(0,c.createView)(e).getUint32(0,!1);var e}get identifier(){return this.pubHash}get pubKeyHash(){return this.pubHash}get privateKey(){return this.privKeyBytes||null}get publicKey(){return this.pubKey||null}get privateExtendedKey(){const e=this.privateKey;if(!e)throw new Error("No private key");return f.encode(this.serialize(this.versions.private,(0,c.concatBytes)(new Uint8Array([0]),e)))}get publicExtendedKey(){if(!this.pubKey)throw new Error("No public key");return f.encode(this.serialize(this.versions.public,this.pubKey))}static fromMasterSeed(e,t=p){if((0,c.abytes)(e),8*e.length<128||8*e.length>512)throw new Error("HDKey: seed length must be between 128 and 512 bits; 256 bits is advised, got "+e.length);const r=(0,a.hmac)(s.sha512,h,e);return new m({versions:t,chainCode:r.slice(32),privateKey:r.slice(0,32)})}static fromExtendedKey(e,t=p){const r=f.decode(e),o=(0,c.createView)(r),n=o.getUint32(0,!1),a={versions:t,depth:r[4],parentFingerprint:o.getUint32(5,!1),index:o.getUint32(9,!1),chainCode:r.slice(13,45)},i=r.slice(45),s=0===i[0];if(n!==t[s?"private":"public"])throw new Error("Version mismatch");return new m(s?{...a,privateKey:i.slice(1)}:{...a,publicKey:i})}static fromJSON(e){return m.fromExtendedKey(e.xpriv)}constructor(e){if(this.depth=0,this.index=0,this.chainCode=null,this.parentFingerprint=0,!e||"object"!=typeof e)throw new Error("HDKey.constructor must not be called directly");if(this.versions=e.versions||p,this.depth=e.depth||0,this.chainCode=e.chainCode||null,this.index=e.index||0,this.parentFingerprint=e.parentFingerprint||0,!this.depth&&(this.parentFingerprint||this.index))throw new Error("HDKey: zero depth with non-zero index/parent fingerprint");if(e.publicKey&&e.privateKey)throw new Error("HDKey: publicKey and privateKey at same time.");if(e.privateKey){if(!n.secp256k1.utils.isValidPrivateKey(e.privateKey))throw new Error("Invalid private key");this.privKey="bigint"==typeof e.privateKey?e.privateKey:d(e.privateKey),this.privKeyBytes=function(e){if("bigint"!=typeof e)throw new Error("bigint expected");return(0,c.hexToBytes)(e.toString(16).padStart(64,"0"))}(this.privKey),this.pubKey=n.secp256k1.getPublicKey(e.privateKey,!0)}else{if(!e.publicKey)throw new Error("HDKey: no public or private key provided");this.pubKey=u.fromHex(e.publicKey).toRawBytes(!0)}var t;this.pubHash=(t=this.pubKey,(0,i.ripemd160)((0,s.sha256)(t)))}derive(e){if(!/^[mM]'?/.test(e))throw new Error('Path must start with "m" or "M"');if(/^[mM]'?$/.test(e))return this;const r=e.replace(/^[mM]'?\//,"").split("/");let o=this;for(const e of r){const r=/^(\d+)('?)$/.exec(e),n=r&&r[1];if(!r||3!==r.length||"string"!=typeof n)throw new Error("invalid child index: "+e);let a=+n;if(!Number.isSafeInteger(a)||a>=t.HARDENED_OFFSET)throw new Error("Invalid index");"'"===r[2]&&(a+=t.HARDENED_OFFSET),o=o.deriveChild(a)}return o}deriveChild(e){if(!this.pubKey||!this.chainCode)throw new Error("No publicKey or chainCode set");let r=g(e);if(e>=t.HARDENED_OFFSET){const e=this.privateKey;if(!e)throw new Error("Could not derive hardened child key");r=(0,c.concatBytes)(new Uint8Array([0]),e,r)}else r=(0,c.concatBytes)(this.pubKey,r);const i=(0,a.hmac)(s.sha512,this.chainCode,r),l=d(i.slice(0,32)),f=i.slice(32);if(!n.secp256k1.utils.isValidPrivateKey(l))throw new Error("Tweak bigger than curve order");const h={versions:this.versions,chainCode:f,depth:this.depth+1,parentFingerprint:this.fingerprint,index:e};try{if(this.privateKey){const e=(0,o.mod)(this.privKey+l,n.secp256k1.CURVE.n);if(!n.secp256k1.utils.isValidPrivateKey(e))throw new Error("The tweak was out of range or the resulted private key is invalid");h.privateKey=e}else{const e=u.fromHex(this.pubKey).add(u.fromPrivateKey(l));if(e.equals(u.ZERO))throw new Error("The tweak was equal to negative P, which made the result key invalid");h.publicKey=e.toRawBytes(!0)}return new m(h)}catch(t){return this.deriveChild(e+1)}}sign(e){if(!this.privateKey)throw new Error("No privateKey set!");return(0,c.abytes)(e,32),n.secp256k1.sign(e,this.privKey).toCompactRawBytes()}verify(e,t){if((0,c.abytes)(e,32),(0,c.abytes)(t,64),!this.publicKey)throw new Error("No publicKey set!");let r;try{r=n.secp256k1.Signature.fromCompact(t)}catch(e){return!1}return n.secp256k1.verify(r,e,this.publicKey)}wipePrivateData(){return this.privKey=void 0,this.privKeyBytes&&(this.privKeyBytes.fill(0),this.privKeyBytes=void 0),this}toJSON(){return{xpriv:this.privateExtendedKey,xpub:this.publicExtendedKey}}serialize(e,t){if(!this.chainCode)throw new Error("No chainCode set");return(0,c.abytes)(t,33),(0,c.concatBytes)(g(e),new Uint8Array([this.depth]),g(this.parentFingerprint),g(this.index),this.chainCode,t)}}t.HDKey=m},2083:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Transaction=t.splitBlobCells=void 0;const o=r(4815),n=r(4138),a=r(7256),i=r(1490),s=r(9493),c=r(830),l=r(8283),u=BigInt(0),f=BigInt(2),d=BigInt(27),h=BigInt(28),p=BigInt(35),g=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),m=Symbol.for("nodejs.util.inspect.custom"),b=131072,y=128;function v(e,t){let r=e.toString(16);for(;r.length<2;)r="0"+r;return r+=(0,a.sha256)(t).substring(4),"0x"+r}function w(e){return"0x"===e?null:(0,o.getAddress)(e)}function E(e,t){try{return(0,s.accessListify)(e)}catch(r){(0,i.assertArgument)(!1,r.message,t,e)}}function B(e,t){try{if(!Array.isArray(e))throw new Error("authorizationList: invalid array");const t=[];for(let r=0;r<e.length;r++){const o=e[r];if(!Array.isArray(o))throw new Error(`authorization[${r}]: invalid array`);if(6!==o.length)throw new Error(`authorization[${r}]: wrong length`);if(!o[1])throw new Error(`authorization[${r}]: null address`);t.push({address:w(o[1]),nonce:A(o[2],"nonce"),chainId:A(o[0],"chainId"),signature:a.Signature.from({yParity:x(o[3],"yParity"),r:(0,i.zeroPadValue)(o[4],32),s:(0,i.zeroPadValue)(o[5],32)})})}return t}catch(r){(0,i.assertArgument)(!1,r.message,t,e)}}function x(e,t){return"0x"===e?0:(0,i.getNumber)(e,t)}function A(e,t){if("0x"===e)return u;const r=(0,i.getBigInt)(e,t);return(0,i.assertArgument)(r<=g,"value exceeds uint size",t,r),r}function k(e,t){const r=(0,i.getBigInt)(e,"value"),o=(0,i.toBeArray)(r);return(0,i.assertArgument)(o.length<=32,"value too large",`tx.${t}`,r),o}function S(e){return(0,s.accessListify)(e).map(e=>[e.address,e.storageKeys])}function C(e,t){(0,i.assertArgument)(Array.isArray(e),`invalid ${t}`,"value",e);for(let t=0;t<e.length;t++)(0,i.assertArgument)((0,i.isHexString)(e[t],32),"invalid ${ param } hash",`value[${t}]`,e[t]);return e}function T(e,t){let r;try{if(r=x(t[0],"yParity"),0!==r&&1!==r)throw new Error("bad yParity")}catch(e){(0,i.assertArgument)(!1,"invalid yParity","yParity",t[0])}const o=(0,i.zeroPadValue)(t[1],32),n=(0,i.zeroPadValue)(t[2],32),s=a.Signature.from({r:o,s:n,yParity:r});e.signature=s}t.splitBlobCells=function(e,t){null==t&&(t=y);const r=[],o=(0,i.getBytes)(e),n=o.length/t;for(let e=0;e<o.length;e+=n)r.push((0,i.hexlify)(o.subarray(e,e+n)));return r};class P{#e;#t;#r;#o;#n;#a;#i;#s;#c;#l;#u;#f;#d;#h;#p;#g;#m;#b;get type(){return this.#e}set type(e){switch(e){case null:this.#e=null;break;case 0:case"legacy":this.#e=0;break;case 1:case"berlin":case"eip-2930":this.#e=1;break;case 2:case"london":case"eip-1559":this.#e=2;break;case 3:case"cancun":case"eip-4844":this.#e=3;break;case 4:case"pectra":case"eip-7702":this.#e=4;break;default:(0,i.assertArgument)(!1,"unsupported transaction type","type",e)}}get typeName(){switch(this.type){case 0:return"legacy";case 1:return"eip-2930";case 2:return"eip-1559";case 3:return"eip-4844";case 4:return"eip-7702"}return null}get to(){const e=this.#t;return null==e&&3===this.type?n.ZeroAddress:e}set to(e){this.#t=null==e?null:(0,o.getAddress)(e)}get nonce(){return this.#o}set nonce(e){this.#o=(0,i.getNumber)(e,"value")}get gasLimit(){return this.#n}set gasLimit(e){this.#n=(0,i.getBigInt)(e)}get gasPrice(){const e=this.#a;return null!=e||0!==this.type&&1!==this.type?e:u}set gasPrice(e){this.#a=null==e?null:(0,i.getBigInt)(e,"gasPrice")}get maxPriorityFeePerGas(){const e=this.#i;return null==e?2===this.type||3===this.type?u:null:e}set maxPriorityFeePerGas(e){this.#i=null==e?null:(0,i.getBigInt)(e,"maxPriorityFeePerGas")}get maxFeePerGas(){const e=this.#s;return null==e?2===this.type||3===this.type?u:null:e}set maxFeePerGas(e){this.#s=null==e?null:(0,i.getBigInt)(e,"maxFeePerGas")}get data(){return this.#r}set data(e){this.#r=(0,i.hexlify)(e)}get value(){return this.#c}set value(e){this.#c=(0,i.getBigInt)(e,"value")}get chainId(){return this.#l}set chainId(e){this.#l=(0,i.getBigInt)(e)}get signature(){return this.#u||null}set signature(e){this.#u=null==e?null:a.Signature.from(e)}isValid(){const e=this.signature;if(e&&!e.isValid())return!1;const t=this.authorizationList;if(t)for(const e of t)if(!e.signature.isValid())return!1;return!0}get accessList(){const e=this.#f||null;return null==e?1===this.type||2===this.type||3===this.type?[]:null:e}set accessList(e){this.#f=null==e?null:(0,s.accessListify)(e)}get authorizationList(){const e=this.#m||null;return null==e&&4===this.type?[]:e}set authorizationList(e){this.#m=null==e?null:e.map(e=>(0,c.authorizationify)(e))}get maxFeePerBlobGas(){const e=this.#d;return null==e&&3===this.type?u:e}set maxFeePerBlobGas(e){this.#d=null==e?null:(0,i.getBigInt)(e,"maxFeePerBlobGas")}get blobVersionedHashes(){let e=this.#h;return null==e&&3===this.type?[]:e}set blobVersionedHashes(e){if(null!=e){(0,i.assertArgument)(Array.isArray(e),"blobVersionedHashes must be an Array","value",e),e=e.slice();for(let t=0;t<e.length;t++)(0,i.assertArgument)((0,i.isHexString)(e[t],32),"invalid blobVersionedHash",`value[${t}]`,e[t])}this.#h=e}get blobs(){return null==this.#g?null:this.#g.map(e=>Object.assign({},e))}set blobs(e){if(null==e)return void(this.#g=null);const t=[],r=[];for(let o=0;o<e.length;o++){const n=e[o];if((0,i.isBytesLike)(n)){(0,i.assert)(this.#p,"adding a raw blob requires a KZG library","UNSUPPORTED_OPERATION",{operation:"set blobs()"});let e=(0,i.getBytes)(n);if((0,i.assertArgument)(e.length<=b,"blob is too large",`blobs[${o}]`,n),e.length!==b){const t=new Uint8Array(b);t.set(e),e=t}const a=this.#p.blobToKzgCommitment(e),s=(0,i.hexlify)(this.#p.computeBlobKzgProof(e,a));t.push({data:(0,i.hexlify)(e),commitment:(0,i.hexlify)(a),proof:s}),r.push(v(1,a))}else{const e=(0,i.hexlify)(n.data),o=(0,i.hexlify)(n.commitment),a=(0,i.hexlify)(n.proof);t.push({data:e,commitment:o,proof:a}),r.push(v(1,o))}}this.#g=t,this.#h=r}get kzg(){return this.#p}set kzg(e){this.#p=null==e?null:function(e){return{blobToKzgCommitment:t=>{if("computeBlobProof"in e){if("blobToKzgCommitment"in e&&"function"==typeof e.blobToKzgCommitment)return(0,i.getBytes)(e.blobToKzgCommitment((0,i.hexlify)(t)))}else if("blobToKzgCommitment"in e&&"function"==typeof e.blobToKzgCommitment)return(0,i.getBytes)(e.blobToKzgCommitment(t));if("blobToKZGCommitment"in e&&"function"==typeof e.blobToKZGCommitment)return(0,i.getBytes)(e.blobToKZGCommitment((0,i.hexlify)(t)));(0,i.assertArgument)(!1,"unsupported KZG library","kzg",e)},computeBlobKzgProof:(t,r)=>"computeBlobProof"in e&&"function"==typeof e.computeBlobProof?(0,i.getBytes)(e.computeBlobProof((0,i.hexlify)(t),(0,i.hexlify)(r))):"computeBlobKzgProof"in e&&"function"==typeof e.computeBlobKzgProof?e.computeBlobKzgProof(t,r):"computeBlobKZGProof"in e&&"function"==typeof e.computeBlobKZGProof?(0,i.getBytes)(e.computeBlobKZGProof((0,i.hexlify)(t),(0,i.hexlify)(r))):void(0,i.assertArgument)(!1,"unsupported KZG library","kzg",e)}}(e)}get blobWrapperVersion(){return this.#b}set blobWrapperVersion(e){this.#b=e}constructor(){this.#e=null,this.#t=null,this.#o=0,this.#n=u,this.#a=null,this.#i=null,this.#s=null,this.#r="0x",this.#c=u,this.#l=u,this.#u=null,this.#f=null,this.#d=null,this.#h=null,this.#p=null,this.#g=null,this.#m=null,this.#b=null}get hash(){return null==this.signature?null:(0,a.keccak256)(this.#y(!0,!1))}get unsignedHash(){return(0,a.keccak256)(this.unsignedSerialized)}get from(){return null==this.signature?null:(0,l.recoverAddress)(this.unsignedHash,this.signature.getCanonical())}get fromPublicKey(){return null==this.signature?null:a.SigningKey.recoverPublicKey(this.unsignedHash,this.signature.getCanonical())}isSigned(){return null!=this.signature}#y(e,t){(0,i.assert)(!e||null!=this.signature,"cannot serialize unsigned transaction; maybe you meant .unsignedSerialized","UNSUPPORTED_OPERATION",{operation:".serialized"});const r=e?this.signature:null;switch(this.inferType()){case 0:return function(e,t){const r=[k(e.nonce,"nonce"),k(e.gasPrice||0,"gasPrice"),k(e.gasLimit,"gasLimit"),e.to||"0x",k(e.value,"value"),e.data];let o=u;if(e.chainId!=u)o=(0,i.getBigInt)(e.chainId,"tx.chainId"),(0,i.assertArgument)(!t||null==t.networkV||t.legacyChainId===o,"tx.chainId/sig.v mismatch","sig",t);else if(e.signature){const t=e.signature.legacyChainId;null!=t&&(o=t)}if(!t)return o!==u&&(r.push((0,i.toBeArray)(o)),r.push("0x"),r.push("0x")),(0,i.encodeRlp)(r);let n=BigInt(27+t.yParity);return o!==u?n=a.Signature.getChainIdV(o,t.v):BigInt(t.v)!==n&&(0,i.assertArgument)(!1,"tx.chainId/sig.v mismatch","sig",t),r.push((0,i.toBeArray)(n)),r.push((0,i.toBeArray)(t.r)),r.push((0,i.toBeArray)(t._s)),(0,i.encodeRlp)(r)}(this,r);case 1:return function(e,t){const r=[k(e.chainId,"chainId"),k(e.nonce,"nonce"),k(e.gasPrice||0,"gasPrice"),k(e.gasLimit,"gasLimit"),e.to||"0x",k(e.value,"value"),e.data,S(e.accessList||[])];return t&&(r.push(k(t.yParity,"recoveryParam")),r.push((0,i.toBeArray)(t.r)),r.push((0,i.toBeArray)(t.s))),(0,i.concat)(["0x01",(0,i.encodeRlp)(r)])}(this,r);case 2:return function(e,t){const r=[k(e.chainId,"chainId"),k(e.nonce,"nonce"),k(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),k(e.maxFeePerGas||0,"maxFeePerGas"),k(e.gasLimit,"gasLimit"),e.to||"0x",k(e.value,"value"),e.data,S(e.accessList||[])];return t&&(r.push(k(t.yParity,"yParity")),r.push((0,i.toBeArray)(t.r)),r.push((0,i.toBeArray)(t.s))),(0,i.concat)(["0x02",(0,i.encodeRlp)(r)])}(this,r);case 3:return function(e,t,r){const o=[k(e.chainId,"chainId"),k(e.nonce,"nonce"),k(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),k(e.maxFeePerGas||0,"maxFeePerGas"),k(e.gasLimit,"gasLimit"),e.to||n.ZeroAddress,k(e.value,"value"),e.data,S(e.accessList||[]),k(e.maxFeePerBlobGas||0,"maxFeePerBlobGas"),C(e.blobVersionedHashes||[],"blobVersionedHashes")];if(t&&(o.push(k(t.yParity,"yParity")),o.push((0,i.toBeArray)(t.r)),o.push((0,i.toBeArray)(t.s)),r)){if(null!=e.blobWrapperVersion){const t=(0,i.toBeArray)(e.blobWrapperVersion),n=[];for(const{proof:e}of r){const t=(0,i.getBytes)(e),r=t.length/y;for(let e=0;e<t.length;e+=r)n.push(t.subarray(e,e+r))}return(0,i.concat)(["0x03",(0,i.encodeRlp)([o,t,r.map(e=>e.data),r.map(e=>e.commitment),n])])}return(0,i.concat)(["0x03",(0,i.encodeRlp)([o,r.map(e=>e.data),r.map(e=>e.commitment),r.map(e=>e.proof)])])}return(0,i.concat)(["0x03",(0,i.encodeRlp)(o)])}(this,r,t?this.blobs:null);case 4:return function(e,t){const r=[k(e.chainId,"chainId"),k(e.nonce,"nonce"),k(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),k(e.maxFeePerGas||0,"maxFeePerGas"),k(e.gasLimit,"gasLimit"),e.to||"0x",k(e.value,"value"),e.data,S(e.accessList||[]),(o=e.authorizationList||[],o.map(e=>[k(e.chainId,"chainId"),e.address,k(e.nonce,"nonce"),k(e.signature.yParity,"yParity"),(0,i.toBeArray)(e.signature.r),(0,i.toBeArray)(e.signature._s)]))];var o;return t&&(r.push(k(t.yParity,"yParity")),r.push((0,i.toBeArray)(t.r)),r.push((0,i.toBeArray)(t.s))),(0,i.concat)(["0x04",(0,i.encodeRlp)(r)])}(this,r)}(0,i.assert)(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:".serialized"})}get serialized(){return this.#y(!0,!0)}get unsignedSerialized(){return this.#y(!1,!1)}inferType(){const e=this.inferTypes();return e.indexOf(2)>=0?2:e.pop()}inferTypes(){const e=null!=this.gasPrice,t=null!=this.maxFeePerGas||null!=this.maxPriorityFeePerGas,r=null!=this.accessList,o=null!=this.#d||this.#h;null!=this.maxFeePerGas&&null!=this.maxPriorityFeePerGas&&(0,i.assert)(this.maxFeePerGas>=this.maxPriorityFeePerGas,"priorityFee cannot be more than maxFee","BAD_DATA",{value:this}),(0,i.assert)(!t||0!==this.type&&1!==this.type,"transaction type cannot have maxFeePerGas or maxPriorityFeePerGas","BAD_DATA",{value:this}),(0,i.assert)(0!==this.type||!r,"legacy transaction cannot have accessList","BAD_DATA",{value:this});const n=[];return null!=this.type?n.push(this.type):this.authorizationList&&this.authorizationList.length?n.push(4):t?n.push(2):e?(n.push(1),r||n.push(0)):r?(n.push(1),n.push(2)):(o&&this.to||(n.push(0),n.push(1),n.push(2)),n.push(3)),n.sort(),n}isLegacy(){return 0===this.type}isBerlin(){return 1===this.type}isLondon(){return 2===this.type}isCancun(){return 3===this.type}clone(){return P.from(this)}toJSON(){const e=e=>null==e?null:e.toString();return{type:this.type,to:this.to,data:this.data,nonce:this.nonce,gasLimit:e(this.gasLimit),gasPrice:e(this.gasPrice),maxPriorityFeePerGas:e(this.maxPriorityFeePerGas),maxFeePerGas:e(this.maxFeePerGas),value:e(this.value),chainId:e(this.chainId),sig:this.signature?this.signature.toJSON():null,accessList:this.accessList}}[m](){return this.toString()}toString(){const e=[],t=t=>{let r=this[t];"string"==typeof r&&(r=JSON.stringify(r)),e.push(`${t}: ${r}`)};this.type&&t("type"),t("to"),t("data"),t("nonce"),t("gasLimit"),t("value"),null!=this.chainId&&t("chainId"),this.signature&&(t("from"),e.push(`signature: ${this.signature.toString()}`));const r=this.authorizationList;if(r){const t=[];for(const e of r){const r=[];r.push(`address: ${JSON.stringify(e.address)}`),null!=e.nonce&&r.push(`nonce: ${e.nonce}`),null!=e.chainId&&r.push(`chainId: ${e.chainId}`),e.signature&&r.push(`signature: ${e.signature.toString()}`),t.push(`Authorization { ${r.join(", ")} }`)}e.push(`authorizations: [ ${t.join(", ")} ]`)}return`Transaction { ${e.join(", ")} }`}static from(e){if(null==e)return new P;if("string"==typeof e){const t=(0,i.getBytes)(e);if(t[0]>=127)return P.from(function(e){const t=(0,i.decodeRlp)(e);(0,i.assertArgument)(Array.isArray(t)&&(9===t.length||6===t.length),"invalid field count for legacy transaction","data",e);const r={type:0,nonce:x(t[0],"nonce"),gasPrice:A(t[1],"gasPrice"),gasLimit:A(t[2],"gasLimit"),to:w(t[3]),value:A(t[4],"value"),data:(0,i.hexlify)(t[5]),chainId:u};if(6===t.length)return r;const o=A(t[6],"v"),n=A(t[7],"r"),s=A(t[8],"s");if(n===u&&s===u)r.chainId=o;else{let e=(o-p)/f;e<u&&(e=u),r.chainId=e,(0,i.assertArgument)(e!==u||o===d||o===h,"non-canonical legacy v","v",t[6]),r.signature=a.Signature.from({r:(0,i.zeroPadValue)(t[7],32),s:(0,i.zeroPadValue)(t[8],32),v:o})}return r}(t));switch(t[0]){case 1:return P.from(function(e){const t=(0,i.decodeRlp)((0,i.getBytes)(e).slice(1));(0,i.assertArgument)(Array.isArray(t)&&(8===t.length||11===t.length),"invalid field count for transaction type: 1","data",(0,i.hexlify)(e));const r={type:1,chainId:A(t[0],"chainId"),nonce:x(t[1],"nonce"),gasPrice:A(t[2],"gasPrice"),gasLimit:A(t[3],"gasLimit"),to:w(t[4]),value:A(t[5],"value"),data:(0,i.hexlify)(t[6]),accessList:E(t[7],"accessList")};return 8===t.length||T(r,t.slice(8)),r}(t));case 2:return P.from(function(e){const t=(0,i.decodeRlp)((0,i.getBytes)(e).slice(1));(0,i.assertArgument)(Array.isArray(t)&&(9===t.length||12===t.length),"invalid field count for transaction type: 2","data",(0,i.hexlify)(e));const r={type:2,chainId:A(t[0],"chainId"),nonce:x(t[1],"nonce"),maxPriorityFeePerGas:A(t[2],"maxPriorityFeePerGas"),maxFeePerGas:A(t[3],"maxFeePerGas"),gasPrice:null,gasLimit:A(t[4],"gasLimit"),to:w(t[5]),value:A(t[6],"value"),data:(0,i.hexlify)(t[7]),accessList:E(t[8],"accessList")};return 9===t.length||T(r,t.slice(9)),r}(t));case 3:return P.from(function(e){let t=(0,i.decodeRlp)((0,i.getBytes)(e).slice(1)),r="3",o=null,n=null;if(4===t.length&&Array.isArray(t[0])){r="3 (network format)";const e=t[1],o=t[2],a=t[3];(0,i.assertArgument)(Array.isArray(e),"invalid network format: blobs not an array","fields[1]",e),(0,i.assertArgument)(Array.isArray(o),"invalid network format: commitments not an array","fields[2]",o),(0,i.assertArgument)(Array.isArray(a),"invalid network format: proofs not an array","fields[3]",a),(0,i.assertArgument)(e.length===o.length,"invalid network format: blobs/commitments length mismatch","fields",t),(0,i.assertArgument)(e.length===a.length,"invalid network format: blobs/proofs length mismatch","fields",t),n=[];for(let r=0;r<t[1].length;r++)n.push({data:e[r],commitment:o[r],proof:a[r]});t=t[0]}else if(5===t.length&&Array.isArray(t[0])){r="3 (EIP-7594 network format)",o=(0,i.getNumber)(t[1]);const e=t[2],a=t[3],s=t[4];(0,i.assertArgument)(1===o,`unsupported EIP-7594 network format version: ${o}`,"fields[1]",o),(0,i.assertArgument)(Array.isArray(e),"invalid EIP-7594 network format: blobs not an array","fields[2]",e),(0,i.assertArgument)(Array.isArray(a),"invalid EIP-7594 network format: commitments not an array","fields[3]",a),(0,i.assertArgument)(Array.isArray(s),"invalid EIP-7594 network format: proofs not an array","fields[4]",s),(0,i.assertArgument)(e.length===a.length,"invalid network format: blobs/commitments length mismatch","fields",t),(0,i.assertArgument)(e.length*y===s.length,"invalid network format: blobs/proofs length mismatch","fields",t),n=[];for(let t=0;t<e.length;t++){const r=[];for(let e=0;e<y;e++)r.push(s[t*y+e]);n.push({data:e[t],commitment:a[t],proof:(0,i.concat)(r)})}t=t[0]}(0,i.assertArgument)(Array.isArray(t)&&(11===t.length||14===t.length),`invalid field count for transaction type: ${r}`,"data",(0,i.hexlify)(e));const a={type:3,chainId:A(t[0],"chainId"),nonce:x(t[1],"nonce"),maxPriorityFeePerGas:A(t[2],"maxPriorityFeePerGas"),maxFeePerGas:A(t[3],"maxFeePerGas"),gasPrice:null,gasLimit:A(t[4],"gasLimit"),to:w(t[5]),value:A(t[6],"value"),data:(0,i.hexlify)(t[7]),accessList:E(t[8],"accessList"),maxFeePerBlobGas:A(t[9],"maxFeePerBlobGas"),blobVersionedHashes:t[10],blobWrapperVersion:o};n&&(a.blobs=n),(0,i.assertArgument)(null!=a.to,`invalid address for transaction type: ${r}`,"data",e),(0,i.assertArgument)(Array.isArray(a.blobVersionedHashes),"invalid blobVersionedHashes: must be an array","data",e);for(let t=0;t<a.blobVersionedHashes.length;t++)(0,i.assertArgument)((0,i.isHexString)(a.blobVersionedHashes[t],32),`invalid blobVersionedHash at index ${t}: must be length 32`,"data",e);return 11===t.length||T(a,t.slice(11)),a}(t));case 4:return P.from(function(e){const t=(0,i.decodeRlp)((0,i.getBytes)(e).slice(1));(0,i.assertArgument)(Array.isArray(t)&&(10===t.length||13===t.length),"invalid field count for transaction type: 4","data",(0,i.hexlify)(e));const r={type:4,chainId:A(t[0],"chainId"),nonce:x(t[1],"nonce"),maxPriorityFeePerGas:A(t[2],"maxPriorityFeePerGas"),maxFeePerGas:A(t[3],"maxFeePerGas"),gasPrice:null,gasLimit:A(t[4],"gasLimit"),to:w(t[5]),value:A(t[6],"value"),data:(0,i.hexlify)(t[7]),accessList:E(t[8],"accessList"),authorizationList:B(t[9],"authorizationList")};return 10===t.length||T(r,t.slice(10)),r}(t))}(0,i.assert)(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:"from"})}const t=new P;return null!=e.type&&(t.type=e.type),null!=e.to&&(t.to=e.to),null!=e.nonce&&(t.nonce=e.nonce),null!=e.gasLimit&&(t.gasLimit=e.gasLimit),null!=e.gasPrice&&(t.gasPrice=e.gasPrice),null!=e.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=e.maxPriorityFeePerGas),null!=e.maxFeePerGas&&(t.maxFeePerGas=e.maxFeePerGas),null!=e.maxFeePerBlobGas&&(t.maxFeePerBlobGas=e.maxFeePerBlobGas),null!=e.data&&(t.data=e.data),null!=e.value&&(t.value=e.value),null!=e.chainId&&(t.chainId=e.chainId),null!=e.signature&&(t.signature=a.Signature.from(e.signature)),null!=e.accessList&&(t.accessList=e.accessList),null!=e.authorizationList&&(t.authorizationList=e.authorizationList),null!=e.blobVersionedHashes&&(t.blobVersionedHashes=e.blobVersionedHashes),null!=e.kzg&&(t.kzg=e.kzg),null!=e.blobWrapperVersion&&(t.blobWrapperVersion=e.blobWrapperVersion),null!=e.blobs&&(t.blobs=e.blobs),null!=e.hash&&((0,i.assertArgument)(t.isSigned(),"unsigned transaction cannot define '.hash'","tx",e),(0,i.assertArgument)(t.hash===e.hash,"hash mismatch","tx",e)),null!=e.from&&((0,i.assertArgument)(t.isSigned(),"unsigned transaction cannot define '.from'","tx",e),(0,i.assertArgument)(t.from.toLowerCase()===(e.from||"").toLowerCase(),"from mismatch","tx",e)),t}}t.Transaction=P},2112:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeBase58=t.encodeBase58=void 0;const o=r(8256),n=r(7991),a=r(7597),i="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";let s=null;function c(e){if(null==s){s={};for(let e=0;e<58;e++)s[i[e]]=BigInt(e)}const t=s[e];return(0,n.assertArgument)(null!=t,"invalid base58 value","letter",e),t}const l=BigInt(0),u=BigInt(58);t.encodeBase58=function(e){const t=(0,o.getBytes)(e);let r=(0,a.toBigInt)(t),n="";for(;r;)n=i[Number(r%u)]+n,r/=u;for(let e=0;e<t.length&&!t[e];e++)n=i[0]+n;return n},t.decodeBase58=function(e){let t=l;for(let r=0;r<e.length;r++)t*=u,t+=c(e[r]);return t}},2116:(e,t)=>{"use strict";
|
|
13
|
+
/*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) */function r(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function o(e,...t){if(!r(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function n(e,t){return!!Array.isArray(t)&&(0===t.length||(e?t.every(e=>"string"==typeof e):t.every(e=>Number.isSafeInteger(e))))}function a(e){if("function"!=typeof e)throw new Error("function expected");return!0}function i(e,t){if("string"!=typeof t)throw new Error(`${e}: string expected`);return!0}function s(e){if(!Number.isSafeInteger(e))throw new Error(`invalid integer: ${e}`)}function c(e){if(!Array.isArray(e))throw new Error("array expected")}function l(e,t){if(!n(!0,t))throw new Error(`${e}: array of strings expected`)}function u(e,t){if(!n(!1,t))throw new Error(`${e}: array of numbers expected`)}function f(...e){const t=e=>e,r=(e,t)=>r=>e(t(r));return{encode:e.map(e=>e.encode).reduceRight(r,t),decode:e.map(e=>e.decode).reduce(r,t)}}function d(e){const t="string"==typeof e?e.split(""):e,r=t.length;l("alphabet",t);const o=new Map(t.map((e,t)=>[e,t]));return{encode:o=>(c(o),o.map(o=>{if(!Number.isSafeInteger(o)||o<0||o>=r)throw new Error(`alphabet.encode: digit index outside alphabet "${o}". Allowed: ${e}`);return t[o]})),decode:t=>(c(t),t.map(t=>{i("alphabet.decode",t);const r=o.get(t);if(void 0===r)throw new Error(`Unknown letter: "${t}". Allowed: ${e}`);return r}))}}function h(e=""){return i("join",e),{encode:t=>(l("join.decode",t),t.join(e)),decode:t=>(i("join.decode",t),t.split(e))}}function p(e,t="="){return s(e),i("padding",t),{encode(r){for(l("padding.encode",r);r.length*e%8;)r.push(t);return r},decode(r){l("padding.decode",r);let o=r.length;if(o*e%8)throw new Error("padding: invalid, string should have whole number of bytes");for(;o>0&&r[o-1]===t;o--){if((o-1)*e%8==0)throw new Error("padding: invalid, string has too much padding")}return r.slice(0,o)}}}function g(e){return a(e),{encode:e=>e,decode:t=>e(t)}}function m(e,t,r){if(t<2)throw new Error(`convertRadix: invalid from=${t}, base cannot be less than 2`);if(r<2)throw new Error(`convertRadix: invalid to=${r}, base cannot be less than 2`);if(c(e),!e.length)return[];let o=0;const n=[],a=Array.from(e,e=>{if(s(e),e<0||e>=t)throw new Error(`invalid integer: ${e}`);return e}),i=a.length;for(;;){let e=0,s=!0;for(let n=o;n<i;n++){const i=a[n],c=t*e,l=c+i;if(!Number.isSafeInteger(l)||c/t!==e||l-i!==c)throw new Error("convertRadix: carry overflow");const u=l/r;e=l%r;const f=Math.floor(u);if(a[n]=f,!Number.isSafeInteger(f)||f*r+e!==l)throw new Error("convertRadix: carry overflow");s&&(f?s=!1:o=n)}if(n.push(e),s)break}for(let t=0;t<e.length-1&&0===e[t];t++)n.push(0);return n.reverse()}Object.defineProperty(t,"__esModule",{value:!0}),t.bytes=t.stringToBytes=t.str=t.bytesToString=t.hex=t.utf8=t.bech32m=t.bech32=t.base58check=t.createBase58check=t.base58xmr=t.base58xrp=t.base58flickr=t.base58=t.base64urlnopad=t.base64url=t.base64nopad=t.base64=t.base32crockford=t.base32hexnopad=t.base32hex=t.base32nopad=t.base32=t.base16=t.utils=void 0;const b=(e,t)=>0===t?e:b(t,e%t),y=(e,t)=>e+(t-b(e,t)),v=(()=>{let e=[];for(let t=0;t<40;t++)e.push(2**t);return e})();function w(e,t,r,o){if(c(e),t<=0||t>32)throw new Error(`convertRadix2: wrong from=${t}`);if(r<=0||r>32)throw new Error(`convertRadix2: wrong to=${r}`);if(y(t,r)>32)throw new Error(`convertRadix2: carry overflow from=${t} to=${r} carryBits=${y(t,r)}`);let n=0,a=0;const i=v[t],l=v[r]-1,u=[];for(const o of e){if(s(o),o>=i)throw new Error(`convertRadix2: invalid data word=${o} from=${t}`);if(n=n<<t|o,a+t>32)throw new Error(`convertRadix2: carry overflow pos=${a} from=${t}`);for(a+=t;a>=r;a-=r)u.push((n>>a-r&l)>>>0);const e=v[a];if(void 0===e)throw new Error("invalid carry");n&=e-1}if(n=n<<r-a&l,!o&&a>=t)throw new Error("Excess padding");if(!o&&n>0)throw new Error(`Non-zero padding: ${n}`);return o&&a>0&&u.push(n>>>0),u}function E(e){s(e);return{encode:t=>{if(!r(t))throw new Error("radix.encode input should be Uint8Array");return m(Array.from(t),256,e)},decode:t=>(u("radix.decode",t),Uint8Array.from(m(t,e,256)))}}function B(e,t=!1){if(s(e),e<=0||e>32)throw new Error("radix2: bits should be in (0..32]");if(y(8,e)>32||y(e,8)>32)throw new Error("radix2: carry overflow");return{encode:o=>{if(!r(o))throw new Error("radix2.encode input should be Uint8Array");return w(Array.from(o),8,e,!t)},decode:r=>(u("radix2.decode",r),Uint8Array.from(w(r,e,8,t)))}}function x(e){return a(e),function(...t){try{return e.apply(null,t)}catch(e){}}}function A(e,t){return s(e),a(t),{encode(o){if(!r(o))throw new Error("checksum.encode: input should be Uint8Array");const n=t(o).slice(0,e),a=new Uint8Array(o.length+e);return a.set(o),a.set(n,o.length),a},decode(o){if(!r(o))throw new Error("checksum.decode: input should be Uint8Array");const n=o.slice(0,-e),a=o.slice(-e),i=t(n).slice(0,e);for(let t=0;t<e;t++)if(i[t]!==a[t])throw new Error("Invalid checksum");return n}}}t.utils={alphabet:d,chain:f,checksum:A,convertRadix:m,convertRadix2:w,radix:E,radix2:B,join:h,padding:p},t.base16=f(B(4),d("0123456789ABCDEF"),h("")),t.base32=f(B(5),d("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"),p(5),h("")),t.base32nopad=f(B(5),d("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"),h("")),t.base32hex=f(B(5),d("0123456789ABCDEFGHIJKLMNOPQRSTUV"),p(5),h("")),t.base32hexnopad=f(B(5),d("0123456789ABCDEFGHIJKLMNOPQRSTUV"),h("")),t.base32crockford=f(B(5),d("0123456789ABCDEFGHJKMNPQRSTVWXYZ"),h(""),g(e=>e.toUpperCase().replace(/O/g,"0").replace(/[IL]/g,"1")));const k=(()=>"function"==typeof Uint8Array.from([]).toBase64&&"function"==typeof Uint8Array.fromBase64)(),S=(e,t)=>{i("base64",e);const r=t?/^[A-Za-z0-9=_-]+$/:/^[A-Za-z0-9=+/]+$/,o=t?"base64url":"base64";if(e.length>0&&!r.test(e))throw new Error("invalid base64");return Uint8Array.fromBase64(e,{alphabet:o,lastChunkHandling:"strict"})};t.base64=k?{encode:e=>(o(e),e.toBase64()),decode:e=>S(e,!1)}:f(B(6),d("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),p(6),h("")),t.base64nopad=f(B(6),d("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),h("")),t.base64url=k?{encode:e=>(o(e),e.toBase64({alphabet:"base64url"})),decode:e=>S(e,!0)}:f(B(6),d("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),p(6),h("")),t.base64urlnopad=f(B(6),d("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),h(""));const C=e=>f(E(58),d(e),h(""));t.base58=C("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),t.base58flickr=C("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"),t.base58xrp=C("rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz");const T=[0,2,3,5,6,7,9,10,11];t.base58xmr={encode(e){let r="";for(let o=0;o<e.length;o+=8){const n=e.subarray(o,o+8);r+=t.base58.encode(n).padStart(T[n.length],"1")}return r},decode(e){let r=[];for(let o=0;o<e.length;o+=11){const n=e.slice(o,o+11),a=T.indexOf(n.length),i=t.base58.decode(n);for(let e=0;e<i.length-a;e++)if(0!==i[e])throw new Error("base58xmr: wrong padding");r=r.concat(Array.from(i.slice(i.length-a)))}return Uint8Array.from(r)}};t.createBase58check=e=>f(A(4,t=>e(e(t))),t.base58),t.base58check=t.createBase58check;const P=f(d("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),h("")),O=[996825010,642813549,513874426,1027748829,705979059];function I(e){const t=e>>25;let r=(33554431&e)<<5;for(let e=0;e<O.length;e++)1==(t>>e&1)&&(r^=O[e]);return r}function z(e,t,r=1){const o=e.length;let n=1;for(let t=0;t<o;t++){const r=e.charCodeAt(t);if(r<33||r>126)throw new Error(`Invalid prefix (${e})`);n=I(n)^r>>5}n=I(n);for(let t=0;t<o;t++)n=I(n)^31&e.charCodeAt(t);for(let e of t)n=I(n)^e;for(let e=0;e<6;e++)n=I(n);return n^=r,P.encode(w([n%v[30]],30,5,!1))}function L(e){const t="bech32"===e?1:734539939,o=B(5),n=o.decode,a=o.encode,s=x(n);function c(e,o,n=90){i("bech32.encode prefix",e),r(o)&&(o=Array.from(o)),u("bech32.encode",o);const a=e.length;if(0===a)throw new TypeError(`Invalid prefix length ${a}`);const s=a+7+o.length;if(!1!==n&&s>n)throw new TypeError(`Length ${s} exceeds limit ${n}`);const c=e.toLowerCase(),l=z(c,o,t);return`${c}1${P.encode(o)}${l}`}function l(e,r=90){i("bech32.decode input",e);const o=e.length;if(o<8||!1!==r&&o>r)throw new TypeError(`invalid string length: ${o} (${e}). Expected (8..${r})`);const n=e.toLowerCase();if(e!==n&&e!==e.toUpperCase())throw new Error("String must be lowercase or uppercase");const a=n.lastIndexOf("1");if(0===a||-1===a)throw new Error('Letter "1" must be present between prefix and data only');const s=n.slice(0,a),c=n.slice(a+1);if(c.length<6)throw new Error("Data must be at least 6 characters long");const l=P.decode(c).slice(0,-6),u=z(s,l,t);if(!c.endsWith(u))throw new Error(`Invalid checksum in ${e}: expected "${u}"`);return{prefix:s,words:l}}return{encode:c,decode:l,encodeFromBytes:function(e,t){return c(e,a(t))},decodeToBytes:function(e){const{prefix:t,words:r}=l(e,!1);return{prefix:t,words:r,bytes:n(r)}},decodeUnsafe:x(l),fromWords:n,fromWordsUnsafe:s,toWords:a}}t.bech32=L("bech32"),t.bech32m=L("bech32m"),t.utf8={encode:e=>(new TextDecoder).decode(e),decode:e=>(new TextEncoder).encode(e)};const R=(()=>"function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex)(),N={encode:e=>(o(e),e.toHex()),decode:e=>(i("hex",e),Uint8Array.fromHex(e))};t.hex=R?N:f(B(4),d("0123456789abcdef"),h(""),g(e=>{if("string"!=typeof e||e.length%2!=0)throw new TypeError(`hex.decode: expected string, got ${typeof e} with length ${e.length}`);return e.toLowerCase()}));const _={utf8:t.utf8,hex:t.hex,base16:t.base16,base32:t.base32,base64:t.base64,base64url:t.base64url,base58:t.base58,base58xmr:t.base58xmr},j="Invalid encoding type. Available types: utf8, hex, base16, base32, base64, base64url, base58, base58xmr";t.bytesToString=(e,t)=>{if("string"!=typeof e||!_.hasOwnProperty(e))throw new TypeError(j);if(!r(t))throw new TypeError("bytesToString() expects Uint8Array");return _[e].encode(t)},t.str=t.bytesToString;t.stringToBytes=(e,t)=>{if(!_.hasOwnProperty(e))throw new TypeError(j);if("string"!=typeof t)throw new TypeError("stringToBytes() expects string");return _[e].decode(t)},t.bytes=t.stringToBytes},2121:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=r(5565),n=r(9741);class a{constructor(){this.hash=n.sha512.create()}static half(e){return(new a).add(e).first256()}add(e){return this.hash.update(e),this}addU32(e){const t=new Uint8Array(4);return new DataView(t.buffer).setUint32(0,e),this.add(t)}finish(){return this.hash.digest()}first256(){return this.finish().slice(0,32)}first256BigInt(){return(0,o.bytesToNumberBE)(this.first256())}}t.default=a},2269:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getHash=i,t.createCurve=function(e,t){const r=t=>(0,a.weierstrass)({...e,...i(t)});return{...r(t),create:r}};
|
|
10
14
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
11
|
-
const
|
|
15
|
+
const o=r(1062),n=r(4904),a=r(8116);function i(e){return{hash:e,hmac:(t,...r)=>(0,o.hmac)(e,t,(0,n.concatBytes)(...r)),randomBytes:n.randomBytes}}},2348:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCreate2Address=t.getCreateAddress=void 0;const o=r(7256),n=r(1490),a=r(91);t.getCreateAddress=function(e){const t=(0,a.getAddress)(e.from);let r=(0,n.getBigInt)(e.nonce,"tx.nonce").toString(16);return r="0"===r?"0x":r.length%2?"0x0"+r:"0x"+r,(0,a.getAddress)((0,n.dataSlice)((0,o.keccak256)((0,n.encodeRlp)([t,r])),12))},t.getCreate2Address=function(e,t,r){const i=(0,a.getAddress)(e),s=(0,n.getBytes)(t,"salt"),c=(0,n.getBytes)(r,"initCodeHash");return(0,n.assertArgument)(32===s.length,"salt must be 32 bytes","salt",t),(0,n.assertArgument)(32===c.length,"initCodeHash must be 32 bytes","initCodeHash",r),(0,a.getAddress)((0,n.dataSlice)((0,o.keccak256)((0,n.concat)(["0xff",i,s,c])),12))}},2355:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHA2=void 0;const o=r(8629),n=r(791);class a extends n.Hash{constructor(e,t,r,o){super(),this.blockLen=e,this.outputLen=t,this.padOffset=r,this.isLE=o,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=(0,n.createView)(this.buffer)}update(e){(0,o.exists)(this);const{view:t,buffer:r,blockLen:a}=this,i=(e=(0,n.toBytes)(e)).length;for(let o=0;o<i;){const s=Math.min(a-this.pos,i-o);if(s===a){const t=(0,n.createView)(e);for(;a<=i-o;o+=a)this.process(t,o);continue}r.set(e.subarray(o,o+s),this.pos),this.pos+=s,o+=s,this.pos===a&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){(0,o.exists)(this),(0,o.output)(e,this),this.finished=!0;const{buffer:t,view:r,blockLen:a,isLE:i}=this;let{pos:s}=this;t[s++]=128,this.buffer.subarray(s).fill(0),this.padOffset>a-s&&(this.process(r,0),s=0);for(let e=s;e<a;e++)t[e]=0;!function(e,t,r,o){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,r,o);const n=BigInt(32),a=BigInt(4294967295),i=Number(r>>n&a),s=Number(r&a),c=o?4:0,l=o?0:4;e.setUint32(t+c,i,o),e.setUint32(t+l,s,o)}(r,a-8,BigInt(8*this.length),i),this.process(r,0);const c=(0,n.createView)(e),l=this.outputLen;if(l%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const u=l/4,f=this.get();if(u>f.length)throw new Error("_sha2: outputLen bigger than state");for(let e=0;e<u;e++)c.setUint32(4*e,f[e],i)}digest(){const{buffer:e,outputLen:t}=this;this.digestInto(e);const r=e.slice(0,t);return this.destroy(),r}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:t,buffer:r,length:o,finished:n,destroyed:a,pos:i}=this;return e.length=o,e.pos=i,e.finished=n,e.destroyed=a,o%t&&e.buffer.set(r),e}}t.SHA2=a},2363:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.p521_hasher=t.secp521r1=t.p521=t.p384_hasher=t.secp384r1=t.p384=t.p256_hasher=t.secp256r1=t.p256=void 0;
|
|
12
16
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
13
|
-
const r=BigInt(0),a=BigInt(1),o=BigInt(2);function n(e){return e instanceof Uint8Array||null!=e&&"object"==typeof e&&"Uint8Array"===e.constructor.name}function i(e){if(!n(e))throw new Error("Uint8Array expected")}const s=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));function c(e){i(e);let t="";for(let r=0;r<e.length;r++)t+=s[e[r]];return t}function l(e){const t=e.toString(16);return 1&t.length?`0${t}`:t}function u(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);return BigInt(""===e?"0":`0x${e}`)}const d={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};function f(e){return e>=d._0&&e<=d._9?e-d._0:e>=d._A&&e<=d._F?e-(d._A-10):e>=d._a&&e<=d._f?e-(d._a-10):void 0}function h(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);const t=e.length,r=t/2;if(t%2)throw new Error("padded hex string expected, got unpadded hex of length "+t);const a=new Uint8Array(r);for(let t=0,o=0;t<r;t++,o+=2){const r=f(e.charCodeAt(o)),n=f(e.charCodeAt(o+1));if(void 0===r||void 0===n){const t=e[o]+e[o+1];throw new Error('hex string expected, got non-hex character "'+t+'" at index '+o)}a[t]=16*r+n}return a}function p(e,t){return h(e.toString(16).padStart(2*t,"0"))}function g(...e){let t=0;for(let r=0;r<e.length;r++){const a=e[r];i(a),t+=a.length}const r=new Uint8Array(t);for(let t=0,a=0;t<e.length;t++){const o=e[t];r.set(o,a),a+=o.length}return r}t.bitMask=e=>(o<<BigInt(e-1))-a;const m=e=>new Uint8Array(e),b=e=>Uint8Array.from(e);const y={bigint:e=>"bigint"==typeof e,function:e=>"function"==typeof e,boolean:e=>"boolean"==typeof e,string:e=>"string"==typeof e,stringOrUint8Array:e=>"string"==typeof e||n(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"==typeof e&&Number.isSafeInteger(e.outputLen)}},8116:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DER=void 0,t.weierstrassPoints=p,t.weierstrass=function(e){const r=function(e){const t=(0,a.validateBasic)(e);return n.validateObject(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}(e),{Fp:s,n:c}=r,d=s.BYTES+1,f=2*s.BYTES+1;function h(e){return o.mod(e,c)}function g(e){return o.invert(e,c)}const{ProjectivePoint:m,normPrivateKeyToScalar:b,weierstrassEquation:y,isWithinCurveOrder:v}=p({...r,toBytes(e,t,r){const a=t.toAffine(),o=s.toBytes(a.x),i=n.concatBytes;return r?i(Uint8Array.from([t.hasEvenY()?2:3]),o):i(Uint8Array.from([4]),o,s.toBytes(a.y))},fromBytes(e){const t=e.length,r=e[0],a=e.subarray(1);if(t!==d||2!==r&&3!==r){if(t===f&&4===r){return{x:s.fromBytes(a.subarray(0,s.BYTES)),y:s.fromBytes(a.subarray(s.BYTES,2*s.BYTES))}}throw new Error(`Point of length ${t} was invalid. Expected ${d} compressed bytes or ${f} uncompressed bytes`)}{const e=n.bytesToNumberBE(a);if(!(l<(o=e)&&o<s.ORDER))throw new Error("Point is not on curve");const t=y(e);let i;try{i=s.sqrt(t)}catch(e){const t=e instanceof Error?": "+e.message:"";throw new Error("Point is not on curve"+t)}return!(1&~r)!==((i&u)===u)&&(i=s.neg(i)),{x:e,y:i}}var o}}),w=e=>n.bytesToHex(n.numberToBytesBE(e,r.nByteLength));function k(e){return e>c>>u}const E=(e,t,r)=>n.bytesToNumberBE(e.slice(t,r));class B{constructor(e,t,r){this.r=e,this.s=t,this.recovery=r,this.assertValidity()}static fromCompact(e){const t=r.nByteLength;return e=(0,i.ensureBytes)("compactSignature",e,2*t),new B(E(e,0,t),E(e,t,2*t))}static fromDER(e){const{r,s:a}=t.DER.toSig((0,i.ensureBytes)("DER",e));return new B(r,a)}assertValidity(){if(!v(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!v(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(e){return new B(this.r,this.s,e)}recoverPublicKey(e){const{r:t,s:a,recovery:o}=this,n=P((0,i.ensureBytes)("msgHash",e));if(null==o||![0,1,2,3].includes(o))throw new Error("recovery id invalid");const c=2===o||3===o?t+r.n:t;if(c>=s.ORDER)throw new Error("recovery id 2 or 3 invalid");const l=1&o?"03":"02",u=m.fromHex(l+w(c)),d=g(c),f=h(-n*d),p=h(a*d),b=m.BASE.multiplyAndAddUnsafe(u,f,p);if(!b)throw new Error("point at infinify");return b.assertValidity(),b}hasHighS(){return k(this.s)}normalizeS(){return this.hasHighS()?new B(this.r,h(-this.s),this.recovery):this}toDERRawBytes(){return n.hexToBytes(this.toDERHex())}toDERHex(){return t.DER.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return n.hexToBytes(this.toCompactHex())}toCompactHex(){return w(this.r)+w(this.s)}}const x={isValidPrivateKey(e){try{return b(e),!0}catch(e){return!1}},normPrivateKeyToScalar:b,randomPrivateKey:()=>{const e=o.getMinHashLength(r.n);return o.mapHashToField(r.randomBytes(e),r.n)},precompute:(e=8,t=m.BASE)=>(t._setWindowSize(e),t.multiply(BigInt(3)),t)};function A(e){const t=n.isBytes(e),r="string"==typeof e,a=(t||r)&&e.length;return t?a===d||a===f:r?a===2*d||a===2*f:e instanceof m}const S=r.bits2int||function(e){const t=n.bytesToNumberBE(e),a=8*e.length-r.nBitLength;return a>0?t>>BigInt(a):t},P=r.bits2int_modN||function(e){return h(S(e))},C=n.bitMask(r.nBitLength);function T(e){if("bigint"!=typeof e)throw new Error("bigint expected");if(!(l<=e&&e<C))throw new Error(`bigint expected < 2^${r.nBitLength}`);return n.numberToBytesBE(e,r.nByteLength)}function O(e,t,a=z){if(["recovered","canonical"].some((e=>e in a)))throw new Error("sign() legacy options not supported");const{hash:o,randomBytes:c}=r;let{lowS:d,prehash:f,extraEntropy:p}=a;null==d&&(d=!0),e=(0,i.ensureBytes)("msgHash",e),f&&(e=(0,i.ensureBytes)("prehashed msgHash",o(e)));const y=P(e),w=b(t),E=[T(w),T(y)];if(null!=p&&!1!==p){const e=!0===p?c(s.BYTES):p;E.push((0,i.ensureBytes)("extraEntropy",e))}const x=n.concatBytes(...E),A=y;return{seed:x,k2sig:function(e){const t=S(e);if(!v(t))return;const r=g(t),a=m.BASE.multiply(t).toAffine(),o=h(a.x);if(o===l)return;const n=h(r*h(A+o*w));if(n===l)return;let i=(a.x===o?0:2)|Number(a.y&u),s=n;return d&&k(n)&&(s=function(e){return k(e)?h(-e):e}(n),i^=1),new B(o,s,i)}}}const z={lowS:r.lowS,prehash:!1},I={lowS:r.lowS,prehash:!1};return m.BASE._setWindowSize(8),{CURVE:r,getPublicKey:function(e,t=!0){return m.fromPrivateKey(e).toRawBytes(t)},getSharedSecret:function(e,t,r=!0){if(A(e))throw new Error("first arg must be private key");if(!A(t))throw new Error("second arg must be public key");return m.fromHex(t).multiply(b(e)).toRawBytes(r)},sign:function(e,t,a=z){const{seed:o,k2sig:i}=O(e,t,a),s=r;return n.createHmacDrbg(s.hash.outputLen,s.nByteLength,s.hmac)(o,i)},verify:function(e,a,o,s=I){const c=e;if(a=(0,i.ensureBytes)("msgHash",a),o=(0,i.ensureBytes)("publicKey",o),"strict"in s)throw new Error("options.strict was renamed to lowS");const{lowS:l,prehash:u}=s;let d,f;try{if("string"==typeof c||n.isBytes(c))try{d=B.fromDER(c)}catch(e){if(!(e instanceof t.DER.Err))throw e;d=B.fromCompact(c)}else{if("object"!=typeof c||"bigint"!=typeof c.r||"bigint"!=typeof c.s)throw new Error("PARSE");{const{r:e,s:t}=c;d=new B(e,t)}}f=m.fromHex(o)}catch(e){if("PARSE"===e.message)throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(l&&d.hasHighS())return!1;u&&(a=r.hash(a));const{r:p,s:b}=d,y=P(a),v=g(b),w=h(y*v),k=h(p*v),E=m.BASE.multiplyAndAddUnsafe(f,w,k)?.toAffine();if(!E)return!1;return h(E.x)===p},ProjectivePoint:m,Signature:B,utils:x}},t.SWUFpSqrtRatio=g,t.mapToCurveSimpleSWU=function(e,t){if(o.validateField(e),!e.isValid(t.A)||!e.isValid(t.B)||!e.isValid(t.Z))throw new Error("mapToCurveSimpleSWU: invalid opts");const r=g(e,t.Z);if(!e.isOdd)throw new Error("Fp.isOdd is not implemented!");return a=>{let o,n,i,s,c,l,u,d;o=e.sqr(a),o=e.mul(o,t.Z),n=e.sqr(o),n=e.add(n,o),i=e.add(n,e.ONE),i=e.mul(i,t.B),s=e.cmov(t.Z,e.neg(n),!e.eql(n,e.ZERO)),s=e.mul(s,t.A),n=e.sqr(i),l=e.sqr(s),c=e.mul(l,t.A),n=e.add(n,c),n=e.mul(n,i),l=e.mul(l,s),c=e.mul(l,t.B),n=e.add(n,c),u=e.mul(o,i);const{isValid:f,value:h}=r(n,l);d=e.mul(o,a),d=e.mul(d,h),u=e.cmov(u,i,f),d=e.cmov(d,h,f);const p=e.isOdd(a)===e.isOdd(d);return d=e.cmov(e.neg(d),d,p),u=e.div(u,s),{x:u,y:d}}};
|
|
17
|
+
const o=r(9741),n=r(2269),a=r(9924),i=r(6630),s=r(8116),c=(0,i.Field)(BigInt("0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff")),l=c.create(BigInt("-3")),u=BigInt("0x5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b");t.p256=(0,n.createCurve)({a:l,b:u,Fp:c,n:BigInt("0xffffffff00000000ffffffffffffffffbce6faada7179e84f3b9cac2fc632551"),Gx:BigInt("0x6b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296"),Gy:BigInt("0x4fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f5"),h:BigInt(1),lowS:!1},o.sha256),t.secp256r1=t.p256;const f=(()=>(0,s.mapToCurveSimpleSWU)(c,{A:l,B:u,Z:c.create(BigInt("-10"))}))();t.p256_hasher=(0,a.createHasher)(t.secp256r1.ProjectivePoint,e=>f(e[0]),{DST:"P256_XMD:SHA-256_SSWU_RO_",encodeDST:"P256_XMD:SHA-256_SSWU_NU_",p:c.ORDER,m:1,k:128,expand:"xmd",hash:o.sha256});const d=(0,i.Field)(BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffeffffffff0000000000000000ffffffff")),h=d.create(BigInt("-3")),p=BigInt("0xb3312fa7e23ee7e4988e056be3f82d19181d9c6efe8141120314088f5013875ac656398d8a2ed19d2a85c8edd3ec2aef");t.p384=(0,n.createCurve)({a:h,b:p,Fp:d,n:BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffc7634d81f4372ddf581a0db248b0a77aecec196accc52973"),Gx:BigInt("0xaa87ca22be8b05378eb1c71ef320ad746e1d3b628ba79b9859f741e082542a385502f25dbf55296c3a545e3872760ab7"),Gy:BigInt("0x3617de4a96262c6f5d9e98bf9292dc29f8f41dbd289a147ce9da3113b5f0b8c00a60b1ce1d7e819d7a431d7c90ea0e5f"),h:BigInt(1),lowS:!1},o.sha384),t.secp384r1=t.p384;const g=(()=>(0,s.mapToCurveSimpleSWU)(d,{A:h,B:p,Z:d.create(BigInt("-12"))}))();t.p384_hasher=(0,a.createHasher)(t.secp384r1.ProjectivePoint,e=>g(e[0]),{DST:"P384_XMD:SHA-384_SSWU_RO_",encodeDST:"P384_XMD:SHA-384_SSWU_NU_",p:d.ORDER,m:1,k:192,expand:"xmd",hash:o.sha384});const m=(0,i.Field)(BigInt("0x1ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff")),b=m.create(BigInt("-3")),y=BigInt("0x0051953eb9618e1c9a1f929a21a0b68540eea2da725b99b315f3b8b489918ef109e156193951ec7e937b1652c0bd3bb1bf073573df883d2c34f1ef451fd46b503f00");t.p521=(0,n.createCurve)({a:b,b:y,Fp:m,n:BigInt("0x01fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa51868783bf2f966b7fcc0148f709a5d03bb5c9b8899c47aebb6fb71e91386409"),Gx:BigInt("0x00c6858e06b70404e9cd9e3ecb662395b4429c648139053fb521f828af606b4d3dbaa14b5e77efe75928fe1dc127a2ffa8de3348b3c1856a429bf97e7e31c2e5bd66"),Gy:BigInt("0x011839296a789a3bc0045c8a5fb42c7d1bd998f54449579b446817afbd17273e662c97ee72995ef42640c550b9013fad0761353c7086a272c24088be94769fd16650"),h:BigInt(1),lowS:!1,allowedPrivateKeyLengths:[130,131,132]},o.sha512),t.secp521r1=t.p521;const v=(()=>(0,s.mapToCurveSimpleSWU)(m,{A:b,B:y,Z:m.create(BigInt("-4"))}))();t.p521_hasher=(0,a.createHasher)(t.secp521r1.ProjectivePoint,e=>v(e[0]),{DST:"P521_XMD:SHA-512_SSWU_RO_",encodeDST:"P521_XMD:SHA-512_SSWU_NU_",p:m.ORDER,m:1,k:256,expand:"xmd",hash:o.sha512})},2367:(e,t,r)=>{"use strict";var o=r(9922).hp;Object.defineProperty(t,"__esModule",{value:!0}),t.plugin=void 0;const n=r(9741),a=r(6152),i=r(3016),s=r(3194),c=r(7448),l=r(102);t.plugin={checkPrivateKey:e=>66===e.length?e.substring(2):e,privateKeyToLegacyString(e){const r=t.plugin.checkPrivateKey((0,l.stripHexPrefix)(e)),n=o.from(r,"hex");return(0,c.privateKeyToLegacyString)({data:Uint8Array.from(n),type:c.KeyType.k1})},address(e){if(e.privateKey){const r=t.plugin.privateKeyToLegacyString(e.privateKey);return i.PrivateKey.fromString(r).getPublicKey().toLegacyString()}return e.publicKey?(0,c.publicKeyToLegacyString)({data:Uint8Array.from(o.from(e.publicKey,"hex")),type:c.KeyType.k1}):null},isValidAddress(e){try{return a.PublicKey.fromString(e).isValid()}catch(e){return!1}},isValidSecret(e){try{const r=t.plugin.privateKeyToLegacyString(e);return i.PrivateKey.fromString(r).isValid()}catch(e){return!1}},hash:e=>o.from(n.sha256.create().update(e).digest()).toString("hex"),sign(e,r){const o=t.plugin.privateKeyToLegacyString(r);return i.PrivateKey.fromString(o).sign(e).toString()},verify:(e,r,o)=>t.plugin.recover(e,r)===o,recover:(e,t)=>s.Signature.fromString(t).recover(e).toLegacyString()}},2374:(e,t,r)=>{"use strict";var o=r(9922).hp;Object.defineProperty(t,"__esModule",{value:!0});const n=r(5754),a=r(2979),i=r(592),s=r(4904),c=r(2778);let l=c._default;const u="Invalid mnemonic",f="Invalid entropy",d="A wordlist is required but a default could not be found.\nPlease pass a 2048 word array explicitly.";function h(e){return(e||"").normalize("NFKD")}function p(e,t,r){for(;e.length<r;)e=t+e;return e}function g(e){return parseInt(e,2)}function m(e){return e.map(e=>p(e.toString(2),"0",8)).join("")}function b(e){const t=8*e.length/32,r=n.sha256(Uint8Array.from(e));return m(Array.from(r)).slice(0,t)}function y(e){return"mnemonic"+(e||"")}function v(e,t){if(!(t=t||l))throw new Error(d);const r=h(e).split(" ");if(r.length%3!=0)throw new Error(u);const n=r.map(e=>{const r=t.indexOf(e);if(-1===r)throw new Error(u);return p(r.toString(2),"0",11)}).join(""),a=32*Math.floor(n.length/33),i=n.slice(0,a),s=n.slice(a),c=i.match(/(.{1,8})/g).map(g);if(c.length<16)throw new Error(f);if(c.length>32)throw new Error(f);if(c.length%4!=0)throw new Error(f);const m=o.from(c);if(b(m)!==s)throw new Error("Invalid mnemonic checksum");return m.toString("hex")}function w(e,t){if(o.isBuffer(e)||(e=o.from(e,"hex")),!(t=t||l))throw new Error(d);if(e.length<16)throw new TypeError(f);if(e.length>32)throw new TypeError(f);if(e.length%4!=0)throw new TypeError(f);const r=(m(Array.from(e))+b(e)).match(/(.{1,11})/g).map(e=>{const r=g(e);return t[r]});return"あいこくしん"===t[0]?r.join(" "):r.join(" ")}t.mnemonicToSeedSync=function(e,t){const r=Uint8Array.from(o.from(h(e),"utf8")),n=Uint8Array.from(o.from(y(h(t)),"utf8")),s=i.pbkdf2(a.sha512,r,n,{c:2048,dkLen:64});return o.from(s)},t.mnemonicToSeed=function(e,t){const r=Uint8Array.from(o.from(h(e),"utf8")),n=Uint8Array.from(o.from(y(h(t)),"utf8"));return i.pbkdf2Async(a.sha512,r,n,{c:2048,dkLen:64}).then(e=>o.from(e))},t.mnemonicToEntropy=v,t.entropyToMnemonic=w,t.generateMnemonic=function(e,t,r){if((e=e||128)%32!=0)throw new TypeError(f);return w((t=t||(e=>o.from(s.randomBytes(e))))(e/8),r)},t.validateMnemonic=function(e,t){try{v(e,t)}catch(e){return!1}return!0},t.setDefaultWordlist=function(e){const t=c.wordlists[e];if(!t)throw new Error('Could not find wordlist for language "'+e+'"');l=t},t.getDefaultWordlist=function(){if(!l)throw new Error("No Default Wordlist set");return Object.keys(c.wordlists).filter(e=>"JA"!==e&&"EN"!==e&&c.wordlists[e].every((e,t)=>e===l[t]))[0]};var E=r(2778);t.wordlists=E.wordlists},2469:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SigningKey=void 0;const o=r(8030),n=r(1490),a=r(4054);class i{#v;constructor(e){(0,n.assertArgument)(32===(0,n.dataLength)(e),"invalid private key","privateKey","[REDACTED]"),this.#v=(0,n.hexlify)(e)}get privateKey(){return this.#v}get publicKey(){return i.computePublicKey(this.#v)}get compressedPublicKey(){return i.computePublicKey(this.#v,!0)}sign(e){(0,n.assertArgument)(32===(0,n.dataLength)(e),"invalid digest length","digest",e);const t=o.secp256k1.sign((0,n.getBytesCopy)(e),(0,n.getBytesCopy)(this.#v),{lowS:!0});return a.Signature.from({r:(0,n.toBeHex)(t.r,32),s:(0,n.toBeHex)(t.s,32),v:t.recovery?28:27})}computeSharedSecret(e){const t=i.computePublicKey(e);return(0,n.hexlify)(o.secp256k1.getSharedSecret((0,n.getBytesCopy)(this.#v),(0,n.getBytes)(t),!1))}static computePublicKey(e,t){let r=(0,n.getBytes)(e,"key");if(32===r.length){const e=o.secp256k1.getPublicKey(r,!!t);return(0,n.hexlify)(e)}if(64===r.length){const e=new Uint8Array(65);e[0]=4,e.set(r,1),r=e}const a=o.secp256k1.ProjectivePoint.fromHex(r);return(0,n.hexlify)(a.toRawBytes(t))}static recoverPublicKey(e,t){(0,n.assertArgument)(32===(0,n.dataLength)(e),"invalid digest length","digest",e);const r=a.Signature.from(t);let i=o.secp256k1.Signature.fromCompact((0,n.getBytesCopy)((0,n.concat)([r.r,r.s])));i=i.addRecoveryBit(r.yParity);const s=i.recoverPublicKey((0,n.getBytesCopy)(e));return(0,n.assertArgument)(null!=s,"invalid signature for digest","signature",t),"0x"+s.toHex(!1)}static addPoints(e,t,r){const n=o.secp256k1.ProjectivePoint.fromHex(i.computePublicKey(e).substring(2)),a=o.secp256k1.ProjectivePoint.fromHex(i.computePublicKey(t).substring(2));return"0x"+n.add(a).toHex(!!r)}}t.SigningKey=i},2600:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getUrl=t.createGetUrl=void 0;const o=r(7991);function n(e){return async function(t,r){(0,o.assert)(null==r||!r.cancelled,"request cancelled before sending","CANCELLED");const n=t.url.split(":")[0].toLowerCase();(0,o.assert)("http"===n||"https"===n,`unsupported protocol ${n}`,"UNSUPPORTED_OPERATION",{info:{protocol:n},operation:"request"}),(0,o.assert)("https"===n||!t.credentials||t.allowInsecureAuthentication,"insecure authorized connections unsupported","UNSUPPORTED_OPERATION",{operation:"request"});let a=null;const i=new AbortController,s=setTimeout(()=>{a=(0,o.makeError)("request timeout","TIMEOUT"),i.abort()},t.timeout);r&&r.addListener(()=>{a=(0,o.makeError)("request cancelled","CANCELLED"),i.abort()});const c=Object.assign({},e,{method:t.method,headers:new Headers(Array.from(t)),body:t.body||void 0,signal:i.signal});let l;try{l=await fetch(t.url,c)}catch(e){if(clearTimeout(s),a)throw a;throw e}clearTimeout(s);const u={};l.headers.forEach((e,t)=>{u[t.toLowerCase()]=e});const f=await l.arrayBuffer(),d=null==f?null:new Uint8Array(f);return{statusCode:l.status,statusMessage:l.statusText,headers:u,body:d}}}t.createGetUrl=n;const a=n({});t.getUrl=async function(e,t){return a(e,t)}},2607:e=>{"use strict";e.exports=JSON.parse('["abdikace","abeceda","adresa","agrese","akce","aktovka","alej","alkohol","amputace","ananas","andulka","anekdota","anketa","antika","anulovat","archa","arogance","asfalt","asistent","aspirace","astma","astronom","atlas","atletika","atol","autobus","azyl","babka","bachor","bacil","baculka","badatel","bageta","bagr","bahno","bakterie","balada","baletka","balkon","balonek","balvan","balza","bambus","bankomat","barbar","baret","barman","baroko","barva","baterka","batoh","bavlna","bazalka","bazilika","bazuka","bedna","beran","beseda","bestie","beton","bezinka","bezmoc","beztak","bicykl","bidlo","biftek","bikiny","bilance","biograf","biolog","bitva","bizon","blahobyt","blatouch","blecha","bledule","blesk","blikat","blizna","blokovat","bloudit","blud","bobek","bobr","bodlina","bodnout","bohatost","bojkot","bojovat","bokorys","bolest","borec","borovice","bota","boubel","bouchat","bouda","boule","bourat","boxer","bradavka","brambora","branka","bratr","brepta","briketa","brko","brloh","bronz","broskev","brunetka","brusinka","brzda","brzy","bublina","bubnovat","buchta","buditel","budka","budova","bufet","bujarost","bukvice","buldok","bulva","bunda","bunkr","burza","butik","buvol","buzola","bydlet","bylina","bytovka","bzukot","capart","carevna","cedr","cedule","cejch","cejn","cela","celer","celkem","celnice","cenina","cennost","cenovka","centrum","cenzor","cestopis","cetka","chalupa","chapadlo","charita","chata","chechtat","chemie","chichot","chirurg","chlad","chleba","chlubit","chmel","chmura","chobot","chochol","chodba","cholera","chomout","chopit","choroba","chov","chrapot","chrlit","chrt","chrup","chtivost","chudina","chutnat","chvat","chvilka","chvost","chyba","chystat","chytit","cibule","cigareta","cihelna","cihla","cinkot","cirkus","cisterna","citace","citrus","cizinec","cizost","clona","cokoliv","couvat","ctitel","ctnost","cudnost","cuketa","cukr","cupot","cvaknout","cval","cvik","cvrkot","cyklista","daleko","dareba","datel","datum","dcera","debata","dechovka","decibel","deficit","deflace","dekl","dekret","demokrat","deprese","derby","deska","detektiv","dikobraz","diktovat","dioda","diplom","disk","displej","divadlo","divoch","dlaha","dlouho","dluhopis","dnes","dobro","dobytek","docent","dochutit","dodnes","dohled","dohoda","dohra","dojem","dojnice","doklad","dokola","doktor","dokument","dolar","doleva","dolina","doma","dominant","domluvit","domov","donutit","dopad","dopis","doplnit","doposud","doprovod","dopustit","dorazit","dorost","dort","dosah","doslov","dostatek","dosud","dosyta","dotaz","dotek","dotknout","doufat","doutnat","dovozce","dozadu","doznat","dozorce","drahota","drak","dramatik","dravec","draze","drdol","drobnost","drogerie","drozd","drsnost","drtit","drzost","duben","duchovno","dudek","duha","duhovka","dusit","dusno","dutost","dvojice","dvorec","dynamit","ekolog","ekonomie","elektron","elipsa","email","emise","emoce","empatie","epizoda","epocha","epopej","epos","esej","esence","eskorta","eskymo","etiketa","euforie","evoluce","exekuce","exkurze","expedice","exploze","export","extrakt","facka","fajfka","fakulta","fanatik","fantazie","farmacie","favorit","fazole","federace","fejeton","fenka","fialka","figurant","filozof","filtr","finance","finta","fixace","fjord","flanel","flirt","flotila","fond","fosfor","fotbal","fotka","foton","frakce","freska","fronta","fukar","funkce","fyzika","galeje","garant","genetika","geolog","gilotina","glazura","glejt","golem","golfista","gotika","graf","gramofon","granule","grep","gril","grog","groteska","guma","hadice","hadr","hala","halenka","hanba","hanopis","harfa","harpuna","havran","hebkost","hejkal","hejno","hejtman","hektar","helma","hematom","herec","herna","heslo","hezky","historik","hladovka","hlasivky","hlava","hledat","hlen","hlodavec","hloh","hloupost","hltat","hlubina","hluchota","hmat","hmota","hmyz","hnis","hnojivo","hnout","hoblina","hoboj","hoch","hodiny","hodlat","hodnota","hodovat","hojnost","hokej","holinka","holka","holub","homole","honitba","honorace","horal","horda","horizont","horko","horlivec","hormon","hornina","horoskop","horstvo","hospoda","hostina","hotovost","houba","houf","houpat","houska","hovor","hradba","hranice","hravost","hrazda","hrbolek","hrdina","hrdlo","hrdost","hrnek","hrobka","hromada","hrot","hrouda","hrozen","hrstka","hrubost","hryzat","hubenost","hubnout","hudba","hukot","humr","husita","hustota","hvozd","hybnost","hydrant","hygiena","hymna","hysterik","idylka","ihned","ikona","iluze","imunita","infekce","inflace","inkaso","inovace","inspekce","internet","invalida","investor","inzerce","ironie","jablko","jachta","jahoda","jakmile","jakost","jalovec","jantar","jarmark","jaro","jasan","jasno","jatka","javor","jazyk","jedinec","jedle","jednatel","jehlan","jekot","jelen","jelito","jemnost","jenom","jepice","jeseter","jevit","jezdec","jezero","jinak","jindy","jinoch","jiskra","jistota","jitrnice","jizva","jmenovat","jogurt","jurta","kabaret","kabel","kabinet","kachna","kadet","kadidlo","kahan","kajak","kajuta","kakao","kaktus","kalamita","kalhoty","kalibr","kalnost","kamera","kamkoliv","kamna","kanibal","kanoe","kantor","kapalina","kapela","kapitola","kapka","kaple","kapota","kapr","kapusta","kapybara","karamel","karotka","karton","kasa","katalog","katedra","kauce","kauza","kavalec","kazajka","kazeta","kazivost","kdekoliv","kdesi","kedluben","kemp","keramika","kino","klacek","kladivo","klam","klapot","klasika","klaun","klec","klenba","klepat","klesnout","klid","klima","klisna","klobouk","klokan","klopa","kloub","klubovna","klusat","kluzkost","kmen","kmitat","kmotr","kniha","knot","koalice","koberec","kobka","kobliha","kobyla","kocour","kohout","kojenec","kokos","koktejl","kolaps","koleda","kolize","kolo","komando","kometa","komik","komnata","komora","kompas","komunita","konat","koncept","kondice","konec","konfese","kongres","konina","konkurs","kontakt","konzerva","kopanec","kopie","kopnout","koprovka","korbel","korektor","kormidlo","koroptev","korpus","koruna","koryto","korzet","kosatec","kostka","kotel","kotleta","kotoul","koukat","koupelna","kousek","kouzlo","kovboj","koza","kozoroh","krabice","krach","krajina","kralovat","krasopis","kravata","kredit","krejcar","kresba","kreveta","kriket","kritik","krize","krkavec","krmelec","krmivo","krocan","krok","kronika","kropit","kroupa","krovka","krtek","kruhadlo","krupice","krutost","krvinka","krychle","krypta","krystal","kryt","kudlanka","kufr","kujnost","kukla","kulajda","kulich","kulka","kulomet","kultura","kuna","kupodivu","kurt","kurzor","kutil","kvalita","kvasinka","kvestor","kynolog","kyselina","kytara","kytice","kytka","kytovec","kyvadlo","labrador","lachtan","ladnost","laik","lakomec","lamela","lampa","lanovka","lasice","laso","lastura","latinka","lavina","lebka","leckdy","leden","lednice","ledovka","ledvina","legenda","legie","legrace","lehce","lehkost","lehnout","lektvar","lenochod","lentilka","lepenka","lepidlo","letadlo","letec","letmo","letokruh","levhart","levitace","levobok","libra","lichotka","lidojed","lidskost","lihovina","lijavec","lilek","limetka","linie","linka","linoleum","listopad","litina","litovat","lobista","lodivod","logika","logoped","lokalita","loket","lomcovat","lopata","lopuch","lord","losos","lotr","loudal","louh","louka","louskat","lovec","lstivost","lucerna","lucifer","lump","lusk","lustrace","lvice","lyra","lyrika","lysina","madam","madlo","magistr","mahagon","majetek","majitel","majorita","makak","makovice","makrela","malba","malina","malovat","malvice","maminka","mandle","manko","marnost","masakr","maskot","masopust","matice","matrika","maturita","mazanec","mazivo","mazlit","mazurka","mdloba","mechanik","meditace","medovina","melasa","meloun","mentolka","metla","metoda","metr","mezera","migrace","mihnout","mihule","mikina","mikrofon","milenec","milimetr","milost","mimika","mincovna","minibar","minomet","minulost","miska","mistr","mixovat","mladost","mlha","mlhovina","mlok","mlsat","mluvit","mnich","mnohem","mobil","mocnost","modelka","modlitba","mohyla","mokro","molekula","momentka","monarcha","monokl","monstrum","montovat","monzun","mosaz","moskyt","most","motivace","motorka","motyka","moucha","moudrost","mozaika","mozek","mozol","mramor","mravenec","mrkev","mrtvola","mrzet","mrzutost","mstitel","mudrc","muflon","mulat","mumie","munice","muset","mutace","muzeum","muzikant","myslivec","mzda","nabourat","nachytat","nadace","nadbytek","nadhoz","nadobro","nadpis","nahlas","nahnat","nahodile","nahradit","naivita","najednou","najisto","najmout","naklonit","nakonec","nakrmit","nalevo","namazat","namluvit","nanometr","naoko","naopak","naostro","napadat","napevno","naplnit","napnout","naposled","naprosto","narodit","naruby","narychlo","nasadit","nasekat","naslepo","nastat","natolik","navenek","navrch","navzdory","nazvat","nebe","nechat","necky","nedaleko","nedbat","neduh","negace","nehet","nehoda","nejen","nejprve","neklid","nelibost","nemilost","nemoc","neochota","neonka","nepokoj","nerost","nerv","nesmysl","nesoulad","netvor","neuron","nevina","nezvykle","nicota","nijak","nikam","nikdy","nikl","nikterak","nitro","nocleh","nohavice","nominace","nora","norek","nositel","nosnost","nouze","noviny","novota","nozdra","nuda","nudle","nuget","nutit","nutnost","nutrie","nymfa","obal","obarvit","obava","obdiv","obec","obehnat","obejmout","obezita","obhajoba","obilnice","objasnit","objekt","obklopit","oblast","oblek","obliba","obloha","obluda","obnos","obohatit","obojek","obout","obrazec","obrna","obruba","obrys","obsah","obsluha","obstarat","obuv","obvaz","obvinit","obvod","obvykle","obyvatel","obzor","ocas","ocel","ocenit","ochladit","ochota","ochrana","ocitnout","odboj","odbyt","odchod","odcizit","odebrat","odeslat","odevzdat","odezva","odhadce","odhodit","odjet","odjinud","odkaz","odkoupit","odliv","odluka","odmlka","odolnost","odpad","odpis","odplout","odpor","odpustit","odpykat","odrazka","odsoudit","odstup","odsun","odtok","odtud","odvaha","odveta","odvolat","odvracet","odznak","ofina","ofsajd","ohlas","ohnisko","ohrada","ohrozit","ohryzek","okap","okenice","oklika","okno","okouzlit","okovy","okrasa","okres","okrsek","okruh","okupant","okurka","okusit","olejnina","olizovat","omak","omeleta","omezit","omladina","omlouvat","omluva","omyl","onehdy","opakovat","opasek","operace","opice","opilost","opisovat","opora","opozice","opravdu","oproti","orbital","orchestr","orgie","orlice","orloj","ortel","osada","oschnout","osika","osivo","oslava","oslepit","oslnit","oslovit","osnova","osoba","osolit","ospalec","osten","ostraha","ostuda","ostych","osvojit","oteplit","otisk","otop","otrhat","otrlost","otrok","otruby","otvor","ovanout","ovar","oves","ovlivnit","ovoce","oxid","ozdoba","pachatel","pacient","padouch","pahorek","pakt","palanda","palec","palivo","paluba","pamflet","pamlsek","panenka","panika","panna","panovat","panstvo","pantofle","paprika","parketa","parodie","parta","paruka","paryba","paseka","pasivita","pastelka","patent","patrona","pavouk","pazneht","pazourek","pecka","pedagog","pejsek","peklo","peloton","penalta","pendrek","penze","periskop","pero","pestrost","petarda","petice","petrolej","pevnina","pexeso","pianista","piha","pijavice","pikle","piknik","pilina","pilnost","pilulka","pinzeta","pipeta","pisatel","pistole","pitevna","pivnice","pivovar","placenta","plakat","plamen","planeta","plastika","platit","plavidlo","plaz","plech","plemeno","plenta","ples","pletivo","plevel","plivat","plnit","plno","plocha","plodina","plomba","plout","pluk","plyn","pobavit","pobyt","pochod","pocit","poctivec","podat","podcenit","podepsat","podhled","podivit","podklad","podmanit","podnik","podoba","podpora","podraz","podstata","podvod","podzim","poezie","pohanka","pohnutka","pohovor","pohroma","pohyb","pointa","pojistka","pojmout","pokazit","pokles","pokoj","pokrok","pokuta","pokyn","poledne","polibek","polknout","poloha","polynom","pomalu","pominout","pomlka","pomoc","pomsta","pomyslet","ponechat","ponorka","ponurost","popadat","popel","popisek","poplach","poprosit","popsat","popud","poradce","porce","porod","porucha","poryv","posadit","posed","posila","poskok","poslanec","posoudit","pospolu","postava","posudek","posyp","potah","potkan","potlesk","potomek","potrava","potupa","potvora","poukaz","pouto","pouzdro","povaha","povidla","povlak","povoz","povrch","povstat","povyk","povzdech","pozdrav","pozemek","poznatek","pozor","pozvat","pracovat","prahory","praktika","prales","praotec","praporek","prase","pravda","princip","prkno","probudit","procento","prodej","profese","prohra","projekt","prolomit","promile","pronikat","propad","prorok","prosba","proton","proutek","provaz","prskavka","prsten","prudkost","prut","prvek","prvohory","psanec","psovod","pstruh","ptactvo","puberta","puch","pudl","pukavec","puklina","pukrle","pult","pumpa","punc","pupen","pusa","pusinka","pustina","putovat","putyka","pyramida","pysk","pytel","racek","rachot","radiace","radnice","radon","raft","ragby","raketa","rakovina","rameno","rampouch","rande","rarach","rarita","rasovna","rastr","ratolest","razance","razidlo","reagovat","reakce","recept","redaktor","referent","reflex","rejnok","reklama","rekord","rekrut","rektor","reputace","revize","revma","revolver","rezerva","riskovat","riziko","robotika","rodokmen","rohovka","rokle","rokoko","romaneto","ropovod","ropucha","rorejs","rosol","rostlina","rotmistr","rotoped","rotunda","roubenka","roucho","roup","roura","rovina","rovnice","rozbor","rozchod","rozdat","rozeznat","rozhodce","rozinka","rozjezd","rozkaz","rozloha","rozmar","rozpad","rozruch","rozsah","roztok","rozum","rozvod","rubrika","ruchadlo","rukavice","rukopis","ryba","rybolov","rychlost","rydlo","rypadlo","rytina","ryzost","sadista","sahat","sako","samec","samizdat","samota","sanitka","sardinka","sasanka","satelit","sazba","sazenice","sbor","schovat","sebranka","secese","sedadlo","sediment","sedlo","sehnat","sejmout","sekera","sekta","sekunda","sekvoje","semeno","seno","servis","sesadit","seshora","seskok","seslat","sestra","sesuv","sesypat","setba","setina","setkat","setnout","setrvat","sever","seznam","shoda","shrnout","sifon","silnice","sirka","sirotek","sirup","situace","skafandr","skalisko","skanzen","skaut","skeptik","skica","skladba","sklenice","sklo","skluz","skoba","skokan","skoro","skripta","skrz","skupina","skvost","skvrna","slabika","sladidlo","slanina","slast","slavnost","sledovat","slepec","sleva","slezina","slib","slina","sliznice","slon","sloupek","slovo","sluch","sluha","slunce","slupka","slza","smaragd","smetana","smilstvo","smlouva","smog","smrad","smrk","smrtka","smutek","smysl","snad","snaha","snob","sobota","socha","sodovka","sokol","sopka","sotva","souboj","soucit","soudce","souhlas","soulad","soumrak","souprava","soused","soutok","souviset","spalovna","spasitel","spis","splav","spodek","spojenec","spolu","sponzor","spornost","spousta","sprcha","spustit","sranda","sraz","srdce","srna","srnec","srovnat","srpen","srst","srub","stanice","starosta","statika","stavba","stehno","stezka","stodola","stolek","stopa","storno","stoupat","strach","stres","strhnout","strom","struna","studna","stupnice","stvol","styk","subjekt","subtropy","suchar","sudost","sukno","sundat","sunout","surikata","surovina","svah","svalstvo","svetr","svatba","svazek","svisle","svitek","svoboda","svodidlo","svorka","svrab","sykavka","sykot","synek","synovec","sypat","sypkost","syrovost","sysel","sytost","tabletka","tabule","tahoun","tajemno","tajfun","tajga","tajit","tajnost","taktika","tamhle","tampon","tancovat","tanec","tanker","tapeta","tavenina","tazatel","technika","tehdy","tekutina","telefon","temnota","tendence","tenista","tenor","teplota","tepna","teprve","terapie","termoska","textil","ticho","tiskopis","titulek","tkadlec","tkanina","tlapka","tleskat","tlukot","tlupa","tmel","toaleta","topinka","topol","torzo","touha","toulec","tradice","traktor","tramp","trasa","traverza","trefit","trest","trezor","trhavina","trhlina","trochu","trojice","troska","trouba","trpce","trpitel","trpkost","trubec","truchlit","truhlice","trus","trvat","tudy","tuhnout","tuhost","tundra","turista","turnaj","tuzemsko","tvaroh","tvorba","tvrdost","tvrz","tygr","tykev","ubohost","uboze","ubrat","ubrousek","ubrus","ubytovna","ucho","uctivost","udivit","uhradit","ujednat","ujistit","ujmout","ukazatel","uklidnit","uklonit","ukotvit","ukrojit","ulice","ulita","ulovit","umyvadlo","unavit","uniforma","uniknout","upadnout","uplatnit","uplynout","upoutat","upravit","uran","urazit","usednout","usilovat","usmrtit","usnadnit","usnout","usoudit","ustlat","ustrnout","utahovat","utkat","utlumit","utonout","utopenec","utrousit","uvalit","uvolnit","uvozovka","uzdravit","uzel","uzenina","uzlina","uznat","vagon","valcha","valoun","vana","vandal","vanilka","varan","varhany","varovat","vcelku","vchod","vdova","vedro","vegetace","vejce","velbloud","veletrh","velitel","velmoc","velryba","venkov","veranda","verze","veselka","veskrze","vesnice","vespodu","vesta","veterina","veverka","vibrace","vichr","videohra","vidina","vidle","vila","vinice","viset","vitalita","vize","vizitka","vjezd","vklad","vkus","vlajka","vlak","vlasec","vlevo","vlhkost","vliv","vlnovka","vloupat","vnucovat","vnuk","voda","vodivost","vodoznak","vodstvo","vojensky","vojna","vojsko","volant","volba","volit","volno","voskovka","vozidlo","vozovna","vpravo","vrabec","vracet","vrah","vrata","vrba","vrcholek","vrhat","vrstva","vrtule","vsadit","vstoupit","vstup","vtip","vybavit","vybrat","vychovat","vydat","vydra","vyfotit","vyhledat","vyhnout","vyhodit","vyhradit","vyhubit","vyjasnit","vyjet","vyjmout","vyklopit","vykonat","vylekat","vymazat","vymezit","vymizet","vymyslet","vynechat","vynikat","vynutit","vypadat","vyplatit","vypravit","vypustit","vyrazit","vyrovnat","vyrvat","vyslovit","vysoko","vystavit","vysunout","vysypat","vytasit","vytesat","vytratit","vyvinout","vyvolat","vyvrhel","vyzdobit","vyznat","vzadu","vzbudit","vzchopit","vzdor","vzduch","vzdychat","vzestup","vzhledem","vzkaz","vzlykat","vznik","vzorek","vzpoura","vztah","vztek","xylofon","zabrat","zabydlet","zachovat","zadarmo","zadusit","zafoukat","zahltit","zahodit","zahrada","zahynout","zajatec","zajet","zajistit","zaklepat","zakoupit","zalepit","zamezit","zamotat","zamyslet","zanechat","zanikat","zaplatit","zapojit","zapsat","zarazit","zastavit","zasunout","zatajit","zatemnit","zatknout","zaujmout","zavalit","zavelet","zavinit","zavolat","zavrtat","zazvonit","zbavit","zbrusu","zbudovat","zbytek","zdaleka","zdarma","zdatnost","zdivo","zdobit","zdroj","zdvih","zdymadlo","zelenina","zeman","zemina","zeptat","zezadu","zezdola","zhatit","zhltnout","zhluboka","zhotovit","zhruba","zima","zimnice","zjemnit","zklamat","zkoumat","zkratka","zkumavka","zlato","zlehka","zloba","zlom","zlost","zlozvyk","zmapovat","zmar","zmatek","zmije","zmizet","zmocnit","zmodrat","zmrzlina","zmutovat","znak","znalost","znamenat","znovu","zobrazit","zotavit","zoubek","zoufale","zplodit","zpomalit","zprava","zprostit","zprudka","zprvu","zrada","zranit","zrcadlo","zrnitost","zrno","zrovna","zrychlit","zrzavost","zticha","ztratit","zubovina","zubr","zvednout","zvenku","zvesela","zvon","zvrat","zvukovod","zvyk"]')},2633:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EventPayload=void 0;const o=r(5213);t.EventPayload=class{filter;emitter;#w;constructor(e,t,r){this.#w=t,(0,o.defineProperties)(this,{emitter:e,filter:r})}async removeListener(){null!=this.#w&&await this.emitter.off(this.filter,this.#w)}}},2710:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ripemd160=t.RIPEMD160=void 0;const o=r(2355),n=r(791),a=new Uint8Array([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),i=Uint8Array.from({length:16},(e,t)=>t);let s=[i],c=[i.map(e=>(9*e+5)%16)];for(let e=0;e<4;e++)for(let t of[s,c])t.push(t[e].map(e=>a[e]));const l=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(e=>new Uint8Array(e)),u=s.map((e,t)=>e.map(e=>l[t][e])),f=c.map((e,t)=>e.map(e=>l[t][e])),d=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),h=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]),p=(e,t)=>e<<t|e>>>32-t;function g(e,t,r,o){return 0===e?t^r^o:1===e?t&r|~t&o:2===e?(t|~r)^o:3===e?t&o|r&~o:t^(r|~o)}const m=new Uint32Array(16);class b extends o.SHA2{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:e,h1:t,h2:r,h3:o,h4:n}=this;return[e,t,r,o,n]}set(e,t,r,o,n){this.h0=0|e,this.h1=0|t,this.h2=0|r,this.h3=0|o,this.h4=0|n}process(e,t){for(let r=0;r<16;r++,t+=4)m[r]=e.getUint32(t,!0);let r=0|this.h0,o=r,n=0|this.h1,a=n,i=0|this.h2,l=i,b=0|this.h3,y=b,v=0|this.h4,w=v;for(let e=0;e<5;e++){const t=4-e,E=d[e],B=h[e],x=s[e],A=c[e],k=u[e],S=f[e];for(let t=0;t<16;t++){const o=p(r+g(e,n,i,b)+m[x[t]]+E,k[t])+v|0;r=v,v=b,b=0|p(i,10),i=n,n=o}for(let e=0;e<16;e++){const r=p(o+g(t,a,l,y)+m[A[e]]+B,S[e])+w|0;o=w,w=y,y=0|p(l,10),l=a,a=r}}this.set(this.h1+i+y|0,this.h2+b+w|0,this.h3+v+o|0,this.h4+r+a|0,this.h0+n+l|0)}roundClean(){m.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}t.RIPEMD160=b,t.ripemd160=(0,n.wrapConstructor)(()=>new b)},2737:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TRON_BIP39_PATH_INDEX_0=t.TRON_BIP39_PATH_PREFIX=t.ADDRESS_PREFIX_REGEX=t.ADDRESS_PREFIX_BYTE=t.ADDRESS_PREFIX=t.ADDRESS_SIZE=void 0,t.ADDRESS_SIZE=34,t.ADDRESS_PREFIX="41",t.ADDRESS_PREFIX_BYTE=65,t.ADDRESS_PREFIX_REGEX=/^(41)/,t.TRON_BIP39_PATH_PREFIX="m/44'/195'",t.TRON_BIP39_PATH_INDEX_0=t.TRON_BIP39_PATH_PREFIX+"/0'/0/0"},2778:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o={};let n;t.wordlists=o,t._default=n;try{t._default=n=r(2607),o.czech=n}catch(e){}try{t._default=n=r(5898),o.chinese_simplified=n}catch(e){}try{t._default=n=r(81),o.chinese_traditional=n}catch(e){}try{t._default=n=r(5428),o.korean=n}catch(e){}try{t._default=n=r(5040),o.french=n}catch(e){}try{t._default=n=r(5576),o.italian=n}catch(e){}try{t._default=n=r(5376),o.spanish=n}catch(e){}try{t._default=n=r(7967),o.japanese=n,o.JA=n}catch(e){}try{t._default=n=r(7357),o.portuguese=n}catch(e){}try{t._default=n=r(7736),o.english=n,o.EN=n}catch(e){}},2783:function(e,t,r){"use strict";var o=r(9922).hp,n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Factory=void 0;const a=r(9980),i=r(502),s=r(5565),c=n(r(2121)),l=r(9741),u=r(190),f=r(8352),d=r(8241),h=r(4904);const p="ED";t.Factory=e=>{const t=(0,a.Factory)(e),r={deriveKeypair:(e,t)=>{const r=(0,i.derivePrivateKey)(e,t),o=(0,s.bytesToHex)((0,s.numberToBytesBE)(r,32));return{privateKey:"00"+o,publicKey:d.secp256k1.ProjectivePoint.fromPrivateKey(o).toHex(!0)}},deriveKeypairWithPrivateKey:e=>{const t=e.toUpperCase();return{privateKey:"00"+t,publicKey:d.secp256k1.ProjectivePoint.fromPrivateKey(t).toHex(!0)}},sign(e,t){const r=c.default.half(e);return d.secp256k1.sign(r,t,{lowS:!0,extraEntropy:void 0}).toDERHex(!0).toUpperCase()},verify(e,t,r){const o=c.default.half(e);return d.secp256k1.verify(t,o,r)}},n={deriveKeypair:e=>{const t=c.default.half(e),r=(0,s.bytesToHex)(t),o=f.ed25519.getPublicKey(r);return{privateKey:p+r,publicKey:p+(0,s.bytesToHex)(o)}},deriveKeypairWithPrivateKey:e=>{const t=e.toUpperCase(),r=f.ed25519.getPublicKey(t);return{privateKey:p+t,publicKey:p+(0,s.bytesToHex)(r)}},sign(e,t){const r=f.ed25519.sign(e,t);return(0,s.bytesToHex)(r).toUpperCase()},verify:(e,t,r)=>f.ed25519.verify(e,o.from(t,"hex"),r)},g=(e,o)=>{if(e.startsWith("s")){const o=t.decodeSeed(e);return"secp256k1"===o.type?r.deriveKeypair(o.bytes):n.deriveKeypair(o.bytes)}if(64===e.length)return"ed25519"===o?n.deriveKeypairWithPrivateKey(e):r.deriveKeypairWithPrivateKey(e);if(66===e.length)return e.startsWith(p)?n.deriveKeypairWithPrivateKey(e.substring(2)):r.deriveKeypairWithPrivateKey(e.substring(2));throw new Error("deriving keypair requires valid private key")},m=e=>t.encodeAccountID(o.from((e=>{const t=l.sha256.create().update(e).digest();return u.ripemd160.create().update(t).digest()})(o.from((0,s.hexToBytes)(e)))));return{deriveKeyPair:g,isValidSecret:e=>{try{g(e)}catch(e){return!1}return!0},isValidAddress:t.isValidAddress,deriveAddress:m,generate:e=>{!function(e,t){if(!e)throw new Error(t||"Assertion failed")}(!e.entropy||e.entropy.length>=16,"entropy too short");const r=e.entropy?e.entropy.slice(0,16):(0,h.randomBytes)(16),o="ed25519"===e.algorithm?"ed25519":"secp256k1",n=t.encodeSeed(r,o),a=g(n);return{secret:n,address:m(a.publicKey)}},fromSecret:(e,t)=>{const r=g(e,t);return{secret:e,address:m(r.publicKey)}},addressCodec:t,hash:c.default.half,sign:(e,t)=>{const o=g(t);return t.startsWith(p)?n.sign(e,o.privateKey.substring(2)):r.sign(e,o.privateKey.substring(2))},verify:(e,t,o)=>66===o.length&&o.startsWith(p)?n.verify(e,t,o.substring(2)):r.verify(e,t,o)}}},2857:function(e,t,r){"use strict";var o=r(9922).hp,n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.encryptWallet=t.encryptContact=t.encrypt=t.decrypt=t.isEmptyPlainObject=void 0;const a=r(4790),i=r(3497),s=r(4904),c=r(8814),l=r(3554),u=n(r(7043));t.isEmptyPlainObject=e=>!(0,u.default)(e)||0===Object.keys(e).length;t.decrypt=async(e,r)=>{if((0,t.isEmptyPlainObject)(r)||(0,t.isEmptyPlainObject)(r.crypto)||(0,t.isEmptyPlainObject)(r.crypto.kdfparams))throw new Error(l.KEYSTORE_IS_INVALID);const n=o.from(r.crypto.iv,"hex"),s=r.crypto.kdfparams,u=(0,c.scrypt)(o.from(e),o.from(s.salt,"hex"),{N:s.n,r:s.r,p:s.p,dkLen:s.dklen}),f=o.from(r.ciphertext,"hex"),d=a.keccak256.create().update(o.concat([u.slice(16,32),f])).digest();if(o.from(d).toString("hex")!==r.mac)throw new Error(l.PASSWORD_IS_WRONG);const h=await(0,i.decrypt)(f,u.slice(0,16),n,"aes-128-ctr");return o.from(h)};const f=async(e,t,r)=>{const n=r.iv||o.from((0,s.randomBytes)(16)).toString("hex"),l={dklen:r.dklen||32,n:r.n||4096,p:r.p||1,r:r.r||8,salt:r.salt||o.from((0,s.randomBytes)(32)).toString("hex")},u=(0,c.scrypt)(o.from(e),o.from(l.salt,"hex"),{N:l.n,r:l.r,p:l.p,dkLen:l.dklen}),f=await(0,i.encrypt)(o.from(t),u.slice(0,16),o.from(n,"hex"),"aes-128-ctr"),d=a.keccak256.create().update(o.concat([u.slice(16,32),f])).digest();return{ciphertext:o.from(f).toString("hex"),crypto:{cipher:r.cipher||"aes-128-ctr",iv:n,kdf:"scrypt",kdfparams:l},mac:o.from(d).toString("hex")}};t.encrypt=f;t.encryptContact=async(e,t,r={})=>await f(e,JSON.stringify(t),r);t.encryptWallet=async(e,t,r={})=>{const o=await f(e,t.secret,r);return o.type=t.type||"swt",o.address=t.address,o.default="boolean"!=typeof t.default||t.default,o.alias=t.alias||"",o}},2899:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertBytes=t.assertBool=t.utf8ToBytes=t.toHex=t.createView=t.concatBytes=t.bytesToHex=void 0,t.bytesToUtf8=function(e){if(!(e instanceof Uint8Array))throw new TypeError("bytesToUtf8 expected Uint8Array, got "+typeof e);return(new TextDecoder).decode(e)},t.hexToBytes=function(e){const t=e.startsWith("0x")?e.substring(2):e;return(0,a.hexToBytes)(t)},t.equalsBytes=function(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0},t.wrapHash=function(e){return t=>((0,n.abytes)(t),e(t))};const o=r(5565);Object.defineProperty(t,"assertBool",{enumerable:!0,get:function(){return o.abool}});const n=r(9998);Object.defineProperty(t,"assertBytes",{enumerable:!0,get:function(){return n.abytes}});const a=r(4904);var i=r(4904);Object.defineProperty(t,"bytesToHex",{enumerable:!0,get:function(){return i.bytesToHex}}),Object.defineProperty(t,"concatBytes",{enumerable:!0,get:function(){return i.concatBytes}}),Object.defineProperty(t,"createView",{enumerable:!0,get:function(){return i.createView}}),Object.defineProperty(t,"toHex",{enumerable:!0,get:function(){return i.bytesToHex}}),Object.defineProperty(t,"utf8ToBytes",{enumerable:!0,get:function(){return i.utf8ToBytes}})},2979:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha512_256=t.SHA512_256=t.sha512_224=t.SHA512_224=t.sha384=t.SHA384=t.sha512=t.SHA512=void 0;const o=r(9741);t.SHA512=o.SHA512,t.sha512=o.sha512,t.SHA384=o.SHA384,t.sha384=o.sha384,t.SHA512_224=o.SHA512_224,t.sha512_224=o.sha512_224,t.SHA512_256=o.SHA512_256,t.sha512_256=o.sha512_256},3016:(e,t,r)=>{"use strict";var o=r(9922).hp;Object.defineProperty(t,"__esModule",{value:!0}),t.PrivateKey=void 0;const n=r(7448),a=r(7152);class i{constructor(e,t){this.key=e,this.ec=t}static fromString(e,t){const r=(0,n.stringToPrivateKey)(e);return t||(t=(0,a.constructElliptic)(r.type)),new i(r,t)}toPoint(){return this.ec.ProjectivePoint.fromPrivateKey(this.key.data)}getType(){return this.key.type}getPublicKey(){const e=this.toPoint();return a.PublicKey.fromPoint(e,this.getType(),this.ec)}sign(e,t=!0,r="utf8"){t&&("string"==typeof e&&(e=o.from(e,r)),e=this.ec.CURVE.hash(e));let i,s=0;const c=e=>!(128&e[1]||0===e[1]&&!(128&e[2])||128&e[33]||0===e[33]&&!(128&e[34])),l=t=>{const r=this.ec.sign(e,this.key.data,t);return a.Signature.fromSignature(r,this.getType(),this.ec)};if(this.key.type===n.KeyType.k1)do{i=l({lowS:!0,extraEntropy:o.from([++s])})}while(!c(i.toBinary()));else i=l({lowS:!0});return i}isValid(){try{return this.toPoint(),!0}catch(e){return!1}}}t.PrivateKey=i},3190:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateBasic=t.wNAF=void 0;
|
|
14
18
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
15
|
-
const a=r(831),o=r(6630),n=r(5565),i=r(5565);const{bytesToNumberBE:s,hexToBytes:c}=n;t.DER={Err:class extends Error{constructor(e=""){super(e)}},_parseInt(e){const{Err:r}=t.DER;if(e.length<2||2!==e[0])throw new r("Invalid signature integer tag");const a=e[1],o=e.subarray(2,a+2);if(!a||o.length!==a)throw new r("Invalid signature integer: wrong length");if(128&o[0])throw new r("Invalid signature integer: negative");if(0===o[0]&&!(128&o[1]))throw new r("Invalid signature integer: unnecessary leading zero");return{d:s(o),l:e.subarray(a+2)}},toSig(e){const{Err:r}=t.DER,a="string"==typeof e?c(e):e;n.abytes(a);let o=a.length;if(o<2||48!=a[0])throw new r("Invalid signature tag");if(a[1]!==o-2)throw new r("Invalid signature: incorrect length");const{d:i,l:s}=t.DER._parseInt(a.subarray(2)),{d:l,l:u}=t.DER._parseInt(s);if(u.length)throw new r("Invalid signature: left bytes after parsing");return{r:i,s:l}},hexFromSig(e){const t=e=>8&Number.parseInt(e[0],16)?"00"+e:e,r=e=>{const t=e.toString(16);return 1&t.length?`0${t}`:t},a=t(r(e.s)),o=t(r(e.r)),n=a.length/2,i=o.length/2,s=r(n),c=r(i);return`30${r(i+n+4)}02${c}${o}02${s}${a}`}};const l=BigInt(0),u=BigInt(1),d=BigInt(2),f=BigInt(3),h=BigInt(4);function p(e){const t=function(e){const t=(0,a.validateBasic)(e);n.validateObject(t,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:r,Fp:o,a:i}=t;if(r){if(!o.eql(i,o.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof r||"bigint"!=typeof r.beta||"function"!=typeof r.splitScalar)throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...t})}(e),{Fp:r}=t,s=t.toBytes||((e,t,a)=>{const o=t.toAffine();return n.concatBytes(Uint8Array.from([4]),r.toBytes(o.x),r.toBytes(o.y))}),c=t.fromBytes||(e=>{const t=e.subarray(1);return{x:r.fromBytes(t.subarray(0,r.BYTES)),y:r.fromBytes(t.subarray(r.BYTES,2*r.BYTES))}});function d(e){const{a,b:o}=t,n=r.sqr(e),i=r.mul(n,e);return r.add(r.add(i,r.mul(e,a)),o)}if(!r.eql(r.sqr(t.Gy),d(t.Gx)))throw new Error("bad generator point: equation left != right");function h(e){return"bigint"==typeof e&&l<e&&e<t.n}function p(e){if(!h(e))throw new Error("Expected valid bigint: 0 < bigint < curve.n")}function g(e){const{allowedPrivateKeyLengths:r,nByteLength:a,wrapPrivateKey:s,n:c}=t;if(r&&"bigint"!=typeof e){if(n.isBytes(e)&&(e=n.bytesToHex(e)),"string"!=typeof e||!r.includes(e.length))throw new Error("Invalid key");e=e.padStart(2*a,"0")}let l;try{l="bigint"==typeof e?e:n.bytesToNumberBE((0,i.ensureBytes)("private key",e,a))}catch(t){throw new Error(`private key must be ${a} bytes, hex or bigint, not ${typeof e}`)}return s&&(l=o.mod(l,c)),p(l),l}const m=new Map;function b(e){if(!(e instanceof y))throw new Error("ProjectivePoint expected")}class y{constructor(e,t,a){if(this.px=e,this.py=t,this.pz=a,null==e||!r.isValid(e))throw new Error("x required");if(null==t||!r.isValid(t))throw new Error("y required");if(null==a||!r.isValid(a))throw new Error("z required")}static fromAffine(e){const{x:t,y:a}=e||{};if(!e||!r.isValid(t)||!r.isValid(a))throw new Error("invalid affine point");if(e instanceof y)throw new Error("projective point not allowed");const o=e=>r.eql(e,r.ZERO);return o(t)&&o(a)?y.ZERO:new y(t,a,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(e){const t=r.invertBatch(e.map((e=>e.pz)));return e.map(((e,r)=>e.toAffine(t[r]))).map(y.fromAffine)}static fromHex(e){const t=y.fromAffine(c((0,i.ensureBytes)("pointHex",e)));return t.assertValidity(),t}static fromPrivateKey(e){return y.BASE.multiply(g(e))}_setWindowSize(e){this._WINDOW_SIZE=e,m.delete(this)}assertValidity(){if(this.is0()){if(t.allowInfinityPoint&&!r.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:e,y:a}=this.toAffine();if(!r.isValid(e)||!r.isValid(a))throw new Error("bad point: x or y not FE");const o=r.sqr(a),n=d(e);if(!r.eql(o,n))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:e}=this.toAffine();if(r.isOdd)return!r.isOdd(e);throw new Error("Field doesn't support isOdd")}equals(e){b(e);const{px:t,py:a,pz:o}=this,{px:n,py:i,pz:s}=e,c=r.eql(r.mul(t,s),r.mul(n,o)),l=r.eql(r.mul(a,s),r.mul(i,o));return c&&l}negate(){return new y(this.px,r.neg(this.py),this.pz)}double(){const{a:e,b:a}=t,o=r.mul(a,f),{px:n,py:i,pz:s}=this;let c=r.ZERO,l=r.ZERO,u=r.ZERO,d=r.mul(n,n),h=r.mul(i,i),p=r.mul(s,s),g=r.mul(n,i);return g=r.add(g,g),u=r.mul(n,s),u=r.add(u,u),c=r.mul(e,u),l=r.mul(o,p),l=r.add(c,l),c=r.sub(h,l),l=r.add(h,l),l=r.mul(c,l),c=r.mul(g,c),u=r.mul(o,u),p=r.mul(e,p),g=r.sub(d,p),g=r.mul(e,g),g=r.add(g,u),u=r.add(d,d),d=r.add(u,d),d=r.add(d,p),d=r.mul(d,g),l=r.add(l,d),p=r.mul(i,s),p=r.add(p,p),d=r.mul(p,g),c=r.sub(c,d),u=r.mul(p,h),u=r.add(u,u),u=r.add(u,u),new y(c,l,u)}add(e){b(e);const{px:a,py:o,pz:n}=this,{px:i,py:s,pz:c}=e;let l=r.ZERO,u=r.ZERO,d=r.ZERO;const h=t.a,p=r.mul(t.b,f);let g=r.mul(a,i),m=r.mul(o,s),v=r.mul(n,c),w=r.add(a,o),k=r.add(i,s);w=r.mul(w,k),k=r.add(g,m),w=r.sub(w,k),k=r.add(a,n);let E=r.add(i,c);return k=r.mul(k,E),E=r.add(g,v),k=r.sub(k,E),E=r.add(o,n),l=r.add(s,c),E=r.mul(E,l),l=r.add(m,v),E=r.sub(E,l),d=r.mul(h,k),l=r.mul(p,v),d=r.add(l,d),l=r.sub(m,d),d=r.add(m,d),u=r.mul(l,d),m=r.add(g,g),m=r.add(m,g),v=r.mul(h,v),k=r.mul(p,k),m=r.add(m,v),v=r.sub(g,v),v=r.mul(h,v),k=r.add(k,v),g=r.mul(m,k),u=r.add(u,g),g=r.mul(E,k),l=r.mul(w,l),l=r.sub(l,g),g=r.mul(w,m),d=r.mul(E,d),d=r.add(d,g),new y(l,u,d)}subtract(e){return this.add(e.negate())}is0(){return this.equals(y.ZERO)}wNAF(e){return w.wNAFCached(this,m,e,(e=>{const t=r.invertBatch(e.map((e=>e.pz)));return e.map(((e,r)=>e.toAffine(t[r]))).map(y.fromAffine)}))}multiplyUnsafe(e){const a=y.ZERO;if(e===l)return a;if(p(e),e===u)return this;const{endo:o}=t;if(!o)return w.unsafeLadder(this,e);let{k1neg:n,k1:i,k2neg:s,k2:c}=o.splitScalar(e),d=a,f=a,h=this;for(;i>l||c>l;)i&u&&(d=d.add(h)),c&u&&(f=f.add(h)),h=h.double(),i>>=u,c>>=u;return n&&(d=d.negate()),s&&(f=f.negate()),f=new y(r.mul(f.px,o.beta),f.py,f.pz),d.add(f)}multiply(e){p(e);let a,o,n=e;const{endo:i}=t;if(i){const{k1neg:e,k1:t,k2neg:s,k2:c}=i.splitScalar(n);let{p:l,f:u}=this.wNAF(t),{p:d,f}=this.wNAF(c);l=w.constTimeNegate(e,l),d=w.constTimeNegate(s,d),d=new y(r.mul(d.px,i.beta),d.py,d.pz),a=l.add(d),o=u.add(f)}else{const{p:e,f:t}=this.wNAF(n);a=e,o=t}return y.normalizeZ([a,o])[0]}multiplyAndAddUnsafe(e,t,r){const a=y.BASE,o=(e,t)=>t!==l&&t!==u&&e.equals(a)?e.multiply(t):e.multiplyUnsafe(t),n=o(this,t).add(o(e,r));return n.is0()?void 0:n}toAffine(e){const{px:t,py:a,pz:o}=this,n=this.is0();null==e&&(e=n?r.ONE:r.inv(o));const i=r.mul(t,e),s=r.mul(a,e),c=r.mul(o,e);if(n)return{x:r.ZERO,y:r.ZERO};if(!r.eql(c,r.ONE))throw new Error("invZ was invalid");return{x:i,y:s}}isTorsionFree(){const{h:e,isTorsionFree:r}=t;if(e===u)return!0;if(r)return r(y,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:e,clearCofactor:r}=t;return e===u?this:r?r(y,this):this.multiplyUnsafe(t.h)}toRawBytes(e=!0){return this.assertValidity(),s(y,this,e)}toHex(e=!0){return n.bytesToHex(this.toRawBytes(e))}}y.BASE=new y(t.Gx,t.Gy,r.ONE),y.ZERO=new y(r.ZERO,r.ONE,r.ZERO);const v=t.nBitLength,w=(0,a.wNAF)(y,t.endo?Math.ceil(v/2):v);return{CURVE:t,ProjectivePoint:y,normPrivateKeyToScalar:g,weierstrassEquation:d,isWithinCurveOrder:h}}function g(e,t){const r=e.ORDER;let a=l;for(let e=r-u;e%d===l;e/=d)a+=u;const o=a,n=d<<o-u-u,i=n*d,s=(r-u)/i,c=(s-u)/d,p=i-u,g=n,m=e.pow(t,s),b=e.pow(t,(s+u)/d);let y=(t,r)=>{let a=m,n=e.pow(r,p),i=e.sqr(n);i=e.mul(i,r);let s=e.mul(t,i);s=e.pow(s,c),s=e.mul(s,n),n=e.mul(s,r),i=e.mul(s,t);let l=e.mul(i,n);s=e.pow(l,g);let f=e.eql(s,e.ONE);n=e.mul(i,b),s=e.mul(l,a),i=e.cmov(n,i,f),l=e.cmov(s,l,f);for(let t=o;t>u;t--){let r=t-d;r=d<<r-u;let o=e.pow(l,r);const s=e.eql(o,e.ONE);n=e.mul(i,a),a=e.mul(a,a),o=e.mul(l,a),i=e.cmov(n,i,s),l=e.cmov(o,l,s)}return{isValid:f,value:i}};if(e.ORDER%h===f){const r=(e.ORDER-f)/h,a=e.sqrt(e.neg(t));y=(t,o)=>{let n=e.sqr(o);const i=e.mul(t,o);n=e.mul(n,i);let s=e.pow(n,r);s=e.mul(s,i);const c=e.mul(s,a),l=e.mul(e.sqr(s),o),u=e.eql(l,t);return{isValid:u,value:e.cmov(c,s,u)}}}return y}},8352:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hash_to_ristretto255=t.hashToRistretto255=t.RistrettoPoint=t.encodeToCurve=t.hashToCurve=t.edwardsToMontgomery=t.x25519=t.ed25519ph=t.ed25519ctx=t.ed25519=t.ED25519_TORSION_SUBGROUP=void 0,t.edwardsToMontgomeryPub=x,t.edwardsToMontgomeryPriv=function(e){const t=E.hash(e.subarray(0,32));return E.adjustScalarBytes(t).subarray(0,32)};
|
|
19
|
+
const o=r(247),n=r(8460),a=BigInt(0),i=BigInt(1);t.wNAF=function(e,t){const r=(e,t)=>{const r=t.negate();return e?r:t},o=e=>({windows:Math.ceil(t/e)+1,windowSize:2**(e-1)});return{constTimeNegate:r,unsafeLadder(t,r){let o=e.ZERO,n=t;for(;r>a;)r&i&&(o=o.add(n)),n=n.double(),r>>=i;return o},precomputeWindow(e,t){const{windows:r,windowSize:n}=o(t),a=[];let i=e,s=i;for(let e=0;e<r;e++){s=i,a.push(s);for(let e=1;e<n;e++)s=s.add(i),a.push(s);i=s.double()}return a},wNAF(t,n,a){const{windows:s,windowSize:c}=o(t);let l=e.ZERO,u=e.BASE;const f=BigInt(2**t-1),d=2**t,h=BigInt(t);for(let e=0;e<s;e++){const t=e*c;let o=Number(a&f);a>>=h,o>c&&(o-=d,a+=i);const s=t,p=t+Math.abs(o)-1,g=e%2!=0,m=o<0;0===o?u=u.add(r(g,n[s])):l=l.add(r(m,n[p]))}return{p:l,f:u}},wNAFCached(e,t,r,o){const n=e._WINDOW_SIZE||1;let a=t.get(e);return a||(a=this.precomputeWindow(e,n),1!==n&&t.set(e,o(a))),this.wNAF(n,a,r)}}},t.validateBasic=function(e){return(0,o.validateField)(e.Fp),(0,n.validateObject)(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,o.nLength)(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}},3194:(e,t,r)=>{"use strict";var o=r(9922).hp;Object.defineProperty(t,"__esModule",{value:!0}),t.Signature=void 0;const n=r(7448),a=r(7152),i=r(9462);class s{constructor(e,t){this.signature=e,this.ec=t}static fromString(e,t){const r=(0,n.stringToSignature)(e);return t||(t=(0,a.constructElliptic)(r.type)),new s(r,t)}static fromSignature(e,t,r){const o=(0,i.toBEArray)(e.r,32),c=(0,i.toBEArray)(e.s,32);let l;t===n.KeyType.k1||t===n.KeyType.r1?(l=e.recovery+27,e.recovery<=3&&(l+=4)):t===n.KeyType.wa&&(l=e.recovery);const u=new Uint8Array([l].concat(o,c));return r||(r=(0,a.constructElliptic)(t)),new s({type:t,data:u},r)}toRecoveredSignature(){const e=(0,i.toBigInt)(this.signature.data.slice(1,33)),t=(0,i.toBigInt)(this.signature.data.slice(33,65));let r;this.signature.type===n.KeyType.k1||this.signature.type===n.KeyType.r1?(r=this.signature.data[0]-27,r>3&&(r-=4)):this.signature.type===n.KeyType.wa&&(r=this.signature.data[0]);const o=3&r;return new this.ec.Signature(BigInt(e),BigInt(t)).addRecoveryBit(o)}toString(){return(0,n.signatureToString)(this.signature)}toBinary(){return this.signature.data}getType(){return this.signature.type}recover(e,t=!0,r="utf8"){t&&("string"==typeof e&&(e=o.from(e,r)),e=this.ec.CURVE.hash(e));const n=this.toRecoveredSignature().recoverPublicKey(e),i=this.ec.ProjectivePoint.fromHex(n.toHex());return a.PublicKey.fromPoint(i,this.getType(),this.ec)}}t.Signature=s},3279:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scryptAsync=t.scrypt=void 0;const o=r(8629),n=r(1103),a=r(4973),i=r(791),s=(e,t)=>e<<t|e>>>32-t;function c(e,t,r,o,n,a){let i=e[t++]^r[o++],c=e[t++]^r[o++],l=e[t++]^r[o++],u=e[t++]^r[o++],f=e[t++]^r[o++],d=e[t++]^r[o++],h=e[t++]^r[o++],p=e[t++]^r[o++],g=e[t++]^r[o++],m=e[t++]^r[o++],b=e[t++]^r[o++],y=e[t++]^r[o++],v=e[t++]^r[o++],w=e[t++]^r[o++],E=e[t++]^r[o++],B=e[t++]^r[o++],x=i,A=c,k=l,S=u,C=f,T=d,P=h,O=p,I=g,z=m,L=b,R=y,N=v,_=w,j=E,U=B;for(let e=0;e<8;e+=2)C^=s(x+N|0,7),I^=s(C+x|0,9),N^=s(I+C|0,13),x^=s(N+I|0,18),z^=s(T+A|0,7),_^=s(z+T|0,9),A^=s(_+z|0,13),T^=s(A+_|0,18),j^=s(L+P|0,7),k^=s(j+L|0,9),P^=s(k+j|0,13),L^=s(P+k|0,18),S^=s(U+R|0,7),O^=s(S+U|0,9),R^=s(O+S|0,13),U^=s(R+O|0,18),A^=s(x+S|0,7),k^=s(A+x|0,9),S^=s(k+A|0,13),x^=s(S+k|0,18),P^=s(T+C|0,7),O^=s(P+T|0,9),C^=s(O+P|0,13),T^=s(C+O|0,18),R^=s(L+z|0,7),I^=s(R+L|0,9),z^=s(I+R|0,13),L^=s(z+I|0,18),N^=s(U+j|0,7),_^=s(N+U|0,9),j^=s(_+N|0,13),U^=s(j+_|0,18);n[a++]=i+x|0,n[a++]=c+A|0,n[a++]=l+k|0,n[a++]=u+S|0,n[a++]=f+C|0,n[a++]=d+T|0,n[a++]=h+P|0,n[a++]=p+O|0,n[a++]=g+I|0,n[a++]=m+z|0,n[a++]=b+L|0,n[a++]=y+R|0,n[a++]=v+N|0,n[a++]=w+_|0,n[a++]=E+j|0,n[a++]=B+U|0}function l(e,t,r,o,n){let a=o+0,i=o+16*n;for(let o=0;o<16;o++)r[i+o]=e[t+16*(2*n-1)+o];for(let o=0;o<n;o++,a+=16,t+=16)c(r,i,e,t,r,a),o>0&&(i+=16),c(r,a,e,t+=16,r,i)}function u(e,t,r){const s=(0,i.checkOpts)({dkLen:32,asyncTick:10,maxmem:1073742848},r),{N:c,r:l,p:u,dkLen:f,asyncTick:d,maxmem:h,onProgress:p}=s;if((0,o.number)(c),(0,o.number)(l),(0,o.number)(u),(0,o.number)(f),(0,o.number)(d),(0,o.number)(h),void 0!==p&&"function"!=typeof p)throw new Error("progressCb should be function");const g=128*l,m=g/4;if(c<=1||c&c-1||c>=2**(g/8)||c>2**32)throw new Error("Scrypt: N must be larger than 1, a power of 2, less than 2^(128 * r / 8) and less than 2^32");if(u<0||u>137438953440/g)throw new Error("Scrypt: p must be a positive integer less than or equal to ((2^32 - 1) * 32) / (128 * r)");if(f<0||f>137438953440)throw new Error("Scrypt: dkLen should be positive integer less than or equal to (2^32 - 1) * 32");const b=g*(c+u);if(b>h)throw new Error(`Scrypt: parameters too large, ${b} (128 * r * (N + p)) > ${h} (maxmem)`);const y=(0,a.pbkdf2)(n.sha256,e,t,{c:1,dkLen:g*u}),v=(0,i.u32)(y),w=(0,i.u32)(new Uint8Array(g*c)),E=(0,i.u32)(new Uint8Array(g));let B=()=>{};if(p){const e=2*c*u,t=Math.max(Math.floor(e/1e4),1);let r=0;B=()=>{r++,!p||r%t&&r!==e||p(r/e)}}return{N:c,r:l,p:u,dkLen:f,blockSize32:m,V:w,B32:v,B:y,tmp:E,blockMixCb:B,asyncTick:d}}function f(e,t,r,o,i){const s=(0,a.pbkdf2)(n.sha256,e,r,{c:1,dkLen:t});return r.fill(0),o.fill(0),i.fill(0),s}t.scrypt=function(e,t,r){const{N:o,r:n,p:a,dkLen:i,blockSize32:s,V:c,B32:d,B:h,tmp:p,blockMixCb:g}=u(e,t,r);for(let e=0;e<a;e++){const t=s*e;for(let e=0;e<s;e++)c[e]=d[t+e];for(let e=0,t=0;e<o-1;e++)l(c,t,c,t+=s,n),g();l(c,(o-1)*s,d,t,n),g();for(let e=0;e<o;e++){const e=d[t+s-16]%o;for(let r=0;r<s;r++)p[r]=d[t+r]^c[e*s+r];l(p,0,d,t,n),g()}}return f(e,i,h,c,p)},t.scryptAsync=async function(e,t,r){const{N:o,r:n,p:a,dkLen:s,blockSize32:c,V:d,B32:h,B:p,tmp:g,blockMixCb:m,asyncTick:b}=u(e,t,r);for(let e=0;e<a;e++){const t=c*e;for(let e=0;e<c;e++)d[e]=h[t+e];let r=0;await(0,i.asyncLoop)(o-1,b,()=>{l(d,r,d,r+=c,n),m()}),l(d,(o-1)*c,h,t,n),m(),await(0,i.asyncLoop)(o,b,()=>{const e=h[t+c-16]%o;for(let r=0;r<c;r++)g[r]=h[t+r]^d[e*c+r];l(g,0,h,t,n),m()})}return f(e,s,p,d,g)}},3374:function(e,t,r){"use strict";var o,n=r(9922).hp,a=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,n)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(o=function(e){return o=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},o(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=o(e),n=0;n<r.length;n++)"default"!==r[n]&&a(t,e,r[n]);return i(t,e),t}),c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const l=c(r(4046)),u=r(9741),f=s(r(7743)),d=r(2857),h=c(r(984)),p=r(2783),g=r(3554),m=r(5005),b=r(2857),y=r(1613);h.default.prefix="jingchang_";class v{constructor(e,t=!1,r=!0){this._multiple=t,this._jingchangWallet=e,this._samePassword=r}static isValid(e){try{"string"==typeof e&&(e=JSON.parse(e));const t=!(0,d.isEmptyPlainObject)(e)&&Array.isArray(e.wallets)&&e.wallets.length>0;return Boolean(t&&e.contact&&e.id&&e.version)}catch(e){return!1}}static async generate(e,t,r){const o={};if(void 0===t){const e=m.jtWallet.createWallet();t=e.secret,o.address=e.address}else{if(!m.jtWallet.isValidSecret(t))throw new Error(g.SECRET_IS_INVALID);o.address=m.jtWallet.getAddress(t)}o.secret=t,o.type="swt",o.default=!0,o.alias=r||"swt wallet";const n={},a=await(0,b.encryptWallet)(e,o);return n.version=v.version,n.id=v._walletID,n.contact={},n.wallets=[],n.wallets.push(a),n}static get(){const e=h.default.get(v._walletID);return v.isValid(e)?e:null}static clear(){h.default.set(v._walletID,{})}static save(e){h.default.set(v._walletID,e)}static deriveKeyPair(e,t="swt"){const r=y.Alphabet[null==t?void 0:t.toUpperCase()],o=(0,p.Factory)(r).deriveKeyPair(e);return{privateKey:o.privateKey.substring(2),publicKey:o.publicKey}}static async encryptWithPublicKey(e,t){const r=await f.encrypt(n.from(t,"hex"),n.from(e));return{ciphertext:n.from(r.ciphertext).toString("hex"),ephemPublicKey:n.from(r.ephemPublicKey).toString("hex"),iv:n.from(r.iv).toString("hex"),mac:n.from(r.mac).toString("hex")}}static async decryptWithPrivateKey(e,t){const r={ciphertext:n.from(e.ciphertext,"hex"),ephemPublicKey:n.from(e.ephemPublicKey,"hex"),iv:n.from(e.iv,"hex"),mac:n.from(e.mac,"hex")},o=await f.decrypt(n.from(t,"hex"),r);return n.from(o).toString()}static getWallets(e){let t;return t=v.isValid(e)?e.wallets:[],t}setJingchangWallet(e){this._jingchangWallet=e}async getAddress(e="swt"){return(await this.getWalletWithType(e)).address}async getWalletWithType(e="swt"){return this.findWallet(t=>t.type.toLowerCase()===e.toLowerCase()&&t.default)}async getWalletWithAddress(e){return await this.findWallet(t=>t.address===e)}hasDefault(e="swt"){try{const t=this.findWallet(t=>t.type===e&&t.default);return!(0,d.isEmptyPlainObject)(t)}catch(e){return!1}}async getSecretWithType(e,t="swt"){const r=await this.findWallet(e=>e.type===t&&e.default);return(await(0,b.decrypt)(e,r)).toString()}async getSecretWithAddress(e,t){const r=await this.findWallet(e=>e.address===t);return(await(0,b.decrypt)(e,r)).toString()}async changeWholePassword(e,t){if(!this._samePassword)throw new Error("the property of _samePassword is false, so please don't call this function!");const r=(0,l.default)(this._jingchangWallet),o=v.getWallets(r),n=[];for(const r of o){const o=r.address,a=await this.getSecretWithAddress(e,o),i={address:r.address,alias:r.alias,default:r.default,secret:a,type:r.type},s=await this.getEncryptData(t,i);n.push(s)}return r.wallets=n,this.setJingchangWallet(r),r}async changePasswordWithAddress(e,t,r){if(this._samePassword)throw new Error("the property of _samePassword is true, so please don't call this function!");const o=this.findWallet(t=>t.address===e),n=await this.getSecretWithAddress(t,e),a={address:o.address,alias:o.alias,default:o.default,secret:n,type:o.type},i=await this.getEncryptData(r,a);return o.ciphertext=i.ciphertext,o.crypto=i.crypto,o.mac=i.mac,this._jingchangWallet}async replaceKeystore(e,t,r){const o=r(e),n=this.findWallet(e=>e.address===o),a={address:n.address,alias:n.alias,default:n.default,secret:e,type:n.type},i=await this.getEncryptData(t,a);return n.ciphertext=i.ciphertext,n.crypto=i.crypto,n.mac=i.mac,this._jingchangWallet}async removeWalletWithType(e="swt"){const t=await this.getAddress(e);return await this.removeWalletWithAddress(t)}async removeWalletWithAddress(e){const t=(0,l.default)(this._jingchangWallet),r=v.getWallets(t),o=this.findWallet(t=>t.address===e),n=r.findIndex(e=>e.address===o.address);r.splice(n,1);const a=r.find(e=>e.type===o.type);return a&&(a.default=!0),this.setJingchangWallet(t),t}async setDefaultWallet(e){const t=await this.getWalletWithAddress(e);if(t.default)return this._jingchangWallet;return(await this.getWalletWithType(t.type)).default=!1,t.default=!0,this._jingchangWallet}async importSecret(e,t,r,o,n){this._samePassword&&await this.getSecretWithType(t);const a=o(e);if(!a)throw new Error(g.SECRET_IS_INVALID);const i=v.getWallets(this._jingchangWallet).find(e=>e.address===a&&e.type===r);if(i)throw new Error(g.ADDRESS_IS_EXISTENT);const s={address:a,alias:n||`${r} wallet`,secret:e,type:r};return await this.saveWallet(t,s)}findWallet(e){const t=this._jingchangWallet;if(!v.isValid(t))throw new Error(g.KEYSTORE_IS_INVALID);const{wallets:r}=t,o=r.find(e);if((0,d.isEmptyPlainObject)(o))throw new Error(g.WALLET_IS_EMPTY);return o}async getEncryptData(e,t){return await(0,b.encryptWallet)(e,t,{})}async saveWallet(e,t){t.default=!this._multiple||!this.hasDefault(t.type);const r=await this.getEncryptData(e,t),o=(0,l.default)(this._jingchangWallet),n=o.wallets,a=n.findIndex(e=>e.type.toLowerCase()===t.type.toLowerCase());return this._multiple||a>=0&&n.splice(a,1),n.push(r),this.setJingchangWallet(o),o}}v.version="1.0",v._name="wallets",v._walletID=n.from(u.sha256.create().update(v._name.toLowerCase()).digest()).toString("hex"),t.default=v},3451:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shake256=t.shake128=t.keccak_512=t.keccak_384=t.keccak_256=t.keccak_224=t.sha3_512=t.sha3_384=t.sha3_256=t.sha3_224=t.Keccak=t.keccakP=void 0;const o=r(8629),n=r(4062),a=r(791),[i,s,c]=[[],[],[]],l=BigInt(0),u=BigInt(1),f=BigInt(2),d=BigInt(7),h=BigInt(256),p=BigInt(113);for(let e=0,t=u,r=1,o=0;e<24;e++){[r,o]=[o,(2*r+3*o)%5],i.push(2*(5*o+r)),s.push((e+1)*(e+2)/2%64);let n=l;for(let e=0;e<7;e++)t=(t<<u^(t>>d)*p)%h,t&f&&(n^=u<<(u<<BigInt(e))-u);c.push(n)}const[g,m]=(0,n.split)(c,!0),b=(e,t,r)=>r>32?(0,n.rotlBH)(e,t,r):(0,n.rotlSH)(e,t,r),y=(e,t,r)=>r>32?(0,n.rotlBL)(e,t,r):(0,n.rotlSL)(e,t,r);function v(e,t=24){const r=new Uint32Array(10);for(let o=24-t;o<24;o++){for(let t=0;t<10;t++)r[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){const o=(t+8)%10,n=(t+2)%10,a=r[n],i=r[n+1],s=b(a,i,1)^r[o],c=y(a,i,1)^r[o+1];for(let r=0;r<50;r+=10)e[t+r]^=s,e[t+r+1]^=c}let t=e[2],n=e[3];for(let r=0;r<24;r++){const o=s[r],a=b(t,n,o),c=y(t,n,o),l=i[r];t=e[l],n=e[l+1],e[l]=a,e[l+1]=c}for(let t=0;t<50;t+=10){for(let o=0;o<10;o++)r[o]=e[t+o];for(let o=0;o<10;o++)e[t+o]^=~r[(o+2)%10]&r[(o+4)%10]}e[0]^=g[o],e[1]^=m[o]}r.fill(0)}t.keccakP=v;class w extends a.Hash{constructor(e,t,r,n=!1,i=24){if(super(),this.blockLen=e,this.suffix=t,this.outputLen=r,this.enableXOF=n,this.rounds=i,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,o.number)(r),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,a.u32)(this.state)}keccak(){v(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){(0,o.exists)(this);const{blockLen:t,state:r}=this,n=(e=(0,a.toBytes)(e)).length;for(let o=0;o<n;){const a=Math.min(t-this.pos,n-o);for(let t=0;t<a;t++)r[this.pos++]^=e[o++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:e,suffix:t,pos:r,blockLen:o}=this;e[r]^=t,128&t&&r===o-1&&this.keccak(),e[o-1]^=128,this.keccak()}writeInto(e){(0,o.exists)(this,!1),(0,o.bytes)(e),this.finish();const t=this.state,{blockLen:r}=this;for(let o=0,n=e.length;o<n;){this.posOut>=r&&this.keccak();const a=Math.min(r-this.posOut,n-o);e.set(t.subarray(this.posOut,this.posOut+a),o),this.posOut+=a,o+=a}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,o.number)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,o.output)(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){const{blockLen:t,suffix:r,outputLen:o,rounds:n,enableXOF:a}=this;return e||(e=new w(t,r,o,a,n)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=n,e.suffix=r,e.outputLen=o,e.enableXOF=a,e.destroyed=this.destroyed,e}}t.Keccak=w;const E=(e,t,r)=>(0,a.wrapConstructor)(()=>new w(t,e,r));t.sha3_224=E(6,144,28),t.sha3_256=E(6,136,32),t.sha3_384=E(6,104,48),t.sha3_512=E(6,72,64),t.keccak_224=E(1,144,28),t.keccak_256=E(1,136,32),t.keccak_384=E(1,104,48),t.keccak_512=E(1,72,64);const B=(e,t,r)=>(0,a.wrapXOFConstructorWithOpts)((o={})=>new w(t,e,void 0===o.dkLen?r:o.dkLen,!0));t.shake128=B(31,168,16),t.shake256=B(31,136,32)},3494:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wNAF=void 0,t.negateCt=s,t.normalizeZ=function(e,t){const r=(0,n.FpInvertBatch)(e.Fp,t.map(e=>e.Z));return t.map((t,o)=>e.fromAffine(t.toAffine(r[o])))},t.mulEndoUnsafe=function(e,t,r,o){let n=t,s=e.ZERO,c=e.ZERO;for(;r>a||o>a;)r&i&&(s=s.add(n)),o&i&&(c=c.add(n)),n=n.double(),r>>=i,o>>=i;return{p1:s,p2:c}},t.pippenger=function(e,t,r,n){f(r,e),d(n,t);const a=r.length,i=n.length;if(a!==i)throw new Error("arrays of points and scalars must have equal length");const s=e.ZERO,c=(0,o.bitLen)(BigInt(a));let l=1;c>12?l=c-3:c>4?l=c-2:c>0&&(l=2);const u=(0,o.bitMask)(l),h=new Array(Number(u)+1).fill(s),p=Math.floor((t.BITS-1)/l)*l;let g=s;for(let e=p;e>=0;e-=l){h.fill(s);for(let t=0;t<i;t++){const o=n[t],a=Number(o>>BigInt(e)&u);h[a]=h[a].add(r[t])}let t=s;for(let e=h.length-1,r=s;e>0;e--)r=r.add(h[e]),t=t.add(r);if(g=g.add(t),0!==e)for(let e=0;e<l;e++)g=g.double()}return g},t.precomputeMSMUnsafe=function(e,t,r,n){c(n,t.BITS),f(r,e);const a=e.ZERO,i=2**n-1,s=Math.ceil(t.BITS/n),l=(0,o.bitMask)(n),u=r.map(e=>{const t=[];for(let r=0,o=e;r<i;r++)t.push(o),o=o.add(e);return t});return e=>{if(d(e,t),e.length>r.length)throw new Error("array of scalars must be smaller than array of points");let o=a;for(let t=0;t<s;t++){if(o!==a)for(let e=0;e<n;e++)o=o.double();const r=BigInt(s*n-(t+1)*n);for(let t=0;t<e.length;t++){const n=e[t],a=Number(n>>r&l);a&&(o=o.add(u[t][a-1]))}}return o}},t.validateBasic=function(e){return(0,n.validateField)(e.Fp),(0,o.validateObject)(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,n.nLength)(e.n,e.nBitLength),...e,p:e.Fp.ORDER})},t._createCurveFields=function(e,t,r={},o){void 0===o&&(o="edwards"===e);if(!t||"object"!=typeof t)throw new Error(`expected valid ${e} CURVE object`);for(const e of["p","n","h"]){const r=t[e];if(!("bigint"==typeof r&&r>a))throw new Error(`CURVE.${e} must be positive bigint`)}const n=b(t.p,r.Fp,o),i=b(t.n,r.Fn,o),s=["Gx","Gy","a","weierstrass"===e?"b":"d"];for(const e of s)if(!n.isValid(t[e]))throw new Error(`CURVE.${e} must be valid field element of CURVE.Fp`);return{CURVE:t=Object.freeze(Object.assign({},t)),Fp:n,Fn:i}};
|
|
16
20
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
17
|
-
const a=r(2979),o=r(4904),n=r(7520),i=r(9924),s=r(6630),c=r(4873),l=r(5565),u=BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949"),d=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752"),f=BigInt(0),h=BigInt(1),p=BigInt(2),g=BigInt(3),m=BigInt(5),b=BigInt(8);function y(e){const t=BigInt(10),r=BigInt(20),a=BigInt(40),o=BigInt(80),n=u,i=e*e%n*e%n,c=(0,s.pow2)(i,p,n)*i%n,l=(0,s.pow2)(c,h,n)*e%n,d=(0,s.pow2)(l,m,n)*l%n,f=(0,s.pow2)(d,t,n)*d%n,g=(0,s.pow2)(f,r,n)*f%n,b=(0,s.pow2)(g,a,n)*g%n,y=(0,s.pow2)(b,o,n)*b%n,v=(0,s.pow2)(y,o,n)*b%n,w=(0,s.pow2)(v,t,n)*d%n;return{pow_p_5_8:(0,s.pow2)(w,p,n)*e%n,b2:i}}function v(e){return e[0]&=248,e[31]&=127,e[31]|=64,e}function w(e,t){const r=u,a=(0,s.mod)(t*t*t,r),o=y(e*(0,s.mod)(a*a*t,r)).pow_p_5_8;let n=(0,s.mod)(e*a*o,r);const i=(0,s.mod)(t*n*n,r),c=n,l=(0,s.mod)(n*d,r),f=i===e,h=i===(0,s.mod)(-e,r),p=i===(0,s.mod)(-e*d,r);return f&&(n=c),(h||p)&&(n=l),(0,s.isNegativeLE)(n,r)&&(n=(0,s.mod)(-n,r)),{isValid:f||h,value:n}}t.ED25519_TORSION_SUBGROUP=["0100000000000000000000000000000000000000000000000000000000000000","c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac037a","0000000000000000000000000000000000000000000000000000000000000080","26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc05","ecffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7f","26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc85","0000000000000000000000000000000000000000000000000000000000000000","c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac03fa"];const k=(()=>(0,s.Field)(u,void 0,!0))(),E=(()=>({a:BigInt(-1),d:BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"),Fp:k,n:BigInt("7237005577332262213973186563042994240857116359379907606001950938285454250989"),h:b,Gx:BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"),Gy:BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960"),hash:a.sha512,randomBytes:o.randomBytes,adjustScalarBytes:v,uvRatio:w}))();function B(e,t,r){if(t.length>255)throw new Error("Context is too big");return(0,o.concatBytes)((0,o.utf8ToBytes)("SigEd25519 no Ed25519 collisions"),new Uint8Array([r?1:0,t.length]),t,e)}function x(e){const{y:r}=t.ed25519.ExtendedPoint.fromHex(e),a=BigInt(1);return k.toBytes(k.create((a+r)*k.inv(a-r)))}t.ed25519=(0,n.twistedEdwards)(E),t.ed25519ctx=(0,n.twistedEdwards)({...E,domain:B}),t.ed25519ph=(0,n.twistedEdwards)(Object.assign({},E,{domain:B,prehash:a.sha512})),t.x25519=(0,c.montgomery)({P:u,a:BigInt(486662),montgomeryBits:255,nByteLength:32,Gu:BigInt(9),powPminus2:e=>{const t=u,{pow_p_5_8:r,b2:a}=y(e);return(0,s.mod)((0,s.pow2)(r,g,t)*a,t)},adjustScalarBytes:v,randomBytes:o.randomBytes}),t.edwardsToMontgomery=x;const A=(()=>(k.ORDER+g)/b)(),S=(()=>k.pow(p,A))(),P=(()=>k.sqrt(k.neg(k.ONE)))();const C=(()=>(0,s.FpSqrtEven)(k,k.neg(BigInt(486664))))();function T(e){const{xMn:t,xMd:r,yMn:a,yMd:o}=function(e){const t=(k.ORDER-m)/b,r=BigInt(486662);let a=k.sqr(e);a=k.mul(a,p);let o=k.add(a,k.ONE),n=k.neg(r),i=k.sqr(o),s=k.mul(i,o),c=k.mul(a,r);c=k.mul(c,n),c=k.add(c,i),c=k.mul(c,n);let l=k.sqr(s);i=k.sqr(l),l=k.mul(l,s),l=k.mul(l,c),i=k.mul(i,l);let u=k.pow(i,t);u=k.mul(u,l);let d=k.mul(u,P);i=k.sqr(u),i=k.mul(i,s);let f=k.eql(i,c),g=k.cmov(d,u,f),y=k.mul(n,a),v=k.mul(u,e);v=k.mul(v,S);let w=k.mul(v,P),E=k.mul(c,a);i=k.sqr(v),i=k.mul(i,s);let B=k.eql(i,E),x=k.cmov(w,v,B);i=k.sqr(g),i=k.mul(i,s);let A=k.eql(i,c),C=k.cmov(y,n,A),T=k.cmov(x,g,A),O=k.isOdd(T);return T=k.cmov(T,k.neg(T),A!==O),{xMn:C,xMd:o,yMn:T,yMd:h}}(e);let n=k.mul(t,o);n=k.mul(n,C);let i=k.mul(r,a),s=k.sub(t,r),c=k.add(t,r),l=k.mul(i,c),u=k.eql(l,k.ZERO);n=k.cmov(n,k.ZERO,u),i=k.cmov(i,k.ONE,u),s=k.cmov(s,k.ONE,u),c=k.cmov(c,k.ONE,u);const d=k.invertBatch([i,c]);return{x:k.mul(n,d[0]),y:k.mul(s,d[1])}}const O=(()=>(0,i.createHasher)(t.ed25519.ExtendedPoint,(e=>T(e[0])),{DST:"edwards25519_XMD:SHA-512_ELL2_RO_",encodeDST:"edwards25519_XMD:SHA-512_ELL2_NU_",p:k.ORDER,m:1,k:128,expand:"xmd",hash:a.sha512}))();function z(e){if(!(e instanceof F))throw new Error("RistrettoPoint expected")}t.hashToCurve=O.hashToCurve,t.encodeToCurve=O.encodeToCurve;const I=d,j=BigInt("25063068953384623474111414158702152701244531502492656460079210482610430750235"),R=BigInt("54469307008909316920995813868745141605393597292927456921205312896311721017578"),N=BigInt("1159843021668779879193775521855586647937357759715417654439879720876111806838"),_=BigInt("40440834346308536858101042469323190826248399146238708352240133220865137265952"),L=e=>w(h,e),U=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),M=e=>t.ed25519.CURVE.Fp.create((0,l.bytesToNumberLE)(e)&U);function D(e){const{d:r}=t.ed25519.CURVE,a=t.ed25519.CURVE.Fp.ORDER,o=t.ed25519.CURVE.Fp.create,n=o(I*e*e),i=o((n+h)*N);let c=BigInt(-1);const l=o((c-r*n)*o(n+r));let{isValid:u,value:d}=w(i,l),f=o(d*e);(0,s.isNegativeLE)(f,a)||(f=o(-f)),u||(d=f),u||(c=n);const p=o(c*(n-h)*_-l),g=d*d,m=o((d+d)*l),b=o(p*j),y=o(h-g),v=o(h+g);return new t.ed25519.ExtendedPoint(o(m*v),o(y*b),o(b*v),o(m*y))}class F{constructor(e){this.ep=e}static fromAffine(e){return new F(t.ed25519.ExtendedPoint.fromAffine(e))}static hashToCurve(e){e=(0,l.ensureBytes)("ristrettoHash",e,64);const t=D(M(e.slice(0,32))),r=D(M(e.slice(32,64)));return new F(t.add(r))}static fromHex(e){e=(0,l.ensureBytes)("ristrettoHex",e,32);const{a:r,d:a}=t.ed25519.CURVE,o=t.ed25519.CURVE.Fp.ORDER,n=t.ed25519.CURVE.Fp.create,i="RistrettoPoint.fromHex: the hex is not valid encoding of RistrettoPoint",c=M(e);if(!(0,l.equalBytes)((0,l.numberToBytesLE)(c,32),e)||(0,s.isNegativeLE)(c,o))throw new Error(i);const u=n(c*c),d=n(h+r*u),p=n(h-r*u),g=n(d*d),m=n(p*p),b=n(r*a*g-m),{isValid:y,value:v}=L(n(b*m)),w=n(v*p),k=n(v*w*b);let E=n((c+c)*w);(0,s.isNegativeLE)(E,o)&&(E=n(-E));const B=n(d*k),x=n(E*B);if(!y||(0,s.isNegativeLE)(x,o)||B===f)throw new Error(i);return new F(new t.ed25519.ExtendedPoint(E,B,h,x))}toRawBytes(){let{ex:e,ey:r,ez:a,et:o}=this.ep;const n=t.ed25519.CURVE.Fp.ORDER,i=t.ed25519.CURVE.Fp.create,c=i(i(a+r)*i(a-r)),u=i(e*r),d=i(u*u),{value:f}=L(i(c*d)),h=i(f*c),p=i(f*u),g=i(h*p*o);let m;if((0,s.isNegativeLE)(o*g,n)){let t=i(r*I),a=i(e*I);e=t,r=a,m=i(h*R)}else m=p;(0,s.isNegativeLE)(e*g,n)&&(r=i(-r));let b=i((a-r)*m);return(0,s.isNegativeLE)(b,n)&&(b=i(-b)),(0,l.numberToBytesLE)(b,32)}toHex(){return(0,l.bytesToHex)(this.toRawBytes())}toString(){return this.toHex()}equals(e){z(e);const{ex:r,ey:a}=this.ep,{ex:o,ey:n}=e.ep,i=t.ed25519.CURVE.Fp.create,s=i(r*n)===i(a*o),c=i(a*n)===i(r*o);return s||c}add(e){return z(e),new F(this.ep.add(e.ep))}subtract(e){return z(e),new F(this.ep.subtract(e.ep))}multiply(e){return new F(this.ep.multiply(e))}multiplyUnsafe(e){return new F(this.ep.multiplyUnsafe(e))}double(){return new F(this.ep.double())}negate(){return new F(this.ep.negate())}}t.RistrettoPoint=(F.BASE||(F.BASE=new F(t.ed25519.ExtendedPoint.BASE)),F.ZERO||(F.ZERO=new F(t.ed25519.ExtendedPoint.ZERO)),F);t.hashToRistretto255=(e,t)=>{const r=t.DST,n="string"==typeof r?(0,o.utf8ToBytes)(r):r,s=(0,i.expand_message_xmd)(e,n,64,a.sha512);return F.hashToCurve(s)},t.hash_to_ristretto255=t.hashToRistretto255},6968:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeToCurve=t.hashToCurve=t.secp256r1=t.p256=void 0;
|
|
21
|
+
const o=r(7827),n=r(6727),a=BigInt(0),i=BigInt(1);function s(e,t){const r=t.negate();return e?r:t}function c(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error("invalid window size, expected [1.."+t+"], got W="+e)}function l(e,t){c(e,t);const r=2**e;return{windows:Math.ceil(t/e)+1,windowSize:2**(e-1),mask:(0,o.bitMask)(e),maxNumber:r,shiftBy:BigInt(e)}}function u(e,t,r){const{windowSize:o,mask:n,maxNumber:a,shiftBy:s}=r;let c=Number(e&n),l=e>>s;c>o&&(c-=a,l+=i);const u=t*o;return{nextN:l,offset:u+Math.abs(c)-1,isZero:0===c,isNeg:c<0,isNegF:t%2!=0,offsetF:u}}function f(e,t){if(!Array.isArray(e))throw new Error("array expected");e.forEach((e,r)=>{if(!(e instanceof t))throw new Error("invalid point at index "+r)})}function d(e,t){if(!Array.isArray(e))throw new Error("array of scalars expected");e.forEach((e,r)=>{if(!t.isValid(e))throw new Error("invalid scalar at index "+r)})}const h=new WeakMap,p=new WeakMap;function g(e){return p.get(e)||1}function m(e){if(e!==a)throw new Error("invalid wNAF")}function b(e,t,r){if(t){if(t.ORDER!==e)throw new Error("Field.ORDER must match order: Fp == p, Fn == n");return(0,n.validateField)(t),t}return(0,n.Field)(e,{isLE:r})}t.wNAF=class{constructor(e,t){this.BASE=e.BASE,this.ZERO=e.ZERO,this.Fn=e.Fn,this.bits=t}_unsafeLadder(e,t,r=this.ZERO){let o=e;for(;t>a;)t&i&&(r=r.add(o)),o=o.double(),t>>=i;return r}precomputeWindow(e,t){const{windows:r,windowSize:o}=l(t,this.bits),n=[];let a=e,i=a;for(let e=0;e<r;e++){i=a,n.push(i);for(let e=1;e<o;e++)i=i.add(a),n.push(i);a=i.double()}return n}wNAF(e,t,r){if(!this.Fn.isValid(r))throw new Error("invalid scalar");let o=this.ZERO,n=this.BASE;const a=l(e,this.bits);for(let e=0;e<a.windows;e++){const{nextN:i,offset:c,isZero:l,isNeg:f,isNegF:d,offsetF:h}=u(r,e,a);r=i,l?n=n.add(s(d,t[h])):o=o.add(s(f,t[c]))}return m(r),{p:o,f:n}}wNAFUnsafe(e,t,r,o=this.ZERO){const n=l(e,this.bits);for(let e=0;e<n.windows&&r!==a;e++){const{nextN:a,offset:i,isZero:s,isNeg:c}=u(r,e,n);if(r=a,!s){const e=t[i];o=o.add(c?e.negate():e)}}return m(r),o}getPrecomputes(e,t,r){let o=h.get(t);return o||(o=this.precomputeWindow(t,e),1!==e&&("function"==typeof r&&(o=r(o)),h.set(t,o))),o}cached(e,t,r){const o=g(e);return this.wNAF(o,this.getPrecomputes(o,e,r),t)}unsafe(e,t,r,o){const n=g(e);return 1===n?this._unsafeLadder(e,t,o):this.wNAFUnsafe(n,this.getPrecomputes(n,e,r),t,o)}createCache(e,t){c(t,this.bits),p.set(e,t),h.delete(e)}hasCache(e){return 1!==g(e)}}},3497:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encrypt=function(e,t,r,o="aes-128-ctr",a=!0){return n(t,r,o,a).encrypt(e)},t.decrypt=function(e,t,r,o="aes-128-ctr",a=!0){return n(t,r,o,a).decrypt(e)};const o=r(212);function n(e,t,r,n=!0){if(!r.startsWith("aes-"))throw new Error("AES: unsupported mode");const a=e.length;if(r.startsWith("aes-128")&&16!==a||r.startsWith("aes-256")&&32!==a)throw new Error("AES: wrong key length");if(16!==t.length)throw new Error("AES: wrong IV length");if(["aes-128-cbc","aes-256-cbc"].includes(r))return(0,o.cbc)(e,t,{disablePadding:!n});if(["aes-128-ctr","aes-256-ctr"].includes(r))return(0,o.ctr)(e,t);throw new Error("AES: unsupported mode")}},3554:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WALLET_IS_EMPTY=t.SECRET_IS_INVALID=t.PASSWORD_IS_WRONG=t.PASSWORD_IS_REQUIRED=t.KEYSTORE_IS_INVALID=t.ETH_PASSWORD_IS_WRONG=t.ADDRESS_IS_EXISTENT=void 0;t.PASSWORD_IS_REQUIRED="password is required";t.WALLET_IS_EMPTY="wallet is empty";const r="password is wrong";t.PASSWORD_IS_WRONG=r;t.KEYSTORE_IS_INVALID="keystore is invalid";const o=`ethereum ${r}`;t.ETH_PASSWORD_IS_WRONG=o;t.SECRET_IS_INVALID="secret is invalid";t.ADDRESS_IS_EXISTENT="address is existent"},3609:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SWTCPlugin=void 0;const o=r(2783),n=r(5565);t.SWTCPlugin=e=>{const t=(0,o.Factory)(e),r=e=>{try{if("string"==typeof e){return t.fromSecret(e).address}if(e.privateKey){const r=t.deriveKeyPair(e.privateKey);return t.deriveAddress(r.publicKey)}return e.publicKey?t.deriveAddress(e.publicKey):null}catch(e){return null}};return{isValidAddress:e=>t.isValidAddress(e),isValidSecret:e=>t.isValidSecret(e),hash:e=>(0,n.bytesToHex)(t.hash(e)).toUpperCase(),sign:(e,r)=>t.sign(e,r),verify:(e,o,n,a)=>{try{return n===r(a)&&(a.publicKey||(a=t.deriveKeyPair(a.privateKey)),t.verify(e,o,a.publicKey))}catch(e){return!1}},createWallet:(e={})=>{try{return t.generate(e)}catch(e){return null}},getAddress:e=>{try{return t.fromSecret(e).address}catch(e){return null}},recover:()=>{throw new Error("swtclib does not support.")},address:r}}},4046:(e,t,r)=>{"use strict";const o=r(8276),n=r(6948),a=r(7043);function i(e,t){switch(n(e)){case"object":return function(e,t){if("function"==typeof t)return t(e);if(t||a(e)){const r=new e.constructor;for(let o in e)r[o]=i(e[o],t);return r}return e}(e,t);case"array":return function(e,t){const r=new e.constructor(e.length);for(let o=0;o<e.length;o++)r[o]=i(e[o],t);return r}(e,t);default:return o(e)}}e.exports=i},4054:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Signature=void 0;const o=r(1678),n=r(1490),a=BigInt(0),i=BigInt(1),s=BigInt(2),c=BigInt(27),l=BigInt(28),u=BigInt(35),f=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),d=f/s,h=Symbol.for("nodejs.util.inspect.custom"),p={};function g(e){return(0,n.zeroPadValue)((0,n.toBeArray)(e),32)}class m{#E;#B;#x;#A;get r(){return this.#E}set r(e){(0,n.assertArgument)(32===(0,n.dataLength)(e),"invalid r","value",e),this.#E=(0,n.hexlify)(e)}get s(){return(0,n.assertArgument)(parseInt(this.#B.substring(0,3))<8,"non-canonical s; use ._s","s",this.#B),this.#B}set s(e){(0,n.assertArgument)(32===(0,n.dataLength)(e),"invalid s","value",e),this.#B=(0,n.hexlify)(e)}get _s(){return this.#B}isValid(){return BigInt(this.#B)<=d}get v(){return this.#x}set v(e){const t=(0,n.getNumber)(e,"value");(0,n.assertArgument)(27===t||28===t,"invalid v","v",e),this.#x=t}get networkV(){return this.#A}get legacyChainId(){const e=this.networkV;return null==e?null:m.getChainId(e)}get yParity(){return 27===this.v?0:1}get yParityAndS(){const e=(0,n.getBytes)(this.s);return this.yParity&&(e[0]|=128),(0,n.hexlify)(e)}get compactSerialized(){return(0,n.concat)([this.r,this.yParityAndS])}get serialized(){return(0,n.concat)([this.r,this.s,this.yParity?"0x1c":"0x1b"])}constructor(e,t,r,o){(0,n.assertPrivate)(e,p,"Signature"),this.#E=t,this.#B=r,this.#x=o,this.#A=null}getCanonical(){if(this.isValid())return this;const e=f-BigInt(this._s),t=55-this.v,r=new m(p,this.r,g(e),t);return this.networkV&&(r.#A=this.networkV),r}clone(){const e=new m(p,this.r,this._s,this.v);return this.networkV&&(e.#A=this.networkV),e}toJSON(){const e=this.networkV;return{_type:"signature",networkV:null!=e?e.toString():null,r:this.r,s:this._s,v:this.v}}[h](){return this.toString()}toString(){return this.isValid()?`Signature { r: ${this.r}, s: ${this._s}, v: ${this.v} }`:`Signature { r: ${this.r}, s: ${this._s}, v: ${this.v}, valid: false }`}static getChainId(e){const t=(0,n.getBigInt)(e,"v");return t==c||t==l?a:((0,n.assertArgument)(t>=u,"invalid EIP-155 v","v",e),(t-u)/s)}static getChainIdV(e,t){return(0,n.getBigInt)(e)*s+BigInt(35+t-27)}static getNormalizedV(e){const t=(0,n.getBigInt)(e);return t===a||t===c?27:t===i||t===l?28:((0,n.assertArgument)(t>=u,"invalid v","v",e),t&i?27:28)}static from(e){function t(t,r){(0,n.assertArgument)(t,r,"signature",e)}if(null==e)return new m(p,o.ZeroHash,o.ZeroHash,27);if("string"==typeof e){const r=(0,n.getBytes)(e,"signature");if(64===r.length){const e=(0,n.hexlify)(r.slice(0,32)),t=r.slice(32,64),o=128&t[0]?28:27;return t[0]&=127,new m(p,e,(0,n.hexlify)(t),o)}if(65===r.length){const e=(0,n.hexlify)(r.slice(0,32)),t=(0,n.hexlify)(r.slice(32,64)),o=m.getNormalizedV(r[64]);return new m(p,e,t,o)}t(!1,"invalid raw signature length")}if(e instanceof m)return e.clone();const r=e.r;t(null!=r,"missing r");const a=g(r),i=function(e,r){if(null!=e)return g(e);if(null!=r){t((0,n.isHexString)(r,32),"invalid yParityAndS");const e=(0,n.getBytes)(r);return e[0]&=127,(0,n.hexlify)(e)}t(!1,"missing s")}(e.s,e.yParityAndS),{networkV:s,v:c}=function(e,r,o){if(null!=e){const t=(0,n.getBigInt)(e);return{networkV:t>=u?t:void 0,v:m.getNormalizedV(t)}}if(null!=r)return t((0,n.isHexString)(r,32),"invalid yParityAndS"),{v:128&(0,n.getBytes)(r)[0]?28:27};if(null!=o){switch((0,n.getNumber)(o,"sig.yParity")){case 0:return{v:27};case 1:return{v:28}}t(!1,"invalid yParity")}t(!1,"missing v")}(e.v,e.yParityAndS,e.yParity),l=new m(p,a,i,c);return s&&(l.#A=s),t(null==e.yParity||(0,n.getNumber)(e.yParity,"sig.yParity")===l.yParity,"yParity mismatch"),t(null==e.yParityAndS||e.yParityAndS===l.yParityAndS,"yParityAndS mismatch"),l}}t.Signature=m},4062:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.add5L=t.add5H=t.add4H=t.add4L=t.add3H=t.add3L=t.add=t.rotlBL=t.rotlBH=t.rotlSL=t.rotlSH=t.rotr32L=t.rotr32H=t.rotrBL=t.rotrBH=t.rotrSL=t.rotrSH=t.shrSL=t.shrSH=t.toBig=t.split=t.fromBig=void 0;const r=BigInt(2**32-1),o=BigInt(32);function n(e,t=!1){return t?{h:Number(e&r),l:Number(e>>o&r)}:{h:0|Number(e>>o&r),l:0|Number(e&r)}}function a(e,t=!1){let r=new Uint32Array(e.length),o=new Uint32Array(e.length);for(let a=0;a<e.length;a++){const{h:i,l:s}=n(e[a],t);[r[a],o[a]]=[i,s]}return[r,o]}t.fromBig=n,t.split=a;const i=(e,t)=>BigInt(e>>>0)<<o|BigInt(t>>>0);t.toBig=i;const s=(e,t,r)=>e>>>r;t.shrSH=s;const c=(e,t,r)=>e<<32-r|t>>>r;t.shrSL=c;const l=(e,t,r)=>e>>>r|t<<32-r;t.rotrSH=l;const u=(e,t,r)=>e<<32-r|t>>>r;t.rotrSL=u;const f=(e,t,r)=>e<<64-r|t>>>r-32;t.rotrBH=f;const d=(e,t,r)=>e>>>r-32|t<<64-r;t.rotrBL=d;const h=(e,t)=>t;t.rotr32H=h;const p=(e,t)=>e;t.rotr32L=p;const g=(e,t,r)=>e<<r|t>>>32-r;t.rotlSH=g;const m=(e,t,r)=>t<<r|e>>>32-r;t.rotlSL=m;const b=(e,t,r)=>t<<r-32|e>>>64-r;t.rotlBH=b;const y=(e,t,r)=>e<<r-32|t>>>64-r;function v(e,t,r,o){const n=(t>>>0)+(o>>>0);return{h:e+r+(n/2**32|0)|0,l:0|n}}t.rotlBL=y,t.add=v;const w=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0);t.add3L=w;const E=(e,t,r,o)=>t+r+o+(e/2**32|0)|0;t.add3H=E;const B=(e,t,r,o)=>(e>>>0)+(t>>>0)+(r>>>0)+(o>>>0);t.add4L=B;const x=(e,t,r,o,n)=>t+r+o+n+(e/2**32|0)|0;t.add4H=x;const A=(e,t,r,o,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(o>>>0)+(n>>>0);t.add5L=A;const k=(e,t,r,o,n,a)=>t+r+o+n+a+(e/2**32|0)|0;t.add5H=k;const S={fromBig:n,split:a,toBig:i,shrSH:s,shrSL:c,rotrSH:l,rotrSL:u,rotrBH:f,rotrBL:d,rotr32H:h,rotr32L:p,rotlSH:g,rotlSL:m,rotlBH:b,rotlBL:y,add:v,add3L:w,add3H:E,add4L:B,add4H:x,add5H:k,add5L:A};t.default=S},4138:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ZeroAddress=void 0,t.ZeroAddress="0x0000000000000000000000000000000000000000"},4254:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeToCurve=t.hashToCurve=t.secp256k1_hasher=t.schnorr=t.secp256k1=void 0;
|
|
18
22
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
19
|
-
const
|
|
23
|
+
const o=r(9741),n=r(4904),a=r(7146),i=r(7473),s=r(6727),c=r(5145),l=r(7827),u={p:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:BigInt(1),a:BigInt(0),b:BigInt(7),Gx:BigInt("0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"),Gy:BigInt("0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8")},f={beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),basises:[[BigInt("0x3086d221a7d46bcde86c90e49284eb15"),-BigInt("0xe4437ed6010e88286f547fa90abfe4c3")],[BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),BigInt("0x3086d221a7d46bcde86c90e49284eb15")]]},d=BigInt(0),h=BigInt(1),p=BigInt(2);const g=(0,s.Field)(u.p,{sqrt:function(e){const t=u.p,r=BigInt(3),o=BigInt(6),n=BigInt(11),a=BigInt(22),i=BigInt(23),c=BigInt(44),l=BigInt(88),f=e*e*e%t,d=f*f*e%t,h=(0,s.pow2)(d,r,t)*d%t,m=(0,s.pow2)(h,r,t)*d%t,b=(0,s.pow2)(m,p,t)*f%t,y=(0,s.pow2)(b,n,t)*b%t,v=(0,s.pow2)(y,a,t)*y%t,w=(0,s.pow2)(v,c,t)*v%t,E=(0,s.pow2)(w,l,t)*w%t,B=(0,s.pow2)(E,c,t)*v%t,x=(0,s.pow2)(B,r,t)*d%t,A=(0,s.pow2)(x,i,t)*y%t,k=(0,s.pow2)(A,o,t)*f%t,S=(0,s.pow2)(k,p,t);if(!g.eql(g.sqr(S),e))throw new Error("Cannot find square root");return S}});t.secp256k1=(0,a.createCurve)({...u,Fp:g,lowS:!0,endo:f},o.sha256);const m={};function b(e,...t){let r=m[e];if(void 0===r){const t=(0,o.sha256)((0,l.utf8ToBytes)(e));r=(0,l.concatBytes)(t,t),m[e]=r}return(0,o.sha256)((0,l.concatBytes)(r,...t))}const y=e=>e.toBytes(!0).slice(1),v=(()=>t.secp256k1.Point)(),w=e=>e%p===d;function E(e){const{Fn:t,BASE:r}=v,o=(0,c._normFnElement)(t,e),n=r.multiply(o);return{scalar:w(n.y)?o:t.neg(o),bytes:y(n)}}function B(e){const t=g;if(!t.isValidNot0(e))throw new Error("invalid x: Fail if x ≥ p");const r=t.create(e*e),o=t.create(r*e+BigInt(7));let n=t.sqrt(o);w(n)||(n=t.neg(n));const a=v.fromAffine({x:e,y:n});return a.assertValidity(),a}const x=l.bytesToNumberBE;function A(...e){return v.Fn.create(x(b("BIP0340/challenge",...e)))}function k(e){return E(e).bytes}function S(e,t,r=(0,n.randomBytes)(32)){const{Fn:o}=v,a=(0,l.ensureBytes)("message",e),{bytes:i,scalar:s}=E(t),c=(0,l.ensureBytes)("auxRand",r,32),u=o.toBytes(s^x(b("BIP0340/aux",c))),f=b("BIP0340/nonce",u,i,a),{bytes:d,scalar:h}=E(f),p=A(d,i,a),g=new Uint8Array(64);if(g.set(d,0),g.set(o.toBytes(o.create(h+p*s)),32),!C(g,a,i))throw new Error("sign: Invalid signature produced");return g}function C(e,t,r){const{Fn:o,BASE:n}=v,a=(0,l.ensureBytes)("signature",e,64),i=(0,l.ensureBytes)("message",t),s=(0,l.ensureBytes)("publicKey",r,32);try{const e=B(x(s)),t=x(a.subarray(0,32));if(!(0,l.inRange)(t,h,u.p))return!1;const r=x(a.subarray(32,64));if(!(0,l.inRange)(r,h,u.n))return!1;const c=A(o.toBytes(t),y(e),i),f=n.multiplyUnsafe(r).add(e.multiplyUnsafe(o.neg(c))),{x:d,y:p}=f.toAffine();return!(f.is0()||!w(p)||d!==t)}catch(e){return!1}}t.schnorr=(()=>{const e=(e=(0,n.randomBytes)(48))=>(0,s.mapHashToField)(e,u.n);return t.secp256k1.utils.randomSecretKey,{keygen:function(t){const r=e(t);return{secretKey:r,publicKey:k(r)}},getPublicKey:k,sign:S,verify:C,Point:v,utils:{randomSecretKey:e,randomPrivateKey:e,taggedHash:b,lift_x:B,pointToBytes:y,numberToBytesBE:l.numberToBytesBE,bytesToNumberBE:l.bytesToNumberBE,mod:s.mod},lengths:{secretKey:32,publicKey:32,publicKeyHasPrefix:!1,signature:64,seed:48}}})();const T=(()=>(0,i.isogenyMap)(g,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(e=>e.map(e=>BigInt(e)))))(),P=(()=>(0,c.mapToCurveSimpleSWU)(g,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:g.create(BigInt("-11"))}))();t.secp256k1_hasher=(0,i.createHasher)(t.secp256k1.Point,e=>{const{x:t,y:r}=P(g.create(e[0]));return T(t,r)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:g.ORDER,m:1,k:128,expand:"xmd",hash:o.sha256}),t.hashToCurve=t.secp256k1_hasher.hashToCurve,t.encodeToCurve=t.secp256k1_hasher.encodeToCurve},4266:(e,t)=>{"use strict";
|
|
24
|
+
/*! noble-ciphers - MIT License (c) 2023 Paul Miller (paulmillr.com) */function r(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function o(e){if("boolean"!=typeof e)throw new Error(`boolean expected, not ${e}`)}function n(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function a(e,...t){if(!r(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function i(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}Object.defineProperty(t,"__esModule",{value:!0}),t.wrapCipher=t.Hash=t.nextTick=t.isLE=void 0,t.isBytes=r,t.abool=o,t.anumber=n,t.abytes=a,t.ahash=function(e){if("function"!=typeof e||"function"!=typeof e.create)throw new Error("Hash should be wrapped by utils.createHasher");n(e.outputLen),n(e.blockLen)},t.aexists=function(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")},t.aoutput=function(e,t){a(e);const r=t.outputLen;if(e.length<r)throw new Error("digestInto() expects output buffer of length at least "+r)},t.u8=function(e){return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)},t.u32=function(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))},t.clean=function(...e){for(let t=0;t<e.length;t++)e[t].fill(0)},t.createView=i,t.bytesToHex=l,t.hexToBytes=d,t.hexToNumber=h,t.bytesToNumberBE=function(e){return h(l(e))},t.numberToBytesBE=function(e,t){return d(e.toString(16).padStart(2*t,"0"))},t.utf8ToBytes=p,t.bytesToUtf8=function(e){return(new TextDecoder).decode(e)},t.toBytes=function(e){if("string"==typeof e)e=p(e);else{if(!r(e))throw new Error("Uint8Array expected, got "+typeof e);e=y(e)}return e},t.overlapBytes=g,t.complexOverlapBytes=function(e,t){if(g(e,t)&&e.byteOffset<t.byteOffset)throw new Error("complex overlap of input and output is not supported")},t.concatBytes=function(...e){let t=0;for(let r=0;r<e.length;r++){const o=e[r];a(o),t+=o.length}const r=new Uint8Array(t);for(let t=0,o=0;t<e.length;t++){const n=e[t];r.set(n,o),o+=n.length}return r},t.checkOpts=function(e,t){if(null==t||"object"!=typeof t)throw new Error("options must be defined");return Object.assign(e,t)},t.equalBytes=function(e,t){if(e.length!==t.length)return!1;let r=0;for(let o=0;o<e.length;o++)r|=e[o]^t[o];return 0===r},t.getOutput=function(e,t,r=!0){if(void 0===t)return new Uint8Array(e);if(t.length!==e)throw new Error("invalid output length, expected "+e+", got: "+t.length);if(r&&!b(t))throw new Error("invalid output, must be aligned");return t},t.setBigUint64=m,t.u64Lengths=function(e,t,r){o(r);const n=new Uint8Array(16),a=i(n);return m(a,0,BigInt(t),r),m(a,8,BigInt(e),r),n},t.isAligned32=b,t.copyBytes=y,t.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0];const s=(()=>"function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex)(),c=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function l(e){if(a(e),s)return e.toHex();let t="";for(let r=0;r<e.length;r++)t+=c[e[r]];return t}const u={_0:48,_9:57,A:65,F:70,a:97,f:102};function f(e){return e>=u._0&&e<=u._9?e-u._0:e>=u.A&&e<=u.F?e-(u.A-10):e>=u.a&&e<=u.f?e-(u.a-10):void 0}function d(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);if(s)return Uint8Array.fromHex(e);const t=e.length,r=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const o=new Uint8Array(r);for(let t=0,n=0;t<r;t++,n+=2){const r=f(e.charCodeAt(n)),a=f(e.charCodeAt(n+1));if(void 0===r||void 0===a){const t=e[n]+e[n+1];throw new Error('hex string expected, got non-hex character "'+t+'" at index '+n)}o[t]=16*r+a}return o}function h(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);return BigInt(""===e?"0":"0x"+e)}function p(e){if("string"!=typeof e)throw new Error("string expected");return new Uint8Array((new TextEncoder).encode(e))}function g(e,t){return e.buffer===t.buffer&&e.byteOffset<t.byteOffset+t.byteLength&&t.byteOffset<e.byteOffset+e.byteLength}t.nextTick=async()=>{};t.Hash=class{};function m(e,t,r,o){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,r,o);const n=BigInt(32),a=BigInt(4294967295),i=Number(r>>n&a),s=Number(r&a),c=o?4:0,l=o?0:4;e.setUint32(t+c,i,o),e.setUint32(t+l,s,o)}function b(e){return e.byteOffset%4==0}function y(e){return Uint8Array.from(e)}t.wrapCipher=(e,r)=>{function o(o,...n){if(a(o),!t.isLE)throw new Error("Non little-endian hardware is not yet supported");if(void 0!==e.nonceLength){const t=n[0];if(!t)throw new Error("nonce / iv required");e.varSizeNonce?a(t):a(t,e.nonceLength)}const i=e.tagLength;i&&void 0!==n[1]&&a(n[1]);const s=r(o,...n),c=(e,t)=>{if(void 0!==t){if(2!==e)throw new Error("cipher output not supported");a(t)}};let l=!1;return{encrypt(e,t){if(l)throw new Error("cannot encrypt() twice with same key + nonce");return l=!0,a(e),c(s.encrypt.length,t),s.encrypt(e,t)},decrypt(e,t){if(a(e),i&&e.length<i)throw new Error("invalid ciphertext length: smaller than tagLength="+i);return c(s.decrypt.length,t),s.decrypt(e,t)}}}return Object.assign(o,e),o}},4329:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapToCurveSimpleSWU=t.SWUFpSqrtRatio=t.weierstrass=t.weierstrassPoints=t.DER=void 0;
|
|
20
25
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
21
|
-
const a=r(5754),o=r(4904),n=r(2269),i=r(9924),s=r(6630),c=r(5565),l=r(8116),u=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),d=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),f=BigInt(1),h=BigInt(2),p=(e,t)=>(e+t/h)/t;function g(e){const t=u,r=BigInt(3),a=BigInt(6),o=BigInt(11),n=BigInt(22),i=BigInt(23),c=BigInt(44),l=BigInt(88),d=e*e*e%t,f=d*d*e%t,p=(0,s.pow2)(f,r,t)*f%t,g=(0,s.pow2)(p,r,t)*f%t,b=(0,s.pow2)(g,h,t)*d%t,y=(0,s.pow2)(b,o,t)*b%t,v=(0,s.pow2)(y,n,t)*y%t,w=(0,s.pow2)(v,c,t)*v%t,k=(0,s.pow2)(w,l,t)*w%t,E=(0,s.pow2)(k,c,t)*v%t,B=(0,s.pow2)(E,r,t)*f%t,x=(0,s.pow2)(B,i,t)*y%t,A=(0,s.pow2)(x,a,t)*d%t,S=(0,s.pow2)(A,h,t);if(!m.eql(m.sqr(S),e))throw new Error("Cannot find square root");return S}const m=(0,s.Field)(u,void 0,void 0,{sqrt:g});t.secp256k1=(0,n.createCurve)({a:BigInt(0),b:BigInt(7),Fp:m,n:d,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const t=d,r=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),a=-f*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),o=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),n=r,i=BigInt("0x100000000000000000000000000000000"),c=p(n*e,t),l=p(-a*e,t);let u=(0,s.mod)(e-c*r-l*o,t),h=(0,s.mod)(-c*a-l*n,t);const g=u>i,m=h>i;if(g&&(u=t-u),m&&(h=t-h),u>i||h>i)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:g,k1:u,k2neg:m,k2:h}}}},a.sha256);const b=BigInt(0),y=e=>"bigint"==typeof e&&b<e&&e<u,v=e=>"bigint"==typeof e&&b<e&&e<d,w={};function k(e,...t){let r=w[e];if(void 0===r){const t=(0,a.sha256)(Uint8Array.from(e,(e=>e.charCodeAt(0))));r=(0,c.concatBytes)(t,t),w[e]=r}return(0,a.sha256)((0,c.concatBytes)(r,...t))}const E=e=>e.toRawBytes(!0).slice(1),B=e=>(0,c.numberToBytesBE)(e,32),x=e=>(0,s.mod)(e,u),A=e=>(0,s.mod)(e,d),S=t.secp256k1.ProjectivePoint,P=(e,t,r)=>S.BASE.multiplyAndAddUnsafe(e,t,r);function C(e){let r=t.secp256k1.utils.normPrivateKeyToScalar(e),a=S.fromPrivateKey(r);return{scalar:a.hasEvenY()?r:A(-r),bytes:E(a)}}function T(e){if(!y(e))throw new Error("bad x: need 0 < x < p");const t=x(e*e);let r=g(x(t*e+BigInt(7)));r%h!==b&&(r=x(-r));const a=new S(e,r,f);return a.assertValidity(),a}function O(...e){return A((0,c.bytesToNumberBE)(k("BIP0340/challenge",...e)))}function z(e){return C(e).bytes}function I(e,t,r=(0,o.randomBytes)(32)){const a=(0,c.ensureBytes)("message",e),{bytes:n,scalar:i}=C(t),s=(0,c.ensureBytes)("auxRand",r,32),l=B(i^(0,c.bytesToNumberBE)(k("BIP0340/aux",s))),u=k("BIP0340/nonce",l,n,a),d=A((0,c.bytesToNumberBE)(u));if(d===b)throw new Error("sign failed: k is zero");const{bytes:f,scalar:h}=C(d),p=O(f,n,a),g=new Uint8Array(64);if(g.set(f,0),g.set(B(A(h+p*i)),32),!j(g,a,n))throw new Error("sign: Invalid signature produced");return g}function j(e,t,r){const a=(0,c.ensureBytes)("signature",e,64),o=(0,c.ensureBytes)("message",t),n=(0,c.ensureBytes)("publicKey",r,32);try{const e=T((0,c.bytesToNumberBE)(n)),t=(0,c.bytesToNumberBE)(a.subarray(0,32));if(!y(t))return!1;const r=(0,c.bytesToNumberBE)(a.subarray(32,64));if(!v(r))return!1;const i=O(B(t),E(e),o),s=P(e,r,A(-i));return!(!s||!s.hasEvenY()||s.toAffine().x!==t)}catch(e){return!1}}t.schnorr={getPublicKey:z,sign:I,verify:j,utils:{randomPrivateKey:t.secp256k1.utils.randomPrivateKey,lift_x:T,pointToBytes:E,numberToBytesBE:c.numberToBytesBE,bytesToNumberBE:c.bytesToNumberBE,taggedHash:k,mod:s.mod}};const R=(()=>(0,i.isogenyMap)(m,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map((e=>e.map((e=>BigInt(e)))))))(),N=(()=>(0,l.mapToCurveSimpleSWU)(m,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:m.create(BigInt("-11"))}))(),_=(()=>(0,i.createHasher)(t.secp256k1.ProjectivePoint,(e=>{const{x:t,y:r}=N(m.create(e[0]));return R(t,r)}),{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:m.ORDER,m:1,k:128,expand:"xmd",hash:a.sha256}))();t.hashToCurve=_.hashToCurve,t.encodeToCurve=_.encodeToCurve},9998:(e,t)=>{"use strict";function r(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`positive integer expected, not ${e}`)}function a(e){if("boolean"!=typeof e)throw new Error(`boolean expected, not ${e}`)}function o(e){return e instanceof Uint8Array||null!=e&&"object"==typeof e&&"Uint8Array"===e.constructor.name}function n(e,...t){if(!o(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error(`Uint8Array expected of length ${t}, not of length=${e.length}`)}function i(e){if("function"!=typeof e||"function"!=typeof e.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");r(e.outputLen),r(e.blockLen)}function s(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function c(e,t){n(e);const r=t.outputLen;if(e.length<r)throw new Error(`digestInto() expects output buffer of length at least ${r}`)}Object.defineProperty(t,"__esModule",{value:!0}),t.output=t.exists=t.hash=t.bytes=t.bool=t.number=t.isBytes=void 0,t.number=r,t.bool=a,t.isBytes=o,t.bytes=n,t.hash=i,t.exists=s,t.output=c;const l={number:r,bool:a,bytes:n,hash:i,exists:s,output:c};t.default=l},9877:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HashMD=t.Maj=t.Chi=void 0;const a=r(9998),o=r(4904);t.Chi=(e,t,r)=>e&t^~e&r;t.Maj=(e,t,r)=>e&t^e&r^t&r;class n extends o.Hash{constructor(e,t,r,a){super(),this.blockLen=e,this.outputLen=t,this.padOffset=r,this.isLE=a,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=(0,o.createView)(this.buffer)}update(e){(0,a.exists)(this);const{view:t,buffer:r,blockLen:n}=this,i=(e=(0,o.toBytes)(e)).length;for(let a=0;a<i;){const s=Math.min(n-this.pos,i-a);if(s!==n)r.set(e.subarray(a,a+s),this.pos),this.pos+=s,a+=s,this.pos===n&&(this.process(t,0),this.pos=0);else{const t=(0,o.createView)(e);for(;n<=i-a;a+=n)this.process(t,a)}}return this.length+=e.length,this.roundClean(),this}digestInto(e){(0,a.exists)(this),(0,a.output)(e,this),this.finished=!0;const{buffer:t,view:r,blockLen:n,isLE:i}=this;let{pos:s}=this;t[s++]=128,this.buffer.subarray(s).fill(0),this.padOffset>n-s&&(this.process(r,0),s=0);for(let e=s;e<n;e++)t[e]=0;!function(e,t,r,a){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,r,a);const o=BigInt(32),n=BigInt(4294967295),i=Number(r>>o&n),s=Number(r&n),c=a?4:0,l=a?0:4;e.setUint32(t+c,i,a),e.setUint32(t+l,s,a)}(r,n-8,BigInt(8*this.length),i),this.process(r,0);const c=(0,o.createView)(e),l=this.outputLen;if(l%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const u=l/4,d=this.get();if(u>d.length)throw new Error("_sha2: outputLen bigger than state");for(let e=0;e<u;e++)c.setUint32(4*e,d[e],i)}digest(){const{buffer:e,outputLen:t}=this;this.digestInto(e);const r=e.slice(0,t);return this.destroy(),r}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:t,buffer:r,length:a,finished:o,destroyed:n,pos:i}=this;return e.length=a,e.pos=i,e.finished=o,e.destroyed=n,a%t&&e.buffer.set(r),e}}t.HashMD=n},7807:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.add5L=t.add5H=t.add4H=t.add4L=t.add3H=t.add3L=t.add=t.rotlBL=t.rotlBH=t.rotlSL=t.rotlSH=t.rotr32L=t.rotr32H=t.rotrBL=t.rotrBH=t.rotrSL=t.rotrSH=t.shrSL=t.shrSH=t.toBig=t.split=t.fromBig=void 0;const r=BigInt(2**32-1),a=BigInt(32);function o(e,t=!1){return t?{h:Number(e&r),l:Number(e>>a&r)}:{h:0|Number(e>>a&r),l:0|Number(e&r)}}function n(e,t=!1){let r=new Uint32Array(e.length),a=new Uint32Array(e.length);for(let n=0;n<e.length;n++){const{h:i,l:s}=o(e[n],t);[r[n],a[n]]=[i,s]}return[r,a]}t.fromBig=o,t.split=n;const i=(e,t)=>BigInt(e>>>0)<<a|BigInt(t>>>0);t.toBig=i;const s=(e,t,r)=>e>>>r;t.shrSH=s;const c=(e,t,r)=>e<<32-r|t>>>r;t.shrSL=c;const l=(e,t,r)=>e>>>r|t<<32-r;t.rotrSH=l;const u=(e,t,r)=>e<<32-r|t>>>r;t.rotrSL=u;const d=(e,t,r)=>e<<64-r|t>>>r-32;t.rotrBH=d;const f=(e,t,r)=>e>>>r-32|t<<64-r;t.rotrBL=f;const h=(e,t)=>t;t.rotr32H=h;const p=(e,t)=>e;t.rotr32L=p;const g=(e,t,r)=>e<<r|t>>>32-r;t.rotlSH=g;const m=(e,t,r)=>t<<r|e>>>32-r;t.rotlSL=m;const b=(e,t,r)=>t<<r-32|e>>>64-r;t.rotlBH=b;const y=(e,t,r)=>e<<r-32|t>>>64-r;function v(e,t,r,a){const o=(t>>>0)+(a>>>0);return{h:e+r+(o/2**32|0)|0,l:0|o}}t.rotlBL=y,t.add=v;const w=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0);t.add3L=w;const k=(e,t,r,a)=>t+r+a+(e/2**32|0)|0;t.add3H=k;const E=(e,t,r,a)=>(e>>>0)+(t>>>0)+(r>>>0)+(a>>>0);t.add4L=E;const B=(e,t,r,a,o)=>t+r+a+o+(e/2**32|0)|0;t.add4H=B;const x=(e,t,r,a,o)=>(e>>>0)+(t>>>0)+(r>>>0)+(a>>>0)+(o>>>0);t.add5L=x;const A=(e,t,r,a,o,n)=>t+r+a+o+n+(e/2**32|0)|0;t.add5H=A;const S={fromBig:o,split:n,toBig:i,shrSH:s,shrSL:c,rotrSH:l,rotrSL:u,rotrBH:d,rotrBL:f,rotr32H:h,rotr32L:p,rotlSH:g,rotlSL:m,rotlBH:b,rotlBL:y,add:v,add3L:w,add3H:k,add4L:E,add4H:B,add5H:A,add5L:x};t.default=S},7288:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=void 0,t.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},1062:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hmac=t.HMAC=void 0;const a=r(9998),o=r(4904);class n extends o.Hash{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,(0,a.hash)(e);const r=(0,o.toBytes)(t);if(this.iHash=e.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const n=this.blockLen,i=new Uint8Array(n);i.set(r.length>n?e.create().update(r).digest():r);for(let e=0;e<i.length;e++)i[e]^=54;this.iHash.update(i),this.oHash=e.create();for(let e=0;e<i.length;e++)i[e]^=106;this.oHash.update(i),i.fill(0)}update(e){return(0,a.exists)(this),this.iHash.update(e),this}digestInto(e){(0,a.exists)(this),(0,a.bytes)(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){const e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));const{oHash:t,iHash:r,finished:a,destroyed:o,blockLen:n,outputLen:i}=this;return e.finished=a,e.destroyed=o,e.blockLen=n,e.outputLen=i,e.oHash=t._cloneInto(e.oHash),e.iHash=r._cloneInto(e.iHash),e}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}t.HMAC=n;t.hmac=(e,t,r)=>new n(e,t).update(r).digest(),t.hmac.create=(e,t)=>new n(e,t)},592:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pbkdf2Async=t.pbkdf2=void 0;const a=r(9998),o=r(1062),n=r(4904);function i(e,t,r,i){(0,a.hash)(e);const s=(0,n.checkOpts)({dkLen:32,asyncTick:10},i),{c,dkLen:l,asyncTick:u}=s;if((0,a.number)(c),(0,a.number)(l),(0,a.number)(u),c<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const d=(0,n.toBytes)(t),f=(0,n.toBytes)(r),h=new Uint8Array(l),p=o.hmac.create(e,d),g=p._cloneInto().update(f);return{c,dkLen:l,asyncTick:u,DK:h,PRF:p,PRFSalt:g}}function s(e,t,r,a,o){return e.destroy(),t.destroy(),a&&a.destroy(),o.fill(0),r}t.pbkdf2=function(e,t,r,a){const{c:o,dkLen:c,DK:l,PRF:u,PRFSalt:d}=i(e,t,r,a);let f;const h=new Uint8Array(4),p=(0,n.createView)(h),g=new Uint8Array(u.outputLen);for(let e=1,t=0;t<c;e++,t+=u.outputLen){const r=l.subarray(t,t+u.outputLen);p.setInt32(0,e,!1),(f=d._cloneInto(f)).update(h).digestInto(g),r.set(g.subarray(0,r.length));for(let e=1;e<o;e++){u._cloneInto(f).update(g).digestInto(g);for(let e=0;e<r.length;e++)r[e]^=g[e]}}return s(u,d,l,f,g)},t.pbkdf2Async=async function(e,t,r,a){const{c:o,dkLen:c,asyncTick:l,DK:u,PRF:d,PRFSalt:f}=i(e,t,r,a);let h;const p=new Uint8Array(4),g=(0,n.createView)(p),m=new Uint8Array(d.outputLen);for(let e=1,t=0;t<c;e++,t+=d.outputLen){const r=u.subarray(t,t+d.outputLen);g.setInt32(0,e,!1),(h=f._cloneInto(h)).update(p).digestInto(m),r.set(m.subarray(0,r.length)),await(0,n.asyncLoop)(o-1,l,(()=>{d._cloneInto(h).update(m).digestInto(m);for(let e=0;e<r.length;e++)r[e]^=m[e]}))}return s(d,f,u,h,m)}},5673:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ripemd160=t.RIPEMD160=void 0;const a=r(9877),o=r(4904),n=new Uint8Array([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),i=new Uint8Array(new Array(16).fill(0).map(((e,t)=>t)));let s=[i],c=[i.map((e=>(9*e+5)%16))];for(let e=0;e<4;e++)for(let t of[s,c])t.push(t[e].map((e=>n[e])));const l=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map((e=>new Uint8Array(e))),u=s.map(((e,t)=>e.map((e=>l[t][e])))),d=c.map(((e,t)=>e.map((e=>l[t][e])))),f=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),h=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]);function p(e,t,r,a){return 0===e?t^r^a:1===e?t&r|~t&a:2===e?(t|~r)^a:3===e?t&a|r&~a:t^(r|~a)}const g=new Uint32Array(16);class m extends a.HashMD{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:e,h1:t,h2:r,h3:a,h4:o}=this;return[e,t,r,a,o]}set(e,t,r,a,o){this.h0=0|e,this.h1=0|t,this.h2=0|r,this.h3=0|a,this.h4=0|o}process(e,t){for(let r=0;r<16;r++,t+=4)g[r]=e.getUint32(t,!0);let r=0|this.h0,a=r,n=0|this.h1,i=n,l=0|this.h2,m=l,b=0|this.h3,y=b,v=0|this.h4,w=v;for(let e=0;e<5;e++){const t=4-e,k=f[e],E=h[e],B=s[e],x=c[e],A=u[e],S=d[e];for(let t=0;t<16;t++){const a=(0,o.rotl)(r+p(e,n,l,b)+g[B[t]]+k,A[t])+v|0;r=v,v=b,b=0|(0,o.rotl)(l,10),l=n,n=a}for(let e=0;e<16;e++){const r=(0,o.rotl)(a+p(t,i,m,y)+g[x[e]]+E,S[e])+w|0;a=w,w=y,y=0|(0,o.rotl)(m,10),m=i,i=r}}this.set(this.h1+l+y|0,this.h2+b+w|0,this.h3+v+a|0,this.h4+r+i|0,this.h0+n+m|0)}roundClean(){g.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}t.RIPEMD160=m,t.ripemd160=(0,o.wrapConstructor)((()=>new m))},8814:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scryptAsync=t.scrypt=void 0;const a=r(9998),o=r(5754),n=r(592),i=r(4904);function s(e,t,r,a,o,n){let s=e[t++]^r[a++],c=e[t++]^r[a++],l=e[t++]^r[a++],u=e[t++]^r[a++],d=e[t++]^r[a++],f=e[t++]^r[a++],h=e[t++]^r[a++],p=e[t++]^r[a++],g=e[t++]^r[a++],m=e[t++]^r[a++],b=e[t++]^r[a++],y=e[t++]^r[a++],v=e[t++]^r[a++],w=e[t++]^r[a++],k=e[t++]^r[a++],E=e[t++]^r[a++],B=s,x=c,A=l,S=u,P=d,C=f,T=h,O=p,z=g,I=m,j=b,R=y,N=v,_=w,L=k,U=E;for(let e=0;e<8;e+=2)P^=(0,i.rotl)(B+N|0,7),z^=(0,i.rotl)(P+B|0,9),N^=(0,i.rotl)(z+P|0,13),B^=(0,i.rotl)(N+z|0,18),I^=(0,i.rotl)(C+x|0,7),_^=(0,i.rotl)(I+C|0,9),x^=(0,i.rotl)(_+I|0,13),C^=(0,i.rotl)(x+_|0,18),L^=(0,i.rotl)(j+T|0,7),A^=(0,i.rotl)(L+j|0,9),T^=(0,i.rotl)(A+L|0,13),j^=(0,i.rotl)(T+A|0,18),S^=(0,i.rotl)(U+R|0,7),O^=(0,i.rotl)(S+U|0,9),R^=(0,i.rotl)(O+S|0,13),U^=(0,i.rotl)(R+O|0,18),x^=(0,i.rotl)(B+S|0,7),A^=(0,i.rotl)(x+B|0,9),S^=(0,i.rotl)(A+x|0,13),B^=(0,i.rotl)(S+A|0,18),T^=(0,i.rotl)(C+P|0,7),O^=(0,i.rotl)(T+C|0,9),P^=(0,i.rotl)(O+T|0,13),C^=(0,i.rotl)(P+O|0,18),R^=(0,i.rotl)(j+I|0,7),z^=(0,i.rotl)(R+j|0,9),I^=(0,i.rotl)(z+R|0,13),j^=(0,i.rotl)(I+z|0,18),N^=(0,i.rotl)(U+L|0,7),_^=(0,i.rotl)(N+U|0,9),L^=(0,i.rotl)(_+N|0,13),U^=(0,i.rotl)(L+_|0,18);o[n++]=s+B|0,o[n++]=c+x|0,o[n++]=l+A|0,o[n++]=u+S|0,o[n++]=d+P|0,o[n++]=f+C|0,o[n++]=h+T|0,o[n++]=p+O|0,o[n++]=g+z|0,o[n++]=m+I|0,o[n++]=b+j|0,o[n++]=y+R|0,o[n++]=v+N|0,o[n++]=w+_|0,o[n++]=k+L|0,o[n++]=E+U|0}function c(e,t,r,a,o){let n=a+0,i=a+16*o;for(let a=0;a<16;a++)r[i+a]=e[t+16*(2*o-1)+a];for(let a=0;a<o;a++,n+=16,t+=16)s(r,i,e,t,r,n),a>0&&(i+=16),s(r,n,e,t+=16,r,i)}function l(e,t,r){const s=(0,i.checkOpts)({dkLen:32,asyncTick:10,maxmem:1073742848},r),{N:c,r:l,p:u,dkLen:d,asyncTick:f,maxmem:h,onProgress:p}=s;if((0,a.number)(c),(0,a.number)(l),(0,a.number)(u),(0,a.number)(d),(0,a.number)(f),(0,a.number)(h),void 0!==p&&"function"!=typeof p)throw new Error("progressCb should be function");const g=128*l,m=g/4;if(c<=1||c&c-1||c>=2**(g/8)||c>2**32)throw new Error("Scrypt: N must be larger than 1, a power of 2, less than 2^(128 * r / 8) and less than 2^32");if(u<0||u>137438953440/g)throw new Error("Scrypt: p must be a positive integer less than or equal to ((2^32 - 1) * 32) / (128 * r)");if(d<0||d>137438953440)throw new Error("Scrypt: dkLen should be positive integer less than or equal to (2^32 - 1) * 32");const b=g*(c+u);if(b>h)throw new Error(`Scrypt: parameters too large, ${b} (128 * r * (N + p)) > ${h} (maxmem)`);const y=(0,n.pbkdf2)(o.sha256,e,t,{c:1,dkLen:g*u}),v=(0,i.u32)(y),w=(0,i.u32)(new Uint8Array(g*c)),k=(0,i.u32)(new Uint8Array(g));let E=()=>{};if(p){const e=2*c*u,t=Math.max(Math.floor(e/1e4),1);let r=0;E=()=>{r++,!p||r%t&&r!==e||p(r/e)}}return{N:c,r:l,p:u,dkLen:d,blockSize32:m,V:w,B32:v,B:y,tmp:k,blockMixCb:E,asyncTick:f}}function u(e,t,r,a,i){const s=(0,n.pbkdf2)(o.sha256,e,r,{c:1,dkLen:t});return r.fill(0),a.fill(0),i.fill(0),s}t.scrypt=function(e,t,r){const{N:a,r:o,p:n,dkLen:s,blockSize32:d,V:f,B32:h,B:p,tmp:g,blockMixCb:m}=l(e,t,r);i.isLE||(0,i.byteSwap32)(h);for(let e=0;e<n;e++){const t=d*e;for(let e=0;e<d;e++)f[e]=h[t+e];for(let e=0,t=0;e<a-1;e++)c(f,t,f,t+=d,o),m();c(f,(a-1)*d,h,t,o),m();for(let e=0;e<a;e++){const e=h[t+d-16]%a;for(let r=0;r<d;r++)g[r]=h[t+r]^f[e*d+r];c(g,0,h,t,o),m()}}return i.isLE||(0,i.byteSwap32)(h),u(e,s,p,f,g)},t.scryptAsync=async function(e,t,r){const{N:a,r:o,p:n,dkLen:s,blockSize32:d,V:f,B32:h,B:p,tmp:g,blockMixCb:m,asyncTick:b}=l(e,t,r);i.isLE||(0,i.byteSwap32)(h);for(let e=0;e<n;e++){const t=d*e;for(let e=0;e<d;e++)f[e]=h[t+e];let r=0;await(0,i.asyncLoop)(a-1,b,(()=>{c(f,r,f,r+=d,o),m()})),c(f,(a-1)*d,h,t,o),m(),await(0,i.asyncLoop)(a,b,(()=>{const e=h[t+d-16]%a;for(let r=0;r<d;r++)g[r]=h[t+r]^f[e*d+r];c(g,0,h,t,o),m()}))}return i.isLE||(0,i.byteSwap32)(h),u(e,s,p,f,g)}},9741:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha384=t.sha512_256=t.sha512_224=t.sha512=t.sha224=t.sha256=void 0;var a=r(5754);Object.defineProperty(t,"sha256",{enumerable:!0,get:function(){return a.sha256}}),Object.defineProperty(t,"sha224",{enumerable:!0,get:function(){return a.sha224}});var o=r(2979);Object.defineProperty(t,"sha512",{enumerable:!0,get:function(){return o.sha512}}),Object.defineProperty(t,"sha512_224",{enumerable:!0,get:function(){return o.sha512_224}}),Object.defineProperty(t,"sha512_256",{enumerable:!0,get:function(){return o.sha512_256}}),Object.defineProperty(t,"sha384",{enumerable:!0,get:function(){return o.sha384}})},5754:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha224=t.sha256=void 0;const a=r(9877),o=r(4904),n=new Uint32Array([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]),i=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),s=new Uint32Array(64);class c extends a.HashMD{constructor(){super(64,32,8,!1),this.A=0|i[0],this.B=0|i[1],this.C=0|i[2],this.D=0|i[3],this.E=0|i[4],this.F=0|i[5],this.G=0|i[6],this.H=0|i[7]}get(){const{A:e,B:t,C:r,D:a,E:o,F:n,G:i,H:s}=this;return[e,t,r,a,o,n,i,s]}set(e,t,r,a,o,n,i,s){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|a,this.E=0|o,this.F=0|n,this.G=0|i,this.H=0|s}process(e,t){for(let r=0;r<16;r++,t+=4)s[r]=e.getUint32(t,!1);for(let e=16;e<64;e++){const t=s[e-15],r=s[e-2],a=(0,o.rotr)(t,7)^(0,o.rotr)(t,18)^t>>>3,n=(0,o.rotr)(r,17)^(0,o.rotr)(r,19)^r>>>10;s[e]=n+s[e-7]+a+s[e-16]|0}let{A:r,B:i,C:c,D:l,E:u,F:d,G:f,H:h}=this;for(let e=0;e<64;e++){const t=h+((0,o.rotr)(u,6)^(0,o.rotr)(u,11)^(0,o.rotr)(u,25))+(0,a.Chi)(u,d,f)+n[e]+s[e]|0,p=((0,o.rotr)(r,2)^(0,o.rotr)(r,13)^(0,o.rotr)(r,22))+(0,a.Maj)(r,i,c)|0;h=f,f=d,d=u,u=l+t|0,l=c,c=i,i=r,r=t+p|0}r=r+this.A|0,i=i+this.B|0,c=c+this.C|0,l=l+this.D|0,u=u+this.E|0,d=d+this.F|0,f=f+this.G|0,h=h+this.H|0,this.set(r,i,c,l,u,d,f,h)}roundClean(){s.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class l extends c{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}t.sha256=(0,o.wrapConstructor)((()=>new c)),t.sha224=(0,o.wrapConstructor)((()=>new l))},6526:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shake256=t.shake128=t.keccak_512=t.keccak_384=t.keccak_256=t.keccak_224=t.sha3_512=t.sha3_384=t.sha3_256=t.sha3_224=t.Keccak=t.keccakP=void 0;const a=r(9998),o=r(7807),n=r(4904),i=[],s=[],c=[],l=BigInt(0),u=BigInt(1),d=BigInt(2),f=BigInt(7),h=BigInt(256),p=BigInt(113);for(let e=0,t=u,r=1,a=0;e<24;e++){[r,a]=[a,(2*r+3*a)%5],i.push(2*(5*a+r)),s.push((e+1)*(e+2)/2%64);let o=l;for(let e=0;e<7;e++)t=(t<<u^(t>>f)*p)%h,t&d&&(o^=u<<(u<<BigInt(e))-u);c.push(o)}const[g,m]=(0,o.split)(c,!0),b=(e,t,r)=>r>32?(0,o.rotlBH)(e,t,r):(0,o.rotlSH)(e,t,r),y=(e,t,r)=>r>32?(0,o.rotlBL)(e,t,r):(0,o.rotlSL)(e,t,r);function v(e,t=24){const r=new Uint32Array(10);for(let a=24-t;a<24;a++){for(let t=0;t<10;t++)r[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){const a=(t+8)%10,o=(t+2)%10,n=r[o],i=r[o+1],s=b(n,i,1)^r[a],c=y(n,i,1)^r[a+1];for(let r=0;r<50;r+=10)e[t+r]^=s,e[t+r+1]^=c}let t=e[2],o=e[3];for(let r=0;r<24;r++){const a=s[r],n=b(t,o,a),c=y(t,o,a),l=i[r];t=e[l],o=e[l+1],e[l]=n,e[l+1]=c}for(let t=0;t<50;t+=10){for(let a=0;a<10;a++)r[a]=e[t+a];for(let a=0;a<10;a++)e[t+a]^=~r[(a+2)%10]&r[(a+4)%10]}e[0]^=g[a],e[1]^=m[a]}r.fill(0)}t.keccakP=v;class w extends n.Hash{constructor(e,t,r,o=!1,i=24){if(super(),this.blockLen=e,this.suffix=t,this.outputLen=r,this.enableXOF=o,this.rounds=i,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,a.number)(r),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,n.u32)(this.state)}keccak(){n.isLE||(0,n.byteSwap32)(this.state32),v(this.state32,this.rounds),n.isLE||(0,n.byteSwap32)(this.state32),this.posOut=0,this.pos=0}update(e){(0,a.exists)(this);const{blockLen:t,state:r}=this,o=(e=(0,n.toBytes)(e)).length;for(let a=0;a<o;){const n=Math.min(t-this.pos,o-a);for(let t=0;t<n;t++)r[this.pos++]^=e[a++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:e,suffix:t,pos:r,blockLen:a}=this;e[r]^=t,128&t&&r===a-1&&this.keccak(),e[a-1]^=128,this.keccak()}writeInto(e){(0,a.exists)(this,!1),(0,a.bytes)(e),this.finish();const t=this.state,{blockLen:r}=this;for(let a=0,o=e.length;a<o;){this.posOut>=r&&this.keccak();const n=Math.min(r-this.posOut,o-a);e.set(t.subarray(this.posOut,this.posOut+n),a),this.posOut+=n,a+=n}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,a.number)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,a.output)(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){const{blockLen:t,suffix:r,outputLen:a,rounds:o,enableXOF:n}=this;return e||(e=new w(t,r,a,n,o)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=o,e.suffix=r,e.outputLen=a,e.enableXOF=n,e.destroyed=this.destroyed,e}}t.Keccak=w;const k=(e,t,r)=>(0,n.wrapConstructor)((()=>new w(t,e,r)));t.sha3_224=k(6,144,28),t.sha3_256=k(6,136,32),t.sha3_384=k(6,104,48),t.sha3_512=k(6,72,64),t.keccak_224=k(1,144,28),t.keccak_256=k(1,136,32),t.keccak_384=k(1,104,48),t.keccak_512=k(1,72,64);const E=(e,t,r)=>(0,n.wrapXOFConstructorWithOpts)(((a={})=>new w(t,e,void 0===a.dkLen?r:a.dkLen,!0)));t.shake128=E(31,168,16),t.shake256=E(31,136,32)},2979:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha384=t.sha512_256=t.sha512_224=t.sha512=t.SHA512=void 0;const a=r(9877),o=r(7807),n=r(4904),[i,s]=(()=>o.default.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map((e=>BigInt(e)))))(),c=new Uint32Array(80),l=new Uint32Array(80);class u extends a.HashMD{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:e,Al:t,Bh:r,Bl:a,Ch:o,Cl:n,Dh:i,Dl:s,Eh:c,El:l,Fh:u,Fl:d,Gh:f,Gl:h,Hh:p,Hl:g}=this;return[e,t,r,a,o,n,i,s,c,l,u,d,f,h,p,g]}set(e,t,r,a,o,n,i,s,c,l,u,d,f,h,p,g){this.Ah=0|e,this.Al=0|t,this.Bh=0|r,this.Bl=0|a,this.Ch=0|o,this.Cl=0|n,this.Dh=0|i,this.Dl=0|s,this.Eh=0|c,this.El=0|l,this.Fh=0|u,this.Fl=0|d,this.Gh=0|f,this.Gl=0|h,this.Hh=0|p,this.Hl=0|g}process(e,t){for(let r=0;r<16;r++,t+=4)c[r]=e.getUint32(t),l[r]=e.getUint32(t+=4);for(let e=16;e<80;e++){const t=0|c[e-15],r=0|l[e-15],a=o.default.rotrSH(t,r,1)^o.default.rotrSH(t,r,8)^o.default.shrSH(t,r,7),n=o.default.rotrSL(t,r,1)^o.default.rotrSL(t,r,8)^o.default.shrSL(t,r,7),i=0|c[e-2],s=0|l[e-2],u=o.default.rotrSH(i,s,19)^o.default.rotrBH(i,s,61)^o.default.shrSH(i,s,6),d=o.default.rotrSL(i,s,19)^o.default.rotrBL(i,s,61)^o.default.shrSL(i,s,6),f=o.default.add4L(n,d,l[e-7],l[e-16]),h=o.default.add4H(f,a,u,c[e-7],c[e-16]);c[e]=0|h,l[e]=0|f}let{Ah:r,Al:a,Bh:n,Bl:u,Ch:d,Cl:f,Dh:h,Dl:p,Eh:g,El:m,Fh:b,Fl:y,Gh:v,Gl:w,Hh:k,Hl:E}=this;for(let e=0;e<80;e++){const t=o.default.rotrSH(g,m,14)^o.default.rotrSH(g,m,18)^o.default.rotrBH(g,m,41),B=o.default.rotrSL(g,m,14)^o.default.rotrSL(g,m,18)^o.default.rotrBL(g,m,41),x=g&b^~g&v,A=m&y^~m&w,S=o.default.add5L(E,B,A,s[e],l[e]),P=o.default.add5H(S,k,t,x,i[e],c[e]),C=0|S,T=o.default.rotrSH(r,a,28)^o.default.rotrBH(r,a,34)^o.default.rotrBH(r,a,39),O=o.default.rotrSL(r,a,28)^o.default.rotrBL(r,a,34)^o.default.rotrBL(r,a,39),z=r&n^r&d^n&d,I=a&u^a&f^u&f;k=0|v,E=0|w,v=0|b,w=0|y,b=0|g,y=0|m,({h:g,l:m}=o.default.add(0|h,0|p,0|P,0|C)),h=0|d,p=0|f,d=0|n,f=0|u,n=0|r,u=0|a;const j=o.default.add3L(C,O,I);r=o.default.add3H(j,P,T,z),a=0|j}({h:r,l:a}=o.default.add(0|this.Ah,0|this.Al,0|r,0|a)),({h:n,l:u}=o.default.add(0|this.Bh,0|this.Bl,0|n,0|u)),({h:d,l:f}=o.default.add(0|this.Ch,0|this.Cl,0|d,0|f)),({h,l:p}=o.default.add(0|this.Dh,0|this.Dl,0|h,0|p)),({h:g,l:m}=o.default.add(0|this.Eh,0|this.El,0|g,0|m)),({h:b,l:y}=o.default.add(0|this.Fh,0|this.Fl,0|b,0|y)),({h:v,l:w}=o.default.add(0|this.Gh,0|this.Gl,0|v,0|w)),({h:k,l:E}=o.default.add(0|this.Hh,0|this.Hl,0|k,0|E)),this.set(r,a,n,u,d,f,h,p,g,m,b,y,v,w,k,E)}roundClean(){c.fill(0),l.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}t.SHA512=u;class d extends u{constructor(){super(),this.Ah=-1942145080,this.Al=424955298,this.Bh=1944164710,this.Bl=-1982016298,this.Ch=502970286,this.Cl=855612546,this.Dh=1738396948,this.Dl=1479516111,this.Eh=258812777,this.El=2077511080,this.Fh=2011393907,this.Fl=79989058,this.Gh=1067287976,this.Gl=1780299464,this.Hh=286451373,this.Hl=-1848208735,this.outputLen=28}}class f extends u{constructor(){super(),this.Ah=573645204,this.Al=-64227540,this.Bh=-1621794909,this.Bl=-934517566,this.Ch=596883563,this.Cl=1867755857,this.Dh=-1774684391,this.Dl=1497426621,this.Eh=-1775747358,this.El=-1467023389,this.Fh=-1101128155,this.Fl=1401305490,this.Gh=721525244,this.Gl=746961066,this.Hh=246885852,this.Hl=-2117784414,this.outputLen=32}}class h extends u{constructor(){super(),this.Ah=-876896931,this.Al=-1056596264,this.Bh=1654270250,this.Bl=914150663,this.Ch=-1856437926,this.Cl=812702999,this.Dh=355462360,this.Dl=-150054599,this.Eh=1731405415,this.El=-4191439,this.Fh=-1900787065,this.Fl=1750603025,this.Gh=-619958771,this.Gl=1694076839,this.Hh=1203062813,this.Hl=-1090891868,this.outputLen=48}}t.sha512=(0,n.wrapConstructor)((()=>new u)),t.sha512_224=(0,n.wrapConstructor)((()=>new d)),t.sha512_256=(0,n.wrapConstructor)((()=>new f)),t.sha384=(0,n.wrapConstructor)((()=>new h))},4904:(e,t,r)=>{"use strict";
|
|
22
|
-
/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */Object.defineProperty(t,"__esModule",{value:!0}),t.randomBytes=t.wrapXOFConstructorWithOpts=t.wrapConstructorWithOpts=t.wrapConstructor=t.checkOpts=t.Hash=t.concatBytes=t.toBytes=t.utf8ToBytes=t.asyncLoop=t.nextTick=t.hexToBytes=t.bytesToHex=t.byteSwap32=t.byteSwapIfBE=t.byteSwap=t.isLE=t.rotl=t.rotr=t.createView=t.u32=t.u8=t.isBytes=void 0;const a=r(7288),o=r(9998);t.isBytes=function(e){return e instanceof Uint8Array||null!=e&&"object"==typeof e&&"Uint8Array"===e.constructor.name};t.u8=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength);t.u32=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4));t.createView=e=>new DataView(e.buffer,e.byteOffset,e.byteLength);t.rotr=(e,t)=>e<<32-t|e>>>t;t.rotl=(e,t)=>e<<t|e>>>32-t>>>0,t.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0];t.byteSwap=e=>e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255,t.byteSwapIfBE=t.isLE?e=>e:e=>(0,t.byteSwap)(e),t.byteSwap32=function(e){for(let r=0;r<e.length;r++)e[r]=(0,t.byteSwap)(e[r])};const n=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));t.bytesToHex=function(e){(0,o.bytes)(e);let t="";for(let r=0;r<e.length;r++)t+=n[e[r]];return t};const i={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};function s(e){return e>=i._0&&e<=i._9?e-i._0:e>=i._A&&e<=i._F?e-(i._A-10):e>=i._a&&e<=i._f?e-(i._a-10):void 0}t.hexToBytes=function(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);const t=e.length,r=t/2;if(t%2)throw new Error("padded hex string expected, got unpadded hex of length "+t);const a=new Uint8Array(r);for(let t=0,o=0;t<r;t++,o+=2){const r=s(e.charCodeAt(o)),n=s(e.charCodeAt(o+1));if(void 0===r||void 0===n){const t=e[o]+e[o+1];throw new Error('hex string expected, got non-hex character "'+t+'" at index '+o)}a[t]=16*r+n}return a};function c(e){if("string"!=typeof e)throw new Error("utf8ToBytes expected string, got "+typeof e);return new Uint8Array((new TextEncoder).encode(e))}function l(e){return"string"==typeof e&&(e=c(e)),(0,o.bytes)(e),e}t.nextTick=async()=>{},t.asyncLoop=async function(e,r,a){let o=Date.now();for(let n=0;n<e;n++){a(n);const e=Date.now()-o;e>=0&&e<r||(await(0,t.nextTick)(),o+=e)}},t.utf8ToBytes=c,t.toBytes=l,t.concatBytes=function(...e){let t=0;for(let r=0;r<e.length;r++){const a=e[r];(0,o.bytes)(a),t+=a.length}const r=new Uint8Array(t);for(let t=0,a=0;t<e.length;t++){const o=e[t];r.set(o,a),a+=o.length}return r};t.Hash=class{clone(){return this._cloneInto()}};const u={}.toString;t.checkOpts=function(e,t){if(void 0!==t&&"[object Object]"!==u.call(t))throw new Error("Options should be object or undefined");return Object.assign(e,t)},t.wrapConstructor=function(e){const t=t=>e().update(l(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t},t.wrapConstructorWithOpts=function(e){const t=(t,r)=>e(r).update(l(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t},t.wrapXOFConstructorWithOpts=function(e){const t=(t,r)=>e(r).update(l(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t},t.randomBytes=function(e=32){if(a.crypto&&"function"==typeof a.crypto.getRandomValues)return a.crypto.getRandomValues(new Uint8Array(e));throw new Error("crypto.getRandomValues must be defined")}},2116:(e,t)=>{"use strict";
|
|
23
|
-
/*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) */function r(e){if(!Number.isSafeInteger(e))throw new Error(`Wrong integer: ${e}`)}function a(e){return e instanceof Uint8Array||null!=e&&"object"==typeof e&&"Uint8Array"===e.constructor.name}function o(...e){const t=e=>e,r=(e,t)=>r=>e(t(r));return{encode:e.map((e=>e.encode)).reduceRight(r,t),decode:e.map((e=>e.decode)).reduce(r,t)}}function n(e){return{encode:t=>{if(!Array.isArray(t)||t.length&&"number"!=typeof t[0])throw new Error("alphabet.encode input should be an array of numbers");return t.map((t=>{if(r(t),t<0||t>=e.length)throw new Error(`Digit index outside alphabet: ${t} (alphabet: ${e.length})`);return e[t]}))},decode:t=>{if(!Array.isArray(t)||t.length&&"string"!=typeof t[0])throw new Error("alphabet.decode input should be array of strings");return t.map((t=>{if("string"!=typeof t)throw new Error(`alphabet.decode: not string element=${t}`);const r=e.indexOf(t);if(-1===r)throw new Error(`Unknown letter: "${t}". Allowed: ${e}`);return r}))}}}function i(e=""){if("string"!=typeof e)throw new Error("join separator should be string");return{encode:t=>{if(!Array.isArray(t)||t.length&&"string"!=typeof t[0])throw new Error("join.encode input should be array of strings");for(let e of t)if("string"!=typeof e)throw new Error(`join.encode: non-string input=${e}`);return t.join(e)},decode:t=>{if("string"!=typeof t)throw new Error("join.decode input should be string");return t.split(e)}}}function s(e,t="="){if(r(e),"string"!=typeof t)throw new Error("padding chr should be string");return{encode(r){if(!Array.isArray(r)||r.length&&"string"!=typeof r[0])throw new Error("padding.encode input should be array of strings");for(let e of r)if("string"!=typeof e)throw new Error(`padding.encode: non-string input=${e}`);for(;r.length*e%8;)r.push(t);return r},decode(r){if(!Array.isArray(r)||r.length&&"string"!=typeof r[0])throw new Error("padding.encode input should be array of strings");for(let e of r)if("string"!=typeof e)throw new Error(`padding.decode: non-string input=${e}`);let a=r.length;if(a*e%8)throw new Error("Invalid padding: string should have whole number of bytes");for(;a>0&&r[a-1]===t;a--)if(!((a-1)*e%8))throw new Error("Invalid padding: string has too much padding");return r.slice(0,a)}}}function c(e){if("function"!=typeof e)throw new Error("normalize fn should be function");return{encode:e=>e,decode:t=>e(t)}}function l(e,t,a){if(t<2)throw new Error(`convertRadix: wrong from=${t}, base cannot be less than 2`);if(a<2)throw new Error(`convertRadix: wrong to=${a}, base cannot be less than 2`);if(!Array.isArray(e))throw new Error("convertRadix: data should be array");if(!e.length)return[];let o=0;const n=[],i=Array.from(e);for(i.forEach((e=>{if(r(e),e<0||e>=t)throw new Error(`Wrong integer: ${e}`)}));;){let e=0,r=!0;for(let n=o;n<i.length;n++){const s=i[n],c=t*e+s;if(!Number.isSafeInteger(c)||t*e/t!==e||c-s!=t*e)throw new Error("convertRadix: carry overflow");e=c%a;const l=Math.floor(c/a);if(i[n]=l,!Number.isSafeInteger(l)||l*a+e!==c)throw new Error("convertRadix: carry overflow");r&&(l?r=!1:o=n)}if(n.push(e),r)break}for(let t=0;t<e.length-1&&0===e[t];t++)n.push(0);return n.reverse()}Object.defineProperty(t,"__esModule",{value:!0}),t.bytes=t.stringToBytes=t.str=t.bytesToString=t.hex=t.utf8=t.bech32m=t.bech32=t.base58check=t.createBase58check=t.base58xmr=t.base58xrp=t.base58flickr=t.base58=t.base64urlnopad=t.base64url=t.base64nopad=t.base64=t.base32crockford=t.base32hexnopad=t.base32hex=t.base32nopad=t.base32=t.base16=t.utils=t.assertNumber=void 0,t.assertNumber=r;const u=(e,t)=>t?u(t,e%t):e,d=(e,t)=>e+(t-u(e,t));function f(e,t,a,o){if(!Array.isArray(e))throw new Error("convertRadix2: data should be array");if(t<=0||t>32)throw new Error(`convertRadix2: wrong from=${t}`);if(a<=0||a>32)throw new Error(`convertRadix2: wrong to=${a}`);if(d(t,a)>32)throw new Error(`convertRadix2: carry overflow from=${t} to=${a} carryBits=${d(t,a)}`);let n=0,i=0;const s=2**a-1,c=[];for(const o of e){if(r(o),o>=2**t)throw new Error(`convertRadix2: invalid data word=${o} from=${t}`);if(n=n<<t|o,i+t>32)throw new Error(`convertRadix2: carry overflow pos=${i} from=${t}`);for(i+=t;i>=a;i-=a)c.push((n>>i-a&s)>>>0);n&=2**i-1}if(n=n<<a-i&s,!o&&i>=t)throw new Error("Excess padding");if(!o&&n)throw new Error(`Non-zero padding: ${n}`);return o&&i>0&&c.push(n>>>0),c}function h(e){return r(e),{encode:t=>{if(!a(t))throw new Error("radix.encode input should be Uint8Array");return l(Array.from(t),256,e)},decode:t=>{if(!Array.isArray(t)||t.length&&"number"!=typeof t[0])throw new Error("radix.decode input should be array of numbers");return Uint8Array.from(l(t,e,256))}}}function p(e,t=!1){if(r(e),e<=0||e>32)throw new Error("radix2: bits should be in (0..32]");if(d(8,e)>32||d(e,8)>32)throw new Error("radix2: carry overflow");return{encode:r=>{if(!a(r))throw new Error("radix2.encode input should be Uint8Array");return f(Array.from(r),8,e,!t)},decode:r=>{if(!Array.isArray(r)||r.length&&"number"!=typeof r[0])throw new Error("radix2.decode input should be array of numbers");return Uint8Array.from(f(r,e,8,t))}}}function g(e){if("function"!=typeof e)throw new Error("unsafeWrapper fn should be function");return function(...t){try{return e.apply(null,t)}catch(e){}}}function m(e,t){if(r(e),"function"!=typeof t)throw new Error("checksum fn should be function");return{encode(r){if(!a(r))throw new Error("checksum.encode: input should be Uint8Array");const o=t(r).slice(0,e),n=new Uint8Array(r.length+e);return n.set(r),n.set(o,r.length),n},decode(r){if(!a(r))throw new Error("checksum.decode: input should be Uint8Array");const o=r.slice(0,-e),n=t(o).slice(0,e),i=r.slice(-e);for(let t=0;t<e;t++)if(n[t]!==i[t])throw new Error("Invalid checksum");return o}}}t.utils={alphabet:n,chain:o,checksum:m,convertRadix:l,convertRadix2:f,radix:h,radix2:p,join:i,padding:s},t.base16=o(p(4),n("0123456789ABCDEF"),i("")),t.base32=o(p(5),n("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"),s(5),i("")),t.base32nopad=o(p(5),n("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"),i("")),t.base32hex=o(p(5),n("0123456789ABCDEFGHIJKLMNOPQRSTUV"),s(5),i("")),t.base32hexnopad=o(p(5),n("0123456789ABCDEFGHIJKLMNOPQRSTUV"),i("")),t.base32crockford=o(p(5),n("0123456789ABCDEFGHJKMNPQRSTVWXYZ"),i(""),c((e=>e.toUpperCase().replace(/O/g,"0").replace(/[IL]/g,"1")))),t.base64=o(p(6),n("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),s(6),i("")),t.base64nopad=o(p(6),n("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),i("")),t.base64url=o(p(6),n("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),s(6),i("")),t.base64urlnopad=o(p(6),n("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),i(""));const b=e=>o(h(58),n(e),i(""));t.base58=b("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),t.base58flickr=b("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"),t.base58xrp=b("rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz");const y=[0,2,3,5,6,7,9,10,11];t.base58xmr={encode(e){let r="";for(let a=0;a<e.length;a+=8){const o=e.subarray(a,a+8);r+=t.base58.encode(o).padStart(y[o.length],"1")}return r},decode(e){let r=[];for(let a=0;a<e.length;a+=11){const o=e.slice(a,a+11),n=y.indexOf(o.length),i=t.base58.decode(o);for(let e=0;e<i.length-n;e++)if(0!==i[e])throw new Error("base58xmr: wrong padding");r=r.concat(Array.from(i.slice(i.length-n)))}return Uint8Array.from(r)}};t.createBase58check=e=>o(m(4,(t=>e(e(t)))),t.base58),t.base58check=t.createBase58check;const v=o(n("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),i("")),w=[996825010,642813549,513874426,1027748829,705979059];function k(e){const t=e>>25;let r=(33554431&e)<<5;for(let e=0;e<w.length;e++)1==(t>>e&1)&&(r^=w[e]);return r}function E(e,t,r=1){const a=e.length;let o=1;for(let t=0;t<a;t++){const r=e.charCodeAt(t);if(r<33||r>126)throw new Error(`Invalid prefix (${e})`);o=k(o)^r>>5}o=k(o);for(let t=0;t<a;t++)o=k(o)^31&e.charCodeAt(t);for(let e of t)o=k(o)^e;for(let e=0;e<6;e++)o=k(o);return o^=r,v.encode(f([o%2**30],30,5,!1))}function B(e){const t="bech32"===e?1:734539939,r=p(5),a=r.decode,o=r.encode,n=g(a);function i(e,r=90){if("string"!=typeof e)throw new Error("bech32.decode input should be string, not "+typeof e);if(e.length<8||!1!==r&&e.length>r)throw new TypeError(`Wrong string length: ${e.length} (${e}). Expected (8..${r})`);const a=e.toLowerCase();if(e!==a&&e!==e.toUpperCase())throw new Error("String must be lowercase or uppercase");const o=a.lastIndexOf("1");if(0===o||-1===o)throw new Error('Letter "1" must be present between prefix and data only');const n=a.slice(0,o),i=a.slice(o+1);if(i.length<6)throw new Error("Data must be at least 6 characters long");const s=v.decode(i).slice(0,-6),c=E(n,s,t);if(!i.endsWith(c))throw new Error(`Invalid checksum in ${e}: expected "${c}"`);return{prefix:n,words:s}}return{encode:function(e,r,a=90){if("string"!=typeof e)throw new Error("bech32.encode prefix should be string, not "+typeof e);if(!Array.isArray(r)||r.length&&"number"!=typeof r[0])throw new Error("bech32.encode words should be array of numbers, not "+typeof r);if(0===e.length)throw new TypeError(`Invalid prefix length ${e.length}`);const o=e.length+7+r.length;if(!1!==a&&o>a)throw new TypeError(`Length ${o} exceeds limit ${a}`);const n=e.toLowerCase(),i=E(n,r,t);return`${n}1${v.encode(r)}${i}`},decode:i,decodeToBytes:function(e){const{prefix:t,words:r}=i(e,!1);return{prefix:t,words:r,bytes:a(r)}},decodeUnsafe:g(i),fromWords:a,fromWordsUnsafe:n,toWords:o}}t.bech32=B("bech32"),t.bech32m=B("bech32m"),t.utf8={encode:e=>(new TextDecoder).decode(e),decode:e=>(new TextEncoder).encode(e)},t.hex=o(p(4),n("0123456789abcdef"),i(""),c((e=>{if("string"!=typeof e||e.length%2)throw new TypeError(`hex.decode: expected string, got ${typeof e} with length ${e.length}`);return e.toLowerCase()})));const x={utf8:t.utf8,hex:t.hex,base16:t.base16,base32:t.base32,base64:t.base64,base64url:t.base64url,base58:t.base58,base58xmr:t.base58xmr},A="Invalid encoding type. Available types: utf8, hex, base16, base32, base64, base64url, base58, base58xmr";t.bytesToString=(e,t)=>{if("string"!=typeof e||!x.hasOwnProperty(e))throw new TypeError(A);if(!a(t))throw new TypeError("bytesToString() expects Uint8Array");return x[e].encode(t)},t.str=t.bytesToString;t.stringToBytes=(e,t)=>{if(!x.hasOwnProperty(e))throw new TypeError(A);if("string"!=typeof t)throw new TypeError("stringToBytes() expects string");return x[e].decode(t)},t.bytes=t.stringToBytes},2013:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HDKey=t.HARDENED_OFFSET=void 0;
|
|
24
|
-
/*! scure-bip32 - MIT License (c) 2022 Patricio Palladino, Paul Miller (paulmillr.com) */
|
|
25
|
-
const a=r(1062),o=r(5673),n=r(5754),i=r(2979),s=r(9998),c=r(4904),l=r(8241),u=r(6630),d=r(2116),f=l.secp256k1.ProjectivePoint,h=(0,d.createBase58check)(n.sha256);function p(e){return BigInt(`0x${(0,c.bytesToHex)(e)}`)}const g=(0,c.utf8ToBytes)("Bitcoin seed"),m={private:76066276,public:76067358};t.HARDENED_OFFSET=2147483648;const b=e=>{if(!Number.isSafeInteger(e)||e<0||e>2**32-1)throw new Error(`Invalid number=${e}. Should be from 0 to 2 ** 32 - 1`);const t=new Uint8Array(4);return(0,c.createView)(t).setUint32(0,e,!1),t};class y{get fingerprint(){if(!this.pubHash)throw new Error("No publicKey set!");return e=this.pubHash,(0,c.createView)(e).getUint32(0,!1);var e}get identifier(){return this.pubHash}get pubKeyHash(){return this.pubHash}get privateKey(){return this.privKeyBytes||null}get publicKey(){return this.pubKey||null}get privateExtendedKey(){const e=this.privateKey;if(!e)throw new Error("No private key");return h.encode(this.serialize(this.versions.private,(0,c.concatBytes)(new Uint8Array([0]),e)))}get publicExtendedKey(){if(!this.pubKey)throw new Error("No public key");return h.encode(this.serialize(this.versions.public,this.pubKey))}static fromMasterSeed(e,t=m){if((0,s.bytes)(e),8*e.length<128||8*e.length>512)throw new Error(`HDKey: wrong seed length=${e.length}. Should be between 128 and 512 bits; 256 bits is advised)`);const r=(0,a.hmac)(i.sha512,g,e);return new y({versions:t,chainCode:r.slice(32),privateKey:r.slice(0,32)})}static fromExtendedKey(e,t=m){const r=h.decode(e),a=(0,c.createView)(r),o=a.getUint32(0,!1),n={versions:t,depth:r[4],parentFingerprint:a.getUint32(5,!1),index:a.getUint32(9,!1),chainCode:r.slice(13,45)},i=r.slice(45),s=0===i[0];if(o!==t[s?"private":"public"])throw new Error("Version mismatch");return new y(s?{...n,privateKey:i.slice(1)}:{...n,publicKey:i})}static fromJSON(e){return y.fromExtendedKey(e.xpriv)}constructor(e){if(this.depth=0,this.index=0,this.chainCode=null,this.parentFingerprint=0,!e||"object"!=typeof e)throw new Error("HDKey.constructor must not be called directly");if(this.versions=e.versions||m,this.depth=e.depth||0,this.chainCode=e.chainCode||null,this.index=e.index||0,this.parentFingerprint=e.parentFingerprint||0,!this.depth&&(this.parentFingerprint||this.index))throw new Error("HDKey: zero depth with non-zero index/parent fingerprint");if(e.publicKey&&e.privateKey)throw new Error("HDKey: publicKey and privateKey at same time.");if(e.privateKey){if(!l.secp256k1.utils.isValidPrivateKey(e.privateKey))throw new Error("Invalid private key");this.privKey="bigint"==typeof e.privateKey?e.privateKey:p(e.privateKey),this.privKeyBytes=(t=this.privKey,(0,c.hexToBytes)(t.toString(16).padStart(64,"0"))),this.pubKey=l.secp256k1.getPublicKey(e.privateKey,!0)}else{if(!e.publicKey)throw new Error("HDKey: no public or private key provided");this.pubKey=f.fromHex(e.publicKey).toRawBytes(!0)}var t,r;this.pubHash=(r=this.pubKey,(0,o.ripemd160)((0,n.sha256)(r)))}derive(e){if(!/^[mM]'?/.test(e))throw new Error('Path must start with "m" or "M"');if(/^[mM]'?$/.test(e))return this;const r=e.replace(/^[mM]'?\//,"").split("/");let a=this;for(const e of r){const r=/^(\d+)('?)$/.exec(e),o=r&&r[1];if(!r||3!==r.length||"string"!=typeof o)throw new Error(`Invalid child index: ${e}`);let n=+o;if(!Number.isSafeInteger(n)||n>=t.HARDENED_OFFSET)throw new Error("Invalid index");"'"===r[2]&&(n+=t.HARDENED_OFFSET),a=a.deriveChild(n)}return a}deriveChild(e){if(!this.pubKey||!this.chainCode)throw new Error("No publicKey or chainCode set");let r=b(e);if(e>=t.HARDENED_OFFSET){const e=this.privateKey;if(!e)throw new Error("Could not derive hardened child key");r=(0,c.concatBytes)(new Uint8Array([0]),e,r)}else r=(0,c.concatBytes)(this.pubKey,r);const o=(0,a.hmac)(i.sha512,this.chainCode,r),n=p(o.slice(0,32)),s=o.slice(32);if(!l.secp256k1.utils.isValidPrivateKey(n))throw new Error("Tweak bigger than curve order");const d={versions:this.versions,chainCode:s,depth:this.depth+1,parentFingerprint:this.fingerprint,index:e};try{if(this.privateKey){const e=(0,u.mod)(this.privKey+n,l.secp256k1.CURVE.n);if(!l.secp256k1.utils.isValidPrivateKey(e))throw new Error("The tweak was out of range or the resulted private key is invalid");d.privateKey=e}else{const e=f.fromHex(this.pubKey).add(f.fromPrivateKey(n));if(e.equals(f.ZERO))throw new Error("The tweak was equal to negative P, which made the result key invalid");d.publicKey=e.toRawBytes(!0)}return new y(d)}catch(t){return this.deriveChild(e+1)}}sign(e){if(!this.privateKey)throw new Error("No privateKey set!");return(0,s.bytes)(e,32),l.secp256k1.sign(e,this.privKey).toCompactRawBytes()}verify(e,t){if((0,s.bytes)(e,32),(0,s.bytes)(t,64),!this.publicKey)throw new Error("No publicKey set!");let r;try{r=l.secp256k1.Signature.fromCompact(t)}catch(e){return!1}return l.secp256k1.verify(r,e,this.publicKey)}wipePrivateData(){return this.privKey=void 0,this.privKeyBytes&&(this.privKeyBytes.fill(0),this.privKeyBytes=void 0),this}toJSON(){return{xpriv:this.privateExtendedKey,xpub:this.publicExtendedKey}}serialize(e,t){if(!this.chainCode)throw new Error("No chainCode set");return(0,s.bytes)(t,33),(0,c.concatBytes)(b(e),new Uint8Array([this.depth]),b(this.parentFingerprint),b(this.index),this.chainCode,t)}}t.HDKey=y},9637:e=>{"use strict";e.exports=function(e){if(e.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),r=0;r<t.length;r++)t[r]=255;for(var a=0;a<e.length;a++){var o=e.charAt(a),n=o.charCodeAt(0);if(255!==t[n])throw new TypeError(o+" is ambiguous");t[n]=a}var i=e.length,s=e.charAt(0),c=Math.log(i)/Math.log(256),l=Math.log(256)/Math.log(i);function u(e){if("string"!=typeof e)throw new TypeError("Expected String");if(0===e.length)return new Uint8Array;for(var r=0,a=0,o=0;e[r]===s;)a++,r++;for(var n=(e.length-r)*c+1>>>0,l=new Uint8Array(n);e[r];){var u=t[e.charCodeAt(r)];if(255===u)return;for(var d=0,f=n-1;(0!==u||d<o)&&-1!==f;f--,d++)u+=i*l[f]>>>0,l[f]=u%256>>>0,u=u/256>>>0;if(0!==u)throw new Error("Non-zero carry");o=d,r++}for(var h=n-o;h!==n&&0===l[h];)h++;for(var p=new Uint8Array(a+(n-h)),g=a;h!==n;)p[g++]=l[h++];return p}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(0===t.length)return"";for(var r=0,a=0,o=0,n=t.length;o!==n&&0===t[o];)o++,r++;for(var c=(n-o)*l+1>>>0,u=new Uint8Array(c);o!==n;){for(var d=t[o],f=0,h=c-1;(0!==d||f<a)&&-1!==h;h--,f++)d+=256*u[h]>>>0,u[h]=d%i>>>0,d=d/i>>>0;if(0!==d)throw new Error("Non-zero carry");a=f,o++}for(var p=c-a;p!==c&&0===u[p];)p++;for(var g=s.repeat(r);p<c;++p)g+=e.charAt(u[p]);return g},decodeUnsafe:u,decode:function(e){var t=u(e);if(t)return t;throw new Error("Non-base"+i+" character")}}}},7961:(e,t)=>{"use strict";t.byteLength=function(e){var t=s(e),r=t[0],a=t[1];return 3*(r+a)/4-a},t.toByteArray=function(e){var t,r,n=s(e),i=n[0],c=n[1],l=new o(function(e,t,r){return 3*(t+r)/4-r}(0,i,c)),u=0,d=c>0?i-4:i;for(r=0;r<d;r+=4)t=a[e.charCodeAt(r)]<<18|a[e.charCodeAt(r+1)]<<12|a[e.charCodeAt(r+2)]<<6|a[e.charCodeAt(r+3)],l[u++]=t>>16&255,l[u++]=t>>8&255,l[u++]=255&t;2===c&&(t=a[e.charCodeAt(r)]<<2|a[e.charCodeAt(r+1)]>>4,l[u++]=255&t);1===c&&(t=a[e.charCodeAt(r)]<<10|a[e.charCodeAt(r+1)]<<4|a[e.charCodeAt(r+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t);return l},t.fromByteArray=function(e){for(var t,a=e.length,o=a%3,n=[],i=16383,s=0,l=a-o;s<l;s+=i)n.push(c(e,s,s+i>l?l:s+i));1===o?(t=e[a-1],n.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[a-2]<<8)+e[a-1],n.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return n.join("")};for(var r=[],a=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0;i<64;++i)r[i]=n[i],a[n.charCodeAt(i)]=i;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function c(e,t,a){for(var o,n,i=[],s=t;s<a;s+=3)o=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),i.push(r[(n=o)>>18&63]+r[n>>12&63]+r[n>>6&63]+r[63&n]);return i.join("")}a["-".charCodeAt(0)]=62,a["_".charCodeAt(0)]=63},2778:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a={};let o;t.wordlists=a,t._default=o;try{t._default=o=r(2607),a.czech=o}catch(e){}try{t._default=o=r(5898),a.chinese_simplified=o}catch(e){}try{t._default=o=r(81),a.chinese_traditional=o}catch(e){}try{t._default=o=r(5428),a.korean=o}catch(e){}try{t._default=o=r(5040),a.french=o}catch(e){}try{t._default=o=r(5576),a.italian=o}catch(e){}try{t._default=o=r(5376),a.spanish=o}catch(e){}try{t._default=o=r(7967),a.japanese=o,a.JA=o}catch(e){}try{t._default=o=r(7357),a.portuguese=o}catch(e){}try{t._default=o=r(7736),a.english=o,a.EN=o}catch(e){}},2374:(e,t,r)=>{"use strict";var a=r(9922).hp;Object.defineProperty(t,"__esModule",{value:!0});const o=r(5754),n=r(2979),i=r(592),s=r(4904),c=r(2778);let l=c._default;const u="Invalid mnemonic",d="Invalid entropy",f="Invalid mnemonic checksum",h="A wordlist is required but a default could not be found.\nPlease pass a 2048 word array explicitly.";function p(e){return(e||"").normalize("NFKD")}function g(e,t,r){for(;e.length<r;)e=t+e;return e}function m(e){return parseInt(e,2)}function b(e){return e.map((e=>g(e.toString(2),"0",8))).join("")}function y(e){const t=8*e.length/32,r=o.sha256(Uint8Array.from(e));return b(Array.from(r)).slice(0,t)}function v(e){return"mnemonic"+(e||"")}function w(e,t){if(!(t=t||l))throw new Error(h);const r=p(e).split(" ");if(r.length%3!=0)throw new Error(u);const o=r.map((e=>{const r=t.indexOf(e);if(-1===r)throw new Error(u);return g(r.toString(2),"0",11)})).join(""),n=32*Math.floor(o.length/33),i=o.slice(0,n),s=o.slice(n),c=i.match(/(.{1,8})/g).map(m);if(c.length<16)throw new Error(d);if(c.length>32)throw new Error(d);if(c.length%4!=0)throw new Error(d);const b=a.from(c);if(y(b)!==s)throw new Error(f);return b.toString("hex")}function k(e,t){if(a.isBuffer(e)||(e=a.from(e,"hex")),!(t=t||l))throw new Error(h);if(e.length<16)throw new TypeError(d);if(e.length>32)throw new TypeError(d);if(e.length%4!=0)throw new TypeError(d);const r=(b(Array.from(e))+y(e)).match(/(.{1,11})/g).map((e=>{const r=m(e);return t[r]}));return"あいこくしん"===t[0]?r.join(" "):r.join(" ")}t.mnemonicToSeedSync=function(e,t){const r=Uint8Array.from(a.from(p(e),"utf8")),o=Uint8Array.from(a.from(v(p(t)),"utf8")),s=i.pbkdf2(n.sha512,r,o,{c:2048,dkLen:64});return a.from(s)},t.mnemonicToSeed=function(e,t){const r=Uint8Array.from(a.from(p(e),"utf8")),o=Uint8Array.from(a.from(v(p(t)),"utf8"));return i.pbkdf2Async(n.sha512,r,o,{c:2048,dkLen:64}).then((e=>a.from(e)))},t.mnemonicToEntropy=w,t.entropyToMnemonic=k,t.generateMnemonic=function(e,t,r){if((e=e||128)%32!=0)throw new TypeError(d);return k((t=t||(e=>a.from(s.randomBytes(e))))(e/8),r)},t.validateMnemonic=function(e,t){try{w(e,t)}catch(e){return!1}return!0},t.setDefaultWordlist=function(e){const t=c.wordlists[e];if(!t)throw new Error('Could not find wordlist for language "'+e+'"');l=t},t.getDefaultWordlist=function(){if(!l)throw new Error("No Default Wordlist set");return Object.keys(c.wordlists).filter((e=>"JA"!==e&&"EN"!==e&&c.wordlists[e].every(((e,t)=>e===l[t]))))[0]};var E=r(2778);t.wordlists=E.wordlists},1919:e=>{e.exports=[[2147483648,"BTC","Bitcoin"],[2147483649,"","Testnet (all coins)"],[2147483650,"LTC","Litecoin"],[2147483651,"DOGE","Dogecoin"],[2147483652,"RDD","Reddcoin"],[2147483653,"DASH","Dash (ex Darkcoin)"],[2147483654,"PPC","Peercoin"],[2147483655,"NMC","Namecoin"],[2147483656,"FTC","Feathercoin"],[2147483657,"XCP","Counterparty"],[2147483658,"BLK","Blackcoin"],[2147483659,"NSR","NuShares"],[2147483660,"NBT","NuBits"],[2147483661,"MZC","Mazacoin"],[2147483662,"VIA","Viacoin"],[2147483663,"XCH","ClearingHouse"],[2147483664,"RBY","Rubycoin"],[2147483665,"GRS","Groestlcoin"],[2147483666,"DGC","Digitalcoin"],[2147483667,"CCN","Cannacoin"],[2147483668,"DGB","DigiByte"],[2147483669,"","Open Assets"],[2147483670,"MONA","Monacoin"],[2147483671,"CLAM","Clams"],[2147483672,"XPM","Primecoin"],[2147483673,"NEOS","Neoscoin"],[2147483674,"JBS","Jumbucks"],[2147483675,"ZRC","ziftrCOIN"],[2147483676,"VTC","Vertcoin"],[2147483677,"NXT","NXT"],[2147483678,"BURST","Burst"],[2147483679,"MUE","MonetaryUnit"],[2147483680,"ZOOM","Zoom"],[2147483681,"VASH","Virtual Cash also known as VPNcoin"],[2147483682,"CDN","Canada eCoin"],[2147483683,"SDC","ShadowCash"],[2147483684,"PKB","ParkByte"],[2147483685,"PND","Pandacoin"],[2147483686,"START","StartCOIN"],[2147483687,"MOIN","MOIN"],[2147483688,"EXP","Expanse"],[2147483689,"EMC2","Einsteinium"],[2147483690,"DCR","Decred"],[2147483691,"XEM","NEM"],[2147483692,"PART","Particl"],[2147483693,"ARG","Argentum (dead)"],[2147483694,"","Libertas"],[2147483695,"","Posw coin"],[2147483696,"SHR","Shreeji"],[2147483697,"GCR","Global Currency Reserve (GCRcoin)"],[2147483698,"NVC","Novacoin"],[2147483699,"AC","Asiacoin"],[2147483700,"BTCD","BitcoinDark"],[2147483701,"DOPE","Dopecoin"],[2147483702,"TPC","Templecoin"],[2147483703,"AIB","AIB"],[2147483704,"EDRC","EDRCoin"],[2147483705,"SYS","Syscoin"],[2147483706,"SLR","Solarcoin"],[2147483707,"SMLY","Smileycoin"],[2147483708,"ETH","Ether"],[2147483709,"ETC","Ether Classic"],[2147483710,"PSB","Pesobit"],[2147483711,"LDCN","Landcoin (dead)"],[2147483712,"","Open Chain"],[2147483713,"XBC","Bitcoinplus"],[2147483714,"IOP","Internet of People"],[2147483715,"NXS","Nexus"],[2147483716,"INSN","InsaneCoin"],[2147483717,"OK","OKCash"],[2147483718,"BRIT","BritCoin"],[2147483719,"CMP","Compcoin"],[2147483720,"CRW","Crown"],[2147483721,"BELA","BelaCoin"],[2147483722,"ICX","ICON"],[2147483723,"FJC","FujiCoin"],[2147483724,"MIX","MIX"],[2147483725,"XVG","Verge Currency"],[2147483726,"EFL","Electronic Gulden"],[2147483727,"CLUB","ClubCoin"],[2147483728,"RICHX","RichCoin"],[2147483729,"POT","Potcoin"],[2147483730,"QRK","Quarkcoin"],[2147483731,"TRC","Terracoin"],[2147483732,"GRC","Gridcoin"],[2147483733,"AUR","Auroracoin"],[2147483734,"IXC","IXCoin"],[2147483735,"NLG","Gulden"],[2147483736,"BITB","BitBean"],[2147483737,"BTA","Bata"],[2147483738,"XMY","Myriadcoin"],[2147483739,"BSD","BitSend"],[2147483740,"UNO","Unobtanium"],[2147483741,"MTR","MasterTrader"],[2147483742,"GB","GoldBlocks"],[2147483743,"SHM","Saham"],[2147483744,"CRX","Chronos"],[2147483745,"BIQ","Ubiquoin"],[2147483746,"EVO","Evotion"],[2147483747,"STO","SaveTheOcean"],[2147483748,"BIGUP","BigUp"],[2147483749,"GAME","GameCredits"],[2147483750,"DLC","Dollarcoins"],[2147483751,"ZYD","Zayedcoin"],[2147483752,"DBIC","Dubaicoin"],[2147483753,"STRAT","Stratis"],[2147483754,"SH","Shilling"],[2147483755,"MARS","MarsCoin"],[2147483756,"UBQ","Ubiq"],[2147483757,"PTC","Pesetacoin"],[2147483758,"NRO","Neurocoin"],[2147483759,"ARK","ARK"],[2147483760,"USC","UltimateSecureCashMain"],[2147483761,"THC","Hempcoin"],[2147483762,"LINX","Linx"],[2147483763,"ECN","Ecoin"],[2147483764,"DNR","Denarius"],[2147483765,"PINK","Pinkcoin"],[2147483766,"ATOM","Atom"],[2147483767,"PIVX","Pivx"],[2147483768,"FLASH","Flashcoin"],[2147483769,"ZEN","Zencash"],[2147483770,"PUT","Putincoin"],[2147483771,"ZNY","BitZeny"],[2147483772,"UNIFY","Unify"],[2147483773,"XST","StealthCoin"],[2147483774,"BRK","Breakout Coin"],[2147483775,"VC","Vcash"],[2147483776,"XMR","Monero"],[2147483777,"VOX","Voxels"],[2147483778,"NAV","NavCoin"],[2147483779,"FCT","Factom Factoids"],[2147483780,"EC","Factom Entry Credits"],[2147483781,"ZEC","Zcash"],[2147483782,"LSK","Lisk"],[2147483783,"STEEM","Steem"],[2147483784,"XZC","ZCoin"],[2147483785,"RBTC","RSK"],[2147483786,"","Giftblock"],[2147483787,"RPT","RealPointCoin"],[2147483788,"LBC","LBRY Credits"],[2147483789,"KMD","Komodo"],[2147483790,"BSQ","bisq Token"],[2147483791,"RIC","Riecoin"],[2147483792,"XRP","Ripple"],[2147483793,"BCH","Bitcoin Cash"],[2147483794,"NEBL","Neblio"],[2147483795,"ZCL","ZClassic"],[2147483796,"XLM","Stellar Lumens"],[2147483797,"NLC2","NoLimitCoin2"],[2147483798,"WHL","WhaleCoin"],[2147483799,"ERC","EuropeCoin"],[2147483800,"DMD","Diamond"],[2147483801,"BTM","Bytom"],[2147483802,"BIO","Biocoin"],[2147483803,"XWCC","Whitecoin Classic"],[2147483804,"BTG","Bitcoin Gold"],[2147483805,"BTC2X","Bitcoin 2x"],[2147483806,"SSN","SuperSkynet"],[2147483807,"TOA","TOACoin"],[2147483808,"BTX","Bitcore"],[2147483809,"ACC","Adcoin"],[2147483810,"BCO","Bridgecoin"],[2147483811,"ELLA","Ellaism"],[2147483812,"PIRL","Pirl"],[2147483813,"XNO","Nano"],[2147483814,"VIVO","Vivo"],[2147483815,"FRST","Firstcoin"],[2147483816,"HNC","Helleniccoin"],[2147483817,"BUZZ","BUZZ"],[2147483818,"MBRS","Ember"],[2147483819,"HC","Hcash"],[2147483820,"HTML","HTMLCOIN"],[2147483821,"ODN","Obsidian"],[2147483822,"ONX","OnixCoin"],[2147483823,"RVN","Ravencoin"],[2147483824,"GBX","GoByte"],[2147483825,"BTCZ","BitcoinZ"],[2147483826,"POA","Poa"],[2147483827,"NYC","NewYorkCoin"],[2147483828,"MXT","MarteXcoin"],[2147483829,"WC","Wincoin"],[2147483830,"MNX","Minexcoin"],[2147483831,"BTCP","Bitcoin Private"],[2147483832,"MUSIC","Musicoin"],[2147483833,"BCA","Bitcoin Atom"],[2147483834,"CRAVE","Crave"],[2147483835,"STAK","STRAKS"],[2147483836,"WBTC","World Bitcoin"],[2147483837,"LCH","LiteCash"],[2147483838,"EXCL","ExclusiveCoin"],[2147483839,"","Lynx"],[2147483840,"LCC","LitecoinCash"],[2147483841,"XFE","Feirm"],[2147483842,"EOS","EOS"],[2147483843,"TRX","Tron"],[2147483844,"KOBO","Kobocoin"],[2147483845,"HUSH","HUSH"],[2147483846,"BANANO","Bananos"],[2147483847,"ETF","ETF"],[2147483848,"OMNI","Omni"],[2147483849,"BIFI","BitcoinFile"],[2147483850,"UFO","Uniform Fiscal Object"],[2147483851,"CNMC","Cryptonodes"],[2147483852,"BCN","Bytecoin"],[2147483853,"RIN","Ringo"],[2147483854,"ATP","PlatON"],[2147483855,"EVT","everiToken"],[2147483856,"ATN","ATN"],[2147483857,"BIS","Bismuth"],[2147483858,"NEET","NEETCOIN"],[2147483859,"BOPO","BopoChain"],[2147483860,"OOT","Utrum"],[2147483861,"ALIAS","Alias"],[2147483862,"MONK","Monkey Project"],[2147483863,"BOXY","BoxyCoin"],[2147483864,"FLO","Flo"],[2147483865,"MEC","Megacoin"],[2147483866,"BTDX","BitCloud"],[2147483867,"XAX","Artax"],[2147483868,"ANON","ANON"],[2147483869,"LTZ","LitecoinZ"],[2147483870,"BITG","Bitcoin Green"],[2147483871,"ICP","Internet Computer (DFINITY)"],[2147483872,"SMART","Smartcash"],[2147483873,"XUEZ","XUEZ"],[2147483874,"HLM","Helium"],[2147483875,"WEB","Webchain"],[2147483876,"ACM","Actinium"],[2147483877,"NOS","NOS Stable Coins"],[2147483878,"BITC","BitCash"],[2147483879,"HTH","Help The Homeless Coin"],[2147483880,"TZC","Trezarcoin"],[2147483881,"VAR","Varda"],[2147483882,"IOV","IOV"],[2147483883,"FIO","FIO"],[2147483884,"BSV","BitcoinSV"],[2147483885,"DXN","DEXON"],[2147483886,"QRL","Quantum Resistant Ledger"],[2147483887,"PCX","ChainX"],[2147483888,"LOKI","Loki"],[2147483889,"","Imagewallet"],[2147483890,"NIM","Nimiq"],[2147483891,"SOV","Sovereign Coin"],[2147483892,"JCT","Jibital Coin"],[2147483893,"SLP","Simple Ledger Protocol"],[2147483894,"EWT","Energy Web"],[2147483895,"UC","Ulord"],[2147483896,"EXOS","EXOS"],[2147483897,"ECA","Electra"],[2147483898,"SOOM","Soom"],[2147483899,"XRD","Redstone"],[2147483900,"FREE","FreeCoin"],[2147483901,"NPW","NewPowerCoin"],[2147483902,"BST","BlockStamp"],[2147483903,"","SmartHoldem"],[2147483904,"NANO","Bitcoin Nano"],[2147483905,"BTCC","Bitcoin Core"],[2147483906,"","Zen Protocol"],[2147483907,"ZEST","Zest"],[2147483908,"ABT","ArcBlock"],[2147483909,"PION","Pion"],[2147483910,"DT3","DreamTeam3"],[2147483911,"ZBUX","Zbux"],[2147483912,"KPL","Kepler"],[2147483913,"TPAY","TokenPay"],[2147483914,"ZILLA","ChainZilla"],[2147483915,"ANK","Anker"],[2147483916,"BCC","BCChain"],[2147483917,"HPB","HPB"],[2147483918,"ONE","ONE"],[2147483919,"SBC","SBC"],[2147483920,"IPC","IPChain"],[2147483921,"DMTC","Dominantchain"],[2147483922,"OGC","Onegram"],[2147483923,"SHIT","Shitcoin"],[2147483924,"ANDES","Andescoin"],[2147483925,"AREPA","Arepacoin"],[2147483926,"BOLI","Bolivarcoin"],[2147483927,"RIL","Rilcoin"],[2147483928,"HTR","Hathor Network"],[2147483929,"FCTID","Factom ID"],[2147483930,"BRAVO","BRAVO"],[2147483931,"ALGO","Algorand"],[2147483932,"BZX","Bitcoinzero"],[2147483933,"GXX","GravityCoin"],[2147483934,"HEAT","HEAT"],[2147483935,"XDN","DigitalNote"],[2147483936,"FSN","FUSION"],[2147483937,"CPC","Capricoin"],[2147483938,"BOLD","Bold"],[2147483939,"IOST","IOST"],[2147483940,"TKEY","Tkeycoin"],[2147483941,"USE","Usechain"],[2147483942,"BCZ","BitcoinCZ"],[2147483943,"IOC","Iocoin"],[2147483944,"ASF","Asofe"],[2147483945,"MASS","MASS"],[2147483946,"FAIR","FairCoin"],[2147483947,"NUKO","Nekonium"],[2147483948,"GNX","Genaro Network"],[2147483949,"DIVI","Divi Project"],[2147483950,"CMT","Community"],[2147483951,"EUNO","EUNO"],[2147483952,"IOTX","IoTeX"],[2147483953,"ONION","DeepOnion"],[2147483954,"8BIT","8Bit"],[2147483955,"ATC","AToken Coin"],[2147483956,"BTS","Bitshares"],[2147483957,"CKB","Nervos CKB"],[2147483958,"UGAS","Ultrain"],[2147483959,"ADS","Adshares"],[2147483960,"ARA","Aura"],[2147483961,"ZIL","Zilliqa"],[2147483962,"MOAC","MOAC"],[2147483963,"SWTC","SWTC"],[2147483964,"VNSC","vnscoin"],[2147483965,"PLUG","Pl^g"],[2147483966,"MAN","Matrix AI Network"],[2147483967,"ECC","ECCoin"],[2147483968,"RPD","Rapids"],[2147483969,"RAP","Rapture"],[2147483970,"GARD","Hashgard"],[2147483971,"ZER","Zero"],[2147483972,"EBST","eBoost"],[2147483973,"SHARD","Shard"],[2147483974,"MRX","Metrix Coin"],[2147483975,"CMM","Commercium"],[2147483976,"BLOCK","Blocknet"],[2147483977,"AUDAX","AUDAX"],[2147483978,"LUNA","Terra"],[2147483979,"ZPM","zPrime"],[2147483980,"KUVA","Kuva Utility Note"],[2147483981,"MEM","MemCoin"],[2147483982,"CS","Credits"],[2147483983,"SWIFT","SwiftCash"],[2147483984,"FIX","FIX"],[2147483985,"CPC","CPChain"],[2147483986,"VGO","VirtualGoodsToken"],[2147483987,"DVT","DeVault"],[2147483988,"N8V","N8VCoin"],[2147483989,"MTNS","OmotenashiCoin"],[2147483990,"BLAST","BLAST"],[2147483991,"DCT","DECENT"],[2147483992,"AUX","Auxilium"],[2147483993,"USDP","USDP"],[2147483994,"HTDF","HTDF"],[2147483995,"YEC","Ycash"],[2147483996,"QLC","QLC Chain"],[2147483997,"TEA","Icetea Blockchain"],[2147483998,"ARW","ArrowChain"],[2147483999,"MDM","Medium"],[2147484e3,"CYB","Cybex"],[2147484001,"LTO","LTO Network"],[2147484002,"DOT","Polkadot"],[2147484003,"AEON","Aeon"],[2147484004,"RES","Resistance"],[2147484005,"AYA","Aryacoin"],[2147484006,"DAPS","Dapscoin"],[2147484007,"CSC","CasinoCoin"],[2147484008,"VSYS","V Systems"],[2147484009,"NOLLAR","Nollar"],[2147484010,"XNOS","NOS"],[2147484011,"CPU","CPUchain"],[2147484012,"LAMB","Lambda Storage Chain"],[2147484013,"VCT","ValueCyber"],[2147484014,"CZR","Canonchain"],[2147484015,"ABBC","ABBC"],[2147484016,"HET","HET"],[2147484017,"XAS","Asch"],[2147484018,"VDL","Vidulum"],[2147484019,"MED","MediBloc"],[2147484020,"ZVC","ZVChain"],[2147484021,"VESTX","Vestx"],[2147484022,"DBT","DarkBit"],[2147484023,"SEOS","SuperEOS"],[2147484024,"MXW","Maxonrow"],[2147484025,"ZNZ","ZENZO"],[2147484026,"XCX","XChain"],[2147484027,"SOX","SonicX"],[2147484028,"NYZO","Nyzo"],[2147484029,"ULC","ULCoin"],[2147484030,"RYO","Ryo Currency"],[2147484031,"KAL","Kaleidochain"],[2147484032,"XSN","Stakenet"],[2147484033,"DOGEC","DogeCash"],[2147484034,"BMV","Bitcoin Matteo's Vision"],[2147484035,"QBC","Quebecoin"],[2147484036,"IMG","ImageCoin"],[2147484037,"QOS","QOS"],[2147484038,"PKT","PKT"],[2147484039,"LHD","LitecoinHD"],[2147484040,"CENNZ","CENNZnet"],[2147484041,"HSN","Hyper Speed Network"],[2147484042,"CRO","Crypto.org Chain"],[2147484043,"UMBRU","Umbru"],[2147484044,"EVER","Everscale"],[2147484045,"NEAR","NEAR Protocol"],[2147484046,"XPC","XPChain"],[2147484047,"ZOC","01coin"],[2147484048,"NIX","NIX"],[2147484049,"UC","Utopiacoin"],[2147484050,"GALI","Galilel"],[2147484051,"OLT","Oneledger"],[2147484052,"XBI","XBI"],[2147484053,"DONU","DONU"],[2147484054,"EARTHS","Earths"],[2147484055,"HDD","HDDCash"],[2147484056,"SUGAR","Sugarchain"],[2147484057,"AILE","AileCoin"],[2147484058,"TENT","TENT"],[2147484059,"TAN","Tangerine Network"],[2147484060,"AIN","AIN"],[2147484061,"MSR","Masari"],[2147484062,"SUMO","Sumokoin"],[2147484063,"ETN","Electroneum"],[2147484064,"BYTZ","BYTZ"],[2147484065,"WOW","Wownero"],[2147484066,"XTNC","XtendCash"],[2147484067,"LTHN","Lethean"],[2147484068,"NODE","NodeHost"],[2147484069,"AGM","Argoneum"],[2147484070,"CCX","Conceal Network"],[2147484071,"TNET","Title Network"],[2147484072,"TELOS","TelosCoin"],[2147484073,"AION","Aion"],[2147484074,"BC","Bitcoin Confidential"],[2147484075,"KTV","KmushiCoin"],[2147484076,"ZCR","ZCore"],[2147484077,"ERG","Ergo"],[2147484078,"PESO","Criptopeso"],[2147484079,"BTC2","Bitcoin 2"],[2147484080,"XRPHD","XRPHD"],[2147484081,"WE","WE Coin"],[2147484082,"KSM","Kusama"],[2147484083,"PCN","Peepcoin"],[2147484084,"NCH","NetCloth"],[2147484085,"ICU","CHIPO"],[2147484086,"LN","LINK"],[2147484087,"DTP","DeVault Token Protocol"],[2147484088,"BTCR","Bitcoin Royale"],[2147484089,"AERGO","AERGO"],[2147484090,"XTH","Dothereum"],[2147484091,"LV","Lava"],[2147484092,"PHR","Phore"],[2147484093,"VITAE","Vitae"],[2147484094,"COCOS","Cocos-BCX"],[2147484095,"DIN","Dinero"],[2147484096,"SPL","Simplicity"],[2147484097,"YCE","MYCE"],[2147484098,"XLR","Solaris"],[2147484099,"KTS","Klimatas"],[2147484100,"DGLD","DGLD"],[2147484101,"XNS","Insolar"],[2147484102,"EM","EMPOW"],[2147484103,"SHN","ShineBlocks"],[2147484104,"SEELE","Seele"],[2147484105,"AE","æternity"],[2147484106,"ODX","ObsidianX"],[2147484107,"KAVA","Kava"],[2147484108,"GLEEC","GLEEC"],[2147484109,"FIL","Filecoin"],[2147484110,"RUTA","Rutanio"],[2147484111,"CSDT","CSDT"],[2147484112,"ETI","EtherInc"],[2147484113,"ZSLP","Zclassic Simple Ledger Protocol"],[2147484114,"ERE","EtherCore"],[2147484115,"DX","DxChain Token"],[2147484116,"CPS","Capricoin+"],[2147484117,"BTH","Bithereum"],[2147484118,"MESG","MESG"],[2147484119,"FIMK","FIMK"],[2147484120,"AR","Arweave"],[2147484121,"OGO","Origo"],[2147484122,"ROSE","Oasis Network"],[2147484123,"BARE","BARE Network"],[2147484124,"GLEEC","GleecBTC"],[2147484125,"CLR","Color Coin"],[2147484126,"RNG","Ring"],[2147484127,"OLO","Tool Global"],[2147484128,"PEXA","Pexa"],[2147484129,"MOON","Mooncoin"],[2147484130,"OCEAN","Ocean Protocol"],[2147484131,"BNT","Bluzelle Native"],[2147484132,"AMO","AMO Blockchain"],[2147484133,"FCH","FreeCash"],[2147484134,"LAT","LatticeX"],[2147484135,"COIN","Bitcoin Bank"],[2147484136,"VEO","Amoveo"],[2147484137,"CCA","Counos Coin"],[2147484138,"GFN","Graphene"],[2147484139,"BIP","Minter Network"],[2147484140,"KPG","Kunpeng Network"],[2147484141,"FIN","FINL Chain"],[2147484142,"BAND","Band"],[2147484143,"DROP","Dropil"],[2147484144,"BHT","Bluehelix Chain"],[2147484145,"LYRA","Scrypta"],[2147484146,"CS","Credits"],[2147484147,"RUPX","Rupaya"],[2147484148,"THETA","Theta"],[2147484149,"SOL","Solana"],[2147484150,"THT","ThoughtAI"],[2147484151,"CFX","Conflux"],[2147484152,"KUMA","Kumacoin"],[2147484153,"HASH","Provenance"],[2147484154,"CSPR","Casper"],[2147484155,"EARTH","EARTH"],[2147484156,"ERD","Elrond"],[2147484157,"CHI","Xaya"],[2147484158,"KOTO","Koto"],[2147484159,"OTC","θ"],[2147484160,"XRD","Radiant"],[2147484161,"SEELEN","Seele-N"],[2147484162,"AETH","AETH"],[2147484163,"DNA","Idena"],[2147484164,"VEE","Virtual Economy Era"],[2147484165,"SIERRA","SierraCoin"],[2147484166,"LET","Linkeye"],[2147484167,"BSC","Bitcoin Smart Contract"],[2147484168,"BTCV","BitcoinVIP"],[2147484169,"ABA","Dabacus"],[2147484170,"SCC","StakeCubeCoin"],[2147484171,"EDG","Edgeware"],[2147484172,"AMS","AmsterdamCoin"],[2147484173,"GOSS","GOSSIP Coin"],[2147484174,"BU","BUMO"],[2147484175,"GRAM","GRAM"],[2147484176,"YAP","Yapstone"],[2147484177,"SCRT","Secret Network"],[2147484178,"NOVO","Novo"],[2147484179,"GHOST","Ghost"],[2147484180,"HST","HST"],[2147484181,"PRJ","ProjectCoin"],[2147484182,"YOU","YOUChain"],[2147484183,"XHV","Haven Protocol"],[2147484184,"BYND","Beyondcoin"],[2147484185,"JOYS","Joys Digital"],[2147484186,"VAL","Valorbit"],[2147484187,"FLOW","Flow"],[2147484188,"SMESH","Spacemesh Coin"],[2147484189,"SCDO","SCDO"],[2147484190,"IQS","IQ-Cash"],[2147484191,"BIND","Compendia"],[2147484192,"COINEVO","Coinevo"],[2147484193,"SCRIBE","Scribe"],[2147484194,"HYN","Hyperion"],[2147484195,"BHP","BHP"],[2147484196,"BBC","BigBang Core"],[2147484197,"MKF","MarketFinance"],[2147484198,"XDC","XinFin.Network"],[2147484199,"STR","Straightedge"],[2147484200,"SUM","Sumcoin"],[2147484201,"HBC","HuobiChain"],[2147484202,"---","reserved"],[2147484203,"BCS","Bitcoin Smart"],[2147484204,"KTS","Kratos"],[2147484205,"LKR","Lkrcoin"],[2147484206,"TAO","Tao"],[2147484207,"XWC","Whitecoin"],[2147484208,"DEAL","DEAL"],[2147484209,"NTY","Nexty"],[2147484210,"TOP","TOP NetWork"],[2147484211,"STARS","Stargaze"],[2147484212,"AG","Agoric"],[2147484213,"CICO","Coinicles"],[2147484214,"IRIS","Irisnet"],[2147484215,"NCG","Nine Chronicles"],[2147484216,"LRG","Large Coin"],[2147484217,"SERO","Super Zero Protocol"],[2147484218,"BDX","Beldex"],[2147484219,"CCXX","Counos X"],[2147484220,"SLS","Saluscoin"],[2147484221,"SRM","Serum"],[2147484222,"---","reserved"],[2147484223,"VIVT","VIDT Datalink"],[2147484224,"BPS","BitcoinPoS"],[2147484225,"NKN","NKN"],[2147484226,"ICL","ILCOIN"],[2147484227,"BONO","Bonorum"],[2147484228,"PLC","PLATINCOIN"],[2147484229,"DUN","Dune"],[2147484230,"DMCH","Darmacash"],[2147484231,"CTC","Creditcoin"],[2147484232,"KELP","Haidai Network"],[2147484233,"GBCR","GoldBCR"],[2147484234,"XDAG","XDAG"],[2147484235,"PRV","Incognito Privacy"],[2147484236,"SCAP","SafeCapital"],[2147484237,"TFUEL","Theta Fuel"],[2147484238,"GTM","Gentarium"],[2147484239,"RNL","RentalChain"],[2147484240,"GRIN","Grin"],[2147484241,"MWC","MimbleWimbleCoin"],[2147484242,"DOCK","Dock"],[2147484243,"POLYX","Polymesh"],[2147484244,"DIVER","Divergenti"],[2147484245,"XEP","Electra Protocol"],[2147484246,"APN","Apron"],[2147484247,"TFC","Turbo File Coin"],[2147484248,"UTE","Unit-e"],[2147484249,"MTC","Metacoin"],[2147484250,"NC","NobodyCash"],[2147484251,"XINY","Xinyuehu"],[2147484252,"DYN","Dynamo"],[2147484253,"BUFS","Buffer"],[2147484254,"STOS","Stratos"],[2147484255,"TON","TON"],[2147484256,"TAFT","TAFT"],[2147484257,"HYDRA","HYDRA"],[2147484258,"NOR","Noir"],[2147484259,"","Manta Network Private Asset"],[2147484260,"","Calamari Network Private Asset"],[2147484261,"WCN","Widecoin"],[2147484262,"OPT","Optimistic Ethereum"],[2147484263,"PSWAP","PolkaSwap"],[2147484264,"VAL","Validator"],[2147484265,"XOR","Sora"],[2147484266,"SSP","SmartShare"],[2147484267,"DEI","DeimosX"],[2147484268,"AXL","Axelar"],[2147484269,"ZERO","Singularity"],[2147484270,"ALPHA","AlphaDAO"],[2147484271,"BDCASH","BDCash Protocol"],[2147484272,"NOBL","Nobility"],[2147484273,"EAST","Eastcoin"],[2147484274,"KDA","Kadena"],[2147484275,"SOUL","Phantasma"],[2147484276,"LORE","Gitopia"],[2147484277,"FNR","Fincor"],[2147484278,"NEXUS","Nexus"],[2147484279,"QTZ","Quartz"],[2147484281,"CALL","Callchain"],[2147484283,"POKT","Pocket Network"],[2147484284,"EMIT","EMIT"],[2147484287,"BTSG","BitSong"],[2147484288,"LFC","Leofcoin"],[2147484289,"KCS","KuCoin Shares"],[2147484290,"KCC","KuCoin Community Chain"],[2147484291,"AZERO","Aleph Zero"],[2147484294,"XLN","Lunarium"],[2147484296,"ZRB","Zarb"],[2147484298,"UCO","ARCHEthic"],[2147484303,"WMP","WAMP"],[2147484308,"PIRATE","PirateCash"],[2147484311,"SFRX","EtherGem Sapphire"],[2147484314,"ACT","Achain"],[2147484315,"PRKL","Perkle"],[2147484316,"SSC","SelfSell"],[2147484317,"GC","GateChain"],[2147484318,"PLGR","Pledger"],[2147484319,"MPLGR","Pledger"],[2147484320,"KNOX","Knox"],[2147484321,"ZED","ZED"],[2147484322,"CNDL","Candle"],[2147484323,"WLKR","Walker Crypto Innovation Index"],[2147484324,"WLKRR","Walker"],[2147484325,"YUNGE","Yunge"],[2147484326,"Voken","Voken"],[2147484327,"APL","Apollo"],[2147484328,"Evrynet","Evrynet"],[2147484329,"NENG","Nengcoin"],[2147484330,"CHTA","Cheetahcoin"],[2147484334,"KAR","Karura Network"],[2147484336,"CET","CoinEx Chain"],[2147484346,"VEIL","Veil"],[2147484347,"GIO","Gio"],[2147484348,"XDAI","xDai"],[2147484349,"COM","Commercio.network"],[2147484355,"MCOIN","Moneta Coin"],[2147484359,"CHC","Chaincoin"],[2147484360,"SERF","Serfnet"],[2147484361,"XTL","Katal Chain"],[2147484362,"BNB","Binance"],[2147484363,"SIN","Sinovate"],[2147484364,"DLN","Delion"],[2147484365,"BONTE","Bontecoin"],[2147484373,"MCX","MultiCash"],[2147484379,"BMK","Bitmark"],[2147484382,"DENTX","DENTNet"],[2147484385,"ATOP","[Financial Blockchain]"],[2147484395,"CFG","Centrifuge"],[2147484398,"XPRT","Persistence"],[2147484405,"HONEY","HoneyWood"],[2147484416,"BALLZ","Ballzcoin"],[2147484418,"COSA","Cosanta"],[2147484419,"BR","BR"],[2147484423,"PLSR","Pulsar Coin"],[2147484425,"BTW","Bitcoin World"],[2147484428,"PLCU","PLC Ultima"],[2147484434,"UIDD","UIDD"],[2147484435,"ACA","Acala"],[2147484436,"BNC","Bifrost"],[2147484437,"TAU","Lamden"],[2147484447,"PDEX","Polkadex"],[2147484448,"BEET","Beetle Coin"],[2147484449,"DST","DSTRA"],[2147484456,"QVT","Qvolta"],[2147484457,"SDN","Shiden Network"],[2147484458,"ASTR","Astar Network"],[2147484459,"DVPN","Sentinel"],[2147484466,"VET","VeChain Token"],[2147484467,"REEF","Reef"],[2147484468,"CLO","Callisto"],[2147484470,"BDB","BigchainDB"],[2147484476,"CCN","ComputeCoin"],[2147484479,"CRUZ","cruzbit"],[2147484480,"SAPP","Sapphire"],[2147484481,"777","Jackpot"],[2147484482,"KYAN","Kyanite"],[2147484483,"AZR","Azzure"],[2147484484,"CFL","CryptoFlow"],[2147484485,"DASHD","Dash Diamond"],[2147484486,"TRTT","Trittium"],[2147484487,"UCR","Ultra Clear"],[2147484488,"PNY","Peony"],[2147484489,"BECN","Beacon"],[2147484490,"MONK","Monk"],[2147484491,"SAGA","CryptoSaga"],[2147484492,"SUV","Suvereno"],[2147484493,"ESK","EskaCoin"],[2147484494,"OWO","OneWorld Coin"],[2147484495,"PEPS","PEPS Coin"],[2147484496,"BIR","Birake"],[2147484497,"MOBIC","MobilityCoin"],[2147484498,"FLS","Flits"],[2147484500,"DSM","Desmos"],[2147484501,"PRCY","PRCY Coin"],[2147484514,"MOB","MobileCoin"],[2147484516,"IF","Infinitefuture"],[2147484528,"LUM","Lum Network"],[2147484531,"ZBC","ZooBC"],[2147484534,"ADF","AD Token"],[2147484536,"NEO","NEO"],[2147484537,"TOMO","TOMO"],[2147484538,"XSEL","Seln"],[2147484544,"LKSC","LKSCoin"],[2147484547,"XEC","eCash"],[2147484548,"LMO","Lumeneo"],[2147484552,"HNT","Helium"],[2147484555,"FIS","StaFi"],[2147484557,"SGE","Saage"],[2147484564,"META","Metadium"],[2147484565,"FRA","Findora"],[2147484567,"CCD","Concordium"],[2147484573,"DIP","Dipper Network"],[2147484579,"RUNE","THORChain (RUNE)"],[2147484589,"KCN","Kylacoin"],[2147484590,"YCN","Yilacoin"],[2147484603,"LTP","LifetionCoin"],[2147484606,"","KickSoccer"],[2147484614,"MATIC","Matic"],[2147484616,"UNW","UNW"],[2147484618,"TWINS","TWINS"],[2147484633,"AU","Autonomy"],[2147484635,"VCG","VipCoin.Gold"],[2147484636,"XAZAB","Xazab core"],[2147484637,"AIOZ","AIOZ"],[2147484639,"PEC","Phoenix"],[2147484644,"OKT","OKChain Token"],[2147484645,"SUM","Solidum"],[2147484646,"LBTC","Lightning Bitcoin"],[2147484647,"BCD","Bitcoin Diamond"],[2147484648,"BTN","Bitcoin New"],[2147484649,"TT","ThunderCore"],[2147484650,"BKT","BanKitt"],[2147484651,"NODL","Nodle"],[2147484655,"FTM","Fantom"],[2147484656,"RPG","RPG"],[2147484658,"HT","Huobi ECO Chain"],[2147484659,"ELV","Eluvio"],[2147484661,"BIC","Beincrypto"],[2147484668,"EVC","Evrice"],[2147484670,"XRD","Radix DLT"],[2147484671,"ONE","HARMONY-ONE"],[2147484672,"ONT","Ontology"],[2147484673,"CZZ","Classzz"],[2147484674,"KEX","Kira Exchange Token"],[2147484675,"MCM","Mochimo"],[2147484680,"BTCR","BTCR"],[2147484759,"BBC","Big Bitcoin"],[2147484768,"RISE","RISE"],[2147484770,"CMT","CyberMiles Token"],[2147484776,"ETSC","Ethereum Social"],[2147484777,"DFI","DeFiChain"],[2147484785,"$DAG","Constellation Labs"],[2147484793,"CDY","Bitcoin Candy"],[2147484803,"EFI","Efinity"],[2147484818,"HOO","Hoo Smart Chain"],[2147484882,"ALPH","Alephium"],[2147484885,"","Nostr"],[2147484932,"GLMR","Moonbeam"],[2147484933,"MOVR","Moonriver"],[2147484956,"WEI","WEI"],[2147484985,"DFC","Defcoin"],[2147485045,"HYC","Hycon"],[2147485058,"TENTSLP","TENT Simple Ledger Protocol"],[2147485160,"AAC","Double-A Chain"],[2147485172,"","Taler"],[2147485181,"BEAM","Beam"],[2147485264,"ELF","AELF"],[2147485266,"AUDL","AUDL"],[2147485268,"ATH","Atheios"],[2147485290,"NEW","Newton"],[2147485305,"BTA","Btachain"],[2147485336,"BCX","BitcoinX"],[2147485377,"XTZ","Tezos"],[2147485424,"LBTC","Liquid BTC"],[2147485425,"BBP","Biblepay"],[2147485432,"JPYS","JPY Stablecoin"],[2147485437,"VEGA","Vega Protocol"],[2147485463,"ADA","Cardano"],[2147485466,"CUBE","Cube Chain Native Token"],[2147485507,"TES","Teslacoin"],[2147485536,"ZTX","Zetrix"],[2147485547,"XEC","eCash token"],[2147485549,"CLC","Classica"],[2147485567,"VIPS","VIPSTARCOIN"],[2147485574,"CITY","City Coin"],[2147485603,"XX","xx coin"],[2147485625,"XMX","Xuma"],[2147485632,"TRTL","TurtleCoin"],[2147485635,"EGEM","EtherGem"],[2147485637,"HODL","HOdlcoin"],[2147485638,"PHL","Placeholders"],[2147485639,"SC","Sia"],[2147485644,"MYT","Mineyourtime"],[2147485645,"POLIS","Polis"],[2147485646,"XMCC","Monoeci"],[2147485647,"COLX","ColossusXT"],[2147485648,"GIN","GinCoin"],[2147485649,"MNP","MNPCoin"],[2147485665,"KIN","Kin"],[2147485666,"EOSC","EOSClassic"],[2147485667,"GBT","GoldBean Token"],[2147485668,"PKC","PKC"],[2147485669,"SKT","Sukhavati"],[2147485670,"XHT","Xinghuo Token"],[2147485696,"MCASH","MCashChain"],[2147485697,"TRUE","TrueChain"],[2147485760,"IoTE","IoTE"],[2147485785,"XRG","Ergon"],[2147485869,"ASK","ASK"],[2147485949,"QTUM","QTUM"],[2147485950,"ETP","Metaverse"],[2147485951,"GXC","GXChain"],[2147485952,"CRP","CranePay"],[2147485953,"ELA","Elastos"],[2147485986,"SNOW","Snowblossom"],[2147486218,"AOA","Aurora"],[2147486366,"NAS","Nebulas"],[2147486542,"REOSC","REOSC Ecosystem"],[2147486589,"BND","Blocknode"],[2147486651,"LUX","LUX"],[2147486678,"XHB","Hedera HBAR"],[2147486725,"COS","Contentos"],[2147486924,"CCC","CodeChain"],[2147486981,"SXP","Solar"],[2147487025,"ROI","ROIcoin"],[2147487029,"DYN","Dynamic"],[2147487031,"SEQ","Sequence"],[2147487200,"DEO","Destocoin"],[2147487212,"DST","DeStream"],[2147487249,"CY","Cybits"],[2147487688,"FC8","FCH Network"],[2147487744,"YEE","YeeCo"],[2147487866,"IOTA","IOTA"],[2147487867,"SMR","Shimmer"],[2147487890,"AXE","Axe"],[2147487991,"XYM","Symbol"],[2147488654,"SBC","Senior Block Coin"],[2147488896,"FIC","FIC"],[2147489001,"HNS","Handshake"],[2147489052,"ISK","ISKRA"],[2147489203,"FUND","Unification"],[2147489405,"STX","Blockstack"],[2147489543,"VOW","VowChain VOW"],[2147489568,"SLU","SILUBIUM"],[2147489708,"GO","GoChain GO"],[2147489822,"MOI","My Own Internet"],[2147490247,"RSC","Royal Sports City"],[2147490314,"BPA","Bitcoin Pizza"],[2147490336,"SAFE","SAFE"],[2147490617,"ROGER","TheHolyrogerCoin"],[2147490739,"TOPL","Topl"],[2147490989,"SHFT","Shyft"],[2147491425,"BTV","Bitvote"],[2147491648,"SKY","Skycoin"],[2147491728,"","DSRV"],[2147491840,"PAC","pacprotocol"],[2147491865,"KLAY","KLAY"],[2147491987,"BTQ","BitcoinQuark"],[2147492092,"XCH","Chia"],[2147492168,"---","reserved"],[2147492536,"SBTC","Super Bitcoin"],[2147492612,"NULS","NULS"],[2147492647,"BTP","Bitcoin Pay"],[2147492648,"AVAX","Avalanche"],[2147492649,"ARB1","Arbitrum"],[2147492650,"BOBA","Boba"],[2147492651,"LOOP","Loopring"],[2147492652,"STRK","StarkNet"],[2147492653,"AVAXC","Avalanche C-Chain"],[2147492654,"BSC","Binance Smart Chain"],[2147493445,"NRG","Energi"],[2147493536,"BTF","Bitcoin Faith"],[2147493647,"GOD","Bitcoin God"],[2147493648,"FO","FIBOS"],[2147493874,"RTM","Raptoreum"],[2147493939,"XRC","XRhodium"],[2147494253,"XPI","Lotus"],[2147494759,"ESS","Essentia One"],[2147495993,"IPOS","IPOS"],[2147496234,"MINA","Mina"],[2147496755,"BTY","BitYuan"],[2147496756,"YCC","Yuan Chain Coin"],[2147499493,"SDGO","SanDeGo"],[2147499829,"XTX","Totem Live Network"],[2147500402,"ARDR","Ardor"],[2147501648,"MTR","Meter"],[2147502813,"SAFE","Safecoin"],[2147502815,"FLUX","Flux"],[2147502817,"RITO","Ritocoin"],[2147503684,"XND","ndau"],[2147504652,"C4EI","c4ei"],[2147506152,"PWR","PWRcoin"],[2147508900,"BELL","Bellcoin"],[2147509366,"CHX","Own"],[2147514750,"ESN","EtherSocial Network"],[2147514985,"","ThePower.io"],[2147517064,"TEO","Trust Eth reOrigin"],[2147517526,"BTCS","Bitcoin Stake"],[2147518600,"BTT","ByteTrade"],[2147521640,"FXTC","FixedTradeCoin"],[2147522969,"AMA","Amabig"],[2147525717,"FACT","FACT0RN"],[2147526676,"AXIV","AXIV"],[2147532910,"EVE","evan.network"],[2147532992,"STASH","STASH"],[2147536400,"CELO","Celo"],[2147545264,"TH","TianHe"],[2147549184,"KETH","Krypton World"],[2147553068,"GRLC","Garlicoin"],[2147553655,"GWL","Gewel"],[2147561425,"ZYN","Wethio"],[2147572536,"RYO","c0ban"],[2147583647,"WICC","Waykichain"],[2147584148,"HOME","HomeCoin"],[2147584658,"STC","Starcoin"],[2147588753,"STRAX","Strax"],[2147684273,"AKA","Akroma"],[2147553280,"GENOM","GENOM"],[2147730177,"ATS","ARTIS sigma1"],[2147797807,"PI","Pi Network"],[2147816980,"VALUE","Value Chain"],[2147816981,"3333","Pi Value Consensus"],[2147907890,"X42","x42"],[2148150314,"VITE","Vite"],[2148372536,"SEA","Second Exchange Alliance"],[2148532224,"AMAX","Armonia Meta Chain"],[2148654985,"ILT","iOlite"],[2148796762,"ETHO","Ether-1"],[2148797148,"XERO","Xerom"],[2149195792,"LAX","LAPO"],[2151407659,"EPK","EPIK Protocol"],[2152225092,"HYD","Hydra Token"],[2152733001,"BCO","BitcoinOre"],[2152733002,"BHD","BitcoinHD"],[2152748110,"PTN","PalletOne"],[2153139288,"VLX","Velas"],[2153201998,"WAN","Wanchain"],[2153225212,"WAVES","Waves"],[2153225213,"WEST","Waves Enterprise"],[2153865827,"ABC","Abcmint"],[2154001005,"CRM","Creamcoin"],[2155046253,"SEM","Semux"],[2155051384,"ION","ION"],[2155261425,"FCT","FirmaChain"],[2155308914,"WGR","WGR"],[2155308915,"OBSR","OBServer"],[2155646919,"AFS","ANFS"],[2162602624,"XDS","XDS"],[2209201209,"AQUA","Aquachain"],[2236372536,"HATCH","Hatch"],[2239410657,"kUSD","kUSD"],[2247483644,"GENS","GENS"],[2247483645,"EQ","EQ"],[2247483646,"FLUID","Fluid Chains"],[2247483647,"QKC","QuarkChain"],[2756073028,"FVDC","ForumCoin"]]},9922:(e,t,r)=>{"use strict";
|
|
26
|
-
/*!
|
|
27
|
-
* The buffer module from node.js, for the browser.
|
|
28
|
-
*
|
|
29
|
-
* @author Feross Aboukhadijeh <https://feross.org>
|
|
30
|
-
* @license MIT
|
|
31
|
-
*/
|
|
32
|
-
const a=r(7961),o=r(1024),n="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.hp=c,t.IS=50;const i=2147483647;function s(e){if(e>i)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return d(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!c.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const r=0|g(e,t);let a=s(r);const o=a.write(e,t);o!==r&&(a=a.slice(0,o));return a}(e,t);if(ArrayBuffer.isView(e))return function(e){if($(e,Uint8Array)){const t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return f(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if($(e,ArrayBuffer)||e&&$(e.buffer,ArrayBuffer))return h(e,t,r);if("undefined"!=typeof SharedArrayBuffer&&($(e,SharedArrayBuffer)||e&&$(e.buffer,SharedArrayBuffer)))return h(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const a=e.valueOf&&e.valueOf();if(null!=a&&a!==e)return c.from(a,t,r);const o=function(e){if(c.isBuffer(e)){const t=0|p(e.length),r=s(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return"number"!=typeof e.length||Z(e.length)?s(0):f(e);if("Buffer"===e.type&&Array.isArray(e.data))return f(e.data)}(e);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return u(e),s(e<0?0:0|p(e))}function f(e){const t=e.length<0?0:0|p(e.length),r=s(t);for(let a=0;a<t;a+=1)r[a]=255&e[a];return r}function h(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');let a;return a=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),Object.setPrototypeOf(a,c.prototype),a}function p(e){if(e>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return 0|e}function g(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||$(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const r=e.length,a=arguments.length>2&&!0===arguments[2];if(!a&&0===r)return 0;let o=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return G(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return W(e).length;default:if(o)return a?-1:G(e).length;t=(""+t).toLowerCase(),o=!0}}function m(e,t,r){let a=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return O(this,t,r);case"utf8":case"utf-8":return S(this,t,r);case"ascii":return C(this,t,r);case"latin1":case"binary":return T(this,t,r);case"base64":return A(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return z(this,t,r);default:if(a)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}function b(e,t,r){const a=e[t];e[t]=e[r],e[r]=a}function y(e,t,r,a,o){if(0===e.length)return-1;if("string"==typeof r?(a=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),Z(r=+r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof t&&(t=c.from(t,a)),c.isBuffer(t))return 0===t.length?-1:v(e,t,r,a,o);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):v(e,[t],r,a,o);throw new TypeError("val must be string, number or Buffer")}function v(e,t,r,a,o){let n,i=1,s=e.length,c=t.length;if(void 0!==a&&("ucs2"===(a=String(a).toLowerCase())||"ucs-2"===a||"utf16le"===a||"utf-16le"===a)){if(e.length<2||t.length<2)return-1;i=2,s/=2,c/=2,r/=2}function l(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(o){let a=-1;for(n=r;n<s;n++)if(l(e,n)===l(t,-1===a?0:n-a)){if(-1===a&&(a=n),n-a+1===c)return a*i}else-1!==a&&(n-=n-a),a=-1}else for(r+c>s&&(r=s-c),n=r;n>=0;n--){let r=!0;for(let a=0;a<c;a++)if(l(e,n+a)!==l(t,a)){r=!1;break}if(r)return n}return-1}function w(e,t,r,a){r=Number(r)||0;const o=e.length-r;a?(a=Number(a))>o&&(a=o):a=o;const n=t.length;let i;for(a>n/2&&(a=n/2),i=0;i<a;++i){const a=parseInt(t.substr(2*i,2),16);if(Z(a))return i;e[r+i]=a}return i}function k(e,t,r,a){return X(G(t,e.length-r),e,r,a)}function E(e,t,r,a){return X(function(e){const t=[];for(let r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,a)}function B(e,t,r,a){return X(W(t),e,r,a)}function x(e,t,r,a){return X(function(e,t){let r,a,o;const n=[];for(let i=0;i<e.length&&!((t-=2)<0);++i)r=e.charCodeAt(i),a=r>>8,o=r%256,n.push(o),n.push(a);return n}(t,e.length-r),e,r,a)}function A(e,t,r){return 0===t&&r===e.length?a.fromByteArray(e):a.fromByteArray(e.slice(t,r))}function S(e,t,r){r=Math.min(e.length,r);const a=[];let o=t;for(;o<r;){const t=e[o];let n=null,i=t>239?4:t>223?3:t>191?2:1;if(o+i<=r){let r,a,s,c;switch(i){case 1:t<128&&(n=t);break;case 2:r=e[o+1],128==(192&r)&&(c=(31&t)<<6|63&r,c>127&&(n=c));break;case 3:r=e[o+1],a=e[o+2],128==(192&r)&&128==(192&a)&&(c=(15&t)<<12|(63&r)<<6|63&a,c>2047&&(c<55296||c>57343)&&(n=c));break;case 4:r=e[o+1],a=e[o+2],s=e[o+3],128==(192&r)&&128==(192&a)&&128==(192&s)&&(c=(15&t)<<18|(63&r)<<12|(63&a)<<6|63&s,c>65535&&c<1114112&&(n=c))}}null===n?(n=65533,i=1):n>65535&&(n-=65536,a.push(n>>>10&1023|55296),n=56320|1023&n),a.push(n),o+=i}return function(e){const t=e.length;if(t<=P)return String.fromCharCode.apply(String,e);let r="",a=0;for(;a<t;)r+=String.fromCharCode.apply(String,e.slice(a,a+=P));return r}(a)}c.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),c.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(e,t,r){return l(e,t,r)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,r){return function(e,t,r){return u(e),e<=0?s(e):void 0!==t?"string"==typeof r?s(e).fill(t,r):s(e).fill(t):s(e)}(e,t,r)},c.allocUnsafe=function(e){return d(e)},c.allocUnsafeSlow=function(e){return d(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if($(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),$(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,a=t.length;for(let o=0,n=Math.min(r,a);o<n;++o)if(e[o]!==t[o]){r=e[o],a=t[o];break}return r<a?-1:a<r?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);let r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;const a=c.allocUnsafe(t);let o=0;for(r=0;r<e.length;++r){let t=e[r];if($(t,Uint8Array))o+t.length>a.length?(c.isBuffer(t)||(t=c.from(t)),t.copy(a,o)):Uint8Array.prototype.set.call(a,t,o);else{if(!c.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(a,o)}o+=t.length}return a},c.byteLength=g,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)b(this,t,t+1);return this},c.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)b(this,t,t+3),b(this,t+1,t+2);return this},c.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)b(this,t,t+7),b(this,t+1,t+6),b(this,t+2,t+5),b(this,t+3,t+4);return this},c.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?S(this,0,e):m.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){let e="";const r=t.IS;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},n&&(c.prototype[n]=c.prototype.inspect),c.prototype.compare=function(e,t,r,a,o){if($(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===a&&(a=0),void 0===o&&(o=this.length),t<0||r>e.length||a<0||o>this.length)throw new RangeError("out of range index");if(a>=o&&t>=r)return 0;if(a>=o)return-1;if(t>=r)return 1;if(this===e)return 0;let n=(o>>>=0)-(a>>>=0),i=(r>>>=0)-(t>>>=0);const s=Math.min(n,i),l=this.slice(a,o),u=e.slice(t,r);for(let e=0;e<s;++e)if(l[e]!==u[e]){n=l[e],i=u[e];break}return n<i?-1:i<n?1:0},c.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},c.prototype.indexOf=function(e,t,r){return y(this,e,t,r,!0)},c.prototype.lastIndexOf=function(e,t,r){return y(this,e,t,r,!1)},c.prototype.write=function(e,t,r,a){if(void 0===t)a="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)a=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===a&&(a="utf8")):(a=r,r=void 0)}const o=this.length-t;if((void 0===r||r>o)&&(r=o),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");a||(a="utf8");let n=!1;for(;;)switch(a){case"hex":return w(this,e,t,r);case"utf8":case"utf-8":return k(this,e,t,r);case"ascii":case"latin1":case"binary":return E(this,e,t,r);case"base64":return B(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,e,t,r);default:if(n)throw new TypeError("Unknown encoding: "+a);a=(""+a).toLowerCase(),n=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const P=4096;function C(e,t,r){let a="";r=Math.min(e.length,r);for(let o=t;o<r;++o)a+=String.fromCharCode(127&e[o]);return a}function T(e,t,r){let a="";r=Math.min(e.length,r);for(let o=t;o<r;++o)a+=String.fromCharCode(e[o]);return a}function O(e,t,r){const a=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>a)&&(r=a);let o="";for(let a=t;a<r;++a)o+=Y[e[a]];return o}function z(e,t,r){const a=e.slice(t,r);let o="";for(let e=0;e<a.length-1;e+=2)o+=String.fromCharCode(a[e]+256*a[e+1]);return o}function I(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function j(e,t,r,a,o,n){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<n)throw new RangeError('"value" argument is out of bounds');if(r+a>e.length)throw new RangeError("Index out of range")}function R(e,t,r,a,o){H(t,a,o,e,r,7);let n=Number(t&BigInt(4294967295));e[r++]=n,n>>=8,e[r++]=n,n>>=8,e[r++]=n,n>>=8,e[r++]=n;let i=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i,r}function N(e,t,r,a,o){H(t,a,o,e,r,7);let n=Number(t&BigInt(4294967295));e[r+7]=n,n>>=8,e[r+6]=n,n>>=8,e[r+5]=n,n>>=8,e[r+4]=n;let i=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=i,i>>=8,e[r+2]=i,i>>=8,e[r+1]=i,i>>=8,e[r]=i,r+8}function _(e,t,r,a,o,n){if(r+a>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function L(e,t,r,a,n){return t=+t,r>>>=0,n||_(e,0,r,4),o.write(e,t,r,a,23,4),r+4}function U(e,t,r,a,n){return t=+t,r>>>=0,n||_(e,0,r,8),o.write(e,t,r,a,52,8),r+8}c.prototype.slice=function(e,t){const r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);const a=this.subarray(e,t);return Object.setPrototypeOf(a,c.prototype),a},c.prototype.readUintLE=c.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||I(e,t,this.length);let a=this[e],o=1,n=0;for(;++n<t&&(o*=256);)a+=this[e+n]*o;return a},c.prototype.readUintBE=c.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||I(e,t,this.length);let a=this[e+--t],o=1;for(;t>0&&(o*=256);)a+=this[e+--t]*o;return a},c.prototype.readUint8=c.prototype.readUInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),this[e]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readBigUInt64LE=J((function(e){K(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||q(e,this.length-8);const a=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,o=this[++e]+256*this[++e]+65536*this[++e]+r*2**24;return BigInt(a)+(BigInt(o)<<BigInt(32))})),c.prototype.readBigUInt64BE=J((function(e){K(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||q(e,this.length-8);const a=t*2**24+65536*this[++e]+256*this[++e]+this[++e],o=this[++e]*2**24+65536*this[++e]+256*this[++e]+r;return(BigInt(a)<<BigInt(32))+BigInt(o)})),c.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||I(e,t,this.length);let a=this[e],o=1,n=0;for(;++n<t&&(o*=256);)a+=this[e+n]*o;return o*=128,a>=o&&(a-=Math.pow(2,8*t)),a},c.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||I(e,t,this.length);let a=t,o=1,n=this[e+--a];for(;a>0&&(o*=256);)n+=this[e+--a]*o;return o*=128,n>=o&&(n-=Math.pow(2,8*t)),n},c.prototype.readInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||I(e,2,this.length);const r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||I(e,2,this.length);const r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readBigInt64LE=J((function(e){K(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||q(e,this.length-8);const a=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(a)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),c.prototype.readBigInt64BE=J((function(e){K(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||q(e,this.length-8);const a=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(a)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+r)})),c.prototype.readFloatLE=function(e,t){return e>>>=0,t||I(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||I(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||I(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||I(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,t,r,a){if(e=+e,t>>>=0,r>>>=0,!a){j(this,e,t,r,Math.pow(2,8*r)-1,0)}let o=1,n=0;for(this[t]=255&e;++n<r&&(o*=256);)this[t+n]=e/o&255;return t+r},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(e,t,r,a){if(e=+e,t>>>=0,r>>>=0,!a){j(this,e,t,r,Math.pow(2,8*r)-1,0)}let o=r-1,n=1;for(this[t+o]=255&e;--o>=0&&(n*=256);)this[t+o]=e/n&255;return t+r},c.prototype.writeUint8=c.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigUInt64LE=J((function(e,t=0){return R(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeBigUInt64BE=J((function(e,t=0){return N(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeIntLE=function(e,t,r,a){if(e=+e,t>>>=0,!a){const a=Math.pow(2,8*r-1);j(this,e,t,r,a-1,-a)}let o=0,n=1,i=0;for(this[t]=255&e;++o<r&&(n*=256);)e<0&&0===i&&0!==this[t+o-1]&&(i=1),this[t+o]=(e/n|0)-i&255;return t+r},c.prototype.writeIntBE=function(e,t,r,a){if(e=+e,t>>>=0,!a){const a=Math.pow(2,8*r-1);j(this,e,t,r,a-1,-a)}let o=r-1,n=1,i=0;for(this[t+o]=255&e;--o>=0&&(n*=256);)e<0&&0===i&&0!==this[t+o+1]&&(i=1),this[t+o]=(e/n|0)-i&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigInt64LE=J((function(e,t=0){return R(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeBigInt64BE=J((function(e,t=0){return N(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeFloatLE=function(e,t,r){return L(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return L(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return U(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return U(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,a){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),a||0===a||(a=this.length),t>=e.length&&(t=e.length),t||(t=0),a>0&&a<r&&(a=r),a===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(a<0)throw new RangeError("sourceEnd out of bounds");a>this.length&&(a=this.length),e.length-t<a-r&&(a=e.length-t+r);const o=a-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,a):Uint8Array.prototype.set.call(e,this.subarray(r,a),t),o},c.prototype.fill=function(e,t,r,a){if("string"==typeof e){if("string"==typeof t?(a=t,t=0,r=this.length):"string"==typeof r&&(a=r,r=this.length),void 0!==a&&"string"!=typeof a)throw new TypeError("encoding must be a string");if("string"==typeof a&&!c.isEncoding(a))throw new TypeError("Unknown encoding: "+a);if(1===e.length){const t=e.charCodeAt(0);("utf8"===a&&t<128||"latin1"===a)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;let o;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o<r;++o)this[o]=e;else{const n=c.isBuffer(e)?e:c.from(e,a),i=n.length;if(0===i)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<r-t;++o)this[o+t]=n[o%i]}return this};const M={};function D(e,t,r){M[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function F(e){let t="",r=e.length;const a="-"===e[0]?1:0;for(;r>=a+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function H(e,t,r,a,o,n){if(e>r||e<t){const a="bigint"==typeof t?"n":"";let o;throw o=n>3?0===t||t===BigInt(0)?`>= 0${a} and < 2${a} ** ${8*(n+1)}${a}`:`>= -(2${a} ** ${8*(n+1)-1}${a}) and < 2 ** ${8*(n+1)-1}${a}`:`>= ${t}${a} and <= ${r}${a}`,new M.ERR_OUT_OF_RANGE("value",o,e)}!function(e,t,r){K(t,"offset"),void 0!==e[t]&&void 0!==e[t+r]||q(t,e.length-(r+1))}(a,o,n)}function K(e,t){if("number"!=typeof e)throw new M.ERR_INVALID_ARG_TYPE(t,"number",e)}function q(e,t,r){if(Math.floor(e)!==e)throw K(e,r),new M.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new M.ERR_BUFFER_OUT_OF_BOUNDS;throw new M.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}D("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),D("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),D("ERR_OUT_OF_RANGE",(function(e,t,r){let a=`The value of "${e}" is out of range.`,o=r;return Number.isInteger(r)&&Math.abs(r)>2**32?o=F(String(r)):"bigint"==typeof r&&(o=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(o=F(o)),o+="n"),a+=` It must be ${t}. Received ${o}`,a}),RangeError);const V=/[^+/0-9A-Za-z-_]/g;function G(e,t){let r;t=t||1/0;const a=e.length;let o=null;const n=[];for(let i=0;i<a;++i){if(r=e.charCodeAt(i),r>55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&n.push(239,191,189);continue}if(i+1===a){(t-=3)>-1&&n.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&n.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(t-=3)>-1&&n.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;n.push(r)}else if(r<2048){if((t-=2)<0)break;n.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;n.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;n.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return n}function W(e){return a.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(V,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function X(e,t,r,a){let o;for(o=0;o<a&&!(o+r>=t.length||o>=e.length);++o)t[o+r]=e[o];return o}function $(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Z(e){return e!=e}const Y=function(){const e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){const a=16*r;for(let o=0;o<16;++o)t[a+o]=e[r]+e[o]}return t}();function J(e){return"undefined"==typeof BigInt?Q:e}function Q(){throw new Error("BigInt not supported")}},4046:(e,t,r)=>{"use strict";const a=r(8276),o=r(6948),n=r(7043);function i(e,t){switch(o(e)){case"object":return function(e,t){if("function"==typeof t)return t(e);if(t||n(e)){const r=new e.constructor;for(let a in e)r[a]=i(e[a],t);return r}return e}(e,t);case"array":return function(e,t){const r=new e.constructor(e.length);for(let a=0;a<e.length;a++)r[a]=i(e[a],t);return r}(e,t);default:return a(e)}}e.exports=i},3497:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encrypt=c,t.decrypt=async function(e,t,r,a="aes-128-ctr",l=!0){if(i(t,r,a),n.web){const[i,u]=await s(a,t,r);if(!l&&"aes-cbc"===u.name){const n=await async function(e,t,r,a){const o=e.slice(-16);for(let e=0;e<16;e++)o[e]^=16^r[e];const n=await c(o,t,r,a);return n.slice(0,16)}(e,t,r,a);e=(0,o.concatBytes)(e,n)}const d=await n.web.subtle.decrypt(u,i,e),f=new Uint8Array(d);if("aes-cbc"===u.name){const n=await c(f,t,r,a);if(!(0,o.equalsBytes)(n,e))throw new Error("AES: wrong padding")}return f}if(n.node){const i=n.node.createDecipheriv(a,t,r);return i.setAutoPadding(l),(0,o.concatBytes)(i.update(e),i.final())}throw new Error("The environment doesn't have AES module")};const a=r(7288),o=r(2899),n={web:a.crypto};function i(e,t,r){if(!r.startsWith("aes-"))throw new Error(`AES submodule doesn't support mode ${r}`);if(16!==t.length)throw new Error("AES: wrong IV length");if(r.startsWith("aes-128")&&16!==e.length||r.startsWith("aes-256")&&32!==e.length)throw new Error("AES: wrong key length")}async function s(e,t,r){if(!n.web)throw new Error("Browser crypto not available.");let a;if(["aes-128-cbc","aes-256-cbc"].includes(e)&&(a="cbc"),["aes-128-ctr","aes-256-ctr"].includes(e)&&(a="ctr"),!a)throw new Error("AES: unsupported mode");return[await n.web.subtle.importKey("raw",t,{name:`AES-${a.toUpperCase()}`,length:8*t.length},!0,["encrypt","decrypt"]),{name:`aes-${a}`,iv:r,counter:r,length:128}]}async function c(e,t,r,a="aes-128-ctr",c=!0){if(i(t,r,a),n.web){const[o,i]=await s(a,t,r),l=await n.web.subtle.encrypt(i,o,e);let u=new Uint8Array(l);return c||"aes-cbc"!==i.name||e.length%16||(u=u.slice(0,-16)),u}if(n.node){const i=n.node.createCipheriv(a,t,r);return i.setAutoPadding(c),(0,o.concatBytes)(i.update(e),i.final())}throw new Error("The environment doesn't have AES module")}},4790:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keccak512=t.keccak384=t.keccak256=t.keccak224=void 0;const a=r(6526),o=r(2899);t.keccak224=(0,o.wrapHash)(a.keccak_224),t.keccak256=(()=>{const e=(0,o.wrapHash)(a.keccak_256);return e.create=a.keccak_256.create,e})(),t.keccak384=(0,o.wrapHash)(a.keccak_384),t.keccak512=(0,o.wrapHash)(a.keccak_512)},2899:function(e,t,r){"use strict";e=r.nmd(e);var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=t.utf8ToBytes=t.createView=t.concatBytes=t.toHex=t.bytesToHex=t.assertBytes=t.assertBool=void 0,t.bytesToUtf8=function(e){if(!(e instanceof Uint8Array))throw new TypeError("bytesToUtf8 expected Uint8Array, got "+typeof e);return(new TextDecoder).decode(e)},t.hexToBytes=function(e){const t=e.startsWith("0x")?e.substring(2):e;return(0,n.hexToBytes)(t)},t.equalsBytes=function(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0},t.wrapHash=function(e){return t=>(o.default.bytes(t),e(t))};const o=a(r(9998)),n=r(4904),i=o.default.bool;t.assertBool=i;const s=o.default.bytes;t.assertBytes=s;var c=r(4904);Object.defineProperty(t,"bytesToHex",{enumerable:!0,get:function(){return c.bytesToHex}}),Object.defineProperty(t,"toHex",{enumerable:!0,get:function(){return c.bytesToHex}}),Object.defineProperty(t,"concatBytes",{enumerable:!0,get:function(){return c.concatBytes}}),Object.defineProperty(t,"createView",{enumerable:!0,get:function(){return c.createView}}),Object.defineProperty(t,"utf8ToBytes",{enumerable:!0,get:function(){return c.utf8ToBytes}}),t.crypto=(()=>{const t="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,r="function"==typeof e.require&&e.require.bind(e);return{node:r&&!t?r("crypto"):void 0,web:t}})()},1024:(e,t)=>{
|
|
33
|
-
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
34
|
-
t.read=function(e,t,r,a,o){var n,i,s=8*o-a-1,c=(1<<s)-1,l=c>>1,u=-7,d=r?o-1:0,f=r?-1:1,h=e[t+d];for(d+=f,n=h&(1<<-u)-1,h>>=-u,u+=s;u>0;n=256*n+e[t+d],d+=f,u-=8);for(i=n&(1<<-u)-1,n>>=-u,u+=a;u>0;i=256*i+e[t+d],d+=f,u-=8);if(0===n)n=1-l;else{if(n===c)return i?NaN:1/0*(h?-1:1);i+=Math.pow(2,a),n-=l}return(h?-1:1)*i*Math.pow(2,n-a)},t.write=function(e,t,r,a,o,n){var i,s,c,l=8*n-o-1,u=(1<<l)-1,d=u>>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=a?0:n-1,p=a?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,i=u):(i=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-i))<1&&(i--,c*=2),(t+=i+d>=1?f/c:f*Math.pow(2,1-d))*c>=2&&(i++,c/=2),i+d>=u?(s=0,i=u):i+d>=1?(s=(t*c-1)*Math.pow(2,o),i+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,o),i=0));o>=8;e[r+h]=255&s,h+=p,s/=256,o-=8);for(i=i<<o|s,l+=o;l>0;e[r+h]=255&i,h+=p,i/=256,l-=8);e[r+h-p]|=128*g}},7043:(e,t,r)=>{"use strict";
|
|
26
|
+
const o=r(247),n=r(8460),a=r(8460),i=r(3190);const{bytesToNumberBE:s,hexToBytes:c}=n;t.DER={Err:class extends Error{constructor(e=""){super(e)}},_parseInt(e){const{Err:r}=t.DER;if(e.length<2||2!==e[0])throw new r("Invalid signature integer tag");const o=e[1],n=e.subarray(2,o+2);if(!o||n.length!==o)throw new r("Invalid signature integer: wrong length");if(128&n[0])throw new r("Invalid signature integer: negative");if(0===n[0]&&!(128&n[1]))throw new r("Invalid signature integer: unnecessary leading zero");return{d:s(n),l:e.subarray(o+2)}},toSig(e){const{Err:r}=t.DER,o="string"==typeof e?c(e):e;if(!(o instanceof Uint8Array))throw new Error("ui8a expected");let n=o.length;if(n<2||48!=o[0])throw new r("Invalid signature tag");if(o[1]!==n-2)throw new r("Invalid signature: incorrect length");const{d:a,l:i}=t.DER._parseInt(o.subarray(2)),{d:s,l}=t.DER._parseInt(i);if(l.length)throw new r("Invalid signature: left bytes after parsing");return{r:a,s}},hexFromSig(e){const t=e=>8&Number.parseInt(e[0],16)?"00"+e:e,r=e=>{const t=e.toString(16);return 1&t.length?`0${t}`:t},o=t(r(e.s)),n=t(r(e.r)),a=o.length/2,i=n.length/2,s=r(a),c=r(i);return`30${r(i+a+4)}02${c}${n}02${s}${o}`}};const l=BigInt(0),u=BigInt(1),f=BigInt(2),d=BigInt(3),h=BigInt(4);function p(e){const t=function(e){const t=(0,i.validateBasic)(e);n.validateObject(t,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:r,Fp:o,a}=t;if(r){if(!o.eql(a,o.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof r||"bigint"!=typeof r.beta||"function"!=typeof r.splitScalar)throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...t})}(e),{Fp:r}=t,s=t.toBytes||((e,t,o)=>{const a=t.toAffine();return n.concatBytes(Uint8Array.from([4]),r.toBytes(a.x),r.toBytes(a.y))}),c=t.fromBytes||(e=>{const t=e.subarray(1);return{x:r.fromBytes(t.subarray(0,r.BYTES)),y:r.fromBytes(t.subarray(r.BYTES,2*r.BYTES))}});function f(e){const{a:o,b:n}=t,a=r.sqr(e),i=r.mul(a,e);return r.add(r.add(i,r.mul(e,o)),n)}if(!r.eql(r.sqr(t.Gy),f(t.Gx)))throw new Error("bad generator point: equation left != right");function h(e){return"bigint"==typeof e&&l<e&&e<t.n}function p(e){if(!h(e))throw new Error("Expected valid bigint: 0 < bigint < curve.n")}function g(e){const{allowedPrivateKeyLengths:r,nByteLength:i,wrapPrivateKey:s,n:c}=t;if(r&&"bigint"!=typeof e){if(e instanceof Uint8Array&&(e=n.bytesToHex(e)),"string"!=typeof e||!r.includes(e.length))throw new Error("Invalid key");e=e.padStart(2*i,"0")}let l;try{l="bigint"==typeof e?e:n.bytesToNumberBE((0,a.ensureBytes)("private key",e,i))}catch(t){throw new Error(`private key must be ${i} bytes, hex or bigint, not ${typeof e}`)}return s&&(l=o.mod(l,c)),p(l),l}const m=new Map;function b(e){if(!(e instanceof y))throw new Error("ProjectivePoint expected")}class y{constructor(e,t,o){if(this.px=e,this.py=t,this.pz=o,null==e||!r.isValid(e))throw new Error("x required");if(null==t||!r.isValid(t))throw new Error("y required");if(null==o||!r.isValid(o))throw new Error("z required")}static fromAffine(e){const{x:t,y:o}=e||{};if(!e||!r.isValid(t)||!r.isValid(o))throw new Error("invalid affine point");if(e instanceof y)throw new Error("projective point not allowed");const n=e=>r.eql(e,r.ZERO);return n(t)&&n(o)?y.ZERO:new y(t,o,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(e){const t=r.invertBatch(e.map(e=>e.pz));return e.map((e,r)=>e.toAffine(t[r])).map(y.fromAffine)}static fromHex(e){const t=y.fromAffine(c((0,a.ensureBytes)("pointHex",e)));return t.assertValidity(),t}static fromPrivateKey(e){return y.BASE.multiply(g(e))}_setWindowSize(e){this._WINDOW_SIZE=e,m.delete(this)}assertValidity(){if(this.is0()){if(t.allowInfinityPoint&&!r.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:e,y:o}=this.toAffine();if(!r.isValid(e)||!r.isValid(o))throw new Error("bad point: x or y not FE");const n=r.sqr(o),a=f(e);if(!r.eql(n,a))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:e}=this.toAffine();if(r.isOdd)return!r.isOdd(e);throw new Error("Field doesn't support isOdd")}equals(e){b(e);const{px:t,py:o,pz:n}=this,{px:a,py:i,pz:s}=e,c=r.eql(r.mul(t,s),r.mul(a,n)),l=r.eql(r.mul(o,s),r.mul(i,n));return c&&l}negate(){return new y(this.px,r.neg(this.py),this.pz)}double(){const{a:e,b:o}=t,n=r.mul(o,d),{px:a,py:i,pz:s}=this;let c=r.ZERO,l=r.ZERO,u=r.ZERO,f=r.mul(a,a),h=r.mul(i,i),p=r.mul(s,s),g=r.mul(a,i);return g=r.add(g,g),u=r.mul(a,s),u=r.add(u,u),c=r.mul(e,u),l=r.mul(n,p),l=r.add(c,l),c=r.sub(h,l),l=r.add(h,l),l=r.mul(c,l),c=r.mul(g,c),u=r.mul(n,u),p=r.mul(e,p),g=r.sub(f,p),g=r.mul(e,g),g=r.add(g,u),u=r.add(f,f),f=r.add(u,f),f=r.add(f,p),f=r.mul(f,g),l=r.add(l,f),p=r.mul(i,s),p=r.add(p,p),f=r.mul(p,g),c=r.sub(c,f),u=r.mul(p,h),u=r.add(u,u),u=r.add(u,u),new y(c,l,u)}add(e){b(e);const{px:o,py:n,pz:a}=this,{px:i,py:s,pz:c}=e;let l=r.ZERO,u=r.ZERO,f=r.ZERO;const h=t.a,p=r.mul(t.b,d);let g=r.mul(o,i),m=r.mul(n,s),v=r.mul(a,c),w=r.add(o,n),E=r.add(i,s);w=r.mul(w,E),E=r.add(g,m),w=r.sub(w,E),E=r.add(o,a);let B=r.add(i,c);return E=r.mul(E,B),B=r.add(g,v),E=r.sub(E,B),B=r.add(n,a),l=r.add(s,c),B=r.mul(B,l),l=r.add(m,v),B=r.sub(B,l),f=r.mul(h,E),l=r.mul(p,v),f=r.add(l,f),l=r.sub(m,f),f=r.add(m,f),u=r.mul(l,f),m=r.add(g,g),m=r.add(m,g),v=r.mul(h,v),E=r.mul(p,E),m=r.add(m,v),v=r.sub(g,v),v=r.mul(h,v),E=r.add(E,v),g=r.mul(m,E),u=r.add(u,g),g=r.mul(B,E),l=r.mul(w,l),l=r.sub(l,g),g=r.mul(w,m),f=r.mul(B,f),f=r.add(f,g),new y(l,u,f)}subtract(e){return this.add(e.negate())}is0(){return this.equals(y.ZERO)}wNAF(e){return w.wNAFCached(this,m,e,e=>{const t=r.invertBatch(e.map(e=>e.pz));return e.map((e,r)=>e.toAffine(t[r])).map(y.fromAffine)})}multiplyUnsafe(e){const o=y.ZERO;if(e===l)return o;if(p(e),e===u)return this;const{endo:n}=t;if(!n)return w.unsafeLadder(this,e);let{k1neg:a,k1:i,k2neg:s,k2:c}=n.splitScalar(e),f=o,d=o,h=this;for(;i>l||c>l;)i&u&&(f=f.add(h)),c&u&&(d=d.add(h)),h=h.double(),i>>=u,c>>=u;return a&&(f=f.negate()),s&&(d=d.negate()),d=new y(r.mul(d.px,n.beta),d.py,d.pz),f.add(d)}multiply(e){p(e);let o,n,a=e;const{endo:i}=t;if(i){const{k1neg:e,k1:t,k2neg:s,k2:c}=i.splitScalar(a);let{p:l,f:u}=this.wNAF(t),{p:f,f:d}=this.wNAF(c);l=w.constTimeNegate(e,l),f=w.constTimeNegate(s,f),f=new y(r.mul(f.px,i.beta),f.py,f.pz),o=l.add(f),n=u.add(d)}else{const{p:e,f:t}=this.wNAF(a);o=e,n=t}return y.normalizeZ([o,n])[0]}multiplyAndAddUnsafe(e,t,r){const o=y.BASE,n=(e,t)=>t!==l&&t!==u&&e.equals(o)?e.multiply(t):e.multiplyUnsafe(t),a=n(this,t).add(n(e,r));return a.is0()?void 0:a}toAffine(e){const{px:t,py:o,pz:n}=this,a=this.is0();null==e&&(e=a?r.ONE:r.inv(n));const i=r.mul(t,e),s=r.mul(o,e),c=r.mul(n,e);if(a)return{x:r.ZERO,y:r.ZERO};if(!r.eql(c,r.ONE))throw new Error("invZ was invalid");return{x:i,y:s}}isTorsionFree(){const{h:e,isTorsionFree:r}=t;if(e===u)return!0;if(r)return r(y,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:e,clearCofactor:r}=t;return e===u?this:r?r(y,this):this.multiplyUnsafe(t.h)}toRawBytes(e=!0){return this.assertValidity(),s(y,this,e)}toHex(e=!0){return n.bytesToHex(this.toRawBytes(e))}}y.BASE=new y(t.Gx,t.Gy,r.ONE),y.ZERO=new y(r.ZERO,r.ONE,r.ZERO);const v=t.nBitLength,w=(0,i.wNAF)(y,t.endo?Math.ceil(v/2):v);return{CURVE:t,ProjectivePoint:y,normPrivateKeyToScalar:g,weierstrassEquation:f,isWithinCurveOrder:h}}function g(e,t){const r=e.ORDER;let o=l;for(let e=r-u;e%f===l;e/=f)o+=u;const n=o,a=f<<n-u-u,i=a*f,s=(r-u)/i,c=(s-u)/f,p=i-u,g=a,m=e.pow(t,s),b=e.pow(t,(s+u)/f);let y=(t,r)=>{let o=m,a=e.pow(r,p),i=e.sqr(a);i=e.mul(i,r);let s=e.mul(t,i);s=e.pow(s,c),s=e.mul(s,a),a=e.mul(s,r),i=e.mul(s,t);let l=e.mul(i,a);s=e.pow(l,g);let d=e.eql(s,e.ONE);a=e.mul(i,b),s=e.mul(l,o),i=e.cmov(a,i,d),l=e.cmov(s,l,d);for(let t=n;t>u;t--){let r=t-f;r=f<<r-u;let n=e.pow(l,r);const s=e.eql(n,e.ONE);a=e.mul(i,o),o=e.mul(o,o),n=e.mul(l,o),i=e.cmov(a,i,s),l=e.cmov(n,l,s)}return{isValid:d,value:i}};if(e.ORDER%h===d){const r=(e.ORDER-d)/h,o=e.sqrt(e.neg(t));y=(t,n)=>{let a=e.sqr(n);const i=e.mul(t,n);a=e.mul(a,i);let s=e.pow(a,r);s=e.mul(s,i);const c=e.mul(s,o),l=e.mul(e.sqr(s),n),u=e.eql(l,t);return{isValid:u,value:e.cmov(c,s,u)}}}return y}t.weierstrassPoints=p,t.weierstrass=function(e){const r=function(e){const t=(0,i.validateBasic)(e);return n.validateObject(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}(e),{Fp:s,n:c}=r,f=s.BYTES+1,d=2*s.BYTES+1;function h(e){return o.mod(e,c)}function g(e){return o.invert(e,c)}const{ProjectivePoint:m,normPrivateKeyToScalar:b,weierstrassEquation:y,isWithinCurveOrder:v}=p({...r,toBytes(e,t,r){const o=t.toAffine(),a=s.toBytes(o.x),i=n.concatBytes;return r?i(Uint8Array.from([t.hasEvenY()?2:3]),a):i(Uint8Array.from([4]),a,s.toBytes(o.y))},fromBytes(e){const t=e.length,r=e[0],o=e.subarray(1);if(t!==f||2!==r&&3!==r){if(t===d&&4===r){return{x:s.fromBytes(o.subarray(0,s.BYTES)),y:s.fromBytes(o.subarray(s.BYTES,2*s.BYTES))}}throw new Error(`Point of length ${t} was invalid. Expected ${f} compressed bytes or ${d} uncompressed bytes`)}{const e=n.bytesToNumberBE(o);if(!(l<(a=e)&&a<s.ORDER))throw new Error("Point is not on curve");const t=y(e);let i=s.sqrt(t);return!(1&~r)!==((i&u)===u)&&(i=s.neg(i)),{x:e,y:i}}var a}}),w=e=>n.bytesToHex(n.numberToBytesBE(e,r.nByteLength));function E(e){return e>c>>u}const B=(e,t,r)=>n.bytesToNumberBE(e.slice(t,r));class x{constructor(e,t,r){this.r=e,this.s=t,this.recovery=r,this.assertValidity()}static fromCompact(e){const t=r.nByteLength;return e=(0,a.ensureBytes)("compactSignature",e,2*t),new x(B(e,0,t),B(e,t,2*t))}static fromDER(e){const{r,s:o}=t.DER.toSig((0,a.ensureBytes)("DER",e));return new x(r,o)}assertValidity(){if(!v(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!v(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(e){return new x(this.r,this.s,e)}recoverPublicKey(e){const{r:t,s:o,recovery:n}=this,i=C((0,a.ensureBytes)("msgHash",e));if(null==n||![0,1,2,3].includes(n))throw new Error("recovery id invalid");const c=2===n||3===n?t+r.n:t;if(c>=s.ORDER)throw new Error("recovery id 2 or 3 invalid");const l=1&n?"03":"02",u=m.fromHex(l+w(c)),f=g(c),d=h(-i*f),p=h(o*f),b=m.BASE.multiplyAndAddUnsafe(u,d,p);if(!b)throw new Error("point at infinify");return b.assertValidity(),b}hasHighS(){return E(this.s)}normalizeS(){return this.hasHighS()?new x(this.r,h(-this.s),this.recovery):this}toDERRawBytes(){return n.hexToBytes(this.toDERHex())}toDERHex(){return t.DER.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return n.hexToBytes(this.toCompactHex())}toCompactHex(){return w(this.r)+w(this.s)}}const A={isValidPrivateKey(e){try{return b(e),!0}catch(e){return!1}},normPrivateKeyToScalar:b,randomPrivateKey:()=>{const e=o.getMinHashLength(r.n);return o.mapHashToField(r.randomBytes(e),r.n)},precompute:(e=8,t=m.BASE)=>(t._setWindowSize(e),t.multiply(BigInt(3)),t)};function k(e){const t=e instanceof Uint8Array,r="string"==typeof e,o=(t||r)&&e.length;return t?o===f||o===d:r?o===2*f||o===2*d:e instanceof m}const S=r.bits2int||function(e){const t=n.bytesToNumberBE(e),o=8*e.length-r.nBitLength;return o>0?t>>BigInt(o):t},C=r.bits2int_modN||function(e){return h(S(e))},T=n.bitMask(r.nBitLength);function P(e){if("bigint"!=typeof e)throw new Error("bigint expected");if(!(l<=e&&e<T))throw new Error(`bigint expected < 2^${r.nBitLength}`);return n.numberToBytesBE(e,r.nByteLength)}function O(e,t,o=I){if(["recovered","canonical"].some(e=>e in o))throw new Error("sign() legacy options not supported");const{hash:i,randomBytes:c}=r;let{lowS:f,prehash:d,extraEntropy:p}=o;null==f&&(f=!0),e=(0,a.ensureBytes)("msgHash",e),d&&(e=(0,a.ensureBytes)("prehashed msgHash",i(e)));const y=C(e),w=b(t),B=[P(w),P(y)];if(null!=p){const e=!0===p?c(s.BYTES):p;B.push((0,a.ensureBytes)("extraEntropy",e))}const A=n.concatBytes(...B),k=y;return{seed:A,k2sig:function(e){const t=S(e);if(!v(t))return;const r=g(t),o=m.BASE.multiply(t).toAffine(),n=h(o.x);if(n===l)return;const a=h(r*h(k+n*w));if(a===l)return;let i=(o.x===n?0:2)|Number(o.y&u),s=a;return f&&E(a)&&(s=function(e){return E(e)?h(-e):e}(a),i^=1),new x(n,s,i)}}}const I={lowS:r.lowS,prehash:!1},z={lowS:r.lowS,prehash:!1};return m.BASE._setWindowSize(8),{CURVE:r,getPublicKey:function(e,t=!0){return m.fromPrivateKey(e).toRawBytes(t)},getSharedSecret:function(e,t,r=!0){if(k(e))throw new Error("first arg must be private key");if(!k(t))throw new Error("second arg must be public key");return m.fromHex(t).multiply(b(e)).toRawBytes(r)},sign:function(e,t,o=I){const{seed:a,k2sig:i}=O(e,t,o),s=r;return n.createHmacDrbg(s.hash.outputLen,s.nByteLength,s.hmac)(a,i)},verify:function(e,o,n,i=z){const s=e;if(o=(0,a.ensureBytes)("msgHash",o),n=(0,a.ensureBytes)("publicKey",n),"strict"in i)throw new Error("options.strict was renamed to lowS");const{lowS:c,prehash:l}=i;let u,f;try{if("string"==typeof s||s instanceof Uint8Array)try{u=x.fromDER(s)}catch(e){if(!(e instanceof t.DER.Err))throw e;u=x.fromCompact(s)}else{if("object"!=typeof s||"bigint"!=typeof s.r||"bigint"!=typeof s.s)throw new Error("PARSE");{const{r:e,s:t}=s;u=new x(e,t)}}f=m.fromHex(n)}catch(e){if("PARSE"===e.message)throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(c&&u.hasHighS())return!1;l&&(o=r.hash(o));const{r:d,s:p}=u,b=C(o),y=g(p),v=h(b*y),w=h(d*y),E=m.BASE.multiplyAndAddUnsafe(f,v,w)?.toAffine();return!!E&&h(E.x)===d},ProjectivePoint:m,Signature:x,utils:A}},t.SWUFpSqrtRatio=g,t.mapToCurveSimpleSWU=function(e,t){if(o.validateField(e),!e.isValid(t.A)||!e.isValid(t.B)||!e.isValid(t.Z))throw new Error("mapToCurveSimpleSWU: invalid opts");const r=g(e,t.Z);if(!e.isOdd)throw new Error("Fp.isOdd is not implemented!");return o=>{let n,a,i,s,c,l,u,f;n=e.sqr(o),n=e.mul(n,t.Z),a=e.sqr(n),a=e.add(a,n),i=e.add(a,e.ONE),i=e.mul(i,t.B),s=e.cmov(t.Z,e.neg(a),!e.eql(a,e.ZERO)),s=e.mul(s,t.A),a=e.sqr(i),l=e.sqr(s),c=e.mul(l,t.A),a=e.add(a,c),a=e.mul(a,i),l=e.mul(l,s),c=e.mul(l,t.B),a=e.add(a,c),u=e.mul(n,i);const{isValid:d,value:h}=r(a,l);f=e.mul(n,o),f=e.mul(f,h),u=e.cmov(u,i,d),f=e.cmov(f,h,d);const p=e.isOdd(o)===e.isOdd(f);return f=e.cmov(e.neg(f),f,p),u=e.div(u,s),{x:u,y:f}}}},4409:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encode58=function(e){if(0===e.length)return"";let t,o;const a=[0];for(t=0;t<e.length;t++){for(o=0;o<a.length;o++)a[o]<<=8;a[0]+=e[t];let r=0;for(o=0;o<a.length;++o)a[o]+=r,r=a[o]/n|0,a[o]%=n;for(;r;)a.push(r%n),r=r/n|0}for(t=0;0===e[t]&&t<e.length-1;t++)a.push(0);return a.reverse().map(e=>r[e]).join("")},t.decode58=function(e){if(0===e.length)return[];let t,r;const a=[0];for(t=0;t<e.length;t++){const i=e[t];if(!(i in o))throw new Error("Non-base58 character");for(r=0;r<a.length;r++)a[r]*=n;a[0]+=o[i];let s=0;for(r=0;r<a.length;++r)a[r]+=s,s=a[r]>>8,a[r]&=255;for(;s;)a.push(255&s),s>>=8}for(t=0;"1"===e[t]&&t<e.length-1;t++)a.push(0);return a.reverse()};const r="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",o={};for(let e=0;e<r.length;e++)o[r.charAt(e)]=e;const n=58},4429:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scryptSync=t.scrypt=void 0;const o=r(3279),n=r(1490);let a=!1,i=!1;const s=async function(e,t,r,n,a,i,s){return await(0,o.scryptAsync)(e,t,{N:r,r:n,p:a,dkLen:i,onProgress:s})},c=function(e,t,r,n,a,i){return(0,o.scrypt)(e,t,{N:r,r:n,p:a,dkLen:i})};let l=s,u=c;async function f(e,t,r,o,a,i,s){const c=(0,n.getBytes)(e,"passwd"),u=(0,n.getBytes)(t,"salt");return(0,n.hexlify)(await l(c,u,r,o,a,i,s))}function d(e,t,r,o,a,i){const s=(0,n.getBytes)(e,"passwd"),c=(0,n.getBytes)(t,"salt");return(0,n.hexlify)(u(s,c,r,o,a,i))}t.scrypt=f,f._=s,f.lock=function(){i=!0},f.register=function(e){if(i)throw new Error("scrypt is locked");l=e},Object.freeze(f),t.scryptSync=d,d._=c,d.lock=function(){a=!0},d.register=function(e){if(a)throw new Error("scryptSync is locked");u=e},Object.freeze(d)},4447:e=>{"use strict";
|
|
35
27
|
/*!
|
|
36
|
-
*
|
|
28
|
+
* isobject <https://github.com/jonschlinkert/isobject>
|
|
37
29
|
*
|
|
38
30
|
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
39
31
|
* Released under the MIT License.
|
|
40
|
-
*/
|
|
32
|
+
*/e.exports=function(e){return null!=e&&"object"==typeof e&&!1===Array.isArray(e)}},4660:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MaxInt256=t.MinInt256=t.MaxUint256=t.WeiPerEther=t.N=void 0,t.N=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),t.WeiPerEther=BigInt("1000000000000000000"),t.MaxUint256=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),t.MinInt256=BigInt("0x8000000000000000000000000000000000000000000000000000000000000000")*BigInt(-1),t.MaxInt256=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff")},4790:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keccak512=t.keccak384=t.keccak256=t.keccak224=void 0;const o=r(6526),n=r(2899);t.keccak224=(0,n.wrapHash)(o.keccak_224),t.keccak256=(()=>{const e=(0,n.wrapHash)(o.keccak_256);return e.create=o.keccak_256.create,e})(),t.keccak384=(0,n.wrapHash)(o.keccak_384),t.keccak512=(0,n.wrapHash)(o.keccak_512)},4791:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uuidV4=void 0;const o=r(8256);t.uuidV4=function(e){const t=(0,o.getBytes)(e,"randomBytes");t[6]=15&t[6]|64,t[8]=63&t[8]|128;const r=(0,o.hexlify)(t);return[r.substring(2,10),r.substring(10,14),r.substring(14,18),r.substring(18,22),r.substring(22,34)].join("-")}},4815:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveAddress=t.isAddress=t.isAddressable=t.getCreate2Address=t.getCreateAddress=t.getIcapAddress=t.getAddress=void 0;var o=r(91);Object.defineProperty(t,"getAddress",{enumerable:!0,get:function(){return o.getAddress}}),Object.defineProperty(t,"getIcapAddress",{enumerable:!0,get:function(){return o.getIcapAddress}});var n=r(2348);Object.defineProperty(t,"getCreateAddress",{enumerable:!0,get:function(){return n.getCreateAddress}}),Object.defineProperty(t,"getCreate2Address",{enumerable:!0,get:function(){return n.getCreate2Address}});var a=r(6262);Object.defineProperty(t,"isAddressable",{enumerable:!0,get:function(){return a.isAddressable}}),Object.defineProperty(t,"isAddress",{enumerable:!0,get:function(){return a.isAddress}}),Object.defineProperty(t,"resolveAddress",{enumerable:!0,get:function(){return a.resolveAddress}})},4856:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBase58CheckAddress=l,t.isAddressValid=function(e){if("string"!=typeof e)return!1;if(e.length!==o.ADDRESS_SIZE)return!1;let t=(0,a.decode58)(e);if(25!==t.length)return!1;if(t[0]!==o.ADDRESS_PREFIX_BYTE)return!1;const r=t.slice(21);t=t.slice(0,21);const n=h(t),i=h(n).slice(0,4);if(r[0]==i[0]&&r[1]==i[1]&&r[2]==i[2]&&r[3]==i[3])return!0;return!1},t.computeAddress=u,t.getAddressFromPriKey=f,t.getPubKeyFromPriKey=d,t.SHA256=h,t.pkToAddress=function(e,t=!1){const r=(0,n.hexStr2byteArray)(e,t);return l(f(r))};const o=r(2737),n=r(9660),a=r(4409),i=r(306),s=r(8241),c=r(7256);function l(e){const t=h(e);let r=h(t).slice(0,4);return r=e.concat(r),(0,a.encode58)(r)}function u(e){65===e.length&&(e=e.slice(1));const t=(0,c.keccak256)(new Uint8Array(e)).toString().substring(2),r=o.ADDRESS_PREFIX+t.substring(24);return(0,n.hexStr2byteArray)(r)}function f(e){return u(d(e))}function d(e){const t=s.secp256k1.ProjectivePoint.fromPrivateKey(new Uint8Array(function(e){return(0,n.hexStr2byteArray)((0,i.byteArray2hexStr)(e).padStart(64,"0"))}(e))),r=t.x,o=t.y,a=`04${r.toString(16).padStart(64,"0")}${o.toString(16).padStart(64,"0")}`;return(0,n.hexStr2byteArray)(a)}function h(e){const t=(0,i.byteArray2hexStr)(e),r=(0,c.sha256)("0x"+t).replace(/^0x/,"");return(0,n.hexStr2byteArray)(r)}},4873:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.montgomery=function(e){const t=(p=e,(0,n.validateObject)(p,{a:"bigint"},{montgomeryBits:"isSafeInteger",nByteLength:"isSafeInteger",adjustScalarBytes:"function",domain:"function",powPminus2:"function",Gu:"bigint"}),Object.freeze({...p})),{P:r}=t,s=(0,o.Field)(r),c=e=>(0,o.mod)(e,r),l=t.montgomeryBits,u=Math.ceil(l/8),f=t.nByteLength,d=t.adjustScalarBytes||(e=>e),h=t.powPminus2||(e=>s.pow(e,r-BigInt(2)));var p;function g(e,t,r){const o=c(e*(t-r));return[t=c(t-o),r=c(r+o)]}const m=(t.a-BigInt(2))/BigInt(4);function b(e){return(0,n.numberToBytesLE)(c(e),u)}function y(e,t){const o=function(e){const t=(0,n.ensureBytes)("u coordinate",e,u);return 32===f&&(t[31]&=127),(0,n.bytesToNumberLE)(t)}(t),s=function(e,t){(0,n.aInRange)("u",e,a,r),(0,n.aInRange)("scalar",t,a,r);const o=t,s=e;let u,f=i,d=a,p=e,b=i,y=a;for(let e=BigInt(l-1);e>=a;e--){const t=o>>e&i;y^=t,u=g(y,f,p),f=u[0],p=u[1],u=g(y,d,b),d=u[0],b=u[1],y=t;const r=f+d,n=c(r*r),a=f-d,l=c(a*a),h=n-l,v=p+b,w=c((p-b)*r),E=c(v*a),B=w+E,x=w-E;p=c(B*B),b=c(s*c(x*x)),f=c(n*l),d=c(h*(n+c(m*h)))}u=g(y,f,p),f=u[0],p=u[1],u=g(y,d,b),d=u[0],b=u[1];const v=h(d);return c(f*v)}(o,function(e){const t=(0,n.ensureBytes)("scalar",e),r=t.length;if(r!==u&&r!==f)throw new Error("invalid scalar, expected "+u+" or "+f+" bytes, got "+r);return(0,n.bytesToNumberLE)(d(t))}(e));if(s===a)throw new Error("invalid private or public key received");return b(s)}const v=b(t.Gu);function w(e){return y(e,v)}return{scalarMult:y,scalarMultBase:w,getSharedSecret:(e,t)=>y(e,t),getPublicKey:e=>w(e),utils:{randomPrivateKey:()=>t.randomBytes(t.nByteLength)},GuBytes:v}};
|
|
33
|
+
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
34
|
+
const o=r(6630),n=r(5565),a=BigInt(0),i=BigInt(1)},4904:(e,t,r)=>{"use strict";
|
|
35
|
+
/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */Object.defineProperty(t,"__esModule",{value:!0}),t.wrapXOFConstructorWithOpts=t.wrapConstructorWithOpts=t.wrapConstructor=t.Hash=t.nextTick=t.swap32IfBE=t.byteSwapIfBE=t.swap8IfBE=t.isLE=void 0,t.isBytes=n,t.anumber=a,t.abytes=i,t.ahash=function(e){if("function"!=typeof e||"function"!=typeof e.create)throw new Error("Hash should be wrapped by utils.createHasher");a(e.outputLen),a(e.blockLen)},t.aexists=function(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")},t.aoutput=function(e,t){i(e);const r=t.outputLen;if(e.length<r)throw new Error("digestInto() expects output buffer of length at least "+r)},t.u8=function(e){return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)},t.u32=function(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))},t.clean=function(...e){for(let t=0;t<e.length;t++)e[t].fill(0)},t.createView=function(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)},t.rotr=function(e,t){return e<<32-t|e>>>t},t.rotl=function(e,t){return e<<t|e>>>32-t>>>0},t.byteSwap=s,t.byteSwap32=c,t.bytesToHex=function(e){if(i(e),l)return e.toHex();let t="";for(let r=0;r<e.length;r++)t+=u[e[r]];return t},t.hexToBytes=function(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);if(l)return Uint8Array.fromHex(e);const t=e.length,r=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const o=new Uint8Array(r);for(let t=0,n=0;t<r;t++,n+=2){const r=d(e.charCodeAt(n)),a=d(e.charCodeAt(n+1));if(void 0===r||void 0===a){const t=e[n]+e[n+1];throw new Error('hex string expected, got non-hex character "'+t+'" at index '+n)}o[t]=16*r+a}return o},t.asyncLoop=async function(e,r,o){let n=Date.now();for(let a=0;a<e;a++){o(a);const e=Date.now()-n;e>=0&&e<r||(await(0,t.nextTick)(),n+=e)}},t.utf8ToBytes=h,t.bytesToUtf8=function(e){return(new TextDecoder).decode(e)},t.toBytes=p,t.kdfInputToBytes=function(e){"string"==typeof e&&(e=h(e));return i(e),e},t.concatBytes=function(...e){let t=0;for(let r=0;r<e.length;r++){const o=e[r];i(o),t+=o.length}const r=new Uint8Array(t);for(let t=0,o=0;t<e.length;t++){const n=e[t];r.set(n,o),o+=n.length}return r},t.checkOpts=function(e,t){if(void 0!==t&&"[object Object]"!=={}.toString.call(t))throw new Error("options should be object or undefined");return Object.assign(e,t)},t.createHasher=g,t.createOptHasher=m,t.createXOFer=b,t.randomBytes=function(e=32){if(o.crypto&&"function"==typeof o.crypto.getRandomValues)return o.crypto.getRandomValues(new Uint8Array(e));if(o.crypto&&"function"==typeof o.crypto.randomBytes)return Uint8Array.from(o.crypto.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")};const o=r(7288);function n(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function a(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function i(e,...t){if(!n(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function s(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}function c(e){for(let t=0;t<e.length;t++)e[t]=s(e[t]);return e}t.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],t.swap8IfBE=t.isLE?e=>e:e=>s(e),t.byteSwapIfBE=t.swap8IfBE,t.swap32IfBE=t.isLE?e=>e:c;const l=(()=>"function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex)(),u=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));const f={_0:48,_9:57,A:65,F:70,a:97,f:102};function d(e){return e>=f._0&&e<=f._9?e-f._0:e>=f.A&&e<=f.F?e-(f.A-10):e>=f.a&&e<=f.f?e-(f.a-10):void 0}function h(e){if("string"!=typeof e)throw new Error("string expected");return new Uint8Array((new TextEncoder).encode(e))}function p(e){return"string"==typeof e&&(e=h(e)),i(e),e}t.nextTick=async()=>{};function g(e){const t=t=>e().update(p(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}function m(e){const t=(t,r)=>e(r).update(p(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t}function b(e){const t=(t,r)=>e(r).update(p(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t}t.Hash=class{},t.wrapConstructor=g,t.wrapConstructorWithOpts=m,t.wrapXOFConstructorWithOpts=b},4907:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessagePrefix=t.EtherSymbol=void 0,t.EtherSymbol="Ξ",t.MessagePrefix="Ethereum Signed Message:\n"},4927:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Transaction=t.recoverAddress=t.computeAddress=t.authorizationify=t.accessListify=void 0;var o=r(9493);Object.defineProperty(t,"accessListify",{enumerable:!0,get:function(){return o.accessListify}});var n=r(830);Object.defineProperty(t,"authorizationify",{enumerable:!0,get:function(){return n.authorizationify}});var a=r(8283);Object.defineProperty(t,"computeAddress",{enumerable:!0,get:function(){return a.computeAddress}}),Object.defineProperty(t,"recoverAddress",{enumerable:!0,get:function(){return a.recoverAddress}});var i=r(2083);Object.defineProperty(t,"Transaction",{enumerable:!0,get:function(){return i.Transaction}})},4973:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pbkdf2Async=t.pbkdf2=void 0;const o=r(8629),n=r(7983),a=r(791);function i(e,t,r,i){(0,o.hash)(e);const s=(0,a.checkOpts)({dkLen:32,asyncTick:10},i),{c,dkLen:l,asyncTick:u}=s;if((0,o.number)(c),(0,o.number)(l),(0,o.number)(u),c<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const f=(0,a.toBytes)(t),d=(0,a.toBytes)(r),h=new Uint8Array(l),p=n.hmac.create(e,f),g=p._cloneInto().update(d);return{c,dkLen:l,asyncTick:u,DK:h,PRF:p,PRFSalt:g}}function s(e,t,r,o,n){return e.destroy(),t.destroy(),o&&o.destroy(),n.fill(0),r}t.pbkdf2=function(e,t,r,o){const{c:n,dkLen:c,DK:l,PRF:u,PRFSalt:f}=i(e,t,r,o);let d;const h=new Uint8Array(4),p=(0,a.createView)(h),g=new Uint8Array(u.outputLen);for(let e=1,t=0;t<c;e++,t+=u.outputLen){const r=l.subarray(t,t+u.outputLen);p.setInt32(0,e,!1),(d=f._cloneInto(d)).update(h).digestInto(g),r.set(g.subarray(0,r.length));for(let e=1;e<n;e++){u._cloneInto(d).update(g).digestInto(g);for(let e=0;e<r.length;e++)r[e]^=g[e]}}return s(u,f,l,d,g)},t.pbkdf2Async=async function(e,t,r,o){const{c:n,dkLen:c,asyncTick:l,DK:u,PRF:f,PRFSalt:d}=i(e,t,r,o);let h;const p=new Uint8Array(4),g=(0,a.createView)(p),m=new Uint8Array(f.outputLen);for(let e=1,t=0;t<c;e++,t+=f.outputLen){const r=u.subarray(t,t+f.outputLen);g.setInt32(0,e,!1),(h=d._cloneInto(h)).update(p).digestInto(m),r.set(m.subarray(0,r.length)),await(0,a.asyncLoop)(n-1,l,()=>{f._cloneInto(h).update(m).digestInto(m);for(let e=0;e<r.length;e++)r[e]^=m[e]})}return s(f,d,u,h,m)}},4975:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeRlp=void 0;const o=r(8256),n=r(7991),a=r(8256);function i(e){let t=e.toString(16);for(;t.length<2;)t="0"+t;return"0x"+t}function s(e,t,r){let o=0;for(let n=0;n<r;n++)o=256*o+e[t+n];return o}function c(e,t,r,o){const a=[];for(;r<t+1+o;){const i=l(e,r);a.push(i.result),r+=i.consumed,(0,n.assert)(r<=t+1+o,"child data too short","BUFFER_OVERRUN",{buffer:e,length:o,offset:t})}return{consumed:1+o,result:a}}function l(e,t){(0,n.assert)(0!==e.length,"data too short","BUFFER_OVERRUN",{buffer:e,length:0,offset:1});const r=t=>{(0,n.assert)(t<=e.length,"data short segment too short","BUFFER_OVERRUN",{buffer:e,length:e.length,offset:t})};if(e[t]>=248){const o=e[t]-247;r(t+1+o);const n=s(e,t+1,o);return r(t+1+o+n),c(e,t,t+1+o,o+n)}if(e[t]>=192){const o=e[t]-192;return r(t+1+o),c(e,t,t+1,o)}if(e[t]>=184){const n=e[t]-183;r(t+1+n);const a=s(e,t+1,n);r(t+1+n+a);return{consumed:1+n+a,result:(0,o.hexlify)(e.slice(t+1+n,t+1+n+a))}}if(e[t]>=128){const n=e[t]-128;r(t+1+n);return{consumed:1+n,result:(0,o.hexlify)(e.slice(t+1,t+1+n))}}return{consumed:1,result:i(e[t])}}t.decodeRlp=function(e){const t=(0,a.getBytes)(e,"data"),r=l(t,0);return(0,n.assertArgument)(r.consumed===t.length,"unexpected junk after rlp payload","data",e),r.result}},5005:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.eosWallet=t.moacWallet=t.ethWallet=t.jtWallet=t.bizainWallet=t.stmWallet=t.rippleWallet=t.callWallet=t.bvcadtWallet=void 0,t.getPluginByType=function(e){return f[e]};const o=r(6223),n=r(6223),a=r(6223),i=r(6223),s=r(8201),c=r(2367),l=r(1613),u=r(3609);t.bvcadtWallet=(0,u.SWTCPlugin)(l.Alphabet.BVCADT),t.callWallet=(0,u.SWTCPlugin)(l.Alphabet.CALL),t.rippleWallet=(0,u.SWTCPlugin)(l.Alphabet.RIPPLE),t.stmWallet=(0,u.SWTCPlugin)(l.Alphabet.STREAM),t.bizainWallet=(0,u.SWTCPlugin)(l.Alphabet.BIZAIN),t.jtWallet=(0,u.SWTCPlugin)(l.Alphabet.JINGTUM),t.ethWallet=o.plugin,t.moacWallet=o.plugin,t.eosWallet=c.plugin;const f={ethereum:o.plugin,bsc:n.plugin,heco:a.plugin,moac:o.plugin,polygon:i.plugin,tron:s.plugin,eos:c.plugin,bvcadt:t.bvcadtWallet,call:t.callWallet,ripple:t.rippleWallet,stream:t.stmWallet,bizain:t.bizainWallet,jingtum:t.jtWallet,base:o.plugin,arb1:o.plugin}},5040:e=>{"use strict";e.exports=JSON.parse('["abaisser","abandon","abdiquer","abeille","abolir","aborder","aboutir","aboyer","abrasif","abreuver","abriter","abroger","abrupt","absence","absolu","absurde","abusif","abyssal","académie","acajou","acarien","accabler","accepter","acclamer","accolade","accroche","accuser","acerbe","achat","acheter","aciduler","acier","acompte","acquérir","acronyme","acteur","actif","actuel","adepte","adéquat","adhésif","adjectif","adjuger","admettre","admirer","adopter","adorer","adoucir","adresse","adroit","adulte","adverbe","aérer","aéronef","affaire","affecter","affiche","affreux","affubler","agacer","agencer","agile","agiter","agrafer","agréable","agrume","aider","aiguille","ailier","aimable","aisance","ajouter","ajuster","alarmer","alchimie","alerte","algèbre","algue","aliéner","aliment","alléger","alliage","allouer","allumer","alourdir","alpaga","altesse","alvéole","amateur","ambigu","ambre","aménager","amertume","amidon","amiral","amorcer","amour","amovible","amphibie","ampleur","amusant","analyse","anaphore","anarchie","anatomie","ancien","anéantir","angle","angoisse","anguleux","animal","annexer","annonce","annuel","anodin","anomalie","anonyme","anormal","antenne","antidote","anxieux","apaiser","apéritif","aplanir","apologie","appareil","appeler","apporter","appuyer","aquarium","aqueduc","arbitre","arbuste","ardeur","ardoise","argent","arlequin","armature","armement","armoire","armure","arpenter","arracher","arriver","arroser","arsenic","artériel","article","aspect","asphalte","aspirer","assaut","asservir","assiette","associer","assurer","asticot","astre","astuce","atelier","atome","atrium","atroce","attaque","attentif","attirer","attraper","aubaine","auberge","audace","audible","augurer","aurore","automne","autruche","avaler","avancer","avarice","avenir","averse","aveugle","aviateur","avide","avion","aviser","avoine","avouer","avril","axial","axiome","badge","bafouer","bagage","baguette","baignade","balancer","balcon","baleine","balisage","bambin","bancaire","bandage","banlieue","bannière","banquier","barbier","baril","baron","barque","barrage","bassin","bastion","bataille","bateau","batterie","baudrier","bavarder","belette","bélier","belote","bénéfice","berceau","berger","berline","bermuda","besace","besogne","bétail","beurre","biberon","bicycle","bidule","bijou","bilan","bilingue","billard","binaire","biologie","biopsie","biotype","biscuit","bison","bistouri","bitume","bizarre","blafard","blague","blanchir","blessant","blinder","blond","bloquer","blouson","bobard","bobine","boire","boiser","bolide","bonbon","bondir","bonheur","bonifier","bonus","bordure","borne","botte","boucle","boueux","bougie","boulon","bouquin","bourse","boussole","boutique","boxeur","branche","brasier","brave","brebis","brèche","breuvage","bricoler","brigade","brillant","brioche","brique","brochure","broder","bronzer","brousse","broyeur","brume","brusque","brutal","bruyant","buffle","buisson","bulletin","bureau","burin","bustier","butiner","butoir","buvable","buvette","cabanon","cabine","cachette","cadeau","cadre","caféine","caillou","caisson","calculer","calepin","calibre","calmer","calomnie","calvaire","camarade","caméra","camion","campagne","canal","caneton","canon","cantine","canular","capable","caporal","caprice","capsule","capter","capuche","carabine","carbone","caresser","caribou","carnage","carotte","carreau","carton","cascade","casier","casque","cassure","causer","caution","cavalier","caverne","caviar","cédille","ceinture","céleste","cellule","cendrier","censurer","central","cercle","cérébral","cerise","cerner","cerveau","cesser","chagrin","chaise","chaleur","chambre","chance","chapitre","charbon","chasseur","chaton","chausson","chavirer","chemise","chenille","chéquier","chercher","cheval","chien","chiffre","chignon","chimère","chiot","chlorure","chocolat","choisir","chose","chouette","chrome","chute","cigare","cigogne","cimenter","cinéma","cintrer","circuler","cirer","cirque","citerne","citoyen","citron","civil","clairon","clameur","claquer","classe","clavier","client","cligner","climat","clivage","cloche","clonage","cloporte","cobalt","cobra","cocasse","cocotier","coder","codifier","coffre","cogner","cohésion","coiffer","coincer","colère","colibri","colline","colmater","colonel","combat","comédie","commande","compact","concert","conduire","confier","congeler","connoter","consonne","contact","convexe","copain","copie","corail","corbeau","cordage","corniche","corpus","correct","cortège","cosmique","costume","coton","coude","coupure","courage","couteau","couvrir","coyote","crabe","crainte","cravate","crayon","créature","créditer","crémeux","creuser","crevette","cribler","crier","cristal","critère","croire","croquer","crotale","crucial","cruel","crypter","cubique","cueillir","cuillère","cuisine","cuivre","culminer","cultiver","cumuler","cupide","curatif","curseur","cyanure","cycle","cylindre","cynique","daigner","damier","danger","danseur","dauphin","débattre","débiter","déborder","débrider","débutant","décaler","décembre","déchirer","décider","déclarer","décorer","décrire","décupler","dédale","déductif","déesse","défensif","défiler","défrayer","dégager","dégivrer","déglutir","dégrafer","déjeuner","délice","déloger","demander","demeurer","démolir","dénicher","dénouer","dentelle","dénuder","départ","dépenser","déphaser","déplacer","déposer","déranger","dérober","désastre","descente","désert","désigner","désobéir","dessiner","destrier","détacher","détester","détourer","détresse","devancer","devenir","deviner","devoir","diable","dialogue","diamant","dicter","différer","digérer","digital","digne","diluer","dimanche","diminuer","dioxyde","directif","diriger","discuter","disposer","dissiper","distance","divertir","diviser","docile","docteur","dogme","doigt","domaine","domicile","dompter","donateur","donjon","donner","dopamine","dortoir","dorure","dosage","doseur","dossier","dotation","douanier","double","douceur","douter","doyen","dragon","draper","dresser","dribbler","droiture","duperie","duplexe","durable","durcir","dynastie","éblouir","écarter","écharpe","échelle","éclairer","éclipse","éclore","écluse","école","économie","écorce","écouter","écraser","écrémer","écrivain","écrou","écume","écureuil","édifier","éduquer","effacer","effectif","effigie","effort","effrayer","effusion","égaliser","égarer","éjecter","élaborer","élargir","électron","élégant","éléphant","élève","éligible","élitisme","éloge","élucider","éluder","emballer","embellir","embryon","émeraude","émission","emmener","émotion","émouvoir","empereur","employer","emporter","emprise","émulsion","encadrer","enchère","enclave","encoche","endiguer","endosser","endroit","enduire","énergie","enfance","enfermer","enfouir","engager","engin","englober","énigme","enjamber","enjeu","enlever","ennemi","ennuyeux","enrichir","enrobage","enseigne","entasser","entendre","entier","entourer","entraver","énumérer","envahir","enviable","envoyer","enzyme","éolien","épaissir","épargne","épatant","épaule","épicerie","épidémie","épier","épilogue","épine","épisode","épitaphe","époque","épreuve","éprouver","épuisant","équerre","équipe","ériger","érosion","erreur","éruption","escalier","espadon","espèce","espiègle","espoir","esprit","esquiver","essayer","essence","essieu","essorer","estime","estomac","estrade","étagère","étaler","étanche","étatique","éteindre","étendoir","éternel","éthanol","éthique","ethnie","étirer","étoffer","étoile","étonnant","étourdir","étrange","étroit","étude","euphorie","évaluer","évasion","éventail","évidence","éviter","évolutif","évoquer","exact","exagérer","exaucer","exceller","excitant","exclusif","excuse","exécuter","exemple","exercer","exhaler","exhorter","exigence","exiler","exister","exotique","expédier","explorer","exposer","exprimer","exquis","extensif","extraire","exulter","fable","fabuleux","facette","facile","facture","faiblir","falaise","fameux","famille","farceur","farfelu","farine","farouche","fasciner","fatal","fatigue","faucon","fautif","faveur","favori","fébrile","féconder","fédérer","félin","femme","fémur","fendoir","féodal","fermer","féroce","ferveur","festival","feuille","feutre","février","fiasco","ficeler","fictif","fidèle","figure","filature","filetage","filière","filleul","filmer","filou","filtrer","financer","finir","fiole","firme","fissure","fixer","flairer","flamme","flasque","flatteur","fléau","flèche","fleur","flexion","flocon","flore","fluctuer","fluide","fluvial","folie","fonderie","fongible","fontaine","forcer","forgeron","formuler","fortune","fossile","foudre","fougère","fouiller","foulure","fourmi","fragile","fraise","franchir","frapper","frayeur","frégate","freiner","frelon","frémir","frénésie","frère","friable","friction","frisson","frivole","froid","fromage","frontal","frotter","fruit","fugitif","fuite","fureur","furieux","furtif","fusion","futur","gagner","galaxie","galerie","gambader","garantir","gardien","garnir","garrigue","gazelle","gazon","géant","gélatine","gélule","gendarme","général","génie","genou","gentil","géologie","géomètre","géranium","germe","gestuel","geyser","gibier","gicler","girafe","givre","glace","glaive","glisser","globe","gloire","glorieux","golfeur","gomme","gonfler","gorge","gorille","goudron","gouffre","goulot","goupille","gourmand","goutte","graduel","graffiti","graine","grand","grappin","gratuit","gravir","grenat","griffure","griller","grimper","grogner","gronder","grotte","groupe","gruger","grutier","gruyère","guépard","guerrier","guide","guimauve","guitare","gustatif","gymnaste","gyrostat","habitude","hachoir","halte","hameau","hangar","hanneton","haricot","harmonie","harpon","hasard","hélium","hématome","herbe","hérisson","hermine","héron","hésiter","heureux","hiberner","hibou","hilarant","histoire","hiver","homard","hommage","homogène","honneur","honorer","honteux","horde","horizon","horloge","hormone","horrible","houleux","housse","hublot","huileux","humain","humble","humide","humour","hurler","hydromel","hygiène","hymne","hypnose","idylle","ignorer","iguane","illicite","illusion","image","imbiber","imiter","immense","immobile","immuable","impact","impérial","implorer","imposer","imprimer","imputer","incarner","incendie","incident","incliner","incolore","indexer","indice","inductif","inédit","ineptie","inexact","infini","infliger","informer","infusion","ingérer","inhaler","inhiber","injecter","injure","innocent","inoculer","inonder","inscrire","insecte","insigne","insolite","inspirer","instinct","insulter","intact","intense","intime","intrigue","intuitif","inutile","invasion","inventer","inviter","invoquer","ironique","irradier","irréel","irriter","isoler","ivoire","ivresse","jaguar","jaillir","jambe","janvier","jardin","jauger","jaune","javelot","jetable","jeton","jeudi","jeunesse","joindre","joncher","jongler","joueur","jouissif","journal","jovial","joyau","joyeux","jubiler","jugement","junior","jupon","juriste","justice","juteux","juvénile","kayak","kimono","kiosque","label","labial","labourer","lacérer","lactose","lagune","laine","laisser","laitier","lambeau","lamelle","lampe","lanceur","langage","lanterne","lapin","largeur","larme","laurier","lavabo","lavoir","lecture","légal","léger","légume","lessive","lettre","levier","lexique","lézard","liasse","libérer","libre","licence","licorne","liège","lièvre","ligature","ligoter","ligue","limer","limite","limonade","limpide","linéaire","lingot","lionceau","liquide","lisière","lister","lithium","litige","littoral","livreur","logique","lointain","loisir","lombric","loterie","louer","lourd","loutre","louve","loyal","lubie","lucide","lucratif","lueur","lugubre","luisant","lumière","lunaire","lundi","luron","lutter","luxueux","machine","magasin","magenta","magique","maigre","maillon","maintien","mairie","maison","majorer","malaxer","maléfice","malheur","malice","mallette","mammouth","mandater","maniable","manquant","manteau","manuel","marathon","marbre","marchand","mardi","maritime","marqueur","marron","marteler","mascotte","massif","matériel","matière","matraque","maudire","maussade","mauve","maximal","méchant","méconnu","médaille","médecin","méditer","méduse","meilleur","mélange","mélodie","membre","mémoire","menacer","mener","menhir","mensonge","mentor","mercredi","mérite","merle","messager","mesure","métal","météore","méthode","métier","meuble","miauler","microbe","miette","mignon","migrer","milieu","million","mimique","mince","minéral","minimal","minorer","minute","miracle","miroiter","missile","mixte","mobile","moderne","moelleux","mondial","moniteur","monnaie","monotone","monstre","montagne","monument","moqueur","morceau","morsure","mortier","moteur","motif","mouche","moufle","moulin","mousson","mouton","mouvant","multiple","munition","muraille","murène","murmure","muscle","muséum","musicien","mutation","muter","mutuel","myriade","myrtille","mystère","mythique","nageur","nappe","narquois","narrer","natation","nation","nature","naufrage","nautique","navire","nébuleux","nectar","néfaste","négation","négliger","négocier","neige","nerveux","nettoyer","neurone","neutron","neveu","niche","nickel","nitrate","niveau","noble","nocif","nocturne","noirceur","noisette","nomade","nombreux","nommer","normatif","notable","notifier","notoire","nourrir","nouveau","novateur","novembre","novice","nuage","nuancer","nuire","nuisible","numéro","nuptial","nuque","nutritif","obéir","objectif","obliger","obscur","observer","obstacle","obtenir","obturer","occasion","occuper","océan","octobre","octroyer","octupler","oculaire","odeur","odorant","offenser","officier","offrir","ogive","oiseau","oisillon","olfactif","olivier","ombrage","omettre","onctueux","onduler","onéreux","onirique","opale","opaque","opérer","opinion","opportun","opprimer","opter","optique","orageux","orange","orbite","ordonner","oreille","organe","orgueil","orifice","ornement","orque","ortie","osciller","osmose","ossature","otarie","ouragan","ourson","outil","outrager","ouvrage","ovation","oxyde","oxygène","ozone","paisible","palace","palmarès","palourde","palper","panache","panda","pangolin","paniquer","panneau","panorama","pantalon","papaye","papier","papoter","papyrus","paradoxe","parcelle","paresse","parfumer","parler","parole","parrain","parsemer","partager","parure","parvenir","passion","pastèque","paternel","patience","patron","pavillon","pavoiser","payer","paysage","peigne","peintre","pelage","pélican","pelle","pelouse","peluche","pendule","pénétrer","pénible","pensif","pénurie","pépite","péplum","perdrix","perforer","période","permuter","perplexe","persil","perte","peser","pétale","petit","pétrir","peuple","pharaon","phobie","phoque","photon","phrase","physique","piano","pictural","pièce","pierre","pieuvre","pilote","pinceau","pipette","piquer","pirogue","piscine","piston","pivoter","pixel","pizza","placard","plafond","plaisir","planer","plaque","plastron","plateau","pleurer","plexus","pliage","plomb","plonger","pluie","plumage","pochette","poésie","poète","pointe","poirier","poisson","poivre","polaire","policier","pollen","polygone","pommade","pompier","ponctuel","pondérer","poney","portique","position","posséder","posture","potager","poteau","potion","pouce","poulain","poumon","pourpre","poussin","pouvoir","prairie","pratique","précieux","prédire","préfixe","prélude","prénom","présence","prétexte","prévoir","primitif","prince","prison","priver","problème","procéder","prodige","profond","progrès","proie","projeter","prologue","promener","propre","prospère","protéger","prouesse","proverbe","prudence","pruneau","psychose","public","puceron","puiser","pulpe","pulsar","punaise","punitif","pupitre","purifier","puzzle","pyramide","quasar","querelle","question","quiétude","quitter","quotient","racine","raconter","radieux","ragondin","raideur","raisin","ralentir","rallonge","ramasser","rapide","rasage","ratisser","ravager","ravin","rayonner","réactif","réagir","réaliser","réanimer","recevoir","réciter","réclamer","récolter","recruter","reculer","recycler","rédiger","redouter","refaire","réflexe","réformer","refrain","refuge","régalien","région","réglage","régulier","réitérer","rejeter","rejouer","relatif","relever","relief","remarque","remède","remise","remonter","remplir","remuer","renard","renfort","renifler","renoncer","rentrer","renvoi","replier","reporter","reprise","reptile","requin","réserve","résineux","résoudre","respect","rester","résultat","rétablir","retenir","réticule","retomber","retracer","réunion","réussir","revanche","revivre","révolte","révulsif","richesse","rideau","rieur","rigide","rigoler","rincer","riposter","risible","risque","rituel","rival","rivière","rocheux","romance","rompre","ronce","rondin","roseau","rosier","rotatif","rotor","rotule","rouge","rouille","rouleau","routine","royaume","ruban","rubis","ruche","ruelle","rugueux","ruiner","ruisseau","ruser","rustique","rythme","sabler","saboter","sabre","sacoche","safari","sagesse","saisir","salade","salive","salon","saluer","samedi","sanction","sanglier","sarcasme","sardine","saturer","saugrenu","saumon","sauter","sauvage","savant","savonner","scalpel","scandale","scélérat","scénario","sceptre","schéma","science","scinder","score","scrutin","sculpter","séance","sécable","sécher","secouer","sécréter","sédatif","séduire","seigneur","séjour","sélectif","semaine","sembler","semence","séminal","sénateur","sensible","sentence","séparer","séquence","serein","sergent","sérieux","serrure","sérum","service","sésame","sévir","sevrage","sextuple","sidéral","siècle","siéger","siffler","sigle","signal","silence","silicium","simple","sincère","sinistre","siphon","sirop","sismique","situer","skier","social","socle","sodium","soigneux","soldat","soleil","solitude","soluble","sombre","sommeil","somnoler","sonde","songeur","sonnette","sonore","sorcier","sortir","sosie","sottise","soucieux","soudure","souffle","soulever","soupape","source","soutirer","souvenir","spacieux","spatial","spécial","sphère","spiral","stable","station","sternum","stimulus","stipuler","strict","studieux","stupeur","styliste","sublime","substrat","subtil","subvenir","succès","sucre","suffixe","suggérer","suiveur","sulfate","superbe","supplier","surface","suricate","surmener","surprise","sursaut","survie","suspect","syllabe","symbole","symétrie","synapse","syntaxe","système","tabac","tablier","tactile","tailler","talent","talisman","talonner","tambour","tamiser","tangible","tapis","taquiner","tarder","tarif","tartine","tasse","tatami","tatouage","taupe","taureau","taxer","témoin","temporel","tenaille","tendre","teneur","tenir","tension","terminer","terne","terrible","tétine","texte","thème","théorie","thérapie","thorax","tibia","tiède","timide","tirelire","tiroir","tissu","titane","titre","tituber","toboggan","tolérant","tomate","tonique","tonneau","toponyme","torche","tordre","tornade","torpille","torrent","torse","tortue","totem","toucher","tournage","tousser","toxine","traction","trafic","tragique","trahir","train","trancher","travail","trèfle","tremper","trésor","treuil","triage","tribunal","tricoter","trilogie","triomphe","tripler","triturer","trivial","trombone","tronc","tropical","troupeau","tuile","tulipe","tumulte","tunnel","turbine","tuteur","tutoyer","tuyau","tympan","typhon","typique","tyran","ubuesque","ultime","ultrason","unanime","unifier","union","unique","unitaire","univers","uranium","urbain","urticant","usage","usine","usuel","usure","utile","utopie","vacarme","vaccin","vagabond","vague","vaillant","vaincre","vaisseau","valable","valise","vallon","valve","vampire","vanille","vapeur","varier","vaseux","vassal","vaste","vecteur","vedette","végétal","véhicule","veinard","véloce","vendredi","vénérer","venger","venimeux","ventouse","verdure","vérin","vernir","verrou","verser","vertu","veston","vétéran","vétuste","vexant","vexer","viaduc","viande","victoire","vidange","vidéo","vignette","vigueur","vilain","village","vinaigre","violon","vipère","virement","virtuose","virus","visage","viseur","vision","visqueux","visuel","vital","vitesse","viticole","vitrine","vivace","vivipare","vocation","voguer","voile","voisin","voiture","volaille","volcan","voltiger","volume","vorace","vortex","voter","vouloir","voyage","voyelle","wagon","xénon","yacht","zèbre","zénith","zeste","zoologie"]')},5113:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseEther=t.formatEther=t.parseUnits=t.formatUnits=void 0;const o=r(7991),n=r(9593),a=r(7597),i=["wei","kwei","mwei","gwei","szabo","finney","ether"];function s(e,t){let r=18;if("string"==typeof t){const e=i.indexOf(t);(0,o.assertArgument)(e>=0,"invalid unit","unit",t),r=3*e}else null!=t&&(r=(0,a.getNumber)(t,"unit"));return n.FixedNumber.fromValue(e,r,{decimals:r,width:512}).toString()}function c(e,t){(0,o.assertArgument)("string"==typeof e,"value must be a string","value",e);let r=18;if("string"==typeof t){const e=i.indexOf(t);(0,o.assertArgument)(e>=0,"invalid unit","unit",t),r=3*e}else null!=t&&(r=(0,a.getNumber)(t,"unit"));return n.FixedNumber.fromString(e,{decimals:r,width:512}).value}t.formatUnits=s,t.parseUnits=c,t.formatEther=function(e){return s(e,18)},t.parseEther=function(e){return c(e,18)}},5145:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DER=t.DERErr=void 0,t._splitEndoScalar=l,t._normFnElement=y,t.weierstrassN=v,t.SWUFpSqrtRatio=E,t.mapToCurveSimpleSWU=function(e,t){(0,s.validateField)(e);const{A:r,B:o,Z:n}=t;if(!e.isValid(r)||!e.isValid(o)||!e.isValid(n))throw new Error("mapToCurveSimpleSWU: invalid opts");const a=E(e,n);if(!e.isOdd)throw new Error("Field does not have .isOdd()");return t=>{let i,c,l,u,f,d,h,p;i=e.sqr(t),i=e.mul(i,n),c=e.sqr(i),c=e.add(c,i),l=e.add(c,e.ONE),l=e.mul(l,o),u=e.cmov(n,e.neg(c),!e.eql(c,e.ZERO)),u=e.mul(u,r),c=e.sqr(l),d=e.sqr(u),f=e.mul(d,r),c=e.add(c,f),c=e.mul(c,l),d=e.mul(d,u),f=e.mul(d,o),c=e.add(c,f),h=e.mul(i,l);const{isValid:g,value:m}=a(c,d);p=e.mul(i,t),p=e.mul(p,m),h=e.cmov(h,l,g),p=e.cmov(p,m,g);const b=e.isOdd(t)===e.isOdd(p);p=e.cmov(e.neg(p),p,b);const y=(0,s.FpInvertBatch)(e,[u],!0)[0];return h=e.mul(h,y),{x:h,y:p}}},t.ecdh=x,t.ecdsa=A,t.weierstrassPoints=function(e){const{CURVE:t,curveOpts:r}=k(e),o=v(t,r);return function(e,t){const{Fp:r,Fn:o}=t;function n(e){return(0,a.inRange)(e,p,o.ORDER)}const i=S(r,e.a,e.b);return Object.assign({},{CURVE:e,Point:t,ProjectivePoint:t,normPrivateKeyToScalar:e=>y(o,e),weierstrassEquation:i,isWithinCurveOrder:n})}(e,o)},t._legacyHelperEquat=S,t.weierstrass=function(e){const{CURVE:t,curveOpts:r,hash:o,ecdsaOpts:n}=function(e){const{CURVE:t,curveOpts:r}=k(e),o={hmac:e.hmac,randomBytes:e.randomBytes,lowS:e.lowS,bits2int:e.bits2int,bits2int_modN:e.bits2int_modN};return{CURVE:t,curveOpts:r,hash:e.hash,ecdsaOpts:o}}(e),a=A(v(t,r),o,n);return function(e,t){const r=t.Point;return Object.assign({},t,{ProjectivePoint:r,CURVE:Object.assign({},e,(0,s.nLength)(r.Fn.ORDER,r.Fn.BITS))})}(e,a)};
|
|
36
|
+
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
37
|
+
const o=r(1062),n=r(4904),a=r(7827),i=r(3494),s=r(6727),c=(e,t)=>(e+(e>=0?t:-t)/g)/t;function l(e,t,r){const[[o,n],[i,s]]=t,l=c(s*e,r),u=c(-n*e,r);let f=e-l*o-u*i,d=-l*n-u*s;const g=f<h,m=d<h;g&&(f=-f),m&&(d=-d);const b=(0,a.bitMask)(Math.ceil((0,a.bitLen)(r)/2))+p;if(f<h||f>=b||d<h||d>=b)throw new Error("splitScalar (endomorphism): failed, k="+e);return{k1neg:g,k1:f,k2neg:m,k2:d}}function u(e){if(!["compact","recovered","der"].includes(e))throw new Error('Signature format must be "compact", "recovered", or "der"');return e}function f(e,t){const r={};for(let o of Object.keys(t))r[o]=void 0===e[o]?t[o]:e[o];return(0,a._abool2)(r.lowS,"lowS"),(0,a._abool2)(r.prehash,"prehash"),void 0!==r.format&&u(r.format),r}class d extends Error{constructor(e=""){super(e)}}t.DERErr=d,t.DER={Err:d,_tlv:{encode:(e,r)=>{const{Err:o}=t.DER;if(e<0||e>256)throw new o("tlv.encode: wrong tag");if(1&r.length)throw new o("tlv.encode: unpadded data");const n=r.length/2,i=(0,a.numberToHexUnpadded)(n);if(i.length/2&128)throw new o("tlv.encode: long form length too big");const s=n>127?(0,a.numberToHexUnpadded)(i.length/2|128):"";return(0,a.numberToHexUnpadded)(e)+s+i+r},decode(e,r){const{Err:o}=t.DER;let n=0;if(e<0||e>256)throw new o("tlv.encode: wrong tag");if(r.length<2||r[n++]!==e)throw new o("tlv.decode: wrong tlv");const a=r[n++];let i=0;if(!!(128&a)){const e=127&a;if(!e)throw new o("tlv.decode(long): indefinite length not supported");if(e>4)throw new o("tlv.decode(long): byte length is too big");const t=r.subarray(n,n+e);if(t.length!==e)throw new o("tlv.decode: length bytes not complete");if(0===t[0])throw new o("tlv.decode(long): zero leftmost byte");for(const e of t)i=i<<8|e;if(n+=e,i<128)throw new o("tlv.decode(long): not minimal encoding")}else i=a;const s=r.subarray(n,n+i);if(s.length!==i)throw new o("tlv.decode: wrong value length");return{v:s,l:r.subarray(n+i)}}},_int:{encode(e){const{Err:r}=t.DER;if(e<h)throw new r("integer: negative integers are not allowed");let o=(0,a.numberToHexUnpadded)(e);if(8&Number.parseInt(o[0],16)&&(o="00"+o),1&o.length)throw new r("unexpected DER parsing assertion: unpadded hex");return o},decode(e){const{Err:r}=t.DER;if(128&e[0])throw new r("invalid signature integer: negative");if(0===e[0]&&!(128&e[1]))throw new r("invalid signature integer: unnecessary leading zero");return(0,a.bytesToNumberBE)(e)}},toSig(e){const{Err:r,_int:o,_tlv:n}=t.DER,i=(0,a.ensureBytes)("signature",e),{v:s,l:c}=n.decode(48,i);if(c.length)throw new r("invalid signature: left bytes after parsing");const{v:l,l:u}=n.decode(2,s),{v:f,l:d}=n.decode(2,u);if(d.length)throw new r("invalid signature: left bytes after parsing");return{r:o.decode(l),s:o.decode(f)}},hexFromSig(e){const{_tlv:r,_int:o}=t.DER,n=r.encode(2,o.encode(e.r))+r.encode(2,o.encode(e.s));return r.encode(48,n)}};const h=BigInt(0),p=BigInt(1),g=BigInt(2),m=BigInt(3),b=BigInt(4);function y(e,t){const{BYTES:r}=e;let o;if("bigint"==typeof t)o=t;else{let n=(0,a.ensureBytes)("private key",t);try{o=e.fromBytes(n)}catch(e){throw new Error(`invalid private key: expected ui8a of size ${r}, got ${typeof t}`)}}if(!e.isValidNot0(o))throw new Error("invalid private key: out of range [1..N-1]");return o}function v(e,t={}){const r=(0,i._createCurveFields)("weierstrass",e,t),{Fp:o,Fn:n}=r;let s=r.CURVE;const{h:c,n:u}=s;(0,a._validateObject)(t,{},{allowInfinityPoint:"boolean",clearCofactor:"function",isTorsionFree:"function",fromBytes:"function",toBytes:"function",endo:"object",wrapPrivateKey:"boolean"});const{endo:f}=t;if(f&&(!o.is0(s.a)||"bigint"!=typeof f.beta||!Array.isArray(f.basises)))throw new Error('invalid endo: expected "beta": bigint and "basises": array');const d=B(o,n);function g(){if(!o.isOdd)throw new Error("compression is not supported: Field does not have .isOdd()")}const v=t.toBytes||function(e,t,r){const{x:n,y:i}=t.toAffine(),s=o.toBytes(n);if((0,a._abool2)(r,"isCompressed"),r){g();const e=!o.isOdd(i);return(0,a.concatBytes)(w(e),s)}return(0,a.concatBytes)(Uint8Array.of(4),s,o.toBytes(i))},E=t.fromBytes||function(e){(0,a._abytes2)(e,void 0,"Point");const{publicKey:t,publicKeyUncompressed:r}=d,n=e.length,i=e[0],s=e.subarray(1);if(n!==t||2!==i&&3!==i){if(n===r&&4===i){const e=o.BYTES,t=o.fromBytes(s.subarray(0,e)),r=o.fromBytes(s.subarray(e,2*e));if(!A(t,r))throw new Error("bad point: is not on curve");return{x:t,y:r}}throw new Error(`bad point: got length ${n}, expected compressed=${t} or uncompressed=${r}`)}{const e=o.fromBytes(s);if(!o.isValid(e))throw new Error("bad point: is not on curve, wrong x");const t=x(e);let r;try{r=o.sqrt(t)}catch(e){const t=e instanceof Error?": "+e.message:"";throw new Error("bad point: is not on curve, sqrt error"+t)}g();return!(1&~i)!==o.isOdd(r)&&(r=o.neg(r)),{x:e,y:r}}};function x(e){const t=o.sqr(e),r=o.mul(t,e);return o.add(o.add(r,o.mul(e,s.a)),s.b)}function A(e,t){const r=o.sqr(t),n=x(e);return o.eql(r,n)}if(!A(s.Gx,s.Gy))throw new Error("bad curve params: generator point");const k=o.mul(o.pow(s.a,m),b),S=o.mul(o.sqr(s.b),BigInt(27));if(o.is0(o.add(k,S)))throw new Error("bad curve params: a or b");function C(e,t,r=!1){if(!o.isValid(t)||r&&o.is0(t))throw new Error(`bad point coordinate ${e}`);return t}function T(e){if(!(e instanceof L))throw new Error("ProjectivePoint expected")}function P(e){if(!f||!f.basises)throw new Error("no endo");return l(e,f.basises,n.ORDER)}const O=(0,a.memoized)((e,t)=>{const{X:r,Y:n,Z:a}=e;if(o.eql(a,o.ONE))return{x:r,y:n};const i=e.is0();null==t&&(t=i?o.ONE:o.inv(a));const s=o.mul(r,t),c=o.mul(n,t),l=o.mul(a,t);if(i)return{x:o.ZERO,y:o.ZERO};if(!o.eql(l,o.ONE))throw new Error("invZ was invalid");return{x:s,y:c}}),I=(0,a.memoized)(e=>{if(e.is0()){if(t.allowInfinityPoint&&!o.is0(e.Y))return;throw new Error("bad point: ZERO")}const{x:r,y:n}=e.toAffine();if(!o.isValid(r)||!o.isValid(n))throw new Error("bad point: x or y not field elements");if(!A(r,n))throw new Error("bad point: equation left != right");if(!e.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});function z(e,t,r,n,a){return r=new L(o.mul(r.X,e),r.Y,r.Z),t=(0,i.negateCt)(n,t),r=(0,i.negateCt)(a,r),t.add(r)}class L{constructor(e,t,r){this.X=C("x",e),this.Y=C("y",t,!0),this.Z=C("z",r),Object.freeze(this)}static CURVE(){return s}static fromAffine(e){const{x:t,y:r}=e||{};if(!e||!o.isValid(t)||!o.isValid(r))throw new Error("invalid affine point");if(e instanceof L)throw new Error("projective point not allowed");return o.is0(t)&&o.is0(r)?L.ZERO:new L(t,r,o.ONE)}static fromBytes(e){const t=L.fromAffine(E((0,a._abytes2)(e,void 0,"point")));return t.assertValidity(),t}static fromHex(e){return L.fromBytes((0,a.ensureBytes)("pointHex",e))}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(e=8,t=!0){return N.createCache(this,e),t||this.multiply(m),this}assertValidity(){I(this)}hasEvenY(){const{y:e}=this.toAffine();if(!o.isOdd)throw new Error("Field doesn't support isOdd");return!o.isOdd(e)}equals(e){T(e);const{X:t,Y:r,Z:n}=this,{X:a,Y:i,Z:s}=e,c=o.eql(o.mul(t,s),o.mul(a,n)),l=o.eql(o.mul(r,s),o.mul(i,n));return c&&l}negate(){return new L(this.X,o.neg(this.Y),this.Z)}double(){const{a:e,b:t}=s,r=o.mul(t,m),{X:n,Y:a,Z:i}=this;let c=o.ZERO,l=o.ZERO,u=o.ZERO,f=o.mul(n,n),d=o.mul(a,a),h=o.mul(i,i),p=o.mul(n,a);return p=o.add(p,p),u=o.mul(n,i),u=o.add(u,u),c=o.mul(e,u),l=o.mul(r,h),l=o.add(c,l),c=o.sub(d,l),l=o.add(d,l),l=o.mul(c,l),c=o.mul(p,c),u=o.mul(r,u),h=o.mul(e,h),p=o.sub(f,h),p=o.mul(e,p),p=o.add(p,u),u=o.add(f,f),f=o.add(u,f),f=o.add(f,h),f=o.mul(f,p),l=o.add(l,f),h=o.mul(a,i),h=o.add(h,h),f=o.mul(h,p),c=o.sub(c,f),u=o.mul(h,d),u=o.add(u,u),u=o.add(u,u),new L(c,l,u)}add(e){T(e);const{X:t,Y:r,Z:n}=this,{X:a,Y:i,Z:c}=e;let l=o.ZERO,u=o.ZERO,f=o.ZERO;const d=s.a,h=o.mul(s.b,m);let p=o.mul(t,a),g=o.mul(r,i),b=o.mul(n,c),y=o.add(t,r),v=o.add(a,i);y=o.mul(y,v),v=o.add(p,g),y=o.sub(y,v),v=o.add(t,n);let w=o.add(a,c);return v=o.mul(v,w),w=o.add(p,b),v=o.sub(v,w),w=o.add(r,n),l=o.add(i,c),w=o.mul(w,l),l=o.add(g,b),w=o.sub(w,l),f=o.mul(d,v),l=o.mul(h,b),f=o.add(l,f),l=o.sub(g,f),f=o.add(g,f),u=o.mul(l,f),g=o.add(p,p),g=o.add(g,p),b=o.mul(d,b),v=o.mul(h,v),g=o.add(g,b),b=o.sub(p,b),b=o.mul(d,b),v=o.add(v,b),p=o.mul(g,v),u=o.add(u,p),p=o.mul(w,v),l=o.mul(y,l),l=o.sub(l,p),p=o.mul(y,g),f=o.mul(w,f),f=o.add(f,p),new L(l,u,f)}subtract(e){return this.add(e.negate())}is0(){return this.equals(L.ZERO)}multiply(e){const{endo:r}=t;if(!n.isValidNot0(e))throw new Error("invalid scalar: out of range");let o,a;const s=e=>N.cached(this,e,e=>(0,i.normalizeZ)(L,e));if(r){const{k1neg:t,k1:n,k2neg:i,k2:c}=P(e),{p:l,f:u}=s(n),{p:f,f:d}=s(c);a=u.add(d),o=z(r.beta,l,f,t,i)}else{const{p:t,f:r}=s(e);o=t,a=r}return(0,i.normalizeZ)(L,[o,a])[0]}multiplyUnsafe(e){const{endo:r}=t,o=this;if(!n.isValid(e))throw new Error("invalid scalar: out of range");if(e===h||o.is0())return L.ZERO;if(e===p)return o;if(N.hasCache(this))return this.multiply(e);if(r){const{k1neg:t,k1:n,k2neg:a,k2:s}=P(e),{p1:c,p2:l}=(0,i.mulEndoUnsafe)(L,o,n,s);return z(r.beta,c,l,t,a)}return N.unsafe(o,e)}multiplyAndAddUnsafe(e,t,r){const o=this.multiplyUnsafe(t).add(e.multiplyUnsafe(r));return o.is0()?void 0:o}toAffine(e){return O(this,e)}isTorsionFree(){const{isTorsionFree:e}=t;return c===p||(e?e(L,this):N.unsafe(this,u).is0())}clearCofactor(){const{clearCofactor:e}=t;return c===p?this:e?e(L,this):this.multiplyUnsafe(c)}isSmallOrder(){return this.multiplyUnsafe(c).is0()}toBytes(e=!0){return(0,a._abool2)(e,"isCompressed"),this.assertValidity(),v(L,this,e)}toHex(e=!0){return(0,a.bytesToHex)(this.toBytes(e))}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}get px(){return this.X}get py(){return this.X}get pz(){return this.Z}toRawBytes(e=!0){return this.toBytes(e)}_setWindowSize(e){this.precompute(e)}static normalizeZ(e){return(0,i.normalizeZ)(L,e)}static msm(e,t){return(0,i.pippenger)(L,n,e,t)}static fromPrivateKey(e){return L.BASE.multiply(y(n,e))}}L.BASE=new L(s.Gx,s.Gy,o.ONE),L.ZERO=new L(o.ZERO,o.ONE,o.ZERO),L.Fp=o,L.Fn=n;const R=n.BITS,N=new i.wNAF(L,t.endo?Math.ceil(R/2):R);return L.BASE.precompute(8),L}function w(e){return Uint8Array.of(e?2:3)}function E(e,t){const r=e.ORDER;let o=h;for(let e=r-p;e%g===h;e/=g)o+=p;const n=o,a=g<<n-p-p,i=a*g,s=(r-p)/i,c=(s-p)/g,l=i-p,u=a,f=e.pow(t,s),d=e.pow(t,(s+p)/g);let y=(t,r)=>{let o=f,a=e.pow(r,l),i=e.sqr(a);i=e.mul(i,r);let s=e.mul(t,i);s=e.pow(s,c),s=e.mul(s,a),a=e.mul(s,r),i=e.mul(s,t);let h=e.mul(i,a);s=e.pow(h,u);let m=e.eql(s,e.ONE);a=e.mul(i,d),s=e.mul(h,o),i=e.cmov(a,i,m),h=e.cmov(s,h,m);for(let t=n;t>p;t--){let r=t-g;r=g<<r-p;let n=e.pow(h,r);const s=e.eql(n,e.ONE);a=e.mul(i,o),o=e.mul(o,o),n=e.mul(h,o),i=e.cmov(a,i,s),h=e.cmov(n,h,s)}return{isValid:m,value:i}};if(e.ORDER%b===m){const r=(e.ORDER-m)/b,o=e.sqrt(e.neg(t));y=(t,n)=>{let a=e.sqr(n);const i=e.mul(t,n);a=e.mul(a,i);let s=e.pow(a,r);s=e.mul(s,i);const c=e.mul(s,o),l=e.mul(e.sqr(s),n),u=e.eql(l,t);return{isValid:u,value:e.cmov(c,s,u)}}}return y}function B(e,t){return{secretKey:t.BYTES,publicKey:1+e.BYTES,publicKeyUncompressed:1+2*e.BYTES,publicKeyHasPrefix:!0,signature:2*t.BYTES}}function x(e,t={}){const{Fn:r}=e,o=t.randomBytes||a.randomBytes,n=Object.assign(B(e.Fp,r),{seed:(0,s.getMinHashLength)(r.ORDER)});function i(e){try{return!!y(r,e)}catch(e){return!1}}function c(e=o(n.seed)){return(0,s.mapHashToField)((0,a._abytes2)(e,n.seed,"seed"),r.ORDER)}function l(t,o=!0){return e.BASE.multiply(y(r,t)).toBytes(o)}function u(t){if("bigint"==typeof t)return!1;if(t instanceof e)return!0;const{secretKey:o,publicKey:i,publicKeyUncompressed:s}=n;if(r.allowedLengths||o===i)return;const c=(0,a.ensureBytes)("key",t).length;return c===i||c===s}const f={isValidSecretKey:i,isValidPublicKey:function(t,r){const{publicKey:o,publicKeyUncompressed:a}=n;try{const n=t.length;return(!0!==r||n===o)&&((!1!==r||n===a)&&!!e.fromBytes(t))}catch(e){return!1}},randomSecretKey:c,isValidPrivateKey:i,randomPrivateKey:c,normPrivateKeyToScalar:e=>y(r,e),precompute:(t=8,r=e.BASE)=>r.precompute(t,!1)};return Object.freeze({getPublicKey:l,getSharedSecret:function(t,o,n=!0){if(!0===u(t))throw new Error("first arg must be private key");if(!1===u(o))throw new Error("second arg must be public key");const a=y(r,t);return e.fromHex(o).multiply(a).toBytes(n)},keygen:function(e){const t=c(e);return{secretKey:t,publicKey:l(t)}},Point:e,utils:f,lengths:n})}function A(e,r,i={}){(0,n.ahash)(r),(0,a._validateObject)(i,{},{hmac:"function",lowS:"boolean",randomBytes:"function",bits2int:"function",bits2int_modN:"function"});const s=i.randomBytes||a.randomBytes,c=i.hmac||((e,...t)=>(0,o.hmac)(r,e,(0,a.concatBytes)(...t))),{Fp:l,Fn:d}=e,{ORDER:m,BITS:b}=d,{keygen:v,getPublicKey:E,getSharedSecret:B,utils:A,lengths:k}=x(e,i),S={prehash:!1,lowS:"boolean"==typeof i.lowS&&i.lowS,format:void 0,extraEntropy:!1},C="compact";function T(e){return e>m>>p}function P(e,t){if(!d.isValidNot0(t))throw new Error(`invalid signature ${e}: out of range 1..Point.Fn.ORDER`);return t}class O{constructor(e,t,r){this.r=P("r",e),this.s=P("s",t),null!=r&&(this.recovery=r),Object.freeze(this)}static fromBytes(e,r=C){let o;if(function(e,t){u(t);const r=k.signature,o="compact"===t?r:"recovered"===t?r+1:void 0;(0,a._abytes2)(e,o,`${t} signature`)}(e,r),"der"===r){const{r,s:o}=t.DER.toSig((0,a._abytes2)(e));return new O(r,o)}"recovered"===r&&(o=e[0],r="compact",e=e.subarray(1));const n=d.BYTES,i=e.subarray(0,n),s=e.subarray(n,2*n);return new O(d.fromBytes(i),d.fromBytes(s),o)}static fromHex(e,t){return this.fromBytes((0,a.hexToBytes)(e),t)}addRecoveryBit(e){return new O(this.r,this.s,e)}recoverPublicKey(t){const r=l.ORDER,{r:o,s:n,recovery:i}=this;if(null==i||![0,1,2,3].includes(i))throw new Error("recovery id invalid");if(m*g<r&&i>1)throw new Error("recovery id is ambiguous for h>1 curve");const s=2===i||3===i?o+m:o;if(!l.isValid(s))throw new Error("recovery id 2 or 3 invalid");const c=l.toBytes(s),u=e.fromBytes((0,a.concatBytes)(w(!(1&i)),c)),f=d.inv(s),h=z((0,a.ensureBytes)("msgHash",t)),p=d.create(-h*f),b=d.create(n*f),y=e.BASE.multiplyUnsafe(p).add(u.multiplyUnsafe(b));if(y.is0())throw new Error("point at infinify");return y.assertValidity(),y}hasHighS(){return T(this.s)}toBytes(e=C){if(u(e),"der"===e)return(0,a.hexToBytes)(t.DER.hexFromSig(this));const r=d.toBytes(this.r),o=d.toBytes(this.s);if("recovered"===e){if(null==this.recovery)throw new Error("recovery bit must be present");return(0,a.concatBytes)(Uint8Array.of(this.recovery),r,o)}return(0,a.concatBytes)(r,o)}toHex(e){return(0,a.bytesToHex)(this.toBytes(e))}assertValidity(){}static fromCompact(e){return O.fromBytes((0,a.ensureBytes)("sig",e),"compact")}static fromDER(e){return O.fromBytes((0,a.ensureBytes)("sig",e),"der")}normalizeS(){return this.hasHighS()?new O(this.r,d.neg(this.s),this.recovery):this}toDERRawBytes(){return this.toBytes("der")}toDERHex(){return(0,a.bytesToHex)(this.toBytes("der"))}toCompactRawBytes(){return this.toBytes("compact")}toCompactHex(){return(0,a.bytesToHex)(this.toBytes("compact"))}}const I=i.bits2int||function(e){if(e.length>8192)throw new Error("input is too large");const t=(0,a.bytesToNumberBE)(e),r=8*e.length-b;return r>0?t>>BigInt(r):t},z=i.bits2int_modN||function(e){return d.create(I(e))},L=(0,a.bitMask)(b);function R(e){return(0,a.aInRange)("num < 2^"+b,e,h,L),d.toBytes(e)}function N(e,t){return(0,a._abytes2)(e,void 0,"message"),t?(0,a._abytes2)(r(e),void 0,"prehashed message"):e}return Object.freeze({keygen:v,getPublicKey:E,getSharedSecret:B,utils:A,lengths:k,Point:e,sign:function(t,o,n={}){t=(0,a.ensureBytes)("message",t);const{seed:i,k2sig:l}=function(t,r,o){if(["recovered","canonical"].some(e=>e in o))throw new Error("sign() legacy options not supported");const{lowS:n,prehash:i,extraEntropy:c}=f(o,S);t=N(t,i);const l=z(t),u=y(d,r),g=[R(u),R(l)];if(null!=c&&!1!==c){const e=!0===c?s(k.secretKey):c;g.push((0,a.ensureBytes)("extraEntropy",e))}const m=(0,a.concatBytes)(...g),b=l;return{seed:m,k2sig:function(t){const r=I(t);if(!d.isValidNot0(r))return;const o=d.inv(r),a=e.BASE.multiply(r).toAffine(),i=d.create(a.x);if(i===h)return;const s=d.create(o*d.create(b+i*u));if(s===h)return;let c=(a.x===i?0:2)|Number(a.y&p),l=s;return n&&T(s)&&(l=d.neg(s),c^=1),new O(i,l,c)}}}(t,o,n);return(0,a.createHmacDrbg)(r.outputLen,d.BYTES,c)(i,l)},verify:function(r,o,n,i={}){const{lowS:s,prehash:c,format:l}=f(i,S);if(n=(0,a.ensureBytes)("publicKey",n),o=N((0,a.ensureBytes)("message",o),c),"strict"in i)throw new Error("options.strict was renamed to lowS");const u=void 0===l?function(e){let r;const o="string"==typeof e||(0,a.isBytes)(e),n=!o&&null!==e&&"object"==typeof e&&"bigint"==typeof e.r&&"bigint"==typeof e.s;if(!o&&!n)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");if(n)r=new O(e.r,e.s);else if(o){try{r=O.fromBytes((0,a.ensureBytes)("sig",e),"der")}catch(e){if(!(e instanceof t.DER.Err))throw e}if(!r)try{r=O.fromBytes((0,a.ensureBytes)("sig",e),"compact")}catch(e){return!1}}return r||!1}(r):O.fromBytes((0,a.ensureBytes)("sig",r),l);if(!1===u)return!1;try{const t=e.fromBytes(n);if(s&&u.hasHighS())return!1;const{r,s:a}=u,i=z(o),c=d.inv(a),l=d.create(i*c),f=d.create(r*c),h=e.BASE.multiplyUnsafe(l).add(t.multiplyUnsafe(f));if(h.is0())return!1;return d.create(h.x)===r}catch(e){return!1}},recoverPublicKey:function(e,t,r={}){const{prehash:o}=f(r,S);return t=N(t,o),O.fromBytes(e,"recovered").recoverPublicKey(t).toBytes()},Signature:O,hash:r})}function k(e){const t={a:e.a,b:e.b,p:e.Fp.ORDER,n:e.n,h:e.h,Gx:e.Gx,Gy:e.Gy},r=e.Fp;let o=e.allowedPrivateKeyLengths?Array.from(new Set(e.allowedPrivateKeyLengths.map(e=>Math.ceil(e/2)))):void 0;return{CURVE:t,curveOpts:{Fp:r,Fn:(0,s.Field)(t.n,{BITS:e.nBitLength,allowedLengths:o,modFromBytes:e.wrapPrivateKey}),allowInfinityPoint:e.allowInfinityPoint,endo:e.endo,isTorsionFree:e.isTorsionFree,clearCofactor:e.clearCofactor,fromBytes:e.fromBytes,toBytes:e.toBytes}}}function S(e,t,r){return function(o){const n=e.sqr(o),a=e.mul(n,o);return e.add(e.add(a,e.mul(o,t)),r)}}},5197:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="6.16.0"},5213:(e,t)=>{"use strict";function r(e,t,r){const o=t.split("|").map(e=>e.trim());for(let r=0;r<o.length;r++)switch(t){case"any":return;case"bigint":case"boolean":case"number":case"string":if(typeof e===t)return}const n=new Error(`invalid value for type ${t}`);throw n.code="INVALID_ARGUMENT",n.argument=`value.${r}`,n.value=e,n}Object.defineProperty(t,"__esModule",{value:!0}),t.defineProperties=t.resolveProperties=void 0,t.resolveProperties=async function(e){const t=Object.keys(e);return(await Promise.all(t.map(t=>Promise.resolve(e[t])))).reduce((e,r,o)=>(e[t[o]]=r,e),{})},t.defineProperties=function(e,t,o){for(let n in t){let a=t[n];const i=o?o[n]:null;i&&r(a,i,n),Object.defineProperty(e,n,{enumerable:!0,value:a,writable:!1})}}},5376:e=>{"use strict";e.exports=JSON.parse('["ábaco","abdomen","abeja","abierto","abogado","abono","aborto","abrazo","abrir","abuelo","abuso","acabar","academia","acceso","acción","aceite","acelga","acento","aceptar","ácido","aclarar","acné","acoger","acoso","activo","acto","actriz","actuar","acudir","acuerdo","acusar","adicto","admitir","adoptar","adorno","aduana","adulto","aéreo","afectar","afición","afinar","afirmar","ágil","agitar","agonía","agosto","agotar","agregar","agrio","agua","agudo","águila","aguja","ahogo","ahorro","aire","aislar","ajedrez","ajeno","ajuste","alacrán","alambre","alarma","alba","álbum","alcalde","aldea","alegre","alejar","alerta","aleta","alfiler","alga","algodón","aliado","aliento","alivio","alma","almeja","almíbar","altar","alteza","altivo","alto","altura","alumno","alzar","amable","amante","amapola","amargo","amasar","ámbar","ámbito","ameno","amigo","amistad","amor","amparo","amplio","ancho","anciano","ancla","andar","andén","anemia","ángulo","anillo","ánimo","anís","anotar","antena","antiguo","antojo","anual","anular","anuncio","añadir","añejo","año","apagar","aparato","apetito","apio","aplicar","apodo","aporte","apoyo","aprender","aprobar","apuesta","apuro","arado","araña","arar","árbitro","árbol","arbusto","archivo","arco","arder","ardilla","arduo","área","árido","aries","armonía","arnés","aroma","arpa","arpón","arreglo","arroz","arruga","arte","artista","asa","asado","asalto","ascenso","asegurar","aseo","asesor","asiento","asilo","asistir","asno","asombro","áspero","astilla","astro","astuto","asumir","asunto","atajo","ataque","atar","atento","ateo","ático","atleta","átomo","atraer","atroz","atún","audaz","audio","auge","aula","aumento","ausente","autor","aval","avance","avaro","ave","avellana","avena","avestruz","avión","aviso","ayer","ayuda","ayuno","azafrán","azar","azote","azúcar","azufre","azul","baba","babor","bache","bahía","baile","bajar","balanza","balcón","balde","bambú","banco","banda","baño","barba","barco","barniz","barro","báscula","bastón","basura","batalla","batería","batir","batuta","baúl","bazar","bebé","bebida","bello","besar","beso","bestia","bicho","bien","bingo","blanco","bloque","blusa","boa","bobina","bobo","boca","bocina","boda","bodega","boina","bola","bolero","bolsa","bomba","bondad","bonito","bono","bonsái","borde","borrar","bosque","bote","botín","bóveda","bozal","bravo","brazo","brecha","breve","brillo","brinco","brisa","broca","broma","bronce","brote","bruja","brusco","bruto","buceo","bucle","bueno","buey","bufanda","bufón","búho","buitre","bulto","burbuja","burla","burro","buscar","butaca","buzón","caballo","cabeza","cabina","cabra","cacao","cadáver","cadena","caer","café","caída","caimán","caja","cajón","cal","calamar","calcio","caldo","calidad","calle","calma","calor","calvo","cama","cambio","camello","camino","campo","cáncer","candil","canela","canguro","canica","canto","caña","cañón","caoba","caos","capaz","capitán","capote","captar","capucha","cara","carbón","cárcel","careta","carga","cariño","carne","carpeta","carro","carta","casa","casco","casero","caspa","castor","catorce","catre","caudal","causa","cazo","cebolla","ceder","cedro","celda","célebre","celoso","célula","cemento","ceniza","centro","cerca","cerdo","cereza","cero","cerrar","certeza","césped","cetro","chacal","chaleco","champú","chancla","chapa","charla","chico","chiste","chivo","choque","choza","chuleta","chupar","ciclón","ciego","cielo","cien","cierto","cifra","cigarro","cima","cinco","cine","cinta","ciprés","circo","ciruela","cisne","cita","ciudad","clamor","clan","claro","clase","clave","cliente","clima","clínica","cobre","cocción","cochino","cocina","coco","código","codo","cofre","coger","cohete","cojín","cojo","cola","colcha","colegio","colgar","colina","collar","colmo","columna","combate","comer","comida","cómodo","compra","conde","conejo","conga","conocer","consejo","contar","copa","copia","corazón","corbata","corcho","cordón","corona","correr","coser","cosmos","costa","cráneo","cráter","crear","crecer","creído","crema","cría","crimen","cripta","crisis","cromo","crónica","croqueta","crudo","cruz","cuadro","cuarto","cuatro","cubo","cubrir","cuchara","cuello","cuento","cuerda","cuesta","cueva","cuidar","culebra","culpa","culto","cumbre","cumplir","cuna","cuneta","cuota","cupón","cúpula","curar","curioso","curso","curva","cutis","dama","danza","dar","dardo","dátil","deber","débil","década","decir","dedo","defensa","definir","dejar","delfín","delgado","delito","demora","denso","dental","deporte","derecho","derrota","desayuno","deseo","desfile","desnudo","destino","desvío","detalle","detener","deuda","día","diablo","diadema","diamante","diana","diario","dibujo","dictar","diente","dieta","diez","difícil","digno","dilema","diluir","dinero","directo","dirigir","disco","diseño","disfraz","diva","divino","doble","doce","dolor","domingo","don","donar","dorado","dormir","dorso","dos","dosis","dragón","droga","ducha","duda","duelo","dueño","dulce","dúo","duque","durar","dureza","duro","ébano","ebrio","echar","eco","ecuador","edad","edición","edificio","editor","educar","efecto","eficaz","eje","ejemplo","elefante","elegir","elemento","elevar","elipse","élite","elixir","elogio","eludir","embudo","emitir","emoción","empate","empeño","empleo","empresa","enano","encargo","enchufe","encía","enemigo","enero","enfado","enfermo","engaño","enigma","enlace","enorme","enredo","ensayo","enseñar","entero","entrar","envase","envío","época","equipo","erizo","escala","escena","escolar","escribir","escudo","esencia","esfera","esfuerzo","espada","espejo","espía","esposa","espuma","esquí","estar","este","estilo","estufa","etapa","eterno","ética","etnia","evadir","evaluar","evento","evitar","exacto","examen","exceso","excusa","exento","exigir","exilio","existir","éxito","experto","explicar","exponer","extremo","fábrica","fábula","fachada","fácil","factor","faena","faja","falda","fallo","falso","faltar","fama","familia","famoso","faraón","farmacia","farol","farsa","fase","fatiga","fauna","favor","fax","febrero","fecha","feliz","feo","feria","feroz","fértil","fervor","festín","fiable","fianza","fiar","fibra","ficción","ficha","fideo","fiebre","fiel","fiera","fiesta","figura","fijar","fijo","fila","filete","filial","filtro","fin","finca","fingir","finito","firma","flaco","flauta","flecha","flor","flota","fluir","flujo","flúor","fobia","foca","fogata","fogón","folio","folleto","fondo","forma","forro","fortuna","forzar","fosa","foto","fracaso","frágil","franja","frase","fraude","freír","freno","fresa","frío","frito","fruta","fuego","fuente","fuerza","fuga","fumar","función","funda","furgón","furia","fusil","fútbol","futuro","gacela","gafas","gaita","gajo","gala","galería","gallo","gamba","ganar","gancho","ganga","ganso","garaje","garza","gasolina","gastar","gato","gavilán","gemelo","gemir","gen","género","genio","gente","geranio","gerente","germen","gesto","gigante","gimnasio","girar","giro","glaciar","globo","gloria","gol","golfo","goloso","golpe","goma","gordo","gorila","gorra","gota","goteo","gozar","grada","gráfico","grano","grasa","gratis","grave","grieta","grillo","gripe","gris","grito","grosor","grúa","grueso","grumo","grupo","guante","guapo","guardia","guerra","guía","guiño","guion","guiso","guitarra","gusano","gustar","haber","hábil","hablar","hacer","hacha","hada","hallar","hamaca","harina","haz","hazaña","hebilla","hebra","hecho","helado","helio","hembra","herir","hermano","héroe","hervir","hielo","hierro","hígado","higiene","hijo","himno","historia","hocico","hogar","hoguera","hoja","hombre","hongo","honor","honra","hora","hormiga","horno","hostil","hoyo","hueco","huelga","huerta","hueso","huevo","huida","huir","humano","húmedo","humilde","humo","hundir","huracán","hurto","icono","ideal","idioma","ídolo","iglesia","iglú","igual","ilegal","ilusión","imagen","imán","imitar","impar","imperio","imponer","impulso","incapaz","índice","inerte","infiel","informe","ingenio","inicio","inmenso","inmune","innato","insecto","instante","interés","íntimo","intuir","inútil","invierno","ira","iris","ironía","isla","islote","jabalí","jabón","jamón","jarabe","jardín","jarra","jaula","jazmín","jefe","jeringa","jinete","jornada","joroba","joven","joya","juerga","jueves","juez","jugador","jugo","juguete","juicio","junco","jungla","junio","juntar","júpiter","jurar","justo","juvenil","juzgar","kilo","koala","labio","lacio","lacra","lado","ladrón","lagarto","lágrima","laguna","laico","lamer","lámina","lámpara","lana","lancha","langosta","lanza","lápiz","largo","larva","lástima","lata","látex","latir","laurel","lavar","lazo","leal","lección","leche","lector","leer","legión","legumbre","lejano","lengua","lento","leña","león","leopardo","lesión","letal","letra","leve","leyenda","libertad","libro","licor","líder","lidiar","lienzo","liga","ligero","lima","límite","limón","limpio","lince","lindo","línea","lingote","lino","linterna","líquido","liso","lista","litera","litio","litro","llaga","llama","llanto","llave","llegar","llenar","llevar","llorar","llover","lluvia","lobo","loción","loco","locura","lógica","logro","lombriz","lomo","lonja","lote","lucha","lucir","lugar","lujo","luna","lunes","lupa","lustro","luto","luz","maceta","macho","madera","madre","maduro","maestro","mafia","magia","mago","maíz","maldad","maleta","malla","malo","mamá","mambo","mamut","manco","mando","manejar","manga","maniquí","manjar","mano","manso","manta","mañana","mapa","máquina","mar","marco","marea","marfil","margen","marido","mármol","marrón","martes","marzo","masa","máscara","masivo","matar","materia","matiz","matriz","máximo","mayor","mazorca","mecha","medalla","medio","médula","mejilla","mejor","melena","melón","memoria","menor","mensaje","mente","menú","mercado","merengue","mérito","mes","mesón","meta","meter","método","metro","mezcla","miedo","miel","miembro","miga","mil","milagro","militar","millón","mimo","mina","minero","mínimo","minuto","miope","mirar","misa","miseria","misil","mismo","mitad","mito","mochila","moción","moda","modelo","moho","mojar","molde","moler","molino","momento","momia","monarca","moneda","monja","monto","moño","morada","morder","moreno","morir","morro","morsa","mortal","mosca","mostrar","motivo","mover","móvil","mozo","mucho","mudar","mueble","muela","muerte","muestra","mugre","mujer","mula","muleta","multa","mundo","muñeca","mural","muro","músculo","museo","musgo","música","muslo","nácar","nación","nadar","naipe","naranja","nariz","narrar","nasal","natal","nativo","natural","náusea","naval","nave","navidad","necio","néctar","negar","negocio","negro","neón","nervio","neto","neutro","nevar","nevera","nicho","nido","niebla","nieto","niñez","niño","nítido","nivel","nobleza","noche","nómina","noria","norma","norte","nota","noticia","novato","novela","novio","nube","nuca","núcleo","nudillo","nudo","nuera","nueve","nuez","nulo","número","nutria","oasis","obeso","obispo","objeto","obra","obrero","observar","obtener","obvio","oca","ocaso","océano","ochenta","ocho","ocio","ocre","octavo","octubre","oculto","ocupar","ocurrir","odiar","odio","odisea","oeste","ofensa","oferta","oficio","ofrecer","ogro","oído","oír","ojo","ola","oleada","olfato","olivo","olla","olmo","olor","olvido","ombligo","onda","onza","opaco","opción","ópera","opinar","oponer","optar","óptica","opuesto","oración","orador","oral","órbita","orca","orden","oreja","órgano","orgía","orgullo","oriente","origen","orilla","oro","orquesta","oruga","osadía","oscuro","osezno","oso","ostra","otoño","otro","oveja","óvulo","óxido","oxígeno","oyente","ozono","pacto","padre","paella","página","pago","país","pájaro","palabra","palco","paleta","pálido","palma","paloma","palpar","pan","panal","pánico","pantera","pañuelo","papá","papel","papilla","paquete","parar","parcela","pared","parir","paro","párpado","parque","párrafo","parte","pasar","paseo","pasión","paso","pasta","pata","patio","patria","pausa","pauta","pavo","payaso","peatón","pecado","pecera","pecho","pedal","pedir","pegar","peine","pelar","peldaño","pelea","peligro","pellejo","pelo","peluca","pena","pensar","peñón","peón","peor","pepino","pequeño","pera","percha","perder","pereza","perfil","perico","perla","permiso","perro","persona","pesa","pesca","pésimo","pestaña","pétalo","petróleo","pez","pezuña","picar","pichón","pie","piedra","pierna","pieza","pijama","pilar","piloto","pimienta","pino","pintor","pinza","piña","piojo","pipa","pirata","pisar","piscina","piso","pista","pitón","pizca","placa","plan","plata","playa","plaza","pleito","pleno","plomo","pluma","plural","pobre","poco","poder","podio","poema","poesía","poeta","polen","policía","pollo","polvo","pomada","pomelo","pomo","pompa","poner","porción","portal","posada","poseer","posible","poste","potencia","potro","pozo","prado","precoz","pregunta","premio","prensa","preso","previo","primo","príncipe","prisión","privar","proa","probar","proceso","producto","proeza","profesor","programa","prole","promesa","pronto","propio","próximo","prueba","público","puchero","pudor","pueblo","puerta","puesto","pulga","pulir","pulmón","pulpo","pulso","puma","punto","puñal","puño","pupa","pupila","puré","quedar","queja","quemar","querer","queso","quieto","química","quince","quitar","rábano","rabia","rabo","ración","radical","raíz","rama","rampa","rancho","rango","rapaz","rápido","rapto","rasgo","raspa","rato","rayo","raza","razón","reacción","realidad","rebaño","rebote","recaer","receta","rechazo","recoger","recreo","recto","recurso","red","redondo","reducir","reflejo","reforma","refrán","refugio","regalo","regir","regla","regreso","rehén","reino","reír","reja","relato","relevo","relieve","relleno","reloj","remar","remedio","remo","rencor","rendir","renta","reparto","repetir","reposo","reptil","res","rescate","resina","respeto","resto","resumen","retiro","retorno","retrato","reunir","revés","revista","rey","rezar","rico","riego","rienda","riesgo","rifa","rígido","rigor","rincón","riñón","río","riqueza","risa","ritmo","rito","rizo","roble","roce","rociar","rodar","rodeo","rodilla","roer","rojizo","rojo","romero","romper","ron","ronco","ronda","ropa","ropero","rosa","rosca","rostro","rotar","rubí","rubor","rudo","rueda","rugir","ruido","ruina","ruleta","rulo","rumbo","rumor","ruptura","ruta","rutina","sábado","saber","sabio","sable","sacar","sagaz","sagrado","sala","saldo","salero","salir","salmón","salón","salsa","salto","salud","salvar","samba","sanción","sandía","sanear","sangre","sanidad","sano","santo","sapo","saque","sardina","sartén","sastre","satán","sauna","saxofón","sección","seco","secreto","secta","sed","seguir","seis","sello","selva","semana","semilla","senda","sensor","señal","señor","separar","sepia","sequía","ser","serie","sermón","servir","sesenta","sesión","seta","setenta","severo","sexo","sexto","sidra","siesta","siete","siglo","signo","sílaba","silbar","silencio","silla","símbolo","simio","sirena","sistema","sitio","situar","sobre","socio","sodio","sol","solapa","soldado","soledad","sólido","soltar","solución","sombra","sondeo","sonido","sonoro","sonrisa","sopa","soplar","soporte","sordo","sorpresa","sorteo","sostén","sótano","suave","subir","suceso","sudor","suegra","suelo","sueño","suerte","sufrir","sujeto","sultán","sumar","superar","suplir","suponer","supremo","sur","surco","sureño","surgir","susto","sutil","tabaco","tabique","tabla","tabú","taco","tacto","tajo","talar","talco","talento","talla","talón","tamaño","tambor","tango","tanque","tapa","tapete","tapia","tapón","taquilla","tarde","tarea","tarifa","tarjeta","tarot","tarro","tarta","tatuaje","tauro","taza","tazón","teatro","techo","tecla","técnica","tejado","tejer","tejido","tela","teléfono","tema","temor","templo","tenaz","tender","tener","tenis","tenso","teoría","terapia","terco","término","ternura","terror","tesis","tesoro","testigo","tetera","texto","tez","tibio","tiburón","tiempo","tienda","tierra","tieso","tigre","tijera","tilde","timbre","tímido","timo","tinta","tío","típico","tipo","tira","tirón","titán","títere","título","tiza","toalla","tobillo","tocar","tocino","todo","toga","toldo","tomar","tono","tonto","topar","tope","toque","tórax","torero","tormenta","torneo","toro","torpedo","torre","torso","tortuga","tos","tosco","toser","tóxico","trabajo","tractor","traer","tráfico","trago","traje","tramo","trance","trato","trauma","trazar","trébol","tregua","treinta","tren","trepar","tres","tribu","trigo","tripa","triste","triunfo","trofeo","trompa","tronco","tropa","trote","trozo","truco","trueno","trufa","tubería","tubo","tuerto","tumba","tumor","túnel","túnica","turbina","turismo","turno","tutor","ubicar","úlcera","umbral","unidad","unir","universo","uno","untar","uña","urbano","urbe","urgente","urna","usar","usuario","útil","utopía","uva","vaca","vacío","vacuna","vagar","vago","vaina","vajilla","vale","válido","valle","valor","válvula","vampiro","vara","variar","varón","vaso","vecino","vector","vehículo","veinte","vejez","vela","velero","veloz","vena","vencer","venda","veneno","vengar","venir","venta","venus","ver","verano","verbo","verde","vereda","verja","verso","verter","vía","viaje","vibrar","vicio","víctima","vida","vídeo","vidrio","viejo","viernes","vigor","vil","villa","vinagre","vino","viñedo","violín","viral","virgo","virtud","visor","víspera","vista","vitamina","viudo","vivaz","vivero","vivir","vivo","volcán","volumen","volver","voraz","votar","voto","voz","vuelo","vulgar","yacer","yate","yegua","yema","yerno","yeso","yodo","yoga","yogur","zafiro","zanja","zapato","zarza","zona","zorro","zumo","zurdo"]')},5428:e=>{"use strict";e.exports=JSON.parse('["가격","가끔","가난","가능","가득","가르침","가뭄","가방","가상","가슴","가운데","가을","가이드","가입","가장","가정","가족","가죽","각오","각자","간격","간부","간섭","간장","간접","간판","갈등","갈비","갈색","갈증","감각","감기","감소","감수성","감자","감정","갑자기","강남","강당","강도","강력히","강변","강북","강사","강수량","강아지","강원도","강의","강제","강조","같이","개구리","개나리","개방","개별","개선","개성","개인","객관적","거실","거액","거울","거짓","거품","걱정","건강","건물","건설","건조","건축","걸음","검사","검토","게시판","게임","겨울","견해","결과","결국","결론","결석","결승","결심","결정","결혼","경계","경고","경기","경력","경복궁","경비","경상도","경영","경우","경쟁","경제","경주","경찰","경치","경향","경험","계곡","계단","계란","계산","계속","계약","계절","계층","계획","고객","고구려","고궁","고급","고등학생","고무신","고민","고양이","고장","고전","고집","고춧가루","고통","고향","곡식","골목","골짜기","골프","공간","공개","공격","공군","공급","공기","공동","공무원","공부","공사","공식","공업","공연","공원","공장","공짜","공책","공통","공포","공항","공휴일","과목","과일","과장","과정","과학","관객","관계","관광","관념","관람","관련","관리","관습","관심","관점","관찰","광경","광고","광장","광주","괴로움","굉장히","교과서","교문","교복","교실","교양","교육","교장","교직","교통","교환","교훈","구경","구름","구멍","구별","구분","구석","구성","구속","구역","구입","구청","구체적","국가","국기","국내","국립","국물","국민","국수","국어","국왕","국적","국제","국회","군대","군사","군인","궁극적","권리","권위","권투","귀국","귀신","규정","규칙","균형","그날","그냥","그늘","그러나","그룹","그릇","그림","그제서야","그토록","극복","극히","근거","근교","근래","근로","근무","근본","근원","근육","근처","글씨","글자","금강산","금고","금년","금메달","금액","금연","금요일","금지","긍정적","기간","기관","기념","기능","기독교","기둥","기록","기름","기법","기본","기분","기쁨","기숙사","기술","기억","기업","기온","기운","기원","기적","기준","기침","기혼","기획","긴급","긴장","길이","김밥","김치","김포공항","깍두기","깜빡","깨달음","깨소금","껍질","꼭대기","꽃잎","나들이","나란히","나머지","나물","나침반","나흘","낙엽","난방","날개","날씨","날짜","남녀","남대문","남매","남산","남자","남편","남학생","낭비","낱말","내년","내용","내일","냄비","냄새","냇물","냉동","냉면","냉방","냉장고","넥타이","넷째","노동","노란색","노력","노인","녹음","녹차","녹화","논리","논문","논쟁","놀이","농구","농담","농민","농부","농업","농장","농촌","높이","눈동자","눈물","눈썹","뉴욕","느낌","늑대","능동적","능력","다방","다양성","다음","다이어트","다행","단계","단골","단독","단맛","단순","단어","단위","단점","단체","단추","단편","단풍","달걀","달러","달력","달리","닭고기","담당","담배","담요","담임","답변","답장","당근","당분간","당연히","당장","대규모","대낮","대단히","대답","대도시","대략","대량","대륙","대문","대부분","대신","대응","대장","대전","대접","대중","대책","대출","대충","대통령","대학","대한민국","대합실","대형","덩어리","데이트","도대체","도덕","도둑","도망","도서관","도심","도움","도입","도자기","도저히","도전","도중","도착","독감","독립","독서","독일","독창적","동화책","뒷모습","뒷산","딸아이","마누라","마늘","마당","마라톤","마련","마무리","마사지","마약","마요네즈","마을","마음","마이크","마중","마지막","마찬가지","마찰","마흔","막걸리","막내","막상","만남","만두","만세","만약","만일","만점","만족","만화","많이","말기","말씀","말투","맘대로","망원경","매년","매달","매력","매번","매스컴","매일","매장","맥주","먹이","먼저","먼지","멀리","메일","며느리","며칠","면담","멸치","명단","명령","명예","명의","명절","명칭","명함","모금","모니터","모델","모든","모범","모습","모양","모임","모조리","모집","모퉁이","목걸이","목록","목사","목소리","목숨","목적","목표","몰래","몸매","몸무게","몸살","몸속","몸짓","몸통","몹시","무관심","무궁화","무더위","무덤","무릎","무슨","무엇","무역","무용","무조건","무지개","무척","문구","문득","문법","문서","문제","문학","문화","물가","물건","물결","물고기","물론","물리학","물음","물질","물체","미국","미디어","미사일","미술","미역","미용실","미움","미인","미팅","미혼","민간","민족","민주","믿음","밀가루","밀리미터","밑바닥","바가지","바구니","바나나","바늘","바닥","바닷가","바람","바이러스","바탕","박물관","박사","박수","반대","반드시","반말","반발","반성","반응","반장","반죽","반지","반찬","받침","발가락","발걸음","발견","발달","발레","발목","발바닥","발생","발음","발자국","발전","발톱","발표","밤하늘","밥그릇","밥맛","밥상","밥솥","방금","방면","방문","방바닥","방법","방송","방식","방안","방울","방지","방학","방해","방향","배경","배꼽","배달","배드민턴","백두산","백색","백성","백인","백제","백화점","버릇","버섯","버튼","번개","번역","번지","번호","벌금","벌레","벌써","범위","범인","범죄","법률","법원","법적","법칙","베이징","벨트","변경","변동","변명","변신","변호사","변화","별도","별명","별일","병실","병아리","병원","보관","보너스","보라색","보람","보름","보상","보안","보자기","보장","보전","보존","보통","보편적","보험","복도","복사","복숭아","복습","볶음","본격적","본래","본부","본사","본성","본인","본질","볼펜","봉사","봉지","봉투","부근","부끄러움","부담","부동산","부문","부분","부산","부상","부엌","부인","부작용","부장","부정","부족","부지런히","부친","부탁","부품","부회장","북부","북한","분노","분량","분리","분명","분석","분야","분위기","분필","분홍색","불고기","불과","불교","불꽃","불만","불법","불빛","불안","불이익","불행","브랜드","비극","비난","비닐","비둘기","비디오","비로소","비만","비명","비밀","비바람","비빔밥","비상","비용","비율","비중","비타민","비판","빌딩","빗물","빗방울","빗줄기","빛깔","빨간색","빨래","빨리","사건","사계절","사나이","사냥","사람","사랑","사립","사모님","사물","사방","사상","사생활","사설","사슴","사실","사업","사용","사월","사장","사전","사진","사촌","사춘기","사탕","사투리","사흘","산길","산부인과","산업","산책","살림","살인","살짝","삼계탕","삼국","삼십","삼월","삼촌","상관","상금","상대","상류","상반기","상상","상식","상업","상인","상자","상점","상처","상추","상태","상표","상품","상황","새벽","색깔","색연필","생각","생명","생물","생방송","생산","생선","생신","생일","생활","서랍","서른","서명","서민","서비스","서양","서울","서적","서점","서쪽","서클","석사","석유","선거","선물","선배","선생","선수","선원","선장","선전","선택","선풍기","설거지","설날","설렁탕","설명","설문","설사","설악산","설치","설탕","섭씨","성공","성당","성명","성별","성인","성장","성적","성질","성함","세금","세미나","세상","세월","세종대왕","세탁","센터","센티미터","셋째","소규모","소극적","소금","소나기","소년","소득","소망","소문","소설","소속","소아과","소용","소원","소음","소중히","소지품","소질","소풍","소형","속담","속도","속옷","손가락","손길","손녀","손님","손등","손목","손뼉","손실","손질","손톱","손해","솔직히","솜씨","송아지","송이","송편","쇠고기","쇼핑","수건","수년","수단","수돗물","수동적","수면","수명","수박","수상","수석","수술","수시로","수업","수염","수영","수입","수준","수집","수출","수컷","수필","수학","수험생","수화기","숙녀","숙소","숙제","순간","순서","순수","순식간","순위","숟가락","술병","술집","숫자","스님","스물","스스로","스승","스웨터","스위치","스케이트","스튜디오","스트레스","스포츠","슬쩍","슬픔","습관","습기","승객","승리","승부","승용차","승진","시각","시간","시골","시금치","시나리오","시댁","시리즈","시멘트","시민","시부모","시선","시설","시스템","시아버지","시어머니","시월","시인","시일","시작","시장","시절","시점","시중","시즌","시집","시청","시합","시험","식구","식기","식당","식량","식료품","식물","식빵","식사","식생활","식초","식탁","식품","신고","신규","신념","신문","신발","신비","신사","신세","신용","신제품","신청","신체","신화","실감","실내","실력","실례","실망","실수","실습","실시","실장","실정","실질적","실천","실체","실컷","실태","실패","실험","실현","심리","심부름","심사","심장","심정","심판","쌍둥이","씨름","씨앗","아가씨","아나운서","아드님","아들","아쉬움","아스팔트","아시아","아울러","아저씨","아줌마","아직","아침","아파트","아프리카","아픔","아홉","아흔","악기","악몽","악수","안개","안경","안과","안내","안녕","안동","안방","안부","안주","알루미늄","알코올","암시","암컷","압력","앞날","앞문","애인","애정","액수","앨범","야간","야단","야옹","약간","약국","약속","약수","약점","약품","약혼녀","양념","양력","양말","양배추","양주","양파","어둠","어려움","어른","어젯밤","어쨌든","어쩌다가","어쩐지","언니","언덕","언론","언어","얼굴","얼른","얼음","얼핏","엄마","업무","업종","업체","엉덩이","엉망","엉터리","엊그제","에너지","에어컨","엔진","여건","여고생","여관","여군","여권","여대생","여덟","여동생","여든","여론","여름","여섯","여성","여왕","여인","여전히","여직원","여학생","여행","역사","역시","역할","연결","연구","연극","연기","연락","연설","연세","연속","연습","연애","연예인","연인","연장","연주","연출","연필","연합","연휴","열기","열매","열쇠","열심히","열정","열차","열흘","염려","엽서","영국","영남","영상","영양","영역","영웅","영원히","영하","영향","영혼","영화","옆구리","옆방","옆집","예감","예금","예방","예산","예상","예선","예술","예습","예식장","예약","예전","예절","예정","예컨대","옛날","오늘","오락","오랫동안","오렌지","오로지","오른발","오븐","오십","오염","오월","오전","오직","오징어","오페라","오피스텔","오히려","옥상","옥수수","온갖","온라인","온몸","온종일","온통","올가을","올림픽","올해","옷차림","와이셔츠","와인","완성","완전","왕비","왕자","왜냐하면","왠지","외갓집","외국","외로움","외삼촌","외출","외침","외할머니","왼발","왼손","왼쪽","요금","요일","요즘","요청","용기","용서","용어","우산","우선","우승","우연히","우정","우체국","우편","운동","운명","운반","운전","운행","울산","울음","움직임","웃어른","웃음","워낙","원고","원래","원서","원숭이","원인","원장","원피스","월급","월드컵","월세","월요일","웨이터","위반","위법","위성","위원","위험","위협","윗사람","유난히","유럽","유명","유물","유산","유적","유치원","유학","유행","유형","육군","육상","육십","육체","은행","음력","음료","음반","음성","음식","음악","음주","의견","의논","의문","의복","의식","의심","의외로","의욕","의원","의학","이것","이곳","이념","이놈","이달","이대로","이동","이렇게","이력서","이론적","이름","이민","이발소","이별","이불","이빨","이상","이성","이슬","이야기","이용","이웃","이월","이윽고","이익","이전","이중","이튿날","이틀","이혼","인간","인격","인공","인구","인근","인기","인도","인류","인물","인생","인쇄","인연","인원","인재","인종","인천","인체","인터넷","인하","인형","일곱","일기","일단","일대","일등","일반","일본","일부","일상","일생","일손","일요일","일월","일정","일종","일주일","일찍","일체","일치","일행","일회용","임금","임무","입대","입력","입맛","입사","입술","입시","입원","입장","입학","자가용","자격","자극","자동","자랑","자부심","자식","자신","자연","자원","자율","자전거","자정","자존심","자판","작가","작년","작성","작업","작용","작은딸","작품","잔디","잔뜩","잔치","잘못","잠깐","잠수함","잠시","잠옷","잠자리","잡지","장관","장군","장기간","장래","장례","장르","장마","장면","장모","장미","장비","장사","장소","장식","장애인","장인","장점","장차","장학금","재능","재빨리","재산","재생","재작년","재정","재채기","재판","재학","재활용","저것","저고리","저곳","저녁","저런","저렇게","저번","저울","저절로","저축","적극","적당히","적성","적용","적응","전개","전공","전기","전달","전라도","전망","전문","전반","전부","전세","전시","전용","전자","전쟁","전주","전철","전체","전통","전혀","전후","절대","절망","절반","절약","절차","점검","점수","점심","점원","점점","점차","접근","접시","접촉","젓가락","정거장","정도","정류장","정리","정말","정면","정문","정반대","정보","정부","정비","정상","정성","정오","정원","정장","정지","정치","정확히","제공","제과점","제대로","제목","제발","제법","제삿날","제안","제일","제작","제주도","제출","제품","제한","조각","조건","조금","조깅","조명","조미료","조상","조선","조용히","조절","조정","조직","존댓말","존재","졸업","졸음","종교","종로","종류","종소리","종업원","종종","종합","좌석","죄인","주관적","주름","주말","주머니","주먹","주문","주민","주방","주변","주식","주인","주일","주장","주전자","주택","준비","줄거리","줄기","줄무늬","중간","중계방송","중국","중년","중단","중독","중반","중부","중세","중소기업","중순","중앙","중요","중학교","즉석","즉시","즐거움","증가","증거","증권","증상","증세","지각","지갑","지경","지극히","지금","지급","지능","지름길","지리산","지방","지붕","지식","지역","지우개","지원","지적","지점","지진","지출","직선","직업","직원","직장","진급","진동","진로","진료","진리","진짜","진찰","진출","진통","진행","질문","질병","질서","짐작","집단","집안","집중","짜증","찌꺼기","차남","차라리","차량","차림","차별","차선","차츰","착각","찬물","찬성","참가","참기름","참새","참석","참여","참외","참조","찻잔","창가","창고","창구","창문","창밖","창작","창조","채널","채점","책가방","책방","책상","책임","챔피언","처벌","처음","천국","천둥","천장","천재","천천히","철도","철저히","철학","첫날","첫째","청년","청바지","청소","청춘","체계","체력","체온","체육","체중","체험","초등학생","초반","초밥","초상화","초순","초여름","초원","초저녁","초점","초청","초콜릿","촛불","총각","총리","총장","촬영","최근","최상","최선","최신","최악","최종","추석","추억","추진","추천","추측","축구","축소","축제","축하","출근","출발","출산","출신","출연","출입","출장","출판","충격","충고","충돌","충분히","충청도","취업","취직","취향","치약","친구","친척","칠십","칠월","칠판","침대","침묵","침실","칫솔","칭찬","카메라","카운터","칼국수","캐릭터","캠퍼스","캠페인","커튼","컨디션","컬러","컴퓨터","코끼리","코미디","콘서트","콜라","콤플렉스","콩나물","쾌감","쿠데타","크림","큰길","큰딸","큰소리","큰아들","큰어머니","큰일","큰절","클래식","클럽","킬로","타입","타자기","탁구","탁자","탄생","태권도","태양","태풍","택시","탤런트","터널","터미널","테니스","테스트","테이블","텔레비전","토론","토마토","토요일","통계","통과","통로","통신","통역","통일","통장","통제","통증","통합","통화","퇴근","퇴원","퇴직금","튀김","트럭","특급","특별","특성","특수","특징","특히","튼튼히","티셔츠","파란색","파일","파출소","판결","판단","판매","판사","팔십","팔월","팝송","패션","팩스","팩시밀리","팬티","퍼센트","페인트","편견","편의","편지","편히","평가","평균","평생","평소","평양","평일","평화","포스터","포인트","포장","포함","표면","표정","표준","표현","품목","품질","풍경","풍속","풍습","프랑스","프린터","플라스틱","피곤","피망","피아노","필름","필수","필요","필자","필통","핑계","하느님","하늘","하드웨어","하룻밤","하반기","하숙집","하순","하여튼","하지만","하천","하품","하필","학과","학교","학급","학기","학년","학력","학번","학부모","학비","학생","학술","학습","학용품","학원","학위","학자","학점","한계","한글","한꺼번에","한낮","한눈","한동안","한때","한라산","한마디","한문","한번","한복","한식","한여름","한쪽","할머니","할아버지","할인","함께","함부로","합격","합리적","항공","항구","항상","항의","해결","해군","해답","해당","해물","해석","해설","해수욕장","해안","핵심","핸드백","햄버거","햇볕","햇살","행동","행복","행사","행운","행위","향기","향상","향수","허락","허용","헬기","현관","현금","현대","현상","현실","현장","현재","현지","혈액","협력","형부","형사","형수","형식","형제","형태","형편","혜택","호기심","호남","호랑이","호박","호텔","호흡","혹시","홀로","홈페이지","홍보","홍수","홍차","화면","화분","화살","화요일","화장","화학","확보","확인","확장","확정","환갑","환경","환영","환율","환자","활기","활동","활발히","활용","활짝","회견","회관","회복","회색","회원","회장","회전","횟수","횡단보도","효율적","후반","후춧가루","훈련","훨씬","휴식","휴일","흉내","흐름","흑백","흑인","흔적","흔히","흥미","흥분","희곡","희망","희생","흰색","힘껏"]')},5565:(e,t)=>{"use strict";
|
|
38
|
+
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */Object.defineProperty(t,"__esModule",{value:!0}),t.notImplemented=t.bitMask=void 0,t.isBytes=n,t.abytes=a,t.abool=function(e,t){if("boolean"!=typeof t)throw new Error(e+" boolean expected, got "+t)},t.numberToHexUnpadded=i,t.hexToNumber=s,t.bytesToHex=u,t.hexToBytes=h,t.bytesToNumberBE=function(e){return s(u(e))},t.bytesToNumberLE=function(e){return a(e),s(u(Uint8Array.from(e).reverse()))},t.numberToBytesBE=p,t.numberToBytesLE=function(e,t){return p(e,t).reverse()},t.numberToVarBytesBE=function(e){return h(i(e))},t.ensureBytes=function(e,t,r){let o;if("string"==typeof t)try{o=h(t)}catch(t){throw new Error(e+" must be hex string or Uint8Array, cause: "+t)}else{if(!n(t))throw new Error(e+" must be hex string or Uint8Array");o=Uint8Array.from(t)}const a=o.length;if("number"==typeof r&&a!==r)throw new Error(e+" of length "+r+" expected, got "+a);return o},t.concatBytes=g,t.equalBytes=function(e,t){if(e.length!==t.length)return!1;let r=0;for(let o=0;o<e.length;o++)r|=e[o]^t[o];return 0===r},t.utf8ToBytes=function(e){if("string"!=typeof e)throw new Error("string expected");return new Uint8Array((new TextEncoder).encode(e))},t.inRange=b,t.aInRange=function(e,t,r,o){if(!b(t,r,o))throw new Error("expected valid "+e+": "+r+" <= n < "+o+", got "+t)},t.bitLen=function(e){let t;for(t=0;e>r;e>>=o,t+=1);return t},t.bitGet=function(e,t){return e>>BigInt(t)&o},t.bitSet=function(e,t,n){return e|(n?o:r)<<BigInt(t)},t.createHmacDrbg=function(e,t,r){if("number"!=typeof e||e<2)throw new Error("hashLen must be a number");if("number"!=typeof t||t<2)throw new Error("qByteLen must be a number");if("function"!=typeof r)throw new Error("hmacFn must be a function");let o=y(e),n=y(e),a=0;const i=()=>{o.fill(1),n.fill(0),a=0},s=(...e)=>r(n,o,...e),c=(e=y(0))=>{n=s(v([0]),e),o=s(),0!==e.length&&(n=s(v([1]),e),o=s())},l=()=>{if(a++>=1e3)throw new Error("drbg: tried 1000 values");let e=0;const r=[];for(;e<t;){o=s();const t=o.slice();r.push(t),e+=o.length}return g(...r)};return(e,t)=>{let r;for(i(),c(e);!(r=t(l()));)c();return i(),r}},t.validateObject=function(e,t,r={}){const o=(t,r,o)=>{const n=w[r];if("function"!=typeof n)throw new Error("invalid validator function");const a=e[t];if(!(o&&void 0===a||n(a,e)))throw new Error("param "+String(t)+" is invalid. Expected "+r+", got "+a)};for(const[e,r]of Object.entries(t))o(e,r,!1);for(const[e,t]of Object.entries(r))o(e,t,!0);return e},t.memoized=function(e){const t=new WeakMap;return(r,...o)=>{const n=t.get(r);if(void 0!==n)return n;const a=e(r,...o);return t.set(r,a),a}};const r=BigInt(0),o=BigInt(1);function n(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function a(e){if(!n(e))throw new Error("Uint8Array expected")}function i(e){const t=e.toString(16);return 1&t.length?"0"+t:t}function s(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);return""===e?r:BigInt("0x"+e)}const c="function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex,l=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function u(e){if(a(e),c)return e.toHex();let t="";for(let r=0;r<e.length;r++)t+=l[e[r]];return t}const f={_0:48,_9:57,A:65,F:70,a:97,f:102};function d(e){return e>=f._0&&e<=f._9?e-f._0:e>=f.A&&e<=f.F?e-(f.A-10):e>=f.a&&e<=f.f?e-(f.a-10):void 0}function h(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);if(c)return Uint8Array.fromHex(e);const t=e.length,r=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const o=new Uint8Array(r);for(let t=0,n=0;t<r;t++,n+=2){const r=d(e.charCodeAt(n)),a=d(e.charCodeAt(n+1));if(void 0===r||void 0===a){const t=e[n]+e[n+1];throw new Error('hex string expected, got non-hex character "'+t+'" at index '+n)}o[t]=16*r+a}return o}function p(e,t){return h(e.toString(16).padStart(2*t,"0"))}function g(...e){let t=0;for(let r=0;r<e.length;r++){const o=e[r];a(o),t+=o.length}const r=new Uint8Array(t);for(let t=0,o=0;t<e.length;t++){const n=e[t];r.set(n,o),o+=n.length}return r}const m=e=>"bigint"==typeof e&&r<=e;function b(e,t,r){return m(e)&&m(t)&&m(r)&&t<=e&&e<r}t.bitMask=e=>(o<<BigInt(e))-o;const y=e=>new Uint8Array(e),v=e=>Uint8Array.from(e);const w={bigint:e=>"bigint"==typeof e,function:e=>"function"==typeof e,boolean:e=>"boolean"==typeof e,string:e=>"string"==typeof e,stringOrUint8Array:e=>"string"==typeof e||n(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"==typeof e&&Number.isSafeInteger(e.outputLen)};t.notImplemented=()=>{throw new Error("not implemented")}},5576:e=>{"use strict";e.exports=JSON.parse('["abaco","abbaglio","abbinato","abete","abisso","abolire","abrasivo","abrogato","accadere","accenno","accusato","acetone","achille","acido","acqua","acre","acrilico","acrobata","acuto","adagio","addebito","addome","adeguato","aderire","adipe","adottare","adulare","affabile","affetto","affisso","affranto","aforisma","afoso","africano","agave","agente","agevole","aggancio","agire","agitare","agonismo","agricolo","agrumeto","aguzzo","alabarda","alato","albatro","alberato","albo","albume","alce","alcolico","alettone","alfa","algebra","aliante","alibi","alimento","allagato","allegro","allievo","allodola","allusivo","almeno","alogeno","alpaca","alpestre","altalena","alterno","alticcio","altrove","alunno","alveolo","alzare","amalgama","amanita","amarena","ambito","ambrato","ameba","america","ametista","amico","ammasso","ammenda","ammirare","ammonito","amore","ampio","ampliare","amuleto","anacardo","anagrafe","analista","anarchia","anatra","anca","ancella","ancora","andare","andrea","anello","angelo","angolare","angusto","anima","annegare","annidato","anno","annuncio","anonimo","anticipo","anzi","apatico","apertura","apode","apparire","appetito","appoggio","approdo","appunto","aprile","arabica","arachide","aragosta","araldica","arancio","aratura","arazzo","arbitro","archivio","ardito","arenile","argento","argine","arguto","aria","armonia","arnese","arredato","arringa","arrosto","arsenico","arso","artefice","arzillo","asciutto","ascolto","asepsi","asettico","asfalto","asino","asola","aspirato","aspro","assaggio","asse","assoluto","assurdo","asta","astenuto","astice","astratto","atavico","ateismo","atomico","atono","attesa","attivare","attorno","attrito","attuale","ausilio","austria","autista","autonomo","autunno","avanzato","avere","avvenire","avviso","avvolgere","azione","azoto","azzimo","azzurro","babele","baccano","bacino","baco","badessa","badilata","bagnato","baita","balcone","baldo","balena","ballata","balzano","bambino","bandire","baraonda","barbaro","barca","baritono","barlume","barocco","basilico","basso","batosta","battuto","baule","bava","bavosa","becco","beffa","belgio","belva","benda","benevole","benigno","benzina","bere","berlina","beta","bibita","bici","bidone","bifido","biga","bilancia","bimbo","binocolo","biologo","bipede","bipolare","birbante","birra","biscotto","bisesto","bisnonno","bisonte","bisturi","bizzarro","blando","blatta","bollito","bonifico","bordo","bosco","botanico","bottino","bozzolo","braccio","bradipo","brama","branca","bravura","bretella","brevetto","brezza","briglia","brillante","brindare","broccolo","brodo","bronzina","brullo","bruno","bubbone","buca","budino","buffone","buio","bulbo","buono","burlone","burrasca","bussola","busta","cadetto","caduco","calamaro","calcolo","calesse","calibro","calmo","caloria","cambusa","camerata","camicia","cammino","camola","campale","canapa","candela","cane","canino","canotto","cantina","capace","capello","capitolo","capogiro","cappero","capra","capsula","carapace","carcassa","cardo","carisma","carovana","carretto","cartolina","casaccio","cascata","caserma","caso","cassone","castello","casuale","catasta","catena","catrame","cauto","cavillo","cedibile","cedrata","cefalo","celebre","cellulare","cena","cenone","centesimo","ceramica","cercare","certo","cerume","cervello","cesoia","cespo","ceto","chela","chiaro","chicca","chiedere","chimera","china","chirurgo","chitarra","ciao","ciclismo","cifrare","cigno","cilindro","ciottolo","circa","cirrosi","citrico","cittadino","ciuffo","civetta","civile","classico","clinica","cloro","cocco","codardo","codice","coerente","cognome","collare","colmato","colore","colposo","coltivato","colza","coma","cometa","commando","comodo","computer","comune","conciso","condurre","conferma","congelare","coniuge","connesso","conoscere","consumo","continuo","convegno","coperto","copione","coppia","copricapo","corazza","cordata","coricato","cornice","corolla","corpo","corredo","corsia","cortese","cosmico","costante","cottura","covato","cratere","cravatta","creato","credere","cremoso","crescita","creta","criceto","crinale","crisi","critico","croce","cronaca","crostata","cruciale","crusca","cucire","cuculo","cugino","cullato","cupola","curatore","cursore","curvo","cuscino","custode","dado","daino","dalmata","damerino","daniela","dannoso","danzare","datato","davanti","davvero","debutto","decennio","deciso","declino","decollo","decreto","dedicato","definito","deforme","degno","delegare","delfino","delirio","delta","demenza","denotato","dentro","deposito","derapata","derivare","deroga","descritto","deserto","desiderio","desumere","detersivo","devoto","diametro","dicembre","diedro","difeso","diffuso","digerire","digitale","diluvio","dinamico","dinnanzi","dipinto","diploma","dipolo","diradare","dire","dirotto","dirupo","disagio","discreto","disfare","disgelo","disposto","distanza","disumano","dito","divano","divelto","dividere","divorato","doblone","docente","doganale","dogma","dolce","domato","domenica","dominare","dondolo","dono","dormire","dote","dottore","dovuto","dozzina","drago","druido","dubbio","dubitare","ducale","duna","duomo","duplice","duraturo","ebano","eccesso","ecco","eclissi","economia","edera","edicola","edile","editoria","educare","egemonia","egli","egoismo","egregio","elaborato","elargire","elegante","elencato","eletto","elevare","elfico","elica","elmo","elsa","eluso","emanato","emblema","emesso","emiro","emotivo","emozione","empirico","emulo","endemico","enduro","energia","enfasi","enoteca","entrare","enzima","epatite","epilogo","episodio","epocale","eppure","equatore","erario","erba","erboso","erede","eremita","erigere","ermetico","eroe","erosivo","errante","esagono","esame","esanime","esaudire","esca","esempio","esercito","esibito","esigente","esistere","esito","esofago","esortato","esoso","espanso","espresso","essenza","esso","esteso","estimare","estonia","estroso","esultare","etilico","etnico","etrusco","etto","euclideo","europa","evaso","evidenza","evitato","evoluto","evviva","fabbrica","faccenda","fachiro","falco","famiglia","fanale","fanfara","fango","fantasma","fare","farfalla","farinoso","farmaco","fascia","fastoso","fasullo","faticare","fato","favoloso","febbre","fecola","fede","fegato","felpa","feltro","femmina","fendere","fenomeno","fermento","ferro","fertile","fessura","festivo","fetta","feudo","fiaba","fiducia","fifa","figurato","filo","finanza","finestra","finire","fiore","fiscale","fisico","fiume","flacone","flamenco","flebo","flemma","florido","fluente","fluoro","fobico","focaccia","focoso","foderato","foglio","folata","folclore","folgore","fondente","fonetico","fonia","fontana","forbito","forchetta","foresta","formica","fornaio","foro","fortezza","forzare","fosfato","fosso","fracasso","frana","frassino","fratello","freccetta","frenata","fresco","frigo","frollino","fronde","frugale","frutta","fucilata","fucsia","fuggente","fulmine","fulvo","fumante","fumetto","fumoso","fune","funzione","fuoco","furbo","furgone","furore","fuso","futile","gabbiano","gaffe","galateo","gallina","galoppo","gambero","gamma","garanzia","garbo","garofano","garzone","gasdotto","gasolio","gastrico","gatto","gaudio","gazebo","gazzella","geco","gelatina","gelso","gemello","gemmato","gene","genitore","gennaio","genotipo","gergo","ghepardo","ghiaccio","ghisa","giallo","gilda","ginepro","giocare","gioiello","giorno","giove","girato","girone","gittata","giudizio","giurato","giusto","globulo","glutine","gnomo","gobba","golf","gomito","gommone","gonfio","gonna","governo","gracile","grado","grafico","grammo","grande","grattare","gravoso","grazia","greca","gregge","grifone","grigio","grinza","grotta","gruppo","guadagno","guaio","guanto","guardare","gufo","guidare","ibernato","icona","identico","idillio","idolo","idra","idrico","idrogeno","igiene","ignaro","ignorato","ilare","illeso","illogico","illudere","imballo","imbevuto","imbocco","imbuto","immane","immerso","immolato","impacco","impeto","impiego","importo","impronta","inalare","inarcare","inattivo","incanto","incendio","inchino","incisivo","incluso","incontro","incrocio","incubo","indagine","india","indole","inedito","infatti","infilare","inflitto","ingaggio","ingegno","inglese","ingordo","ingrosso","innesco","inodore","inoltrare","inondato","insano","insetto","insieme","insonnia","insulina","intasato","intero","intonaco","intuito","inumidire","invalido","invece","invito","iperbole","ipnotico","ipotesi","ippica","iride","irlanda","ironico","irrigato","irrorare","isolato","isotopo","isterico","istituto","istrice","italia","iterare","labbro","labirinto","lacca","lacerato","lacrima","lacuna","laddove","lago","lampo","lancetta","lanterna","lardoso","larga","laringe","lastra","latenza","latino","lattuga","lavagna","lavoro","legale","leggero","lembo","lentezza","lenza","leone","lepre","lesivo","lessato","lesto","letterale","leva","levigato","libero","lido","lievito","lilla","limatura","limitare","limpido","lineare","lingua","liquido","lira","lirica","lisca","lite","litigio","livrea","locanda","lode","logica","lombare","londra","longevo","loquace","lorenzo","loto","lotteria","luce","lucidato","lumaca","luminoso","lungo","lupo","luppolo","lusinga","lusso","lutto","macabro","macchina","macero","macinato","madama","magico","maglia","magnete","magro","maiolica","malafede","malgrado","malinteso","malsano","malto","malumore","mana","mancia","mandorla","mangiare","manifesto","mannaro","manovra","mansarda","mantide","manubrio","mappa","maratona","marcire","maretta","marmo","marsupio","maschera","massaia","mastino","materasso","matricola","mattone","maturo","mazurca","meandro","meccanico","mecenate","medesimo","meditare","mega","melassa","melis","melodia","meninge","meno","mensola","mercurio","merenda","merlo","meschino","mese","messere","mestolo","metallo","metodo","mettere","miagolare","mica","micelio","michele","microbo","midollo","miele","migliore","milano","milite","mimosa","minerale","mini","minore","mirino","mirtillo","miscela","missiva","misto","misurare","mitezza","mitigare","mitra","mittente","mnemonico","modello","modifica","modulo","mogano","mogio","mole","molosso","monastero","monco","mondina","monetario","monile","monotono","monsone","montato","monviso","mora","mordere","morsicato","mostro","motivato","motosega","motto","movenza","movimento","mozzo","mucca","mucosa","muffa","mughetto","mugnaio","mulatto","mulinello","multiplo","mummia","munto","muovere","murale","musa","muscolo","musica","mutevole","muto","nababbo","nafta","nanometro","narciso","narice","narrato","nascere","nastrare","naturale","nautica","naviglio","nebulosa","necrosi","negativo","negozio","nemmeno","neofita","neretto","nervo","nessuno","nettuno","neutrale","neve","nevrotico","nicchia","ninfa","nitido","nobile","nocivo","nodo","nome","nomina","nordico","normale","norvegese","nostrano","notare","notizia","notturno","novella","nucleo","nulla","numero","nuovo","nutrire","nuvola","nuziale","oasi","obbedire","obbligo","obelisco","oblio","obolo","obsoleto","occasione","occhio","occidente","occorrere","occultare","ocra","oculato","odierno","odorare","offerta","offrire","offuscato","oggetto","oggi","ognuno","olandese","olfatto","oliato","oliva","ologramma","oltre","omaggio","ombelico","ombra","omega","omissione","ondoso","onere","onice","onnivoro","onorevole","onta","operato","opinione","opposto","oracolo","orafo","ordine","orecchino","orefice","orfano","organico","origine","orizzonte","orma","ormeggio","ornativo","orologio","orrendo","orribile","ortensia","ortica","orzata","orzo","osare","oscurare","osmosi","ospedale","ospite","ossa","ossidare","ostacolo","oste","otite","otre","ottagono","ottimo","ottobre","ovale","ovest","ovino","oviparo","ovocito","ovunque","ovviare","ozio","pacchetto","pace","pacifico","padella","padrone","paese","paga","pagina","palazzina","palesare","pallido","palo","palude","pandoro","pannello","paolo","paonazzo","paprica","parabola","parcella","parere","pargolo","pari","parlato","parola","partire","parvenza","parziale","passivo","pasticca","patacca","patologia","pattume","pavone","peccato","pedalare","pedonale","peggio","peloso","penare","pendice","penisola","pennuto","penombra","pensare","pentola","pepe","pepita","perbene","percorso","perdonato","perforare","pergamena","periodo","permesso","perno","perplesso","persuaso","pertugio","pervaso","pesatore","pesista","peso","pestifero","petalo","pettine","petulante","pezzo","piacere","pianta","piattino","piccino","picozza","piega","pietra","piffero","pigiama","pigolio","pigro","pila","pilifero","pillola","pilota","pimpante","pineta","pinna","pinolo","pioggia","piombo","piramide","piretico","pirite","pirolisi","pitone","pizzico","placebo","planare","plasma","platano","plenario","pochezza","poderoso","podismo","poesia","poggiare","polenta","poligono","pollice","polmonite","polpetta","polso","poltrona","polvere","pomice","pomodoro","ponte","popoloso","porfido","poroso","porpora","porre","portata","posa","positivo","possesso","postulato","potassio","potere","pranzo","prassi","pratica","precluso","predica","prefisso","pregiato","prelievo","premere","prenotare","preparato","presenza","pretesto","prevalso","prima","principe","privato","problema","procura","produrre","profumo","progetto","prolunga","promessa","pronome","proposta","proroga","proteso","prova","prudente","prugna","prurito","psiche","pubblico","pudica","pugilato","pugno","pulce","pulito","pulsante","puntare","pupazzo","pupilla","puro","quadro","qualcosa","quasi","querela","quota","raccolto","raddoppio","radicale","radunato","raffica","ragazzo","ragione","ragno","ramarro","ramingo","ramo","randagio","rantolare","rapato","rapina","rappreso","rasatura","raschiato","rasente","rassegna","rastrello","rata","ravveduto","reale","recepire","recinto","recluta","recondito","recupero","reddito","redimere","regalato","registro","regola","regresso","relazione","remare","remoto","renna","replica","reprimere","reputare","resa","residente","responso","restauro","rete","retina","retorica","rettifica","revocato","riassunto","ribadire","ribelle","ribrezzo","ricarica","ricco","ricevere","riciclato","ricordo","ricreduto","ridicolo","ridurre","rifasare","riflesso","riforma","rifugio","rigare","rigettato","righello","rilassato","rilevato","rimanere","rimbalzo","rimedio","rimorchio","rinascita","rincaro","rinforzo","rinnovo","rinomato","rinsavito","rintocco","rinuncia","rinvenire","riparato","ripetuto","ripieno","riportare","ripresa","ripulire","risata","rischio","riserva","risibile","riso","rispetto","ristoro","risultato","risvolto","ritardo","ritegno","ritmico","ritrovo","riunione","riva","riverso","rivincita","rivolto","rizoma","roba","robotico","robusto","roccia","roco","rodaggio","rodere","roditore","rogito","rollio","romantico","rompere","ronzio","rosolare","rospo","rotante","rotondo","rotula","rovescio","rubizzo","rubrica","ruga","rullino","rumine","rumoroso","ruolo","rupe","russare","rustico","sabato","sabbiare","sabotato","sagoma","salasso","saldatura","salgemma","salivare","salmone","salone","saltare","saluto","salvo","sapere","sapido","saporito","saraceno","sarcasmo","sarto","sassoso","satellite","satira","satollo","saturno","savana","savio","saziato","sbadiglio","sbalzo","sbancato","sbarra","sbattere","sbavare","sbendare","sbirciare","sbloccato","sbocciato","sbrinare","sbruffone","sbuffare","scabroso","scadenza","scala","scambiare","scandalo","scapola","scarso","scatenare","scavato","scelto","scenico","scettro","scheda","schiena","sciarpa","scienza","scindere","scippo","sciroppo","scivolo","sclerare","scodella","scolpito","scomparto","sconforto","scoprire","scorta","scossone","scozzese","scriba","scrollare","scrutinio","scuderia","scultore","scuola","scuro","scusare","sdebitare","sdoganare","seccatura","secondo","sedano","seggiola","segnalato","segregato","seguito","selciato","selettivo","sella","selvaggio","semaforo","sembrare","seme","seminato","sempre","senso","sentire","sepolto","sequenza","serata","serbato","sereno","serio","serpente","serraglio","servire","sestina","setola","settimana","sfacelo","sfaldare","sfamato","sfarzoso","sfaticato","sfera","sfida","sfilato","sfinge","sfocato","sfoderare","sfogo","sfoltire","sforzato","sfratto","sfruttato","sfuggito","sfumare","sfuso","sgabello","sgarbato","sgonfiare","sgorbio","sgrassato","sguardo","sibilo","siccome","sierra","sigla","signore","silenzio","sillaba","simbolo","simpatico","simulato","sinfonia","singolo","sinistro","sino","sintesi","sinusoide","sipario","sisma","sistole","situato","slitta","slogatura","sloveno","smarrito","smemorato","smentito","smeraldo","smilzo","smontare","smottato","smussato","snellire","snervato","snodo","sobbalzo","sobrio","soccorso","sociale","sodale","soffitto","sogno","soldato","solenne","solido","sollazzo","solo","solubile","solvente","somatico","somma","sonda","sonetto","sonnifero","sopire","soppeso","sopra","sorgere","sorpasso","sorriso","sorso","sorteggio","sorvolato","sospiro","sosta","sottile","spada","spalla","spargere","spatola","spavento","spazzola","specie","spedire","spegnere","spelatura","speranza","spessore","spettrale","spezzato","spia","spigoloso","spillato","spinoso","spirale","splendido","sportivo","sposo","spranga","sprecare","spronato","spruzzo","spuntino","squillo","sradicare","srotolato","stabile","stacco","staffa","stagnare","stampato","stantio","starnuto","stasera","statuto","stelo","steppa","sterzo","stiletto","stima","stirpe","stivale","stizzoso","stonato","storico","strappo","stregato","stridulo","strozzare","strutto","stuccare","stufo","stupendo","subentro","succoso","sudore","suggerito","sugo","sultano","suonare","superbo","supporto","surgelato","surrogato","sussurro","sutura","svagare","svedese","sveglio","svelare","svenuto","svezia","sviluppo","svista","svizzera","svolta","svuotare","tabacco","tabulato","tacciare","taciturno","tale","talismano","tampone","tannino","tara","tardivo","targato","tariffa","tarpare","tartaruga","tasto","tattico","taverna","tavolata","tazza","teca","tecnico","telefono","temerario","tempo","temuto","tendone","tenero","tensione","tentacolo","teorema","terme","terrazzo","terzetto","tesi","tesserato","testato","tetro","tettoia","tifare","tigella","timbro","tinto","tipico","tipografo","tiraggio","tiro","titanio","titolo","titubante","tizio","tizzone","toccare","tollerare","tolto","tombola","tomo","tonfo","tonsilla","topazio","topologia","toppa","torba","tornare","torrone","tortora","toscano","tossire","tostatura","totano","trabocco","trachea","trafila","tragedia","tralcio","tramonto","transito","trapano","trarre","trasloco","trattato","trave","treccia","tremolio","trespolo","tributo","tricheco","trifoglio","trillo","trincea","trio","tristezza","triturato","trivella","tromba","trono","troppo","trottola","trovare","truccato","tubatura","tuffato","tulipano","tumulto","tunisia","turbare","turchino","tuta","tutela","ubicato","uccello","uccisore","udire","uditivo","uffa","ufficio","uguale","ulisse","ultimato","umano","umile","umorismo","uncinetto","ungere","ungherese","unicorno","unificato","unisono","unitario","unte","uovo","upupa","uragano","urgenza","urlo","usanza","usato","uscito","usignolo","usuraio","utensile","utilizzo","utopia","vacante","vaccinato","vagabondo","vagliato","valanga","valgo","valico","valletta","valoroso","valutare","valvola","vampata","vangare","vanitoso","vano","vantaggio","vanvera","vapore","varano","varcato","variante","vasca","vedetta","vedova","veduto","vegetale","veicolo","velcro","velina","velluto","veloce","venato","vendemmia","vento","verace","verbale","vergogna","verifica","vero","verruca","verticale","vescica","vessillo","vestale","veterano","vetrina","vetusto","viandante","vibrante","vicenda","vichingo","vicinanza","vidimare","vigilia","vigneto","vigore","vile","villano","vimini","vincitore","viola","vipera","virgola","virologo","virulento","viscoso","visione","vispo","vissuto","visura","vita","vitello","vittima","vivanda","vivido","viziare","voce","voga","volatile","volere","volpe","voragine","vulcano","zampogna","zanna","zappato","zattera","zavorra","zefiro","zelante","zelo","zenzero","zerbino","zibetto","zinco","zircone","zitto","zolla","zotico","zucchero","zufolo","zulu","zuppa"]')},5754:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha224=t.SHA224=t.sha256=t.SHA256=void 0;const o=r(9741);t.SHA256=o.SHA256,t.sha256=o.sha256,t.SHA224=o.SHA224,t.sha224=o.sha224},5898:e=>{"use strict";e.exports=JSON.parse('["的","一","是","在","不","了","有","和","人","这","中","大","为","上","个","国","我","以","要","他","时","来","用","们","生","到","作","地","于","出","就","分","对","成","会","可","主","发","年","动","同","工","也","能","下","过","子","说","产","种","面","而","方","后","多","定","行","学","法","所","民","得","经","十","三","之","进","着","等","部","度","家","电","力","里","如","水","化","高","自","二","理","起","小","物","现","实","加","量","都","两","体","制","机","当","使","点","从","业","本","去","把","性","好","应","开","它","合","还","因","由","其","些","然","前","外","天","政","四","日","那","社","义","事","平","形","相","全","表","间","样","与","关","各","重","新","线","内","数","正","心","反","你","明","看","原","又","么","利","比","或","但","质","气","第","向","道","命","此","变","条","只","没","结","解","问","意","建","月","公","无","系","军","很","情","者","最","立","代","想","已","通","并","提","直","题","党","程","展","五","果","料","象","员","革","位","入","常","文","总","次","品","式","活","设","及","管","特","件","长","求","老","头","基","资","边","流","路","级","少","图","山","统","接","知","较","将","组","见","计","别","她","手","角","期","根","论","运","农","指","几","九","区","强","放","决","西","被","干","做","必","战","先","回","则","任","取","据","处","队","南","给","色","光","门","即","保","治","北","造","百","规","热","领","七","海","口","东","导","器","压","志","世","金","增","争","济","阶","油","思","术","极","交","受","联","什","认","六","共","权","收","证","改","清","美","再","采","转","更","单","风","切","打","白","教","速","花","带","安","场","身","车","例","真","务","具","万","每","目","至","达","走","积","示","议","声","报","斗","完","类","八","离","华","名","确","才","科","张","信","马","节","话","米","整","空","元","况","今","集","温","传","土","许","步","群","广","石","记","需","段","研","界","拉","林","律","叫","且","究","观","越","织","装","影","算","低","持","音","众","书","布","复","容","儿","须","际","商","非","验","连","断","深","难","近","矿","千","周","委","素","技","备","半","办","青","省","列","习","响","约","支","般","史","感","劳","便","团","往","酸","历","市","克","何","除","消","构","府","称","太","准","精","值","号","率","族","维","划","选","标","写","存","候","毛","亲","快","效","斯","院","查","江","型","眼","王","按","格","养","易","置","派","层","片","始","却","专","状","育","厂","京","识","适","属","圆","包","火","住","调","满","县","局","照","参","红","细","引","听","该","铁","价","严","首","底","液","官","德","随","病","苏","失","尔","死","讲","配","女","黄","推","显","谈","罪","神","艺","呢","席","含","企","望","密","批","营","项","防","举","球","英","氧","势","告","李","台","落","木","帮","轮","破","亚","师","围","注","远","字","材","排","供","河","态","封","另","施","减","树","溶","怎","止","案","言","士","均","武","固","叶","鱼","波","视","仅","费","紧","爱","左","章","早","朝","害","续","轻","服","试","食","充","兵","源","判","护","司","足","某","练","差","致","板","田","降","黑","犯","负","击","范","继","兴","似","余","坚","曲","输","修","故","城","夫","够","送","笔","船","占","右","财","吃","富","春","职","觉","汉","画","功","巴","跟","虽","杂","飞","检","吸","助","升","阳","互","初","创","抗","考","投","坏","策","古","径","换","未","跑","留","钢","曾","端","责","站","简","述","钱","副","尽","帝","射","草","冲","承","独","令","限","阿","宣","环","双","请","超","微","让","控","州","良","轴","找","否","纪","益","依","优","顶","础","载","倒","房","突","坐","粉","敌","略","客","袁","冷","胜","绝","析","块","剂","测","丝","协","诉","念","陈","仍","罗","盐","友","洋","错","苦","夜","刑","移","频","逐","靠","混","母","短","皮","终","聚","汽","村","云","哪","既","距","卫","停","烈","央","察","烧","迅","境","若","印","洲","刻","括","激","孔","搞","甚","室","待","核","校","散","侵","吧","甲","游","久","菜","味","旧","模","湖","货","损","预","阻","毫","普","稳","乙","妈","植","息","扩","银","语","挥","酒","守","拿","序","纸","医","缺","雨","吗","针","刘","啊","急","唱","误","训","愿","审","附","获","茶","鲜","粮","斤","孩","脱","硫","肥","善","龙","演","父","渐","血","欢","械","掌","歌","沙","刚","攻","谓","盾","讨","晚","粒","乱","燃","矛","乎","杀","药","宁","鲁","贵","钟","煤","读","班","伯","香","介","迫","句","丰","培","握","兰","担","弦","蛋","沉","假","穿","执","答","乐","谁","顺","烟","缩","征","脸","喜","松","脚","困","异","免","背","星","福","买","染","井","概","慢","怕","磁","倍","祖","皇","促","静","补","评","翻","肉","践","尼","衣","宽","扬","棉","希","伤","操","垂","秋","宜","氢","套","督","振","架","亮","末","宪","庆","编","牛","触","映","雷","销","诗","座","居","抓","裂","胞","呼","娘","景","威","绿","晶","厚","盟","衡","鸡","孙","延","危","胶","屋","乡","临","陆","顾","掉","呀","灯","岁","措","束","耐","剧","玉","赵","跳","哥","季","课","凯","胡","额","款","绍","卷","齐","伟","蒸","殖","永","宗","苗","川","炉","岩","弱","零","杨","奏","沿","露","杆","探","滑","镇","饭","浓","航","怀","赶","库","夺","伊","灵","税","途","灭","赛","归","召","鼓","播","盘","裁","险","康","唯","录","菌","纯","借","糖","盖","横","符","私","努","堂","域","枪","润","幅","哈","竟","熟","虫","泽","脑","壤","碳","欧","遍","侧","寨","敢","彻","虑","斜","薄","庭","纳","弹","饲","伸","折","麦","湿","暗","荷","瓦","塞","床","筑","恶","户","访","塔","奇","透","梁","刀","旋","迹","卡","氯","遇","份","毒","泥","退","洗","摆","灰","彩","卖","耗","夏","择","忙","铜","献","硬","予","繁","圈","雪","函","亦","抽","篇","阵","阴","丁","尺","追","堆","雄","迎","泛","爸","楼","避","谋","吨","野","猪","旗","累","偏","典","馆","索","秦","脂","潮","爷","豆","忽","托","惊","塑","遗","愈","朱","替","纤","粗","倾","尚","痛","楚","谢","奋","购","磨","君","池","旁","碎","骨","监","捕","弟","暴","割","贯","殊","释","词","亡","壁","顿","宝","午","尘","闻","揭","炮","残","冬","桥","妇","警","综","招","吴","付","浮","遭","徐","您","摇","谷","赞","箱","隔","订","男","吹","园","纷","唐","败","宋","玻","巨","耕","坦","荣","闭","湾","键","凡","驻","锅","救","恩","剥","凝","碱","齿","截","炼","麻","纺","禁","废","盛","版","缓","净","睛","昌","婚","涉","筒","嘴","插","岸","朗","庄","街","藏","姑","贸","腐","奴","啦","惯","乘","伙","恢","匀","纱","扎","辩","耳","彪","臣","亿","璃","抵","脉","秀","萨","俄","网","舞","店","喷","纵","寸","汗","挂","洪","贺","闪","柬","爆","烯","津","稻","墙","软","勇","像","滚","厘","蒙","芳","肯","坡","柱","荡","腿","仪","旅","尾","轧","冰","贡","登","黎","削","钻","勒","逃","障","氨","郭","峰","币","港","伏","轨","亩","毕","擦","莫","刺","浪","秘","援","株","健","售","股","岛","甘","泡","睡","童","铸","汤","阀","休","汇","舍","牧","绕","炸","哲","磷","绩","朋","淡","尖","启","陷","柴","呈","徒","颜","泪","稍","忘","泵","蓝","拖","洞","授","镜","辛","壮","锋","贫","虚","弯","摩","泰","幼","廷","尊","窗","纲","弄","隶","疑","氏","宫","姐","震","瑞","怪","尤","琴","循","描","膜","违","夹","腰","缘","珠","穷","森","枝","竹","沟","催","绳","忆","邦","剩","幸","浆","栏","拥","牙","贮","礼","滤","钠","纹","罢","拍","咱","喊","袖","埃","勤","罚","焦","潜","伍","墨","欲","缝","姓","刊","饱","仿","奖","铝","鬼","丽","跨","默","挖","链","扫","喝","袋","炭","污","幕","诸","弧","励","梅","奶","洁","灾","舟","鉴","苯","讼","抱","毁","懂","寒","智","埔","寄","届","跃","渡","挑","丹","艰","贝","碰","拔","爹","戴","码","梦","芽","熔","赤","渔","哭","敬","颗","奔","铅","仲","虎","稀","妹","乏","珍","申","桌","遵","允","隆","螺","仓","魏","锐","晓","氮","兼","隐","碍","赫","拨","忠","肃","缸","牵","抢","博","巧","壳","兄","杜","讯","诚","碧","祥","柯","页","巡","矩","悲","灌","龄","伦","票","寻","桂","铺","圣","恐","恰","郑","趣","抬","荒","腾","贴","柔","滴","猛","阔","辆","妻","填","撤","储","签","闹","扰","紫","砂","递","戏","吊","陶","伐","喂","疗","瓶","婆","抚","臂","摸","忍","虾","蜡","邻","胸","巩","挤","偶","弃","槽","劲","乳","邓","吉","仁","烂","砖","租","乌","舰","伴","瓜","浅","丙","暂","燥","橡","柳","迷","暖","牌","秧","胆","详","簧","踏","瓷","谱","呆","宾","糊","洛","辉","愤","竞","隙","怒","粘","乃","绪","肩","籍","敏","涂","熙","皆","侦","悬","掘","享","纠","醒","狂","锁","淀","恨","牲","霸","爬","赏","逆","玩","陵","祝","秒","浙","貌","役","彼","悉","鸭","趋","凤","晨","畜","辈","秩","卵","署","梯","炎","滩","棋","驱","筛","峡","冒","啥","寿","译","浸","泉","帽","迟","硅","疆","贷","漏","稿","冠","嫩","胁","芯","牢","叛","蚀","奥","鸣","岭","羊","凭","串","塘","绘","酵","融","盆","锡","庙","筹","冻","辅","摄","袭","筋","拒","僚","旱","钾","鸟","漆","沈","眉","疏","添","棒","穗","硝","韩","逼","扭","侨","凉","挺","碗","栽","炒","杯","患","馏","劝","豪","辽","勃","鸿","旦","吏","拜","狗","埋","辊","掩","饮","搬","骂","辞","勾","扣","估","蒋","绒","雾","丈","朵","姆","拟","宇","辑","陕","雕","偿","蓄","崇","剪","倡","厅","咬","驶","薯","刷","斥","番","赋","奉","佛","浇","漫","曼","扇","钙","桃","扶","仔","返","俗","亏","腔","鞋","棱","覆","框","悄","叔","撞","骗","勘","旺","沸","孤","吐","孟","渠","屈","疾","妙","惜","仰","狠","胀","谐","抛","霉","桑","岗","嘛","衰","盗","渗","脏","赖","涌","甜","曹","阅","肌","哩","厉","烃","纬","毅","昨","伪","症","煮","叹","钉","搭","茎","笼","酷","偷","弓","锥","恒","杰","坑","鼻","翼","纶","叙","狱","逮","罐","络","棚","抑","膨","蔬","寺","骤","穆","冶","枯","册","尸","凸","绅","坯","牺","焰","轰","欣","晋","瘦","御","锭","锦","丧","旬","锻","垄","搜","扑","邀","亭","酯","迈","舒","脆","酶","闲","忧","酚","顽","羽","涨","卸","仗","陪","辟","惩","杭","姚","肚","捉","飘","漂","昆","欺","吾","郎","烷","汁","呵","饰","萧","雅","邮","迁","燕","撒","姻","赴","宴","烦","债","帐","斑","铃","旨","醇","董","饼","雏","姿","拌","傅","腹","妥","揉","贤","拆","歪","葡","胺","丢","浩","徽","昂","垫","挡","览","贪","慰","缴","汪","慌","冯","诺","姜","谊","凶","劣","诬","耀","昏","躺","盈","骑","乔","溪","丛","卢","抹","闷","咨","刮","驾","缆","悟","摘","铒","掷","颇","幻","柄","惠","惨","佳","仇","腊","窝","涤","剑","瞧","堡","泼","葱","罩","霍","捞","胎","苍","滨","俩","捅","湘","砍","霞","邵","萄","疯","淮","遂","熊","粪","烘","宿","档","戈","驳","嫂","裕","徙","箭","捐","肠","撑","晒","辨","殿","莲","摊","搅","酱","屏","疫","哀","蔡","堵","沫","皱","畅","叠","阁","莱","敲","辖","钩","痕","坝","巷","饿","祸","丘","玄","溜","曰","逻","彭","尝","卿","妨","艇","吞","韦","怨","矮","歇"]')},6097:function(e,t,r){"use strict";var o,n=r(9922).hp,a=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,n)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(o=function(e){return o=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},o(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=o(e),n=0;n<r.length;n++)"default"!==r[n]&&a(t,e,r[n]);return i(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.HDWallet=t.getBIP44Chain=t.BIP44ChainMap=t.BIP44Chain=void 0;const c=r(2783),l=s(r(2374)),u=r(2013),f=r(6241);Object.defineProperty(t,"BIP44Chain",{enumerable:!0,get:function(){return f.BIP44Chain}}),Object.defineProperty(t,"BIP44ChainMap",{enumerable:!0,get:function(){return f.BIP44ChainMap}}),Object.defineProperty(t,"getBIP44Chain",{enumerable:!0,get:function(){return f.getBIP44Chain}});const d=r(5005),h=r(1613),p=(0,c.Factory)(h.Alphabet.JINGTUM);class g{constructor(e){if(this.isRoot=()=>this._path.chain+this._path.account+this._path.change+this._path.index===0,this.deriveWallet=e=>{if(isNaN(e.chain)||isNaN(e.account)||isNaN(e.index))return null;const t=g.getHDKeypair(this._secret,e.chain,e.account,e.index);return new g({keypair:t,path:{chain:e.chain,account:e.account,change:0,index:e.index}})},this.secret=()=>this._secret,this.mnemonic=()=>this._mnemonic,this.chain=()=>this.isRoot()?f.BIP44ChainMap.get(f.BIP44Chain.SWTC):f.BIP44ChainMap.get(this._path.chain),this.address=()=>{if(!this._address){const e=this.chain();this._address=(0,d.getPluginByType)(e).address(this._secret?this._secret:this._keypair,e)}return this._address},this.isValidAddress=e=>(0,d.getPluginByType)(this.chain()).isValidAddress(e),this.isValidSecret=e=>(0,d.getPluginByType)(this.chain()).isValidSecret(e),this.hash=e=>(0,d.getPluginByType)(this.chain()).hash(e),this.sign=e=>(0,d.getPluginByType)(this.chain()).sign(e,this._keypair.privateKey),this.verify=(e,t,r,o)=>(r||(r=this.address()),o||(o=this._keypair),(0,d.getPluginByType)(this.chain()).verify(e,t,r,o)),this.recover=(e,t)=>(0,d.getPluginByType)(this.chain()).recover(e,t),this.getWalletApi=()=>(0,d.getPluginByType)(this.chain()),this.keypair=()=>this._keypair,this.path=()=>this._path,this.setKeypair=e=>{this._keypair=e},!e)throw new Error("undefined parameters: "+e);if(this._path={chain:0,account:0,change:0,index:0},e.mnemonic)return this._secret=g.getSecretFromMnemonic(e.mnemonic,e.language),this._keypair=g.getKeypairFromSecret(this._secret),this._mnemonic={mnemonic:e.mnemonic,language:e.language},this;if(e.secret)return this._secret=e.secret,this._keypair=g.getKeypairFromSecret(this._secret),this._mnemonic={mnemonic:g.getMnemonicFromSecret(this._secret,e.language),language:e.language},this;if(e.keypair)return e.path?(this._keypair=e.keypair,this._mnemonic=null,this._secret=null,this._path=e.path):(this._keypair=e.keypair,this._mnemonic=null,this._secret=null),this;throw new Error("invalid parameters: "+e)}}t.HDWallet=g,g.generateMnemonic=(e=128,t="english")=>(l.setDefaultWordlist(t),l.generateMnemonic(e)),g.getSecretFromMnemonic=(e,t="english")=>{l.setDefaultWordlist(t);const r=l.mnemonicToEntropy(e);return p.addressCodec.encodeSeed(n.from(r,"hex"))},g.getMnemonicFromSecret=(e,t="english")=>{l.setDefaultWordlist(t);const r=p.addressCodec.decodeSeed(e).bytes;return l.entropyToMnemonic(r)},g.getKeypairFromSecret=e=>p.deriveKeyPair(e),g.getHDKeypair=(e,t,r=0,o)=>{const a=(0,f.getBIP44Chain)(t);if(0===a.length)return null;const i=a[0][0]<<1>>1,s=g.getMnemonicFromSecret(e),c=l.mnemonicToSeedSync(s),d=u.HDKey.fromMasterSeed(c).derive(`m/44'/${i}'/${r}'/0/${o}`).privateKey;return p.deriveKeyPair(n.from(d).toString("hex"))},g.generate=e=>{e||(e={});const t=g.generateMnemonic(e.len,e.language);return new g({mnemonic:t,language:e.language})},g.fromSecret=e=>new g({secret:e}),g.fromMnemonic=e=>new g({mnemonic:e.mnemonic,language:e.language}),g.fromKeypair=e=>new g({keypair:e})},6152:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PublicKey=void 0;const o=r(7448),n=r(7152),a=r(9462);class i{constructor(e,t){this.key=e,this.ec=t}static fromString(e,t){const r=(0,o.stringToPublicKey)(e);return t||(t=(0,n.constructElliptic)(r.type)),new i(r,t)}static fromPoint(e,t,r){const o=(0,a.toBEArray)(e.x,32),s=(0,a.toBEArray)(e.y,32);return r||(r=(0,n.constructElliptic)(t)),new i({type:t,data:new Uint8Array([1&s[31]?3:2].concat(o))},r)}toLegacyString(){return(0,o.publicKeyToLegacyString)(this.key)}toPoint(){return this.ec.ProjectivePoint.fromHex(this.key.data)}getType(){return this.key.type}isValid(){try{return this.toPoint(),!0}catch(e){return!1}}}t.PublicKey=i},6223:(e,t,r)=>{"use strict";var o=r(9922).hp;Object.defineProperty(t,"__esModule",{value:!0}),t.plugin=void 0;const n=r(8241),a=r(4790),i=r(6872),s=r(102),c=r(8169),l=r(1636),u=r(2857),f=r(3554),d=r(4904);t.plugin={checkPrivateKey:e=>66===e.length?e.substring(2):e,address(e){if(e.privateKey){const r=t.plugin.checkPrivateKey(e.privateKey);return t.plugin.getAddress(r)}if(e.publicKey){const t=(0,l.pubToAddress)(o.from(e.publicKey,"hex"));return(0,i.bytesToHex)(t)}return null},isValidAddress:e=>"string"==typeof e&&/^(0x)?[0-9a-fA-F]{40}$/.test((0,s.stripHexPrefix)(e)),getAddress(e){if(!t.plugin.isValidSecret(e))return null;const r=n.secp256k1.ProjectivePoint.fromPrivateKey(o.from((0,s.stripHexPrefix)(e),"hex")).toHex(!1);return(0,i.bytesToHex)((0,l.pubToAddress)(o.from(r.substring(2),"hex")))},isValidSecret(e){try{return n.secp256k1.utils.isValidPrivateKey(o.from((0,s.stripHexPrefix)(e),"hex"))}catch(e){return!1}},hash(e){const t=(0,i.bytesToHex)((0,a.keccak256)(o.from(e,"utf-8")));return(0,s.stripHexPrefix)(t)},sign(e,r){const n=t.plugin.checkPrivateKey(r).toLowerCase(),l=(0,a.keccak256)(o.from(e,"utf-8")),u=(0,c.ecsign)(l,o.from(n,"hex"));return(0,s.stripHexPrefix)((0,i.bytesToHex)(u.r))+(0,s.stripHexPrefix)((0,i.bytesToHex)(u.s))+u.v.toString(16)},verify:(e,r,o)=>t.plugin.recover(e,r)===o,recover(e,t){const r=(0,a.keccak256)(o.from(e,"utf-8")),n=o.from(o.from(t.substring(0,64),"hex")),s=o.from(o.from(t.substring(64,128),"hex")),u=(0,i.hexToBytes)("0x"+t.substring(128,130)),f=(0,c.ecrecover)(r,(0,i.bytesToBigInt)(u),n,s),d=(0,l.pubToAddress)(o.from(f));return(0,i.bytesToHex)(d)},async decryptKeystore(e,t){if(r=t,"[object Object]"!==Object.prototype.toString.call(r))throw new Error(f.KEYSTORE_IS_INVALID);var r;const o=t.Crypto||t.crypto;if((0,u.isEmptyPlainObject)(o)||(0,u.isEmptyPlainObject)(o.cipherparams)||(0,u.isEmptyPlainObject)(o.kdfparams))throw new Error(f.KEYSTORE_IS_INVALID);const n=o.kdfparams;return(await(0,u.decrypt)(e,{crypto:{iv:o.cipherparams.iv,cipher:o.cipher,kdf:o.kdf,kdfparams:{dklen:n.dklen,n:n.n,p:n.p,r:n.r,salt:n.salt}},mac:o.mac,ciphertext:o.ciphertext})).toString("hex")},createWallet(){const e=(0,d.randomBytes)(32);return{address:t.plugin.getAddress((0,i.bytesToHex)(e)),secret:(0,i.bytesToHex)(e)}}}},6241:function(e,t,r){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getBIP44Chain=t.BIP44ChainMap=t.BIP44Chain=void 0;const n=o(r(1919));var a;!function(e){e[e.BITCOIN=2147483648]="BITCOIN",e[e.BSC=2147492654]="BSC",e[e.EOS=2147483842]="EOS",e[e.TRON=2147483843]="TRON",e[e.ETC=2147483709]="ETC",e[e.ETH=2147483708]="ETH",e[e.HECO=2147484658]="HECO",e[e.MOAC=2147483962]="MOAC",e[e.POLYGON=2147484614]="POLYGON",e[e.RIPPLE=2147483792]="RIPPLE",e[e.SWTC=2147483963]="SWTC",e[e.CALL=2147484281]="CALL",e[e.BVCADT=2399141888]="BVCADT",e[e.STREAM=2399141889]="STREAM",e[e.BIZAIN=2399141890]="BIZAIN",e[e.BASE=2147492101]="BASE",e[e.ARB1=2147492649]="ARB1"}(a||(t.BIP44Chain=a={}));t.getBIP44Chain=e=>n.default.filter(t=>t[0]===e);const i=new Map([[a.BITCOIN,"bitcoin"],[a.BSC,"bsc"],[a.EOS,"eos"],[a.TRON,"tron"],[a.ETC,"etc"],[a.ETH,"ethereum"],[a.HECO,"heco"],[a.MOAC,"moac"],[a.POLYGON,"polygon"],[a.RIPPLE,"ripple"],[a.SWTC,"jingtum"],[a.CALL,"call"],[a.BVCADT,"bvcadt"],[a.STREAM,"stream"],[a.BIZAIN,"bizain"],[a.BASE,"base"],[a.ARB1,"arb1"]]);t.BIP44ChainMap=i},6262:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveAddress=t.isAddress=t.isAddressable=void 0;const o=r(1490),n=r(91);function a(e){return e&&"function"==typeof e.getAddress}async function i(e,t){const r=await t;return null!=r&&"0x0000000000000000000000000000000000000000"!==r||((0,o.assert)("string"!=typeof e,"unconfigured name","UNCONFIGURED_NAME",{value:e}),(0,o.assertArgument)(!1,"invalid AddressLike value; did not resolve to a value address","target",e)),(0,n.getAddress)(r)}t.isAddressable=a,t.isAddress=function(e){try{return(0,n.getAddress)(e),!0}catch(e){}return!1},t.resolveAddress=function(e,t){return"string"==typeof e?e.match(/^0x[0-9a-f]{40}$/i)?(0,n.getAddress)(e):((0,o.assert)(null!=t,"ENS resolution requires a provider","UNSUPPORTED_OPERATION",{operation:"resolveName"}),i(e,t.resolveName(e))):a(e)?i(e,e.getAddress()):e&&"function"==typeof e.then?i(e,e):void(0,o.assertArgument)(!1,"unsupported addressable value","target",e)}},6526:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shake256=t.shake128=t.keccak_512=t.keccak_384=t.keccak_256=t.keccak_224=t.sha3_512=t.sha3_384=t.sha3_256=t.sha3_224=t.Keccak=void 0,t.keccakP=v;const o=r(7807),n=r(4904),a=BigInt(0),i=BigInt(1),s=BigInt(2),c=BigInt(7),l=BigInt(256),u=BigInt(113),f=[],d=[],h=[];for(let e=0,t=i,r=1,o=0;e<24;e++){[r,o]=[o,(2*r+3*o)%5],f.push(2*(5*o+r)),d.push((e+1)*(e+2)/2%64);let n=a;for(let e=0;e<7;e++)t=(t<<i^(t>>c)*u)%l,t&s&&(n^=i<<(i<<BigInt(e))-i);h.push(n)}const p=(0,o.split)(h,!0),g=p[0],m=p[1],b=(e,t,r)=>r>32?(0,o.rotlBH)(e,t,r):(0,o.rotlSH)(e,t,r),y=(e,t,r)=>r>32?(0,o.rotlBL)(e,t,r):(0,o.rotlSL)(e,t,r);function v(e,t=24){const r=new Uint32Array(10);for(let o=24-t;o<24;o++){for(let t=0;t<10;t++)r[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){const o=(t+8)%10,n=(t+2)%10,a=r[n],i=r[n+1],s=b(a,i,1)^r[o],c=y(a,i,1)^r[o+1];for(let r=0;r<50;r+=10)e[t+r]^=s,e[t+r+1]^=c}let t=e[2],n=e[3];for(let r=0;r<24;r++){const o=d[r],a=b(t,n,o),i=y(t,n,o),s=f[r];t=e[s],n=e[s+1],e[s]=a,e[s+1]=i}for(let t=0;t<50;t+=10){for(let o=0;o<10;o++)r[o]=e[t+o];for(let o=0;o<10;o++)e[t+o]^=~r[(o+2)%10]&r[(o+4)%10]}e[0]^=g[o],e[1]^=m[o]}(0,n.clean)(r)}class w extends n.Hash{constructor(e,t,r,o=!1,a=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=e,this.suffix=t,this.outputLen=r,this.enableXOF=o,this.rounds=a,(0,n.anumber)(r),!(0<e&&e<200))throw new Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=(0,n.u32)(this.state)}clone(){return this._cloneInto()}keccak(){(0,n.swap32IfBE)(this.state32),v(this.state32,this.rounds),(0,n.swap32IfBE)(this.state32),this.posOut=0,this.pos=0}update(e){(0,n.aexists)(this),e=(0,n.toBytes)(e),(0,n.abytes)(e);const{blockLen:t,state:r}=this,o=e.length;for(let n=0;n<o;){const a=Math.min(t-this.pos,o-n);for(let t=0;t<a;t++)r[this.pos++]^=e[n++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:e,suffix:t,pos:r,blockLen:o}=this;e[r]^=t,128&t&&r===o-1&&this.keccak(),e[o-1]^=128,this.keccak()}writeInto(e){(0,n.aexists)(this,!1),(0,n.abytes)(e),this.finish();const t=this.state,{blockLen:r}=this;for(let o=0,n=e.length;o<n;){this.posOut>=r&&this.keccak();const a=Math.min(r-this.posOut,n-o);e.set(t.subarray(this.posOut,this.posOut+a),o),this.posOut+=a,o+=a}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,n.anumber)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,n.aoutput)(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,(0,n.clean)(this.state)}_cloneInto(e){const{blockLen:t,suffix:r,outputLen:o,rounds:n,enableXOF:a}=this;return e||(e=new w(t,r,o,a,n)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=n,e.suffix=r,e.outputLen=o,e.enableXOF=a,e.destroyed=this.destroyed,e}}t.Keccak=w;const E=(e,t,r)=>(0,n.createHasher)(()=>new w(t,e,r));t.sha3_224=E(6,144,28),t.sha3_256=E(6,136,32),t.sha3_384=E(6,104,48),t.sha3_512=E(6,72,64),t.keccak_224=E(1,144,28),t.keccak_256=E(1,136,32),t.keccak_384=E(1,104,48),t.keccak_512=E(1,72,64);const B=(e,t,r)=>(0,n.createXOFer)((o={})=>new w(t,e,void 0===o.dkLen?r:o.dkLen,!0));t.shake128=B(31,168,16),t.shake256=B(31,136,32)},6630:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNegativeLE=void 0,t.mod=d,t.pow=function(e,t,r){if(t<a)throw new Error("invalid exponent, negatives unsupported");if(r<=a)throw new Error("invalid modulus");if(r===i)return a;let o=i;for(;t>a;)t&i&&(o=o*e%r),e=e*e%r,t>>=i;return o},t.pow2=function(e,t,r){let o=e;for(;t-- >a;)o*=o,o%=r;return o},t.invert=h,t.tonelliShanks=p,t.FpSqrt=g,t.validateField=function(e){const t=m.reduce((e,t)=>(e[t]="function",e),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"});return(0,n.validateObject)(e,t)},t.FpPow=b,t.FpInvertBatch=y,t.FpDiv=function(e,t,r){return e.mul(t,"bigint"==typeof r?h(r,e.ORDER):e.inv(r))},t.FpLegendre=v,t.FpIsSquare=w,t.nLength=E,t.Field=B,t.FpSqrtOdd=function(e,t){if(!e.isOdd)throw new Error("Field doesn't have isOdd");const r=e.sqrt(t);return e.isOdd(r)?r:e.neg(r)},t.FpSqrtEven=function(e,t){if(!e.isOdd)throw new Error("Field doesn't have isOdd");const r=e.sqrt(t);return e.isOdd(r)?e.neg(r):r},t.hashToPrivateScalar=function(e,t,r=!1){const o=(e=(0,n.ensureBytes)("privateHash",e)).length,a=E(t).nByteLength+8;if(a<24||o<a||o>1024)throw new Error("hashToPrivateScalar: expected "+a+"-1024 bytes of input, got "+o);return d(r?(0,n.bytesToNumberLE)(e):(0,n.bytesToNumberBE)(e),t-i)+i},t.getFieldBytesLength=x,t.getMinHashLength=A,t.mapHashToField=function(e,t,r=!1){const o=e.length,a=x(t),s=A(t);if(o<16||o<s||o>1024)throw new Error("expected "+s+"-1024 bytes of input, got "+o);const c=d(r?(0,n.bytesToNumberLE)(e):(0,n.bytesToNumberBE)(e),t-i)+i;return r?(0,n.numberToBytesLE)(c,a):(0,n.numberToBytesBE)(c,a)};
|
|
39
|
+
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
40
|
+
const o=r(4904),n=r(5565),a=BigInt(0),i=BigInt(1),s=BigInt(2),c=BigInt(3),l=BigInt(4),u=BigInt(5),f=BigInt(8);function d(e,t){const r=e%t;return r>=a?r:t+r}function h(e,t){if(e===a)throw new Error("invert: expected non-zero number");if(t<=a)throw new Error("invert: expected positive modulus, got "+t);let r=d(e,t),o=t,n=a,s=i,c=i,l=a;for(;r!==a;){const e=o/r,t=o%r,a=n-c*e,i=s-l*e;o=r,r=t,n=c,s=l,c=a,l=i}if(o!==i)throw new Error("invert: does not exist");return d(n,t)}function p(e){let t=e-i,r=0;for(;t%s===a;)t/=s,r++;let o=s;const n=B(e);for(;o<e&&w(n,o);)if(o++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(1===r){const t=(e+i)/l;return function(e,r){const o=e.pow(r,t);if(!e.eql(e.sqr(o),r))throw new Error("Cannot find square root");return o}}const c=(t+i)/s;return function(e,n){if(!w(e,n))throw new Error("Cannot find square root");let a=r,s=e.pow(e.mul(e.ONE,o),t),l=e.pow(n,c),u=e.pow(n,t);for(;!e.eql(u,e.ONE);){if(e.eql(u,e.ZERO))return e.ZERO;let t=1;for(let r=e.sqr(u);t<a&&!e.eql(r,e.ONE);t++)r=e.sqr(r);const r=e.pow(s,i<<BigInt(a-t-1));s=e.sqr(r),l=e.mul(l,r),u=e.mul(u,s),a=t}return l}}function g(e){return e%l===c?function(t,r){const o=(e+i)/l,n=t.pow(r,o);if(!t.eql(t.sqr(n),r))throw new Error("Cannot find square root");return n}:e%f===u?function(t,r){const o=t.mul(r,s),n=(e-u)/f,a=t.pow(o,n),i=t.mul(r,a),c=t.mul(t.mul(i,s),a),l=t.mul(i,t.sub(c,t.ONE));if(!t.eql(t.sqr(l),r))throw new Error("Cannot find square root");return l}:p(e)}t.isNegativeLE=(e,t)=>(d(e,t)&i)===i;const m=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function b(e,t,r){if(r<a)throw new Error("invalid exponent, negatives unsupported");if(r===a)return e.ONE;if(r===i)return t;let o=e.ONE,n=t;for(;r>a;)r&i&&(o=e.mul(o,n)),n=e.sqr(n),r>>=i;return o}function y(e,t,r=!1){const o=new Array(t.length).fill(r?e.ZERO:void 0),n=t.reduce((t,r,n)=>e.is0(r)?t:(o[n]=t,e.mul(t,r)),e.ONE),a=e.inv(n);return t.reduceRight((t,r,n)=>e.is0(r)?t:(o[n]=e.mul(t,o[n]),e.mul(t,r)),a),o}function v(e,t){const r=(e.ORDER-i)/s,o=e.pow(t,r),n=e.eql(o,e.ONE),a=e.eql(o,e.ZERO),c=e.eql(o,e.neg(e.ONE));if(!n&&!a&&!c)throw new Error("Cannot find square root: probably non-prime P");return n?1:a?0:-1}function w(e,t){const r=v(e,t);return 0===r||1===r}function E(e,t){void 0!==t&&(0,o.anumber)(t);const r=void 0!==t?t:e.toString(2).length;return{nBitLength:r,nByteLength:Math.ceil(r/8)}}function B(e,t,r=!1,o={}){if(e<=a)throw new Error("invalid field: expected ORDER > 0, got "+e);const{nBitLength:s,nByteLength:c}=E(e,t);if(c>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let l;const u=Object.freeze({ORDER:e,isLE:r,BITS:s,BYTES:c,MASK:(0,n.bitMask)(s),ZERO:a,ONE:i,create:t=>d(t,e),isValid:t=>{if("bigint"!=typeof t)throw new Error("invalid field element: expected bigint, got "+typeof t);return a<=t&&t<e},is0:e=>e===a,isOdd:e=>(e&i)===i,neg:t=>d(-t,e),eql:(e,t)=>e===t,sqr:t=>d(t*t,e),add:(t,r)=>d(t+r,e),sub:(t,r)=>d(t-r,e),mul:(t,r)=>d(t*r,e),pow:(e,t)=>b(u,e,t),div:(t,r)=>d(t*h(r,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>h(t,e),sqrt:o.sqrt||(t=>(l||(l=g(e)),l(u,t))),toBytes:e=>r?(0,n.numberToBytesLE)(e,c):(0,n.numberToBytesBE)(e,c),fromBytes:e=>{if(e.length!==c)throw new Error("Field.fromBytes: expected "+c+" bytes, got "+e.length);return r?(0,n.bytesToNumberLE)(e):(0,n.bytesToNumberBE)(e)},invertBatch:e=>y(u,e),cmov:(e,t,r)=>r?t:e});return Object.freeze(u)}function x(e){if("bigint"!=typeof e)throw new Error("field order must be bigint");const t=e.toString(2).length;return Math.ceil(t/8)}function A(e){const t=x(e);return t+Math.ceil(t/2)}},6710:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomBytes=t.pbkdf2Sync=t.createHmac=t.createHash=void 0;const o=r(7983),n=r(4973),a=r(1103),i=r(486),s=r(1490);const c=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==r.g)return r.g;throw new Error("unable to locate global object")}(),l=c.crypto||c.msCrypto;t.createHash=function(e){switch(e){case"sha256":return a.sha256.create();case"sha512":return i.sha512.create()}(0,s.assertArgument)(!1,"invalid hashing algorithm name","algorithm",e)},t.createHmac=function(e,t){const r={sha256:a.sha256,sha512:i.sha512}[e];return(0,s.assertArgument)(null!=r,"invalid hmac algorithm","algorithm",e),o.hmac.create(r,t)},t.pbkdf2Sync=function(e,t,r,o,c){const l={sha256:a.sha256,sha512:i.sha512}[c];return(0,s.assertArgument)(null!=l,"invalid pbkdf2 algorithm","algorithm",c),(0,n.pbkdf2)(l,e,t,{c:r,dkLen:o})},t.randomBytes=function(e){(0,s.assert)(null!=l,"platform does not support secure random numbers","UNSUPPORTED_OPERATION",{operation:"randomBytes"}),(0,s.assertArgument)(Number.isInteger(e)&&e>0&&e<=1024,"invalid length","length",e);const t=new Uint8Array(e);return l.getRandomValues(t),t}},6727:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNegativeLE=void 0,t.mod=p,t.pow=function(e,t,r){return B(S(r),e,t)},t.pow2=function(e,t,r){let o=e;for(;t-- >n;)o*=o,o%=r;return o},t.invert=g,t.tonelliShanks=v,t.FpSqrt=w,t.validateField=function(e){const t=E.reduce((e,t)=>(e[t]="function",e),{ORDER:"bigint",MASK:"bigint",BYTES:"number",BITS:"number"});return(0,o._validateObject)(e,t),e},t.FpPow=B,t.FpInvertBatch=x,t.FpDiv=function(e,t,r){return e.mul(t,"bigint"==typeof r?g(r,e.ORDER):e.inv(r))},t.FpLegendre=A,t.FpIsSquare=function(e,t){return 1===A(e,t)},t.nLength=k,t.Field=S,t.FpSqrtOdd=function(e,t){if(!e.isOdd)throw new Error("Field doesn't have isOdd");const r=e.sqrt(t);return e.isOdd(r)?r:e.neg(r)},t.FpSqrtEven=function(e,t){if(!e.isOdd)throw new Error("Field doesn't have isOdd");const r=e.sqrt(t);return e.isOdd(r)?e.neg(r):r},t.hashToPrivateScalar=function(e,t,r=!1){const n=(e=(0,o.ensureBytes)("privateHash",e)).length,i=k(t).nByteLength+8;if(i<24||n<i||n>1024)throw new Error("hashToPrivateScalar: expected "+i+"-1024 bytes of input, got "+n);return p(r?(0,o.bytesToNumberLE)(e):(0,o.bytesToNumberBE)(e),t-a)+a},t.getFieldBytesLength=C,t.getMinHashLength=T,t.mapHashToField=function(e,t,r=!1){const n=e.length,i=C(t),s=T(t);if(n<16||n<s||n>1024)throw new Error("expected "+s+"-1024 bytes of input, got "+n);const c=p(r?(0,o.bytesToNumberLE)(e):(0,o.bytesToNumberBE)(e),t-a)+a;return r?(0,o.numberToBytesLE)(c,i):(0,o.numberToBytesBE)(c,i)};
|
|
41
|
+
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
42
|
+
const o=r(7827),n=BigInt(0),a=BigInt(1),i=BigInt(2),s=BigInt(3),c=BigInt(4),l=BigInt(5),u=BigInt(7),f=BigInt(8),d=BigInt(9),h=BigInt(16);function p(e,t){const r=e%t;return r>=n?r:t+r}function g(e,t){if(e===n)throw new Error("invert: expected non-zero number");if(t<=n)throw new Error("invert: expected positive modulus, got "+t);let r=p(e,t),o=t,i=n,s=a,c=a,l=n;for(;r!==n;){const e=o/r,t=o%r,n=i-c*e,a=s-l*e;o=r,r=t,i=c,s=l,c=n,l=a}if(o!==a)throw new Error("invert: does not exist");return p(i,t)}function m(e,t,r){if(!e.eql(e.sqr(t),r))throw new Error("Cannot find square root")}function b(e,t){const r=(e.ORDER+a)/c,o=e.pow(t,r);return m(e,o,t),o}function y(e,t){const r=(e.ORDER-l)/f,o=e.mul(t,i),n=e.pow(o,r),a=e.mul(t,n),s=e.mul(e.mul(a,i),n),c=e.mul(a,e.sub(s,e.ONE));return m(e,c,t),c}function v(e){if(e<s)throw new Error("sqrt is not defined for small field");let t=e-a,r=0;for(;t%i===n;)t/=i,r++;let o=i;const c=S(e);for(;1===A(c,o);)if(o++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(1===r)return b;let l=c.pow(o,t);const u=(t+a)/i;return function(e,o){if(e.is0(o))return o;if(1!==A(e,o))throw new Error("Cannot find square root");let n=r,i=e.mul(e.ONE,l),s=e.pow(o,t),c=e.pow(o,u);for(;!e.eql(s,e.ONE);){if(e.is0(s))return e.ZERO;let t=1,r=e.sqr(s);for(;!e.eql(r,e.ONE);)if(t++,r=e.sqr(r),t===n)throw new Error("Cannot find square root");const o=a<<BigInt(n-t-1),l=e.pow(i,o);n=t,i=e.sqr(l),s=e.mul(s,i),c=e.mul(c,l)}return c}}function w(e){return e%c===s?b:e%f===l?y:e%h===d?function(e){const t=S(e),r=v(e),o=r(t,t.neg(t.ONE)),n=r(t,o),a=r(t,t.neg(o)),i=(e+u)/h;return(e,t)=>{let r=e.pow(t,i),s=e.mul(r,o);const c=e.mul(r,n),l=e.mul(r,a),u=e.eql(e.sqr(s),t),f=e.eql(e.sqr(c),t);r=e.cmov(r,s,u),s=e.cmov(l,c,f);const d=e.eql(e.sqr(s),t),h=e.cmov(r,s,d);return m(e,h,t),h}}(e):v(e)}t.isNegativeLE=(e,t)=>(p(e,t)&a)===a;const E=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function B(e,t,r){if(r<n)throw new Error("invalid exponent, negatives unsupported");if(r===n)return e.ONE;if(r===a)return t;let o=e.ONE,i=t;for(;r>n;)r&a&&(o=e.mul(o,i)),i=e.sqr(i),r>>=a;return o}function x(e,t,r=!1){const o=new Array(t.length).fill(r?e.ZERO:void 0),n=t.reduce((t,r,n)=>e.is0(r)?t:(o[n]=t,e.mul(t,r)),e.ONE),a=e.inv(n);return t.reduceRight((t,r,n)=>e.is0(r)?t:(o[n]=e.mul(t,o[n]),e.mul(t,r)),a),o}function A(e,t){const r=(e.ORDER-a)/i,o=e.pow(t,r),n=e.eql(o,e.ONE),s=e.eql(o,e.ZERO),c=e.eql(o,e.neg(e.ONE));if(!n&&!s&&!c)throw new Error("invalid Legendre symbol result");return n?1:s?0:-1}function k(e,t){void 0!==t&&(0,o.anumber)(t);const r=void 0!==t?t:e.toString(2).length;return{nBitLength:r,nByteLength:Math.ceil(r/8)}}function S(e,t,r=!1,i={}){if(e<=n)throw new Error("invalid field: expected ORDER > 0, got "+e);let s,c,l,u=!1;if("object"==typeof t&&null!=t){if(i.sqrt||r)throw new Error("cannot specify opts in two arguments");const e=t;e.BITS&&(s=e.BITS),e.sqrt&&(c=e.sqrt),"boolean"==typeof e.isLE&&(r=e.isLE),"boolean"==typeof e.modFromBytes&&(u=e.modFromBytes),l=e.allowedLengths}else"number"==typeof t&&(s=t),i.sqrt&&(c=i.sqrt);const{nBitLength:f,nByteLength:d}=k(e,s);if(d>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let h;const m=Object.freeze({ORDER:e,isLE:r,BITS:f,BYTES:d,MASK:(0,o.bitMask)(f),ZERO:n,ONE:a,allowedLengths:l,create:t=>p(t,e),isValid:t=>{if("bigint"!=typeof t)throw new Error("invalid field element: expected bigint, got "+typeof t);return n<=t&&t<e},is0:e=>e===n,isValidNot0:e=>!m.is0(e)&&m.isValid(e),isOdd:e=>(e&a)===a,neg:t=>p(-t,e),eql:(e,t)=>e===t,sqr:t=>p(t*t,e),add:(t,r)=>p(t+r,e),sub:(t,r)=>p(t-r,e),mul:(t,r)=>p(t*r,e),pow:(e,t)=>B(m,e,t),div:(t,r)=>p(t*g(r,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>g(t,e),sqrt:c||(t=>(h||(h=w(e)),h(m,t))),toBytes:e=>r?(0,o.numberToBytesLE)(e,d):(0,o.numberToBytesBE)(e,d),fromBytes:(t,n=!0)=>{if(l){if(!l.includes(t.length)||t.length>d)throw new Error("Field.fromBytes: expected "+l+" bytes, got "+t.length);const e=new Uint8Array(d);e.set(t,r?0:e.length-t.length),t=e}if(t.length!==d)throw new Error("Field.fromBytes: expected "+d+" bytes, got "+t.length);let a=r?(0,o.bytesToNumberLE)(t):(0,o.bytesToNumberBE)(t);if(u&&(a=p(a,e)),!n&&!m.isValid(a))throw new Error("invalid field element: outside of range 0..ORDER");return a},invertBatch:e=>x(m,e),cmov:(e,t,r)=>r?t:e});return Object.freeze(m)}function C(e){if("bigint"!=typeof e)throw new Error("field order must be bigint");const t=e.toString(2).length;return Math.ceil(t/8)}function T(e){const t=C(e);return t+Math.ceil(t/2)}},6763:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeRlp=void 0;const o=r(8256);function n(e){const t=[];for(;e;)t.unshift(255&e),e>>=8;return t}function a(e){if(Array.isArray(e)){let t=[];if(e.forEach(function(e){t=t.concat(a(e))}),t.length<=55)return t.unshift(192+t.length),t;const r=n(t.length);return r.unshift(247+r.length),r.concat(t)}const t=Array.prototype.slice.call((0,o.getBytes)(e,"object"));if(1===t.length&&t[0]<=127)return t;if(t.length<=55)return t.unshift(128+t.length),t;const r=n(t.length);return r.unshift(183+r.length),r.concat(t)}const i="0123456789abcdef";t.encodeRlp=function(e){let t="0x";for(const r of a(e))t+=i[r>>4],t+=i[15&r];return t}},6872:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bytesToBigInt=t.hexToBytes=t.bytesToHex=t.setLengthRight=t.setLengthLeft=t.concatBytes=t.zeros=void 0;const o=r(7706),n=r(9967),a=r(102),i=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0")),s=[];for(let e=0;e<=65535;e++)s[e]=BigInt(e);t.zeros=e=>new Uint8Array(e);const c=(e,r,o)=>o?e.length<r?new Uint8Array([...e,...(0,t.zeros)(r-e.length)]):e.subarray(0,r):e.length<r?new Uint8Array([...(0,t.zeros)(r-e.length),...e]):e.subarray(-r);t.concatBytes=(...e)=>{if(1===e.length)return e[0];const t=e.reduce((e,t)=>e+t.length,0),r=new Uint8Array(t);for(let t=0,o=0;t<e.length;t++){const n=e[t];r.set(n,o),o+=n.length}return r};t.setLengthLeft=(e,t)=>((0,n.assertIsBytes)(e),c(e,t,!1));t.setLengthRight=(e,t)=>((0,n.assertIsBytes)(e),c(e,t,!0));t.bytesToHex=e=>{let t="0x";if(void 0===e||0===e.length)return t;for(const r of e)t+=i[r];return t};t.hexToBytes=e=>{if("string"!=typeof e)throw new Error(`hex argument type ${typeof e} must be of type string`);if(!e.startsWith("0x"))throw new Error(`prefixed hex input should start with 0x, got ${e.substring(0,2)}`);(e=e.slice(2)).length%2!=0&&(e=(0,a.padToEven)(e));const t=e.length/2,r=new Uint8Array(t);for(let o=0;o<t;o++){const t=parseInt(e.slice(2*o,2*(o+1)),16);r[o]=t}return r};t.bytesToBigInt=e=>{const r=(0,t.bytesToHex)(e);return"0x"===r?o.BIGINT_0:4===r.length?s[e[0]]:6===r.length?s[256*e[0]+e[1]]:BigInt(r)}},6930:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeBase64=t.decodeBase64=void 0;const o=r(8256);t.decodeBase64=function(e){e=atob(e);const t=new Uint8Array(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return(0,o.getBytes)(t)},t.encodeBase64=function(e){const t=(0,o.getBytes)(e);let r="";for(let e=0;e<t.length;e++)r+=String.fromCharCode(t[e]);return btoa(r)}},6948:e=>{var t=Object.prototype.toString;function r(e){return"function"==typeof e.constructor?e.constructor.name:null}e.exports=function(e){if(void 0===e)return"undefined";if(null===e)return"null";var o=typeof e;if("boolean"===o)return"boolean";if("string"===o)return"string";if("number"===o)return"number";if("symbol"===o)return"symbol";if("function"===o)return"GeneratorFunction"===r(e)?"generatorfunction":"function";if(function(e){return Array.isArray?Array.isArray(e):e instanceof Array}(e))return"array";if(function(e){if(e.constructor&&"function"==typeof e.constructor.isBuffer)return e.constructor.isBuffer(e);return!1}(e))return"buffer";if(function(e){try{if("number"==typeof e.length&&"function"==typeof e.callee)return!0}catch(e){if(-1!==e.message.indexOf("callee"))return!0}return!1}(e))return"arguments";if(function(e){return e instanceof Date||"function"==typeof e.toDateString&&"function"==typeof e.getDate&&"function"==typeof e.setDate}(e))return"date";if(function(e){return e instanceof Error||"string"==typeof e.message&&e.constructor&&"number"==typeof e.constructor.stackTraceLimit}(e))return"error";if(function(e){return e instanceof RegExp||"string"==typeof e.flags&&"boolean"==typeof e.ignoreCase&&"boolean"==typeof e.multiline&&"boolean"==typeof e.global}(e))return"regexp";switch(r(e)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(function(e){return"function"==typeof e.throw&&"function"==typeof e.return&&"function"==typeof e.next}(e))return"generator";switch(o=t.call(e)){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return o.slice(8,-1).toLowerCase().replace(/\s/g,"")}},6968:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeToCurve=t.hashToCurve=t.secp256r1=t.p256=void 0;const o=r(2363);t.p256=o.p256,t.secp256r1=o.p256,t.hashToCurve=o.p256_hasher.hashToCurve,t.encodeToCurve=o.p256_hasher.encodeToCurve},7043:(e,t,r)=>{"use strict";
|
|
41
43
|
/*!
|
|
42
|
-
*
|
|
44
|
+
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
43
45
|
*
|
|
44
46
|
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
45
47
|
* Released under the MIT License.
|
|
46
|
-
*/
|
|
48
|
+
*/var o=r(4447);function n(e){return!0===o(e)&&"[object Object]"===Object.prototype.toString.call(e)}e.exports=function(e){var t,r;return!1!==n(e)&&("function"==typeof(t=e.constructor)&&(!1!==n(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf")))}},7146:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getHash=function(e){return{hash:e}},t.createCurve=function(e,t){const r=t=>(0,o.weierstrass)({...e,hash:t});return{...r(t),create:r}};
|
|
49
|
+
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
50
|
+
const o=r(5145)},7152:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.constructElliptic=t.Signature=t.PublicKey=t.PrivateKey=void 0;const o=r(7448);var n=r(3016);Object.defineProperty(t,"PrivateKey",{enumerable:!0,get:function(){return n.PrivateKey}});var a=r(6152);Object.defineProperty(t,"PublicKey",{enumerable:!0,get:function(){return a.PublicKey}});var i=r(3194);Object.defineProperty(t,"Signature",{enumerable:!0,get:function(){return i.Signature}});const s=r(8241),c=r(6968);t.constructElliptic=e=>e===o.KeyType.k1?s.secp256k1:c.p256},7256:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lock=t.Signature=t.SigningKey=t.scryptSync=t.scrypt=t.pbkdf2=t.sha512=t.sha256=t.ripemd160=t.keccak256=t.randomBytes=t.computeHmac=void 0;const o=r(9661);Object.defineProperty(t,"computeHmac",{enumerable:!0,get:function(){return o.computeHmac}});const n=r(7340);Object.defineProperty(t,"keccak256",{enumerable:!0,get:function(){return n.keccak256}});const a=r(9236);Object.defineProperty(t,"ripemd160",{enumerable:!0,get:function(){return a.ripemd160}});const i=r(1831);Object.defineProperty(t,"pbkdf2",{enumerable:!0,get:function(){return i.pbkdf2}});const s=r(733);Object.defineProperty(t,"randomBytes",{enumerable:!0,get:function(){return s.randomBytes}});const c=r(4429);Object.defineProperty(t,"scrypt",{enumerable:!0,get:function(){return c.scrypt}}),Object.defineProperty(t,"scryptSync",{enumerable:!0,get:function(){return c.scryptSync}});const l=r(7526);Object.defineProperty(t,"sha256",{enumerable:!0,get:function(){return l.sha256}}),Object.defineProperty(t,"sha512",{enumerable:!0,get:function(){return l.sha512}});var u=r(2469);Object.defineProperty(t,"SigningKey",{enumerable:!0,get:function(){return u.SigningKey}});var f=r(4054);Object.defineProperty(t,"Signature",{enumerable:!0,get:function(){return f.Signature}}),t.lock=function(){o.computeHmac.lock(),n.keccak256.lock(),i.pbkdf2.lock(),s.randomBytes.lock(),a.ripemd160.lock(),c.scrypt.lock(),c.scryptSync.lock(),l.sha256.lock(),l.sha512.lock(),s.randomBytes.lock()}},7288:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=void 0,t.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},7340:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keccak256=void 0;const o=r(3451),n=r(1490);let a=!1;const i=function(e){return(0,o.keccak_256)(e)};let s=i;function c(e){const t=(0,n.getBytes)(e,"data");return(0,n.hexlify)(s(t))}t.keccak256=c,c._=i,c.lock=function(){a=!0},c.register=function(e){if(a)throw new TypeError("keccak256 is locked");s=e},Object.freeze(c)},7357:e=>{"use strict";e.exports=JSON.parse('["abacate","abaixo","abalar","abater","abduzir","abelha","aberto","abismo","abotoar","abranger","abreviar","abrigar","abrupto","absinto","absoluto","absurdo","abutre","acabado","acalmar","acampar","acanhar","acaso","aceitar","acelerar","acenar","acervo","acessar","acetona","achatar","acidez","acima","acionado","acirrar","aclamar","aclive","acolhida","acomodar","acoplar","acordar","acumular","acusador","adaptar","adega","adentro","adepto","adequar","aderente","adesivo","adeus","adiante","aditivo","adjetivo","adjunto","admirar","adorar","adquirir","adubo","adverso","advogado","aeronave","afastar","aferir","afetivo","afinador","afivelar","aflito","afluente","afrontar","agachar","agarrar","agasalho","agenciar","agilizar","agiota","agitado","agora","agradar","agreste","agrupar","aguardar","agulha","ajoelhar","ajudar","ajustar","alameda","alarme","alastrar","alavanca","albergue","albino","alcatra","aldeia","alecrim","alegria","alertar","alface","alfinete","algum","alheio","aliar","alicate","alienar","alinhar","aliviar","almofada","alocar","alpiste","alterar","altitude","alucinar","alugar","aluno","alusivo","alvo","amaciar","amador","amarelo","amassar","ambas","ambiente","ameixa","amenizar","amido","amistoso","amizade","amolador","amontoar","amoroso","amostra","amparar","ampliar","ampola","anagrama","analisar","anarquia","anatomia","andaime","anel","anexo","angular","animar","anjo","anomalia","anotado","ansioso","anterior","anuidade","anunciar","anzol","apagador","apalpar","apanhado","apego","apelido","apertada","apesar","apetite","apito","aplauso","aplicada","apoio","apontar","aposta","aprendiz","aprovar","aquecer","arame","aranha","arara","arcada","ardente","areia","arejar","arenito","aresta","argiloso","argola","arma","arquivo","arraial","arrebate","arriscar","arroba","arrumar","arsenal","arterial","artigo","arvoredo","asfaltar","asilado","aspirar","assador","assinar","assoalho","assunto","astral","atacado","atadura","atalho","atarefar","atear","atender","aterro","ateu","atingir","atirador","ativo","atoleiro","atracar","atrevido","atriz","atual","atum","auditor","aumentar","aura","aurora","autismo","autoria","autuar","avaliar","avante","avaria","avental","avesso","aviador","avisar","avulso","axila","azarar","azedo","azeite","azulejo","babar","babosa","bacalhau","bacharel","bacia","bagagem","baiano","bailar","baioneta","bairro","baixista","bajular","baleia","baliza","balsa","banal","bandeira","banho","banir","banquete","barato","barbado","baronesa","barraca","barulho","baseado","bastante","batata","batedor","batida","batom","batucar","baunilha","beber","beijo","beirada","beisebol","beldade","beleza","belga","beliscar","bendito","bengala","benzer","berimbau","berlinda","berro","besouro","bexiga","bezerro","bico","bicudo","bienal","bifocal","bifurcar","bigorna","bilhete","bimestre","bimotor","biologia","biombo","biosfera","bipolar","birrento","biscoito","bisneto","bispo","bissexto","bitola","bizarro","blindado","bloco","bloquear","boato","bobagem","bocado","bocejo","bochecha","boicotar","bolada","boletim","bolha","bolo","bombeiro","bonde","boneco","bonita","borbulha","borda","boreal","borracha","bovino","boxeador","branco","brasa","braveza","breu","briga","brilho","brincar","broa","brochura","bronzear","broto","bruxo","bucha","budismo","bufar","bule","buraco","busca","busto","buzina","cabana","cabelo","cabide","cabo","cabrito","cacau","cacetada","cachorro","cacique","cadastro","cadeado","cafezal","caiaque","caipira","caixote","cajado","caju","calafrio","calcular","caldeira","calibrar","calmante","calota","camada","cambista","camisa","camomila","campanha","camuflar","canavial","cancelar","caneta","canguru","canhoto","canivete","canoa","cansado","cantar","canudo","capacho","capela","capinar","capotar","capricho","captador","capuz","caracol","carbono","cardeal","careca","carimbar","carneiro","carpete","carreira","cartaz","carvalho","casaco","casca","casebre","castelo","casulo","catarata","cativar","caule","causador","cautelar","cavalo","caverna","cebola","cedilha","cegonha","celebrar","celular","cenoura","censo","centeio","cercar","cerrado","certeiro","cerveja","cetim","cevada","chacota","chaleira","chamado","chapada","charme","chatice","chave","chefe","chegada","cheiro","cheque","chicote","chifre","chinelo","chocalho","chover","chumbo","chutar","chuva","cicatriz","ciclone","cidade","cidreira","ciente","cigana","cimento","cinto","cinza","ciranda","circuito","cirurgia","citar","clareza","clero","clicar","clone","clube","coado","coagir","cobaia","cobertor","cobrar","cocada","coelho","coentro","coeso","cogumelo","coibir","coifa","coiote","colar","coleira","colher","colidir","colmeia","colono","coluna","comando","combinar","comentar","comitiva","comover","complexo","comum","concha","condor","conectar","confuso","congelar","conhecer","conjugar","consumir","contrato","convite","cooperar","copeiro","copiador","copo","coquetel","coragem","cordial","corneta","coronha","corporal","correio","cortejo","coruja","corvo","cosseno","costela","cotonete","couro","couve","covil","cozinha","cratera","cravo","creche","credor","creme","crer","crespo","criada","criminal","crioulo","crise","criticar","crosta","crua","cruzeiro","cubano","cueca","cuidado","cujo","culatra","culminar","culpar","cultura","cumprir","cunhado","cupido","curativo","curral","cursar","curto","cuspir","custear","cutelo","damasco","datar","debater","debitar","deboche","debulhar","decalque","decimal","declive","decote","decretar","dedal","dedicado","deduzir","defesa","defumar","degelo","degrau","degustar","deitado","deixar","delator","delegado","delinear","delonga","demanda","demitir","demolido","dentista","depenado","depilar","depois","depressa","depurar","deriva","derramar","desafio","desbotar","descanso","desenho","desfiado","desgaste","desigual","deslize","desmamar","desova","despesa","destaque","desviar","detalhar","detentor","detonar","detrito","deusa","dever","devido","devotado","dezena","diagrama","dialeto","didata","difuso","digitar","dilatado","diluente","diminuir","dinastia","dinheiro","diocese","direto","discreta","disfarce","disparo","disquete","dissipar","distante","ditador","diurno","diverso","divisor","divulgar","dizer","dobrador","dolorido","domador","dominado","donativo","donzela","dormente","dorsal","dosagem","dourado","doutor","drenagem","drible","drogaria","duelar","duende","dueto","duplo","duquesa","durante","duvidoso","eclodir","ecoar","ecologia","edificar","edital","educado","efeito","efetivar","ejetar","elaborar","eleger","eleitor","elenco","elevador","eliminar","elogiar","embargo","embolado","embrulho","embutido","emenda","emergir","emissor","empatia","empenho","empinado","empolgar","emprego","empurrar","emulador","encaixe","encenado","enchente","encontro","endeusar","endossar","enfaixar","enfeite","enfim","engajado","engenho","englobar","engomado","engraxar","enguia","enjoar","enlatar","enquanto","enraizar","enrolado","enrugar","ensaio","enseada","ensino","ensopado","entanto","enteado","entidade","entortar","entrada","entulho","envergar","enviado","envolver","enxame","enxerto","enxofre","enxuto","epiderme","equipar","ereto","erguido","errata","erva","ervilha","esbanjar","esbelto","escama","escola","escrita","escuta","esfinge","esfolar","esfregar","esfumado","esgrima","esmalte","espanto","espelho","espiga","esponja","espreita","espumar","esquerda","estaca","esteira","esticar","estofado","estrela","estudo","esvaziar","etanol","etiqueta","euforia","europeu","evacuar","evaporar","evasivo","eventual","evidente","evoluir","exagero","exalar","examinar","exato","exausto","excesso","excitar","exclamar","executar","exemplo","exibir","exigente","exonerar","expandir","expelir","expirar","explanar","exposto","expresso","expulsar","externo","extinto","extrato","fabricar","fabuloso","faceta","facial","fada","fadiga","faixa","falar","falta","familiar","fandango","fanfarra","fantoche","fardado","farelo","farinha","farofa","farpa","fartura","fatia","fator","favorita","faxina","fazenda","fechado","feijoada","feirante","felino","feminino","fenda","feno","fera","feriado","ferrugem","ferver","festejar","fetal","feudal","fiapo","fibrose","ficar","ficheiro","figurado","fileira","filho","filme","filtrar","firmeza","fisgada","fissura","fita","fivela","fixador","fixo","flacidez","flamingo","flanela","flechada","flora","flutuar","fluxo","focal","focinho","fofocar","fogo","foguete","foice","folgado","folheto","forjar","formiga","forno","forte","fosco","fossa","fragata","fralda","frango","frasco","fraterno","freira","frente","fretar","frieza","friso","fritura","fronha","frustrar","fruteira","fugir","fulano","fuligem","fundar","fungo","funil","furador","furioso","futebol","gabarito","gabinete","gado","gaiato","gaiola","gaivota","galega","galho","galinha","galocha","ganhar","garagem","garfo","gargalo","garimpo","garoupa","garrafa","gasoduto","gasto","gata","gatilho","gaveta","gazela","gelado","geleia","gelo","gemada","gemer","gemido","generoso","gengiva","genial","genoma","genro","geologia","gerador","germinar","gesso","gestor","ginasta","gincana","gingado","girafa","girino","glacial","glicose","global","glorioso","goela","goiaba","golfe","golpear","gordura","gorjeta","gorro","gostoso","goteira","governar","gracejo","gradual","grafite","gralha","grampo","granada","gratuito","graveto","graxa","grego","grelhar","greve","grilo","grisalho","gritaria","grosso","grotesco","grudado","grunhido","gruta","guache","guarani","guaxinim","guerrear","guiar","guincho","guisado","gula","guloso","guru","habitar","harmonia","haste","haver","hectare","herdar","heresia","hesitar","hiato","hibernar","hidratar","hiena","hino","hipismo","hipnose","hipoteca","hoje","holofote","homem","honesto","honrado","hormonal","hospedar","humorado","iate","ideia","idoso","ignorado","igreja","iguana","ileso","ilha","iludido","iluminar","ilustrar","imagem","imediato","imenso","imersivo","iminente","imitador","imortal","impacto","impedir","implante","impor","imprensa","impune","imunizar","inalador","inapto","inativo","incenso","inchar","incidir","incluir","incolor","indeciso","indireto","indutor","ineficaz","inerente","infantil","infestar","infinito","inflamar","informal","infrator","ingerir","inibido","inicial","inimigo","injetar","inocente","inodoro","inovador","inox","inquieto","inscrito","inseto","insistir","inspetor","instalar","insulto","intacto","integral","intimar","intocado","intriga","invasor","inverno","invicto","invocar","iogurte","iraniano","ironizar","irreal","irritado","isca","isento","isolado","isqueiro","italiano","janeiro","jangada","janta","jararaca","jardim","jarro","jasmim","jato","javali","jazida","jejum","joaninha","joelhada","jogador","joia","jornal","jorrar","jovem","juba","judeu","judoca","juiz","julgador","julho","jurado","jurista","juro","justa","labareda","laboral","lacre","lactante","ladrilho","lagarta","lagoa","laje","lamber","lamentar","laminar","lampejo","lanche","lapidar","lapso","laranja","lareira","largura","lasanha","lastro","lateral","latido","lavanda","lavoura","lavrador","laxante","lazer","lealdade","lebre","legado","legendar","legista","leigo","leiloar","leitura","lembrete","leme","lenhador","lentilha","leoa","lesma","leste","letivo","letreiro","levar","leveza","levitar","liberal","libido","liderar","ligar","ligeiro","limitar","limoeiro","limpador","linda","linear","linhagem","liquidez","listagem","lisura","litoral","livro","lixa","lixeira","locador","locutor","lojista","lombo","lona","longe","lontra","lorde","lotado","loteria","loucura","lousa","louvar","luar","lucidez","lucro","luneta","lustre","lutador","luva","macaco","macete","machado","macio","madeira","madrinha","magnata","magreza","maior","mais","malandro","malha","malote","maluco","mamilo","mamoeiro","mamute","manada","mancha","mandato","manequim","manhoso","manivela","manobrar","mansa","manter","manusear","mapeado","maquinar","marcador","maresia","marfim","margem","marinho","marmita","maroto","marquise","marreco","martelo","marujo","mascote","masmorra","massagem","mastigar","matagal","materno","matinal","matutar","maxilar","medalha","medida","medusa","megafone","meiga","melancia","melhor","membro","memorial","menino","menos","mensagem","mental","merecer","mergulho","mesada","mesclar","mesmo","mesquita","mestre","metade","meteoro","metragem","mexer","mexicano","micro","migalha","migrar","milagre","milenar","milhar","mimado","minerar","minhoca","ministro","minoria","miolo","mirante","mirtilo","misturar","mocidade","moderno","modular","moeda","moer","moinho","moita","moldura","moleza","molho","molinete","molusco","montanha","moqueca","morango","morcego","mordomo","morena","mosaico","mosquete","mostarda","motel","motim","moto","motriz","muda","muito","mulata","mulher","multar","mundial","munido","muralha","murcho","muscular","museu","musical","nacional","nadador","naja","namoro","narina","narrado","nascer","nativa","natureza","navalha","navegar","navio","neblina","nebuloso","negativa","negociar","negrito","nervoso","neta","neural","nevasca","nevoeiro","ninar","ninho","nitidez","nivelar","nobreza","noite","noiva","nomear","nominal","nordeste","nortear","notar","noticiar","noturno","novelo","novilho","novo","nublado","nudez","numeral","nupcial","nutrir","nuvem","obcecado","obedecer","objetivo","obrigado","obscuro","obstetra","obter","obturar","ocidente","ocioso","ocorrer","oculista","ocupado","ofegante","ofensiva","oferenda","oficina","ofuscado","ogiva","olaria","oleoso","olhar","oliveira","ombro","omelete","omisso","omitir","ondulado","oneroso","ontem","opcional","operador","oponente","oportuno","oposto","orar","orbitar","ordem","ordinal","orfanato","orgasmo","orgulho","oriental","origem","oriundo","orla","ortodoxo","orvalho","oscilar","ossada","osso","ostentar","otimismo","ousadia","outono","outubro","ouvido","ovelha","ovular","oxidar","oxigenar","pacato","paciente","pacote","pactuar","padaria","padrinho","pagar","pagode","painel","pairar","paisagem","palavra","palestra","palheta","palito","palmada","palpitar","pancada","panela","panfleto","panqueca","pantanal","papagaio","papelada","papiro","parafina","parcial","pardal","parede","partida","pasmo","passado","pastel","patamar","patente","patinar","patrono","paulada","pausar","peculiar","pedalar","pedestre","pediatra","pedra","pegada","peitoral","peixe","pele","pelicano","penca","pendurar","peneira","penhasco","pensador","pente","perceber","perfeito","pergunta","perito","permitir","perna","perplexo","persiana","pertence","peruca","pescado","pesquisa","pessoa","petiscar","piada","picado","piedade","pigmento","pilastra","pilhado","pilotar","pimenta","pincel","pinguim","pinha","pinote","pintar","pioneiro","pipoca","piquete","piranha","pires","pirueta","piscar","pistola","pitanga","pivete","planta","plaqueta","platina","plebeu","plumagem","pluvial","pneu","poda","poeira","poetisa","polegada","policiar","poluente","polvilho","pomar","pomba","ponderar","pontaria","populoso","porta","possuir","postal","pote","poupar","pouso","povoar","praia","prancha","prato","praxe","prece","predador","prefeito","premiar","prensar","preparar","presilha","pretexto","prevenir","prezar","primata","princesa","prisma","privado","processo","produto","profeta","proibido","projeto","prometer","propagar","prosa","protetor","provador","publicar","pudim","pular","pulmonar","pulseira","punhal","punir","pupilo","pureza","puxador","quadra","quantia","quarto","quase","quebrar","queda","queijo","quente","querido","quimono","quina","quiosque","rabanada","rabisco","rachar","racionar","radial","raiar","rainha","raio","raiva","rajada","ralado","ramal","ranger","ranhura","rapadura","rapel","rapidez","raposa","raquete","raridade","rasante","rascunho","rasgar","raspador","rasteira","rasurar","ratazana","ratoeira","realeza","reanimar","reaver","rebaixar","rebelde","rebolar","recado","recente","recheio","recibo","recordar","recrutar","recuar","rede","redimir","redonda","reduzida","reenvio","refinar","refletir","refogar","refresco","refugiar","regalia","regime","regra","reinado","reitor","rejeitar","relativo","remador","remendo","remorso","renovado","reparo","repelir","repleto","repolho","represa","repudiar","requerer","resenha","resfriar","resgatar","residir","resolver","respeito","ressaca","restante","resumir","retalho","reter","retirar","retomada","retratar","revelar","revisor","revolta","riacho","rica","rigidez","rigoroso","rimar","ringue","risada","risco","risonho","robalo","rochedo","rodada","rodeio","rodovia","roedor","roleta","romano","roncar","rosado","roseira","rosto","rota","roteiro","rotina","rotular","rouco","roupa","roxo","rubro","rugido","rugoso","ruivo","rumo","rupestre","russo","sabor","saciar","sacola","sacudir","sadio","safira","saga","sagrada","saibro","salada","saleiro","salgado","saliva","salpicar","salsicha","saltar","salvador","sambar","samurai","sanar","sanfona","sangue","sanidade","sapato","sarda","sargento","sarjeta","saturar","saudade","saxofone","sazonal","secar","secular","seda","sedento","sediado","sedoso","sedutor","segmento","segredo","segundo","seiva","seleto","selvagem","semanal","semente","senador","senhor","sensual","sentado","separado","sereia","seringa","serra","servo","setembro","setor","sigilo","silhueta","silicone","simetria","simpatia","simular","sinal","sincero","singular","sinopse","sintonia","sirene","siri","situado","soberano","sobra","socorro","sogro","soja","solda","soletrar","solteiro","sombrio","sonata","sondar","sonegar","sonhador","sono","soprano","soquete","sorrir","sorteio","sossego","sotaque","soterrar","sovado","sozinho","suavizar","subida","submerso","subsolo","subtrair","sucata","sucesso","suco","sudeste","sufixo","sugador","sugerir","sujeito","sulfato","sumir","suor","superior","suplicar","suposto","suprimir","surdina","surfista","surpresa","surreal","surtir","suspiro","sustento","tabela","tablete","tabuada","tacho","tagarela","talher","talo","talvez","tamanho","tamborim","tampa","tangente","tanto","tapar","tapioca","tardio","tarefa","tarja","tarraxa","tatuagem","taurino","taxativo","taxista","teatral","tecer","tecido","teclado","tedioso","teia","teimar","telefone","telhado","tempero","tenente","tensor","tentar","termal","terno","terreno","tese","tesoura","testado","teto","textura","texugo","tiara","tigela","tijolo","timbrar","timidez","tingido","tinteiro","tiragem","titular","toalha","tocha","tolerar","tolice","tomada","tomilho","tonel","tontura","topete","tora","torcido","torneio","torque","torrada","torto","tostar","touca","toupeira","toxina","trabalho","tracejar","tradutor","trafegar","trajeto","trama","trancar","trapo","traseiro","tratador","travar","treino","tremer","trepidar","trevo","triagem","tribo","triciclo","tridente","trilogia","trindade","triplo","triturar","triunfal","trocar","trombeta","trova","trunfo","truque","tubular","tucano","tudo","tulipa","tupi","turbo","turma","turquesa","tutelar","tutorial","uivar","umbigo","unha","unidade","uniforme","urologia","urso","urtiga","urubu","usado","usina","usufruir","vacina","vadiar","vagaroso","vaidoso","vala","valente","validade","valores","vantagem","vaqueiro","varanda","vareta","varrer","vascular","vasilha","vassoura","vazar","vazio","veado","vedar","vegetar","veicular","veleiro","velhice","veludo","vencedor","vendaval","venerar","ventre","verbal","verdade","vereador","vergonha","vermelho","verniz","versar","vertente","vespa","vestido","vetorial","viaduto","viagem","viajar","viatura","vibrador","videira","vidraria","viela","viga","vigente","vigiar","vigorar","vilarejo","vinco","vinheta","vinil","violeta","virada","virtude","visitar","visto","vitral","viveiro","vizinho","voador","voar","vogal","volante","voleibol","voltagem","volumoso","vontade","vulto","vuvuzela","xadrez","xarope","xeque","xeretar","xerife","xingar","zangado","zarpar","zebu","zelador","zombar","zoologia","zumbido"]')},7448:(e,t,r)=>{"use strict";var o=r(9922).hp;Object.defineProperty(t,"__esModule",{value:!0}),t.privateKeyToString=t.privateKeyToLegacyString=t.signatureToString=t.stringToSignature=t.stringToPrivateKey=t.publicKeyToLegacyString=t.stringToPublicKey=t.signatureDataSize=t.privateKeyDataSize=t.publicKeyDataSize=t.KeyType=t.binaryToBase58=t.base58ToBinary=void 0;const n=r(190),a=r(9741),i="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",s=(()=>{const e=Array(256).fill(-1);for(let t=0;t<58;++t)e[i.charCodeAt(t)]=t;return e})();t.base58ToBinary=(e,t)=>{if(!e)return(e=>{const t=[];for(let r=0;r<e.length;++r){let o=s[e.charCodeAt(r)];if(o<0)throw new Error("invalid base-58 value");for(let e=0;e<t.length;++e){const r=58*t[e]+o;t[e]=255&r,o=r>>8}o&&t.push(o)}for(const r of e){if("1"!==r)break;t.push(0)}return t.reverse(),new Uint8Array(t)})(t);const r=new Uint8Array(e);for(let o=0;o<t.length;++o){let n=s[t.charCodeAt(o)];if(n<0)throw new Error("invalid base-58 value");for(let t=0;t<e;++t){const e=58*r[t]+n;r[t]=e,n=e>>8}if(n)throw new Error("base-58 value is out of range")}return r.reverse(),r};var c;t.binaryToBase58=e=>{const t=[];for(const r of e){let e=r;for(let r=0;r<t.length;++r){const o=(s[t[r]]<<8)+e;t[r]=i.charCodeAt(o%58),e=o/58|0}for(;e;)t.push(i.charCodeAt(e%58)),e=e/58|0}for(const r of e){if(r)break;t.push("1".charCodeAt(0))}return t.reverse(),String.fromCharCode(...t)},function(e){e[e.k1=0]="k1",e[e.r1=1]="r1",e[e.wa=2]="wa"}(c||(t.KeyType=c={})),t.publicKeyDataSize=33,t.privateKeyDataSize=32,t.signatureDataSize=65;const l=(e,t)=>{const r=new Uint8Array(e.length+t.length);for(let t=0;t<e.length;++t)r[t]=e[t];for(let o=0;o<t.length;++o)r[e.length+o]=t.charCodeAt(o);return(0,n.ripemd160)(r)},u=(e,r,o,n)=>{const a=(0,t.base58ToBinary)(o?o+4:0,e),i={type:r,data:new Uint8Array(a.buffer,0,a.length-4)},s=l(i.data,n);if(s[0]!==a[a.length-4]||s[1]!==a[a.length-3]||s[2]!==a[a.length-2]||s[3]!==a[a.length-1])throw new Error("checksum doesn't match");return i},f=(e,r,o)=>{const n=l(e.data,r),a=new Uint8Array(e.data.length+4);for(let t=0;t<e.data.length;++t)a[t]=e.data[t];for(let t=0;t<4;++t)a[t+e.data.length]=n[t];return o+(0,t.binaryToBase58)(a)};t.stringToPublicKey=e=>{if("string"!=typeof e)throw new Error("expected string containing public key");if("EOS"===e.substring(0,3)){const r=(0,t.base58ToBinary)(t.publicKeyDataSize+4,e.substring(3)),o={type:c.k1,data:new Uint8Array(t.publicKeyDataSize)};for(let e=0;e<t.publicKeyDataSize;++e)o.data[e]=r[e];const a=new Uint8Array((0,n.ripemd160)(o.data));if(a[0]!==r[t.publicKeyDataSize]||a[1]!==r[34]||a[2]!==r[35]||a[3]!==r[36])throw new Error("checksum doesn't match");return o}if("PUB_K1_"===e.substring(0,7))return u(e.substring(7),c.k1,t.publicKeyDataSize,"K1");if("PUB_R1_"===e.substring(0,7))return u(e.substring(7),c.r1,t.publicKeyDataSize,"R1");if("PUB_WA_"===e.substring(0,7))return u(e.substring(7),c.wa,0,"WA");throw new Error("unrecognized public key format")};t.publicKeyToLegacyString=e=>{if(e.type===c.k1&&e.data.length===t.publicKeyDataSize)return f(e,"","EOS");throw e.type===c.r1||e.type===c.wa?new Error("Key format not supported in legacy conversion"):new Error("unrecognized public key format")};t.stringToPrivateKey=e=>{if("string"!=typeof e)throw new Error("expected string containing private key");if("PVT_R1_"===e.substring(0,7))return u(e.substring(7),c.r1,t.privateKeyDataSize,"R1");if("PVT_K1_"===e.substring(0,7))return u(e.substring(7),c.k1,t.privateKeyDataSize,"K1");{const r=(0,t.base58ToBinary)(t.privateKeyDataSize+5,e),o={type:c.k1,data:new Uint8Array(t.privateKeyDataSize)};if(128!==r[0])throw new Error("unrecognized private key type");for(let e=0;e<t.privateKeyDataSize;++e)o.data[e]=r[e+1];return o}};t.stringToSignature=e=>{if("string"!=typeof e)throw new Error("expected string containing signature");if("SIG_K1_"===e.substring(0,7))return u(e.substring(7),c.k1,t.signatureDataSize,"K1");if("SIG_R1_"===e.substring(0,7))return u(e.substring(7),c.r1,t.signatureDataSize,"R1");if("SIG_WA_"===e.substring(0,7))return u(e.substring(7),c.wa,0,"WA");throw new Error("unrecognized signature format")};t.signatureToString=e=>{if(e.type===c.k1)return f(e,"K1","SIG_K1_");if(e.type===c.r1)return f(e,"R1","SIG_R1_");if(e.type===c.wa)return f(e,"WA","SIG_WA_");throw new Error("unrecognized signature format")};t.privateKeyToLegacyString=e=>{if(e.type===c.k1&&e.data.length===t.privateKeyDataSize){const r=[];r.push(128),e.data.forEach(e=>r.push(e));const n=new Uint8Array(a.sha256.create().update(a.sha256.create().update(o.from(r)).digest()).digest()),i=new Uint8Array(t.privateKeyDataSize+5);for(let e=0;e<r.length;e++)i[e]=r[e];for(let e=0;e<4;e++)i[e+r.length]=n[e];return(0,t.binaryToBase58)(i)}throw e.type===c.r1||e.type===c.wa?new Error("Key format not supported in legacy conversion"):new Error("unrecognized public key format")};t.privateKeyToString=e=>{if(e.type===c.r1)return f(e,"R1","PVT_R1_");if(e.type===c.k1)return f(e,"K1","PVT_K1_");throw new Error("unrecognized private key format")}},7473:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._DST_scalar=void 0,t.expand_message_xmd=u,t.expand_message_xof=f,t.hash_to_field=d,t.isogenyMap=function(e,t){const r=t.map(e=>Array.from(e).reverse());return(t,o)=>{const[a,i,s,c]=r.map(r=>r.reduce((r,o)=>e.add(e.mul(r,t),o))),[l,u]=(0,n.FpInvertBatch)(e,[i,c],!0);return t=e.mul(a,l),o=e.mul(o,e.mul(s,u)),{x:t,y:o}}},t.createHasher=function(e,r,o){if("function"!=typeof r)throw new Error("mapToCurve() must be defined");function n(t){return e.fromAffine(r(t))}function a(t){const r=t.clearCofactor();return r.equals(e.ZERO)?e.ZERO:(r.assertValidity(),r)}return{defaults:o,hashToCurve(e,t){const r=d(e,2,Object.assign({},o,t)),i=n(r[0]),s=n(r[1]);return a(i.add(s))},encodeToCurve(e,t){const r=o.encodeDST?{DST:o.encodeDST}:{};return a(n(d(e,1,Object.assign({},o,r,t))[0]))},mapToCurve(e){if(!Array.isArray(e))throw new Error("expected array of bigints");for(const t of e)if("bigint"!=typeof t)throw new Error("expected array of bigints");return a(n(e))},hashToScalar(r,n){const a=e.Fn.ORDER;return d(r,1,Object.assign({},o,{p:a,m:1,DST:t._DST_scalar},n))[0][0]}}};const o=r(7827),n=r(6727),a=o.bytesToNumberBE;function i(e,t){if(c(e),c(t),e<0||e>=1<<8*t)throw new Error("invalid I2OSP input: "+e);const r=Array.from({length:t}).fill(0);for(let o=t-1;o>=0;o--)r[o]=255&e,e>>>=8;return new Uint8Array(r)}function s(e,t){const r=new Uint8Array(e.length);for(let o=0;o<e.length;o++)r[o]=e[o]^t[o];return r}function c(e){if(!Number.isSafeInteger(e))throw new Error("number expected")}function l(e){if(!(0,o.isBytes)(e)&&"string"!=typeof e)throw new Error("DST must be Uint8Array or string");return"string"==typeof e?(0,o.utf8ToBytes)(e):e}function u(e,t,r,n){(0,o.abytes)(e),c(r),(t=l(t)).length>255&&(t=n((0,o.concatBytes)((0,o.utf8ToBytes)("H2C-OVERSIZE-DST-"),t)));const{outputLen:a,blockLen:u}=n,f=Math.ceil(r/a);if(r>65535||f>255)throw new Error("expand_message_xmd: invalid lenInBytes");const d=(0,o.concatBytes)(t,i(t.length,1)),h=i(0,u),p=i(r,2),g=new Array(f),m=n((0,o.concatBytes)(h,e,p,i(0,1),d));g[0]=n((0,o.concatBytes)(m,i(1,1),d));for(let e=1;e<=f;e++){const t=[s(m,g[e-1]),i(e+1,1),d];g[e]=n((0,o.concatBytes)(...t))}return(0,o.concatBytes)(...g).slice(0,r)}function f(e,t,r,n,a){if((0,o.abytes)(e),c(r),(t=l(t)).length>255){const e=Math.ceil(2*n/8);t=a.create({dkLen:e}).update((0,o.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(t).digest()}if(r>65535||t.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return a.create({dkLen:r}).update(e).update(i(r,2)).update(t).update(i(t.length,1)).digest()}function d(e,t,r){(0,o._validateObject)(r,{p:"bigint",m:"number",k:"number",hash:"function"});const{p:i,k:s,m:l,hash:d,expand:h,DST:p}=r;if(!(0,o.isHash)(r.hash))throw new Error("expected valid hash");(0,o.abytes)(e),c(t);const g=i.toString(2).length,m=Math.ceil((g+s)/8),b=t*l*m;let y;if("xmd"===h)y=u(e,p,b,d);else if("xof"===h)y=f(e,p,b,s,d);else{if("_internal_pass"!==h)throw new Error('expand must be "xmd" or "xof"');y=e}const v=new Array(t);for(let e=0;e<t;e++){const t=new Array(l);for(let r=0;r<l;r++){const o=m*(r+e*l),s=y.subarray(o,o+m);t[r]=(0,n.mod)(a(s),i)}v[e]=t}return v}t._DST_scalar=(0,o.utf8ToBytes)("HashToScalar-")},7520:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.twistedEdwards=function(e){const t=function(e){const t=(0,o.validateBasic)(e);return(0,a.validateObject)(e,{hash:"function",a:"bigint",d:"bigint",randomBytes:"function"},{adjustScalarBytes:"function",domain:"function",uvRatio:"function",mapToCurve:"function"}),Object.freeze({...t})}(e),{Fp:r,n:f,prehash:d,hash:h,randomBytes:p,nByteLength:g,h:m}=t,b=c<<BigInt(8*g)-s,y=r.create,v=(0,n.Field)(t.n,t.nBitLength),w=t.uvRatio||((e,t)=>{try{return{isValid:!0,value:r.sqrt(e*r.inv(t))}}catch(e){return{isValid:!1,value:i}}}),E=t.adjustScalarBytes||(e=>e),B=t.domain||((e,t,r)=>{if((0,a.abool)("phflag",r),t.length||r)throw new Error("Contexts/pre-hash are not supported");return e});function x(e,t,r=!1){const o=r?s:i;(0,a.aInRange)("coordinate "+e,t,o,b)}function A(e){if(!(e instanceof C))throw new Error("ExtendedPoint expected")}const k=(0,a.memoized)((e,t)=>{const{ex:o,ey:n,ez:a}=e,c=e.is0();null==t&&(t=c?l:r.inv(a));const u=y(o*t),f=y(n*t),d=y(a*t);if(c)return{x:i,y:s};if(d!==s)throw new Error("invZ was invalid");return{x:u,y:f}}),S=(0,a.memoized)(e=>{const{a:r,d:o}=t;if(e.is0())throw new Error("bad point: ZERO");const{ex:n,ey:a,ez:i,et:s}=e,c=y(n*n),l=y(a*a),u=y(i*i),f=y(u*u),d=y(c*r);if(y(u*y(d+l))!==y(f+y(o*y(c*l))))throw new Error("bad point: equation left != right (1)");if(y(n*a)!==y(i*s))throw new Error("bad point: equation left != right (2)");return!0});class C{constructor(e,t,r,o){x("x",e),x("y",t),x("z",r,!0),x("t",o),this.ex=e,this.ey=t,this.ez=r,this.et=o,Object.freeze(this)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static fromAffine(e){if(e instanceof C)throw new Error("extended point not allowed");const{x:t,y:r}=e||{};return x("x",t),x("y",r),new C(t,r,s,y(t*r))}static normalizeZ(e){const t=(0,n.FpInvertBatch)(r,e.map(e=>e.ez));return e.map((e,r)=>e.toAffine(t[r])).map(C.fromAffine)}static msm(e,t){return(0,o.pippenger)(C,v,e,t)}_setWindowSize(e){O.setWindowSize(this,e)}assertValidity(){S(this)}equals(e){A(e);const{ex:t,ey:r,ez:o}=this,{ex:n,ey:a,ez:i}=e,s=y(t*i),c=y(n*o),l=y(r*i),u=y(a*o);return s===c&&l===u}is0(){return this.equals(C.ZERO)}negate(){return new C(y(-this.ex),this.ey,this.ez,y(-this.et))}double(){const{a:e}=t,{ex:r,ey:o,ez:n}=this,a=y(r*r),i=y(o*o),s=y(c*y(n*n)),l=y(e*a),u=r+o,f=y(y(u*u)-a-i),d=l+i,h=d-s,p=l-i,g=y(f*h),m=y(d*p),b=y(f*p),v=y(h*d);return new C(g,m,v,b)}add(e){A(e);const{a:r,d:o}=t,{ex:n,ey:a,ez:i,et:s}=this,{ex:c,ey:l,ez:u,et:f}=e,d=y(n*c),h=y(a*l),p=y(s*o*f),g=y(i*u),m=y((n+a)*(c+l)-d-h),b=g-p,v=g+p,w=y(h-r*d),E=y(m*b),B=y(v*w),x=y(m*w),k=y(b*v);return new C(E,B,k,x)}subtract(e){return this.add(e.negate())}wNAF(e){return O.wNAFCached(this,e,C.normalizeZ)}multiply(e){const t=e;(0,a.aInRange)("scalar",t,s,f);const{p:r,f:o}=this.wNAF(t);return C.normalizeZ([r,o])[0]}multiplyUnsafe(e,t=C.ZERO){const r=e;return(0,a.aInRange)("scalar",r,i,f),r===i?P:this.is0()||r===s?this:O.wNAFCachedUnsafe(this,r,C.normalizeZ,t)}isSmallOrder(){return this.multiplyUnsafe(m).is0()}isTorsionFree(){return O.unsafeLadder(this,f).is0()}toAffine(e){return k(this,e)}clearCofactor(){const{h:e}=t;return e===s?this:this.multiplyUnsafe(e)}static fromHex(e,o=!1){const{d:n,a:c}=t,l=r.BYTES;e=(0,a.ensureBytes)("pointHex",e,l),(0,a.abool)("zip215",o);const u=e.slice(),f=e[l-1];u[l-1]=-129&f;const d=(0,a.bytesToNumberLE)(u),h=o?b:r.ORDER;(0,a.aInRange)("pointHex.y",d,i,h);const p=y(d*d),g=y(p-s),m=y(n*p-c);let{isValid:v,value:E}=w(g,m);if(!v)throw new Error("Point.fromHex: invalid y coordinate");const B=(E&s)===s,x=!!(128&f);if(!o&&E===i&&x)throw new Error("Point.fromHex: x=0 and x_0=1");return x!==B&&(E=y(-E)),C.fromAffine({x:E,y:d})}static fromPrivateKey(e){const{scalar:t}=L(e);return T.multiply(t)}toRawBytes(){const{x:e,y:t}=this.toAffine(),o=(0,a.numberToBytesLE)(t,r.BYTES);return o[o.length-1]|=e&s?128:0,o}toHex(){return(0,a.bytesToHex)(this.toRawBytes())}}C.BASE=new C(t.Gx,t.Gy,s,y(t.Gx*t.Gy)),C.ZERO=new C(i,s,s,i);const{BASE:T,ZERO:P}=C,O=(0,o.wNAF)(C,8*g);function I(e){return(0,n.mod)(e,f)}function z(e){return I((0,a.bytesToNumberLE)(e))}function L(e){const t=r.BYTES;e=(0,a.ensureBytes)("private key",e,t);const o=(0,a.ensureBytes)("hashed private key",h(e),2*t),n=E(o.slice(0,t));return{head:n,prefix:o.slice(t,2*t),scalar:z(n)}}function R(e){const{head:t,prefix:r,scalar:o}=L(e),n=T.multiply(o),a=n.toRawBytes();return{head:t,prefix:r,scalar:o,point:n,pointBytes:a}}function N(e=Uint8Array.of(),...t){const r=(0,a.concatBytes)(...t);return z(h(B(r,(0,a.ensureBytes)("context",e),!!d)))}const _=u;T._setWindowSize(8);return{CURVE:t,getPublicKey:function(e){return R(e).pointBytes},sign:function(e,t,o={}){e=(0,a.ensureBytes)("message",e),d&&(e=d(e));const{prefix:n,scalar:s,pointBytes:c}=R(t),l=N(o.context,n,e),u=T.multiply(l).toRawBytes(),h=I(l+N(o.context,u,c,e)*s);(0,a.aInRange)("signature.s",h,i,f);const p=(0,a.concatBytes)(u,(0,a.numberToBytesLE)(h,r.BYTES));return(0,a.ensureBytes)("result",p,2*r.BYTES)},verify:function(e,t,o,n=_){const{context:i,zip215:s}=n,c=r.BYTES;e=(0,a.ensureBytes)("signature",e,2*c),t=(0,a.ensureBytes)("message",t),o=(0,a.ensureBytes)("publicKey",o,c),void 0!==s&&(0,a.abool)("zip215",s),d&&(t=d(t));const l=(0,a.bytesToNumberLE)(e.slice(c,2*c));let u,f,h;try{u=C.fromHex(o,s),f=C.fromHex(e.slice(0,c),s),h=T.multiplyUnsafe(l)}catch(e){return!1}if(!s&&u.isSmallOrder())return!1;const p=N(i,f.toRawBytes(),u.toRawBytes(),t);return f.add(u.multiplyUnsafe(p)).subtract(h).clearCofactor().equals(C.ZERO)},ExtendedPoint:C,utils:{getExtendedPublicKey:R,randomPrivateKey:()=>p(r.BYTES),precompute:(e=8,t=C.BASE)=>(t._setWindowSize(e),t.multiply(BigInt(3)),t)}}};
|
|
51
|
+
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
52
|
+
const o=r(831),n=r(6630),a=r(5565),i=BigInt(0),s=BigInt(1),c=BigInt(2),l=BigInt(8),u={zip215:!0}},7526:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha512=t.sha256=void 0;const o=r(6710),n=r(1490),a=function(e){return(0,o.createHash)("sha256").update(e).digest()},i=function(e){return(0,o.createHash)("sha512").update(e).digest()};let s=a,c=i,l=!1,u=!1;function f(e){const t=(0,n.getBytes)(e,"data");return(0,n.hexlify)(s(t))}function d(e){const t=(0,n.getBytes)(e,"data");return(0,n.hexlify)(c(t))}t.sha256=f,f._=a,f.lock=function(){l=!0},f.register=function(e){if(l)throw new Error("sha256 is locked");s=e},Object.freeze(f),t.sha512=d,d._=i,d.lock=function(){u=!0},d.register=function(e){if(u)throw new Error("sha512 is locked");c=e},Object.freeze(f)},7597:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toQuantity=t.toBeArray=t.toBeHex=t.toNumber=t.getNumber=t.toBigInt=t.getUint=t.getBigInt=t.mask=t.toTwos=t.fromTwos=void 0;const o=r(8256),n=r(7991),a=BigInt(0),i=BigInt(1),s=9007199254740991;function c(e,t){switch(typeof e){case"bigint":return e;case"number":return(0,n.assertArgument)(Number.isInteger(e),"underflow",t||"value",e),(0,n.assertArgument)(e>=-s&&e<=s,"overflow",t||"value",e),BigInt(e);case"string":try{if(""===e)throw new Error("empty string");return"-"===e[0]&&"-"!==e[1]?-BigInt(e.substring(1)):BigInt(e)}catch(r){(0,n.assertArgument)(!1,`invalid BigNumberish string: ${r.message}`,t||"value",e)}}(0,n.assertArgument)(!1,"invalid BigNumberish value",t||"value",e)}function l(e,t){const r=c(e,t);return(0,n.assert)(r>=a,"unsigned value cannot be negative","NUMERIC_FAULT",{fault:"overflow",operation:"getUint",value:e}),r}t.fromTwos=function(e,t){const r=l(e,"value"),o=BigInt(d(t,"width"));if((0,n.assert)(r>>o===a,"overflow","NUMERIC_FAULT",{operation:"fromTwos",fault:"overflow",value:e}),r>>o-i){return-((~r&(i<<o)-i)+i)}return r},t.toTwos=function(e,t){let r=c(e,"value");const o=BigInt(d(t,"width")),s=i<<o-i;if(r<a){r=-r,(0,n.assert)(r<=s,"too low","NUMERIC_FAULT",{operation:"toTwos",fault:"overflow",value:e});return(~r&(i<<o)-i)+i}return(0,n.assert)(r<s,"too high","NUMERIC_FAULT",{operation:"toTwos",fault:"overflow",value:e}),r},t.mask=function(e,t){const r=l(e,"value"),o=BigInt(d(t,"bits"));return r&(i<<o)-i},t.getBigInt=c,t.getUint=l;const u="0123456789abcdef";function f(e){if(e instanceof Uint8Array){let t="0x0";for(const r of e)t+=u[r>>4],t+=u[15&r];return BigInt(t)}return c(e)}function d(e,t){switch(typeof e){case"bigint":return(0,n.assertArgument)(e>=-s&&e<=s,"overflow",t||"value",e),Number(e);case"number":return(0,n.assertArgument)(Number.isInteger(e),"underflow",t||"value",e),(0,n.assertArgument)(e>=-s&&e<=s,"overflow",t||"value",e),e;case"string":try{if(""===e)throw new Error("empty string");return d(BigInt(e),t)}catch(r){(0,n.assertArgument)(!1,`invalid numeric string: ${r.message}`,t||"value",e)}}(0,n.assertArgument)(!1,"invalid numeric value",t||"value",e)}function h(e,t){const r=l(e,"value");if(r===a){const e=null!=t?d(t,"width"):0;return new Uint8Array(e)}let o=r.toString(16);if(o.length%2&&(o="0"+o),null!=t){const r=d(t,"width");for(;o.length<2*r;)o="00"+o;(0,n.assert)(2*r===o.length,`value exceeds width (${r} bytes)`,"NUMERIC_FAULT",{operation:"toBeArray",fault:"overflow",value:e})}const i=new Uint8Array(o.length/2);for(let e=0;e<i.length;e++){const t=2*e;i[e]=parseInt(o.substring(t,t+2),16)}return i}t.toBigInt=f,t.getNumber=d,t.toNumber=function(e){return d(f(e))},t.toBeHex=function(e,t){const r=l(e,"value");let o=r.toString(16);if(null==t)o.length%2&&(o="0"+o);else{const i=d(t,"width");if(0===i&&r===a)return"0x";for((0,n.assert)(2*i>=o.length,`value exceeds width (${i} bytes)`,"NUMERIC_FAULT",{operation:"toBeHex",fault:"overflow",value:e});o.length<2*i;)o="0"+o}return"0x"+o},t.toBeArray=h,t.toQuantity=function(e){let t=(0,o.hexlify)((0,o.isBytesLike)(e)?e:h(e)).substring(2);for(;t.startsWith("0");)t=t.substring(1);return""===t&&(t="0"),"0x"+t}},7706:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BIGINT_27=t.BIGINT_2=t.BIGINT_1=t.BIGINT_0=void 0,t.BIGINT_0=BigInt(0),t.BIGINT_1=BigInt(1),t.BIGINT_2=BigInt(2),t.BIGINT_27=BigInt(27)},7736:e=>{"use strict";e.exports=JSON.parse('["abandon","ability","able","about","above","absent","absorb","abstract","absurd","abuse","access","accident","account","accuse","achieve","acid","acoustic","acquire","across","act","action","actor","actress","actual","adapt","add","addict","address","adjust","admit","adult","advance","advice","aerobic","affair","afford","afraid","again","age","agent","agree","ahead","aim","air","airport","aisle","alarm","album","alcohol","alert","alien","all","alley","allow","almost","alone","alpha","already","also","alter","always","amateur","amazing","among","amount","amused","analyst","anchor","ancient","anger","angle","angry","animal","ankle","announce","annual","another","answer","antenna","antique","anxiety","any","apart","apology","appear","apple","approve","april","arch","arctic","area","arena","argue","arm","armed","armor","army","around","arrange","arrest","arrive","arrow","art","artefact","artist","artwork","ask","aspect","assault","asset","assist","assume","asthma","athlete","atom","attack","attend","attitude","attract","auction","audit","august","aunt","author","auto","autumn","average","avocado","avoid","awake","aware","away","awesome","awful","awkward","axis","baby","bachelor","bacon","badge","bag","balance","balcony","ball","bamboo","banana","banner","bar","barely","bargain","barrel","base","basic","basket","battle","beach","bean","beauty","because","become","beef","before","begin","behave","behind","believe","below","belt","bench","benefit","best","betray","better","between","beyond","bicycle","bid","bike","bind","biology","bird","birth","bitter","black","blade","blame","blanket","blast","bleak","bless","blind","blood","blossom","blouse","blue","blur","blush","board","boat","body","boil","bomb","bone","bonus","book","boost","border","boring","borrow","boss","bottom","bounce","box","boy","bracket","brain","brand","brass","brave","bread","breeze","brick","bridge","brief","bright","bring","brisk","broccoli","broken","bronze","broom","brother","brown","brush","bubble","buddy","budget","buffalo","build","bulb","bulk","bullet","bundle","bunker","burden","burger","burst","bus","business","busy","butter","buyer","buzz","cabbage","cabin","cable","cactus","cage","cake","call","calm","camera","camp","can","canal","cancel","candy","cannon","canoe","canvas","canyon","capable","capital","captain","car","carbon","card","cargo","carpet","carry","cart","case","cash","casino","castle","casual","cat","catalog","catch","category","cattle","caught","cause","caution","cave","ceiling","celery","cement","census","century","cereal","certain","chair","chalk","champion","change","chaos","chapter","charge","chase","chat","cheap","check","cheese","chef","cherry","chest","chicken","chief","child","chimney","choice","choose","chronic","chuckle","chunk","churn","cigar","cinnamon","circle","citizen","city","civil","claim","clap","clarify","claw","clay","clean","clerk","clever","click","client","cliff","climb","clinic","clip","clock","clog","close","cloth","cloud","clown","club","clump","cluster","clutch","coach","coast","coconut","code","coffee","coil","coin","collect","color","column","combine","come","comfort","comic","common","company","concert","conduct","confirm","congress","connect","consider","control","convince","cook","cool","copper","copy","coral","core","corn","correct","cost","cotton","couch","country","couple","course","cousin","cover","coyote","crack","cradle","craft","cram","crane","crash","crater","crawl","crazy","cream","credit","creek","crew","cricket","crime","crisp","critic","crop","cross","crouch","crowd","crucial","cruel","cruise","crumble","crunch","crush","cry","crystal","cube","culture","cup","cupboard","curious","current","curtain","curve","cushion","custom","cute","cycle","dad","damage","damp","dance","danger","daring","dash","daughter","dawn","day","deal","debate","debris","decade","december","decide","decline","decorate","decrease","deer","defense","define","defy","degree","delay","deliver","demand","demise","denial","dentist","deny","depart","depend","deposit","depth","deputy","derive","describe","desert","design","desk","despair","destroy","detail","detect","develop","device","devote","diagram","dial","diamond","diary","dice","diesel","diet","differ","digital","dignity","dilemma","dinner","dinosaur","direct","dirt","disagree","discover","disease","dish","dismiss","disorder","display","distance","divert","divide","divorce","dizzy","doctor","document","dog","doll","dolphin","domain","donate","donkey","donor","door","dose","double","dove","draft","dragon","drama","drastic","draw","dream","dress","drift","drill","drink","drip","drive","drop","drum","dry","duck","dumb","dune","during","dust","dutch","duty","dwarf","dynamic","eager","eagle","early","earn","earth","easily","east","easy","echo","ecology","economy","edge","edit","educate","effort","egg","eight","either","elbow","elder","electric","elegant","element","elephant","elevator","elite","else","embark","embody","embrace","emerge","emotion","employ","empower","empty","enable","enact","end","endless","endorse","enemy","energy","enforce","engage","engine","enhance","enjoy","enlist","enough","enrich","enroll","ensure","enter","entire","entry","envelope","episode","equal","equip","era","erase","erode","erosion","error","erupt","escape","essay","essence","estate","eternal","ethics","evidence","evil","evoke","evolve","exact","example","excess","exchange","excite","exclude","excuse","execute","exercise","exhaust","exhibit","exile","exist","exit","exotic","expand","expect","expire","explain","expose","express","extend","extra","eye","eyebrow","fabric","face","faculty","fade","faint","faith","fall","false","fame","family","famous","fan","fancy","fantasy","farm","fashion","fat","fatal","father","fatigue","fault","favorite","feature","february","federal","fee","feed","feel","female","fence","festival","fetch","fever","few","fiber","fiction","field","figure","file","film","filter","final","find","fine","finger","finish","fire","firm","first","fiscal","fish","fit","fitness","fix","flag","flame","flash","flat","flavor","flee","flight","flip","float","flock","floor","flower","fluid","flush","fly","foam","focus","fog","foil","fold","follow","food","foot","force","forest","forget","fork","fortune","forum","forward","fossil","foster","found","fox","fragile","frame","frequent","fresh","friend","fringe","frog","front","frost","frown","frozen","fruit","fuel","fun","funny","furnace","fury","future","gadget","gain","galaxy","gallery","game","gap","garage","garbage","garden","garlic","garment","gas","gasp","gate","gather","gauge","gaze","general","genius","genre","gentle","genuine","gesture","ghost","giant","gift","giggle","ginger","giraffe","girl","give","glad","glance","glare","glass","glide","glimpse","globe","gloom","glory","glove","glow","glue","goat","goddess","gold","good","goose","gorilla","gospel","gossip","govern","gown","grab","grace","grain","grant","grape","grass","gravity","great","green","grid","grief","grit","grocery","group","grow","grunt","guard","guess","guide","guilt","guitar","gun","gym","habit","hair","half","hammer","hamster","hand","happy","harbor","hard","harsh","harvest","hat","have","hawk","hazard","head","health","heart","heavy","hedgehog","height","hello","helmet","help","hen","hero","hidden","high","hill","hint","hip","hire","history","hobby","hockey","hold","hole","holiday","hollow","home","honey","hood","hope","horn","horror","horse","hospital","host","hotel","hour","hover","hub","huge","human","humble","humor","hundred","hungry","hunt","hurdle","hurry","hurt","husband","hybrid","ice","icon","idea","identify","idle","ignore","ill","illegal","illness","image","imitate","immense","immune","impact","impose","improve","impulse","inch","include","income","increase","index","indicate","indoor","industry","infant","inflict","inform","inhale","inherit","initial","inject","injury","inmate","inner","innocent","input","inquiry","insane","insect","inside","inspire","install","intact","interest","into","invest","invite","involve","iron","island","isolate","issue","item","ivory","jacket","jaguar","jar","jazz","jealous","jeans","jelly","jewel","job","join","joke","journey","joy","judge","juice","jump","jungle","junior","junk","just","kangaroo","keen","keep","ketchup","key","kick","kid","kidney","kind","kingdom","kiss","kit","kitchen","kite","kitten","kiwi","knee","knife","knock","know","lab","label","labor","ladder","lady","lake","lamp","language","laptop","large","later","latin","laugh","laundry","lava","law","lawn","lawsuit","layer","lazy","leader","leaf","learn","leave","lecture","left","leg","legal","legend","leisure","lemon","lend","length","lens","leopard","lesson","letter","level","liar","liberty","library","license","life","lift","light","like","limb","limit","link","lion","liquid","list","little","live","lizard","load","loan","lobster","local","lock","logic","lonely","long","loop","lottery","loud","lounge","love","loyal","lucky","luggage","lumber","lunar","lunch","luxury","lyrics","machine","mad","magic","magnet","maid","mail","main","major","make","mammal","man","manage","mandate","mango","mansion","manual","maple","marble","march","margin","marine","market","marriage","mask","mass","master","match","material","math","matrix","matter","maximum","maze","meadow","mean","measure","meat","mechanic","medal","media","melody","melt","member","memory","mention","menu","mercy","merge","merit","merry","mesh","message","metal","method","middle","midnight","milk","million","mimic","mind","minimum","minor","minute","miracle","mirror","misery","miss","mistake","mix","mixed","mixture","mobile","model","modify","mom","moment","monitor","monkey","monster","month","moon","moral","more","morning","mosquito","mother","motion","motor","mountain","mouse","move","movie","much","muffin","mule","multiply","muscle","museum","mushroom","music","must","mutual","myself","mystery","myth","naive","name","napkin","narrow","nasty","nation","nature","near","neck","need","negative","neglect","neither","nephew","nerve","nest","net","network","neutral","never","news","next","nice","night","noble","noise","nominee","noodle","normal","north","nose","notable","note","nothing","notice","novel","now","nuclear","number","nurse","nut","oak","obey","object","oblige","obscure","observe","obtain","obvious","occur","ocean","october","odor","off","offer","office","often","oil","okay","old","olive","olympic","omit","once","one","onion","online","only","open","opera","opinion","oppose","option","orange","orbit","orchard","order","ordinary","organ","orient","original","orphan","ostrich","other","outdoor","outer","output","outside","oval","oven","over","own","owner","oxygen","oyster","ozone","pact","paddle","page","pair","palace","palm","panda","panel","panic","panther","paper","parade","parent","park","parrot","party","pass","patch","path","patient","patrol","pattern","pause","pave","payment","peace","peanut","pear","peasant","pelican","pen","penalty","pencil","people","pepper","perfect","permit","person","pet","phone","photo","phrase","physical","piano","picnic","picture","piece","pig","pigeon","pill","pilot","pink","pioneer","pipe","pistol","pitch","pizza","place","planet","plastic","plate","play","please","pledge","pluck","plug","plunge","poem","poet","point","polar","pole","police","pond","pony","pool","popular","portion","position","possible","post","potato","pottery","poverty","powder","power","practice","praise","predict","prefer","prepare","present","pretty","prevent","price","pride","primary","print","priority","prison","private","prize","problem","process","produce","profit","program","project","promote","proof","property","prosper","protect","proud","provide","public","pudding","pull","pulp","pulse","pumpkin","punch","pupil","puppy","purchase","purity","purpose","purse","push","put","puzzle","pyramid","quality","quantum","quarter","question","quick","quit","quiz","quote","rabbit","raccoon","race","rack","radar","radio","rail","rain","raise","rally","ramp","ranch","random","range","rapid","rare","rate","rather","raven","raw","razor","ready","real","reason","rebel","rebuild","recall","receive","recipe","record","recycle","reduce","reflect","reform","refuse","region","regret","regular","reject","relax","release","relief","rely","remain","remember","remind","remove","render","renew","rent","reopen","repair","repeat","replace","report","require","rescue","resemble","resist","resource","response","result","retire","retreat","return","reunion","reveal","review","reward","rhythm","rib","ribbon","rice","rich","ride","ridge","rifle","right","rigid","ring","riot","ripple","risk","ritual","rival","river","road","roast","robot","robust","rocket","romance","roof","rookie","room","rose","rotate","rough","round","route","royal","rubber","rude","rug","rule","run","runway","rural","sad","saddle","sadness","safe","sail","salad","salmon","salon","salt","salute","same","sample","sand","satisfy","satoshi","sauce","sausage","save","say","scale","scan","scare","scatter","scene","scheme","school","science","scissors","scorpion","scout","scrap","screen","script","scrub","sea","search","season","seat","second","secret","section","security","seed","seek","segment","select","sell","seminar","senior","sense","sentence","series","service","session","settle","setup","seven","shadow","shaft","shallow","share","shed","shell","sheriff","shield","shift","shine","ship","shiver","shock","shoe","shoot","shop","short","shoulder","shove","shrimp","shrug","shuffle","shy","sibling","sick","side","siege","sight","sign","silent","silk","silly","silver","similar","simple","since","sing","siren","sister","situate","six","size","skate","sketch","ski","skill","skin","skirt","skull","slab","slam","sleep","slender","slice","slide","slight","slim","slogan","slot","slow","slush","small","smart","smile","smoke","smooth","snack","snake","snap","sniff","snow","soap","soccer","social","sock","soda","soft","solar","soldier","solid","solution","solve","someone","song","soon","sorry","sort","soul","sound","soup","source","south","space","spare","spatial","spawn","speak","special","speed","spell","spend","sphere","spice","spider","spike","spin","spirit","split","spoil","sponsor","spoon","sport","spot","spray","spread","spring","spy","square","squeeze","squirrel","stable","stadium","staff","stage","stairs","stamp","stand","start","state","stay","steak","steel","stem","step","stereo","stick","still","sting","stock","stomach","stone","stool","story","stove","strategy","street","strike","strong","struggle","student","stuff","stumble","style","subject","submit","subway","success","such","sudden","suffer","sugar","suggest","suit","summer","sun","sunny","sunset","super","supply","supreme","sure","surface","surge","surprise","surround","survey","suspect","sustain","swallow","swamp","swap","swarm","swear","sweet","swift","swim","swing","switch","sword","symbol","symptom","syrup","system","table","tackle","tag","tail","talent","talk","tank","tape","target","task","taste","tattoo","taxi","teach","team","tell","ten","tenant","tennis","tent","term","test","text","thank","that","theme","then","theory","there","they","thing","this","thought","three","thrive","throw","thumb","thunder","ticket","tide","tiger","tilt","timber","time","tiny","tip","tired","tissue","title","toast","tobacco","today","toddler","toe","together","toilet","token","tomato","tomorrow","tone","tongue","tonight","tool","tooth","top","topic","topple","torch","tornado","tortoise","toss","total","tourist","toward","tower","town","toy","track","trade","traffic","tragic","train","transfer","trap","trash","travel","tray","treat","tree","trend","trial","tribe","trick","trigger","trim","trip","trophy","trouble","truck","true","truly","trumpet","trust","truth","try","tube","tuition","tumble","tuna","tunnel","turkey","turn","turtle","twelve","twenty","twice","twin","twist","two","type","typical","ugly","umbrella","unable","unaware","uncle","uncover","under","undo","unfair","unfold","unhappy","uniform","unique","unit","universe","unknown","unlock","until","unusual","unveil","update","upgrade","uphold","upon","upper","upset","urban","urge","usage","use","used","useful","useless","usual","utility","vacant","vacuum","vague","valid","valley","valve","van","vanish","vapor","various","vast","vault","vehicle","velvet","vendor","venture","venue","verb","verify","version","very","vessel","veteran","viable","vibrant","vicious","victory","video","view","village","vintage","violin","virtual","virus","visa","visit","visual","vital","vivid","vocal","voice","void","volcano","volume","vote","voyage","wage","wagon","wait","walk","wall","walnut","want","warfare","warm","warrior","wash","wasp","waste","water","wave","way","wealth","weapon","wear","weasel","weather","web","wedding","weekend","weird","welcome","west","wet","whale","what","wheat","wheel","when","where","whip","whisper","wide","width","wife","wild","will","win","window","wine","wing","wink","winner","winter","wire","wisdom","wise","wish","witness","wolf","woman","wonder","wood","wool","word","work","world","worry","worth","wrap","wreck","wrestle","wrist","write","wrong","yard","year","yellow","you","young","youth","zebra","zero","zone","zoo"]')},7743:(e,t,r)=>{"use strict";var o=r(9922).hp;Object.defineProperty(t,"__esModule",{value:!0}),t.decrypt=t.encrypt=void 0;const n=o.from("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141","hex"),a=o.alloc(32,0),i=r(4904),s=r(1062),c=r(9741),l=r(3497),u=r(8241),f=u.secp256k1.ProjectivePoint;function d(e){return t=e,!(!o.isBuffer(t)||32!==t.length)&&(e.compare(a)>0&&e.compare(n)<0);var t}function h(e,t){if(!e)throw new Error(t||"Assertion failed")}function p(e){return c.sha512.create().update(e).digest()}function g(e,t){return s.hmac.create(c.sha256,e).update(t).digest()}const m=async(e,t)=>new Promise(r=>{h(32===e.length,"Bad private key"),h(d(e),"Bad private key"),r(u.secp256k1.getSharedSecret(e,t))});t.encrypt=(e,t,r)=>{let n;return r=r||{},new Promise(function(t){let a=r.ephemPrivateKey||o.from((0,i.randomBytes)(32));for(;!d(a);)a=r.ephemPrivateKey||o.from((0,i.randomBytes)(32));var s;h(32===(s=a).length,"Bad private key"),h(d(s),"Bad private key"),n=f.fromPrivateKey(s).toRawBytes(!1),t(m(a,e))}).then(async function(e){const a=p(e),s=r.iv||(0,i.randomBytes)(16),c=a.slice(0,32),u=a.slice(32),f=await async function(e,t,r){return await(0,l.encrypt)(r,t,e,"aes-256-cbc")}(s,c,t),d=o.concat([s,n,f]),h=o.from(g(u,d));return{iv:s,ephemPublicKey:n,ciphertext:f,mac:h}})};t.decrypt=(e,t)=>m(e,t.ephemPublicKey).then(function(r){h(32===e.length,"Bad private key"),h(d(e),"Bad private key");const n=p(r),a=n.slice(0,32),i=g(n.slice(32),o.concat([t.iv,t.ephemPublicKey,t.ciphertext]));return h(function(e,t){if(e.length!==t.length)return!1;let r=0;for(let o=0;o<e.length;o++)r|=e[o]^t[o];return 0===r}(t.mac,i),"Bad MAC"),async function(e,t,r){return await(0,l.decrypt)(r,t,e,"aes-256-cbc")}(t.iv,a,t.ciphertext)})},7807:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toBig=t.shrSL=t.shrSH=t.rotrSL=t.rotrSH=t.rotrBL=t.rotrBH=t.rotr32L=t.rotr32H=t.rotlSL=t.rotlSH=t.rotlBL=t.rotlBH=t.add5L=t.add5H=t.add4L=t.add4H=t.add3L=t.add3H=void 0,t.add=v,t.fromBig=n,t.split=a;const r=BigInt(2**32-1),o=BigInt(32);function n(e,t=!1){return t?{h:Number(e&r),l:Number(e>>o&r)}:{h:0|Number(e>>o&r),l:0|Number(e&r)}}function a(e,t=!1){const r=e.length;let o=new Uint32Array(r),a=new Uint32Array(r);for(let i=0;i<r;i++){const{h:r,l:s}=n(e[i],t);[o[i],a[i]]=[r,s]}return[o,a]}const i=(e,t)=>BigInt(e>>>0)<<o|BigInt(t>>>0);t.toBig=i;const s=(e,t,r)=>e>>>r;t.shrSH=s;const c=(e,t,r)=>e<<32-r|t>>>r;t.shrSL=c;const l=(e,t,r)=>e>>>r|t<<32-r;t.rotrSH=l;const u=(e,t,r)=>e<<32-r|t>>>r;t.rotrSL=u;const f=(e,t,r)=>e<<64-r|t>>>r-32;t.rotrBH=f;const d=(e,t,r)=>e>>>r-32|t<<64-r;t.rotrBL=d;const h=(e,t)=>t;t.rotr32H=h;const p=(e,t)=>e;t.rotr32L=p;const g=(e,t,r)=>e<<r|t>>>32-r;t.rotlSH=g;const m=(e,t,r)=>t<<r|e>>>32-r;t.rotlSL=m;const b=(e,t,r)=>t<<r-32|e>>>64-r;t.rotlBH=b;const y=(e,t,r)=>e<<r-32|t>>>64-r;function v(e,t,r,o){const n=(t>>>0)+(o>>>0);return{h:e+r+(n/2**32|0)|0,l:0|n}}t.rotlBL=y;const w=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0);t.add3L=w;const E=(e,t,r,o)=>t+r+o+(e/2**32|0)|0;t.add3H=E;const B=(e,t,r,o)=>(e>>>0)+(t>>>0)+(r>>>0)+(o>>>0);t.add4L=B;const x=(e,t,r,o,n)=>t+r+o+n+(e/2**32|0)|0;t.add4H=x;const A=(e,t,r,o,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(o>>>0)+(n>>>0);t.add5L=A;const k=(e,t,r,o,n,a)=>t+r+o+n+a+(e/2**32|0)|0;t.add5H=k;const S={fromBig:n,split:a,toBig:i,shrSH:s,shrSL:c,rotrSH:l,rotrSL:u,rotrBH:f,rotrBL:d,rotr32H:h,rotr32L:p,rotlSH:g,rotlSL:m,rotlBH:b,rotlBL:y,add:v,add3L:w,add3H:E,add4L:B,add4H:x,add5H:k,add5L:A};t.default=S},7827:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.notImplemented=t.bitMask=t.utf8ToBytes=t.randomBytes=t.isBytes=t.hexToBytes=t.concatBytes=t.bytesToUtf8=t.bytesToHex=t.anumber=t.abytes=void 0,t.abool=function(e,t){if("boolean"!=typeof t)throw new Error(e+" boolean expected, got "+t)},t._abool2=function(e,t=""){if("boolean"!=typeof e){throw new Error((t&&`"${t}"`)+"expected boolean, got type="+typeof e)}return e},t._abytes2=function(e,t,r=""){const n=(0,o.isBytes)(e),a=e?.length,i=void 0!==t;if(!n||i&&a!==t){throw new Error((r&&`"${r}" `)+"expected Uint8Array"+(i?` of length ${t}`:"")+", got "+(n?`length=${a}`:"type="+typeof e))}return e},t.numberToHexUnpadded=s,t.hexToNumber=c,t.bytesToNumberBE=function(e){return c((0,o.bytesToHex)(e))},t.bytesToNumberLE=function(e){return(0,o.abytes)(e),c((0,o.bytesToHex)(Uint8Array.from(e).reverse()))},t.numberToBytesBE=l,t.numberToBytesLE=function(e,t){return l(e,t).reverse()},t.numberToVarBytesBE=function(e){return(0,o.hexToBytes)(s(e))},t.ensureBytes=function(e,t,r){let n;if("string"==typeof t)try{n=(0,o.hexToBytes)(t)}catch(t){throw new Error(e+" must be hex string or Uint8Array, cause: "+t)}else{if(!(0,o.isBytes)(t))throw new Error(e+" must be hex string or Uint8Array");n=Uint8Array.from(t)}const a=n.length;if("number"==typeof r&&a!==r)throw new Error(e+" of length "+r+" expected, got "+a);return n},t.equalBytes=function(e,t){if(e.length!==t.length)return!1;let r=0;for(let o=0;o<e.length;o++)r|=e[o]^t[o];return 0===r},t.copyBytes=function(e){return Uint8Array.from(e)},t.asciiToBytes=function(e){return Uint8Array.from(e,(t,r)=>{const o=t.charCodeAt(0);if(1!==t.length||o>127)throw new Error(`string contains non-ASCII character "${e[r]}" with code ${o} at position ${r}`);return o})},t.inRange=f,t.aInRange=function(e,t,r,o){if(!f(t,r,o))throw new Error("expected valid "+e+": "+r+" <= n < "+o+", got "+t)},t.bitLen=function(e){let t;for(t=0;e>a;e>>=i,t+=1);return t},t.bitGet=function(e,t){return e>>BigInt(t)&i},t.bitSet=function(e,t,r){return e|(r?i:a)<<BigInt(t)},t.createHmacDrbg=function(e,t,r){if("number"!=typeof e||e<2)throw new Error("hashLen must be a number");if("number"!=typeof t||t<2)throw new Error("qByteLen must be a number");if("function"!=typeof r)throw new Error("hmacFn must be a function");const n=e=>new Uint8Array(e),a=e=>Uint8Array.of(e);let i=n(e),s=n(e),c=0;const l=()=>{i.fill(1),s.fill(0),c=0},u=(...e)=>r(s,i,...e),f=(e=n(0))=>{s=u(a(0),e),i=u(),0!==e.length&&(s=u(a(1),e),i=u())},d=()=>{if(c++>=1e3)throw new Error("drbg: tried 1000 values");let e=0;const r=[];for(;e<t;){i=u();const t=i.slice();r.push(t),e+=i.length}return(0,o.concatBytes)(...r)};return(e,t)=>{let r;for(l(),f(e);!(r=t(d()));)f();return l(),r}},t.validateObject=function(e,t,r={}){const o=(t,r,o)=>{const n=d[r];if("function"!=typeof n)throw new Error("invalid validator function");const a=e[t];if(!(o&&void 0===a||n(a,e)))throw new Error("param "+String(t)+" is invalid. Expected "+r+", got "+a)};for(const[e,r]of Object.entries(t))o(e,r,!1);for(const[e,t]of Object.entries(r))o(e,t,!0);return e},t.isHash=function(e){return"function"==typeof e&&Number.isSafeInteger(e.outputLen)},t._validateObject=function(e,t,r={}){if(!e||"object"!=typeof e)throw new Error("expected valid options object");function o(t,r,o){const n=e[t];if(o&&void 0===n)return;const a=typeof n;if(a!==r||null===n)throw new Error(`param "${t}" is invalid: expected ${r}, got ${a}`)}Object.entries(t).forEach(([e,t])=>o(e,t,!1)),Object.entries(r).forEach(([e,t])=>o(e,t,!0))},t.memoized=function(e){const t=new WeakMap;return(r,...o)=>{const n=t.get(r);if(void 0!==n)return n;const a=e(r,...o);return t.set(r,a),a}};
|
|
53
|
+
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
54
|
+
const o=r(4904);var n=r(4904);Object.defineProperty(t,"abytes",{enumerable:!0,get:function(){return n.abytes}}),Object.defineProperty(t,"anumber",{enumerable:!0,get:function(){return n.anumber}}),Object.defineProperty(t,"bytesToHex",{enumerable:!0,get:function(){return n.bytesToHex}}),Object.defineProperty(t,"bytesToUtf8",{enumerable:!0,get:function(){return n.bytesToUtf8}}),Object.defineProperty(t,"concatBytes",{enumerable:!0,get:function(){return n.concatBytes}}),Object.defineProperty(t,"hexToBytes",{enumerable:!0,get:function(){return n.hexToBytes}}),Object.defineProperty(t,"isBytes",{enumerable:!0,get:function(){return n.isBytes}}),Object.defineProperty(t,"randomBytes",{enumerable:!0,get:function(){return n.randomBytes}}),Object.defineProperty(t,"utf8ToBytes",{enumerable:!0,get:function(){return n.utf8ToBytes}});const a=BigInt(0),i=BigInt(1);function s(e){const t=e.toString(16);return 1&t.length?"0"+t:t}function c(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);return""===e?a:BigInt("0x"+e)}function l(e,t){return(0,o.hexToBytes)(e.toString(16).padStart(2*t,"0"))}const u=e=>"bigint"==typeof e&&a<=e;function f(e,t,r){return u(e)&&u(t)&&u(r)&&t<=e&&e<r}t.bitMask=e=>(i<<BigInt(e))-i;const d={bigint:e=>"bigint"==typeof e,function:e=>"function"==typeof e,boolean:e=>"boolean"==typeof e,string:e=>"string"==typeof e,stringOrUint8Array:e=>"string"==typeof e||(0,o.isBytes)(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"==typeof e&&Number.isSafeInteger(e.outputLen)};t.notImplemented=()=>{throw new Error("not implemented")}},7837:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.polyval=t.ghash=void 0,t._toGHASHKey=l;const o=r(4266),n=16,a=new Uint8Array(16),i=(0,o.u32)(a),s=(e,t,r,o)=>({s3:r<<31|o>>>1,s2:t<<31|r>>>1,s1:e<<31|t>>>1,s0:e>>>1^225<<24&-(1&(1&o))}),c=e=>(e>>>0&255)<<24|(e>>>8&255)<<16|(e>>>16&255)<<8|e>>>24&255;function l(e){e.reverse();const t=1&e[15];let r=0;for(let t=0;t<e.length;t++){const o=e[t];e[t]=o>>>1|r,r=(1&o)<<7}return e[0]^=225&-t,e}class u{constructor(e,t){this.blockLen=n,this.outputLen=n,this.s0=0,this.s1=0,this.s2=0,this.s3=0,this.finished=!1,e=(0,o.toBytes)(e),(0,o.abytes)(e,16);const r=(0,o.createView)(e);let a=r.getUint32(0,!1),i=r.getUint32(4,!1),l=r.getUint32(8,!1),u=r.getUint32(12,!1);const f=[];for(let e=0;e<128;e++)f.push({s0:c(a),s1:c(i),s2:c(l),s3:c(u)}),({s0:a,s1:i,s2:l,s3:u}=s(a,i,l,u));const d=(h=t||1024)>65536?8:h>1024?4:2;var h;if(![1,2,4,8].includes(d))throw new Error("ghash: invalid window size, expected 2, 4 or 8");this.W=d;const p=128/d,g=this.windowSize=2**d,m=[];for(let e=0;e<p;e++)for(let t=0;t<g;t++){let r=0,o=0,n=0,a=0;for(let i=0;i<d;i++){if(!(t>>>d-i-1&1))continue;const{s0:s,s1:c,s2:l,s3:u}=f[d*e+i];r^=s,o^=c,n^=l,a^=u}m.push({s0:r,s1:o,s2:n,s3:a})}this.t=m}_updateBlock(e,t,r,o){e^=this.s0,t^=this.s1,r^=this.s2,o^=this.s3;const{W:n,t:a,windowSize:i}=this;let s=0,c=0,l=0,u=0;const f=(1<<n)-1;let d=0;for(const h of[e,t,r,o])for(let e=0;e<4;e++){const t=h>>>8*e&255;for(let e=8/n-1;e>=0;e--){const r=t>>>n*e&f,{s0:o,s1:h,s2:p,s3:g}=a[d*i+r];s^=o,c^=h,l^=p,u^=g,d+=1}}this.s0=s,this.s1=c,this.s2=l,this.s3=u}update(e){(0,o.aexists)(this),e=(0,o.toBytes)(e),(0,o.abytes)(e);const t=(0,o.u32)(e),r=Math.floor(e.length/n),s=e.length%n;for(let e=0;e<r;e++)this._updateBlock(t[4*e+0],t[4*e+1],t[4*e+2],t[4*e+3]);return s&&(a.set(e.subarray(r*n)),this._updateBlock(i[0],i[1],i[2],i[3]),(0,o.clean)(i)),this}destroy(){const{t:e}=this;for(const t of e)t.s0=0,t.s1=0,t.s2=0,t.s3=0}digestInto(e){(0,o.aexists)(this),(0,o.aoutput)(e,this),this.finished=!0;const{s0:t,s1:r,s2:n,s3:a}=this,i=(0,o.u32)(e);return i[0]=t,i[1]=r,i[2]=n,i[3]=a,e}digest(){const e=new Uint8Array(n);return this.digestInto(e),this.destroy(),e}}class f extends u{constructor(e,t){e=(0,o.toBytes)(e),(0,o.abytes)(e);const r=l((0,o.copyBytes)(e));super(r,t),(0,o.clean)(r)}update(e){e=(0,o.toBytes)(e),(0,o.aexists)(this);const t=(0,o.u32)(e),r=e.length%n,s=Math.floor(e.length/n);for(let e=0;e<s;e++)this._updateBlock(c(t[4*e+3]),c(t[4*e+2]),c(t[4*e+1]),c(t[4*e+0]));return r&&(a.set(e.subarray(s*n)),this._updateBlock(c(i[3]),c(i[2]),c(i[1]),c(i[0])),(0,o.clean)(i)),this}digestInto(e){(0,o.aexists)(this),(0,o.aoutput)(e,this),this.finished=!0;const{s0:t,s1:r,s2:n,s3:a}=this,i=(0,o.u32)(e);return i[0]=t,i[1]=r,i[2]=n,i[3]=a,e.reverse()}}function d(e){const t=(t,r)=>e(r,t.length).update((0,o.toBytes)(t)).digest(),r=e(new Uint8Array(16),0);return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=(t,r)=>e(t,r),t}t.ghash=d((e,t)=>new u(e,t)),t.polyval=d((e,t)=>new f(e,t))},7961:(e,t)=>{"use strict";t.byteLength=function(e){var t=s(e),r=t[0],o=t[1];return 3*(r+o)/4-o},t.toByteArray=function(e){var t,r,a=s(e),i=a[0],c=a[1],l=new n(function(e,t,r){return 3*(t+r)/4-r}(0,i,c)),u=0,f=c>0?i-4:i;for(r=0;r<f;r+=4)t=o[e.charCodeAt(r)]<<18|o[e.charCodeAt(r+1)]<<12|o[e.charCodeAt(r+2)]<<6|o[e.charCodeAt(r+3)],l[u++]=t>>16&255,l[u++]=t>>8&255,l[u++]=255&t;2===c&&(t=o[e.charCodeAt(r)]<<2|o[e.charCodeAt(r+1)]>>4,l[u++]=255&t);1===c&&(t=o[e.charCodeAt(r)]<<10|o[e.charCodeAt(r+1)]<<4|o[e.charCodeAt(r+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t);return l},t.fromByteArray=function(e){for(var t,o=e.length,n=o%3,a=[],i=16383,s=0,c=o-n;s<c;s+=i)a.push(l(e,s,s+i>c?c:s+i));1===n?(t=e[o-1],a.push(r[t>>2]+r[t<<4&63]+"==")):2===n&&(t=(e[o-2]<<8)+e[o-1],a.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return a.join("")};for(var r=[],o=[],n="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0;i<64;++i)r[i]=a[i],o[a.charCodeAt(i)]=i;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function c(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function l(e,t,r){for(var o,n=[],a=t;a<r;a+=3)o=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),n.push(c(o));return n.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},7967:e=>{"use strict";e.exports=JSON.parse('["あいこくしん","あいさつ","あいだ","あおぞら","あかちゃん","あきる","あけがた","あける","あこがれる","あさい","あさひ","あしあと","あじわう","あずかる","あずき","あそぶ","あたえる","あたためる","あたりまえ","あたる","あつい","あつかう","あっしゅく","あつまり","あつめる","あてな","あてはまる","あひる","あぶら","あぶる","あふれる","あまい","あまど","あまやかす","あまり","あみもの","あめりか","あやまる","あゆむ","あらいぐま","あらし","あらすじ","あらためる","あらゆる","あらわす","ありがとう","あわせる","あわてる","あんい","あんがい","あんこ","あんぜん","あんてい","あんない","あんまり","いいだす","いおん","いがい","いがく","いきおい","いきなり","いきもの","いきる","いくじ","いくぶん","いけばな","いけん","いこう","いこく","いこつ","いさましい","いさん","いしき","いじゅう","いじょう","いじわる","いずみ","いずれ","いせい","いせえび","いせかい","いせき","いぜん","いそうろう","いそがしい","いだい","いだく","いたずら","いたみ","いたりあ","いちおう","いちじ","いちど","いちば","いちぶ","いちりゅう","いつか","いっしゅん","いっせい","いっそう","いったん","いっち","いってい","いっぽう","いてざ","いてん","いどう","いとこ","いない","いなか","いねむり","いのち","いのる","いはつ","いばる","いはん","いびき","いひん","いふく","いへん","いほう","いみん","いもうと","いもたれ","いもり","いやがる","いやす","いよかん","いよく","いらい","いらすと","いりぐち","いりょう","いれい","いれもの","いれる","いろえんぴつ","いわい","いわう","いわかん","いわば","いわゆる","いんげんまめ","いんさつ","いんしょう","いんよう","うえき","うえる","うおざ","うがい","うかぶ","うかべる","うきわ","うくらいな","うくれれ","うけたまわる","うけつけ","うけとる","うけもつ","うける","うごかす","うごく","うこん","うさぎ","うしなう","うしろがみ","うすい","うすぎ","うすぐらい","うすめる","うせつ","うちあわせ","うちがわ","うちき","うちゅう","うっかり","うつくしい","うったえる","うつる","うどん","うなぎ","うなじ","うなずく","うなる","うねる","うのう","うぶげ","うぶごえ","うまれる","うめる","うもう","うやまう","うよく","うらがえす","うらぐち","うらない","うりあげ","うりきれ","うるさい","うれしい","うれゆき","うれる","うろこ","うわき","うわさ","うんこう","うんちん","うんてん","うんどう","えいえん","えいが","えいきょう","えいご","えいせい","えいぶん","えいよう","えいわ","えおり","えがお","えがく","えきたい","えくせる","えしゃく","えすて","えつらん","えのぐ","えほうまき","えほん","えまき","えもじ","えもの","えらい","えらぶ","えりあ","えんえん","えんかい","えんぎ","えんげき","えんしゅう","えんぜつ","えんそく","えんちょう","えんとつ","おいかける","おいこす","おいしい","おいつく","おうえん","おうさま","おうじ","おうせつ","おうたい","おうふく","おうべい","おうよう","おえる","おおい","おおう","おおどおり","おおや","おおよそ","おかえり","おかず","おがむ","おかわり","おぎなう","おきる","おくさま","おくじょう","おくりがな","おくる","おくれる","おこす","おこなう","おこる","おさえる","おさない","おさめる","おしいれ","おしえる","おじぎ","おじさん","おしゃれ","おそらく","おそわる","おたがい","おたく","おだやか","おちつく","おっと","おつり","おでかけ","おとしもの","おとなしい","おどり","おどろかす","おばさん","おまいり","おめでとう","おもいで","おもう","おもたい","おもちゃ","おやつ","おやゆび","およぼす","おらんだ","おろす","おんがく","おんけい","おんしゃ","おんせん","おんだん","おんちゅう","おんどけい","かあつ","かいが","がいき","がいけん","がいこう","かいさつ","かいしゃ","かいすいよく","かいぜん","かいぞうど","かいつう","かいてん","かいとう","かいふく","がいへき","かいほう","かいよう","がいらい","かいわ","かえる","かおり","かかえる","かがく","かがし","かがみ","かくご","かくとく","かざる","がぞう","かたい","かたち","がちょう","がっきゅう","がっこう","がっさん","がっしょう","かなざわし","かのう","がはく","かぶか","かほう","かほご","かまう","かまぼこ","かめれおん","かゆい","かようび","からい","かるい","かろう","かわく","かわら","がんか","かんけい","かんこう","かんしゃ","かんそう","かんたん","かんち","がんばる","きあい","きあつ","きいろ","ぎいん","きうい","きうん","きえる","きおう","きおく","きおち","きおん","きかい","きかく","きかんしゃ","ききて","きくばり","きくらげ","きけんせい","きこう","きこえる","きこく","きさい","きさく","きさま","きさらぎ","ぎじかがく","ぎしき","ぎじたいけん","ぎじにってい","ぎじゅつしゃ","きすう","きせい","きせき","きせつ","きそう","きぞく","きぞん","きたえる","きちょう","きつえん","ぎっちり","きつつき","きつね","きてい","きどう","きどく","きない","きなが","きなこ","きぬごし","きねん","きのう","きのした","きはく","きびしい","きひん","きふく","きぶん","きぼう","きほん","きまる","きみつ","きむずかしい","きめる","きもだめし","きもち","きもの","きゃく","きやく","ぎゅうにく","きよう","きょうりゅう","きらい","きらく","きりん","きれい","きれつ","きろく","ぎろん","きわめる","ぎんいろ","きんかくじ","きんじょ","きんようび","ぐあい","くいず","くうかん","くうき","くうぐん","くうこう","ぐうせい","くうそう","ぐうたら","くうふく","くうぼ","くかん","くきょう","くげん","ぐこう","くさい","くさき","くさばな","くさる","くしゃみ","くしょう","くすのき","くすりゆび","くせげ","くせん","ぐたいてき","くださる","くたびれる","くちこみ","くちさき","くつした","ぐっすり","くつろぐ","くとうてん","くどく","くなん","くねくね","くのう","くふう","くみあわせ","くみたてる","くめる","くやくしょ","くらす","くらべる","くるま","くれる","くろう","くわしい","ぐんかん","ぐんしょく","ぐんたい","ぐんて","けあな","けいかく","けいけん","けいこ","けいさつ","げいじゅつ","けいたい","げいのうじん","けいれき","けいろ","けおとす","けおりもの","げきか","げきげん","げきだん","げきちん","げきとつ","げきは","げきやく","げこう","げこくじょう","げざい","けさき","げざん","けしき","けしごむ","けしょう","げすと","けたば","けちゃっぷ","けちらす","けつあつ","けつい","けつえき","けっこん","けつじょ","けっせき","けってい","けつまつ","げつようび","げつれい","けつろん","げどく","けとばす","けとる","けなげ","けなす","けなみ","けぬき","げねつ","けねん","けはい","げひん","けぶかい","げぼく","けまり","けみかる","けむし","けむり","けもの","けらい","けろけろ","けわしい","けんい","けんえつ","けんお","けんか","げんき","けんげん","けんこう","けんさく","けんしゅう","けんすう","げんそう","けんちく","けんてい","けんとう","けんない","けんにん","げんぶつ","けんま","けんみん","けんめい","けんらん","けんり","こあくま","こいぬ","こいびと","ごうい","こうえん","こうおん","こうかん","ごうきゅう","ごうけい","こうこう","こうさい","こうじ","こうすい","ごうせい","こうそく","こうたい","こうちゃ","こうつう","こうてい","こうどう","こうない","こうはい","ごうほう","ごうまん","こうもく","こうりつ","こえる","こおり","ごかい","ごがつ","ごかん","こくご","こくさい","こくとう","こくない","こくはく","こぐま","こけい","こける","ここのか","こころ","こさめ","こしつ","こすう","こせい","こせき","こぜん","こそだて","こたい","こたえる","こたつ","こちょう","こっか","こつこつ","こつばん","こつぶ","こてい","こてん","ことがら","ことし","ことば","ことり","こなごな","こねこね","このまま","このみ","このよ","ごはん","こひつじ","こふう","こふん","こぼれる","ごまあぶら","こまかい","ごますり","こまつな","こまる","こむぎこ","こもじ","こもち","こもの","こもん","こやく","こやま","こゆう","こゆび","こよい","こよう","こりる","これくしょん","ころっけ","こわもて","こわれる","こんいん","こんかい","こんき","こんしゅう","こんすい","こんだて","こんとん","こんなん","こんびに","こんぽん","こんまけ","こんや","こんれい","こんわく","ざいえき","さいかい","さいきん","ざいげん","ざいこ","さいしょ","さいせい","ざいたく","ざいちゅう","さいてき","ざいりょう","さうな","さかいし","さがす","さかな","さかみち","さがる","さぎょう","さくし","さくひん","さくら","さこく","さこつ","さずかる","ざせき","さたん","さつえい","ざつおん","ざっか","ざつがく","さっきょく","ざっし","さつじん","ざっそう","さつたば","さつまいも","さてい","さといも","さとう","さとおや","さとし","さとる","さのう","さばく","さびしい","さべつ","さほう","さほど","さます","さみしい","さみだれ","さむけ","さめる","さやえんどう","さゆう","さよう","さよく","さらだ","ざるそば","さわやか","さわる","さんいん","さんか","さんきゃく","さんこう","さんさい","ざんしょ","さんすう","さんせい","さんそ","さんち","さんま","さんみ","さんらん","しあい","しあげ","しあさって","しあわせ","しいく","しいん","しうち","しえい","しおけ","しかい","しかく","じかん","しごと","しすう","じだい","したうけ","したぎ","したて","したみ","しちょう","しちりん","しっかり","しつじ","しつもん","してい","してき","してつ","じてん","じどう","しなぎれ","しなもの","しなん","しねま","しねん","しのぐ","しのぶ","しはい","しばかり","しはつ","しはらい","しはん","しひょう","しふく","じぶん","しへい","しほう","しほん","しまう","しまる","しみん","しむける","じむしょ","しめい","しめる","しもん","しゃいん","しゃうん","しゃおん","じゃがいも","しやくしょ","しゃくほう","しゃけん","しゃこ","しゃざい","しゃしん","しゃせん","しゃそう","しゃたい","しゃちょう","しゃっきん","じゃま","しゃりん","しゃれい","じゆう","じゅうしょ","しゅくはく","じゅしん","しゅっせき","しゅみ","しゅらば","じゅんばん","しょうかい","しょくたく","しょっけん","しょどう","しょもつ","しらせる","しらべる","しんか","しんこう","じんじゃ","しんせいじ","しんちく","しんりん","すあげ","すあし","すあな","ずあん","すいえい","すいか","すいとう","ずいぶん","すいようび","すうがく","すうじつ","すうせん","すおどり","すきま","すくう","すくない","すける","すごい","すこし","ずさん","すずしい","すすむ","すすめる","すっかり","ずっしり","ずっと","すてき","すてる","すねる","すのこ","すはだ","すばらしい","ずひょう","ずぶぬれ","すぶり","すふれ","すべて","すべる","ずほう","すぼん","すまい","すめし","すもう","すやき","すらすら","するめ","すれちがう","すろっと","すわる","すんぜん","すんぽう","せあぶら","せいかつ","せいげん","せいじ","せいよう","せおう","せかいかん","せきにん","せきむ","せきゆ","せきらんうん","せけん","せこう","せすじ","せたい","せたけ","せっかく","せっきゃく","ぜっく","せっけん","せっこつ","せっさたくま","せつぞく","せつだん","せつでん","せっぱん","せつび","せつぶん","せつめい","せつりつ","せなか","せのび","せはば","せびろ","せぼね","せまい","せまる","せめる","せもたれ","せりふ","ぜんあく","せんい","せんえい","せんか","せんきょ","せんく","せんげん","ぜんご","せんさい","せんしゅ","せんすい","せんせい","せんぞ","せんたく","せんちょう","せんてい","せんとう","せんぬき","せんねん","せんぱい","ぜんぶ","ぜんぽう","せんむ","せんめんじょ","せんもん","せんやく","せんゆう","せんよう","ぜんら","ぜんりゃく","せんれい","せんろ","そあく","そいとげる","そいね","そうがんきょう","そうき","そうご","そうしん","そうだん","そうなん","そうび","そうめん","そうり","そえもの","そえん","そがい","そげき","そこう","そこそこ","そざい","そしな","そせい","そせん","そそぐ","そだてる","そつう","そつえん","そっかん","そつぎょう","そっけつ","そっこう","そっせん","そっと","そとがわ","そとづら","そなえる","そなた","そふぼ","そぼく","そぼろ","そまつ","そまる","そむく","そむりえ","そめる","そもそも","そよかぜ","そらまめ","そろう","そんかい","そんけい","そんざい","そんしつ","そんぞく","そんちょう","ぞんび","ぞんぶん","そんみん","たあい","たいいん","たいうん","たいえき","たいおう","だいがく","たいき","たいぐう","たいけん","たいこ","たいざい","だいじょうぶ","だいすき","たいせつ","たいそう","だいたい","たいちょう","たいてい","だいどころ","たいない","たいねつ","たいのう","たいはん","だいひょう","たいふう","たいへん","たいほ","たいまつばな","たいみんぐ","たいむ","たいめん","たいやき","たいよう","たいら","たいりょく","たいる","たいわん","たうえ","たえる","たおす","たおる","たおれる","たかい","たかね","たきび","たくさん","たこく","たこやき","たさい","たしざん","だじゃれ","たすける","たずさわる","たそがれ","たたかう","たたく","ただしい","たたみ","たちばな","だっかい","だっきゃく","だっこ","だっしゅつ","だったい","たてる","たとえる","たなばた","たにん","たぬき","たのしみ","たはつ","たぶん","たべる","たぼう","たまご","たまる","だむる","ためいき","ためす","ためる","たもつ","たやすい","たよる","たらす","たりきほんがん","たりょう","たりる","たると","たれる","たれんと","たろっと","たわむれる","だんあつ","たんい","たんおん","たんか","たんき","たんけん","たんご","たんさん","たんじょうび","だんせい","たんそく","たんたい","だんち","たんてい","たんとう","だんな","たんにん","だんねつ","たんのう","たんぴん","だんぼう","たんまつ","たんめい","だんれつ","だんろ","だんわ","ちあい","ちあん","ちいき","ちいさい","ちえん","ちかい","ちから","ちきゅう","ちきん","ちけいず","ちけん","ちこく","ちさい","ちしき","ちしりょう","ちせい","ちそう","ちたい","ちたん","ちちおや","ちつじょ","ちてき","ちてん","ちぬき","ちぬり","ちのう","ちひょう","ちへいせん","ちほう","ちまた","ちみつ","ちみどろ","ちめいど","ちゃんこなべ","ちゅうい","ちゆりょく","ちょうし","ちょさくけん","ちらし","ちらみ","ちりがみ","ちりょう","ちるど","ちわわ","ちんたい","ちんもく","ついか","ついたち","つうか","つうじょう","つうはん","つうわ","つかう","つかれる","つくね","つくる","つけね","つける","つごう","つたえる","つづく","つつじ","つつむ","つとめる","つながる","つなみ","つねづね","つのる","つぶす","つまらない","つまる","つみき","つめたい","つもり","つもる","つよい","つるぼ","つるみく","つわもの","つわり","てあし","てあて","てあみ","ていおん","ていか","ていき","ていけい","ていこく","ていさつ","ていし","ていせい","ていたい","ていど","ていねい","ていひょう","ていへん","ていぼう","てうち","ておくれ","てきとう","てくび","でこぼこ","てさぎょう","てさげ","てすり","てそう","てちがい","てちょう","てつがく","てつづき","でっぱ","てつぼう","てつや","でぬかえ","てぬき","てぬぐい","てのひら","てはい","てぶくろ","てふだ","てほどき","てほん","てまえ","てまきずし","てみじか","てみやげ","てらす","てれび","てわけ","てわたし","でんあつ","てんいん","てんかい","てんき","てんぐ","てんけん","てんごく","てんさい","てんし","てんすう","でんち","てんてき","てんとう","てんない","てんぷら","てんぼうだい","てんめつ","てんらんかい","でんりょく","でんわ","どあい","といれ","どうかん","とうきゅう","どうぐ","とうし","とうむぎ","とおい","とおか","とおく","とおす","とおる","とかい","とかす","ときおり","ときどき","とくい","とくしゅう","とくてん","とくに","とくべつ","とけい","とける","とこや","とさか","としょかん","とそう","とたん","とちゅう","とっきゅう","とっくん","とつぜん","とつにゅう","とどける","ととのえる","とない","となえる","となり","とのさま","とばす","どぶがわ","とほう","とまる","とめる","ともだち","ともる","どようび","とらえる","とんかつ","どんぶり","ないかく","ないこう","ないしょ","ないす","ないせん","ないそう","なおす","ながい","なくす","なげる","なこうど","なさけ","なたでここ","なっとう","なつやすみ","ななおし","なにごと","なにもの","なにわ","なのか","なふだ","なまいき","なまえ","なまみ","なみだ","なめらか","なめる","なやむ","ならう","ならび","ならぶ","なれる","なわとび","なわばり","にあう","にいがた","にうけ","におい","にかい","にがて","にきび","にくしみ","にくまん","にげる","にさんかたんそ","にしき","にせもの","にちじょう","にちようび","にっか","にっき","にっけい","にっこう","にっさん","にっしょく","にっすう","にっせき","にってい","になう","にほん","にまめ","にもつ","にやり","にゅういん","にりんしゃ","にわとり","にんい","にんか","にんき","にんげん","にんしき","にんずう","にんそう","にんたい","にんち","にんてい","にんにく","にんぷ","にんまり","にんむ","にんめい","にんよう","ぬいくぎ","ぬかす","ぬぐいとる","ぬぐう","ぬくもり","ぬすむ","ぬまえび","ぬめり","ぬらす","ぬんちゃく","ねあげ","ねいき","ねいる","ねいろ","ねぐせ","ねくたい","ねくら","ねこぜ","ねこむ","ねさげ","ねすごす","ねそべる","ねだん","ねつい","ねっしん","ねつぞう","ねったいぎょ","ねぶそく","ねふだ","ねぼう","ねほりはほり","ねまき","ねまわし","ねみみ","ねむい","ねむたい","ねもと","ねらう","ねわざ","ねんいり","ねんおし","ねんかん","ねんきん","ねんぐ","ねんざ","ねんし","ねんちゃく","ねんど","ねんぴ","ねんぶつ","ねんまつ","ねんりょう","ねんれい","のいず","のおづま","のがす","のきなみ","のこぎり","のこす","のこる","のせる","のぞく","のぞむ","のたまう","のちほど","のっく","のばす","のはら","のべる","のぼる","のみもの","のやま","のらいぬ","のらねこ","のりもの","のりゆき","のれん","のんき","ばあい","はあく","ばあさん","ばいか","ばいく","はいけん","はいご","はいしん","はいすい","はいせん","はいそう","はいち","ばいばい","はいれつ","はえる","はおる","はかい","ばかり","はかる","はくしゅ","はけん","はこぶ","はさみ","はさん","はしご","ばしょ","はしる","はせる","ぱそこん","はそん","はたん","はちみつ","はつおん","はっかく","はづき","はっきり","はっくつ","はっけん","はっこう","はっさん","はっしん","はったつ","はっちゅう","はってん","はっぴょう","はっぽう","はなす","はなび","はにかむ","はぶらし","はみがき","はむかう","はめつ","はやい","はやし","はらう","はろうぃん","はわい","はんい","はんえい","はんおん","はんかく","はんきょう","ばんぐみ","はんこ","はんしゃ","はんすう","はんだん","ぱんち","ぱんつ","はんてい","はんとし","はんのう","はんぱ","はんぶん","はんぺん","はんぼうき","はんめい","はんらん","はんろん","ひいき","ひうん","ひえる","ひかく","ひかり","ひかる","ひかん","ひくい","ひけつ","ひこうき","ひこく","ひさい","ひさしぶり","ひさん","びじゅつかん","ひしょ","ひそか","ひそむ","ひたむき","ひだり","ひたる","ひつぎ","ひっこし","ひっし","ひつじゅひん","ひっす","ひつぜん","ぴったり","ぴっちり","ひつよう","ひてい","ひとごみ","ひなまつり","ひなん","ひねる","ひはん","ひびく","ひひょう","ひほう","ひまわり","ひまん","ひみつ","ひめい","ひめじし","ひやけ","ひやす","ひよう","びょうき","ひらがな","ひらく","ひりつ","ひりょう","ひるま","ひるやすみ","ひれい","ひろい","ひろう","ひろき","ひろゆき","ひんかく","ひんけつ","ひんこん","ひんしゅ","ひんそう","ぴんち","ひんぱん","びんぼう","ふあん","ふいうち","ふうけい","ふうせん","ぷうたろう","ふうとう","ふうふ","ふえる","ふおん","ふかい","ふきん","ふくざつ","ふくぶくろ","ふこう","ふさい","ふしぎ","ふじみ","ふすま","ふせい","ふせぐ","ふそく","ぶたにく","ふたん","ふちょう","ふつう","ふつか","ふっかつ","ふっき","ふっこく","ぶどう","ふとる","ふとん","ふのう","ふはい","ふひょう","ふへん","ふまん","ふみん","ふめつ","ふめん","ふよう","ふりこ","ふりる","ふるい","ふんいき","ぶんがく","ぶんぐ","ふんしつ","ぶんせき","ふんそう","ぶんぽう","へいあん","へいおん","へいがい","へいき","へいげん","へいこう","へいさ","へいしゃ","へいせつ","へいそ","へいたく","へいてん","へいねつ","へいわ","へきが","へこむ","べにいろ","べにしょうが","へらす","へんかん","べんきょう","べんごし","へんさい","へんたい","べんり","ほあん","ほいく","ぼうぎょ","ほうこく","ほうそう","ほうほう","ほうもん","ほうりつ","ほえる","ほおん","ほかん","ほきょう","ぼきん","ほくろ","ほけつ","ほけん","ほこう","ほこる","ほしい","ほしつ","ほしゅ","ほしょう","ほせい","ほそい","ほそく","ほたて","ほたる","ぽちぶくろ","ほっきょく","ほっさ","ほったん","ほとんど","ほめる","ほんい","ほんき","ほんけ","ほんしつ","ほんやく","まいにち","まかい","まかせる","まがる","まける","まこと","まさつ","まじめ","ますく","まぜる","まつり","まとめ","まなぶ","まぬけ","まねく","まほう","まもる","まゆげ","まよう","まろやか","まわす","まわり","まわる","まんが","まんきつ","まんぞく","まんなか","みいら","みうち","みえる","みがく","みかた","みかん","みけん","みこん","みじかい","みすい","みすえる","みせる","みっか","みつかる","みつける","みてい","みとめる","みなと","みなみかさい","みねらる","みのう","みのがす","みほん","みもと","みやげ","みらい","みりょく","みわく","みんか","みんぞく","むいか","むえき","むえん","むかい","むかう","むかえ","むかし","むぎちゃ","むける","むげん","むさぼる","むしあつい","むしば","むじゅん","むしろ","むすう","むすこ","むすぶ","むすめ","むせる","むせん","むちゅう","むなしい","むのう","むやみ","むよう","むらさき","むりょう","むろん","めいあん","めいうん","めいえん","めいかく","めいきょく","めいさい","めいし","めいそう","めいぶつ","めいれい","めいわく","めぐまれる","めざす","めした","めずらしい","めだつ","めまい","めやす","めんきょ","めんせき","めんどう","もうしあげる","もうどうけん","もえる","もくし","もくてき","もくようび","もちろん","もどる","もらう","もんく","もんだい","やおや","やける","やさい","やさしい","やすい","やすたろう","やすみ","やせる","やそう","やたい","やちん","やっと","やっぱり","やぶる","やめる","ややこしい","やよい","やわらかい","ゆうき","ゆうびんきょく","ゆうべ","ゆうめい","ゆけつ","ゆしゅつ","ゆせん","ゆそう","ゆたか","ゆちゃく","ゆでる","ゆにゅう","ゆびわ","ゆらい","ゆれる","ようい","ようか","ようきゅう","ようじ","ようす","ようちえん","よかぜ","よかん","よきん","よくせい","よくぼう","よけい","よごれる","よさん","よしゅう","よそう","よそく","よっか","よてい","よどがわく","よねつ","よやく","よゆう","よろこぶ","よろしい","らいう","らくがき","らくご","らくさつ","らくだ","らしんばん","らせん","らぞく","らたい","らっか","られつ","りえき","りかい","りきさく","りきせつ","りくぐん","りくつ","りけん","りこう","りせい","りそう","りそく","りてん","りねん","りゆう","りゅうがく","りよう","りょうり","りょかん","りょくちゃ","りょこう","りりく","りれき","りろん","りんご","るいけい","るいさい","るいじ","るいせき","るすばん","るりがわら","れいかん","れいぎ","れいせい","れいぞうこ","れいとう","れいぼう","れきし","れきだい","れんあい","れんけい","れんこん","れんさい","れんしゅう","れんぞく","れんらく","ろうか","ろうご","ろうじん","ろうそく","ろくが","ろこつ","ろじうら","ろしゅつ","ろせん","ろてん","ろめん","ろれつ","ろんぎ","ろんぱ","ろんぶん","ろんり","わかす","わかめ","わかやま","わかれる","わしつ","わじまし","わすれもの","わらう","われる"]')},7983:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hmac=t.HMAC=void 0;const o=r(8629),n=r(791);class a extends n.Hash{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,(0,o.hash)(e);const r=(0,n.toBytes)(t);if(this.iHash=e.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const a=this.blockLen,i=new Uint8Array(a);i.set(r.length>a?e.create().update(r).digest():r);for(let e=0;e<i.length;e++)i[e]^=54;this.iHash.update(i),this.oHash=e.create();for(let e=0;e<i.length;e++)i[e]^=106;this.oHash.update(i),i.fill(0)}update(e){return(0,o.exists)(this),this.iHash.update(e),this}digestInto(e){(0,o.exists)(this),(0,o.bytes)(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){const e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));const{oHash:t,iHash:r,finished:o,destroyed:n,blockLen:a,outputLen:i}=this;return e.finished=o,e.destroyed=n,e.blockLen=a,e.outputLen=i,e.oHash=t._cloneInto(e.oHash),e.iHash=r._cloneInto(e.iHash),e}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}t.HMAC=a;t.hmac=(e,t,r)=>new a(e,t).update(r).digest(),t.hmac.create=(e,t)=>new a(e,t)},7991:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertPrivate=t.assertNormalize=t.assertArgumentCount=t.assertArgument=t.assert=t.makeError=t.isCallException=t.isError=void 0;const o=r(5197),n=r(5213);function a(e,t){if(null==e)return"null";if(null==t&&(t=new Set),"object"==typeof e){if(t.has(e))return"[Circular]";t.add(e)}if(Array.isArray(e))return"[ "+e.map(e=>a(e,t)).join(", ")+" ]";if(e instanceof Uint8Array){const t="0123456789abcdef";let r="0x";for(let o=0;o<e.length;o++)r+=t[e[o]>>4],r+=t[15&e[o]];return r}if("object"==typeof e&&"function"==typeof e.toJSON)return a(e.toJSON(),t);switch(typeof e){case"boolean":case"number":case"symbol":return e.toString();case"bigint":return BigInt(e).toString();case"string":return JSON.stringify(e);case"object":{const r=Object.keys(e);return r.sort(),"{ "+r.map(r=>`${a(r,t)}: ${a(e[r],t)}`).join(", ")+" }"}}return"[ COULD NOT SERIALIZE ]"}function i(e,t){return e&&e.code===t}function s(e,t,r){let i,s=e;{const n=[];if(r){if("message"in r||"code"in r||"name"in r)throw new Error(`value will overwrite populated values: ${a(r)}`);for(const e in r){if("shortMessage"===e)continue;const t=r[e];n.push(e+"="+a(t))}}n.push(`code=${t}`),n.push(`version=${o.version}`),n.length&&(e+=" ("+n.join(", ")+")")}switch(t){case"INVALID_ARGUMENT":i=new TypeError(e);break;case"NUMERIC_FAULT":case"BUFFER_OVERRUN":i=new RangeError(e);break;default:i=new Error(e)}return(0,n.defineProperties)(i,{code:t}),r&&Object.assign(i,r),null==i.shortMessage&&(0,n.defineProperties)(i,{shortMessage:s}),i}function c(e,t,r,o){if(!e)throw s(t,r,o)}t.isError=i,t.isCallException=function(e){return i(e,"CALL_EXCEPTION")},t.makeError=s,t.assert=c,t.assertArgument=function(e,t,r,o){c(e,t,"INVALID_ARGUMENT",{argument:r,value:o})},t.assertArgumentCount=function(e,t,r){null==r&&(r=""),r&&(r=": "+r),c(e>=t,"missing argument"+r,"MISSING_ARGUMENT",{count:e,expectedCount:t}),c(e<=t,"too many arguments"+r,"UNEXPECTED_ARGUMENT",{count:e,expectedCount:t})};const l=["NFD","NFC","NFKD","NFKC"].reduce((e,t)=>{try{if("test"!=="test".normalize(t))throw new Error("bad");if("NFD"===t){const e=String.fromCharCode(233).normalize("NFD");if(e!==String.fromCharCode(101,769))throw new Error("broken")}e.push(t)}catch(e){}return e},[]);t.assertNormalize=function(e){c(l.indexOf(e)>=0,"platform missing String.prototype.normalize","UNSUPPORTED_OPERATION",{operation:"String.prototype.normalize",info:{form:e}})},t.assertPrivate=function(e,t,r){if(null==r&&(r=""),e!==t){let e=r,t="new";r&&(e+=".",t+=" "+r),c(!1,`private constructor; use ${e}from* methods`,"UNSUPPORTED_OPERATION",{operation:t})}}},8030:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeToCurve=t.hashToCurve=t.schnorr=t.secp256k1=void 0;
|
|
55
|
+
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
56
|
+
const o=r(1103),n=r(791),a=r(247),i=r(4329),s=r(8460),c=r(9857),l=r(1386),u=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),f=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),d=BigInt(1),h=BigInt(2),p=(e,t)=>(e+t/h)/t;function g(e){const t=u,r=BigInt(3),o=BigInt(6),n=BigInt(11),i=BigInt(22),s=BigInt(23),c=BigInt(44),l=BigInt(88),f=e*e*e%t,d=f*f*e%t,p=(0,a.pow2)(d,r,t)*d%t,g=(0,a.pow2)(p,r,t)*d%t,b=(0,a.pow2)(g,h,t)*f%t,y=(0,a.pow2)(b,n,t)*b%t,v=(0,a.pow2)(y,i,t)*y%t,w=(0,a.pow2)(v,c,t)*v%t,E=(0,a.pow2)(w,l,t)*w%t,B=(0,a.pow2)(E,c,t)*v%t,x=(0,a.pow2)(B,r,t)*d%t,A=(0,a.pow2)(x,s,t)*y%t,k=(0,a.pow2)(A,o,t)*f%t,S=(0,a.pow2)(k,h,t);if(!m.eql(m.sqr(S),e))throw new Error("Cannot find square root");return S}const m=(0,a.Field)(u,void 0,void 0,{sqrt:g});t.secp256k1=(0,l.createCurve)({a:BigInt(0),b:BigInt(7),Fp:m,n:f,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const t=f,r=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),o=-d*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),n=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),i=r,s=BigInt("0x100000000000000000000000000000000"),c=p(i*e,t),l=p(-o*e,t);let u=(0,a.mod)(e-c*r-l*n,t),h=(0,a.mod)(-c*o-l*i,t);const g=u>s,m=h>s;if(g&&(u=t-u),m&&(h=t-h),u>s||h>s)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:g,k1:u,k2neg:m,k2:h}}}},o.sha256);const b=BigInt(0),y=e=>"bigint"==typeof e&&b<e&&e<u,v={};function w(e,...t){let r=v[e];if(void 0===r){const t=(0,o.sha256)(Uint8Array.from(e,e=>e.charCodeAt(0)));r=(0,s.concatBytes)(t,t),v[e]=r}return(0,o.sha256)((0,s.concatBytes)(r,...t))}const E=e=>e.toRawBytes(!0).slice(1),B=e=>(0,s.numberToBytesBE)(e,32),x=e=>(0,a.mod)(e,u),A=e=>(0,a.mod)(e,f),k=t.secp256k1.ProjectivePoint;function S(e){let r=t.secp256k1.utils.normPrivateKeyToScalar(e),o=k.fromPrivateKey(r);return{scalar:o.hasEvenY()?r:A(-r),bytes:E(o)}}function C(e){if(!y(e))throw new Error("bad x: need 0 < x < p");const t=x(e*e);let r=g(x(t*e+BigInt(7)));r%h!==b&&(r=x(-r));const o=new k(e,r,d);return o.assertValidity(),o}function T(...e){return A((0,s.bytesToNumberBE)(w("BIP0340/challenge",...e)))}function P(e){return S(e).bytes}function O(e,t,r=(0,n.randomBytes)(32)){const o=(0,s.ensureBytes)("message",e),{bytes:a,scalar:i}=S(t),c=(0,s.ensureBytes)("auxRand",r,32),l=B(i^(0,s.bytesToNumberBE)(w("BIP0340/aux",c))),u=w("BIP0340/nonce",l,a,o),f=A((0,s.bytesToNumberBE)(u));if(f===b)throw new Error("sign failed: k is zero");const{bytes:d,scalar:h}=S(f),p=T(d,a,o),g=new Uint8Array(64);if(g.set(d,0),g.set(B(A(h+p*i)),32),!I(g,o,a))throw new Error("sign: Invalid signature produced");return g}function I(e,t,r){const o=(0,s.ensureBytes)("signature",e,64),n=(0,s.ensureBytes)("message",t),a=(0,s.ensureBytes)("publicKey",r,32);try{const e=C((0,s.bytesToNumberBE)(a)),t=(0,s.bytesToNumberBE)(o.subarray(0,32));if(!y(t))return!1;const r=(0,s.bytesToNumberBE)(o.subarray(32,64));if(!("bigint"==typeof(u=r)&&b<u&&u<f))return!1;const d=T(B(t),E(e),n),h=(i=e,c=r,l=A(-d),k.BASE.multiplyAndAddUnsafe(i,c,l));return!(!h||!h.hasEvenY()||h.toAffine().x!==t)}catch(e){return!1}var i,c,l,u}t.schnorr={getPublicKey:P,sign:O,verify:I,utils:{randomPrivateKey:t.secp256k1.utils.randomPrivateKey,lift_x:C,pointToBytes:E,numberToBytesBE:s.numberToBytesBE,bytesToNumberBE:s.bytesToNumberBE,taggedHash:w,mod:a.mod}};const z=(()=>(0,c.isogenyMap)(m,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(e=>e.map(e=>BigInt(e)))))(),L=(()=>(0,i.mapToCurveSimpleSWU)(m,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:m.create(BigInt("-11"))}))(),R=(()=>(0,c.createHasher)(t.secp256k1.ProjectivePoint,e=>{const{x:t,y:r}=L(m.create(e[0]));return z(t,r)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:m.ORDER,m:1,k:128,expand:"xmd",hash:o.sha256}))();t.hashToCurve=R.hashToCurve,t.encodeToCurve=R.encodeToCurve},8116:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DER=t.DERErr=void 0,t.weierstrassPoints=h,t.weierstrass=function(e){const r=function(e){const t=(0,o.validateBasic)(e);return(0,a.validateObject)(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}(e),{Fp:s,n:u}=r,f=s.BYTES+1,d=2*s.BYTES+1;function p(e){return(0,n.mod)(e,u)}function g(e){return(0,n.invert)(e,u)}const{ProjectivePoint:m,normPrivateKeyToScalar:b,weierstrassEquation:y,isWithinCurveOrder:v}=h({...r,toBytes(e,t,r){const o=t.toAffine(),n=s.toBytes(o.x),i=a.concatBytes;return(0,a.abool)("isCompressed",r),r?i(Uint8Array.from([t.hasEvenY()?2:3]),n):i(Uint8Array.from([4]),n,s.toBytes(o.y))},fromBytes(e){const t=e.length,r=e[0],o=e.subarray(1);if(t!==f||2!==r&&3!==r){if(t===d&&4===r){return{x:s.fromBytes(o.subarray(0,s.BYTES)),y:s.fromBytes(o.subarray(s.BYTES,2*s.BYTES))}}throw new Error("invalid Point, expected length of "+f+", or uncompressed "+d+", got "+t)}{const e=(0,a.bytesToNumberBE)(o);if(!(0,a.inRange)(e,l,s.ORDER))throw new Error("Point is not on curve");const t=y(e);let n;try{n=s.sqrt(t)}catch(e){const t=e instanceof Error?": "+e.message:"";throw new Error("Point is not on curve"+t)}return!(1&~r)!==((n&l)===l)&&(n=s.neg(n)),{x:e,y:n}}}}),w=e=>(0,a.bytesToHex)((0,a.numberToBytesBE)(e,r.nByteLength));function E(e){return e>u>>l}const B=(e,t,r)=>(0,a.bytesToNumberBE)(e.slice(t,r));class x{constructor(e,t,r){(0,a.aInRange)("r",e,l,u),(0,a.aInRange)("s",t,l,u),this.r=e,this.s=t,null!=r&&(this.recovery=r),Object.freeze(this)}static fromCompact(e){const t=r.nByteLength;return e=(0,a.ensureBytes)("compactSignature",e,2*t),new x(B(e,0,t),B(e,t,2*t))}static fromDER(e){const{r,s:o}=t.DER.toSig((0,a.ensureBytes)("DER",e));return new x(r,o)}assertValidity(){}addRecoveryBit(e){return new x(this.r,this.s,e)}recoverPublicKey(e){const{r:t,s:o,recovery:n}=this,i=C((0,a.ensureBytes)("msgHash",e));if(null==n||![0,1,2,3].includes(n))throw new Error("recovery id invalid");const c=2===n||3===n?t+r.n:t;if(c>=s.ORDER)throw new Error("recovery id 2 or 3 invalid");const l=1&n?"03":"02",u=m.fromHex(l+w(c)),f=g(c),d=p(-i*f),h=p(o*f),b=m.BASE.multiplyAndAddUnsafe(u,d,h);if(!b)throw new Error("point at infinify");return b.assertValidity(),b}hasHighS(){return E(this.s)}normalizeS(){return this.hasHighS()?new x(this.r,p(-this.s),this.recovery):this}toDERRawBytes(){return(0,a.hexToBytes)(this.toDERHex())}toDERHex(){return t.DER.hexFromSig(this)}toCompactRawBytes(){return(0,a.hexToBytes)(this.toCompactHex())}toCompactHex(){return w(this.r)+w(this.s)}}const A={isValidPrivateKey(e){try{return b(e),!0}catch(e){return!1}},normPrivateKeyToScalar:b,randomPrivateKey:()=>{const e=(0,n.getMinHashLength)(r.n);return(0,n.mapHashToField)(r.randomBytes(e),r.n)},precompute:(e=8,t=m.BASE)=>(t._setWindowSize(e),t.multiply(BigInt(3)),t)};function k(e){const t=(0,a.isBytes)(e),r="string"==typeof e,o=(t||r)&&e.length;return t?o===f||o===d:r?o===2*f||o===2*d:e instanceof m}const S=r.bits2int||function(e){if(e.length>8192)throw new Error("input is too large");const t=(0,a.bytesToNumberBE)(e),o=8*e.length-r.nBitLength;return o>0?t>>BigInt(o):t},C=r.bits2int_modN||function(e){return p(S(e))},T=(0,a.bitMask)(r.nBitLength);function P(e){return(0,a.aInRange)("num < 2^"+r.nBitLength,e,c,T),(0,a.numberToBytesBE)(e,r.nByteLength)}function O(e,t,o=I){if(["recovered","canonical"].some(e=>e in o))throw new Error("sign() legacy options not supported");const{hash:n,randomBytes:u}=r;let{lowS:f,prehash:d,extraEntropy:h}=o;null==f&&(f=!0),e=(0,a.ensureBytes)("msgHash",e),i(o),d&&(e=(0,a.ensureBytes)("prehashed msgHash",n(e)));const y=C(e),w=b(t),B=[P(w),P(y)];if(null!=h&&!1!==h){const e=!0===h?u(s.BYTES):h;B.push((0,a.ensureBytes)("extraEntropy",e))}const A=(0,a.concatBytes)(...B),k=y;return{seed:A,k2sig:function(e){const t=S(e);if(!v(t))return;const r=g(t),o=m.BASE.multiply(t).toAffine(),n=p(o.x);if(n===c)return;const a=p(r*p(k+n*w));if(a===c)return;let i=(o.x===n?0:2)|Number(o.y&l),s=a;return f&&E(a)&&(s=function(e){return E(e)?p(-e):e}(a),i^=1),new x(n,s,i)}}}const I={lowS:r.lowS,prehash:!1},z={lowS:r.lowS,prehash:!1};return m.BASE._setWindowSize(8),{CURVE:r,getPublicKey:function(e,t=!0){return m.fromPrivateKey(e).toRawBytes(t)},getSharedSecret:function(e,t,r=!0){if(k(e))throw new Error("first arg must be private key");if(!k(t))throw new Error("second arg must be public key");return m.fromHex(t).multiply(b(e)).toRawBytes(r)},sign:function(e,t,o=I){const{seed:n,k2sig:i}=O(e,t,o),s=r;return(0,a.createHmacDrbg)(s.hash.outputLen,s.nByteLength,s.hmac)(n,i)},verify:function(e,o,n,s=z){const c=e;o=(0,a.ensureBytes)("msgHash",o),n=(0,a.ensureBytes)("publicKey",n);const{lowS:l,prehash:u,format:f}=s;if(i(s),"strict"in s)throw new Error("options.strict was renamed to lowS");if(void 0!==f&&"compact"!==f&&"der"!==f)throw new Error("format must be compact or der");const d="string"==typeof c||(0,a.isBytes)(c),h=!d&&!f&&"object"==typeof c&&null!==c&&"bigint"==typeof c.r&&"bigint"==typeof c.s;if(!d&&!h)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");let b,y;try{if(h&&(b=new x(c.r,c.s)),d){try{"compact"!==f&&(b=x.fromDER(c))}catch(e){if(!(e instanceof t.DER.Err))throw e}b||"der"===f||(b=x.fromCompact(c))}y=m.fromHex(n)}catch(e){return!1}if(!b)return!1;if(l&&b.hasHighS())return!1;u&&(o=r.hash(o));const{r:v,s:w}=b,E=C(o),B=g(w),A=p(E*B),k=p(v*B),S=m.BASE.multiplyAndAddUnsafe(y,A,k)?.toAffine();if(!S)return!1;return p(S.x)===v},ProjectivePoint:m,Signature:x,utils:A}},t.SWUFpSqrtRatio=p,t.mapToCurveSimpleSWU=function(e,t){if((0,n.validateField)(e),!e.isValid(t.A)||!e.isValid(t.B)||!e.isValid(t.Z))throw new Error("mapToCurveSimpleSWU: invalid opts");const r=p(e,t.Z);if(!e.isOdd)throw new Error("Fp.isOdd is not implemented!");return o=>{let a,i,s,c,l,u,f,d;a=e.sqr(o),a=e.mul(a,t.Z),i=e.sqr(a),i=e.add(i,a),s=e.add(i,e.ONE),s=e.mul(s,t.B),c=e.cmov(t.Z,e.neg(i),!e.eql(i,e.ZERO)),c=e.mul(c,t.A),i=e.sqr(s),u=e.sqr(c),l=e.mul(u,t.A),i=e.add(i,l),i=e.mul(i,s),u=e.mul(u,c),l=e.mul(u,t.B),i=e.add(i,l),f=e.mul(a,s);const{isValid:h,value:p}=r(i,u);d=e.mul(a,o),d=e.mul(d,p),f=e.cmov(f,s,h),d=e.cmov(d,p,h);const g=e.isOdd(o)===e.isOdd(d);d=e.cmov(e.neg(d),d,g);const m=(0,n.FpInvertBatch)(e,[c],!0)[0];return f=e.mul(f,m),{x:f,y:d}}};
|
|
57
|
+
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
58
|
+
const o=r(831),n=r(6630),a=r(5565);function i(e){void 0!==e.lowS&&(0,a.abool)("lowS",e.lowS),void 0!==e.prehash&&(0,a.abool)("prehash",e.prehash)}class s extends Error{constructor(e=""){super(e)}}t.DERErr=s,t.DER={Err:s,_tlv:{encode:(e,r)=>{const{Err:o}=t.DER;if(e<0||e>256)throw new o("tlv.encode: wrong tag");if(1&r.length)throw new o("tlv.encode: unpadded data");const n=r.length/2,i=(0,a.numberToHexUnpadded)(n);if(i.length/2&128)throw new o("tlv.encode: long form length too big");const s=n>127?(0,a.numberToHexUnpadded)(i.length/2|128):"";return(0,a.numberToHexUnpadded)(e)+s+i+r},decode(e,r){const{Err:o}=t.DER;let n=0;if(e<0||e>256)throw new o("tlv.encode: wrong tag");if(r.length<2||r[n++]!==e)throw new o("tlv.decode: wrong tlv");const a=r[n++];let i=0;if(!!(128&a)){const e=127&a;if(!e)throw new o("tlv.decode(long): indefinite length not supported");if(e>4)throw new o("tlv.decode(long): byte length is too big");const t=r.subarray(n,n+e);if(t.length!==e)throw new o("tlv.decode: length bytes not complete");if(0===t[0])throw new o("tlv.decode(long): zero leftmost byte");for(const e of t)i=i<<8|e;if(n+=e,i<128)throw new o("tlv.decode(long): not minimal encoding")}else i=a;const s=r.subarray(n,n+i);if(s.length!==i)throw new o("tlv.decode: wrong value length");return{v:s,l:r.subarray(n+i)}}},_int:{encode(e){const{Err:r}=t.DER;if(e<c)throw new r("integer: negative integers are not allowed");let o=(0,a.numberToHexUnpadded)(e);if(8&Number.parseInt(o[0],16)&&(o="00"+o),1&o.length)throw new r("unexpected DER parsing assertion: unpadded hex");return o},decode(e){const{Err:r}=t.DER;if(128&e[0])throw new r("invalid signature integer: negative");if(0===e[0]&&!(128&e[1]))throw new r("invalid signature integer: unnecessary leading zero");return(0,a.bytesToNumberBE)(e)}},toSig(e){const{Err:r,_int:o,_tlv:n}=t.DER,i=(0,a.ensureBytes)("signature",e),{v:s,l:c}=n.decode(48,i);if(c.length)throw new r("invalid signature: left bytes after parsing");const{v:l,l:u}=n.decode(2,s),{v:f,l:d}=n.decode(2,u);if(d.length)throw new r("invalid signature: left bytes after parsing");return{r:o.decode(l),s:o.decode(f)}},hexFromSig(e){const{_tlv:r,_int:o}=t.DER,n=r.encode(2,o.encode(e.r))+r.encode(2,o.encode(e.s));return r.encode(48,n)}};const c=BigInt(0),l=BigInt(1),u=BigInt(2),f=BigInt(3),d=BigInt(4);function h(e){const t=function(e){const t=(0,o.validateBasic)(e);(0,a.validateObject)(t,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:r,Fp:n,a:i}=t;if(r){if(!n.eql(i,n.ZERO))throw new Error("invalid endomorphism, can only be defined for Koblitz curves that have a=0");if("object"!=typeof r||"bigint"!=typeof r.beta||"function"!=typeof r.splitScalar)throw new Error("invalid endomorphism, expected beta: bigint and splitScalar: function")}return Object.freeze({...t})}(e),{Fp:r}=t,i=(0,n.Field)(t.n,t.nBitLength),s=t.toBytes||((e,t,o)=>{const n=t.toAffine();return(0,a.concatBytes)(Uint8Array.from([4]),r.toBytes(n.x),r.toBytes(n.y))}),u=t.fromBytes||(e=>{const t=e.subarray(1);return{x:r.fromBytes(t.subarray(0,r.BYTES)),y:r.fromBytes(t.subarray(r.BYTES,2*r.BYTES))}});function d(e){const{a:o,b:n}=t,a=r.sqr(e),i=r.mul(a,e);return r.add(r.add(i,r.mul(e,o)),n)}if(!r.eql(r.sqr(t.Gy),d(t.Gx)))throw new Error("bad generator point: equation left != right");function h(e){const{allowedPrivateKeyLengths:r,nByteLength:o,wrapPrivateKey:i,n:s}=t;if(r&&"bigint"!=typeof e){if((0,a.isBytes)(e)&&(e=(0,a.bytesToHex)(e)),"string"!=typeof e||!r.includes(e.length))throw new Error("invalid private key");e=e.padStart(2*o,"0")}let c;try{c="bigint"==typeof e?e:(0,a.bytesToNumberBE)((0,a.ensureBytes)("private key",e,o))}catch(t){throw new Error("invalid private key, expected hex or "+o+" bytes, got "+typeof e)}return i&&(c=(0,n.mod)(c,s)),(0,a.aInRange)("private key",c,l,s),c}function p(e){if(!(e instanceof b))throw new Error("ProjectivePoint expected")}const g=(0,a.memoized)((e,t)=>{const{px:o,py:n,pz:a}=e;if(r.eql(a,r.ONE))return{x:o,y:n};const i=e.is0();null==t&&(t=i?r.ONE:r.inv(a));const s=r.mul(o,t),c=r.mul(n,t),l=r.mul(a,t);if(i)return{x:r.ZERO,y:r.ZERO};if(!r.eql(l,r.ONE))throw new Error("invZ was invalid");return{x:s,y:c}}),m=(0,a.memoized)(e=>{if(e.is0()){if(t.allowInfinityPoint&&!r.is0(e.py))return;throw new Error("bad point: ZERO")}const{x:o,y:n}=e.toAffine();if(!r.isValid(o)||!r.isValid(n))throw new Error("bad point: x or y not FE");const a=r.sqr(n),i=d(o);if(!r.eql(a,i))throw new Error("bad point: equation left != right");if(!e.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});class b{constructor(e,t,o){if(null==e||!r.isValid(e))throw new Error("x required");if(null==t||!r.isValid(t)||r.is0(t))throw new Error("y required");if(null==o||!r.isValid(o))throw new Error("z required");this.px=e,this.py=t,this.pz=o,Object.freeze(this)}static fromAffine(e){const{x:t,y:o}=e||{};if(!e||!r.isValid(t)||!r.isValid(o))throw new Error("invalid affine point");if(e instanceof b)throw new Error("projective point not allowed");const n=e=>r.eql(e,r.ZERO);return n(t)&&n(o)?b.ZERO:new b(t,o,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(e){const t=(0,n.FpInvertBatch)(r,e.map(e=>e.pz));return e.map((e,r)=>e.toAffine(t[r])).map(b.fromAffine)}static fromHex(e){const t=b.fromAffine(u((0,a.ensureBytes)("pointHex",e)));return t.assertValidity(),t}static fromPrivateKey(e){return b.BASE.multiply(h(e))}static msm(e,t){return(0,o.pippenger)(b,i,e,t)}_setWindowSize(e){v.setWindowSize(this,e)}assertValidity(){m(this)}hasEvenY(){const{y:e}=this.toAffine();if(r.isOdd)return!r.isOdd(e);throw new Error("Field doesn't support isOdd")}equals(e){p(e);const{px:t,py:o,pz:n}=this,{px:a,py:i,pz:s}=e,c=r.eql(r.mul(t,s),r.mul(a,n)),l=r.eql(r.mul(o,s),r.mul(i,n));return c&&l}negate(){return new b(this.px,r.neg(this.py),this.pz)}double(){const{a:e,b:o}=t,n=r.mul(o,f),{px:a,py:i,pz:s}=this;let c=r.ZERO,l=r.ZERO,u=r.ZERO,d=r.mul(a,a),h=r.mul(i,i),p=r.mul(s,s),g=r.mul(a,i);return g=r.add(g,g),u=r.mul(a,s),u=r.add(u,u),c=r.mul(e,u),l=r.mul(n,p),l=r.add(c,l),c=r.sub(h,l),l=r.add(h,l),l=r.mul(c,l),c=r.mul(g,c),u=r.mul(n,u),p=r.mul(e,p),g=r.sub(d,p),g=r.mul(e,g),g=r.add(g,u),u=r.add(d,d),d=r.add(u,d),d=r.add(d,p),d=r.mul(d,g),l=r.add(l,d),p=r.mul(i,s),p=r.add(p,p),d=r.mul(p,g),c=r.sub(c,d),u=r.mul(p,h),u=r.add(u,u),u=r.add(u,u),new b(c,l,u)}add(e){p(e);const{px:o,py:n,pz:a}=this,{px:i,py:s,pz:c}=e;let l=r.ZERO,u=r.ZERO,d=r.ZERO;const h=t.a,g=r.mul(t.b,f);let m=r.mul(o,i),y=r.mul(n,s),v=r.mul(a,c),w=r.add(o,n),E=r.add(i,s);w=r.mul(w,E),E=r.add(m,y),w=r.sub(w,E),E=r.add(o,a);let B=r.add(i,c);return E=r.mul(E,B),B=r.add(m,v),E=r.sub(E,B),B=r.add(n,a),l=r.add(s,c),B=r.mul(B,l),l=r.add(y,v),B=r.sub(B,l),d=r.mul(h,E),l=r.mul(g,v),d=r.add(l,d),l=r.sub(y,d),d=r.add(y,d),u=r.mul(l,d),y=r.add(m,m),y=r.add(y,m),v=r.mul(h,v),E=r.mul(g,E),y=r.add(y,v),v=r.sub(m,v),v=r.mul(h,v),E=r.add(E,v),m=r.mul(y,E),u=r.add(u,m),m=r.mul(B,E),l=r.mul(w,l),l=r.sub(l,m),m=r.mul(w,y),d=r.mul(B,d),d=r.add(d,m),new b(l,u,d)}subtract(e){return this.add(e.negate())}is0(){return this.equals(b.ZERO)}wNAF(e){return v.wNAFCached(this,e,b.normalizeZ)}multiplyUnsafe(e){const{endo:o,n}=t;(0,a.aInRange)("scalar",e,c,n);const i=b.ZERO;if(e===c)return i;if(this.is0()||e===l)return this;if(!o||v.hasPrecomputes(this))return v.wNAFCachedUnsafe(this,e,b.normalizeZ);let{k1neg:s,k1:u,k2neg:f,k2:d}=o.splitScalar(e),h=i,p=i,g=this;for(;u>c||d>c;)u&l&&(h=h.add(g)),d&l&&(p=p.add(g)),g=g.double(),u>>=l,d>>=l;return s&&(h=h.negate()),f&&(p=p.negate()),p=new b(r.mul(p.px,o.beta),p.py,p.pz),h.add(p)}multiply(e){const{endo:o,n}=t;let i,s;if((0,a.aInRange)("scalar",e,l,n),o){const{k1neg:t,k1:n,k2neg:a,k2:c}=o.splitScalar(e);let{p:l,f:u}=this.wNAF(n),{p:f,f:d}=this.wNAF(c);l=v.constTimeNegate(t,l),f=v.constTimeNegate(a,f),f=new b(r.mul(f.px,o.beta),f.py,f.pz),i=l.add(f),s=u.add(d)}else{const{p:t,f:r}=this.wNAF(e);i=t,s=r}return b.normalizeZ([i,s])[0]}multiplyAndAddUnsafe(e,t,r){const o=b.BASE,n=(e,t)=>t!==c&&t!==l&&e.equals(o)?e.multiply(t):e.multiplyUnsafe(t),a=n(this,t).add(n(e,r));return a.is0()?void 0:a}toAffine(e){return g(this,e)}isTorsionFree(){const{h:e,isTorsionFree:r}=t;if(e===l)return!0;if(r)return r(b,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:e,clearCofactor:r}=t;return e===l?this:r?r(b,this):this.multiplyUnsafe(t.h)}toRawBytes(e=!0){return(0,a.abool)("isCompressed",e),this.assertValidity(),s(b,this,e)}toHex(e=!0){return(0,a.abool)("isCompressed",e),(0,a.bytesToHex)(this.toRawBytes(e))}}b.BASE=new b(t.Gx,t.Gy,r.ONE),b.ZERO=new b(r.ZERO,r.ONE,r.ZERO);const y=t.nBitLength,v=(0,o.wNAF)(b,t.endo?Math.ceil(y/2):y);return{CURVE:t,ProjectivePoint:b,normPrivateKeyToScalar:h,weierstrassEquation:d,isWithinCurveOrder:function(e){return(0,a.inRange)(e,l,t.n)}}}function p(e,t){const r=e.ORDER;let o=c;for(let e=r-l;e%u===c;e/=u)o+=l;const n=o,a=u<<n-l-l,i=a*u,s=(r-l)/i,h=(s-l)/u,p=i-l,g=a,m=e.pow(t,s),b=e.pow(t,(s+l)/u);let y=(t,r)=>{let o=m,a=e.pow(r,p),i=e.sqr(a);i=e.mul(i,r);let s=e.mul(t,i);s=e.pow(s,h),s=e.mul(s,a),a=e.mul(s,r),i=e.mul(s,t);let c=e.mul(i,a);s=e.pow(c,g);let f=e.eql(s,e.ONE);a=e.mul(i,b),s=e.mul(c,o),i=e.cmov(a,i,f),c=e.cmov(s,c,f);for(let t=n;t>l;t--){let r=t-u;r=u<<r-l;let n=e.pow(c,r);const s=e.eql(n,e.ONE);a=e.mul(i,o),o=e.mul(o,o),n=e.mul(c,o),i=e.cmov(a,i,s),c=e.cmov(n,c,s)}return{isValid:f,value:i}};if(e.ORDER%d===f){const r=(e.ORDER-f)/d,o=e.sqrt(e.neg(t));y=(t,n)=>{let a=e.sqr(n);const i=e.mul(t,n);a=e.mul(a,i);let s=e.pow(a,r);s=e.mul(s,i);const c=e.mul(s,o),l=e.mul(e.sqr(s),n),u=e.eql(l,t);return{isValid:u,value:e.cmov(c,s,u)}}}return y}},8156:function(e,t,r){"use strict";var o,n=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,n)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||(o=function(e){return o=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},o(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=o(e),i=0;i<r.length;i++)"default"!==r[i]&&n(t,e,r[i]);return a(t,e),t}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)},c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.hdWallet=t.JingchangWallet=void 0;const l=c(r(3374));t.JingchangWallet=l.default;const u=i(r(6097));t.hdWallet=u,s(r(6097),t),s(r(5005),t)},8169:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ecrecover=t.calculateSigRecovery=void 0,t.ecsign=function(e,t,r){const a=o.secp256k1.sign(e,t),i=a.toCompactRawBytes(),s=i.slice(0,32),c=i.slice(32,64),l=void 0===r?BigInt(a.recovery+27):BigInt(a.recovery+35)+BigInt(r)*n.BIGINT_2;return{r:s,s:c,v:l}};const o=r(8241),n=r(7706),a=r(6872);t.calculateSigRecovery=(e,t)=>e===n.BIGINT_0||e===n.BIGINT_1?e:void 0===t?e-n.BIGINT_27:e-(t*n.BIGINT_2+BigInt(35));t.ecrecover=function(e,r,i,s,c){const l=(0,a.concatBytes)((0,a.setLengthLeft)(i,32),(0,a.setLengthLeft)(s,32)),u=(0,t.calculateSigRecovery)(r,c);if(!function(e){return e===n.BIGINT_0||e===n.BIGINT_1}(u))throw new Error("Invalid signature v value");return o.secp256k1.Signature.fromCompact(l).addRecoveryBit(Number(u)).recoverPublicKey(e).toRawBytes(!1).slice(1)}},8201:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.plugin=void 0;const o=r(4856),n=r(9660),a=r(1630);t.plugin={checkPrivateKey:e=>66===e.length?e.substring(2):e,address(e){if(e.privateKey){const r=t.plugin.checkPrivateKey(e.privateKey);return(0,o.pkToAddress)(r)}if(e.publicKey){const t=(0,n.hexStr2byteArray)(e.publicKey),r=(0,o.computeAddress)(t);return(0,o.getBase58CheckAddress)(r)}return null},isValidAddress:e=>(0,o.isAddressValid)(e),isValidSecret(e){try{const r=(0,n.hexStr2byteArray)(t.plugin.checkPrivateKey(e)),a=(0,o.getPubKeyFromPriKey)(r),i=(0,o.computeAddress)(a),s=(0,o.getBase58CheckAddress)(i);return t.plugin.isValidAddress(s)}catch(e){return!1}},hash:e=>(0,a.hashMessage)(e),sign(e,r){const o=t.plugin.checkPrivateKey(r).toLowerCase();return(0,a.signMessage)(e,o)},verify:(e,r,o)=>t.plugin.recover(e,r)===o,recover:(e,t)=>(0,a.verifyMessage)(e,t)}},8241:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeToCurve=t.hashToCurve=t.secp256k1_hasher=t.schnorr=t.secp256k1=void 0;
|
|
59
|
+
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
60
|
+
const o=r(9741),n=r(4904),a=r(2269),i=r(9924),s=r(6630),c=r(5565),l=r(8116),u=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),f=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),d=BigInt(1),h=BigInt(2),p=(e,t)=>(e+t/h)/t;function g(e){const t=u,r=BigInt(3),o=BigInt(6),n=BigInt(11),a=BigInt(22),i=BigInt(23),c=BigInt(44),l=BigInt(88),f=e*e*e%t,d=f*f*e%t,p=(0,s.pow2)(d,r,t)*d%t,g=(0,s.pow2)(p,r,t)*d%t,b=(0,s.pow2)(g,h,t)*f%t,y=(0,s.pow2)(b,n,t)*b%t,v=(0,s.pow2)(y,a,t)*y%t,w=(0,s.pow2)(v,c,t)*v%t,E=(0,s.pow2)(w,l,t)*w%t,B=(0,s.pow2)(E,c,t)*v%t,x=(0,s.pow2)(B,r,t)*d%t,A=(0,s.pow2)(x,i,t)*y%t,k=(0,s.pow2)(A,o,t)*f%t,S=(0,s.pow2)(k,h,t);if(!m.eql(m.sqr(S),e))throw new Error("Cannot find square root");return S}const m=(0,s.Field)(u,void 0,void 0,{sqrt:g});t.secp256k1=(0,a.createCurve)({a:BigInt(0),b:BigInt(7),Fp:m,n:f,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const t=f,r=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),o=-d*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),n=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),a=r,i=BigInt("0x100000000000000000000000000000000"),c=p(a*e,t),l=p(-o*e,t);let u=(0,s.mod)(e-c*r-l*n,t),h=(0,s.mod)(-c*o-l*a,t);const g=u>i,m=h>i;if(g&&(u=t-u),m&&(h=t-h),u>i||h>i)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:g,k1:u,k2neg:m,k2:h}}}},o.sha256);const b=BigInt(0),y={};function v(e,...t){let r=y[e];if(void 0===r){const t=(0,o.sha256)(Uint8Array.from(e,e=>e.charCodeAt(0)));r=(0,c.concatBytes)(t,t),y[e]=r}return(0,o.sha256)((0,c.concatBytes)(r,...t))}const w=e=>e.toRawBytes(!0).slice(1),E=e=>(0,c.numberToBytesBE)(e,32),B=e=>(0,s.mod)(e,u),x=e=>(0,s.mod)(e,f),A=t.secp256k1.ProjectivePoint;function k(e){let r=t.secp256k1.utils.normPrivateKeyToScalar(e),o=A.fromPrivateKey(r);return{scalar:o.hasEvenY()?r:x(-r),bytes:w(o)}}function S(e){(0,c.aInRange)("x",e,d,u);const t=B(e*e);let r=g(B(t*e+BigInt(7)));r%h!==b&&(r=B(-r));const o=new A(e,r,d);return o.assertValidity(),o}const C=c.bytesToNumberBE;function T(...e){return x(C(v("BIP0340/challenge",...e)))}function P(e){return k(e).bytes}function O(e,t,r=(0,n.randomBytes)(32)){const o=(0,c.ensureBytes)("message",e),{bytes:a,scalar:i}=k(t),s=(0,c.ensureBytes)("auxRand",r,32),l=E(i^C(v("BIP0340/aux",s))),u=v("BIP0340/nonce",l,a,o),f=x(C(u));if(f===b)throw new Error("sign failed: k is zero");const{bytes:d,scalar:h}=k(f),p=T(d,a,o),g=new Uint8Array(64);if(g.set(d,0),g.set(E(x(h+p*i)),32),!I(g,o,a))throw new Error("sign: Invalid signature produced");return g}function I(e,t,r){const o=(0,c.ensureBytes)("signature",e,64),n=(0,c.ensureBytes)("message",t),a=(0,c.ensureBytes)("publicKey",r,32);try{const e=S(C(a)),t=C(o.subarray(0,32));if(!(0,c.inRange)(t,d,u))return!1;const r=C(o.subarray(32,64));if(!(0,c.inRange)(r,d,f))return!1;const h=T(E(t),w(e),n),p=(i=e,s=r,l=x(-h),A.BASE.multiplyAndAddUnsafe(i,s,l));return!(!p||!p.hasEvenY()||p.toAffine().x!==t)}catch(e){return!1}var i,s,l}t.schnorr={getPublicKey:P,sign:O,verify:I,utils:{randomPrivateKey:t.secp256k1.utils.randomPrivateKey,lift_x:S,pointToBytes:w,numberToBytesBE:c.numberToBytesBE,bytesToNumberBE:c.bytesToNumberBE,taggedHash:v,mod:s.mod}};const z=(()=>(0,i.isogenyMap)(m,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(e=>e.map(e=>BigInt(e)))))(),L=(()=>(0,l.mapToCurveSimpleSWU)(m,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:m.create(BigInt("-11"))}))();t.secp256k1_hasher=(0,i.createHasher)(t.secp256k1.ProjectivePoint,e=>{const{x:t,y:r}=L(m.create(e[0]));return z(t,r)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:m.ORDER,m:1,k:128,expand:"xmd",hash:o.sha256}),t.hashToCurve=t.secp256k1_hasher.hashToCurve,t.encodeToCurve=t.secp256k1_hasher.encodeToCurve},8256:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zeroPadBytes=t.zeroPadValue=t.stripZerosLeft=t.dataSlice=t.dataLength=t.concat=t.hexlify=t.isBytesLike=t.isHexString=t.getBytesCopy=t.getBytes=void 0;const o=r(7991);function n(e,t,r){if(e instanceof Uint8Array)return r?new Uint8Array(e):e;if("string"==typeof e&&e.length%2==0&&e.match(/^0x[0-9a-f]*$/i)){const t=new Uint8Array((e.length-2)/2);let r=2;for(let o=0;o<t.length;o++)t[o]=parseInt(e.substring(r,r+2),16),r+=2;return t}(0,o.assertArgument)(!1,"invalid BytesLike value",t||"value",e)}function a(e,t){return n(e,t,!1)}function i(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/))&&(("number"!=typeof t||e.length===2+2*t)&&(!0!==t||e.length%2==0))}t.getBytes=a,t.getBytesCopy=function(e,t){return n(e,t,!0)},t.isHexString=i,t.isBytesLike=function(e){return i(e,!0)||e instanceof Uint8Array};const s="0123456789abcdef";function c(e){const t=a(e);let r="0x";for(let e=0;e<t.length;e++){const o=t[e];r+=s[(240&o)>>4]+s[15&o]}return r}function l(e,t,r){const n=a(e);(0,o.assert)(t>=n.length,"padding exceeds data length","BUFFER_OVERRUN",{buffer:new Uint8Array(n),length:t,offset:t+1});const i=new Uint8Array(t);return i.fill(0),r?i.set(n,t-n.length):i.set(n,0),c(i)}t.hexlify=c,t.concat=function(e){return"0x"+e.map(e=>c(e).substring(2)).join("")},t.dataLength=function(e){return i(e,!0)?(e.length-2)/2:a(e).length},t.dataSlice=function(e,t,r){const n=a(e);return null!=r&&r>n.length&&(0,o.assert)(!1,"cannot slice beyond data bounds","BUFFER_OVERRUN",{buffer:n,length:n.length,offset:r}),c(n.slice(null==t?0:t,null==r?n.length:r))},t.stripZerosLeft=function(e){let t=c(e).substring(2);for(;t.startsWith("00");)t=t.substring(2);return"0x"+t},t.zeroPadValue=function(e,t){return l(e,t,!0)},t.zeroPadBytes=function(e,t){return l(e,t,!1)}},8276:(e,t,r)=>{"use strict";var o=r(9922).hp;
|
|
47
61
|
/*!
|
|
48
62
|
* shallow-clone <https://github.com/jonschlinkert/shallow-clone>
|
|
49
63
|
*
|
|
50
64
|
* Copyright (c) 2015-present, Jon Schlinkert.
|
|
51
65
|
* Released under the MIT License.
|
|
52
|
-
*/const o=Symbol.prototype.valueOf,n=r(6948);e.exports=function(e,t){switch(n(e)){case"array":return e.slice();case"object":return Object.assign({},e);case"date":return new e.constructor(Number(e));case"map":return new Map(e);case"set":return new Set(e);case"buffer":return function(e){const t=e.length,r=a.allocUnsafe?a.allocUnsafe(t):a.from(t);return e.copy(r),r}(e);case"symbol":return function(e){return o?Object(o.call(e)):{}}(e);case"arraybuffer":return function(e){const t=new e.constructor(e.byteLength);return new Uint8Array(t).set(new Uint8Array(e)),t}(e);case"float32array":case"float64array":case"int16array":case"int32array":case"int8array":case"uint16array":case"uint32array":case"uint8clampedarray":case"uint8array":return function(e,t){return new e.constructor(e.buffer,e.byteOffset,e.length)}(e);case"regexp":return function(e){const t=void 0!==e.flags?e.flags:/\w+$/.exec(e)||void 0,r=new e.constructor(e.source,t);return r.lastIndex=e.lastIndex,r}(e);case"error":return Object.create(e);default:return e}}},3554:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WALLET_IS_EMPTY=t.SECRET_IS_INVALID=t.PASSWORD_IS_WRONG=t.PASSWORD_IS_REQUIRED=t.KEYSTORE_IS_INVALID=t.ETH_PASSWORD_IS_WRONG=t.ADDRESS_IS_EXISTENT=void 0;t.PASSWORD_IS_REQUIRED="password is required";t.WALLET_IS_EMPTY="wallet is empty";const r="password is wrong";t.PASSWORD_IS_WRONG=r;t.KEYSTORE_IS_INVALID="keystore is invalid";const a=`ethereum ${r}`;t.ETH_PASSWORD_IS_WRONG=a;t.SECRET_IS_INVALID="secret is invalid";t.ADDRESS_IS_EXISTENT="address is existent"},7743:(e,t,r)=>{"use strict";var a=r(9922).hp;Object.defineProperty(t,"__esModule",{value:!0}),t.decrypt=t.encrypt=void 0;const o=a.from("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141","hex"),n=a.alloc(32,0),i=r(4904),s=r(2979),c=r(1062),l=r(9741),u=r(3497),d=r(8241),f=d.secp256k1.ProjectivePoint;function h(e){return t=e,!(!a.isBuffer(t)||32!==t.length)&&(e.compare(n)>0&&e.compare(o)<0);var t}function p(e,t){if(!e)throw new Error(t||"Assertion failed")}function g(e){return s.sha512.create().update(e).digest()}function m(e,t){return c.hmac.create(l.sha256,e).update(t).digest()}const b=async(e,t)=>new Promise((r=>{p(32===e.length,"Bad private key"),p(h(e),"Bad private key"),r(d.secp256k1.getSharedSecret(e,t))}));t.encrypt=(e,t,r)=>{let o;return r=r||{},new Promise((function(t){let n=r.ephemPrivateKey||a.from((0,i.randomBytes)(32));for(;!h(n);)n=r.ephemPrivateKey||a.from((0,i.randomBytes)(32));var s;p(32===(s=n).length,"Bad private key"),p(h(s),"Bad private key"),o=f.fromPrivateKey(s).toRawBytes(!1),t(b(n,e))})).then((async function(e){const n=g(e),s=r.iv||(0,i.randomBytes)(16),c=n.slice(0,32),l=n.slice(32),d=await async function(e,t,r){return await(0,u.encrypt)(r,t,e,"aes-256-cbc")}(s,c,t),f=a.concat([s,o,d]),h=a.from(m(l,f));return{iv:s,ephemPublicKey:o,ciphertext:d,mac:h}}))};t.decrypt=(e,t)=>b(e,t.ephemPublicKey).then((function(r){p(32===e.length,"Bad private key"),p(h(e),"Bad private key");const o=g(r),n=o.slice(0,32),i=m(o.slice(32),a.concat([t.iv,t.ephemPublicKey,t.ciphertext]));return p(function(e,t){if(e.length!==t.length)return!1;let r=0;for(let a=0;a<e.length;a++)r|=e[a]^t[a];return 0===r}(t.mac,i),"Bad MAC"),async function(e,t,r){return await(0,u.decrypt)(r,t,e,"aes-256-cbc")}(t.iv,n,t.ciphertext)}))},6241:function(e,t,r){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getBIP44Chain=t.BIP44ChainMap=t.BIP44Chain=void 0;const o=a(r(1919));var n;!function(e){e[e.BITCOIN=2147483648]="BITCOIN",e[e.BSC=2147492654]="BSC",e[e.EOS=2147483842]="EOS",e[e.TRON=2147483843]="TRON",e[e.ETC=2147483709]="ETC",e[e.ETH=2147483708]="ETH",e[e.HECO=2147484658]="HECO",e[e.MOAC=2147483962]="MOAC",e[e.POLYGON=2147484614]="POLYGON",e[e.RIPPLE=2147483792]="RIPPLE",e[e.SWTC=2147483963]="SWTC",e[e.CALL=2147484281]="CALL",e[e.BVCADT=2399141888]="BVCADT",e[e.STREAM=2399141889]="STREAM",e[e.BIZAIN=2399141890]="BIZAIN"}(n||(t.BIP44Chain=n={}));t.getBIP44Chain=e=>o.default.filter((t=>t[0]===e));const i=new Map([[n.BITCOIN,"bitcoin"],[n.BSC,"bsc"],[n.EOS,"eos"],[n.TRON,"tron"],[n.ETC,"etc"],[n.ETH,"ethereum"],[n.HECO,"heco"],[n.MOAC,"moac"],[n.POLYGON,"polygon"],[n.RIPPLE,"ripple"],[n.SWTC,"jingtum"],[n.CALL,"call"],[n.BVCADT,"bvcadt"],[n.STREAM,"stream"],[n.BIZAIN,"bizain"]]);t.BIP44ChainMap=i},2367:(e,t,r)=>{"use strict";var a=r(9922).hp;Object.defineProperty(t,"__esModule",{value:!0}),t.plugin=void 0;const o=r(5754),n=r(6152),i=r(3016),s=r(3194),c=r(7448),l=r(102);t.plugin={checkPrivateKey:e=>66===e.length?e.substring(2):e,privateKeyToLegacyString(e){const r=t.plugin.checkPrivateKey((0,l.stripHexPrefix)(e)),o=a.from(r,"hex");return(0,c.privateKeyToLegacyString)({data:Uint8Array.from(o),type:c.KeyType.k1})},address(e){if(e.privateKey){const r=t.plugin.privateKeyToLegacyString(e.privateKey);return i.PrivateKey.fromString(r).getPublicKey().toLegacyString()}return e.publicKey?(0,c.publicKeyToLegacyString)({data:Uint8Array.from(a.from(e.publicKey,"hex")),type:c.KeyType.k1}):null},isValidAddress(e){try{return n.PublicKey.fromString(e).isValid()}catch(e){return!1}},isValidSecret(e){try{const r=t.plugin.privateKeyToLegacyString(e);return i.PrivateKey.fromString(r).isValid()}catch(e){return!1}},hash:e=>a.from(o.sha256.create().update(e).digest()).toString("hex"),sign(e,r){const a=t.plugin.privateKeyToLegacyString(r);return i.PrivateKey.fromString(a).sign(e).toString()},verify:(e,r,a)=>t.plugin.recover(e,r)===a,recover:(e,t)=>s.Signature.fromString(t).recover(e).toLegacyString()}},6223:(e,t,r)=>{"use strict";var a=r(9922).hp;Object.defineProperty(t,"__esModule",{value:!0}),t.plugin=void 0;const o=r(8241),n=r(4790),i=r(6872),s=r(102),c=r(8169),l=r(1636),u=r(2857),d=r(3554),f=r(4904);t.plugin={checkPrivateKey:e=>66===e.length?e.substring(2):e,address(e){if(e.privateKey){const r=t.plugin.checkPrivateKey(e.privateKey);return t.plugin.getAddress(r)}if(e.publicKey){const t=(0,l.pubToAddress)(a.from(e.publicKey,"hex"));return(0,i.bytesToHex)(t)}return null},isValidAddress:e=>"string"==typeof e&&/^(0x)?[0-9a-fA-F]{40}$/.test((0,s.stripHexPrefix)(e)),getAddress(e){if(!t.plugin.isValidSecret(e))return null;const r=o.secp256k1.ProjectivePoint.fromPrivateKey(a.from((0,s.stripHexPrefix)(e),"hex")).toHex(!1);return(0,i.bytesToHex)((0,l.pubToAddress)(a.from(r.substring(2),"hex")))},isValidSecret(e){try{return o.secp256k1.utils.isValidPrivateKey(a.from((0,s.stripHexPrefix)(e),"hex"))}catch(e){return!1}},hash(e){const t=(0,i.bytesToHex)((0,n.keccak256)(a.from(e,"utf-8")));return(0,s.stripHexPrefix)(t)},sign(e,r){const o=t.plugin.checkPrivateKey(r).toLowerCase(),l=(0,n.keccak256)(a.from(e,"utf-8")),u=(0,c.ecsign)(l,a.from(o,"hex"));return(0,s.stripHexPrefix)((0,i.bytesToHex)(u.r))+(0,s.stripHexPrefix)((0,i.bytesToHex)(u.s))+u.v.toString(16)},verify:(e,r,a)=>t.plugin.recover(e,r)===a,recover(e,t){const r=(0,n.keccak256)(a.from(e,"utf-8")),o=a.from(a.from(t.substring(0,64),"hex")),s=a.from(a.from(t.substring(64,128),"hex")),u=(0,i.hexToBytes)("0x"+t.substring(128,130)),d=(0,c.ecrecover)(r,(0,i.bytesToBigInt)(u),o,s),f=(0,l.pubToAddress)(a.from(d));return(0,i.bytesToHex)(f)},async decryptKeystore(e,t){if(r=t,"[object Object]"!==Object.prototype.toString.call(r))throw new Error(d.KEYSTORE_IS_INVALID);var r;const a=t.Crypto||t.crypto;if((0,u.isEmptyPlainObject)(a)||(0,u.isEmptyPlainObject)(a.cipherparams)||(0,u.isEmptyPlainObject)(a.kdfparams))throw new Error(d.KEYSTORE_IS_INVALID);const o=a.kdfparams;return(await(0,u.decrypt)(e,{crypto:{iv:a.cipherparams.iv,cipher:a.cipher,kdf:a.kdf,kdfparams:{dklen:o.dklen,n:o.n,p:o.p,r:o.r,salt:o.salt}},mac:a.mac,ciphertext:a.ciphertext})).toString("hex")},createWallet(){const e=(0,f.randomBytes)(32);return{address:t.plugin.getAddress((0,i.bytesToHex)(e)),secret:(0,i.bytesToHex)(e)}}}},6097:function(e,t,r){"use strict";var a=r(9922).hp,o=this&&this.__createBinding||(Object.create?function(e,t,r,a){void 0===a&&(a=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,a,o)}:function(e,t,r,a){void 0===a&&(a=r),e[a]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.HDWallet=t.getBIP44Chain=t.BIP44ChainMap=t.BIP44Chain=void 0;const s=r(2783),c=i(r(2374)),l=r(2013),u=r(6241);Object.defineProperty(t,"BIP44Chain",{enumerable:!0,get:function(){return u.BIP44Chain}}),Object.defineProperty(t,"BIP44ChainMap",{enumerable:!0,get:function(){return u.BIP44ChainMap}}),Object.defineProperty(t,"getBIP44Chain",{enumerable:!0,get:function(){return u.getBIP44Chain}});const d=r(5005),f=r(1613),h=(0,s.Factory)(f.Alphabet.JINGTUM);class p{constructor(e){if(this.isRoot=()=>this._path.chain+this._path.account+this._path.change+this._path.index===0,this.deriveWallet=e=>{if(isNaN(e.chain)||isNaN(e.account)||isNaN(e.index))return null;const t=p.getHDKeypair(this._secret,e.chain,e.account,e.index);return new p({keypair:t,path:{chain:e.chain,account:e.account,change:0,index:e.index}})},this.secret=()=>this._secret,this.mnemonic=()=>this._mnemonic,this.chain=()=>this.isRoot()?u.BIP44ChainMap.get(u.BIP44Chain.SWTC):u.BIP44ChainMap.get(this._path.chain),this.address=()=>{if(!this._address){const e=this.chain();this._address=(0,d.getPluginByType)(e).address(this._secret?this._secret:this._keypair,e)}return this._address},this.isValidAddress=e=>(0,d.getPluginByType)(this.chain()).isValidAddress(e),this.isValidSecret=e=>(0,d.getPluginByType)(this.chain()).isValidSecret(e),this.hash=e=>(0,d.getPluginByType)(this.chain()).hash(e),this.sign=e=>(0,d.getPluginByType)(this.chain()).sign(e,this._keypair.privateKey),this.verify=(e,t,r,a)=>(r||(r=this.address()),a||(a=this._keypair),(0,d.getPluginByType)(this.chain()).verify(e,t,r,a)),this.recover=(e,t)=>(0,d.getPluginByType)(this.chain()).recover(e,t),this.getWalletApi=()=>(0,d.getPluginByType)(this.chain()),this.keypair=()=>this._keypair,this.path=()=>this._path,this.setKeypair=e=>{this._keypair=e},!e)throw new Error("undefined parameters: "+e);if(this._path={chain:0,account:0,change:0,index:0},e.mnemonic)return this._secret=p.getSecretFromMnemonic(e.mnemonic,e.language),this._keypair=p.getKeypairFromSecret(this._secret),this._mnemonic={mnemonic:e.mnemonic,language:e.language},this;if(e.secret)return this._secret=e.secret,this._keypair=p.getKeypairFromSecret(this._secret),this._mnemonic={mnemonic:p.getMnemonicFromSecret(this._secret,e.language),language:e.language},this;if(e.keypair)return e.path?(this._keypair=e.keypair,this._mnemonic=null,this._secret=null,this._path=e.path):(this._keypair=e.keypair,this._mnemonic=null,this._secret=null),this;throw new Error("invalid parameters: "+e)}}t.HDWallet=p,p.generateMnemonic=(e=128,t="english")=>(c.setDefaultWordlist(t),c.generateMnemonic(e)),p.getSecretFromMnemonic=(e,t="english")=>{c.setDefaultWordlist(t);const r=c.mnemonicToEntropy(e);return h.addressCodec.encodeSeed(a.from(r,"hex"))},p.getMnemonicFromSecret=(e,t="english")=>{c.setDefaultWordlist(t);const r=h.addressCodec.decodeSeed(e).bytes;return c.entropyToMnemonic(r)},p.getKeypairFromSecret=e=>h.deriveKeyPair(e),p.getHDKeypair=(e,t,r=0,o)=>{const n=(0,u.getBIP44Chain)(t);if(0===n.length)return null;const i=n[0][0]<<1>>1,s=p.getMnemonicFromSecret(e),d=c.mnemonicToSeedSync(s),f=l.HDKey.fromMasterSeed(d).derive(`m/44'/${i}'/${r}'/0/${o}`).privateKey;return h.deriveKeyPair(a.from(f).toString("hex"))},p.generate=e=>{e||(e={});const t=p.generateMnemonic(e.len,e.language);return new p({mnemonic:t,language:e.language})},p.fromSecret=e=>new p({secret:e}),p.fromMnemonic=e=>new p({mnemonic:e.mnemonic,language:e.language}),p.fromKeypair=e=>new p({keypair:e})},5005:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.eosWallet=t.moacWallet=t.ethWallet=t.jtWallet=t.bizainWallet=t.stmWallet=t.rippleWallet=t.callWallet=t.bvcadtWallet=void 0,t.getPluginByType=function(e){return d[e]};const a=r(6223),o=r(6223),n=r(6223),i=r(6223),s=r(8201),c=r(2367),l=r(1613),u=r(3609);t.bvcadtWallet=(0,u.SWTCPlugin)(l.Alphabet.BVCADT),t.callWallet=(0,u.SWTCPlugin)(l.Alphabet.CALL),t.rippleWallet=(0,u.SWTCPlugin)(l.Alphabet.RIPPLE),t.stmWallet=(0,u.SWTCPlugin)(l.Alphabet.STREAM),t.bizainWallet=(0,u.SWTCPlugin)(l.Alphabet.BIZAIN),t.jtWallet=(0,u.SWTCPlugin)(l.Alphabet.JINGTUM),t.ethWallet=a.plugin,t.moacWallet=a.plugin,t.eosWallet=c.plugin;const d={ethereum:a.plugin,bsc:o.plugin,heco:n.plugin,polygon:i.plugin,tron:s.plugin,eos:c.plugin,bvcadt:t.bvcadtWallet,call:t.callWallet,ripple:t.rippleWallet,stream:t.stmWallet,bizain:t.bizainWallet,jingtum:t.jtWallet}},3609:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SWTCPlugin=void 0;const a=r(2783),o=r(5565);t.SWTCPlugin=e=>{const t=(0,a.Factory)(e),r=e=>{try{if("string"==typeof e){return t.fromSecret(e).address}if(e.privateKey){const r=t.deriveKeyPair(e.privateKey);return t.deriveAddress(r.publicKey)}return e.publicKey?t.deriveAddress(e.publicKey):null}catch(e){return null}};return{isValidAddress:e=>t.isValidAddress(e),isValidSecret:e=>t.isValidSecret(e),hash:e=>(0,o.bytesToHex)(t.hash(e)).toUpperCase(),sign:(e,r)=>t.sign(e,r),verify:(e,a,o,n)=>{try{return o===r(n)&&(n.publicKey||(n=t.deriveKeyPair(n.privateKey)),t.verify(e,a,n.publicKey))}catch(e){return!1}},createWallet:(e={})=>{try{return t.generate(e)}catch(e){return null}},getAddress:e=>{try{return t.fromSecret(e).address}catch(e){return null}},recover:()=>{throw new Error("swtclib does not support.")},address:r}}},8201:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.plugin=void 0;const a=r(4856),o=r(9660),n=r(1630);t.plugin={checkPrivateKey:e=>66===e.length?e.substring(2):e,address(e){if(e.privateKey){const r=t.plugin.checkPrivateKey(e.privateKey);return(0,a.pkToAddress)(r)}if(e.publicKey){const t=(0,o.hexStr2byteArray)(e.publicKey),r=(0,a.computeAddress)(t);return(0,a.getBase58CheckAddress)(r)}return null},isValidAddress:e=>(0,a.isAddressValid)(e),isValidSecret(e){try{const r=(0,o.hexStr2byteArray)(t.plugin.checkPrivateKey(e)),n=(0,a.getPubKeyFromPriKey)(r),i=(0,a.computeAddress)(n),s=(0,a.getBase58CheckAddress)(i);return t.plugin.isValidAddress(s)}catch(e){return!1}},hash:e=>(0,n.hashMessage)(e),sign(e,r){const a=t.plugin.checkPrivateKey(r).toLowerCase();return(0,n.signMessage)(e,a)},verify:(e,r,a)=>t.plugin.recover(e,r)===a,recover:(e,t)=>(0,n.verifyMessage)(e,t)}},8156:function(e,t,r){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,r,a){void 0===a&&(a=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,a,o)}:function(e,t,r,a){void 0===a&&(a=r),e[a]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&a(t,e,r);return o(t,e),t},i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||a(t,e,r)},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.hdWallet=t.JingchangWallet=void 0;const c=s(r(3374));t.JingchangWallet=c.default;const l=n(r(6097));t.hdWallet=l,i(r(6097),t),i(r(5005),t)},3374:function(e,t,r){"use strict";var a=r(9922).hp,o=this&&this.__createBinding||(Object.create?function(e,t,r,a){void 0===a&&(a=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,a,o)}:function(e,t,r,a){void 0===a&&(a=r),e[a]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const c=s(r(4046)),l=r(5754),u=i(r(7743)),d=r(2857),f=s(r(984)),h=r(2783),p=r(3554),g=r(5005),m=r(2857),b=r(1613);f.default.prefix="jingchang_";class y{constructor(e,t=!1,r=!0){this._multiple=t,this._jingchangWallet=e,this._samePassword=r}static isValid(e){try{"string"==typeof e&&(e=JSON.parse(e));const t=!(0,d.isEmptyPlainObject)(e)&&Array.isArray(e.wallets)&&e.wallets.length>0;return Boolean(t&&e.contact&&e.id&&e.version)}catch(e){return!1}}static async generate(e,t,r){const a={};if(void 0===t){const e=g.jtWallet.createWallet();t=e.secret,a.address=e.address}else{if(!g.jtWallet.isValidSecret(t))throw new Error(p.SECRET_IS_INVALID);a.address=g.jtWallet.getAddress(t)}a.secret=t,a.type="swt",a.default=!0,a.alias=r||"swt wallet";const o={},n=await(0,m.encryptWallet)(e,a);return o.version=y.version,o.id=y._walletID,o.contact={},o.wallets=[],o.wallets.push(n),o}static get(){const e=f.default.get(y._walletID);return y.isValid(e)?e:null}static clear(){f.default.set(y._walletID,{})}static save(e){f.default.set(y._walletID,e)}static deriveKeyPair(e,t="swt"){const r=b.Alphabet[null==t?void 0:t.toUpperCase()],a=(0,h.Factory)(r).deriveKeyPair(e);return{privateKey:a.privateKey.substring(2),publicKey:a.publicKey}}static async encryptWithPublicKey(e,t){const r=await u.encrypt(a.from(t,"hex"),a.from(e));return{ciphertext:a.from(r.ciphertext).toString("hex"),ephemPublicKey:a.from(r.ephemPublicKey).toString("hex"),iv:a.from(r.iv).toString("hex"),mac:a.from(r.mac).toString("hex")}}static async decryptWithPrivateKey(e,t){const r={ciphertext:a.from(e.ciphertext,"hex"),ephemPublicKey:a.from(e.ephemPublicKey,"hex"),iv:a.from(e.iv,"hex"),mac:a.from(e.mac,"hex")},o=await u.decrypt(a.from(t,"hex"),r);return a.from(o).toString()}static getWallets(e){let t;return t=y.isValid(e)?e.wallets:[],t}setJingchangWallet(e){this._jingchangWallet=e}async getAddress(e="swt"){return(await this.getWalletWithType(e)).address}async getWalletWithType(e="swt"){return this.findWallet((t=>t.type.toLowerCase()===e.toLowerCase()&&t.default))}async getWalletWithAddress(e){return await this.findWallet((t=>t.address===e))}hasDefault(e="swt"){try{const t=this.findWallet((t=>t.type===e&&t.default));return!(0,d.isEmptyPlainObject)(t)}catch(e){return!1}}async getSecretWithType(e,t="swt"){const r=await this.findWallet((e=>e.type===t&&e.default));return(await(0,m.decrypt)(e,r)).toString()}async getSecretWithAddress(e,t){const r=await this.findWallet((e=>e.address===t));return(await(0,m.decrypt)(e,r)).toString()}async changeWholePassword(e,t){if(!this._samePassword)throw new Error("the property of _samePassword is false, so please don't call this function!");const r=(0,c.default)(this._jingchangWallet),a=y.getWallets(r),o=[];for(const r of a){const a=r.address,n=await this.getSecretWithAddress(e,a),i={address:r.address,alias:r.alias,default:r.default,secret:n,type:r.type},s=await this.getEncryptData(t,i);o.push(s)}return r.wallets=o,this.setJingchangWallet(r),r}async changePasswordWithAddress(e,t,r){if(this._samePassword)throw new Error("the property of _samePassword is true, so please don't call this function!");const a=this.findWallet((t=>t.address===e)),o=await this.getSecretWithAddress(t,e),n={address:a.address,alias:a.alias,default:a.default,secret:o,type:a.type},i=await this.getEncryptData(r,n);return a.ciphertext=i.ciphertext,a.crypto=i.crypto,a.mac=i.mac,this._jingchangWallet}async replaceKeystore(e,t,r){const a=r(e),o=this.findWallet((e=>e.address===a)),n={address:o.address,alias:o.alias,default:o.default,secret:e,type:o.type},i=await this.getEncryptData(t,n);return o.ciphertext=i.ciphertext,o.crypto=i.crypto,o.mac=i.mac,this._jingchangWallet}async removeWalletWithType(e="swt"){const t=await this.getAddress(e);return await this.removeWalletWithAddress(t)}async removeWalletWithAddress(e){const t=(0,c.default)(this._jingchangWallet),r=y.getWallets(t),a=this.findWallet((t=>t.address===e)),o=r.findIndex((e=>e.address===a.address));r.splice(o,1);const n=r.find((e=>e.type===a.type));return n&&(n.default=!0),this.setJingchangWallet(t),t}async setDefaultWallet(e){const t=await this.getWalletWithAddress(e);if(t.default)return this._jingchangWallet;return(await this.getWalletWithType(t.type)).default=!1,t.default=!0,this._jingchangWallet}async importSecret(e,t,r,a,o){this._samePassword&&await this.getSecretWithType(t);const n=a(e);if(!n)throw new Error(p.SECRET_IS_INVALID);const i=y.getWallets(this._jingchangWallet).find((e=>e.address===n&&e.type===r));if(i)throw new Error(p.ADDRESS_IS_EXISTENT);const s={address:n,alias:o||`${r} wallet`,secret:e,type:r};return await this.saveWallet(t,s)}findWallet(e){const t=this._jingchangWallet;if(!y.isValid(t))throw new Error(p.KEYSTORE_IS_INVALID);const{wallets:r}=t,a=r.find(e);if((0,d.isEmptyPlainObject)(a))throw new Error(p.WALLET_IS_EMPTY);return a}async getEncryptData(e,t){return await(0,m.encryptWallet)(e,t,{})}async saveWallet(e,t){t.default=!this._multiple||!this.hasDefault(t.type);const r=await this.getEncryptData(e,t),a=(0,c.default)(this._jingchangWallet),o=a.wallets,n=o.findIndex((e=>e.type.toLowerCase()===t.type.toLowerCase()));return this._multiple||n>=0&&o.splice(n,1),o.push(r),this.setJingchangWallet(a),a}}y.version="1.0",y._name="wallets",y._walletID=a.from(l.sha256.create().update(y._name.toLowerCase()).digest()).toString("hex"),t.default=y},3016:(e,t,r)=>{"use strict";var a=r(9922).hp;Object.defineProperty(t,"__esModule",{value:!0}),t.PrivateKey=void 0;const o=r(7448),n=r(7152);class i{constructor(e,t){this.key=e,this.ec=t}static fromString(e,t){const r=(0,o.stringToPrivateKey)(e);return t||(t=(0,n.constructElliptic)(r.type)),new i(r,t)}toPoint(){return this.ec.ProjectivePoint.fromPrivateKey(this.key.data)}getType(){return this.key.type}getPublicKey(){const e=this.toPoint();return n.PublicKey.fromPoint(e,this.getType(),this.ec)}sign(e,t=!0,r="utf8"){t&&("string"==typeof e&&(e=a.from(e,r)),e=this.ec.CURVE.hash(e));let i,s=0;const c=t=>{const r=this.ec.sign(e,this.key.data,t);return n.Signature.fromSignature(r,this.getType(),this.ec)};if(this.key.type===o.KeyType.k1)do{i=c({lowS:!0,extraEntropy:a.from([++s])})}while(128&(l=i.toBinary())[1]||0===l[1]&&!(128&l[2])||128&l[33]||!(0!==l[33]||128&l[34]));else i=c({lowS:!0});var l;return i}isValid(){try{return this.toPoint(),!0}catch(e){return!1}}}t.PrivateKey=i},6152:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PublicKey=void 0;const a=r(7448),o=r(7152),n=r(9462);class i{constructor(e,t){this.key=e,this.ec=t}static fromString(e,t){const r=(0,a.stringToPublicKey)(e);return t||(t=(0,o.constructElliptic)(r.type)),new i(r,t)}static fromPoint(e,t,r){const a=(0,n.toBEArray)(e.x,32),s=(0,n.toBEArray)(e.y,32);return r||(r=(0,o.constructElliptic)(t)),new i({type:t,data:new Uint8Array([1&s[31]?3:2].concat(a))},r)}toLegacyString(){return(0,a.publicKeyToLegacyString)(this.key)}toPoint(){return this.ec.ProjectivePoint.fromHex(this.key.data)}getType(){return this.key.type}isValid(){try{return this.toPoint(),!0}catch(e){return!1}}}t.PublicKey=i},3194:(e,t,r)=>{"use strict";var a=r(9922).hp;Object.defineProperty(t,"__esModule",{value:!0}),t.Signature=void 0;const o=r(7448),n=r(7152),i=r(9462);class s{constructor(e,t){this.signature=e,this.ec=t}static fromString(e,t){const r=(0,o.stringToSignature)(e);return t||(t=(0,n.constructElliptic)(r.type)),new s(r,t)}static fromSignature(e,t,r){const a=(0,i.toBEArray)(e.r,32),c=(0,i.toBEArray)(e.s,32);let l;t===o.KeyType.k1||t===o.KeyType.r1?(l=e.recovery+27,e.recovery<=3&&(l+=4)):t===o.KeyType.wa&&(l=e.recovery);const u=new Uint8Array([l].concat(a,c));return r||(r=(0,n.constructElliptic)(t)),new s({type:t,data:u},r)}toRecoveredSignature(){const e=(0,i.toBigInt)(this.signature.data.slice(1,33)),t=(0,i.toBigInt)(this.signature.data.slice(33,65));let r;this.signature.type===o.KeyType.k1||this.signature.type===o.KeyType.r1?(r=this.signature.data[0]-27,r>3&&(r-=4)):this.signature.type===o.KeyType.wa&&(r=this.signature.data[0]);const a=3&r;return new this.ec.Signature(BigInt(e),BigInt(t)).addRecoveryBit(a)}toString(){return(0,o.signatureToString)(this.signature)}toBinary(){return this.signature.data}getType(){return this.signature.type}recover(e,t=!0,r="utf8"){t&&("string"==typeof e&&(e=a.from(e,r)),e=this.ec.CURVE.hash(e));const o=this.toRecoveredSignature().recoverPublicKey(e),i=this.ec.ProjectivePoint.fromHex(o.toHex());return n.PublicKey.fromPoint(i,this.getType(),this.ec)}}t.Signature=s},9462:(e,t,r)=>{"use strict";var a=r(9922).hp;Object.defineProperty(t,"__esModule",{value:!0}),t.toBigInt=t.toBEArray=void 0;t.toBEArray=(e,t)=>{const r=e.toString(16),o=a.from(r.padStart(2*t,"0").slice(0,2*t),"hex");return Array.prototype.slice.call(o,0)};t.toBigInt=e=>{let t=BigInt(0);for(let r=0,a=e.length;r<a;r++)t|=BigInt(e[r])<<(BigInt(a)-BigInt(r)-BigInt(1))*BigInt(8);return t}},7152:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.constructElliptic=t.Signature=t.PublicKey=t.PrivateKey=void 0;const a=r(7448);var o=r(3016);Object.defineProperty(t,"PrivateKey",{enumerable:!0,get:function(){return o.PrivateKey}});var n=r(6152);Object.defineProperty(t,"PublicKey",{enumerable:!0,get:function(){return n.PublicKey}});var i=r(3194);Object.defineProperty(t,"Signature",{enumerable:!0,get:function(){return i.Signature}});const s=r(8241),c=r(6968);t.constructElliptic=e=>e===a.KeyType.k1?s.secp256k1:c.p256},7448:(e,t,r)=>{"use strict";var a=r(9922).hp;Object.defineProperty(t,"__esModule",{value:!0}),t.privateKeyToString=t.privateKeyToLegacyString=t.signatureToString=t.stringToSignature=t.stringToPrivateKey=t.publicKeyToLegacyString=t.stringToPublicKey=t.signatureDataSize=t.privateKeyDataSize=t.publicKeyDataSize=t.KeyType=t.binaryToBase58=t.base58ToBinary=void 0;const o=r(5673),n=r(5754),i="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",s=(()=>{const e=Array(256).fill(-1);for(let t=0;t<58;++t)e[i.charCodeAt(t)]=t;return e})();t.base58ToBinary=(e,t)=>{if(!e)return(e=>{const t=[];for(let r=0;r<e.length;++r){let a=s[e.charCodeAt(r)];if(a<0)throw new Error("invalid base-58 value");for(let e=0;e<t.length;++e){const r=58*t[e]+a;t[e]=255&r,a=r>>8}a&&t.push(a)}for(const r of e){if("1"!==r)break;t.push(0)}return t.reverse(),new Uint8Array(t)})(t);const r=new Uint8Array(e);for(let a=0;a<t.length;++a){let o=s[t.charCodeAt(a)];if(o<0)throw new Error("invalid base-58 value");for(let t=0;t<e;++t){const e=58*r[t]+o;r[t]=e,o=e>>8}if(o)throw new Error("base-58 value is out of range")}return r.reverse(),r};var c;t.binaryToBase58=e=>{const t=[];for(const r of e){let e=r;for(let r=0;r<t.length;++r){const a=(s[t[r]]<<8)+e;t[r]=i.charCodeAt(a%58),e=a/58|0}for(;e;)t.push(i.charCodeAt(e%58)),e=e/58|0}for(const r of e){if(r)break;t.push("1".charCodeAt(0))}return t.reverse(),String.fromCharCode(...t)},function(e){e[e.k1=0]="k1",e[e.r1=1]="r1",e[e.wa=2]="wa"}(c||(t.KeyType=c={})),t.publicKeyDataSize=33,t.privateKeyDataSize=32,t.signatureDataSize=65;const l=(e,t)=>{const r=new Uint8Array(e.length+t.length);for(let t=0;t<e.length;++t)r[t]=e[t];for(let a=0;a<t.length;++a)r[e.length+a]=t.charCodeAt(a);return(0,o.ripemd160)(r)},u=(e,r,a,o)=>{const n=(0,t.base58ToBinary)(a?a+4:0,e),i={type:r,data:new Uint8Array(n.buffer,0,n.length-4)},s=new Uint8Array(l(i.data,o));if(s[0]!==n[n.length-4]||s[1]!==n[n.length-3]||s[2]!==n[n.length-2]||s[3]!==n[n.length-1])throw new Error("checksum doesn't match");return i},d=(e,r,a)=>{const o=new Uint8Array(l(e.data,r)),n=new Uint8Array(e.data.length+4);for(let t=0;t<e.data.length;++t)n[t]=e.data[t];for(let t=0;t<4;++t)n[t+e.data.length]=o[t];return a+(0,t.binaryToBase58)(n)};t.stringToPublicKey=e=>{if("string"!=typeof e)throw new Error("expected string containing public key");if("EOS"===e.substring(0,3)){const r=(0,t.base58ToBinary)(t.publicKeyDataSize+4,e.substring(3)),a={type:c.k1,data:new Uint8Array(t.publicKeyDataSize)};for(let e=0;e<t.publicKeyDataSize;++e)a.data[e]=r[e];const n=new Uint8Array((0,o.ripemd160)(a.data));if(n[0]!==r[t.publicKeyDataSize]||n[1]!==r[34]||n[2]!==r[35]||n[3]!==r[36])throw new Error("checksum doesn't match");return a}if("PUB_K1_"===e.substring(0,7))return u(e.substring(7),c.k1,t.publicKeyDataSize,"K1");if("PUB_R1_"===e.substring(0,7))return u(e.substring(7),c.r1,t.publicKeyDataSize,"R1");if("PUB_WA_"===e.substring(0,7))return u(e.substring(7),c.wa,0,"WA");throw new Error("unrecognized public key format")};t.publicKeyToLegacyString=e=>{if(e.type===c.k1&&e.data.length===t.publicKeyDataSize)return d(e,"","EOS");throw e.type===c.r1||e.type===c.wa?new Error("Key format not supported in legacy conversion"):new Error("unrecognized public key format")};t.stringToPrivateKey=e=>{if("string"!=typeof e)throw new Error("expected string containing private key");if("PVT_R1_"===e.substring(0,7))return u(e.substring(7),c.r1,t.privateKeyDataSize,"R1");if("PVT_K1_"===e.substring(0,7))return u(e.substring(7),c.k1,t.privateKeyDataSize,"K1");{const r=(0,t.base58ToBinary)(t.privateKeyDataSize+5,e),a={type:c.k1,data:new Uint8Array(t.privateKeyDataSize)};if(128!==r[0])throw new Error("unrecognized private key type");for(let e=0;e<t.privateKeyDataSize;++e)a.data[e]=r[e+1];return a}};t.stringToSignature=e=>{if("string"!=typeof e)throw new Error("expected string containing signature");if("SIG_K1_"===e.substring(0,7))return u(e.substring(7),c.k1,t.signatureDataSize,"K1");if("SIG_R1_"===e.substring(0,7))return u(e.substring(7),c.r1,t.signatureDataSize,"R1");if("SIG_WA_"===e.substring(0,7))return u(e.substring(7),c.wa,0,"WA");throw new Error("unrecognized signature format")};t.signatureToString=e=>{if(e.type===c.k1)return d(e,"K1","SIG_K1_");if(e.type===c.r1)return d(e,"R1","SIG_R1_");if(e.type===c.wa)return d(e,"WA","SIG_WA_");throw new Error("unrecognized signature format")};t.privateKeyToLegacyString=e=>{if(e.type===c.k1&&e.data.length===t.privateKeyDataSize){const r=[];r.push(128),e.data.forEach((e=>r.push(e)));const o=new Uint8Array(n.sha256.create().update(n.sha256.create().update(a.from(r)).digest()).digest()),i=new Uint8Array(t.privateKeyDataSize+5);for(let e=0;e<r.length;e++)i[e]=r[e];for(let e=0;e<4;e++)i[e+r.length]=o[e];return(0,t.binaryToBase58)(i)}throw e.type===c.r1||e.type===c.wa?new Error("Key format not supported in legacy conversion"):new Error("unrecognized public key format")};t.privateKeyToString=e=>{if(e.type===c.r1)return d(e,"R1","PVT_R1_");if(e.type===c.k1)return d(e,"K1","PVT_K1_");throw new Error("unrecognized private key format")}},1636:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pubToAddress=void 0;const a=r(8241),o=r(4790),n=r(9967);t.pubToAddress=function(e,t=!1){if((0,n.assertIsBytes)(e),t&&64!==e.length&&(e=a.secp256k1.ProjectivePoint.fromHex(e).toRawBytes(!1).slice(1)),64!==e.length)throw new Error("Expected pubKey to be of length 64");return(0,o.keccak256)(e).subarray(-20)}},6872:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bytesToBigInt=t.hexToBytes=t.bytesToHex=t.setLengthRight=t.setLengthLeft=t.concatBytes=t.zeros=void 0;const a=r(7706),o=r(9967),n=r(102),i=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0"))),s=[];for(let e=0;e<=65535;e++)s[e]=BigInt(e);t.zeros=e=>new Uint8Array(e);const c=(e,r,a)=>a?e.length<r?new Uint8Array([...e,...(0,t.zeros)(r-e.length)]):e.subarray(0,r):e.length<r?new Uint8Array([...(0,t.zeros)(r-e.length),...e]):e.subarray(-r);t.concatBytes=(...e)=>{if(1===e.length)return e[0];const t=e.reduce(((e,t)=>e+t.length),0),r=new Uint8Array(t);for(let t=0,a=0;t<e.length;t++){const o=e[t];r.set(o,a),a+=o.length}return r};t.setLengthLeft=(e,t)=>((0,o.assertIsBytes)(e),c(e,t,!1));t.setLengthRight=(e,t)=>((0,o.assertIsBytes)(e),c(e,t,!0));t.bytesToHex=e=>{let t="0x";if(void 0===e||0===e.length)return t;for(const r of e)t+=i[r];return t};t.hexToBytes=e=>{if("string"!=typeof e)throw new Error(`hex argument type ${typeof e} must be of type string`);if(!e.startsWith("0x"))throw new Error(`prefixed hex input should start with 0x, got ${e.substring(0,2)}`);(e=e.slice(2)).length%2!=0&&(e=(0,n.padToEven)(e));const t=e.length/2,r=new Uint8Array(t);for(let a=0;a<t;a++){const t=parseInt(e.slice(2*a,2*(a+1)),16);r[a]=t}return r};t.bytesToBigInt=e=>{const r=(0,t.bytesToHex)(e);return"0x"===r?a.BIGINT_0:4===r.length?s[e[0]]:6===r.length?s[256*e[0]+e[1]]:BigInt(r)}},7706:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BIGINT_27=t.BIGINT_2=t.BIGINT_1=t.BIGINT_0=void 0,t.BIGINT_0=BigInt(0),t.BIGINT_1=BigInt(1),t.BIGINT_2=BigInt(2),t.BIGINT_27=BigInt(27)},9967:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertIsBytes=void 0;t.assertIsBytes=function(e){if(!(e instanceof Uint8Array)){throw new Error(`This method only supports Uint8Array but input was: ${e}`)}}},102:(e,t)=>{"use strict";function r(e){if("string"!=typeof e)throw new Error("[isHexPrefixed] input must be type 'string', received type "+typeof e);return"0"===e[0]&&"x"===e[1]}Object.defineProperty(t,"__esModule",{value:!0}),t.stripHexPrefix=void 0,t.padToEven=function(e){let t=e;if("string"!=typeof t)throw new Error("[padToEven] value must be type 'string', received "+typeof t);t.length%2&&(t=`0${t}`);return t},t.isHexPrefixed=r;t.stripHexPrefix=e=>{if("string"!=typeof e)throw new Error("[stripHexPrefix] input must be type 'string', received "+typeof e);return r(e)?e.slice(2):e}},8169:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ecrecover=t.calculateSigRecovery=void 0,t.ecsign=function(e,t,r){const n=a.secp256k1.sign(e,t),i=n.toCompactRawBytes(),s=i.slice(0,32),c=i.slice(32,64),l=void 0===r?BigInt(n.recovery+27):BigInt(n.recovery+35)+BigInt(r)*o.BIGINT_2;return{r:s,s:c,v:l}};const a=r(8241),o=r(7706),n=r(6872);t.calculateSigRecovery=(e,t)=>e===o.BIGINT_0||e===o.BIGINT_1?e:void 0===t?e-o.BIGINT_27:e-(t*o.BIGINT_2+BigInt(35));t.ecrecover=function(e,r,i,s,c){const l=(0,n.concatBytes)((0,n.setLengthLeft)(i,32),(0,n.setLengthLeft)(s,32)),u=(0,t.calculateSigRecovery)(r,c);if(!function(e){return e===o.BIGINT_0||e===o.BIGINT_1}(u))throw new Error("Invalid signature v value");return a.secp256k1.Signature.fromCompact(l).addRecoveryBit(Number(u)).recoverPublicKey(e).toRawBytes(!1).slice(1)}},9980:function(e,t,r){"use strict";var a=r(9922).hp,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Factory=void 0;const n=r(5754),i=o(r(9637)),s=[1,225,75],c=(e,t)=>{if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0};const l=(...e)=>{const t=[];return e.forEach((e=>{if(void 0!==e.length)for(const r of e)t.push(r);else t.push(e)})),t};class u{constructor(e){this.sha256=e.sha256,this.alphabet=e.alphabet,this.codec=(0,i.default)(this.alphabet),this.base=this.alphabet.length}decode(e,t){const r=t.versions,a=t.versionTypes,o=this.decodeChecked(e);if(r.length>1&&!t.expectedLength)throw new Error("expectedLength is required because there are >= 2 possible versions");const n="number"==typeof r[0]?1:r[0].length,i=t.expectedLength||o.length-n,s=o.subarray(0,-i),l=o.subarray(-i);for(let e=0;e<r.length;e++){const t=Array.isArray(r[e])?r[e]:[r[e]];if(c(s,t))return{version:t,bytes:l,type:a?a[e]:null}}throw new Error("version_invalid: version bytes do not match any of the provided version(s)")}encode(e,t){const r=t.versions;return this.encodeVersioned(e,r,t.expectedLength)}encodeVersioned(e,t,r){if(r&&e.length!==r)throw new Error("unexpected_payload_length: bytes.length does not match expectedLength");return this.encodeChecked(a.from(l(t,e)))}encodeChecked(e){const t=this.sha256(this.sha256(e)).slice(0,4);return this.encodeRaw(a.from(l(e,t)))}encodeRaw(e){return this.codec.encode(e)}decodeChecked(e){const t=this.decodeRaw(e);if(t.length<5)throw new Error("invalid_input_size: decoded data must have length >= 5");if(!this.verifyCheckSum(t))throw new Error("checksum_invalid");return t.subarray(0,-4)}decodeRaw(e){return this.codec.decode(e)}verifyCheckSum(e){const t=this.sha256(this.sha256(e.subarray(0,-4))).subarray(0,4),r=e.subarray(-4);return c(t,r)}}t.Factory=e=>{const t=new u({sha256:e=>n.sha256.create().update(e).digest(),alphabet:e});return{decodeSeed:(e,r={versionTypes:["ed25519","secp256k1"],versions:[s,33],expectedLength:16})=>t.decode(e,r),isValidAddress:e=>{try{(e=>{const r={versions:[0],expectedLength:20};t.decode(e,r).bytes})(e)}catch(e){return!1}return!0},encodeAccountID:e=>{const r={versions:[0],expectedLength:20};return t.encode(e,r)},encodeSeed:(e,r)=>{if(16!==e.length)throw new Error("entropy must have length 16");const a={expectedLength:16,versions:"ed25519"===r?s:[33]};return t.encode(e,a)}}}},2783:(e,t,r)=>{"use strict";var a=r(9922).hp;Object.defineProperty(t,"__esModule",{value:!0}),t.Factory=void 0;const o=r(9980),n=r(502),i=r(5565),s=r(2979),c=r(5754),l=r(5673),u=r(8352),d=r(8241),f=r(4904),h=e=>s.sha512.create().update(e).digest().slice(0,32),p=e=>{const t=[];for(let r=0;r<e.length;r+=2)t.push(parseInt(e.substr(r,2),16));return t};const g="ED";t.Factory=e=>{const t=(0,o.Factory)(e),r={deriveKeypair:(e,t)=>{const r=(0,n.derivePrivateKey)(e,t),a=(0,i.bytesToHex)((0,i.numberToBytesBE)(r,32));return{privateKey:"00"+a,publicKey:d.secp256k1.ProjectivePoint.fromPrivateKey(a).toHex(!0)}},deriveKeypairWithPrivateKey:e=>{const t=e.toUpperCase();return{privateKey:"00"+t,publicKey:d.secp256k1.ProjectivePoint.fromPrivateKey(t).toHex(!0)}},sign(e,t){const r=h(Uint8Array.from(p(e)));return d.secp256k1.sign(r,t,{lowS:!0,extraEntropy:void 0}).toDERHex(!0).toUpperCase()},verify(e,t,r){const a=h(Uint8Array.from(p(e)));return d.secp256k1.verify(t,a,r)}},s={deriveKeypair:e=>{const t=h(e),r=(0,i.bytesToHex)(t),a=u.ed25519.getPublicKey(r);return{privateKey:g+r,publicKey:g+(0,i.bytesToHex)(a)}},deriveKeypairWithPrivateKey:e=>{const t=e.toUpperCase(),r=u.ed25519.getPublicKey(t);return{privateKey:g+t,publicKey:g+(0,i.bytesToHex)(r)}},sign(e,t){const r=u.ed25519.sign(e,t);return(0,i.bytesToHex)(r).toUpperCase()},verify:(e,t,r)=>u.ed25519.verify(e,a.from(t,"hex"),r)},m=(e,a)=>{if(e.startsWith("s")){const a=t.decodeSeed(e);return"secp256k1"===a.type?r.deriveKeypair(a.bytes):s.deriveKeypair(a.bytes)}if(64===e.length)return"ed25519"===a?s.deriveKeypairWithPrivateKey(e):r.deriveKeypairWithPrivateKey(e);if(66===e.length)return e.startsWith(g)?s.deriveKeypairWithPrivateKey(e.substring(2)):r.deriveKeypairWithPrivateKey(e.substring(2));throw new Error("deriving keypair requires valid private key")},b=e=>t.encodeAccountID(a.from((e=>{const t=c.sha256.create().update(e).digest();return l.ripemd160.create().update(t).digest()})(a.from((0,i.hexToBytes)(e)))));return{deriveKeyPair:m,isValidSecret:e=>{try{m(e)}catch(e){return!1}return!0},isValidAddress:t.isValidAddress,deriveAddress:b,generate:e=>{!function(e,t){if(!e)throw new Error(t||"Assertion failed")}(!e.entropy||e.entropy.length>=16,"entropy too short");const r=e.entropy?e.entropy.slice(0,16):(0,f.randomBytes)(16),a="ed25519"===e.algorithm?"ed25519":"secp256k1",o=t.encodeSeed(r,a),n=m(o);return{secret:o,address:b(n.publicKey)}},fromSecret:(e,t)=>{const r=m(e,t);return{secret:e,address:b(r.publicKey)}},addressCodec:t,hash:h,sign:(e,t)=>{const a=m(t);return t.startsWith(g)?s.sign(e,a.privateKey.substring(2)):r.sign(e,a.privateKey.substring(2))},verify:(e,t,a)=>66===a.length&&a.startsWith(g)?s.verify(e,t,a.substring(2)):r.verify(e,t,a)}}},2121:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=r(5565),o=r(2979);class n{constructor(){this.hash=o.sha512.create()}static half(e){return(new n).add(e).first256()}add(e){return this.hash.update(e),this}addU32(e){const t=new Uint8Array(4);return new DataView(t.buffer).setUint32(0,e),this.add(t)}finish(){return this.hash.digest()}first256(){return this.finish().slice(0,32)}first256BigInt(){return(0,a.bytesToNumberBE)(this.first256())}}t.default=n},502:function(e,t,r){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.derivePrivateKey=function(e,t={}){const r=t.validator,a=o.secp256k1.CURVE.n,n=s(e);if(r)return n;const i=o.secp256k1.ProjectivePoint.BASE.multiply(n).toRawBytes(!0),c=t.accountIndex||0;return(s(i,c)+n)%a};const o=r(8241),n=a(r(2121)),i=BigInt(0);function s(e,t){const r=o.secp256k1.CURVE.n;for(let a=0;a<=4294967295;a++){const o=(new n.default).add(e);void 0!==t&&o.addU32(t),o.addU32(a);const s=o.first256BigInt();if(s>i&&s<r)return s}throw new Error("impossible unicorn ;)")}},2737:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TRON_BIP39_PATH_INDEX_0=t.TRON_BIP39_PATH_PREFIX=t.ADDRESS_PREFIX_REGEX=t.ADDRESS_PREFIX_BYTE=t.ADDRESS_PREFIX=t.ADDRESS_SIZE=void 0,t.ADDRESS_SIZE=34,t.ADDRESS_PREFIX="41",t.ADDRESS_PREFIX_BYTE=65,t.ADDRESS_PREFIX_REGEX=/^(41)/,t.TRON_BIP39_PATH_PREFIX="m/44'/195'",t.TRON_BIP39_PATH_INDEX_0=t.TRON_BIP39_PATH_PREFIX+"/0'/0/0"},4409:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encode58=function(e){if(0===e.length)return"";let t,a;const n=[0];for(t=0;t<e.length;t++){for(a=0;a<n.length;a++)n[a]<<=8;n[0]+=e[t];let r=0;for(a=0;a<n.length;++a)n[a]+=r,r=n[a]/o|0,n[a]%=o;for(;r;)n.push(r%o),r=r/o|0}for(t=0;0===e[t]&&t<e.length-1;t++)n.push(0);return n.reverse().map((e=>r[e])).join("")},t.decode58=function(e){if(0===e.length)return[];let t,r;const n=[0];for(t=0;t<e.length;t++){const i=e[t];if(!(i in a))throw new Error("Non-base58 character");for(r=0;r<n.length;r++)n[r]*=o;n[0]+=a[i];let s=0;for(r=0;r<n.length;++r)n[r]+=s,s=n[r]>>8,n[r]&=255;for(;s;)n.push(255&s),s>>=8}for(t=0;"1"===e[t]&&t<e.length-1;t++)n.push(0);return n.reverse()};const r="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",a={};for(let e=0;e<r.length;e++)a[r.charAt(e)]=e;const o=58},306:(e,t)=>{"use strict";function r(e){if("number"!=typeof e)throw new Error("Input must be a number");if(e<0||e>255)throw new Error("Input must be a byte");const t="0123456789ABCDEF";let r="";return r+=t.charAt(e>>4),r+=t.charAt(15&e),r}Object.defineProperty(t,"__esModule",{value:!0}),t.byteArray2hexStr=function(e){let t="";for(let a=0;a<e.length;a++)t+=r(e[a]);return t},t.byte2hexStr=r},9660:(e,t)=>{"use strict";function r(e){return e>="A"&&e<="F"||e>="a"&&e<="f"||e>="0"&&e<="9"?1:0}function a(e){let t;if(e>="A"&&e<="F"?t=e.charCodeAt(0)-"A".charCodeAt(0)+10:e>="a"&&e<="f"?t=e.charCodeAt(0)-"a".charCodeAt(0)+10:e>="0"&&e<="9"&&(t=e.charCodeAt(0)-"0".charCodeAt(0)),"number"==typeof t)return t;throw new Error("The passed hex char is not a valid hex char")}Object.defineProperty(t,"__esModule",{value:!0}),t.isHexChar=r,t.hexChar2byte=a,t.hexStr2byteArray=function(e,t=!1){if("string"!=typeof e)throw new Error("The passed string is not a string");let o=e.length;t&&o%2&&(e=`0${e}`,o++);const n=[];let i=0,s=0,c=0;for(let t=0;t<o;t++){const o=e.charAt(t);if(!r(o))throw new Error("The passed hex char is not a valid hex string");i<<=4,i+=a(o),s++,0==s%2&&(n[c++]=i,i=0)}return n}},4856:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBase58CheckAddress=l,t.isAddressValid=function(e){if("string"!=typeof e)return!1;if(e.length!==a.ADDRESS_SIZE)return!1;let t=(0,n.decode58)(e);if(25!==t.length)return!1;if(t[0]!==a.ADDRESS_PREFIX_BYTE)return!1;const r=t.slice(21);t=t.slice(0,21);const o=h(t),i=h(o).slice(0,4);if(r[0]==i[0]&&r[1]==i[1]&&r[2]==i[2]&&r[3]==i[3])return!0;return!1},t.computeAddress=u,t.getAddressFromPriKey=d,t.getPubKeyFromPriKey=f,t.SHA256=h,t.pkToAddress=function(e,t=!1){const r=(0,o.hexStr2byteArray)(e,t);return l(d(r))};const a=r(2737),o=r(9660),n=r(4409),i=r(306),s=r(8241),c=r(7256);function l(e){const t=h(e);let r=h(t).slice(0,4);return r=e.concat(r),(0,n.encode58)(r)}function u(e){65===e.length&&(e=e.slice(1));const t=(0,c.keccak256)(new Uint8Array(e)).toString().substring(2),r=a.ADDRESS_PREFIX+t.substring(24);return(0,o.hexStr2byteArray)(r)}function d(e){return u(f(e))}function f(e){const t=s.secp256k1.ProjectivePoint.fromPrivateKey(new Uint8Array(function(e){return(0,o.hexStr2byteArray)((0,i.byteArray2hexStr)(e).padStart(64,"0"))}(e))),r=t.x,a=t.y,n=`04${r.toString(16).padStart(64,"0")}${a.toString(16).padStart(64,"0")}`;return(0,o.hexStr2byteArray)(n)}function h(e){const t=(0,i.byteArray2hexStr)(e),r=(0,c.sha256)("0x"+t).replace(/^0x/,"");return(0,o.hexStr2byteArray)(r)}},1630:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TRON_MESSAGE_PREFIX=void 0,t.hashMessage=u,t.signMessage=function(e,t){t.match(/^0x/)||(t="0x"+t);const r=new i.SigningKey(t),a=u(e),o=r.sign(a);return l(o)},t.verifyMessage=function(e,t){t.match(/^0x/)||(t="0x"+t);const r=(0,s.recoverAddress)(u(e),t);return(0,o.getBase58CheckAddress)((0,n.hexStr2byteArray)(r.replace(/^0x/,a.ADDRESS_PREFIX)))};const a=r(2737),o=r(4856),n=r(9660),i=r(7256),s=r(4927),c=r(1490),l=e=>i.Signature.from(e).serialized;function u(e){return"string"==typeof e&&(e=(0,c.toUtf8Bytes)(e)),Array.isArray(e)&&(e=new Uint8Array(e)),(0,i.keccak256)((0,c.concat)([(0,c.toUtf8Bytes)(t.TRON_MESSAGE_PREFIX),(0,c.toUtf8Bytes)(String(e.length)),e]))}t.TRON_MESSAGE_PREFIX="TRON Signed Message:\n"},1613:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.Alphabet=void 0,function(e){e.JINGTUM="jpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65rkm8oFqi1tuvAxyz",e.SWT="jpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65rkm8oFqi1tuvAxyz",e.RIPPLE="rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz",e.CALL="cpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2brdeCg65jkm8oFqi1tuvAxyz",e.STREAM="vpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1turAxyz",e.BVCADT="bpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2rcdeCg65jkm8oFqi1tuvAxyz",e.BIZAIN="bpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2jcdeCg65rkm8oFqi1tuvAxyz",e.XRP="rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz",e.SWTC="jpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65rkm8oFqi1tuvAxyz"}(r||(t.Alphabet=r={}))},2857:function(e,t,r){"use strict";var a=r(9922).hp,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.encryptWallet=t.encryptContact=t.encrypt=t.decrypt=t.isEmptyPlainObject=void 0;const n=r(4790),i=r(3497),s=r(4904),c=r(8814),l=r(3554),u=o(r(7043));t.isEmptyPlainObject=e=>!(0,u.default)(e)||0===Object.keys(e).length;t.decrypt=async(e,r)=>{if((0,t.isEmptyPlainObject)(r)||(0,t.isEmptyPlainObject)(r.crypto)||(0,t.isEmptyPlainObject)(r.crypto.kdfparams))throw new Error(l.KEYSTORE_IS_INVALID);const o=a.from(r.crypto.iv,"hex"),s=r.crypto.kdfparams,u=(0,c.scrypt)(a.from(e),a.from(s.salt,"hex"),{N:s.n,r:s.r,p:s.p,dkLen:s.dklen}),d=a.from(r.ciphertext,"hex"),f=n.keccak256.create().update(a.concat([u.slice(16,32),d])).digest();if(a.from(f).toString("hex")!==r.mac)throw new Error(l.PASSWORD_IS_WRONG);const h=await(0,i.decrypt)(d,u.slice(0,16),o,"aes-128-ctr");return a.from(h)};const d=async(e,t,r)=>{const o=r.iv||a.from((0,s.randomBytes)(16)).toString("hex"),l={dklen:r.dklen||32,n:r.n||4096,p:r.p||1,r:r.r||8,salt:r.salt||a.from((0,s.randomBytes)(32)).toString("hex")},u=(0,c.scrypt)(a.from(e),a.from(l.salt,"hex"),{N:l.n,r:l.r,p:l.p,dkLen:l.dklen}),d=await(0,i.encrypt)(a.from(t),u.slice(0,16),a.from(o,"hex"),"aes-128-ctr"),f=n.keccak256.create().update(a.concat([u.slice(16,32),d])).digest();return{ciphertext:a.from(d).toString("hex"),crypto:{cipher:r.cipher||"aes-128-ctr",iv:o,kdf:"scrypt",kdfparams:l},mac:a.from(f).toString("hex")}};t.encrypt=d;t.encryptContact=async(e,t,r={})=>await d(e,JSON.stringify(t),r);t.encryptWallet=async(e,t,r={})=>{const a=await d(e,t.secret,r);return a.type=t.type||"swt",a.address=t.address,a.default="boolean"!=typeof t.default||t.default,a.alias=t.alias||"",a}},5197:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="6.13.1"},91:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getIcapAddress=t.getAddress=void 0;const a=r(7256),o=r(1490),n=BigInt(0),i=BigInt(36);function s(e){const t=(e=e.toLowerCase()).substring(2).split(""),r=new Uint8Array(40);for(let e=0;e<40;e++)r[e]=t[e].charCodeAt(0);const n=(0,o.getBytes)((0,a.keccak256)(r));for(let e=0;e<40;e+=2)n[e>>1]>>4>=8&&(t[e]=t[e].toUpperCase()),(15&n[e>>1])>=8&&(t[e+1]=t[e+1].toUpperCase());return"0x"+t.join("")}const c={};for(let e=0;e<10;e++)c[String(e)]=String(e);for(let e=0;e<26;e++)c[String.fromCharCode(65+e)]=String(10+e);const l=15;function u(e){let t=(e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+"00").split("").map((e=>c[e])).join("");for(;t.length>=l;){let e=t.substring(0,l);t=parseInt(e,10)%97+t.substring(e.length)}let r=String(98-parseInt(t,10)%97);for(;r.length<2;)r="0"+r;return r}const d=function(){const e={};for(let t=0;t<36;t++){e["0123456789abcdefghijklmnopqrstuvwxyz"[t]]=BigInt(t)}return e}();function f(e){if((0,o.assertArgument)("string"==typeof e,"invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/)){e.startsWith("0x")||(e="0x"+e);const t=s(e);return(0,o.assertArgument)(!e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)||t===e,"bad address checksum","address",e),t}if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){(0,o.assertArgument)(e.substring(2,4)===u(e),"bad icap checksum","address",e);let t=function(e){e=e.toLowerCase();let t=n;for(let r=0;r<e.length;r++)t=t*i+d[e[r]];return t}(e.substring(4)).toString(16);for(;t.length<40;)t="0"+t;return s("0x"+t)}(0,o.assertArgument)(!1,"invalid address","address",e)}t.getAddress=f,t.getIcapAddress=function(e){let t=BigInt(f(e)).toString(36).toUpperCase();for(;t.length<30;)t="0"+t;return"XE"+u("XE00"+t)+t}},6262:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveAddress=t.isAddress=t.isAddressable=void 0;const a=r(1490),o=r(91);function n(e){return e&&"function"==typeof e.getAddress}async function i(e,t){const r=await t;return null!=r&&"0x0000000000000000000000000000000000000000"!==r||((0,a.assert)("string"!=typeof e,"unconfigured name","UNCONFIGURED_NAME",{value:e}),(0,a.assertArgument)(!1,"invalid AddressLike value; did not resolve to a value address","target",e)),(0,o.getAddress)(r)}t.isAddressable=n,t.isAddress=function(e){try{return(0,o.getAddress)(e),!0}catch(e){}return!1},t.resolveAddress=function(e,t){return"string"==typeof e?e.match(/^0x[0-9a-f]{40}$/i)?(0,o.getAddress)(e):((0,a.assert)(null!=t,"ENS resolution requires a provider","UNSUPPORTED_OPERATION",{operation:"resolveName"}),i(e,t.resolveName(e))):n(e)?i(e,e.getAddress()):e&&"function"==typeof e.then?i(e,e):void(0,a.assertArgument)(!1,"unsupported addressable value","target",e)}},2348:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCreate2Address=t.getCreateAddress=void 0;const a=r(7256),o=r(1490),n=r(91);t.getCreateAddress=function(e){const t=(0,n.getAddress)(e.from);let r=(0,o.getBigInt)(e.nonce,"tx.nonce").toString(16);return r="0"===r?"0x":r.length%2?"0x0"+r:"0x"+r,(0,n.getAddress)((0,o.dataSlice)((0,a.keccak256)((0,o.encodeRlp)([t,r])),12))},t.getCreate2Address=function(e,t,r){const i=(0,n.getAddress)(e),s=(0,o.getBytes)(t,"salt"),c=(0,o.getBytes)(r,"initCodeHash");return(0,o.assertArgument)(32===s.length,"salt must be 32 bytes","salt",t),(0,o.assertArgument)(32===c.length,"initCodeHash must be 32 bytes","initCodeHash",r),(0,n.getAddress)((0,o.dataSlice)((0,a.keccak256)((0,o.concat)(["0xff",i,s,c])),12))}},4815:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveAddress=t.isAddress=t.isAddressable=t.getCreate2Address=t.getCreateAddress=t.getIcapAddress=t.getAddress=void 0;var a=r(91);Object.defineProperty(t,"getAddress",{enumerable:!0,get:function(){return a.getAddress}}),Object.defineProperty(t,"getIcapAddress",{enumerable:!0,get:function(){return a.getIcapAddress}});var o=r(2348);Object.defineProperty(t,"getCreateAddress",{enumerable:!0,get:function(){return o.getCreateAddress}}),Object.defineProperty(t,"getCreate2Address",{enumerable:!0,get:function(){return o.getCreate2Address}});var n=r(6262);Object.defineProperty(t,"isAddressable",{enumerable:!0,get:function(){return n.isAddressable}}),Object.defineProperty(t,"isAddress",{enumerable:!0,get:function(){return n.isAddress}}),Object.defineProperty(t,"resolveAddress",{enumerable:!0,get:function(){return n.resolveAddress}})},4138:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ZeroAddress=void 0,t.ZeroAddress="0x0000000000000000000000000000000000000000"},9092:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ZeroHash=void 0,t.ZeroHash="0x0000000000000000000000000000000000000000000000000000000000000000"},1678:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessagePrefix=t.EtherSymbol=t.MaxInt256=t.MinInt256=t.MaxUint256=t.WeiPerEther=t.N=t.ZeroHash=t.ZeroAddress=void 0;var a=r(4138);Object.defineProperty(t,"ZeroAddress",{enumerable:!0,get:function(){return a.ZeroAddress}});var o=r(9092);Object.defineProperty(t,"ZeroHash",{enumerable:!0,get:function(){return o.ZeroHash}});var n=r(4660);Object.defineProperty(t,"N",{enumerable:!0,get:function(){return n.N}}),Object.defineProperty(t,"WeiPerEther",{enumerable:!0,get:function(){return n.WeiPerEther}}),Object.defineProperty(t,"MaxUint256",{enumerable:!0,get:function(){return n.MaxUint256}}),Object.defineProperty(t,"MinInt256",{enumerable:!0,get:function(){return n.MinInt256}}),Object.defineProperty(t,"MaxInt256",{enumerable:!0,get:function(){return n.MaxInt256}});var i=r(4907);Object.defineProperty(t,"EtherSymbol",{enumerable:!0,get:function(){return i.EtherSymbol}}),Object.defineProperty(t,"MessagePrefix",{enumerable:!0,get:function(){return i.MessagePrefix}})},4660:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MaxInt256=t.MinInt256=t.MaxUint256=t.WeiPerEther=t.N=void 0,t.N=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),t.WeiPerEther=BigInt("1000000000000000000"),t.MaxUint256=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),t.MinInt256=BigInt("0x8000000000000000000000000000000000000000000000000000000000000000")*BigInt(-1),t.MaxInt256=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff")},4907:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessagePrefix=t.EtherSymbol=void 0,t.EtherSymbol="Ξ",t.MessagePrefix="Ethereum Signed Message:\n"},6710:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomBytes=t.pbkdf2Sync=t.createHmac=t.createHash=void 0;const a=r(1062),o=r(592),n=r(5754),i=r(2979),s=r(1490);const c=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==r.g)return r.g;throw new Error("unable to locate global object")}(),l=c.crypto||c.msCrypto;t.createHash=function(e){switch(e){case"sha256":return n.sha256.create();case"sha512":return i.sha512.create()}(0,s.assertArgument)(!1,"invalid hashing algorithm name","algorithm",e)},t.createHmac=function(e,t){const r={sha256:n.sha256,sha512:i.sha512}[e];return(0,s.assertArgument)(null!=r,"invalid hmac algorithm","algorithm",e),a.hmac.create(r,t)},t.pbkdf2Sync=function(e,t,r,a,c){const l={sha256:n.sha256,sha512:i.sha512}[c];return(0,s.assertArgument)(null!=l,"invalid pbkdf2 algorithm","algorithm",c),(0,o.pbkdf2)(l,e,t,{c:r,dkLen:a})},t.randomBytes=function(e){(0,s.assert)(null!=l,"platform does not support secure random numbers","UNSUPPORTED_OPERATION",{operation:"randomBytes"}),(0,s.assertArgument)(Number.isInteger(e)&&e>0&&e<=1024,"invalid length","length",e);const t=new Uint8Array(e);return l.getRandomValues(t),t}},9661:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.computeHmac=void 0;const a=r(6710),o=r(1490);let n=!1;const i=function(e,t,r){return(0,a.createHmac)(e,t).update(r).digest()};let s=i;function c(e,t,r){const a=(0,o.getBytes)(t,"key"),n=(0,o.getBytes)(r,"data");return(0,o.hexlify)(s(e,a,n))}t.computeHmac=c,c._=i,c.lock=function(){n=!0},c.register=function(e){if(n)throw new Error("computeHmac is locked");s=e},Object.freeze(c)},7256:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lock=t.Signature=t.SigningKey=t.scryptSync=t.scrypt=t.pbkdf2=t.sha512=t.sha256=t.ripemd160=t.keccak256=t.randomBytes=t.computeHmac=void 0;const a=r(9661);Object.defineProperty(t,"computeHmac",{enumerable:!0,get:function(){return a.computeHmac}});const o=r(7340);Object.defineProperty(t,"keccak256",{enumerable:!0,get:function(){return o.keccak256}});const n=r(9236);Object.defineProperty(t,"ripemd160",{enumerable:!0,get:function(){return n.ripemd160}});const i=r(1831);Object.defineProperty(t,"pbkdf2",{enumerable:!0,get:function(){return i.pbkdf2}});const s=r(733);Object.defineProperty(t,"randomBytes",{enumerable:!0,get:function(){return s.randomBytes}});const c=r(4429);Object.defineProperty(t,"scrypt",{enumerable:!0,get:function(){return c.scrypt}}),Object.defineProperty(t,"scryptSync",{enumerable:!0,get:function(){return c.scryptSync}});const l=r(7526);Object.defineProperty(t,"sha256",{enumerable:!0,get:function(){return l.sha256}}),Object.defineProperty(t,"sha512",{enumerable:!0,get:function(){return l.sha512}});var u=r(2469);Object.defineProperty(t,"SigningKey",{enumerable:!0,get:function(){return u.SigningKey}});var d=r(4054);Object.defineProperty(t,"Signature",{enumerable:!0,get:function(){return d.Signature}}),t.lock=function(){a.computeHmac.lock(),o.keccak256.lock(),i.pbkdf2.lock(),s.randomBytes.lock(),n.ripemd160.lock(),c.scrypt.lock(),c.scryptSync.lock(),l.sha256.lock(),l.sha512.lock(),s.randomBytes.lock()}},7340:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keccak256=void 0;const a=r(6526),o=r(1490);let n=!1;const i=function(e){return(0,a.keccak_256)(e)};let s=i;function c(e){const t=(0,o.getBytes)(e,"data");return(0,o.hexlify)(s(t))}t.keccak256=c,c._=i,c.lock=function(){n=!0},c.register=function(e){if(n)throw new TypeError("keccak256 is locked");s=e},Object.freeze(c)},1831:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pbkdf2=void 0;const a=r(6710),o=r(1490);let n=!1;const i=function(e,t,r,o,n){return(0,a.pbkdf2Sync)(e,t,r,o,n)};let s=i;function c(e,t,r,a,n){const i=(0,o.getBytes)(e,"password"),c=(0,o.getBytes)(t,"salt");return(0,o.hexlify)(s(i,c,r,a,n))}t.pbkdf2=c,c._=i,c.lock=function(){n=!0},c.register=function(e){if(n)throw new Error("pbkdf2 is locked");s=e},Object.freeze(c)},733:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomBytes=void 0;const a=r(6710);let o=!1;const n=function(e){return new Uint8Array((0,a.randomBytes)(e))};let i=n;function s(e){return i(e)}t.randomBytes=s,s._=n,s.lock=function(){o=!0},s.register=function(e){if(o)throw new Error("randomBytes is locked");i=e},Object.freeze(s)},9236:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ripemd160=void 0;const a=r(5673),o=r(1490);let n=!1;const i=function(e){return(0,a.ripemd160)(e)};let s=i;function c(e){const t=(0,o.getBytes)(e,"data");return(0,o.hexlify)(s(t))}t.ripemd160=c,c._=i,c.lock=function(){n=!0},c.register=function(e){if(n)throw new TypeError("ripemd160 is locked");s=e},Object.freeze(c)},4429:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scryptSync=t.scrypt=void 0;const a=r(8814),o=r(1490);let n=!1,i=!1;const s=async function(e,t,r,o,n,i,s){return await(0,a.scryptAsync)(e,t,{N:r,r:o,p:n,dkLen:i,onProgress:s})},c=function(e,t,r,o,n,i){return(0,a.scrypt)(e,t,{N:r,r:o,p:n,dkLen:i})};let l=s,u=c;async function d(e,t,r,a,n,i,s){const c=(0,o.getBytes)(e,"passwd"),u=(0,o.getBytes)(t,"salt");return(0,o.hexlify)(await l(c,u,r,a,n,i,s))}function f(e,t,r,a,n,i){const s=(0,o.getBytes)(e,"passwd"),c=(0,o.getBytes)(t,"salt");return(0,o.hexlify)(u(s,c,r,a,n,i))}t.scrypt=d,d._=s,d.lock=function(){i=!0},d.register=function(e){if(i)throw new Error("scrypt is locked");l=e},Object.freeze(d),t.scryptSync=f,f._=c,f.lock=function(){n=!0},f.register=function(e){if(n)throw new Error("scryptSync is locked");u=e},Object.freeze(f)},7526:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha512=t.sha256=void 0;const a=r(6710),o=r(1490),n=function(e){return(0,a.createHash)("sha256").update(e).digest()},i=function(e){return(0,a.createHash)("sha512").update(e).digest()};let s=n,c=i,l=!1,u=!1;function d(e){const t=(0,o.getBytes)(e,"data");return(0,o.hexlify)(s(t))}function f(e){const t=(0,o.getBytes)(e,"data");return(0,o.hexlify)(c(t))}t.sha256=d,d._=n,d.lock=function(){l=!0},d.register=function(e){if(l)throw new Error("sha256 is locked");s=e},Object.freeze(d),t.sha512=f,f._=i,f.lock=function(){u=!0},f.register=function(e){if(u)throw new Error("sha512 is locked");c=e},Object.freeze(d)},4054:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Signature=void 0;const a=r(1678),o=r(1490),n=BigInt(0),i=BigInt(1),s=BigInt(2),c=BigInt(27),l=BigInt(28),u=BigInt(35),d={};function f(e){return(0,o.zeroPadValue)((0,o.toBeArray)(e),32)}class h{#e;#t;#r;#a;get r(){return this.#e}set r(e){(0,o.assertArgument)(32===(0,o.dataLength)(e),"invalid r","value",e),this.#e=(0,o.hexlify)(e)}get s(){return this.#t}set s(e){(0,o.assertArgument)(32===(0,o.dataLength)(e),"invalid s","value",e);const t=(0,o.hexlify)(e);(0,o.assertArgument)(parseInt(t.substring(0,3))<8,"non-canonical s","value",t),this.#t=t}get v(){return this.#r}set v(e){const t=(0,o.getNumber)(e,"value");(0,o.assertArgument)(27===t||28===t,"invalid v","v",e),this.#r=t}get networkV(){return this.#a}get legacyChainId(){const e=this.networkV;return null==e?null:h.getChainId(e)}get yParity(){return 27===this.v?0:1}get yParityAndS(){const e=(0,o.getBytes)(this.s);return this.yParity&&(e[0]|=128),(0,o.hexlify)(e)}get compactSerialized(){return(0,o.concat)([this.r,this.yParityAndS])}get serialized(){return(0,o.concat)([this.r,this.s,this.yParity?"0x1c":"0x1b"])}constructor(e,t,r,a){(0,o.assertPrivate)(e,d,"Signature"),this.#e=t,this.#t=r,this.#r=a,this.#a=null}[Symbol.for("nodejs.util.inspect.custom")](){return`Signature { r: "${this.r}", s: "${this.s}", yParity: ${this.yParity}, networkV: ${this.networkV} }`}clone(){const e=new h(d,this.r,this.s,this.v);return this.networkV&&(e.#a=this.networkV),e}toJSON(){const e=this.networkV;return{_type:"signature",networkV:null!=e?e.toString():null,r:this.r,s:this.s,v:this.v}}static getChainId(e){const t=(0,o.getBigInt)(e,"v");return t==c||t==l?n:((0,o.assertArgument)(t>=u,"invalid EIP-155 v","v",e),(t-u)/s)}static getChainIdV(e,t){return(0,o.getBigInt)(e)*s+BigInt(35+t-27)}static getNormalizedV(e){const t=(0,o.getBigInt)(e);return t===n||t===c?27:t===i||t===l?28:((0,o.assertArgument)(t>=u,"invalid v","v",e),t&i?27:28)}static from(e){function t(t,r){(0,o.assertArgument)(t,r,"signature",e)}if(null==e)return new h(d,a.ZeroHash,a.ZeroHash,27);if("string"==typeof e){const r=(0,o.getBytes)(e,"signature");if(64===r.length){const e=(0,o.hexlify)(r.slice(0,32)),t=r.slice(32,64),a=128&t[0]?28:27;return t[0]&=127,new h(d,e,(0,o.hexlify)(t),a)}if(65===r.length){const e=(0,o.hexlify)(r.slice(0,32)),a=r.slice(32,64);t(!(128&a[0]),"non-canonical s");const n=h.getNormalizedV(r[64]);return new h(d,e,(0,o.hexlify)(a),n)}t(!1,"invalid raw signature length")}if(e instanceof h)return e.clone();const r=e.r;t(null!=r,"missing r");const n=f(r),i=function(e,r){if(null!=e)return f(e);if(null!=r){t((0,o.isHexString)(r,32),"invalid yParityAndS");const e=(0,o.getBytes)(r);return e[0]&=127,(0,o.hexlify)(e)}t(!1,"missing s")}(e.s,e.yParityAndS);t(!(128&(0,o.getBytes)(i)[0]),"non-canonical s");const{networkV:s,v:c}=function(e,r,a){if(null!=e){const t=(0,o.getBigInt)(e);return{networkV:t>=u?t:void 0,v:h.getNormalizedV(t)}}if(null!=r)return t((0,o.isHexString)(r,32),"invalid yParityAndS"),{v:128&(0,o.getBytes)(r)[0]?28:27};if(null!=a){switch((0,o.getNumber)(a,"sig.yParity")){case 0:return{v:27};case 1:return{v:28}}t(!1,"invalid yParity")}t(!1,"missing v")}(e.v,e.yParityAndS,e.yParity),l=new h(d,n,i,c);return s&&(l.#a=s),t(null==e.yParity||(0,o.getNumber)(e.yParity,"sig.yParity")===l.yParity,"yParity mismatch"),t(null==e.yParityAndS||e.yParityAndS===l.yParityAndS,"yParityAndS mismatch"),l}}t.Signature=h},2469:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SigningKey=void 0;const a=r(8241),o=r(1490),n=r(4054);class i{#o;constructor(e){(0,o.assertArgument)(32===(0,o.dataLength)(e),"invalid private key","privateKey","[REDACTED]"),this.#o=(0,o.hexlify)(e)}get privateKey(){return this.#o}get publicKey(){return i.computePublicKey(this.#o)}get compressedPublicKey(){return i.computePublicKey(this.#o,!0)}sign(e){(0,o.assertArgument)(32===(0,o.dataLength)(e),"invalid digest length","digest",e);const t=a.secp256k1.sign((0,o.getBytesCopy)(e),(0,o.getBytesCopy)(this.#o),{lowS:!0});return n.Signature.from({r:(0,o.toBeHex)(t.r,32),s:(0,o.toBeHex)(t.s,32),v:t.recovery?28:27})}computeSharedSecret(e){const t=i.computePublicKey(e);return(0,o.hexlify)(a.secp256k1.getSharedSecret((0,o.getBytesCopy)(this.#o),(0,o.getBytes)(t),!1))}static computePublicKey(e,t){let r=(0,o.getBytes)(e,"key");if(32===r.length){const e=a.secp256k1.getPublicKey(r,!!t);return(0,o.hexlify)(e)}if(64===r.length){const e=new Uint8Array(65);e[0]=4,e.set(r,1),r=e}const n=a.secp256k1.ProjectivePoint.fromHex(r);return(0,o.hexlify)(n.toRawBytes(t))}static recoverPublicKey(e,t){(0,o.assertArgument)(32===(0,o.dataLength)(e),"invalid digest length","digest",e);const r=n.Signature.from(t);let i=a.secp256k1.Signature.fromCompact((0,o.getBytesCopy)((0,o.concat)([r.r,r.s])));i=i.addRecoveryBit(r.yParity);const s=i.recoverPublicKey((0,o.getBytesCopy)(e));return(0,o.assertArgument)(null!=s,"invalid signautre for digest","signature",t),"0x"+s.toHex(!1)}static addPoints(e,t,r){const o=a.secp256k1.ProjectivePoint.fromHex(i.computePublicKey(e).substring(2)),n=a.secp256k1.ProjectivePoint.fromHex(i.computePublicKey(t).substring(2));return"0x"+o.add(n).toHex(!!r)}}t.SigningKey=i},9493:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.accessListify=void 0;const a=r(4815),o=r(1490);function n(e,t){return{address:(0,a.getAddress)(e),storageKeys:t.map(((e,t)=>((0,o.assertArgument)((0,o.isHexString)(e,32),"invalid slot",`storageKeys[${t}]`,e),e.toLowerCase())))}}t.accessListify=function(e){if(Array.isArray(e))return e.map(((t,r)=>Array.isArray(t)?((0,o.assertArgument)(2===t.length,"invalid slot set",`value[${r}]`,t),n(t[0],t[1])):((0,o.assertArgument)(null!=t&&"object"==typeof t,"invalid address-slot set","value",e),n(t.address,t.storageKeys))));(0,o.assertArgument)(null!=e&&"object"==typeof e,"invalid access list","value",e);const t=Object.keys(e).map((t=>{const r=e[t].reduce(((e,t)=>(e[t]=!0,e)),{});return n(t,Object.keys(r).sort())}));return t.sort(((e,t)=>e.address.localeCompare(t.address))),t}},8283:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.recoverAddress=t.computeAddress=void 0;const a=r(4815),o=r(7256);function n(e){let t;return t="string"==typeof e?o.SigningKey.computePublicKey(e,!1):e.publicKey,(0,a.getAddress)((0,o.keccak256)("0x"+t.substring(4)).substring(26))}t.computeAddress=n,t.recoverAddress=function(e,t){return n(o.SigningKey.recoverPublicKey(e,t))}},4927:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Transaction=t.recoverAddress=t.computeAddress=t.accessListify=void 0;var a=r(9493);Object.defineProperty(t,"accessListify",{enumerable:!0,get:function(){return a.accessListify}});var o=r(8283);Object.defineProperty(t,"computeAddress",{enumerable:!0,get:function(){return o.computeAddress}}),Object.defineProperty(t,"recoverAddress",{enumerable:!0,get:function(){return o.recoverAddress}});var n=r(2083);Object.defineProperty(t,"Transaction",{enumerable:!0,get:function(){return n.Transaction}})},2083:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Transaction=void 0;const a=r(4815),o=r(4138),n=r(7256),i=r(1490),s=r(9493),c=r(8283),l=BigInt(0),u=BigInt(2),d=BigInt(27),f=BigInt(28),h=BigInt(35),p=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),g=131072;function m(e,t){let r=e.toString(16);for(;r.length<2;)r="0"+r;return r+=(0,n.sha256)(t).substring(4),"0x"+r}function b(e){return"0x"===e?null:(0,a.getAddress)(e)}function y(e,t){try{return(0,s.accessListify)(e)}catch(r){(0,i.assertArgument)(!1,r.message,t,e)}}function v(e,t){return"0x"===e?0:(0,i.getNumber)(e,t)}function w(e,t){if("0x"===e)return l;const r=(0,i.getBigInt)(e,t);return(0,i.assertArgument)(r<=p,"value exceeds uint size",t,r),r}function k(e,t){const r=(0,i.getBigInt)(e,"value"),a=(0,i.toBeArray)(r);return(0,i.assertArgument)(a.length<=32,"value too large",`tx.${t}`,r),a}function E(e){return(0,s.accessListify)(e).map((e=>[e.address,e.storageKeys]))}function B(e,t){(0,i.assertArgument)(Array.isArray(e),`invalid ${t}`,"value",e);for(let t=0;t<e.length;t++)(0,i.assertArgument)((0,i.isHexString)(e[t],32),"invalid ${ param } hash",`value[${t}]`,e[t]);return e}function x(e,t){let r;try{if(r=v(t[0],"yParity"),0!==r&&1!==r)throw new Error("bad yParity")}catch(e){(0,i.assertArgument)(!1,"invalid yParity","yParity",t[0])}const a=(0,i.zeroPadValue)(t[1],32),o=(0,i.zeroPadValue)(t[2],32),s=n.Signature.from({r:a,s:o,yParity:r});e.signature=s}class A{#n;#i;#s;#c;#l;#u;#d;#f;#h;#p;#g;#m;#b;#y;#v;#w;get type(){return this.#n}set type(e){switch(e){case null:this.#n=null;break;case 0:case"legacy":this.#n=0;break;case 1:case"berlin":case"eip-2930":this.#n=1;break;case 2:case"london":case"eip-1559":this.#n=2;break;case 3:case"cancun":case"eip-4844":this.#n=3;break;default:(0,i.assertArgument)(!1,"unsupported transaction type","type",e)}}get typeName(){switch(this.type){case 0:return"legacy";case 1:return"eip-2930";case 2:return"eip-1559";case 3:return"eip-4844"}return null}get to(){const e=this.#i;return null==e&&3===this.type?o.ZeroAddress:e}set to(e){this.#i=null==e?null:(0,a.getAddress)(e)}get nonce(){return this.#c}set nonce(e){this.#c=(0,i.getNumber)(e,"value")}get gasLimit(){return this.#l}set gasLimit(e){this.#l=(0,i.getBigInt)(e)}get gasPrice(){const e=this.#u;return null!=e||0!==this.type&&1!==this.type?e:l}set gasPrice(e){this.#u=null==e?null:(0,i.getBigInt)(e,"gasPrice")}get maxPriorityFeePerGas(){const e=this.#d;return null==e?2===this.type||3===this.type?l:null:e}set maxPriorityFeePerGas(e){this.#d=null==e?null:(0,i.getBigInt)(e,"maxPriorityFeePerGas")}get maxFeePerGas(){const e=this.#f;return null==e?2===this.type||3===this.type?l:null:e}set maxFeePerGas(e){this.#f=null==e?null:(0,i.getBigInt)(e,"maxFeePerGas")}get data(){return this.#s}set data(e){this.#s=(0,i.hexlify)(e)}get value(){return this.#h}set value(e){this.#h=(0,i.getBigInt)(e,"value")}get chainId(){return this.#p}set chainId(e){this.#p=(0,i.getBigInt)(e)}get signature(){return this.#g||null}set signature(e){this.#g=null==e?null:n.Signature.from(e)}get accessList(){const e=this.#m||null;return null==e?1===this.type||2===this.type||3===this.type?[]:null:e}set accessList(e){this.#m=null==e?null:(0,s.accessListify)(e)}get maxFeePerBlobGas(){const e=this.#b;return null==e&&3===this.type?l:e}set maxFeePerBlobGas(e){this.#b=null==e?null:(0,i.getBigInt)(e,"maxFeePerBlobGas")}get blobVersionedHashes(){let e=this.#y;return null==e&&3===this.type?[]:e}set blobVersionedHashes(e){if(null!=e){(0,i.assertArgument)(Array.isArray(e),"blobVersionedHashes must be an Array","value",e),e=e.slice();for(let t=0;t<e.length;t++)(0,i.assertArgument)((0,i.isHexString)(e[t],32),"invalid blobVersionedHash",`value[${t}]`,e[t])}this.#y=e}get blobs(){return null==this.#w?null:this.#w.map((e=>Object.assign({},e)))}set blobs(e){if(null==e)return void(this.#w=null);const t=[],r=[];for(let a=0;a<e.length;a++){const o=e[a];if((0,i.isBytesLike)(o)){(0,i.assert)(this.#v,"adding a raw blob requires a KZG library","UNSUPPORTED_OPERATION",{operation:"set blobs()"});let e=(0,i.getBytes)(o);if((0,i.assertArgument)(e.length<=g,"blob is too large",`blobs[${a}]`,o),e.length!==g){const t=new Uint8Array(g);t.set(e),e=t}const n=this.#v.blobToKzgCommitment(e),s=(0,i.hexlify)(this.#v.computeBlobKzgProof(e,n));t.push({data:(0,i.hexlify)(e),commitment:(0,i.hexlify)(n),proof:s}),r.push(m(1,n))}else{const e=(0,i.hexlify)(o.commitment);t.push({data:(0,i.hexlify)(o.data),commitment:e,proof:(0,i.hexlify)(o.proof)}),r.push(m(1,e))}}this.#w=t,this.#y=r}get kzg(){return this.#v}set kzg(e){this.#v=e}constructor(){this.#n=null,this.#i=null,this.#c=0,this.#l=l,this.#u=null,this.#d=null,this.#f=null,this.#s="0x",this.#h=l,this.#p=l,this.#g=null,this.#m=null,this.#b=null,this.#y=null,this.#w=null,this.#v=null}get hash(){return null==this.signature?null:(0,n.keccak256)(this.#k(!0,!1))}get unsignedHash(){return(0,n.keccak256)(this.unsignedSerialized)}get from(){return null==this.signature?null:(0,c.recoverAddress)(this.unsignedHash,this.signature)}get fromPublicKey(){return null==this.signature?null:n.SigningKey.recoverPublicKey(this.unsignedHash,this.signature)}isSigned(){return null!=this.signature}#k(e,t){(0,i.assert)(!e||null!=this.signature,"cannot serialize unsigned transaction; maybe you meant .unsignedSerialized","UNSUPPORTED_OPERATION",{operation:".serialized"});const r=e?this.signature:null;switch(this.inferType()){case 0:return function(e,t){const r=[k(e.nonce,"nonce"),k(e.gasPrice||0,"gasPrice"),k(e.gasLimit,"gasLimit"),e.to||"0x",k(e.value,"value"),e.data];let a=l;if(e.chainId!=l)a=(0,i.getBigInt)(e.chainId,"tx.chainId"),(0,i.assertArgument)(!t||null==t.networkV||t.legacyChainId===a,"tx.chainId/sig.v mismatch","sig",t);else if(e.signature){const t=e.signature.legacyChainId;null!=t&&(a=t)}if(!t)return a!==l&&(r.push((0,i.toBeArray)(a)),r.push("0x"),r.push("0x")),(0,i.encodeRlp)(r);let o=BigInt(27+t.yParity);return a!==l?o=n.Signature.getChainIdV(a,t.v):BigInt(t.v)!==o&&(0,i.assertArgument)(!1,"tx.chainId/sig.v mismatch","sig",t),r.push((0,i.toBeArray)(o)),r.push((0,i.toBeArray)(t.r)),r.push((0,i.toBeArray)(t.s)),(0,i.encodeRlp)(r)}(this,r);case 1:return function(e,t){const r=[k(e.chainId,"chainId"),k(e.nonce,"nonce"),k(e.gasPrice||0,"gasPrice"),k(e.gasLimit,"gasLimit"),e.to||"0x",k(e.value,"value"),e.data,E(e.accessList||[])];return t&&(r.push(k(t.yParity,"recoveryParam")),r.push((0,i.toBeArray)(t.r)),r.push((0,i.toBeArray)(t.s))),(0,i.concat)(["0x01",(0,i.encodeRlp)(r)])}(this,r);case 2:return function(e,t){const r=[k(e.chainId,"chainId"),k(e.nonce,"nonce"),k(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),k(e.maxFeePerGas||0,"maxFeePerGas"),k(e.gasLimit,"gasLimit"),e.to||"0x",k(e.value,"value"),e.data,E(e.accessList||[])];return t&&(r.push(k(t.yParity,"yParity")),r.push((0,i.toBeArray)(t.r)),r.push((0,i.toBeArray)(t.s))),(0,i.concat)(["0x02",(0,i.encodeRlp)(r)])}(this,r);case 3:return function(e,t,r){const a=[k(e.chainId,"chainId"),k(e.nonce,"nonce"),k(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),k(e.maxFeePerGas||0,"maxFeePerGas"),k(e.gasLimit,"gasLimit"),e.to||o.ZeroAddress,k(e.value,"value"),e.data,E(e.accessList||[]),k(e.maxFeePerBlobGas||0,"maxFeePerBlobGas"),B(e.blobVersionedHashes||[],"blobVersionedHashes")];return t&&(a.push(k(t.yParity,"yParity")),a.push((0,i.toBeArray)(t.r)),a.push((0,i.toBeArray)(t.s)),r)?(0,i.concat)(["0x03",(0,i.encodeRlp)([a,r.map((e=>e.data)),r.map((e=>e.commitment)),r.map((e=>e.proof))])]):(0,i.concat)(["0x03",(0,i.encodeRlp)(a)])}(this,r,t?this.blobs:null)}(0,i.assert)(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:".serialized"})}get serialized(){return this.#k(!0,!0)}get unsignedSerialized(){return this.#k(!1,!1)}inferType(){const e=this.inferTypes();return e.indexOf(2)>=0?2:e.pop()}inferTypes(){const e=null!=this.gasPrice,t=null!=this.maxFeePerGas||null!=this.maxPriorityFeePerGas,r=null!=this.accessList,a=null!=this.#b||this.#y;null!=this.maxFeePerGas&&null!=this.maxPriorityFeePerGas&&(0,i.assert)(this.maxFeePerGas>=this.maxPriorityFeePerGas,"priorityFee cannot be more than maxFee","BAD_DATA",{value:this}),(0,i.assert)(!t||0!==this.type&&1!==this.type,"transaction type cannot have maxFeePerGas or maxPriorityFeePerGas","BAD_DATA",{value:this}),(0,i.assert)(0!==this.type||!r,"legacy transaction cannot have accessList","BAD_DATA",{value:this});const o=[];return null!=this.type?o.push(this.type):t?o.push(2):e?(o.push(1),r||o.push(0)):r?(o.push(1),o.push(2)):(a&&this.to||(o.push(0),o.push(1),o.push(2)),o.push(3)),o.sort(),o}isLegacy(){return 0===this.type}isBerlin(){return 1===this.type}isLondon(){return 2===this.type}isCancun(){return 3===this.type}clone(){return A.from(this)}toJSON(){const e=e=>null==e?null:e.toString();return{type:this.type,to:this.to,data:this.data,nonce:this.nonce,gasLimit:e(this.gasLimit),gasPrice:e(this.gasPrice),maxPriorityFeePerGas:e(this.maxPriorityFeePerGas),maxFeePerGas:e(this.maxFeePerGas),value:e(this.value),chainId:e(this.chainId),sig:this.signature?this.signature.toJSON():null,accessList:this.accessList}}static from(e){if(null==e)return new A;if("string"==typeof e){const t=(0,i.getBytes)(e);if(t[0]>=127)return A.from(function(e){const t=(0,i.decodeRlp)(e);(0,i.assertArgument)(Array.isArray(t)&&(9===t.length||6===t.length),"invalid field count for legacy transaction","data",e);const r={type:0,nonce:v(t[0],"nonce"),gasPrice:w(t[1],"gasPrice"),gasLimit:w(t[2],"gasLimit"),to:b(t[3]),value:w(t[4],"value"),data:(0,i.hexlify)(t[5]),chainId:l};if(6===t.length)return r;const a=w(t[6],"v"),o=w(t[7],"r"),s=w(t[8],"s");if(o===l&&s===l)r.chainId=a;else{let e=(a-h)/u;e<l&&(e=l),r.chainId=e,(0,i.assertArgument)(e!==l||a===d||a===f,"non-canonical legacy v","v",t[6]),r.signature=n.Signature.from({r:(0,i.zeroPadValue)(t[7],32),s:(0,i.zeroPadValue)(t[8],32),v:a})}return r}(t));switch(t[0]){case 1:return A.from(function(e){const t=(0,i.decodeRlp)((0,i.getBytes)(e).slice(1));(0,i.assertArgument)(Array.isArray(t)&&(8===t.length||11===t.length),"invalid field count for transaction type: 1","data",(0,i.hexlify)(e));const r={type:1,chainId:w(t[0],"chainId"),nonce:v(t[1],"nonce"),gasPrice:w(t[2],"gasPrice"),gasLimit:w(t[3],"gasLimit"),to:b(t[4]),value:w(t[5],"value"),data:(0,i.hexlify)(t[6]),accessList:y(t[7],"accessList")};return 8===t.length||x(r,t.slice(8)),r}(t));case 2:return A.from(function(e){const t=(0,i.decodeRlp)((0,i.getBytes)(e).slice(1));(0,i.assertArgument)(Array.isArray(t)&&(9===t.length||12===t.length),"invalid field count for transaction type: 2","data",(0,i.hexlify)(e));const r={type:2,chainId:w(t[0],"chainId"),nonce:v(t[1],"nonce"),maxPriorityFeePerGas:w(t[2],"maxPriorityFeePerGas"),maxFeePerGas:w(t[3],"maxFeePerGas"),gasPrice:null,gasLimit:w(t[4],"gasLimit"),to:b(t[5]),value:w(t[6],"value"),data:(0,i.hexlify)(t[7]),accessList:y(t[8],"accessList")};return 9===t.length||x(r,t.slice(9)),r}(t));case 3:return A.from(function(e){let t=(0,i.decodeRlp)((0,i.getBytes)(e).slice(1)),r="3",a=null;if(4===t.length&&Array.isArray(t[0])){r="3 (network format)";const e=t[1],o=t[2],n=t[3];(0,i.assertArgument)(Array.isArray(e),"invalid network format: blobs not an array","fields[1]",e),(0,i.assertArgument)(Array.isArray(o),"invalid network format: commitments not an array","fields[2]",o),(0,i.assertArgument)(Array.isArray(n),"invalid network format: proofs not an array","fields[3]",n),(0,i.assertArgument)(e.length===o.length,"invalid network format: blobs/commitments length mismatch","fields",t),(0,i.assertArgument)(e.length===n.length,"invalid network format: blobs/proofs length mismatch","fields",t),a=[];for(let r=0;r<t[1].length;r++)a.push({data:e[r],commitment:o[r],proof:n[r]});t=t[0]}(0,i.assertArgument)(Array.isArray(t)&&(11===t.length||14===t.length),`invalid field count for transaction type: ${r}`,"data",(0,i.hexlify)(e));const o={type:3,chainId:w(t[0],"chainId"),nonce:v(t[1],"nonce"),maxPriorityFeePerGas:w(t[2],"maxPriorityFeePerGas"),maxFeePerGas:w(t[3],"maxFeePerGas"),gasPrice:null,gasLimit:w(t[4],"gasLimit"),to:b(t[5]),value:w(t[6],"value"),data:(0,i.hexlify)(t[7]),accessList:y(t[8],"accessList"),maxFeePerBlobGas:w(t[9],"maxFeePerBlobGas"),blobVersionedHashes:t[10]};a&&(o.blobs=a),(0,i.assertArgument)(null!=o.to,`invalid address for transaction type: ${r}`,"data",e),(0,i.assertArgument)(Array.isArray(o.blobVersionedHashes),"invalid blobVersionedHashes: must be an array","data",e);for(let t=0;t<o.blobVersionedHashes.length;t++)(0,i.assertArgument)((0,i.isHexString)(o.blobVersionedHashes[t],32),`invalid blobVersionedHash at index ${t}: must be length 32`,"data",e);return 11===t.length||x(o,t.slice(11)),o}(t))}(0,i.assert)(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:"from"})}const t=new A;return null!=e.type&&(t.type=e.type),null!=e.to&&(t.to=e.to),null!=e.nonce&&(t.nonce=e.nonce),null!=e.gasLimit&&(t.gasLimit=e.gasLimit),null!=e.gasPrice&&(t.gasPrice=e.gasPrice),null!=e.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=e.maxPriorityFeePerGas),null!=e.maxFeePerGas&&(t.maxFeePerGas=e.maxFeePerGas),null!=e.maxFeePerBlobGas&&(t.maxFeePerBlobGas=e.maxFeePerBlobGas),null!=e.data&&(t.data=e.data),null!=e.value&&(t.value=e.value),null!=e.chainId&&(t.chainId=e.chainId),null!=e.signature&&(t.signature=n.Signature.from(e.signature)),null!=e.accessList&&(t.accessList=e.accessList),null!=e.blobVersionedHashes&&(t.blobVersionedHashes=e.blobVersionedHashes),null!=e.kzg&&(t.kzg=e.kzg),null!=e.blobs&&(t.blobs=e.blobs),null!=e.hash&&((0,i.assertArgument)(t.isSigned(),"unsigned transaction cannot define '.hash'","tx",e),(0,i.assertArgument)(t.hash===e.hash,"hash mismatch","tx",e)),null!=e.from&&((0,i.assertArgument)(t.isSigned(),"unsigned transaction cannot define '.from'","tx",e),(0,i.assertArgument)(t.from.toLowerCase()===(e.from||"").toLowerCase(),"from mismatch","tx",e)),t}}t.Transaction=A},2112:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeBase58=t.encodeBase58=void 0;const a=r(8256),o=r(7991),n=r(7597),i="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";let s=null;function c(e){if(null==s){s={};for(let e=0;e<i.length;e++)s[i[e]]=BigInt(e)}const t=s[e];return(0,o.assertArgument)(null!=t,"invalid base58 value","letter",e),t}const l=BigInt(0),u=BigInt(58);t.encodeBase58=function(e){const t=(0,a.getBytes)(e);let r=(0,n.toBigInt)(t),o="";for(;r;)o=i[Number(r%u)]+o,r/=u;for(let e=0;e<t.length&&!t[e];e++)o=i[0]+o;return o},t.decodeBase58=function(e){let t=l;for(let r=0;r<e.length;r++)t*=u,t+=c(e[r]);return t}},6930:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeBase64=t.decodeBase64=void 0;const a=r(8256);t.decodeBase64=function(e){e=atob(e);const t=new Uint8Array(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return(0,a.getBytes)(t)},t.encodeBase64=function(e){const t=(0,a.getBytes)(e);let r="";for(let e=0;e<t.length;e++)r+=String.fromCharCode(t[e]);return btoa(r)}},8256:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zeroPadBytes=t.zeroPadValue=t.stripZerosLeft=t.dataSlice=t.dataLength=t.concat=t.hexlify=t.isBytesLike=t.isHexString=t.getBytesCopy=t.getBytes=void 0;const a=r(7991);function o(e,t,r){if(e instanceof Uint8Array)return r?new Uint8Array(e):e;if("string"==typeof e&&e.match(/^0x(?:[0-9a-f][0-9a-f])*$/i)){const t=new Uint8Array((e.length-2)/2);let r=2;for(let a=0;a<t.length;a++)t[a]=parseInt(e.substring(r,r+2),16),r+=2;return t}(0,a.assertArgument)(!1,"invalid BytesLike value",t||"value",e)}function n(e,t){return o(e,t,!1)}function i(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/))&&(("number"!=typeof t||e.length===2+2*t)&&(!0!==t||e.length%2==0))}t.getBytes=n,t.getBytesCopy=function(e,t){return o(e,t,!0)},t.isHexString=i,t.isBytesLike=function(e){return i(e,!0)||e instanceof Uint8Array};const s="0123456789abcdef";function c(e){const t=n(e);let r="0x";for(let e=0;e<t.length;e++){const a=t[e];r+=s[(240&a)>>4]+s[15&a]}return r}function l(e,t,r){const o=n(e);(0,a.assert)(t>=o.length,"padding exceeds data length","BUFFER_OVERRUN",{buffer:new Uint8Array(o),length:t,offset:t+1});const i=new Uint8Array(t);return i.fill(0),r?i.set(o,t-o.length):i.set(o,0),c(i)}t.hexlify=c,t.concat=function(e){return"0x"+e.map((e=>c(e).substring(2))).join("")},t.dataLength=function(e){return i(e,!0)?(e.length-2)/2:n(e).length},t.dataSlice=function(e,t,r){const o=n(e);return null!=r&&r>o.length&&(0,a.assert)(!1,"cannot slice beyond data bounds","BUFFER_OVERRUN",{buffer:o,length:o.length,offset:r}),c(o.slice(null==t?0:t,null==r?o.length:r))},t.stripZerosLeft=function(e){let t=c(e).substring(2);for(;t.startsWith("00");)t=t.substring(2);return"0x"+t},t.zeroPadValue=function(e,t){return l(e,t,!0)},t.zeroPadBytes=function(e,t){return l(e,t,!1)}},7991:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertPrivate=t.assertNormalize=t.assertArgumentCount=t.assertArgument=t.assert=t.makeError=t.isCallException=t.isError=void 0;const a=r(5197),o=r(5213);function n(e){if(null==e)return"null";if(Array.isArray(e))return"[ "+e.map(n).join(", ")+" ]";if(e instanceof Uint8Array){const t="0123456789abcdef";let r="0x";for(let a=0;a<e.length;a++)r+=t[e[a]>>4],r+=t[15&e[a]];return r}if("object"==typeof e&&"function"==typeof e.toJSON)return n(e.toJSON());switch(typeof e){case"boolean":case"symbol":case"number":return e.toString();case"bigint":return BigInt(e).toString();case"string":return JSON.stringify(e);case"object":{const t=Object.keys(e);return t.sort(),"{ "+t.map((t=>`${n(t)}: ${n(e[t])}`)).join(", ")+" }"}}return"[ COULD NOT SERIALIZE ]"}function i(e,t){return e&&e.code===t}function s(e,t,r){let i,s=e;{const o=[];if(r){if("message"in r||"code"in r||"name"in r)throw new Error(`value will overwrite populated values: ${n(r)}`);for(const e in r){if("shortMessage"===e)continue;const t=r[e];o.push(e+"="+n(t))}}o.push(`code=${t}`),o.push(`version=${a.version}`),o.length&&(e+=" ("+o.join(", ")+")")}switch(t){case"INVALID_ARGUMENT":i=new TypeError(e);break;case"NUMERIC_FAULT":case"BUFFER_OVERRUN":i=new RangeError(e);break;default:i=new Error(e)}return(0,o.defineProperties)(i,{code:t}),r&&Object.assign(i,r),null==i.shortMessage&&(0,o.defineProperties)(i,{shortMessage:s}),i}function c(e,t,r,a){if(!e)throw s(t,r,a)}t.isError=i,t.isCallException=function(e){return i(e,"CALL_EXCEPTION")},t.makeError=s,t.assert=c,t.assertArgument=function(e,t,r,a){c(e,t,"INVALID_ARGUMENT",{argument:r,value:a})},t.assertArgumentCount=function(e,t,r){null==r&&(r=""),r&&(r=": "+r),c(e>=t,"missing arguemnt"+r,"MISSING_ARGUMENT",{count:e,expectedCount:t}),c(e<=t,"too many arguments"+r,"UNEXPECTED_ARGUMENT",{count:e,expectedCount:t})};const l=["NFD","NFC","NFKD","NFKC"].reduce(((e,t)=>{try{if("test"!=="test".normalize(t))throw new Error("bad");if("NFD"===t){const e=String.fromCharCode(233).normalize("NFD");if(e!==String.fromCharCode(101,769))throw new Error("broken")}e.push(t)}catch(e){}return e}),[]);t.assertNormalize=function(e){c(l.indexOf(e)>=0,"platform missing String.prototype.normalize","UNSUPPORTED_OPERATION",{operation:"String.prototype.normalize",info:{form:e}})},t.assertPrivate=function(e,t,r){if(null==r&&(r=""),e!==t){let e=r,t="new";r&&(e+=".",t+=" "+r),c(!1,`private constructor; use ${e}from* methods`,"UNSUPPORTED_OPERATION",{operation:t})}}},2633:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EventPayload=void 0;const a=r(5213);t.EventPayload=class{filter;emitter;#E;constructor(e,t,r){this.#E=t,(0,a.defineProperties)(this,{emitter:e,filter:r})}async removeListener(){null!=this.#E&&await this.emitter.off(this.filter,this.#E)}}},8478:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FetchResponse=t.FetchRequest=t.FetchCancelSignal=void 0;const a=r(6930),o=r(8256),n=r(7991),i=r(5213),s=r(347),c=r(2600);let l=(0,c.createGetUrl)();const u=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),d=new RegExp("^ipfs://(ipfs/)?(.*)$","i");let f=!1;async function h(e,t){try{const t=e.match(u);if(!t)throw new Error("invalid data");return new w(200,"OK",{"content-type":t[1]||"text/plain"},t[2]?(0,a.decodeBase64)(t[3]):(r=t[3],(0,s.toUtf8Bytes)(r.replace(/%([0-9a-f][0-9a-f])/gi,((e,t)=>String.fromCharCode(parseInt(t,16)))))))}catch(t){return new w(599,"BAD REQUEST (invalid data: URI)",{},null,new v(e))}var r}function p(e){return async function(t,r){try{const r=t.match(d);if(!r)throw new Error("invalid link");return new v(`${e}${r[2]}`)}catch(e){return new w(599,"BAD REQUEST (invalid IPFS URI)",{},null,new v(t))}}}const g={data:h,ipfs:p("https://gateway.ipfs.io/ipfs/")},m=new WeakMap;class b{#B;#x;constructor(e){this.#B=[],this.#x=!1,m.set(e,(()=>{if(!this.#x){this.#x=!0;for(const e of this.#B)setTimeout((()=>{e()}),0);this.#B=[]}}))}addListener(e){(0,n.assert)(!this.#x,"singal already cancelled","UNSUPPORTED_OPERATION",{operation:"fetchCancelSignal.addCancelListener"}),this.#B.push(e)}get cancelled(){return this.#x}checkSignal(){(0,n.assert)(!this.cancelled,"cancelled","CANCELLED",{})}}function y(e){if(null==e)throw new Error("missing signal; should not happen");return e.checkSignal(),e}t.FetchCancelSignal=b;class v{#A;#S;#P;#C;#T;#O;#z;#I;#j;#R;#N;#_;#L;#U;#M;get url(){return this.#O}set url(e){this.#O=String(e)}get body(){return null==this.#z?null:new Uint8Array(this.#z)}set body(e){if(null==e)this.#z=void 0,this.#I=void 0;else if("string"==typeof e)this.#z=(0,s.toUtf8Bytes)(e),this.#I="text/plain";else if(e instanceof Uint8Array)this.#z=e,this.#I="application/octet-stream";else{if("object"!=typeof e)throw new Error("invalid body");this.#z=(0,s.toUtf8Bytes)(JSON.stringify(e)),this.#I="application/json"}}hasBody(){return null!=this.#z}get method(){return this.#C?this.#C:this.hasBody()?"POST":"GET"}set method(e){null==e&&(e=""),this.#C=String(e).toUpperCase()}get headers(){const e=Object.assign({},this.#P);return this.#j&&(e.authorization=`Basic ${(0,a.encodeBase64)((0,s.toUtf8Bytes)(this.#j))}`),this.allowGzip&&(e["accept-encoding"]="gzip"),null==e["content-type"]&&this.#I&&(e["content-type"]=this.#I),this.body&&(e["content-length"]=String(this.body.length)),e}getHeader(e){return this.headers[e.toLowerCase()]}setHeader(e,t){this.#P[String(e).toLowerCase()]=String(t)}clearHeaders(){this.#P={}}[Symbol.iterator](){const e=this.headers,t=Object.keys(e);let r=0;return{next:()=>{if(r<t.length){const a=t[r++];return{value:[a,e[a]],done:!1}}return{value:void 0,done:!0}}}}get credentials(){return this.#j||null}setCredentials(e,t){(0,n.assertArgument)(!e.match(/:/),"invalid basic authentication username","username","[REDACTED]"),this.#j=`${e}:${t}`}get allowGzip(){return this.#S}set allowGzip(e){this.#S=!!e}get allowInsecureAuthentication(){return!!this.#A}set allowInsecureAuthentication(e){this.#A=!!e}get timeout(){return this.#T}set timeout(e){(0,n.assertArgument)(e>=0,"timeout must be non-zero","timeout",e),this.#T=e}get preflightFunc(){return this.#R||null}set preflightFunc(e){this.#R=e}get processFunc(){return this.#N||null}set processFunc(e){this.#N=e}get retryFunc(){return this.#_||null}set retryFunc(e){this.#_=e}get getUrlFunc(){return this.#M||l}set getUrlFunc(e){this.#M=e}constructor(e){this.#O=String(e),this.#A=!1,this.#S=!0,this.#P={},this.#C="",this.#T=3e5,this.#U={slotInterval:250,maxAttempts:12},this.#M=null}toString(){return`<FetchRequest method=${JSON.stringify(this.method)} url=${JSON.stringify(this.url)} headers=${JSON.stringify(this.headers)} body=${this.#z?(0,o.hexlify)(this.#z):"null"}>`}setThrottleParams(e){null!=e.slotInterval&&(this.#U.slotInterval=e.slotInterval),null!=e.maxAttempts&&(this.#U.maxAttempts=e.maxAttempts)}async#D(e,t,r,a,o){if(e>=this.#U.maxAttempts)return o.makeServerError("exceeded maximum retry limit");(0,n.assert)(k()<=t,"timeout","TIMEOUT",{operation:"request.send",reason:"timeout",request:a}),r>0&&await function(e){return new Promise((t=>setTimeout(t,e)))}(r);let i=this.clone();const s=(i.url.split(":")[0]||"").toLowerCase();if(s in g){const e=await g[s](i.url,y(a.#L));if(e instanceof w){let t=e;if(this.processFunc){y(a.#L);try{t=await this.processFunc(i,t)}catch(e){null!=e.throttle&&"number"==typeof e.stall||t.makeServerError("error in post-processing function",e).assertOk()}}return t}i=e}this.preflightFunc&&(i=await this.preflightFunc(i));const c=await this.getUrlFunc(i,y(a.#L));let l=new w(c.statusCode,c.statusMessage,c.headers,c.body,a);if(301===l.statusCode||302===l.statusCode){try{const r=l.headers.location||"";return i.redirect(r).#D(e+1,t,0,a,l)}catch(e){}return l}if(429===l.statusCode&&(null==this.retryFunc||await this.retryFunc(i,l,e))){const r=l.headers["retry-after"];let o=this.#U.slotInterval*Math.trunc(Math.random()*Math.pow(2,e));return"string"==typeof r&&r.match(/^[1-9][0-9]*$/)&&(o=parseInt(r)),i.clone().#D(e+1,t,o,a,l)}if(this.processFunc){y(a.#L);try{l=await this.processFunc(i,l)}catch(r){null!=r.throttle&&"number"==typeof r.stall||l.makeServerError("error in post-processing function",r).assertOk();let o=this.#U.slotInterval*Math.trunc(Math.random()*Math.pow(2,e));return r.stall>=0&&(o=r.stall),i.clone().#D(e+1,t,o,a,l)}}return l}send(){return(0,n.assert)(null==this.#L,"request already sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.send"}),this.#L=new b(this),this.#D(0,k()+this.timeout,0,this,new w(0,"",{},null,this))}cancel(){(0,n.assert)(null!=this.#L,"request has not been sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.cancel"});const e=m.get(this);if(!e)throw new Error("missing signal; should not happen");e()}redirect(e){const t=this.url.split(":")[0].toLowerCase(),r=e.split(":")[0].toLowerCase();(0,n.assert)("GET"===this.method&&("https"!==t||"http"!==r)&&e.match(/^https?:/),"unsupported redirect","UNSUPPORTED_OPERATION",{operation:`redirect(${this.method} ${JSON.stringify(this.url)} => ${JSON.stringify(e)})`});const a=new v(e);return a.method="GET",a.allowGzip=this.allowGzip,a.timeout=this.timeout,a.#P=Object.assign({},this.#P),this.#z&&(a.#z=new Uint8Array(this.#z)),a.#I=this.#I,a}clone(){const e=new v(this.url);return e.#C=this.#C,this.#z&&(e.#z=this.#z),e.#I=this.#I,e.#P=Object.assign({},this.#P),e.#j=this.#j,this.allowGzip&&(e.allowGzip=!0),e.timeout=this.timeout,this.allowInsecureAuthentication&&(e.allowInsecureAuthentication=!0),e.#R=this.#R,e.#N=this.#N,e.#_=this.#_,e.#U=Object.assign({},this.#U),e.#M=this.#M,e}static lockConfig(){f=!0}static getGateway(e){return g[e.toLowerCase()]||null}static registerGateway(e,t){if("http"===(e=e.toLowerCase())||"https"===e)throw new Error(`cannot intercept ${e}; use registerGetUrl`);if(f)throw new Error("gateways locked");g[e]=t}static registerGetUrl(e){if(f)throw new Error("gateways locked");l=e}static createGetUrlFunc(e){return(0,c.createGetUrl)(e)}static createDataGateway(){return h}static createIpfsGatewayFunc(e){return p(e)}}t.FetchRequest=v;class w{#F;#H;#P;#z;#K;#q;toString(){return`<FetchResponse status=${this.statusCode} body=${this.#z?(0,o.hexlify)(this.#z):"null"}>`}get statusCode(){return this.#F}get statusMessage(){return this.#H}get headers(){return Object.assign({},this.#P)}get body(){return null==this.#z?null:new Uint8Array(this.#z)}get bodyText(){try{return null==this.#z?"":(0,s.toUtf8String)(this.#z)}catch(e){(0,n.assert)(!1,"response body is not valid UTF-8 data","UNSUPPORTED_OPERATION",{operation:"bodyText",info:{response:this}})}}get bodyJson(){try{return JSON.parse(this.bodyText)}catch(e){(0,n.assert)(!1,"response body is not valid JSON","UNSUPPORTED_OPERATION",{operation:"bodyJson",info:{response:this}})}}[Symbol.iterator](){const e=this.headers,t=Object.keys(e);let r=0;return{next:()=>{if(r<t.length){const a=t[r++];return{value:[a,e[a]],done:!1}}return{value:void 0,done:!0}}}}constructor(e,t,r,a,o){this.#F=e,this.#H=t,this.#P=Object.keys(r).reduce(((e,t)=>(e[t.toLowerCase()]=String(r[t]),e)),{}),this.#z=null==a?null:new Uint8Array(a),this.#K=o||null,this.#q={message:""}}makeServerError(e,t){let r;r=e?`CLIENT ESCALATED SERVER ERROR (${this.statusCode} ${this.statusMessage}; ${e})`:`CLIENT ESCALATED SERVER ERROR (${e=`${this.statusCode} ${this.statusMessage}`})`;const a=new w(599,r,this.headers,this.body,this.#K||void 0);return a.#q={message:e,error:t},a}throwThrottleError(e,t){null==t?t=-1:(0,n.assertArgument)(Number.isInteger(t)&&t>=0,"invalid stall timeout","stall",t);const r=new Error(e||"throttling requests");throw(0,i.defineProperties)(r,{stall:t,throttle:!0}),r}getHeader(e){return this.headers[e.toLowerCase()]}hasBody(){return null!=this.#z}get request(){return this.#K}ok(){return""===this.#q.message&&this.statusCode>=200&&this.statusCode<300}assertOk(){if(this.ok())return;let{message:e,error:t}=this.#q;""===e&&(e=`server response ${this.statusCode} ${this.statusMessage}`);let r=null;this.request&&(r=this.request.url);let a=null;try{this.#z&&(a=(0,s.toUtf8String)(this.#z))}catch(e){}(0,n.assert)(!1,e,"SERVER_ERROR",{request:this.request||"unknown request",response:this,error:t,info:{requestUrl:r,responseBody:a,responseStatus:`${this.statusCode} ${this.statusMessage}`}})}}function k(){return(new Date).getTime()}t.FetchResponse=w},9593:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FixedNumber=void 0;const a=r(8256),o=r(7991),n=r(7597),i=r(5213),s=BigInt(-1),c=BigInt(0),l=BigInt(1),u=BigInt(5),d={};let f="0000";for(;f.length<80;)f+=f;function h(e){let t=f;for(;t.length<e;)t+=t;return BigInt("1"+t.substring(0,e))}function p(e,t,r){const a=BigInt(t.width);if(t.signed){const t=l<<a-l;(0,o.assert)(null==r||e>=-t&&e<t,"overflow","NUMERIC_FAULT",{operation:r,fault:"overflow",value:e}),e=e>c?(0,n.fromTwos)((0,n.mask)(e,a),a):-(0,n.fromTwos)((0,n.mask)(-e,a),a)}else{const t=l<<a;(0,o.assert)(null==r||e>=0&&e<t,"overflow","NUMERIC_FAULT",{operation:r,fault:"overflow",value:e}),e=(e%t+t)%t&t-l}return e}function g(e){"number"==typeof e&&(e=`fixed128x${e}`);let t=!0,r=128,a=18;if("string"==typeof e)if("fixed"===e);else if("ufixed"===e)t=!1;else{const n=e.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);(0,o.assertArgument)(n,"invalid fixed format","format",e),t="u"!==n[1],r=parseInt(n[2]),a=parseInt(n[3])}else if(e){const n=e,i=(e,t,r)=>null==n[e]?r:((0,o.assertArgument)(typeof n[e]===t,"invalid fixed format ("+e+" not "+t+")","format."+e,n[e]),n[e]);t=i("signed","boolean",t),r=i("width","number",r),a=i("decimals","number",a)}(0,o.assertArgument)(r%8==0,"invalid FixedNumber width (not byte aligned)","format.width",r),(0,o.assertArgument)(a<=80,"invalid FixedNumber decimals (too large)","format.decimals",a);return{signed:t,width:r,decimals:a,name:(t?"":"u")+"fixed"+String(r)+"x"+String(a)}}class m{format;#V;#G;#W;_value;constructor(e,t,r){(0,o.assertPrivate)(e,d,"FixedNumber"),this.#G=t,this.#V=r;const a=function(e,t){let r="";e<c&&(r="-",e*=s);let a=e.toString();if(0===t)return r+a;for(;a.length<=t;)a=f+a;const o=a.length-t;for(a=a.substring(0,o)+"."+a.substring(o);"0"===a[0]&&"."!==a[1];)a=a.substring(1);for(;"0"===a[a.length-1]&&"."!==a[a.length-2];)a=a.substring(0,a.length-1);return r+a}(t,r.decimals);(0,i.defineProperties)(this,{format:r.name,_value:a}),this.#W=h(r.decimals)}get signed(){return this.#V.signed}get width(){return this.#V.width}get decimals(){return this.#V.decimals}get value(){return this.#G}#X(e){(0,o.assertArgument)(this.format===e.format,"incompatible format; use fixedNumber.toFormat","other",e)}#$(e,t){return e=p(e,this.#V,t),new m(d,e,this.#V)}#Z(e,t){return this.#X(e),this.#$(this.#G+e.#G,t)}addUnsafe(e){return this.#Z(e)}add(e){return this.#Z(e,"add")}#Y(e,t){return this.#X(e),this.#$(this.#G-e.#G,t)}subUnsafe(e){return this.#Y(e)}sub(e){return this.#Y(e,"sub")}#J(e,t){return this.#X(e),this.#$(this.#G*e.#G/this.#W,t)}mulUnsafe(e){return this.#J(e)}mul(e){return this.#J(e,"mul")}mulSignal(e){this.#X(e);const t=this.#G*e.#G;return(0,o.assert)(t%this.#W===c,"precision lost during signalling mul","NUMERIC_FAULT",{operation:"mulSignal",fault:"underflow",value:this}),this.#$(t/this.#W,"mulSignal")}#Q(e,t){return(0,o.assert)(e.#G!==c,"division by zero","NUMERIC_FAULT",{operation:"div",fault:"divide-by-zero",value:this}),this.#X(e),this.#$(this.#G*this.#W/e.#G,t)}divUnsafe(e){return this.#Q(e)}div(e){return this.#Q(e,"div")}divSignal(e){(0,o.assert)(e.#G!==c,"division by zero","NUMERIC_FAULT",{operation:"div",fault:"divide-by-zero",value:this}),this.#X(e);const t=this.#G*this.#W;return(0,o.assert)(t%e.#G===c,"precision lost during signalling div","NUMERIC_FAULT",{operation:"divSignal",fault:"underflow",value:this}),this.#$(t/e.#G,"divSignal")}cmp(e){let t=this.value,r=e.value;const a=this.decimals-e.decimals;return a>0?r*=h(a):a<0&&(t*=h(-a)),t<r?-1:t>r?1:0}eq(e){return 0===this.cmp(e)}lt(e){return this.cmp(e)<0}lte(e){return this.cmp(e)<=0}gt(e){return this.cmp(e)>0}gte(e){return this.cmp(e)>=0}floor(){let e=this.#G;return this.#G<c&&(e-=this.#W-l),e=this.#G/this.#W*this.#W,this.#$(e,"floor")}ceiling(){let e=this.#G;return this.#G>c&&(e+=this.#W-l),e=this.#G/this.#W*this.#W,this.#$(e,"ceiling")}round(e){if(null==e&&(e=0),e>=this.decimals)return this;const t=this.decimals-e,r=u*h(t-1);let a=this.value+r;const o=h(t);return a=a/o*o,p(a,this.#V,"round"),new m(d,a,this.#V)}isZero(){return this.#G===c}isNegative(){return this.#G<c}toString(){return this._value}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(e){return m.fromString(this.toString(),e)}static fromValue(e,t,r){const a=null==t?0:(0,n.getNumber)(t),i=g(r);let s=(0,n.getBigInt)(e,"value");const l=a-i.decimals;if(l>0){const t=h(l);(0,o.assert)(s%t===c,"value loses precision for format","NUMERIC_FAULT",{operation:"fromValue",fault:"underflow",value:e}),s/=t}else l<0&&(s*=h(-l));return p(s,i,"fromValue"),new m(d,s,i)}static fromString(e,t){const r=e.match(/^(-?)([0-9]*)\.?([0-9]*)$/);(0,o.assertArgument)(r&&r[2].length+r[3].length>0,"invalid FixedNumber string value","value",e);const a=g(t);let n=r[2]||"0",i=r[3]||"";for(;i.length<a.decimals;)i+=f;(0,o.assert)(i.substring(a.decimals).match(/^0*$/),"too many decimals for format","NUMERIC_FAULT",{operation:"fromString",fault:"underflow",value:e}),i=i.substring(0,a.decimals);const s=BigInt(r[1]+n+i);return p(s,a,"fromString"),new m(d,s,a)}static fromBytes(e,t){let r=(0,n.toBigInt)((0,a.getBytes)(e,"value"));const o=g(t);return o.signed&&(r=(0,n.fromTwos)(r,o.width)),p(r,o,"fromBytes"),new m(d,r,o)}}t.FixedNumber=m},2600:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getUrl=t.createGetUrl=void 0;const a=r(7991);function o(e){return async function(e,t){(0,a.assert)(null==t||!t.cancelled,"request cancelled before sending","CANCELLED");const r=e.url.split(":")[0].toLowerCase();(0,a.assert)("http"===r||"https"===r,`unsupported protocol ${r}`,"UNSUPPORTED_OPERATION",{info:{protocol:r},operation:"request"}),(0,a.assert)("https"===r||!e.credentials||e.allowInsecureAuthentication,"insecure authorized connections unsupported","UNSUPPORTED_OPERATION",{operation:"request"});let o=null;const n=new AbortController,i=setTimeout((()=>{o=(0,a.makeError)("request timeout","TIMEOUT"),n.abort()}),e.timeout);t&&t.addListener((()=>{o=(0,a.makeError)("request cancelled","CANCELLED"),n.abort()}));const s={method:e.method,headers:new Headers(Array.from(e)),body:e.body||void 0,signal:n.signal};let c;try{c=await fetch(e.url,s)}catch(e){if(clearTimeout(i),o)throw o;throw e}clearTimeout(i);const l={};c.headers.forEach(((e,t)=>{l[t.toLowerCase()]=e}));const u=await c.arrayBuffer(),d=null==u?null:new Uint8Array(u);return{statusCode:c.status,statusMessage:c.statusText,headers:l,body:d}}}t.createGetUrl=o;const n=o();t.getUrl=async function(e,t){return n(e,t)}},1490:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toUtf8String=t.toUtf8CodePoints=t.toUtf8Bytes=t.parseUnits=t.formatUnits=t.parseEther=t.formatEther=t.encodeRlp=t.decodeRlp=t.defineProperties=t.resolveProperties=t.toQuantity=t.toBeArray=t.toBeHex=t.toNumber=t.toBigInt=t.getUint=t.getNumber=t.getBigInt=t.mask=t.toTwos=t.fromTwos=t.FixedNumber=t.FetchCancelSignal=t.FetchResponse=t.FetchRequest=t.EventPayload=t.makeError=t.assertNormalize=t.assertPrivate=t.assertArgumentCount=t.assertArgument=t.assert=t.isError=t.isCallException=t.zeroPadBytes=t.zeroPadValue=t.stripZerosLeft=t.dataSlice=t.dataLength=t.concat=t.hexlify=t.isBytesLike=t.isHexString=t.getBytesCopy=t.getBytes=t.encodeBase64=t.decodeBase64=t.encodeBase58=t.decodeBase58=void 0,t.uuidV4=t.Utf8ErrorFuncs=void 0;var a=r(2112);Object.defineProperty(t,"decodeBase58",{enumerable:!0,get:function(){return a.decodeBase58}}),Object.defineProperty(t,"encodeBase58",{enumerable:!0,get:function(){return a.encodeBase58}});var o=r(6930);Object.defineProperty(t,"decodeBase64",{enumerable:!0,get:function(){return o.decodeBase64}}),Object.defineProperty(t,"encodeBase64",{enumerable:!0,get:function(){return o.encodeBase64}});var n=r(8256);Object.defineProperty(t,"getBytes",{enumerable:!0,get:function(){return n.getBytes}}),Object.defineProperty(t,"getBytesCopy",{enumerable:!0,get:function(){return n.getBytesCopy}}),Object.defineProperty(t,"isHexString",{enumerable:!0,get:function(){return n.isHexString}}),Object.defineProperty(t,"isBytesLike",{enumerable:!0,get:function(){return n.isBytesLike}}),Object.defineProperty(t,"hexlify",{enumerable:!0,get:function(){return n.hexlify}}),Object.defineProperty(t,"concat",{enumerable:!0,get:function(){return n.concat}}),Object.defineProperty(t,"dataLength",{enumerable:!0,get:function(){return n.dataLength}}),Object.defineProperty(t,"dataSlice",{enumerable:!0,get:function(){return n.dataSlice}}),Object.defineProperty(t,"stripZerosLeft",{enumerable:!0,get:function(){return n.stripZerosLeft}}),Object.defineProperty(t,"zeroPadValue",{enumerable:!0,get:function(){return n.zeroPadValue}}),Object.defineProperty(t,"zeroPadBytes",{enumerable:!0,get:function(){return n.zeroPadBytes}});var i=r(7991);Object.defineProperty(t,"isCallException",{enumerable:!0,get:function(){return i.isCallException}}),Object.defineProperty(t,"isError",{enumerable:!0,get:function(){return i.isError}}),Object.defineProperty(t,"assert",{enumerable:!0,get:function(){return i.assert}}),Object.defineProperty(t,"assertArgument",{enumerable:!0,get:function(){return i.assertArgument}}),Object.defineProperty(t,"assertArgumentCount",{enumerable:!0,get:function(){return i.assertArgumentCount}}),Object.defineProperty(t,"assertPrivate",{enumerable:!0,get:function(){return i.assertPrivate}}),Object.defineProperty(t,"assertNormalize",{enumerable:!0,get:function(){return i.assertNormalize}}),Object.defineProperty(t,"makeError",{enumerable:!0,get:function(){return i.makeError}});var s=r(2633);Object.defineProperty(t,"EventPayload",{enumerable:!0,get:function(){return s.EventPayload}});var c=r(8478);Object.defineProperty(t,"FetchRequest",{enumerable:!0,get:function(){return c.FetchRequest}}),Object.defineProperty(t,"FetchResponse",{enumerable:!0,get:function(){return c.FetchResponse}}),Object.defineProperty(t,"FetchCancelSignal",{enumerable:!0,get:function(){return c.FetchCancelSignal}});var l=r(9593);Object.defineProperty(t,"FixedNumber",{enumerable:!0,get:function(){return l.FixedNumber}});var u=r(7597);Object.defineProperty(t,"fromTwos",{enumerable:!0,get:function(){return u.fromTwos}}),Object.defineProperty(t,"toTwos",{enumerable:!0,get:function(){return u.toTwos}}),Object.defineProperty(t,"mask",{enumerable:!0,get:function(){return u.mask}}),Object.defineProperty(t,"getBigInt",{enumerable:!0,get:function(){return u.getBigInt}}),Object.defineProperty(t,"getNumber",{enumerable:!0,get:function(){return u.getNumber}}),Object.defineProperty(t,"getUint",{enumerable:!0,get:function(){return u.getUint}}),Object.defineProperty(t,"toBigInt",{enumerable:!0,get:function(){return u.toBigInt}}),Object.defineProperty(t,"toNumber",{enumerable:!0,get:function(){return u.toNumber}}),Object.defineProperty(t,"toBeHex",{enumerable:!0,get:function(){return u.toBeHex}}),Object.defineProperty(t,"toBeArray",{enumerable:!0,get:function(){return u.toBeArray}}),Object.defineProperty(t,"toQuantity",{enumerable:!0,get:function(){return u.toQuantity}});var d=r(5213);Object.defineProperty(t,"resolveProperties",{enumerable:!0,get:function(){return d.resolveProperties}}),Object.defineProperty(t,"defineProperties",{enumerable:!0,get:function(){return d.defineProperties}});var f=r(4975);Object.defineProperty(t,"decodeRlp",{enumerable:!0,get:function(){return f.decodeRlp}});var h=r(6763);Object.defineProperty(t,"encodeRlp",{enumerable:!0,get:function(){return h.encodeRlp}});var p=r(5113);Object.defineProperty(t,"formatEther",{enumerable:!0,get:function(){return p.formatEther}}),Object.defineProperty(t,"parseEther",{enumerable:!0,get:function(){return p.parseEther}}),Object.defineProperty(t,"formatUnits",{enumerable:!0,get:function(){return p.formatUnits}}),Object.defineProperty(t,"parseUnits",{enumerable:!0,get:function(){return p.parseUnits}});var g=r(347);Object.defineProperty(t,"toUtf8Bytes",{enumerable:!0,get:function(){return g.toUtf8Bytes}}),Object.defineProperty(t,"toUtf8CodePoints",{enumerable:!0,get:function(){return g.toUtf8CodePoints}}),Object.defineProperty(t,"toUtf8String",{enumerable:!0,get:function(){return g.toUtf8String}}),Object.defineProperty(t,"Utf8ErrorFuncs",{enumerable:!0,get:function(){return g.Utf8ErrorFuncs}});var m=r(4791);Object.defineProperty(t,"uuidV4",{enumerable:!0,get:function(){return m.uuidV4}})},7597:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toQuantity=t.toBeArray=t.toBeHex=t.toNumber=t.getNumber=t.toBigInt=t.getUint=t.getBigInt=t.mask=t.toTwos=t.fromTwos=void 0;const a=r(8256),o=r(7991),n=BigInt(0),i=BigInt(1),s=9007199254740991;function c(e,t){switch(typeof e){case"bigint":return e;case"number":return(0,o.assertArgument)(Number.isInteger(e),"underflow",t||"value",e),(0,o.assertArgument)(e>=-s&&e<=s,"overflow",t||"value",e),BigInt(e);case"string":try{if(""===e)throw new Error("empty string");return"-"===e[0]&&"-"!==e[1]?-BigInt(e.substring(1)):BigInt(e)}catch(r){(0,o.assertArgument)(!1,`invalid BigNumberish string: ${r.message}`,t||"value",e)}}(0,o.assertArgument)(!1,"invalid BigNumberish value",t||"value",e)}function l(e,t){const r=c(e,t);return(0,o.assert)(r>=n,"unsigned value cannot be negative","NUMERIC_FAULT",{fault:"overflow",operation:"getUint",value:e}),r}t.fromTwos=function(e,t){const r=l(e,"value"),a=BigInt(f(t,"width"));if((0,o.assert)(r>>a===n,"overflow","NUMERIC_FAULT",{operation:"fromTwos",fault:"overflow",value:e}),r>>a-i){return-((~r&(i<<a)-i)+i)}return r},t.toTwos=function(e,t){let r=c(e,"value");const a=BigInt(f(t,"width")),s=i<<a-i;if(r<n){r=-r,(0,o.assert)(r<=s,"too low","NUMERIC_FAULT",{operation:"toTwos",fault:"overflow",value:e});return(~r&(i<<a)-i)+i}return(0,o.assert)(r<s,"too high","NUMERIC_FAULT",{operation:"toTwos",fault:"overflow",value:e}),r},t.mask=function(e,t){const r=l(e,"value"),a=BigInt(f(t,"bits"));return r&(i<<a)-i},t.getBigInt=c,t.getUint=l;const u="0123456789abcdef";function d(e){if(e instanceof Uint8Array){let t="0x0";for(const r of e)t+=u[r>>4],t+=u[15&r];return BigInt(t)}return c(e)}function f(e,t){switch(typeof e){case"bigint":return(0,o.assertArgument)(e>=-s&&e<=s,"overflow",t||"value",e),Number(e);case"number":return(0,o.assertArgument)(Number.isInteger(e),"underflow",t||"value",e),(0,o.assertArgument)(e>=-s&&e<=s,"overflow",t||"value",e),e;case"string":try{if(""===e)throw new Error("empty string");return f(BigInt(e),t)}catch(r){(0,o.assertArgument)(!1,`invalid numeric string: ${r.message}`,t||"value",e)}}(0,o.assertArgument)(!1,"invalid numeric value",t||"value",e)}function h(e){const t=l(e,"value");if(t===n)return new Uint8Array([]);let r=t.toString(16);r.length%2&&(r="0"+r);const a=new Uint8Array(r.length/2);for(let e=0;e<a.length;e++){const t=2*e;a[e]=parseInt(r.substring(t,t+2),16)}return a}t.toBigInt=d,t.getNumber=f,t.toNumber=function(e){return f(d(e))},t.toBeHex=function(e,t){let r=l(e,"value").toString(16);if(null==t)r.length%2&&(r="0"+r);else{const a=f(t,"width");for((0,o.assert)(2*a>=r.length,`value exceeds width (${a} bytes)`,"NUMERIC_FAULT",{operation:"toBeHex",fault:"overflow",value:e});r.length<2*a;)r="0"+r}return"0x"+r},t.toBeArray=h,t.toQuantity=function(e){let t=(0,a.hexlify)((0,a.isBytesLike)(e)?e:h(e)).substring(2);for(;t.startsWith("0");)t=t.substring(1);return""===t&&(t="0"),"0x"+t}},5213:(e,t)=>{"use strict";function r(e,t,r){const a=t.split("|").map((e=>e.trim()));for(let r=0;r<a.length;r++)switch(t){case"any":return;case"bigint":case"boolean":case"number":case"string":if(typeof e===t)return}const o=new Error(`invalid value for type ${t}`);throw o.code="INVALID_ARGUMENT",o.argument=`value.${r}`,o.value=e,o}Object.defineProperty(t,"__esModule",{value:!0}),t.defineProperties=t.resolveProperties=void 0,t.resolveProperties=async function(e){const t=Object.keys(e);return(await Promise.all(t.map((t=>Promise.resolve(e[t]))))).reduce(((e,r,a)=>(e[t[a]]=r,e)),{})},t.defineProperties=function(e,t,a){for(let o in t){let n=t[o];const i=a?a[o]:null;i&&r(n,i,o),Object.defineProperty(e,o,{enumerable:!0,value:n,writable:!1})}}},4975:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeRlp=void 0;const a=r(8256),o=r(7991),n=r(8256);function i(e){let t=e.toString(16);for(;t.length<2;)t="0"+t;return"0x"+t}function s(e,t,r){let a=0;for(let o=0;o<r;o++)a=256*a+e[t+o];return a}function c(e,t,r,a){const n=[];for(;r<t+1+a;){const i=l(e,r);n.push(i.result),r+=i.consumed,(0,o.assert)(r<=t+1+a,"child data too short","BUFFER_OVERRUN",{buffer:e,length:a,offset:t})}return{consumed:1+a,result:n}}function l(e,t){(0,o.assert)(0!==e.length,"data too short","BUFFER_OVERRUN",{buffer:e,length:0,offset:1});const r=t=>{(0,o.assert)(t<=e.length,"data short segment too short","BUFFER_OVERRUN",{buffer:e,length:e.length,offset:t})};if(e[t]>=248){const a=e[t]-247;r(t+1+a);const o=s(e,t+1,a);return r(t+1+a+o),c(e,t,t+1+a,a+o)}if(e[t]>=192){const a=e[t]-192;return r(t+1+a),c(e,t,t+1,a)}if(e[t]>=184){const o=e[t]-183;r(t+1+o);const n=s(e,t+1,o);r(t+1+o+n);return{consumed:1+o+n,result:(0,a.hexlify)(e.slice(t+1+o,t+1+o+n))}}if(e[t]>=128){const o=e[t]-128;r(t+1+o);return{consumed:1+o,result:(0,a.hexlify)(e.slice(t+1,t+1+o))}}return{consumed:1,result:i(e[t])}}t.decodeRlp=function(e){const t=(0,n.getBytes)(e,"data"),r=l(t,0);return(0,o.assertArgument)(r.consumed===t.length,"unexpected junk after rlp payload","data",e),r.result}},6763:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeRlp=void 0;const a=r(8256);function o(e){const t=[];for(;e;)t.unshift(255&e),e>>=8;return t}function n(e){if(Array.isArray(e)){let t=[];if(e.forEach((function(e){t=t.concat(n(e))})),t.length<=55)return t.unshift(192+t.length),t;const r=o(t.length);return r.unshift(247+r.length),r.concat(t)}const t=Array.prototype.slice.call((0,a.getBytes)(e,"object"));if(1===t.length&&t[0]<=127)return t;if(t.length<=55)return t.unshift(128+t.length),t;const r=o(t.length);return r.unshift(183+r.length),r.concat(t)}const i="0123456789abcdef";t.encodeRlp=function(e){let t="0x";for(const r of n(e))t+=i[r>>4],t+=i[15&r];return t}},5113:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseEther=t.formatEther=t.parseUnits=t.formatUnits=void 0;const a=r(7991),o=r(9593),n=r(7597),i=["wei","kwei","mwei","gwei","szabo","finney","ether"];function s(e,t){let r=18;if("string"==typeof t){const e=i.indexOf(t);(0,a.assertArgument)(e>=0,"invalid unit","unit",t),r=3*e}else null!=t&&(r=(0,n.getNumber)(t,"unit"));return o.FixedNumber.fromValue(e,r,{decimals:r,width:512}).toString()}function c(e,t){(0,a.assertArgument)("string"==typeof e,"value must be a string","value",e);let r=18;if("string"==typeof t){const e=i.indexOf(t);(0,a.assertArgument)(e>=0,"invalid unit","unit",t),r=3*e}else null!=t&&(r=(0,n.getNumber)(t,"unit"));return o.FixedNumber.fromString(e,{decimals:r,width:512}).value}t.formatUnits=s,t.parseUnits=c,t.formatEther=function(e){return s(e,18)},t.parseEther=function(e){return c(e,18)}},347:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toUtf8CodePoints=t.toUtf8String=t.toUtf8Bytes=t.Utf8ErrorFuncs=void 0;const a=r(8256),o=r(7991);function n(e,t,r,a,o){if("BAD_PREFIX"===e||"UNEXPECTED_CONTINUE"===e){let e=0;for(let a=t+1;a<r.length&&r[a]>>6==2;a++)e++;return e}return"OVERRUN"===e?r.length-t-1:0}function i(e,r){null==r&&(r=t.Utf8ErrorFuncs.error);const o=(0,a.getBytes)(e,"bytes"),n=[];let i=0;for(;i<o.length;){const e=o[i++];if(!(e>>7)){n.push(e);continue}let t=null,a=null;if(192==(224&e))t=1,a=127;else if(224==(240&e))t=2,a=2047;else{if(240!=(248&e)){i+=r(128==(192&e)?"UNEXPECTED_CONTINUE":"BAD_PREFIX",i-1,o,n);continue}t=3,a=65535}if(i-1+t>=o.length){i+=r("OVERRUN",i-1,o,n);continue}let s=e&(1<<8-t-1)-1;for(let e=0;e<t;e++){let e=o[i];if(128!=(192&e)){i+=r("MISSING_CONTINUE",i,o,n),s=null;break}s=s<<6|63&e,i++}null!==s&&(s>1114111?i+=r("OUT_OF_RANGE",i-1-t,o,n,s):s>=55296&&s<=57343?i+=r("UTF16_SURROGATE",i-1-t,o,n,s):s<=a?i+=r("OVERLONG",i-1-t,o,n,s):n.push(s))}return n}function s(e,t){(0,o.assertArgument)("string"==typeof e,"invalid string value","str",e),null!=t&&((0,o.assertNormalize)(t),e=e.normalize(t));let r=[];for(let t=0;t<e.length;t++){const a=e.charCodeAt(t);if(a<128)r.push(a);else if(a<2048)r.push(a>>6|192),r.push(63&a|128);else if(55296==(64512&a)){t++;const n=e.charCodeAt(t);(0,o.assertArgument)(t<e.length&&56320==(64512&n),"invalid surrogate pair","str",e);const i=65536+((1023&a)<<10)+(1023&n);r.push(i>>18|240),r.push(i>>12&63|128),r.push(i>>6&63|128),r.push(63&i|128)}else r.push(a>>12|224),r.push(a>>6&63|128),r.push(63&a|128)}return new Uint8Array(r)}t.Utf8ErrorFuncs=Object.freeze({error:function(e,t,r,a,n){(0,o.assertArgument)(!1,`invalid codepoint at offset ${t}; ${e}`,"bytes",r)},ignore:n,replace:function(e,t,r,a,i){return"OVERLONG"===e?((0,o.assertArgument)("number"==typeof i,"invalid bad code point for replacement","badCodepoint",i),a.push(i),0):(a.push(65533),n(e,t,r))}}),t.toUtf8Bytes=s,t.toUtf8String=function(e,t){return i(e,t).map((e=>e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10&1023),56320+(1023&e))))).join("")},t.toUtf8CodePoints=function(e,t){return i(s(e,t))}},4791:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uuidV4=void 0;const a=r(8256);t.uuidV4=function(e){const t=(0,a.getBytes)(e,"randomBytes");t[6]=15&t[6]|64,t[8]=63&t[8]|128;const r=(0,a.hexlify)(t);return[r.substring(2,10),r.substring(10,14),r.substring(14,18),r.substring(18,22),r.substring(22,34)].join("-")}},5898:e=>{"use strict";e.exports=JSON.parse('["的","一","是","在","不","了","有","和","人","这","中","大","为","上","个","国","我","以","要","他","时","来","用","们","生","到","作","地","于","出","就","分","对","成","会","可","主","发","年","动","同","工","也","能","下","过","子","说","产","种","面","而","方","后","多","定","行","学","法","所","民","得","经","十","三","之","进","着","等","部","度","家","电","力","里","如","水","化","高","自","二","理","起","小","物","现","实","加","量","都","两","体","制","机","当","使","点","从","业","本","去","把","性","好","应","开","它","合","还","因","由","其","些","然","前","外","天","政","四","日","那","社","义","事","平","形","相","全","表","间","样","与","关","各","重","新","线","内","数","正","心","反","你","明","看","原","又","么","利","比","或","但","质","气","第","向","道","命","此","变","条","只","没","结","解","问","意","建","月","公","无","系","军","很","情","者","最","立","代","想","已","通","并","提","直","题","党","程","展","五","果","料","象","员","革","位","入","常","文","总","次","品","式","活","设","及","管","特","件","长","求","老","头","基","资","边","流","路","级","少","图","山","统","接","知","较","将","组","见","计","别","她","手","角","期","根","论","运","农","指","几","九","区","强","放","决","西","被","干","做","必","战","先","回","则","任","取","据","处","队","南","给","色","光","门","即","保","治","北","造","百","规","热","领","七","海","口","东","导","器","压","志","世","金","增","争","济","阶","油","思","术","极","交","受","联","什","认","六","共","权","收","证","改","清","美","再","采","转","更","单","风","切","打","白","教","速","花","带","安","场","身","车","例","真","务","具","万","每","目","至","达","走","积","示","议","声","报","斗","完","类","八","离","华","名","确","才","科","张","信","马","节","话","米","整","空","元","况","今","集","温","传","土","许","步","群","广","石","记","需","段","研","界","拉","林","律","叫","且","究","观","越","织","装","影","算","低","持","音","众","书","布","复","容","儿","须","际","商","非","验","连","断","深","难","近","矿","千","周","委","素","技","备","半","办","青","省","列","习","响","约","支","般","史","感","劳","便","团","往","酸","历","市","克","何","除","消","构","府","称","太","准","精","值","号","率","族","维","划","选","标","写","存","候","毛","亲","快","效","斯","院","查","江","型","眼","王","按","格","养","易","置","派","层","片","始","却","专","状","育","厂","京","识","适","属","圆","包","火","住","调","满","县","局","照","参","红","细","引","听","该","铁","价","严","首","底","液","官","德","随","病","苏","失","尔","死","讲","配","女","黄","推","显","谈","罪","神","艺","呢","席","含","企","望","密","批","营","项","防","举","球","英","氧","势","告","李","台","落","木","帮","轮","破","亚","师","围","注","远","字","材","排","供","河","态","封","另","施","减","树","溶","怎","止","案","言","士","均","武","固","叶","鱼","波","视","仅","费","紧","爱","左","章","早","朝","害","续","轻","服","试","食","充","兵","源","判","护","司","足","某","练","差","致","板","田","降","黑","犯","负","击","范","继","兴","似","余","坚","曲","输","修","故","城","夫","够","送","笔","船","占","右","财","吃","富","春","职","觉","汉","画","功","巴","跟","虽","杂","飞","检","吸","助","升","阳","互","初","创","抗","考","投","坏","策","古","径","换","未","跑","留","钢","曾","端","责","站","简","述","钱","副","尽","帝","射","草","冲","承","独","令","限","阿","宣","环","双","请","超","微","让","控","州","良","轴","找","否","纪","益","依","优","顶","础","载","倒","房","突","坐","粉","敌","略","客","袁","冷","胜","绝","析","块","剂","测","丝","协","诉","念","陈","仍","罗","盐","友","洋","错","苦","夜","刑","移","频","逐","靠","混","母","短","皮","终","聚","汽","村","云","哪","既","距","卫","停","烈","央","察","烧","迅","境","若","印","洲","刻","括","激","孔","搞","甚","室","待","核","校","散","侵","吧","甲","游","久","菜","味","旧","模","湖","货","损","预","阻","毫","普","稳","乙","妈","植","息","扩","银","语","挥","酒","守","拿","序","纸","医","缺","雨","吗","针","刘","啊","急","唱","误","训","愿","审","附","获","茶","鲜","粮","斤","孩","脱","硫","肥","善","龙","演","父","渐","血","欢","械","掌","歌","沙","刚","攻","谓","盾","讨","晚","粒","乱","燃","矛","乎","杀","药","宁","鲁","贵","钟","煤","读","班","伯","香","介","迫","句","丰","培","握","兰","担","弦","蛋","沉","假","穿","执","答","乐","谁","顺","烟","缩","征","脸","喜","松","脚","困","异","免","背","星","福","买","染","井","概","慢","怕","磁","倍","祖","皇","促","静","补","评","翻","肉","践","尼","衣","宽","扬","棉","希","伤","操","垂","秋","宜","氢","套","督","振","架","亮","末","宪","庆","编","牛","触","映","雷","销","诗","座","居","抓","裂","胞","呼","娘","景","威","绿","晶","厚","盟","衡","鸡","孙","延","危","胶","屋","乡","临","陆","顾","掉","呀","灯","岁","措","束","耐","剧","玉","赵","跳","哥","季","课","凯","胡","额","款","绍","卷","齐","伟","蒸","殖","永","宗","苗","川","炉","岩","弱","零","杨","奏","沿","露","杆","探","滑","镇","饭","浓","航","怀","赶","库","夺","伊","灵","税","途","灭","赛","归","召","鼓","播","盘","裁","险","康","唯","录","菌","纯","借","糖","盖","横","符","私","努","堂","域","枪","润","幅","哈","竟","熟","虫","泽","脑","壤","碳","欧","遍","侧","寨","敢","彻","虑","斜","薄","庭","纳","弹","饲","伸","折","麦","湿","暗","荷","瓦","塞","床","筑","恶","户","访","塔","奇","透","梁","刀","旋","迹","卡","氯","遇","份","毒","泥","退","洗","摆","灰","彩","卖","耗","夏","择","忙","铜","献","硬","予","繁","圈","雪","函","亦","抽","篇","阵","阴","丁","尺","追","堆","雄","迎","泛","爸","楼","避","谋","吨","野","猪","旗","累","偏","典","馆","索","秦","脂","潮","爷","豆","忽","托","惊","塑","遗","愈","朱","替","纤","粗","倾","尚","痛","楚","谢","奋","购","磨","君","池","旁","碎","骨","监","捕","弟","暴","割","贯","殊","释","词","亡","壁","顿","宝","午","尘","闻","揭","炮","残","冬","桥","妇","警","综","招","吴","付","浮","遭","徐","您","摇","谷","赞","箱","隔","订","男","吹","园","纷","唐","败","宋","玻","巨","耕","坦","荣","闭","湾","键","凡","驻","锅","救","恩","剥","凝","碱","齿","截","炼","麻","纺","禁","废","盛","版","缓","净","睛","昌","婚","涉","筒","嘴","插","岸","朗","庄","街","藏","姑","贸","腐","奴","啦","惯","乘","伙","恢","匀","纱","扎","辩","耳","彪","臣","亿","璃","抵","脉","秀","萨","俄","网","舞","店","喷","纵","寸","汗","挂","洪","贺","闪","柬","爆","烯","津","稻","墙","软","勇","像","滚","厘","蒙","芳","肯","坡","柱","荡","腿","仪","旅","尾","轧","冰","贡","登","黎","削","钻","勒","逃","障","氨","郭","峰","币","港","伏","轨","亩","毕","擦","莫","刺","浪","秘","援","株","健","售","股","岛","甘","泡","睡","童","铸","汤","阀","休","汇","舍","牧","绕","炸","哲","磷","绩","朋","淡","尖","启","陷","柴","呈","徒","颜","泪","稍","忘","泵","蓝","拖","洞","授","镜","辛","壮","锋","贫","虚","弯","摩","泰","幼","廷","尊","窗","纲","弄","隶","疑","氏","宫","姐","震","瑞","怪","尤","琴","循","描","膜","违","夹","腰","缘","珠","穷","森","枝","竹","沟","催","绳","忆","邦","剩","幸","浆","栏","拥","牙","贮","礼","滤","钠","纹","罢","拍","咱","喊","袖","埃","勤","罚","焦","潜","伍","墨","欲","缝","姓","刊","饱","仿","奖","铝","鬼","丽","跨","默","挖","链","扫","喝","袋","炭","污","幕","诸","弧","励","梅","奶","洁","灾","舟","鉴","苯","讼","抱","毁","懂","寒","智","埔","寄","届","跃","渡","挑","丹","艰","贝","碰","拔","爹","戴","码","梦","芽","熔","赤","渔","哭","敬","颗","奔","铅","仲","虎","稀","妹","乏","珍","申","桌","遵","允","隆","螺","仓","魏","锐","晓","氮","兼","隐","碍","赫","拨","忠","肃","缸","牵","抢","博","巧","壳","兄","杜","讯","诚","碧","祥","柯","页","巡","矩","悲","灌","龄","伦","票","寻","桂","铺","圣","恐","恰","郑","趣","抬","荒","腾","贴","柔","滴","猛","阔","辆","妻","填","撤","储","签","闹","扰","紫","砂","递","戏","吊","陶","伐","喂","疗","瓶","婆","抚","臂","摸","忍","虾","蜡","邻","胸","巩","挤","偶","弃","槽","劲","乳","邓","吉","仁","烂","砖","租","乌","舰","伴","瓜","浅","丙","暂","燥","橡","柳","迷","暖","牌","秧","胆","详","簧","踏","瓷","谱","呆","宾","糊","洛","辉","愤","竞","隙","怒","粘","乃","绪","肩","籍","敏","涂","熙","皆","侦","悬","掘","享","纠","醒","狂","锁","淀","恨","牲","霸","爬","赏","逆","玩","陵","祝","秒","浙","貌","役","彼","悉","鸭","趋","凤","晨","畜","辈","秩","卵","署","梯","炎","滩","棋","驱","筛","峡","冒","啥","寿","译","浸","泉","帽","迟","硅","疆","贷","漏","稿","冠","嫩","胁","芯","牢","叛","蚀","奥","鸣","岭","羊","凭","串","塘","绘","酵","融","盆","锡","庙","筹","冻","辅","摄","袭","筋","拒","僚","旱","钾","鸟","漆","沈","眉","疏","添","棒","穗","硝","韩","逼","扭","侨","凉","挺","碗","栽","炒","杯","患","馏","劝","豪","辽","勃","鸿","旦","吏","拜","狗","埋","辊","掩","饮","搬","骂","辞","勾","扣","估","蒋","绒","雾","丈","朵","姆","拟","宇","辑","陕","雕","偿","蓄","崇","剪","倡","厅","咬","驶","薯","刷","斥","番","赋","奉","佛","浇","漫","曼","扇","钙","桃","扶","仔","返","俗","亏","腔","鞋","棱","覆","框","悄","叔","撞","骗","勘","旺","沸","孤","吐","孟","渠","屈","疾","妙","惜","仰","狠","胀","谐","抛","霉","桑","岗","嘛","衰","盗","渗","脏","赖","涌","甜","曹","阅","肌","哩","厉","烃","纬","毅","昨","伪","症","煮","叹","钉","搭","茎","笼","酷","偷","弓","锥","恒","杰","坑","鼻","翼","纶","叙","狱","逮","罐","络","棚","抑","膨","蔬","寺","骤","穆","冶","枯","册","尸","凸","绅","坯","牺","焰","轰","欣","晋","瘦","御","锭","锦","丧","旬","锻","垄","搜","扑","邀","亭","酯","迈","舒","脆","酶","闲","忧","酚","顽","羽","涨","卸","仗","陪","辟","惩","杭","姚","肚","捉","飘","漂","昆","欺","吾","郎","烷","汁","呵","饰","萧","雅","邮","迁","燕","撒","姻","赴","宴","烦","债","帐","斑","铃","旨","醇","董","饼","雏","姿","拌","傅","腹","妥","揉","贤","拆","歪","葡","胺","丢","浩","徽","昂","垫","挡","览","贪","慰","缴","汪","慌","冯","诺","姜","谊","凶","劣","诬","耀","昏","躺","盈","骑","乔","溪","丛","卢","抹","闷","咨","刮","驾","缆","悟","摘","铒","掷","颇","幻","柄","惠","惨","佳","仇","腊","窝","涤","剑","瞧","堡","泼","葱","罩","霍","捞","胎","苍","滨","俩","捅","湘","砍","霞","邵","萄","疯","淮","遂","熊","粪","烘","宿","档","戈","驳","嫂","裕","徙","箭","捐","肠","撑","晒","辨","殿","莲","摊","搅","酱","屏","疫","哀","蔡","堵","沫","皱","畅","叠","阁","莱","敲","辖","钩","痕","坝","巷","饿","祸","丘","玄","溜","曰","逻","彭","尝","卿","妨","艇","吞","韦","怨","矮","歇"]')},81:e=>{"use strict";e.exports=JSON.parse('["的","一","是","在","不","了","有","和","人","這","中","大","為","上","個","國","我","以","要","他","時","來","用","們","生","到","作","地","於","出","就","分","對","成","會","可","主","發","年","動","同","工","也","能","下","過","子","說","產","種","面","而","方","後","多","定","行","學","法","所","民","得","經","十","三","之","進","著","等","部","度","家","電","力","裡","如","水","化","高","自","二","理","起","小","物","現","實","加","量","都","兩","體","制","機","當","使","點","從","業","本","去","把","性","好","應","開","它","合","還","因","由","其","些","然","前","外","天","政","四","日","那","社","義","事","平","形","相","全","表","間","樣","與","關","各","重","新","線","內","數","正","心","反","你","明","看","原","又","麼","利","比","或","但","質","氣","第","向","道","命","此","變","條","只","沒","結","解","問","意","建","月","公","無","系","軍","很","情","者","最","立","代","想","已","通","並","提","直","題","黨","程","展","五","果","料","象","員","革","位","入","常","文","總","次","品","式","活","設","及","管","特","件","長","求","老","頭","基","資","邊","流","路","級","少","圖","山","統","接","知","較","將","組","見","計","別","她","手","角","期","根","論","運","農","指","幾","九","區","強","放","決","西","被","幹","做","必","戰","先","回","則","任","取","據","處","隊","南","給","色","光","門","即","保","治","北","造","百","規","熱","領","七","海","口","東","導","器","壓","志","世","金","增","爭","濟","階","油","思","術","極","交","受","聯","什","認","六","共","權","收","證","改","清","美","再","採","轉","更","單","風","切","打","白","教","速","花","帶","安","場","身","車","例","真","務","具","萬","每","目","至","達","走","積","示","議","聲","報","鬥","完","類","八","離","華","名","確","才","科","張","信","馬","節","話","米","整","空","元","況","今","集","溫","傳","土","許","步","群","廣","石","記","需","段","研","界","拉","林","律","叫","且","究","觀","越","織","裝","影","算","低","持","音","眾","書","布","复","容","兒","須","際","商","非","驗","連","斷","深","難","近","礦","千","週","委","素","技","備","半","辦","青","省","列","習","響","約","支","般","史","感","勞","便","團","往","酸","歷","市","克","何","除","消","構","府","稱","太","準","精","值","號","率","族","維","劃","選","標","寫","存","候","毛","親","快","效","斯","院","查","江","型","眼","王","按","格","養","易","置","派","層","片","始","卻","專","狀","育","廠","京","識","適","屬","圓","包","火","住","調","滿","縣","局","照","參","紅","細","引","聽","該","鐵","價","嚴","首","底","液","官","德","隨","病","蘇","失","爾","死","講","配","女","黃","推","顯","談","罪","神","藝","呢","席","含","企","望","密","批","營","項","防","舉","球","英","氧","勢","告","李","台","落","木","幫","輪","破","亞","師","圍","注","遠","字","材","排","供","河","態","封","另","施","減","樹","溶","怎","止","案","言","士","均","武","固","葉","魚","波","視","僅","費","緊","愛","左","章","早","朝","害","續","輕","服","試","食","充","兵","源","判","護","司","足","某","練","差","致","板","田","降","黑","犯","負","擊","范","繼","興","似","餘","堅","曲","輸","修","故","城","夫","夠","送","筆","船","佔","右","財","吃","富","春","職","覺","漢","畫","功","巴","跟","雖","雜","飛","檢","吸","助","昇","陽","互","初","創","抗","考","投","壞","策","古","徑","換","未","跑","留","鋼","曾","端","責","站","簡","述","錢","副","盡","帝","射","草","衝","承","獨","令","限","阿","宣","環","雙","請","超","微","讓","控","州","良","軸","找","否","紀","益","依","優","頂","礎","載","倒","房","突","坐","粉","敵","略","客","袁","冷","勝","絕","析","塊","劑","測","絲","協","訴","念","陳","仍","羅","鹽","友","洋","錯","苦","夜","刑","移","頻","逐","靠","混","母","短","皮","終","聚","汽","村","雲","哪","既","距","衛","停","烈","央","察","燒","迅","境","若","印","洲","刻","括","激","孔","搞","甚","室","待","核","校","散","侵","吧","甲","遊","久","菜","味","舊","模","湖","貨","損","預","阻","毫","普","穩","乙","媽","植","息","擴","銀","語","揮","酒","守","拿","序","紙","醫","缺","雨","嗎","針","劉","啊","急","唱","誤","訓","願","審","附","獲","茶","鮮","糧","斤","孩","脫","硫","肥","善","龍","演","父","漸","血","歡","械","掌","歌","沙","剛","攻","謂","盾","討","晚","粒","亂","燃","矛","乎","殺","藥","寧","魯","貴","鐘","煤","讀","班","伯","香","介","迫","句","豐","培","握","蘭","擔","弦","蛋","沉","假","穿","執","答","樂","誰","順","煙","縮","徵","臉","喜","松","腳","困","異","免","背","星","福","買","染","井","概","慢","怕","磁","倍","祖","皇","促","靜","補","評","翻","肉","踐","尼","衣","寬","揚","棉","希","傷","操","垂","秋","宜","氫","套","督","振","架","亮","末","憲","慶","編","牛","觸","映","雷","銷","詩","座","居","抓","裂","胞","呼","娘","景","威","綠","晶","厚","盟","衡","雞","孫","延","危","膠","屋","鄉","臨","陸","顧","掉","呀","燈","歲","措","束","耐","劇","玉","趙","跳","哥","季","課","凱","胡","額","款","紹","卷","齊","偉","蒸","殖","永","宗","苗","川","爐","岩","弱","零","楊","奏","沿","露","桿","探","滑","鎮","飯","濃","航","懷","趕","庫","奪","伊","靈","稅","途","滅","賽","歸","召","鼓","播","盤","裁","險","康","唯","錄","菌","純","借","糖","蓋","橫","符","私","努","堂","域","槍","潤","幅","哈","竟","熟","蟲","澤","腦","壤","碳","歐","遍","側","寨","敢","徹","慮","斜","薄","庭","納","彈","飼","伸","折","麥","濕","暗","荷","瓦","塞","床","築","惡","戶","訪","塔","奇","透","梁","刀","旋","跡","卡","氯","遇","份","毒","泥","退","洗","擺","灰","彩","賣","耗","夏","擇","忙","銅","獻","硬","予","繁","圈","雪","函","亦","抽","篇","陣","陰","丁","尺","追","堆","雄","迎","泛","爸","樓","避","謀","噸","野","豬","旗","累","偏","典","館","索","秦","脂","潮","爺","豆","忽","托","驚","塑","遺","愈","朱","替","纖","粗","傾","尚","痛","楚","謝","奮","購","磨","君","池","旁","碎","骨","監","捕","弟","暴","割","貫","殊","釋","詞","亡","壁","頓","寶","午","塵","聞","揭","炮","殘","冬","橋","婦","警","綜","招","吳","付","浮","遭","徐","您","搖","谷","贊","箱","隔","訂","男","吹","園","紛","唐","敗","宋","玻","巨","耕","坦","榮","閉","灣","鍵","凡","駐","鍋","救","恩","剝","凝","鹼","齒","截","煉","麻","紡","禁","廢","盛","版","緩","淨","睛","昌","婚","涉","筒","嘴","插","岸","朗","莊","街","藏","姑","貿","腐","奴","啦","慣","乘","夥","恢","勻","紗","扎","辯","耳","彪","臣","億","璃","抵","脈","秀","薩","俄","網","舞","店","噴","縱","寸","汗","掛","洪","賀","閃","柬","爆","烯","津","稻","牆","軟","勇","像","滾","厘","蒙","芳","肯","坡","柱","盪","腿","儀","旅","尾","軋","冰","貢","登","黎","削","鑽","勒","逃","障","氨","郭","峰","幣","港","伏","軌","畝","畢","擦","莫","刺","浪","秘","援","株","健","售","股","島","甘","泡","睡","童","鑄","湯","閥","休","匯","舍","牧","繞","炸","哲","磷","績","朋","淡","尖","啟","陷","柴","呈","徒","顏","淚","稍","忘","泵","藍","拖","洞","授","鏡","辛","壯","鋒","貧","虛","彎","摩","泰","幼","廷","尊","窗","綱","弄","隸","疑","氏","宮","姐","震","瑞","怪","尤","琴","循","描","膜","違","夾","腰","緣","珠","窮","森","枝","竹","溝","催","繩","憶","邦","剩","幸","漿","欄","擁","牙","貯","禮","濾","鈉","紋","罷","拍","咱","喊","袖","埃","勤","罰","焦","潛","伍","墨","欲","縫","姓","刊","飽","仿","獎","鋁","鬼","麗","跨","默","挖","鏈","掃","喝","袋","炭","污","幕","諸","弧","勵","梅","奶","潔","災","舟","鑑","苯","訟","抱","毀","懂","寒","智","埔","寄","屆","躍","渡","挑","丹","艱","貝","碰","拔","爹","戴","碼","夢","芽","熔","赤","漁","哭","敬","顆","奔","鉛","仲","虎","稀","妹","乏","珍","申","桌","遵","允","隆","螺","倉","魏","銳","曉","氮","兼","隱","礙","赫","撥","忠","肅","缸","牽","搶","博","巧","殼","兄","杜","訊","誠","碧","祥","柯","頁","巡","矩","悲","灌","齡","倫","票","尋","桂","鋪","聖","恐","恰","鄭","趣","抬","荒","騰","貼","柔","滴","猛","闊","輛","妻","填","撤","儲","簽","鬧","擾","紫","砂","遞","戲","吊","陶","伐","餵","療","瓶","婆","撫","臂","摸","忍","蝦","蠟","鄰","胸","鞏","擠","偶","棄","槽","勁","乳","鄧","吉","仁","爛","磚","租","烏","艦","伴","瓜","淺","丙","暫","燥","橡","柳","迷","暖","牌","秧","膽","詳","簧","踏","瓷","譜","呆","賓","糊","洛","輝","憤","競","隙","怒","粘","乃","緒","肩","籍","敏","塗","熙","皆","偵","懸","掘","享","糾","醒","狂","鎖","淀","恨","牲","霸","爬","賞","逆","玩","陵","祝","秒","浙","貌","役","彼","悉","鴨","趨","鳳","晨","畜","輩","秩","卵","署","梯","炎","灘","棋","驅","篩","峽","冒","啥","壽","譯","浸","泉","帽","遲","矽","疆","貸","漏","稿","冠","嫩","脅","芯","牢","叛","蝕","奧","鳴","嶺","羊","憑","串","塘","繪","酵","融","盆","錫","廟","籌","凍","輔","攝","襲","筋","拒","僚","旱","鉀","鳥","漆","沈","眉","疏","添","棒","穗","硝","韓","逼","扭","僑","涼","挺","碗","栽","炒","杯","患","餾","勸","豪","遼","勃","鴻","旦","吏","拜","狗","埋","輥","掩","飲","搬","罵","辭","勾","扣","估","蔣","絨","霧","丈","朵","姆","擬","宇","輯","陝","雕","償","蓄","崇","剪","倡","廳","咬","駛","薯","刷","斥","番","賦","奉","佛","澆","漫","曼","扇","鈣","桃","扶","仔","返","俗","虧","腔","鞋","棱","覆","框","悄","叔","撞","騙","勘","旺","沸","孤","吐","孟","渠","屈","疾","妙","惜","仰","狠","脹","諧","拋","黴","桑","崗","嘛","衰","盜","滲","臟","賴","湧","甜","曹","閱","肌","哩","厲","烴","緯","毅","昨","偽","症","煮","嘆","釘","搭","莖","籠","酷","偷","弓","錐","恆","傑","坑","鼻","翼","綸","敘","獄","逮","罐","絡","棚","抑","膨","蔬","寺","驟","穆","冶","枯","冊","屍","凸","紳","坯","犧","焰","轟","欣","晉","瘦","禦","錠","錦","喪","旬","鍛","壟","搜","撲","邀","亭","酯","邁","舒","脆","酶","閒","憂","酚","頑","羽","漲","卸","仗","陪","闢","懲","杭","姚","肚","捉","飄","漂","昆","欺","吾","郎","烷","汁","呵","飾","蕭","雅","郵","遷","燕","撒","姻","赴","宴","煩","債","帳","斑","鈴","旨","醇","董","餅","雛","姿","拌","傅","腹","妥","揉","賢","拆","歪","葡","胺","丟","浩","徽","昂","墊","擋","覽","貪","慰","繳","汪","慌","馮","諾","姜","誼","兇","劣","誣","耀","昏","躺","盈","騎","喬","溪","叢","盧","抹","悶","諮","刮","駕","纜","悟","摘","鉺","擲","頗","幻","柄","惠","慘","佳","仇","臘","窩","滌","劍","瞧","堡","潑","蔥","罩","霍","撈","胎","蒼","濱","倆","捅","湘","砍","霞","邵","萄","瘋","淮","遂","熊","糞","烘","宿","檔","戈","駁","嫂","裕","徙","箭","捐","腸","撐","曬","辨","殿","蓮","攤","攪","醬","屏","疫","哀","蔡","堵","沫","皺","暢","疊","閣","萊","敲","轄","鉤","痕","壩","巷","餓","禍","丘","玄","溜","曰","邏","彭","嘗","卿","妨","艇","吞","韋","怨","矮","歇"]')},2607:e=>{"use strict";e.exports=JSON.parse('["abdikace","abeceda","adresa","agrese","akce","aktovka","alej","alkohol","amputace","ananas","andulka","anekdota","anketa","antika","anulovat","archa","arogance","asfalt","asistent","aspirace","astma","astronom","atlas","atletika","atol","autobus","azyl","babka","bachor","bacil","baculka","badatel","bageta","bagr","bahno","bakterie","balada","baletka","balkon","balonek","balvan","balza","bambus","bankomat","barbar","baret","barman","baroko","barva","baterka","batoh","bavlna","bazalka","bazilika","bazuka","bedna","beran","beseda","bestie","beton","bezinka","bezmoc","beztak","bicykl","bidlo","biftek","bikiny","bilance","biograf","biolog","bitva","bizon","blahobyt","blatouch","blecha","bledule","blesk","blikat","blizna","blokovat","bloudit","blud","bobek","bobr","bodlina","bodnout","bohatost","bojkot","bojovat","bokorys","bolest","borec","borovice","bota","boubel","bouchat","bouda","boule","bourat","boxer","bradavka","brambora","branka","bratr","brepta","briketa","brko","brloh","bronz","broskev","brunetka","brusinka","brzda","brzy","bublina","bubnovat","buchta","buditel","budka","budova","bufet","bujarost","bukvice","buldok","bulva","bunda","bunkr","burza","butik","buvol","buzola","bydlet","bylina","bytovka","bzukot","capart","carevna","cedr","cedule","cejch","cejn","cela","celer","celkem","celnice","cenina","cennost","cenovka","centrum","cenzor","cestopis","cetka","chalupa","chapadlo","charita","chata","chechtat","chemie","chichot","chirurg","chlad","chleba","chlubit","chmel","chmura","chobot","chochol","chodba","cholera","chomout","chopit","choroba","chov","chrapot","chrlit","chrt","chrup","chtivost","chudina","chutnat","chvat","chvilka","chvost","chyba","chystat","chytit","cibule","cigareta","cihelna","cihla","cinkot","cirkus","cisterna","citace","citrus","cizinec","cizost","clona","cokoliv","couvat","ctitel","ctnost","cudnost","cuketa","cukr","cupot","cvaknout","cval","cvik","cvrkot","cyklista","daleko","dareba","datel","datum","dcera","debata","dechovka","decibel","deficit","deflace","dekl","dekret","demokrat","deprese","derby","deska","detektiv","dikobraz","diktovat","dioda","diplom","disk","displej","divadlo","divoch","dlaha","dlouho","dluhopis","dnes","dobro","dobytek","docent","dochutit","dodnes","dohled","dohoda","dohra","dojem","dojnice","doklad","dokola","doktor","dokument","dolar","doleva","dolina","doma","dominant","domluvit","domov","donutit","dopad","dopis","doplnit","doposud","doprovod","dopustit","dorazit","dorost","dort","dosah","doslov","dostatek","dosud","dosyta","dotaz","dotek","dotknout","doufat","doutnat","dovozce","dozadu","doznat","dozorce","drahota","drak","dramatik","dravec","draze","drdol","drobnost","drogerie","drozd","drsnost","drtit","drzost","duben","duchovno","dudek","duha","duhovka","dusit","dusno","dutost","dvojice","dvorec","dynamit","ekolog","ekonomie","elektron","elipsa","email","emise","emoce","empatie","epizoda","epocha","epopej","epos","esej","esence","eskorta","eskymo","etiketa","euforie","evoluce","exekuce","exkurze","expedice","exploze","export","extrakt","facka","fajfka","fakulta","fanatik","fantazie","farmacie","favorit","fazole","federace","fejeton","fenka","fialka","figurant","filozof","filtr","finance","finta","fixace","fjord","flanel","flirt","flotila","fond","fosfor","fotbal","fotka","foton","frakce","freska","fronta","fukar","funkce","fyzika","galeje","garant","genetika","geolog","gilotina","glazura","glejt","golem","golfista","gotika","graf","gramofon","granule","grep","gril","grog","groteska","guma","hadice","hadr","hala","halenka","hanba","hanopis","harfa","harpuna","havran","hebkost","hejkal","hejno","hejtman","hektar","helma","hematom","herec","herna","heslo","hezky","historik","hladovka","hlasivky","hlava","hledat","hlen","hlodavec","hloh","hloupost","hltat","hlubina","hluchota","hmat","hmota","hmyz","hnis","hnojivo","hnout","hoblina","hoboj","hoch","hodiny","hodlat","hodnota","hodovat","hojnost","hokej","holinka","holka","holub","homole","honitba","honorace","horal","horda","horizont","horko","horlivec","hormon","hornina","horoskop","horstvo","hospoda","hostina","hotovost","houba","houf","houpat","houska","hovor","hradba","hranice","hravost","hrazda","hrbolek","hrdina","hrdlo","hrdost","hrnek","hrobka","hromada","hrot","hrouda","hrozen","hrstka","hrubost","hryzat","hubenost","hubnout","hudba","hukot","humr","husita","hustota","hvozd","hybnost","hydrant","hygiena","hymna","hysterik","idylka","ihned","ikona","iluze","imunita","infekce","inflace","inkaso","inovace","inspekce","internet","invalida","investor","inzerce","ironie","jablko","jachta","jahoda","jakmile","jakost","jalovec","jantar","jarmark","jaro","jasan","jasno","jatka","javor","jazyk","jedinec","jedle","jednatel","jehlan","jekot","jelen","jelito","jemnost","jenom","jepice","jeseter","jevit","jezdec","jezero","jinak","jindy","jinoch","jiskra","jistota","jitrnice","jizva","jmenovat","jogurt","jurta","kabaret","kabel","kabinet","kachna","kadet","kadidlo","kahan","kajak","kajuta","kakao","kaktus","kalamita","kalhoty","kalibr","kalnost","kamera","kamkoliv","kamna","kanibal","kanoe","kantor","kapalina","kapela","kapitola","kapka","kaple","kapota","kapr","kapusta","kapybara","karamel","karotka","karton","kasa","katalog","katedra","kauce","kauza","kavalec","kazajka","kazeta","kazivost","kdekoliv","kdesi","kedluben","kemp","keramika","kino","klacek","kladivo","klam","klapot","klasika","klaun","klec","klenba","klepat","klesnout","klid","klima","klisna","klobouk","klokan","klopa","kloub","klubovna","klusat","kluzkost","kmen","kmitat","kmotr","kniha","knot","koalice","koberec","kobka","kobliha","kobyla","kocour","kohout","kojenec","kokos","koktejl","kolaps","koleda","kolize","kolo","komando","kometa","komik","komnata","komora","kompas","komunita","konat","koncept","kondice","konec","konfese","kongres","konina","konkurs","kontakt","konzerva","kopanec","kopie","kopnout","koprovka","korbel","korektor","kormidlo","koroptev","korpus","koruna","koryto","korzet","kosatec","kostka","kotel","kotleta","kotoul","koukat","koupelna","kousek","kouzlo","kovboj","koza","kozoroh","krabice","krach","krajina","kralovat","krasopis","kravata","kredit","krejcar","kresba","kreveta","kriket","kritik","krize","krkavec","krmelec","krmivo","krocan","krok","kronika","kropit","kroupa","krovka","krtek","kruhadlo","krupice","krutost","krvinka","krychle","krypta","krystal","kryt","kudlanka","kufr","kujnost","kukla","kulajda","kulich","kulka","kulomet","kultura","kuna","kupodivu","kurt","kurzor","kutil","kvalita","kvasinka","kvestor","kynolog","kyselina","kytara","kytice","kytka","kytovec","kyvadlo","labrador","lachtan","ladnost","laik","lakomec","lamela","lampa","lanovka","lasice","laso","lastura","latinka","lavina","lebka","leckdy","leden","lednice","ledovka","ledvina","legenda","legie","legrace","lehce","lehkost","lehnout","lektvar","lenochod","lentilka","lepenka","lepidlo","letadlo","letec","letmo","letokruh","levhart","levitace","levobok","libra","lichotka","lidojed","lidskost","lihovina","lijavec","lilek","limetka","linie","linka","linoleum","listopad","litina","litovat","lobista","lodivod","logika","logoped","lokalita","loket","lomcovat","lopata","lopuch","lord","losos","lotr","loudal","louh","louka","louskat","lovec","lstivost","lucerna","lucifer","lump","lusk","lustrace","lvice","lyra","lyrika","lysina","madam","madlo","magistr","mahagon","majetek","majitel","majorita","makak","makovice","makrela","malba","malina","malovat","malvice","maminka","mandle","manko","marnost","masakr","maskot","masopust","matice","matrika","maturita","mazanec","mazivo","mazlit","mazurka","mdloba","mechanik","meditace","medovina","melasa","meloun","mentolka","metla","metoda","metr","mezera","migrace","mihnout","mihule","mikina","mikrofon","milenec","milimetr","milost","mimika","mincovna","minibar","minomet","minulost","miska","mistr","mixovat","mladost","mlha","mlhovina","mlok","mlsat","mluvit","mnich","mnohem","mobil","mocnost","modelka","modlitba","mohyla","mokro","molekula","momentka","monarcha","monokl","monstrum","montovat","monzun","mosaz","moskyt","most","motivace","motorka","motyka","moucha","moudrost","mozaika","mozek","mozol","mramor","mravenec","mrkev","mrtvola","mrzet","mrzutost","mstitel","mudrc","muflon","mulat","mumie","munice","muset","mutace","muzeum","muzikant","myslivec","mzda","nabourat","nachytat","nadace","nadbytek","nadhoz","nadobro","nadpis","nahlas","nahnat","nahodile","nahradit","naivita","najednou","najisto","najmout","naklonit","nakonec","nakrmit","nalevo","namazat","namluvit","nanometr","naoko","naopak","naostro","napadat","napevno","naplnit","napnout","naposled","naprosto","narodit","naruby","narychlo","nasadit","nasekat","naslepo","nastat","natolik","navenek","navrch","navzdory","nazvat","nebe","nechat","necky","nedaleko","nedbat","neduh","negace","nehet","nehoda","nejen","nejprve","neklid","nelibost","nemilost","nemoc","neochota","neonka","nepokoj","nerost","nerv","nesmysl","nesoulad","netvor","neuron","nevina","nezvykle","nicota","nijak","nikam","nikdy","nikl","nikterak","nitro","nocleh","nohavice","nominace","nora","norek","nositel","nosnost","nouze","noviny","novota","nozdra","nuda","nudle","nuget","nutit","nutnost","nutrie","nymfa","obal","obarvit","obava","obdiv","obec","obehnat","obejmout","obezita","obhajoba","obilnice","objasnit","objekt","obklopit","oblast","oblek","obliba","obloha","obluda","obnos","obohatit","obojek","obout","obrazec","obrna","obruba","obrys","obsah","obsluha","obstarat","obuv","obvaz","obvinit","obvod","obvykle","obyvatel","obzor","ocas","ocel","ocenit","ochladit","ochota","ochrana","ocitnout","odboj","odbyt","odchod","odcizit","odebrat","odeslat","odevzdat","odezva","odhadce","odhodit","odjet","odjinud","odkaz","odkoupit","odliv","odluka","odmlka","odolnost","odpad","odpis","odplout","odpor","odpustit","odpykat","odrazka","odsoudit","odstup","odsun","odtok","odtud","odvaha","odveta","odvolat","odvracet","odznak","ofina","ofsajd","ohlas","ohnisko","ohrada","ohrozit","ohryzek","okap","okenice","oklika","okno","okouzlit","okovy","okrasa","okres","okrsek","okruh","okupant","okurka","okusit","olejnina","olizovat","omak","omeleta","omezit","omladina","omlouvat","omluva","omyl","onehdy","opakovat","opasek","operace","opice","opilost","opisovat","opora","opozice","opravdu","oproti","orbital","orchestr","orgie","orlice","orloj","ortel","osada","oschnout","osika","osivo","oslava","oslepit","oslnit","oslovit","osnova","osoba","osolit","ospalec","osten","ostraha","ostuda","ostych","osvojit","oteplit","otisk","otop","otrhat","otrlost","otrok","otruby","otvor","ovanout","ovar","oves","ovlivnit","ovoce","oxid","ozdoba","pachatel","pacient","padouch","pahorek","pakt","palanda","palec","palivo","paluba","pamflet","pamlsek","panenka","panika","panna","panovat","panstvo","pantofle","paprika","parketa","parodie","parta","paruka","paryba","paseka","pasivita","pastelka","patent","patrona","pavouk","pazneht","pazourek","pecka","pedagog","pejsek","peklo","peloton","penalta","pendrek","penze","periskop","pero","pestrost","petarda","petice","petrolej","pevnina","pexeso","pianista","piha","pijavice","pikle","piknik","pilina","pilnost","pilulka","pinzeta","pipeta","pisatel","pistole","pitevna","pivnice","pivovar","placenta","plakat","plamen","planeta","plastika","platit","plavidlo","plaz","plech","plemeno","plenta","ples","pletivo","plevel","plivat","plnit","plno","plocha","plodina","plomba","plout","pluk","plyn","pobavit","pobyt","pochod","pocit","poctivec","podat","podcenit","podepsat","podhled","podivit","podklad","podmanit","podnik","podoba","podpora","podraz","podstata","podvod","podzim","poezie","pohanka","pohnutka","pohovor","pohroma","pohyb","pointa","pojistka","pojmout","pokazit","pokles","pokoj","pokrok","pokuta","pokyn","poledne","polibek","polknout","poloha","polynom","pomalu","pominout","pomlka","pomoc","pomsta","pomyslet","ponechat","ponorka","ponurost","popadat","popel","popisek","poplach","poprosit","popsat","popud","poradce","porce","porod","porucha","poryv","posadit","posed","posila","poskok","poslanec","posoudit","pospolu","postava","posudek","posyp","potah","potkan","potlesk","potomek","potrava","potupa","potvora","poukaz","pouto","pouzdro","povaha","povidla","povlak","povoz","povrch","povstat","povyk","povzdech","pozdrav","pozemek","poznatek","pozor","pozvat","pracovat","prahory","praktika","prales","praotec","praporek","prase","pravda","princip","prkno","probudit","procento","prodej","profese","prohra","projekt","prolomit","promile","pronikat","propad","prorok","prosba","proton","proutek","provaz","prskavka","prsten","prudkost","prut","prvek","prvohory","psanec","psovod","pstruh","ptactvo","puberta","puch","pudl","pukavec","puklina","pukrle","pult","pumpa","punc","pupen","pusa","pusinka","pustina","putovat","putyka","pyramida","pysk","pytel","racek","rachot","radiace","radnice","radon","raft","ragby","raketa","rakovina","rameno","rampouch","rande","rarach","rarita","rasovna","rastr","ratolest","razance","razidlo","reagovat","reakce","recept","redaktor","referent","reflex","rejnok","reklama","rekord","rekrut","rektor","reputace","revize","revma","revolver","rezerva","riskovat","riziko","robotika","rodokmen","rohovka","rokle","rokoko","romaneto","ropovod","ropucha","rorejs","rosol","rostlina","rotmistr","rotoped","rotunda","roubenka","roucho","roup","roura","rovina","rovnice","rozbor","rozchod","rozdat","rozeznat","rozhodce","rozinka","rozjezd","rozkaz","rozloha","rozmar","rozpad","rozruch","rozsah","roztok","rozum","rozvod","rubrika","ruchadlo","rukavice","rukopis","ryba","rybolov","rychlost","rydlo","rypadlo","rytina","ryzost","sadista","sahat","sako","samec","samizdat","samota","sanitka","sardinka","sasanka","satelit","sazba","sazenice","sbor","schovat","sebranka","secese","sedadlo","sediment","sedlo","sehnat","sejmout","sekera","sekta","sekunda","sekvoje","semeno","seno","servis","sesadit","seshora","seskok","seslat","sestra","sesuv","sesypat","setba","setina","setkat","setnout","setrvat","sever","seznam","shoda","shrnout","sifon","silnice","sirka","sirotek","sirup","situace","skafandr","skalisko","skanzen","skaut","skeptik","skica","skladba","sklenice","sklo","skluz","skoba","skokan","skoro","skripta","skrz","skupina","skvost","skvrna","slabika","sladidlo","slanina","slast","slavnost","sledovat","slepec","sleva","slezina","slib","slina","sliznice","slon","sloupek","slovo","sluch","sluha","slunce","slupka","slza","smaragd","smetana","smilstvo","smlouva","smog","smrad","smrk","smrtka","smutek","smysl","snad","snaha","snob","sobota","socha","sodovka","sokol","sopka","sotva","souboj","soucit","soudce","souhlas","soulad","soumrak","souprava","soused","soutok","souviset","spalovna","spasitel","spis","splav","spodek","spojenec","spolu","sponzor","spornost","spousta","sprcha","spustit","sranda","sraz","srdce","srna","srnec","srovnat","srpen","srst","srub","stanice","starosta","statika","stavba","stehno","stezka","stodola","stolek","stopa","storno","stoupat","strach","stres","strhnout","strom","struna","studna","stupnice","stvol","styk","subjekt","subtropy","suchar","sudost","sukno","sundat","sunout","surikata","surovina","svah","svalstvo","svetr","svatba","svazek","svisle","svitek","svoboda","svodidlo","svorka","svrab","sykavka","sykot","synek","synovec","sypat","sypkost","syrovost","sysel","sytost","tabletka","tabule","tahoun","tajemno","tajfun","tajga","tajit","tajnost","taktika","tamhle","tampon","tancovat","tanec","tanker","tapeta","tavenina","tazatel","technika","tehdy","tekutina","telefon","temnota","tendence","tenista","tenor","teplota","tepna","teprve","terapie","termoska","textil","ticho","tiskopis","titulek","tkadlec","tkanina","tlapka","tleskat","tlukot","tlupa","tmel","toaleta","topinka","topol","torzo","touha","toulec","tradice","traktor","tramp","trasa","traverza","trefit","trest","trezor","trhavina","trhlina","trochu","trojice","troska","trouba","trpce","trpitel","trpkost","trubec","truchlit","truhlice","trus","trvat","tudy","tuhnout","tuhost","tundra","turista","turnaj","tuzemsko","tvaroh","tvorba","tvrdost","tvrz","tygr","tykev","ubohost","uboze","ubrat","ubrousek","ubrus","ubytovna","ucho","uctivost","udivit","uhradit","ujednat","ujistit","ujmout","ukazatel","uklidnit","uklonit","ukotvit","ukrojit","ulice","ulita","ulovit","umyvadlo","unavit","uniforma","uniknout","upadnout","uplatnit","uplynout","upoutat","upravit","uran","urazit","usednout","usilovat","usmrtit","usnadnit","usnout","usoudit","ustlat","ustrnout","utahovat","utkat","utlumit","utonout","utopenec","utrousit","uvalit","uvolnit","uvozovka","uzdravit","uzel","uzenina","uzlina","uznat","vagon","valcha","valoun","vana","vandal","vanilka","varan","varhany","varovat","vcelku","vchod","vdova","vedro","vegetace","vejce","velbloud","veletrh","velitel","velmoc","velryba","venkov","veranda","verze","veselka","veskrze","vesnice","vespodu","vesta","veterina","veverka","vibrace","vichr","videohra","vidina","vidle","vila","vinice","viset","vitalita","vize","vizitka","vjezd","vklad","vkus","vlajka","vlak","vlasec","vlevo","vlhkost","vliv","vlnovka","vloupat","vnucovat","vnuk","voda","vodivost","vodoznak","vodstvo","vojensky","vojna","vojsko","volant","volba","volit","volno","voskovka","vozidlo","vozovna","vpravo","vrabec","vracet","vrah","vrata","vrba","vrcholek","vrhat","vrstva","vrtule","vsadit","vstoupit","vstup","vtip","vybavit","vybrat","vychovat","vydat","vydra","vyfotit","vyhledat","vyhnout","vyhodit","vyhradit","vyhubit","vyjasnit","vyjet","vyjmout","vyklopit","vykonat","vylekat","vymazat","vymezit","vymizet","vymyslet","vynechat","vynikat","vynutit","vypadat","vyplatit","vypravit","vypustit","vyrazit","vyrovnat","vyrvat","vyslovit","vysoko","vystavit","vysunout","vysypat","vytasit","vytesat","vytratit","vyvinout","vyvolat","vyvrhel","vyzdobit","vyznat","vzadu","vzbudit","vzchopit","vzdor","vzduch","vzdychat","vzestup","vzhledem","vzkaz","vzlykat","vznik","vzorek","vzpoura","vztah","vztek","xylofon","zabrat","zabydlet","zachovat","zadarmo","zadusit","zafoukat","zahltit","zahodit","zahrada","zahynout","zajatec","zajet","zajistit","zaklepat","zakoupit","zalepit","zamezit","zamotat","zamyslet","zanechat","zanikat","zaplatit","zapojit","zapsat","zarazit","zastavit","zasunout","zatajit","zatemnit","zatknout","zaujmout","zavalit","zavelet","zavinit","zavolat","zavrtat","zazvonit","zbavit","zbrusu","zbudovat","zbytek","zdaleka","zdarma","zdatnost","zdivo","zdobit","zdroj","zdvih","zdymadlo","zelenina","zeman","zemina","zeptat","zezadu","zezdola","zhatit","zhltnout","zhluboka","zhotovit","zhruba","zima","zimnice","zjemnit","zklamat","zkoumat","zkratka","zkumavka","zlato","zlehka","zloba","zlom","zlost","zlozvyk","zmapovat","zmar","zmatek","zmije","zmizet","zmocnit","zmodrat","zmrzlina","zmutovat","znak","znalost","znamenat","znovu","zobrazit","zotavit","zoubek","zoufale","zplodit","zpomalit","zprava","zprostit","zprudka","zprvu","zrada","zranit","zrcadlo","zrnitost","zrno","zrovna","zrychlit","zrzavost","zticha","ztratit","zubovina","zubr","zvednout","zvenku","zvesela","zvon","zvrat","zvukovod","zvyk"]')},7736:e=>{"use strict";e.exports=JSON.parse('["abandon","ability","able","about","above","absent","absorb","abstract","absurd","abuse","access","accident","account","accuse","achieve","acid","acoustic","acquire","across","act","action","actor","actress","actual","adapt","add","addict","address","adjust","admit","adult","advance","advice","aerobic","affair","afford","afraid","again","age","agent","agree","ahead","aim","air","airport","aisle","alarm","album","alcohol","alert","alien","all","alley","allow","almost","alone","alpha","already","also","alter","always","amateur","amazing","among","amount","amused","analyst","anchor","ancient","anger","angle","angry","animal","ankle","announce","annual","another","answer","antenna","antique","anxiety","any","apart","apology","appear","apple","approve","april","arch","arctic","area","arena","argue","arm","armed","armor","army","around","arrange","arrest","arrive","arrow","art","artefact","artist","artwork","ask","aspect","assault","asset","assist","assume","asthma","athlete","atom","attack","attend","attitude","attract","auction","audit","august","aunt","author","auto","autumn","average","avocado","avoid","awake","aware","away","awesome","awful","awkward","axis","baby","bachelor","bacon","badge","bag","balance","balcony","ball","bamboo","banana","banner","bar","barely","bargain","barrel","base","basic","basket","battle","beach","bean","beauty","because","become","beef","before","begin","behave","behind","believe","below","belt","bench","benefit","best","betray","better","between","beyond","bicycle","bid","bike","bind","biology","bird","birth","bitter","black","blade","blame","blanket","blast","bleak","bless","blind","blood","blossom","blouse","blue","blur","blush","board","boat","body","boil","bomb","bone","bonus","book","boost","border","boring","borrow","boss","bottom","bounce","box","boy","bracket","brain","brand","brass","brave","bread","breeze","brick","bridge","brief","bright","bring","brisk","broccoli","broken","bronze","broom","brother","brown","brush","bubble","buddy","budget","buffalo","build","bulb","bulk","bullet","bundle","bunker","burden","burger","burst","bus","business","busy","butter","buyer","buzz","cabbage","cabin","cable","cactus","cage","cake","call","calm","camera","camp","can","canal","cancel","candy","cannon","canoe","canvas","canyon","capable","capital","captain","car","carbon","card","cargo","carpet","carry","cart","case","cash","casino","castle","casual","cat","catalog","catch","category","cattle","caught","cause","caution","cave","ceiling","celery","cement","census","century","cereal","certain","chair","chalk","champion","change","chaos","chapter","charge","chase","chat","cheap","check","cheese","chef","cherry","chest","chicken","chief","child","chimney","choice","choose","chronic","chuckle","chunk","churn","cigar","cinnamon","circle","citizen","city","civil","claim","clap","clarify","claw","clay","clean","clerk","clever","click","client","cliff","climb","clinic","clip","clock","clog","close","cloth","cloud","clown","club","clump","cluster","clutch","coach","coast","coconut","code","coffee","coil","coin","collect","color","column","combine","come","comfort","comic","common","company","concert","conduct","confirm","congress","connect","consider","control","convince","cook","cool","copper","copy","coral","core","corn","correct","cost","cotton","couch","country","couple","course","cousin","cover","coyote","crack","cradle","craft","cram","crane","crash","crater","crawl","crazy","cream","credit","creek","crew","cricket","crime","crisp","critic","crop","cross","crouch","crowd","crucial","cruel","cruise","crumble","crunch","crush","cry","crystal","cube","culture","cup","cupboard","curious","current","curtain","curve","cushion","custom","cute","cycle","dad","damage","damp","dance","danger","daring","dash","daughter","dawn","day","deal","debate","debris","decade","december","decide","decline","decorate","decrease","deer","defense","define","defy","degree","delay","deliver","demand","demise","denial","dentist","deny","depart","depend","deposit","depth","deputy","derive","describe","desert","design","desk","despair","destroy","detail","detect","develop","device","devote","diagram","dial","diamond","diary","dice","diesel","diet","differ","digital","dignity","dilemma","dinner","dinosaur","direct","dirt","disagree","discover","disease","dish","dismiss","disorder","display","distance","divert","divide","divorce","dizzy","doctor","document","dog","doll","dolphin","domain","donate","donkey","donor","door","dose","double","dove","draft","dragon","drama","drastic","draw","dream","dress","drift","drill","drink","drip","drive","drop","drum","dry","duck","dumb","dune","during","dust","dutch","duty","dwarf","dynamic","eager","eagle","early","earn","earth","easily","east","easy","echo","ecology","economy","edge","edit","educate","effort","egg","eight","either","elbow","elder","electric","elegant","element","elephant","elevator","elite","else","embark","embody","embrace","emerge","emotion","employ","empower","empty","enable","enact","end","endless","endorse","enemy","energy","enforce","engage","engine","enhance","enjoy","enlist","enough","enrich","enroll","ensure","enter","entire","entry","envelope","episode","equal","equip","era","erase","erode","erosion","error","erupt","escape","essay","essence","estate","eternal","ethics","evidence","evil","evoke","evolve","exact","example","excess","exchange","excite","exclude","excuse","execute","exercise","exhaust","exhibit","exile","exist","exit","exotic","expand","expect","expire","explain","expose","express","extend","extra","eye","eyebrow","fabric","face","faculty","fade","faint","faith","fall","false","fame","family","famous","fan","fancy","fantasy","farm","fashion","fat","fatal","father","fatigue","fault","favorite","feature","february","federal","fee","feed","feel","female","fence","festival","fetch","fever","few","fiber","fiction","field","figure","file","film","filter","final","find","fine","finger","finish","fire","firm","first","fiscal","fish","fit","fitness","fix","flag","flame","flash","flat","flavor","flee","flight","flip","float","flock","floor","flower","fluid","flush","fly","foam","focus","fog","foil","fold","follow","food","foot","force","forest","forget","fork","fortune","forum","forward","fossil","foster","found","fox","fragile","frame","frequent","fresh","friend","fringe","frog","front","frost","frown","frozen","fruit","fuel","fun","funny","furnace","fury","future","gadget","gain","galaxy","gallery","game","gap","garage","garbage","garden","garlic","garment","gas","gasp","gate","gather","gauge","gaze","general","genius","genre","gentle","genuine","gesture","ghost","giant","gift","giggle","ginger","giraffe","girl","give","glad","glance","glare","glass","glide","glimpse","globe","gloom","glory","glove","glow","glue","goat","goddess","gold","good","goose","gorilla","gospel","gossip","govern","gown","grab","grace","grain","grant","grape","grass","gravity","great","green","grid","grief","grit","grocery","group","grow","grunt","guard","guess","guide","guilt","guitar","gun","gym","habit","hair","half","hammer","hamster","hand","happy","harbor","hard","harsh","harvest","hat","have","hawk","hazard","head","health","heart","heavy","hedgehog","height","hello","helmet","help","hen","hero","hidden","high","hill","hint","hip","hire","history","hobby","hockey","hold","hole","holiday","hollow","home","honey","hood","hope","horn","horror","horse","hospital","host","hotel","hour","hover","hub","huge","human","humble","humor","hundred","hungry","hunt","hurdle","hurry","hurt","husband","hybrid","ice","icon","idea","identify","idle","ignore","ill","illegal","illness","image","imitate","immense","immune","impact","impose","improve","impulse","inch","include","income","increase","index","indicate","indoor","industry","infant","inflict","inform","inhale","inherit","initial","inject","injury","inmate","inner","innocent","input","inquiry","insane","insect","inside","inspire","install","intact","interest","into","invest","invite","involve","iron","island","isolate","issue","item","ivory","jacket","jaguar","jar","jazz","jealous","jeans","jelly","jewel","job","join","joke","journey","joy","judge","juice","jump","jungle","junior","junk","just","kangaroo","keen","keep","ketchup","key","kick","kid","kidney","kind","kingdom","kiss","kit","kitchen","kite","kitten","kiwi","knee","knife","knock","know","lab","label","labor","ladder","lady","lake","lamp","language","laptop","large","later","latin","laugh","laundry","lava","law","lawn","lawsuit","layer","lazy","leader","leaf","learn","leave","lecture","left","leg","legal","legend","leisure","lemon","lend","length","lens","leopard","lesson","letter","level","liar","liberty","library","license","life","lift","light","like","limb","limit","link","lion","liquid","list","little","live","lizard","load","loan","lobster","local","lock","logic","lonely","long","loop","lottery","loud","lounge","love","loyal","lucky","luggage","lumber","lunar","lunch","luxury","lyrics","machine","mad","magic","magnet","maid","mail","main","major","make","mammal","man","manage","mandate","mango","mansion","manual","maple","marble","march","margin","marine","market","marriage","mask","mass","master","match","material","math","matrix","matter","maximum","maze","meadow","mean","measure","meat","mechanic","medal","media","melody","melt","member","memory","mention","menu","mercy","merge","merit","merry","mesh","message","metal","method","middle","midnight","milk","million","mimic","mind","minimum","minor","minute","miracle","mirror","misery","miss","mistake","mix","mixed","mixture","mobile","model","modify","mom","moment","monitor","monkey","monster","month","moon","moral","more","morning","mosquito","mother","motion","motor","mountain","mouse","move","movie","much","muffin","mule","multiply","muscle","museum","mushroom","music","must","mutual","myself","mystery","myth","naive","name","napkin","narrow","nasty","nation","nature","near","neck","need","negative","neglect","neither","nephew","nerve","nest","net","network","neutral","never","news","next","nice","night","noble","noise","nominee","noodle","normal","north","nose","notable","note","nothing","notice","novel","now","nuclear","number","nurse","nut","oak","obey","object","oblige","obscure","observe","obtain","obvious","occur","ocean","october","odor","off","offer","office","often","oil","okay","old","olive","olympic","omit","once","one","onion","online","only","open","opera","opinion","oppose","option","orange","orbit","orchard","order","ordinary","organ","orient","original","orphan","ostrich","other","outdoor","outer","output","outside","oval","oven","over","own","owner","oxygen","oyster","ozone","pact","paddle","page","pair","palace","palm","panda","panel","panic","panther","paper","parade","parent","park","parrot","party","pass","patch","path","patient","patrol","pattern","pause","pave","payment","peace","peanut","pear","peasant","pelican","pen","penalty","pencil","people","pepper","perfect","permit","person","pet","phone","photo","phrase","physical","piano","picnic","picture","piece","pig","pigeon","pill","pilot","pink","pioneer","pipe","pistol","pitch","pizza","place","planet","plastic","plate","play","please","pledge","pluck","plug","plunge","poem","poet","point","polar","pole","police","pond","pony","pool","popular","portion","position","possible","post","potato","pottery","poverty","powder","power","practice","praise","predict","prefer","prepare","present","pretty","prevent","price","pride","primary","print","priority","prison","private","prize","problem","process","produce","profit","program","project","promote","proof","property","prosper","protect","proud","provide","public","pudding","pull","pulp","pulse","pumpkin","punch","pupil","puppy","purchase","purity","purpose","purse","push","put","puzzle","pyramid","quality","quantum","quarter","question","quick","quit","quiz","quote","rabbit","raccoon","race","rack","radar","radio","rail","rain","raise","rally","ramp","ranch","random","range","rapid","rare","rate","rather","raven","raw","razor","ready","real","reason","rebel","rebuild","recall","receive","recipe","record","recycle","reduce","reflect","reform","refuse","region","regret","regular","reject","relax","release","relief","rely","remain","remember","remind","remove","render","renew","rent","reopen","repair","repeat","replace","report","require","rescue","resemble","resist","resource","response","result","retire","retreat","return","reunion","reveal","review","reward","rhythm","rib","ribbon","rice","rich","ride","ridge","rifle","right","rigid","ring","riot","ripple","risk","ritual","rival","river","road","roast","robot","robust","rocket","romance","roof","rookie","room","rose","rotate","rough","round","route","royal","rubber","rude","rug","rule","run","runway","rural","sad","saddle","sadness","safe","sail","salad","salmon","salon","salt","salute","same","sample","sand","satisfy","satoshi","sauce","sausage","save","say","scale","scan","scare","scatter","scene","scheme","school","science","scissors","scorpion","scout","scrap","screen","script","scrub","sea","search","season","seat","second","secret","section","security","seed","seek","segment","select","sell","seminar","senior","sense","sentence","series","service","session","settle","setup","seven","shadow","shaft","shallow","share","shed","shell","sheriff","shield","shift","shine","ship","shiver","shock","shoe","shoot","shop","short","shoulder","shove","shrimp","shrug","shuffle","shy","sibling","sick","side","siege","sight","sign","silent","silk","silly","silver","similar","simple","since","sing","siren","sister","situate","six","size","skate","sketch","ski","skill","skin","skirt","skull","slab","slam","sleep","slender","slice","slide","slight","slim","slogan","slot","slow","slush","small","smart","smile","smoke","smooth","snack","snake","snap","sniff","snow","soap","soccer","social","sock","soda","soft","solar","soldier","solid","solution","solve","someone","song","soon","sorry","sort","soul","sound","soup","source","south","space","spare","spatial","spawn","speak","special","speed","spell","spend","sphere","spice","spider","spike","spin","spirit","split","spoil","sponsor","spoon","sport","spot","spray","spread","spring","spy","square","squeeze","squirrel","stable","stadium","staff","stage","stairs","stamp","stand","start","state","stay","steak","steel","stem","step","stereo","stick","still","sting","stock","stomach","stone","stool","story","stove","strategy","street","strike","strong","struggle","student","stuff","stumble","style","subject","submit","subway","success","such","sudden","suffer","sugar","suggest","suit","summer","sun","sunny","sunset","super","supply","supreme","sure","surface","surge","surprise","surround","survey","suspect","sustain","swallow","swamp","swap","swarm","swear","sweet","swift","swim","swing","switch","sword","symbol","symptom","syrup","system","table","tackle","tag","tail","talent","talk","tank","tape","target","task","taste","tattoo","taxi","teach","team","tell","ten","tenant","tennis","tent","term","test","text","thank","that","theme","then","theory","there","they","thing","this","thought","three","thrive","throw","thumb","thunder","ticket","tide","tiger","tilt","timber","time","tiny","tip","tired","tissue","title","toast","tobacco","today","toddler","toe","together","toilet","token","tomato","tomorrow","tone","tongue","tonight","tool","tooth","top","topic","topple","torch","tornado","tortoise","toss","total","tourist","toward","tower","town","toy","track","trade","traffic","tragic","train","transfer","trap","trash","travel","tray","treat","tree","trend","trial","tribe","trick","trigger","trim","trip","trophy","trouble","truck","true","truly","trumpet","trust","truth","try","tube","tuition","tumble","tuna","tunnel","turkey","turn","turtle","twelve","twenty","twice","twin","twist","two","type","typical","ugly","umbrella","unable","unaware","uncle","uncover","under","undo","unfair","unfold","unhappy","uniform","unique","unit","universe","unknown","unlock","until","unusual","unveil","update","upgrade","uphold","upon","upper","upset","urban","urge","usage","use","used","useful","useless","usual","utility","vacant","vacuum","vague","valid","valley","valve","van","vanish","vapor","various","vast","vault","vehicle","velvet","vendor","venture","venue","verb","verify","version","very","vessel","veteran","viable","vibrant","vicious","victory","video","view","village","vintage","violin","virtual","virus","visa","visit","visual","vital","vivid","vocal","voice","void","volcano","volume","vote","voyage","wage","wagon","wait","walk","wall","walnut","want","warfare","warm","warrior","wash","wasp","waste","water","wave","way","wealth","weapon","wear","weasel","weather","web","wedding","weekend","weird","welcome","west","wet","whale","what","wheat","wheel","when","where","whip","whisper","wide","width","wife","wild","will","win","window","wine","wing","wink","winner","winter","wire","wisdom","wise","wish","witness","wolf","woman","wonder","wood","wool","word","work","world","worry","worth","wrap","wreck","wrestle","wrist","write","wrong","yard","year","yellow","you","young","youth","zebra","zero","zone","zoo"]')},5040:e=>{"use strict";e.exports=JSON.parse('["abaisser","abandon","abdiquer","abeille","abolir","aborder","aboutir","aboyer","abrasif","abreuver","abriter","abroger","abrupt","absence","absolu","absurde","abusif","abyssal","académie","acajou","acarien","accabler","accepter","acclamer","accolade","accroche","accuser","acerbe","achat","acheter","aciduler","acier","acompte","acquérir","acronyme","acteur","actif","actuel","adepte","adéquat","adhésif","adjectif","adjuger","admettre","admirer","adopter","adorer","adoucir","adresse","adroit","adulte","adverbe","aérer","aéronef","affaire","affecter","affiche","affreux","affubler","agacer","agencer","agile","agiter","agrafer","agréable","agrume","aider","aiguille","ailier","aimable","aisance","ajouter","ajuster","alarmer","alchimie","alerte","algèbre","algue","aliéner","aliment","alléger","alliage","allouer","allumer","alourdir","alpaga","altesse","alvéole","amateur","ambigu","ambre","aménager","amertume","amidon","amiral","amorcer","amour","amovible","amphibie","ampleur","amusant","analyse","anaphore","anarchie","anatomie","ancien","anéantir","angle","angoisse","anguleux","animal","annexer","annonce","annuel","anodin","anomalie","anonyme","anormal","antenne","antidote","anxieux","apaiser","apéritif","aplanir","apologie","appareil","appeler","apporter","appuyer","aquarium","aqueduc","arbitre","arbuste","ardeur","ardoise","argent","arlequin","armature","armement","armoire","armure","arpenter","arracher","arriver","arroser","arsenic","artériel","article","aspect","asphalte","aspirer","assaut","asservir","assiette","associer","assurer","asticot","astre","astuce","atelier","atome","atrium","atroce","attaque","attentif","attirer","attraper","aubaine","auberge","audace","audible","augurer","aurore","automne","autruche","avaler","avancer","avarice","avenir","averse","aveugle","aviateur","avide","avion","aviser","avoine","avouer","avril","axial","axiome","badge","bafouer","bagage","baguette","baignade","balancer","balcon","baleine","balisage","bambin","bancaire","bandage","banlieue","bannière","banquier","barbier","baril","baron","barque","barrage","bassin","bastion","bataille","bateau","batterie","baudrier","bavarder","belette","bélier","belote","bénéfice","berceau","berger","berline","bermuda","besace","besogne","bétail","beurre","biberon","bicycle","bidule","bijou","bilan","bilingue","billard","binaire","biologie","biopsie","biotype","biscuit","bison","bistouri","bitume","bizarre","blafard","blague","blanchir","blessant","blinder","blond","bloquer","blouson","bobard","bobine","boire","boiser","bolide","bonbon","bondir","bonheur","bonifier","bonus","bordure","borne","botte","boucle","boueux","bougie","boulon","bouquin","bourse","boussole","boutique","boxeur","branche","brasier","brave","brebis","brèche","breuvage","bricoler","brigade","brillant","brioche","brique","brochure","broder","bronzer","brousse","broyeur","brume","brusque","brutal","bruyant","buffle","buisson","bulletin","bureau","burin","bustier","butiner","butoir","buvable","buvette","cabanon","cabine","cachette","cadeau","cadre","caféine","caillou","caisson","calculer","calepin","calibre","calmer","calomnie","calvaire","camarade","caméra","camion","campagne","canal","caneton","canon","cantine","canular","capable","caporal","caprice","capsule","capter","capuche","carabine","carbone","caresser","caribou","carnage","carotte","carreau","carton","cascade","casier","casque","cassure","causer","caution","cavalier","caverne","caviar","cédille","ceinture","céleste","cellule","cendrier","censurer","central","cercle","cérébral","cerise","cerner","cerveau","cesser","chagrin","chaise","chaleur","chambre","chance","chapitre","charbon","chasseur","chaton","chausson","chavirer","chemise","chenille","chéquier","chercher","cheval","chien","chiffre","chignon","chimère","chiot","chlorure","chocolat","choisir","chose","chouette","chrome","chute","cigare","cigogne","cimenter","cinéma","cintrer","circuler","cirer","cirque","citerne","citoyen","citron","civil","clairon","clameur","claquer","classe","clavier","client","cligner","climat","clivage","cloche","clonage","cloporte","cobalt","cobra","cocasse","cocotier","coder","codifier","coffre","cogner","cohésion","coiffer","coincer","colère","colibri","colline","colmater","colonel","combat","comédie","commande","compact","concert","conduire","confier","congeler","connoter","consonne","contact","convexe","copain","copie","corail","corbeau","cordage","corniche","corpus","correct","cortège","cosmique","costume","coton","coude","coupure","courage","couteau","couvrir","coyote","crabe","crainte","cravate","crayon","créature","créditer","crémeux","creuser","crevette","cribler","crier","cristal","critère","croire","croquer","crotale","crucial","cruel","crypter","cubique","cueillir","cuillère","cuisine","cuivre","culminer","cultiver","cumuler","cupide","curatif","curseur","cyanure","cycle","cylindre","cynique","daigner","damier","danger","danseur","dauphin","débattre","débiter","déborder","débrider","débutant","décaler","décembre","déchirer","décider","déclarer","décorer","décrire","décupler","dédale","déductif","déesse","défensif","défiler","défrayer","dégager","dégivrer","déglutir","dégrafer","déjeuner","délice","déloger","demander","demeurer","démolir","dénicher","dénouer","dentelle","dénuder","départ","dépenser","déphaser","déplacer","déposer","déranger","dérober","désastre","descente","désert","désigner","désobéir","dessiner","destrier","détacher","détester","détourer","détresse","devancer","devenir","deviner","devoir","diable","dialogue","diamant","dicter","différer","digérer","digital","digne","diluer","dimanche","diminuer","dioxyde","directif","diriger","discuter","disposer","dissiper","distance","divertir","diviser","docile","docteur","dogme","doigt","domaine","domicile","dompter","donateur","donjon","donner","dopamine","dortoir","dorure","dosage","doseur","dossier","dotation","douanier","double","douceur","douter","doyen","dragon","draper","dresser","dribbler","droiture","duperie","duplexe","durable","durcir","dynastie","éblouir","écarter","écharpe","échelle","éclairer","éclipse","éclore","écluse","école","économie","écorce","écouter","écraser","écrémer","écrivain","écrou","écume","écureuil","édifier","éduquer","effacer","effectif","effigie","effort","effrayer","effusion","égaliser","égarer","éjecter","élaborer","élargir","électron","élégant","éléphant","élève","éligible","élitisme","éloge","élucider","éluder","emballer","embellir","embryon","émeraude","émission","emmener","émotion","émouvoir","empereur","employer","emporter","emprise","émulsion","encadrer","enchère","enclave","encoche","endiguer","endosser","endroit","enduire","énergie","enfance","enfermer","enfouir","engager","engin","englober","énigme","enjamber","enjeu","enlever","ennemi","ennuyeux","enrichir","enrobage","enseigne","entasser","entendre","entier","entourer","entraver","énumérer","envahir","enviable","envoyer","enzyme","éolien","épaissir","épargne","épatant","épaule","épicerie","épidémie","épier","épilogue","épine","épisode","épitaphe","époque","épreuve","éprouver","épuisant","équerre","équipe","ériger","érosion","erreur","éruption","escalier","espadon","espèce","espiègle","espoir","esprit","esquiver","essayer","essence","essieu","essorer","estime","estomac","estrade","étagère","étaler","étanche","étatique","éteindre","étendoir","éternel","éthanol","éthique","ethnie","étirer","étoffer","étoile","étonnant","étourdir","étrange","étroit","étude","euphorie","évaluer","évasion","éventail","évidence","éviter","évolutif","évoquer","exact","exagérer","exaucer","exceller","excitant","exclusif","excuse","exécuter","exemple","exercer","exhaler","exhorter","exigence","exiler","exister","exotique","expédier","explorer","exposer","exprimer","exquis","extensif","extraire","exulter","fable","fabuleux","facette","facile","facture","faiblir","falaise","fameux","famille","farceur","farfelu","farine","farouche","fasciner","fatal","fatigue","faucon","fautif","faveur","favori","fébrile","féconder","fédérer","félin","femme","fémur","fendoir","féodal","fermer","féroce","ferveur","festival","feuille","feutre","février","fiasco","ficeler","fictif","fidèle","figure","filature","filetage","filière","filleul","filmer","filou","filtrer","financer","finir","fiole","firme","fissure","fixer","flairer","flamme","flasque","flatteur","fléau","flèche","fleur","flexion","flocon","flore","fluctuer","fluide","fluvial","folie","fonderie","fongible","fontaine","forcer","forgeron","formuler","fortune","fossile","foudre","fougère","fouiller","foulure","fourmi","fragile","fraise","franchir","frapper","frayeur","frégate","freiner","frelon","frémir","frénésie","frère","friable","friction","frisson","frivole","froid","fromage","frontal","frotter","fruit","fugitif","fuite","fureur","furieux","furtif","fusion","futur","gagner","galaxie","galerie","gambader","garantir","gardien","garnir","garrigue","gazelle","gazon","géant","gélatine","gélule","gendarme","général","génie","genou","gentil","géologie","géomètre","géranium","germe","gestuel","geyser","gibier","gicler","girafe","givre","glace","glaive","glisser","globe","gloire","glorieux","golfeur","gomme","gonfler","gorge","gorille","goudron","gouffre","goulot","goupille","gourmand","goutte","graduel","graffiti","graine","grand","grappin","gratuit","gravir","grenat","griffure","griller","grimper","grogner","gronder","grotte","groupe","gruger","grutier","gruyère","guépard","guerrier","guide","guimauve","guitare","gustatif","gymnaste","gyrostat","habitude","hachoir","halte","hameau","hangar","hanneton","haricot","harmonie","harpon","hasard","hélium","hématome","herbe","hérisson","hermine","héron","hésiter","heureux","hiberner","hibou","hilarant","histoire","hiver","homard","hommage","homogène","honneur","honorer","honteux","horde","horizon","horloge","hormone","horrible","houleux","housse","hublot","huileux","humain","humble","humide","humour","hurler","hydromel","hygiène","hymne","hypnose","idylle","ignorer","iguane","illicite","illusion","image","imbiber","imiter","immense","immobile","immuable","impact","impérial","implorer","imposer","imprimer","imputer","incarner","incendie","incident","incliner","incolore","indexer","indice","inductif","inédit","ineptie","inexact","infini","infliger","informer","infusion","ingérer","inhaler","inhiber","injecter","injure","innocent","inoculer","inonder","inscrire","insecte","insigne","insolite","inspirer","instinct","insulter","intact","intense","intime","intrigue","intuitif","inutile","invasion","inventer","inviter","invoquer","ironique","irradier","irréel","irriter","isoler","ivoire","ivresse","jaguar","jaillir","jambe","janvier","jardin","jauger","jaune","javelot","jetable","jeton","jeudi","jeunesse","joindre","joncher","jongler","joueur","jouissif","journal","jovial","joyau","joyeux","jubiler","jugement","junior","jupon","juriste","justice","juteux","juvénile","kayak","kimono","kiosque","label","labial","labourer","lacérer","lactose","lagune","laine","laisser","laitier","lambeau","lamelle","lampe","lanceur","langage","lanterne","lapin","largeur","larme","laurier","lavabo","lavoir","lecture","légal","léger","légume","lessive","lettre","levier","lexique","lézard","liasse","libérer","libre","licence","licorne","liège","lièvre","ligature","ligoter","ligue","limer","limite","limonade","limpide","linéaire","lingot","lionceau","liquide","lisière","lister","lithium","litige","littoral","livreur","logique","lointain","loisir","lombric","loterie","louer","lourd","loutre","louve","loyal","lubie","lucide","lucratif","lueur","lugubre","luisant","lumière","lunaire","lundi","luron","lutter","luxueux","machine","magasin","magenta","magique","maigre","maillon","maintien","mairie","maison","majorer","malaxer","maléfice","malheur","malice","mallette","mammouth","mandater","maniable","manquant","manteau","manuel","marathon","marbre","marchand","mardi","maritime","marqueur","marron","marteler","mascotte","massif","matériel","matière","matraque","maudire","maussade","mauve","maximal","méchant","méconnu","médaille","médecin","méditer","méduse","meilleur","mélange","mélodie","membre","mémoire","menacer","mener","menhir","mensonge","mentor","mercredi","mérite","merle","messager","mesure","métal","météore","méthode","métier","meuble","miauler","microbe","miette","mignon","migrer","milieu","million","mimique","mince","minéral","minimal","minorer","minute","miracle","miroiter","missile","mixte","mobile","moderne","moelleux","mondial","moniteur","monnaie","monotone","monstre","montagne","monument","moqueur","morceau","morsure","mortier","moteur","motif","mouche","moufle","moulin","mousson","mouton","mouvant","multiple","munition","muraille","murène","murmure","muscle","muséum","musicien","mutation","muter","mutuel","myriade","myrtille","mystère","mythique","nageur","nappe","narquois","narrer","natation","nation","nature","naufrage","nautique","navire","nébuleux","nectar","néfaste","négation","négliger","négocier","neige","nerveux","nettoyer","neurone","neutron","neveu","niche","nickel","nitrate","niveau","noble","nocif","nocturne","noirceur","noisette","nomade","nombreux","nommer","normatif","notable","notifier","notoire","nourrir","nouveau","novateur","novembre","novice","nuage","nuancer","nuire","nuisible","numéro","nuptial","nuque","nutritif","obéir","objectif","obliger","obscur","observer","obstacle","obtenir","obturer","occasion","occuper","océan","octobre","octroyer","octupler","oculaire","odeur","odorant","offenser","officier","offrir","ogive","oiseau","oisillon","olfactif","olivier","ombrage","omettre","onctueux","onduler","onéreux","onirique","opale","opaque","opérer","opinion","opportun","opprimer","opter","optique","orageux","orange","orbite","ordonner","oreille","organe","orgueil","orifice","ornement","orque","ortie","osciller","osmose","ossature","otarie","ouragan","ourson","outil","outrager","ouvrage","ovation","oxyde","oxygène","ozone","paisible","palace","palmarès","palourde","palper","panache","panda","pangolin","paniquer","panneau","panorama","pantalon","papaye","papier","papoter","papyrus","paradoxe","parcelle","paresse","parfumer","parler","parole","parrain","parsemer","partager","parure","parvenir","passion","pastèque","paternel","patience","patron","pavillon","pavoiser","payer","paysage","peigne","peintre","pelage","pélican","pelle","pelouse","peluche","pendule","pénétrer","pénible","pensif","pénurie","pépite","péplum","perdrix","perforer","période","permuter","perplexe","persil","perte","peser","pétale","petit","pétrir","peuple","pharaon","phobie","phoque","photon","phrase","physique","piano","pictural","pièce","pierre","pieuvre","pilote","pinceau","pipette","piquer","pirogue","piscine","piston","pivoter","pixel","pizza","placard","plafond","plaisir","planer","plaque","plastron","plateau","pleurer","plexus","pliage","plomb","plonger","pluie","plumage","pochette","poésie","poète","pointe","poirier","poisson","poivre","polaire","policier","pollen","polygone","pommade","pompier","ponctuel","pondérer","poney","portique","position","posséder","posture","potager","poteau","potion","pouce","poulain","poumon","pourpre","poussin","pouvoir","prairie","pratique","précieux","prédire","préfixe","prélude","prénom","présence","prétexte","prévoir","primitif","prince","prison","priver","problème","procéder","prodige","profond","progrès","proie","projeter","prologue","promener","propre","prospère","protéger","prouesse","proverbe","prudence","pruneau","psychose","public","puceron","puiser","pulpe","pulsar","punaise","punitif","pupitre","purifier","puzzle","pyramide","quasar","querelle","question","quiétude","quitter","quotient","racine","raconter","radieux","ragondin","raideur","raisin","ralentir","rallonge","ramasser","rapide","rasage","ratisser","ravager","ravin","rayonner","réactif","réagir","réaliser","réanimer","recevoir","réciter","réclamer","récolter","recruter","reculer","recycler","rédiger","redouter","refaire","réflexe","réformer","refrain","refuge","régalien","région","réglage","régulier","réitérer","rejeter","rejouer","relatif","relever","relief","remarque","remède","remise","remonter","remplir","remuer","renard","renfort","renifler","renoncer","rentrer","renvoi","replier","reporter","reprise","reptile","requin","réserve","résineux","résoudre","respect","rester","résultat","rétablir","retenir","réticule","retomber","retracer","réunion","réussir","revanche","revivre","révolte","révulsif","richesse","rideau","rieur","rigide","rigoler","rincer","riposter","risible","risque","rituel","rival","rivière","rocheux","romance","rompre","ronce","rondin","roseau","rosier","rotatif","rotor","rotule","rouge","rouille","rouleau","routine","royaume","ruban","rubis","ruche","ruelle","rugueux","ruiner","ruisseau","ruser","rustique","rythme","sabler","saboter","sabre","sacoche","safari","sagesse","saisir","salade","salive","salon","saluer","samedi","sanction","sanglier","sarcasme","sardine","saturer","saugrenu","saumon","sauter","sauvage","savant","savonner","scalpel","scandale","scélérat","scénario","sceptre","schéma","science","scinder","score","scrutin","sculpter","séance","sécable","sécher","secouer","sécréter","sédatif","séduire","seigneur","séjour","sélectif","semaine","sembler","semence","séminal","sénateur","sensible","sentence","séparer","séquence","serein","sergent","sérieux","serrure","sérum","service","sésame","sévir","sevrage","sextuple","sidéral","siècle","siéger","siffler","sigle","signal","silence","silicium","simple","sincère","sinistre","siphon","sirop","sismique","situer","skier","social","socle","sodium","soigneux","soldat","soleil","solitude","soluble","sombre","sommeil","somnoler","sonde","songeur","sonnette","sonore","sorcier","sortir","sosie","sottise","soucieux","soudure","souffle","soulever","soupape","source","soutirer","souvenir","spacieux","spatial","spécial","sphère","spiral","stable","station","sternum","stimulus","stipuler","strict","studieux","stupeur","styliste","sublime","substrat","subtil","subvenir","succès","sucre","suffixe","suggérer","suiveur","sulfate","superbe","supplier","surface","suricate","surmener","surprise","sursaut","survie","suspect","syllabe","symbole","symétrie","synapse","syntaxe","système","tabac","tablier","tactile","tailler","talent","talisman","talonner","tambour","tamiser","tangible","tapis","taquiner","tarder","tarif","tartine","tasse","tatami","tatouage","taupe","taureau","taxer","témoin","temporel","tenaille","tendre","teneur","tenir","tension","terminer","terne","terrible","tétine","texte","thème","théorie","thérapie","thorax","tibia","tiède","timide","tirelire","tiroir","tissu","titane","titre","tituber","toboggan","tolérant","tomate","tonique","tonneau","toponyme","torche","tordre","tornade","torpille","torrent","torse","tortue","totem","toucher","tournage","tousser","toxine","traction","trafic","tragique","trahir","train","trancher","travail","trèfle","tremper","trésor","treuil","triage","tribunal","tricoter","trilogie","triomphe","tripler","triturer","trivial","trombone","tronc","tropical","troupeau","tuile","tulipe","tumulte","tunnel","turbine","tuteur","tutoyer","tuyau","tympan","typhon","typique","tyran","ubuesque","ultime","ultrason","unanime","unifier","union","unique","unitaire","univers","uranium","urbain","urticant","usage","usine","usuel","usure","utile","utopie","vacarme","vaccin","vagabond","vague","vaillant","vaincre","vaisseau","valable","valise","vallon","valve","vampire","vanille","vapeur","varier","vaseux","vassal","vaste","vecteur","vedette","végétal","véhicule","veinard","véloce","vendredi","vénérer","venger","venimeux","ventouse","verdure","vérin","vernir","verrou","verser","vertu","veston","vétéran","vétuste","vexant","vexer","viaduc","viande","victoire","vidange","vidéo","vignette","vigueur","vilain","village","vinaigre","violon","vipère","virement","virtuose","virus","visage","viseur","vision","visqueux","visuel","vital","vitesse","viticole","vitrine","vivace","vivipare","vocation","voguer","voile","voisin","voiture","volaille","volcan","voltiger","volume","vorace","vortex","voter","vouloir","voyage","voyelle","wagon","xénon","yacht","zèbre","zénith","zeste","zoologie"]')},5576:e=>{"use strict";e.exports=JSON.parse('["abaco","abbaglio","abbinato","abete","abisso","abolire","abrasivo","abrogato","accadere","accenno","accusato","acetone","achille","acido","acqua","acre","acrilico","acrobata","acuto","adagio","addebito","addome","adeguato","aderire","adipe","adottare","adulare","affabile","affetto","affisso","affranto","aforisma","afoso","africano","agave","agente","agevole","aggancio","agire","agitare","agonismo","agricolo","agrumeto","aguzzo","alabarda","alato","albatro","alberato","albo","albume","alce","alcolico","alettone","alfa","algebra","aliante","alibi","alimento","allagato","allegro","allievo","allodola","allusivo","almeno","alogeno","alpaca","alpestre","altalena","alterno","alticcio","altrove","alunno","alveolo","alzare","amalgama","amanita","amarena","ambito","ambrato","ameba","america","ametista","amico","ammasso","ammenda","ammirare","ammonito","amore","ampio","ampliare","amuleto","anacardo","anagrafe","analista","anarchia","anatra","anca","ancella","ancora","andare","andrea","anello","angelo","angolare","angusto","anima","annegare","annidato","anno","annuncio","anonimo","anticipo","anzi","apatico","apertura","apode","apparire","appetito","appoggio","approdo","appunto","aprile","arabica","arachide","aragosta","araldica","arancio","aratura","arazzo","arbitro","archivio","ardito","arenile","argento","argine","arguto","aria","armonia","arnese","arredato","arringa","arrosto","arsenico","arso","artefice","arzillo","asciutto","ascolto","asepsi","asettico","asfalto","asino","asola","aspirato","aspro","assaggio","asse","assoluto","assurdo","asta","astenuto","astice","astratto","atavico","ateismo","atomico","atono","attesa","attivare","attorno","attrito","attuale","ausilio","austria","autista","autonomo","autunno","avanzato","avere","avvenire","avviso","avvolgere","azione","azoto","azzimo","azzurro","babele","baccano","bacino","baco","badessa","badilata","bagnato","baita","balcone","baldo","balena","ballata","balzano","bambino","bandire","baraonda","barbaro","barca","baritono","barlume","barocco","basilico","basso","batosta","battuto","baule","bava","bavosa","becco","beffa","belgio","belva","benda","benevole","benigno","benzina","bere","berlina","beta","bibita","bici","bidone","bifido","biga","bilancia","bimbo","binocolo","biologo","bipede","bipolare","birbante","birra","biscotto","bisesto","bisnonno","bisonte","bisturi","bizzarro","blando","blatta","bollito","bonifico","bordo","bosco","botanico","bottino","bozzolo","braccio","bradipo","brama","branca","bravura","bretella","brevetto","brezza","briglia","brillante","brindare","broccolo","brodo","bronzina","brullo","bruno","bubbone","buca","budino","buffone","buio","bulbo","buono","burlone","burrasca","bussola","busta","cadetto","caduco","calamaro","calcolo","calesse","calibro","calmo","caloria","cambusa","camerata","camicia","cammino","camola","campale","canapa","candela","cane","canino","canotto","cantina","capace","capello","capitolo","capogiro","cappero","capra","capsula","carapace","carcassa","cardo","carisma","carovana","carretto","cartolina","casaccio","cascata","caserma","caso","cassone","castello","casuale","catasta","catena","catrame","cauto","cavillo","cedibile","cedrata","cefalo","celebre","cellulare","cena","cenone","centesimo","ceramica","cercare","certo","cerume","cervello","cesoia","cespo","ceto","chela","chiaro","chicca","chiedere","chimera","china","chirurgo","chitarra","ciao","ciclismo","cifrare","cigno","cilindro","ciottolo","circa","cirrosi","citrico","cittadino","ciuffo","civetta","civile","classico","clinica","cloro","cocco","codardo","codice","coerente","cognome","collare","colmato","colore","colposo","coltivato","colza","coma","cometa","commando","comodo","computer","comune","conciso","condurre","conferma","congelare","coniuge","connesso","conoscere","consumo","continuo","convegno","coperto","copione","coppia","copricapo","corazza","cordata","coricato","cornice","corolla","corpo","corredo","corsia","cortese","cosmico","costante","cottura","covato","cratere","cravatta","creato","credere","cremoso","crescita","creta","criceto","crinale","crisi","critico","croce","cronaca","crostata","cruciale","crusca","cucire","cuculo","cugino","cullato","cupola","curatore","cursore","curvo","cuscino","custode","dado","daino","dalmata","damerino","daniela","dannoso","danzare","datato","davanti","davvero","debutto","decennio","deciso","declino","decollo","decreto","dedicato","definito","deforme","degno","delegare","delfino","delirio","delta","demenza","denotato","dentro","deposito","derapata","derivare","deroga","descritto","deserto","desiderio","desumere","detersivo","devoto","diametro","dicembre","diedro","difeso","diffuso","digerire","digitale","diluvio","dinamico","dinnanzi","dipinto","diploma","dipolo","diradare","dire","dirotto","dirupo","disagio","discreto","disfare","disgelo","disposto","distanza","disumano","dito","divano","divelto","dividere","divorato","doblone","docente","doganale","dogma","dolce","domato","domenica","dominare","dondolo","dono","dormire","dote","dottore","dovuto","dozzina","drago","druido","dubbio","dubitare","ducale","duna","duomo","duplice","duraturo","ebano","eccesso","ecco","eclissi","economia","edera","edicola","edile","editoria","educare","egemonia","egli","egoismo","egregio","elaborato","elargire","elegante","elencato","eletto","elevare","elfico","elica","elmo","elsa","eluso","emanato","emblema","emesso","emiro","emotivo","emozione","empirico","emulo","endemico","enduro","energia","enfasi","enoteca","entrare","enzima","epatite","epilogo","episodio","epocale","eppure","equatore","erario","erba","erboso","erede","eremita","erigere","ermetico","eroe","erosivo","errante","esagono","esame","esanime","esaudire","esca","esempio","esercito","esibito","esigente","esistere","esito","esofago","esortato","esoso","espanso","espresso","essenza","esso","esteso","estimare","estonia","estroso","esultare","etilico","etnico","etrusco","etto","euclideo","europa","evaso","evidenza","evitato","evoluto","evviva","fabbrica","faccenda","fachiro","falco","famiglia","fanale","fanfara","fango","fantasma","fare","farfalla","farinoso","farmaco","fascia","fastoso","fasullo","faticare","fato","favoloso","febbre","fecola","fede","fegato","felpa","feltro","femmina","fendere","fenomeno","fermento","ferro","fertile","fessura","festivo","fetta","feudo","fiaba","fiducia","fifa","figurato","filo","finanza","finestra","finire","fiore","fiscale","fisico","fiume","flacone","flamenco","flebo","flemma","florido","fluente","fluoro","fobico","focaccia","focoso","foderato","foglio","folata","folclore","folgore","fondente","fonetico","fonia","fontana","forbito","forchetta","foresta","formica","fornaio","foro","fortezza","forzare","fosfato","fosso","fracasso","frana","frassino","fratello","freccetta","frenata","fresco","frigo","frollino","fronde","frugale","frutta","fucilata","fucsia","fuggente","fulmine","fulvo","fumante","fumetto","fumoso","fune","funzione","fuoco","furbo","furgone","furore","fuso","futile","gabbiano","gaffe","galateo","gallina","galoppo","gambero","gamma","garanzia","garbo","garofano","garzone","gasdotto","gasolio","gastrico","gatto","gaudio","gazebo","gazzella","geco","gelatina","gelso","gemello","gemmato","gene","genitore","gennaio","genotipo","gergo","ghepardo","ghiaccio","ghisa","giallo","gilda","ginepro","giocare","gioiello","giorno","giove","girato","girone","gittata","giudizio","giurato","giusto","globulo","glutine","gnomo","gobba","golf","gomito","gommone","gonfio","gonna","governo","gracile","grado","grafico","grammo","grande","grattare","gravoso","grazia","greca","gregge","grifone","grigio","grinza","grotta","gruppo","guadagno","guaio","guanto","guardare","gufo","guidare","ibernato","icona","identico","idillio","idolo","idra","idrico","idrogeno","igiene","ignaro","ignorato","ilare","illeso","illogico","illudere","imballo","imbevuto","imbocco","imbuto","immane","immerso","immolato","impacco","impeto","impiego","importo","impronta","inalare","inarcare","inattivo","incanto","incendio","inchino","incisivo","incluso","incontro","incrocio","incubo","indagine","india","indole","inedito","infatti","infilare","inflitto","ingaggio","ingegno","inglese","ingordo","ingrosso","innesco","inodore","inoltrare","inondato","insano","insetto","insieme","insonnia","insulina","intasato","intero","intonaco","intuito","inumidire","invalido","invece","invito","iperbole","ipnotico","ipotesi","ippica","iride","irlanda","ironico","irrigato","irrorare","isolato","isotopo","isterico","istituto","istrice","italia","iterare","labbro","labirinto","lacca","lacerato","lacrima","lacuna","laddove","lago","lampo","lancetta","lanterna","lardoso","larga","laringe","lastra","latenza","latino","lattuga","lavagna","lavoro","legale","leggero","lembo","lentezza","lenza","leone","lepre","lesivo","lessato","lesto","letterale","leva","levigato","libero","lido","lievito","lilla","limatura","limitare","limpido","lineare","lingua","liquido","lira","lirica","lisca","lite","litigio","livrea","locanda","lode","logica","lombare","londra","longevo","loquace","lorenzo","loto","lotteria","luce","lucidato","lumaca","luminoso","lungo","lupo","luppolo","lusinga","lusso","lutto","macabro","macchina","macero","macinato","madama","magico","maglia","magnete","magro","maiolica","malafede","malgrado","malinteso","malsano","malto","malumore","mana","mancia","mandorla","mangiare","manifesto","mannaro","manovra","mansarda","mantide","manubrio","mappa","maratona","marcire","maretta","marmo","marsupio","maschera","massaia","mastino","materasso","matricola","mattone","maturo","mazurca","meandro","meccanico","mecenate","medesimo","meditare","mega","melassa","melis","melodia","meninge","meno","mensola","mercurio","merenda","merlo","meschino","mese","messere","mestolo","metallo","metodo","mettere","miagolare","mica","micelio","michele","microbo","midollo","miele","migliore","milano","milite","mimosa","minerale","mini","minore","mirino","mirtillo","miscela","missiva","misto","misurare","mitezza","mitigare","mitra","mittente","mnemonico","modello","modifica","modulo","mogano","mogio","mole","molosso","monastero","monco","mondina","monetario","monile","monotono","monsone","montato","monviso","mora","mordere","morsicato","mostro","motivato","motosega","motto","movenza","movimento","mozzo","mucca","mucosa","muffa","mughetto","mugnaio","mulatto","mulinello","multiplo","mummia","munto","muovere","murale","musa","muscolo","musica","mutevole","muto","nababbo","nafta","nanometro","narciso","narice","narrato","nascere","nastrare","naturale","nautica","naviglio","nebulosa","necrosi","negativo","negozio","nemmeno","neofita","neretto","nervo","nessuno","nettuno","neutrale","neve","nevrotico","nicchia","ninfa","nitido","nobile","nocivo","nodo","nome","nomina","nordico","normale","norvegese","nostrano","notare","notizia","notturno","novella","nucleo","nulla","numero","nuovo","nutrire","nuvola","nuziale","oasi","obbedire","obbligo","obelisco","oblio","obolo","obsoleto","occasione","occhio","occidente","occorrere","occultare","ocra","oculato","odierno","odorare","offerta","offrire","offuscato","oggetto","oggi","ognuno","olandese","olfatto","oliato","oliva","ologramma","oltre","omaggio","ombelico","ombra","omega","omissione","ondoso","onere","onice","onnivoro","onorevole","onta","operato","opinione","opposto","oracolo","orafo","ordine","orecchino","orefice","orfano","organico","origine","orizzonte","orma","ormeggio","ornativo","orologio","orrendo","orribile","ortensia","ortica","orzata","orzo","osare","oscurare","osmosi","ospedale","ospite","ossa","ossidare","ostacolo","oste","otite","otre","ottagono","ottimo","ottobre","ovale","ovest","ovino","oviparo","ovocito","ovunque","ovviare","ozio","pacchetto","pace","pacifico","padella","padrone","paese","paga","pagina","palazzina","palesare","pallido","palo","palude","pandoro","pannello","paolo","paonazzo","paprica","parabola","parcella","parere","pargolo","pari","parlato","parola","partire","parvenza","parziale","passivo","pasticca","patacca","patologia","pattume","pavone","peccato","pedalare","pedonale","peggio","peloso","penare","pendice","penisola","pennuto","penombra","pensare","pentola","pepe","pepita","perbene","percorso","perdonato","perforare","pergamena","periodo","permesso","perno","perplesso","persuaso","pertugio","pervaso","pesatore","pesista","peso","pestifero","petalo","pettine","petulante","pezzo","piacere","pianta","piattino","piccino","picozza","piega","pietra","piffero","pigiama","pigolio","pigro","pila","pilifero","pillola","pilota","pimpante","pineta","pinna","pinolo","pioggia","piombo","piramide","piretico","pirite","pirolisi","pitone","pizzico","placebo","planare","plasma","platano","plenario","pochezza","poderoso","podismo","poesia","poggiare","polenta","poligono","pollice","polmonite","polpetta","polso","poltrona","polvere","pomice","pomodoro","ponte","popoloso","porfido","poroso","porpora","porre","portata","posa","positivo","possesso","postulato","potassio","potere","pranzo","prassi","pratica","precluso","predica","prefisso","pregiato","prelievo","premere","prenotare","preparato","presenza","pretesto","prevalso","prima","principe","privato","problema","procura","produrre","profumo","progetto","prolunga","promessa","pronome","proposta","proroga","proteso","prova","prudente","prugna","prurito","psiche","pubblico","pudica","pugilato","pugno","pulce","pulito","pulsante","puntare","pupazzo","pupilla","puro","quadro","qualcosa","quasi","querela","quota","raccolto","raddoppio","radicale","radunato","raffica","ragazzo","ragione","ragno","ramarro","ramingo","ramo","randagio","rantolare","rapato","rapina","rappreso","rasatura","raschiato","rasente","rassegna","rastrello","rata","ravveduto","reale","recepire","recinto","recluta","recondito","recupero","reddito","redimere","regalato","registro","regola","regresso","relazione","remare","remoto","renna","replica","reprimere","reputare","resa","residente","responso","restauro","rete","retina","retorica","rettifica","revocato","riassunto","ribadire","ribelle","ribrezzo","ricarica","ricco","ricevere","riciclato","ricordo","ricreduto","ridicolo","ridurre","rifasare","riflesso","riforma","rifugio","rigare","rigettato","righello","rilassato","rilevato","rimanere","rimbalzo","rimedio","rimorchio","rinascita","rincaro","rinforzo","rinnovo","rinomato","rinsavito","rintocco","rinuncia","rinvenire","riparato","ripetuto","ripieno","riportare","ripresa","ripulire","risata","rischio","riserva","risibile","riso","rispetto","ristoro","risultato","risvolto","ritardo","ritegno","ritmico","ritrovo","riunione","riva","riverso","rivincita","rivolto","rizoma","roba","robotico","robusto","roccia","roco","rodaggio","rodere","roditore","rogito","rollio","romantico","rompere","ronzio","rosolare","rospo","rotante","rotondo","rotula","rovescio","rubizzo","rubrica","ruga","rullino","rumine","rumoroso","ruolo","rupe","russare","rustico","sabato","sabbiare","sabotato","sagoma","salasso","saldatura","salgemma","salivare","salmone","salone","saltare","saluto","salvo","sapere","sapido","saporito","saraceno","sarcasmo","sarto","sassoso","satellite","satira","satollo","saturno","savana","savio","saziato","sbadiglio","sbalzo","sbancato","sbarra","sbattere","sbavare","sbendare","sbirciare","sbloccato","sbocciato","sbrinare","sbruffone","sbuffare","scabroso","scadenza","scala","scambiare","scandalo","scapola","scarso","scatenare","scavato","scelto","scenico","scettro","scheda","schiena","sciarpa","scienza","scindere","scippo","sciroppo","scivolo","sclerare","scodella","scolpito","scomparto","sconforto","scoprire","scorta","scossone","scozzese","scriba","scrollare","scrutinio","scuderia","scultore","scuola","scuro","scusare","sdebitare","sdoganare","seccatura","secondo","sedano","seggiola","segnalato","segregato","seguito","selciato","selettivo","sella","selvaggio","semaforo","sembrare","seme","seminato","sempre","senso","sentire","sepolto","sequenza","serata","serbato","sereno","serio","serpente","serraglio","servire","sestina","setola","settimana","sfacelo","sfaldare","sfamato","sfarzoso","sfaticato","sfera","sfida","sfilato","sfinge","sfocato","sfoderare","sfogo","sfoltire","sforzato","sfratto","sfruttato","sfuggito","sfumare","sfuso","sgabello","sgarbato","sgonfiare","sgorbio","sgrassato","sguardo","sibilo","siccome","sierra","sigla","signore","silenzio","sillaba","simbolo","simpatico","simulato","sinfonia","singolo","sinistro","sino","sintesi","sinusoide","sipario","sisma","sistole","situato","slitta","slogatura","sloveno","smarrito","smemorato","smentito","smeraldo","smilzo","smontare","smottato","smussato","snellire","snervato","snodo","sobbalzo","sobrio","soccorso","sociale","sodale","soffitto","sogno","soldato","solenne","solido","sollazzo","solo","solubile","solvente","somatico","somma","sonda","sonetto","sonnifero","sopire","soppeso","sopra","sorgere","sorpasso","sorriso","sorso","sorteggio","sorvolato","sospiro","sosta","sottile","spada","spalla","spargere","spatola","spavento","spazzola","specie","spedire","spegnere","spelatura","speranza","spessore","spettrale","spezzato","spia","spigoloso","spillato","spinoso","spirale","splendido","sportivo","sposo","spranga","sprecare","spronato","spruzzo","spuntino","squillo","sradicare","srotolato","stabile","stacco","staffa","stagnare","stampato","stantio","starnuto","stasera","statuto","stelo","steppa","sterzo","stiletto","stima","stirpe","stivale","stizzoso","stonato","storico","strappo","stregato","stridulo","strozzare","strutto","stuccare","stufo","stupendo","subentro","succoso","sudore","suggerito","sugo","sultano","suonare","superbo","supporto","surgelato","surrogato","sussurro","sutura","svagare","svedese","sveglio","svelare","svenuto","svezia","sviluppo","svista","svizzera","svolta","svuotare","tabacco","tabulato","tacciare","taciturno","tale","talismano","tampone","tannino","tara","tardivo","targato","tariffa","tarpare","tartaruga","tasto","tattico","taverna","tavolata","tazza","teca","tecnico","telefono","temerario","tempo","temuto","tendone","tenero","tensione","tentacolo","teorema","terme","terrazzo","terzetto","tesi","tesserato","testato","tetro","tettoia","tifare","tigella","timbro","tinto","tipico","tipografo","tiraggio","tiro","titanio","titolo","titubante","tizio","tizzone","toccare","tollerare","tolto","tombola","tomo","tonfo","tonsilla","topazio","topologia","toppa","torba","tornare","torrone","tortora","toscano","tossire","tostatura","totano","trabocco","trachea","trafila","tragedia","tralcio","tramonto","transito","trapano","trarre","trasloco","trattato","trave","treccia","tremolio","trespolo","tributo","tricheco","trifoglio","trillo","trincea","trio","tristezza","triturato","trivella","tromba","trono","troppo","trottola","trovare","truccato","tubatura","tuffato","tulipano","tumulto","tunisia","turbare","turchino","tuta","tutela","ubicato","uccello","uccisore","udire","uditivo","uffa","ufficio","uguale","ulisse","ultimato","umano","umile","umorismo","uncinetto","ungere","ungherese","unicorno","unificato","unisono","unitario","unte","uovo","upupa","uragano","urgenza","urlo","usanza","usato","uscito","usignolo","usuraio","utensile","utilizzo","utopia","vacante","vaccinato","vagabondo","vagliato","valanga","valgo","valico","valletta","valoroso","valutare","valvola","vampata","vangare","vanitoso","vano","vantaggio","vanvera","vapore","varano","varcato","variante","vasca","vedetta","vedova","veduto","vegetale","veicolo","velcro","velina","velluto","veloce","venato","vendemmia","vento","verace","verbale","vergogna","verifica","vero","verruca","verticale","vescica","vessillo","vestale","veterano","vetrina","vetusto","viandante","vibrante","vicenda","vichingo","vicinanza","vidimare","vigilia","vigneto","vigore","vile","villano","vimini","vincitore","viola","vipera","virgola","virologo","virulento","viscoso","visione","vispo","vissuto","visura","vita","vitello","vittima","vivanda","vivido","viziare","voce","voga","volatile","volere","volpe","voragine","vulcano","zampogna","zanna","zappato","zattera","zavorra","zefiro","zelante","zelo","zenzero","zerbino","zibetto","zinco","zircone","zitto","zolla","zotico","zucchero","zufolo","zulu","zuppa"]')},7967:e=>{"use strict";e.exports=JSON.parse('["あいこくしん","あいさつ","あいだ","あおぞら","あかちゃん","あきる","あけがた","あける","あこがれる","あさい","あさひ","あしあと","あじわう","あずかる","あずき","あそぶ","あたえる","あたためる","あたりまえ","あたる","あつい","あつかう","あっしゅく","あつまり","あつめる","あてな","あてはまる","あひる","あぶら","あぶる","あふれる","あまい","あまど","あまやかす","あまり","あみもの","あめりか","あやまる","あゆむ","あらいぐま","あらし","あらすじ","あらためる","あらゆる","あらわす","ありがとう","あわせる","あわてる","あんい","あんがい","あんこ","あんぜん","あんてい","あんない","あんまり","いいだす","いおん","いがい","いがく","いきおい","いきなり","いきもの","いきる","いくじ","いくぶん","いけばな","いけん","いこう","いこく","いこつ","いさましい","いさん","いしき","いじゅう","いじょう","いじわる","いずみ","いずれ","いせい","いせえび","いせかい","いせき","いぜん","いそうろう","いそがしい","いだい","いだく","いたずら","いたみ","いたりあ","いちおう","いちじ","いちど","いちば","いちぶ","いちりゅう","いつか","いっしゅん","いっせい","いっそう","いったん","いっち","いってい","いっぽう","いてざ","いてん","いどう","いとこ","いない","いなか","いねむり","いのち","いのる","いはつ","いばる","いはん","いびき","いひん","いふく","いへん","いほう","いみん","いもうと","いもたれ","いもり","いやがる","いやす","いよかん","いよく","いらい","いらすと","いりぐち","いりょう","いれい","いれもの","いれる","いろえんぴつ","いわい","いわう","いわかん","いわば","いわゆる","いんげんまめ","いんさつ","いんしょう","いんよう","うえき","うえる","うおざ","うがい","うかぶ","うかべる","うきわ","うくらいな","うくれれ","うけたまわる","うけつけ","うけとる","うけもつ","うける","うごかす","うごく","うこん","うさぎ","うしなう","うしろがみ","うすい","うすぎ","うすぐらい","うすめる","うせつ","うちあわせ","うちがわ","うちき","うちゅう","うっかり","うつくしい","うったえる","うつる","うどん","うなぎ","うなじ","うなずく","うなる","うねる","うのう","うぶげ","うぶごえ","うまれる","うめる","うもう","うやまう","うよく","うらがえす","うらぐち","うらない","うりあげ","うりきれ","うるさい","うれしい","うれゆき","うれる","うろこ","うわき","うわさ","うんこう","うんちん","うんてん","うんどう","えいえん","えいが","えいきょう","えいご","えいせい","えいぶん","えいよう","えいわ","えおり","えがお","えがく","えきたい","えくせる","えしゃく","えすて","えつらん","えのぐ","えほうまき","えほん","えまき","えもじ","えもの","えらい","えらぶ","えりあ","えんえん","えんかい","えんぎ","えんげき","えんしゅう","えんぜつ","えんそく","えんちょう","えんとつ","おいかける","おいこす","おいしい","おいつく","おうえん","おうさま","おうじ","おうせつ","おうたい","おうふく","おうべい","おうよう","おえる","おおい","おおう","おおどおり","おおや","おおよそ","おかえり","おかず","おがむ","おかわり","おぎなう","おきる","おくさま","おくじょう","おくりがな","おくる","おくれる","おこす","おこなう","おこる","おさえる","おさない","おさめる","おしいれ","おしえる","おじぎ","おじさん","おしゃれ","おそらく","おそわる","おたがい","おたく","おだやか","おちつく","おっと","おつり","おでかけ","おとしもの","おとなしい","おどり","おどろかす","おばさん","おまいり","おめでとう","おもいで","おもう","おもたい","おもちゃ","おやつ","おやゆび","およぼす","おらんだ","おろす","おんがく","おんけい","おんしゃ","おんせん","おんだん","おんちゅう","おんどけい","かあつ","かいが","がいき","がいけん","がいこう","かいさつ","かいしゃ","かいすいよく","かいぜん","かいぞうど","かいつう","かいてん","かいとう","かいふく","がいへき","かいほう","かいよう","がいらい","かいわ","かえる","かおり","かかえる","かがく","かがし","かがみ","かくご","かくとく","かざる","がぞう","かたい","かたち","がちょう","がっきゅう","がっこう","がっさん","がっしょう","かなざわし","かのう","がはく","かぶか","かほう","かほご","かまう","かまぼこ","かめれおん","かゆい","かようび","からい","かるい","かろう","かわく","かわら","がんか","かんけい","かんこう","かんしゃ","かんそう","かんたん","かんち","がんばる","きあい","きあつ","きいろ","ぎいん","きうい","きうん","きえる","きおう","きおく","きおち","きおん","きかい","きかく","きかんしゃ","ききて","きくばり","きくらげ","きけんせい","きこう","きこえる","きこく","きさい","きさく","きさま","きさらぎ","ぎじかがく","ぎしき","ぎじたいけん","ぎじにってい","ぎじゅつしゃ","きすう","きせい","きせき","きせつ","きそう","きぞく","きぞん","きたえる","きちょう","きつえん","ぎっちり","きつつき","きつね","きてい","きどう","きどく","きない","きなが","きなこ","きぬごし","きねん","きのう","きのした","きはく","きびしい","きひん","きふく","きぶん","きぼう","きほん","きまる","きみつ","きむずかしい","きめる","きもだめし","きもち","きもの","きゃく","きやく","ぎゅうにく","きよう","きょうりゅう","きらい","きらく","きりん","きれい","きれつ","きろく","ぎろん","きわめる","ぎんいろ","きんかくじ","きんじょ","きんようび","ぐあい","くいず","くうかん","くうき","くうぐん","くうこう","ぐうせい","くうそう","ぐうたら","くうふく","くうぼ","くかん","くきょう","くげん","ぐこう","くさい","くさき","くさばな","くさる","くしゃみ","くしょう","くすのき","くすりゆび","くせげ","くせん","ぐたいてき","くださる","くたびれる","くちこみ","くちさき","くつした","ぐっすり","くつろぐ","くとうてん","くどく","くなん","くねくね","くのう","くふう","くみあわせ","くみたてる","くめる","くやくしょ","くらす","くらべる","くるま","くれる","くろう","くわしい","ぐんかん","ぐんしょく","ぐんたい","ぐんて","けあな","けいかく","けいけん","けいこ","けいさつ","げいじゅつ","けいたい","げいのうじん","けいれき","けいろ","けおとす","けおりもの","げきか","げきげん","げきだん","げきちん","げきとつ","げきは","げきやく","げこう","げこくじょう","げざい","けさき","げざん","けしき","けしごむ","けしょう","げすと","けたば","けちゃっぷ","けちらす","けつあつ","けつい","けつえき","けっこん","けつじょ","けっせき","けってい","けつまつ","げつようび","げつれい","けつろん","げどく","けとばす","けとる","けなげ","けなす","けなみ","けぬき","げねつ","けねん","けはい","げひん","けぶかい","げぼく","けまり","けみかる","けむし","けむり","けもの","けらい","けろけろ","けわしい","けんい","けんえつ","けんお","けんか","げんき","けんげん","けんこう","けんさく","けんしゅう","けんすう","げんそう","けんちく","けんてい","けんとう","けんない","けんにん","げんぶつ","けんま","けんみん","けんめい","けんらん","けんり","こあくま","こいぬ","こいびと","ごうい","こうえん","こうおん","こうかん","ごうきゅう","ごうけい","こうこう","こうさい","こうじ","こうすい","ごうせい","こうそく","こうたい","こうちゃ","こうつう","こうてい","こうどう","こうない","こうはい","ごうほう","ごうまん","こうもく","こうりつ","こえる","こおり","ごかい","ごがつ","ごかん","こくご","こくさい","こくとう","こくない","こくはく","こぐま","こけい","こける","ここのか","こころ","こさめ","こしつ","こすう","こせい","こせき","こぜん","こそだて","こたい","こたえる","こたつ","こちょう","こっか","こつこつ","こつばん","こつぶ","こてい","こてん","ことがら","ことし","ことば","ことり","こなごな","こねこね","このまま","このみ","このよ","ごはん","こひつじ","こふう","こふん","こぼれる","ごまあぶら","こまかい","ごますり","こまつな","こまる","こむぎこ","こもじ","こもち","こもの","こもん","こやく","こやま","こゆう","こゆび","こよい","こよう","こりる","これくしょん","ころっけ","こわもて","こわれる","こんいん","こんかい","こんき","こんしゅう","こんすい","こんだて","こんとん","こんなん","こんびに","こんぽん","こんまけ","こんや","こんれい","こんわく","ざいえき","さいかい","さいきん","ざいげん","ざいこ","さいしょ","さいせい","ざいたく","ざいちゅう","さいてき","ざいりょう","さうな","さかいし","さがす","さかな","さかみち","さがる","さぎょう","さくし","さくひん","さくら","さこく","さこつ","さずかる","ざせき","さたん","さつえい","ざつおん","ざっか","ざつがく","さっきょく","ざっし","さつじん","ざっそう","さつたば","さつまいも","さてい","さといも","さとう","さとおや","さとし","さとる","さのう","さばく","さびしい","さべつ","さほう","さほど","さます","さみしい","さみだれ","さむけ","さめる","さやえんどう","さゆう","さよう","さよく","さらだ","ざるそば","さわやか","さわる","さんいん","さんか","さんきゃく","さんこう","さんさい","ざんしょ","さんすう","さんせい","さんそ","さんち","さんま","さんみ","さんらん","しあい","しあげ","しあさって","しあわせ","しいく","しいん","しうち","しえい","しおけ","しかい","しかく","じかん","しごと","しすう","じだい","したうけ","したぎ","したて","したみ","しちょう","しちりん","しっかり","しつじ","しつもん","してい","してき","してつ","じてん","じどう","しなぎれ","しなもの","しなん","しねま","しねん","しのぐ","しのぶ","しはい","しばかり","しはつ","しはらい","しはん","しひょう","しふく","じぶん","しへい","しほう","しほん","しまう","しまる","しみん","しむける","じむしょ","しめい","しめる","しもん","しゃいん","しゃうん","しゃおん","じゃがいも","しやくしょ","しゃくほう","しゃけん","しゃこ","しゃざい","しゃしん","しゃせん","しゃそう","しゃたい","しゃちょう","しゃっきん","じゃま","しゃりん","しゃれい","じゆう","じゅうしょ","しゅくはく","じゅしん","しゅっせき","しゅみ","しゅらば","じゅんばん","しょうかい","しょくたく","しょっけん","しょどう","しょもつ","しらせる","しらべる","しんか","しんこう","じんじゃ","しんせいじ","しんちく","しんりん","すあげ","すあし","すあな","ずあん","すいえい","すいか","すいとう","ずいぶん","すいようび","すうがく","すうじつ","すうせん","すおどり","すきま","すくう","すくない","すける","すごい","すこし","ずさん","すずしい","すすむ","すすめる","すっかり","ずっしり","ずっと","すてき","すてる","すねる","すのこ","すはだ","すばらしい","ずひょう","ずぶぬれ","すぶり","すふれ","すべて","すべる","ずほう","すぼん","すまい","すめし","すもう","すやき","すらすら","するめ","すれちがう","すろっと","すわる","すんぜん","すんぽう","せあぶら","せいかつ","せいげん","せいじ","せいよう","せおう","せかいかん","せきにん","せきむ","せきゆ","せきらんうん","せけん","せこう","せすじ","せたい","せたけ","せっかく","せっきゃく","ぜっく","せっけん","せっこつ","せっさたくま","せつぞく","せつだん","せつでん","せっぱん","せつび","せつぶん","せつめい","せつりつ","せなか","せのび","せはば","せびろ","せぼね","せまい","せまる","せめる","せもたれ","せりふ","ぜんあく","せんい","せんえい","せんか","せんきょ","せんく","せんげん","ぜんご","せんさい","せんしゅ","せんすい","せんせい","せんぞ","せんたく","せんちょう","せんてい","せんとう","せんぬき","せんねん","せんぱい","ぜんぶ","ぜんぽう","せんむ","せんめんじょ","せんもん","せんやく","せんゆう","せんよう","ぜんら","ぜんりゃく","せんれい","せんろ","そあく","そいとげる","そいね","そうがんきょう","そうき","そうご","そうしん","そうだん","そうなん","そうび","そうめん","そうり","そえもの","そえん","そがい","そげき","そこう","そこそこ","そざい","そしな","そせい","そせん","そそぐ","そだてる","そつう","そつえん","そっかん","そつぎょう","そっけつ","そっこう","そっせん","そっと","そとがわ","そとづら","そなえる","そなた","そふぼ","そぼく","そぼろ","そまつ","そまる","そむく","そむりえ","そめる","そもそも","そよかぜ","そらまめ","そろう","そんかい","そんけい","そんざい","そんしつ","そんぞく","そんちょう","ぞんび","ぞんぶん","そんみん","たあい","たいいん","たいうん","たいえき","たいおう","だいがく","たいき","たいぐう","たいけん","たいこ","たいざい","だいじょうぶ","だいすき","たいせつ","たいそう","だいたい","たいちょう","たいてい","だいどころ","たいない","たいねつ","たいのう","たいはん","だいひょう","たいふう","たいへん","たいほ","たいまつばな","たいみんぐ","たいむ","たいめん","たいやき","たいよう","たいら","たいりょく","たいる","たいわん","たうえ","たえる","たおす","たおる","たおれる","たかい","たかね","たきび","たくさん","たこく","たこやき","たさい","たしざん","だじゃれ","たすける","たずさわる","たそがれ","たたかう","たたく","ただしい","たたみ","たちばな","だっかい","だっきゃく","だっこ","だっしゅつ","だったい","たてる","たとえる","たなばた","たにん","たぬき","たのしみ","たはつ","たぶん","たべる","たぼう","たまご","たまる","だむる","ためいき","ためす","ためる","たもつ","たやすい","たよる","たらす","たりきほんがん","たりょう","たりる","たると","たれる","たれんと","たろっと","たわむれる","だんあつ","たんい","たんおん","たんか","たんき","たんけん","たんご","たんさん","たんじょうび","だんせい","たんそく","たんたい","だんち","たんてい","たんとう","だんな","たんにん","だんねつ","たんのう","たんぴん","だんぼう","たんまつ","たんめい","だんれつ","だんろ","だんわ","ちあい","ちあん","ちいき","ちいさい","ちえん","ちかい","ちから","ちきゅう","ちきん","ちけいず","ちけん","ちこく","ちさい","ちしき","ちしりょう","ちせい","ちそう","ちたい","ちたん","ちちおや","ちつじょ","ちてき","ちてん","ちぬき","ちぬり","ちのう","ちひょう","ちへいせん","ちほう","ちまた","ちみつ","ちみどろ","ちめいど","ちゃんこなべ","ちゅうい","ちゆりょく","ちょうし","ちょさくけん","ちらし","ちらみ","ちりがみ","ちりょう","ちるど","ちわわ","ちんたい","ちんもく","ついか","ついたち","つうか","つうじょう","つうはん","つうわ","つかう","つかれる","つくね","つくる","つけね","つける","つごう","つたえる","つづく","つつじ","つつむ","つとめる","つながる","つなみ","つねづね","つのる","つぶす","つまらない","つまる","つみき","つめたい","つもり","つもる","つよい","つるぼ","つるみく","つわもの","つわり","てあし","てあて","てあみ","ていおん","ていか","ていき","ていけい","ていこく","ていさつ","ていし","ていせい","ていたい","ていど","ていねい","ていひょう","ていへん","ていぼう","てうち","ておくれ","てきとう","てくび","でこぼこ","てさぎょう","てさげ","てすり","てそう","てちがい","てちょう","てつがく","てつづき","でっぱ","てつぼう","てつや","でぬかえ","てぬき","てぬぐい","てのひら","てはい","てぶくろ","てふだ","てほどき","てほん","てまえ","てまきずし","てみじか","てみやげ","てらす","てれび","てわけ","てわたし","でんあつ","てんいん","てんかい","てんき","てんぐ","てんけん","てんごく","てんさい","てんし","てんすう","でんち","てんてき","てんとう","てんない","てんぷら","てんぼうだい","てんめつ","てんらんかい","でんりょく","でんわ","どあい","といれ","どうかん","とうきゅう","どうぐ","とうし","とうむぎ","とおい","とおか","とおく","とおす","とおる","とかい","とかす","ときおり","ときどき","とくい","とくしゅう","とくてん","とくに","とくべつ","とけい","とける","とこや","とさか","としょかん","とそう","とたん","とちゅう","とっきゅう","とっくん","とつぜん","とつにゅう","とどける","ととのえる","とない","となえる","となり","とのさま","とばす","どぶがわ","とほう","とまる","とめる","ともだち","ともる","どようび","とらえる","とんかつ","どんぶり","ないかく","ないこう","ないしょ","ないす","ないせん","ないそう","なおす","ながい","なくす","なげる","なこうど","なさけ","なたでここ","なっとう","なつやすみ","ななおし","なにごと","なにもの","なにわ","なのか","なふだ","なまいき","なまえ","なまみ","なみだ","なめらか","なめる","なやむ","ならう","ならび","ならぶ","なれる","なわとび","なわばり","にあう","にいがた","にうけ","におい","にかい","にがて","にきび","にくしみ","にくまん","にげる","にさんかたんそ","にしき","にせもの","にちじょう","にちようび","にっか","にっき","にっけい","にっこう","にっさん","にっしょく","にっすう","にっせき","にってい","になう","にほん","にまめ","にもつ","にやり","にゅういん","にりんしゃ","にわとり","にんい","にんか","にんき","にんげん","にんしき","にんずう","にんそう","にんたい","にんち","にんてい","にんにく","にんぷ","にんまり","にんむ","にんめい","にんよう","ぬいくぎ","ぬかす","ぬぐいとる","ぬぐう","ぬくもり","ぬすむ","ぬまえび","ぬめり","ぬらす","ぬんちゃく","ねあげ","ねいき","ねいる","ねいろ","ねぐせ","ねくたい","ねくら","ねこぜ","ねこむ","ねさげ","ねすごす","ねそべる","ねだん","ねつい","ねっしん","ねつぞう","ねったいぎょ","ねぶそく","ねふだ","ねぼう","ねほりはほり","ねまき","ねまわし","ねみみ","ねむい","ねむたい","ねもと","ねらう","ねわざ","ねんいり","ねんおし","ねんかん","ねんきん","ねんぐ","ねんざ","ねんし","ねんちゃく","ねんど","ねんぴ","ねんぶつ","ねんまつ","ねんりょう","ねんれい","のいず","のおづま","のがす","のきなみ","のこぎり","のこす","のこる","のせる","のぞく","のぞむ","のたまう","のちほど","のっく","のばす","のはら","のべる","のぼる","のみもの","のやま","のらいぬ","のらねこ","のりもの","のりゆき","のれん","のんき","ばあい","はあく","ばあさん","ばいか","ばいく","はいけん","はいご","はいしん","はいすい","はいせん","はいそう","はいち","ばいばい","はいれつ","はえる","はおる","はかい","ばかり","はかる","はくしゅ","はけん","はこぶ","はさみ","はさん","はしご","ばしょ","はしる","はせる","ぱそこん","はそん","はたん","はちみつ","はつおん","はっかく","はづき","はっきり","はっくつ","はっけん","はっこう","はっさん","はっしん","はったつ","はっちゅう","はってん","はっぴょう","はっぽう","はなす","はなび","はにかむ","はぶらし","はみがき","はむかう","はめつ","はやい","はやし","はらう","はろうぃん","はわい","はんい","はんえい","はんおん","はんかく","はんきょう","ばんぐみ","はんこ","はんしゃ","はんすう","はんだん","ぱんち","ぱんつ","はんてい","はんとし","はんのう","はんぱ","はんぶん","はんぺん","はんぼうき","はんめい","はんらん","はんろん","ひいき","ひうん","ひえる","ひかく","ひかり","ひかる","ひかん","ひくい","ひけつ","ひこうき","ひこく","ひさい","ひさしぶり","ひさん","びじゅつかん","ひしょ","ひそか","ひそむ","ひたむき","ひだり","ひたる","ひつぎ","ひっこし","ひっし","ひつじゅひん","ひっす","ひつぜん","ぴったり","ぴっちり","ひつよう","ひてい","ひとごみ","ひなまつり","ひなん","ひねる","ひはん","ひびく","ひひょう","ひほう","ひまわり","ひまん","ひみつ","ひめい","ひめじし","ひやけ","ひやす","ひよう","びょうき","ひらがな","ひらく","ひりつ","ひりょう","ひるま","ひるやすみ","ひれい","ひろい","ひろう","ひろき","ひろゆき","ひんかく","ひんけつ","ひんこん","ひんしゅ","ひんそう","ぴんち","ひんぱん","びんぼう","ふあん","ふいうち","ふうけい","ふうせん","ぷうたろう","ふうとう","ふうふ","ふえる","ふおん","ふかい","ふきん","ふくざつ","ふくぶくろ","ふこう","ふさい","ふしぎ","ふじみ","ふすま","ふせい","ふせぐ","ふそく","ぶたにく","ふたん","ふちょう","ふつう","ふつか","ふっかつ","ふっき","ふっこく","ぶどう","ふとる","ふとん","ふのう","ふはい","ふひょう","ふへん","ふまん","ふみん","ふめつ","ふめん","ふよう","ふりこ","ふりる","ふるい","ふんいき","ぶんがく","ぶんぐ","ふんしつ","ぶんせき","ふんそう","ぶんぽう","へいあん","へいおん","へいがい","へいき","へいげん","へいこう","へいさ","へいしゃ","へいせつ","へいそ","へいたく","へいてん","へいねつ","へいわ","へきが","へこむ","べにいろ","べにしょうが","へらす","へんかん","べんきょう","べんごし","へんさい","へんたい","べんり","ほあん","ほいく","ぼうぎょ","ほうこく","ほうそう","ほうほう","ほうもん","ほうりつ","ほえる","ほおん","ほかん","ほきょう","ぼきん","ほくろ","ほけつ","ほけん","ほこう","ほこる","ほしい","ほしつ","ほしゅ","ほしょう","ほせい","ほそい","ほそく","ほたて","ほたる","ぽちぶくろ","ほっきょく","ほっさ","ほったん","ほとんど","ほめる","ほんい","ほんき","ほんけ","ほんしつ","ほんやく","まいにち","まかい","まかせる","まがる","まける","まこと","まさつ","まじめ","ますく","まぜる","まつり","まとめ","まなぶ","まぬけ","まねく","まほう","まもる","まゆげ","まよう","まろやか","まわす","まわり","まわる","まんが","まんきつ","まんぞく","まんなか","みいら","みうち","みえる","みがく","みかた","みかん","みけん","みこん","みじかい","みすい","みすえる","みせる","みっか","みつかる","みつける","みてい","みとめる","みなと","みなみかさい","みねらる","みのう","みのがす","みほん","みもと","みやげ","みらい","みりょく","みわく","みんか","みんぞく","むいか","むえき","むえん","むかい","むかう","むかえ","むかし","むぎちゃ","むける","むげん","むさぼる","むしあつい","むしば","むじゅん","むしろ","むすう","むすこ","むすぶ","むすめ","むせる","むせん","むちゅう","むなしい","むのう","むやみ","むよう","むらさき","むりょう","むろん","めいあん","めいうん","めいえん","めいかく","めいきょく","めいさい","めいし","めいそう","めいぶつ","めいれい","めいわく","めぐまれる","めざす","めした","めずらしい","めだつ","めまい","めやす","めんきょ","めんせき","めんどう","もうしあげる","もうどうけん","もえる","もくし","もくてき","もくようび","もちろん","もどる","もらう","もんく","もんだい","やおや","やける","やさい","やさしい","やすい","やすたろう","やすみ","やせる","やそう","やたい","やちん","やっと","やっぱり","やぶる","やめる","ややこしい","やよい","やわらかい","ゆうき","ゆうびんきょく","ゆうべ","ゆうめい","ゆけつ","ゆしゅつ","ゆせん","ゆそう","ゆたか","ゆちゃく","ゆでる","ゆにゅう","ゆびわ","ゆらい","ゆれる","ようい","ようか","ようきゅう","ようじ","ようす","ようちえん","よかぜ","よかん","よきん","よくせい","よくぼう","よけい","よごれる","よさん","よしゅう","よそう","よそく","よっか","よてい","よどがわく","よねつ","よやく","よゆう","よろこぶ","よろしい","らいう","らくがき","らくご","らくさつ","らくだ","らしんばん","らせん","らぞく","らたい","らっか","られつ","りえき","りかい","りきさく","りきせつ","りくぐん","りくつ","りけん","りこう","りせい","りそう","りそく","りてん","りねん","りゆう","りゅうがく","りよう","りょうり","りょかん","りょくちゃ","りょこう","りりく","りれき","りろん","りんご","るいけい","るいさい","るいじ","るいせき","るすばん","るりがわら","れいかん","れいぎ","れいせい","れいぞうこ","れいとう","れいぼう","れきし","れきだい","れんあい","れんけい","れんこん","れんさい","れんしゅう","れんぞく","れんらく","ろうか","ろうご","ろうじん","ろうそく","ろくが","ろこつ","ろじうら","ろしゅつ","ろせん","ろてん","ろめん","ろれつ","ろんぎ","ろんぱ","ろんぶん","ろんり","わかす","わかめ","わかやま","わかれる","わしつ","わじまし","わすれもの","わらう","われる"]')},5428:e=>{"use strict";e.exports=JSON.parse('["가격","가끔","가난","가능","가득","가르침","가뭄","가방","가상","가슴","가운데","가을","가이드","가입","가장","가정","가족","가죽","각오","각자","간격","간부","간섭","간장","간접","간판","갈등","갈비","갈색","갈증","감각","감기","감소","감수성","감자","감정","갑자기","강남","강당","강도","강력히","강변","강북","강사","강수량","강아지","강원도","강의","강제","강조","같이","개구리","개나리","개방","개별","개선","개성","개인","객관적","거실","거액","거울","거짓","거품","걱정","건강","건물","건설","건조","건축","걸음","검사","검토","게시판","게임","겨울","견해","결과","결국","결론","결석","결승","결심","결정","결혼","경계","경고","경기","경력","경복궁","경비","경상도","경영","경우","경쟁","경제","경주","경찰","경치","경향","경험","계곡","계단","계란","계산","계속","계약","계절","계층","계획","고객","고구려","고궁","고급","고등학생","고무신","고민","고양이","고장","고전","고집","고춧가루","고통","고향","곡식","골목","골짜기","골프","공간","공개","공격","공군","공급","공기","공동","공무원","공부","공사","공식","공업","공연","공원","공장","공짜","공책","공통","공포","공항","공휴일","과목","과일","과장","과정","과학","관객","관계","관광","관념","관람","관련","관리","관습","관심","관점","관찰","광경","광고","광장","광주","괴로움","굉장히","교과서","교문","교복","교실","교양","교육","교장","교직","교통","교환","교훈","구경","구름","구멍","구별","구분","구석","구성","구속","구역","구입","구청","구체적","국가","국기","국내","국립","국물","국민","국수","국어","국왕","국적","국제","국회","군대","군사","군인","궁극적","권리","권위","권투","귀국","귀신","규정","규칙","균형","그날","그냥","그늘","그러나","그룹","그릇","그림","그제서야","그토록","극복","극히","근거","근교","근래","근로","근무","근본","근원","근육","근처","글씨","글자","금강산","금고","금년","금메달","금액","금연","금요일","금지","긍정적","기간","기관","기념","기능","기독교","기둥","기록","기름","기법","기본","기분","기쁨","기숙사","기술","기억","기업","기온","기운","기원","기적","기준","기침","기혼","기획","긴급","긴장","길이","김밥","김치","김포공항","깍두기","깜빡","깨달음","깨소금","껍질","꼭대기","꽃잎","나들이","나란히","나머지","나물","나침반","나흘","낙엽","난방","날개","날씨","날짜","남녀","남대문","남매","남산","남자","남편","남학생","낭비","낱말","내년","내용","내일","냄비","냄새","냇물","냉동","냉면","냉방","냉장고","넥타이","넷째","노동","노란색","노력","노인","녹음","녹차","녹화","논리","논문","논쟁","놀이","농구","농담","농민","농부","농업","농장","농촌","높이","눈동자","눈물","눈썹","뉴욕","느낌","늑대","능동적","능력","다방","다양성","다음","다이어트","다행","단계","단골","단독","단맛","단순","단어","단위","단점","단체","단추","단편","단풍","달걀","달러","달력","달리","닭고기","담당","담배","담요","담임","답변","답장","당근","당분간","당연히","당장","대규모","대낮","대단히","대답","대도시","대략","대량","대륙","대문","대부분","대신","대응","대장","대전","대접","대중","대책","대출","대충","대통령","대학","대한민국","대합실","대형","덩어리","데이트","도대체","도덕","도둑","도망","도서관","도심","도움","도입","도자기","도저히","도전","도중","도착","독감","독립","독서","독일","독창적","동화책","뒷모습","뒷산","딸아이","마누라","마늘","마당","마라톤","마련","마무리","마사지","마약","마요네즈","마을","마음","마이크","마중","마지막","마찬가지","마찰","마흔","막걸리","막내","막상","만남","만두","만세","만약","만일","만점","만족","만화","많이","말기","말씀","말투","맘대로","망원경","매년","매달","매력","매번","매스컴","매일","매장","맥주","먹이","먼저","먼지","멀리","메일","며느리","며칠","면담","멸치","명단","명령","명예","명의","명절","명칭","명함","모금","모니터","모델","모든","모범","모습","모양","모임","모조리","모집","모퉁이","목걸이","목록","목사","목소리","목숨","목적","목표","몰래","몸매","몸무게","몸살","몸속","몸짓","몸통","몹시","무관심","무궁화","무더위","무덤","무릎","무슨","무엇","무역","무용","무조건","무지개","무척","문구","문득","문법","문서","문제","문학","문화","물가","물건","물결","물고기","물론","물리학","물음","물질","물체","미국","미디어","미사일","미술","미역","미용실","미움","미인","미팅","미혼","민간","민족","민주","믿음","밀가루","밀리미터","밑바닥","바가지","바구니","바나나","바늘","바닥","바닷가","바람","바이러스","바탕","박물관","박사","박수","반대","반드시","반말","반발","반성","반응","반장","반죽","반지","반찬","받침","발가락","발걸음","발견","발달","발레","발목","발바닥","발생","발음","발자국","발전","발톱","발표","밤하늘","밥그릇","밥맛","밥상","밥솥","방금","방면","방문","방바닥","방법","방송","방식","방안","방울","방지","방학","방해","방향","배경","배꼽","배달","배드민턴","백두산","백색","백성","백인","백제","백화점","버릇","버섯","버튼","번개","번역","번지","번호","벌금","벌레","벌써","범위","범인","범죄","법률","법원","법적","법칙","베이징","벨트","변경","변동","변명","변신","변호사","변화","별도","별명","별일","병실","병아리","병원","보관","보너스","보라색","보람","보름","보상","보안","보자기","보장","보전","보존","보통","보편적","보험","복도","복사","복숭아","복습","볶음","본격적","본래","본부","본사","본성","본인","본질","볼펜","봉사","봉지","봉투","부근","부끄러움","부담","부동산","부문","부분","부산","부상","부엌","부인","부작용","부장","부정","부족","부지런히","부친","부탁","부품","부회장","북부","북한","분노","분량","분리","분명","분석","분야","분위기","분필","분홍색","불고기","불과","불교","불꽃","불만","불법","불빛","불안","불이익","불행","브랜드","비극","비난","비닐","비둘기","비디오","비로소","비만","비명","비밀","비바람","비빔밥","비상","비용","비율","비중","비타민","비판","빌딩","빗물","빗방울","빗줄기","빛깔","빨간색","빨래","빨리","사건","사계절","사나이","사냥","사람","사랑","사립","사모님","사물","사방","사상","사생활","사설","사슴","사실","사업","사용","사월","사장","사전","사진","사촌","사춘기","사탕","사투리","사흘","산길","산부인과","산업","산책","살림","살인","살짝","삼계탕","삼국","삼십","삼월","삼촌","상관","상금","상대","상류","상반기","상상","상식","상업","상인","상자","상점","상처","상추","상태","상표","상품","상황","새벽","색깔","색연필","생각","생명","생물","생방송","생산","생선","생신","생일","생활","서랍","서른","서명","서민","서비스","서양","서울","서적","서점","서쪽","서클","석사","석유","선거","선물","선배","선생","선수","선원","선장","선전","선택","선풍기","설거지","설날","설렁탕","설명","설문","설사","설악산","설치","설탕","섭씨","성공","성당","성명","성별","성인","성장","성적","성질","성함","세금","세미나","세상","세월","세종대왕","세탁","센터","센티미터","셋째","소규모","소극적","소금","소나기","소년","소득","소망","소문","소설","소속","소아과","소용","소원","소음","소중히","소지품","소질","소풍","소형","속담","속도","속옷","손가락","손길","손녀","손님","손등","손목","손뼉","손실","손질","손톱","손해","솔직히","솜씨","송아지","송이","송편","쇠고기","쇼핑","수건","수년","수단","수돗물","수동적","수면","수명","수박","수상","수석","수술","수시로","수업","수염","수영","수입","수준","수집","수출","수컷","수필","수학","수험생","수화기","숙녀","숙소","숙제","순간","순서","순수","순식간","순위","숟가락","술병","술집","숫자","스님","스물","스스로","스승","스웨터","스위치","스케이트","스튜디오","스트레스","스포츠","슬쩍","슬픔","습관","습기","승객","승리","승부","승용차","승진","시각","시간","시골","시금치","시나리오","시댁","시리즈","시멘트","시민","시부모","시선","시설","시스템","시아버지","시어머니","시월","시인","시일","시작","시장","시절","시점","시중","시즌","시집","시청","시합","시험","식구","식기","식당","식량","식료품","식물","식빵","식사","식생활","식초","식탁","식품","신고","신규","신념","신문","신발","신비","신사","신세","신용","신제품","신청","신체","신화","실감","실내","실력","실례","실망","실수","실습","실시","실장","실정","실질적","실천","실체","실컷","실태","실패","실험","실현","심리","심부름","심사","심장","심정","심판","쌍둥이","씨름","씨앗","아가씨","아나운서","아드님","아들","아쉬움","아스팔트","아시아","아울러","아저씨","아줌마","아직","아침","아파트","아프리카","아픔","아홉","아흔","악기","악몽","악수","안개","안경","안과","안내","안녕","안동","안방","안부","안주","알루미늄","알코올","암시","암컷","압력","앞날","앞문","애인","애정","액수","앨범","야간","야단","야옹","약간","약국","약속","약수","약점","약품","약혼녀","양념","양력","양말","양배추","양주","양파","어둠","어려움","어른","어젯밤","어쨌든","어쩌다가","어쩐지","언니","언덕","언론","언어","얼굴","얼른","얼음","얼핏","엄마","업무","업종","업체","엉덩이","엉망","엉터리","엊그제","에너지","에어컨","엔진","여건","여고생","여관","여군","여권","여대생","여덟","여동생","여든","여론","여름","여섯","여성","여왕","여인","여전히","여직원","여학생","여행","역사","역시","역할","연결","연구","연극","연기","연락","연설","연세","연속","연습","연애","연예인","연인","연장","연주","연출","연필","연합","연휴","열기","열매","열쇠","열심히","열정","열차","열흘","염려","엽서","영국","영남","영상","영양","영역","영웅","영원히","영하","영향","영혼","영화","옆구리","옆방","옆집","예감","예금","예방","예산","예상","예선","예술","예습","예식장","예약","예전","예절","예정","예컨대","옛날","오늘","오락","오랫동안","오렌지","오로지","오른발","오븐","오십","오염","오월","오전","오직","오징어","오페라","오피스텔","오히려","옥상","옥수수","온갖","온라인","온몸","온종일","온통","올가을","올림픽","올해","옷차림","와이셔츠","와인","완성","완전","왕비","왕자","왜냐하면","왠지","외갓집","외국","외로움","외삼촌","외출","외침","외할머니","왼발","왼손","왼쪽","요금","요일","요즘","요청","용기","용서","용어","우산","우선","우승","우연히","우정","우체국","우편","운동","운명","운반","운전","운행","울산","울음","움직임","웃어른","웃음","워낙","원고","원래","원서","원숭이","원인","원장","원피스","월급","월드컵","월세","월요일","웨이터","위반","위법","위성","위원","위험","위협","윗사람","유난히","유럽","유명","유물","유산","유적","유치원","유학","유행","유형","육군","육상","육십","육체","은행","음력","음료","음반","음성","음식","음악","음주","의견","의논","의문","의복","의식","의심","의외로","의욕","의원","의학","이것","이곳","이념","이놈","이달","이대로","이동","이렇게","이력서","이론적","이름","이민","이발소","이별","이불","이빨","이상","이성","이슬","이야기","이용","이웃","이월","이윽고","이익","이전","이중","이튿날","이틀","이혼","인간","인격","인공","인구","인근","인기","인도","인류","인물","인생","인쇄","인연","인원","인재","인종","인천","인체","인터넷","인하","인형","일곱","일기","일단","일대","일등","일반","일본","일부","일상","일생","일손","일요일","일월","일정","일종","일주일","일찍","일체","일치","일행","일회용","임금","임무","입대","입력","입맛","입사","입술","입시","입원","입장","입학","자가용","자격","자극","자동","자랑","자부심","자식","자신","자연","자원","자율","자전거","자정","자존심","자판","작가","작년","작성","작업","작용","작은딸","작품","잔디","잔뜩","잔치","잘못","잠깐","잠수함","잠시","잠옷","잠자리","잡지","장관","장군","장기간","장래","장례","장르","장마","장면","장모","장미","장비","장사","장소","장식","장애인","장인","장점","장차","장학금","재능","재빨리","재산","재생","재작년","재정","재채기","재판","재학","재활용","저것","저고리","저곳","저녁","저런","저렇게","저번","저울","저절로","저축","적극","적당히","적성","적용","적응","전개","전공","전기","전달","전라도","전망","전문","전반","전부","전세","전시","전용","전자","전쟁","전주","전철","전체","전통","전혀","전후","절대","절망","절반","절약","절차","점검","점수","점심","점원","점점","점차","접근","접시","접촉","젓가락","정거장","정도","정류장","정리","정말","정면","정문","정반대","정보","정부","정비","정상","정성","정오","정원","정장","정지","정치","정확히","제공","제과점","제대로","제목","제발","제법","제삿날","제안","제일","제작","제주도","제출","제품","제한","조각","조건","조금","조깅","조명","조미료","조상","조선","조용히","조절","조정","조직","존댓말","존재","졸업","졸음","종교","종로","종류","종소리","종업원","종종","종합","좌석","죄인","주관적","주름","주말","주머니","주먹","주문","주민","주방","주변","주식","주인","주일","주장","주전자","주택","준비","줄거리","줄기","줄무늬","중간","중계방송","중국","중년","중단","중독","중반","중부","중세","중소기업","중순","중앙","중요","중학교","즉석","즉시","즐거움","증가","증거","증권","증상","증세","지각","지갑","지경","지극히","지금","지급","지능","지름길","지리산","지방","지붕","지식","지역","지우개","지원","지적","지점","지진","지출","직선","직업","직원","직장","진급","진동","진로","진료","진리","진짜","진찰","진출","진통","진행","질문","질병","질서","짐작","집단","집안","집중","짜증","찌꺼기","차남","차라리","차량","차림","차별","차선","차츰","착각","찬물","찬성","참가","참기름","참새","참석","참여","참외","참조","찻잔","창가","창고","창구","창문","창밖","창작","창조","채널","채점","책가방","책방","책상","책임","챔피언","처벌","처음","천국","천둥","천장","천재","천천히","철도","철저히","철학","첫날","첫째","청년","청바지","청소","청춘","체계","체력","체온","체육","체중","체험","초등학생","초반","초밥","초상화","초순","초여름","초원","초저녁","초점","초청","초콜릿","촛불","총각","총리","총장","촬영","최근","최상","최선","최신","최악","최종","추석","추억","추진","추천","추측","축구","축소","축제","축하","출근","출발","출산","출신","출연","출입","출장","출판","충격","충고","충돌","충분히","충청도","취업","취직","취향","치약","친구","친척","칠십","칠월","칠판","침대","침묵","침실","칫솔","칭찬","카메라","카운터","칼국수","캐릭터","캠퍼스","캠페인","커튼","컨디션","컬러","컴퓨터","코끼리","코미디","콘서트","콜라","콤플렉스","콩나물","쾌감","쿠데타","크림","큰길","큰딸","큰소리","큰아들","큰어머니","큰일","큰절","클래식","클럽","킬로","타입","타자기","탁구","탁자","탄생","태권도","태양","태풍","택시","탤런트","터널","터미널","테니스","테스트","테이블","텔레비전","토론","토마토","토요일","통계","통과","통로","통신","통역","통일","통장","통제","통증","통합","통화","퇴근","퇴원","퇴직금","튀김","트럭","특급","특별","특성","특수","특징","특히","튼튼히","티셔츠","파란색","파일","파출소","판결","판단","판매","판사","팔십","팔월","팝송","패션","팩스","팩시밀리","팬티","퍼센트","페인트","편견","편의","편지","편히","평가","평균","평생","평소","평양","평일","평화","포스터","포인트","포장","포함","표면","표정","표준","표현","품목","품질","풍경","풍속","풍습","프랑스","프린터","플라스틱","피곤","피망","피아노","필름","필수","필요","필자","필통","핑계","하느님","하늘","하드웨어","하룻밤","하반기","하숙집","하순","하여튼","하지만","하천","하품","하필","학과","학교","학급","학기","학년","학력","학번","학부모","학비","학생","학술","학습","학용품","학원","학위","학자","학점","한계","한글","한꺼번에","한낮","한눈","한동안","한때","한라산","한마디","한문","한번","한복","한식","한여름","한쪽","할머니","할아버지","할인","함께","함부로","합격","합리적","항공","항구","항상","항의","해결","해군","해답","해당","해물","해석","해설","해수욕장","해안","핵심","핸드백","햄버거","햇볕","햇살","행동","행복","행사","행운","행위","향기","향상","향수","허락","허용","헬기","현관","현금","현대","현상","현실","현장","현재","현지","혈액","협력","형부","형사","형수","형식","형제","형태","형편","혜택","호기심","호남","호랑이","호박","호텔","호흡","혹시","홀로","홈페이지","홍보","홍수","홍차","화면","화분","화살","화요일","화장","화학","확보","확인","확장","확정","환갑","환경","환영","환율","환자","활기","활동","활발히","활용","활짝","회견","회관","회복","회색","회원","회장","회전","횟수","횡단보도","효율적","후반","후춧가루","훈련","훨씬","휴식","휴일","흉내","흐름","흑백","흑인","흔적","흔히","흥미","흥분","희곡","희망","희생","흰색","힘껏"]')},7357:e=>{"use strict";e.exports=JSON.parse('["abacate","abaixo","abalar","abater","abduzir","abelha","aberto","abismo","abotoar","abranger","abreviar","abrigar","abrupto","absinto","absoluto","absurdo","abutre","acabado","acalmar","acampar","acanhar","acaso","aceitar","acelerar","acenar","acervo","acessar","acetona","achatar","acidez","acima","acionado","acirrar","aclamar","aclive","acolhida","acomodar","acoplar","acordar","acumular","acusador","adaptar","adega","adentro","adepto","adequar","aderente","adesivo","adeus","adiante","aditivo","adjetivo","adjunto","admirar","adorar","adquirir","adubo","adverso","advogado","aeronave","afastar","aferir","afetivo","afinador","afivelar","aflito","afluente","afrontar","agachar","agarrar","agasalho","agenciar","agilizar","agiota","agitado","agora","agradar","agreste","agrupar","aguardar","agulha","ajoelhar","ajudar","ajustar","alameda","alarme","alastrar","alavanca","albergue","albino","alcatra","aldeia","alecrim","alegria","alertar","alface","alfinete","algum","alheio","aliar","alicate","alienar","alinhar","aliviar","almofada","alocar","alpiste","alterar","altitude","alucinar","alugar","aluno","alusivo","alvo","amaciar","amador","amarelo","amassar","ambas","ambiente","ameixa","amenizar","amido","amistoso","amizade","amolador","amontoar","amoroso","amostra","amparar","ampliar","ampola","anagrama","analisar","anarquia","anatomia","andaime","anel","anexo","angular","animar","anjo","anomalia","anotado","ansioso","anterior","anuidade","anunciar","anzol","apagador","apalpar","apanhado","apego","apelido","apertada","apesar","apetite","apito","aplauso","aplicada","apoio","apontar","aposta","aprendiz","aprovar","aquecer","arame","aranha","arara","arcada","ardente","areia","arejar","arenito","aresta","argiloso","argola","arma","arquivo","arraial","arrebate","arriscar","arroba","arrumar","arsenal","arterial","artigo","arvoredo","asfaltar","asilado","aspirar","assador","assinar","assoalho","assunto","astral","atacado","atadura","atalho","atarefar","atear","atender","aterro","ateu","atingir","atirador","ativo","atoleiro","atracar","atrevido","atriz","atual","atum","auditor","aumentar","aura","aurora","autismo","autoria","autuar","avaliar","avante","avaria","avental","avesso","aviador","avisar","avulso","axila","azarar","azedo","azeite","azulejo","babar","babosa","bacalhau","bacharel","bacia","bagagem","baiano","bailar","baioneta","bairro","baixista","bajular","baleia","baliza","balsa","banal","bandeira","banho","banir","banquete","barato","barbado","baronesa","barraca","barulho","baseado","bastante","batata","batedor","batida","batom","batucar","baunilha","beber","beijo","beirada","beisebol","beldade","beleza","belga","beliscar","bendito","bengala","benzer","berimbau","berlinda","berro","besouro","bexiga","bezerro","bico","bicudo","bienal","bifocal","bifurcar","bigorna","bilhete","bimestre","bimotor","biologia","biombo","biosfera","bipolar","birrento","biscoito","bisneto","bispo","bissexto","bitola","bizarro","blindado","bloco","bloquear","boato","bobagem","bocado","bocejo","bochecha","boicotar","bolada","boletim","bolha","bolo","bombeiro","bonde","boneco","bonita","borbulha","borda","boreal","borracha","bovino","boxeador","branco","brasa","braveza","breu","briga","brilho","brincar","broa","brochura","bronzear","broto","bruxo","bucha","budismo","bufar","bule","buraco","busca","busto","buzina","cabana","cabelo","cabide","cabo","cabrito","cacau","cacetada","cachorro","cacique","cadastro","cadeado","cafezal","caiaque","caipira","caixote","cajado","caju","calafrio","calcular","caldeira","calibrar","calmante","calota","camada","cambista","camisa","camomila","campanha","camuflar","canavial","cancelar","caneta","canguru","canhoto","canivete","canoa","cansado","cantar","canudo","capacho","capela","capinar","capotar","capricho","captador","capuz","caracol","carbono","cardeal","careca","carimbar","carneiro","carpete","carreira","cartaz","carvalho","casaco","casca","casebre","castelo","casulo","catarata","cativar","caule","causador","cautelar","cavalo","caverna","cebola","cedilha","cegonha","celebrar","celular","cenoura","censo","centeio","cercar","cerrado","certeiro","cerveja","cetim","cevada","chacota","chaleira","chamado","chapada","charme","chatice","chave","chefe","chegada","cheiro","cheque","chicote","chifre","chinelo","chocalho","chover","chumbo","chutar","chuva","cicatriz","ciclone","cidade","cidreira","ciente","cigana","cimento","cinto","cinza","ciranda","circuito","cirurgia","citar","clareza","clero","clicar","clone","clube","coado","coagir","cobaia","cobertor","cobrar","cocada","coelho","coentro","coeso","cogumelo","coibir","coifa","coiote","colar","coleira","colher","colidir","colmeia","colono","coluna","comando","combinar","comentar","comitiva","comover","complexo","comum","concha","condor","conectar","confuso","congelar","conhecer","conjugar","consumir","contrato","convite","cooperar","copeiro","copiador","copo","coquetel","coragem","cordial","corneta","coronha","corporal","correio","cortejo","coruja","corvo","cosseno","costela","cotonete","couro","couve","covil","cozinha","cratera","cravo","creche","credor","creme","crer","crespo","criada","criminal","crioulo","crise","criticar","crosta","crua","cruzeiro","cubano","cueca","cuidado","cujo","culatra","culminar","culpar","cultura","cumprir","cunhado","cupido","curativo","curral","cursar","curto","cuspir","custear","cutelo","damasco","datar","debater","debitar","deboche","debulhar","decalque","decimal","declive","decote","decretar","dedal","dedicado","deduzir","defesa","defumar","degelo","degrau","degustar","deitado","deixar","delator","delegado","delinear","delonga","demanda","demitir","demolido","dentista","depenado","depilar","depois","depressa","depurar","deriva","derramar","desafio","desbotar","descanso","desenho","desfiado","desgaste","desigual","deslize","desmamar","desova","despesa","destaque","desviar","detalhar","detentor","detonar","detrito","deusa","dever","devido","devotado","dezena","diagrama","dialeto","didata","difuso","digitar","dilatado","diluente","diminuir","dinastia","dinheiro","diocese","direto","discreta","disfarce","disparo","disquete","dissipar","distante","ditador","diurno","diverso","divisor","divulgar","dizer","dobrador","dolorido","domador","dominado","donativo","donzela","dormente","dorsal","dosagem","dourado","doutor","drenagem","drible","drogaria","duelar","duende","dueto","duplo","duquesa","durante","duvidoso","eclodir","ecoar","ecologia","edificar","edital","educado","efeito","efetivar","ejetar","elaborar","eleger","eleitor","elenco","elevador","eliminar","elogiar","embargo","embolado","embrulho","embutido","emenda","emergir","emissor","empatia","empenho","empinado","empolgar","emprego","empurrar","emulador","encaixe","encenado","enchente","encontro","endeusar","endossar","enfaixar","enfeite","enfim","engajado","engenho","englobar","engomado","engraxar","enguia","enjoar","enlatar","enquanto","enraizar","enrolado","enrugar","ensaio","enseada","ensino","ensopado","entanto","enteado","entidade","entortar","entrada","entulho","envergar","enviado","envolver","enxame","enxerto","enxofre","enxuto","epiderme","equipar","ereto","erguido","errata","erva","ervilha","esbanjar","esbelto","escama","escola","escrita","escuta","esfinge","esfolar","esfregar","esfumado","esgrima","esmalte","espanto","espelho","espiga","esponja","espreita","espumar","esquerda","estaca","esteira","esticar","estofado","estrela","estudo","esvaziar","etanol","etiqueta","euforia","europeu","evacuar","evaporar","evasivo","eventual","evidente","evoluir","exagero","exalar","examinar","exato","exausto","excesso","excitar","exclamar","executar","exemplo","exibir","exigente","exonerar","expandir","expelir","expirar","explanar","exposto","expresso","expulsar","externo","extinto","extrato","fabricar","fabuloso","faceta","facial","fada","fadiga","faixa","falar","falta","familiar","fandango","fanfarra","fantoche","fardado","farelo","farinha","farofa","farpa","fartura","fatia","fator","favorita","faxina","fazenda","fechado","feijoada","feirante","felino","feminino","fenda","feno","fera","feriado","ferrugem","ferver","festejar","fetal","feudal","fiapo","fibrose","ficar","ficheiro","figurado","fileira","filho","filme","filtrar","firmeza","fisgada","fissura","fita","fivela","fixador","fixo","flacidez","flamingo","flanela","flechada","flora","flutuar","fluxo","focal","focinho","fofocar","fogo","foguete","foice","folgado","folheto","forjar","formiga","forno","forte","fosco","fossa","fragata","fralda","frango","frasco","fraterno","freira","frente","fretar","frieza","friso","fritura","fronha","frustrar","fruteira","fugir","fulano","fuligem","fundar","fungo","funil","furador","furioso","futebol","gabarito","gabinete","gado","gaiato","gaiola","gaivota","galega","galho","galinha","galocha","ganhar","garagem","garfo","gargalo","garimpo","garoupa","garrafa","gasoduto","gasto","gata","gatilho","gaveta","gazela","gelado","geleia","gelo","gemada","gemer","gemido","generoso","gengiva","genial","genoma","genro","geologia","gerador","germinar","gesso","gestor","ginasta","gincana","gingado","girafa","girino","glacial","glicose","global","glorioso","goela","goiaba","golfe","golpear","gordura","gorjeta","gorro","gostoso","goteira","governar","gracejo","gradual","grafite","gralha","grampo","granada","gratuito","graveto","graxa","grego","grelhar","greve","grilo","grisalho","gritaria","grosso","grotesco","grudado","grunhido","gruta","guache","guarani","guaxinim","guerrear","guiar","guincho","guisado","gula","guloso","guru","habitar","harmonia","haste","haver","hectare","herdar","heresia","hesitar","hiato","hibernar","hidratar","hiena","hino","hipismo","hipnose","hipoteca","hoje","holofote","homem","honesto","honrado","hormonal","hospedar","humorado","iate","ideia","idoso","ignorado","igreja","iguana","ileso","ilha","iludido","iluminar","ilustrar","imagem","imediato","imenso","imersivo","iminente","imitador","imortal","impacto","impedir","implante","impor","imprensa","impune","imunizar","inalador","inapto","inativo","incenso","inchar","incidir","incluir","incolor","indeciso","indireto","indutor","ineficaz","inerente","infantil","infestar","infinito","inflamar","informal","infrator","ingerir","inibido","inicial","inimigo","injetar","inocente","inodoro","inovador","inox","inquieto","inscrito","inseto","insistir","inspetor","instalar","insulto","intacto","integral","intimar","intocado","intriga","invasor","inverno","invicto","invocar","iogurte","iraniano","ironizar","irreal","irritado","isca","isento","isolado","isqueiro","italiano","janeiro","jangada","janta","jararaca","jardim","jarro","jasmim","jato","javali","jazida","jejum","joaninha","joelhada","jogador","joia","jornal","jorrar","jovem","juba","judeu","judoca","juiz","julgador","julho","jurado","jurista","juro","justa","labareda","laboral","lacre","lactante","ladrilho","lagarta","lagoa","laje","lamber","lamentar","laminar","lampejo","lanche","lapidar","lapso","laranja","lareira","largura","lasanha","lastro","lateral","latido","lavanda","lavoura","lavrador","laxante","lazer","lealdade","lebre","legado","legendar","legista","leigo","leiloar","leitura","lembrete","leme","lenhador","lentilha","leoa","lesma","leste","letivo","letreiro","levar","leveza","levitar","liberal","libido","liderar","ligar","ligeiro","limitar","limoeiro","limpador","linda","linear","linhagem","liquidez","listagem","lisura","litoral","livro","lixa","lixeira","locador","locutor","lojista","lombo","lona","longe","lontra","lorde","lotado","loteria","loucura","lousa","louvar","luar","lucidez","lucro","luneta","lustre","lutador","luva","macaco","macete","machado","macio","madeira","madrinha","magnata","magreza","maior","mais","malandro","malha","malote","maluco","mamilo","mamoeiro","mamute","manada","mancha","mandato","manequim","manhoso","manivela","manobrar","mansa","manter","manusear","mapeado","maquinar","marcador","maresia","marfim","margem","marinho","marmita","maroto","marquise","marreco","martelo","marujo","mascote","masmorra","massagem","mastigar","matagal","materno","matinal","matutar","maxilar","medalha","medida","medusa","megafone","meiga","melancia","melhor","membro","memorial","menino","menos","mensagem","mental","merecer","mergulho","mesada","mesclar","mesmo","mesquita","mestre","metade","meteoro","metragem","mexer","mexicano","micro","migalha","migrar","milagre","milenar","milhar","mimado","minerar","minhoca","ministro","minoria","miolo","mirante","mirtilo","misturar","mocidade","moderno","modular","moeda","moer","moinho","moita","moldura","moleza","molho","molinete","molusco","montanha","moqueca","morango","morcego","mordomo","morena","mosaico","mosquete","mostarda","motel","motim","moto","motriz","muda","muito","mulata","mulher","multar","mundial","munido","muralha","murcho","muscular","museu","musical","nacional","nadador","naja","namoro","narina","narrado","nascer","nativa","natureza","navalha","navegar","navio","neblina","nebuloso","negativa","negociar","negrito","nervoso","neta","neural","nevasca","nevoeiro","ninar","ninho","nitidez","nivelar","nobreza","noite","noiva","nomear","nominal","nordeste","nortear","notar","noticiar","noturno","novelo","novilho","novo","nublado","nudez","numeral","nupcial","nutrir","nuvem","obcecado","obedecer","objetivo","obrigado","obscuro","obstetra","obter","obturar","ocidente","ocioso","ocorrer","oculista","ocupado","ofegante","ofensiva","oferenda","oficina","ofuscado","ogiva","olaria","oleoso","olhar","oliveira","ombro","omelete","omisso","omitir","ondulado","oneroso","ontem","opcional","operador","oponente","oportuno","oposto","orar","orbitar","ordem","ordinal","orfanato","orgasmo","orgulho","oriental","origem","oriundo","orla","ortodoxo","orvalho","oscilar","ossada","osso","ostentar","otimismo","ousadia","outono","outubro","ouvido","ovelha","ovular","oxidar","oxigenar","pacato","paciente","pacote","pactuar","padaria","padrinho","pagar","pagode","painel","pairar","paisagem","palavra","palestra","palheta","palito","palmada","palpitar","pancada","panela","panfleto","panqueca","pantanal","papagaio","papelada","papiro","parafina","parcial","pardal","parede","partida","pasmo","passado","pastel","patamar","patente","patinar","patrono","paulada","pausar","peculiar","pedalar","pedestre","pediatra","pedra","pegada","peitoral","peixe","pele","pelicano","penca","pendurar","peneira","penhasco","pensador","pente","perceber","perfeito","pergunta","perito","permitir","perna","perplexo","persiana","pertence","peruca","pescado","pesquisa","pessoa","petiscar","piada","picado","piedade","pigmento","pilastra","pilhado","pilotar","pimenta","pincel","pinguim","pinha","pinote","pintar","pioneiro","pipoca","piquete","piranha","pires","pirueta","piscar","pistola","pitanga","pivete","planta","plaqueta","platina","plebeu","plumagem","pluvial","pneu","poda","poeira","poetisa","polegada","policiar","poluente","polvilho","pomar","pomba","ponderar","pontaria","populoso","porta","possuir","postal","pote","poupar","pouso","povoar","praia","prancha","prato","praxe","prece","predador","prefeito","premiar","prensar","preparar","presilha","pretexto","prevenir","prezar","primata","princesa","prisma","privado","processo","produto","profeta","proibido","projeto","prometer","propagar","prosa","protetor","provador","publicar","pudim","pular","pulmonar","pulseira","punhal","punir","pupilo","pureza","puxador","quadra","quantia","quarto","quase","quebrar","queda","queijo","quente","querido","quimono","quina","quiosque","rabanada","rabisco","rachar","racionar","radial","raiar","rainha","raio","raiva","rajada","ralado","ramal","ranger","ranhura","rapadura","rapel","rapidez","raposa","raquete","raridade","rasante","rascunho","rasgar","raspador","rasteira","rasurar","ratazana","ratoeira","realeza","reanimar","reaver","rebaixar","rebelde","rebolar","recado","recente","recheio","recibo","recordar","recrutar","recuar","rede","redimir","redonda","reduzida","reenvio","refinar","refletir","refogar","refresco","refugiar","regalia","regime","regra","reinado","reitor","rejeitar","relativo","remador","remendo","remorso","renovado","reparo","repelir","repleto","repolho","represa","repudiar","requerer","resenha","resfriar","resgatar","residir","resolver","respeito","ressaca","restante","resumir","retalho","reter","retirar","retomada","retratar","revelar","revisor","revolta","riacho","rica","rigidez","rigoroso","rimar","ringue","risada","risco","risonho","robalo","rochedo","rodada","rodeio","rodovia","roedor","roleta","romano","roncar","rosado","roseira","rosto","rota","roteiro","rotina","rotular","rouco","roupa","roxo","rubro","rugido","rugoso","ruivo","rumo","rupestre","russo","sabor","saciar","sacola","sacudir","sadio","safira","saga","sagrada","saibro","salada","saleiro","salgado","saliva","salpicar","salsicha","saltar","salvador","sambar","samurai","sanar","sanfona","sangue","sanidade","sapato","sarda","sargento","sarjeta","saturar","saudade","saxofone","sazonal","secar","secular","seda","sedento","sediado","sedoso","sedutor","segmento","segredo","segundo","seiva","seleto","selvagem","semanal","semente","senador","senhor","sensual","sentado","separado","sereia","seringa","serra","servo","setembro","setor","sigilo","silhueta","silicone","simetria","simpatia","simular","sinal","sincero","singular","sinopse","sintonia","sirene","siri","situado","soberano","sobra","socorro","sogro","soja","solda","soletrar","solteiro","sombrio","sonata","sondar","sonegar","sonhador","sono","soprano","soquete","sorrir","sorteio","sossego","sotaque","soterrar","sovado","sozinho","suavizar","subida","submerso","subsolo","subtrair","sucata","sucesso","suco","sudeste","sufixo","sugador","sugerir","sujeito","sulfato","sumir","suor","superior","suplicar","suposto","suprimir","surdina","surfista","surpresa","surreal","surtir","suspiro","sustento","tabela","tablete","tabuada","tacho","tagarela","talher","talo","talvez","tamanho","tamborim","tampa","tangente","tanto","tapar","tapioca","tardio","tarefa","tarja","tarraxa","tatuagem","taurino","taxativo","taxista","teatral","tecer","tecido","teclado","tedioso","teia","teimar","telefone","telhado","tempero","tenente","tensor","tentar","termal","terno","terreno","tese","tesoura","testado","teto","textura","texugo","tiara","tigela","tijolo","timbrar","timidez","tingido","tinteiro","tiragem","titular","toalha","tocha","tolerar","tolice","tomada","tomilho","tonel","tontura","topete","tora","torcido","torneio","torque","torrada","torto","tostar","touca","toupeira","toxina","trabalho","tracejar","tradutor","trafegar","trajeto","trama","trancar","trapo","traseiro","tratador","travar","treino","tremer","trepidar","trevo","triagem","tribo","triciclo","tridente","trilogia","trindade","triplo","triturar","triunfal","trocar","trombeta","trova","trunfo","truque","tubular","tucano","tudo","tulipa","tupi","turbo","turma","turquesa","tutelar","tutorial","uivar","umbigo","unha","unidade","uniforme","urologia","urso","urtiga","urubu","usado","usina","usufruir","vacina","vadiar","vagaroso","vaidoso","vala","valente","validade","valores","vantagem","vaqueiro","varanda","vareta","varrer","vascular","vasilha","vassoura","vazar","vazio","veado","vedar","vegetar","veicular","veleiro","velhice","veludo","vencedor","vendaval","venerar","ventre","verbal","verdade","vereador","vergonha","vermelho","verniz","versar","vertente","vespa","vestido","vetorial","viaduto","viagem","viajar","viatura","vibrador","videira","vidraria","viela","viga","vigente","vigiar","vigorar","vilarejo","vinco","vinheta","vinil","violeta","virada","virtude","visitar","visto","vitral","viveiro","vizinho","voador","voar","vogal","volante","voleibol","voltagem","volumoso","vontade","vulto","vuvuzela","xadrez","xarope","xeque","xeretar","xerife","xingar","zangado","zarpar","zebu","zelador","zombar","zoologia","zumbido"]')},5376:e=>{"use strict";e.exports=JSON.parse('["ábaco","abdomen","abeja","abierto","abogado","abono","aborto","abrazo","abrir","abuelo","abuso","acabar","academia","acceso","acción","aceite","acelga","acento","aceptar","ácido","aclarar","acné","acoger","acoso","activo","acto","actriz","actuar","acudir","acuerdo","acusar","adicto","admitir","adoptar","adorno","aduana","adulto","aéreo","afectar","afición","afinar","afirmar","ágil","agitar","agonía","agosto","agotar","agregar","agrio","agua","agudo","águila","aguja","ahogo","ahorro","aire","aislar","ajedrez","ajeno","ajuste","alacrán","alambre","alarma","alba","álbum","alcalde","aldea","alegre","alejar","alerta","aleta","alfiler","alga","algodón","aliado","aliento","alivio","alma","almeja","almíbar","altar","alteza","altivo","alto","altura","alumno","alzar","amable","amante","amapola","amargo","amasar","ámbar","ámbito","ameno","amigo","amistad","amor","amparo","amplio","ancho","anciano","ancla","andar","andén","anemia","ángulo","anillo","ánimo","anís","anotar","antena","antiguo","antojo","anual","anular","anuncio","añadir","añejo","año","apagar","aparato","apetito","apio","aplicar","apodo","aporte","apoyo","aprender","aprobar","apuesta","apuro","arado","araña","arar","árbitro","árbol","arbusto","archivo","arco","arder","ardilla","arduo","área","árido","aries","armonía","arnés","aroma","arpa","arpón","arreglo","arroz","arruga","arte","artista","asa","asado","asalto","ascenso","asegurar","aseo","asesor","asiento","asilo","asistir","asno","asombro","áspero","astilla","astro","astuto","asumir","asunto","atajo","ataque","atar","atento","ateo","ático","atleta","átomo","atraer","atroz","atún","audaz","audio","auge","aula","aumento","ausente","autor","aval","avance","avaro","ave","avellana","avena","avestruz","avión","aviso","ayer","ayuda","ayuno","azafrán","azar","azote","azúcar","azufre","azul","baba","babor","bache","bahía","baile","bajar","balanza","balcón","balde","bambú","banco","banda","baño","barba","barco","barniz","barro","báscula","bastón","basura","batalla","batería","batir","batuta","baúl","bazar","bebé","bebida","bello","besar","beso","bestia","bicho","bien","bingo","blanco","bloque","blusa","boa","bobina","bobo","boca","bocina","boda","bodega","boina","bola","bolero","bolsa","bomba","bondad","bonito","bono","bonsái","borde","borrar","bosque","bote","botín","bóveda","bozal","bravo","brazo","brecha","breve","brillo","brinco","brisa","broca","broma","bronce","brote","bruja","brusco","bruto","buceo","bucle","bueno","buey","bufanda","bufón","búho","buitre","bulto","burbuja","burla","burro","buscar","butaca","buzón","caballo","cabeza","cabina","cabra","cacao","cadáver","cadena","caer","café","caída","caimán","caja","cajón","cal","calamar","calcio","caldo","calidad","calle","calma","calor","calvo","cama","cambio","camello","camino","campo","cáncer","candil","canela","canguro","canica","canto","caña","cañón","caoba","caos","capaz","capitán","capote","captar","capucha","cara","carbón","cárcel","careta","carga","cariño","carne","carpeta","carro","carta","casa","casco","casero","caspa","castor","catorce","catre","caudal","causa","cazo","cebolla","ceder","cedro","celda","célebre","celoso","célula","cemento","ceniza","centro","cerca","cerdo","cereza","cero","cerrar","certeza","césped","cetro","chacal","chaleco","champú","chancla","chapa","charla","chico","chiste","chivo","choque","choza","chuleta","chupar","ciclón","ciego","cielo","cien","cierto","cifra","cigarro","cima","cinco","cine","cinta","ciprés","circo","ciruela","cisne","cita","ciudad","clamor","clan","claro","clase","clave","cliente","clima","clínica","cobre","cocción","cochino","cocina","coco","código","codo","cofre","coger","cohete","cojín","cojo","cola","colcha","colegio","colgar","colina","collar","colmo","columna","combate","comer","comida","cómodo","compra","conde","conejo","conga","conocer","consejo","contar","copa","copia","corazón","corbata","corcho","cordón","corona","correr","coser","cosmos","costa","cráneo","cráter","crear","crecer","creído","crema","cría","crimen","cripta","crisis","cromo","crónica","croqueta","crudo","cruz","cuadro","cuarto","cuatro","cubo","cubrir","cuchara","cuello","cuento","cuerda","cuesta","cueva","cuidar","culebra","culpa","culto","cumbre","cumplir","cuna","cuneta","cuota","cupón","cúpula","curar","curioso","curso","curva","cutis","dama","danza","dar","dardo","dátil","deber","débil","década","decir","dedo","defensa","definir","dejar","delfín","delgado","delito","demora","denso","dental","deporte","derecho","derrota","desayuno","deseo","desfile","desnudo","destino","desvío","detalle","detener","deuda","día","diablo","diadema","diamante","diana","diario","dibujo","dictar","diente","dieta","diez","difícil","digno","dilema","diluir","dinero","directo","dirigir","disco","diseño","disfraz","diva","divino","doble","doce","dolor","domingo","don","donar","dorado","dormir","dorso","dos","dosis","dragón","droga","ducha","duda","duelo","dueño","dulce","dúo","duque","durar","dureza","duro","ébano","ebrio","echar","eco","ecuador","edad","edición","edificio","editor","educar","efecto","eficaz","eje","ejemplo","elefante","elegir","elemento","elevar","elipse","élite","elixir","elogio","eludir","embudo","emitir","emoción","empate","empeño","empleo","empresa","enano","encargo","enchufe","encía","enemigo","enero","enfado","enfermo","engaño","enigma","enlace","enorme","enredo","ensayo","enseñar","entero","entrar","envase","envío","época","equipo","erizo","escala","escena","escolar","escribir","escudo","esencia","esfera","esfuerzo","espada","espejo","espía","esposa","espuma","esquí","estar","este","estilo","estufa","etapa","eterno","ética","etnia","evadir","evaluar","evento","evitar","exacto","examen","exceso","excusa","exento","exigir","exilio","existir","éxito","experto","explicar","exponer","extremo","fábrica","fábula","fachada","fácil","factor","faena","faja","falda","fallo","falso","faltar","fama","familia","famoso","faraón","farmacia","farol","farsa","fase","fatiga","fauna","favor","fax","febrero","fecha","feliz","feo","feria","feroz","fértil","fervor","festín","fiable","fianza","fiar","fibra","ficción","ficha","fideo","fiebre","fiel","fiera","fiesta","figura","fijar","fijo","fila","filete","filial","filtro","fin","finca","fingir","finito","firma","flaco","flauta","flecha","flor","flota","fluir","flujo","flúor","fobia","foca","fogata","fogón","folio","folleto","fondo","forma","forro","fortuna","forzar","fosa","foto","fracaso","frágil","franja","frase","fraude","freír","freno","fresa","frío","frito","fruta","fuego","fuente","fuerza","fuga","fumar","función","funda","furgón","furia","fusil","fútbol","futuro","gacela","gafas","gaita","gajo","gala","galería","gallo","gamba","ganar","gancho","ganga","ganso","garaje","garza","gasolina","gastar","gato","gavilán","gemelo","gemir","gen","género","genio","gente","geranio","gerente","germen","gesto","gigante","gimnasio","girar","giro","glaciar","globo","gloria","gol","golfo","goloso","golpe","goma","gordo","gorila","gorra","gota","goteo","gozar","grada","gráfico","grano","grasa","gratis","grave","grieta","grillo","gripe","gris","grito","grosor","grúa","grueso","grumo","grupo","guante","guapo","guardia","guerra","guía","guiño","guion","guiso","guitarra","gusano","gustar","haber","hábil","hablar","hacer","hacha","hada","hallar","hamaca","harina","haz","hazaña","hebilla","hebra","hecho","helado","helio","hembra","herir","hermano","héroe","hervir","hielo","hierro","hígado","higiene","hijo","himno","historia","hocico","hogar","hoguera","hoja","hombre","hongo","honor","honra","hora","hormiga","horno","hostil","hoyo","hueco","huelga","huerta","hueso","huevo","huida","huir","humano","húmedo","humilde","humo","hundir","huracán","hurto","icono","ideal","idioma","ídolo","iglesia","iglú","igual","ilegal","ilusión","imagen","imán","imitar","impar","imperio","imponer","impulso","incapaz","índice","inerte","infiel","informe","ingenio","inicio","inmenso","inmune","innato","insecto","instante","interés","íntimo","intuir","inútil","invierno","ira","iris","ironía","isla","islote","jabalí","jabón","jamón","jarabe","jardín","jarra","jaula","jazmín","jefe","jeringa","jinete","jornada","joroba","joven","joya","juerga","jueves","juez","jugador","jugo","juguete","juicio","junco","jungla","junio","juntar","júpiter","jurar","justo","juvenil","juzgar","kilo","koala","labio","lacio","lacra","lado","ladrón","lagarto","lágrima","laguna","laico","lamer","lámina","lámpara","lana","lancha","langosta","lanza","lápiz","largo","larva","lástima","lata","látex","latir","laurel","lavar","lazo","leal","lección","leche","lector","leer","legión","legumbre","lejano","lengua","lento","leña","león","leopardo","lesión","letal","letra","leve","leyenda","libertad","libro","licor","líder","lidiar","lienzo","liga","ligero","lima","límite","limón","limpio","lince","lindo","línea","lingote","lino","linterna","líquido","liso","lista","litera","litio","litro","llaga","llama","llanto","llave","llegar","llenar","llevar","llorar","llover","lluvia","lobo","loción","loco","locura","lógica","logro","lombriz","lomo","lonja","lote","lucha","lucir","lugar","lujo","luna","lunes","lupa","lustro","luto","luz","maceta","macho","madera","madre","maduro","maestro","mafia","magia","mago","maíz","maldad","maleta","malla","malo","mamá","mambo","mamut","manco","mando","manejar","manga","maniquí","manjar","mano","manso","manta","mañana","mapa","máquina","mar","marco","marea","marfil","margen","marido","mármol","marrón","martes","marzo","masa","máscara","masivo","matar","materia","matiz","matriz","máximo","mayor","mazorca","mecha","medalla","medio","médula","mejilla","mejor","melena","melón","memoria","menor","mensaje","mente","menú","mercado","merengue","mérito","mes","mesón","meta","meter","método","metro","mezcla","miedo","miel","miembro","miga","mil","milagro","militar","millón","mimo","mina","minero","mínimo","minuto","miope","mirar","misa","miseria","misil","mismo","mitad","mito","mochila","moción","moda","modelo","moho","mojar","molde","moler","molino","momento","momia","monarca","moneda","monja","monto","moño","morada","morder","moreno","morir","morro","morsa","mortal","mosca","mostrar","motivo","mover","móvil","mozo","mucho","mudar","mueble","muela","muerte","muestra","mugre","mujer","mula","muleta","multa","mundo","muñeca","mural","muro","músculo","museo","musgo","música","muslo","nácar","nación","nadar","naipe","naranja","nariz","narrar","nasal","natal","nativo","natural","náusea","naval","nave","navidad","necio","néctar","negar","negocio","negro","neón","nervio","neto","neutro","nevar","nevera","nicho","nido","niebla","nieto","niñez","niño","nítido","nivel","nobleza","noche","nómina","noria","norma","norte","nota","noticia","novato","novela","novio","nube","nuca","núcleo","nudillo","nudo","nuera","nueve","nuez","nulo","número","nutria","oasis","obeso","obispo","objeto","obra","obrero","observar","obtener","obvio","oca","ocaso","océano","ochenta","ocho","ocio","ocre","octavo","octubre","oculto","ocupar","ocurrir","odiar","odio","odisea","oeste","ofensa","oferta","oficio","ofrecer","ogro","oído","oír","ojo","ola","oleada","olfato","olivo","olla","olmo","olor","olvido","ombligo","onda","onza","opaco","opción","ópera","opinar","oponer","optar","óptica","opuesto","oración","orador","oral","órbita","orca","orden","oreja","órgano","orgía","orgullo","oriente","origen","orilla","oro","orquesta","oruga","osadía","oscuro","osezno","oso","ostra","otoño","otro","oveja","óvulo","óxido","oxígeno","oyente","ozono","pacto","padre","paella","página","pago","país","pájaro","palabra","palco","paleta","pálido","palma","paloma","palpar","pan","panal","pánico","pantera","pañuelo","papá","papel","papilla","paquete","parar","parcela","pared","parir","paro","párpado","parque","párrafo","parte","pasar","paseo","pasión","paso","pasta","pata","patio","patria","pausa","pauta","pavo","payaso","peatón","pecado","pecera","pecho","pedal","pedir","pegar","peine","pelar","peldaño","pelea","peligro","pellejo","pelo","peluca","pena","pensar","peñón","peón","peor","pepino","pequeño","pera","percha","perder","pereza","perfil","perico","perla","permiso","perro","persona","pesa","pesca","pésimo","pestaña","pétalo","petróleo","pez","pezuña","picar","pichón","pie","piedra","pierna","pieza","pijama","pilar","piloto","pimienta","pino","pintor","pinza","piña","piojo","pipa","pirata","pisar","piscina","piso","pista","pitón","pizca","placa","plan","plata","playa","plaza","pleito","pleno","plomo","pluma","plural","pobre","poco","poder","podio","poema","poesía","poeta","polen","policía","pollo","polvo","pomada","pomelo","pomo","pompa","poner","porción","portal","posada","poseer","posible","poste","potencia","potro","pozo","prado","precoz","pregunta","premio","prensa","preso","previo","primo","príncipe","prisión","privar","proa","probar","proceso","producto","proeza","profesor","programa","prole","promesa","pronto","propio","próximo","prueba","público","puchero","pudor","pueblo","puerta","puesto","pulga","pulir","pulmón","pulpo","pulso","puma","punto","puñal","puño","pupa","pupila","puré","quedar","queja","quemar","querer","queso","quieto","química","quince","quitar","rábano","rabia","rabo","ración","radical","raíz","rama","rampa","rancho","rango","rapaz","rápido","rapto","rasgo","raspa","rato","rayo","raza","razón","reacción","realidad","rebaño","rebote","recaer","receta","rechazo","recoger","recreo","recto","recurso","red","redondo","reducir","reflejo","reforma","refrán","refugio","regalo","regir","regla","regreso","rehén","reino","reír","reja","relato","relevo","relieve","relleno","reloj","remar","remedio","remo","rencor","rendir","renta","reparto","repetir","reposo","reptil","res","rescate","resina","respeto","resto","resumen","retiro","retorno","retrato","reunir","revés","revista","rey","rezar","rico","riego","rienda","riesgo","rifa","rígido","rigor","rincón","riñón","río","riqueza","risa","ritmo","rito","rizo","roble","roce","rociar","rodar","rodeo","rodilla","roer","rojizo","rojo","romero","romper","ron","ronco","ronda","ropa","ropero","rosa","rosca","rostro","rotar","rubí","rubor","rudo","rueda","rugir","ruido","ruina","ruleta","rulo","rumbo","rumor","ruptura","ruta","rutina","sábado","saber","sabio","sable","sacar","sagaz","sagrado","sala","saldo","salero","salir","salmón","salón","salsa","salto","salud","salvar","samba","sanción","sandía","sanear","sangre","sanidad","sano","santo","sapo","saque","sardina","sartén","sastre","satán","sauna","saxofón","sección","seco","secreto","secta","sed","seguir","seis","sello","selva","semana","semilla","senda","sensor","señal","señor","separar","sepia","sequía","ser","serie","sermón","servir","sesenta","sesión","seta","setenta","severo","sexo","sexto","sidra","siesta","siete","siglo","signo","sílaba","silbar","silencio","silla","símbolo","simio","sirena","sistema","sitio","situar","sobre","socio","sodio","sol","solapa","soldado","soledad","sólido","soltar","solución","sombra","sondeo","sonido","sonoro","sonrisa","sopa","soplar","soporte","sordo","sorpresa","sorteo","sostén","sótano","suave","subir","suceso","sudor","suegra","suelo","sueño","suerte","sufrir","sujeto","sultán","sumar","superar","suplir","suponer","supremo","sur","surco","sureño","surgir","susto","sutil","tabaco","tabique","tabla","tabú","taco","tacto","tajo","talar","talco","talento","talla","talón","tamaño","tambor","tango","tanque","tapa","tapete","tapia","tapón","taquilla","tarde","tarea","tarifa","tarjeta","tarot","tarro","tarta","tatuaje","tauro","taza","tazón","teatro","techo","tecla","técnica","tejado","tejer","tejido","tela","teléfono","tema","temor","templo","tenaz","tender","tener","tenis","tenso","teoría","terapia","terco","término","ternura","terror","tesis","tesoro","testigo","tetera","texto","tez","tibio","tiburón","tiempo","tienda","tierra","tieso","tigre","tijera","tilde","timbre","tímido","timo","tinta","tío","típico","tipo","tira","tirón","titán","títere","título","tiza","toalla","tobillo","tocar","tocino","todo","toga","toldo","tomar","tono","tonto","topar","tope","toque","tórax","torero","tormenta","torneo","toro","torpedo","torre","torso","tortuga","tos","tosco","toser","tóxico","trabajo","tractor","traer","tráfico","trago","traje","tramo","trance","trato","trauma","trazar","trébol","tregua","treinta","tren","trepar","tres","tribu","trigo","tripa","triste","triunfo","trofeo","trompa","tronco","tropa","trote","trozo","truco","trueno","trufa","tubería","tubo","tuerto","tumba","tumor","túnel","túnica","turbina","turismo","turno","tutor","ubicar","úlcera","umbral","unidad","unir","universo","uno","untar","uña","urbano","urbe","urgente","urna","usar","usuario","útil","utopía","uva","vaca","vacío","vacuna","vagar","vago","vaina","vajilla","vale","válido","valle","valor","válvula","vampiro","vara","variar","varón","vaso","vecino","vector","vehículo","veinte","vejez","vela","velero","veloz","vena","vencer","venda","veneno","vengar","venir","venta","venus","ver","verano","verbo","verde","vereda","verja","verso","verter","vía","viaje","vibrar","vicio","víctima","vida","vídeo","vidrio","viejo","viernes","vigor","vil","villa","vinagre","vino","viñedo","violín","viral","virgo","virtud","visor","víspera","vista","vitamina","viudo","vivaz","vivero","vivir","vivo","volcán","volumen","volver","voraz","votar","voto","voz","vuelo","vulgar","yacer","yate","yegua","yema","yerno","yeso","yodo","yoga","yogur","zafiro","zanja","zapato","zarza","zona","zorro","zumo","zurdo"]')}},t={};function r(a){var o=t[a];if(void 0!==o)return o.exports;var n=t[a]={id:a,loaded:!1,exports:{}};return e[a].call(n.exports,n,n.exports,r),n.loaded=!0,n.exports}return r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),r(8156)})()));
|
|
66
|
+
*/const n=Symbol.prototype.valueOf,a=r(6948);e.exports=function(e,t){switch(a(e)){case"array":return e.slice();case"object":return Object.assign({},e);case"date":return new e.constructor(Number(e));case"map":return new Map(e);case"set":return new Set(e);case"buffer":return function(e){const t=e.length,r=o.allocUnsafe?o.allocUnsafe(t):o.from(t);return e.copy(r),r}(e);case"symbol":return function(e){return n?Object(n.call(e)):{}}(e);case"arraybuffer":return function(e){const t=new e.constructor(e.byteLength);return new Uint8Array(t).set(new Uint8Array(e)),t}(e);case"float32array":case"float64array":case"int16array":case"int32array":case"int8array":case"uint16array":case"uint32array":case"uint8clampedarray":case"uint8array":return function(e){return new e.constructor(e.buffer,e.byteOffset,e.length)}(e);case"regexp":return function(e){const t=void 0!==e.flags?e.flags:/\w+$/.exec(e)||void 0,r=new e.constructor(e.source,t);return r.lastIndex=e.lastIndex,r}(e);case"error":return Object.create(e);default:return e}}},8283:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.recoverAddress=t.computeAddress=void 0;const o=r(4815),n=r(7256);function a(e){let t;return t="string"==typeof e?n.SigningKey.computePublicKey(e,!1):e.publicKey,(0,o.getAddress)((0,n.keccak256)("0x"+t.substring(4)).substring(26))}t.computeAddress=a,t.recoverAddress=function(e,t){return a(n.SigningKey.recoverPublicKey(e,t))}},8352:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hash_to_ristretto255=t.hashToRistretto255=t.RistrettoPoint=t.encodeToCurve=t.hashToCurve=t.ed25519_hasher=t.edwardsToMontgomery=t.x25519=t.ed25519ph=t.ed25519ctx=t.ed25519=t.ED25519_TORSION_SUBGROUP=void 0,t.edwardsToMontgomeryPub=k,t.edwardsToMontgomeryPriv=function(e){const t=x.hash(e.subarray(0,32));return x.adjustScalarBytes(t).subarray(0,32)};
|
|
67
|
+
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
68
|
+
const o=r(9741),n=r(4904),a=r(831),i=r(7520),s=r(9924),c=r(6630),l=r(4873),u=r(5565),f=BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949"),d=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752"),h=BigInt(0),p=BigInt(1),g=BigInt(2),m=BigInt(3),b=BigInt(5),y=BigInt(8);function v(e){const t=BigInt(10),r=BigInt(20),o=BigInt(40),n=BigInt(80),a=f,i=e*e%a*e%a,s=(0,c.pow2)(i,g,a)*i%a,l=(0,c.pow2)(s,p,a)*e%a,u=(0,c.pow2)(l,b,a)*l%a,d=(0,c.pow2)(u,t,a)*u%a,h=(0,c.pow2)(d,r,a)*d%a,m=(0,c.pow2)(h,o,a)*h%a,y=(0,c.pow2)(m,n,a)*m%a,v=(0,c.pow2)(y,n,a)*m%a,w=(0,c.pow2)(v,t,a)*u%a;return{pow_p_5_8:(0,c.pow2)(w,g,a)*e%a,b2:i}}function w(e){return e[0]&=248,e[31]&=127,e[31]|=64,e}function E(e,t){const r=f,o=(0,c.mod)(t*t*t,r),n=v(e*(0,c.mod)(o*o*t,r)).pow_p_5_8;let a=(0,c.mod)(e*o*n,r);const i=(0,c.mod)(t*a*a,r),s=a,l=(0,c.mod)(a*d,r),u=i===e,h=i===(0,c.mod)(-e,r),p=i===(0,c.mod)(-e*d,r);return u&&(a=s),(h||p)&&(a=l),(0,c.isNegativeLE)(a,r)&&(a=(0,c.mod)(-a,r)),{isValid:u||h,value:a}}t.ED25519_TORSION_SUBGROUP=["0100000000000000000000000000000000000000000000000000000000000000","c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac037a","0000000000000000000000000000000000000000000000000000000000000080","26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc05","ecffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7f","26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc85","0000000000000000000000000000000000000000000000000000000000000000","c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac03fa"];const B=(()=>(0,c.Field)(f,void 0,!0))(),x=(()=>({a:B.create(BigInt(-1)),d:BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"),Fp:B,n:BigInt("7237005577332262213973186563042994240857116359379907606001950938285454250989"),h:y,Gx:BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"),Gy:BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960"),hash:o.sha512,randomBytes:n.randomBytes,adjustScalarBytes:w,uvRatio:E}))();function A(e,t,r){if(t.length>255)throw new Error("Context is too big");return(0,n.concatBytes)((0,n.utf8ToBytes)("SigEd25519 no Ed25519 collisions"),new Uint8Array([r?1:0,t.length]),t,e)}function k(e){const{y:r}=t.ed25519.ExtendedPoint.fromHex(e),o=BigInt(1);return B.toBytes(B.create((o+r)*B.inv(o-r)))}t.ed25519=(0,i.twistedEdwards)(x),t.ed25519ctx=(0,i.twistedEdwards)({...x,domain:A}),t.ed25519ph=(0,i.twistedEdwards)(Object.assign({},x,{domain:A,prehash:o.sha512})),t.x25519=(0,l.montgomery)({P:f,a:BigInt(486662),montgomeryBits:255,nByteLength:32,Gu:BigInt(9),powPminus2:e=>{const t=f,{pow_p_5_8:r,b2:o}=v(e);return(0,c.mod)((0,c.pow2)(r,m,t)*o,t)},adjustScalarBytes:w,randomBytes:n.randomBytes}),t.edwardsToMontgomery=k;const S=(()=>(B.ORDER+m)/y)(),C=(()=>B.pow(g,S))(),T=(()=>B.sqrt(B.neg(B.ONE)))();const P=(()=>(0,c.FpSqrtEven)(B,B.neg(BigInt(486664))))();function O(e){const{xMn:t,xMd:r,yMn:o,yMd:n}=function(e){const t=(B.ORDER-b)/y,r=BigInt(486662);let o=B.sqr(e);o=B.mul(o,g);let n=B.add(o,B.ONE),a=B.neg(r),i=B.sqr(n),s=B.mul(i,n),c=B.mul(o,r);c=B.mul(c,a),c=B.add(c,i),c=B.mul(c,a);let l=B.sqr(s);i=B.sqr(l),l=B.mul(l,s),l=B.mul(l,c),i=B.mul(i,l);let u=B.pow(i,t);u=B.mul(u,l);let f=B.mul(u,T);i=B.sqr(u),i=B.mul(i,s);let d=B.eql(i,c),h=B.cmov(f,u,d),m=B.mul(a,o),v=B.mul(u,e);v=B.mul(v,C);let w=B.mul(v,T),E=B.mul(c,o);i=B.sqr(v),i=B.mul(i,s);let x=B.eql(i,E),A=B.cmov(w,v,x);i=B.sqr(h),i=B.mul(i,s);let k=B.eql(i,c),S=B.cmov(m,a,k),P=B.cmov(A,h,k),O=B.isOdd(P);return P=B.cmov(P,B.neg(P),k!==O),{xMn:S,xMd:n,yMn:P,yMd:p}}(e);let a=B.mul(t,n);a=B.mul(a,P);let i=B.mul(r,o),s=B.sub(t,r),l=B.add(t,r),u=B.mul(i,l),f=B.eql(u,B.ZERO);a=B.cmov(a,B.ZERO,f),i=B.cmov(i,B.ONE,f),s=B.cmov(s,B.ONE,f),l=B.cmov(l,B.ONE,f);const[d,h]=(0,c.FpInvertBatch)(B,[i,l],!0);return{x:B.mul(a,d),y:B.mul(s,h)}}function I(e){if(!(e instanceof D))throw new Error("RistrettoPoint expected")}t.ed25519_hasher=(0,s.createHasher)(t.ed25519.ExtendedPoint,e=>O(e[0]),{DST:"edwards25519_XMD:SHA-512_ELL2_RO_",encodeDST:"edwards25519_XMD:SHA-512_ELL2_NU_",p:B.ORDER,m:1,k:128,expand:"xmd",hash:o.sha512}),t.hashToCurve=t.ed25519_hasher.hashToCurve,t.encodeToCurve=t.ed25519_hasher.encodeToCurve;const z=d,L=BigInt("25063068953384623474111414158702152701244531502492656460079210482610430750235"),R=BigInt("54469307008909316920995813868745141605393597292927456921205312896311721017578"),N=BigInt("1159843021668779879193775521855586647937357759715417654439879720876111806838"),_=BigInt("40440834346308536858101042469323190826248399146238708352240133220865137265952"),j=e=>E(p,e),U=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),H=e=>t.ed25519.CURVE.Fp.create((0,u.bytesToNumberLE)(e)&U);function M(e){const{d:r}=t.ed25519.CURVE,o=t.ed25519.CURVE.Fp.ORDER,n=t.ed25519.CURVE.Fp.create,a=n(z*e*e),i=n((a+p)*N);let s=BigInt(-1);const l=n((s-r*a)*n(a+r));let{isValid:u,value:f}=E(i,l),d=n(f*e);(0,c.isNegativeLE)(d,o)||(d=n(-d)),u||(f=d),u||(s=a);const h=n(s*(a-p)*_-l),g=f*f,m=n((f+f)*l),b=n(h*L),y=n(p-g),v=n(p+g);return new t.ed25519.ExtendedPoint(n(m*v),n(y*b),n(b*v),n(m*y))}class D{constructor(e){this.ep=e}static fromAffine(e){return new D(t.ed25519.ExtendedPoint.fromAffine(e))}static hashToCurve(e){e=(0,u.ensureBytes)("ristrettoHash",e,64);const t=M(H(e.slice(0,32))),r=M(H(e.slice(32,64)));return new D(t.add(r))}static fromHex(e){e=(0,u.ensureBytes)("ristrettoHex",e,32);const{a:r,d:o}=t.ed25519.CURVE,n=t.ed25519.CURVE.Fp.ORDER,a=t.ed25519.CURVE.Fp.create,i="RistrettoPoint.fromHex: the hex is not valid encoding of RistrettoPoint",s=H(e);if(!(0,u.equalBytes)((0,u.numberToBytesLE)(s,32),e)||(0,c.isNegativeLE)(s,n))throw new Error(i);const l=a(s*s),f=a(p+r*l),d=a(p-r*l),g=a(f*f),m=a(d*d),b=a(r*o*g-m),{isValid:y,value:v}=j(a(b*m)),w=a(v*d),E=a(v*w*b);let B=a((s+s)*w);(0,c.isNegativeLE)(B,n)&&(B=a(-B));const x=a(f*E),A=a(B*x);if(!y||(0,c.isNegativeLE)(A,n)||x===h)throw new Error(i);return new D(new t.ed25519.ExtendedPoint(B,x,p,A))}static msm(e,r){const o=(0,c.Field)(t.ed25519.CURVE.n,t.ed25519.CURVE.nBitLength);return(0,a.pippenger)(D,o,e,r)}toRawBytes(){let{ex:e,ey:r,ez:o,et:n}=this.ep;const a=t.ed25519.CURVE.Fp.ORDER,i=t.ed25519.CURVE.Fp.create,s=i(i(o+r)*i(o-r)),l=i(e*r),f=i(l*l),{value:d}=j(i(s*f)),h=i(d*s),p=i(d*l),g=i(h*p*n);let m;if((0,c.isNegativeLE)(n*g,a)){let t=i(r*z),o=i(e*z);e=t,r=o,m=i(h*R)}else m=p;(0,c.isNegativeLE)(e*g,a)&&(r=i(-r));let b=i((o-r)*m);return(0,c.isNegativeLE)(b,a)&&(b=i(-b)),(0,u.numberToBytesLE)(b,32)}toHex(){return(0,u.bytesToHex)(this.toRawBytes())}toString(){return this.toHex()}equals(e){I(e);const{ex:r,ey:o}=this.ep,{ex:n,ey:a}=e.ep,i=t.ed25519.CURVE.Fp.create,s=i(r*a)===i(o*n),c=i(o*a)===i(r*n);return s||c}add(e){return I(e),new D(this.ep.add(e.ep))}subtract(e){return I(e),new D(this.ep.subtract(e.ep))}multiply(e){return new D(this.ep.multiply(e))}multiplyUnsafe(e){return new D(this.ep.multiplyUnsafe(e))}double(){return new D(this.ep.double())}negate(){return new D(this.ep.negate())}}t.RistrettoPoint=(D.BASE||(D.BASE=new D(t.ed25519.ExtendedPoint.BASE)),D.ZERO||(D.ZERO=new D(t.ed25519.ExtendedPoint.ZERO)),D);t.hashToRistretto255=(e,t)=>{const r=t.DST,a="string"==typeof r?(0,n.utf8ToBytes)(r):r,i=(0,s.expand_message_xmd)(e,a,64,o.sha512);return D.hashToCurve(i)},t.hash_to_ristretto255=t.hashToRistretto255},8460:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateObject=t.createHmacDrbg=t.bitMask=t.bitSet=t.bitGet=t.bitLen=t.utf8ToBytes=t.equalBytes=t.concatBytes=t.ensureBytes=t.numberToVarBytesBE=t.numberToBytesLE=t.numberToBytesBE=t.bytesToNumberLE=t.bytesToNumberBE=t.hexToBytes=t.hexToNumber=t.numberToHexUnpadded=t.bytesToHex=void 0;
|
|
69
|
+
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
70
|
+
const r=BigInt(0),o=BigInt(1),n=BigInt(2),a=e=>e instanceof Uint8Array,i=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function s(e){if(!a(e))throw new Error("Uint8Array expected");let t="";for(let r=0;r<e.length;r++)t+=i[e[r]];return t}function c(e){const t=e.toString(16);return 1&t.length?`0${t}`:t}function l(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);return BigInt(""===e?"0":`0x${e}`)}function u(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);const t=e.length;if(t%2)throw new Error("padded hex string expected, got unpadded hex of length "+t);const r=new Uint8Array(t/2);for(let t=0;t<r.length;t++){const o=2*t,n=e.slice(o,o+2),a=Number.parseInt(n,16);if(Number.isNaN(a)||a<0)throw new Error("Invalid byte sequence");r[t]=a}return r}function f(e,t){return u(e.toString(16).padStart(2*t,"0"))}function d(...e){const t=new Uint8Array(e.reduce((e,t)=>e+t.length,0));let r=0;return e.forEach(e=>{if(!a(e))throw new Error("Uint8Array expected");t.set(e,r),r+=e.length}),t}t.bytesToHex=s,t.numberToHexUnpadded=c,t.hexToNumber=l,t.hexToBytes=u,t.bytesToNumberBE=function(e){return l(s(e))},t.bytesToNumberLE=function(e){if(!a(e))throw new Error("Uint8Array expected");return l(s(Uint8Array.from(e).reverse()))},t.numberToBytesBE=f,t.numberToBytesLE=function(e,t){return f(e,t).reverse()},t.numberToVarBytesBE=function(e){return u(c(e))},t.ensureBytes=function(e,t,r){let o;if("string"==typeof t)try{o=u(t)}catch(r){throw new Error(`${e} must be valid hex string, got "${t}". Cause: ${r}`)}else{if(!a(t))throw new Error(`${e} must be hex string or Uint8Array`);o=Uint8Array.from(t)}const n=o.length;if("number"==typeof r&&n!==r)throw new Error(`${e} expected ${r} bytes, got ${n}`);return o},t.concatBytes=d,t.equalBytes=function(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0},t.utf8ToBytes=function(e){if("string"!=typeof e)throw new Error("utf8ToBytes expected string, got "+typeof e);return new Uint8Array((new TextEncoder).encode(e))},t.bitLen=function(e){let t;for(t=0;e>r;e>>=o,t+=1);return t},t.bitGet=function(e,t){return e>>BigInt(t)&o};t.bitSet=(e,t,n)=>e|(n?o:r)<<BigInt(t);t.bitMask=e=>(n<<BigInt(e-1))-o;const h=e=>new Uint8Array(e),p=e=>Uint8Array.from(e);t.createHmacDrbg=function(e,t,r){if("number"!=typeof e||e<2)throw new Error("hashLen must be a number");if("number"!=typeof t||t<2)throw new Error("qByteLen must be a number");if("function"!=typeof r)throw new Error("hmacFn must be a function");let o=h(e),n=h(e),a=0;const i=()=>{o.fill(1),n.fill(0),a=0},s=(...e)=>r(n,o,...e),c=(e=h())=>{n=s(p([0]),e),o=s(),0!==e.length&&(n=s(p([1]),e),o=s())},l=()=>{if(a++>=1e3)throw new Error("drbg: tried 1000 values");let e=0;const r=[];for(;e<t;){o=s();const t=o.slice();r.push(t),e+=o.length}return d(...r)};return(e,t)=>{let r;for(i(),c(e);!(r=t(l()));)c();return i(),r}};const g={bigint:e=>"bigint"==typeof e,function:e=>"function"==typeof e,boolean:e=>"boolean"==typeof e,string:e=>"string"==typeof e,stringOrUint8Array:e=>"string"==typeof e||e instanceof Uint8Array,isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"==typeof e&&Number.isSafeInteger(e.outputLen)};t.validateObject=function(e,t,r={}){const o=(t,r,o)=>{const n=g[r];if("function"!=typeof n)throw new Error(`Invalid validator "${r}", expected function`);const a=e[t];if(!(o&&void 0===a||n(a,e)))throw new Error(`Invalid param ${String(t)}=${a} (${typeof a}), expected ${r}`)};for(const[e,r]of Object.entries(t))o(e,r,!1);for(const[e,t]of Object.entries(r))o(e,t,!0);return e}},8478:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FetchResponse=t.FetchRequest=t.FetchCancelSignal=void 0;const o=r(6930),n=r(8256),a=r(7991),i=r(5213),s=r(347),c=r(2600);let l=(0,c.createGetUrl)();const u=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),f=new RegExp("^ipfs://(ipfs/)?(.*)$","i");let d=!1;async function h(e,t){try{const t=e.match(u);if(!t)throw new Error("invalid data");return new w(200,"OK",{"content-type":t[1]||"text/plain"},t[2]?(0,o.decodeBase64)(t[3]):(r=t[3],(0,s.toUtf8Bytes)(r.replace(/%([0-9a-f][0-9a-f])/gi,(e,t)=>String.fromCharCode(parseInt(t,16))))))}catch(t){return new w(599,"BAD REQUEST (invalid data: URI)",{},null,new v(e))}var r}function p(e){return async function(t,r){try{const r=t.match(f);if(!r)throw new Error("invalid link");return new v(`${e}${r[2]}`)}catch(e){return new w(599,"BAD REQUEST (invalid IPFS URI)",{},null,new v(t))}}}const g={data:h,ipfs:p("https://gateway.ipfs.io/ipfs/")},m=new WeakMap;class b{#k;#S;constructor(e){this.#k=[],this.#S=!1,m.set(e,()=>{if(!this.#S){this.#S=!0;for(const e of this.#k)setTimeout(()=>{e()},0);this.#k=[]}})}addListener(e){(0,a.assert)(!this.#S,"singal already cancelled","UNSUPPORTED_OPERATION",{operation:"fetchCancelSignal.addCancelListener"}),this.#k.push(e)}get cancelled(){return this.#S}checkSignal(){(0,a.assert)(!this.cancelled,"cancelled","CANCELLED",{})}}function y(e){if(null==e)throw new Error("missing signal; should not happen");return e.checkSignal(),e}t.FetchCancelSignal=b;class v{#C;#T;#P;#O;#I;#z;#L;#R;#N;#_;#j;#U;#H;#M;#D;get url(){return this.#z}set url(e){this.#z=String(e)}get body(){return null==this.#L?null:new Uint8Array(this.#L)}set body(e){if(null==e)this.#L=void 0,this.#R=void 0;else if("string"==typeof e)this.#L=(0,s.toUtf8Bytes)(e),this.#R="text/plain";else if(e instanceof Uint8Array)this.#L=e,this.#R="application/octet-stream";else{if("object"!=typeof e)throw new Error("invalid body");this.#L=(0,s.toUtf8Bytes)(JSON.stringify(e)),this.#R="application/json"}}hasBody(){return null!=this.#L}get method(){return this.#O?this.#O:this.hasBody()?"POST":"GET"}set method(e){null==e&&(e=""),this.#O=String(e).toUpperCase()}get headers(){const e=Object.assign({},this.#P);return this.#N&&(e.authorization=`Basic ${(0,o.encodeBase64)((0,s.toUtf8Bytes)(this.#N))}`),this.allowGzip&&(e["accept-encoding"]="gzip"),null==e["content-type"]&&this.#R&&(e["content-type"]=this.#R),this.body&&(e["content-length"]=String(this.body.length)),e}getHeader(e){return this.headers[e.toLowerCase()]}setHeader(e,t){this.#P[String(e).toLowerCase()]=String(t)}clearHeaders(){this.#P={}}[Symbol.iterator](){const e=this.headers,t=Object.keys(e);let r=0;return{next:()=>{if(r<t.length){const o=t[r++];return{value:[o,e[o]],done:!1}}return{value:void 0,done:!0}}}}get credentials(){return this.#N||null}setCredentials(e,t){(0,a.assertArgument)(!e.match(/:/),"invalid basic authentication username","username","[REDACTED]"),this.#N=`${e}:${t}`}get allowGzip(){return this.#T}set allowGzip(e){this.#T=!!e}get allowInsecureAuthentication(){return!!this.#C}set allowInsecureAuthentication(e){this.#C=!!e}get timeout(){return this.#I}set timeout(e){(0,a.assertArgument)(e>=0,"timeout must be non-zero","timeout",e),this.#I=e}get preflightFunc(){return this.#_||null}set preflightFunc(e){this.#_=e}get processFunc(){return this.#j||null}set processFunc(e){this.#j=e}get retryFunc(){return this.#U||null}set retryFunc(e){this.#U=e}get getUrlFunc(){return this.#D||l}set getUrlFunc(e){this.#D=e}constructor(e){this.#z=String(e),this.#C=!1,this.#T=!0,this.#P={},this.#O="",this.#I=3e5,this.#M={slotInterval:250,maxAttempts:12},this.#D=null}toString(){return`<FetchRequest method=${JSON.stringify(this.method)} url=${JSON.stringify(this.url)} headers=${JSON.stringify(this.headers)} body=${this.#L?(0,n.hexlify)(this.#L):"null"}>`}setThrottleParams(e){null!=e.slotInterval&&(this.#M.slotInterval=e.slotInterval),null!=e.maxAttempts&&(this.#M.maxAttempts=e.maxAttempts)}async#F(e,t,r,o,n){if(e>=this.#M.maxAttempts)return n.makeServerError("exceeded maximum retry limit");(0,a.assert)(E()<=t,"timeout","TIMEOUT",{operation:"request.send",reason:"timeout",request:o}),r>0&&await function(e){return new Promise(t=>setTimeout(t,e))}(r);let i=this.clone();const s=(i.url.split(":")[0]||"").toLowerCase();if(s in g){const e=await g[s](i.url,y(o.#H));if(e instanceof w){let t=e;if(this.processFunc){y(o.#H);try{t=await this.processFunc(i,t)}catch(e){null!=e.throttle&&"number"==typeof e.stall||t.makeServerError("error in post-processing function",e).assertOk()}}return t}i=e}this.preflightFunc&&(i=await this.preflightFunc(i));const c=await this.getUrlFunc(i,y(o.#H));let l=new w(c.statusCode,c.statusMessage,c.headers,c.body,o);if(301===l.statusCode||302===l.statusCode){try{const r=l.headers.location||"";return i.redirect(r).#F(e+1,t,0,o,l)}catch(e){}return l}if(429===l.statusCode&&(null==this.retryFunc||await this.retryFunc(i,l,e))){const r=l.headers["retry-after"];let n=this.#M.slotInterval*Math.trunc(Math.random()*Math.pow(2,e));return"string"==typeof r&&r.match(/^[1-9][0-9]*$/)&&(n=parseInt(r)),i.clone().#F(e+1,t,n,o,l)}if(this.processFunc){y(o.#H);try{l=await this.processFunc(i,l)}catch(r){null!=r.throttle&&"number"==typeof r.stall||l.makeServerError("error in post-processing function",r).assertOk();let n=this.#M.slotInterval*Math.trunc(Math.random()*Math.pow(2,e));return r.stall>=0&&(n=r.stall),i.clone().#F(e+1,t,n,o,l)}}return l}send(){return(0,a.assert)(null==this.#H,"request already sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.send"}),this.#H=new b(this),this.#F(0,E()+this.timeout,0,this,new w(0,"",{},null,this))}cancel(){(0,a.assert)(null!=this.#H,"request has not been sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.cancel"});const e=m.get(this);if(!e)throw new Error("missing signal; should not happen");e()}redirect(e){const t=this.url.split(":")[0].toLowerCase(),r=e.split(":")[0].toLowerCase();(0,a.assert)("GET"===this.method&&("https"!==t||"http"!==r)&&e.match(/^https?:/),"unsupported redirect","UNSUPPORTED_OPERATION",{operation:`redirect(${this.method} ${JSON.stringify(this.url)} => ${JSON.stringify(e)})`});const o=new v(e);return o.method="GET",o.allowGzip=this.allowGzip,o.timeout=this.timeout,o.#P=Object.assign({},this.#P),this.#L&&(o.#L=new Uint8Array(this.#L)),o.#R=this.#R,o}clone(){const e=new v(this.url);return e.#O=this.#O,this.#L&&(e.#L=this.#L),e.#R=this.#R,e.#P=Object.assign({},this.#P),e.#N=this.#N,this.allowGzip&&(e.allowGzip=!0),e.timeout=this.timeout,this.allowInsecureAuthentication&&(e.allowInsecureAuthentication=!0),e.#_=this.#_,e.#j=this.#j,e.#U=this.#U,e.#M=Object.assign({},this.#M),e.#D=this.#D,e}static lockConfig(){d=!0}static getGateway(e){return g[e.toLowerCase()]||null}static registerGateway(e,t){if("http"===(e=e.toLowerCase())||"https"===e)throw new Error(`cannot intercept ${e}; use registerGetUrl`);if(d)throw new Error("gateways locked");g[e]=t}static registerGetUrl(e){if(d)throw new Error("gateways locked");l=e}static createGetUrlFunc(e){return(0,c.createGetUrl)(e)}static createDataGateway(){return h}static createIpfsGatewayFunc(e){return p(e)}}t.FetchRequest=v;class w{#K;#V;#P;#L;#q;#G;toString(){return`<FetchResponse status=${this.statusCode} body=${this.#L?(0,n.hexlify)(this.#L):"null"}>`}get statusCode(){return this.#K}get statusMessage(){return this.#V}get headers(){return Object.assign({},this.#P)}get body(){return null==this.#L?null:new Uint8Array(this.#L)}get bodyText(){try{return null==this.#L?"":(0,s.toUtf8String)(this.#L)}catch(e){(0,a.assert)(!1,"response body is not valid UTF-8 data","UNSUPPORTED_OPERATION",{operation:"bodyText",info:{response:this}})}}get bodyJson(){try{return JSON.parse(this.bodyText)}catch(e){(0,a.assert)(!1,"response body is not valid JSON","UNSUPPORTED_OPERATION",{operation:"bodyJson",info:{response:this}})}}[Symbol.iterator](){const e=this.headers,t=Object.keys(e);let r=0;return{next:()=>{if(r<t.length){const o=t[r++];return{value:[o,e[o]],done:!1}}return{value:void 0,done:!0}}}}constructor(e,t,r,o,n){this.#K=e,this.#V=t,this.#P=Object.keys(r).reduce((e,t)=>(e[t.toLowerCase()]=String(r[t]),e),{}),this.#L=null==o?null:new Uint8Array(o),this.#q=n||null,this.#G={message:""}}makeServerError(e,t){let r;r=e?`CLIENT ESCALATED SERVER ERROR (${this.statusCode} ${this.statusMessage}; ${e})`:`CLIENT ESCALATED SERVER ERROR (${e=`${this.statusCode} ${this.statusMessage}`})`;const o=new w(599,r,this.headers,this.body,this.#q||void 0);return o.#G={message:e,error:t},o}throwThrottleError(e,t){null==t?t=-1:(0,a.assertArgument)(Number.isInteger(t)&&t>=0,"invalid stall timeout","stall",t);const r=new Error(e||"throttling requests");throw(0,i.defineProperties)(r,{stall:t,throttle:!0}),r}getHeader(e){return this.headers[e.toLowerCase()]}hasBody(){return null!=this.#L}get request(){return this.#q}ok(){return""===this.#G.message&&this.statusCode>=200&&this.statusCode<300}assertOk(){if(this.ok())return;let{message:e,error:t}=this.#G;""===e&&(e=`server response ${this.statusCode} ${this.statusMessage}`);let r=null;this.request&&(r=this.request.url);let o=null;try{this.#L&&(o=(0,s.toUtf8String)(this.#L))}catch(e){}(0,a.assert)(!1,e,"SERVER_ERROR",{request:this.request||"unknown request",response:this,error:t,info:{requestUrl:r,responseBody:o,responseStatus:`${this.statusCode} ${this.statusMessage}`}})}}function E(){return(new Date).getTime()}t.FetchResponse=w},8629:(e,t)=>{"use strict";function r(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}function o(e){if("boolean"!=typeof e)throw new Error(`Expected boolean, not ${e}`)}function n(e,...t){if(!(e instanceof Uint8Array))throw new Error("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw new Error(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}function a(e){if("function"!=typeof e||"function"!=typeof e.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");r(e.outputLen),r(e.blockLen)}function i(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function s(e,t){n(e);const r=t.outputLen;if(e.length<r)throw new Error(`digestInto() expects output buffer of length at least ${r}`)}Object.defineProperty(t,"__esModule",{value:!0}),t.output=t.exists=t.hash=t.bytes=t.bool=t.number=void 0,t.number=r,t.bool=o,t.bytes=n,t.hash=a,t.exists=i,t.output=s;const c={number:r,bool:o,bytes:n,hash:a,exists:i,output:s};t.default=c},8814:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scrypt=function(e,t,r){const{N:o,r:n,p:i,dkLen:u,blockSize32:f,V:d,B32:h,B:p,tmp:g,blockMixCb:m}=c(e,t,r);(0,a.swap32IfBE)(h);for(let e=0;e<i;e++){const t=f*e;for(let e=0;e<f;e++)d[e]=h[t+e];for(let e=0,t=0;e<o-1;e++)s(d,t,d,t+=f,n),m();s(d,(o-1)*f,h,t,n),m();for(let e=0;e<o;e++){const e=h[t+f-16]%o;for(let r=0;r<f;r++)g[r]=h[t+r]^d[e*f+r];s(g,0,h,t,n),m()}}return(0,a.swap32IfBE)(h),l(e,u,p,d,g)},t.scryptAsync=async function(e,t,r){const{N:o,r:n,p:i,dkLen:u,blockSize32:f,V:d,B32:h,B:p,tmp:g,blockMixCb:m,asyncTick:b}=c(e,t,r);(0,a.swap32IfBE)(h);for(let e=0;e<i;e++){const t=f*e;for(let e=0;e<f;e++)d[e]=h[t+e];let r=0;await(0,a.asyncLoop)(o-1,b,()=>{s(d,r,d,r+=f,n),m()}),s(d,(o-1)*f,h,t,n),m(),await(0,a.asyncLoop)(o,b,()=>{const e=h[t+f-16]%o;for(let r=0;r<f;r++)g[r]=h[t+r]^d[e*f+r];s(g,0,h,t,n),m()})}return(0,a.swap32IfBE)(h),l(e,u,p,d,g)};const o=r(592),n=r(9741),a=r(4904);function i(e,t,r,o,n,i){let s=e[t++]^r[o++],c=e[t++]^r[o++],l=e[t++]^r[o++],u=e[t++]^r[o++],f=e[t++]^r[o++],d=e[t++]^r[o++],h=e[t++]^r[o++],p=e[t++]^r[o++],g=e[t++]^r[o++],m=e[t++]^r[o++],b=e[t++]^r[o++],y=e[t++]^r[o++],v=e[t++]^r[o++],w=e[t++]^r[o++],E=e[t++]^r[o++],B=e[t++]^r[o++],x=s,A=c,k=l,S=u,C=f,T=d,P=h,O=p,I=g,z=m,L=b,R=y,N=v,_=w,j=E,U=B;for(let e=0;e<8;e+=2)C^=(0,a.rotl)(x+N|0,7),I^=(0,a.rotl)(C+x|0,9),N^=(0,a.rotl)(I+C|0,13),x^=(0,a.rotl)(N+I|0,18),z^=(0,a.rotl)(T+A|0,7),_^=(0,a.rotl)(z+T|0,9),A^=(0,a.rotl)(_+z|0,13),T^=(0,a.rotl)(A+_|0,18),j^=(0,a.rotl)(L+P|0,7),k^=(0,a.rotl)(j+L|0,9),P^=(0,a.rotl)(k+j|0,13),L^=(0,a.rotl)(P+k|0,18),S^=(0,a.rotl)(U+R|0,7),O^=(0,a.rotl)(S+U|0,9),R^=(0,a.rotl)(O+S|0,13),U^=(0,a.rotl)(R+O|0,18),A^=(0,a.rotl)(x+S|0,7),k^=(0,a.rotl)(A+x|0,9),S^=(0,a.rotl)(k+A|0,13),x^=(0,a.rotl)(S+k|0,18),P^=(0,a.rotl)(T+C|0,7),O^=(0,a.rotl)(P+T|0,9),C^=(0,a.rotl)(O+P|0,13),T^=(0,a.rotl)(C+O|0,18),R^=(0,a.rotl)(L+z|0,7),I^=(0,a.rotl)(R+L|0,9),z^=(0,a.rotl)(I+R|0,13),L^=(0,a.rotl)(z+I|0,18),N^=(0,a.rotl)(U+j|0,7),_^=(0,a.rotl)(N+U|0,9),j^=(0,a.rotl)(_+N|0,13),U^=(0,a.rotl)(j+_|0,18);n[i++]=s+x|0,n[i++]=c+A|0,n[i++]=l+k|0,n[i++]=u+S|0,n[i++]=f+C|0,n[i++]=d+T|0,n[i++]=h+P|0,n[i++]=p+O|0,n[i++]=g+I|0,n[i++]=m+z|0,n[i++]=b+L|0,n[i++]=y+R|0,n[i++]=v+N|0,n[i++]=w+_|0,n[i++]=E+j|0,n[i++]=B+U|0}function s(e,t,r,o,n){let a=o+0,s=o+16*n;for(let o=0;o<16;o++)r[s+o]=e[t+16*(2*n-1)+o];for(let o=0;o<n;o++,a+=16,t+=16)i(r,s,e,t,r,a),o>0&&(s+=16),i(r,a,e,t+=16,r,s)}function c(e,t,r){const i=(0,a.checkOpts)({dkLen:32,asyncTick:10,maxmem:1073742848},r),{N:s,r:c,p:l,dkLen:u,asyncTick:f,maxmem:d,onProgress:h}=i;if((0,a.anumber)(s),(0,a.anumber)(c),(0,a.anumber)(l),(0,a.anumber)(u),(0,a.anumber)(f),(0,a.anumber)(d),void 0!==h&&"function"!=typeof h)throw new Error("progressCb should be function");const p=128*c,g=p/4,m=Math.pow(2,32);if(s<=1||s&s-1||s>m)throw new Error("Scrypt: N must be larger than 1, a power of 2, and less than 2^32");if(l<0||l>32*(m-1)/p)throw new Error("Scrypt: p must be a positive integer less than or equal to ((2^32 - 1) * 32) / (128 * r)");if(u<0||u>32*(m-1))throw new Error("Scrypt: dkLen should be positive integer less than or equal to (2^32 - 1) * 32");if(p*(s+l)>d)throw new Error("Scrypt: memused is bigger than maxMem. Expected 128 * r * (N + p) > maxmem of "+d);const b=(0,o.pbkdf2)(n.sha256,e,t,{c:1,dkLen:p*l}),y=(0,a.u32)(b),v=(0,a.u32)(new Uint8Array(p*s)),w=(0,a.u32)(new Uint8Array(p));let E=()=>{};if(h){const e=2*s*l,t=Math.max(Math.floor(e/1e4),1);let r=0;E=()=>{r++,!h||r%t&&r!==e||h(r/e)}}return{N:s,r:c,p:l,dkLen:u,blockSize32:g,V:v,B32:y,B:b,tmp:w,blockMixCb:E,asyncTick:f}}function l(e,t,r,i,s){const c=(0,o.pbkdf2)(n.sha256,e,r,{c:1,dkLen:t});return(0,a.clean)(r,i,s),c}},9092:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ZeroHash=void 0,t.ZeroHash="0x0000000000000000000000000000000000000000000000000000000000000000"},9236:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ripemd160=void 0;const o=r(2710),n=r(1490);let a=!1;const i=function(e){return(0,o.ripemd160)(e)};let s=i;function c(e){const t=(0,n.getBytes)(e,"data");return(0,n.hexlify)(s(t))}t.ripemd160=c,c._=i,c.lock=function(){a=!0},c.register=function(e){if(a)throw new TypeError("ripemd160 is locked");s=e},Object.freeze(c)},9462:(e,t,r)=>{"use strict";var o=r(9922).hp;Object.defineProperty(t,"__esModule",{value:!0}),t.toBigInt=t.toBEArray=void 0;t.toBEArray=(e,t)=>{const r=e.toString(16),n=o.from(r.padStart(2*t,"0").slice(0,2*t),"hex");return Array.prototype.slice.call(n,0)};t.toBigInt=e=>{let t=BigInt(0);for(let r=0,o=e.length;r<o;r++)t|=BigInt(e[r])<<(BigInt(o)-BigInt(r)-BigInt(1))*BigInt(8);return t}},9493:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.accessListify=void 0;const o=r(4815),n=r(1490);function a(e,t){return{address:(0,o.getAddress)(e),storageKeys:t.map((e,t)=>((0,n.assertArgument)((0,n.isHexString)(e,32),"invalid slot",`storageKeys[${t}]`,e),e.toLowerCase()))}}t.accessListify=function(e){if(Array.isArray(e))return e.map((t,r)=>Array.isArray(t)?((0,n.assertArgument)(2===t.length,"invalid slot set",`value[${r}]`,t),a(t[0],t[1])):((0,n.assertArgument)(null!=t&&"object"==typeof t,"invalid address-slot set","value",e),a(t.address,t.storageKeys)));(0,n.assertArgument)(null!=e&&"object"==typeof e,"invalid access list","value",e);const t=Object.keys(e).map(t=>{const r=e[t].reduce((e,t)=>(e[t]=!0,e),{});return a(t,Object.keys(r).sort())});return t.sort((e,t)=>e.address.localeCompare(t.address)),t}},9593:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FixedNumber=void 0;const o=r(8256),n=r(7991),a=r(7597),i=r(5213),s=BigInt(-1),c=BigInt(0),l=BigInt(1),u=BigInt(5),f={};let d="0000";for(;d.length<80;)d+=d;function h(e){let t=d;for(;t.length<e;)t+=t;return BigInt("1"+t.substring(0,e))}function p(e,t,r){const o=BigInt(t.width);if(t.signed){const t=l<<o-l;(0,n.assert)(null==r||e>=-t&&e<t,"overflow","NUMERIC_FAULT",{operation:r,fault:"overflow",value:e}),e=e>c?(0,a.fromTwos)((0,a.mask)(e,o),o):-(0,a.fromTwos)((0,a.mask)(-e,o),o)}else{const t=l<<o;(0,n.assert)(null==r||e>=0&&e<t,"overflow","NUMERIC_FAULT",{operation:r,fault:"overflow",value:e}),e=(e%t+t)%t&t-l}return e}function g(e){"number"==typeof e&&(e=`fixed128x${e}`);let t=!0,r=128,o=18;if("string"==typeof e)if("fixed"===e);else if("ufixed"===e)t=!1;else{const a=e.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);(0,n.assertArgument)(a,"invalid fixed format","format",e),t="u"!==a[1],r=parseInt(a[2]),o=parseInt(a[3])}else if(e){const a=e,i=(e,t,r)=>null==a[e]?r:((0,n.assertArgument)(typeof a[e]===t,"invalid fixed format ("+e+" not "+t+")","format."+e,a[e]),a[e]);t=i("signed","boolean",t),r=i("width","number",r),o=i("decimals","number",o)}(0,n.assertArgument)(r%8==0,"invalid FixedNumber width (not byte aligned)","format.width",r),(0,n.assertArgument)(o<=80,"invalid FixedNumber decimals (too large)","format.decimals",o);return{signed:t,width:r,decimals:o,name:(t?"":"u")+"fixed"+String(r)+"x"+String(o)}}class m{format;#W;#X;#Z;_value;constructor(e,t,r){(0,n.assertPrivate)(e,f,"FixedNumber"),this.#X=t,this.#W=r;const o=function(e,t){let r="";e<c&&(r="-",e*=s);let o=e.toString();if(0===t)return r+o;for(;o.length<=t;)o=d+o;const n=o.length-t;for(o=o.substring(0,n)+"."+o.substring(n);"0"===o[0]&&"."!==o[1];)o=o.substring(1);for(;"0"===o[o.length-1]&&"."!==o[o.length-2];)o=o.substring(0,o.length-1);return r+o}(t,r.decimals);(0,i.defineProperties)(this,{format:r.name,_value:o}),this.#Z=h(r.decimals)}get signed(){return this.#W.signed}get width(){return this.#W.width}get decimals(){return this.#W.decimals}get value(){return this.#X}#$(e){(0,n.assertArgument)(this.format===e.format,"incompatible format; use fixedNumber.toFormat","other",e)}#Y(e,t){return e=p(e,this.#W,t),new m(f,e,this.#W)}#J(e,t){return this.#$(e),this.#Y(this.#X+e.#X,t)}addUnsafe(e){return this.#J(e)}add(e){return this.#J(e,"add")}#Q(e,t){return this.#$(e),this.#Y(this.#X-e.#X,t)}subUnsafe(e){return this.#Q(e)}sub(e){return this.#Q(e,"sub")}#ee(e,t){return this.#$(e),this.#Y(this.#X*e.#X/this.#Z,t)}mulUnsafe(e){return this.#ee(e)}mul(e){return this.#ee(e,"mul")}mulSignal(e){this.#$(e);const t=this.#X*e.#X;return(0,n.assert)(t%this.#Z===c,"precision lost during signalling mul","NUMERIC_FAULT",{operation:"mulSignal",fault:"underflow",value:this}),this.#Y(t/this.#Z,"mulSignal")}#te(e,t){return(0,n.assert)(e.#X!==c,"division by zero","NUMERIC_FAULT",{operation:"div",fault:"divide-by-zero",value:this}),this.#$(e),this.#Y(this.#X*this.#Z/e.#X,t)}divUnsafe(e){return this.#te(e)}div(e){return this.#te(e,"div")}divSignal(e){(0,n.assert)(e.#X!==c,"division by zero","NUMERIC_FAULT",{operation:"div",fault:"divide-by-zero",value:this}),this.#$(e);const t=this.#X*this.#Z;return(0,n.assert)(t%e.#X===c,"precision lost during signalling div","NUMERIC_FAULT",{operation:"divSignal",fault:"underflow",value:this}),this.#Y(t/e.#X,"divSignal")}cmp(e){let t=this.value,r=e.value;const o=this.decimals-e.decimals;return o>0?r*=h(o):o<0&&(t*=h(-o)),t<r?-1:t>r?1:0}eq(e){return 0===this.cmp(e)}lt(e){return this.cmp(e)<0}lte(e){return this.cmp(e)<=0}gt(e){return this.cmp(e)>0}gte(e){return this.cmp(e)>=0}floor(){let e=this.#X;return this.#X<c&&(e-=this.#Z-l),e=this.#X/this.#Z*this.#Z,this.#Y(e,"floor")}ceiling(){let e=this.#X;return this.#X>c&&(e+=this.#Z-l),e=this.#X/this.#Z*this.#Z,this.#Y(e,"ceiling")}round(e){if(null==e&&(e=0),e>=this.decimals)return this;const t=this.decimals-e,r=u*h(t-1);let o=this.value+r;const n=h(t);return o=o/n*n,p(o,this.#W,"round"),new m(f,o,this.#W)}isZero(){return this.#X===c}isNegative(){return this.#X<c}toString(){return this._value}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(e){return m.fromString(this.toString(),e)}static fromValue(e,t,r){const o=null==t?0:(0,a.getNumber)(t),i=g(r);let s=(0,a.getBigInt)(e,"value");const l=o-i.decimals;if(l>0){const t=h(l);(0,n.assert)(s%t===c,"value loses precision for format","NUMERIC_FAULT",{operation:"fromValue",fault:"underflow",value:e}),s/=t}else l<0&&(s*=h(-l));return p(s,i,"fromValue"),new m(f,s,i)}static fromString(e,t){const r=e.match(/^(-?)([0-9]*)\.?([0-9]*)$/);(0,n.assertArgument)(r&&r[2].length+r[3].length>0,"invalid FixedNumber string value","value",e);const o=g(t);let a=r[2]||"0",i=r[3]||"";for(;i.length<o.decimals;)i+=d;(0,n.assert)(i.substring(o.decimals).match(/^0*$/),"too many decimals for format","NUMERIC_FAULT",{operation:"fromString",fault:"underflow",value:e}),i=i.substring(0,o.decimals);const s=BigInt(r[1]+a+i);return p(s,o,"fromString"),new m(f,s,o)}static fromBytes(e,t){let r=(0,a.toBigInt)((0,o.getBytes)(e,"value"));const n=g(t);return n.signed&&(r=(0,a.fromTwos)(r,n.width)),p(r,n,"fromBytes"),new m(f,r,n)}}t.FixedNumber=m},9637:e=>{"use strict";e.exports=function(e){if(e.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),r=0;r<t.length;r++)t[r]=255;for(var o=0;o<e.length;o++){var n=e.charAt(o),a=n.charCodeAt(0);if(255!==t[a])throw new TypeError(n+" is ambiguous");t[a]=o}var i=e.length,s=e.charAt(0),c=Math.log(i)/Math.log(256),l=Math.log(256)/Math.log(i);function u(e){if("string"!=typeof e)throw new TypeError("Expected String");if(0===e.length)return new Uint8Array;for(var r=0,o=0,n=0;e[r]===s;)o++,r++;for(var a=(e.length-r)*c+1>>>0,l=new Uint8Array(a);e[r];){var u=e.charCodeAt(r);if(u>255)return;var f=t[u];if(255===f)return;for(var d=0,h=a-1;(0!==f||d<n)&&-1!==h;h--,d++)f+=i*l[h]>>>0,l[h]=f%256>>>0,f=f/256>>>0;if(0!==f)throw new Error("Non-zero carry");n=d,r++}for(var p=a-n;p!==a&&0===l[p];)p++;for(var g=new Uint8Array(o+(a-p)),m=o;p!==a;)g[m++]=l[p++];return g}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(0===t.length)return"";for(var r=0,o=0,n=0,a=t.length;n!==a&&0===t[n];)n++,r++;for(var c=(a-n)*l+1>>>0,u=new Uint8Array(c);n!==a;){for(var f=t[n],d=0,h=c-1;(0!==f||d<o)&&-1!==h;h--,d++)f+=256*u[h]>>>0,u[h]=f%i>>>0,f=f/i>>>0;if(0!==f)throw new Error("Non-zero carry");o=d,n++}for(var p=c-o;p!==c&&0===u[p];)p++;for(var g=s.repeat(r);p<c;++p)g+=e.charAt(u[p]);return g},decodeUnsafe:u,decode:function(e){var t=u(e);if(t)return t;throw new Error("Non-base"+i+" character")}}}},9660:(e,t)=>{"use strict";function r(e){return e>="A"&&e<="F"||e>="a"&&e<="f"||e>="0"&&e<="9"?1:0}function o(e){let t;if(e>="A"&&e<="F"?t=e.charCodeAt(0)-"A".charCodeAt(0)+10:e>="a"&&e<="f"?t=e.charCodeAt(0)-"a".charCodeAt(0)+10:e>="0"&&e<="9"&&(t=e.charCodeAt(0)-"0".charCodeAt(0)),"number"==typeof t)return t;throw new Error("The passed hex char is not a valid hex char")}Object.defineProperty(t,"__esModule",{value:!0}),t.isHexChar=r,t.hexChar2byte=o,t.hexStr2byteArray=function(e,t=!1){if("string"!=typeof e)throw new Error("The passed string is not a string");let n=e.length;t&&n%2&&(e=`0${e}`,n++);const a=[];let i=0,s=0,c=0;for(let t=0;t<n;t++){const n=e.charAt(t);if(!r(n))throw new Error("The passed hex char is not a valid hex string");i<<=4,i+=o(n),s++,0==s%2&&(a[c++]=i,i=0)}return a}},9661:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.computeHmac=void 0;const o=r(6710),n=r(1490);let a=!1;const i=function(e,t,r){return(0,o.createHmac)(e,t).update(r).digest()};let s=i;function c(e,t,r){const o=(0,n.getBytes)(t,"key"),a=(0,n.getBytes)(r,"data");return(0,n.hexlify)(s(e,o,a))}t.computeHmac=c,c._=i,c.lock=function(){a=!0},c.register=function(e){if(a)throw new Error("computeHmac is locked");s=e},Object.freeze(c)},9741:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha512_224=t.sha512_256=t.sha384=t.sha512=t.sha224=t.sha256=t.SHA512_256=t.SHA512_224=t.SHA384=t.SHA512=t.SHA224=t.SHA256=void 0;const o=r(9877),n=r(7807),a=r(4904),i=Uint32Array.from([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]),s=new Uint32Array(64);class c extends o.HashMD{constructor(e=32){super(64,e,8,!1),this.A=0|o.SHA256_IV[0],this.B=0|o.SHA256_IV[1],this.C=0|o.SHA256_IV[2],this.D=0|o.SHA256_IV[3],this.E=0|o.SHA256_IV[4],this.F=0|o.SHA256_IV[5],this.G=0|o.SHA256_IV[6],this.H=0|o.SHA256_IV[7]}get(){const{A:e,B:t,C:r,D:o,E:n,F:a,G:i,H:s}=this;return[e,t,r,o,n,a,i,s]}set(e,t,r,o,n,a,i,s){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|o,this.E=0|n,this.F=0|a,this.G=0|i,this.H=0|s}process(e,t){for(let r=0;r<16;r++,t+=4)s[r]=e.getUint32(t,!1);for(let e=16;e<64;e++){const t=s[e-15],r=s[e-2],o=(0,a.rotr)(t,7)^(0,a.rotr)(t,18)^t>>>3,n=(0,a.rotr)(r,17)^(0,a.rotr)(r,19)^r>>>10;s[e]=n+s[e-7]+o+s[e-16]|0}let{A:r,B:n,C:c,D:l,E:u,F:f,G:d,H:h}=this;for(let e=0;e<64;e++){const t=h+((0,a.rotr)(u,6)^(0,a.rotr)(u,11)^(0,a.rotr)(u,25))+(0,o.Chi)(u,f,d)+i[e]+s[e]|0,p=((0,a.rotr)(r,2)^(0,a.rotr)(r,13)^(0,a.rotr)(r,22))+(0,o.Maj)(r,n,c)|0;h=d,d=f,f=u,u=l+t|0,l=c,c=n,n=r,r=t+p|0}r=r+this.A|0,n=n+this.B|0,c=c+this.C|0,l=l+this.D|0,u=u+this.E|0,f=f+this.F|0,d=d+this.G|0,h=h+this.H|0,this.set(r,n,c,l,u,f,d,h)}roundClean(){(0,a.clean)(s)}destroy(){this.set(0,0,0,0,0,0,0,0),(0,a.clean)(this.buffer)}}t.SHA256=c;class l extends c{constructor(){super(28),this.A=0|o.SHA224_IV[0],this.B=0|o.SHA224_IV[1],this.C=0|o.SHA224_IV[2],this.D=0|o.SHA224_IV[3],this.E=0|o.SHA224_IV[4],this.F=0|o.SHA224_IV[5],this.G=0|o.SHA224_IV[6],this.H=0|o.SHA224_IV[7]}}t.SHA224=l;const u=(()=>n.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))))(),f=(()=>u[0])(),d=(()=>u[1])(),h=new Uint32Array(80),p=new Uint32Array(80);class g extends o.HashMD{constructor(e=64){super(128,e,16,!1),this.Ah=0|o.SHA512_IV[0],this.Al=0|o.SHA512_IV[1],this.Bh=0|o.SHA512_IV[2],this.Bl=0|o.SHA512_IV[3],this.Ch=0|o.SHA512_IV[4],this.Cl=0|o.SHA512_IV[5],this.Dh=0|o.SHA512_IV[6],this.Dl=0|o.SHA512_IV[7],this.Eh=0|o.SHA512_IV[8],this.El=0|o.SHA512_IV[9],this.Fh=0|o.SHA512_IV[10],this.Fl=0|o.SHA512_IV[11],this.Gh=0|o.SHA512_IV[12],this.Gl=0|o.SHA512_IV[13],this.Hh=0|o.SHA512_IV[14],this.Hl=0|o.SHA512_IV[15]}get(){const{Ah:e,Al:t,Bh:r,Bl:o,Ch:n,Cl:a,Dh:i,Dl:s,Eh:c,El:l,Fh:u,Fl:f,Gh:d,Gl:h,Hh:p,Hl:g}=this;return[e,t,r,o,n,a,i,s,c,l,u,f,d,h,p,g]}set(e,t,r,o,n,a,i,s,c,l,u,f,d,h,p,g){this.Ah=0|e,this.Al=0|t,this.Bh=0|r,this.Bl=0|o,this.Ch=0|n,this.Cl=0|a,this.Dh=0|i,this.Dl=0|s,this.Eh=0|c,this.El=0|l,this.Fh=0|u,this.Fl=0|f,this.Gh=0|d,this.Gl=0|h,this.Hh=0|p,this.Hl=0|g}process(e,t){for(let r=0;r<16;r++,t+=4)h[r]=e.getUint32(t),p[r]=e.getUint32(t+=4);for(let e=16;e<80;e++){const t=0|h[e-15],r=0|p[e-15],o=n.rotrSH(t,r,1)^n.rotrSH(t,r,8)^n.shrSH(t,r,7),a=n.rotrSL(t,r,1)^n.rotrSL(t,r,8)^n.shrSL(t,r,7),i=0|h[e-2],s=0|p[e-2],c=n.rotrSH(i,s,19)^n.rotrBH(i,s,61)^n.shrSH(i,s,6),l=n.rotrSL(i,s,19)^n.rotrBL(i,s,61)^n.shrSL(i,s,6),u=n.add4L(a,l,p[e-7],p[e-16]),f=n.add4H(u,o,c,h[e-7],h[e-16]);h[e]=0|f,p[e]=0|u}let{Ah:r,Al:o,Bh:a,Bl:i,Ch:s,Cl:c,Dh:l,Dl:u,Eh:g,El:m,Fh:b,Fl:y,Gh:v,Gl:w,Hh:E,Hl:B}=this;for(let e=0;e<80;e++){const t=n.rotrSH(g,m,14)^n.rotrSH(g,m,18)^n.rotrBH(g,m,41),x=n.rotrSL(g,m,14)^n.rotrSL(g,m,18)^n.rotrBL(g,m,41),A=g&b^~g&v,k=m&y^~m&w,S=n.add5L(B,x,k,d[e],p[e]),C=n.add5H(S,E,t,A,f[e],h[e]),T=0|S,P=n.rotrSH(r,o,28)^n.rotrBH(r,o,34)^n.rotrBH(r,o,39),O=n.rotrSL(r,o,28)^n.rotrBL(r,o,34)^n.rotrBL(r,o,39),I=r&a^r&s^a&s,z=o&i^o&c^i&c;E=0|v,B=0|w,v=0|b,w=0|y,b=0|g,y=0|m,({h:g,l:m}=n.add(0|l,0|u,0|C,0|T)),l=0|s,u=0|c,s=0|a,c=0|i,a=0|r,i=0|o;const L=n.add3L(T,O,z);r=n.add3H(L,C,P,I),o=0|L}({h:r,l:o}=n.add(0|this.Ah,0|this.Al,0|r,0|o)),({h:a,l:i}=n.add(0|this.Bh,0|this.Bl,0|a,0|i)),({h:s,l:c}=n.add(0|this.Ch,0|this.Cl,0|s,0|c)),({h:l,l:u}=n.add(0|this.Dh,0|this.Dl,0|l,0|u)),({h:g,l:m}=n.add(0|this.Eh,0|this.El,0|g,0|m)),({h:b,l:y}=n.add(0|this.Fh,0|this.Fl,0|b,0|y)),({h:v,l:w}=n.add(0|this.Gh,0|this.Gl,0|v,0|w)),({h:E,l:B}=n.add(0|this.Hh,0|this.Hl,0|E,0|B)),this.set(r,o,a,i,s,c,l,u,g,m,b,y,v,w,E,B)}roundClean(){(0,a.clean)(h,p)}destroy(){(0,a.clean)(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}t.SHA512=g;class m extends g{constructor(){super(48),this.Ah=0|o.SHA384_IV[0],this.Al=0|o.SHA384_IV[1],this.Bh=0|o.SHA384_IV[2],this.Bl=0|o.SHA384_IV[3],this.Ch=0|o.SHA384_IV[4],this.Cl=0|o.SHA384_IV[5],this.Dh=0|o.SHA384_IV[6],this.Dl=0|o.SHA384_IV[7],this.Eh=0|o.SHA384_IV[8],this.El=0|o.SHA384_IV[9],this.Fh=0|o.SHA384_IV[10],this.Fl=0|o.SHA384_IV[11],this.Gh=0|o.SHA384_IV[12],this.Gl=0|o.SHA384_IV[13],this.Hh=0|o.SHA384_IV[14],this.Hl=0|o.SHA384_IV[15]}}t.SHA384=m;const b=Uint32Array.from([2352822216,424955298,1944164710,2312950998,502970286,855612546,1738396948,1479516111,258812777,2077511080,2011393907,79989058,1067287976,1780299464,286451373,2446758561]),y=Uint32Array.from([573645204,4230739756,2673172387,3360449730,596883563,1867755857,2520282905,1497426621,2519219938,2827943907,3193839141,1401305490,721525244,746961066,246885852,2177182882]);class v extends g{constructor(){super(28),this.Ah=0|b[0],this.Al=0|b[1],this.Bh=0|b[2],this.Bl=0|b[3],this.Ch=0|b[4],this.Cl=0|b[5],this.Dh=0|b[6],this.Dl=0|b[7],this.Eh=0|b[8],this.El=0|b[9],this.Fh=0|b[10],this.Fl=0|b[11],this.Gh=0|b[12],this.Gl=0|b[13],this.Hh=0|b[14],this.Hl=0|b[15]}}t.SHA512_224=v;class w extends g{constructor(){super(32),this.Ah=0|y[0],this.Al=0|y[1],this.Bh=0|y[2],this.Bl=0|y[3],this.Ch=0|y[4],this.Cl=0|y[5],this.Dh=0|y[6],this.Dl=0|y[7],this.Eh=0|y[8],this.El=0|y[9],this.Fh=0|y[10],this.Fl=0|y[11],this.Gh=0|y[12],this.Gl=0|y[13],this.Hh=0|y[14],this.Hl=0|y[15]}}t.SHA512_256=w,t.sha256=(0,a.createHasher)(()=>new c),t.sha224=(0,a.createHasher)(()=>new l),t.sha512=(0,a.createHasher)(()=>new g),t.sha384=(0,a.createHasher)(()=>new m),t.sha512_256=(0,a.createHasher)(()=>new w),t.sha512_224=(0,a.createHasher)(()=>new v)},9857:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createHasher=t.isogenyMap=t.hash_to_field=t.expand_message_xof=t.expand_message_xmd=void 0;const o=r(247),n=r(8460);const a=n.bytesToNumberBE;function i(e,t){if(e<0||e>=1<<8*t)throw new Error(`bad I2OSP call: value=${e} length=${t}`);const r=Array.from({length:t}).fill(0);for(let o=t-1;o>=0;o--)r[o]=255&e,e>>>=8;return new Uint8Array(r)}function s(e,t){const r=new Uint8Array(e.length);for(let o=0;o<e.length;o++)r[o]=e[o]^t[o];return r}function c(e){if(!(e instanceof Uint8Array))throw new Error("Uint8Array expected")}function l(e){if(!Number.isSafeInteger(e))throw new Error("number expected")}function u(e,t,r,o){c(e),c(t),l(r),t.length>255&&(t=o((0,n.concatBytes)((0,n.utf8ToBytes)("H2C-OVERSIZE-DST-"),t)));const{outputLen:a,blockLen:u}=o,f=Math.ceil(r/a);if(f>255)throw new Error("Invalid xmd length");const d=(0,n.concatBytes)(t,i(t.length,1)),h=i(0,u),p=i(r,2),g=new Array(f),m=o((0,n.concatBytes)(h,e,p,i(0,1),d));g[0]=o((0,n.concatBytes)(m,i(1,1),d));for(let e=1;e<=f;e++){const t=[s(m,g[e-1]),i(e+1,1),d];g[e]=o((0,n.concatBytes)(...t))}return(0,n.concatBytes)(...g).slice(0,r)}function f(e,t,r,o,a){if(c(e),c(t),l(r),t.length>255){const e=Math.ceil(2*o/8);t=a.create({dkLen:e}).update((0,n.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(t).digest()}if(r>65535||t.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return a.create({dkLen:r}).update(e).update(i(r,2)).update(t).update(i(t.length,1)).digest()}function d(e,t,r){(0,n.validateObject)(r,{DST:"stringOrUint8Array",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});const{p:i,k:s,m:d,hash:h,expand:p,DST:g}=r;c(e),l(t);const m=function(e){if(e instanceof Uint8Array)return e;if("string"==typeof e)return(0,n.utf8ToBytes)(e);throw new Error("DST must be Uint8Array or string")}(g),b=i.toString(2).length,y=Math.ceil((b+s)/8),v=t*d*y;let w;if("xmd"===p)w=u(e,m,v,h);else if("xof"===p)w=f(e,m,v,s,h);else{if("_internal_pass"!==p)throw new Error('expand must be "xmd" or "xof"');w=e}const E=new Array(t);for(let e=0;e<t;e++){const t=new Array(d);for(let r=0;r<d;r++){const n=y*(r+e*d),s=w.subarray(n,n+y);t[r]=(0,o.mod)(a(s),i)}E[e]=t}return E}t.expand_message_xmd=u,t.expand_message_xof=f,t.hash_to_field=d,t.isogenyMap=function(e,t){const r=t.map(e=>Array.from(e).reverse());return(t,o)=>{const[n,a,i,s]=r.map(r=>r.reduce((r,o)=>e.add(e.mul(r,t),o)));return t=e.div(n,a),o=e.mul(o,e.div(i,s)),{x:t,y:o}}},t.createHasher=function(e,t,r){if("function"!=typeof t)throw new Error("mapToCurve() must be defined");return{hashToCurve(o,n){const a=d(o,2,{...r,DST:r.DST,...n}),i=e.fromAffine(t(a[0])),s=e.fromAffine(t(a[1])),c=i.add(s).clearCofactor();return c.assertValidity(),c},encodeToCurve(o,n){const a=d(o,1,{...r,DST:r.encodeDST,...n}),i=e.fromAffine(t(a[0])).clearCofactor();return i.assertValidity(),i}}}},9877:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHA512_IV=t.SHA384_IV=t.SHA224_IV=t.SHA256_IV=t.HashMD=void 0,t.setBigUint64=n,t.Chi=function(e,t,r){return e&t^~e&r},t.Maj=function(e,t,r){return e&t^e&r^t&r};const o=r(4904);function n(e,t,r,o){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,r,o);const n=BigInt(32),a=BigInt(4294967295),i=Number(r>>n&a),s=Number(r&a),c=o?4:0,l=o?0:4;e.setUint32(t+c,i,o),e.setUint32(t+l,s,o)}class a extends o.Hash{constructor(e,t,r,n){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=e,this.outputLen=t,this.padOffset=r,this.isLE=n,this.buffer=new Uint8Array(e),this.view=(0,o.createView)(this.buffer)}update(e){(0,o.aexists)(this),e=(0,o.toBytes)(e),(0,o.abytes)(e);const{view:t,buffer:r,blockLen:n}=this,a=e.length;for(let i=0;i<a;){const s=Math.min(n-this.pos,a-i);if(s===n){const t=(0,o.createView)(e);for(;n<=a-i;i+=n)this.process(t,i);continue}r.set(e.subarray(i,i+s),this.pos),this.pos+=s,i+=s,this.pos===n&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){(0,o.aexists)(this),(0,o.aoutput)(e,this),this.finished=!0;const{buffer:t,view:r,blockLen:a,isLE:i}=this;let{pos:s}=this;t[s++]=128,(0,o.clean)(this.buffer.subarray(s)),this.padOffset>a-s&&(this.process(r,0),s=0);for(let e=s;e<a;e++)t[e]=0;n(r,a-8,BigInt(8*this.length),i),this.process(r,0);const c=(0,o.createView)(e),l=this.outputLen;if(l%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const u=l/4,f=this.get();if(u>f.length)throw new Error("_sha2: outputLen bigger than state");for(let e=0;e<u;e++)c.setUint32(4*e,f[e],i)}digest(){const{buffer:e,outputLen:t}=this;this.digestInto(e);const r=e.slice(0,t);return this.destroy(),r}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:t,buffer:r,length:o,finished:n,destroyed:a,pos:i}=this;return e.destroyed=a,e.finished=n,e.length=o,e.pos=i,o%t&&e.buffer.set(r),e}clone(){return this._cloneInto()}}t.HashMD=a,t.SHA256_IV=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),t.SHA224_IV=Uint32Array.from([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]),t.SHA384_IV=Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]),t.SHA512_IV=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209])},9922:(e,t,r)=>{"use strict";var o=r(7961),n=r(1024),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;
|
|
71
|
+
/*!
|
|
72
|
+
* The buffer module from node.js, for the browser.
|
|
73
|
+
*
|
|
74
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
|
75
|
+
* @license MIT
|
|
76
|
+
*/t.hp=c,t.IS=50;var i=2147483647;function s(e){if(e>i)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return f(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!c.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=0|g(e,t),o=s(r),n=o.write(e,t);n!==r&&(o=o.slice(0,n));return o}(e,t);if(ArrayBuffer.isView(e))return function(e){if(D(e,Uint8Array)){var t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(D(e,ArrayBuffer)||e&&D(e.buffer,ArrayBuffer))return h(e,t,r);if("undefined"!=typeof SharedArrayBuffer&&(D(e,SharedArrayBuffer)||e&&D(e.buffer,SharedArrayBuffer)))return h(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var o=e.valueOf&&e.valueOf();if(null!=o&&o!==e)return c.from(o,t,r);var n=function(e){if(c.isBuffer(e)){var t=0|p(e.length),r=s(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return"number"!=typeof e.length||F(e.length)?s(0):d(e);if("Buffer"===e.type&&Array.isArray(e.data))return d(e.data)}(e);if(n)return n;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function f(e){return u(e),s(e<0?0:0|p(e))}function d(e){for(var t=e.length<0?0:0|p(e.length),r=s(t),o=0;o<t;o+=1)r[o]=255&e[o];return r}function h(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var o;return o=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),Object.setPrototypeOf(o,c.prototype),o}function p(e){if(e>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return 0|e}function g(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||D(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,o=arguments.length>2&&!0===arguments[2];if(!o&&0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return U(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return H(e).length;default:if(n)return o?-1:U(e).length;t=(""+t).toLowerCase(),n=!0}}function m(e,t,r){var o=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return O(this,t,r);case"utf8":case"utf-8":return S(this,t,r);case"ascii":return T(this,t,r);case"latin1":case"binary":return P(this,t,r);case"base64":return k(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,r);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}function b(e,t,r){var o=e[t];e[t]=e[r],e[r]=o}function y(e,t,r,o,n){if(0===e.length)return-1;if("string"==typeof r?(o=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),F(r=+r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if("string"==typeof t&&(t=c.from(t,o)),c.isBuffer(t))return 0===t.length?-1:v(e,t,r,o,n);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):v(e,[t],r,o,n);throw new TypeError("val must be string, number or Buffer")}function v(e,t,r,o,n){var a,i=1,s=e.length,c=t.length;if(void 0!==o&&("ucs2"===(o=String(o).toLowerCase())||"ucs-2"===o||"utf16le"===o||"utf-16le"===o)){if(e.length<2||t.length<2)return-1;i=2,s/=2,c/=2,r/=2}function l(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(n){var u=-1;for(a=r;a<s;a++)if(l(e,a)===l(t,-1===u?0:a-u)){if(-1===u&&(u=a),a-u+1===c)return u*i}else-1!==u&&(a-=a-u),u=-1}else for(r+c>s&&(r=s-c),a=r;a>=0;a--){for(var f=!0,d=0;d<c;d++)if(l(e,a+d)!==l(t,d)){f=!1;break}if(f)return a}return-1}function w(e,t,r,o){r=Number(r)||0;var n=e.length-r;o?(o=Number(o))>n&&(o=n):o=n;var a=t.length;o>a/2&&(o=a/2);for(var i=0;i<o;++i){var s=parseInt(t.substr(2*i,2),16);if(F(s))return i;e[r+i]=s}return i}function E(e,t,r,o){return M(U(t,e.length-r),e,r,o)}function B(e,t,r,o){return M(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,o)}function x(e,t,r,o){return M(H(t),e,r,o)}function A(e,t,r,o){return M(function(e,t){for(var r,o,n,a=[],i=0;i<e.length&&!((t-=2)<0);++i)o=(r=e.charCodeAt(i))>>8,n=r%256,a.push(n),a.push(o);return a}(t,e.length-r),e,r,o)}function k(e,t,r){return 0===t&&r===e.length?o.fromByteArray(e):o.fromByteArray(e.slice(t,r))}function S(e,t,r){r=Math.min(e.length,r);for(var o=[],n=t;n<r;){var a,i,s,c,l=e[n],u=null,f=l>239?4:l>223?3:l>191?2:1;if(n+f<=r)switch(f){case 1:l<128&&(u=l);break;case 2:128==(192&(a=e[n+1]))&&(c=(31&l)<<6|63&a)>127&&(u=c);break;case 3:a=e[n+1],i=e[n+2],128==(192&a)&&128==(192&i)&&(c=(15&l)<<12|(63&a)<<6|63&i)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:a=e[n+1],i=e[n+2],s=e[n+3],128==(192&a)&&128==(192&i)&&128==(192&s)&&(c=(15&l)<<18|(63&a)<<12|(63&i)<<6|63&s)>65535&&c<1114112&&(u=c)}null===u?(u=65533,f=1):u>65535&&(u-=65536,o.push(u>>>10&1023|55296),u=56320|1023&u),o.push(u),n+=f}return function(e){var t=e.length;if(t<=C)return String.fromCharCode.apply(String,e);var r="",o=0;for(;o<t;)r+=String.fromCharCode.apply(String,e.slice(o,o+=C));return r}(o)}c.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),c.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(e,t,r){return l(e,t,r)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,r){return function(e,t,r){return u(e),e<=0?s(e):void 0!==t?"string"==typeof r?s(e).fill(t,r):s(e).fill(t):s(e)}(e,t,r)},c.allocUnsafe=function(e){return f(e)},c.allocUnsafeSlow=function(e){return f(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(D(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),D(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,o=t.length,n=0,a=Math.min(r,o);n<a;++n)if(e[n]!==t[n]){r=e[n],o=t[n];break}return r<o?-1:o<r?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var o=c.allocUnsafe(t),n=0;for(r=0;r<e.length;++r){var a=e[r];if(D(a,Uint8Array))n+a.length>o.length?c.from(a).copy(o,n):Uint8Array.prototype.set.call(o,a,n);else{if(!c.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(o,n)}n+=a.length}return o},c.byteLength=g,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)b(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)b(this,t,t+3),b(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)b(this,t,t+7),b(this,t+1,t+6),b(this,t+2,t+5),b(this,t+3,t+4);return this},c.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?S(this,0,e):m.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",r=t.IS;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},a&&(c.prototype[a]=c.prototype.inspect),c.prototype.compare=function(e,t,r,o,n){if(D(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===o&&(o=0),void 0===n&&(n=this.length),t<0||r>e.length||o<0||n>this.length)throw new RangeError("out of range index");if(o>=n&&t>=r)return 0;if(o>=n)return-1;if(t>=r)return 1;if(this===e)return 0;for(var a=(n>>>=0)-(o>>>=0),i=(r>>>=0)-(t>>>=0),s=Math.min(a,i),l=this.slice(o,n),u=e.slice(t,r),f=0;f<s;++f)if(l[f]!==u[f]){a=l[f],i=u[f];break}return a<i?-1:i<a?1:0},c.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},c.prototype.indexOf=function(e,t,r){return y(this,e,t,r,!0)},c.prototype.lastIndexOf=function(e,t,r){return y(this,e,t,r,!1)},c.prototype.write=function(e,t,r,o){if(void 0===t)o="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)o=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===o&&(o="utf8")):(o=r,r=void 0)}var n=this.length-t;if((void 0===r||r>n)&&(r=n),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");for(var a=!1;;)switch(o){case"hex":return w(this,e,t,r);case"utf8":case"utf-8":return E(this,e,t,r);case"ascii":case"latin1":case"binary":return B(this,e,t,r);case"base64":return x(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,e,t,r);default:if(a)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),a=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var C=4096;function T(e,t,r){var o="";r=Math.min(e.length,r);for(var n=t;n<r;++n)o+=String.fromCharCode(127&e[n]);return o}function P(e,t,r){var o="";r=Math.min(e.length,r);for(var n=t;n<r;++n)o+=String.fromCharCode(e[n]);return o}function O(e,t,r){var o=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>o)&&(r=o);for(var n="",a=t;a<r;++a)n+=K[e[a]];return n}function I(e,t,r){for(var o=e.slice(t,r),n="",a=0;a<o.length-1;a+=2)n+=String.fromCharCode(o[a]+256*o[a+1]);return n}function z(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function L(e,t,r,o,n,a){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>n||t<a)throw new RangeError('"value" argument is out of bounds');if(r+o>e.length)throw new RangeError("Index out of range")}function R(e,t,r,o,n,a){if(r+o>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function N(e,t,r,o,a){return t=+t,r>>>=0,a||R(e,0,r,4),n.write(e,t,r,o,23,4),r+4}function _(e,t,r,o,a){return t=+t,r>>>=0,a||R(e,0,r,8),n.write(e,t,r,o,52,8),r+8}c.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var o=this.subarray(e,t);return Object.setPrototypeOf(o,c.prototype),o},c.prototype.readUintLE=c.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||z(e,t,this.length);for(var o=this[e],n=1,a=0;++a<t&&(n*=256);)o+=this[e+a]*n;return o},c.prototype.readUintBE=c.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||z(e,t,this.length);for(var o=this[e+--t],n=1;t>0&&(n*=256);)o+=this[e+--t]*n;return o},c.prototype.readUint8=c.prototype.readUInt8=function(e,t){return e>>>=0,t||z(e,1,this.length),this[e]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||z(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||z(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||z(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||z(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||z(e,t,this.length);for(var o=this[e],n=1,a=0;++a<t&&(n*=256);)o+=this[e+a]*n;return o>=(n*=128)&&(o-=Math.pow(2,8*t)),o},c.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||z(e,t,this.length);for(var o=t,n=1,a=this[e+--o];o>0&&(n*=256);)a+=this[e+--o]*n;return a>=(n*=128)&&(a-=Math.pow(2,8*t)),a},c.prototype.readInt8=function(e,t){return e>>>=0,t||z(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||z(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||z(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||z(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||z(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return e>>>=0,t||z(e,4,this.length),n.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||z(e,4,this.length),n.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||z(e,8,this.length),n.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||z(e,8,this.length),n.read(this,e,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,t,r,o){(e=+e,t>>>=0,r>>>=0,o)||L(this,e,t,r,Math.pow(2,8*r)-1,0);var n=1,a=0;for(this[t]=255&e;++a<r&&(n*=256);)this[t+a]=e/n&255;return t+r},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(e,t,r,o){(e=+e,t>>>=0,r>>>=0,o)||L(this,e,t,r,Math.pow(2,8*r)-1,0);var n=r-1,a=1;for(this[t+n]=255&e;--n>=0&&(a*=256);)this[t+n]=e/a&255;return t+r},c.prototype.writeUint8=c.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||L(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||L(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||L(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||L(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||L(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeIntLE=function(e,t,r,o){if(e=+e,t>>>=0,!o){var n=Math.pow(2,8*r-1);L(this,e,t,r,n-1,-n)}var a=0,i=1,s=0;for(this[t]=255&e;++a<r&&(i*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/i|0)-s&255;return t+r},c.prototype.writeIntBE=function(e,t,r,o){if(e=+e,t>>>=0,!o){var n=Math.pow(2,8*r-1);L(this,e,t,r,n-1,-n)}var a=r-1,i=1,s=0;for(this[t+a]=255&e;--a>=0&&(i*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/i|0)-s&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||L(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||L(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||L(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||L(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||L(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeFloatLE=function(e,t,r){return N(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return N(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return _(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return _(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,o){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),o||0===o||(o=this.length),t>=e.length&&(t=e.length),t||(t=0),o>0&&o<r&&(o=r),o===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-t<o-r&&(o=e.length-t+r);var n=o-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,o):Uint8Array.prototype.set.call(e,this.subarray(r,o),t),n},c.prototype.fill=function(e,t,r,o){if("string"==typeof e){if("string"==typeof t?(o=t,t=0,r=this.length):"string"==typeof r&&(o=r,r=this.length),void 0!==o&&"string"!=typeof o)throw new TypeError("encoding must be a string");if("string"==typeof o&&!c.isEncoding(o))throw new TypeError("Unknown encoding: "+o);if(1===e.length){var n=e.charCodeAt(0);("utf8"===o&&n<128||"latin1"===o)&&(e=n)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var a;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(a=t;a<r;++a)this[a]=e;else{var i=c.isBuffer(e)?e:c.from(e,o),s=i.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<r-t;++a)this[a+t]=i[a%s]}return this};var j=/[^+/0-9A-Za-z-_]/g;function U(e,t){var r;t=t||1/0;for(var o=e.length,n=null,a=[],i=0;i<o;++i){if((r=e.charCodeAt(i))>55295&&r<57344){if(!n){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(i+1===o){(t-=3)>-1&&a.push(239,191,189);continue}n=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&(t-=3)>-1&&a.push(239,191,189);if(n=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function H(e){return o.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(j,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function M(e,t,r,o){for(var n=0;n<o&&!(n+r>=t.length||n>=e.length);++n)t[n+r]=e[n];return n}function D(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function F(e){return e!=e}var K=function(){for(var e="0123456789abcdef",t=new Array(256),r=0;r<16;++r)for(var o=16*r,n=0;n<16;++n)t[o+n]=e[r]+e[n];return t}()},9924:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.expand_message_xmd=l,t.expand_message_xof=u,t.hash_to_field=f,t.isogenyMap=function(e,t){const r=t.map(e=>Array.from(e).reverse());return(t,n)=>{const[a,i,s,c]=r.map(r=>r.reduce((r,o)=>e.add(e.mul(r,t),o))),[l,u]=(0,o.FpInvertBatch)(e,[i,c],!0);return t=e.mul(a,l),n=e.mul(n,e.mul(s,u)),{x:t,y:n}}},t.createHasher=function(e,t,r){if("function"!=typeof t)throw new Error("mapToCurve() must be defined");function o(r){return e.fromAffine(t(r))}function n(t){const r=t.clearCofactor();return r.equals(e.ZERO)?e.ZERO:(r.assertValidity(),r)}return{defaults:r,hashToCurve(e,t){const a=f(e,2,{...r,DST:r.DST,...t}),i=o(a[0]),s=o(a[1]);return n(i.add(s))},encodeToCurve:(e,t)=>n(o(f(e,1,{...r,DST:r.encodeDST,...t})[0])),mapToCurve(e){if(!Array.isArray(e))throw new Error("expected array of bigints");for(const t of e)if("bigint"!=typeof t)throw new Error("expected array of bigints");return n(o(e))}}};const o=r(6630),n=r(5565),a=n.bytesToNumberBE;function i(e,t){if(c(e),c(t),e<0||e>=1<<8*t)throw new Error("invalid I2OSP input: "+e);const r=Array.from({length:t}).fill(0);for(let o=t-1;o>=0;o--)r[o]=255&e,e>>>=8;return new Uint8Array(r)}function s(e,t){const r=new Uint8Array(e.length);for(let o=0;o<e.length;o++)r[o]=e[o]^t[o];return r}function c(e){if(!Number.isSafeInteger(e))throw new Error("number expected")}function l(e,t,r,o){(0,n.abytes)(e),(0,n.abytes)(t),c(r),t.length>255&&(t=o((0,n.concatBytes)((0,n.utf8ToBytes)("H2C-OVERSIZE-DST-"),t)));const{outputLen:a,blockLen:l}=o,u=Math.ceil(r/a);if(r>65535||u>255)throw new Error("expand_message_xmd: invalid lenInBytes");const f=(0,n.concatBytes)(t,i(t.length,1)),d=i(0,l),h=i(r,2),p=new Array(u),g=o((0,n.concatBytes)(d,e,h,i(0,1),f));p[0]=o((0,n.concatBytes)(g,i(1,1),f));for(let e=1;e<=u;e++){const t=[s(g,p[e-1]),i(e+1,1),f];p[e]=o((0,n.concatBytes)(...t))}return(0,n.concatBytes)(...p).slice(0,r)}function u(e,t,r,o,a){if((0,n.abytes)(e),(0,n.abytes)(t),c(r),t.length>255){const e=Math.ceil(2*o/8);t=a.create({dkLen:e}).update((0,n.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(t).digest()}if(r>65535||t.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return a.create({dkLen:r}).update(e).update(i(r,2)).update(t).update(i(t.length,1)).digest()}function f(e,t,r){(0,n.validateObject)(r,{DST:"stringOrUint8Array",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});const{p:i,k:s,m:f,hash:d,expand:h,DST:p}=r;(0,n.abytes)(e),c(t);const g="string"==typeof p?(0,n.utf8ToBytes)(p):p,m=i.toString(2).length,b=Math.ceil((m+s)/8),y=t*f*b;let v;if("xmd"===h)v=l(e,g,y,d);else if("xof"===h)v=u(e,g,y,s,d);else{if("_internal_pass"!==h)throw new Error('expand must be "xmd" or "xof"');v=e}const w=new Array(t);for(let e=0;e<t;e++){const t=new Array(f);for(let r=0;r<f;r++){const n=b*(r+e*f),s=v.subarray(n,n+b);t[r]=(0,o.mod)(a(s),i)}w[e]=t}return w}},9967:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertIsBytes=void 0;t.assertIsBytes=function(e){if(!(e instanceof Uint8Array)){throw new Error(`This method only supports Uint8Array but input was: ${e}`)}}},9980:function(e,t,r){"use strict";var o=r(9922).hp,n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Factory=void 0;const a=r(9741),i=n(r(9637)),s=[1,225,75],c=(e,t)=>{if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0};const l=(...e)=>{const t=[];return e.forEach(e=>{if(void 0!==e.length)for(const r of e)t.push(r);else t.push(e)}),t};class u{constructor(e){this.sha256=e.sha256,this.alphabet=e.alphabet,this.codec=(0,i.default)(this.alphabet),this.base=this.alphabet.length}decode(e,t){const r=t.versions,o=t.versionTypes,n=this.decodeChecked(e);if(r.length>1&&!t.expectedLength)throw new Error("expectedLength is required because there are >= 2 possible versions");const a="number"==typeof r[0]?1:r[0].length,i=t.expectedLength||n.length-a,s=n.subarray(0,-i),l=n.subarray(-i);for(let e=0;e<r.length;e++){const t=Array.isArray(r[e])?r[e]:[r[e]];if(c(s,t))return{version:t,bytes:l,type:o?o[e]:null}}throw new Error("version_invalid: version bytes do not match any of the provided version(s)")}encode(e,t){const r=t.versions;return this.encodeVersioned(e,r,t.expectedLength)}encodeVersioned(e,t,r){if(r&&e.length!==r)throw new Error("unexpected_payload_length: bytes.length does not match expectedLength");return this.encodeChecked(o.from(l(t,e)))}encodeChecked(e){const t=this.sha256(this.sha256(e)).slice(0,4);return this.encodeRaw(o.from(l(e,t)))}encodeRaw(e){return this.codec.encode(e)}decodeChecked(e){const t=this.decodeRaw(e);if(t.length<5)throw new Error("invalid_input_size: decoded data must have length >= 5");if(!this.verifyCheckSum(t))throw new Error("checksum_invalid");return t.subarray(0,-4)}decodeRaw(e){return this.codec.decode(e)}verifyCheckSum(e){const t=this.sha256(this.sha256(e.subarray(0,-4))).subarray(0,4),r=e.subarray(-4);return c(t,r)}}t.Factory=e=>{const t=new u({sha256:e=>a.sha256.create().update(e).digest(),alphabet:e});return{decodeSeed:(e,r={versionTypes:["ed25519","secp256k1"],versions:[s,33],expectedLength:16})=>t.decode(e,r),isValidAddress:e=>{try{(e=>{const r={versions:[0],expectedLength:20};t.decode(e,r).bytes})(e)}catch(e){return!1}return!0},encodeAccountID:e=>{const r={versions:[0],expectedLength:20};return t.encode(e,r)},encodeSeed:(e,r)=>{if(16!==e.length)throw new Error("entropy must have length 16");const o={expectedLength:16,versions:"ed25519"===r?s:[33]};return t.encode(e,o)}}}},9998:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.aoutput=t.anumber=t.aexists=t.abytes=void 0;const o=r(4904);t.abytes=o.abytes,t.aexists=o.aexists,t.anumber=o.anumber,t.aoutput=o.aoutput}},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var a=t[o]={exports:{}};return e[o].call(a.exports,a,a.exports,r),a.exports}return r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r(8156)})());
|