diff --git a/dist/fansubid/browser/common.0413597e2255e937.js b/dist/fansubid/browser/common.0413597e2255e937.js deleted file mode 100644 index 5531f8cad..000000000 --- a/dist/fansubid/browser/common.0413597e2255e937.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkfansubid=self.webpackChunkfansubid||[]).push([[592],{3331:(y,E,r)=>{"use strict";r.d(E,{B:()=>l});var e=r(5934),u=r(5e3),S=r(8696);let l=(()=>{class h{constructor(a){this.gs=a}get GS(){return this.gs}ngOnInit(){}get discordUrl(){return e.N.discord.join_url}get discordGuildId(){return e.N.discord.guild_id}}return h.\u0275fac=function(a){return new(a||h)(u.Y36(S.U))},h.\u0275cmp=u.Xpm({type:h,selectors:[["app-banner-discord"]],decls:9,vars:3,consts:[[1,"row"],[1,"col-12","sticky-top","bg-bifeldy"],[1,"pt-3","border-bottom-dotted"],[1,"text-bifeldy"],[1,"col-12"],[1,"gradient-border","rgb-border","mx-2","mb-2"],["target","_blank",3,"href"],[1,"w-100",3,"src"]],template:function(a,f){1&a&&(u.TgZ(0,"div",0)(1,"div",1)(2,"h2",2)(3,"b",3),u._uU(4,"Yuk Gabung Obrolan!"),u.qZA()()(),u.TgZ(5,"div",4)(6,"p",5)(7,"a",6),u._UZ(8,"img",7),u.qZA()()()()),2&a&&(u.xp6(7),u.s9C("href",f.discordUrl,u.LSH),u.xp6(1),u.hYB("src","https://discord.com/api/guilds/",f.discordGuildId,"/widget.png?style=banner",f.GS.gridListBreakpoint,"",u.LSH))},styles:[""]}),h})()},4854:(y,E,r)=>{"use strict";r.d(E,{R:()=>S});var e=r(9808),u=r(5e3);let S=(()=>{class l{}return l.\u0275fac=function(d){return new(d||l)},l.\u0275mod=u.oAB({type:l}),l.\u0275inj=u.cJS({imports:[[e.ez]]}),l})()},913:(y,E,r)=>{"use strict";r.d(E,{g:()=>h});var e=r(9808),u=r(8406),S=r(210),l=r(5e3);let h=(()=>{class d{}return d.\u0275fac=function(f){return new(f||d)},d.\u0275mod=l.oAB({type:d}),d.\u0275inj=l.cJS({imports:[[e.ez,u.Bz,S.m]]}),d})()},8921:(y,E,r)=>{"use strict";r.d(E,{X:()=>b});var e=r(5e3),u=r(8696),S=r(8381),l=r(9808);function h(t,_){if(1&t&&(e.TgZ(0,"p",6),e._uU(1," Portal :: "),e.TgZ(2,"span",8),e._uU(3),e.qZA()()),2&t){const i=e.oxw();e.xp6(3),e.hij(" ",null==i.SS.github?null:i.SS.github.sha," ")}}function d(t,_){if(1&t&&(e.TgZ(0,"p",6),e._uU(1," Date :: "),e.TgZ(2,"span",8),e._uU(3),e.ALo(4,"date"),e.qZA()()),2&t){const i=e.oxw();e.xp6(3),e.hij(" ",e.xi3(4,1,null==i.SS.github||null==i.SS.github.commit||null==i.SS.github.commit.author?null:i.SS.github.commit.author.date,"d MMM y, hh:mm:ss a z")," ")}}function a(t,_){if(1&t&&(e.TgZ(0,"p",6),e._uU(1," Commiter :: "),e.TgZ(2,"span",7)(3,"a",9),e._uU(4),e.qZA()()()),2&t){const i=e.oxw();e.xp6(3),e.MGl("href","https://github.com/",null==i.SS.github||null==i.SS.github.commit||null==i.SS.github.commit.author?null:i.SS.github.commit.author.name,"",e.LSH),e.xp6(1),e.hij(" ",null==i.SS.github||null==i.SS.github.commit||null==i.SS.github.commit.author?null:i.SS.github.commit.author.name," ")}}function f(t,_){if(1&t&&(e.TgZ(0,"p",6),e._uU(1," Message :: "),e.TgZ(2,"span",7),e._uU(3),e.qZA()()),2&t){const i=e.oxw();e.xp6(3),e.hij(" ",null==i.SS.github||null==i.SS.github.commit?null:i.SS.github.commit.message," ")}}function M(t,_){if(1&t&&(e.TgZ(0,"p",6),e._uU(1," Socket :: "),e.TgZ(2,"span",8),e._uU(3),e.qZA()()),2&t){const i=e.oxw();e.xp6(3),e.hij(" ",null!=i.SS.mySocket&&i.SS.mySocket.id?i.SS.mySocket.id:"Sambungan Terputus"," ")}}function s(t,_){if(1&t&&(e.TgZ(0,"p",6),e._uU(1," Latency :: "),e.TgZ(2,"span",8),e._uU(3),e.qZA()()),2&t){const i=e.oxw();e.xp6(3),e.hij(" ",i.SS.latency," ms ")}}function c(t,_){if(1&t&&(e.TgZ(0,"p",6),e._uU(1," Nodes :: "),e.TgZ(2,"span",8),e._uU(3),e.qZA()()),2&t){const i=e.oxw();e.xp6(3),e.hij(" ",i.SS.visitor," Koneksi ")}}let b=(()=>{class t{constructor(i,p){this.gs=i,this.ss=p,this.currentServer=null,this.subsServer=null}get SS(){return this.ss}ngOnInit(){this.gs.isBrowser&&(this.subsServer=this.ss.currentServer.subscribe({next:i=>this.currentServer=i}))}ngOnDestroy(){var i;null===(i=this.subsServer)||void 0===i||i.unsubscribe()}}return t.\u0275fac=function(i){return new(i||t)(e.Y36(u.U),e.Y36(S.R))},t.\u0275cmp=e.Xpm({type:t,selectors:[["app-stats-server"]],decls:17,vars:8,consts:[[1,"row"],[1,"col-12","sticky-top","bg-bifeldy"],[1,"pt-3","border-bottom-dotted"],[1,"text-bifeldy"],[1,"col-12"],["class","px-2 text-truncate",4,"ngIf"],[1,"px-2","text-truncate"],[1,"text-warning"],[1,"text-success"],["target","_blank",1,"text-warning","text-decoration-none",3,"href"]],template:function(i,p){1&i&&(e.TgZ(0,"div",0)(1,"div",1)(2,"h2",2)(3,"b",3),e._uU(4,"Statistik Server"),e.qZA()()(),e.TgZ(5,"div",4),e.YNc(6,h,4,1,"p",5),e.YNc(7,d,5,4,"p",5),e.YNc(8,a,5,2,"p",5),e.YNc(9,f,4,1,"p",5),e.TgZ(10,"p",6),e._uU(11," Server :: "),e.TgZ(12,"span",7),e._uU(13),e.qZA()(),e.YNc(14,M,4,1,"p",5),e.YNc(15,s,4,1,"p",5),e.YNc(16,c,4,1,"p",5),e.qZA()()),2&i&&(e.xp6(6),e.Q6J("ngIf",null==p.SS.github?null:p.SS.github.sha),e.xp6(1),e.Q6J("ngIf",null==p.SS.github||null==p.SS.github.commit||null==p.SS.github.commit.author?null:p.SS.github.commit.author.date),e.xp6(1),e.Q6J("ngIf",null==p.SS.github||null==p.SS.github.commit||null==p.SS.github.commit.author?null:p.SS.github.commit.author.name),e.xp6(1),e.Q6J("ngIf",null==p.SS.github||null==p.SS.github.commit?null:p.SS.github.commit.message),e.xp6(4),e.hij(" ",null!=p.currentServer&&p.currentServer.isMaintenance?"Dalam Perbaikan":"Berjalan Normal"," "),e.xp6(1),e.Q6J("ngIf",p.SS.mySocket),e.xp6(1),e.Q6J("ngIf",p.SS.latency),e.xp6(1),e.Q6J("ngIf",p.SS.visitor))},directives:[l.O5],pipes:[l.uU],styles:[""]}),t})()},669:(y,E,r)=>{"use strict";r.d(E,{A:()=>S});var e=r(9808),u=r(5e3);let S=(()=>{class l{}return l.\u0275fac=function(d){return new(d||l)},l.\u0275mod=u.oAB({type:l}),l.\u0275inj=u.cJS({imports:[[e.ez]]}),l})()},7358:(y,E,r)=>{"use strict";r.d(E,{Y:()=>l});var e=r(5e3),u=r(9731),S=r(8696);let l=(()=>{class h{constructor(a,f){this.api=a,this.gs=f}getMailbox(a="inbox",f="",M=1,s=10,c="",b=""){return this.api.getData(`/mail-${a}?q=${f}&page=${M}&row=${s}&sort=${c}&order=${b}`)}getAllMail(a="",f=1,M=10,s="",c=""){return this.api.getData(`/mail?q=${a}&page=${f}&row=${M}&sort=${s}&order=${c}`)}getMail(a){return this.api.getData(`/mail/${a}`)}sendMail(a){return this.api.postData("/mail",a)}}return h.\u0275fac=function(a){return new(a||h)(e.LFG(u.s),e.LFG(S.U))},h.\u0275prov=e.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"}),h})()},5679:(y,E,r)=>{"use strict";r.d(E,{Y:()=>l});var e=r(5e3),u=r(9731),S=r(8696);let l=(()=>{class h{constructor(a,f){this.api=a,this.gs=f}getProject(){return this.api.getData("/project-type")}createProject(a){return this.api.postData("/project-type",a)}deleteProject(a){return this.api.deleteData(`/project-type/${a}`)}}return h.\u0275fac=function(a){return new(a||h)(e.LFG(u.s),e.LFG(S.U))},h.\u0275prov=e.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"}),h})()},4327:function(y,E){var u;void 0!==(u=function(){"use strict";function l(s,c,b){var t=new XMLHttpRequest;t.open("GET",s),t.responseType="blob",t.onload=function(){M(t.response,c,b)},t.onerror=function(){console.error("could not download file")},t.send()}function h(s){var c=new XMLHttpRequest;c.open("HEAD",s,!1);try{c.send()}catch(b){}return 200<=c.status&&299>=c.status}function d(s){try{s.dispatchEvent(new MouseEvent("click"))}catch(b){var c=document.createEvent("MouseEvents");c.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),s.dispatchEvent(c)}}var a="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,f=a.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),M=a.saveAs||("object"!=typeof window||window!==a?function(){}:"download"in HTMLAnchorElement.prototype&&!f?function(s,c,b){var t=a.URL||a.webkitURL,_=document.createElement("a");_.download=c=c||s.name||"download",_.rel="noopener","string"==typeof s?(_.href=s,_.origin===location.origin?d(_):h(_.href)?l(s,c,b):d(_,_.target="_blank")):(_.href=t.createObjectURL(s),setTimeout(function(){t.revokeObjectURL(_.href)},4e4),setTimeout(function(){d(_)},0))}:"msSaveOrOpenBlob"in navigator?function(s,c,b){if(c=c||s.name||"download","string"!=typeof s)navigator.msSaveOrOpenBlob(function S(s,c){return void 0===c?c={autoBom:!1}:"object"!=typeof c&&(console.warn("Deprecated: Expected third argument to be a object"),c={autoBom:!c}),c.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(s.type)?new Blob(["\ufeff",s],{type:s.type}):s}(s,b),c);else if(h(s))l(s,c,b);else{var t=document.createElement("a");t.href=s,t.target="_blank",setTimeout(function(){d(t)})}}:function(s,c,b,t){if((t=t||open("","_blank"))&&(t.document.title=t.document.body.innerText="downloading..."),"string"==typeof s)return l(s,c,b);var _="application/octet-stream"===s.type,i=/constructor/i.test(a.HTMLElement)||a.safari,p=/CriOS\/[\d]+/.test(navigator.userAgent);if((p||_&&i||f)&&"undefined"!=typeof FileReader){var A=new FileReader;A.onloadend=function(){var C=A.result;C=p?C:C.replace(/^data:[^;]*;/,"data:attachment/file;"),t?t.location.href=C:location=C,t=null},A.readAsDataURL(s)}else{var w=a.URL||a.webkitURL,D=w.createObjectURL(s);t?t.location=D:location.href=D,t=null,setTimeout(function(){w.revokeObjectURL(D)},4e4)}});a.saveAs=M.saveAs=M,y.exports=M}.apply(E,[]))&&(y.exports=u)},3290:(y,E,r)=>{"use strict";r.d(E,{Vd:()=>C,a:()=>A,lQ:()=>T,wT:()=>i});var e=r(5e3),u=r(9808),S=r(9646),l=r(1135),h=r(3075);const d=new e.OlP("recaptcha-language"),a=new e.OlP("recaptcha-base-url"),f=new e.OlP("recaptcha-nonce-tag"),M=new e.OlP("recaptcha-settings"),s=new e.OlP("recaptcha-v3-site-key"),b_loadScript=function c(o,m,n,v,R){window.ng2recaptchaloaded=()=>{m(grecaptcha)};const g=document.createElement("script");g.innerHTML="",g.src=`${v||"https://www.google.com/recaptcha/api.js"}?render=${o}&onload=ng2recaptchaloaded${n}`,R&&(g.nonce=R),g.async=!0,g.defer=!0,document.head.appendChild(g)};let t=(()=>{class o{constructor(n,v,R,g,O){this.platformId=n,this.language=v,this.baseUrl=R,this.nonce=g,this.v3SiteKey=O,this.init(),this.ready=(0,u.NF)(this.platformId)?o.ready.asObservable():(0,S.of)()}init(){if(!o.ready&&(0,u.NF)(this.platformId)){const n=new l.X(null);o.ready=n,b_loadScript(this.v3SiteKey||"explicit",g=>n.next(g),this.language?"&hl="+this.language:"",this.baseUrl,this.nonce)}}}return o.ready=null,o.\u0275fac=function(n){return new(n||o)(e.LFG(e.Lbi),e.LFG(d,8),e.LFG(a,8),e.LFG(f,8),e.LFG(s,8))},o.\u0275prov=e.Yz7({token:o,factory:o.\u0275fac}),o})(),_=0,i=(()=>{class o{constructor(n,v,R,g){this.elementRef=n,this.loader=v,this.zone=R,this.id="ngrecaptcha-"+_++,this.errorMode="default",this.resolved=new e.vpe,this.error=new e.vpe,g&&(this.siteKey=g.siteKey,this.theme=g.theme,this.type=g.type,this.size=g.size,this.badge=g.badge)}ngAfterViewInit(){this.subscription=this.loader.ready.subscribe(n=>{null!=n&&n.render instanceof Function&&(this.grecaptcha=n,this.renderRecaptcha())})}ngOnDestroy(){this.grecaptchaReset(),this.subscription&&this.subscription.unsubscribe()}execute(){"invisible"===this.size&&(null!=this.widget?this.grecaptcha.execute(this.widget):this.executeRequested=!0)}reset(){null!=this.widget&&(this.grecaptcha.getResponse(this.widget)&&this.resolved.emit(null),this.grecaptchaReset())}get __unsafe_widgetValue(){return null!=this.widget?this.grecaptcha.getResponse(this.widget):null}expired(){this.resolved.emit(null)}errored(n){this.error.emit(n)}captchaResponseCallback(n){this.resolved.emit(n)}grecaptchaReset(){null!=this.widget&&this.zone.runOutsideAngular(()=>this.grecaptcha.reset(this.widget))}renderRecaptcha(){const n={badge:this.badge,callback:v=>{this.zone.run(()=>this.captchaResponseCallback(v))},"expired-callback":()=>{this.zone.run(()=>this.expired())},sitekey:this.siteKey,size:this.size,tabindex:this.tabIndex,theme:this.theme,type:this.type};"handled"===this.errorMode&&(n["error-callback"]=(...v)=>{this.zone.run(()=>this.errored(v))}),this.widget=this.grecaptcha.render(this.elementRef.nativeElement,n),!0===this.executeRequested&&(this.executeRequested=!1,this.execute())}}return o.\u0275fac=function(n){return new(n||o)(e.Y36(e.SBq),e.Y36(t),e.Y36(e.R0b),e.Y36(M,8))},o.\u0275cmp=e.Xpm({type:o,selectors:[["re-captcha"]],hostVars:1,hostBindings:function(n,v){2&n&&e.uIk("id",v.id)},inputs:{id:"id",siteKey:"siteKey",theme:"theme",type:"type",size:"size",tabIndex:"tabIndex",badge:"badge",errorMode:"errorMode"},outputs:{resolved:"resolved",error:"error"},exportAs:["reCaptcha"],decls:0,vars:0,template:function(n,v){},encapsulation:2}),o})(),p=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({}),o})(),A=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({providers:[t],imports:[[p]]}),o})(),C=(()=>{class o{constructor(n){this.host=n,this.requiresControllerReset=!1}writeValue(n){n?this.host.__unsafe_widgetValue!==n&&!1===Boolean(this.host.__unsafe_widgetValue)&&(this.requiresControllerReset=!0):this.host.reset()}registerOnChange(n){this.onChange=n,this.requiresControllerReset&&(this.requiresControllerReset=!1,this.onChange(null))}registerOnTouched(n){this.onTouched=n}onResolve(n){this.onChange&&this.onChange(n),this.onTouched&&this.onTouched()}}return o.\u0275fac=function(n){return new(n||o)(e.Y36(i))},o.\u0275dir=e.lG2({type:o,selectors:[["re-captcha","formControlName",""],["re-captcha","formControl",""],["re-captcha","ngModel",""]],hostBindings:function(n,v){1&n&&e.NdJ("resolved",function(g){return v.onResolve(g)})},features:[e._Bn([{multi:!0,provide:h.JU,useExisting:(0,e.Gpc)(()=>o)}])]}),o})(),T=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[h.u5,p]]}),o})()}}]); \ No newline at end of file diff --git a/dist/fansubid/browser/common.ec9ef4839de19b37.js b/dist/fansubid/browser/common.ec9ef4839de19b37.js new file mode 100644 index 000000000..2edc1b163 --- /dev/null +++ b/dist/fansubid/browser/common.ec9ef4839de19b37.js @@ -0,0 +1 @@ +(self.webpackChunkfansubid=self.webpackChunkfansubid||[]).push([[592],{3331:(R,E,r)=>{"use strict";r.d(E,{B:()=>d});var e=r(5934),l=r(5e3),S=r(8696);let d=(()=>{class h{constructor(i){this.gs=i}get GS(){return this.gs}ngOnInit(){}get discordUrl(){return e.N.discord.join_url}get discordGuildId(){return e.N.discord.guild_id}}return h.\u0275fac=function(i){return new(i||h)(l.Y36(S.U))},h.\u0275cmp=l.Xpm({type:h,selectors:[["app-banner-discord"]],decls:9,vars:3,consts:[[1,"row"],[1,"col-12","sticky-top","bg-bifeldy"],[1,"pt-3","border-bottom-dotted"],[1,"text-bifeldy"],[1,"col-12"],[1,"gradient-border","rgb-border","mx-2","mb-2"],["target","_blank",3,"href"],[1,"w-100",3,"src"]],template:function(i,f){1&i&&(l.TgZ(0,"div",0)(1,"div",1)(2,"h2",2)(3,"b",3),l._uU(4,"Yuk Gabung Obrolan!"),l.qZA()()(),l.TgZ(5,"div",4)(6,"p",5)(7,"a",6),l._UZ(8,"img",7),l.qZA()()()()),2&i&&(l.xp6(7),l.s9C("href",f.discordUrl,l.LSH),l.xp6(1),l.hYB("src","https://discord.com/api/guilds/",f.discordGuildId,"/widget.png?style=banner",f.GS.gridListBreakpoint,"",l.LSH))},styles:[""]}),h})()},4854:(R,E,r)=>{"use strict";r.d(E,{R:()=>S});var e=r(9808),l=r(5e3);let S=(()=>{class d{}return d.\u0275fac=function(p){return new(p||d)},d.\u0275mod=l.oAB({type:d}),d.\u0275inj=l.cJS({imports:[[e.ez]]}),d})()},913:(R,E,r)=>{"use strict";r.d(E,{g:()=>h});var e=r(9808),l=r(8406),S=r(210),d=r(5e3);let h=(()=>{class p{}return p.\u0275fac=function(f){return new(f||p)},p.\u0275mod=d.oAB({type:p}),p.\u0275inj=d.cJS({imports:[[e.ez,l.Bz,S.m]]}),p})()},8921:(R,E,r)=>{"use strict";r.d(E,{X:()=>u});var e=r(5e3),l=r(8696),S=r(8381),d=r(9808);function h(a,c){if(1&a&&(e.TgZ(0,"p",6),e._uU(1," Portal :: "),e.TgZ(2,"span",8),e._uU(3),e.qZA()()),2&a){const n=e.oxw();e.xp6(3),e.hij(" ",null==n.SS.github?null:n.SS.github.sha," ")}}function p(a,c){if(1&a&&(e.TgZ(0,"p",6),e._uU(1," Date :: "),e.TgZ(2,"span",8),e._uU(3),e.ALo(4,"date"),e.qZA()()),2&a){const n=e.oxw();e.xp6(3),e.hij(" ",e.xi3(4,1,null==n.SS.github||null==n.SS.github.commit||null==n.SS.github.commit.author?null:n.SS.github.commit.author.date,"d MMM y, hh:mm:ss a z")," ")}}function i(a,c){if(1&a&&(e.TgZ(0,"p",6),e._uU(1," Message :: "),e.TgZ(2,"span",7),e._uU(3),e.qZA()()),2&a){const n=e.oxw();e.xp6(3),e.hij(" ",null==n.SS.github||null==n.SS.github.commit?null:n.SS.github.commit.message," ")}}function f(a,c){if(1&a&&(e.TgZ(0,"p",6),e._uU(1," Socket :: "),e.TgZ(2,"span",8),e._uU(3),e.qZA()()),2&a){const n=e.oxw();e.xp6(3),e.hij(" ",null!=n.SS.mySocket&&n.SS.mySocket.id?n.SS.mySocket.id:"Sambungan Terputus"," ")}}function b(a,c){if(1&a&&(e.TgZ(0,"p",6),e._uU(1," Latency :: "),e.TgZ(2,"span"),e._uU(3),e.qZA()()),2&a){const n=e.oxw();e.xp6(2),e.Gre("text-",n.SS.latency>75?"warning":"success",""),e.xp6(1),e.hij(" ",n.SS.latency," ms ")}}function s(a,c){if(1&a&&(e.TgZ(0,"p",6),e._uU(1," Nodes :: "),e.TgZ(2,"span",8),e._uU(3),e.qZA()()),2&a){const n=e.oxw();e.xp6(3),e.hij(" ",n.SS.visitor," Koneksi ")}}let u=(()=>{class a{constructor(n,g){this.gs=n,this.ss=g,this.currentServer=null,this.subsServer=null}get SS(){return this.ss}ngOnInit(){this.gs.isBrowser&&(this.subsServer=this.ss.currentServer.subscribe({next:n=>this.currentServer=n}))}ngOnDestroy(){var n;null===(n=this.subsServer)||void 0===n||n.unsubscribe()}}return a.\u0275fac=function(n){return new(n||a)(e.Y36(l.U),e.Y36(S.R))},a.\u0275cmp=e.Xpm({type:a,selectors:[["app-stats-server"]],decls:16,vars:7,consts:[[1,"row"],[1,"col-12","sticky-top","bg-bifeldy"],[1,"pt-3","border-bottom-dotted"],[1,"text-bifeldy"],[1,"col-12"],["class","px-2 text-truncate",4,"ngIf"],[1,"px-2","text-truncate"],[1,"text-warning"],[1,"text-success"]],template:function(n,g){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"h2",2)(3,"b",3),e._uU(4,"Statistik Server"),e.qZA()()(),e.TgZ(5,"div",4),e.YNc(6,h,4,1,"p",5),e.YNc(7,p,5,4,"p",5),e.YNc(8,i,4,1,"p",5),e.TgZ(9,"p",6),e._uU(10," Server :: "),e.TgZ(11,"span",7),e._uU(12),e.qZA()(),e.YNc(13,f,4,1,"p",5),e.YNc(14,b,4,4,"p",5),e.YNc(15,s,4,1,"p",5),e.qZA()()),2&n&&(e.xp6(6),e.Q6J("ngIf",null==g.SS.github?null:g.SS.github.sha),e.xp6(1),e.Q6J("ngIf",null==g.SS.github||null==g.SS.github.commit||null==g.SS.github.commit.author?null:g.SS.github.commit.author.date),e.xp6(1),e.Q6J("ngIf",null==g.SS.github||null==g.SS.github.commit?null:g.SS.github.commit.message),e.xp6(4),e.hij(" ",null!=g.currentServer&&g.currentServer.isMaintenance?"Dalam Perbaikan":"Berjalan Normal"," "),e.xp6(1),e.Q6J("ngIf",g.SS.mySocket),e.xp6(1),e.Q6J("ngIf",g.SS.latency),e.xp6(1),e.Q6J("ngIf",g.SS.visitor))},directives:[d.O5],pipes:[d.uU],styles:[""]}),a})()},669:(R,E,r)=>{"use strict";r.d(E,{A:()=>S});var e=r(9808),l=r(5e3);let S=(()=>{class d{}return d.\u0275fac=function(p){return new(p||d)},d.\u0275mod=l.oAB({type:d}),d.\u0275inj=l.cJS({imports:[[e.ez]]}),d})()},7358:(R,E,r)=>{"use strict";r.d(E,{Y:()=>d});var e=r(5e3),l=r(9731),S=r(8696);let d=(()=>{class h{constructor(i,f){this.api=i,this.gs=f}getMailbox(i="inbox",f="",b=1,s=10,u="",a=""){return this.api.getData(`/mail-${i}?q=${f}&page=${b}&row=${s}&sort=${u}&order=${a}`)}getAllMail(i="",f=1,b=10,s="",u=""){return this.api.getData(`/mail?q=${i}&page=${f}&row=${b}&sort=${s}&order=${u}`)}getMail(i){return this.api.getData(`/mail/${i}`)}sendMail(i){return this.api.postData("/mail",i)}}return h.\u0275fac=function(i){return new(i||h)(e.LFG(l.s),e.LFG(S.U))},h.\u0275prov=e.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"}),h})()},5679:(R,E,r)=>{"use strict";r.d(E,{Y:()=>d});var e=r(5e3),l=r(9731),S=r(8696);let d=(()=>{class h{constructor(i,f){this.api=i,this.gs=f}getProject(){return this.api.getData("/project-type")}createProject(i){return this.api.postData("/project-type",i)}deleteProject(i){return this.api.deleteData(`/project-type/${i}`)}}return h.\u0275fac=function(i){return new(i||h)(e.LFG(l.s),e.LFG(S.U))},h.\u0275prov=e.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"}),h})()},4327:function(R,E){var l;void 0!==(l=function(){"use strict";function d(s,u,a){var c=new XMLHttpRequest;c.open("GET",s),c.responseType="blob",c.onload=function(){b(c.response,u,a)},c.onerror=function(){console.error("could not download file")},c.send()}function h(s){var u=new XMLHttpRequest;u.open("HEAD",s,!1);try{u.send()}catch(a){}return 200<=u.status&&299>=u.status}function p(s){try{s.dispatchEvent(new MouseEvent("click"))}catch(a){var u=document.createEvent("MouseEvents");u.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),s.dispatchEvent(u)}}var i="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,f=i.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),b=i.saveAs||("object"!=typeof window||window!==i?function(){}:"download"in HTMLAnchorElement.prototype&&!f?function(s,u,a){var c=i.URL||i.webkitURL,n=document.createElement("a");n.download=u=u||s.name||"download",n.rel="noopener","string"==typeof s?(n.href=s,n.origin===location.origin?p(n):h(n.href)?d(s,u,a):p(n,n.target="_blank")):(n.href=c.createObjectURL(s),setTimeout(function(){c.revokeObjectURL(n.href)},4e4),setTimeout(function(){p(n)},0))}:"msSaveOrOpenBlob"in navigator?function(s,u,a){if(u=u||s.name||"download","string"!=typeof s)navigator.msSaveOrOpenBlob(function S(s,u){return void 0===u?u={autoBom:!1}:"object"!=typeof u&&(console.warn("Deprecated: Expected third argument to be a object"),u={autoBom:!u}),u.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(s.type)?new Blob(["\ufeff",s],{type:s.type}):s}(s,a),u);else if(h(s))d(s,u,a);else{var c=document.createElement("a");c.href=s,c.target="_blank",setTimeout(function(){p(c)})}}:function(s,u,a,c){if((c=c||open("","_blank"))&&(c.document.title=c.document.body.innerText="downloading..."),"string"==typeof s)return d(s,u,a);var n="application/octet-stream"===s.type,g=/constructor/i.test(i.HTMLElement)||i.safari,A=/CriOS\/[\d]+/.test(navigator.userAgent);if((A||n&&g||f)&&"undefined"!=typeof FileReader){var C=new FileReader;C.onloadend=function(){var y=C.result;y=A?y:y.replace(/^data:[^;]*;/,"data:attachment/file;"),c?c.location.href=y:location=y,c=null},C.readAsDataURL(s)}else{var w=i.URL||i.webkitURL,D=w.createObjectURL(s);c?c.location=D:location.href=D,c=null,setTimeout(function(){w.revokeObjectURL(D)},4e4)}});i.saveAs=b.saveAs=b,R.exports=b}.apply(E,[]))&&(R.exports=l)},3290:(R,E,r)=>{"use strict";r.d(E,{Vd:()=>y,a:()=>C,lQ:()=>x,wT:()=>g});var e=r(5e3),l=r(9808),S=r(9646),d=r(1135),h=r(3075);const p=new e.OlP("recaptcha-language"),i=new e.OlP("recaptcha-base-url"),f=new e.OlP("recaptcha-nonce-tag"),b=new e.OlP("recaptcha-settings"),s=new e.OlP("recaptcha-v3-site-key"),a_loadScript=function u(o,v,t,m,M){window.ng2recaptchaloaded=()=>{v(grecaptcha)};const _=document.createElement("script");_.innerHTML="",_.src=`${m||"https://www.google.com/recaptcha/api.js"}?render=${o}&onload=ng2recaptchaloaded${t}`,M&&(_.nonce=M),_.async=!0,_.defer=!0,document.head.appendChild(_)};let c=(()=>{class o{constructor(t,m,M,_,O){this.platformId=t,this.language=m,this.baseUrl=M,this.nonce=_,this.v3SiteKey=O,this.init(),this.ready=(0,l.NF)(this.platformId)?o.ready.asObservable():(0,S.of)()}init(){if(!o.ready&&(0,l.NF)(this.platformId)){const t=new d.X(null);o.ready=t,a_loadScript(this.v3SiteKey||"explicit",_=>t.next(_),this.language?"&hl="+this.language:"",this.baseUrl,this.nonce)}}}return o.ready=null,o.\u0275fac=function(t){return new(t||o)(e.LFG(e.Lbi),e.LFG(p,8),e.LFG(i,8),e.LFG(f,8),e.LFG(s,8))},o.\u0275prov=e.Yz7({token:o,factory:o.\u0275fac}),o})(),n=0,g=(()=>{class o{constructor(t,m,M,_){this.elementRef=t,this.loader=m,this.zone=M,this.id="ngrecaptcha-"+n++,this.errorMode="default",this.resolved=new e.vpe,this.error=new e.vpe,_&&(this.siteKey=_.siteKey,this.theme=_.theme,this.type=_.type,this.size=_.size,this.badge=_.badge)}ngAfterViewInit(){this.subscription=this.loader.ready.subscribe(t=>{null!=t&&t.render instanceof Function&&(this.grecaptcha=t,this.renderRecaptcha())})}ngOnDestroy(){this.grecaptchaReset(),this.subscription&&this.subscription.unsubscribe()}execute(){"invisible"===this.size&&(null!=this.widget?this.grecaptcha.execute(this.widget):this.executeRequested=!0)}reset(){null!=this.widget&&(this.grecaptcha.getResponse(this.widget)&&this.resolved.emit(null),this.grecaptchaReset())}get __unsafe_widgetValue(){return null!=this.widget?this.grecaptcha.getResponse(this.widget):null}expired(){this.resolved.emit(null)}errored(t){this.error.emit(t)}captchaResponseCallback(t){this.resolved.emit(t)}grecaptchaReset(){null!=this.widget&&this.zone.runOutsideAngular(()=>this.grecaptcha.reset(this.widget))}renderRecaptcha(){const t={badge:this.badge,callback:m=>{this.zone.run(()=>this.captchaResponseCallback(m))},"expired-callback":()=>{this.zone.run(()=>this.expired())},sitekey:this.siteKey,size:this.size,tabindex:this.tabIndex,theme:this.theme,type:this.type};"handled"===this.errorMode&&(t["error-callback"]=(...m)=>{this.zone.run(()=>this.errored(m))}),this.widget=this.grecaptcha.render(this.elementRef.nativeElement,t),!0===this.executeRequested&&(this.executeRequested=!1,this.execute())}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(e.SBq),e.Y36(c),e.Y36(e.R0b),e.Y36(b,8))},o.\u0275cmp=e.Xpm({type:o,selectors:[["re-captcha"]],hostVars:1,hostBindings:function(t,m){2&t&&e.uIk("id",m.id)},inputs:{id:"id",siteKey:"siteKey",theme:"theme",type:"type",size:"size",tabIndex:"tabIndex",badge:"badge",errorMode:"errorMode"},outputs:{resolved:"resolved",error:"error"},exportAs:["reCaptcha"],decls:0,vars:0,template:function(t,m){},encapsulation:2}),o})(),A=(()=>{class o{}return o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({}),o})(),C=(()=>{class o{}return o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({providers:[c],imports:[[A]]}),o})(),y=(()=>{class o{constructor(t){this.host=t,this.requiresControllerReset=!1}writeValue(t){t?this.host.__unsafe_widgetValue!==t&&!1===Boolean(this.host.__unsafe_widgetValue)&&(this.requiresControllerReset=!0):this.host.reset()}registerOnChange(t){this.onChange=t,this.requiresControllerReset&&(this.requiresControllerReset=!1,this.onChange(null))}registerOnTouched(t){this.onTouched=t}onResolve(t){this.onChange&&this.onChange(t),this.onTouched&&this.onTouched()}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(g))},o.\u0275dir=e.lG2({type:o,selectors:[["re-captcha","formControlName",""],["re-captcha","formControl",""],["re-captcha","ngModel",""]],hostBindings:function(t,m){1&t&&e.NdJ("resolved",function(_){return m.onResolve(_)})},features:[e._Bn([{multi:!0,provide:h.JU,useExisting:(0,e.Gpc)(()=>o)}])]}),o})(),x=(()=>{class o{}return o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[h.u5,A]]}),o})()}}]); \ No newline at end of file diff --git a/dist/fansubid/browser/index.html b/dist/fansubid/browser/index.html index 035929bbc..3cbd8b44e 100644 --- a/dist/fansubid/browser/index.html +++ b/dist/fansubid/browser/index.html @@ -63,7 +63,7 @@ - + \ No newline at end of file diff --git a/dist/fansubid/browser/main.604df6ed91f056f5.js b/dist/fansubid/browser/main.604df6ed91f056f5.js deleted file mode 100644 index cd69e258a..000000000 --- a/dist/fansubid/browser/main.604df6ed91f056f5.js +++ /dev/null @@ -1 +0,0 @@ -var lx=Object.defineProperty,cx=(it,U,a)=>U in it?lx(it,U,{enumerable:!0,configurable:!0,writable:!0,value:a}):it[U]=a,Gu=(it,U,a)=>(cx(it,"symbol"!=typeof U?U+"":U,a),a);(self.webpackChunkfansubid=self.webpackChunkfansubid||[]).push([[179],{192:(it,U,a)=>{"use strict";a.d(U,{d:()=>l});var n=a(5e3),r=a(8696);let l=(()=>{class u{constructor(I){this.gs=I}ngOnInit(){}}return u.\u0275fac=function(I){return new(I||u)(n.Y36(r.U))},u.\u0275cmp=n.Xpm({type:u,selectors:[["app-no-data"]],decls:5,vars:0,consts:[[2,"background-image","url('/assets/img/404/no-data.png')","background-size","contain","background-position","center","background-repeat","no-repeat","height","256px","overflow","hidden"],[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)"],[1,"m-0"]],template:function(I,M){1&I&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3",3),n._uU(4," Tidak Ada Data \xaf\\_(\u30c4)_/\xaf "),n.qZA()()()())},styles:[""]}),u})()},2438:(it,U,a)=>{"use strict";a.d(U,{d:()=>l});var n=a(9808),r=a(5e3);let l=(()=>{class u{}return u.\u0275fac=function(I){return new(I||u)},u.\u0275mod=r.oAB({type:u}),u.\u0275inj=r.cJS({imports:[[n.ez]]}),u})()},1617:(it,U,a)=>{"use strict";a.d(U,{u:()=>j});var n=a(6271),r=a(4249),l=a(5e3),u=a(4137),o=a(8696),I=a(8381),M=a(3379),g=a(8406),C=a(9808),D=a(7322),y=a(4107),_=a(508),E=a(7531),O=a(3075),ee=a(5245),ue=a(7423);const K=["liveChatScroll"];function ne(W,J){if(1&W&&(l.TgZ(0,"mat-option",17),l._uU(1,"Global Fansubber"),l.qZA()),2&W){const ie=l.oxw(2);l.Q6J("value",ie.CONSTANTS.socketRoomNameGlobalFansub)}}function De(W,J){if(1&W&&(l.TgZ(0,"div",26)(1,"div",27),l._UZ(2,"img",28),l.qZA(),l.TgZ(3,"div",29)(4,"h4",30)(5,"span"),l._uU(6),l.qZA()()()()),2&W){const ie=l.oxw().$implicit;l.MGl("routerLink","/user/",ie.value.username,""),l.xp6(2),l.s9C("src",ie.value.image_url,l.LSH),l.xp6(4),l.Oqu(ie.value.username)}}function ve(W,J){if(1&W&&(l.TgZ(0,"div",24),l.YNc(1,De,7,3,"div",25),l.qZA()),2&W){const ie=J.$implicit;l.xp6(1),l.Q6J("ngIf",ie.value)}}function Z(W,J){if(1&W&&(l.TgZ(0,"div",22),l.YNc(1,ve,2,1,"div",23),l.ALo(2,"keyvalue"),l.qZA()),2&W){const ie=l.oxw(2);l.xp6(1),l.Q6J("ngForOf",l.lcZ(2,1,ie.roomCurrentOrGlobal.member_list))}}function z(W,J){if(1&W){const ie=l.EpF();l.TgZ(0,"div",13)(1,"div",3)(2,"h3",14)(3,"mat-form-field",15)(4,"mat-label"),l._uU(5,"Ruang Obrolan"),l.qZA(),l.TgZ(6,"mat-select",16),l.NdJ("valueChange",function(nt){return l.CHM(ie),l.oxw().liveChatResult.roomId=nt})("valueChange",function(nt){return l.CHM(ie),l.oxw().changeRoom(nt)}),l.TgZ(7,"mat-option",17),l._uU(8,"Halaman Ini"),l.qZA(),l.TgZ(9,"mat-option",17),l._uU(10,"Global Publik"),l.qZA(),l.YNc(11,ne,2,1,"mat-option",18),l.qZA()()()(),l.TgZ(12,"div",19)(13,"div",20),l.YNc(14,Z,3,3,"div",21),l.qZA()()()}if(2&W){const ie=l.oxw();l.xp6(3),l.Q6J("color","accent"),l.xp6(3),l.Q6J("value",ie.liveChatResult.roomId),l.xp6(1),l.Q6J("value",ie.ROUTER.url),l.xp6(2),l.Q6J("value",ie.CONSTANTS.socketRoomNameGlobalPublic),l.xp6(2),l.Q6J("ngIf",ie.isAdminModFansubber),l.xp6(3),l.Q6J("ngIf",ie.roomCurrentOrGlobal)}}function V(W,J){if(1&W&&(l.TgZ(0,"div",27),l._UZ(1,"img",28),l.qZA()),2&W){const ie=l.oxw().$implicit;l.xp6(1),l.s9C("src",ie.sender.image_url,l.LSH)}}function Me(W,J){if(1&W){const ie=l.EpF();l.TgZ(0,"div"),l.YNc(1,V,2,1,"div",31),l.TgZ(2,"div",32)(3,"h5",30)(4,"span",33),l.NdJ("click",function(){const Tt=l.CHM(ie).$implicit;return l.oxw().openUserProfile(Tt.sender.username)}),l._uU(5),l.qZA(),l._UZ(6,"span",34),l.qZA()()()}if(2&W){const ie=J.$implicit,Be=J.index,nt=l.oxw();l.Gre("d-flex py-1 ",Be===nt.chatCurrentOrGlobal.length-nt.SS.messageChatUnreadCount?"border-top":"",""),l.xp6(1),l.Q6J("ngIf",ie.sender.image_url),l.xp6(4),l.hij(" ",ie.sender.username," "),l.xp6(1),l.Q6J("innerHtml",nt.innerHtml(ie.message),l.oJD)}}function Q(W,J){if(1&W){const ie=l.EpF();l.TgZ(0,"mat-form-field",35)(1,"mat-label"),l._uU(2,"Kirim Pesan Obrolan Disini ..."),l.qZA(),l.TgZ(3,"input",36),l.NdJ("keyup.enter",function(nt){return l.CHM(ie),l.oxw().applyFilter(nt)})("ngModelChange",function(nt){return l.CHM(ie),l.oxw().liveChatResult.messageToSend=nt}),l.qZA(),l.TgZ(4,"mat-icon",37),l._uU(5,"send"),l.qZA()()}if(2&W){const ie=l.oxw();l.Q6J("color","accent"),l.xp6(3),l.Q6J("ngModel",ie.liveChatResult.messageToSend)("disabled",!ie.canChat)}}function fe(W,J){if(1&W){const ie=l.EpF();l.TgZ(0,"button",38),l.NdJ("click",function(){return l.CHM(ie),l.oxw().login()}),l.TgZ(1,"mat-icon",39),l._uU(2,"vpn_key"),l.qZA(),l._uU(3," Login Untuk Bisa Mengobrol "),l.qZA()}}const Ae=function(W){return{height:W}};let j=(()=>{class W{constructor(ie,Be,nt,Tt,Rt){this.as=ie,this.gs=Be,this.ss=nt,this.ls=Tt,this.router=Rt,this.chatOnly=!1,this.liveChatResult={messageToSend:"",roomId:""},this.globalRoom=null,this.fansubRoom=null,this.currentRoom=null,this.messageHistory=[],this.subsCurrentRoom=null,this.subsGlobalRoom=null,this.subsFansubRoom=null,this.firstTimeOpen=!0,this.timedOut=null}get AS(){return this.as}get ROUTER(){return this.router}get SS(){return this.ss}ngOnInit(){this.gs.isBrowser&&(this.liveChatResult=this.ls.getItem(this.gs.localStorageKeys.LiveChatResults,!0)||this.liveChatResult,this.liveChatResult.roomId=this.router.url,this.subsCurrentRoom=this.ss.currentRoom.subscribe({next:ie=>{this.currentRoom=ie}}),this.subsGlobalRoom=this.ss.globalRoom.subscribe({next:ie=>{this.globalRoom=ie}}),this.subsFansubRoom=this.ss.fansubRoom.subscribe({next:ie=>{this.fansubRoom=ie}}))}get CONSTANTS(){return n.t}get isAdminModFansubber(){var ie,Be,nt,Tt,Rt,mt,gt;return!(!(null===(ie=this.as.currentUserSubject)||void 0===ie?void 0:ie.value)||(null===(nt=null===(Be=this.as.currentUserSubject)||void 0===Be?void 0:Be.value)||void 0===nt?void 0:nt.role)!==r.yS.ADMIN&&(null===(Rt=null===(Tt=this.as.currentUserSubject)||void 0===Tt?void 0:Tt.value)||void 0===Rt?void 0:Rt.role)!==r.yS.MODERATOR&&(null===(gt=null===(mt=this.as.currentUserSubject)||void 0===mt?void 0:mt.value)||void 0===gt?void 0:gt.role)!==r.yS.FANSUBBER)}get roomCurrentOrGlobal(){return this.liveChatResult.roomId===n.t.socketRoomNameGlobalPublic?this.globalRoom:this.liveChatResult.roomId===n.t.socketRoomNameGlobalFansub?this.fansubRoom:this.currentRoom}get chatCurrentOrGlobal(){return this.messageHistory=this.liveChatResult.roomId===n.t.socketRoomNameGlobalPublic?this.ss.globalChatRoom:this.liveChatResult.roomId===n.t.socketRoomNameGlobalFansub?this.ss.fansubChatRoom:this.ss.currentChatRoom,this.ss.messageChatUnreadCount>0&&this.scrollMessage(),this.messageHistory}get canChat(){var ie;return!!(null===(ie=this.as.currentUserSubject)||void 0===ie?void 0:ie.value)&&(this.liveChatResult.roomId!==n.t.socketRoomNameGlobalFansub||this.isAdminModFansubber)}ngAfterViewInit(){this.gs.isBrowser&&this.scrollMessage()}ngOnDestroy(){var ie,Be;this.ls.setItem(this.gs.localStorageKeys.LiveChatResults,this.liveChatResult),null===(ie=this.subsCurrentRoom)||void 0===ie||ie.unsubscribe(),null===(Be=this.subsGlobalRoom)||void 0===Be||Be.unsubscribe(),this.timedOut&&(clearTimeout(this.timedOut),this.timedOut=null)}innerHtml(ie){return this.gs.linkify(this.gs.htmlToText(ie))}scrollToBottom(){this.timedOut=setTimeout(()=>{this.ss.messageChatUnreadCount=0,this.liveChatScroll.nativeElement.scrollTop=this.liveChatScroll.nativeElement.scrollHeight},0)}scrollMessage(){this.liveChatScroll&&(this.firstTimeOpen?(this.firstTimeOpen=!1,this.scrollToBottom()):this.liveChatScroll.nativeElement.scrollTop+this.liveChatScroll.nativeElement.clientHeight===this.liveChatScroll.nativeElement.scrollHeight&&this.scrollToBottom())}sendMessage(){this.ss.socketEmit("send-chat",{roomId:this.roomCurrentOrGlobal.room_id,message:this.gs.htmlToText(this.liveChatResult.messageToSend)}),this.liveChatResult.messageToSend=null}applyFilter(ie){this.gs.log("[MESSAGE_VALUE_CHANGED]",ie),this.liveChatResult.messageToSend=ie.target.value.trim().toLowerCase(),this.liveChatResult.messageToSend&&this.sendMessage()}changeRoom(ie){this.gs.log("[MESSAGE_ROOM_CHANGED]",ie),this.liveChatResult.roomId=ie,this.scrollMessage()}login(){this.router.navigate(["/login"],{queryParams:{returnUrl:this.router.url}})}openUserProfile(ie){this.router.navigateByUrl(`/user/${ie}`)}}return W.\u0275fac=function(ie){return new(ie||W)(l.Y36(u.e),l.Y36(o.U),l.Y36(I.R),l.Y36(M.n),l.Y36(g.F0))},W.\u0275cmp=l.Xpm({type:W,selectors:[["app-live-chat"]],viewQuery:function(ie,Be){if(1&ie&&l.Gf(K,5),2&ie){let nt;l.iGM(nt=l.CRH())&&(Be.liveChatScroll=nt.first)}},inputs:{chatOnly:"chatOnly"},decls:15,vars:13,consts:[[1,"row",3,"ngStyle"],[1,"col-12","h-100"],["class","row","style","height: 40%!important;",4,"ngIf"],[1,"col-12","sticky-top","bg-bifeldy"],[1,"pt-3","border-bottom-dotted"],[1,"text-bifeldy"],[1,"col-12"],[2,"overflow-y","auto",3,"ngStyle"],["liveChatScroll",""],[3,"class",4,"ngFor","ngForOf"],[1,"col-12","mt-auto"],["class","mt-3 col-12",3,"color",4,"ngIf"],["class","mt-4 col-12 text-light","mat-flat-button","","color","accent",3,"click",4,"ngIf"],[1,"row",2,"height","40%!important"],[1,"border-bottom-dotted","row"],[1,"pt-3","col-12",3,"color"],[3,"value","valueChange"],[3,"value"],[3,"value",4,"ngIf"],[1,"col-12",2,"height","calc(100% - 105px)"],[1,"h-100",2,"overflow-y","auto"],["class","row m-0",4,"ngIf"],[1,"row","m-0"],["class","col-6 p-0",4,"ngFor","ngForOf"],[1,"col-6","p-0"],["class","card d-flex py-1 align-items-center p-1 text-success",3,"routerLink",4,"ngIf"],[1,"card","d-flex","py-1","align-items-center","p-1","text-success",3,"routerLink"],[1,"flex-shrink-0"],["height","24","width","24",1,"ms-1","mt-1",2,"border-radius","0",3,"src"],[1,"flex-grow-1","ms-1"],["matLine","",1,"m-0"],["class","flex-shrink-0",4,"ngIf"],[1,"flex-grow-1","mx-1","my-auto"],[1,"me-1","text-success",2,"cursor","pointer",3,"click"],[1,"text-warning",2,"word-break","break-word",3,"innerHtml"],[1,"mt-3","col-12",3,"color"],["matInput","","maxlength","200","placeholder","Ex. Hello \u4e16\u754c\uff01",3,"ngModel","disabled","keyup.enter","ngModelChange"],["matSuffix",""],["mat-flat-button","","color","accent",1,"mt-4","col-12","text-light",3,"click"],[1,"me-1"]],template:function(ie,Be){1&ie&&(l.TgZ(0,"div",0)(1,"div",1),l.YNc(2,z,15,6,"div",2),l.TgZ(3,"div",0)(4,"div",3)(5,"h2",4)(6,"b",5),l._uU(7,"Obrolan"),l.qZA()()(),l.TgZ(8,"div",6)(9,"div",7,8),l.YNc(11,Me,7,6,"div",9),l.qZA()(),l.TgZ(12,"div",10),l.YNc(13,Q,6,3,"mat-form-field",11),l.YNc(14,fe,4,0,"button",12),l.qZA()()()()),2&ie&&(l.Q6J("ngStyle",l.VKq(7,Ae,Be.chatOnly?"":"calc(100vh - 120px)")),l.xp6(2),l.Q6J("ngIf",!Be.chatOnly),l.xp6(1),l.Q6J("ngStyle",l.VKq(9,Ae,Be.chatOnly?"100%!important":"60%!important")),l.xp6(6),l.Q6J("ngStyle",l.VKq(11,Ae,Be.chatOnly?"320px":"calc(50vh - 139px)")),l.xp6(2),l.Q6J("ngForOf",Be.chatCurrentOrGlobal),l.xp6(2),l.Q6J("ngIf",null==Be.AS.currentUserSubject?null:Be.AS.currentUserSubject.value),l.xp6(1),l.Q6J("ngIf",!(null!=Be.AS.currentUserSubject&&Be.AS.currentUserSubject.value)))},directives:[C.PC,C.O5,D.KE,D.hX,y.gD,_.ey,C.sg,g.rH,_.X2,E.Nt,O.Fj,O.nD,O.JJ,O.On,ee.Hw,D.R9,ue.lW],pipes:[C.Nd],styles:[".card[_ngcontent-%COMP%]{position:inherit;display:flex;flex-direction:row;min-width:0;word-wrap:break-word;background-color:#0000!important;background-clip:border-box;border:none;border-radius:.25rem;cursor:pointer}.card[_ngcontent-%COMP%]:hover{color:#ffc107!important}"]}),W})()},5116:(it,U,a)=>{"use strict";a.d(U,{d:()=>I});var n=a(9808),r=a(8406),l=a(3075),u=a(210),o=a(5e3);let I=(()=>{class M{}return M.\u0275fac=function(C){return new(C||M)},M.\u0275mod=o.oAB({type:M}),M.\u0275inj=o.cJS({imports:[[n.ez,r.Bz,l.u5,u.m]]}),M})()},2777:(it,U,a)=>{"use strict";a.d(U,{t:()=>g});var n=a(6271),r=a(5e3),l=a(8406),u=a(4137),o=a(6925),I=a(8696),M=a(3e3);let g=(()=>{class C{constructor(y,_,E,O,ee){this.router=y,this.as=_,this.toast=E,this.gs=O,this.bs=ee}canActivate(y,_){var E;const O=y.data[n.t.decoratorRoles];if(!O)return!0;if(this.gs.isBrowser){const ee=null===(E=this.as.currentUserSubject)||void 0===E?void 0:E.value;if(ee)return!!O.includes(ee.role)||(this.bs.clear(),this.toast.error(`Membutuhkan Role :: ${O.join(" / ")}`,"Whoops, Akses Ditolak!",null,!0),this.router.navigateByUrl(this.gs.previousUrl||"/"),!1);this.bs.clear(),this.toast.error("Harap Login Terlebih Dahulu~","Whoops, Akses Ditolak!",null,!0)}return this.router.navigate(["/login"],{queryParams:{returnUrl:_.url}}),!1}}return C.\u0275fac=function(y){return new(y||C)(r.LFG(l.F0),r.LFG(u.e),r.LFG(o.k),r.LFG(I.U),r.LFG(M.z))},C.\u0275prov=r.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})()},5094:(it,U,a)=>{"use strict";a.d(U,{H:()=>g});var n=a(6271),r=a(5e3),l=a(8406),u=a(4137),o=a(6925),I=a(8696),M=a(3e3);let g=(()=>{class C{constructor(y,_,E,O,ee){this.router=y,this.as=_,this.toast=E,this.gs=O,this.bs=ee}canActivate(y,_){var E;if(!y.data[n.t.decoratorVerifiedOnly])return!0;if(this.gs.isBrowser){const ee=null===(E=this.as.currentUserSubject)||void 0===E?void 0:E.value;if(ee)return!!ee.verified||(this.bs.clear(),this.toast.error("Khusus Pengguna Terverifikasi","Whoops, Akses Ditolak!",null,!0),this.router.navigateByUrl("/verify"),!1);this.bs.clear(),this.toast.error("Harap Login Terlebih Dahulu~","Whoops, Akses Ditolak!",null,!0)}return this.router.navigate(["/login"],{queryParams:{returnUrl:_.url}}),!1}}return C.\u0275fac=function(y){return new(y||C)(r.LFG(l.F0),r.LFG(u.e),r.LFG(o.k),r.LFG(I.U),r.LFG(M.z))},C.\u0275prov=r.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})()},210:(it,U,a)=>{"use strict";a.d(U,{m:()=>W});var n=a(1555),r=a(1079),l=a(7544),u=a(7423),o=a(9224),I=a(6688),M=a(6856),g=a(8966),C=a(4834),D=a(1125),y=a(3954),_=a(5245),E=a(7531),O=a(4623),ee=a(508),ue=a(6087),K=a(5899),ne=a(4107),De=a(2638),ve=a(2368),Z=a(5615),z=a(4999),V=a(3251),Me=a(4594),Q=a(7238),fe=a(7261),Ae=a(4847),j=a(5e3);let W=(()=>{class J{}return J.\u0275fac=function(Be){return new(Be||J)},J.\u0275mod=j.oAB({type:J}),J.\u0275inj=j.cJS({imports:[n.U5,r.Bb,l.g,u.ot,o.QW,I.Hi,M.FA,g.Is,C.t,D.To,y.N6,_.Ps,E.c,O.ie,ee.XK,ue.TU,K.Cv,ee.si,ne.LD,De.SJ,ve.rP,Z.T5,z.p0,V.Nh,Me.g0,Q.AV,fe.ZX,Ae.JX]}),J})()},3626:(it,U,a)=>{"use strict";a.d(U,{$:()=>r});var n=a(5e3);class r{static formatResult(u,o){return`${u} ${o}`}static calculateResult(u,o){const I=u.prev?r.formats[u.prev]:void 0;return I?o/I.max:o}isNumber(u){return"number"==typeof u}isNumberFinite(u){return this.isNumber(u)&&isFinite(u)}isPositive(u){return u>=0}isInteger(u){return u%1==0}toDecimal(u,o){return Math.round(u*Math.pow(10,o))/Math.pow(10,o)}transform(u,o=0,I="B",M){if(!(this.isNumberFinite(u)&&this.isNumberFinite(o)&&this.isInteger(o)&&this.isPositive(o)))return u;let g=u,C=I;for(;"B"!==C;)g*=1024,C=r.formats[C].prev;if(M){const y=this.toDecimal(r.calculateResult(r.formats[M],g),o);return r.formatResult(y,M)}for(const D in r.formats)if(r.formats.hasOwnProperty(D)){const y=r.formats[D];if(g{"use strict";a.d(U,{T:()=>l});var n=a(9808),r=a(5e3);let l=(()=>{class u{}return u.\u0275fac=function(I){return new(I||u)},u.\u0275mod=r.oAB({type:u}),u.\u0275inj=r.cJS({imports:[[n.ez]]}),u})()},1861:(it,U,a)=>{"use strict";a.d(U,{H:()=>l});var n=a(5e3),r=a(2313);let l=(()=>{class u{constructor(I){this.domSanitizer=I}transform(I){return this.domSanitizer.bypassSecurityTrustHtml(I)}}return u.\u0275fac=function(I){return new(I||u)(n.Y36(r.H7,16))},u.\u0275pipe=n.Yjl({name:"safeInnerHtml",type:u,pure:!0}),u})()},466:(it,U,a)=>{"use strict";a.d(U,{l:()=>o});var n=a(5934),r=a(5e3),l=a(9731),u=a(8696);let o=(()=>{class I{constructor(g,C){this.api=g,this.gs=C,this.menuList=[{url:"banned-list",name:"Banned List",image_url:null,icon:"lock_open",deskripsi:"Kelola Banned User"},{url:"ddl-list",name:"Berkas DDL",image_url:null,icon:"insert_drive_file",deskripsi:"Kelola Berkas DDL"},{url:"dns",name:"CNAME / A Record",image_url:null,icon:"badge",deskripsi:`sub-domain.${n.N.domain}`},{url:"cors-list",name:"CORS & API Key",image_url:null,icon:"privacy_tip",deskripsi:"Cross-Origin API"},{url:"email",name:"Email",image_url:null,icon:"alternate_email",deskripsi:`email.address@${n.N.domain}`},{url:"fansub-member",name:"Fansub Members",image_url:null,icon:"stars",deskripsi:"Keanggotaan Fansub"},{url:"information",name:"Informasi Dialog",image_url:null,icon:"live_help",deskripsi:"Popup Info Dialog"},{url:"project-type",name:"Project Type",image_url:null,icon:"loyalty",deskripsi:"Kategori Garapan"},{url:"push-notification",name:"Push Notification",image_url:null,icon:"notifications_active",deskripsi:"Pengumuman Dadakan"},{url:"user-list",name:"User List",image_url:null,icon:"supervisor_account",deskripsi:"Seluruh Member"}]}getAllNotif(g="",C=1,D=10,y="",_=""){return this.api.getData(`/notification?q=${g}&page=${C}&row=${D}&sort=${y}&order=${_}`)}createNotif(g){return this.api.postData("/notification",g)}deleteNotif(g){return this.api.deleteData(`/notification/${g}`)}getAllBanned(g="",C=1,D=10,y="",_=""){return this.api.getData(`/banned?q=${g}&page=${C}&row=${D}&sort=${y}&order=${_}`)}unBan(g){return this.api.deleteData(`/banned/${g}`)}ban(g){return this.api.postData("/banned",g)}proDemote(g){return this.api.postData("/promote",g)}getAllCors(g="",C=1,D=10,y="",_=""){return this.api.getData(`/api-key?q=${g}&page=${C}&row=${D}&sort=${y}&order=${_}`)}revokeCors(g){return this.api.deleteData(`/api-key/${g}`)}}return I.\u0275fac=function(g){return new(g||I)(r.LFG(l.s),r.LFG(u.U))},I.\u0275prov=r.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"}),I})()},519:(it,U,a)=>{"use strict";a.d(U,{o:()=>u});var n=a(5e3),r=a(9731),l=a(8696);let u=(()=>{class o{constructor(M,g){this.api=M,this.gs=g}searchAnime(M){return this.api.getData(`/anime?q=${M}`)}getAnime(M){return this.api.getData(`/anime/${M}`)}addNewAnime(M){return this.api.patchData("/anime",M)}getSeasonalAnime(M,g){return this.api.getData(`/anime-seasonal?year=${M}&season=${g}`)}getBerkasAnime(M=[],g="",C=1,D=10,y="",_=""){return this.api.patchData(`/anime-berkas?q=${g}&page=${C}&row=${D}&sort=${y}&order=${_}`,{id:M})}getFansubAnime(M=[],g=1,C=10){return this.api.patchData(`/anime-fansub?page=${g}&row=${C}`,{id:M})}}return o.\u0275fac=function(M){return new(M||o)(n.LFG(r.s),n.LFG(l.U))},o.\u0275prov=n.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})()},9731:(it,U,a)=>{"use strict";a.d(U,{s:()=>ue});var n=a(520),r=a(4986),l=a(1165),u=a(4482),o=a(8421),I=a(3888),M=a(5403),g=a(9672);const C=(0,I.d)(K=>function(De=null){K(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=De});function D(K,ne){const{first:De,each:ve,with:Z=y,scheduler:z=(null!=ne?ne:r.z),meta:V=null}=(0,l.q)(K)?{first:K}:"number"==typeof K?{each:K}:K;if(null==De&&null==ve)throw new TypeError("No timeout provided.");return(0,u.e)((Me,Q)=>{let fe,Ae,j=null,W=0;const J=ie=>{Ae=(0,g.f)(Q,z,()=>{try{fe.unsubscribe(),(0,o.Xf)(Z({meta:V,lastValue:j,seen:W})).subscribe(Q)}catch(Be){Q.error(Be)}},ie)};fe=Me.subscribe((0,M.x)(Q,ie=>{null==Ae||Ae.unsubscribe(),W++,Q.next(j=ie),ve>0&&J(ve)},void 0,void 0,()=>{(null==Ae?void 0:Ae.closed)||null==Ae||Ae.unsubscribe(),j=null})),!W&&J(null!=De?"number"==typeof De?De:+De-z.now():ve)})}function y(K){throw new C(K)}var _=a(5625),E=a(5934),O=a(5e3),ee=a(8696);let ue=(()=>{class K{constructor(De,ve){this.http=De,this.gs=ve}HTTP_REQ_URL(De){if(De.startsWith("/")){let ve=E.N.baseUrl;De.startsWith("/api/")||(ve+=E.N.apiUrl),De=ve+De}return De}getData(De,ve={},Z=2e4,z=3){return this.gs.log("[API_GET]",De),this.prepareOptions(ve),this.http.get(this.HTTP_REQ_URL(De),ve).pipe(D(Z),(0,_.X)(z))}postData(De,ve={},Z=!1,z={},V=6e4){this.gs.log("[API_POST]",De);let Me=ve;return Z&&(Me=this.prepareFormData(ve)),this.prepareOptions(z),this.http.post(this.HTTP_REQ_URL(De),Me,z).pipe(D(V))}putData(De,ve={},Z=!1,z={},V=6e4){this.gs.log("[API_PUT]",De);let Me=ve;return Z&&(Me=this.prepareFormData(ve)),this.prepareOptions(z),this.http.put(this.HTTP_REQ_URL(De),Me,z).pipe(D(V))}patchData(De,ve={},Z=!1,z={},V=6e4){this.gs.log("[API_PATCH]",De);let Me=ve;return Z&&(Me=this.prepareFormData(ve)),this.prepareOptions(z),this.http.patch(this.HTTP_REQ_URL(De),Me,z).pipe(D(V))}deleteData(De,ve={},Z=2e4,z=3){return this.gs.log("[API_DELETE]",De),this.prepareOptions(ve),this.http.delete(this.HTTP_REQ_URL(De),ve).pipe(D(Z),(0,_.X)(z))}prepareOptions(De){De.headers instanceof n.WM||(De.headers=new n.WM(De.headers))}prepareFormData(De){const ve=new FormData;for(const Z in De)De.hasOwnProperty(Z)&&ve.append(Z,De[Z]);return ve}}return K.\u0275fac=function(De){return new(De||K)(O.LFG(n.eN),O.LFG(ee.U))},K.\u0275prov=O.Yz7({token:K,factory:K.\u0275fac,providedIn:"root"}),K})()},4137:(it,U,a)=>{"use strict";a.d(U,{e:()=>C});var n=a(1135),r=a(8505),l=a(5e3),u=a(8406),o=a(8696),I=a(3e3),M=a(3379),g=a(9731);let C=(()=>{class D{constructor(_,E,O,ee,ue){this.router=_,this.gs=E,this.bs=O,this.ls=ee,this.api=ue,this.currentUserSubject=new n.X(null),this.currentUser=this.currentUserSubject.asObservable(),this.token=null,this.gs.isBrowser&&(this.token=this.ls.getItem(this.gs.localStorageKeys.token),this.ls.removeItem(this.gs.localStorageKeys.token))}verify(_){return this.gs.log("[AUTH_VERIFY]",_),this.api.patchData("/verify",{token:_}).pipe((0,r.b)(E=>{this.currentUserSubject.next(E.result),this.token=E.token}))}resendActivation(_){return this.gs.log("[AUTH_ACTIVATION]",_),this.api.postData("/aktivasi",{id:_})}login(_){return this.gs.log("[AUTH_LOGIN]",_),this.api.postData("/login",_).pipe((0,r.b)(E=>{this.token=E.result.token}))}register(_){return this.gs.log("[AUTH_REGISTER]",_),this.api.postData("/register",_)}removeUser(){this.currentUserSubject.next(null),this.token=null}logout(){this.gs.log("[AUTH_LOGOUT]",this.token),this.bs.busy(),this.api.deleteData("/logout").subscribe({next:_=>{this.gs.log("[LOGOUT_SUCCESS]",_),this.bs.idle(),this.removeUser(),this.ls.clear(),this.router.navigateByUrl("/")},error:_=>{this.gs.log("[LOGOUT_ERROR]",_,"error"),this.bs.idle()}})}}return D.\u0275fac=function(_){return new(_||D)(l.LFG(u.F0),l.LFG(o.U),l.LFG(I.z),l.LFG(M.n),l.LFG(g.s))},D.\u0275prov=l.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),D})()},8987:(it,U,a)=>{"use strict";a.d(U,{A:()=>u});var n=a(5e3),r=a(9731),l=a(8696);let u=(()=>{class o{constructor(M,g){this.api=M,this.gs=g}getAllBerkas(M="",g=1,C=10,D="",y=""){return this.api.getData(`/berkas?q=${M}&page=${g}&row=${C}&sort=${D}&order=${y}`)}getBerkas(M){return this.api.getData(`/berkas/${M}`)}createBerkas(M){return this.api.postData("/berkas",M)}updateBerkas(M,g){return this.api.putData(`/berkas/${M}`,g)}}return o.\u0275fac=function(M){return new(M||o)(n.LFG(r.s),n.LFG(l.U))},o.\u0275prov=n.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})()},3e3:(it,U,a)=>{"use strict";a.d(U,{z:()=>o});var n=a(7579),r=a(5e3),l=a(72),u=a(8696);let o=(()=>{class I{constructor(g,C){this.spinnerService=g,this.gs=C,this.cancelPendingRequests$=new n.x,this.busyRequestCount=0}get onCancelPendingRequests(){return this.cancelPendingRequests$.asObservable()}busy(){this.gs.isBrowser&&(this.busyRequestCount<=0&&this.spinnerService.show(),this.busyRequestCount++,this.gs.log("[BUSY_STATE_COUNTER_BUSY]",this.busyRequestCount))}idle(){this.gs.isBrowser&&(this.busyRequestCount--,this.busyRequestCount<=0&&(this.busyRequestCount=0,this.spinnerService.hide()),this.gs.log("[BUSY_STATE_COUNTER_IDLE]",this.busyRequestCount))}clear(){if(this.gs.isBrowser)for(;this.busyRequestCount>0;)this.idle(),this.cancelPendingRequests$.next()}}return I.\u0275fac=function(g){return new(g||I)(r.LFG(l.t2),r.LFG(u.U))},I.\u0275prov=r.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"}),I})()},8379:(it,U,a)=>{"use strict";a.d(U,{$:()=>o});var n=a(7206),r=a.n(n),l=a(5e3),u=a(8696);let o=(()=>{class I{constructor(g){this.gs=g,this.keySize=256,this.ivSize=128,this.iterations=100}encrypt(g,C){const D=r().lib.WordArray.random(16),y=r().PBKDF2(C,D,{keySize:this.keySize/32,iterations:this.iterations}),_=r().lib.WordArray.random(16),E=r().AES.encrypt(g,y,{iv:_,padding:r().pad.Pkcs7,mode:r().mode.CBC});return D.toString()+_.toString()+E.toString()}decrypt(g,C){const D=r().enc.Hex.parse(g.substr(0,32)),y=r().enc.Hex.parse(g.substr(32,32)),_=g.substring(64),E=r().PBKDF2(C,D,{keySize:this.keySize/32,iterations:this.iterations});return r().AES.decrypt(_,E,{iv:y,padding:r().pad.Pkcs7,mode:r().mode.CBC}).toString(r().enc.Utf8)}hashPassword(g){return r().SHA512(g).toString()}}return I.\u0275fac=function(g){return new(g||I)(l.LFG(u.U))},I.\u0275prov=l.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"}),I})()},7845:(it,U,a)=>{"use strict";a.d(U,{x:()=>Ls});var n=a(5861),r=a(6805);function l(S,m){const d="object"==typeof m;return new Promise((T,se)=>{let lt,Ue=!1;S.subscribe({next:ht=>{lt=ht,Ue=!0},error:se,complete:()=>{Ue?T(lt):d?T(m.defaultValue):se(new r.K)}})})}var u=a(8966),o=a(5e3),I=a(8696),M=a(9808),g=a(7423),C=a(1861);function D(S,m){if(1&S&&(o.TgZ(0,"small",6)(1,"i"),o._uU(2),o.qZA()()),2&S){const d=o.oxw();o.xp6(2),o.hij("* ",d.DATA.infoText,"")}}function y(S,m){if(1&S&&(o.TgZ(0,"button",7),o._uU(1),o.qZA()),2&S){const d=o.oxw();o.Q6J("mat-dialog-close",!1),o.xp6(1),o.Oqu(d.DATA.cancelText)}}let _=(()=>{class S{constructor(d,T){this.data=d,this.gs=T}get DATA(){return this.data}ngOnInit(){this.gs.log("[DIALOG_DATA_IN]",this.data)}}return S.\u0275fac=function(d){return new(d||S)(o.Y36(u.WI),o.Y36(I.U))},S.\u0275cmp=o.Xpm({type:S,selectors:[["app-material-dialog-info"]],decls:9,vars:8,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"text-break","text-warning",3,"innerHTML"],["mat-dialog-actions",""],["class","text-start m-2",4,"ngIf"],["mat-button","",1,"ms-auto","text-success","shiny",3,"mat-dialog-close"],["mat-button","",3,"mat-dialog-close",4,"ngIf"],[1,"text-start","m-2"],["mat-button","",3,"mat-dialog-close"]],template:function(d,T){1&d&&(o.TgZ(0,"h1",0),o._uU(1),o.qZA(),o._UZ(2,"div",1),o.ALo(3,"safeInnerHtml"),o.TgZ(4,"div",2),o.YNc(5,D,3,1,"small",3),o.TgZ(6,"button",4),o._uU(7),o.qZA(),o.YNc(8,y,2,2,"button",5),o.qZA()),2&d&&(o.xp6(1),o.Oqu(T.DATA.title),o.xp6(1),o.Q6J("innerHTML",o.lcZ(3,6,T.DATA.htmlMessage),o.oJD),o.xp6(3),o.Q6J("ngIf",T.DATA.infoText),o.xp6(1),o.Q6J("mat-dialog-close",!0),o.xp6(1),o.Oqu(T.DATA.confirmText),o.xp6(1),o.Q6J("ngIf",T.DATA.cancelText))},directives:[u.uh,u.xY,u.H8,M.O5,g.lW,u.ZT],pipes:[C.H],styles:[""]}),S})();var E=a(7238),O=a(5245);const ee=["dmakElement"];let ue=(()=>{class S{constructor(d,T){this.data=d,this.gs=T,this.dmak=null,this.dmakUrl="/assets/kanji/",this.charToDraw="NO DATA"}get DATA(){return this.data}ngOnInit(){this.gs.log("[DIALOG_DATA_IN]",this.data),"hiragana_katakana_kanji"in this.data&&this.data.hiragana_katakana_kanji&&(this.charToDraw=this.data.hiragana_katakana_kanji)}ngAfterViewInit(){this.dmak=new Dmak(this.charToDraw,{element:"dmakElement",uri:this.dmakUrl,stroke:{order:{visible:!0},attr:{active:"#f44336",stroke:"#28a745"}}})}play(){this.dmak.render()}pause(){this.dmak.pause()}next(){this.pause(),this.dmak.renderNextStrokes(1)}back(){this.pause(),this.dmak.eraseLastStrokes(1)}reset(){this.pause(),this.dmak.erase()}}return S.\u0275fac=function(d){return new(d||S)(o.Y36(u.WI),o.Y36(I.U))},S.\u0275cmp=o.Xpm({type:S,selectors:[["app-material-dialog-dmak"]],viewQuery:function(d,T){if(1&d&&o.Gf(ee,5),2&d){let se;o.iGM(se=o.CRH())&&(T.dmakElement=se.first)}},decls:12,vars:1,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"text-break"],["id","dmakElement",1,"text-center"],["dmakElement",""],["mat-dialog-actions",""],["mat-button","","matTooltip","Back",1,"ms-auto",3,"click"],["mat-button","","matTooltip","Next",3,"click"]],template:function(d,T){1&d&&(o.TgZ(0,"h1",0),o._uU(1),o.qZA(),o.TgZ(2,"div",1),o._UZ(3,"div",2,3),o.qZA(),o.TgZ(5,"div",4)(6,"button",5),o.NdJ("click",function(){return T.back()}),o.TgZ(7,"mat-icon"),o._uU(8,"chevron_left"),o.qZA()(),o.TgZ(9,"button",6),o.NdJ("click",function(){return T.next()}),o.TgZ(10,"mat-icon"),o._uU(11,"chevron_right"),o.qZA()()()),2&d&&(o.xp6(1),o.hij("Cara Penulisan '",T.DATA.romaji,"'"))},directives:[u.uh,u.xY,u.H8,g.lW,E.gM,O.Hw],styles:[""]}),S})();function K(S){return null===S?"null":S!==Object(S)?typeof S:{}.toString.call(S).slice(8,-1).toLowerCase()}function ne(S){return"string"!==K(S)||!S.length}const V={useObsoleteKana:!1,passRomaji:!1,upcaseKatakana:!1,IMEMode:!1,convertLongVowelMark:!0,romanization:"hepburn"};var At=Number.isNaN||function(m){return"number"==typeof m&&m!=m};function Bt(S,m){return!!(S===m||At(S)&&At(m))}function qt(S,m){if(S.length!==m.length)return!1;for(var d=0;d{const se="string"===K(T);return m[d]=se?{"":T}:Wt(T),m},{})}function Se(S,m){return m.split("").reduce((d,T)=>(void 0===d[T]&&(d[T]={}),d[T]),S)}function pt(S={}){const m={};return"object"===K(S)&&Object.entries(S).forEach(([d,T])=>{let se=m;d.split("").forEach(Ue=>{void 0===se[Ue]&&(se[Ue]={}),se=se[Ue]}),se[""]=T}),function(T){return function Ue(lt,ht){return void 0===lt||"string"===K(lt)?ht:Object.entries(ht).reduce((Ot,[Ht,hn])=>(Ot[Ht]=Ue(lt[Ht],hn),Ot),lt)}(JSON.parse(JSON.stringify(T)),m)}}function we(S,m){return m?"function"===K(m)?m(S):pt(m)(S):S}const le={a:"\u3042",i:"\u3044",u:"\u3046",e:"\u3048",o:"\u304a",k:{a:"\u304b",i:"\u304d",u:"\u304f",e:"\u3051",o:"\u3053"},s:{a:"\u3055",i:"\u3057",u:"\u3059",e:"\u305b",o:"\u305d"},t:{a:"\u305f",i:"\u3061",u:"\u3064",e:"\u3066",o:"\u3068"},n:{a:"\u306a",i:"\u306b",u:"\u306c",e:"\u306d",o:"\u306e"},h:{a:"\u306f",i:"\u3072",u:"\u3075",e:"\u3078",o:"\u307b"},m:{a:"\u307e",i:"\u307f",u:"\u3080",e:"\u3081",o:"\u3082"},y:{a:"\u3084",u:"\u3086",o:"\u3088"},r:{a:"\u3089",i:"\u308a",u:"\u308b",e:"\u308c",o:"\u308d"},w:{a:"\u308f",i:"\u3090",e:"\u3091",o:"\u3092"},g:{a:"\u304c",i:"\u304e",u:"\u3050",e:"\u3052",o:"\u3054"},z:{a:"\u3056",i:"\u3058",u:"\u305a",e:"\u305c",o:"\u305e"},d:{a:"\u3060",i:"\u3062",u:"\u3065",e:"\u3067",o:"\u3069"},b:{a:"\u3070",i:"\u3073",u:"\u3076",e:"\u3079",o:"\u307c"},p:{a:"\u3071",i:"\u3074",u:"\u3077",e:"\u307a",o:"\u307d"},v:{a:"\u3094\u3041",i:"\u3094\u3043",u:"\u3094",e:"\u3094\u3047",o:"\u3094\u3049"}},$={".":"\u3002",",":"\u3001",":":"\uff1a","/":"\u30fb","!":"\uff01","?":"\uff1f","~":"\u301c","-":"\u30fc","\u2018":"\u300c","\u2019":"\u300d","\u201c":"\u300e","\u201d":"\u300f","[":"\uff3b","]":"\uff3d","(":"\uff08",")":"\uff09","{":"\uff5b","}":"\uff5d"},pe={k:"\u304d",s:"\u3057",t:"\u3061",n:"\u306b",h:"\u3072",m:"\u307f",r:"\u308a",g:"\u304e",z:"\u3058",d:"\u3062",b:"\u3073",p:"\u3074",v:"\u3094",q:"\u304f",f:"\u3075"},Pe={ya:"\u3083",yi:"\u3043",yu:"\u3085",ye:"\u3047",yo:"\u3087"},ye={a:"\u3041",i:"\u3043",u:"\u3045",e:"\u3047",o:"\u3049"},Ne={sh:"sy",ch:"ty",cy:"ty",chy:"ty",shy:"sy",j:"zy",jy:"zy",shi:"si",chi:"ti",tsu:"tu",ji:"zi",fu:"hu"},Ve=Object.assign({tu:"\u3063",wa:"\u308e",ka:"\u30f5",ke:"\u30f6"},ye,Pe),bt={yi:"\u3044",wu:"\u3046",ye:"\u3044\u3047",wi:"\u3046\u3043",we:"\u3046\u3047",kwa:"\u304f\u3041",whu:"\u3046",tha:"\u3066\u3083",thu:"\u3066\u3085",tho:"\u3066\u3087",dha:"\u3067\u3083",dhu:"\u3067\u3085",dho:"\u3067\u3087"},xt={wh:"\u3046",qw:"\u304f",q:"\u304f",gw:"\u3050",sw:"\u3059",ts:"\u3064",th:"\u3066",tw:"\u3068",dh:"\u3067",dw:"\u3069",fw:"\u3075",f:"\u3075"},cn={kwi:"\u304f\u3043",kuxi:"\u304f\u3043",kuli:"\u304f\u3043",kwe:"\u304f\u3047",kuxe:"\u304f\u3047",kule:"\u304f\u3047",kwo:"\u304f\u3049",kuxo:"\u304f\u3049",kulo:"\u304f\u3049"};function ct(){const S=Wt(le),m=se=>Se(S,se);function T(se){return Object.entries(se).reduce((Ue,[lt,ht])=>(Ue[lt]=lt?T(ht):`\u3063${ht}`,Ue),{})}return Object.entries(pe).forEach(([se,Ue])=>{Object.entries(Pe).forEach(([lt,ht])=>{m(se+lt)[""]=Ue+ht})}),Object.entries($).forEach(([se,Ue])=>{m(se)[""]=Ue}),Object.entries(cn).forEach(([se,Ue])=>{m(se)[""]=Ue}),Object.entries(xt).forEach(([se,Ue])=>{Object.entries(ye).forEach(([lt,ht])=>{m(se+lt)[""]=Ue+ht})}),["n","n'","xn"].forEach(se=>{m(se)[""]="\u3093"}),S.c=JSON.parse(JSON.stringify(S.k)),Object.entries(Ne).forEach(([se,Ue])=>{const lt=se.slice(0,se.length-1),ht=se.charAt(se.length-1);m(lt)[ht]=JSON.parse(JSON.stringify(m(Ue)))}),Object.entries(Ve).forEach(([se,Ue])=>{const lt=yn=>yn.charAt(yn.length-1),ht=yn=>yn.slice(0,yn.length-1),Ht=m(`x${se}`);Ht[""]=Ue,m(`l${ht(se)}`)[lt(se)]=Ht,function d(se){return[...Object.entries(Ne),["c","k"]].reduce((Ue,[lt,ht])=>se.startsWith(ht)?Ue.concat(se.replace(ht,lt)):Ue,[])}(se).forEach(yn=>{["l","x"].forEach(In=>{m(In+ht(yn))[lt(yn)]=m(In+se)})})}),Object.entries(bt).forEach(([se,Ue])=>{m(se)[""]=Ue}),[...Object.keys(pe),"c","y","w","j"].forEach(se=>{const Ue=S[se];Ue[se]=T(Ue)}),delete S.n.n,Object.freeze(JSON.parse(JSON.stringify(S)))}let ut=null;const yt=pt({wi:"\u3090",we:"\u3091"});function Dn(S=""){return!ne(S)&&12540===S.charCodeAt(0)}function ni(S=""){return function De(S="",m,d){if(ne(S))return!1;const T=S.charCodeAt(0);return m<=T&&T<=d}(S,12449,12540)}Zt((S,m,d)=>{let T=function tt(){return null==ut&&(ut=ct()),ut}();return T=S?function Nt(S){const m=JSON.parse(JSON.stringify(S));return m.n.n={"":"\u3093"},m.n[" "]={"":"\u3093"},m}(T):T,T=m?yt(T):T,d&&(T=we(T,d)),T},En);const Lt={a:"\u3042",i:"\u3044",u:"\u3046",e:"\u3048",o:"\u3046"};function nn(S="",m,{isDestinationRomaji:d,convertLongVowelMark:T}={}){let se="";return S.split("").reduce((Ue,lt,ht)=>{if(function kn(S=""){return!ne(S)&&12539===S.charCodeAt(0)}(lt)||((S,m)=>Dn(S)&&m<1)(lt,ht)||(S=>["\u30f6","\u30f5"].includes(S))(lt))return Ue.concat(lt);if(T&&se&&((S,m)=>Dn(S)&&m>0)(lt,ht)){const Ot=m(se).slice(-1);return ni(S[ht-1])&&"o"===Ot&&d?Ue.concat("\u304a"):Ue.concat(Lt[Ot])}if(!Dn(lt)&&ni(lt)){const Ot=lt.charCodeAt(0)+-96,Ht=String.fromCharCode(Ot);return se=Ht,Ue.concat(Ht)}return se="",Ue.concat(lt)},[]).join("")}let vn=null;const Vn={\u3042:"a",\u3044:"i",\u3046:"u",\u3048:"e",\u304a:"o",\u304b:"ka",\u304d:"ki",\u304f:"ku",\u3051:"ke",\u3053:"ko",\u3055:"sa",\u3057:"shi",\u3059:"su",\u305b:"se",\u305d:"so",\u305f:"ta",\u3061:"chi",\u3064:"tsu",\u3066:"te",\u3068:"to",\u306a:"na",\u306b:"ni",\u306c:"nu",\u306d:"ne",\u306e:"no",\u306f:"ha",\u3072:"hi",\u3075:"fu",\u3078:"he",\u307b:"ho",\u307e:"ma",\u307f:"mi",\u3080:"mu",\u3081:"me",\u3082:"mo",\u3089:"ra",\u308a:"ri",\u308b:"ru",\u308c:"re",\u308d:"ro",\u3084:"ya",\u3086:"yu",\u3088:"yo",\u308f:"wa",\u3090:"wi",\u3091:"we",\u3092:"wo",\u3093:"n",\u304c:"ga",\u304e:"gi",\u3050:"gu",\u3052:"ge",\u3054:"go",\u3056:"za",\u3058:"ji",\u305a:"zu",\u305c:"ze",\u305e:"zo",\u3060:"da",\u3062:"ji",\u3065:"zu",\u3067:"de",\u3069:"do",\u3070:"ba",\u3073:"bi",\u3076:"bu",\u3079:"be",\u307c:"bo",\u3071:"pa",\u3074:"pi",\u3077:"pu",\u307a:"pe",\u307d:"po",\u3094\u3041:"va",\u3094\u3043:"vi",\u3094:"vu",\u3094\u3047:"ve",\u3094\u3049:"vo"},hi={"\u3002":".","\u3001":",","\uff1a":":","\u30fb":"/","\uff01":"!","\uff1f":"?","\u301c":"~",\u30fc:"-","\u300c":"\u2018","\u300d":"\u2019","\u300e":"\u201c","\u300f":"\u201d","\uff3b":"[","\uff3d":"]","\uff08":"(","\uff09":")","\uff5b":"{","\uff5d":"}","\u3000":" "},Ti=["\u3042","\u3044","\u3046","\u3048","\u304a","\u3084","\u3086","\u3088"],ti={\u3083:"ya",\u3085:"yu",\u3087:"yo"},qi={\u3043:"yi",\u3047:"ye"},_r={\u3041:"a",\u3043:"i",\u3045:"u",\u3047:"e",\u3049:"o"},Vr=["\u304d","\u306b","\u3072","\u307f","\u308a","\u304e","\u3073","\u3074","\u3094","\u304f","\u3075"],xr={\u3057:"sh",\u3061:"ch",\u3058:"j",\u3062:"j"},Ir={\u3063:"",\u3083:"ya",\u3085:"yu",\u3087:"yo",\u3041:"a",\u3043:"i",\u3045:"u",\u3047:"e",\u3049:"o"},Dr={b:"b",c:"t",d:"d",f:"f",g:"g",h:"h",j:"j",k:"k",m:"m",p:"p",q:"q",r:"r",s:"s",t:"t",v:"v",w:"w",x:"x",z:"z"};function ir(){return null==vn&&(vn=function Br(){const S=Wt(Vn),m=T=>Se(S,T),d=(T,se)=>{m(T)[""]=se};return Object.entries(hi).forEach(([T,se])=>{m(T)[""]=se}),[...Object.entries(ti),...Object.entries(_r)].forEach(([T,se])=>{d(T,se)}),Vr.forEach(T=>{const se=m(T)[""][0];Object.entries(ti).forEach(([Ue,lt])=>{d(T+Ue,se+lt)}),Object.entries(qi).forEach(([Ue,lt])=>{d(T+Ue,se+lt)})}),Object.entries(xr).forEach(([T,se])=>{Object.entries(ti).forEach(([Ue,lt])=>{d(T+Ue,se+lt[1])}),d(`${T}\u3043`,`${se}yi`),d(`${T}\u3047`,`${se}e`)}),S.\u3063=Wi(S),Object.entries(Ir).forEach(([T,se])=>{d(T,se)}),Ti.forEach(T=>{d(`\u3093${T}`,`n'${m(T)[""]}`)}),Object.freeze(JSON.parse(JSON.stringify(S)))}()),vn}function Wi(S){return Object.entries(S).reduce((m,[d,T])=>{if(d)m[d]=Wi(T);else{const se=T.charAt(0);m[d]=Object.keys(Dr).includes(se)?Dr[se]+T:T}return m},{})}const Yi=Zt((S,m)=>{let d=function Xi(S){return"hepburn"===S?ir():{}}(S);return m&&(d=we(d,m)),d},En);function dr(S="",m={},d){const T=((S={})=>Object.assign({},V,S))(m);return d||(d=Yi(T.romanization,T.customRomajiMapping)),function vr(S,m,d){d||(d=Yi(m.romanization,m.customRomajiMapping));return _t(nn(S,dr,Object.assign({},{isDestinationRomaji:!0},m)),d,!m.IMEMode)}(S,T,d).map(se=>{const[Ue,lt,ht]=se;return T.upcaseKatakana&&function Ai(S=""){return!ne(S)&&[...S].every(ni)}(S.slice(Ue,lt))?ht.toUpperCase():ht}).join("")}var Vi=a(2663),pr=a(4623),Jr=a(508),Ci=a(192);const _e=["dmakElement"];function Ke(S,m){if(1&S&&(o.TgZ(0,"li"),o._uU(1),o.qZA()),2&S){const d=m.$implicit,T=o.oxw();o.xp6(1),o.AsE(" ",d," (",T.getRomaji(d),") ")}}function he(S,m){if(1&S&&(o.TgZ(0,"li"),o._uU(1),o.qZA()),2&S){const d=m.$implicit,T=o.oxw();o.xp6(1),o.AsE(" ",d," (",T.getRomaji(d),") ")}}function et(S,m){if(1&S){const d=o.EpF();o.TgZ(0,"mat-list-option",25),o.NdJ("click",function(){const Ue=o.CHM(d).$implicit;return o.oxw(2).openVocab(Ue)}),o.TgZ(1,"h4",26),o._uU(2),o.qZA(),o.TgZ(3,"h5",27),o._uU(4),o.qZA(),o.TgZ(5,"p",28),o._uU(6),o.qZA()()}if(2&S){const d=m.$implicit,T=o.oxw(2);o.xp6(2),o.Oqu(d.kanji),o.xp6(2),o.AsE("",d.reading," (",T.getRomaji(d.reading),")"),o.xp6(2),o.Oqu(d.meaning)}}function wt(S,m){if(1&S&&(o.TgZ(0,"div")(1,"mat-selection-list",23),o.YNc(2,et,7,4,"mat-list-option",24),o.qZA()()),2&S){const d=o.oxw();o.xp6(1),o.Q6J("multiple",!1),o.xp6(1),o.Q6J("ngForOf",d.edict)}}function zt(S,m){1&S&&o._UZ(0,"app-no-data")}function Jt(S,m){if(1&S){const d=o.EpF();o.TgZ(0,"div",29)(1,"button",30),o.NdJ("click",function(){return o.CHM(d),o.oxw().loadNextPage()}),o._uU(2,"Load More ..."),o.qZA()()}}let wn=(()=>{class S{constructor(d,T,se){this.data=d,this.nihon=T,this.gs=se,this.dmak=null,this.dmakUrl="/assets/kanji/",this.charToDraw="NO DATA",this.edict=[],this.page=1,this.pageFinished=!1,this.subsEdict=null}get DATA(){return this.data}getRomaji(d){return dr(d)}ngOnInit(){this.gs.log("[DIALOG_DATA_IN]",this.data),"character"in this.data&&this.data.character&&(this.charToDraw=this.data.character),this.loadEdict()}ngOnDestroy(){var d;null===(d=this.subsEdict)||void 0===d||d.unsubscribe()}ngAfterViewInit(){this.dmak=new Dmak(this.charToDraw,{element:"dmakElement",uri:this.dmakUrl,stroke:{order:{visible:!0},attr:{active:"#f44336",stroke:"#28a745"}}})}loadEdict(){this.subsEdict=this.nihon.getAllEdict(this.charToDraw,this.page).subscribe({next:d=>{this.gs.log("[EDICT_LIST_SUCCESS]",d),this.edict=[...this.edict,...d.results],d.results.length<=0&&(this.pageFinished=!0)},error:d=>{this.gs.log("[EDICT_LIST_ERROR]",d,"error")}})}loadNextPage(){this.pageFinished||(this.page++,this.loadEdict())}openVocab(d){this.gs.log("[EDICT_LIST_CLICK_VOCAB]",d)}}return S.\u0275fac=function(d){return new(d||S)(o.Y36(u.WI),o.Y36(Vi.a),o.Y36(I.U))},S.\u0275cmp=o.Xpm({type:S,selectors:[["app-material-dialog-edict"]],viewQuery:function(d,T){if(1&d&&o.Gf(_e,5),2&d){let se;o.iGM(se=o.CRH())&&(T.dmakElement=se.first)}},decls:42,vars:10,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"text-break"],[1,"row"],[1,"col-md-4","col-xl-3"],[1,"row","sticky-top","p-3"],[1,"col-12"],["id","dmakElement",1,"text-center"],["dmakElement",""],[1,"col-12","mt-3"],[1,"text-warning"],[1,"text-truncate"],[1,"text-success"],[1,"text-truncate","mt-3"],[1,"text-success","m-0"],[4,"ngFor","ngForOf"],[1,"col-md-8","col-xl-9"],[1,"col-12","sticky-top","bg-bifeldy"],[1,"border-bottom-dotted"],[1,"text-bifeldy"],[4,"ngIf"],["class","col-12 text-center p-3",4,"ngIf"],["mat-dialog-actions",""],["mat-button","",1,"ms-auto",3,"mat-dialog-close"],[3,"multiple"],[3,"click",4,"ngFor","ngForOf"],[3,"click"],["matLine","",1,"px-3"],["matLine","",1,"px-3","text-success"],["matLine","",1,"px-3","text-warning"],[1,"col-12","text-center","p-3"],["mat-button","",3,"click"]],template:function(d,T){1&d&&(o.TgZ(0,"h1",0),o._uU(1),o.qZA(),o.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"div",5),o._UZ(7,"div",6,7),o.qZA(),o.TgZ(9,"div",8)(10,"p",9),o._uU(11),o.qZA()(),o.TgZ(12,"div",5)(13,"div",10),o._uU(14," JLPT Level :: "),o.TgZ(15,"span",11),o._uU(16),o.qZA()(),o.TgZ(17,"div",10),o._uU(18," School Level :: "),o.TgZ(19,"span",11),o._uU(20),o.qZA()(),o.TgZ(21,"div",12),o._uU(22," Kunyomi :: "),o.TgZ(23,"ul",13),o.YNc(24,Ke,2,2,"li",14),o.qZA()(),o.TgZ(25,"div",10),o._uU(26," Onyomi :: "),o.TgZ(27,"ul",13),o.YNc(28,he,2,2,"li",14),o.qZA()()()()(),o.TgZ(29,"div",15)(30,"div",2)(31,"div",16)(32,"h2",17)(33,"b",18),o._uU(34,"Kosa Kata"),o.qZA()()(),o.TgZ(35,"div",5),o.YNc(36,wt,3,2,"div",19),o.YNc(37,zt,1,0,"app-no-data",19),o.qZA(),o.YNc(38,Jt,3,0,"div",20),o.qZA()()()(),o.TgZ(39,"div",21)(40,"button",22),o._uU(41,"Tutup"),o.qZA()()),2&d&&(o.xp6(1),o.hij("Kamus Dictionary '",T.DATA.character,"'"),o.xp6(10),o.Oqu(T.DATA.translate),o.xp6(5),o.hij("N",T.DATA.jlpt,""),o.xp6(4),o.Oqu(T.DATA.school),o.xp6(4),o.Q6J("ngForOf",T.DATA.v_kunyomi.split(",")),o.xp6(4),o.Q6J("ngForOf",T.DATA.v_onyomi.split(",")),o.xp6(8),o.Q6J("ngIf",T.edict.length>0),o.xp6(1),o.Q6J("ngIf",T.edict.length<=0),o.xp6(1),o.Q6J("ngIf",!T.pageFinished),o.xp6(2),o.Q6J("mat-dialog-close",!0))},directives:[u.uh,u.xY,M.sg,M.O5,pr.Ub,pr.vS,Jr.X2,Ci.d,g.lW,u.H8,u.ZT],styles:[""]}),S})();var Sn=a(3075),Yn=a(6271),$n=a(3e3),Xn=a(7902),di=a(7322),fi=a(1385),pi=a(7531),Te=a(8406),oe=a(3626);function G(S,m){if(1&S&&(o.TgZ(0,"div"),o._uU(1),o.ALo(2,"bytes"),o.qZA()),2&S){const d=o.oxw(2);o.xp6(1),o.hij("Ukuran Upload Melebihi Batas ",o.lcZ(2,1,d.imageLimitExceeded)," !")}}function Qe(S,m){if(1&S&&(o.TgZ(0,"div"),o._uU(1),o.qZA()),2&S){const d=o.oxw(2);o.xp6(1),o.Oqu(d.imageErrorText)}}function Yt(S,m){1&S&&(o.TgZ(0,"div"),o._uU(1,"Gambar Wajib Ada!"),o.qZA())}function An(S,m){if(1&S){const d=o.EpF();o.TgZ(0,"div",7)(1,"button",22),o.NdJ("click",function(){return o.CHM(d),o.oxw(2).submitImage()}),o.TgZ(2,"mat-icon",23),o._uU(3,"add_photo_alternate"),o.qZA(),o._uU(4," Unggah "),o.qZA()()}if(2&S){const d=o.oxw(2);o.xp6(1),o.Q6J("disabled",d.submitted)}}function Mi(S,m){1&S&&(o.TgZ(0,"div"),o._uU(1,"Kana Tidak Boleh Kosong"),o.qZA())}function Gi(S,m){1&S&&(o.TgZ(0,"div"),o._uU(1,"Kana Hanya Boleh Huruf Jepang"),o.qZA())}function $r(S,m){1&S&&(o.TgZ(0,"div"),o._uU(1,"Romaji Tidak Boleh Kosong"),o.qZA())}function jr(S,m){1&S&&(o.TgZ(0,"div"),o._uU(1,"Romaji Hanya Boleh Huruf Standar Papan Ketik"),o.qZA())}function rn(S,m){1&S&&(o.TgZ(0,"div"),o._uU(1,"Arti Tidak Boleh Kosong"),o.qZA())}function oi(S,m){1&S&&(o.TgZ(0,"div"),o._uU(1,"Arti Hanya Boleh Huruf Standar Papan Ketik"),o.qZA())}function xs(S,m){if(1&S&&(o.TgZ(0,"div",5)(1,"div",24),o._uU(2," Last Edit By :: "),o.TgZ(3,"a",25),o._uU(4),o.qZA()()()),2&S){const d=o.oxw(2);o.xp6(3),o.MGl("routerLink","/user/",null==d.DATA.dataset||null==d.DATA.dataset.user_?null:d.DATA.dataset.user_.username,""),o.xp6(1),o.hij(" ",null==d.DATA.dataset||null==d.DATA.dataset.user_?null:d.DATA.dataset.user_.username," ")}}function Li(S,m){if(1&S){const d=o.EpF();o.TgZ(0,"form",4)(1,"div",5)(2,"div",6)(3,"div",5)(4,"div",7),o._UZ(5,"img",8),o.TgZ(6,"mat-form-field",9)(7,"mat-label"),o._uU(8,"Gambar"),o.qZA(),o.TgZ(9,"ngx-mat-file-input",10,11),o.NdJ("change",function(se){o.CHM(d);const Ue=o.MAs(10);return o.oxw().uploadImage(se,Ue)}),o.qZA(),o.TgZ(11,"mat-icon",12),o._uU(12,"image"),o.qZA()(),o.TgZ(13,"mat-error",13)(14,"small"),o.YNc(15,G,3,3,"div",14),o.YNc(16,Qe,2,1,"div",14),o.YNc(17,Yt,2,0,"div",14),o.qZA()()(),o.YNc(18,An,5,1,"div",15),o.qZA()(),o.TgZ(19,"div",16)(20,"div",5)(21,"mat-form-field",17)(22,"mat-label"),o._uU(23,"Kana"),o.qZA(),o._UZ(24,"input",18),o.TgZ(25,"mat-icon",12),o._uU(26,"translate"),o.qZA(),o.TgZ(27,"mat-error"),o.YNc(28,Mi,2,0,"div",14),o.YNc(29,Gi,2,0,"div",14),o.qZA()(),o.TgZ(30,"mat-form-field",17)(31,"mat-label"),o._uU(32,"Romaji"),o.qZA(),o._UZ(33,"input",19),o.TgZ(34,"mat-icon",12),o._uU(35,"text_fields"),o.qZA(),o.TgZ(36,"mat-error"),o.YNc(37,$r,2,0,"div",14),o.YNc(38,jr,2,0,"div",14),o.qZA()(),o.TgZ(39,"mat-form-field",17)(40,"mat-label"),o._uU(41,"Arti Terjemahan"),o.qZA(),o._UZ(42,"input",20),o.TgZ(43,"mat-icon",12),o._uU(44,"g_translate"),o.qZA(),o.TgZ(45,"mat-error"),o.YNc(46,rn,2,0,"div",14),o.YNc(47,oi,2,0,"div",14),o.qZA()()(),o.YNc(48,xs,5,2,"div",21),o.qZA()()()}if(2&S){const d=o.oxw();o.Q6J("formGroup",d.fg),o.xp6(5),o.Q6J("src",d.image_url,o.LSH),o.xp6(1),o.Q6J("color","accent"),o.xp6(3),o.Q6J("disabled",d.fg.value.image)("accept","image/gif, image/jpeg, image/jpg, image/png"),o.xp6(6),o.Q6J("ngIf",d.imageLimitExceeded),o.xp6(1),o.Q6J("ngIf",d.imageErrorText),o.xp6(1),o.Q6J("ngIf",d.fg.get("image").hasError("required")),o.xp6(1),o.Q6J("ngIf",d.image&&!d.fg.value.image),o.xp6(3),o.Q6J("color","accent"),o.xp6(7),o.Q6J("ngIf",d.fg.get("kana").hasError("required")),o.xp6(1),o.Q6J("ngIf",d.fg.get("kana").hasError("pattern")),o.xp6(1),o.Q6J("color","accent"),o.xp6(7),o.Q6J("ngIf",d.fg.get("romaji").hasError("required")),o.xp6(1),o.Q6J("ngIf",d.fg.get("romaji").hasError("pattern")),o.xp6(1),o.Q6J("color","accent"),o.xp6(7),o.Q6J("ngIf",d.fg.get("meaning").hasError("required")),o.xp6(1),o.Q6J("ngIf",d.fg.get("meaning").hasError("pattern")),o.xp6(1),o.Q6J("ngIf",null==d.DATA.dataset?null:d.DATA.dataset.user_)}}function Ds(S,m){if(1&S&&(o.TgZ(0,"button",29),o._uU(1),o.qZA()),2&S){const d=o.oxw(2);o.Q6J("mat-dialog-close",null),o.xp6(1),o.Oqu(d.DATA.cancelText)}}function qr(S,m){if(1&S){const d=o.EpF();o.TgZ(0,"div",26)(1,"button",27),o.NdJ("click",function(){return o.CHM(d),o.oxw().saveData()}),o._uU(2),o.qZA(),o.YNc(3,Ds,2,2,"button",28),o.qZA()}if(2&S){const d=o.oxw();o.xp6(1),o.Q6J("disabled",d.submitted||d.fg.invalid||!d.fg.dirty),o.xp6(1),o.hij(" ",d.DATA.confirmText," "),o.xp6(1),o.Q6J("ngIf",d.DATA.cancelText)}}let Pr=(()=>{class S{constructor(d,T,se,Ue,lt,ht,Ot){this.fb=d,this.bs=T,this.imgbb=se,this.nihongo=Ue,this.dialogRef=lt,this.data=ht,this.gs=Ot,this.submitted=!1,this.image=null,this.imageErrorText=null,this.imageLimitExceeded=null,this.image_url="/assets/img/form/no-image.png",this.image_url_original=null,this.gambar=null,this.subsNihongo=null,this.subsImgbb=null}get DATA(){return this.data}ngOnInit(){var d;this.gs.isBrowser&&(this.gs.log("[DIALOG_DATA_IN]",this.data),this.initForm(null===(d=this.data)||void 0===d?void 0:d.dataset))}ngOnDestroy(){var d,T;null===(d=this.subsImgbb)||void 0===d||d.unsubscribe(),null===(T=this.subsNihongo)||void 0===T||T.unsubscribe()}initForm(d){this.fg=this.fb.group({kana:[null==d?void 0:d.kana,Sn.kI.compose([Sn.kI.required,Sn.kI.pattern(Yn.t.regexJapaneseKeyboardKeys)])],romaji:[null==d?void 0:d.romaji,Sn.kI.compose([Sn.kI.required,Sn.kI.pattern(Yn.t.regexEnglishKeyboardKeys)])],meaning:[null==d?void 0:d.meaning,Sn.kI.compose([Sn.kI.required,Sn.kI.pattern(Yn.t.regexEnglishKeyboardKeys)])],category:[(null==d?void 0:d.category)||this.data.modeTampilan,Sn.kI.compose([Sn.kI.required,Sn.kI.pattern(Yn.t.regexEnglishKeyboardKeys)])],image:[null,Sn.kI.compose([Sn.kI.pattern(Yn.t.regexUrl)])]}),d?this.image_url=null==d?void 0:d.image_url:this.fg.controls.image.setValidators([Sn.kI.required,Sn.kI.pattern(Yn.t.regexEnglishKeyboardKeys)]),this.image_url_original=this.image_url}uploadImage(d,T){this.gambar=T,this.image=null,this.imageLimitExceeded=null,this.imageErrorText=null,this.fg.controls.image.patchValue(null),this.fg.controls.image.markAsPristine();const se=d.target.files[0];try{const Ue=new FileReader;Ue.readAsDataURL(se),Ue.onload=lt=>{if(this.gs.log("[IMAGE_SELECTED]",lt),se.size<=Yn.t.fileSizeImageLimit){const ht=this.gs.document.createElement("img");ht.onload=()=>{this.image=se,this.image_url=Ue.result.toString()},ht.src=Ue.result.toString()}else this.image=null,this.image_url="/assets/img/form/image-error.png",this.imageLimitExceeded=Yn.t.fileSizeImageLimit,this.gambar.clear(d)}}catch(Ue){this.image=null,this.image_url=this.image_url_original,this.gambar.clear(d)}}submitImage(){this.submitted=!0,this.subsImgbb=this.imgbb.uploadImage({file:this.image}).subscribe({next:d=>{this.gs.log("[IMAGE_SUCCESS]",d),this.fg.controls.image.patchValue(d.result.url),this.fg.controls.image.markAsDirty(),this.submitted=!1},error:d=>{var T;this.gs.log("[IMAGE_ERROR]",d,"error"),this.fg.controls.image.patchValue(null),this.fg.controls.image.markAsPristine(),this.submitted=!1,this.imageErrorText=(null===(T=d.result)||void 0===T?void 0:T.message)||d.info}})}saveData(){var d;this.bs.busy(),this.submitted=!0;let T=null;if((null===(d=this.data)||void 0===d?void 0:d.dataset)&&(T=this.gs.getDirtyValues(this.fg),this.gs.log("[NIHONGO_ADD_OR_EDIT_DIRTY]",T)),this.fg.invalid)return this.submitted=!1,void this.bs.idle();this.subsNihongo=T?this.nihongo.updateNihongo(this.data.dataset.id,{...T}):this.nihongo.createNihongo({image:this.fg.value.image,kana:this.fg.value.kana,romaji:this.fg.value.romaji,meaning:this.fg.value.meaning,category:this.fg.value.category}),this.subsNihongo=this.subsNihongo.subscribe({next:se=>{this.gs.log("[NIHONGO_ADD_OR_EDIT_SUCCESS]",se),this.submitted=!1,this.bs.idle(),this.dialogRef.close(se)},error:se=>{this.gs.log("[NIHONGO_ADD_OR_EDIT_ERROR]",se,"error"),this.submitted=!1,this.bs.idle()}})}}return S.\u0275fac=function(d){return new(d||S)(o.Y36(Sn.qu),o.Y36($n.z),o.Y36(Xn.X),o.Y36(Vi.a),o.Y36(u.so),o.Y36(u.WI),o.Y36(I.U))},S.\u0275cmp=o.Xpm({type:S,selectors:[["app-material-dialog-belajar"]],decls:5,vars:4,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"text-break","text-warning"],[3,"formGroup",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[3,"formGroup"],[1,"row"],[1,"col-12","col-md-5","col-xl-4","p-3"],[1,"col-12"],[1,"w-100","border",3,"src"],["appearance","outline",1,"pt-3","w-100",3,"color"],[1,"w-100",3,"disabled","accept","change"],["gambar",""],["matSuffix",""],[1,"px-3","pb-3","w-100"],[4,"ngIf"],["class","col-12",4,"ngIf"],[1,"col-12","col-md-7","col-xl-8","pt-3"],["appearance","outline",1,"p-3","col-12",3,"color"],["matInput","","formControlName","kana","placeholder","\u8910\u8272"],["matInput","","formControlName","romaji","placeholder","Kasshoku"],["matInput","","formControlName","meaning","placeholder","Coklat"],["class","row",4,"ngIf"],["mat-raised-button","","color","primary","type","button",1,"w-100",3,"disabled","click"],[1,"me-1"],[1,"col","text-end"],[1,"text-success",2,"text-decoration","none",3,"routerLink"],["mat-dialog-actions",""],["mat-button","",1,"ms-auto","text-success",3,"disabled","click"],["mat-button","",3,"mat-dialog-close",4,"ngIf"],["mat-button","",3,"mat-dialog-close"]],template:function(d,T){1&d&&(o.TgZ(0,"h1",0),o._uU(1),o.qZA(),o.TgZ(2,"div",1),o.YNc(3,Li,49,19,"form",2),o.qZA(),o.YNc(4,qr,4,3,"div",3)),2&d&&(o.xp6(1),o.AsE("",T.DATA.title," '",T.DATA.dataset?T.DATA.dataset.kana:T.DATA.modeTampilan,"'"),o.xp6(2),o.Q6J("ngIf",T.fg),o.xp6(1),o.Q6J("ngIf",T.fg))},directives:[u.uh,u.xY,M.O5,Sn._Y,Sn.JL,Sn.sg,di.KE,di.hX,fi.Yh,O.Hw,di.R9,di.TO,g.lW,pi.Nt,Sn.Fj,Sn.JJ,Sn.u,Te.yS,u.H8,u.ZT],pipes:[oe.$],styles:[""]}),S})();function us(S,m){if(1&S&&(o.TgZ(0,"div"),o._uU(1),o.qZA()),2&S){const d=o.oxw().$implicit;o.xp6(1),o.hij("",d.value.inputLabel," Tidak Boleh Kosong")}}function hs(S,m){if(1&S&&(o.TgZ(0,"div"),o._uU(1),o.qZA()),2&S){const d=o.oxw().$implicit;o.xp6(1),o.hij("",d.value.inputLabel," Hanya Boleh Huruf Standar Papan Ketik")}}function Fs(S,m){if(1&S&&(o.TgZ(0,"mat-form-field",9)(1,"mat-label"),o._uU(2),o.qZA(),o._UZ(3,"input",10),o.TgZ(4,"mat-icon",11),o._uU(5,"wysiwyg"),o.qZA(),o.TgZ(6,"mat-error"),o.YNc(7,us,2,1,"div",12),o.YNc(8,hs,2,1,"div",12),o.qZA()()),2&S){const d=m.$implicit,T=o.oxw(2);o.Q6J("color","accent"),o.xp6(2),o.Oqu(d.value.inputLabel),o.xp6(1),o.s9C("placeholder",d.value.inputPlaceholder),o.Q6J("formControlName",d.key)("required",d.value.inputRequired),o.xp6(4),o.Q6J("ngIf",T.fg.get(d.key).hasError("required")),o.xp6(1),o.Q6J("ngIf",T.fg.get(d.key).hasError("pattern"))}}function Xr(S,m){if(1&S&&(o.TgZ(0,"form",7),o.YNc(1,Fs,9,7,"mat-form-field",8),o.ALo(2,"keyvalue"),o.qZA()),2&S){const d=o.oxw();o.Q6J("formGroup",d.fg),o.xp6(1),o.Q6J("ngForOf",o.lcZ(2,2,d.DATA.input))}}function es(S,m){if(1&S&&(o.TgZ(0,"small",13)(1,"i"),o._uU(2),o.qZA()()),2&S){const d=o.oxw();o.xp6(2),o.hij("* ",d.DATA.infoText,"")}}function ts(S,m){if(1&S&&(o.TgZ(0,"button",14),o._uU(1),o.qZA()),2&S){const d=o.oxw();o.Q6J("mat-dialog-close",!1),o.xp6(1),o.Oqu(d.DATA.cancelText)}}let er=(()=>{class S{constructor(d,T,se){this.data=d,this.fb=T,this.gs=se}get DATA(){return this.data}get BALIKAN(){return this.fg.value}ngOnInit(){this.gs.log("[DIALOG_DATA_IN]",this.data);const d={};for(const[T,se]of Object.entries(this.data.input)){const Ue=[Sn.kI.pattern(Yn.t.regexEnglishKeyboardKeys)];se.inputRequired&&Ue.push(Sn.kI.required),d[T]=[se.inputValue,Sn.kI.compose(Ue)]}this.fg=this.fb.group(d)}}return S.\u0275fac=function(d){return new(d||S)(o.Y36(u.WI),o.Y36(Sn.qu),o.Y36(I.U))},S.\u0275cmp=o.Xpm({type:S,selectors:[["app-material-dialog-input"]],decls:9,vars:7,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"text-break","text-warning"],[3,"formGroup",4,"ngIf"],["mat-dialog-actions",""],["class","text-start m-2",4,"ngIf"],["mat-button","",1,"ms-auto","text-success","shiny",3,"mat-dialog-close","disabled"],["mat-button","",3,"mat-dialog-close",4,"ngIf"],[3,"formGroup"],["appearance","outline","class","p-3 col-12",3,"color",4,"ngFor","ngForOf"],["appearance","outline",1,"p-3","col-12",3,"color"],["matInput","",3,"formControlName","placeholder","required"],["matSuffix",""],[4,"ngIf"],[1,"text-start","m-2"],["mat-button","",3,"mat-dialog-close"]],template:function(d,T){1&d&&(o.TgZ(0,"h1",0),o._uU(1),o.qZA(),o.TgZ(2,"div",1),o.YNc(3,Xr,3,4,"form",2),o.qZA(),o.TgZ(4,"div",3),o.YNc(5,es,3,1,"small",4),o.TgZ(6,"button",5),o._uU(7),o.qZA(),o.YNc(8,ts,2,2,"button",6),o.qZA()),2&d&&(o.xp6(1),o.Oqu(T.DATA.title),o.xp6(2),o.Q6J("ngIf",T.fg),o.xp6(2),o.Q6J("ngIf",T.DATA.infoText),o.xp6(1),o.Q6J("mat-dialog-close",T.BALIKAN)("disabled",T.fg.invalid),o.xp6(1),o.Oqu(T.DATA.confirmText),o.xp6(1),o.Q6J("ngIf",T.DATA.cancelText))},directives:[u.uh,u.xY,M.O5,Sn._Y,Sn.JL,Sn.sg,M.sg,di.KE,di.hX,pi.Nt,Sn.Fj,Sn.JJ,Sn.u,Sn.Q7,O.Hw,di.R9,di.TO,u.H8,g.lW,u.ZT],pipes:[M.Nd],styles:[""]}),S})();var kr=a(7745);let Ls=(()=>{class S{constructor(d,T,se){this.dialog=d,this.gs=T,this.info=se,this.maxWidth="80vw",this.gs.isBrowser&&(this.maxWidth=4===this.gs.gridListBreakpoint?"45vw":3===this.gs.gridListBreakpoint?"50vw":2===this.gs.gridListBreakpoint?"60vw":"80vw")}openInputDialog(d){return"disableClose"in d||(d.disableClose=!0),this.dialog.open(er,d)}openInfoDialog(d){return"disableClose"in d||(d.disableClose=!0),"maxWidth"in d||(d.maxWidth=this.maxWidth),this.dialog.open(_,d)}openDmakDialog(d){return"disableClose"in d||(d.disableClose=!0),this.dialog.open(ue,d)}openEdictDialog(d){return"disableClose"in d||(d.disableClose=!0),this.dialog.open(wn,d)}openBelajarDialog(d){return"disableClose"in d||(d.disableClose=!0),this.dialog.open(Pr,d)}openKonfirmasiDialog(d,T,se=!0){var Ue=this;return(0,n.Z)(function*(){return Ue.openInfoDialog({data:{title:d,htmlMessage:T,confirmText:"Ya",cancelText:"Tidak"},disableClose:se,maxWidth:Ue.maxWidth})})()}fetchInformationRegisterMode(d,T=!1){var se=this;return(0,n.Z)(function*(){try{const Ue=yield l(se.info.getInfo(d.id));d.data.title=Ue.result.title,d.data.htmlMessage=Ue.result.content,d.disableClose=Ue.result.close,T&&(d.data.confirmText=Ue.result.confirm,d.data.cancelText=Ue.result.cancel,d.disableClose=!0)}catch(Ue){se.gs.log("[DIALOG_SERVICE-FETCH_DIALOG_ERROR]",Ue.error)}return se.openInfoDialog(d)})()}fetchInformation(d){var T=this;return(0,n.Z)(function*(){try{const se=yield l(T.info.getInfo(d.id));d.data.title=se.result.title,d.data.htmlMessage=se.result.content,d.data.confirmText=se.result.confirm,d.data.cancelText=se.result.cancel,d.disableClose=se.result.close}catch(se){T.gs.log("[DIALOG_SERVICE-FETCH_DIALOG_ERROR]",se.error)}})()}openMaintenanceDialog(){var d=this;return(0,n.Z)(function*(){const T={id:"MAINTENANCE",data:{title:"Informasi Perbaikan Web & Server",htmlMessage:"Gagal Memuat Perbaikan Web & Server",confirmText:"Ok, Saya Mengerti!",cancelText:null},disableClose:!1,maxWidth:d.maxWidth};return yield d.fetchInformation(T),d.openInfoDialog(T)})()}openVerifikasiSosmed(){var d=this;return(0,n.Z)(function*(){const T={id:"VERIFIKASI-SOSMED",data:{title:"Metode Verifikasi Baru (\uff61>\ufe4f<\uff61)",htmlMessage:"Gagal Memuat Metode Verifikasi",confirmText:"Via Discord",cancelText:"Batal"},disableClose:!1,maxWidth:d.maxWidth};return yield d.fetchInformation(T),d.openInfoDialog(T)})()}}return S.\u0275fac=function(d){return new(d||S)(o.LFG(u.uw),o.LFG(I.U),o.LFG(kr.O))},S.\u0275prov=o.Yz7({token:S,factory:S.\u0275fac,providedIn:"root"}),S})()},8439:(it,U,a)=>{"use strict";a.d(U,{X:()=>u});var n=a(5e3),r=a(9731),l=a(8696);let u=(()=>{class o{constructor(M,g){this.api=M,this.gs=g}searchDorama(M,g=""){return this.api.getData(`/dorama?q=${M}&type=${g}`)}getDorama(M){return this.api.getData(`/dorama/${M}`)}addNewDorama(M){return this.api.patchData("/dorama",M)}getSeasonalDorama(M,g){return this.api.getData(`/dorama-seasonal?year=${M}&season=${g}`)}getBerkasDorama(M=[],g="",C=1,D=10,y="",_=""){return this.api.patchData(`/dorama-berkas?q=${g}&page=${C}&row=${D}&sort=${y}&order=${_}`,{id:M})}getFansubDorama(M=[],g=1,C=10){return this.api.patchData(`/dorama-fansub?page=${g}&row=${C}`,{id:M})}}return o.\u0275fac=function(M){return new(M||o)(n.LFG(r.s),n.LFG(l.U))},o.\u0275prov=n.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})()},6382:(it,U,a)=>{"use strict";a.d(U,{r:()=>o});var n=a(5e3),r=a(8406),l=a(8696),u=a(8020);let o=(()=>{class I{constructor(g,C,D){this.router=g,this.gs=C,this.wb=D,this.isHidden=!0,this.newTab=!0,this.targetUrl=null,this.backgroundImage=null,this.backgroundIcon=null,this.tooltipText=null}toggleFab(){this.isHidden=!this.isHidden}showFab(){this.isHidden=!1}hideFab(){this.isHidden=!0}removeFab(){this.isHidden=!0,this.tooltipText=null,this.backgroundIcon=null,this.backgroundImage=null,this.targetUrl=null,this.newTab=null}initializeFab(g,C,D,y,_){this.backgroundIcon=g,this.backgroundImage=C,this.tooltipText=D,this.targetUrl=y,this.newTab=_,this.isHidden=!1}setTooltipText(g){this.tooltipText=g}setNewTab(g){this.newTab=g}setTargetUrl(g){this.targetUrl=g}setBackgroundImage(g){this.backgroundImage=g}setBackgroundIcon(g){this.backgroundIcon=g}buttonClicked(){this.newTab?this.wb.winboxOpenUri(this.targetUrl):this.router.navigateByUrl(this.targetUrl)}}return I.\u0275fac=function(g){return new(g||I)(n.LFG(r.F0),n.LFG(l.U),n.LFG(u.N))},I.\u0275prov=n.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"}),I})()},6781:(it,U,a)=>{"use strict";a.d(U,{T:()=>u});var n=a(5e3),r=a(9731),l=a(8696);let u=(()=>{class o{constructor(M,g){this.api=M,this.gs=g}searchFansub(M="",g=1,C=10,D="",y=""){return this.api.getData(`/fansub?q=${M}&page=${g}&row=${C}&sort=${D}&order=${y}`)}createFansub(M){return this.api.postData("/fansub",M)}updateFansub(M,g){return this.api.putData(`/fansub/${M}`,g)}getFansub(M){return this.api.getData(`/fansub/${M}`)}getAllFansub(){return this.api.getData("/fansub-all")}cekSlug(M){return this.api.patchData("/fansub-slug",M)}getBerkasFansub(M=[],g="",C=1,D=10,y="",_=""){return this.api.patchData(`/fansub-berkas?q=${g}&page=${C}&row=${D}&sort=${y}&order=${_}`,{id:M})}getAnimeFansub(M=[],g=1,C=10){return this.api.patchData(`/fansub-anime?page=${g}&row=${C}`,{id:M})}getDoramaFansub(M=[],g=1,C=10){return this.api.patchData(`/fansub-dorama?page=${g}&row=${C}`,{id:M})}getRssFeedFansubAllActiveOnly(){return this.api.getData("/fansub-rss-feed-active")}getRssFeedFansubAll(){return this.api.getData("/fansub-rss-feed-all")}getRssFeedFansub(M){return this.api.getData(`/fansub/${M}/rss`)}getFansubMember(M){return this.api.getData(`/fansub/${M}/member`)}getAllFansubMember(M="",g=1,C=10,D="",y=""){return this.api.getData(`/fansub-member?q=${M}&page=${g}&row=${C}&sort=${D}&order=${y}`)}requestJoinFansubMember(M){return this.api.postData("/fansub-member",M)}approveRejectFansubMember(M,g){return this.api.putData(`/fansub-member/${M}`,g)}leaveFansubMember(M){return this.api.deleteData(`/fansub-member/${M}`)}getAllSubDomain(M="",g=1,C=12,D="",y=""){return this.api.getData(`/fansub-dns?q=${M}&page=${g}&row=${C}&sort=${D}&order=${y}`)}claimSubDomain(M){return this.api.postData("/fansub-dns",M)}getSubDomain(M){return this.api.getData(`/fansub-dns/${M}?ngsw-bypass=true`)}updateSubDomain(M,g){return this.api.putData(`/fansub-dns/${M}`,g)}}return o.\u0275fac=function(M){return new(M||o)(n.LFG(r.s),n.LFG(l.U))},o.\u0275prov=n.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})()},8696:(it,U,a)=>{"use strict";a.d(U,{U:()=>Wt});var n=a(5e3),r=a(9808),l=a(1159),u=a(6905),o=a(6963),I=a(4799),M=a(2221),D={strictlyTwoElementsInRangeArrays:!1,progressFn:null};function y(Se,pt){if(!Array.isArray(Se)||!Se.length)return Se;let le,$,we={...D,...pt};if(we.strictlyTwoElementsInRangeArrays&&!Se.every((ye,Ne)=>!(!Array.isArray(ye)||2!==ye.length)||(le=Ne,$=ye.length,!1)))throw new TypeError(`ranges-sort: [THROW_ID_03] The first argument should be an array and must consist of arrays which are natural number indexes representing TWO string index ranges. However, ${le}th range (${JSON.stringify(Se[le],null,4)}) has not two but ${$} elements!`);if(!Se.every((ye,Ne)=>!(!Array.isArray(ye)||!Number.isInteger(ye[0])||ye[0]<0||!Number.isInteger(ye[1])||ye[1]<0)||(le=Ne,!1)))throw new TypeError(`ranges-sort: [THROW_ID_04] The first argument should be an array and must consist of arrays which are natural number indexes representing string index ranges. However, ${le}th range (${JSON.stringify(Se[le],null,4)}) does not consist of only natural numbers!`);let pe=Se.length**2,Pe=0;return Array.from(Se).sort((ye,Ne)=>(we.progressFn&&(Pe+=1,we.progressFn(Math.floor(100*Pe/pe))),ye[0]===Ne[0]?ye[1]Ne[1]?1:0:ye[0]Array.isArray(Ve)).map(Ve=>[...Ve]).filter(Ve=>void 0!==Ve[2]||Ve[0]!==Ve[1]);pe=le.progressFn?y($,{progressFn:Ve=>{ye=Math.floor(Ve/5),ye!==Pe&&(Pe=ye,le.progressFn(ye))}}):y($);let Ne=pe.length-1;for(let Ve=Ne;Ve>0;Ve--)le.progressFn&&(ye=Math.floor(78*(1-Ve/Ne))+21,ye!==Pe&&ye>Pe&&(Pe=ye,le.progressFn(ye))),(pe[Ve][0]<=pe[Ve-1][0]||!le.joinRangesThatTouchEdges&&pe[Ve][0]=pe[Ve][0]||pe[Ve-1][1]<=pe[Ve][1])&&null!==pe[Ve-1][2]&&(null===pe[Ve][2]&&null!==pe[Ve-1][2]?pe[Ve-1][2]=null:null!=pe[Ve-1][2]?2==+le.mergeType&&pe[Ve-1][0]===pe[Ve][0]?pe[Ve-1][2]=pe[Ve][2]:pe[Ve-1][2]+=pe[Ve][2]:pe[Ve-1][2]=pe[Ve][2]),pe.splice(Ve,1),Ve=pe.length);return pe.length?pe:null}function ne(Se,pt){if(!Se)throw new Error("Invariant failed")}function Z(Se,pt,we){let pe,le=0,$=0;if(0===arguments.length)throw new Error("ranges-apply: [THROW_ID_01] inputs missing!");if("string"!=typeof Se)throw new TypeError(`ranges-apply: [THROW_ID_02] first input argument must be a string! Currently it's: ${typeof Se}, equal to: ${JSON.stringify(Se,null,4)}`);if(pt&&!Array.isArray(pt))throw new TypeError(`ranges-apply: [THROW_ID_03] second input argument must be an array (or null)! Currently it's: ${typeof pt}, equal to: ${JSON.stringify(pt,null,4)}`);if(we&&"function"!=typeof we)throw new TypeError(`ranges-apply: [THROW_ID_04] the third input argument must be a function (or falsey)! Currently it's: ${typeof we}, equal to: ${JSON.stringify(we,null,4)}`);if(!pt||!pt.filter(bt=>bt).length)return Se;pe=Array.isArray(pt)&&Number.isInteger(pt[0])&&Number.isInteger(pt[1])?[Array.from(pt)]:Array.from(pt);let Pe=pe.length,ye=0;pe.filter(bt=>bt).forEach((bt,xt)=>{if(we&&(le=Math.floor(ye/Pe*10),le!==$&&($=le,we(le))),!Array.isArray(bt))throw new TypeError(`ranges-apply: [THROW_ID_05] ranges array, second input arg., has ${xt}th element not an array: ${JSON.stringify(bt,null,4)}, which is ${typeof bt}`);if(!Number.isInteger(bt[0])){if(!Number.isInteger(+bt[0])||+bt[0]<0)throw new TypeError(`ranges-apply: [THROW_ID_06] ranges array, second input arg. has ${xt}th element, array ${JSON.stringify(bt,null,0)}. Its first element is not an integer, string index, but ${typeof bt[0]}, equal to: ${JSON.stringify(bt[0],null,4)}.`);pe[xt][0]=+pe[xt][0]}if(!Number.isInteger(bt[1])){if(!Number.isInteger(+bt[1])||+bt[1]<0)throw new TypeError(`ranges-apply: [THROW_ID_07] ranges array, second input arg. has ${xt}th element, array ${JSON.stringify(bt,null,0)}. Its second element is not an integer, string index, but ${typeof bt[1]}, equal to: ${JSON.stringify(bt[1],null,4)}.`);pe[xt][1]=+pe[xt][1]}ye+=1});let Ne=ee(pe,{progressFn:bt=>{we&&(le=10+Math.floor(bt/10),le!==$&&($=le,we(le)))}});ne(Ne);let Ve=Ne.length;if(Ve>0){let bt=Se.slice(Ne[Ve-1][1]);Se=Ne.reduce((xt,cn,ct,ut)=>(we&&(le=20+Math.floor(ct/Ve*80),le!==$&&($=le,we(le))),`${xt}${Se.slice(0===ct?0:ut[ct-1][1],ut[ct][0])}${ut[ct][2]||""}`),""),Se+=bt}return Se}function Me(Se,pt=1){function le(pe){return Array.from(pe).reverse().join("")}function $(pe,Pe,ye){let Ne=ye?"\n":"\r",Ve=ye?"\r":"\n";if(!pe)return pe;let bt=0,xt=0,cn="";for(let ct=0,ut=pe.length;ct=0&&(pe=+pt);let Pe="",ye="";if(Se.trim()){if(!Se[0].trim())for(let Ne=0,Ve=Se.length;Ne!(!Array.isArray(ye)||2!==ye.length)||(le=Ne,$=ye.length,!1)))throw new TypeError(`ranges-sort: [THROW_ID_03] The first argument should be an array and must consist of arrays which are natural number indexes representing TWO string index ranges. However, ${le}th range (${JSON.stringify(Se[le],null,4)}) has not two but ${$} elements!`);if(!Se.every((ye,Ne)=>!(!Array.isArray(ye)||!Number.isInteger(ye[0])||ye[0]<0||!Number.isInteger(ye[1])||ye[1]<0)||(le=Ne,!1)))throw new TypeError(`ranges-sort: [THROW_ID_04] The first argument should be an array and must consist of arrays which are natural number indexes representing string index ranges. However, ${le}th range (${JSON.stringify(Se[le],null,4)}) does not consist of only natural numbers!`);let pe=Se.length**2,Pe=0;return Array.from(Se).sort((ye,Ne)=>(we.progressFn&&(Pe+=1,we.progressFn(Math.floor(100*Pe/pe))),ye[0]===Ne[0]?ye[1]Ne[1]?1:0:ye[0]=0}function nt(Se){return"string"==typeof Se}var Tt={limitToBeAddedWhitespace:!1,limitLinebreaksCount:1,mergeType:1};function He(Se,pt=0){return function q({str:Se,idx:pt=0,stopAtNewlines:we=!1,stopAtRawNbsp:le=!1}){if("string"!=typeof Se||!Se.length||((!pt||"number"!=typeof pt)&&(pt=0),!Se[pt+1]))return null;if(Se[pt+1]&&(Se[pt+1].trim()||we&&"\n\r".includes(Se[pt+1])||le&&"\xa0"===Se[pt+1]))return pt+1;if(Se[pt+2]&&(Se[pt+2].trim()||we&&"\n\r".includes(Se[pt+2])||le&&"\xa0"===Se[pt+2]))return pt+2;for(let $=pt+1,pe=Se.length;$"string"==typeof we&&we.trim());if("string"==typeof Se)return Se.trim()?[Se]:[];throw new TypeError(`string-strip-html/stripHtml(): [THROW_ID_03] ${pt} must be array containing zero or more strings or something falsey. Currently it's equal to: ${Se}, that a type of ${typeof Se}.`)}function be(Se,pt,we){return!Se||!Se.quotes||!function F(Se,pt,we,le){for(let $=pt,pe=Se.length;$")}a(9893);var qe=new Set(["!doctype","abbr","address","area","article","aside","audio","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","doctype","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","param","picture","pre","progress","rb","rp","rt","rtc","ruby","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","ul","var","video","wbr","xml"]),ot=new Set(["a","b","i","p","q","s","u"]),At=new Set([".",",",";","!","?"]),Bt=new Set([".",",","?",";",")","\u2026",'"',"\xbb"]),qt=new Set(["a","abbr","acronym","audio","b","bdi","bdo","big","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","input","ins","kbd","label","map","mark","meter","noscript","object","output","picture","progress","q","ruby","s","samp","select","slot","small","span","strong","sub","sup","svg","template","textarea","time","u","tt","var","video","wbr"]),bn={ignoreTags:[],ignoreTagsWithTheirContents:[],onlyStripTags:[],stripTogetherWithTheirContents:["script","style","xml"],skipHtmlDecoding:!1,trimOnlySpaces:!1,stripRecognisedHTMLOnly:!1,dumpLinkHrefsNearby:{enabled:!1,putOnNewLine:!1,wrapHeads:"",wrapTails:""},cb:null};function En(Se,pt){var x,re,Fe,st,Gt,$t,Fn,Bn;let we=Date.now(),le=[],$=[],pe=[],Pe=[],ye={};!function Ne(){ye={attributes:[]}}();let Ve=null,bt=null,xt={},cn={tagName:"",hrefValue:"",openingTagEnds:void 0},ct="",ut=!1,tt=null,yt=!0;function mn(dt){return"string"==typeof dt}function Dn(dt,dn,en){if(Array.isArray(dn.stripTogetherWithTheirContents)&&(dn.stripTogetherWithTheirContents.includes(ye.name)||dn.stripTogetherWithTheirContents.includes("*")))if(ye.slashPresent&&Array.isArray(le)&&le.some(un=>un.name===ye.name)){for(let un=le.length;un--;)if(le[un].name===ye.name){Pe=Pe.filter(([Cn,_n])=>(Cn=dt+1)&&(_n<=le[un].lastOpeningBracketAt||_n>dt+1));let fn=dt+1;ye.lastClosingBracketAt&&(fn=ye.lastClosingBracketAt+1),Pe.push([le[un].lastOpeningBracketAt,fn]),Bt.has(Se[dt])&&dn.cb?dn.cb({tag:ye,deleteFrom:le[un].lastOpeningBracketAt,deleteTo:dt+1,insert:null,rangesArr:en,proposedReturn:[le[un].lastOpeningBracketAt,dt,null]}):dn.cb&&dn.cb({tag:ye,deleteFrom:le[un].lastOpeningBracketAt,deleteTo:dt,insert:"",rangesArr:en,proposedReturn:[le[un].lastOpeningBracketAt,dt,""]}),le.splice(un,1);break}}else ye.slashPresent||le.push(ye);else Array.isArray(dn.ignoreTagsWithTheirContents)&&li(dt,dn,ye)&&(yt=!1)}function kn(dt,dn,en,un,fn,Cn){var Ei;if(Array.isArray(an.current())&&"number"==typeof en&&0===an.current()[0][0]&&an.current()[0][1]>=en)return"";if(Se.length===un&&Cn&&(!on.dumpLinkHrefsNearby||!(null==(Ei=on.dumpLinkHrefsNearby)?void 0:Ei.enabled)))return null;let _n="";if(Number.isInteger(en)&&enCn+1){let vi=dt.slice(Cn+1,un);un&&!He(Se,un-1)&&(vi=vi.trimEnd()),vi.includes("\n")&&Qn(un,dt)?_n+=" ":_n+=vi}let ci=!Bt.has(dt[dn]),bi=">"!==dt[un-1]||!dt[en].trim(),si=!['"',"("].includes(dt[fn-1]),ni=![";",".",":","!"].includes(dt[dn]);if((ci||bi&&si&&ni)&&(bi||si)&&"!"!==dt[dn]&&(!qt.has(ye.name)||"number"==typeof en&&enCn+1)){let vi=_n.match(/\n/g);return Array.isArray(vi)&&vi.length?1===vi.length?"\n":2===vi.length?"\n\n":"\n\n\n":" "}return""}function Wn(dt,dn){var en,un;if((null==(en=dt.dumpLinkHrefsNearby)?void 0:en.enabled)&&cn.tagName&&cn.tagName===ye.name&&ye.lastOpeningBracketAt&&(cn.openingTagEnds&&ye.lastOpeningBracketAt>cn.openingTagEnds||!cn.openingTagEnds)&&(ut=!0),ut){let fn=(null==(un=dt.dumpLinkHrefsNearby)?void 0:un.putOnNewLine)?"\n\n":"";ct=`${fn}${cn.hrefValue}`,("number"!=typeof dn||He(Se,dn-1))&&(ct+=fn)}}function Qn(dt,dn){return dn?"<"===dn[dt]&&"%"!==dn[dt+1]:"<"===Se[dt]&&"%"!==Se[dt+1]}function Ln(dt){return">"===Se[dt]&&"%"!==Se[dt-1]}function li(dt,dn,en){if(dn.ignoreTagsWithTheirContents.includes("*"))return!0;let un=Se.indexOf(`<${en.name}`,dt),fn=Se.indexOf(`Cn.name===en.name)||fn>-1&&un>-1&&un"string"==typeof dt||(ln.el=dt,ln.i=dn,!1)))throw new TypeError(`string-strip-html/stripHtml(): [THROW_ID_05] Optional Options Object's key stripTogetherWithTheirContents was set to contain not just string elements! For example, element at index ${ln.i} has a value ${ln.el} which is not string but ${(typeof ln.el).toLowerCase()}.`);on.cb||(on.cb=({rangesArr:dt,proposedReturn:dn})=>{dn&&dt.push(...dn)});let an=new class{constructor(Se){Gu(this,"ranges"),Gu(this,"opts");let pt={...Tt,...Se};if(pt.mergeType&&1!==pt.mergeType&&2!==pt.mergeType)if(nt(pt.mergeType)&&"1"===pt.mergeType.trim())pt.mergeType=1;else{if(!nt(pt.mergeType)||"2"!==pt.mergeType.trim())throw new Error(`ranges-push: [THROW_ID_02] opts.mergeType was customised to a wrong thing! It was given of a type: "${typeof pt.mergeType}", equal to ${JSON.stringify(pt.mergeType,null,4)}`);pt.mergeType=2}this.opts=pt,this.ranges=[]}add(Se,pt,we){if(null==Se&&null==pt)return;if(ie(Se)&&!ie(pt)){if(Array.isArray(Se)){if(Se.length){if(Se.some(pe=>Array.isArray(pe)))return void Se.forEach(pe=>{Array.isArray(pe)&&this.add(...pe)});Se.length&&Be(+Se[0])&&Be(+Se[1])&&this.add(...Se)}return}throw new TypeError(`ranges-push/Ranges/add(): [THROW_ID_12] the first input argument, "from" is set (${JSON.stringify(Se,null,0)}) but second-one, "to" is not (${JSON.stringify(pt,null,0)})`)}if(!ie(Se)&&ie(pt))throw new TypeError(`ranges-push/Ranges/add(): [THROW_ID_13] the second input argument, "to" is set (${JSON.stringify(pt,null,0)}) but first-one, "from" is not (${JSON.stringify(Se,null,0)})`);let le=+Se,$=+pt;if(Be(we)&&(we=String(we)),!Be(le)||!Be($))throw Be(le)&&le>=0?new TypeError(`ranges-push/Ranges/add(): [THROW_ID_10] "to" value, the second input argument, must be a natural number or zero! Currently it's of a type "${typeof $}" equal to: ${JSON.stringify($,null,4)}`):new TypeError(`ranges-push/Ranges/add(): [THROW_ID_09] "from" value, the first input argument, must be a natural number or zero! Currently it's of a type "${typeof le}" equal to: ${JSON.stringify(le,null,4)}`);if(ie(we)&&!nt(we)&&!Be(we))throw new TypeError(`ranges-push/Ranges/add(): [THROW_ID_08] The third argument, the value to add, was given not as string but ${typeof we}, equal to:\n${JSON.stringify(we,null,4)}`);if(ie(this.ranges)&&Array.isArray(this.last())&&le===this.last()[1]){if(this.last()[1]=$,this.last(),null!==this.last()[2]&&ie(we)){let pe=!this.last()[2]||!this.last()[2].length||this.opts&&this.opts.mergeType&&1!==this.opts.mergeType?we:`${this.last()[2]}${we}`;this.opts.limitToBeAddedWhitespace&&(pe=Me(pe,this.opts.limitLinebreaksCount)),nt(pe)&&!pe.length||(this.last()[2]=pe)}}else{this.ranges||(this.ranges=[]);let pe=void 0===we||nt(we)&&!we.length?[le,$]:[le,$,we&&this.opts.limitToBeAddedWhitespace?Me(we,this.opts.limitLinebreaksCount):we];this.ranges.push(pe)}}push(Se,pt,we){this.add(Se,pt,we)}current(){return Array.isArray(this.ranges)&&this.ranges.length?(this.ranges=function W(Se,pt){function we(Ve){return!!Ve&&"object"==typeof Ve&&!Array.isArray(Ve)}if(!Array.isArray(Se)||!Se.length)return null;let le;if(pt){if(!we(pt))throw new Error(`emlint: [THROW_ID_03] the second input argument must be a plain object. It was given as:\n${JSON.stringify(pt,null,4)} (type ${typeof pt})`);if(le={...j,...pt},le.progressFn&&we(le.progressFn)&&!Object.keys(le.progressFn).length)le.progressFn=null;else if(le.progressFn&&"function"!=typeof le.progressFn)throw new Error(`ranges-merge: [THROW_ID_01] resolvedOpts.progressFn must be a function! It was given of a type: "${typeof le.progressFn}", equal to ${JSON.stringify(le.progressFn,null,4)}`);if(![1,2,"1","2"].includes(le.mergeType))throw new Error(`ranges-merge: [THROW_ID_02] resolvedOpts.mergeType was customised to a wrong thing! It was given of a type: "${typeof le.mergeType}", equal to ${JSON.stringify(le.mergeType,null,4)}`);if("boolean"!=typeof le.joinRangesThatTouchEdges)throw new Error(`ranges-merge: [THROW_ID_04] resolvedOpts.joinRangesThatTouchEdges was customised to a wrong thing! It was given of a type: "${typeof le.joinRangesThatTouchEdges}", equal to ${JSON.stringify(le.joinRangesThatTouchEdges,null,4)}`)}else le={...j};let pe,Pe,ye,$=Se.filter(Ve=>Array.isArray(Ve)).map(Ve=>[...Ve]).filter(Ve=>void 0!==Ve[2]||Ve[0]!==Ve[1]);pe=le.progressFn?fe($,{progressFn:Ve=>{ye=Math.floor(Ve/5),ye!==Pe&&(Pe=ye,le.progressFn(ye))}}):fe($);let Ne=pe.length-1;for(let Ve=Ne;Ve>0;Ve--)le.progressFn&&(ye=Math.floor(78*(1-Ve/Ne))+21,ye!==Pe&&ye>Pe&&(Pe=ye,le.progressFn(ye))),(pe[Ve][0]<=pe[Ve-1][0]||!le.joinRangesThatTouchEdges&&pe[Ve][0]=pe[Ve][0]||pe[Ve-1][1]<=pe[Ve][1])&&null!==pe[Ve-1][2]&&(null===pe[Ve][2]&&null!==pe[Ve-1][2]?pe[Ve-1][2]=null:null!=pe[Ve-1][2]?2==+le.mergeType&&pe[Ve-1][0]===pe[Ve][0]?pe[Ve-1][2]=pe[Ve][2]:pe[Ve-1][2]+=pe[Ve][2]:pe[Ve-1][2]=pe[Ve][2]),pe.splice(Ve,1),Ve=pe.length);return pe.length?pe:null}(this.ranges,{mergeType:this.opts.mergeType}),this.ranges&&this.opts.limitToBeAddedWhitespace?this.ranges.map(Se=>ie(Se[2])?[Se[0],Se[1],Me(Se[2],this.opts.limitLinebreaksCount)]:Se):this.ranges):null}wipe(){this.ranges=[]}replace(Se){if(Array.isArray(Se)&&Se.length){if(!Array.isArray(Se[0])||!Be(Se[0][0]))throw new Error(`ranges-push/Ranges/replace(): [THROW_ID_11] Single range was given but we expected array of arrays! The first element, ${JSON.stringify(Se[0],null,4)} should be an array and its first element should be an integer, a string index.`);this.ranges=Array.from(Se)}else this.ranges=[]}last(){return Array.isArray(this.ranges)&&this.ranges.length?this.ranges[this.ranges.length-1]:null}}({limitToBeAddedWhitespace:!0,limitLinebreaksCount:2});if(!on.skipHtmlDecoding)for(;Se!==(0,M.decode)(Se,{scope:"strict"});)Se=(0,M.decode)(Se,{scope:"strict"});let We=!1,Ie=!1;for(let dt=0,dn=Se.length;dt1&&ye.lastClosingBracketAt&&ye.lastClosingBracketAtdt){dt=en;continue}}if(!We&&Ln(dt)&&(!ye||Object.keys(ye).length<2)&&dt>1)for(let en=dt;en--;)if(void 0===Se[en-1]||Ln(en)){let un=void 0===Se[en-1]?en:en+1,fn=Se.slice(un,dt+1);if(Se!==`<${o(fn.trim(),"/>")}>`&&[...qe].some(Cn=>o(fn.trim().split(/\s+/).filter(_n=>_n.trim()).filter((_n,ci)=>0===ci),"/>").toLowerCase()===Cn)&&""===En(`<${fn.trim()}>`,on).result){(!pe.length||pe[pe.length-1][0]!==ye.lastOpeningBracketAt)&&pe.push([un,dt+1]),(!Pe.length||Pe[Pe.length-1][0]!==ye.lastOpeningBracketAt)&&Pe.push([un,dt+1]);let Cn=kn(Se,dt,un,dt+1,un,dt+1),_n=dt+1;if(Se[_n]&&!Se[_n].trim())for(let ci=_n;ci{var fn,Cn;if("string"==typeof un.name&&"href"===un.name.toLowerCase())return en=`${(null==(fn=on.dumpLinkHrefsNearby)?void 0:fn.wrapHeads)||""}${un.value}${(null==(Cn=on.dumpLinkHrefsNearby)?void 0:Cn.wrapTails)||""}`,!0})&&(cn={tagName:ye.name,hrefValue:en,openingTagEnds:void 0})}else!Ie&&!ye.quotes&&ye.nameStarts&&(ye.quotes={},ye.quotes.value=Se[dt],ye.quotes.start=dt,xt.nameStarts&&xt.nameEnds&&xt.nameEnds!(un===ye.leftOuterWhitespace&&fn===dt))),on.cb({tag:ye,deleteFrom:ye.leftOuterWhitespace,deleteTo:dt,insert:`${en}${ct}${en}`,rangesArr:an,proposedReturn:[ye.leftOuterWhitespace,dt,`${en}${ct}${en}`]}),ri(),Dn(dt,on,an)}}if((null==(Fe=ye.quotes)?void 0:Fe.start)&&ye.quotes.start/!".includes(Se[dt])&&!xt.nameStarts&&!ye.lastClosingBracketAt&&(xt.nameStarts=dt),null!==ye.lastOpeningBracketAt&&ye.lastOpeningBracketAt"===Se[dt])&&void 0!==ye.lastOpeningBracketAt){if(void 0===ye.lastClosingBracketAt){if(ye.lastOpeningBracketAtun!==en.lastOpeningBracketAt),Pe.push([en.lastOpeningBracketAt,dt+1])):Pe.push([ye.lastOpeningBracketAt,dt+1])}else Pe.push([ye.lastOpeningBracketAt,dt+1])}}else if(dt>ye.lastClosingBracketAt&&Se[dt].trim()||void 0===Se[dt+1]){let en=ye.lastClosingBracketAt===dt?dt+1:dt;on.trimOnlySpaces&&en===dn-1&&null!==tt&&ttCn.equalsAt))){(!Pe.length||Pe[Pe.length-1][0]!==ye.lastOpeningBracketAt)&&Pe.push([ye.lastOpeningBracketAt,ye.lastClosingBracketAt+1]);let _n,Cn=kn(Se,dt,ye.leftOuterWhitespace,en,ye.lastOpeningBracketAt,ye.lastClosingBracketAt);ct="",ut=!1,Wn(on,en),mn(ct)&&ct.length?(_n=`${Cn}${ct}${"\n\n"===Cn?"\n":Cn}`,en===ye.lastClosingBracketAt+1&&(!Se[en]||!At.has(Se[en]))&&(_n+=" "),ye.leftOuterWhitespace===ye.lastOpeningBracketAt&&an.last()&&an.last()[1]dt)&&ci++}on.cb({tag:ye,deleteFrom:ye.leftOuterWhitespace,deleteTo:en+ci,insert:_n,rangesArr:an,proposedReturn:[ye.leftOuterWhitespace,en+ci,_n]}),ri(),Dn(dt,on,an)}else ye={};Ln(dt)||(ye={})}Ie&&(Ie=!1)}if((!We||"<"===Se[dt]&&He(Se,He(Se,dt))&&"/"===Se[He(Se,dt)]&&Se.startsWith("script",He(Se,He(Se,dt))))&&Qn(dt)&&!Qn(dt-1)&&!"'\"".includes(Se[dt+1])&&(!"'\"".includes(Se[dt+2])||/\w/.test(Se[dt+1]))&&("c"!==Se[dt+1]||":"!==Se[dt+2])&&("f"!==Se[dt+1]||"m"!==Se[dt+2]||"t"!==Se[dt+3]||":"!==Se[dt+4])&&("s"!==Se[dt+1]||"q"!==Se[dt+2]||"l"!==Se[dt+3]||":"!==Se[dt+4])&&("x"!==Se[dt+1]||":"!==Se[dt+2])&&("f"!==Se[dt+1]||"n"!==Se[dt+2]||":"!==Se[dt+3])&&be(ye,Se,dt)){if(Ln(He(Se,dt)))continue;if(ye.nameEnds&&ye.nameEnds"==`${Se[fn-2]}${Se[fn-1]}${Se[fn]}`||!en&&"--\x3e"==`${Se[fn-2]}${Se[fn-1]}${Se[fn]}`)&&(un=fn),un&&(un"===Se[fn])&&(Cn+=1),(!pe.length||pe[pe.length-1][0]!==ye.lastOpeningBracketAt)&&pe.push([ye.lastOpeningBracketAt,un+1]),(!Pe.length||Pe[Pe.length-1][0]!==ye.lastOpeningBracketAt)&&Pe.push([ye.lastOpeningBracketAt,un+1]);let _n=kn(Se,fn,ye.leftOuterWhitespace,Cn,ye.lastOpeningBracketAt,un);on.cb({tag:ye,deleteFrom:ye.leftOuterWhitespace,deleteTo:Cn,insert:_n,rangesArr:an,proposedReturn:[ye.leftOuterWhitespace,Cn,_n]}),dt=fn-1,">"===Se[fn]&&(dt=fn),ye={},xt={};break}}}Se[dt].trim()?null!==Ve&&(!ye.quotes&&xt.equalsAt>Ve-1&&xt.nameEnds&&xt.equalsAt>xt.nameEnds&&'"'!==Se[dt]&&"'"!==Se[dt]&&(u(xt)&&ye.attributes.push(xt),xt={},ye.equalsSpottedAt=void 0),Ve=null):null===Ve&&(Ve=dt,void 0!==ye.lastOpeningBracketAt&&ye.lastOpeningBracketAten.name===ye.name)&&(ye.onlyPlausible=!0,ye.name=void 0,ye.nameStarts=void 0))," "===Se[dt]?null===bt&&(bt=dt):null!==bt&&(bt=null),"script"===ye.name&&(We=!ye.slashPresent)}if(Se&&(on.trimOnlySpaces&&" "===Se[0]||!on.trimOnlySpaces&&!Se[0].trim()))for(let dt=0,dn=Se.length;dt{class Se{constructor(we,le){this.localStorageKeys={AturanTatib:`${Et.N.siteName}_AturanTatib`,DebugLogs:`${Et.N.siteName}_DebugLogs`,DarkMode:`${Et.N.siteName}_DarkMode`,token:`${Et.N.siteName}_Token`,LiveChatResults:`${Et.N.siteName}_LiveChatResults`,SearchResults:`${Et.N.siteName}_SearchResults`,Torrents:`${Et.N.siteName}_Torrents`},this.forceEnableDebugLog=null,this.separatorKeysCodes=[l.K5,l.OC],this.routerData=null,this.previousUrl=null,this.bgImgUrlPath=null,this.bannerImg=null,this.sizeContain=!1,this.bgRepeat=!1,this.leftMenuImage=null,this.rightMenuImage=null,this.isBrowser=null,this.document=null,this.gridListBreakpoint=1,this.isDesktop=!0,this.isDevMode=!0,this.isDarkMode=!1,this.weatherEffect=null,this.weatherRunning=!1,this.angularEditorConfig={editable:!0,minHeight:"256px",placeholder:"Deskripsi, Informasi, Atau Keterangan Lainnya ...",uploadUrl:`${Et.N.apiUrl}/image`,uploadWithCredentials:!0,defaultParagraphSeparator:"div",toolbarHiddenButtons:[[],[]],customClasses:[{name:"white-space-normal-important",class:"white-space-normal-important"},{name:"text-decoration-none",class:"text-decoration-none"}]},this.seasonalWeather=[{id:1,name:_t.F.WINTER,cssClassName:"snow",img:"/assets/img/season/winter.png"},{id:2,name:_t.F.SPRING,cssClassName:"sakura",img:"/assets/img/season/spring.png"},{id:3,name:_t.F.SUMMER,cssClassName:null,img:"/assets/img/season/summer.png"},{id:4,name:_t.F.FALL,cssClassName:"fall",img:"/assets/img/season/fall.png"}],this.isBrowser=(0,r.NF)(we),this.document=le,this.isDevMode=(0,n.X6Q)(),this.isBrowser&&(this.onResize(null),this.weatherJS())}log(we,le=null,$="log"){if(this.isBrowser&&(this.forceEnableDebugLog="true"===localStorage.getItem(this.localStorageKeys.DebugLogs)),this.isDevMode||this.forceEnableDebugLog){let pe=null;pe="warn"===$?console.warn:"error"===$?console.error:"table"===$?console.table:console.log,le?pe(we,le):pe(we)}}getDirtyValues(we){const le={};for(const $ of Object.keys(we.controls)){const pe=we.get($);pe.dirty&&(le[$]=pe.value)}return le}get randomColor(){return(16777215*Math.random()<<0).toString(16)}get bgImgUrl(){return this.isDesktop?this.bgImgUrlPath:null}onResize(we,le="APP_COMPONENT"){var $;if(we&&this.log(`[WINDOW_RESIZE-${le}]`,we),this.isBrowser){const pe=(null===($=null==we?void 0:we.target)||void 0===$?void 0:$.window)||window;this.isDesktop=!0,this.leftMenuImage="/assets/img/background/left-menu.png",this.rightMenuImage="/assets/img/background/right-panel.png",pe.innerWidth>=1200?this.gridListBreakpoint=4:pe.innerWidth>=992?this.gridListBreakpoint=3:pe.innerWidth>=767?this.gridListBreakpoint=2:(this.isDesktop=!1,this.gridListBreakpoint=1,this.leftMenuImage=null,this.rightMenuImage="")}}htmlToText(we){return we?En(we).result:""}shuffle(we){let le=we.length,$=0,pe=0;for(;0!==le;)pe=Math.floor(Math.random()*le),le-=1,$=we[le],we[le]=we[pe],we[pe]=$;return we}cleanObject(we){for(const le in we)we[le]||delete we[le]}includesOneOf(we,le){for(const $ of le)if(we.includes($))return!0;return!1}linkify(we){if(we){const $=/(^|[^\/])(www\.[\S]+(\b|$))/gim,pe=/[\w.]+@[a-zA-Z_-]+?(?:\.[a-zA-Z]{2,6})+/gim;return we.replace(/\b(?:https?|ftp):\/\/[a-z0-9-+&@#\/%?=~_|!:,.;]*[a-z0-9-+&@#\/%=~_|]/gim,'$&').replace($,'$1$2').replace(pe,'$&')}return""}toggleDarkTheme(we=!1){we?this.isDarkMode?this.document.body.classList.add("bifeldy-dark-theme"):this.document.body.classList.remove("bifeldy-dark-theme"):this.isDarkMode?(this.isDarkMode=!1,this.document.body.classList.remove("bifeldy-dark-theme")):(this.isDarkMode=!0,this.document.body.classList.add("bifeldy-dark-theme"))}rssLink(we){if("string"==typeof we)return we;let le=we.findIndex($=>"alternate"===$.rel&&"text/html"===$.type);return le<0?we.length>0?we[we.length-1].href:"":we[le].href}weatherJS(){const we=(new Date).getMonth()+1,le=this.seasonalWeather.find($=>$.id===Math.ceil(we/3));(null==le?void 0:le.cssClassName)&&(this.weatherEffect=new Sakura("body",{className:le.cssClassName,lifeTime:5e3}),this.weatherRunning=!0)}weatherToggle(){this.weatherRunning?(this.weatherEffect.stop(!0),this.weatherRunning=!1):(this.weatherEffect.start(),this.weatherRunning=!0)}}return Se.\u0275fac=function(we){return new(we||Se)(n.LFG(n.Lbi),n.LFG(r.K0))},Se.\u0275prov=n.Yz7({token:Se,factory:Se.\u0275fac,providedIn:"root"}),Se})()},7902:(it,U,a)=>{"use strict";a.d(U,{X:()=>u});var n=a(5e3),r=a(9731),l=a(8696);let u=(()=>{class o{constructor(M,g){this.api=M,this.gs=g}uploadImage(M){return this.api.postData("/image",M,!0,{headers:{"ngsw-bypass":"true"}})}}return o.\u0275fac=function(M){return new(M||o)(n.LFG(r.s),n.LFG(l.U))},o.\u0275prov=n.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})()},7745:(it,U,a)=>{"use strict";a.d(U,{O:()=>u});var n=a(5e3),r=a(9731),l=a(8696);let u=(()=>{class o{constructor(M,g){this.api=M,this.gs=g}getAllInfo(M,g,C,D,y){return this.api.getData(`/information?q=${M}&page=${g}&row=${C}&sort=${D}&order=${y}`)}getInfo(M){return this.api.getData(`/information/${M}`)}createUpdateInfo(M){return this.api.postData("/information",M)}deleteInfo(M){return this.api.deleteData(`/information/${M}`)}}return o.\u0275fac=function(M){return new(M||o)(n.LFG(r.s),n.LFG(l.U))},o.\u0275prov=n.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})()},7:(it,U,a)=>{"use strict";a.d(U,{S:()=>l});var n=a(5e3),r=a(8696);let l=(()=>{class u{constructor(I){this.gs=I,this.sideNav=null,this.sideNavExpanded=!1,this.linkText=!1,this.opened=!0,this.mainMenus=[{name:"Beranda",link:"/home",icon:"dashboard",badge:null},{name:"Berita & Informasi",link:"/news",icon:"receipt_long",badge:null},{name:"Nihongo \u65e5\u672c\u8a9e",link:"/nihongo",icon:"translate",badge:null},{name:"E-Mail@FanSub.ID",link:"/mailbox",icon:"mail_outline",badge:null}],this.contentMenus=[{name:"Anime Musiman",link:"/anime",icon:"live_tv",badge:null},{name:"Film Drama",link:"/dorama",icon:"movie",badge:null},{name:"Katalog Fansub",link:"/fansub",icon:"closed_caption",badge:null},{name:"Berbagi Garapan",link:"/berkas",icon:"file_copy",badge:null}],this.miscMenus=[{name:"RSS Feed",link:"/rss-feed",icon:"rss_feed",badge:null},{name:"Admin & Mod Panel",link:"/admin-mod",icon:"admin_panel_settings",badge:null}],this.otherMenus=[{name:"Kebijakan Privasi",link:"/privacy-policy",icon:"policy",badge:null},{name:"About",link:"/about",icon:"info",badge:null}],this.gs.isBrowser&&(this.opened=window.innerWidth>=992)}changeSideNavState(){this.linkText=this.sideNavExpanded}forceCloseSideNav(){!this.gs.isDesktop&&this.sideNav.opened&&this.sideNav.close(),this.onMouseHoverOut()}onSideNavToggleView(){this.sideNav.opened?(this.sideNav.close(),this.gs.isDesktop||this.onMouseHoverOut()):(this.sideNav.open(),this.gs.isDesktop||this.onMouseHoverIn())}onSideNavToggleExpanded(){this.sideNavExpanded=!this.sideNavExpanded,this.changeSideNavState()}onMouseHoverIn(){!1===this.sideNavExpanded&&(this.sideNavExpanded=!0,this.changeSideNavState())}onMouseHoverOut(){!0===this.sideNavExpanded&&(this.sideNavExpanded=!1,this.changeSideNavState())}}return u.\u0275fac=function(I){return new(I||u)(n.LFG(r.U))},u.\u0275prov=n.Yz7({token:u,factory:u.\u0275fac,providedIn:"root"}),u})()},3379:(it,U,a)=>{"use strict";a.d(U,{n:()=>o});var n=a(5934),r=a(5e3),l=a(8379),u=a(8696);let o=(()=>{class I{constructor(g,C){this.crypt=g,this.gs=C}getItem(g,C=!1){if(!this.gs.isBrowser)return null;if(!C)return localStorage.getItem(g);try{const D=localStorage.getItem(g),y=this.crypt.decrypt(D,n.N.apiKey);return JSON.parse(y)}catch(D){return this.removeItem(g),null}}setItem(g,C){if(this.gs.isBrowser)if("string"==typeof C)localStorage.setItem(g,C);else{const D=JSON.stringify(C),y=this.crypt.encrypt(D,n.N.apiKey);localStorage.setItem(g,y)}}removeItem(g){this.gs.isBrowser&&localStorage.removeItem(g)}clear(){if(this.gs.isBrowser)for(const g of Object.keys(this.gs.localStorageKeys))"Torrents"!==g&&this.removeItem(this.gs.localStorageKeys[g])}}return I.\u0275fac=function(g){return new(g||I)(r.LFG(l.$),r.LFG(u.U))},I.\u0275prov=r.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"}),I})()},9618:(it,U,a)=>{"use strict";a.d(U,{Y:()=>u});var n=a(5e3),r=a(9731),l=a(8696);let u=(()=>{class o{constructor(M,g){this.api=M,this.gs=g}getAllNews(M="",g=1,C=10,D="",y=""){return this.api.getData(`/news?q=${M}&page=${g}&row=${C}&sort=${D}&order=${y}`)}createNews(M){return this.api.postData("/news",M)}updateNews(M,g){return this.api.putData(`/news/${M}`,g)}getNews(M){return this.api.getData(`/news/${M}`)}}return o.\u0275fac=function(M){return new(M||o)(n.LFG(r.s),n.LFG(l.U))},o.\u0275prov=n.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})()},2663:(it,U,a)=>{"use strict";a.d(U,{a:()=>u});var n=a(5e3),r=a(9731),l=a(8696);let u=(()=>{class o{constructor(M,g){this.api=M,this.gs=g}getAllNihongo(M="",g="",C=1,D=10,y="",_=""){return this.api.getData(`/nihongo?category=${M}&q=${g}&page=${C}&row=${D}&sort=${y}&order=${_}`)}getAllKategori(){return this.api.patchData("/nihongo")}createNihongo(M){return this.api.postData("/nihongo",M)}updateNihongo(M,g){return this.api.putData(`/nihongo/${M}`,g)}getHirakata(){return this.api.getData("/nihongo-hirakata-all")}getAllKanji(M="",g="",C="",D=1,y=10,_="",E=""){return this.api.getData(`/nihongo-kanji?jlpt=${M}&school=${g}&q=${C}&page=${D}&row=${y}&sort=${_}&order=${E}`)}getAllEdict(M="",g=1,C=10,D="",y=""){return this.api.getData(`/nihongo-edict?q=${M}&page=${g}&row=${C}&sort=${D}&order=${y}`)}}return o.\u0275fac=function(M){return new(M||o)(n.LFG(r.s),n.LFG(l.U))},o.\u0275prov=n.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})()},7140:(it,U,a)=>{"use strict";a.d(U,{T:()=>u});var n=a(5934),r=a(5e3),l=a(8696);let u=(()=>{class o{constructor(M){this.gs=M,this.notifications=[],this.dissmissTimeout={},this.timedOut=null,this.gs.isBrowser&&this.notifications.push({notifCreator:null,notifData:{id:`${n.N.siteName.toUpperCase()}_UNDER_DEVELOPMENT`,type:"info",title:"Pemberitahuan!",content:'\n Jika ingin request fitur baru ataupun melaporkan Bug dapat menulis pesan di kanal Discord\n \'#dev-prog\'.\n Terima kasih. ^_^\n ',dismissible:!0}})}addNotif(M,g,C,D,y,_=!0){_&&(this.dissmissTimeout[g]=setTimeout(()=>this.removeNotif(g),1e4)),this.notifications.splice(0,0,{notifCreator:M,notifData:{id:g,type:C,title:D,content:y,dismissible:_}})}removeNotif(M){this.dissmissTimeout[M]&&(clearTimeout(this.dissmissTimeout[M]),this.dissmissTimeout[M]=null,delete this.dissmissTimeout[M]),this.timedOut=setTimeout(()=>{const g=this.notifications.findIndex(C=>C.notifData.id===M);g>=0&&(this.notifications=this.notifications.slice(0,g).concat(this.notifications.slice(g+1,this.notifications.length)))},500)}}return o.\u0275fac=function(M){return new(M||o)(r.LFG(l.U))},o.\u0275prov=r.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})()},8745:(it,U,a)=>{"use strict";a.d(U,{Z:()=>I});var n=a(5934),r=a(5e3),l=a(2313),u=a(8696),o=a(8406);let I=(()=>{class M{constructor(C,D,y,_){this.t=C,this.m=D,this.gs=y,this.router=_,this.siteName=n.N.siteName,this.title="",this.description="",this.keywords="",this.image="",this.author=""}get getTitle(){return this.title}get getDescription(){return this.description}get getKeywords(){return this.keywords}updatePageMetaData(C,D,y,_=`${n.N.baseUrl}/assets/img/favicon.png`,E="\u300c\u{1f4a4} Fansub \u2728 ID \u{1f31e}\u300d"){this.title=C,this.description=this.gs.htmlToText(D),this.keywords=y,this.image=_.startsWith("/")?n.N.baseUrl+_:_,this.author=E,this.t.setTitle(`${this.title} | ${this.siteName}`),this.m.updateTag({name:"keywords",content:this.keywords}),this.m.updateTag({name:"author",content:this.author}),this.m.updateTag({property:"og:title",content:`${this.title} | ${this.siteName}`}),this.m.updateTag({property:"og:image",content:this.image}),this.m.updateTag({name:"twitter:title",content:`${this.title} | ${this.siteName}`}),this.description&&(this.m.updateTag({name:"description",content:this.description}),this.m.updateTag({property:"og:description",content:this.description}),this.m.updateTag({name:"twitter:description",content:this.description})),this.m.updateTag({name:"twitter:image",content:this.image}),this.router.url.includes("/berkas/")&&!this.image.includes(n.N.baseUrl)&&this.m.updateTag({name:"twitter:card",content:"summary_large_image"})}updateStatusBarTheme(C){this.m.updateTag(C?{name:"theme-color",content:"#673ab7"}:{name:"theme-color",content:"#3f51b5"})}}return M.\u0275fac=function(C){return new(C||M)(r.LFG(l.Dx),r.LFG(l.h_),r.LFG(u.U),r.LFG(o.F0))},M.\u0275prov=r.Yz7({token:M,factory:M.\u0275fac,providedIn:"root"}),M})()},7814:(it,U,a)=>{"use strict";a.d(U,{C:()=>Ce});var n=a(5e3),r=a(8696),l=a(9618),u=a(7845),o=a(2663),I=a(519),M=a(8439),g=a(6781),C=a(8987),D=a(8058),y=a(3379),_=a(7322),E=a(7531),O=a(3075),ee=a(5245),ue=a(9808),K=a(4623),ne=a(8406),De=a(508);function ve(q,He){if(1&q&&(n.TgZ(0,"mat-list-option",11),n._UZ(1,"img",12),n.TgZ(2,"h4",13),n._uU(3),n.qZA(),n.TgZ(4,"h5",13)(5,"span",14),n._uU(6),n.qZA(),n._uU(7," \xa0 "),n.TgZ(8,"span",15),n._uU(9),n.ALo(10,"date"),n.qZA()()()),2&q){const ae=He.$implicit;n.MGl("routerLink","/news/",ae.id,""),n.xp6(1),n.s9C("src",ae.image_url,n.LSH),n.xp6(2),n.Oqu(ae.title),n.xp6(3),n.Oqu(ae.user_.username),n.xp6(3),n.Oqu(n.xi3(10,5,ae.created_at,"d-MM-y"))}}function Z(q,He){if(1&q&&(n.TgZ(0,"div",0)(1,"div",5)(2,"h2",7)(3,"b",8),n._uU(4,"Berita"),n.qZA()()(),n.TgZ(5,"div",5)(6,"mat-selection-list",9),n.YNc(7,ve,11,8,"mat-list-option",10),n.ALo(8,"slice"),n.qZA()()()),2&q){const ae=n.oxw();n.xp6(6),n.Q6J("multiple",!1),n.xp6(1),n.Q6J("ngForOf",n.Dn7(8,2,ae.searchResult.beritaResults,0,5))}}function z(q,He){if(1&q){const ae=n.EpF();n.TgZ(0,"mat-list-option",17),n.NdJ("click",function(){const de=n.CHM(ae).$implicit;return n.oxw(2).openEdict(de)}),n.TgZ(1,"h4",18),n._uU(2),n.qZA(),n.TgZ(3,"h5",18)(4,"span",14),n._uU(5),n.qZA(),n._uU(6," \xa0 "),n.TgZ(7,"span",15),n._uU(8),n.qZA()()()}if(2&q){const ae=He.$implicit;n.xp6(2),n.lnq(" ",ae.character," | ",ae.v_kunyomi,"| ",ae.v_onyomi," "),n.xp6(3),n.hij("N",ae.jlpt,""),n.xp6(3),n.Oqu(ae.translate)}}function V(q,He){if(1&q&&(n.TgZ(0,"div",0)(1,"div",5)(2,"h2",7)(3,"b",8),n._uU(4,"Kanji"),n.qZA()()(),n.TgZ(5,"div",5)(6,"mat-selection-list",9),n.YNc(7,z,9,5,"mat-list-option",16),n.ALo(8,"slice"),n.qZA()()()),2&q){const ae=n.oxw();n.xp6(6),n.Q6J("multiple",!1),n.xp6(1),n.Q6J("ngForOf",n.Dn7(8,2,ae.searchResult.kanjiResults,0,5))}}function Me(q,He){if(1&q&&(n.TgZ(0,"mat-list-option",11),n._UZ(1,"img",12),n.TgZ(2,"h4",13),n._uU(3),n.qZA(),n.TgZ(4,"h5",13)(5,"span",14),n._uU(6),n.qZA(),n._uU(7," \xa0 "),n.TgZ(8,"span",15),n._uU(9),n.qZA()()()),2&q){const ae=He.$implicit,Ze=n.oxw(2);n.hYB("routerLink","/anime/",ae.id,"-",Ze.getAnimeTitle(ae.title),""),n.xp6(1),n.s9C("src",ae.image_url,n.LSH),n.xp6(2),n.Oqu(ae.title),n.xp6(3),n.Oqu(ae.id),n.xp6(3),n.AsE("",ae.num_episodes," Eps ",null==ae.media_type?null:ae.media_type.toUpperCase(),"")}}function Q(q,He){if(1&q&&(n.TgZ(0,"div",0)(1,"div",5)(2,"h2",7)(3,"b",8),n._uU(4,"Anime"),n.qZA()()(),n.TgZ(5,"div",5)(6,"mat-selection-list",9),n.YNc(7,Me,10,7,"mat-list-option",10),n.ALo(8,"slice"),n.qZA()()()),2&q){const ae=n.oxw();n.xp6(6),n.Q6J("multiple",!1),n.xp6(1),n.Q6J("ngForOf",n.Dn7(8,2,ae.searchResult.animeResults,0,5))}}function fe(q,He){if(1&q&&(n.TgZ(0,"mat-list-option",11),n._UZ(1,"img",12),n.TgZ(2,"h4",13),n._uU(3),n.qZA(),n.TgZ(4,"h5",13)(5,"span",14),n._uU(6),n.qZA(),n._uU(7," \xa0 "),n.TgZ(8,"span",15),n._uU(9),n.qZA()()()),2&q){const ae=He.$implicit;n.MGl("routerLink","/dorama/",ae.slug,""),n.xp6(1),n.s9C("src",ae.thumb,n.LSH),n.xp6(2),n.Oqu(ae.title),n.xp6(3),n.Oqu(ae.mdl_id),n.xp6(3),n.Oqu(ae.type)}}function Ae(q,He){if(1&q&&(n.TgZ(0,"div",0)(1,"div",5)(2,"h2",7)(3,"b",8),n._uU(4,"Dorama"),n.qZA()()(),n.TgZ(5,"div",5)(6,"mat-selection-list",9),n.YNc(7,fe,10,5,"mat-list-option",10),n.ALo(8,"slice"),n.qZA()()()),2&q){const ae=n.oxw();n.xp6(6),n.Q6J("multiple",!1),n.xp6(1),n.Q6J("ngForOf",n.Dn7(8,2,ae.searchResult.doramaResults,0,5))}}function j(q,He){if(1&q&&(n.TgZ(0,"mat-list-option",11),n._UZ(1,"img",12),n.TgZ(2,"h4",13),n._uU(3),n.qZA(),n.TgZ(4,"h5",13)(5,"span",14),n._uU(6),n.qZA(),n._uU(7," \xa0 "),n.TgZ(8,"span",15),n._uU(9),n.ALo(10,"date"),n.qZA()()()),2&q){const ae=He.$implicit;n.MGl("routerLink","/fansub/",ae.slug,""),n.xp6(1),n.s9C("src",ae.image_url,n.LSH),n.xp6(2),n.Oqu(ae.name),n.xp6(3),n.Oqu(ae.active?"Aktif":"Tidak Aktif"),n.xp6(3),n.Oqu(n.xi3(10,5,ae.born,"d-MM-y"))}}function W(q,He){if(1&q&&(n.TgZ(0,"div",0)(1,"div",5)(2,"h2",7)(3,"b",8),n._uU(4,"Fansub"),n.qZA()()(),n.TgZ(5,"div",5)(6,"mat-selection-list",9),n.YNc(7,j,11,8,"mat-list-option",10),n.ALo(8,"slice"),n.qZA()()()),2&q){const ae=n.oxw();n.xp6(6),n.Q6J("multiple",!1),n.xp6(1),n.Q6J("ngForOf",n.Dn7(8,2,ae.searchResult.fansubResults,0,5))}}function J(q,He){if(1&q&&(n.TgZ(0,"mat-list-option",11),n._UZ(1,"img",12),n.TgZ(2,"h4",13),n._uU(3),n.qZA(),n.TgZ(4,"h5",13)(5,"span",14),n._uU(6),n.qZA(),n._uU(7," \xa0 "),n.TgZ(8,"span",15),n._uU(9),n.ALo(10,"date"),n.qZA()()()),2&q){const ae=He.$implicit;n.MGl("routerLink","/berkas/",ae.id,""),n.xp6(1),n.s9C("src",ae.image_url,n.LSH),n.xp6(2),n.Oqu(ae.name),n.xp6(3),n.Oqu(ae.user_.username),n.xp6(3),n.Oqu(n.xi3(10,5,ae.created_at,"d-MM-y"))}}function ie(q,He){if(1&q&&(n.TgZ(0,"div",0)(1,"div",5)(2,"h2",7)(3,"b",8),n._uU(4,"Berkas"),n.qZA()()(),n.TgZ(5,"div",5)(6,"mat-selection-list",9),n.YNc(7,J,11,8,"mat-list-option",10),n.ALo(8,"slice"),n.qZA()()()),2&q){const ae=n.oxw();n.xp6(6),n.Q6J("multiple",!1),n.xp6(1),n.Q6J("ngForOf",n.Dn7(8,2,ae.searchResult.berkasResults,0,5))}}function Be(q,He){if(1&q&&(n.TgZ(0,"mat-list-option",11),n._UZ(1,"img",12),n.TgZ(2,"h4",13),n._uU(3),n.qZA(),n.TgZ(4,"h5",13)(5,"span",14),n._uU(6),n.qZA(),n._uU(7," \xa0 "),n.TgZ(8,"span",15),n._uU(9),n.ALo(10,"date"),n.qZA()()()),2&q){const ae=He.$implicit;n.MGl("routerLink","/user/",ae.username,""),n.xp6(1),n.s9C("src",ae.image_url,n.LSH),n.xp6(2),n.Oqu(ae.kartu_tanda_penduduk_.nama),n.xp6(3),n.Oqu(ae.id),n.xp6(3),n.Oqu(n.xi3(10,5,ae.created_at,"d-MM-y"))}}function nt(q,He){if(1&q&&(n.TgZ(0,"div",0)(1,"div",5)(2,"h2",7)(3,"b",8),n._uU(4,"Pengguna"),n.qZA()()(),n.TgZ(5,"div",5)(6,"mat-selection-list",9),n.YNc(7,Be,11,8,"mat-list-option",10),n.ALo(8,"slice"),n.qZA()()()),2&q){const ae=n.oxw();n.xp6(6),n.Q6J("multiple",!1),n.xp6(1),n.Q6J("ngForOf",n.Dn7(8,2,ae.searchResult.penggunaResults,0,5))}}let Tt=(()=>{class q{constructor(ae,Ze,Re,de,te,ze,Ct,Ft,jt,gn){this.gs=ae,this.news=Ze,this.ds=Re,this.nihon=de,this.anime=te,this.dorama=ze,this.fansub=Ct,this.berkas=Ft,this.user=jt,this.ls=gn,this.searchResult={q:"",beritaResults:[],kanjiResults:[],animeResults:[],doramaResults:[],fansubResults:[],berkasResults:[],penggunaResults:[]},this.subsBerita=null,this.subsKanji=null,this.subsAnime=null,this.subsDorama=null,this.subsFansub=null,this.subsBerkas=null,this.subsPengguna=null,this.subsDialog=null,this.timedOut1=null,this.timedOut2=null,this.timedOut3=null,this.timedOut4=null,this.timedOut5=null,this.timedOut6=null,this.timedOut7=null}ngOnInit(){this.gs.isBrowser&&(this.searchResult=this.ls.getItem(this.gs.localStorageKeys.SearchResults,!0)||this.searchResult)}ngOnDestroy(){var ae,Ze,Re,de,te,ze,Ct,Ft;this.ls.setItem(this.gs.localStorageKeys.SearchResults,this.searchResult),null===(ae=this.subsBerita)||void 0===ae||ae.unsubscribe(),null===(Ze=this.subsKanji)||void 0===Ze||Ze.unsubscribe(),null===(Re=this.subsAnime)||void 0===Re||Re.unsubscribe(),null===(de=this.subsDorama)||void 0===de||de.unsubscribe(),null===(te=this.subsFansub)||void 0===te||te.unsubscribe(),null===(ze=this.subsBerkas)||void 0===ze||ze.unsubscribe(),null===(Ct=this.subsPengguna)||void 0===Ct||Ct.unsubscribe(),null===(Ft=this.subsDialog)||void 0===Ft||Ft.unsubscribe(),this.timedOut1&&(clearTimeout(this.timedOut1),this.timedOut1=null),this.timedOut2&&(clearTimeout(this.timedOut2),this.timedOut2=null),this.timedOut3&&(clearTimeout(this.timedOut3),this.timedOut3=null),this.timedOut4&&(clearTimeout(this.timedOut4),this.timedOut4=null),this.timedOut5&&(clearTimeout(this.timedOut5),this.timedOut5=null),this.timedOut6&&(clearTimeout(this.timedOut6),this.timedOut6=null),this.timedOut7&&(clearTimeout(this.timedOut7),this.timedOut7=null)}applyFilter(ae){this.gs.log("[SEARCH_VALUE_CHANGED]",ae),this.searchResult.q=ae.target.value.trim().toLowerCase(),this.searchResult.beritaResults=[],this.searchResult.kanjiResults=[],this.searchResult.animeResults=[],this.searchResult.doramaResults=[],this.searchResult.fansubResults=[],this.searchResult.berkasResults=[],this.searchResult.penggunaResults=[],this.searchResult.q&&(this.timedOut1=setTimeout(()=>{this.getNews()},250),this.timedOut2=setTimeout(()=>{this.getKanji()},500),this.timedOut3=setTimeout(()=>{this.getAnime()},750),this.timedOut4=setTimeout(()=>{this.getDorama()},1e3),this.timedOut5=setTimeout(()=>{this.getFansub()},1250),this.timedOut6=setTimeout(()=>{this.getBerkas()},1500),this.timedOut7=setTimeout(()=>{this.getPengguna()},1750))}openEdict(ae){this.gs.log("[HIRAKATA_OPEN_EDICT]",ae),this.subsDialog=this.ds.openEdictDialog({data:{character:ae.character,context:ae.context,freq:ae.freq,gakken:ae.gakken,harlpern_kkld:ae.harlpern_kkld,harlpern_njecd:ae.harlpern_njecd,jlpt:ae.jlpt,maniette:ae.maniette,nelson_c:ae.nelson_c,nelson_n:ae.nelson_n,remember:ae.remember,school:ae.school,skip:ae.skip,stroke:ae.stroke,translate:ae.translate,v_kunyomi:ae.v_kunyomi,v_onyomi:ae.v_onyomi},disableClose:!1}).afterClosed().subscribe({next:Ze=>{this.gs.log("[EDICT_DIALOG_CLOSED]",Ze),this.subsDialog.unsubscribe()}})}getNews(){this.subsBerita&&this.subsBerita.unsubscribe(),this.subsBerita=this.news.getAllNews(this.searchResult.q,1,5).subscribe({next:ae=>{this.gs.log("[NEWS_SEARCH_SUCCESS]",ae),this.searchResult.beritaResults=ae.results},error:ae=>{this.gs.log("[NEWS_SEARCH_ERROR]",ae,"error")}})}getKanji(){this.subsKanji&&this.subsKanji.unsubscribe(),this.subsKanji=this.nihon.getAllKanji("","",this.searchResult.q,1,5).subscribe({next:ae=>{this.gs.log("[KANJI_SEARCH_SUCCESS]",ae),this.searchResult.kanjiResults=ae.results},error:ae=>{this.gs.log("[KANJI_SEARCH_ERROR]",ae,"error")}})}getAnimeTitle(ae){return ae.replace(/[^a-zA-Z0-9]/g,"-")}getAnime(){this.subsAnime&&this.subsAnime.unsubscribe(),this.subsAnime=this.anime.searchAnime(this.searchResult.q).subscribe({next:ae=>{this.gs.log("[ANIME_SEARCH_SUCCESS]",ae),this.searchResult.animeResults=ae.results},error:ae=>{this.gs.log("[ANIME_SEARCH_ERROR]",ae,"error")}})}getDorama(){this.subsDorama&&this.subsDorama.unsubscribe(),this.subsDorama=this.dorama.searchDorama(this.searchResult.q).subscribe({next:ae=>{this.gs.log("[DORAMA_SEARCH_SUCCESS]",ae),this.searchResult.doramaResults=ae.results},error:ae=>{this.gs.log("[DORAMA_SEARCH_ERROR]",ae,"error")}})}getFansub(){this.subsFansub&&this.subsFansub.unsubscribe(),this.subsFansub=this.fansub.searchFansub(this.searchResult.q,1,5).subscribe({next:ae=>{this.gs.log("[FANSUB_SEARCH_SUCCESS]",ae),this.searchResult.fansubResults=ae.results},error:ae=>{this.gs.log("[FANSUB_SEARCH_ERROR]",ae,"error")}})}getBerkas(){this.subsBerkas&&this.subsBerkas.unsubscribe(),this.subsBerkas=this.berkas.getAllBerkas(this.searchResult.q,1,5).subscribe({next:ae=>{this.gs.log("[BERKAS_SEARCH_SUCCESS]",ae),this.searchResult.berkasResults=ae.results},error:ae=>{this.gs.log("[BERKAS_SEARCH_ERROR]",ae,"error")}})}getPengguna(){this.subsPengguna&&this.subsPengguna.unsubscribe(),this.subsPengguna=this.user.getAllUser(this.searchResult.q,1,5).subscribe({next:ae=>{this.gs.log("[PENGGUNA_SEARCH_SUCCESS]",ae),this.searchResult.penggunaResults=ae.results},error:ae=>{this.gs.log("[PENGGUNA_SEARCH_ERROR]",ae,"error")}})}}return q.\u0275fac=function(ae){return new(ae||q)(n.Y36(r.U),n.Y36(l.Y),n.Y36(u.x),n.Y36(o.a),n.Y36(I.o),n.Y36(M.X),n.Y36(g.T),n.Y36(C.A),n.Y36(D.K),n.Y36(y.n))},q.\u0275cmp=n.Xpm({type:q,selectors:[["app-search-all"]],decls:16,vars:9,consts:[[1,"row"],[1,"col-12","sticky-top","bg-bifeldy"],[1,"ms-auto","pt-3","col-12",3,"color"],["matInput","","maxlength","200","placeholder","Ex. \u3070\u30fc\u304b\u30fc\uff01",3,"ngModel","keyup.enter","ngModelChange"],["matSuffix",""],[1,"col-12"],["class","row",4,"ngIf"],[1,"pt-3","border-bottom-dotted"],[1,"text-bifeldy"],[1,"pt-0",3,"multiple"],[3,"routerLink",4,"ngFor","ngForOf"],[3,"routerLink"],["matListAvatar","",1,"ms-3",2,"border-radius","0",3,"src"],["matLine",""],[1,"text-warning"],[1,"text-success"],[3,"click",4,"ngFor","ngForOf"],[3,"click"],["matLine","",1,"ms-3"]],template:function(ae,Ze){1&ae&&(n.TgZ(0,"div",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),n._uU(4,"Cari Apapun Di Sini ..."),n.qZA(),n.TgZ(5,"input",3),n.NdJ("keyup.enter",function(de){return Ze.applyFilter(de)})("ngModelChange",function(de){return Ze.searchResult.q=de}),n.qZA(),n.TgZ(6,"mat-icon",4),n._uU(7,"search"),n.qZA()()(),n.TgZ(8,"div",5),n.YNc(9,Z,9,6,"div",6),n.YNc(10,V,9,6,"div",6),n.YNc(11,Q,9,6,"div",6),n.YNc(12,Ae,9,6,"div",6),n.YNc(13,W,9,6,"div",6),n.YNc(14,ie,9,6,"div",6),n.YNc(15,nt,9,6,"div",6),n.qZA()()),2&ae&&(n.xp6(2),n.Q6J("color","accent"),n.xp6(3),n.Q6J("ngModel",Ze.searchResult.q),n.xp6(4),n.Q6J("ngIf",Ze.searchResult.beritaResults.length>0),n.xp6(1),n.Q6J("ngIf",Ze.searchResult.kanjiResults.length>0),n.xp6(1),n.Q6J("ngIf",Ze.searchResult.animeResults.length>0),n.xp6(1),n.Q6J("ngIf",Ze.searchResult.doramaResults.length>0),n.xp6(1),n.Q6J("ngIf",Ze.searchResult.fansubResults.length>0),n.xp6(1),n.Q6J("ngIf",Ze.searchResult.berkasResults.length>0),n.xp6(1),n.Q6J("ngIf",Ze.searchResult.penggunaResults.length>0))},directives:[_.KE,_.hX,E.Nt,O.Fj,O.nD,O.JJ,O.On,ee.Hw,_.R9,ue.O5,K.Ub,ue.sg,K.vS,ne.rH,K.eA,De.X2],pipes:[ue.OU,ue.uU],styles:[""]}),q})();var Rt=a(466),mt=a(9224);function gt(q,He){if(1&q&&(n.TgZ(0,"mat-icon",12),n._uU(1),n.qZA()),2&q){const ae=n.oxw().$implicit;n.xp6(1),n.Oqu(ae.icon)}}function Le(q,He){if(1&q&&(n.TgZ(0,"div",6)(1,"mat-card")(2,"mat-card-header",7)(3,"div",8),n.YNc(4,gt,2,1,"mat-icon",9),n.qZA(),n.TgZ(5,"mat-card-title",10)(6,"h3",11),n._uU(7),n.qZA()(),n.TgZ(8,"mat-card-subtitle",11),n._uU(9),n.qZA()()()()),2&q){const ae=He.$implicit;n.xp6(2),n.MGl("routerLink","/admin-mod/",ae.url,""),n.xp6(1),n.Udp("background-image","url("+(ae.image_url?ae.image_url:"")+")"),n.xp6(1),n.Q6J("ngIf",ae.icon),n.xp6(3),n.Oqu(ae.name),n.xp6(2),n.Oqu(ae.deskripsi)}}let Je=(()=>{class q{constructor(ae,Ze){this.gs=ae,this.adm=Ze}get ADM(){return this.adm}ngOnInit(){}}return q.\u0275fac=function(ae){return new(ae||q)(n.Y36(r.U),n.Y36(Rt.l))},q.\u0275cmp=n.Xpm({type:q,selectors:[["app-admin-navigation"]],decls:7,vars:1,consts:[[1,"row"],[1,"col-12","sticky-top","bg-bifeldy"],[1,"pt-3","border-bottom-dotted"],[1,"text-bifeldy"],[1,"col-12","px-3"],["class","col-12 p-2",4,"ngFor","ngForOf"],[1,"col-12","p-2"],[2,"cursor","pointer",3,"routerLink"],["mat-card-avatar","",2,"background-size","cover"],["style","font-size: 300%;",4,"ngIf"],[1,"text-warning","mb-1",2,"cursor","pointer"],[1,"mb-0"],[2,"font-size","300%"]],template:function(ae,Ze){1&ae&&(n.TgZ(0,"div",0)(1,"div",1)(2,"h2",2)(3,"b",3),n._uU(4,"Menu Admin Lainnya"),n.qZA()()(),n.TgZ(5,"div",4),n.YNc(6,Le,10,6,"div",5),n.qZA()()),2&ae&&(n.xp6(6),n.Q6J("ngForOf",Ze.ADM.menuList))},directives:[ue.sg,mt.a8,mt.dk,ne.rH,mt.kc,ue.O5,ee.Hw,mt.n5,mt.$j],styles:[""]}),q})();var H=a(1617),Ee=a(8381);let Ce=(()=>{class q{constructor(ae,Ze){this.gs=ae,this.ss=Ze,this.sidePanel=null,this.componentView=null}toggleSidePanel(ae){this.componentView?this.closeSidePanel():this.openSidePanel(ae)}closeSidePanel(){this.sidePanel.close()}onClose(){this.componentView=null}openSidePanel(ae){if("string"!=typeof ae)this.componentView=ae;else if("SearchAllComponent"===ae)this.componentView=Tt;else if("AdminNavigationComponent"===ae)this.componentView=Je;else if("LiveChatComponent"===ae){if(!this.ss.mySocket.id)return;this.componentView=H.u}this.sidePanel.open()}}return q.\u0275fac=function(ae){return new(ae||q)(n.LFG(r.U),n.LFG(Ee.R))},q.\u0275prov=n.Yz7({token:q,factory:q.\u0275fac,providedIn:"root"}),q})()},9775:(it,U,a)=>{"use strict";a.d(U,{H:()=>I});var n=a(5861),r=a(5e3),l=a(3988),u=a(8696),o=a(7845);let I=(()=>{class M{constructor(C,D,y,_){this.su=C,this.sp=D,this.gs=y,this.ds=_,this.isUpdateAvailable=!1,this.swuVerUpd=null,this.swuUnRecv=null,this.dialogRef=null,this.subsDialog=null,this.gs.isBrowser&&this.initialize()}get swEnabled(){return this.su.isEnabled&&this.sp.isEnabled}checkForUpdate(){var C=this;return(0,n.Z)(function*(){if(!C.isUpdateAvailable){C.isUpdateAvailable=!0;try{C.isUpdateAvailable=yield C.su.checkForUpdate()}catch(D){C.gs.log("[SERVICE_WORKER_CHECK_FOR_UPDATE_ERROR]",D)}}return C.gs.log("[SERVICE_WORKER_UPDATE_AVAILABLE]",C.isUpdateAvailable),C.isUpdateAvailable})()}activateUpdate(){var C=this;return(0,n.Z)(function*(){var D,y,_;let E=!1;if(C.isUpdateAvailable)try{E=yield C.su.activateUpdate(),C.isUpdateAvailable=!1,null===(D=C.dialogRef)||void 0===D||D.close(null),null===(y=C.subsDialog)||void 0===y||y.unsubscribe(),C.dialogRef=C.ds.openInfoDialog({data:{title:"Pembaharuan "+(E?"Berhasil":"Gagal"),htmlMessage:"Ingin Refresh Halaman (?)",confirmText:"Ya",cancelText:"Tidak"}}),C.subsDialog=null===(_=C.dialogRef)||void 0===_?void 0:_.afterClosed().subscribe({next:O=>{C.gs.log("[INFO_DIALOG_CLOSED]",O),C.dialogRef=null,C.subsDialog.unsubscribe(),!0===O&&window.location.reload()}})}catch(O){C.gs.log("[SERVICE_WORKER_ACTIVATE_UPDATE_ERROR]",O)}return C.gs.log("[SERVICE_WORKER_UPDATE_FINISH]",E),E})()}initialize(){var C=this;return(0,n.Z)(function*(){var D;C.swuVerUpd=C.su.versionUpdates.subscribe({next:(D=(0,n.Z)(function*(y){var _,E,O,ee,ue,K,ne,De,ve;C.gs.log(`[SERVICE_WORKER_${y.type}]`,y),"VERSION_DETECTED"===y.type&&(null===(_=C.dialogRef)||void 0===_||_.close(null),null===(E=C.subsDialog)||void 0===E||E.unsubscribe()),"VERSION_READY"===y.type&&(C.dialogRef=C.ds.openInfoDialog({data:{title:"Ada Pembaharuan Tersedia",htmlMessage:`\n
Sekarang :: ${null===(ee=null===(O=y.currentVersion)||void 0===O?void 0:O.hash)||void 0===ee?void 0:ee.slice(0,8)}
\n
Tersedia :: ${null===(K=null===(ue=y.latestVersion)||void 0===ue?void 0:ue.hash)||void 0===K?void 0:K.slice(0,8)}
\n `,confirmText:"OK"}})),"VERSION_INSTALLATION_FAILED"===y.type&&(C.dialogRef=C.ds.openInfoDialog({data:{title:"Pembaharuan Gagal",htmlMessage:`\n
Versi :: ${null===(De=null===(ne=y.version)||void 0===ne?void 0:ne.hash)||void 0===De?void 0:De.slice(0,8)}
\n
Error :: ${y.error}
\n `,confirmText:"Ulangi",cancelText:"Lewati"}})),C.subsDialog=null===(ve=C.dialogRef)||void 0===ve?void 0:ve.afterClosed().subscribe({next:Z=>{C.gs.log("[INFO_DIALOG_CLOSED]",Z),!0===Z&&C.activateUpdate(),C.dialogRef=null,C.subsDialog.unsubscribe()}})}),function(_){return D.apply(this,arguments)})}),C.swuUnRecv=C.su.unrecoverable.subscribe({next:D=>{var y,_,E;C.gs.log(`[SERVICE_WORKER_${D.type}]`,D.reason),null===(y=C.dialogRef)||void 0===y||y.close(null),null===(_=C.subsDialog)||void 0===_||_.unsubscribe(),C.dialogRef=C.ds.openInfoDialog({data:{title:"Service Worker Bermasalah",htmlMessage:`Kesalahan :: ${D.reason}`,confirmText:"Refresh Halaman"}}),C.subsDialog=null===(E=C.dialogRef)||void 0===E?void 0:E.afterClosed().subscribe({next:O=>{C.gs.log("[INFO_DIALOG_CLOSED]",O),C.dialogRef=null,C.subsDialog.unsubscribe(),window.location.reload()}})}})})()}}return M.\u0275fac=function(C){return new(C||M)(r.LFG(l.yO),r.LFG(l.Mk),r.LFG(u.U),r.LFG(o.x))},M.\u0275prov=r.Yz7({token:M,factory:M.\u0275fac,providedIn:"root"}),M})()},8381:(it,U,a)=>{"use strict";a.d(U,{R:()=>K});var n=a(5861),r=a(685),l=a.n(r),u=a(1135),o=a(6271),I=a(5934),M=a(5e3),g=a(4137),C=a(8406),D=a(8696),y=a(3e3),_=a(7140),E=a(7),O=a(6925),ee=a(7845),ue=a(9775);let K=(()=>{class ne{constructor(ve,Z,z,V,Me,Q,fe,Ae,j){this.as=ve,this.router=Z,this.gs=z,this.bs=V,this.notif=Me,this.lms=Q,this.toast=fe,this.ds=Ae,this.sw=j,this.mySocket=null,this.visitor=0,this.latency=0,this.messageChatUnreadCount=0,this.badgeNews=[],this.badgeBerkas=[],this.badgeFansub=[],this.github=null,this.currentServerSubject=new u.X(null),this.currentServer=this.currentServerSubject.asObservable(),this.currentServerValue=null,this.currentRoomSubject=new u.X(null),this.currentRoom=this.currentRoomSubject.asObservable(),this.currentChatRoom=[],this.globalRoomSubject=new u.X(null),this.globalRoom=this.globalRoomSubject.asObservable(),this.globalChatRoom=[],this.fansubRoomSubject=new u.X(null),this.fansubRoom=this.fansubRoomSubject.asObservable(),this.fansubChatRoom=[],this.serverLog="// Tidak Ada Catatan Log~",this.quizRoom={},this.subsServer=null,this.subsDialog=null,this.timedOut=null,this.gs.isBrowser&&(this.mySocket=l()("//",{query:{"ngsw-bypass":!0,token:this.as.token},transports:["websocket","polling"],transportOptions:{polling:{extraHeaders:{"x-access-token":this.as.token}}}}),this.socketListen(),this.checkServerMaintenance())}get currentRoomValue(){var ve;return(null===(ve=this.currentRoomSubject)||void 0===ve?void 0:ve.value)||null}get globalRoomValue(){var ve;return(null===(ve=this.globalRoomSubject)||void 0===ve?void 0:ve.value)||null}checkServerMaintenance(){var Z,ve=this;this.subsServer=this.currentServer.subscribe({next:(Z=(0,n.Z)(function*(z){var V;z&&z.isMaintenance&&(null===(V=ve.currentServerValue)||void 0===V?void 0:V.isMaintenance)!==z.isMaintenance&&(ve.subsDialog=(yield ve.ds.openMaintenanceDialog()).afterClosed().subscribe({next:Me=>{ve.gs.log("[INFO_DIALOG_CLOSED]",Me),ve.subsDialog.unsubscribe()}})),ve.currentServerValue=z}),function(V){return Z.apply(this,arguments)})})}pingPong(){this.socketEmitVolatile("ping-pong",{},ve=>{this.gs.log("[SOCKET_PING_PONG]",ve),"github"in ve&&ve.github&&(this.github=ve.github),"server"in ve&&ve.server&&this.currentServerSubject.next(ve.server)})}socketListen(){var ve=this;this.mySocket.on("connect",()=>{this.gs.log("[SOCKET_CONNECTED]",this.mySocket.id),this.pingPong(),this.notif.removeNotif(`${I.N.siteName.toUpperCase()}_SOCKET_DISCONNECTED`),this.timedOut=setTimeout(()=>{this.socketLeaveAndJoinNewRoom(null,this.router.url)},1234)}),this.mySocket.on("connect_error",()=>{this.gs.log("[SOCKET_CONNECT_ERROR]",this.mySocket.io.opts),this.mySocket.io.opts.transports=["polling","websocket"]}),this.mySocket.on("disconnect",Z=>{this.gs.log("[SOCKET_DISCONNECTED]",Z),this.notif.addNotif(null,`${I.N.siteName.toUpperCase()}_SOCKET_DISCONNECTED`,"warning","Sambungan Terputus","Tidak dapat terhubung dengan Server melalui WebSocket !!",!1),this.sw.isUpdateAvailable=!1}),this.mySocket.on("ping",()=>{this.gs.log("[SOCKET_PING]",Date.now())}),this.mySocket.on("server-config",Z=>{this.currentServerSubject.next(Z)}),this.mySocket.on("pong",Z=>{this.latency=Z,this.gs.log("[SOCKET_PONG]",`${Date.now()} => ${Z} ms`),this.pingPong(),this.sw.checkForUpdate()}),this.mySocket.on("visitors",Z=>{this.gs.log("[SOCKET_VISITOR]",this.visitor),this.visitor=Z}),this.mySocket.on("console-log",Z=>{this.gs.log("[SOCKET_CONSOLE_LOG]",Z),this.serverLog=`${Z}\r\n${this.serverLog}`}),this.mySocket.on("force-redirect",Z=>{this.gs.log("[SOCKET_REDIRECT]",Z.message),this.toast.info(Z.message,Z.title,null,!0),this.router.navigateByUrl(Z.url)}),this.mySocket.on("force-logout",Z=>{this.gs.log("[SOCKET_EXIT]",Z),this.toast.info(Z,"Keluar Paksa!",null,!0),this.as.logout()}),this.mySocket.on("new-notification",Z=>{this.gs.log("[SOCKET_NOTIFICATION]",Z),this.notif.addNotif(Z.notifCreator,Z.notifData.id,Z.notifData.type,Z.notifData.title,Z.notifData.content,Z.notifData.dismissible)}),this.mySocket.on("new-information",function(){var Z=(0,n.Z)(function*(z){ve.gs.log("[SOCKET_INFORMATION]",z),ve.subsDialog=ve.ds.openInfoDialog({data:{title:z.infoData.title,htmlMessage:z.infoData.content,confirmText:z.infoData.confirm,cancelText:z.infoData.cancel},disableClose:z.infoData.close}).afterClosed().subscribe({next:V=>{ve.gs.log("[INFO_DIALOG_CLOSED]",V),ve.subsDialog.unsubscribe()}})});return function(z){return Z.apply(this,arguments)}}()),this.mySocket.on("new-berkas",Z=>{this.gs.log("[SOCKET_BERKAS]",Z),this.badgeBerkas.push(Z);const z=this.lms.contentMenus.find(V=>"/berkas"===V.link);z&&(z.badge=this.badgeBerkas.length>0?this.badgeBerkas.length:null)}),this.mySocket.on("new-fansub",Z=>{this.gs.log("[SOCKET_FANSUB]",Z),this.badgeFansub.push(Z);const z=this.lms.contentMenus.find(V=>"/fansub"===V.link);z&&(z.badge=this.badgeFansub.length>0?this.badgeFansub.length:null)}),this.mySocket.on("new-news",Z=>{this.gs.log("[SOCKET_NEWS]",Z),this.badgeNews.push(Z);const z=this.lms.mainMenus.find(V=>"/news"===V.link);z&&(z.badge=this.badgeNews.length>0?this.badgeNews.length:null)}),this.mySocket.on("receive-chat",Z=>{this.gs.log("[SOCKET_RECEIVE-CHAT]",Z),Z.room_id===o.t.socketRoomNameGlobalPublic?this.globalChatRoom.push(Z):Z.room_id===o.t.socketRoomNameGlobalFansub?this.fansubChatRoom.push(Z):Z.room_id!==o.t.socketRoomNameServerLogs&&this.currentChatRoom.push(Z),this.messageChatUnreadCount++}),this.mySocket.on("room-info",Z=>{this.gs.log("[SOCKET_ROOM-INFO]",Z),this.gs.cleanObject(null==Z?void 0:Z.member_list),Z.room_id===o.t.socketRoomNameGlobalPublic?this.globalRoomSubject.next(Z):Z.room_id===o.t.socketRoomNameGlobalFansub?this.fansubRoomSubject.next(Z):Z.room_id!==o.t.socketRoomNameServerLogs&&this.currentRoomSubject.next(Z)}),this.mySocket.on("multiple-connection",(Z,z)=>{this.gs.log("[SOCKET_MULTIPLE-CONNECTION]",Z),this.toast.warning("Sesi lain telah aktif!","Koneksi Duplikat",null,!0),this.mySocket.io.reconnection(!1),this.bs.clear(),z&&z()}),this.mySocket.on("quiz-question",Z=>{if(this.gs.log("[SOCKET_QUIZ]",Z),this.gs.routerData.question&&this.gs.routerData.options){const{room_id:z,...V}=Z;this.quizRoom[z]=V,this.quizRoom[z].options=this.gs.shuffle(this.quizRoom[z].options)}})}socketEmit(ve,Z={},z=null){var V,Me;this.as.token&&(Z.token=this.as.token),z?null===(V=this.mySocket)||void 0===V||V.emit(ve,Z,z):null===(Me=this.mySocket)||void 0===Me||Me.emit(ve,Z)}socketEmitVolatile(ve,Z={},z=null){this.socketEmit(ve,Z,z)}socketLeaveAndJoinNewRoom(ve,Z){this.gs.log(`[SOCKET_LEAVE-JOIN-ROOM] ${ve} => ${Z}`),this.socketEmit("leave-join-room",{oldRoom:ve,newRoom:Z})}}return ne.\u0275fac=function(ve){return new(ve||ne)(M.LFG(g.e),M.LFG(C.F0),M.LFG(D.U),M.LFG(y.z),M.LFG(_.T),M.LFG(E.S),M.LFG(O.k),M.LFG(ee.x),M.LFG(ue.H))},ne.\u0275prov=M.Yz7({token:ne,factory:ne.\u0275fac,providedIn:"root"}),ne})()},6925:(it,U,a)=>{"use strict";a.d(U,{k:()=>o});var n=a(5e3),r=a(8696),l=a(2290),u=a(7140);let o=(()=>{class I{constructor(g,C,D){this.gs=g,this.toast=C,this.notif=D}remove(g){return this.toast.remove(g)}success(g,C,D,y=!1){return y&&this.notif.addNotif(null,(new Date).getTime(),"success",C,g),this.gs.isDesktop||y?this.toast.success(g,C,D):null}warning(g,C,D,y=!1){return y&&this.notif.addNotif(null,(new Date).getTime(),"warning",C,g),this.gs.isDesktop||y?this.toast.warning(g,C,D):null}info(g,C,D,y=!1){return y&&this.notif.addNotif(null,(new Date).getTime(),"info",C,g),this.gs.isDesktop||y?this.toast.info(g,C,D):null}error(g,C,D,y=!1){return y&&this.notif.addNotif(null,(new Date).getTime(),"danger",C,g),this.gs.isDesktop||y?this.toast.error(g,C,D):null}}return I.\u0275fac=function(g){return new(g||I)(n.LFG(r.U),n.LFG(l._W),n.LFG(u.T))},I.\u0275prov=n.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"}),I})()},8058:(it,U,a)=>{"use strict";a.d(U,{K:()=>I});var n=a(8505),r=a(5e3),l=a(9731),u=a(4137),o=a(8696);let I=(()=>{class M{constructor(C,D,y){this.api=C,this.as=D,this.gs=y}checkBanned(C){return this.api.getData(`/banned?username=${C}`)}getAllUser(C="",D=1,y=10,_="",E=""){return this.api.getData(`/user?q=${C}&page=${D}&row=${y}&sort=${_}&order=${E}`)}getUserData(C){return this.api.getData(`/user/${C}`)}updateUser(C,D){return this.api.putData(`/user/${C}`,D).pipe((0,n.b)(y=>{this.as.token=y.result.token}))}getUserBerkas(C,D="",y=1,_=10,E="",O=""){return this.api.getData(`/user/${C}/feed-berkas?q=${D}&page=${y}&row=${_}&sort=${E}&order=${O}`)}getUserFeedComment(C,D="",y=1,_=10,E="",O=""){return this.api.getData(`/user/${C}/feed-comment?q=${D}&page=${y}&row=${_}&sort=${E}&order=${O}`)}getUserFeedLikeDislike(C,D="",y=1,_=10,E="",O=""){return this.api.getData(`/user/${C}/feed-likedislike?q=${D}&page=${y}&row=${_}&sort=${E}&order=${O}`)}getUserFeedVisit(C,D="",y=1,_=10,E="",O=""){return this.api.getData(`/user/${C}/feed-visit?q=${D}&page=${y}&row=${_}&sort=${E}&order=${O}`)}cekNik(C){return this.api.postData("/verify-nik",C)}verifyKTP(C){return this.api.postData("/verify-ktp",C).pipe((0,n.b)(D=>{this.as.token=D.result.token}))}sosmedLogin(C){return this.api.postData("/verify-sosmed",C)}getUserGroup(C){return this.api.getData(`/user/${C}/group`)}findLostAccount(C){return this.api.postData("/lost-account-find",C)}resetLostAccount(C){return this.api.postData("/lost-account-reset",C)}}return M.\u0275fac=function(C){return new(C||M)(r.LFG(l.s),r.LFG(u.e),r.LFG(o.U))},M.\u0275prov=r.Yz7({token:M,factory:M.\u0275fac,providedIn:"root"}),M})()},8020:(it,U,a)=>{"use strict";a.d(U,{N:()=>I});var n=a(5861),r=a(5e3),l=a(8696),u=a(7845),o=a(8381);let I=(()=>{class M{constructor(C,D,y){this.gs=C,this.ds=D,this.ss=y,this.currentServer=null,this.openedWindow={},this.subsDialog=null,this.subsServer=null,this.gs.isBrowser&&(this.subsServer=this.ss.currentServer.subscribe({next:_=>this.currentServer=_}))}confirmationOpenUrl(C,D){var y=this;return(0,n.Z)(function*(){y.subsDialog=(yield y.ds.openKonfirmasiDialog(`Ingin Buka Di Tab ${"_self"===D?"Ini":"Baru"} ?`,C,!1)).afterClosed().subscribe({next:_=>{y.gs.log("[INFO_DIALOG_CLOSED]",_),!0===_&&window.open(C,D),y.subsDialog.unsubscribe()}})})()}winboxOpenUri(C,D="_blank",y=!1){var _;if(C.startsWith("http://")&&(C="https://"+C.slice(7,C.length)),C.startsWith("/api/"))this.confirmationOpenUrl(C,"_self");else if((null===(_=this.currentServer)||void 0===_?void 0:_.winboxOpenLink)&&!this.gs.includesOneOf(C,["ftp://","mailto:"])||y){const E=(new Date).getTime();this.openedWindow[E]=new WinBox(C,{id:E,title:C,url:C,class:"no-full no-shadow no-max",background:"#7b1fa2",x:"center",y:"center",top:56,right:0,bottom:32,left:64,onclose:O=>(this.confirmationOpenUrl(C,D),!1)})}else this.confirmationOpenUrl(C,D)}}return M.\u0275fac=function(C){return new(C||M)(r.LFG(l.U),r.LFG(u.x),r.LFG(o.R))},M.\u0275prov=r.Yz7({token:M,factory:M.\u0275fac,providedIn:"root"}),M})()},6271:(it,U,a)=>{"use strict";a.d(U,{t:()=>n});const n={apiTagAnime:"Anime",apiTagApiKey:"API Key",apiTagAttachment:"Attachment",apiTagBanned:"Banned",apiTagBerkas:"Berkas",apiTagDorama:"Dorama",apiTagDdlFile:"DDL File",apiTagFansub:"Fansub",apiTagMail:"Surat Elektronik",apiTagNews:"News",apiTagNihongo:"Nihongo",apiTagQuiz:"Quiz",apiTagSession:"Session",apiTagUser:"User",attachmentSpeedLimiterBps:256e3,blacklistedWords:["*","www","fansub","fansub.id","fansubid","fansub-id","localhost","mail","email","e-mail","tracker","fansub","fansubber","ferdion","bifeldy","dev","api","docs","cs","help","support","admin","administrator","info","information","noreply","mod","moderator"],cronFansubRssFeed:"CRON_FANSUB_RSS_FEED",cronTrackerStatistics:"CRON_TRACKER_STATISTICS",decoratorFilterApiKeyAccess:"filter-api-key-access",decoratorRoles:"roles",decoratorVerifiedOnly:"verified-only",extSubs:["ass","srt"],extFonts:["ttf","otf","woff","woff2"],fileTypeAttachmentAllowed:["video/x-matroska","video/mp4"],fileSizeAttachmentChunkCloudflareLimit:64e6,fileSizeAttachmentChunkDiscordLimit:8e6,fileSizeAttachmentTotalLimit:256e6,fileSizeImageLimit:256e3,gCaptchaSiteKey:"6Ld4Bt4UAAAAAKJQ_jfqtWdsq9BuARLHag2DBvqK",jwtAlgorithm:"HS512",jwtExpiredIn:86400,quizOptionsCountHirakata:5,quizOptionsCountCategory:6,quizOptionsCountKanji:6,regexIpAddress:/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,regexAllKeyboardKeys:/^[\P{Cc}\P{Cn}\P{Cs}]*$/,regexEmail:/^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,4}$/,regexEmailMulti:/^[^a-z0-9_]*([a-z0-9_+\-.%]+@[a-z0-9_\-.]+\.[a-z]+[^a-z0-9_]*,{1}[^a-z0-9_]*)*([a-z0-9_+\-.%]+@[a-z0-9_\-.]+\.[a-z]+)[^a-z0-9_]*$/,regexEnglishKeyboardKeys:/^[a-zA-Z0-9~`!@#\$%\^&\*\(\)_\-\+={\[\}\]\|\\:;"'<,>\.\?\/ \n]*$/,regexJapaneseKeyboardKeys:/[\u4e00-\u9fa0\u3041-\u3094\u30a1-\u30f4\u30fc\uff41-\uff5a\uff21-\uff3a\uff10-\uff19\u3005\u3006\u3024\u3001\u3002]+/u,regexUrl:/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)/,socketRoomNameGlobalPublic:"GLOBAL_PUBLIK",socketRoomNameGlobalFansub:"GLOBAL_FANSUB",socketRoomNameServerLogs:"SERVER_LOGS",timeoutCancelRegisterKey:"TIMEOUT_CANCEL_REGISTER",timeoutCancelRegisterTime:3e5,timeoutDeleteTempAttachmentKey:"TIMEOUT_DELETE_TEMP_ATTACHMENT",timeoutDeleteTempAttachmentTime:18e4,timeJwtEncryption:180,timeLoginRememberMe:604800,timeResetAccount:300,timeMaxDaysNotification:6048e5,verificationDomain:["ghs.google.com"]}},5934:(it,U,a)=>{"use strict";a.d(U,{N:()=>n});const n={production:!0,siteName:"FansubID",siteDescription:"Di Kamar Saja!",author:"Bifeldy",domain:"fansub.id",baseUrl:"https://www.fansub.id",apiUrl:"/api",apiKey:"00000000-0000-0000-0000-000000000000",discord:{client_id:"789831990433153034",join_url:"https://discord.gg/xGWdExk",guild_id:"342220398022098944"},torrent:{trackerAnnounce:["wss://tracker.fansub.id","wss://tracker.btorrent.xyz","wss://tracker.openwebtorrent.com"],iceServers:[{urls:["stun:tracker.fansub.id:11111","stun:openrelay.metered.ca:80","stun:stun.l.google.com:19302"]}]}}},7446:(it,U,a)=>{"use strict";var n=a(2313),r=a(5e3),l=a(520),u=a(9646),o=a(9300),I=a(5698),M=a(8505);function g(v){const xe={};for(const h of v.keys()){const A=v.getAll(h);null!==A&&(xe[h]=A)}return xe}let C=(()=>{class v{constructor(h,A){this.transferState=A,this.isCacheActive=!0,h.isStable.pipe((0,o.h)(ce=>ce),(0,I.q)(1)).subscribe(()=>{this.isCacheActive=!1})}invalidateCacheEntry(h){Object.keys(this.transferState.store).forEach(A=>A.includes(h)?this.transferState.remove((0,n.Cb)(A)):null)}makeCacheKey(h,A,ce){const je=ce.keys().sort().map(Vt=>`${Vt}=${ce.getAll(Vt)}`).join("&");return(0,n.Cb)(("GET"===h?"G.":"H.")+A+"?"+je)}intercept(h,A){if("GET"!==h.method&&"HEAD"!==h.method&&(this.isCacheActive=!1,this.invalidateCacheEntry(h.url)),!this.isCacheActive)return A.handle(h);const ce=this.makeCacheKey(h.method,h.url,h.params);if(this.transferState.hasKey(ce)){const je=this.transferState.get(ce,{});return(0,u.of)(new l.Zn({body:je.body,headers:new l.WM(je.headers),status:je.status,statusText:je.statusText,url:je.url}))}return A.handle(h).pipe((0,M.b)(It=>{It instanceof l.Zn&&this.transferState.set(ce,{body:It.body,headers:g(It.headers),status:It.status,statusText:It.statusText,url:It.url||""})}))}}return v.\u0275fac=function(h){return new(h||v)(r.LFG(r.z2F),r.LFG(n.ki))},v.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac}),v})(),D=(()=>{class v{}return v.\u0275fac=function(h){return new(h||v)},v.\u0275mod=r.oAB({type:v}),v.\u0275inj=r.cJS({providers:[C,{provide:l.TP,useExisting:C,multi:!0}],imports:[[n.Cu]]}),v})();var E=a(6360),O=a(9808),ee=a(1135),ue=a(8306),K=a(6451),ne=a(7579);function De(v){for(let xe in v){let h=v[xe]||"";switch(xe){case"display":v.display="flex"===h?["-webkit-flex","flex"]:"inline-flex"===h?["-webkit-inline-flex","inline-flex"]:h;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":v["-webkit-"+xe]=h;break;case"flex-direction":h=h||"row",v["-webkit-flex-direction"]=h,v["flex-direction"]=h;break;case"order":v.order=v["-webkit-"+xe]=isNaN(+h)?"0":h}}return v}const ve="inline",Z=["row","column","row-reverse","column-reverse"];function z(v){let[xe,h,A]=function V(v){var xe;v=null!==(xe=null==v?void 0:v.toLowerCase())&&void 0!==xe?xe:"";let[h,A,ce]=v.split(" ");return Z.find(je=>je===h)||(h=Z[0]),A===ve&&(A=ce!==ve?ce:"",ce=ve),[h,Q(A),!!ce]}(v);return function fe(v,xe=null,h=!1){return{display:h?"inline-flex":"flex","box-sizing":"border-box","flex-direction":v,"flex-wrap":xe||null}}(xe,h,A)}function Q(v){if(v)switch(v.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":v="wrap-reverse";break;case"no":case"none":case"nowrap":v="nowrap";break;default:v="wrap"}return v}const W={provide:r.tb,useFactory:function j(v,xe){return()=>{if((0,O.NF)(xe)){const h=Array.from(v.querySelectorAll(`[class*=${J}]`)),A=/\bflex-layout-.+?\b/g;h.forEach(ce=>{ce.classList.contains(`${J}ssr`)&&ce.parentNode?ce.parentNode.removeChild(ce):ce.className.replace(A,"")})}}},deps:[O.K0,r.Lbi],multi:!0},J="flex-layout-";let ie=(()=>{class v{}return v.\u0275fac=function(h){return new(h||v)},v.\u0275mod=r.oAB({type:v}),v.\u0275inj=r.cJS({providers:[W]}),v})();class Be{constructor(xe=!1,h="all",A="",ce="",je=0){this.matches=xe,this.mediaQuery=h,this.mqAlias=A,this.suffix=ce,this.priority=je,this.property=""}clone(){return new Be(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let nt=(()=>{class v{constructor(){this.stylesheet=new Map}addStyleToElement(h,A,ce){const je=this.stylesheet.get(h);je?je.set(A,ce):this.stylesheet.set(h,new Map([[A,ce]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(h,A){const ce=this.stylesheet.get(h);let je="";if(ce){const It=ce.get(A);("number"==typeof It||"string"==typeof It)&&(je=It+"")}return je}}return v.\u0275fac=function(h){return new(h||v)},v.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),v})();const Tt={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},Rt=new r.OlP("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>Tt}),mt=new r.OlP("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),gt=new r.OlP("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function Le(v,xe){return v=v?v.clone():new Be,xe&&(v.mqAlias=xe.alias,v.mediaQuery=xe.mediaQuery,v.suffix=xe.suffix,v.priority=xe.priority),v}class Je{constructor(){this.shouldCache=!0}sideEffect(xe,h,A){}}let H=(()=>{class v{constructor(h,A,ce,je){this._serverStylesheet=h,this._serverModuleLoaded=A,this._platformId=ce,this.layoutConfig=je}applyStyleToElement(h,A,ce=null){let je={};"string"==typeof A&&(je[A]=ce,A=je),je=this.layoutConfig.disableVendorPrefixes?A:De(A),this._applyMultiValueStyleToElement(je,h)}applyStyleToElements(h,A=[]){const ce=this.layoutConfig.disableVendorPrefixes?h:De(h);A.forEach(je=>{this._applyMultiValueStyleToElement(ce,je)})}getFlowDirection(h){const A="flex-direction";let ce=this.lookupStyle(h,A);return[ce||"row",this.lookupInlineStyle(h,A)||(0,O.PM)(this._platformId)&&this._serverModuleLoaded?ce:""]}hasWrap(h){return"wrap"===this.lookupStyle(h,"flex-wrap")}lookupAttributeValue(h,A){var ce;return null!==(ce=h.getAttribute(A))&&void 0!==ce?ce:""}lookupInlineStyle(h,A){return(0,O.NF)(this._platformId)?h.style.getPropertyValue(A):function Ee(v,xe){var h;return null!==(h=He(v)[xe])&&void 0!==h?h:""}(h,A)}lookupStyle(h,A,ce=!1){let je="";return h&&((je=this.lookupInlineStyle(h,A))||((0,O.NF)(this._platformId)?ce||(je=getComputedStyle(h).getPropertyValue(A)):this._serverModuleLoaded&&(je=this._serverStylesheet.getStyleForElement(h,A)))),je?je.trim():""}_applyMultiValueStyleToElement(h,A){Object.keys(h).sort().forEach(ce=>{const je=h[ce],It=Array.isArray(je)?je:[je];It.sort();for(let Vt of It)Vt=Vt?Vt+"":"",(0,O.NF)(this._platformId)||!this._serverModuleLoaded?(0,O.NF)(this._platformId)?A.style.setProperty(ce,Vt):Ce(A,ce,Vt):this._serverStylesheet.addStyleToElement(A,ce,Vt)})}}return v.\u0275fac=function(h){return new(h||v)(r.LFG(nt),r.LFG(mt),r.LFG(r.Lbi),r.LFG(Rt))},v.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),v})();function Ce(v,xe,h){xe=xe.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const A=He(v);A[xe]=null!=h?h:"",function q(v,xe){let h="";for(const A in xe)xe[A]&&(h+=`${A}:${xe[A]};`);v.setAttribute("style",h)}(v,A)}function He(v){const xe={},h=v.getAttribute("style");if(h){const A=h.split(/;+/g);for(let ce=0;ce0){const It=je.indexOf(":");if(-1===It)throw new Error(`Invalid CSS style: ${je}`);xe[je.substr(0,It).trim()]=je.substr(It+1).trim()}}}return xe}function ae(v,xe){return(xe&&xe.priority||0)-(v&&v.priority||0)}function Ze(v,xe){return(v.priority||0)-(xe.priority||0)}let Re=(()=>{class v{constructor(h,A,ce){this._zone=h,this._platformId=A,this._document=ce,this.source=new ee.X(new Be(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const h=[];return this.registry.forEach((A,ce)=>{A.matches&&h.push(ce)}),h}isActive(h){var A;const ce=this.registry.get(h);return null!==(A=null==ce?void 0:ce.matches)&&void 0!==A?A:this.registerQuery(h).some(je=>je.matches)}observe(h,A=!1){if(h&&h.length){const ce=this._observable$.pipe((0,o.h)(It=>!A||h.indexOf(It.mediaQuery)>-1)),je=new ue.y(It=>{const Vt=this.registerQuery(h);if(Vt.length){const Un=Vt.pop();Vt.forEach(Di=>{It.next(Di)}),this.source.next(Un)}It.complete()});return(0,K.T)(je,ce)}return this._observable$}registerQuery(h){const A=Array.isArray(h)?h:[h],ce=[];return function te(v,xe){const h=v.filter(A=>!de[A]);if(h.length>0){const A=h.join(", ");try{const ce=xe.createElement("style");ce.setAttribute("type","text/css"),ce.styleSheet||ce.appendChild(xe.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${A} {.fx-query-test{ }}\n`)),xe.head.appendChild(ce),h.forEach(je=>de[je]=ce)}catch(ce){console.error(ce)}}}(A,this._document),A.forEach(je=>{const It=Un=>{this._zone.run(()=>this.source.next(new Be(Un.matches,je)))};let Vt=this.registry.get(je);Vt||(Vt=this.buildMQL(je),Vt.addListener(It),this.pendingRemoveListenerFns.push(()=>Vt.removeListener(It)),this.registry.set(je,Vt)),Vt.matches&&ce.push(new Be(!0,je))}),ce}ngOnDestroy(){let h;for(;h=this.pendingRemoveListenerFns.pop();)h()}buildMQL(h){return function ze(v,xe){return xe&&window.matchMedia("all").addListener?window.matchMedia(v):{matches:"all"===v||""===v,media:v,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(h,(0,O.NF)(this._platformId))}}return v.\u0275fac=function(h){return new(h||v)(r.LFG(r.R0b),r.LFG(r.Lbi),r.LFG(O.K0))},v.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),v})();const de={},Ct=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],Ft="(orientation: portrait) and (max-width: 599.98px)",jt="(orientation: landscape) and (max-width: 959.98px)",gn="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",kt="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",Ye="(orientation: portrait) and (min-width: 840px)",k="(orientation: landscape) and (min-width: 1280px)",N={HANDSET:`${Ft}, ${jt}`,TABLET:`${gn} , ${kt}`,WEB:`${Ye}, ${k} `,HANDSET_PORTRAIT:`${Ft}`,TABLET_PORTRAIT:`${gn} `,WEB_PORTRAIT:`${Ye}`,HANDSET_LANDSCAPE:`${jt}`,TABLET_LANDSCAPE:`${kt}`,WEB_LANDSCAPE:`${k}`},P=[{alias:"handset",priority:2e3,mediaQuery:N.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:N.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:N.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:N.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:N.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:N.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:N.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:N.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:N.WEB_PORTRAIT,overlapping:!0}],F=/(\.|-|_)/g;function be(v){let xe=v.length>0?v.charAt(0):"",h=v.length>1?v.slice(1):"";return xe.toUpperCase()+h}const Bt=new r.OlP("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const v=(0,r.f3M)(gt),xe=(0,r.f3M)(Rt),h=[].concat.apply([],(v||[]).map(ce=>Array.isArray(ce)?ce:[ce]));return function At(v,xe=[]){const h={};return v.forEach(A=>{h[A.alias]=A}),xe.forEach(A=>{h[A.alias]?function Ae(v,...xe){if(null==v)throw TypeError("Cannot convert undefined or null to object");for(let h of xe)if(null!=h)for(let A in h)h.hasOwnProperty(A)&&(v[A]=h[A]);return v}(h[A.alias],A):h[A.alias]=A}),function ot(v){return v.forEach(xe=>{xe.suffix||(xe.suffix=function qe(v){return v.replace(F,"|").split("|").map(be).join("")}(xe.alias),xe.overlapping=!!xe.overlapping)}),v}(Object.keys(h).map(A=>h[A]))}((xe.disableDefaultBps?[]:Ct).concat(xe.addOrientationBps?P:[]),h)}});let qt=(()=>{class v{constructor(h){this.findByMap=new Map,this.items=[...h].sort(Ze)}findByAlias(h){return h?this.findWithPredicate(h,A=>A.alias===h):null}findByQuery(h){return this.findWithPredicate(h,A=>A.mediaQuery===h)}get overlappings(){return this.items.filter(h=>h.overlapping)}get aliases(){return this.items.map(h=>h.alias)}get suffixes(){return this.items.map(h=>{var A;return null!==(A=null==h?void 0:h.suffix)&&void 0!==A?A:""})}findWithPredicate(h,A){var ce;let je=this.findByMap.get(h);return je||(je=null!==(ce=this.items.find(A))&&void 0!==ce?ce:null,this.findByMap.set(h,je)),null!=je?je:null}}return v.\u0275fac=function(h){return new(h||v)(r.LFG(Bt))},v.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),v})();const Zt="print",tn={alias:Zt,mediaQuery:Zt,priority:1e3};let bn=(()=>{class v{constructor(h,A,ce){this.breakpoints=h,this.layoutConfig=A,this._document=ce,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new En,this.deactivations=[]}withPrintQuery(h){return[...h,Zt]}isPrintEvent(h){return h.mediaQuery.startsWith(Zt)}get printAlias(){var h;return[...null!==(h=this.layoutConfig.printWithBreakpoints)&&void 0!==h?h:[]]}get printBreakPoints(){return this.printAlias.map(h=>this.breakpoints.findByAlias(h)).filter(h=>null!==h)}getEventBreakpoints({mediaQuery:h}){const A=this.breakpoints.findByQuery(h);return(A?[...this.printBreakPoints,A]:this.printBreakPoints).sort(ae)}updateEvent(h){var A;let ce=this.breakpoints.findByQuery(h.mediaQuery);return this.isPrintEvent(h)&&(ce=this.getEventBreakpoints(h)[0],h.mediaQuery=null!==(A=null==ce?void 0:ce.mediaQuery)&&void 0!==A?A:""),Le(h,ce)}registerBeforeAfterPrintHooks(h){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const A=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(h,this.getEventBreakpoints(new Be(!0,Zt))),h.updateStyles())},ce=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(h),h.updateStyles())};this._document.defaultView.addEventListener("beforeprint",A),this._document.defaultView.addEventListener("afterprint",ce),this.beforePrintEventListeners.push(A),this.afterPrintEventListeners.push(ce)}interceptEvents(h){return A=>{this.isPrintEvent(A)?A.matches&&!this.isPrinting?(this.startPrinting(h,this.getEventBreakpoints(A)),h.updateStyles()):!A.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(h),h.updateStyles()):this.collectActivations(h,A)}}blockPropagation(){return h=>!(this.isPrinting||this.isPrintEvent(h))}startPrinting(h,A){this.isPrinting=!0,this.formerActivations=h.activatedBreakpoints,h.activatedBreakpoints=this.queue.addPrintBreakpoints(A)}stopPrinting(h){h.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(h,A){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!A.matches){const ce=this.breakpoints.findByQuery(A.mediaQuery);if(ce){const je=this.formerActivations&&this.formerActivations.includes(ce),It=!this.formerActivations&&h.activatedBreakpoints.includes(ce);(je||It)&&(this.deactivations.push(ce),this.deactivations.sort(ae))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(h=>this._document.defaultView.removeEventListener("beforeprint",h)),this.afterPrintEventListeners.forEach(h=>this._document.defaultView.removeEventListener("afterprint",h)))}}return v.\u0275fac=function(h){return new(h||v)(r.LFG(qt),r.LFG(Rt),r.LFG(O.K0))},v.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),v})();class En{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(xe){return xe.push(tn),xe.sort(ae),xe.forEach(h=>this.addBreakpoint(h)),this.printBreakpoints}addBreakpoint(xe){xe&&void 0===this.printBreakpoints.find(A=>A.mediaQuery===xe.mediaQuery)&&(this.printBreakpoints=function Et(v){var xe;return null!==(xe=null==v?void 0:v.mediaQuery.startsWith(Zt))&&void 0!==xe&&xe}(xe)?[xe,...this.printBreakpoints]:[...this.printBreakpoints,xe])}clear(){this.printBreakpoints=[]}}let _t=(()=>{class v{constructor(h,A,ce){this.matchMedia=h,this.breakpoints=A,this.hook=ce,this._useFallbacks=!0,this._activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new ne.x,this.observeActivations()}get activatedAlias(){var h,A;return null!==(A=null===(h=this.activatedBreakpoints[0])||void 0===h?void 0:h.alias)&&void 0!==A?A:""}set activatedBreakpoints(h){this._activatedBreakpoints=[...h]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(h){this._useFallbacks=h}onMediaChange(h){const A=this.findByQuery(h.mediaQuery);if(A){h=Le(h,A);const ce=this.activatedBreakpoints.indexOf(A);h.matches&&-1===ce?(this._activatedBreakpoints.push(A),this._activatedBreakpoints.sort(ae),this.updateStyles()):!h.matches&&-1!==ce&&(this._activatedBreakpoints.splice(ce,1),this._activatedBreakpoints.sort(ae),this.updateStyles())}}init(h,A,ce,je,It=[]){Wt(this.updateMap,h,A,ce),Wt(this.clearMap,h,A,je),this.buildElementKeyMap(h,A),this.watchExtraTriggers(h,A,It)}getValue(h,A,ce){const je=this.elementMap.get(h);if(je){const It=void 0!==ce?je.get(ce):this.getActivatedValues(je,A);if(It)return It.get(A)}}hasValue(h,A){const ce=this.elementMap.get(h);if(ce){const je=this.getActivatedValues(ce,A);if(je)return void 0!==je.get(A)||!1}return!1}setValue(h,A,ce,je){var It;let Vt=this.elementMap.get(h);if(Vt){const Di=(null!==(It=Vt.get(je))&&void 0!==It?It:new Map).set(A,ce);Vt.set(je,Di),this.elementMap.set(h,Vt)}else Vt=(new Map).set(je,(new Map).set(A,ce)),this.elementMap.set(h,Vt);const Un=this.getValue(h,A);void 0!==Un&&this.updateElement(h,A,Un)}trackValue(h,A){return this.subject.asObservable().pipe((0,o.h)(ce=>ce.element===h&&ce.key===A))}updateStyles(){this.elementMap.forEach((h,A)=>{const ce=new Set(this.elementKeyMap.get(A));let je=this.getActivatedValues(h);je&&je.forEach((It,Vt)=>{this.updateElement(A,Vt,It),ce.delete(Vt)}),ce.forEach(It=>{if(je=this.getActivatedValues(h,It),je){const Vt=je.get(It);this.updateElement(A,It,Vt)}else this.clearElement(A,It)})})}clearElement(h,A){const ce=this.clearMap.get(h);if(ce){const je=ce.get(A);je&&(je(),this.subject.next({element:h,key:A,value:""}))}}updateElement(h,A,ce){const je=this.updateMap.get(h);if(je){const It=je.get(A);It&&(It(ce),this.subject.next({element:h,key:A,value:ce}))}}releaseElement(h){const A=this.watcherMap.get(h);A&&(A.forEach(je=>je.unsubscribe()),this.watcherMap.delete(h));const ce=this.elementMap.get(h);ce&&(ce.forEach((je,It)=>ce.delete(It)),this.elementMap.delete(h))}triggerUpdate(h,A){const ce=this.elementMap.get(h);if(ce){const je=this.getActivatedValues(ce,A);je&&(A?this.updateElement(h,A,je.get(A)):je.forEach((It,Vt)=>this.updateElement(h,Vt,It)))}}buildElementKeyMap(h,A){let ce=this.elementKeyMap.get(h);ce||(ce=new Set,this.elementKeyMap.set(h,ce)),ce.add(A)}watchExtraTriggers(h,A,ce){if(ce&&ce.length){let je=this.watcherMap.get(h);if(je||(je=new Map,this.watcherMap.set(h,je)),!je.get(A)){const Vt=(0,K.T)(...ce).subscribe(()=>{const Un=this.getValue(h,A);this.updateElement(h,A,Un)});je.set(A,Vt)}}}findByQuery(h){return this.breakpoints.findByQuery(h)}getActivatedValues(h,A){for(let je=0;jeA.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(h)).pipe((0,M.b)(this.hook.interceptEvents(this)),(0,o.h)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return v.\u0275fac=function(h){return new(h||v)(r.LFG(Re),r.LFG(qt),r.LFG(bn))},v.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),v})();function Wt(v,xe,h,A){var ce;if(void 0!==A){const je=null!==(ce=v.get(xe))&&void 0!==ce?ce:new Map;je.set(h,A),v.set(xe,je)}}let Se=(()=>{class v{constructor(h,A,ce,je){this.elementRef=h,this.styleBuilder=A,this.styler=ce,this.marshal=je,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new ne.x,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(h){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,h,this.marshal.activatedAlias)}ngOnChanges(h){Object.keys(h).forEach(A=>{if(-1!==this.inputs.indexOf(A)){const ce=A.split(".").slice(1).join(".");this.setValue(h[A].currentValue,ce)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(h=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),h)}addStyles(h,A){const ce=this.styleBuilder,je=ce.shouldCache;let It=this.styleCache.get(h);(!It||!je)&&(It=ce.buildStyles(h,A),je&&this.styleCache.set(h,It)),this.mru=Object.assign({},It),this.applyStyleToElement(It),ce.sideEffect(h,It,A)}clearStyles(){Object.keys(this.mru).forEach(h=>{this.mru[h]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(h,A=!1){if(h){const[ce,je]=this.styler.getFlowDirection(h);if(!je&&A){const It=z(ce);this.styler.applyStyleToElements(It,[h])}return ce.trim()}return"row"}hasWrap(h){return this.styler.hasWrap(h)}applyStyleToElement(h,A,ce=this.nativeElement){this.styler.applyStyleToElement(ce,h,A)}setValue(h,A){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,h,A)}updateWithValue(h){this.currentValue!==h&&(this.addStyles(h),this.currentValue=h)}}return v.\u0275fac=function(h){return new(h||v)(r.Y36(r.SBq),r.Y36(Je),r.Y36(H),r.Y36(_t))},v.\u0275dir=r.lG2({type:v,features:[r.TTD]}),v})();a(3191);var ut=a(2722);class Ie{constructor(xe,h,A=!0){this.key=xe,this.value=h,this.key=A?xe.replace(/['"]/g,"").trim():xe.trim(),this.value=A?h.replace(/['"]/g,"").trim():h.trim(),this.value=this.value.replace(/;/,"")}}function me(v){let xe=typeof v;return"object"===xe?v.constructor===Array?"array":v.constructor===Set?"set":"object":xe}function st(v){const[xe,...h]=v.split(":");return new Ie(xe,h.join(":"))}function Gt(v,xe){return xe.key&&(v[xe.key]=xe.value),v}let $t=(()=>{class v extends Se{constructor(h,A,ce,je,It,Vt,Un,Di,Tr){var lr;super(h,null,A,ce),this.sanitizer=je,this.ngStyleInstance=Un,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new O.PC(h,It,Vt)),this.init();const No=null!==(lr=this.nativeElement.getAttribute("style"))&&void 0!==lr?lr:"";this.fallbackStyles=this.buildStyleMap(No),this.isServer=Di&&(0,O.PM)(Tr)}updateWithValue(h){const A=this.buildStyleMap(h);this.ngStyleInstance.ngStyle=Object.assign(Object.assign({},this.fallbackStyles),A),this.isServer&&this.applyStyleToElement(A),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(h){const A=ce=>{var je;return null!==(je=this.sanitizer.sanitize(r.q3G.STYLE,ce))&&void 0!==je?je:""};if(h)switch(me(h)){case"string":return dn(function x(v,xe=";"){return String(v).trim().split(xe).map(h=>h.trim()).filter(h=>""!==h)}(h),A);case"array":return dn(h,A);default:return function Fe(v,xe){let h=[];return"set"===me(v)?v.forEach(A=>h.push(A)):Object.keys(v).forEach(A=>{h.push(`${A}:${v[A]}`)}),function re(v,xe){return v.map(st).filter(A=>!!A).map(A=>(xe&&(A.value=xe(A.value)),A)).reduce(Gt,{})}(h,xe)}(h,A)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return v.\u0275fac=function(h){return new(h||v)(r.Y36(r.SBq),r.Y36(H),r.Y36(_t),r.Y36(n.H7),r.Y36(r.aQg),r.Y36(r.Qsj),r.Y36(O.PC,10),r.Y36(mt),r.Y36(r.Lbi))},v.\u0275dir=r.lG2({type:v,features:[r.qOj]}),v})();const Fn=["ngStyle","ngStyle.xs","ngStyle.sm","ngStyle.md","ngStyle.lg","ngStyle.xl","ngStyle.lt-sm","ngStyle.lt-md","ngStyle.lt-lg","ngStyle.lt-xl","ngStyle.gt-xs","ngStyle.gt-sm","ngStyle.gt-md","ngStyle.gt-lg"];let dt=(()=>{class v extends $t{constructor(){super(...arguments),this.inputs=Fn}}return v.\u0275fac=function(){let xe;return function(A){return(xe||(xe=r.n5z(v)))(A||v)}}(),v.\u0275dir=r.lG2({type:v,selectors:[["","ngStyle",""],["","ngStyle.xs",""],["","ngStyle.sm",""],["","ngStyle.md",""],["","ngStyle.lg",""],["","ngStyle.xl",""],["","ngStyle.lt-sm",""],["","ngStyle.lt-md",""],["","ngStyle.lt-lg",""],["","ngStyle.lt-xl",""],["","ngStyle.gt-xs",""],["","ngStyle.gt-sm",""],["","ngStyle.gt-md",""],["","ngStyle.gt-lg",""]],inputs:{ngStyle:"ngStyle","ngStyle.xs":"ngStyle.xs","ngStyle.sm":"ngStyle.sm","ngStyle.md":"ngStyle.md","ngStyle.lg":"ngStyle.lg","ngStyle.xl":"ngStyle.xl","ngStyle.lt-sm":"ngStyle.lt-sm","ngStyle.lt-md":"ngStyle.lt-md","ngStyle.lt-lg":"ngStyle.lt-lg","ngStyle.lt-xl":"ngStyle.lt-xl","ngStyle.gt-xs":"ngStyle.gt-xs","ngStyle.gt-sm":"ngStyle.gt-sm","ngStyle.gt-md":"ngStyle.gt-md","ngStyle.gt-lg":"ngStyle.gt-lg"},features:[r.qOj]}),v})();function dn(v,xe){return v.map(st).filter(A=>!!A).map(A=>(xe&&(A.value=xe(A.value)),A)).reduce(Gt,{})}let un=(()=>{class v{}return v.\u0275fac=function(h){return new(h||v)},v.\u0275mod=r.oAB({type:v}),v.\u0275inj=r.cJS({imports:[[ie]]}),v})();var fn=a(226);let pi=(()=>{class v{}return v.\u0275fac=function(h){return new(h||v)},v.\u0275mod=r.oAB({type:v}),v.\u0275inj=r.cJS({imports:[[ie,fn.vT]]}),v})(),Pn=(()=>{class v{}return v.\u0275fac=function(h){return new(h||v)},v.\u0275mod=r.oAB({type:v}),v.\u0275inj=r.cJS({imports:[[ie]]}),v})(),xi=(()=>{class v{constructor(h,A){(0,O.PM)(A)&&!h&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(h,A=[]){return{ngModule:v,providers:h.serverLoaded?[{provide:Rt,useValue:Object.assign(Object.assign({},Tt),h)},{provide:gt,useValue:A,multi:!0},{provide:mt,useValue:!0}]:[{provide:Rt,useValue:Object.assign(Object.assign({},Tt),h)},{provide:gt,useValue:A,multi:!0}]}}}return v.\u0275fac=function(h){return new(h||v)(r.LFG(mt),r.LFG(r.Lbi))},v.\u0275mod=r.oAB({type:v}),v.\u0275inj=r.cJS({imports:[[pi,un,Pn],pi,un,Pn]}),v})();var wr=a(3075),ns=a(7261),Ms=a(7322),cs=a(7238),Ns=a(3988),fo=a(72),Za=a(2290),Ks=a(727),Qa=a(9841),Ao=a(2805),ga=a(515),Zs=a(4482),Qs=a(5032),Us=a(5403),Ja=a(8421),Js=a(3900),Kl=a(1005),qa=a(8746),Zi=a(4004);function Zl(v,xe){if(1&v&&r._UZ(0,"div",6),2&v){const h=r.oxw(2);r.Udp("box-shadow","0 0 10px "+h.color+", 0 0 5px "+h.color)}}function Wu(v,xe){if(1&v&&(r.TgZ(0,"div",7),r._UZ(1,"div",8),r.qZA()),2&v){const h=r.oxw(2);r.xp6(1),r.Udp("border-top-color",h.color)("border-left-color",h.color)}}function Yu(v,xe){if(1&v&&(r.ynx(0),r.TgZ(1,"div",1)(2,"div",2)(3,"div",3),r.YNc(4,Zl,1,2,"div",4),r.qZA()(),r.YNc(5,Wu,2,4,"div",5),r.qZA(),r.BQk()),2&v){const h=xe.$implicit,A=r.oxw();r.xp6(1),r.Udp("transition","opacity "+A.speed+"ms "+A.ease),r.uIk("active",h.active),r.xp6(2),r.Udp("transform",h.transform)("background-color",A.color)("transition",h.active?"all "+A.speed+"ms "+A.ease:"none"),r.xp6(1),r.Q6J("ngIf",A.meteor),r.xp6(1),r.Q6J("ngIf",A.spinner)}}class $u{constructor(xe,h){this._onDestroyCallback=h,this._started=new ne.x,this.started=this._started.pipe((0,o.h)(()=>!this.isStarted)),this._completed=new ne.x,this.completed=this._completed.pipe((0,o.h)(()=>this.isStarted)),this._trickling=new ne.x,this._worker=Ks.w0.EMPTY,this._state=new ee.X({active:!1,value:0}),this._config=new ee.X(xe),this.state=this._state.asObservable(),this.config=this._config.asObservable(),this._worker=(0,Qa.a)([this._trickling,this._config]).pipe(function ma(v){return(0,Zs.e)((xe,h)=>{let A=!1,ce=null,je=null;const It=()=>{if(null==je||je.unsubscribe(),je=null,A){A=!1;const Vt=ce;ce=null,h.next(Vt)}};xe.subscribe((0,Us.x)(h,Vt=>{null==je||je.unsubscribe(),A=!0,ce=Vt,je=(0,Us.x)(h,It,Qs.Z),(0,Ja.Xf)(v(Vt)).subscribe(je)},()=>{It(),h.complete()},void 0,()=>{ce=je=null}))})}(([A,ce])=>(0,Ao.H)(A?ce.debounceTime:0)),(0,Js.w)(([A,ce])=>A?this.onTrickling(ce):this.onComplete(ce))).subscribe()}get snapshot(){return this._state.value}get isStarted(){return this.snapshot.active}start(){this._started.next(),this._trickling.next(!0)}complete(){this._trickling.next(!1)}inc(xe){const h=this.snapshot.value;this.isStarted?("number"!=typeof xe&&(xe=this._config.value.trickleFunc(h)),this.set(h+xe)):this.start()}set(xe){this.setState({value:this.clamp(xe),active:!0})}setConfig(xe){this._config.next(Object.assign(Object.assign({},this._config.value),xe))}destroy(){this._worker.unsubscribe(),this._trickling.complete(),this._state.complete(),this._config.complete(),this._started.complete(),this._completed.complete(),this._onDestroyCallback()}setState(xe){this._state.next(Object.assign(Object.assign({},this.snapshot),xe))}clamp(xe){return Math.max(this._config.value.min,Math.min(this._config.value.max,xe))}onTrickling(xe){return this.isStarted||this.set(this._config.value.min),(0,Ao.H)(0,xe.trickleSpeed).pipe((0,M.b)(()=>this.inc()))}onComplete(xe){return this._completed.next(),this.isStarted?(0,u.of)({}).pipe((0,M.b)(()=>this.setState({value:100})),(0,Kl.g)(1.7*xe.speed),(0,M.b)(()=>this.setState({active:!1})),(0,Kl.g)(xe.speed),(0,qa.x)(()=>this.setState({value:0})),(0,ut.R)(this._started)):ga.E}}const Ql=new r.OlP("ngProgressConfig"),Jl={min:8,max:100,speed:200,debounceTime:0,trickleSpeed:300,fixed:!0,meteor:!0,thick:!1,spinner:!0,ease:"linear",color:"#1B95E0",direction:"ltr+",spinnerPosition:"right",trickleFunc:v=>v>=0&&v<20?10:v>=20&&v<50?4:v>=50&&v<80?2:v>=80&&v<99?.5:0};let ql=(()=>{class v{constructor(h){this._instances=new Map,this.config=h?Object.assign(Object.assign({},Jl),h):Jl}ref(h="root",A){if(this._instances.has(h)){const ce=this._instances.get(h);return A&&ce.setConfig(Object.assign(Object.assign({},this.config),A)),ce}{const ce=new $u(Object.assign(Object.assign({},this.config),A),this.deleteInstance(h));return this._instances.set(h,ce).get(h)}}destroyAll(){this._instances.forEach(h=>h.destroy())}deleteInstance(h){return()=>{this._instances.delete(h)}}}return v.\u0275fac=function(h){return new(h||v)(r.LFG(Ql,8))},v.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),v})(),po=(()=>{class v{constructor(h){this._ngProgress=h,this.id="root",this.min=this._ngProgress.config.min,this.max=this._ngProgress.config.max,this.ease=this._ngProgress.config.ease,this.color=this._ngProgress.config.color,this.speed=this._ngProgress.config.speed,this.thick=this._ngProgress.config.thick,this.fixed=this._ngProgress.config.fixed,this.meteor=this._ngProgress.config.meteor,this.spinner=this._ngProgress.config.spinner,this.trickleSpeed=this._ngProgress.config.trickleSpeed,this.debounceTime=this._ngProgress.config.debounceTime,this.trickleFunc=this._ngProgress.config.trickleFunc,this.spinnerPosition=this._ngProgress.config.spinnerPosition,this.direction=this._ngProgress.config.direction,this.started=new r.vpe,this.completed=new r.vpe}get isStarted(){var h;return null===(h=this.progressRef)||void 0===h?void 0:h.isStarted}ngOnChanges(){var h;null===(h=this.progressRef)||void 0===h||h.setConfig({max:this.max>0&&this.max<=100?this.max:100,min:this.min<100&&this.min>=0?this.min:0,speed:this.speed,trickleSpeed:this.trickleSpeed,trickleFunc:this.trickleFunc,debounceTime:this.debounceTime})}ngOnInit(){this.progressRef=this._ngProgress.ref(this.id,{max:this.max,min:this.min,speed:this.speed,trickleSpeed:this.trickleSpeed,debounceTime:this.debounceTime}),this.state$=this.progressRef.state.pipe((0,Zi.U)(h=>({active:h.active,transform:`translate3d(${h.value}%,0,0)`}))),this.started.observed&&(this._started=this.progressRef.started.subscribe(()=>this.started.emit())),this.completed.observed&&(this._completed=this.progressRef.completed.subscribe(()=>this.completed.emit()))}ngOnDestroy(){var h,A,ce;null===(h=this._started)||void 0===h||h.unsubscribe(),null===(A=this._completed)||void 0===A||A.unsubscribe(),null===(ce=this.progressRef)||void 0===ce||ce.destroy()}start(){this.progressRef.start()}complete(){this.progressRef.complete()}inc(h){this.progressRef.inc(h)}set(h){this.progressRef.set(h)}}return v.\u0275fac=function(h){return new(h||v)(r.Y36(ql))},v.\u0275cmp=r.Xpm({type:v,selectors:[["ng-progress"]],hostAttrs:["role","progressbar"],hostVars:4,hostBindings:function(h,A){2&h&&r.uIk("spinnerPosition",A.spinnerPosition)("direction",A.direction)("thick",A.thick)("fixed",A.fixed)},inputs:{id:"id",min:"min",max:"max",ease:"ease",color:"color",speed:"speed",thick:"thick",fixed:"fixed",meteor:"meteor",spinner:"spinner",trickleSpeed:"trickleSpeed",debounceTime:"debounceTime",trickleFunc:"trickleFunc",spinnerPosition:"spinnerPosition",direction:"direction"},outputs:{started:"started",completed:"completed"},features:[r.TTD],decls:2,vars:3,consts:[[4,"ngIf"],[1,"ng-progress-bar"],[1,"ng-bar-placeholder"],[1,"ng-bar"],["class","ng-meteor",3,"boxShadow",4,"ngIf"],["class","ng-spinner",4,"ngIf"],[1,"ng-meteor"],[1,"ng-spinner"],[1,"ng-spinner-icon"]],template:function(h,A){1&h&&(r.YNc(0,Yu,6,11,"ng-container",0),r.ALo(1,"async")),2&h&&r.Q6J("ngIf",r.lcZ(1,1,A.state$))},directives:[O.O5],pipes:[O.Ov],styles:['[_nghost-%COMP%]{z-index:999999;pointer-events:none}[fixed=true][_nghost-%COMP%] .ng-progress-bar[_ngcontent-%COMP%], [fixed=true][_nghost-%COMP%] .ng-spinner[_ngcontent-%COMP%]{position:fixed}[fixed=true][_nghost-%COMP%] .ng-spinner[_ngcontent-%COMP%]{top:15px}[fixed=true][spinnerPosition=left][_nghost-%COMP%] .ng-spinner[_ngcontent-%COMP%]{left:15px}[fixed=true][spinnerPosition=right][_nghost-%COMP%] .ng-spinner[_ngcontent-%COMP%]{right:15px}[thick=true][_nghost-%COMP%] .ng-spinner-icon[_ngcontent-%COMP%]{width:24px;height:24px;border-width:3px}[thick=true][_nghost-%COMP%] .ng-bar-placeholder[_ngcontent-%COMP%]{height:3px!important}[direction="ltr+"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction=ltr-][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{transform:rotate(3deg)}[direction="ltr+"][thick=true][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction=ltr-][thick=true][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{transform:rotate(4deg)}[direction="ltr+"][_nghost-%COMP%] .ng-bar[_ngcontent-%COMP%], [direction="rtl+"][_nghost-%COMP%] .ng-bar[_ngcontent-%COMP%]{margin-left:-100%}[direction="ltr+"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction="rtl+"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{right:0}[direction="ltr+"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction=rtl-][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{top:-3px}[direction="ltr+"][thick=true][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction=rtl-][thick=true][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{top:-4px}[direction=ltr-][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction="rtl+"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{bottom:-3px}[direction=ltr-][thick=true][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction="rtl+"][thick=true][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{bottom:-4px}[direction=ltr-][_nghost-%COMP%] .ng-bar-placeholder[_ngcontent-%COMP%], [direction="rtl+"][_nghost-%COMP%] .ng-bar-placeholder[_ngcontent-%COMP%]{transform:rotate(180deg)}[direction=ltr-][_nghost-%COMP%] .ng-spinner-icon[_ngcontent-%COMP%], [direction="rtl+"][_nghost-%COMP%] .ng-spinner-icon[_ngcontent-%COMP%]{animation-directionection:reverse}[direction="rtl+"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction=rtl-][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{transform:rotate(-3deg)}[direction="rtl+"][thick=true][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction=rtl-][thick=true][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{transform:rotate(-4deg)}[spinnerPosition=left][_nghost-%COMP%] .ng-spinner[_ngcontent-%COMP%]{left:10px}[spinnerPosition=right][_nghost-%COMP%] .ng-spinner[_ngcontent-%COMP%]{right:10px}.ng-progress-bar[_ngcontent-%COMP%]{position:relative;z-index:999999;top:0;left:0;width:100%;transform:scale(1);filter:alpha(opacity=0);opacity:0}.ng-progress-bar[active=true][_ngcontent-%COMP%]{filter:alpha(opacity=100);opacity:1;transition:none}.ng-bar-placeholder[_ngcontent-%COMP%]{position:absolute;height:2px;width:100%}.ng-bar[_ngcontent-%COMP%]{width:100%;height:100%;transform:translate(-100%,0,0)}.ng-meteor[_ngcontent-%COMP%]{display:block;position:absolute;width:100px;height:100%;opacity:1}.ng-spinner[_ngcontent-%COMP%]{position:absolute;display:block;z-index:1031;top:10px}.ng-spinner-icon[_ngcontent-%COMP%]{width:18px;height:18px;box-sizing:border-box;-webkit-animation:spinner-animation .25s linear infinite;animation:spinner-animation .25s linear infinite;border:2px solid transparent;border-radius:50%}@-webkit-keyframes spinner-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes spinner-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}'],changeDetection:0}),v})(),Ku=(()=>{class v{static withConfig(h){return{ngModule:v,providers:[{provide:Ql,useValue:h}]}}}return v.\u0275fac=function(h){return new(h||v)},v.\u0275mod=r.oAB({type:v}),v.\u0275inj=r.cJS({imports:[[O.ez]]}),v})();const or=new r.OlP("ngProgressHttpConfig");let _a=(()=>{class v{constructor(h,A){this.ngProgress=h,this._inProgressCount=0,this._config={id:"root",silentApis:[],matcher:void 0},this._config=A?Object.assign(Object.assign({},this._config),A):this._config}intercept(h,A){return h.headers.has("ignoreProgressBar")?A.handle(h.clone({headers:h.headers.delete("ignoreProgressBar")})):this.checkUrl(h)?A.handle(h):(this._inProgressCount++,this._progressRef=this.ngProgress.ref(this._config.id),this._progressRef.isStarted||this._progressRef.start(),A.handle(h).pipe((0,qa.x)(()=>{this._inProgressCount--,0===this._inProgressCount&&this._progressRef.complete()})))}checkUrl(h){var A,ce;const je=h.url.toLowerCase();return this._config.matcher&&(null===(A=this._config.silentApis)||void 0===A?void 0:A.length)?Xl(je,this._config.matcher)&&qs(je,this._config.silentApis):(null===(ce=this._config.silentApis)||void 0===ce?void 0:ce.length)?qs(je,this._config.silentApis):!!this._config.matcher&&Xl(je,this._config.matcher)}}return v.\u0275fac=function(h){return new(h||v)(r.LFG(ql),r.LFG(or,8))},v.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac}),v})();function qs(v,xe){return!!xe.find(h=>v.includes(h.toLowerCase()))}function Xl(v,xe){return!!v.match(xe)}let ec=(()=>{class v{static withConfig(h){return{ngModule:v,providers:[{provide:or,useValue:h}]}}}return v.\u0275fac=function(h){return new(h||v)},v.\u0275mod=r.oAB({type:v}),v.\u0275inj=r.cJS({providers:[{provide:l.TP,useClass:_a,multi:!0}]}),v})();var Qr=a(6493),Lr=a(6271),Ui=a(8406),Ar=a(4249),ws=a(2777),Xa=a(5094);const tc=[{path:"",pathMatch:"full",redirectTo:"home"},{path:"admin-mod",loadChildren:()=>Promise.all([a.e(471),a.e(345),a.e(592),a.e(438)]).then(a.bind(a,4438)).then(v=>v.AdminModule),canActivate:[ws.t],data:{title:"Admin & Moderator Panel Management",description:"Halaman Khusus Untuk Administrasi & Moderasi",keywords:"Admin Moderator Fansub Database",[Lr.t.decoratorRoles]:[Ar.yS.ADMIN,Ar.yS.MODERATOR]}},{path:"create",loadChildren:()=>Promise.all([a.e(345),a.e(592),a.e(241)]).then(a.bind(a,4241)).then(v=>v.CreateModule),canActivate:[ws.t],data:{title:"Membuat Konten Baru",description:"Membuat Konten Baru",keywords:"Add New Content",[Lr.t.decoratorRoles]:[Ar.yS.ADMIN,Ar.yS.MODERATOR,Ar.yS.FANSUBBER,Ar.yS.USER]}},{path:"login",loadChildren:()=>a.e(288).then(a.bind(a,8146)).then(v=>v.LoginModule),data:{title:"Masuk",description:"Halaman Login",keywords:"Login"}},{path:"register",loadChildren:()=>Promise.all([a.e(592),a.e(839)]).then(a.bind(a,3839)).then(v=>v.RegisterModule),data:{title:"Pendaftaran",description:"Halaman Pembuatan Akun Baru",keywords:"Register"}},{path:"reset-password",loadChildren:()=>Promise.all([a.e(592),a.e(960)]).then(a.bind(a,5960)).then(v=>v.ResetPasswordModule),data:{title:"Reset Akun",description:"Halaman Atur Ulang Kata Sandi",keywords:"Reset Password"}},{path:"privacy-policy",loadChildren:()=>a.e(772).then(a.bind(a,5772)).then(v=>v.PrivacyPolicyModule),data:{title:"Privacy Policy",description:"Halaman Kebijakan Privasi",keywords:"privacy-policy"}},{path:"verify",loadChildren:()=>Promise.all([a.e(592),a.e(628)]).then(a.bind(a,7628)).then(v=>v.VerifyModule),canActivate:[ws.t],data:{title:"Verifikasi",description:"Halaman Verifikasi Akun",keywords:"Verify",[Lr.t.decoratorRoles]:[Ar.yS.ADMIN,Ar.yS.MODERATOR,Ar.yS.FANSUBBER,Ar.yS.USER]}},{path:"home",loadChildren:()=>Promise.all([a.e(592),a.e(915)]).then(a.bind(a,2915)).then(v=>v.HomeModule),data:{title:"Beranda",description:"Halaman Beranda",keywords:"Beranda"}},{path:"news",loadChildren:()=>Promise.all([a.e(471),a.e(847),a.e(345),a.e(592),a.e(108)]).then(a.bind(a,6108)).then(v=>v.NewsModule),data:{title:"Berita & Informasi",description:"Papan Pengumuman",keywords:"News"}},{path:"mailbox",loadChildren:()=>Promise.all([a.e(471),a.e(592),a.e(297)]).then(a.bind(a,2297)).then(v=>v.MailboxModule),canActivate:[ws.t,Xa.H],data:{title:"Surat Elektronik",description:"E-Mail & DM's",keywords:"Surel Email DM",[Lr.t.decoratorRoles]:[Ar.yS.ADMIN,Ar.yS.MODERATOR,Ar.yS.FANSUBBER,Ar.yS.USER],[Lr.t.decoratorVerifiedOnly]:!0}},{path:"nihongo",loadChildren:()=>Promise.all([a.e(471),a.e(847),a.e(345),a.e(592),a.e(750)]).then(a.bind(a,6750)).then(v=>v.NihongoModule),data:{title:"Belajar Bahasa Jepang",description:"Jejepangan Lebih Seru Dengan Bahasa Aslinya",keywords:"Bahasa Jepang"}},{path:"berkas",loadChildren:()=>Promise.all([a.e(471),a.e(847),a.e(345),a.e(268),a.e(219),a.e(592),a.e(330)]).then(a.bind(a,2330)).then(v=>v.BerkasModule),data:{title:"Semua Berkas",description:"Kelola Arsip Berkas",keywords:"Berkas File"}},{path:"anime",loadChildren:()=>Promise.all([a.e(471),a.e(847),a.e(268),a.e(925),a.e(32)]).then(a.bind(a,32)).then(v=>v.AnimeModule),data:{title:"List Anime & Garapan Musiman",description:"Daftar Isi Anime Musiman Yang Baru Saja Rilis Subtitle Indonesianya",keywords:"Anime Subtitle Indonesia"}},{path:"dorama",loadChildren:()=>Promise.all([a.e(471),a.e(847),a.e(268),a.e(925),a.e(469)]).then(a.bind(a,8469)).then(v=>v.DoramaModule),data:{title:"List Dorama & Garapan Musiman",description:"Daftar Isi Dorama Musiman Yang Baru Saja Rilis Subtitle Indonesianya",keywords:"Dorama Subtitle Indonesia"}},{path:"fansub",loadChildren:()=>Promise.all([a.e(471),a.e(847),a.e(345),a.e(268),a.e(219),a.e(478)]).then(a.bind(a,8478)).then(v=>v.FansubModule),data:{title:"Katalog Informasi Seluruh Fansub Indonesia",description:"Daftar Isi Seluruh Fansub Indonesia",keywords:"Fansub Indonesia"}},{path:"about",loadChildren:()=>a.e(180).then(a.bind(a,2180)).then(v=>v.AboutModule),data:{title:"About",description:"Halaman Mengenai Website",keywords:"About"}},{path:"user",loadChildren:()=>Promise.all([a.e(471),a.e(847),a.e(345),a.e(268),a.e(219),a.e(794)]).then(a.bind(a,2794)).then(v=>v.UserModule),data:{title:"User Profile",description:"Halaman Informasi Pengguna",keywords:"User"}},{path:"rss-feed",loadChildren:()=>Promise.all([a.e(471),a.e(847),a.e(592),a.e(229)]).then(a.bind(a,229)).then(v=>v.RssFeedModule),data:{title:"Loper Koran RSS Feed",description:"Halaman Rangkuman Berita Acara Fansub Indonesia",keywords:"RSS Feed"}},{path:"torrent",loadChildren:()=>Promise.all([a.e(592),a.e(146)]).then(a.bind(a,1146)).then(v=>v.TorrentModule),data:{title:"Web-SocketRTC Torrent",description:"Halaman Peer-to-Peer Berbagi Berkas",keywords:"Web Torrent"}},{path:"docs",loadChildren:()=>Promise.all([a.e(592),a.e(938)]).then(a.bind(a,7938)).then(v=>v.DocsModule),data:{title:"Developers Documentation",description:"For Developers Only",keywords:"Domain & API Keys"}},{path:"error",loadChildren:()=>a.e(129).then(a.bind(a,8129)).then(v=>v.NotFoundModule),data:{title:"Error - 404",description:"Whoops! Halaman Tidak Ditemukan",keywords:"404 - Not Found"}},{path:"**",redirectTo:"error"}];let nc=(()=>{class v{}return v.\u0275fac=function(h){return new(h||v)},v.\u0275mod=r.oAB({type:v}),v.\u0275inj=r.cJS({imports:[[Ui.Bz.forRoot(tc,{initialNavigation:"enabledBlocking",scrollPositionRestoration:"enabled",relativeLinkResolution:"corrected"})],Ui.Bz]}),v})(),Zu=(()=>{class v extends n.hm{constructor(){super(...arguments),this.overrides={pinch:{enable:!1},rotate:{enable:!1}}}}return v.\u0275fac=function(){let xe;return function(A){return(xe||(xe=r.n5z(v)))(A||v)}}(),v.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),v})();const Qu={showDelay:250,hideDelay:0,touchendHideDelay:0,touchGestures:"off"};var Hs=a(210),Qi=a(8696),Xs=a(3e3);let eo=(()=>{class v{constructor(h,A){this.gs=h,this.bs=A}intercept(h,A){return A.handle(h).pipe((0,ut.R)(this.bs.onCancelPendingRequests))}}return v.\u0275fac=function(h){return new(h||v)(r.LFG(Qi.U),r.LFG(Xs.z))},v.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac}),v})();var ar=a(5934),to=a(8381),To=a(4137);let ic=(()=>{class v{constructor(h,A,ce){this.gs=h,this.ss=A,this.as=ce}intercept(h,A){var ce;const je=h.url,It=je.startsWith(ar.N.baseUrl)||je.startsWith(ar.N.apiUrl);if(this.gs.isBrowser&&It){if(h=h.clone({withCredentials:!this.gs.isDevMode}),this.as.token){const Vt=this.as.token.length,Un=this.as.token.slice(0,5)+"....."+this.as.token.slice(Vt-5,Vt);this.gs.log("[INTERCEPT_JWT]",Un),h=h.clone({headers:h.headers.append("Authorization",`Bearer ${this.as.token}`)})}(null===(ce=this.ss.mySocket)||void 0===ce?void 0:ce.id)&&(this.gs.log("[INTERCEPT_SOCKET]",this.ss.mySocket.id),h=h.clone({headers:h.headers.append("x-socket-id",this.ss.mySocket.id)}))}return A.handle(h)}}return v.\u0275fac=function(h){return new(h||v)(r.LFG(Qi.U),r.LFG(to.R),r.LFG(To.e))},v.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac}),v})();var rc=a(262),sc=a(2843),oc=a(6925),go=a(3379);let va=(()=>{class v{constructor(h,A,ce,je,It,Vt,Un,Di){this.gs=h,this.router=A,this.as=ce,this.toast=je,this.bs=It,this.ss=Vt,this.ls=Un,this.activatedRoute=Di}intercept(h,A){return A.handle(h).pipe((0,M.b)(ce=>{if(ce instanceof l.Zn&&this.gs.isBrowser){let je="UwUu~ Berhasil~",It="Yeay, Selesai!";switch(ce&&ce.body&&(ce.body.info&&(It=ce.body.info),ce.body.result&&ce.body.result.message&&(je=ce.body.result.message)),ce.status){case 200:this.toast.success(je,It);break;case 201:case 202:this.toast.info(je,It);break;default:this.toast.warning(je,It)}if("GET"===h.method){this.gs.log("[SOCKET_TRACK-SET]",h.url);let Vt=h.url;Vt.startsWith(ar.N.baseUrl)&&(Vt=Vt.slice(ar.N.baseUrl.length)),Vt.startsWith(ar.N.apiUrl)&&(Vt=Vt.slice(ar.N.apiUrl.length)),this.ss.socketEmitVolatile("track-set",{pathUrl:Vt})}}}),(0,rc.K)(ce=>{if(this.gs.log(`[INTERCEPT_ERROR-${ce.status}]`,ce.statusText),this.gs.isBrowser){let je="Terjadi Kesalahan Pada Jaringan~",It="Whoops, Server Sibuk T.T";switch(ce&&ce.error&&(ce.error.info&&(It=ce.error.info),ce.error.result&&ce.error.result.message&&(je=ce.error.result.message)),this.toast.error(je,It,null,!0),ce.status){case 401:this.as.removeUser(),this.ls.clear(),this.bs.idle(),this.router.navigate(["/login"],{queryParams:{returnUrl:this.router.url}});break;case 404:this.bs.idle(),this.router.navigate(["/error"],{queryParams:{returnUrl:this.activatedRoute.snapshot.parent.url}});break;case 418:this.bs.idle(),this.router.navigate(["/verify"],{queryParams:{returnUrl:this.router.url}})}}return(0,sc._)(()=>ce.error)}))}}return v.\u0275fac=function(h){return new(h||v)(r.LFG(Qi.U),r.LFG(Ui.F0),r.LFG(To.e),r.LFG(oc.k),r.LFG(Xs.z),r.LFG(to.R),r.LFG(go.n),r.LFG(Ui.gz))},v.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac}),v})();var So=a(5861),Hi=a(1777);const mo=(0,Hi.X$)("onSideNavChange",[(0,Hi.SB)("close",(0,Hi.oB)({"min-width":"50px"})),(0,Hi.SB)("open",(0,Hi.oB)({"min-width":"200px"})),(0,Hi.eR)("close => open",(0,Hi.jt)("250ms ease-in")),(0,Hi.eR)("open => close",(0,Hi.jt)("250ms ease-out"))]),ya=(0,Hi.X$)("onMainContentChange",[(0,Hi.SB)("close",(0,Hi.oB)({"margin-left":"62px"})),(0,Hi.SB)("open",(0,Hi.oB)({"margin-left":"200px"})),(0,Hi.eR)("close => open",(0,Hi.jt)("250ms ease-in")),(0,Hi.eR)("open => close",(0,Hi.jt)("250ms ease-out"))]),Oo=(0,Hi.X$)("animateText",[(0,Hi.SB)("hide",(0,Hi.oB)({display:"none",opacity:0})),(0,Hi.SB)("show",(0,Hi.oB)({display:"block",opacity:1})),(0,Hi.eR)("close => open",(0,Hi.jt)("350ms ease-in")),(0,Hi.eR)("open => close",(0,Hi.jt)("200ms ease-out"))]);var el=a(8745),tl=a(6382),ba=a(7),Ro=a(7814),nl=a(8020),no=a(7845),il=a(9775);let ac=(()=>{class v{constructor(h){this.gs=h,this.currentViewer=null}viewImage(h){this.currentViewer=new Viewer(h,{url:"src",navbar:!1,title:!0,toolbar:{zoomIn:!0,zoomOut:!0,oneToOne:!0,reset:!0,prev:!1,play:{show:!1,size:"large"},next:!1,rotateLeft:!0,rotateRight:!0,flipHorizontal:!0,flipVertical:!0},ready:A=>{this.gs.log("[VIEWERJS]",A.type),this.currentViewer.show()},show:A=>{this.gs.log("[VIEWERJS]",A.type)},shown:A=>{this.gs.log("[VIEWERJS]",A.type)},view:A=>{this.gs.log("[VIEWERJS]",A.type)},viewed:A=>{this.gs.log("[VIEWERJS]",A.type)},move:A=>{this.gs.log("[VIEWERJS]",A.type)},moved:A=>{this.gs.log("[VIEWERJS]",A.type)},rotate:A=>{this.gs.log("[VIEWERJS]",A.type)},rotated:A=>{this.gs.log("[VIEWERJS]",A.type)},scale:A=>{this.gs.log("[VIEWERJS]",A.type)},scaled:A=>{this.gs.log("[VIEWERJS]",A.type)},play:A=>{this.gs.log("[VIEWERJS]",A.type)},stop:A=>{this.gs.log("[VIEWERJS]",A.type)},hide:A=>{this.gs.log("[VIEWERJS]",A.type)},zoom:A=>{this.gs.log("[VIEWERJS]",A.type)},zoomed:A=>{this.gs.log("[VIEWERJS]",A.type)},hidden:A=>{this.gs.log("[VIEWERJS]",A.type),this.currentViewer.destroy(),this.currentViewer=null}})}}return v.\u0275fac=function(h){return new(h||v)(r.LFG(Qi.U))},v.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),v})();var Cr=a(4594),Ca=a(7423),Io=a(5245),xa=a(508),io=a(7544);function lc(v,xe){if(1&v&&(r.TgZ(0,"button",12)(1,"mat-icon",13),r._uU(2,"sports_score"),r.qZA(),r._uU(3),r.qZA()),2&v){const h=r.oxw();r.xp6(3),r.hij(" ",h.myPoints," ")}}function cc(v,xe){if(1&v){const h=r.EpF();r.TgZ(0,"button",14),r.NdJ("click",function(){return r.CHM(h),r.oxw().toggleWeather()}),r.TgZ(1,"mat-icon"),r._uU(2,"filter_vintage"),r.qZA()()}}function dc(v,xe){if(1&v){const h=r.EpF();r.TgZ(0,"button",15),r.NdJ("click",function(){return r.CHM(h),r.oxw().openAdminNavigation()}),r.TgZ(1,"mat-icon"),r._uU(2,"apps"),r.qZA()()}}function Po(v,xe){if(1&v){const h=r.EpF();r.TgZ(0,"button",16),r.NdJ("click",function(){return r.CHM(h),r.oxw().reloadPage()}),r.TgZ(1,"mat-icon"),r._uU(2,"replay"),r.qZA()()}}let _o=(()=>{class v{constructor(h,A,ce,je,It,Vt,Un,Di,Tr){this.snackBar=h,this.lms=A,this.rps=ce,this.router=je,this.pi=It,this.gs=Vt,this.ss=Un,this.bs=Di,this.ls=Tr,this.myPoints=0,this.subsGlobalRoom=null}get GS(){return this.gs}get ROUTER(){return this.router}get PI(){return this.pi}get SS(){return this.ss}ngOnInit(){if(this.gs.isBrowser){const h=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches;this.gs.isDarkMode=h||"true"===this.ls.getItem(this.gs.localStorageKeys.DarkMode),this.toggleDarkTheme(!0),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",A=>{this.gs.isDarkMode=A.matches,this.toggleDarkTheme(!0)}),this.subsGlobalRoom=this.ss.globalRoom.subscribe({next:A=>{var ce,je;this.myPoints=(null===(je=null===(ce=null==A?void 0:A.member_list[this.ss.mySocket.id])||void 0===ce?void 0:ce.profile_)||void 0===je?void 0:je.points)||0}})}}ngOnDestroy(){var h;null===(h=this.subsGlobalRoom)||void 0===h||h.unsubscribe()}get discordUrl(){return ar.N.discord.join_url}toggleSideNav(){this.lms.onSideNavToggleView()}toggleWeather(){this.gs.weatherToggle(),this.snackBar.open(`Berhasil ${this.gs.weatherRunning?"Menyalakan":"Mematikan"} Efek Musiman`,"Ok")}reloadPage(){this.bs.busy(),window.location.reload()}openSearch(){this.rps.toggleSidePanel("SearchAllComponent")}openLiveChat(){this.rps.toggleSidePanel("LiveChatComponent")}openAdminNavigation(){this.rps.toggleSidePanel("AdminNavigationComponent")}toggleDarkTheme(h=!1){this.gs.toggleDarkTheme(h),this.ls.setItem(this.gs.localStorageKeys.DarkMode,JSON.stringify(this.gs.isDarkMode)),this.pi.updateStatusBarTheme(this.gs.isDarkMode),this.snackBar.open("Menggunakan Mode "+(this.gs.isDarkMode?"Gelap":"Terang"),"Ok")}}return v.\u0275fac=function(h){return new(h||v)(r.Y36(ns.ux),r.Y36(ba.S),r.Y36(Ro.C),r.Y36(Ui.F0),r.Y36(el.Z),r.Y36(Qi.U),r.Y36(to.R),r.Y36(Xs.z),r.Y36(go.n))},v.\u0275cmp=r.Xpm({type:v,selectors:[["app-header"]],decls:20,vars:7,consts:[["color","primary",2,"height","56px","padding","0 12px"],["mat-icon-button","","matTooltip","Menu",3,"click"],["matLine","",1,"text-truncate",2,"margin-left","1rem","margin-right","1rem"],[1,"spacer"],["mat-stroked-button","","matTooltip","Points",4,"ngIf"],["class","animate__animated animate__tada animate__infinite animate__slower","mat-icon-button","","matTooltip","Weather Effect",3,"click",4,"ngIf"],["mat-icon-button","","matTooltip","Ganti Warna",1,"animate__animated","animate__flash","animate__infinite","animate__slower",3,"click"],["mat-icon-button","","matTooltip","Obrolan",3,"click"],["matBadgePosition","before",3,"matBadge","matBadgeColor"],["mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","","matTooltip","Pencarian",1,"animate__animated","animate__heartBeat","animate__infinite","animate__slower",3,"click"],["mat-icon-button","","matTooltip","Refresh",3,"click",4,"ngIf"],["mat-stroked-button","","matTooltip","Points"],[1,"me-1"],["mat-icon-button","","matTooltip","Weather Effect",1,"animate__animated","animate__tada","animate__infinite","animate__slower",3,"click"],["mat-icon-button","",3,"click"],["mat-icon-button","","matTooltip","Refresh",3,"click"]],template:function(h,A){1&h&&(r.TgZ(0,"mat-toolbar",0)(1,"button",1),r.NdJ("click",function(){return A.toggleSideNav()}),r.TgZ(2,"mat-icon"),r._uU(3,"menu"),r.qZA()(),r.TgZ(4,"span",2),r._uU(5),r.qZA(),r._UZ(6,"span",3),r.YNc(7,lc,4,1,"button",4),r.YNc(8,cc,3,0,"button",5),r.TgZ(9,"button",6),r.NdJ("click",function(){return A.toggleDarkTheme()}),r.TgZ(10,"mat-icon"),r._uU(11,"nights_stay"),r.qZA()(),r.TgZ(12,"button",7),r.NdJ("click",function(){return A.openLiveChat()}),r.TgZ(13,"mat-icon",8),r._uU(14," forum "),r.qZA()(),r.YNc(15,dc,3,0,"button",9),r.TgZ(16,"button",10),r.NdJ("click",function(){return A.openSearch()}),r.TgZ(17,"mat-icon"),r._uU(18,"search"),r.qZA()(),r.YNc(19,Po,3,0,"button",11),r.qZA()),2&h&&(r.xp6(5),r.hij(" ",A.PI.getTitle," "),r.xp6(2),r.Q6J("ngIf",A.ROUTER.url.includes("/nihongo")),r.xp6(1),r.Q6J("ngIf",A.GS.weatherEffect),r.xp6(5),r.Q6J("matBadge",A.SS.messageChatUnreadCount)("matBadgeColor","warn"),r.xp6(2),r.Q6J("ngIf",A.ROUTER.url.includes("/admin-mod/")),r.xp6(4),r.Q6J("ngIf",!(null!=A.SS.mySocket&&A.SS.mySocket.id)))},directives:[Cr.Ye,Ca.lW,cs.gM,Io.Hw,xa.X2,O.O5,io.k],styles:[""]}),v})();var ko=a(2638),ro=a(4623),uc=a(4834),rl=a(2368);function Da(v,xe){1&v&&r._UZ(0,"div")}function Fo(v,xe){if(1&v){const h=r.EpF();r.TgZ(0,"a",12),r.NdJ("click",function(){return r.CHM(h),r.oxw().forceCloseSideNav()}),r._UZ(1,"img",13),r.TgZ(2,"span",14),r._uU(3),r._UZ(4,"br"),r._uU(5),r.qZA()(),r.TgZ(6,"a",15),r.NdJ("click",function(){return r.CHM(h),r.oxw().logout()}),r.TgZ(7,"mat-icon",8),r._uU(8,"power_settings_new"),r.qZA(),r.TgZ(9,"span",9),r._uU(10,"Keluar"),r.qZA()()}if(2&v){const h=r.oxw();r.xp6(1),r.s9C("src",null==h.AS.currentUserSubject||null==h.AS.currentUserSubject.value?null:h.AS.currentUserSubject.value.image_url,r.LSH),r.xp6(1),r.Q6J("@animateText",h.linkText?"show":"hide"),r.xp6(1),r.hij(" ",null==h.AS.currentUserSubject||null==h.AS.currentUserSubject.value?null:h.AS.currentUserSubject.value.kartu_tanda_penduduk_.nama," "),r.xp6(2),r.hij(" ",null==h.AS.currentUserSubject||null==h.AS.currentUserSubject.value?null:h.AS.currentUserSubject.value._email," "),r.xp6(4),r.Q6J("@animateText",h.linkText?"show":"hide")}}function sl(v,xe){if(1&v){const h=r.EpF();r.TgZ(0,"a",16),r.NdJ("click",function(){return r.CHM(h),r.oxw().forceCloseSideNav()}),r.TgZ(1,"mat-icon",8),r._uU(2,"login"),r.qZA(),r.TgZ(3,"span",9),r._uU(4,"Masuk"),r.qZA()(),r.TgZ(5,"a",17),r.NdJ("click",function(){return r.CHM(h),r.oxw().forceCloseSideNav()}),r.TgZ(6,"mat-icon",8),r._uU(7,"group_add"),r.qZA(),r.TgZ(8,"span",9),r._uU(9,"Daftar"),r.qZA()()}if(2&v){const h=r.oxw();r.xp6(3),r.Q6J("@animateText",h.linkText?"show":"hide"),r.xp6(5),r.Q6J("@animateText",h.linkText?"show":"hide")}}function hc(v,xe){if(1&v){const h=r.EpF();r.TgZ(0,"a",18),r.NdJ("click",function(){return r.CHM(h),r.oxw().forceCloseSideNav()}),r.TgZ(1,"mat-icon",19),r._uU(2),r.qZA(),r.TgZ(3,"span",9),r._uU(4),r.qZA()()}if(2&v){const h=xe.$implicit,A=r.oxw();r.s9C("routerLink",h.link),r.xp6(1),r.Q6J("matBadge",h.badge),r.xp6(1),r.Oqu(h.icon),r.xp6(1),r.Q6J("@animateText",A.linkText?"show":"hide"),r.xp6(1),r.Oqu(h.name)}}function fc(v,xe){if(1&v){const h=r.EpF();r.TgZ(0,"a",18),r.NdJ("click",function(){return r.CHM(h),r.oxw().forceCloseSideNav()}),r.TgZ(1,"mat-icon",19),r._uU(2),r.qZA(),r.TgZ(3,"span",9),r._uU(4),r.qZA()()}if(2&v){const h=xe.$implicit,A=r.oxw();r.s9C("routerLink",h.link),r.xp6(1),r.Q6J("matBadge",h.badge),r.xp6(1),r.Oqu(h.icon),r.xp6(1),r.Q6J("@animateText",A.linkText?"show":"hide"),r.xp6(1),r.Oqu(h.name)}}function so(v,xe){if(1&v){const h=r.EpF();r.TgZ(0,"a",18),r.NdJ("click",function(){return r.CHM(h),r.oxw().forceCloseSideNav()}),r.TgZ(1,"mat-icon",19),r._uU(2),r.qZA(),r.TgZ(3,"span",9),r._uU(4),r.qZA()()}if(2&v){const h=xe.$implicit,A=r.oxw();r.s9C("routerLink",h.link),r.xp6(1),r.Q6J("matBadge",h.badge),r.xp6(1),r.Oqu(h.icon),r.xp6(1),r.Q6J("@animateText",A.linkText?"show":"hide"),r.xp6(1),r.Oqu(h.name)}}function vo(v,xe){if(1&v){const h=r.EpF();r.TgZ(0,"a",18),r.NdJ("click",function(){return r.CHM(h),r.oxw().forceCloseSideNav()}),r.TgZ(1,"mat-icon",19),r._uU(2),r.qZA(),r.TgZ(3,"span",9),r._uU(4),r.qZA()()}if(2&v){const h=xe.$implicit,A=r.oxw();r.s9C("routerLink",h.link),r.xp6(1),r.Q6J("matBadge",h.badge),r.xp6(1),r.Oqu(h.icon),r.xp6(1),r.Q6J("@animateText",A.linkText?"show":"hide"),r.xp6(1),r.Oqu(h.name)}}const pc=function(v){return{"overflow-y":v}};let Ju=(()=>{class v{constructor(h,A,ce,je,It,Vt){this.router=h,this.lms=A,this.as=ce,this.gs=je,this.ds=It,this.ls=Vt,this.subsDialog=null}get AS(){return this.as}get GS(){return this.gs}get mainMenus(){return this.lms.mainMenus}get contentMenus(){return this.lms.contentMenus}get miscMenus(){return this.lms.miscMenus}get otherMenus(){return this.lms.otherMenus}ngOnDestroy(){var h;null===(h=this.subsDialog)||void 0===h||h.unsubscribe()}ngOnInit(){}get sideNavExpanded(){return this.lms.sideNavExpanded}get linkText(){return this.lms.linkText}onMouseHoverIn(){this.gs.isDesktop&&this.lms.onMouseHoverIn()}onMouseHoverOut(){this.gs.isDesktop&&this.lms.onMouseHoverOut()}forceCloseSideNav(){this.lms.forceCloseSideNav()}logout(){this.as.logout()}openDocumentation(){this.forceCloseSideNav(),this.router.navigateByUrl("/docs")}openWebTorrent(){this.forceCloseSideNav(),this.gs.isDesktop?this.router.navigateByUrl("/torrent"):this.subsDialog=this.ds.openInfoDialog({data:{title:".: Web-Torrent :.",htmlMessage:"Fitur Ini Tergolong Cukup Berat Karena Dikhususkan Untuk Pengguna Desktop, Akan Ada Kemungkinan Juga Tampilan Menjadi Berantakan, Yakin Ingin Melanjutkan ?",confirmText:"Ya, Lanjutkan",cancelText:"Tidak, Batal"},disableClose:!1}).afterClosed().subscribe({next:h=>{this.gs.log("[INFO_DIALOG_CLOSED]",h),!0===h&&this.router.navigateByUrl("/torrent"),this.subsDialog.unsubscribe()}})}toggleDebugLog(h){this.gs.forceEnableDebugLog=h.checked,this.ls.setItem(this.gs.localStorageKeys.DebugLogs,JSON.stringify(h.checked))}}return v.\u0275fac=function(h){return new(h||v)(r.Y36(Ui.F0),r.Y36(ba.S),r.Y36(To.e),r.Y36(Qi.U),r.Y36(no.x),r.Y36(go.n))},v.\u0275cmp=r.Xpm({type:v,selectors:[["app-left-menu"]],decls:35,vars:14,consts:[[1,"sidenav_container",3,"ngStyle","mouseenter","mouseleave"],["fxLayout","column"],[4,"ngIf","ngIfThen","ngIfElse"],["sudahLogin",""],["belumLogin",""],[2,"margin-top","8px"],["mat-list-item","","routerLinkActive","side-menu-link-active",3,"routerLink","click",4,"ngFor","ngForOf"],["mat-list-item","","routerLinkActive","side-menu-link-active",3,"click"],[2,"padding-left","0.2em"],[2,"padding-left","1.75em","padding-right","0.2em"],[2,"right","1em !important","position","absolute"],[3,"ngModel","ngModelChange","click","change"],["mat-list-item","","routerLink","/user","routerLinkActive","side-menu-link-active",3,"click"],[1,"jim",3,"src"],[1,"text-truncate",2,"padding-left","1.2em","padding-right","0.2em"],["mat-list-item","",3,"click"],["mat-list-item","","routerLink","/login","routerLinkActive","side-menu-link-active",3,"click"],["mat-list-item","","routerLink","/register","routerLinkActive","side-menu-link-active",3,"click"],["mat-list-item","","routerLinkActive","side-menu-link-active",3,"routerLink","click"],["matBadgeColor","warn","matBadgePosition","before",2,"padding-left","0.2em",3,"matBadge"]],template:function(h,A){if(1&h&&(r.TgZ(0,"div",0),r.NdJ("mouseenter",function(){return A.onMouseHoverIn()})("mouseleave",function(){return A.onMouseHoverOut()}),r.TgZ(1,"div",1)(2,"mat-nav-list"),r.YNc(3,Da,1,0,"div",2),r.YNc(4,Fo,11,5,"ng-template",null,3,r.W1O),r.YNc(6,sl,10,2,"ng-template",null,4,r.W1O),r.qZA(),r._UZ(8,"mat-divider",5),r.TgZ(9,"mat-nav-list"),r.YNc(10,hc,5,5,"a",6),r.qZA(),r._UZ(11,"mat-divider",5),r.TgZ(12,"mat-nav-list"),r.YNc(13,fc,5,5,"a",6),r.qZA(),r._UZ(14,"mat-divider",5),r.TgZ(15,"mat-nav-list")(16,"a",7),r.NdJ("click",function(){return A.openWebTorrent()}),r.TgZ(17,"mat-icon",8),r._uU(18,"sailing"),r.qZA(),r.TgZ(19,"span",9),r._uU(20,"Web Torrent"),r.qZA()(),r.YNc(21,so,5,5,"a",6),r.qZA(),r._UZ(22,"mat-divider",5),r.TgZ(23,"mat-nav-list"),r.YNc(24,vo,5,5,"a",6),r.qZA(),r._UZ(25,"mat-divider",5),r.TgZ(26,"mat-nav-list")(27,"a",7),r.NdJ("click",function(){return A.openDocumentation()}),r.TgZ(28,"mat-icon",8),r._uU(29,"settings_ethernet"),r.qZA(),r.TgZ(30,"span",9),r._uU(31," Dev. Mode "),r.TgZ(32,"span",10)(33,"mat-slide-toggle",11),r.NdJ("ngModelChange",function(je){return A.GS.forceEnableDebugLog=je})("click",function(je){return je.stopPropagation()})("change",function(je){return A.toggleDebugLog(je)}),r.qZA()()()()(),r._UZ(34,"div",5),r.qZA()()),2&h){const ce=r.MAs(5),je=r.MAs(7);r.Q6J("@onSideNavChange",A.sideNavExpanded?"open":"close")("ngStyle",r.VKq(12,pc,A.sideNavExpanded?"auto":"hidden")),r.xp6(3),r.Q6J("ngIf",null==A.AS.currentUserSubject?null:A.AS.currentUserSubject.value)("ngIfThen",ce)("ngIfElse",je),r.xp6(7),r.Q6J("ngForOf",A.mainMenus),r.xp6(3),r.Q6J("ngForOf",A.contentMenus),r.xp6(6),r.Q6J("@animateText",A.linkText?"show":"hide"),r.xp6(2),r.Q6J("ngForOf",A.miscMenus),r.xp6(3),r.Q6J("ngForOf",A.otherMenus),r.xp6(6),r.Q6J("@animateText",A.linkText?"show":"hide"),r.xp6(3),r.Q6J("ngModel",A.GS.forceEnableDebugLog)}},directives:[O.PC,ro.Hk,O.O5,ro.Tg,Ui.yS,Ui.Od,Io.Hw,uc.d,O.sg,io.k,rl.Rr,wr.JJ,wr.On],styles:[".sidenav_container[_ngcontent-%COMP%]{min-width:64px!important;max-width:320px;height:calc(100vh - 88px)}.jim[_ngcontent-%COMP%]{width:32px;height:32px;object-fit:cover;border-radius:50%}.side-menu-link-active[_ngcontent-%COMP%]{background:rgba(255,64,129,.15);color:#ff4081!important;font-weight:700}.mat-list-item-content[_ngcontent-%COMP%]{padding:0!important}"],data:{animation:[mo,Oo]}}),v})();function ol(v,xe){1&v&&r.GkF(0,4)}let gc=(()=>{class v{constructor(h,A){this.rps=h,this.gs=A}get RPS(){return this.rps}ngOnInit(){}}return v.\u0275fac=function(h){return new(h||v)(r.Y36(Ro.C),r.Y36(Qi.U))},v.\u0275cmp=r.Xpm({type:v,selectors:[["app-right-panel"]],decls:4,vars:1,consts:[[1,"sidepanel_container","p-3"],[1,"row"],[1,"col-12"],["ngIf","rps.component",4,"ngComponentOutlet"],["ngIf","rps.component"]],template:function(h,A){1&h&&(r.TgZ(0,"div",0)(1,"div",1)(2,"div",2),r.YNc(3,ol,1,0,"ng-container",3),r.qZA()()()),2&h&&(r.xp6(3),r.Q6J("ngComponentOutlet",A.RPS.componentView))},directives:[O.$G,O.O5],styles:[".sidepanel_container[_ngcontent-%COMP%]{max-width:320px}.mat-list-item-content[_ngcontent-%COMP%]{padding:0!important}"]}),v})(),qu=(()=>{class v{constructor(h,A){this.fs=h,this.gs=A}ngOnInit(){}get isHidden(){return this.fs.isHidden}get tooltipText(){return this.fs.tooltipText}get backgroundImage(){return this.fs.backgroundImage}get backgroundIcon(){return this.fs.backgroundIcon}buttonClicked(){this.fs.buttonClicked()}}return v.\u0275fac=function(h){return new(h||v)(r.Y36(tl.r),r.Y36(Qi.U))},v.\u0275cmp=r.Xpm({type:v,selectors:[["app-material-fab"]],decls:3,vars:6,consts:[["mat-fab","","color","warn",1,"me-3","mb-5","fab-button","animate__animated","animate__bounce","animate__infinite","animate__slow",3,"matTooltip","click"]],template:function(h,A){1&h&&(r.TgZ(0,"button",0),r.NdJ("click",function(){return A.buttonClicked()}),r.TgZ(1,"mat-icon"),r._uU(2),r.qZA()()),2&h&&(r.Udp("display",A.isHidden?"none":"")("background-image",A.backgroundImage?"url("+A.backgroundImage+")":""),r.s9C("matTooltip",A.tooltipText),r.xp6(2),r.Oqu(A.backgroundIcon))},directives:[Ca.lW,cs.gM,Io.Hw],styles:[".fab-button[_ngcontent-%COMP%]{z-index:9999;position:fixed;bottom:0;right:0;background-size:contain;background-position:center}"]}),v})();function mc(v,xe){1&v&&r.GkF(0)}function _c(v,xe){if(1&v&&(r.ynx(0),r._uU(1),r.BQk()),2&v){const h=r.oxw(2).$implicit;r.xp6(1),r.Oqu(h.label)}}const vc=function(v){return{"xng-breadcrumb-link-disabled":v}},yo=function(v,xe,h,A,ce,je){return{$implicit:v,info:xe,last:h,first:A,index:ce,count:je}};function Ea(v,xe){if(1&v&&(r.TgZ(0,"a",7),r.YNc(1,mc,1,0,"ng-container",8),r.YNc(2,_c,2,1,"ng-container",9),r.qZA()),2&v){const h=r.oxw(),A=h.$implicit,ce=h.last,je=h.first,It=h.index,Vt=h.count,Un=r.oxw();r.Q6J("ngClass",r.VKq(10,vc,A.disable))("routerLink",A.routeInterceptor?A.routeInterceptor(A.routeLink,A):A.routeLink)("queryParams",Un.preserveQueryParams?A.queryParams:void 0)("fragment",Un.preserveFragment?A.fragment:void 0)("target",Un.anchorTarget?Un.anchorTarget:"_self"),r.uIk("aria-disabled",A.disable)("tabIndex",A.disable?-1:0),r.xp6(1),r.Q6J("ngTemplateOutlet",Un.itemTemplate)("ngTemplateOutletContext",r.HTZ(12,yo,A.label,A.info,ce,je,It,Vt)),r.xp6(1),r.Q6J("ngIf",!Un.itemTemplate)}}function oo(v,xe){1&v&&r.GkF(0)}function yc(v,xe){if(1&v&&(r.ynx(0),r._uU(1),r.BQk()),2&v){const h=r.oxw(2).$implicit;r.xp6(1),r.Oqu(h.label)}}function bc(v,xe){if(1&v&&(r.TgZ(0,"label",10),r.YNc(1,oo,1,0,"ng-container",8),r.YNc(2,yc,2,1,"ng-container",9),r.qZA()),2&v){const h=r.oxw(),A=h.$implicit,ce=h.last,je=h.first,It=h.index,Vt=h.count,Un=r.oxw();r.xp6(1),r.Q6J("ngTemplateOutlet",Un.itemTemplate)("ngTemplateOutletContext",r.HTZ(3,yo,A.label,A.info,ce,je,It,Vt)),r.xp6(1),r.Q6J("ngIf",!Un.itemTemplate)}}function Xu(v,xe){1&v&&r.GkF(0)}function Lo(v,xe){if(1&v&&(r.ynx(0),r._uU(1),r.BQk()),2&v){const h=r.oxw(3);r.xp6(1),r.Oqu(h.separator)}}function Ma(v,xe){if(1&v&&(r.TgZ(0,"li",11),r.YNc(1,Xu,1,0,"ng-container",12),r.YNc(2,Lo,2,1,"ng-container",9),r.qZA()),2&v){const h=r.oxw(2);r.xp6(1),r.Q6J("ngTemplateOutlet",h.separatorTemplate),r.xp6(1),r.Q6J("ngIf",!h.separatorTemplate)}}function al(v,xe){if(1&v&&(r.ynx(0),r.TgZ(1,"li",3),r.YNc(2,Ea,3,19,"a",4),r.YNc(3,bc,3,10,"label",5),r.qZA(),r.YNc(4,Ma,3,2,"li",6),r.BQk()),2&v){const h=xe.last;r.xp6(2),r.Q6J("ngIf",!h),r.xp6(1),r.Q6J("ngIf",h),r.xp6(1),r.Q6J("ngIf",!h)}}let ll=(()=>{class v{}return v.\u0275fac=function(h){return new(h||v)},v.\u0275dir=r.lG2({type:v,selectors:[["","xngBreadcrumbItem",""]]}),v})();const cl=v=>v&&Object.keys(v).length>0;let Cc=(()=>{class v{constructor(h,A){this.activatedRoute=h,this.router=A,this.baseHref="/",this.dynamicBreadcrumbStore=[],this.currentBreadcrumbs=[],this.previousBreadcrumbs=[],this.breadcrumbs=new ee.X([]),this.breadcrumbs$=this.breadcrumbs.asObservable(),this.detectRouteChanges()}detectRouteChanges(){this.setupBreadcrumbs(this.activatedRoute.snapshot),this.router.events.pipe((0,o.h)(h=>h instanceof Ui.c9)).subscribe(h=>{h instanceof Ui.c9&&h.shouldActivate&&this.setupBreadcrumbs(h.state.root)})}setupBreadcrumbs(h){this.previousBreadcrumbs=this.currentBreadcrumbs;const A=this.getRootBreadcrumb();this.currentBreadcrumbs=A?[A]:[],this.prepareBreadcrumbList(h,this.baseHref)}getRootBreadcrumb(){var h;const A=this.router.config.find(It=>""===It.path),ce=this.extractObject(null===(h=null==A?void 0:A.data)||void 0===h?void 0:h.breadcrumb),je=this.getFromStore(ce.alias,"/");if(cl(ce)||cl(je))return Object.assign(Object.assign(Object.assign(Object.assign({},je),ce),{routeLink:this.baseHref}),this.getQueryParamsFromPreviousList("/"))}prepareBreadcrumbItem(h,A){const{path:ce,breadcrumb:je}=this.parseRouteData(h.routeConfig),It=this.resolvePathSegment(ce,h),Vt=`${A}${It}`,Un=this.getFromStore(je.alias,Vt),Di=this.extractLabel((null==Un?void 0:Un.label)||(null==je?void 0:je.label),It);let Tr=!1,lr="";return Di||(Tr=!0,lr=It),Object.assign(Object.assign(Object.assign(Object.assign({},Un),je),{label:Tr?lr:Di,routeLink:Vt,isAutoGeneratedLabel:Tr}),this.getQueryParamsFromPreviousList(Vt))}prepareBreadcrumbList(h,A){var ce;if(null===(ce=h.routeConfig)||void 0===ce?void 0:ce.path){const Vt=this.prepareBreadcrumbItem(h,A);if(this.currentBreadcrumbs.push(Vt),h.firstChild)return this.prepareBreadcrumbList(h.firstChild,Vt.routeLink+"/")}else if(h.firstChild)return this.prepareBreadcrumbList(h.firstChild,A);this.setQueryParamsForActiveBreadcrumb(this.currentBreadcrumbs[this.currentBreadcrumbs.length-1],h);const It=this.currentBreadcrumbs.filter(Vt=>!Vt.skip);this.breadcrumbs.next(It)}getFromStore(h,A){return this.dynamicBreadcrumbStore.find(ce=>h&&h===ce.alias||A&&A===ce.routeLink||this.matchRegex(A,ce.routeRegex))}matchRegex(h,A){const ce=h.match(new RegExp(A));return(null==ce?void 0:ce[0])===h}resolvePathSegment(h,A){return h.includes(":")&&Object.entries(A.params).forEach(([ce,je])=>{h=h.replace(`:${ce}`,`${je}`)}),h}getQueryParamsFromPreviousList(h){const{queryParams:A,fragment:ce}=this.previousBreadcrumbs.find(je=>je.routeLink===h)||{};return{queryParams:A,fragment:ce}}setQueryParamsForActiveBreadcrumb(h,A){if(h){const{queryParams:ce,fragment:je}=A;h.queryParams=ce?Object.assign({},ce):void 0,h.fragment=je}}parseRouteData(h){const{path:A,data:ce}=h;return{path:A,breadcrumb:this.mergeWithBaseChildData(h,null==ce?void 0:ce.breadcrumb)}}mergeWithBaseChildData(h,A){var ce;if(!h)return this.extractObject(A);let je;h.loadChildren?je=h._loadedConfig.routes.find(Vt=>""===Vt.path):h.children&&(je=h.children.find(Vt=>""===Vt.path));const It=null===(ce=null==je?void 0:je.data)||void 0===ce?void 0:ce.breadcrumb;return It?this.mergeWithBaseChildData(je,Object.assign(Object.assign({},this.extractObject(A)),this.extractObject(It))):this.extractObject(A)}set(h,A){const ce=this.extractObject(A);let je;je=h.startsWith("@")?["alias",Object.assign(Object.assign({},ce),{alias:h.slice(1)})]:h.includes(":")?["routeRegex",Object.assign(Object.assign({},ce),{routeRegex:this.buildRegex(h)})]:["routeLink",Object.assign(Object.assign({},ce),{routeLink:this.ensureLeadingSlash(h)})],je[1].isAutoGeneratedLabel=!1,this.updateStore(...je),this.updateCurrentBreadcrumbs(...je)}updateStore(h,A){const ce=this.dynamicBreadcrumbStore.findIndex(je=>A[h]===je[h]);ce>-1?this.dynamicBreadcrumbStore[ce]=Object.assign(Object.assign({},this.dynamicBreadcrumbStore[ce]),A):this.dynamicBreadcrumbStore.push(Object.assign({},A))}updateCurrentBreadcrumbs(h,A){const ce=this.currentBreadcrumbs.findIndex(je=>"routeRegex"===h?this.matchRegex(je.routeLink,A[h]):A[h]===je[h]);if(ce>-1){this.currentBreadcrumbs[ce]=Object.assign(Object.assign({},this.currentBreadcrumbs[ce]),A);const je=this.currentBreadcrumbs.filter(It=>!It.skip);this.breadcrumbs.next([...je])}}buildRegex(h){return this.ensureLeadingSlash(h).replace(new RegExp("/:[^/]+","g"),"/[^/]+")}ensureLeadingSlash(h){return h.startsWith("/")?h:`/${h}`}extractLabel(h,A){const ce="object"==typeof h?h.label:h;return"function"==typeof ce?ce(A):ce}extractObject(h){return!h||"string"!=typeof h&&"function"!=typeof h?h||{}:{label:h}}}return v.\u0275fac=function(h){return new(h||v)(r.LFG(Ui.gz),r.LFG(Ui.F0))},v.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),v})(),xc=(()=>{class v{constructor(h,A){this.breadcrumbService=h,this._separator="/",this.autoGenerate=!0,this.preserveQueryParams=!0,this.preserveFragment=!0,this.class="",this.setupMessage="not set up yet",this.someParameterValue=null,A.params.subscribe(ce=>{this.setupComponent(ce.someParam)})}set separator(h){h instanceof r.Rgc?(this.separatorTemplate=h,this._separator=void 0):(this.separatorTemplate=void 0,this._separator=h||"/")}get separator(){return this._separator}setupComponent(h){this.setupMessage="set up at "+new Date,this.someParameterValue=h}ngOnInit(){this.breadcrumbs$=this.breadcrumbService.breadcrumbs$.pipe((0,Zi.U)(h=>h.filter(A=>!!this.autoGenerate||!A.isAutoGeneratedLabel).map(A=>{const{routeInterceptor:ce,routeLink:je}=A;return Object.assign(Object.assign({},A),{routeLink:(null==ce?void 0:ce(je,A))||je})})))}}return v.\u0275fac=function(h){return new(h||v)(r.Y36(Cc),r.Y36(Ui.gz))},v.\u0275cmp=r.Xpm({type:v,selectors:[["xng-breadcrumb"]],contentQueries:function(h,A,ce){if(1&h&&r.Suo(ce,ll,5,r.Rgc),2&h){let je;r.iGM(je=r.CRH())&&(A.itemTemplate=je.first)}},inputs:{autoGenerate:"autoGenerate",preserveQueryParams:"preserveQueryParams",preserveFragment:"preserveFragment",class:"class",anchorTarget:"anchorTarget",separator:"separator"},decls:4,vars:4,consts:[["aria-label","breadcrumb",1,"xng-breadcrumb-root",3,"ngClass"],[1,"xng-breadcrumb-list"],[4,"ngFor","ngForOf"],[1,"xng-breadcrumb-item"],["class","xng-breadcrumb-link","role","button","rel","noopener noreferrer",3,"ngClass","routerLink","queryParams","fragment","target",4,"ngIf"],["class","xng-breadcrumb-trail",4,"ngIf"],["class","xng-breadcrumb-separator","aria-hidden","true","role","separator",4,"ngIf"],["role","button","rel","noopener noreferrer",1,"xng-breadcrumb-link",3,"ngClass","routerLink","queryParams","fragment","target"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngIf"],[1,"xng-breadcrumb-trail"],["aria-hidden","true","role","separator",1,"xng-breadcrumb-separator"],[4,"ngTemplateOutlet"]],template:function(h,A){1&h&&(r.TgZ(0,"nav",0)(1,"ol",1),r.YNc(2,al,5,3,"ng-container",2),r.ALo(3,"async"),r.qZA()()),2&h&&(r.Q6J("ngClass",A.class),r.xp6(2),r.Q6J("ngForOf",r.lcZ(3,2,A.breadcrumbs$)))},directives:[O.mk,O.sg,O.O5,Ui.yS,O.tP],pipes:[O.Ov],styles:[".xng-breadcrumb-root{margin:0;color:#0009}.xng-breadcrumb-list{display:flex;align-items:center;flex-wrap:wrap;margin:0;padding:0}.xng-breadcrumb-item{list-style:none}.xng-breadcrumb-trail{display:flex;align-items:center;color:#000000e6}.xng-breadcrumb-link{display:flex;align-items:center;white-space:nowrap;color:inherit;text-decoration:none;transition:-webkit-text-decoration .3s;transition:text-decoration .3s;transition:text-decoration .3s,-webkit-text-decoration .3s;cursor:pointer}.xng-breadcrumb-link:hover{text-decoration:underline}.xng-breadcrumb-link-disabled{pointer-events:none;cursor:disabled}.xng-breadcrumb-separator{display:flex;-webkit-user-select:none;user-select:none;margin-left:8px;margin-right:8px}\n"],encapsulation:2}),v})(),Dc=(()=>{class v{}return v.\u0275fac=function(h){return new(h||v)},v.\u0275mod=r.oAB({type:v}),v.\u0275inj=r.cJS({imports:[[O.ez,Ui.Bz]]}),v})(),Ec=(()=>{class v{constructor(h,A,ce){this.gs=h,this.ss=A,this.wb=ce}get SS(){return this.ss}ngOnInit(){}get discordUrl(){return ar.N.discord.join_url}get author(){return ar.N.author}get siteName(){return ar.N.siteName}openGithub(){this.wb.winboxOpenUri(`https://github.com/${this.author}/${this.siteName}`)}}return v.\u0275fac=function(h){return new(h||v)(r.Y36(Qi.U),r.Y36(to.R),r.Y36(nl.N))},v.\u0275cmp=r.Xpm({type:v,selectors:[["app-footer"]],decls:14,vars:6,consts:[["color","primary",2,"height","32px","padding","0 12px"],[2,"font-size","small"],[2,"text-decoration","none","color","whitesmoke","cursor","pointer",3,"click"],[2,"display","inline-block","transform","rotateY(180deg)"],[2,"display","inline-block"],[1,"spacer","px-1"],["target","_blank",2,"text-decoration","none","color","whitesmoke",3,"href"]],template:function(h,A){1&h&&(r.TgZ(0,"mat-toolbar",0)(1,"span",1)(2,"div",2),r.NdJ("click",function(){return A.openGithub()}),r.TgZ(3,"div",3),r._uU(4,"\xa9"),r.qZA(),r.TgZ(5,"div",4),r._uU(6),r.ALo(7,"slice"),r.qZA()()(),r._UZ(8,"span",5)(9,"xng-breadcrumb")(10,"span",5),r.TgZ(11,"span",1)(12,"a",6),r._uU(13," With \u{1f498} Just For You~ "),r.qZA()()()),2&h&&(r.xp6(6),r.hij("\xa0 2013 | ",r.Dn7(7,2,null==A.SS.github?null:A.SS.github.sha,0,7),""),r.xp6(6),r.s9C("href",A.discordUrl,r.LSH))},directives:[Cr.Ye,xc],pipes:[O.OU],styles:[""]}),v})();const fs=["leftSideNav"],ao=["rightSidePanel"],dl=["siteContent"],ul=function(v){return{"background-image":v}};let Mc=(()=>{class v{constructor(h,A,ce,je,It,Vt,Un,Di,Tr,lr,No,Uo,Aa,js,Ho,tr,ps){this.snackBar=h,this.renderer=A,this.router=ce,this.route=je,this.bs=It,this.pi=Vt,this.as=Un,this.fs=Di,this.ls=Tr,this.gs=lr,this.lms=No,this.rps=Uo,this.ss=Aa,this.wb=js,this.ds=Ho,this.sw=tr,this.viewer=ps,this.subsRouter=null,this.subsRouterChild=null,this.subsUrl=null,this.subsVerify=null,this.subsDialog=null,this.timedOut=null}get sideNavType(){return this.gs.isDesktop?"side":"over"}onResize(h){this.gs.onResize(h)}get ROUTER(){return this.router}get GS(){return this.gs}get LMS(){return this.lms}get RPS(){return this.rps}ngOnDestroy(){var h,A,ce,je,It;null===(h=this.subsRouter)||void 0===h||h.unsubscribe(),null===(A=this.subsRouterChild)||void 0===A||A.unsubscribe(),null===(ce=this.subsUrl)||void 0===ce||ce.unsubscribe(),null===(je=this.subsVerify)||void 0===je||je.unsubscribe(),null===(It=this.subsDialog)||void 0===It||It.unsubscribe(),this.timedOut&&(clearTimeout(this.timedOut),this.timedOut=null)}ngAfterViewInit(){if(this.lms.sideNav=this.leftSideNav,this.rps.sidePanel=this.rightSidePanel,this.gs.isBrowser){const h=this.renderer.selectRootElement("#app-loading");h&&(h.style.visibility="hidden",h.style.opacity=0)}}ngOnInit(){var h=this;this.gs.log(`[APP_BUILD_STATUS] \u{1f498} ${ar.N.siteName} :: ${ar.N.production?"Production":"Development"} With Logging Enabled \u{1f4cc}`),this.gs.log(`[SERVICE_WORKER_STATUS] \u{1f498} isEnabled :: ${this.sw.swEnabled} \u{1f4cc}`),this.pi.updatePageMetaData(`\u300c\u{1f4a4} ${ar.N.siteName}\u300d`,`\u300c\u2728 ${ar.N.siteDescription}\u300d`,`\u300c\u{1f4a4} ${ar.N.siteName} \u2728\u{1f31e}\u300d`,`${ar.N.baseUrl}/assets/img/favicon.png`),this.subsRouter=this.router.events.subscribe({next:A=>{if(A instanceof Ui.xV)this.gs.isBrowser&&this.bs.busy();else if(A instanceof Ui.GH)this.gs.isBrowser&&this.bs.idle();else if(A instanceof Ui.OD){if(this.gs.isBrowser&&A.url){const ce=A.url.split("/")[1];if(ce){const je=`badge${ce[0].toUpperCase()}${ce.slice(1)}`;if(this.ss[je]){this.ss[je]=[];const It=this.lms.mainMenus.find(Di=>Di.link===A.url),Vt=this.lms.contentMenus.find(Di=>Di.link===A.url),Un=this.lms.miscMenus.find(Di=>Di.link===A.url);It&&(It.badge=null),Vt&&(Vt.badge=null),Un&&(Un.badge=null)}}this.gs.previousUrl=this.router.url.split("?")[0]}}else if(A instanceof Ui.m2){let ce=this.route.firstChild;for(const je of ce.children)ce=je;this.subsRouterChild=ce.data.subscribe({next:je=>{if(this.updateBackgroundImage(),this.gs.routerData=je,this.pi.updatePageMetaData(je.title,je.description,je.keywords,this.gs.bgImgUrl||`${ar.N.baseUrl}/assets/img/favicon.png`),this.fs.removeFab(),this.gs.isBrowser){this.siteContent&&(this.siteContent.elementRef.nativeElement.scrollTop=0);const It=A.url.split("?")[0];this.gs.previousUrl!==It&&(this.ss.currentChatRoom=[]),this.ss.socketLeaveAndJoinNewRoom(this.gs.previousUrl,It)}}})}}}),this.gs.isBrowser&&(this.checkStorage(),this.windowRightClick=this.onWindowRightClick,this.windowLeftClick=this.onWindowLeftClick,this.windowDoubleClick=this.onWindowDoubleClick,this.windowBeforeUnloaded=this.onWindowBeforeUnloaded,this.timedOut=setTimeout((0,So.Z)(function*(){if("true"!==h.ls.getItem(h.gs.localStorageKeys.AturanTatib)){const ce={id:"ATURAN-TATA-TERTIB",data:{title:"Aturan Dan Tata Tertib Komunitas",htmlMessage:"Gagal Memuat Aturan Dan Tata Tertib Komunitas",confirmText:"Ok, Saya Mengerti!",cancelText:null},disableClose:!1,maxWidth:h.ds.maxWidth};h.subsDialog=(yield h.ds.fetchInformationRegisterMode(ce)).afterClosed().subscribe({next:je=>{h.gs.log("[ATURAN_TATA_TERTIB_DIALOG_CLOSED]",je),"boolean"==typeof je&&h.ls.setItem(h.gs.localStorageKeys.AturanTatib,JSON.stringify(je)),h.subsDialog.unsubscribe()}})}h.injectServerTimeClock(),h.gs.weatherEffect&&h.snackBar.open("Gunakan Menu Di Kanan Atas (Gambar Bunga) Untuk Mematikan Animasi Efek Musiman!","Ok")}),1234))}updateBackgroundImage(){const h=this.router.url.substring(1).split("/")[0].split("?")[0];this.gs.bgImgUrlPath=h?`/assets/img/router/${h}.png`:""}checkStorage(){this.bs.busy(),this.subsVerify=this.as.verify(this.as.token).subscribe({next:h=>{this.gs.log("[VERIFY_SUCCESS]",h),this.ss.socketLeaveAndJoinNewRoom(this.gs.previousUrl,this.router.url),this.bs.idle()},error:h=>{this.gs.log("[VERIFY_ERROR]",h,"error"),this.bs.idle(),this.as.removeUser()}})}resetLoading(){this.bs.clear()}onWindowRightClick(h){this.gs.log("[MOUSE_RIGHT_CLICK]",h)}onWindowLeftClick(h){this.gs.log("[MOUSE_LEFT_CLICK]",h);const A=h||window.event,ce=A.target||A.srcElement;if("A"===ce.tagName||"a"===ce.tagName){const je=ce.getAttribute("href");if(je&&this.gs.isDesktop&&this.gs.includesOneOf(je,["http","ftp","mailto"])&&!je.includes(ar.N.baseUrl))return A.preventDefault(),A.stopPropagation(),this.winboxOpenUri(je),!1}return!0}onWindowDoubleClick(h){this.gs.log("[MOUSE_DOUBLE_CLICK]",h);const A=h||window.event,ce=A.target||A.srcElement;("IMG"===ce.tagName||"img"===ce.tagName)&&this.gs.isDesktop&&this.viewer.viewImage(ce)}onWindowBeforeUnloaded(h){this.as.token&&(this.gs.log("[BROWSER_EXIT_CLOSE_SAVE_JWT]",this.as.token),this.ls.setItem(this.gs.localStorageKeys.token,this.as.token))}winboxOpenUri(h){this.wb.winboxOpenUri(h)}injectServerTimeClock(){if(this.gs.isDesktop){const h=this.gs.document.getElementsByClassName("mat-drawer-backdrop");if(h.length>0){h[0].innerHTML='\n
\n
\n

~ Kalender (\uff61>\ufe4f<\uff61) Server ~

\n

\n

\n
\n
\n ';const ce=this.gs.document.createElement("script");ce.type="text/javascript",ce.textContent="\n function runCalendar() {\n const calendar = new Date();\n const serverTime = document.getElementById('serverTime');\n serverTime.innerHTML = calendar.toLocaleTimeString('ja-JP', {\n timeZone: 'Asia/Tokyo',\n timeZoneName: 'longGeneric'\n });\n const serverDate = document.getElementById('serverDate');\n serverDate.innerHTML = calendar.toLocaleDateString('id-ID', {\n weekday: 'long',\n year: 'numeric',\n month: 'long',\n day: 'numeric',\n timeZone: 'Asia/Tokyo'\n });\n setTimeout(runCalendar, 1000);\n }\n runCalendar();\n ",this.gs.document.head.appendChild(ce)}}}}return v.\u0275fac=function(h){return new(h||v)(r.Y36(ns.ux),r.Y36(r.Qsj),r.Y36(Ui.F0),r.Y36(Ui.gz),r.Y36(Xs.z),r.Y36(el.Z),r.Y36(To.e),r.Y36(tl.r),r.Y36(go.n),r.Y36(Qi.U),r.Y36(ba.S),r.Y36(Ro.C),r.Y36(to.R),r.Y36(nl.N),r.Y36(no.x),r.Y36(il.H),r.Y36(ac))},v.\u0275cmp=r.Xpm({type:v,selectors:[["app-root"]],viewQuery:function(h,A){if(1&h&&(r.Gf(fs,7),r.Gf(ao,7),r.Gf(dl,7)),2&h){let ce;r.iGM(ce=r.CRH())&&(A.leftSideNav=ce.first),r.iGM(ce=r.CRH())&&(A.rightSidePanel=ce.first),r.iGM(ce=r.CRH())&&(A.siteContent=ce.first)}},hostBindings:function(h,A){1&h&&r.NdJ("contextmenu",function(je){return A.windowRightClick(je)},!1,r.Jf7)("click",function(je){return A.windowLeftClick(je)},!1,r.Jf7)("dblclick",function(je){return A.windowDoubleClick(je)},!1,r.Jf7)("beforeunload",function(je){return A.windowBeforeUnloaded(je)},!1,r.Jf7)("resize",function(je){return A.onResize(je)},!1,r.Jf7)},decls:24,vars:27,consts:[[3,"color","fixed","meteor","thick"],[1,"sidenav-container",3,"hasBackdrop"],["disableClose","",2,"background-position","bottom center","background-size","128px","background-repeat","no-repeat",3,"mode","opened","ngStyle"],["leftSideNav",""],["position","end",1,"bg-bifeldy",2,"background-position","bottom center","background-size","128px","background-repeat","no-repeat",3,"mode","opened","ngStyle","closedStart"],["rightSidePanel",""],["siteContent",""],[1,"main_content"],[3,"bdColor","type","size","color"],[1,"text-light","text-center"],[1,"text-info","text-decoration-none",3,"click"],[2,"cursor","pointer"]],template:function(h,A){if(1&h&&(r._UZ(0,"app-header")(1,"ng-progress",0),r.TgZ(2,"mat-sidenav-container",1)(3,"mat-sidenav",2,3),r._UZ(5,"app-left-menu"),r.qZA(),r.TgZ(6,"mat-sidenav",4,5),r.NdJ("closedStart",function(){return A.RPS.onClose()}),r._UZ(8,"app-right-panel"),r.qZA(),r.TgZ(9,"mat-sidenav-content",null,6)(11,"div",7),r._UZ(12,"router-outlet"),r.qZA(),r._UZ(13,"app-material-fab"),r.qZA()(),r._UZ(14,"app-footer"),r.TgZ(15,"ngx-spinner",8)(16,"p",9),r._uU(17," Sedang Memuat Data ^_^ "),r._UZ(18,"br"),r._uU(19," Mohon Menunggu ... "),r._UZ(20,"br"),r.TgZ(21,"span",10),r.NdJ("click",function(){return A.resetLoading()}),r.TgZ(22,"b",11),r._uU(23,"Batalkan"),r.qZA()()()()),2&h){const ce=r.MAs(7);r.xp6(1),r.Q6J("color","#ff4081")("fixed",!1)("meteor",!1)("thick",!0),r.xp6(1),r.Q6J("hasBackdrop",A.LMS.sideNavExpanded||ce.isOpen),r.xp6(1),r.Q6J("mode",A.sideNavType)("opened",A.LMS.opened)("ngStyle",r.VKq(23,ul,"url("+A.GS.leftMenuImage+")")),r.xp6(3),r.Q6J("mode","over")("opened",!1)("ngStyle",r.VKq(25,ul,"url("+A.GS.rightMenuImage+")")),r.xp6(3),r.Udp("background-repeat","no-repeat")("background-size","128px"+("/login"===A.ROUTER.url||"/register"===A.ROUTER.url||"/about"===A.ROUTER.url||"/verify"===A.ROUTER.url||"/privacy-policy"===A.ROUTER.url||"/reset-password"===A.ROUTER.url?", cover":""))("background-position","bottom right"+("/login"===A.ROUTER.url||"/register"===A.ROUTER.url||"/about"===A.ROUTER.url||"/verify"===A.ROUTER.url||"/privacy-policy"===A.ROUTER.url||"/reset-password"===A.ROUTER.url?", center":""))("background-image","url("+A.GS.bgImgUrl+")"+("/login"===A.ROUTER.url||"/register"===A.ROUTER.url||"/about"===A.ROUTER.url||"/verify"===A.ROUTER.url||"/privacy-policy"===A.ROUTER.url||"/reset-password"===A.ROUTER.url?", url(/assets/img/background/paint.svg)":"")),r.xp6(6),r.Q6J("bdColor","#0000007f")("type","square-jelly-box")("size","medium")("color","#e84360")}},directives:[_o,po,ko.TM,ko.JX,O.PC,dt,Ju,gc,ko.Rh,Ui.lC,qu,Ec,fo.Ro],styles:[".main_content[_ngcontent-%COMP%]{width:100%;height:calc(100vh - 88px)}"],data:{animation:[ya]}}),v})(),wc=(()=>{class v{}return v.\u0275fac=function(h){return new(h||v)},v.\u0275mod=r.oAB({type:v}),v.\u0275inj=r.cJS({imports:[[O.ez,Ui.Bz,Hs.m]]}),v})(),Ac=(()=>{class v{}return v.\u0275fac=function(h){return new(h||v)},v.\u0275mod=r.oAB({type:v}),v.\u0275inj=r.cJS({imports:[[O.ez,Ui.Bz,Hs.m,wr.u5]]}),v})();var Tc=a(5116);let hl=(()=>{class v{}return v.\u0275fac=function(h){return new(h||v)},v.\u0275mod=r.oAB({type:v}),v.\u0275inj=r.cJS({imports:[[O.ez,Hs.m]]}),v})(),Sc=(()=>{class v{}return v.\u0275fac=function(h){return new(h||v)},v.\u0275mod=r.oAB({type:v}),v.\u0275inj=r.cJS({imports:[[O.ez,Hs.m,Dc]]}),v})();var Oc=a(1385),Rc=a(7355),Ic=a(2438);let eh=(()=>{class v{}return v.\u0275fac=function(h){return new(h||v)},v.\u0275mod=r.oAB({type:v}),v.\u0275inj=r.cJS({imports:[[O.ez,Ui.Bz,Hs.m,wr.u5,wr.UX,Oc.Ad,Ic.d,Rc.T]]}),v})(),Pc=(()=>{class v{}return v.\u0275fac=function(h){return new(h||v)},v.\u0275mod=r.oAB({type:v,bootstrap:[Mc]}),v.\u0275inj=r.cJS({providers:[{provide:n.ok,useClass:Zu},{provide:cs.Jm,useValue:Qu},{provide:Ms.o2,useValue:{floatLabel:"always"}},{provide:ns.Ve,useValue:{duration:1e4}},{provide:l.TP,useClass:ic,multi:!0},{provide:l.TP,useClass:va,multi:!0},{provide:l.TP,useClass:eo,multi:!0}],imports:[[n.b2.withServerTransition({appId:"serverApp"}),nc,E.PW,xi,D,wr.UX,l.JF,Hs.m,n.t6,fo.ef,Za.Rh.forRoot({timeOut:3e3,positionClass:"toast-top-right",closeButton:!0,progressBar:!0,progressAnimation:"increasing"}),Ku,ec,wc,Ac,Tc.d,hl,Sc,eh,Ns.Wr.register("/ngsw-worker.js",{enabled:ar.N.production,registrationStrategy:"registerWhenStable:30000"}),Qr.zO.withConfig({autoUpload:!1,concurrency:1,endpoint:`${ar.N.apiUrl}/attachment`,headers:{"ngsw-bypass":"true"},retryConfig:{maxAttempts:3},maxChunkSize:Lr.t.fileSizeAttachmentChunkCloudflareLimit})]]}),v})();function wa(){n.q6().bootstrapModule(Pc).catch(v=>console.error(v))}a(5386),ar.N.production&&(0,r.G48)(),"complete"===document.readyState?wa():document.addEventListener("DOMContentLoaded",wa)},4249:(it,U,a)=>{"use strict";a.d(U,{Bp:()=>M,eK:()=>I,yS:()=>n});var n=(()=>{return(g=n||(n={})).ADMIN="ADMIN",g.FANSUBBER="FANSUBBER",g.MODERATOR="MODERATOR",g.USER="USER",n;var g})(),I=(()=>{return(g=I||(I={})).LIKE="LIKE",g.DISLIKE="DISLIKE",I;var g})(),M=(()=>{return(g=M||(M={})).DISCORD="DISCORD",g.DISQUS="DISQUS",g.FACEBOOK="FACEBOOK",g.GOOGLE="GOOGLE",M;var g})()},6022:(it,U,a)=>{"use strict";a.d(U,{F:()=>n});var n=(()=>{return(r=n||(n={})).WINTER="winter",r.SPRING="spring",r.SUMMER="summer",r.FALL="fall",n;var r})()},8498:it=>{function a(){}it.exports=function U(n,r,l){var u=!1;return l=l||a,o.count=n,0===n?r():o;function o(I,M){if(o.count<=0)throw new Error("after called too many times");--o.count,I?(u=!0,r(I),r=l):0===o.count&&!u&&r(null,M)}}},9933:it=>{it.exports=function(U,a,n){var r=U.byteLength;if(a=a||0,n=n||r,U.slice)return U.slice(a,n);if(a<0&&(a+=r),n<0&&(n+=r),n>r&&(n=r),a>=r||a>=n||0===r)return new ArrayBuffer(0);for(var l=new Uint8Array(U),u=new Uint8Array(n-a),o=a,I=0;o{function U(a){this.ms=(a=a||{}).min||100,this.max=a.max||1e4,this.factor=a.factor||2,this.jitter=a.jitter>0&&a.jitter<=1?a.jitter:0,this.attempts=0}it.exports=U,U.prototype.duration=function(){var a=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var n=Math.random(),r=Math.floor(n*this.jitter*a);a=0==(1&Math.floor(10*n))?a-r:a+r}return 0|Math.min(a,this.max)},U.prototype.reset=function(){this.attempts=0},U.prototype.setMin=function(a){this.ms=a},U.prototype.setMax=function(a){this.max=a},U.prototype.setJitter=function(a){this.jitter=a}},390:(it,U)=>{!function(a){"use strict";U.encode=function(n){var l,r=new Uint8Array(n),u=r.length,o="";for(l=0;l>2],o+=a[(3&r[l])<<4|r[l+1]>>4],o+=a[(15&r[l+1])<<2|r[l+2]>>6],o+=a[63&r[l+2]];return u%3==2?o=o.substring(0,o.length-1)+"=":u%3==1&&(o=o.substring(0,o.length-2)+"=="),o},U.decode=function(n){var u,I,M,g,C,r=.75*n.length,l=n.length,o=0;"="===n[n.length-1]&&(r--,"="===n[n.length-2]&&r--);var D=new ArrayBuffer(r),y=new Uint8Array(D);for(u=0;u>4,y[o++]=(15&M)<<4|g>>2,y[o++]=(3&g)<<6|63&C;return D}}("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")},113:it=>{var U=void 0!==U?U:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder&&MozBlobBuilder,a=function(){try{return 2===new Blob(["hi"]).size}catch(M){return!1}}(),n=a&&function(){try{return 2===new Blob([new Uint8Array([1,2])]).size}catch(M){return!1}}(),r=U&&U.prototype.append&&U.prototype.getBlob;function l(I){return I.map(function(M){if(M.buffer instanceof ArrayBuffer){var g=M.buffer;if(M.byteLength!==g.byteLength){var C=new Uint8Array(M.byteLength);C.set(new Uint8Array(g,M.byteOffset,M.byteLength)),g=C.buffer}return g}return M})}function u(I,M){M=M||{};var g=new U;return l(I).forEach(function(C){g.append(C)}),M.type?g.getBlob(M.type):g.getBlob()}function o(I,M){return new Blob(l(I),M||{})}"undefined"!=typeof Blob&&(u.prototype=Blob.prototype,o.prototype=Blob.prototype),it.exports=a?n?Blob:o:r?u:void 0},1213:it=>{var U=[].slice;it.exports=function(a,n){if("string"==typeof n&&(n=a[n]),"function"!=typeof n)throw new Error("bind() requires a function");var r=U.call(arguments,2);return function(){return n.apply(a,r.concat(U.call(arguments)))}}},1264:it=>{function U(n){if(n)return function a(n){for(var r in U.prototype)n[r]=U.prototype[r];return n}(n)}it.exports=U,U.prototype.on=U.prototype.addEventListener=function(n,r){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(r),this},U.prototype.once=function(n,r){function l(){this.off(n,l),r.apply(this,arguments)}return l.fn=r,this.on(n,l),this},U.prototype.off=U.prototype.removeListener=U.prototype.removeAllListeners=U.prototype.removeEventListener=function(n,r){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var l=this._callbacks["$"+n];if(!l)return this;if(1==arguments.length)return delete this._callbacks["$"+n],this;for(var u,o=0;o{it.exports=function(U,a){var n=function(){};n.prototype=a.prototype,U.prototype=new n,U.prototype.constructor=U}},7466:function(it,U,a){var n;it.exports=(n=a(7585),a(8319),a(9493),a(7865),a(3057),function(){var r=n,u=r.lib.BlockCipher,o=r.algo,I=[],M=[],g=[],C=[],D=[],y=[],_=[],E=[],O=[],ee=[];!function(){for(var ne=[],De=0;De<256;De++)ne[De]=De<128?De<<1:De<<1^283;var ve=0,Z=0;for(De=0;De<256;De++){var z=Z^Z<<1^Z<<2^Z<<3^Z<<4;I[ve]=z=z>>>8^255&z^99,M[z]=ve;var fe,V=ne[ve],Me=ne[V],Q=ne[Me];g[ve]=(fe=257*ne[z]^16843008*z)<<24|fe>>>8,C[ve]=fe<<16|fe>>>16,D[ve]=fe<<8|fe>>>24,y[ve]=fe,_[z]=(fe=16843009*Q^65537*Me^257*V^16843008*ve)<<24|fe>>>8,E[z]=fe<<16|fe>>>16,O[z]=fe<<8|fe>>>24,ee[z]=fe,ve?(ve=V^ne[ne[ne[Q^V]]],Z^=ne[ne[Z]]):ve=Z=1}}();var ue=[0,1,2,4,8,16,32,64,128,27,54],K=o.AES=u.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var De=this._keyPriorReset=this._key,ve=De.words,Z=De.sigBytes/4,V=4*((this._nRounds=Z+6)+1),Me=this._keySchedule=[],Q=0;Q6&&Q%Z==4&&(ne=I[ne>>>24]<<24|I[ne>>>16&255]<<16|I[ne>>>8&255]<<8|I[255&ne]):(ne=I[(ne=ne<<8|ne>>>24)>>>24]<<24|I[ne>>>16&255]<<16|I[ne>>>8&255]<<8|I[255&ne],ne^=ue[Q/Z|0]<<24),Me[Q]=Me[Q-Z]^ne);for(var fe=this._invKeySchedule=[],Ae=0;Ae>>24]]^E[I[ne>>>16&255]]^O[I[ne>>>8&255]]^ee[I[255&ne]]}}},encryptBlock:function(ne,De){this._doCryptBlock(ne,De,this._keySchedule,g,C,D,y,I)},decryptBlock:function(ne,De){var ve=ne[De+1];ne[De+1]=ne[De+3],ne[De+3]=ve,this._doCryptBlock(ne,De,this._invKeySchedule,_,E,O,ee,M),ve=ne[De+1],ne[De+1]=ne[De+3],ne[De+3]=ve},_doCryptBlock:function(ne,De,ve,Z,z,V,Me,Q){for(var fe=this._nRounds,Ae=ne[De]^ve[0],j=ne[De+1]^ve[1],W=ne[De+2]^ve[2],J=ne[De+3]^ve[3],ie=4,Be=1;Be>>24]^z[j>>>16&255]^V[W>>>8&255]^Me[255&J]^ve[ie++],Tt=Z[j>>>24]^z[W>>>16&255]^V[J>>>8&255]^Me[255&Ae]^ve[ie++],Rt=Z[W>>>24]^z[J>>>16&255]^V[Ae>>>8&255]^Me[255&j]^ve[ie++],mt=Z[J>>>24]^z[Ae>>>16&255]^V[j>>>8&255]^Me[255&W]^ve[ie++];Ae=nt,j=Tt,W=Rt,J=mt}nt=(Q[Ae>>>24]<<24|Q[j>>>16&255]<<16|Q[W>>>8&255]<<8|Q[255&J])^ve[ie++],Tt=(Q[j>>>24]<<24|Q[W>>>16&255]<<16|Q[J>>>8&255]<<8|Q[255&Ae])^ve[ie++],Rt=(Q[W>>>24]<<24|Q[J>>>16&255]<<16|Q[Ae>>>8&255]<<8|Q[255&j])^ve[ie++],mt=(Q[J>>>24]<<24|Q[Ae>>>16&255]<<16|Q[j>>>8&255]<<8|Q[255&W])^ve[ie++],ne[De]=nt,ne[De+1]=Tt,ne[De+2]=Rt,ne[De+3]=mt},keySize:8});r.AES=u._createHelper(K)}(),n.AES)},3057:function(it,U,a){var l,u,o,I,M,g,D,_,E,ee,ue,K,De,Z,V,Me,fe,Ae,n;it.exports=(n=a(7585),a(7865),void(n.lib.Cipher||(l=n,u=l.lib,o=u.Base,I=u.WordArray,M=u.BufferedBlockAlgorithm,g=l.enc,D=g.Base64,_=l.algo.EvpKDF,E=u.Cipher=M.extend({cfg:o.extend(),createEncryptor:function(j,W){return this.create(this._ENC_XFORM_MODE,j,W)},createDecryptor:function(j,W){return this.create(this._DEC_XFORM_MODE,j,W)},init:function(j,W,J){this.cfg=this.cfg.extend(J),this._xformMode=j,this._key=W,this.reset()},reset:function(){M.reset.call(this),this._doReset()},process:function(j){return this._append(j),this._process()},finalize:function(j){return j&&this._append(j),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function j(W){return"string"==typeof W?Ae:Me}return function(W){return{encrypt:function(J,ie,Be){return j(ie).encrypt(W,J,ie,Be)},decrypt:function(J,ie,Be){return j(ie).decrypt(W,J,ie,Be)}}}}()}),u.StreamCipher=E.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),ee=l.mode={},ue=u.BlockCipherMode=o.extend({createEncryptor:function(j,W){return this.Encryptor.create(j,W)},createDecryptor:function(j,W){return this.Decryptor.create(j,W)},init:function(j,W){this._cipher=j,this._iv=W}}),K=ee.CBC=function(){var j=ue.extend();function W(J,ie,Be){var nt,Tt=this._iv;Tt?(nt=Tt,this._iv=undefined):nt=this._prevBlock;for(var Rt=0;Rt>>2]}},u.BlockCipher=E.extend({cfg:E.cfg.extend({mode:K,padding:De}),reset:function(){var j;E.reset.call(this);var W=this.cfg,J=W.iv,ie=W.mode;this._xformMode==this._ENC_XFORM_MODE?j=ie.createEncryptor:(j=ie.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==j?this._mode.init(this,J&&J.words):(this._mode=j.call(ie,this,J&&J.words),this._mode.__creator=j)},_doProcessBlock:function(j,W){this._mode.processBlock(j,W)},_doFinalize:function(){var j,W=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(W.pad(this._data,this.blockSize),j=this._process(!0)):(j=this._process(!0),W.unpad(j)),j},blockSize:4}),Z=u.CipherParams=o.extend({init:function(j){this.mixIn(j)},toString:function(j){return(j||this.formatter).stringify(this)}}),V=(l.format={}).OpenSSL={stringify:function(j){var J=j.ciphertext,ie=j.salt;return(ie?I.create([1398893684,1701076831]).concat(ie).concat(J):J).toString(D)},parse:function(j){var W,J=D.parse(j),ie=J.words;return 1398893684==ie[0]&&1701076831==ie[1]&&(W=I.create(ie.slice(2,4)),ie.splice(0,4),J.sigBytes-=16),Z.create({ciphertext:J,salt:W})}},Me=u.SerializableCipher=o.extend({cfg:o.extend({format:V}),encrypt:function(j,W,J,ie){ie=this.cfg.extend(ie);var Be=j.createEncryptor(J,ie),nt=Be.finalize(W),Tt=Be.cfg;return Z.create({ciphertext:nt,key:J,iv:Tt.iv,algorithm:j,mode:Tt.mode,padding:Tt.padding,blockSize:j.blockSize,formatter:ie.format})},decrypt:function(j,W,J,ie){return ie=this.cfg.extend(ie),W=this._parse(W,ie.format),j.createDecryptor(J,ie).finalize(W.ciphertext)},_parse:function(j,W){return"string"==typeof j?W.parse(j,this):j}}),fe=(l.kdf={}).OpenSSL={execute:function(j,W,J,ie){ie||(ie=I.random(8));var Be=_.create({keySize:W+J}).compute(j,ie),nt=I.create(Be.words.slice(W),4*J);return Be.sigBytes=4*W,Z.create({key:Be,iv:nt,salt:ie})}},Ae=u.PasswordBasedCipher=Me.extend({cfg:Me.cfg.extend({kdf:fe}),encrypt:function(j,W,J,ie){var Be=(ie=this.cfg.extend(ie)).kdf.execute(J,j.keySize,j.ivSize);ie.iv=Be.iv;var nt=Me.encrypt.call(this,j,W,Be.key,ie);return nt.mixIn(Be),nt},decrypt:function(j,W,J,ie){ie=this.cfg.extend(ie),W=this._parse(W,ie.format);var Be=ie.kdf.execute(J,j.keySize,j.ivSize,W.salt);return ie.iv=Be.iv,Me.decrypt.call(this,j,W,Be.key,ie)}}))))},7585:function(it,U,a){var n;it.exports=(n=n||function(r,l){var u;if("undefined"!=typeof window&&window.crypto&&(u=window.crypto),"undefined"!=typeof self&&self.crypto&&(u=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(u=globalThis.crypto),!u&&"undefined"!=typeof window&&window.msCrypto&&(u=window.msCrypto),!u&&"undefined"!=typeof global&&global.crypto&&(u=global.crypto),!u)try{u=a(2480)}catch(ne){}var o=function(){if(u){if("function"==typeof u.getRandomValues)try{return u.getRandomValues(new Uint32Array(1))[0]}catch(ne){}if("function"==typeof u.randomBytes)try{return u.randomBytes(4).readInt32LE()}catch(ne){}}throw new Error("Native crypto module could not be used to get secure random number.")},I=Object.create||function(){function ne(){}return function(De){var ve;return ne.prototype=De,ve=new ne,ne.prototype=null,ve}}(),M={},g=M.lib={},C=g.Base={extend:function(ne){var De=I(this);return ne&&De.mixIn(ne),(!De.hasOwnProperty("init")||this.init===De.init)&&(De.init=function(){De.$super.init.apply(this,arguments)}),De.init.prototype=De,De.$super=this,De},create:function(){var ne=this.extend();return ne.init.apply(ne,arguments),ne},init:function(){},mixIn:function(ne){for(var De in ne)ne.hasOwnProperty(De)&&(this[De]=ne[De]);ne.hasOwnProperty("toString")&&(this.toString=ne.toString)},clone:function(){return this.init.prototype.extend(this)}},D=g.WordArray=C.extend({init:function(ne,De){ne=this.words=ne||[],this.sigBytes=null!=De?De:4*ne.length},toString:function(ne){return(ne||_).stringify(this)},concat:function(ne){var De=this.words,ve=ne.words,Z=this.sigBytes,z=ne.sigBytes;if(this.clamp(),Z%4)for(var V=0;V>>2]|=(ve[V>>>2]>>>24-V%4*8&255)<<24-(Z+V)%4*8;else for(var Q=0;Q>>2]=ve[Q>>>2];return this.sigBytes+=z,this},clamp:function(){var ne=this.words,De=this.sigBytes;ne[De>>>2]&=4294967295<<32-De%4*8,ne.length=r.ceil(De/4)},clone:function(){var ne=C.clone.call(this);return ne.words=this.words.slice(0),ne},random:function(ne){for(var De=[],ve=0;ve>>2]>>>24-z%4*8&255;Z.push((V>>>4).toString(16)),Z.push((15&V).toString(16))}return Z.join("")},parse:function(ne){for(var De=ne.length,ve=[],Z=0;Z>>3]|=parseInt(ne.substr(Z,2),16)<<24-Z%8*4;return new D.init(ve,De/2)}},E=y.Latin1={stringify:function(ne){for(var De=ne.words,ve=ne.sigBytes,Z=[],z=0;z>>2]>>>24-z%4*8&255));return Z.join("")},parse:function(ne){for(var De=ne.length,ve=[],Z=0;Z>>2]|=(255&ne.charCodeAt(Z))<<24-Z%4*8;return new D.init(ve,De)}},O=y.Utf8={stringify:function(ne){try{return decodeURIComponent(escape(E.stringify(ne)))}catch(De){throw new Error("Malformed UTF-8 data")}},parse:function(ne){return E.parse(unescape(encodeURIComponent(ne)))}},ee=g.BufferedBlockAlgorithm=C.extend({reset:function(){this._data=new D.init,this._nDataBytes=0},_append:function(ne){"string"==typeof ne&&(ne=O.parse(ne)),this._data.concat(ne),this._nDataBytes+=ne.sigBytes},_process:function(ne){var De,ve=this._data,Z=ve.words,z=ve.sigBytes,V=this.blockSize,Q=z/(4*V),fe=(Q=ne?r.ceil(Q):r.max((0|Q)-this._minBufferSize,0))*V,Ae=r.min(4*fe,z);if(fe){for(var j=0;j>>2]>>>24-E%4*8&255)<<16|(C[E+1>>>2]>>>24-(E+1)%4*8&255)<<8|C[E+2>>>2]>>>24-(E+2)%4*8&255,ne=0;ne<4&&E+.75*ne>>6*(3-ne)&63));var De=y.charAt(64);if(De)for(;_.length%4;)_.push(De);return _.join("")},parse:function(g){var C=g.length,D=this._map,y=this._reverseMap;if(!y){y=this._reverseMap=[];for(var _=0;_>>6-E%4*2;y[_>>>2]|=(O|ee)<<24-_%4*8,_++}return u.create(y,_)}(g,C,y)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},n.enc.Base64)},4410:function(it,U,a){var n,u;it.exports=(n=a(7585),u=n.lib.WordArray,n.enc.Base64url={stringify:function(g,C=!0){var D=g.words,y=g.sigBytes,_=C?this._safe_map:this._map;g.clamp();for(var E=[],O=0;O>>2]>>>24-O%4*8&255)<<16|(D[O+1>>>2]>>>24-(O+1)%4*8&255)<<8|D[O+2>>>2]>>>24-(O+2)%4*8&255,De=0;De<4&&O+.75*De>>6*(3-De)&63));var ve=_.charAt(64);if(ve)for(;E.length%4;)E.push(ve);return E.join("")},parse:function(g,C=!0){var D=g.length,y=C?this._safe_map:this._map,_=this._reverseMap;if(!_){_=this._reverseMap=[];for(var E=0;E>>6-E%4*2;y[_>>>2]|=(O|ee)<<24-_%4*8,_++}return u.create(y,_)}(g,D,_)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"},n.enc.Base64url)},9012:function(it,U,a){var n;it.exports=(n=a(7585),function(){var u=n.lib.WordArray,o=n.enc;function M(g){return g<<8&4278255360|g>>>8&16711935}o.Utf16=o.Utf16BE={stringify:function(g){for(var C=g.words,D=g.sigBytes,y=[],_=0;_>>2]>>>16-_%4*8&65535));return y.join("")},parse:function(g){for(var C=g.length,D=[],y=0;y>>1]|=g.charCodeAt(y)<<16-y%2*16;return u.create(D,2*C)}},o.Utf16LE={stringify:function(g){for(var C=g.words,D=g.sigBytes,y=[],_=0;_>>2]>>>16-_%4*8&65535);y.push(String.fromCharCode(E))}return y.join("")},parse:function(g){for(var C=g.length,D=[],y=0;y>>1]|=M(g.charCodeAt(y)<<16-y%2*16);return u.create(D,2*C)}}}(),n.enc.Utf16)},7865:function(it,U,a){var r,l,u,o,I,g,n;it.exports=(n=a(7585),a(5162),a(3764),o=(l=(r=n).lib).WordArray,g=(I=r.algo).EvpKDF=(u=l.Base).extend({cfg:u.extend({keySize:4,hasher:I.MD5,iterations:1}),init:function(C){this.cfg=this.cfg.extend(C)},compute:function(C,D){for(var y,_=this.cfg,E=_.hasher.create(),O=o.create(),ee=O.words,ue=_.keySize,K=_.iterations;ee.length_&&(D=C.finalize(D)),D.clamp();for(var E=this._oKey=D.clone(),O=this._iKey=D.clone(),ee=E.words,ue=O.words,K=0;K>>2]|=M[D]<<24-D%4*8;o.call(this,C,g)}else o.apply(this,arguments)};I.prototype=u}}(),n.lib.WordArray)},9493:function(it,U,a){var n;it.exports=(n=a(7585),function(r){var l=n,u=l.lib,o=u.WordArray,I=u.Hasher,M=l.algo,g=[];!function(){for(var O=0;O<64;O++)g[O]=4294967296*r.abs(r.sin(O+1))|0}();var C=M.MD5=I.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(O,ee){for(var ue=0;ue<16;ue++){var K=ee+ue,ne=O[K];O[K]=16711935&(ne<<8|ne>>>24)|4278255360&(ne<<24|ne>>>8)}var De=this._hash.words,ve=O[ee+0],Z=O[ee+1],z=O[ee+2],V=O[ee+3],Me=O[ee+4],Q=O[ee+5],fe=O[ee+6],Ae=O[ee+7],j=O[ee+8],W=O[ee+9],J=O[ee+10],ie=O[ee+11],Be=O[ee+12],nt=O[ee+13],Tt=O[ee+14],Rt=O[ee+15],mt=De[0],gt=De[1],Le=De[2],Je=De[3];mt=D(mt,gt,Le,Je,ve,7,g[0]),Je=D(Je,mt,gt,Le,Z,12,g[1]),Le=D(Le,Je,mt,gt,z,17,g[2]),gt=D(gt,Le,Je,mt,V,22,g[3]),mt=D(mt,gt,Le,Je,Me,7,g[4]),Je=D(Je,mt,gt,Le,Q,12,g[5]),Le=D(Le,Je,mt,gt,fe,17,g[6]),gt=D(gt,Le,Je,mt,Ae,22,g[7]),mt=D(mt,gt,Le,Je,j,7,g[8]),Je=D(Je,mt,gt,Le,W,12,g[9]),Le=D(Le,Je,mt,gt,J,17,g[10]),gt=D(gt,Le,Je,mt,ie,22,g[11]),mt=D(mt,gt,Le,Je,Be,7,g[12]),Je=D(Je,mt,gt,Le,nt,12,g[13]),Le=D(Le,Je,mt,gt,Tt,17,g[14]),mt=y(mt,gt=D(gt,Le,Je,mt,Rt,22,g[15]),Le,Je,Z,5,g[16]),Je=y(Je,mt,gt,Le,fe,9,g[17]),Le=y(Le,Je,mt,gt,ie,14,g[18]),gt=y(gt,Le,Je,mt,ve,20,g[19]),mt=y(mt,gt,Le,Je,Q,5,g[20]),Je=y(Je,mt,gt,Le,J,9,g[21]),Le=y(Le,Je,mt,gt,Rt,14,g[22]),gt=y(gt,Le,Je,mt,Me,20,g[23]),mt=y(mt,gt,Le,Je,W,5,g[24]),Je=y(Je,mt,gt,Le,Tt,9,g[25]),Le=y(Le,Je,mt,gt,V,14,g[26]),gt=y(gt,Le,Je,mt,j,20,g[27]),mt=y(mt,gt,Le,Je,nt,5,g[28]),Je=y(Je,mt,gt,Le,z,9,g[29]),Le=y(Le,Je,mt,gt,Ae,14,g[30]),mt=_(mt,gt=y(gt,Le,Je,mt,Be,20,g[31]),Le,Je,Q,4,g[32]),Je=_(Je,mt,gt,Le,j,11,g[33]),Le=_(Le,Je,mt,gt,ie,16,g[34]),gt=_(gt,Le,Je,mt,Tt,23,g[35]),mt=_(mt,gt,Le,Je,Z,4,g[36]),Je=_(Je,mt,gt,Le,Me,11,g[37]),Le=_(Le,Je,mt,gt,Ae,16,g[38]),gt=_(gt,Le,Je,mt,J,23,g[39]),mt=_(mt,gt,Le,Je,nt,4,g[40]),Je=_(Je,mt,gt,Le,ve,11,g[41]),Le=_(Le,Je,mt,gt,V,16,g[42]),gt=_(gt,Le,Je,mt,fe,23,g[43]),mt=_(mt,gt,Le,Je,W,4,g[44]),Je=_(Je,mt,gt,Le,Be,11,g[45]),Le=_(Le,Je,mt,gt,Rt,16,g[46]),mt=E(mt,gt=_(gt,Le,Je,mt,z,23,g[47]),Le,Je,ve,6,g[48]),Je=E(Je,mt,gt,Le,Ae,10,g[49]),Le=E(Le,Je,mt,gt,Tt,15,g[50]),gt=E(gt,Le,Je,mt,Q,21,g[51]),mt=E(mt,gt,Le,Je,Be,6,g[52]),Je=E(Je,mt,gt,Le,V,10,g[53]),Le=E(Le,Je,mt,gt,J,15,g[54]),gt=E(gt,Le,Je,mt,Z,21,g[55]),mt=E(mt,gt,Le,Je,j,6,g[56]),Je=E(Je,mt,gt,Le,Rt,10,g[57]),Le=E(Le,Je,mt,gt,fe,15,g[58]),gt=E(gt,Le,Je,mt,nt,21,g[59]),mt=E(mt,gt,Le,Je,Me,6,g[60]),Je=E(Je,mt,gt,Le,ie,10,g[61]),Le=E(Le,Je,mt,gt,z,15,g[62]),gt=E(gt,Le,Je,mt,W,21,g[63]),De[0]=De[0]+mt|0,De[1]=De[1]+gt|0,De[2]=De[2]+Le|0,De[3]=De[3]+Je|0},_doFinalize:function(){var O=this._data,ee=O.words,ue=8*this._nDataBytes,K=8*O.sigBytes;ee[K>>>5]|=128<<24-K%32;var ne=r.floor(ue/4294967296),De=ue;ee[15+(K+64>>>9<<4)]=16711935&(ne<<8|ne>>>24)|4278255360&(ne<<24|ne>>>8),ee[14+(K+64>>>9<<4)]=16711935&(De<<8|De>>>24)|4278255360&(De<<24|De>>>8),O.sigBytes=4*(ee.length+1),this._process();for(var ve=this._hash,Z=ve.words,z=0;z<4;z++){var V=Z[z];Z[z]=16711935&(V<<8|V>>>24)|4278255360&(V<<24|V>>>8)}return ve},clone:function(){var O=I.clone.call(this);return O._hash=this._hash.clone(),O}});function D(O,ee,ue,K,ne,De,ve){var Z=O+(ee&ue|~ee&K)+ne+ve;return(Z<>>32-De)+ee}function y(O,ee,ue,K,ne,De,ve){var Z=O+(ee&K|ue&~K)+ne+ve;return(Z<>>32-De)+ee}function _(O,ee,ue,K,ne,De,ve){var Z=O+(ee^ue^K)+ne+ve;return(Z<>>32-De)+ee}function E(O,ee,ue,K,ne,De,ve){var Z=O+(ue^(ee|~K))+ne+ve;return(Z<>>32-De)+ee}l.MD5=I._createHelper(C),l.HmacMD5=I._createHmacHelper(C)}(Math),n.MD5)},4424:function(it,U,a){var n;it.exports=(n=a(7585),a(3057),n.mode.CFB=function(){var r=n.lib.BlockCipherMode.extend();function l(u,o,I,M){var g,C=this._iv;C?(g=C.slice(0),this._iv=void 0):g=this._prevBlock,M.encryptBlock(g,0);for(var D=0;D>24&255)){var M=I>>16&255,g=I>>8&255,C=255&I;255===M?(M=0,255===g?(g=0,255===C?C=0:++C):++g):++M,I=0,I+=M<<16,I+=g<<8,I+=C}else I+=1<<24;return I}var o=r.Encryptor=r.extend({processBlock:function(I,M){var g=this._cipher,C=g.blockSize,D=this._iv,y=this._counter;D&&(y=this._counter=D.slice(0),this._iv=void 0),function u(I){return 0===(I[0]=l(I[0]))&&(I[1]=l(I[1])),I}(y);var _=y.slice(0);g.encryptBlock(_,0);for(var E=0;E>>2]|=I<<24-M%4*8,r.sigBytes+=I},unpad:function(r){r.sigBytes-=255&r.words[r.sigBytes-1>>>2]}},n.pad.Ansix923)},4630:function(it,U,a){var n;it.exports=(n=a(7585),a(3057),n.pad.Iso10126={pad:function(r,l){var u=4*l,o=u-r.sigBytes%u;r.concat(n.lib.WordArray.random(o-1)).concat(n.lib.WordArray.create([o<<24],1))},unpad:function(r){r.sigBytes-=255&r.words[r.sigBytes-1>>>2]}},n.pad.Iso10126)},187:function(it,U,a){var n;it.exports=(n=a(7585),a(3057),n.pad.Iso97971={pad:function(r,l){r.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(r,l)},unpad:function(r){n.pad.ZeroPadding.unpad(r),r.sigBytes--}},n.pad.Iso97971)},3237:function(it,U,a){var n;it.exports=(n=a(7585),a(3057),n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding)},1691:function(it,U,a){var n;it.exports=(n=a(7585),a(3057),n.pad.ZeroPadding={pad:function(r,l){var u=4*l;r.clamp(),r.sigBytes+=u-(r.sigBytes%u||u)},unpad:function(r){var l=r.words,u=r.sigBytes-1;for(u=r.sigBytes-1;u>=0;u--)if(l[u>>>2]>>>24-u%4*8&255){r.sigBytes=u+1;break}}},n.pad.ZeroPadding)},8812:function(it,U,a){var r,l,u,o,I,g,C,n;it.exports=(n=a(7585),a(5162),a(3764),o=(l=(r=n).lib).WordArray,g=(I=r.algo).HMAC,C=I.PBKDF2=(u=l.Base).extend({cfg:u.extend({keySize:4,hasher:I.SHA1,iterations:1}),init:function(D){this.cfg=this.cfg.extend(D)},compute:function(D,y){for(var _=this.cfg,E=g.create(_.hasher,D),O=o.create(),ee=o.create([1]),ue=O.words,K=ee.words,ne=_.keySize,De=_.iterations;ue.length>>16,y[1],y[0]<<16|y[3]>>>16,y[2],y[1]<<16|y[0]>>>16,y[3],y[2]<<16|y[1]>>>16],O=this._C=[y[2]<<16|y[2]>>>16,4294901760&y[0]|65535&y[1],y[3]<<16|y[3]>>>16,4294901760&y[1]|65535&y[2],y[0]<<16|y[0]>>>16,4294901760&y[2]|65535&y[3],y[1]<<16|y[1]>>>16,4294901760&y[3]|65535&y[0]];this._b=0;for(var ee=0;ee<4;ee++)D.call(this);for(ee=0;ee<8;ee++)O[ee]^=E[ee+4&7];if(_){var ue=_.words,K=ue[0],ne=ue[1],De=16711935&(K<<8|K>>>24)|4278255360&(K<<24|K>>>8),ve=16711935&(ne<<8|ne>>>24)|4278255360&(ne<<24|ne>>>8),Z=De>>>16|4294901760&ve,z=ve<<16|65535&De;for(O[0]^=De,O[1]^=Z,O[2]^=ve,O[3]^=z,O[4]^=De,O[5]^=Z,O[6]^=ve,O[7]^=z,ee=0;ee<4;ee++)D.call(this)}},_doProcessBlock:function(y,_){var E=this._X;D.call(this),I[0]=E[0]^E[5]>>>16^E[3]<<16,I[1]=E[2]^E[7]>>>16^E[5]<<16,I[2]=E[4]^E[1]>>>16^E[7]<<16,I[3]=E[6]^E[3]>>>16^E[1]<<16;for(var O=0;O<4;O++)I[O]=16711935&(I[O]<<8|I[O]>>>24)|4278255360&(I[O]<<24|I[O]>>>8),y[_+O]^=I[O]},blockSize:4,ivSize:2});function D(){for(var y=this._X,_=this._C,E=0;E<8;E++)M[E]=_[E];for(_[0]=_[0]+1295307597+this._b|0,_[1]=_[1]+3545052371+(_[0]>>>0>>0?1:0)|0,_[2]=_[2]+886263092+(_[1]>>>0>>0?1:0)|0,_[3]=_[3]+1295307597+(_[2]>>>0>>0?1:0)|0,_[4]=_[4]+3545052371+(_[3]>>>0>>0?1:0)|0,_[5]=_[5]+886263092+(_[4]>>>0>>0?1:0)|0,_[6]=_[6]+1295307597+(_[5]>>>0>>0?1:0)|0,_[7]=_[7]+3545052371+(_[6]>>>0>>0?1:0)|0,this._b=_[7]>>>0>>0?1:0,E=0;E<8;E++){var O=y[E]+_[E],ee=65535&O,ue=O>>>16;g[E]=((ee*ee>>>17)+ee*ue>>>15)+ue*ue^((4294901760&O)*O|0)+((65535&O)*O|0)}y[0]=g[0]+(g[7]<<16|g[7]>>>16)+(g[6]<<16|g[6]>>>16)|0,y[1]=g[1]+(g[0]<<8|g[0]>>>24)+g[7]|0,y[2]=g[2]+(g[1]<<16|g[1]>>>16)+(g[0]<<16|g[0]>>>16)|0,y[3]=g[3]+(g[2]<<8|g[2]>>>24)+g[1]|0,y[4]=g[4]+(g[3]<<16|g[3]>>>16)+(g[2]<<16|g[2]>>>16)|0,y[5]=g[5]+(g[4]<<8|g[4]>>>24)+g[3]|0,y[6]=g[6]+(g[5]<<16|g[5]>>>16)+(g[4]<<16|g[4]>>>16)|0,y[7]=g[7]+(g[6]<<8|g[6]>>>24)+g[5]|0}r.RabbitLegacy=u._createHelper(C)}(),n.RabbitLegacy)},8182:function(it,U,a){var n;it.exports=(n=a(7585),a(8319),a(9493),a(7865),a(3057),function(){var r=n,u=r.lib.StreamCipher,I=[],M=[],g=[],C=r.algo.Rabbit=u.extend({_doReset:function(){for(var y=this._key.words,_=this.cfg.iv,E=0;E<4;E++)y[E]=16711935&(y[E]<<8|y[E]>>>24)|4278255360&(y[E]<<24|y[E]>>>8);var O=this._X=[y[0],y[3]<<16|y[2]>>>16,y[1],y[0]<<16|y[3]>>>16,y[2],y[1]<<16|y[0]>>>16,y[3],y[2]<<16|y[1]>>>16],ee=this._C=[y[2]<<16|y[2]>>>16,4294901760&y[0]|65535&y[1],y[3]<<16|y[3]>>>16,4294901760&y[1]|65535&y[2],y[0]<<16|y[0]>>>16,4294901760&y[2]|65535&y[3],y[1]<<16|y[1]>>>16,4294901760&y[3]|65535&y[0]];for(this._b=0,E=0;E<4;E++)D.call(this);for(E=0;E<8;E++)ee[E]^=O[E+4&7];if(_){var ue=_.words,K=ue[0],ne=ue[1],De=16711935&(K<<8|K>>>24)|4278255360&(K<<24|K>>>8),ve=16711935&(ne<<8|ne>>>24)|4278255360&(ne<<24|ne>>>8),Z=De>>>16|4294901760&ve,z=ve<<16|65535&De;for(ee[0]^=De,ee[1]^=Z,ee[2]^=ve,ee[3]^=z,ee[4]^=De,ee[5]^=Z,ee[6]^=ve,ee[7]^=z,E=0;E<4;E++)D.call(this)}},_doProcessBlock:function(y,_){var E=this._X;D.call(this),I[0]=E[0]^E[5]>>>16^E[3]<<16,I[1]=E[2]^E[7]>>>16^E[5]<<16,I[2]=E[4]^E[1]>>>16^E[7]<<16,I[3]=E[6]^E[3]>>>16^E[1]<<16;for(var O=0;O<4;O++)I[O]=16711935&(I[O]<<8|I[O]>>>24)|4278255360&(I[O]<<24|I[O]>>>8),y[_+O]^=I[O]},blockSize:4,ivSize:2});function D(){for(var y=this._X,_=this._C,E=0;E<8;E++)M[E]=_[E];for(_[0]=_[0]+1295307597+this._b|0,_[1]=_[1]+3545052371+(_[0]>>>0>>0?1:0)|0,_[2]=_[2]+886263092+(_[1]>>>0>>0?1:0)|0,_[3]=_[3]+1295307597+(_[2]>>>0>>0?1:0)|0,_[4]=_[4]+3545052371+(_[3]>>>0>>0?1:0)|0,_[5]=_[5]+886263092+(_[4]>>>0>>0?1:0)|0,_[6]=_[6]+1295307597+(_[5]>>>0>>0?1:0)|0,_[7]=_[7]+3545052371+(_[6]>>>0>>0?1:0)|0,this._b=_[7]>>>0>>0?1:0,E=0;E<8;E++){var O=y[E]+_[E],ee=65535&O,ue=O>>>16;g[E]=((ee*ee>>>17)+ee*ue>>>15)+ue*ue^((4294901760&O)*O|0)+((65535&O)*O|0)}y[0]=g[0]+(g[7]<<16|g[7]>>>16)+(g[6]<<16|g[6]>>>16)|0,y[1]=g[1]+(g[0]<<8|g[0]>>>24)+g[7]|0,y[2]=g[2]+(g[1]<<16|g[1]>>>16)+(g[0]<<16|g[0]>>>16)|0,y[3]=g[3]+(g[2]<<8|g[2]>>>24)+g[1]|0,y[4]=g[4]+(g[3]<<16|g[3]>>>16)+(g[2]<<16|g[2]>>>16)|0,y[5]=g[5]+(g[4]<<8|g[4]>>>24)+g[3]|0,y[6]=g[6]+(g[5]<<16|g[5]>>>16)+(g[4]<<16|g[4]>>>16)|0,y[7]=g[7]+(g[6]<<8|g[6]>>>24)+g[5]|0}r.Rabbit=u._createHelper(C)}(),n.Rabbit)},486:function(it,U,a){var n;it.exports=(n=a(7585),a(8319),a(9493),a(7865),a(3057),function(){var r=n,u=r.lib.StreamCipher,o=r.algo,I=o.RC4=u.extend({_doReset:function(){for(var C=this._key,D=C.words,y=C.sigBytes,_=this._S=[],E=0;E<256;E++)_[E]=E;E=0;for(var O=0;E<256;E++){var ee=E%y,K=_[E];_[E]=_[O=(O+_[E]+(D[ee>>>2]>>>24-ee%4*8&255))%256],_[O]=K}this._i=this._j=0},_doProcessBlock:function(C,D){C[D]^=M.call(this)},keySize:8,ivSize:0});function M(){for(var C=this._S,D=this._i,y=this._j,_=0,E=0;E<4;E++){var O=C[D=(D+1)%256];C[D]=C[y=(y+C[D])%256],C[y]=O,_|=C[(C[D]+C[y])%256]<<24-8*E}return this._i=D,this._j=y,_}r.RC4=u._createHelper(I);var g=o.RC4Drop=I.extend({cfg:I.cfg.extend({drop:192}),_doReset:function(){I._doReset.call(this);for(var C=this.cfg.drop;C>0;C--)M.call(this)}});r.RC4Drop=u._createHelper(g)}(),n.RC4)},4973:function(it,U,a){var n;it.exports=(n=a(7585),function(r){var l=n,u=l.lib,o=u.WordArray,I=u.Hasher,M=l.algo,g=o.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),C=o.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),D=o.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),y=o.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),_=o.create([0,1518500249,1859775393,2400959708,2840853838]),E=o.create([1352829926,1548603684,1836072691,2053994217,0]),O=M.RIPEMD160=I.extend({_doReset:function(){this._hash=o.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(Z,z){for(var V=0;V<16;V++){var Me=z+V,Q=Z[Me];Z[Me]=16711935&(Q<<8|Q>>>24)|4278255360&(Q<<24|Q>>>8)}var nt,Tt,Rt,mt,gt,Le,Je,H,Ee,Ce,q,fe=this._hash.words,Ae=_.words,j=E.words,W=g.words,J=C.words,ie=D.words,Be=y.words;for(Le=nt=fe[0],Je=Tt=fe[1],H=Rt=fe[2],Ee=mt=fe[3],Ce=gt=fe[4],V=0;V<80;V+=1)q=nt+Z[z+W[V]]|0,q+=V<16?ee(Tt,Rt,mt)+Ae[0]:V<32?ue(Tt,Rt,mt)+Ae[1]:V<48?K(Tt,Rt,mt)+Ae[2]:V<64?ne(Tt,Rt,mt)+Ae[3]:De(Tt,Rt,mt)+Ae[4],q=(q=ve(q|=0,ie[V]))+gt|0,nt=gt,gt=mt,mt=ve(Rt,10),Rt=Tt,Tt=q,q=Le+Z[z+J[V]]|0,q+=V<16?De(Je,H,Ee)+j[0]:V<32?ne(Je,H,Ee)+j[1]:V<48?K(Je,H,Ee)+j[2]:V<64?ue(Je,H,Ee)+j[3]:ee(Je,H,Ee)+j[4],q=(q=ve(q|=0,Be[V]))+Ce|0,Le=Ce,Ce=Ee,Ee=ve(H,10),H=Je,Je=q;q=fe[1]+Rt+Ee|0,fe[1]=fe[2]+mt+Ce|0,fe[2]=fe[3]+gt+Le|0,fe[3]=fe[4]+nt+Je|0,fe[4]=fe[0]+Tt+H|0,fe[0]=q},_doFinalize:function(){var Z=this._data,z=Z.words,V=8*this._nDataBytes,Me=8*Z.sigBytes;z[Me>>>5]|=128<<24-Me%32,z[14+(Me+64>>>9<<4)]=16711935&(V<<8|V>>>24)|4278255360&(V<<24|V>>>8),Z.sigBytes=4*(z.length+1),this._process();for(var Q=this._hash,fe=Q.words,Ae=0;Ae<5;Ae++){var j=fe[Ae];fe[Ae]=16711935&(j<<8|j>>>24)|4278255360&(j<<24|j>>>8)}return Q},clone:function(){var Z=I.clone.call(this);return Z._hash=this._hash.clone(),Z}});function ee(Z,z,V){return Z^z^V}function ue(Z,z,V){return Z&z|~Z&V}function K(Z,z,V){return(Z|~z)^V}function ne(Z,z,V){return Z&V|z&~V}function De(Z,z,V){return Z^(z|~V)}function ve(Z,z){return Z<>>32-z}l.RIPEMD160=I._createHelper(O),l.HmacRIPEMD160=I._createHmacHelper(O)}(Math),n.RIPEMD160)},5162:function(it,U,a){var r,l,u,o,M,g,n;it.exports=(n=a(7585),u=(l=(r=n).lib).WordArray,M=[],g=r.algo.SHA1=(o=l.Hasher).extend({_doReset:function(){this._hash=new u.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(C,D){for(var y=this._hash.words,_=y[0],E=y[1],O=y[2],ee=y[3],ue=y[4],K=0;K<80;K++){if(K<16)M[K]=0|C[D+K];else{var ne=M[K-3]^M[K-8]^M[K-14]^M[K-16];M[K]=ne<<1|ne>>>31}var De=(_<<5|_>>>27)+ue+M[K];De+=K<20?1518500249+(E&O|~E&ee):K<40?1859775393+(E^O^ee):K<60?(E&O|E&ee|O&ee)-1894007588:(E^O^ee)-899497514,ue=ee,ee=O,O=E<<30|E>>>2,E=_,_=De}y[0]=y[0]+_|0,y[1]=y[1]+E|0,y[2]=y[2]+O|0,y[3]=y[3]+ee|0,y[4]=y[4]+ue|0},_doFinalize:function(){var C=this._data,D=C.words,y=8*this._nDataBytes,_=8*C.sigBytes;return D[_>>>5]|=128<<24-_%32,D[14+(_+64>>>9<<4)]=Math.floor(y/4294967296),D[15+(_+64>>>9<<4)]=y,C.sigBytes=4*D.length,this._process(),this._hash},clone:function(){var C=o.clone.call(this);return C._hash=this._hash.clone(),C}}),r.SHA1=o._createHelper(g),r.HmacSHA1=o._createHmacHelper(g),n.SHA1)},8769:function(it,U,a){var r,u,o,I,M,n;it.exports=(n=a(7585),a(1817),u=(r=n).lib.WordArray,M=(o=r.algo).SHA224=(I=o.SHA256).extend({_doReset:function(){this._hash=new u.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var g=I._doFinalize.call(this);return g.sigBytes-=4,g}}),r.SHA224=I._createHelper(M),r.HmacSHA224=I._createHmacHelper(M),n.SHA224)},1817:function(it,U,a){var n;it.exports=(n=a(7585),function(r){var l=n,u=l.lib,o=u.WordArray,I=u.Hasher,M=l.algo,g=[],C=[];!function(){function _(ue){for(var K=r.sqrt(ue),ne=2;ne<=K;ne++)if(!(ue%ne))return!1;return!0}function E(ue){return 4294967296*(ue-(0|ue))|0}for(var O=2,ee=0;ee<64;)_(O)&&(ee<8&&(g[ee]=E(r.pow(O,.5))),C[ee]=E(r.pow(O,1/3)),ee++),O++}();var D=[],y=M.SHA256=I.extend({_doReset:function(){this._hash=new o.init(g.slice(0))},_doProcessBlock:function(_,E){for(var O=this._hash.words,ee=O[0],ue=O[1],K=O[2],ne=O[3],De=O[4],ve=O[5],Z=O[6],z=O[7],V=0;V<64;V++){if(V<16)D[V]=0|_[E+V];else{var Me=D[V-15],fe=D[V-2];D[V]=((Me<<25|Me>>>7)^(Me<<14|Me>>>18)^Me>>>3)+D[V-7]+((fe<<15|fe>>>17)^(fe<<13|fe>>>19)^fe>>>10)+D[V-16]}var W=ee&ue^ee&K^ue&K,Be=z+((De<<26|De>>>6)^(De<<21|De>>>11)^(De<<7|De>>>25))+(De&ve^~De&Z)+C[V]+D[V];z=Z,Z=ve,ve=De,De=ne+Be|0,ne=K,K=ue,ue=ee,ee=Be+(((ee<<30|ee>>>2)^(ee<<19|ee>>>13)^(ee<<10|ee>>>22))+W)|0}O[0]=O[0]+ee|0,O[1]=O[1]+ue|0,O[2]=O[2]+K|0,O[3]=O[3]+ne|0,O[4]=O[4]+De|0,O[5]=O[5]+ve|0,O[6]=O[6]+Z|0,O[7]=O[7]+z|0},_doFinalize:function(){var _=this._data,E=_.words,O=8*this._nDataBytes,ee=8*_.sigBytes;return E[ee>>>5]|=128<<24-ee%32,E[14+(ee+64>>>9<<4)]=r.floor(O/4294967296),E[15+(ee+64>>>9<<4)]=O,_.sigBytes=4*E.length,this._process(),this._hash},clone:function(){var _=I.clone.call(this);return _._hash=this._hash.clone(),_}});l.SHA256=I._createHelper(y),l.HmacSHA256=I._createHmacHelper(y)}(Math),n.SHA256)},1971:function(it,U,a){var n;it.exports=(n=a(7585),a(401),function(r){var l=n,u=l.lib,o=u.WordArray,I=u.Hasher,g=l.x64.Word,C=l.algo,D=[],y=[],_=[];!function(){for(var ee=1,ue=0,K=0;K<24;K++){D[ee+5*ue]=(K+1)*(K+2)/2%64;var De=(2*ee+3*ue)%5;ee=ue%5,ue=De}for(ee=0;ee<5;ee++)for(ue=0;ue<5;ue++)y[ee+5*ue]=ue+(2*ee+3*ue)%5*5;for(var ve=1,Z=0;Z<24;Z++){for(var z=0,V=0,Me=0;Me<7;Me++){if(1&ve){var Q=(1<>>24)|4278255360&(ve<<24|ve>>>8),(z=K[De]).high^=Z=16711935&(Z<<8|Z>>>24)|4278255360&(Z<<24|Z>>>8),z.low^=ve}for(var V=0;V<24;V++){for(var Me=0;Me<5;Me++){for(var Q=0,fe=0,Ae=0;Ae<5;Ae++)Q^=(z=K[Me+5*Ae]).high,fe^=z.low;var j=E[Me];j.high=Q,j.low=fe}for(Me=0;Me<5;Me++){var W=E[(Me+4)%5],J=E[(Me+1)%5],ie=J.high,Be=J.low;for(Q=W.high^(ie<<1|Be>>>31),fe=W.low^(Be<<1|ie>>>31),Ae=0;Ae<5;Ae++)(z=K[Me+5*Ae]).high^=Q,z.low^=fe}for(var nt=1;nt<25;nt++){var Tt=(z=K[nt]).high,Rt=z.low,mt=D[nt];mt<32?(Q=Tt<>>32-mt,fe=Rt<>>32-mt):(Q=Rt<>>64-mt,fe=Tt<>>64-mt);var gt=E[y[nt]];gt.high=Q,gt.low=fe}var Le=E[0],Je=K[0];for(Le.high=Je.high,Le.low=Je.low,Me=0;Me<5;Me++)for(Ae=0;Ae<5;Ae++){var H=E[nt=Me+5*Ae],Ee=E[(Me+1)%5+5*Ae],Ce=E[(Me+2)%5+5*Ae];(z=K[nt]).high=H.high^~Ee.high&Ce.high,z.low=H.low^~Ee.low&Ce.low}var z,q=_[V];(z=K[0]).high^=q.high,z.low^=q.low}},_doFinalize:function(){var ee=this._data,ue=ee.words,ne=8*ee.sigBytes,De=32*this.blockSize;ue[ne>>>5]|=1<<24-ne%32,ue[(r.ceil((ne+1)/De)*De>>>5)-1]|=128,ee.sigBytes=4*ue.length,this._process();for(var ve=this._state,Z=this.cfg.outputLength/8,z=Z/8,V=[],Me=0;Me>>24)|4278255360&(fe<<24|fe>>>8),V.push(Ae=16711935&(Ae<<8|Ae>>>24)|4278255360&(Ae<<24|Ae>>>8)),V.push(fe)}return new o.init(V,Z)},clone:function(){for(var ee=I.clone.call(this),ue=ee._state=this._state.slice(0),K=0;K<25;K++)ue[K]=ue[K].clone();return ee}});l.SHA3=I._createHelper(O),l.HmacSHA3=I._createHmacHelper(O)}(Math),n.SHA3)},6787:function(it,U,a){var r,l,u,o,I,M,g,n;it.exports=(n=a(7585),a(401),a(3351),u=(l=(r=n).x64).Word,o=l.WordArray,g=(I=r.algo).SHA384=(M=I.SHA512).extend({_doReset:function(){this._hash=new o.init([new u.init(3418070365,3238371032),new u.init(1654270250,914150663),new u.init(2438529370,812702999),new u.init(355462360,4144912697),new u.init(1731405415,4290775857),new u.init(2394180231,1750603025),new u.init(3675008525,1694076839),new u.init(1203062813,3204075428)])},_doFinalize:function(){var C=M._doFinalize.call(this);return C.sigBytes-=16,C}}),r.SHA384=M._createHelper(g),r.HmacSHA384=M._createHmacHelper(g),n.SHA384)},3351:function(it,U,a){var n;it.exports=(n=a(7585),a(401),function(){var r=n,u=r.lib.Hasher,o=r.x64,I=o.Word,M=o.WordArray,g=r.algo;function C(){return I.create.apply(I,arguments)}var D=[C(1116352408,3609767458),C(1899447441,602891725),C(3049323471,3964484399),C(3921009573,2173295548),C(961987163,4081628472),C(1508970993,3053834265),C(2453635748,2937671579),C(2870763221,3664609560),C(3624381080,2734883394),C(310598401,1164996542),C(607225278,1323610764),C(1426881987,3590304994),C(1925078388,4068182383),C(2162078206,991336113),C(2614888103,633803317),C(3248222580,3479774868),C(3835390401,2666613458),C(4022224774,944711139),C(264347078,2341262773),C(604807628,2007800933),C(770255983,1495990901),C(1249150122,1856431235),C(1555081692,3175218132),C(1996064986,2198950837),C(2554220882,3999719339),C(2821834349,766784016),C(2952996808,2566594879),C(3210313671,3203337956),C(3336571891,1034457026),C(3584528711,2466948901),C(113926993,3758326383),C(338241895,168717936),C(666307205,1188179964),C(773529912,1546045734),C(1294757372,1522805485),C(1396182291,2643833823),C(1695183700,2343527390),C(1986661051,1014477480),C(2177026350,1206759142),C(2456956037,344077627),C(2730485921,1290863460),C(2820302411,3158454273),C(3259730800,3505952657),C(3345764771,106217008),C(3516065817,3606008344),C(3600352804,1432725776),C(4094571909,1467031594),C(275423344,851169720),C(430227734,3100823752),C(506948616,1363258195),C(659060556,3750685593),C(883997877,3785050280),C(958139571,3318307427),C(1322822218,3812723403),C(1537002063,2003034995),C(1747873779,3602036899),C(1955562222,1575990012),C(2024104815,1125592928),C(2227730452,2716904306),C(2361852424,442776044),C(2428436474,593698344),C(2756734187,3733110249),C(3204031479,2999351573),C(3329325298,3815920427),C(3391569614,3928383900),C(3515267271,566280711),C(3940187606,3454069534),C(4118630271,4000239992),C(116418474,1914138554),C(174292421,2731055270),C(289380356,3203993006),C(460393269,320620315),C(685471733,587496836),C(852142971,1086792851),C(1017036298,365543100),C(1126000580,2618297676),C(1288033470,3409855158),C(1501505948,4234509866),C(1607167915,987167468),C(1816402316,1246189591)],y=[];!function(){for(var E=0;E<80;E++)y[E]=C()}();var _=g.SHA512=u.extend({_doReset:function(){this._hash=new M.init([new I.init(1779033703,4089235720),new I.init(3144134277,2227873595),new I.init(1013904242,4271175723),new I.init(2773480762,1595750129),new I.init(1359893119,2917565137),new I.init(2600822924,725511199),new I.init(528734635,4215389547),new I.init(1541459225,327033209)])},_doProcessBlock:function(E,O){for(var ee=this._hash.words,ue=ee[0],K=ee[1],ne=ee[2],De=ee[3],ve=ee[4],Z=ee[5],z=ee[6],V=ee[7],Me=ue.high,Q=ue.low,fe=K.high,Ae=K.low,j=ne.high,W=ne.low,J=De.high,ie=De.low,Be=ve.high,nt=ve.low,Tt=Z.high,Rt=Z.low,mt=z.high,gt=z.low,Le=V.high,Je=V.low,H=Me,Ee=Q,Ce=fe,q=Ae,He=j,ae=W,Ze=J,Re=ie,de=Be,te=nt,ze=Tt,Ct=Rt,Ft=mt,jt=gt,gn=Le,kt=Je,Ye=0;Ye<80;Ye++){var k,N,P=y[Ye];if(Ye<16)N=P.high=0|E[O+2*Ye],k=P.low=0|E[O+2*Ye+1];else{var F=y[Ye-15],be=F.high,qe=F.low,At=(qe>>>1|be<<31)^(qe>>>8|be<<24)^(qe>>>7|be<<25),Bt=y[Ye-2],qt=Bt.high,Zt=Bt.low,bn=(Zt>>>19|qt<<13)^(Zt<<3|qt>>>29)^(Zt>>>6|qt<<26),En=y[Ye-7],Wt=y[Ye-16],pt=Wt.low;P.high=N=(N=(N=((be>>>1|qe<<31)^(be>>>8|qe<<24)^be>>>7)+En.high+((k=At+En.low)>>>0>>0?1:0))+((qt>>>19|Zt<<13)^(qt<<3|Zt>>>29)^qt>>>6)+((k+=bn)>>>0>>0?1:0))+Wt.high+((k+=pt)>>>0>>0?1:0),P.low=k}var ct,we=de&ze^~de&Ft,le=te&Ct^~te&jt,$=H&Ce^H&He^Ce&He,ye=(Ee>>>28|H<<4)^(Ee<<30|H>>>2)^(Ee<<25|H>>>7),bt=D[Ye],cn=bt.low,ut=gn+((de>>>14|te<<18)^(de>>>18|te<<14)^(de<<23|te>>>9))+((ct=kt+((te>>>14|de<<18)^(te>>>18|de<<14)^(te<<23|de>>>9)))>>>0>>0?1:0),tt=ye+(Ee&q^Ee&ae^q&ae);gn=Ft,kt=jt,Ft=ze,jt=Ct,ze=de,Ct=te,de=Ze+(ut=(ut=(ut=ut+we+((ct+=le)>>>0>>0?1:0))+bt.high+((ct+=cn)>>>0>>0?1:0))+N+((ct+=k)>>>0>>0?1:0))+((te=Re+ct|0)>>>0>>0?1:0)|0,Ze=He,Re=ae,He=Ce,ae=q,Ce=H,q=Ee,H=ut+(((H>>>28|Ee<<4)^(H<<30|Ee>>>2)^(H<<25|Ee>>>7))+$+(tt>>>0>>0?1:0))+((Ee=ct+tt|0)>>>0>>0?1:0)|0}Q=ue.low=Q+Ee,ue.high=Me+H+(Q>>>0>>0?1:0),Ae=K.low=Ae+q,K.high=fe+Ce+(Ae>>>0>>0?1:0),W=ne.low=W+ae,ne.high=j+He+(W>>>0>>0?1:0),ie=De.low=ie+Re,De.high=J+Ze+(ie>>>0>>0?1:0),nt=ve.low=nt+te,ve.high=Be+de+(nt>>>0>>0?1:0),Rt=Z.low=Rt+Ct,Z.high=Tt+ze+(Rt>>>0>>0?1:0),gt=z.low=gt+jt,z.high=mt+Ft+(gt>>>0>>0?1:0),Je=V.low=Je+kt,V.high=Le+gn+(Je>>>0>>0?1:0)},_doFinalize:function(){var E=this._data,O=E.words,ee=8*this._nDataBytes,ue=8*E.sigBytes;return O[ue>>>5]|=128<<24-ue%32,O[30+(ue+128>>>10<<5)]=Math.floor(ee/4294967296),O[31+(ue+128>>>10<<5)]=ee,E.sigBytes=4*O.length,this._process(),this._hash.toX32()},clone:function(){var E=u.clone.call(this);return E._hash=this._hash.clone(),E},blockSize:32});r.SHA512=u._createHelper(_),r.HmacSHA512=u._createHmacHelper(_)}(),n.SHA512)},7243:function(it,U,a){var n;it.exports=(n=a(7585),a(8319),a(9493),a(7865),a(3057),function(){var r=n,l=r.lib,u=l.WordArray,o=l.BlockCipher,I=r.algo,M=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],g=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],C=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],D=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],y=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],_=I.DES=o.extend({_doReset:function(){for(var K=this._key.words,ne=[],De=0;De<56;De++){var ve=M[De]-1;ne[De]=K[ve>>>5]>>>31-ve%32&1}for(var Z=this._subKeys=[],z=0;z<16;z++){var V=Z[z]=[],Me=C[z];for(De=0;De<24;De++)V[De/6|0]|=ne[(g[De]-1+Me)%28]<<31-De%6,V[4+(De/6|0)]|=ne[28+(g[De+24]-1+Me)%28]<<31-De%6;for(V[0]=V[0]<<1|V[0]>>>31,De=1;De<7;De++)V[De]=V[De]>>>4*(De-1)+3;V[7]=V[7]<<5|V[7]>>>27}var Q=this._invSubKeys=[];for(De=0;De<16;De++)Q[De]=Z[15-De]},encryptBlock:function(ue,K){this._doCryptBlock(ue,K,this._subKeys)},decryptBlock:function(ue,K){this._doCryptBlock(ue,K,this._invSubKeys)},_doCryptBlock:function(ue,K,ne){this._lBlock=ue[K],this._rBlock=ue[K+1],E.call(this,4,252645135),E.call(this,16,65535),O.call(this,2,858993459),O.call(this,8,16711935),E.call(this,1,1431655765);for(var De=0;De<16;De++){for(var ve=ne[De],Z=this._lBlock,z=this._rBlock,V=0,Me=0;Me<8;Me++)V|=D[Me][((z^ve[Me])&y[Me])>>>0];this._lBlock=z,this._rBlock=Z^V}var Q=this._lBlock;this._lBlock=this._rBlock,this._rBlock=Q,E.call(this,1,1431655765),O.call(this,8,16711935),O.call(this,2,858993459),E.call(this,16,65535),E.call(this,4,252645135),ue[K]=this._lBlock,ue[K+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function E(ue,K){var ne=(this._lBlock>>>ue^this._rBlock)&K;this._rBlock^=ne,this._lBlock^=ne<>>ue^this._lBlock)&K;this._lBlock^=ne,this._rBlock^=ne<192.");var ne=K.slice(0,2),De=K.length<4?K.slice(0,2):K.slice(2,4),ve=K.length<6?K.slice(0,2):K.slice(4,6);this._des1=_.createEncryptor(u.create(ne)),this._des2=_.createEncryptor(u.create(De)),this._des3=_.createEncryptor(u.create(ve))},encryptBlock:function(ue,K){this._des1.encryptBlock(ue,K),this._des2.decryptBlock(ue,K),this._des3.encryptBlock(ue,K)},decryptBlock:function(ue,K){this._des3.decryptBlock(ue,K),this._des2.encryptBlock(ue,K),this._des1.decryptBlock(ue,K)},keySize:6,ivSize:2,blockSize:2});r.TripleDES=o._createHelper(ee)}(),n.TripleDES)},401:function(it,U,a){var u,o,I,M,n;it.exports=(n=a(7585),o=(u=n.lib).Base,I=u.WordArray,(M=n.x64={}).Word=o.extend({init:function(D,y){this.high=D,this.low=y}}),M.WordArray=o.extend({init:function(D,y){D=this.words=D||[],this.sigBytes=null!=y?y:8*D.length},toX32:function(){for(var D=this.words,y=D.length,_=[],E=0;E{it.exports="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")()},7410:(it,U,a)=>{it.exports=a(3213),it.exports.parser=a(552)},3213:(it,U,a)=>{var n=a(1497),r=a(1264),l=a(2534)("engine.io-client:socket"),u=a(4068),o=a(552),I=a(1884),M=a(3257);function g(D,y){if(!(this instanceof g))return new g(D,y);y=y||{},D&&"object"==typeof D&&(y=D,D=null),D?(D=I(D),y.hostname=D.host,y.secure="https"===D.protocol||"wss"===D.protocol,y.port=D.port,D.query&&(y.query=D.query)):y.host&&(y.hostname=I(y.host).host),this.secure=null!=y.secure?y.secure:"undefined"!=typeof location&&"https:"===location.protocol,y.hostname&&!y.port&&(y.port=this.secure?"443":"80"),this.agent=y.agent||!1,this.hostname=y.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=y.port||("undefined"!=typeof location&&location.port?location.port:this.secure?443:80),this.query=y.query||{},"string"==typeof this.query&&(this.query=M.decode(this.query)),this.upgrade=!1!==y.upgrade,this.path=(y.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!y.forceJSONP,this.jsonp=!1!==y.jsonp,this.forceBase64=!!y.forceBase64,this.enablesXDR=!!y.enablesXDR,this.withCredentials=!1!==y.withCredentials,this.timestampParam=y.timestampParam||"t",this.timestampRequests=y.timestampRequests,this.transports=y.transports||["polling","websocket"],this.transportOptions=y.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=y.policyPort||843,this.rememberUpgrade=y.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=y.onlyBinaryUpgrades,this.perMessageDeflate=!1!==y.perMessageDeflate&&(y.perMessageDeflate||{}),!0===this.perMessageDeflate&&(this.perMessageDeflate={}),this.perMessageDeflate&&null==this.perMessageDeflate.threshold&&(this.perMessageDeflate.threshold=1024),this.pfx=y.pfx||void 0,this.key=y.key||void 0,this.passphrase=y.passphrase||void 0,this.cert=y.cert||void 0,this.ca=y.ca||void 0,this.ciphers=y.ciphers||void 0,this.rejectUnauthorized=void 0===y.rejectUnauthorized||y.rejectUnauthorized,this.forceNode=!!y.forceNode,this.isReactNative="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase(),("undefined"==typeof self||this.isReactNative)&&(y.extraHeaders&&Object.keys(y.extraHeaders).length>0&&(this.extraHeaders=y.extraHeaders),y.localAddress&&(this.localAddress=y.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}it.exports=g,g.priorWebsocketSuccess=!1,r(g.prototype),g.protocol=o.protocol,g.Socket=g,g.Transport=a(3330),g.transports=a(1497),g.parser=a(552),g.prototype.createTransport=function(D){l('creating transport "%s"',D);var y=function C(D){var y={};for(var _ in D)D.hasOwnProperty(_)&&(y[_]=D[_]);return y}(this.query);y.EIO=o.protocol,y.transport=D;var _=this.transportOptions[D]||{};return this.id&&(y.sid=this.id),new n[D]({query:y,socket:this,agent:_.agent||this.agent,hostname:_.hostname||this.hostname,port:_.port||this.port,secure:_.secure||this.secure,path:_.path||this.path,forceJSONP:_.forceJSONP||this.forceJSONP,jsonp:_.jsonp||this.jsonp,forceBase64:_.forceBase64||this.forceBase64,enablesXDR:_.enablesXDR||this.enablesXDR,withCredentials:_.withCredentials||this.withCredentials,timestampRequests:_.timestampRequests||this.timestampRequests,timestampParam:_.timestampParam||this.timestampParam,policyPort:_.policyPort||this.policyPort,pfx:_.pfx||this.pfx,key:_.key||this.key,passphrase:_.passphrase||this.passphrase,cert:_.cert||this.cert,ca:_.ca||this.ca,ciphers:_.ciphers||this.ciphers,rejectUnauthorized:_.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:_.perMessageDeflate||this.perMessageDeflate,extraHeaders:_.extraHeaders||this.extraHeaders,forceNode:_.forceNode||this.forceNode,localAddress:_.localAddress||this.localAddress,requestTimeout:_.requestTimeout||this.requestTimeout,protocols:_.protocols||void 0,isReactNative:this.isReactNative})},g.prototype.open=function(){var D;if(this.rememberUpgrade&&g.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))D="websocket";else{if(0===this.transports.length){var y=this;return void setTimeout(function(){y.emit("error","No transports available")},0)}D=this.transports[0]}this.readyState="opening";try{D=this.createTransport(D)}catch(_){return this.transports.shift(),void this.open()}D.open(),this.setTransport(D)},g.prototype.setTransport=function(D){l("setting transport %s",D.name);var y=this;this.transport&&(l("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=D,D.on("drain",function(){y.onDrain()}).on("packet",function(_){y.onPacket(_)}).on("error",function(_){y.onError(_)}).on("close",function(){y.onClose("transport close")})},g.prototype.probe=function(D){l('probing transport "%s"',D);var y=this.createTransport(D,{probe:1}),_=!1,E=this;function O(){E.onlyBinaryUpgrades&&(_=_||!this.supportsBinary&&E.transport.supportsBinary),_||(l('probe transport "%s" opened',D),y.send([{type:"ping",data:"probe"}]),y.once("packet",function(z){if(!_)if("pong"===z.type&&"probe"===z.data){if(l('probe transport "%s" pong',D),E.upgrading=!0,E.emit("upgrading",y),!y)return;g.priorWebsocketSuccess="websocket"===y.name,l('pausing current transport "%s"',E.transport.name),E.transport.pause(function(){_||"closed"!==E.readyState&&(l("changing transport and sending upgrade packet"),ve(),E.setTransport(y),y.send([{type:"upgrade"}]),E.emit("upgrade",y),y=null,E.upgrading=!1,E.flush())})}else{l('probe transport "%s" failed',D);var V=new Error("probe error");V.transport=y.name,E.emit("upgradeError",V)}}))}function ee(){_||(_=!0,ve(),y.close(),y=null)}function ue(Z){var z=new Error("probe error: "+Z);z.transport=y.name,ee(),l('probe transport "%s" failed because of error: %s',D,Z),E.emit("upgradeError",z)}function K(){ue("transport closed")}function ne(){ue("socket closed")}function De(Z){y&&Z.name!==y.name&&(l('"%s" works - aborting "%s"',Z.name,y.name),ee())}function ve(){y.removeListener("open",O),y.removeListener("error",ue),y.removeListener("close",K),E.removeListener("close",ne),E.removeListener("upgrading",De)}g.priorWebsocketSuccess=!1,y.once("open",O),y.once("error",ue),y.once("close",K),this.once("close",ne),this.once("upgrading",De),y.open()},g.prototype.onOpen=function(){if(l("socket open"),this.readyState="open",g.priorWebsocketSuccess="websocket"===this.transport.name,this.emit("open"),this.flush(),"open"===this.readyState&&this.upgrade&&this.transport.pause){l("starting upgrade probes");for(var D=0,y=this.upgrades.length;D{var n=a(552),r=a(1264);function l(u){this.path=u.path,this.hostname=u.hostname,this.port=u.port,this.secure=u.secure,this.query=u.query,this.timestampParam=u.timestampParam,this.timestampRequests=u.timestampRequests,this.readyState="",this.agent=u.agent||!1,this.socket=u.socket,this.enablesXDR=u.enablesXDR,this.withCredentials=u.withCredentials,this.pfx=u.pfx,this.key=u.key,this.passphrase=u.passphrase,this.cert=u.cert,this.ca=u.ca,this.ciphers=u.ciphers,this.rejectUnauthorized=u.rejectUnauthorized,this.forceNode=u.forceNode,this.isReactNative=u.isReactNative,this.extraHeaders=u.extraHeaders,this.localAddress=u.localAddress}it.exports=l,r(l.prototype),l.prototype.onError=function(u,o){var I=new Error(u);return I.type="TransportError",I.description=o,this.emit("error",I),this},l.prototype.open=function(){return("closed"===this.readyState||""===this.readyState)&&(this.readyState="opening",this.doOpen()),this},l.prototype.close=function(){return("opening"===this.readyState||"open"===this.readyState)&&(this.doClose(),this.onClose()),this},l.prototype.send=function(u){if("open"!==this.readyState)throw new Error("Transport not open");this.write(u)},l.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},l.prototype.onData=function(u){var o=n.decodePacket(u,this.socket.binaryType);this.onPacket(o)},l.prototype.onPacket=function(u){this.emit("packet",u)},l.prototype.onClose=function(){this.readyState="closed",this.emit("close")}},1497:(it,U,a)=>{var n=a(3035),r=a(2889),l=a(6029),u=a(3909);U.polling=function o(I){var g=!1,C=!1,D=!1!==I.jsonp;if("undefined"!=typeof location){var y="https:"===location.protocol,_=location.port;_||(_=y?443:80),g=I.hostname!==location.hostname||_!==I.port,C=I.secure!==y}if(I.xdomain=g,I.xscheme=C,"open"in new n(I)&&!I.forceJSONP)return new r(I);if(!D)throw new Error("JSONP disabled");return new l(I)},U.websocket=u},6029:(it,U,a)=>{var n=a(3904),r=a(9471),l=a(851);it.exports=g;var I,u=/\n/g,o=/\\n/g;function M(){}function g(C){n.call(this,C),this.query=this.query||{},I||(I=l.___eio=l.___eio||[]),this.index=I.length;var D=this;I.push(function(y){D.onData(y)}),this.query.j=this.index,"function"==typeof addEventListener&&addEventListener("beforeunload",function(){D.script&&(D.script.onerror=M)},!1)}r(g,n),g.prototype.supportsBinary=!1,g.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),n.prototype.doClose.call(this)},g.prototype.doPoll=function(){var C=this,D=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),D.async=!0,D.src=this.uri(),D.onerror=function(E){C.onError("jsonp poll error",E)};var y=document.getElementsByTagName("script")[0];y?y.parentNode.insertBefore(D,y):(document.head||document.body).appendChild(D),this.script=D,"undefined"!=typeof navigator&&/gecko/i.test(navigator.userAgent)&&setTimeout(function(){var E=document.createElement("iframe");document.body.appendChild(E),document.body.removeChild(E)},100)},g.prototype.doWrite=function(C,D){var y=this;if(!this.form){var ee,_=document.createElement("form"),E=document.createElement("textarea"),O=this.iframeId="eio_iframe_"+this.index;_.className="socketio",_.style.position="absolute",_.style.top="-1000px",_.style.left="-1000px",_.target=O,_.method="POST",_.setAttribute("accept-charset","utf-8"),E.name="d",_.appendChild(E),document.body.appendChild(_),this.form=_,this.area=E}function ue(){K(),D()}function K(){if(y.iframe)try{y.form.removeChild(y.iframe)}catch(De){y.onError("jsonp polling iframe removal error",De)}try{ee=document.createElement('