diff --git a/dist/main-site/browser/25.5936e0bb8274fece.js b/dist/main-site/browser/25.5936e0bb8274fece.js deleted file mode 100644 index a5079273..00000000 --- a/dist/main-site/browser/25.5936e0bb8274fece.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain_site=self.webpackChunkmain_site||[]).push([[25],{291:(T,h,o)=>{o.d(h,{G:()=>U});var t=o(4650),u=o(9816),g=o(6895),p=o(9923);const l=function(c){return{"background-color":c}};function d(c,A){if(1&c){const _=t.EpF();t.TgZ(0,"mat-chip",1),t.NdJ("click",function(m){const r=t.CHM(_).$implicit,E=t.oxw();return m.stopPropagation(),t.KtG(E.onChipClicked(r))}),t._uU(1),t.qZA()}if(2&c){const _=A.$implicit;t.Q6J("ngStyle",t.VKq(3,l,_.color))("selected",_.selected),t.xp6(1),t.hij(" ",_.name," ")}}let U=(()=>{class c{constructor(_){this.gs=_,this.chipData=[],this.chipClicked=new t.vpe}ngOnInit(){}onChipClicked(_){this.chipClicked.emit(_)}static#t=this.\u0275fac=function(M){return new(M||c)(t.Y36(u.U))};static#e=this.\u0275cmp=t.Xpm({type:c,selectors:[["app-material-chip"]],inputs:{chipData:"chipData"},outputs:{chipClicked:"chipClicked"},decls:2,vars:1,consts:[[3,"ngStyle","selected","click",4,"ngFor","ngForOf"],[3,"ngStyle","selected","click"]],template:function(M,m){1&M&&(t.TgZ(0,"mat-chip-list"),t.YNc(1,d,2,5,"mat-chip",0),t.qZA()),2&M&&(t.xp6(1),t.Q6J("ngForOf",m.chipData))},dependencies:[g.sg,g.PC,p.ir,p.lw]})}return c})()},6533:(T,h,o)=>{o.d(h,{P:()=>p});var t=o(6895),u=o(2314),g=o(4650);let p=(()=>{class l{static#t=this.\u0275fac=function(c){return new(c||l)};static#e=this.\u0275mod=g.oAB({type:l});static#i=this.\u0275inj=g.cJS({imports:[t.ez,u.m]})}return l})()},9558:(T,h,o)=>{o.d(h,{I:()=>tt});var t=o(4650),u=o(1597),g=o(6308),p=o(5558),l=o(1390),d=o(9816),U=o(6895),c=o(9818),A=o(7392),_=o(8455),M=o(9203),m=o(9982),P=o(3238),r=o(7462),E=o(291),C=o(4006),x=o(1105);function v(a,n){if(1&a&&(t.TgZ(0,"th",15)(1,"h3",16),t._uU(2),t.qZA()()),2&a){const e=t.oxw().$implicit;t.Q6J("disabled","NAMA BERKAS"!==e.toUpperCase()&&"NAMA LAMPIRAN"!==e.toUpperCase()&&"TANGGAL"!==e.toUpperCase()&&"NAMA FANSUB"!==e.toUpperCase()&&"JUDUL DORAMA"!==e.toUpperCase()&&"TOPIK"!==e.toUpperCase()&&"JUDUL ANIME"!==e.toUpperCase()&&"ANIME"!==e.toUpperCase()&&"DORAMA"!==e.toUpperCase()&&"EXT"!==e.toUpperCase()&&"JENIS"!==e.toUpperCase()&&"DEADLINE"!==e.toUpperCase()&&"JUDUL"!==e.toUpperCase()&&"KONTEN"!==e.toUpperCase()&&"SIZE"!==e.toUpperCase()&&"ID"!==e.toUpperCase()&&"ALASAN"!==e.toUpperCase()&&"NAMA API"!==e.toUpperCase()&&"IP DOMAIN"!==e.toUpperCase()&&"MIME"!==e.toUpperCase()&&"API KEY"!==e.toUpperCase()&&"USERNAME"!==e.toUpperCase()&&"EMAIL"!==e.toUpperCase()&&"ROLE"!==e.toUpperCase()&&"KETERANGAN"!==e.toUpperCase()),t.xp6(1),t.Udp("color","#ff4081"),t.xp6(1),t.Oqu(e.toUpperCase())}}function b(a,n){if(1&a&&t._UZ(0,"img",27),2&a){const e=t.oxw(2).$implicit;t.Q6J("src",e.foto,t.LSH)}}function I(a,n){if(1&a&&t._UZ(0,"img",27),2&a){const e=t.oxw(2).$implicit;t.Q6J("src",e.foto_korban,t.LSH)}}function D(a,n){if(1&a&&t._UZ(0,"img",27),2&a){const e=t.oxw(2).$implicit;t.Q6J("src",e.foto_pelaku,t.LSH)}}function N(a,n){if(1&a&&t._UZ(0,"img",27),2&a){const e=t.oxw(2).$implicit;t.Q6J("src",e.foto_fansub,t.LSH)}}function R(a,n){if(1&a&&t._UZ(0,"img",27),2&a){const e=t.oxw(2).$implicit;t.Q6J("src",e.foto_anggota,t.LSH)}}function L(a,n){if(1&a&&t._UZ(0,"img",28),2&a){const e=t.oxw(2).$implicit,i=t.oxw().$implicit;t.Q6J("src",e[i],t.LSH)}}function w(a,n){if(1&a&&t._UZ(0,"img",29),2&a){const e=t.oxw(2).$implicit,i=t.oxw().$implicit;t.Q6J("src",e[i],t.LSH)}}function S(a,n){if(1&a&&t._UZ(0,"img",30),2&a){const e=t.oxw(2).$implicit,i=t.oxw().$implicit;t.Q6J("src",e[i],t.LSH)}}function K(a,n){if(1&a&&(t.TgZ(0,"span",31),t.ALo(1,"date"),t._uU(2),t.ALo(3,"dateAgo"),t.qZA()),2&a){const e=t.oxw(2).$implicit,i=t.oxw().$implicit;t.s9C("matTooltip",t.xi3(1,2,e[i],"d MMMM y, hh:mm:ss a z")),t.xp6(2),t.Oqu(t.lcZ(3,5,e[i]))}}function y(a,n){if(1&a&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"date"),t.qZA()),2&a){const e=t.oxw(2).$implicit,i=t.oxw().$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,e[i],"d/M/yy, HH:mm:ss"))}}function J(a,n){if(1&a&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&a){const e=t.oxw(2).$implicit,i=t.oxw().$implicit;t.xp6(1),t.hij("",e[i]||0," Anime")}}function k(a,n){if(1&a&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&a){const e=t.oxw(2).$implicit,i=t.oxw().$implicit;t.xp6(1),t.hij("",e[i]||0," Dorama")}}function B(a,n){if(1&a&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&a){const e=t.oxw(2).$implicit,i=t.oxw().$implicit;t.xp6(1),t.hij("",e[i],"x Dilihat")}}function Z(a,n){if(1&a&&(t.TgZ(0,"span",31),t._uU(1),t.qZA()),2&a){const e=t.oxw(2).$implicit,i=t.oxw().$implicit;t.Udp("overflow-wrap","NAMA BERKAS"===i.toUpperCase()||"JUDUL ANIME"===i.toUpperCase()||"JUDUL DORAMA"===i.toUpperCase()||"NAMA FANSUB"===i.toUpperCase()||"TOPIK"===i.toUpperCase()||"JUDUL SURAT KABAR"===i.toUpperCase()||"JUDUL"===i.toUpperCase()||"ALASAN"===i.toUpperCase()||"NAMA LAMPIRAN"===i.toUpperCase()||"NAMA API"===i.toUpperCase()||"IP DOMAIN"===i.toUpperCase()||"PENERIMA"===i.toUpperCase()||"KETERANGAN"===i.toUpperCase()||"DESKRIPSI"===i.toUpperCase()||"KONTEN"===i.toUpperCase()||"NAMA LENGKAP"===i.toUpperCase()||"EMAIL"===i.toUpperCase()?"anywhere":""),t.Q6J("matTooltip","NAMA BERKAS"===i.toUpperCase()||"PENGIRIM"===i.toUpperCase()||"PENERIMA"===i.toUpperCase()||"NAMA LENGKAP"===i.toUpperCase()||"TOPIK"===i.toUpperCase()||"JUDUL SURAT KABAR"===i.toUpperCase()||"JUDUL"===i.toUpperCase()||"ALASAN"===i.toUpperCase()||"NAMA LAMPIRAN"===i.toUpperCase()||"NAMA API"===i.toUpperCase()||"IP DOMAIN"===i.toUpperCase()||"EMAIL"===i.toUpperCase()||"KETERANGAN"===i.toUpperCase()||"DESKRIPSI"===i.toUpperCase()||"KONTEN"===i.toUpperCase()||"PEMILIK"===i.toUpperCase()||"PENULIS"===i.toUpperCase()?e[i]:""),t.xp6(1),t.hij(" ",e[i]," ")}}function G(a,n){if(1&a&&(t.TgZ(0,"div")(1,"h3"),t.YNc(2,b,1,1,"img",21),t.YNc(3,I,1,1,"img",21),t.YNc(4,D,1,1,"img",21),t.YNc(5,N,1,1,"img",21),t.YNc(6,R,1,1,"img",21),t.YNc(7,L,1,1,"img",22),t.YNc(8,w,1,1,"img",23),t.YNc(9,S,1,1,"img",24),t.YNc(10,K,4,7,"span",25),t.YNc(11,y,3,4,"span",20),t.YNc(12,J,2,1,"span",20),t.YNc(13,k,2,1,"span",20),t.YNc(14,B,2,1,"span",20),t.YNc(15,Z,2,4,"span",26),t.qZA()()),2&a){const e=t.oxw(2).$implicit,i=t.oxw();t.Tol("ANGGOTA"===e.toUpperCase()||"PELAKU"===e.toUpperCase()||"KORBAN"===e.toUpperCase()||"FANSUB"===e.toUpperCase()||"TANGGAL"===e.toUpperCase()||"PEMILIK"===e.toUpperCase()||"PENULIS"===e.toUpperCase()?"fixed-single":""),t.xp6(1),t.Gre("m-0 ",!i.GS.isDesktop||"NAMA BERKAS"!==e.toUpperCase()&&"PENGIRIM"!==e.toUpperCase()&&"PENERIMA"!==e.toUpperCase()&&"NAMA LENGKAP"!==e.toUpperCase()&&"TOPIK"!==e.toUpperCase()&&"JUDUL SURAT KABAR"!==e.toUpperCase()&&"JUDUL"!==e.toUpperCase()&&"ALASAN"!==e.toUpperCase()&&"NAMA LAMPIRAN"!==e.toUpperCase()&&"NAMA API"!==e.toUpperCase()&&"IP DOMAIN"!==e.toUpperCase()&&"EMAIL"!==e.toUpperCase()&&"KETERANGAN"!==e.toUpperCase()&&"DESKRIPSI"!==e.toUpperCase()&&"KONTEN"!==e.toUpperCase()&&"PEMILIK"!==e.toUpperCase()&&"PENULIS"!==e.toUpperCase()?"":"text-truncate",""),t.Udp("color","PEMILIK"===e.toUpperCase()||"PENULIS"===e.toUpperCase()||"STATUS"===e.toUpperCase()||"KORBAN"===e.toUpperCase()||"FANSUB"===e.toUpperCase()?i.GS.isDarkMode?"#ffc107":"#0d6efd":"TANGGAL"===e.toUpperCase()||"PELAKU"===e.toUpperCase()||"JUDUL"===e.toUpperCase()||"ANGGOTA"===e.toUpperCase()?"#28a745":"JENIS"===e.toUpperCase()||"PROYEK"===e.toUpperCase()?"#7289da":i.GS.isDarkMode?"#acacac":"#000000"),t.xp6(1),t.Q6J("ngIf","PEMILIK"===e.toUpperCase()||"PENULIS"===e.toUpperCase()),t.xp6(1),t.Q6J("ngIf","KORBAN"===e.toUpperCase()),t.xp6(1),t.Q6J("ngIf","PELAKU"===e.toUpperCase()),t.xp6(1),t.Q6J("ngIf","FANSUB"===e.toUpperCase()),t.xp6(1),t.Q6J("ngIf","ANGGOTA"===e.toUpperCase()),t.xp6(1),t.Q6J("ngIf","LOGO"===e.toUpperCase()),t.xp6(1),t.Q6J("ngIf","IMAGE"===e.toUpperCase()),t.xp6(1),t.Q6J("ngIf","POSTER"===e.toUpperCase()),t.xp6(1),t.Q6J("ngIf","TANGGAL"===e.toUpperCase()),t.xp6(1),t.Q6J("ngIf","DEADLINE"===e.toUpperCase()),t.xp6(1),t.Q6J("ngIf","ANIME"===e.toUpperCase()),t.xp6(1),t.Q6J("ngIf","DORAMA"===e.toUpperCase()),t.xp6(1),t.Q6J("ngIf","KUNJUNGAN"===e.toUpperCase()),t.xp6(1),t.Q6J("ngIf","POSTER"!==e.toUpperCase()&&"LOGO"!==e.toUpperCase()&&"IMAGE"!==e.toUpperCase()&&"TANGGAL"!==e.toUpperCase()&&"DEADLINE"!==e.toUpperCase()&&"ANIME"!==e.toUpperCase()&&"DORAMA"!==e.toUpperCase()&&"KUNJUNGAN"!==e.toUpperCase())}}function Q(a,n){if(1&a){const e=t.EpF();t.TgZ(0,"div",32)(1,"app-material-chip",33),t.NdJ("chipClicked",function(s){t.CHM(e);const f=t.oxw(3);return t.KtG(f.onChipClicked(s))}),t.qZA()()}if(2&a){const e=t.oxw().$implicit,i=t.oxw().$implicit;t.xp6(1),t.Q6J("chipData",e[i])}}function W(a,n){if(1&a&&t._UZ(0,"mat-icon",38),2&a){const e=t.oxw().$implicit;t.Q6J("fontIcon",e.icon)}}function F(a,n){if(1&a&&t._UZ(0,"img",39),2&a){const e=t.oxw().$implicit;t.s9C("src",e.image,t.LSH)}}function Y(a,n){if(1&a){const e=t.EpF();t.TgZ(0,"button",35),t.NdJ("click",function(s){const O=t.CHM(e).$implicit,et=t.oxw(4);return s.stopPropagation(),t.KtG(et.onButtonClicked(O))}),t.YNc(1,W,1,1,"mat-icon",36),t.YNc(2,F,1,1,"img",37),t.qZA()}if(2&a){const e=n.$implicit;t.s9C("matTooltip",e.name),t.xp6(1),t.Q6J("ngIf",e.icon),t.xp6(1),t.Q6J("ngIf",e.image)}}function $(a,n){if(1&a&&(t.TgZ(0,"div"),t.YNc(1,Y,3,3,"button",34),t.qZA()),2&a){const e=t.oxw().$implicit,i=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",e[i])}}function H(a,n){if(1&a&&(t.TgZ(0,"td",17),t.YNc(1,G,16,22,"div",18),t.YNc(2,Q,2,1,"div",19),t.YNc(3,$,2,1,"div",20),t.qZA()),2&a){const e=n.$implicit,i=t.oxw().$implicit,s=t.oxw();t.Udp("background-color",e.pending||e.private||e.banned||e.deleted||e.internet_positif?s.GS.isDarkMode?"rgba(47, 79, 79, 0.25)":"rgba(47, 79, 79, 0.0625)":"")("max-width",!s.GS.isDesktop||"NAMA BERKAS"!==i.toUpperCase()&&"PENGIRIM"!==i.toUpperCase()&&"PENERIMA"!==i.toUpperCase()&&"NAMA LENGKAP"!==i.toUpperCase()&&"TOPIK"!==i.toUpperCase()&&"JUDUL SURAT KABAR"!==i.toUpperCase()&&"JUDUL"!==i.toUpperCase()&&"ALASAN"!==i.toUpperCase()&&"NAMA LAMPIRAN"!==i.toUpperCase()&&"NAMA API"!==i.toUpperCase()&&"IP DOMAIN"!==i.toUpperCase()&&"EMAIL"!==i.toUpperCase()&&"KETERANGAN"!==i.toUpperCase()&&"DESKRIPSI"!==i.toUpperCase()&&"KONTEN"!==i.toUpperCase()?"":"30vw"),t.xp6(1),t.Q6J("ngIf",!1===s.checkIsArray(e[i])),t.xp6(1),t.Q6J("ngIf",!0===s.checkIsArray(e[i])&&e[i].length>0&&"chip"===e[i][0].type),t.xp6(1),t.Q6J("ngIf",!0===s.checkIsArray(e[i])&&e[i].length>0&&"button"===e[i][0].type)}}function z(a,n){1&a&&(t.ynx(0,12),t.YNc(1,v,3,4,"th",13),t.YNc(2,H,4,7,"td",14),t.BQk()),2&a&&t.s9C("matColumnDef",n.$implicit)}function j(a,n){1&a&&t._UZ(0,"tr",40)}function X(a,n){if(1&a){const e=t.EpF();t.TgZ(0,"tr",41),t.NdJ("click",function(){const f=t.CHM(e).$implicit,O=t.oxw();return t.KtG(O.onRowClicked(f))}),t.qZA()}if(2&a){const e=n.$implicit,i=t.oxw();t.Tol(e.trusted?"trusted-border"+(i.GS.isDesktop?"":" rgb-border"):""),t.Q6J("matRippleDisabled",i.GS.isDesktop)}}function V(a,n){1&a&&t._UZ(0,"br")}function q(a,n){if(1&a&&(t.TgZ(0,"tr",42)(1,"td",43)(2,"div",44)(3,"div",45)(4,"h3",16),t._uU(5," Tidak Ada Data "),t.YNc(6,V,1,0,"br",20),t._uU(7," \xaf\\_(\u30c4)_/\xaf "),t.qZA(),t.TgZ(8,"h3",16),t._uU(9),t.qZA()()()()()),2&a){const e=t.oxw(),i=t.MAs(4);t.Q6J("matRippleDisabled",e.GS.isDesktop),t.xp6(1),t.uIk("colspan",e.tableDataColumn.length),t.xp6(5),t.Q6J("ngIf",!e.GS.isDesktop),t.xp6(3),t.Oqu(i.value?'"'+i.value+'"':"")}}let tt=(()=>{class a{constructor(e,i,s){this.activatedRoute=e,this.router=i,this.gs=s,this.count=0,this.serverSide=!1,this.serverSideFilter=new t.vpe,this.serverSideOrder=new t.vpe,this.tableDataRow=[],this.tableDataColumn=[],this.tablePageSizeOptions=[10,25,50,75,100],this.chipClicked=new t.vpe,this.buttonClicked=new t.vpe,this.rowClicked=new t.vpe,this.paginatorClicked=new t.vpe,this.urlPath=null,this.searchQuery="",this.subsQueryParam=null,this.timedOut=null}get GS(){return this.gs}checkIsArray(e){return Array.isArray(e)}ngOnInit(){this.dataSource=new p.r4(this.tableDataRow),this.gs.isBrowser&&(this.urlPath=this.router.url.split("?")[0],this.serverSide||(this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort))}ngOnChanges(){this.dataSource&&(this.dataSource.data=this.tableDataRow,this.serverSide||(this.paginator._changePageSize(this.tablePageSizeOptions[0]),this.paginator.firstPage()))}ngOnDestroy(){this.sort?.sortChange?.unsubscribe(),this.subsQueryParam?.unsubscribe(),this.timedOut&&(clearTimeout(this.timedOut),this.timedOut=null)}ngAfterViewInit(){this.sort.sortChange.subscribe({next:e=>{this.paginator.pageIndex=0,this.onServerSideOrder(e)}}),this.timedOut=setTimeout(()=>{this.searchQuery=this.activatedRoute.snapshot.queryParamMap.get("q")||"",this.search(),this.subsQueryParam=this.activatedRoute.queryParams.subscribe({next:e=>{this.searchQuery=e.q||"",this.search()}})},0)}search(){this.serverSide?this.onServerSideFilter(this.searchQuery):(this.dataSource.filter=this.searchQuery,this.dataSource.paginator&&this.dataSource.paginator.firstPage())}applyFilter(e){this.searchQuery=e.target.value.trim().toLowerCase(),this.router.navigate([this.urlPath],{queryParams:{...this.activatedRoute.snapshot.queryParams,q:this.searchQuery}})}onServerSideOrder(e){e.direction?"NAMA BERKAS"===e.active.toUpperCase()||"NAMA LAMPIRAN"===e.active.toUpperCase()||"NAMA API"===e.active.toUpperCase()?e.active="name":"TANGGAL"===e.active.toUpperCase()?e.active="created_at":"TOPIK"===e.active.toUpperCase()||"JUDUL"===e.active.toUpperCase()?e.active="title":"KONTEN"===e.active.toUpperCase()?e.active="content":"DEADLINE"===e.active.toUpperCase()?e.active="deadline":"ID"===e.active.toUpperCase()?e.active="id":"ALASAN"===e.active.toUpperCase()?e.active="reason":"IP DOMAIN"===e.active.toUpperCase()?e.active="ip_domain":"API KEY"===e.active.toUpperCase()?e.active="api_key":"USERNAME"===e.active.toUpperCase()?e.active="username":"EMAIL"===e.active.toUpperCase()?e.active="email":"ROLE"===e.active.toUpperCase()?e.active="role":"KETERANGAN"===e.active.toUpperCase()?e.active="keterangan":"EXT"===e.active.toUpperCase()?e.active="ext":"SIZE"===e.active.toUpperCase()?e.active="size":"MIME"===e.active.toUpperCase()?e.active="mime":(e.active="",e.direction=""):e.active="",this.serverSideOrder.emit({q:this.searchQuery,...e})}onServerSideFilter(e){this.serverSideFilter.emit(e),this.paginator.firstPage()}onPaginatorClicked(e){this.paginatorClicked.emit(e)}onRowClicked(e){this.rowClicked.emit(e)}onChipClicked(e){this.chipClicked.emit(e)}onButtonClicked(e){this.buttonClicked.emit(e)}static#t=this.\u0275fac=function(i){return new(i||a)(t.Y36(l.gz),t.Y36(l.F0),t.Y36(d.U))};static#e=this.\u0275cmp=t.Xpm({type:a,selectors:[["app-material-table"]],viewQuery:function(i,s){if(1&i&&(t.Gf(u.cl,7),t.Gf(g.YE,7)),2&i){let f;t.iGM(f=t.CRH())&&(s.paginator=f.first),t.iGM(f=t.CRH())&&(s.sort=f.first)}},inputs:{count:"count",serverSide:"serverSide",tableDataRow:"tableDataRow",tableDataColumn:"tableDataColumn",tablePageSizeOptions:"tablePageSizeOptions"},outputs:{serverSideFilter:"serverSideFilter",serverSideOrder:"serverSideOrder",chipClicked:"chipClicked",buttonClicked:"buttonClicked",rowClicked:"rowClicked",paginatorClicked:"paginatorClicked"},features:[t.TTD],decls:15,vars:10,consts:[["hintLabel","Anime / Fansub / Uploader / etc.",1,"px-3","mb-3",3,"color"],["matInput","","maxlength","200","placeholder","Ex. [Fansub] Judul - 00 [BD 4K x265 FLAC][CRC32]",3,"ngModel","keyup.enter","ngModelChange"],["input",""],["fontIcon","search","matSuffix",""],["align","end"],[1,"p-1",2,"overflow-x","auto"],["mat-table","","matSort","",1,"bg-transparent",3,"dataSource"],[3,"matColumnDef",4,"ngFor","ngForOf"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","matRipple","",3,"matRippleDisabled","class","click",4,"matRowDef","matRowDefColumns"],["class","mat-row","matRipple","",3,"matRippleDisabled",4,"matNoDataRow"],["showFirstLastButtons","",1,"bg-transparent",3,"color","pageSizeOptions","length","page"],[3,"matColumnDef"],["mat-header-cell","","class","px-3","mat-sort-header","",3,"disabled",4,"matHeaderCellDef"],["mat-cell","","class","px-3","style","cursor: pointer;",3,"background-color","max-width",4,"matCellDef"],["mat-header-cell","","mat-sort-header","",1,"px-3",3,"disabled"],[1,"m-0"],["mat-cell","",1,"px-3",2,"cursor","pointer"],[3,"class",4,"ngIf"],["class","p-1",4,"ngIf"],[4,"ngIf"],["matListAvatar","","style","width: 32px; height: 32px; object-fit: cover; border-radius: 0;","class","me-1",3,"src",4,"ngIf"],["matListAvatar","","style","width: 64px; height: 64px; object-fit: cover; border-radius: 0;",3,"src",4,"ngIf"],["matListAvatar","","style","width: 64px; height: 48px; object-fit: cover; border-radius: 0;",3,"src",4,"ngIf"],["matListAvatar","","style","width: 64px; height: 100%; object-fit: cover; border-radius: 0;",3,"src",4,"ngIf"],[3,"matTooltip",4,"ngIf"],[3,"overflow-wrap","matTooltip",4,"ngIf"],["matListAvatar","",1,"me-1",2,"width","32px","height","32px","object-fit","cover","border-radius","0",3,"src"],["matListAvatar","",2,"width","64px","height","64px","object-fit","cover","border-radius","0",3,"src"],["matListAvatar","",2,"width","64px","height","48px","object-fit","cover","border-radius","0",3,"src"],["matListAvatar","",2,"width","64px","height","100%","object-fit","cover","border-radius","0",3,"src"],[3,"matTooltip"],[1,"p-1"],[3,"chipData","chipClicked"],["type","button","mat-icon-button","","color","primary",3,"matTooltip","click",4,"ngFor","ngForOf"],["type","button","mat-icon-button","","color","primary",3,"matTooltip","click"],[3,"fontIcon",4,"ngIf"],["width","24px",3,"src",4,"ngIf"],[3,"fontIcon"],["width","24px",3,"src"],["mat-header-row",""],["mat-row","","matRipple","",3,"matRippleDisabled","click"],["matRipple","",1,"mat-row",3,"matRippleDisabled"],[1,"mat-cell","text-center","align-items-center","p-3",2,"background-image","url('/assets/img/404/no-data.png')","background-size","contain","background-position","center","background-repeat","no-repeat","height","256px"],[1,"row","align-items-center","h-100"],[1,"col-8","mx-auto","text-light","text-center","rounded","py-3",2,"background-color","rgba(128, 128, 128, 0.875)"]],template:function(i,s){if(1&i&&(t.TgZ(0,"mat-form-field",0)(1,"mat-label"),t._uU(2,"Filter Dan Pencarian"),t.qZA(),t.TgZ(3,"input",1,2),t.NdJ("keyup.enter",function(O){return s.applyFilter(O)})("ngModelChange",function(O){return s.searchQuery=O}),t.qZA(),t._UZ(5,"mat-icon",3),t.TgZ(6,"mat-hint",4),t._uU(7),t.qZA()(),t.TgZ(8,"div",5)(9,"table",6),t.YNc(10,z,3,1,"ng-container",7),t.YNc(11,j,1,0,"tr",8),t.YNc(12,X,1,4,"tr",9),t.YNc(13,q,10,4,"tr",10),t.qZA()(),t.TgZ(14,"mat-paginator",11),t.NdJ("page",function(O){return s.onPaginatorClicked(O)}),t.qZA()),2&i){const f=t.MAs(4);t.Q6J("color","accent"),t.xp6(3),t.Q6J("ngModel",s.searchQuery),t.xp6(4),t.hij("",(null==f.value?null:f.value.length)||0," / 200 Huruf"),t.xp6(2),t.Q6J("dataSource",s.dataSource),t.xp6(1),t.Q6J("ngForOf",s.tableDataColumn),t.xp6(1),t.Q6J("matHeaderRowDef",s.tableDataColumn),t.xp6(1),t.Q6J("matRowDefColumns",s.tableDataColumn),t.xp6(2),t.Q6J("color","accent")("pageSizeOptions",s.tablePageSizeOptions)("length",s.count)}},dependencies:[U.sg,U.O5,c.eB,A.Hw,_.v_,_.pH,_.$V,_.nX,M.k0,m.Wx,u.cl,P.wG,p.ty,p.wO,p.S4,p.t3,p.R3,p.Al,p.L7,p.ML,p.fg,p.Zw,p.ZB,r.Kd,g.YE,g.nU,E.G,C.Fj,C.JJ,C.nD,C.On,U.uU,x.R],styles:["table[_ngcontent-%COMP%]{width:100%}td.mat-column-star[_ngcontent-%COMP%]{width:20px;padding-right:8px!important}.mat-table[_ngcontent-%COMP%]{border-bottom:1px solid rgba(0,0,0,.12)}.mat-table[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]{border:0}.mat-row[_ngcontent-%COMP%]:hover{background-color:#ffffffdf}.mat-row[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#7289da;text-decoration:none}.mat-row[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}.mat-form-field[_ngcontent-%COMP%]{font-size:14px;width:100%}.mat-icon[_ngcontent-%COMP%]{color:#7289da}@media only screen and (min-width: 993px){.fixed-single[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:128px}}@media only screen and (max-width: 992px){.mat-elevation-z8[_ngcontent-%COMP%]{background:transparent;box-shadow:none}.mat-header-row[_ngcontent-%COMP%]{display:none}tbody[_ngcontent-%COMP%]{display:block;width:100%}.mat-table[_ngcontent-%COMP%]{background:transparent}.mat-table[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{box-sizing:border-box}.mat-table[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%]{display:block;overflow:hidden;height:auto;position:relative;clear:both;background-color:#ffffffdf;border-radius:3px}.mat-table[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%] + .mat-row[_ngcontent-%COMP%]{margin-top:24px}.mat-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]{display:block;width:100%;padding:8px 16px;margin:0;border:0 none}.mat-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]:first-child a[_ngcontent-%COMP%], .mat-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]:last-child a[_ngcontent-%COMP%]{font-size:20px;color:inherit}.mat-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]:first-child:before, .mat-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]:last-child:before{display:none}.mat-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]:first-child{padding:16px 48px 8px 16px}.mat-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]:last-child{padding:8px 48px 16px 16px}.mat-table[_ngcontent-%COMP%] .mat-cell.m-card-sub-title[_ngcontent-%COMP%]{margin-top:-8px;padding:0 48px 0 16px;color:#00000080}.mat-table[_ngcontent-%COMP%] .has_label_on_mobile[_ngcontent-%COMP%]:before{content:attr(data-label);display:inline;font-weight:400}.mat-table[_ngcontent-%COMP%] .mat-column-star[_ngcontent-%COMP%]{width:auto;padding:8px 0 0!important;margin:0;position:absolute;top:0;right:0}.mat-table[_ngcontent-%COMP%] .mat-column-star[_ngcontent-%COMP%]:before{display:none}.mat-paginator[_ngcontent-%COMP%]{margin-top:24px}}.mat-ripple[_ngcontent-%COMP%]:not(:empty){transform:none}"]})}return a})()},7299:(T,h,o)=>{o.d(h,{H:()=>U});var t=o(6895),u=o(4006),g=o(2314),p=o(6533),l=o(3811),d=o(4650);let U=(()=>{class c{static#t=this.\u0275fac=function(M){return new(M||c)};static#e=this.\u0275mod=d.oAB({type:c});static#i=this.\u0275inj=d.cJS({imports:[t.ez,g.m,p.P,u.u5,l.T]})}return c})()},4758:(T,h,o)=>{o.d(h,{t:()=>M});var t=o(4650),u=o(1390),g=o(9816),p=o(8598),l=o(6895),d=o(5882);function U(m,P){if(1&m&&t._UZ(0,"div",4),2&m){const r=t.oxw();t.Udp("background-size",r.GS.sizeContain?"contain":"cover")("background-image","url("+r.GS.bannerImg+")")("background-repeat",r.GS.bgRepeat?"repeat-x":"no-repeat")("height",r.ROUTER.url.startsWith("/news")||r.ROUTER.url.startsWith("/berkas")||r.ROUTER.url.startsWith("/fansub")?"192px":"128px")("background-position-y",r.ROUTER.url.startsWith("/berkas")?"22.5%":"")}}function c(m,P){if(1&m&&(t.TgZ(0,"strong",10),t._uU(1," -- "),t.TgZ(2,"i")(3,"a",11),t._uU(4),t.qZA()()()),2&m){const r=t.oxw().$implicit;t.xp6(3),t.MGl("routerLink","/user/",r.notifCreator,""),t.xp6(1),t.hij(" ",r.notifCreator," ")}}function A(m,P){if(1&m){const r=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){t.CHM(r);const C=t.oxw().$implicit,x=t.oxw();return t.KtG(x.removeNotif(C.notifData.id))}),t.qZA()}}function _(m,P){if(1&m&&(t.TgZ(0,"div",5)(1,"div")(2,"strong",6),t._uU(3),t.qZA(),t._UZ(4,"span",7),t.ALo(5,"safeInnerHtml"),t.YNc(6,c,5,2,"strong",8),t.YNc(7,A,1,0,"button",9),t.qZA()()),2&m){const r=P.$implicit;t.xp6(1),t.Gre("alert alert-",r.notifData.type," alert-dismissible fade show"),t.xp6(2),t.Oqu(r.notifData.title),t.xp6(1),t.Q6J("innerHTML",t.lcZ(5,7,r.notifData.content),t.oJD),t.xp6(2),t.Q6J("ngIf",r.notifCreator),t.xp6(1),t.Q6J("ngIf",r.notifData.dismissible)}}let M=(()=>{class m{constructor(r,E,C){this.router=r,this.gs=E,this.notif=C}ngOnInit(){}get GS(){return this.gs}get ROUTER(){return this.router}get NOTIF(){return this.notif}removeNotif(r){this.notif.removeNotif(r)}static#t=this.\u0275fac=function(E){return new(E||m)(t.Y36(u.F0),t.Y36(g.U),t.Y36(p.T))};static#e=this.\u0275cmp=t.Xpm({type:m,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(E,C){1&E&&(t.YNc(0,U,1,10,"div",0),t.TgZ(1,"div",1)(2,"div",2),t.YNc(3,_,8,9,"div",3),t.qZA()()),2&E&&(t.Q6J("ngIf",C.GS.bannerImg&&(C.ROUTER.url.startsWith("/news")||C.ROUTER.url.startsWith("/berkas")||C.ROUTER.url.startsWith("/fansub")||C.ROUTER.url.startsWith("/anime")||C.ROUTER.url.startsWith("/dorama"))),t.xp6(3),t.Q6J("ngForOf",C.NOTIF.notifications))},dependencies:[l.sg,l.O5,u.rH,d.H],styles:[".notif-banner[_ngcontent-%COMP%]{width:100%;background-size:cover;background-position:75% 50%}"]})}return m})()},6319:(T,h,o)=>{o.d(h,{F:()=>l});var t=o(6895),u=o(1390),g=o(3811),p=o(4650);let l=(()=>{class d{static#t=this.\u0275fac=function(A){return new(A||d)};static#e=this.\u0275mod=p.oAB({type:d});static#i=this.\u0275inj=p.cJS({imports:[t.ez,u.Bz,g.T]})}return d})()},1105:(T,h,o)=>{o.d(h,{R:()=>u});var t=o(4650);let u=(()=>{class g{transform(l,d){if(l){const U=Math.floor((+new Date-+new Date(l))/1e3),c={tahun:31536e3,bulan:2592e3,minggu:604800,hari:86400,jam:3600,menit:60,detik:1};let A;for(const _ of Object.keys(c))if(A=Math.floor(U/c[_]),A>0)return A+" "+_+" lalu"}return l}static#t=this.\u0275fac=function(d){return new(d||g)};static#e=this.\u0275pipe=t.Yjl({name:"dateAgo",type:g,pure:!0})}return g})()}}]); \ No newline at end of file diff --git a/dist/main-site/browser/25.c632a639d7dfd2ca.js b/dist/main-site/browser/25.c632a639d7dfd2ca.js new file mode 100644 index 00000000..db0c86c6 --- /dev/null +++ b/dist/main-site/browser/25.c632a639d7dfd2ca.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain_site=self.webpackChunkmain_site||[]).push([[25],{291:(T,f,o)=>{o.d(f,{G:()=>A});var t=o(4650),u=o(9816),g=o(6895),p=o(9923);const l=function(c){return{"background-color":c}};function C(c,h){if(1&c){const _=t.EpF();t.TgZ(0,"mat-chip",1),t.NdJ("click",function(m){const r=t.CHM(_).$implicit,E=t.oxw();return m.stopPropagation(),t.KtG(E.onChipClicked(r))}),t._uU(1),t.qZA()}if(2&c){const _=h.$implicit;t.Q6J("ngStyle",t.VKq(3,l,_.color))("selected",_.selected),t.xp6(1),t.hij(" ",_.name," ")}}let A=(()=>{class c{constructor(_){this.gs=_,this.chipData=[],this.chipClicked=new t.vpe}ngOnInit(){}onChipClicked(_){this.chipClicked.emit(_)}static#t=this.\u0275fac=function(M){return new(M||c)(t.Y36(u.U))};static#e=this.\u0275cmp=t.Xpm({type:c,selectors:[["app-material-chip"]],inputs:{chipData:"chipData"},outputs:{chipClicked:"chipClicked"},decls:2,vars:1,consts:[[3,"ngStyle","selected","click",4,"ngFor","ngForOf"],[3,"ngStyle","selected","click"]],template:function(M,m){1&M&&(t.TgZ(0,"mat-chip-list"),t.YNc(1,C,2,5,"mat-chip",0),t.qZA()),2&M&&(t.xp6(1),t.Q6J("ngForOf",m.chipData))},dependencies:[g.sg,g.PC,p.ir,p.lw]})}return c})()},6533:(T,f,o)=>{o.d(f,{P:()=>p});var t=o(6895),u=o(2314),g=o(4650);let p=(()=>{class l{static#t=this.\u0275fac=function(c){return new(c||l)};static#e=this.\u0275mod=g.oAB({type:l});static#a=this.\u0275inj=g.cJS({imports:[t.ez,u.m]})}return l})()},9558:(T,f,o)=>{o.d(f,{I:()=>tt});var t=o(4650),u=o(1597),g=o(6308),p=o(5558),l=o(1390),C=o(9816),A=o(6895),c=o(9818),h=o(7392),_=o(8455),M=o(9203),m=o(9982),P=o(3238),r=o(7462),E=o(291),d=o(4006),x=o(1105);function v(i,n){if(1&i&&(t.TgZ(0,"th",15)(1,"h3",16),t._uU(2),t.qZA()()),2&i){const e=t.oxw().$implicit;t.Q6J("disabled","NAMA BERKAS"!==e.toUpperCase()&&"NAMA LAMPIRAN"!==e.toUpperCase()&&"TANGGAL"!==e.toUpperCase()&&"NAMA FANSUB"!==e.toUpperCase()&&"JUDUL DORAMA"!==e.toUpperCase()&&"TOPIK"!==e.toUpperCase()&&"JUDUL ANIME"!==e.toUpperCase()&&"ANIME"!==e.toUpperCase()&&"DORAMA"!==e.toUpperCase()&&"EXT"!==e.toUpperCase()&&"JENIS"!==e.toUpperCase()&&"DEADLINE"!==e.toUpperCase()&&"JUDUL"!==e.toUpperCase()&&"KONTEN"!==e.toUpperCase()&&"SIZE"!==e.toUpperCase()&&"ID"!==e.toUpperCase()&&"ALASAN"!==e.toUpperCase()&&"NAMA API"!==e.toUpperCase()&&"IP DOMAIN"!==e.toUpperCase()&&"MIME"!==e.toUpperCase()&&"API KEY"!==e.toUpperCase()&&"USERNAME"!==e.toUpperCase()&&"EMAIL"!==e.toUpperCase()&&"ROLE"!==e.toUpperCase()&&"KETERANGAN"!==e.toUpperCase()),t.xp6(1),t.Udp("color","#ff4081"),t.xp6(1),t.Oqu(e.toUpperCase())}}function D(i,n){if(1&i&&t._UZ(0,"img",27),2&i){const e=t.oxw(2).$implicit;t.Q6J("src",e.foto,t.LSH)}}function I(i,n){if(1&i&&t._UZ(0,"img",27),2&i){const e=t.oxw(2).$implicit;t.Q6J("src",e.foto_korban,t.LSH)}}function b(i,n){if(1&i&&t._UZ(0,"img",27),2&i){const e=t.oxw(2).$implicit;t.Q6J("src",e.foto_pelaku,t.LSH)}}function N(i,n){if(1&i&&t._UZ(0,"img",27),2&i){const e=t.oxw(2).$implicit;t.Q6J("src",e.foto_fansub,t.LSH)}}function R(i,n){if(1&i&&t._UZ(0,"img",27),2&i){const e=t.oxw(2).$implicit;t.Q6J("src",e.foto_anggota,t.LSH)}}function L(i,n){if(1&i&&t._UZ(0,"img",28),2&i){const e=t.oxw(2).$implicit,a=t.oxw().$implicit;t.Q6J("src",e[a],t.LSH)}}function w(i,n){if(1&i&&t._UZ(0,"img",29),2&i){const e=t.oxw(2).$implicit,a=t.oxw().$implicit;t.Q6J("src",e[a],t.LSH)}}function S(i,n){if(1&i&&t._UZ(0,"img",30),2&i){const e=t.oxw(2).$implicit,a=t.oxw().$implicit;t.Q6J("src",e[a],t.LSH)}}function K(i,n){if(1&i&&(t.TgZ(0,"span",31),t.ALo(1,"date"),t._uU(2),t.ALo(3,"dateAgo"),t.qZA()),2&i){const e=t.oxw(2).$implicit,a=t.oxw().$implicit;t.s9C("matTooltip",t.xi3(1,2,e[a],"d MMMM y, hh:mm:ss a z")),t.xp6(2),t.Oqu(t.lcZ(3,5,e[a]))}}function y(i,n){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"date"),t.qZA()),2&i){const e=t.oxw(2).$implicit,a=t.oxw().$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,e[a],"d/M/yy, HH:mm:ss"))}}function J(i,n){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&i){const e=t.oxw(2).$implicit,a=t.oxw().$implicit;t.xp6(1),t.hij("",e[a]||0," Anime")}}function k(i,n){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&i){const e=t.oxw(2).$implicit,a=t.oxw().$implicit;t.xp6(1),t.hij("",e[a]||0," Dorama")}}function B(i,n){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&i){const e=t.oxw(2).$implicit,a=t.oxw().$implicit;t.xp6(1),t.hij("",e[a],"x Dilihat")}}function Z(i,n){if(1&i&&(t.TgZ(0,"span",31),t._uU(1),t.qZA()),2&i){const e=t.oxw(2).$implicit,a=t.oxw().$implicit;t.Udp("overflow-wrap","NAMA BERKAS"===a.toUpperCase()||"JUDUL ANIME"===a.toUpperCase()||"JUDUL DORAMA"===a.toUpperCase()||"NAMA FANSUB"===a.toUpperCase()||"TOPIK"===a.toUpperCase()||"JUDUL SURAT KABAR"===a.toUpperCase()||"JUDUL"===a.toUpperCase()||"ALASAN"===a.toUpperCase()||"NAMA LAMPIRAN"===a.toUpperCase()||"NAMA API"===a.toUpperCase()||"IP DOMAIN"===a.toUpperCase()||"PENERIMA"===a.toUpperCase()||"KETERANGAN"===a.toUpperCase()||"DESKRIPSI"===a.toUpperCase()||"KONTEN"===a.toUpperCase()||"NAMA LENGKAP"===a.toUpperCase()||"EMAIL"===a.toUpperCase()?"anywhere":""),t.Q6J("matTooltip","NAMA BERKAS"===a.toUpperCase()||"PENGIRIM"===a.toUpperCase()||"PENERIMA"===a.toUpperCase()||"NAMA LENGKAP"===a.toUpperCase()||"TOPIK"===a.toUpperCase()||"JUDUL SURAT KABAR"===a.toUpperCase()||"JUDUL"===a.toUpperCase()||"ALASAN"===a.toUpperCase()||"NAMA LAMPIRAN"===a.toUpperCase()||"NAMA API"===a.toUpperCase()||"IP DOMAIN"===a.toUpperCase()||"EMAIL"===a.toUpperCase()||"KETERANGAN"===a.toUpperCase()||"DESKRIPSI"===a.toUpperCase()||"KONTEN"===a.toUpperCase()||"PEMILIK"===a.toUpperCase()||"PENULIS"===a.toUpperCase()||"JUDUL ANIME"===a.toUpperCase()||"JUDUL DORAMA"===a.toUpperCase()?e[a]:""),t.xp6(1),t.hij(" ",e[a]," ")}}function G(i,n){if(1&i&&(t.TgZ(0,"div")(1,"h3"),t.YNc(2,D,1,1,"img",21),t.YNc(3,I,1,1,"img",21),t.YNc(4,b,1,1,"img",21),t.YNc(5,N,1,1,"img",21),t.YNc(6,R,1,1,"img",21),t.YNc(7,L,1,1,"img",22),t.YNc(8,w,1,1,"img",23),t.YNc(9,S,1,1,"img",24),t.YNc(10,K,4,7,"span",25),t.YNc(11,y,3,4,"span",20),t.YNc(12,J,2,1,"span",20),t.YNc(13,k,2,1,"span",20),t.YNc(14,B,2,1,"span",20),t.YNc(15,Z,2,4,"span",26),t.qZA()()),2&i){const e=t.oxw(2).$implicit,a=t.oxw();t.Tol("ANGGOTA"===e.toUpperCase()||"PELAKU"===e.toUpperCase()||"KORBAN"===e.toUpperCase()||"FANSUB"===e.toUpperCase()||"TANGGAL"===e.toUpperCase()||"PEMILIK"===e.toUpperCase()||"PENULIS"===e.toUpperCase()?"fixed-single":""),t.xp6(1),t.Gre("m-0 ",!a.GS.isDesktop||"NAMA BERKAS"!==e.toUpperCase()&&"PENGIRIM"!==e.toUpperCase()&&"PENERIMA"!==e.toUpperCase()&&"NAMA LENGKAP"!==e.toUpperCase()&&"TOPIK"!==e.toUpperCase()&&"JUDUL SURAT KABAR"!==e.toUpperCase()&&"JUDUL"!==e.toUpperCase()&&"ALASAN"!==e.toUpperCase()&&"NAMA LAMPIRAN"!==e.toUpperCase()&&"NAMA API"!==e.toUpperCase()&&"IP DOMAIN"!==e.toUpperCase()&&"EMAIL"!==e.toUpperCase()&&"KETERANGAN"!==e.toUpperCase()&&"DESKRIPSI"!==e.toUpperCase()&&"KONTEN"!==e.toUpperCase()&&"PEMILIK"!==e.toUpperCase()&&"PENULIS"!==e.toUpperCase()&&"JUDUL ANIME"!==e.toUpperCase()&&"JUDUL DORAMA"!==e.toUpperCase()?"":"text-truncate",""),t.Udp("color","PEMILIK"===e.toUpperCase()||"PENULIS"===e.toUpperCase()||"STATUS"===e.toUpperCase()||"KORBAN"===e.toUpperCase()||"FANSUB"===e.toUpperCase()?a.GS.isDarkMode?"#ffc107":"#0d6efd":"TANGGAL"===e.toUpperCase()||"PELAKU"===e.toUpperCase()||"JUDUL"===e.toUpperCase()||"ANGGOTA"===e.toUpperCase()?"#28a745":"JENIS"===e.toUpperCase()||"PROYEK"===e.toUpperCase()?"#7289da":a.GS.isDarkMode?"#acacac":"#000000"),t.xp6(1),t.Q6J("ngIf","PEMILIK"===e.toUpperCase()||"PENULIS"===e.toUpperCase()),t.xp6(1),t.Q6J("ngIf","KORBAN"===e.toUpperCase()),t.xp6(1),t.Q6J("ngIf","PELAKU"===e.toUpperCase()),t.xp6(1),t.Q6J("ngIf","FANSUB"===e.toUpperCase()),t.xp6(1),t.Q6J("ngIf","ANGGOTA"===e.toUpperCase()),t.xp6(1),t.Q6J("ngIf","LOGO"===e.toUpperCase()),t.xp6(1),t.Q6J("ngIf","IMAGE"===e.toUpperCase()),t.xp6(1),t.Q6J("ngIf","POSTER"===e.toUpperCase()),t.xp6(1),t.Q6J("ngIf","TANGGAL"===e.toUpperCase()),t.xp6(1),t.Q6J("ngIf","DEADLINE"===e.toUpperCase()),t.xp6(1),t.Q6J("ngIf","ANIME"===e.toUpperCase()),t.xp6(1),t.Q6J("ngIf","DORAMA"===e.toUpperCase()),t.xp6(1),t.Q6J("ngIf","KUNJUNGAN"===e.toUpperCase()),t.xp6(1),t.Q6J("ngIf","POSTER"!==e.toUpperCase()&&"LOGO"!==e.toUpperCase()&&"IMAGE"!==e.toUpperCase()&&"TANGGAL"!==e.toUpperCase()&&"DEADLINE"!==e.toUpperCase()&&"ANIME"!==e.toUpperCase()&&"DORAMA"!==e.toUpperCase()&&"KUNJUNGAN"!==e.toUpperCase())}}function Q(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",32)(1,"app-material-chip",33),t.NdJ("chipClicked",function(s){t.CHM(e);const U=t.oxw(3);return t.KtG(U.onChipClicked(s))}),t.qZA()()}if(2&i){const e=t.oxw().$implicit,a=t.oxw().$implicit;t.xp6(1),t.Q6J("chipData",e[a])}}function W(i,n){if(1&i&&t._UZ(0,"mat-icon",38),2&i){const e=t.oxw().$implicit;t.Q6J("fontIcon",e.icon)}}function F(i,n){if(1&i&&t._UZ(0,"img",39),2&i){const e=t.oxw().$implicit;t.s9C("src",e.image,t.LSH)}}function Y(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",35),t.NdJ("click",function(s){const O=t.CHM(e).$implicit,et=t.oxw(4);return s.stopPropagation(),t.KtG(et.onButtonClicked(O))}),t.YNc(1,W,1,1,"mat-icon",36),t.YNc(2,F,1,1,"img",37),t.qZA()}if(2&i){const e=n.$implicit;t.s9C("matTooltip",e.name),t.xp6(1),t.Q6J("ngIf",e.icon),t.xp6(1),t.Q6J("ngIf",e.image)}}function $(i,n){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,Y,3,3,"button",34),t.qZA()),2&i){const e=t.oxw().$implicit,a=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",e[a])}}function H(i,n){if(1&i&&(t.TgZ(0,"td",17),t.YNc(1,G,16,22,"div",18),t.YNc(2,Q,2,1,"div",19),t.YNc(3,$,2,1,"div",20),t.qZA()),2&i){const e=n.$implicit,a=t.oxw().$implicit,s=t.oxw();t.Udp("background-color",e.pending||e.private||e.banned||e.deleted||e.internet_positif?s.GS.isDarkMode?"rgba(47, 79, 79, 0.25)":"rgba(47, 79, 79, 0.0625)":"")("max-width",!s.GS.isDesktop||"NAMA BERKAS"!==a.toUpperCase()&&"PENGIRIM"!==a.toUpperCase()&&"PENERIMA"!==a.toUpperCase()&&"NAMA LENGKAP"!==a.toUpperCase()&&"TOPIK"!==a.toUpperCase()&&"JUDUL SURAT KABAR"!==a.toUpperCase()&&"JUDUL"!==a.toUpperCase()&&"ALASAN"!==a.toUpperCase()&&"NAMA LAMPIRAN"!==a.toUpperCase()&&"NAMA API"!==a.toUpperCase()&&"IP DOMAIN"!==a.toUpperCase()&&"EMAIL"!==a.toUpperCase()&&"KETERANGAN"!==a.toUpperCase()&&"DESKRIPSI"!==a.toUpperCase()&&"KONTEN"!==a.toUpperCase()&&"JUDUL ANIME"!==a.toUpperCase()&&"JUDUL DORAMA"!==a.toUpperCase()?"":"30vw"),t.xp6(1),t.Q6J("ngIf",!1===s.checkIsArray(e[a])),t.xp6(1),t.Q6J("ngIf",!0===s.checkIsArray(e[a])&&e[a].length>0&&"chip"===e[a][0].type),t.xp6(1),t.Q6J("ngIf",!0===s.checkIsArray(e[a])&&e[a].length>0&&"button"===e[a][0].type)}}function z(i,n){1&i&&(t.ynx(0,12),t.YNc(1,v,3,4,"th",13),t.YNc(2,H,4,7,"td",14),t.BQk()),2&i&&t.s9C("matColumnDef",n.$implicit)}function j(i,n){1&i&&t._UZ(0,"tr",40)}function X(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"tr",41),t.NdJ("click",function(){const U=t.CHM(e).$implicit,O=t.oxw();return t.KtG(O.onRowClicked(U))}),t.qZA()}if(2&i){const e=n.$implicit,a=t.oxw();t.Tol(e.trusted?"trusted-border"+(a.GS.isDesktop?"":" rgb-border"):""),t.Q6J("matRippleDisabled",a.GS.isDesktop)}}function V(i,n){1&i&&t._UZ(0,"br")}function q(i,n){if(1&i&&(t.TgZ(0,"tr",42)(1,"td",43)(2,"div",44)(3,"div",45)(4,"h3",16),t._uU(5," Tidak Ada Data "),t.YNc(6,V,1,0,"br",20),t._uU(7," \xaf\\_(\u30c4)_/\xaf "),t.qZA(),t.TgZ(8,"h3",16),t._uU(9),t.qZA()()()()()),2&i){const e=t.oxw(),a=t.MAs(4);t.Q6J("matRippleDisabled",e.GS.isDesktop),t.xp6(1),t.uIk("colspan",e.tableDataColumn.length),t.xp6(5),t.Q6J("ngIf",!e.GS.isDesktop),t.xp6(3),t.Oqu(a.value?'"'+a.value+'"':"")}}let tt=(()=>{class i{constructor(e,a,s){this.activatedRoute=e,this.router=a,this.gs=s,this.count=0,this.serverSide=!1,this.serverSideFilter=new t.vpe,this.serverSideOrder=new t.vpe,this.tableDataRow=[],this.tableDataColumn=[],this.tablePageSizeOptions=[10,25,50,75,100],this.chipClicked=new t.vpe,this.buttonClicked=new t.vpe,this.rowClicked=new t.vpe,this.paginatorClicked=new t.vpe,this.urlPath=null,this.searchQuery="",this.subsQueryParam=null,this.timedOut=null}get GS(){return this.gs}checkIsArray(e){return Array.isArray(e)}ngOnInit(){this.dataSource=new p.r4(this.tableDataRow),this.gs.isBrowser&&(this.urlPath=this.router.url.split("?")[0],this.serverSide||(this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort))}ngOnChanges(){this.dataSource&&(this.dataSource.data=this.tableDataRow,this.serverSide||(this.paginator._changePageSize(this.tablePageSizeOptions[0]),this.paginator.firstPage()))}ngOnDestroy(){this.sort?.sortChange?.unsubscribe(),this.subsQueryParam?.unsubscribe(),this.timedOut&&(clearTimeout(this.timedOut),this.timedOut=null)}ngAfterViewInit(){this.sort.sortChange.subscribe({next:e=>{this.paginator.pageIndex=0,this.onServerSideOrder(e)}}),this.timedOut=setTimeout(()=>{this.searchQuery=this.activatedRoute.snapshot.queryParamMap.get("q")||"",this.search(),this.subsQueryParam=this.activatedRoute.queryParams.subscribe({next:e=>{this.searchQuery=e.q||"",this.search()}})},0)}search(){this.serverSide?this.onServerSideFilter(this.searchQuery):(this.dataSource.filter=this.searchQuery,this.dataSource.paginator&&this.dataSource.paginator.firstPage())}applyFilter(e){this.searchQuery=e.target.value.trim().toLowerCase(),this.router.navigate([this.urlPath],{queryParams:{...this.activatedRoute.snapshot.queryParams,q:this.searchQuery}})}onServerSideOrder(e){e.direction?"NAMA BERKAS"===e.active.toUpperCase()||"NAMA LAMPIRAN"===e.active.toUpperCase()||"NAMA API"===e.active.toUpperCase()?e.active="name":"TANGGAL"===e.active.toUpperCase()?e.active="created_at":"TOPIK"===e.active.toUpperCase()||"JUDUL"===e.active.toUpperCase()?e.active="title":"KONTEN"===e.active.toUpperCase()?e.active="content":"DEADLINE"===e.active.toUpperCase()?e.active="deadline":"ID"===e.active.toUpperCase()?e.active="id":"ALASAN"===e.active.toUpperCase()?e.active="reason":"IP DOMAIN"===e.active.toUpperCase()?e.active="ip_domain":"API KEY"===e.active.toUpperCase()?e.active="api_key":"USERNAME"===e.active.toUpperCase()?e.active="username":"EMAIL"===e.active.toUpperCase()?e.active="email":"ROLE"===e.active.toUpperCase()?e.active="role":"KETERANGAN"===e.active.toUpperCase()?e.active="keterangan":"EXT"===e.active.toUpperCase()?e.active="ext":"SIZE"===e.active.toUpperCase()?e.active="size":"MIME"===e.active.toUpperCase()?e.active="mime":(e.active="",e.direction=""):e.active="",this.serverSideOrder.emit({q:this.searchQuery,...e})}onServerSideFilter(e){this.serverSideFilter.emit(e),this.paginator.firstPage()}onPaginatorClicked(e){this.paginatorClicked.emit(e)}onRowClicked(e){this.rowClicked.emit(e)}onChipClicked(e){this.chipClicked.emit(e)}onButtonClicked(e){this.buttonClicked.emit(e)}static#t=this.\u0275fac=function(a){return new(a||i)(t.Y36(l.gz),t.Y36(l.F0),t.Y36(C.U))};static#e=this.\u0275cmp=t.Xpm({type:i,selectors:[["app-material-table"]],viewQuery:function(a,s){if(1&a&&(t.Gf(u.cl,7),t.Gf(g.YE,7)),2&a){let U;t.iGM(U=t.CRH())&&(s.paginator=U.first),t.iGM(U=t.CRH())&&(s.sort=U.first)}},inputs:{count:"count",serverSide:"serverSide",tableDataRow:"tableDataRow",tableDataColumn:"tableDataColumn",tablePageSizeOptions:"tablePageSizeOptions"},outputs:{serverSideFilter:"serverSideFilter",serverSideOrder:"serverSideOrder",chipClicked:"chipClicked",buttonClicked:"buttonClicked",rowClicked:"rowClicked",paginatorClicked:"paginatorClicked"},features:[t.TTD],decls:15,vars:10,consts:[["hintLabel","Anime / Fansub / Uploader / etc.",1,"px-3","mb-3",3,"color"],["matInput","","maxlength","200","placeholder","Ex. [Fansub] Judul - 00 [BD 4K x265 FLAC][CRC32]",3,"ngModel","keyup.enter","ngModelChange"],["input",""],["fontIcon","search","matSuffix",""],["align","end"],[1,"p-1",2,"overflow-x","auto"],["mat-table","","matSort","",1,"bg-transparent",3,"dataSource"],[3,"matColumnDef",4,"ngFor","ngForOf"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","matRipple","",3,"matRippleDisabled","class","click",4,"matRowDef","matRowDefColumns"],["class","mat-row","matRipple","",3,"matRippleDisabled",4,"matNoDataRow"],["showFirstLastButtons","",1,"bg-transparent",3,"color","pageSizeOptions","length","page"],[3,"matColumnDef"],["mat-header-cell","","class","px-3","mat-sort-header","",3,"disabled",4,"matHeaderCellDef"],["mat-cell","","class","px-3","style","cursor: pointer;",3,"background-color","max-width",4,"matCellDef"],["mat-header-cell","","mat-sort-header","",1,"px-3",3,"disabled"],[1,"m-0"],["mat-cell","",1,"px-3",2,"cursor","pointer"],[3,"class",4,"ngIf"],["class","p-1",4,"ngIf"],[4,"ngIf"],["matListAvatar","","style","width: 32px; height: 32px; object-fit: cover; border-radius: 0;","class","me-1",3,"src",4,"ngIf"],["matListAvatar","","style","width: 64px; height: 64px; object-fit: cover; border-radius: 0;",3,"src",4,"ngIf"],["matListAvatar","","style","width: 64px; height: 48px; object-fit: cover; border-radius: 0;",3,"src",4,"ngIf"],["matListAvatar","","style","width: 64px; height: 100%; object-fit: cover; border-radius: 0;",3,"src",4,"ngIf"],[3,"matTooltip",4,"ngIf"],[3,"overflow-wrap","matTooltip",4,"ngIf"],["matListAvatar","",1,"me-1",2,"width","32px","height","32px","object-fit","cover","border-radius","0",3,"src"],["matListAvatar","",2,"width","64px","height","64px","object-fit","cover","border-radius","0",3,"src"],["matListAvatar","",2,"width","64px","height","48px","object-fit","cover","border-radius","0",3,"src"],["matListAvatar","",2,"width","64px","height","100%","object-fit","cover","border-radius","0",3,"src"],[3,"matTooltip"],[1,"p-1"],[3,"chipData","chipClicked"],["type","button","mat-icon-button","","color","primary",3,"matTooltip","click",4,"ngFor","ngForOf"],["type","button","mat-icon-button","","color","primary",3,"matTooltip","click"],[3,"fontIcon",4,"ngIf"],["width","24px",3,"src",4,"ngIf"],[3,"fontIcon"],["width","24px",3,"src"],["mat-header-row",""],["mat-row","","matRipple","",3,"matRippleDisabled","click"],["matRipple","",1,"mat-row",3,"matRippleDisabled"],[1,"mat-cell","text-center","align-items-center","p-3",2,"background-image","url('/assets/img/404/no-data.png')","background-size","contain","background-position","center","background-repeat","no-repeat","height","256px"],[1,"row","align-items-center","h-100"],[1,"col-8","mx-auto","text-light","text-center","rounded","py-3",2,"background-color","rgba(128, 128, 128, 0.875)"]],template:function(a,s){if(1&a&&(t.TgZ(0,"mat-form-field",0)(1,"mat-label"),t._uU(2,"Filter Dan Pencarian"),t.qZA(),t.TgZ(3,"input",1,2),t.NdJ("keyup.enter",function(O){return s.applyFilter(O)})("ngModelChange",function(O){return s.searchQuery=O}),t.qZA(),t._UZ(5,"mat-icon",3),t.TgZ(6,"mat-hint",4),t._uU(7),t.qZA()(),t.TgZ(8,"div",5)(9,"table",6),t.YNc(10,z,3,1,"ng-container",7),t.YNc(11,j,1,0,"tr",8),t.YNc(12,X,1,4,"tr",9),t.YNc(13,q,10,4,"tr",10),t.qZA()(),t.TgZ(14,"mat-paginator",11),t.NdJ("page",function(O){return s.onPaginatorClicked(O)}),t.qZA()),2&a){const U=t.MAs(4);t.Q6J("color","accent"),t.xp6(3),t.Q6J("ngModel",s.searchQuery),t.xp6(4),t.hij("",(null==U.value?null:U.value.length)||0," / 200 Huruf"),t.xp6(2),t.Q6J("dataSource",s.dataSource),t.xp6(1),t.Q6J("ngForOf",s.tableDataColumn),t.xp6(1),t.Q6J("matHeaderRowDef",s.tableDataColumn),t.xp6(1),t.Q6J("matRowDefColumns",s.tableDataColumn),t.xp6(2),t.Q6J("color","accent")("pageSizeOptions",s.tablePageSizeOptions)("length",s.count)}},dependencies:[A.sg,A.O5,c.eB,h.Hw,_.v_,_.pH,_.$V,_.nX,M.k0,m.Wx,u.cl,P.wG,p.ty,p.wO,p.S4,p.t3,p.R3,p.Al,p.L7,p.ML,p.fg,p.Zw,p.ZB,r.Kd,g.YE,g.nU,E.G,d.Fj,d.JJ,d.nD,d.On,A.uU,x.R],styles:["table[_ngcontent-%COMP%]{width:100%}td.mat-column-star[_ngcontent-%COMP%]{width:20px;padding-right:8px!important}.mat-table[_ngcontent-%COMP%]{border-bottom:1px solid rgba(0,0,0,.12)}.mat-table[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]{border:0}.mat-row[_ngcontent-%COMP%]:hover{background-color:#ffffffdf}.mat-row[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#7289da;text-decoration:none}.mat-row[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}.mat-form-field[_ngcontent-%COMP%]{font-size:14px;width:100%}.mat-icon[_ngcontent-%COMP%]{color:#7289da}@media only screen and (min-width: 993px){.fixed-single[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:128px}}@media only screen and (max-width: 992px){.mat-elevation-z8[_ngcontent-%COMP%]{background:transparent;box-shadow:none}.mat-header-row[_ngcontent-%COMP%]{display:none}tbody[_ngcontent-%COMP%]{display:block;width:100%}.mat-table[_ngcontent-%COMP%]{background:transparent}.mat-table[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{box-sizing:border-box}.mat-table[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%]{display:block;overflow:hidden;height:auto;position:relative;clear:both;background-color:#ffffffdf;border-radius:3px}.mat-table[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%] + .mat-row[_ngcontent-%COMP%]{margin-top:24px}.mat-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]{display:block;width:100%;padding:8px 16px;margin:0;border:0 none}.mat-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]:first-child a[_ngcontent-%COMP%], .mat-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]:last-child a[_ngcontent-%COMP%]{font-size:20px;color:inherit}.mat-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]:first-child:before, .mat-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]:last-child:before{display:none}.mat-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]:first-child{padding:16px 48px 8px 16px}.mat-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]:last-child{padding:8px 48px 16px 16px}.mat-table[_ngcontent-%COMP%] .mat-cell.m-card-sub-title[_ngcontent-%COMP%]{margin-top:-8px;padding:0 48px 0 16px;color:#00000080}.mat-table[_ngcontent-%COMP%] .has_label_on_mobile[_ngcontent-%COMP%]:before{content:attr(data-label);display:inline;font-weight:400}.mat-table[_ngcontent-%COMP%] .mat-column-star[_ngcontent-%COMP%]{width:auto;padding:8px 0 0!important;margin:0;position:absolute;top:0;right:0}.mat-table[_ngcontent-%COMP%] .mat-column-star[_ngcontent-%COMP%]:before{display:none}.mat-paginator[_ngcontent-%COMP%]{margin-top:24px}}.mat-ripple[_ngcontent-%COMP%]:not(:empty){transform:none}"]})}return i})()},7299:(T,f,o)=>{o.d(f,{H:()=>A});var t=o(6895),u=o(4006),g=o(2314),p=o(6533),l=o(3811),C=o(4650);let A=(()=>{class c{static#t=this.\u0275fac=function(M){return new(M||c)};static#e=this.\u0275mod=C.oAB({type:c});static#a=this.\u0275inj=C.cJS({imports:[t.ez,g.m,p.P,u.u5,l.T]})}return c})()},4758:(T,f,o)=>{o.d(f,{t:()=>M});var t=o(4650),u=o(1390),g=o(9816),p=o(8598),l=o(6895),C=o(5882);function A(m,P){if(1&m&&t._UZ(0,"div",4),2&m){const r=t.oxw();t.Udp("background-size",r.GS.sizeContain?"contain":"cover")("background-image","url("+r.GS.bannerImg+")")("background-repeat",r.GS.bgRepeat?"repeat-x":"no-repeat")("height",r.ROUTER.url.startsWith("/news")||r.ROUTER.url.startsWith("/berkas")||r.ROUTER.url.startsWith("/fansub")?"192px":"128px")("background-position-y",r.ROUTER.url.startsWith("/berkas")?"22.5%":"")}}function c(m,P){if(1&m&&(t.TgZ(0,"strong",10),t._uU(1," -- "),t.TgZ(2,"i")(3,"a",11),t._uU(4),t.qZA()()()),2&m){const r=t.oxw().$implicit;t.xp6(3),t.MGl("routerLink","/user/",r.notifCreator,""),t.xp6(1),t.hij(" ",r.notifCreator," ")}}function h(m,P){if(1&m){const r=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){t.CHM(r);const d=t.oxw().$implicit,x=t.oxw();return t.KtG(x.removeNotif(d.notifData.id))}),t.qZA()}}function _(m,P){if(1&m&&(t.TgZ(0,"div",5)(1,"div")(2,"strong",6),t._uU(3),t.qZA(),t._UZ(4,"span",7),t.ALo(5,"safeInnerHtml"),t.YNc(6,c,5,2,"strong",8),t.YNc(7,h,1,0,"button",9),t.qZA()()),2&m){const r=P.$implicit;t.xp6(1),t.Gre("alert alert-",r.notifData.type," alert-dismissible fade show"),t.xp6(2),t.Oqu(r.notifData.title),t.xp6(1),t.Q6J("innerHTML",t.lcZ(5,7,r.notifData.content),t.oJD),t.xp6(2),t.Q6J("ngIf",r.notifCreator),t.xp6(1),t.Q6J("ngIf",r.notifData.dismissible)}}let M=(()=>{class m{constructor(r,E,d){this.router=r,this.gs=E,this.notif=d}ngOnInit(){}get GS(){return this.gs}get ROUTER(){return this.router}get NOTIF(){return this.notif}removeNotif(r){this.notif.removeNotif(r)}static#t=this.\u0275fac=function(E){return new(E||m)(t.Y36(u.F0),t.Y36(g.U),t.Y36(p.T))};static#e=this.\u0275cmp=t.Xpm({type:m,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(E,d){1&E&&(t.YNc(0,A,1,10,"div",0),t.TgZ(1,"div",1)(2,"div",2),t.YNc(3,_,8,9,"div",3),t.qZA()()),2&E&&(t.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"))),t.xp6(3),t.Q6J("ngForOf",d.NOTIF.notifications))},dependencies:[l.sg,l.O5,u.rH,C.H],styles:[".notif-banner[_ngcontent-%COMP%]{width:100%;background-size:cover;background-position:75% 50%}"]})}return m})()},6319:(T,f,o)=>{o.d(f,{F:()=>l});var t=o(6895),u=o(1390),g=o(3811),p=o(4650);let l=(()=>{class C{static#t=this.\u0275fac=function(h){return new(h||C)};static#e=this.\u0275mod=p.oAB({type:C});static#a=this.\u0275inj=p.cJS({imports:[t.ez,u.Bz,g.T]})}return C})()},1105:(T,f,o)=>{o.d(f,{R:()=>u});var t=o(4650);let u=(()=>{class g{transform(l,C){if(l){const A=Math.floor((+new Date-+new Date(l))/1e3),c={tahun:31536e3,bulan:2592e3,minggu:604800,hari:86400,jam:3600,menit:60,detik:1};let h;for(const _ of Object.keys(c))if(h=Math.floor(A/c[_]),h>0)return h+" "+_+" lalu"}return l}static#t=this.\u0275fac=function(C){return new(C||g)};static#e=this.\u0275pipe=t.Yjl({name:"dateAgo",type:g,pure:!0})}return g})()}}]); \ No newline at end of file diff --git a/dist/main-site/browser/index.html b/dist/main-site/browser/index.html index 1b19c17b..2a1f866c 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 c902aacb..e11b9319 100644 --- a/dist/main-site/browser/ngsw.json +++ b/dist/main-site/browser/ngsw.json @@ -1,6 +1,6 @@ { "configVersion": 1, - "timestamp": 1705828769706, + "timestamp": 1706452641511, "index": "/index.html", "assetGroups": [ { @@ -12,7 +12,7 @@ }, "urls": [ "/109.8101438e1a2a6f7f.js", - "/25.5936e0bb8274fece.js", + "/25.c632a639d7dfd2ca.js", "/268.2bf237c8f938cc19.js", "/305.c95853ace4f0bafc.js", "/31.20012e7631a4459a.js", @@ -45,7 +45,7 @@ "/main.84bb8e9fac00e31e.js", "/manifest.webmanifest", "/polyfills.c264b580e8a973fe.js", - "/runtime.406073b834ec3f20.js", + "/runtime.9bb059e3c307350f.js", "/scripts.d530b24d62dab3a0.js", "/styles.b849b3eb93129b2e.css" ], @@ -87,7 +87,7 @@ ], "hashTable": { "/109.8101438e1a2a6f7f.js": "67026c812b9eefaa14175772e63931ce1af78b0b", - "/25.5936e0bb8274fece.js": "a64f839d73c21616defac610ddda0a95235e3134", + "/25.c632a639d7dfd2ca.js": "f907084d439547c3b976dcf4a25fb6528f5231f4", "/268.2bf237c8f938cc19.js": "e4f3180086fa7d6b6a856d0c523cf175d53dd21d", "/305.c95853ace4f0bafc.js": "b2bdb5c3e6a7a706e11d123c528510fbec651bd9", "/31.20012e7631a4459a.js": "70d4807f0789648d23481539832be437cb4d1145", @@ -116,11 +116,11 @@ "/935.297c8ba9525ff76f.js": "baa0480d7f4c538c4c935a94f0a7577a9b23b246", "/common.e11661005278ed25.js": "1fb12c1df0607da07238e947947939b77cee60f4", "/favicon.ico": "071facb8fab2e4b3493dcfbb0b02d7bd21bca97e", - "/index.html": "af7a37e37e142c45848fdf88659fa439613d125f", + "/index.html": "34e29e9db22abeee5b5f679a5275b7e511a37b3d", "/main.84bb8e9fac00e31e.js": "351c404fa057179e0084c78db174d404d8296317", "/manifest.webmanifest": "eafb5426cdc9fd714787e5453af315b9972875a3", "/polyfills.c264b580e8a973fe.js": "67f24a57563377058dfcd5306c56c0cd696ba2e5", - "/runtime.406073b834ec3f20.js": "947e0fd26c8f8722207fedaa7058af9dcad098ba", + "/runtime.9bb059e3c307350f.js": "00861011df3a69fb22495b6987e20b661af2c94e", "/scripts.d530b24d62dab3a0.js": "2d11a419816b2dd8d9eccaff4f113ae0eafdd306", "/styles.b849b3eb93129b2e.css": "d68b5778bdca764c5297b8067a72b676f8cce12d" }, diff --git a/dist/main-site/browser/runtime.406073b834ec3f20.js b/dist/main-site/browser/runtime.9bb059e3c307350f.js similarity index 98% rename from dist/main-site/browser/runtime.406073b834ec3f20.js rename to dist/main-site/browser/runtime.9bb059e3c307350f.js index afbf3838..212b403a 100644 --- a/dist/main-site/browser/runtime.406073b834ec3f20.js +++ b/dist/main-site/browser/runtime.9bb059e3c307350f.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:"5936e0bb8274fece",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:"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__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})(:(?