50p82u21t54k 0.0.37 → 0.0.38
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/50p82u21t54k.cjs.js +1 -0
- package/dist/50p82u21t54k.es.js +6219 -2295
- package/dist/50p82u21t54k.umd.js +1 -21
- package/dist/api/eGame/type.d.ts +1 -6
- package/dist/api/eGame/type.d.ts.map +1 -1
- package/dist/api/fishGames/fishGamesApi.d.ts.map +1 -1
- package/dist/api/fishGames/type.d.ts +4 -9
- package/dist/api/fishGames/type.d.ts.map +1 -1
- package/dist/api/home/type.d.ts +1 -6
- package/dist/api/home/type.d.ts.map +1 -1
- package/dist/api/hotGames/type.d.ts +1 -6
- package/dist/api/hotGames/type.d.ts.map +1 -1
- package/dist/api/trialGames/type.d.ts +3 -8
- package/dist/api/trialGames/type.d.ts.map +1 -1
- package/dist/index.d.ts +16 -30
- package/dist/index.d.ts.map +1 -1
- package/dist/util/tool.d.ts +2 -0
- package/dist/util/tool.d.ts.map +1 -1
- package/dist/util/type.d.ts +5 -0
- package/dist/util/type.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/plugin.d.ts +0 -24
- package/dist/plugin.d.ts.map +0 -1
package/dist/50p82u21t54k.umd.js
CHANGED
|
@@ -1,21 +1 @@
|
|
|
1
|
-
(function(T,Z){typeof exports=="object"&&typeof module<"u"?Z(exports,require("vue"),require("crypto-js")):typeof define=="function"&&define.amd?define(["exports","vue","crypto-js"],Z):(T=typeof globalThis<"u"?globalThis:T||self,Z(T["50p82u21t54k"]={},T.Vue,T.CryptoJS))})(this,(function(T,Z,k){"use strict";const yt=Object.freeze(Object.defineProperty({__proto__:null,get GameType(){return Lt},get homeApi(){return be}},Symbol.toStringTag,{value:"Module"})),mt=Object.freeze(Object.defineProperty({__proto__:null,get hotGamesApi(){return Ee}},Symbol.toStringTag,{value:"Module"})),St=Object.freeze(Object.defineProperty({__proto__:null,get fishGamesApi(){return we}},Symbol.toStringTag,{value:"Module"})),bt=Object.freeze(Object.defineProperty({__proto__:null,get trialGamesApi(){return De}},Symbol.toStringTag,{value:"Module"})),Tt=Object.freeze(Object.defineProperty({__proto__:null,get currentLangApi(){return _e}},Symbol.toStringTag,{value:"Module"})),Et=Object.freeze(Object.defineProperty({__proto__:null,get promotionApi(){return xe}},Symbol.toStringTag,{value:"Module"})),wt=Object.freeze(Object.defineProperty({__proto__:null,get getLocaleApi(){return Ae}},Symbol.toStringTag,{value:"Module"})),Dt=Object.freeze(Object.defineProperty({__proto__:null,get csLinkApi(){return Re}},Symbol.toStringTag,{value:"Module"})),_t=Object.freeze(Object.defineProperty({__proto__:null,get eGameApi(){return Oe}},Symbol.toStringTag,{value:"Module"})),xt=Object.freeze(Object.defineProperty({__proto__:null,get cmsListApi(){return Be}},Symbol.toStringTag,{value:"Module"})),At=Object.freeze(Object.defineProperty({__proto__:null,get getSettingApi(){return Ie}},Symbol.toStringTag,{value:"Module"})),Rt=Object.freeze(Object.defineProperty({__proto__:null,get getLoginKeyApi(){return ce}},Symbol.toStringTag,{value:"Module"})),Ot=Object.freeze(Object.defineProperty({__proto__:null,get loginApi(){return gr}},Symbol.toStringTag,{value:"Module"})),Bt=Z.ref("");function x(){return Bt.value===""?0:1}const de={home:yt,hotGames:mt,fishGames:St,trialGames:bt,currentLang:Tt,promotion:Et,getLocale:wt,csLink:Dt,eGame:_t,cmsList:xt,getSetting:At,login:Ot,getLoginKey:Rt},ve={install(n){n.config.globalProperties.$library=de}},ye=n=>{try{return atob(n)}catch(t){return console.error("Failed to decode Base64:",t),""}},It=n=>{try{const t=JSON.parse(k.AES.decrypt(n,Bt.value,{format:{stringify:e=>{const r={ct:e.ciphertext.toString(k.enc.Base64)};return e.iv&&(r.iv=e.iv.toString()),e.salt&&(r.s=e.salt.toString()),JSON.stringify(r)},parse:e=>{const r=JSON.parse(e),i=k.lib.CipherParams.create({ciphertext:k.enc.Base64.parse(r.ct)});return r.iv&&(i.iv=k.enc.Hex.parse(r.iv)),r.s&&(i.salt=k.enc.Hex.parse(r.s)),i}}}).toString(k.enc.Utf8));return t!==""?JSON.parse(t):t}catch(t){return console.error(t),""}},Pt=n=>new URLSearchParams(Object.entries(n).map(([t,e])=>[t,String(e)])),O=async(n,t=null)=>{let e=n;t&&(e=`${e}?${Pt(t)}`);const r=await Vt(e,{method:"GET",headers:Nt(),credentials:"include"});if(!r.ok){const s=await Ct(r);return Promise.reject(s)}return{data:await(x()?It(r):ft(r)),status:r.status,msg:r.statusText,headers:r.headers,ok:r.ok}},me=async(n,t,e=null)=>{let r=n;e&&(r=`${r}?${Pt(e)}`);const i=await Vt(r,{method:"POST",headers:Nt(),body:JSON.stringify(t),credentials:"include"});if(!i.ok){const h=await Ct(i);return Promise.reject(h)}const s=await(x()?It(i):ft(i));if(!s)return{data:{},status:i.status,msg:i.statusText,headers:i.headers,ok:i.ok};const o=(Array.isArray(s==null?void 0:s.responses)?s.responses.filter(h=>h==null?void 0:h.attributes):[])[0];return{data:o?JSON.parse(ye(o.attributes)):s,status:i.status,msg:i.statusText,headers:i.headers,ok:i.ok}},Vt=async(n,t,e=29e3)=>{const r=new AbortController,i=setTimeout(()=>r.abort(),e);try{return await fetch(n,{...t,signal:r.signal})}finally{clearTimeout(i)}},Nt=()=>{const n=localStorage.getItem("token");return{"Content-Type":"application/json","X-XSRF-TOKEN":Se("XSRF-TOKEN"),...n?{Authorization:`Bearer ${n}`}:{}}},Se=n=>{const t=document.cookie.match(new RegExp("(^| )"+n+"=([^;]+)"));return t?decodeURIComponent(t[2]):""},ft=async n=>{try{return n.status===204||n.headers.get("content-length")==="0"?null:await n.json()}catch{return null}},Ct=async n=>{const t=await ft(n),e={status:n.status,message:(t==null?void 0:t.message)||n.statusText||"An error occurred"};return console.error("Error response:",JSON.stringify(e)),n.status===401?console.error("Unauthorized access - redirecting to login."):n.status===404?console.error("Resource not found."):n.status>=500&&console.error("Server error. Please try again later."),e},jt={data:{game:{},mobileBanner:[],announcement:[],alertAnnouncement:[]}},be=async()=>{let n={status:200,message:"",...jt};try{const e=(await O("/apis/home",{render:x(),json:1})).data;n.data={game:Object.fromEntries(Object.entries(e.game).map(([r,i])=>[r,i.map(s=>Te(s))])),mobileBanner:e.mobileBanner.map(r=>({name:r.name??"",content:r.content??"",link:r.link??"",linkTarget:r.link_target??"",updatedOn:r.updated_on??"",idCmsCategory:r.id_cms_category??0,contentOrg:r.content_org??""})),announcement:e.announcement.map(r=>({announcementIndex:r.announcement_index??0,announcementEnglish:r.announcement_english??"",announcementSimplified:r.announcement_simplified??"",announcementTraditional:r.announcement_traditional??"",announcementMalay:r.announcement_malay??"",announcementStatus:r.announcement_status==="1",announcementShow:r.announcement_show==="1",announcementAlert:r.announcement_alert==="1",announcementUser:r.announcement_user==="1",announcementSequence:r.announcement_sequence??0,announcementCompany:r.announcement_company==="1",companyIndex:r.companyindex??0,announcementLastUpdated:r.announcement_lastupdated??"",announcementDateCreated:r.announcement_datecreated??"",announcementSmaid:r.announcement_smaid??"",annTimer:r.ann_timer??"",annStart:r.ann_start??"",annEnd:r.ann_end??"",grp:r.grp??"",time:r.time??""})),alertAnnouncement:e.alert_announcement.map(r=>({announcementDateCreated:r.announcement_datecreated??"",announcementSimplified:r.announcement_simplified??""}))}}catch(t){n={status:t.status||500,message:t.message,...jt}}return n},Te=n=>({id:n.id??0,idPlatformMaster:n.id_PlatformMaster??0,idProductMaster:n.id_ProductMaster??0,name:n.name??"",shortName:n.shortName??"",img:n.img??"",mobileUrl:n.mobileUrl??"",url:n.url??"",desc:n.desc??"",seq:n.seq??0,flag:n.flag??0,status:n.status??"",createdBy:n.created_by??0,createdOn:n.created_on??"",categoryID:n.categoryid??0,com:n.com??"",cur:n.cur??"",pt:n.pt??"",ppName:n.pp_name??"",ppImage:n.pp_image??"",platformCode:n.platform_code??"",platformName:n.platform_name??"",classIcon:n.class_icon??"",productCode:n.product_code??"",productName:n.product_name??"",gameID:n.game_id??0,fAuth:n.fAuth??!1,platformStatusParams:{eb:n.platform_status_params.eb??!1,fit:n.platform_status_params.fit??!1,fs:n.platform_status_params.fs??!1},loginFlag:n.login_flag==="1",link:n.link??"",favouriteFlag:n.favourite_flag===1,platformStatusFlag:n.platform_status_flag??"",platformFlagName:n.platform_flag_name??"",homeLogo:n.home_logo??"",imgPf:n.imgPf??"",imgSport:n.imgSport??"",imgTemplate:n.imgTemplate??""});var Lt=(n=>(n.SPORT="SPORT",n.SPECIAL="SPECIAL",n.PVP="PVP",n.LIVE="LIVE",n.EVENT="EVENT",n.ESPORT="ESPORT",n.EGAME="EGAME",n.BINGO="BINGO",n))(Lt||{});const Mt={data:{currentPage:0,data:[],from:0,lastPage:0,nextPageUrl:"",path:"",perPage:0,prevPageUrl:"",to:0,total:0}},Ee=async()=>{let n={status:200,message:"",...Mt};try{const e=(await O("/apis/hotGames",{render:x(),json:1})).data;n.data={currentPage:e.current_page??0,data:e.data.map(r=>({id:r.id??0,name:r.name??"",pfid:r.pfid??0,ppname:r.ppname??"",code:r.code??"",img:r.img??"",progressive:r.progressive??"",ppid:r.ppid??0,notry:r.notry===1,productCode:r.product_code??"",imgSrc:r.imgSrc??"",imgPf:r.imgPf??"",favouriteFlag:r.favourite_flag===1,platformStatusFlag:r.platform_status_flag??"",platformFlagName:r.platform_flag_name??"",platformStatusParams:{eb:r.platform_status_params.eb??!1,fit:r.platform_status_params.fit??!1,fs:r.platform_status_params.fs??!1},gameId:r.game_id??0})),from:e.from??0,lastPage:e.last_page??0,nextPageUrl:e.next_page_url??"",path:e.path??"",perPage:e.per_page??0,prevPageUrl:e.prev_page_url??"",to:e.to??0,total:e.total??0}}catch(t){n={status:t.status||500,message:t.message,...Mt}}return n},kt={data:{hotfish:[],data:[]}},we=async()=>{let n={status:200,message:"",...kt};try{const e=(await O("/apis/fishGames",{render:x(),json:1})).data;n.data={hotfish:e.hotfish.map(r=>Ft(r)),data:e.data.map(r=>Ft(r))}}catch(t){n={status:t.status||500,message:t.message,...kt}}return n},Ft=n=>({id:n.id??0,name:n.name??"",ppid:n.pp_id??"",img:n.img??"",desc:n.desc??"",ppname:n.pp_name??"",platformCode:n.platform_code??"",code:n.code??"",flag:n.flag??0,gameId:n.game_id??0,imgSrc:n.imgSrc??"",imgPf:n.imgPf??"",favouriteFlag:n.favourite_flag===1,platformStatusFflag:n.platform_status_Fflag??"",platformFlagName:n.platform_flag_name??"",platformStatusParams:{eb:n.platform_status_params.eb??!1,fit:n.platform_status_params.fit??!1,fs:n.platform_status_params.fs??!1}}),qt={data:[]},De=async()=>{let n={status:200,message:"",...qt};try{const e=(await O("/apis/trialGames",{render:x(),json:1})).data;n.data=e.map(r=>({ppid:r.ppid??0,ppname:r.ppname??"",games:r.games.map(i=>({id:i.id??0,name:i.name??"",img:i.img??"",progressive:i.progressive??"",notry:i.notry===1,imgSrc:i.imgSrc??"",imgPf:i.imgPf??"",favouriteFlag:i.favourite_flag===1,platformStatusFflag:i.platform_status_Fflag??"",platformFlagName:i.platform_flag_name??"",platformStatusParams:{eb:i.platform_status_params.eb??!1,fit:i.platform_status_params.fit??!1,fs:i.platform_status_params.fs??!1},ppname:r.ppname??""}))}))}catch(t){n={status:t.status||500,message:t.message,...qt}}return n},Ht={data:{lang:""}},_e=async()=>{let n={status:200,message:"",...Ht};try{const e=(await O("/apis/currentLang",{render:x(),json:1})).data;n.data={lang:e}}catch(t){n={status:t.status||500,message:t.message,...Ht}}return n},Kt={data:{objList:[],promoCat:[],resize:0}},xe=async()=>{let n={status:200,message:"",...Kt};try{const e=(await O("/apis/promotion",{render:x(),json:1})).data;n.data={objList:e.objList.map(r=>({promoIndex:r.promoindex??0,type:r.type??0,thumb:r.thumb??0,title:r.title??"",displayTime:r.display_time??"",handle:r.handle??"",content:r.content??"",langList:r.lang_list??"",agentList:r.agent_list??"",dateCreated:r.datecreated??"",updateBy:r.updateby??"",lastUpdated:r.lastupdated??"",sequence:r.sequence??0,status:r.status===1,timer:r.timer??"",stime:r.stime??"",etime:r.etime??"",smaid:r.smaid??"",companyIndex:r.companyindex??"",fileName:r.filename??"",version:r.version??"",categoryName:r.category_name??"",barImg:r.bar_img??"",buttonImg:r.button_img??"",promoImg:r.promo_image??"",catId:r.catid??"",imageType:r.image_type??"",image:r.image??"",isLink:r.isLink,latestUpdate:r.latestupdate??""})),promoCat:e.promoCat.map(r=>({catId:r.catid??0,name:r.name??"",barImg:r.bar_img??"",buttonImg:r.button_img??""})),resize:e.resize}}catch(t){n={status:t.status||500,message:t.message,...Kt}}return n},Ut={data:[]},Ae=async()=>{let n={status:200,message:"",...Ut};try{const e=(await O("/apis/getLocale",{render:x(),json:1})).data,r=[];Object.entries(e).map(([i,s])=>r.push({code:i,label:s.label})),n.data=r}catch(t){n={status:t.status||500,message:t.message,...Ut}}return n},Gt={data:{liveChat:""}},Re=async()=>{let n={status:200,message:"",...Gt};try{const e=(await O("/apis/cslink",{render:x(),json:1})).data;n.data={liveChat:e.livechat??""}}catch(t){n={status:t.status||500,message:t.message,...Gt}}return n},zt={data:{eGameList:[]}},Oe=async n=>{let t={status:200,message:"",...zt};try{const r=(await O(`/apis/egame/json/${n}`,{render:x(),json:1})).data;t.data={eGameList:r.map(i=>({gameId:i.game_id??"",imgSrc:i.imgSrc??"",imgPf:i.imgPf??"",name:i.name??"",favouriteFlag:i.favourite_flag===1,platformStatusFflag:i.platform_status_Fflag??"",platformFlagName:i.platform_flag_name??"",platformStatusParams:{eb:i.platform_status_params.eb??!1,fit:i.platform_status_params.fit??!1,fs:i.platform_status_params.fs??!1},progressive:i.progressive??"",gameCategory:i.game_category??"",ppid:i.pp_id??""}))}}catch(e){t={status:e.status||500,message:e.message,...zt}}return t},Zt={data:{mobileBanner:[]}},Be=async()=>{let n={status:200,message:"",...Zt};try{const e=(await O("/apis/cmsList",{render:x(),json:1})).data;n.data={mobileBanner:e.results.mobileBanner.map(r=>r.content)}}catch(t){n={status:t.status||500,message:t.message,...Zt}}return n},$t={data:{csrf:"",getCaptcha:"",verificationBeforeLogin:!1,publicKey:"",concantenatedKey:""}},Ie=async n=>{let t={status:200,message:"",...$t};try{const r=(await O("/apis/getSetting",{setting:`${n}`,render:x(),json:1})).data;t.data={csrf:r.csrf??"",getCaptcha:r.data.CAPTCHA??"",verificationBeforeLogin:r.data["slide-verification"]==="1",publicKey:r.data.encryptkey?r.data.encryptkey.pub.replace(/-----BEGIN PUBLIC KEY-----|-----END PUBLIC KEY-----|\r|\n|=#/g,""):"",concantenatedKey:r.data.encryptkey?Object.keys(r.data.encryptkey.pubarr).join("+"):""}}catch(e){t={status:e.status||500,message:e.message,...$t}}return t};var Pe="0123456789abcdefghijklmnopqrstuvwxyz";function C(n){return Pe.charAt(n)}function Ve(n,t){return n&t}function Q(n,t){return n|t}function Jt(n,t){return n^t}function Yt(n,t){return n&~t}function Ne(n){if(n==0)return-1;var t=0;return(n&65535)==0&&(n>>=16,t+=16),(n&255)==0&&(n>>=8,t+=8),(n&15)==0&&(n>>=4,t+=4),(n&3)==0&&(n>>=2,t+=2),(n&1)==0&&++t,t}function Ce(n){for(var t=0;n!=0;)n&=n-1,++t;return t}var H="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Xt="=";function $(n){var t,e,r="";for(t=0;t+3<=n.length;t+=3)e=parseInt(n.substring(t,t+3),16),r+=H.charAt(e>>6)+H.charAt(e&63);for(t+1==n.length?(e=parseInt(n.substring(t,t+1),16),r+=H.charAt(e<<2)):t+2==n.length&&(e=parseInt(n.substring(t,t+2),16),r+=H.charAt(e>>2)+H.charAt((e&3)<<4));(r.length&3)>0;)r+=Xt;return r}function Wt(n){var t="",e,r=0,i=0;for(e=0;e<n.length&&n.charAt(e)!=Xt;++e){var s=H.indexOf(n.charAt(e));s<0||(r==0?(t+=C(s>>2),i=s&3,r=1):r==1?(t+=C(i<<2|s>>4),i=s&15,r=2):r==2?(t+=C(i),t+=C(s>>2),i=s&3,r=3):(t+=C(i<<2|s>>4),t+=C(s&15),r=0))}return r==1&&(t+=C(i<<2)),t}var K,je={decode:function(n){var t;if(K===void 0){var e="0123456789ABCDEF",r=` \f
|
|
2
|
-
\r \u2028\u2029`;for(K={},t=0;t<16;++t)K[e.charAt(t)]=t;for(e=e.toLowerCase(),t=10;t<16;++t)K[e.charAt(t)]=t;for(t=0;t<r.length;++t)K[r.charAt(t)]=-1}var i=[],s=0,a=0;for(t=0;t<n.length;++t){var o=n.charAt(t);if(o=="=")break;if(o=K[o],o!=-1){if(o===void 0)throw new Error("Illegal character at offset "+t);s|=o,++a>=2?(i[i.length]=s,s=0,a=0):s<<=4}}if(a)throw new Error("Hex encoding incomplete: 4 bits missing");return i}},F,ht={decode:function(n){var t;if(F===void 0){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=`= \f
|
|
3
|
-
\r \u2028\u2029`;for(F=Object.create(null),t=0;t<64;++t)F[e.charAt(t)]=t;for(F["-"]=62,F._=63,t=0;t<r.length;++t)F[r.charAt(t)]=-1}var i=[],s=0,a=0;for(t=0;t<n.length;++t){var o=n.charAt(t);if(o=="=")break;if(o=F[o],o!=-1){if(o===void 0)throw new Error("Illegal character at offset "+t);s|=o,++a>=4?(i[i.length]=s>>16,i[i.length]=s>>8&255,i[i.length]=s&255,s=0,a=0):s<<=6}}switch(a){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:i[i.length]=s>>10;break;case 3:i[i.length]=s>>16,i[i.length]=s>>8&255;break}return i},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(n){var t=ht.re.exec(n);if(t)if(t[1])n=t[1];else if(t[2])n=t[2];else throw new Error("RegExp out of sync");return ht.decode(n)}},U=1e13,J=(function(){function n(t){this.buf=[+t||0]}return n.prototype.mulAdd=function(t,e){var r=this.buf,i=r.length,s,a;for(s=0;s<i;++s)a=r[s]*t+e,a<U?e=0:(e=0|a/U,a-=e*U),r[s]=a;e>0&&(r[s]=e)},n.prototype.sub=function(t){var e=this.buf,r=e.length,i,s;for(i=0;i<r;++i)s=e[i]-t,s<0?(s+=U,t=1):t=0,e[i]=s;for(;e[e.length-1]===0;)e.pop()},n.prototype.toString=function(t){if((t||10)!=10)throw new Error("only base 10 is supported");for(var e=this.buf,r=e[e.length-1].toString(),i=e.length-2;i>=0;--i)r+=(U+e[i]).toString().substring(1);return r},n.prototype.valueOf=function(){for(var t=this.buf,e=0,r=t.length-1;r>=0;--r)e=e*U+t[r];return e},n.prototype.simplify=function(){var t=this.buf;return t.length==1?t[0]:this},n})(),Qt="…",Le=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,Me=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function G(n,t){return n.length>t&&(n=n.substring(0,t)+Qt),n}var lt=(function(){function n(t,e){this.hexDigits="0123456789ABCDEF",t instanceof n?(this.enc=t.enc,this.pos=t.pos):(this.enc=t,this.pos=e)}return n.prototype.get=function(t){if(t===void 0&&(t=this.pos++),t>=this.enc.length)throw new Error("Requesting byte offset ".concat(t," on a stream of length ").concat(this.enc.length));return typeof this.enc=="string"?this.enc.charCodeAt(t):this.enc[t]},n.prototype.hexByte=function(t){return this.hexDigits.charAt(t>>4&15)+this.hexDigits.charAt(t&15)},n.prototype.hexDump=function(t,e,r){for(var i="",s=t;s<e;++s)if(i+=this.hexByte(this.get(s)),r!==!0)switch(s&15){case 7:i+=" ";break;case 15:i+=`
|
|
4
|
-
`;break;default:i+=" "}return i},n.prototype.isASCII=function(t,e){for(var r=t;r<e;++r){var i=this.get(r);if(i<32||i>176)return!1}return!0},n.prototype.parseStringISO=function(t,e){for(var r="",i=t;i<e;++i)r+=String.fromCharCode(this.get(i));return r},n.prototype.parseStringUTF=function(t,e){for(var r="",i=t;i<e;){var s=this.get(i++);s<128?r+=String.fromCharCode(s):s>191&&s<224?r+=String.fromCharCode((s&31)<<6|this.get(i++)&63):r+=String.fromCharCode((s&15)<<12|(this.get(i++)&63)<<6|this.get(i++)&63)}return r},n.prototype.parseStringBMP=function(t,e){for(var r="",i,s,a=t;a<e;)i=this.get(a++),s=this.get(a++),r+=String.fromCharCode(i<<8|s);return r},n.prototype.parseTime=function(t,e,r){var i=this.parseStringISO(t,e),s=(r?Le:Me).exec(i);return s?(r&&(s[1]=+s[1],s[1]+=+s[1]<70?2e3:1900),i=s[1]+"-"+s[2]+"-"+s[3]+" "+s[4],s[5]&&(i+=":"+s[5],s[6]&&(i+=":"+s[6],s[7]&&(i+="."+s[7]))),s[8]&&(i+=" UTC",s[8]!="Z"&&(i+=s[8],s[9]&&(i+=":"+s[9]))),i):"Unrecognized time: "+i},n.prototype.parseInteger=function(t,e){for(var r=this.get(t),i=r>127,s=i?255:0,a,o="";r==s&&++t<e;)r=this.get(t);if(a=e-t,a===0)return i?-1:0;if(a>4){for(o=r,a<<=3;((+o^s)&128)==0;)o=+o<<1,--a;o="("+a+` bit)
|
|
5
|
-
`}i&&(r=r-256);for(var u=new J(r),h=t+1;h<e;++h)u.mulAdd(256,this.get(h));return o+u.toString()},n.prototype.parseBitString=function(t,e,r){for(var i=this.get(t),s=(e-t-1<<3)-i,a="("+s+` bit)
|
|
6
|
-
`,o="",u=t+1;u<e;++u){for(var h=this.get(u),l=u==e-1?i:0,p=7;p>=l;--p)o+=h>>p&1?"1":"0";if(o.length>r)return a+G(o,r)}return a+o},n.prototype.parseOctetString=function(t,e,r){if(this.isASCII(t,e))return G(this.parseStringISO(t,e),r);var i=e-t,s="("+i+` byte)
|
|
7
|
-
`;r/=2,i>r&&(e=t+r);for(var a=t;a<e;++a)s+=this.hexByte(this.get(a));return i>r&&(s+=Qt),s},n.prototype.parseOID=function(t,e,r){for(var i="",s=new J,a=0,o=t;o<e;++o){var u=this.get(o);if(s.mulAdd(128,u&127),a+=7,!(u&128)){if(i==="")if(s=s.simplify(),s instanceof J)s.sub(80),i="2."+s.toString();else{var h=s<80?s<40?0:1:2;i=h+"."+(s-h*40)}else i+="."+s.toString();if(i.length>r)return G(i,r);s=new J,a=0}}return a>0&&(i+=".incomplete"),i},n})(),ke=(function(){function n(t,e,r,i,s){if(!(i instanceof te))throw new Error("Invalid tag value.");this.stream=t,this.header=e,this.length=r,this.tag=i,this.sub=s}return n.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},n.prototype.content=function(t){if(this.tag===void 0)return null;t===void 0&&(t=1/0);var e=this.posContent(),r=Math.abs(this.length);if(!this.tag.isUniversal())return this.sub!==null?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+r,t);switch(this.tag.tagNumber){case 1:return this.stream.get(e)===0?"false":"true";case 2:return this.stream.parseInteger(e,e+r);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(e,e+r,t);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+r,t);case 6:return this.stream.parseOID(e,e+r,t);case 16:case 17:return this.sub!==null?"("+this.sub.length+" elem)":"(no elem)";case 12:return G(this.stream.parseStringUTF(e,e+r),t);case 18:case 19:case 20:case 21:case 22:case 26:return G(this.stream.parseStringISO(e,e+r),t);case 30:return G(this.stream.parseStringBMP(e,e+r),t);case 23:case 24:return this.stream.parseTime(e,e+r,this.tag.tagNumber==23)}return null},n.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(this.sub===null?"null":this.sub.length)+"]"},n.prototype.toPrettyString=function(t){t===void 0&&(t="");var e=t+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(e+="+"),e+=this.length,this.tag.tagConstructed?e+=" (constructed)":this.tag.isUniversal()&&(this.tag.tagNumber==3||this.tag.tagNumber==4)&&this.sub!==null&&(e+=" (encapsulates)"),e+=`
|
|
8
|
-
`,this.sub!==null){t+=" ";for(var r=0,i=this.sub.length;r<i;++r)e+=this.sub[r].toPrettyString(t)}return e},n.prototype.posStart=function(){return this.stream.pos},n.prototype.posContent=function(){return this.stream.pos+this.header},n.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},n.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},n.decodeLength=function(t){var e=t.get(),r=e&127;if(r==e)return r;if(r>6)throw new Error("Length over 48 bits not supported at position "+(t.pos-1));if(r===0)return null;e=0;for(var i=0;i<r;++i)e=e*256+t.get();return e},n.prototype.getHexStringValue=function(){var t=this.toHexString(),e=this.header*2,r=this.length*2;return t.substring(e,e+r)},n.decode=function(t){var e;t instanceof lt?e=t:e=new lt(t,0);var r=new lt(e),i=new te(e),s=n.decodeLength(e),a=e.pos,o=a-r.pos,u=null,h=function(){var p=[];if(s!==null){for(var d=a+s;e.pos<d;)p[p.length]=n.decode(e);if(e.pos!=d)throw new Error("Content size is not correct for container starting at offset "+a)}else try{for(;;){var c=n.decode(e);if(c.tag.isEOC())break;p[p.length]=c}s=a-e.pos}catch(m){throw new Error("Exception while decoding undefined length content: "+m)}return p};if(i.tagConstructed)u=h();else if(i.isUniversal()&&(i.tagNumber==3||i.tagNumber==4))try{if(i.tagNumber==3&&e.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");u=h();for(var l=0;l<u.length;++l)if(u[l].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch{u=null}if(u===null){if(s===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+a);e.pos=a+Math.abs(s)}return new n(r,o,s,i,u)},n})(),te=(function(){function n(t){var e=t.get();if(this.tagClass=e>>6,this.tagConstructed=(e&32)!==0,this.tagNumber=e&31,this.tagNumber==31){var r=new J;do e=t.get(),r.mulAdd(128,e&127);while(e&128);this.tagNumber=r.simplify()}}return n.prototype.isUniversal=function(){return this.tagClass===0},n.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},n})(),j,Fe=0xdeadbeefcafe,ee=(Fe&16777215)==15715070,A=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],qe=(1<<26)/A[A.length-1],g=(function(){function n(t,e,r){t!=null&&(typeof t=="number"?this.fromNumber(t,e,r):e==null&&typeof t!="string"?this.fromString(t,256):this.fromString(t,e))}return n.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(t==16)e=4;else if(t==8)e=3;else if(t==2)e=1;else if(t==32)e=5;else if(t==4)e=2;else return this.toRadix(t);var r=(1<<e)-1,i,s=!1,a="",o=this.t,u=this.DB-o*this.DB%e;if(o-- >0)for(u<this.DB&&(i=this[o]>>u)>0&&(s=!0,a=C(i));o>=0;)u<e?(i=(this[o]&(1<<u)-1)<<e-u,i|=this[--o]>>(u+=this.DB-e)):(i=this[o]>>(u-=e)&r,u<=0&&(u+=this.DB,--o)),i>0&&(s=!0),s&&(a+=C(i));return s?a:"0"},n.prototype.negate=function(){var t=v();return n.ZERO.subTo(this,t),t},n.prototype.abs=function(){return this.s<0?this.negate():this},n.prototype.compareTo=function(t){var e=this.s-t.s;if(e!=0)return e;var r=this.t;if(e=r-t.t,e!=0)return this.s<0?-e:e;for(;--r>=0;)if((e=this[r]-t[r])!=0)return e;return 0},n.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+et(this[this.t-1]^this.s&this.DM)},n.prototype.mod=function(t){var e=v();return this.abs().divRemTo(t,null,e),this.s<0&&e.compareTo(n.ZERO)>0&&t.subTo(e,e),e},n.prototype.modPowInt=function(t,e){var r;return t<256||e.isEven()?r=new re(e):r=new ne(e),this.exp(t,r)},n.prototype.clone=function(){var t=v();return this.copyTo(t),t},n.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},n.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},n.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},n.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},n.prototype.toByteArray=function(){var t=this.t,e=[];e[0]=this.s;var r=this.DB-t*this.DB%8,i,s=0;if(t-- >0)for(r<this.DB&&(i=this[t]>>r)!=(this.s&this.DM)>>r&&(e[s++]=i|this.s<<this.DB-r);t>=0;)r<8?(i=(this[t]&(1<<r)-1)<<8-r,i|=this[--t]>>(r+=this.DB-8)):(i=this[t]>>(r-=8)&255,r<=0&&(r+=this.DB,--t)),(i&128)!=0&&(i|=-256),s==0&&(this.s&128)!=(i&128)&&++s,(s>0||i!=this.s)&&(e[s++]=i);return e},n.prototype.equals=function(t){return this.compareTo(t)==0},n.prototype.min=function(t){return this.compareTo(t)<0?this:t},n.prototype.max=function(t){return this.compareTo(t)>0?this:t},n.prototype.and=function(t){var e=v();return this.bitwiseTo(t,Ve,e),e},n.prototype.or=function(t){var e=v();return this.bitwiseTo(t,Q,e),e},n.prototype.xor=function(t){var e=v();return this.bitwiseTo(t,Jt,e),e},n.prototype.andNot=function(t){var e=v();return this.bitwiseTo(t,Yt,e),e},n.prototype.not=function(){for(var t=v(),e=0;e<this.t;++e)t[e]=this.DM&~this[e];return t.t=this.t,t.s=~this.s,t},n.prototype.shiftLeft=function(t){var e=v();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},n.prototype.shiftRight=function(t){var e=v();return t<0?this.lShiftTo(-t,e):this.rShiftTo(t,e),e},n.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(this[t]!=0)return t*this.DB+Ne(this[t]);return this.s<0?this.t*this.DB:-1},n.prototype.bitCount=function(){for(var t=0,e=this.s&this.DM,r=0;r<this.t;++r)t+=Ce(this[r]^e);return t},n.prototype.testBit=function(t){var e=Math.floor(t/this.DB);return e>=this.t?this.s!=0:(this[e]&1<<t%this.DB)!=0},n.prototype.setBit=function(t){return this.changeBit(t,Q)},n.prototype.clearBit=function(t){return this.changeBit(t,Yt)},n.prototype.flipBit=function(t){return this.changeBit(t,Jt)},n.prototype.add=function(t){var e=v();return this.addTo(t,e),e},n.prototype.subtract=function(t){var e=v();return this.subTo(t,e),e},n.prototype.multiply=function(t){var e=v();return this.multiplyTo(t,e),e},n.prototype.divide=function(t){var e=v();return this.divRemTo(t,e,null),e},n.prototype.remainder=function(t){var e=v();return this.divRemTo(t,null,e),e},n.prototype.divideAndRemainder=function(t){var e=v(),r=v();return this.divRemTo(t,e,r),[e,r]},n.prototype.modPow=function(t,e){var r=t.bitLength(),i,s=L(1),a;if(r<=0)return s;r<18?i=1:r<48?i=3:r<144?i=4:r<768?i=5:i=6,r<8?a=new re(e):e.isEven()?a=new Ke(e):a=new ne(e);var o=[],u=3,h=i-1,l=(1<<i)-1;if(o[1]=a.convert(this),i>1){var p=v();for(a.sqrTo(o[1],p);u<=l;)o[u]=v(),a.mulTo(p,o[u-2],o[u]),u+=2}var d=t.t-1,c,m=!0,S=v(),D;for(r=et(t[d])-1;d>=0;){for(r>=h?c=t[d]>>r-h&l:(c=(t[d]&(1<<r+1)-1)<<h-r,d>0&&(c|=t[d-1]>>this.DB+r-h)),u=i;(c&1)==0;)c>>=1,--u;if((r-=u)<0&&(r+=this.DB,--d),m)o[c].copyTo(s),m=!1;else{for(;u>1;)a.sqrTo(s,S),a.sqrTo(S,s),u-=2;u>0?a.sqrTo(s,S):(D=s,s=S,S=D),a.mulTo(S,o[c],s)}for(;d>=0&&(t[d]&1<<r)==0;)a.sqrTo(s,S),D=s,s=S,S=D,--r<0&&(r=this.DB-1,--d)}return a.revert(s)},n.prototype.modInverse=function(t){var e=t.isEven();if(this.isEven()&&e||t.signum()==0)return n.ZERO;for(var r=t.clone(),i=this.clone(),s=L(1),a=L(0),o=L(0),u=L(1);r.signum()!=0;){for(;r.isEven();)r.rShiftTo(1,r),e?((!s.isEven()||!a.isEven())&&(s.addTo(this,s),a.subTo(t,a)),s.rShiftTo(1,s)):a.isEven()||a.subTo(t,a),a.rShiftTo(1,a);for(;i.isEven();)i.rShiftTo(1,i),e?((!o.isEven()||!u.isEven())&&(o.addTo(this,o),u.subTo(t,u)),o.rShiftTo(1,o)):u.isEven()||u.subTo(t,u),u.rShiftTo(1,u);r.compareTo(i)>=0?(r.subTo(i,r),e&&s.subTo(o,s),a.subTo(u,a)):(i.subTo(r,i),e&&o.subTo(s,o),u.subTo(a,u))}if(i.compareTo(n.ONE)!=0)return n.ZERO;if(u.compareTo(t)>=0)return u.subtract(t);if(u.signum()<0)u.addTo(t,u);else return u;return u.signum()<0?u.add(t):u},n.prototype.pow=function(t){return this.exp(t,new He)},n.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),r=t.s<0?t.negate():t.clone();if(e.compareTo(r)<0){var i=e;e=r,r=i}var s=e.getLowestSetBit(),a=r.getLowestSetBit();if(a<0)return e;for(s<a&&(a=s),a>0&&(e.rShiftTo(a,e),r.rShiftTo(a,r));e.signum()>0;)(s=e.getLowestSetBit())>0&&e.rShiftTo(s,e),(s=r.getLowestSetBit())>0&&r.rShiftTo(s,r),e.compareTo(r)>=0?(e.subTo(r,e),e.rShiftTo(1,e)):(r.subTo(e,r),r.rShiftTo(1,r));return a>0&&r.lShiftTo(a,r),r},n.prototype.isProbablePrime=function(t){var e,r=this.abs();if(r.t==1&&r[0]<=A[A.length-1]){for(e=0;e<A.length;++e)if(r[0]==A[e])return!0;return!1}if(r.isEven())return!1;for(e=1;e<A.length;){for(var i=A[e],s=e+1;s<A.length&&i<qe;)i*=A[s++];for(i=r.modInt(i);e<s;)if(i%A[e++]==0)return!1}return r.millerRabin(t)},n.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},n.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},n.prototype.fromString=function(t,e){var r;if(e==16)r=4;else if(e==8)r=3;else if(e==256)r=8;else if(e==2)r=1;else if(e==32)r=5;else if(e==4)r=2;else{this.fromRadix(t,e);return}this.t=0,this.s=0;for(var i=t.length,s=!1,a=0;--i>=0;){var o=r==8?+t[i]&255:se(t,i);if(o<0){t.charAt(i)=="-"&&(s=!0);continue}s=!1,a==0?this[this.t++]=o:a+r>this.DB?(this[this.t-1]|=(o&(1<<this.DB-a)-1)<<a,this[this.t++]=o>>this.DB-a):this[this.t-1]|=o<<a,a+=r,a>=this.DB&&(a-=this.DB)}r==8&&(+t[0]&128)!=0&&(this.s=-1,a>0&&(this[this.t-1]|=(1<<this.DB-a)-1<<a)),this.clamp(),s&&n.ZERO.subTo(this,this)},n.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},n.prototype.dlShiftTo=function(t,e){var r;for(r=this.t-1;r>=0;--r)e[r+t]=this[r];for(r=t-1;r>=0;--r)e[r]=0;e.t=this.t+t,e.s=this.s},n.prototype.drShiftTo=function(t,e){for(var r=t;r<this.t;++r)e[r-t]=this[r];e.t=Math.max(this.t-t,0),e.s=this.s},n.prototype.lShiftTo=function(t,e){for(var r=t%this.DB,i=this.DB-r,s=(1<<i)-1,a=Math.floor(t/this.DB),o=this.s<<r&this.DM,u=this.t-1;u>=0;--u)e[u+a+1]=this[u]>>i|o,o=(this[u]&s)<<r;for(var u=a-1;u>=0;--u)e[u]=0;e[a]=o,e.t=this.t+a+1,e.s=this.s,e.clamp()},n.prototype.rShiftTo=function(t,e){e.s=this.s;var r=Math.floor(t/this.DB);if(r>=this.t){e.t=0;return}var i=t%this.DB,s=this.DB-i,a=(1<<i)-1;e[0]=this[r]>>i;for(var o=r+1;o<this.t;++o)e[o-r-1]|=(this[o]&a)<<s,e[o-r]=this[o]>>i;i>0&&(e[this.t-r-1]|=(this.s&a)<<s),e.t=this.t-r,e.clamp()},n.prototype.subTo=function(t,e){for(var r=0,i=0,s=Math.min(t.t,this.t);r<s;)i+=this[r]-t[r],e[r++]=i&this.DM,i>>=this.DB;if(t.t<this.t){for(i-=t.s;r<this.t;)i+=this[r],e[r++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;r<t.t;)i-=t[r],e[r++]=i&this.DM,i>>=this.DB;i-=t.s}e.s=i<0?-1:0,i<-1?e[r++]=this.DV+i:i>0&&(e[r++]=i),e.t=r,e.clamp()},n.prototype.multiplyTo=function(t,e){var r=this.abs(),i=t.abs(),s=r.t;for(e.t=s+i.t;--s>=0;)e[s]=0;for(s=0;s<i.t;++s)e[s+r.t]=r.am(0,i[s],e,s,0,r.t);e.s=0,e.clamp(),this.s!=t.s&&n.ZERO.subTo(e,e)},n.prototype.squareTo=function(t){for(var e=this.abs(),r=t.t=2*e.t;--r>=0;)t[r]=0;for(r=0;r<e.t-1;++r){var i=e.am(r,e[r],t,2*r,0,1);(t[r+e.t]+=e.am(r+1,2*e[r],t,2*r+1,i,e.t-r-1))>=e.DV&&(t[r+e.t]-=e.DV,t[r+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(r,e[r],t,2*r,0,1)),t.s=0,t.clamp()},n.prototype.divRemTo=function(t,e,r){var i=t.abs();if(!(i.t<=0)){var s=this.abs();if(s.t<i.t){e!=null&&e.fromInt(0),r!=null&&this.copyTo(r);return}r==null&&(r=v());var a=v(),o=this.s,u=t.s,h=this.DB-et(i[i.t-1]);h>0?(i.lShiftTo(h,a),s.lShiftTo(h,r)):(i.copyTo(a),s.copyTo(r));var l=a.t,p=a[l-1];if(p!=0){var d=p*(1<<this.F1)+(l>1?a[l-2]>>this.F2:0),c=this.FV/d,m=(1<<this.F1)/d,S=1<<this.F2,D=r.t,_=D-l,P=e??v();for(a.dlShiftTo(_,P),r.compareTo(P)>=0&&(r[r.t++]=1,r.subTo(P,r)),n.ONE.dlShiftTo(l,P),P.subTo(a,a);a.t<l;)a[a.t++]=0;for(;--_>=0;){var R=r[--D]==p?this.DM:Math.floor(r[D]*c+(r[D-1]+S)*m);if((r[D]+=a.am(0,R,r,_,0,l))<R)for(a.dlShiftTo(_,P),r.subTo(P,r);r[D]<--R;)r.subTo(P,r)}e!=null&&(r.drShiftTo(l,e),o!=u&&n.ZERO.subTo(e,e)),r.t=l,r.clamp(),h>0&&r.rShiftTo(h,r),o<0&&n.ZERO.subTo(r,r)}}},n.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if((t&1)==0)return 0;var e=t&3;return e=e*(2-(t&15)*e)&15,e=e*(2-(t&255)*e)&255,e=e*(2-((t&65535)*e&65535))&65535,e=e*(2-t*e%this.DV)%this.DV,e>0?this.DV-e:-e},n.prototype.isEven=function(){return(this.t>0?this[0]&1:this.s)==0},n.prototype.exp=function(t,e){if(t>4294967295||t<1)return n.ONE;var r=v(),i=v(),s=e.convert(this),a=et(t)-1;for(s.copyTo(r);--a>=0;)if(e.sqrTo(r,i),(t&1<<a)>0)e.mulTo(i,s,r);else{var o=r;r=i,i=o}return e.revert(r)},n.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},n.prototype.toRadix=function(t){if(t==null&&(t=10),this.signum()==0||t<2||t>36)return"0";var e=this.chunkSize(t),r=Math.pow(t,e),i=L(r),s=v(),a=v(),o="";for(this.divRemTo(i,s,a);s.signum()>0;)o=(r+a.intValue()).toString(t).substring(1)+o,s.divRemTo(i,s,a);return a.intValue().toString(t)+o},n.prototype.fromRadix=function(t,e){this.fromInt(0),e==null&&(e=10);for(var r=this.chunkSize(e),i=Math.pow(e,r),s=!1,a=0,o=0,u=0;u<t.length;++u){var h=se(t,u);if(h<0){t.charAt(u)=="-"&&this.signum()==0&&(s=!0);continue}o=e*o+h,++a>=r&&(this.dMultiply(i),this.dAddOffset(o,0),a=0,o=0)}a>0&&(this.dMultiply(Math.pow(e,a)),this.dAddOffset(o,0)),s&&n.ZERO.subTo(this,this)},n.prototype.fromNumber=function(t,e,r){if(typeof e=="number")if(t<2)this.fromInt(1);else for(this.fromNumber(t,r),this.testBit(t-1)||this.bitwiseTo(n.ONE.shiftLeft(t-1),Q,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(e);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(n.ONE.shiftLeft(t-1),this);else{var i=[],s=t&7;i.length=(t>>3)+1,e.nextBytes(i),s>0?i[0]&=(1<<s)-1:i[0]=0,this.fromString(i,256)}},n.prototype.bitwiseTo=function(t,e,r){var i,s,a=Math.min(t.t,this.t);for(i=0;i<a;++i)r[i]=e(this[i],t[i]);if(t.t<this.t){for(s=t.s&this.DM,i=a;i<this.t;++i)r[i]=e(this[i],s);r.t=this.t}else{for(s=this.s&this.DM,i=a;i<t.t;++i)r[i]=e(s,t[i]);r.t=t.t}r.s=e(this.s,t.s),r.clamp()},n.prototype.changeBit=function(t,e){var r=n.ONE.shiftLeft(t);return this.bitwiseTo(r,e,r),r},n.prototype.addTo=function(t,e){for(var r=0,i=0,s=Math.min(t.t,this.t);r<s;)i+=this[r]+t[r],e[r++]=i&this.DM,i>>=this.DB;if(t.t<this.t){for(i+=t.s;r<this.t;)i+=this[r],e[r++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;r<t.t;)i+=t[r],e[r++]=i&this.DM,i>>=this.DB;i+=t.s}e.s=i<0?-1:0,i>0?e[r++]=i:i<-1&&(e[r++]=this.DV+i),e.t=r,e.clamp()},n.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},n.prototype.dAddOffset=function(t,e){if(t!=0){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},n.prototype.multiplyLowerTo=function(t,e,r){var i=Math.min(this.t+t.t,e);for(r.s=0,r.t=i;i>0;)r[--i]=0;for(var s=r.t-this.t;i<s;++i)r[i+this.t]=this.am(0,t[i],r,i,0,this.t);for(var s=Math.min(t.t,e);i<s;++i)this.am(0,t[i],r,i,0,e-i);r.clamp()},n.prototype.multiplyUpperTo=function(t,e,r){--e;var i=r.t=this.t+t.t-e;for(r.s=0;--i>=0;)r[i]=0;for(i=Math.max(e-this.t,0);i<t.t;++i)r[this.t+i-e]=this.am(e-i,t[i],r,0,0,this.t+i-e);r.clamp(),r.drShiftTo(1,r)},n.prototype.modInt=function(t){if(t<=0)return 0;var e=this.DV%t,r=this.s<0?t-1:0;if(this.t>0)if(e==0)r=this[0]%t;else for(var i=this.t-1;i>=0;--i)r=(e*r+this[i])%t;return r},n.prototype.millerRabin=function(t){var e=this.subtract(n.ONE),r=e.getLowestSetBit();if(r<=0)return!1;var i=e.shiftRight(r);t=t+1>>1,t>A.length&&(t=A.length);for(var s=v(),a=0;a<t;++a){s.fromInt(A[Math.floor(Math.random()*A.length)]);var o=s.modPow(i,this);if(o.compareTo(n.ONE)!=0&&o.compareTo(e)!=0){for(var u=1;u++<r&&o.compareTo(e)!=0;)if(o=o.modPowInt(2,this),o.compareTo(n.ONE)==0)return!1;if(o.compareTo(e)!=0)return!1}}return!0},n.prototype.square=function(){var t=v();return this.squareTo(t),t},n.prototype.gcda=function(t,e){var r=this.s<0?this.negate():this.clone(),i=t.s<0?t.negate():t.clone();if(r.compareTo(i)<0){var s=r;r=i,i=s}var a=r.getLowestSetBit(),o=i.getLowestSetBit();if(o<0){e(r);return}a<o&&(o=a),o>0&&(r.rShiftTo(o,r),i.rShiftTo(o,i));var u=function(){(a=r.getLowestSetBit())>0&&r.rShiftTo(a,r),(a=i.getLowestSetBit())>0&&i.rShiftTo(a,i),r.compareTo(i)>=0?(r.subTo(i,r),r.rShiftTo(1,r)):(i.subTo(r,i),i.rShiftTo(1,i)),r.signum()>0?setTimeout(u,0):(o>0&&i.lShiftTo(o,i),setTimeout(function(){e(i)},0))};setTimeout(u,10)},n.prototype.fromNumberAsync=function(t,e,r,i){if(typeof e=="number")if(t<2)this.fromInt(1);else{this.fromNumber(t,r),this.testBit(t-1)||this.bitwiseTo(n.ONE.shiftLeft(t-1),Q,this),this.isEven()&&this.dAddOffset(1,0);var s=this,a=function(){s.dAddOffset(2,0),s.bitLength()>t&&s.subTo(n.ONE.shiftLeft(t-1),s),s.isProbablePrime(e)?setTimeout(function(){i()},0):setTimeout(a,0)};setTimeout(a,0)}else{var o=[],u=t&7;o.length=(t>>3)+1,e.nextBytes(o),u>0?o[0]&=(1<<u)-1:o[0]=0,this.fromString(o,256)}},n})(),He=(function(){function n(){}return n.prototype.convert=function(t){return t},n.prototype.revert=function(t){return t},n.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r)},n.prototype.sqrTo=function(t,e){t.squareTo(e)},n})(),re=(function(){function n(t){this.m=t}return n.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},n.prototype.revert=function(t){return t},n.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},n.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},n.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},n})(),ne=(function(){function n(t){this.m=t,this.mp=t.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}return n.prototype.convert=function(t){var e=v();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(g.ZERO)>0&&this.m.subTo(e,e),e},n.prototype.revert=function(t){var e=v();return t.copyTo(e),this.reduce(e),e},n.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var r=t[e]&32767,i=r*this.mpl+((r*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;for(r=e+this.m.t,t[r]+=this.m.am(0,i,t,e,0,this.m.t);t[r]>=t.DV;)t[r]-=t.DV,t[++r]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},n.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},n.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},n})(),Ke=(function(){function n(t){this.m=t,this.r2=v(),this.q3=v(),g.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t)}return n.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=v();return t.copyTo(e),this.reduce(e),e},n.prototype.revert=function(t){return t},n.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},n.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},n.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},n})();function v(){return new g(null)}function b(n,t){return new g(n,t)}var ie=typeof navigator<"u";ie&&ee&&navigator.appName=="Microsoft Internet Explorer"?(g.prototype.am=function(t,e,r,i,s,a){for(var o=e&32767,u=e>>15;--a>=0;){var h=this[t]&32767,l=this[t++]>>15,p=u*h+l*o;h=o*h+((p&32767)<<15)+r[i]+(s&1073741823),s=(h>>>30)+(p>>>15)+u*l+(s>>>30),r[i++]=h&1073741823}return s},j=30):ie&&ee&&navigator.appName!="Netscape"?(g.prototype.am=function(t,e,r,i,s,a){for(;--a>=0;){var o=e*this[t++]+r[i]+s;s=Math.floor(o/67108864),r[i++]=o&67108863}return s},j=26):(g.prototype.am=function(t,e,r,i,s,a){for(var o=e&16383,u=e>>14;--a>=0;){var h=this[t]&16383,l=this[t++]>>14,p=u*h+l*o;h=o*h+((p&16383)<<14)+r[i]+s,s=(h>>28)+(p>>14)+u*l,r[i++]=h&268435455}return s},j=28),g.prototype.DB=j,g.prototype.DM=(1<<j)-1,g.prototype.DV=1<<j;var ct=52;g.prototype.FV=Math.pow(2,ct),g.prototype.F1=ct-j,g.prototype.F2=2*j-ct;var tt=[],z,B;for(z=48,B=0;B<=9;++B)tt[z++]=B;for(z=97,B=10;B<36;++B)tt[z++]=B;for(z=65,B=10;B<36;++B)tt[z++]=B;function se(n,t){var e=tt[n.charCodeAt(t)];return e??-1}function L(n){var t=v();return t.fromInt(n),t}function et(n){var t=1,e;return(e=n>>>16)!=0&&(n=e,t+=16),(e=n>>8)!=0&&(n=e,t+=8),(e=n>>4)!=0&&(n=e,t+=4),(e=n>>2)!=0&&(n=e,t+=2),(e=n>>1)!=0&&(n=e,t+=1),t}g.ZERO=L(0),g.ONE=L(1);var Ue=(function(){function n(){this.i=0,this.j=0,this.S=[]}return n.prototype.init=function(t){var e,r,i;for(e=0;e<256;++e)this.S[e]=e;for(r=0,e=0;e<256;++e)r=r+this.S[e]+t[e%t.length]&255,i=this.S[e],this.S[e]=this.S[r],this.S[r]=i;this.i=0,this.j=0},n.prototype.next=function(){var t;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,t=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=t,this.S[t+this.S[this.i]&255]},n})();function Ge(){return new Ue}var oe=256,rt,M=null,I;if(M==null){M=[],I=0;var nt=void 0;if(typeof window<"u"&&self.crypto&&self.crypto.getRandomValues){var pt=new Uint32Array(256);for(self.crypto.getRandomValues(pt),nt=0;nt<pt.length;++nt)M[I++]=pt[nt]&255}var it=0,st=function(n){if(it=it||0,it>=256||I>=oe){self.removeEventListener?self.removeEventListener("mousemove",st,!1):self.detachEvent&&self.detachEvent("onmousemove",st);return}try{var t=n.x+n.y;M[I++]=t&255,it+=1}catch{}};typeof window<"u"&&(self.addEventListener?self.addEventListener("mousemove",st,!1):self.attachEvent&&self.attachEvent("onmousemove",st))}function ze(){if(rt==null){for(rt=Ge();I<oe;){var n=Math.floor(65536*Math.random());M[I++]=n&255}for(rt.init(M),I=0;I<M.length;++I)M[I]=0;I=0}return rt.next()}var ot=(function(){function n(){}return n.prototype.nextBytes=function(t){for(var e=0;e<t.length;++e)t[e]=ze()},n})();function gt(n){return $e(rr(Ze(n),n.length*8))}function ae(n){for(var t="0123456789abcdef",e="",r=0;r<n.length;r++){var i=n.charCodeAt(r);e+=t.charAt(i>>>4&15)+t.charAt(i&15)}return e}function Ze(n){for(var t=Array(n.length>>2),e=0;e<t.length;e++)t[e]=0;for(var e=0;e<n.length*8;e+=8)t[e>>5]|=(n.charCodeAt(e/8)&255)<<24-e%32;return t}function $e(n){for(var t="",e=0;e<n.length*32;e+=8)t+=String.fromCharCode(n[e>>5]>>>24-e%32&255);return t}function N(n,t){return n>>>t|n<<32-t}function ue(n,t){return n>>>t}function Je(n,t,e){return n&t^~n&e}function Ye(n,t,e){return n&t^n&e^t&e}function Xe(n){return N(n,2)^N(n,13)^N(n,22)}function We(n){return N(n,6)^N(n,11)^N(n,25)}function Qe(n){return N(n,7)^N(n,18)^ue(n,3)}function tr(n){return N(n,17)^N(n,19)^ue(n,10)}var er=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function rr(n,t){var e=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),r=new Array(64),i,s,a,o,u,h,l,p,d,c,m,S;for(n[t>>5]|=128<<24-t%32,n[(t+64>>9<<4)+15]=t,d=0;d<n.length;d+=16){for(i=e[0],s=e[1],a=e[2],o=e[3],u=e[4],h=e[5],l=e[6],p=e[7],c=0;c<64;c++)c<16?r[c]=n[c+d]:r[c]=w(w(w(tr(r[c-2]),r[c-7]),Qe(r[c-15])),r[c-16]),m=w(w(w(w(p,We(u)),Je(u,h,l)),er[c]),r[c]),S=w(Xe(i),Ye(i,s,a)),p=l,l=h,h=u,u=w(o,m),o=a,a=s,s=i,i=w(m,S);e[0]=w(i,e[0]),e[1]=w(s,e[1]),e[2]=w(a,e[2]),e[3]=w(o,e[3]),e[4]=w(u,e[4]),e[5]=w(h,e[5]),e[6]=w(l,e[6]),e[7]=w(p,e[7])}return e}function w(n,t){var e=(n&65535)+(t&65535),r=(n>>16)+(t>>16)+(e>>16);return r<<16|e&65535}function nr(n,t){if(t<n.length+22)return console.error("Message too long for RSA"),null;for(var e=t-n.length-6,r="",i=0;i<e;i+=2)r+="ff";var s="0001"+r+"00"+n;return b(s,16)}function ir(n,t){if(t<n.length+11)return console.error("Message too long for RSA"),null;for(var e=[],r=n.length-1;r>=0&&t>0;){var i=n.charCodeAt(r--);i<128?e[--t]=i:i>127&&i<2048?(e[--t]=i&63|128,e[--t]=i>>6|192):(e[--t]=i&63|128,e[--t]=i>>6&63|128,e[--t]=i>>12|224)}e[--t]=0;for(var s=new ot,a=[];t>2;){for(a[0]=0;a[0]==0;)s.nextBytes(a);e[--t]=a[0]}return e[--t]=2,e[--t]=0,new g(e)}function fe(n,t,e){for(var r="",i=0;r.length<t;)r+=e(String.fromCharCode.apply(String,n.concat([(i&4278190080)>>24,(i&16711680)>>16,(i&65280)>>8,i&255]))),i+=1;return r}var sr=32;function or(n,t){var e=sr,r=gt;if(n.length+2*e+2>t)throw"Message too long for RSA";var i="",s;for(s=0;s<t-n.length-2*e-2;s+=1)i+="\0";var a=r("")+i+""+n,o=new Array(e);new ot().nextBytes(o);var u=fe(o,a.length,r),h=[];for(s=0;s<a.length;s+=1)h[s]=a.charCodeAt(s)^u.charCodeAt(s);var l=fe(h,o.length,r),p=[0];for(s=0;s<o.length;s+=1)p[s+1]=o[s]^l.charCodeAt(s);return new g(p.concat(h))}var ar=(function(){function n(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return n.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)},n.prototype.doPrivate=function(t){if(this.p==null||this.q==null)return t.modPow(this.d,this.n);for(var e=t.mod(this.p).modPow(this.dmp1,this.p),r=t.mod(this.q).modPow(this.dmq1,this.q);e.compareTo(r)<0;)e=e.add(this.p);return e.subtract(r).multiply(this.coeff).mod(this.p).multiply(this.q).add(r)},n.prototype.setPublic=function(t,e){t!=null&&e!=null&&t.length>0&&e.length>0?(this.n=b(t,16),this.e=parseInt(e,16)):console.error("Invalid RSA public key")},n.prototype.encrypt=function(t,e){typeof e>"u"&&(e=ir);var r=this.n.bitLength()+7>>3,i=e(t,r);if(i==null)return null;var s=this.doPublic(i);if(s==null)return null;for(var a=s.toString(16),o=a.length,u=0;u<r*2-o;u++)a="0"+a;return a},n.prototype.setPrivate=function(t,e,r){t!=null&&e!=null&&t.length>0&&e.length>0?(this.n=b(t,16),this.e=parseInt(e,16),this.d=b(r,16)):console.error("Invalid RSA private key")},n.prototype.setPrivateEx=function(t,e,r,i,s,a,o,u){t!=null&&e!=null&&t.length>0&&e.length>0?(this.n=b(t,16),this.e=parseInt(e,16),this.d=b(r,16),this.p=b(i,16),this.q=b(s,16),this.dmp1=b(a,16),this.dmq1=b(o,16),this.coeff=b(u,16)):console.error("Invalid RSA private key")},n.prototype.generate=function(t,e){var r=new ot,i=t>>1;this.e=parseInt(e,16);for(var s=new g(e,16);;){for(;this.p=new g(t-i,1,r),!(this.p.subtract(g.ONE).gcd(s).compareTo(g.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new g(i,1,r),!(this.q.subtract(g.ONE).gcd(s).compareTo(g.ONE)==0&&this.q.isProbablePrime(10)););if(this.p.compareTo(this.q)<=0){var a=this.p;this.p=this.q,this.q=a}var o=this.p.subtract(g.ONE),u=this.q.subtract(g.ONE),h=o.multiply(u);if(h.gcd(s).compareTo(g.ONE)==0){this.n=this.p.multiply(this.q),this.d=s.modInverse(h),this.dmp1=this.d.mod(o),this.dmq1=this.d.mod(u),this.coeff=this.q.modInverse(this.p);break}}},n.prototype.decrypt=function(t){var e=b(t,16),r=this.doPrivate(e);return r==null?null:ur(r,this.n.bitLength()+7>>3)},n.prototype.generateAsync=function(t,e,r){var i=new ot,s=t>>1;this.e=parseInt(e,16);var a=new g(e,16),o=this,u=function(){var h=function(){if(o.p.compareTo(o.q)<=0){var d=o.p;o.p=o.q,o.q=d}var c=o.p.subtract(g.ONE),m=o.q.subtract(g.ONE),S=c.multiply(m);S.gcd(a).compareTo(g.ONE)==0?(o.n=o.p.multiply(o.q),o.d=a.modInverse(S),o.dmp1=o.d.mod(c),o.dmq1=o.d.mod(m),o.coeff=o.q.modInverse(o.p),setTimeout(function(){r()},0)):setTimeout(u,0)},l=function(){o.q=v(),o.q.fromNumberAsync(s,1,i,function(){o.q.subtract(g.ONE).gcda(a,function(d){d.compareTo(g.ONE)==0&&o.q.isProbablePrime(10)?setTimeout(h,0):setTimeout(l,0)})})},p=function(){o.p=v(),o.p.fromNumberAsync(t-s,1,i,function(){o.p.subtract(g.ONE).gcda(a,function(d){d.compareTo(g.ONE)==0&&o.p.isProbablePrime(10)?setTimeout(l,0):setTimeout(p,0)})})};setTimeout(p,0)};setTimeout(u,0)},n.prototype.sign=function(t,e,r){var i=fr(r),s=i+e(t).toString(),a=this.n.bitLength()/4,o=nr(s,a);if(o==null)return null;var u=this.doPrivate(o);if(u==null)return null;for(var h=u.toString(16),l=h.length,p=0;p<a-l;p++)h="0"+h;return h},n.prototype.verify=function(t,e,r){var i=b(e,16),s=this.doPublic(i);if(s==null)return null;var a=s.toString(16).replace(/^1f+00/,""),o=hr(a);return o==r(t).toString()},n})();function ur(n,t){for(var e=n.toByteArray(),r=0;r<e.length&&e[r]==0;)++r;if(e.length-r!=t-1||e[r]!=2)return null;for(++r;e[r]!=0;)if(++r>=e.length)return null;for(var i="";++r<e.length;){var s=e[r]&255;s<128?i+=String.fromCharCode(s):s>191&&s<224?(i+=String.fromCharCode((s&31)<<6|e[r+1]&63),++r):(i+=String.fromCharCode((s&15)<<12|(e[r+1]&63)<<6|e[r+2]&63),r+=2)}return i}var at={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function fr(n){return at[n]||""}function hr(n){for(var t in at)if(at.hasOwnProperty(t)){var e=at[t],r=e.length;if(n.substring(0,r)==e)return n.substring(r)}return n}function E(n,t,e){if(!t||!n)throw new Error("extend failed, please check that all dependencies are included.");var r=function(){};r.prototype=t.prototype,n.prototype=new r,n.prototype.constructor=n,n.superclass=t.prototype,t.prototype.constructor==Object.prototype.constructor&&(t.prototype.constructor=t)}/**
|
|
9
|
-
* @fileOverview
|
|
10
|
-
* @name asn1-1.0.js
|
|
11
|
-
* @author Kenji Urushima kenji.urushima@gmail.com
|
|
12
|
-
* @version asn1 1.0.13 (2017-Jun-02)
|
|
13
|
-
* @since jsrsasign 2.1
|
|
14
|
-
* @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
|
|
15
|
-
*/var f={};(typeof f.asn1>"u"||!f.asn1)&&(f.asn1={}),f.asn1.ASN1Util=new function(){this.integerToByteHex=function(n){var t=n.toString(16);return t.length%2==1&&(t="0"+t),t},this.bigIntToMinTwosComplementsHex=function(n){var t=n.toString(16);if(t.substring(0,1)!="-")t.length%2==1?t="0"+t:t.match(/^[0-7]/)||(t="00"+t);else{var e=t.substring(1),r=e.length;r%2==1?r+=1:t.match(/^[0-7]/)||(r+=2);for(var i="",s=0;s<r;s++)i+="f";var a=new g(i,16),o=a.xor(n).add(g.ONE);t=o.toString(16).replace(/^-/,"")}return t},this.getPEMStringFromHex=function(n,t){return hextopem(n,t)},this.newObject=function(n){var t=f,e=t.asn1,r=e.DERBoolean,i=e.DERInteger,s=e.DERBitString,a=e.DEROctetString,o=e.DERNull,u=e.DERObjectIdentifier,h=e.DEREnumerated,l=e.DERUTF8String,p=e.DERNumericString,d=e.DERPrintableString,c=e.DERTeletexString,m=e.DERIA5String,S=e.DERUTCTime,D=e.DERGeneralizedTime,_=e.DERSequence,P=e.DERSet,R=e.DERTaggedObject,Y=e.ASN1Util.newObject,ge=Object.keys(n);if(ge.length!=1)throw"key of param shall be only one.";var y=ge[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+y+":")==-1)throw"undefined key: "+y;if(y=="bool")return new r(n[y]);if(y=="int")return new i(n[y]);if(y=="bitstr")return new s(n[y]);if(y=="octstr")return new a(n[y]);if(y=="null")return new o(n[y]);if(y=="oid")return new u(n[y]);if(y=="enum")return new h(n[y]);if(y=="utf8str")return new l(n[y]);if(y=="numstr")return new p(n[y]);if(y=="prnstr")return new d(n[y]);if(y=="telstr")return new c(n[y]);if(y=="ia5str")return new m(n[y]);if(y=="utctime")return new S(n[y]);if(y=="gentime")return new D(n[y]);if(y=="seq"){for(var X=n[y],W=[],q=0;q<X.length;q++){var vt=Y(X[q]);W.push(vt)}return new _({array:W})}if(y=="set"){for(var X=n[y],W=[],q=0;q<X.length;q++){var vt=Y(X[q]);W.push(vt)}return new P({array:W})}if(y=="tag"){var V=n[y];if(Object.prototype.toString.call(V)==="[object Array]"&&V.length==3){var dr=Y(V[2]);return new R({tag:V[0],explicit:V[1],obj:dr})}else{var ut={};if(V.explicit!==void 0&&(ut.explicit=V.explicit),V.tag!==void 0&&(ut.tag=V.tag),V.obj===void 0)throw"obj shall be specified for 'tag'.";return ut.obj=Y(V.obj),new R(ut)}}},this.jsonToASN1HEX=function(n){var t=this.newObject(n);return t.getEncodedHex()}},f.asn1.ASN1Util.oidHexToInt=function(n){for(var i="",t=parseInt(n.substring(0,2),16),e=Math.floor(t/40),r=t%40,i=e+"."+r,s="",a=2;a<n.length;a+=2){var o=parseInt(n.substring(a,a+2),16),u=("00000000"+o.toString(2)).slice(-8);if(s=s+u.substring(1,8),u.substring(0,1)=="0"){var h=new g(s,2);i=i+"."+h.toString(10),s=""}}return i},f.asn1.ASN1Util.oidIntToHex=function(n){var t=function(o){var u=o.toString(16);return u.length==1&&(u="0"+u),u},e=function(o){var u="",h=new g(o,10),l=h.toString(2),p=7-l.length%7;p==7&&(p=0);for(var d="",c=0;c<p;c++)d+="0";l=d+l;for(var c=0;c<l.length-1;c+=7){var m=l.substring(c,c+7);c!=l.length-7&&(m="1"+m),u+=t(parseInt(m,2))}return u};if(!n.match(/^[0-9.]+$/))throw"malformed oid string: "+n;var r="",i=n.split("."),s=parseInt(i[0])*40+parseInt(i[1]);r+=t(s),i.splice(0,2);for(var a=0;a<i.length;a++)r+=e(i[a]);return r},f.asn1.ASN1Object=function(){var n="";this.getLengthHexFromValue=function(){if(typeof this.hV>"u"||this.hV==null)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+n.length+",v="+this.hV;var t=this.hV.length/2,e=t.toString(16);if(e.length%2==1&&(e="0"+e),t<128)return e;var r=e.length/2;if(r>15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);var i=128+r;return i.toString(16)+e},this.getEncodedHex=function(){return(this.hTLV==null||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},f.asn1.DERAbstractString=function(n){f.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(this.s)},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof n<"u"&&(typeof n=="string"?this.setString(n):typeof n.str<"u"?this.setString(n.str):typeof n.hex<"u"&&this.setStringHex(n.hex))},E(f.asn1.DERAbstractString,f.asn1.ASN1Object),f.asn1.DERAbstractTime=function(n){f.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(t){utc=t.getTime()+t.getTimezoneOffset()*6e4;var e=new Date(utc);return e},this.formatDate=function(t,e,r){var i=this.zeroPadding,s=this.localDateToUTC(t),a=String(s.getFullYear());e=="utc"&&(a=a.substring(2,4));var o=i(String(s.getMonth()+1),2),u=i(String(s.getDate()),2),h=i(String(s.getHours()),2),l=i(String(s.getMinutes()),2),p=i(String(s.getSeconds()),2),d=a+o+u+h+l+p;if(r===!0){var c=s.getMilliseconds();if(c!=0){var m=i(String(c),3);m=m.replace(/[0]+$/,""),d=d+"."+m}}return d+"Z"},this.zeroPadding=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(t)},this.setByDateValue=function(t,e,r,i,s,a){var o=new Date(Date.UTC(t,e-1,r,i,s,a,0));this.setByDate(o)},this.getFreshValueHex=function(){return this.hV}},E(f.asn1.DERAbstractTime,f.asn1.ASN1Object),f.asn1.DERAbstractStructured=function(n){f.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,typeof n<"u"&&typeof n.array<"u"&&(this.asn1Array=n.array)},E(f.asn1.DERAbstractStructured,f.asn1.ASN1Object),f.asn1.DERBoolean=function(){f.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},E(f.asn1.DERBoolean,f.asn1.ASN1Object),f.asn1.DERInteger=function(n){f.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=f.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new g(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof n<"u"&&(typeof n.bigint<"u"?this.setByBigInteger(n.bigint):typeof n.int<"u"?this.setByInteger(n.int):typeof n=="number"?this.setByInteger(n):typeof n.hex<"u"&&this.setValueHex(n.hex))},E(f.asn1.DERInteger,f.asn1.ASN1Object),f.asn1.DERBitString=function(n){if(n!==void 0&&typeof n.obj<"u"){var t=f.asn1.ASN1Util.newObject(n.obj);n.hex="00"+t.getEncodedHex()}f.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(e){this.hTLV=null,this.isModified=!0,this.hV=e},this.setUnusedBitsAndHexValue=function(e,r){if(e<0||7<e)throw"unused bits shall be from 0 to 7: u = "+e;var i="0"+e;this.hTLV=null,this.isModified=!0,this.hV=i+r},this.setByBinaryString=function(e){e=e.replace(/0+$/,"");var r=8-e.length%8;r==8&&(r=0);for(var i=0;i<=r;i++)e+="0";for(var s="",i=0;i<e.length-1;i+=8){var a=e.substring(i,i+8),o=parseInt(a,2).toString(16);o.length==1&&(o="0"+o),s+=o}this.hTLV=null,this.isModified=!0,this.hV="0"+r+s},this.setByBooleanArray=function(e){for(var r="",i=0;i<e.length;i++)e[i]==!0?r+="1":r+="0";this.setByBinaryString(r)},this.newFalseArray=function(e){for(var r=new Array(e),i=0;i<e;i++)r[i]=!1;return r},this.getFreshValueHex=function(){return this.hV},typeof n<"u"&&(typeof n=="string"&&n.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(n):typeof n.hex<"u"?this.setHexValueIncludingUnusedBits(n.hex):typeof n.bin<"u"?this.setByBinaryString(n.bin):typeof n.array<"u"&&this.setByBooleanArray(n.array))},E(f.asn1.DERBitString,f.asn1.ASN1Object),f.asn1.DEROctetString=function(n){if(n!==void 0&&typeof n.obj<"u"){var t=f.asn1.ASN1Util.newObject(n.obj);n.hex=t.getEncodedHex()}f.asn1.DEROctetString.superclass.constructor.call(this,n),this.hT="04"},E(f.asn1.DEROctetString,f.asn1.DERAbstractString),f.asn1.DERNull=function(){f.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},E(f.asn1.DERNull,f.asn1.ASN1Object),f.asn1.DERObjectIdentifier=function(n){var t=function(r){var i=r.toString(16);return i.length==1&&(i="0"+i),i},e=function(r){var i="",s=new g(r,10),a=s.toString(2),o=7-a.length%7;o==7&&(o=0);for(var u="",h=0;h<o;h++)u+="0";a=u+a;for(var h=0;h<a.length-1;h+=7){var l=a.substring(h,h+7);h!=a.length-7&&(l="1"+l),i+=t(parseInt(l,2))}return i};f.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(r){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=r},this.setValueOidString=function(r){if(!r.match(/^[0-9.]+$/))throw"malformed oid string: "+r;var i="",s=r.split("."),a=parseInt(s[0])*40+parseInt(s[1]);i+=t(a),s.splice(0,2);for(var o=0;o<s.length;o++)i+=e(s[o]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=i},this.setValueName=function(r){var i=f.asn1.x509.OID.name2oid(r);if(i!=="")this.setValueOidString(i);else throw"DERObjectIdentifier oidName undefined: "+r},this.getFreshValueHex=function(){return this.hV},n!==void 0&&(typeof n=="string"?n.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(n):this.setValueName(n):n.oid!==void 0?this.setValueOidString(n.oid):n.hex!==void 0?this.setValueHex(n.hex):n.name!==void 0&&this.setValueName(n.name))},E(f.asn1.DERObjectIdentifier,f.asn1.ASN1Object),f.asn1.DEREnumerated=function(n){f.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=f.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new g(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof n<"u"&&(typeof n.int<"u"?this.setByInteger(n.int):typeof n=="number"?this.setByInteger(n):typeof n.hex<"u"&&this.setValueHex(n.hex))},E(f.asn1.DEREnumerated,f.asn1.ASN1Object),f.asn1.DERUTF8String=function(n){f.asn1.DERUTF8String.superclass.constructor.call(this,n),this.hT="0c"},E(f.asn1.DERUTF8String,f.asn1.DERAbstractString),f.asn1.DERNumericString=function(n){f.asn1.DERNumericString.superclass.constructor.call(this,n),this.hT="12"},E(f.asn1.DERNumericString,f.asn1.DERAbstractString),f.asn1.DERPrintableString=function(n){f.asn1.DERPrintableString.superclass.constructor.call(this,n),this.hT="13"},E(f.asn1.DERPrintableString,f.asn1.DERAbstractString),f.asn1.DERTeletexString=function(n){f.asn1.DERTeletexString.superclass.constructor.call(this,n),this.hT="14"},E(f.asn1.DERTeletexString,f.asn1.DERAbstractString),f.asn1.DERIA5String=function(n){f.asn1.DERIA5String.superclass.constructor.call(this,n),this.hT="16"},E(f.asn1.DERIA5String,f.asn1.DERAbstractString),f.asn1.DERUTCTime=function(n){f.asn1.DERUTCTime.superclass.constructor.call(this,n),this.hT="17",this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return typeof this.date>"u"&&typeof this.s>"u"&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},n!==void 0&&(n.str!==void 0?this.setString(n.str):typeof n=="string"&&n.match(/^[0-9]{12}Z$/)?this.setString(n):n.hex!==void 0?this.setStringHex(n.hex):n.date!==void 0&&this.setByDate(n.date))},E(f.asn1.DERUTCTime,f.asn1.DERAbstractTime),f.asn1.DERGeneralizedTime=function(n){f.asn1.DERGeneralizedTime.superclass.constructor.call(this,n),this.hT="18",this.withMillis=!1,this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return this.date===void 0&&this.s===void 0&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},n!==void 0&&(n.str!==void 0?this.setString(n.str):typeof n=="string"&&n.match(/^[0-9]{14}Z$/)?this.setString(n):n.hex!==void 0?this.setStringHex(n.hex):n.date!==void 0&&this.setByDate(n.date),n.millis===!0&&(this.withMillis=!0))},E(f.asn1.DERGeneralizedTime,f.asn1.DERAbstractTime),f.asn1.DERSequence=function(n){f.asn1.DERSequence.superclass.constructor.call(this,n),this.hT="30",this.getFreshValueHex=function(){for(var t="",e=0;e<this.asn1Array.length;e++){var r=this.asn1Array[e];t+=r.getEncodedHex()}return this.hV=t,this.hV}},E(f.asn1.DERSequence,f.asn1.DERAbstractStructured),f.asn1.DERSet=function(n){f.asn1.DERSet.superclass.constructor.call(this,n),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var t=new Array,e=0;e<this.asn1Array.length;e++){var r=this.asn1Array[e];t.push(r.getEncodedHex())}return this.sortFlag==!0&&t.sort(),this.hV=t.join(""),this.hV},typeof n<"u"&&typeof n.sortflag<"u"&&n.sortflag==!1&&(this.sortFlag=!1)},E(f.asn1.DERSet,f.asn1.DERAbstractStructured),f.asn1.DERTaggedObject=function(n){f.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(t,e,r){this.hT=e,this.isExplicit=t,this.asn1Object=r,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=r.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,e),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},typeof n<"u"&&(typeof n.tag<"u"&&(this.hT=n.tag),typeof n.explicit<"u"&&(this.isExplicit=n.explicit),typeof n.obj<"u"&&(this.asn1Object=n.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},E(f.asn1.DERTaggedObject,f.asn1.ASN1Object);var lr=(function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),he=(function(n){lr(t,n);function t(e){var r=n.call(this)||this;return e&&(typeof e=="string"?r.parseKey(e):(t.hasPrivateKeyProperty(e)||t.hasPublicKeyProperty(e))&&r.parsePropertiesFrom(e)),r}return t.prototype.parseKey=function(e){try{var r=0,i=0,s=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,a=s.test(e)?je.decode(e):ht.unarmor(e),o=ke.decode(a);if(o.sub.length===3&&(o=o.sub[2].sub[0]),o.sub.length===9){r=o.sub[1].getHexStringValue(),this.n=b(r,16),i=o.sub[2].getHexStringValue(),this.e=parseInt(i,16);var u=o.sub[3].getHexStringValue();this.d=b(u,16);var h=o.sub[4].getHexStringValue();this.p=b(h,16);var l=o.sub[5].getHexStringValue();this.q=b(l,16);var p=o.sub[6].getHexStringValue();this.dmp1=b(p,16);var d=o.sub[7].getHexStringValue();this.dmq1=b(d,16);var c=o.sub[8].getHexStringValue();this.coeff=b(c,16)}else if(o.sub.length===2)if(o.sub[0].sub){var m=o.sub[1],S=m.sub[0];r=S.sub[0].getHexStringValue(),this.n=b(r,16),i=S.sub[1].getHexStringValue(),this.e=parseInt(i,16)}else r=o.sub[0].getHexStringValue(),this.n=b(r,16),i=o.sub[1].getHexStringValue(),this.e=parseInt(i,16);else return!1;return!0}catch{return!1}},t.prototype.getPrivateBaseKey=function(){var e={array:[new f.asn1.DERInteger({int:0}),new f.asn1.DERInteger({bigint:this.n}),new f.asn1.DERInteger({int:this.e}),new f.asn1.DERInteger({bigint:this.d}),new f.asn1.DERInteger({bigint:this.p}),new f.asn1.DERInteger({bigint:this.q}),new f.asn1.DERInteger({bigint:this.dmp1}),new f.asn1.DERInteger({bigint:this.dmq1}),new f.asn1.DERInteger({bigint:this.coeff})]},r=new f.asn1.DERSequence(e);return r.getEncodedHex()},t.prototype.getPrivateBaseKeyB64=function(){return $(this.getPrivateBaseKey())},t.prototype.getPublicBaseKey=function(){var e=new f.asn1.DERSequence({array:[new f.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new f.asn1.DERNull]}),r=new f.asn1.DERSequence({array:[new f.asn1.DERInteger({bigint:this.n}),new f.asn1.DERInteger({int:this.e})]}),i=new f.asn1.DERBitString({hex:"00"+r.getEncodedHex()}),s=new f.asn1.DERSequence({array:[e,i]});return s.getEncodedHex()},t.prototype.getPublicBaseKeyB64=function(){return $(this.getPublicBaseKey())},t.wordwrap=function(e,r){if(r=r||64,!e)return e;var i="(.{1,"+r+`})( +|$
|
|
16
|
-
?)|(.{1,`+r+"})";return e.match(RegExp(i,"g")).join(`
|
|
17
|
-
`)},t.prototype.getPrivateKey=function(){var e=`-----BEGIN RSA PRIVATE KEY-----
|
|
18
|
-
`;return e+=t.wordwrap(this.getPrivateBaseKeyB64())+`
|
|
19
|
-
`,e+="-----END RSA PRIVATE KEY-----",e},t.prototype.getPublicKey=function(){var e=`-----BEGIN PUBLIC KEY-----
|
|
20
|
-
`;return e+=t.wordwrap(this.getPublicBaseKeyB64())+`
|
|
21
|
-
`,e+="-----END PUBLIC KEY-----",e},t.hasPublicKeyProperty=function(e){return e=e||{},e.hasOwnProperty("n")&&e.hasOwnProperty("e")},t.hasPrivateKeyProperty=function(e){return e=e||{},e.hasOwnProperty("n")&&e.hasOwnProperty("e")&&e.hasOwnProperty("d")&&e.hasOwnProperty("p")&&e.hasOwnProperty("q")&&e.hasOwnProperty("dmp1")&&e.hasOwnProperty("dmq1")&&e.hasOwnProperty("coeff")},t.prototype.parsePropertiesFrom=function(e){this.n=e.n,this.e=e.e,e.hasOwnProperty("d")&&(this.d=e.d,this.p=e.p,this.q=e.q,this.dmp1=e.dmp1,this.dmq1=e.dmq1,this.coeff=e.coeff)},t})(ar),dt,cr=typeof process<"u"?(dt=process.env)===null||dt===void 0?void 0:dt.npm_package_version:void 0,pr=(function(){function n(t){t===void 0&&(t={}),this.default_key_size=t.default_key_size?parseInt(t.default_key_size,10):1024,this.default_public_exponent=t.default_public_exponent||"010001",this.log=t.log||!1,this.key=t.key||null}return n.prototype.setKey=function(t){t?(this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new he(t)):!this.key&&this.log&&console.error("A key was not set.")},n.prototype.setPrivateKey=function(t){this.setKey(t)},n.prototype.setPublicKey=function(t){this.setKey(t)},n.prototype.decrypt=function(t){try{return this.getKey().decrypt(Wt(t))}catch{return!1}},n.prototype.encrypt=function(t){try{return $(this.getKey().encrypt(t))}catch{return!1}},n.prototype.encryptOAEP=function(t){try{return $(this.getKey().encrypt(t,or))}catch{return!1}},n.prototype.sign=function(t,e,r){e===void 0&&(e=function(i){return i}),r===void 0&&(r="");try{return $(this.getKey().sign(t,e,r))}catch{return!1}},n.prototype.signSha256=function(t){return this.sign(t,function(e){return ae(gt(e))},"sha256")},n.prototype.verify=function(t,e,r){r===void 0&&(r=function(i){return i});try{return this.getKey().verify(t,Wt(e),r)}catch{return!1}},n.prototype.verifySha256=function(t,e){return this.verify(t,e,function(r){return ae(gt(r))})},n.prototype.getKey=function(t){if(!this.key){if(this.key=new he,t&&{}.toString.call(t)==="[object Function]"){this.key.generateAsync(this.default_key_size,this.default_public_exponent,t);return}this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},n.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},n.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},n.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},n.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},n.version=cr,n})();const le={data:{key:""}},ce=async()=>{let n={status:200,message:"",...le};try{const e=(await O("/mbuhx0as4kui",{ajax:1,render:x(),json:1})).data;n.data={key:e.key}}catch(t){n={status:t.status||500,message:t.message,...le}}return n},pe={data:{msg:"",accessToken:"",fullName:"",unreadMailCount:"",status:"",username:"",walletAmount:"",captcha:""}},gr=async(n,t,e,r,i,s,a,o)=>{let u={status:200,message:"",...pe};const h=n,l=t,p=e,d=i;try{let c;s&&(c=(await ce()).data);const m=new pr;m.setPublicKey(a);let S=r.host.split(":")[0];const D=m.encrypt(S.trim());D&&S.length<53?S=D:S=S.trim();const _={};_.fr_username=m.encrypt(h.trim()),_.fr_password=m.encrypt(l.trim()),_.fr_gdcode=p,_.isApp=d,_.domain=S,_._token=o,_.json=1,_.encrypt=1,c&&Object.assign(_,c);const R=(await me("/kdink8anl8z3",_,{render:x(),json:1})).data;u.data={msg:R.msg??"",accessToken:R.access_token??"",fullName:R.fullname??"",unreadMailCount:R.news??"",status:R.status??"",username:R.username??"",walletAmount:R.wallet??"",captcha:R.captcha??""}}catch(c){u={status:c.status||500,message:c.message,...pe}}return u};T.Repository=ve,T.cmsList=xt,T.csLink=Dt,T.currentLang=Tt,T.eGame=_t,T.fishGames=St,T.getLocale=wt,T.getLoginKey=Rt,T.getSetting=At,T.home=yt,T.hotGames=mt,T.login=Ot,T.promotion=Et,T.trialGames=bt,Object.defineProperty(T,Symbol.toStringTag,{value:"Module"})}));
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("crypto-js")):"function"==typeof define&&define.amd?define(["exports","crypto-js"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self)["50p82u21t54k"]={},t.CryptoJS)}(this,function(t,e){"use strict";var n=Object.defineProperty,r=Object.defineProperties,s=Object.getOwnPropertyDescriptors,i=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,u=(t,e,r)=>e in t?n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,l=(t,e)=>{for(var n in e||(e={}))o.call(e,n)&&u(t,n,e[n]);if(i)for(var n of i(e))a.call(e,n)&&u(t,n,e[n]);return t},c=(t,e,n)=>new Promise((r,s)=>{var i=t=>{try{a(n.next(t))}catch(e){s(e)}},o=t=>{try{a(n.throw(t))}catch(e){s(e)}},a=t=>t.done?r(t.value):Promise.resolve(t.value).then(i,o);a((n=n.apply(t,e)).next())});function h(t){const e=Object.create(null);for(const n of t.split(","))e[n]=1;return t=>t in e}const f="production"!==process.env.NODE_ENV?Object.freeze({}):{};"production"===process.env.NODE_ENV||Object.freeze([]);const p=()=>{},d=t=>111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),g=Object.assign,m=Object.prototype.hasOwnProperty,v=(t,e)=>m.call(t,e),y=Array.isArray,b=t=>"[object Map]"===D(t),S=t=>"function"==typeof t,_=t=>"string"==typeof t,E=t=>"symbol"==typeof t,T=t=>null!==t&&"object"==typeof t,w=Object.prototype.toString,D=t=>w.call(t),O=t=>D(t).slice(8,-1),N=t=>_(t)&&"NaN"!==t&&"-"!==t[0]&&""+parseInt(t,10)===t,x=(()=>{const t=Object.create(null);return e=>t[e]||(t[e]=(t=>t.charAt(0).toUpperCase()+t.slice(1))(e))})(),V=(t,e)=>!Object.is(t,e);let R;const A=()=>R||(R="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});function B(t){if(y(t)){const e={};for(let n=0;n<t.length;n++){const r=t[n],s=_(r)?j(r):B(r);if(s)for(const t in s)e[t]=s[t]}return e}if(_(t)||T(t))return t}const P=/;(?![^(]*\))/g,I=/:([^]+)/,C=/\/\*[^]*?\*\//g;function j(t){const e={};return t.replace(C,"").split(P).forEach(t=>{if(t){const n=t.split(I);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function k(t){let e="";if(_(t))e=t;else if(y(t))for(let n=0;n<t.length;n++){const r=k(t[n]);r&&(e+=r+" ")}else if(T(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}let M,L=0;function F(){L++}function q(){if(--L>0)return;let t;for(;M;){let n=M;for(M=void 0;n;){const r=n.next;if(n.next=void 0,n.flags&=-9,1&n.flags)try{n.trigger()}catch(e){t||(t=e)}n=r}}if(t)throw t}class H{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0,"production"!==process.env.NODE_ENV&&(this.subsHead=void 0)}track(t){}trigger(t){this.version++,this.notify(t)}notify(t){F();try{if("production"!==process.env.NODE_ENV)for(let e=this.subsHead;e;e=e.nextSub)!e.sub.onTrigger||8&e.sub.flags||e.sub.onTrigger(g({effect:e.sub},t));for(let t=this.subs;t;t=t.prevSub)t.sub.notify()&&t.sub.dep.notify()}finally{q()}}}const U=new WeakMap,K=Symbol("production"!==process.env.NODE_ENV?"Object iterate":""),$=Symbol("production"!==process.env.NODE_ENV?"Map keys iterate":""),z=Symbol("production"!==process.env.NODE_ENV?"Array iterate":"");function G(t,e,n,r,s,i){const o=U.get(t);if(!o)return;const a=o=>{o&&("production"!==process.env.NODE_ENV?o.trigger({target:t,type:e,key:n,newValue:r,oldValue:s,oldTarget:i}):o.trigger())};if(F(),"clear"===e)o.forEach(a);else{const s=y(t),i=s&&N(n);if(s&&"length"===n){const t=Number(r);o.forEach((e,n)=>{("length"===n||n===z||!E(n)&&n>=t)&&a(e)})}else switch((void 0!==n||o.has(void 0))&&a(o.get(n)),i&&a(o.get(z)),e){case"add":s?i&&a(o.get("length")):(a(o.get(K)),b(t)&&a(o.get($)));break;case"delete":s||(a(o.get(K)),b(t)&&a(o.get($)));break;case"set":b(t)&&a(o.get(K))}}q()}function Z(t){const e=Vt(t);return e===t||Nt(t)?e:e.map(Rt)}function J(t){return Vt(t)}const W={__proto__:null,[Symbol.iterator](){return Y(this,Symbol.iterator,Rt)},concat(...t){return Z(this).concat(...t.map(t=>y(t)?Z(t):t))},entries(){return Y(this,"entries",t=>(t[1]=Rt(t[1]),t))},every(t,e){return Q(this,"every",t,e,void 0,arguments)},filter(t,e){return Q(this,"filter",t,e,t=>t.map(Rt),arguments)},find(t,e){return Q(this,"find",t,e,Rt,arguments)},findIndex(t,e){return Q(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return Q(this,"findLast",t,e,Rt,arguments)},findLastIndex(t,e){return Q(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return Q(this,"forEach",t,e,void 0,arguments)},includes(...t){return et(this,"includes",t)},indexOf(...t){return et(this,"indexOf",t)},join(t){return Z(this).join(t)},lastIndexOf(...t){return et(this,"lastIndexOf",t)},map(t,e){return Q(this,"map",t,e,void 0,arguments)},pop(){return nt(this,"pop")},push(...t){return nt(this,"push",t)},reduce(t,...e){return tt(this,"reduce",t,e)},reduceRight(t,...e){return tt(this,"reduceRight",t,e)},shift(){return nt(this,"shift")},some(t,e){return Q(this,"some",t,e,void 0,arguments)},splice(...t){return nt(this,"splice",t)},toReversed(){return Z(this).toReversed()},toSorted(t){return Z(this).toSorted(t)},toSpliced(...t){return Z(this).toSpliced(...t)},unshift(...t){return nt(this,"unshift",t)},values(){return Y(this,"values",Rt)}};function Y(t,e,n){const r=J(t),s=r[e]();return r===t||Nt(t)||(s._next=s.next,s.next=()=>{const t=s._next();return t.done||(t.value=n(t.value)),t}),s}const X=Array.prototype;function Q(t,e,n,r,s,i){const o=J(t),a=o!==t&&!Nt(t),u=o[e];if(u!==X[e]){const e=u.apply(t,i);return a?Rt(e):e}let l=n;o!==t&&(a?l=function(e,r){return n.call(this,Rt(e),r,t)}:n.length>2&&(l=function(e,r){return n.call(this,e,r,t)}));const c=u.call(o,l,r);return a&&s?s(c):c}function tt(t,e,n,r){const s=J(t);let i=n;return s!==t&&(Nt(t)?n.length>3&&(i=function(e,r,s){return n.call(this,e,r,s,t)}):i=function(e,r,s){return n.call(this,e,Rt(r),s,t)}),s[e](i,...r)}function et(t,e,n){const r=Vt(t),s=r[e](...n);return-1!==s&&!1!==s||!xt(n[0])?s:(n[0]=Vt(n[0]),r[e](...n))}function nt(t,e,n=[]){F();const r=Vt(t)[e].apply(t,n);return q(),r}const rt=h("__proto__,__v_isRef,__isVue"),st=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>"arguments"!==t&&"caller"!==t).map(t=>Symbol[t]).filter(E));function it(t){return E(t)||(t=String(t)),Vt(this).hasOwnProperty(t)}class ot{constructor(t=!1,e=!1){this._isReadonly=t,this._isShallow=e}get(t,e,n){if("__v_skip"===e)return t.__v_skip;const r=this._isReadonly,s=this._isShallow;if("__v_isReactive"===e)return!r;if("__v_isReadonly"===e)return r;if("__v_isShallow"===e)return s;if("__v_raw"===e)return n===(r?s?_t:St:s?bt:yt).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const i=y(t);if(!r){let t;if(i&&(t=W[e]))return t;if("hasOwnProperty"===e)return it}const o=Reflect.get(t,e,Bt(t)?t:n);if(E(e)?st.has(e):rt(e))return o;if(s)return o;if(Bt(o)){const t=i&&N(e)?o:o.value;return r&&T(t)?Tt(t):t}return T(o)?r?Tt(o):Et(o):o}}class at extends ot{constructor(t=!1){super(!1,t)}set(t,e,n,r){let s=t[e];if(!this._isShallow){const r=Ot(s);if(Nt(n)||Ot(n)||(s=Vt(s),n=Vt(n)),!y(t)&&Bt(s)&&!Bt(n))return r?("production"!==process.env.NODE_ENV&&(String(e),t[e]),!0):(s.value=n,!0)}const i=y(t)&&N(e)?Number(e)<t.length:v(t,e),o=Reflect.set(t,e,n,Bt(t)?t:r);return t===Vt(r)&&(i?V(n,s)&&G(t,"set",e,n,s):G(t,"add",e,n)),o}deleteProperty(t,e){const n=v(t,e),r=t[e],s=Reflect.deleteProperty(t,e);return s&&n&&G(t,"delete",e,void 0,r),s}has(t,e){const n=Reflect.has(t,e);return!E(e)||st.has(e),n}ownKeys(t){return Reflect.ownKeys(t)}}class ut extends ot{constructor(t=!1){super(!0,t)}set(t,e){return"production"!==process.env.NODE_ENV&&String(e),!0}deleteProperty(t,e){return"production"!==process.env.NODE_ENV&&String(e),!0}}const lt=new at,ct=new ut,ht=t=>t,ft=t=>Reflect.getPrototypeOf(t);function pt(t){return function(...e){return"production"!==process.env.NODE_ENV&&(e[0]&&e[0],x(t),Vt(this)),"delete"!==t&&("clear"===t?void 0:this)}}function dt(t,e){const n=function(t,e){const n={get(n){const r=this.__v_raw,s=Vt(r),i=Vt(n),{has:o}=ft(s),a=e?ht:t?At:Rt;return o.call(s,n)?a(r.get(n)):o.call(s,i)?a(r.get(i)):void(r!==s&&r.get(n))},get size(){const e=this.__v_raw;return!t&&Vt(e),e.size},has(t){const e=this.__v_raw;Vt(e);const n=Vt(t);return t===n?e.has(t):e.has(t)||e.has(n)},forEach(n,r){const s=this,i=s.__v_raw;Vt(i);const o=e?ht:t?At:Rt;return i.forEach((t,e)=>n.call(r,o(t),o(e),s))}};return g(n,t?{add:pt("add"),set:pt("set"),delete:pt("delete"),clear:pt("clear")}:{add(t){e||Nt(t)||Ot(t)||(t=Vt(t));const n=Vt(this);return ft(n).has.call(n,t)||(n.add(t),G(n,"add",t,t)),this},set(t,n){e||Nt(n)||Ot(n)||(n=Vt(n));const r=Vt(this),{has:s,get:i}=ft(r);let o=s.call(r,t);o?"production"!==process.env.NODE_ENV&&vt(r,s,t):(t=Vt(t),o=s.call(r,t));const a=i.call(r,t);return r.set(t,n),o?V(n,a)&&G(r,"set",t,n,a):G(r,"add",t,n),this},delete(t){const e=Vt(this),{has:n,get:r}=ft(e);let s=n.call(e,t);s?"production"!==process.env.NODE_ENV&&vt(e,n,t):(t=Vt(t),s=n.call(e,t));const i=r?r.call(e,t):void 0,o=e.delete(t);return s&&G(e,"delete",t,void 0,i),o},clear(){const t=Vt(this),e=0!==t.size,n="production"!==process.env.NODE_ENV?b(t)?new Map(t):new Set(t):void 0,r=t.clear();return e&&G(t,"clear",void 0,void 0,n),r}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=function(t,e,n){return function(...r){const s=this.__v_raw,i=Vt(s),o=b(i),a="entries"===t||t===Symbol.iterator&&o,u=s[t](...r),l=n?ht:e?At:Rt;return{next(){const{value:t,done:e}=u.next();return e?{value:t,done:e}:{value:a?[l(t[0]),l(t[1])]:l(t),done:e}},[Symbol.iterator](){return this}}}}(r,t,e)}),n}(t,e);return(e,r,s)=>"__v_isReactive"===r?!t:"__v_isReadonly"===r?t:"__v_raw"===r?e:Reflect.get(v(n,r)&&r in e?n:e,r,s)}const gt={get:dt(!1,!1)},mt={get:dt(!0,!1)};function vt(t,e,n){const r=Vt(n);r!==n&&e.call(t,r)&&O(t)}const yt=new WeakMap,bt=new WeakMap,St=new WeakMap,_t=new WeakMap;function Et(t){return Ot(t)?t:wt(t,!1,lt,gt,yt)}function Tt(t){return wt(t,!0,ct,mt,St)}function wt(t,e,n,r,s){if(!T(t))return"production"!==process.env.NODE_ENV&&String(t),t;if(t.__v_raw&&(!e||!t.__v_isReactive))return t;const i=(o=t).__v_skip||!Object.isExtensible(o)?0:function(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(O(o));var o;if(0===i)return t;const a=s.get(t);if(a)return a;const u=new Proxy(t,2===i?r:n);return s.set(t,u),u}function Dt(t){return Ot(t)?Dt(t.__v_raw):!(!t||!t.__v_isReactive)}function Ot(t){return!(!t||!t.__v_isReadonly)}function Nt(t){return!(!t||!t.__v_isShallow)}function xt(t){return!!t&&!!t.__v_raw}function Vt(t){const e=t&&t.__v_raw;return e?Vt(e):t}const Rt=t=>T(t)?Et(t):t,At=t=>T(t)?Tt(t):t;function Bt(t){return!!t&&!0===t.__v_isRef}const Pt=[];let It=!1;function Ct(t,...e){if(It)return;It=!0;const n=Pt.length?Pt[Pt.length-1].component:null,r=n&&n.appContext.config.warnHandler,s=function(){let t=Pt[Pt.length-1];if(!t)return[];const e=[];for(;t;){const n=e[0];n&&n.vnode===t?n.recurseCount++:e.push({vnode:t,recurseCount:0});const r=t.component&&t.component.parent;t=r&&r.vnode}return e}();if(r)Lt(r,n,11,[t+e.map(t=>{var e,n;return null!=(n=null==(e=t.toString)?void 0:e.call(t))?n:JSON.stringify(t)}).join(""),n&&n.proxy,s.map(({vnode:t})=>`at <${Te(n,t.type)}>`).join("\n"),s]);else{const n=[`[Vue warn]: ${t}`,...e];s.length&&n.push("\n",...function(t){const e=[];return t.forEach((t,n)=>{e.push(...0===n?[]:["\n"],...function({vnode:t,recurseCount:e}){const n=e>0?`... (${e} recursive calls)`:"",r=!!t.component&&null==t.component.parent,s=` at <${Te(t.component,t.type,r)}`,i=">"+n;return t.props?[s,...jt(t.props),i]:[s+i]}(t))}),e}(s))}It=!1}function jt(t){const e=[],n=Object.keys(t);return n.slice(0,3).forEach(n=>{e.push(...kt(n,t[n]))}),n.length>3&&e.push(" ..."),e}function kt(t,e,n){return _(e)?(e=JSON.stringify(e),n?e:[`${t}=${e}`]):"number"==typeof e||"boolean"==typeof e||null==e?n?e:[`${t}=${e}`]:Bt(e)?(e=kt(t,Vt(e.value),!0),n?e:[`${t}=Ref<`,e,">"]):S(e)?[`${t}=fn${e.name?`<${e.name}>`:""}`]:(e=Vt(e),n?e:[`${t}=`,e])}const Mt={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function Lt(t,e,n,r){try{return r?t(...r):t()}catch(s){Ft(s,e,n)}}function Ft(t,e,n,r=!0){const s=e?e.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=e&&e.appContext.config||f;if(e){let r=e.parent;const s=e.proxy,o="production"!==process.env.NODE_ENV?Mt[n]:`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){const e=r.ec;if(e)for(let n=0;n<e.length;n++)if(!1===e[n](t,s,o))return;r=r.parent}if(i)return void Lt(i,null,10,[t,s,o])}!function(t,e,n,r=!0,s=!1){if("production"!==process.env.NODE_ENV){const s=Mt[e];if(n&&(i=n,Pt.push(i)),Ct("Unhandled error"+(s?` during execution of ${s}`:"")),n&&Pt.pop(),r)throw t}else if(s)throw t;var i}(t,n,s,r,o)}const qt=[];let Ht=-1;const Ut=[];let Kt=null,$t=0;const zt=Promise.resolve();let Gt=null;function Zt(t){if(!(1&t.flags)){const e=Wt(t),n=qt[qt.length-1];!n||!(2&t.flags)&&e>=Wt(n)?qt.push(t):qt.splice(function(t){let e=Ht+1,n=qt.length;for(;e<n;){const r=e+n>>>1,s=qt[r],i=Wt(s);i<t||i===t&&2&s.flags?e=r+1:n=r}return e}(e),0,t),t.flags|=1,Jt()}}function Jt(){Gt||(Gt=zt.then(Yt))}const Wt=t=>null==t.id?2&t.flags?-1:1/0:t.id;function Yt(t){"production"!==process.env.NODE_ENV&&(t=t||new Map);const e="production"!==process.env.NODE_ENV?e=>Xt(t,e):p;try{for(Ht=0;Ht<qt.length;Ht++){const t=qt[Ht];if(t&&!(8&t.flags)){if("production"!==process.env.NODE_ENV&&e(t))continue;4&t.flags&&(t.flags&=-2),Lt(t,t.i,t.i?15:14),4&t.flags||(t.flags&=-2)}}}finally{for(;Ht<qt.length;Ht++){const t=qt[Ht];t&&(t.flags&=-2)}Ht=-1,qt.length=0,function(t){if(Ut.length){const e=[...new Set(Ut)].sort((t,e)=>Wt(t)-Wt(e));if(Ut.length=0,Kt)return void Kt.push(...e);for(Kt=e,"production"!==process.env.NODE_ENV&&(t=t||new Map),$t=0;$t<Kt.length;$t++){const e=Kt[$t];"production"!==process.env.NODE_ENV&&Xt(t,e)||(4&e.flags&&(e.flags&=-2),8&e.flags||e(),e.flags&=-2)}Kt=null,$t=0}}(t),Gt=null,(qt.length||Ut.length)&&Yt(t)}}function Xt(t,e){const n=t.get(e)||0;if(n>100){const t=e.i,n=t&&Ee(t.type);return Ft(`Maximum recursive updates exceeded${n?` in component <${n}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}return t.set(e,n+1),!1}const Qt=new Map;"production"!==process.env.NODE_ENV&&(A().__VUE_HMR_RUNTIME__={createRecord:re(function(t,e){return!te.has(t)&&(te.set(t,{initialDef:ee(e),instances:new Set}),!0)}),rerender:re(function(t,e){const n=te.get(t);n&&(n.initialDef.render=e,[...n.instances].forEach(t=>{e&&(t.render=e,ee(t.type).render=e),t.renderCache=[],8&t.job.flags||t.update()}))}),reload:re(function(t,e){const n=te.get(t);if(!n)return;e=ee(e),ne(n.initialDef,e);const r=[...n.instances];for(let i=0;i<r.length;i++){const t=r[i],s=ee(t.type);let o=Qt.get(s);o||(s!==n.initialDef&&ne(s,e),Qt.set(s,o=new Set)),o.add(t),t.appContext.propsCache.delete(t.type),t.appContext.emitsCache.delete(t.type),t.appContext.optionsCache.delete(t.type),t.ceReload?(o.add(t),t.ceReload(e.styles),o.delete(t)):t.parent?Zt(()=>{8&t.job.flags||(t.parent.update(),o.delete(t))}):t.appContext.reload?t.appContext.reload():"undefined"!=typeof window&&window.location.reload(),t.root.ce&&t!==t.root&&t.root.ce._removeChildStyle(s)}var s;y(s=()=>{Qt.clear()})?Ut.push(...s):Kt&&-1===s.id?Kt.splice($t+1,0,s):1&s.flags||(Ut.push(s),s.flags|=1),Jt()})});const te=new Map;function ee(t){return we(t)?t.__vccOpts:t}function ne(t,e){g(t,e);for(const n in t)"__file"===n||n in e||delete t[n]}function re(t){return(e,n)=>{try{return t(e,n)}catch(r){}}}let se=null;function ie(t,e){6&t.shapeFlag&&t.component?(t.transition=e,ie(t.component.subTree,e)):128&t.shapeFlag?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}A().requestIdleCallback,A().cancelIdleCallback;const oe=Symbol.for("v-ndc");process.env.NODE_ENV;const ae={},ue=t=>Object.getPrototypeOf(t)===ae,le=Symbol.for("v-fgt"),ce=Symbol.for("v-txt"),he=Symbol.for("v-cmt"),fe=({key:t})=>null!=t?t:null,pe=({ref:t,ref_key:e,ref_for:n})=>("number"==typeof t&&(t=""+t),null!=t?_(t)||Bt(t)||S(t)?{i:se,r:t,k:e,f:!!n}:t:null),de="production"!==process.env.NODE_ENV?(...t)=>ge(...t):ge;function ge(t,e=null,n=null,r=0,s=null,i=!1){if(t&&t!==oe||("production"===process.env.NODE_ENV||t||Ct(`Invalid vnode type when creating vnode: ${t}.`),t=he),(o=t)&&!0===o.__v_isVNode){const r=me(t,e,!0);return n&&be(r,n),r.patchFlag=-2,r}var o;if(we(t)&&(t=t.__vccOpts),e){e=function(t){return t?xt(t)||ue(t)?g({},t):t:null}(e);let{class:t,style:n}=e;t&&!_(t)&&(e.class=k(t)),T(n)&&(xt(n)&&!y(n)&&(n=g({},n)),e.style=B(n))}const a=_(t)?1:(t=>t.__isSuspense)(t)?128:(t=>t.__isTeleport)(t)?64:T(t)?4:S(t)?2:0;return"production"!==process.env.NODE_ENV&&4&a&&xt(t)&&Ct("Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.","\nComponent that was made reactive: ",t=Vt(t)),function(t,e=null,n=null,r=0,s=null,i=(t===le?0:1),o=!1,a=!1){const u={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&fe(e),ref:e&&pe(e),scopeId:null,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:se};return a?(be(u,n),128&i&&t.normalize(u)):n&&(u.shapeFlag|=_(n)?8:16),"production"!==process.env.NODE_ENV&&u.key!=u.key&&Ct("VNode created with invalid key (NaN). VNode type:",u.type),u}(t,e,n,r,s,a,i,!0)}function me(t,e,n=!1,r=!1){const{props:s,ref:i,patchFlag:o,children:a,transition:u}=t,l=e?function(...t){const e={};for(let n=0;n<t.length;n++){const r=t[n];for(const t in r)if("class"===t)e.class!==r.class&&(e.class=k([e.class,r.class]));else if("style"===t)e.style=B([e.style,r.style]);else if(d(t)){const n=e[t],s=r[t];!s||n===s||y(n)&&n.includes(s)||(e[t]=n?[].concat(n,s):s)}else""!==t&&(e[t]=r[t])}return e}(s||{},e):s,c={__v_isVNode:!0,__v_skip:!0,type:t.type,props:l,key:l&&fe(l),ref:e&&e.ref?n&&i?y(i)?i.concat(pe(e)):[i,pe(e)]:pe(e):i,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:"production"!==process.env.NODE_ENV&&-1===o&&y(a)?a.map(ve):a,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==le?-1===o?16:16|o:o,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:u,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&me(t.ssContent),ssFallback:t.ssFallback&&me(t.ssFallback),placeholder:t.placeholder,el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return u&&r&&ie(c,u.clone(c)),c}function ve(t){const e=me(t);return y(t.children)&&(e.children=t.children.map(ve)),e}function ye(t=" ",e=0){return de(ce,null,t,e)}function be(t,e){let n=0;const{shapeFlag:r}=t;if(null==e)e=null;else if(y(e))n=16;else if("object"==typeof e){if(65&r){const n=e.default;return void(n&&(n._c&&(n._d=!1),be(t,n()),n._c&&(n._d=!0)))}n=32,e._||ue(e)||(e._ctx=se)}else S(e)?(e={default:e,_ctx:se},n=32):(e=String(e),64&r?(n=16,e=[ye(e)]):n=8);t.children=e,t.shapeFlag|=n}{const t=A(),e=(e,n)=>{let r;return(r=t[e])||(r=t[e]=[]),r.push(n),t=>{r.length>1?r.forEach(e=>e(t)):r[0](t)}};e("__VUE_INSTANCE_SETTERS__",t=>t),e("__VUE_SSR_SETTERS__",t=>t)}process.env.NODE_ENV;const Se=/(?:^|[-_])\w/g,_e=t=>t.replace(Se,t=>t.toUpperCase()).replace(/[-_]/g,"");function Ee(t,e=!0){return S(t)?t.displayName||t.name:t.name||e&&t.__name}function Te(t,e,n=!1){let r=Ee(e);if(!r&&e.__file){const t=e.__file.match(/([^/\\]+)\.\w+$/);t&&(r=t[1])}if(!r&&t&&t.parent){const n=t=>{for(const n in t)if(t[n]===e)return n};r=n(t.components||t.parent.type.components)||n(t.appContext.components)}return r?_e(r):n?"App":"Anonymous"}function we(t){return S(t)&&"__vccOpts"in t}process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,"production"!==process.env.NODE_ENV&&function(){if("production"===process.env.NODE_ENV||"undefined"==typeof window)return;const t={style:"color:#3ba776"},e={style:"color:#1677ff"},n={style:"color:#f5222d"},r={style:"color:#eb2f96"},s={__vue_custom_formatter:!0,header(e){if(!T(e))return null;if(e.__isVue)return["div",t,"VueInstance"];if(Bt(e)){const r=e.value;return["div",{},["span",t,(n=e,Nt(n)?"ShallowRef":n.effect?"ComputedRef":"Ref")],"<",a(r),">"]}var n;return Dt(e)?["div",{},["span",t,Nt(e)?"ShallowReactive":"Reactive"],"<",a(e),">"+(Ot(e)?" (readonly)":"")]:Ot(e)?["div",{},["span",t,Nt(e)?"ShallowReadonly":"Readonly"],"<",a(e),">"]:null},hasBody:t=>t&&t.__isVue,body(t){if(t&&t.__isVue)return["div",{},...i(t.$)]}};function i(t){const e=[];t.type.props&&t.props&&e.push(o("props",Vt(t.props))),t.setupState!==f&&e.push(o("setup",t.setupState)),t.data!==f&&e.push(o("data",Vt(t.data)));const n=u(t,"computed");n&&e.push(o("computed",n));const s=u(t,"inject");return s&&e.push(o("injected",s)),e.push(["div",{},["span",{style:r.style+";opacity:0.66"},"$ (internal): "],["object",{object:t}]]),e}function o(t,e){return e=g({},e),Object.keys(e).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},t],["div",{style:"padding-left:1.25em"},...Object.keys(e).map(t=>["div",{},["span",r,t+": "],a(e[t],!1)])]]:["span",{}]}function a(t,s=!0){return"number"==typeof t?["span",e,t]:"string"==typeof t?["span",n,JSON.stringify(t)]:"boolean"==typeof t?["span",r,t]:T(t)?["object",{object:s?Vt(t):t}]:["span",n,String(t)]}function u(t,e){const n=t.type;if(S(n))return;const r={};for(const s in t.ctx)l(n,s,e)&&(r[s]=t.ctx[s]);return r}function l(t,e,n){const r=t[n];return!!(y(r)&&r.includes(e)||T(r)&&e in r)||!(!t.extends||!l(t.extends,e,n))||!(!t.mixins||!t.mixins.some(t=>l(t,e,n)))||void 0}window.devtoolsFormatters?window.devtoolsFormatters.push(s):window.devtoolsFormatters=[s]}();const De=Bt("")?"":new class{constructor(t,e){this.dep=new H,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=e?t:Vt(t),this._value=e?t:Rt(t),this.__v_isShallow=e}get value(){return"production"!==process.env.NODE_ENV?this.dep.track({target:this,type:"get",key:"value"}):this.dep.track(),this._value}set value(t){const e=this._rawValue,n=this.__v_isShallow||Nt(t)||Ot(t);t=n?t:Vt(t),V(t,e)&&(this._rawValue=t,this._value=n?t:Rt(t),"production"!==process.env.NODE_ENV?this.dep.trigger({target:this,type:"set",key:"value",newValue:t,oldValue:e}):this.dep.trigger())}}("",!1),Oe=t=>{try{const n=JSON.parse(e.AES.decrypt(t,De.value,{format:{stringify:t=>{const n={ct:t.ciphertext.toString(e.enc.Base64)};return t.iv&&(n.iv=t.iv.toString()),t.salt&&(n.s=t.salt.toString()),JSON.stringify(n)},parse:t=>{const n=JSON.parse(t),r=e.lib.CipherParams.create({ciphertext:e.enc.Base64.parse(n.ct)});return n.iv&&(r.iv=e.enc.Hex.parse(n.iv)),n.s&&(r.salt=e.enc.Hex.parse(n.s)),r}}}).toString(e.enc.Utf8));return""!==n?JSON.parse(n):n}catch(n){return""}},Ne=t=>new URLSearchParams(Object.entries(t).map(([t,e])=>[t,String(e)]));function xe(){return""===De.value?0:1}const Ve=(t,e=null)=>c(null,null,function*(){let n=t;e&&(n=`${n}?${Ne(e)}`);const r=yield Ae(n,{method:"GET",headers:Be(),credentials:"include"});if(!r.ok){const t=yield Ce(r);return Promise.reject(t)}return{data:yield xe()?Oe(r):Ie(r),status:r.status,msg:r.statusText,headers:r.headers,ok:r.ok}}),Re=(t,e,n=null)=>c(null,null,function*(){let r=t;n&&(r=`${r}?${Ne(n)}`);const s=yield Ae(r,{method:"POST",headers:Be(),body:JSON.stringify(e),credentials:"include"});if(!s.ok){const t=yield Ce(s);return Promise.reject(t)}const i=yield xe()?Oe(s):Ie(s);if(!i)return{data:{},status:s.status,msg:s.statusText,headers:s.headers,ok:s.ok};const o=(Array.isArray(null==i?void 0:i.responses)?i.responses.filter(t=>null==t?void 0:t.attributes):[])[0];return{data:o?JSON.parse((t=>{try{return atob(t)}catch(e){return""}})(o.attributes)):i,status:s.status,msg:s.statusText,headers:s.headers,ok:s.ok}}),Ae=(t,e,n=29e3)=>c(null,null,function*(){const i=new AbortController,o=setTimeout(()=>i.abort(),n);try{return yield fetch(t,(a=l({},e),u={signal:i.signal},r(a,s(u))))}finally{clearTimeout(o)}var a,u}),Be=()=>{const t=localStorage.getItem("token"),e=Pe("XSRF-TOKEN");return l({"Content-Type":"application/json","X-XSRF-TOKEN":e},t?{Authorization:`Bearer ${t}`}:{})},Pe=t=>{const e=document.cookie.match(new RegExp("(^| )"+t+"=([^;]+)"));return e?decodeURIComponent(e[2]):""},Ie=t=>c(null,null,function*(){try{return 204===t.status||"0"===t.headers.get("content-length")?null:yield t.json()}catch(e){return null}}),Ce=t=>c(null,null,function*(){const e=yield Ie(t),n={status:t.status,message:(null==e?void 0:e.message)||t.statusText||"An error occurred"};return 401===t.status||404===t.status||t.status,n}),je=Object.freeze(Object.defineProperty({__proto__:null,get:Ve,post:Re},Symbol.toStringTag,{value:"Module"})),ke={data:{game:{},mobileBanner:[],announcement:[],alertAnnouncement:[]}};var Me=(t=>(t.SPORT="SPORT",t.SPECIAL="SPECIAL",t.PVP="PVP",t.LIVE="LIVE",t.EVENT="EVENT",t.ESPORT="ESPORT",t.EGAME="EGAME",t.BINGO="BINGO",t))(Me||{});const Le={data:{currentPage:0,data:[],from:0,lastPage:0,nextPageUrl:"",path:"",perPage:0,prevPageUrl:"",to:0,total:0}},Fe={data:{hotfish:[],data:[]}},qe=t=>{var e,n,r,s,i,o,a,u,l,c,h,f,p,d,g,m,v;return{id:null!=(e=t.id)?e:0,name:null!=(n=t.name)?n:"",ppid:null!=(r=t.pp_id)?r:"",img:null!=(s=t.img)?s:"",desc:null!=(i=t.desc)?i:"",ppname:null!=(o=t.pp_name)?o:"",platformCode:null!=(a=t.platform_code)?a:"",code:null!=(u=t.code)?u:"",flag:null!=(l=t.flag)?l:0,gameId:null!=(c=t.game_id)?c:0,imgSrc:null!=(h=t.imgSrc)?h:"",imgPf:null!=(f=t.imgPf)?f:"",favouriteFlag:1===t.favourite_flag,platformStatusFflag:null!=(p=t.platform_status_Fflag)?p:"",platformFlagName:null!=(d=t.platform_flag_name)?d:"",platformStatusParams:{eb:null!=(g=t.platform_status_params.eb)&&g,fit:null!=(m=t.platform_status_params.fit)&&m,fs:null!=(v=t.platform_status_params.fs)&&v}}},He={data:[]},Ue={data:{lang:""}},Ke={data:{objList:[],promoCat:[],resize:0}},$e={data:[]},ze={data:{liveChat:""}},Ge={data:{eGameList:[]}},Ze={data:{mobileBanner:[]}},Je={data:{csrf:"",getCaptcha:"",verificationBeforeLogin:!1,publicKey:"",concantenatedKey:""}};function We(t){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(t)}function Ye(t,e){return t&e}function Xe(t,e){return t|e}function Qe(t,e){return t^e}function tn(t,e){return t&~e}function en(t){if(0==t)return-1;var e=0;return 65535&t||(t>>=16,e+=16),255&t||(t>>=8,e+=8),15&t||(t>>=4,e+=4),3&t||(t>>=2,e+=2),1&t||++e,e}function nn(t){for(var e=0;0!=t;)t&=t-1,++e;return e}var rn,sn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function on(t){var e,n,r="";for(e=0;e+3<=t.length;e+=3)n=parseInt(t.substring(e,e+3),16),r+=sn.charAt(n>>6)+sn.charAt(63&n);for(e+1==t.length?(n=parseInt(t.substring(e,e+1),16),r+=sn.charAt(n<<2)):e+2==t.length&&(n=parseInt(t.substring(e,e+2),16),r+=sn.charAt(n>>2)+sn.charAt((3&n)<<4));(3&r.length)>0;)r+="=";return r}function an(t){var e,n="",r=0,s=0;for(e=0;e<t.length&&"="!=t.charAt(e);++e){var i=sn.indexOf(t.charAt(e));i<0||(0==r?(n+=We(i>>2),s=3&i,r=1):1==r?(n+=We(s<<2|i>>4),s=15&i,r=2):2==r?(n+=We(s),n+=We(i>>2),s=3&i,r=3):(n+=We(s<<2|i>>4),n+=We(15&i),r=0))}return 1==r&&(n+=We(s<<2)),n}var un,ln={decode:function(t){var e;if(void 0===un){for(un=Object.create(null),e=0;e<64;++e)un["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)]=e;for(un["-"]=62,un._=63,e=0;e<9;++e)un["= \f\n\r\t \u2028\u2029".charAt(e)]=-1}var n=[],r=0,s=0;for(e=0;e<t.length;++e){var i=t.charAt(e);if("="==i)break;if(-1!=(i=un[i])){if(void 0===i)throw new Error("Illegal character at offset "+e);r|=i,++s>=4?(n[n.length]=r>>16,n[n.length]=r>>8&255,n[n.length]=255&r,r=0,s=0):r<<=6}}switch(s){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:n[n.length]=r>>10;break;case 3:n[n.length]=r>>16,n[n.length]=r>>8&255}return n},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(t){var e=ln.re.exec(t);if(e)if(e[1])t=e[1];else{if(!e[2])throw new Error("RegExp out of sync");t=e[2]}return ln.decode(t)}},cn=1e13,hn=function(){function t(t){this.buf=[+t||0]}return t.prototype.mulAdd=function(t,e){var n,r,s=this.buf,i=s.length;for(n=0;n<i;++n)(r=s[n]*t+e)<cn?e=0:r-=(e=0|r/cn)*cn,s[n]=r;e>0&&(s[n]=e)},t.prototype.sub=function(t){var e,n,r=this.buf,s=r.length;for(e=0;e<s;++e)(n=r[e]-t)<0?(n+=cn,t=1):t=0,r[e]=n;for(;0===r[r.length-1];)r.pop()},t.prototype.toString=function(t){if(10!=(t||10))throw new Error("only base 10 is supported");for(var e=this.buf,n=e[e.length-1].toString(),r=e.length-2;r>=0;--r)n+=(cn+e[r]).toString().substring(1);return n},t.prototype.valueOf=function(){for(var t=this.buf,e=0,n=t.length-1;n>=0;--n)e=e*cn+t[n];return e},t.prototype.simplify=function(){var t=this.buf;return 1==t.length?t[0]:this},t}(),fn=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,pn=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function dn(t,e){return t.length>e&&(t=t.substring(0,e)+"…"),t}var gn,mn=function(){function t(e,n){this.hexDigits="0123456789ABCDEF",e instanceof t?(this.enc=e.enc,this.pos=e.pos):(this.enc=e,this.pos=n)}return t.prototype.get=function(t){if(void 0===t&&(t=this.pos++),t>=this.enc.length)throw new Error("Requesting byte offset ".concat(t," on a stream of length ").concat(this.enc.length));return"string"==typeof this.enc?this.enc.charCodeAt(t):this.enc[t]},t.prototype.hexByte=function(t){return this.hexDigits.charAt(t>>4&15)+this.hexDigits.charAt(15&t)},t.prototype.hexDump=function(t,e,n){for(var r="",s=t;s<e;++s)if(r+=this.hexByte(this.get(s)),!0!==n)switch(15&s){case 7:r+=" ";break;case 15:r+="\n";break;default:r+=" "}return r},t.prototype.isASCII=function(t,e){for(var n=t;n<e;++n){var r=this.get(n);if(r<32||r>176)return!1}return!0},t.prototype.parseStringISO=function(t,e){for(var n="",r=t;r<e;++r)n+=String.fromCharCode(this.get(r));return n},t.prototype.parseStringUTF=function(t,e){for(var n="",r=t;r<e;){var s=this.get(r++);n+=s<128?String.fromCharCode(s):s>191&&s<224?String.fromCharCode((31&s)<<6|63&this.get(r++)):String.fromCharCode((15&s)<<12|(63&this.get(r++))<<6|63&this.get(r++))}return n},t.prototype.parseStringBMP=function(t,e){for(var n,r,s="",i=t;i<e;)n=this.get(i++),r=this.get(i++),s+=String.fromCharCode(n<<8|r);return s},t.prototype.parseTime=function(t,e,n){var r=this.parseStringISO(t,e),s=(n?fn:pn).exec(r);return s?(n&&(s[1]=+s[1],s[1]+=+s[1]<70?2e3:1900),r=s[1]+"-"+s[2]+"-"+s[3]+" "+s[4],s[5]&&(r+=":"+s[5],s[6]&&(r+=":"+s[6],s[7]&&(r+="."+s[7]))),s[8]&&(r+=" UTC","Z"!=s[8]&&(r+=s[8],s[9]&&(r+=":"+s[9]))),r):"Unrecognized time: "+r},t.prototype.parseInteger=function(t,e){for(var n,r=this.get(t),s=r>127,i=s?255:0,o="";r==i&&++t<e;)r=this.get(t);if(0===(n=e-t))return s?-1:0;if(n>4){for(o=r,n<<=3;!(128&(+o^i));)o=+o<<1,--n;o="("+n+" bit)\n"}s&&(r-=256);for(var a=new hn(r),u=t+1;u<e;++u)a.mulAdd(256,this.get(u));return o+a.toString()},t.prototype.parseBitString=function(t,e,n){for(var r=this.get(t),s="("+((e-t-1<<3)-r)+" bit)\n",i="",o=t+1;o<e;++o){for(var a=this.get(o),u=o==e-1?r:0,l=7;l>=u;--l)i+=a>>l&1?"1":"0";if(i.length>n)return s+dn(i,n)}return s+i},t.prototype.parseOctetString=function(t,e,n){if(this.isASCII(t,e))return dn(this.parseStringISO(t,e),n);var r=e-t,s="("+r+" byte)\n";r>(n/=2)&&(e=t+n);for(var i=t;i<e;++i)s+=this.hexByte(this.get(i));return r>n&&(s+="…"),s},t.prototype.parseOID=function(t,e,n){for(var r="",s=new hn,i=0,o=t;o<e;++o){var a=this.get(o);if(s.mulAdd(128,127&a),i+=7,!(128&a)){if(""===r)if((s=s.simplify())instanceof hn)s.sub(80),r="2."+s.toString();else{var u=s<80?s<40?0:1:2;r=u+"."+(s-40*u)}else r+="."+s.toString();if(r.length>n)return dn(r,n);s=new hn,i=0}}return i>0&&(r+=".incomplete"),r},t}(),vn=function(){function t(t,e,n,r,s){if(!(r instanceof yn))throw new Error("Invalid tag value.");this.stream=t,this.header=e,this.length=n,this.tag=r,this.sub=s}return t.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},t.prototype.content=function(t){if(void 0===this.tag)return null;void 0===t&&(t=1/0);var e=this.posContent(),n=Math.abs(this.length);if(!this.tag.isUniversal())return null!==this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+n,t);switch(this.tag.tagNumber){case 1:return 0===this.stream.get(e)?"false":"true";case 2:return this.stream.parseInteger(e,e+n);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(e,e+n,t);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+n,t);case 6:return this.stream.parseOID(e,e+n,t);case 16:case 17:return null!==this.sub?"("+this.sub.length+" elem)":"(no elem)";case 12:return dn(this.stream.parseStringUTF(e,e+n),t);case 18:case 19:case 20:case 21:case 22:case 26:return dn(this.stream.parseStringISO(e,e+n),t);case 30:return dn(this.stream.parseStringBMP(e,e+n),t);case 23:case 24:return this.stream.parseTime(e,e+n,23==this.tag.tagNumber)}return null},t.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(null===this.sub?"null":this.sub.length)+"]"},t.prototype.toPrettyString=function(t){void 0===t&&(t="");var e=t+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(e+="+"),e+=this.length,this.tag.tagConstructed?e+=" (constructed)":!this.tag.isUniversal()||3!=this.tag.tagNumber&&4!=this.tag.tagNumber||null===this.sub||(e+=" (encapsulates)"),e+="\n",null!==this.sub){t+=" ";for(var n=0,r=this.sub.length;n<r;++n)e+=this.sub[n].toPrettyString(t)}return e},t.prototype.posStart=function(){return this.stream.pos},t.prototype.posContent=function(){return this.stream.pos+this.header},t.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},t.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},t.decodeLength=function(t){var e=t.get(),n=127&e;if(n==e)return n;if(n>6)throw new Error("Length over 48 bits not supported at position "+(t.pos-1));if(0===n)return null;e=0;for(var r=0;r<n;++r)e=256*e+t.get();return e},t.prototype.getHexStringValue=function(){var t=this.toHexString(),e=2*this.header,n=2*this.length;return t.substring(e,e+n)},t.decode=function(e){var n;n=e instanceof mn?e:new mn(e,0);var r=new mn(n),s=new yn(n),i=t.decodeLength(n),o=n.pos,a=o-r.pos,u=null,l=function(){var e=[];if(null!==i){for(var r=o+i;n.pos<r;)e[e.length]=t.decode(n);if(n.pos!=r)throw new Error("Content size is not correct for container starting at offset "+o)}else try{for(;;){var s=t.decode(n);if(s.tag.isEOC())break;e[e.length]=s}i=o-n.pos}catch(a){throw new Error("Exception while decoding undefined length content: "+a)}return e};if(s.tagConstructed)u=l();else if(s.isUniversal()&&(3==s.tagNumber||4==s.tagNumber))try{if(3==s.tagNumber&&0!=n.get())throw new Error("BIT STRINGs with unused bits cannot encapsulate.");u=l();for(var c=0;c<u.length;++c)if(u[c].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(h){u=null}if(null===u){if(null===i)throw new Error("We can't skip over an invalid tag with undefined length at offset "+o);n.pos=o+Math.abs(i)}return new t(r,a,i,s,u)},t}(),yn=function(){function t(t){var e=t.get();if(this.tagClass=e>>6,this.tagConstructed=!!(32&e),this.tagNumber=31&e,31==this.tagNumber){var n=new hn;do{e=t.get(),n.mulAdd(128,127&e)}while(128&e);this.tagNumber=n.simplify()}}return t.prototype.isUniversal=function(){return 0===this.tagClass},t.prototype.isEOC=function(){return 0===this.tagClass&&0===this.tagNumber},t}(),bn=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],Sn=(1<<26)/bn[bn.length-1],_n=function(){function t(t,e,n){null!=t&&("number"==typeof t?this.fromNumber(t,e,n):null==e&&"string"!=typeof t?this.fromString(t,256):this.fromString(t,e))}return t.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else{if(4!=t)return this.toRadix(t);e=2}var n,r=(1<<e)-1,s=!1,i="",o=this.t,a=this.DB-o*this.DB%e;if(o-- >0)for(a<this.DB&&(n=this[o]>>a)>0&&(s=!0,i=We(n));o>=0;)a<e?(n=(this[o]&(1<<a)-1)<<e-a,n|=this[--o]>>(a+=this.DB-e)):(n=this[o]>>(a-=e)&r,a<=0&&(a+=this.DB,--o)),n>0&&(s=!0),s&&(i+=We(n));return s?i:"0"},t.prototype.negate=function(){var e=On();return t.ZERO.subTo(this,e),e},t.prototype.abs=function(){return this.s<0?this.negate():this},t.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var n=this.t;if(0!=(e=n-t.t))return this.s<0?-e:e;for(;--n>=0;)if(0!=(e=this[n]-t[n]))return e;return 0},t.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+In(this[this.t-1]^this.s&this.DM)},t.prototype.mod=function(e){var n=On();return this.abs().divRemTo(e,null,n),this.s<0&&n.compareTo(t.ZERO)>0&&e.subTo(n,n),n},t.prototype.modPowInt=function(t,e){var n;return n=t<256||e.isEven()?new Tn(e):new wn(e),this.exp(t,n)},t.prototype.clone=function(){var t=On();return this.copyTo(t),t},t.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},t.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},t.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},t.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},t.prototype.toByteArray=function(){var t=this.t,e=[];e[0]=this.s;var n,r=this.DB-t*this.DB%8,s=0;if(t-- >0)for(r<this.DB&&(n=this[t]>>r)!=(this.s&this.DM)>>r&&(e[s++]=n|this.s<<this.DB-r);t>=0;)r<8?(n=(this[t]&(1<<r)-1)<<8-r,n|=this[--t]>>(r+=this.DB-8)):(n=this[t]>>(r-=8)&255,r<=0&&(r+=this.DB,--t)),128&n&&(n|=-256),0==s&&(128&this.s)!=(128&n)&&++s,(s>0||n!=this.s)&&(e[s++]=n);return e},t.prototype.equals=function(t){return 0==this.compareTo(t)},t.prototype.min=function(t){return this.compareTo(t)<0?this:t},t.prototype.max=function(t){return this.compareTo(t)>0?this:t},t.prototype.and=function(t){var e=On();return this.bitwiseTo(t,Ye,e),e},t.prototype.or=function(t){var e=On();return this.bitwiseTo(t,Xe,e),e},t.prototype.xor=function(t){var e=On();return this.bitwiseTo(t,Qe,e),e},t.prototype.andNot=function(t){var e=On();return this.bitwiseTo(t,tn,e),e},t.prototype.not=function(){for(var t=On(),e=0;e<this.t;++e)t[e]=this.DM&~this[e];return t.t=this.t,t.s=~this.s,t},t.prototype.shiftLeft=function(t){var e=On();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},t.prototype.shiftRight=function(t){var e=On();return t<0?this.lShiftTo(-t,e):this.rShiftTo(t,e),e},t.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(0!=this[t])return t*this.DB+en(this[t]);return this.s<0?this.t*this.DB:-1},t.prototype.bitCount=function(){for(var t=0,e=this.s&this.DM,n=0;n<this.t;++n)t+=nn(this[n]^e);return t},t.prototype.testBit=function(t){var e=Math.floor(t/this.DB);return e>=this.t?0!=this.s:!!(this[e]&1<<t%this.DB)},t.prototype.setBit=function(t){return this.changeBit(t,Xe)},t.prototype.clearBit=function(t){return this.changeBit(t,tn)},t.prototype.flipBit=function(t){return this.changeBit(t,Qe)},t.prototype.add=function(t){var e=On();return this.addTo(t,e),e},t.prototype.subtract=function(t){var e=On();return this.subTo(t,e),e},t.prototype.multiply=function(t){var e=On();return this.multiplyTo(t,e),e},t.prototype.divide=function(t){var e=On();return this.divRemTo(t,e,null),e},t.prototype.remainder=function(t){var e=On();return this.divRemTo(t,null,e),e},t.prototype.divideAndRemainder=function(t){var e=On(),n=On();return this.divRemTo(t,e,n),[e,n]},t.prototype.modPow=function(t,e){var n,r,s=t.bitLength(),i=Pn(1);if(s<=0)return i;n=s<18?1:s<48?3:s<144?4:s<768?5:6,r=s<8?new Tn(e):e.isEven()?new Dn(e):new wn(e);var o=[],a=3,u=n-1,l=(1<<n)-1;if(o[1]=r.convert(this),n>1){var c=On();for(r.sqrTo(o[1],c);a<=l;)o[a]=On(),r.mulTo(c,o[a-2],o[a]),a+=2}var h,f,p=t.t-1,d=!0,g=On();for(s=In(t[p])-1;p>=0;){for(s>=u?h=t[p]>>s-u&l:(h=(t[p]&(1<<s+1)-1)<<u-s,p>0&&(h|=t[p-1]>>this.DB+s-u)),a=n;!(1&h);)h>>=1,--a;if((s-=a)<0&&(s+=this.DB,--p),d)o[h].copyTo(i),d=!1;else{for(;a>1;)r.sqrTo(i,g),r.sqrTo(g,i),a-=2;a>0?r.sqrTo(i,g):(f=i,i=g,g=f),r.mulTo(g,o[h],i)}for(;p>=0&&!(t[p]&1<<s);)r.sqrTo(i,g),f=i,i=g,g=f,--s<0&&(s=this.DB-1,--p)}return r.revert(i)},t.prototype.modInverse=function(e){var n=e.isEven();if(this.isEven()&&n||0==e.signum())return t.ZERO;for(var r=e.clone(),s=this.clone(),i=Pn(1),o=Pn(0),a=Pn(0),u=Pn(1);0!=r.signum();){for(;r.isEven();)r.rShiftTo(1,r),n?(i.isEven()&&o.isEven()||(i.addTo(this,i),o.subTo(e,o)),i.rShiftTo(1,i)):o.isEven()||o.subTo(e,o),o.rShiftTo(1,o);for(;s.isEven();)s.rShiftTo(1,s),n?(a.isEven()&&u.isEven()||(a.addTo(this,a),u.subTo(e,u)),a.rShiftTo(1,a)):u.isEven()||u.subTo(e,u),u.rShiftTo(1,u);r.compareTo(s)>=0?(r.subTo(s,r),n&&i.subTo(a,i),o.subTo(u,o)):(s.subTo(r,s),n&&a.subTo(i,a),u.subTo(o,u))}return 0!=s.compareTo(t.ONE)?t.ZERO:u.compareTo(e)>=0?u.subtract(e):u.signum()<0?(u.addTo(e,u),u.signum()<0?u.add(e):u):u},t.prototype.pow=function(t){return this.exp(t,new En)},t.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),n=t.s<0?t.negate():t.clone();if(e.compareTo(n)<0){var r=e;e=n,n=r}var s=e.getLowestSetBit(),i=n.getLowestSetBit();if(i<0)return e;for(s<i&&(i=s),i>0&&(e.rShiftTo(i,e),n.rShiftTo(i,n));e.signum()>0;)(s=e.getLowestSetBit())>0&&e.rShiftTo(s,e),(s=n.getLowestSetBit())>0&&n.rShiftTo(s,n),e.compareTo(n)>=0?(e.subTo(n,e),e.rShiftTo(1,e)):(n.subTo(e,n),n.rShiftTo(1,n));return i>0&&n.lShiftTo(i,n),n},t.prototype.isProbablePrime=function(t){var e,n=this.abs();if(1==n.t&&n[0]<=bn[bn.length-1]){for(e=0;e<bn.length;++e)if(n[0]==bn[e])return!0;return!1}if(n.isEven())return!1;for(e=1;e<bn.length;){for(var r=bn[e],s=e+1;s<bn.length&&r<Sn;)r*=bn[s++];for(r=n.modInt(r);e<s;)if(r%bn[e++]==0)return!1}return n.millerRabin(t)},t.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},t.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},t.prototype.fromString=function(e,n){var r;if(16==n)r=4;else if(8==n)r=3;else if(256==n)r=8;else if(2==n)r=1;else if(32==n)r=5;else{if(4!=n)return void this.fromRadix(e,n);r=2}this.t=0,this.s=0;for(var s=e.length,i=!1,o=0;--s>=0;){var a=8==r?255&+e[s]:Bn(e,s);a<0?"-"==e.charAt(s)&&(i=!0):(i=!1,0==o?this[this.t++]=a:o+r>this.DB?(this[this.t-1]|=(a&(1<<this.DB-o)-1)<<o,this[this.t++]=a>>this.DB-o):this[this.t-1]|=a<<o,(o+=r)>=this.DB&&(o-=this.DB))}8==r&&128&+e[0]&&(this.s=-1,o>0&&(this[this.t-1]|=(1<<this.DB-o)-1<<o)),this.clamp(),i&&t.ZERO.subTo(this,this)},t.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},t.prototype.dlShiftTo=function(t,e){var n;for(n=this.t-1;n>=0;--n)e[n+t]=this[n];for(n=t-1;n>=0;--n)e[n]=0;e.t=this.t+t,e.s=this.s},t.prototype.drShiftTo=function(t,e){for(var n=t;n<this.t;++n)e[n-t]=this[n];e.t=Math.max(this.t-t,0),e.s=this.s},t.prototype.lShiftTo=function(t,e){for(var n=t%this.DB,r=this.DB-n,s=(1<<r)-1,i=Math.floor(t/this.DB),o=this.s<<n&this.DM,a=this.t-1;a>=0;--a)e[a+i+1]=this[a]>>r|o,o=(this[a]&s)<<n;for(a=i-1;a>=0;--a)e[a]=0;e[i]=o,e.t=this.t+i+1,e.s=this.s,e.clamp()},t.prototype.rShiftTo=function(t,e){e.s=this.s;var n=Math.floor(t/this.DB);if(n>=this.t)e.t=0;else{var r=t%this.DB,s=this.DB-r,i=(1<<r)-1;e[0]=this[n]>>r;for(var o=n+1;o<this.t;++o)e[o-n-1]|=(this[o]&i)<<s,e[o-n]=this[o]>>r;r>0&&(e[this.t-n-1]|=(this.s&i)<<s),e.t=this.t-n,e.clamp()}},t.prototype.subTo=function(t,e){for(var n=0,r=0,s=Math.min(t.t,this.t);n<s;)r+=this[n]-t[n],e[n++]=r&this.DM,r>>=this.DB;if(t.t<this.t){for(r-=t.s;n<this.t;)r+=this[n],e[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<t.t;)r-=t[n],e[n++]=r&this.DM,r>>=this.DB;r-=t.s}e.s=r<0?-1:0,r<-1?e[n++]=this.DV+r:r>0&&(e[n++]=r),e.t=n,e.clamp()},t.prototype.multiplyTo=function(e,n){var r=this.abs(),s=e.abs(),i=r.t;for(n.t=i+s.t;--i>=0;)n[i]=0;for(i=0;i<s.t;++i)n[i+r.t]=r.am(0,s[i],n,i,0,r.t);n.s=0,n.clamp(),this.s!=e.s&&t.ZERO.subTo(n,n)},t.prototype.squareTo=function(t){for(var e=this.abs(),n=t.t=2*e.t;--n>=0;)t[n]=0;for(n=0;n<e.t-1;++n){var r=e.am(n,e[n],t,2*n,0,1);(t[n+e.t]+=e.am(n+1,2*e[n],t,2*n+1,r,e.t-n-1))>=e.DV&&(t[n+e.t]-=e.DV,t[n+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(n,e[n],t,2*n,0,1)),t.s=0,t.clamp()},t.prototype.divRemTo=function(e,n,r){var s=e.abs();if(!(s.t<=0)){var i=this.abs();if(i.t<s.t)return null!=n&&n.fromInt(0),void(null!=r&&this.copyTo(r));null==r&&(r=On());var o=On(),a=this.s,u=e.s,l=this.DB-In(s[s.t-1]);l>0?(s.lShiftTo(l,o),i.lShiftTo(l,r)):(s.copyTo(o),i.copyTo(r));var c=o.t,h=o[c-1];if(0!=h){var f=h*(1<<this.F1)+(c>1?o[c-2]>>this.F2:0),p=this.FV/f,d=(1<<this.F1)/f,g=1<<this.F2,m=r.t,v=m-c,y=null==n?On():n;for(o.dlShiftTo(v,y),r.compareTo(y)>=0&&(r[r.t++]=1,r.subTo(y,r)),t.ONE.dlShiftTo(c,y),y.subTo(o,o);o.t<c;)o[o.t++]=0;for(;--v>=0;){var b=r[--m]==h?this.DM:Math.floor(r[m]*p+(r[m-1]+g)*d);if((r[m]+=o.am(0,b,r,v,0,c))<b)for(o.dlShiftTo(v,y),r.subTo(y,r);r[m]<--b;)r.subTo(y,r)}null!=n&&(r.drShiftTo(c,n),a!=u&&t.ZERO.subTo(n,n)),r.t=c,r.clamp(),l>0&&r.rShiftTo(l,r),a<0&&t.ZERO.subTo(r,r)}}},t.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(!(1&t))return 0;var e=3&t;return(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)>0?this.DV-e:-e},t.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},t.prototype.exp=function(e,n){if(e>4294967295||e<1)return t.ONE;var r=On(),s=On(),i=n.convert(this),o=In(e)-1;for(i.copyTo(r);--o>=0;)if(n.sqrTo(r,s),(e&1<<o)>0)n.mulTo(s,i,r);else{var a=r;r=s,s=a}return n.revert(r)},t.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},t.prototype.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||t>36)return"0";var e=this.chunkSize(t),n=Math.pow(t,e),r=Pn(n),s=On(),i=On(),o="";for(this.divRemTo(r,s,i);s.signum()>0;)o=(n+i.intValue()).toString(t).substring(1)+o,s.divRemTo(r,s,i);return i.intValue().toString(t)+o},t.prototype.fromRadix=function(e,n){this.fromInt(0),null==n&&(n=10);for(var r=this.chunkSize(n),s=Math.pow(n,r),i=!1,o=0,a=0,u=0;u<e.length;++u){var l=Bn(e,u);l<0?"-"==e.charAt(u)&&0==this.signum()&&(i=!0):(a=n*a+l,++o>=r&&(this.dMultiply(s),this.dAddOffset(a,0),o=0,a=0))}o>0&&(this.dMultiply(Math.pow(n,o)),this.dAddOffset(a,0)),i&&t.ZERO.subTo(this,this)},t.prototype.fromNumber=function(e,n,r){if("number"==typeof n)if(e<2)this.fromInt(1);else for(this.fromNumber(e,r),this.testBit(e-1)||this.bitwiseTo(t.ONE.shiftLeft(e-1),Xe,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(n);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(t.ONE.shiftLeft(e-1),this);else{var s=[],i=7&e;s.length=1+(e>>3),n.nextBytes(s),i>0?s[0]&=(1<<i)-1:s[0]=0,this.fromString(s,256)}},t.prototype.bitwiseTo=function(t,e,n){var r,s,i=Math.min(t.t,this.t);for(r=0;r<i;++r)n[r]=e(this[r],t[r]);if(t.t<this.t){for(s=t.s&this.DM,r=i;r<this.t;++r)n[r]=e(this[r],s);n.t=this.t}else{for(s=this.s&this.DM,r=i;r<t.t;++r)n[r]=e(s,t[r]);n.t=t.t}n.s=e(this.s,t.s),n.clamp()},t.prototype.changeBit=function(e,n){var r=t.ONE.shiftLeft(e);return this.bitwiseTo(r,n,r),r},t.prototype.addTo=function(t,e){for(var n=0,r=0,s=Math.min(t.t,this.t);n<s;)r+=this[n]+t[n],e[n++]=r&this.DM,r>>=this.DB;if(t.t<this.t){for(r+=t.s;n<this.t;)r+=this[n],e[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<t.t;)r+=t[n],e[n++]=r&this.DM,r>>=this.DB;r+=t.s}e.s=r<0?-1:0,r>0?e[n++]=r:r<-1&&(e[n++]=this.DV+r),e.t=n,e.clamp()},t.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},t.prototype.dAddOffset=function(t,e){if(0!=t){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},t.prototype.multiplyLowerTo=function(t,e,n){var r=Math.min(this.t+t.t,e);for(n.s=0,n.t=r;r>0;)n[--r]=0;for(var s=n.t-this.t;r<s;++r)n[r+this.t]=this.am(0,t[r],n,r,0,this.t);for(s=Math.min(t.t,e);r<s;++r)this.am(0,t[r],n,r,0,e-r);n.clamp()},t.prototype.multiplyUpperTo=function(t,e,n){--e;var r=n.t=this.t+t.t-e;for(n.s=0;--r>=0;)n[r]=0;for(r=Math.max(e-this.t,0);r<t.t;++r)n[this.t+r-e]=this.am(e-r,t[r],n,0,0,this.t+r-e);n.clamp(),n.drShiftTo(1,n)},t.prototype.modInt=function(t){if(t<=0)return 0;var e=this.DV%t,n=this.s<0?t-1:0;if(this.t>0)if(0==e)n=this[0]%t;else for(var r=this.t-1;r>=0;--r)n=(e*n+this[r])%t;return n},t.prototype.millerRabin=function(e){var n=this.subtract(t.ONE),r=n.getLowestSetBit();if(r<=0)return!1;var s=n.shiftRight(r);(e=e+1>>1)>bn.length&&(e=bn.length);for(var i=On(),o=0;o<e;++o){i.fromInt(bn[Math.floor(Math.random()*bn.length)]);var a=i.modPow(s,this);if(0!=a.compareTo(t.ONE)&&0!=a.compareTo(n)){for(var u=1;u++<r&&0!=a.compareTo(n);)if(0==(a=a.modPowInt(2,this)).compareTo(t.ONE))return!1;if(0!=a.compareTo(n))return!1}}return!0},t.prototype.square=function(){var t=On();return this.squareTo(t),t},t.prototype.gcda=function(t,e){var n=this.s<0?this.negate():this.clone(),r=t.s<0?t.negate():t.clone();if(n.compareTo(r)<0){var s=n;n=r,r=s}var i=n.getLowestSetBit(),o=r.getLowestSetBit();if(o<0)e(n);else{i<o&&(o=i),o>0&&(n.rShiftTo(o,n),r.rShiftTo(o,r));var a=function(){(i=n.getLowestSetBit())>0&&n.rShiftTo(i,n),(i=r.getLowestSetBit())>0&&r.rShiftTo(i,r),n.compareTo(r)>=0?(n.subTo(r,n),n.rShiftTo(1,n)):(r.subTo(n,r),r.rShiftTo(1,r)),n.signum()>0?setTimeout(a,0):(o>0&&r.lShiftTo(o,r),setTimeout(function(){e(r)},0))};setTimeout(a,10)}},t.prototype.fromNumberAsync=function(e,n,r,s){if("number"==typeof n)if(e<2)this.fromInt(1);else{this.fromNumber(e,r),this.testBit(e-1)||this.bitwiseTo(t.ONE.shiftLeft(e-1),Xe,this),this.isEven()&&this.dAddOffset(1,0);var i=this,o=function(){i.dAddOffset(2,0),i.bitLength()>e&&i.subTo(t.ONE.shiftLeft(e-1),i),i.isProbablePrime(n)?setTimeout(function(){s()},0):setTimeout(o,0)};setTimeout(o,0)}else{var a=[],u=7&e;a.length=1+(e>>3),n.nextBytes(a),u>0?a[0]&=(1<<u)-1:a[0]=0,this.fromString(a,256)}},t}(),En=function(){function t(){}return t.prototype.convert=function(t){return t},t.prototype.revert=function(t){return t},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n)},t.prototype.sqrTo=function(t,e){t.squareTo(e)},t}(),Tn=function(){function t(t){this.m=t}return t.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},t.prototype.revert=function(t){return t},t.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}(),wn=function(){function t(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}return t.prototype.convert=function(t){var e=On();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(_n.ZERO)>0&&this.m.subTo(e,e),e},t.prototype.revert=function(t){var e=On();return t.copyTo(e),this.reduce(e),e},t.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var n=32767&t[e],r=n*this.mpl+((n*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;for(t[n=e+this.m.t]+=this.m.am(0,r,t,e,0,this.m.t);t[n]>=t.DV;)t[n]-=t.DV,t[++n]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}(),Dn=function(){function t(t){this.m=t,this.r2=On(),this.q3=On(),_n.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t)}return t.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=On();return t.copyTo(e),this.reduce(e),e},t.prototype.revert=function(t){return t},t.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}();function On(){return new _n(null)}function Nn(t,e){return new _n(t,e)}var xn="undefined"!=typeof navigator;xn&&"Microsoft Internet Explorer"==navigator.appName?(_n.prototype.am=function(t,e,n,r,s,i){for(var o=32767&e,a=e>>15;--i>=0;){var u=32767&this[t],l=this[t++]>>15,c=a*u+l*o;s=((u=o*u+((32767&c)<<15)+n[r]+(1073741823&s))>>>30)+(c>>>15)+a*l+(s>>>30),n[r++]=1073741823&u}return s},gn=30):xn&&"Netscape"!=navigator.appName?(_n.prototype.am=function(t,e,n,r,s,i){for(;--i>=0;){var o=e*this[t++]+n[r]+s;s=Math.floor(o/67108864),n[r++]=67108863&o}return s},gn=26):(_n.prototype.am=function(t,e,n,r,s,i){for(var o=16383&e,a=e>>14;--i>=0;){var u=16383&this[t],l=this[t++]>>14,c=a*u+l*o;s=((u=o*u+((16383&c)<<14)+n[r]+s)>>28)+(c>>14)+a*l,n[r++]=268435455&u}return s},gn=28),_n.prototype.DB=gn,_n.prototype.DM=(1<<gn)-1,_n.prototype.DV=1<<gn,_n.prototype.FV=Math.pow(2,52),_n.prototype.F1=52-gn,_n.prototype.F2=2*gn-52;var Vn,Rn,An=[];for(Vn="0".charCodeAt(0),Rn=0;Rn<=9;++Rn)An[Vn++]=Rn;for(Vn="a".charCodeAt(0),Rn=10;Rn<36;++Rn)An[Vn++]=Rn;for(Vn="A".charCodeAt(0),Rn=10;Rn<36;++Rn)An[Vn++]=Rn;function Bn(t,e){var n=An[t.charCodeAt(e)];return null==n?-1:n}function Pn(t){var e=On();return e.fromInt(t),e}function In(t){var e,n=1;return 0!=(e=t>>>16)&&(t=e,n+=16),0!=(e=t>>8)&&(t=e,n+=8),0!=(e=t>>4)&&(t=e,n+=4),0!=(e=t>>2)&&(t=e,n+=2),0!=(e=t>>1)&&(t=e,n+=1),n}_n.ZERO=Pn(0),_n.ONE=Pn(1);var Cn,jn,kn=function(){function t(){this.i=0,this.j=0,this.S=[]}return t.prototype.init=function(t){var e,n,r;for(e=0;e<256;++e)this.S[e]=e;for(n=0,e=0;e<256;++e)n=n+this.S[e]+t[e%t.length]&255,r=this.S[e],this.S[e]=this.S[n],this.S[n]=r;this.i=0,this.j=0},t.prototype.next=function(){var t;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,t=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=t,this.S[t+this.S[this.i]&255]},t}(),Mn=null;if(null==Mn){Mn=[],jn=0;var Ln=void 0;if("undefined"!=typeof window&&self.crypto&&self.crypto.getRandomValues){var Fn=new Uint32Array(256);for(self.crypto.getRandomValues(Fn),Ln=0;Ln<Fn.length;++Ln)Mn[jn++]=255&Fn[Ln]}var qn=0,Hn=function(t){if((qn=qn||0)>=256||jn>=256)self.removeEventListener?self.removeEventListener("mousemove",Hn,!1):self.detachEvent&&self.detachEvent("onmousemove",Hn);else try{var e=t.x+t.y;Mn[jn++]=255&e,qn+=1}catch(n){}};"undefined"!=typeof window&&(self.addEventListener?self.addEventListener("mousemove",Hn,!1):self.attachEvent&&self.attachEvent("onmousemove",Hn))}function Un(){if(null==Cn){for(Cn=new kn;jn<256;){var t=Math.floor(65536*Math.random());Mn[jn++]=255&t}for(Cn.init(Mn),jn=0;jn<Mn.length;++jn)Mn[jn]=0;jn=0}return Cn.next()}var Kn=function(){function t(){}return t.prototype.nextBytes=function(t){for(var e=0;e<t.length;++e)t[e]=Un()},t}();function $n(t){return function(t){for(var e="",n=0;n<32*t.length;n+=8)e+=String.fromCharCode(t[n>>5]>>>24-n%32&255);return e}(function(t,e){var n,r,s,i,o,a,u,l,c,h,f,p,d=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),g=new Array(64);for(t[e>>5]|=128<<24-e%32,t[15+(e+64>>9<<4)]=e,c=0;c<t.length;c+=16){for(n=d[0],r=d[1],s=d[2],i=d[3],o=d[4],a=d[5],u=d[6],l=d[7],h=0;h<64;h++)g[h]=h<16?t[h+c]:nr(nr(nr(tr(g[h-2]),g[h-7]),Qn(g[h-15])),g[h-16]),f=nr(nr(nr(nr(l,Xn(o)),Jn(o,a,u)),er[h]),g[h]),p=nr(Yn(n),Wn(n,r,s)),l=u,u=a,a=o,o=nr(i,f),i=s,s=r,r=n,n=nr(f,p);d[0]=nr(n,d[0]),d[1]=nr(r,d[1]),d[2]=nr(s,d[2]),d[3]=nr(i,d[3]),d[4]=nr(o,d[4]),d[5]=nr(a,d[5]),d[6]=nr(u,d[6]),d[7]=nr(l,d[7])}return d}(function(t){for(var e=Array(t.length>>2),n=0;n<e.length;n++)e[n]=0;for(n=0;n<8*t.length;n+=8)e[n>>5]|=(255&t.charCodeAt(n/8))<<24-n%32;return e}(t),8*t.length))}function zn(t){for(var e="0123456789abcdef",n="",r=0;r<t.length;r++){var s=t.charCodeAt(r);n+=e.charAt(s>>>4&15)+e.charAt(15&s)}return n}function Gn(t,e){return t>>>e|t<<32-e}function Zn(t,e){return t>>>e}function Jn(t,e,n){return t&e^~t&n}function Wn(t,e,n){return t&e^t&n^e&n}function Yn(t){return Gn(t,2)^Gn(t,13)^Gn(t,22)}function Xn(t){return Gn(t,6)^Gn(t,11)^Gn(t,25)}function Qn(t){return Gn(t,7)^Gn(t,18)^Zn(t,3)}function tr(t){return Gn(t,17)^Gn(t,19)^Zn(t,10)}var er=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function nr(t,e){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}function rr(t,e){if(e<t.length+11)return null;for(var n=[],r=t.length-1;r>=0&&e>0;){var s=t.charCodeAt(r--);s<128?n[--e]=s:s>127&&s<2048?(n[--e]=63&s|128,n[--e]=s>>6|192):(n[--e]=63&s|128,n[--e]=s>>6&63|128,n[--e]=s>>12|224)}n[--e]=0;for(var i=new Kn,o=[];e>2;){for(o[0]=0;0==o[0];)i.nextBytes(o);n[--e]=o[0]}return n[--e]=2,n[--e]=0,new _n(n)}function sr(t,e,n){for(var r="",s=0;r.length<e;)r+=n(String.fromCharCode.apply(String,t.concat([(4278190080&s)>>24,(16711680&s)>>16,(65280&s)>>8,255&s]))),s+=1;return r}function ir(t,e){var n=$n;if(t.length+64+2>e)throw"Message too long for RSA";var r,s="";for(r=0;r<e-t.length-64-2;r+=1)s+="\0";var i=n("")+s+""+t,o=new Array(32);(new Kn).nextBytes(o);var a=sr(o,i.length,n),u=[];for(r=0;r<i.length;r+=1)u[r]=i.charCodeAt(r)^a.charCodeAt(r);var l=sr(u,o.length,n),c=[0];for(r=0;r<o.length;r+=1)c[r+1]=o[r]^l.charCodeAt(r);return new _n(c.concat(u))}var or=function(){function t(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return t.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)},t.prototype.doPrivate=function(t){if(null==this.p||null==this.q)return t.modPow(this.d,this.n);for(var e=t.mod(this.p).modPow(this.dmp1,this.p),n=t.mod(this.q).modPow(this.dmq1,this.q);e.compareTo(n)<0;)e=e.add(this.p);return e.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n)},t.prototype.setPublic=function(t,e){null!=t&&null!=e&&t.length>0&&e.length>0&&(this.n=Nn(t,16),this.e=parseInt(e,16))},t.prototype.encrypt=function(t,e){void 0===e&&(e=rr);var n=this.n.bitLength()+7>>3,r=e(t,n);if(null==r)return null;var s=this.doPublic(r);if(null==s)return null;for(var i=s.toString(16),o=i.length,a=0;a<2*n-o;a++)i="0"+i;return i},t.prototype.setPrivate=function(t,e,n){null!=t&&null!=e&&t.length>0&&e.length>0&&(this.n=Nn(t,16),this.e=parseInt(e,16),this.d=Nn(n,16))},t.prototype.setPrivateEx=function(t,e,n,r,s,i,o,a){null!=t&&null!=e&&t.length>0&&e.length>0&&(this.n=Nn(t,16),this.e=parseInt(e,16),this.d=Nn(n,16),this.p=Nn(r,16),this.q=Nn(s,16),this.dmp1=Nn(i,16),this.dmq1=Nn(o,16),this.coeff=Nn(a,16))},t.prototype.generate=function(t,e){var n=new Kn,r=t>>1;this.e=parseInt(e,16);for(var s=new _n(e,16);;){for(;this.p=new _n(t-r,1,n),0!=this.p.subtract(_n.ONE).gcd(s).compareTo(_n.ONE)||!this.p.isProbablePrime(10););for(;this.q=new _n(r,1,n),0!=this.q.subtract(_n.ONE).gcd(s).compareTo(_n.ONE)||!this.q.isProbablePrime(10););if(this.p.compareTo(this.q)<=0){var i=this.p;this.p=this.q,this.q=i}var o=this.p.subtract(_n.ONE),a=this.q.subtract(_n.ONE),u=o.multiply(a);if(0==u.gcd(s).compareTo(_n.ONE)){this.n=this.p.multiply(this.q),this.d=s.modInverse(u),this.dmp1=this.d.mod(o),this.dmq1=this.d.mod(a),this.coeff=this.q.modInverse(this.p);break}}},t.prototype.decrypt=function(t){var e=Nn(t,16),n=this.doPrivate(e);return null==n?null:function(t,e){for(var n=t.toByteArray(),r=0;r<n.length&&0==n[r];)++r;if(n.length-r!=e-1||2!=n[r])return null;for(++r;0!=n[r];)if(++r>=n.length)return null;for(var s="";++r<n.length;){var i=255&n[r];i<128?s+=String.fromCharCode(i):i>191&&i<224?(s+=String.fromCharCode((31&i)<<6|63&n[r+1]),++r):(s+=String.fromCharCode((15&i)<<12|(63&n[r+1])<<6|63&n[r+2]),r+=2)}return s}(n,this.n.bitLength()+7>>3)},t.prototype.generateAsync=function(t,e,n){var r=new Kn,s=t>>1;this.e=parseInt(e,16);var i=new _n(e,16),o=this,a=function(){var e=function(){if(o.p.compareTo(o.q)<=0){var t=o.p;o.p=o.q,o.q=t}var e=o.p.subtract(_n.ONE),r=o.q.subtract(_n.ONE),s=e.multiply(r);0==s.gcd(i).compareTo(_n.ONE)?(o.n=o.p.multiply(o.q),o.d=i.modInverse(s),o.dmp1=o.d.mod(e),o.dmq1=o.d.mod(r),o.coeff=o.q.modInverse(o.p),setTimeout(function(){n()},0)):setTimeout(a,0)},u=function(){o.q=On(),o.q.fromNumberAsync(s,1,r,function(){o.q.subtract(_n.ONE).gcda(i,function(t){0==t.compareTo(_n.ONE)&&o.q.isProbablePrime(10)?setTimeout(e,0):setTimeout(u,0)})})},l=function(){o.p=On(),o.p.fromNumberAsync(t-s,1,r,function(){o.p.subtract(_n.ONE).gcda(i,function(t){0==t.compareTo(_n.ONE)&&o.p.isProbablePrime(10)?setTimeout(u,0):setTimeout(l,0)})})};setTimeout(l,0)};setTimeout(a,0)},t.prototype.sign=function(t,e,n){var r=(ar[n]||"")+e(t).toString(),s=this.n.bitLength()/4,i=function(t,e){if(e<t.length+22)return null;for(var n=e-t.length-6,r="",s=0;s<n;s+=2)r+="ff";return Nn("0001"+r+"00"+t,16)}(r,s);if(null==i)return null;var o=this.doPrivate(i);if(null==o)return null;for(var a=o.toString(16),u=a.length,l=0;l<s-u;l++)a="0"+a;return a},t.prototype.verify=function(t,e,n){var r=Nn(e,16),s=this.doPublic(r);return null==s?null:function(t){for(var e in ar)if(ar.hasOwnProperty(e)){var n=ar[e],r=n.length;if(t.substring(0,r)==n)return t.substring(r)}return t}(s.toString(16).replace(/^1f+00/,""))==n(t).toString()},t}(),ar={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function ur(t,e,n){if(!e||!t)throw new Error("extend failed, please check that all dependencies are included.");var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t,t.superclass=e.prototype,e.prototype.constructor==Object.prototype.constructor&&(e.prototype.constructor=e)}var lr={};void 0!==lr.asn1&&lr.asn1||(lr.asn1={}),lr.asn1.ASN1Util=new function(){this.integerToByteHex=function(t){var e=t.toString(16);return e.length%2==1&&(e="0"+e),e},this.bigIntToMinTwosComplementsHex=function(t){var e=t.toString(16);if("-"!=e.substring(0,1))e.length%2==1?e="0"+e:e.match(/^[0-7]/)||(e="00"+e);else{var n=e.substring(1).length;n%2==1?n+=1:e.match(/^[0-7]/)||(n+=2);for(var r="",s=0;s<n;s++)r+="f";e=new _n(r,16).xor(t).add(_n.ONE).toString(16).replace(/^-/,"")}return e},this.getPEMStringFromHex=function(t,e){return hextopem(t,e)},this.newObject=function(t){var e=lr.asn1,n=e.DERBoolean,r=e.DERInteger,s=e.DERBitString,i=e.DEROctetString,o=e.DERNull,a=e.DERObjectIdentifier,u=e.DEREnumerated,l=e.DERUTF8String,c=e.DERNumericString,h=e.DERPrintableString,f=e.DERTeletexString,p=e.DERIA5String,d=e.DERUTCTime,g=e.DERGeneralizedTime,m=e.DERSequence,v=e.DERSet,y=e.DERTaggedObject,b=e.ASN1Util.newObject,S=Object.keys(t);if(1!=S.length)throw"key of param shall be only one.";var _=S[0];if(-1==":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+_+":"))throw"undefined key: "+_;if("bool"==_)return new n(t[_]);if("int"==_)return new r(t[_]);if("bitstr"==_)return new s(t[_]);if("octstr"==_)return new i(t[_]);if("null"==_)return new o(t[_]);if("oid"==_)return new a(t[_]);if("enum"==_)return new u(t[_]);if("utf8str"==_)return new l(t[_]);if("numstr"==_)return new c(t[_]);if("prnstr"==_)return new h(t[_]);if("telstr"==_)return new f(t[_]);if("ia5str"==_)return new p(t[_]);if("utctime"==_)return new d(t[_]);if("gentime"==_)return new g(t[_]);if("seq"==_){for(var E=t[_],T=[],w=0;w<E.length;w++){var D=b(E[w]);T.push(D)}return new m({array:T})}if("set"==_){for(E=t[_],T=[],w=0;w<E.length;w++)D=b(E[w]),T.push(D);return new v({array:T})}if("tag"==_){var O=t[_];if("[object Array]"===Object.prototype.toString.call(O)&&3==O.length){var N=b(O[2]);return new y({tag:O[0],explicit:O[1],obj:N})}var x={};if(void 0!==O.explicit&&(x.explicit=O.explicit),void 0!==O.tag&&(x.tag=O.tag),void 0===O.obj)throw"obj shall be specified for 'tag'.";return x.obj=b(O.obj),new y(x)}},this.jsonToASN1HEX=function(t){return this.newObject(t).getEncodedHex()}},lr.asn1.ASN1Util.oidHexToInt=function(t){for(var e="",n=parseInt(t.substring(0,2),16),r=(e=Math.floor(n/40)+"."+n%40,""),s=2;s<t.length;s+=2){var i=("00000000"+parseInt(t.substring(s,s+2),16).toString(2)).slice(-8);r+=i.substring(1,8),"0"==i.substring(0,1)&&(e=e+"."+new _n(r,2).toString(10),r="")}return e},lr.asn1.ASN1Util.oidIntToHex=function(t){var e=function(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e},n=function(t){var n="",r=new _n(t,10).toString(2),s=7-r.length%7;7==s&&(s=0);for(var i="",o=0;o<s;o++)i+="0";for(r=i+r,o=0;o<r.length-1;o+=7){var a=r.substring(o,o+7);o!=r.length-7&&(a="1"+a),n+=e(parseInt(a,2))}return n};if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var r="",s=t.split("."),i=40*parseInt(s[0])+parseInt(s[1]);r+=e(i),s.splice(0,2);for(var o=0;o<s.length;o++)r+=n(s[o]);return r},lr.asn1.ASN1Object=function(){this.getLengthHexFromValue=function(){if(void 0===this.hV||null==this.hV)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n=0,v="+this.hV;var t=this.hV.length/2,e=t.toString(16);if(e.length%2==1&&(e="0"+e),t<128)return e;var n=e.length/2;if(n>15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);return(128+n).toString(16)+e},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},lr.asn1.DERAbstractString=function(t){lr.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(this.s)},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?this.setString(t):void 0!==t.str?this.setString(t.str):void 0!==t.hex&&this.setStringHex(t.hex))},ur(lr.asn1.DERAbstractString,lr.asn1.ASN1Object),lr.asn1.DERAbstractTime=function(t){lr.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(t){return utc=t.getTime()+6e4*t.getTimezoneOffset(),new Date(utc)},this.formatDate=function(t,e,n){var r=this.zeroPadding,s=this.localDateToUTC(t),i=String(s.getFullYear());"utc"==e&&(i=i.substring(2,4));var o=i+r(String(s.getMonth()+1),2)+r(String(s.getDate()),2)+r(String(s.getHours()),2)+r(String(s.getMinutes()),2)+r(String(s.getSeconds()),2);if(!0===n){var a=s.getMilliseconds();if(0!=a){var u=r(String(a),3);o=o+"."+(u=u.replace(/[0]+$/,""))}}return o+"Z"},this.zeroPadding=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(t)},this.setByDateValue=function(t,e,n,r,s,i){var o=new Date(Date.UTC(t,e-1,n,r,s,i,0));this.setByDate(o)},this.getFreshValueHex=function(){return this.hV}},ur(lr.asn1.DERAbstractTime,lr.asn1.ASN1Object),lr.asn1.DERAbstractStructured=function(t){lr.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,void 0!==t&&void 0!==t.array&&(this.asn1Array=t.array)},ur(lr.asn1.DERAbstractStructured,lr.asn1.ASN1Object),lr.asn1.DERBoolean=function(){lr.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},ur(lr.asn1.DERBoolean,lr.asn1.ASN1Object),lr.asn1.DERInteger=function(t){lr.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=lr.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new _n(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.bigint?this.setByBigInteger(t.bigint):void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},ur(lr.asn1.DERInteger,lr.asn1.ASN1Object),lr.asn1.DERBitString=function(t){if(void 0!==t&&void 0!==t.obj){var e=lr.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}lr.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null,this.isModified=!0,this.hV=t},this.setUnusedBitsAndHexValue=function(t,e){if(t<0||7<t)throw"unused bits shall be from 0 to 7: u = "+t;var n="0"+t;this.hTLV=null,this.isModified=!0,this.hV=n+e},this.setByBinaryString=function(t){var e=8-(t=t.replace(/0+$/,"")).length%8;8==e&&(e=0);for(var n=0;n<=e;n++)t+="0";var r="";for(n=0;n<t.length-1;n+=8){var s=t.substring(n,n+8),i=parseInt(s,2).toString(16);1==i.length&&(i="0"+i),r+=i}this.hTLV=null,this.isModified=!0,this.hV="0"+e+r},this.setByBooleanArray=function(t){for(var e="",n=0;n<t.length;n++)1==t[n]?e+="1":e+="0";this.setByBinaryString(e)},this.newFalseArray=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=!1;return e},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t&&t.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(t):void 0!==t.hex?this.setHexValueIncludingUnusedBits(t.hex):void 0!==t.bin?this.setByBinaryString(t.bin):void 0!==t.array&&this.setByBooleanArray(t.array))},ur(lr.asn1.DERBitString,lr.asn1.ASN1Object),lr.asn1.DEROctetString=function(t){if(void 0!==t&&void 0!==t.obj){var e=lr.asn1.ASN1Util.newObject(t.obj);t.hex=e.getEncodedHex()}lr.asn1.DEROctetString.superclass.constructor.call(this,t),this.hT="04"},ur(lr.asn1.DEROctetString,lr.asn1.DERAbstractString),lr.asn1.DERNull=function(){lr.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},ur(lr.asn1.DERNull,lr.asn1.ASN1Object),lr.asn1.DERObjectIdentifier=function(t){var e=function(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e},n=function(t){var n="",r=new _n(t,10).toString(2),s=7-r.length%7;7==s&&(s=0);for(var i="",o=0;o<s;o++)i+="0";for(r=i+r,o=0;o<r.length-1;o+=7){var a=r.substring(o,o+7);o!=r.length-7&&(a="1"+a),n+=e(parseInt(a,2))}return n};lr.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.setValueOidString=function(t){if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var r="",s=t.split("."),i=40*parseInt(s[0])+parseInt(s[1]);r+=e(i),s.splice(0,2);for(var o=0;o<s.length;o++)r+=n(s[o]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=r},this.setValueName=function(t){var e=lr.asn1.x509.OID.name2oid(t);if(""===e)throw"DERObjectIdentifier oidName undefined: "+t;this.setValueOidString(e)},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?t.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(t):this.setValueName(t):void 0!==t.oid?this.setValueOidString(t.oid):void 0!==t.hex?this.setValueHex(t.hex):void 0!==t.name&&this.setValueName(t.name))},ur(lr.asn1.DERObjectIdentifier,lr.asn1.ASN1Object),lr.asn1.DEREnumerated=function(t){lr.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=lr.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new _n(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},ur(lr.asn1.DEREnumerated,lr.asn1.ASN1Object),lr.asn1.DERUTF8String=function(t){lr.asn1.DERUTF8String.superclass.constructor.call(this,t),this.hT="0c"},ur(lr.asn1.DERUTF8String,lr.asn1.DERAbstractString),lr.asn1.DERNumericString=function(t){lr.asn1.DERNumericString.superclass.constructor.call(this,t),this.hT="12"},ur(lr.asn1.DERNumericString,lr.asn1.DERAbstractString),lr.asn1.DERPrintableString=function(t){lr.asn1.DERPrintableString.superclass.constructor.call(this,t),this.hT="13"},ur(lr.asn1.DERPrintableString,lr.asn1.DERAbstractString),lr.asn1.DERTeletexString=function(t){lr.asn1.DERTeletexString.superclass.constructor.call(this,t),this.hT="14"},ur(lr.asn1.DERTeletexString,lr.asn1.DERAbstractString),lr.asn1.DERIA5String=function(t){lr.asn1.DERIA5String.superclass.constructor.call(this,t),this.hT="16"},ur(lr.asn1.DERIA5String,lr.asn1.DERAbstractString),lr.asn1.DERUTCTime=function(t){lr.asn1.DERUTCTime.superclass.constructor.call(this,t),this.hT="17",this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},void 0!==t&&(void 0!==t.str?this.setString(t.str):"string"==typeof t&&t.match(/^[0-9]{12}Z$/)?this.setString(t):void 0!==t.hex?this.setStringHex(t.hex):void 0!==t.date&&this.setByDate(t.date))},ur(lr.asn1.DERUTCTime,lr.asn1.DERAbstractTime),lr.asn1.DERGeneralizedTime=function(t){lr.asn1.DERGeneralizedTime.superclass.constructor.call(this,t),this.hT="18",this.withMillis=!1,this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},void 0!==t&&(void 0!==t.str?this.setString(t.str):"string"==typeof t&&t.match(/^[0-9]{14}Z$/)?this.setString(t):void 0!==t.hex?this.setStringHex(t.hex):void 0!==t.date&&this.setByDate(t.date),!0===t.millis&&(this.withMillis=!0))},ur(lr.asn1.DERGeneralizedTime,lr.asn1.DERAbstractTime),lr.asn1.DERSequence=function(t){lr.asn1.DERSequence.superclass.constructor.call(this,t),this.hT="30",this.getFreshValueHex=function(){for(var t="",e=0;e<this.asn1Array.length;e++)t+=this.asn1Array[e].getEncodedHex();return this.hV=t,this.hV}},ur(lr.asn1.DERSequence,lr.asn1.DERAbstractStructured),lr.asn1.DERSet=function(t){lr.asn1.DERSet.superclass.constructor.call(this,t),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var t=new Array,e=0;e<this.asn1Array.length;e++){var n=this.asn1Array[e];t.push(n.getEncodedHex())}return 1==this.sortFlag&&t.sort(),this.hV=t.join(""),this.hV},void 0!==t&&void 0!==t.sortflag&&0==t.sortflag&&(this.sortFlag=!1)},ur(lr.asn1.DERSet,lr.asn1.DERAbstractStructured),lr.asn1.DERTaggedObject=function(t){lr.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(t,e,n){this.hT=e,this.isExplicit=t,this.asn1Object=n,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=n.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,e),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.tag&&(this.hT=t.tag),void 0!==t.explicit&&(this.isExplicit=t.explicit),void 0!==t.obj&&(this.asn1Object=t.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},ur(lr.asn1.DERTaggedObject,lr.asn1.ASN1Object);var cr,hr=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),fr=function(t){function e(n){var r=t.call(this)||this;return n&&("string"==typeof n?r.parseKey(n):(e.hasPrivateKeyProperty(n)||e.hasPublicKeyProperty(n))&&r.parsePropertiesFrom(n)),r}return hr(e,t),e.prototype.parseKey=function(t){try{var e=0,n=0,r=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/.test(t)?function(t){var e;if(void 0===rn){var n="0123456789ABCDEF";for(rn={},e=0;e<16;++e)rn[n.charAt(e)]=e;for(n=n.toLowerCase(),e=10;e<16;++e)rn[n.charAt(e)]=e;for(e=0;e<8;++e)rn[" \f\n\r\t \u2028\u2029".charAt(e)]=-1}var r=[],s=0,i=0;for(e=0;e<t.length;++e){var o=t.charAt(e);if("="==o)break;if(-1!=(o=rn[o])){if(void 0===o)throw new Error("Illegal character at offset "+e);s|=o,++i>=2?(r[r.length]=s,s=0,i=0):s<<=4}}if(i)throw new Error("Hex encoding incomplete: 4 bits missing");return r}(t):ln.unarmor(t),s=vn.decode(r);if(3===s.sub.length&&(s=s.sub[2].sub[0]),9===s.sub.length){e=s.sub[1].getHexStringValue(),this.n=Nn(e,16),n=s.sub[2].getHexStringValue(),this.e=parseInt(n,16);var i=s.sub[3].getHexStringValue();this.d=Nn(i,16);var o=s.sub[4].getHexStringValue();this.p=Nn(o,16);var a=s.sub[5].getHexStringValue();this.q=Nn(a,16);var u=s.sub[6].getHexStringValue();this.dmp1=Nn(u,16);var l=s.sub[7].getHexStringValue();this.dmq1=Nn(l,16);var c=s.sub[8].getHexStringValue();this.coeff=Nn(c,16)}else{if(2!==s.sub.length)return!1;if(s.sub[0].sub){var h=s.sub[1].sub[0];e=h.sub[0].getHexStringValue(),this.n=Nn(e,16),n=h.sub[1].getHexStringValue(),this.e=parseInt(n,16)}else e=s.sub[0].getHexStringValue(),this.n=Nn(e,16),n=s.sub[1].getHexStringValue(),this.e=parseInt(n,16)}return!0}catch(f){return!1}},e.prototype.getPrivateBaseKey=function(){var t={array:[new lr.asn1.DERInteger({int:0}),new lr.asn1.DERInteger({bigint:this.n}),new lr.asn1.DERInteger({int:this.e}),new lr.asn1.DERInteger({bigint:this.d}),new lr.asn1.DERInteger({bigint:this.p}),new lr.asn1.DERInteger({bigint:this.q}),new lr.asn1.DERInteger({bigint:this.dmp1}),new lr.asn1.DERInteger({bigint:this.dmq1}),new lr.asn1.DERInteger({bigint:this.coeff})]};return new lr.asn1.DERSequence(t).getEncodedHex()},e.prototype.getPrivateBaseKeyB64=function(){return on(this.getPrivateBaseKey())},e.prototype.getPublicBaseKey=function(){var t=new lr.asn1.DERSequence({array:[new lr.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new lr.asn1.DERNull]}),e=new lr.asn1.DERSequence({array:[new lr.asn1.DERInteger({bigint:this.n}),new lr.asn1.DERInteger({int:this.e})]}),n=new lr.asn1.DERBitString({hex:"00"+e.getEncodedHex()});return new lr.asn1.DERSequence({array:[t,n]}).getEncodedHex()},e.prototype.getPublicBaseKeyB64=function(){return on(this.getPublicBaseKey())},e.wordwrap=function(t,e){if(!t)return t;var n="(.{1,"+(e=e||64)+"})( +|$\n?)|(.{1,"+e+"})";return t.match(RegExp(n,"g")).join("\n")},e.prototype.getPrivateKey=function(){var t="-----BEGIN RSA PRIVATE KEY-----\n";return(t+=e.wordwrap(this.getPrivateBaseKeyB64())+"\n")+"-----END RSA PRIVATE KEY-----"},e.prototype.getPublicKey=function(){var t="-----BEGIN PUBLIC KEY-----\n";return(t+=e.wordwrap(this.getPublicBaseKeyB64())+"\n")+"-----END PUBLIC KEY-----"},e.hasPublicKeyProperty=function(t){return(t=t||{}).hasOwnProperty("n")&&t.hasOwnProperty("e")},e.hasPrivateKeyProperty=function(t){return(t=t||{}).hasOwnProperty("n")&&t.hasOwnProperty("e")&&t.hasOwnProperty("d")&&t.hasOwnProperty("p")&&t.hasOwnProperty("q")&&t.hasOwnProperty("dmp1")&&t.hasOwnProperty("dmq1")&&t.hasOwnProperty("coeff")},e.prototype.parsePropertiesFrom=function(t){this.n=t.n,this.e=t.e,t.hasOwnProperty("d")&&(this.d=t.d,this.p=t.p,this.q=t.q,this.dmp1=t.dmp1,this.dmq1=t.dmq1,this.coeff=t.coeff)},e}(or),pr="undefined"!=typeof process?null===(cr=process.env)||void 0===cr?void 0:cr.npm_package_version:void 0,dr=function(){function t(t){void 0===t&&(t={}),this.default_key_size=t.default_key_size?parseInt(t.default_key_size,10):1024,this.default_public_exponent=t.default_public_exponent||"010001",this.log=t.log||!1,this.key=t.key||null}return t.prototype.setKey=function(t){t?(this.log&&this.key,this.key=new fr(t)):!this.key&&this.log},t.prototype.setPrivateKey=function(t){this.setKey(t)},t.prototype.setPublicKey=function(t){this.setKey(t)},t.prototype.decrypt=function(t){try{return this.getKey().decrypt(an(t))}catch(e){return!1}},t.prototype.encrypt=function(t){try{return on(this.getKey().encrypt(t))}catch(e){return!1}},t.prototype.encryptOAEP=function(t){try{return on(this.getKey().encrypt(t,ir))}catch(e){return!1}},t.prototype.sign=function(t,e,n){void 0===e&&(e=function(t){return t}),void 0===n&&(n="");try{return on(this.getKey().sign(t,e,n))}catch(r){return!1}},t.prototype.signSha256=function(t){return this.sign(t,function(t){return zn($n(t))},"sha256")},t.prototype.verify=function(t,e,n){void 0===n&&(n=function(t){return t});try{return this.getKey().verify(t,an(e),n)}catch(r){return!1}},t.prototype.verifySha256=function(t,e){return this.verify(t,e,function(t){return zn($n(t))})},t.prototype.getKey=function(t){if(!this.key){if(this.key=new fr,t&&"[object Function]"==={}.toString.call(t))return void this.key.generateAsync(this.default_key_size,this.default_public_exponent,t);this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},t.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},t.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},t.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},t.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},t.version=pr,t}();const gr={data:{key:""}},mr=()=>c(null,null,function*(){let t=l({status:200,message:""},gr);try{const e=(yield Ve("/mbuhx0as4kui",{ajax:1,render:xe(),json:1})).data;t.data={key:e.key}}catch(e){t=l({status:e.status||500,message:e.message},gr)}return t}),vr={data:{msg:"",accessToken:"",fullName:"",unreadMailCount:"",status:"",username:"",walletAmount:"",captcha:""}},yr={data:{winnerList:[]}};t.GameType=Me,t.api=je,t.cmsListApi=()=>c(null,null,function*(){let t=l({status:200,message:""},Ze);try{const e=(yield Ve("/apis/cmsList",{render:xe(),json:1})).data;t.data={mobileBanner:e.results.mobileBanner.map(t=>t.content)}}catch(e){t=l({status:e.status||500,message:e.message},Ze)}return t}),t.csLinkApi=()=>c(null,null,function*(){var t;let e=l({status:200,message:""},ze);try{const n=(yield Ve("/apis/cslink",{render:xe(),json:1})).data;e.data={liveChat:null!=(t=n.livechat)?t:""}}catch(n){e=l({status:n.status||500,message:n.message},ze)}return e}),t.currentLangApi=()=>c(null,null,function*(){let t=l({status:200,message:""},Ue);try{const e=(yield Ve("/apis/currentLang",{render:xe(),json:1})).data;t.data={lang:e}}catch(e){t=l({status:e.status||500,message:e.message},Ue)}return t}),t.eGameApi=t=>c(null,null,function*(){let e=l({status:200,message:""},Ge);try{const n=(yield Ve(`/apis/egame/json/${t}`,{render:xe(),json:1})).data;e.data={eGameList:n.map(t=>{var e,n,r,s,i,o,a,u,l,c,h,f;return{gameId:null!=(e=t.game_id)?e:"",imgSrc:null!=(n=t.imgSrc)?n:"",imgPf:null!=(r=t.imgPf)?r:"",name:null!=(s=t.name)?s:"",favouriteFlag:1===t.favourite_flag,platformStatusFflag:null!=(i=t.platform_status_Fflag)?i:"",platformFlagName:null!=(o=t.platform_flag_name)?o:"",platformStatusParams:{eb:null!=(a=t.platform_status_params.eb)&&a,fit:null!=(u=t.platform_status_params.fit)&&u,fs:null!=(l=t.platform_status_params.fs)&&l},progressive:null!=(c=t.progressive)?c:"",gameCategory:null!=(h=t.game_category)?h:"",ppid:null!=(f=t.pp_id)?f:""}})}}catch(n){e=l({status:n.status||500,message:n.message},Ge)}return e}),t.fishGamesApi=()=>c(null,null,function*(){let t=l({status:200,message:""},Fe);try{const e=(yield Ve("/apis/fishGames",{render:xe(),json:1})).data;t.data={hotfish:e.hotfish.map(t=>qe(t)),data:e.data.map(t=>qe(t))}}catch(e){t=l({status:e.status||500,message:e.message},Fe)}return t}),t.getLocaleApi=()=>c(null,null,function*(){let t=l({status:200,message:""},$e);try{const e=(yield Ve("/apis/getLocale",{render:xe(),json:1})).data,n=[];Object.entries(e).map(([t,e])=>n.push({code:t,label:e.label})),t.data=n}catch(e){t=l({status:e.status||500,message:e.message},$e)}return t}),t.getLoginKeyApi=mr,t.getSettingApi=t=>c(null,null,function*(){var e,n;let r=l({status:200,message:""},Je);try{const s=(yield Ve("/apis/getSetting",{setting:`${t}`,render:xe(),json:1})).data;r.data={csrf:null!=(e=s.csrf)?e:"",getCaptcha:null!=(n=s.data.CAPTCHA)?n:"",verificationBeforeLogin:"1"===s.data["slide-verification"],publicKey:s.data.encryptkey?s.data.encryptkey.pub.replace(/-----BEGIN PUBLIC KEY-----|-----END PUBLIC KEY-----|\r|\n|=#/g,""):"",concantenatedKey:s.data.encryptkey?Object.keys(s.data.encryptkey.pubarr).join("+"):""}}catch(s){r=l({status:s.status||500,message:s.message},Je)}return r}),t.getWinnerListApi=()=>c(null,null,function*(){let t=l({status:200,message:""},yr);try{const e=(yield Ve("/apis/getWinnerList",{render:xe(),json:1})).data;t.data={winnerList:e.results.notifications}}catch(e){t=l({status:e.status||500,message:e.message},yr)}return t}),t.homeApi=()=>c(null,null,function*(){let t=l({status:200,message:""},ke);try{const e=(yield Ve("/apis/home",{render:xe(),json:1})).data;t.data={game:Object.fromEntries(Object.entries(e.game).map(([t,e])=>[t,e.map(t=>(t=>{var e,n,r,s,i,o,a,u,l,c,h,f,p,d,g,m,v,y,b,S,_,E,T,w,D,O,N,x,V,R,A,B,P,I,C,j,k;return{id:null!=(e=t.id)?e:0,idPlatformMaster:null!=(n=t.id_PlatformMaster)?n:0,idProductMaster:null!=(r=t.id_ProductMaster)?r:0,name:null!=(s=t.name)?s:"",shortName:null!=(i=t.shortName)?i:"",img:null!=(o=t.img)?o:"",mobileUrl:null!=(a=t.mobileUrl)?a:"",url:null!=(u=t.url)?u:"",desc:null!=(l=t.desc)?l:"",seq:null!=(c=t.seq)?c:0,flag:null!=(h=t.flag)?h:0,status:null!=(f=t.status)?f:"",createdBy:null!=(p=t.created_by)?p:0,createdOn:null!=(d=t.created_on)?d:"",categoryID:null!=(g=t.categoryid)?g:0,com:null!=(m=t.com)?m:"",cur:null!=(v=t.cur)?v:"",pt:null!=(y=t.pt)?y:"",ppName:null!=(b=t.pp_name)?b:"",ppImage:null!=(S=t.pp_image)?S:"",platformCode:null!=(_=t.platform_code)?_:"",platformName:null!=(E=t.platform_name)?E:"",classIcon:null!=(T=t.class_icon)?T:"",productCode:null!=(w=t.product_code)?w:"",productName:null!=(D=t.product_name)?D:"",gameID:null!=(O=t.game_id)?O:0,fAuth:null!=(N=t.fAuth)&&N,platformStatusParams:{eb:null!=(x=t.platform_status_params.eb)&&x,fit:null!=(V=t.platform_status_params.fit)&&V,fs:null!=(R=t.platform_status_params.fs)&&R},loginFlag:"1"===t.login_flag,link:null!=(A=t.link)?A:"",favouriteFlag:1===t.favourite_flag,platformStatusFlag:null!=(B=t.platform_status_flag)?B:"",platformFlagName:null!=(P=t.platform_flag_name)?P:"",homeLogo:null!=(I=t.home_logo)?I:"",imgPf:null!=(C=t.imgPf)?C:"",imgSport:null!=(j=t.imgSport)?j:"",imgTemplate:null!=(k=t.imgTemplate)?k:""}})(t))])),mobileBanner:e.mobileBanner.map(t=>{var e,n,r,s,i,o,a;return{name:null!=(e=t.name)?e:"",content:null!=(n=t.content)?n:"",link:null!=(r=t.link)?r:"",linkTarget:null!=(s=t.link_target)?s:"",updatedOn:null!=(i=t.updated_on)?i:"",idCmsCategory:null!=(o=t.id_cms_category)?o:0,contentOrg:null!=(a=t.content_org)?a:""}}),announcement:e.announcement.map(t=>{var e,n,r,s,i,o,a,u,l,c,h,f,p,d,g;return{announcementIndex:null!=(e=t.announcement_index)?e:0,announcementEnglish:null!=(n=t.announcement_english)?n:"",announcementSimplified:null!=(r=t.announcement_simplified)?r:"",announcementTraditional:null!=(s=t.announcement_traditional)?s:"",announcementMalay:null!=(i=t.announcement_malay)?i:"",announcementStatus:"1"===t.announcement_status,announcementShow:"1"===t.announcement_show,announcementAlert:"1"===t.announcement_alert,announcementUser:"1"===t.announcement_user,announcementSequence:null!=(o=t.announcement_sequence)?o:0,announcementCompany:"1"===t.announcement_company,companyIndex:null!=(a=t.companyindex)?a:0,announcementLastUpdated:null!=(u=t.announcement_lastupdated)?u:"",announcementDateCreated:null!=(l=t.announcement_datecreated)?l:"",announcementSmaid:null!=(c=t.announcement_smaid)?c:"",annTimer:null!=(h=t.ann_timer)?h:"",annStart:null!=(f=t.ann_start)?f:"",annEnd:null!=(p=t.ann_end)?p:"",grp:null!=(d=t.grp)?d:"",time:null!=(g=t.time)?g:""}}),alertAnnouncement:e.alert_announcement.map(t=>{var e,n;return{announcementDateCreated:null!=(e=t.announcement_datecreated)?e:"",announcementSimplified:null!=(n=t.announcement_simplified)?n:""}})}}catch(e){t=l({status:e.status||500,message:e.message},ke)}return t}),t.hotGamesApi=()=>c(null,null,function*(){var t,e,n,r,s,i,o,a,u;let c=l({status:200,message:""},Le);try{const l=(yield Ve("/apis/hotGames",{render:xe(),json:1})).data;c.data={currentPage:null!=(t=l.current_page)?t:0,data:l.data.map(t=>{var e,n,r,s,i,o,a,u,l,c,h,f,p,d,g,m,v;return{id:null!=(e=t.id)?e:0,name:null!=(n=t.name)?n:"",pfid:null!=(r=t.pfid)?r:0,ppname:null!=(s=t.ppname)?s:"",code:null!=(i=t.code)?i:"",img:null!=(o=t.img)?o:"",progressive:null!=(a=t.progressive)?a:"",ppid:null!=(u=t.ppid)?u:0,notry:1===t.notry,productCode:null!=(l=t.product_code)?l:"",imgSrc:null!=(c=t.imgSrc)?c:"",imgPf:null!=(h=t.imgPf)?h:"",favouriteFlag:1===t.favourite_flag,platformStatusFlag:null!=(f=t.platform_status_flag)?f:"",platformFlagName:null!=(p=t.platform_flag_name)?p:"",platformStatusParams:{eb:null!=(d=t.platform_status_params.eb)&&d,fit:null!=(g=t.platform_status_params.fit)&&g,fs:null!=(m=t.platform_status_params.fs)&&m},gameId:null!=(v=t.game_id)?v:0}}),from:null!=(e=l.from)?e:0,lastPage:null!=(n=l.last_page)?n:0,nextPageUrl:null!=(r=l.next_page_url)?r:"",path:null!=(s=l.path)?s:"",perPage:null!=(i=l.per_page)?i:0,prevPageUrl:null!=(o=l.prev_page_url)?o:"",to:null!=(a=l.to)?a:0,total:null!=(u=l.total)?u:0}}catch(h){c=l({status:h.status||500,message:h.message},Le)}return c}),t.loginApi=(t,e,n,r,s,i,o,a)=>c(null,null,function*(){var u,c,h,f,p,d,g,m;let v=l({status:200,message:""},vr);const y=t,b=e,S=n,_=s;try{let t;i&&(t=(yield mr()).data);const e=new dr;e.setPublicKey(o);let n=r.host.split(":")[0];const s=e.encrypt(n.trim());n=s&&n.length<53?s:n.trim();const l={};l.fr_username=e.encrypt(y.trim()),l.fr_password=e.encrypt(b.trim()),l.fr_gdcode=S,l.isApp=_,l.domain=n,l._token=a,l.json=1,l.encrypt=1,t&&Object.assign(l,t);const E=(yield Re("/kdink8anl8z3",l,{render:xe(),json:1})).data;v.data={msg:null!=(u=E.msg)?u:"",accessToken:null!=(c=E.access_token)?c:"",fullName:null!=(h=E.fullname)?h:"",unreadMailCount:null!=(f=E.news)?f:"",status:null!=(p=E.status)?p:"",username:null!=(d=E.username)?d:"",walletAmount:null!=(g=E.wallet)?g:"",captcha:null!=(m=E.captcha)?m:""}}catch(E){v=l({status:E.status||500,message:E.message},vr)}return v}),t.promotionApi=()=>c(null,null,function*(){let t=l({status:200,message:""},Ke);try{const e=(yield Ve("/apis/promotion",{render:xe(),json:1})).data;t.data={objList:e.objList.map(t=>{var e,n,r,s,i,o,a,u,l,c,h,f,p,d,g,m,v,y,b,S,_,E,T,w,D,O,N,x;return{promoIndex:null!=(e=t.promoindex)?e:0,type:null!=(n=t.type)?n:0,thumb:null!=(r=t.thumb)?r:0,title:null!=(s=t.title)?s:"",displayTime:null!=(i=t.display_time)?i:"",handle:null!=(o=t.handle)?o:"",content:null!=(a=t.content)?a:"",langList:null!=(u=t.lang_list)?u:"",agentList:null!=(l=t.agent_list)?l:"",dateCreated:null!=(c=t.datecreated)?c:"",updateBy:null!=(h=t.updateby)?h:"",lastUpdated:null!=(f=t.lastupdated)?f:"",sequence:null!=(p=t.sequence)?p:0,status:1===t.status,timer:null!=(d=t.timer)?d:"",stime:null!=(g=t.stime)?g:"",etime:null!=(m=t.etime)?m:"",smaid:null!=(v=t.smaid)?v:"",companyIndex:null!=(y=t.companyindex)?y:"",fileName:null!=(b=t.filename)?b:"",version:null!=(S=t.version)?S:"",categoryName:null!=(_=t.category_name)?_:"",barImg:null!=(E=t.bar_img)?E:"",buttonImg:null!=(T=t.button_img)?T:"",promoImg:null!=(w=t.promo_image)?w:"",catId:null!=(D=t.catid)?D:"",imageType:null!=(O=t.image_type)?O:"",image:null!=(N=t.image)?N:"",isLink:t.isLink,latestUpdate:null!=(x=t.latestupdate)?x:""}}),promoCat:e.promoCat.map(t=>{var e,n,r,s;return{catId:null!=(e=t.catid)?e:0,name:null!=(n=t.name)?n:"",barImg:null!=(r=t.bar_img)?r:"",buttonImg:null!=(s=t.button_img)?s:""}}),resize:e.resize}}catch(e){t=l({status:e.status||500,message:e.message},Ke)}return t}),t.trialGamesApi=()=>c(null,null,function*(){let t=l({status:200,message:""},He);try{const e=(yield Ve("/apis/trialGames",{render:xe(),json:1})).data;t.data=e.map(t=>{var e,n;return{ppid:null!=(e=t.ppid)?e:0,ppname:null!=(n=t.ppname)?n:"",games:t.games.map(e=>{var n,r,s,i,o,a,u,l,c,h,f,p;return{id:null!=(n=e.id)?n:0,name:null!=(r=e.name)?r:"",img:null!=(s=e.img)?s:"",progressive:null!=(i=e.progressive)?i:"",notry:1===e.notry,imgSrc:null!=(o=e.imgSrc)?o:"",imgPf:null!=(a=e.imgPf)?a:"",favouriteFlag:1===e.favourite_flag,platformStatusFflag:null!=(u=e.platform_status_Fflag)?u:"",platformFlagName:null!=(l=e.platform_flag_name)?l:"",platformStatusParams:{eb:null!=(c=e.platform_status_params.eb)&&c,fit:null!=(h=e.platform_status_params.fit)&&h,fs:null!=(f=e.platform_status_params.fs)&&f},ppname:null!=(p=t.ppname)?p:""}})}})}catch(e){t=l({status:e.status||500,message:e.message},He)}return t}),Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})});
|
package/dist/api/eGame/type.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseType } from '../../util/type';
|
|
1
|
+
import { BaseType, PlatformStatusParam } from '../../util/type';
|
|
2
2
|
export type EGameResponse = BaseType & {
|
|
3
3
|
data: {
|
|
4
4
|
eGameList: EGameData[];
|
|
@@ -17,9 +17,4 @@ export type EGameData = {
|
|
|
17
17
|
gameCategory: string;
|
|
18
18
|
ppid: string;
|
|
19
19
|
};
|
|
20
|
-
export type PlatformStatusParam = {
|
|
21
|
-
eb: boolean;
|
|
22
|
-
fit: boolean;
|
|
23
|
-
fs: boolean;
|
|
24
|
-
};
|
|
25
20
|
//# sourceMappingURL=type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/api/eGame/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/api/eGame/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAA;AAE/D,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG;IACrC,IAAI,EAAE;QACJ,SAAS,EAAE,SAAS,EAAE,CAAA;KACvB,CAAA;CACF,CAAA;AAED,MAAM,MAAM,SAAS,GAAG;IACtB,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,aAAa,EAAE,OAAO,CAAA;IACtB,mBAAmB,EAAE,MAAM,CAAA;IAC3B,gBAAgB,EAAE,MAAM,CAAA;IACxB,oBAAoB,EAAE,mBAAmB,CAAA;IACzC,WAAW,EAAE,MAAM,CAAA;IACnB,YAAY,EAAE,MAAM,CAAA;IACpB,IAAI,EAAE,MAAM,CAAA;CACb,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fishGamesApi.d.ts","sourceRoot":"","sources":["../../../src/api/fishGames/fishGamesApi.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"fishGamesApi.d.ts","sourceRoot":"","sources":["../../../src/api/fishGames/fishGamesApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,iBAAiB,EAAE,MAAM,QAAQ,CAAA;AAczD,eAAO,MAAM,YAAY,QAAa,OAAO,CAAC,iBAAiB,CAkC9D,CAAA"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { BaseType } from '../../util/type';
|
|
1
|
+
import { BaseType, PlatformStatusParam } from '../../util/type';
|
|
2
2
|
export type FishGamesResponse = BaseType & {
|
|
3
3
|
data: FishGamesData;
|
|
4
4
|
};
|
|
5
5
|
export type FishGamesData = {
|
|
6
|
-
hotfish:
|
|
7
|
-
data:
|
|
6
|
+
hotfish: FishGamesItem[];
|
|
7
|
+
data: FishGamesItem[];
|
|
8
8
|
};
|
|
9
|
-
export type
|
|
9
|
+
export type FishGamesItem = {
|
|
10
10
|
id: number;
|
|
11
11
|
name: string;
|
|
12
12
|
ppid: number;
|
|
@@ -24,9 +24,4 @@ export type GameItem = {
|
|
|
24
24
|
platformFlagName: string;
|
|
25
25
|
platformStatusParams: PlatformStatusParam;
|
|
26
26
|
};
|
|
27
|
-
export type PlatformStatusParam = {
|
|
28
|
-
eb: boolean;
|
|
29
|
-
fit: boolean;
|
|
30
|
-
fs: boolean;
|
|
31
|
-
};
|
|
32
27
|
//# sourceMappingURL=type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/api/fishGames/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/api/fishGames/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAA;AAE/D,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG;IACzC,IAAI,EAAE,aAAa,CAAA;CACpB,CAAA;AAED,MAAM,MAAM,aAAa,GAAG;IAC1B,OAAO,EAAE,aAAa,EAAE,CAAA;IACxB,IAAI,EAAE,aAAa,EAAE,CAAA;CACtB,CAAA;AAED,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,YAAY,EAAE,MAAM,CAAA;IACpB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,OAAO,CAAA;IACtB,mBAAmB,EAAE,MAAM,CAAA;IAC3B,gBAAgB,EAAE,MAAM,CAAA;IACxB,oBAAoB,EAAE,mBAAmB,CAAA;CAC1C,CAAA"}
|
package/dist/api/home/type.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseType } from '../../util/type';
|
|
1
|
+
import { BaseType, PlatformStatusParam } from '../../util/type';
|
|
2
2
|
export declare enum GameType {
|
|
3
3
|
SPORT = "SPORT",
|
|
4
4
|
SPECIAL = "SPECIAL",
|
|
@@ -60,11 +60,6 @@ export type PlatformGame = {
|
|
|
60
60
|
imgSport: string;
|
|
61
61
|
imgTemplate: string;
|
|
62
62
|
};
|
|
63
|
-
export type PlatformStatusParam = {
|
|
64
|
-
eb: boolean;
|
|
65
|
-
fit: boolean;
|
|
66
|
-
fs: boolean;
|
|
67
|
-
};
|
|
68
63
|
export type MobileBanner = {
|
|
69
64
|
name: string;
|
|
70
65
|
content: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/api/home/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/api/home/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAA;AAE/D,oBAAY,QAAQ;IAClB,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,KAAK,UAAU;CAChB;AAED,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG;IACpC,IAAI,EAAE,QAAQ,CAAA;CACf,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG;IACrB,IAAI,EAAE,IAAI,CAAA;IACV,YAAY,EAAE,YAAY,EAAE,CAAA;IAC5B,YAAY,EAAE,YAAY,EAAE,CAAA;IAC5B,iBAAiB,EAAE,iBAAiB,EAAE,CAAA;CACvC,CAAA;AAED,MAAM,MAAM,IAAI,GAAG;IACjB,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY,EAAE,CAAA;CAC9B,CAAA;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,EAAE,MAAM,CAAA;IACV,gBAAgB,EAAE,MAAM,CAAA;IACxB,eAAe,EAAE,MAAM,CAAA;IACvB,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,CAAA;IACjB,GAAG,EAAE,MAAM,CAAA;IACX,SAAS,EAAE,MAAM,CAAA;IACjB,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE,MAAM,CAAA;IAClB,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,CAAA;IACf,YAAY,EAAE,MAAM,CAAA;IACpB,YAAY,EAAE,MAAM,CAAA;IACpB,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,MAAM,CAAA;IACnB,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,OAAO,CAAA;IACd,oBAAoB,EAAE,mBAAmB,CAAA;IACzC,SAAS,EAAE,OAAO,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,aAAa,EAAE,OAAO,CAAA;IACtB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,gBAAgB,EAAE,MAAM,CAAA;IACxB,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,MAAM,CAAA;CACpB,CAAA;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;IACjB,aAAa,EAAE,MAAM,CAAA;IACrB,UAAU,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,iBAAiB,EAAE,MAAM,CAAA;IACzB,mBAAmB,EAAE,MAAM,CAAA;IAC3B,sBAAsB,EAAE,MAAM,CAAA;IAC9B,uBAAuB,EAAE,MAAM,CAAA;IAC/B,iBAAiB,EAAE,MAAM,CAAA;IACzB,kBAAkB,EAAE,OAAO,CAAA;IAC3B,gBAAgB,EAAE,OAAO,CAAA;IACzB,iBAAiB,EAAE,OAAO,CAAA;IAC1B,gBAAgB,EAAE,OAAO,CAAA;IACzB,oBAAoB,EAAE,MAAM,CAAA;IAC5B,mBAAmB,EAAE,OAAO,CAAA;IAC5B,YAAY,EAAE,MAAM,CAAA;IACpB,uBAAuB,EAAE,MAAM,CAAA;IAC/B,uBAAuB,EAAE,MAAM,CAAA;IAC/B,iBAAiB,EAAE,MAAM,CAAA;IACzB,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;IACd,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC9B,uBAAuB,EAAE,MAAM,CAAA;IAC/B,sBAAsB,EAAE,MAAM,CAAA;CAC/B,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseType } from '../../util/type';
|
|
1
|
+
import { BaseType, PlatformStatusParam } from '../../util/type';
|
|
2
2
|
export type HotGamesResponse = BaseType & {
|
|
3
3
|
data: HotGamesData;
|
|
4
4
|
};
|
|
@@ -33,9 +33,4 @@ export type HotGamesItem = {
|
|
|
33
33
|
platformStatusParams: PlatformStatusParam;
|
|
34
34
|
gameId: number;
|
|
35
35
|
};
|
|
36
|
-
export type PlatformStatusParam = {
|
|
37
|
-
eb: boolean;
|
|
38
|
-
fit: boolean;
|
|
39
|
-
fs: boolean;
|
|
40
|
-
};
|
|
41
36
|
//# sourceMappingURL=type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/api/hotGames/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/api/hotGames/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAA;AAE/D,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG;IACxC,IAAI,EAAE,YAAY,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,EAAE,YAAY,EAAE,CAAA;IACpB,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,MAAM,CAAA;IACnB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;IACX,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,OAAO,CAAA;IACd,WAAW,EAAE,MAAM,CAAA;IACnB,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,OAAO,CAAA;IACtB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,gBAAgB,EAAE,MAAM,CAAA;IACxB,oBAAoB,EAAE,mBAAmB,CAAA;IACzC,MAAM,EAAE,MAAM,CAAA;CACf,CAAA"}
|