diff --git a/dist/main-site/browser/679.26b571439f5f5a25.js b/dist/main-site/browser/679.26b571439f5f5a25.js new file mode 100644 index 00000000..99835a3f --- /dev/null +++ b/dist/main-site/browser/679.26b571439f5f5a25.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain_site=self.webpackChunkmain_site||[]).push([[679],{6679:(A,v,e)=>{e.r(v),e.d(v,{HomeModule:()=>q});var n=e(6895),g=e(1390),p=e(3811),U=e(6319),r=e(7032),f=e(2314),a=e(859),c=e(2587),u=e(6356),h=e(5208),T=e(4674),t=e(4650),O=e(9816),i=e(80),Z=e(9156),d=e(8111),C=e(293),D=e(3842),R=e(3322),L=e(8151),k=e(5312),F=e(4272),I=e(2510),N=e(183),y=e(4758),S=e(9818),E=e(8377),H=e(3238),w=e(7392),M=e(9982),P=e(7462),$=e(7397),Y=e(1105);function B(s,_){if(1&s&&(t.TgZ(0,"a",39),t._UZ(1,"mat-icon",40),t._uU(2),t.qZA()),2&s){const o=_.$implicit;t.Gre("m-1 ","/berkas"===o.link?"shiny":"",""),t.s9C("routerLink",o.link),t.xp6(1),t.Q6J("fontIcon",o.icon),t.xp6(1),t.hij(" ",o.name," ")}}function J(s,_){1&s&&t._UZ(0,"app-no-data",41)}function K(s,_){if(1&s&&(t.TgZ(0,"div",44)(1,"mat-card"),t._UZ(2,"img",45),t.TgZ(3,"mat-card-content",46)(4,"h3",47),t._uU(5),t.qZA()(),t.TgZ(6,"mat-card-header"),t._UZ(7,"div",48),t.TgZ(8,"mat-card-title",49)(9,"h3",50),t._uU(10),t.qZA()(),t.TgZ(11,"mat-card-subtitle",50),t._uU(12),t.ALo(13,"date"),t.qZA()()()()),2&s){const o=_.$implicit;t.xp6(2),t.MGl("routerLink","/news/",o.id,""),t.Q6J("src",o.image_url,t.LSH),t.xp6(1),t.MGl("routerLink","/news/",o.id,""),t.xp6(2),t.hij(" ",o.title," "),t.xp6(2),t.Udp("background-image","url("+o.user_.image_url+")"),t.xp6(1),t.MGl("routerLink","/user/",o.user_.username,""),t.xp6(2),t.Oqu(o.user_.username),t.xp6(2),t.Oqu(t.xi3(13,9,o.created_at,"d MMMM y, HH:mm:ss z"))}}function W(s,_){if(1&s&&(t.TgZ(0,"div",33)(1,"div",42),t.YNc(2,K,14,12,"div",43),t.ALo(3,"slice"),t.qZA()()),2&s){const o=t.oxw();t.xp6(2),t.Q6J("ngForOf",t.Dn7(3,1,o.newsData,0,3===o.GS.gridListBreakpoint?2:o.GS.gridListBreakpoint))}}function G(s,_){if(1&s){const o=t.EpF();t.TgZ(0,"mat-list-option",54),t._UZ(1,"mat-icon",55),t.TgZ(2,"a",56),t.NdJ("click",function(){const b=t.CHM(o).$implicit,x=t.oxw(2);return t.KtG(x.openComment(b))}),t.TgZ(3,"span",57),t.ALo(4,"date"),t._uU(5),t.ALo(6,"dateAgo"),t.qZA(),t.TgZ(7,"span",58),t._uU(8),t.qZA(),t.TgZ(9,"span",59),t._uU(10),t.qZA()()()}if(2&s){const o=_.$implicit;t.xp6(3),t.s9C("matTooltip",t.xi3(4,4,o.created_at,"d MMMM y, hh:mm:ss a z")),t.xp6(2),t.hij(" ",t.lcZ(6,7,o.created_at)," "),t.xp6(3),t.Oqu(o.user_.username),t.xp6(2),t.Oqu(o.comment)}}function z(s,_){if(1&s){const o=t.EpF();t.TgZ(0,"div",1)(1,"div",29)(2,"h2",30)(3,"span",51),t.NdJ("click",function(){t.CHM(o);const m=t.oxw();return t.KtG(m.getComment())}),t._uU(4," Refresh "),t.qZA(),t.TgZ(5,"b",32),t._uU(6,"Komentar Terbaru"),t.qZA()()(),t.TgZ(7,"div",33)(8,"mat-selection-list",52),t.YNc(9,G,11,9,"mat-list-option",53),t.qZA()()()}if(2&s){const o=t.oxw();t.xp6(8),t.Q6J("multiple",!1),t.xp6(1),t.Q6J("ngForOf",o.komentarData)}}function Q(s,_){if(1&s){const o=t.EpF();t.TgZ(0,"mat-list-option",54),t._UZ(1,"mat-icon",62),t.TgZ(2,"a",56),t.NdJ("click",function(){const b=t.CHM(o).$implicit,x=t.oxw(2);return t.KtG(x.openRssFeed(b.fansub_,b.link))}),t.TgZ(3,"span",57),t.ALo(4,"date"),t._uU(5),t.ALo(6,"dateAgo"),t.qZA(),t.TgZ(7,"span",58),t._uU(8),t.qZA(),t._UZ(9,"span",63),t.qZA()()}if(2&s){const o=_.$implicit;t.xp6(3),t.s9C("matTooltip",t.xi3(4,4,o.created_at,"d MMMM y, hh:mm:ss a z")),t.xp6(2),t.hij(" ",t.lcZ(6,7,o.created_at)," "),t.xp6(3),t.Oqu(o.fansub_.slug),t.xp6(1),t.Q6J("innerHtml",o.title,t.oJD)}}function j(s,_){if(1&s&&(t.TgZ(0,"div",1)(1,"div",29)(2,"h2",30)(3,"a",60),t._uU(4," Lainnya "),t.qZA(),t.TgZ(5,"b",61),t._uU(6," RSS Feed Fansub "),t.qZA()()(),t.TgZ(7,"div",33)(8,"mat-selection-list",52),t.YNc(9,Q,10,9,"mat-list-option",53),t.qZA()()()),2&s){const o=t.oxw();t.xp6(8),t.Q6J("multiple",!1),t.xp6(1),t.Q6J("ngForOf",o.rssFeedData)}}const X=[{path:"",pathMatch:"full",component:(()=>{class s{constructor(o,l,m,b,x,V,tt,nt,ot,et){this.router=o,this.gs=l,this.as=m,this.lms=b,this.news=x,this.komen=V,this.fansub=tt,this.bs=nt,this.wb=ot,this.fs=et,this.newsData=[],this.komentarData=[],this.rssFeedData=[],this.subsNews=null,this.subsKomenGet=null,this.subsRssFeed=null,this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1}get ENV(){return T.N}get GS(){return this.gs}get contentMenus(){return this.lms.contentMenus}ngOnDestroy(){this.subsNews?.unsubscribe(),this.subsKomenGet?.unsubscribe(),this.subsRssFeed?.unsubscribe()}ngOnInit(){this.gs.isBrowser&&(this.getNews(),this.getRssFeed(),this.as.currentUserSubject?.value&&this.getComment(),this.fs.initializeFab(null,"/assets/img/discord/pink.png","Discord Server",T.N.discord.join_url,!0))}getNews(){this.bs.busy(),this.subsNews=this.news.getAllNews("",1,3).subscribe({next:o=>{this.gs.log("[HOME_NEWS_LIST_SUCCESS]",o),this.newsData=o.results,this.bs.idle()},error:o=>{this.gs.log("[HOME_NEWS_LIST_ERROR]",o,"error"),this.bs.idle()}})}getComment(){this.bs.busy(),this.subsKomenGet=this.komen.getAllComment().subscribe({next:o=>{this.gs.log("[HOME_KOMENTAR_LIST_SUCCESS]",o),this.komentarData=o.results;for(const l of this.komentarData)l.comment=this.gs.htmlToText(l.comment);this.bs.idle()},error:o=>{this.gs.log("[HOME_KOMENTAR_LIST_ERROR]",o,"error"),this.bs.idle()}})}getRssFeed(){this.bs.busy(),this.subsRssFeed=this.fansub.getRssFeedFansubAll(!0).subscribe({next:o=>{this.gs.log("[HOME_RSS_FEED_LIST_SUCCESS]",o),this.rssFeedData=o.results,this.bs.idle()},error:o=>{this.gs.log("[HOME_RSS_FEED_LIST_ERROR]",o,"error"),this.bs.idle()}})}openRssFeed(o,l){const m=o.urls.web;if(m){const b=new URL(m);let x=`${b.protocol}//${b.host}`;l.startsWith("/")||(x+="/"),x+=l,this.wb.winboxOpenUri(x)}}openComment(o){this.router.navigate([o.path],{queryParams:{comment:o.id}})}static#t=this.\u0275fac=function(l){return new(l||s)(t.Y36(g.F0),t.Y36(O.U),t.Y36(i.e),t.Y36(Z.S),t.Y36(d.Y),t.Y36(C.k),t.Y36(D.T),t.Y36(R.z),t.Y36(L.N),t.Y36(k.r))};static#n=this.\u0275cmp=t.Xpm({type:s,selectors:[["app-home"]],decls:74,vars:7,consts:[[1,"container"],[1,"row"],[1,"col-12","align-items-center"],[1,"text-center","my-3","mx-auto"],["href","https://www.pixiv.net/en/users/1688603","target","_blank"],[1,"p-5",3,"src"],[1,"h3","font-weight-normal","gradient-text"],[1,"pt-3"],[1,"col-12","col-lg-8","mx-auto"],["matTooltip","Khusus Berkas Yang Upload DDL",1,"text-success"],[1,"row","pb-3"],["mat-stroked-button","","routerLink","/rss-feed",1,"m-1"],["fontIcon","rss_feed",1,"me-1"],["mat-stroked-button","","color","warn",3,"class","routerLink",4,"ngFor","ngForOf"],["mat-stroked-button","","routerLink","/create/ticket",1,"m-1"],["fontIcon","flag",1,"me-1"],["mat-stroked-button","","routerLink","/mailbox","color","accent",1,"m-1"],["fontIcon","mail_outline",1,"me-1"],["mat-stroked-button","","routerLink","/nihongo","color","accent",1,"m-1"],["fontIcon","translate",1,"me-1"],[1,"row","mb-3"],[1,"mouse_scroll"],[1,"mouse"],[1,"wheel"],[1,"m_scroll_arrows","unu"],[1,"m_scroll_arrows","doi"],[1,"m_scroll_arrows","trei"],[1,"row","pb-3","px-0"],[1,"col-lg-8","col-xl-9"],[1,"col-12","sticky-top","bg-bifeldy"],[1,"pt-3","border-bottom-dotted"],["routerLink","/news",1,"float-end","text-decoration-none","text-warning",2,"font-size","small"],[1,"text-bifeldy"],[1,"col-12"],["class","col-12 p-3",4,"ngIf"],["class","col-12",4,"ngIf"],["class","row",4,"ngIf"],[1,"col-lg-4","col-xl-3"],[1,"row","sticky-top"],["mat-stroked-button","","color","warn",3,"routerLink"],[1,"me-1",3,"fontIcon"],[1,"col-12","p-3"],[1,"row","px-3"],["class","col-12 col-md-6 col-xl-4 p-2",4,"ngFor","ngForOf"],[1,"col-12","col-md-6","col-xl-4","p-2"],["mat-card-image","",2,"height","128px","object-fit","cover","cursor","pointer",3,"src","routerLink"],[2,"cursor","pointer",3,"routerLink"],["matLine","",2,"text-overflow","ellipsis","overflow","hidden","white-space","nowrap"],["mat-card-avatar","",2,"background-size","cover","border-radius","0","background-position","center"],[1,"text-warning","mb-1",2,"cursor","pointer",3,"routerLink"],[1,"mb-0"],[1,"float-end","text-warning",2,"font-size","small","cursor","pointer",3,"click"],[3,"multiple"],["class","h-100",4,"ngFor","ngForOf"],[1,"h-100"],["fontIcon","add_comment","mat-list-icon","",1,"ps-3"],[1,"text-truncate","text-decoration-none",3,"click"],[1,"bg-bifeldy","px-2","me-1","text-danger",2,"position","absolute","right","0",3,"matTooltip"],[1,"me-3","text-success"],[1,"text-warning"],["routerLink","/rss-feed",1,"float-end","text-decoration-none","text-warning",2,"font-size","small"],["matTooltip","Diperbaharui 1 Jam Sekali",1,"text-bifeldy"],["fontIcon","rss_feed","mat-list-icon","",1,"ps-3"],[1,"text-warning",3,"innerHtml"]],template:function(l,m){1&l&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"a",4),t._UZ(5,"img",5),t.qZA(),t.TgZ(6,"h1",6),t._uU(7),t.qZA(),t.TgZ(8,"h2",7)(9,"p",8),t._uU(10," Tempat berbagi (+ "),t.TgZ(11,"i"),t._uU(12,"backup"),t.qZA(),t._uU(13,") dan melacak sekaligus mengabadikan berkas proyek garapan animasi maupun film drama dari, oleh, untuk siapa saja. "),t.qZA()(),t.TgZ(14,"h3",9)(15,"p",8),t._uU(16," * Tempat arsip abadi :: Anti "),t.TgZ(17,"i")(18,"u"),t._uU(19,"link"),t.qZA()(),t._uU(20," mati ~ "),t.qZA()(),t.TgZ(21,"div",10)(22,"div",8)(23,"a",11),t._UZ(24,"mat-icon",12),t._uU(25," Lihat Semua Aktivitas Fansub "),t.qZA()()(),t.TgZ(26,"div",10)(27,"div",8),t.YNc(28,B,3,6,"a",13),t.qZA()(),t.TgZ(29,"div",10)(30,"div",8)(31,"a",14),t._UZ(32,"mat-icon",15),t._uU(33," Lapor Pelanggaran & Penyalahgunaan "),t.qZA()()(),t.TgZ(34,"div",10)(35,"div",8)(36,"a",16),t._UZ(37,"mat-icon",17),t._uU(38," Surat Elektronik "),t.qZA(),t.TgZ(39,"a",18),t._UZ(40,"mat-icon",19),t._uU(41," Belajar Bahasa Jepang "),t.qZA()()()()()(),t.TgZ(42,"div",20)(43,"div",2)(44,"div",21)(45,"div",22),t._UZ(46,"div",23),t.qZA(),t.TgZ(47,"div"),t._UZ(48,"span",24)(49,"span",25)(50,"span",26),t.qZA()()()()(),t._UZ(51,"app-notifications"),t.TgZ(52,"div",0)(53,"div",27)(54,"div",28)(55,"div",1)(56,"div",29)(57,"h2",30)(58,"a",31),t._uU(59," Selengkapnya "),t.qZA(),t.TgZ(60,"b",32),t._uU(61,"Papan Pengumuman"),t.qZA()()(),t.TgZ(62,"div",33)(63,"div",1),t.YNc(64,J,1,0,"app-no-data",34),t.YNc(65,W,4,5,"div",35),t.qZA()()(),t.YNc(66,z,10,2,"div",36),t.YNc(67,j,10,2,"div",36),t.qZA(),t.TgZ(68,"div",37)(69,"div",38)(70,"div",33),t._UZ(71,"app-banner-donasi")(72,"app-stats-server")(73,"app-banner-discord"),t.qZA()()()()()),2&l&&(t.xp6(5),t.MGl("src","",m.ENV.baseUrl,"/assets/img/favicon.png",t.LSH),t.xp6(2),t.Oqu(m.ENV.siteName),t.xp6(21),t.Q6J("ngForOf",m.contentMenus),t.xp6(36),t.Q6J("ngIf",m.newsData.length<=0),t.xp6(1),t.Q6J("ngIf",m.newsData.length>0),t.xp6(1),t.Q6J("ngIf",m.komentarData.length>0),t.xp6(1),t.Q6J("ngIf",m.rssFeedData.length>0))},dependencies:[n.sg,n.O5,g.rH,F.u,I.B,N.X,y.t,S.Nr,E.S$,E.u7,E.Qi,E.mi,E._K,E.k0,E.lb,H.X2,w.Hw,M.ap,M.kh,M.O$,P.Kd,$.d,n.OU,n.uU,Y.R]})}return s})()}];let q=(()=>{class s{static#t=this.\u0275fac=function(l){return new(l||s)};static#n=this.\u0275mod=t.oAB({type:s});static#o=this.\u0275inj=t.cJS({imports:[n.ez,g.Bz.forChild(X),u.R,a.R,c.g,r.A,U.F,f.m,p.T,h.d]})}return s})()},4758:(A,v,e)=>{e.d(v,{t:()=>T});var n=e(4650),g=e(1390),p=e(9816),U=e(8598),r=e(6895),f=e(5882);function a(t,O){if(1&t&&n._UZ(0,"div",4),2&t){const i=n.oxw();n.Udp("background-size",i.GS.sizeContain?"contain":"cover")("background-image","url("+i.GS.bannerImg+")")("background-repeat",i.GS.bgRepeat?"repeat-x":"no-repeat")("height",i.ROUTER.url.startsWith("/news")||i.ROUTER.url.startsWith("/berkas")||i.ROUTER.url.startsWith("/fansub")?"192px":"128px")("background-position-y",i.ROUTER.url.startsWith("/berkas")?"22.5%":"")}}function c(t,O){if(1&t&&(n.TgZ(0,"strong",10),n._uU(1," -- "),n.TgZ(2,"i")(3,"a",11),n._uU(4),n.qZA()()()),2&t){const i=n.oxw().$implicit;n.xp6(3),n.MGl("routerLink","/user/",i.notifCreator,""),n.xp6(1),n.hij(" ",i.notifCreator," ")}}function u(t,O){if(1&t){const i=n.EpF();n.TgZ(0,"button",12),n.NdJ("click",function(){n.CHM(i);const d=n.oxw().$implicit,C=n.oxw();return n.KtG(C.removeNotif(d.notifData.id))}),n.qZA()}}function h(t,O){if(1&t&&(n.TgZ(0,"div",5)(1,"div")(2,"strong",6),n._uU(3),n.qZA(),n._UZ(4,"span",7),n.ALo(5,"safeInnerHtml"),n.YNc(6,c,5,2,"strong",8),n.YNc(7,u,1,0,"button",9),n.qZA()()),2&t){const i=O.$implicit;n.xp6(1),n.Gre("alert alert-",i.notifData.type," alert-dismissible fade show"),n.xp6(2),n.Oqu(i.notifData.title),n.xp6(1),n.Q6J("innerHTML",n.lcZ(5,7,i.notifData.content),n.oJD),n.xp6(2),n.Q6J("ngIf",i.notifCreator),n.xp6(1),n.Q6J("ngIf",i.notifData.dismissible)}}let T=(()=>{class t{constructor(i,Z,d){this.router=i,this.gs=Z,this.notif=d}ngOnInit(){}get GS(){return this.gs}get ROUTER(){return this.router}get NOTIF(){return this.notif}removeNotif(i){this.notif.removeNotif(i)}static#t=this.\u0275fac=function(Z){return new(Z||t)(n.Y36(g.F0),n.Y36(p.U),n.Y36(U.T))};static#n=this.\u0275cmp=n.Xpm({type:t,selectors:[["app-notifications"]],decls:4,vars:2,consts:[["class","container-fluid notif-banner align-items-center",3,"background-size","background-image","background-repeat","height","background-position-y",4,"ngIf"],[1,"container"],[1,"row","pt-3"],["class","col-12",4,"ngFor","ngForOf"],[1,"container-fluid","notif-banner","align-items-center"],[1,"col-12"],[1,"me-1"],[3,"innerHTML"],["class","ms-1",4,"ngIf"],["type","button","class","btn-close","data-dismiss","alert",3,"click",4,"ngIf"],[1,"ms-1"],[1,"text-decoration-none",3,"routerLink"],["type","button","data-dismiss","alert",1,"btn-close",3,"click"]],template:function(Z,d){1&Z&&(n.YNc(0,a,1,10,"div",0),n.TgZ(1,"div",1)(2,"div",2),n.YNc(3,h,8,9,"div",3),n.qZA()()),2&Z&&(n.Q6J("ngIf",d.GS.bannerImg&&(d.ROUTER.url.startsWith("/news")||d.ROUTER.url.startsWith("/berkas")||d.ROUTER.url.startsWith("/fansub")||d.ROUTER.url.startsWith("/anime")||d.ROUTER.url.startsWith("/dorama"))),n.xp6(3),n.Q6J("ngForOf",d.NOTIF.notifications))},dependencies:[r.sg,r.O5,g.rH,f.H],styles:[".notif-banner[_ngcontent-%COMP%]{width:100%;background-size:cover;background-position:75% 50%}"]})}return t})()},6319:(A,v,e)=>{e.d(v,{F:()=>r});var n=e(6895),g=e(1390),p=e(3811),U=e(4650);let r=(()=>{class f{static#t=this.\u0275fac=function(u){return new(u||f)};static#n=this.\u0275mod=U.oAB({type:f});static#o=this.\u0275inj=U.cJS({imports:[n.ez,g.Bz,p.T]})}return f})()},1105:(A,v,e)=>{e.d(v,{R:()=>g});var n=e(4650);let g=(()=>{class p{transform(r,f){if(r){const a=Math.floor((+new Date-+new Date(r))/1e3),c={tahun:31536e3,bulan:2592e3,minggu:604800,hari:86400,jam:3600,menit:60,detik:1};let u;for(const h of Object.keys(c))if(u=Math.floor(a/c[h]),u>0)return u+" "+h+" lalu"}return r}static#t=this.\u0275fac=function(f){return new(f||p)};static#n=this.\u0275pipe=n.Yjl({name:"dateAgo",type:p,pure:!0})}return p})()},293:(A,v,e)=>{e.d(v,{k:()=>U});var n=e(4650),g=e(9222),p=e(9816);let U=(()=>{class r{constructor(a,c){this.api=a,this.gs=c}getAllComment(a="",c=1,u=10,h="",T=""){return this.api.getData(`/comment?q=${a}&page=${c}&row=${u}&sort=${h}&order=${T}`)}getComment(a="",c="",u=1,h=10,T="",t=""){return this.api.getData(`/comment?path=${a}&q=${c}&page=${u}&row=${h}&sort=${T}&order=${t}`)}getReply(a,c="",u=1,h=10,T="",t=""){return this.api.getData(`/comment/${a}?q=${c}&page=${u}&row=${h}&sort=${T}&order=${t}`)}sendComment(a){return this.api.postData("/comment",a)}getHighlight(a){return this.api.patchData("/comment",a)}deleteComment(a){return this.api.deleteData(`/comment/${a}`)}static#t=this.\u0275fac=function(c){return new(c||r)(n.LFG(g.s),n.LFG(p.U))};static#n=this.\u0275prov=n.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})()}}]); \ No newline at end of file diff --git a/dist/main-site/browser/679.27a98bd377ae8fb5.js b/dist/main-site/browser/679.27a98bd377ae8fb5.js deleted file mode 100644 index 23a08f84..00000000 --- a/dist/main-site/browser/679.27a98bd377ae8fb5.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain_site=self.webpackChunkmain_site||[]).push([[679],{6679:(A,v,e)=>{e.r(v),e.d(v,{HomeModule:()=>X});var n=e(6895),g=e(1390),p=e(3811),U=e(6319),r=e(7032),f=e(2314),a=e(859),c=e(2587),u=e(6356),h=e(5208),T=e(4674),t=e(4650),O=e(9816),i=e(9156),Z=e(8111),d=e(293),C=e(3842),D=e(3322),R=e(8151),L=e(5312),k=e(4272),F=e(2510),I=e(183),N=e(4758),y=e(9818),E=e(8377),S=e(3238),w=e(7392),M=e(9982),H=e(7462),P=e(7397),$=e(1105);function B(s,_){if(1&s&&(t.TgZ(0,"a",37),t._UZ(1,"mat-icon",38),t._uU(2),t.qZA()),2&s){const o=_.$implicit;t.Gre("m-1 ","/berkas"===o.link?"shiny":"",""),t.s9C("routerLink",o.link),t.xp6(1),t.Q6J("fontIcon",o.icon),t.xp6(1),t.hij(" ",o.name," ")}}function J(s,_){1&s&&t._UZ(0,"app-no-data",39)}function Y(s,_){if(1&s&&(t.TgZ(0,"div",42)(1,"mat-card"),t._UZ(2,"img",43),t.TgZ(3,"mat-card-content",44)(4,"h3",45),t._uU(5),t.qZA()(),t.TgZ(6,"mat-card-header"),t._UZ(7,"div",46),t.TgZ(8,"mat-card-title",47)(9,"h3",48),t._uU(10),t.qZA()(),t.TgZ(11,"mat-card-subtitle",48),t._uU(12),t.ALo(13,"date"),t.qZA()()()()),2&s){const o=_.$implicit;t.xp6(2),t.MGl("routerLink","/news/",o.id,""),t.Q6J("src",o.image_url,t.LSH),t.xp6(1),t.MGl("routerLink","/news/",o.id,""),t.xp6(2),t.hij(" ",o.title," "),t.xp6(2),t.Udp("background-image","url("+o.user_.image_url+")"),t.xp6(1),t.MGl("routerLink","/user/",o.user_.username,""),t.xp6(2),t.Oqu(o.user_.username),t.xp6(2),t.Oqu(t.xi3(13,9,o.created_at,"d MMMM y, HH:mm:ss z"))}}function K(s,_){if(1&s&&(t.TgZ(0,"div",31)(1,"div",40),t.YNc(2,Y,14,12,"div",41),t.ALo(3,"slice"),t.qZA()()),2&s){const o=t.oxw();t.xp6(2),t.Q6J("ngForOf",t.Dn7(3,1,o.newsData,0,3===o.GS.gridListBreakpoint?2:o.GS.gridListBreakpoint))}}function W(s,_){if(1&s){const o=t.EpF();t.TgZ(0,"mat-list-option",52),t._UZ(1,"mat-icon",53),t.TgZ(2,"a",54),t.NdJ("click",function(){const b=t.CHM(o).$implicit,x=t.oxw(2);return t.KtG(x.openComment(b))}),t.TgZ(3,"span",55),t.ALo(4,"date"),t._uU(5),t.ALo(6,"dateAgo"),t.qZA(),t.TgZ(7,"span",56),t._uU(8),t.qZA(),t.TgZ(9,"span",57),t._uU(10),t.qZA()()()}if(2&s){const o=_.$implicit;t.xp6(3),t.s9C("matTooltip",t.xi3(4,4,o.created_at,"d MMMM y, hh:mm:ss a z")),t.xp6(2),t.hij(" ",t.lcZ(6,7,o.created_at)," "),t.xp6(3),t.Oqu(o.user_.username),t.xp6(2),t.Oqu(o.comment)}}function G(s,_){if(1&s){const o=t.EpF();t.TgZ(0,"div",1)(1,"div",27)(2,"h2",28)(3,"span",49),t.NdJ("click",function(){t.CHM(o);const m=t.oxw();return t.KtG(m.getComment())}),t._uU(4," Refresh "),t.qZA(),t.TgZ(5,"b",30),t._uU(6,"Komentar Terbaru"),t.qZA()()(),t.TgZ(7,"div",31)(8,"mat-selection-list",50),t.YNc(9,W,11,9,"mat-list-option",51),t.qZA()()()}if(2&s){const o=t.oxw();t.xp6(8),t.Q6J("multiple",!1),t.xp6(1),t.Q6J("ngForOf",o.komentarData)}}function z(s,_){if(1&s){const o=t.EpF();t.TgZ(0,"mat-list-option",52),t._UZ(1,"mat-icon",60),t.TgZ(2,"a",54),t.NdJ("click",function(){const b=t.CHM(o).$implicit,x=t.oxw(2);return t.KtG(x.openRssFeed(b.fansub_,b.link))}),t.TgZ(3,"span",55),t.ALo(4,"date"),t._uU(5),t.ALo(6,"dateAgo"),t.qZA(),t.TgZ(7,"span",56),t._uU(8),t.qZA(),t._UZ(9,"span",61),t.qZA()()}if(2&s){const o=_.$implicit;t.xp6(3),t.s9C("matTooltip",t.xi3(4,4,o.created_at,"d MMMM y, hh:mm:ss a z")),t.xp6(2),t.hij(" ",t.lcZ(6,7,o.created_at)," "),t.xp6(3),t.Oqu(o.fansub_.slug),t.xp6(1),t.Q6J("innerHtml",o.title,t.oJD)}}function Q(s,_){if(1&s&&(t.TgZ(0,"div",1)(1,"div",27)(2,"h2",28)(3,"a",58),t._uU(4," Lainnya "),t.qZA(),t.TgZ(5,"b",59),t._uU(6," RSS Feed Fansub "),t.qZA()()(),t.TgZ(7,"div",31)(8,"mat-selection-list",50),t.YNc(9,z,10,9,"mat-list-option",51),t.qZA()()()),2&s){const o=t.oxw();t.xp6(8),t.Q6J("multiple",!1),t.xp6(1),t.Q6J("ngForOf",o.rssFeedData)}}const j=[{path:"",pathMatch:"full",component:(()=>{class s{constructor(o,l,m,b,x,q,V,tt,nt){this.router=o,this.gs=l,this.lms=m,this.news=b,this.komen=x,this.fansub=q,this.bs=V,this.wb=tt,this.fs=nt,this.newsData=[],this.komentarData=[],this.rssFeedData=[],this.subsNews=null,this.subsKomenGet=null,this.subsRssFeed=null,this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1}get ENV(){return T.N}get GS(){return this.gs}get contentMenus(){return this.lms.contentMenus}ngOnDestroy(){this.subsNews?.unsubscribe(),this.subsKomenGet?.unsubscribe(),this.subsRssFeed?.unsubscribe()}ngOnInit(){this.gs.isBrowser&&(this.getNews(),this.getComment(),this.getRssFeed(),this.fs.initializeFab(null,"/assets/img/discord/pink.png","Discord Server",T.N.discord.join_url,!0))}getNews(){this.bs.busy(),this.subsNews=this.news.getAllNews("",1,3).subscribe({next:o=>{this.gs.log("[HOME_NEWS_LIST_SUCCESS]",o),this.newsData=o.results,this.bs.idle()},error:o=>{this.gs.log("[HOME_NEWS_LIST_ERROR]",o,"error"),this.bs.idle()}})}getComment(){this.bs.busy(),this.subsKomenGet=this.komen.getAllComment().subscribe({next:o=>{this.gs.log("[HOME_KOMENTAR_LIST_SUCCESS]",o),this.komentarData=o.results;for(const l of this.komentarData)l.comment=this.gs.htmlToText(l.comment);this.bs.idle()},error:o=>{this.gs.log("[HOME_KOMENTAR_LIST_ERROR]",o,"error"),this.bs.idle()}})}getRssFeed(){this.bs.busy(),this.subsRssFeed=this.fansub.getRssFeedFansubAll(!0).subscribe({next:o=>{this.gs.log("[HOME_RSS_FEED_LIST_SUCCESS]",o),this.rssFeedData=o.results,this.bs.idle()},error:o=>{this.gs.log("[HOME_RSS_FEED_LIST_ERROR]",o,"error"),this.bs.idle()}})}openRssFeed(o,l){const m=o.urls.web;if(m){const b=new URL(m);let x=`${b.protocol}//${b.host}`;l.startsWith("/")||(x+="/"),x+=l,this.wb.winboxOpenUri(x)}}openComment(o){this.router.navigate([o.path],{queryParams:{comment:o.id}})}static#t=this.\u0275fac=function(l){return new(l||s)(t.Y36(g.F0),t.Y36(O.U),t.Y36(i.S),t.Y36(Z.Y),t.Y36(d.k),t.Y36(C.T),t.Y36(D.z),t.Y36(R.N),t.Y36(L.r))};static#n=this.\u0275cmp=t.Xpm({type:s,selectors:[["app-home"]],decls:69,vars:7,consts:[[1,"container"],[1,"row"],[1,"col-12","align-items-center"],[1,"text-center","my-3","mx-auto"],["href","https://www.pixiv.net/en/users/1688603","target","_blank"],[1,"p-5",3,"src"],[1,"h3","font-weight-normal","gradient-text"],[1,"pt-3"],[1,"col-12","col-lg-8","mx-auto"],["matTooltip","Khusus Berkas Yang Upload DDL",1,"text-success"],[1,"row","pb-3"],["mat-stroked-button","","color","warn",3,"class","routerLink",4,"ngFor","ngForOf"],["mat-stroked-button","","routerLink","/create/ticket",1,"m-1"],["fontIcon","flag",1,"me-1"],["mat-stroked-button","","routerLink","/mailbox","color","accent",1,"m-1"],["fontIcon","mail_outline",1,"me-1"],["mat-stroked-button","","routerLink","/nihongo","color","accent",1,"m-1"],["fontIcon","translate",1,"me-1"],[1,"row","mb-3"],[1,"mouse_scroll"],[1,"mouse"],[1,"wheel"],[1,"m_scroll_arrows","unu"],[1,"m_scroll_arrows","doi"],[1,"m_scroll_arrows","trei"],[1,"row","pb-3","px-0"],[1,"col-lg-8","col-xl-9"],[1,"col-12","sticky-top","bg-bifeldy"],[1,"pt-3","border-bottom-dotted"],["routerLink","/news",1,"float-end","text-decoration-none","text-warning",2,"font-size","small"],[1,"text-bifeldy"],[1,"col-12"],["class","col-12 p-3",4,"ngIf"],["class","col-12",4,"ngIf"],["class","row",4,"ngIf"],[1,"col-lg-4","col-xl-3"],[1,"row","sticky-top"],["mat-stroked-button","","color","warn",3,"routerLink"],[1,"me-1",3,"fontIcon"],[1,"col-12","p-3"],[1,"row","px-3"],["class","col-12 col-md-6 col-xl-4 p-2",4,"ngFor","ngForOf"],[1,"col-12","col-md-6","col-xl-4","p-2"],["mat-card-image","",2,"height","128px","object-fit","cover","cursor","pointer",3,"src","routerLink"],[2,"cursor","pointer",3,"routerLink"],["matLine","",2,"text-overflow","ellipsis","overflow","hidden","white-space","nowrap"],["mat-card-avatar","",2,"background-size","cover","border-radius","0","background-position","center"],[1,"text-warning","mb-1",2,"cursor","pointer",3,"routerLink"],[1,"mb-0"],[1,"float-end","text-warning",2,"font-size","small","cursor","pointer",3,"click"],[3,"multiple"],["class","h-100",4,"ngFor","ngForOf"],[1,"h-100"],["fontIcon","add_comment","mat-list-icon","",1,"ps-3"],[1,"text-truncate","text-decoration-none",3,"click"],[1,"bg-bifeldy","px-2","me-1","text-danger",2,"position","absolute","right","0",3,"matTooltip"],[1,"me-3","text-success"],[1,"text-warning"],["routerLink","/rss-feed",1,"float-end","text-decoration-none","text-warning",2,"font-size","small"],["matTooltip","Diperbaharui 1 Jam Sekali",1,"text-bifeldy"],["fontIcon","rss_feed","mat-list-icon","",1,"ps-3"],[1,"text-warning",3,"innerHtml"]],template:function(l,m){1&l&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"a",4),t._UZ(5,"img",5),t.qZA(),t.TgZ(6,"h1",6),t._uU(7),t.qZA(),t.TgZ(8,"h2",7)(9,"p",8),t._uU(10," Tempat berbagi (+ "),t.TgZ(11,"i"),t._uU(12,"backup"),t.qZA(),t._uU(13,") dan melacak sekaligus mengabadikan berkas proyek garapan animasi maupun film drama dari, oleh, untuk siapa saja. "),t.qZA()(),t.TgZ(14,"h3",9)(15,"p",8),t._uU(16," * Tempat arsip abadi :: Anti "),t.TgZ(17,"i")(18,"u"),t._uU(19,"link"),t.qZA()(),t._uU(20," mati ~ "),t.qZA()(),t.TgZ(21,"div",10)(22,"div",8),t.YNc(23,B,3,6,"a",11),t.qZA()(),t.TgZ(24,"div",10)(25,"div",8)(26,"a",12),t._UZ(27,"mat-icon",13),t._uU(28," Lapor Pelanggaran & Penyalahgunaan "),t.qZA()()(),t.TgZ(29,"div",10)(30,"div",8)(31,"a",14),t._UZ(32,"mat-icon",15),t._uU(33," Surat Elektronik "),t.qZA(),t.TgZ(34,"a",16),t._UZ(35,"mat-icon",17),t._uU(36," Belajar Bahasa Jepang "),t.qZA()()()()()(),t.TgZ(37,"div",18)(38,"div",2)(39,"div",19)(40,"div",20),t._UZ(41,"div",21),t.qZA(),t.TgZ(42,"div"),t._UZ(43,"span",22)(44,"span",23)(45,"span",24),t.qZA()()()()(),t._UZ(46,"app-notifications"),t.TgZ(47,"div",0)(48,"div",25)(49,"div",26)(50,"div",1)(51,"div",27)(52,"h2",28)(53,"a",29),t._uU(54," Selengkapnya "),t.qZA(),t.TgZ(55,"b",30),t._uU(56,"Papan Pengumuman"),t.qZA()()(),t.TgZ(57,"div",31)(58,"div",1),t.YNc(59,J,1,0,"app-no-data",32),t.YNc(60,K,4,5,"div",33),t.qZA()()(),t.YNc(61,G,10,2,"div",34),t.YNc(62,Q,10,2,"div",34),t.qZA(),t.TgZ(63,"div",35)(64,"div",36)(65,"div",31),t._UZ(66,"app-banner-donasi")(67,"app-stats-server")(68,"app-banner-discord"),t.qZA()()()()()),2&l&&(t.xp6(5),t.MGl("src","",m.ENV.baseUrl,"/assets/img/favicon.png",t.LSH),t.xp6(2),t.Oqu(m.ENV.siteName),t.xp6(16),t.Q6J("ngForOf",m.contentMenus),t.xp6(36),t.Q6J("ngIf",m.newsData.length<=0),t.xp6(1),t.Q6J("ngIf",m.newsData.length>0),t.xp6(1),t.Q6J("ngIf",m.komentarData.length>0),t.xp6(1),t.Q6J("ngIf",m.rssFeedData.length>0))},dependencies:[n.sg,n.O5,g.rH,k.u,F.B,I.X,N.t,y.Nr,E.S$,E.u7,E.Qi,E.mi,E._K,E.k0,E.lb,S.X2,w.Hw,M.ap,M.kh,M.O$,H.Kd,P.d,n.OU,n.uU,$.R]})}return s})()}];let X=(()=>{class s{static#t=this.\u0275fac=function(l){return new(l||s)};static#n=this.\u0275mod=t.oAB({type:s});static#o=this.\u0275inj=t.cJS({imports:[n.ez,g.Bz.forChild(j),u.R,a.R,c.g,r.A,U.F,f.m,p.T,h.d]})}return s})()},4758:(A,v,e)=>{e.d(v,{t:()=>T});var n=e(4650),g=e(1390),p=e(9816),U=e(8598),r=e(6895),f=e(5882);function a(t,O){if(1&t&&n._UZ(0,"div",4),2&t){const i=n.oxw();n.Udp("background-size",i.GS.sizeContain?"contain":"cover")("background-image","url("+i.GS.bannerImg+")")("background-repeat",i.GS.bgRepeat?"repeat-x":"no-repeat")("height",i.ROUTER.url.startsWith("/news")||i.ROUTER.url.startsWith("/berkas")||i.ROUTER.url.startsWith("/fansub")?"192px":"128px")("background-position-y",i.ROUTER.url.startsWith("/berkas")?"22.5%":"")}}function c(t,O){if(1&t&&(n.TgZ(0,"strong",10),n._uU(1," -- "),n.TgZ(2,"i")(3,"a",11),n._uU(4),n.qZA()()()),2&t){const i=n.oxw().$implicit;n.xp6(3),n.MGl("routerLink","/user/",i.notifCreator,""),n.xp6(1),n.hij(" ",i.notifCreator," ")}}function u(t,O){if(1&t){const i=n.EpF();n.TgZ(0,"button",12),n.NdJ("click",function(){n.CHM(i);const d=n.oxw().$implicit,C=n.oxw();return n.KtG(C.removeNotif(d.notifData.id))}),n.qZA()}}function h(t,O){if(1&t&&(n.TgZ(0,"div",5)(1,"div")(2,"strong",6),n._uU(3),n.qZA(),n._UZ(4,"span",7),n.ALo(5,"safeInnerHtml"),n.YNc(6,c,5,2,"strong",8),n.YNc(7,u,1,0,"button",9),n.qZA()()),2&t){const i=O.$implicit;n.xp6(1),n.Gre("alert alert-",i.notifData.type," alert-dismissible fade show"),n.xp6(2),n.Oqu(i.notifData.title),n.xp6(1),n.Q6J("innerHTML",n.lcZ(5,7,i.notifData.content),n.oJD),n.xp6(2),n.Q6J("ngIf",i.notifCreator),n.xp6(1),n.Q6J("ngIf",i.notifData.dismissible)}}let T=(()=>{class t{constructor(i,Z,d){this.router=i,this.gs=Z,this.notif=d}ngOnInit(){}get GS(){return this.gs}get ROUTER(){return this.router}get NOTIF(){return this.notif}removeNotif(i){this.notif.removeNotif(i)}static#t=this.\u0275fac=function(Z){return new(Z||t)(n.Y36(g.F0),n.Y36(p.U),n.Y36(U.T))};static#n=this.\u0275cmp=n.Xpm({type:t,selectors:[["app-notifications"]],decls:4,vars:2,consts:[["class","container-fluid notif-banner align-items-center",3,"background-size","background-image","background-repeat","height","background-position-y",4,"ngIf"],[1,"container"],[1,"row","pt-3"],["class","col-12",4,"ngFor","ngForOf"],[1,"container-fluid","notif-banner","align-items-center"],[1,"col-12"],[1,"me-1"],[3,"innerHTML"],["class","ms-1",4,"ngIf"],["type","button","class","btn-close","data-dismiss","alert",3,"click",4,"ngIf"],[1,"ms-1"],[1,"text-decoration-none",3,"routerLink"],["type","button","data-dismiss","alert",1,"btn-close",3,"click"]],template:function(Z,d){1&Z&&(n.YNc(0,a,1,10,"div",0),n.TgZ(1,"div",1)(2,"div",2),n.YNc(3,h,8,9,"div",3),n.qZA()()),2&Z&&(n.Q6J("ngIf",d.GS.bannerImg&&(d.ROUTER.url.startsWith("/news")||d.ROUTER.url.startsWith("/berkas")||d.ROUTER.url.startsWith("/fansub")||d.ROUTER.url.startsWith("/anime")||d.ROUTER.url.startsWith("/dorama"))),n.xp6(3),n.Q6J("ngForOf",d.NOTIF.notifications))},dependencies:[r.sg,r.O5,g.rH,f.H],styles:[".notif-banner[_ngcontent-%COMP%]{width:100%;background-size:cover;background-position:75% 50%}"]})}return t})()},6319:(A,v,e)=>{e.d(v,{F:()=>r});var n=e(6895),g=e(1390),p=e(3811),U=e(4650);let r=(()=>{class f{static#t=this.\u0275fac=function(u){return new(u||f)};static#n=this.\u0275mod=U.oAB({type:f});static#o=this.\u0275inj=U.cJS({imports:[n.ez,g.Bz,p.T]})}return f})()},1105:(A,v,e)=>{e.d(v,{R:()=>g});var n=e(4650);let g=(()=>{class p{transform(r,f){if(r){const a=Math.floor((+new Date-+new Date(r))/1e3),c={tahun:31536e3,bulan:2592e3,minggu:604800,hari:86400,jam:3600,menit:60,detik:1};let u;for(const h of Object.keys(c))if(u=Math.floor(a/c[h]),u>0)return u+" "+h+" lalu"}return r}static#t=this.\u0275fac=function(f){return new(f||p)};static#n=this.\u0275pipe=n.Yjl({name:"dateAgo",type:p,pure:!0})}return p})()},293:(A,v,e)=>{e.d(v,{k:()=>U});var n=e(4650),g=e(9222),p=e(9816);let U=(()=>{class r{constructor(a,c){this.api=a,this.gs=c}getAllComment(a="",c=1,u=10,h="",T=""){return this.api.getData(`/comment?q=${a}&page=${c}&row=${u}&sort=${h}&order=${T}`)}getComment(a="",c="",u=1,h=10,T="",t=""){return this.api.getData(`/comment?path=${a}&q=${c}&page=${u}&row=${h}&sort=${T}&order=${t}`)}getReply(a,c="",u=1,h=10,T="",t=""){return this.api.getData(`/comment/${a}?q=${c}&page=${u}&row=${h}&sort=${T}&order=${t}`)}sendComment(a){return this.api.postData("/comment",a)}getHighlight(a){return this.api.patchData("/comment",a)}deleteComment(a){return this.api.deleteData(`/comment/${a}`)}static#t=this.\u0275fac=function(c){return new(c||r)(n.LFG(g.s),n.LFG(p.U))};static#n=this.\u0275prov=n.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})()}}]); \ No newline at end of file diff --git a/dist/main-site/browser/index.html b/dist/main-site/browser/index.html index 2a1f866c..4a074b8e 100644 --- a/dist/main-site/browser/index.html +++ b/dist/main-site/browser/index.html @@ -63,7 +63,7 @@ - + \ No newline at end of file diff --git a/dist/main-site/browser/ngsw.json b/dist/main-site/browser/ngsw.json index e11b9319..794c6cc7 100644 --- a/dist/main-site/browser/ngsw.json +++ b/dist/main-site/browser/ngsw.json @@ -1,6 +1,6 @@ { "configVersion": 1, - "timestamp": 1706452641511, + "timestamp": 1706792944565, "index": "/index.html", "assetGroups": [ { @@ -27,7 +27,7 @@ "/570.2ef4235c32c59bc6.js", "/578.1f7e8c330d1a54fd.js", "/655.01059e76a32a5cfb.js", - "/679.27a98bd377ae8fb5.js", + "/679.26b571439f5f5a25.js", "/683.ecbd9a1120e48a2f.js", "/702.65c8fa4d9b98538e.js", "/708.c3013c57d9a029b0.js", @@ -45,7 +45,7 @@ "/main.84bb8e9fac00e31e.js", "/manifest.webmanifest", "/polyfills.c264b580e8a973fe.js", - "/runtime.9bb059e3c307350f.js", + "/runtime.10349bc759ff1dcd.js", "/scripts.d530b24d62dab3a0.js", "/styles.b849b3eb93129b2e.css" ], @@ -102,7 +102,7 @@ "/570.2ef4235c32c59bc6.js": "2ae0047ef946ce75334514940ee9806045061b07", "/578.1f7e8c330d1a54fd.js": "176b8f41a58db6965e9d40b849425eb7eae6a40b", "/655.01059e76a32a5cfb.js": "57ac48860558c6b17ba15972421a3f8b7c43fb28", - "/679.27a98bd377ae8fb5.js": "d3c57f0ac442443725addb6824055d9665055e36", + "/679.26b571439f5f5a25.js": "a15e78aa9e4c6c7aca238d4b66df5f85fc82df29", "/683.ecbd9a1120e48a2f.js": "fcd7e589128c57a0f8a2cf9596994fe91d91aa10", "/702.65c8fa4d9b98538e.js": "84d8720eed831b725dc586d2f0dae845b8d32d37", "/708.c3013c57d9a029b0.js": "8b2b8b01273795335506264490c988884464238a", @@ -116,11 +116,11 @@ "/935.297c8ba9525ff76f.js": "baa0480d7f4c538c4c935a94f0a7577a9b23b246", "/common.e11661005278ed25.js": "1fb12c1df0607da07238e947947939b77cee60f4", "/favicon.ico": "071facb8fab2e4b3493dcfbb0b02d7bd21bca97e", - "/index.html": "34e29e9db22abeee5b5f679a5275b7e511a37b3d", + "/index.html": "5a2ab2d2cf5660360e44140705b0d8f0bda78b4f", "/main.84bb8e9fac00e31e.js": "351c404fa057179e0084c78db174d404d8296317", "/manifest.webmanifest": "eafb5426cdc9fd714787e5453af315b9972875a3", "/polyfills.c264b580e8a973fe.js": "67f24a57563377058dfcd5306c56c0cd696ba2e5", - "/runtime.9bb059e3c307350f.js": "00861011df3a69fb22495b6987e20b661af2c94e", + "/runtime.10349bc759ff1dcd.js": "3233c29877d1171c5dc8ea46f62e0fb019e566b1", "/scripts.d530b24d62dab3a0.js": "2d11a419816b2dd8d9eccaff4f113ae0eafdd306", "/styles.b849b3eb93129b2e.css": "d68b5778bdca764c5297b8067a72b676f8cce12d" }, diff --git a/dist/main-site/browser/runtime.9bb059e3c307350f.js b/dist/main-site/browser/runtime.10349bc759ff1dcd.js similarity index 96% rename from dist/main-site/browser/runtime.9bb059e3c307350f.js rename to dist/main-site/browser/runtime.10349bc759ff1dcd.js index 212b403a..a5627a21 100644 --- a/dist/main-site/browser/runtime.9bb059e3c307350f.js +++ b/dist/main-site/browser/runtime.10349bc759ff1dcd.js @@ -1 +1 @@ -(()=>{"use strict";var e,v={},_={};function r(e){var f=_[e];if(void 0!==f)return f.exports;var t=_[e]={id:e,loaded:!1,exports:{}};return v[e].call(t.exports,t,t.exports,r),t.loaded=!0,t.exports}r.m=v,e=[],r.O=(f,t,n,i)=>{if(!t){var a=1/0;for(d=0;d=i)&&Object.keys(r.O).every(p=>r.O[p](t[o]))?t.splice(o--,1):(s=!1,i0&&e[d-1][2]>i;d--)e[d]=e[d-1];e[d]=[t,n,i]},r.n=e=>{var f=e&&e.__esModule?()=>e.default:()=>e;return r.d(f,{a:f}),f},(()=>{var f,e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__;r.t=function(t,n){if(1&n&&(t=this(t)),8&n||"object"==typeof t&&t&&(4&n&&t.__esModule||16&n&&"function"==typeof t.then))return t;var i=Object.create(null);r.r(i);var d={};f=f||[null,e({}),e([]),e(e)];for(var a=2&n&&t;"object"==typeof a&&!~f.indexOf(a);a=e(a))Object.getOwnPropertyNames(a).forEach(s=>d[s]=()=>t[s]);return d.default=()=>t,r.d(i,d),i}})(),r.d=(e,f)=>{for(var t in f)r.o(f,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:f[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((f,t)=>(r.f[t](e,f),f),[])),r.u=e=>(592===e?"common":e)+"."+{25:"c632a639d7dfd2ca",31:"20012e7631a4459a",38:"598b416584995879",76:"296531d0d519977b",109:"8101438e1a2a6f7f",268:"2bf237c8f938cc19",305:"c95853ace4f0bafc",338:"e456b7495d3489d9",348:"958bb5900865dc73",370:"00945484f5682803",375:"ee4c6a4506d78add",513:"c692f3ddb6fb4d3e",526:"465da291885e7b75",541:"d619c29f71953191",570:"2ef4235c32c59bc6",578:"1f7e8c330d1a54fd",592:"e11661005278ed25",655:"01059e76a32a5cfb",679:"27a98bd377ae8fb5",683:"ecbd9a1120e48a2f",702:"65c8fa4d9b98538e",708:"c3013c57d9a029b0",743:"2504c93e27335cc2",745:"2a3a9ae260159e1e",748:"11ebb5d76ac3aa16",767:"d439c8012113dccc",794:"fd9cc9d5f7bc84d2",797:"af3edabe38354abb",935:"297c8ba9525ff76f"}[e]+".js",r.miniCssF=e=>{},r.o=(e,f)=>Object.prototype.hasOwnProperty.call(e,f),(()=>{var e={},f="main-site:";r.l=(t,n,i,d)=>{if(e[t])e[t].push(n);else{var a,s;if(void 0!==i)for(var o=document.getElementsByTagName("script"),b=0;b{a.onerror=a.onload=null,clearTimeout(u);var m=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),m&&m.forEach(h=>h(p)),g)return g(p)},u=setTimeout(l.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=l.bind(null,a.onerror),a.onload=l.bind(null,a.onload),s&&document.head.appendChild(a)}}})(),r.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:f=>f},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="",(()=>{var e={666:0};r.f.j=(n,i)=>{var d=r.o(e,n)?e[n]:void 0;if(0!==d)if(d)i.push(d[2]);else if(666!=n){var a=new Promise((c,l)=>d=e[n]=[c,l]);i.push(d[2]=a);var s=r.p+r.u(n),o=new Error;r.l(s,c=>{if(r.o(e,n)&&(0!==(d=e[n])&&(e[n]=void 0),d)){var l=c&&("load"===c.type?"missing":c.type),u=c&&c.target&&c.target.src;o.message="Loading chunk "+n+" failed.\n("+l+": "+u+")",o.name="ChunkLoadError",o.type=l,o.request=u,d[1](o)}},"chunk-"+n,n)}else e[n]=0},r.O.j=n=>0===e[n];var f=(n,i)=>{var o,b,[d,a,s]=i,c=0;if(d.some(u=>0!==e[u])){for(o in a)r.o(a,o)&&(r.m[o]=a[o]);if(s)var l=s(r)}for(n&&n(i);c{"use strict";var e,v={},_={};function r(e){var f=_[e];if(void 0!==f)return f.exports;var t=_[e]={id:e,loaded:!1,exports:{}};return v[e].call(t.exports,t,t.exports,r),t.loaded=!0,t.exports}r.m=v,e=[],r.O=(f,t,n,i)=>{if(!t){var a=1/0;for(d=0;d=i)&&Object.keys(r.O).every(p=>r.O[p](t[o]))?t.splice(o--,1):(s=!1,i0&&e[d-1][2]>i;d--)e[d]=e[d-1];e[d]=[t,n,i]},r.n=e=>{var f=e&&e.__esModule?()=>e.default:()=>e;return r.d(f,{a:f}),f},(()=>{var f,e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__;r.t=function(t,n){if(1&n&&(t=this(t)),8&n||"object"==typeof t&&t&&(4&n&&t.__esModule||16&n&&"function"==typeof t.then))return t;var i=Object.create(null);r.r(i);var d={};f=f||[null,e({}),e([]),e(e)];for(var a=2&n&&t;"object"==typeof a&&!~f.indexOf(a);a=e(a))Object.getOwnPropertyNames(a).forEach(s=>d[s]=()=>t[s]);return d.default=()=>t,r.d(i,d),i}})(),r.d=(e,f)=>{for(var t in f)r.o(f,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:f[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((f,t)=>(r.f[t](e,f),f),[])),r.u=e=>(592===e?"common":e)+"."+{25:"c632a639d7dfd2ca",31:"20012e7631a4459a",38:"598b416584995879",76:"296531d0d519977b",109:"8101438e1a2a6f7f",268:"2bf237c8f938cc19",305:"c95853ace4f0bafc",338:"e456b7495d3489d9",348:"958bb5900865dc73",370:"00945484f5682803",375:"ee4c6a4506d78add",513:"c692f3ddb6fb4d3e",526:"465da291885e7b75",541:"d619c29f71953191",570:"2ef4235c32c59bc6",578:"1f7e8c330d1a54fd",592:"e11661005278ed25",655:"01059e76a32a5cfb",679:"26b571439f5f5a25",683:"ecbd9a1120e48a2f",702:"65c8fa4d9b98538e",708:"c3013c57d9a029b0",743:"2504c93e27335cc2",745:"2a3a9ae260159e1e",748:"11ebb5d76ac3aa16",767:"d439c8012113dccc",794:"fd9cc9d5f7bc84d2",797:"af3edabe38354abb",935:"297c8ba9525ff76f"}[e]+".js",r.miniCssF=e=>{},r.o=(e,f)=>Object.prototype.hasOwnProperty.call(e,f),(()=>{var e={},f="main-site:";r.l=(t,n,i,d)=>{if(e[t])e[t].push(n);else{var a,s;if(void 0!==i)for(var o=document.getElementsByTagName("script"),b=0;b{a.onerror=a.onload=null,clearTimeout(u);var m=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),m&&m.forEach(h=>h(p)),g)return g(p)},u=setTimeout(l.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=l.bind(null,a.onerror),a.onload=l.bind(null,a.onload),s&&document.head.appendChild(a)}}})(),r.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:f=>f},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="",(()=>{var e={666:0};r.f.j=(n,i)=>{var d=r.o(e,n)?e[n]:void 0;if(0!==d)if(d)i.push(d[2]);else if(666!=n){var a=new Promise((c,l)=>d=e[n]=[c,l]);i.push(d[2]=a);var s=r.p+r.u(n),o=new Error;r.l(s,c=>{if(r.o(e,n)&&(0!==(d=e[n])&&(e[n]=void 0),d)){var l=c&&("load"===c.type?"missing":c.type),u=c&&c.target&&c.target.src;o.message="Loading chunk "+n+" failed.\n("+l+": "+u+")",o.name="ChunkLoadError",o.type=l,o.request=u,d[1](o)}},"chunk-"+n,n)}else e[n]=0},r.O.j=n=>0===e[n];var f=(n,i)=>{var o,b,[d,a,s]=i,c=0;if(d.some(u=>0!==e[u])){for(o in a)r.o(a,o)&&(r.m[o]=a[o]);if(s)var l=s(r)}for(n&&n(i);c__defProp(target,"name",{value,configurable:!0});(()=>{var __webpack_modules__={62547:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";var __create=Object.create,__defProp2=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__name2=__name((target,value)=>__defProp2(target,"name",{value,configurable:!0}),"__name"),__export=__name((target,all)=>{for(var name in all)__defProp2(target,name,{get:all[name],enumerable:!0})},"__export"),__copyProps=__name((to,from,except,desc)=>{if(from&&"object"==typeof from||"function"==typeof from)for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp2(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},"__copyProps"),__reExport=__name((target,mod,secondTarget)=>(__copyProps(target,mod,"default"),secondTarget&&__copyProps(secondTarget,mod,"default")),"__reExport"),__toESM=__name((mod,isNodeMode,target)=>(target=null!=mod?__create(__getProtoOf(mod)):{},__copyProps(!isNodeMode&&mod&&mod.__esModule?target:__defProp2(target,"default",{value:mod,enumerable:!0}),mod)),"__toESM"),__toCommonJS=__name(mod=>__copyProps(__defProp2({},"__esModule",{value:!0}),mod),"__toCommonJS"),__decorateClass=__name((decorators,target,key,kind)=>{for(var decorator,result=kind>1?void 0:kind?__getOwnPropDesc(target,key):target,i2=decorators.length-1;i2>=0;i2--)(decorator=decorators[i2])&&(result=(kind?decorator(target,key,result):decorator(result))||result);return kind&&result&&__defProp2(target,key,result),result},"__decorateClass"),src_exports={};__export(src_exports,{ActionRowBuilder:()=>ActionRowBuilder,ApplicationCommandNumericOptionMinMaxValueMixin:()=>ApplicationCommandNumericOptionMinMaxValueMixin,ApplicationCommandOptionBase:()=>ApplicationCommandOptionBase,ApplicationCommandOptionChannelTypesMixin:()=>ApplicationCommandOptionChannelTypesMixin,ApplicationCommandOptionWithChoicesAndAutocompleteMixin:()=>ApplicationCommandOptionWithChoicesAndAutocompleteMixin,BaseSelectMenuBuilder:()=>BaseSelectMenuBuilder,ButtonBuilder:()=>ButtonBuilder,ChannelSelectMenuBuilder:()=>ChannelSelectMenuBuilder,ComponentAssertions:()=>Assertions_exports2,ComponentBuilder:()=>ComponentBuilder,ContextMenuCommandAssertions:()=>Assertions_exports6,ContextMenuCommandBuilder:()=>ContextMenuCommandBuilder,EmbedAssertions:()=>Assertions_exports,EmbedBuilder:()=>EmbedBuilder,MentionableSelectMenuBuilder:()=>MentionableSelectMenuBuilder,ModalAssertions:()=>Assertions_exports4,ModalBuilder:()=>ModalBuilder,RoleSelectMenuBuilder:()=>RoleSelectMenuBuilder,SelectMenuBuilder:()=>StringSelectMenuBuilder,SelectMenuOptionBuilder:()=>StringSelectMenuOptionBuilder,SharedNameAndDescription:()=>SharedNameAndDescription,SharedSlashCommandOptions:()=>SharedSlashCommandOptions,SlashCommandAssertions:()=>Assertions_exports5,SlashCommandAttachmentOption:()=>SlashCommandAttachmentOption,SlashCommandBooleanOption:()=>SlashCommandBooleanOption,SlashCommandBuilder:()=>SlashCommandBuilder,SlashCommandChannelOption:()=>SlashCommandChannelOption,SlashCommandIntegerOption:()=>SlashCommandIntegerOption,SlashCommandMentionableOption:()=>SlashCommandMentionableOption,SlashCommandNumberOption:()=>SlashCommandNumberOption,SlashCommandRoleOption:()=>SlashCommandRoleOption,SlashCommandStringOption:()=>SlashCommandStringOption,SlashCommandSubcommandBuilder:()=>SlashCommandSubcommandBuilder,SlashCommandSubcommandGroupBuilder:()=>SlashCommandSubcommandGroupBuilder,SlashCommandUserOption:()=>SlashCommandUserOption,StringSelectMenuBuilder:()=>StringSelectMenuBuilder,StringSelectMenuOptionBuilder:()=>StringSelectMenuOptionBuilder,TextInputAssertions:()=>Assertions_exports3,TextInputBuilder:()=>TextInputBuilder,UserSelectMenuBuilder:()=>UserSelectMenuBuilder,createComponentBuilder:()=>createComponentBuilder,disableValidators:()=>disableValidators,embedLength:()=>embedLength,enableValidators:()=>enableValidators,isValidationEnabled:()=>isValidationEnabled,normalizeArray:()=>normalizeArray,version:()=>version}),module2.exports=__toCommonJS(src_exports);var Assertions_exports={};__export(Assertions_exports,{RGBPredicate:()=>RGBPredicate,authorNamePredicate:()=>authorNamePredicate,colorPredicate:()=>colorPredicate,descriptionPredicate:()=>descriptionPredicate,embedAuthorPredicate:()=>embedAuthorPredicate,embedFieldPredicate:()=>embedFieldPredicate,embedFieldsArrayPredicate:()=>embedFieldsArrayPredicate,embedFooterPredicate:()=>embedFooterPredicate,fieldInlinePredicate:()=>fieldInlinePredicate,fieldLengthPredicate:()=>fieldLengthPredicate,fieldNamePredicate:()=>fieldNamePredicate,fieldValuePredicate:()=>fieldValuePredicate,footerTextPredicate:()=>footerTextPredicate,imageURLPredicate:()=>imageURLPredicate,timestampPredicate:()=>timestampPredicate,titlePredicate:()=>titlePredicate,urlPredicate:()=>urlPredicate,validateFieldLength:()=>validateFieldLength});var import_shapeshift=__webpack_require__2(2409),validate=!0;function enableValidators(){return validate=!0}function disableValidators(){return validate=!1}function isValidationEnabled(){return validate}__name(enableValidators,"enableValidators"),__name2(enableValidators,"enableValidators"),__name(disableValidators,"disableValidators"),__name2(disableValidators,"disableValidators"),__name(isValidationEnabled,"isValidationEnabled"),__name2(isValidationEnabled,"isValidationEnabled");var fieldNamePredicate=import_shapeshift.s.string.lengthGreaterThanOrEqual(1).lengthLessThanOrEqual(256).setValidationEnabled(isValidationEnabled),fieldValuePredicate=import_shapeshift.s.string.lengthGreaterThanOrEqual(1).lengthLessThanOrEqual(1024).setValidationEnabled(isValidationEnabled),fieldInlinePredicate=import_shapeshift.s.boolean.optional,embedFieldPredicate=import_shapeshift.s.object({name:fieldNamePredicate,value:fieldValuePredicate,inline:fieldInlinePredicate}).setValidationEnabled(isValidationEnabled),embedFieldsArrayPredicate=embedFieldPredicate.array.setValidationEnabled(isValidationEnabled),fieldLengthPredicate=import_shapeshift.s.number.lessThanOrEqual(25).setValidationEnabled(isValidationEnabled);function validateFieldLength(amountAdding,fields){fieldLengthPredicate.parse((fields?.length??0)+amountAdding)}__name(validateFieldLength,"validateFieldLength"),__name2(validateFieldLength,"validateFieldLength");var authorNamePredicate=fieldNamePredicate.nullable.setValidationEnabled(isValidationEnabled),imageURLPredicate=import_shapeshift.s.string.url({allowedProtocols:["http:","https:","attachment:"]}).nullish.setValidationEnabled(isValidationEnabled),urlPredicate=import_shapeshift.s.string.url({allowedProtocols:["http:","https:"]}).nullish.setValidationEnabled(isValidationEnabled),embedAuthorPredicate=import_shapeshift.s.object({name:authorNamePredicate,iconURL:imageURLPredicate,url:urlPredicate}).setValidationEnabled(isValidationEnabled),RGBPredicate=import_shapeshift.s.number.int.greaterThanOrEqual(0).lessThanOrEqual(255).setValidationEnabled(isValidationEnabled),colorPredicate=import_shapeshift.s.number.int.greaterThanOrEqual(0).lessThanOrEqual(16777215).or(import_shapeshift.s.tuple([RGBPredicate,RGBPredicate,RGBPredicate])).nullable.setValidationEnabled(isValidationEnabled),descriptionPredicate=import_shapeshift.s.string.lengthGreaterThanOrEqual(1).lengthLessThanOrEqual(4096).nullable.setValidationEnabled(isValidationEnabled),footerTextPredicate=import_shapeshift.s.string.lengthGreaterThanOrEqual(1).lengthLessThanOrEqual(2048).nullable.setValidationEnabled(isValidationEnabled),embedFooterPredicate=import_shapeshift.s.object({text:footerTextPredicate,iconURL:imageURLPredicate}).setValidationEnabled(isValidationEnabled),timestampPredicate=import_shapeshift.s.union(import_shapeshift.s.number,import_shapeshift.s.date).nullable.setValidationEnabled(isValidationEnabled),titlePredicate=fieldNamePredicate.nullable.setValidationEnabled(isValidationEnabled);function normalizeArray(arr){return Array.isArray(arr[0])?arr[0]:arr}__name(normalizeArray,"normalizeArray"),__name2(normalizeArray,"normalizeArray");var EmbedBuilder=__name(class{static#_=__name2(this,"EmbedBuilder");data;constructor(data={}){this.data={...data},data.timestamp&&(this.data.timestamp=new Date(data.timestamp).toISOString())}addFields(...fields){const normalizedFields=normalizeArray(fields);return validateFieldLength(normalizedFields.length,this.data.fields),embedFieldsArrayPredicate.parse(normalizedFields),this.data.fields?this.data.fields.push(...normalizedFields):this.data.fields=normalizedFields,this}spliceFields(index,deleteCount,...fields){return validateFieldLength(fields.length-deleteCount,this.data.fields),embedFieldsArrayPredicate.parse(fields),this.data.fields?this.data.fields.splice(index,deleteCount,...fields):this.data.fields=fields,this}setFields(...fields){return this.spliceFields(0,this.data.fields?.length??0,...normalizeArray(fields)),this}setAuthor(options){return null===options?(this.data.author=void 0,this):(embedAuthorPredicate.parse(options),this.data.author={name:options.name,url:options.url,icon_url:options.iconURL},this)}setColor(color){if(colorPredicate.parse(color),Array.isArray(color)){const[red,green,blue]=color;return this.data.color=(red<<16)+(green<<8)+blue,this}return this.data.color=color??void 0,this}setDescription(description){return descriptionPredicate.parse(description),this.data.description=description??void 0,this}setFooter(options){return null===options?(this.data.footer=void 0,this):(embedFooterPredicate.parse(options),this.data.footer={text:options.text,icon_url:options.iconURL},this)}setImage(url){return imageURLPredicate.parse(url),this.data.image=url?{url}:void 0,this}setThumbnail(url){return imageURLPredicate.parse(url),this.data.thumbnail=url?{url}:void 0,this}setTimestamp(timestamp=Date.now()){return timestampPredicate.parse(timestamp),this.data.timestamp=timestamp?new Date(timestamp).toISOString():void 0,this}setTitle(title){return titlePredicate.parse(title),this.data.title=title??void 0,this}setURL(url){return urlPredicate.parse(url),this.data.url=url??void 0,this}toJSON(){return{...this.data}}},"EmbedBuilder");__reExport(src_exports,__webpack_require__2(5806),module2.exports);var Assertions_exports2={};__export(Assertions_exports2,{buttonLabelValidator:()=>buttonLabelValidator,buttonStyleValidator:()=>buttonStyleValidator,channelTypesValidator:()=>channelTypesValidator,customIdValidator:()=>customIdValidator,defaultValidator:()=>defaultValidator,disabledValidator:()=>disabledValidator,emojiValidator:()=>emojiValidator,jsonOptionValidator:()=>jsonOptionValidator,labelValueDescriptionValidator:()=>labelValueDescriptionValidator,minMaxValidator:()=>minMaxValidator,optionValidator:()=>optionValidator,optionsLengthValidator:()=>optionsLengthValidator,optionsValidator:()=>optionsValidator,placeholderValidator:()=>placeholderValidator,urlValidator:()=>urlValidator,validateRequiredButtonParameters:()=>validateRequiredButtonParameters,validateRequiredSelectMenuOptionParameters:()=>validateRequiredSelectMenuOptionParameters,validateRequiredSelectMenuParameters:()=>validateRequiredSelectMenuParameters});var import_shapeshift2=__webpack_require__2(2409),import_v10=__webpack_require__2(26538),StringSelectMenuOptionBuilder=__name(class{constructor(data={}){this.data=data}static#_=__name2(this,"StringSelectMenuOptionBuilder");setLabel(label){return this.data.label=labelValueDescriptionValidator.parse(label),this}setValue(value){return this.data.value=labelValueDescriptionValidator.parse(value),this}setDescription(description){return this.data.description=labelValueDescriptionValidator.parse(description),this}setDefault(isDefault=!0){return this.data.default=defaultValidator.parse(isDefault),this}setEmoji(emoji){return this.data.emoji=emojiValidator.parse(emoji),this}toJSON(){return validateRequiredSelectMenuOptionParameters(this.data.label,this.data.value),{...this.data}}},"StringSelectMenuOptionBuilder"),customIdValidator=import_shapeshift2.s.string.lengthGreaterThanOrEqual(1).lengthLessThanOrEqual(100).setValidationEnabled(isValidationEnabled),emojiValidator=import_shapeshift2.s.object({id:import_shapeshift2.s.string,name:import_shapeshift2.s.string,animated:import_shapeshift2.s.boolean}).partial.strict.setValidationEnabled(isValidationEnabled),disabledValidator=import_shapeshift2.s.boolean,buttonLabelValidator=import_shapeshift2.s.string.lengthGreaterThanOrEqual(1).lengthLessThanOrEqual(80).setValidationEnabled(isValidationEnabled),buttonStyleValidator=import_shapeshift2.s.nativeEnum(import_v10.ButtonStyle),placeholderValidator=import_shapeshift2.s.string.lengthLessThanOrEqual(150).setValidationEnabled(isValidationEnabled),minMaxValidator=import_shapeshift2.s.number.int.greaterThanOrEqual(0).lessThanOrEqual(25).setValidationEnabled(isValidationEnabled),labelValueDescriptionValidator=import_shapeshift2.s.string.lengthGreaterThanOrEqual(1).lengthLessThanOrEqual(100).setValidationEnabled(isValidationEnabled),jsonOptionValidator=import_shapeshift2.s.object({label:labelValueDescriptionValidator,value:labelValueDescriptionValidator,description:labelValueDescriptionValidator.optional,emoji:emojiValidator.optional,default:import_shapeshift2.s.boolean.optional}).setValidationEnabled(isValidationEnabled),optionValidator=import_shapeshift2.s.instance(StringSelectMenuOptionBuilder).setValidationEnabled(isValidationEnabled),optionsValidator=optionValidator.array.lengthGreaterThanOrEqual(0).setValidationEnabled(isValidationEnabled),optionsLengthValidator=import_shapeshift2.s.number.int.greaterThanOrEqual(0).lessThanOrEqual(25).setValidationEnabled(isValidationEnabled);function validateRequiredSelectMenuParameters(options,customId){customIdValidator.parse(customId),optionsValidator.parse(options)}__name(validateRequiredSelectMenuParameters,"validateRequiredSelectMenuParameters"),__name2(validateRequiredSelectMenuParameters,"validateRequiredSelectMenuParameters");var defaultValidator=import_shapeshift2.s.boolean;function validateRequiredSelectMenuOptionParameters(label,value){labelValueDescriptionValidator.parse(label),labelValueDescriptionValidator.parse(value)}__name(validateRequiredSelectMenuOptionParameters,"validateRequiredSelectMenuOptionParameters"),__name2(validateRequiredSelectMenuOptionParameters,"validateRequiredSelectMenuOptionParameters");var channelTypesValidator=import_shapeshift2.s.nativeEnum(import_v10.ChannelType).array.setValidationEnabled(isValidationEnabled),urlValidator=import_shapeshift2.s.string.url({allowedProtocols:["http:","https:","discord:"]}).setValidationEnabled(isValidationEnabled);function validateRequiredButtonParameters(style,label,emoji,customId,url){if(url&&customId)throw new RangeError("URL and custom id are mutually exclusive");if(!label&&!emoji)throw new RangeError("Buttons must have a label and/or an emoji");if(style===import_v10.ButtonStyle.Link){if(!url)throw new RangeError("Link buttons must have a url")}else if(url)throw new RangeError("Non-link buttons cannot have a url")}__name(validateRequiredButtonParameters,"validateRequiredButtonParameters"),__name2(validateRequiredButtonParameters,"validateRequiredButtonParameters");var import_v1011=__webpack_require__2(26538),ComponentBuilder=__name(class{static#_=__name2(this,"ComponentBuilder");data;constructor(data){this.data=data}},"ComponentBuilder"),import_v1010=__webpack_require__2(26538),import_v102=__webpack_require__2(26538),ButtonBuilder=__name(class extends ComponentBuilder{static#_=__name2(this,"ButtonBuilder");constructor(data){super({type:import_v102.ComponentType.Button,...data})}setStyle(style){return this.data.style=buttonStyleValidator.parse(style),this}setURL(url){return this.data.url=urlValidator.parse(url),this}setCustomId(customId){return this.data.custom_id=customIdValidator.parse(customId),this}setEmoji(emoji){return this.data.emoji=emojiValidator.parse(emoji),this}setDisabled(disabled=!0){return this.data.disabled=disabledValidator.parse(disabled),this}setLabel(label){return this.data.label=buttonLabelValidator.parse(label),this}toJSON(){return validateRequiredButtonParameters(this.data.style,this.data.label,this.data.emoji,this.data.custom_id,this.data.url),{...this.data}}},"ButtonBuilder"),import_v103=__webpack_require__2(26538),BaseSelectMenuBuilder=__name(class extends ComponentBuilder{static#_=__name2(this,"BaseSelectMenuBuilder");setPlaceholder(placeholder){return this.data.placeholder=placeholderValidator.parse(placeholder),this}setMinValues(minValues){return this.data.min_values=minMaxValidator.parse(minValues),this}setMaxValues(maxValues){return this.data.max_values=minMaxValidator.parse(maxValues),this}setCustomId(customId){return this.data.custom_id=customIdValidator.parse(customId),this}setDisabled(disabled=!0){return this.data.disabled=disabledValidator.parse(disabled),this}toJSON(){return customIdValidator.parse(this.data.custom_id),{...this.data}}},"BaseSelectMenuBuilder"),ChannelSelectMenuBuilder=__name(class extends BaseSelectMenuBuilder{static#_=__name2(this,"ChannelSelectMenuBuilder");constructor(data){super({...data,type:import_v103.ComponentType.ChannelSelect})}addChannelTypes(...types){const normalizedTypes=normalizeArray(types);return this.data.channel_types??=[],this.data.channel_types.push(...channelTypesValidator.parse(normalizedTypes)),this}setChannelTypes(...types){const normalizedTypes=normalizeArray(types);return this.data.channel_types??=[],this.data.channel_types.splice(0,this.data.channel_types.length,...channelTypesValidator.parse(normalizedTypes)),this}toJSON(){return customIdValidator.parse(this.data.custom_id),{...this.data}}},"ChannelSelectMenuBuilder"),import_v104=__webpack_require__2(26538),MentionableSelectMenuBuilder=__name(class extends BaseSelectMenuBuilder{static#_=__name2(this,"MentionableSelectMenuBuilder");constructor(data){super({...data,type:import_v104.ComponentType.MentionableSelect})}},"MentionableSelectMenuBuilder"),import_v105=__webpack_require__2(26538),RoleSelectMenuBuilder=__name(class extends BaseSelectMenuBuilder{static#_=__name2(this,"RoleSelectMenuBuilder");constructor(data){super({...data,type:import_v105.ComponentType.RoleSelect})}},"RoleSelectMenuBuilder"),import_v106=__webpack_require__2(26538),StringSelectMenuBuilder=__name(class extends BaseSelectMenuBuilder{static#_=__name2(this,"StringSelectMenuBuilder");options;constructor(data){const{options,...initData}=data??{};super({...initData,type:import_v106.ComponentType.StringSelect}),this.options=options?.map(option=>new StringSelectMenuOptionBuilder(option))??[]}addOptions(...options){const normalizedOptions=normalizeArray(options);return optionsLengthValidator.parse(this.options.length+normalizedOptions.length),this.options.push(...normalizedOptions.map(normalizedOption=>normalizedOption instanceof StringSelectMenuOptionBuilder?normalizedOption:new StringSelectMenuOptionBuilder(jsonOptionValidator.parse(normalizedOption)))),this}setOptions(...options){return this.spliceOptions(0,this.options.length,...options)}spliceOptions(index,deleteCount,...options){const normalizedOptions=normalizeArray(options),clone=[...this.options];return clone.splice(index,deleteCount,...normalizedOptions.map(normalizedOption=>normalizedOption instanceof StringSelectMenuOptionBuilder?normalizedOption:new StringSelectMenuOptionBuilder(jsonOptionValidator.parse(normalizedOption)))),optionsLengthValidator.parse(clone.length),this.options.splice(0,this.options.length,...clone),this}toJSON(){return validateRequiredSelectMenuParameters(this.options,this.data.custom_id),{...this.data,options:this.options.map(option=>option.toJSON())}}},"StringSelectMenuBuilder"),import_v107=__webpack_require__2(26538),UserSelectMenuBuilder=__name(class extends BaseSelectMenuBuilder{static#_=__name2(this,"UserSelectMenuBuilder");constructor(data){super({...data,type:import_v107.ComponentType.UserSelect})}},"UserSelectMenuBuilder"),import_util=__webpack_require__2(43985),import_v109=__webpack_require__2(26538),import_fast_deep_equal=__toESM(__webpack_require__2(21385)),Assertions_exports3={};__export(Assertions_exports3,{labelValidator:()=>labelValidator,maxLengthValidator:()=>maxLengthValidator,minLengthValidator:()=>minLengthValidator,placeholderValidator:()=>placeholderValidator2,requiredValidator:()=>requiredValidator,textInputStyleValidator:()=>textInputStyleValidator,validateRequiredParameters:()=>validateRequiredParameters,valueValidator:()=>valueValidator});var import_shapeshift3=__webpack_require__2(2409),import_v108=__webpack_require__2(26538),textInputStyleValidator=import_shapeshift3.s.nativeEnum(import_v108.TextInputStyle),minLengthValidator=import_shapeshift3.s.number.int.greaterThanOrEqual(0).lessThanOrEqual(4e3).setValidationEnabled(isValidationEnabled),maxLengthValidator=import_shapeshift3.s.number.int.greaterThanOrEqual(1).lessThanOrEqual(4e3).setValidationEnabled(isValidationEnabled),requiredValidator=import_shapeshift3.s.boolean,valueValidator=import_shapeshift3.s.string.lengthLessThanOrEqual(4e3).setValidationEnabled(isValidationEnabled),placeholderValidator2=import_shapeshift3.s.string.lengthLessThanOrEqual(100).setValidationEnabled(isValidationEnabled),labelValidator=import_shapeshift3.s.string.lengthGreaterThanOrEqual(1).lengthLessThanOrEqual(45).setValidationEnabled(isValidationEnabled);function validateRequiredParameters(customId,style,label){customIdValidator.parse(customId),textInputStyleValidator.parse(style),labelValidator.parse(label)}__name(validateRequiredParameters,"validateRequiredParameters"),__name2(validateRequiredParameters,"validateRequiredParameters");var TextInputBuilder=__name(class extends ComponentBuilder{static#_=__name2(this,"TextInputBuilder");constructor(data){super({type:import_v109.ComponentType.TextInput,...data})}setCustomId(customId){return this.data.custom_id=customIdValidator.parse(customId),this}setLabel(label){return this.data.label=labelValidator.parse(label),this}setStyle(style){return this.data.style=textInputStyleValidator.parse(style),this}setMinLength(minLength){return this.data.min_length=minLengthValidator.parse(minLength),this}setMaxLength(maxLength){return this.data.max_length=maxLengthValidator.parse(maxLength),this}setPlaceholder(placeholder){return this.data.placeholder=placeholderValidator2.parse(placeholder),this}setValue(value){return this.data.value=valueValidator.parse(value),this}setRequired(required=!0){return this.data.required=requiredValidator.parse(required),this}toJSON(){return validateRequiredParameters(this.data.custom_id,this.data.style,this.data.label),{...this.data}}equals(other){return(0,import_util.isJSONEncodable)(other)?(0,import_fast_deep_equal.default)(other.toJSON(),this.data):(0,import_fast_deep_equal.default)(other,this.data)}},"TextInputBuilder");function createComponentBuilder(data){if(data instanceof ComponentBuilder)return data;switch(data.type){case import_v1010.ComponentType.ActionRow:return new ActionRowBuilder(data);case import_v1010.ComponentType.Button:return new ButtonBuilder(data);case import_v1010.ComponentType.StringSelect:return new StringSelectMenuBuilder(data);case import_v1010.ComponentType.TextInput:return new TextInputBuilder(data);case import_v1010.ComponentType.UserSelect:return new UserSelectMenuBuilder(data);case import_v1010.ComponentType.RoleSelect:return new RoleSelectMenuBuilder(data);case import_v1010.ComponentType.MentionableSelect:return new MentionableSelectMenuBuilder(data);case import_v1010.ComponentType.ChannelSelect:return new ChannelSelectMenuBuilder(data);default:throw new Error(`Cannot properly serialize component type: ${data.type}`)}}__name(createComponentBuilder,"createComponentBuilder"),__name2(createComponentBuilder,"createComponentBuilder");var ActionRowBuilder=__name(class extends ComponentBuilder{static#_=__name2(this,"ActionRowBuilder");components;constructor({components,...data}={}){super({type:import_v1011.ComponentType.ActionRow,...data}),this.components=components?.map(component=>createComponentBuilder(component))??[]}addComponents(...components){return this.components.push(...normalizeArray(components)),this}setComponents(...components){return this.components.splice(0,this.components.length,...normalizeArray(components)),this}toJSON(){return{...this.data,components:this.components.map(component=>component.toJSON())}}},"ActionRowBuilder"),Assertions_exports4={};__export(Assertions_exports4,{componentsValidator:()=>componentsValidator,titleValidator:()=>titleValidator,validateRequiredParameters:()=>validateRequiredParameters2});var import_shapeshift4=__webpack_require__2(2409),titleValidator=import_shapeshift4.s.string.lengthGreaterThanOrEqual(1).lengthLessThanOrEqual(45).setValidationEnabled(isValidationEnabled),componentsValidator=import_shapeshift4.s.instance(ActionRowBuilder).array.lengthGreaterThanOrEqual(1).setValidationEnabled(isValidationEnabled);function validateRequiredParameters2(customId,title,components){customIdValidator.parse(customId),titleValidator.parse(title),componentsValidator.parse(components)}__name(validateRequiredParameters2,"validateRequiredParameters2"),__name2(validateRequiredParameters2,"validateRequiredParameters");var ModalBuilder=__name(class{static#_=__name2(this,"ModalBuilder");data;components=[];constructor({components,...data}={}){this.data={...data},this.components=components?.map(component=>createComponentBuilder(component))??[]}setTitle(title){return this.data.title=titleValidator.parse(title),this}setCustomId(customId){return this.data.custom_id=customIdValidator.parse(customId),this}addComponents(...components){return this.components.push(...normalizeArray(components).map(component=>component instanceof ActionRowBuilder?component:new ActionRowBuilder(component))),this}setComponents(...components){return this.components.splice(0,this.components.length,...normalizeArray(components)),this}toJSON(){return validateRequiredParameters2(this.data.custom_id,this.data.title,this.components),{...this.data,components:this.components.map(component=>component.toJSON())}}},"ModalBuilder"),Assertions_exports5={};__export(Assertions_exports5,{assertReturnOfBuilder:()=>assertReturnOfBuilder,localizationMapPredicate:()=>localizationMapPredicate,validateChoicesLength:()=>validateChoicesLength,validateDMPermission:()=>validateDMPermission,validateDefaultMemberPermissions:()=>validateDefaultMemberPermissions,validateDefaultPermission:()=>validateDefaultPermission,validateDescription:()=>validateDescription,validateLocale:()=>validateLocale,validateLocalizationMap:()=>validateLocalizationMap,validateMaxOptionsLength:()=>validateMaxOptionsLength,validateNSFW:()=>validateNSFW,validateName:()=>validateName,validateRequired:()=>validateRequired,validateRequiredParameters:()=>validateRequiredParameters3});var import_shapeshift5=__webpack_require__2(2409),import_v1012=__webpack_require__2(26538),namePredicate=import_shapeshift5.s.string.lengthGreaterThanOrEqual(1).lengthLessThanOrEqual(32).regex(/^[\p{Ll}\p{Lm}\p{Lo}\p{N}\p{sc=Devanagari}\p{sc=Thai}_-]+$/u).setValidationEnabled(isValidationEnabled);function validateName(name){namePredicate.parse(name)}__name(validateName,"validateName"),__name2(validateName,"validateName");var descriptionPredicate2=import_shapeshift5.s.string.lengthGreaterThanOrEqual(1).lengthLessThanOrEqual(100).setValidationEnabled(isValidationEnabled),localePredicate=import_shapeshift5.s.nativeEnum(import_v1012.Locale);function validateDescription(description){descriptionPredicate2.parse(description)}__name(validateDescription,"validateDescription"),__name2(validateDescription,"validateDescription");var maxArrayLengthPredicate=import_shapeshift5.s.unknown.array.lengthLessThanOrEqual(25).setValidationEnabled(isValidationEnabled);function validateLocale(locale){return localePredicate.parse(locale)}function validateMaxOptionsLength(options){maxArrayLengthPredicate.parse(options)}function validateRequiredParameters3(name,description,options){validateName(name),validateDescription(description),validateMaxOptionsLength(options)}__name(validateLocale,"validateLocale"),__name2(validateLocale,"validateLocale"),__name(validateMaxOptionsLength,"validateMaxOptionsLength"),__name2(validateMaxOptionsLength,"validateMaxOptionsLength"),__name(validateRequiredParameters3,"validateRequiredParameters3"),__name2(validateRequiredParameters3,"validateRequiredParameters");var booleanPredicate=import_shapeshift5.s.boolean;function validateDefaultPermission(value){booleanPredicate.parse(value)}function validateRequired(required){booleanPredicate.parse(required)}__name(validateDefaultPermission,"validateDefaultPermission"),__name2(validateDefaultPermission,"validateDefaultPermission"),__name(validateRequired,"validateRequired"),__name2(validateRequired,"validateRequired");var choicesLengthPredicate=import_shapeshift5.s.number.lessThanOrEqual(25).setValidationEnabled(isValidationEnabled);function validateChoicesLength(amountAdding,choices){choicesLengthPredicate.parse((choices?.length??0)+amountAdding)}function assertReturnOfBuilder(input,ExpectedInstanceOf){import_shapeshift5.s.instance(ExpectedInstanceOf).parse(input)}__name(validateChoicesLength,"validateChoicesLength"),__name2(validateChoicesLength,"validateChoicesLength"),__name(assertReturnOfBuilder,"assertReturnOfBuilder"),__name2(assertReturnOfBuilder,"assertReturnOfBuilder");var localizationMapPredicate=import_shapeshift5.s.object(Object.fromEntries(Object.values(import_v1012.Locale).map(locale=>[locale,import_shapeshift5.s.string.nullish]))).strict.nullish.setValidationEnabled(isValidationEnabled);function validateLocalizationMap(value){localizationMapPredicate.parse(value)}__name(validateLocalizationMap,"validateLocalizationMap"),__name2(validateLocalizationMap,"validateLocalizationMap");var dmPermissionPredicate=import_shapeshift5.s.boolean.nullish;function validateDMPermission(value){dmPermissionPredicate.parse(value)}__name(validateDMPermission,"validateDMPermission"),__name2(validateDMPermission,"validateDMPermission");var memberPermissionPredicate=import_shapeshift5.s.union(import_shapeshift5.s.bigint.transform(value=>value.toString()),import_shapeshift5.s.number.safeInt.transform(value=>value.toString()),import_shapeshift5.s.string.regex(/^\d+$/)).nullish;function validateDefaultMemberPermissions(permissions){return memberPermissionPredicate.parse(permissions)}function validateNSFW(value){booleanPredicate.parse(value)}__name(validateDefaultMemberPermissions,"validateDefaultMemberPermissions"),__name2(validateDefaultMemberPermissions,"validateDefaultMemberPermissions"),__name(validateNSFW,"validateNSFW"),__name2(validateNSFW,"validateNSFW");var import_ts_mixer6=__webpack_require__2(92688),import_v1024=__webpack_require__2(26538),import_ts_mixer5=__webpack_require__2(92688),SharedNameAndDescription=__name(class{static#_=__name2(this,"SharedNameAndDescription");name;name_localizations;description;description_localizations;setName(name){return validateName(name),Reflect.set(this,"name",name),this}setDescription(description){return validateDescription(description),Reflect.set(this,"description",description),this}setNameLocalization(locale,localizedName){this.name_localizations||Reflect.set(this,"name_localizations",{});const parsedLocale=validateLocale(locale);return null===localizedName?(this.name_localizations[parsedLocale]=null,this):(validateName(localizedName),this.name_localizations[parsedLocale]=localizedName,this)}setNameLocalizations(localizedNames){if(null===localizedNames)return Reflect.set(this,"name_localizations",null),this;Reflect.set(this,"name_localizations",{});for(const args2 of Object.entries(localizedNames))this.setNameLocalization(...args2);return this}setDescriptionLocalization(locale,localizedDescription){this.description_localizations||Reflect.set(this,"description_localizations",{});const parsedLocale=validateLocale(locale);return null===localizedDescription?(this.description_localizations[parsedLocale]=null,this):(validateDescription(localizedDescription),this.description_localizations[parsedLocale]=localizedDescription,this)}setDescriptionLocalizations(localizedDescriptions){if(null===localizedDescriptions)return Reflect.set(this,"description_localizations",null),this;Reflect.set(this,"description_localizations",{});for(const args2 of Object.entries(localizedDescriptions))this.setDescriptionLocalization(...args2);return this}},"SharedNameAndDescription"),import_v1013=__webpack_require__2(26538),ApplicationCommandOptionBase=__name(class extends SharedNameAndDescription{static#_=__name2(this,"ApplicationCommandOptionBase");required=!1;setRequired(required){return validateRequired(required),Reflect.set(this,"required",required),this}runRequiredValidations(){validateRequiredParameters3(this.name,this.description,[]),validateLocalizationMap(this.name_localizations),validateLocalizationMap(this.description_localizations),validateRequired(this.required)}},"ApplicationCommandOptionBase"),SlashCommandAttachmentOption=__name(class extends ApplicationCommandOptionBase{static#_=__name2(this,"SlashCommandAttachmentOption");type=import_v1013.ApplicationCommandOptionType.Attachment;toJSON(){return this.runRequiredValidations(),{...this}}},"SlashCommandAttachmentOption"),import_v1014=__webpack_require__2(26538),SlashCommandBooleanOption=__name(class extends ApplicationCommandOptionBase{static#_=__name2(this,"SlashCommandBooleanOption");type=import_v1014.ApplicationCommandOptionType.Boolean;toJSON(){return this.runRequiredValidations(),{...this}}},"SlashCommandBooleanOption"),import_v1016=__webpack_require__2(26538),import_ts_mixer=__webpack_require__2(92688),import_shapeshift6=__webpack_require__2(2409),import_v1015=__webpack_require__2(26538),allowedChannelTypes=[import_v1015.ChannelType.GuildText,import_v1015.ChannelType.GuildVoice,import_v1015.ChannelType.GuildCategory,import_v1015.ChannelType.GuildAnnouncement,import_v1015.ChannelType.AnnouncementThread,import_v1015.ChannelType.PublicThread,import_v1015.ChannelType.PrivateThread,import_v1015.ChannelType.GuildStageVoice,import_v1015.ChannelType.GuildForum],channelTypesPredicate=import_shapeshift6.s.array(import_shapeshift6.s.union(...allowedChannelTypes.map(type=>import_shapeshift6.s.literal(type)))),ApplicationCommandOptionChannelTypesMixin=__name(class{static#_=__name2(this,"ApplicationCommandOptionChannelTypesMixin");channel_types;addChannelTypes(...channelTypes){return void 0===this.channel_types&&Reflect.set(this,"channel_types",[]),this.channel_types.push(...channelTypesPredicate.parse(channelTypes)),this}},"ApplicationCommandOptionChannelTypesMixin"),SlashCommandChannelOption=__name(class extends ApplicationCommandOptionBase{type=import_v1016.ApplicationCommandOptionType.Channel;toJSON(){return this.runRequiredValidations(),{...this}}},"SlashCommandChannelOption");__name2(SlashCommandChannelOption,"SlashCommandChannelOption"),SlashCommandChannelOption=__decorateClass([(0,import_ts_mixer.mix)(ApplicationCommandOptionChannelTypesMixin)],SlashCommandChannelOption);var import_shapeshift8=__webpack_require__2(2409),import_v1018=__webpack_require__2(26538),import_ts_mixer2=__webpack_require__2(92688),ApplicationCommandNumericOptionMinMaxValueMixin=__name(class{static#_=__name2(this,"ApplicationCommandNumericOptionMinMaxValueMixin");max_value;min_value},"ApplicationCommandNumericOptionMinMaxValueMixin"),import_shapeshift7=__webpack_require__2(2409),import_v1017=__webpack_require__2(26538),stringPredicate=import_shapeshift7.s.string.lengthGreaterThanOrEqual(1).lengthLessThanOrEqual(100),numberPredicate=import_shapeshift7.s.number.greaterThan(Number.NEGATIVE_INFINITY).lessThan(Number.POSITIVE_INFINITY),choicesPredicate=import_shapeshift7.s.object({name:stringPredicate,name_localizations:localizationMapPredicate,value:import_shapeshift7.s.union(stringPredicate,numberPredicate)}).array,booleanPredicate2=import_shapeshift7.s.boolean,ApplicationCommandOptionWithChoicesAndAutocompleteMixin=__name(class{static#_=__name2(this,"ApplicationCommandOptionWithChoicesAndAutocompleteMixin");choices;autocomplete;type;addChoices(...choices){if(choices.length>0&&this.autocomplete)throw new RangeError("Autocomplete and choices are mutually exclusive to each other.");choicesPredicate.parse(choices),void 0===this.choices&&Reflect.set(this,"choices",[]),validateChoicesLength(choices.length,this.choices);for(const{name,name_localizations,value}of choices)this.type===import_v1017.ApplicationCommandOptionType.String?stringPredicate.parse(value):numberPredicate.parse(value),this.choices.push({name,name_localizations,value});return this}setChoices(...choices){if(choices.length>0&&this.autocomplete)throw new RangeError("Autocomplete and choices are mutually exclusive to each other.");return choicesPredicate.parse(choices),Reflect.set(this,"choices",[]),this.addChoices(...choices),this}setAutocomplete(autocomplete){if(booleanPredicate2.parse(autocomplete),autocomplete&&Array.isArray(this.choices)&&this.choices.length>0)throw new RangeError("Autocomplete and choices are mutually exclusive to each other.");return Reflect.set(this,"autocomplete",autocomplete),this}},"ApplicationCommandOptionWithChoicesAndAutocompleteMixin"),numberValidator=import_shapeshift8.s.number.int,SlashCommandIntegerOption=__name(class extends ApplicationCommandOptionBase{type=import_v1018.ApplicationCommandOptionType.Integer;setMaxValue(max){return numberValidator.parse(max),Reflect.set(this,"max_value",max),this}setMinValue(min){return numberValidator.parse(min),Reflect.set(this,"min_value",min),this}toJSON(){if(this.runRequiredValidations(),this.autocomplete&&Array.isArray(this.choices)&&this.choices.length>0)throw new RangeError("Autocomplete and choices are mutually exclusive to each other.");return{...this}}},"SlashCommandIntegerOption");__name2(SlashCommandIntegerOption,"SlashCommandIntegerOption"),SlashCommandIntegerOption=__decorateClass([(0,import_ts_mixer2.mix)(ApplicationCommandNumericOptionMinMaxValueMixin,ApplicationCommandOptionWithChoicesAndAutocompleteMixin)],SlashCommandIntegerOption);var import_v1019=__webpack_require__2(26538),SlashCommandMentionableOption=__name(class extends ApplicationCommandOptionBase{static#_=__name2(this,"SlashCommandMentionableOption");type=import_v1019.ApplicationCommandOptionType.Mentionable;toJSON(){return this.runRequiredValidations(),{...this}}},"SlashCommandMentionableOption"),import_shapeshift9=__webpack_require__2(2409),import_v1020=__webpack_require__2(26538),import_ts_mixer3=__webpack_require__2(92688),numberValidator2=import_shapeshift9.s.number,SlashCommandNumberOption=__name(class extends ApplicationCommandOptionBase{type=import_v1020.ApplicationCommandOptionType.Number;setMaxValue(max){return numberValidator2.parse(max),Reflect.set(this,"max_value",max),this}setMinValue(min){return numberValidator2.parse(min),Reflect.set(this,"min_value",min),this}toJSON(){if(this.runRequiredValidations(),this.autocomplete&&Array.isArray(this.choices)&&this.choices.length>0)throw new RangeError("Autocomplete and choices are mutually exclusive to each other.");return{...this}}},"SlashCommandNumberOption");__name2(SlashCommandNumberOption,"SlashCommandNumberOption"),SlashCommandNumberOption=__decorateClass([(0,import_ts_mixer3.mix)(ApplicationCommandNumericOptionMinMaxValueMixin,ApplicationCommandOptionWithChoicesAndAutocompleteMixin)],SlashCommandNumberOption);var import_v1021=__webpack_require__2(26538),SlashCommandRoleOption=__name(class extends ApplicationCommandOptionBase{static#_=__name2(this,"SlashCommandRoleOption");type=import_v1021.ApplicationCommandOptionType.Role;toJSON(){return this.runRequiredValidations(),{...this}}},"SlashCommandRoleOption"),import_shapeshift10=__webpack_require__2(2409),import_v1022=__webpack_require__2(26538),import_ts_mixer4=__webpack_require__2(92688),minLengthValidator2=import_shapeshift10.s.number.greaterThanOrEqual(0).lessThanOrEqual(6e3),maxLengthValidator2=import_shapeshift10.s.number.greaterThanOrEqual(1).lessThanOrEqual(6e3),SlashCommandStringOption=__name(class extends ApplicationCommandOptionBase{type=import_v1022.ApplicationCommandOptionType.String;max_length;min_length;setMaxLength(max){return maxLengthValidator2.parse(max),Reflect.set(this,"max_length",max),this}setMinLength(min){return minLengthValidator2.parse(min),Reflect.set(this,"min_length",min),this}toJSON(){if(this.runRequiredValidations(),this.autocomplete&&Array.isArray(this.choices)&&this.choices.length>0)throw new RangeError("Autocomplete and choices are mutually exclusive to each other.");return{...this}}},"SlashCommandStringOption");__name2(SlashCommandStringOption,"SlashCommandStringOption"),SlashCommandStringOption=__decorateClass([(0,import_ts_mixer4.mix)(ApplicationCommandOptionWithChoicesAndAutocompleteMixin)],SlashCommandStringOption);var import_v1023=__webpack_require__2(26538),SlashCommandUserOption=__name(class extends ApplicationCommandOptionBase{static#_=__name2(this,"SlashCommandUserOption");type=import_v1023.ApplicationCommandOptionType.User;toJSON(){return this.runRequiredValidations(),{...this}}},"SlashCommandUserOption"),SharedSlashCommandOptions=__name(class{static#_=__name2(this,"SharedSlashCommandOptions");options;addBooleanOption(input){return this._sharedAddOptionMethod(input,SlashCommandBooleanOption)}addUserOption(input){return this._sharedAddOptionMethod(input,SlashCommandUserOption)}addChannelOption(input){return this._sharedAddOptionMethod(input,SlashCommandChannelOption)}addRoleOption(input){return this._sharedAddOptionMethod(input,SlashCommandRoleOption)}addAttachmentOption(input){return this._sharedAddOptionMethod(input,SlashCommandAttachmentOption)}addMentionableOption(input){return this._sharedAddOptionMethod(input,SlashCommandMentionableOption)}addStringOption(input){return this._sharedAddOptionMethod(input,SlashCommandStringOption)}addIntegerOption(input){return this._sharedAddOptionMethod(input,SlashCommandIntegerOption)}addNumberOption(input){return this._sharedAddOptionMethod(input,SlashCommandNumberOption)}_sharedAddOptionMethod(input,Instance){const{options}=this;validateMaxOptionsLength(options);const result="function"==typeof input?input(new Instance):input;return assertReturnOfBuilder(result,Instance),options.push(result),this}},"SharedSlashCommandOptions"),SlashCommandSubcommandGroupBuilder=__name(class{name=void 0;description=void 0;options=[];addSubcommand(input){const{options}=this;validateMaxOptionsLength(options);const result="function"==typeof input?input(new SlashCommandSubcommandBuilder):input;return assertReturnOfBuilder(result,SlashCommandSubcommandBuilder),options.push(result),this}toJSON(){return validateRequiredParameters3(this.name,this.description,this.options),{type:import_v1024.ApplicationCommandOptionType.SubcommandGroup,name:this.name,name_localizations:this.name_localizations,description:this.description,description_localizations:this.description_localizations,options:this.options.map(option=>option.toJSON())}}},"SlashCommandSubcommandGroupBuilder");__name2(SlashCommandSubcommandGroupBuilder,"SlashCommandSubcommandGroupBuilder"),SlashCommandSubcommandGroupBuilder=__decorateClass([(0,import_ts_mixer5.mix)(SharedNameAndDescription)],SlashCommandSubcommandGroupBuilder);var SlashCommandSubcommandBuilder=__name(class{name=void 0;description=void 0;options=[];toJSON(){return validateRequiredParameters3(this.name,this.description,this.options),{type:import_v1024.ApplicationCommandOptionType.Subcommand,name:this.name,name_localizations:this.name_localizations,description:this.description,description_localizations:this.description_localizations,options:this.options.map(option=>option.toJSON())}}},"SlashCommandSubcommandBuilder");__name2(SlashCommandSubcommandBuilder,"SlashCommandSubcommandBuilder"),SlashCommandSubcommandBuilder=__decorateClass([(0,import_ts_mixer5.mix)(SharedNameAndDescription,SharedSlashCommandOptions)],SlashCommandSubcommandBuilder);var SlashCommandBuilder=__name(class{name=void 0;name_localizations;description=void 0;description_localizations;options=[];default_permission=void 0;default_member_permissions=void 0;dm_permission=void 0;nsfw=void 0;setDefaultPermission(value){return validateDefaultPermission(value),Reflect.set(this,"default_permission",value),this}setDefaultMemberPermissions(permissions){const permissionValue=validateDefaultMemberPermissions(permissions);return Reflect.set(this,"default_member_permissions",permissionValue),this}setDMPermission(enabled){return validateDMPermission(enabled),Reflect.set(this,"dm_permission",enabled),this}setNSFW(nsfw=!0){return validateNSFW(nsfw),Reflect.set(this,"nsfw",nsfw),this}addSubcommandGroup(input){const{options}=this;validateMaxOptionsLength(options);const result="function"==typeof input?input(new SlashCommandSubcommandGroupBuilder):input;return assertReturnOfBuilder(result,SlashCommandSubcommandGroupBuilder),options.push(result),this}addSubcommand(input){const{options}=this;validateMaxOptionsLength(options);const result="function"==typeof input?input(new SlashCommandSubcommandBuilder):input;return assertReturnOfBuilder(result,SlashCommandSubcommandBuilder),options.push(result),this}toJSON(){return validateRequiredParameters3(this.name,this.description,this.options),validateLocalizationMap(this.name_localizations),validateLocalizationMap(this.description_localizations),{...this,options:this.options.map(option=>option.toJSON())}}},"SlashCommandBuilder");__name2(SlashCommandBuilder,"SlashCommandBuilder"),SlashCommandBuilder=__decorateClass([(0,import_ts_mixer6.mix)(SharedSlashCommandOptions,SharedNameAndDescription)],SlashCommandBuilder);var Assertions_exports6={};__export(Assertions_exports6,{validateDMPermission:()=>validateDMPermission2,validateDefaultMemberPermissions:()=>validateDefaultMemberPermissions2,validateDefaultPermission:()=>validateDefaultPermission2,validateName:()=>validateName2,validateRequiredParameters:()=>validateRequiredParameters4,validateType:()=>validateType});var import_shapeshift11=__webpack_require__2(2409),import_v1025=__webpack_require__2(26538),namePredicate2=import_shapeshift11.s.string.lengthGreaterThanOrEqual(1).lengthLessThanOrEqual(32).regex(/^( *[\p{P}\p{L}\p{N}\p{sc=Devanagari}\p{sc=Thai}]+ *)+$/u).setValidationEnabled(isValidationEnabled),typePredicate=import_shapeshift11.s.union(import_shapeshift11.s.literal(import_v1025.ApplicationCommandType.User),import_shapeshift11.s.literal(import_v1025.ApplicationCommandType.Message)).setValidationEnabled(isValidationEnabled),booleanPredicate3=import_shapeshift11.s.boolean;function validateDefaultPermission2(value){booleanPredicate3.parse(value)}function validateName2(name){namePredicate2.parse(name)}function validateType(type){typePredicate.parse(type)}function validateRequiredParameters4(name,type){validateName2(name),validateType(type)}__name(validateDefaultPermission2,"validateDefaultPermission2"),__name2(validateDefaultPermission2,"validateDefaultPermission"),__name(validateName2,"validateName2"),__name2(validateName2,"validateName"),__name(validateType,"validateType"),__name2(validateType,"validateType"),__name(validateRequiredParameters4,"validateRequiredParameters4"),__name2(validateRequiredParameters4,"validateRequiredParameters");var dmPermissionPredicate2=import_shapeshift11.s.boolean.nullish;function validateDMPermission2(value){dmPermissionPredicate2.parse(value)}__name(validateDMPermission2,"validateDMPermission2"),__name2(validateDMPermission2,"validateDMPermission");var memberPermissionPredicate2=import_shapeshift11.s.union(import_shapeshift11.s.bigint.transform(value=>value.toString()),import_shapeshift11.s.number.safeInt.transform(value=>value.toString()),import_shapeshift11.s.string.regex(/^\d+$/)).nullish;function validateDefaultMemberPermissions2(permissions){return memberPermissionPredicate2.parse(permissions)}__name(validateDefaultMemberPermissions2,"validateDefaultMemberPermissions2"),__name2(validateDefaultMemberPermissions2,"validateDefaultMemberPermissions");var ContextMenuCommandBuilder=__name(class{static#_=__name2(this,"ContextMenuCommandBuilder");name=void 0;name_localizations;type=void 0;default_permission=void 0;default_member_permissions=void 0;dm_permission=void 0;setName(name){return validateName2(name),Reflect.set(this,"name",name),this}setType(type){return validateType(type),Reflect.set(this,"type",type),this}setDefaultPermission(value){return validateDefaultPermission2(value),Reflect.set(this,"default_permission",value),this}setDefaultMemberPermissions(permissions){const permissionValue=validateDefaultMemberPermissions2(permissions);return Reflect.set(this,"default_member_permissions",permissionValue),this}setDMPermission(enabled){return validateDMPermission2(enabled),Reflect.set(this,"dm_permission",enabled),this}setNameLocalization(locale,localizedName){this.name_localizations||Reflect.set(this,"name_localizations",{});const parsedLocale=validateLocale(locale);return null===localizedName?(this.name_localizations[parsedLocale]=null,this):(validateName2(localizedName),this.name_localizations[parsedLocale]=localizedName,this)}setNameLocalizations(localizedNames){if(null===localizedNames)return Reflect.set(this,"name_localizations",null),this;Reflect.set(this,"name_localizations",{});for(const args2 of Object.entries(localizedNames))this.setNameLocalization(...args2);return this}toJSON(){return validateRequiredParameters4(this.name,this.type),validateLocalizationMap(this.name_localizations),{...this}}},"ContextMenuCommandBuilder");function embedLength(data){return(data.title?.length??0)+(data.description?.length??0)+(data.fields?.reduce((prev,curr)=>prev+curr.name.length+curr.value.length,0)??0)+(data.footer?.text.length??0)+(data.author?.name.length??0)}__name(embedLength,"embedLength"),__name2(embedLength,"embedLength");var version="1.6.5"},9667:module2=>{"use strict";var __defProp2=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__defNormalProp=__name((obj,key,value)=>key in obj?__defProp2(obj,key,{enumerable:!0,configurable:!0,writable:!0,value}):obj[key]=value,"__defNormalProp"),__name2=__name((target,value)=>__defProp2(target,"name",{value,configurable:!0}),"__name"),__export=__name((target,all)=>{for(var name in all)__defProp2(target,name,{get:all[name],enumerable:!0})},"__export"),__copyProps=__name((to,from,except,desc)=>{if(from&&"object"==typeof from||"function"==typeof from)for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp2(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},"__copyProps"),__toCommonJS=__name(mod=>__copyProps(__defProp2({},"__esModule",{value:!0}),mod),"__toCommonJS"),__publicField=__name((obj,key,value)=>(__defNormalProp(obj,"symbol"!=typeof key?key+"":key,value),value),"__publicField"),src_exports={};__export(src_exports,{Collection:()=>Collection,default:()=>src_default}),module2.exports=__toCommonJS(src_exports);var _Collection=__name(class extends Map{ensure(key,defaultValueGenerator){if(this.has(key))return this.get(key);const defaultValue=defaultValueGenerator(key,this);return this.set(key,defaultValue),defaultValue}hasAll(...keys){return keys.every(k=>super.has(k))}hasAny(...keys){return keys.some(k=>super.has(k))}first(amount){if(typeof amount>"u")return this.values().next().value;if(amount<0)return this.last(-1*amount);amount=Math.min(this.size,amount);const iter=this.values();return Array.from({length:amount},()=>iter.next().value)}firstKey(amount){if(typeof amount>"u")return this.keys().next().value;if(amount<0)return this.lastKey(-1*amount);amount=Math.min(this.size,amount);const iter=this.keys();return Array.from({length:amount},()=>iter.next().value)}last(amount){const arr=[...this.values()];return typeof amount>"u"?arr[arr.length-1]:amount<0?this.first(-1*amount):amount?arr.slice(-amount):[]}lastKey(amount){const arr=[...this.keys()];return typeof amount>"u"?arr[arr.length-1]:amount<0?this.firstKey(-1*amount):amount?arr.slice(-amount):[]}at(index){return index=Math.floor(index),[...this.values()].at(index)}keyAt(index){return index=Math.floor(index),[...this.keys()].at(index)}random(amount){const arr=[...this.values()];return typeof amount>"u"?arr[Math.floor(Math.random()*arr.length)]:arr.length&&amount?Array.from({length:Math.min(amount,arr.length)},()=>arr.splice(Math.floor(Math.random()*arr.length),1)[0]):[]}randomKey(amount){const arr=[...this.keys()];return typeof amount>"u"?arr[Math.floor(Math.random()*arr.length)]:arr.length&&amount?Array.from({length:Math.min(amount,arr.length)},()=>arr.splice(Math.floor(Math.random()*arr.length),1)[0]):[]}reverse(){const entries=[...this.entries()].reverse();this.clear();for(const[key,value]of entries)this.set(key,value);return this}find(fn2,thisArg){typeof thisArg<"u"&&(fn2=fn2.bind(thisArg));for(const[key,val]of this)if(fn2(val,key,this))return val}findKey(fn2,thisArg){typeof thisArg<"u"&&(fn2=fn2.bind(thisArg));for(const[key,val]of this)if(fn2(val,key,this))return key}sweep(fn2,thisArg){typeof thisArg<"u"&&(fn2=fn2.bind(thisArg));const previousSize=this.size;for(const[key,val]of this)fn2(val,key,this)&&this.delete(key);return previousSize-this.size}filter(fn2,thisArg){typeof thisArg<"u"&&(fn2=fn2.bind(thisArg));const results=new this.constructor[Symbol.species];for(const[key,val]of this)fn2(val,key,this)&&results.set(key,val);return results}partition(fn2,thisArg){typeof thisArg<"u"&&(fn2=fn2.bind(thisArg));const results=[new this.constructor[Symbol.species],new this.constructor[Symbol.species]];for(const[key,val]of this)fn2(val,key,this)?results[0].set(key,val):results[1].set(key,val);return results}flatMap(fn2,thisArg){const collections=this.map(fn2,thisArg);return(new this.constructor[Symbol.species]).concat(...collections)}map(fn2,thisArg){typeof thisArg<"u"&&(fn2=fn2.bind(thisArg));const iter=this.entries();return Array.from({length:this.size},()=>{const[key,value]=iter.next().value;return fn2(value,key,this)})}mapValues(fn2,thisArg){typeof thisArg<"u"&&(fn2=fn2.bind(thisArg));const coll=new this.constructor[Symbol.species];for(const[key,val]of this)coll.set(key,fn2(val,key,this));return coll}some(fn2,thisArg){typeof thisArg<"u"&&(fn2=fn2.bind(thisArg));for(const[key,val]of this)if(fn2(val,key,this))return!0;return!1}every(fn2,thisArg){typeof thisArg<"u"&&(fn2=fn2.bind(thisArg));for(const[key,val]of this)if(!fn2(val,key,this))return!1;return!0}reduce(fn2,initialValue){let accumulator;if(typeof initialValue<"u"){accumulator=initialValue;for(const[key,val]of this)accumulator=fn2(accumulator,val,key,this);return accumulator}let first=!0;for(const[key,val]of this)first?(accumulator=val,first=!1):accumulator=fn2(accumulator,val,key,this);if(first)throw new TypeError("Reduce of empty collection with no initial value");return accumulator}each(fn2,thisArg){return this.forEach(fn2,thisArg),this}tap(fn2,thisArg){return typeof thisArg<"u"&&(fn2=fn2.bind(thisArg)),fn2(this),this}clone(){return new this.constructor[Symbol.species](this)}concat(...collections){const newColl=this.clone();for(const coll of collections)for(const[key,val]of coll)newColl.set(key,val);return newColl}equals(collection){if(!collection)return!1;if(this===collection)return!0;if(this.size!==collection.size)return!1;for(const[key,value]of this)if(!collection.has(key)||value!==collection.get(key))return!1;return!0}sort(compareFunction=_Collection.defaultSort){const entries=[...this.entries()];entries.sort((a,b2)=>compareFunction(a[1],b2[1],a[0],b2[0])),super.clear();for(const[k,v]of entries)super.set(k,v);return this}intersect(other){const coll=new this.constructor[Symbol.species];for(const[k,v]of other)this.has(k)&&Object.is(v,this.get(k))&&coll.set(k,v);return coll}difference(other){const coll=new this.constructor[Symbol.species];for(const[k,v]of other)this.has(k)||coll.set(k,v);for(const[k,v]of this)other.has(k)||coll.set(k,v);return coll}merge(other,whenInSelf,whenInOther,whenInBoth){const coll=new this.constructor[Symbol.species],keys=new Set([...this.keys(),...other.keys()]);for(const k of keys){const hasInSelf=this.has(k),hasInOther=other.has(k);if(hasInSelf&&hasInOther){const r=whenInBoth(this.get(k),other.get(k),k);r.keep&&coll.set(k,r.value)}else if(hasInSelf){const r=whenInSelf(this.get(k),k);r.keep&&coll.set(k,r.value)}else if(hasInOther){const r=whenInOther(other.get(k),k);r.keep&&coll.set(k,r.value)}}return coll}sorted(compareFunction=_Collection.defaultSort){return new this.constructor[Symbol.species](this).sort((av,bv,ak,bk)=>compareFunction(av,bv,ak,bk))}toJSON(){return[...this.values()]}static defaultSort(firstValue,secondValue){return Number(firstValue>secondValue)||Number(firstValue===secondValue)-1}static combineEntries(entries,combine){const coll=new _Collection;for(const[k,v]of entries)coll.has(k)?coll.set(k,combine(coll.get(k),v,k)):coll.set(k,v);return coll}},"_Collection"),Collection=_Collection;__name2(Collection,"Collection"),__publicField(Collection,"default",_Collection);var src_default=Collection},5806:module2=>{"use strict";var __defProp2=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__name2=__name((target,value)=>__defProp2(target,"name",{value,configurable:!0}),"__name"),__export=__name((target,all)=>{for(var name in all)__defProp2(target,name,{get:all[name],enumerable:!0})},"__export"),__copyProps=__name((to,from,except,desc)=>{if(from&&"object"==typeof from||"function"==typeof from)for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp2(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},"__copyProps"),__toCommonJS=__name(mod=>__copyProps(__defProp2({},"__esModule",{value:!0}),mod),"__toCommonJS"),src_exports={};function escapeMarkdown(text,options={}){const{codeBlock:codeBlock2=!0,inlineCode:inlineCode2=!0,bold:bold2=!0,italic:italic2=!0,underline=!0,strikethrough:strikethrough2=!0,spoiler:spoiler2=!0,codeBlockContent=!0,inlineCodeContent=!0,escape:escape2=!0,heading=!1,bulletedList=!1,numberedList=!1,maskedLink=!1}=options;if(!codeBlockContent)return text.split("```").map((subString,index,array)=>index%2&&index!==array.length-1?subString:escapeMarkdown(subString,{inlineCode:inlineCode2,bold:bold2,italic:italic2,underline,strikethrough:strikethrough2,spoiler:spoiler2,inlineCodeContent,escape:escape2,heading,bulletedList,numberedList,maskedLink})).join(codeBlock2?"\\`\\`\\`":"```");if(!inlineCodeContent)return text.split(new RegExp("(?<=^|[^`])`(?=[^`]|$)","g")).map((subString,index,array)=>index%2&&index!==array.length-1?subString:escapeMarkdown(subString,{codeBlock:codeBlock2,bold:bold2,italic:italic2,underline,strikethrough:strikethrough2,spoiler:spoiler2,escape:escape2,heading,bulletedList,numberedList,maskedLink})).join(inlineCode2?"\\`":"`");let res=text;return escape2&&(res=escapeEscape(res)),inlineCode2&&(res=escapeInlineCode(res)),codeBlock2&&(res=escapeCodeBlock(res)),italic2&&(res=escapeItalic(res)),bold2&&(res=escapeBold(res)),underline&&(res=escapeUnderline(res)),strikethrough2&&(res=escapeStrikethrough(res)),spoiler2&&(res=escapeSpoiler(res)),heading&&(res=escapeHeading(res)),bulletedList&&(res=escapeBulletedList(res)),numberedList&&(res=escapeNumberedList(res)),maskedLink&&(res=escapeMaskedLink(res)),res}function escapeCodeBlock(text){return text.replaceAll("```","\\`\\`\\`")}function escapeInlineCode(text){return text.replaceAll(new RegExp("(?<=^|[^`])``?(?=[^`]|$)","g"),match=>2===match.length?"\\`\\`":"\\`")}function escapeItalic(text){let idx=0;const newText=text.replaceAll(new RegExp("(?<=^|[^*])\\*([^*]|\\*\\*|$)","g"),(_,match)=>"**"===match?++idx%2?`\\*${match}`:`${match}\\*`:`\\*${match}`);return idx=0,newText.replaceAll(new RegExp("(?<=^|[^_])(?)([^_]|__|$)","g"),(_,match)=>"__"===match?++idx%2?`\\_${match}`:`${match}\\_`:`\\_${match}`)}function escapeBold(text){let idx=0;return text.replaceAll(/\*\*(\*)?/g,(_,match)=>match?++idx%2?`${match}\\*\\*`:`\\*\\*${match}`:"\\*\\*")}function escapeUnderline(text){let idx=0;return text.replaceAll(new RegExp("(?)","g"),(_,match)=>match?++idx%2?`${match}\\_\\_`:`\\_\\_${match}`:"\\_\\_")}function escapeStrikethrough(text){return text.replaceAll("~~","\\~\\~")}function escapeSpoiler(text){return text.replaceAll("||","\\|\\|")}function escapeEscape(text){return text.replaceAll("\\","\\\\")}function escapeHeading(text){return text.replaceAll(/^( {0,2})([*-] )?( *)(#{1,3} )/gm,"$1$2$3\\$4")}function escapeBulletedList(text){return text.replaceAll(/^( *)([*-])( +)/gm,"$1\\$2$3")}function escapeNumberedList(text){return text.replaceAll(/^( *\d+)\./gm,"$1\\.")}function escapeMaskedLink(text){return text.replaceAll(/\[.+]\(.+\)/gm,"\\$&")}function codeBlock(language,content){return void 0===content?`\`\`\`\n${language}\n\`\`\``:`\`\`\`${language}\n${content}\n\`\`\``}function inlineCode(content){return`\`${content}\``}function italic(content){return`_${content}_`}function bold(content){return`**${content}**`}function underscore(content){return`__${content}__`}function strikethrough(content){return`~~${content}~~`}function quote(content){return`> ${content}`}function blockQuote(content){return`>>> ${content}`}function hideLinkEmbed(url){return`<${url}>`}function hyperlink(content,url,title){return title?`[${content}](${url} "${title}")`:`[${content}](${url})`}function spoiler(content){return`||${content}||`}function userMention(userId){return`<@${userId}>`}function channelMention(channelId){return`<#${channelId}>`}function roleMention(roleId){return`<@&${roleId}>`}function chatInputApplicationCommandMention(commandName,subcommandGroupName,subcommandName,commandId){return void 0!==commandId?``:void 0!==subcommandName?``:``}function formatEmoji(emojiId,animated=!1){return`<${animated?"a":""}:_:${emojiId}>`}function channelLink(channelId,guildId){return`https://discord.com/channels/${guildId??"@me"}/${channelId}`}function messageLink(channelId,messageId,guildId){return`${void 0===guildId?channelLink(channelId):channelLink(channelId,guildId)}/${messageId}`}function time(timeOrSeconds,style){return"number"!=typeof timeOrSeconds&&(timeOrSeconds=Math.floor((timeOrSeconds?.getTime()??Date.now())/1e3)),"string"==typeof style?``:``}__export(src_exports,{Faces:()=>Faces,TimestampStyles:()=>TimestampStyles,blockQuote:()=>blockQuote,bold:()=>bold,channelLink:()=>channelLink,channelMention:()=>channelMention,chatInputApplicationCommandMention:()=>chatInputApplicationCommandMention,codeBlock:()=>codeBlock,escapeBold:()=>escapeBold,escapeBulletedList:()=>escapeBulletedList,escapeCodeBlock:()=>escapeCodeBlock,escapeEscape:()=>escapeEscape,escapeHeading:()=>escapeHeading,escapeInlineCode:()=>escapeInlineCode,escapeItalic:()=>escapeItalic,escapeMarkdown:()=>escapeMarkdown,escapeMaskedLink:()=>escapeMaskedLink,escapeNumberedList:()=>escapeNumberedList,escapeSpoiler:()=>escapeSpoiler,escapeStrikethrough:()=>escapeStrikethrough,escapeUnderline:()=>escapeUnderline,formatEmoji:()=>formatEmoji,hideLinkEmbed:()=>hideLinkEmbed,hyperlink:()=>hyperlink,inlineCode:()=>inlineCode,italic:()=>italic,messageLink:()=>messageLink,quote:()=>quote,roleMention:()=>roleMention,spoiler:()=>spoiler,strikethrough:()=>strikethrough,time:()=>time,underscore:()=>underscore,userMention:()=>userMention}),module2.exports=__toCommonJS(src_exports),__name(escapeMarkdown,"escapeMarkdown"),__name2(escapeMarkdown,"escapeMarkdown"),__name(escapeCodeBlock,"escapeCodeBlock"),__name2(escapeCodeBlock,"escapeCodeBlock"),__name(escapeInlineCode,"escapeInlineCode"),__name2(escapeInlineCode,"escapeInlineCode"),__name(escapeItalic,"escapeItalic"),__name2(escapeItalic,"escapeItalic"),__name(escapeBold,"escapeBold"),__name2(escapeBold,"escapeBold"),__name(escapeUnderline,"escapeUnderline"),__name2(escapeUnderline,"escapeUnderline"),__name(escapeStrikethrough,"escapeStrikethrough"),__name2(escapeStrikethrough,"escapeStrikethrough"),__name(escapeSpoiler,"escapeSpoiler"),__name2(escapeSpoiler,"escapeSpoiler"),__name(escapeEscape,"escapeEscape"),__name2(escapeEscape,"escapeEscape"),__name(escapeHeading,"escapeHeading"),__name2(escapeHeading,"escapeHeading"),__name(escapeBulletedList,"escapeBulletedList"),__name2(escapeBulletedList,"escapeBulletedList"),__name(escapeNumberedList,"escapeNumberedList"),__name2(escapeNumberedList,"escapeNumberedList"),__name(escapeMaskedLink,"escapeMaskedLink"),__name2(escapeMaskedLink,"escapeMaskedLink"),__name(codeBlock,"codeBlock"),__name2(codeBlock,"codeBlock"),__name(inlineCode,"inlineCode"),__name2(inlineCode,"inlineCode"),__name(italic,"italic"),__name2(italic,"italic"),__name(bold,"bold"),__name2(bold,"bold"),__name(underscore,"underscore"),__name2(underscore,"underscore"),__name(strikethrough,"strikethrough"),__name2(strikethrough,"strikethrough"),__name(quote,"quote"),__name2(quote,"quote"),__name(blockQuote,"blockQuote"),__name2(blockQuote,"blockQuote"),__name(hideLinkEmbed,"hideLinkEmbed"),__name2(hideLinkEmbed,"hideLinkEmbed"),__name(hyperlink,"hyperlink"),__name2(hyperlink,"hyperlink"),__name(spoiler,"spoiler"),__name2(spoiler,"spoiler"),__name(userMention,"userMention"),__name2(userMention,"userMention"),__name(channelMention,"channelMention"),__name2(channelMention,"channelMention"),__name(roleMention,"roleMention"),__name2(roleMention,"roleMention"),__name(chatInputApplicationCommandMention,"chatInputApplicationCommandMention"),__name2(chatInputApplicationCommandMention,"chatInputApplicationCommandMention"),__name(formatEmoji,"formatEmoji"),__name2(formatEmoji,"formatEmoji"),__name(channelLink,"channelLink"),__name2(channelLink,"channelLink"),__name(messageLink,"messageLink"),__name2(messageLink,"messageLink"),__name(time,"time"),__name2(time,"time");var TimestampStyles={ShortTime:"t",LongTime:"T",ShortDate:"d",LongDate:"D",ShortDateTime:"f",LongDateTime:"F",RelativeTime:"R"},Faces=(Faces2=>(Faces2.Shrug="\xaf_(\u30c4)_/\xaf",Faces2.Tableflip="(\u256f\xb0\u25a1\xb0)\u256f\ufe35 \u253b\u2501\u253b",Faces2.Unflip="\u252c\u2500\u252c\u30ce( \xba _ \xba\u30ce)",Faces2))(Faces||{})},62741:(module2,__unused_webpack_exports2,__webpack_require__2)=>{"use strict";var _asyncToGenerator=__webpack_require__2(17156).default,__create=Object.create,__defProp2=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__defNormalProp=__name((obj,key,value)=>key in obj?__defProp2(obj,key,{enumerable:!0,configurable:!0,writable:!0,value}):obj[key]=value,"__defNormalProp"),__name2=__name((target,value)=>__defProp2(target,"name",{value,configurable:!0}),"__name"),__commonJS=__name((cb,mod)=>__name(function(){return mod||(0,cb[__getOwnPropNames(cb)[0]])((mod={exports:{}}).exports,mod),mod.exports},"__require"),"__commonJS"),__export=__name((target,all)=>{for(var name in all)__defProp2(target,name,{get:all[name],enumerable:!0})},"__export"),__copyProps=__name((to,from,except,desc)=>{if(from&&"object"==typeof from||"function"==typeof from)for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp2(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},"__copyProps"),__toESM=__name((mod,isNodeMode,target)=>(target=null!=mod?__create(__getProtoOf(mod)):{},__copyProps(!isNodeMode&&mod&&mod.__esModule?target:__defProp2(target,"default",{value:mod,enumerable:!0}),mod)),"__toESM"),__toCommonJS=__name(mod=>__copyProps(__defProp2({},"__esModule",{value:!0}),mod),"__toCommonJS"),__publicField=__name((obj,key,value)=>(__defNormalProp(obj,"symbol"!=typeof key?key+"":key,value),value),"__publicField"),__accessCheck=__name((obj,member,msg)=>{if(!member.has(obj))throw TypeError("Cannot "+msg)},"__accessCheck"),__privateGet=__name((obj,member,getter)=>(__accessCheck(obj,member,"read from private field"),getter?getter.call(obj):member.get(obj)),"__privateGet"),__privateAdd=__name((obj,member,value)=>{if(member.has(obj))throw TypeError("Cannot add the same private member more than once");member instanceof WeakSet?member.add(obj):member.set(obj,value)},"__privateAdd"),__privateSet=__name((obj,member,value,setter)=>(__accessCheck(obj,member,"write to private field"),setter?setter.call(obj,value):member.set(obj,value),value),"__privateSet"),require_package=__commonJS({"package.json"(exports2,module22){module22.exports={name:"@discordjs/rest",version:"0.4.0",description:"The REST API for discord.js",scripts:{build:"tsup && tsc --emitDeclarationOnly --incremental",test:"jest --pass-with-no-tests --collect-coverage",lint:"prettier --check . && eslint src __tests__ --ext mjs,js,ts",format:"prettier --write . && eslint src __tests__ --ext mjs,js,ts --fix",docs:"typedoc --json docs/typedoc-out.json src/index.ts && node scripts/docs.mjs",prepublishOnly:"yarn build && yarn lint && yarn test",changelog:"git cliff --prepend ./CHANGELOG.md -u -c ./cliff.toml -r ../../ --include-path 'packages/rest/*'"},main:"./dist/index.js",module:"./dist/index.mjs",typings:"./dist/index.d.ts",exports:{import:"./dist/index.mjs",require:"./dist/index.js",types:"./dist/index.d.ts"},directories:{lib:"src",test:"__tests__"},files:["dist"],contributors:["Crawl ","Amish Shah ","SpaceEEC ","Vlad Frangu ","Antonio Roman "],license:"Apache-2.0",keywords:["discord","api","rest","discordapp","discordjs"],repository:{type:"git",url:"git+https://github.com/discordjs/discord.js.git"},bugs:{url:"https://github.com/discordjs/discord.js/issues"},homepage:"https://discord.js.org",dependencies:{"@discordjs/collection":"workspace:^","@sapphire/async-queue":"^1.3.1","@sapphire/snowflake":"^3.2.1","@types/node-fetch":"^2.6.1","discord-api-types":"^0.29.0","form-data":"^4.0.0","node-fetch":"^2.6.7",tslib:"^2.3.1"},devDependencies:{"@babel/core":"^7.17.9","@babel/plugin-proposal-decorators":"^7.17.9","@babel/preset-env":"^7.16.11","@babel/preset-typescript":"^7.16.7","@discordjs/ts-docgen":"^0.4.1","@types/jest":"^27.4.1","@typescript-eslint/eslint-plugin":"^5.19.0","@typescript-eslint/parser":"^5.19.0","babel-plugin-const-enum":"^1.2.0","babel-plugin-transform-typescript-metadata":"^0.3.2",eslint:"^8.13.0","eslint-config-marine":"^9.4.1","eslint-config-prettier":"^8.5.0","eslint-plugin-import":"^2.26.0",jest:"^27.5.1",nock:"^13.2.4",prettier:"^2.6.2",tsup:"^5.12.5",typedoc:"^0.22.15",typescript:"^4.6.3"},engines:{node:">=16.9.0"},publishConfig:{access:"public"}}}}),src_exports={};__export(src_exports,{ALLOWED_EXTENSIONS:()=>ALLOWED_EXTENSIONS,ALLOWED_SIZES:()=>ALLOWED_SIZES,ALLOWED_STICKER_EXTENSIONS:()=>ALLOWED_STICKER_EXTENSIONS,CDN:()=>CDN,DefaultRestOptions:()=>DefaultRestOptions,DefaultUserAgent:()=>DefaultUserAgent,DiscordAPIError:()=>DiscordAPIError,HTTPError:()=>HTTPError,REST:()=>REST,RESTEvents:()=>RESTEvents,RateLimitError:()=>RateLimitError,RequestManager:()=>RequestManager,RequestMethod:()=>RequestMethod,makeURLSearchParams:()=>makeURLSearchParams}),module2.exports=__toCommonJS(src_exports);var import_v10=__webpack_require__2(71622),Package=require_package(),DefaultUserAgent=`DiscordBot (${Package.homepage}, ${Package.version})`,DefaultRestOptions={agent:{},api:"https://discord.com/api",cdn:"https://cdn.discordapp.com",headers:{},invalidRequestWarningInterval:0,globalRequestsPerSecond:50,offset:50,rejectOnRateLimit:null,retries:3,timeout:15e3,userAgentAppendix:`Node.js ${process.version}`,version:import_v10.APIVersion,hashSweepInterval:144e5,hashLifetime:864e5,handlerSweepInterval:36e5},RESTEvents=(RESTEvents2=>(RESTEvents2.Debug="restDebug",RESTEvents2.InvalidRequestWarning="invalidRequestWarning",RESTEvents2.RateLimited="rateLimited",RESTEvents2.Request="request",RESTEvents2.Response="response",RESTEvents2.HashSweep="hashSweep",RESTEvents2.HandlerSweep="handlerSweep",RESTEvents2))(RESTEvents||{}),ALLOWED_EXTENSIONS=["webp","png","jpg","jpeg","gif"],ALLOWED_STICKER_EXTENSIONS=["png","json"],ALLOWED_SIZES=[16,32,64,128,256,512,1024,2048,4096],CDN=__name(class{constructor(base=DefaultRestOptions.cdn){this.base=base}appAsset(clientId,assetHash,options){return this.makeURL(`/app-assets/${clientId}/${assetHash}`,options)}appIcon(clientId,iconHash,options){return this.makeURL(`/app-icons/${clientId}/${iconHash}`,options)}avatar(id,avatarHash,options){return this.dynamicMakeURL(`/avatars/${id}/${avatarHash}`,avatarHash,options)}banner(id,bannerHash,options){return this.dynamicMakeURL(`/banners/${id}/${bannerHash}`,bannerHash,options)}channelIcon(channelId,iconHash,options){return this.makeURL(`/channel-icons/${channelId}/${iconHash}`,options)}defaultAvatar(discriminator){return this.makeURL(`/embed/avatars/${discriminator}`,{extension:"png"})}discoverySplash(guildId,splashHash,options){return this.makeURL(`/discovery-splashes/${guildId}/${splashHash}`,options)}emoji(emojiId,extension){return this.makeURL(`/emojis/${emojiId}`,{extension})}guildMemberAvatar(guildId,userId,avatarHash,options){return this.dynamicMakeURL(`/guilds/${guildId}/users/${userId}/avatars/${avatarHash}`,avatarHash,options)}icon(id,iconHash,options){return this.dynamicMakeURL(`/icons/${id}/${iconHash}`,iconHash,options)}roleIcon(roleId,roleIconHash,options){return this.makeURL(`/role-icons/${roleId}/${roleIconHash}`,options)}splash(guildId,splashHash,options){return this.makeURL(`/splashes/${guildId}/${splashHash}`,options)}sticker(stickerId,extension){return this.makeURL(`/stickers/${stickerId}`,{allowedExtensions:ALLOWED_STICKER_EXTENSIONS,extension:extension??"png"})}stickerPackBanner(bannerId,options){return this.makeURL(`/app-assets/710982414301790216/store/${bannerId}`,options)}teamIcon(teamId,iconHash,options){return this.makeURL(`/team-icons/${teamId}/${iconHash}`,options)}guildScheduledEventCover(scheduledEventId,coverHash,options){return this.makeURL(`/guild-events/${scheduledEventId}/${coverHash}`,options)}dynamicMakeURL(route,hash,{forceStatic=!1,...options}={}){return this.makeURL(route,!forceStatic&&hash.startsWith("a_")?{...options,extension:"gif"}:options)}makeURL(route,{allowedExtensions=ALLOWED_EXTENSIONS,extension="webp",size}={}){if(extension=String(extension).toLowerCase(),!allowedExtensions.includes(extension))throw new RangeError(`Invalid extension provided: ${extension}\nMust be one of: ${allowedExtensions.join(", ")}`);if(size&&!ALLOWED_SIZES.includes(size))throw new RangeError(`Invalid size provided: ${size}\nMust be one of: ${ALLOWED_SIZES.join(", ")}`);const url=new URL(`${this.base}${route}.${extension}`);return size&&url.searchParams.set("size",String(size)),url.toString()}},"CDN");function isErrorGroupWrapper(error){return Reflect.has(error,"_errors")}function isErrorResponse(error){return"string"==typeof Reflect.get(error,"message")}__name2(CDN,"CDN"),__name(isErrorGroupWrapper,"isErrorGroupWrapper"),__name2(isErrorGroupWrapper,"isErrorGroupWrapper"),__name(isErrorResponse,"isErrorResponse"),__name2(isErrorResponse,"isErrorResponse");var DiscordAPIError=__name(class extends Error{constructor(rawError,code2,status,method,url,bodyData){super(DiscordAPIError.getMessage(rawError)),this.rawError=rawError,this.code=code2,this.status=status,this.method=method,this.url=url,__publicField(this,"requestBody"),this.requestBody={files:bodyData.files,json:bodyData.body}}get name(){return`${DiscordAPIError.name}[${this.code}]`}static getMessage(error){let flattened="";return"code"in error?(error.errors&&(flattened=[...this.flattenDiscordError(error.errors)].join("\n")),error.message&&flattened?`${error.message}\n${flattened}`:error.message||flattened||"Unknown Error"):error.error_description??"No Description"}static*flattenDiscordError(obj,key=""){if(isErrorResponse(obj))return yield`${key.length?`${key}[${obj.code}]`:`${obj.code}`}: ${obj.message}`.trim();for(const[k,v]of Object.entries(obj)){const nextKey=k.startsWith("_")?key:key?Number.isNaN(Number(k))?`${key}.${k}`:`${key}[${k}]`:k;if("string"==typeof v)yield v;else if(isErrorGroupWrapper(v))for(const error of v._errors)yield*this.flattenDiscordError(error,nextKey);else yield*this.flattenDiscordError(v,nextKey)}}},"DiscordAPIError");__name2(DiscordAPIError,"DiscordAPIError");var HTTPError=__name(class extends Error{constructor(message2,name,status,method,url,bodyData){super(message2),this.name=name,this.status=status,this.method=method,this.url=url,__publicField(this,"requestBody"),this.requestBody={files:bodyData.files,json:bodyData.body}}},"HTTPError");__name2(HTTPError,"HTTPError");var RateLimitError=__name(class extends Error{constructor({timeToReset,limit,method,hash,url,route,majorParameter,global:global2}){super(),__publicField(this,"timeToReset"),__publicField(this,"limit"),__publicField(this,"method"),__publicField(this,"hash"),__publicField(this,"url"),__publicField(this,"route"),__publicField(this,"majorParameter"),__publicField(this,"global"),this.timeToReset=timeToReset,this.limit=limit,this.method=method,this.hash=hash,this.url=url,this.route=route,this.majorParameter=majorParameter,this.global=global2}get name(){return`${RateLimitError.name}[${this.route}]`}},"RateLimitError");__name2(RateLimitError,"RateLimitError");var import_node_events=__webpack_require__2(82361),import_node_http=__webpack_require__2(13685),import_node_https=__webpack_require__2(95687),import_collection=__toESM(__webpack_require__2(9667)),import_snowflake=__webpack_require__2(33534),import_form_data=__toESM(__webpack_require__2(81556)),import_promises=__webpack_require__2(68670),import_async_queue=__webpack_require__2(44904),import_node_fetch=__toESM(__webpack_require__2(84259));function serializeSearchParam(value){switch(typeof value){case"string":return value;case"number":case"bigint":case"boolean":return value.toString();case"object":return null===value?null:value instanceof Date?Number.isNaN(value.getTime())?null:value.toISOString():"function"==typeof value.toString&&value.toString!==Object.prototype.toString?value.toString():null;default:return null}}function makeURLSearchParams(options){const params=new URLSearchParams;if(!options)return params;for(const[key,value]of Object.entries(options)){const serialized=serializeSearchParam(value);null!==serialized&¶ms.append(key,serialized)}return params}function parseResponse(res){return res.headers.get("Content-Type")?.startsWith("application/json")?res.json():res.arrayBuffer()}function hasSublimit(bucketRoute,body,method){if("/channels/:id"===bucketRoute){if("object"!=typeof body||null===body||"patch"!==method)return!1;const castedBody=body;return["name","topic"].some(key=>Reflect.has(castedBody,key))}return!0}__name(serializeSearchParam,"serializeSearchParam"),__name2(serializeSearchParam,"serializeSearchParam"),__name(makeURLSearchParams,"makeURLSearchParams"),__name2(makeURLSearchParams,"makeURLSearchParams"),__name(parseResponse,"parseResponse"),__name2(parseResponse,"parseResponse"),__name(hasSublimit,"hasSublimit"),__name2(hasSublimit,"hasSublimit");var _asyncQueue,_sublimitedQueue,_sublimitPromise,_shiftSublimit,invalidCount=0,invalidCountResetTime=null,SequentialHandler=__name(class{constructor(manager,hash,majorParameter){this.manager=manager,this.hash=hash,this.majorParameter=majorParameter,__publicField(this,"id"),__publicField(this,"reset",-1),__publicField(this,"remaining",1),__publicField(this,"limit",1/0),__privateAdd(this,_asyncQueue,new import_async_queue.AsyncQueue),__privateAdd(this,_sublimitedQueue,null),__privateAdd(this,_sublimitPromise,null),__privateAdd(this,_shiftSublimit,!1),this.id=`${hash}:${majorParameter}`}get inactive(){return 0===__privateGet(this,_asyncQueue).remaining&&(null===__privateGet(this,_sublimitedQueue)||0===__privateGet(this,_sublimitedQueue).remaining)&&!this.limited}get globalLimited(){return this.manager.globalRemaining<=0&&Date.now()rateLimitData.route.startsWith(route.toLowerCase()))))throw new RateLimitError(rateLimitData)})()}queueRequest(routeId,url,options,requestData){var _this3=this;return _asyncToGenerator(function*(){let queue=__privateGet(_this3,_asyncQueue),queueType=0;if(__privateGet(_this3,_sublimitedQueue)&&hasSublimit(routeId.bucketRoute,requestData.body,options.method)&&(queue=__privateGet(_this3,_sublimitedQueue),queueType=1),yield queue.wait(),0===queueType)if(__privateGet(_this3,_sublimitedQueue)&&hasSublimit(routeId.bucketRoute,requestData.body,options.method)){queue=__privateGet(_this3,_sublimitedQueue);const wait=queue.wait();__privateGet(_this3,_asyncQueue).shift(),yield wait}else __privateGet(_this3,_sublimitPromise)&&(yield __privateGet(_this3,_sublimitPromise).promise);try{return yield _this3.runRequest(routeId,url,options,requestData)}finally{queue.shift(),__privateGet(_this3,_shiftSublimit)&&(__privateSet(_this3,_shiftSublimit,!1),__privateGet(_this3,_sublimitedQueue)?.shift()),0===__privateGet(_this3,_sublimitedQueue)?.remaining&&(__privateGet(_this3,_sublimitPromise)?.resolve(),__privateSet(_this3,_sublimitedQueue,null))}})()}runRequest(routeId,url,options,requestData,retries=0){var _this4=this;return _asyncToGenerator(function*(){for(;_this4.limited;){const isGlobal=_this4.globalLimited;let limit2,timeout2,delay;isGlobal?(limit2=_this4.manager.options.globalRequestsPerSecond,timeout2=_this4.manager.globalReset+_this4.manager.options.offset-Date.now(),_this4.manager.globalDelay||(_this4.manager.globalDelay=_this4.globalDelayFor(timeout2)),delay=_this4.manager.globalDelay):(limit2=_this4.limit,timeout2=_this4.timeToReset,delay=(0,import_promises.setTimeout)(timeout2));const rateLimitData={timeToReset:timeout2,limit:limit2,method:options.method??"get",hash:_this4.hash,url,route:routeId.bucketRoute,majorParameter:_this4.majorParameter,global:isGlobal};_this4.manager.emit("rateLimited",rateLimitData),yield _this4.onRateLimit(rateLimitData),isGlobal?_this4.debug(`Global rate limit hit, blocking all requests for ${timeout2}ms`):_this4.debug(`Waiting ${timeout2}ms for rate limit to pass`),yield delay}(!_this4.manager.globalReset||_this4.manager.globalResetcontroller.abort(),_this4.manager.options.timeout).unref();let res;try{res=yield(0,import_node_fetch.default)(url,{...options,signal:controller.signal})}catch(error){if(error instanceof Error&&"AbortError"===error.name&&retries!==_this4.manager.options.retries)return yield _this4.runRequest(routeId,url,options,requestData,++retries);throw error}finally{clearTimeout(timeout)}_this4.manager.listenerCount("response")&&_this4.manager.emit("response",{method,path:routeId.original,route:routeId.bucketRoute,options,data:requestData,retries},res.clone());let retryAfter=0;const limit=res.headers.get("X-RateLimit-Limit"),remaining=res.headers.get("X-RateLimit-Remaining"),reset=res.headers.get("X-RateLimit-Reset-After"),hash=res.headers.get("X-RateLimit-Bucket"),retry=res.headers.get("Retry-After");if(_this4.limit=limit?Number(limit):1/0,_this4.remaining=remaining?Number(remaining):1,_this4.reset=reset?1e3*Number(reset)+Date.now()+_this4.manager.options.offset:Date.now(),retry&&(retryAfter=1e3*Number(retry)+_this4.manager.options.offset),hash&&hash!==_this4.hash)_this4.debug(["Received bucket hash update",` Old Hash : ${_this4.hash}`,` New Hash : ${hash}`].join("\n")),_this4.manager.hashes.set(`${method}:${routeId.bucketRoute}`,{value:hash,lastAccess:Date.now()});else if(hash){const hashData=_this4.manager.hashes.get(`${method}:${routeId.bucketRoute}`);hashData&&(hashData.lastAccess=Date.now())}let sublimitTimeout=null;if(retryAfter>0&&(res.headers.get("X-RateLimit-Global")?(_this4.manager.globalRemaining=0,_this4.manager.globalReset=Date.now()+retryAfter):_this4.localLimited||(sublimitTimeout=retryAfter)),(401===res.status||403===res.status||429===res.status)&&((!invalidCountResetTime||invalidCountResetTime0&&invalidCount%_this4.manager.options.invalidRequestWarningInterval==0&&_this4.manager.emit("invalidRequestWarning",{count:invalidCount,remainingTime:invalidCountResetTime-Date.now()})),res.ok)return parseResponse(res);if(429===res.status){const isGlobal=_this4.globalLimited;let limit2,timeout2;if(isGlobal?(limit2=_this4.manager.options.globalRequestsPerSecond,timeout2=_this4.manager.globalReset+_this4.manager.options.offset-Date.now()):(limit2=_this4.limit,timeout2=_this4.timeToReset),yield _this4.onRateLimit({timeToReset:timeout2,limit:limit2,method,hash:_this4.hash,url,route:routeId.bucketRoute,majorParameter:_this4.majorParameter,global:isGlobal}),_this4.debug(["Encountered unexpected 429 rate limit",` Global : ${isGlobal.toString()}`,` Method : ${method}`,` URL : ${url}`,` Bucket : ${routeId.bucketRoute}`,` Major parameter: ${routeId.majorParameter}`,` Hash : ${_this4.hash}`,` Limit : ${limit2}`,` Retry After : ${retryAfter}ms`," Sublimit : "+(sublimitTimeout?`${sublimitTimeout}ms`:"None")].join("\n")),sublimitTimeout){const firstSublimit=!__privateGet(_this4,_sublimitedQueue);let resolve;firstSublimit&&(__privateSet(_this4,_sublimitedQueue,new import_async_queue.AsyncQueue),__privateGet(_this4,_sublimitedQueue).wait(),__privateGet(_this4,_asyncQueue).shift()),__privateGet(_this4,_sublimitPromise)?.resolve(),__privateSet(_this4,_sublimitPromise,null),yield(0,import_promises.setTimeout)(sublimitTimeout,void 0,{ref:!1});const promise=new Promise(res2=>resolve=res2);__privateSet(_this4,_sublimitPromise,{promise,resolve}),firstSublimit&&(yield __privateGet(_this4,_asyncQueue).wait(),__privateSet(_this4,_shiftSublimit,!0))}return _this4.runRequest(routeId,url,options,requestData,retries)}if(res.status>=500&&res.status<600){if(retries!==_this4.manager.options.retries)return _this4.runRequest(routeId,url,options,requestData,++retries);throw new HTTPError(res.statusText,res.constructor.name,res.status,method,url,requestData)}if(res.status>=400&&res.status<500){401===res.status&&requestData.auth&&_this4.manager.setToken(null);const data=yield parseResponse(res);throw new DiscordAPIError(data,"code"in data?data.code:data.error,res.status,method,url,requestData)}return null})()}},"SequentialHandler");__name2(SequentialHandler,"SequentialHandler"),_asyncQueue=new WeakMap,_sublimitedQueue=new WeakMap,_sublimitPromise=new WeakMap,_shiftSublimit=new WeakMap;var _token,RequestMethod=(RequestMethod2=>(RequestMethod2.Delete="delete",RequestMethod2.Get="get",RequestMethod2.Patch="patch",RequestMethod2.Post="post",RequestMethod2.Put="put",RequestMethod2))(RequestMethod||{}),_RequestManager=__name(class extends import_node_events.EventEmitter{constructor(options){super(),__publicField(this,"globalRemaining"),__publicField(this,"globalDelay",null),__publicField(this,"globalReset",-1),__publicField(this,"hashes",new import_collection.default),__publicField(this,"handlers",new import_collection.default),__privateAdd(this,_token,null),__publicField(this,"hashTimer"),__publicField(this,"handlerTimer"),__publicField(this,"agent",null),__publicField(this,"options"),this.options={...DefaultRestOptions,...options},this.options.offset=Math.max(0,this.options.offset),this.globalRemaining=this.options.globalRequestsPerSecond,this.setupSweepers()}setupSweepers(){const validateMaxInterval=__name2(interval=>{if(interval>144e5)throw new Error("Cannot set an interval greater than 4 hours")},"validateMaxInterval");0!==this.options.hashSweepInterval&&this.options.hashSweepInterval!==1/0&&(validateMaxInterval(this.options.hashSweepInterval),this.hashTimer=setInterval(()=>{const sweptHashes=new import_collection.default,currentDate=Date.now();this.hashes.sweep((v,k)=>{if(-1===v.lastAccess)return!1;const shouldSweep=Math.floor(currentDate-v.lastAccess)>this.options.hashLifetime;return shouldSweep&&sweptHashes.set(k,v),this.emit("restDebug",`Hash ${v.value} for ${k} swept due to lifetime being exceeded`),shouldSweep}),this.emit("hashSweep",sweptHashes)},this.options.hashSweepInterval).unref()),0!==this.options.handlerSweepInterval&&this.options.handlerSweepInterval!==1/0&&(validateMaxInterval(this.options.handlerSweepInterval),this.handlerTimer=setInterval(()=>{const sweptHandlers=new import_collection.default;this.handlers.sweep((v,k)=>{const{inactive}=v;return inactive&&sweptHandlers.set(k,v),this.emit("restDebug",`Handler ${v.id} for ${k} swept due to being inactive`),inactive}),this.emit("handlerSweep",sweptHandlers)},this.options.handlerSweepInterval).unref())}setToken(token){return __privateSet(this,_token,token),this}queueRequest(request){var _this5=this;return _asyncToGenerator(function*(){const routeId=_RequestManager.generateRouteData(request.fullRoute,request.method),hash=_this5.hashes.get(`${request.method}:${routeId.bucketRoute}`)??{value:`Global(${request.method}:${routeId.bucketRoute})`,lastAccess:-1},handler=_this5.handlers.get(`${hash.value}:${routeId.majorParameter}`)??_this5.createHandler(hash.value,routeId.majorParameter),{url,fetchOptions}=_this5.resolveRequest(request);return handler.queueRequest(routeId,url,fetchOptions,{body:request.body,files:request.files,auth:!1!==request.auth})})()}createHandler(hash,majorParameter){const queue=new SequentialHandler(this,hash,majorParameter);return this.handlers.set(queue.id,queue),queue}resolveRequest(request){const{options}=this;this.agent??=options.api.startsWith("https")?new import_node_https.Agent({...options.agent,keepAlive:!0}):new import_node_http.Agent({...options.agent,keepAlive:!0});let query="";if(request.query){const resolvedQuery=request.query.toString();""!==resolvedQuery&&(query=`?${resolvedQuery}`)}const headers={...this.options.headers,"User-Agent":`${DefaultUserAgent} ${options.userAgentAppendix}`.trim()};if(!1!==request.auth){if(!__privateGet(this,_token))throw new Error("Expected token to be set for this request, but none was present");headers.Authorization=`${request.authPrefix??"Bot"} ${__privateGet(this,_token)}`}request.reason?.length&&(headers["X-Audit-Log-Reason"]=encodeURIComponent(request.reason));const url=`${options.api}${!1===request.versioned?"":`/v${options.version}`}${request.fullRoute}${query}`;let finalBody,additionalHeaders={};if(request.files?.length){const formData=new import_form_data.default;for(const[index,file2]of request.files.entries())formData.append(file2.key??`files[${index}]`,file2.data,file2.name);if(null!=request.body)if(request.appendToFormData)for(const[key,value]of Object.entries(request.body))formData.append(key,value);else formData.append("payload_json",JSON.stringify(request.body));finalBody=formData,additionalHeaders=formData.getHeaders()}else null!=request.body&&(request.passThroughBody?finalBody=request.body:(finalBody=JSON.stringify(request.body),additionalHeaders={"Content-Type":"application/json"}));return{url,fetchOptions:{agent:this.agent,body:finalBody,headers:{...request.headers??{},...additionalHeaders,...headers},method:request.method}}}clearHashSweeper(){clearInterval(this.hashTimer)}clearHandlerSweeper(){clearInterval(this.handlerTimer)}static generateRouteData(endpoint,method){const majorId=/^\/(?:channels|guilds|webhooks)\/(\d{16,19})/.exec(endpoint)?.[1]??"global",baseRoute=endpoint.replace(/\d{16,19}/g,":id").replace(/\/reactions\/(.*)/,"/reactions/:reaction");let exceptions="";if("delete"===method&&"/channels/:id/messages/:id"===baseRoute){const id=/\d{16,19}$/.exec(endpoint)[0],timestamp=import_snowflake.DiscordSnowflake.timestampFrom(id);Date.now()-timestamp>12096e5&&(exceptions+="/Delete Old Message")}return{majorParameter:majorId,bucketRoute:baseRoute+exceptions,original:endpoint}}},"_RequestManager"),RequestManager=_RequestManager;__name2(RequestManager,"RequestManager"),_token=new WeakMap;var import_node_events2=__webpack_require__2(82361),REST=__name(class extends import_node_events2.EventEmitter{constructor(options={}){super(),__publicField(this,"cdn"),__publicField(this,"requestManager"),this.cdn=new CDN(options.cdn??DefaultRestOptions.cdn),this.requestManager=new RequestManager(options).on("restDebug",this.emit.bind(this,"restDebug")).on("rateLimited",this.emit.bind(this,"rateLimited")).on("invalidRequestWarning",this.emit.bind(this,"invalidRequestWarning")).on("hashSweep",this.emit.bind(this,"hashSweep")),this.on("newListener",(name,listener)=>{("request"===name||"response"===name)&&this.requestManager.on(name,listener)}),this.on("removeListener",(name,listener)=>{("request"===name||"response"===name)&&this.requestManager.off(name,listener)})}setToken(token){return this.requestManager.setToken(token),this}get(fullRoute,options={}){return this.request({...options,fullRoute,method:"get"})}delete(fullRoute,options={}){return this.request({...options,fullRoute,method:"delete"})}post(fullRoute,options={}){return this.request({...options,fullRoute,method:"post"})}put(fullRoute,options={}){return this.request({...options,fullRoute,method:"put"})}patch(fullRoute,options={}){return this.request({...options,fullRoute,method:"patch"})}request(options){return this.requestManager.queueRequest(options)}},"REST");__name2(REST,"REST")},92006:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0})},79658:function(__unused_webpack_module,exports2,__webpack_require__2){"use strict";var GatewayOpcodes2,GatewayCloseCodes2,GatewayIntentBits2,GatewayDispatchEvents2,__createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports3){for(var p2 in m)"default"!==p2&&!Object.prototype.hasOwnProperty.call(exports3,p2)&&__createBinding(exports3,m,p2)};Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.GatewayDispatchEvents=exports2.GatewayIntentBits=exports2.GatewayCloseCodes=exports2.GatewayOpcodes=exports2.GatewayVersion=void 0,__exportStar(__webpack_require__2(92006),exports2),exports2.GatewayVersion="10",(GatewayOpcodes2=exports2.GatewayOpcodes||(exports2.GatewayOpcodes={}))[GatewayOpcodes2.Dispatch=0]="Dispatch",GatewayOpcodes2[GatewayOpcodes2.Heartbeat=1]="Heartbeat",GatewayOpcodes2[GatewayOpcodes2.Identify=2]="Identify",GatewayOpcodes2[GatewayOpcodes2.PresenceUpdate=3]="PresenceUpdate",GatewayOpcodes2[GatewayOpcodes2.VoiceStateUpdate=4]="VoiceStateUpdate",GatewayOpcodes2[GatewayOpcodes2.Resume=6]="Resume",GatewayOpcodes2[GatewayOpcodes2.Reconnect=7]="Reconnect",GatewayOpcodes2[GatewayOpcodes2.RequestGuildMembers=8]="RequestGuildMembers",GatewayOpcodes2[GatewayOpcodes2.InvalidSession=9]="InvalidSession",GatewayOpcodes2[GatewayOpcodes2.Hello=10]="Hello",GatewayOpcodes2[GatewayOpcodes2.HeartbeatAck=11]="HeartbeatAck",(GatewayCloseCodes2=exports2.GatewayCloseCodes||(exports2.GatewayCloseCodes={}))[GatewayCloseCodes2.UnknownError=4e3]="UnknownError",GatewayCloseCodes2[GatewayCloseCodes2.UnknownOpcode=4001]="UnknownOpcode",GatewayCloseCodes2[GatewayCloseCodes2.DecodeError=4002]="DecodeError",GatewayCloseCodes2[GatewayCloseCodes2.NotAuthenticated=4003]="NotAuthenticated",GatewayCloseCodes2[GatewayCloseCodes2.AuthenticationFailed=4004]="AuthenticationFailed",GatewayCloseCodes2[GatewayCloseCodes2.AlreadyAuthenticated=4005]="AlreadyAuthenticated",GatewayCloseCodes2[GatewayCloseCodes2.InvalidSeq=4007]="InvalidSeq",GatewayCloseCodes2[GatewayCloseCodes2.RateLimited=4008]="RateLimited",GatewayCloseCodes2[GatewayCloseCodes2.SessionTimedOut=4009]="SessionTimedOut",GatewayCloseCodes2[GatewayCloseCodes2.InvalidShard=4010]="InvalidShard",GatewayCloseCodes2[GatewayCloseCodes2.ShardingRequired=4011]="ShardingRequired",GatewayCloseCodes2[GatewayCloseCodes2.InvalidAPIVersion=4012]="InvalidAPIVersion",GatewayCloseCodes2[GatewayCloseCodes2.InvalidIntents=4013]="InvalidIntents",GatewayCloseCodes2[GatewayCloseCodes2.DisallowedIntents=4014]="DisallowedIntents",(GatewayIntentBits2=exports2.GatewayIntentBits||(exports2.GatewayIntentBits={}))[GatewayIntentBits2.Guilds=1]="Guilds",GatewayIntentBits2[GatewayIntentBits2.GuildMembers=2]="GuildMembers",GatewayIntentBits2[GatewayIntentBits2.GuildBans=4]="GuildBans",GatewayIntentBits2[GatewayIntentBits2.GuildEmojisAndStickers=8]="GuildEmojisAndStickers",GatewayIntentBits2[GatewayIntentBits2.GuildIntegrations=16]="GuildIntegrations",GatewayIntentBits2[GatewayIntentBits2.GuildWebhooks=32]="GuildWebhooks",GatewayIntentBits2[GatewayIntentBits2.GuildInvites=64]="GuildInvites",GatewayIntentBits2[GatewayIntentBits2.GuildVoiceStates=128]="GuildVoiceStates",GatewayIntentBits2[GatewayIntentBits2.GuildPresences=256]="GuildPresences",GatewayIntentBits2[GatewayIntentBits2.GuildMessages=512]="GuildMessages",GatewayIntentBits2[GatewayIntentBits2.GuildMessageReactions=1024]="GuildMessageReactions",GatewayIntentBits2[GatewayIntentBits2.GuildMessageTyping=2048]="GuildMessageTyping",GatewayIntentBits2[GatewayIntentBits2.DirectMessages=4096]="DirectMessages",GatewayIntentBits2[GatewayIntentBits2.DirectMessageReactions=8192]="DirectMessageReactions",GatewayIntentBits2[GatewayIntentBits2.DirectMessageTyping=16384]="DirectMessageTyping",GatewayIntentBits2[GatewayIntentBits2.MessageContent=32768]="MessageContent",GatewayIntentBits2[GatewayIntentBits2.GuildScheduledEvents=65536]="GuildScheduledEvents",(GatewayDispatchEvents2=exports2.GatewayDispatchEvents||(exports2.GatewayDispatchEvents={})).ChannelCreate="CHANNEL_CREATE",GatewayDispatchEvents2.ChannelDelete="CHANNEL_DELETE",GatewayDispatchEvents2.ChannelPinsUpdate="CHANNEL_PINS_UPDATE",GatewayDispatchEvents2.ChannelUpdate="CHANNEL_UPDATE",GatewayDispatchEvents2.GuildBanAdd="GUILD_BAN_ADD",GatewayDispatchEvents2.GuildBanRemove="GUILD_BAN_REMOVE",GatewayDispatchEvents2.GuildCreate="GUILD_CREATE",GatewayDispatchEvents2.GuildDelete="GUILD_DELETE",GatewayDispatchEvents2.GuildEmojisUpdate="GUILD_EMOJIS_UPDATE",GatewayDispatchEvents2.GuildIntegrationsUpdate="GUILD_INTEGRATIONS_UPDATE",GatewayDispatchEvents2.GuildMemberAdd="GUILD_MEMBER_ADD",GatewayDispatchEvents2.GuildMemberRemove="GUILD_MEMBER_REMOVE",GatewayDispatchEvents2.GuildMembersChunk="GUILD_MEMBERS_CHUNK",GatewayDispatchEvents2.GuildMemberUpdate="GUILD_MEMBER_UPDATE",GatewayDispatchEvents2.GuildRoleCreate="GUILD_ROLE_CREATE",GatewayDispatchEvents2.GuildRoleDelete="GUILD_ROLE_DELETE",GatewayDispatchEvents2.GuildRoleUpdate="GUILD_ROLE_UPDATE",GatewayDispatchEvents2.GuildStickersUpdate="GUILD_STICKERS_UPDATE",GatewayDispatchEvents2.GuildUpdate="GUILD_UPDATE",GatewayDispatchEvents2.IntegrationCreate="INTEGRATION_CREATE",GatewayDispatchEvents2.IntegrationDelete="INTEGRATION_DELETE",GatewayDispatchEvents2.IntegrationUpdate="INTEGRATION_UPDATE",GatewayDispatchEvents2.InteractionCreate="INTERACTION_CREATE",GatewayDispatchEvents2.InviteCreate="INVITE_CREATE",GatewayDispatchEvents2.InviteDelete="INVITE_DELETE",GatewayDispatchEvents2.MessageCreate="MESSAGE_CREATE",GatewayDispatchEvents2.MessageDelete="MESSAGE_DELETE",GatewayDispatchEvents2.MessageDeleteBulk="MESSAGE_DELETE_BULK",GatewayDispatchEvents2.MessageReactionAdd="MESSAGE_REACTION_ADD",GatewayDispatchEvents2.MessageReactionRemove="MESSAGE_REACTION_REMOVE",GatewayDispatchEvents2.MessageReactionRemoveAll="MESSAGE_REACTION_REMOVE_ALL",GatewayDispatchEvents2.MessageReactionRemoveEmoji="MESSAGE_REACTION_REMOVE_EMOJI",GatewayDispatchEvents2.MessageUpdate="MESSAGE_UPDATE",GatewayDispatchEvents2.PresenceUpdate="PRESENCE_UPDATE",GatewayDispatchEvents2.StageInstanceCreate="STAGE_INSTANCE_CREATE",GatewayDispatchEvents2.StageInstanceDelete="STAGE_INSTANCE_DELETE",GatewayDispatchEvents2.StageInstanceUpdate="STAGE_INSTANCE_UPDATE",GatewayDispatchEvents2.Ready="READY",GatewayDispatchEvents2.Resumed="RESUMED",GatewayDispatchEvents2.ThreadCreate="THREAD_CREATE",GatewayDispatchEvents2.ThreadDelete="THREAD_DELETE",GatewayDispatchEvents2.ThreadListSync="THREAD_LIST_SYNC",GatewayDispatchEvents2.ThreadMembersUpdate="THREAD_MEMBERS_UPDATE",GatewayDispatchEvents2.ThreadMemberUpdate="THREAD_MEMBER_UPDATE",GatewayDispatchEvents2.ThreadUpdate="THREAD_UPDATE",GatewayDispatchEvents2.TypingStart="TYPING_START",GatewayDispatchEvents2.UserUpdate="USER_UPDATE",GatewayDispatchEvents2.VoiceServerUpdate="VOICE_SERVER_UPDATE",GatewayDispatchEvents2.VoiceStateUpdate="VOICE_STATE_UPDATE",GatewayDispatchEvents2.WebhooksUpdate="WEBHOOKS_UPDATE",GatewayDispatchEvents2.GuildScheduledEventCreate="GUILD_SCHEDULED_EVENT_CREATE",GatewayDispatchEvents2.GuildScheduledEventUpdate="GUILD_SCHEDULED_EVENT_UPDATE",GatewayDispatchEvents2.GuildScheduledEventDelete="GUILD_SCHEDULED_EVENT_DELETE",GatewayDispatchEvents2.GuildScheduledEventUserAdd="GUILD_SCHEDULED_EVENT_USER_ADD",GatewayDispatchEvents2.GuildScheduledEventUserRemove="GUILD_SCHEDULED_EVENT_USER_REMOVE"},48583:(__unused_webpack_module,exports2)=>{"use strict";Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.FormattingPatterns=void 0,exports2.FormattingPatterns={User:/<@(?\d{17,20})>/,UserWithNickname:/<@!(?\d{17,20})>/,UserWithOptionalNickname:/<@!?(?\d{17,20})>/,Channel:/<#(?\d{17,20})>/,Role:/<@&(?\d{17,20})>/,Emoji:/<(?a)?:(?\w{2,32}):(?\d{17,20})>/,AnimatedEmoji:/<(?a):(?\w{2,32}):(?\d{17,20})>/,StaticEmoji:/<:(?\w{2,32}):(?\d{17,20})>/,Timestamp:/-?\d{1,13})(:(?