diff --git a/webui/dist/bitmagnet/browser/chunk-O2AXX42O.js b/webui/dist/bitmagnet/browser/chunk-2SUTZ3QE.js similarity index 96% rename from webui/dist/bitmagnet/browser/chunk-O2AXX42O.js rename to webui/dist/bitmagnet/browser/chunk-2SUTZ3QE.js index 31679803..8f108c2b 100644 --- a/webui/dist/bitmagnet/browser/chunk-O2AXX42O.js +++ b/webui/dist/bitmagnet/browser/chunk-2SUTZ3QE.js @@ -1 +1 @@ -import{a as D,b as N,c as z,d as Ae,e as Ne,f as ze,g as Qe}from"./chunk-LACCEILM.js";import{a as Re,b as De}from"./chunk-ZVYX4MB3.js";import{a as qe}from"./chunk-DKVITRV6.js";import"./chunk-KUHKEGBL.js";import{a as Ce}from"./chunk-3PIWRAOL.js";import{a as Le}from"./chunk-M3BEO55A.js";import{Aa as Fe,Ba as Ve,Ca as Be,E as ye,J as ve,L as Se,M as be,Ua as je,a as se,b as le,ba as Te,d as pe,e as ue,f as me,g as de,h as _e,i as ge,ja as we,ka as Me,la as Oe,ma as Pe,n as fe,q as he,qa as ke,r as xe,ra as Ie,ya as Ee,za as $e}from"./chunk-4NEHCUZ2.js";import"./chunk-6XXA7HXI.js";import{j as ae,l as ce}from"./chunk-FKMTSCBK.js";import{$ as X,$b as s,$c as re,B as M,Cb as x,Ea as _,Fa as g,Gb as ee,Hb as f,Kb as L,Mb as v,N as W,O as Y,Ob as k,Pb as I,Q as K,Qb as p,Rb as u,Sb as A,Tb as te,Ub as ne,Wb as P,Zb as h,_c as oe,a,b as l,jc as R,kb as c,kc as m,l as y,lc as E,mc as S,nc as $,o as G,pc as ie,qa as O,ua as Z,uc as b,vc as T}from"./chunk-3DR3CJRN.js";var Q={items:[],totalCount:0,totalCountIsEstimate:!1,aggregations:{}},V=class{constructor(n,e,o){this.apollo=n,this.errorsService=e,this.currentRequest=new y(0),this.loadingSubject=new y(!1),this.loading$=this.loadingSubject.asObservable(),this.result=Q,this.resultSubject=new y(this.result),this.result$=this.resultSubject.asObservable(),this.items$=this.resultSubject.pipe(M(i=>i.items)),this.overallTotalCount$=this.resultSubject.pipe(M(i=>{let r=0,d=!1;for(let w of i.aggregations.contentType??[])r+=w.count,d=d||w.isEstimate;return{count:r,isEstimate:d}})),this.availableContentTypes$=this.resultSubject.pipe(X((i,r)=>Array.from(new Set([...i,...(r.aggregations.contentType??[]).flatMap(d=>d.value?[d.value]:[])])),[])),this.contentTypeCounts$=this.resultSubject.pipe(M(i=>Object.fromEntries((i.aggregations.contentType??[]).map(r=>[r.value,{count:r.count,isEstimate:r.isEstimate}])))),o.subscribe(i=>{this.input=i.input,this.loadResult({input:l(a({},i.input),{cached:!0})})}),this.resultSubject.subscribe(i=>{this.result=i})}connect({}){return this.items$}disconnect(){this.resultSubject.complete()}refresh(){this.loadResult({input:l(a({},this.input),{cached:!1})})}loadResult(n){this.currentSubscription&&(this.currentSubscription.unsubscribe(),this.currentSubscription=void 0),this.loadingSubject.next(!0);let e=this.currentRequest.getValue()+1;this.currentRequest.next(e);let o=this.apollo.query({query:ye,variables:n,fetchPolicy:"no-cache"}).pipe(M(i=>i.data.torrentContent.search)).pipe(W(i=>(this.errorsService.addError(`Error loading item results: ${i.message}`),G)));this.currentSubscription=o.subscribe(i=>{e===this.currentRequest.getValue()&&(this.loadingSubject.next(!1),this.resultSubject.next(i))})}};var He=t=>({input:{queryString:t.queryString,limit:t.limit,page:t.page,totalCount:!0,hasNextPage:!0,orderBy:[t.orderBy],facets:{contentType:{aggregate:!0,filter:t.contentType?[t.contentType==="null"?null:t.contentType]:void 0},genre:t.facets.genre.active?{aggregate:!0,filter:t.facets.genre.filter}:void 0,language:t.facets.language.active?{aggregate:t.facets.language.active,filter:t.facets.language.filter}:void 0,torrentFileType:t.facets.fileType.active?{aggregate:!0,filter:t.facets.fileType.filter}:void 0,torrentSource:t.facets.torrentSource.active?{aggregate:!0,filter:t.facets.torrentSource.filter}:void 0,torrentTag:t.facets.torrentTag.active?{aggregate:!0,filter:t.facets.torrentTag.filter}:void 0,videoResolution:t.facets.videoResolution.active?{aggregate:!0,filter:t.facets.videoResolution.filter}:void 0,videoSource:t.facets.videoSource.active?{aggregate:!0,filter:t.facets.videoSource.filter}:void 0}}}),C={active:!1},B=class{constructor(n){this.controlsSubject=new y(n),this.controls$=this.controlsSubject.asObservable(),this.paramsSubject=new y(He(n)),this.params$=this.paramsSubject.asObservable(),this.controls$.pipe(K(100)).subscribe(e=>{let o=this.paramsSubject.getValue(),i=He(e);JSON.stringify(o)!==JSON.stringify(i)&&this.paramsSubject.next(i)})}update(n){let e=this.controlsSubject.getValue(),o=n(e);JSON.stringify(e)!==JSON.stringify(o)&&this.controlsSubject.next(o)}selectLanguage(n){this.update(e=>l(a({},e),{language:n}))}selectContentType(n){this.update(e=>l(a({},e),{contentType:n,page:1,facets:l(a({},e.facets),{genre:H(n,Je.contentTypes)?e.facets.genre:C,videoResolution:H(n,Ue.contentTypes)?e.facets.videoResolution:C,videoSource:H(n,Ge.contentTypes)?e.facets.videoSource:C})}))}activateFacet(n){this.update(e=>l(a({},e),{facets:n.patchInput(e.facets,l(a({},n.extractInput(e.facets)),{active:!0}))}))}deactivateFacet(n){this.update(e=>{let o=n.extractInput(e.facets);return l(a({},e),{page:o.filter?1:e.page,facets:n.patchInput(e.facets,l(a({},o),{active:!1,filter:void 0}))})})}activateFilter(n,e){this.update(o=>{let i=n.extractInput(o.facets);return l(a({},o),{page:1,facets:n.patchInput(o.facets,l(a({},i),{filter:Array.from(new Set([...i.filter??[],e])).sort()}))})})}deactivateFilter(n,e){this.update(o=>{let i=n.extractInput(o.facets),r=i.filter?.filter(d=>d!==e);return l(a({},o),{page:1,facets:n.patchInput(o.facets,l(a({},i),{filter:r?.length?r:void 0}))})})}setQueryString(n){n=n||void 0,this.update(e=>{let o=e.orderBy;return n?n!==e.queryString&&(o=U):o.field==="relevance"&&(o=F),l(a({},e),{queryString:n,orderBy:o,page:n===e.queryString?e.page:1})})}selectOrderBy(n){let e={field:n,descending:J.find(o=>o.field===n)?.descending??!1};this.update(o=>l(a({},o),{orderBy:e.field!=="relevance"||o.queryString?e:F,page:1}))}toggleOrderByDirection(){this.update(n=>l(a({},n),{orderBy:l(a({},n.orderBy),{descending:!n.orderBy.descending}),page:1}))}handlePageEvent(n){this.update(e=>l(a({},e),{limit:n.pageSize,page:n.page}))}},et={key:"torrent_source",icon:"mediation",allowNull:!1,extractInput:t=>t.torrentSource,patchInput:(t,n)=>l(a({},t),{torrentSource:n}),extractAggregations:t=>t.torrentSource??[],resolveLabel:t=>t.label},tt={key:"torrent_tag",icon:"sell",allowNull:!1,extractInput:t=>t.torrentTag,patchInput:(t,n)=>l(a({},t),{torrentTag:n}),extractAggregations:t=>t.torrentTag??[],resolveLabel:t=>t.value},nt={key:"file_type",icon:"file_present",allowNull:!1,extractInput:t=>t.fileType,patchInput:(t,n)=>l(a({},t),{fileType:n}),extractAggregations:t=>t.torrentFileType??[],resolveLabel:(t,n)=>n.translate(`file_types.${t.value}`)},it={key:"language",icon:"translate",allowNull:!1,extractInput:t=>t.language,patchInput:(t,n)=>l(a({},t),{language:n}),extractAggregations:t=>t.language??[],resolveLabel:(t,n)=>n.translate(`languages.${t.value}`)},Je={key:"genre",icon:"theater_comedy",allowNull:!1,contentTypes:["movie","tv_show"],extractInput:t=>t.genre,patchInput:(t,n)=>l(a({},t),{genre:n}),extractAggregations:t=>t.genre??[],resolveLabel:t=>t.label},Ue={key:"video_resolution",icon:"aspect_ratio",allowNull:!0,contentTypes:["movie","tv_show","xxx"],extractInput:t=>t.videoResolution,patchInput:(t,n)=>l(a({},t),{videoResolution:n}),extractAggregations:t=>(t.videoResolution??[]).map(n=>l(a({},n),{value:n.value??null})),resolveLabel:t=>t.value?.slice(1)??"?"},Ge={key:"video_source",icon:"album",allowNull:!0,contentTypes:["movie","tv_show","xxx"],extractInput:t=>t.videoSource,patchInput:(t,n)=>l(a({},t),{videoSource:n}),extractAggregations:t=>(t.videoSource??[]).map(n=>l(a({},n),{value:n.value??null})),resolveLabel:t=>t.value??"?"},j=[et,tt,nt,it,Je,Ue,Ge],J=[{field:"relevance",descending:!0},{field:"published_at",descending:!0},{field:"updated_at",descending:!0},{field:"size",descending:!0},{field:"files_count",descending:!0},{field:"seeders",descending:!0},{field:"leechers",descending:!0},{field:"name",descending:!1}],F={field:"published_at",descending:!0},U={field:"relevance",descending:!0},H=(t,n)=>!n||t&&n.includes(t);var We=(t,n)=>n.key,ot=(t,n)=>n.field,Ye=(t,n)=>n.value;function rt(t,n){if(t&1&&(p(0,"small"),m(1),b(2,"number"),u()),t&2){let e=n;c(),$("",e.isEstimate?"~":"","",T(2,2,e.count),"")}}function at(t,n){if(t&1&&(p(0,"small"),m(1),b(2,"number"),u()),t&2){let e=n;c(),$("",e.isEstimate?"~":"","",T(2,2,e.count),"")}}function ct(t,n){t&1&&(p(0,"small"),m(1,"0"),u())}function st(t,n){if(t&1){let e=P();p(0,"li",5),h("click",function(){_(e);let i=s().$implicit,r=s(2);return g(r.controller.selectContentType(i.key))}),p(1,"mat-icon"),m(2),u(),m(3),x(4,at,3,4,"small"),b(5,"async"),x(6,ct,2,0,"small"),u()}if(t&2){let e,o=s().$implicit,i=s().$implicit,r=s();L(r.controls.contentType===o.key?"active":""),c(2),E(o.icon),c(),S(" ",i("content_types.plural."+o.key)," "),c(),v((e=(e=T(5,5,r.dataSource.contentTypeCounts$))==null?null:e[o.key])?4:6,e)}}function lt(t,n){if(t&1&&(x(0,st,7,7,"li",23),b(1,"async")),t&2){let e,o=n.$implicit,i=s(2);v(o.key==="null"||(e=T(1,1,i.dataSource.availableContentTypes$))!=null&&e.includes(o.key)?0:-1)}}function pt(t,n){if(t&1){let e=P();p(0,"mat-checkbox",29),h("change",function(i){let r=_(e).$implicit,d=s(3).$implicit,w=s(2);return g(i.checked?w.controller.activateFilter(d,r.value):w.controller.deactivateFilter(d,r.value))}),m(1),p(2,"small"),m(3),b(4,"number"),u()()}if(t&2){let e=n.$implicit,o=s(3).$implicit;f("checked",o.filter==null?null:o.filter.includes(e.value)),c(),S(" ",e.label," "),c(2),$("",e.isEstimate?"~":"","",T(4,4,e.count),"")}}function ut(t,n){if(t&1&&(p(0,"section",26),k(1,pt,5,6,"mat-checkbox",28,Ye),u()),t&2){let e=s(2).$implicit;c(),I(e.aggregations)}}function mt(t,n){if(t&1){let e=P();p(0,"mat-checkbox",31),h("change",function(){let i=_(e).$implicit,r=s(4).$implicit,d=s(2);return g(d.controller.activateFilter(r,i.value))}),m(1),p(2,"small"),m(3),b(4,"number"),u()()}if(t&2){let e=n.$implicit;c(),S(" ",e.label," "),c(2),$("",e.isEstimate?"~":"","",T(4,3,e.count),"")}}function dt(t,n){if(t&1&&k(0,mt,5,5,"mat-checkbox",30,Ye),t&2){let e=s(3).$implicit;I(e.aggregations)}}function _t(t,n){if(t&1&&m(0),t&2){let e=s(4).$implicit;S(" ",e("general.none")," ")}}function gt(t,n){if(t&1&&(p(0,"section",27),x(1,dt,2,0)(2,_t,1,1),u()),t&2){let e=s(2).$implicit;c(),v(e.aggregations.length?1:2)}}function ft(t,n){if(t&1){let e=P();p(0,"mat-expansion-panel",25),h("opened",function(){_(e);let i=s().$implicit,r=s(2);return g(r.controller.activateFacet(i))})("closed",function(){_(e);let i=s().$implicit,r=s(2);return g(r.controller.deactivateFacet(i))}),p(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"mat-icon"),m(4),u(),m(5),u()(),x(6,ut,3,0,"section",26)(7,gt,3,1,"section",27),u()}if(t&2){let e=s().$implicit,o=s().$implicit;f("expanded",e.active),c(4),E(e.icon),c(),S(" ",o("facets."+e.key)," "),c(),v(e.filter!=null&&e.filter.length?6:7)}}function ht(t,n){if(t&1&&x(0,ft,8,4,"mat-expansion-panel",24),t&2){let e=n.$implicit;v(e.relevant?0:-1)}}function xt(t,n){if(t&1){let e=P();p(0,"button",17),h("click",function(){_(e);let i=s(2);return i.queryString.reset(),g(i.controller.setQueryString(null))}),p(1,"mat-icon"),m(2,"close"),u()()}if(t&2){let e=s().$implicit;f("matTooltip",e("torrents.clear_search"))}}function Ct(t,n){if(t&1&&(p(0,"mat-option",32),m(1),u()),t&2){let e=s().$implicit,o=s().$implicit;f("value",e.field),c(),S(" ",o("torrents.ordering."+e.field)," ")}}function yt(t,n){if(t&1&&x(0,Ct,2,2,"mat-option",32),t&2){let e=n.$implicit,o=s(2);v(e.field!="relevance"||o.queryString.value?0:-1)}}function vt(t,n){if(t&1){let e=P();te(0),p(1,"mat-drawer-container",2)(2,"mat-drawer",3,0)(4,"mat-expansion-panel",4)(5,"mat-expansion-panel-header")(6,"mat-panel-title")(7,"mat-icon"),m(8,"interests"),u(),m(9),u()(),p(10,"section")(11,"nav")(12,"ul")(13,"li",5),h("click",function(){_(e);let i=s();return g(i.controller.selectContentType(null))}),p(14,"mat-icon",6),m(15,"emergency"),u(),m(16),x(17,rt,3,4,"small"),b(18,"async"),u(),k(19,lt,2,3,null,null,We),u()()()(),k(21,ht,1,1,null,null,We),b(23,"async"),u(),p(24,"mat-drawer-content")(25,"div",7)(26,"div",8)(27,"button",9),h("click",function(){_(e);let i=R(3);return g(i.toggle())}),p(28,"mat-icon",10),m(29),u()()(),p(30,"div",11)(31,"mat-form-field",12)(32,"input",13),h("keyup.enter",function(){_(e);let i=s();return g(i.controller.setQueryString(i.queryString.value))}),u(),x(33,xt,3,1,"button",14),u()(),p(34,"div",15)(35,"mat-form-field",12)(36,"mat-label"),m(37),u(),p(38,"mat-select",16),h("valueChange",function(i){_(e);let r=s();return g(r.controller.selectOrderBy(i))}),k(39,yt,1,1,null,null,ot),u()(),p(41,"button",17),h("click",function(){_(e);let i=s();return g(i.controller.toggleOrderByDirection())}),p(42,"mat-icon"),m(43),u()()(),p(44,"div",18)(45,"button",19),h("click",function(){_(e);let i=s();return g(i.dataSource.refresh())}),p(46,"mat-icon"),m(47,"sync"),u()()()(),A(48,"mat-divider"),p(49,"app-torrents-bulk-actions",20),h("updated",function(){_(e);let i=s();return g(i.dataSource.refresh())}),u(),A(50,"mat-divider"),p(51,"app-torrents-table",21),h("updated",function(){_(e);let i=s();return g(i.dataSource.refresh())}),u(),p(52,"app-paginator",22),h("paging",function(i){_(e);let r=s();return g(r.controller.handlePageEvent(i))}),u()()(),ne()}if(t&2){let e,o=n.$implicit,i=R(3),r=s();c(2),f("mode",r.breakpoints.sizeAtLeast("Medium")?"side":"over")("opened",r.breakpoints.sizeAtLeast("Medium")),ee("role",r.breakpoints.sizeAtLeast("Medium")?"navigation":"dialog"),c(2),f("expanded",r.breakpoints.sizeAtLeast("Medium")),c(5),S(" ",o("facets.content_type")," "),c(4),L(r.controls.contentType===null?"active":""),c(3),S("",o("content_types.plural.all")," "),c(),v((e=T(18,29,r.dataSource.overallTotalCount$))?17:-1,e),c(2),I(r.contentTypes),c(2),I(T(23,31,r.facets$)),c(6),f("matTooltip",o("torrents.toggle_drawer")),c(2),E(i.opened?"arrow_circle_left":"arrow_circle_right"),c(3),f("placeholder",o("torrents.search"))("formControl",r.queryString),c(),v(r.queryString.value?33:-1),c(4),E(o("torrents.order_by")),c(),f("value",r.controls.orderBy.field),c(),I(r.orderByOptions),c(2),f("matTooltip",o("torrents.order_direction_toggle")),c(2),E(r.controls.orderBy.descending?"arrow_downward":"arrow_upward"),c(2),f("matTooltip",o("torrents.refresh")),c(4),f("selectedItems$",r.selectedItems$),c(2),f("dataSource",r.dataSource)("displayedColumns",r.breakpoints.sizeAtLeast("Medium")?r.allColumns:r.compactColumns)("selection",r.selection),c(),f("page",r.controls.page)("pageSize",r.controls.limit)("pageLength",r.dataSource.result.items.length)("totalLength",r.dataSource.result.totalCount)("totalIsEstimate",r.dataSource.result.totalCountIsEstimate)("hasNextPage",r.dataSource.result.hasNextPage)}}var fn=(()=>{class t{constructor(){this.route=O(ae),this.router=O(ce),this.apollo=O(ge),this.errorsService=O(Ce),this.transloco=O(se),this.breakpoints=O(Le),this.contentTypes=De,this.orderByOptions=J,this.allColumns=ze,this.compactColumns=Qe,this.queryString=new me(""),this.result=Q,this.selection=new _e(!0,[]),this.selectedItemsSubject=new y([]),this.selectedItems$=this.selectedItemsSubject.asObservable(),this.subscriptions=Array(),this.controls=l(a({},St),{language:this.transloco.getActiveLang()}),this.controller=new B(this.controls),this.dataSource=new V(this.apollo,this.errorsService,this.controller.params$),this.subscriptions.push(this.controller.controls$.subscribe(e=>{this.controls=e})),this.facets$=this.controller.controls$.pipe(Y(this.dataSource.result$),M(([e,o])=>j.map(i=>l(a(a({},i),i.extractInput(e.facets)),{relevant:!i.contentTypes||!!(e.contentType&&e.contentType!=="null"&&i.contentTypes.includes(e.contentType)),aggregations:i.extractAggregations(o.aggregations).map(r=>l(a({},r),{label:i.resolveLabel(r,this.transloco)}))})))),this.subscriptions.push(this.dataSource.result$.subscribe(e=>{this.result=e;let o=new Set(e.items.map(({infoHash:i})=>i));this.selection.deselect(...this.selection.selected.filter(i=>!o.has(i)))}))}ngOnInit(){this.subscriptions.push(this.route.queryParams.subscribe(e=>{let o=N(e,"query");this.queryString.setValue(o??null),this.controller.update(i=>{let r=D(e,"facets"),d=i.orderBy;return o?o!==i.queryString&&(d=U):d.field==="relevance"&&(d=F),l(a({},i),{queryString:o,orderBy:d,contentType:bt(e,"content_type"),limit:z(e,"limit")??i.limit,page:z(e,"page")??i.page,facets:j.reduce((w,q)=>{let Xe=r?.includes(q.key)??!1,Ze=D(e,q.key);return q.patchInput(w,{active:Xe,filter:Ze})},i.facets)})})}),this.controller.controls$.subscribe(e=>{let o=e.page,i=e.limit;o===1&&(o=void 0),i===Ke&&(i=void 0),this.router.navigate([],{relativeTo:this.route,queryParams:a({query:e.queryString?encodeURIComponent(e.queryString):void 0,page:o,limit:i,content_type:e.contentType},Tt(e.facets)),queryParamsHandling:"merge"})}),this.selection.changed.subscribe(e=>{let o=new Set(e.source.selected);this.selectedItemsSubject.next(this.result.items.filter(i=>o.has(i.infoHash)))}))}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe()),this.subscriptions=new Array}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=Z({type:t,selectors:[["app-torrents-search"]],standalone:!0,features:[ie],decls:1,vars:0,consts:[["drawer",""],[4,"transloco"],[1,"drawer-container"],[1,"drawer",3,"mode","opened"],[1,"panel-content-type",3,"expanded"],[3,"click"],["fontSet","material-icons"],[1,"search-form"],[1,"form-field-container","button-container","button-container-toggle-drawer"],["type","button","mat-icon-button","",1,"button-toggle-drawer",3,"click","matTooltip"],["aria-label","Side nav toggle icon","fontSet","material-icons"],[1,"form-field-container","form-field-container-search-query"],["subscriptSizing","dynamic"],["matInput","","autocapitalize","none",3,"keyup.enter","placeholder","formControl"],["mat-icon-button","",3,"matTooltip"],[1,"form-field-container","form-field-container-order-by"],[3,"valueChange","value"],["mat-icon-button","",3,"click","matTooltip"],[1,"form-field-container","button-container","button-container-refresh"],["mat-mini-fab","","color","primary",3,"click","matTooltip"],[3,"updated","selectedItems$"],[3,"updated","dataSource","displayedColumns","selection"],[3,"paging","page","pageSize","pageLength","totalLength","totalIsEstimate","hasNextPage"],[3,"class"],[3,"expanded"],[3,"opened","closed","expanded"],[1,"filtered"],[1,"unfiltered"],[3,"checked"],[3,"change","checked"],["checked","true"],["checked","true",3,"change"],[3,"value"]],template:function(o,i){o&1&&x(0,vt,53,33,"ng-container",1)},dependencies:[je,fe,xe,he,Te,we,Me,Oe,Pe,be,Se,ke,Ie,$e,Ve,Be,Fe,Ee,pe,ue,de,le,oe,re,ve,qe,Ae,Ne],styles:[".mat-expansion-panel[_ngcontent-%COMP%]{margin-top:14px;margin-right:14px}.mat-expansion-panel[_ngcontent-%COMP%] section[_ngcontent-%COMP%]{margin-left:-10px}.mat-expansion-panel.panel-content-type[_ngcontent-%COMP%]{margin-top:20px}.mat-expansion-panel.panel-content-type[_ngcontent-%COMP%] section[_ngcontent-%COMP%]{margin-left:0}.mat-expansion-panel[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{list-style:none;padding-left:0;margin:0}.mat-expansion-panel[_ngcontent-%COMP%] mat-panel-title[_ngcontent-%COMP%], .mat-expansion-panel[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{position:relative;line-height:40px;padding-left:40px}.mat-expansion-panel[_ngcontent-%COMP%] mat-panel-title[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .mat-expansion-panel[_ngcontent-%COMP%] li[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{position:absolute;left:0;top:8px}.mat-expansion-panel[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{cursor:pointer}.mat-expansion-panel[_ngcontent-%COMP%] li[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{top:6px}.mat-expansion-panel[_ngcontent-%COMP%] li[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{float:right;font-size:.8rem}.mat-expansion-panel[_ngcontent-%COMP%] mat-checkbox[_ngcontent-%COMP%]{display:block}.mat-expansion-panel[_ngcontent-%COMP%] mat-checkbox[_ngcontent-%COMP%] label{min-width:220px}.mat-expansion-panel[_ngcontent-%COMP%] mat-checkbox[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{margin-left:10px;position:absolute;right:0}.search-form[_ngcontent-%COMP%]{padding-top:20px;padding-bottom:10px;position:relative;clear:both;display:flex;flex-wrap:wrap}.search-form[_ngcontent-%COMP%] .form-field-container[_ngcontent-%COMP%]{display:inline-flex;flex-direction:column;position:relative;margin-left:20px;padding-bottom:20px}.search-form[_ngcontent-%COMP%] .form-field-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{top:8px}.search-form[_ngcontent-%COMP%] .form-field-container.form-field-container-order-by[_ngcontent-%COMP%]{padding-right:40px}.search-form[_ngcontent-%COMP%] .form-field-container.form-field-container-order-by[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{position:absolute;right:0}.search-form[_ngcontent-%COMP%] .form-field-container.form-field-container-search-query[_ngcontent-%COMP%]{width:300px}.search-form[_ngcontent-%COMP%] .form-field-container.form-field-container-search-query[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{position:absolute;right:0}.search-form[_ngcontent-%COMP%] .form-field-container.form-field-container-search-query[_ngcontent-%COMP%] .mat-mdc-form-field-infix{padding-right:50px}.search-form[_ngcontent-%COMP%] .button-container-toggle-direction[_ngcontent-%COMP%]{margin-left:4px}app-paginator[_ngcontent-%COMP%]{float:right;padding-top:14px;padding-bottom:20px}"],changeDetection:0})}}return t})(),Ke=20,St={language:"en",page:1,limit:Ke,contentType:null,orderBy:F,facets:{genre:C,language:C,fileType:C,torrentSource:C,torrentTag:C,videoResolution:C,videoSource:C}},bt=(t,n)=>{let e=N(t,n);return e&&e in Re?e:null},Tt=t=>{let[n,e]=j.reduce((o,i)=>{let r=i.extractInput(t);return r.active?[[...o[0],i.key],r.filter?l(a({},o[1]),{[i.key]:r.filter}):o[1]]:o},[[],{}]);return a({facets:n.length?n.join(","):void 0},Object.fromEntries(Object.entries(e).map(([o,i])=>[o,encodeURIComponent(i.join(","))])))};export{fn as TorrentsSearchComponent}; +import{a as D,b as N,c as z,d as Ae,e as Ne,f as ze,g as Qe}from"./chunk-HTST7QW3.js";import{a as Re,b as De}from"./chunk-7B77IKGA.js";import{a as qe}from"./chunk-C7MPMHOQ.js";import"./chunk-JIO2QO4M.js";import{a as Ce}from"./chunk-33KK2FKQ.js";import{a as Le}from"./chunk-TC5EWLZ6.js";import{Aa as Fe,Ba as Ve,Ca as Be,E as ye,J as ve,L as Se,M as be,Ua as je,a as se,b as le,ba as Te,d as pe,e as ue,f as me,g as de,h as _e,i as ge,ja as we,ka as Me,la as Oe,ma as Pe,n as fe,q as he,qa as ke,r as xe,ra as Ie,ya as Ee,za as $e}from"./chunk-HB55W55I.js";import"./chunk-6XXA7HXI.js";import{j as ae,l as ce}from"./chunk-ZBBMS7J5.js";import{$ as X,$b as s,$c as oe,B as M,Cb as x,Ea as _,Fa as g,Gb as ee,Hb as f,Kb as L,Mb as v,N as W,O as Y,Ob as k,Pb as I,Q as K,Qb as p,Rb as u,Sb as A,Tb as te,Ub as ne,Wb as P,Zb as h,a,ad as re,b as l,jc as R,kb as c,kc as m,l as y,lc as E,mc as S,nc as $,o as G,pc as ie,qa as O,ua as Z,uc as b,vc as T}from"./chunk-FJILXII2.js";var Q={items:[],totalCount:0,totalCountIsEstimate:!1,aggregations:{}},V=class{constructor(n,e,o){this.apollo=n,this.errorsService=e,this.currentRequest=new y(0),this.loadingSubject=new y(!1),this.loading$=this.loadingSubject.asObservable(),this.result=Q,this.resultSubject=new y(this.result),this.result$=this.resultSubject.asObservable(),this.items$=this.resultSubject.pipe(M(i=>i.items)),this.overallTotalCount$=this.resultSubject.pipe(M(i=>{let r=0,d=!1;for(let w of i.aggregations.contentType??[])r+=w.count,d=d||w.isEstimate;return{count:r,isEstimate:d}})),this.availableContentTypes$=this.resultSubject.pipe(X((i,r)=>Array.from(new Set([...i,...(r.aggregations.contentType??[]).flatMap(d=>d.value?[d.value]:[])])),[])),this.contentTypeCounts$=this.resultSubject.pipe(M(i=>Object.fromEntries((i.aggregations.contentType??[]).map(r=>[r.value,{count:r.count,isEstimate:r.isEstimate}])))),o.subscribe(i=>{this.input=i.input,this.loadResult({input:l(a({},i.input),{cached:!0})})}),this.resultSubject.subscribe(i=>{this.result=i})}connect({}){return this.items$}disconnect(){this.resultSubject.complete()}refresh(){this.loadResult({input:l(a({},this.input),{cached:!1})})}loadResult(n){this.currentSubscription&&(this.currentSubscription.unsubscribe(),this.currentSubscription=void 0),this.loadingSubject.next(!0);let e=this.currentRequest.getValue()+1;this.currentRequest.next(e);let o=this.apollo.query({query:ye,variables:n,fetchPolicy:"no-cache"}).pipe(M(i=>i.data.torrentContent.search)).pipe(W(i=>(this.errorsService.addError(`Error loading item results: ${i.message}`),G)));this.currentSubscription=o.subscribe(i=>{e===this.currentRequest.getValue()&&(this.loadingSubject.next(!1),this.resultSubject.next(i))})}};var He=t=>({input:{queryString:t.queryString,limit:t.limit,page:t.page,totalCount:!0,hasNextPage:!0,orderBy:[t.orderBy],facets:{contentType:{aggregate:!0,filter:t.contentType?[t.contentType==="null"?null:t.contentType]:void 0},genre:t.facets.genre.active?{aggregate:!0,filter:t.facets.genre.filter}:void 0,language:t.facets.language.active?{aggregate:t.facets.language.active,filter:t.facets.language.filter}:void 0,torrentFileType:t.facets.fileType.active?{aggregate:!0,filter:t.facets.fileType.filter}:void 0,torrentSource:t.facets.torrentSource.active?{aggregate:!0,filter:t.facets.torrentSource.filter}:void 0,torrentTag:t.facets.torrentTag.active?{aggregate:!0,filter:t.facets.torrentTag.filter}:void 0,videoResolution:t.facets.videoResolution.active?{aggregate:!0,filter:t.facets.videoResolution.filter}:void 0,videoSource:t.facets.videoSource.active?{aggregate:!0,filter:t.facets.videoSource.filter}:void 0}}}),C={active:!1},B=class{constructor(n){this.controlsSubject=new y(n),this.controls$=this.controlsSubject.asObservable(),this.paramsSubject=new y(He(n)),this.params$=this.paramsSubject.asObservable(),this.controls$.pipe(K(100)).subscribe(e=>{let o=this.paramsSubject.getValue(),i=He(e);JSON.stringify(o)!==JSON.stringify(i)&&this.paramsSubject.next(i)})}update(n){let e=this.controlsSubject.getValue(),o=n(e);JSON.stringify(e)!==JSON.stringify(o)&&this.controlsSubject.next(o)}selectLanguage(n){this.update(e=>l(a({},e),{language:n}))}selectContentType(n){this.update(e=>l(a({},e),{contentType:n,page:1,facets:l(a({},e.facets),{genre:H(n,Je.contentTypes)?e.facets.genre:C,videoResolution:H(n,Ue.contentTypes)?e.facets.videoResolution:C,videoSource:H(n,Ge.contentTypes)?e.facets.videoSource:C})}))}activateFacet(n){this.update(e=>l(a({},e),{facets:n.patchInput(e.facets,l(a({},n.extractInput(e.facets)),{active:!0}))}))}deactivateFacet(n){this.update(e=>{let o=n.extractInput(e.facets);return l(a({},e),{page:o.filter?1:e.page,facets:n.patchInput(e.facets,l(a({},o),{active:!1,filter:void 0}))})})}activateFilter(n,e){this.update(o=>{let i=n.extractInput(o.facets);return l(a({},o),{page:1,facets:n.patchInput(o.facets,l(a({},i),{filter:Array.from(new Set([...i.filter??[],e])).sort()}))})})}deactivateFilter(n,e){this.update(o=>{let i=n.extractInput(o.facets),r=i.filter?.filter(d=>d!==e);return l(a({},o),{page:1,facets:n.patchInput(o.facets,l(a({},i),{filter:r?.length?r:void 0}))})})}setQueryString(n){n=n||void 0,this.update(e=>{let o=e.orderBy;return n?n!==e.queryString&&(o=U):o.field==="relevance"&&(o=F),l(a({},e),{queryString:n,orderBy:o,page:n===e.queryString?e.page:1})})}selectOrderBy(n){let e={field:n,descending:J.find(o=>o.field===n)?.descending??!1};this.update(o=>l(a({},o),{orderBy:e.field!=="relevance"||o.queryString?e:F,page:1}))}toggleOrderByDirection(){this.update(n=>l(a({},n),{orderBy:l(a({},n.orderBy),{descending:!n.orderBy.descending}),page:1}))}handlePageEvent(n){this.update(e=>l(a({},e),{limit:n.pageSize,page:n.page}))}},et={key:"torrent_source",icon:"mediation",allowNull:!1,extractInput:t=>t.torrentSource,patchInput:(t,n)=>l(a({},t),{torrentSource:n}),extractAggregations:t=>t.torrentSource??[],resolveLabel:t=>t.label},tt={key:"torrent_tag",icon:"sell",allowNull:!1,extractInput:t=>t.torrentTag,patchInput:(t,n)=>l(a({},t),{torrentTag:n}),extractAggregations:t=>t.torrentTag??[],resolveLabel:t=>t.value},nt={key:"file_type",icon:"file_present",allowNull:!1,extractInput:t=>t.fileType,patchInput:(t,n)=>l(a({},t),{fileType:n}),extractAggregations:t=>t.torrentFileType??[],resolveLabel:(t,n)=>n.translate(`file_types.${t.value}`)},it={key:"language",icon:"translate",allowNull:!1,extractInput:t=>t.language,patchInput:(t,n)=>l(a({},t),{language:n}),extractAggregations:t=>t.language??[],resolveLabel:(t,n)=>n.translate(`languages.${t.value}`)},Je={key:"genre",icon:"theater_comedy",allowNull:!1,contentTypes:["movie","tv_show"],extractInput:t=>t.genre,patchInput:(t,n)=>l(a({},t),{genre:n}),extractAggregations:t=>t.genre??[],resolveLabel:t=>t.label},Ue={key:"video_resolution",icon:"aspect_ratio",allowNull:!0,contentTypes:["movie","tv_show","xxx"],extractInput:t=>t.videoResolution,patchInput:(t,n)=>l(a({},t),{videoResolution:n}),extractAggregations:t=>(t.videoResolution??[]).map(n=>l(a({},n),{value:n.value??null})),resolveLabel:t=>t.value?.slice(1)??"?"},Ge={key:"video_source",icon:"album",allowNull:!0,contentTypes:["movie","tv_show","xxx"],extractInput:t=>t.videoSource,patchInput:(t,n)=>l(a({},t),{videoSource:n}),extractAggregations:t=>(t.videoSource??[]).map(n=>l(a({},n),{value:n.value??null})),resolveLabel:t=>t.value??"?"},j=[et,tt,nt,it,Je,Ue,Ge],J=[{field:"relevance",descending:!0},{field:"published_at",descending:!0},{field:"updated_at",descending:!0},{field:"size",descending:!0},{field:"files_count",descending:!0},{field:"seeders",descending:!0},{field:"leechers",descending:!0},{field:"name",descending:!1}],F={field:"published_at",descending:!0},U={field:"relevance",descending:!0},H=(t,n)=>!n||t&&n.includes(t);var We=(t,n)=>n.key,ot=(t,n)=>n.field,Ye=(t,n)=>n.value;function rt(t,n){if(t&1&&(p(0,"small"),m(1),b(2,"number"),u()),t&2){let e=n;c(),$("",e.isEstimate?"~":"","",T(2,2,e.count),"")}}function at(t,n){if(t&1&&(p(0,"small"),m(1),b(2,"number"),u()),t&2){let e=n;c(),$("",e.isEstimate?"~":"","",T(2,2,e.count),"")}}function ct(t,n){t&1&&(p(0,"small"),m(1,"0"),u())}function st(t,n){if(t&1){let e=P();p(0,"li",5),h("click",function(){_(e);let i=s().$implicit,r=s(2);return g(r.controller.selectContentType(i.key))}),p(1,"mat-icon"),m(2),u(),m(3),x(4,at,3,4,"small"),b(5,"async"),x(6,ct,2,0,"small"),u()}if(t&2){let e,o=s().$implicit,i=s().$implicit,r=s();L(r.controls.contentType===o.key?"active":""),c(2),E(o.icon),c(),S(" ",i("content_types.plural."+o.key)," "),c(),v((e=(e=T(5,5,r.dataSource.contentTypeCounts$))==null?null:e[o.key])?4:6,e)}}function lt(t,n){if(t&1&&(x(0,st,7,7,"li",23),b(1,"async")),t&2){let e,o=n.$implicit,i=s(2);v(o.key==="null"||(e=T(1,1,i.dataSource.availableContentTypes$))!=null&&e.includes(o.key)?0:-1)}}function pt(t,n){if(t&1){let e=P();p(0,"mat-checkbox",29),h("change",function(i){let r=_(e).$implicit,d=s(3).$implicit,w=s(2);return g(i.checked?w.controller.activateFilter(d,r.value):w.controller.deactivateFilter(d,r.value))}),m(1),p(2,"small"),m(3),b(4,"number"),u()()}if(t&2){let e=n.$implicit,o=s(3).$implicit;f("checked",o.filter==null?null:o.filter.includes(e.value)),c(),S(" ",e.label," "),c(2),$("",e.isEstimate?"~":"","",T(4,4,e.count),"")}}function ut(t,n){if(t&1&&(p(0,"section",26),k(1,pt,5,6,"mat-checkbox",28,Ye),u()),t&2){let e=s(2).$implicit;c(),I(e.aggregations)}}function mt(t,n){if(t&1){let e=P();p(0,"mat-checkbox",31),h("change",function(){let i=_(e).$implicit,r=s(4).$implicit,d=s(2);return g(d.controller.activateFilter(r,i.value))}),m(1),p(2,"small"),m(3),b(4,"number"),u()()}if(t&2){let e=n.$implicit;c(),S(" ",e.label," "),c(2),$("",e.isEstimate?"~":"","",T(4,3,e.count),"")}}function dt(t,n){if(t&1&&k(0,mt,5,5,"mat-checkbox",30,Ye),t&2){let e=s(3).$implicit;I(e.aggregations)}}function _t(t,n){if(t&1&&m(0),t&2){let e=s(4).$implicit;S(" ",e("general.none")," ")}}function gt(t,n){if(t&1&&(p(0,"section",27),x(1,dt,2,0)(2,_t,1,1),u()),t&2){let e=s(2).$implicit;c(),v(e.aggregations.length?1:2)}}function ft(t,n){if(t&1){let e=P();p(0,"mat-expansion-panel",25),h("opened",function(){_(e);let i=s().$implicit,r=s(2);return g(r.controller.activateFacet(i))})("closed",function(){_(e);let i=s().$implicit,r=s(2);return g(r.controller.deactivateFacet(i))}),p(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"mat-icon"),m(4),u(),m(5),u()(),x(6,ut,3,0,"section",26)(7,gt,3,1,"section",27),u()}if(t&2){let e=s().$implicit,o=s().$implicit;f("expanded",e.active),c(4),E(e.icon),c(),S(" ",o("facets."+e.key)," "),c(),v(e.filter!=null&&e.filter.length?6:7)}}function ht(t,n){if(t&1&&x(0,ft,8,4,"mat-expansion-panel",24),t&2){let e=n.$implicit;v(e.relevant?0:-1)}}function xt(t,n){if(t&1){let e=P();p(0,"button",17),h("click",function(){_(e);let i=s(2);return i.queryString.reset(),g(i.controller.setQueryString(null))}),p(1,"mat-icon"),m(2,"close"),u()()}if(t&2){let e=s().$implicit;f("matTooltip",e("torrents.clear_search"))}}function Ct(t,n){if(t&1&&(p(0,"mat-option",32),m(1),u()),t&2){let e=s().$implicit,o=s().$implicit;f("value",e.field),c(),S(" ",o("torrents.ordering."+e.field)," ")}}function yt(t,n){if(t&1&&x(0,Ct,2,2,"mat-option",32),t&2){let e=n.$implicit,o=s(2);v(e.field!="relevance"||o.queryString.value?0:-1)}}function vt(t,n){if(t&1){let e=P();te(0),p(1,"mat-drawer-container",2)(2,"mat-drawer",3,0)(4,"mat-expansion-panel",4)(5,"mat-expansion-panel-header")(6,"mat-panel-title")(7,"mat-icon"),m(8,"interests"),u(),m(9),u()(),p(10,"section")(11,"nav")(12,"ul")(13,"li",5),h("click",function(){_(e);let i=s();return g(i.controller.selectContentType(null))}),p(14,"mat-icon",6),m(15,"emergency"),u(),m(16),x(17,rt,3,4,"small"),b(18,"async"),u(),k(19,lt,2,3,null,null,We),u()()()(),k(21,ht,1,1,null,null,We),b(23,"async"),u(),p(24,"mat-drawer-content")(25,"div",7)(26,"div",8)(27,"button",9),h("click",function(){_(e);let i=R(3);return g(i.toggle())}),p(28,"mat-icon",10),m(29),u()()(),p(30,"div",11)(31,"mat-form-field",12)(32,"input",13),h("keyup.enter",function(){_(e);let i=s();return g(i.controller.setQueryString(i.queryString.value))}),u(),x(33,xt,3,1,"button",14),u()(),p(34,"div",15)(35,"mat-form-field",12)(36,"mat-label"),m(37),u(),p(38,"mat-select",16),h("valueChange",function(i){_(e);let r=s();return g(r.controller.selectOrderBy(i))}),k(39,yt,1,1,null,null,ot),u()(),p(41,"button",17),h("click",function(){_(e);let i=s();return g(i.controller.toggleOrderByDirection())}),p(42,"mat-icon"),m(43),u()()(),p(44,"div",18)(45,"button",19),h("click",function(){_(e);let i=s();return g(i.dataSource.refresh())}),p(46,"mat-icon"),m(47,"sync"),u()()()(),A(48,"mat-divider"),p(49,"app-torrents-bulk-actions",20),h("updated",function(){_(e);let i=s();return g(i.dataSource.refresh())}),u(),A(50,"mat-divider"),p(51,"app-torrents-table",21),h("updated",function(){_(e);let i=s();return g(i.dataSource.refresh())}),u(),p(52,"app-paginator",22),h("paging",function(i){_(e);let r=s();return g(r.controller.handlePageEvent(i))}),u()()(),ne()}if(t&2){let e,o=n.$implicit,i=R(3),r=s();c(2),f("mode",r.breakpoints.sizeAtLeast("Medium")?"side":"over")("opened",r.breakpoints.sizeAtLeast("Medium")),ee("role",r.breakpoints.sizeAtLeast("Medium")?"navigation":"dialog"),c(2),f("expanded",r.breakpoints.sizeAtLeast("Medium")),c(5),S(" ",o("facets.content_type")," "),c(4),L(r.controls.contentType===null?"active":""),c(3),S("",o("content_types.plural.all")," "),c(),v((e=T(18,29,r.dataSource.overallTotalCount$))?17:-1,e),c(2),I(r.contentTypes),c(2),I(T(23,31,r.facets$)),c(6),f("matTooltip",o("torrents.toggle_drawer")),c(2),E(i.opened?"arrow_circle_left":"arrow_circle_right"),c(3),f("placeholder",o("torrents.search"))("formControl",r.queryString),c(),v(r.queryString.value?33:-1),c(4),E(o("torrents.order_by")),c(),f("value",r.controls.orderBy.field),c(),I(r.orderByOptions),c(2),f("matTooltip",o("torrents.order_direction_toggle")),c(2),E(r.controls.orderBy.descending?"arrow_downward":"arrow_upward"),c(2),f("matTooltip",o("torrents.refresh")),c(4),f("selectedItems$",r.selectedItems$),c(2),f("dataSource",r.dataSource)("displayedColumns",r.breakpoints.sizeAtLeast("Medium")?r.allColumns:r.compactColumns)("selection",r.selection),c(),f("page",r.controls.page)("pageSize",r.controls.limit)("pageLength",r.dataSource.result.items.length)("totalLength",r.dataSource.result.totalCount)("totalIsEstimate",r.dataSource.result.totalCountIsEstimate)("hasNextPage",r.dataSource.result.hasNextPage)}}var fn=(()=>{class t{constructor(){this.route=O(ae),this.router=O(ce),this.apollo=O(ge),this.errorsService=O(Ce),this.transloco=O(se),this.breakpoints=O(Le),this.contentTypes=De,this.orderByOptions=J,this.allColumns=ze,this.compactColumns=Qe,this.queryString=new me(""),this.result=Q,this.selection=new _e(!0,[]),this.selectedItemsSubject=new y([]),this.selectedItems$=this.selectedItemsSubject.asObservable(),this.subscriptions=Array(),this.controls=l(a({},St),{language:this.transloco.getActiveLang()}),this.controller=new B(this.controls),this.dataSource=new V(this.apollo,this.errorsService,this.controller.params$),this.subscriptions.push(this.controller.controls$.subscribe(e=>{this.controls=e})),this.facets$=this.controller.controls$.pipe(Y(this.dataSource.result$),M(([e,o])=>j.map(i=>l(a(a({},i),i.extractInput(e.facets)),{relevant:!i.contentTypes||!!(e.contentType&&e.contentType!=="null"&&i.contentTypes.includes(e.contentType)),aggregations:i.extractAggregations(o.aggregations).map(r=>l(a({},r),{label:i.resolveLabel(r,this.transloco)}))})))),this.subscriptions.push(this.dataSource.result$.subscribe(e=>{this.result=e;let o=new Set(e.items.map(({infoHash:i})=>i));this.selection.deselect(...this.selection.selected.filter(i=>!o.has(i)))}))}ngOnInit(){this.subscriptions.push(this.route.queryParams.subscribe(e=>{let o=N(e,"query");this.queryString.setValue(o??null),this.controller.update(i=>{let r=D(e,"facets"),d=i.orderBy;return o?o!==i.queryString&&(d=U):d.field==="relevance"&&(d=F),l(a({},i),{queryString:o,orderBy:d,contentType:bt(e,"content_type"),limit:z(e,"limit")??i.limit,page:z(e,"page")??i.page,facets:j.reduce((w,q)=>{let Xe=r?.includes(q.key)??!1,Ze=D(e,q.key);return q.patchInput(w,{active:Xe,filter:Ze})},i.facets)})})}),this.controller.controls$.subscribe(e=>{let o=e.page,i=e.limit;o===1&&(o=void 0),i===Ke&&(i=void 0),this.router.navigate([],{relativeTo:this.route,queryParams:a({query:e.queryString?encodeURIComponent(e.queryString):void 0,page:o,limit:i,content_type:e.contentType},Tt(e.facets)),queryParamsHandling:"merge"})}),this.selection.changed.subscribe(e=>{let o=new Set(e.source.selected);this.selectedItemsSubject.next(this.result.items.filter(i=>o.has(i.infoHash)))}))}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe()),this.subscriptions=new Array}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=Z({type:t,selectors:[["app-torrents-search"]],standalone:!0,features:[ie],decls:1,vars:0,consts:[["drawer",""],[4,"transloco"],[1,"drawer-container"],[1,"drawer",3,"mode","opened"],[1,"panel-content-type",3,"expanded"],[3,"click"],["fontSet","material-icons"],[1,"search-form"],[1,"form-field-container","button-container","button-container-toggle-drawer"],["type","button","mat-icon-button","",1,"button-toggle-drawer",3,"click","matTooltip"],["aria-label","Side nav toggle icon","fontSet","material-icons"],[1,"form-field-container","form-field-container-search-query"],["subscriptSizing","dynamic"],["matInput","","autocapitalize","none",3,"keyup.enter","placeholder","formControl"],["mat-icon-button","",3,"matTooltip"],[1,"form-field-container","form-field-container-order-by"],[3,"valueChange","value"],["mat-icon-button","",3,"click","matTooltip"],[1,"form-field-container","button-container","button-container-refresh"],["mat-mini-fab","","color","primary",3,"click","matTooltip"],[3,"updated","selectedItems$"],[3,"updated","dataSource","displayedColumns","selection"],[3,"paging","page","pageSize","pageLength","totalLength","totalIsEstimate","hasNextPage"],[3,"class"],[3,"expanded"],[3,"opened","closed","expanded"],[1,"filtered"],[1,"unfiltered"],[3,"checked"],[3,"change","checked"],["checked","true"],["checked","true",3,"change"],[3,"value"]],template:function(o,i){o&1&&x(0,vt,53,33,"ng-container",1)},dependencies:[je,fe,xe,he,Te,we,Me,Oe,Pe,be,Se,ke,Ie,$e,Ve,Be,Fe,Ee,pe,ue,de,le,oe,re,ve,qe,Ae,Ne],styles:[".mat-expansion-panel[_ngcontent-%COMP%]{margin-top:14px;margin-right:14px}.mat-expansion-panel[_ngcontent-%COMP%] section[_ngcontent-%COMP%]{margin-left:-10px}.mat-expansion-panel.panel-content-type[_ngcontent-%COMP%]{margin-top:20px}.mat-expansion-panel.panel-content-type[_ngcontent-%COMP%] section[_ngcontent-%COMP%]{margin-left:0}.mat-expansion-panel[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{list-style:none;padding-left:0;margin:0}.mat-expansion-panel[_ngcontent-%COMP%] mat-panel-title[_ngcontent-%COMP%], .mat-expansion-panel[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{position:relative;line-height:40px;padding-left:40px}.mat-expansion-panel[_ngcontent-%COMP%] mat-panel-title[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .mat-expansion-panel[_ngcontent-%COMP%] li[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{position:absolute;left:0;top:8px}.mat-expansion-panel[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{cursor:pointer}.mat-expansion-panel[_ngcontent-%COMP%] li[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{top:6px}.mat-expansion-panel[_ngcontent-%COMP%] li[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{float:right;font-size:.8rem}.mat-expansion-panel[_ngcontent-%COMP%] mat-checkbox[_ngcontent-%COMP%]{display:block}.mat-expansion-panel[_ngcontent-%COMP%] mat-checkbox[_ngcontent-%COMP%] label{min-width:220px}.mat-expansion-panel[_ngcontent-%COMP%] mat-checkbox[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{margin-left:10px;position:absolute;right:0}.search-form[_ngcontent-%COMP%]{padding-top:20px;padding-bottom:10px;position:relative;clear:both;display:flex;flex-wrap:wrap}.search-form[_ngcontent-%COMP%] .form-field-container[_ngcontent-%COMP%]{display:inline-flex;flex-direction:column;position:relative;margin-left:20px;padding-bottom:20px}.search-form[_ngcontent-%COMP%] .form-field-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{top:8px}.search-form[_ngcontent-%COMP%] .form-field-container.form-field-container-order-by[_ngcontent-%COMP%]{padding-right:40px}.search-form[_ngcontent-%COMP%] .form-field-container.form-field-container-order-by[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{position:absolute;right:0}.search-form[_ngcontent-%COMP%] .form-field-container.form-field-container-search-query[_ngcontent-%COMP%]{width:300px}.search-form[_ngcontent-%COMP%] .form-field-container.form-field-container-search-query[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{position:absolute;right:0}.search-form[_ngcontent-%COMP%] .form-field-container.form-field-container-search-query[_ngcontent-%COMP%] .mat-mdc-form-field-infix{padding-right:50px}.search-form[_ngcontent-%COMP%] .button-container-toggle-direction[_ngcontent-%COMP%]{margin-left:4px}app-paginator[_ngcontent-%COMP%]{float:right;padding-top:14px;padding-bottom:20px}"],changeDetection:0})}}return t})(),Ke=20,St={language:"en",page:1,limit:Ke,contentType:null,orderBy:F,facets:{genre:C,language:C,fileType:C,torrentSource:C,torrentTag:C,videoResolution:C,videoSource:C}},bt=(t,n)=>{let e=N(t,n);return e&&e in Re?e:null},Tt=t=>{let[n,e]=j.reduce((o,i)=>{let r=i.extractInput(t);return r.active?[[...o[0],i.key],r.filter?l(a({},o[1]),{[i.key]:r.filter}):o[1]]:o},[[],{}]);return a({facets:n.length?n.join(","):void 0},Object.fromEntries(Object.entries(e).map(([o,i])=>[o,encodeURIComponent(i.join(","))])))};export{fn as TorrentsSearchComponent}; diff --git a/webui/dist/bitmagnet/browser/chunk-3PIWRAOL.js b/webui/dist/bitmagnet/browser/chunk-33KK2FKQ.js similarity index 99% rename from webui/dist/bitmagnet/browser/chunk-3PIWRAOL.js rename to webui/dist/bitmagnet/browser/chunk-33KK2FKQ.js index 47de777b..512ce8a8 100644 --- a/webui/dist/bitmagnet/browser/chunk-3PIWRAOL.js +++ b/webui/dist/bitmagnet/browser/chunk-33KK2FKQ.js @@ -1,2 +1,2 @@ -import{j as Me,k as ke,l as xe,m as We,o as De,t as $,u as Se,v as _e,w as K,x as ze,y as Ce}from"./chunk-4NEHCUZ2.js";import{c as Pe,d as Y,g as T,h as J,i as Q}from"./chunk-6XXA7HXI.js";import{$b as H,Cb as G,Ea as oe,Fa as se,Fc as ye,Gb as le,Ka as k,Mb as he,Oa as de,Qa as me,Qb as j,Rb as W,Rc as we,Sb as fe,Wb as pe,Yb as ge,Zb as ve,_b as be,a as P,ec as O,fa as ie,fc as X,gc as R,k as y,ka as z,kb as x,kc as I,lb as g,mc as q,na as L,nb as ue,pa as p,pc as B,qa as re,ua as V,wa as C,xb as ce}from"./chunk-3DR3CJRN.js";function la(e,n){if(e&1){let t=pe();j(0,"div",1)(1,"button",2),ve("click",function(){oe(t);let i=H();return se(i.action())}),I(2),W()()}if(e&2){let t=H();x(2),q(" ",t.data.action," ")}}var ha=["label"];function fa(e,n){}var pa=Math.pow(2,31)-1,D=class{constructor(n,t){this._overlayRef=t,this._afterDismissed=new y,this._afterOpened=new y,this._onAction=new y,this._dismissedByAction=!1,this.containerInstance=n,n._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(n){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(n,pa))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}},je=new L("MatSnackBarData"),M=class{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}},ga=(()=>{class e{static{this.\u0275fac=function(a){return new(a||e)}}static{this.\u0275dir=C({type:e,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"],standalone:!0})}}return e})(),va=(()=>{class e{static{this.\u0275fac=function(a){return new(a||e)}}static{this.\u0275dir=C({type:e,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"],standalone:!0})}}return e})(),ba=(()=>{class e{static{this.\u0275fac=function(a){return new(a||e)}}static{this.\u0275dir=C({type:e,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"],standalone:!0})}}return e})(),ya=(()=>{class e{constructor(t,a){this.snackBarRef=t,this.data=a}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static{this.\u0275fac=function(a){return new(a||e)(g(D),g(je))}}static{this.\u0275cmp=V({type:e,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],standalone:!0,features:[B],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(a,i){a&1&&(j(0,"div",0),I(1),W(),G(2,la,3,1,"div",1)),a&2&&(x(),q(" ",i.data.message,` +import{j as Me,k as ke,l as xe,m as We,o as De,t as $,u as Se,v as _e,w as K,x as ze,y as Ce}from"./chunk-HB55W55I.js";import{c as Pe,d as Y,g as T,h as J,i as Q}from"./chunk-6XXA7HXI.js";import{$b as H,Cb as G,Ea as oe,Fa as se,Gb as le,Gc as ye,Ka as k,Mb as he,Oa as de,Qa as me,Qb as j,Rb as W,Sb as fe,Sc as we,Wb as pe,Yb as ge,Zb as ve,_b as be,a as P,ec as O,fa as ie,fc as X,gc as R,k as y,ka as z,kb as x,kc as I,lb as g,mc as q,na as L,nb as ue,pa as p,pc as B,qa as re,ua as V,wa as C,xb as ce}from"./chunk-FJILXII2.js";function la(e,n){if(e&1){let t=pe();j(0,"div",1)(1,"button",2),ve("click",function(){oe(t);let i=H();return se(i.action())}),I(2),W()()}if(e&2){let t=H();x(2),q(" ",t.data.action," ")}}var ha=["label"];function fa(e,n){}var pa=Math.pow(2,31)-1,D=class{constructor(n,t){this._overlayRef=t,this._afterDismissed=new y,this._afterOpened=new y,this._onAction=new y,this._dismissedByAction=!1,this.containerInstance=n,n._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(n){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(n,pa))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}},je=new L("MatSnackBarData"),M=class{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}},ga=(()=>{class e{static{this.\u0275fac=function(a){return new(a||e)}}static{this.\u0275dir=C({type:e,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"],standalone:!0})}}return e})(),va=(()=>{class e{static{this.\u0275fac=function(a){return new(a||e)}}static{this.\u0275dir=C({type:e,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"],standalone:!0})}}return e})(),ba=(()=>{class e{static{this.\u0275fac=function(a){return new(a||e)}}static{this.\u0275dir=C({type:e,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"],standalone:!0})}}return e})(),ya=(()=>{class e{constructor(t,a){this.snackBarRef=t,this.data=a}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static{this.\u0275fac=function(a){return new(a||e)(g(D),g(je))}}static{this.\u0275cmp=V({type:e,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],standalone:!0,features:[B],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(a,i){a&1&&(j(0,"div",0),I(1),W(),G(2,la,3,1,"div",1)),a&2&&(x(),q(" ",i.data.message,` `),x(),he(i.hasAction?2:-1))},dependencies:[De,ga,va,ba],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0})}}return e})(),wa={snackBarState:Pe("state",[J("void, hidden",T({transform:"scale(0.8)",opacity:0})),J("visible",T({transform:"scale(1)",opacity:1})),Q("* => visible",Y("150ms cubic-bezier(0, 0, 0.2, 1)")),Q("* => void, * => hidden",Y("75ms cubic-bezier(0.4, 0.0, 1, 1)",T({opacity:0})))])},Pa=0,Ma=(()=>{class e extends _e{constructor(t,a,i,d,m){super(),this._ngZone=t,this._elementRef=a,this._changeDetectorRef=i,this._platform=d,this.snackBarConfig=m,this._document=re(we),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new y,this._onExit=new y,this._onEnter=new y,this._animationState="void",this._liveElementId=`mat-snack-bar-container-live-${Pa++}`,this.attachDomPortal=c=>{this._assertNotAttached();let f=this._portalOutlet.attachDomPortal(c);return this._afterPortalAttached(),f},m.politeness==="assertive"&&!m.announcementMessage?this._live="assertive":m.politeness==="off"?this._live="off":this._live="polite",this._platform.FIREFOX&&(this._live==="polite"&&(this._role="status"),this._live==="assertive"&&(this._role="alert"))}attachComponentPortal(t){this._assertNotAttached();let a=this._portalOutlet.attachComponentPortal(t);return this._afterPortalAttached(),a}attachTemplatePortal(t){this._assertNotAttached();let a=this._portalOutlet.attachTemplatePortal(t);return this._afterPortalAttached(),a}onAnimationEnd(t){let{fromState:a,toState:i}=t;if((i==="void"&&a!=="void"||i==="hidden")&&this._completeExit(),i==="visible"){let d=this._onEnter;this._ngZone.run(()=>{d.next(),d.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){queueMicrotask(()=>{this._onExit.next(),this._onExit.complete()})}_afterPortalAttached(){let t=this._elementRef.nativeElement,a=this.snackBarConfig.panelClass;a&&(Array.isArray(a)?a.forEach(m=>t.classList.add(m)):t.classList.add(a)),this._exposeToModals();let i=this._label.nativeElement,d="mdc-snackbar__label";i.classList.toggle(d,!i.querySelector(`.${d}`))}_exposeToModals(){let t=this._liveElementId,a=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let i=0;i{let a=t.getAttribute("aria-owns");if(a){let i=a.replace(this._liveElementId,"").trim();i.length>0?t.setAttribute("aria-owns",i):t.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{let t=this._elementRef.nativeElement.querySelector("[aria-hidden]"),a=this._elementRef.nativeElement.querySelector("[aria-live]");if(t&&a){let i=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&t.contains(document.activeElement)&&(i=document.activeElement),t.removeAttribute("aria-hidden"),a.appendChild(t),i?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static{this.\u0275fac=function(a){return new(a||e)(g(de),g(me),g(ye),g(Me),g(M))}}static{this.\u0275cmp=V({type:e,selectors:[["mat-snack-bar-container"]],viewQuery:function(a,i){if(a&1&&(O(K,7),O(ha,7)),a&2){let d;X(d=R())&&(i._portalOutlet=d.first),X(d=R())&&(i._label=d.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:1,hostBindings:function(a,i){a&1&&be("@state.done",function(m){return i.onAnimationEnd(m)}),a&2&&ge("@state",i._animationState)},standalone:!0,features:[ce,B],decls:6,vars:3,consts:[["label",""],[1,"mdc-snackbar__surface","mat-mdc-snackbar-surface"],[1,"mat-mdc-snack-bar-label"],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(a,i){a&1&&(j(0,"div",1)(1,"div",2,0)(3,"div",3),G(4,fa,0,0,"ng-template",4),W(),fe(5,"div"),W()()),a&2&&(x(5),le("aria-live",i._live)("role",i._role)("id",i._liveElementId))},dependencies:[K],styles:[".mat-mdc-snack-bar-container{display:flex;align-items:center;justify-content:center;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);margin:8px}.mat-mdc-snack-bar-handset .mat-mdc-snack-bar-container{width:100vw}.mat-mdc-snackbar-surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;padding-left:0;padding-right:8px}[dir=rtl] .mat-mdc-snackbar-surface{padding-right:0;padding-left:8px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{min-width:344px;max-width:672px}.mat-mdc-snack-bar-handset .mat-mdc-snackbar-surface{width:100%;min-width:0}.cdk-high-contrast-active .mat-mdc-snackbar-surface{outline:solid 1px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{color:var(--mdc-snackbar-supporting-text-color, var(--mat-app-inverse-on-surface));border-radius:var(--mdc-snackbar-container-shape, var(--mat-app-corner-extra-small));background-color:var(--mdc-snackbar-container-color, var(--mat-app-inverse-surface))}.mdc-snackbar__label{width:100%;flex-grow:1;box-sizing:border-box;margin:0;padding:14px 8px 14px 16px}[dir=rtl] .mdc-snackbar__label{padding-left:8px;padding-right:16px}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-family:var(--mdc-snackbar-supporting-text-font, var(--mat-app-body-medium-font));font-size:var(--mdc-snackbar-supporting-text-size, var(--mat-app-body-medium-size));font-weight:var(--mdc-snackbar-supporting-text-weight, var(--mat-app-body-medium-weight));line-height:var(--mdc-snackbar-supporting-text-line-height, var(--mat-app-body-medium-line-height))}.mat-mdc-snack-bar-actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){color:var(--mat-snack-bar-button-color, var(--mat-app-inverse-primary));--mat-text-button-state-layer-color:currentColor;--mat-text-button-ripple-color:currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{opacity:.1}"],encapsulation:2,data:{animation:[wa.snackBarState]}})}}return e})();function ka(){return new M}var xa=new L("mat-snack-bar-default-options",{providedIn:"root",factory:ka}),Te=(()=>{class e{get _openedSnackBarRef(){let t=this._parentSnackBar;return t?t._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(t){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=t:this._snackBarRefAtThisLevel=t}constructor(t,a,i,d,m,c){this._overlay=t,this._live=a,this._injector=i,this._breakpointObserver=d,this._parentSnackBar=m,this._defaultConfig=c,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=ya,this.snackBarContainerComponent=Ma,this.handsetCssClass="mat-mdc-snack-bar-handset"}openFromComponent(t,a){return this._attach(t,a)}openFromTemplate(t,a){return this._attach(t,a)}open(t,a="",i){let d=P(P({},this._defaultConfig),i);return d.data={message:t,action:a},d.announcementMessage===t&&(d.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,d)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(t,a){let i=a&&a.viewContainerRef&&a.viewContainerRef.injector,d=k.create({parent:i||this._injector,providers:[{provide:M,useValue:a}]}),m=new $(this.snackBarContainerComponent,a.viewContainerRef,d),c=t.attach(m);return c.instance.snackBarConfig=a,c.instance}_attach(t,a){let i=P(P(P({},new M),this._defaultConfig),a),d=this._createOverlay(i),m=this._attachSnackBarContainer(d,i),c=new D(m,d);if(t instanceof ue){let f=new Se(t,null,{$implicit:i.data,snackBarRef:c});c.instance=m.attachTemplatePortal(f)}else{let f=this._createInjector(i,c),b=new $(t,void 0,f),A=m.attachComponentPortal(b);c.instance=A.instance}return this._breakpointObserver.observe(xe.HandsetPortrait).pipe(ie(d.detachments())).subscribe(f=>{d.overlayElement.classList.toggle(this.handsetCssClass,f.matches)}),i.announcementMessage&&m._onAnnounce.subscribe(()=>{this._live.announce(i.announcementMessage,i.politeness)}),this._animateSnackBar(c,i),this._openedSnackBarRef=c,this._openedSnackBarRef}_animateSnackBar(t,a){t.afterDismissed().subscribe(()=>{this._openedSnackBarRef==t&&(this._openedSnackBarRef=null),a.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{t.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):t.containerInstance.enter(),a.duration&&a.duration>0&&t.afterOpened().subscribe(()=>t._dismissAfter(a.duration))}_createOverlay(t){let a=new ze;a.direction=t.direction;let i=this._overlay.position().global(),d=t.direction==="rtl",m=t.horizontalPosition==="left"||t.horizontalPosition==="start"&&!d||t.horizontalPosition==="end"&&d,c=!m&&t.horizontalPosition!=="center";return m?i.left("0"):c?i.right("0"):i.centerHorizontally(),t.verticalPosition==="top"?i.top("0"):i.bottom("0"),a.positionStrategy=i,this._overlay.create(a)}_createInjector(t,a){let i=t&&t.viewContainerRef&&t.viewContainerRef.injector;return k.create({parent:i||this._injector,providers:[{provide:D,useValue:a},{provide:je,useValue:t.data}]})}static{this.\u0275fac=function(a){return new(a||e)(p(Ce),p(We),p(k),p(ke),p(e,12),p(xa))}}static{this.\u0275prov=z({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var sm=(()=>{class e{constructor(t){this.snackBar=t,this.expiry=1e3*10}addError(t,a=this.expiry){this.snackBar.open(t,"Dismiss",{duration:a,panelClass:["snack-bar-error"]})}static{this.\u0275fac=function(a){return new(a||e)(p(Te))}}static{this.\u0275prov=z({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Da={lessThanXSeconds:{one:"\u0623\u0642\u0644 \u0645\u0646 \u062B\u0627\u0646\u064A\u0629",two:"\u0623\u0642\u0644 \u0645\u0646 \u062B\u0627\u0646\u064A\u062A\u064A\u0646",threeToTen:"\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062B\u0648\u0627\u0646\u064A",other:"\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062B\u0627\u0646\u064A\u0629"},xSeconds:{one:"\u062B\u0627\u0646\u064A\u0629 \u0648\u0627\u062D\u062F\u0629",two:"\u062B\u0627\u0646\u064A\u062A\u0627\u0646",threeToTen:"{{count}} \u062B\u0648\u0627\u0646\u064A",other:"{{count}} \u062B\u0627\u0646\u064A\u0629"},halfAMinute:"\u0646\u0635\u0641 \u062F\u0642\u064A\u0642\u0629",lessThanXMinutes:{one:"\u0623\u0642\u0644 \u0645\u0646 \u062F\u0642\u064A\u0642\u0629",two:"\u0623\u0642\u0644 \u0645\u0646 \u062F\u0642\u064A\u0642\u062A\u064A\u0646",threeToTen:"\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062F\u0642\u0627\u0626\u0642",other:"\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062F\u0642\u064A\u0642\u0629"},xMinutes:{one:"\u062F\u0642\u064A\u0642\u0629 \u0648\u0627\u062D\u062F\u0629",two:"\u062F\u0642\u064A\u0642\u062A\u0627\u0646",threeToTen:"{{count}} \u062F\u0642\u0627\u0626\u0642",other:"{{count}} \u062F\u0642\u064A\u0642\u0629"},aboutXHours:{one:"\u0633\u0627\u0639\u0629 \u0648\u0627\u062D\u062F\u0629 \u062A\u0642\u0631\u064A\u0628\u0627\u064B",two:"\u0633\u0627\u0639\u062A\u064A\u0646 \u062A\u0642\u0631\u064A\u0628\u0627",threeToTen:"{{count}} \u0633\u0627\u0639\u0627\u062A \u062A\u0642\u0631\u064A\u0628\u0627\u064B",other:"{{count}} \u0633\u0627\u0639\u0629 \u062A\u0642\u0631\u064A\u0628\u0627\u064B"},xHours:{one:"\u0633\u0627\u0639\u0629 \u0648\u0627\u062D\u062F\u0629",two:"\u0633\u0627\u0639\u062A\u0627\u0646",threeToTen:"{{count}} \u0633\u0627\u0639\u0627\u062A",other:"{{count}} \u0633\u0627\u0639\u0629"},xDays:{one:"\u064A\u0648\u0645 \u0648\u0627\u062D\u062F",two:"\u064A\u0648\u0645\u0627\u0646",threeToTen:"{{count}} \u0623\u064A\u0627\u0645",other:"{{count}} \u064A\u0648\u0645"},aboutXWeeks:{one:"\u0623\u0633\u0628\u0648\u0639 \u0648\u0627\u062D\u062F \u062A\u0642\u0631\u064A\u0628\u0627",two:"\u0623\u0633\u0628\u0648\u0639\u064A\u0646 \u062A\u0642\u0631\u064A\u0628\u0627",threeToTen:"{{count}} \u0623\u0633\u0627\u0628\u064A\u0639 \u062A\u0642\u0631\u064A\u0628\u0627",other:"{{count}} \u0623\u0633\u0628\u0648\u0639\u0627 \u062A\u0642\u0631\u064A\u0628\u0627"},xWeeks:{one:"\u0623\u0633\u0628\u0648\u0639 \u0648\u0627\u062D\u062F",two:"\u0623\u0633\u0628\u0648\u0639\u0627\u0646",threeToTen:"{{count}} \u0623\u0633\u0627\u0628\u064A\u0639",other:"{{count}} \u0623\u0633\u0628\u0648\u0639\u0627"},aboutXMonths:{one:"\u0634\u0647\u0631 \u0648\u0627\u062D\u062F \u062A\u0642\u0631\u064A\u0628\u0627\u064B",two:"\u0634\u0647\u0631\u064A\u0646 \u062A\u0642\u0631\u064A\u0628\u0627",threeToTen:"{{count}} \u0623\u0634\u0647\u0631 \u062A\u0642\u0631\u064A\u0628\u0627",other:"{{count}} \u0634\u0647\u0631\u0627 \u062A\u0642\u0631\u064A\u0628\u0627\u064B"},xMonths:{one:"\u0634\u0647\u0631 \u0648\u0627\u062D\u062F",two:"\u0634\u0647\u0631\u0627\u0646",threeToTen:"{{count}} \u0623\u0634\u0647\u0631",other:"{{count}} \u0634\u0647\u0631\u0627"},aboutXYears:{one:"\u0633\u0646\u0629 \u0648\u0627\u062D\u062F\u0629 \u062A\u0642\u0631\u064A\u0628\u0627\u064B",two:"\u0633\u0646\u062A\u064A\u0646 \u062A\u0642\u0631\u064A\u0628\u0627",threeToTen:"{{count}} \u0633\u0646\u0648\u0627\u062A \u062A\u0642\u0631\u064A\u0628\u0627\u064B",other:"{{count}} \u0633\u0646\u0629 \u062A\u0642\u0631\u064A\u0628\u0627\u064B"},xYears:{one:"\u0633\u0646\u0629 \u0648\u0627\u062D\u062F",two:"\u0633\u0646\u062A\u0627\u0646",threeToTen:"{{count}} \u0633\u0646\u0648\u0627\u062A",other:"{{count}} \u0633\u0646\u0629"},overXYears:{one:"\u0623\u0643\u062B\u0631 \u0645\u0646 \u0633\u0646\u0629",two:"\u0623\u0643\u062B\u0631 \u0645\u0646 \u0633\u0646\u062A\u064A\u0646",threeToTen:"\u0623\u0643\u062B\u0631 \u0645\u0646 {{count}} \u0633\u0646\u0648\u0627\u062A",other:"\u0623\u0643\u062B\u0631 \u0645\u0646 {{count}} \u0633\u0646\u0629"},almostXYears:{one:"\u0645\u0627 \u064A\u0642\u0627\u0631\u0628 \u0633\u0646\u0629 \u0648\u0627\u062D\u062F\u0629",two:"\u0645\u0627 \u064A\u0642\u0627\u0631\u0628 \u0633\u0646\u062A\u064A\u0646",threeToTen:"\u0645\u0627 \u064A\u0642\u0627\u0631\u0628 {{count}} \u0633\u0646\u0648\u0627\u062A",other:"\u0645\u0627 \u064A\u0642\u0627\u0631\u0628 {{count}} \u0633\u0646\u0629"}},Fe=(e,n,t)=>{let a=Da[e],i;return typeof a=="string"?i=a:n===1?i=a.one:n===2?i=a.two:n<=10?i=a.threeToTen.replace("{{count}}",String(n)):i=a.other.replace("{{count}}",String(n)),t?.addSuffix?t.comparison&&t.comparison>0?"\u062E\u0644\u0627\u0644 "+i:"\u0645\u0646\u0630 "+i:i};function s(e){return(n={})=>{let t=n.width?String(n.width):e.defaultWidth;return e.formats[t]||e.formats[e.defaultWidth]}}var Sa={full:"EEEE\u060C do MMMM y",long:"do MMMM y",medium:"d MMM y",short:"dd/MM/yyyy"},_a={full:"HH:mm:ss",long:"HH:mm:ss",medium:"HH:mm:ss",short:"HH:mm"},za={full:"{{date}} '\u0639\u0646\u062F \u0627\u0644\u0633\u0627\u0639\u0629' {{time}}",long:"{{date}} '\u0639\u0646\u062F \u0627\u0644\u0633\u0627\u0639\u0629' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Ne={date:s({formats:Sa,defaultWidth:"full"}),time:s({formats:_a,defaultWidth:"full"}),dateTime:s({formats:za,defaultWidth:"full"})};var Ca={lastWeek:"eeee '\u0627\u0644\u0645\u0627\u0636\u064A \u0639\u0646\u062F \u0627\u0644\u0633\u0627\u0639\u0629' p",yesterday:"'\u0627\u0644\u0623\u0645\u0633 \u0639\u0646\u062F \u0627\u0644\u0633\u0627\u0639\u0629' p",today:"'\u0627\u0644\u064A\u0648\u0645 \u0639\u0646\u062F \u0627\u0644\u0633\u0627\u0639\u0629' p",tomorrow:"'\u063A\u062F\u0627 \u0639\u0646\u062F \u0627\u0644\u0633\u0627\u0639\u0629' p",nextWeek:"eeee '\u0627\u0644\u0642\u0627\u062F\u0645 \u0639\u0646\u062F \u0627\u0644\u0633\u0627\u0639\u0629' p",other:"P"},Ae=e=>Ca[e];function r(e){return(n,t)=>{let a=t?.context?String(t.context):"standalone",i;if(a==="formatting"&&e.formattingValues){let m=e.defaultFormattingWidth||e.defaultWidth,c=t?.width?String(t.width):m;i=e.formattingValues[c]||e.formattingValues[m]}else{let m=e.defaultWidth,c=t?.width?String(t.width):e.defaultWidth;i=e.values[c]||e.values[m]}let d=e.argumentCallback?e.argumentCallback(n):n;return i[d]}}var ja={narrow:["\u0642","\u0628"],abbreviated:["\u0642.\u0645.","\u0628.\u0645."],wide:["\u0642\u0628\u0644 \u0627\u0644\u0645\u064A\u0644\u0627\u062F","\u0628\u0639\u062F \u0627\u0644\u0645\u064A\u0644\u0627\u062F"]},Ta={narrow:["1","2","3","4"],abbreviated:["\u06311","\u06312","\u06313","\u06314"],wide:["\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u0623\u0648\u0644","\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u062B\u0627\u0646\u064A","\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u062B\u0627\u0644\u062B","\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u0631\u0627\u0628\u0639"]},Fa={narrow:["\u064A","\u0641","\u0645","\u0623","\u0645","\u064A","\u064A","\u0623","\u0633","\u0623","\u0646","\u062F"],abbreviated:["\u064A\u0646\u0627\u064A\u0631","\u0641\u0628\u0631\u0627\u064A\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064A\u0644","\u0645\u0627\u064A\u0648","\u064A\u0648\u0646\u064A\u0648","\u064A\u0648\u0644\u064A\u0648","\u0623\u063A\u0633\u0637\u0633","\u0633\u0628\u062A\u0645\u0628\u0631","\u0623\u0643\u062A\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062F\u064A\u0633\u0645\u0628\u0631"],wide:["\u064A\u0646\u0627\u064A\u0631","\u0641\u0628\u0631\u0627\u064A\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064A\u0644","\u0645\u0627\u064A\u0648","\u064A\u0648\u0646\u064A\u0648","\u064A\u0648\u0644\u064A\u0648","\u0623\u063A\u0633\u0637\u0633","\u0633\u0628\u062A\u0645\u0628\u0631","\u0623\u0643\u062A\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062F\u064A\u0633\u0645\u0628\u0631"]},Na={narrow:["\u062D","\u0646","\u062B","\u0631","\u062E","\u062C","\u0633"],short:["\u0623\u062D\u062F","\u0627\u062B\u0646\u064A\u0646","\u062B\u0644\u0627\u062B\u0627\u0621","\u0623\u0631\u0628\u0639\u0627\u0621","\u062E\u0645\u064A\u0633","\u062C\u0645\u0639\u0629","\u0633\u0628\u062A"],abbreviated:["\u0623\u062D\u062F","\u0627\u062B\u0646\u064A\u0646","\u062B\u0644\u0627\u062B\u0627\u0621","\u0623\u0631\u0628\u0639\u0627\u0621","\u062E\u0645\u064A\u0633","\u062C\u0645\u0639\u0629","\u0633\u0628\u062A"],wide:["\u0627\u0644\u0623\u062D\u062F","\u0627\u0644\u0627\u062B\u0646\u064A\u0646","\u0627\u0644\u062B\u0644\u0627\u062B\u0627\u0621","\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621","\u0627\u0644\u062E\u0645\u064A\u0633","\u0627\u0644\u062C\u0645\u0639\u0629","\u0627\u0644\u0633\u0628\u062A"]},Aa={narrow:{am:"\u0635",pm:"\u0645",morning:"\u0627\u0644\u0635\u0628\u0627\u062D",noon:"\u0627\u0644\u0638\u0647\u0631",afternoon:"\u0628\u0639\u062F \u0627\u0644\u0638\u0647\u0631",evening:"\u0627\u0644\u0645\u0633\u0627\u0621",night:"\u0627\u0644\u0644\u064A\u0644",midnight:"\u0645\u0646\u062A\u0635\u0641 \u0627\u0644\u0644\u064A\u0644"},abbreviated:{am:"\u0635",pm:"\u0645",morning:"\u0627\u0644\u0635\u0628\u0627\u062D",noon:"\u0627\u0644\u0638\u0647\u0631",afternoon:"\u0628\u0639\u062F \u0627\u0644\u0638\u0647\u0631",evening:"\u0627\u0644\u0645\u0633\u0627\u0621",night:"\u0627\u0644\u0644\u064A\u0644",midnight:"\u0645\u0646\u062A\u0635\u0641 \u0627\u0644\u0644\u064A\u0644"},wide:{am:"\u0635",pm:"\u0645",morning:"\u0627\u0644\u0635\u0628\u0627\u062D",noon:"\u0627\u0644\u0638\u0647\u0631",afternoon:"\u0628\u0639\u062F \u0627\u0644\u0638\u0647\u0631",evening:"\u0627\u0644\u0645\u0633\u0627\u0621",night:"\u0627\u0644\u0644\u064A\u0644",midnight:"\u0645\u0646\u062A\u0635\u0641 \u0627\u0644\u0644\u064A\u0644"}},Ea={narrow:{am:"\u0635",pm:"\u0645",morning:"\u0641\u064A \u0627\u0644\u0635\u0628\u0627\u062D",noon:"\u0627\u0644\u0638\u0647\u0631",afternoon:"\u0628\u0639\u062F \u0627\u0644\u0638\u0647\u0631",evening:"\u0641\u064A \u0627\u0644\u0645\u0633\u0627\u0621",night:"\u0641\u064A \u0627\u0644\u0644\u064A\u0644",midnight:"\u0645\u0646\u062A\u0635\u0641 \u0627\u0644\u0644\u064A\u0644"},abbreviated:{am:"\u0635",pm:"\u0645",morning:"\u0641\u064A \u0627\u0644\u0635\u0628\u0627\u062D",noon:"\u0627\u0644\u0638\u0647\u0631",afternoon:"\u0628\u0639\u062F \u0627\u0644\u0638\u0647\u0631",evening:"\u0641\u064A \u0627\u0644\u0645\u0633\u0627\u0621",night:"\u0641\u064A \u0627\u0644\u0644\u064A\u0644",midnight:"\u0645\u0646\u062A\u0635\u0641 \u0627\u0644\u0644\u064A\u0644"},wide:{am:"\u0635",pm:"\u0645",morning:"\u0641\u064A \u0627\u0644\u0635\u0628\u0627\u062D",noon:"\u0627\u0644\u0638\u0647\u0631",afternoon:"\u0628\u0639\u062F \u0627\u0644\u0638\u0647\u0631",evening:"\u0641\u064A \u0627\u0644\u0645\u0633\u0627\u0621",night:"\u0641\u064A \u0627\u0644\u0644\u064A\u0644",midnight:"\u0645\u0646\u062A\u0635\u0641 \u0627\u0644\u0644\u064A\u0644"}},La=e=>String(e),Ee={ordinalNumber:La,era:r({values:ja,defaultWidth:"wide"}),quarter:r({values:Ta,defaultWidth:"wide",argumentCallback:e=>e-1}),month:r({values:Fa,defaultWidth:"wide"}),day:r({values:Na,defaultWidth:"wide"}),dayPeriod:r({values:Aa,defaultWidth:"wide",formattingValues:Ea,defaultFormattingWidth:"wide"})};function u(e){return(n,t={})=>{let a=n.match(e.matchPattern);if(!a)return null;let i=a[0],d=n.match(e.parsePattern);if(!d)return null;let m=e.valueCallback?e.valueCallback(d[0]):d[0];m=t.valueCallback?t.valueCallback(m):m;let c=n.slice(i.length);return{value:m,rest:c}}}function o(e){return(n,t={})=>{let a=t.width,i=a&&e.matchPatterns[a]||e.matchPatterns[e.defaultMatchWidth],d=n.match(i);if(!d)return null;let m=d[0],c=a&&e.parsePatterns[a]||e.parsePatterns[e.defaultParseWidth],f=Array.isArray(c)?Ga(c,E=>E.test(m)):Va(c,E=>E.test(m)),b;b=e.valueCallback?e.valueCallback(f):f,b=t.valueCallback?t.valueCallback(b):b;let A=n.slice(m.length);return{value:b,rest:A}}}function Va(e,n){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&n(e[t]))return t}function Ga(e,n){for(let t=0;tparseInt(e,10)}),era:o({matchPatterns:Xa,defaultMatchWidth:"wide",parsePatterns:Ra,defaultParseWidth:"any"}),quarter:o({matchPatterns:Ia,defaultMatchWidth:"wide",parsePatterns:qa,defaultParseWidth:"any",valueCallback:e=>e+1}),month:o({matchPatterns:Ba,defaultMatchWidth:"wide",parsePatterns:Ya,defaultParseWidth:"any"}),day:o({matchPatterns:Ja,defaultMatchWidth:"wide",parsePatterns:Qa,defaultParseWidth:"any"}),dayPeriod:o({matchPatterns:$a,defaultMatchWidth:"any",parsePatterns:Ka,defaultParseWidth:"any"})};var Ve={code:"ar",formatDistance:Fe,formatLong:Ne,formatRelative:Ae,localize:Ee,match:Le,options:{weekStartsOn:6,firstWeekContainsDate:1}};var Ge={lessThanXSeconds:{standalone:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"},withPreposition:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"}},xSeconds:{standalone:{one:"1 Sekunde",other:"{{count}} Sekunden"},withPreposition:{one:"1 Sekunde",other:"{{count}} Sekunden"}},halfAMinute:{standalone:"eine halbe Minute",withPreposition:"einer halben Minute"},lessThanXMinutes:{standalone:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"},withPreposition:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"}},xMinutes:{standalone:{one:"1 Minute",other:"{{count}} Minuten"},withPreposition:{one:"1 Minute",other:"{{count}} Minuten"}},aboutXHours:{standalone:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"},withPreposition:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"}},xHours:{standalone:{one:"1 Stunde",other:"{{count}} Stunden"},withPreposition:{one:"1 Stunde",other:"{{count}} Stunden"}},xDays:{standalone:{one:"1 Tag",other:"{{count}} Tage"},withPreposition:{one:"1 Tag",other:"{{count}} Tagen"}},aboutXWeeks:{standalone:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"},withPreposition:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"}},xWeeks:{standalone:{one:"1 Woche",other:"{{count}} Wochen"},withPreposition:{one:"1 Woche",other:"{{count}} Wochen"}},aboutXMonths:{standalone:{one:"etwa 1 Monat",other:"etwa {{count}} Monate"},withPreposition:{one:"etwa 1 Monat",other:"etwa {{count}} Monaten"}},xMonths:{standalone:{one:"1 Monat",other:"{{count}} Monate"},withPreposition:{one:"1 Monat",other:"{{count}} Monaten"}},aboutXYears:{standalone:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahre"},withPreposition:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahren"}},xYears:{standalone:{one:"1 Jahr",other:"{{count}} Jahre"},withPreposition:{one:"1 Jahr",other:"{{count}} Jahren"}},overXYears:{standalone:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahre"},withPreposition:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahren"}},almostXYears:{standalone:{one:"fast 1 Jahr",other:"fast {{count}} Jahre"},withPreposition:{one:"fast 1 Jahr",other:"fast {{count}} Jahren"}}},He=(e,n,t)=>{let a,i=t?.addSuffix?Ge[e].withPreposition:Ge[e].standalone;return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),t?.addSuffix?t.comparison&&t.comparison>0?"in "+a:"vor "+a:a};var Ua={full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},Za={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},en={full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Oe={date:s({formats:Ua,defaultWidth:"full"}),time:s({formats:Za,defaultWidth:"full"}),dateTime:s({formats:en,defaultWidth:"full"})};var tn={lastWeek:"'letzten' eeee 'um' p",yesterday:"'gestern um' p",today:"'heute um' p",tomorrow:"'morgen um' p",nextWeek:"eeee 'um' p",other:"P"},Xe=(e,n,t,a)=>tn[e];var an={narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["vor Christus","nach Christus"]},nn={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},U={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","M\xE4r","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],wide:["Januar","Februar","M\xE4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},rn={narrow:U.narrow,abbreviated:["Jan.","Feb.","M\xE4rz","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],wide:U.wide},on={narrow:["S","M","D","M","D","F","S"],short:["So","Mo","Di","Mi","Do","Fr","Sa"],abbreviated:["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],wide:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},sn={narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachm.",evening:"Abend",night:"Nacht"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"}},dn={narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachm.",evening:"abends",night:"nachts"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"}},mn=e=>Number(e)+".",Re={ordinalNumber:mn,era:r({values:an,defaultWidth:"wide"}),quarter:r({values:nn,defaultWidth:"wide",argumentCallback:e=>e-1}),month:r({values:U,formattingValues:rn,defaultWidth:"wide"}),day:r({values:on,defaultWidth:"wide"}),dayPeriod:r({values:sn,defaultWidth:"wide",formattingValues:dn,defaultFormattingWidth:"wide"})};var un=/^(\d+)(\.)?/i,cn=/\d+/i,ln={narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i},hn={any:[/^v/i,/^n/i]},fn={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},pn={any:[/1/i,/2/i,/3/i,/4/i]},gn={narrow:/^[jfmasond]/i,abbreviated:/^(j[aä]n|feb|mär[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i,wide:/^(januar|februar|märz|april|mai|juni|juli|august|september|oktober|november|dezember)/i},vn={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^j[aä]/i,/^f/i,/^mär/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},bn={narrow:/^[smdmf]/i,short:/^(so|mo|di|mi|do|fr|sa)/i,abbreviated:/^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i,wide:/^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i},yn={any:[/^so/i,/^mo/i,/^di/i,/^mi/i,/^do/i,/^f/i,/^sa/i]},wn={narrow:/^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,abbreviated:/^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,wide:/^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i},Pn={any:{am:/^v/i,pm:/^n/i,midnight:/^Mitte/i,noon:/^Mitta/i,morning:/morgens/i,afternoon:/nachmittags/i,evening:/abends/i,night:/nachts/i}},Ie={ordinalNumber:u({matchPattern:un,parsePattern:cn,valueCallback:e=>parseInt(e)}),era:o({matchPatterns:ln,defaultMatchWidth:"wide",parsePatterns:hn,defaultParseWidth:"any"}),quarter:o({matchPatterns:fn,defaultMatchWidth:"wide",parsePatterns:pn,defaultParseWidth:"any",valueCallback:e=>e+1}),month:o({matchPatterns:gn,defaultMatchWidth:"wide",parsePatterns:vn,defaultParseWidth:"any"}),day:o({matchPatterns:bn,defaultMatchWidth:"wide",parsePatterns:yn,defaultParseWidth:"any"}),dayPeriod:o({matchPatterns:wn,defaultMatchWidth:"wide",parsePatterns:Pn,defaultParseWidth:"any"})};var qe={code:"de",formatDistance:He,formatLong:Oe,formatRelative:Xe,localize:Re,match:Ie,options:{weekStartsOn:1,firstWeekContainsDate:4}};var Mn={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Be=(e,n,t)=>{let a,i=Mn[e];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",n.toString()),t?.addSuffix?t.comparison&&t.comparison>0?"in "+a:a+" ago":a};var kn={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},xn={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Wn={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Ye={date:s({formats:kn,defaultWidth:"full"}),time:s({formats:xn,defaultWidth:"full"}),dateTime:s({formats:Wn,defaultWidth:"full"})};var Dn={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Je=(e,n,t,a)=>Dn[e];var Sn={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},_n={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},zn={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Cn={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},jn={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Tn={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Fn=(e,n)=>{let t=Number(e),a=t%100;if(a>20||a<10)switch(a%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"},Qe={ordinalNumber:Fn,era:r({values:Sn,defaultWidth:"wide"}),quarter:r({values:_n,defaultWidth:"wide",argumentCallback:e=>e-1}),month:r({values:zn,defaultWidth:"wide"}),day:r({values:Cn,defaultWidth:"wide"}),dayPeriod:r({values:jn,defaultWidth:"wide",formattingValues:Tn,defaultFormattingWidth:"wide"})};var Nn=/^(\d+)(th|st|nd|rd)?/i,An=/\d+/i,En={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Ln={any:[/^b/i,/^(a|c)/i]},Vn={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Gn={any:[/1/i,/2/i,/3/i,/4/i]},Hn={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},On={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Xn={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Rn={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},In={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},qn={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},$e={ordinalNumber:u({matchPattern:Nn,parsePattern:An,valueCallback:e=>parseInt(e,10)}),era:o({matchPatterns:En,defaultMatchWidth:"wide",parsePatterns:Ln,defaultParseWidth:"any"}),quarter:o({matchPatterns:Vn,defaultMatchWidth:"wide",parsePatterns:Gn,defaultParseWidth:"any",valueCallback:e=>e+1}),month:o({matchPatterns:Hn,defaultMatchWidth:"wide",parsePatterns:On,defaultParseWidth:"any"}),day:o({matchPatterns:Xn,defaultMatchWidth:"wide",parsePatterns:Rn,defaultParseWidth:"any"}),dayPeriod:o({matchPatterns:In,defaultMatchWidth:"any",parsePatterns:qn,defaultParseWidth:"any"})};var F={code:"en-US",formatDistance:Be,formatLong:Ye,formatRelative:Je,localize:Qe,match:$e,options:{weekStartsOn:0,firstWeekContainsDate:1}};var Bn={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 d\xEDa",other:"{{count}} d\xEDas"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 a\xF1o",other:"alrededor de {{count}} a\xF1os"},xYears:{one:"1 a\xF1o",other:"{{count}} a\xF1os"},overXYears:{one:"m\xE1s de 1 a\xF1o",other:"m\xE1s de {{count}} a\xF1os"},almostXYears:{one:"casi 1 a\xF1o",other:"casi {{count}} a\xF1os"}},Ke=(e,n,t)=>{let a,i=Bn[e];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",n.toString()),t?.addSuffix?t.comparison&&t.comparison>0?"en "+a:"hace "+a:a};var Yn={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},Jn={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Qn={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Ue={date:s({formats:Yn,defaultWidth:"full"}),time:s({formats:Jn,defaultWidth:"full"}),dateTime:s({formats:Qn,defaultWidth:"full"})};var $n={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'ma\xF1ana a la' p",nextWeek:"eeee 'a la' p",other:"P"},Kn={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'ma\xF1ana a las' p",nextWeek:"eeee 'a las' p",other:"P"},Ze=(e,n,t,a)=>n.getHours()!==1?Kn[e]:$n[e];var Un={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","despu\xE9s de cristo"]},Zn={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1\xBA trimestre","2\xBA trimestre","3\xBA trimestre","4\xBA trimestre"]},ei={narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},ti={narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","s\xE1"],abbreviated:["dom","lun","mar","mi\xE9","jue","vie","s\xE1b"],wide:["domingo","lunes","martes","mi\xE9rcoles","jueves","viernes","s\xE1bado"]},ai={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"ma\xF1ana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"ma\xF1ana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"ma\xF1ana",afternoon:"tarde",evening:"tarde",night:"noche"}},ni={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la ma\xF1ana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la ma\xF1ana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la ma\xF1ana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},ii=(e,n)=>Number(e)+"\xBA",et={ordinalNumber:ii,era:r({values:Un,defaultWidth:"wide"}),quarter:r({values:Zn,defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:r({values:ei,defaultWidth:"wide"}),day:r({values:ti,defaultWidth:"wide"}),dayPeriod:r({values:ai,defaultWidth:"wide",formattingValues:ni,defaultFormattingWidth:"wide"})};var ri=/^(\d+)(º)?/i,oi=/\d+/i,si={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},di={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},mi={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},ui={any:[/1/i,/2/i,/3/i,/4/i]},ci={narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},li={narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},hi={narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},fi={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},pi={narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},gi={any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},tt={ordinalNumber:u({matchPattern:ri,parsePattern:oi,valueCallback:function(e){return parseInt(e,10)}}),era:o({matchPatterns:si,defaultMatchWidth:"wide",parsePatterns:di,defaultParseWidth:"any"}),quarter:o({matchPatterns:mi,defaultMatchWidth:"wide",parsePatterns:ui,defaultParseWidth:"any",valueCallback:e=>e+1}),month:o({matchPatterns:ci,defaultMatchWidth:"wide",parsePatterns:li,defaultParseWidth:"any"}),day:o({matchPatterns:hi,defaultMatchWidth:"wide",parsePatterns:fi,defaultParseWidth:"any"}),dayPeriod:o({matchPatterns:pi,defaultMatchWidth:"any",parsePatterns:gi,defaultParseWidth:"any"})};var at={code:"es",formatDistance:Ke,formatLong:Ue,formatRelative:Ze,localize:et,match:tt,options:{weekStartsOn:1,firstWeekContainsDate:1}};var vi={lessThanXSeconds:{one:"moins d\u2019une seconde",other:"moins de {{count}} secondes"},xSeconds:{one:"1 seconde",other:"{{count}} secondes"},halfAMinute:"30 secondes",lessThanXMinutes:{one:"moins d\u2019une minute",other:"moins de {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"environ 1 heure",other:"environ {{count}} heures"},xHours:{one:"1 heure",other:"{{count}} heures"},xDays:{one:"1 jour",other:"{{count}} jours"},aboutXWeeks:{one:"environ 1 semaine",other:"environ {{count}} semaines"},xWeeks:{one:"1 semaine",other:"{{count}} semaines"},aboutXMonths:{one:"environ 1 mois",other:"environ {{count}} mois"},xMonths:{one:"1 mois",other:"{{count}} mois"},aboutXYears:{one:"environ 1 an",other:"environ {{count}} ans"},xYears:{one:"1 an",other:"{{count}} ans"},overXYears:{one:"plus d\u2019un an",other:"plus de {{count}} ans"},almostXYears:{one:"presqu\u2019un an",other:"presque {{count}} ans"}},nt=(e,n,t)=>{let a,i=vi[e];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),t?.addSuffix?t.comparison&&t.comparison>0?"dans "+a:"il y a "+a:a};var bi={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},yi={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},wi={full:"{{date}} '\xE0' {{time}}",long:"{{date}} '\xE0' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},it={date:s({formats:bi,defaultWidth:"full"}),time:s({formats:yi,defaultWidth:"full"}),dateTime:s({formats:wi,defaultWidth:"full"})};var Pi={lastWeek:"eeee 'dernier \xE0' p",yesterday:"'hier \xE0' p",today:"'aujourd\u2019hui \xE0' p",tomorrow:"'demain \xE0' p'",nextWeek:"eeee 'prochain \xE0' p",other:"P"},rt=(e,n,t,a)=>Pi[e];var Mi={narrow:["av. J.-C","ap. J.-C"],abbreviated:["av. J.-C","ap. J.-C"],wide:["avant J\xE9sus-Christ","apr\xE8s J\xE9sus-Christ"]},ki={narrow:["T1","T2","T3","T4"],abbreviated:["1er trim.","2\xE8me trim.","3\xE8me trim.","4\xE8me trim."],wide:["1er trimestre","2\xE8me trimestre","3\xE8me trimestre","4\xE8me trimestre"]},xi={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","f\xE9vr.","mars","avr.","mai","juin","juil.","ao\xFBt","sept.","oct.","nov.","d\xE9c."],wide:["janvier","f\xE9vrier","mars","avril","mai","juin","juillet","ao\xFBt","septembre","octobre","novembre","d\xE9cembre"]},Wi={narrow:["D","L","M","M","J","V","S"],short:["di","lu","ma","me","je","ve","sa"],abbreviated:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],wide:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},Di={narrow:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"mat.",afternoon:"ap.m.",evening:"soir",night:"mat."},abbreviated:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"matin",afternoon:"apr\xE8s-midi",evening:"soir",night:"matin"},wide:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"du matin",afternoon:"de l\u2019apr\xE8s-midi",evening:"du soir",night:"du matin"}},Si=(e,n)=>{let t=Number(e),a=n?.unit;if(t===0)return"0";let i=["year","week","hour","minute","second"],d;return t===1?d=a&&i.includes(a)?"\xE8re":"er":d="\xE8me",t+d},_i=["MMM","MMMM"],ot={preprocessor:(e,n)=>e.getDate()===1||!n.some(a=>a.isToken&&_i.includes(a.value))?n:n.map(a=>a.isToken&&a.value==="do"?{isToken:!0,value:"d"}:a),ordinalNumber:Si,era:r({values:Mi,defaultWidth:"wide"}),quarter:r({values:ki,defaultWidth:"wide",argumentCallback:e=>e-1}),month:r({values:xi,defaultWidth:"wide"}),day:r({values:Wi,defaultWidth:"wide"}),dayPeriod:r({values:Di,defaultWidth:"wide"})};var zi=/^(\d+)(ième|ère|ème|er|e)?/i,Ci=/\d+/i,ji={narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(avant Jésus-Christ|après Jésus-Christ)/i},Ti={any:[/^av/i,/^ap/i]},Fi={narrow:/^T?[1234]/i,abbreviated:/^[1234](er|ème|e)? trim\.?/i,wide:/^[1234](er|ème|e)? trimestre/i},Ni={any:[/1/i,/2/i,/3/i,/4/i]},Ai={narrow:/^[jfmasond]/i,abbreviated:/^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i,wide:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i},Ei={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^av/i,/^ma/i,/^juin/i,/^juil/i,/^ao/i,/^s/i,/^o/i,/^n/i,/^d/i]},Li={narrow:/^[lmjvsd]/i,short:/^(di|lu|ma|me|je|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i},Vi={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^lu/i,/^ma/i,/^me/i,/^je/i,/^ve/i,/^sa/i]},Gi={narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,any:/^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i},Hi={any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/soir/i,night:/nuit/i}},st={ordinalNumber:u({matchPattern:zi,parsePattern:Ci,valueCallback:e=>parseInt(e)}),era:o({matchPatterns:ji,defaultMatchWidth:"wide",parsePatterns:Ti,defaultParseWidth:"any"}),quarter:o({matchPatterns:Fi,defaultMatchWidth:"wide",parsePatterns:Ni,defaultParseWidth:"any",valueCallback:e=>e+1}),month:o({matchPatterns:Ai,defaultMatchWidth:"wide",parsePatterns:Ei,defaultParseWidth:"any"}),day:o({matchPatterns:Li,defaultMatchWidth:"wide",parsePatterns:Vi,defaultParseWidth:"any"}),dayPeriod:o({matchPatterns:Gi,defaultMatchWidth:"any",parsePatterns:Hi,defaultParseWidth:"any"})};var dt={code:"fr",formatDistance:nt,formatLong:it,formatRelative:rt,localize:ot,match:st,options:{weekStartsOn:1,firstWeekContainsDate:4}};var mt={locale:{1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096A",5:"\u096B",6:"\u096C",7:"\u096D",8:"\u096E",9:"\u096F",0:"\u0966"},number:{"\u0967":"1","\u0968":"2","\u0969":"3","\u096A":"4","\u096B":"5","\u096C":"6","\u096D":"7","\u096E":"8","\u096F":"9","\u0966":"0"}},Oi={narrow:["\u0908\u0938\u093E-\u092A\u0942\u0930\u094D\u0935","\u0908\u0938\u094D\u0935\u0940"],abbreviated:["\u0908\u0938\u093E-\u092A\u0942\u0930\u094D\u0935","\u0908\u0938\u094D\u0935\u0940"],wide:["\u0908\u0938\u093E-\u092A\u0942\u0930\u094D\u0935","\u0908\u0938\u0935\u0940 \u0938\u0928"]},Xi={narrow:["1","2","3","4"],abbreviated:["\u0924\u093F1","\u0924\u093F2","\u0924\u093F3","\u0924\u093F4"],wide:["\u092A\u0939\u0932\u0940 \u0924\u093F\u092E\u093E\u0939\u0940","\u0926\u0942\u0938\u0930\u0940 \u0924\u093F\u092E\u093E\u0939\u0940","\u0924\u0940\u0938\u0930\u0940 \u0924\u093F\u092E\u093E\u0939\u0940","\u091A\u094C\u0925\u0940 \u0924\u093F\u092E\u093E\u0939\u0940"]},Ri={narrow:["\u091C","\u092B\u093C","\u092E\u093E","\u0905","\u092E\u0908","\u091C\u0942","\u091C\u0941","\u0905\u0917","\u0938\u093F","\u0905\u0915\u094D\u091F\u0942","\u0928","\u0926\u093F"],abbreviated:["\u091C\u0928","\u092B\u093C\u0930","\u092E\u093E\u0930\u094D\u091A","\u0905\u092A\u094D\u0930\u0948\u0932","\u092E\u0908","\u091C\u0942\u0928","\u091C\u0941\u0932","\u0905\u0917","\u0938\u093F\u0924","\u0905\u0915\u094D\u091F\u0942","\u0928\u0935","\u0926\u093F\u0938"],wide:["\u091C\u0928\u0935\u0930\u0940","\u092B\u093C\u0930\u0935\u0930\u0940","\u092E\u093E\u0930\u094D\u091A","\u0905\u092A\u094D\u0930\u0948\u0932","\u092E\u0908","\u091C\u0942\u0928","\u091C\u0941\u0932\u093E\u0908","\u0905\u0917\u0938\u094D\u0924","\u0938\u093F\u0924\u0902\u092C\u0930","\u0905\u0915\u094D\u091F\u0942\u092C\u0930","\u0928\u0935\u0902\u092C\u0930","\u0926\u093F\u0938\u0902\u092C\u0930"]},Ii={narrow:["\u0930","\u0938\u094B","\u092E\u0902","\u092C\u0941","\u0917\u0941","\u0936\u0941","\u0936"],short:["\u0930","\u0938\u094B","\u092E\u0902","\u092C\u0941","\u0917\u0941","\u0936\u0941","\u0936"],abbreviated:["\u0930\u0935\u093F","\u0938\u094B\u092E","\u092E\u0902\u0917\u0932","\u092C\u0941\u0927","\u0917\u0941\u0930\u0941","\u0936\u0941\u0915\u094D\u0930","\u0936\u0928\u093F"],wide:["\u0930\u0935\u093F\u0935\u093E\u0930","\u0938\u094B\u092E\u0935\u093E\u0930","\u092E\u0902\u0917\u0932\u0935\u093E\u0930","\u092C\u0941\u0927\u0935\u093E\u0930","\u0917\u0941\u0930\u0941\u0935\u093E\u0930","\u0936\u0941\u0915\u094D\u0930\u0935\u093E\u0930","\u0936\u0928\u093F\u0935\u093E\u0930"]},qi={narrow:{am:"\u092A\u0942\u0930\u094D\u0935\u093E\u0939\u094D\u0928",pm:"\u0905\u092A\u0930\u093E\u0939\u094D\u0928",midnight:"\u092E\u0927\u094D\u092F\u0930\u093E\u0924\u094D\u0930\u093F",noon:"\u0926\u094B\u092A\u0939\u0930",morning:"\u0938\u0941\u092C\u0939",afternoon:"\u0926\u094B\u092A\u0939\u0930",evening:"\u0936\u093E\u092E",night:"\u0930\u093E\u0924"},abbreviated:{am:"\u092A\u0942\u0930\u094D\u0935\u093E\u0939\u094D\u0928",pm:"\u0905\u092A\u0930\u093E\u0939\u094D\u0928",midnight:"\u092E\u0927\u094D\u092F\u0930\u093E\u0924\u094D\u0930\u093F",noon:"\u0926\u094B\u092A\u0939\u0930",morning:"\u0938\u0941\u092C\u0939",afternoon:"\u0926\u094B\u092A\u0939\u0930",evening:"\u0936\u093E\u092E",night:"\u0930\u093E\u0924"},wide:{am:"\u092A\u0942\u0930\u094D\u0935\u093E\u0939\u094D\u0928",pm:"\u0905\u092A\u0930\u093E\u0939\u094D\u0928",midnight:"\u092E\u0927\u094D\u092F\u0930\u093E\u0924\u094D\u0930\u093F",noon:"\u0926\u094B\u092A\u0939\u0930",morning:"\u0938\u0941\u092C\u0939",afternoon:"\u0926\u094B\u092A\u0939\u0930",evening:"\u0936\u093E\u092E",night:"\u0930\u093E\u0924"}},Bi={narrow:{am:"\u092A\u0942\u0930\u094D\u0935\u093E\u0939\u094D\u0928",pm:"\u0905\u092A\u0930\u093E\u0939\u094D\u0928",midnight:"\u092E\u0927\u094D\u092F\u0930\u093E\u0924\u094D\u0930\u093F",noon:"\u0926\u094B\u092A\u0939\u0930",morning:"\u0938\u0941\u092C\u0939",afternoon:"\u0926\u094B\u092A\u0939\u0930",evening:"\u0936\u093E\u092E",night:"\u0930\u093E\u0924"},abbreviated:{am:"\u092A\u0942\u0930\u094D\u0935\u093E\u0939\u094D\u0928",pm:"\u0905\u092A\u0930\u093E\u0939\u094D\u0928",midnight:"\u092E\u0927\u094D\u092F\u0930\u093E\u0924\u094D\u0930\u093F",noon:"\u0926\u094B\u092A\u0939\u0930",morning:"\u0938\u0941\u092C\u0939",afternoon:"\u0926\u094B\u092A\u0939\u0930",evening:"\u0936\u093E\u092E",night:"\u0930\u093E\u0924"},wide:{am:"\u092A\u0942\u0930\u094D\u0935\u093E\u0939\u094D\u0928",pm:"\u0905\u092A\u0930\u093E\u0939\u094D\u0928",midnight:"\u092E\u0927\u094D\u092F\u0930\u093E\u0924\u094D\u0930\u093F",noon:"\u0926\u094B\u092A\u0939\u0930",morning:"\u0938\u0941\u092C\u0939",afternoon:"\u0926\u094B\u092A\u0939\u0930",evening:"\u0936\u093E\u092E",night:"\u0930\u093E\u0924"}},Yi=(e,n)=>{let t=Number(e);return Z(t)};function ut(e){let n=e.toString().replace(/[१२३४५६७८९०]/g,function(t){return mt.number[t]});return Number(n)}function Z(e){return e.toString().replace(/\d/g,function(n){return mt.locale[n]})}var ct={ordinalNumber:Yi,era:r({values:Oi,defaultWidth:"wide"}),quarter:r({values:Xi,defaultWidth:"wide",argumentCallback:e=>e-1}),month:r({values:Ri,defaultWidth:"wide"}),day:r({values:Ii,defaultWidth:"wide"}),dayPeriod:r({values:qi,defaultWidth:"wide",formattingValues:Bi,defaultFormattingWidth:"wide"})};var Ji={lessThanXSeconds:{one:"\u0967 \u0938\u0947\u0915\u0902\u0921 \u0938\u0947 \u0915\u092E",other:"{{count}} \u0938\u0947\u0915\u0902\u0921 \u0938\u0947 \u0915\u092E"},xSeconds:{one:"\u0967 \u0938\u0947\u0915\u0902\u0921",other:"{{count}} \u0938\u0947\u0915\u0902\u0921"},halfAMinute:"\u0906\u0927\u093E \u092E\u093F\u0928\u091F",lessThanXMinutes:{one:"\u0967 \u092E\u093F\u0928\u091F \u0938\u0947 \u0915\u092E",other:"{{count}} \u092E\u093F\u0928\u091F \u0938\u0947 \u0915\u092E"},xMinutes:{one:"\u0967 \u092E\u093F\u0928\u091F",other:"{{count}} \u092E\u093F\u0928\u091F"},aboutXHours:{one:"\u0932\u0917\u092D\u0917 \u0967 \u0918\u0902\u091F\u093E",other:"\u0932\u0917\u092D\u0917 {{count}} \u0918\u0902\u091F\u0947"},xHours:{one:"\u0967 \u0918\u0902\u091F\u093E",other:"{{count}} \u0918\u0902\u091F\u0947"},xDays:{one:"\u0967 \u0926\u093F\u0928",other:"{{count}} \u0926\u093F\u0928"},aboutXWeeks:{one:"\u0932\u0917\u092D\u0917 \u0967 \u0938\u092A\u094D\u0924\u093E\u0939",other:"\u0932\u0917\u092D\u0917 {{count}} \u0938\u092A\u094D\u0924\u093E\u0939"},xWeeks:{one:"\u0967 \u0938\u092A\u094D\u0924\u093E\u0939",other:"{{count}} \u0938\u092A\u094D\u0924\u093E\u0939"},aboutXMonths:{one:"\u0932\u0917\u092D\u0917 \u0967 \u092E\u0939\u0940\u0928\u093E",other:"\u0932\u0917\u092D\u0917 {{count}} \u092E\u0939\u0940\u0928\u0947"},xMonths:{one:"\u0967 \u092E\u0939\u0940\u0928\u093E",other:"{{count}} \u092E\u0939\u0940\u0928\u0947"},aboutXYears:{one:"\u0932\u0917\u092D\u0917 \u0967 \u0935\u0930\u094D\u0937",other:"\u0932\u0917\u092D\u0917 {{count}} \u0935\u0930\u094D\u0937"},xYears:{one:"\u0967 \u0935\u0930\u094D\u0937",other:"{{count}} \u0935\u0930\u094D\u0937"},overXYears:{one:"\u0967 \u0935\u0930\u094D\u0937 \u0938\u0947 \u0905\u0927\u093F\u0915",other:"{{count}} \u0935\u0930\u094D\u0937 \u0938\u0947 \u0905\u0927\u093F\u0915"},almostXYears:{one:"\u0932\u0917\u092D\u0917 \u0967 \u0935\u0930\u094D\u0937",other:"\u0932\u0917\u092D\u0917 {{count}} \u0935\u0930\u094D\u0937"}},lt=(e,n,t)=>{let a,i=Ji[e];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",Z(n)),t?.addSuffix?t.comparison&&t.comparison>0?a+"\u092E\u0947 ":a+" \u092A\u0939\u0932\u0947":a};var Qi={full:"EEEE, do MMMM, y",long:"do MMMM, y",medium:"d MMM, y",short:"dd/MM/yyyy"},$i={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Ki={full:"{{date}} '\u0915\u094B' {{time}}",long:"{{date}} '\u0915\u094B' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},ht={date:s({formats:Qi,defaultWidth:"full"}),time:s({formats:$i,defaultWidth:"full"}),dateTime:s({formats:Ki,defaultWidth:"full"})};var Ui={lastWeek:"'\u092A\u093F\u091B\u0932\u0947' eeee p",yesterday:"'\u0915\u0932' p",today:"'\u0906\u091C' p",tomorrow:"'\u0915\u0932' p",nextWeek:"eeee '\u0915\u094B' p",other:"P"},ft=(e,n,t,a)=>Ui[e];var Zi=/^[०१२३४५६७८९]+/i,er=/^[०१२३४५६७८९]+/i,tr={narrow:/^(ईसा-पूर्व|ईस्वी)/i,abbreviated:/^(ईसा\.?\s?पूर्व\.?|ईसा\.?)/i,wide:/^(ईसा-पूर्व|ईसवी पूर्व|ईसवी सन|ईसवी)/i},ar={any:[/^b/i,/^(a|c)/i]},nr={narrow:/^[1234]/i,abbreviated:/^ति[1234]/i,wide:/^[1234](पहली|दूसरी|तीसरी|चौथी)? तिमाही/i},ir={any:[/1/i,/2/i,/3/i,/4/i]},rr={narrow:/^[जफ़माअप्मईजूनजुअगसिअक्तनदि]/i,abbreviated:/^(जन|फ़र|मार्च|अप्|मई|जून|जुल|अग|सित|अक्तू|नव|दिस)/i,wide:/^(जनवरी|फ़रवरी|मार्च|अप्रैल|मई|जून|जुलाई|अगस्त|सितंबर|अक्तूबर|नवंबर|दिसंबर)/i},or={narrow:[/^ज/i,/^फ़/i,/^मा/i,/^अप्/i,/^मई/i,/^जू/i,/^जु/i,/^अग/i,/^सि/i,/^अक्तू/i,/^न/i,/^दि/i],any:[/^जन/i,/^फ़/i,/^मा/i,/^अप्/i,/^मई/i,/^जू/i,/^जु/i,/^अग/i,/^सि/i,/^अक्तू/i,/^नव/i,/^दिस/i]},sr={narrow:/^[रविसोममंगलबुधगुरुशुक्रशनि]/i,short:/^(रवि|सोम|मंगल|बुध|गुरु|शुक्र|शनि)/i,abbreviated:/^(रवि|सोम|मंगल|बुध|गुरु|शुक्र|शनि)/i,wide:/^(रविवार|सोमवार|मंगलवार|बुधवार|गुरुवार|शुक्रवार|शनिवार)/i},dr={narrow:[/^रवि/i,/^सोम/i,/^मंगल/i,/^बुध/i,/^गुरु/i,/^शुक्र/i,/^शनि/i],any:[/^रवि/i,/^सोम/i,/^मंगल/i,/^बुध/i,/^गुरु/i,/^शुक्र/i,/^शनि/i]},mr={narrow:/^(पू|अ|म|द.\?|सु|दो|शा|रा)/i,any:/^(पूर्वाह्न|अपराह्न|म|द.\?|सु|दो|शा|रा)/i},ur={any:{am:/^पूर्वाह्न/i,pm:/^अपराह्न/i,midnight:/^मध्य/i,noon:/^दो/i,morning:/सु/i,afternoon:/दो/i,evening:/शा/i,night:/रा/i}},pt={ordinalNumber:u({matchPattern:Zi,parsePattern:er,valueCallback:ut}),era:o({matchPatterns:tr,defaultMatchWidth:"wide",parsePatterns:ar,defaultParseWidth:"any"}),quarter:o({matchPatterns:nr,defaultMatchWidth:"wide",parsePatterns:ir,defaultParseWidth:"any",valueCallback:e=>e+1}),month:o({matchPatterns:rr,defaultMatchWidth:"wide",parsePatterns:or,defaultParseWidth:"any"}),day:o({matchPatterns:sr,defaultMatchWidth:"wide",parsePatterns:dr,defaultParseWidth:"any"}),dayPeriod:o({matchPatterns:mr,defaultMatchWidth:"any",parsePatterns:ur,defaultParseWidth:"any"})};var gt={code:"hi",formatDistance:lt,formatLong:ht,formatRelative:ft,localize:ct,match:pt,options:{weekStartsOn:0,firstWeekContainsDate:4}};var cr={lessThanXSeconds:{one:"1\u79D2\u672A\u6E80",other:"{{count}}\u79D2\u672A\u6E80",oneWithSuffix:"\u7D041\u79D2",otherWithSuffix:"\u7D04{{count}}\u79D2"},xSeconds:{one:"1\u79D2",other:"{{count}}\u79D2"},halfAMinute:"30\u79D2",lessThanXMinutes:{one:"1\u5206\u672A\u6E80",other:"{{count}}\u5206\u672A\u6E80",oneWithSuffix:"\u7D041\u5206",otherWithSuffix:"\u7D04{{count}}\u5206"},xMinutes:{one:"1\u5206",other:"{{count}}\u5206"},aboutXHours:{one:"\u7D041\u6642\u9593",other:"\u7D04{{count}}\u6642\u9593"},xHours:{one:"1\u6642\u9593",other:"{{count}}\u6642\u9593"},xDays:{one:"1\u65E5",other:"{{count}}\u65E5"},aboutXWeeks:{one:"\u7D041\u9031\u9593",other:"\u7D04{{count}}\u9031\u9593"},xWeeks:{one:"1\u9031\u9593",other:"{{count}}\u9031\u9593"},aboutXMonths:{one:"\u7D041\u304B\u6708",other:"\u7D04{{count}}\u304B\u6708"},xMonths:{one:"1\u304B\u6708",other:"{{count}}\u304B\u6708"},aboutXYears:{one:"\u7D041\u5E74",other:"\u7D04{{count}}\u5E74"},xYears:{one:"1\u5E74",other:"{{count}}\u5E74"},overXYears:{one:"1\u5E74\u4EE5\u4E0A",other:"{{count}}\u5E74\u4EE5\u4E0A"},almostXYears:{one:"1\u5E74\u8FD1\u304F",other:"{{count}}\u5E74\u8FD1\u304F"}},vt=(e,n,t)=>{t=t||{};let a,i=cr[e];return typeof i=="string"?a=i:n===1?t.addSuffix&&i.oneWithSuffix?a=i.oneWithSuffix:a=i.one:t.addSuffix&&i.otherWithSuffix?a=i.otherWithSuffix.replace("{{count}}",String(n)):a=i.other.replace("{{count}}",String(n)),t.addSuffix?t.comparison&&t.comparison>0?a+"\u5F8C":a+"\u524D":a};var lr={full:"y\u5E74M\u6708d\u65E5EEEE",long:"y\u5E74M\u6708d\u65E5",medium:"y/MM/dd",short:"y/MM/dd"},hr={full:"H\u6642mm\u5206ss\u79D2 zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},fr={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},bt={date:s({formats:lr,defaultWidth:"full"}),time:s({formats:hr,defaultWidth:"full"}),dateTime:s({formats:fr,defaultWidth:"full"})};var pr={lastWeek:"\u5148\u9031\u306Eeeee\u306Ep",yesterday:"\u6628\u65E5\u306Ep",today:"\u4ECA\u65E5\u306Ep",tomorrow:"\u660E\u65E5\u306Ep",nextWeek:"\u7FCC\u9031\u306Eeeee\u306Ep",other:"P"},yt=(e,n,t,a)=>pr[e];var gr={narrow:["BC","AC"],abbreviated:["\u7D00\u5143\u524D","\u897F\u66A6"],wide:["\u7D00\u5143\u524D","\u897F\u66A6"]},vr={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["\u7B2C1\u56DB\u534A\u671F","\u7B2C2\u56DB\u534A\u671F","\u7B2C3\u56DB\u534A\u671F","\u7B2C4\u56DB\u534A\u671F"]},br={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],wide:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"]},yr={narrow:["\u65E5","\u6708","\u706B","\u6C34","\u6728","\u91D1","\u571F"],short:["\u65E5","\u6708","\u706B","\u6C34","\u6728","\u91D1","\u571F"],abbreviated:["\u65E5","\u6708","\u706B","\u6C34","\u6728","\u91D1","\u571F"],wide:["\u65E5\u66DC\u65E5","\u6708\u66DC\u65E5","\u706B\u66DC\u65E5","\u6C34\u66DC\u65E5","\u6728\u66DC\u65E5","\u91D1\u66DC\u65E5","\u571F\u66DC\u65E5"]},wr={narrow:{am:"\u5348\u524D",pm:"\u5348\u5F8C",midnight:"\u6DF1\u591C",noon:"\u6B63\u5348",morning:"\u671D",afternoon:"\u5348\u5F8C",evening:"\u591C",night:"\u6DF1\u591C"},abbreviated:{am:"\u5348\u524D",pm:"\u5348\u5F8C",midnight:"\u6DF1\u591C",noon:"\u6B63\u5348",morning:"\u671D",afternoon:"\u5348\u5F8C",evening:"\u591C",night:"\u6DF1\u591C"},wide:{am:"\u5348\u524D",pm:"\u5348\u5F8C",midnight:"\u6DF1\u591C",noon:"\u6B63\u5348",morning:"\u671D",afternoon:"\u5348\u5F8C",evening:"\u591C",night:"\u6DF1\u591C"}},Pr={narrow:{am:"\u5348\u524D",pm:"\u5348\u5F8C",midnight:"\u6DF1\u591C",noon:"\u6B63\u5348",morning:"\u671D",afternoon:"\u5348\u5F8C",evening:"\u591C",night:"\u6DF1\u591C"},abbreviated:{am:"\u5348\u524D",pm:"\u5348\u5F8C",midnight:"\u6DF1\u591C",noon:"\u6B63\u5348",morning:"\u671D",afternoon:"\u5348\u5F8C",evening:"\u591C",night:"\u6DF1\u591C"},wide:{am:"\u5348\u524D",pm:"\u5348\u5F8C",midnight:"\u6DF1\u591C",noon:"\u6B63\u5348",morning:"\u671D",afternoon:"\u5348\u5F8C",evening:"\u591C",night:"\u6DF1\u591C"}},Mr=(e,n)=>{let t=Number(e);switch(String(n?.unit)){case"year":return`${t}\u5E74`;case"quarter":return`\u7B2C${t}\u56DB\u534A\u671F`;case"month":return`${t}\u6708`;case"week":return`\u7B2C${t}\u9031`;case"date":return`${t}\u65E5`;case"hour":return`${t}\u6642`;case"minute":return`${t}\u5206`;case"second":return`${t}\u79D2`;default:return`${t}`}},wt={ordinalNumber:Mr,era:r({values:gr,defaultWidth:"wide"}),quarter:r({values:vr,defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:r({values:br,defaultWidth:"wide"}),day:r({values:yr,defaultWidth:"wide"}),dayPeriod:r({values:wr,defaultWidth:"wide",formattingValues:Pr,defaultFormattingWidth:"wide"})};var kr=/^第?\d+(年|四半期|月|週|日|時|分|秒)?/i,xr=/\d+/i,Wr={narrow:/^(B\.?C\.?|A\.?D\.?)/i,abbreviated:/^(紀元[前後]|西暦)/i,wide:/^(紀元[前後]|西暦)/i},Dr={narrow:[/^B/i,/^A/i],any:[/^(紀元前)/i,/^(西暦|紀元後)/i]},Sr={narrow:/^[1234]/i,abbreviated:/^Q[1234]/i,wide:/^第[1234一二三四1234]四半期/i},_r={any:[/(1|一|1)/i,/(2|二|2)/i,/(3|三|3)/i,/(4|四|4)/i]},zr={narrow:/^([123456789]|1[012])/,abbreviated:/^([123456789]|1[012])月/i,wide:/^([123456789]|1[012])月/i},Cr={any:[/^1\D/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},jr={narrow:/^[日月火水木金土]/,short:/^[日月火水木金土]/,abbreviated:/^[日月火水木金土]/,wide:/^[日月火水木金土]曜日/},Tr={any:[/^日/,/^月/,/^火/,/^水/,/^木/,/^金/,/^土/]},Fr={any:/^(AM|PM|午前|午後|正午|深夜|真夜中|夜|朝)/i},Nr={any:{am:/^(A|午前)/i,pm:/^(P|午後)/i,midnight:/^深夜|真夜中/i,noon:/^正午/i,morning:/^朝/i,afternoon:/^午後/i,evening:/^夜/i,night:/^深夜/i}},Pt={ordinalNumber:u({matchPattern:kr,parsePattern:xr,valueCallback:function(e){return parseInt(e,10)}}),era:o({matchPatterns:Wr,defaultMatchWidth:"wide",parsePatterns:Dr,defaultParseWidth:"any"}),quarter:o({matchPatterns:Sr,defaultMatchWidth:"wide",parsePatterns:_r,defaultParseWidth:"any",valueCallback:e=>e+1}),month:o({matchPatterns:zr,defaultMatchWidth:"wide",parsePatterns:Cr,defaultParseWidth:"any"}),day:o({matchPatterns:jr,defaultMatchWidth:"wide",parsePatterns:Tr,defaultParseWidth:"any"}),dayPeriod:o({matchPatterns:Fr,defaultMatchWidth:"any",parsePatterns:Nr,defaultParseWidth:"any"})};var Mt={code:"ja",formatDistance:vt,formatLong:bt,formatRelative:yt,localize:wt,match:Pt,options:{weekStartsOn:0,firstWeekContainsDate:1}};var Ar={lessThanXSeconds:{one:"minder dan een seconde",other:"minder dan {{count}} seconden"},xSeconds:{one:"1 seconde",other:"{{count}} seconden"},halfAMinute:"een halve minuut",lessThanXMinutes:{one:"minder dan een minuut",other:"minder dan {{count}} minuten"},xMinutes:{one:"een minuut",other:"{{count}} minuten"},aboutXHours:{one:"ongeveer 1 uur",other:"ongeveer {{count}} uur"},xHours:{one:"1 uur",other:"{{count}} uur"},xDays:{one:"1 dag",other:"{{count}} dagen"},aboutXWeeks:{one:"ongeveer 1 week",other:"ongeveer {{count}} weken"},xWeeks:{one:"1 week",other:"{{count}} weken"},aboutXMonths:{one:"ongeveer 1 maand",other:"ongeveer {{count}} maanden"},xMonths:{one:"1 maand",other:"{{count}} maanden"},aboutXYears:{one:"ongeveer 1 jaar",other:"ongeveer {{count}} jaar"},xYears:{one:"1 jaar",other:"{{count}} jaar"},overXYears:{one:"meer dan 1 jaar",other:"meer dan {{count}} jaar"},almostXYears:{one:"bijna 1 jaar",other:"bijna {{count}} jaar"}},kt=(e,n,t)=>{let a,i=Ar[e];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),t?.addSuffix?t.comparison&&t.comparison>0?"over "+a:a+" geleden":a};var Er={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd-MM-y"},Lr={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Vr={full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},xt={date:s({formats:Er,defaultWidth:"full"}),time:s({formats:Lr,defaultWidth:"full"}),dateTime:s({formats:Vr,defaultWidth:"full"})};var Gr={lastWeek:"'afgelopen' eeee 'om' p",yesterday:"'gisteren om' p",today:"'vandaag om' p",tomorrow:"'morgen om' p",nextWeek:"eeee 'om' p",other:"P"},Wt=(e,n,t,a)=>Gr[e];var Hr={narrow:["v.C.","n.C."],abbreviated:["v.Chr.","n.Chr."],wide:["voor Christus","na Christus"]},Or={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"]},Xr={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mrt.","apr.","mei","jun.","jul.","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]},Rr={narrow:["Z","M","D","W","D","V","Z"],short:["zo","ma","di","wo","do","vr","za"],abbreviated:["zon","maa","din","woe","don","vri","zat"],wide:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},Ir={narrow:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},abbreviated:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},wide:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"}},qr=(e,n)=>Number(e)+"e",Dt={ordinalNumber:qr,era:r({values:Hr,defaultWidth:"wide"}),quarter:r({values:Or,defaultWidth:"wide",argumentCallback:e=>e-1}),month:r({values:Xr,defaultWidth:"wide"}),day:r({values:Rr,defaultWidth:"wide"}),dayPeriod:r({values:Ir,defaultWidth:"wide"})};var Br=/^(\d+)e?/i,Yr=/\d+/i,Jr={narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/},Qr={any:[/^v/,/^n/]},$r={narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/i},Kr={any:[/1/i,/2/i,/3/i,/4/i]},Ur={narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i},Zr={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^jan/i,/^feb/i,/^m(r|a)/i,/^apr/i,/^mei/i,/^jun/i,/^jul/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i]},eo={narrow:/^[zmdwv]/i,short:/^(zo|ma|di|wo|do|vr|za)/i,abbreviated:/^(zon|maa|din|woe|don|vri|zat)/i,wide:/^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i},to={narrow:[/^z/i,/^m/i,/^d/i,/^w/i,/^d/i,/^v/i,/^z/i],any:[/^zo/i,/^ma/i,/^di/i,/^wo/i,/^do/i,/^vr/i,/^za/i]},ao={any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i},no={any:{am:/^am/i,pm:/^pm/i,midnight:/^middernacht/i,noon:/^het middaguur/i,morning:/ochtend/i,afternoon:/middag/i,evening:/avond/i,night:/nacht/i}},St={ordinalNumber:u({matchPattern:Br,parsePattern:Yr,valueCallback:e=>parseInt(e,10)}),era:o({matchPatterns:Jr,defaultMatchWidth:"wide",parsePatterns:Qr,defaultParseWidth:"any"}),quarter:o({matchPatterns:$r,defaultMatchWidth:"wide",parsePatterns:Kr,defaultParseWidth:"any",valueCallback:e=>e+1}),month:o({matchPatterns:Ur,defaultMatchWidth:"wide",parsePatterns:Zr,defaultParseWidth:"any"}),day:o({matchPatterns:eo,defaultMatchWidth:"wide",parsePatterns:to,defaultParseWidth:"any"}),dayPeriod:o({matchPatterns:ao,defaultMatchWidth:"any",parsePatterns:no,defaultParseWidth:"any"})};var _t={code:"nl",formatDistance:kt,formatLong:xt,formatRelative:Wt,localize:Dt,match:St,options:{weekStartsOn:1,firstWeekContainsDate:4}};var io={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"aproximadamente 1 hora",other:"aproximadamente {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"aproximadamente 1 semana",other:"aproximadamente {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"aproximadamente 1 m\xEAs",other:"aproximadamente {{count}} meses"},xMonths:{one:"1 m\xEAs",other:"{{count}} meses"},aboutXYears:{one:"aproximadamente 1 ano",other:"aproximadamente {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},zt=(e,n,t)=>{let a,i=io[e];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),t?.addSuffix?t.comparison&&t.comparison>0?"daqui a "+a:"h\xE1 "+a:a};var ro={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d 'de' MMM 'de' y",short:"dd/MM/y"},oo={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},so={full:"{{date}} '\xE0s' {{time}}",long:"{{date}} '\xE0s' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Ct={date:s({formats:ro,defaultWidth:"full"}),time:s({formats:oo,defaultWidth:"full"}),dateTime:s({formats:so,defaultWidth:"full"})};var mo={lastWeek:e=>{let n=e.getDay();return"'"+(n===0||n===6?"\xFAltimo":"\xFAltima")+"' eeee '\xE0s' p"},yesterday:"'ontem \xE0s' p",today:"'hoje \xE0s' p",tomorrow:"'amanh\xE3 \xE0s' p",nextWeek:"eeee '\xE0s' p",other:"P"},jt=(e,n,t,a)=>{let i=mo[e];return typeof i=="function"?i(n):i};var uo={narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["antes de Cristo","depois de Cristo"]},co={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1\xBA trimestre","2\xBA trimestre","3\xBA trimestre","4\xBA trimestre"]},lo={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","mar\xE7o","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},ho={narrow:["d","s","t","q","q","s","s"],short:["dom","seg","ter","qua","qui","sex","s\xE1b"],abbreviated:["dom","seg","ter","qua","qui","sex","s\xE1b"],wide:["domingo","segunda-feira","ter\xE7a-feira","quarta-feira","quinta-feira","sexta-feira","s\xE1bado"]},fo={narrow:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manh\xE3",afternoon:"tarde",evening:"noite",night:"madrugada"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manh\xE3",afternoon:"tarde",evening:"noite",night:"madrugada"},wide:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manh\xE3",afternoon:"tarde",evening:"noite",night:"madrugada"}},po={narrow:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manh\xE3",afternoon:"da tarde",evening:"da noite",night:"da madrugada"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manh\xE3",afternoon:"da tarde",evening:"da noite",night:"da madrugada"},wide:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manh\xE3",afternoon:"da tarde",evening:"da noite",night:"da madrugada"}},go=(e,n)=>Number(e)+"\xBA",Tt={ordinalNumber:go,era:r({values:uo,defaultWidth:"wide"}),quarter:r({values:co,defaultWidth:"wide",argumentCallback:e=>e-1}),month:r({values:lo,defaultWidth:"wide"}),day:r({values:ho,defaultWidth:"wide"}),dayPeriod:r({values:fo,defaultWidth:"wide",formattingValues:po,defaultFormattingWidth:"wide"})};var vo=/^(\d+)(º|ª)?/i,bo=/\d+/i,yo={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes da era comum|depois de cristo|era comum)/i},wo={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes da era comum)/i,/^(depois de cristo|era comum)/i]},Po={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º|ª)? trimestre/i},Mo={any:[/1/i,/2/i,/3/i,/4/i]},ko={narrow:/^[jfmasond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},xo={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ab/i,/^mai/i,/^jun/i,/^jul/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},Wo={narrow:/^[dstq]/i,short:/^(dom|seg|ter|qua|qui|sex|s[áa]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[áa]b)/i,wide:/^(domingo|segunda-?\s?feira|terça-?\s?feira|quarta-?\s?feira|quinta-?\s?feira|sexta-?\s?feira|s[áa]bado)/i},Do={narrow:[/^d/i,/^s/i,/^t/i,/^q/i,/^q/i,/^s/i,/^s/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[áa]/i]},So={narrow:/^(a|p|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i,any:/^([ap]\.?\s?m\.?|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i},_o={any:{am:/^a/i,pm:/^p/i,midnight:/^meia/i,noon:/^meio/i,morning:/manh[ãa]/i,afternoon:/tarde/i,evening:/noite/i,night:/madrugada/i}},Ft={ordinalNumber:u({matchPattern:vo,parsePattern:bo,valueCallback:e=>parseInt(e,10)}),era:o({matchPatterns:yo,defaultMatchWidth:"wide",parsePatterns:wo,defaultParseWidth:"any"}),quarter:o({matchPatterns:Po,defaultMatchWidth:"wide",parsePatterns:Mo,defaultParseWidth:"any",valueCallback:e=>e+1}),month:o({matchPatterns:ko,defaultMatchWidth:"wide",parsePatterns:xo,defaultParseWidth:"any"}),day:o({matchPatterns:Wo,defaultMatchWidth:"wide",parsePatterns:Do,defaultParseWidth:"any"}),dayPeriod:o({matchPatterns:So,defaultMatchWidth:"any",parsePatterns:_o,defaultParseWidth:"any"})};var Nt={code:"pt",formatDistance:zt,formatLong:Ct,formatRelative:jt,localize:Tt,match:Ft,options:{weekStartsOn:1,firstWeekContainsDate:4}};function S(e,n){if(e.one!==void 0&&n===1)return e.one;let t=n%10,a=n%100;return t===1&&a!==11?e.singularNominative.replace("{{count}}",String(n)):t>=2&&t<=4&&(a<10||a>20)?e.singularGenitive.replace("{{count}}",String(n)):e.pluralGenitive.replace("{{count}}",String(n))}function l(e){return(n,t)=>t?.addSuffix?t.comparison&&t.comparison>0?e.future?S(e.future,n):"\u0447\u0435\u0440\u0435\u0437 "+S(e.regular,n):e.past?S(e.past,n):S(e.regular,n)+" \u043D\u0430\u0437\u0430\u0434":S(e.regular,n)}var zo={lessThanXSeconds:l({regular:{one:"\u043C\u0435\u043D\u044C\u0448\u0435 \u0441\u0435\u043A\u0443\u043D\u0434\u044B",singularNominative:"\u043C\u0435\u043D\u044C\u0448\u0435 {{count}} \u0441\u0435\u043A\u0443\u043D\u0434\u044B",singularGenitive:"\u043C\u0435\u043D\u044C\u0448\u0435 {{count}} \u0441\u0435\u043A\u0443\u043D\u0434",pluralGenitive:"\u043C\u0435\u043D\u044C\u0448\u0435 {{count}} \u0441\u0435\u043A\u0443\u043D\u0434"},future:{one:"\u043C\u0435\u043D\u044C\u0448\u0435, \u0447\u0435\u043C \u0447\u0435\u0440\u0435\u0437 \u0441\u0435\u043A\u0443\u043D\u0434\u0443",singularNominative:"\u043C\u0435\u043D\u044C\u0448\u0435, \u0447\u0435\u043C \u0447\u0435\u0440\u0435\u0437 {{count}} \u0441\u0435\u043A\u0443\u043D\u0434\u0443",singularGenitive:"\u043C\u0435\u043D\u044C\u0448\u0435, \u0447\u0435\u043C \u0447\u0435\u0440\u0435\u0437 {{count}} \u0441\u0435\u043A\u0443\u043D\u0434\u044B",pluralGenitive:"\u043C\u0435\u043D\u044C\u0448\u0435, \u0447\u0435\u043C \u0447\u0435\u0440\u0435\u0437 {{count}} \u0441\u0435\u043A\u0443\u043D\u0434"}}),xSeconds:l({regular:{singularNominative:"{{count}} \u0441\u0435\u043A\u0443\u043D\u0434\u0430",singularGenitive:"{{count}} \u0441\u0435\u043A\u0443\u043D\u0434\u044B",pluralGenitive:"{{count}} \u0441\u0435\u043A\u0443\u043D\u0434"},past:{singularNominative:"{{count}} \u0441\u0435\u043A\u0443\u043D\u0434\u0443 \u043D\u0430\u0437\u0430\u0434",singularGenitive:"{{count}} \u0441\u0435\u043A\u0443\u043D\u0434\u044B \u043D\u0430\u0437\u0430\u0434",pluralGenitive:"{{count}} \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434"},future:{singularNominative:"\u0447\u0435\u0440\u0435\u0437 {{count}} \u0441\u0435\u043A\u0443\u043D\u0434\u0443",singularGenitive:"\u0447\u0435\u0440\u0435\u0437 {{count}} \u0441\u0435\u043A\u0443\u043D\u0434\u044B",pluralGenitive:"\u0447\u0435\u0440\u0435\u0437 {{count}} \u0441\u0435\u043A\u0443\u043D\u0434"}}),halfAMinute:(e,n)=>n?.addSuffix?n.comparison&&n.comparison>0?"\u0447\u0435\u0440\u0435\u0437 \u043F\u043E\u043B\u043C\u0438\u043D\u0443\u0442\u044B":"\u043F\u043E\u043B\u043C\u0438\u043D\u0443\u0442\u044B \u043D\u0430\u0437\u0430\u0434":"\u043F\u043E\u043B\u043C\u0438\u043D\u0443\u0442\u044B",lessThanXMinutes:l({regular:{one:"\u043C\u0435\u043D\u044C\u0448\u0435 \u043C\u0438\u043D\u0443\u0442\u044B",singularNominative:"\u043C\u0435\u043D\u044C\u0448\u0435 {{count}} \u043C\u0438\u043D\u0443\u0442\u044B",singularGenitive:"\u043C\u0435\u043D\u044C\u0448\u0435 {{count}} \u043C\u0438\u043D\u0443\u0442",pluralGenitive:"\u043C\u0435\u043D\u044C\u0448\u0435 {{count}} \u043C\u0438\u043D\u0443\u0442"},future:{one:"\u043C\u0435\u043D\u044C\u0448\u0435, \u0447\u0435\u043C \u0447\u0435\u0440\u0435\u0437 \u043C\u0438\u043D\u0443\u0442\u0443",singularNominative:"\u043C\u0435\u043D\u044C\u0448\u0435, \u0447\u0435\u043C \u0447\u0435\u0440\u0435\u0437 {{count}} \u043C\u0438\u043D\u0443\u0442\u0443",singularGenitive:"\u043C\u0435\u043D\u044C\u0448\u0435, \u0447\u0435\u043C \u0447\u0435\u0440\u0435\u0437 {{count}} \u043C\u0438\u043D\u0443\u0442\u044B",pluralGenitive:"\u043C\u0435\u043D\u044C\u0448\u0435, \u0447\u0435\u043C \u0447\u0435\u0440\u0435\u0437 {{count}} \u043C\u0438\u043D\u0443\u0442"}}),xMinutes:l({regular:{singularNominative:"{{count}} \u043C\u0438\u043D\u0443\u0442\u0430",singularGenitive:"{{count}} \u043C\u0438\u043D\u0443\u0442\u044B",pluralGenitive:"{{count}} \u043C\u0438\u043D\u0443\u0442"},past:{singularNominative:"{{count}} \u043C\u0438\u043D\u0443\u0442\u0443 \u043D\u0430\u0437\u0430\u0434",singularGenitive:"{{count}} \u043C\u0438\u043D\u0443\u0442\u044B \u043D\u0430\u0437\u0430\u0434",pluralGenitive:"{{count}} \u043C\u0438\u043D\u0443\u0442 \u043D\u0430\u0437\u0430\u0434"},future:{singularNominative:"\u0447\u0435\u0440\u0435\u0437 {{count}} \u043C\u0438\u043D\u0443\u0442\u0443",singularGenitive:"\u0447\u0435\u0440\u0435\u0437 {{count}} \u043C\u0438\u043D\u0443\u0442\u044B",pluralGenitive:"\u0447\u0435\u0440\u0435\u0437 {{count}} \u043C\u0438\u043D\u0443\u0442"}}),aboutXHours:l({regular:{singularNominative:"\u043E\u043A\u043E\u043B\u043E {{count}} \u0447\u0430\u0441\u0430",singularGenitive:"\u043E\u043A\u043E\u043B\u043E {{count}} \u0447\u0430\u0441\u043E\u0432",pluralGenitive:"\u043E\u043A\u043E\u043B\u043E {{count}} \u0447\u0430\u0441\u043E\u0432"},future:{singularNominative:"\u043F\u0440\u0438\u0431\u043B\u0438\u0437\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0447\u0435\u0440\u0435\u0437 {{count}} \u0447\u0430\u0441",singularGenitive:"\u043F\u0440\u0438\u0431\u043B\u0438\u0437\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0447\u0435\u0440\u0435\u0437 {{count}} \u0447\u0430\u0441\u0430",pluralGenitive:"\u043F\u0440\u0438\u0431\u043B\u0438\u0437\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0447\u0435\u0440\u0435\u0437 {{count}} \u0447\u0430\u0441\u043E\u0432"}}),xHours:l({regular:{singularNominative:"{{count}} \u0447\u0430\u0441",singularGenitive:"{{count}} \u0447\u0430\u0441\u0430",pluralGenitive:"{{count}} \u0447\u0430\u0441\u043E\u0432"}}),xDays:l({regular:{singularNominative:"{{count}} \u0434\u0435\u043D\u044C",singularGenitive:"{{count}} \u0434\u043D\u044F",pluralGenitive:"{{count}} \u0434\u043D\u0435\u0439"}}),aboutXWeeks:l({regular:{singularNominative:"\u043E\u043A\u043E\u043B\u043E {{count}} \u043D\u0435\u0434\u0435\u043B\u0438",singularGenitive:"\u043E\u043A\u043E\u043B\u043E {{count}} \u043D\u0435\u0434\u0435\u043B\u044C",pluralGenitive:"\u043E\u043A\u043E\u043B\u043E {{count}} \u043D\u0435\u0434\u0435\u043B\u044C"},future:{singularNominative:"\u043F\u0440\u0438\u0431\u043B\u0438\u0437\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0447\u0435\u0440\u0435\u0437 {{count}} \u043D\u0435\u0434\u0435\u043B\u044E",singularGenitive:"\u043F\u0440\u0438\u0431\u043B\u0438\u0437\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0447\u0435\u0440\u0435\u0437 {{count}} \u043D\u0435\u0434\u0435\u043B\u0438",pluralGenitive:"\u043F\u0440\u0438\u0431\u043B\u0438\u0437\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0447\u0435\u0440\u0435\u0437 {{count}} \u043D\u0435\u0434\u0435\u043B\u044C"}}),xWeeks:l({regular:{singularNominative:"{{count}} \u043D\u0435\u0434\u0435\u043B\u044F",singularGenitive:"{{count}} \u043D\u0435\u0434\u0435\u043B\u0438",pluralGenitive:"{{count}} \u043D\u0435\u0434\u0435\u043B\u044C"}}),aboutXMonths:l({regular:{singularNominative:"\u043E\u043A\u043E\u043B\u043E {{count}} \u043C\u0435\u0441\u044F\u0446\u0430",singularGenitive:"\u043E\u043A\u043E\u043B\u043E {{count}} \u043C\u0435\u0441\u044F\u0446\u0435\u0432",pluralGenitive:"\u043E\u043A\u043E\u043B\u043E {{count}} \u043C\u0435\u0441\u044F\u0446\u0435\u0432"},future:{singularNominative:"\u043F\u0440\u0438\u0431\u043B\u0438\u0437\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0447\u0435\u0440\u0435\u0437 {{count}} \u043C\u0435\u0441\u044F\u0446",singularGenitive:"\u043F\u0440\u0438\u0431\u043B\u0438\u0437\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0447\u0435\u0440\u0435\u0437 {{count}} \u043C\u0435\u0441\u044F\u0446\u0430",pluralGenitive:"\u043F\u0440\u0438\u0431\u043B\u0438\u0437\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0447\u0435\u0440\u0435\u0437 {{count}} \u043C\u0435\u0441\u044F\u0446\u0435\u0432"}}),xMonths:l({regular:{singularNominative:"{{count}} \u043C\u0435\u0441\u044F\u0446",singularGenitive:"{{count}} \u043C\u0435\u0441\u044F\u0446\u0430",pluralGenitive:"{{count}} \u043C\u0435\u0441\u044F\u0446\u0435\u0432"}}),aboutXYears:l({regular:{singularNominative:"\u043E\u043A\u043E\u043B\u043E {{count}} \u0433\u043E\u0434\u0430",singularGenitive:"\u043E\u043A\u043E\u043B\u043E {{count}} \u043B\u0435\u0442",pluralGenitive:"\u043E\u043A\u043E\u043B\u043E {{count}} \u043B\u0435\u0442"},future:{singularNominative:"\u043F\u0440\u0438\u0431\u043B\u0438\u0437\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0447\u0435\u0440\u0435\u0437 {{count}} \u0433\u043E\u0434",singularGenitive:"\u043F\u0440\u0438\u0431\u043B\u0438\u0437\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0447\u0435\u0440\u0435\u0437 {{count}} \u0433\u043E\u0434\u0430",pluralGenitive:"\u043F\u0440\u0438\u0431\u043B\u0438\u0437\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0447\u0435\u0440\u0435\u0437 {{count}} \u043B\u0435\u0442"}}),xYears:l({regular:{singularNominative:"{{count}} \u0433\u043E\u0434",singularGenitive:"{{count}} \u0433\u043E\u0434\u0430",pluralGenitive:"{{count}} \u043B\u0435\u0442"}}),overXYears:l({regular:{singularNominative:"\u0431\u043E\u043B\u044C\u0448\u0435 {{count}} \u0433\u043E\u0434\u0430",singularGenitive:"\u0431\u043E\u043B\u044C\u0448\u0435 {{count}} \u043B\u0435\u0442",pluralGenitive:"\u0431\u043E\u043B\u044C\u0448\u0435 {{count}} \u043B\u0435\u0442"},future:{singularNominative:"\u0431\u043E\u043B\u044C\u0448\u0435, \u0447\u0435\u043C \u0447\u0435\u0440\u0435\u0437 {{count}} \u0433\u043E\u0434",singularGenitive:"\u0431\u043E\u043B\u044C\u0448\u0435, \u0447\u0435\u043C \u0447\u0435\u0440\u0435\u0437 {{count}} \u0433\u043E\u0434\u0430",pluralGenitive:"\u0431\u043E\u043B\u044C\u0448\u0435, \u0447\u0435\u043C \u0447\u0435\u0440\u0435\u0437 {{count}} \u043B\u0435\u0442"}}),almostXYears:l({regular:{singularNominative:"\u043F\u043E\u0447\u0442\u0438 {{count}} \u0433\u043E\u0434",singularGenitive:"\u043F\u043E\u0447\u0442\u0438 {{count}} \u0433\u043E\u0434\u0430",pluralGenitive:"\u043F\u043E\u0447\u0442\u0438 {{count}} \u043B\u0435\u0442"},future:{singularNominative:"\u043F\u043E\u0447\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 {{count}} \u0433\u043E\u0434",singularGenitive:"\u043F\u043E\u0447\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 {{count}} \u0433\u043E\u0434\u0430",pluralGenitive:"\u043F\u043E\u0447\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 {{count}} \u043B\u0435\u0442"}})},At=(e,n,t)=>zo[e](n,t);var Co={full:"EEEE, d MMMM y '\u0433.'",long:"d MMMM y '\u0433.'",medium:"d MMM y '\u0433.'",short:"dd.MM.y"},jo={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},To={any:"{{date}}, {{time}}"},Et={date:s({formats:Co,defaultWidth:"full"}),time:s({formats:jo,defaultWidth:"full"}),dateTime:s({formats:To,defaultWidth:"any"})};var Fo=Math.pow(10,8)*24*60*60*1e3,qc=-Fo,Bc=6048e5,Yc=864e5;var Jc=43200,Qc=1440;var No=3600;var Lt=No*24,$c=Lt*7,Ao=Lt*365.2425,Eo=Ao/12,Kc=Eo*3,ee=Symbol.for("constructDateFrom");function N(e,n){return typeof e=="function"?e(n):e&&typeof e=="object"&&ee in e?e[ee](n):e instanceof Date?new e.constructor(n):new Date(n)}function Vt(e,...n){let t=N.bind(null,e||n.find(a=>typeof a=="object"));return n.map(t)}var Lo={};function Gt(){return Lo}function w(e,n){return N(n||e,e)}function te(e,n){let t=Gt(),a=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??t.weekStartsOn??t.locale?.options?.weekStartsOn??0,i=w(e,n?.in),d=i.getDay(),m=(d{let a=e.getDay();return v(e,n,t)?Ht(a):Vo(a)},yesterday:"'\u0432\u0447\u0435\u0440\u0430 \u0432' p",today:"'\u0441\u0435\u0433\u043E\u0434\u043D\u044F \u0432' p",tomorrow:"'\u0437\u0430\u0432\u0442\u0440\u0430 \u0432' p",nextWeek:(e,n,t)=>{let a=e.getDay();return v(e,n,t)?Ht(a):Go(a)},other:"P"},Ot=(e,n,t,a)=>{let i=Ho[e];return typeof i=="function"?i(n,t,a):i};var Oo={narrow:["\u0434\u043E \u043D.\u044D.","\u043D.\u044D."],abbreviated:["\u0434\u043E \u043D. \u044D.","\u043D. \u044D."],wide:["\u0434\u043E \u043D\u0430\u0448\u0435\u0439 \u044D\u0440\u044B","\u043D\u0430\u0448\u0435\u0439 \u044D\u0440\u044B"]},Xo={narrow:["1","2","3","4"],abbreviated:["1-\u0439 \u043A\u0432.","2-\u0439 \u043A\u0432.","3-\u0439 \u043A\u0432.","4-\u0439 \u043A\u0432."],wide:["1-\u0439 \u043A\u0432\u0430\u0440\u0442\u0430\u043B","2-\u0439 \u043A\u0432\u0430\u0440\u0442\u0430\u043B","3-\u0439 \u043A\u0432\u0430\u0440\u0442\u0430\u043B","4-\u0439 \u043A\u0432\u0430\u0440\u0442\u0430\u043B"]},Ro={narrow:["\u042F","\u0424","\u041C","\u0410","\u041C","\u0418","\u0418","\u0410","\u0421","\u041E","\u041D","\u0414"],abbreviated:["\u044F\u043D\u0432.","\u0444\u0435\u0432.","\u043C\u0430\u0440\u0442","\u0430\u043F\u0440.","\u043C\u0430\u0439","\u0438\u044E\u043D\u044C","\u0438\u044E\u043B\u044C","\u0430\u0432\u0433.","\u0441\u0435\u043D\u0442.","\u043E\u043A\u0442.","\u043D\u043E\u044F\u0431.","\u0434\u0435\u043A."],wide:["\u044F\u043D\u0432\u0430\u0440\u044C","\u0444\u0435\u0432\u0440\u0430\u043B\u044C","\u043C\u0430\u0440\u0442","\u0430\u043F\u0440\u0435\u043B\u044C","\u043C\u0430\u0439","\u0438\u044E\u043D\u044C","\u0438\u044E\u043B\u044C","\u0430\u0432\u0433\u0443\u0441\u0442","\u0441\u0435\u043D\u0442\u044F\u0431\u0440\u044C","\u043E\u043A\u0442\u044F\u0431\u0440\u044C","\u043D\u043E\u044F\u0431\u0440\u044C","\u0434\u0435\u043A\u0430\u0431\u0440\u044C"]},Io={narrow:["\u042F","\u0424","\u041C","\u0410","\u041C","\u0418","\u0418","\u0410","\u0421","\u041E","\u041D","\u0414"],abbreviated:["\u044F\u043D\u0432.","\u0444\u0435\u0432.","\u043C\u0430\u0440.","\u0430\u043F\u0440.","\u043C\u0430\u044F","\u0438\u044E\u043D.","\u0438\u044E\u043B.","\u0430\u0432\u0433.","\u0441\u0435\u043D\u0442.","\u043E\u043A\u0442.","\u043D\u043E\u044F\u0431.","\u0434\u0435\u043A."],wide:["\u044F\u043D\u0432\u0430\u0440\u044F","\u0444\u0435\u0432\u0440\u0430\u043B\u044F","\u043C\u0430\u0440\u0442\u0430","\u0430\u043F\u0440\u0435\u043B\u044F","\u043C\u0430\u044F","\u0438\u044E\u043D\u044F","\u0438\u044E\u043B\u044F","\u0430\u0432\u0433\u0443\u0441\u0442\u0430","\u0441\u0435\u043D\u0442\u044F\u0431\u0440\u044F","\u043E\u043A\u0442\u044F\u0431\u0440\u044F","\u043D\u043E\u044F\u0431\u0440\u044F","\u0434\u0435\u043A\u0430\u0431\u0440\u044F"]},qo={narrow:["\u0412","\u041F","\u0412","\u0421","\u0427","\u041F","\u0421"],short:["\u0432\u0441","\u043F\u043D","\u0432\u0442","\u0441\u0440","\u0447\u0442","\u043F\u0442","\u0441\u0431"],abbreviated:["\u0432\u0441\u043A","\u043F\u043D\u0434","\u0432\u0442\u0440","\u0441\u0440\u0434","\u0447\u0442\u0432","\u043F\u0442\u043D","\u0441\u0443\u0431"],wide:["\u0432\u043E\u0441\u043A\u0440\u0435\u0441\u0435\u043D\u044C\u0435","\u043F\u043E\u043D\u0435\u0434\u0435\u043B\u044C\u043D\u0438\u043A","\u0432\u0442\u043E\u0440\u043D\u0438\u043A","\u0441\u0440\u0435\u0434\u0430","\u0447\u0435\u0442\u0432\u0435\u0440\u0433","\u043F\u044F\u0442\u043D\u0438\u0446\u0430","\u0441\u0443\u0431\u0431\u043E\u0442\u0430"]},Bo={narrow:{am:"\u0414\u041F",pm:"\u041F\u041F",midnight:"\u043F\u043E\u043B\u043D.",noon:"\u043F\u043E\u043B\u0434.",morning:"\u0443\u0442\u0440\u043E",afternoon:"\u0434\u0435\u043D\u044C",evening:"\u0432\u0435\u0447.",night:"\u043D\u043E\u0447\u044C"},abbreviated:{am:"\u0414\u041F",pm:"\u041F\u041F",midnight:"\u043F\u043E\u043B\u043D.",noon:"\u043F\u043E\u043B\u0434.",morning:"\u0443\u0442\u0440\u043E",afternoon:"\u0434\u0435\u043D\u044C",evening:"\u0432\u0435\u0447.",night:"\u043D\u043E\u0447\u044C"},wide:{am:"\u0414\u041F",pm:"\u041F\u041F",midnight:"\u043F\u043E\u043B\u043D\u043E\u0447\u044C",noon:"\u043F\u043E\u043B\u0434\u0435\u043D\u044C",morning:"\u0443\u0442\u0440\u043E",afternoon:"\u0434\u0435\u043D\u044C",evening:"\u0432\u0435\u0447\u0435\u0440",night:"\u043D\u043E\u0447\u044C"}},Yo={narrow:{am:"\u0414\u041F",pm:"\u041F\u041F",midnight:"\u043F\u043E\u043B\u043D.",noon:"\u043F\u043E\u043B\u0434.",morning:"\u0443\u0442\u0440\u0430",afternoon:"\u0434\u043D\u044F",evening:"\u0432\u0435\u0447.",night:"\u043D\u043E\u0447\u0438"},abbreviated:{am:"\u0414\u041F",pm:"\u041F\u041F",midnight:"\u043F\u043E\u043B\u043D.",noon:"\u043F\u043E\u043B\u0434.",morning:"\u0443\u0442\u0440\u0430",afternoon:"\u0434\u043D\u044F",evening:"\u0432\u0435\u0447.",night:"\u043D\u043E\u0447\u0438"},wide:{am:"\u0414\u041F",pm:"\u041F\u041F",midnight:"\u043F\u043E\u043B\u043D\u043E\u0447\u044C",noon:"\u043F\u043E\u043B\u0434\u0435\u043D\u044C",morning:"\u0443\u0442\u0440\u0430",afternoon:"\u0434\u043D\u044F",evening:"\u0432\u0435\u0447\u0435\u0440\u0430",night:"\u043D\u043E\u0447\u0438"}},Jo=(e,n)=>{let t=Number(e),a=n?.unit,i;return a==="date"?i="-\u0435":a==="week"||a==="minute"||a==="second"?i="-\u044F":i="-\u0439",t+i},Xt={ordinalNumber:Jo,era:r({values:Oo,defaultWidth:"wide"}),quarter:r({values:Xo,defaultWidth:"wide",argumentCallback:e=>e-1}),month:r({values:Ro,defaultWidth:"wide",formattingValues:Io,defaultFormattingWidth:"wide"}),day:r({values:qo,defaultWidth:"wide"}),dayPeriod:r({values:Bo,defaultWidth:"any",formattingValues:Yo,defaultFormattingWidth:"wide"})};var Qo=/^(\d+)(-?(е|я|й|ое|ье|ая|ья|ый|ой|ий|ый))?/i,$o=/\d+/i,Ko={narrow:/^((до )?н\.?\s?э\.?)/i,abbreviated:/^((до )?н\.?\s?э\.?)/i,wide:/^(до нашей эры|нашей эры|наша эра)/i},Uo={any:[/^д/i,/^н/i]},Zo={narrow:/^[1234]/i,abbreviated:/^[1234](-?[ыои]?й?)? кв.?/i,wide:/^[1234](-?[ыои]?й?)? квартал/i},es={any:[/1/i,/2/i,/3/i,/4/i]},ts={narrow:/^[яфмаисонд]/i,abbreviated:/^(янв|фев|март?|апр|ма[йя]|июн[ья]?|июл[ья]?|авг|сент?|окт|нояб?|дек)\.?/i,wide:/^(январ[ья]|феврал[ья]|марта?|апрел[ья]|ма[йя]|июн[ья]|июл[ья]|августа?|сентябр[ья]|октябр[ья]|октябр[ья]|ноябр[ья]|декабр[ья])/i},as={narrow:[/^я/i,/^ф/i,/^м/i,/^а/i,/^м/i,/^и/i,/^и/i,/^а/i,/^с/i,/^о/i,/^н/i,/^я/i],any:[/^я/i,/^ф/i,/^мар/i,/^ап/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^ав/i,/^с/i,/^о/i,/^н/i,/^д/i]},ns={narrow:/^[впсч]/i,short:/^(вс|во|пн|по|вт|ср|чт|че|пт|пя|сб|су)\.?/i,abbreviated:/^(вск|вос|пнд|пон|втр|вто|срд|сре|чтв|чет|птн|пят|суб).?/i,wide:/^(воскресень[ея]|понедельника?|вторника?|сред[аы]|четверга?|пятниц[аы]|суббот[аы])/i},is={narrow:[/^в/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^в[ос]/i,/^п[он]/i,/^в/i,/^ср/i,/^ч/i,/^п[ят]/i,/^с[уб]/i]},rs={narrow:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,abbreviated:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,wide:/^([дп]п|полночь|полдень|утр[оа]|день|дня|вечера?|ноч[ьи])/i},os={any:{am:/^дп/i,pm:/^пп/i,midnight:/^полн/i,noon:/^полд/i,morning:/^у/i,afternoon:/^д[ен]/i,evening:/^в/i,night:/^н/i}},Rt={ordinalNumber:u({matchPattern:Qo,parsePattern:$o,valueCallback:e=>parseInt(e,10)}),era:o({matchPatterns:Ko,defaultMatchWidth:"wide",parsePatterns:Uo,defaultParseWidth:"any"}),quarter:o({matchPatterns:Zo,defaultMatchWidth:"wide",parsePatterns:es,defaultParseWidth:"any",valueCallback:e=>e+1}),month:o({matchPatterns:ts,defaultMatchWidth:"wide",parsePatterns:as,defaultParseWidth:"any"}),day:o({matchPatterns:ns,defaultMatchWidth:"wide",parsePatterns:is,defaultParseWidth:"any"}),dayPeriod:o({matchPatterns:rs,defaultMatchWidth:"wide",parsePatterns:os,defaultParseWidth:"any"})};var It={code:"ru",formatDistance:At,formatLong:Et,formatRelative:Ot,localize:Xt,match:Rt,options:{weekStartsOn:1,firstWeekContainsDate:1}};var ss={lessThanXSeconds:{one:"bir saniyeden az",other:"{{count}} saniyeden az"},xSeconds:{one:"1 saniye",other:"{{count}} saniye"},halfAMinute:"yar\u0131m dakika",lessThanXMinutes:{one:"bir dakikadan az",other:"{{count}} dakikadan az"},xMinutes:{one:"1 dakika",other:"{{count}} dakika"},aboutXHours:{one:"yakla\u015F\u0131k 1 saat",other:"yakla\u015F\u0131k {{count}} saat"},xHours:{one:"1 saat",other:"{{count}} saat"},xDays:{one:"1 g\xFCn",other:"{{count}} g\xFCn"},aboutXWeeks:{one:"yakla\u015F\u0131k 1 hafta",other:"yakla\u015F\u0131k {{count}} hafta"},xWeeks:{one:"1 hafta",other:"{{count}} hafta"},aboutXMonths:{one:"yakla\u015F\u0131k 1 ay",other:"yakla\u015F\u0131k {{count}} ay"},xMonths:{one:"1 ay",other:"{{count}} ay"},aboutXYears:{one:"yakla\u015F\u0131k 1 y\u0131l",other:"yakla\u015F\u0131k {{count}} y\u0131l"},xYears:{one:"1 y\u0131l",other:"{{count}} y\u0131l"},overXYears:{one:"1 y\u0131ldan fazla",other:"{{count}} y\u0131ldan fazla"},almostXYears:{one:"neredeyse 1 y\u0131l",other:"neredeyse {{count}} y\u0131l"}},qt=(e,n,t)=>{let a,i=ss[e];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",n.toString()),t?.addSuffix?t.comparison&&t.comparison>0?a+" sonra":a+" \xF6nce":a};var ds={full:"d MMMM y EEEE",long:"d MMMM y",medium:"d MMM y",short:"dd.MM.yyyy"},ms={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},us={full:"{{date}} 'saat' {{time}}",long:"{{date}} 'saat' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Bt={date:s({formats:ds,defaultWidth:"full"}),time:s({formats:ms,defaultWidth:"full"}),dateTime:s({formats:us,defaultWidth:"full"})};var cs={lastWeek:"'ge\xE7en hafta' eeee 'saat' p",yesterday:"'d\xFCn saat' p",today:"'bug\xFCn saat' p",tomorrow:"'yar\u0131n saat' p",nextWeek:"eeee 'saat' p",other:"P"},Yt=(e,n,t,a)=>cs[e];var ls={narrow:["M\xD6","MS"],abbreviated:["M\xD6","MS"],wide:["Milattan \xD6nce","Milattan Sonra"]},hs={narrow:["1","2","3","4"],abbreviated:["1\xC7","2\xC7","3\xC7","4\xC7"],wide:["\u0130lk \xE7eyrek","\u0130kinci \xC7eyrek","\xDC\xE7\xFCnc\xFC \xE7eyrek","Son \xE7eyrek"]},fs={narrow:["O","\u015E","M","N","M","H","T","A","E","E","K","A"],abbreviated:["Oca","\u015Eub","Mar","Nis","May","Haz","Tem","A\u011Fu","Eyl","Eki","Kas","Ara"],wide:["Ocak","\u015Eubat","Mart","Nisan","May\u0131s","Haziran","Temmuz","A\u011Fustos","Eyl\xFCl","Ekim","Kas\u0131m","Aral\u0131k"]},ps={narrow:["P","P","S","\xC7","P","C","C"],short:["Pz","Pt","Sa","\xC7a","Pe","Cu","Ct"],abbreviated:["Paz","Pzt","Sal","\xC7ar","Per","Cum","Cts"],wide:["Pazar","Pazartesi","Sal\u0131","\xC7ar\u015Famba","Per\u015Fembe","Cuma","Cumartesi"]},gs={narrow:{am:"\xF6\xF6",pm:"\xF6s",midnight:"gy",noon:"\xF6",morning:"sa",afternoon:"\xF6s",evening:"ak",night:"ge"},abbreviated:{am:"\xD6\xD6",pm:"\xD6S",midnight:"gece yar\u0131s\u0131",noon:"\xF6\u011Fle",morning:"sabah",afternoon:"\xF6\u011Fleden sonra",evening:"ak\u015Fam",night:"gece"},wide:{am:"\xD6.\xD6.",pm:"\xD6.S.",midnight:"gece yar\u0131s\u0131",noon:"\xF6\u011Fle",morning:"sabah",afternoon:"\xF6\u011Fleden sonra",evening:"ak\u015Fam",night:"gece"}},vs={narrow:{am:"\xF6\xF6",pm:"\xF6s",midnight:"gy",noon:"\xF6",morning:"sa",afternoon:"\xF6s",evening:"ak",night:"ge"},abbreviated:{am:"\xD6\xD6",pm:"\xD6S",midnight:"gece yar\u0131s\u0131",noon:"\xF6\u011Flen",morning:"sabahleyin",afternoon:"\xF6\u011Fleden sonra",evening:"ak\u015Famleyin",night:"geceleyin"},wide:{am:"\xF6.\xF6.",pm:"\xF6.s.",midnight:"gece yar\u0131s\u0131",noon:"\xF6\u011Flen",morning:"sabahleyin",afternoon:"\xF6\u011Fleden sonra",evening:"ak\u015Famleyin",night:"geceleyin"}},bs=(e,n)=>Number(e)+".",Jt={ordinalNumber:bs,era:r({values:ls,defaultWidth:"wide"}),quarter:r({values:hs,defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:r({values:fs,defaultWidth:"wide"}),day:r({values:ps,defaultWidth:"wide"}),dayPeriod:r({values:gs,defaultWidth:"wide",formattingValues:vs,defaultFormattingWidth:"wide"})};var ys=/^(\d+)(\.)?/i,ws=/\d+/i,Ps={narrow:/^(mö|ms)/i,abbreviated:/^(mö|ms)/i,wide:/^(milattan önce|milattan sonra)/i},Ms={any:[/(^mö|^milattan önce)/i,/(^ms|^milattan sonra)/i]},ks={narrow:/^[1234]/i,abbreviated:/^[1234]ç/i,wide:/^((i|İ)lk|(i|İ)kinci|üçüncü|son) çeyrek/i},xs={any:[/1/i,/2/i,/3/i,/4/i],abbreviated:[/1ç/i,/2ç/i,/3ç/i,/4ç/i],wide:[/^(i|İ)lk çeyrek/i,/(i|İ)kinci çeyrek/i,/üçüncü çeyrek/i,/son çeyrek/i]},Ws={narrow:/^[oşmnhtaek]/i,abbreviated:/^(oca|şub|mar|nis|may|haz|tem|ağu|eyl|eki|kas|ara)/i,wide:/^(ocak|şubat|mart|nisan|mayıs|haziran|temmuz|ağustos|eylül|ekim|kasım|aralık)/i},Ds={narrow:[/^o/i,/^ş/i,/^m/i,/^n/i,/^m/i,/^h/i,/^t/i,/^a/i,/^e/i,/^e/i,/^k/i,/^a/i],any:[/^o/i,/^ş/i,/^mar/i,/^n/i,/^may/i,/^h/i,/^t/i,/^ağ/i,/^ey/i,/^ek/i,/^k/i,/^ar/i]},Ss={narrow:/^[psçc]/i,short:/^(pz|pt|sa|ça|pe|cu|ct)/i,abbreviated:/^(paz|pzt|sal|çar|per|cum|cts)/i,wide:/^(pazar(?!tesi)|pazartesi|salı|çarşamba|perşembe|cuma(?!rtesi)|cumartesi)/i},_s={narrow:[/^p/i,/^p/i,/^s/i,/^ç/i,/^p/i,/^c/i,/^c/i],any:[/^pz/i,/^pt/i,/^sa/i,/^ça/i,/^pe/i,/^cu/i,/^ct/i],wide:[/^pazar(?!tesi)/i,/^pazartesi/i,/^salı/i,/^çarşamba/i,/^perşembe/i,/^cuma(?!rtesi)/i,/^cumartesi/i]},zs={narrow:/^(öö|ös|gy|ö|sa|ös|ak|ge)/i,any:/^(ö\.?\s?[ös]\.?|öğleden sonra|gece yarısı|öğle|(sabah|öğ|akşam|gece)(leyin))/i},Cs={any:{am:/^ö\.?ö\.?/i,pm:/^ö\.?s\.?/i,midnight:/^(gy|gece yarısı)/i,noon:/^öğ/i,morning:/^sa/i,afternoon:/^öğleden sonra/i,evening:/^ak/i,night:/^ge/i}},Qt={ordinalNumber:u({matchPattern:ys,parsePattern:ws,valueCallback:function(e){return parseInt(e,10)}}),era:o({matchPatterns:Ps,defaultMatchWidth:"wide",parsePatterns:Ms,defaultParseWidth:"any"}),quarter:o({matchPatterns:ks,defaultMatchWidth:"wide",parsePatterns:xs,defaultParseWidth:"any",valueCallback:e=>e+1}),month:o({matchPatterns:Ws,defaultMatchWidth:"wide",parsePatterns:Ds,defaultParseWidth:"any"}),day:o({matchPatterns:Ss,defaultMatchWidth:"wide",parsePatterns:_s,defaultParseWidth:"any"}),dayPeriod:o({matchPatterns:zs,defaultMatchWidth:"any",parsePatterns:Cs,defaultParseWidth:"any"})};var $t={code:"tr",formatDistance:qt,formatLong:Bt,formatRelative:Yt,localize:Jt,match:Qt,options:{weekStartsOn:1,firstWeekContainsDate:1}};function _(e,n){if(e.one!==void 0&&n===1)return e.one;let t=n%10,a=n%100;return t===1&&a!==11?e.singularNominative.replace("{{count}}",String(n)):t>=2&&t<=4&&(a<10||a>20)?e.singularGenitive.replace("{{count}}",String(n)):e.pluralGenitive.replace("{{count}}",String(n))}function h(e){return(n,t)=>t&&t.addSuffix?t.comparison&&t.comparison>0?e.future?_(e.future,n):"\u0437\u0430 "+_(e.regular,n):e.past?_(e.past,n):_(e.regular,n)+" \u0442\u043E\u043C\u0443":_(e.regular,n)}var js=(e,n)=>n&&n.addSuffix?n.comparison&&n.comparison>0?"\u0437\u0430 \u043F\u0456\u0432\u0445\u0432\u0438\u043B\u0438\u043D\u0438":"\u043F\u0456\u0432\u0445\u0432\u0438\u043B\u0438\u043D\u0438 \u0442\u043E\u043C\u0443":"\u043F\u0456\u0432\u0445\u0432\u0438\u043B\u0438\u043D\u0438",Ts={lessThanXSeconds:h({regular:{one:"\u043C\u0435\u043D\u0448\u0435 \u0441\u0435\u043A\u0443\u043D\u0434\u0438",singularNominative:"\u043C\u0435\u043D\u0448\u0435 {{count}} \u0441\u0435\u043A\u0443\u043D\u0434\u0438",singularGenitive:"\u043C\u0435\u043D\u0448\u0435 {{count}} \u0441\u0435\u043A\u0443\u043D\u0434",pluralGenitive:"\u043C\u0435\u043D\u0448\u0435 {{count}} \u0441\u0435\u043A\u0443\u043D\u0434"},future:{one:"\u043C\u0435\u043D\u0448\u0435, \u043D\u0456\u0436 \u0437\u0430 \u0441\u0435\u043A\u0443\u043D\u0434\u0443",singularNominative:"\u043C\u0435\u043D\u0448\u0435, \u043D\u0456\u0436 \u0437\u0430 {{count}} \u0441\u0435\u043A\u0443\u043D\u0434\u0443",singularGenitive:"\u043C\u0435\u043D\u0448\u0435, \u043D\u0456\u0436 \u0437\u0430 {{count}} \u0441\u0435\u043A\u0443\u043D\u0434\u0438",pluralGenitive:"\u043C\u0435\u043D\u0448\u0435, \u043D\u0456\u0436 \u0437\u0430 {{count}} \u0441\u0435\u043A\u0443\u043D\u0434"}}),xSeconds:h({regular:{singularNominative:"{{count}} \u0441\u0435\u043A\u0443\u043D\u0434\u0430",singularGenitive:"{{count}} \u0441\u0435\u043A\u0443\u043D\u0434\u0438",pluralGenitive:"{{count}} \u0441\u0435\u043A\u0443\u043D\u0434"},past:{singularNominative:"{{count}} \u0441\u0435\u043A\u0443\u043D\u0434\u0443 \u0442\u043E\u043C\u0443",singularGenitive:"{{count}} \u0441\u0435\u043A\u0443\u043D\u0434\u0438 \u0442\u043E\u043C\u0443",pluralGenitive:"{{count}} \u0441\u0435\u043A\u0443\u043D\u0434 \u0442\u043E\u043C\u0443"},future:{singularNominative:"\u0437\u0430 {{count}} \u0441\u0435\u043A\u0443\u043D\u0434\u0443",singularGenitive:"\u0437\u0430 {{count}} \u0441\u0435\u043A\u0443\u043D\u0434\u0438",pluralGenitive:"\u0437\u0430 {{count}} \u0441\u0435\u043A\u0443\u043D\u0434"}}),halfAMinute:js,lessThanXMinutes:h({regular:{one:"\u043C\u0435\u043D\u0448\u0435 \u0445\u0432\u0438\u043B\u0438\u043D\u0438",singularNominative:"\u043C\u0435\u043D\u0448\u0435 {{count}} \u0445\u0432\u0438\u043B\u0438\u043D\u0438",singularGenitive:"\u043C\u0435\u043D\u0448\u0435 {{count}} \u0445\u0432\u0438\u043B\u0438\u043D",pluralGenitive:"\u043C\u0435\u043D\u0448\u0435 {{count}} \u0445\u0432\u0438\u043B\u0438\u043D"},future:{one:"\u043C\u0435\u043D\u0448\u0435, \u043D\u0456\u0436 \u0437\u0430 \u0445\u0432\u0438\u043B\u0438\u043D\u0443",singularNominative:"\u043C\u0435\u043D\u0448\u0435, \u043D\u0456\u0436 \u0437\u0430 {{count}} \u0445\u0432\u0438\u043B\u0438\u043D\u0443",singularGenitive:"\u043C\u0435\u043D\u0448\u0435, \u043D\u0456\u0436 \u0437\u0430 {{count}} \u0445\u0432\u0438\u043B\u0438\u043D\u0438",pluralGenitive:"\u043C\u0435\u043D\u0448\u0435, \u043D\u0456\u0436 \u0437\u0430 {{count}} \u0445\u0432\u0438\u043B\u0438\u043D"}}),xMinutes:h({regular:{singularNominative:"{{count}} \u0445\u0432\u0438\u043B\u0438\u043D\u0430",singularGenitive:"{{count}} \u0445\u0432\u0438\u043B\u0438\u043D\u0438",pluralGenitive:"{{count}} \u0445\u0432\u0438\u043B\u0438\u043D"},past:{singularNominative:"{{count}} \u0445\u0432\u0438\u043B\u0438\u043D\u0443 \u0442\u043E\u043C\u0443",singularGenitive:"{{count}} \u0445\u0432\u0438\u043B\u0438\u043D\u0438 \u0442\u043E\u043C\u0443",pluralGenitive:"{{count}} \u0445\u0432\u0438\u043B\u0438\u043D \u0442\u043E\u043C\u0443"},future:{singularNominative:"\u0437\u0430 {{count}} \u0445\u0432\u0438\u043B\u0438\u043D\u0443",singularGenitive:"\u0437\u0430 {{count}} \u0445\u0432\u0438\u043B\u0438\u043D\u0438",pluralGenitive:"\u0437\u0430 {{count}} \u0445\u0432\u0438\u043B\u0438\u043D"}}),aboutXHours:h({regular:{singularNominative:"\u0431\u043B\u0438\u0437\u044C\u043A\u043E {{count}} \u0433\u043E\u0434\u0438\u043D\u0438",singularGenitive:"\u0431\u043B\u0438\u0437\u044C\u043A\u043E {{count}} \u0433\u043E\u0434\u0438\u043D",pluralGenitive:"\u0431\u043B\u0438\u0437\u044C\u043A\u043E {{count}} \u0433\u043E\u0434\u0438\u043D"},future:{singularNominative:"\u043F\u0440\u0438\u0431\u043B\u0438\u0437\u043D\u043E \u0437\u0430 {{count}} \u0433\u043E\u0434\u0438\u043D\u0443",singularGenitive:"\u043F\u0440\u0438\u0431\u043B\u0438\u0437\u043D\u043E \u0437\u0430 {{count}} \u0433\u043E\u0434\u0438\u043D\u0438",pluralGenitive:"\u043F\u0440\u0438\u0431\u043B\u0438\u0437\u043D\u043E \u0437\u0430 {{count}} \u0433\u043E\u0434\u0438\u043D"}}),xHours:h({regular:{singularNominative:"{{count}} \u0433\u043E\u0434\u0438\u043D\u0443",singularGenitive:"{{count}} \u0433\u043E\u0434\u0438\u043D\u0438",pluralGenitive:"{{count}} \u0433\u043E\u0434\u0438\u043D"}}),xDays:h({regular:{singularNominative:"{{count}} \u0434\u0435\u043D\u044C",singularGenitive:"{{count}} \u0434\u043Di",pluralGenitive:"{{count}} \u0434\u043D\u0456\u0432"}}),aboutXWeeks:h({regular:{singularNominative:"\u0431\u043B\u0438\u0437\u044C\u043A\u043E {{count}} \u0442\u0438\u0436\u043D\u044F",singularGenitive:"\u0431\u043B\u0438\u0437\u044C\u043A\u043E {{count}} \u0442\u0438\u0436\u043D\u0456\u0432",pluralGenitive:"\u0431\u043B\u0438\u0437\u044C\u043A\u043E {{count}} \u0442\u0438\u0436\u043D\u0456\u0432"},future:{singularNominative:"\u043F\u0440\u0438\u0431\u043B\u0438\u0437\u043D\u043E \u0437\u0430 {{count}} \u0442\u0438\u0436\u0434\u0435\u043D\u044C",singularGenitive:"\u043F\u0440\u0438\u0431\u043B\u0438\u0437\u043D\u043E \u0437\u0430 {{count}} \u0442\u0438\u0436\u043D\u0456",pluralGenitive:"\u043F\u0440\u0438\u0431\u043B\u0438\u0437\u043D\u043E \u0437\u0430 {{count}} \u0442\u0438\u0436\u043D\u0456\u0432"}}),xWeeks:h({regular:{singularNominative:"{{count}} \u0442\u0438\u0436\u0434\u0435\u043D\u044C",singularGenitive:"{{count}} \u0442\u0438\u0436\u043D\u0456",pluralGenitive:"{{count}} \u0442\u0438\u0436\u043D\u0456\u0432"}}),aboutXMonths:h({regular:{singularNominative:"\u0431\u043B\u0438\u0437\u044C\u043A\u043E {{count}} \u043C\u0456\u0441\u044F\u0446\u044F",singularGenitive:"\u0431\u043B\u0438\u0437\u044C\u043A\u043E {{count}} \u043C\u0456\u0441\u044F\u0446\u0456\u0432",pluralGenitive:"\u0431\u043B\u0438\u0437\u044C\u043A\u043E {{count}} \u043C\u0456\u0441\u044F\u0446\u0456\u0432"},future:{singularNominative:"\u043F\u0440\u0438\u0431\u043B\u0438\u0437\u043D\u043E \u0437\u0430 {{count}} \u043C\u0456\u0441\u044F\u0446\u044C",singularGenitive:"\u043F\u0440\u0438\u0431\u043B\u0438\u0437\u043D\u043E \u0437\u0430 {{count}} \u043C\u0456\u0441\u044F\u0446\u0456",pluralGenitive:"\u043F\u0440\u0438\u0431\u043B\u0438\u0437\u043D\u043E \u0437\u0430 {{count}} \u043C\u0456\u0441\u044F\u0446\u0456\u0432"}}),xMonths:h({regular:{singularNominative:"{{count}} \u043C\u0456\u0441\u044F\u0446\u044C",singularGenitive:"{{count}} \u043C\u0456\u0441\u044F\u0446\u0456",pluralGenitive:"{{count}} \u043C\u0456\u0441\u044F\u0446\u0456\u0432"}}),aboutXYears:h({regular:{singularNominative:"\u0431\u043B\u0438\u0437\u044C\u043A\u043E {{count}} \u0440\u043E\u043A\u0443",singularGenitive:"\u0431\u043B\u0438\u0437\u044C\u043A\u043E {{count}} \u0440\u043E\u043A\u0456\u0432",pluralGenitive:"\u0431\u043B\u0438\u0437\u044C\u043A\u043E {{count}} \u0440\u043E\u043A\u0456\u0432"},future:{singularNominative:"\u043F\u0440\u0438\u0431\u043B\u0438\u0437\u043D\u043E \u0437\u0430 {{count}} \u0440\u0456\u043A",singularGenitive:"\u043F\u0440\u0438\u0431\u043B\u0438\u0437\u043D\u043E \u0437\u0430 {{count}} \u0440\u043E\u043A\u0438",pluralGenitive:"\u043F\u0440\u0438\u0431\u043B\u0438\u0437\u043D\u043E \u0437\u0430 {{count}} \u0440\u043E\u043A\u0456\u0432"}}),xYears:h({regular:{singularNominative:"{{count}} \u0440\u0456\u043A",singularGenitive:"{{count}} \u0440\u043E\u043A\u0438",pluralGenitive:"{{count}} \u0440\u043E\u043A\u0456\u0432"}}),overXYears:h({regular:{singularNominative:"\u0431\u0456\u043B\u044C\u0448\u0435 {{count}} \u0440\u043E\u043A\u0443",singularGenitive:"\u0431\u0456\u043B\u044C\u0448\u0435 {{count}} \u0440\u043E\u043A\u0456\u0432",pluralGenitive:"\u0431\u0456\u043B\u044C\u0448\u0435 {{count}} \u0440\u043E\u043A\u0456\u0432"},future:{singularNominative:"\u0431\u0456\u043B\u044C\u0448\u0435, \u043D\u0456\u0436 \u0437\u0430 {{count}} \u0440\u0456\u043A",singularGenitive:"\u0431\u0456\u043B\u044C\u0448\u0435, \u043D\u0456\u0436 \u0437\u0430 {{count}} \u0440\u043E\u043A\u0438",pluralGenitive:"\u0431\u0456\u043B\u044C\u0448\u0435, \u043D\u0456\u0436 \u0437\u0430 {{count}} \u0440\u043E\u043A\u0456\u0432"}}),almostXYears:h({regular:{singularNominative:"\u043C\u0430\u0439\u0436\u0435 {{count}} \u0440\u0456\u043A",singularGenitive:"\u043C\u0430\u0439\u0436\u0435 {{count}} \u0440\u043E\u043A\u0438",pluralGenitive:"\u043C\u0430\u0439\u0436\u0435 {{count}} \u0440\u043E\u043A\u0456\u0432"},future:{singularNominative:"\u043C\u0430\u0439\u0436\u0435 \u0437\u0430 {{count}} \u0440\u0456\u043A",singularGenitive:"\u043C\u0430\u0439\u0436\u0435 \u0437\u0430 {{count}} \u0440\u043E\u043A\u0438",pluralGenitive:"\u043C\u0430\u0439\u0436\u0435 \u0437\u0430 {{count}} \u0440\u043E\u043A\u0456\u0432"}})},Kt=(e,n,t)=>(t=t||{},Ts[e](n,t));var Fs={full:"EEEE, do MMMM y '\u0440.'",long:"do MMMM y '\u0440.'",medium:"d MMM y '\u0440.'",short:"dd.MM.y"},Ns={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},As={full:"{{date}} '\u043E' {{time}}",long:"{{date}} '\u043E' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Ut={date:s({formats:Fs,defaultWidth:"full"}),time:s({formats:Ns,defaultWidth:"full"}),dateTime:s({formats:As,defaultWidth:"full"})};var ne=["\u043D\u0435\u0434\u0456\u043B\u044E","\u043F\u043E\u043D\u0435\u0434\u0456\u043B\u043E\u043A","\u0432\u0456\u0432\u0442\u043E\u0440\u043E\u043A","\u0441\u0435\u0440\u0435\u0434\u0443","\u0447\u0435\u0442\u0432\u0435\u0440","\u043F\u2019\u044F\u0442\u043D\u0438\u0446\u044E","\u0441\u0443\u0431\u043E\u0442\u0443"];function Es(e){let n=ne[e];switch(e){case 0:case 3:case 5:case 6:return"'\u0443 \u043C\u0438\u043D\u0443\u043B\u0443 "+n+" \u043E' p";case 1:case 2:case 4:return"'\u0443 \u043C\u0438\u043D\u0443\u043B\u0438\u0439 "+n+" \u043E' p"}}function Zt(e){return"'\u0443 "+ne[e]+" \u043E' p"}function Ls(e){let n=ne[e];switch(e){case 0:case 3:case 5:case 6:return"'\u0443 \u043D\u0430\u0441\u0442\u0443\u043F\u043D\u0443 "+n+" \u043E' p";case 1:case 2:case 4:return"'\u0443 \u043D\u0430\u0441\u0442\u0443\u043F\u043D\u0438\u0439 "+n+" \u043E' p"}}var Vs=(e,n,t)=>{let a=w(e),i=a.getDay();return v(a,n,t)?Zt(i):Es(i)},Gs=(e,n,t)=>{let a=w(e),i=a.getDay();return v(a,n,t)?Zt(i):Ls(i)},Hs={lastWeek:Vs,yesterday:"'\u0432\u0447\u043E\u0440\u0430 \u043E' p",today:"'\u0441\u044C\u043E\u0433\u043E\u0434\u043D\u0456 \u043E' p",tomorrow:"'\u0437\u0430\u0432\u0442\u0440\u0430 \u043E' p",nextWeek:Gs,other:"P"},ea=(e,n,t,a)=>{let i=Hs[e];return typeof i=="function"?i(n,t,a):i};var Os={narrow:["\u0434\u043E \u043D.\u0435.","\u043D.\u0435."],abbreviated:["\u0434\u043E \u043D. \u0435.","\u043D. \u0435."],wide:["\u0434\u043E \u043D\u0430\u0448\u043E\u0457 \u0435\u0440\u0438","\u043D\u0430\u0448\u043E\u0457 \u0435\u0440\u0438"]},Xs={narrow:["1","2","3","4"],abbreviated:["1-\u0439 \u043A\u0432.","2-\u0439 \u043A\u0432.","3-\u0439 \u043A\u0432.","4-\u0439 \u043A\u0432."],wide:["1-\u0439 \u043A\u0432\u0430\u0440\u0442\u0430\u043B","2-\u0439 \u043A\u0432\u0430\u0440\u0442\u0430\u043B","3-\u0439 \u043A\u0432\u0430\u0440\u0442\u0430\u043B","4-\u0439 \u043A\u0432\u0430\u0440\u0442\u0430\u043B"]},Rs={narrow:["\u0421","\u041B","\u0411","\u041A","\u0422","\u0427","\u041B","\u0421","\u0412","\u0416","\u041B","\u0413"],abbreviated:["\u0441\u0456\u0447.","\u043B\u044E\u0442.","\u0431\u0435\u0440\u0435\u0437.","\u043A\u0432\u0456\u0442.","\u0442\u0440\u0430\u0432.","\u0447\u0435\u0440\u0432.","\u043B\u0438\u043F.","\u0441\u0435\u0440\u043F.","\u0432\u0435\u0440\u0435\u0441.","\u0436\u043E\u0432\u0442.","\u043B\u0438\u0441\u0442\u043E\u043F.","\u0433\u0440\u0443\u0434."],wide:["\u0441\u0456\u0447\u0435\u043D\u044C","\u043B\u044E\u0442\u0438\u0439","\u0431\u0435\u0440\u0435\u0437\u0435\u043D\u044C","\u043A\u0432\u0456\u0442\u0435\u043D\u044C","\u0442\u0440\u0430\u0432\u0435\u043D\u044C","\u0447\u0435\u0440\u0432\u0435\u043D\u044C","\u043B\u0438\u043F\u0435\u043D\u044C","\u0441\u0435\u0440\u043F\u0435\u043D\u044C","\u0432\u0435\u0440\u0435\u0441\u0435\u043D\u044C","\u0436\u043E\u0432\u0442\u0435\u043D\u044C","\u043B\u0438\u0441\u0442\u043E\u043F\u0430\u0434","\u0433\u0440\u0443\u0434\u0435\u043D\u044C"]},Is={narrow:["\u0421","\u041B","\u0411","\u041A","\u0422","\u0427","\u041B","\u0421","\u0412","\u0416","\u041B","\u0413"],abbreviated:["\u0441\u0456\u0447.","\u043B\u044E\u0442.","\u0431\u0435\u0440\u0435\u0437.","\u043A\u0432\u0456\u0442.","\u0442\u0440\u0430\u0432.","\u0447\u0435\u0440\u0432.","\u043B\u0438\u043F.","\u0441\u0435\u0440\u043F.","\u0432\u0435\u0440\u0435\u0441.","\u0436\u043E\u0432\u0442.","\u043B\u0438\u0441\u0442\u043E\u043F.","\u0433\u0440\u0443\u0434."],wide:["\u0441\u0456\u0447\u043D\u044F","\u043B\u044E\u0442\u043E\u0433\u043E","\u0431\u0435\u0440\u0435\u0437\u043D\u044F","\u043A\u0432\u0456\u0442\u043D\u044F","\u0442\u0440\u0430\u0432\u043D\u044F","\u0447\u0435\u0440\u0432\u043D\u044F","\u043B\u0438\u043F\u043D\u044F","\u0441\u0435\u0440\u043F\u043D\u044F","\u0432\u0435\u0440\u0435\u0441\u043D\u044F","\u0436\u043E\u0432\u0442\u043D\u044F","\u043B\u0438\u0441\u0442\u043E\u043F\u0430\u0434\u0430","\u0433\u0440\u0443\u0434\u043D\u044F"]},qs={narrow:["\u041D","\u041F","\u0412","\u0421","\u0427","\u041F","\u0421"],short:["\u043D\u0434","\u043F\u043D","\u0432\u0442","\u0441\u0440","\u0447\u0442","\u043F\u0442","\u0441\u0431"],abbreviated:["\u043D\u0435\u0434","\u043F\u043E\u043D","\u0432\u0456\u0432","\u0441\u0435\u0440","\u0447\u0442\u0432","\u043F\u0442\u043D","\u0441\u0443\u0431"],wide:["\u043D\u0435\u0434\u0456\u043B\u044F","\u043F\u043E\u043D\u0435\u0434\u0456\u043B\u043E\u043A","\u0432\u0456\u0432\u0442\u043E\u0440\u043E\u043A","\u0441\u0435\u0440\u0435\u0434\u0430","\u0447\u0435\u0442\u0432\u0435\u0440","\u043F\u2019\u044F\u0442\u043D\u0438\u0446\u044F","\u0441\u0443\u0431\u043E\u0442\u0430"]},Bs={narrow:{am:"\u0414\u041F",pm:"\u041F\u041F",midnight:"\u043F\u0456\u0432\u043D.",noon:"\u043F\u043E\u043B.",morning:"\u0440\u0430\u043D\u043E\u043A",afternoon:"\u0434\u0435\u043D\u044C",evening:"\u0432\u0435\u0447.",night:"\u043D\u0456\u0447"},abbreviated:{am:"\u0414\u041F",pm:"\u041F\u041F",midnight:"\u043F\u0456\u0432\u043D.",noon:"\u043F\u043E\u043B.",morning:"\u0440\u0430\u043D\u043E\u043A",afternoon:"\u0434\u0435\u043D\u044C",evening:"\u0432\u0435\u0447.",night:"\u043D\u0456\u0447"},wide:{am:"\u0414\u041F",pm:"\u041F\u041F",midnight:"\u043F\u0456\u0432\u043D\u0456\u0447",noon:"\u043F\u043E\u043B\u0443\u0434\u0435\u043D\u044C",morning:"\u0440\u0430\u043D\u043E\u043A",afternoon:"\u0434\u0435\u043D\u044C",evening:"\u0432\u0435\u0447\u0456\u0440",night:"\u043D\u0456\u0447"}},Ys={narrow:{am:"\u0414\u041F",pm:"\u041F\u041F",midnight:"\u043F\u0456\u0432\u043D.",noon:"\u043F\u043E\u043B.",morning:"\u0440\u0430\u043D\u043A\u0443",afternoon:"\u0434\u043D\u044F",evening:"\u0432\u0435\u0447.",night:"\u043D\u043E\u0447\u0456"},abbreviated:{am:"\u0414\u041F",pm:"\u041F\u041F",midnight:"\u043F\u0456\u0432\u043D.",noon:"\u043F\u043E\u043B.",morning:"\u0440\u0430\u043D\u043A\u0443",afternoon:"\u0434\u043D\u044F",evening:"\u0432\u0435\u0447.",night:"\u043D\u043E\u0447\u0456"},wide:{am:"\u0414\u041F",pm:"\u041F\u041F",midnight:"\u043F\u0456\u0432\u043D\u0456\u0447",noon:"\u043F\u043E\u043B\u0443\u0434\u0435\u043D\u044C",morning:"\u0440\u0430\u043D\u043A\u0443",afternoon:"\u0434\u043D\u044F",evening:"\u0432\u0435\u0447.",night:"\u043D\u043E\u0447\u0456"}},Js=(e,n)=>{let t=String(n?.unit),a=Number(e),i;return t==="date"?a===3||a===23?i="-\u0454":i="-\u0435":t==="minute"||t==="second"||t==="hour"?i="-\u0430":i="-\u0439",a+i},ta={ordinalNumber:Js,era:r({values:Os,defaultWidth:"wide"}),quarter:r({values:Xs,defaultWidth:"wide",argumentCallback:e=>e-1}),month:r({values:Rs,defaultWidth:"wide",formattingValues:Is,defaultFormattingWidth:"wide"}),day:r({values:qs,defaultWidth:"wide"}),dayPeriod:r({values:Bs,defaultWidth:"any",formattingValues:Ys,defaultFormattingWidth:"wide"})};var Qs=/^(\d+)(-?(е|й|є|а|я))?/i,$s=/\d+/i,Ks={narrow:/^((до )?н\.?\s?е\.?)/i,abbreviated:/^((до )?н\.?\s?е\.?)/i,wide:/^(до нашої ери|нашої ери|наша ера)/i},Us={any:[/^д/i,/^н/i]},Zs={narrow:/^[1234]/i,abbreviated:/^[1234](-?[иі]?й?)? кв.?/i,wide:/^[1234](-?[иі]?й?)? квартал/i},ed={any:[/1/i,/2/i,/3/i,/4/i]},td={narrow:/^[слбктчвжг]/i,abbreviated:/^(січ|лют|бер(ез)?|квіт|трав|черв|лип|серп|вер(ес)?|жовт|лис(топ)?|груд)\.?/i,wide:/^(січень|січня|лютий|лютого|березень|березня|квітень|квітня|травень|травня|червня|червень|липень|липня|серпень|серпня|вересень|вересня|жовтень|жовтня|листопад[а]?|грудень|грудня)/i},ad={narrow:[/^с/i,/^л/i,/^б/i,/^к/i,/^т/i,/^ч/i,/^л/i,/^с/i,/^в/i,/^ж/i,/^л/i,/^г/i],any:[/^сі/i,/^лю/i,/^б/i,/^к/i,/^т/i,/^ч/i,/^лип/i,/^се/i,/^в/i,/^ж/i,/^лис/i,/^г/i]},nd={narrow:/^[нпвсч]/i,short:/^(нд|пн|вт|ср|чт|пт|сб)\.?/i,abbreviated:/^(нед|пон|вів|сер|че?тв|птн?|суб)\.?/i,wide:/^(неділ[яі]|понеділ[ок][ка]|вівтор[ок][ка]|серед[аи]|четвер(га)?|п\W*?ятниц[яі]|субот[аи])/i},id={narrow:[/^н/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^н/i,/^п[он]/i,/^в/i,/^с[ер]/i,/^ч/i,/^п\W*?[ят]/i,/^с[уб]/i]},rd={narrow:/^([дп]п|півн\.?|пол\.?|ранок|ранку|день|дня|веч\.?|ніч|ночі)/i,abbreviated:/^([дп]п|півн\.?|пол\.?|ранок|ранку|день|дня|веч\.?|ніч|ночі)/i,wide:/^([дп]п|північ|полудень|ранок|ранку|день|дня|вечір|вечора|ніч|ночі)/i},od={any:{am:/^дп/i,pm:/^пп/i,midnight:/^півн/i,noon:/^пол/i,morning:/^р/i,afternoon:/^д[ен]/i,evening:/^в/i,night:/^н/i}},aa={ordinalNumber:u({matchPattern:Qs,parsePattern:$s,valueCallback:e=>parseInt(e,10)}),era:o({matchPatterns:Ks,defaultMatchWidth:"wide",parsePatterns:Us,defaultParseWidth:"any"}),quarter:o({matchPatterns:Zs,defaultMatchWidth:"wide",parsePatterns:ed,defaultParseWidth:"any",valueCallback:e=>e+1}),month:o({matchPatterns:td,defaultMatchWidth:"wide",parsePatterns:ad,defaultParseWidth:"any"}),day:o({matchPatterns:nd,defaultMatchWidth:"wide",parsePatterns:id,defaultParseWidth:"any"}),dayPeriod:o({matchPatterns:rd,defaultMatchWidth:"wide",parsePatterns:od,defaultParseWidth:"any"})};var na={code:"uk",formatDistance:Kt,formatLong:Ut,formatRelative:ea,localize:ta,match:aa,options:{weekStartsOn:1,firstWeekContainsDate:1}};var sd={lessThanXSeconds:{one:"\u4E0D\u5230 1 \u79D2",other:"\u4E0D\u5230 {{count}} \u79D2"},xSeconds:{one:"1 \u79D2",other:"{{count}} \u79D2"},halfAMinute:"\u534A\u5206\u949F",lessThanXMinutes:{one:"\u4E0D\u5230 1 \u5206\u949F",other:"\u4E0D\u5230 {{count}} \u5206\u949F"},xMinutes:{one:"1 \u5206\u949F",other:"{{count}} \u5206\u949F"},xHours:{one:"1 \u5C0F\u65F6",other:"{{count}} \u5C0F\u65F6"},aboutXHours:{one:"\u5927\u7EA6 1 \u5C0F\u65F6",other:"\u5927\u7EA6 {{count}} \u5C0F\u65F6"},xDays:{one:"1 \u5929",other:"{{count}} \u5929"},aboutXWeeks:{one:"\u5927\u7EA6 1 \u4E2A\u661F\u671F",other:"\u5927\u7EA6 {{count}} \u4E2A\u661F\u671F"},xWeeks:{one:"1 \u4E2A\u661F\u671F",other:"{{count}} \u4E2A\u661F\u671F"},aboutXMonths:{one:"\u5927\u7EA6 1 \u4E2A\u6708",other:"\u5927\u7EA6 {{count}} \u4E2A\u6708"},xMonths:{one:"1 \u4E2A\u6708",other:"{{count}} \u4E2A\u6708"},aboutXYears:{one:"\u5927\u7EA6 1 \u5E74",other:"\u5927\u7EA6 {{count}} \u5E74"},xYears:{one:"1 \u5E74",other:"{{count}} \u5E74"},overXYears:{one:"\u8D85\u8FC7 1 \u5E74",other:"\u8D85\u8FC7 {{count}} \u5E74"},almostXYears:{one:"\u5C06\u8FD1 1 \u5E74",other:"\u5C06\u8FD1 {{count}} \u5E74"}},ia=(e,n,t)=>{let a,i=sd[e];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),t?.addSuffix?t.comparison&&t.comparison>0?a+"\u5185":a+"\u524D":a};var dd={full:"y'\u5E74'M'\u6708'd'\u65E5' EEEE",long:"y'\u5E74'M'\u6708'd'\u65E5'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},md={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},ud={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},ra={date:s({formats:dd,defaultWidth:"full"}),time:s({formats:md,defaultWidth:"full"}),dateTime:s({formats:ud,defaultWidth:"full"})};function oa(e,n,t){let a="eeee p";return v(e,n,t)?a:e.getTime()>n.getTime()?"'\u4E0B\u4E2A'"+a:"'\u4E0A\u4E2A'"+a}var cd={lastWeek:oa,yesterday:"'\u6628\u5929' p",today:"'\u4ECA\u5929' p",tomorrow:"'\u660E\u5929' p",nextWeek:oa,other:"PP p"},sa=(e,n,t,a)=>{let i=cd[e];return typeof i=="function"?i(n,t,a):i};var ld={narrow:["\u524D","\u516C\u5143"],abbreviated:["\u524D","\u516C\u5143"],wide:["\u516C\u5143\u524D","\u516C\u5143"]},hd={narrow:["1","2","3","4"],abbreviated:["\u7B2C\u4E00\u5B63","\u7B2C\u4E8C\u5B63","\u7B2C\u4E09\u5B63","\u7B2C\u56DB\u5B63"],wide:["\u7B2C\u4E00\u5B63\u5EA6","\u7B2C\u4E8C\u5B63\u5EA6","\u7B2C\u4E09\u5B63\u5EA6","\u7B2C\u56DB\u5B63\u5EA6"]},fd={narrow:["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"],abbreviated:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],wide:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"]},pd={narrow:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],short:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],abbreviated:["\u5468\u65E5","\u5468\u4E00","\u5468\u4E8C","\u5468\u4E09","\u5468\u56DB","\u5468\u4E94","\u5468\u516D"],wide:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"]},gd={narrow:{am:"\u4E0A",pm:"\u4E0B",midnight:"\u51CC\u6668",noon:"\u5348",morning:"\u65E9",afternoon:"\u4E0B\u5348",evening:"\u665A",night:"\u591C"},abbreviated:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u95F4"},wide:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u95F4"}},vd={narrow:{am:"\u4E0A",pm:"\u4E0B",midnight:"\u51CC\u6668",noon:"\u5348",morning:"\u65E9",afternoon:"\u4E0B\u5348",evening:"\u665A",night:"\u591C"},abbreviated:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u95F4"},wide:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u95F4"}},bd=(e,n)=>{let t=Number(e);switch(n?.unit){case"date":return t.toString()+"\u65E5";case"hour":return t.toString()+"\u65F6";case"minute":return t.toString()+"\u5206";case"second":return t.toString()+"\u79D2";default:return"\u7B2C "+t.toString()}},da={ordinalNumber:bd,era:r({values:ld,defaultWidth:"wide"}),quarter:r({values:hd,defaultWidth:"wide",argumentCallback:e=>e-1}),month:r({values:fd,defaultWidth:"wide"}),day:r({values:pd,defaultWidth:"wide"}),dayPeriod:r({values:gd,defaultWidth:"wide",formattingValues:vd,defaultFormattingWidth:"wide"})};var yd=/^(第\s*)?\d+(日|时|分|秒)?/i,wd=/\d+/i,Pd={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},Md={any:[/^(前)/i,/^(公元)/i]},kd={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},xd={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},Wd={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},Dd={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},Sd={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},_d={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},zd={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},Cd={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},ma={ordinalNumber:u({matchPattern:yd,parsePattern:wd,valueCallback:e=>parseInt(e,10)}),era:o({matchPatterns:Pd,defaultMatchWidth:"wide",parsePatterns:Md,defaultParseWidth:"any"}),quarter:o({matchPatterns:kd,defaultMatchWidth:"wide",parsePatterns:xd,defaultParseWidth:"any",valueCallback:e=>e+1}),month:o({matchPatterns:Wd,defaultMatchWidth:"wide",parsePatterns:Dd,defaultParseWidth:"any"}),day:o({matchPatterns:Sd,defaultMatchWidth:"wide",parsePatterns:_d,defaultParseWidth:"any"}),dayPeriod:o({matchPatterns:zd,defaultMatchWidth:"any",parsePatterns:Cd,defaultParseWidth:"any"})};var ua={code:"zh-CN",formatDistance:ia,formatLong:ra,formatRelative:sa,localize:da,match:ma,options:{weekStartsOn:1,firstWeekContainsDate:4}};var jd={ar:Ve,de:qe,en:F,es:at,fr:dt,hi:gt,ja:Mt,nl:_t,pt:Nt,ru:It,tr:$t,uk:na,zh:ua};var Th=e=>jd[e]??F;function Lh(e){let n=w(e),t=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return t.setUTCFullYear(n.getFullYear()),+e-+t}export{sm as a,Bc as b,Yc as c,Jc as d,Qc as e,N as f,w as g,Gt as h,te as i,Lh as j,Vt as k,F as l,Th as m}; diff --git a/webui/dist/bitmagnet/browser/chunk-3DR3CJRN.js b/webui/dist/bitmagnet/browser/chunk-3DR3CJRN.js deleted file mode 100644 index ae6ca709..00000000 --- a/webui/dist/bitmagnet/browser/chunk-3DR3CJRN.js +++ /dev/null @@ -1,7 +0,0 @@ -var Zf=Object.defineProperty,Yf=Object.defineProperties;var Qf=Object.getOwnPropertyDescriptors;var Ln=Object.getOwnPropertySymbols;var Qa=Object.prototype.hasOwnProperty,Ka=Object.prototype.propertyIsEnumerable;var Ya=(e,t,n)=>t in e?Zf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,me=(e,t)=>{for(var n in t||={})Qa.call(t,n)&&Ya(e,n,t[n]);if(Ln)for(var n of Ln(t))Ka.call(t,n)&&Ya(e,n,t[n]);return e},ye=(e,t)=>Yf(e,Qf(t));var ow=(e,t)=>{var n={};for(var r in e)Qa.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Ln)for(var r of Ln(e))t.indexOf(r)<0&&Ka.call(e,r)&&(n[r]=e[r]);return n};var Kf=(e,t,n)=>new Promise((r,o)=>{var i=u=>{try{a(n.next(u))}catch(c){o(c)}},s=u=>{try{a(n.throw(u))}catch(c){o(c)}},a=u=>u.done?r(u.value):Promise.resolve(u.value).then(i,s);a((n=n.apply(e,t)).next())});function g(e){return typeof e=="function"}function Tt(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var jn=Tt(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription: -${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(` - `)}`:"",this.name="UnsubscriptionError",this.errors=n});function et(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var L=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(g(r))try{r()}catch(i){t=i instanceof jn?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Ja(i)}catch(s){t=t??[],s instanceof jn?t=[...t,...s.errors]:t.push(s)}}if(t)throw new jn(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Ja(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&et(n,t)}remove(t){let{_finalizers:n}=this;n&&et(n,t),t instanceof e&&t._removeParent(this)}};L.EMPTY=(()=>{let e=new L;return e.closed=!0,e})();var Ho=L.EMPTY;function Vn(e){return e instanceof L||e&&"closed"in e&&g(e.remove)&&g(e.add)&&g(e.unsubscribe)}function Ja(e){g(e)?e():e.unsubscribe()}var ce={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Nt={setTimeout(e,t,...n){let{delegate:r}=Nt;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=Nt;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Bn(e){Nt.setTimeout(()=>{let{onUnhandledError:t}=ce;if(t)t(e);else throw e})}function tt(){}var Xa=$o("C",void 0,void 0);function eu(e){return $o("E",void 0,e)}function tu(e){return $o("N",e,void 0)}function $o(e,t,n){return{kind:e,value:t,error:n}}var nt=null;function At(e){if(ce.useDeprecatedSynchronousErrorHandling){let t=!nt;if(t&&(nt={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=nt;if(nt=null,n)throw r}}else e()}function nu(e){ce.useDeprecatedSynchronousErrorHandling&&nt&&(nt.errorThrown=!0,nt.error=e)}var rt=class extends L{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Vn(t)&&t.add(this)):this.destination=ep}static create(t,n,r){return new Te(t,n,r)}next(t){this.isStopped?zo(tu(t),this):this._next(t)}error(t){this.isStopped?zo(eu(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?zo(Xa,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},Jf=Function.prototype.bind;function Uo(e,t){return Jf.call(e,t)}var Go=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Hn(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Hn(r)}else Hn(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Hn(n)}}},Te=class extends rt{constructor(t,n,r){super();let o;if(g(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&ce.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&Uo(t.next,i),error:t.error&&Uo(t.error,i),complete:t.complete&&Uo(t.complete,i)}):o=t}this.destination=new Go(o)}};function Hn(e){ce.useDeprecatedSynchronousErrorHandling?nu(e):Bn(e)}function Xf(e){throw e}function zo(e,t){let{onStoppedNotification:n}=ce;n&&Nt.setTimeout(()=>n(e,t))}var ep={closed:!0,next:tt,error:Xf,complete:tt};var ot=typeof Symbol=="function"&&Symbol.observable||"@@observable";function B(e){return e}function Wo(...e){return qo(e)}function qo(e){return e.length===0?B:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var S=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=np(n)?n:new Te(n,r,o);return At(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=ru(r),new r((o,i)=>{let s=new Te({next:a=>{try{n(a)}catch(u){i(u),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[ot](){return this}pipe(...n){return qo(n)(this)}toPromise(n){return n=ru(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function ru(e){var t;return(t=e??ce.Promise)!==null&&t!==void 0?t:Promise}function tp(e){return e&&g(e.next)&&g(e.error)&&g(e.complete)}function np(e){return e&&e instanceof rt||tp(e)&&Vn(e)}var ou=Tt(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ie=(()=>{class e extends S{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new $n(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new ou}next(n){At(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){At(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){At(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:o,observers:i}=this;return r||o?Ho:(this.currentObservers=null,i.push(n),new L(()=>{this.currentObservers=null,et(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new S;return n.source=this,n}}return e.create=(t,n)=>new $n(t,n),e})(),$n=class extends ie{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:Ho}};var on=class extends ie{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var it=new S(e=>e.complete());function Zo(e){return g(e?.lift)}function y(e){return t=>{if(Zo(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function v(e,t,n,r,o){return new Yo(e,t,n,r,o)}var Yo=class extends rt{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(u){t.error(u)}}:super._next,this._error=o?function(a){try{o(a)}catch(u){t.error(u)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};function ve(e,t){return y((n,r)=>{let o=0;n.subscribe(v(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:rp}=Array,{getPrototypeOf:op,prototype:ip,keys:sp}=Object;function Un(e){if(e.length===1){let t=e[0];if(rp(t))return{args:t,keys:null};if(ap(t)){let n=sp(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function ap(e){return e&&typeof e=="object"&&op(e)===ip}var Qo=function(e,t){return Qo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},Qo(e,t)};function dE(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Qo(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var iu=function(){return iu=Object.assign||function(t){for(var n,r=1,o=arguments.length;r0&&i[i.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function hE(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r1||u(f,m)})},h&&(o[f]=h(o[f])))}function u(f,h){try{c(r[f](h))}catch(m){p(i[0][3],m)}}function c(f){f.value instanceof st?Promise.resolve(f.value.v).then(l,d):p(i[0][2],f)}function l(f){u("next",f)}function d(f){u("throw",f)}function p(f,h){f(h),i.shift(),i.length&&u(i[0][0],i[0][1])}}function cu(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof su=="function"?su(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,u){s=e[i](s),o(a,u,s.done,s.value)})}}function o(i,s,a,u){Promise.resolve(u).then(function(c){i({value:c,done:a})},s)}}var Ot=e=>e&&typeof e.length=="number"&&typeof e!="function";function zn(e){return g(e?.then)}function Gn(e){return g(e[ot])}function Wn(e){return Symbol.asyncIterator&&g(e?.[Symbol.asyncIterator])}function qn(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function up(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Zn=up();function Yn(e){return g(e?.[Zn])}function Qn(e){return uu(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield st(n.read());if(o)return yield st(void 0);yield yield st(r)}}finally{n.releaseLock()}})}function Kn(e){return g(e?.getReader)}function T(e){if(e instanceof S)return e;if(e!=null){if(Gn(e))return cp(e);if(Ot(e))return lp(e);if(zn(e))return dp(e);if(Wn(e))return lu(e);if(Yn(e))return fp(e);if(Kn(e))return pp(e)}throw qn(e)}function cp(e){return new S(t=>{let n=e[ot]();if(g(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function lp(e){return new S(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Bn)})}function fp(e){return new S(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function lu(e){return new S(t=>{hp(e,t).catch(n=>t.error(n))})}function pp(e){return lu(Qn(e))}function hp(e,t){var n,r,o,i;return au(this,void 0,void 0,function*(){try{for(n=cu(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})}function Q(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function sn(e,t=0){return y((n,r)=>{n.subscribe(v(r,o=>Q(r,e,()=>r.next(o),t),()=>Q(r,e,()=>r.complete(),t),o=>Q(r,e,()=>r.error(o),t)))})}function Jn(e,t=0){return y((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function du(e,t){return T(e).pipe(Jn(t),sn(t))}function fu(e,t){return T(e).pipe(Jn(t),sn(t))}function pu(e,t){return new S(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function hu(e,t){return new S(n=>{let r;return Q(n,t,()=>{r=e[Zn](),Q(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>g(r?.return)&&r.return()})}function Xn(e,t){if(!e)throw new Error("Iterable cannot be null");return new S(n=>{Q(n,t,()=>{let r=e[Symbol.asyncIterator]();Q(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function gu(e,t){return Xn(Qn(e),t)}function mu(e,t){if(e!=null){if(Gn(e))return du(e,t);if(Ot(e))return pu(e,t);if(zn(e))return fu(e,t);if(Wn(e))return Xn(e,t);if(Yn(e))return hu(e,t);if(Kn(e))return gu(e,t)}throw qn(e)}function De(e,t){return t?mu(e,t):T(e)}var{isArray:gp}=Array;function mp(e,t){return gp(t)?e(...t):e(t)}function Ve(e){return ve(t=>mp(e,t))}function er(e){return e&&g(e.schedule)}function Ko(e){return e[e.length-1]}function Rt(e){return g(Ko(e))?e.pop():void 0}function Ie(e){return er(Ko(e))?e.pop():void 0}function yu(e,t){return typeof Ko(e)=="number"?e.pop():t}function tr(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function yp(...e){let t=Ie(e),n=Rt(e),{args:r,keys:o}=Un(e);if(r.length===0)return De([],t);let i=new S(Jo(r,t,o?s=>tr(o,s):B));return n?i.pipe(Ve(n)):i}function Jo(e,t,n=B){return r=>{vu(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let u=0;u{let c=De(e[u],t),l=!1;c.subscribe(v(r,d=>{i[u]=d,l||(l=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function vu(e,t,n){e?Q(n,e,t):t()}var{isArray:vp}=Array;function Du(e){return e.length===1&&vp(e[0])?e[0]:e}function Xo(...e){let t=Rt(e);return t?Wo(Xo(...e),Ve(t)):y((n,r)=>{Jo([n,...Du(e)])(r)})}function Dp(...e){return Xo(...e)}function ei(){return y((e,t)=>{let n=null;e._refCount++;let r=v(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){n=null;return}let o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}var ti=class extends S{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,Zo(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){let t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new L;let n=this.getSubject();t.add(this.source.subscribe(v(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=L.EMPTY)}return t}refCount(){return ei()(this)}};var an={now(){return(an.delegate||Date).now()},delegate:void 0};var nr=class extends ie{constructor(t=1/0,n=1/0,r=an){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n)}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(t),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;sIu(t)&&e()),t},clearImmediate(e){Iu(e)}};var{setImmediate:wp,clearImmediate:Ep}=wu,cn={setImmediate(...e){let{delegate:t}=cn;return(t?.setImmediate||wp)(...e)},clearImmediate(e){let{delegate:t}=cn;return(t?.clearImmediate||Ep)(e)},delegate:void 0};var or=class extends Be{constructor(t,n){super(t,n),this.scheduler=t,this.work=n}requestAsyncId(t,n,r=0){return r!==null&&r>0?super.requestAsyncId(t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=cn.setImmediate(t.flush.bind(t,void 0))))}recycleAsyncId(t,n,r=0){var o;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(t,n,r);let{actions:i}=t;n!=null&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==n&&(cn.clearImmediate(n),t._scheduled===n&&(t._scheduled=void 0))}};var Ft=class e{constructor(t,n=e.now){this.schedulerActionCtor=t,this.now=n}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}};Ft.now=an.now;var He=class extends Ft{constructor(t,n=Ft.now){super(t,n),this.actions=[],this._active=!1}flush(t){let{actions:n}=this;if(this._active){n.push(t);return}let r;this._active=!0;do if(r=t.execute(t.state,t.delay))break;while(t=n.shift());if(this._active=!1,r){for(;t=n.shift();)t.unsubscribe();throw r}}};var ir=class extends He{flush(t){this._active=!0;let n=this._scheduled;this._scheduled=void 0;let{actions:r}=this,o;t=t||r.shift();do if(o=t.execute(t.state,t.delay))break;while((t=r[0])&&t.id===n&&r.shift());if(this._active=!1,o){for(;(t=r[0])&&t.id===n&&r.shift();)t.unsubscribe();throw o}}};var Cp=new ir(or);var at=new He(Be),Eu=at;var sr=class extends Be{constructor(t,n){super(t,n),this.scheduler=t,this.work=n}schedule(t,n=0){return n>0?super.schedule(t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)}execute(t,n){return n>0||this.closed?super.execute(t,n):this._execute(t,n)}requestAsyncId(t,n,r=0){return r!=null&&r>0||r==null&&this.delay>0?super.requestAsyncId(t,n,r):(t.flush(this),0)}};var ar=class extends He{};var bp=new ar(sr);function _p(...e){let t=Ie(e);return De(e,t)}function Mp(e,t){let n=g(e)?e:()=>e,r=o=>o.error(n());return new S(t?o=>t.schedule(r,0,o):r)}function xp(e){return!!e&&(e instanceof S||g(e.lift)&&g(e.subscribe))}var ut=Tt(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function Cu(e){return e instanceof Date&&!isNaN(e)}function bu(e,t,n,r,o,i,s,a){let u=[],c=0,l=0,d=!1,p=()=>{d&&!u.length&&!c&&t.complete()},f=m=>c{i&&t.next(m),c++;let A=!1;T(n(m,l++)).subscribe(v(t,b=>{o?.(b),i?f(b):t.next(b)},()=>{A=!0},void 0,()=>{if(A)try{for(c--;u.length&&ch(b)):h(b)}p()}catch(b){t.error(b)}}))};return e.subscribe(v(t,f,()=>{d=!0,p()})),()=>{a?.()}}function le(e,t,n=1/0){return g(t)?le((r,o)=>ve((i,s)=>t(r,i,o,s))(T(e(r,o))),n):(typeof t=="number"&&(n=t),y((r,o)=>bu(r,o,e,n)))}function ln(e=1/0){return le(B,e)}function _u(){return ln(1)}function Pt(...e){return _u()(De(e,Ie(e)))}function Sp(e){return new S(t=>{T(e()).subscribe(t)})}function Tp(...e){let t=Rt(e),{args:n,keys:r}=Un(e),o=new S(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),u=s,c=s;for(let l=0;l{d||(d=!0,c--),a[l]=p},()=>u--,void 0,()=>{(!u||!d)&&(c||i.next(r?tr(r,a):a),i.complete())}))}});return t?o.pipe(Ve(t)):o}var Np=["addListener","removeListener"],Ap=["addEventListener","removeEventListener"],Op=["on","off"];function oi(e,t,n,r){if(g(n)&&(r=n,n=void 0),r)return oi(e,t,n).pipe(Ve(r));let[o,i]=Pp(e)?Ap.map(s=>a=>e[s](t,a,n)):Rp(e)?Np.map(Mu(e,t)):Fp(e)?Op.map(Mu(e,t)):[];if(!o&&Ot(e))return le(s=>oi(s,t,n))(T(e));if(!o)throw new TypeError("Invalid event target");return new S(s=>{let a=(...u)=>s.next(1i(a)})}function Mu(e,t){return n=>r=>e[n](t,r)}function Rp(e){return g(e.addListener)&&g(e.removeListener)}function Fp(e){return g(e.on)&&g(e.off)}function Pp(e){return g(e.addEventListener)&&g(e.removeEventListener)}function ct(e=0,t,n=Eu){let r=-1;return t!=null&&(er(t)?n=t:r=t),new S(o=>{let i=Cu(e)?+e-n.now():e;i<0&&(i=0);let s=0;return n.schedule(function(){o.closed||(o.next(s++),0<=r?this.schedule(void 0,r):o.complete())},i)})}function kp(...e){let t=Ie(e),n=yu(e,1/0),r=e;return r.length?r.length===1?T(r[0]):ln(n)(De(r,t)):it}function lt(e,t){return y((n,r)=>{let o=0;n.subscribe(v(r,i=>e.call(t,i,o++)&&r.next(i)))})}function xu(e){return y((t,n)=>{let r=!1,o=null,i=null,s=!1,a=()=>{if(i?.unsubscribe(),i=null,r){r=!1;let c=o;o=null,n.next(c)}s&&n.complete()},u=()=>{i=null,s&&n.complete()};t.subscribe(v(n,c=>{r=!0,o=c,i||T(e(c)).subscribe(i=v(n,a,u))},()=>{s=!0,(!r||!i||i.closed)&&n.complete()}))})}function Lp(e,t=at){return xu(()=>ct(e,t))}function ii(e){return y((t,n)=>{let r=null,o=!1,i;r=t.subscribe(v(n,void 0,void 0,s=>{i=T(e(s,ii(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function Su(e,t,n,r,o){return(i,s)=>{let a=n,u=t,c=0;i.subscribe(v(s,l=>{let d=c++;u=a?e(u,l,d):(a=!0,l),r&&s.next(u)},o&&(()=>{a&&s.next(u),s.complete()})))}}function jp(e,t){return g(t)?le(e,t,1):le(e,1)}function Tu(e,t=at){return y((n,r)=>{let o=null,i=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let c=i;i=null,r.next(c)}};function u(){let c=s+e,l=t.now();if(l{i=c,s=t.now(),o||(o=t.schedule(u,e),r.add(o))},()=>{a(),r.complete()},void 0,()=>{i=o=null}))})}function dn(e){return y((t,n)=>{let r=!1;t.subscribe(v(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function dt(e){return e<=0?()=>it:y((t,n)=>{let r=0;t.subscribe(v(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function Nu(){return y((e,t)=>{e.subscribe(v(t,tt))})}function si(e){return ve(()=>e)}function ai(e,t){return t?n=>Pt(t.pipe(dt(1),Nu()),n.pipe(ai(e))):le((n,r)=>T(e(n,r)).pipe(dt(1),si(n)))}function Vp(e,t=at){let n=ct(e,t);return ai(()=>n)}function Bp(e,t=B){return e=e??Hp,y((n,r)=>{let o,i=!0;n.subscribe(v(r,s=>{let a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s))}))})}function Hp(e,t){return e===t}function ur(e=$p){return y((t,n)=>{let r=!1;t.subscribe(v(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function $p(){return new ut}function Up(e){return y((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function Au(e,t){let n=arguments.length>=2;return r=>r.pipe(e?lt((o,i)=>e(o,i,r)):B,dt(1),n?dn(t):ur(()=>new ut))}function ui(e){return e<=0?()=>it:y((t,n)=>{let r=[];t.subscribe(v(n,o=>{r.push(o),e{for(let o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function zp(e,t){let n=arguments.length>=2;return r=>r.pipe(e?lt((o,i)=>e(o,i,r)):B,ui(1),n?dn(t):ur(()=>new ut))}function Gp(e=1/0){let t;e&&typeof e=="object"?t=e:t={count:e};let{count:n=1/0,delay:r,resetOnSuccess:o=!1}=t;return n<=0?B:y((i,s)=>{let a=0,u,c=()=>{let l=!1;u=i.subscribe(v(s,d=>{o&&(a=0),s.next(d)},void 0,d=>{if(a++{u?(u.unsubscribe(),u=null,c()):l=!0};if(r!=null){let f=typeof r=="number"?ct(r):T(r(d,a)),h=v(s,()=>{h.unsubscribe(),p()},()=>{s.complete()});f.subscribe(h)}else p()}else s.error(d)})),l&&(u.unsubscribe(),u=null,c())};c()})}function Ou(e,t){return y(Su(e,t,arguments.length>=2,!0))}function li(e={}){let{connector:t=()=>new ie,resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=e;return i=>{let s,a,u,c=0,l=!1,d=!1,p=()=>{a?.unsubscribe(),a=void 0},f=()=>{p(),s=u=void 0,l=d=!1},h=()=>{let m=s;f(),m?.unsubscribe()};return y((m,A)=>{c++,!d&&!l&&p();let b=u=u??t();A.add(()=>{c--,c===0&&!d&&!l&&(a=ci(h,o))}),b.subscribe(A),!s&&c>0&&(s=new Te({next:O=>b.next(O),error:O=>{d=!0,p(),a=ci(f,n,O),b.error(O)},complete:()=>{l=!0,p(),a=ci(f,r),b.complete()}}),T(m).subscribe(s))})(i)}}function ci(e,t,...n){if(t===!0){e();return}if(t===!1)return;let r=new Te({next:()=>{r.unsubscribe(),e()}});return T(t(...n)).subscribe(r)}function Ru(e,t,n){let r,o=!1;return e&&typeof e=="object"?{bufferSize:r=1/0,windowTime:t=1/0,refCount:o=!1,scheduler:n}=e:r=e??1/0,li({connector:()=>new nr(r,t,n),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function Wp(e){return lt((t,n)=>e<=n)}function qp(...e){let t=Ie(e);return y((n,r)=>{(t?Pt(e,n,t):Pt(e,n)).subscribe(r)})}function Fu(e,t){return y((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(v(r,u=>{o?.unsubscribe();let c=0,l=i++;T(e(u,l)).subscribe(o=v(r,d=>r.next(t?t(u,d,l,c++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Zp(e){return y((t,n)=>{T(e).subscribe(v(n,()=>n.complete(),tt)),!n.closed&&t.subscribe(n)})}function Yp(e,t=!1){return y((n,r)=>{let o=0;n.subscribe(v(r,i=>{let s=e(i,o++);(s||t)&&r.next(i),!s&&r.complete()}))})}function Pu(e,t,n){let r=g(e)||t||n?{next:e,error:t,complete:n}:e;return r?y((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(v(i,u=>{var c;(c=r.next)===null||c===void 0||c.call(r,u),i.next(u)},()=>{var u;a=!1,(u=r.complete)===null||u===void 0||u.call(r),i.complete()},u=>{var c;a=!1,(c=r.error)===null||c===void 0||c.call(r,u),i.error(u)},()=>{var u,c;a&&((u=r.unsubscribe)===null||u===void 0||u.call(r)),(c=r.finalize)===null||c===void 0||c.call(r)}))}):B}function ku(e,t){return Object.is(e,t)}var j=null,fn=!1,cr=1,se=Symbol("SIGNAL");function _(e){let t=j;return j=e,t}function Lu(){return j}function Qp(){return fn}var kt={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function hi(e){if(fn)throw new Error("");if(j===null)return;j.consumerOnSignalRead(e);let t=j.nextProducerIndex++;if(gr(j),te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function fr(e){gr(e);for(let t=0;t0}function gr(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function Uu(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function zu(e){return e.producerNode!==void 0}function gi(e){let t=Object.create(Jp);t.computation=e;let n=()=>{if(ju(t),hi(t),t.value===lr)throw t.error;return t.value};return n[se]=t,n}var di=Symbol("UNSET"),fi=Symbol("COMPUTING"),lr=Symbol("ERRORED"),Jp=ye(me({},kt),{value:di,dirty:!0,error:null,equal:ku,producerMustRecompute(e){return e.value===di||e.value===fi},producerRecomputeValue(e){if(e.value===fi)throw new Error("Detected cycle in computations.");let t=e.value;e.value=fi;let n=hn(e),r;try{r=e.computation()}catch(o){r=lr,e.error=o}finally{dr(e,n)}if(t!==di&&t!==lr&&r!==lr&&e.equal(t,r)){e.value=t;return}e.value=r,e.version++}});function Xp(){throw new Error}var Gu=Xp;function Wu(){Gu()}function qu(e){Gu=e}var eh=null;function Zu(e){let t=Object.create(Qu);t.value=e;let n=()=>(hi(t),t.value);return n[se]=t,n}function mi(e,t){Bu()||Wu(),e.equal(e.value,t)||(e.value=t,th(e))}function Yu(e,t){Bu()||Wu(),mi(e,t(e.value))}var Qu=ye(me({},kt),{equal:ku,value:void 0});function th(e){e.version++,Kp(),Vu(e),eh?.()}function Ku(e,t,n){let r=Object.create(nh);n&&(r.consumerAllowSignalWrites=!0),r.fn=e,r.schedule=t;let o=u=>{r.cleanupFn=u};function i(u){return u.fn===null&&u.schedule===null}function s(u){i(u)||(pr(u),u.cleanupFn(),u.fn=null,u.schedule=null,u.cleanupFn=pi)}let a=()=>{if(r.fn===null)return;if(Qp())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(r.dirty=!1,r.hasRun&&!fr(r))return;r.hasRun=!0;let u=hn(r);try{r.cleanupFn(),r.cleanupFn=pi,r.fn(o)}finally{dr(r,u)}};return r.ref={notify:()=>Hu(r),run:a,cleanup:()=>r.cleanupFn(),destroy:()=>s(r),[se]:r},r.ref}var pi=()=>{},nh=ye(me({},kt),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{e.schedule!==null&&e.schedule(e.ref)},hasRun:!1,cleanupFn:pi});var $c="https://g.co/ng/security#xss",x=class extends Error{constructor(t,n){super(Uc(t,n)),this.code=t}};function Uc(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}function _n(e){return{toString:e}.toString()}var mr="__parameters__";function rh(e){return function(...n){if(e){let r=e(...n);for(let o in r)this[o]=r[o]}}}function zc(e,t,n){return _n(()=>{let r=rh(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;let s=new o(...i);return a.annotation=s,a;function a(u,c,l){let d=u.hasOwnProperty(mr)?u[mr]:Object.defineProperty(u,mr,{value:[]})[mr];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),u}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}var Ue=globalThis;function R(e){for(let t in e)if(e[t]===R)return t;throw Error("Could not find renamed property on target object.")}function oh(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function J(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(J).join(", ")+"]";if(e==null)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;let t=e.toString();if(t==null)return""+t;let n=t.indexOf(` -`);return n===-1?t:t.substring(0,n)}function Ai(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var ih=R({__forward_ref__:R});function Gc(e){return e.__forward_ref__=Gc,e.toString=function(){return J(this())},e}function H(e){return Wc(e)?e():e}function Wc(e){return typeof e=="function"&&e.hasOwnProperty(ih)&&e.__forward_ref__===Gc}function F(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function qc(e){return{providers:e.providers||[],imports:e.imports||[]}}function io(e){return Ju(e,Zc)||Ju(e,Yc)}function AS(e){return io(e)!==null}function Ju(e,t){return e.hasOwnProperty(t)?e[t]:null}function sh(e){let t=e&&(e[Zc]||e[Yc]);return t||null}function Xu(e){return e&&(e.hasOwnProperty(ec)||e.hasOwnProperty(ah))?e[ec]:null}var Zc=R({\u0275prov:R}),ec=R({\u0275inj:R}),Yc=R({ngInjectableDef:R}),ah=R({ngInjectorDef:R}),N=class{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=F({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Qc(e){return e&&!!e.\u0275providers}var uh=R({\u0275cmp:R}),ch=R({\u0275dir:R}),lh=R({\u0275pipe:R}),dh=R({\u0275mod:R}),Nr=R({\u0275fac:R}),mn=R({__NG_ELEMENT_ID__:R}),tc=R({__NG_ENV_ID__:R});function ht(e){return typeof e=="string"?e:e==null?"":String(e)}function fh(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():ht(e)}function ph(e,t){let n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new x(-200,e)}function zs(e,t){throw new x(-201,!1)}var M=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(M||{}),Oi;function Kc(){return Oi}function K(e){let t=Oi;return Oi=e,t}function Jc(e,t,n){let r=io(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&M.Optional)return null;if(t!==void 0)return t;zs(e,"Injector")}var hh={},yn=hh,Ri="__NG_DI_FLAG__",Ar="ngTempTokenPath",gh="ngTokenPath",mh=/\n/gm,yh="\u0275",nc="__source",Ht;function vh(){return Ht}function $e(e){let t=Ht;return Ht=e,t}function Dh(e,t=M.Default){if(Ht===void 0)throw new x(-203,!1);return Ht===null?Jc(e,void 0,t):Ht.get(e,t&M.Optional?null:void 0,t)}function G(e,t=M.Default){return(Kc()||Dh)(H(e),t)}function D(e,t=M.Default){return G(e,so(t))}function so(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Fi(e){let t=[];for(let n=0;n ");else if(typeof t=="object"){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):J(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(mh,` - `)}`}var Ch=Xc(zc("Optional"),8);var bh=Xc(zc("SkipSelf"),4);function gt(e,t){let n=e.hasOwnProperty(Nr);return n?e[Nr]:null}function _h(e,t,n){if(e.length!==t.length)return!1;for(let r=0;rArray.isArray(n)?Gs(n,t):t(n))}function el(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Or(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function xh(e,t){let n=[];for(let r=0;rt;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function ao(e,t,n){let r=Mn(e,t);return r>=0?e[r|1]=n:(r=~r,Sh(e,r,t,n)),r}function yi(e,t){let n=Mn(e,t);if(n>=0)return e[n|1]}function Mn(e,t){return Th(e,t,1)}function Th(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<t?o=i:r=i+1}return~(o<t){s=i-1;break}}}for(;i-1){let i;for(;++oi?d="":d=o[l+1].toLowerCase(),r&2&&c!==d){if(de(r))return!1;s=!0}}}}return de(r)||s}function de(e){return(e&1)===0}function Ph(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!de(s)&&(t+=oc(i,o),o=""),r=s,i=i||!de(r);n++}return o!==""&&(t+=oc(i,o)),t}function Hh(e){return e.map(Bh).join(",")}function $h(e){let t=[],n=[],r=1,o=2;for(;r{let t=ll(e),n=ye(me({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===rl.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||vn.Emulated,styles:e.styles||Z,_:null,schemas:e.schemas||null,tView:null,id:""});dl(n);let r=e.dependencies;return n.directiveDefs=sc(r,!1),n.pipeDefs=sc(r,!0),n.id=Wh(n),n})}function Uh(e){return qe(e)||qs(e)}function zh(e){return e!==null}function al(e){return _n(()=>({type:e.type,bootstrap:e.bootstrap||Z,declarations:e.declarations||Z,imports:e.imports||Z,exports:e.exports||Z,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function ic(e,t){if(e==null)return Ne;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a=We.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),t?(n[i]=a!==We.None?[r,a]:r,t[i]=s):n[i]=r}return n}function uo(e){return _n(()=>{let t=ll(e);return dl(t),t})}function co(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone===!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function qe(e){return e[uh]||null}function qs(e){return e[ch]||null}function ul(e){return e[lh]||null}function Gh(e){let t=qe(e)||qs(e)||ul(e);return t!==null?t.standalone:!1}function cl(e,t){let n=e[dh]||null;if(!n&&t===!0)throw new Error(`Type ${J(e)} does not have '\u0275mod' property.`);return n}function ll(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||Ne,exportAs:e.exportAs||null,standalone:e.standalone===!0,signals:e.signals===!0,selectors:e.selectors||Z,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:ic(e.inputs,t),outputs:ic(e.outputs),debugInfo:null}}function dl(e){e.features?.forEach(t=>t(e))}function sc(e,t){if(!e)return null;let n=t?ul:Uh;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(zh)}function Wh(e){let t=0,n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(let o of n)t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function qh(e){return{\u0275providers:e}}function Zh(...e){return{\u0275providers:fl(!0,e),\u0275fromNgModule:!0}}function fl(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return Gs(t,s=>{let a=s;ki(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&pl(o,i),n}function pl(e,t){for(let n=0;n{t(i,r)})}}function ki(e,t,n,r){if(e=H(e),!e)return!1;let o=null,i=Xu(e),s=!i&&qe(e);if(!i&&!s){let u=e.ngModule;if(i=Xu(u),i)o=u;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let u=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of u)ki(c,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let c;try{Gs(i.imports,l=>{ki(l,t,n,r)&&(c||=[],c.push(l))})}finally{}c!==void 0&&pl(c,t)}if(!a){let c=gt(o)||(()=>new o);t({provide:o,useFactory:c,deps:Z},o),t({provide:nl,useValue:o,multi:!0},o),t({provide:Rr,useValue:()=>G(o),multi:!0},o)}let u=i.providers;if(u!=null&&!a){let c=e;Zs(u,l=>{t(l,c)})}}else return!1;return o!==e&&e.providers!==void 0}function Zs(e,t){for(let n of e)Qc(n)&&(n=n.\u0275providers),Array.isArray(n)?Zs(n,t):t(n)}var Yh=R({provide:String,useValue:R});function hl(e){return e!==null&&typeof e=="object"&&Yh in e}function Qh(e){return!!(e&&e.useExisting)}function Kh(e){return!!(e&&e.useFactory)}function Ut(e){return typeof e=="function"}function Jh(e){return!!e.useClass}var gl=new N(""),Cr={},Xh={},vi;function Ys(){return vi===void 0&&(vi=new Fr),vi}var Ze=class{},In=class extends Ze{get destroyed(){return this._destroyed}constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,ji(t,s=>this.processProvider(s)),this.records.set(tl,Lt(void 0,this)),o.has("environment")&&this.records.set(Ze,Lt(void 0,this));let i=this.records.get(gl);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(nl,Z,M.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let t=_(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),_(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();let n=$e(this),r=K(void 0),o;try{return t()}finally{$e(n),K(r)}}get(t,n=yn,r=M.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(tc))return t[tc](this);r=so(r);let o,i=$e(this),s=K(void 0);try{if(!(r&M.SkipSelf)){let u=this.records.get(t);if(u===void 0){let c=og(t)&&io(t);c&&this.injectableDefInScope(c)?u=Lt(Li(t),Cr):u=null,this.records.set(t,u)}if(u!=null)return this.hydrate(t,u)}let a=r&M.Self?Ys():this.parent;return n=r&M.Optional&&n===yn?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[Ar]=a[Ar]||[]).unshift(J(t)),i)throw a;return wh(a,t,"R3InjectorError",this.source)}else throw a}finally{K(s),$e(i)}}resolveInjectorInitializers(){let t=_(null),n=$e(this),r=K(void 0),o;try{let i=this.get(Rr,Z,M.Self);for(let s of i)s()}finally{$e(n),K(r),_(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(J(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new x(205,!1)}processProvider(t){t=H(t);let n=Ut(t)?t:H(t&&t.provide),r=tg(t);if(!Ut(t)&&t.multi===!0){let o=this.records.get(n);o||(o=Lt(void 0,Cr,!0),o.factory=()=>Fi(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=_(null);try{return n.value===Cr&&(n.value=Xh,n.value=n.factory()),typeof n.value=="object"&&n.value&&rg(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{_(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=H(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function Li(e){let t=io(e),n=t!==null?t.factory:gt(e);if(n!==null)return n;if(e instanceof N)throw new x(204,!1);if(e instanceof Function)return eg(e);throw new x(204,!1)}function eg(e){if(e.length>0)throw new x(204,!1);let n=sh(e);return n!==null?()=>n.factory(e):()=>new e}function tg(e){if(hl(e))return Lt(void 0,e.useValue);{let t=ml(e);return Lt(t,Cr)}}function ml(e,t,n){let r;if(Ut(e)){let o=H(e);return gt(o)||Li(o)}else if(hl(e))r=()=>H(e.useValue);else if(Kh(e))r=()=>e.useFactory(...Fi(e.deps||[]));else if(Qh(e))r=()=>G(H(e.useExisting));else{let o=H(e&&(e.useClass||e.provide));if(ng(e))r=()=>new o(...Fi(e.deps));else return gt(o)||Li(o)}return r}function Lt(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function ng(e){return!!e.deps}function rg(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function og(e){return typeof e=="function"||typeof e=="object"&&e instanceof N}function ji(e,t){for(let n of e)Array.isArray(n)?ji(n,t):n&&Qc(n)?ji(n.\u0275providers,t):t(n)}function RS(e,t){e instanceof In&&e.assertNotDestroyed();let n,r=$e(e),o=K(void 0);try{return t()}finally{$e(r),K(o)}}function yl(){return Kc()!==void 0||vh()!=null}function Qs(e){if(!yl())throw new x(-203,!1)}function ig(e){return typeof e=="function"}var Me=0,E=1,w=2,W=3,he=4,X=5,zt=6,Pr=7,U=8,Gt=9,Ce=10,k=11,wn=12,ac=13,Xt=14,ne=15,mt=16,jt=17,Ae=18,lo=19,vl=20,ze=21,br=22,ae=23,V=25,Ks=1;var yt=7,kr=8,Wt=9,z=10,Lr=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Lr||{});function Ge(e){return Array.isArray(e)&&typeof e[Ks]=="object"}function Fe(e){return Array.isArray(e)&&e[Ks]===!0}function Js(e){return(e.flags&4)!==0}function fo(e){return e.componentOffset>-1}function po(e){return(e.flags&1)===1}function Oe(e){return!!e.template}function Vi(e){return(e[w]&512)!==0}var Bi=class{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Dl(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function ho(){return Il}function Il(e){return e.type.prototype.ngOnChanges&&(e.setInput=ag),sg}ho.ngInherit=!0;function sg(){let e=El(this),t=e?.current;if(t){let n=e.previous;if(n===Ne)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function ag(e,t,n,r,o){let i=this.declaredInputs[r],s=El(e)||ug(e,{previous:Ne,current:null}),a=s.current||(s.current={}),u=s.previous,c=u[i];a[i]=new Bi(c&&c.currentValue,n,u===Ne),Dl(e,t,o,n)}var wl="__ngSimpleChanges__";function El(e){return e[wl]||null}function ug(e,t){return e[wl]=t}var uc=null;var we=function(e,t,n){uc?.(e,t,n)},Cl="svg",cg="math";function be(e){for(;Array.isArray(e);)e=e[Me];return e}function lg(e){for(;Array.isArray(e);){if(typeof e[Ks]=="object")return e;e=e[Me]}return null}function bl(e,t){return be(t[e])}function ue(e,t){return be(t[e.index])}function Xs(e,t){return e.data[t]}function ea(e,t){return e[t]}function Je(e,t){let n=t[e];return Ge(n)?n:n[Me]}function dg(e){return(e[w]&4)===4}function ta(e){return(e[w]&128)===128}function fg(e){return Fe(e[W])}function Ye(e,t){return t==null?null:e[t]}function _l(e){e[jt]=0}function Ml(e){e[w]&1024||(e[w]|=1024,ta(e)&&mo(e))}function pg(e,t){for(;e>0;)t=t[Xt],e--;return t}function go(e){return!!(e[w]&9216||e[ae]?.dirty)}function Hi(e){e[Ce].changeDetectionScheduler?.notify(8),e[w]&64&&(e[w]|=1024),go(e)&&mo(e)}function mo(e){e[Ce].changeDetectionScheduler?.notify(0);let t=vt(e);for(;t!==null&&!(t[w]&8192||(t[w]|=8192,!ta(t)));)t=vt(t)}function xl(e,t){if((e[w]&256)===256)throw new x(911,!1);e[ze]===null&&(e[ze]=[]),e[ze].push(t)}function hg(e,t){if(e[ze]===null)return;let n=e[ze].indexOf(t);n!==-1&&e[ze].splice(n,1)}function vt(e){let t=e[W];return Fe(t)?t[W]:t}var C={lFrame:Pl(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Sl=!1;function gg(){return C.lFrame.elementDepthCount}function mg(){C.lFrame.elementDepthCount++}function yg(){C.lFrame.elementDepthCount--}function Tl(){return C.bindingsEnabled}function Nl(){return C.skipHydrationRootTNode!==null}function vg(e){return C.skipHydrationRootTNode===e}function Dg(){C.skipHydrationRootTNode=null}function I(){return C.lFrame.lView}function P(){return C.lFrame.tView}function FS(e){return C.lFrame.contextLView=e,e[U]}function PS(e){return C.lFrame.contextLView=null,e}function $(){let e=Al();for(;e!==null&&e.type===64;)e=e.parent;return e}function Al(){return C.lFrame.currentTNode}function Ig(){let e=C.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function _t(e,t){let n=C.lFrame;n.currentTNode=e,n.isParent=t}function na(){return C.lFrame.isParent}function ra(){C.lFrame.isParent=!1}function wg(){return C.lFrame.contextLView}function Ol(){return Sl}function cc(e){Sl=e}function en(){let e=C.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Eg(){return C.lFrame.bindingIndex}function Cg(e){return C.lFrame.bindingIndex=e}function Mt(){return C.lFrame.bindingIndex++}function oa(e){let t=C.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function bg(){return C.lFrame.inI18n}function _g(e,t){let n=C.lFrame;n.bindingIndex=n.bindingRootIndex=e,$i(t)}function Mg(){return C.lFrame.currentDirectiveIndex}function $i(e){C.lFrame.currentDirectiveIndex=e}function ia(e){let t=C.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function sa(){return C.lFrame.currentQueryIndex}function yo(e){C.lFrame.currentQueryIndex=e}function xg(e){let t=e[E];return t.type===2?t.declTNode:t.type===1?e[X]:null}function Rl(e,t,n){if(n&M.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&M.Host);)if(o=xg(i),o===null||(i=i[Xt],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=C.lFrame=Fl();return r.currentTNode=t,r.lView=e,!0}function aa(e){let t=Fl(),n=e[E];C.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Fl(){let e=C.lFrame,t=e===null?null:e.child;return t===null?Pl(e):t}function Pl(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function kl(){let e=C.lFrame;return C.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Ll=kl;function ua(){let e=kl();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Sg(e){return(C.lFrame.contextLView=pg(e,C.lFrame.contextLView))[U]}function Pe(){return C.lFrame.selectedIndex}function Dt(e){C.lFrame.selectedIndex=e}function xn(){let e=C.lFrame;return Xs(e.tView,e.selectedIndex)}function kS(){C.lFrame.currentNamespace=Cl}function LS(){Tg()}function Tg(){C.lFrame.currentNamespace=null}function Ng(){return C.lFrame.currentNamespace}var jl=!0;function vo(){return jl}function Do(e){jl=e}function Ag(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=Il(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function Io(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[u]<0&&(e[jt]+=65536),(a>14>16&&(e[w]&3)===t&&(e[w]+=16384,lc(a,i)):lc(a,i)}var $t=-1,It=class{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}};function Rg(e){return e instanceof It}function Fg(e){return(e.flags&8)!==0}function Pg(e){return(e.flags&16)!==0}var Ii={},Ui=class{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=so(r);let o=this.injector.get(t,Ii,r);return o!==Ii||n===Ii?o:this.parentInjector.get(t,n,r)}};function Bl(e){return e!==$t}function jr(e){return e&32767}function kg(e){return e>>16}function Vr(e,t){let n=kg(e),r=t;for(;n>0;)r=r[Xt],n--;return r}var zi=!0;function Br(e){let t=zi;return zi=e,t}var Lg=256,Hl=Lg-1,$l=5,jg=0,Ee={};function Vg(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(mn)&&(r=n[mn]),r==null&&(r=n[mn]=jg++);let o=r&Hl,i=1<>$l)]|=i}function Hr(e,t){let n=Ul(e,t);if(n!==-1)return n;let r=t[E];r.firstCreatePass&&(e.injectorIndex=t.length,wi(r.data,e),wi(t,null),wi(r.blueprint,null));let o=ca(e,t),i=e.injectorIndex;if(Bl(o)){let s=jr(o),a=Vr(o,t),u=a[E].data;for(let c=0;c<8;c++)t[i+c]=a[s+c]|u[s+c]}return t[i+8]=o,i}function wi(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Ul(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function ca(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=Zl(o),r===null)return $t;if(n++,o=o[Xt],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return $t}function Gi(e,t,n){Vg(e,t,n)}function Bg(e,t){if(t==="class")return e.classes;if(t==="style")return e.styles;let n=e.attrs;if(n){let r=n.length,o=0;for(;o>20,d=r?a:a+l,p=o?a+l:c;for(let f=d;f=u&&h.type===n)return f}if(o){let f=s[u];if(f&&Oe(f)&&f.type===n)return u}return null}function wt(e,t,n,r){let o=e[n],i=t.data;if(Rg(o)){let s=o;s.resolving&&ph(fh(i[n]));let a=Br(s.canSeeViewProviders);s.resolving=!0;let u,c=s.injectImpl?K(s.injectImpl):null,l=Rl(e,r,M.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&Ag(n,i[n],t)}finally{c!==null&&K(c),Br(a),s.resolving=!1,Ll()}}return o}function $g(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(mn)?e[mn]:void 0;return typeof t=="number"?t>=0?t&Hl:Ug:t}function dc(e,t,n){let r=1<>$l)]&r)}function fc(e,t){return!(e&M.Self)&&!(e&M.Host&&t)}var pt=class{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Wl(this._tNode,this._lView,t,so(r),n)}};function Ug(){return new pt($(),I())}function jS(e){return _n(()=>{let t=e.prototype.constructor,n=t[Nr]||Wi(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[Nr]||Wi(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Wi(e){return Wc(e)?()=>{let t=Wi(H(e));return t&&t()}:gt(e)}function zg(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[w]&2048&&!(s[w]&512);){let a=ql(i,s,n,r|M.Self,Ee);if(a!==Ee)return a;let u=i.parent;if(!u){let c=s[vl];if(c){let l=c.get(n,Ee,r);if(l!==Ee)return l}u=Zl(s),s=s[Xt]}i=u}return o}function Zl(e){let t=e[E],n=t.type;return n===2?t.declTNode:n===1?e[X]:null}function Gg(e){return Bg($(),e)}function pc(e,t=null,n=null,r){let o=Yl(e,t,n,r);return o.resolveInjectorInitializers(),o}function Yl(e,t=null,n=null,r,o=new Set){let i=[n||Z,Zh(e)];return r=r||(typeof e=="object"?void 0:J(e)),new In(i,t||Ys(),r||null,o)}var _e=class e{static{this.THROW_IF_NOT_FOUND=yn}static{this.NULL=new Fr}static create(t,n){if(Array.isArray(t))return pc({name:""},n,t,"");{let r=t.name??"";return pc({name:r},t.parent,t.providers,r)}}static{this.\u0275prov=F({token:e,providedIn:"any",factory:()=>G(tl)})}static{this.__NG_ELEMENT_ID__=-1}};var Wg=new N("");Wg.__NG_ELEMENT_ID__=e=>{let t=$();if(t===null)throw new x(204,!1);if(t.type&2)return t.value;if(e&M.Optional)return null;throw new x(204,!1)};var qg="ngOriginalError";function Ei(e){return e[qg]}var Ql=!0,wo=(()=>{class e{static{this.__NG_ELEMENT_ID__=Zg}static{this.__NG_ENV_ID__=n=>n}}return e})(),qi=class extends wo{constructor(t){super(),this._lView=t}onDestroy(t){return xl(this._lView,t),()=>hg(this._lView,t)}};function Zg(){return new qi(I())}var Sn=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new on(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static{this.\u0275prov=F({token:e,providedIn:"root",factory:()=>new e})}}return e})();var Zi=class extends ie{constructor(t=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=t,yl()&&(this.destroyRef=D(wo,{optional:!0})??void 0,this.pendingTasks=D(Sn,{optional:!0})??void 0)}emit(t){let n=_(null);try{super.next(t)}finally{_(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let u=t;o=u.next?.bind(u),i=u.error?.bind(u),s=u.complete?.bind(u)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof L&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{t(n),r!==void 0&&this.pendingTasks?.remove(r)})}}},pe=Zi;function $r(...e){}function Kl(e){let t,n;function r(){e=$r;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function hc(e){return queueMicrotask(()=>e()),()=>{e=$r}}var la="isAngularZone",Ur=la+"_ID",Yg=0,Y=class e{constructor(t){this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new pe(!1),this.onMicrotaskEmpty=new pe(!1),this.onStable=new pe(!1),this.onError=new pe(!1);let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=Ql}=t;if(typeof Zone>"u")throw new x(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,Jg(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(la)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new x(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new x(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,Qg,$r,$r);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},Qg={};function da(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Kg(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){Kl(()=>{e.callbackScheduled=!1,Yi(e),e.isCheckStableRunning=!0,da(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Yi(e)}function Jg(e){let t=()=>{Kg(e)},n=Yg++;e._inner=e._inner.fork({name:"angular",properties:{[la]:!0,[Ur]:n,[Ur+n]:!0},onInvokeTask:(r,o,i,s,a,u)=>{if(Xg(u))return r.invokeTask(i,s,a,u);try{return gc(e),r.invokeTask(i,s,a,u)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),mc(e)}},onInvoke:(r,o,i,s,a,u,c)=>{try{return gc(e),r.invoke(i,s,a,u,c)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!em(u)&&t(),mc(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Yi(e),da(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function Yi(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function gc(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function mc(e){e._nesting--,da(e)}var Qi=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new pe,this.onMicrotaskEmpty=new pe,this.onStable=new pe,this.onError=new pe}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function Xg(e){return Jl(e,"__ignore_ng_zone__")}function em(e){return Jl(e,"__scheduler_tick__")}function Jl(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var Et=class{constructor(){this._console=console}handleError(t){let n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Ei(t);for(;n&&Ei(n);)n=Ei(n);return n||null}},tm=new N("",{providedIn:"root",factory:()=>{let e=D(Y),t=D(Et);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function nm(){return tn($(),I())}function tn(e,t){return new Xe(ue(e,t))}var Xe=(()=>{class e{constructor(n){this.nativeElement=n}static{this.__NG_ELEMENT_ID__=nm}}return e})();function Xl(e){return e instanceof Xe?e.nativeElement:e}function rm(){return this._results[Symbol.iterator]()}var Ki=class e{get changes(){return this._changes??=new pe}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let n=e.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=rm)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;let r=Mh(t);(this._changesDetected=!_h(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function ed(e){return(e.flags&128)===128}var td=new Map,om=0;function im(){return om++}function sm(e){td.set(e[lo],e)}function Ji(e){td.delete(e[lo])}var yc="__ngContext__";function Qe(e,t){Ge(t)?(e[yc]=t[lo],sm(t)):e[yc]=t}function nd(e){return od(e[wn])}function rd(e){return od(e[he])}function od(e){for(;e!==null&&!Fe(e);)e=e[he];return e}var Xi;function VS(e){Xi=e}function id(){if(Xi!==void 0)return Xi;if(typeof document<"u")return document;throw new x(210,!1)}var BS=new N("",{providedIn:"root",factory:()=>am}),am="ng",um=new N(""),Eo=new N("",{providedIn:"platform",factory:()=>"unknown"});var HS=new N(""),$S=new N("",{providedIn:"root",factory:()=>id().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),fa={breakpoints:[16,32,48,64,96,128,256,384,640,750,828,1080,1200,1920,2048,3840],placeholderResolution:30,disableImageSizeWarning:!1,disableImageLazyLoadWarning:!1},sd=new N("",{providedIn:"root",factory:()=>fa});var cm="h",lm="b";var dm=()=>null;function pa(e,t,n=!1){return dm(e,t,n)}var ad=!1,fm=new N("",{providedIn:"root",factory:()=>ad});var yr;function pm(){if(yr===void 0&&(yr=null,Ue.trustedTypes))try{yr=Ue.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return yr}function Co(e){return pm()?.createHTML(e)||e}var vr;function ud(){if(vr===void 0&&(vr=null,Ue.trustedTypes))try{vr=Ue.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return vr}function vc(e){return ud()?.createHTML(e)||e}function Dc(e){return ud()?.createScriptURL(e)||e}var Re=class{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${$c})`}},es=class extends Re{getTypeName(){return"HTML"}},ts=class extends Re{getTypeName(){return"Style"}},ns=class extends Re{getTypeName(){return"Script"}},rs=class extends Re{getTypeName(){return"URL"}},os=class extends Re{getTypeName(){return"ResourceURL"}};function xt(e){return e instanceof Re?e.changingThisBreaksApplicationSecurity:e}function ha(e,t){let n=hm(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${$c})`)}return n===t}function hm(e){return e instanceof Re&&e.getTypeName()||null}function US(e){return new es(e)}function zS(e){return new ts(e)}function GS(e){return new ns(e)}function WS(e){return new rs(e)}function qS(e){return new os(e)}function gm(e){let t=new ss(e);return mm()?new is(t):t}var is=class{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{let n=new window.DOMParser().parseFromString(Co(t),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch{return null}}},ss=class{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){let n=this.inertDocument.createElement("template");return n.innerHTML=Co(t),n}};function mm(){try{return!!new window.DOMParser().parseFromString(Co(""),"text/html")}catch{return!1}}var ym=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function cd(e){return e=String(e),e.match(ym)?e:"unsafe:"+e}function ke(e){let t={};for(let n of e.split(","))t[n]=!0;return t}function Tn(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}var ld=ke("area,br,col,hr,img,wbr"),dd=ke("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),fd=ke("rp,rt"),vm=Tn(fd,dd),Dm=Tn(dd,ke("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Im=Tn(fd,ke("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Ic=Tn(ld,Dm,Im,vm),pd=ke("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),wm=ke("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Em=ke("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),Cm=Tn(pd,wm,Em),bm=ke("script,style,template"),as=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,r=!0,o=[];for(;n;){if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild){o.push(n),n=xm(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=Mm(n);if(i){n=i;break}n=o.pop()}}return this.buf.join("")}startElement(t){let n=wc(t).toLowerCase();if(!Ic.hasOwnProperty(n))return this.sanitizedSomething=!0,!bm.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);let r=t.attributes;for(let o=0;o"),!0}endElement(t){let n=wc(t).toLowerCase();Ic.hasOwnProperty(n)&&!ld.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(Ec(t))}};function _m(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function Mm(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw hd(t);return t}function xm(e){let t=e.firstChild;if(t&&_m(e,t))throw hd(t);return t}function wc(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function hd(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var Sm=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Tm=/([^\#-~ |!])/g;function Ec(e){return e.replace(/&/g,"&").replace(Sm,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(Tm,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}var Dr;function Nm(e,t){let n=null;try{Dr=Dr||gm(e);let r=t?String(t):"";n=Dr.getInertBodyElement(r);let o=5,i=r;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=Dr.getInertBodyElement(r)}while(r!==i);let a=new as().sanitizeChildren(Cc(n)||n);return Co(a)}finally{if(n){let r=Cc(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function Cc(e){return"content"in e&&Am(e)?e.content:null}function Am(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var bo=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(bo||{});function ZS(e){let t=ga();return t?vc(t.sanitize(bo.HTML,e)||""):ha(e,"HTML")?vc(xt(e)):Nm(id(),ht(e))}function Om(e){let t=ga();return t?t.sanitize(bo.URL,e)||"":ha(e,"URL")?xt(e):cd(ht(e))}function Rm(e){let t=ga();if(t)return Dc(t.sanitize(bo.RESOURCE_URL,e)||"");if(ha(e,"ResourceURL"))return Dc(xt(e));throw new x(904,!1)}function Fm(e,t){return t==="src"&&(e==="embed"||e==="frame"||e==="iframe"||e==="media"||e==="script")||t==="href"&&(e==="base"||e==="link")?Rm:Om}function YS(e,t,n){return Fm(t,n)(e)}function ga(){let e=I();return e&&e[Ce].sanitizer}var Pm=/^>|^->||--!>|)/g,Lm="\u200B$1\u200B";function jm(e){return e.replace(Pm,t=>t.replace(km,Lm))}function gd(e){return e instanceof Function?e():e}function md(e){return(e??D(_e)).get(Eo)==="browser"}var zr=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(zr||{}),Vm;function ma(e,t){return Vm(e,t)}function Vt(e,t,n,r,o){if(r!=null){let i,s=!1;Fe(r)?i=r:Ge(r)&&(s=!0,r=r[Me]);let a=be(r);e===0&&n!==null?o==null?wd(t,n,a):Gr(t,n,a,o||null,!0):e===1&&n!==null?Gr(t,n,a,o||null,!0):e===2?Xm(t,a,s):e===3&&t.destroyNode(a),i!=null&&ty(t,e,i,n,o)}}function Bm(e,t){return e.createText(t)}function Hm(e,t,n){e.setValue(t,n)}function $m(e,t){return e.createComment(jm(t))}function yd(e,t,n){return e.createElement(t,n)}function Um(e,t){vd(e,t),t[Me]=null,t[X]=null}function zm(e,t,n,r,o,i){r[Me]=o,r[X]=t,xo(e,r,n,1,o,i)}function vd(e,t){t[Ce].changeDetectionScheduler?.notify(9),xo(e,t,t[k],2,null,null)}function Gm(e){let t=e[wn];if(!t)return Ci(e[E],e);for(;t;){let n=null;if(Ge(t))n=t[wn];else{let r=t[z];r&&(n=r)}if(!n){for(;t&&!t[he]&&t!==e;)Ge(t)&&Ci(t[E],t),t=t[W];t===null&&(t=e),Ge(t)&&Ci(t[E],t),n=t&&t[he]}t=n}}function Wm(e,t,n,r){let o=z+r,i=n.length;r>0&&(n[o-1][he]=t),r0&&(e[n-1][he]=r[he]);let i=Or(e,z+t);Um(r[E],r);let s=i[Ae];s!==null&&s.detachView(i[E]),r[W]=null,r[he]=null,r[w]&=-129}return r}function _o(e,t){if(!(t[w]&256)){let n=t[k];n.destroyNode&&xo(e,t,n,3,null,null),Gm(t)}}function Ci(e,t){if(t[w]&256)return;let n=_(null);try{t[w]&=-129,t[w]|=256,t[ae]&&pr(t[ae]),Zm(e,t),qm(e,t),t[E].type===1&&t[k].destroy();let r=t[mt];if(r!==null&&Fe(t[W])){r!==t[W]&&ya(r,t);let o=t[Ae];o!==null&&o.detachView(e)}Ji(t)}finally{_(n)}}function qm(e,t){let n=e.cleanup,r=t[Pr];if(n!==null)for(let i=0;i=0?r[s]():r[-s].unsubscribe(),i+=2}else{let s=r[n[i+1]];n[i].call(s)}r!==null&&(t[Pr]=null);let o=t[ze];if(o!==null){t[ze]=null;for(let i=0;i-1){let{encapsulation:i}=e.data[r.directiveStart+o];if(i===vn.None||i===vn.Emulated)return null}return ue(r,n)}}function Gr(e,t,n,r,o){e.insertBefore(t,n,r,o)}function wd(e,t,n){e.appendChild(t,n)}function bc(e,t,n,r,o){r!==null?Gr(e,t,n,r,o):wd(e,t,n)}function Ed(e,t){return e.parentNode(t)}function Qm(e,t){return e.nextSibling(t)}function Cd(e,t,n){return Jm(e,t,n)}function Km(e,t,n){return e.type&40?ue(e,n):null}var Jm=Km,_c;function Mo(e,t,n,r){let o=Id(e,r,t),i=t[k],s=r.parent||t[X],a=Cd(s,r,t);if(o!=null)if(Array.isArray(n))for(let u=0;uV&&Sd(e,t,V,!1),we(s?2:0,o),n(r,o)}finally{Dt(i),we(s?3:1,o)}}function Da(e,t,n){if(Js(t)){let r=_(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;snull;function ly(e,t,n,r){let o=Ld(t);o.push(n),e.firstCreatePass&&jd(e).push(r,o.length-1)}function dy(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return Nl()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Mc(e,t,n,r,o){for(let i in t){if(!t.hasOwnProperty(i))continue;let s=t[i];if(s===void 0)continue;r??={};let a,u=We.None;Array.isArray(s)?(a=s[0],u=s[1]):a=s;let c=i;if(o!==null){if(!o.hasOwnProperty(i))continue;c=o[i]}e===0?xc(r,n,c,a,u):xc(r,n,c,a)}return r}function xc(e,t,n,r,o){let i;e.hasOwnProperty(n)?(i=e[n]).push(t,r):i=e[n]=[t,r],o!==void 0&&i.push(o)}function fy(e,t,n){let r=t.directiveStart,o=t.directiveEnd,i=e.data,s=t.attrs,a=[],u=null,c=null;for(let l=r;l0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function yy(e,t,n,r){let o=n.directiveStart,i=n.directiveEnd;fo(n)&&by(t,n,e.data[o+n.componentOffset]),e.firstCreatePass||Hr(n,t),Qe(r,t);let s=n.initialInputs;for(let a=o;a{mo(e.lView)},consumerOnSignalRead(){this.lView[ae]=this}});function Ly(e){let t=e[ae]??Object.create(jy);return t.lView=e,t}var jy=ye(me({},kt),{consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=vt(e.lView);for(;t&&!Gd(t[E]);)t=vt(t);t&&Ml(t)},consumerOnSignalRead(){this.lView[ae]=this}});function Gd(e){return e.type!==2}var Vy=100;function Wd(e,t=!0,n=0){let r=e[Ce],o=r.rendererFactory,i=!1;i||o.begin?.();try{By(e,n)}catch(s){throw t&&Bd(e,s),s}finally{i||(o.end?.(),r.inlineEffectRunner?.flush())}}function By(e,t){let n=Ol();try{cc(!0),ds(e,t);let r=0;for(;go(e);){if(r===Vy)throw new x(103,!1);r++,ds(e,1)}}finally{cc(n)}}function Hy(e,t,n,r){let o=t[w];if((o&256)===256)return;let i=!1,s=!1;!i&&t[Ce].inlineEffectRunner?.flush(),aa(t);let a=!0,u=null,c=null;i||(Gd(e)?(c=Ry(t),u=hn(c)):Lu()===null?(a=!1,c=Ly(t),u=hn(c)):t[ae]&&(pr(t[ae]),t[ae]=null));try{_l(t),Cg(e.bindingStartIndex),n!==null&&Ad(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let f=e.preOrderCheckHooks;f!==null&&_r(t,f,null)}else{let f=e.preOrderHooks;f!==null&&Mr(t,f,0,null),Di(t,0)}if(s||$y(t),qd(t,0),e.contentQueries!==null&&kd(e,t),!i)if(l){let f=e.contentCheckHooks;f!==null&&_r(t,f)}else{let f=e.contentHooks;f!==null&&Mr(t,f,1),Di(t,1)}oy(e,t);let d=e.components;d!==null&&Yd(t,d,0);let p=e.viewQuery;if(p!==null&&ls(2,p,r),!i)if(l){let f=e.viewCheckHooks;f!==null&&_r(t,f)}else{let f=e.viewHooks;f!==null&&Mr(t,f,2),Di(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[br]){for(let f of t[br])f();t[br]=null}i||(t[w]&=-73)}catch(l){throw i||mo(t),l}finally{c!==null&&(dr(c,u),a&&Py(c)),ua()}}function qd(e,t){for(let n=nd(e);n!==null;n=rd(n))for(let r=z;r-1&&(En(t,r),Or(n,r))}this._attachedToViewContainer=!1}_o(this._lView[E],this._lView)}onDestroy(t){xl(this._lView,t)}markForCheck(){Ma(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[w]&=-129}reattach(){Hi(this._lView),this._lView[w]|=128}detectChanges(){this._lView[w]|=1024,Wd(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new x(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=Vi(this._lView),n=this._lView[mt];n!==null&&!t&&ya(n,this._lView),vd(this._lView[E],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new x(902,!1);this._appRef=t;let n=Vi(this._lView),r=this._lView[mt];r!==null&&!n&&Dd(r,this._lView),Hi(this._lView)}},Cn=(()=>{class e{static{this.__NG_ELEMENT_ID__=Wy}}return e})(),zy=Cn,Gy=class extends zy{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){let o=Nn(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new Ct(o)}};function Wy(){return Ao($(),I())}function Ao(e,t){return e.type&4?new Gy(t,e,tn(e,t)):null}var XS=new RegExp(`^(\\d+)*(${lm}|${cm})*(.*)`);var qy=()=>null;function Zt(e,t){return qy(e,t)}var Yt=class{},xa=new N("",{providedIn:"root",factory:()=>!1});var Qd=new N(""),Kd=new N(""),fs=class{},qr=class{};function Zy(e){let t=Error(`No component factory found for ${J(e)}.`);return t[Yy]=e,t}var Yy="ngComponent";var ps=class{resolveComponentFactory(t){throw Zy(t)}},Qt=class{static{this.NULL=new ps}},Zr=class{},Oo=(()=>{class e{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>Qy()}}return e})();function Qy(){let e=I(),t=$(),n=Je(t.index,e);return(Ge(n)?n:e)[k]}var Ky=(()=>{class e{static{this.\u0275prov=F({token:e,providedIn:"root",factory:()=>null})}}return e})();function Yr(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s0&&Md(e,n,i.join(" "))}}function ov(e,t,n){let r=e.projection=[];for(let o=0;o{class e{static{this.__NG_ELEMENT_ID__=sv}}return e})();function sv(){let e=$();return Xd(e,I())}var av=On,Jd=class extends av{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return tn(this._hostTNode,this._hostLView)}get injector(){return new pt(this._hostTNode,this._hostLView)}get parentInjector(){let t=ca(this._hostTNode,this._hostLView);if(Bl(t)){let n=Vr(t,this._hostLView),r=jr(t),o=n[E].data[r+8];return new pt(o,n)}else return new pt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=Tc(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-z}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=Zt(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,qt(this._hostTNode,s)),a}createComponent(t,n,r,o,i){let s=t&&!ig(t),a;if(s)a=n;else{let h=n||{};a=h.index,r=h.injector,o=h.projectableNodes,i=h.environmentInjector||h.ngModuleRef}let u=s?t:new Kt(qe(t)),c=r||this.parentInjector;if(!i&&u.ngModule==null){let m=(s?c:this.parentInjector).get(Ze,null);m&&(i=m)}let l=qe(u.componentType??{}),d=Zt(this._lContainer,l?.id??null),p=d?.firstChild??null,f=u.create(c,o,p,i);return this.insertImpl(f.hostView,a,qt(this._hostTNode,d)),f}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(fg(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let u=o[W],c=new Jd(u,u[X],u[W]);c.detach(c.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return An(s,o,i,r),t.attachToViewContainerRef(),el(bi(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=Tc(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=En(this._lContainer,n);r&&(Or(bi(this._lContainer),n),_o(r[E],r))}detach(t){let n=this._adjustIndex(t,-1),r=En(this._lContainer,n);return r&&Or(bi(this._lContainer),n)!=null?new Ct(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function Tc(e){return e[kr]}function bi(e){return e[kr]||(e[kr]=[])}function Xd(e,t){let n,r=t[e.index];return Fe(r)?n=r:(n=Pd(r,t,null,e),t[e.index]=n,No(t,n)),cv(n,t,e,r),new Jd(n,e,t)}function uv(e,t){let n=e[k],r=n.createComment(""),o=ue(t,e),i=Ed(n,o);return Gr(n,i,r,Qm(n,o),!1),r}var cv=fv,lv=()=>!1;function dv(e,t,n){return lv(e,t,n)}function fv(e,t,n,r){if(e[yt])return;let o;n.type&8?o=be(r):o=uv(t,n),e[yt]=o}var gs=class e{constructor(t){this.queryList=t,this.matches=null}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},ms=class e{constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,o=[];for(let i=0;i0)r.push(s[a/2]);else{let c=i[a+1],l=t[-u];for(let d=z;dt.trim())}function rf(e,t,n){e.queries===null&&(e.queries=new ys),e.queries.track(new vs(t,n))}function Dv(e,t){let n=e.contentQueries||(e.contentQueries=[]),r=n.length?n[n.length-1]:-1;t!==r&&n.push(e.queries.length-1,t)}function Ta(e,t){return e.queries.getByIndex(t)}function of(e,t){let n=e[E],r=Ta(n,t);return r.crossesNgTemplate?Ds(n,e,t,[]):ef(n,e,r,t)}var Nc=new Set;function ge(e){Nc.has(e)||(Nc.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function tT(e){return typeof e=="function"&&e[se]!==void 0}function Iv(e,t){ge("NgSignals");let n=Zu(e),r=n[se];return t?.equal&&(r.equal=t.equal),n.set=o=>mi(r,o),n.update=o=>Yu(r,o),n.asReadonly=wv.bind(n),n}function wv(){let e=this[se];if(e.readonlyFn===void 0){let t=()=>this();t[se]=e,e.readonlyFn=t}return e.readonlyFn}function sf(e,t){let n,r=gi(()=>{n._dirtyCounter();let o=_v(n,e);if(t&&o===void 0)throw new x(-951,!1);return o});return n=r[se],n._dirtyCounter=Iv(0),n._flatValue=void 0,r}function Ev(){return sf(!0,!1)}function Cv(){return sf(!0,!0)}function bv(e,t){let n=e[se];n._lView=I(),n._queryIndex=t,n._queryList=Sa(n._lView,t),n._queryList.onDirty(()=>n._dirtyCounter.update(r=>r+1))}function _v(e,t){let n=e._lView,r=e._queryIndex;if(n===void 0||r===void 0||n[w]&4)return t?void 0:Z;let o=Sa(n,r),i=of(n,r);return o.reset(i,Xl),t?o.first:o._changesDetected||e._flatValue===void 0?e._flatValue=o.toArray():e._flatValue}function Ac(e,t){return Ev()}function Mv(e,t){return Cv()}var nT=(Ac.required=Mv,Ac);function xv(e){return Object.getPrototypeOf(e.prototype).constructor}function Sv(e){let t=xv(e.type),n=!0,r=[e];for(;t;){let o;if(Oe(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new x(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);let s=e;s.inputs=Ir(e.inputs),s.inputTransforms=Ir(e.inputTransforms),s.declaredInputs=Ir(e.declaredInputs),s.outputs=Ir(e.outputs);let a=o.hostBindings;a&&Rv(e,a);let u=o.viewQuery,c=o.contentQueries;if(u&&Av(e,u),c&&Ov(e,c),Tv(e,o),oh(e.outputs,o.outputs),Oe(o)&&o.data.animation){let l=e.data;l.animation=(l.animation||[]).concat(o.data.animation)}}let i=o.features;if(i)for(let s=0;s=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=Dn(o.hostAttrs,n=Dn(n,o.hostAttrs))}}function Ir(e){return e===Ne?{}:e===Z?[]:e}function Av(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function Ov(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function Rv(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}function rT(e){let t=n=>{let r=(Array.isArray(e)?e:e()).map(o=>typeof o=="function"?{directive:H(o),inputs:Ne,outputs:Ne}:{directive:H(o.directive),inputs:Oc(o.inputs),outputs:Oc(o.outputs)});n.hostDirectives===null?(n.findHostDirectiveDefs=af,n.hostDirectives=r):n.hostDirectives.unshift(...r)};return t.ngInherit=!0,t}function af(e,t,n){if(e.hostDirectives!==null)for(let r of e.hostDirectives){let o=qs(r.directive);Fv(o.declaredInputs,r.inputs),af(o,t,n),n.set(o,r),t.push(o)}}function Oc(e){if(e===void 0||e.length===0)return Ne;let t={};for(let n=0;nn()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},Es=class extends Is{constructor(t){super(),this.moduleType=t}create(t){return new ws(this.moduleType,t,[])}};var Jr=class extends Ke{constructor(t){super(),this.componentFactoryResolver=new Qr(this),this.instance=null;let n=new In([...t.providers,{provide:Ke,useValue:this},{provide:Qt,useValue:this.componentFactoryResolver}],t.parent||Ys(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function Pv(e,t,n=null){return new Jr({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}function cf(e){return Lv(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function kv(e,t){if(Array.isArray(e))for(let n=0;n{class e{constructor(){this.impl=null}execute(){this.impl?.execute()}static{this.\u0275prov=F({token:e,providedIn:"root",factory:()=>new e})}}return e})(),Cs=class e{constructor(){this.ngZone=D(Y),this.scheduler=D(Yt),this.errorHandler=D(Et,{optional:!0}),this.sequences=new Set,this.deferredRegistrations=new Set,this.executing=!1}static{this.PHASES=[Bt.EarlyRead,Bt.Write,Bt.MixedReadWrite,Bt.Read]}execute(){this.executing=!0;for(let t of e.PHASES)for(let n of this.sequences)if(!(n.erroredOrDestroyed||!n.hooks[t]))try{n.pipelinedValue=this.ngZone.runOutsideAngular(()=>n.hooks[t](n.pipelinedValue))}catch(r){n.erroredOrDestroyed=!0,this.errorHandler?.handleError(r)}this.executing=!1;for(let t of this.sequences)t.afterRun(),t.once&&(this.sequences.delete(t),t.destroy());for(let t of this.deferredRegistrations)this.sequences.add(t);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear()}register(t){this.executing?this.deferredRegistrations.add(t):(this.sequences.add(t),this.scheduler.notify(6))}unregister(t){this.executing&&this.sequences.has(t)?(t.erroredOrDestroyed=!0,t.pipelinedValue=void 0,t.once=!0):(this.sequences.delete(t),this.deferredRegistrations.delete(t))}static{this.\u0275prov=F({token:e,providedIn:"root",factory:()=>new e})}},bs=class{constructor(t,n,r,o){this.impl=t,this.hooks=n,this.once=r,this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.unregisterOnDestroy=o?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.()}};function Gv(e,t){!t?.injector&&Qs(Gv);let n=t?.injector??D(_e);return md(n)?(ge("NgAfterRender"),df(e,n,t,!1)):ff}function Wv(e,t){!t?.injector&&Qs(Wv);let n=t?.injector??D(_e);return md(n)?(ge("NgAfterNextRender"),df(e,n,t,!0)):ff}function qv(e,t){if(e instanceof Function){let n=[void 0,void 0,void 0,void 0];return n[t]=e,n}else return[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function df(e,t,n,r){let o=t.get(lf);o.impl??=t.get(Cs);let i=n?.phase??Bt.MixedReadWrite,s=n?.manualCleanup!==!0?t.get(wo):null,a=new bs(o.impl,qv(e,i),r,s);return o.impl.register(a),a}var ff={destroy(){}};function Zv(e,t,n,r){let o=I(),i=Mt();if(re(o,i,t)){let s=P(),a=xn();_y(a,o,e,t,n,r)}return Zv}function Aa(e,t,n,r){return re(e,Mt(),n)?t+ht(n)+r:ee}function Yv(e,t,n,r,o,i){let s=Eg(),a=Na(e,s,n,o);return oa(2),a?t+ht(n)+r+ht(o)+i:ee}function wr(e,t){return e<<17|t<<2}function bt(e){return e>>17&32767}function Qv(e){return(e&2)==2}function Kv(e,t){return e&131071|t<<17}function _s(e){return e|2}function Jt(e){return(e&131068)>>2}function _i(e,t){return e&-131069|t<<2}function Jv(e){return(e&1)===1}function Ms(e){return e|1}function Xv(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=bt(s),u=Jt(s);e[r]=n;let c=!1,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||Mn(d,l)>0)&&(c=!0)}else l=n;if(o)if(u!==0){let p=bt(e[a+1]);e[r+1]=wr(p,a),p!==0&&(e[p+1]=_i(e[p+1],r)),e[a+1]=Kv(e[a+1],r)}else e[r+1]=wr(a,0),a!==0&&(e[a+1]=_i(e[a+1],r)),a=r;else e[r+1]=wr(u,0),a===0?a=r:e[u+1]=_i(e[u+1],r),u=r;c&&(e[r+1]=_s(e[r+1])),Rc(e,l,r,!0),Rc(e,l,r,!1),eD(t,l,e,r,i),s=wr(a,u),i?t.classBindings=s:t.styleBindings=s}function eD(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&Mn(i,t)>=0&&(n[r+1]=Ms(n[r+1]))}function Rc(e,t,n,r){let o=e[n+1],i=t===null,s=r?bt(o):Jt(o),a=!1;for(;s!==0&&(a===!1||i);){let u=e[s],c=e[s+1];tD(u,t)&&(a=!0,e[s+1]=r?Ms(c):_s(c)),s=r?bt(c):Jt(c)}a&&(e[n+1]=r?_s(o):Ms(o))}function tD(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Mn(e,t)>=0:!1}var fe={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function nD(e){return e.substring(fe.key,fe.keyEnd)}function rD(e){return oD(e),pf(e,hf(e,0,fe.textEnd))}function pf(e,t){let n=fe.textEnd;return n===t?-1:(t=fe.keyEnd=iD(e,fe.key=t,n),hf(e,t,n))}function oD(e){fe.key=0,fe.keyEnd=0,fe.value=0,fe.valueEnd=0,fe.textEnd=e.length}function hf(e,t,n){for(;t32;)t++;return t}function sD(e,t,n){let r=I(),o=Mt();if(re(r,o,t)){let i=P(),s=xn();To(i,s,r,e,t,r[k],n,!1)}return sD}function xs(e,t,n,r,o){let i=t.inputs,s=o?"class":"style";ba(e,n,i[s],s,r)}function Oa(e,t,n){return mf(e,t,n,!1),Oa}function aD(e,t){return mf(e,t,null,!0),aD}function oT(e){yf(pD,gf,e,!0)}function gf(e,t){for(let n=rD(t);n>=0;n=pf(t,n))ao(e,nD(t),!0)}function mf(e,t,n,r){let o=I(),i=P(),s=oa(2);if(i.firstUpdatePass&&Df(i,e,s,r),t!==ee&&re(o,s,t)){let a=i.data[Pe()];If(i,a,o,o[k],e,o[s+1]=gD(t,n),r,s)}}function yf(e,t,n,r){let o=P(),i=oa(2);o.firstUpdatePass&&Df(o,null,i,r);let s=I();if(n!==ee&&re(s,i,n)){let a=o.data[Pe()];if(wf(a,r)&&!vf(o,i)){let u=r?a.classesWithoutHost:a.stylesWithoutHost;u!==null&&(n=Ai(u,n||"")),xs(o,a,s,n,r)}else hD(o,a,s,s[k],s[i+1],s[i+1]=fD(e,t,n),r,i)}}function vf(e,t){return t>=e.expandoStartIndex}function Df(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[Pe()],s=vf(e,n);wf(i,r)&&t===null&&!s&&(t=!1),t=uD(o,i,t,r),Xv(o,i,t,n,s,r)}}function uD(e,t,n,r){let o=ia(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=Mi(null,e,t,n,r),n=bn(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=Mi(o,e,t,n,r),i===null){let u=cD(e,t,r);u!==void 0&&Array.isArray(u)&&(u=Mi(null,e,t,u[1],r),u=bn(u,t.attrs,r),lD(e,t,r,u))}else i=dD(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function cD(e,t,n){let r=n?t.classBindings:t.styleBindings;if(Jt(r)!==0)return e[bt(r)]}function lD(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[bt(o)]=r}function dD(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0;){let u=e[o],c=Array.isArray(u),l=c?u[1]:u,d=l===null,p=n[o+1];p===ee&&(p=d?Z:void 0);let f=d?yi(p,r):l===r?p:void 0;if(c&&!eo(f)&&(f=yi(u,r)),eo(f)&&(a=f,s))return a;let h=e[o+1];o=s?bt(h):Jt(h)}if(t!==null){let u=i?t.residualClasses:t.residualStyles;u!=null&&(a=yi(u,r))}return a}function eo(e){return e!==void 0}function gD(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=J(xt(e)))),e}function wf(e,t){return(e.flags&(t?8:16))!==0}function iT(e,t,n){let r=I(),o=Aa(r,e,t,n);yf(ao,gf,o,!0)}var Ss=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),o=Math.max(t,n),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s)}else this.attach(r,i)}move(t,n){this.attach(n,this.detach(t))}};function xi(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function mD(e,t,n){let r,o,i=0,s=e.length-1,a=void 0;if(Array.isArray(t)){let u=t.length-1;for(;i<=s&&i<=u;){let c=e.at(i),l=t[i],d=xi(i,c,i,l,n);if(d!==0){d<0&&e.updateValue(i,l),i++;continue}let p=e.at(s),f=t[u],h=xi(s,p,u,f,n);if(h!==0){h<0&&e.updateValue(s,f),s--,u--;continue}let m=n(i,c),A=n(s,p),b=n(i,l);if(Object.is(b,A)){let O=n(u,f);Object.is(O,m)?(e.swap(i,s),e.updateValue(s,f),u--,s--):e.move(s,i),e.updateValue(i,l),i++;continue}if(r??=new to,o??=kc(e,i,s,n),Ts(e,r,i,b))e.updateValue(i,l),i++,s++;else if(o.has(b))r.set(m,e.detach(i)),s--;else{let O=e.create(i,t[i]);e.attach(i,O),i++,s++}}for(;i<=u;)Pc(e,r,n,i,t[i]),i++}else if(t!=null){let u=t[Symbol.iterator](),c=u.next();for(;!c.done&&i<=s;){let l=e.at(i),d=c.value,p=xi(i,l,i,d,n);if(p!==0)p<0&&e.updateValue(i,d),i++,c=u.next();else{r??=new to,o??=kc(e,i,s,n);let f=n(i,d);if(Ts(e,r,i,f))e.updateValue(i,d),i++,s++,c=u.next();else if(!o.has(f))e.attach(i,e.create(i,d)),i++,s++,c=u.next();else{let h=n(i,l);r.set(h,e.detach(i)),s--}}}for(;!c.done;)Pc(e,r,n,e.length,c.value),c=u.next()}for(;i<=s;)e.destroy(e.detach(s--));r?.forEach(u=>{e.destroy(u)})}function Ts(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function Pc(e,t,n,r,o){if(Ts(e,t,r,n(r,o)))e.updateValue(r,o);else{let i=e.create(r,o);e.attach(r,i)}}function kc(e,t,n,r){let o=new Set;for(let i=t;i<=n;i++)o.add(r(i,e.at(i)));return o}var to=class{constructor(){this.kvMap=new Map,this._vMap=void 0}has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n)}}};function sT(e,t){ge("NgControlFlow");let n=I(),r=Mt(),o=n[r]!==ee?n[r]:-1,i=o!==-1?no(n,V+o):void 0,s=0;if(re(n,r,e)){let a=_(null);try{if(i!==void 0&&Ud(i,s),e!==-1){let u=V+e,c=no(n,u),l=Rs(n[E],u),d=Zt(c,l.tView.ssrId),p=Nn(n,l,t,{dehydratedView:d});An(c,p,s,qt(l,d))}}finally{_(a)}}else if(i!==void 0){let a=$d(i,s);a!==void 0&&(a[U]=t)}}var Ns=class{constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-z}};function aT(e,t){return t}var As=class{constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function uT(e,t,n,r,o,i,s,a,u,c,l,d,p){ge("NgControlFlow");let f=I(),h=P(),m=u!==void 0,A=I(),b=a?s.bind(A[ne][U]):s,O=new As(m,b);A[V+e]=O,Xr(f,h,e+1,t,n,r,o,Ye(h.consts,i)),m&&Xr(f,h,e+2,u,c,l,d,Ye(h.consts,p))}var Os=class extends Ss{constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-z}at(t){return this.getLView(t)[U].$implicit}attach(t,n){let r=n[zt];this.needsIndexUpdate||=t!==this.length,An(this.lContainer,n,t,qt(this.templateTNode,r))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,yD(this.lContainer,t)}create(t,n){let r=Zt(this.lContainer,this.templateTNode.tView.ssrId),o=Nn(this.hostLView,this.templateTNode,new Ns(this.lContainer,n,t),{dehydratedView:r});return this.operationsCounter?.recordCreate(),o}destroy(t){_o(t[E],t),this.operationsCounter?.recordDestroy()}updateValue(t,n){this.getLView(t)[U].$implicit=n}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t(Do(!0),yd(r,o,Ng()));function ED(e,t,n,r,o){let i=t.consts,s=Ye(i,r),a=nn(t,e,8,"ng-container",s);s!==null&&Yr(a,s,!0);let u=Ye(i,o);return Ca(t,n,a,u),t.queries!==null&&t.queries.elementStart(t,a),a}function bf(e,t,n){let r=I(),o=P(),i=e+V,s=o.firstCreatePass?ED(i,o,r,t,n):o.data[i];_t(s,!0);let a=bD(o,r,s,e);return r[i]=a,vo()&&Mo(o,r,a,s),Qe(a,r),po(s)&&(Ia(o,r,s),Da(o,s,r)),n!=null&&wa(r,s),bf}function _f(){let e=$(),t=P();return na()?ra():(e=e.parent,_t(e,!1)),t.firstCreatePass&&(Io(t,e),Js(e)&&t.queries.elementEnd(e)),_f}function CD(e,t,n){return bf(e,t,n),_f(),CD}var bD=(e,t,n,r)=>(Do(!0),$m(t[k],""));function lT(){return I()}function _D(e,t,n){let r=I(),o=Mt();if(re(r,o,t)){let i=P(),s=xn();To(i,s,r,e,t,r[k],n,!0)}return _D}function MD(e,t,n){let r=I(),o=Mt();if(re(r,o,t)){let i=P(),s=xn(),a=ia(i.data),u=Vd(a,s,r);To(i,s,r,e,t,u,n,!0)}return MD}var ft=void 0;function xD(e){let t=e,n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return n===1&&r===0?1:5}var SD=["en",[["a","p"],["AM","PM"],ft],[["AM","PM"],ft,ft],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],ft,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],ft,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",ft,"{1} 'at' {0}",ft],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",xD],Si={};function Ra(e){let t=TD(e),n=Lc(t);if(n)return n;let r=t.split("-")[0];if(n=Lc(r),n)return n;if(r==="en")return SD;throw new x(701,!1)}function Lc(e){return e in Si||(Si[e]=Ue.ng&&Ue.ng.common&&Ue.ng.common.locales&&Ue.ng.common.locales[e]),Si[e]}var rn=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(rn||{});function TD(e){return e.toLowerCase().replace(/_/g,"-")}var ro="en-US";var ND=ro;function AD(e){typeof e=="string"&&(ND=e.toLowerCase().replace(/_/g,"-"))}var OD=(e,t,n)=>{};function RD(e,t,n,r){let o=I(),i=P(),s=$();return Mf(i,o,o[k],s,e,t,r),RD}function FD(e,t){let n=$(),r=I(),o=P(),i=ia(o.data),s=Vd(i,n,r);return Mf(o,r,s,n,e,t),FD}function PD(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;iu?a[u]:null}typeof s=="string"&&(i+=2)}return null}function Mf(e,t,n,r,o,i,s){let a=po(r),c=e.firstCreatePass&&jd(e),l=t[U],d=Ld(t),p=!0;if(r.type&3||s){let m=ue(r,t),A=s?s(m):m,b=d.length,O=s?q=>s(be(q[r.index])):r.index,oe=null;if(!s&&a&&(oe=PD(e,t,o,r.index)),oe!==null){let q=oe.__ngLastListenerFn__||oe;q.__ngNextListenerFn__=i,oe.__ngLastListenerFn__=i,p=!1}else{i=Vc(r,t,l,i),OD(m,o,i);let q=n.listen(A,o,i);d.push(i,q),c&&c.push(o,O,b,b+1)}}else i=Vc(r,t,l,i);let f=r.outputs,h;if(p&&f!==null&&(h=f[o])){let m=h.length;if(m)for(let A=0;A-1?Je(e.index,t):t;Ma(s,5);let a=jc(t,n,r,i),u=o.__ngNextListenerFn__;for(;u;)a=jc(t,n,u,i)&&a,u=u.__ngNextListenerFn__;return a}}function dT(e=1){return Sg(e)}function kD(e,t){let n=null,r=kh(e);for(let o=0;o=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function IT(e){let t=wg();return ea(t,V+e)}function wT(e,t=""){let n=I(),r=P(),o=e+V,i=r.firstCreatePass?nn(r,o,1,t,null):r.data[o],s=BD(r,n,i,t,e);n[o]=s,vo()&&Mo(r,n,s,i),_t(i,!1)}var BD=(e,t,n,r,o)=>(Do(!0),Bm(t[k],r));function HD(e){return Sf("",e,""),HD}function Sf(e,t,n){let r=I(),o=Aa(r,e,t,n);return o!==ee&&Hd(r,Pe(),o),Sf}function $D(e,t,n,r,o){let i=I(),s=Yv(i,e,t,n,r,o);return s!==ee&&Hd(i,Pe(),s),$D}function UD(e,t,n){let r=P();if(r.firstCreatePass){let o=Oe(e);Fs(n,r.data,r.blueprint,o,!0),Fs(t,r.data,r.blueprint,o,!1)}}function Fs(e,t,n,r,o){if(e=H(e),Array.isArray(e))for(let i=0;i>20;if(Ut(e)||!e.multi){let f=new It(c,o,xe),h=Ni(u,t,o?l:l+p,d);h===-1?(Gi(Hr(a,s),i,u),Ti(i,e,t.length),t.push(u),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(f),s.push(f)):(n[h]=f,s[h]=f)}else{let f=Ni(u,t,l+p,d),h=Ni(u,t,l,l+p),m=f>=0&&n[f],A=h>=0&&n[h];if(o&&!A||!o&&!m){Gi(Hr(a,s),i,u);let b=WD(o?GD:zD,n.length,o,r,c);!o&&A&&(n[h].providerFactory=b),Ti(i,e,t.length,0),t.push(u),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(b),s.push(b)}else{let b=Tf(n[o?h:f],c,!o&&r);Ti(i,e,f>-1?f:h,b)}!o&&r&&A&&n[h].componentProviders++}}}function Ti(e,t,n,r){let o=Ut(t),i=Jh(t);if(o||i){let u=(i?H(t.useClass):t).prototype.ngOnDestroy;if(u){let c=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let l=c.indexOf(n);l===-1?c.push(n,[r,u]):c[l+1].push(r,u)}else c.push(n,u)}}}function Tf(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Ni(e,t,n,r){for(let o=n;o{n.providersResolver=(r,o)=>UD(r,o?o(e):e,t)}}var qD=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=fl(!1,n.type),o=r.length>0?Pv([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static{this.\u0275prov=F({token:e,providedIn:"environment",factory:()=>new e(G(Ze))})}}return e})();function CT(e){ge("NgStandalone"),e.getStandaloneInjector=t=>t.get(qD).getOrCreateStandaloneInjector(e)}function bT(e,t,n){let r=en()+e,o=I();return o[r]===ee?Ro(o,r,n?t.call(n):t()):jv(o,r)}function _T(e,t,n,r){return Nf(I(),en(),e,t,n,r)}function MT(e,t,n,r,o){return ZD(I(),en(),e,t,n,r,o)}function xT(e,t,n,r,o,i){return Af(I(),en(),e,t,n,r,o,i)}function Fa(e,t){let n=e[t];return n===ee?void 0:n}function Nf(e,t,n,r,o,i){let s=t+n;return re(e,s,o)?Ro(e,s+1,i?r.call(i,o):r(o)):Fa(e,s+1)}function ZD(e,t,n,r,o,i,s){let a=t+n;return Na(e,a,o,i)?Ro(e,a+2,s?r.call(s,o,i):r(o,i)):Fa(e,a+2)}function Af(e,t,n,r,o,i,s,a){let u=t+n;return Vv(e,u,o,i,s)?Ro(e,u+3,a?r.call(a,o,i,s):r(o,i,s)):Fa(e,u+3)}function ST(e,t){let n=P(),r,o=e+V;n.firstCreatePass?(r=YD(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];let i=r.factory||(r.factory=gt(r.type,!0)),s,a=K(xe);try{let u=Br(!1),c=i();return Br(u),VD(n,I(),o,c),c}finally{K(a)}}function YD(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function TT(e,t,n){let r=e+V,o=I(),i=ea(o,r);return Of(o,r)?Nf(o,en(),t,i.transform,n,i):i.transform(n)}function NT(e,t,n,r,o){let i=e+V,s=I(),a=ea(s,i);return Of(s,i)?Af(s,en(),t,a.transform,n,r,o,a):a.transform(n,r,o)}function Of(e,t){return e[E].data[t].pure}function AT(e,t){return Ao(e,t)}var OT=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})();var QD=new N("");function Fo(e){return!!e&&typeof e.then=="function"}function Pa(e){return!!e&&typeof e.subscribe=="function"}var KD=new N(""),Rf=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=D(KD,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=o();if(Fo(i))n.push(i);else if(Pa(i)){let s=new Promise((a,u)=>{i.subscribe({complete:a,error:u})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),JD=new N("");function XD(){qu(()=>{throw new x(600,!1)})}function eI(e){return e.isBoundToModule}var tI=10;function nI(e,t,n){try{let r=n();return Fo(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var Po=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=D(tm),this.afterRenderManager=D(lf),this.zonelessEnabled=D(xa),this.dirtyFlags=0,this.deferredDirtyFlags=0,this.externalTestViews=new Set,this.beforeRender=new ie,this.afterTick=new ie,this.componentTypes=[],this.components=[],this.isStable=D(Sn).hasPendingTasks.pipe(ve(n=>!n)),this._injector=D(Ze)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}get injector(){return this._injector}bootstrap(n,r){let o=n instanceof qr;if(!this._injector.get(Rf).done){let p=!o&&Gh(n),f=!1;throw new x(405,f)}let s;o?s=n:s=this._injector.get(Qt).resolveComponentFactory(n),this.componentTypes.push(s.componentType);let a=eI(s)?void 0:this._injector.get(Ke),u=r||s.selector,c=s.create(_e.NULL,[],u,a),l=c.location.nativeElement,d=c.injector.get(QD,null);return d?.registerApplication(l),c.onDestroy(()=>{this.detachView(c.hostView),Sr(this.components,c),d?.unregisterApplication(l)}),this._loadComponent(c),c}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new x(101,!1);let n=_(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,_(n),this.afterTick.next()}}synchronize(){let n=null;this._injector.destroyed||(n=this._injector.get(Zr,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let r=0;for(;this.dirtyFlags!==0&&r++go(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;Sr(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let r=this._injector.get(JD,[]);[...this._bootstrapListeners,...r].forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Sr(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new x(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Sr(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function rI(e,t,n,r){if(!n&&!go(e))return;Wd(e,t,n&&!r?0:1)}var ks=class{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},RT=(()=>{class e{compileModuleSync(n){return new Es(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),o=cl(n),i=gd(o.declarations).reduce((s,a)=>{let u=qe(a);return u&&s.push(new Kt(u)),s},[]);return new ks(r,i)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var oI=(()=>{class e{constructor(){this.zone=D(Y),this.changeDetectionScheduler=D(Yt),this.applicationRef=D(Po)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),iI=new N("",{factory:()=>!1});function Ff({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new Y(ye(me({},Pf()),{scheduleInRootZone:n})),[{provide:Y,useFactory:e},{provide:Rr,multi:!0,useFactory:()=>{let r=D(oI,{optional:!0});return()=>r.initialize()}},{provide:Rr,multi:!0,useFactory:()=>{let r=D(sI);return()=>{r.initialize()}}},t===!0?{provide:Qd,useValue:!0}:[],{provide:Kd,useValue:n??Ql}]}function FT(e){let t=e?.ignoreChangesOutsideZone,n=e?.scheduleInRootZone,r=Ff({ngZoneFactory:()=>{let o=Pf(e);return o.scheduleInRootZone=n,o.shouldCoalesceEventChangeDetection&&ge("NgZone_CoalesceEvent"),new Y(o)},ignoreChangesOutsideZone:t,scheduleInRootZone:n});return qh([{provide:iI,useValue:!0},{provide:xa,useValue:!1},r])}function Pf(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var sI=(()=>{class e{constructor(){this.subscription=new L,this.initialized=!1,this.zone=D(Y),this.pendingTasks=D(Sn)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Y.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Y.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var aI=(()=>{class e{constructor(){this.appRef=D(Po),this.taskService=D(Sn),this.ngZone=D(Y),this.zonelessEnabled=D(xa),this.disableScheduling=D(Qd,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new L,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Ur):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(D(Kd,{optional:!0})??!1),this.cancelScheduledCallback=null,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Qi||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 7:{this.appRef.deferredDirtyFlags|=8;break}case 9:case 8:case 6:case 10:default:this.appRef.dirtyFlags|=8}if(!this.shouldScheduleTick())return;let r=this.useMicrotaskScheduler?hc:Kl;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Ur+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,hc(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function uI(){return typeof $localize<"u"&&$localize.locale||ro}var ko=new N("",{providedIn:"root",factory:()=>D(ko,M.Optional|M.SkipSelf)||uI()});var Ls=new N("");function Er(e){return!e.moduleRef}function cI(e){let t=Er(e)?e.r3Injector:e.moduleRef.injector,n=t.get(Y);return n.run(()=>{Er(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(Et,null),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:i=>{r.handleError(i)}})}),Er(e)){let i=()=>t.destroy(),s=e.platformInjector.get(Ls);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(Ls);s.add(i),e.moduleRef.onDestroy(()=>{Sr(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return nI(r,n,()=>{let i=t.get(Rf);return i.runInitializers(),i.donePromise.then(()=>{let s=t.get(ko,ro);if(AD(s||ro),Er(e)){let a=t.get(Po);return e.rootComponent!==void 0&&a.bootstrap(e.rootComponent),a}else return lI(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function lI(e,t){let n=e.injector.get(Po);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new x(-403,!1);t.push(e)}var Tr=null;function dI(e=[],t){return _e.create({name:t,providers:[{provide:gl,useValue:"platform"},{provide:Ls,useValue:new Set([()=>Tr=null])},...e]})}function fI(e=[]){if(Tr)return Tr;let t=dI(e);return Tr=t,XD(),pI(t),t}function pI(e){e.get(um,null)?.forEach(n=>n())}var Rn=(()=>{class e{static{this.__NG_ELEMENT_ID__=hI}}return e})();function hI(e){return gI($(),I(),(e&16)===16)}function gI(e,t,n){if(fo(e)&&!n){let r=Je(e.index,t);return new Ct(r,r)}else if(e.type&175){let r=t[ne];return new Ct(r,t)}return null}var js=class{constructor(){}supports(t){return cf(t)}create(t){return new Vs(t)}},mI=(e,t)=>t,Vs=class{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||mI}forEachItem(t){let n;for(n=this._itHead;n!==null;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){let s=!r||n&&n.currentIndex{s=this._trackByFn(o,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,o),r=!0):(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;t!==null;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;t!==null;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let i;return t===null?i=this._itTail:(i=t._prev,this._remove(t)),t=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):(t=this._linkedRecords===null?null:this._linkedRecords.get(r,o),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new Bs(n,r),i,o)),t}_verifyReinsertion(t,n,r,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return i!==null?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;t!==null;){let n=t._next;this._addToRemovals(this._unlink(t)),t=n}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(t);let o=t._prevRemoved,i=t._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){let o=n===null?this._itHead:n._next;return t._next=o,t._prev=n,o===null?this._itTail=t:o._prev=t,n===null?this._itHead=t:n._next=t,this._linkedRecords===null&&(this._linkedRecords=new oo),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){this._linkedRecords!==null&&this._linkedRecords.remove(t);let n=t._prev,r=t._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return this._unlinkedRecords===null&&(this._unlinkedRecords=new oo),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t}},Bs=class{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}},Hs=class{constructor(){this._head=null,this._tail=null}add(t){this._head===null?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){let n=t._prevDup,r=t._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},oo=class{constructor(){this.map=new Map}put(t){let n=t.trackById,r=this.map.get(n);r||(r=new Hs,this.map.set(n,r)),r.add(t)}get(t,n){let r=t,o=this.map.get(r);return o?o.get(t,n):null}remove(t){let n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function Bc(e,t,n){let r=e.previousIndex;if(r===null)return r;let o=0;return n&&r{class e{static{this.\u0275prov=F({token:e,providedIn:"root",factory:Hc})}constructor(n){this.factories=n}static create(n,r){if(r!=null){let o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||Hc()),deps:[[e,new bh,new Ch]]}}find(n){let r=this.factories.find(o=>o.supports(n));if(r!=null)return r;throw new x(901,!1)}}return e})();function PT(e){try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,o=fI(r),i=[Ff({}),{provide:Yt,useExisting:aI},...n||[]],s=new Jr({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1});return cI({r3Injector:s.injector,platformInjector:o,rootComponent:t})}catch(t){return Promise.reject(t)}}function Fn(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function ka(e,t=NaN){return!isNaN(parseFloat(e))&&!isNaN(Number(e))?Number(e):t}function kT(e,t){ge("NgSignals");let n=gi(e);return t?.equal&&(n[se].equal=t.equal),n}function La(e){let t=_(null);try{return e()}finally{_(t)}}var yI=new N("",{providedIn:"root",factory:()=>D(vI)}),vI=(()=>{class e{static{this.\u0275prov=F({token:e,providedIn:"root",factory:()=>new $s})}}return e})(),$s=class{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=D(Sn),this.taskId=null}scheduleEffect(t){if(this.enqueue(t),this.taskId===null){let n=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(n),this.taskId=null})}}enqueue(t){let n=t.creationZone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||(this.queuedEffectCount++,r.add(t))}flush(){for(;this.queuedEffectCount>0;)for(let[t,n]of this.queues)t===null?this.flushQueue(n):t.run(()=>this.flushQueue(n))}flushQueue(t){for(let n of t)t.delete(n),this.queuedEffectCount--,n.run()}},Us=class{constructor(t,n,r,o,i,s){this.scheduler=t,this.effectFn=n,this.creationZone=r,this.injector=i,this.watcher=Ku(a=>this.runEffect(a),()=>this.schedule(),s),this.unregisterOnDestroy=o?.onDestroy(()=>this.destroy())}runEffect(t){try{this.effectFn(t)}catch(n){this.injector.get(Et,null,{optional:!0})?.handleError(n)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}};function DI(e,t){ge("NgSignals"),!t?.injector&&Qs(DI);let n=t?.injector??D(_e),r=t?.manualCleanup!==!0?n.get(wo):null,o=new Us(n.get(yI),e,typeof Zone>"u"?null:Zone.current,r,n,t?.allowSignalWrites??!1),i=n.get(Rn,null,{optional:!0});return!i||!(i._lView[w]&8)?o.watcher.notify():(i._lView[br]??=[]).push(o.watcher.notify),o}function LT(e){let t=qe(e);if(!t)return null;let n=new Kt(t);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}var Uf=null;function ja(){return Uf}function oN(e){Uf??=e}var Lf=class{};var jo=new N(""),Wa=(()=>{class e{historyGo(n){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=F({token:e,factory:()=>D(wI),providedIn:"platform"})}}return e})(),iN=new N(""),wI=(()=>{class e extends Wa{constructor(){super(),this._doc=D(jo),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return ja().getBaseHref(this._doc)}onPopState(n){let r=ja().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=ja().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,r,o){this._history.pushState(n,r,o)}replaceState(n,r,o){this._history.replaceState(n,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=F({token:e,factory:()=>new e,providedIn:"platform"})}}return e})();function qa(e,t){if(e.length==0)return t;if(t.length==0)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,n==2?e+t.substring(1):n==1?e+t:e+"/"+t}function jf(e){let t=e.match(/#|\?|$/),n=t&&t.index||e.length,r=n-(e[n-1]==="/"?1:0);return e.slice(0,r)+e.slice(n)}function Le(e){return e&&e[0]!=="?"?"?"+e:e}var Vo=(()=>{class e{historyGo(n){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=F({token:e,factory:()=>D(EI),providedIn:"root"})}}return e})(),zf=new N(""),EI=(()=>{class e extends Vo{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??D(jo).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return qa(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+Le(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+Le(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+Le(i));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}static{this.\u0275fac=function(r){return new(r||e)(G(Wa),G(zf,8))}}static{this.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),sN=(()=>{class e extends Vo{constructor(n,r){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],r!=null&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}path(n=!1){let r=this._platformLocation.hash??"#";return r.length>0?r.substring(1):r}prepareExternalUrl(n){let r=qa(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+Le(i));s.length==0&&(s=this._platformLocation.pathname),this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+Le(i));s.length==0&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}static{this.\u0275fac=function(r){return new(r||e)(G(Wa),G(zf,8))}}static{this.\u0275prov=F({token:e,factory:e.\u0275fac})}}return e})(),CI=(()=>{class e{constructor(n){this._subject=new pe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=MI(jf(Vf(r))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+Le(r))}normalize(n){return e.stripTrailingSlash(_I(this._basePath,Vf(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._locationStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Le(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Le(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r,complete:o})}static{this.normalizeQueryParams=Le}static{this.joinWithSlash=qa}static{this.stripTrailingSlash=jf}static{this.\u0275fac=function(r){return new(r||e)(G(Vo))}}static{this.\u0275prov=F({token:e,factory:()=>bI(),providedIn:"root"})}}return e})();function bI(){return new CI(G(Vo))}function _I(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function Vf(e){return e.replace(/\/index.html$/,"")}function MI(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}var Gf=function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e}(Gf||{});var je={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function Pn(e,t){let n=Ra(e),r=n[rn.NumberSymbols][t];if(typeof r>"u"){if(t===je.CurrencyDecimal)return n[rn.NumberSymbols][je.Decimal];if(t===je.CurrencyGroup)return n[rn.NumberSymbols][je.Group]}return r}function xI(e,t){return Ra(e)[rn.NumberFormats][t]}var SI=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Bf=22,Lo=".",kn="0",TI=";",NI=",",Va="#";function AI(e,t,n,r,o,i,s=!1){let a="",u=!1;if(!isFinite(e))a=Pn(n,je.Infinity);else{let c=PI(e);s&&(c=FI(c));let l=t.minInt,d=t.minFrac,p=t.maxFrac;if(i){let O=i.match(SI);if(O===null)throw new Error(`${i} is not a valid digit info`);let oe=O[1],q=O[3],Se=O[5];oe!=null&&(l=Ba(oe)),q!=null&&(d=Ba(q)),Se!=null?p=Ba(Se):q!=null&&d>p&&(p=d)}kI(c,d,p);let f=c.digits,h=c.integerLen,m=c.exponent,A=[];for(u=f.every(O=>!O);h0?A=f.splice(h,f.length):(A=f,f=[0]);let b=[];for(f.length>=t.lgSize&&b.unshift(f.splice(-t.lgSize,f.length).join(""));f.length>t.gSize;)b.unshift(f.splice(-t.gSize,f.length).join(""));f.length&&b.unshift(f.join("")),a=b.join(Pn(n,r)),A.length&&(a+=Pn(n,o)+A.join("")),m&&(a+=Pn(n,je.Exponential)+"+"+m)}return e<0&&!u?a=t.negPre+a+t.negSuf:a=t.posPre+a+t.posSuf,a}function OI(e,t,n){let r=xI(t,Gf.Decimal),o=RI(r,Pn(t,je.MinusSign));return AI(e,o,t,je.Group,je.Decimal,n)}function RI(e,t="-"){let n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=e.split(TI),o=r[0],i=r[1],s=o.indexOf(Lo)!==-1?o.split(Lo):[o.substring(0,o.lastIndexOf(kn)+1),o.substring(o.lastIndexOf(kn)+1)],a=s[0],u=s[1]||"";n.posPre=a.substring(0,a.indexOf(Va));for(let l=0;l-1&&(t=t.replace(Lo,"")),(i=t.search(/e/i))>0?(o<0&&(o=i),o+=+t.slice(i+1),t=t.substring(0,i)):o<0&&(o=t.length),i=0;t.charAt(i)===kn;i++);if(i===(a=t.length))r=[0],o=1;else{for(a--;t.charAt(a)===kn;)a--;for(o-=i,r=[],s=0;i<=a;i++,s++)r[s]=Number(t.charAt(i))}return o>Bf&&(r=r.splice(0,Bf-1),n=o-1,o=1),{digits:r,exponent:n,integerLen:o}}function kI(e,t,n){if(t>n)throw new Error(`The minimum number of digits after fraction (${t}) is higher than the maximum (${n}).`);let r=e.digits,o=r.length-e.integerLen,i=Math.min(Math.max(t,o),n),s=i+e.integerLen,a=r[s];if(s>0){r.splice(Math.max(e.integerLen,s));for(let d=s;d=5)if(s-1<0){for(let d=0;d>s;d--)r.unshift(0),e.integerLen++;r.unshift(1),e.integerLen++}else r[s-1]++;for(;o=c?h.pop():u=!1),p>=10?1:0},0);l&&(r.unshift(l),e.integerLen++)}function Ba(e){let t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t}function aN(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var Ha=/\s+/,Hf=[],uN=(()=>{class e{constructor(n,r){this._ngEl=n,this._renderer=r,this.initialClasses=Hf,this.stateMap=new Map}set klass(n){this.initialClasses=n!=null?n.trim().split(Ha):Hf}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(Ha):n}ngDoCheck(){for(let r of this.initialClasses)this._updateState(r,!0);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let r of n)this._updateState(r,!0);else if(n!=null)for(let r of Object.keys(n))this._updateState(r,!!n[r]);this._applyStateDiff()}_updateState(n,r){let o=this.stateMap.get(n);o!==void 0?(o.enabled!==r&&(o.changed=!0,o.enabled=r),o.touched=!0):this.stateMap.set(n,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(let n of this.stateMap){let r=n[0],o=n[1];o.changed?(this._toggleClass(r,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),o.touched=!1}}_toggleClass(n,r){n=n.trim(),n.length>0&&n.split(Ha).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static{this.\u0275fac=function(r){return new(r||e)(xe(Xe),xe(Oo))}}static{this.\u0275dir=uo({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0})}}return e})();var cN=(()=>{class e{constructor(n){this._viewContainerRef=n,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(n){if(this._shouldRecreateView(n)){let r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let o=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(n){return!!n.ngTemplateOutlet||!!n.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(n,r,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,r,o):!1,get:(n,r,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,o)}})}static{this.\u0275fac=function(r){return new(r||e)(xe(On))}}static{this.\u0275dir=uo({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[ho]})}}return e})();function Za(e,t){return new x(2100,!1)}var $a=class{createSubscription(t,n){return La(()=>t.subscribe({next:n,error:r=>{throw r}}))}dispose(t){La(()=>t.unsubscribe())}},Ua=class{createSubscription(t,n){return t.then(n,r=>{throw r})}dispose(t){}},LI=new Ua,jI=new $a,lN=(()=>{class e{constructor(n){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=n}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(n){if(!this._obj){if(n)try{this.markForCheckOnValueUpdate=!1,this._subscribe(n)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return n!==this._obj?(this._dispose(),this.transform(n)):this._latestValue}_subscribe(n){this._obj=n,this._strategy=this._selectStrategy(n),this._subscription=this._strategy.createSubscription(n,r=>this._updateLatestValue(n,r))}_selectStrategy(n){if(Fo(n))return LI;if(Pa(n))return jI;throw Za(e,n)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(n,r){n===this._obj&&(this._latestValue=r,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static{this.\u0275fac=function(r){return new(r||e)(xe(Rn,16))}}static{this.\u0275pipe=co({name:"async",type:e,pure:!1,standalone:!0})}}return e})();var dN=(()=>{class e{constructor(n){this._locale=n}transform(n,r,o){if(!VI(n))return null;o||=this._locale;try{let i=BI(n);return OI(i,o,r)}catch(i){throw Za(e,i.message)}}static{this.\u0275fac=function(r){return new(r||e)(xe(ko,16))}}static{this.\u0275pipe=co({name:"number",type:e,pure:!0,standalone:!0})}}return e})();function VI(e){return!(e==null||e===""||e!==e)}function BI(e){if(typeof e=="string"&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if(typeof e!="number")throw new Error(`${e} is not a number`);return e}var fN=(()=>{class e{transform(n,r,o){if(n==null)return null;if(!this.supports(n))throw Za(e,n);return n.slice(r,o)}supports(n){return typeof n=="string"||Array.isArray(n)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275pipe=co({name:"slice",type:e,pure:!1,standalone:!0})}}return e})();var pN=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=al({type:e})}static{this.\u0275inj=qc({})}}return e})(),HI="browser",$I="server";function UI(e){return e===HI}function zI(e){return e===$I}var hN=(()=>{class e{static{this.\u0275prov=F({token:e,providedIn:"root",factory:()=>UI(D(Eo))?new za(D(jo),window):new Ga})}}return e})(),za=class{constructor(t,n){this.document=t,this.window=n,this.offset=()=>[0,0]}setOffset(t){Array.isArray(t)?this.offset=()=>t:this.offset=t}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(t){this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){let n=GI(this.document,t);n&&(this.scrollToElement(n),n.focus())}setHistoryScrollRestoration(t){this.window.history.scrollRestoration=t}scrollToElement(t){let n=t.getBoundingClientRect(),r=n.left+this.window.pageXOffset,o=n.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(r-i[0],o-i[1])}};function GI(e,t){let n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if(typeof e.createTreeWalker=="function"&&e.body&&typeof e.body.attachShadow=="function"){let r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT),o=r.currentNode;for(;o;){let i=o.shadowRoot;if(i){let s=i.getElementById(t)||i.querySelector(`[name="${t}"]`);if(s)return s}o=r.nextNode()}}return null}var Ga=class{setOffset(t){}getScrollPosition(){return[0,0]}scrollToPosition(t){}scrollToAnchor(t){}setHistoryScrollRestoration(t){}},$f=class{};var Wf=e=>e.src,WI=new N("",{providedIn:"root",factory:()=>Wf});var qI=new N("NG_OPTIMIZED_PRELOADED_IMAGES",{providedIn:"root",factory:()=>new Set}),ZI=(()=>{class e{constructor(){this.preloadedImages=D(qI),this.document=D(jo)}createPreloadLinkTag(n,r,o,i){if(this.preloadedImages.has(r))return;this.preloadedImages.add(r);let s=n.createElement("link");n.setAttribute(s,"as","image"),n.setAttribute(s,"href",r),n.setAttribute(s,"rel","preload"),n.setAttribute(s,"fetchpriority","high"),i&&n.setAttribute(s,"imageSizes",i),o&&n.setAttribute(s,"imageSrcset",o),n.appendChild(this.document.head,s)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var YI=/^((\s*\d+w\s*(,|$)){1,})$/;var QI=[1,2],KI=640;var JI=1920,XI=1080;var gN=(()=>{class e{constructor(){this.imageLoader=D(WI),this.config=ew(D(sd)),this.renderer=D(Oo),this.imgElement=D(Xe).nativeElement,this.injector=D(_e),this.isServer=zI(D(Eo)),this.preloadLinkCreator=D(ZI),this.lcpObserver=null,this._renderedSrc=null,this.priority=!1,this.disableOptimizedSrcset=!1,this.fill=!1}ngOnInit(){ge("NgOptimizedImage"),this.placeholder&&this.removePlaceholderOnLoad(this.imgElement),this.setHostAttributes()}setHostAttributes(){this.fill?this.sizes||="100vw":(this.setHostAttribute("width",this.width.toString()),this.setHostAttribute("height",this.height.toString())),this.setHostAttribute("loading",this.getLoadingBehavior()),this.setHostAttribute("fetchpriority",this.getFetchPriority()),this.setHostAttribute("ng-img","true");let n=this.updateSrcAndSrcset();this.sizes&&this.setHostAttribute("sizes",this.sizes),this.isServer&&this.priority&&this.preloadLinkCreator.createPreloadLinkTag(this.renderer,this.getRewrittenSrc(),n,this.sizes)}ngOnChanges(n){if(n.ngSrc&&!n.ngSrc.isFirstChange()){let r=this._renderedSrc;this.updateSrcAndSrcset(!0);let o=this._renderedSrc;this.lcpObserver!==null&&r&&o&&r!==o&&this.injector.get(Y).runOutsideAngular(()=>{this.lcpObserver?.updateImage(r,o)})}}callImageLoader(n){let r=n;return this.loaderParams&&(r.loaderParams=this.loaderParams),this.imageLoader(r)}getLoadingBehavior(){return!this.priority&&this.loading!==void 0?this.loading:this.priority?"eager":"lazy"}getFetchPriority(){return this.priority?"high":"auto"}getRewrittenSrc(){if(!this._renderedSrc){let n={src:this.ngSrc};this._renderedSrc=this.callImageLoader(n)}return this._renderedSrc}getRewrittenSrcset(){let n=YI.test(this.ngSrcset);return this.ngSrcset.split(",").filter(o=>o!=="").map(o=>{o=o.trim();let i=n?parseFloat(o):parseFloat(o)*this.width;return`${this.callImageLoader({src:this.ngSrc,width:i})} ${o}`}).join(", ")}getAutomaticSrcset(){return this.sizes?this.getResponsiveSrcset():this.getFixedSrcset()}getResponsiveSrcset(){let{breakpoints:n}=this.config,r=n;return this.sizes?.trim()==="100vw"&&(r=n.filter(i=>i>=KI)),r.map(i=>`${this.callImageLoader({src:this.ngSrc,width:i})} ${i}w`).join(", ")}updateSrcAndSrcset(n=!1){n&&(this._renderedSrc=null);let r=this.getRewrittenSrc();this.setHostAttribute("src",r);let o;return this.ngSrcset?o=this.getRewrittenSrcset():this.shouldGenerateAutomaticSrcset()&&(o=this.getAutomaticSrcset()),o&&this.setHostAttribute("srcset",o),o}getFixedSrcset(){return QI.map(r=>`${this.callImageLoader({src:this.ngSrc,width:this.width*r})} ${r}x`).join(", ")}shouldGenerateAutomaticSrcset(){let n=!1;return this.sizes||(n=this.width>JI||this.height>XI),!this.disableOptimizedSrcset&&!this.srcset&&this.imageLoader!==Wf&&!n}generatePlaceholder(n){let{placeholderResolution:r}=this.config;return n===!0?`url(${this.callImageLoader({src:this.ngSrc,width:r,isPlaceholder:!0})})`:typeof n=="string"?`url(${n})`:null}shouldBlurPlaceholder(n){return!n||!n.hasOwnProperty("blur")?!0:!!n.blur}removePlaceholderOnLoad(n){let r=()=>{let s=this.injector.get(Rn);o(),i(),this.placeholder=!1,s.markForCheck()},o=this.renderer.listen(n,"load",r),i=this.renderer.listen(n,"error",r);tw(n,r)}ngOnDestroy(){}setHostAttribute(n,r){this.renderer.setAttribute(this.imgElement,n,r)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275dir=uo({type:e,selectors:[["img","ngSrc",""]],hostVars:18,hostBindings:function(r,o){r&2&&Oa("position",o.fill?"absolute":null)("width",o.fill?"100%":null)("height",o.fill?"100%":null)("inset",o.fill?"0":null)("background-size",o.placeholder?"cover":null)("background-position",o.placeholder?"50% 50%":null)("background-repeat",o.placeholder?"no-repeat":null)("background-image",o.placeholder?o.generatePlaceholder(o.placeholder):null)("filter",o.placeholder&&o.shouldBlurPlaceholder(o.placeholderConfig)?"blur(15px)":null)},inputs:{ngSrc:[2,"ngSrc","ngSrc",nw],ngSrcset:"ngSrcset",sizes:"sizes",width:[2,"width","width",ka],height:[2,"height","height",ka],loading:"loading",priority:[2,"priority","priority",Fn],loaderParams:"loaderParams",disableOptimizedSrcset:[2,"disableOptimizedSrcset","disableOptimizedSrcset",Fn],fill:[2,"fill","fill",Fn],placeholder:[2,"placeholder","placeholder",rw],placeholderConfig:"placeholderConfig",src:"src",srcset:"srcset"},standalone:!0,features:[uf,ho]})}}return e})();function ew(e){let t={};return e.breakpoints&&(t.breakpoints=e.breakpoints.sort((n,r)=>n-r)),Object.assign({},fa,e,t)}function tw(e,t){e.complete&&e.naturalWidth&&t()}function nw(e){return typeof e=="string"?e:xt(e)}function rw(e){return typeof e=="string"&&e!=="true"&&e!=="false"&&e!==""?e:Fn(e)}export{me as a,ye as b,ow as c,Kf as d,L as e,ot as f,Wo as g,S as h,ei as i,ti as j,ie as k,on as l,Cp as m,bp as n,it as o,dE as p,iu as q,fE as r,au as s,pE as t,hE as u,sn as v,De as w,_p as x,Mp as y,xp as z,ut as A,ve as B,yp as C,le as D,ln as E,Pt as F,Sp as G,Tp as H,oi as I,ct as J,kp as K,lt as L,Lp as M,ii as N,Dp as O,jp as P,Tu as Q,dn as R,dt as S,si as T,Vp as U,Bp as V,Up as W,Au as X,ui as Y,zp as Z,Gp as _,Ou as $,li as aa,Ru as ba,Wp as ca,qp as da,Fu as ea,Zp as fa,Yp as ga,Pu as ha,x as ia,Gc as ja,F as ka,qc as la,AS as ma,N as na,M as oa,G as pa,D as qa,Ch as ra,bh as sa,vn as ta,OS as ua,al as va,uo as wa,co as xa,qh as ya,gl as za,Ze as Aa,RS as Ba,Qs as Ca,ho as Da,FS as Ea,PS as Fa,kS as Ga,LS as Ha,jS as Ia,Gg as Ja,_e as Ka,wo as La,Sn as Ma,pe as Na,Y as Oa,Et as Pa,Xe as Qa,Ki as Ra,VS as Sa,BS as Ta,um as Ua,Eo as Va,HS as Wa,$S as Xa,xt as Ya,ha as Za,US as _a,zS as $a,GS as ab,WS as bb,qS as cb,cd as db,Nm as eb,bo as fb,ZS as gb,Om as hb,YS as ib,zr as jb,QS as kb,xe as lb,KS as mb,Cn as nb,Yt as ob,Qt as pb,Zr as qb,Oo as rb,On as sb,ge as tb,tT as ub,Iv as vb,nT as wb,Sv as xb,rT as yb,uf as zb,Is as Ab,Pv as Bb,$v as Cb,Bt as Db,Gv as Eb,Wv as Fb,Zv as Gb,sD as Hb,Oa as Ib,aD as Jb,oT as Kb,iT as Lb,sT as Mb,aT as Nb,uT as Ob,cT as Pb,Ef as Qb,Cf as Rb,ID as Sb,bf as Tb,_f as Ub,CD as Vb,lT as Wb,_D as Xb,MD as Yb,RD as Zb,FD as _b,dT as $b,fT as ac,pT as bc,jD as cc,hT as dc,gT as ec,mT as fc,yT as gc,vT as hc,DT as ic,IT as jc,wT as kc,HD as lc,Sf as mc,$D as nc,ET as oc,CT as pc,bT as qc,_T as rc,MT as sc,xT as tc,ST as uc,TT as vc,NT as wc,AT as xc,OT as yc,Fo as zc,KD as Ac,JD as Bc,Po as Cc,RT as Dc,FT as Ec,Rn as Fc,kf as Gc,PT as Hc,Fn as Ic,ka as Jc,kT as Kc,La as Lc,DI as Mc,LT as Nc,ja as Oc,oN as Pc,Lf as Qc,jo as Rc,iN as Sc,Vo as Tc,EI as Uc,sN as Vc,CI as Wc,aN as Xc,uN as Yc,cN as Zc,lN as _c,dN as $c,fN as ad,pN as bd,HI as cd,UI as dd,zI as ed,hN as fd,$f as gd,gN as hd}; diff --git a/webui/dist/bitmagnet/browser/chunk-ML52OCX4.js b/webui/dist/bitmagnet/browser/chunk-5HTYRI4Q.js similarity index 84% rename from webui/dist/bitmagnet/browser/chunk-ML52OCX4.js rename to webui/dist/bitmagnet/browser/chunk-5HTYRI4Q.js index 335fd352..4d0f3b26 100644 --- a/webui/dist/bitmagnet/browser/chunk-ML52OCX4.js +++ b/webui/dist/bitmagnet/browser/chunk-5HTYRI4Q.js @@ -1 +1 @@ -import{b as D,d as H}from"./chunk-7OATZ42U.js";import{P as f,R as M,U as _,Ua as P,b as C,ja as u,na as b,oa as x,qa as v,xa as O}from"./chunk-4NEHCUZ2.js";import"./chunk-6XXA7HXI.js";import"./chunk-FKMTSCBK.js";import{Cb as p,Hb as c,Qb as e,Rb as n,Sb as r,Tb as s,Ub as l,kb as i,kc as m,lc as h,pc as g,ua as d}from"./chunk-3DR3CJRN.js";function y(t,w){if(t&1&&(s(0),e(1,"mat-card",1)(2,"mat-card-header")(3,"mat-toolbar")(4,"h2")(5,"mat-icon"),m(6,"dashboard"),n(),m(7),n()()(),e(8,"mat-card-content"),r(9,"mat-divider"),e(10,"div",2)(11,"mat-grid-list",3)(12,"mat-grid-tile",4),r(13,"app-health-card"),n()()()()(),l()),t&2){let a=w.$implicit;i(7),h(a("routes.dashboard")),i(5),c("colspan",1)("rowspan",1)}}var q=(()=>{class t{static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=d({type:t,selectors:[["app-dashboard"]],standalone:!0,features:[g],decls:1,vars:0,consts:[[4,"transloco"],[1,"dashboard-card"],[1,"grid-container"],["cols","1","rowHeight","500px"],[3,"colspan","rowspan"]],template:function(o,S){o&1&&p(0,y,14,3,"ng-container",0)},dependencies:[P,f,M,_,u,x,b,v,O,C,H,D],styles:[".grid-container[_ngcontent-%COMP%]{margin:20px}.more-button[_ngcontent-%COMP%]{position:absolute;top:5px;right:10px}app-health-card[_ngcontent-%COMP%]{width:100%;height:100%}app-health-card[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]{height:100%}mat-grid-tile[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]{width:100%}mat-toolbar[_ngcontent-%COMP%] h2[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{position:relative;top:3px;margin-right:14px;margin-left:32px}"]})}}return t})();export{q as DashboardHomeComponent}; +import{b as D,d as H}from"./chunk-IYIUYS3O.js";import{P as f,R as M,U as _,Ua as P,b as C,ja as u,na as b,oa as x,qa as v,xa as O}from"./chunk-HB55W55I.js";import"./chunk-6XXA7HXI.js";import"./chunk-ZBBMS7J5.js";import{Cb as p,Hb as c,Qb as e,Rb as n,Sb as r,Tb as s,Ub as l,kb as i,kc as m,lc as h,pc as g,ua as d}from"./chunk-FJILXII2.js";function y(t,w){if(t&1&&(s(0),e(1,"mat-card",1)(2,"mat-card-header")(3,"mat-toolbar")(4,"h2")(5,"mat-icon"),m(6,"dashboard"),n(),m(7),n()()(),e(8,"mat-card-content"),r(9,"mat-divider"),e(10,"div",2)(11,"mat-grid-list",3)(12,"mat-grid-tile",4),r(13,"app-health-card"),n()()()()(),l()),t&2){let a=w.$implicit;i(7),h(a("routes.dashboard")),i(5),c("colspan",1)("rowspan",1)}}var q=(()=>{class t{static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=d({type:t,selectors:[["app-dashboard"]],standalone:!0,features:[g],decls:1,vars:0,consts:[[4,"transloco"],[1,"dashboard-card"],[1,"grid-container"],["cols","1","rowHeight","500px"],[3,"colspan","rowspan"]],template:function(o,S){o&1&&p(0,y,14,3,"ng-container",0)},dependencies:[P,f,M,_,u,x,b,v,O,C,H,D],styles:[".grid-container[_ngcontent-%COMP%]{margin:20px}.more-button[_ngcontent-%COMP%]{position:absolute;top:5px;right:10px}app-health-card[_ngcontent-%COMP%]{width:100%;height:100%}app-health-card[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]{height:100%}mat-grid-tile[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]{width:100%}mat-toolbar[_ngcontent-%COMP%] h2[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{position:relative;top:3px;margin-right:14px;margin-left:32px}"]})}}return t})();export{q as DashboardHomeComponent}; diff --git a/webui/dist/bitmagnet/browser/chunk-W4X5IQAZ.js b/webui/dist/bitmagnet/browser/chunk-5TMWQQMY.js similarity index 87% rename from webui/dist/bitmagnet/browser/chunk-W4X5IQAZ.js rename to webui/dist/bitmagnet/browser/chunk-5TMWQQMY.js index 65c2181f..5f0d582f 100644 --- a/webui/dist/bitmagnet/browser/chunk-W4X5IQAZ.js +++ b/webui/dist/bitmagnet/browser/chunk-5TMWQQMY.js @@ -1 +1 @@ -import{c as U,e as j,f as B}from"./chunk-ZVYX4MB3.js";import"./chunk-DKVITRV6.js";import"./chunk-KUHKEGBL.js";import"./chunk-3PIWRAOL.js";import"./chunk-M3BEO55A.js";import{E as b,J as O,P as S,Q as I,R as w,S as E,U as A,Ua as F,V as z,b as P,i as y,qa as D,va as q,ya as H}from"./chunk-4NEHCUZ2.js";import"./chunk-6XXA7HXI.js";import{j as k}from"./chunk-FKMTSCBK.js";import{$b as c,Cb as C,Hb as l,Mb as h,Qb as i,Rb as a,Sb as p,Tb as x,Ub as M,cc as T,hb as _,kb as o,kc as d,lc as g,pc as v,qa as f,ua as u}from"./chunk-3DR3CJRN.js";function G(t,s){t&1&&p(0,"mat-progress-bar",1)}function L(t,s){t&1&&(i(0,"p"),d(1,"Not found!"),a())}function N(t,s){if(t&1&&(i(0,"mat-card",2)(1,"mat-card-header")(2,"mat-icon",3),d(3),a(),i(4,"mat-card-title")(5,"h2"),d(6),a(),i(7,"a",4),p(8,"mat-icon",5),a()(),i(9,"mat-card-subtitle"),p(10,"app-torrent-chips",6),a()(),i(11,"mat-card-content"),p(12,"app-torrent-content",7),a()()),t&2){let n,e,m=c().$implicit,r=c();o(2),l("matTooltip",m("content_types.singular."+((n=r.torrentContent.contentType)!==null&&n!==void 0?n:"null"))),o(),g((e=(e=r.contentTypeInfo(r.torrentContent.contentType))==null?null:e.icon)!==null&&e!==void 0?e:"question_mark"),o(3),g(r.torrentContent.torrent.name),o(),T("href",r.torrentContent.torrent.magnetUri,_),o(3),l("torrentContent",r.torrentContent),o(2),l("torrentContent",r.torrentContent)("heading",!1)}}function Q(t,s){if(t&1&&(x(0),C(1,G,1,0,"mat-progress-bar",1)(2,L,2,0,"p")(3,N,13,7,"mat-card",2),M()),t&2){let n=c();o(),h(n.loading?1:n.found?3:2)}}var mt=(()=>{class t{constructor(){this.route=f(k),this.apollo=f(y),this.loading=!0,this.found=!1,this.contentTypeInfo=U}ngOnInit(){this.loading=!0,this.route.paramMap.subscribe(n=>{this.apollo.query({query:b,variables:{input:{infoHashes:[n.get("infoHash")]}},fetchPolicy:"no-cache"}).subscribe(e=>{let m=e.data.torrentContent.search.items;this.torrentContent=m[0],this.found=m.length>0,this.loading=!1})})}static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275cmp=u({type:t,selectors:[["app-torrent-permalink"]],standalone:!0,features:[v],decls:1,vars:0,consts:[[4,"transloco"],["mode","indeterminate"],[1,"torrent-permalink"],["matCardAvatar","",3,"matTooltip"],[1,"magnet-link",3,"href"],["svgIcon","magnet"],[3,"torrentContent"],[3,"torrentContent","heading"]],template:function(e,m){e&1&&C(0,Q,4,1,"ng-container",0)},dependencies:[F,S,z,w,A,E,I,D,q,H,P,O,B,j],styles:[".torrent-permalink[_ngcontent-%COMP%]{max-width:900px;margin:20px auto}.torrent-permalink[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-size:24px;word-break:break-word;overflow-wrap:break-word;padding-right:80px}.torrent-permalink[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%] .magnet-link[_ngcontent-%COMP%]{position:absolute;right:20px;top:20px}.torrent-permalink[_ngcontent-%COMP%] .mat-mdc-card-avatar[_ngcontent-%COMP%]{font-size:44px;margin-top:-10px;border-radius:0;overflow:visible}.torrent-permalink[_ngcontent-%COMP%] mat-card-subtitle[_ngcontent-%COMP%]{margin:16px 0 14px -56px;font-size:6px}"]})}}return t})();export{mt as TorrentPermalinkComponent}; +import{c as U,e as j,f as B}from"./chunk-7B77IKGA.js";import"./chunk-C7MPMHOQ.js";import"./chunk-JIO2QO4M.js";import"./chunk-33KK2FKQ.js";import"./chunk-TC5EWLZ6.js";import{E as b,J as O,P as S,Q as I,R as w,S as E,U as A,Ua as F,V as z,b as P,i as y,qa as D,va as q,ya as H}from"./chunk-HB55W55I.js";import"./chunk-6XXA7HXI.js";import{j as k}from"./chunk-ZBBMS7J5.js";import{$b as c,Cb as C,Hb as l,Mb as h,Qb as i,Rb as a,Sb as p,Tb as x,Ub as M,cc as T,hb as _,kb as o,kc as d,lc as g,pc as v,qa as f,ua as u}from"./chunk-FJILXII2.js";function G(t,s){t&1&&p(0,"mat-progress-bar",1)}function L(t,s){t&1&&(i(0,"p"),d(1,"Not found!"),a())}function N(t,s){if(t&1&&(i(0,"mat-card",2)(1,"mat-card-header")(2,"mat-icon",3),d(3),a(),i(4,"mat-card-title")(5,"h2"),d(6),a(),i(7,"a",4),p(8,"mat-icon",5),a()(),i(9,"mat-card-subtitle"),p(10,"app-torrent-chips",6),a()(),i(11,"mat-card-content"),p(12,"app-torrent-content",7),a()()),t&2){let n,e,m=c().$implicit,r=c();o(2),l("matTooltip",m("content_types.singular."+((n=r.torrentContent.contentType)!==null&&n!==void 0?n:"null"))),o(),g((e=(e=r.contentTypeInfo(r.torrentContent.contentType))==null?null:e.icon)!==null&&e!==void 0?e:"question_mark"),o(3),g(r.torrentContent.torrent.name),o(),T("href",r.torrentContent.torrent.magnetUri,_),o(3),l("torrentContent",r.torrentContent),o(2),l("torrentContent",r.torrentContent)("heading",!1)}}function Q(t,s){if(t&1&&(x(0),C(1,G,1,0,"mat-progress-bar",1)(2,L,2,0,"p")(3,N,13,7,"mat-card",2),M()),t&2){let n=c();o(),h(n.loading?1:n.found?3:2)}}var mt=(()=>{class t{constructor(){this.route=f(k),this.apollo=f(y),this.loading=!0,this.found=!1,this.contentTypeInfo=U}ngOnInit(){this.loading=!0,this.route.paramMap.subscribe(n=>{this.apollo.query({query:b,variables:{input:{infoHashes:[n.get("infoHash")]}},fetchPolicy:"no-cache"}).subscribe(e=>{let m=e.data.torrentContent.search.items;this.torrentContent=m[0],this.found=m.length>0,this.loading=!1})})}static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275cmp=u({type:t,selectors:[["app-torrent-permalink"]],standalone:!0,features:[v],decls:1,vars:0,consts:[[4,"transloco"],["mode","indeterminate"],[1,"torrent-permalink"],["matCardAvatar","",3,"matTooltip"],[1,"magnet-link",3,"href"],["svgIcon","magnet"],[3,"torrentContent"],[3,"torrentContent","heading"]],template:function(e,m){e&1&&C(0,Q,4,1,"ng-container",0)},dependencies:[F,S,z,w,A,E,I,D,q,H,P,O,B,j],styles:[".torrent-permalink[_ngcontent-%COMP%]{max-width:900px;margin:20px auto}.torrent-permalink[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-size:24px;word-break:break-word;overflow-wrap:break-word;padding-right:80px}.torrent-permalink[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%] .magnet-link[_ngcontent-%COMP%]{position:absolute;right:20px;top:20px}.torrent-permalink[_ngcontent-%COMP%] .mat-mdc-card-avatar[_ngcontent-%COMP%]{font-size:44px;margin-top:-10px;border-radius:0;overflow:visible}.torrent-permalink[_ngcontent-%COMP%] mat-card-subtitle[_ngcontent-%COMP%]{margin:16px 0 14px -56px;font-size:6px}"]})}}return t})();export{mt as TorrentPermalinkComponent}; diff --git a/webui/dist/bitmagnet/browser/chunk-7Y5J4R45.js b/webui/dist/bitmagnet/browser/chunk-6BQYS3OK.js similarity index 97% rename from webui/dist/bitmagnet/browser/chunk-7Y5J4R45.js rename to webui/dist/bitmagnet/browser/chunk-6BQYS3OK.js index b501e515..05331f32 100644 --- a/webui/dist/bitmagnet/browser/chunk-7Y5J4R45.js +++ b/webui/dist/bitmagnet/browser/chunk-6BQYS3OK.js @@ -1 +1 @@ -import{a as Ne,b as Ae,c as j}from"./chunk-OYPFZA36.js";import{e as je}from"./chunk-AV47NZN7.js";import{a as Me,m as De}from"./chunk-3PIWRAOL.js";import{a as Ie}from"./chunk-M3BEO55A.js";import{G as ve,J as ke,M as Te,P as J,Q as Se,R as K,U as Q,Ua as q,a as be,b as G,i as ge,n as Ce,na as ye,oa as we,qa as Y,r as xe,ra as Oe,va as Ee,xa as Pe,ya as Be,za as Ve}from"./chunk-4NEHCUZ2.js";import"./chunk-6XXA7HXI.js";import"./chunk-FKMTSCBK.js";import{$b as p,B as ue,Cb as F,Ea as _,Fa as f,Hb as l,Kb as N,N as pe,Nb as D,Ob as E,Pb as P,Q as te,Qb as i,Rb as c,Sb as B,Tb as z,Ub as H,Wb as re,Zb as h,_c as he,a as v,b as k,ka as de,kb as a,kc as u,l as I,lc as T,mc as _e,o as me,pc as U,qa as O,qc as fe,ua as L,uc as ne,vc as ie}from"./chunk-3DR3CJRN.js";var R=(n,s)=>{let{bucketParams:e,earliestBucket:r}=Ye(n,s),t=Object.entries(s.torrent.metrics.buckets.reduce((b,x)=>{if(x.source!==(n.source??x.source))return b;let C=y(x.bucket,e);if(r&&r.index>C.index&&(C=void 0),!C)return b;let d=b[x.source]??[];return k(v({},b),{[x.source]:{created:x.updated?d.created:k(v({},d.created),{[C.key]:{count:x.count+(d.created?.[C.key]?.count??0),startTime:C.start}}),updated:x.updated?k(v({},d.updated),{[C.key]:{count:x.count+(d.updated?.[C.key]?.count??0),startTime:C.start}}):d.updated}})},{})).map(([b,x])=>{let C;if(Object.keys(x).length){let d=Array(),M=Re(Array("created","updated").flatMap(S=>{let A=Re(Object.entries(x[S]??{}).filter(([,ee])=>ee?.count).sort(([ee],[Qe])=>parseInt(ee)b.events?[b.events.earliestBucket]:[]).sort()[0],o=t.flatMap(b=>b.events?[b.events.latestBucket]:[]).sort().reverse()[0];return g&&o&&(m={earliestBucket:g,latestBucket:o}),{params:k(v({},n),{buckets:e}),sourceSummaries:t,bucketSpan:m,availableSources:s.torrent.listSources.sources.map(b=>({key:b.key,name:b.name}))}},Re=n=>Object.fromEntries(n),Ye=(n,s)=>{let e=n.buckets.duration==="AUTO"?"hour":n.buckets.duration,r=n.buckets.multiplier==="AUTO"?1:n.buckets.multiplier,t=n.buckets.timeframe,m=new Date,g=y(m,{duration:e,multiplier:r}),o=y(m.getTime()-1e3*V[t],{duration:e,multiplier:r}),b=[o,...s.torrent.metrics.buckets.flatMap(d=>[y(d.bucket,{duration:e,multiplier:r})]),g].filter(d=>d.index>=o.index).sort((d,M)=>d.index-M.index),x=b[0],C=b[b.length-1];if(n.buckets.multiplier==="AUTO"){let M=C.index-x.index;r=Math.min(60,Math.max(Math.floor(M/(20*5))*5,1))}return{bucketParams:{duration:e,multiplier:r,timeframe:t},earliestBucket:y(m.getTime()-1e3*V[t],{duration:e,multiplier:r}),latestBucket:y(Math.max(m.getTime(),C.start.getTime()),{duration:e,multiplier:r})}},y=(n,s)=>{let e=new Date(n),r=1e3*W[s.duration]*s.multiplier,t=Math.floor(e.getTime()/r);return{key:`${t}`,index:t,start:new Date(t*r)}};var oe={duration:"minute",multiplier:1,timeframe:"hours_1"},$e=["day","hour","minute"],W={minute:60,hour:60*60,day:60*60*24},ae={buckets:oe,autoRefresh:"off"},se={torrent:{metrics:{buckets:[]},listSources:{sources:[{key:"dht",name:"DHT"}]}}},X=["created","updated"],Le=["minutes_15","minutes_30","hours_1","hours_6","hours_12","days_1","weeks_1"],V={minutes_15:60*15,minutes_30:60*30,hours_1:60*60,hours_6:60*60*6,hours_12:60*60*12,days_1:60*60*24,weeks_1:60*60*24*7},Fe=["off","seconds_10","seconds_30","minutes_1","minutes_5"],ze={off:null,seconds_10:10,seconds_30:30,minutes_1:60,minutes_5:60*5},He=R(ae,se);var Z=class{constructor(s,e=ae,r){this.apollo=s,this.errorsService=r,this.rawResultSubject=new I(se),this.resultSubject=new I(He),this.result$=this.resultSubject.asObservable(),this.loadingSubject=new I(!1),this.paramsSubject=new I(e),this.params$=this.paramsSubject.asObservable(),this.variablesSubject=new I(Ue(e)),this.paramsSubject.pipe(te(50)).subscribe(t=>{let m=this.variablesSubject.getValue(),g=Ue(t);JSON.stringify(m)!==JSON.stringify(g)?this.variablesSubject.next(g):this.resultSubject.next(R(t,this.rawResultSubject.getValue()))}),this.variablesSubject.pipe(te(50)).subscribe(t=>this.request(t)),this.rawResultSubject.subscribe(t=>{let m=this.paramsSubject.getValue();this.resultSubject.next(R(m,t)),this.setInterval(m.autoRefresh)})}setInterval(s){clearTimeout(this.refreshTimeout);let e=ze[s??this.params.autoRefresh];e&&(this.refreshTimeout=setTimeout(()=>{this.refresh()},e*1e3))}get params(){return this.paramsSubject.getValue()}get bucketDuration(){let s=this.params.buckets.duration;return s==="AUTO"?"hour":s}get bucketMultiplier(){return this.resultSubject.getValue().params.buckets.multiplier??this.params.buckets.multiplier}get loading(){return this.loadingSubject.getValue()}setTimeframe(s){this.updateParams(e=>k(v({},e),{buckets:k(v({},e.buckets),{timeframe:s})}))}setSource(s){this.updateParams(e=>k(v({},e),{source:s??void 0}))}setBucketDuration(s,e){this.updateParams(r=>k(v({},r),{buckets:k(v({},r.buckets),{duration:s,multiplier:e??"AUTO"})}))}setBucketMultiplier(s){this.updateParams(e=>k(v({},e),{buckets:k(v({},e.buckets),{multiplier:s})}))}setEvent(s){this.updateParams(e=>k(v({},e),{event:s??void 0}))}setAutoRefreshInterval(s){this.updateParams(e=>k(v({},e),{autoRefresh:s}))}updateParams(s){this.paramsSubject.next(s(this.params))}refresh(){this.variablesSubject.next(this.variablesSubject.getValue())}request(s){return clearTimeout(this.refreshTimeout),this.loadingSubject.next(!0),this.apollo.query({query:ve,variables:s,fetchPolicy:"no-cache"}).pipe(ue(e=>{e&&(this.loadingSubject.next(!1),this.rawResultSubject.next(e.data))})).pipe(pe(e=>(this.errorsService.addError(`Failed to load torrent metrics: ${e.message}`),this.loadingSubject.next(!1),this.setInterval(),me))).subscribe()}},Ue=n=>({input:{bucketDuration:n.buckets.duration==="AUTO"?"hour":n.buckets.duration,sources:n.source?[n.source]:void 0,startTime:new Date(new Date().getTime()-1e3*V[n.buckets.timeframe]).toISOString()}});var $={created:"primary",updated:"secondary"},Je=(()=>{class n{constructor(){this.themeInfo=O(je),this.transloco=O(be)}create(e){let{colors:r}=this.themeInfo.info,t=Array(),m=[];if(e){let g=e.sourceSummaries.filter(d=>!d.isEmpty),o=Array.from(new Set(g.flatMap(d=>d.events?[d.events.earliestBucket,d.events.latestBucket]:[]))).sort(),b=new Date,x=Math.min(o[0],y(b.getTime()-1e3*V[e.params.buckets.timeframe],e.params.buckets).index),C=Math.max(o[o.length-1],y(b,e.params.buckets).index);if(o.length){for(let M=x;M<=C;M++)t.push(this.formatBucketKey(e.params.buckets,M));let d=X.filter(M=>(e.params.event??M)===M);for(let M of g)for(let S of d){let A=Array();for(let w=x;w<=C;w++)A.push(M.events?.eventBuckets?.[S]?.entries?.[`${w}`]?.count??0);m.push({yAxisID:"yCount",label:[M.source,S].join("/"),data:A,borderColor:r[j($[S],50)],pointBackgroundColor:r[j($[S],20)],pointBorderColor:r[j($[S],80)],pointHoverBackgroundColor:r[j($[S],40)],pointHoverBorderColor:r[j($[S],60)]})}}}return{type:"line",options:{animation:!1,elements:{line:{tension:.5}},scales:{yCount:{position:"left",ticks:{callback:g=>parseInt(g).toLocaleString(this.transloco.getActiveLang())}}},plugins:{legend:{display:!0},decimation:{enabled:!0}}},data:{labels:t,datasets:m}}}formatBucketKey(e,r){let t;switch(e.duration){case"day":t="d LLL";break;case"hour":t="d LLL H:00";break;case"minute":t="H:mm";break}return Ne(1e3*W[e.duration]*e.multiplier*r,t,{locale:De(this.transloco.getActiveLang())})}static{this.\u0275fac=function(r){return new(r||n)}}static{this.\u0275prov=de({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var Ze=(n,s)=>s.key,et=()=>["dht"];function tt(n,s){if(n&1&&(i(0,"mat-option",6),u(1),c()),n&2){let e=s.$implicit,r=p().$implicit;l("value",e),a(),T(r("dashboard.interval."+e))}}function rt(n,s){if(n&1&&(i(0,"mat-option",6),u(1),c()),n&2){let e=s.$implicit,r=p().$implicit;l("value",e),a(),T(r("dashboard.interval."+e+"s"))}}function nt(n,s){if(n&1&&(i(0,"mat-option",6),u(1),c()),n&2){let e=s.$implicit;l("value",e.key),a(),T(e.name)}}function it(n,s){if(n&1){let e=re();i(0,"button",16),h("click",function(){let t=_(e).$implicit,m=p(2);return f(m.torrentMetricsController.params.source===t||m.torrentMetricsController.setSource(t))}),i(1,"mat-icon"),u(2),c()()}if(n&2){let e=s.$implicit,r=p(2);N(r.torrentMetricsController.params.source===e?"selected":"deselected"),l("matTooltip",e),a(2),T(r.torrentMetricsController.params.source===e?"radio_button_checked":"radio_button_unchecked")}}function ot(n,s){if(n&1&&(i(0,"mat-option",6),u(1),c()),n&2){let e=s.$implicit,r=p().$implicit;l("value",e),a(),T(r("dashboard.event."+e))}}function at(n,s){if(n&1&&(i(0,"mat-option",6),u(1),c()),n&2){let e=s.$implicit,r=p().$implicit;l("value",e),a(),T(r("dashboard.interval."+e))}}function st(n,s){if(n&1){let e=re();z(0),i(1,"mat-card")(2,"mat-card-content")(3,"mat-grid-list",1)(4,"mat-grid-tile",2)(5,"mat-card",3)(6,"mat-card-header")(7,"mat-card-title")(8,"h4"),u(9),c()()(),i(10,"mat-card-content")(11,"mat-form-field",4)(12,"mat-select",5),h("valueChange",function(t){_(e);let m=p();return f(m.torrentMetricsController.setTimeframe(t))}),E(13,tt,2,2,"mat-option",6,D),c()(),i(15,"div",7)(16,"button",8),h("click",function(){_(e);let t=p();return f(t.torrentMetricsController.setTimeframe(t.timeframeNames[0]))}),i(17,"mat-icon"),u(18,"first_page"),c()(),i(19,"button",8),h("click",function(){_(e);let t=p();return f(t.torrentMetricsController.setTimeframe(t.timeframeNames[t.timeframeNames.indexOf(t.torrentMetricsController.params.buckets.timeframe)-1]))}),i(20,"mat-icon"),u(21,"navigate_before"),c()(),i(22,"button",8),h("click",function(){_(e);let t=p();return f(t.torrentMetricsController.setTimeframe(t.timeframeNames[t.timeframeNames.indexOf(t.torrentMetricsController.params.buckets.timeframe)+1]))}),i(23,"mat-icon"),u(24,"navigate_next"),c()(),i(25,"button",8),h("click",function(){_(e);let t=p();return f(t.torrentMetricsController.setTimeframe(t.timeframeNames[t.timeframeNames.length-1]))}),i(26,"mat-icon"),u(27,"last_page"),c()()()()()(),i(28,"mat-grid-tile",2)(29,"mat-card",9)(30,"mat-card-header")(31,"mat-card-title")(32,"h4"),u(33),c()()(),i(34,"mat-card-content")(35,"mat-form-field",10)(36,"input",11),ne(37,"async"),h("change",function(t){_(e);let m=p();return f(m.handleMultiplierEvent(t))}),c()(),i(38,"mat-form-field",12)(39,"mat-select",5),h("valueChange",function(t){_(e);let m=p();return f(m.torrentMetricsController.setBucketDuration(t))}),E(40,rt,2,2,"mat-option",6,D),c()(),i(42,"div",7)(43,"button",8),h("click",function(){_(e);let t=p();return f(t.torrentMetricsController.setBucketMultiplier(t.torrentMetricsController.bucketMultiplier-1))}),i(44,"mat-icon"),u(45,"remove"),c()(),i(46,"button",13),h("click",function(){_(e);let t=p();return f(t.torrentMetricsController.setBucketMultiplier(t.torrentMetricsController.bucketMultiplier+1))}),i(47,"mat-icon"),u(48,"add"),c()(),i(49,"button",8),h("click",function(){_(e);let t=p();return f(t.torrentMetricsController.setBucketDuration(t.resolutionNames[0]))}),i(50,"mat-icon"),u(51,"first_page"),c()(),i(52,"button",8),h("click",function(){_(e);let t=p();return f(t.torrentMetricsController.setBucketDuration(t.resolutionNames[t.resolutionNames.indexOf(t.torrentMetricsController.bucketDuration)-1]))}),i(53,"mat-icon"),u(54,"navigate_before"),c()(),i(55,"button",8),h("click",function(){_(e);let t=p();return f(t.torrentMetricsController.setBucketDuration(t.resolutionNames[t.resolutionNames.indexOf(t.torrentMetricsController.bucketDuration)+1]))}),i(56,"mat-icon"),u(57,"navigate_next"),c()(),i(58,"button",8),h("click",function(){_(e);let t=p();return f(t.torrentMetricsController.setBucketDuration(t.resolutionNames[t.resolutionNames.length-1]))}),i(59,"mat-icon"),u(60,"last_page"),c()()()()()(),i(61,"mat-grid-tile",2)(62,"mat-card")(63,"mat-card-header")(64,"mat-card-title")(65,"h4"),u(66),c()()(),i(67,"mat-card-content")(68,"mat-form-field",4)(69,"mat-select",5),h("valueChange",function(t){_(e);let m=p();return f(m.torrentMetricsController.setSource(t==="_all"?null:t))}),i(70,"mat-option",14),u(71,"All"),c(),E(72,nt,2,2,"mat-option",6,Ze),ne(74,"async"),c()(),i(75,"div",15)(76,"button",16),h("click",function(){_(e);let t=p();return f(t.torrentMetricsController.setSource(null))}),i(77,"mat-icon",17),u(78,"workspaces"),c()(),E(79,it,3,4,"button",18,D),c()()()(),i(81,"mat-grid-tile",2)(82,"mat-card")(83,"mat-card-header")(84,"mat-card-title")(85,"h4"),u(86),c()()(),i(87,"mat-card-content")(88,"mat-form-field",4)(89,"mat-select",5),h("valueChange",function(t){_(e);let m=p();return f(m.torrentMetricsController.setEvent(t==="_all"?null:t))}),i(90,"mat-option",14),u(91,"All"),c(),E(92,ot,2,2,"mat-option",6,D),c()(),i(94,"div",15)(95,"button",16),h("click",function(){_(e);let t=p();return f(t.torrentMetricsController.setEvent(null))}),i(96,"mat-icon",17),u(97,"radio_button_checked"),c()(),i(98,"button",16),h("click",function(){_(e);let t=p();return f(t.torrentMetricsController.params.event==="created"||t.torrentMetricsController.setEvent("created"))}),i(99,"mat-icon"),u(100,"add_circle"),c()(),i(101,"button",16),h("click",function(){_(e);let t=p();return f(t.torrentMetricsController.params.event==="updated"||t.torrentMetricsController.setEvent("updated"))}),i(102,"mat-icon"),u(103,"check_circle"),c()()()()()(),i(104,"mat-grid-tile",2)(105,"mat-card",19)(106,"mat-card-header")(107,"mat-card-title")(108,"h4"),u(109),c()()(),i(110,"mat-card-content")(111,"mat-form-field",4)(112,"mat-select",5),h("valueChange",function(t){_(e);let m=p();return f(m.torrentMetricsController.setAutoRefreshInterval(t))}),E(113,at,2,2,"mat-option",6,D),c()(),i(115,"div",15)(116,"button",16),h("click",function(){_(e);let t=p();return f(t.torrentMetricsController.refresh())}),i(117,"mat-icon"),u(118,"sync"),c()()()()()()(),i(119,"div",20),B(120,"mat-progress-bar",21),c(),i(121,"mat-grid-list",1)(122,"mat-grid-tile",2)(123,"mat-card")(124,"mat-card-header")(125,"mat-card-title")(126,"h4"),u(127),c()()(),i(128,"mat-card-content"),B(129,"app-chart",22),c()()(),B(130,"mat-grid-tile",2),c()()(),H()}if(n&2){let e,r,t,m,g=s.$implicit,o=p();a(3),l("cols",o.breakpoints.sizeAtLeast("Large")?5:o.breakpoints.sizeAtLeast("Medium")?3:o.breakpoints.sizeAtLeast("Small")?2:1),a(),l("colspan",1)("rowspan",2),a(5),T(g("dashboard.metrics.timeframe")),a(3),l("value",o.torrentMetricsController.params.buckets.timeframe),a(),P(o.timeframeNames),a(3),l("disabled",o.timeframeNames.indexOf(o.torrentMetricsController.params.buckets.timeframe)<=0),a(3),l("disabled",o.timeframeNames.indexOf(o.torrentMetricsController.params.buckets.timeframe)<=0),a(3),l("disabled",o.timeframeNames.indexOf(o.torrentMetricsController.params.buckets.timeframe)>=o.timeframeNames.length-1),a(3),l("disabled",o.timeframeNames.indexOf(o.torrentMetricsController.params.buckets.timeframe)>=o.timeframeNames.length-1),a(3),l("colspan",1)("rowspan",2),a(5),_e(" ",g("dashboard.metrics.resolution")," "),a(3),l("placeholder",(e=(e=ie(37,57,o.torrentMetricsController.result$))==null||e.params==null||e.params.buckets==null||e.params.buckets.multiplier==null?null:e.params.buckets.multiplier.toString())!==null&&e!==void 0?e:"")("value",o.torrentMetricsController.params.buckets.multiplier),a(3),l("value",o.torrentMetricsController.bucketDuration),a(),P(o.resolutionNames),a(3),l("disabled",o.torrentMetricsController.bucketMultiplier===1),a(6),l("disabled",o.resolutionNames.indexOf(o.torrentMetricsController.bucketDuration)<=0),a(3),l("disabled",o.resolutionNames.indexOf(o.torrentMetricsController.bucketDuration)<=0),a(3),l("disabled",o.resolutionNames.indexOf(o.torrentMetricsController.bucketDuration)>=o.resolutionNames.length-1),a(3),l("disabled",o.resolutionNames.indexOf(o.torrentMetricsController.bucketDuration)>=o.resolutionNames.length-1),a(3),l("colspan",1)("rowspan",2),a(5),T(g("torrents.source")),a(3),l("value",(r=o.torrentMetricsController.params.source)!==null&&r!==void 0?r:"_all"),a(3),P((t=ie(74,59,o.torrentMetricsController.result$))==null?null:t.availableSources),a(4),N(o.torrentMetricsController.params.source?"deselected":"selected"),l("matTooltip","all"),a(3),P(fe(61,et)),a(2),l("colspan",1)("rowspan",2),a(5),T(g("dashboard.metrics.event")),a(3),l("value",(m=o.torrentMetricsController.params.event)!==null&&m!==void 0?m:"_all"),a(3),P(o.eventNames),a(3),N(o.torrentMetricsController.params.event?"deselected":"selected"),l("matTooltip","all"),a(3),N(o.torrentMetricsController.params.event==="created"?"selected":"deselected"),l("matTooltip","created"),a(3),N(o.torrentMetricsController.params.event==="updated"?"selected":"deselected"),l("matTooltip","updated"),a(3),l("colspan",1)("rowspan",2),a(5),T(g("general.refresh")),a(3),l("value",o.torrentMetricsController.params.autoRefresh),a(),P(o.autoRefreshIntervalNames),a(3),l("matTooltip","Refresh"),a(4),l("mode",o.torrentMetricsController.loading?"indeterminate":"determinate")("value",0),a(),l("cols",o.breakpoints.sizeAtLeast("Large")?2:1),a(),l("colspan",1)("rowspan",6),a(5),T(g("dashboard.metrics.throughput")),a(2),l("adapter",o.timeline)("$data",o.torrentMetricsController.result$)("height",400)("width",550),a(),l("colspan",1)("rowspan",5)}}var Ke=(()=>{class n{constructor(){this.breakpoints=O(Ie),this.apollo=O(ge),this.torrentMetricsController=new Z(this.apollo,{buckets:oe,autoRefresh:"seconds_30"},O(Me)),this.timeline=O(Je),this.resolutionNames=$e,this.timeframeNames=Le,this.autoRefreshIntervalNames=Fe,this.eventNames=X}ngOnDestroy(){this.torrentMetricsController.setAutoRefreshInterval("off")}handleMultiplierEvent(e){let r=e.currentTarget.value;this.torrentMetricsController.setBucketMultiplier(/^\d+$/.test(r)?parseInt(r):"AUTO")}static{this.\u0275fac=function(r){return new(r||n)}}static{this.\u0275cmp=L({type:n,selectors:[["app-torrent-metrics"]],standalone:!0,features:[U],decls:1,vars:0,consts:[[4,"transloco"],["rowHeight","100px",3,"cols"],[3,"colspan","rowspan"],[1,"form-timeframe"],["subscriptSizing","dynamic"],[3,"valueChange","value"],[3,"value"],[1,"paginator","actions"],["mat-icon-button","",3,"click","disabled"],[1,"form-resolution"],["subscriptSizing","dynamic",1,"form-input-multiplier"],["type","number","matInput","","min","1","step","1",3,"change","placeholder","value"],["subscriptSizing","dynamic",1,"form-select-duration"],["mat-icon-button","",3,"click"],["value","_all"],[1,"actions"],["mat-icon-button","",3,"click","matTooltip"],["fontSet","material-icons"],["mat-icon-button","",3,"class","matTooltip"],[1,"form-refresh"],[1,"progress-bar-container"],[3,"mode","value"],[3,"adapter","$data","height","width"]],template:function(r,t){r&1&&F(0,st,131,62,"ng-container",0)},dependencies:[q,Ce,xe,J,K,Q,Se,Te,we,ye,Y,Oe,Ee,Ve,Be,G,he,Ae,ke],styles:[".actions[_ngcontent-%COMP%]{width:210px;padding-top:12px;--mdc-icon-button-state-layer-size: 32px}.actions[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:22px}.actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-right:0}.progress-bar-container[_ngcontent-%COMP%]{width:100%;height:10px}mat-grid-tile[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]{width:100%}mat-grid-tile[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{min-width:190px}mat-grid-tile[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{margin-bottom:16px;font-size:18px}mat-form-field[_ngcontent-%COMP%]{width:186px}.form-resolution[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{margin-left:-2px}.form-resolution[_ngcontent-%COMP%] .form-input-multiplier[_ngcontent-%COMP%]{width:60px;margin-right:10px}.form-resolution[_ngcontent-%COMP%] .form-input-multiplier[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::-webkit-outer-spin-button, .form-resolution[_ngcontent-%COMP%] .form-input-multiplier[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.form-resolution[_ngcontent-%COMP%] .form-input-multiplier[_ngcontent-%COMP%] input[type=number][_ngcontent-%COMP%]{-moz-appearance:textfield}.form-resolution[_ngcontent-%COMP%] .form-select-duration[_ngcontent-%COMP%]{width:116px}"]})}}return n})();function ct(n,s){if(n&1&&(z(0),i(1,"mat-card",1)(2,"mat-card-header")(3,"mat-toolbar")(4,"h2"),B(5,"mat-icon",2),u(6),c()()(),i(7,"mat-card-content"),B(8,"app-torrent-metrics"),c()(),H()),n&2){let e=s.$implicit;a(6),T(e("routes.torrents"))}}var tr=(()=>{class n{static{this.\u0275fac=function(r){return new(r||n)}}static{this.\u0275cmp=L({type:n,selectors:[["app-torrents"]],standalone:!0,features:[U],decls:1,vars:0,consts:[[4,"transloco"],[1,"dashboard-card"],["svgIcon","magnet"]],template:function(r,t){r&1&&F(0,ct,9,1,"ng-container",0)},dependencies:[q,J,K,Q,Y,Pe,G,Ke],styles:["mat-card-header[_ngcontent-%COMP%]{flex-wrap:wrap}mat-card-header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:18px;margin:0 60px 0 48px;height:48px;line-height:48px}mat-card-header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{position:relative;top:6px;margin-right:14px;line-height:1.25rem}mat-card-header[_ngcontent-%COMP%] nav[_ngcontent-%COMP%]{flex:0 0 100%}mat-card-header[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin-top:2px}mat-card-header[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] a[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:12px}"]})}}return n})();export{tr as TorrentsDashboardComponent}; +import{a as Ne,b as Ae,c as j}from"./chunk-C7LQJIED.js";import{e as je}from"./chunk-VHNPENGG.js";import{a as Me,m as De}from"./chunk-33KK2FKQ.js";import{a as Ie}from"./chunk-TC5EWLZ6.js";import{G as ve,J as ke,M as Te,P as J,Q as Se,R as K,U as Q,Ua as q,a as be,b as G,i as ge,n as Ce,na as ye,oa as we,qa as Y,r as xe,ra as Oe,va as Ee,xa as Pe,ya as Be,za as Ve}from"./chunk-HB55W55I.js";import"./chunk-6XXA7HXI.js";import"./chunk-ZBBMS7J5.js";import{$b as p,$c as he,B as ue,Cb as F,Ea as _,Fa as f,Hb as l,Kb as N,N as pe,Nb as D,Ob as E,Pb as P,Q as te,Qb as i,Rb as c,Sb as B,Tb as z,Ub as H,Wb as re,Zb as h,a as v,b as k,ka as de,kb as a,kc as u,l as I,lc as T,mc as _e,o as me,pc as U,qa as O,qc as fe,ua as L,uc as ne,vc as ie}from"./chunk-FJILXII2.js";var R=(n,s)=>{let{bucketParams:e,earliestBucket:r}=Ye(n,s),t=Object.entries(s.torrent.metrics.buckets.reduce((b,x)=>{if(x.source!==(n.source??x.source))return b;let C=y(x.bucket,e);if(r&&r.index>C.index&&(C=void 0),!C)return b;let d=b[x.source]??[];return k(v({},b),{[x.source]:{created:x.updated?d.created:k(v({},d.created),{[C.key]:{count:x.count+(d.created?.[C.key]?.count??0),startTime:C.start}}),updated:x.updated?k(v({},d.updated),{[C.key]:{count:x.count+(d.updated?.[C.key]?.count??0),startTime:C.start}}):d.updated}})},{})).map(([b,x])=>{let C;if(Object.keys(x).length){let d=Array(),M=Re(Array("created","updated").flatMap(S=>{let A=Re(Object.entries(x[S]??{}).filter(([,ee])=>ee?.count).sort(([ee],[Qe])=>parseInt(ee)b.events?[b.events.earliestBucket]:[]).sort()[0],o=t.flatMap(b=>b.events?[b.events.latestBucket]:[]).sort().reverse()[0];return g&&o&&(m={earliestBucket:g,latestBucket:o}),{params:k(v({},n),{buckets:e}),sourceSummaries:t,bucketSpan:m,availableSources:s.torrent.listSources.sources.map(b=>({key:b.key,name:b.name}))}},Re=n=>Object.fromEntries(n),Ye=(n,s)=>{let e=n.buckets.duration==="AUTO"?"hour":n.buckets.duration,r=n.buckets.multiplier==="AUTO"?1:n.buckets.multiplier,t=n.buckets.timeframe,m=new Date,g=y(m,{duration:e,multiplier:r}),o=y(m.getTime()-1e3*V[t],{duration:e,multiplier:r}),b=[o,...s.torrent.metrics.buckets.flatMap(d=>[y(d.bucket,{duration:e,multiplier:r})]),g].filter(d=>d.index>=o.index).sort((d,M)=>d.index-M.index),x=b[0],C=b[b.length-1];if(n.buckets.multiplier==="AUTO"){let M=C.index-x.index;r=Math.min(60,Math.max(Math.floor(M/(20*5))*5,1))}return{bucketParams:{duration:e,multiplier:r,timeframe:t},earliestBucket:y(m.getTime()-1e3*V[t],{duration:e,multiplier:r}),latestBucket:y(Math.max(m.getTime(),C.start.getTime()),{duration:e,multiplier:r})}},y=(n,s)=>{let e=new Date(n),r=1e3*W[s.duration]*s.multiplier,t=Math.floor(e.getTime()/r);return{key:`${t}`,index:t,start:new Date(t*r)}};var oe={duration:"minute",multiplier:1,timeframe:"hours_1"},$e=["day","hour","minute"],W={minute:60,hour:60*60,day:60*60*24},ae={buckets:oe,autoRefresh:"off"},se={torrent:{metrics:{buckets:[]},listSources:{sources:[{key:"dht",name:"DHT"}]}}},X=["created","updated"],Le=["minutes_15","minutes_30","hours_1","hours_6","hours_12","days_1","weeks_1"],V={minutes_15:60*15,minutes_30:60*30,hours_1:60*60,hours_6:60*60*6,hours_12:60*60*12,days_1:60*60*24,weeks_1:60*60*24*7},Fe=["off","seconds_10","seconds_30","minutes_1","minutes_5"],ze={off:null,seconds_10:10,seconds_30:30,minutes_1:60,minutes_5:60*5},He=R(ae,se);var Z=class{constructor(s,e=ae,r){this.apollo=s,this.errorsService=r,this.rawResultSubject=new I(se),this.resultSubject=new I(He),this.result$=this.resultSubject.asObservable(),this.loadingSubject=new I(!1),this.paramsSubject=new I(e),this.params$=this.paramsSubject.asObservable(),this.variablesSubject=new I(Ue(e)),this.paramsSubject.pipe(te(50)).subscribe(t=>{let m=this.variablesSubject.getValue(),g=Ue(t);JSON.stringify(m)!==JSON.stringify(g)?this.variablesSubject.next(g):this.resultSubject.next(R(t,this.rawResultSubject.getValue()))}),this.variablesSubject.pipe(te(50)).subscribe(t=>this.request(t)),this.rawResultSubject.subscribe(t=>{let m=this.paramsSubject.getValue();this.resultSubject.next(R(m,t)),this.setInterval(m.autoRefresh)})}setInterval(s){clearTimeout(this.refreshTimeout);let e=ze[s??this.params.autoRefresh];e&&(this.refreshTimeout=setTimeout(()=>{this.refresh()},e*1e3))}get params(){return this.paramsSubject.getValue()}get bucketDuration(){let s=this.params.buckets.duration;return s==="AUTO"?"hour":s}get bucketMultiplier(){return this.resultSubject.getValue().params.buckets.multiplier??this.params.buckets.multiplier}get loading(){return this.loadingSubject.getValue()}setTimeframe(s){this.updateParams(e=>k(v({},e),{buckets:k(v({},e.buckets),{timeframe:s})}))}setSource(s){this.updateParams(e=>k(v({},e),{source:s??void 0}))}setBucketDuration(s,e){this.updateParams(r=>k(v({},r),{buckets:k(v({},r.buckets),{duration:s,multiplier:e??"AUTO"})}))}setBucketMultiplier(s){this.updateParams(e=>k(v({},e),{buckets:k(v({},e.buckets),{multiplier:s})}))}setEvent(s){this.updateParams(e=>k(v({},e),{event:s??void 0}))}setAutoRefreshInterval(s){this.updateParams(e=>k(v({},e),{autoRefresh:s}))}updateParams(s){this.paramsSubject.next(s(this.params))}refresh(){this.variablesSubject.next(this.variablesSubject.getValue())}request(s){return clearTimeout(this.refreshTimeout),this.loadingSubject.next(!0),this.apollo.query({query:ve,variables:s,fetchPolicy:"no-cache"}).pipe(ue(e=>{e&&(this.loadingSubject.next(!1),this.rawResultSubject.next(e.data))})).pipe(pe(e=>(this.errorsService.addError(`Failed to load torrent metrics: ${e.message}`),this.loadingSubject.next(!1),this.setInterval(),me))).subscribe()}},Ue=n=>({input:{bucketDuration:n.buckets.duration==="AUTO"?"hour":n.buckets.duration,sources:n.source?[n.source]:void 0,startTime:new Date(new Date().getTime()-1e3*V[n.buckets.timeframe]).toISOString()}});var $={created:"primary",updated:"secondary"},Je=(()=>{class n{constructor(){this.themeInfo=O(je),this.transloco=O(be)}create(e){let{colors:r}=this.themeInfo.info,t=Array(),m=[];if(e){let g=e.sourceSummaries.filter(d=>!d.isEmpty),o=Array.from(new Set(g.flatMap(d=>d.events?[d.events.earliestBucket,d.events.latestBucket]:[]))).sort(),b=new Date,x=Math.min(o[0],y(b.getTime()-1e3*V[e.params.buckets.timeframe],e.params.buckets).index),C=Math.max(o[o.length-1],y(b,e.params.buckets).index);if(o.length){for(let M=x;M<=C;M++)t.push(this.formatBucketKey(e.params.buckets,M));let d=X.filter(M=>(e.params.event??M)===M);for(let M of g)for(let S of d){let A=Array();for(let w=x;w<=C;w++)A.push(M.events?.eventBuckets?.[S]?.entries?.[`${w}`]?.count??0);m.push({yAxisID:"yCount",label:[M.source,S].join("/"),data:A,borderColor:r[j($[S],50)],pointBackgroundColor:r[j($[S],20)],pointBorderColor:r[j($[S],80)],pointHoverBackgroundColor:r[j($[S],40)],pointHoverBorderColor:r[j($[S],60)]})}}}return{type:"line",options:{animation:!1,elements:{line:{tension:.5}},scales:{yCount:{position:"left",ticks:{callback:g=>parseInt(g).toLocaleString(this.transloco.getActiveLang())}}},plugins:{legend:{display:!0},decimation:{enabled:!0}}},data:{labels:t,datasets:m}}}formatBucketKey(e,r){let t;switch(e.duration){case"day":t="d LLL";break;case"hour":t="d LLL H:00";break;case"minute":t="H:mm";break}return Ne(1e3*W[e.duration]*e.multiplier*r,t,{locale:De(this.transloco.getActiveLang())})}static{this.\u0275fac=function(r){return new(r||n)}}static{this.\u0275prov=de({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var Ze=(n,s)=>s.key,et=()=>["dht"];function tt(n,s){if(n&1&&(i(0,"mat-option",6),u(1),c()),n&2){let e=s.$implicit,r=p().$implicit;l("value",e),a(),T(r("dashboard.interval."+e))}}function rt(n,s){if(n&1&&(i(0,"mat-option",6),u(1),c()),n&2){let e=s.$implicit,r=p().$implicit;l("value",e),a(),T(r("dashboard.interval."+e+"s"))}}function nt(n,s){if(n&1&&(i(0,"mat-option",6),u(1),c()),n&2){let e=s.$implicit;l("value",e.key),a(),T(e.name)}}function it(n,s){if(n&1){let e=re();i(0,"button",16),h("click",function(){let t=_(e).$implicit,m=p(2);return f(m.torrentMetricsController.params.source===t||m.torrentMetricsController.setSource(t))}),i(1,"mat-icon"),u(2),c()()}if(n&2){let e=s.$implicit,r=p(2);N(r.torrentMetricsController.params.source===e?"selected":"deselected"),l("matTooltip",e),a(2),T(r.torrentMetricsController.params.source===e?"radio_button_checked":"radio_button_unchecked")}}function ot(n,s){if(n&1&&(i(0,"mat-option",6),u(1),c()),n&2){let e=s.$implicit,r=p().$implicit;l("value",e),a(),T(r("dashboard.event."+e))}}function at(n,s){if(n&1&&(i(0,"mat-option",6),u(1),c()),n&2){let e=s.$implicit,r=p().$implicit;l("value",e),a(),T(r("dashboard.interval."+e))}}function st(n,s){if(n&1){let e=re();z(0),i(1,"mat-card")(2,"mat-card-content")(3,"mat-grid-list",1)(4,"mat-grid-tile",2)(5,"mat-card",3)(6,"mat-card-header")(7,"mat-card-title")(8,"h4"),u(9),c()()(),i(10,"mat-card-content")(11,"mat-form-field",4)(12,"mat-select",5),h("valueChange",function(t){_(e);let m=p();return f(m.torrentMetricsController.setTimeframe(t))}),E(13,tt,2,2,"mat-option",6,D),c()(),i(15,"div",7)(16,"button",8),h("click",function(){_(e);let t=p();return f(t.torrentMetricsController.setTimeframe(t.timeframeNames[0]))}),i(17,"mat-icon"),u(18,"first_page"),c()(),i(19,"button",8),h("click",function(){_(e);let t=p();return f(t.torrentMetricsController.setTimeframe(t.timeframeNames[t.timeframeNames.indexOf(t.torrentMetricsController.params.buckets.timeframe)-1]))}),i(20,"mat-icon"),u(21,"navigate_before"),c()(),i(22,"button",8),h("click",function(){_(e);let t=p();return f(t.torrentMetricsController.setTimeframe(t.timeframeNames[t.timeframeNames.indexOf(t.torrentMetricsController.params.buckets.timeframe)+1]))}),i(23,"mat-icon"),u(24,"navigate_next"),c()(),i(25,"button",8),h("click",function(){_(e);let t=p();return f(t.torrentMetricsController.setTimeframe(t.timeframeNames[t.timeframeNames.length-1]))}),i(26,"mat-icon"),u(27,"last_page"),c()()()()()(),i(28,"mat-grid-tile",2)(29,"mat-card",9)(30,"mat-card-header")(31,"mat-card-title")(32,"h4"),u(33),c()()(),i(34,"mat-card-content")(35,"mat-form-field",10)(36,"input",11),ne(37,"async"),h("change",function(t){_(e);let m=p();return f(m.handleMultiplierEvent(t))}),c()(),i(38,"mat-form-field",12)(39,"mat-select",5),h("valueChange",function(t){_(e);let m=p();return f(m.torrentMetricsController.setBucketDuration(t))}),E(40,rt,2,2,"mat-option",6,D),c()(),i(42,"div",7)(43,"button",8),h("click",function(){_(e);let t=p();return f(t.torrentMetricsController.setBucketMultiplier(t.torrentMetricsController.bucketMultiplier-1))}),i(44,"mat-icon"),u(45,"remove"),c()(),i(46,"button",13),h("click",function(){_(e);let t=p();return f(t.torrentMetricsController.setBucketMultiplier(t.torrentMetricsController.bucketMultiplier+1))}),i(47,"mat-icon"),u(48,"add"),c()(),i(49,"button",8),h("click",function(){_(e);let t=p();return f(t.torrentMetricsController.setBucketDuration(t.resolutionNames[0]))}),i(50,"mat-icon"),u(51,"first_page"),c()(),i(52,"button",8),h("click",function(){_(e);let t=p();return f(t.torrentMetricsController.setBucketDuration(t.resolutionNames[t.resolutionNames.indexOf(t.torrentMetricsController.bucketDuration)-1]))}),i(53,"mat-icon"),u(54,"navigate_before"),c()(),i(55,"button",8),h("click",function(){_(e);let t=p();return f(t.torrentMetricsController.setBucketDuration(t.resolutionNames[t.resolutionNames.indexOf(t.torrentMetricsController.bucketDuration)+1]))}),i(56,"mat-icon"),u(57,"navigate_next"),c()(),i(58,"button",8),h("click",function(){_(e);let t=p();return f(t.torrentMetricsController.setBucketDuration(t.resolutionNames[t.resolutionNames.length-1]))}),i(59,"mat-icon"),u(60,"last_page"),c()()()()()(),i(61,"mat-grid-tile",2)(62,"mat-card")(63,"mat-card-header")(64,"mat-card-title")(65,"h4"),u(66),c()()(),i(67,"mat-card-content")(68,"mat-form-field",4)(69,"mat-select",5),h("valueChange",function(t){_(e);let m=p();return f(m.torrentMetricsController.setSource(t==="_all"?null:t))}),i(70,"mat-option",14),u(71,"All"),c(),E(72,nt,2,2,"mat-option",6,Ze),ne(74,"async"),c()(),i(75,"div",15)(76,"button",16),h("click",function(){_(e);let t=p();return f(t.torrentMetricsController.setSource(null))}),i(77,"mat-icon",17),u(78,"workspaces"),c()(),E(79,it,3,4,"button",18,D),c()()()(),i(81,"mat-grid-tile",2)(82,"mat-card")(83,"mat-card-header")(84,"mat-card-title")(85,"h4"),u(86),c()()(),i(87,"mat-card-content")(88,"mat-form-field",4)(89,"mat-select",5),h("valueChange",function(t){_(e);let m=p();return f(m.torrentMetricsController.setEvent(t==="_all"?null:t))}),i(90,"mat-option",14),u(91,"All"),c(),E(92,ot,2,2,"mat-option",6,D),c()(),i(94,"div",15)(95,"button",16),h("click",function(){_(e);let t=p();return f(t.torrentMetricsController.setEvent(null))}),i(96,"mat-icon",17),u(97,"radio_button_checked"),c()(),i(98,"button",16),h("click",function(){_(e);let t=p();return f(t.torrentMetricsController.params.event==="created"||t.torrentMetricsController.setEvent("created"))}),i(99,"mat-icon"),u(100,"add_circle"),c()(),i(101,"button",16),h("click",function(){_(e);let t=p();return f(t.torrentMetricsController.params.event==="updated"||t.torrentMetricsController.setEvent("updated"))}),i(102,"mat-icon"),u(103,"check_circle"),c()()()()()(),i(104,"mat-grid-tile",2)(105,"mat-card",19)(106,"mat-card-header")(107,"mat-card-title")(108,"h4"),u(109),c()()(),i(110,"mat-card-content")(111,"mat-form-field",4)(112,"mat-select",5),h("valueChange",function(t){_(e);let m=p();return f(m.torrentMetricsController.setAutoRefreshInterval(t))}),E(113,at,2,2,"mat-option",6,D),c()(),i(115,"div",15)(116,"button",16),h("click",function(){_(e);let t=p();return f(t.torrentMetricsController.refresh())}),i(117,"mat-icon"),u(118,"sync"),c()()()()()()(),i(119,"div",20),B(120,"mat-progress-bar",21),c(),i(121,"mat-grid-list",1)(122,"mat-grid-tile",2)(123,"mat-card")(124,"mat-card-header")(125,"mat-card-title")(126,"h4"),u(127),c()()(),i(128,"mat-card-content"),B(129,"app-chart",22),c()()(),B(130,"mat-grid-tile",2),c()()(),H()}if(n&2){let e,r,t,m,g=s.$implicit,o=p();a(3),l("cols",o.breakpoints.sizeAtLeast("Large")?5:o.breakpoints.sizeAtLeast("Medium")?3:o.breakpoints.sizeAtLeast("Small")?2:1),a(),l("colspan",1)("rowspan",2),a(5),T(g("dashboard.metrics.timeframe")),a(3),l("value",o.torrentMetricsController.params.buckets.timeframe),a(),P(o.timeframeNames),a(3),l("disabled",o.timeframeNames.indexOf(o.torrentMetricsController.params.buckets.timeframe)<=0),a(3),l("disabled",o.timeframeNames.indexOf(o.torrentMetricsController.params.buckets.timeframe)<=0),a(3),l("disabled",o.timeframeNames.indexOf(o.torrentMetricsController.params.buckets.timeframe)>=o.timeframeNames.length-1),a(3),l("disabled",o.timeframeNames.indexOf(o.torrentMetricsController.params.buckets.timeframe)>=o.timeframeNames.length-1),a(3),l("colspan",1)("rowspan",2),a(5),_e(" ",g("dashboard.metrics.resolution")," "),a(3),l("placeholder",(e=(e=ie(37,57,o.torrentMetricsController.result$))==null||e.params==null||e.params.buckets==null||e.params.buckets.multiplier==null?null:e.params.buckets.multiplier.toString())!==null&&e!==void 0?e:"")("value",o.torrentMetricsController.params.buckets.multiplier),a(3),l("value",o.torrentMetricsController.bucketDuration),a(),P(o.resolutionNames),a(3),l("disabled",o.torrentMetricsController.bucketMultiplier===1),a(6),l("disabled",o.resolutionNames.indexOf(o.torrentMetricsController.bucketDuration)<=0),a(3),l("disabled",o.resolutionNames.indexOf(o.torrentMetricsController.bucketDuration)<=0),a(3),l("disabled",o.resolutionNames.indexOf(o.torrentMetricsController.bucketDuration)>=o.resolutionNames.length-1),a(3),l("disabled",o.resolutionNames.indexOf(o.torrentMetricsController.bucketDuration)>=o.resolutionNames.length-1),a(3),l("colspan",1)("rowspan",2),a(5),T(g("torrents.source")),a(3),l("value",(r=o.torrentMetricsController.params.source)!==null&&r!==void 0?r:"_all"),a(3),P((t=ie(74,59,o.torrentMetricsController.result$))==null?null:t.availableSources),a(4),N(o.torrentMetricsController.params.source?"deselected":"selected"),l("matTooltip","all"),a(3),P(fe(61,et)),a(2),l("colspan",1)("rowspan",2),a(5),T(g("dashboard.metrics.event")),a(3),l("value",(m=o.torrentMetricsController.params.event)!==null&&m!==void 0?m:"_all"),a(3),P(o.eventNames),a(3),N(o.torrentMetricsController.params.event?"deselected":"selected"),l("matTooltip","all"),a(3),N(o.torrentMetricsController.params.event==="created"?"selected":"deselected"),l("matTooltip","created"),a(3),N(o.torrentMetricsController.params.event==="updated"?"selected":"deselected"),l("matTooltip","updated"),a(3),l("colspan",1)("rowspan",2),a(5),T(g("general.refresh")),a(3),l("value",o.torrentMetricsController.params.autoRefresh),a(),P(o.autoRefreshIntervalNames),a(3),l("matTooltip","Refresh"),a(4),l("mode",o.torrentMetricsController.loading?"indeterminate":"determinate")("value",0),a(),l("cols",o.breakpoints.sizeAtLeast("Large")?2:1),a(),l("colspan",1)("rowspan",6),a(5),T(g("dashboard.metrics.throughput")),a(2),l("adapter",o.timeline)("$data",o.torrentMetricsController.result$)("height",400)("width",550),a(),l("colspan",1)("rowspan",5)}}var Ke=(()=>{class n{constructor(){this.breakpoints=O(Ie),this.apollo=O(ge),this.torrentMetricsController=new Z(this.apollo,{buckets:oe,autoRefresh:"seconds_30"},O(Me)),this.timeline=O(Je),this.resolutionNames=$e,this.timeframeNames=Le,this.autoRefreshIntervalNames=Fe,this.eventNames=X}ngOnDestroy(){this.torrentMetricsController.setAutoRefreshInterval("off")}handleMultiplierEvent(e){let r=e.currentTarget.value;this.torrentMetricsController.setBucketMultiplier(/^\d+$/.test(r)?parseInt(r):"AUTO")}static{this.\u0275fac=function(r){return new(r||n)}}static{this.\u0275cmp=L({type:n,selectors:[["app-torrent-metrics"]],standalone:!0,features:[U],decls:1,vars:0,consts:[[4,"transloco"],["rowHeight","100px",3,"cols"],[3,"colspan","rowspan"],[1,"form-timeframe"],["subscriptSizing","dynamic"],[3,"valueChange","value"],[3,"value"],[1,"paginator","actions"],["mat-icon-button","",3,"click","disabled"],[1,"form-resolution"],["subscriptSizing","dynamic",1,"form-input-multiplier"],["type","number","matInput","","min","1","step","1",3,"change","placeholder","value"],["subscriptSizing","dynamic",1,"form-select-duration"],["mat-icon-button","",3,"click"],["value","_all"],[1,"actions"],["mat-icon-button","",3,"click","matTooltip"],["fontSet","material-icons"],["mat-icon-button","",3,"class","matTooltip"],[1,"form-refresh"],[1,"progress-bar-container"],[3,"mode","value"],[3,"adapter","$data","height","width"]],template:function(r,t){r&1&&F(0,st,131,62,"ng-container",0)},dependencies:[q,Ce,xe,J,K,Q,Se,Te,we,ye,Y,Oe,Ee,Ve,Be,G,he,Ae,ke],styles:[".actions[_ngcontent-%COMP%]{width:210px;padding-top:12px;--mdc-icon-button-state-layer-size: 32px}.actions[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:22px}.actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-right:0}.progress-bar-container[_ngcontent-%COMP%]{width:100%;height:10px}mat-grid-tile[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]{width:100%}mat-grid-tile[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{min-width:190px}mat-grid-tile[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{margin-bottom:16px;font-size:18px}mat-form-field[_ngcontent-%COMP%]{width:186px}.form-resolution[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{margin-left:-2px}.form-resolution[_ngcontent-%COMP%] .form-input-multiplier[_ngcontent-%COMP%]{width:60px;margin-right:10px}.form-resolution[_ngcontent-%COMP%] .form-input-multiplier[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::-webkit-outer-spin-button, .form-resolution[_ngcontent-%COMP%] .form-input-multiplier[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.form-resolution[_ngcontent-%COMP%] .form-input-multiplier[_ngcontent-%COMP%] input[type=number][_ngcontent-%COMP%]{-moz-appearance:textfield}.form-resolution[_ngcontent-%COMP%] .form-select-duration[_ngcontent-%COMP%]{width:116px}"]})}}return n})();function ct(n,s){if(n&1&&(z(0),i(1,"mat-card",1)(2,"mat-card-header")(3,"mat-toolbar")(4,"h2"),B(5,"mat-icon",2),u(6),c()()(),i(7,"mat-card-content"),B(8,"app-torrent-metrics"),c()(),H()),n&2){let e=s.$implicit;a(6),T(e("routes.torrents"))}}var tr=(()=>{class n{static{this.\u0275fac=function(r){return new(r||n)}}static{this.\u0275cmp=L({type:n,selectors:[["app-torrents"]],standalone:!0,features:[U],decls:1,vars:0,consts:[[4,"transloco"],[1,"dashboard-card"],["svgIcon","magnet"]],template:function(r,t){r&1&&F(0,ct,9,1,"ng-container",0)},dependencies:[q,J,K,Q,Y,Pe,G,Ke],styles:["mat-card-header[_ngcontent-%COMP%]{flex-wrap:wrap}mat-card-header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:18px;margin:0 60px 0 48px;height:48px;line-height:48px}mat-card-header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{position:relative;top:6px;margin-right:14px;line-height:1.25rem}mat-card-header[_ngcontent-%COMP%] nav[_ngcontent-%COMP%]{flex:0 0 100%}mat-card-header[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin-top:2px}mat-card-header[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] a[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:12px}"]})}}return n})();export{tr as TorrentsDashboardComponent}; diff --git a/webui/dist/bitmagnet/browser/chunk-7B77IKGA.js b/webui/dist/bitmagnet/browser/chunk-7B77IKGA.js new file mode 100644 index 00000000..fd6148f5 --- /dev/null +++ b/webui/dist/bitmagnet/browser/chunk-7B77IKGA.js @@ -0,0 +1 @@ +import{a as ge,b as Te}from"./chunk-C7MPMHOQ.js";import{a as W}from"./chunk-33KK2FKQ.js";import{a as he}from"./chunk-TC5EWLZ6.js";import{$ as te,Da as oe,Ea as re,F as jt,Fa as ae,Ga as le,Ha as se,I as Lt,Ia as ce,Ja as pe,K as Vt,Ka as me,La as _e,M as Ht,Ma as de,N as Gt,Na as ue,O as Yt,Oa as Ce,P as Kt,Pa as xe,Qa as fe,R as qt,T as Ut,Ua as L,W as Xt,X as Jt,Y as Zt,Z as Qt,_ as Wt,a as R,aa as ee,b as j,d as zt,e as Bt,f as Ft,g as Ot,i as Dt,ja as ne,n as Nt,o as Rt,qa as tt,va as ie,ya as et}from"./chunk-HB55W55I.js";import{m as At}from"./chunk-ZBBMS7J5.js";import{$b as c,$c as kt,B as st,Cb as C,Ea as M,Fa as $,Hb as g,Mb as d,N as Y,Na as wt,Nb as K,Ob as k,Pb as P,Q as St,Qb as s,Rb as r,Sb as h,Tb as T,Ub as b,Wb as B,Zb as A,a as X,ad as Q,b as vt,ha as J,hb as It,id as Pt,jc as pt,kb as o,kc as l,l as E,lb as ct,lc as x,mc as m,nc as yt,o as G,pc as N,qa as y,rc as Mt,sc as $t,ua as D,uc as v,vc as w,wc as Z,xa as Et}from"./chunk-FJILXII2.js";var be={movie:{singular:"Movie",plural:"Movies",icon:"movie"},tv_show:{singular:"TV Show",plural:"TV Shows",icon:"live_tv"},music:{singular:"Music",plural:"Music",icon:"music_note"},ebook:{singular:"E-Book",plural:"E-Books",icon:"auto_stories"},comic:{singular:"Comic",plural:"Comics",icon:"comic_bubble"},audiobook:{singular:"Audiobook",plural:"Audiobooks",icon:"mic"},software:{singular:"Software",plural:"Software",icon:"desktop_windows"},game:{singular:"Game",plural:"Games",icon:"sports_esports"},xxx:{singular:"XXX",plural:"XXX",icon:"18_up_rating"},null:{singular:"Unknown",plural:"Unknown",icon:"question_mark"}},_i=Object.entries(be).map(([t,n])=>X({key:t},n)),di=t=>t?be[t]:void 0;var Ne=(t,n)=>n.id;function Re(t,n){if(t&1&&(s(0,"mat-chip",1)(1,"mat-icon",2),l(2,"sell"),r(),l(3),r()),t&2){let e=n.$implicit;o(3),m(" ",e," ")}}function je(t,n){if(t&1&&l(0),t&2){let e=n.$implicit,i=n.$index,a=c(),p=c().$implicit;m(" ",p("languages."+e.id)+(i{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=D({type:t,selectors:[["app-torrent-chips"]],inputs:{torrentContent:"torrentContent"},standalone:!0,features:[N],decls:1,vars:0,consts:[[4,"transloco"],[1,"chip-primary"],["matChipAvatar",""],["matChipAvatar","","svgIcon","binary"]],template:function(i,a){i&1&&C(0,qe,10,6,"ng-container",0)},dependencies:[L,Zt,Xt,Wt,tt,j],styles:["mat-chip-set[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{position:relative;left:4px}"]})}}return t})();var Ue="array",Xe="bit",Se="bits",Je="byte",Ee="bytes",V="",Ze="exponent",Qe="function",we="iec",We="Invalid number",tn="Invalid rounding method",_t="jedec",en="object",Ie=".",nn="round",on="s",rn="si",an="kbit",ln="kB",sn=" ",cn="string",pn="0",dt={symbol:{iec:{bits:["bit","Kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["bit","Kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},fullform:{iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]}};function ye(t,{bits:n=!1,pad:e=!1,base:i=-1,round:a=2,locale:p=V,localeOptions:_={},separator:F=V,spacer:S=sn,symbols:Pe={},standard:I=V,output:at=cn,fullform:Ae=!1,fullforms:ut=[],exponent:Ct=-1,roundingMethod:ze=nn,precision:q=0}={}){let f=Ct,O=Number(t),u=[],z=0,lt=V;I===rn?(i=10,I=_t):I===we||I===_t?i=2:i===2?I=we:(i=10,I=_t);let U=i===10?1e3:1024,Be=Ae===!0,xt=O<0,ft=Math[ze];if(typeof t!="bigint"&&isNaN(t))throw new TypeError(We);if(typeof ft!==Qe)throw new TypeError(tn);if(xt&&(O=-O),(f===-1||isNaN(f))&&(f=Math.floor(Math.log(O)/Math.log(U)),f<0&&(f=0)),f>8&&(q>0&&(q+=8-f),f=8),at===Ze)return f;if(O===0)u[0]=0,lt=u[1]=dt.symbol[I][n?Se:Ee][f];else{z=O/(i===2?Math.pow(2,f*10):Math.pow(1e3,f)),n&&(z=z*8,z>=U&&f<8&&(z=z/U,f++));let H=Math.pow(10,f>0?a:0);u[0]=ft(z*H)/H,u[0]===U&&f<8&&Ct===-1&&(u[0]=1,f++),lt=u[1]=i===10&&f===1?n?an:ln:dt.symbol[I][n?Se:Ee][f]}if(xt&&(u[0]=-u[0]),q>0&&(u[0]=u[0].toPrecision(q)),u[1]=Pe[u[1]]||u[1],p===!0?u[0]=u[0].toLocaleString():p.length>0?u[0]=u[0].toLocaleString(p,_):F.length>0&&(u[0]=u[0].toString().replace(Ie,F)),e&&a>0){let H=u[0].toString(),gt=F||(H.match(/(\D)/g)||[]).pop()||Ie,ht=H.toString().split(gt),Tt=ht[1]||V,bt=Tt.length,Fe=a-bt;u[0]=`${ht[0]}${gt}${Tt.padEnd(bt+Fe,pn)}`}return Be&&(u[1]=ut[f]?ut[f]:dt.fullform[I][f]+(n?Xe:Je)+(u[0]===1?V:on)),at===Ue?u:at===en?{value:u[0],symbol:u[1],exponent:f,unit:lt}:u.join(S)}var nt=(()=>{class t{constructor(){this.transloco=y(R)}transform(e,i=2){return ye(e,{locale:this.transloco.getActiveLang(),base:i})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=Et({name:"filesize",type:t,pure:!1,standalone:!0})}}return t})();var mn=t=>t.toLowerCase().replaceAll(/[^a-z0-9\-]/g,"-").replace(/^-+/,"").replaceAll(/-+/g,"-"),Me=mn;var _n={items:[],hasNextPage:!1,totalCount:0,aggregations:{queue:[],status:[]}},it=class{constructor(n,e,i){this.apollo=n,this.errorsService=e,this.currentRequest=new E(0),this.loadingSubject=new E(!1),this.loading$=this.loadingSubject.asObservable(),this.result=_n,this.resultSubject=new E(this.result),this.result$=this.resultSubject.asObservable(),this.items$=this.resultSubject.pipe(st(a=>a.items)),i.subscribe(a=>{this.loadResult(a)}),this.resultSubject.subscribe(a=>{this.result=a})}connect({}){return this.items$}disconnect(){this.resultSubject.complete()}loadResult(n){this.currentSubscription&&(this.currentSubscription.unsubscribe(),this.currentSubscription=void 0),this.loadingSubject.next(!0);let e=this.currentRequest.getValue()+1;this.currentRequest.next(e);let i=this.apollo.query({query:jt,variables:n,fetchPolicy:"no-cache"}).pipe(st(a=>a.data.torrent.files)).pipe(Y(a=>(this.errorsService.addError(`Error loading item results: ${a.message}`),G)));this.currentSubscription=i.subscribe(a=>{e===this.currentRequest.getValue()&&(this.loadingSubject.next(!1),this.resultSubject.next(a))})}},ot=class{constructor(n){this.torrent=n,this.loading$=new E(!1).asObservable(),this.file={infoHash:n.infoHash,index:0,path:n.name,size:n.size,fileType:n.fileType,extension:n.extension,createdAt:n.createdAt,updatedAt:n.updatedAt},this.result={hasNextPage:!1,items:[this.file],totalCount:1},this.result$=new E(this.result).asObservable(),this.items$=new E([this.file]).asObservable()}connect({}){return this.items$}disconnect(){}};var rt=class{constructor(n){let e={infoHash:n,limit:10,page:1};this.controlsSubject=new E(e),this.controls$=this.controlsSubject.asObservable(),this.controls$.pipe(St(100)).subscribe(i=>{let a=this.variablesSubject.getValue(),p=$e(i);JSON.stringify(a)!==JSON.stringify(p)&&this.variablesSubject.next(p)}),this.variablesSubject=new E($e(e)),this.variables$=this.variablesSubject.asObservable()}update(n){let e=this.controlsSubject.getValue(),i=n(e);JSON.stringify(e)!==JSON.stringify(i)&&this.controlsSubject.next(i)}handlePageEvent(n){this.update(e=>vt(X({},e),{limit:n.pageSize,page:n.page}))}},$e=t=>({input:{infoHashes:[t.infoHash],limit:t.limit,page:t.page,totalCount:!0,hasNextPage:!1}});var Cn=(t,n)=>({x:t,y:n});function xn(t,n){if(t&1&&(s(0,"p"),l(1),v(2,"number"),v(3,"number"),r()),t&2){let e=c().$implicit,i=c();o(),m(" ",e("torrents.showing_x_of_y_files",$t(5,Cn,w(2,1,i.dataSource.result.totalCount),i.torrent.filesCount==null?"?":w(3,3,i.torrent.filesCount)))," ")}}function fn(t,n){if(t&1&&(s(0,"th",13),l(1),r()),t&2){let e=c().$implicit;o(),x(e("torrents.file_index"))}}function gn(t,n){if(t&1&&(s(0,"td",14),l(1),r()),t&2){let e=n.$implicit,i=c(2);o(),m(" ",i.item(e).index," ")}}function hn(t,n){if(t&1&&(s(0,"th",13),l(1),r()),t&2){let e=c().$implicit;o(),x(e("torrents.file_path"))}}function Tn(t,n){if(t&1&&(s(0,"td",14),l(1),r()),t&2){let e=n.$implicit,i=c(2);o(),m(" ",i.item(e).path," ")}}function bn(t,n){if(t&1&&(s(0,"th",13),l(1),r()),t&2){let e=c().$implicit;o(),x(e("torrents.file_type"))}}function vn(t,n){if(t&1&&(s(0,"td",14),l(1),r()),t&2){let e,i=n.$implicit,a=c().$implicit,p=c();o(),m(" ",a("file_types."+((e=p.item(i).fileType)!==null&&e!==void 0?e:"unknown"))," ")}}function Sn(t,n){if(t&1&&(s(0,"th",13),l(1),r()),t&2){let e=c().$implicit;o(),x(e("torrents.file_size"))}}function En(t,n){if(t&1&&(s(0,"td",14)(1,"span",15),v(2,"filesize"),l(3),v(4,"filesize"),r()()),t&2){let e=n.$implicit,i=c(2);o(),g("matTooltip",Z(2,2,i.item(e).size,10)),o(2),x(w(4,5,i.item(e).size))}}function wn(t,n){t&1&&h(0,"tr",16)}function In(t,n){t&1&&h(0,"tr",17)}function yn(t,n){if(t&1){let e=B();s(0,"app-paginator",18),A("paging",function(a){M(e);let p=c(2);return $(p.controller.handlePageEvent(a))}),r()}if(t&2){let e=c(2);g("page",e.controls.page)("pageSize",e.controls.limit)("pageLength",e.dataSource.result.items.length)("totalLength",e.dataSource.result.totalCount)("totalIsEstimate",!1)("showLastPage",!0)}}function Mn(t,n){if(t&1&&(T(0),s(1,"div",1),h(2,"mat-progress-bar",2),v(3,"async"),r(),C(4,xn,4,8,"p"),s(5,"table",3),T(6,4),C(7,fn,2,1,"th",5)(8,gn,2,1,"td",6),b(),T(9,7),C(10,hn,2,1,"th",5)(11,Tn,2,1,"td",6),b(),T(12,8),C(13,bn,2,1,"th",5)(14,vn,2,1,"td",6),b(),T(15,9),C(16,Sn,2,1,"th",5)(17,En,5,7,"td",6),b(),C(18,wn,1,0,"tr",10)(19,In,1,0,"tr",11),r(),C(20,yn,1,6,"app-paginator",12),b()),t&2){let e=c();o(2),g("mode",w(3,8,e.dataSource.loading$)?"indeterminate":"determinate")("value",0),o(2),d(e.torrent.filesStatus==="over_threshold"?4:-1),o(),g("dataSource",e.dataSource)("multiTemplateDataRows",!0),o(13),g("matHeaderRowDef",e.displayedColumns),o(),g("matRowDefColumns",e.displayedColumns),o(),d(e.dataSource.result.totalCount>10?20:-1)}}var ke=(()=>{class t{constructor(){this.apollo=y(Dt),this.errorsService=y(W),this.transloco=y(R),this.displayedColumns=["index","path","type","size"]}ngOnInit(){this.controller=new rt(this.torrent.infoHash),this.dataSource=this.torrent.filesStatus==="single"?new ot(this.torrent):new it(this.apollo,this.errorsService,this.controller.variables$),this.controller.controls$.subscribe(e=>{this.controls=e})}item(e){return e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=D({type:t,selectors:[["app-torrent-files-table"]],inputs:{torrent:"torrent"},standalone:!0,features:[N],decls:1,vars:0,consts:[[4,"transloco"],[1,"progress-bar-container"],[3,"mode","value"],["mat-table","",1,"table-results",3,"dataSource","multiTemplateDataRows"],["matColumnDef","index"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","path"],["matColumnDef","type"],["matColumnDef","size"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[3,"page","pageSize","pageLength","totalLength","totalIsEstimate","showLastPage"],["mat-header-cell",""],["mat-cell",""],[1,"filesize",3,"matTooltip"],["mat-header-row",""],["mat-row",""],[3,"paging","page","pageSize","pageLength","totalLength","totalIsEstimate","showLastPage"]],template:function(i,a){i&1&&C(0,Mn,21,10,"ng-container",0)},dependencies:[L,ie,oe,ae,pe,le,re,me,se,ce,_e,de,et,j,kt,Q,nt,ge],styles:["span.filesize[_ngcontent-%COMP%]{text-decoration:underline;text-decoration-style:dotted}"]})}}return t})();var $n=(t,n)=>n.key,kn=(t,n)=>n.id,Pn=(t,n)=>n.metadataSource.key,An=t=>({count:t});function zn(t,n){if(t&1&&h(0,"img",3),t&2){let e=c().$implicit,i=c();g("ngSrc","https://image.tmdb.org/t/p/w300/"+n)("alt",e("torrents.poster"))("width",i.breakpoints.sizeAtLeast("Medium")?300:150)("height",i.breakpoints.sizeAtLeast("Medium")?450:225)}}function Bn(t,n){if(t&1&&(s(0,"h2")(1,"a",14),l(2),r()()),t&2){let e=c().$implicit,i=c();o(),g("routerLink","permalink/"+i.torrentContent.infoHash)("matTooltip",e("torrents.permalink")),o(),x(i.torrentContent.torrent.name)}}function Fn(t,n){if(t&1&&(s(0,"p",4)(1,"strong"),l(2),r(),l(3,"\xA0 "),s(4,"span",15),v(5,"filesize"),l(6),v(7,"filesize"),r()()),t&2){let e=c().$implicit,i=c();o(2),m("",e("torrents.size"),":"),o(2),g("matTooltip",Z(5,3,i.torrentContent.torrent.size,10)),o(2),x(w(7,6,i.torrentContent.torrent.size))}}function On(t,n){if(t&1&&(s(0,"p",5)(1,"strong"),l(2),r(),l(3),v(4,"timeAgo"),r()),t&2){let e=c().$implicit,i=c();o(2),x(e("torrents.published")),o(),m(" ",w(4,2,i.torrentContent.publishedAt)," ")}}function Dn(t,n){if(t&1&&(s(0,"p",6)(1,"strong"),l(2),r(),l(3),r()),t&2){let e,i=c().$implicit,a=c();o(2),m("",i("torrents.s_l"),":"),o(),yt(" ",(e=a.torrentContent.seeders)!==null&&e!==void 0?e:"?"," / ",(e=a.torrentContent.leechers)!==null&&e!==void 0?e:"?"," ")}}function Nn(t,n){if(t&1&&(s(0,"span"),l(1),r()),t&2){let e=n.$implicit,i=n.$index;o(),x((i>0?", ":"")+e.name)}}function Rn(t,n){if(t&1&&(s(0,"p")(1,"strong"),l(2),r(),l(3),r()),t&2){let e=c().$implicit,i=c();o(2),m("",e("torrents.title"),":"),o(),m(" ",i.torrentContent.content.title," ")}}function jn(t,n){if(t&1&&l(0),t&2){let e=n.$implicit,i=n.$index,a=c(3);m(" ",(i>0?", ":"")+e.name+(e.id===(a.torrentContent.content==null||a.torrentContent.content.originalLanguage==null?null:a.torrentContent.content.originalLanguage.id)?" (original)":"")," ")}}function Ln(t,n){if(t&1&&(s(0,"p")(1,"strong"),l(2),r(),l(3,"\xA0 "),k(4,jn,1,1,null,null,kn),r()),t&2){let e=c().$implicit,i=c();o(2),m("",e("torrents.languages"),":"),o(2),P(i.torrentContent.languages)}}function Vn(t,n){if(t&1&&(s(0,"p")(1,"strong"),l(2),r(),l(3),r()),t&2){let e,i=c().$implicit,a=c();o(2),m("",i("torrents.original_release_date"),":"),o(),m(" ",(e=a.torrentContent.content==null?null:a.torrentContent.content.releaseDate)!==null&&e!==void 0?e:a.torrentContent.content==null?null:a.torrentContent.content.releaseYear," ")}}function Hn(t,n){if(t&1&&(s(0,"p")(1,"strong"),l(2),r(),l(3),r()),t&2){let e=c().$implicit,i=c();o(2),m("",e("torrents.episodes"),":"),o(),m(" ",i.torrentContent.episodes.label," ")}}function Gn(t,n){if(t&1&&(s(0,"p"),l(1),r()),t&2){let e=c(2);o(),m(" ",e.torrentContent.content.overview," ")}}function Yn(t,n){if(t&1&&(T(0),s(1,"p")(2,"strong"),l(3),r(),l(4),r(),b()),t&2){let e=c().$implicit;o(3),m("",e("torrents.genres"),":"),o(),m(" ",n.join(", ")," ")}}function Kn(t,n){if(t&1&&(T(0),l(1),v(2,"number"),b()),t&2){let e=c(2).$implicit,i=c();o(),m("(",e("torrents.votes_count_n",Mt(3,An,w(2,1,i.torrentContent.content==null?null:i.torrentContent.content.voteCount))),")")}}function qn(t,n){if(t&1&&(s(0,"p")(1,"strong"),l(2),r(),l(3),C(4,Kn,3,5,"ng-container"),r()),t&2){let e=c().$implicit,i=c();o(2),m("",e("torrents.rating"),":"),o(),m(" ",i.torrentContent.content==null?null:i.torrentContent.content.voteAverage," / 10 "),o(),d((i.torrentContent.content==null?null:i.torrentContent.content.voteCount)!=null?4:-1)}}function Un(t,n){if(t&1&&(l(0),s(1,"a",16),l(2),r()),t&2){let e=n.$implicit,i=n.$index;m(" ",i>0?", ":"",""),o(),g("href",e.url,It),o(),x(e.metadataSource.name)}}function Xn(t,n){if(t&1&&(s(0,"p")(1,"strong"),l(2),r(),l(3,"\xA0 "),k(4,Un,3,3,"a",16,Pn),r()),t&2){let e=c().$implicit;o(2),m("",e("torrents.external_links"),":"),o(2),P(n)}}function Jn(t,n){if(t&1&&(s(0,"span",17),l(1),r()),t&2){let e=c(2).$implicit;o(),x(e("torrents.files"))}}function Zn(t,n){t&1&&(s(0,"span",18),l(1),v(2,"number"),r()),t&2&&(o(),m("(",w(2,1,n),")"))}function Qn(t,n){if(t&1&&(s(0,"mat-icon"),l(1,"file_present"),r(),C(2,Jn,2,1,"span",17)(3,Zn,3,3,"span",18)),t&2){let e,i=c(2);o(2),d(i.breakpoints.sizeAtLeast("Medium")?2:-1),o(),d((e=i.filesCount())?3:-1,e)}}function Wn(t,n){if(t&1&&(s(0,"p"),l(1),r()),t&2){let e=c(2).$implicit;o(),x(e("torrents.files_no_info"))}}function ti(t,n){if(t&1&&(s(0,"mat-card",19),C(1,Wn,2,1,"p"),h(2,"app-torrent-files-table",20),r()),t&2){let e=c(2);o(),d(e.torrentContent.torrent.filesStatus==="no_info"?1:-1),o(),g("torrent",e.torrentContent.torrent)}}function ei(t,n){if(t&1&&(s(0,"span",17),l(1),r()),t&2){let e=c(2).$implicit;o(),x(e("torrents.edit_tags"))}}function ni(t,n){if(t&1&&(s(0,"mat-icon"),l(1,"sell"),r(),C(2,ei,2,1,"span",17)),t&2){let e=c(2);o(2),d(e.breakpoints.sizeAtLeast("Medium")?2:-1)}}function ii(t,n){if(t&1){let e=B();s(0,"mat-chip-row",26),A("edited",function(a){let p=M(e).$implicit,_=c(3);return $(_.renameTag(p,a.value))})("removed",function(){let a=M(e).$implicit,p=c(3);return $(p.deleteTag(a))}),l(1),s(2,"mat-icon",27),l(3,"cancel"),r()()}if(t&2){let e=n.$implicit;g("editable",!0),o(),m(" ",e," ")}}function oi(t,n){if(t&1&&(s(0,"mat-option",25),l(1),r()),t&2){let e=n.$implicit;g("value",e),o(),x(e)}}function ri(t,n){if(t&1){let e=B();s(0,"mat-card")(1,"mat-form-field",21)(2,"mat-chip-grid",null,0),k(4,ii,4,2,"mat-chip-row",22,K),r(),s(6,"input",23),A("matChipInputTokenEnd",function(a){M(e);let p=c(2);return $(a.value&&p.addTag(a.value))}),r(),s(7,"mat-autocomplete",24,1),A("optionSelected",function(a){M(e);let p=c(2);return $(p.addTag(a.option.viewValue))}),k(9,oi,2,2,"mat-option",25,K),r()()()}if(t&2){let e=pt(3),i=pt(8),a=c().$implicit,p=c();o(4),P(p.torrentContent.torrent.tagNames),o(2),g("placeholder",a("torrents.new_tag"))("formControl",p.newTagCtrl)("matAutocomplete",i)("matChipInputFor",e)("matChipInputSeparatorKeyCodes",p.separatorKeysCodes)("value",p.newTagCtrl.value),o(3),P(p.suggestedTags)}}function ai(t,n){if(t&1&&(s(0,"span",17),l(1),r()),t&2){let e=c(2).$implicit;o(),x(e("torrents.delete"))}}function li(t,n){if(t&1&&(s(0,"mat-icon"),l(1,"delete_forever"),r(),C(2,ai,2,1,"span",17)),t&2){let e=c(2);o(2),d(e.breakpoints.sizeAtLeast("Medium")?2:-1)}}function si(t,n){if(t&1){let e=B();s(0,"mat-card")(1,"mat-card-content",28)(2,"p")(3,"strong"),l(4),r(),h(5,"br"),l(6),r()(),s(7,"mat-card-actions",29)(8,"button",30),A("click",function(){M(e);let a=c(2);return $(a.delete())}),s(9,"mat-icon"),l(10,"delete_forever"),r(),l(11),r()()()}if(t&2){let e=c().$implicit;o(4),x(e("torrents.delete_are_you_sure")),o(2),m("",e("torrents.delete_action_cannot_be_undone")," "),o(5),m("",e("torrents.delete")," ")}}function ci(t,n){t&1&&(s(0,"mat-icon",31),l(1,"close"),r())}function pi(t,n){t&1&&(s(0,"mat-tab"),C(1,ci,2,0,"ng-template",12),r())}function mi(t,n){if(t&1){let e=B();T(0),C(1,zn,1,4,"img",3)(2,Bn,3,3,"h2")(3,Fn,8,8,"p",4)(4,On,5,4,"p",5)(5,Dn,4,3,"p",6),s(6,"p",7)(7,"strong"),l(8),r(),s(9,"span",8),l(10),r()(),s(11,"p")(12,"strong"),l(13),r(),l(14,"\xA0 "),k(15,Nn,2,1,"span",null,$n),r(),C(17,Rn,4,2,"p")(18,Ln,6,1,"p")(19,Vn,4,2,"p")(20,Hn,4,2,"p")(21,Gn,2,1,"p")(22,Yn,5,2,"ng-container")(23,qn,5,3,"p")(24,Xn,6,1,"p"),h(25,"mat-divider",9),s(26,"mat-tab-group",10),A("focusChange",function(a){M(e);let p=c();return $(p.selectTab(a.index==4?0:a.index))}),h(27,"mat-tab",11),s(28,"mat-tab"),C(29,Qn,4,2,"ng-template",12)(30,ti,3,2,"ng-template",13),r(),s(31,"mat-tab"),C(32,ni,3,1,"ng-template",12)(33,ri,11,6,"ng-template",13),r(),s(34,"mat-tab"),C(35,li,3,1,"ng-template",12)(36,si,12,3,"ng-template",13),r(),C(37,pi,2,0,"mat-tab"),r(),b()}if(t&2){let e,i,a,p=n.$implicit,_=c();o(),d((e=_.getAttribute("poster_path","tmdb"))?1:-1,e),o(),d(_.heading?2:-1),o(),d(_.size?3:-1),o(),d(_.published?4:-1),o(),d(_.peers?5:-1),o(3),m("",p("torrents.info_hash"),":"),o(),g("matTooltip",p("torrents.copy_to_clipboard"))("cdkCopyToClipboard",_.torrentContent.infoHash),o(),x(_.torrentContent.infoHash),o(3),m("",p("torrents.source"),":"),o(2),P(_.torrentContent.torrent.sources),o(2),d(_.torrentContent.content?17:-1),o(),d(_.torrentContent.languages!=null&&_.torrentContent.languages.length?18:-1),o(),d(_.torrentContent.content!=null&&_.torrentContent.content.releaseYear?19:-1),o(),d(_.torrentContent.episodes?20:-1),o(),d(_.torrentContent.content!=null&&_.torrentContent.content.overview?21:-1),o(),d((i=_.getCollections("genre"))?22:-1,i),o(),d((_.torrentContent.content==null?null:_.torrentContent.content.voteAverage)!=null?23:-1),o(),d((a=_.torrentContent.content==null?null:_.torrentContent.content.externalLinks)?24:-1,a),o(2),g("selectedIndex",_.selectedTabIndex)("mat-stretch-tabs",!1),o(11),d(_.selectedTabIndex>0?37:-1)}}var Eo=(()=>{class t{constructor(e,i){this.graphQLService=e,this.errorsService=i,this.breakpoints=y(he),this.heading=!0,this.size=!0,this.peers=!0,this.published=!0,this.updated=new wt,this.newTagCtrl=new Ft(""),this.editedTags=Array(),this.suggestedTags=Array(),this.selectedTabIndex=0,this.separatorKeysCodes=[13,188],this.transloco=y(R),this.newTagCtrl.valueChanges.subscribe(a=>(a&&(a=Me(a),this.newTagCtrl.setValue(a,{emitEvent:!1})),e.torrentSuggestTags({input:{prefix:a,exclusions:this.torrentContent.torrent.tagNames}}).pipe(J(p=>{this.suggestedTags.splice(0,this.suggestedTags.length,...p.suggestions.map(_=>_.name))})).subscribe()))}selectTab(e){this.selectedTabIndex=e}addTag(e){this.editTags(i=>[...i,e]),this.saveTags()}renameTag(e,i){this.editTags(a=>a.map(p=>p===e?i:p)),this.saveTags()}deleteTag(e){this.editTags(i=>i.filter(a=>a!==e)),this.saveTags()}editTags(e){this.editedTags=e(this.editedTags),this.newTagCtrl.reset()}saveTags(){this.graphQLService.torrentSetTags({infoHashes:[this.torrentContent.infoHash],tagNames:this.editedTags}).pipe(Y(e=>(this.errorsService.addError(`Error saving tags: ${e.message}`),G))).pipe(J(()=>{this.editedTags=[],this.updated.emit(null)})).subscribe()}delete(){this.graphQLService.torrentDelete({infoHashes:[this.torrentContent.infoHash]}).pipe(Y(e=>(this.errorsService.addError(`Error deleting torrent: ${e.message}`),G))).pipe(J(()=>{this.updated.emit(null)})).subscribe()}getAttribute(e,i){return this.torrentContent.content?.attributes?.find(a=>a.key===e&&(i===void 0||a.source===i))?.value}getCollections(e){let i=this.torrentContent.content?.collections?.filter(a=>a.type===e).map(a=>a.name);return i?.length?i.sort():void 0}filesCount(){return this.torrentContent.torrent.filesStatus==="single"?1:this.torrentContent.torrent.filesCount??void 0}static{this.\u0275fac=function(i){return new(i||t)(ct(Lt),ct(W))}}static{this.\u0275cmp=D({type:t,selectors:[["app-torrent-content"]],inputs:{torrentContent:"torrentContent",heading:"heading",size:"size",peers:"peers",published:"published"},outputs:{updated:"updated"},standalone:!0,features:[N],decls:1,vars:0,consts:[["chipGrid",""],["auto","matAutocomplete"],[4,"transloco"],[1,"poster",3,"ngSrc","alt","width","height"],[1,"size"],[1,"published"],[1,"peers"],[1,"info-hash"],[3,"matTooltip","cdkCopyToClipboard"],[2,"clear","both"],["animationDuration","0",3,"focusChange","selectedIndex","mat-stretch-tabs"],["aria-labelledby","hidden"],["mat-tab-label",""],["matTabContent",""],[3,"routerLink","matTooltip"],[1,"filesize",3,"matTooltip"],["target","_blank",3,"href"],[1,"label"],[1,"files-count"],[1,"torrent-files"],[3,"torrent"],["subscriptSizing","dynamic",1,"form-edit-tags"],[3,"editable"],["autocapitalize","none",3,"matChipInputTokenEnd","placeholder","formControl","matAutocomplete","matChipInputFor","matChipInputSeparatorKeyCodes","value"],[3,"optionSelected"],[3,"value"],[3,"edited","removed","editable"],["matChipRemove",""],[2,"margin-top","10px"],[1,"button-row"],["mat-stroked-button","","color","warn",3,"click"],[2,"margin-right","0"]],template:function(i,a){i&1&&C(0,mi,38,21,"ng-container",2)},dependencies:[L,Vt,Gt,Nt,Yt,Rt,Kt,Ut,qt,te,ee,Jt,Qt,ne,Ht,tt,ue,Ce,xe,fe,et,zt,Bt,Ot,At,j,Q,nt,Pt,Te,ke],styles:["h2[_ngcontent-%COMP%]{margin-top:10px;max-width:900px;white-space:pre-wrap;word-break:break-all;overflow-wrap:break-word}.poster[_ngcontent-%COMP%]{float:right;margin:10px;border:1px solid currentColor}.info-hash[_ngcontent-%COMP%]{white-space:pre-wrap;word-break:break-all;overflow-wrap:break-word}.info-hash[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{padding-left:5px;cursor:crosshair;text-decoration:underline;text-decoration-style:dotted}.torrent-files[_ngcontent-%COMP%]{padding-top:10px;max-height:800px;overflow:scroll}.torrent-files[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{margin-bottom:10px;width:800px}.torrent-files[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding-right:20px;border-bottom:1px solid rgba(0,0,0,.12)}.torrent-files[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:hover td[_ngcontent-%COMP%]{background-color:#f5f5f5}.form-edit-tags[_ngcontent-%COMP%] .mat-mdc-form-field-subscript-wrapper{display:none}.files-count[_ngcontent-%COMP%]{margin-left:4px}.mat-mdc-card-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-top:0}span.filesize[_ngcontent-%COMP%]{text-decoration:underline;text-decoration-style:dotted} .mdc-tab[aria-labelledby=hidden]{display:none} .mdc-tab[role=tab]{padding-left:15px;padding-right:15px} .mdc-tab .label, .mdc-tab .files-count{margin-left:8px}"]})}}return t})();export{be as a,_i as b,di as c,nt as d,fi as e,Eo as f}; diff --git a/webui/dist/bitmagnet/browser/chunk-OYPFZA36.js b/webui/dist/bitmagnet/browser/chunk-C7LQJIED.js similarity index 98% rename from webui/dist/bitmagnet/browser/chunk-OYPFZA36.js rename to webui/dist/bitmagnet/browser/chunk-C7LQJIED.js index 6bea2e9a..196c2883 100644 --- a/webui/dist/bitmagnet/browser/chunk-OYPFZA36.js +++ b/webui/dist/bitmagnet/browser/chunk-C7LQJIED.js @@ -1 +1 @@ -import{c as H,e as _}from"./chunk-AV47NZN7.js";import{b as y,c as G,f as d,g as s,h as O,i as l,j as T,k as Q,l as L}from"./chunk-3PIWRAOL.js";import{a as N}from"./chunk-4NEHCUZ2.js";import{Hb as F,Sb as q,a as S,b as C,h as E,pc as I,qa as W,ua as v}from"./chunk-3DR3CJRN.js";var Yt=(()=>{class r{constructor(){this.themeInfo=W(_),this.transloco=W(N),this.$data=new E,this.width=500,this.height=500}ngOnInit(){this.updateChart(),this.$data.subscribe(e=>{this.data=e,this.updateChart()}),this.themeInfo.info$.subscribe(()=>{this.updateChart()}),this.transloco.langChanges$.subscribe(()=>{this.updateChart()})}updateChart(){this.chartConfig=this.adapter.create(this.data)}static{this.\u0275fac=function(n){return new(n||r)}}static{this.\u0275cmp=v({type:r,selectors:[["app-chart"]],inputs:{$data:"$data",adapter:"adapter",width:"width",height:"height"},standalone:!0,features:[I],decls:1,vars:5,consts:[["baseChart","",3,"data","options","type","height","width"]],template:function(n,a){n&1&&q(0,"canvas",0),n&2&&F("data",a.chartConfig.data)("options",a.chartConfig.options)("type",a.chartConfig.type)("height",a.height)("width",a.width)},dependencies:[H]})}}return r})();function M(r,t){let e=s(r,t?.in);return e.setHours(0,0,0,0),e}function $(r,t,e){let[n,a]=Q(e?.in,r,t),o=M(n),c=M(a),m=+o-T(o),h=+c-T(c);return Math.round((m-h)/G)}function B(r,t){let e=s(r,t?.in);return e.setFullYear(e.getFullYear(),0,1),e.setHours(0,0,0,0),e}function X(r,t){let e=s(r,t?.in);return $(e,B(e))+1}function p(r,t){return l(r,C(S({},t),{weekStartsOn:1}))}function b(r,t){let e=s(r,t?.in),n=e.getFullYear(),a=d(e,0);a.setFullYear(n+1,0,4),a.setHours(0,0,0,0);let o=p(a),c=d(e,0);c.setFullYear(n,0,4),c.setHours(0,0,0,0);let m=p(c);return e.getTime()>=o.getTime()?n+1:e.getTime()>=m.getTime()?n:n-1}function R(r,t){let e=b(r,t),n=d(t?.in||r,0);return n.setFullYear(e,0,4),n.setHours(0,0,0,0),p(n)}function j(r,t){let e=s(r,t?.in),n=+p(e)-+R(e);return Math.round(n/y)+1}function k(r,t){let e=s(r,t?.in),n=e.getFullYear(),a=O(),o=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,c=d(t?.in||r,0);c.setFullYear(n+1,0,o),c.setHours(0,0,0,0);let m=l(c,t),h=d(t?.in||r,0);h.setFullYear(n,0,o),h.setHours(0,0,0,0);let D=l(h,t);return+e>=+m?n+1:+e>=+D?n:n-1}function V(r,t){let e=O(),n=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??e.firstWeekContainsDate??e.locale?.options?.firstWeekContainsDate??1,a=k(r,t),o=d(t?.in||r,0);return o.setFullYear(a,0,n),o.setHours(0,0,0,0),l(o,t)}function Z(r,t){let e=s(r,t?.in),n=+l(e,t)-+V(e,t);return Math.round(n/y)+1}function i(r,t){let e=r<0?"-":"",n=Math.abs(r).toString().padStart(t,"0");return e+n}var g={y(r,t){let e=r.getFullYear(),n=e>0?e:1-e;return i(t==="yy"?n%100:n,t.length)},M(r,t){let e=r.getMonth();return t==="M"?String(e+1):i(e+1,2)},d(r,t){return i(r.getDate(),t.length)},a(r,t){let e=r.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return e.toUpperCase();case"aaa":return e;case"aaaaa":return e[0];case"aaaa":default:return e==="am"?"a.m.":"p.m."}},h(r,t){return i(r.getHours()%12||12,t.length)},H(r,t){return i(r.getHours(),t.length)},m(r,t){return i(r.getMinutes(),t.length)},s(r,t){return i(r.getSeconds(),t.length)},S(r,t){let e=t.length,n=r.getMilliseconds(),a=Math.trunc(n*Math.pow(10,e-3));return i(a,t.length)}};var x={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},P={G:function(r,t,e){let n=r.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return e.era(n,{width:"abbreviated"});case"GGGGG":return e.era(n,{width:"narrow"});case"GGGG":default:return e.era(n,{width:"wide"})}},y:function(r,t,e){if(t==="yo"){let n=r.getFullYear(),a=n>0?n:1-n;return e.ordinalNumber(a,{unit:"year"})}return g.y(r,t)},Y:function(r,t,e,n){let a=k(r,n),o=a>0?a:1-a;if(t==="YY"){let c=o%100;return i(c,2)}return t==="Yo"?e.ordinalNumber(o,{unit:"year"}):i(o,t.length)},R:function(r,t){let e=b(r);return i(e,t.length)},u:function(r,t){let e=r.getFullYear();return i(e,t.length)},Q:function(r,t,e){let n=Math.ceil((r.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return i(n,2);case"Qo":return e.ordinalNumber(n,{unit:"quarter"});case"QQQ":return e.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return e.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return e.quarter(n,{width:"wide",context:"formatting"})}},q:function(r,t,e){let n=Math.ceil((r.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return i(n,2);case"qo":return e.ordinalNumber(n,{unit:"quarter"});case"qqq":return e.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return e.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return e.quarter(n,{width:"wide",context:"standalone"})}},M:function(r,t,e){let n=r.getMonth();switch(t){case"M":case"MM":return g.M(r,t);case"Mo":return e.ordinalNumber(n+1,{unit:"month"});case"MMM":return e.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return e.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return e.month(n,{width:"wide",context:"formatting"})}},L:function(r,t,e){let n=r.getMonth();switch(t){case"L":return String(n+1);case"LL":return i(n+1,2);case"Lo":return e.ordinalNumber(n+1,{unit:"month"});case"LLL":return e.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return e.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return e.month(n,{width:"wide",context:"standalone"})}},w:function(r,t,e,n){let a=Z(r,n);return t==="wo"?e.ordinalNumber(a,{unit:"week"}):i(a,t.length)},I:function(r,t,e){let n=j(r);return t==="Io"?e.ordinalNumber(n,{unit:"week"}):i(n,t.length)},d:function(r,t,e){return t==="do"?e.ordinalNumber(r.getDate(),{unit:"date"}):g.d(r,t)},D:function(r,t,e){let n=X(r);return t==="Do"?e.ordinalNumber(n,{unit:"dayOfYear"}):i(n,t.length)},E:function(r,t,e){let n=r.getDay();switch(t){case"E":case"EE":case"EEE":return e.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return e.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return e.day(n,{width:"short",context:"formatting"});case"EEEE":default:return e.day(n,{width:"wide",context:"formatting"})}},e:function(r,t,e,n){let a=r.getDay(),o=(a-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return i(o,2);case"eo":return e.ordinalNumber(o,{unit:"day"});case"eee":return e.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return e.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return e.day(a,{width:"short",context:"formatting"});case"eeee":default:return e.day(a,{width:"wide",context:"formatting"})}},c:function(r,t,e,n){let a=r.getDay(),o=(a-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return i(o,t.length);case"co":return e.ordinalNumber(o,{unit:"day"});case"ccc":return e.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return e.day(a,{width:"narrow",context:"standalone"});case"cccccc":return e.day(a,{width:"short",context:"standalone"});case"cccc":default:return e.day(a,{width:"wide",context:"standalone"})}},i:function(r,t,e){let n=r.getDay(),a=n===0?7:n;switch(t){case"i":return String(a);case"ii":return i(a,t.length);case"io":return e.ordinalNumber(a,{unit:"day"});case"iii":return e.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return e.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return e.day(n,{width:"short",context:"formatting"});case"iiii":default:return e.day(n,{width:"wide",context:"formatting"})}},a:function(r,t,e){let a=r.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return e.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return e.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return e.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return e.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(r,t,e){let n=r.getHours(),a;switch(n===12?a=x.noon:n===0?a=x.midnight:a=n/12>=1?"pm":"am",t){case"b":case"bb":return e.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return e.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return e.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return e.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(r,t,e){let n=r.getHours(),a;switch(n>=17?a=x.evening:n>=12?a=x.afternoon:n>=4?a=x.morning:a=x.night,t){case"B":case"BB":case"BBB":return e.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return e.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return e.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(r,t,e){if(t==="ho"){let n=r.getHours()%12;return n===0&&(n=12),e.ordinalNumber(n,{unit:"hour"})}return g.h(r,t)},H:function(r,t,e){return t==="Ho"?e.ordinalNumber(r.getHours(),{unit:"hour"}):g.H(r,t)},K:function(r,t,e){let n=r.getHours()%12;return t==="Ko"?e.ordinalNumber(n,{unit:"hour"}):i(n,t.length)},k:function(r,t,e){let n=r.getHours();return n===0&&(n=24),t==="ko"?e.ordinalNumber(n,{unit:"hour"}):i(n,t.length)},m:function(r,t,e){return t==="mo"?e.ordinalNumber(r.getMinutes(),{unit:"minute"}):g.m(r,t)},s:function(r,t,e){return t==="so"?e.ordinalNumber(r.getSeconds(),{unit:"second"}):g.s(r,t)},S:function(r,t){return g.S(r,t)},X:function(r,t,e){let n=r.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return J(n);case"XXXX":case"XX":return w(n);case"XXXXX":case"XXX":default:return w(n,":")}},x:function(r,t,e){let n=r.getTimezoneOffset();switch(t){case"x":return J(n);case"xxxx":case"xx":return w(n);case"xxxxx":case"xxx":default:return w(n,":")}},O:function(r,t,e){let n=r.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+A(n,":");case"OOOO":default:return"GMT"+w(n,":")}},z:function(r,t,e){let n=r.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+A(n,":");case"zzzz":default:return"GMT"+w(n,":")}},t:function(r,t,e){let n=Math.trunc(+r/1e3);return i(n,t.length)},T:function(r,t,e){return i(+r,t.length)}};function A(r,t=""){let e=r>0?"-":"+",n=Math.abs(r),a=Math.trunc(n/60),o=n%60;return o===0?e+String(a):e+String(a)+t+i(o,2)}function J(r,t){return r%60===0?(r>0?"-":"+")+i(Math.abs(r)/60,2):w(r,t)}function w(r,t=""){let e=r>0?"-":"+",n=Math.abs(r),a=i(Math.trunc(n/60),2),o=i(n%60,2);return e+a+t+o}var K=(r,t)=>{switch(r){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},U=(r,t)=>{switch(r){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},ot=(r,t)=>{let e=r.match(/(P+)(p+)?/)||[],n=e[1],a=e[2];if(!a)return K(r,t);let o;switch(n){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",K(n,t)).replace("{{time}}",U(a,t))},z={p:U,P:ot};var it=/^D+$/,st=/^Y+$/,ct=["D","DD","YY","YYYY"];function tt(r){return it.test(r)}function et(r){return st.test(r)}function rt(r,t,e){let n=ut(r,t,e);if(console.warn(n),ct.includes(r))throw new RangeError(n)}function ut(r,t,e){let n=r[0]==="Y"?"years":"days of the month";return`Use \`${r.toLowerCase()}\` instead of \`${r}\` (in \`${t}\`) for formatting ${n} to the input \`${e}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}function nt(r){return r instanceof Date||typeof r=="object"&&Object.prototype.toString.call(r)==="[object Date]"}function at(r){return!(!nt(r)&&typeof r!="number"||isNaN(+s(r)))}var ft=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,dt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,mt=/^'([^]*?)'?$/,ht=/''/g,lt=/[a-zA-Z]/;function Le(r,t,e){let n=O(),a=e?.locale??n.locale??L,o=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,c=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,m=s(r,e?.in);if(!at(m))throw new RangeError("Invalid time value");let h=t.match(dt).map(f=>{let u=f[0];if(u==="p"||u==="P"){let Y=z[u];return Y(f,a.formatLong)}return f}).join("").match(ft).map(f=>{if(f==="''")return{isToken:!1,value:"'"};let u=f[0];if(u==="'")return{isToken:!1,value:gt(f)};if(P[u])return{isToken:!0,value:f};if(u.match(lt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+u+"`");return{isToken:!1,value:f}});a.localize.preprocessor&&(h=a.localize.preprocessor(m,h));let D={firstWeekContainsDate:o,weekStartsOn:c,locale:a};return h.map(f=>{if(!f.isToken)return f.value;let u=f.value;(!e?.useAdditionalWeekYearTokens&&et(u)||!e?.useAdditionalDayOfYearTokens&&tt(u))&&rt(u,t,String(r));let Y=P[u[0]];return Y(m,u,a.localize,D)}).join("")}function gt(r){let t=r.match(mt);return t?t[1].replace(ht,"'"):r}var $e=(r,t)=>`${r}-${t}`;export{Le as a,Yt as b,$e as c}; +import{c as H,e as _}from"./chunk-VHNPENGG.js";import{b as y,c as G,f as d,g as s,h as O,i as l,j as T,k as Q,l as L}from"./chunk-33KK2FKQ.js";import{a as N}from"./chunk-HB55W55I.js";import{Hb as F,Sb as q,a as S,b as C,h as E,pc as I,qa as W,ua as v}from"./chunk-FJILXII2.js";var Yt=(()=>{class r{constructor(){this.themeInfo=W(_),this.transloco=W(N),this.$data=new E,this.width=500,this.height=500}ngOnInit(){this.updateChart(),this.$data.subscribe(e=>{this.data=e,this.updateChart()}),this.themeInfo.info$.subscribe(()=>{this.updateChart()}),this.transloco.langChanges$.subscribe(()=>{this.updateChart()})}updateChart(){this.chartConfig=this.adapter.create(this.data)}static{this.\u0275fac=function(n){return new(n||r)}}static{this.\u0275cmp=v({type:r,selectors:[["app-chart"]],inputs:{$data:"$data",adapter:"adapter",width:"width",height:"height"},standalone:!0,features:[I],decls:1,vars:5,consts:[["baseChart","",3,"data","options","type","height","width"]],template:function(n,a){n&1&&q(0,"canvas",0),n&2&&F("data",a.chartConfig.data)("options",a.chartConfig.options)("type",a.chartConfig.type)("height",a.height)("width",a.width)},dependencies:[H]})}}return r})();function M(r,t){let e=s(r,t?.in);return e.setHours(0,0,0,0),e}function $(r,t,e){let[n,a]=Q(e?.in,r,t),o=M(n),c=M(a),m=+o-T(o),h=+c-T(c);return Math.round((m-h)/G)}function B(r,t){let e=s(r,t?.in);return e.setFullYear(e.getFullYear(),0,1),e.setHours(0,0,0,0),e}function X(r,t){let e=s(r,t?.in);return $(e,B(e))+1}function p(r,t){return l(r,C(S({},t),{weekStartsOn:1}))}function b(r,t){let e=s(r,t?.in),n=e.getFullYear(),a=d(e,0);a.setFullYear(n+1,0,4),a.setHours(0,0,0,0);let o=p(a),c=d(e,0);c.setFullYear(n,0,4),c.setHours(0,0,0,0);let m=p(c);return e.getTime()>=o.getTime()?n+1:e.getTime()>=m.getTime()?n:n-1}function R(r,t){let e=b(r,t),n=d(t?.in||r,0);return n.setFullYear(e,0,4),n.setHours(0,0,0,0),p(n)}function j(r,t){let e=s(r,t?.in),n=+p(e)-+R(e);return Math.round(n/y)+1}function k(r,t){let e=s(r,t?.in),n=e.getFullYear(),a=O(),o=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,c=d(t?.in||r,0);c.setFullYear(n+1,0,o),c.setHours(0,0,0,0);let m=l(c,t),h=d(t?.in||r,0);h.setFullYear(n,0,o),h.setHours(0,0,0,0);let D=l(h,t);return+e>=+m?n+1:+e>=+D?n:n-1}function V(r,t){let e=O(),n=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??e.firstWeekContainsDate??e.locale?.options?.firstWeekContainsDate??1,a=k(r,t),o=d(t?.in||r,0);return o.setFullYear(a,0,n),o.setHours(0,0,0,0),l(o,t)}function Z(r,t){let e=s(r,t?.in),n=+l(e,t)-+V(e,t);return Math.round(n/y)+1}function i(r,t){let e=r<0?"-":"",n=Math.abs(r).toString().padStart(t,"0");return e+n}var g={y(r,t){let e=r.getFullYear(),n=e>0?e:1-e;return i(t==="yy"?n%100:n,t.length)},M(r,t){let e=r.getMonth();return t==="M"?String(e+1):i(e+1,2)},d(r,t){return i(r.getDate(),t.length)},a(r,t){let e=r.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return e.toUpperCase();case"aaa":return e;case"aaaaa":return e[0];case"aaaa":default:return e==="am"?"a.m.":"p.m."}},h(r,t){return i(r.getHours()%12||12,t.length)},H(r,t){return i(r.getHours(),t.length)},m(r,t){return i(r.getMinutes(),t.length)},s(r,t){return i(r.getSeconds(),t.length)},S(r,t){let e=t.length,n=r.getMilliseconds(),a=Math.trunc(n*Math.pow(10,e-3));return i(a,t.length)}};var x={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},P={G:function(r,t,e){let n=r.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return e.era(n,{width:"abbreviated"});case"GGGGG":return e.era(n,{width:"narrow"});case"GGGG":default:return e.era(n,{width:"wide"})}},y:function(r,t,e){if(t==="yo"){let n=r.getFullYear(),a=n>0?n:1-n;return e.ordinalNumber(a,{unit:"year"})}return g.y(r,t)},Y:function(r,t,e,n){let a=k(r,n),o=a>0?a:1-a;if(t==="YY"){let c=o%100;return i(c,2)}return t==="Yo"?e.ordinalNumber(o,{unit:"year"}):i(o,t.length)},R:function(r,t){let e=b(r);return i(e,t.length)},u:function(r,t){let e=r.getFullYear();return i(e,t.length)},Q:function(r,t,e){let n=Math.ceil((r.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return i(n,2);case"Qo":return e.ordinalNumber(n,{unit:"quarter"});case"QQQ":return e.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return e.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return e.quarter(n,{width:"wide",context:"formatting"})}},q:function(r,t,e){let n=Math.ceil((r.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return i(n,2);case"qo":return e.ordinalNumber(n,{unit:"quarter"});case"qqq":return e.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return e.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return e.quarter(n,{width:"wide",context:"standalone"})}},M:function(r,t,e){let n=r.getMonth();switch(t){case"M":case"MM":return g.M(r,t);case"Mo":return e.ordinalNumber(n+1,{unit:"month"});case"MMM":return e.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return e.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return e.month(n,{width:"wide",context:"formatting"})}},L:function(r,t,e){let n=r.getMonth();switch(t){case"L":return String(n+1);case"LL":return i(n+1,2);case"Lo":return e.ordinalNumber(n+1,{unit:"month"});case"LLL":return e.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return e.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return e.month(n,{width:"wide",context:"standalone"})}},w:function(r,t,e,n){let a=Z(r,n);return t==="wo"?e.ordinalNumber(a,{unit:"week"}):i(a,t.length)},I:function(r,t,e){let n=j(r);return t==="Io"?e.ordinalNumber(n,{unit:"week"}):i(n,t.length)},d:function(r,t,e){return t==="do"?e.ordinalNumber(r.getDate(),{unit:"date"}):g.d(r,t)},D:function(r,t,e){let n=X(r);return t==="Do"?e.ordinalNumber(n,{unit:"dayOfYear"}):i(n,t.length)},E:function(r,t,e){let n=r.getDay();switch(t){case"E":case"EE":case"EEE":return e.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return e.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return e.day(n,{width:"short",context:"formatting"});case"EEEE":default:return e.day(n,{width:"wide",context:"formatting"})}},e:function(r,t,e,n){let a=r.getDay(),o=(a-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return i(o,2);case"eo":return e.ordinalNumber(o,{unit:"day"});case"eee":return e.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return e.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return e.day(a,{width:"short",context:"formatting"});case"eeee":default:return e.day(a,{width:"wide",context:"formatting"})}},c:function(r,t,e,n){let a=r.getDay(),o=(a-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return i(o,t.length);case"co":return e.ordinalNumber(o,{unit:"day"});case"ccc":return e.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return e.day(a,{width:"narrow",context:"standalone"});case"cccccc":return e.day(a,{width:"short",context:"standalone"});case"cccc":default:return e.day(a,{width:"wide",context:"standalone"})}},i:function(r,t,e){let n=r.getDay(),a=n===0?7:n;switch(t){case"i":return String(a);case"ii":return i(a,t.length);case"io":return e.ordinalNumber(a,{unit:"day"});case"iii":return e.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return e.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return e.day(n,{width:"short",context:"formatting"});case"iiii":default:return e.day(n,{width:"wide",context:"formatting"})}},a:function(r,t,e){let a=r.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return e.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return e.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return e.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return e.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(r,t,e){let n=r.getHours(),a;switch(n===12?a=x.noon:n===0?a=x.midnight:a=n/12>=1?"pm":"am",t){case"b":case"bb":return e.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return e.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return e.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return e.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(r,t,e){let n=r.getHours(),a;switch(n>=17?a=x.evening:n>=12?a=x.afternoon:n>=4?a=x.morning:a=x.night,t){case"B":case"BB":case"BBB":return e.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return e.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return e.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(r,t,e){if(t==="ho"){let n=r.getHours()%12;return n===0&&(n=12),e.ordinalNumber(n,{unit:"hour"})}return g.h(r,t)},H:function(r,t,e){return t==="Ho"?e.ordinalNumber(r.getHours(),{unit:"hour"}):g.H(r,t)},K:function(r,t,e){let n=r.getHours()%12;return t==="Ko"?e.ordinalNumber(n,{unit:"hour"}):i(n,t.length)},k:function(r,t,e){let n=r.getHours();return n===0&&(n=24),t==="ko"?e.ordinalNumber(n,{unit:"hour"}):i(n,t.length)},m:function(r,t,e){return t==="mo"?e.ordinalNumber(r.getMinutes(),{unit:"minute"}):g.m(r,t)},s:function(r,t,e){return t==="so"?e.ordinalNumber(r.getSeconds(),{unit:"second"}):g.s(r,t)},S:function(r,t){return g.S(r,t)},X:function(r,t,e){let n=r.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return J(n);case"XXXX":case"XX":return w(n);case"XXXXX":case"XXX":default:return w(n,":")}},x:function(r,t,e){let n=r.getTimezoneOffset();switch(t){case"x":return J(n);case"xxxx":case"xx":return w(n);case"xxxxx":case"xxx":default:return w(n,":")}},O:function(r,t,e){let n=r.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+A(n,":");case"OOOO":default:return"GMT"+w(n,":")}},z:function(r,t,e){let n=r.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+A(n,":");case"zzzz":default:return"GMT"+w(n,":")}},t:function(r,t,e){let n=Math.trunc(+r/1e3);return i(n,t.length)},T:function(r,t,e){return i(+r,t.length)}};function A(r,t=""){let e=r>0?"-":"+",n=Math.abs(r),a=Math.trunc(n/60),o=n%60;return o===0?e+String(a):e+String(a)+t+i(o,2)}function J(r,t){return r%60===0?(r>0?"-":"+")+i(Math.abs(r)/60,2):w(r,t)}function w(r,t=""){let e=r>0?"-":"+",n=Math.abs(r),a=i(Math.trunc(n/60),2),o=i(n%60,2);return e+a+t+o}var K=(r,t)=>{switch(r){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},U=(r,t)=>{switch(r){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},ot=(r,t)=>{let e=r.match(/(P+)(p+)?/)||[],n=e[1],a=e[2];if(!a)return K(r,t);let o;switch(n){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",K(n,t)).replace("{{time}}",U(a,t))},z={p:U,P:ot};var it=/^D+$/,st=/^Y+$/,ct=["D","DD","YY","YYYY"];function tt(r){return it.test(r)}function et(r){return st.test(r)}function rt(r,t,e){let n=ut(r,t,e);if(console.warn(n),ct.includes(r))throw new RangeError(n)}function ut(r,t,e){let n=r[0]==="Y"?"years":"days of the month";return`Use \`${r.toLowerCase()}\` instead of \`${r}\` (in \`${t}\`) for formatting ${n} to the input \`${e}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}function nt(r){return r instanceof Date||typeof r=="object"&&Object.prototype.toString.call(r)==="[object Date]"}function at(r){return!(!nt(r)&&typeof r!="number"||isNaN(+s(r)))}var ft=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,dt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,mt=/^'([^]*?)'?$/,ht=/''/g,lt=/[a-zA-Z]/;function Le(r,t,e){let n=O(),a=e?.locale??n.locale??L,o=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,c=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,m=s(r,e?.in);if(!at(m))throw new RangeError("Invalid time value");let h=t.match(dt).map(f=>{let u=f[0];if(u==="p"||u==="P"){let Y=z[u];return Y(f,a.formatLong)}return f}).join("").match(ft).map(f=>{if(f==="''")return{isToken:!1,value:"'"};let u=f[0];if(u==="'")return{isToken:!1,value:gt(f)};if(P[u])return{isToken:!0,value:f};if(u.match(lt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+u+"`");return{isToken:!1,value:f}});a.localize.preprocessor&&(h=a.localize.preprocessor(m,h));let D={firstWeekContainsDate:o,weekStartsOn:c,locale:a};return h.map(f=>{if(!f.isToken)return f.value;let u=f.value;(!e?.useAdditionalWeekYearTokens&&et(u)||!e?.useAdditionalDayOfYearTokens&&tt(u))&&rt(u,t,String(r));let Y=P[u[0]];return Y(m,u,a.localize,D)}).join("")}function gt(r){let t=r.match(mt);return t?t[1].replace(ht,"'"):r}var $e=(r,t)=>`${r}-${t}`;export{Le as a,Yt as b,$e as c}; diff --git a/webui/dist/bitmagnet/browser/chunk-DKVITRV6.js b/webui/dist/bitmagnet/browser/chunk-C7MPMHOQ.js similarity index 93% rename from webui/dist/bitmagnet/browser/chunk-DKVITRV6.js rename to webui/dist/bitmagnet/browser/chunk-C7MPMHOQ.js index dff56616..c3f7cba5 100644 --- a/webui/dist/bitmagnet/browser/chunk-DKVITRV6.js +++ b/webui/dist/bitmagnet/browser/chunk-C7MPMHOQ.js @@ -1 +1 @@ -import{a as Q}from"./chunk-KUHKEGBL.js";import{L as H,M as j,Ua as K,a as N,b as A,n as $,qa as q,r as D,ya as G,za as J}from"./chunk-4NEHCUZ2.js";import{$b as o,$c as B,Cb as x,Ea as m,Fa as _,Hb as c,Jc as C,Mb as P,Na as T,Nb as L,Ob as w,Pb as z,Qb as a,Rb as p,Tb as M,Ub as E,Wb as b,Zb as u,kb as s,kc as l,mc as f,pc as V,qa as v,rc as k,sc as F,tc as O,ua as S,uc as d,vc as h,xa as y,zb as I}from"./chunk-3DR3CJRN.js";var U=(t,r,i)=>({x:t,y:r,z:i}),W=(t,r)=>({x:t,y:r}),X=t=>[null,t];function Y(t,r){if(t&1&&(a(0,"mat-option",4),l(1),p()),t&2){let i=r.$implicit;c("value",i),s(),f(" ",i," ")}}function Z(t,r){if(t&1&&(l(0),d(1,"number"),d(2,"number"),d(3,"number")),t&2){let i=o().$implicit,e=o();f(" ",i("paginator.x_to_y_of_z",O(7,U,h(1,1,e.firstItemIndex),h(2,3,e.lastItemIndex),h(3,5,e.totalLength)))," ")}}function tt(t,r){if(t&1&&(l(0),d(1,"number"),d(2,"number")),t&2){let i=o().$implicit,e=o();f(" ",i("paginator.x_to_y",F(5,W,h(1,1,e.firstItemIndex),h(2,3,e.lastItemIndex)))," ")}}function et(t,r){if(t&1){let i=b();a(0,"button",7),u("click",function(){let n;m(i);let g=o(2);return g.page=(n=g.pageCount)!==null&&n!==void 0?n:1,_(g.emitChange())}),a(1,"mat-icon"),l(2,"last_page"),p()()}if(t&2){let i=o().$implicit,e=o();c("disabled",k(2,X,e.page).includes(e.pageCount))("matTooltip",i("paginator.last_page"))}}function it(t,r){if(t&1){let i=b();M(0),a(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),l(4,"Items per page"),p(),a(5,"mat-select",3),u("valueChange",function(n){m(i);let g=o();return g.pageSize=n,g.page=1,_(g.emitChange())}),w(6,Y,2,2,"mat-option",4,L),p()(),a(8,"p",5),x(9,Z,4,11)(10,tt,3,8),p(),a(11,"div",6)(12,"button",7),u("click",function(){m(i);let n=o();return n.page=1,_(n.emitChange())}),a(13,"mat-icon"),l(14,"first_page"),p()(),a(15,"button",7),u("click",function(){m(i);let n=o();return n.page=n.page-1,_(n.emitChange())}),a(16,"mat-icon"),l(17,"navigate_before"),p()(),a(18,"button",7),u("click",function(){m(i);let n=o();return n.page=n.page+1,_(n.emitChange())}),a(19,"mat-icon"),l(20,"navigate_next"),p()(),x(21,et,3,4,"button",8),p()(),E()}if(t&2){let i=r.$implicit,e=o();s(5),c("value",e.pageSize),s(),z(e.pageSizes),s(3),P(e.hasTotalLength?9:10),s(3),c("disabled",!e.hasPreviousPage)("matTooltip",i("paginator.first_page")),s(3),c("disabled",!e.hasPreviousPage)("matTooltip",i("paginator.previous_page")),s(3),c("disabled",!e.actuallyHasNextPage)("matTooltip",i("paginator.next_page")),s(3),P(e.showLastPage?21:-1)}}var ht=(()=>{class t{constructor(){this.page=1,this.pageSize=10,this.pageSizes=[10,20,50,100],this.pageLength=0,this.totalLength=null,this.totalIsEstimate=!1,this.hasNextPage=null,this.showLastPage=!1,this.paging=new T}get firstItemIndex(){return(this.page-1)*this.pageSize+1}get lastItemIndex(){return(this.page-1)*this.pageSize+this.pageLength}get hasTotalLength(){return typeof this.totalLength=="number"}get hasPreviousPage(){return this.page>1}get pageCount(){return typeof this.totalLength!="number"?null:Math.ceil(this.totalLength/this.pageSize)}get actuallyHasNextPage(){return typeof this.hasNextPage=="boolean"?this.hasNextPage:typeof this.totalLength!="number"?!1:this.page*this.pageSize *[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle}.paginator[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 20px}.paginator[_ngcontent-%COMP%] .field-items-per-page[_ngcontent-%COMP%]{width:140px}"]})}}return t})();var vt=(()=>{class t{constructor(){this.transloco=v(N)}transform(i){return Q(i,this.transloco.getActiveLang())}static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275pipe=y({name:"timeAgo",type:t,pure:!1,standalone:!0})}}return t})();export{ht as a,vt as b}; +import{a as Q}from"./chunk-JIO2QO4M.js";import{L as H,M as j,Ua as K,a as N,b as A,n as $,qa as q,r as D,ya as G,za as J}from"./chunk-HB55W55I.js";import{$b as o,Cb as x,Ea as m,Fa as _,Hb as c,Kc as C,Mb as P,Na as T,Nb as L,Ob as w,Pb as z,Qb as a,Rb as p,Tb as M,Ub as E,Wb as b,Zb as u,ad as B,kb as s,kc as l,mc as f,pc as V,qa as v,rc as k,sc as F,tc as O,ua as S,uc as d,vc as h,xa as y,zb as I}from"./chunk-FJILXII2.js";var U=(t,r,i)=>({x:t,y:r,z:i}),W=(t,r)=>({x:t,y:r}),X=t=>[null,t];function Y(t,r){if(t&1&&(a(0,"mat-option",4),l(1),p()),t&2){let i=r.$implicit;c("value",i),s(),f(" ",i," ")}}function Z(t,r){if(t&1&&(l(0),d(1,"number"),d(2,"number"),d(3,"number")),t&2){let i=o().$implicit,e=o();f(" ",i("paginator.x_to_y_of_z",O(7,U,h(1,1,e.firstItemIndex),h(2,3,e.lastItemIndex),h(3,5,e.totalLength)))," ")}}function tt(t,r){if(t&1&&(l(0),d(1,"number"),d(2,"number")),t&2){let i=o().$implicit,e=o();f(" ",i("paginator.x_to_y",F(5,W,h(1,1,e.firstItemIndex),h(2,3,e.lastItemIndex)))," ")}}function et(t,r){if(t&1){let i=b();a(0,"button",7),u("click",function(){let n;m(i);let g=o(2);return g.page=(n=g.pageCount)!==null&&n!==void 0?n:1,_(g.emitChange())}),a(1,"mat-icon"),l(2,"last_page"),p()()}if(t&2){let i=o().$implicit,e=o();c("disabled",k(2,X,e.page).includes(e.pageCount))("matTooltip",i("paginator.last_page"))}}function it(t,r){if(t&1){let i=b();M(0),a(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),l(4,"Items per page"),p(),a(5,"mat-select",3),u("valueChange",function(n){m(i);let g=o();return g.pageSize=n,g.page=1,_(g.emitChange())}),w(6,Y,2,2,"mat-option",4,L),p()(),a(8,"p",5),x(9,Z,4,11)(10,tt,3,8),p(),a(11,"div",6)(12,"button",7),u("click",function(){m(i);let n=o();return n.page=1,_(n.emitChange())}),a(13,"mat-icon"),l(14,"first_page"),p()(),a(15,"button",7),u("click",function(){m(i);let n=o();return n.page=n.page-1,_(n.emitChange())}),a(16,"mat-icon"),l(17,"navigate_before"),p()(),a(18,"button",7),u("click",function(){m(i);let n=o();return n.page=n.page+1,_(n.emitChange())}),a(19,"mat-icon"),l(20,"navigate_next"),p()(),x(21,et,3,4,"button",8),p()(),E()}if(t&2){let i=r.$implicit,e=o();s(5),c("value",e.pageSize),s(),z(e.pageSizes),s(3),P(e.hasTotalLength?9:10),s(3),c("disabled",!e.hasPreviousPage)("matTooltip",i("paginator.first_page")),s(3),c("disabled",!e.hasPreviousPage)("matTooltip",i("paginator.previous_page")),s(3),c("disabled",!e.actuallyHasNextPage)("matTooltip",i("paginator.next_page")),s(3),P(e.showLastPage?21:-1)}}var ht=(()=>{class t{constructor(){this.page=1,this.pageSize=10,this.pageSizes=[10,20,50,100],this.pageLength=0,this.totalLength=null,this.totalIsEstimate=!1,this.hasNextPage=null,this.showLastPage=!1,this.paging=new T}get firstItemIndex(){return(this.page-1)*this.pageSize+1}get lastItemIndex(){return(this.page-1)*this.pageSize+this.pageLength}get hasTotalLength(){return typeof this.totalLength=="number"}get hasPreviousPage(){return this.page>1}get pageCount(){return typeof this.totalLength!="number"?null:Math.ceil(this.totalLength/this.pageSize)}get actuallyHasNextPage(){return typeof this.hasNextPage=="boolean"?this.hasNextPage:typeof this.totalLength!="number"?!1:this.page*this.pageSize *[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle}.paginator[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 20px}.paginator[_ngcontent-%COMP%] .field-items-per-page[_ngcontent-%COMP%]{width:140px}"]})}}return t})();var vt=(()=>{class t{constructor(){this.transloco=v(N)}transform(i){return Q(i,this.transloco.getActiveLang())}static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275pipe=y({name:"timeAgo",type:t,pure:!1,standalone:!0})}}return t})();export{ht as a,vt as b}; diff --git a/webui/dist/bitmagnet/browser/chunk-ZRBK6IMU.js b/webui/dist/bitmagnet/browser/chunk-EGT2L66S.js similarity index 93% rename from webui/dist/bitmagnet/browser/chunk-ZRBK6IMU.js rename to webui/dist/bitmagnet/browser/chunk-EGT2L66S.js index f207fb28..351a6a20 100644 --- a/webui/dist/bitmagnet/browser/chunk-ZRBK6IMU.js +++ b/webui/dist/bitmagnet/browser/chunk-EGT2L66S.js @@ -1 +1 @@ -import{P as A,R as E,Ra as z,Sa as D,Ta as I,U as y,Ua as S,b as O,qa as L,xa as T}from"./chunk-4NEHCUZ2.js";import"./chunk-6XXA7HXI.js";import{i as C,j as M,k as x,l as _,m as k,n as P}from"./chunk-FKMTSCBK.js";import{Cb as h,Hb as c,Qb as r,Rb as e,Sb as l,Tb as b,Ub as g,jc as s,kb as i,kc as n,lc as m,o as u,pc as f,qa as d,ua as v}from"./chunk-3DR3CJRN.js";function q(a,R){if(a&1&&(b(0),r(1,"mat-card",6)(2,"mat-card-header")(3,"mat-toolbar")(4,"nav",7)(5,"h2"),l(6,"mat-icon",8),n(7),e(),r(8,"a",9,0)(10,"mat-icon"),n(11,"monitoring"),e(),n(12),e(),r(13,"a",10,1)(15,"mat-icon"),n(16,"toc"),e(),n(17),e(),r(18,"a",11,2)(20,"mat-icon"),n(21,"construction"),e(),n(22),e()(),l(23,"mat-tab-nav-panel",null,3),e()(),r(25,"mat-card-content"),l(26,"router-outlet",null,4),e()(),g()),a&2){let t=R.$implicit,o=s(9),p=s(14),w=s(19),V=s(24);i(4),c("tabPanel",V),i(3),m(t("routes.queues")),i(),c("active",o.isActive),i(4),m(t("routes.visualize")),i(),c("active",p.isActive),i(4),m(t("routes.jobs")),i(),c("active",w.isActive),i(4),m(t("routes.admin"))}}var W=(()=>{class a{constructor(){this.route=d(M),this.router=d(_),this.subscriptions=new Array}ngOnInit(){this.subscriptions.push(this.route.url.subscribe(()=>(this.route.firstChild||this.redirectVisualize(),u)),this.router.events.subscribe(t=>(t.type===C.NavigationEnd&&t.urlAfterRedirects==="/dashboard/queue"&&this.redirectVisualize(),u)))}redirectVisualize(){this.router.navigate(["visualize"],{relativeTo:this.route})}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe()),this.subscriptions=new Array}static{this.\u0275fac=function(o){return new(o||a)}}static{this.\u0275cmp=v({type:a,selectors:[["app-queue-dashboard"]],standalone:!0,features:[f],decls:1,vars:0,consts:[["linkVisualize","routerLinkActive"],["linkJobs","routerLinkActive"],["linkAdmin","routerLinkActive"],["tabPanel",""],["outlet",""],[4,"transloco"],[1,"dashboard-card"],["mat-tab-nav-bar","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["svgIcon","queue"],["mat-tab-link","","routerLink","visualize","routerLinkActive","",3,"active"],["mat-tab-link","","routerLink","jobs","routerLinkActive","",3,"active"],["mat-tab-link","","routerLink","admin","routerLinkActive","",3,"active"]],template:function(o,p){o&1&&h(0,q,28,8,"ng-container",5)},dependencies:[S,A,E,y,L,z,I,D,T,x,k,P,O],styles:["mat-card-header[_ngcontent-%COMP%]{flex-wrap:wrap}mat-card-header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:18px;margin:0 60px 0 48px;height:48px;line-height:48px}mat-card-header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{position:relative;top:6px;margin-right:14px;line-height:1.25rem}mat-card-header[_ngcontent-%COMP%] nav[_ngcontent-%COMP%]{flex:0 0 100%}mat-card-header[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin-top:2px}mat-card-header[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] a[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:12px}"]})}}return a})();export{W as QueueDashboardComponent}; +import{P as A,R as E,Ra as z,Sa as D,Ta as I,U as y,Ua as S,b as O,qa as L,xa as T}from"./chunk-HB55W55I.js";import"./chunk-6XXA7HXI.js";import{i as C,j as M,k as x,l as _,m as k,n as P}from"./chunk-ZBBMS7J5.js";import{Cb as h,Hb as c,Qb as r,Rb as e,Sb as l,Tb as b,Ub as g,jc as s,kb as i,kc as n,lc as m,o as u,pc as f,qa as d,ua as v}from"./chunk-FJILXII2.js";function q(a,R){if(a&1&&(b(0),r(1,"mat-card",6)(2,"mat-card-header")(3,"mat-toolbar")(4,"nav",7)(5,"h2"),l(6,"mat-icon",8),n(7),e(),r(8,"a",9,0)(10,"mat-icon"),n(11,"monitoring"),e(),n(12),e(),r(13,"a",10,1)(15,"mat-icon"),n(16,"toc"),e(),n(17),e(),r(18,"a",11,2)(20,"mat-icon"),n(21,"construction"),e(),n(22),e()(),l(23,"mat-tab-nav-panel",null,3),e()(),r(25,"mat-card-content"),l(26,"router-outlet",null,4),e()(),g()),a&2){let t=R.$implicit,o=s(9),p=s(14),w=s(19),V=s(24);i(4),c("tabPanel",V),i(3),m(t("routes.queues")),i(),c("active",o.isActive),i(4),m(t("routes.visualize")),i(),c("active",p.isActive),i(4),m(t("routes.jobs")),i(),c("active",w.isActive),i(4),m(t("routes.admin"))}}var W=(()=>{class a{constructor(){this.route=d(M),this.router=d(_),this.subscriptions=new Array}ngOnInit(){this.subscriptions.push(this.route.url.subscribe(()=>(this.route.firstChild||this.redirectVisualize(),u)),this.router.events.subscribe(t=>(t.type===C.NavigationEnd&&t.urlAfterRedirects==="/dashboard/queue"&&this.redirectVisualize(),u)))}redirectVisualize(){this.router.navigate(["visualize"],{relativeTo:this.route})}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe()),this.subscriptions=new Array}static{this.\u0275fac=function(o){return new(o||a)}}static{this.\u0275cmp=v({type:a,selectors:[["app-queue-dashboard"]],standalone:!0,features:[f],decls:1,vars:0,consts:[["linkVisualize","routerLinkActive"],["linkJobs","routerLinkActive"],["linkAdmin","routerLinkActive"],["tabPanel",""],["outlet",""],[4,"transloco"],[1,"dashboard-card"],["mat-tab-nav-bar","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["svgIcon","queue"],["mat-tab-link","","routerLink","visualize","routerLinkActive","",3,"active"],["mat-tab-link","","routerLink","jobs","routerLinkActive","",3,"active"],["mat-tab-link","","routerLink","admin","routerLinkActive","",3,"active"]],template:function(o,p){o&1&&h(0,q,28,8,"ng-container",5)},dependencies:[S,A,E,y,L,z,I,D,T,x,k,P,O],styles:["mat-card-header[_ngcontent-%COMP%]{flex-wrap:wrap}mat-card-header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:18px;margin:0 60px 0 48px;height:48px;line-height:48px}mat-card-header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{position:relative;top:6px;margin-right:14px;line-height:1.25rem}mat-card-header[_ngcontent-%COMP%] nav[_ngcontent-%COMP%]{flex:0 0 100%}mat-card-header[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin-top:2px}mat-card-header[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] a[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:12px}"]})}}return a})();export{W as QueueDashboardComponent}; diff --git a/webui/dist/bitmagnet/browser/chunk-IMLYIOTE.js b/webui/dist/bitmagnet/browser/chunk-EJQDXU6U.js similarity index 97% rename from webui/dist/bitmagnet/browser/chunk-IMLYIOTE.js rename to webui/dist/bitmagnet/browser/chunk-EJQDXU6U.js index 58f40e8d..40f5a425 100644 --- a/webui/dist/bitmagnet/browser/chunk-IMLYIOTE.js +++ b/webui/dist/bitmagnet/browser/chunk-EJQDXU6U.js @@ -1 +1 @@ -import{g as J,j as A}from"./chunk-6OKZFKY7.js";import{A as z,J as H,P as k,R as K,Ua as q,b as T,ba as M,ca as N,da as W,fa as I,ga as V,ha as y,i as w,o as P,p as L,wa as R,z as Y}from"./chunk-4NEHCUZ2.js";import"./chunk-6XXA7HXI.js";import"./chunk-FKMTSCBK.js";import{$b as a,B as F,Cb as x,Ea as m,Fa as _,Hb as g,Mb as Q,N as $,Nb as B,Ob as O,Pb as G,Qb as s,Rb as r,Sb as S,Tb as D,Ub as E,Wb as h,Zb as d,kb as o,kc as c,lc as p,mc as C,nc as U,o as j,pc as v,qa as f,ua as b}from"./chunk-3DR3CJRN.js";function ce(n,u){if(n&1){let e=h();s(0,"section")(1,"mat-checkbox",4),d("change",function(i){m(e);let l=a(2);return l.localSearchDisabled=!i.checked,_(l.apisDisabled=l.localSearchDisabled?!0:l.apisDisabled)}),c(2),r(),s(3,"mat-checkbox",4),d("change",function(i){m(e);let l=a(2);return l.apisDisabled=!i.checked,_(l.localSearchDisabled=l.apisDisabled?l.localSearchDisabled:!0)}),c(4),r(),s(5,"mat-checkbox",4),d("change",function(i){m(e);let l=a(2);return _(l.classifierRematch=i.checked)}),c(6),r(),s(7,"mat-checkbox",4),d("change",function(i){m(e);let l=a(2);return _(l.orphans=i.checked)}),c(8),r()()}if(n&2){let e=a().$implicit,t=a();o(),g("checked",!t.apisDisabled),o(),p(e("dashboard.queues.match_content_by_local_search")),o(),g("checked",!t.apisDisabled),o(),p(e("dashboard.queues.match_content_by_external_api_search")),o(),g("checked",t.classifierRematch),o(),p(e("dashboard.queues.force_rematch")),o(),g("checked",t.orphans),o(),p(e("dashboard.queues.process_orphaned_torrents_only"))}}function le(n,u){n&1&&S(0,"mat-spinner")}function ue(n,u){if(n&1&&(s(0,"p"),c(1),r()),n&2){let e=a().$implicit;o(),p(e("dashboard.queues.jobs_enqueued"))}}function me(n,u){if(n&1){let e=h();D(0),s(1,"mat-card")(2,"h2",1),c(3),r(),s(4,"mat-dialog-content"),x(5,ce,9,8,"section")(6,le,1,0,"mat-spinner")(7,ue,2,1,"p"),r(),s(8,"mat-dialog-actions")(9,"button",2),d("click",function(){m(e);let i=a();return _(i.handleEnqueue())}),c(10),r(),s(11,"button",3),d("click",function(){m(e);let i=a();return _(i.dialogRef.close())}),c(12),r()()(),E()}if(n&2){let e=u.$implicit,t=a();o(3),C(" ",e("dashboard.queues.enqueue_torrent_processing_batch")," "),o(2),Q(t.stage==="PENDING"?5:t.stage==="REQUESTING"?6:t.stage==="DONE"?7:-1),o(4),g("disabled",t.stage!=="PENDING"),o(),C(" ",e("dashboard.queues.enqueue_jobs")," "),o(2),C(" ",e("general.dismiss")," ")}}var ne=(()=>{class n{constructor(){this.apollo=f(w),this.dialogRef=f(N),this.availableQueueNames=A,this.statusNames=J,this.stage="PENDING",this.apisDisabled=!0,this.localSearchDisabled=!0,this.classifierRematch=!1,this.orphans=!1}handleEnqueue(){this.stage==="PENDING"&&(this.stage="REQUESTING",this.apollo.mutate({mutation:Y,variables:{input:{apisDisabled:this.apisDisabled,localSearchDisabled:this.localSearchDisabled,classifierRematch:this.classifierRematch,contentTypes:this.contentTypes,orphans:this.orphans?!0:void 0}}}).subscribe(()=>{this.stage="DONE",this.data.onEnqueued?.()}))}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=b({type:n,selectors:[["app-queue-enqueue-reprocess-torrents-batch-dialog"]],standalone:!0,features:[v],decls:1,vars:0,consts:[[4,"transloco"],["mat-dialog-title",""],["mat-stroked-button","","color","warning",3,"click","disabled"],["mat-stroked-button","",3,"click"],[3,"change","checked"]],template:function(t,i){t&1&&x(0,me,13,5,"ng-container",0)},dependencies:[q,P,k,M,I,y,V,R,T],styles:["mat-dialog-content[_ngcontent-%COMP%]{min-height:240px;overflow:visible}mat-grid-tile[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]{width:100%;height:100%}"]})}}return n})();function _e(n,u){if(n&1){let e=h();s(0,"mat-checkbox",6),d("change",function(i){m(e);let l=a(3);return _(l.handleQueueEvent(i))}),c(1),r()}if(n&2){let e=u.$implicit,t=a(3);g("value",e)("checked",t.queues==null?null:t.queues.includes(e)),o(),p(e)}}function de(n,u){if(n&1){let e=h();s(0,"mat-checkbox",6),d("change",function(i){m(e);let l=a(3);return _(l.handleStatusEvent(i))}),c(1),r()}if(n&2){let e=u.$implicit,t=a(3);g("value",e)("checked",t.statuses==null?null:t.statuses.includes(e)),o(),p(e)}}function pe(n,u){if(n&1){let e=h();s(0,"section")(1,"h4"),c(2),r(),s(3,"mat-checkbox",4),d("change",function(i){m(e);let l=a(2);return _(l.handleQueueEvent(i))}),c(4),r(),O(5,_e,2,3,"mat-checkbox",5,B),r(),s(7,"section")(8,"h4"),c(9,"Statuses:"),r(),s(10,"mat-checkbox",4),d("change",function(i){m(e);let l=a(2);return _(l.handleStatusEvent(i))}),c(11,"All"),r(),O(12,de,2,3,"mat-checkbox",5,B),r()}if(n&2){let e=a().$implicit,t=a();o(2),C("",e("dashboard.queues.queues"),":"),o(),g("checked",t.queues===void 0),o(),p(e("general.all")),o(),G(t.availableQueueNames),o(5),g("checked",t.statuses===void 0),o(2),G(t.statusNames)}}function ge(n,u){n&1&&S(0,"mat-spinner")}function he(n,u){if(n&1&&(s(0,"p"),c(1),r()),n&2){let e=a(2).$implicit,t=a();o(),U("",e("general.error"),": ",t.error.message,"")}}function xe(n,u){if(n&1&&(s(0,"p"),c(1),r()),n&2){let e=a(2).$implicit;o(),p(e("dashboard.queues.queue_purged"))}}function fe(n,u){if(n&1&&x(0,he,2,2,"p")(1,xe,2,1,"p"),n&2){let e=a(2);Q(e.error?0:1)}}function Ce(n,u){if(n&1){let e=h();D(0),s(1,"mat-card")(2,"h2",1),c(3,"Purge Queue Jobs"),r(),s(4,"mat-dialog-content"),x(5,pe,14,4)(6,ge,1,0,"mat-spinner")(7,fe,2,1),r(),s(8,"mat-dialog-actions")(9,"button",2),d("click",function(){m(e);let i=a();return _(i.handlePurgeJobs())}),c(10),r(),s(11,"button",3),d("click",function(){m(e);let i=a();return _(i.dialogRef.close())}),c(12),r()()(),E()}if(n&2){let e=u.$implicit,t=a();o(5),Q(t.stage==="PENDING"?5:t.stage==="REQUESTING"?6:t.stage==="DONE"?7:-1),o(4),g("disabled",t.stage!=="PENDING"),o(),C(" ",e("dashboard.queues.purge_jobs")," "),o(2),C(" ",e("general.dismiss")," ")}}var ie=(()=>{class n{constructor(){this.apollo=f(w),this.dialogRef=f(N),this.availableQueueNames=A,this.statusNames=J,this.stage="PENDING"}handleQueueEvent(e){if(e.source.value==="_all"){this.queues=void 0;return}if(e.checked){let t=this.queues??[];t.includes(e.source.value)||(t=[...t,e.source.value]),t.length===this.availableQueueNames.length?(e.source.checked=!1,this.queues=void 0):this.queues=t}else{let t=this.queues?.filter(i=>i!==e.source.value);t?.length?this.queues=t:this.queues=void 0}}handleStatusEvent(e){if(e.source.value==="_all"){this.statuses=void 0;return}if(e.checked){let t=this.statuses??[];t.includes(e.source.value)||(t=[...t,e.source.value]),t.length===this.statusNames.length?(e.source.checked=!1,this.statuses=void 0):this.statuses=t}else{let t=this.statuses?.filter(i=>i!==e.source.value);t?.length?this.statuses=t:this.statuses=void 0}}handlePurgeJobs(){this.stage==="PENDING"&&(this.stage="REQUESTING",this.apollo.mutate({mutation:z,variables:{input:{queues:this.queues,statuses:this.statuses}}}).pipe($(e=>(this.stage="DONE",this.error=e,j)),F(()=>{this.stage="DONE",this.data.onPurged?.()})).subscribe())}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=b({type:n,selectors:[["app-queue-purge-jobs-dialog"]],standalone:!0,features:[v],decls:1,vars:0,consts:[[4,"transloco"],["mat-dialog-title",""],["mat-stroked-button","","color","warning",3,"click","disabled"],["mat-stroked-button","",3,"click"],["value","_all",3,"change","checked"],[3,"value","checked"],[3,"change","value","checked"]],template:function(t,i){t&1&&x(0,Ce,13,4,"ng-container",0)},dependencies:[q,P,k,M,I,y,V,R,T,H],styles:["mat-dialog-content[_ngcontent-%COMP%]{min-height:240px;overflow:visible}mat-grid-tile[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]{width:100%;height:100%}"]})}}return n})();function be(n,u){if(n&1){let e=h();D(0),s(1,"mat-card")(2,"mat-card-content")(3,"ul")(4,"li")(5,"a",1),d("click",function(){m(e);let i=a();return _(i.openDialogPurgeJobs())}),c(6),r()(),s(7,"li")(8,"a",1),d("click",function(){m(e);let i=a();return _(i.openDialogEnqueueReprocessTorrentsBatch())}),c(9),r()()()()(),E()}if(n&2){let e=u.$implicit;o(6),p(e("dashboard.queues.purge_queue_jobs")),o(3),p(e("dashboard.queues.enqueue_torrent_processing_batch"))}}var ze=(()=>{class n{constructor(){this.dialog=f(W)}openDialogPurgeJobs(){this.dialog.open(ie)}openDialogEnqueueReprocessTorrentsBatch(){this.dialog.open(ne)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=b({type:n,selectors:[["app-queue-admin"]],standalone:!0,features:[v],decls:1,vars:0,consts:[[4,"transloco"],["mat-button","",3,"click"]],template:function(t,i){t&1&&x(0,be,10,2,"ng-container",0)},dependencies:[q,L,k,K,T],styles:["ul[_ngcontent-%COMP%]{list-style-type:none;padding-left:0}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-bottom:6px}"]})}}return n})();export{ze as QueueAdminComponent}; +import{g as J,j as A}from"./chunk-6OKZFKY7.js";import{A as z,J as H,P as k,R as K,Ua as q,b as T,ba as M,ca as N,da as W,fa as I,ga as V,ha as y,i as w,o as P,p as L,wa as R,z as Y}from"./chunk-HB55W55I.js";import"./chunk-6XXA7HXI.js";import"./chunk-ZBBMS7J5.js";import{$b as a,B as F,Cb as x,Ea as m,Fa as _,Hb as g,Mb as Q,N as $,Nb as B,Ob as O,Pb as G,Qb as s,Rb as r,Sb as S,Tb as D,Ub as E,Wb as h,Zb as d,kb as o,kc as c,lc as p,mc as C,nc as U,o as j,pc as v,qa as f,ua as b}from"./chunk-FJILXII2.js";function ce(n,u){if(n&1){let e=h();s(0,"section")(1,"mat-checkbox",4),d("change",function(i){m(e);let l=a(2);return l.localSearchDisabled=!i.checked,_(l.apisDisabled=l.localSearchDisabled?!0:l.apisDisabled)}),c(2),r(),s(3,"mat-checkbox",4),d("change",function(i){m(e);let l=a(2);return l.apisDisabled=!i.checked,_(l.localSearchDisabled=l.apisDisabled?l.localSearchDisabled:!0)}),c(4),r(),s(5,"mat-checkbox",4),d("change",function(i){m(e);let l=a(2);return _(l.classifierRematch=i.checked)}),c(6),r(),s(7,"mat-checkbox",4),d("change",function(i){m(e);let l=a(2);return _(l.orphans=i.checked)}),c(8),r()()}if(n&2){let e=a().$implicit,t=a();o(),g("checked",!t.apisDisabled),o(),p(e("dashboard.queues.match_content_by_local_search")),o(),g("checked",!t.apisDisabled),o(),p(e("dashboard.queues.match_content_by_external_api_search")),o(),g("checked",t.classifierRematch),o(),p(e("dashboard.queues.force_rematch")),o(),g("checked",t.orphans),o(),p(e("dashboard.queues.process_orphaned_torrents_only"))}}function le(n,u){n&1&&S(0,"mat-spinner")}function ue(n,u){if(n&1&&(s(0,"p"),c(1),r()),n&2){let e=a().$implicit;o(),p(e("dashboard.queues.jobs_enqueued"))}}function me(n,u){if(n&1){let e=h();D(0),s(1,"mat-card")(2,"h2",1),c(3),r(),s(4,"mat-dialog-content"),x(5,ce,9,8,"section")(6,le,1,0,"mat-spinner")(7,ue,2,1,"p"),r(),s(8,"mat-dialog-actions")(9,"button",2),d("click",function(){m(e);let i=a();return _(i.handleEnqueue())}),c(10),r(),s(11,"button",3),d("click",function(){m(e);let i=a();return _(i.dialogRef.close())}),c(12),r()()(),E()}if(n&2){let e=u.$implicit,t=a();o(3),C(" ",e("dashboard.queues.enqueue_torrent_processing_batch")," "),o(2),Q(t.stage==="PENDING"?5:t.stage==="REQUESTING"?6:t.stage==="DONE"?7:-1),o(4),g("disabled",t.stage!=="PENDING"),o(),C(" ",e("dashboard.queues.enqueue_jobs")," "),o(2),C(" ",e("general.dismiss")," ")}}var ne=(()=>{class n{constructor(){this.apollo=f(w),this.dialogRef=f(N),this.availableQueueNames=A,this.statusNames=J,this.stage="PENDING",this.apisDisabled=!0,this.localSearchDisabled=!0,this.classifierRematch=!1,this.orphans=!1}handleEnqueue(){this.stage==="PENDING"&&(this.stage="REQUESTING",this.apollo.mutate({mutation:Y,variables:{input:{apisDisabled:this.apisDisabled,localSearchDisabled:this.localSearchDisabled,classifierRematch:this.classifierRematch,contentTypes:this.contentTypes,orphans:this.orphans?!0:void 0}}}).subscribe(()=>{this.stage="DONE",this.data.onEnqueued?.()}))}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=b({type:n,selectors:[["app-queue-enqueue-reprocess-torrents-batch-dialog"]],standalone:!0,features:[v],decls:1,vars:0,consts:[[4,"transloco"],["mat-dialog-title",""],["mat-stroked-button","","color","warning",3,"click","disabled"],["mat-stroked-button","",3,"click"],[3,"change","checked"]],template:function(t,i){t&1&&x(0,me,13,5,"ng-container",0)},dependencies:[q,P,k,M,I,y,V,R,T],styles:["mat-dialog-content[_ngcontent-%COMP%]{min-height:240px;overflow:visible}mat-grid-tile[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]{width:100%;height:100%}"]})}}return n})();function _e(n,u){if(n&1){let e=h();s(0,"mat-checkbox",6),d("change",function(i){m(e);let l=a(3);return _(l.handleQueueEvent(i))}),c(1),r()}if(n&2){let e=u.$implicit,t=a(3);g("value",e)("checked",t.queues==null?null:t.queues.includes(e)),o(),p(e)}}function de(n,u){if(n&1){let e=h();s(0,"mat-checkbox",6),d("change",function(i){m(e);let l=a(3);return _(l.handleStatusEvent(i))}),c(1),r()}if(n&2){let e=u.$implicit,t=a(3);g("value",e)("checked",t.statuses==null?null:t.statuses.includes(e)),o(),p(e)}}function pe(n,u){if(n&1){let e=h();s(0,"section")(1,"h4"),c(2),r(),s(3,"mat-checkbox",4),d("change",function(i){m(e);let l=a(2);return _(l.handleQueueEvent(i))}),c(4),r(),O(5,_e,2,3,"mat-checkbox",5,B),r(),s(7,"section")(8,"h4"),c(9,"Statuses:"),r(),s(10,"mat-checkbox",4),d("change",function(i){m(e);let l=a(2);return _(l.handleStatusEvent(i))}),c(11,"All"),r(),O(12,de,2,3,"mat-checkbox",5,B),r()}if(n&2){let e=a().$implicit,t=a();o(2),C("",e("dashboard.queues.queues"),":"),o(),g("checked",t.queues===void 0),o(),p(e("general.all")),o(),G(t.availableQueueNames),o(5),g("checked",t.statuses===void 0),o(2),G(t.statusNames)}}function ge(n,u){n&1&&S(0,"mat-spinner")}function he(n,u){if(n&1&&(s(0,"p"),c(1),r()),n&2){let e=a(2).$implicit,t=a();o(),U("",e("general.error"),": ",t.error.message,"")}}function xe(n,u){if(n&1&&(s(0,"p"),c(1),r()),n&2){let e=a(2).$implicit;o(),p(e("dashboard.queues.queue_purged"))}}function fe(n,u){if(n&1&&x(0,he,2,2,"p")(1,xe,2,1,"p"),n&2){let e=a(2);Q(e.error?0:1)}}function Ce(n,u){if(n&1){let e=h();D(0),s(1,"mat-card")(2,"h2",1),c(3,"Purge Queue Jobs"),r(),s(4,"mat-dialog-content"),x(5,pe,14,4)(6,ge,1,0,"mat-spinner")(7,fe,2,1),r(),s(8,"mat-dialog-actions")(9,"button",2),d("click",function(){m(e);let i=a();return _(i.handlePurgeJobs())}),c(10),r(),s(11,"button",3),d("click",function(){m(e);let i=a();return _(i.dialogRef.close())}),c(12),r()()(),E()}if(n&2){let e=u.$implicit,t=a();o(5),Q(t.stage==="PENDING"?5:t.stage==="REQUESTING"?6:t.stage==="DONE"?7:-1),o(4),g("disabled",t.stage!=="PENDING"),o(),C(" ",e("dashboard.queues.purge_jobs")," "),o(2),C(" ",e("general.dismiss")," ")}}var ie=(()=>{class n{constructor(){this.apollo=f(w),this.dialogRef=f(N),this.availableQueueNames=A,this.statusNames=J,this.stage="PENDING"}handleQueueEvent(e){if(e.source.value==="_all"){this.queues=void 0;return}if(e.checked){let t=this.queues??[];t.includes(e.source.value)||(t=[...t,e.source.value]),t.length===this.availableQueueNames.length?(e.source.checked=!1,this.queues=void 0):this.queues=t}else{let t=this.queues?.filter(i=>i!==e.source.value);t?.length?this.queues=t:this.queues=void 0}}handleStatusEvent(e){if(e.source.value==="_all"){this.statuses=void 0;return}if(e.checked){let t=this.statuses??[];t.includes(e.source.value)||(t=[...t,e.source.value]),t.length===this.statusNames.length?(e.source.checked=!1,this.statuses=void 0):this.statuses=t}else{let t=this.statuses?.filter(i=>i!==e.source.value);t?.length?this.statuses=t:this.statuses=void 0}}handlePurgeJobs(){this.stage==="PENDING"&&(this.stage="REQUESTING",this.apollo.mutate({mutation:z,variables:{input:{queues:this.queues,statuses:this.statuses}}}).pipe($(e=>(this.stage="DONE",this.error=e,j)),F(()=>{this.stage="DONE",this.data.onPurged?.()})).subscribe())}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=b({type:n,selectors:[["app-queue-purge-jobs-dialog"]],standalone:!0,features:[v],decls:1,vars:0,consts:[[4,"transloco"],["mat-dialog-title",""],["mat-stroked-button","","color","warning",3,"click","disabled"],["mat-stroked-button","",3,"click"],["value","_all",3,"change","checked"],[3,"value","checked"],[3,"change","value","checked"]],template:function(t,i){t&1&&x(0,Ce,13,4,"ng-container",0)},dependencies:[q,P,k,M,I,y,V,R,T,H],styles:["mat-dialog-content[_ngcontent-%COMP%]{min-height:240px;overflow:visible}mat-grid-tile[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]{width:100%;height:100%}"]})}}return n})();function be(n,u){if(n&1){let e=h();D(0),s(1,"mat-card")(2,"mat-card-content")(3,"ul")(4,"li")(5,"a",1),d("click",function(){m(e);let i=a();return _(i.openDialogPurgeJobs())}),c(6),r()(),s(7,"li")(8,"a",1),d("click",function(){m(e);let i=a();return _(i.openDialogEnqueueReprocessTorrentsBatch())}),c(9),r()()()()(),E()}if(n&2){let e=u.$implicit;o(6),p(e("dashboard.queues.purge_queue_jobs")),o(3),p(e("dashboard.queues.enqueue_torrent_processing_batch"))}}var ze=(()=>{class n{constructor(){this.dialog=f(W)}openDialogPurgeJobs(){this.dialog.open(ie)}openDialogEnqueueReprocessTorrentsBatch(){this.dialog.open(ne)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=b({type:n,selectors:[["app-queue-admin"]],standalone:!0,features:[v],decls:1,vars:0,consts:[[4,"transloco"],["mat-button","",3,"click"]],template:function(t,i){t&1&&x(0,be,10,2,"ng-container",0)},dependencies:[q,L,k,K,T],styles:["ul[_ngcontent-%COMP%]{list-style-type:none;padding-left:0}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-bottom:6px}"]})}}return n})();export{ze as QueueAdminComponent}; diff --git a/webui/dist/bitmagnet/browser/chunk-FJILXII2.js b/webui/dist/bitmagnet/browser/chunk-FJILXII2.js new file mode 100644 index 00000000..3778ce05 --- /dev/null +++ b/webui/dist/bitmagnet/browser/chunk-FJILXII2.js @@ -0,0 +1,7 @@ +var Yf=Object.defineProperty,Qf=Object.defineProperties;var Kf=Object.getOwnPropertyDescriptors;var Ln=Object.getOwnPropertySymbols;var Ka=Object.prototype.hasOwnProperty,Ja=Object.prototype.propertyIsEnumerable;var Qa=(e,t,n)=>t in e?Yf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,me=(e,t)=>{for(var n in t||={})Ka.call(t,n)&&Qa(e,n,t[n]);if(Ln)for(var n of Ln(t))Ja.call(t,n)&&Qa(e,n,t[n]);return e},ye=(e,t)=>Qf(e,Kf(t));var ow=(e,t)=>{var n={};for(var r in e)Ka.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Ln)for(var r of Ln(e))t.indexOf(r)<0&&Ja.call(e,r)&&(n[r]=e[r]);return n};var Jf=(e,t,n)=>new Promise((r,o)=>{var i=u=>{try{a(n.next(u))}catch(c){o(c)}},s=u=>{try{a(n.throw(u))}catch(c){o(c)}},a=u=>u.done?r(u.value):Promise.resolve(u.value).then(i,s);a((n=n.apply(e,t)).next())});function g(e){return typeof e=="function"}function Nt(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var jn=Nt(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription: +${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(` + `)}`:"",this.name="UnsubscriptionError",this.errors=n});function et(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var L=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(g(r))try{r()}catch(i){t=i instanceof jn?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Xa(i)}catch(s){t=t??[],s instanceof jn?t=[...t,...s.errors]:t.push(s)}}if(t)throw new jn(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Xa(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&et(n,t)}remove(t){let{_finalizers:n}=this;n&&et(n,t),t instanceof e&&t._removeParent(this)}};L.EMPTY=(()=>{let e=new L;return e.closed=!0,e})();var $o=L.EMPTY;function Vn(e){return e instanceof L||e&&"closed"in e&&g(e.remove)&&g(e.add)&&g(e.unsubscribe)}function Xa(e){g(e)?e():e.unsubscribe()}var ce={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var At={setTimeout(e,t,...n){let{delegate:r}=At;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=At;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Bn(e){At.setTimeout(()=>{let{onUnhandledError:t}=ce;if(t)t(e);else throw e})}function tt(){}var eu=Uo("C",void 0,void 0);function tu(e){return Uo("E",void 0,e)}function nu(e){return Uo("N",e,void 0)}function Uo(e,t,n){return{kind:e,value:t,error:n}}var nt=null;function Ot(e){if(ce.useDeprecatedSynchronousErrorHandling){let t=!nt;if(t&&(nt={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=nt;if(nt=null,n)throw r}}else e()}function ru(e){ce.useDeprecatedSynchronousErrorHandling&&nt&&(nt.errorThrown=!0,nt.error=e)}var rt=class extends L{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Vn(t)&&t.add(this)):this.destination=tp}static create(t,n,r){return new Te(t,n,r)}next(t){this.isStopped?Go(nu(t),this):this._next(t)}error(t){this.isStopped?Go(tu(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Go(eu,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},Xf=Function.prototype.bind;function zo(e,t){return Xf.call(e,t)}var Wo=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Hn(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Hn(r)}else Hn(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Hn(n)}}},Te=class extends rt{constructor(t,n,r){super();let o;if(g(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&ce.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&zo(t.next,i),error:t.error&&zo(t.error,i),complete:t.complete&&zo(t.complete,i)}):o=t}this.destination=new Wo(o)}};function Hn(e){ce.useDeprecatedSynchronousErrorHandling?ru(e):Bn(e)}function ep(e){throw e}function Go(e,t){let{onStoppedNotification:n}=ce;n&&At.setTimeout(()=>n(e,t))}var tp={closed:!0,next:tt,error:ep,complete:tt};var ot=typeof Symbol=="function"&&Symbol.observable||"@@observable";function B(e){return e}function qo(...e){return Zo(e)}function Zo(e){return e.length===0?B:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var S=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=rp(n)?n:new Te(n,r,o);return Ot(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=ou(r),new r((o,i)=>{let s=new Te({next:a=>{try{n(a)}catch(u){i(u),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[ot](){return this}pipe(...n){return Zo(n)(this)}toPromise(n){return n=ou(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function ou(e){var t;return(t=e??ce.Promise)!==null&&t!==void 0?t:Promise}function np(e){return e&&g(e.next)&&g(e.error)&&g(e.complete)}function rp(e){return e&&e instanceof rt||np(e)&&Vn(e)}var iu=Nt(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ie=(()=>{class e extends S{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new $n(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new iu}next(n){Ot(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Ot(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){Ot(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:o,observers:i}=this;return r||o?$o:(this.currentObservers=null,i.push(n),new L(()=>{this.currentObservers=null,et(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new S;return n.source=this,n}}return e.create=(t,n)=>new $n(t,n),e})(),$n=class extends ie{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:$o}};var on=class extends ie{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var it=new S(e=>e.complete());function Yo(e){return g(e?.lift)}function y(e){return t=>{if(Yo(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function v(e,t,n,r,o){return new Qo(e,t,n,r,o)}var Qo=class extends rt{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(u){t.error(u)}}:super._next,this._error=o?function(a){try{o(a)}catch(u){t.error(u)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};function ve(e,t){return y((n,r)=>{let o=0;n.subscribe(v(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:op}=Array,{getPrototypeOf:ip,prototype:sp,keys:ap}=Object;function Un(e){if(e.length===1){let t=e[0];if(op(t))return{args:t,keys:null};if(up(t)){let n=ap(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function up(e){return e&&typeof e=="object"&&ip(e)===sp}var Ko=function(e,t){return Ko=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},Ko(e,t)};function dE(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ko(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var su=function(){return su=Object.assign||function(t){for(var n,r=1,o=arguments.length;r0&&i[i.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function hE(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r1||u(f,m)})},h&&(o[f]=h(o[f])))}function u(f,h){try{c(r[f](h))}catch(m){p(i[0][3],m)}}function c(f){f.value instanceof st?Promise.resolve(f.value.v).then(l,d):p(i[0][2],f)}function l(f){u("next",f)}function d(f){u("throw",f)}function p(f,h){f(h),i.shift(),i.length&&u(i[0][0],i[0][1])}}function lu(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof au=="function"?au(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,u){s=e[i](s),o(a,u,s.done,s.value)})}}function o(i,s,a,u){Promise.resolve(u).then(function(c){i({value:c,done:a})},s)}}var Rt=e=>e&&typeof e.length=="number"&&typeof e!="function";function zn(e){return g(e?.then)}function Gn(e){return g(e[ot])}function Wn(e){return Symbol.asyncIterator&&g(e?.[Symbol.asyncIterator])}function qn(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function cp(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Zn=cp();function Yn(e){return g(e?.[Zn])}function Qn(e){return cu(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield st(n.read());if(o)return yield st(void 0);yield yield st(r)}}finally{n.releaseLock()}})}function Kn(e){return g(e?.getReader)}function T(e){if(e instanceof S)return e;if(e!=null){if(Gn(e))return lp(e);if(Rt(e))return dp(e);if(zn(e))return fp(e);if(Wn(e))return du(e);if(Yn(e))return pp(e);if(Kn(e))return hp(e)}throw qn(e)}function lp(e){return new S(t=>{let n=e[ot]();if(g(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function dp(e){return new S(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Bn)})}function pp(e){return new S(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function du(e){return new S(t=>{gp(e,t).catch(n=>t.error(n))})}function hp(e){return du(Qn(e))}function gp(e,t){var n,r,o,i;return uu(this,void 0,void 0,function*(){try{for(n=lu(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})}function Q(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function sn(e,t=0){return y((n,r)=>{n.subscribe(v(r,o=>Q(r,e,()=>r.next(o),t),()=>Q(r,e,()=>r.complete(),t),o=>Q(r,e,()=>r.error(o),t)))})}function Jn(e,t=0){return y((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function fu(e,t){return T(e).pipe(Jn(t),sn(t))}function pu(e,t){return T(e).pipe(Jn(t),sn(t))}function hu(e,t){return new S(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function gu(e,t){return new S(n=>{let r;return Q(n,t,()=>{r=e[Zn](),Q(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>g(r?.return)&&r.return()})}function Xn(e,t){if(!e)throw new Error("Iterable cannot be null");return new S(n=>{Q(n,t,()=>{let r=e[Symbol.asyncIterator]();Q(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function mu(e,t){return Xn(Qn(e),t)}function yu(e,t){if(e!=null){if(Gn(e))return fu(e,t);if(Rt(e))return hu(e,t);if(zn(e))return pu(e,t);if(Wn(e))return Xn(e,t);if(Yn(e))return gu(e,t);if(Kn(e))return mu(e,t)}throw qn(e)}function De(e,t){return t?yu(e,t):T(e)}var{isArray:mp}=Array;function yp(e,t){return mp(t)?e(...t):e(t)}function Ve(e){return ve(t=>yp(e,t))}function er(e){return e&&g(e.schedule)}function Jo(e){return e[e.length-1]}function Ft(e){return g(Jo(e))?e.pop():void 0}function Ie(e){return er(Jo(e))?e.pop():void 0}function vu(e,t){return typeof Jo(e)=="number"?e.pop():t}function tr(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function vp(...e){let t=Ie(e),n=Ft(e),{args:r,keys:o}=Un(e);if(r.length===0)return De([],t);let i=new S(Xo(r,t,o?s=>tr(o,s):B));return n?i.pipe(Ve(n)):i}function Xo(e,t,n=B){return r=>{Du(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let u=0;u{let c=De(e[u],t),l=!1;c.subscribe(v(r,d=>{i[u]=d,l||(l=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function Du(e,t,n){e?Q(n,e,t):t()}var{isArray:Dp}=Array;function Iu(e){return e.length===1&&Dp(e[0])?e[0]:e}function ei(...e){let t=Ft(e);return t?qo(ei(...e),Ve(t)):y((n,r)=>{Xo([n,...Iu(e)])(r)})}function Ip(...e){return ei(...e)}function ti(){return y((e,t)=>{let n=null;e._refCount++;let r=v(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){n=null;return}let o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}var ni=class extends S{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,Yo(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){let t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new L;let n=this.getSubject();t.add(this.source.subscribe(v(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=L.EMPTY)}return t}refCount(){return ti()(this)}};var an={now(){return(an.delegate||Date).now()},delegate:void 0};var nr=class extends ie{constructor(t=1/0,n=1/0,r=an){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n)}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(t),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;swu(t)&&e()),t},clearImmediate(e){wu(e)}};var{setImmediate:Ep,clearImmediate:Cp}=Eu,cn={setImmediate(...e){let{delegate:t}=cn;return(t?.setImmediate||Ep)(...e)},clearImmediate(e){let{delegate:t}=cn;return(t?.clearImmediate||Cp)(e)},delegate:void 0};var or=class extends Be{constructor(t,n){super(t,n),this.scheduler=t,this.work=n}requestAsyncId(t,n,r=0){return r!==null&&r>0?super.requestAsyncId(t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=cn.setImmediate(t.flush.bind(t,void 0))))}recycleAsyncId(t,n,r=0){var o;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(t,n,r);let{actions:i}=t;n!=null&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==n&&(cn.clearImmediate(n),t._scheduled===n&&(t._scheduled=void 0))}};var Pt=class e{constructor(t,n=e.now){this.schedulerActionCtor=t,this.now=n}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}};Pt.now=an.now;var He=class extends Pt{constructor(t,n=Pt.now){super(t,n),this.actions=[],this._active=!1}flush(t){let{actions:n}=this;if(this._active){n.push(t);return}let r;this._active=!0;do if(r=t.execute(t.state,t.delay))break;while(t=n.shift());if(this._active=!1,r){for(;t=n.shift();)t.unsubscribe();throw r}}};var ir=class extends He{flush(t){this._active=!0;let n=this._scheduled;this._scheduled=void 0;let{actions:r}=this,o;t=t||r.shift();do if(o=t.execute(t.state,t.delay))break;while((t=r[0])&&t.id===n&&r.shift());if(this._active=!1,o){for(;(t=r[0])&&t.id===n&&r.shift();)t.unsubscribe();throw o}}};var bp=new ir(or);var at=new He(Be),Cu=at;var sr=class extends Be{constructor(t,n){super(t,n),this.scheduler=t,this.work=n}schedule(t,n=0){return n>0?super.schedule(t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)}execute(t,n){return n>0||this.closed?super.execute(t,n):this._execute(t,n)}requestAsyncId(t,n,r=0){return r!=null&&r>0||r==null&&this.delay>0?super.requestAsyncId(t,n,r):(t.flush(this),0)}};var ar=class extends He{};var _p=new ar(sr);function Mp(...e){let t=Ie(e);return De(e,t)}function xp(e,t){let n=g(e)?e:()=>e,r=o=>o.error(n());return new S(t?o=>t.schedule(r,0,o):r)}function Sp(e){return!!e&&(e instanceof S||g(e.lift)&&g(e.subscribe))}var ut=Nt(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function bu(e){return e instanceof Date&&!isNaN(e)}function _u(e,t,n,r,o,i,s,a){let u=[],c=0,l=0,d=!1,p=()=>{d&&!u.length&&!c&&t.complete()},f=m=>c{i&&t.next(m),c++;let A=!1;T(n(m,l++)).subscribe(v(t,b=>{o?.(b),i?f(b):t.next(b)},()=>{A=!0},void 0,()=>{if(A)try{for(c--;u.length&&ch(b)):h(b)}p()}catch(b){t.error(b)}}))};return e.subscribe(v(t,f,()=>{d=!0,p()})),()=>{a?.()}}function le(e,t,n=1/0){return g(t)?le((r,o)=>ve((i,s)=>t(r,i,o,s))(T(e(r,o))),n):(typeof t=="number"&&(n=t),y((r,o)=>_u(r,o,e,n)))}function ln(e=1/0){return le(B,e)}function Mu(){return ln(1)}function kt(...e){return Mu()(De(e,Ie(e)))}function Tp(e){return new S(t=>{T(e()).subscribe(t)})}function Np(...e){let t=Ft(e),{args:n,keys:r}=Un(e),o=new S(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),u=s,c=s;for(let l=0;l{d||(d=!0,c--),a[l]=p},()=>u--,void 0,()=>{(!u||!d)&&(c||i.next(r?tr(r,a):a),i.complete())}))}});return t?o.pipe(Ve(t)):o}var Ap=["addListener","removeListener"],Op=["addEventListener","removeEventListener"],Rp=["on","off"];function ii(e,t,n,r){if(g(n)&&(r=n,n=void 0),r)return ii(e,t,n).pipe(Ve(r));let[o,i]=kp(e)?Op.map(s=>a=>e[s](t,a,n)):Fp(e)?Ap.map(xu(e,t)):Pp(e)?Rp.map(xu(e,t)):[];if(!o&&Rt(e))return le(s=>ii(s,t,n))(T(e));if(!o)throw new TypeError("Invalid event target");return new S(s=>{let a=(...u)=>s.next(1i(a)})}function xu(e,t){return n=>r=>e[n](t,r)}function Fp(e){return g(e.addListener)&&g(e.removeListener)}function Pp(e){return g(e.on)&&g(e.off)}function kp(e){return g(e.addEventListener)&&g(e.removeEventListener)}function ct(e=0,t,n=Cu){let r=-1;return t!=null&&(er(t)?n=t:r=t),new S(o=>{let i=bu(e)?+e-n.now():e;i<0&&(i=0);let s=0;return n.schedule(function(){o.closed||(o.next(s++),0<=r?this.schedule(void 0,r):o.complete())},i)})}function Lp(...e){let t=Ie(e),n=vu(e,1/0),r=e;return r.length?r.length===1?T(r[0]):ln(n)(De(r,t)):it}function lt(e,t){return y((n,r)=>{let o=0;n.subscribe(v(r,i=>e.call(t,i,o++)&&r.next(i)))})}function Su(e){return y((t,n)=>{let r=!1,o=null,i=null,s=!1,a=()=>{if(i?.unsubscribe(),i=null,r){r=!1;let c=o;o=null,n.next(c)}s&&n.complete()},u=()=>{i=null,s&&n.complete()};t.subscribe(v(n,c=>{r=!0,o=c,i||T(e(c)).subscribe(i=v(n,a,u))},()=>{s=!0,(!r||!i||i.closed)&&n.complete()}))})}function jp(e,t=at){return Su(()=>ct(e,t))}function si(e){return y((t,n)=>{let r=null,o=!1,i;r=t.subscribe(v(n,void 0,void 0,s=>{i=T(e(s,si(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function Tu(e,t,n,r,o){return(i,s)=>{let a=n,u=t,c=0;i.subscribe(v(s,l=>{let d=c++;u=a?e(u,l,d):(a=!0,l),r&&s.next(u)},o&&(()=>{a&&s.next(u),s.complete()})))}}function Vp(e,t){return g(t)?le(e,t,1):le(e,1)}function Nu(e,t=at){return y((n,r)=>{let o=null,i=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let c=i;i=null,r.next(c)}};function u(){let c=s+e,l=t.now();if(l{i=c,s=t.now(),o||(o=t.schedule(u,e),r.add(o))},()=>{a(),r.complete()},void 0,()=>{i=o=null}))})}function dn(e){return y((t,n)=>{let r=!1;t.subscribe(v(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function dt(e){return e<=0?()=>it:y((t,n)=>{let r=0;t.subscribe(v(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function Au(){return y((e,t)=>{e.subscribe(v(t,tt))})}function ai(e){return ve(()=>e)}function ui(e,t){return t?n=>kt(t.pipe(dt(1),Au()),n.pipe(ui(e))):le((n,r)=>T(e(n,r)).pipe(dt(1),ai(n)))}function Bp(e,t=at){let n=ct(e,t);return ui(()=>n)}function Hp(e,t=B){return e=e??$p,y((n,r)=>{let o,i=!0;n.subscribe(v(r,s=>{let a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s))}))})}function $p(e,t){return e===t}function ur(e=Up){return y((t,n)=>{let r=!1;t.subscribe(v(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function Up(){return new ut}function zp(e){return y((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function Ou(e,t){let n=arguments.length>=2;return r=>r.pipe(e?lt((o,i)=>e(o,i,r)):B,dt(1),n?dn(t):ur(()=>new ut))}function ci(e){return e<=0?()=>it:y((t,n)=>{let r=[];t.subscribe(v(n,o=>{r.push(o),e{for(let o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function Gp(e,t){let n=arguments.length>=2;return r=>r.pipe(e?lt((o,i)=>e(o,i,r)):B,ci(1),n?dn(t):ur(()=>new ut))}function Wp(e=1/0){let t;e&&typeof e=="object"?t=e:t={count:e};let{count:n=1/0,delay:r,resetOnSuccess:o=!1}=t;return n<=0?B:y((i,s)=>{let a=0,u,c=()=>{let l=!1;u=i.subscribe(v(s,d=>{o&&(a=0),s.next(d)},void 0,d=>{if(a++{u?(u.unsubscribe(),u=null,c()):l=!0};if(r!=null){let f=typeof r=="number"?ct(r):T(r(d,a)),h=v(s,()=>{h.unsubscribe(),p()},()=>{s.complete()});f.subscribe(h)}else p()}else s.error(d)})),l&&(u.unsubscribe(),u=null,c())};c()})}function Ru(e,t){return y(Tu(e,t,arguments.length>=2,!0))}function di(e={}){let{connector:t=()=>new ie,resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=e;return i=>{let s,a,u,c=0,l=!1,d=!1,p=()=>{a?.unsubscribe(),a=void 0},f=()=>{p(),s=u=void 0,l=d=!1},h=()=>{let m=s;f(),m?.unsubscribe()};return y((m,A)=>{c++,!d&&!l&&p();let b=u=u??t();A.add(()=>{c--,c===0&&!d&&!l&&(a=li(h,o))}),b.subscribe(A),!s&&c>0&&(s=new Te({next:O=>b.next(O),error:O=>{d=!0,p(),a=li(f,n,O),b.error(O)},complete:()=>{l=!0,p(),a=li(f,r),b.complete()}}),T(m).subscribe(s))})(i)}}function li(e,t,...n){if(t===!0){e();return}if(t===!1)return;let r=new Te({next:()=>{r.unsubscribe(),e()}});return T(t(...n)).subscribe(r)}function Fu(e,t,n){let r,o=!1;return e&&typeof e=="object"?{bufferSize:r=1/0,windowTime:t=1/0,refCount:o=!1,scheduler:n}=e:r=e??1/0,di({connector:()=>new nr(r,t,n),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function qp(e){return lt((t,n)=>e<=n)}function Zp(...e){let t=Ie(e);return y((n,r)=>{(t?kt(e,n,t):kt(e,n)).subscribe(r)})}function Pu(e,t){return y((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(v(r,u=>{o?.unsubscribe();let c=0,l=i++;T(e(u,l)).subscribe(o=v(r,d=>r.next(t?t(u,d,l,c++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Yp(e){return y((t,n)=>{T(e).subscribe(v(n,()=>n.complete(),tt)),!n.closed&&t.subscribe(n)})}function Qp(e,t=!1){return y((n,r)=>{let o=0;n.subscribe(v(r,i=>{let s=e(i,o++);(s||t)&&r.next(i),!s&&r.complete()}))})}function ku(e,t,n){let r=g(e)||t||n?{next:e,error:t,complete:n}:e;return r?y((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(v(i,u=>{var c;(c=r.next)===null||c===void 0||c.call(r,u),i.next(u)},()=>{var u;a=!1,(u=r.complete)===null||u===void 0||u.call(r),i.complete()},u=>{var c;a=!1,(c=r.error)===null||c===void 0||c.call(r,u),i.error(u)},()=>{var u,c;a&&((u=r.unsubscribe)===null||u===void 0||u.call(r)),(c=r.finalize)===null||c===void 0||c.call(r)}))}):B}function Lu(e,t){return Object.is(e,t)}var j=null,fn=!1,cr=1,se=Symbol("SIGNAL");function _(e){let t=j;return j=e,t}function ju(){return j}function Kp(){return fn}var Lt={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function gi(e){if(fn)throw new Error("");if(j===null)return;j.consumerOnSignalRead(e);let t=j.nextProducerIndex++;if(gr(j),te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function fr(e){gr(e);for(let t=0;t0}function gr(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function zu(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function Gu(e){return e.producerNode!==void 0}function mi(e){let t=Object.create(Xp);t.computation=e;let n=()=>{if(Vu(t),gi(t),t.value===lr)throw t.error;return t.value};return n[se]=t,n}var fi=Symbol("UNSET"),pi=Symbol("COMPUTING"),lr=Symbol("ERRORED"),Xp=ye(me({},Lt),{value:fi,dirty:!0,error:null,equal:Lu,producerMustRecompute(e){return e.value===fi||e.value===pi},producerRecomputeValue(e){if(e.value===pi)throw new Error("Detected cycle in computations.");let t=e.value;e.value=pi;let n=hn(e),r;try{r=e.computation()}catch(o){r=lr,e.error=o}finally{dr(e,n)}if(t!==fi&&t!==lr&&r!==lr&&e.equal(t,r)){e.value=t;return}e.value=r,e.version++}});function eh(){throw new Error}var Wu=eh;function qu(){Wu()}function Zu(e){Wu=e}var th=null;function Yu(e){let t=Object.create(Ku);t.value=e;let n=()=>(gi(t),t.value);return n[se]=t,n}function yi(e,t){Hu()||qu(),e.equal(e.value,t)||(e.value=t,nh(e))}function Qu(e,t){Hu()||qu(),yi(e,t(e.value))}var Ku=ye(me({},Lt),{equal:Lu,value:void 0});function nh(e){e.version++,Jp(),Bu(e),th?.()}function Ju(e,t,n){let r=Object.create(rh);n&&(r.consumerAllowSignalWrites=!0),r.fn=e,r.schedule=t;let o=u=>{r.cleanupFn=u};function i(u){return u.fn===null&&u.schedule===null}function s(u){i(u)||(pr(u),u.cleanupFn(),u.fn=null,u.schedule=null,u.cleanupFn=hi)}let a=()=>{if(r.fn===null)return;if(Kp())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(r.dirty=!1,r.hasRun&&!fr(r))return;r.hasRun=!0;let u=hn(r);try{r.cleanupFn(),r.cleanupFn=hi,r.fn(o)}finally{dr(r,u)}};return r.ref={notify:()=>$u(r),run:a,cleanup:()=>r.cleanupFn(),destroy:()=>s(r),[se]:r},r.ref}var hi=()=>{},rh=ye(me({},Lt),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{e.schedule!==null&&e.schedule(e.ref)},hasRun:!1,cleanupFn:hi});var Uc="https://g.co/ng/security#xss",x=class extends Error{constructor(t,n){super(zc(t,n)),this.code=t}};function zc(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}function _n(e){return{toString:e}.toString()}var mr="__parameters__";function oh(e){return function(...n){if(e){let r=e(...n);for(let o in r)this[o]=r[o]}}}function Gc(e,t,n){return _n(()=>{let r=oh(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;let s=new o(...i);return a.annotation=s,a;function a(u,c,l){let d=u.hasOwnProperty(mr)?u[mr]:Object.defineProperty(u,mr,{value:[]})[mr];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),u}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}var Ue=globalThis;function R(e){for(let t in e)if(e[t]===R)return t;throw Error("Could not find renamed property on target object.")}function ih(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function J(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(J).join(", ")+"]";if(e==null)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;let t=e.toString();if(t==null)return""+t;let n=t.indexOf(` +`);return n===-1?t:t.substring(0,n)}function Oi(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var sh=R({__forward_ref__:R});function Wc(e){return e.__forward_ref__=Wc,e.toString=function(){return J(this())},e}function H(e){return qc(e)?e():e}function qc(e){return typeof e=="function"&&e.hasOwnProperty(sh)&&e.__forward_ref__===Wc}function F(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Zc(e){return{providers:e.providers||[],imports:e.imports||[]}}function io(e){return Xu(e,Yc)||Xu(e,Qc)}function AS(e){return io(e)!==null}function Xu(e,t){return e.hasOwnProperty(t)?e[t]:null}function ah(e){let t=e&&(e[Yc]||e[Qc]);return t||null}function ec(e){return e&&(e.hasOwnProperty(tc)||e.hasOwnProperty(uh))?e[tc]:null}var Yc=R({\u0275prov:R}),tc=R({\u0275inj:R}),Qc=R({ngInjectableDef:R}),uh=R({ngInjectorDef:R}),N=class{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=F({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Kc(e){return e&&!!e.\u0275providers}var ch=R({\u0275cmp:R}),lh=R({\u0275dir:R}),dh=R({\u0275pipe:R}),fh=R({\u0275mod:R}),Nr=R({\u0275fac:R}),mn=R({__NG_ELEMENT_ID__:R}),nc=R({__NG_ENV_ID__:R});function ht(e){return typeof e=="string"?e:e==null?"":String(e)}function ph(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():ht(e)}function hh(e,t){let n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new x(-200,e)}function Gs(e,t){throw new x(-201,!1)}var M=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(M||{}),Ri;function Jc(){return Ri}function K(e){let t=Ri;return Ri=e,t}function Xc(e,t,n){let r=io(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&M.Optional)return null;if(t!==void 0)return t;Gs(e,"Injector")}var gh={},yn=gh,Fi="__NG_DI_FLAG__",Ar="ngTempTokenPath",mh="ngTokenPath",yh=/\n/gm,vh="\u0275",rc="__source",$t;function Dh(){return $t}function $e(e){let t=$t;return $t=e,t}function Ih(e,t=M.Default){if($t===void 0)throw new x(-203,!1);return $t===null?Xc(e,void 0,t):$t.get(e,t&M.Optional?null:void 0,t)}function G(e,t=M.Default){return(Jc()||Ih)(H(e),t)}function I(e,t=M.Default){return G(e,so(t))}function so(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Pi(e){let t=[];for(let n=0;n ");else if(typeof t=="object"){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):J(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(yh,` + `)}`}var bh=el(Gc("Optional"),8);var _h=el(Gc("SkipSelf"),4);function gt(e,t){let n=e.hasOwnProperty(Nr);return n?e[Nr]:null}function Mh(e,t,n){if(e.length!==t.length)return!1;for(let r=0;rArray.isArray(n)?Ws(n,t):t(n))}function tl(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Or(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Sh(e,t){let n=[];for(let r=0;rt;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function ao(e,t,n){let r=Mn(e,t);return r>=0?e[r|1]=n:(r=~r,Th(e,r,t,n)),r}function vi(e,t){let n=Mn(e,t);if(n>=0)return e[n|1]}function Mn(e,t){return Nh(e,t,1)}function Nh(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<t?o=i:r=i+1}return~(o<t){s=i-1;break}}}for(;i-1){let i;for(;++oi?d="":d=o[l+1].toLowerCase(),r&2&&c!==d){if(de(r))return!1;s=!0}}}}return de(r)||s}function de(e){return(e&1)===0}function kh(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!de(s)&&(t+=ic(i,o),o=""),r=s,i=i||!de(r);n++}return o!==""&&(t+=ic(i,o)),t}function $h(e){return e.map(Hh).join(",")}function Uh(e){let t=[],n=[],r=1,o=2;for(;r{let t=dl(e),n=ye(me({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===ol.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||vn.Emulated,styles:e.styles||Z,_:null,schemas:e.schemas||null,tView:null,id:""});fl(n);let r=e.dependencies;return n.directiveDefs=ac(r,!1),n.pipeDefs=ac(r,!0),n.id=qh(n),n})}function zh(e){return qe(e)||Zs(e)}function Gh(e){return e!==null}function ul(e){return _n(()=>({type:e.type,bootstrap:e.bootstrap||Z,declarations:e.declarations||Z,imports:e.imports||Z,exports:e.exports||Z,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function sc(e,t){if(e==null)return Ne;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a=We.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),t?(n[i]=a!==We.None?[r,a]:r,t[i]=s):n[i]=r}return n}function uo(e){return _n(()=>{let t=dl(e);return fl(t),t})}function co(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone===!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function qe(e){return e[ch]||null}function Zs(e){return e[lh]||null}function cl(e){return e[dh]||null}function Wh(e){let t=qe(e)||Zs(e)||cl(e);return t!==null?t.standalone:!1}function ll(e,t){let n=e[fh]||null;if(!n&&t===!0)throw new Error(`Type ${J(e)} does not have '\u0275mod' property.`);return n}function dl(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||Ne,exportAs:e.exportAs||null,standalone:e.standalone===!0,signals:e.signals===!0,selectors:e.selectors||Z,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:sc(e.inputs,t),outputs:sc(e.outputs),debugInfo:null}}function fl(e){e.features?.forEach(t=>t(e))}function ac(e,t){if(!e)return null;let n=t?cl:zh;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(Gh)}function qh(e){let t=0,n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(let o of n)t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function Zh(e){return{\u0275providers:e}}function Yh(...e){return{\u0275providers:pl(!0,e),\u0275fromNgModule:!0}}function pl(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return Ws(t,s=>{let a=s;Li(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&hl(o,i),n}function hl(e,t){for(let n=0;n{t(i,r)})}}function Li(e,t,n,r){if(e=H(e),!e)return!1;let o=null,i=ec(e),s=!i&&qe(e);if(!i&&!s){let u=e.ngModule;if(i=ec(u),i)o=u;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let u=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of u)Li(c,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let c;try{Ws(i.imports,l=>{Li(l,t,n,r)&&(c||=[],c.push(l))})}finally{}c!==void 0&&hl(c,t)}if(!a){let c=gt(o)||(()=>new o);t({provide:o,useFactory:c,deps:Z},o),t({provide:rl,useValue:o,multi:!0},o),t({provide:Rr,useValue:()=>G(o),multi:!0},o)}let u=i.providers;if(u!=null&&!a){let c=e;Ys(u,l=>{t(l,c)})}}else return!1;return o!==e&&e.providers!==void 0}function Ys(e,t){for(let n of e)Kc(n)&&(n=n.\u0275providers),Array.isArray(n)?Ys(n,t):t(n)}var Qh=R({provide:String,useValue:R});function gl(e){return e!==null&&typeof e=="object"&&Qh in e}function Kh(e){return!!(e&&e.useExisting)}function Jh(e){return!!(e&&e.useFactory)}function zt(e){return typeof e=="function"}function Xh(e){return!!e.useClass}var ml=new N(""),Cr={},eg={},Di;function Qs(){return Di===void 0&&(Di=new Fr),Di}var Ze=class{},In=class extends Ze{get destroyed(){return this._destroyed}constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Vi(t,s=>this.processProvider(s)),this.records.set(nl,jt(void 0,this)),o.has("environment")&&this.records.set(Ze,jt(void 0,this));let i=this.records.get(ml);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(rl,Z,M.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let t=_(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),_(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();let n=$e(this),r=K(void 0),o;try{return t()}finally{$e(n),K(r)}}get(t,n=yn,r=M.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(nc))return t[nc](this);r=so(r);let o,i=$e(this),s=K(void 0);try{if(!(r&M.SkipSelf)){let u=this.records.get(t);if(u===void 0){let c=ig(t)&&io(t);c&&this.injectableDefInScope(c)?u=jt(ji(t),Cr):u=null,this.records.set(t,u)}if(u!=null)return this.hydrate(t,u)}let a=r&M.Self?Qs():this.parent;return n=r&M.Optional&&n===yn?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[Ar]=a[Ar]||[]).unshift(J(t)),i)throw a;return Eh(a,t,"R3InjectorError",this.source)}else throw a}finally{K(s),$e(i)}}resolveInjectorInitializers(){let t=_(null),n=$e(this),r=K(void 0),o;try{let i=this.get(Rr,Z,M.Self);for(let s of i)s()}finally{$e(n),K(r),_(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(J(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new x(205,!1)}processProvider(t){t=H(t);let n=zt(t)?t:H(t&&t.provide),r=ng(t);if(!zt(t)&&t.multi===!0){let o=this.records.get(n);o||(o=jt(void 0,Cr,!0),o.factory=()=>Pi(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=_(null);try{return n.value===Cr&&(n.value=eg,n.value=n.factory()),typeof n.value=="object"&&n.value&&og(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{_(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=H(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function ji(e){let t=io(e),n=t!==null?t.factory:gt(e);if(n!==null)return n;if(e instanceof N)throw new x(204,!1);if(e instanceof Function)return tg(e);throw new x(204,!1)}function tg(e){if(e.length>0)throw new x(204,!1);let n=ah(e);return n!==null?()=>n.factory(e):()=>new e}function ng(e){if(gl(e))return jt(void 0,e.useValue);{let t=yl(e);return jt(t,Cr)}}function yl(e,t,n){let r;if(zt(e)){let o=H(e);return gt(o)||ji(o)}else if(gl(e))r=()=>H(e.useValue);else if(Jh(e))r=()=>e.useFactory(...Pi(e.deps||[]));else if(Kh(e))r=()=>G(H(e.useExisting));else{let o=H(e&&(e.useClass||e.provide));if(rg(e))r=()=>new o(...Pi(e.deps));else return gt(o)||ji(o)}return r}function jt(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function rg(e){return!!e.deps}function og(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function ig(e){return typeof e=="function"||typeof e=="object"&&e instanceof N}function Vi(e,t){for(let n of e)Array.isArray(n)?Vi(n,t):n&&Kc(n)?Vi(n.\u0275providers,t):t(n)}function RS(e,t){e instanceof In&&e.assertNotDestroyed();let n,r=$e(e),o=K(void 0);try{return t()}finally{$e(r),K(o)}}function vl(){return Jc()!==void 0||Dh()!=null}function Ks(e){if(!vl())throw new x(-203,!1)}function sg(e){return typeof e=="function"}var Me=0,E=1,w=2,W=3,he=4,X=5,Gt=6,Pr=7,U=8,Wt=9,Ce=10,k=11,wn=12,uc=13,en=14,ne=15,mt=16,Vt=17,Ae=18,lo=19,Dl=20,ze=21,br=22,ae=23,V=25,Js=1;var yt=7,kr=8,qt=9,z=10,Lr=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Lr||{});function Ge(e){return Array.isArray(e)&&typeof e[Js]=="object"}function Fe(e){return Array.isArray(e)&&e[Js]===!0}function Xs(e){return(e.flags&4)!==0}function fo(e){return e.componentOffset>-1}function po(e){return(e.flags&1)===1}function Oe(e){return!!e.template}function Bi(e){return(e[w]&512)!==0}var Hi=class{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Il(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function ho(){return wl}function wl(e){return e.type.prototype.ngOnChanges&&(e.setInput=ug),ag}ho.ngInherit=!0;function ag(){let e=Cl(this),t=e?.current;if(t){let n=e.previous;if(n===Ne)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function ug(e,t,n,r,o){let i=this.declaredInputs[r],s=Cl(e)||cg(e,{previous:Ne,current:null}),a=s.current||(s.current={}),u=s.previous,c=u[i];a[i]=new Hi(c&&c.currentValue,n,u===Ne),Il(e,t,o,n)}var El="__ngSimpleChanges__";function Cl(e){return e[El]||null}function cg(e,t){return e[El]=t}var cc=null;var we=function(e,t,n){cc?.(e,t,n)},bl="svg",lg="math";function be(e){for(;Array.isArray(e);)e=e[Me];return e}function dg(e){for(;Array.isArray(e);){if(typeof e[Js]=="object")return e;e=e[Me]}return null}function _l(e,t){return be(t[e])}function ue(e,t){return be(t[e.index])}function ea(e,t){return e.data[t]}function go(e,t){return e[t]}function Je(e,t){let n=t[e];return Ge(n)?n:n[Me]}function fg(e){return(e[w]&4)===4}function ta(e){return(e[w]&128)===128}function pg(e){return Fe(e[W])}function Ye(e,t){return t==null?null:e[t]}function Ml(e){e[Vt]=0}function xl(e){e[w]&1024||(e[w]|=1024,ta(e)&&yo(e))}function hg(e,t){for(;e>0;)t=t[en],e--;return t}function mo(e){return!!(e[w]&9216||e[ae]?.dirty)}function $i(e){e[Ce].changeDetectionScheduler?.notify(8),e[w]&64&&(e[w]|=1024),mo(e)&&yo(e)}function yo(e){e[Ce].changeDetectionScheduler?.notify(0);let t=vt(e);for(;t!==null&&!(t[w]&8192||(t[w]|=8192,!ta(t)));)t=vt(t)}function Sl(e,t){if((e[w]&256)===256)throw new x(911,!1);e[ze]===null&&(e[ze]=[]),e[ze].push(t)}function gg(e,t){if(e[ze]===null)return;let n=e[ze].indexOf(t);n!==-1&&e[ze].splice(n,1)}function vt(e){let t=e[W];return Fe(t)?t[W]:t}var C={lFrame:kl(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Tl=!1;function mg(){return C.lFrame.elementDepthCount}function yg(){C.lFrame.elementDepthCount++}function vg(){C.lFrame.elementDepthCount--}function Nl(){return C.bindingsEnabled}function Al(){return C.skipHydrationRootTNode!==null}function Dg(e){return C.skipHydrationRootTNode===e}function Ig(){C.skipHydrationRootTNode=null}function D(){return C.lFrame.lView}function P(){return C.lFrame.tView}function FS(e){return C.lFrame.contextLView=e,e[U]}function PS(e){return C.lFrame.contextLView=null,e}function $(){let e=Ol();for(;e!==null&&e.type===64;)e=e.parent;return e}function Ol(){return C.lFrame.currentTNode}function wg(){let e=C.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function _t(e,t){let n=C.lFrame;n.currentTNode=e,n.isParent=t}function na(){return C.lFrame.isParent}function ra(){C.lFrame.isParent=!1}function Eg(){return C.lFrame.contextLView}function Rl(){return Tl}function lc(e){Tl=e}function Mt(){let e=C.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Cg(){return C.lFrame.bindingIndex}function bg(e){return C.lFrame.bindingIndex=e}function xt(){return C.lFrame.bindingIndex++}function oa(e){let t=C.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function _g(){return C.lFrame.inI18n}function Mg(e,t){let n=C.lFrame;n.bindingIndex=n.bindingRootIndex=e,Ui(t)}function xg(){return C.lFrame.currentDirectiveIndex}function Ui(e){C.lFrame.currentDirectiveIndex=e}function ia(e){let t=C.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function sa(){return C.lFrame.currentQueryIndex}function vo(e){C.lFrame.currentQueryIndex=e}function Sg(e){let t=e[E];return t.type===2?t.declTNode:t.type===1?e[X]:null}function Fl(e,t,n){if(n&M.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&M.Host);)if(o=Sg(i),o===null||(i=i[en],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=C.lFrame=Pl();return r.currentTNode=t,r.lView=e,!0}function aa(e){let t=Pl(),n=e[E];C.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Pl(){let e=C.lFrame,t=e===null?null:e.child;return t===null?kl(e):t}function kl(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function Ll(){let e=C.lFrame;return C.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var jl=Ll;function ua(){let e=Ll();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Tg(e){return(C.lFrame.contextLView=hg(e,C.lFrame.contextLView))[U]}function Pe(){return C.lFrame.selectedIndex}function Dt(e){C.lFrame.selectedIndex=e}function xn(){let e=C.lFrame;return ea(e.tView,e.selectedIndex)}function kS(){C.lFrame.currentNamespace=bl}function LS(){Ng()}function Ng(){C.lFrame.currentNamespace=null}function Ag(){return C.lFrame.currentNamespace}var Vl=!0;function Do(){return Vl}function Io(e){Vl=e}function Og(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=wl(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function wo(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[u]<0&&(e[Vt]+=65536),(a>14>16&&(e[w]&3)===t&&(e[w]+=16384,dc(a,i)):dc(a,i)}var Ut=-1,It=class{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}};function Fg(e){return e instanceof It}function Pg(e){return(e.flags&8)!==0}function kg(e){return(e.flags&16)!==0}var wi={},zi=class{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=so(r);let o=this.injector.get(t,wi,r);return o!==wi||n===wi?o:this.parentInjector.get(t,n,r)}};function Hl(e){return e!==Ut}function jr(e){return e&32767}function Lg(e){return e>>16}function Vr(e,t){let n=Lg(e),r=t;for(;n>0;)r=r[en],n--;return r}var Gi=!0;function Br(e){let t=Gi;return Gi=e,t}var jg=256,$l=jg-1,Ul=5,Vg=0,Ee={};function Bg(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(mn)&&(r=n[mn]),r==null&&(r=n[mn]=Vg++);let o=r&$l,i=1<>Ul)]|=i}function Hr(e,t){let n=zl(e,t);if(n!==-1)return n;let r=t[E];r.firstCreatePass&&(e.injectorIndex=t.length,Ei(r.data,e),Ei(t,null),Ei(r.blueprint,null));let o=ca(e,t),i=e.injectorIndex;if(Hl(o)){let s=jr(o),a=Vr(o,t),u=a[E].data;for(let c=0;c<8;c++)t[i+c]=a[s+c]|u[s+c]}return t[i+8]=o,i}function Ei(e,t){e.push(0,0,0,0,0,0,0,0,t)}function zl(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function ca(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=Yl(o),r===null)return Ut;if(n++,o=o[en],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Ut}function Wi(e,t,n){Bg(e,t,n)}function Hg(e,t){if(t==="class")return e.classes;if(t==="style")return e.styles;let n=e.attrs;if(n){let r=n.length,o=0;for(;o>20,d=r?a:a+l,p=o?a+l:c;for(let f=d;f=u&&h.type===n)return f}if(o){let f=s[u];if(f&&Oe(f)&&f.type===n)return u}return null}function wt(e,t,n,r){let o=e[n],i=t.data;if(Fg(o)){let s=o;s.resolving&&hh(ph(i[n]));let a=Br(s.canSeeViewProviders);s.resolving=!0;let u,c=s.injectImpl?K(s.injectImpl):null,l=Fl(e,r,M.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&Og(n,i[n],t)}finally{c!==null&&K(c),Br(a),s.resolving=!1,jl()}}return o}function Ug(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(mn)?e[mn]:void 0;return typeof t=="number"?t>=0?t&$l:zg:t}function fc(e,t,n){let r=1<>Ul)]&r)}function pc(e,t){return!(e&M.Self)&&!(e&M.Host&&t)}var pt=class{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return ql(this._tNode,this._lView,t,so(r),n)}};function zg(){return new pt($(),D())}function jS(e){return _n(()=>{let t=e.prototype.constructor,n=t[Nr]||qi(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[Nr]||qi(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function qi(e){return qc(e)?()=>{let t=qi(H(e));return t&&t()}:gt(e)}function Gg(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[w]&2048&&!(s[w]&512);){let a=Zl(i,s,n,r|M.Self,Ee);if(a!==Ee)return a;let u=i.parent;if(!u){let c=s[Dl];if(c){let l=c.get(n,Ee,r);if(l!==Ee)return l}u=Yl(s),s=s[en]}i=u}return o}function Yl(e){let t=e[E],n=t.type;return n===2?t.declTNode:n===1?e[X]:null}function Wg(e){return Hg($(),e)}function hc(e,t=null,n=null,r){let o=Ql(e,t,n,r);return o.resolveInjectorInitializers(),o}function Ql(e,t=null,n=null,r,o=new Set){let i=[n||Z,Yh(e)];return r=r||(typeof e=="object"?void 0:J(e)),new In(i,t||Qs(),r||null,o)}var _e=class e{static{this.THROW_IF_NOT_FOUND=yn}static{this.NULL=new Fr}static create(t,n){if(Array.isArray(t))return hc({name:""},n,t,"");{let r=t.name??"";return hc({name:r},t.parent,t.providers,r)}}static{this.\u0275prov=F({token:e,providedIn:"any",factory:()=>G(nl)})}static{this.__NG_ELEMENT_ID__=-1}};var qg=new N("");qg.__NG_ELEMENT_ID__=e=>{let t=$();if(t===null)throw new x(204,!1);if(t.type&2)return t.value;if(e&M.Optional)return null;throw new x(204,!1)};var Zg="ngOriginalError";function Ci(e){return e[Zg]}var Kl=!0,Eo=(()=>{class e{static{this.__NG_ELEMENT_ID__=Yg}static{this.__NG_ENV_ID__=n=>n}}return e})(),Zi=class extends Eo{constructor(t){super(),this._lView=t}onDestroy(t){return Sl(this._lView,t),()=>gg(this._lView,t)}};function Yg(){return new Zi(D())}var Sn=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new on(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static{this.\u0275prov=F({token:e,providedIn:"root",factory:()=>new e})}}return e})();var Yi=class extends ie{constructor(t=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=t,vl()&&(this.destroyRef=I(Eo,{optional:!0})??void 0,this.pendingTasks=I(Sn,{optional:!0})??void 0)}emit(t){let n=_(null);try{super.next(t)}finally{_(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let u=t;o=u.next?.bind(u),i=u.error?.bind(u),s=u.complete?.bind(u)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof L&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{t(n),r!==void 0&&this.pendingTasks?.remove(r)})}}},pe=Yi;function $r(...e){}function Jl(e){let t,n;function r(){e=$r;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function gc(e){return queueMicrotask(()=>e()),()=>{e=$r}}var la="isAngularZone",Ur=la+"_ID",Qg=0,Y=class e{constructor(t){this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new pe(!1),this.onMicrotaskEmpty=new pe(!1),this.onStable=new pe(!1),this.onError=new pe(!1);let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=Kl}=t;if(typeof Zone>"u")throw new x(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,Xg(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(la)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new x(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new x(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,Kg,$r,$r);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},Kg={};function da(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Jg(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){Jl(()=>{e.callbackScheduled=!1,Qi(e),e.isCheckStableRunning=!0,da(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Qi(e)}function Xg(e){let t=()=>{Jg(e)},n=Qg++;e._inner=e._inner.fork({name:"angular",properties:{[la]:!0,[Ur]:n,[Ur+n]:!0},onInvokeTask:(r,o,i,s,a,u)=>{if(em(u))return r.invokeTask(i,s,a,u);try{return mc(e),r.invokeTask(i,s,a,u)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),yc(e)}},onInvoke:(r,o,i,s,a,u,c)=>{try{return mc(e),r.invoke(i,s,a,u,c)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!tm(u)&&t(),yc(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Qi(e),da(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function Qi(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function mc(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function yc(e){e._nesting--,da(e)}var Ki=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new pe,this.onMicrotaskEmpty=new pe,this.onStable=new pe,this.onError=new pe}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function em(e){return Xl(e,"__ignore_ng_zone__")}function tm(e){return Xl(e,"__scheduler_tick__")}function Xl(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var Et=class{constructor(){this._console=console}handleError(t){let n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Ci(t);for(;n&&Ci(n);)n=Ci(n);return n||null}},nm=new N("",{providedIn:"root",factory:()=>{let e=I(Y),t=I(Et);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function rm(){return tn($(),D())}function tn(e,t){return new Xe(ue(e,t))}var Xe=(()=>{class e{constructor(n){this.nativeElement=n}static{this.__NG_ELEMENT_ID__=rm}}return e})();function ed(e){return e instanceof Xe?e.nativeElement:e}function om(){return this._results[Symbol.iterator]()}var Ji=class e{get changes(){return this._changes??=new pe}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let n=e.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=om)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;let r=xh(t);(this._changesDetected=!Mh(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function td(e){return(e.flags&128)===128}var nd=new Map,im=0;function sm(){return im++}function am(e){nd.set(e[lo],e)}function Xi(e){nd.delete(e[lo])}var vc="__ngContext__";function Qe(e,t){Ge(t)?(e[vc]=t[lo],am(t)):e[vc]=t}function rd(e){return id(e[wn])}function od(e){return id(e[he])}function id(e){for(;e!==null&&!Fe(e);)e=e[he];return e}var es;function VS(e){es=e}function sd(){if(es!==void 0)return es;if(typeof document<"u")return document;throw new x(210,!1)}var BS=new N("",{providedIn:"root",factory:()=>um}),um="ng",cm=new N(""),Co=new N("",{providedIn:"platform",factory:()=>"unknown"});var HS=new N(""),$S=new N("",{providedIn:"root",factory:()=>sd().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),fa={breakpoints:[16,32,48,64,96,128,256,384,640,750,828,1080,1200,1920,2048,3840],placeholderResolution:30,disableImageSizeWarning:!1,disableImageLazyLoadWarning:!1},ad=new N("",{providedIn:"root",factory:()=>fa});var lm="h",dm="b";var fm=()=>null;function pa(e,t,n=!1){return fm(e,t,n)}var ud=!1,pm=new N("",{providedIn:"root",factory:()=>ud});var yr;function hm(){if(yr===void 0&&(yr=null,Ue.trustedTypes))try{yr=Ue.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return yr}function bo(e){return hm()?.createHTML(e)||e}var vr;function cd(){if(vr===void 0&&(vr=null,Ue.trustedTypes))try{vr=Ue.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return vr}function Dc(e){return cd()?.createHTML(e)||e}function Ic(e){return cd()?.createScriptURL(e)||e}var Re=class{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Uc})`}},ts=class extends Re{getTypeName(){return"HTML"}},ns=class extends Re{getTypeName(){return"Style"}},rs=class extends Re{getTypeName(){return"Script"}},os=class extends Re{getTypeName(){return"URL"}},is=class extends Re{getTypeName(){return"ResourceURL"}};function St(e){return e instanceof Re?e.changingThisBreaksApplicationSecurity:e}function ha(e,t){let n=gm(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Uc})`)}return n===t}function gm(e){return e instanceof Re&&e.getTypeName()||null}function US(e){return new ts(e)}function zS(e){return new ns(e)}function GS(e){return new rs(e)}function WS(e){return new os(e)}function qS(e){return new is(e)}function mm(e){let t=new as(e);return ym()?new ss(t):t}var ss=class{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{let n=new window.DOMParser().parseFromString(bo(t),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch{return null}}},as=class{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){let n=this.inertDocument.createElement("template");return n.innerHTML=bo(t),n}};function ym(){try{return!!new window.DOMParser().parseFromString(bo(""),"text/html")}catch{return!1}}var vm=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function ld(e){return e=String(e),e.match(vm)?e:"unsafe:"+e}function ke(e){let t={};for(let n of e.split(","))t[n]=!0;return t}function Tn(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}var dd=ke("area,br,col,hr,img,wbr"),fd=ke("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),pd=ke("rp,rt"),Dm=Tn(pd,fd),Im=Tn(fd,ke("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),wm=Tn(pd,ke("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),wc=Tn(dd,Im,wm,Dm),hd=ke("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Em=ke("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Cm=ke("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),bm=Tn(hd,Em,Cm),_m=ke("script,style,template"),us=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,r=!0,o=[];for(;n;){if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild){o.push(n),n=Sm(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=xm(n);if(i){n=i;break}n=o.pop()}}return this.buf.join("")}startElement(t){let n=Ec(t).toLowerCase();if(!wc.hasOwnProperty(n))return this.sanitizedSomething=!0,!_m.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);let r=t.attributes;for(let o=0;o"),!0}endElement(t){let n=Ec(t).toLowerCase();wc.hasOwnProperty(n)&&!dd.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(Cc(t))}};function Mm(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function xm(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw gd(t);return t}function Sm(e){let t=e.firstChild;if(t&&Mm(e,t))throw gd(t);return t}function Ec(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function gd(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var Tm=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Nm=/([^\#-~ |!])/g;function Cc(e){return e.replace(/&/g,"&").replace(Tm,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(Nm,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}var Dr;function Am(e,t){let n=null;try{Dr=Dr||mm(e);let r=t?String(t):"";n=Dr.getInertBodyElement(r);let o=5,i=r;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=Dr.getInertBodyElement(r)}while(r!==i);let a=new us().sanitizeChildren(bc(n)||n);return bo(a)}finally{if(n){let r=bc(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function bc(e){return"content"in e&&Om(e)?e.content:null}function Om(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var _o=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(_o||{});function ZS(e){let t=ga();return t?Dc(t.sanitize(_o.HTML,e)||""):ha(e,"HTML")?Dc(St(e)):Am(sd(),ht(e))}function Rm(e){let t=ga();return t?t.sanitize(_o.URL,e)||"":ha(e,"URL")?St(e):ld(ht(e))}function Fm(e){let t=ga();if(t)return Ic(t.sanitize(_o.RESOURCE_URL,e)||"");if(ha(e,"ResourceURL"))return Ic(St(e));throw new x(904,!1)}function Pm(e,t){return t==="src"&&(e==="embed"||e==="frame"||e==="iframe"||e==="media"||e==="script")||t==="href"&&(e==="base"||e==="link")?Fm:Rm}function YS(e,t,n){return Pm(t,n)(e)}function ga(){let e=D();return e&&e[Ce].sanitizer}var km=/^>|^->||--!>|)/g,jm="\u200B$1\u200B";function Vm(e){return e.replace(km,t=>t.replace(Lm,jm))}function md(e){return e instanceof Function?e():e}function yd(e){return(e??I(_e)).get(Co)==="browser"}var zr=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(zr||{}),Bm;function ma(e,t){return Bm(e,t)}function Bt(e,t,n,r,o){if(r!=null){let i,s=!1;Fe(r)?i=r:Ge(r)&&(s=!0,r=r[Me]);let a=be(r);e===0&&n!==null?o==null?Ed(t,n,a):Gr(t,n,a,o||null,!0):e===1&&n!==null?Gr(t,n,a,o||null,!0):e===2?ey(t,a,s):e===3&&t.destroyNode(a),i!=null&&ny(t,e,i,n,o)}}function Hm(e,t){return e.createText(t)}function $m(e,t,n){e.setValue(t,n)}function Um(e,t){return e.createComment(Vm(t))}function vd(e,t,n){return e.createElement(t,n)}function zm(e,t){Dd(e,t),t[Me]=null,t[X]=null}function Gm(e,t,n,r,o,i){r[Me]=o,r[X]=t,So(e,r,n,1,o,i)}function Dd(e,t){t[Ce].changeDetectionScheduler?.notify(9),So(e,t,t[k],2,null,null)}function Wm(e){let t=e[wn];if(!t)return bi(e[E],e);for(;t;){let n=null;if(Ge(t))n=t[wn];else{let r=t[z];r&&(n=r)}if(!n){for(;t&&!t[he]&&t!==e;)Ge(t)&&bi(t[E],t),t=t[W];t===null&&(t=e),Ge(t)&&bi(t[E],t),n=t&&t[he]}t=n}}function qm(e,t,n,r){let o=z+r,i=n.length;r>0&&(n[o-1][he]=t),r0&&(e[n-1][he]=r[he]);let i=Or(e,z+t);zm(r[E],r);let s=i[Ae];s!==null&&s.detachView(i[E]),r[W]=null,r[he]=null,r[w]&=-129}return r}function Mo(e,t){if(!(t[w]&256)){let n=t[k];n.destroyNode&&So(e,t,n,3,null,null),Wm(t)}}function bi(e,t){if(t[w]&256)return;let n=_(null);try{t[w]&=-129,t[w]|=256,t[ae]&&pr(t[ae]),Ym(e,t),Zm(e,t),t[E].type===1&&t[k].destroy();let r=t[mt];if(r!==null&&Fe(t[W])){r!==t[W]&&ya(r,t);let o=t[Ae];o!==null&&o.detachView(e)}Xi(t)}finally{_(n)}}function Zm(e,t){let n=e.cleanup,r=t[Pr];if(n!==null)for(let i=0;i=0?r[s]():r[-s].unsubscribe(),i+=2}else{let s=r[n[i+1]];n[i].call(s)}r!==null&&(t[Pr]=null);let o=t[ze];if(o!==null){t[ze]=null;for(let i=0;i-1){let{encapsulation:i}=e.data[r.directiveStart+o];if(i===vn.None||i===vn.Emulated)return null}return ue(r,n)}}function Gr(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Ed(e,t,n){e.appendChild(t,n)}function _c(e,t,n,r,o){r!==null?Gr(e,t,n,r,o):Ed(e,t,n)}function Cd(e,t){return e.parentNode(t)}function Km(e,t){return e.nextSibling(t)}function bd(e,t,n){return Xm(e,t,n)}function Jm(e,t,n){return e.type&40?ue(e,n):null}var Xm=Jm,Mc;function xo(e,t,n,r){let o=wd(e,r,t),i=t[k],s=r.parent||t[X],a=bd(s,r,t);if(o!=null)if(Array.isArray(n))for(let u=0;uV&&Td(e,t,V,!1),we(s?2:0,o),n(r,o)}finally{Dt(i),we(s?3:1,o)}}function Da(e,t,n){if(Xs(t)){let r=_(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;snull;function dy(e,t,n,r){let o=jd(t);o.push(n),e.firstCreatePass&&Vd(e).push(r,o.length-1)}function fy(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return Al()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function xc(e,t,n,r,o){for(let i in t){if(!t.hasOwnProperty(i))continue;let s=t[i];if(s===void 0)continue;r??={};let a,u=We.None;Array.isArray(s)?(a=s[0],u=s[1]):a=s;let c=i;if(o!==null){if(!o.hasOwnProperty(i))continue;c=o[i]}e===0?Sc(r,n,c,a,u):Sc(r,n,c,a)}return r}function Sc(e,t,n,r,o){let i;e.hasOwnProperty(n)?(i=e[n]).push(t,r):i=e[n]=[t,r],o!==void 0&&i.push(o)}function py(e,t,n){let r=t.directiveStart,o=t.directiveEnd,i=e.data,s=t.attrs,a=[],u=null,c=null;for(let l=r;l0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function vy(e,t,n,r){let o=n.directiveStart,i=n.directiveEnd;fo(n)&&_y(t,n,e.data[o+n.componentOffset]),e.firstCreatePass||Hr(n,t),Qe(r,t);let s=n.initialInputs;for(let a=o;a{yo(e.lView)},consumerOnSignalRead(){this.lView[ae]=this}});function jy(e){let t=e[ae]??Object.create(Vy);return t.lView=e,t}var Vy=ye(me({},Lt),{consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=vt(e.lView);for(;t&&!Wd(t[E]);)t=vt(t);t&&xl(t)},consumerOnSignalRead(){this.lView[ae]=this}});function Wd(e){return e.type!==2}var By=100;function qd(e,t=!0,n=0){let r=e[Ce],o=r.rendererFactory,i=!1;i||o.begin?.();try{Hy(e,n)}catch(s){throw t&&Hd(e,s),s}finally{i||(o.end?.(),r.inlineEffectRunner?.flush())}}function Hy(e,t){let n=Rl();try{lc(!0),fs(e,t);let r=0;for(;mo(e);){if(r===By)throw new x(103,!1);r++,fs(e,1)}}finally{lc(n)}}function $y(e,t,n,r){let o=t[w];if((o&256)===256)return;let i=!1,s=!1;!i&&t[Ce].inlineEffectRunner?.flush(),aa(t);let a=!0,u=null,c=null;i||(Wd(e)?(c=Fy(t),u=hn(c)):ju()===null?(a=!1,c=jy(t),u=hn(c)):t[ae]&&(pr(t[ae]),t[ae]=null));try{Ml(t),bg(e.bindingStartIndex),n!==null&&Od(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let f=e.preOrderCheckHooks;f!==null&&_r(t,f,null)}else{let f=e.preOrderHooks;f!==null&&Mr(t,f,0,null),Ii(t,0)}if(s||Uy(t),Zd(t,0),e.contentQueries!==null&&Ld(e,t),!i)if(l){let f=e.contentCheckHooks;f!==null&&_r(t,f)}else{let f=e.contentHooks;f!==null&&Mr(t,f,1),Ii(t,1)}iy(e,t);let d=e.components;d!==null&&Qd(t,d,0);let p=e.viewQuery;if(p!==null&&ds(2,p,r),!i)if(l){let f=e.viewCheckHooks;f!==null&&_r(t,f)}else{let f=e.viewHooks;f!==null&&Mr(t,f,2),Ii(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[br]){for(let f of t[br])f();t[br]=null}i||(t[w]&=-73)}catch(l){throw i||yo(t),l}finally{c!==null&&(dr(c,u),a&&ky(c)),ua()}}function Zd(e,t){for(let n=rd(e);n!==null;n=od(n))for(let r=z;r-1&&(En(t,r),Or(n,r))}this._attachedToViewContainer=!1}Mo(this._lView[E],this._lView)}onDestroy(t){Sl(this._lView,t)}markForCheck(){Ma(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[w]&=-129}reattach(){$i(this._lView),this._lView[w]|=128}detectChanges(){this._lView[w]|=1024,qd(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new x(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=Bi(this._lView),n=this._lView[mt];n!==null&&!t&&ya(n,this._lView),Dd(this._lView[E],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new x(902,!1);this._appRef=t;let n=Bi(this._lView),r=this._lView[mt];r!==null&&!n&&Id(r,this._lView),$i(this._lView)}},Cn=(()=>{class e{static{this.__NG_ELEMENT_ID__=qy}}return e})(),Gy=Cn,Wy=class extends Gy{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){let o=Nn(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new Ct(o)}};function qy(){return Oo($(),D())}function Oo(e,t){return e.type&4?new Wy(t,e,tn(e,t)):null}var XS=new RegExp(`^(\\d+)*(${dm}|${lm})*(.*)`);var Zy=()=>null;function Yt(e,t){return Zy(e,t)}var Qt=class{},xa=new N("",{providedIn:"root",factory:()=>!1});var Kd=new N(""),Jd=new N(""),ps=class{},qr=class{};function Yy(e){let t=Error(`No component factory found for ${J(e)}.`);return t[Qy]=e,t}var Qy="ngComponent";var hs=class{resolveComponentFactory(t){throw Yy(t)}},Kt=class{static{this.NULL=new hs}},Zr=class{},Ro=(()=>{class e{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>Ky()}}return e})();function Ky(){let e=D(),t=$(),n=Je(t.index,e);return(Ge(n)?n:e)[k]}var Jy=(()=>{class e{static{this.\u0275prov=F({token:e,providedIn:"root",factory:()=>null})}}return e})();function Yr(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s0&&xd(e,n,i.join(" "))}}function iv(e,t,n){let r=e.projection=[];for(let o=0;o{class e{static{this.__NG_ELEMENT_ID__=av}}return e})();function av(){let e=$();return ef(e,D())}var uv=On,Xd=class extends uv{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return tn(this._hostTNode,this._hostLView)}get injector(){return new pt(this._hostTNode,this._hostLView)}get parentInjector(){let t=ca(this._hostTNode,this._hostLView);if(Hl(t)){let n=Vr(t,this._hostLView),r=jr(t),o=n[E].data[r+8];return new pt(o,n)}else return new pt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=Nc(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-z}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=Yt(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,Zt(this._hostTNode,s)),a}createComponent(t,n,r,o,i){let s=t&&!sg(t),a;if(s)a=n;else{let h=n||{};a=h.index,r=h.injector,o=h.projectableNodes,i=h.environmentInjector||h.ngModuleRef}let u=s?t:new Jt(qe(t)),c=r||this.parentInjector;if(!i&&u.ngModule==null){let m=(s?c:this.parentInjector).get(Ze,null);m&&(i=m)}let l=qe(u.componentType??{}),d=Yt(this._lContainer,l?.id??null),p=d?.firstChild??null,f=u.create(c,o,p,i);return this.insertImpl(f.hostView,a,Zt(this._hostTNode,d)),f}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(pg(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let u=o[W],c=new Xd(u,u[X],u[W]);c.detach(c.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return An(s,o,i,r),t.attachToViewContainerRef(),tl(_i(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=Nc(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=En(this._lContainer,n);r&&(Or(_i(this._lContainer),n),Mo(r[E],r))}detach(t){let n=this._adjustIndex(t,-1),r=En(this._lContainer,n);return r&&Or(_i(this._lContainer),n)!=null?new Ct(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function Nc(e){return e[kr]}function _i(e){return e[kr]||(e[kr]=[])}function ef(e,t){let n,r=t[e.index];return Fe(r)?n=r:(n=kd(r,t,null,e),t[e.index]=n,Ao(t,n)),lv(n,t,e,r),new Xd(n,e,t)}function cv(e,t){let n=e[k],r=n.createComment(""),o=ue(t,e),i=Cd(n,o);return Gr(n,i,r,Km(n,o),!1),r}var lv=pv,dv=()=>!1;function fv(e,t,n){return dv(e,t,n)}function pv(e,t,n,r){if(e[yt])return;let o;n.type&8?o=be(r):o=cv(t,n),e[yt]=o}var ms=class e{constructor(t){this.queryList=t,this.matches=null}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},ys=class e{constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,o=[];for(let i=0;i0)r.push(s[a/2]);else{let c=i[a+1],l=t[-u];for(let d=z;dt.trim())}function of(e,t,n){e.queries===null&&(e.queries=new vs),e.queries.track(new Ds(t,n))}function Iv(e,t){let n=e.contentQueries||(e.contentQueries=[]),r=n.length?n[n.length-1]:-1;t!==r&&n.push(e.queries.length-1,t)}function Ta(e,t){return e.queries.getByIndex(t)}function sf(e,t){let n=e[E],r=Ta(n,t);return r.crossesNgTemplate?Is(n,e,t,[]):tf(n,e,r,t)}var Ac=new Set;function ge(e){Ac.has(e)||(Ac.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function tT(e){return typeof e=="function"&&e[se]!==void 0}function wv(e,t){ge("NgSignals");let n=Yu(e),r=n[se];return t?.equal&&(r.equal=t.equal),n.set=o=>yi(r,o),n.update=o=>Qu(r,o),n.asReadonly=Ev.bind(n),n}function Ev(){let e=this[se];if(e.readonlyFn===void 0){let t=()=>this();t[se]=e,e.readonlyFn=t}return e.readonlyFn}function af(e,t){let n,r=mi(()=>{n._dirtyCounter();let o=Mv(n,e);if(t&&o===void 0)throw new x(-951,!1);return o});return n=r[se],n._dirtyCounter=wv(0),n._flatValue=void 0,r}function Cv(){return af(!0,!1)}function bv(){return af(!0,!0)}function _v(e,t){let n=e[se];n._lView=D(),n._queryIndex=t,n._queryList=Sa(n._lView,t),n._queryList.onDirty(()=>n._dirtyCounter.update(r=>r+1))}function Mv(e,t){let n=e._lView,r=e._queryIndex;if(n===void 0||r===void 0||n[w]&4)return t?void 0:Z;let o=Sa(n,r),i=sf(n,r);return o.reset(i,ed),t?o.first:o._changesDetected||e._flatValue===void 0?e._flatValue=o.toArray():e._flatValue}function Oc(e,t){return Cv()}function xv(e,t){return bv()}var nT=(Oc.required=xv,Oc);function Sv(e){return Object.getPrototypeOf(e.prototype).constructor}function Tv(e){let t=Sv(e.type),n=!0,r=[e];for(;t;){let o;if(Oe(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new x(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);let s=e;s.inputs=Ir(e.inputs),s.inputTransforms=Ir(e.inputTransforms),s.declaredInputs=Ir(e.declaredInputs),s.outputs=Ir(e.outputs);let a=o.hostBindings;a&&Fv(e,a);let u=o.viewQuery,c=o.contentQueries;if(u&&Ov(e,u),c&&Rv(e,c),Nv(e,o),ih(e.outputs,o.outputs),Oe(o)&&o.data.animation){let l=e.data;l.animation=(l.animation||[]).concat(o.data.animation)}}let i=o.features;if(i)for(let s=0;s=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=Dn(o.hostAttrs,n=Dn(n,o.hostAttrs))}}function Ir(e){return e===Ne?{}:e===Z?[]:e}function Ov(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function Rv(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function Fv(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}function rT(e){let t=n=>{let r=(Array.isArray(e)?e:e()).map(o=>typeof o=="function"?{directive:H(o),inputs:Ne,outputs:Ne}:{directive:H(o.directive),inputs:Rc(o.inputs),outputs:Rc(o.outputs)});n.hostDirectives===null?(n.findHostDirectiveDefs=uf,n.hostDirectives=r):n.hostDirectives.unshift(...r)};return t.ngInherit=!0,t}function uf(e,t,n){if(e.hostDirectives!==null)for(let r of e.hostDirectives){let o=Zs(r.directive);Pv(o.declaredInputs,r.inputs),uf(o,t,n),n.set(o,r),t.push(o)}}function Rc(e){if(e===void 0||e.length===0)return Ne;let t={};for(let n=0;nn()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},Cs=class extends ws{constructor(t){super(),this.moduleType=t}create(t){return new Es(this.moduleType,t,[])}};var Jr=class extends Ke{constructor(t){super(),this.componentFactoryResolver=new Qr(this),this.instance=null;let n=new In([...t.providers,{provide:Ke,useValue:this},{provide:Kt,useValue:this.componentFactoryResolver}],t.parent||Qs(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function kv(e,t,n=null){return new Jr({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}function lf(e){return jv(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function Lv(e,t){if(Array.isArray(e))for(let n=0;n{class e{constructor(){this.impl=null}execute(){this.impl?.execute()}static{this.\u0275prov=F({token:e,providedIn:"root",factory:()=>new e})}}return e})(),bs=class e{constructor(){this.ngZone=I(Y),this.scheduler=I(Qt),this.errorHandler=I(Et,{optional:!0}),this.sequences=new Set,this.deferredRegistrations=new Set,this.executing=!1}static{this.PHASES=[Ht.EarlyRead,Ht.Write,Ht.MixedReadWrite,Ht.Read]}execute(){this.executing=!0;for(let t of e.PHASES)for(let n of this.sequences)if(!(n.erroredOrDestroyed||!n.hooks[t]))try{n.pipelinedValue=this.ngZone.runOutsideAngular(()=>n.hooks[t](n.pipelinedValue))}catch(r){n.erroredOrDestroyed=!0,this.errorHandler?.handleError(r)}this.executing=!1;for(let t of this.sequences)t.afterRun(),t.once&&(this.sequences.delete(t),t.destroy());for(let t of this.deferredRegistrations)this.sequences.add(t);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear()}register(t){this.executing?this.deferredRegistrations.add(t):(this.sequences.add(t),this.scheduler.notify(6))}unregister(t){this.executing&&this.sequences.has(t)?(t.erroredOrDestroyed=!0,t.pipelinedValue=void 0,t.once=!0):(this.sequences.delete(t),this.deferredRegistrations.delete(t))}static{this.\u0275prov=F({token:e,providedIn:"root",factory:()=>new e})}},_s=class{constructor(t,n,r,o){this.impl=t,this.hooks=n,this.once=r,this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.unregisterOnDestroy=o?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.()}};function Wv(e,t){!t?.injector&&Ks(Wv);let n=t?.injector??I(_e);return yd(n)?(ge("NgAfterRender"),ff(e,n,t,!1)):pf}function qv(e,t){!t?.injector&&Ks(qv);let n=t?.injector??I(_e);return yd(n)?(ge("NgAfterNextRender"),ff(e,n,t,!0)):pf}function Zv(e,t){if(e instanceof Function){let n=[void 0,void 0,void 0,void 0];return n[t]=e,n}else return[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function ff(e,t,n,r){let o=t.get(df);o.impl??=t.get(bs);let i=n?.phase??Ht.MixedReadWrite,s=n?.manualCleanup!==!0?t.get(Eo):null,a=new _s(o.impl,Zv(e,i),r,s);return o.impl.register(a),a}var pf={destroy(){}};function Yv(e,t,n,r){let o=D(),i=xt();if(re(o,i,t)){let s=P(),a=xn();My(a,o,e,t,n,r)}return Yv}function Aa(e,t,n,r){return re(e,xt(),n)?t+ht(n)+r:ee}function Qv(e,t,n,r,o,i){let s=Cg(),a=Na(e,s,n,o);return oa(2),a?t+ht(n)+r+ht(o)+i:ee}function wr(e,t){return e<<17|t<<2}function bt(e){return e>>17&32767}function Kv(e){return(e&2)==2}function Jv(e,t){return e&131071|t<<17}function Ms(e){return e|2}function Xt(e){return(e&131068)>>2}function Mi(e,t){return e&-131069|t<<2}function Xv(e){return(e&1)===1}function xs(e){return e|1}function eD(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=bt(s),u=Xt(s);e[r]=n;let c=!1,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||Mn(d,l)>0)&&(c=!0)}else l=n;if(o)if(u!==0){let p=bt(e[a+1]);e[r+1]=wr(p,a),p!==0&&(e[p+1]=Mi(e[p+1],r)),e[a+1]=Jv(e[a+1],r)}else e[r+1]=wr(a,0),a!==0&&(e[a+1]=Mi(e[a+1],r)),a=r;else e[r+1]=wr(u,0),a===0?a=r:e[u+1]=Mi(e[u+1],r),u=r;c&&(e[r+1]=Ms(e[r+1])),Fc(e,l,r,!0),Fc(e,l,r,!1),tD(t,l,e,r,i),s=wr(a,u),i?t.classBindings=s:t.styleBindings=s}function tD(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&Mn(i,t)>=0&&(n[r+1]=xs(n[r+1]))}function Fc(e,t,n,r){let o=e[n+1],i=t===null,s=r?bt(o):Xt(o),a=!1;for(;s!==0&&(a===!1||i);){let u=e[s],c=e[s+1];nD(u,t)&&(a=!0,e[s+1]=r?xs(c):Ms(c)),s=r?bt(c):Xt(c)}a&&(e[n+1]=r?Ms(o):xs(o))}function nD(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Mn(e,t)>=0:!1}var fe={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function rD(e){return e.substring(fe.key,fe.keyEnd)}function oD(e){return iD(e),hf(e,gf(e,0,fe.textEnd))}function hf(e,t){let n=fe.textEnd;return n===t?-1:(t=fe.keyEnd=sD(e,fe.key=t,n),gf(e,t,n))}function iD(e){fe.key=0,fe.keyEnd=0,fe.value=0,fe.valueEnd=0,fe.textEnd=e.length}function gf(e,t,n){for(;t32;)t++;return t}function aD(e,t,n){let r=D(),o=xt();if(re(r,o,t)){let i=P(),s=xn();No(i,s,r,e,t,r[k],n,!1)}return aD}function Ss(e,t,n,r,o){let i=t.inputs,s=o?"class":"style";ba(e,n,i[s],s,r)}function Oa(e,t,n){return yf(e,t,n,!1),Oa}function uD(e,t){return yf(e,t,null,!0),uD}function oT(e){vf(hD,mf,e,!0)}function mf(e,t){for(let n=oD(t);n>=0;n=hf(t,n))ao(e,rD(t),!0)}function yf(e,t,n,r){let o=D(),i=P(),s=oa(2);if(i.firstUpdatePass&&If(i,e,s,r),t!==ee&&re(o,s,t)){let a=i.data[Pe()];wf(i,a,o,o[k],e,o[s+1]=mD(t,n),r,s)}}function vf(e,t,n,r){let o=P(),i=oa(2);o.firstUpdatePass&&If(o,null,i,r);let s=D();if(n!==ee&&re(s,i,n)){let a=o.data[Pe()];if(Ef(a,r)&&!Df(o,i)){let u=r?a.classesWithoutHost:a.stylesWithoutHost;u!==null&&(n=Oi(u,n||"")),Ss(o,a,s,n,r)}else gD(o,a,s,s[k],s[i+1],s[i+1]=pD(e,t,n),r,i)}}function Df(e,t){return t>=e.expandoStartIndex}function If(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[Pe()],s=Df(e,n);Ef(i,r)&&t===null&&!s&&(t=!1),t=cD(o,i,t,r),eD(o,i,t,n,s,r)}}function cD(e,t,n,r){let o=ia(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=xi(null,e,t,n,r),n=bn(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=xi(o,e,t,n,r),i===null){let u=lD(e,t,r);u!==void 0&&Array.isArray(u)&&(u=xi(null,e,t,u[1],r),u=bn(u,t.attrs,r),dD(e,t,r,u))}else i=fD(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function lD(e,t,n){let r=n?t.classBindings:t.styleBindings;if(Xt(r)!==0)return e[bt(r)]}function dD(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[bt(o)]=r}function fD(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0;){let u=e[o],c=Array.isArray(u),l=c?u[1]:u,d=l===null,p=n[o+1];p===ee&&(p=d?Z:void 0);let f=d?vi(p,r):l===r?p:void 0;if(c&&!eo(f)&&(f=vi(u,r)),eo(f)&&(a=f,s))return a;let h=e[o+1];o=s?bt(h):Xt(h)}if(t!==null){let u=i?t.residualClasses:t.residualStyles;u!=null&&(a=vi(u,r))}return a}function eo(e){return e!==void 0}function mD(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=J(St(e)))),e}function Ef(e,t){return(e.flags&(t?8:16))!==0}function iT(e,t,n){let r=D(),o=Aa(r,e,t,n);vf(ao,mf,o,!0)}var Ts=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),o=Math.max(t,n),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s)}else this.attach(r,i)}move(t,n){this.attach(n,this.detach(t))}};function Si(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function yD(e,t,n){let r,o,i=0,s=e.length-1,a=void 0;if(Array.isArray(t)){let u=t.length-1;for(;i<=s&&i<=u;){let c=e.at(i),l=t[i],d=Si(i,c,i,l,n);if(d!==0){d<0&&e.updateValue(i,l),i++;continue}let p=e.at(s),f=t[u],h=Si(s,p,u,f,n);if(h!==0){h<0&&e.updateValue(s,f),s--,u--;continue}let m=n(i,c),A=n(s,p),b=n(i,l);if(Object.is(b,A)){let O=n(u,f);Object.is(O,m)?(e.swap(i,s),e.updateValue(s,f),u--,s--):e.move(s,i),e.updateValue(i,l),i++;continue}if(r??=new to,o??=Lc(e,i,s,n),Ns(e,r,i,b))e.updateValue(i,l),i++,s++;else if(o.has(b))r.set(m,e.detach(i)),s--;else{let O=e.create(i,t[i]);e.attach(i,O),i++,s++}}for(;i<=u;)kc(e,r,n,i,t[i]),i++}else if(t!=null){let u=t[Symbol.iterator](),c=u.next();for(;!c.done&&i<=s;){let l=e.at(i),d=c.value,p=Si(i,l,i,d,n);if(p!==0)p<0&&e.updateValue(i,d),i++,c=u.next();else{r??=new to,o??=Lc(e,i,s,n);let f=n(i,d);if(Ns(e,r,i,f))e.updateValue(i,d),i++,s++,c=u.next();else if(!o.has(f))e.attach(i,e.create(i,d)),i++,s++,c=u.next();else{let h=n(i,l);r.set(h,e.detach(i)),s--}}}for(;!c.done;)kc(e,r,n,e.length,c.value),c=u.next()}for(;i<=s;)e.destroy(e.detach(s--));r?.forEach(u=>{e.destroy(u)})}function Ns(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function kc(e,t,n,r,o){if(Ns(e,t,r,n(r,o)))e.updateValue(r,o);else{let i=e.create(r,o);e.attach(r,i)}}function Lc(e,t,n,r){let o=new Set;for(let i=t;i<=n;i++)o.add(r(i,e.at(i)));return o}var to=class{constructor(){this.kvMap=new Map,this._vMap=void 0}has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n)}}};function sT(e,t){ge("NgControlFlow");let n=D(),r=xt(),o=n[r]!==ee?n[r]:-1,i=o!==-1?no(n,V+o):void 0,s=0;if(re(n,r,e)){let a=_(null);try{if(i!==void 0&&zd(i,s),e!==-1){let u=V+e,c=no(n,u),l=Fs(n[E],u),d=Yt(c,l.tView.ssrId),p=Nn(n,l,t,{dehydratedView:d});An(c,p,s,Zt(l,d))}}finally{_(a)}}else if(i!==void 0){let a=Ud(i,s);a!==void 0&&(a[U]=t)}}var As=class{constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-z}};function aT(e,t){return t}var Os=class{constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function uT(e,t,n,r,o,i,s,a,u,c,l,d,p){ge("NgControlFlow");let f=D(),h=P(),m=u!==void 0,A=D(),b=a?s.bind(A[ne][U]):s,O=new Os(m,b);A[V+e]=O,Xr(f,h,e+1,t,n,r,o,Ye(h.consts,i)),m&&Xr(f,h,e+2,u,c,l,d,Ye(h.consts,p))}var Rs=class extends Ts{constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-z}at(t){return this.getLView(t)[U].$implicit}attach(t,n){let r=n[Gt];this.needsIndexUpdate||=t!==this.length,An(this.lContainer,n,t,Zt(this.templateTNode,r))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,vD(this.lContainer,t)}create(t,n){let r=Yt(this.lContainer,this.templateTNode.tView.ssrId),o=Nn(this.hostLView,this.templateTNode,new As(this.lContainer,n,t),{dehydratedView:r});return this.operationsCounter?.recordCreate(),o}destroy(t){Mo(t[E],t),this.operationsCounter?.recordDestroy()}updateValue(t,n){this.getLView(t)[U].$implicit=n}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t(Io(!0),vd(r,o,Ag()));function CD(e,t,n,r,o){let i=t.consts,s=Ye(i,r),a=nn(t,e,8,"ng-container",s);s!==null&&Yr(a,s,!0);let u=Ye(i,o);return Ca(t,n,a,u),t.queries!==null&&t.queries.elementStart(t,a),a}function _f(e,t,n){let r=D(),o=P(),i=e+V,s=o.firstCreatePass?CD(i,o,r,t,n):o.data[i];_t(s,!0);let a=_D(o,r,s,e);return r[i]=a,Do()&&xo(o,r,a,s),Qe(a,r),po(s)&&(Ia(o,r,s),Da(o,s,r)),n!=null&&wa(r,s),_f}function Mf(){let e=$(),t=P();return na()?ra():(e=e.parent,_t(e,!1)),t.firstCreatePass&&(wo(t,e),Xs(e)&&t.queries.elementEnd(e)),Mf}function bD(e,t,n){return _f(e,t,n),Mf(),bD}var _D=(e,t,n,r)=>(Io(!0),Um(t[k],""));function lT(){return D()}function MD(e,t,n){let r=D(),o=xt();if(re(r,o,t)){let i=P(),s=xn();No(i,s,r,e,t,r[k],n,!0)}return MD}function xD(e,t,n){let r=D(),o=xt();if(re(r,o,t)){let i=P(),s=xn(),a=ia(i.data),u=Bd(a,s,r);No(i,s,r,e,t,u,n,!0)}return xD}var ft=void 0;function SD(e){let t=e,n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return n===1&&r===0?1:5}var TD=["en",[["a","p"],["AM","PM"],ft],[["AM","PM"],ft,ft],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],ft,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],ft,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",ft,"{1} 'at' {0}",ft],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",SD],Ti={};function Ra(e){let t=ND(e),n=jc(t);if(n)return n;let r=t.split("-")[0];if(n=jc(r),n)return n;if(r==="en")return TD;throw new x(701,!1)}function jc(e){return e in Ti||(Ti[e]=Ue.ng&&Ue.ng.common&&Ue.ng.common.locales&&Ue.ng.common.locales[e]),Ti[e]}var rn=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(rn||{});function ND(e){return e.toLowerCase().replace(/_/g,"-")}var ro="en-US";var AD=ro;function OD(e){typeof e=="string"&&(AD=e.toLowerCase().replace(/_/g,"-"))}var RD=(e,t,n)=>{};function FD(e,t,n,r){let o=D(),i=P(),s=$();return xf(i,o,o[k],s,e,t,r),FD}function PD(e,t){let n=$(),r=D(),o=P(),i=ia(o.data),s=Bd(i,n,r);return xf(o,r,s,n,e,t),PD}function kD(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;iu?a[u]:null}typeof s=="string"&&(i+=2)}return null}function xf(e,t,n,r,o,i,s){let a=po(r),c=e.firstCreatePass&&Vd(e),l=t[U],d=jd(t),p=!0;if(r.type&3||s){let m=ue(r,t),A=s?s(m):m,b=d.length,O=s?q=>s(be(q[r.index])):r.index,oe=null;if(!s&&a&&(oe=kD(e,t,o,r.index)),oe!==null){let q=oe.__ngLastListenerFn__||oe;q.__ngNextListenerFn__=i,oe.__ngLastListenerFn__=i,p=!1}else{i=Bc(r,t,l,i),RD(m,o,i);let q=n.listen(A,o,i);d.push(i,q),c&&c.push(o,O,b,b+1)}}else i=Bc(r,t,l,i);let f=r.outputs,h;if(p&&f!==null&&(h=f[o])){let m=h.length;if(m)for(let A=0;A-1?Je(e.index,t):t;Ma(s,5);let a=Vc(t,n,r,i),u=o.__ngNextListenerFn__;for(;u;)a=Vc(t,n,u,i)&&a,u=u.__ngNextListenerFn__;return a}}function dT(e=1){return Tg(e)}function LD(e,t){let n=null,r=Lh(e);for(let o=0;o=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function IT(e){let t=Eg();return go(t,V+e)}function wT(e,t=""){let n=D(),r=P(),o=e+V,i=r.firstCreatePass?nn(r,o,1,t,null):r.data[o],s=HD(r,n,i,t,e);n[o]=s,Do()&&xo(r,n,s,i),_t(i,!1)}var HD=(e,t,n,r,o)=>(Io(!0),Hm(t[k],r));function $D(e){return Tf("",e,""),$D}function Tf(e,t,n){let r=D(),o=Aa(r,e,t,n);return o!==ee&&$d(r,Pe(),o),Tf}function UD(e,t,n,r,o){let i=D(),s=Qv(i,e,t,n,r,o);return s!==ee&&$d(i,Pe(),s),UD}function zD(e,t,n){let r=P();if(r.firstCreatePass){let o=Oe(e);Ps(n,r.data,r.blueprint,o,!0),Ps(t,r.data,r.blueprint,o,!1)}}function Ps(e,t,n,r,o){if(e=H(e),Array.isArray(e))for(let i=0;i>20;if(zt(e)||!e.multi){let f=new It(c,o,xe),h=Ai(u,t,o?l:l+p,d);h===-1?(Wi(Hr(a,s),i,u),Ni(i,e,t.length),t.push(u),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(f),s.push(f)):(n[h]=f,s[h]=f)}else{let f=Ai(u,t,l+p,d),h=Ai(u,t,l,l+p),m=f>=0&&n[f],A=h>=0&&n[h];if(o&&!A||!o&&!m){Wi(Hr(a,s),i,u);let b=qD(o?WD:GD,n.length,o,r,c);!o&&A&&(n[h].providerFactory=b),Ni(i,e,t.length,0),t.push(u),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(b),s.push(b)}else{let b=Nf(n[o?h:f],c,!o&&r);Ni(i,e,f>-1?f:h,b)}!o&&r&&A&&n[h].componentProviders++}}}function Ni(e,t,n,r){let o=zt(t),i=Xh(t);if(o||i){let u=(i?H(t.useClass):t).prototype.ngOnDestroy;if(u){let c=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let l=c.indexOf(n);l===-1?c.push(n,[r,u]):c[l+1].push(r,u)}else c.push(n,u)}}}function Nf(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Ai(e,t,n,r){for(let o=n;o{n.providersResolver=(r,o)=>zD(r,o?o(e):e,t)}}var ZD=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=pl(!1,n.type),o=r.length>0?kv([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static{this.\u0275prov=F({token:e,providedIn:"environment",factory:()=>new e(G(Ze))})}}return e})();function CT(e){ge("NgStandalone"),e.getStandaloneInjector=t=>t.get(ZD).getOrCreateStandaloneInjector(e)}function bT(e,t,n){let r=Mt()+e,o=D();return o[r]===ee?Fo(o,r,n?t.call(n):t()):Vv(o,r)}function _T(e,t,n,r){return Af(D(),Mt(),e,t,n,r)}function MT(e,t,n,r,o){return Of(D(),Mt(),e,t,n,r,o)}function xT(e,t,n,r,o,i){return Rf(D(),Mt(),e,t,n,r,o,i)}function Fa(e,t){let n=e[t];return n===ee?void 0:n}function Af(e,t,n,r,o,i){let s=t+n;return re(e,s,o)?Fo(e,s+1,i?r.call(i,o):r(o)):Fa(e,s+1)}function Of(e,t,n,r,o,i,s){let a=t+n;return Na(e,a,o,i)?Fo(e,a+2,s?r.call(s,o,i):r(o,i)):Fa(e,a+2)}function Rf(e,t,n,r,o,i,s,a){let u=t+n;return Bv(e,u,o,i,s)?Fo(e,u+3,a?r.call(a,o,i,s):r(o,i,s)):Fa(e,u+3)}function ST(e,t){let n=P(),r,o=e+V;n.firstCreatePass?(r=YD(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];let i=r.factory||(r.factory=gt(r.type,!0)),s,a=K(xe);try{let u=Br(!1),c=i();return Br(u),BD(n,D(),o,c),c}finally{K(a)}}function YD(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function TT(e,t,n){let r=e+V,o=D(),i=go(o,r);return Pa(o,r)?Af(o,Mt(),t,i.transform,n,i):i.transform(n)}function NT(e,t,n,r){let o=e+V,i=D(),s=go(i,o);return Pa(i,o)?Of(i,Mt(),t,s.transform,n,r,s):s.transform(n,r)}function AT(e,t,n,r,o){let i=e+V,s=D(),a=go(s,i);return Pa(s,i)?Rf(s,Mt(),t,a.transform,n,r,o,a):a.transform(n,r,o)}function Pa(e,t){return e[E].data[t].pure}function OT(e,t){return Oo(e,t)}var RT=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})();var QD=new N("");function Po(e){return!!e&&typeof e.then=="function"}function ka(e){return!!e&&typeof e.subscribe=="function"}var KD=new N(""),Ff=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=I(KD,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=o();if(Po(i))n.push(i);else if(ka(i)){let s=new Promise((a,u)=>{i.subscribe({complete:a,error:u})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),JD=new N("");function XD(){Zu(()=>{throw new x(600,!1)})}function eI(e){return e.isBoundToModule}var tI=10;function nI(e,t,n){try{let r=n();return Po(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var ko=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=I(nm),this.afterRenderManager=I(df),this.zonelessEnabled=I(xa),this.dirtyFlags=0,this.deferredDirtyFlags=0,this.externalTestViews=new Set,this.beforeRender=new ie,this.afterTick=new ie,this.componentTypes=[],this.components=[],this.isStable=I(Sn).hasPendingTasks.pipe(ve(n=>!n)),this._injector=I(Ze)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}get injector(){return this._injector}bootstrap(n,r){let o=n instanceof qr;if(!this._injector.get(Ff).done){let p=!o&&Wh(n),f=!1;throw new x(405,f)}let s;o?s=n:s=this._injector.get(Kt).resolveComponentFactory(n),this.componentTypes.push(s.componentType);let a=eI(s)?void 0:this._injector.get(Ke),u=r||s.selector,c=s.create(_e.NULL,[],u,a),l=c.location.nativeElement,d=c.injector.get(QD,null);return d?.registerApplication(l),c.onDestroy(()=>{this.detachView(c.hostView),Sr(this.components,c),d?.unregisterApplication(l)}),this._loadComponent(c),c}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new x(101,!1);let n=_(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,_(n),this.afterTick.next()}}synchronize(){let n=null;this._injector.destroyed||(n=this._injector.get(Zr,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let r=0;for(;this.dirtyFlags!==0&&r++mo(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;Sr(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let r=this._injector.get(JD,[]);[...this._bootstrapListeners,...r].forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Sr(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new x(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Sr(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function rI(e,t,n,r){if(!n&&!mo(e))return;qd(e,t,n&&!r?0:1)}var Ls=class{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},FT=(()=>{class e{compileModuleSync(n){return new Cs(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),o=ll(n),i=md(o.declarations).reduce((s,a)=>{let u=qe(a);return u&&s.push(new Jt(u)),s},[]);return new Ls(r,i)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var oI=(()=>{class e{constructor(){this.zone=I(Y),this.changeDetectionScheduler=I(Qt),this.applicationRef=I(ko)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),iI=new N("",{factory:()=>!1});function Pf({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new Y(ye(me({},kf()),{scheduleInRootZone:n})),[{provide:Y,useFactory:e},{provide:Rr,multi:!0,useFactory:()=>{let r=I(oI,{optional:!0});return()=>r.initialize()}},{provide:Rr,multi:!0,useFactory:()=>{let r=I(sI);return()=>{r.initialize()}}},t===!0?{provide:Kd,useValue:!0}:[],{provide:Jd,useValue:n??Kl}]}function PT(e){let t=e?.ignoreChangesOutsideZone,n=e?.scheduleInRootZone,r=Pf({ngZoneFactory:()=>{let o=kf(e);return o.scheduleInRootZone=n,o.shouldCoalesceEventChangeDetection&&ge("NgZone_CoalesceEvent"),new Y(o)},ignoreChangesOutsideZone:t,scheduleInRootZone:n});return Zh([{provide:iI,useValue:!0},{provide:xa,useValue:!1},r])}function kf(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var sI=(()=>{class e{constructor(){this.subscription=new L,this.initialized=!1,this.zone=I(Y),this.pendingTasks=I(Sn)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Y.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Y.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var aI=(()=>{class e{constructor(){this.appRef=I(ko),this.taskService=I(Sn),this.ngZone=I(Y),this.zonelessEnabled=I(xa),this.disableScheduling=I(Kd,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new L,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Ur):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(I(Jd,{optional:!0})??!1),this.cancelScheduledCallback=null,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Ki||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 7:{this.appRef.deferredDirtyFlags|=8;break}case 9:case 8:case 6:case 10:default:this.appRef.dirtyFlags|=8}if(!this.shouldScheduleTick())return;let r=this.useMicrotaskScheduler?gc:Jl;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Ur+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,gc(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function uI(){return typeof $localize<"u"&&$localize.locale||ro}var Lo=new N("",{providedIn:"root",factory:()=>I(Lo,M.Optional|M.SkipSelf)||uI()});var js=new N("");function Er(e){return!e.moduleRef}function cI(e){let t=Er(e)?e.r3Injector:e.moduleRef.injector,n=t.get(Y);return n.run(()=>{Er(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(Et,null),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:i=>{r.handleError(i)}})}),Er(e)){let i=()=>t.destroy(),s=e.platformInjector.get(js);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(js);s.add(i),e.moduleRef.onDestroy(()=>{Sr(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return nI(r,n,()=>{let i=t.get(Ff);return i.runInitializers(),i.donePromise.then(()=>{let s=t.get(Lo,ro);if(OD(s||ro),Er(e)){let a=t.get(ko);return e.rootComponent!==void 0&&a.bootstrap(e.rootComponent),a}else return lI(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function lI(e,t){let n=e.injector.get(ko);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new x(-403,!1);t.push(e)}var Tr=null;function dI(e=[],t){return _e.create({name:t,providers:[{provide:ml,useValue:"platform"},{provide:js,useValue:new Set([()=>Tr=null])},...e]})}function fI(e=[]){if(Tr)return Tr;let t=dI(e);return Tr=t,XD(),pI(t),t}function pI(e){e.get(cm,null)?.forEach(n=>n())}var Rn=(()=>{class e{static{this.__NG_ELEMENT_ID__=hI}}return e})();function hI(e){return gI($(),D(),(e&16)===16)}function gI(e,t,n){if(fo(e)&&!n){let r=Je(e.index,t);return new Ct(r,r)}else if(e.type&175){let r=t[ne];return new Ct(r,t)}return null}var Vs=class{constructor(){}supports(t){return lf(t)}create(t){return new Bs(t)}},mI=(e,t)=>t,Bs=class{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||mI}forEachItem(t){let n;for(n=this._itHead;n!==null;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){let s=!r||n&&n.currentIndex{s=this._trackByFn(o,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,o),r=!0):(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;t!==null;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;t!==null;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let i;return t===null?i=this._itTail:(i=t._prev,this._remove(t)),t=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):(t=this._linkedRecords===null?null:this._linkedRecords.get(r,o),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new Hs(n,r),i,o)),t}_verifyReinsertion(t,n,r,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return i!==null?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;t!==null;){let n=t._next;this._addToRemovals(this._unlink(t)),t=n}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(t);let o=t._prevRemoved,i=t._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){let o=n===null?this._itHead:n._next;return t._next=o,t._prev=n,o===null?this._itTail=t:o._prev=t,n===null?this._itHead=t:n._next=t,this._linkedRecords===null&&(this._linkedRecords=new oo),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){this._linkedRecords!==null&&this._linkedRecords.remove(t);let n=t._prev,r=t._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return this._unlinkedRecords===null&&(this._unlinkedRecords=new oo),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t}},Hs=class{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}},$s=class{constructor(){this._head=null,this._tail=null}add(t){this._head===null?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){let n=t._prevDup,r=t._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},oo=class{constructor(){this.map=new Map}put(t){let n=t.trackById,r=this.map.get(n);r||(r=new $s,this.map.set(n,r)),r.add(t)}get(t,n){let r=t,o=this.map.get(r);return o?o.get(t,n):null}remove(t){let n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function Hc(e,t,n){let r=e.previousIndex;if(r===null)return r;let o=0;return n&&r{class e{static{this.\u0275prov=F({token:e,providedIn:"root",factory:$c})}constructor(n){this.factories=n}static create(n,r){if(r!=null){let o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||$c()),deps:[[e,new _h,new bh]]}}find(n){let r=this.factories.find(o=>o.supports(n));if(r!=null)return r;throw new x(901,!1)}}return e})();function kT(e){try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,o=fI(r),i=[Pf({}),{provide:Qt,useExisting:aI},...n||[]],s=new Jr({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1});return cI({r3Injector:s.injector,platformInjector:o,rootComponent:t})}catch(t){return Promise.reject(t)}}function Fn(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function La(e,t=NaN){return!isNaN(parseFloat(e))&&!isNaN(Number(e))?Number(e):t}function LT(e,t){ge("NgSignals");let n=mi(e);return t?.equal&&(n[se].equal=t.equal),n}function ja(e){let t=_(null);try{return e()}finally{_(t)}}var yI=new N("",{providedIn:"root",factory:()=>I(vI)}),vI=(()=>{class e{static{this.\u0275prov=F({token:e,providedIn:"root",factory:()=>new Us})}}return e})(),Us=class{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=I(Sn),this.taskId=null}scheduleEffect(t){if(this.enqueue(t),this.taskId===null){let n=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(n),this.taskId=null})}}enqueue(t){let n=t.creationZone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||(this.queuedEffectCount++,r.add(t))}flush(){for(;this.queuedEffectCount>0;)for(let[t,n]of this.queues)t===null?this.flushQueue(n):t.run(()=>this.flushQueue(n))}flushQueue(t){for(let n of t)t.delete(n),this.queuedEffectCount--,n.run()}},zs=class{constructor(t,n,r,o,i,s){this.scheduler=t,this.effectFn=n,this.creationZone=r,this.injector=i,this.watcher=Ju(a=>this.runEffect(a),()=>this.schedule(),s),this.unregisterOnDestroy=o?.onDestroy(()=>this.destroy())}runEffect(t){try{this.effectFn(t)}catch(n){this.injector.get(Et,null,{optional:!0})?.handleError(n)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}};function DI(e,t){ge("NgSignals"),!t?.injector&&Ks(DI);let n=t?.injector??I(_e),r=t?.manualCleanup!==!0?n.get(Eo):null,o=new zs(n.get(yI),e,typeof Zone>"u"?null:Zone.current,r,n,t?.allowSignalWrites??!1),i=n.get(Rn,null,{optional:!0});return!i||!(i._lView[w]&8)?o.watcher.notify():(i._lView[br]??=[]).push(o.watcher.notify),o}function jT(e){let t=qe(e);if(!t)return null;let n=new Jt(t);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}var zf=null;function Va(){return zf}function iN(e){zf??=e}var jf=class{};var Vo=new N(""),qa=(()=>{class e{historyGo(n){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=F({token:e,factory:()=>I(wI),providedIn:"platform"})}}return e})(),sN=new N(""),wI=(()=>{class e extends qa{constructor(){super(),this._doc=I(Vo),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Va().getBaseHref(this._doc)}onPopState(n){let r=Va().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=Va().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,r,o){this._history.pushState(n,r,o)}replaceState(n,r,o){this._history.replaceState(n,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=F({token:e,factory:()=>new e,providedIn:"platform"})}}return e})();function Za(e,t){if(e.length==0)return t;if(t.length==0)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,n==2?e+t.substring(1):n==1?e+t:e+"/"+t}function Vf(e){let t=e.match(/#|\?|$/),n=t&&t.index||e.length,r=n-(e[n-1]==="/"?1:0);return e.slice(0,r)+e.slice(n)}function Le(e){return e&&e[0]!=="?"?"?"+e:e}var Bo=(()=>{class e{historyGo(n){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=F({token:e,factory:()=>I(EI),providedIn:"root"})}}return e})(),Gf=new N(""),EI=(()=>{class e extends Bo{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??I(Vo).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return Za(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+Le(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+Le(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+Le(i));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}static{this.\u0275fac=function(r){return new(r||e)(G(qa),G(Gf,8))}}static{this.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),aN=(()=>{class e extends Bo{constructor(n,r){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],r!=null&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}path(n=!1){let r=this._platformLocation.hash??"#";return r.length>0?r.substring(1):r}prepareExternalUrl(n){let r=Za(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+Le(i));s.length==0&&(s=this._platformLocation.pathname),this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+Le(i));s.length==0&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}static{this.\u0275fac=function(r){return new(r||e)(G(qa),G(Gf,8))}}static{this.\u0275prov=F({token:e,factory:e.\u0275fac})}}return e})(),CI=(()=>{class e{constructor(n){this._subject=new pe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=MI(Vf(Bf(r))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+Le(r))}normalize(n){return e.stripTrailingSlash(_I(this._basePath,Bf(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._locationStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Le(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Le(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r,complete:o})}static{this.normalizeQueryParams=Le}static{this.joinWithSlash=Za}static{this.stripTrailingSlash=Vf}static{this.\u0275fac=function(r){return new(r||e)(G(Bo))}}static{this.\u0275prov=F({token:e,factory:()=>bI(),providedIn:"root"})}}return e})();function bI(){return new CI(G(Bo))}function _I(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function Bf(e){return e.replace(/\/index.html$/,"")}function MI(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}var Wf=function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e}(Wf||{});var je={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function Pn(e,t){let n=Ra(e),r=n[rn.NumberSymbols][t];if(typeof r>"u"){if(t===je.CurrencyDecimal)return n[rn.NumberSymbols][je.Decimal];if(t===je.CurrencyGroup)return n[rn.NumberSymbols][je.Group]}return r}function xI(e,t){return Ra(e)[rn.NumberFormats][t]}var SI=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Hf=22,jo=".",kn="0",TI=";",NI=",",Ba="#";function AI(e,t,n,r,o,i,s=!1){let a="",u=!1;if(!isFinite(e))a=Pn(n,je.Infinity);else{let c=PI(e);s&&(c=FI(c));let l=t.minInt,d=t.minFrac,p=t.maxFrac;if(i){let O=i.match(SI);if(O===null)throw new Error(`${i} is not a valid digit info`);let oe=O[1],q=O[3],Se=O[5];oe!=null&&(l=Ha(oe)),q!=null&&(d=Ha(q)),Se!=null?p=Ha(Se):q!=null&&d>p&&(p=d)}kI(c,d,p);let f=c.digits,h=c.integerLen,m=c.exponent,A=[];for(u=f.every(O=>!O);h0?A=f.splice(h,f.length):(A=f,f=[0]);let b=[];for(f.length>=t.lgSize&&b.unshift(f.splice(-t.lgSize,f.length).join(""));f.length>t.gSize;)b.unshift(f.splice(-t.gSize,f.length).join(""));f.length&&b.unshift(f.join("")),a=b.join(Pn(n,r)),A.length&&(a+=Pn(n,o)+A.join("")),m&&(a+=Pn(n,je.Exponential)+"+"+m)}return e<0&&!u?a=t.negPre+a+t.negSuf:a=t.posPre+a+t.posSuf,a}function OI(e,t,n){let r=xI(t,Wf.Decimal),o=RI(r,Pn(t,je.MinusSign));return AI(e,o,t,je.Group,je.Decimal,n)}function RI(e,t="-"){let n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=e.split(TI),o=r[0],i=r[1],s=o.indexOf(jo)!==-1?o.split(jo):[o.substring(0,o.lastIndexOf(kn)+1),o.substring(o.lastIndexOf(kn)+1)],a=s[0],u=s[1]||"";n.posPre=a.substring(0,a.indexOf(Ba));for(let l=0;l-1&&(t=t.replace(jo,"")),(i=t.search(/e/i))>0?(o<0&&(o=i),o+=+t.slice(i+1),t=t.substring(0,i)):o<0&&(o=t.length),i=0;t.charAt(i)===kn;i++);if(i===(a=t.length))r=[0],o=1;else{for(a--;t.charAt(a)===kn;)a--;for(o-=i,r=[],s=0;i<=a;i++,s++)r[s]=Number(t.charAt(i))}return o>Hf&&(r=r.splice(0,Hf-1),n=o-1,o=1),{digits:r,exponent:n,integerLen:o}}function kI(e,t,n){if(t>n)throw new Error(`The minimum number of digits after fraction (${t}) is higher than the maximum (${n}).`);let r=e.digits,o=r.length-e.integerLen,i=Math.min(Math.max(t,o),n),s=i+e.integerLen,a=r[s];if(s>0){r.splice(Math.max(e.integerLen,s));for(let d=s;d=5)if(s-1<0){for(let d=0;d>s;d--)r.unshift(0),e.integerLen++;r.unshift(1),e.integerLen++}else r[s-1]++;for(;o=c?h.pop():u=!1),p>=10?1:0},0);l&&(r.unshift(l),e.integerLen++)}function Ha(e){let t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t}function uN(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var $a=/\s+/,$f=[],cN=(()=>{class e{constructor(n,r){this._ngEl=n,this._renderer=r,this.initialClasses=$f,this.stateMap=new Map}set klass(n){this.initialClasses=n!=null?n.trim().split($a):$f}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split($a):n}ngDoCheck(){for(let r of this.initialClasses)this._updateState(r,!0);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let r of n)this._updateState(r,!0);else if(n!=null)for(let r of Object.keys(n))this._updateState(r,!!n[r]);this._applyStateDiff()}_updateState(n,r){let o=this.stateMap.get(n);o!==void 0?(o.enabled!==r&&(o.changed=!0,o.enabled=r),o.touched=!0):this.stateMap.set(n,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(let n of this.stateMap){let r=n[0],o=n[1];o.changed?(this._toggleClass(r,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),o.touched=!1}}_toggleClass(n,r){n=n.trim(),n.length>0&&n.split($a).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static{this.\u0275fac=function(r){return new(r||e)(xe(Xe),xe(Ro))}}static{this.\u0275dir=uo({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0})}}return e})();var lN=(()=>{class e{constructor(n){this._viewContainerRef=n,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(n){if(this._shouldRecreateView(n)){let r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let o=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(n){return!!n.ngTemplateOutlet||!!n.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(n,r,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,r,o):!1,get:(n,r,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,o)}})}static{this.\u0275fac=function(r){return new(r||e)(xe(On))}}static{this.\u0275dir=uo({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[ho]})}}return e})();function Ya(e,t){return new x(2100,!1)}var Ua=class{createSubscription(t,n){return ja(()=>t.subscribe({next:n,error:r=>{throw r}}))}dispose(t){ja(()=>t.unsubscribe())}},za=class{createSubscription(t,n){return t.then(n,r=>{throw r})}dispose(t){}},LI=new za,jI=new Ua,dN=(()=>{class e{constructor(n){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=n}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(n){if(!this._obj){if(n)try{this.markForCheckOnValueUpdate=!1,this._subscribe(n)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return n!==this._obj?(this._dispose(),this.transform(n)):this._latestValue}_subscribe(n){this._obj=n,this._strategy=this._selectStrategy(n),this._subscription=this._strategy.createSubscription(n,r=>this._updateLatestValue(n,r))}_selectStrategy(n){if(Po(n))return LI;if(ka(n))return jI;throw Ya(e,n)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(n,r){n===this._obj&&(this._latestValue=r,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static{this.\u0275fac=function(r){return new(r||e)(xe(Rn,16))}}static{this.\u0275pipe=co({name:"async",type:e,pure:!1,standalone:!0})}}return e})();var fN=(()=>{class e{constructor(n){this._locale=n}transform(n,r,o){if(!VI(n))return null;o||=this._locale;try{let i=BI(n);return OI(i,o,r)}catch(i){throw Ya(e,i.message)}}static{this.\u0275fac=function(r){return new(r||e)(xe(Lo,16))}}static{this.\u0275pipe=co({name:"number",type:e,pure:!0,standalone:!0})}}return e})();function VI(e){return!(e==null||e===""||e!==e)}function BI(e){if(typeof e=="string"&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if(typeof e!="number")throw new Error(`${e} is not a number`);return e}var pN=(()=>{class e{transform(n,r,o){if(n==null)return null;if(!this.supports(n))throw Ya(e,n);return n.slice(r,o)}supports(n){return typeof n=="string"||Array.isArray(n)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275pipe=co({name:"slice",type:e,pure:!1,standalone:!0})}}return e})();var hN=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=ul({type:e})}static{this.\u0275inj=Zc({})}}return e})(),HI="browser",$I="server";function UI(e){return e===HI}function zI(e){return e===$I}var gN=(()=>{class e{static{this.\u0275prov=F({token:e,providedIn:"root",factory:()=>UI(I(Co))?new Ga(I(Vo),window):new Wa})}}return e})(),Ga=class{constructor(t,n){this.document=t,this.window=n,this.offset=()=>[0,0]}setOffset(t){Array.isArray(t)?this.offset=()=>t:this.offset=t}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(t){this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){let n=GI(this.document,t);n&&(this.scrollToElement(n),n.focus())}setHistoryScrollRestoration(t){this.window.history.scrollRestoration=t}scrollToElement(t){let n=t.getBoundingClientRect(),r=n.left+this.window.pageXOffset,o=n.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(r-i[0],o-i[1])}};function GI(e,t){let n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if(typeof e.createTreeWalker=="function"&&e.body&&typeof e.body.attachShadow=="function"){let r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT),o=r.currentNode;for(;o;){let i=o.shadowRoot;if(i){let s=i.getElementById(t)||i.querySelector(`[name="${t}"]`);if(s)return s}o=r.nextNode()}}return null}var Wa=class{setOffset(t){}getScrollPosition(){return[0,0]}scrollToPosition(t){}scrollToAnchor(t){}setHistoryScrollRestoration(t){}},Uf=class{};var qf=e=>e.src,WI=new N("",{providedIn:"root",factory:()=>qf});var qI=new N("NG_OPTIMIZED_PRELOADED_IMAGES",{providedIn:"root",factory:()=>new Set}),ZI=(()=>{class e{constructor(){this.preloadedImages=I(qI),this.document=I(Vo)}createPreloadLinkTag(n,r,o,i){if(this.preloadedImages.has(r))return;this.preloadedImages.add(r);let s=n.createElement("link");n.setAttribute(s,"as","image"),n.setAttribute(s,"href",r),n.setAttribute(s,"rel","preload"),n.setAttribute(s,"fetchpriority","high"),i&&n.setAttribute(s,"imageSizes",i),o&&n.setAttribute(s,"imageSrcset",o),n.appendChild(this.document.head,s)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var YI=/^((\s*\d+w\s*(,|$)){1,})$/;var QI=[1,2],KI=640;var JI=1920,XI=1080;var mN=(()=>{class e{constructor(){this.imageLoader=I(WI),this.config=ew(I(ad)),this.renderer=I(Ro),this.imgElement=I(Xe).nativeElement,this.injector=I(_e),this.isServer=zI(I(Co)),this.preloadLinkCreator=I(ZI),this.lcpObserver=null,this._renderedSrc=null,this.priority=!1,this.disableOptimizedSrcset=!1,this.fill=!1}ngOnInit(){ge("NgOptimizedImage"),this.placeholder&&this.removePlaceholderOnLoad(this.imgElement),this.setHostAttributes()}setHostAttributes(){this.fill?this.sizes||="100vw":(this.setHostAttribute("width",this.width.toString()),this.setHostAttribute("height",this.height.toString())),this.setHostAttribute("loading",this.getLoadingBehavior()),this.setHostAttribute("fetchpriority",this.getFetchPriority()),this.setHostAttribute("ng-img","true");let n=this.updateSrcAndSrcset();this.sizes&&this.setHostAttribute("sizes",this.sizes),this.isServer&&this.priority&&this.preloadLinkCreator.createPreloadLinkTag(this.renderer,this.getRewrittenSrc(),n,this.sizes)}ngOnChanges(n){if(n.ngSrc&&!n.ngSrc.isFirstChange()){let r=this._renderedSrc;this.updateSrcAndSrcset(!0);let o=this._renderedSrc;this.lcpObserver!==null&&r&&o&&r!==o&&this.injector.get(Y).runOutsideAngular(()=>{this.lcpObserver?.updateImage(r,o)})}}callImageLoader(n){let r=n;return this.loaderParams&&(r.loaderParams=this.loaderParams),this.imageLoader(r)}getLoadingBehavior(){return!this.priority&&this.loading!==void 0?this.loading:this.priority?"eager":"lazy"}getFetchPriority(){return this.priority?"high":"auto"}getRewrittenSrc(){if(!this._renderedSrc){let n={src:this.ngSrc};this._renderedSrc=this.callImageLoader(n)}return this._renderedSrc}getRewrittenSrcset(){let n=YI.test(this.ngSrcset);return this.ngSrcset.split(",").filter(o=>o!=="").map(o=>{o=o.trim();let i=n?parseFloat(o):parseFloat(o)*this.width;return`${this.callImageLoader({src:this.ngSrc,width:i})} ${o}`}).join(", ")}getAutomaticSrcset(){return this.sizes?this.getResponsiveSrcset():this.getFixedSrcset()}getResponsiveSrcset(){let{breakpoints:n}=this.config,r=n;return this.sizes?.trim()==="100vw"&&(r=n.filter(i=>i>=KI)),r.map(i=>`${this.callImageLoader({src:this.ngSrc,width:i})} ${i}w`).join(", ")}updateSrcAndSrcset(n=!1){n&&(this._renderedSrc=null);let r=this.getRewrittenSrc();this.setHostAttribute("src",r);let o;return this.ngSrcset?o=this.getRewrittenSrcset():this.shouldGenerateAutomaticSrcset()&&(o=this.getAutomaticSrcset()),o&&this.setHostAttribute("srcset",o),o}getFixedSrcset(){return QI.map(r=>`${this.callImageLoader({src:this.ngSrc,width:this.width*r})} ${r}x`).join(", ")}shouldGenerateAutomaticSrcset(){let n=!1;return this.sizes||(n=this.width>JI||this.height>XI),!this.disableOptimizedSrcset&&!this.srcset&&this.imageLoader!==qf&&!n}generatePlaceholder(n){let{placeholderResolution:r}=this.config;return n===!0?`url(${this.callImageLoader({src:this.ngSrc,width:r,isPlaceholder:!0})})`:typeof n=="string"?`url(${n})`:null}shouldBlurPlaceholder(n){return!n||!n.hasOwnProperty("blur")?!0:!!n.blur}removePlaceholderOnLoad(n){let r=()=>{let s=this.injector.get(Rn);o(),i(),this.placeholder=!1,s.markForCheck()},o=this.renderer.listen(n,"load",r),i=this.renderer.listen(n,"error",r);tw(n,r)}ngOnDestroy(){}setHostAttribute(n,r){this.renderer.setAttribute(this.imgElement,n,r)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275dir=uo({type:e,selectors:[["img","ngSrc",""]],hostVars:18,hostBindings:function(r,o){r&2&&Oa("position",o.fill?"absolute":null)("width",o.fill?"100%":null)("height",o.fill?"100%":null)("inset",o.fill?"0":null)("background-size",o.placeholder?"cover":null)("background-position",o.placeholder?"50% 50%":null)("background-repeat",o.placeholder?"no-repeat":null)("background-image",o.placeholder?o.generatePlaceholder(o.placeholder):null)("filter",o.placeholder&&o.shouldBlurPlaceholder(o.placeholderConfig)?"blur(15px)":null)},inputs:{ngSrc:[2,"ngSrc","ngSrc",nw],ngSrcset:"ngSrcset",sizes:"sizes",width:[2,"width","width",La],height:[2,"height","height",La],loading:"loading",priority:[2,"priority","priority",Fn],loaderParams:"loaderParams",disableOptimizedSrcset:[2,"disableOptimizedSrcset","disableOptimizedSrcset",Fn],fill:[2,"fill","fill",Fn],placeholder:[2,"placeholder","placeholder",rw],placeholderConfig:"placeholderConfig",src:"src",srcset:"srcset"},standalone:!0,features:[cf,ho]})}}return e})();function ew(e){let t={};return e.breakpoints&&(t.breakpoints=e.breakpoints.sort((n,r)=>n-r)),Object.assign({},fa,e,t)}function tw(e,t){e.complete&&e.naturalWidth&&t()}function nw(e){return typeof e=="string"?e:St(e)}function rw(e){return typeof e=="string"&&e!=="true"&&e!=="false"&&e!==""?e:Fn(e)}export{me as a,ye as b,ow as c,Jf as d,L as e,ot as f,qo as g,S as h,ti as i,ni as j,ie as k,on as l,bp as m,_p as n,it as o,dE as p,su as q,fE as r,uu as s,pE as t,hE as u,sn as v,De as w,Mp as x,xp as y,Sp as z,ut as A,ve as B,vp as C,le as D,ln as E,kt as F,Tp as G,Np as H,ii as I,ct as J,Lp as K,lt as L,jp as M,si as N,Ip as O,Vp as P,Nu as Q,dn as R,dt as S,ai as T,Bp as U,Hp as V,zp as W,Ou as X,ci as Y,Gp as Z,Wp as _,Ru as $,di as aa,Fu as ba,qp as ca,Zp as da,Pu as ea,Yp as fa,Qp as ga,ku as ha,x as ia,Wc as ja,F as ka,Zc as la,AS as ma,N as na,M as oa,G as pa,I as qa,bh as ra,_h as sa,vn as ta,OS as ua,ul as va,uo as wa,co as xa,Zh as ya,ml as za,Ze as Aa,RS as Ba,Ks as Ca,ho as Da,FS as Ea,PS as Fa,kS as Ga,LS as Ha,jS as Ia,Wg as Ja,_e as Ka,Eo as La,Sn as Ma,pe as Na,Y as Oa,Et as Pa,Xe as Qa,Ji as Ra,VS as Sa,BS as Ta,cm as Ua,Co as Va,HS as Wa,$S as Xa,St as Ya,ha as Za,US as _a,zS as $a,GS as ab,WS as bb,qS as cb,ld as db,Am as eb,_o as fb,ZS as gb,Rm as hb,YS as ib,zr as jb,QS as kb,xe as lb,KS as mb,Cn as nb,Qt as ob,Kt as pb,Zr as qb,Ro as rb,On as sb,ge as tb,tT as ub,wv as vb,nT as wb,Tv as xb,rT as yb,cf as zb,ws as Ab,kv as Bb,Uv as Cb,Ht as Db,Wv as Eb,qv as Fb,Yv as Gb,aD as Hb,Oa as Ib,uD as Jb,oT as Kb,iT as Lb,sT as Mb,aT as Nb,uT as Ob,cT as Pb,Cf as Qb,bf as Rb,wD as Sb,_f as Tb,Mf as Ub,bD as Vb,lT as Wb,MD as Xb,xD as Yb,FD as Zb,PD as _b,dT as $b,fT as ac,pT as bc,VD as cc,hT as dc,gT as ec,mT as fc,yT as gc,vT as hc,DT as ic,IT as jc,wT as kc,$D as lc,Tf as mc,UD as nc,ET as oc,CT as pc,bT as qc,_T as rc,MT as sc,xT as tc,ST as uc,TT as vc,NT as wc,AT as xc,OT as yc,RT as zc,Po as Ac,KD as Bc,JD as Cc,ko as Dc,FT as Ec,PT as Fc,Rn as Gc,Lf as Hc,kT as Ic,Fn as Jc,La as Kc,LT as Lc,ja as Mc,DI as Nc,jT as Oc,Va as Pc,iN as Qc,jf as Rc,Vo as Sc,sN as Tc,Bo as Uc,EI as Vc,aN as Wc,CI as Xc,uN as Yc,cN as Zc,lN as _c,dN as $c,fN as ad,pN as bd,hN as cd,HI as dd,UI as ed,zI as fd,gN as gd,Uf as hd,mN as id}; diff --git a/webui/dist/bitmagnet/browser/chunk-RHLI3WJ3.js b/webui/dist/bitmagnet/browser/chunk-FRHSCC4F.js similarity index 97% rename from webui/dist/bitmagnet/browser/chunk-RHLI3WJ3.js rename to webui/dist/bitmagnet/browser/chunk-FRHSCC4F.js index 5bd70dbf..749f360c 100644 --- a/webui/dist/bitmagnet/browser/chunk-RHLI3WJ3.js +++ b/webui/dist/bitmagnet/browser/chunk-FRHSCC4F.js @@ -1 +1 @@ -import{a as Fe,b as He,c as Z,d as Ue,e as Ge,f as ee,g as Ke,h as Ye,i as D,j as Je,k as We,l as Xe}from"./chunk-6OKZFKY7.js";import{a as je,b as Re,c as O}from"./chunk-OYPFZA36.js";import{e as X}from"./chunk-AV47NZN7.js";import{b as $e}from"./chunk-KUHKEGBL.js";import{a as Se,m as Le}from"./chunk-3PIWRAOL.js";import{a as De}from"./chunk-M3BEO55A.js";import{D as we,J as G,M as Te,P as K,Q as qe,R as Ve,U as Y,Ua as Ae,a as H,b as ve,i as xe,ia as Be,n as Me,na as J,o as ye,oa as Ee,qa as W,r as U,ra as Oe,sa as Ie,ta as ze,va as Ne,ya as Pe,za as Qe}from"./chunk-4NEHCUZ2.js";import"./chunk-6XXA7HXI.js";import"./chunk-FKMTSCBK.js";import{$b as _,B as ce,Cb as de,Ea as g,Fa as C,Hb as u,Kb as I,N as le,Nb as z,Ob as N,Pb as P,Q as ne,Qb as o,Rb as l,Sb as F,Tb as fe,Ub as _e,Wb as re,Zb as k,_c as ke,a as M,b as y,ka as R,kb as c,kc as p,l as A,la as ue,lc as S,mc as he,o as se,pc as be,qa as T,ua as me,uc as ge,va as pe,vc as Ce}from"./chunk-3DR3CJRN.js";var Ze=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=pe({type:n})}static{this.\u0275inj=ue({imports:[G,W,Be,ye,U,K,Y,J,ze,Ie]})}}return n})();var lt={pending:"primary",processed:"success",failed:"error",retry:"caution"},et=(()=>{class n{constructor(){this.themeInfo=T(X),this.transloco=T(H)}create(e){let{colors:i}=this.themeInfo.info,t=Array(),a=[];if(e&&Array.from(new Set(e.queues.flatMap(v=>v.events?[v.events.earliestBucket,v.events.latestBucket]:[]))).sort().length){let v=e.queues.filter(h=>!h.isEmpty);t.push(...v.map(h=>h.queue));let x=Array();switch(e.params.event){case"created":x.push("pending");break;case"processed":x.push("processed");break;case"failed":x.push("retry","failed");break;default:x.push(...Ke);break}a.push(...x.map(h=>({label:this.transloco.translate("dashboard.queues."+h),data:v.map(d=>d.statusCounts[h]),backgroundColor:i[O(lt[h],50)]})))}return{type:"bar",options:{animation:!1,scales:{x:{ticks:{callback:r=>parseInt(r).toLocaleString(this.transloco.getActiveLang())}},y:{}},indexAxis:"y",plugins:{legend:{display:!0}}},data:{labels:t,datasets:a}}}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var j="\\d+",oe="".concat(j,"(?:[\\.,]").concat(j,")?"),ut="(".concat(j,"Y)?(").concat(j,"M)?(").concat(j,"W)?(").concat(j,"D)?"),mt="T(".concat(oe,"H)?(").concat(oe,"M)?(").concat(oe,"S)?"),pt="P(?:".concat(ut,"(?:").concat(mt,")?)"),dt=["years","months","weeks","days","hours","minutes","seconds"],tt={years:0,months:0,weeks:0,days:0,hours:0,minutes:0,seconds:0},ft=new RegExp(pt),it=function(n){let s=n.replace(/,/g,".").match(ft);if(!s)throw new RangeError("invalid duration: ".concat(n));let e=s.slice(1);if(e.filter(function(i){return i!=null}).length===0)throw new RangeError("invalid duration: ".concat(n));if(e.filter(function(i){return/\./.test(i||"")}).length>1)throw new RangeError("only the smallest unit can be fractional");return e.reduce(function(i,t,a){return Object.assign(i,{[dt[a]]:parseFloat(t||"0")||0}),i},{})},_t=function(n,s){s||(s=new Date);let e=Object.assign({},tt,n),i=s.getTime(),t=new Date(i);t.setFullYear(t.getFullYear()+e.years),t.setMonth(t.getMonth()+e.months),t.setDate(t.getDate()+e.days);let a=e.hours*3600*1e3,r=e.minutes*60*1e3;return t.setMilliseconds(t.getMilliseconds()+e.seconds*1e3+a+r),t.setDate(t.getDate()+e.weeks*7),t},nt=function(n,s){s||(s=new Date);let e=Object.assign({},tt,n),i=s.getTime(),t=new Date(i),a=_t(e,t),r=s.getTimezoneOffset(),v=a.getTimezoneOffset(),x=(r-v)*60;return(a.getTime()-t.getTime())/1e3+x};var te=class{constructor(s,e=Ue,i){this.apollo=s,this.errorsService=i,this.rawResultSubject=new A({queue:{metrics:{buckets:[]}}}),this.resultSubject=new A(Ge),this.result$=this.resultSubject.asObservable(),this.loadingSubject=new A(!1),this.paramsSubject=new A(e),this.params$=this.paramsSubject.asObservable(),this.variablesSubject=new A(rt(e)),this.paramsSubject.pipe(ne(50)).subscribe(t=>{let a=this.variablesSubject.getValue(),r=rt(t);JSON.stringify(a)!==JSON.stringify(r)?this.variablesSubject.next(r):this.resultSubject.next(ot(t,this.rawResultSubject.getValue()))}),this.variablesSubject.pipe(ne(50)).subscribe(t=>this.request(t)),this.rawResultSubject.subscribe(t=>{let a=this.paramsSubject.getValue();this.resultSubject.next(ot(a,t)),this.setInterval(a.autoRefresh)})}setInterval(s){clearTimeout(this.refreshTimeout);let e=Xe[s??this.params.autoRefresh];e&&(this.refreshTimeout=setTimeout(()=>{this.refresh()},e*1e3))}get params(){return this.paramsSubject.getValue()}get bucketDuration(){let s=this.params.buckets.duration;return s==="AUTO"?"hour":s}get bucketMultiplier(){return this.resultSubject.getValue().params.buckets.multiplier??this.params.buckets.multiplier}get loading(){return this.loadingSubject.getValue()}setTimeframe(s){this.updateParams(e=>y(M({},e),{buckets:y(M({},e.buckets),{timeframe:s})}))}setQueue(s){this.updateParams(e=>y(M({},e),{queue:s??void 0}))}setBucketDuration(s,e){this.updateParams(i=>y(M({},i),{buckets:y(M({},i.buckets),{duration:s,multiplier:e??"AUTO"})}))}setBucketMultiplier(s){this.updateParams(e=>y(M({},e),{buckets:y(M({},e.buckets),{multiplier:s})}))}setEvent(s){this.updateParams(e=>y(M({},e),{event:s??void 0}))}setAutoRefreshInterval(s){this.updateParams(e=>y(M({},e),{autoRefresh:s}))}updateParams(s){this.paramsSubject.next(s(this.params))}refresh(){this.variablesSubject.next(this.variablesSubject.getValue())}request(s){return clearTimeout(this.refreshTimeout),this.loadingSubject.next(!0),this.apollo.query({query:we,variables:s,fetchPolicy:"no-cache"}).pipe(ce(e=>{e&&(this.loadingSubject.next(!1),this.rawResultSubject.next(e.data))})).pipe(le(e=>(this.errorsService.addError(`Failed to load queue metrics: ${e.message}`),this.loadingSubject.next(!1),this.setInterval(),se))).subscribe()}},rt=n=>({input:{bucketDuration:n.buckets.duration==="AUTO"?"hour":n.buckets.duration,queues:n.queue?[n.queue]:void 0,startTime:n.buckets.timeframe==="all"?void 0:new Date(new Date().getTime()-1e3*D[n.buckets.timeframe]).toISOString()}}),at=n=>Object.fromEntries(n),ot=(n,s)=>{let{bucketParams:e,earliestBucket:i,latestBucket:t}=ht(n,s),a=Object.entries(s.queue.metrics.buckets.reduce((h,d)=>{if(d.queue!==(n.queue??d.queue))return h;let f,m;if((n.event??!0)&&(f=q(d.createdAtBucket,e),i&&i.index>f.index&&(f=void 0)),d.ranAtBucket&&n.event!=="created"&&(m=q(d.ranAtBucket,e),m&&(t.indexm.index)&&(m=void 0)),d.queue!==n.queue&&!f&&(!m||d.status==="pending"))return h;let[V,b]=h[d.queue]??[Fe,[]],w=d.latency?nt(it(d.latency)):void 0;return y(M({},h),{[d.queue]:[(d.status==="pending"?f:m)?y(M({},V),{[d.status]:d.count+V[d.status]}):V,{created:f?y(M({},b.created),{[f.key]:{count:d.count+(b.created?.[f.key]?.count??0),latency:0,startTime:f.start}}):b.created,processed:m&&d.status==="processed"&&(n.event??!0)?y(M({},b.processed),{[m.key]:{count:d.count+(b.processed?.[m.key]?.count??0),latency:(b.processed?.[m.key]?.latency??0)+(w??0),startTime:m.start}}):b.processed,failed:m&&d.status==="failed"&&(n.event??!0)?y(M({},b.failed),{[m.key]:{count:d.count+(b.failed?.[m.key]?.count??0),latency:(b.failed?.[m.key]?.latency??0)+(w??0),startTime:m.start}}):b.failed}]})},{})).map(([h,[d,f]])=>{let m;if(Object.keys(f).length){let V=Array(),b=at(Array("created","processed","failed").flatMap(w=>{let B=at(Object.entries(f[w]??{}).filter(([,ie])=>ie?.count).sort(([ie],[ct])=>parseInt(ie)h.events?[h.events.earliestBucket]:[]).sort()[0],x=a.flatMap(h=>h.events?[h.events.latestBucket]:[]).sort().reverse()[0];return v&&x&&(r={earliestBucket:v,latestBucket:x}),{params:y(M({},n),{buckets:e}),queues:a,bucketSpan:r}},ht=(n,s)=>{let e=n.buckets.duration==="AUTO"?"hour":n.buckets.duration,i=n.buckets.multiplier==="AUTO"?1:n.buckets.multiplier,t=n.buckets.timeframe,a=new Date,r=q(a,{duration:e,multiplier:i}),v=t==="all"?void 0:q(a.getTime()-1e3*D[t],{duration:e,multiplier:i}),x=[...v?[v]:[],...s.queue.metrics.buckets.flatMap(f=>[q(f.createdAtBucket,{duration:e,multiplier:i}),...f.ranAtBucket?[q(f.ranAtBucket,{duration:e,multiplier:i})]:[]]),r].filter(f=>!v||f.index>=v.index).sort((f,m)=>f.index-m.index),h=x[0],d=x[x.length-1];if(n.buckets.multiplier==="AUTO"){let m=d.index-h.index;i=Math.min(60,Math.max(Math.floor(m/(20*5))*5,1))}return{bucketParams:{duration:e,multiplier:i,timeframe:t},earliestBucket:t==="all"?void 0:q(a.getTime()-1e3*D[t],{duration:e,multiplier:i}),latestBucket:q(Math.max(a.getTime(),d.start.getTime()),{duration:e,multiplier:i})}},q=(n,s)=>{let e=new Date(n),i=1e3*Z[s.duration]*s.multiplier,t=Math.floor(e.getTime()/i);return{key:`${t}`,index:t,start:new Date(t*i)}};var L={created:"primary",processed:"success",failed:"error"},st=(()=>{class n{constructor(){this.themeInfo=T(X),this.transloco=T(H)}create(e){let{colors:i}=this.themeInfo.info,t=Array(),a=[];if(e){let r=e.queues.filter(f=>!f.isEmpty),v=Array.from(new Set(r.flatMap(f=>f.events?[f.events.earliestBucket,f.events.latestBucket]:[]))).sort(),x=new Date,h=e.params.buckets.timeframe==="all"?v[0]:Math.min(v[0],q(x.getTime()-1e3*D[e.params.buckets.timeframe],e.params.buckets).index),d=Math.max(v[v.length-1],q(x,e.params.buckets).index);if(v.length){for(let m=h;m<=d;m++)t.push(this.formatBucketKey(e.params.buckets,m));let f=ee.filter(m=>(e.params.event??m)===m);for(let m of r){for(let b of f){let w=Array();for(let B=h;B<=d;B++)w.push(m.events?.eventBuckets?.[b]?.entries?.[`${B}`]?.count??0);a.push({yAxisID:"yCount",label:m.queue+": "+this.transloco.translate("dashboard.queues."+b),data:w,borderColor:i[O(L[b],50)],pointBackgroundColor:i[O(L[b],20)],pointBorderColor:i[O(L[b],80)],pointHoverBackgroundColor:i[O(L[b],40)],pointHoverBorderColor:i[O(L[b],60)]})}if(["processed","failed"].filter(b=>f.includes(b)).length){let b=Array();for(let w=h;w<=d;w++){let B=["processed","failed"].filter(E=>f.includes(E)).reduce((E,$)=>{let Q=m.events?.eventBuckets?.[$]?.entries?.[`${w}`];return Q?.count?[(E?.[0]??0)+Q.latency,(E?.[1]??0)+Q.count]:E},null);b.push(B?B[0]/B[1]:null)}a.push({yAxisID:"yLatency",label:m.queue+": "+this.transloco.translate("dashboard.queues.latency"),data:b,borderColor:i["tertiary-50"],pointHoverBackgroundColor:i["tertiary-80"],pointHoverBorderColor:i["tertiary-20"]})}}}}return{type:"line",options:{animation:!1,elements:{line:{tension:.5}},scales:{yCount:{position:"left",ticks:{callback:r=>parseInt(r).toLocaleString(this.transloco.getActiveLang())}},yLatency:{position:"right",ticks:{callback:this.formatDuration.bind(this)}}},plugins:{legend:{display:!0},decimation:{enabled:!0}}},data:{labels:t,datasets:a}}}formatBucketKey(e,i){let t;switch(e.duration){case"day":t="d LLL";break;case"hour":t="d LLL H:00";break;case"minute":t="H:mm";break}return je(1e3*Z[e.duration]*e.multiplier*i,t,{locale:Le(this.transloco.getActiveLang())})}formatDuration(e){if(typeof e=="string"&&(e=parseInt(e)),e===0)return"0";let i=e,t=0,a=0,r=0;return i>=60&&(t=Math.floor(i/60),i=i%60,t>=5&&(i=0,t>=60&&(a=Math.floor(t/60),t=t%60,a>=5&&(t=0,a>=24&&(r=Math.floor(a/24),a=a%24))))),$e({days:r,hours:a,minutes:t,seconds:i},this.transloco.getActiveLang())}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();function bt(n,s){if(n&1&&(o(0,"mat-option",6),p(1),l()),n&2){let e=s.$implicit,i=_().$implicit;u("value",e),c(),S(i("dashboard.interval."+e))}}function gt(n,s){if(n&1&&(o(0,"mat-option",6),p(1),l()),n&2){let e=s.$implicit,i=_().$implicit;u("value",e),c(),S(i("dashboard.interval."+e+"s"))}}function Ct(n,s){if(n&1&&(o(0,"mat-option",6),p(1),l()),n&2){let e=s.$implicit;u("value",e),c(),S(e)}}function kt(n,s){if(n&1){let e=re();o(0,"button",16),k("click",function(){let t=g(e).$implicit,a=_(2);return C(a.queueMetricsController.params.queue===t||a.queueMetricsController.setQueue(t))}),o(1,"mat-icon"),p(2),l()()}if(n&2){let e=s.$implicit,i=_(2);I(i.queueMetricsController.params.queue===e?"selected":"deselected"),u("matTooltip",e),c(2),S(i.queueMetricsController.params.queue===e?"radio_button_checked":"radio_button_unchecked")}}function vt(n,s){if(n&1&&(o(0,"mat-option",6),p(1),l()),n&2){let e=s.$implicit,i=_().$implicit;u("value",e),c(),S(i("dashboard.event."+e))}}function xt(n,s){if(n&1&&(o(0,"mat-option",6),p(1),l()),n&2){let e=s.$implicit,i=_().$implicit;u("value",e),c(),S(i("dashboard.interval."+e))}}function Mt(n,s){if(n&1){let e=re();fe(0),o(1,"mat-card")(2,"mat-card-content")(3,"mat-grid-list",1)(4,"mat-grid-tile",2)(5,"mat-card",3)(6,"mat-card-header")(7,"mat-card-title")(8,"h4"),p(9),l()()(),o(10,"mat-card-content")(11,"mat-form-field",4)(12,"mat-select",5),k("valueChange",function(t){g(e);let a=_();return C(a.queueMetricsController.setTimeframe(t))}),N(13,bt,2,2,"mat-option",6,z),l()(),o(15,"div",7)(16,"button",8),k("click",function(){g(e);let t=_();return C(t.queueMetricsController.setTimeframe(t.timeframeNames[0]))}),o(17,"mat-icon"),p(18,"first_page"),l()(),o(19,"button",8),k("click",function(){g(e);let t=_();return C(t.queueMetricsController.setTimeframe(t.timeframeNames[t.timeframeNames.indexOf(t.queueMetricsController.params.buckets.timeframe)-1]))}),o(20,"mat-icon"),p(21,"navigate_before"),l()(),o(22,"button",8),k("click",function(){g(e);let t=_();return C(t.queueMetricsController.setTimeframe(t.timeframeNames[t.timeframeNames.indexOf(t.queueMetricsController.params.buckets.timeframe)+1]))}),o(23,"mat-icon"),p(24,"navigate_next"),l()(),o(25,"button",8),k("click",function(){g(e);let t=_();return C(t.queueMetricsController.setTimeframe(t.timeframeNames[t.timeframeNames.length-1]))}),o(26,"mat-icon"),p(27,"last_page"),l()()()()()(),o(28,"mat-grid-tile",2)(29,"mat-card",9)(30,"mat-card-header")(31,"mat-card-title")(32,"h4"),p(33),l()()(),o(34,"mat-card-content")(35,"mat-form-field",10)(36,"input",11),ge(37,"async"),k("change",function(t){g(e);let a=_();return C(a.handleMultiplierEvent(t))}),l()(),o(38,"mat-form-field",12)(39,"mat-select",5),k("valueChange",function(t){g(e);let a=_();return C(a.queueMetricsController.setBucketDuration(t))}),N(40,gt,2,2,"mat-option",6,z),l()(),o(42,"div",7)(43,"button",8),k("click",function(){g(e);let t=_();return C(t.queueMetricsController.setBucketMultiplier(t.queueMetricsController.bucketMultiplier-1))}),o(44,"mat-icon"),p(45,"remove"),l()(),o(46,"button",13),k("click",function(){g(e);let t=_();return C(t.queueMetricsController.setBucketMultiplier(t.queueMetricsController.bucketMultiplier+1))}),o(47,"mat-icon"),p(48,"add"),l()(),o(49,"button",8),k("click",function(){g(e);let t=_();return C(t.queueMetricsController.setBucketDuration(t.resolutionNames[0]))}),o(50,"mat-icon"),p(51,"first_page"),l()(),o(52,"button",8),k("click",function(){g(e);let t=_();return C(t.queueMetricsController.setBucketDuration(t.resolutionNames[t.resolutionNames.indexOf(t.queueMetricsController.bucketDuration)-1]))}),o(53,"mat-icon"),p(54,"navigate_before"),l()(),o(55,"button",8),k("click",function(){g(e);let t=_();return C(t.queueMetricsController.setBucketDuration(t.resolutionNames[t.resolutionNames.indexOf(t.queueMetricsController.bucketDuration)+1]))}),o(56,"mat-icon"),p(57,"navigate_next"),l()(),o(58,"button",8),k("click",function(){g(e);let t=_();return C(t.queueMetricsController.setBucketDuration(t.resolutionNames[t.resolutionNames.length-1]))}),o(59,"mat-icon"),p(60,"last_page"),l()()()()()(),o(61,"mat-grid-tile",2)(62,"mat-card")(63,"mat-card-header")(64,"mat-card-title")(65,"h4"),p(66),l()()(),o(67,"mat-card-content")(68,"mat-form-field",4)(69,"mat-select",5),k("valueChange",function(t){g(e);let a=_();return C(a.queueMetricsController.setQueue(t==="_all"?null:t))}),o(70,"mat-option",14),p(71),l(),N(72,Ct,2,2,"mat-option",6,z),l()(),o(74,"div",15)(75,"button",16),k("click",function(){g(e);let t=_();return C(t.queueMetricsController.setQueue(null))}),o(76,"mat-icon",17),p(77,"workspaces"),l()(),N(78,kt,3,4,"button",18,z),l()()()(),o(80,"mat-grid-tile",2)(81,"mat-card")(82,"mat-card-header")(83,"mat-card-title")(84,"h4"),p(85),l()()(),o(86,"mat-card-content")(87,"mat-form-field",4)(88,"mat-select",5),k("valueChange",function(t){g(e);let a=_();return C(a.queueMetricsController.setEvent(t==="_all"?null:t))}),o(89,"mat-option",14),p(90,"All"),l(),N(91,vt,2,2,"mat-option",6,z),l()(),o(93,"div",15)(94,"button",16),k("click",function(){g(e);let t=_();return C(t.queueMetricsController.setEvent(null))}),o(95,"mat-icon",17),p(96,"radio_button_checked"),l()(),o(97,"button",16),k("click",function(){g(e);let t=_();return C(t.queueMetricsController.params.event==="created"||t.queueMetricsController.setEvent("created"))}),o(98,"mat-icon"),p(99,"add_circle"),l()(),o(100,"button",16),k("click",function(){g(e);let t=_();return C(t.queueMetricsController.params.event==="processed"||t.queueMetricsController.setEvent("processed"))}),o(101,"mat-icon"),p(102,"check_circle"),l()(),o(103,"button",16),k("click",function(){g(e);let t=_();return C(t.queueMetricsController.params.event==="failed"||t.queueMetricsController.setEvent("failed"))}),o(104,"mat-icon"),p(105,"error"),l()()()()()(),o(106,"mat-grid-tile",2)(107,"mat-card",19)(108,"mat-card-header")(109,"mat-card-title")(110,"h4"),p(111),l()()(),o(112,"mat-card-content")(113,"mat-form-field",4)(114,"mat-select",5),k("valueChange",function(t){g(e);let a=_();return C(a.queueMetricsController.setAutoRefreshInterval(t))}),N(115,xt,2,2,"mat-option",6,z),l()(),o(117,"div",15)(118,"button",16),k("click",function(){g(e);let t=_();return C(t.queueMetricsController.refresh())}),o(119,"mat-icon"),p(120,"sync"),l()()()()()()(),o(121,"div",20),F(122,"mat-progress-bar",21),l(),o(123,"mat-grid-list",1)(124,"mat-grid-tile",2)(125,"mat-card")(126,"mat-card-header")(127,"mat-card-title")(128,"h4"),p(129),l()()(),o(130,"mat-card-content"),F(131,"app-chart",22),l()()(),o(132,"mat-grid-tile",2)(133,"mat-card")(134,"mat-card-header")(135,"mat-card-title")(136,"h4"),p(137),l()()(),o(138,"mat-card-content"),F(139,"app-chart",22),l()()()()()(),_e()}if(n&2){let e,i,t,a=s.$implicit,r=_();c(3),u("cols",r.breakpoints.sizeAtLeast("Large")?5:r.breakpoints.sizeAtLeast("Medium")?3:r.breakpoints.sizeAtLeast("Small")?2:1),c(),u("colspan",1)("rowspan",2),c(5),S(a("dashboard.metrics.timeframe")),c(3),u("value",r.queueMetricsController.params.buckets.timeframe),c(),P(r.timeframeNames),c(3),u("disabled",r.timeframeNames.indexOf(r.queueMetricsController.params.buckets.timeframe)<=0),c(3),u("disabled",r.timeframeNames.indexOf(r.queueMetricsController.params.buckets.timeframe)<=0),c(3),u("disabled",r.timeframeNames.indexOf(r.queueMetricsController.params.buckets.timeframe)>=r.timeframeNames.length-1),c(3),u("disabled",r.timeframeNames.indexOf(r.queueMetricsController.params.buckets.timeframe)>=r.timeframeNames.length-1),c(3),u("colspan",1)("rowspan",2),c(5),he(" ",a("dashboard.metrics.resolution")," "),c(3),u("placeholder",(e=(e=Ce(37,66,r.queueMetricsController.result$))==null||e.params==null||e.params.buckets==null||e.params.buckets.multiplier==null?null:e.params.buckets.multiplier.toString())!==null&&e!==void 0?e:"")("value",r.queueMetricsController.params.buckets.multiplier),c(3),u("value",r.queueMetricsController.bucketDuration),c(),P(r.resolutionNames),c(3),u("disabled",r.queueMetricsController.bucketMultiplier===1),c(6),u("disabled",r.resolutionNames.indexOf(r.queueMetricsController.bucketDuration)<=0),c(3),u("disabled",r.resolutionNames.indexOf(r.queueMetricsController.bucketDuration)<=0),c(3),u("disabled",r.resolutionNames.indexOf(r.queueMetricsController.bucketDuration)>=r.resolutionNames.length-1),c(3),u("disabled",r.resolutionNames.indexOf(r.queueMetricsController.bucketDuration)>=r.resolutionNames.length-1),c(3),u("colspan",1)("rowspan",2),c(5),S(a("dashboard.queues.queue")),c(3),u("value",(i=r.queueMetricsController.params.queue)!==null&&i!==void 0?i:"_all"),c(2),S(a("general.all")),c(),P(r.availableQueueNames),c(3),I(r.queueMetricsController.params.queue?"deselected":"selected"),u("matTooltip",a("general.all")),c(3),P(r.availableQueueNames),c(2),u("colspan",1)("rowspan",2),c(5),S(a("dashboard.metrics.event")),c(3),u("value",(t=r.queueMetricsController.params.event)!==null&&t!==void 0?t:"_all"),c(3),P(r.eventNames),c(3),I(r.queueMetricsController.params.event?"deselected":"selected"),u("matTooltip",a("general.all")),c(3),I(r.queueMetricsController.params.event==="created"?"selected":"deselected"),u("matTooltip",a("dashboard.queues.created")),c(3),I(r.queueMetricsController.params.event==="processed"?"selected":"deselected"),u("matTooltip",a("dashboard.queues.processed")),c(3),I(r.queueMetricsController.params.event==="failed"?"selected":"deselected"),u("matTooltip",a("dashboard.queues.failed")),c(3),u("colspan",1)("rowspan",2),c(5),S(a("general.refresh")),c(3),u("value",r.queueMetricsController.params.autoRefresh),c(),P(r.autoRefreshIntervalNames),c(3),u("matTooltip",a("general.refresh")),c(4),u("mode",r.queueMetricsController.loading?"indeterminate":"determinate")("value",0),c(),u("cols",r.breakpoints.sizeAtLeast("Large")?2:1),c(),u("colspan",1)("rowspan",5),c(5),S(a("dashboard.queues.total_counts_by_status")),c(2),u("adapter",r.totals)("$data",r.queueMetricsController.result$)("height",400)("width",550),c(),u("colspan",1)("rowspan",5),c(5),S(a("dashboard.metrics.throughput")),c(2),u("adapter",r.timeline)("$data",r.queueMetricsController.result$)("height",400)("width",550)}}var zi=(()=>{class n{constructor(){this.breakpoints=T(De),this.apollo=T(xe),this.queueMetricsController=new te(this.apollo,{buckets:{duration:"AUTO",multiplier:"AUTO",timeframe:"all"},autoRefresh:"seconds_30"},T(Se)),this.timeline=T(st),this.totals=T(et),this.resolutionNames=He,this.timeframeNames=Ye,this.availableQueueNames=Je,this.autoRefreshIntervalNames=We,this.eventNames=ee}ngOnInit(){this.queueMetricsController.result$.subscribe(e=>{if(this.queueMetricsController.params.buckets.timeframe==="all"&&this.queueMetricsController.params.buckets.duration==="AUTO"&&e.params.buckets.duration==="hour"){let i=e.bucketSpan;i&&i.latestBucket-i.earliestBucket<12&&this.queueMetricsController.setBucketDuration("minute")}})}ngOnDestroy(){this.queueMetricsController.setAutoRefreshInterval("off")}handleMultiplierEvent(e){let i=e.currentTarget.value;this.queueMetricsController.setBucketMultiplier(/^\d+$/.test(i)?parseInt(i):"AUTO")}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=me({type:n,selectors:[["app-queue-visualize"]],standalone:!0,features:[be],decls:1,vars:0,consts:[[4,"transloco"],["rowHeight","100px",3,"cols"],[3,"colspan","rowspan"],[1,"form-timeframe"],["subscriptSizing","dynamic"],[3,"valueChange","value"],[3,"value"],[1,"paginator","actions"],["mat-icon-button","",3,"click","disabled"],[1,"form-resolution"],["subscriptSizing","dynamic",1,"form-input-multiplier"],["type","number","matInput","","min","1","step","1",3,"change","placeholder","value"],["subscriptSizing","dynamic",1,"form-select-duration"],["mat-icon-button","",3,"click"],["value","_all"],[1,"actions"],["mat-icon-button","",3,"click","matTooltip"],["fontSet","material-icons"],["mat-icon-button","",3,"class","matTooltip"],[1,"form-refresh"],[1,"progress-bar-container"],[3,"mode","value"],[3,"adapter","$data","height","width"]],template:function(i,t){i&1&&de(0,Mt,140,68,"ng-container",0)},dependencies:[Ae,Me,U,K,Ve,Y,qe,Te,Ee,J,W,Oe,Ne,Qe,Pe,ve,ke,Re,G,Ze],styles:[".actions[_ngcontent-%COMP%]{width:210px;padding-top:12px;--mdc-icon-button-state-layer-size: 32px}.actions[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:22px}.actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-right:0}.progress-bar-container[_ngcontent-%COMP%]{width:100%;height:10px}mat-grid-tile[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]{width:100%}mat-grid-tile[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{min-width:190px}mat-grid-tile[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{margin-bottom:16px;font-size:18px}mat-form-field[_ngcontent-%COMP%]{width:186px}.form-resolution[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{margin-left:-2px}.form-resolution[_ngcontent-%COMP%] .form-input-multiplier[_ngcontent-%COMP%]{width:60px;margin-right:10px}.form-resolution[_ngcontent-%COMP%] .form-input-multiplier[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::-webkit-outer-spin-button, .form-resolution[_ngcontent-%COMP%] .form-input-multiplier[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.form-resolution[_ngcontent-%COMP%] .form-input-multiplier[_ngcontent-%COMP%] input[type=number][_ngcontent-%COMP%]{-moz-appearance:textfield}.form-resolution[_ngcontent-%COMP%] .form-select-duration[_ngcontent-%COMP%]{width:116px}"]})}}return n})();export{zi as QueueVisualizeComponent}; +import{a as Fe,b as He,c as Z,d as Ue,e as Ge,f as ee,g as Ke,h as Ye,i as D,j as Je,k as We,l as Xe}from"./chunk-6OKZFKY7.js";import{a as je,b as Re,c as O}from"./chunk-C7LQJIED.js";import{e as X}from"./chunk-VHNPENGG.js";import{b as $e}from"./chunk-JIO2QO4M.js";import{a as Se,m as Le}from"./chunk-33KK2FKQ.js";import{a as De}from"./chunk-TC5EWLZ6.js";import{D as we,J as G,M as Te,P as K,Q as qe,R as Ve,U as Y,Ua as Ae,a as H,b as ve,i as xe,ia as Be,n as Me,na as J,o as ye,oa as Ee,qa as W,r as U,ra as Oe,sa as Ie,ta as ze,va as Ne,ya as Pe,za as Qe}from"./chunk-HB55W55I.js";import"./chunk-6XXA7HXI.js";import"./chunk-ZBBMS7J5.js";import{$b as _,$c as ke,B as ce,Cb as de,Ea as g,Fa as C,Hb as u,Kb as I,N as le,Nb as z,Ob as N,Pb as P,Q as ne,Qb as o,Rb as l,Sb as F,Tb as fe,Ub as _e,Wb as re,Zb as k,a as M,b as y,ka as R,kb as c,kc as p,l as A,la as ue,lc as S,mc as he,o as se,pc as be,qa as T,ua as me,uc as ge,va as pe,vc as Ce}from"./chunk-FJILXII2.js";var Ze=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=pe({type:n})}static{this.\u0275inj=ue({imports:[G,W,Be,ye,U,K,Y,J,ze,Ie]})}}return n})();var lt={pending:"primary",processed:"success",failed:"error",retry:"caution"},et=(()=>{class n{constructor(){this.themeInfo=T(X),this.transloco=T(H)}create(e){let{colors:i}=this.themeInfo.info,t=Array(),a=[];if(e&&Array.from(new Set(e.queues.flatMap(v=>v.events?[v.events.earliestBucket,v.events.latestBucket]:[]))).sort().length){let v=e.queues.filter(h=>!h.isEmpty);t.push(...v.map(h=>h.queue));let x=Array();switch(e.params.event){case"created":x.push("pending");break;case"processed":x.push("processed");break;case"failed":x.push("retry","failed");break;default:x.push(...Ke);break}a.push(...x.map(h=>({label:this.transloco.translate("dashboard.queues."+h),data:v.map(d=>d.statusCounts[h]),backgroundColor:i[O(lt[h],50)]})))}return{type:"bar",options:{animation:!1,scales:{x:{ticks:{callback:r=>parseInt(r).toLocaleString(this.transloco.getActiveLang())}},y:{}},indexAxis:"y",plugins:{legend:{display:!0}}},data:{labels:t,datasets:a}}}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var j="\\d+",oe="".concat(j,"(?:[\\.,]").concat(j,")?"),ut="(".concat(j,"Y)?(").concat(j,"M)?(").concat(j,"W)?(").concat(j,"D)?"),mt="T(".concat(oe,"H)?(").concat(oe,"M)?(").concat(oe,"S)?"),pt="P(?:".concat(ut,"(?:").concat(mt,")?)"),dt=["years","months","weeks","days","hours","minutes","seconds"],tt={years:0,months:0,weeks:0,days:0,hours:0,minutes:0,seconds:0},ft=new RegExp(pt),it=function(n){let s=n.replace(/,/g,".").match(ft);if(!s)throw new RangeError("invalid duration: ".concat(n));let e=s.slice(1);if(e.filter(function(i){return i!=null}).length===0)throw new RangeError("invalid duration: ".concat(n));if(e.filter(function(i){return/\./.test(i||"")}).length>1)throw new RangeError("only the smallest unit can be fractional");return e.reduce(function(i,t,a){return Object.assign(i,{[dt[a]]:parseFloat(t||"0")||0}),i},{})},_t=function(n,s){s||(s=new Date);let e=Object.assign({},tt,n),i=s.getTime(),t=new Date(i);t.setFullYear(t.getFullYear()+e.years),t.setMonth(t.getMonth()+e.months),t.setDate(t.getDate()+e.days);let a=e.hours*3600*1e3,r=e.minutes*60*1e3;return t.setMilliseconds(t.getMilliseconds()+e.seconds*1e3+a+r),t.setDate(t.getDate()+e.weeks*7),t},nt=function(n,s){s||(s=new Date);let e=Object.assign({},tt,n),i=s.getTime(),t=new Date(i),a=_t(e,t),r=s.getTimezoneOffset(),v=a.getTimezoneOffset(),x=(r-v)*60;return(a.getTime()-t.getTime())/1e3+x};var te=class{constructor(s,e=Ue,i){this.apollo=s,this.errorsService=i,this.rawResultSubject=new A({queue:{metrics:{buckets:[]}}}),this.resultSubject=new A(Ge),this.result$=this.resultSubject.asObservable(),this.loadingSubject=new A(!1),this.paramsSubject=new A(e),this.params$=this.paramsSubject.asObservable(),this.variablesSubject=new A(rt(e)),this.paramsSubject.pipe(ne(50)).subscribe(t=>{let a=this.variablesSubject.getValue(),r=rt(t);JSON.stringify(a)!==JSON.stringify(r)?this.variablesSubject.next(r):this.resultSubject.next(ot(t,this.rawResultSubject.getValue()))}),this.variablesSubject.pipe(ne(50)).subscribe(t=>this.request(t)),this.rawResultSubject.subscribe(t=>{let a=this.paramsSubject.getValue();this.resultSubject.next(ot(a,t)),this.setInterval(a.autoRefresh)})}setInterval(s){clearTimeout(this.refreshTimeout);let e=Xe[s??this.params.autoRefresh];e&&(this.refreshTimeout=setTimeout(()=>{this.refresh()},e*1e3))}get params(){return this.paramsSubject.getValue()}get bucketDuration(){let s=this.params.buckets.duration;return s==="AUTO"?"hour":s}get bucketMultiplier(){return this.resultSubject.getValue().params.buckets.multiplier??this.params.buckets.multiplier}get loading(){return this.loadingSubject.getValue()}setTimeframe(s){this.updateParams(e=>y(M({},e),{buckets:y(M({},e.buckets),{timeframe:s})}))}setQueue(s){this.updateParams(e=>y(M({},e),{queue:s??void 0}))}setBucketDuration(s,e){this.updateParams(i=>y(M({},i),{buckets:y(M({},i.buckets),{duration:s,multiplier:e??"AUTO"})}))}setBucketMultiplier(s){this.updateParams(e=>y(M({},e),{buckets:y(M({},e.buckets),{multiplier:s})}))}setEvent(s){this.updateParams(e=>y(M({},e),{event:s??void 0}))}setAutoRefreshInterval(s){this.updateParams(e=>y(M({},e),{autoRefresh:s}))}updateParams(s){this.paramsSubject.next(s(this.params))}refresh(){this.variablesSubject.next(this.variablesSubject.getValue())}request(s){return clearTimeout(this.refreshTimeout),this.loadingSubject.next(!0),this.apollo.query({query:we,variables:s,fetchPolicy:"no-cache"}).pipe(ce(e=>{e&&(this.loadingSubject.next(!1),this.rawResultSubject.next(e.data))})).pipe(le(e=>(this.errorsService.addError(`Failed to load queue metrics: ${e.message}`),this.loadingSubject.next(!1),this.setInterval(),se))).subscribe()}},rt=n=>({input:{bucketDuration:n.buckets.duration==="AUTO"?"hour":n.buckets.duration,queues:n.queue?[n.queue]:void 0,startTime:n.buckets.timeframe==="all"?void 0:new Date(new Date().getTime()-1e3*D[n.buckets.timeframe]).toISOString()}}),at=n=>Object.fromEntries(n),ot=(n,s)=>{let{bucketParams:e,earliestBucket:i,latestBucket:t}=ht(n,s),a=Object.entries(s.queue.metrics.buckets.reduce((h,d)=>{if(d.queue!==(n.queue??d.queue))return h;let f,m;if((n.event??!0)&&(f=q(d.createdAtBucket,e),i&&i.index>f.index&&(f=void 0)),d.ranAtBucket&&n.event!=="created"&&(m=q(d.ranAtBucket,e),m&&(t.indexm.index)&&(m=void 0)),d.queue!==n.queue&&!f&&(!m||d.status==="pending"))return h;let[V,b]=h[d.queue]??[Fe,[]],w=d.latency?nt(it(d.latency)):void 0;return y(M({},h),{[d.queue]:[(d.status==="pending"?f:m)?y(M({},V),{[d.status]:d.count+V[d.status]}):V,{created:f?y(M({},b.created),{[f.key]:{count:d.count+(b.created?.[f.key]?.count??0),latency:0,startTime:f.start}}):b.created,processed:m&&d.status==="processed"&&(n.event??!0)?y(M({},b.processed),{[m.key]:{count:d.count+(b.processed?.[m.key]?.count??0),latency:(b.processed?.[m.key]?.latency??0)+(w??0),startTime:m.start}}):b.processed,failed:m&&d.status==="failed"&&(n.event??!0)?y(M({},b.failed),{[m.key]:{count:d.count+(b.failed?.[m.key]?.count??0),latency:(b.failed?.[m.key]?.latency??0)+(w??0),startTime:m.start}}):b.failed}]})},{})).map(([h,[d,f]])=>{let m;if(Object.keys(f).length){let V=Array(),b=at(Array("created","processed","failed").flatMap(w=>{let B=at(Object.entries(f[w]??{}).filter(([,ie])=>ie?.count).sort(([ie],[ct])=>parseInt(ie)h.events?[h.events.earliestBucket]:[]).sort()[0],x=a.flatMap(h=>h.events?[h.events.latestBucket]:[]).sort().reverse()[0];return v&&x&&(r={earliestBucket:v,latestBucket:x}),{params:y(M({},n),{buckets:e}),queues:a,bucketSpan:r}},ht=(n,s)=>{let e=n.buckets.duration==="AUTO"?"hour":n.buckets.duration,i=n.buckets.multiplier==="AUTO"?1:n.buckets.multiplier,t=n.buckets.timeframe,a=new Date,r=q(a,{duration:e,multiplier:i}),v=t==="all"?void 0:q(a.getTime()-1e3*D[t],{duration:e,multiplier:i}),x=[...v?[v]:[],...s.queue.metrics.buckets.flatMap(f=>[q(f.createdAtBucket,{duration:e,multiplier:i}),...f.ranAtBucket?[q(f.ranAtBucket,{duration:e,multiplier:i})]:[]]),r].filter(f=>!v||f.index>=v.index).sort((f,m)=>f.index-m.index),h=x[0],d=x[x.length-1];if(n.buckets.multiplier==="AUTO"){let m=d.index-h.index;i=Math.min(60,Math.max(Math.floor(m/(20*5))*5,1))}return{bucketParams:{duration:e,multiplier:i,timeframe:t},earliestBucket:t==="all"?void 0:q(a.getTime()-1e3*D[t],{duration:e,multiplier:i}),latestBucket:q(Math.max(a.getTime(),d.start.getTime()),{duration:e,multiplier:i})}},q=(n,s)=>{let e=new Date(n),i=1e3*Z[s.duration]*s.multiplier,t=Math.floor(e.getTime()/i);return{key:`${t}`,index:t,start:new Date(t*i)}};var L={created:"primary",processed:"success",failed:"error"},st=(()=>{class n{constructor(){this.themeInfo=T(X),this.transloco=T(H)}create(e){let{colors:i}=this.themeInfo.info,t=Array(),a=[];if(e){let r=e.queues.filter(f=>!f.isEmpty),v=Array.from(new Set(r.flatMap(f=>f.events?[f.events.earliestBucket,f.events.latestBucket]:[]))).sort(),x=new Date,h=e.params.buckets.timeframe==="all"?v[0]:Math.min(v[0],q(x.getTime()-1e3*D[e.params.buckets.timeframe],e.params.buckets).index),d=Math.max(v[v.length-1],q(x,e.params.buckets).index);if(v.length){for(let m=h;m<=d;m++)t.push(this.formatBucketKey(e.params.buckets,m));let f=ee.filter(m=>(e.params.event??m)===m);for(let m of r){for(let b of f){let w=Array();for(let B=h;B<=d;B++)w.push(m.events?.eventBuckets?.[b]?.entries?.[`${B}`]?.count??0);a.push({yAxisID:"yCount",label:m.queue+": "+this.transloco.translate("dashboard.queues."+b),data:w,borderColor:i[O(L[b],50)],pointBackgroundColor:i[O(L[b],20)],pointBorderColor:i[O(L[b],80)],pointHoverBackgroundColor:i[O(L[b],40)],pointHoverBorderColor:i[O(L[b],60)]})}if(["processed","failed"].filter(b=>f.includes(b)).length){let b=Array();for(let w=h;w<=d;w++){let B=["processed","failed"].filter(E=>f.includes(E)).reduce((E,$)=>{let Q=m.events?.eventBuckets?.[$]?.entries?.[`${w}`];return Q?.count?[(E?.[0]??0)+Q.latency,(E?.[1]??0)+Q.count]:E},null);b.push(B?B[0]/B[1]:null)}a.push({yAxisID:"yLatency",label:m.queue+": "+this.transloco.translate("dashboard.queues.latency"),data:b,borderColor:i["tertiary-50"],pointHoverBackgroundColor:i["tertiary-80"],pointHoverBorderColor:i["tertiary-20"]})}}}}return{type:"line",options:{animation:!1,elements:{line:{tension:.5}},scales:{yCount:{position:"left",ticks:{callback:r=>parseInt(r).toLocaleString(this.transloco.getActiveLang())}},yLatency:{position:"right",ticks:{callback:this.formatDuration.bind(this)}}},plugins:{legend:{display:!0},decimation:{enabled:!0}}},data:{labels:t,datasets:a}}}formatBucketKey(e,i){let t;switch(e.duration){case"day":t="d LLL";break;case"hour":t="d LLL H:00";break;case"minute":t="H:mm";break}return je(1e3*Z[e.duration]*e.multiplier*i,t,{locale:Le(this.transloco.getActiveLang())})}formatDuration(e){if(typeof e=="string"&&(e=parseInt(e)),e===0)return"0";let i=e,t=0,a=0,r=0;return i>=60&&(t=Math.floor(i/60),i=i%60,t>=5&&(i=0,t>=60&&(a=Math.floor(t/60),t=t%60,a>=5&&(t=0,a>=24&&(r=Math.floor(a/24),a=a%24))))),$e({days:r,hours:a,minutes:t,seconds:i},this.transloco.getActiveLang())}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();function bt(n,s){if(n&1&&(o(0,"mat-option",6),p(1),l()),n&2){let e=s.$implicit,i=_().$implicit;u("value",e),c(),S(i("dashboard.interval."+e))}}function gt(n,s){if(n&1&&(o(0,"mat-option",6),p(1),l()),n&2){let e=s.$implicit,i=_().$implicit;u("value",e),c(),S(i("dashboard.interval."+e+"s"))}}function Ct(n,s){if(n&1&&(o(0,"mat-option",6),p(1),l()),n&2){let e=s.$implicit;u("value",e),c(),S(e)}}function kt(n,s){if(n&1){let e=re();o(0,"button",16),k("click",function(){let t=g(e).$implicit,a=_(2);return C(a.queueMetricsController.params.queue===t||a.queueMetricsController.setQueue(t))}),o(1,"mat-icon"),p(2),l()()}if(n&2){let e=s.$implicit,i=_(2);I(i.queueMetricsController.params.queue===e?"selected":"deselected"),u("matTooltip",e),c(2),S(i.queueMetricsController.params.queue===e?"radio_button_checked":"radio_button_unchecked")}}function vt(n,s){if(n&1&&(o(0,"mat-option",6),p(1),l()),n&2){let e=s.$implicit,i=_().$implicit;u("value",e),c(),S(i("dashboard.event."+e))}}function xt(n,s){if(n&1&&(o(0,"mat-option",6),p(1),l()),n&2){let e=s.$implicit,i=_().$implicit;u("value",e),c(),S(i("dashboard.interval."+e))}}function Mt(n,s){if(n&1){let e=re();fe(0),o(1,"mat-card")(2,"mat-card-content")(3,"mat-grid-list",1)(4,"mat-grid-tile",2)(5,"mat-card",3)(6,"mat-card-header")(7,"mat-card-title")(8,"h4"),p(9),l()()(),o(10,"mat-card-content")(11,"mat-form-field",4)(12,"mat-select",5),k("valueChange",function(t){g(e);let a=_();return C(a.queueMetricsController.setTimeframe(t))}),N(13,bt,2,2,"mat-option",6,z),l()(),o(15,"div",7)(16,"button",8),k("click",function(){g(e);let t=_();return C(t.queueMetricsController.setTimeframe(t.timeframeNames[0]))}),o(17,"mat-icon"),p(18,"first_page"),l()(),o(19,"button",8),k("click",function(){g(e);let t=_();return C(t.queueMetricsController.setTimeframe(t.timeframeNames[t.timeframeNames.indexOf(t.queueMetricsController.params.buckets.timeframe)-1]))}),o(20,"mat-icon"),p(21,"navigate_before"),l()(),o(22,"button",8),k("click",function(){g(e);let t=_();return C(t.queueMetricsController.setTimeframe(t.timeframeNames[t.timeframeNames.indexOf(t.queueMetricsController.params.buckets.timeframe)+1]))}),o(23,"mat-icon"),p(24,"navigate_next"),l()(),o(25,"button",8),k("click",function(){g(e);let t=_();return C(t.queueMetricsController.setTimeframe(t.timeframeNames[t.timeframeNames.length-1]))}),o(26,"mat-icon"),p(27,"last_page"),l()()()()()(),o(28,"mat-grid-tile",2)(29,"mat-card",9)(30,"mat-card-header")(31,"mat-card-title")(32,"h4"),p(33),l()()(),o(34,"mat-card-content")(35,"mat-form-field",10)(36,"input",11),ge(37,"async"),k("change",function(t){g(e);let a=_();return C(a.handleMultiplierEvent(t))}),l()(),o(38,"mat-form-field",12)(39,"mat-select",5),k("valueChange",function(t){g(e);let a=_();return C(a.queueMetricsController.setBucketDuration(t))}),N(40,gt,2,2,"mat-option",6,z),l()(),o(42,"div",7)(43,"button",8),k("click",function(){g(e);let t=_();return C(t.queueMetricsController.setBucketMultiplier(t.queueMetricsController.bucketMultiplier-1))}),o(44,"mat-icon"),p(45,"remove"),l()(),o(46,"button",13),k("click",function(){g(e);let t=_();return C(t.queueMetricsController.setBucketMultiplier(t.queueMetricsController.bucketMultiplier+1))}),o(47,"mat-icon"),p(48,"add"),l()(),o(49,"button",8),k("click",function(){g(e);let t=_();return C(t.queueMetricsController.setBucketDuration(t.resolutionNames[0]))}),o(50,"mat-icon"),p(51,"first_page"),l()(),o(52,"button",8),k("click",function(){g(e);let t=_();return C(t.queueMetricsController.setBucketDuration(t.resolutionNames[t.resolutionNames.indexOf(t.queueMetricsController.bucketDuration)-1]))}),o(53,"mat-icon"),p(54,"navigate_before"),l()(),o(55,"button",8),k("click",function(){g(e);let t=_();return C(t.queueMetricsController.setBucketDuration(t.resolutionNames[t.resolutionNames.indexOf(t.queueMetricsController.bucketDuration)+1]))}),o(56,"mat-icon"),p(57,"navigate_next"),l()(),o(58,"button",8),k("click",function(){g(e);let t=_();return C(t.queueMetricsController.setBucketDuration(t.resolutionNames[t.resolutionNames.length-1]))}),o(59,"mat-icon"),p(60,"last_page"),l()()()()()(),o(61,"mat-grid-tile",2)(62,"mat-card")(63,"mat-card-header")(64,"mat-card-title")(65,"h4"),p(66),l()()(),o(67,"mat-card-content")(68,"mat-form-field",4)(69,"mat-select",5),k("valueChange",function(t){g(e);let a=_();return C(a.queueMetricsController.setQueue(t==="_all"?null:t))}),o(70,"mat-option",14),p(71),l(),N(72,Ct,2,2,"mat-option",6,z),l()(),o(74,"div",15)(75,"button",16),k("click",function(){g(e);let t=_();return C(t.queueMetricsController.setQueue(null))}),o(76,"mat-icon",17),p(77,"workspaces"),l()(),N(78,kt,3,4,"button",18,z),l()()()(),o(80,"mat-grid-tile",2)(81,"mat-card")(82,"mat-card-header")(83,"mat-card-title")(84,"h4"),p(85),l()()(),o(86,"mat-card-content")(87,"mat-form-field",4)(88,"mat-select",5),k("valueChange",function(t){g(e);let a=_();return C(a.queueMetricsController.setEvent(t==="_all"?null:t))}),o(89,"mat-option",14),p(90,"All"),l(),N(91,vt,2,2,"mat-option",6,z),l()(),o(93,"div",15)(94,"button",16),k("click",function(){g(e);let t=_();return C(t.queueMetricsController.setEvent(null))}),o(95,"mat-icon",17),p(96,"radio_button_checked"),l()(),o(97,"button",16),k("click",function(){g(e);let t=_();return C(t.queueMetricsController.params.event==="created"||t.queueMetricsController.setEvent("created"))}),o(98,"mat-icon"),p(99,"add_circle"),l()(),o(100,"button",16),k("click",function(){g(e);let t=_();return C(t.queueMetricsController.params.event==="processed"||t.queueMetricsController.setEvent("processed"))}),o(101,"mat-icon"),p(102,"check_circle"),l()(),o(103,"button",16),k("click",function(){g(e);let t=_();return C(t.queueMetricsController.params.event==="failed"||t.queueMetricsController.setEvent("failed"))}),o(104,"mat-icon"),p(105,"error"),l()()()()()(),o(106,"mat-grid-tile",2)(107,"mat-card",19)(108,"mat-card-header")(109,"mat-card-title")(110,"h4"),p(111),l()()(),o(112,"mat-card-content")(113,"mat-form-field",4)(114,"mat-select",5),k("valueChange",function(t){g(e);let a=_();return C(a.queueMetricsController.setAutoRefreshInterval(t))}),N(115,xt,2,2,"mat-option",6,z),l()(),o(117,"div",15)(118,"button",16),k("click",function(){g(e);let t=_();return C(t.queueMetricsController.refresh())}),o(119,"mat-icon"),p(120,"sync"),l()()()()()()(),o(121,"div",20),F(122,"mat-progress-bar",21),l(),o(123,"mat-grid-list",1)(124,"mat-grid-tile",2)(125,"mat-card")(126,"mat-card-header")(127,"mat-card-title")(128,"h4"),p(129),l()()(),o(130,"mat-card-content"),F(131,"app-chart",22),l()()(),o(132,"mat-grid-tile",2)(133,"mat-card")(134,"mat-card-header")(135,"mat-card-title")(136,"h4"),p(137),l()()(),o(138,"mat-card-content"),F(139,"app-chart",22),l()()()()()(),_e()}if(n&2){let e,i,t,a=s.$implicit,r=_();c(3),u("cols",r.breakpoints.sizeAtLeast("Large")?5:r.breakpoints.sizeAtLeast("Medium")?3:r.breakpoints.sizeAtLeast("Small")?2:1),c(),u("colspan",1)("rowspan",2),c(5),S(a("dashboard.metrics.timeframe")),c(3),u("value",r.queueMetricsController.params.buckets.timeframe),c(),P(r.timeframeNames),c(3),u("disabled",r.timeframeNames.indexOf(r.queueMetricsController.params.buckets.timeframe)<=0),c(3),u("disabled",r.timeframeNames.indexOf(r.queueMetricsController.params.buckets.timeframe)<=0),c(3),u("disabled",r.timeframeNames.indexOf(r.queueMetricsController.params.buckets.timeframe)>=r.timeframeNames.length-1),c(3),u("disabled",r.timeframeNames.indexOf(r.queueMetricsController.params.buckets.timeframe)>=r.timeframeNames.length-1),c(3),u("colspan",1)("rowspan",2),c(5),he(" ",a("dashboard.metrics.resolution")," "),c(3),u("placeholder",(e=(e=Ce(37,66,r.queueMetricsController.result$))==null||e.params==null||e.params.buckets==null||e.params.buckets.multiplier==null?null:e.params.buckets.multiplier.toString())!==null&&e!==void 0?e:"")("value",r.queueMetricsController.params.buckets.multiplier),c(3),u("value",r.queueMetricsController.bucketDuration),c(),P(r.resolutionNames),c(3),u("disabled",r.queueMetricsController.bucketMultiplier===1),c(6),u("disabled",r.resolutionNames.indexOf(r.queueMetricsController.bucketDuration)<=0),c(3),u("disabled",r.resolutionNames.indexOf(r.queueMetricsController.bucketDuration)<=0),c(3),u("disabled",r.resolutionNames.indexOf(r.queueMetricsController.bucketDuration)>=r.resolutionNames.length-1),c(3),u("disabled",r.resolutionNames.indexOf(r.queueMetricsController.bucketDuration)>=r.resolutionNames.length-1),c(3),u("colspan",1)("rowspan",2),c(5),S(a("dashboard.queues.queue")),c(3),u("value",(i=r.queueMetricsController.params.queue)!==null&&i!==void 0?i:"_all"),c(2),S(a("general.all")),c(),P(r.availableQueueNames),c(3),I(r.queueMetricsController.params.queue?"deselected":"selected"),u("matTooltip",a("general.all")),c(3),P(r.availableQueueNames),c(2),u("colspan",1)("rowspan",2),c(5),S(a("dashboard.metrics.event")),c(3),u("value",(t=r.queueMetricsController.params.event)!==null&&t!==void 0?t:"_all"),c(3),P(r.eventNames),c(3),I(r.queueMetricsController.params.event?"deselected":"selected"),u("matTooltip",a("general.all")),c(3),I(r.queueMetricsController.params.event==="created"?"selected":"deselected"),u("matTooltip",a("dashboard.queues.created")),c(3),I(r.queueMetricsController.params.event==="processed"?"selected":"deselected"),u("matTooltip",a("dashboard.queues.processed")),c(3),I(r.queueMetricsController.params.event==="failed"?"selected":"deselected"),u("matTooltip",a("dashboard.queues.failed")),c(3),u("colspan",1)("rowspan",2),c(5),S(a("general.refresh")),c(3),u("value",r.queueMetricsController.params.autoRefresh),c(),P(r.autoRefreshIntervalNames),c(3),u("matTooltip",a("general.refresh")),c(4),u("mode",r.queueMetricsController.loading?"indeterminate":"determinate")("value",0),c(),u("cols",r.breakpoints.sizeAtLeast("Large")?2:1),c(),u("colspan",1)("rowspan",5),c(5),S(a("dashboard.queues.total_counts_by_status")),c(2),u("adapter",r.totals)("$data",r.queueMetricsController.result$)("height",400)("width",550),c(),u("colspan",1)("rowspan",5),c(5),S(a("dashboard.metrics.throughput")),c(2),u("adapter",r.timeline)("$data",r.queueMetricsController.result$)("height",400)("width",550)}}var zi=(()=>{class n{constructor(){this.breakpoints=T(De),this.apollo=T(xe),this.queueMetricsController=new te(this.apollo,{buckets:{duration:"AUTO",multiplier:"AUTO",timeframe:"all"},autoRefresh:"seconds_30"},T(Se)),this.timeline=T(st),this.totals=T(et),this.resolutionNames=He,this.timeframeNames=Ye,this.availableQueueNames=Je,this.autoRefreshIntervalNames=We,this.eventNames=ee}ngOnInit(){this.queueMetricsController.result$.subscribe(e=>{if(this.queueMetricsController.params.buckets.timeframe==="all"&&this.queueMetricsController.params.buckets.duration==="AUTO"&&e.params.buckets.duration==="hour"){let i=e.bucketSpan;i&&i.latestBucket-i.earliestBucket<12&&this.queueMetricsController.setBucketDuration("minute")}})}ngOnDestroy(){this.queueMetricsController.setAutoRefreshInterval("off")}handleMultiplierEvent(e){let i=e.currentTarget.value;this.queueMetricsController.setBucketMultiplier(/^\d+$/.test(i)?parseInt(i):"AUTO")}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=me({type:n,selectors:[["app-queue-visualize"]],standalone:!0,features:[be],decls:1,vars:0,consts:[[4,"transloco"],["rowHeight","100px",3,"cols"],[3,"colspan","rowspan"],[1,"form-timeframe"],["subscriptSizing","dynamic"],[3,"valueChange","value"],[3,"value"],[1,"paginator","actions"],["mat-icon-button","",3,"click","disabled"],[1,"form-resolution"],["subscriptSizing","dynamic",1,"form-input-multiplier"],["type","number","matInput","","min","1","step","1",3,"change","placeholder","value"],["subscriptSizing","dynamic",1,"form-select-duration"],["mat-icon-button","",3,"click"],["value","_all"],[1,"actions"],["mat-icon-button","",3,"click","matTooltip"],["fontSet","material-icons"],["mat-icon-button","",3,"class","matTooltip"],[1,"form-refresh"],[1,"progress-bar-container"],[3,"mode","value"],[3,"adapter","$data","height","width"]],template:function(i,t){i&1&&de(0,Mt,140,68,"ng-container",0)},dependencies:[Ae,Me,U,K,Ve,Y,qe,Te,Ee,J,W,Oe,Ne,Qe,Pe,ve,ke,Re,G,Ze],styles:[".actions[_ngcontent-%COMP%]{width:210px;padding-top:12px;--mdc-icon-button-state-layer-size: 32px}.actions[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:22px}.actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-right:0}.progress-bar-container[_ngcontent-%COMP%]{width:100%;height:10px}mat-grid-tile[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]{width:100%}mat-grid-tile[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{min-width:190px}mat-grid-tile[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{margin-bottom:16px;font-size:18px}mat-form-field[_ngcontent-%COMP%]{width:186px}.form-resolution[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{margin-left:-2px}.form-resolution[_ngcontent-%COMP%] .form-input-multiplier[_ngcontent-%COMP%]{width:60px;margin-right:10px}.form-resolution[_ngcontent-%COMP%] .form-input-multiplier[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::-webkit-outer-spin-button, .form-resolution[_ngcontent-%COMP%] .form-input-multiplier[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.form-resolution[_ngcontent-%COMP%] .form-input-multiplier[_ngcontent-%COMP%] input[type=number][_ngcontent-%COMP%]{-moz-appearance:textfield}.form-resolution[_ngcontent-%COMP%] .form-select-duration[_ngcontent-%COMP%]{width:116px}"]})}}return n})();export{zi as QueueVisualizeComponent}; diff --git a/webui/dist/bitmagnet/browser/chunk-V3XZ7MUW.js b/webui/dist/bitmagnet/browser/chunk-GGYCQB7Z.js similarity index 96% rename from webui/dist/bitmagnet/browser/chunk-V3XZ7MUW.js rename to webui/dist/bitmagnet/browser/chunk-GGYCQB7Z.js index 4baca37f..18736d0e 100644 --- a/webui/dist/bitmagnet/browser/chunk-V3XZ7MUW.js +++ b/webui/dist/bitmagnet/browser/chunk-GGYCQB7Z.js @@ -1 +1 @@ -import{a as Be,b as je}from"./chunk-DKVITRV6.js";import"./chunk-KUHKEGBL.js";import{a as me}from"./chunk-3PIWRAOL.js";import{a as Fe}from"./chunk-M3BEO55A.js";import{Aa as we,Ba as Me,C as ue,Ca as Je,Da as Ie,Ea as Ee,Fa as Pe,Ga as $e,Ha as Qe,Ia as ke,Ja as Oe,K as _e,Ka as Ve,L as ge,La as De,M as xe,Ma as qe,P as fe,Q as be,R as Ce,U as he,Ua as A,a as B,b as F,ba as ve,h as le,i as ce,n as se,q as pe,qa as ye,r as de,va as Se,ya as j,za as Te}from"./chunk-4NEHCUZ2.js";import{c as oe,d as re,g as N,h as W,i as ae}from"./chunk-6XXA7HXI.js";import"./chunk-FKMTSCBK.js";import{$b as l,$c as q,B as P,Cb as u,Ea as _,Fa as g,Gb as O,Hb as d,Kb as H,Mb as E,N as U,Na as ee,O as X,Ob as $,Pb as Q,Q as Z,Qb as a,Rb as c,Sb as I,Tb as h,Ub as v,Wb as y,Zb as x,_c as D,a as f,ad as ne,b,jc as z,kb as r,kc as p,l as w,lc as S,mc as m,o as K,pc as V,qa as J,qc as te,ua as k,uc as T,vc as M,wc as ie}from"./chunk-3DR3CJRN.js";var Ge=()=>["expandedDetail"];function Ke(t,n){t&1&&(a(0,"th",18),p(1,"ID"),c())}function Ue(t,n){if(t&1){let e=y();a(0,"td",19),x("click",function(o){let s=_(e).$implicit;return l(2).toggleQueueJobId(s.id),g(o.stopPropagation())}),p(1),c()}if(t&2){let e=n.$implicit,i=l(2);r(),m(" ",i.item(e).id," ")}}function Xe(t,n){if(t&1&&(a(0,"th",18),p(1),c()),t&2){let e=l().$implicit;r(),m(" ",e("dashboard.queues.queue")," ")}}function Ze(t,n){if(t&1){let e=y();a(0,"td",19),x("click",function(o){let s=_(e).$implicit;return l(2).toggleQueueJobId(s.id),g(o.stopPropagation())}),p(1),c()}if(t&2){let e=n.$implicit,i=l(2);r(),m(" ",i.item(e).queue," ")}}function et(t,n){if(t&1&&(a(0,"th",18),p(1),c()),t&2){let e=l().$implicit;r(),m(" ",e("dashboard.queues.priority")," ")}}function tt(t,n){if(t&1){let e=y();a(0,"td",19),x("click",function(o){let s=_(e).$implicit;return l(2).toggleQueueJobId(s.id),g(o.stopPropagation())}),p(1),T(2,"number"),c()}if(t&2){let e=n.$implicit,i=l(2);r(),m(" ",M(2,1,i.item(e).priority)," ")}}function it(t,n){if(t&1&&(a(0,"th",18),p(1),c()),t&2){let e=l().$implicit;r(),m(" ",e("general.status")," ")}}function nt(t,n){if(t&1){let e=y();a(0,"td",19),x("click",function(o){let s=_(e).$implicit;return l(2).toggleQueueJobId(s.id),g(o.stopPropagation())}),p(1),c()}if(t&2){let e=n.$implicit,i=l(2);r(),m(" ",i.item(e).status," ")}}function ot(t,n){if(t&1&&(a(0,"th",18),p(1),c()),t&2){let e=l().$implicit;r(),S(e("general.error"))}}function rt(t,n){if(t&1&&(p(0),T(1,"slice")),t&2){let e=l().$implicit,i=l(2);m(" ",ie(1,1,i.item(e).error,0,20)+"..."," ")}}function at(t,n){if(t&1){let e=y();a(0,"td",19),x("click",function(o){let s=_(e).$implicit;return l(2).toggleQueueJobId(s.id),g(o.stopPropagation())}),u(1,rt,2,5),c()}if(t&2){let e=n.$implicit;r(),E(e.error?1:-1)}}function lt(t,n){if(t&1&&(a(0,"th",20),p(1),c()),t&2){let e=l().$implicit;r(),m(" ",e("dashboard.queues.created_at")," ")}}function ct(t,n){if(t&1){let e=y();a(0,"td",19),x("click",function(o){let s=_(e).$implicit;return l(2).toggleQueueJobId(s.id),g(o.stopPropagation())}),p(1),T(2,"timeAgo"),c()}if(t&2){let e=n.$implicit,i=l(2);r(),m(" ",M(2,1,i.item(e).createdAt)," ")}}function st(t,n){if(t&1&&(a(0,"th",20),p(1),c()),t&2){let e=l().$implicit;r(),m(" ",e("dashboard.queues.ran_at")," ")}}function pt(t,n){t&1&&(p(0),T(1,"timeAgo")),t&2&&m(" ",M(1,1,n)," ")}function dt(t,n){if(t&1){let e=y();a(0,"td",19),x("click",function(o){let s=_(e).$implicit;return l(2).toggleQueueJobId(s.id),g(o.stopPropagation())}),u(1,pt,2,3),c()}if(t&2){let e,i=n.$implicit;r(),E((e=i.ranAt)?1:-1,e)}}function mt(t,n){if(t&1&&(a(0,"h5")(1,"span",23),p(2),c()(),a(3,"pre",24),p(4),c()),t&2){let e=n,i=l(2).$implicit;r(),d("matTooltip",i("torrents.copy_to_clipboard"))("cdkCopyToClipboard",e),r(),m("",i("general.error"),":"),r(2),S(e)}}function ut(t,n){if(t&1&&(a(0,"td",21)(1,"div",22)(2,"p")(3,"strong"),p(4,"ID:"),c(),p(5,"\xA0"),a(6,"span",23),p(7),c()(),a(8,"h5")(9,"span",23),p(10),c()(),a(11,"pre",24),p(12),c(),u(13,mt,5,4),c()()),t&2){let e,i=n.$implicit,o=l().$implicit,s=l();O("colspan",s.displayedColumns.length),r(),d("@detailExpand",s.expandedId.getValue()===i.id?"expanded":"collapsed"),r(5),d("matTooltip",o("torrents.copy_to_clipboard"))("cdkCopyToClipboard",s.item(i).id),r(),S(s.item(i).id),r(2),d("matTooltip",o("torrents.copy_to_clipboard"))("cdkCopyToClipboard",s.item(i).payload),r(),m("",o("dashboard.queues.payload"),":"),r(2),S(s.beautifyPayload(s.item(i).payload)),r(),E((e=s.item(i).error)?13:-1,e)}}function _t(t,n){t&1&&I(0,"tr",25)}function gt(t,n){if(t&1&&I(0,"tr",26),t&2){let e=n.$implicit,i=l(2);H("summary-row "+(e.id===i.expandedId.getValue()?"expanded":"collapsed"))}}function xt(t,n){if(t&1&&I(0,"tr",26),t&2){let e=n.$implicit,i=l(2);H("expanded-detail-row "+(e.id===i.expandedId.getValue()?"expanded":"collapsed"))}}function ft(t,n){if(t&1&&(h(0),a(1,"div",1),I(2,"mat-progress-bar",2),T(3,"async"),c(),a(4,"table",3),h(5,4),u(6,Ke,2,0,"th",5)(7,Ue,2,1,"td",6),v(),h(8,7),u(9,Xe,2,1,"th",5)(10,Ze,2,1,"td",6),v(),h(11,8),u(12,et,2,1,"th",5)(13,tt,3,3,"td",6),v(),h(14,9),u(15,it,2,1,"th",5)(16,nt,2,1,"td",6),v(),h(17,10),u(18,ot,2,1,"th",5)(19,at,2,1,"td",6),v(),h(20,11),u(21,lt,2,1,"th",12)(22,ct,3,3,"td",6),v(),h(23,13),u(24,st,2,1,"th",12)(25,dt,2,1,"td",6),v(),h(26,14),u(27,ut,14,10,"td",15),v(),u(28,_t,1,0,"tr",16)(29,gt,1,2,"tr",17)(30,xt,1,2,"tr",17),c(),v()),t&2){let e=l();r(2),d("mode",M(3,7,e.dataSource.loading$)?"indeterminate":"determinate")("value",0),r(2),d("dataSource",e.dataSource)("multiTemplateDataRows",!0),r(24),d("matHeaderRowDef",e.displayedColumns),r(),d("matRowDefColumns",e.displayedColumns),r(),d("matRowDefColumns",te(9,Ge))}}var Ae=(()=>{class t{constructor(){this.transloco=J(B),this.displayedColumns=bt,this.updated=new ee,this.expandedId=new w(null),this.items=Array()}ngOnInit(){this.dataSource.items$.subscribe(e=>{if(this.items=e,e.length){let i=this.expandedId.getValue();i&&!e.some(({id:o})=>o===i)&&this.expandedId.next(null)}})}isAllSelected(){return this.items.every(e=>this.selection.isSelected(e.id))}toggleAllRows(){if(this.isAllSelected()){this.selection.clear();return}this.selection.select(...this.items.map(e=>e.id))}toggleQueueJobId(e){this.expandedId.getValue()===e?this.expandedId.next(null):this.expandedId.next(e)}item(e){return e}beautifyPayload(e){try{return JSON.stringify(JSON.parse(e),null,2)}catch{return e}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=k({type:t,selectors:[["app-queue-jobs-table"]],inputs:{dataSource:"dataSource",selection:"selection",displayedColumns:"displayedColumns"},outputs:{updated:"updated"},standalone:!0,features:[V],decls:1,vars:0,consts:[[4,"transloco"],[1,"progress-bar-container"],[3,"mode","value"],["mat-table","",1,"table-results",3,"dataSource","multiTemplateDataRows"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",3,"click",4,"matCellDef"],["matColumnDef","queue"],["matColumnDef","priority"],["matColumnDef","status"],["matColumnDef","error"],["matColumnDef","createdAt"],["mat-header-cell","","style","text-align: center",4,"matHeaderCellDef"],["matColumnDef","ranAt"],["matColumnDef","expandedDetail"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"class",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",3,"click"],["mat-header-cell","",2,"text-align","center"],["mat-cell",""],[1,"item-detail"],[1,"copy",3,"matTooltip","cdkCopyToClipboard"],[1,"payload"],["mat-header-row",""],["mat-row",""]],template:function(i,o){i&1&&u(0,ft,31,10,"ng-container",0)},dependencies:[A,_e,Se,Ie,Pe,Oe,$e,Ee,Ve,Qe,ke,De,qe,j,F,D,ne,q,je],styles:[".item-detail[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:first-child{padding-top:20px}.item-detail[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:last-child{margin-bottom:20px}tr[_ngcontent-%COMP%]:not(.expanded-detail-row) td[_ngcontent-%COMP%]{cursor:pointer}tr.expanded-detail-row[_ngcontent-%COMP%]{height:0}tr.expanded-detail-row[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{margin:0;padding-top:8px}tr.expanded-detail-row[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;padding-top:8px;padding-bottom:4px}tr.expanded-detail-row[_ngcontent-%COMP%] span.copy[_ngcontent-%COMP%]{cursor:crosshair;text-decoration:underline;text-decoration-style:dotted}pre[_ngcontent-%COMP%]{opacity:0;max-height:200px;max-width:100px;overflow:scroll;background:#7773;padding:10px}.expanded-detail-row.expanded[_ngcontent-%COMP%] pre[_ngcontent-%COMP%]{opacity:1;max-width:1200px}"],data:{animation:[oe("detailExpand",[W("collapsed,void",N({height:"0px",minHeight:"0"})),W("expanded",N({height:"*"})),ae("expanded <=> collapsed",re("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}})}}return t})(),bt=["id","queue","priority","status","error","createdAt","ranAt"];var Ct={items:[],hasNextPage:!1,totalCount:0,aggregations:{queue:[],status:[]}},R=class{constructor(n,e,i){this.apollo=n,this.errorsService=e,this.currentRequest=new w(0),this.loadingSubject=new w(!1),this.loading$=this.loadingSubject.asObservable(),this.result=Ct,this.resultSubject=new w(this.result),this.result$=this.resultSubject.asObservable(),this.items$=this.resultSubject.pipe(P(o=>o.items)),i.subscribe(o=>{this.variables=o,this.loadResult(o)}),this.resultSubject.subscribe(o=>{this.result=o})}connect({}){return this.items$}disconnect(){this.resultSubject.complete()}refresh(){this.variables&&this.loadResult(this.variables)}loadResult(n){this.currentSubscription&&(this.currentSubscription.unsubscribe(),this.currentSubscription=void 0),this.loadingSubject.next(!0);let e=this.currentRequest.getValue()+1;this.currentRequest.next(e);let i=this.apollo.query({query:ue,variables:n,fetchPolicy:"no-cache"}).pipe(P(o=>o.data.queue.jobs)).pipe(U(o=>(this.errorsService.addError(`Error loading item results: ${o.message}`),K)));this.currentSubscription=i.subscribe(o=>{e===this.currentRequest.getValue()&&(this.loadingSubject.next(!1),this.resultSubject.next(o))})}};var L=class{constructor(n=ht){this.controlsSubject=new w(n),this.controls$=this.controlsSubject.asObservable(),this.variablesSubject=new w(Re(n)),this.variables$=this.variablesSubject.asObservable(),this.controls$.pipe(Z(100)).subscribe(e=>{let i=this.variablesSubject.getValue(),o=Re(e);JSON.stringify(i)!==JSON.stringify(o)&&this.variablesSubject.next(o)})}update(n){let e=this.controlsSubject.getValue(),i=n(e);JSON.stringify(e)!==JSON.stringify(i)&&this.controlsSubject.next(i)}activateFilter(n,e){this.update(i=>{let o=n.extractInput(i.facets);return b(f({},i),{page:1,facets:n.patchInput(i.facets,b(f({},o),{filter:Array.from(new Set([...o.filter??[],e])).sort()}))})})}deactivateFilter(n,e){this.update(i=>{let o=n.extractInput(i.facets),s=o.filter?.filter(C=>C!==e);return b(f({},i),{page:1,facets:n.patchInput(i.facets,b(f({},o),{filter:s?.length?s:void 0}))})})}selectOrderBy(n){let e={field:n,descending:Y.find(i=>i.field===n)?.descending??!1};this.update(i=>b(f({},i),{orderBy:e,page:1}))}toggleOrderByDirection(){this.update(n=>b(f({},n),{orderBy:b(f({},n.orderBy),{descending:!n.orderBy.descending}),page:1}))}handlePageEvent(n){this.update(e=>b(f({},e),{limit:n.pageSize,page:n.page}))}},Re=t=>({input:{limit:t.limit,page:t.page,totalCount:!0,orderBy:[t.orderBy,...t.orderBy.field!=="created_at"?[{field:"created_at",descending:t.orderBy.descending}]:[]],queues:t.queues,statuses:t.statuses,facets:{queue:{aggregate:!0,filter:t.facets.queue.filter},status:{aggregate:!0,filter:t.facets.status.filter}}}}),Y=[{field:"created_at",descending:!0},{field:"ran_at",descending:!0},{field:"priority",descending:!1}],ht={limit:20,page:1,orderBy:{field:"ran_at",descending:!0},facets:{queue:{},status:{}}},vt={key:"queue",extractInput:t=>t.queue,patchInput:(t,n)=>b(f({},t),{queue:n}),extractAggregations:t=>t.queue??[],resolveLabel:t=>t.label},yt={key:"status",extractInput:t=>t.status,patchInput:(t,n)=>b(f({},t),{status:n}),extractAggregations:t=>t.status??[],resolveLabel:(t,n)=>n.translate("dashboard.queues."+t.label)},Le=[vt,yt];var St=(t,n)=>n.key,Tt=(t,n)=>n.field,He=(t,n)=>n.value;function wt(t,n){if(t&1){let e=y();a(0,"mat-checkbox",20),x("change",function(o){let s=_(e).$implicit,C=l(2).$implicit,G=l(2);return g(o.checked?G.controller.activateFilter(C,s.value):G.controller.deactivateFilter(C,s.value))}),p(1),a(2,"small"),p(3),T(4,"number"),c()()}if(t&2){let e=n.$implicit,i=l(2).$implicit;d("checked",i.filter==null?null:i.filter.includes(e.value)),r(),m(" ",e.label," "),r(2),S(M(4,3,e.count))}}function Mt(t,n){if(t&1&&(a(0,"mat-card-content",17),$(1,wt,5,5,"mat-checkbox",19,He),c()),t&2){let e=l().$implicit;r(),Q(e.aggregations)}}function Jt(t,n){if(t&1){let e=y();a(0,"mat-checkbox",22),x("change",function(){let o=_(e).$implicit,s=l(2).$implicit,C=l(2);return g(C.controller.activateFilter(s,o.value))}),p(1),a(2,"small"),p(3),T(4,"number"),c()()}if(t&2){let e=n.$implicit;r(),m(" ",e.label," "),r(2),S(M(4,2,e.count))}}function It(t,n){if(t&1&&(a(0,"mat-card-content",18),$(1,Jt,5,4,"mat-checkbox",21,He),c()),t&2){let e=l().$implicit;r(),Q(e.aggregations)}}function Et(t,n){if(t&1&&(a(0,"mat-card")(1,"mat-card-header")(2,"mat-card-title"),p(3),c()(),u(4,Mt,3,0,"mat-card-content",17)(5,It,3,0,"mat-card-content",18),c()),t&2){let e=n.$implicit,i=l().$implicit;r(3),m(" ",i("facets."+e.key)," "),r(),E(e.filter!=null&&e.filter.length?4:5)}}function Pt(t,n){if(t&1&&(a(0,"mat-option",11),p(1),c()),t&2){let e=n.$implicit,i=l().$implicit;d("value",e.field),r(),m(" ",i("dashboard.queues."+e.field)," ")}}function $t(t,n){if(t&1){let e=y();h(0),a(1,"mat-drawer-container",2)(2,"mat-drawer",3,0),$(4,Et,6,2,"mat-card",null,St),T(6,"async"),c(),a(7,"mat-drawer-content")(8,"div",4)(9,"div",5)(10,"button",6),x("click",function(){_(e);let o=z(3);return g(o.toggle())}),a(11,"mat-icon",7),p(12),c()()(),a(13,"div",8)(14,"mat-form-field",9)(15,"mat-label"),p(16),c(),a(17,"mat-select",10),x("valueChange",function(o){_(e);let s=l();return g(s.controller.selectOrderBy(o))}),$(18,Pt,2,2,"mat-option",11,Tt),c()(),a(20,"button",12),x("click",function(){_(e);let o=l();return g(o.controller.toggleOrderByDirection())}),a(21,"mat-icon"),p(22),c()()(),a(23,"div",13)(24,"button",14),x("click",function(){_(e);let o=l();return g(o.dataSource.refresh())}),a(25,"mat-icon"),p(26,"sync"),c()()()(),I(27,"app-queue-jobs-table",15),a(28,"app-paginator",16),x("paging",function(o){_(e);let s=l();return g(s.controller.handlePageEvent(o))}),c()()(),v()}if(t&2){let e=n.$implicit,i=z(3),o=l();r(2),d("mode",o.breakpoints.sizeAtLeast("Medium")?"side":"over")("opened",o.breakpoints.sizeAtLeast("Medium")),O("role",o.breakpoints.sizeAtLeast("Medium")?"navigation":"dialog"),r(2),Q(M(6,18,o.facets$)),r(6),d("matTooltip",e("torrents.toggle_drawer")),r(2),S(i.opened?"arrow_circle_left":"arrow_circle_right"),r(4),S(e("torrents.order_by")),r(),d("value",o.controls.orderBy.field),r(),Q(o.orderByOptions),r(2),d("matTooltip",e("torrents.order_direction_toggle")),r(2),S(o.controls.orderBy.descending?"arrow_downward":"arrow_upward"),r(2),d("matTooltip",e("torrents.refresh")),r(3),d("dataSource",o.dataSource)("selection",o.selection),r(),d("page",o.controls.page)("pageSize",o.controls.limit)("pageLength",o.dataSource.result.items.length)("totalLength",o.dataSource.result.totalCount)("totalIsEstimate",!1)("showLastPage",!0)}}var hi=(()=>{class t{constructor(){this.apollo=J(ce),this.errorsService=J(me),this.breakpoints=J(Fe),this.transloco=J(B),this.controller=new L,this.dataSource=new R(this.apollo,this.errorsService,this.controller.variables$),this.selection=new le,this.orderByOptions=Y,this.facets$=this.controller.controls$.pipe(X(this.dataSource.result$),P(([e,i])=>Le.map(o=>b(f(f({},o),o.extractInput(e.facets)),{aggregations:o.extractAggregations(i.aggregations).map(s=>b(f({},s),{label:o.resolveLabel(s,this.transloco)}))})))),this.controller.controls$.subscribe(e=>{this.controls=e})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=k({type:t,selectors:[["app-queue-jobs"]],standalone:!0,features:[V],decls:1,vars:0,consts:[["drawer",""],[4,"transloco"],[1,"drawer-container"],[1,"drawer",3,"mode","opened"],[1,"query-form"],[1,"form-field-container","button-container","button-container-toggle-drawer"],["type","button","mat-icon-button","",1,"button-toggle-drawer",3,"click","matTooltip"],["fontSet","material-icons"],[1,"form-field-container","form-field-container-order-by"],["subscriptSizing","dynamic"],[3,"valueChange","value"],[3,"value"],["mat-icon-button","",3,"click","matTooltip"],[1,"form-field-container","button-container","button-container-refresh"],["mat-mini-fab","","color","primary",3,"click","matTooltip"],[3,"dataSource","selection"],[3,"paging","page","pageSize","pageLength","totalLength","totalIsEstimate","showLastPage"],[1,"filtered"],[1,"unfiltered"],[3,"checked"],[3,"change","checked"],["checked","true"],["checked","true",3,"change"]],template:function(i,o){i&1&&u(0,$t,29,20,"ng-container",1)},dependencies:[A,se,de,pe,fe,Ce,he,be,ve,xe,ge,ye,Te,Me,Je,we,j,F,D,q,Be,Ae],styles:[".drawer[_ngcontent-%COMP%]{width:220px}.query-form[_ngcontent-%COMP%]{padding-top:20px;padding-bottom:10px;position:relative;clear:both;display:flex;flex-wrap:wrap}.query-form[_ngcontent-%COMP%] .form-field-container[_ngcontent-%COMP%]{display:inline-flex;flex-direction:column;position:relative;margin-left:20px;padding-bottom:20px}.query-form[_ngcontent-%COMP%] .form-field-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{top:8px}.query-form[_ngcontent-%COMP%] .form-field-container.form-field-container-order-by[_ngcontent-%COMP%]{padding-right:40px}.query-form[_ngcontent-%COMP%] .form-field-container.form-field-container-order-by[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{position:absolute;right:0}.query-form[_ngcontent-%COMP%] .form-field-container.button-container-toggle-drawer[_ngcontent-%COMP%]{margin-left:5px}.query-form[_ngcontent-%COMP%] .button-container-toggle-direction[_ngcontent-%COMP%]{margin-left:4px}app-paginator[_ngcontent-%COMP%]{float:right;padding-top:14px;padding-bottom:20px}"]})}}return t})();export{hi as QueueJobsComponent}; +import{a as Be,b as je}from"./chunk-C7MPMHOQ.js";import"./chunk-JIO2QO4M.js";import{a as me}from"./chunk-33KK2FKQ.js";import{a as Fe}from"./chunk-TC5EWLZ6.js";import{Aa as we,Ba as Me,C as ue,Ca as Je,Da as Ie,Ea as Ee,Fa as Pe,Ga as $e,Ha as Qe,Ia as ke,Ja as Oe,K as _e,Ka as Ve,L as ge,La as De,M as xe,Ma as qe,P as fe,Q as be,R as Ce,U as he,Ua as A,a as B,b as F,ba as ve,h as le,i as ce,n as se,q as pe,qa as ye,r as de,va as Se,ya as j,za as Te}from"./chunk-HB55W55I.js";import{c as oe,d as re,g as N,h as W,i as ae}from"./chunk-6XXA7HXI.js";import"./chunk-ZBBMS7J5.js";import{$b as l,$c as D,B as P,Cb as u,Ea as _,Fa as g,Gb as O,Hb as d,Kb as H,Mb as E,N as U,Na as ee,O as X,Ob as $,Pb as Q,Q as Z,Qb as a,Rb as c,Sb as I,Tb as h,Ub as v,Wb as y,Zb as x,a as f,ad as q,b,bd as ne,jc as z,kb as r,kc as p,l as w,lc as S,mc as m,o as K,pc as V,qa as J,qc as te,ua as k,uc as T,vc as M,xc as ie}from"./chunk-FJILXII2.js";var Ge=()=>["expandedDetail"];function Ke(t,n){t&1&&(a(0,"th",18),p(1,"ID"),c())}function Ue(t,n){if(t&1){let e=y();a(0,"td",19),x("click",function(o){let s=_(e).$implicit;return l(2).toggleQueueJobId(s.id),g(o.stopPropagation())}),p(1),c()}if(t&2){let e=n.$implicit,i=l(2);r(),m(" ",i.item(e).id," ")}}function Xe(t,n){if(t&1&&(a(0,"th",18),p(1),c()),t&2){let e=l().$implicit;r(),m(" ",e("dashboard.queues.queue")," ")}}function Ze(t,n){if(t&1){let e=y();a(0,"td",19),x("click",function(o){let s=_(e).$implicit;return l(2).toggleQueueJobId(s.id),g(o.stopPropagation())}),p(1),c()}if(t&2){let e=n.$implicit,i=l(2);r(),m(" ",i.item(e).queue," ")}}function et(t,n){if(t&1&&(a(0,"th",18),p(1),c()),t&2){let e=l().$implicit;r(),m(" ",e("dashboard.queues.priority")," ")}}function tt(t,n){if(t&1){let e=y();a(0,"td",19),x("click",function(o){let s=_(e).$implicit;return l(2).toggleQueueJobId(s.id),g(o.stopPropagation())}),p(1),T(2,"number"),c()}if(t&2){let e=n.$implicit,i=l(2);r(),m(" ",M(2,1,i.item(e).priority)," ")}}function it(t,n){if(t&1&&(a(0,"th",18),p(1),c()),t&2){let e=l().$implicit;r(),m(" ",e("general.status")," ")}}function nt(t,n){if(t&1){let e=y();a(0,"td",19),x("click",function(o){let s=_(e).$implicit;return l(2).toggleQueueJobId(s.id),g(o.stopPropagation())}),p(1),c()}if(t&2){let e=n.$implicit,i=l(2);r(),m(" ",i.item(e).status," ")}}function ot(t,n){if(t&1&&(a(0,"th",18),p(1),c()),t&2){let e=l().$implicit;r(),S(e("general.error"))}}function rt(t,n){if(t&1&&(p(0),T(1,"slice")),t&2){let e=l().$implicit,i=l(2);m(" ",ie(1,1,i.item(e).error,0,20)+"..."," ")}}function at(t,n){if(t&1){let e=y();a(0,"td",19),x("click",function(o){let s=_(e).$implicit;return l(2).toggleQueueJobId(s.id),g(o.stopPropagation())}),u(1,rt,2,5),c()}if(t&2){let e=n.$implicit;r(),E(e.error?1:-1)}}function lt(t,n){if(t&1&&(a(0,"th",20),p(1),c()),t&2){let e=l().$implicit;r(),m(" ",e("dashboard.queues.created_at")," ")}}function ct(t,n){if(t&1){let e=y();a(0,"td",19),x("click",function(o){let s=_(e).$implicit;return l(2).toggleQueueJobId(s.id),g(o.stopPropagation())}),p(1),T(2,"timeAgo"),c()}if(t&2){let e=n.$implicit,i=l(2);r(),m(" ",M(2,1,i.item(e).createdAt)," ")}}function st(t,n){if(t&1&&(a(0,"th",20),p(1),c()),t&2){let e=l().$implicit;r(),m(" ",e("dashboard.queues.ran_at")," ")}}function pt(t,n){t&1&&(p(0),T(1,"timeAgo")),t&2&&m(" ",M(1,1,n)," ")}function dt(t,n){if(t&1){let e=y();a(0,"td",19),x("click",function(o){let s=_(e).$implicit;return l(2).toggleQueueJobId(s.id),g(o.stopPropagation())}),u(1,pt,2,3),c()}if(t&2){let e,i=n.$implicit;r(),E((e=i.ranAt)?1:-1,e)}}function mt(t,n){if(t&1&&(a(0,"h5")(1,"span",23),p(2),c()(),a(3,"pre",24),p(4),c()),t&2){let e=n,i=l(2).$implicit;r(),d("matTooltip",i("torrents.copy_to_clipboard"))("cdkCopyToClipboard",e),r(),m("",i("general.error"),":"),r(2),S(e)}}function ut(t,n){if(t&1&&(a(0,"td",21)(1,"div",22)(2,"p")(3,"strong"),p(4,"ID:"),c(),p(5,"\xA0"),a(6,"span",23),p(7),c()(),a(8,"h5")(9,"span",23),p(10),c()(),a(11,"pre",24),p(12),c(),u(13,mt,5,4),c()()),t&2){let e,i=n.$implicit,o=l().$implicit,s=l();O("colspan",s.displayedColumns.length),r(),d("@detailExpand",s.expandedId.getValue()===i.id?"expanded":"collapsed"),r(5),d("matTooltip",o("torrents.copy_to_clipboard"))("cdkCopyToClipboard",s.item(i).id),r(),S(s.item(i).id),r(2),d("matTooltip",o("torrents.copy_to_clipboard"))("cdkCopyToClipboard",s.item(i).payload),r(),m("",o("dashboard.queues.payload"),":"),r(2),S(s.beautifyPayload(s.item(i).payload)),r(),E((e=s.item(i).error)?13:-1,e)}}function _t(t,n){t&1&&I(0,"tr",25)}function gt(t,n){if(t&1&&I(0,"tr",26),t&2){let e=n.$implicit,i=l(2);H("summary-row "+(e.id===i.expandedId.getValue()?"expanded":"collapsed"))}}function xt(t,n){if(t&1&&I(0,"tr",26),t&2){let e=n.$implicit,i=l(2);H("expanded-detail-row "+(e.id===i.expandedId.getValue()?"expanded":"collapsed"))}}function ft(t,n){if(t&1&&(h(0),a(1,"div",1),I(2,"mat-progress-bar",2),T(3,"async"),c(),a(4,"table",3),h(5,4),u(6,Ke,2,0,"th",5)(7,Ue,2,1,"td",6),v(),h(8,7),u(9,Xe,2,1,"th",5)(10,Ze,2,1,"td",6),v(),h(11,8),u(12,et,2,1,"th",5)(13,tt,3,3,"td",6),v(),h(14,9),u(15,it,2,1,"th",5)(16,nt,2,1,"td",6),v(),h(17,10),u(18,ot,2,1,"th",5)(19,at,2,1,"td",6),v(),h(20,11),u(21,lt,2,1,"th",12)(22,ct,3,3,"td",6),v(),h(23,13),u(24,st,2,1,"th",12)(25,dt,2,1,"td",6),v(),h(26,14),u(27,ut,14,10,"td",15),v(),u(28,_t,1,0,"tr",16)(29,gt,1,2,"tr",17)(30,xt,1,2,"tr",17),c(),v()),t&2){let e=l();r(2),d("mode",M(3,7,e.dataSource.loading$)?"indeterminate":"determinate")("value",0),r(2),d("dataSource",e.dataSource)("multiTemplateDataRows",!0),r(24),d("matHeaderRowDef",e.displayedColumns),r(),d("matRowDefColumns",e.displayedColumns),r(),d("matRowDefColumns",te(9,Ge))}}var Ae=(()=>{class t{constructor(){this.transloco=J(B),this.displayedColumns=bt,this.updated=new ee,this.expandedId=new w(null),this.items=Array()}ngOnInit(){this.dataSource.items$.subscribe(e=>{if(this.items=e,e.length){let i=this.expandedId.getValue();i&&!e.some(({id:o})=>o===i)&&this.expandedId.next(null)}})}isAllSelected(){return this.items.every(e=>this.selection.isSelected(e.id))}toggleAllRows(){if(this.isAllSelected()){this.selection.clear();return}this.selection.select(...this.items.map(e=>e.id))}toggleQueueJobId(e){this.expandedId.getValue()===e?this.expandedId.next(null):this.expandedId.next(e)}item(e){return e}beautifyPayload(e){try{return JSON.stringify(JSON.parse(e),null,2)}catch{return e}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=k({type:t,selectors:[["app-queue-jobs-table"]],inputs:{dataSource:"dataSource",selection:"selection",displayedColumns:"displayedColumns"},outputs:{updated:"updated"},standalone:!0,features:[V],decls:1,vars:0,consts:[[4,"transloco"],[1,"progress-bar-container"],[3,"mode","value"],["mat-table","",1,"table-results",3,"dataSource","multiTemplateDataRows"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",3,"click",4,"matCellDef"],["matColumnDef","queue"],["matColumnDef","priority"],["matColumnDef","status"],["matColumnDef","error"],["matColumnDef","createdAt"],["mat-header-cell","","style","text-align: center",4,"matHeaderCellDef"],["matColumnDef","ranAt"],["matColumnDef","expandedDetail"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"class",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",3,"click"],["mat-header-cell","",2,"text-align","center"],["mat-cell",""],[1,"item-detail"],[1,"copy",3,"matTooltip","cdkCopyToClipboard"],[1,"payload"],["mat-header-row",""],["mat-row",""]],template:function(i,o){i&1&&u(0,ft,31,10,"ng-container",0)},dependencies:[A,_e,Se,Ie,Pe,Oe,$e,Ee,Ve,Qe,ke,De,qe,j,F,D,ne,q,je],styles:[".item-detail[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:first-child{padding-top:20px}.item-detail[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:last-child{margin-bottom:20px}tr[_ngcontent-%COMP%]:not(.expanded-detail-row) td[_ngcontent-%COMP%]{cursor:pointer}tr.expanded-detail-row[_ngcontent-%COMP%]{height:0}tr.expanded-detail-row[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{margin:0;padding-top:8px}tr.expanded-detail-row[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;padding-top:8px;padding-bottom:4px}tr.expanded-detail-row[_ngcontent-%COMP%] span.copy[_ngcontent-%COMP%]{cursor:crosshair;text-decoration:underline;text-decoration-style:dotted}pre[_ngcontent-%COMP%]{opacity:0;max-height:200px;max-width:100px;overflow:scroll;background:#7773;padding:10px}.expanded-detail-row.expanded[_ngcontent-%COMP%] pre[_ngcontent-%COMP%]{opacity:1;max-width:1200px}"],data:{animation:[oe("detailExpand",[W("collapsed,void",N({height:"0px",minHeight:"0"})),W("expanded",N({height:"*"})),ae("expanded <=> collapsed",re("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}})}}return t})(),bt=["id","queue","priority","status","error","createdAt","ranAt"];var Ct={items:[],hasNextPage:!1,totalCount:0,aggregations:{queue:[],status:[]}},R=class{constructor(n,e,i){this.apollo=n,this.errorsService=e,this.currentRequest=new w(0),this.loadingSubject=new w(!1),this.loading$=this.loadingSubject.asObservable(),this.result=Ct,this.resultSubject=new w(this.result),this.result$=this.resultSubject.asObservable(),this.items$=this.resultSubject.pipe(P(o=>o.items)),i.subscribe(o=>{this.variables=o,this.loadResult(o)}),this.resultSubject.subscribe(o=>{this.result=o})}connect({}){return this.items$}disconnect(){this.resultSubject.complete()}refresh(){this.variables&&this.loadResult(this.variables)}loadResult(n){this.currentSubscription&&(this.currentSubscription.unsubscribe(),this.currentSubscription=void 0),this.loadingSubject.next(!0);let e=this.currentRequest.getValue()+1;this.currentRequest.next(e);let i=this.apollo.query({query:ue,variables:n,fetchPolicy:"no-cache"}).pipe(P(o=>o.data.queue.jobs)).pipe(U(o=>(this.errorsService.addError(`Error loading item results: ${o.message}`),K)));this.currentSubscription=i.subscribe(o=>{e===this.currentRequest.getValue()&&(this.loadingSubject.next(!1),this.resultSubject.next(o))})}};var L=class{constructor(n=ht){this.controlsSubject=new w(n),this.controls$=this.controlsSubject.asObservable(),this.variablesSubject=new w(Re(n)),this.variables$=this.variablesSubject.asObservable(),this.controls$.pipe(Z(100)).subscribe(e=>{let i=this.variablesSubject.getValue(),o=Re(e);JSON.stringify(i)!==JSON.stringify(o)&&this.variablesSubject.next(o)})}update(n){let e=this.controlsSubject.getValue(),i=n(e);JSON.stringify(e)!==JSON.stringify(i)&&this.controlsSubject.next(i)}activateFilter(n,e){this.update(i=>{let o=n.extractInput(i.facets);return b(f({},i),{page:1,facets:n.patchInput(i.facets,b(f({},o),{filter:Array.from(new Set([...o.filter??[],e])).sort()}))})})}deactivateFilter(n,e){this.update(i=>{let o=n.extractInput(i.facets),s=o.filter?.filter(C=>C!==e);return b(f({},i),{page:1,facets:n.patchInput(i.facets,b(f({},o),{filter:s?.length?s:void 0}))})})}selectOrderBy(n){let e={field:n,descending:Y.find(i=>i.field===n)?.descending??!1};this.update(i=>b(f({},i),{orderBy:e,page:1}))}toggleOrderByDirection(){this.update(n=>b(f({},n),{orderBy:b(f({},n.orderBy),{descending:!n.orderBy.descending}),page:1}))}handlePageEvent(n){this.update(e=>b(f({},e),{limit:n.pageSize,page:n.page}))}},Re=t=>({input:{limit:t.limit,page:t.page,totalCount:!0,orderBy:[t.orderBy,...t.orderBy.field!=="created_at"?[{field:"created_at",descending:t.orderBy.descending}]:[]],queues:t.queues,statuses:t.statuses,facets:{queue:{aggregate:!0,filter:t.facets.queue.filter},status:{aggregate:!0,filter:t.facets.status.filter}}}}),Y=[{field:"created_at",descending:!0},{field:"ran_at",descending:!0},{field:"priority",descending:!1}],ht={limit:20,page:1,orderBy:{field:"ran_at",descending:!0},facets:{queue:{},status:{}}},vt={key:"queue",extractInput:t=>t.queue,patchInput:(t,n)=>b(f({},t),{queue:n}),extractAggregations:t=>t.queue??[],resolveLabel:t=>t.label},yt={key:"status",extractInput:t=>t.status,patchInput:(t,n)=>b(f({},t),{status:n}),extractAggregations:t=>t.status??[],resolveLabel:(t,n)=>n.translate("dashboard.queues."+t.label)},Le=[vt,yt];var St=(t,n)=>n.key,Tt=(t,n)=>n.field,He=(t,n)=>n.value;function wt(t,n){if(t&1){let e=y();a(0,"mat-checkbox",20),x("change",function(o){let s=_(e).$implicit,C=l(2).$implicit,G=l(2);return g(o.checked?G.controller.activateFilter(C,s.value):G.controller.deactivateFilter(C,s.value))}),p(1),a(2,"small"),p(3),T(4,"number"),c()()}if(t&2){let e=n.$implicit,i=l(2).$implicit;d("checked",i.filter==null?null:i.filter.includes(e.value)),r(),m(" ",e.label," "),r(2),S(M(4,3,e.count))}}function Mt(t,n){if(t&1&&(a(0,"mat-card-content",17),$(1,wt,5,5,"mat-checkbox",19,He),c()),t&2){let e=l().$implicit;r(),Q(e.aggregations)}}function Jt(t,n){if(t&1){let e=y();a(0,"mat-checkbox",22),x("change",function(){let o=_(e).$implicit,s=l(2).$implicit,C=l(2);return g(C.controller.activateFilter(s,o.value))}),p(1),a(2,"small"),p(3),T(4,"number"),c()()}if(t&2){let e=n.$implicit;r(),m(" ",e.label," "),r(2),S(M(4,2,e.count))}}function It(t,n){if(t&1&&(a(0,"mat-card-content",18),$(1,Jt,5,4,"mat-checkbox",21,He),c()),t&2){let e=l().$implicit;r(),Q(e.aggregations)}}function Et(t,n){if(t&1&&(a(0,"mat-card")(1,"mat-card-header")(2,"mat-card-title"),p(3),c()(),u(4,Mt,3,0,"mat-card-content",17)(5,It,3,0,"mat-card-content",18),c()),t&2){let e=n.$implicit,i=l().$implicit;r(3),m(" ",i("facets."+e.key)," "),r(),E(e.filter!=null&&e.filter.length?4:5)}}function Pt(t,n){if(t&1&&(a(0,"mat-option",11),p(1),c()),t&2){let e=n.$implicit,i=l().$implicit;d("value",e.field),r(),m(" ",i("dashboard.queues."+e.field)," ")}}function $t(t,n){if(t&1){let e=y();h(0),a(1,"mat-drawer-container",2)(2,"mat-drawer",3,0),$(4,Et,6,2,"mat-card",null,St),T(6,"async"),c(),a(7,"mat-drawer-content")(8,"div",4)(9,"div",5)(10,"button",6),x("click",function(){_(e);let o=z(3);return g(o.toggle())}),a(11,"mat-icon",7),p(12),c()()(),a(13,"div",8)(14,"mat-form-field",9)(15,"mat-label"),p(16),c(),a(17,"mat-select",10),x("valueChange",function(o){_(e);let s=l();return g(s.controller.selectOrderBy(o))}),$(18,Pt,2,2,"mat-option",11,Tt),c()(),a(20,"button",12),x("click",function(){_(e);let o=l();return g(o.controller.toggleOrderByDirection())}),a(21,"mat-icon"),p(22),c()()(),a(23,"div",13)(24,"button",14),x("click",function(){_(e);let o=l();return g(o.dataSource.refresh())}),a(25,"mat-icon"),p(26,"sync"),c()()()(),I(27,"app-queue-jobs-table",15),a(28,"app-paginator",16),x("paging",function(o){_(e);let s=l();return g(s.controller.handlePageEvent(o))}),c()()(),v()}if(t&2){let e=n.$implicit,i=z(3),o=l();r(2),d("mode",o.breakpoints.sizeAtLeast("Medium")?"side":"over")("opened",o.breakpoints.sizeAtLeast("Medium")),O("role",o.breakpoints.sizeAtLeast("Medium")?"navigation":"dialog"),r(2),Q(M(6,18,o.facets$)),r(6),d("matTooltip",e("torrents.toggle_drawer")),r(2),S(i.opened?"arrow_circle_left":"arrow_circle_right"),r(4),S(e("torrents.order_by")),r(),d("value",o.controls.orderBy.field),r(),Q(o.orderByOptions),r(2),d("matTooltip",e("torrents.order_direction_toggle")),r(2),S(o.controls.orderBy.descending?"arrow_downward":"arrow_upward"),r(2),d("matTooltip",e("torrents.refresh")),r(3),d("dataSource",o.dataSource)("selection",o.selection),r(),d("page",o.controls.page)("pageSize",o.controls.limit)("pageLength",o.dataSource.result.items.length)("totalLength",o.dataSource.result.totalCount)("totalIsEstimate",!1)("showLastPage",!0)}}var hi=(()=>{class t{constructor(){this.apollo=J(ce),this.errorsService=J(me),this.breakpoints=J(Fe),this.transloco=J(B),this.controller=new L,this.dataSource=new R(this.apollo,this.errorsService,this.controller.variables$),this.selection=new le,this.orderByOptions=Y,this.facets$=this.controller.controls$.pipe(X(this.dataSource.result$),P(([e,i])=>Le.map(o=>b(f(f({},o),o.extractInput(e.facets)),{aggregations:o.extractAggregations(i.aggregations).map(s=>b(f({},s),{label:o.resolveLabel(s,this.transloco)}))})))),this.controller.controls$.subscribe(e=>{this.controls=e})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=k({type:t,selectors:[["app-queue-jobs"]],standalone:!0,features:[V],decls:1,vars:0,consts:[["drawer",""],[4,"transloco"],[1,"drawer-container"],[1,"drawer",3,"mode","opened"],[1,"query-form"],[1,"form-field-container","button-container","button-container-toggle-drawer"],["type","button","mat-icon-button","",1,"button-toggle-drawer",3,"click","matTooltip"],["fontSet","material-icons"],[1,"form-field-container","form-field-container-order-by"],["subscriptSizing","dynamic"],[3,"valueChange","value"],[3,"value"],["mat-icon-button","",3,"click","matTooltip"],[1,"form-field-container","button-container","button-container-refresh"],["mat-mini-fab","","color","primary",3,"click","matTooltip"],[3,"dataSource","selection"],[3,"paging","page","pageSize","pageLength","totalLength","totalIsEstimate","showLastPage"],[1,"filtered"],[1,"unfiltered"],[3,"checked"],[3,"change","checked"],["checked","true"],["checked","true",3,"change"]],template:function(i,o){i&1&&u(0,$t,29,20,"ng-container",1)},dependencies:[A,se,de,pe,fe,Ce,he,be,ve,xe,ge,ye,Te,Me,Je,we,j,F,D,q,Be,Ae],styles:[".drawer[_ngcontent-%COMP%]{width:220px}.query-form[_ngcontent-%COMP%]{padding-top:20px;padding-bottom:10px;position:relative;clear:both;display:flex;flex-wrap:wrap}.query-form[_ngcontent-%COMP%] .form-field-container[_ngcontent-%COMP%]{display:inline-flex;flex-direction:column;position:relative;margin-left:20px;padding-bottom:20px}.query-form[_ngcontent-%COMP%] .form-field-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{top:8px}.query-form[_ngcontent-%COMP%] .form-field-container.form-field-container-order-by[_ngcontent-%COMP%]{padding-right:40px}.query-form[_ngcontent-%COMP%] .form-field-container.form-field-container-order-by[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{position:absolute;right:0}.query-form[_ngcontent-%COMP%] .form-field-container.button-container-toggle-drawer[_ngcontent-%COMP%]{margin-left:5px}.query-form[_ngcontent-%COMP%] .button-container-toggle-direction[_ngcontent-%COMP%]{margin-left:4px}app-paginator[_ngcontent-%COMP%]{float:right;padding-top:14px;padding-bottom:20px}"]})}}return t})();export{hi as QueueJobsComponent}; diff --git a/webui/dist/bitmagnet/browser/chunk-4NEHCUZ2.js b/webui/dist/bitmagnet/browser/chunk-HB55W55I.js similarity index 99% rename from webui/dist/bitmagnet/browser/chunk-4NEHCUZ2.js rename to webui/dist/bitmagnet/browser/chunk-HB55W55I.js index 857ae682..5907fad6 100644 --- a/webui/dist/bitmagnet/browser/chunk-4NEHCUZ2.js +++ b/webui/dist/bitmagnet/browser/chunk-HB55W55I.js @@ -1,4 +1,4 @@ -import{c as gt,d as Xe,e as $u,g as Oe,h as nt,i as Ze,j as Yu,k as Ku}from"./chunk-6XXA7HXI.js";import{a as hc,b as la,h as Wu,q as Gu}from"./chunk-FKMTSCBK.js";import{$b as fe,Aa as Su,B as ke,C as Zo,Ca as Tu,Cb as te,Cc as lc,Da as Pe,Db as Nu,Ea as ce,Eb as na,F as wu,Fa as le,Fb as tt,Fc as pe,G as zi,Ga as Wt,Gb as W,Gc as bn,H as mn,Ha as ea,Hb as ue,I as Nt,Ia as Ke,Ib as ft,Ic as O,J as Cu,Ja as It,Jb as P,Jc as $e,K as Fe,Ka as Ee,Kb as qe,Kc as bi,L as ye,La as ta,Lb as Lu,Lc as Yt,M as ic,Mb as ge,Mc as dc,N as Jo,Na as z,Nb as ac,Oa as B,Ob as sc,Oc as uc,Pa as ia,Pb as cc,Q as fi,Qa as E,Qb as w,Ra as Gt,Rb as I,Rc as oe,S as Ye,Sb as ie,T as nc,Ta as Mu,U as Ur,V as Di,Va as Au,Vb as pt,W as ku,Wa as we,Wb as Ge,Wc as aa,Xa as Ou,Xb as St,Yb as ju,Yc as sa,Zb as ee,Zc as ca,_ as Du,_b as Vu,a as N,aa as Eu,ac as se,b as Qe,ba as qr,bc as A,bd as yt,c as gu,ca as Yn,da as Me,dc as he,dd as qu,e as Te,ea as st,ec as re,f as bu,fa as $,fb as Kn,fc as S,ga as Iu,gb as Ru,gc as T,h as We,ha as gi,hc as Bu,ia as Wr,ic as zu,j as vu,ja as Lt,jc as $t,k as R,ka as Z,kb as V,kc as Tt,l as Vi,la as L,lb as u,lc as oi,m as Xo,mb as rc,mc as ra,n as _u,na as C,nb as Ae,o as Bi,oc as de,p as mt,pa as x,pb as fn,pc as Q,q as b,qa as F,r as Pt,rb as Gr,rc as Hu,s as ni,sb as Ue,sc as Qu,t as ri,u as at,ua as H,ub as oc,v as yu,va as j,vb as gn,w as ki,wa as D,wb as Fu,x as He,xb as ne,xc as oa,y as xu,ya as pn,yb as Pu,z as Qr,zb as ae,zc as Uu}from"./chunk-3DR3CJRN.js";function da(i){i||(Tu(da),i=F(ta));let n=new We(e=>i.onDestroy(e.next.bind(e)));return e=>e.pipe($(n))}function Xu(i){return i&&i.constructor&&typeof i.constructor.isBuffer=="function"&&i.constructor.isBuffer(i)}function Zu(i){return i}function mc(i,n){n=n||{};let e=n.delimiter||".",t=n.maxDepth,r=n.transformKey||Zu,o={};function a(s,c,l){l=l||1,Object.keys(s).forEach(function(d){let h=s[d],m=n.safe&&Array.isArray(h),p=Object.prototype.toString.call(h),f=Xu(h),g=p==="[object Object]"||p==="[object Array]",_=c?c+e+r(d):r(d);if(!m&&!f&&g&&Object.keys(h).length&&(!n.maxDepth||l0&&(m=s(h.shift()),p=s(h[0]))}f[m]=pc(i[d],n)}),o}var bc=class{translations;constructor(n){this.translations=n}getTranslation(n){return He(this.translations.get(n)||{})}},th=new C("TRANSLOCO_LOADER");function fc(i,n){return i&&(Object.prototype.hasOwnProperty.call(i,n)?i[n]:n.split(".").reduce((e,t)=>e?.[t],i))}function $b(i,n,e){i=N({},i);let t=n.split("."),r=t.length-1;return t.reduce((o,a,s)=>(s===r?o[a]=e:o[a]=Array.isArray(o[a])?o[a].slice():N({},o[a]),o&&o[a]),i),i}function ih(i){return i?Array.isArray(i)?i.length:Cc(i)?Object.keys(i).length:i?i.length:0:0}function Yb(i){return ih(i)===0}function Kb(i){return typeof i=="function"}function Zn(i){return typeof i=="string"}function Cc(i){return!!i&&typeof i=="object"&&!Array.isArray(i)}function nh(i){return i.replace(/(?:^\w|[A-Z]|\b\w)/g,(n,e)=>e==0?n.toLowerCase():n.toUpperCase()).replace(/\s+|_|-|\//g,"")}function vc(i){return i==null}function Ju(i){return vc(i)===!1}function rh(i){return i&&typeof i.scope=="string"}function Xb(i){return i&&Cc(i.loader)}function Zb(i){return pc(i)}function eh(i){return mc(i,{safe:!0})}var Jn=new C("TRANSLOCO_CONFIG",{providedIn:"root",factory:()=>Xn}),Xn={defaultLang:"en",reRenderOnLangChange:!1,prodMode:!1,failedRetries:2,fallbackLang:[],availableLangs:[],missingHandler:{logMissingKey:!0,useFallbackTranslation:!1,allowEmpty:!1},flatten:{aot:!1},interpolation:["{{","}}"],scopes:{keepCasing:!1}};function Jb(i={}){return Qe(N(N({},Xn),i),{missingHandler:N(N({},Xn.missingHandler),i.missingHandler),flatten:N(N({},Xn.flatten),i.flatten),scopes:N(N({},Xn.scopes),i.scopes)})}var oh=new C("TRANSLOCO_TRANSPILER"),ev=(()=>{class i{config=F(Jn,{optional:!0})??Xn;get interpolationMatcher(){return tv(this.config)}transpile({value:e,params:t={},translation:r,key:o}){if(Zn(e)){let a,s=e;for(;(a=this.interpolationMatcher.exec(s))!==null;){let[c,l]=a;s=s.replace(c,()=>{let d=l.trim(),h=fc(t,d);return Ju(h)?h:Ju(r[d])?this.transpile({params:t,translation:r,key:o,value:r[d]}):""})}return s}else t&&(Cc(e)?e=this.handleObject({value:e,params:t,translation:r,key:o}):Array.isArray(e)&&(e=this.handleArray({value:e,params:t,translation:r,key:o})));return e}handleObject({value:e,params:t={},translation:r,key:o}){let a=e;return Object.keys(t).forEach(s=>{let c=this.transpile({value:fc(a,s),params:fc(t,s),translation:r,key:o});a=$b(a,s,c)}),a}handleArray(r){var o=r,{value:e}=o,t=gu(o,["value"]);return e.map(a=>this.transpile(N({value:a},t)))}static \u0275fac=function(t){return new(t||i)};static \u0275prov=Z({token:i,factory:i.\u0275fac})}return i})();function tv(i){let[n,e]=i.interpolation;return new RegExp(`${n}([^${n}${e}]*?)${e}`,"g")}var ah=new C("TRANSLOCO_MISSING_HANDLER"),iv=(()=>{class i{handle(e,t){if(t.missingHandler.logMissingKey&&!t.prodMode){let r=`Missing translation for '${e}'`;console.warn(`%c ${r}`,"font-size: 12px; color: red")}return e}static \u0275fac=function(t){return new(t||i)};static \u0275prov=Z({token:i,factory:i.\u0275fac})}return i})(),sh=new C("TRANSLOCO_INTERCEPTOR"),nv=(()=>{class i{preSaveTranslation(e){return e}preSaveTranslationKey(e,t){return t}static \u0275fac=function(t){return new(t||i)};static \u0275prov=Z({token:i,factory:i.\u0275fac})}return i})(),ch=new C("TRANSLOCO_FALLBACK_STRATEGY"),rv=(()=>{class i{userConfig;constructor(e){this.userConfig=e}getNextLangs(){let e=this.userConfig.fallbackLang;if(!e)throw new Error("When using the default fallback, a fallback language must be provided in the config!");return Array.isArray(e)?e:[e]}static \u0275fac=function(t){return new(t||i)(x(Jn))};static \u0275prov=Z({token:i,factory:i.\u0275fac})}return i})();function $r(i){if(!i)return"";let n=i.split("/");return n.pop(),n.join("/")}function Hi(i){return i?i.split("/").pop():""}function _c(i,n,e="|"){if(Zn(i)){let t=i.split(e),r=t.pop();return r===n?[!0,t.toString()]:[!1,r]}return[!1,""]}function ov(i,n){let[e]=_c(n,"static");return e?!1:!!i.config.reRenderOnLangChange}function av(i){return i?n=>n:Ye(1)}function sv(i,n){return Object.keys(i).reduce((e,t)=>(e[`${n}/${t}`]=i[t],e),{})}function lh(i,n){return Xb(i)?sv(i.loader,n):void 0}function gc(i){return{scope:$r(i)||null,langName:Hi(i)}}function dh(i){let{path:n,inlineLoader:e,mainLoader:t,data:r}=i;if(e){let o=e[n];if(Kb(o)===!1)throw`You're using an inline loader but didn't provide a loader for ${n}`;return e[n]().then(a=>a.default?a.default:a)}return t.getTranslation(n,r)}function cv({mainLoader:i,path:n,data:e,fallbackPath:t,inlineLoader:r}){return(t?[n,t]:[n]).map(a=>{let s=dh({path:a,mainLoader:i,inlineLoader:r,data:e});return ki(s).pipe(ke(c=>({translation:c,lang:a})))})}var lv;var dv=(()=>{class i{loader;parser;missingHandler;interceptor;fallbackStrategy;langChanges$;translations=new Map;cache=new Map;firstFallbackLang;defaultLang="";availableLangs=[];isResolvedMissingOnce=!1;lang;failedLangs=new Set;events=new R;events$=this.events.asObservable();config;constructor(e,t,r,o,a,s){this.loader=e,this.parser=t,this.missingHandler=r,this.interceptor=o,this.fallbackStrategy=s,this.loader||(this.loader=new bc(this.translations)),lv=this,this.config=JSON.parse(JSON.stringify(a)),this.setAvailableLangs(this.config.availableLangs||[]),this.setFallbackLangForMissingTranslation(this.config),this.setDefaultLang(this.config.defaultLang),this.lang=new Vi(this.getDefaultLang()),this.langChanges$=this.lang.asObservable(),this.events$.pipe(da()).subscribe(c=>{c.type==="translationLoadSuccess"&&c.wasFailure&&this.setActiveLang(c.payload.langName)})}getDefaultLang(){return this.defaultLang}setDefaultLang(e){this.defaultLang=e}getActiveLang(){return this.lang.getValue()}setActiveLang(e){return this.parser.onLangChanged?.(e),this.lang.next(e),this.events.next({type:"langChanged",payload:gc(e)}),this}setAvailableLangs(e){this.availableLangs=e}getAvailableLangs(){return this.availableLangs}load(e,t={}){let r=this.cache.get(e);if(r)return r;let o,a=this._isLangScoped(e),s;a&&(s=$r(e));let c={path:e,mainLoader:this.loader,inlineLoader:t.inlineLoader,data:a?{scope:s}:void 0};if(this.useFallbackTranslation(e)){let d=a?`${s}/${this.firstFallbackLang}`:this.firstFallbackLang,h=cv(Qe(N({},c),{fallbackPath:d}));o=mn(h)}else{let d=dh(c);o=ki(d)}let l=o.pipe(Du(this.config.failedRetries),gi(d=>{if(Array.isArray(d)){d.forEach(h=>{this.handleSuccess(h.lang,h.translation),h.lang!==e&&this.cache.set(h.lang,He({}))});return}this.handleSuccess(e,d)}),Jo(d=>(this.config.prodMode||console.error(`Error while trying to load "${e}"`,d),this.handleFailure(e,t))),qr(1));return this.cache.set(e,l),l}translate(e,t={},r=this.getActiveLang()){if(!e)return e;let{scope:o,resolveLang:a}=this.resolveLangAndScope(r);if(Array.isArray(e))return e.map(l=>this.translate(o?`${o}.${l}`:l,t,a));e=o?`${o}.${e}`:e;let s=this.getTranslation(a),c=s[e];return c?this.parser.transpile({value:c,params:t,translation:s,key:e}):this._handleMissingKey(e,c,t)}selectTranslate(e,t,r,o=!1){let a,s=(l,d)=>this.load(l,d).pipe(ke(()=>o?this.translateObject(e,t,l):this.translate(e,t,l)));if(vc(r))return this.langChanges$.pipe(st(l=>s(l)));if(r=Array.isArray(r)?r[0]:r,rh(r)){let l=r;r=l.scope,a=lh(l,l.scope)}if(r=r,this.isLang(r)||this.isScopeWithLang(r))return s(r);let c=r;return this.langChanges$.pipe(st(l=>s(`${c}/${l}`,{inlineLoader:a})))}isScopeWithLang(e){return this.isLang(Hi(e))}translateObject(e,t={},r=this.getActiveLang()){if(Zn(e)||Array.isArray(e)){let{resolveLang:a,scope:s}=this.resolveLangAndScope(r);if(Array.isArray(e))return e.map(d=>this.translateObject(s?`${s}.${d}`:d,t,a));let c=this.getTranslation(a);e=s?`${s}.${e}`:e;let l=Zb(this.getObjectByKey(c,e));return Yb(l)?this.translate(e,t,r):this.parser.transpile({value:l,params:t,translation:c,key:e})}let o=[];for(let[a,s]of this.getEntries(e))o.push(this.translateObject(a,s,r));return o}selectTranslateObject(e,t,r){if(Zn(e)||Array.isArray(e))return this.selectTranslate(e,t,r,!0);let[[o,a],...s]=this.getEntries(e);return this.selectTranslateObject(o,a,r).pipe(ke(c=>{let l=[c];for(let[d,h]of s)l.push(this.translateObject(d,h,r));return l}))}getTranslation(e){if(e){if(this.isLang(e))return this.translations.get(e)||{};{let{scope:t,resolveLang:r}=this.resolveLangAndScope(e),o=this.translations.get(r)||{};return this.getObjectByKey(o,t)}}return this.translations}selectTranslation(e){let t=this.langChanges$;if(e){let r=Hi(e)!==e;this.isLang(e)||r?t=He(e):t=this.langChanges$.pipe(ke(o=>`${e}/${o}`))}return t.pipe(st(r=>this.load(r).pipe(ke(()=>this.getTranslation(r)))))}setTranslation(e,t=this.getActiveLang(),r={}){let a=N(N({},{merge:!0,emitChange:!0}),r),s=$r(t),c=e;if(s){let p=this.getMappedScope(s);c=eh({[p]:e})}let l=s?Hi(t):t,d=N(N({},a.merge&&this.getTranslation(l)),c),h=this.config.flatten.aot?d:eh(d),m=this.interceptor.preSaveTranslation(h,l);this.translations.set(l,m),a.emitChange&&this.setActiveLang(this.getActiveLang())}setTranslationKey(e,t,r={}){let o=r.lang||this.getActiveLang(),a=this.interceptor.preSaveTranslationKey(e,t,o),s={[e]:a};this.setTranslation(s,o,Qe(N({},r),{merge:!0}))}setFallbackLangForMissingTranslation({fallbackLang:e}){let t=Array.isArray(e)?e[0]:e;e&&this.useFallbackTranslation(t)&&(this.firstFallbackLang=t)}_handleMissingKey(e,t,r){if(this.config.missingHandler.allowEmpty&&t==="")return"";if(!this.isResolvedMissingOnce&&this.useFallbackTranslation()){this.isResolvedMissingOnce=!0;let o=this.translate(e,r,this.firstFallbackLang);return this.isResolvedMissingOnce=!1,o}return this.missingHandler.handle(e,this.getMissingHandlerData(),r)}_isLangScoped(e){return this.getAvailableLangsIds().indexOf(e)===-1}isLang(e){return this.getAvailableLangsIds().indexOf(e)!==-1}_loadDependencies(e,t){let r=Hi(e);return this._isLangScoped(e)&&!this.isLoadedTranslation(r)?Zo([this.load(r),this.load(e,{inlineLoader:t})]):this.load(e,{inlineLoader:t})}_completeScopeWithLang(e){return this._isLangScoped(e)&&!this.isLang(Hi(e))?`${e}/${this.getActiveLang()}`:e}_setScopeAlias(e,t){this.config.scopeMapping||(this.config.scopeMapping={}),this.config.scopeMapping[e]=t}ngOnDestroy(){this.cache.clear()}isLoadedTranslation(e){return ih(this.getTranslation(e))}getAvailableLangsIds(){let e=this.getAvailableLangs()[0];return Zn(e)?this.getAvailableLangs():this.getAvailableLangs().map(t=>t.id)}getMissingHandlerData(){return Qe(N({},this.config),{activeLang:this.getActiveLang(),availableLangs:this.availableLangs,defaultLang:this.defaultLang})}useFallbackTranslation(e){return this.config.missingHandler.useFallbackTranslation&&e!==this.firstFallbackLang}handleSuccess(e,t){this.setTranslation(t,e,{emitChange:!1}),this.events.next({wasFailure:!!this.failedLangs.size,type:"translationLoadSuccess",payload:gc(e)}),this.failedLangs.forEach(r=>this.cache.delete(r)),this.failedLangs.clear()}handleFailure(e,t){vc(t.failedCounter)&&(t.failedCounter=0,t.fallbackLangs||(t.fallbackLangs=this.fallbackStrategy.getNextLangs(e)));let r=e.split("/"),a=t.fallbackLangs[t.failedCounter];if(this.failedLangs.add(e),this.cache.has(a))return this.handleSuccess(a,this.getTranslation(a)),Bi;let s=a===r[r.length-1];if(!a||s){let l="Unable to load translation and all the fallback languages";throw r.length>1&&(l+=", did you misspelled the scope name?"),new Error(l)}let c=a;return r.length>1&&(r[r.length-1]=a,c=r.join("/")),t.failedCounter++,this.events.next({type:"translationLoadFailure",payload:gc(e)}),this.load(c,t)}getMappedScope(e){let{scopeMapping:t={},scopes:r={keepCasing:!1}}=this.config;return t[e]||(r.keepCasing?e:nh(e))}resolveLangAndScope(e){let t=e,r;if(this._isLangScoped(e)){let o=Hi(e),a=this.isLang(o);t=a?o:this.getActiveLang(),r=this.getMappedScope(a?$r(e):e)}return{scope:r,resolveLang:t}}getObjectByKey(e,t){let r={},o=`${t}.`;for(let a in e)a.startsWith(o)&&(r[a.replace(o,"")]=e[a]);return r}getEntries(e){return e instanceof Map?e.entries():Object.entries(e)}static \u0275fac=function(t){return new(t||i)(x(th,8),x(oh),x(ah),x(sh),x(Jn),x(ch))};static \u0275prov=Z({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),uv=(()=>{class i{html;static \u0275fac=function(t){return new(t||i)};static \u0275cmp=H({type:i,selectors:[["ng-component"]],inputs:{html:"html"},standalone:!0,features:[Q],decls:1,vars:1,consts:[[1,"transloco-loader-template",3,"innerHTML"]],template:function(t,r){t&1&&ie(0,"div",0),t&2&&ue("innerHTML",r.html,Ru)},encapsulation:2})}return i})(),yc=class{view;vcr;constructor(n,e){this.view=n,this.vcr=e}attachView(){if(this.view instanceof Ae)this.vcr.createEmbeddedView(this.view);else if(Zn(this.view)){let n=this.vcr.createComponent(uv);n.instance.html=this.view,n.hostView.detectChanges()}else this.vcr.createComponent(this.view)}detachView(){this.vcr.clear()}},hv=new C("TRANSLOCO_LANG"),mv=new C("TRANSLOCO_LOADING_TEMPLATE"),pv=new C("TRANSLOCO_SCOPE"),xc=class{initialized=!1;resolve({inline:n,provider:e,active:t}){let r=t;if(this.initialized)return r=t,r;if(e){let[,o]=_c(e,"static");r=o}if(n){let[,o]=_c(n,"static");r=o}return this.initialized=!0,r}resolveLangBasedOnScope(n){return $r(n)?Hi(n):n}resolveLangPath(n,e){return e?`${e}/${n}`:n}},wc=class{service;constructor(n){this.service=n}resolve(n){let{inline:e,provider:t}=n;if(e)return e;if(t){if(rh(t)){let{scope:r,alias:o=this.service.config.scopes.keepCasing?r:nh(r)}=t;return this.service._setScopeAlias(r,o),r}return t}}},UE=(()=>{class i{destroyRef=F(ta);service=F(dv);tpl=F(Ae,{optional:!0});providerLang=F(hv,{optional:!0});providerScope=F(pv,{optional:!0});providedLoadingTpl=F(mv,{optional:!0});cdr=F(pe);host=F(E);vcr=F(Ue);renderer=F(Gr);view;memo=new Map;key;params={};inlineScope;inlineRead;prefix;inlineLang;inlineTpl;currentLang;loaderTplHandler;initialized=!1;path;langResolver=new xc;scopeResolver=new wc(this.service);strategy=this.tpl===null?"attribute":"structural";static ngTemplateContextGuard(e,t){return!0}ngOnInit(){let e=ov(this.service,this.providerLang||this.inlineLang);if(this.service.langChanges$.pipe(st(t=>{let r=this.langResolver.resolve({inline:this.inlineLang,provider:this.providerLang,active:t});return Array.isArray(this.providerScope)?mn(this.providerScope.map(o=>this.resolveScope(r,o))):this.resolveScope(r,this.providerScope)}),av(e),da(this.destroyRef)).subscribe(()=>{this.currentLang=this.langResolver.resolveLangBasedOnScope(this.path),this.strategy==="attribute"?this.attributeStrategy():this.structuralStrategy(this.currentLang,this.prefix||this.inlineRead),this.cdr.markForCheck(),this.initialized=!0}),!this.initialized){let t=this.resolveLoadingContent();t&&(this.loaderTplHandler=new yc(t,this.vcr),this.loaderTplHandler.attachView())}}ngOnChanges(e){this.strategy==="attribute"&&Object.keys(e).some(r=>!e[r].firstChange)&&this.attributeStrategy()}attributeStrategy(){this.detachLoader(),this.renderer.setProperty(this.host.nativeElement,"innerText",this.service.translate(this.key,this.params,this.currentLang))}structuralStrategy(e,t){this.memo.clear();let r=this.getTranslateFn(e,t);this.view?(this.view.context.$implicit=r,this.view.context.currentLang=this.currentLang):(this.detachLoader(),this.view=this.vcr.createEmbeddedView(this.tpl,{$implicit:r,currentLang:this.currentLang}))}getTranslateFn(e,t){return(r,o)=>{let a=t?`${t}.${r}`:r,s=o?`${a}${JSON.stringify(o)}`:a;return this.memo.has(s)||this.memo.set(s,this.service.translate(a,o,e)),this.memo.get(s)}}resolveLoadingContent(){return this.inlineTpl||this.providedLoadingTpl}ngOnDestroy(){this.memo.clear()}detachLoader(){this.loaderTplHandler?.detachView()}resolveScope(e,t){let r=this.scopeResolver.resolve({inline:this.inlineScope,provider:t});this.path=this.langResolver.resolveLangPath(e,r);let o=lh(t,r);return this.service._loadDependencies(this.path,o)}static \u0275fac=function(t){return new(t||i)};static \u0275dir=D({type:i,selectors:[["","transloco",""]],inputs:{key:[0,"transloco","key"],params:[0,"translocoParams","params"],inlineScope:[0,"translocoScope","inlineScope"],inlineRead:[0,"translocoRead","inlineRead"],prefix:[0,"translocoPrefix","prefix"],inlineLang:[0,"translocoLang","inlineLang"],inlineTpl:[0,"translocoLoadingTpl","inlineTpl"]},standalone:!0,features:[Pe]})}return i})();var uh=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=j({type:i});static \u0275inj=L({})}return i})();function qE(i){let n=[bv(ev),_v(iv),yv(nv),vv(rv)];return i.config&&n.push(fv(i.config)),i.loader&&n.push(gv(i.loader)),n}function fv(i){return pn([{provide:Jn,useValue:Jb(i)}])}function gv(i){return pn([{provide:th,useClass:i}])}function bv(i){return pn([{provide:oh,useClass:i,deps:[Jn]}])}function vv(i){return pn([{provide:ch,useClass:i,deps:[Jn]}])}function _v(i){return pn([{provide:ah,useClass:i}])}function yv(i){return pn([{provide:sh,useClass:i}])}var WE=new C("TRANSLOCO_TEST_LANGS - Available testing languages"),GE=new C("TRANSLOCO_TEST_OPTIONS - Testing options");var bh=(()=>{class i{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,t){this._renderer.setProperty(this._elementRef.nativeElement,e,t)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static{this.\u0275fac=function(t){return new(t||i)(u(Gr),u(E))}}static{this.\u0275dir=D({type:i})}}return i})(),wv=(()=>{class i extends bh{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ke(i)))(r||i)}})()}static{this.\u0275dir=D({type:i,features:[ne]})}}return i})(),vn=new C("");var Cv={provide:vn,useExisting:Lt(()=>vh),multi:!0};function kv(){let i=uc()?uc().getUserAgent():"";return/android (\d+)/.test(i.toLowerCase())}var Dv=new C(""),vh=(()=>{class i extends bh{constructor(e,t,r){super(e,t),this._compositionMode=r,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!kv())}writeValue(e){let t=e??"";this.setProperty("value",t)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static{this.\u0275fac=function(t){return new(t||i)(u(Gr),u(E),u(Dv,8))}}static{this.\u0275dir=D({type:i,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,r){t&1&&ee("input",function(a){return r._handleInput(a.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(a){return r._compositionEnd(a.target.value)})},features:[de([Cv]),ne]})}}return i})();function Qi(i){return i==null||(typeof i=="string"||Array.isArray(i))&&i.length===0}function _h(i){return i!=null&&typeof i.length=="number"}var eo=new C(""),Sc=new C(""),Ev=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Ui=class{static min(n){return Iv(n)}static max(n){return Sv(n)}static required(n){return Tv(n)}static requiredTrue(n){return Mv(n)}static email(n){return Av(n)}static minLength(n){return Ov(n)}static maxLength(n){return Rv(n)}static pattern(n){return Fv(n)}static nullValidator(n){return yh(n)}static compose(n){return Eh(n)}static composeAsync(n){return Ih(n)}};function Iv(i){return n=>{if(Qi(n.value)||Qi(i))return null;let e=parseFloat(n.value);return!isNaN(e)&&e{if(Qi(n.value)||Qi(i))return null;let e=parseFloat(n.value);return!isNaN(e)&&e>i?{max:{max:i,actual:n.value}}:null}}function Tv(i){return Qi(i.value)?{required:!0}:null}function Mv(i){return i.value===!0?null:{required:!0}}function Av(i){return Qi(i.value)||Ev.test(i.value)?null:{email:!0}}function Ov(i){return n=>Qi(n.value)||!_h(n.value)?null:n.value.length_h(n.value)&&n.value.length>i?{maxlength:{requiredLength:i,actualLength:n.value.length}}:null}function Fv(i){if(!i)return yh;let n,e;return typeof i=="string"?(e="",i.charAt(0)!=="^"&&(e+="^"),e+=i,i.charAt(i.length-1)!=="$"&&(e+="$"),n=new RegExp(e)):(e=i.toString(),n=i),t=>{if(Qi(t.value))return null;let r=t.value;return n.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}function yh(i){return null}function xh(i){return i!=null}function wh(i){return Uu(i)?ki(i):i}function Ch(i){let n={};return i.forEach(e=>{n=e!=null?N(N({},n),e):n}),Object.keys(n).length===0?null:n}function kh(i,n){return n.map(e=>e(i))}function Pv(i){return!i.validate}function Dh(i){return i.map(n=>Pv(n)?n:e=>n.validate(e))}function Eh(i){if(!i)return null;let n=i.filter(xh);return n.length==0?null:function(e){return Ch(kh(e,n))}}function Tc(i){return i!=null?Eh(Dh(i)):null}function Ih(i){if(!i)return null;let n=i.filter(xh);return n.length==0?null:function(e){let t=kh(e,n).map(wh);return mn(t).pipe(ke(Ch))}}function Mc(i){return i!=null?Ih(Dh(i)):null}function hh(i,n){return i===null?[n]:Array.isArray(i)?[...i,n]:[i,n]}function Sh(i){return i._rawValidators}function Th(i){return i._rawAsyncValidators}function kc(i){return i?Array.isArray(i)?i:[i]:[]}function ha(i,n){return Array.isArray(i)?i.includes(n):i===n}function mh(i,n){let e=kc(n);return kc(i).forEach(r=>{ha(e,r)||e.push(r)}),e}function ph(i,n){return kc(n).filter(e=>!ha(i,e))}var ma=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=Tc(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=Mc(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,e){return this.control?this.control.hasError(n,e):!1}getError(n,e){return this.control?this.control.getError(n,e):null}},ir=class extends ma{get formDirective(){return null}get path(){return null}},ai=class extends ma{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},Dc=class{constructor(n){this._cd=n}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},Nv={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},uI=Qe(N({},Nv),{"[class.ng-submitted]":"isSubmitted"}),hI=(()=>{class i extends Dc{constructor(e){super(e)}static{this.\u0275fac=function(t){return new(t||i)(u(ai,2))}}static{this.\u0275dir=D({type:i,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,r){t&2&&P("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[ne]})}}return i})();var Yr="VALID",ua="INVALID",er="PENDING",Kr="DISABLED",qi=class{},pa=class extends qi{constructor(n,e){super(),this.value=n,this.source=e}},Zr=class extends qi{constructor(n,e){super(),this.pristine=n,this.source=e}},Jr=class extends qi{constructor(n,e){super(),this.touched=n,this.source=e}},tr=class extends qi{constructor(n,e){super(),this.status=n,this.source=e}},Ec=class extends qi{constructor(n){super(),this.source=n}},Ic=class extends qi{constructor(n){super(),this.source=n}};function Mh(i){return(xa(i)?i.validators:i)||null}function Lv(i){return Array.isArray(i)?Tc(i):i||null}function Ah(i,n){return(xa(n)?n.asyncValidators:i)||null}function jv(i){return Array.isArray(i)?Mc(i):i||null}function xa(i){return i!=null&&!Array.isArray(i)&&typeof i=="object"}function Vv(i,n,e){let t=i.controls;if(!(n?Object.keys(t):t).length)throw new Wr(1e3,"");if(!t[e])throw new Wr(1001,"")}function Bv(i,n,e){i._forEachChild((t,r)=>{if(e[r]===void 0)throw new Wr(1002,"")})}var fa=class{constructor(n,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=bi(()=>this.statusReactive()),this.statusReactive=gn(void 0),this._pristine=bi(()=>this.pristineReactive()),this.pristineReactive=gn(!0),this._touched=bi(()=>this.touchedReactive()),this.touchedReactive=gn(!1),this._events=new R,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get status(){return Yt(this.statusReactive)}set status(n){Yt(()=>this.statusReactive.set(n))}get valid(){return this.status===Yr}get invalid(){return this.status===ua}get pending(){return this.status==er}get disabled(){return this.status===Kr}get enabled(){return this.status!==Kr}get pristine(){return Yt(this.pristineReactive)}set pristine(n){Yt(()=>this.pristineReactive.set(n))}get dirty(){return!this.pristine}get touched(){return Yt(this.touchedReactive)}set touched(n){Yt(()=>this.touchedReactive.set(n))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(mh(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(mh(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(ph(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(ph(n,this._rawAsyncValidators))}hasValidator(n){return ha(this._rawValidators,n)}hasAsyncValidator(n){return ha(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){let e=this.touched===!1;this.touched=!0;let t=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsTouched(Qe(N({},n),{sourceControl:t})),e&&n.emitEvent!==!1&&this._events.next(new Jr(!0,t))}markAllAsTouched(n={}){this.markAsTouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(n))}markAsUntouched(n={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let t=n.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:t})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,t),e&&n.emitEvent!==!1&&this._events.next(new Jr(!1,t))}markAsDirty(n={}){let e=this.pristine===!0;this.pristine=!1;let t=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsDirty(Qe(N({},n),{sourceControl:t})),e&&n.emitEvent!==!1&&this._events.next(new Zr(!1,t))}markAsPristine(n={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let t=n.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:n.emitEvent})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n,t),e&&n.emitEvent!==!1&&this._events.next(new Zr(!0,t))}markAsPending(n={}){this.status=er;let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new tr(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.markAsPending(Qe(N({},n),{sourceControl:e}))}disable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=Kr,this.errors=null,this._forEachChild(r=>{r.disable(Qe(N({},n),{onlySelf:!0}))}),this._updateValue();let t=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new pa(this.value,t)),this._events.next(new tr(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Qe(N({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=Yr,this._forEachChild(t=>{t.enable(Qe(N({},n),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors(Qe(N({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(n,e){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine({},e),this._parent._updateTouched({},e))}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let t=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Yr||this.status===er)&&this._runAsyncValidator(t,n.emitEvent)}let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new pa(this.value,e)),this._events.next(new tr(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(Qe(N({},n),{sourceControl:e}))}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Kr:Yr}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n,e){if(this.asyncValidator){this.status=er,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1};let t=wh(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:e,shouldHaveEmitted:n})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let n=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,n}return!1}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(n){let e=n;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((t,r)=>t&&t._find(r),this)}getError(n,e){let t=e?this.get(e):this;return t&&t.errors?t.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n,e,t){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),(n||t)&&this._events.next(new tr(this.status,e)),this._parent&&this._parent._updateControlsErrors(n,e,t)}_initObservables(){this.valueChanges=new z,this.statusChanges=new z}_calculateStatus(){return this._allControlsDisabled()?Kr:this.errors?ua:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(er)?er:this._anyControlsHaveStatus(ua)?ua:Yr}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n,e){let t=!this._anyControlsDirty(),r=this.pristine!==t;this.pristine=t,this._parent&&!n.onlySelf&&this._parent._updatePristine(n,e),r&&this._events.next(new Zr(this.pristine,e))}_updateTouched(n={},e){this.touched=this._anyControlsTouched(),this._events.next(new Jr(this.touched,e)),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,e)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){xa(n)&&n.updateOn!=null&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){let e=this._parent&&this._parent.dirty;return!n&&!!e&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=Lv(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=jv(this._rawAsyncValidators)}},ga=class extends fa{constructor(n,e,t){super(Mh(e),Ah(t,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,t={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,t={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){Bv(this,!0,n),Object.keys(n).forEach(t=>{Vv(this,!0,t),this.controls[t].setValue(n[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){n!=null&&(Object.keys(n).forEach(t=>{let r=this.controls[t];r&&r.patchValue(n[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((t,r)=>{t.reset(n?n[r]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(n,e,t)=>(n[t]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,t)=>t._syncPendingControls()?!0:e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{let t=this.controls[e];t&&n(t,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(let[e,t]of Object.entries(this.controls))if(this.contains(e)&&n(t))return!0;return!1}_reduceValue(){let n={};return this._reduceChildren(n,(e,t,r)=>((t.enabled||this.disabled)&&(e[r]=t.value),e))}_reduceChildren(n,e){let t=n;return this._forEachChild((r,o)=>{t=e(t,r,o)}),t}_allControlsDisabled(){for(let n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}};var wa=new C("CallSetDisabledState",{providedIn:"root",factory:()=>Ac}),Ac="always";function ba(i,n,e=Ac){Oc(i,n),n.valueAccessor.writeValue(i.value),(i.disabled||e==="always")&&n.valueAccessor.setDisabledState?.(i.disabled),Hv(i,n),Uv(i,n),Qv(i,n),zv(i,n)}function va(i,n,e=!0){let t=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(t),n.valueAccessor.registerOnTouched(t)),ya(i,n),i&&(n._invokeOnDestroyCallbacks(),i._registerOnCollectionChange(()=>{}))}function _a(i,n){i.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function zv(i,n){if(n.valueAccessor.setDisabledState){let e=t=>{n.valueAccessor.setDisabledState(t)};i.registerOnDisabledChange(e),n._registerOnDestroy(()=>{i._unregisterOnDisabledChange(e)})}}function Oc(i,n){let e=Sh(i);n.validator!==null?i.setValidators(hh(e,n.validator)):typeof e=="function"&&i.setValidators([e]);let t=Th(i);n.asyncValidator!==null?i.setAsyncValidators(hh(t,n.asyncValidator)):typeof t=="function"&&i.setAsyncValidators([t]);let r=()=>i.updateValueAndValidity();_a(n._rawValidators,r),_a(n._rawAsyncValidators,r)}function ya(i,n){let e=!1;if(i!==null){if(n.validator!==null){let r=Sh(i);if(Array.isArray(r)&&r.length>0){let o=r.filter(a=>a!==n.validator);o.length!==r.length&&(e=!0,i.setValidators(o))}}if(n.asyncValidator!==null){let r=Th(i);if(Array.isArray(r)&&r.length>0){let o=r.filter(a=>a!==n.asyncValidator);o.length!==r.length&&(e=!0,i.setAsyncValidators(o))}}}let t=()=>{};return _a(n._rawValidators,t),_a(n._rawAsyncValidators,t),e}function Hv(i,n){n.valueAccessor.registerOnChange(e=>{i._pendingValue=e,i._pendingChange=!0,i._pendingDirty=!0,i.updateOn==="change"&&Oh(i,n)})}function Qv(i,n){n.valueAccessor.registerOnTouched(()=>{i._pendingTouched=!0,i.updateOn==="blur"&&i._pendingChange&&Oh(i,n),i.updateOn!=="submit"&&i.markAsTouched()})}function Oh(i,n){i._pendingDirty&&i.markAsDirty(),i.setValue(i._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(i._pendingValue),i._pendingChange=!1}function Uv(i,n){let e=(t,r)=>{n.valueAccessor.writeValue(t),r&&n.viewToModelUpdate(t)};i.registerOnChange(e),n._registerOnDestroy(()=>{i._unregisterOnChange(e)})}function Rh(i,n){i==null,Oc(i,n)}function qv(i,n){return ya(i,n)}function Wv(i,n){if(!i.hasOwnProperty("model"))return!1;let e=i.model;return e.isFirstChange()?!0:!Object.is(n,e.currentValue)}function Gv(i){return Object.getPrototypeOf(i.constructor)===wv}function Fh(i,n){i._syncPendingControls(),n.forEach(e=>{let t=e.control;t.updateOn==="submit"&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function $v(i,n){if(!n)return null;Array.isArray(n);let e,t,r;return n.forEach(o=>{o.constructor===vh?e=o:Gv(o)?t=o:r=o}),r||t||e||null}function Yv(i,n){let e=i.indexOf(n);e>-1&&i.splice(e,1)}var Kv={provide:ir,useExisting:Lt(()=>_n)},Xr=Promise.resolve(),_n=(()=>{class i extends ir{get submitted(){return Yt(this.submittedReactive)}constructor(e,t,r){super(),this.callSetDisabledState=r,this._submitted=bi(()=>this.submittedReactive()),this.submittedReactive=gn(!1),this._directives=new Set,this.ngSubmit=new z,this.form=new ga({},Tc(e),Mc(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Xr.then(()=>{let t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),ba(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Xr.then(()=>{let t=this._findContainer(e.path);t&&t.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Xr.then(()=>{let t=this._findContainer(e.path),r=new ga({});Rh(r,e),t.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Xr.then(()=>{let t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){Xr.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submittedReactive.set(!0),Fh(this.form,this._directives),this.ngSubmit.emit(e),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static{this.\u0275fac=function(t){return new(t||i)(u(eo,10),u(Sc,10),u(wa,8))}}static{this.\u0275dir=D({type:i,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,r){t&1&&ee("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[de([Kv]),ne]})}}return i})();function fh(i,n){let e=i.indexOf(n);e>-1&&i.splice(e,1)}function gh(i){return typeof i=="object"&&i!==null&&Object.keys(i).length===2&&"value"in i&&"disabled"in i}var Xv=class extends fa{constructor(n=null,e,t){super(Mh(e),Ah(t,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),xa(e)&&(e.nonNullable||e.initialValueIsDefault)&&(gh(n)?this.defaultValue=n.value:this.defaultValue=n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(t=>t(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){fh(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){fh(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(n){gh(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}};var Zv=i=>i instanceof Xv;var Ph=new C(""),Jv={provide:ai,useExisting:Lt(()=>e_)},e_=(()=>{class i extends ai{set isDisabled(e){}static{this._ngModelWarningSentOnce=!1}constructor(e,t,r,o,a){super(),this._ngModelWarningConfig=o,this.callSetDisabledState=a,this.update=new z,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(t),this.valueAccessor=$v(this,r)}ngOnChanges(e){if(this._isControlChanged(e)){let t=e.form.previousValue;t&&va(t,this,!1),ba(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Wv(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&va(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}static{this.\u0275fac=function(t){return new(t||i)(u(eo,10),u(Sc,10),u(vn,10),u(Ph,8),u(wa,8))}}static{this.\u0275dir=D({type:i,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[de([Jv]),ne,Pe]})}}return i})(),t_={provide:ir,useExisting:Lt(()=>yn)},yn=(()=>{class i extends ir{get submitted(){return Yt(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}constructor(e,t,r){super(),this.callSetDisabledState=r,this._submitted=bi(()=>this._submittedReactive()),this._submittedReactive=gn(!1),this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new z,this._setValidators(e),this._setAsyncValidators(t)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(ya(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){let t=this.form.get(e.path);return ba(t,e,this.callSetDisabledState),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){va(e.control||null,e,!1),Yv(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this._submittedReactive.set(!0),Fh(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new Ec(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this._submittedReactive.set(!1),this.form._events.next(new Ic(this.form))}_updateDomValue(){this.directives.forEach(e=>{let t=e.control,r=this.form.get(e.path);t!==r&&(va(t||null,e),Zv(r)&&(ba(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let t=this.form.get(e.path);Rh(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let t=this.form.get(e.path);t&&qv(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Oc(this.form,this),this._oldForm&&ya(this._oldForm,this)}_checkFormPresent(){this.form}static{this.\u0275fac=function(t){return new(t||i)(u(eo,10),u(Sc,10),u(wa,8))}}static{this.\u0275dir=D({type:i,selectors:[["","formGroup",""]],hostBindings:function(t,r){t&1&&ee("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[de([t_]),ne,Pe]})}}return i})();var i_=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=L({})}}return i})();var Nh=(()=>{class i{static withConfig(e){return{ngModule:i,providers:[{provide:Ph,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:wa,useValue:e.callSetDisabledState??Ac}]}}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=L({imports:[i_]})}}return i})();function ka(i){return i&&typeof i.connect=="function"&&!(i instanceof vu)}var nr=function(i){return i[i.REPLACED=0]="REPLACED",i[i.INSERTED=1]="INSERTED",i[i.MOVED=2]="MOVED",i[i.REMOVED=3]="REMOVED",i}(nr||{}),to=new C("_ViewRepeater"),rr=class{applyChanges(n,e,t,r,o){n.forEachOperation((a,s,c)=>{let l,d;if(a.previousIndex==null){let h=t(a,s,c);l=e.createEmbeddedView(h.templateRef,h.context,h.index),d=nr.INSERTED}else c==null?(e.remove(s),d=nr.REMOVED):(l=e.get(s),e.move(l,c),d=nr.MOVED);o&&o({context:l?.context,operation:d,record:a})})}detach(){}};var Ca=class{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(n=!1,e,t=!0,r){this._multiple=n,this._emitChanges=t,this.compareWith=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new R,e&&e.length&&(n?e.forEach(o=>this._markSelected(o)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...n){this._verifyValueAssignment(n),n.forEach(t=>this._markSelected(t));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...n){this._verifyValueAssignment(n),n.forEach(t=>this._unmarkSelected(t));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...n){this._verifyValueAssignment(n);let e=this.selected,t=new Set(n);n.forEach(o=>this._markSelected(o)),e.filter(o=>!t.has(this._getConcreteValue(o,t))).forEach(o=>this._unmarkSelected(o));let r=this._hasQueuedChanges();return this._emitChangeEvent(),r}toggle(n){return this.isSelected(n)?this.deselect(n):this.select(n)}clear(n=!0){this._unmarkAll();let e=this._hasQueuedChanges();return n&&this._emitChangeEvent(),e}isSelected(n){return this._selection.has(this._getConcreteValue(n))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(n){this._multiple&&this.selected&&this._selected.sort(n)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(n){n=this._getConcreteValue(n),this.isSelected(n)||(this._multiple||this._unmarkAll(),this.isSelected(n)||this._selection.add(n),this._emitChanges&&this._selectedToEmit.push(n))}_unmarkSelected(n){n=this._getConcreteValue(n),this.isSelected(n)&&(this._selection.delete(n),this._emitChanges&&this._deselectedToEmit.push(n))}_unmarkAll(){this.isEmpty()||this._selection.forEach(n=>this._unmarkSelected(n))}_verifyValueAssignment(n){n.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(n,e){if(this.compareWith){e=e??this._selection;for(let t of e)if(this.compareWith(n,t))return t;return n}else return n}};var Da=(()=>{class i{constructor(){this._listeners=[]}notify(e,t){for(let r of this._listeners)r(e,t)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(t=>e!==t)}}ngOnDestroy(){this._listeners=[]}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=Z({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var Fc="Invariant Violation",jh=Object.setPrototypeOf,n_=jh===void 0?function(i,n){return i.__proto__=n,i}:jh,Sa=function(i){mt(n,i);function n(e){e===void 0&&(e=Fc);var t=i.call(this,typeof e=="number"?Fc+": "+e+" (see https://github.com/apollographql/invariant-packages)":e)||this;return t.framesToPop=1,t.name=Fc,n_(t,n.prototype),t}return n}(Error);function Wi(i,n){if(!i)throw new Sa(n)}var Ia=["debug","log","warn","error","silent"],Pc=Ia.indexOf("log");function Ea(i){return function(){if(Ia.indexOf(i)>=Pc){var n=console[i]||console.log;return n.apply(console,arguments)}}}(function(i){i.debug=Ea("debug"),i.log=Ea("log"),i.warn=Ea("warn"),i.error=Ea("error")})(Wi||(Wi={}));function Vh(i){var n=Ia[Pc];return Pc=Math.max(0,Ia.indexOf(i)),n}var io="3.11.8";function xt(i){try{return i()}catch{}}var or=xt(function(){return globalThis})||xt(function(){return window})||xt(function(){return self})||xt(function(){return global})||xt(function(){return xt.constructor("return this")()});var Bh=new Map;function no(i){var n=Bh.get(i)||1;return Bh.set(i,n+1),"".concat(i,":").concat(n,":").concat(Math.random().toString(36).slice(2))}function Ta(i,n){n===void 0&&(n=0);var e=no("stringifyForDisplay");return JSON.stringify(i,function(t,r){return r===void 0?e:r},n).split(JSON.stringify(e)).join("")}function Ma(i){return function(n){for(var e=[],t=1;t"}}function Nc(i,n){if(n===void 0&&(n=[]),!!i)return or[zh]&&or[zh](i,n.map(Hh))}function Lc(i,n){if(n===void 0&&(n=[]),!!i)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:io,message:i,args:n.map(Hh)})))}var r_=globalThis.__DEV__!==!1;function ar(i,n){if(!!!i)throw new Error(n)}function Qh(i){return typeof i=="object"&&i!==null}function Uh(i,n){if(!!!i)throw new Error(n??"Unexpected invariant triggered.")}var o_=/\r\n|[\n\r]/g;function sr(i,n){let e=0,t=1;for(let r of i.body.matchAll(o_)){if(typeof r.index=="number"||Uh(!1),r.index>=n)break;e=r.index+r[0].length,t+=1}return{line:t,column:n+1-e}}function jc(i){return Aa(i.source,sr(i.source,i.start))}function Aa(i,n){let e=i.locationOffset.column-1,t="".padStart(e)+i.body,r=n.line-1,o=i.locationOffset.line-1,a=n.line+o,s=n.line===1?e:0,c=n.column+s,l=`${i.name}:${a}:${c} +import{c as gt,d as Xe,e as $u,g as Oe,h as nt,i as Ze,j as Yu,k as Ku}from"./chunk-6XXA7HXI.js";import{a as hc,b as la,h as Wu,q as Gu}from"./chunk-ZBBMS7J5.js";import{$b as fe,Aa as Su,Ac as Uu,B as ke,C as Zo,Ca as Tu,Cb as te,Da as Pe,Db as Nu,Dc as lc,Ea as ce,Eb as na,F as wu,Fa as le,Fb as tt,G as zi,Ga as Wt,Gb as W,Gc as pe,H as mn,Ha as ea,Hb as ue,Hc as bn,I as Nt,Ia as Ke,Ib as ft,J as Cu,Ja as It,Jb as P,Jc as O,K as Fe,Ka as Ee,Kb as qe,Kc as $e,L as ye,La as ta,Lb as Lu,Lc as bi,M as ic,Mb as ge,Mc as Yt,N as Jo,Na as z,Nb as ac,Nc as dc,Oa as B,Ob as sc,Pa as ia,Pb as cc,Pc as uc,Q as fi,Qa as E,Qb as w,Ra as Gt,Rb as I,S as Ye,Sb as ie,Sc as oe,T as nc,Ta as Mu,U as Ur,V as Di,Va as Au,Vb as pt,W as ku,Wa as we,Wb as Ge,Xa as Ou,Xb as St,Xc as aa,Yb as ju,Zb as ee,Zc as sa,_ as Du,_b as Vu,_c as ca,a as N,aa as Eu,ac as se,b as Qe,ba as qr,bc as A,c as gu,ca as Yn,cd as yt,da as Me,dc as he,e as Te,ea as st,ec as re,ed as qu,f as bu,fa as $,fb as Kn,fc as S,ga as Iu,gb as Ru,gc as T,h as We,ha as gi,hc as Bu,ia as Wr,ic as zu,j as vu,ja as Lt,jc as $t,k as R,ka as Z,kb as V,kc as Tt,l as Vi,la as L,lb as u,lc as oi,m as Xo,mb as rc,mc as ra,n as _u,na as C,nb as Ae,o as Bi,oc as de,p as mt,pa as x,pb as fn,pc as Q,q as b,qa as F,r as Pt,rb as Gr,rc as Hu,s as ni,sb as Ue,sc as Qu,t as ri,u as at,ua as H,ub as oc,v as yu,va as j,vb as gn,w as ki,wa as D,wb as Fu,x as He,xb as ne,y as xu,ya as pn,yb as Pu,yc as oa,z as Qr,zb as ae}from"./chunk-FJILXII2.js";function da(i){i||(Tu(da),i=F(ta));let n=new We(e=>i.onDestroy(e.next.bind(e)));return e=>e.pipe($(n))}function Xu(i){return i&&i.constructor&&typeof i.constructor.isBuffer=="function"&&i.constructor.isBuffer(i)}function Zu(i){return i}function mc(i,n){n=n||{};let e=n.delimiter||".",t=n.maxDepth,r=n.transformKey||Zu,o={};function a(s,c,l){l=l||1,Object.keys(s).forEach(function(d){let h=s[d],m=n.safe&&Array.isArray(h),p=Object.prototype.toString.call(h),f=Xu(h),g=p==="[object Object]"||p==="[object Array]",_=c?c+e+r(d):r(d);if(!m&&!f&&g&&Object.keys(h).length&&(!n.maxDepth||l0&&(m=s(h.shift()),p=s(h[0]))}f[m]=pc(i[d],n)}),o}var bc=class{translations;constructor(n){this.translations=n}getTranslation(n){return He(this.translations.get(n)||{})}},th=new C("TRANSLOCO_LOADER");function fc(i,n){return i&&(Object.prototype.hasOwnProperty.call(i,n)?i[n]:n.split(".").reduce((e,t)=>e?.[t],i))}function $b(i,n,e){i=N({},i);let t=n.split("."),r=t.length-1;return t.reduce((o,a,s)=>(s===r?o[a]=e:o[a]=Array.isArray(o[a])?o[a].slice():N({},o[a]),o&&o[a]),i),i}function ih(i){return i?Array.isArray(i)?i.length:Cc(i)?Object.keys(i).length:i?i.length:0:0}function Yb(i){return ih(i)===0}function Kb(i){return typeof i=="function"}function Zn(i){return typeof i=="string"}function Cc(i){return!!i&&typeof i=="object"&&!Array.isArray(i)}function nh(i){return i.replace(/(?:^\w|[A-Z]|\b\w)/g,(n,e)=>e==0?n.toLowerCase():n.toUpperCase()).replace(/\s+|_|-|\//g,"")}function vc(i){return i==null}function Ju(i){return vc(i)===!1}function rh(i){return i&&typeof i.scope=="string"}function Xb(i){return i&&Cc(i.loader)}function Zb(i){return pc(i)}function eh(i){return mc(i,{safe:!0})}var Jn=new C("TRANSLOCO_CONFIG",{providedIn:"root",factory:()=>Xn}),Xn={defaultLang:"en",reRenderOnLangChange:!1,prodMode:!1,failedRetries:2,fallbackLang:[],availableLangs:[],missingHandler:{logMissingKey:!0,useFallbackTranslation:!1,allowEmpty:!1},flatten:{aot:!1},interpolation:["{{","}}"],scopes:{keepCasing:!1}};function Jb(i={}){return Qe(N(N({},Xn),i),{missingHandler:N(N({},Xn.missingHandler),i.missingHandler),flatten:N(N({},Xn.flatten),i.flatten),scopes:N(N({},Xn.scopes),i.scopes)})}var oh=new C("TRANSLOCO_TRANSPILER"),ev=(()=>{class i{config=F(Jn,{optional:!0})??Xn;get interpolationMatcher(){return tv(this.config)}transpile({value:e,params:t={},translation:r,key:o}){if(Zn(e)){let a,s=e;for(;(a=this.interpolationMatcher.exec(s))!==null;){let[c,l]=a;s=s.replace(c,()=>{let d=l.trim(),h=fc(t,d);return Ju(h)?h:Ju(r[d])?this.transpile({params:t,translation:r,key:o,value:r[d]}):""})}return s}else t&&(Cc(e)?e=this.handleObject({value:e,params:t,translation:r,key:o}):Array.isArray(e)&&(e=this.handleArray({value:e,params:t,translation:r,key:o})));return e}handleObject({value:e,params:t={},translation:r,key:o}){let a=e;return Object.keys(t).forEach(s=>{let c=this.transpile({value:fc(a,s),params:fc(t,s),translation:r,key:o});a=$b(a,s,c)}),a}handleArray(r){var o=r,{value:e}=o,t=gu(o,["value"]);return e.map(a=>this.transpile(N({value:a},t)))}static \u0275fac=function(t){return new(t||i)};static \u0275prov=Z({token:i,factory:i.\u0275fac})}return i})();function tv(i){let[n,e]=i.interpolation;return new RegExp(`${n}([^${n}${e}]*?)${e}`,"g")}var ah=new C("TRANSLOCO_MISSING_HANDLER"),iv=(()=>{class i{handle(e,t){if(t.missingHandler.logMissingKey&&!t.prodMode){let r=`Missing translation for '${e}'`;console.warn(`%c ${r}`,"font-size: 12px; color: red")}return e}static \u0275fac=function(t){return new(t||i)};static \u0275prov=Z({token:i,factory:i.\u0275fac})}return i})(),sh=new C("TRANSLOCO_INTERCEPTOR"),nv=(()=>{class i{preSaveTranslation(e){return e}preSaveTranslationKey(e,t){return t}static \u0275fac=function(t){return new(t||i)};static \u0275prov=Z({token:i,factory:i.\u0275fac})}return i})(),ch=new C("TRANSLOCO_FALLBACK_STRATEGY"),rv=(()=>{class i{userConfig;constructor(e){this.userConfig=e}getNextLangs(){let e=this.userConfig.fallbackLang;if(!e)throw new Error("When using the default fallback, a fallback language must be provided in the config!");return Array.isArray(e)?e:[e]}static \u0275fac=function(t){return new(t||i)(x(Jn))};static \u0275prov=Z({token:i,factory:i.\u0275fac})}return i})();function $r(i){if(!i)return"";let n=i.split("/");return n.pop(),n.join("/")}function Hi(i){return i?i.split("/").pop():""}function _c(i,n,e="|"){if(Zn(i)){let t=i.split(e),r=t.pop();return r===n?[!0,t.toString()]:[!1,r]}return[!1,""]}function ov(i,n){let[e]=_c(n,"static");return e?!1:!!i.config.reRenderOnLangChange}function av(i){return i?n=>n:Ye(1)}function sv(i,n){return Object.keys(i).reduce((e,t)=>(e[`${n}/${t}`]=i[t],e),{})}function lh(i,n){return Xb(i)?sv(i.loader,n):void 0}function gc(i){return{scope:$r(i)||null,langName:Hi(i)}}function dh(i){let{path:n,inlineLoader:e,mainLoader:t,data:r}=i;if(e){let o=e[n];if(Kb(o)===!1)throw`You're using an inline loader but didn't provide a loader for ${n}`;return e[n]().then(a=>a.default?a.default:a)}return t.getTranslation(n,r)}function cv({mainLoader:i,path:n,data:e,fallbackPath:t,inlineLoader:r}){return(t?[n,t]:[n]).map(a=>{let s=dh({path:a,mainLoader:i,inlineLoader:r,data:e});return ki(s).pipe(ke(c=>({translation:c,lang:a})))})}var lv;var dv=(()=>{class i{loader;parser;missingHandler;interceptor;fallbackStrategy;langChanges$;translations=new Map;cache=new Map;firstFallbackLang;defaultLang="";availableLangs=[];isResolvedMissingOnce=!1;lang;failedLangs=new Set;events=new R;events$=this.events.asObservable();config;constructor(e,t,r,o,a,s){this.loader=e,this.parser=t,this.missingHandler=r,this.interceptor=o,this.fallbackStrategy=s,this.loader||(this.loader=new bc(this.translations)),lv=this,this.config=JSON.parse(JSON.stringify(a)),this.setAvailableLangs(this.config.availableLangs||[]),this.setFallbackLangForMissingTranslation(this.config),this.setDefaultLang(this.config.defaultLang),this.lang=new Vi(this.getDefaultLang()),this.langChanges$=this.lang.asObservable(),this.events$.pipe(da()).subscribe(c=>{c.type==="translationLoadSuccess"&&c.wasFailure&&this.setActiveLang(c.payload.langName)})}getDefaultLang(){return this.defaultLang}setDefaultLang(e){this.defaultLang=e}getActiveLang(){return this.lang.getValue()}setActiveLang(e){return this.parser.onLangChanged?.(e),this.lang.next(e),this.events.next({type:"langChanged",payload:gc(e)}),this}setAvailableLangs(e){this.availableLangs=e}getAvailableLangs(){return this.availableLangs}load(e,t={}){let r=this.cache.get(e);if(r)return r;let o,a=this._isLangScoped(e),s;a&&(s=$r(e));let c={path:e,mainLoader:this.loader,inlineLoader:t.inlineLoader,data:a?{scope:s}:void 0};if(this.useFallbackTranslation(e)){let d=a?`${s}/${this.firstFallbackLang}`:this.firstFallbackLang,h=cv(Qe(N({},c),{fallbackPath:d}));o=mn(h)}else{let d=dh(c);o=ki(d)}let l=o.pipe(Du(this.config.failedRetries),gi(d=>{if(Array.isArray(d)){d.forEach(h=>{this.handleSuccess(h.lang,h.translation),h.lang!==e&&this.cache.set(h.lang,He({}))});return}this.handleSuccess(e,d)}),Jo(d=>(this.config.prodMode||console.error(`Error while trying to load "${e}"`,d),this.handleFailure(e,t))),qr(1));return this.cache.set(e,l),l}translate(e,t={},r=this.getActiveLang()){if(!e)return e;let{scope:o,resolveLang:a}=this.resolveLangAndScope(r);if(Array.isArray(e))return e.map(l=>this.translate(o?`${o}.${l}`:l,t,a));e=o?`${o}.${e}`:e;let s=this.getTranslation(a),c=s[e];return c?this.parser.transpile({value:c,params:t,translation:s,key:e}):this._handleMissingKey(e,c,t)}selectTranslate(e,t,r,o=!1){let a,s=(l,d)=>this.load(l,d).pipe(ke(()=>o?this.translateObject(e,t,l):this.translate(e,t,l)));if(vc(r))return this.langChanges$.pipe(st(l=>s(l)));if(r=Array.isArray(r)?r[0]:r,rh(r)){let l=r;r=l.scope,a=lh(l,l.scope)}if(r=r,this.isLang(r)||this.isScopeWithLang(r))return s(r);let c=r;return this.langChanges$.pipe(st(l=>s(`${c}/${l}`,{inlineLoader:a})))}isScopeWithLang(e){return this.isLang(Hi(e))}translateObject(e,t={},r=this.getActiveLang()){if(Zn(e)||Array.isArray(e)){let{resolveLang:a,scope:s}=this.resolveLangAndScope(r);if(Array.isArray(e))return e.map(d=>this.translateObject(s?`${s}.${d}`:d,t,a));let c=this.getTranslation(a);e=s?`${s}.${e}`:e;let l=Zb(this.getObjectByKey(c,e));return Yb(l)?this.translate(e,t,r):this.parser.transpile({value:l,params:t,translation:c,key:e})}let o=[];for(let[a,s]of this.getEntries(e))o.push(this.translateObject(a,s,r));return o}selectTranslateObject(e,t,r){if(Zn(e)||Array.isArray(e))return this.selectTranslate(e,t,r,!0);let[[o,a],...s]=this.getEntries(e);return this.selectTranslateObject(o,a,r).pipe(ke(c=>{let l=[c];for(let[d,h]of s)l.push(this.translateObject(d,h,r));return l}))}getTranslation(e){if(e){if(this.isLang(e))return this.translations.get(e)||{};{let{scope:t,resolveLang:r}=this.resolveLangAndScope(e),o=this.translations.get(r)||{};return this.getObjectByKey(o,t)}}return this.translations}selectTranslation(e){let t=this.langChanges$;if(e){let r=Hi(e)!==e;this.isLang(e)||r?t=He(e):t=this.langChanges$.pipe(ke(o=>`${e}/${o}`))}return t.pipe(st(r=>this.load(r).pipe(ke(()=>this.getTranslation(r)))))}setTranslation(e,t=this.getActiveLang(),r={}){let a=N(N({},{merge:!0,emitChange:!0}),r),s=$r(t),c=e;if(s){let p=this.getMappedScope(s);c=eh({[p]:e})}let l=s?Hi(t):t,d=N(N({},a.merge&&this.getTranslation(l)),c),h=this.config.flatten.aot?d:eh(d),m=this.interceptor.preSaveTranslation(h,l);this.translations.set(l,m),a.emitChange&&this.setActiveLang(this.getActiveLang())}setTranslationKey(e,t,r={}){let o=r.lang||this.getActiveLang(),a=this.interceptor.preSaveTranslationKey(e,t,o),s={[e]:a};this.setTranslation(s,o,Qe(N({},r),{merge:!0}))}setFallbackLangForMissingTranslation({fallbackLang:e}){let t=Array.isArray(e)?e[0]:e;e&&this.useFallbackTranslation(t)&&(this.firstFallbackLang=t)}_handleMissingKey(e,t,r){if(this.config.missingHandler.allowEmpty&&t==="")return"";if(!this.isResolvedMissingOnce&&this.useFallbackTranslation()){this.isResolvedMissingOnce=!0;let o=this.translate(e,r,this.firstFallbackLang);return this.isResolvedMissingOnce=!1,o}return this.missingHandler.handle(e,this.getMissingHandlerData(),r)}_isLangScoped(e){return this.getAvailableLangsIds().indexOf(e)===-1}isLang(e){return this.getAvailableLangsIds().indexOf(e)!==-1}_loadDependencies(e,t){let r=Hi(e);return this._isLangScoped(e)&&!this.isLoadedTranslation(r)?Zo([this.load(r),this.load(e,{inlineLoader:t})]):this.load(e,{inlineLoader:t})}_completeScopeWithLang(e){return this._isLangScoped(e)&&!this.isLang(Hi(e))?`${e}/${this.getActiveLang()}`:e}_setScopeAlias(e,t){this.config.scopeMapping||(this.config.scopeMapping={}),this.config.scopeMapping[e]=t}ngOnDestroy(){this.cache.clear()}isLoadedTranslation(e){return ih(this.getTranslation(e))}getAvailableLangsIds(){let e=this.getAvailableLangs()[0];return Zn(e)?this.getAvailableLangs():this.getAvailableLangs().map(t=>t.id)}getMissingHandlerData(){return Qe(N({},this.config),{activeLang:this.getActiveLang(),availableLangs:this.availableLangs,defaultLang:this.defaultLang})}useFallbackTranslation(e){return this.config.missingHandler.useFallbackTranslation&&e!==this.firstFallbackLang}handleSuccess(e,t){this.setTranslation(t,e,{emitChange:!1}),this.events.next({wasFailure:!!this.failedLangs.size,type:"translationLoadSuccess",payload:gc(e)}),this.failedLangs.forEach(r=>this.cache.delete(r)),this.failedLangs.clear()}handleFailure(e,t){vc(t.failedCounter)&&(t.failedCounter=0,t.fallbackLangs||(t.fallbackLangs=this.fallbackStrategy.getNextLangs(e)));let r=e.split("/"),a=t.fallbackLangs[t.failedCounter];if(this.failedLangs.add(e),this.cache.has(a))return this.handleSuccess(a,this.getTranslation(a)),Bi;let s=a===r[r.length-1];if(!a||s){let l="Unable to load translation and all the fallback languages";throw r.length>1&&(l+=", did you misspelled the scope name?"),new Error(l)}let c=a;return r.length>1&&(r[r.length-1]=a,c=r.join("/")),t.failedCounter++,this.events.next({type:"translationLoadFailure",payload:gc(e)}),this.load(c,t)}getMappedScope(e){let{scopeMapping:t={},scopes:r={keepCasing:!1}}=this.config;return t[e]||(r.keepCasing?e:nh(e))}resolveLangAndScope(e){let t=e,r;if(this._isLangScoped(e)){let o=Hi(e),a=this.isLang(o);t=a?o:this.getActiveLang(),r=this.getMappedScope(a?$r(e):e)}return{scope:r,resolveLang:t}}getObjectByKey(e,t){let r={},o=`${t}.`;for(let a in e)a.startsWith(o)&&(r[a.replace(o,"")]=e[a]);return r}getEntries(e){return e instanceof Map?e.entries():Object.entries(e)}static \u0275fac=function(t){return new(t||i)(x(th,8),x(oh),x(ah),x(sh),x(Jn),x(ch))};static \u0275prov=Z({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),uv=(()=>{class i{html;static \u0275fac=function(t){return new(t||i)};static \u0275cmp=H({type:i,selectors:[["ng-component"]],inputs:{html:"html"},standalone:!0,features:[Q],decls:1,vars:1,consts:[[1,"transloco-loader-template",3,"innerHTML"]],template:function(t,r){t&1&&ie(0,"div",0),t&2&&ue("innerHTML",r.html,Ru)},encapsulation:2})}return i})(),yc=class{view;vcr;constructor(n,e){this.view=n,this.vcr=e}attachView(){if(this.view instanceof Ae)this.vcr.createEmbeddedView(this.view);else if(Zn(this.view)){let n=this.vcr.createComponent(uv);n.instance.html=this.view,n.hostView.detectChanges()}else this.vcr.createComponent(this.view)}detachView(){this.vcr.clear()}},hv=new C("TRANSLOCO_LANG"),mv=new C("TRANSLOCO_LOADING_TEMPLATE"),pv=new C("TRANSLOCO_SCOPE"),xc=class{initialized=!1;resolve({inline:n,provider:e,active:t}){let r=t;if(this.initialized)return r=t,r;if(e){let[,o]=_c(e,"static");r=o}if(n){let[,o]=_c(n,"static");r=o}return this.initialized=!0,r}resolveLangBasedOnScope(n){return $r(n)?Hi(n):n}resolveLangPath(n,e){return e?`${e}/${n}`:n}},wc=class{service;constructor(n){this.service=n}resolve(n){let{inline:e,provider:t}=n;if(e)return e;if(t){if(rh(t)){let{scope:r,alias:o=this.service.config.scopes.keepCasing?r:nh(r)}=t;return this.service._setScopeAlias(r,o),r}return t}}},UE=(()=>{class i{destroyRef=F(ta);service=F(dv);tpl=F(Ae,{optional:!0});providerLang=F(hv,{optional:!0});providerScope=F(pv,{optional:!0});providedLoadingTpl=F(mv,{optional:!0});cdr=F(pe);host=F(E);vcr=F(Ue);renderer=F(Gr);view;memo=new Map;key;params={};inlineScope;inlineRead;prefix;inlineLang;inlineTpl;currentLang;loaderTplHandler;initialized=!1;path;langResolver=new xc;scopeResolver=new wc(this.service);strategy=this.tpl===null?"attribute":"structural";static ngTemplateContextGuard(e,t){return!0}ngOnInit(){let e=ov(this.service,this.providerLang||this.inlineLang);if(this.service.langChanges$.pipe(st(t=>{let r=this.langResolver.resolve({inline:this.inlineLang,provider:this.providerLang,active:t});return Array.isArray(this.providerScope)?mn(this.providerScope.map(o=>this.resolveScope(r,o))):this.resolveScope(r,this.providerScope)}),av(e),da(this.destroyRef)).subscribe(()=>{this.currentLang=this.langResolver.resolveLangBasedOnScope(this.path),this.strategy==="attribute"?this.attributeStrategy():this.structuralStrategy(this.currentLang,this.prefix||this.inlineRead),this.cdr.markForCheck(),this.initialized=!0}),!this.initialized){let t=this.resolveLoadingContent();t&&(this.loaderTplHandler=new yc(t,this.vcr),this.loaderTplHandler.attachView())}}ngOnChanges(e){this.strategy==="attribute"&&Object.keys(e).some(r=>!e[r].firstChange)&&this.attributeStrategy()}attributeStrategy(){this.detachLoader(),this.renderer.setProperty(this.host.nativeElement,"innerText",this.service.translate(this.key,this.params,this.currentLang))}structuralStrategy(e,t){this.memo.clear();let r=this.getTranslateFn(e,t);this.view?(this.view.context.$implicit=r,this.view.context.currentLang=this.currentLang):(this.detachLoader(),this.view=this.vcr.createEmbeddedView(this.tpl,{$implicit:r,currentLang:this.currentLang}))}getTranslateFn(e,t){return(r,o)=>{let a=t?`${t}.${r}`:r,s=o?`${a}${JSON.stringify(o)}`:a;return this.memo.has(s)||this.memo.set(s,this.service.translate(a,o,e)),this.memo.get(s)}}resolveLoadingContent(){return this.inlineTpl||this.providedLoadingTpl}ngOnDestroy(){this.memo.clear()}detachLoader(){this.loaderTplHandler?.detachView()}resolveScope(e,t){let r=this.scopeResolver.resolve({inline:this.inlineScope,provider:t});this.path=this.langResolver.resolveLangPath(e,r);let o=lh(t,r);return this.service._loadDependencies(this.path,o)}static \u0275fac=function(t){return new(t||i)};static \u0275dir=D({type:i,selectors:[["","transloco",""]],inputs:{key:[0,"transloco","key"],params:[0,"translocoParams","params"],inlineScope:[0,"translocoScope","inlineScope"],inlineRead:[0,"translocoRead","inlineRead"],prefix:[0,"translocoPrefix","prefix"],inlineLang:[0,"translocoLang","inlineLang"],inlineTpl:[0,"translocoLoadingTpl","inlineTpl"]},standalone:!0,features:[Pe]})}return i})();var uh=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=j({type:i});static \u0275inj=L({})}return i})();function qE(i){let n=[bv(ev),_v(iv),yv(nv),vv(rv)];return i.config&&n.push(fv(i.config)),i.loader&&n.push(gv(i.loader)),n}function fv(i){return pn([{provide:Jn,useValue:Jb(i)}])}function gv(i){return pn([{provide:th,useClass:i}])}function bv(i){return pn([{provide:oh,useClass:i,deps:[Jn]}])}function vv(i){return pn([{provide:ch,useClass:i,deps:[Jn]}])}function _v(i){return pn([{provide:ah,useClass:i}])}function yv(i){return pn([{provide:sh,useClass:i}])}var WE=new C("TRANSLOCO_TEST_LANGS - Available testing languages"),GE=new C("TRANSLOCO_TEST_OPTIONS - Testing options");var bh=(()=>{class i{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,t){this._renderer.setProperty(this._elementRef.nativeElement,e,t)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static{this.\u0275fac=function(t){return new(t||i)(u(Gr),u(E))}}static{this.\u0275dir=D({type:i})}}return i})(),wv=(()=>{class i extends bh{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ke(i)))(r||i)}})()}static{this.\u0275dir=D({type:i,features:[ne]})}}return i})(),vn=new C("");var Cv={provide:vn,useExisting:Lt(()=>vh),multi:!0};function kv(){let i=uc()?uc().getUserAgent():"";return/android (\d+)/.test(i.toLowerCase())}var Dv=new C(""),vh=(()=>{class i extends bh{constructor(e,t,r){super(e,t),this._compositionMode=r,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!kv())}writeValue(e){let t=e??"";this.setProperty("value",t)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static{this.\u0275fac=function(t){return new(t||i)(u(Gr),u(E),u(Dv,8))}}static{this.\u0275dir=D({type:i,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,r){t&1&&ee("input",function(a){return r._handleInput(a.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(a){return r._compositionEnd(a.target.value)})},features:[de([Cv]),ne]})}}return i})();function Qi(i){return i==null||(typeof i=="string"||Array.isArray(i))&&i.length===0}function _h(i){return i!=null&&typeof i.length=="number"}var eo=new C(""),Sc=new C(""),Ev=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Ui=class{static min(n){return Iv(n)}static max(n){return Sv(n)}static required(n){return Tv(n)}static requiredTrue(n){return Mv(n)}static email(n){return Av(n)}static minLength(n){return Ov(n)}static maxLength(n){return Rv(n)}static pattern(n){return Fv(n)}static nullValidator(n){return yh(n)}static compose(n){return Eh(n)}static composeAsync(n){return Ih(n)}};function Iv(i){return n=>{if(Qi(n.value)||Qi(i))return null;let e=parseFloat(n.value);return!isNaN(e)&&e{if(Qi(n.value)||Qi(i))return null;let e=parseFloat(n.value);return!isNaN(e)&&e>i?{max:{max:i,actual:n.value}}:null}}function Tv(i){return Qi(i.value)?{required:!0}:null}function Mv(i){return i.value===!0?null:{required:!0}}function Av(i){return Qi(i.value)||Ev.test(i.value)?null:{email:!0}}function Ov(i){return n=>Qi(n.value)||!_h(n.value)?null:n.value.length_h(n.value)&&n.value.length>i?{maxlength:{requiredLength:i,actualLength:n.value.length}}:null}function Fv(i){if(!i)return yh;let n,e;return typeof i=="string"?(e="",i.charAt(0)!=="^"&&(e+="^"),e+=i,i.charAt(i.length-1)!=="$"&&(e+="$"),n=new RegExp(e)):(e=i.toString(),n=i),t=>{if(Qi(t.value))return null;let r=t.value;return n.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}function yh(i){return null}function xh(i){return i!=null}function wh(i){return Uu(i)?ki(i):i}function Ch(i){let n={};return i.forEach(e=>{n=e!=null?N(N({},n),e):n}),Object.keys(n).length===0?null:n}function kh(i,n){return n.map(e=>e(i))}function Pv(i){return!i.validate}function Dh(i){return i.map(n=>Pv(n)?n:e=>n.validate(e))}function Eh(i){if(!i)return null;let n=i.filter(xh);return n.length==0?null:function(e){return Ch(kh(e,n))}}function Tc(i){return i!=null?Eh(Dh(i)):null}function Ih(i){if(!i)return null;let n=i.filter(xh);return n.length==0?null:function(e){let t=kh(e,n).map(wh);return mn(t).pipe(ke(Ch))}}function Mc(i){return i!=null?Ih(Dh(i)):null}function hh(i,n){return i===null?[n]:Array.isArray(i)?[...i,n]:[i,n]}function Sh(i){return i._rawValidators}function Th(i){return i._rawAsyncValidators}function kc(i){return i?Array.isArray(i)?i:[i]:[]}function ha(i,n){return Array.isArray(i)?i.includes(n):i===n}function mh(i,n){let e=kc(n);return kc(i).forEach(r=>{ha(e,r)||e.push(r)}),e}function ph(i,n){return kc(n).filter(e=>!ha(i,e))}var ma=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=Tc(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=Mc(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,e){return this.control?this.control.hasError(n,e):!1}getError(n,e){return this.control?this.control.getError(n,e):null}},ir=class extends ma{get formDirective(){return null}get path(){return null}},ai=class extends ma{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},Dc=class{constructor(n){this._cd=n}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},Nv={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},uI=Qe(N({},Nv),{"[class.ng-submitted]":"isSubmitted"}),hI=(()=>{class i extends Dc{constructor(e){super(e)}static{this.\u0275fac=function(t){return new(t||i)(u(ai,2))}}static{this.\u0275dir=D({type:i,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,r){t&2&&P("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[ne]})}}return i})();var Yr="VALID",ua="INVALID",er="PENDING",Kr="DISABLED",qi=class{},pa=class extends qi{constructor(n,e){super(),this.value=n,this.source=e}},Zr=class extends qi{constructor(n,e){super(),this.pristine=n,this.source=e}},Jr=class extends qi{constructor(n,e){super(),this.touched=n,this.source=e}},tr=class extends qi{constructor(n,e){super(),this.status=n,this.source=e}},Ec=class extends qi{constructor(n){super(),this.source=n}},Ic=class extends qi{constructor(n){super(),this.source=n}};function Mh(i){return(xa(i)?i.validators:i)||null}function Lv(i){return Array.isArray(i)?Tc(i):i||null}function Ah(i,n){return(xa(n)?n.asyncValidators:i)||null}function jv(i){return Array.isArray(i)?Mc(i):i||null}function xa(i){return i!=null&&!Array.isArray(i)&&typeof i=="object"}function Vv(i,n,e){let t=i.controls;if(!(n?Object.keys(t):t).length)throw new Wr(1e3,"");if(!t[e])throw new Wr(1001,"")}function Bv(i,n,e){i._forEachChild((t,r)=>{if(e[r]===void 0)throw new Wr(1002,"")})}var fa=class{constructor(n,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=bi(()=>this.statusReactive()),this.statusReactive=gn(void 0),this._pristine=bi(()=>this.pristineReactive()),this.pristineReactive=gn(!0),this._touched=bi(()=>this.touchedReactive()),this.touchedReactive=gn(!1),this._events=new R,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get status(){return Yt(this.statusReactive)}set status(n){Yt(()=>this.statusReactive.set(n))}get valid(){return this.status===Yr}get invalid(){return this.status===ua}get pending(){return this.status==er}get disabled(){return this.status===Kr}get enabled(){return this.status!==Kr}get pristine(){return Yt(this.pristineReactive)}set pristine(n){Yt(()=>this.pristineReactive.set(n))}get dirty(){return!this.pristine}get touched(){return Yt(this.touchedReactive)}set touched(n){Yt(()=>this.touchedReactive.set(n))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(mh(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(mh(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(ph(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(ph(n,this._rawAsyncValidators))}hasValidator(n){return ha(this._rawValidators,n)}hasAsyncValidator(n){return ha(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){let e=this.touched===!1;this.touched=!0;let t=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsTouched(Qe(N({},n),{sourceControl:t})),e&&n.emitEvent!==!1&&this._events.next(new Jr(!0,t))}markAllAsTouched(n={}){this.markAsTouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(n))}markAsUntouched(n={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let t=n.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:t})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,t),e&&n.emitEvent!==!1&&this._events.next(new Jr(!1,t))}markAsDirty(n={}){let e=this.pristine===!0;this.pristine=!1;let t=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsDirty(Qe(N({},n),{sourceControl:t})),e&&n.emitEvent!==!1&&this._events.next(new Zr(!1,t))}markAsPristine(n={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let t=n.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:n.emitEvent})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n,t),e&&n.emitEvent!==!1&&this._events.next(new Zr(!0,t))}markAsPending(n={}){this.status=er;let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new tr(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.markAsPending(Qe(N({},n),{sourceControl:e}))}disable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=Kr,this.errors=null,this._forEachChild(r=>{r.disable(Qe(N({},n),{onlySelf:!0}))}),this._updateValue();let t=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new pa(this.value,t)),this._events.next(new tr(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Qe(N({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=Yr,this._forEachChild(t=>{t.enable(Qe(N({},n),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors(Qe(N({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(n,e){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine({},e),this._parent._updateTouched({},e))}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let t=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Yr||this.status===er)&&this._runAsyncValidator(t,n.emitEvent)}let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new pa(this.value,e)),this._events.next(new tr(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(Qe(N({},n),{sourceControl:e}))}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Kr:Yr}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n,e){if(this.asyncValidator){this.status=er,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1};let t=wh(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:e,shouldHaveEmitted:n})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let n=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,n}return!1}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(n){let e=n;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((t,r)=>t&&t._find(r),this)}getError(n,e){let t=e?this.get(e):this;return t&&t.errors?t.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n,e,t){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),(n||t)&&this._events.next(new tr(this.status,e)),this._parent&&this._parent._updateControlsErrors(n,e,t)}_initObservables(){this.valueChanges=new z,this.statusChanges=new z}_calculateStatus(){return this._allControlsDisabled()?Kr:this.errors?ua:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(er)?er:this._anyControlsHaveStatus(ua)?ua:Yr}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n,e){let t=!this._anyControlsDirty(),r=this.pristine!==t;this.pristine=t,this._parent&&!n.onlySelf&&this._parent._updatePristine(n,e),r&&this._events.next(new Zr(this.pristine,e))}_updateTouched(n={},e){this.touched=this._anyControlsTouched(),this._events.next(new Jr(this.touched,e)),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,e)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){xa(n)&&n.updateOn!=null&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){let e=this._parent&&this._parent.dirty;return!n&&!!e&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=Lv(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=jv(this._rawAsyncValidators)}},ga=class extends fa{constructor(n,e,t){super(Mh(e),Ah(t,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,t={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,t={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){Bv(this,!0,n),Object.keys(n).forEach(t=>{Vv(this,!0,t),this.controls[t].setValue(n[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){n!=null&&(Object.keys(n).forEach(t=>{let r=this.controls[t];r&&r.patchValue(n[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((t,r)=>{t.reset(n?n[r]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(n,e,t)=>(n[t]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,t)=>t._syncPendingControls()?!0:e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{let t=this.controls[e];t&&n(t,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(let[e,t]of Object.entries(this.controls))if(this.contains(e)&&n(t))return!0;return!1}_reduceValue(){let n={};return this._reduceChildren(n,(e,t,r)=>((t.enabled||this.disabled)&&(e[r]=t.value),e))}_reduceChildren(n,e){let t=n;return this._forEachChild((r,o)=>{t=e(t,r,o)}),t}_allControlsDisabled(){for(let n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}};var wa=new C("CallSetDisabledState",{providedIn:"root",factory:()=>Ac}),Ac="always";function ba(i,n,e=Ac){Oc(i,n),n.valueAccessor.writeValue(i.value),(i.disabled||e==="always")&&n.valueAccessor.setDisabledState?.(i.disabled),Hv(i,n),Uv(i,n),Qv(i,n),zv(i,n)}function va(i,n,e=!0){let t=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(t),n.valueAccessor.registerOnTouched(t)),ya(i,n),i&&(n._invokeOnDestroyCallbacks(),i._registerOnCollectionChange(()=>{}))}function _a(i,n){i.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function zv(i,n){if(n.valueAccessor.setDisabledState){let e=t=>{n.valueAccessor.setDisabledState(t)};i.registerOnDisabledChange(e),n._registerOnDestroy(()=>{i._unregisterOnDisabledChange(e)})}}function Oc(i,n){let e=Sh(i);n.validator!==null?i.setValidators(hh(e,n.validator)):typeof e=="function"&&i.setValidators([e]);let t=Th(i);n.asyncValidator!==null?i.setAsyncValidators(hh(t,n.asyncValidator)):typeof t=="function"&&i.setAsyncValidators([t]);let r=()=>i.updateValueAndValidity();_a(n._rawValidators,r),_a(n._rawAsyncValidators,r)}function ya(i,n){let e=!1;if(i!==null){if(n.validator!==null){let r=Sh(i);if(Array.isArray(r)&&r.length>0){let o=r.filter(a=>a!==n.validator);o.length!==r.length&&(e=!0,i.setValidators(o))}}if(n.asyncValidator!==null){let r=Th(i);if(Array.isArray(r)&&r.length>0){let o=r.filter(a=>a!==n.asyncValidator);o.length!==r.length&&(e=!0,i.setAsyncValidators(o))}}}let t=()=>{};return _a(n._rawValidators,t),_a(n._rawAsyncValidators,t),e}function Hv(i,n){n.valueAccessor.registerOnChange(e=>{i._pendingValue=e,i._pendingChange=!0,i._pendingDirty=!0,i.updateOn==="change"&&Oh(i,n)})}function Qv(i,n){n.valueAccessor.registerOnTouched(()=>{i._pendingTouched=!0,i.updateOn==="blur"&&i._pendingChange&&Oh(i,n),i.updateOn!=="submit"&&i.markAsTouched()})}function Oh(i,n){i._pendingDirty&&i.markAsDirty(),i.setValue(i._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(i._pendingValue),i._pendingChange=!1}function Uv(i,n){let e=(t,r)=>{n.valueAccessor.writeValue(t),r&&n.viewToModelUpdate(t)};i.registerOnChange(e),n._registerOnDestroy(()=>{i._unregisterOnChange(e)})}function Rh(i,n){i==null,Oc(i,n)}function qv(i,n){return ya(i,n)}function Wv(i,n){if(!i.hasOwnProperty("model"))return!1;let e=i.model;return e.isFirstChange()?!0:!Object.is(n,e.currentValue)}function Gv(i){return Object.getPrototypeOf(i.constructor)===wv}function Fh(i,n){i._syncPendingControls(),n.forEach(e=>{let t=e.control;t.updateOn==="submit"&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function $v(i,n){if(!n)return null;Array.isArray(n);let e,t,r;return n.forEach(o=>{o.constructor===vh?e=o:Gv(o)?t=o:r=o}),r||t||e||null}function Yv(i,n){let e=i.indexOf(n);e>-1&&i.splice(e,1)}var Kv={provide:ir,useExisting:Lt(()=>_n)},Xr=Promise.resolve(),_n=(()=>{class i extends ir{get submitted(){return Yt(this.submittedReactive)}constructor(e,t,r){super(),this.callSetDisabledState=r,this._submitted=bi(()=>this.submittedReactive()),this.submittedReactive=gn(!1),this._directives=new Set,this.ngSubmit=new z,this.form=new ga({},Tc(e),Mc(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Xr.then(()=>{let t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),ba(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Xr.then(()=>{let t=this._findContainer(e.path);t&&t.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Xr.then(()=>{let t=this._findContainer(e.path),r=new ga({});Rh(r,e),t.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Xr.then(()=>{let t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){Xr.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submittedReactive.set(!0),Fh(this.form,this._directives),this.ngSubmit.emit(e),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static{this.\u0275fac=function(t){return new(t||i)(u(eo,10),u(Sc,10),u(wa,8))}}static{this.\u0275dir=D({type:i,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,r){t&1&&ee("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[de([Kv]),ne]})}}return i})();function fh(i,n){let e=i.indexOf(n);e>-1&&i.splice(e,1)}function gh(i){return typeof i=="object"&&i!==null&&Object.keys(i).length===2&&"value"in i&&"disabled"in i}var Xv=class extends fa{constructor(n=null,e,t){super(Mh(e),Ah(t,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),xa(e)&&(e.nonNullable||e.initialValueIsDefault)&&(gh(n)?this.defaultValue=n.value:this.defaultValue=n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(t=>t(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){fh(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){fh(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(n){gh(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}};var Zv=i=>i instanceof Xv;var Ph=new C(""),Jv={provide:ai,useExisting:Lt(()=>e_)},e_=(()=>{class i extends ai{set isDisabled(e){}static{this._ngModelWarningSentOnce=!1}constructor(e,t,r,o,a){super(),this._ngModelWarningConfig=o,this.callSetDisabledState=a,this.update=new z,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(t),this.valueAccessor=$v(this,r)}ngOnChanges(e){if(this._isControlChanged(e)){let t=e.form.previousValue;t&&va(t,this,!1),ba(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Wv(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&va(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}static{this.\u0275fac=function(t){return new(t||i)(u(eo,10),u(Sc,10),u(vn,10),u(Ph,8),u(wa,8))}}static{this.\u0275dir=D({type:i,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[de([Jv]),ne,Pe]})}}return i})(),t_={provide:ir,useExisting:Lt(()=>yn)},yn=(()=>{class i extends ir{get submitted(){return Yt(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}constructor(e,t,r){super(),this.callSetDisabledState=r,this._submitted=bi(()=>this._submittedReactive()),this._submittedReactive=gn(!1),this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new z,this._setValidators(e),this._setAsyncValidators(t)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(ya(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){let t=this.form.get(e.path);return ba(t,e,this.callSetDisabledState),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){va(e.control||null,e,!1),Yv(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this._submittedReactive.set(!0),Fh(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new Ec(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this._submittedReactive.set(!1),this.form._events.next(new Ic(this.form))}_updateDomValue(){this.directives.forEach(e=>{let t=e.control,r=this.form.get(e.path);t!==r&&(va(t||null,e),Zv(r)&&(ba(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let t=this.form.get(e.path);Rh(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let t=this.form.get(e.path);t&&qv(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Oc(this.form,this),this._oldForm&&ya(this._oldForm,this)}_checkFormPresent(){this.form}static{this.\u0275fac=function(t){return new(t||i)(u(eo,10),u(Sc,10),u(wa,8))}}static{this.\u0275dir=D({type:i,selectors:[["","formGroup",""]],hostBindings:function(t,r){t&1&&ee("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[de([t_]),ne,Pe]})}}return i})();var i_=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=L({})}}return i})();var Nh=(()=>{class i{static withConfig(e){return{ngModule:i,providers:[{provide:Ph,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:wa,useValue:e.callSetDisabledState??Ac}]}}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=L({imports:[i_]})}}return i})();function ka(i){return i&&typeof i.connect=="function"&&!(i instanceof vu)}var nr=function(i){return i[i.REPLACED=0]="REPLACED",i[i.INSERTED=1]="INSERTED",i[i.MOVED=2]="MOVED",i[i.REMOVED=3]="REMOVED",i}(nr||{}),to=new C("_ViewRepeater"),rr=class{applyChanges(n,e,t,r,o){n.forEachOperation((a,s,c)=>{let l,d;if(a.previousIndex==null){let h=t(a,s,c);l=e.createEmbeddedView(h.templateRef,h.context,h.index),d=nr.INSERTED}else c==null?(e.remove(s),d=nr.REMOVED):(l=e.get(s),e.move(l,c),d=nr.MOVED);o&&o({context:l?.context,operation:d,record:a})})}detach(){}};var Ca=class{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(n=!1,e,t=!0,r){this._multiple=n,this._emitChanges=t,this.compareWith=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new R,e&&e.length&&(n?e.forEach(o=>this._markSelected(o)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...n){this._verifyValueAssignment(n),n.forEach(t=>this._markSelected(t));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...n){this._verifyValueAssignment(n),n.forEach(t=>this._unmarkSelected(t));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...n){this._verifyValueAssignment(n);let e=this.selected,t=new Set(n);n.forEach(o=>this._markSelected(o)),e.filter(o=>!t.has(this._getConcreteValue(o,t))).forEach(o=>this._unmarkSelected(o));let r=this._hasQueuedChanges();return this._emitChangeEvent(),r}toggle(n){return this.isSelected(n)?this.deselect(n):this.select(n)}clear(n=!0){this._unmarkAll();let e=this._hasQueuedChanges();return n&&this._emitChangeEvent(),e}isSelected(n){return this._selection.has(this._getConcreteValue(n))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(n){this._multiple&&this.selected&&this._selected.sort(n)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(n){n=this._getConcreteValue(n),this.isSelected(n)||(this._multiple||this._unmarkAll(),this.isSelected(n)||this._selection.add(n),this._emitChanges&&this._selectedToEmit.push(n))}_unmarkSelected(n){n=this._getConcreteValue(n),this.isSelected(n)&&(this._selection.delete(n),this._emitChanges&&this._deselectedToEmit.push(n))}_unmarkAll(){this.isEmpty()||this._selection.forEach(n=>this._unmarkSelected(n))}_verifyValueAssignment(n){n.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(n,e){if(this.compareWith){e=e??this._selection;for(let t of e)if(this.compareWith(n,t))return t;return n}else return n}};var Da=(()=>{class i{constructor(){this._listeners=[]}notify(e,t){for(let r of this._listeners)r(e,t)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(t=>e!==t)}}ngOnDestroy(){this._listeners=[]}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=Z({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var Fc="Invariant Violation",jh=Object.setPrototypeOf,n_=jh===void 0?function(i,n){return i.__proto__=n,i}:jh,Sa=function(i){mt(n,i);function n(e){e===void 0&&(e=Fc);var t=i.call(this,typeof e=="number"?Fc+": "+e+" (see https://github.com/apollographql/invariant-packages)":e)||this;return t.framesToPop=1,t.name=Fc,n_(t,n.prototype),t}return n}(Error);function Wi(i,n){if(!i)throw new Sa(n)}var Ia=["debug","log","warn","error","silent"],Pc=Ia.indexOf("log");function Ea(i){return function(){if(Ia.indexOf(i)>=Pc){var n=console[i]||console.log;return n.apply(console,arguments)}}}(function(i){i.debug=Ea("debug"),i.log=Ea("log"),i.warn=Ea("warn"),i.error=Ea("error")})(Wi||(Wi={}));function Vh(i){var n=Ia[Pc];return Pc=Math.max(0,Ia.indexOf(i)),n}var io="3.11.8";function xt(i){try{return i()}catch{}}var or=xt(function(){return globalThis})||xt(function(){return window})||xt(function(){return self})||xt(function(){return global})||xt(function(){return xt.constructor("return this")()});var Bh=new Map;function no(i){var n=Bh.get(i)||1;return Bh.set(i,n+1),"".concat(i,":").concat(n,":").concat(Math.random().toString(36).slice(2))}function Ta(i,n){n===void 0&&(n=0);var e=no("stringifyForDisplay");return JSON.stringify(i,function(t,r){return r===void 0?e:r},n).split(JSON.stringify(e)).join("")}function Ma(i){return function(n){for(var e=[],t=1;t"}}function Nc(i,n){if(n===void 0&&(n=[]),!!i)return or[zh]&&or[zh](i,n.map(Hh))}function Lc(i,n){if(n===void 0&&(n=[]),!!i)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:io,message:i,args:n.map(Hh)})))}var r_=globalThis.__DEV__!==!1;function ar(i,n){if(!!!i)throw new Error(n)}function Qh(i){return typeof i=="object"&&i!==null}function Uh(i,n){if(!!!i)throw new Error(n??"Unexpected invariant triggered.")}var o_=/\r\n|[\n\r]/g;function sr(i,n){let e=0,t=1;for(let r of i.body.matchAll(o_)){if(typeof r.index=="number"||Uh(!1),r.index>=n)break;e=r.index+r[0].length,t+=1}return{line:t,column:n+1-e}}function jc(i){return Aa(i.source,sr(i.source,i.start))}function Aa(i,n){let e=i.locationOffset.column-1,t="".padStart(e)+i.body,r=n.line-1,o=i.locationOffset.line-1,a=n.line+o,s=n.line===1?e:0,c=n.column+s,l=`${i.name}:${a}:${c} `,d=t.split(/\r\n|[\n\r]/g),h=d[r];if(h.length>120){let m=Math.floor(c/80),p=c%80,f=[];for(let g=0;g["|",g]),["|","^".padStart(p)],["|",f[m+1]]])}return l+qh([[`${a-1} |`,d[r-1]],[`${a} |`,h],["|","^".padStart(c)],[`${a+1} |`,d[r+1]]])}function qh(i){let n=i.filter(([t,r])=>r!==void 0),e=Math.max(...n.map(([t])=>t.length));return n.map(([t,r])=>t.padStart(e)+(r?" "+r:"")).join(` `)}function a_(i){let n=i[0];return n==null||"kind"in n||"length"in n?{nodes:n,source:i[1],positions:i[2],path:i[3],originalError:i[4],extensions:i[5]}:n}var Oa=class i extends Error{constructor(n,...e){var t,r,o;let{nodes:a,source:s,positions:c,path:l,originalError:d,extensions:h}=a_(e);super(n),this.name="GraphQLError",this.path=l??void 0,this.originalError=d??void 0,this.nodes=Wh(Array.isArray(a)?a:a?[a]:void 0);let m=Wh((t=this.nodes)===null||t===void 0?void 0:t.map(f=>f.loc).filter(f=>f!=null));this.source=s??(m==null||(r=m[0])===null||r===void 0?void 0:r.source),this.positions=c??m?.map(f=>f.start),this.locations=c&&s?c.map(f=>sr(s,f)):m?.map(f=>sr(f.source,f.start));let p=Qh(d?.extensions)?d?.extensions:void 0;this.extensions=(o=h??p)!==null&&o!==void 0?o:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),d!=null&&d.stack?Object.defineProperty(this,"stack",{value:d.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,i):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let n=this.message;if(this.nodes)for(let e of this.nodes)e.loc&&(n+=` diff --git a/webui/dist/bitmagnet/browser/chunk-HTST7QW3.js b/webui/dist/bitmagnet/browser/chunk-HTST7QW3.js new file mode 100644 index 00000000..d0cdf632 --- /dev/null +++ b/webui/dist/bitmagnet/browser/chunk-HTST7QW3.js @@ -0,0 +1,3 @@ +import{c as Lt,d as Nt,e as jt,f as Gt}from"./chunk-7B77IKGA.js";import{b as Qt}from"./chunk-C7MPMHOQ.js";import{a as dt}from"./chunk-33KK2FKQ.js";import{a as R}from"./chunk-TC5EWLZ6.js";import{$ as wt,Da as kt,Ea as It,Fa as Et,Ga as At,Ha as Pt,I as _t,Ia as Ot,Ja as Vt,K as ut,Ka as Dt,La as Bt,M as gt,Ma as $t,N as xt,Na as Rt,O as Ct,Oa as Ht,P as ht,Pa as zt,Qa as Ft,R as Tt,T as ft,Ua as $,X as bt,Z as vt,aa as St,b as V,ba as yt,d as rt,e as lt,f as st,g as ct,n as mt,o as pt,qa as D,va as Mt,ya as B}from"./chunk-HB55W55I.js";import{c as it,d as ot,g as Q,h as j,i as at}from"./chunk-6XXA7HXI.js";import{j as et,l as nt}from"./chunk-ZBBMS7J5.js";import{$b as s,$c as tt,Cb as p,Ea as _,Fa as u,Gb as Y,Hb as m,Kb as J,Mb as w,N as k,Na as A,Nb as H,Ob as z,Pb as F,Qb as l,Rb as r,Sb as h,Tb as T,Ub as f,Wb as b,Zb as g,cc as L,h as U,ha as y,hb as K,jc as N,kb as o,kc as c,l as q,lc as x,mc as S,nc as W,o as M,pc as P,qa as v,qc as X,ua as E,uc as I,vc as O,wc as Z}from"./chunk-FJILXII2.js";var Ae=(e,a)=>{let n=G(e,a)?.split(",").map(i=>i.trim()).filter(Boolean);return n?.length?Array.from(new Set(n)).sort():void 0},G=(e,a)=>typeof e[a]=="string"&&decodeURIComponent(e[a])||void 0,Pe=(e,a)=>{if(e&&e[a]&&/^\d+$/.test(e[a]))return parseInt(e[a])};function Jt(e,a){if(e&1&&(l(0,"span",7),c(1),r()),e&2){let t=s(2).$implicit;o(),x(t("torrents.copy"))}}function Wt(e,a){if(e&1&&(l(0,"mat-icon"),c(1,"content_copy"),r(),p(2,Jt,2,1,"span",7)),e&2){let t=s(2);o(2),w(t.breakpoints.sizeAtLeast("Medium")?2:-1)}}function Xt(e,a){if(e&1&&(l(0,"mat-card")(1,"mat-card-actions",8)(2,"button",9),h(3,"mat-icon",10),c(4),r(),l(5,"button",9)(6,"mat-icon"),c(7,"tag"),r(),c(8),r()()()),e&2){let t=s().$implicit,n=s();o(2),m("disabled",!n.selectedItems.length)("cdkCopyToClipboard",n.getSelectedMagnetLinks()),o(2),S("",t("torrents.magnet_links")," "),o(),m("disabled",!n.selectedItems.length)("cdkCopyToClipboard",n.getSelectedInfoHashes()),o(3),S("",t("torrents.info_hashes")," ")}}function Zt(e,a){if(e&1&&(l(0,"span",7),c(1),r()),e&2){let t=s(2).$implicit;o(),x(t("torrents.edit_tags"))}}function te(e,a){if(e&1&&(l(0,"mat-icon"),c(1,"sell"),r(),p(2,Zt,2,1,"span",7)),e&2){let t=s(2);o(2),w(t.breakpoints.sizeAtLeast("Medium")?2:-1)}}function ee(e,a){if(e&1){let t=b();l(0,"mat-chip-row",20),g("edited",function(i){let d=_(t).$implicit,C=s(3);return u(C.renameTag(d,i.value))})("removed",function(){let i=_(t).$implicit,d=s(3);return u(d.deleteTag(i))}),c(1),l(2,"mat-icon",21),c(3,"cancel"),r()()}if(e&2){let t=a.$implicit;m("editable",!0)("aria-description","press enter to edit"),o(),S(" ",t," ")}}function ne(e,a){if(e&1&&(l(0,"mat-option",16),c(1),r()),e&2){let t=a.$implicit;m("value",t),o(),x(t)}}function ie(e,a){if(e&1){let t=b();l(0,"mat-card")(1,"mat-form-field",11)(2,"mat-chip-grid",12,0),z(4,ee,4,3,"mat-chip-row",13,H),r(),l(6,"input",14),g("matChipInputTokenEnd",function(i){_(t);let d=s(2);return u(i.value&&d.addTag(i.value))}),r(),l(7,"mat-autocomplete",15,1),g("optionSelected",function(i){_(t);let d=s(2);return u(d.addTag(i.option.viewValue))}),z(9,ne,2,2,"mat-option",16,H),r()(),l(11,"mat-card-actions",8)(12,"button",17),g("click",function(){_(t);let i=s(2);return u(i.setTags())}),c(13," Set tags "),r(),l(14,"button",18),g("click",function(){_(t);let i=s(2);return u(i.putTags())}),c(15," Put tags "),r(),l(16,"button",19),g("click",function(){_(t);let i=s(2);return u(i.deleteTags())}),c(17," Delete tags "),r()()()}if(e&2){let t=N(3),n=N(8),i=s(2);o(4),F(i.editedTags),o(2),m("formControl",i.newTagCtrl)("matAutocomplete",n)("matChipInputFor",t)("matChipInputSeparatorKeyCodes",i.separatorKeysCodes)("value",i.newTagCtrl.value),o(3),F(i.suggestedTags),o(3),m("disabled",!i.selectedItems.length),o(2),m("disabled",!i.selectedItems.length||!i.editedTags.length&&!i.newTagCtrl.value),o(2),m("disabled",!i.selectedItems.length||!i.editedTags.length&&!i.newTagCtrl.value)}}function oe(e,a){if(e&1&&(l(0,"span",7),c(1),r()),e&2){let t=s(2).$implicit;o(),x(t("torrents.delete"))}}function ae(e,a){if(e&1&&(l(0,"mat-icon"),c(1,"delete_forever"),r(),p(2,oe,2,1,"span",7)),e&2){let t=s(2);o(2),w(t.breakpoints.sizeAtLeast("Medium")?2:-1)}}function re(e,a){if(e&1){let t=b();l(0,"mat-card")(1,"mat-card-content")(2,"p")(3,"strong"),c(4,"Are you sure you want to delete the selected torrents?"),r(),h(5,"br"),c(6,"This action cannot be undone. "),r()(),l(7,"mat-card-actions",8)(8,"button",22),g("click",function(){_(t);let i=s(2);return u(i.deleteTorrents())}),l(9,"mat-icon"),c(10,"delete_forever"),r(),c(11,"Delete "),r()()()}if(e&2){let t=s(2);o(8),m("disabled",!t.selectedItems.length)}}function le(e,a){e&1&&(l(0,"mat-icon",23),c(1,"close"),r())}function se(e,a){e&1&&(l(0,"mat-tab"),p(1,le,2,0,"ng-template",5),r())}function ce(e,a){if(e&1){let t=b();T(0),l(1,"mat-tab-group",3),g("focusChange",function(i){_(t);let d=s();return u(d.selectTab(i.index==4?0:i.index))}),h(2,"mat-tab",4),l(3,"mat-tab"),p(4,Wt,3,1,"ng-template",5)(5,Xt,9,6,"ng-template",6),r(),l(6,"mat-tab"),p(7,te,3,1,"ng-template",5)(8,ie,18,8,"ng-template",6),r(),l(9,"mat-tab"),p(10,ae,3,1,"ng-template",5)(11,re,12,1,"ng-template",6),r(),p(12,se,2,0,"mat-tab"),r(),f()}if(e&2){let t=s();o(),m("selectedIndex",t.selectedTabIndex)("mat-stretch-tabs",!1),o(),m("aria-labelledby","hidden"),o(10),w(t.selectedTabIndex>0?12:-1)}}var tn=(()=>{class e{constructor(){this.graphQLService=v(_t),this.errorsService=v(dt),this.breakpoints=v(R),this.selectedItems$=new U,this.updated=new A,this.separatorKeysCodes=[13,188],this.selectedTabIndex=0,this.newTagCtrl=new st(""),this.editedTags=Array(),this.suggestedTags=Array(),this.selectedItems=new Array}ngOnInit(){this.selectedItems$.subscribe(t=>{this.selectedItems=t})}selectTab(t){this.selectedTabIndex=t}getSelectedMagnetLinks(){return this.selectedItems.map(t=>t.torrent.magnetUri).join(` +`)}getSelectedInfoHashes(){return this.selectedItems.map(t=>t.infoHash).join(` +`)}addTag(t){this.editedTags.includes(t)||this.editedTags.push(t),this.newTagCtrl.reset(),this.updateSuggestedTags()}deleteTag(t){this.editedTags=this.editedTags.filter(n=>n!==t),this.updateSuggestedTags()}renameTag(t,n){this.editedTags=this.editedTags.map(i=>i===t?n:i),this.updateSuggestedTags()}putTags(){let t=this.selectedItems.map(({infoHash:n})=>n);if(t.length)return this.newTagCtrl.value&&this.addTag(this.newTagCtrl.value),this.graphQLService.torrentPutTags({infoHashes:t,tagNames:this.editedTags}).pipe(k(n=>(this.errorsService.addError(`Error putting tags: ${n.message}`),M))).pipe(y(()=>{this.updated.emit()})).subscribe()}setTags(){let t=this.selectedItems.map(({infoHash:n})=>n);if(t.length)return this.newTagCtrl.value&&this.addTag(this.newTagCtrl.value),this.graphQLService.torrentSetTags({infoHashes:t,tagNames:this.editedTags}).pipe(k(n=>(this.errorsService.addError(`Error setting tags: ${n.message}`),M))).pipe(y(()=>{this.updated.emit()})).subscribe()}deleteTags(){let t=this.selectedItems.map(({infoHash:n})=>n);if(t.length)return this.newTagCtrl.value&&this.addTag(this.newTagCtrl.value),this.graphQLService.torrentDeleteTags({infoHashes:t,tagNames:this.editedTags}).pipe(k(n=>(this.errorsService.addError(`Error deleting tags: ${n.message}`),M))).pipe(y(()=>{this.updated.emit()})).subscribe()}updateSuggestedTags(){return this.graphQLService.torrentSuggestTags({input:{prefix:this.newTagCtrl.value,exclusions:this.editedTags}}).pipe(y(t=>{this.suggestedTags.splice(0,this.suggestedTags.length,...t.suggestions.map(n=>n.name))})).subscribe()}deleteTorrents(){let t=this.selectedItems.map(({infoHash:n})=>n);this.graphQLService.torrentDelete({infoHashes:t}).pipe(k(n=>(this.errorsService.addError(`Error deleting torrents: ${n.message}`),M))).pipe(y(()=>{this.updated.emit()})).subscribe()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=E({type:e,selectors:[["app-torrents-bulk-actions"]],inputs:{selectedItems$:"selectedItems$"},outputs:{updated:"updated"},standalone:!0,features:[P],decls:1,vars:0,consts:[["chipGrid",""],["auto","matAutocomplete"],[4,"transloco"],["animationDuration","0",1,"tab-group-bulk-actions",3,"focusChange","selectedIndex","mat-stretch-tabs"],[1,"bulk-tab-placeholder",3,"aria-labelledby"],["mat-tab-label",""],["matTabContent",""],[1,"label"],[1,"button-row"],["mat-stroked-button","",3,"disabled","cdkCopyToClipboard"],["svgIcon","magnet"],["subscriptSizing","dynamic",1,"form-edit-tags"],["aria-label","Enter tags"],[3,"editable","aria-description"],["placeholder","Tag...",3,"matChipInputTokenEnd","formControl","matAutocomplete","matChipInputFor","matChipInputSeparatorKeyCodes","value"],[3,"optionSelected"],[3,"value"],["mat-stroked-button","","color","primary","matTooltip","Replace tags of the selected torrents",3,"click","disabled"],["mat-stroked-button","","color","primary","matTooltip","Add tags to the selected torrents",3,"click","disabled"],["mat-stroked-button","","color","primary","matTooltip","Remove tags from the selected torrents",3,"click","disabled"],[3,"edited","removed","editable","aria-description"],["matChipRemove",""],["mat-stroked-button","","color","warn",3,"click","disabled"],[2,"margin-right","0"]],template:function(n,i){n&1&&p(0,ce,13,4,"ng-container",2)},dependencies:[$,ut,xt,mt,Ct,pt,ht,ft,Tt,wt,St,bt,vt,gt,D,Rt,Ht,zt,Ft,B,rt,lt,ct,V],styles:["mat-tab-group[_ngcontent-%COMP%]{padding-left:10px}button[_ngcontent-%COMP%]{margin-right:10px}p[_ngcontent-%COMP%]{margin-top:0} .mdc-tab[aria-labelledby=hidden]{display:none}"]})}}return e})();var me=()=>["expandedDetail"];function pe(e,a){if(e&1){let t=b();l(0,"th",19)(1,"mat-checkbox",20),g("change",function(){_(t);let i=s(2);return u(i.toggleAllRows())}),r()()}if(e&2){let t=s().$implicit,n=s();o(),m("checked",n.selection.hasValue()&&n.isAllSelected())("indeterminate",n.selection.hasValue()&&!n.isAllSelected())("matTooltip",n.isAllSelected()?t("torrents.deselect_all"):t("torrents.select_all"))}}function de(e,a){if(e&1){let t=b();l(0,"td",21)(1,"mat-checkbox",22),g("click",function(i){return _(t),u(i.stopPropagation())})("change",function(i){let d=_(t).$implicit,C=s(2);return u(i?C.selection.toggle(C.item(d).infoHash):null)}),r()()}if(e&2){let t=a.$implicit,n=s(2);o(),m("checked",n.selection.isSelected(n.item(t).infoHash))}}function _e(e,a){if(e&1&&(l(0,"th",19),c(1),r()),e&2){let t=s().$implicit;o(),x(t("torrents.summary"))}}function ue(e,a){if(e&1&&(l(0,"p",26),c(1),r()),e&2){let t=s().$implicit,n=s(2);o(),x(n.item(t).torrent.name)}}function ge(e,a){if(e&1){let t=b();l(0,"td",23),g("click",function(i){let d=_(t).$implicit;return s(2).toggleTorrentContentId(d.id),u(i.stopPropagation())}),l(1,"mat-icon",24),c(2),r(),l(3,"span",25),c(4),r(),p(5,ue,2,1,"p",26),h(6,"app-torrent-chips",27),r()}if(e&2){let t,n,i=a.$implicit,d=s().$implicit,C=s();o(),m("matTooltip",d("content_types.singular."+((t=C.item(i).contentType)!==null&&t!==void 0?t:"null"))),o(),x((n=(n=C.contentTypeInfo(C.item(i).contentType))==null?null:n.icon)!==null&&n!==void 0?n:"question_mark"),o(2),x(C.item(i).title),o(),w(C.item(i).title!==C.item(i).torrent.name?5:-1),o(),m("torrentContent",i)}}function xe(e,a){if(e&1&&(l(0,"th",19),c(1),r()),e&2){let t=s().$implicit;o(),x(t("torrents.size"))}}function Ce(e,a){if(e&1&&(l(0,"td",21)(1,"span",28),I(2,"filesize"),c(3),I(4,"filesize"),r()()),e&2){let t=a.$implicit,n=s(2);o(),m("matTooltip",Z(2,2,n.item(t).torrent.size,10)),o(2),x(O(4,5,n.item(t).torrent.size))}}function he(e,a){if(e&1&&(l(0,"th",19),c(1),r()),e&2){let t=s().$implicit;o(),x(t("torrents.published"))}}function Te(e,a){if(e&1&&(l(0,"td",29)(1,"abbr",30),c(2),I(3,"timeAgo"),r()()),e&2){let t=a.$implicit,n=s(2);o(),L("matTooltip",n.item(t).publishedAt),o(),S(" ",O(3,2,n.item(t).publishedAt)," ")}}function fe(e,a){if(e&1&&(l(0,"th",19)(1,"abbr",24),c(2),r()()),e&2){let t=s().$implicit;o(),m("matTooltip",t("torrents.seeders")+" / "+t("torrents.leechers")),o(),x(t("torrents.s_l"))}}function be(e,a){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t,n=a.$implicit,i=s(2);o(),W(" ",(t=i.item(n).seeders)!==null&&t!==void 0?t:"?"," / ",(t=i.item(n).leechers)!==null&&t!==void 0?t:"?"," ")}}function ve(e,a){if(e&1&&(l(0,"th",31),c(1),r()),e&2){let t=s().$implicit;o(),S(" ",t("torrents.magnet")," ")}}function we(e,a){if(e&1&&(l(0,"td",21)(1,"a",32),h(2,"mat-icon",33),r()()),e&2){let t=a.$implicit,n=s(2);o(),L("href",n.item(t).torrent.magnetUri,K)}}function Se(e,a){if(e&1){let t=b();l(0,"td",21)(1,"div",34)(2,"app-torrent-content",35),g("updated",function(){let i=_(t).$implicit,d=s(2);return u(d.updated.emit(d.item(i).infoHash))}),r()()()}if(e&2){let t=a.$implicit,n=s(2);Y("colspan",n.displayedColumns.length),o(),m("@detailExpand",n.expandedId.getValue()===t.id?"expanded":"collapsed"),o(),m("torrentContent",t)("size",!1)("published",n.breakpoints.sizeAtLeast("Medium"))("peers",n.breakpoints.sizeAtLeast("Medium"))}}function ye(e,a){e&1&&h(0,"tr",36)}function Me(e,a){if(e&1&&h(0,"tr",37),e&2){let t=a.$implicit,n=s(2);J("summary-row "+(t.id===n.expandedId.getValue()?"expanded":"collapsed"))}}function ke(e,a){e&1&&h(0,"tr",38)}function Ie(e,a){if(e&1&&(T(0),l(1,"div",1),h(2,"mat-progress-bar",2),I(3,"async"),r(),l(4,"table",3),T(5,4),p(6,pe,2,3,"th",5)(7,de,2,1,"td",6),f(),T(8,7),p(9,_e,2,1,"th",5)(10,ge,7,5,"td",8),f(),T(11,9),p(12,xe,2,1,"th",5)(13,Ce,5,7,"td",6),f(),T(14,10),p(15,he,2,1,"th",5)(16,Te,4,4,"td",11),f(),T(17,12),p(18,fe,3,2,"th",5)(19,be,2,2,"td",6),f(),T(20,13),p(21,ve,2,1,"th",14)(22,we,3,1,"td",6),f(),T(23,15),p(24,Se,3,6,"td",6),f(),p(25,ye,1,0,"tr",16)(26,Me,1,2,"tr",17)(27,ke,1,0,"tr",18),r(),f()),e&2){let t=s();o(2),m("mode",O(3,7,t.dataSource.loading$)?"indeterminate":"determinate")("value",0),o(2),m("dataSource",t.dataSource)("multiTemplateDataRows",!0),o(21),m("matHeaderRowDef",t.displayedColumns),o(),m("matRowDefColumns",t.displayedColumns),o(),m("matRowDefColumns",X(9,me))}}var vn=(()=>{class e{constructor(){this.route=v(et),this.router=v(nt),this.breakpoints=v(R),this.contentTypeInfo=Lt,this.displayedColumns=Ee,this.updated=new A,this.items=Array(),this.expandedId=new q(null)}ngOnInit(){this.dataSource.items$.subscribe(t=>{this.items=t}),this.route.queryParams.subscribe(t=>{let n=this.expandedId.getValue()??void 0,i=G(t,"expanded");n!==i&&this.expandedId.next(i??null)}),this.expandedId.subscribe(t=>{this.router.navigate([],{relativeTo:this.route,queryParams:{expanded:t?encodeURIComponent(t):void 0},queryParamsHandling:"merge"})})}isAllSelected(){return this.items.every(t=>this.selection.isSelected(t.infoHash))}toggleAllRows(){if(this.isAllSelected()){this.selection.clear();return}this.selection.select(...this.items.map(t=>t.infoHash))}toggleTorrentContentId(t){this.expandedId.getValue()===t?this.expandedId.next(null):this.expandedId.next(t)}item(t){return t}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=E({type:e,selectors:[["app-torrents-table"]],inputs:{dataSource:"dataSource",selection:"selection",displayedColumns:"displayedColumns"},outputs:{updated:"updated"},standalone:!0,features:[P],decls:1,vars:0,consts:[[4,"transloco"],[1,"progress-bar-container"],[3,"mode","value"],["mat-table","",1,"table-torrents",3,"dataSource","multiTemplateDataRows"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","summary"],["mat-cell","",3,"click",4,"matCellDef"],["matColumnDef","size"],["matColumnDef","publishedAt"],["class","td-published-at","mat-cell","",4,"matCellDef"],["matColumnDef","peers"],["matColumnDef","magnet"],["mat-header-cell","","style","text-align: center",4,"matHeaderCellDef"],["matColumnDef","expandedDetail"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"class",4,"matRowDef","matRowDefColumns"],["mat-row","","class","expanded-detail-row",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],[3,"change","checked","indeterminate","matTooltip"],["mat-cell",""],[3,"click","change","checked"],["mat-cell","",3,"click"],[3,"matTooltip"],[1,"title"],[1,"original-name"],[3,"torrentContent"],[1,"filesize",3,"matTooltip"],["mat-cell","",1,"td-published-at"],["matTooltipClass","tooltip-published-at",3,"matTooltip"],["mat-header-cell","",2,"text-align","center"],[3,"href"],["svgIcon","magnet"],[1,"item-detail"],[3,"updated","torrentContent","size","published","peers"],["mat-header-row",""],["mat-row",""],["mat-row","",1,"expanded-detail-row"]],template:function(n,i){n&1&&p(0,Ie,28,10,"ng-container",0)},dependencies:[$,yt,D,Mt,kt,Et,Vt,At,It,Dt,Pt,Ot,Bt,$t,B,V,tt,Nt,Qt,jt,Gt],styles:[".progress-bar-container[_ngcontent-%COMP%]{height:10px}tr.expanded-detail-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-bottom-width:0}tr.expanded[_ngcontent-%COMP%] + tr.expanded-detail-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-bottom-width:1px}th.cdk-column-select[_ngcontent-%COMP%], td.cdk-column-select[_ngcontent-%COMP%]{padding-right:0}td.mat-column-summary[_ngcontent-%COMP%]{vertical-align:middle;cursor:pointer;white-space:pre-wrap;padding-top:8px;padding-bottom:8px}td.mat-column-summary[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{line-height:30px;overflow:hidden;margin-right:20px;font-weight:700}td.mat-column-summary[_ngcontent-%COMP%] .original-name[_ngcontent-%COMP%]{margin:2px 0 8px 34px}td.mat-column-summary[_ngcontent-%COMP%] .title[_ngcontent-%COMP%], td.mat-column-summary[_ngcontent-%COMP%] .original-name[_ngcontent-%COMP%]{white-space:pre-wrap;word-break:break-word;overflow-wrap:break-word}td.mat-column-summary[_ngcontent-%COMP%] > .mat-icon[_ngcontent-%COMP%]{display:inline-block;position:relative;top:6px;margin-right:10px}td.mat-column-summary[_ngcontent-%COMP%] mat-chip-set[_ngcontent-%COMP%]{display:inline-block;margin-left:10px}td.mat-column-summary[_ngcontent-%COMP%] mat-chip-set[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{margin:2px 10px 2px 0}tr.expanded-detail-row[_ngcontent-%COMP%]{height:0}tr.mat-mdc-row.expanded[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-bottom:0}tr.mat-mdc-row.expanded[_ngcontent-%COMP%] + .expanded-detail-row[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{padding-bottom:10px}.mat-column-magnet[_ngcontent-%COMP%]{text-align:center}.mat-column-magnet[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{position:relative;top:3px}.item-detail[_ngcontent-%COMP%]{width:100%;overflow:hidden}.td-published-at[_ngcontent-%COMP%] abbr[_ngcontent-%COMP%]{cursor:default;text-decoration:underline;text-decoration-style:dotted}.cdk-column-peers[_ngcontent-%COMP%]{white-space:nowrap}span.filesize[_ngcontent-%COMP%]{text-decoration:underline;text-decoration-style:dotted}"],data:{animation:[it("detailExpand",[j("collapsed,void",Q({height:"0px",minHeight:"0"})),j("expanded",Q({height:"*"})),at("expanded <=> collapsed",ot("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}})}}return e})(),Ee=["select","summary","size","publishedAt","peers","magnet"],wn=["select","summary","size","magnet"];export{Ae as a,G as b,Pe as c,tn as d,vn as e,Ee as f,wn as g}; diff --git a/webui/dist/bitmagnet/browser/chunk-5PLW2W3L.js b/webui/dist/bitmagnet/browser/chunk-IXRQ7PJP.js similarity index 88% rename from webui/dist/bitmagnet/browser/chunk-5PLW2W3L.js rename to webui/dist/bitmagnet/browser/chunk-IXRQ7PJP.js index fd2096ae..82bb16b3 100644 --- a/webui/dist/bitmagnet/browser/chunk-5PLW2W3L.js +++ b/webui/dist/bitmagnet/browser/chunk-IXRQ7PJP.js @@ -1 +1 @@ -import"./chunk-LACCEILM.js";import"./chunk-ZVYX4MB3.js";import"./chunk-DKVITRV6.js";import"./chunk-KUHKEGBL.js";import"./chunk-3PIWRAOL.js";import{a as R}from"./chunk-M3BEO55A.js";import{Aa as z,Ba as q,Ca as B,Ua as F,b as y,p as D,qa as I,r as S,ya as E}from"./chunk-4NEHCUZ2.js";import"./chunk-6XXA7HXI.js";import{k as L,m as h,n as T}from"./chunk-FKMTSCBK.js";import{$b as O,Cb as M,Ea as _,Fa as f,Gb as C,Hb as l,Kb as p,Qb as r,Rb as i,Sb as d,Tb as w,Ub as b,Wb as k,Zb as x,jc as a,kb as t,kc as c,lc as s,pc as A,qa as g,qc as P,ua as v}from"./chunk-3DR3CJRN.js";var Q=()=>({exact:!0});function $(n,V){if(n&1){let e=k();w(0),r(1,"mat-drawer-container",6)(2,"mat-drawer",7,0)(4,"nav")(5,"ul")(6,"li")(7,"a",8,1)(9,"mat-icon"),c(10,"dashboard"),i(),c(11),i()(),r(12,"li")(13,"a",9,2),d(15,"mat-icon",10),c(16),i()(),r(17,"li")(18,"a",11,3),d(20,"mat-icon",12),c(21),i()()()()(),r(22,"mat-drawer-content")(23,"div",13)(24,"button",14),x("click",function(){_(e);let m=a(3);return f(m.toggle())}),r(25,"mat-icon",15),c(26),i()()(),d(27,"router-outlet",null,4),i()(),b()}if(n&2){let e=V.$implicit,o=a(3),m=a(8),j=a(14),H=a(19),u=O();t(2),l("mode",u.breakpoints.sizeAtLeast("Medium")?"side":"over")("opened",u.breakpoints.sizeAtLeast("Medium")),C("role",u.breakpoints.sizeAtLeast("Medium")?"navigation":"dialog"),t(5),p(m.isActive?"active":""),l("routerLinkActiveOptions",P(15,Q)),t(4),s(e("routes.home")),t(2),p(j.isActive?"active":""),t(3),s(e("routes.queues")),t(2),p(H.isActive?"active":""),t(3),s(e("routes.torrents")),t(3),l("matTooltip",e("torrents.toggle_drawer")),t(2),s(o.opened?"arrow_circle_left":"arrow_circle_right")}}var st=(()=>{class n{constructor(){this.breakpoints=g(R)}static{this.\u0275fac=function(o){return new(o||n)}}static{this.\u0275cmp=v({type:n,selectors:[["app-dashboard"]],standalone:!0,features:[A],decls:1,vars:0,consts:[["drawer",""],["linkHome","routerLinkActive"],["linkQueues","routerLinkActive"],["linkTorrents","routerLinkActive"],["outlet",""],[4,"transloco"],[1,"drawer-container"],[1,"drawer",3,"mode","opened"],["mat-button","","routerLink","/dashboard","routerLinkActive","",3,"routerLinkActiveOptions"],["mat-button","","routerLink","queues","routerLinkActive",""],["svgIcon","queue"],["mat-button","","routerLink","torrents","routerLinkActive",""],["svgIcon","magnet"],[1,"form-field-container","button-container","button-container-toggle-drawer"],["type","button","mat-icon-button","",1,"button-toggle-drawer",3,"click","matTooltip"],["aria-label","Side nav toggle icon","fontSet","material-icons"]],template:function(o,m){o&1&&M(0,$,29,16,"ng-container",5)},dependencies:[F,D,S,I,q,B,z,E,L,h,T,y],styles:["mat-drawer[_ngcontent-%COMP%] nav[_ngcontent-%COMP%]{padding-top:12px;--mat-text-button-icon-spacing: 14px}mat-drawer[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{list-style-type:none;padding-left:0}mat-drawer[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:100%;font-size:var(--mat-expansion-container-text-size);justify-content:flex-start;padding-left:20px}mat-drawer[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-bottom:6px}mat-drawer-content[_ngcontent-%COMP%] .button-container-toggle-drawer[_ngcontent-%COMP%]{position:absolute;left:20px;top:28px;z-index:100}.drawer[_ngcontent-%COMP%]{width:220px}"]})}}return n})();export{st as DashboardComponent}; +import"./chunk-HTST7QW3.js";import"./chunk-7B77IKGA.js";import"./chunk-C7MPMHOQ.js";import"./chunk-JIO2QO4M.js";import"./chunk-33KK2FKQ.js";import{a as R}from"./chunk-TC5EWLZ6.js";import{Aa as z,Ba as q,Ca as B,Ua as F,b as y,p as D,qa as I,r as S,ya as E}from"./chunk-HB55W55I.js";import"./chunk-6XXA7HXI.js";import{k as L,m as h,n as T}from"./chunk-ZBBMS7J5.js";import{$b as O,Cb as M,Ea as _,Fa as f,Gb as C,Hb as l,Kb as p,Qb as r,Rb as i,Sb as d,Tb as w,Ub as b,Wb as k,Zb as x,jc as a,kb as t,kc as c,lc as s,pc as A,qa as g,qc as P,ua as v}from"./chunk-FJILXII2.js";var Q=()=>({exact:!0});function $(n,V){if(n&1){let e=k();w(0),r(1,"mat-drawer-container",6)(2,"mat-drawer",7,0)(4,"nav")(5,"ul")(6,"li")(7,"a",8,1)(9,"mat-icon"),c(10,"dashboard"),i(),c(11),i()(),r(12,"li")(13,"a",9,2),d(15,"mat-icon",10),c(16),i()(),r(17,"li")(18,"a",11,3),d(20,"mat-icon",12),c(21),i()()()()(),r(22,"mat-drawer-content")(23,"div",13)(24,"button",14),x("click",function(){_(e);let m=a(3);return f(m.toggle())}),r(25,"mat-icon",15),c(26),i()()(),d(27,"router-outlet",null,4),i()(),b()}if(n&2){let e=V.$implicit,o=a(3),m=a(8),j=a(14),H=a(19),u=O();t(2),l("mode",u.breakpoints.sizeAtLeast("Medium")?"side":"over")("opened",u.breakpoints.sizeAtLeast("Medium")),C("role",u.breakpoints.sizeAtLeast("Medium")?"navigation":"dialog"),t(5),p(m.isActive?"active":""),l("routerLinkActiveOptions",P(15,Q)),t(4),s(e("routes.home")),t(2),p(j.isActive?"active":""),t(3),s(e("routes.queues")),t(2),p(H.isActive?"active":""),t(3),s(e("routes.torrents")),t(3),l("matTooltip",e("torrents.toggle_drawer")),t(2),s(o.opened?"arrow_circle_left":"arrow_circle_right")}}var st=(()=>{class n{constructor(){this.breakpoints=g(R)}static{this.\u0275fac=function(o){return new(o||n)}}static{this.\u0275cmp=v({type:n,selectors:[["app-dashboard"]],standalone:!0,features:[A],decls:1,vars:0,consts:[["drawer",""],["linkHome","routerLinkActive"],["linkQueues","routerLinkActive"],["linkTorrents","routerLinkActive"],["outlet",""],[4,"transloco"],[1,"drawer-container"],[1,"drawer",3,"mode","opened"],["mat-button","","routerLink","/dashboard","routerLinkActive","",3,"routerLinkActiveOptions"],["mat-button","","routerLink","queues","routerLinkActive",""],["svgIcon","queue"],["mat-button","","routerLink","torrents","routerLinkActive",""],["svgIcon","magnet"],[1,"form-field-container","button-container","button-container-toggle-drawer"],["type","button","mat-icon-button","",1,"button-toggle-drawer",3,"click","matTooltip"],["aria-label","Side nav toggle icon","fontSet","material-icons"]],template:function(o,m){o&1&&M(0,$,29,16,"ng-container",5)},dependencies:[F,D,S,I,q,B,z,E,L,h,T,y],styles:["mat-drawer[_ngcontent-%COMP%] nav[_ngcontent-%COMP%]{padding-top:12px;--mat-text-button-icon-spacing: 14px}mat-drawer[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{list-style-type:none;padding-left:0}mat-drawer[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:100%;font-size:var(--mat-expansion-container-text-size);justify-content:flex-start;padding-left:20px}mat-drawer[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-bottom:6px}mat-drawer-content[_ngcontent-%COMP%] .button-container-toggle-drawer[_ngcontent-%COMP%]{position:absolute;left:20px;top:28px;z-index:100}.drawer[_ngcontent-%COMP%]{width:220px}"]})}}return n})();export{st as DashboardComponent}; diff --git a/webui/dist/bitmagnet/browser/chunk-7OATZ42U.js b/webui/dist/bitmagnet/browser/chunk-IYIUYS3O.js similarity index 96% rename from webui/dist/bitmagnet/browser/chunk-7OATZ42U.js rename to webui/dist/bitmagnet/browser/chunk-IYIUYS3O.js index e647c491..2a46b582 100644 --- a/webui/dist/bitmagnet/browser/chunk-7OATZ42U.js +++ b/webui/dist/bitmagnet/browser/chunk-IYIUYS3O.js @@ -1 +1 @@ -import{B as J,J as K,P as T,Q as U,R as X,U as k,b as M,da as Y,ea as Z,fa as tt,ga as et,ha as nt,i as z,ia as it,na as at,o as b,qa as u,r as H,sa as ot,ta as rt,ya as lt}from"./chunk-4NEHCUZ2.js";import{$b as l,B as F,Cb as s,Ea as Q,Fa as A,Hb as V,Kb as G,Mb as v,Ob as P,Pb as $,Qb as r,Rb as o,Sb as _,Tb as f,Ub as C,Wb as N,Zb as R,a as I,b as D,jc as q,kb as a,kc as c,l as j,la as W,lc as m,mc as g,nc as y,qa as p,rc as S,ua as x,va as B,xc as L}from"./chunk-3DR3CJRN.js";var w={error:"error",degraded:"warning",down:"warning",unknown:"pending",inactive:"circle",up:"check_circle",started:"play_circle"},ct={status:"unknown",checks:[],icon:w.unknown,workers:[],error:null},mt=1e4,h=class{constructor(){this.apollo=p(z),this.resultSubject=new j(ct),this.result$=this.resultSubject.asObservable(),this.result=ct,this.watchQuery(),this.result$.subscribe(i=>{this.result=i})}watchQuery(){this.apollo.watchQuery({query:J,fetchPolicy:"no-cache",pollInterval:mt}).valueChanges.pipe(F(i=>({status:i.data.health.status==="down"?"degraded":i.data.health.status,checks:i.data.health.checks.map(e=>D(I({},e),{icon:w[e.status]})),workers:i.data.workers.listAll.workers.map(e=>D(I({},e),{icon:w[e.started?"started":"inactive"]})),icon:w[i.data.health.status],error:null}))).subscribe({next:i=>this.resultSubject.next(i),error:i=>{this.resultSubject.next({status:"error",checks:[],workers:[],error:i,icon:w.error}),setTimeout(this.watchQuery.bind(this),mt)}})}};var st=(t,i)=>i.key;function xt(t,i){if(t&1&&(r(0,"p"),c(1),o()),t&2){let e=l().$implicit,n=l();a(),y("",e("health.check_failed_with_error"),": ",n.health.result.error,"")}}function ft(t,i){if(t&1&&(r(0,"th"),c(1),o()),t&2){let e=l(2).$implicit;a(),m(e("general.error"))}}function Ct(t,i){if(t&1&&(r(0,"td"),c(1),o()),t&2){let e=l().$implicit;a(),m(e.error)}}function gt(t,i){if(t&1&&(r(0,"tr")(1,"td",2)(2,"mat-icon"),c(3),o()(),r(4,"th",3),c(5),o(),r(6,"td"),c(7),o(),s(8,Ct,2,1,"td"),o()),t&2){let e=i.$implicit,n=l(2).$implicit,d=l();a(3),m(e.icon),a(2),m(n("health.components."+e.key)),a(2),m(n("health.statuses."+e.status)),a(),v(d.health.result.status==="down"?8:-1)}}function Mt(t,i){t&1&&_(0,"td")}function vt(t,i){if(t&1&&(r(0,"tr")(1,"td",2)(2,"mat-icon"),c(3),o()(),r(4,"th",3),c(5),o(),r(6,"td"),c(7),o(),s(8,Mt,1,0,"td"),o()),t&2){let e=i.$implicit,n=l(2).$implicit,d=l();a(3),m(e.icon),a(2),y(" ",n("health.worker"),": ",n("health.workers."+e.key)," "),a(2),g(" ",n("health.statuses."+(e.started?"started":"inactive"))," "),a(),v(d.health.result.status==="down"?8:-1)}}function yt(t,i){if(t&1&&(r(0,"table",1)(1,"thead")(2,"tr"),_(3,"th"),r(4,"th"),c(5),o(),r(6,"th"),c(7),o(),s(8,ft,2,1,"th"),o()(),r(9,"tbody"),P(10,gt,9,4,"tr",null,st),P(12,vt,9,5,"tr",null,st),o()()),t&2){let e=l().$implicit,n=l();a(5),m(e("health.component")),a(2),m(e("general.status")),a(),v(n.health.result.status==="down"?8:-1),a(2),$(n.health.result.checks),a(2),$(n.health.result.workers)}}function St(t,i){if(t&1&&(f(0),s(1,xt,2,2,"p")(2,yt,14,3,"table",1),C()),t&2){let e=l();a(),v(e.health.result.error?1:2)}}var E=(()=>{class t{constructor(){this.health=p(h)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=x({type:t,selectors:[["app-health-summary"]],decls:1,vars:0,consts:[[4,"transloco"],[1,"table-health"],[1,"td-icon"],["scope","row"]],template:function(n,d){n&1&&s(0,St,3,1,"ng-container",0)},dependencies:[M,u],styles:[".table-health[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .table-health[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding-right:20px}.table-health[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{text-align:left}"]})}}return t})();var wt=t=>({status:t});function bt(t,i){if(t&1&&(f(0),r(1,"mat-card",1)(2,"mat-card-header")(3,"mat-card-title")(4,"h3")(5,"mat-icon"),c(6),o(),c(7),o()()(),r(8,"mat-card-content",2),_(9,"app-health-summary"),o()(),C()),t&2){let e=i.$implicit,n=l();a(6),m(n.health.result.icon),a(),g(" ",e("health.bitmagnet_is_status",S(2,wt,e("health.statuses."+(n.health.result.error?"down":n.health.result.status))))," ")}}var Vt=(()=>{class t{constructor(){this.health=p(h)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=x({type:t,selectors:[["app-health-card"]],decls:1,vars:0,consts:[[4,"transloco"],[1,"dashboard-card","dashboard-card-health"],[1,"dashboard-card-content"]],template:function(n,d){n&1&&s(0,bt,10,4,"ng-container",0)},dependencies:[M,u,T,X,k,U,E],styles:[".dashboard-card-health[_ngcontent-%COMP%]{position:absolute;inset:15px}.dashboard-card-health[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin-top:0}.dashboard-card-health[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{position:relative;top:3px;margin-left:4px;margin-right:6px}"]})}}return t})();var ut=t=>({status:t});function Ht(t,i){if(t&1&&(r(0,"h2",3),c(1),o(),r(2,"mat-dialog-content"),_(3,"app-health-summary"),o(),r(4,"mat-dialog-actions")(5,"button",4),c(6),o()()),t&2){let e=l().$implicit,n=l();a(),y(" ",e("health.summary"),": ",e("health.bitmagnet_is_status",S(3,ut,e("health.statuses."+(n.health.result.error?"down":n.health.result.status))))," "),a(5),g(" ",e("general.dismiss")," ")}}function Tt(t,i){if(t&1){let e=N();f(0),r(1,"button",2),R("click",function(){Q(e);let d=q(5),_t=l();return A(_t.dialog.open(d))}),r(2,"mat-icon"),c(3),o()(),s(4,Ht,7,5,"ng-template",null,0,L),C()}if(t&2){let e=i.$implicit,n=l();a(),G("health-icon health-icon-"+n.health.result.status),V("matTooltip",e("health.bitmagnet_is_status",S(4,ut,e("health.statuses."+n.health.result.status)))),a(2),m(n.health.result.icon)}}var Ut=(()=>{class t{constructor(){this.health=p(h),this.dialog=p(Y)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=x({type:t,selectors:[["app-health-widget"]],decls:1,vars:0,consts:[["healthDialog",""],[4,"transloco"],["mat-icon-button","",3,"click","matTooltip"],["matDialogTitle",""],["mat-button","","matDialogClose","","color","primary"]],template:function(n,d){n&1&&s(0,Tt,6,6,"ng-container",1)},dependencies:[M,u,lt,Z,tt,nt,et,b,H,E]})}}return t})();var _e=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=B({type:t})}static{this.\u0275inj=W({providers:[h],imports:[K,u,it,b,H,T,k,at,rt,ot]})}}return t})();export{h as a,Vt as b,Ut as c,_e as d}; +import{B as J,J as K,P as T,Q as U,R as X,U as k,b as M,da as Y,ea as Z,fa as tt,ga as et,ha as nt,i as z,ia as it,na as at,o as b,qa as u,r as H,sa as ot,ta as rt,ya as lt}from"./chunk-HB55W55I.js";import{$b as l,B as F,Cb as s,Ea as Q,Fa as A,Hb as V,Kb as G,Mb as v,Ob as P,Pb as $,Qb as r,Rb as o,Sb as _,Tb as f,Ub as C,Wb as N,Zb as R,a as I,b as D,jc as q,kb as a,kc as c,l as j,la as W,lc as m,mc as g,nc as y,qa as p,rc as S,ua as x,va as B,yc as L}from"./chunk-FJILXII2.js";var w={error:"error",degraded:"warning",down:"warning",unknown:"pending",inactive:"circle",up:"check_circle",started:"play_circle"},ct={status:"unknown",checks:[],icon:w.unknown,workers:[],error:null},mt=1e4,h=class{constructor(){this.apollo=p(z),this.resultSubject=new j(ct),this.result$=this.resultSubject.asObservable(),this.result=ct,this.watchQuery(),this.result$.subscribe(i=>{this.result=i})}watchQuery(){this.apollo.watchQuery({query:J,fetchPolicy:"no-cache",pollInterval:mt}).valueChanges.pipe(F(i=>({status:i.data.health.status==="down"?"degraded":i.data.health.status,checks:i.data.health.checks.map(e=>D(I({},e),{icon:w[e.status]})),workers:i.data.workers.listAll.workers.map(e=>D(I({},e),{icon:w[e.started?"started":"inactive"]})),icon:w[i.data.health.status],error:null}))).subscribe({next:i=>this.resultSubject.next(i),error:i=>{this.resultSubject.next({status:"error",checks:[],workers:[],error:i,icon:w.error}),setTimeout(this.watchQuery.bind(this),mt)}})}};var st=(t,i)=>i.key;function xt(t,i){if(t&1&&(r(0,"p"),c(1),o()),t&2){let e=l().$implicit,n=l();a(),y("",e("health.check_failed_with_error"),": ",n.health.result.error,"")}}function ft(t,i){if(t&1&&(r(0,"th"),c(1),o()),t&2){let e=l(2).$implicit;a(),m(e("general.error"))}}function Ct(t,i){if(t&1&&(r(0,"td"),c(1),o()),t&2){let e=l().$implicit;a(),m(e.error)}}function gt(t,i){if(t&1&&(r(0,"tr")(1,"td",2)(2,"mat-icon"),c(3),o()(),r(4,"th",3),c(5),o(),r(6,"td"),c(7),o(),s(8,Ct,2,1,"td"),o()),t&2){let e=i.$implicit,n=l(2).$implicit,d=l();a(3),m(e.icon),a(2),m(n("health.components."+e.key)),a(2),m(n("health.statuses."+e.status)),a(),v(d.health.result.status==="down"?8:-1)}}function Mt(t,i){t&1&&_(0,"td")}function vt(t,i){if(t&1&&(r(0,"tr")(1,"td",2)(2,"mat-icon"),c(3),o()(),r(4,"th",3),c(5),o(),r(6,"td"),c(7),o(),s(8,Mt,1,0,"td"),o()),t&2){let e=i.$implicit,n=l(2).$implicit,d=l();a(3),m(e.icon),a(2),y(" ",n("health.worker"),": ",n("health.workers."+e.key)," "),a(2),g(" ",n("health.statuses."+(e.started?"started":"inactive"))," "),a(),v(d.health.result.status==="down"?8:-1)}}function yt(t,i){if(t&1&&(r(0,"table",1)(1,"thead")(2,"tr"),_(3,"th"),r(4,"th"),c(5),o(),r(6,"th"),c(7),o(),s(8,ft,2,1,"th"),o()(),r(9,"tbody"),P(10,gt,9,4,"tr",null,st),P(12,vt,9,5,"tr",null,st),o()()),t&2){let e=l().$implicit,n=l();a(5),m(e("health.component")),a(2),m(e("general.status")),a(),v(n.health.result.status==="down"?8:-1),a(2),$(n.health.result.checks),a(2),$(n.health.result.workers)}}function St(t,i){if(t&1&&(f(0),s(1,xt,2,2,"p")(2,yt,14,3,"table",1),C()),t&2){let e=l();a(),v(e.health.result.error?1:2)}}var E=(()=>{class t{constructor(){this.health=p(h)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=x({type:t,selectors:[["app-health-summary"]],decls:1,vars:0,consts:[[4,"transloco"],[1,"table-health"],[1,"td-icon"],["scope","row"]],template:function(n,d){n&1&&s(0,St,3,1,"ng-container",0)},dependencies:[M,u],styles:[".table-health[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .table-health[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding-right:20px}.table-health[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{text-align:left}"]})}}return t})();var wt=t=>({status:t});function bt(t,i){if(t&1&&(f(0),r(1,"mat-card",1)(2,"mat-card-header")(3,"mat-card-title")(4,"h3")(5,"mat-icon"),c(6),o(),c(7),o()()(),r(8,"mat-card-content",2),_(9,"app-health-summary"),o()(),C()),t&2){let e=i.$implicit,n=l();a(6),m(n.health.result.icon),a(),g(" ",e("health.bitmagnet_is_status",S(2,wt,e("health.statuses."+(n.health.result.error?"down":n.health.result.status))))," ")}}var Vt=(()=>{class t{constructor(){this.health=p(h)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=x({type:t,selectors:[["app-health-card"]],decls:1,vars:0,consts:[[4,"transloco"],[1,"dashboard-card","dashboard-card-health"],[1,"dashboard-card-content"]],template:function(n,d){n&1&&s(0,bt,10,4,"ng-container",0)},dependencies:[M,u,T,X,k,U,E],styles:[".dashboard-card-health[_ngcontent-%COMP%]{position:absolute;inset:15px}.dashboard-card-health[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin-top:0}.dashboard-card-health[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{position:relative;top:3px;margin-left:4px;margin-right:6px}"]})}}return t})();var ut=t=>({status:t});function Ht(t,i){if(t&1&&(r(0,"h2",3),c(1),o(),r(2,"mat-dialog-content"),_(3,"app-health-summary"),o(),r(4,"mat-dialog-actions")(5,"button",4),c(6),o()()),t&2){let e=l().$implicit,n=l();a(),y(" ",e("health.summary"),": ",e("health.bitmagnet_is_status",S(3,ut,e("health.statuses."+(n.health.result.error?"down":n.health.result.status))))," "),a(5),g(" ",e("general.dismiss")," ")}}function Tt(t,i){if(t&1){let e=N();f(0),r(1,"button",2),R("click",function(){Q(e);let d=q(5),_t=l();return A(_t.dialog.open(d))}),r(2,"mat-icon"),c(3),o()(),s(4,Ht,7,5,"ng-template",null,0,L),C()}if(t&2){let e=i.$implicit,n=l();a(),G("health-icon health-icon-"+n.health.result.status),V("matTooltip",e("health.bitmagnet_is_status",S(4,ut,e("health.statuses."+n.health.result.status)))),a(2),m(n.health.result.icon)}}var Ut=(()=>{class t{constructor(){this.health=p(h),this.dialog=p(Y)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=x({type:t,selectors:[["app-health-widget"]],decls:1,vars:0,consts:[["healthDialog",""],[4,"transloco"],["mat-icon-button","",3,"click","matTooltip"],["matDialogTitle",""],["mat-button","","matDialogClose","","color","primary"]],template:function(n,d){n&1&&s(0,Tt,6,6,"ng-container",1)},dependencies:[M,u,lt,Z,tt,nt,et,b,H,E]})}}return t})();var _e=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=B({type:t})}static{this.\u0275inj=W({providers:[h],imports:[K,u,it,b,H,T,k,at,rt,ot]})}}return t})();export{h as a,Vt as b,Ut as c,_e as d}; diff --git a/webui/dist/bitmagnet/browser/chunk-KUHKEGBL.js b/webui/dist/bitmagnet/browser/chunk-JIO2QO4M.js similarity index 97% rename from webui/dist/bitmagnet/browser/chunk-KUHKEGBL.js rename to webui/dist/bitmagnet/browser/chunk-JIO2QO4M.js index bad3c232..95f3a7ee 100644 --- a/webui/dist/bitmagnet/browser/chunk-KUHKEGBL.js +++ b/webui/dist/bitmagnet/browser/chunk-JIO2QO4M.js @@ -1 +1 @@ -import{d as M,e as y,f as w,g as f,h as g,j as S,k as D,l as I,m as X}from"./chunk-3PIWRAOL.js";function h(t,e){let r=+f(t)-+f(e);return r<0?-1:r>0?1:r}function T(t){return w(t,Date.now())}function _(t,e,r){let[s,o]=D(r?.in,t,e),c=s.getFullYear()-o.getFullYear(),i=s.getMonth()-o.getMonth();return c*12+i}function F(t){return e=>{let s=(t?Math[t]:Math.trunc)(e);return s===0?0:s}}function Y(t,e){return+f(t)-+f(e)}function z(t,e){let r=f(t,e?.in);return r.setHours(23,59,59,999),r}function L(t,e){let r=f(t,e?.in),s=r.getMonth();return r.setFullYear(r.getFullYear(),s+1,0),r.setHours(23,59,59,999),r}function N(t,e){let r=f(t,e?.in);return+z(r,e)==+L(r,e)}function b(t,e,r){let[s,o,c]=D(r?.in,t,t,e),i=h(o,c),n=Math.abs(_(o,c));if(n<1)return 0;o.getMonth()===1&&o.getDate()>27&&o.setDate(30),o.setMonth(o.getMonth()-i*n);let m=h(o,c)===-i;N(s)&&n===1&&h(s,c)===1&&(m=!1);let u=i*(n-+m);return u===0?0:u}function A(t,e,r){let s=Y(t,e)/1e3;return F(r?.roundingMethod)(s)}function v(t,e,r){let s=g(),o=r?.locale??s.locale??I,c=2520,i=h(t,e);if(isNaN(i))throw new RangeError("Invalid time value");let n=Object.assign({},r,{addSuffix:r?.addSuffix,comparison:i}),[m,u]=D(r?.in,...i>0?[e,t]:[t,e]),l=A(u,m),x=(S(u)-S(m))/1e3,a=Math.round((l-x)/60),p;if(a<2)return r?.includeSeconds?l<5?o.formatDistance("lessThanXSeconds",5,n):l<10?o.formatDistance("lessThanXSeconds",10,n):l<20?o.formatDistance("lessThanXSeconds",20,n):l<40?o.formatDistance("halfAMinute",0,n):l<60?o.formatDistance("lessThanXMinutes",1,n):o.formatDistance("xMinutes",1,n):a===0?o.formatDistance("lessThanXMinutes",1,n):o.formatDistance("xMinutes",a,n);if(a<45)return o.formatDistance("xMinutes",a,n);if(a<90)return o.formatDistance("aboutXHours",1,n);if(a{let l=`x${u.replace(/(^.)/,a=>a.toUpperCase())}`,x=t[u];return x!==void 0&&(c||t[u])?m.concat(s.formatDistance(l,x)):m},[]).join(i):""}var _t=(t,e)=>H(t,{addSuffix:!0,locale:X(e)}),Ft=(t,e)=>k(t,{locale:X(e)});export{_t as a,Ft as b}; +import{d as M,e as y,f as w,g as f,h as g,j as S,k as D,l as I,m as X}from"./chunk-33KK2FKQ.js";function h(t,e){let r=+f(t)-+f(e);return r<0?-1:r>0?1:r}function T(t){return w(t,Date.now())}function _(t,e,r){let[s,o]=D(r?.in,t,e),c=s.getFullYear()-o.getFullYear(),i=s.getMonth()-o.getMonth();return c*12+i}function F(t){return e=>{let s=(t?Math[t]:Math.trunc)(e);return s===0?0:s}}function Y(t,e){return+f(t)-+f(e)}function z(t,e){let r=f(t,e?.in);return r.setHours(23,59,59,999),r}function L(t,e){let r=f(t,e?.in),s=r.getMonth();return r.setFullYear(r.getFullYear(),s+1,0),r.setHours(23,59,59,999),r}function N(t,e){let r=f(t,e?.in);return+z(r,e)==+L(r,e)}function b(t,e,r){let[s,o,c]=D(r?.in,t,t,e),i=h(o,c),n=Math.abs(_(o,c));if(n<1)return 0;o.getMonth()===1&&o.getDate()>27&&o.setDate(30),o.setMonth(o.getMonth()-i*n);let m=h(o,c)===-i;N(s)&&n===1&&h(s,c)===1&&(m=!1);let u=i*(n-+m);return u===0?0:u}function A(t,e,r){let s=Y(t,e)/1e3;return F(r?.roundingMethod)(s)}function v(t,e,r){let s=g(),o=r?.locale??s.locale??I,c=2520,i=h(t,e);if(isNaN(i))throw new RangeError("Invalid time value");let n=Object.assign({},r,{addSuffix:r?.addSuffix,comparison:i}),[m,u]=D(r?.in,...i>0?[e,t]:[t,e]),l=A(u,m),x=(S(u)-S(m))/1e3,a=Math.round((l-x)/60),p;if(a<2)return r?.includeSeconds?l<5?o.formatDistance("lessThanXSeconds",5,n):l<10?o.formatDistance("lessThanXSeconds",10,n):l<20?o.formatDistance("lessThanXSeconds",20,n):l<40?o.formatDistance("halfAMinute",0,n):l<60?o.formatDistance("lessThanXMinutes",1,n):o.formatDistance("xMinutes",1,n):a===0?o.formatDistance("lessThanXMinutes",1,n):o.formatDistance("xMinutes",a,n);if(a<45)return o.formatDistance("xMinutes",a,n);if(a<90)return o.formatDistance("aboutXHours",1,n);if(a{let l=`x${u.replace(/(^.)/,a=>a.toUpperCase())}`,x=t[u];return x!==void 0&&(c||t[u])?m.concat(s.formatDistance(l,x)):m},[]).join(i):""}var _t=(t,e)=>H(t,{addSuffix:!0,locale:X(e)}),Ft=(t,e)=>k(t,{locale:X(e)});export{_t as a,Ft as b}; diff --git a/webui/dist/bitmagnet/browser/chunk-LACCEILM.js b/webui/dist/bitmagnet/browser/chunk-LACCEILM.js deleted file mode 100644 index 256f593f..00000000 --- a/webui/dist/bitmagnet/browser/chunk-LACCEILM.js +++ /dev/null @@ -1,3 +0,0 @@ -import{c as Ft,d as Lt,e as Qt,f as jt}from"./chunk-ZVYX4MB3.js";import{b as Nt}from"./chunk-DKVITRV6.js";import{a as dt}from"./chunk-3PIWRAOL.js";import{a as R}from"./chunk-M3BEO55A.js";import{$ as vt,Da as kt,Ea as Mt,Fa as It,Ga as Et,Ha as At,I as pt,Ia as Pt,Ja as Ot,K as _t,Ka as Vt,La as Dt,M as ut,Ma as Bt,N as gt,Na as $t,O as xt,Oa as Rt,P as Ct,Pa as Ht,Qa as zt,R as ht,T as Tt,Ua as $,X as ft,Z as bt,aa as wt,b as V,ba as St,d as at,e as rt,f as lt,g as st,n as ct,o as mt,qa as D,va as yt,ya as B}from"./chunk-4NEHCUZ2.js";import{c as nt,d as it,g as Q,h as j,i as ot}from"./chunk-6XXA7HXI.js";import{j as tt,l as et}from"./chunk-FKMTSCBK.js";import{$b as s,Cb as d,Ea as _,Fa as u,Gb as Y,Hb as m,Kb as J,Mb as S,N as M,Na as E,Nb as H,Ob as z,Pb as F,Qb as l,Rb as r,Sb as h,Tb as T,Ub as f,Wb as b,Zb as g,_c as Z,cc as L,h as U,ha as y,hb as K,jc as N,kb as a,kc as c,l as q,lc as x,mc as w,nc as W,o as k,pc as A,qa as v,qc as X,ua as I,uc as P,vc as O}from"./chunk-3DR3CJRN.js";var Ee=(e,o)=>{let n=G(e,o)?.split(",").map(i=>i.trim()).filter(Boolean);return n?.length?Array.from(new Set(n)).sort():void 0},G=(e,o)=>typeof e[o]=="string"&&decodeURIComponent(e[o])||void 0,Ae=(e,o)=>{if(e&&e[o]&&/^\d+$/.test(e[o]))return parseInt(e[o])};function Yt(e,o){if(e&1&&(l(0,"span",7),c(1),r()),e&2){let t=s(2).$implicit;a(),x(t("torrents.copy"))}}function Jt(e,o){if(e&1&&(l(0,"mat-icon"),c(1,"content_copy"),r(),d(2,Yt,2,1,"span",7)),e&2){let t=s(2);a(2),S(t.breakpoints.sizeAtLeast("Medium")?2:-1)}}function Wt(e,o){if(e&1&&(l(0,"mat-card")(1,"mat-card-actions",8)(2,"button",9),h(3,"mat-icon",10),c(4),r(),l(5,"button",9)(6,"mat-icon"),c(7,"tag"),r(),c(8),r()()()),e&2){let t=s().$implicit,n=s();a(2),m("disabled",!n.selectedItems.length)("cdkCopyToClipboard",n.getSelectedMagnetLinks()),a(2),w("",t("torrents.magnet_links")," "),a(),m("disabled",!n.selectedItems.length)("cdkCopyToClipboard",n.getSelectedInfoHashes()),a(3),w("",t("torrents.info_hashes")," ")}}function Xt(e,o){if(e&1&&(l(0,"span",7),c(1),r()),e&2){let t=s(2).$implicit;a(),x(t("torrents.edit_tags"))}}function Zt(e,o){if(e&1&&(l(0,"mat-icon"),c(1,"sell"),r(),d(2,Xt,2,1,"span",7)),e&2){let t=s(2);a(2),S(t.breakpoints.sizeAtLeast("Medium")?2:-1)}}function te(e,o){if(e&1){let t=b();l(0,"mat-chip-row",20),g("edited",function(i){let p=_(t).$implicit,C=s(3);return u(C.renameTag(p,i.value))})("removed",function(){let i=_(t).$implicit,p=s(3);return u(p.deleteTag(i))}),c(1),l(2,"mat-icon",21),c(3,"cancel"),r()()}if(e&2){let t=o.$implicit;m("editable",!0)("aria-description","press enter to edit"),a(),w(" ",t," ")}}function ee(e,o){if(e&1&&(l(0,"mat-option",16),c(1),r()),e&2){let t=o.$implicit;m("value",t),a(),x(t)}}function ne(e,o){if(e&1){let t=b();l(0,"mat-card")(1,"mat-form-field",11)(2,"mat-chip-grid",12,0),z(4,te,4,3,"mat-chip-row",13,H),r(),l(6,"input",14),g("matChipInputTokenEnd",function(i){_(t);let p=s(2);return u(i.value&&p.addTag(i.value))}),r(),l(7,"mat-autocomplete",15,1),g("optionSelected",function(i){_(t);let p=s(2);return u(p.addTag(i.option.viewValue))}),z(9,ee,2,2,"mat-option",16,H),r()(),l(11,"mat-card-actions",8)(12,"button",17),g("click",function(){_(t);let i=s(2);return u(i.setTags())}),c(13," Set tags "),r(),l(14,"button",18),g("click",function(){_(t);let i=s(2);return u(i.putTags())}),c(15," Put tags "),r(),l(16,"button",19),g("click",function(){_(t);let i=s(2);return u(i.deleteTags())}),c(17," Delete tags "),r()()()}if(e&2){let t=N(3),n=N(8),i=s(2);a(4),F(i.editedTags),a(2),m("formControl",i.newTagCtrl)("matAutocomplete",n)("matChipInputFor",t)("matChipInputSeparatorKeyCodes",i.separatorKeysCodes)("value",i.newTagCtrl.value),a(3),F(i.suggestedTags),a(3),m("disabled",!i.selectedItems.length),a(2),m("disabled",!i.selectedItems.length||!i.editedTags.length&&!i.newTagCtrl.value),a(2),m("disabled",!i.selectedItems.length||!i.editedTags.length&&!i.newTagCtrl.value)}}function ie(e,o){if(e&1&&(l(0,"span",7),c(1),r()),e&2){let t=s(2).$implicit;a(),x(t("torrents.delete"))}}function oe(e,o){if(e&1&&(l(0,"mat-icon"),c(1,"delete_forever"),r(),d(2,ie,2,1,"span",7)),e&2){let t=s(2);a(2),S(t.breakpoints.sizeAtLeast("Medium")?2:-1)}}function ae(e,o){if(e&1){let t=b();l(0,"mat-card")(1,"mat-card-content")(2,"p")(3,"strong"),c(4,"Are you sure you want to delete the selected torrents?"),r(),h(5,"br"),c(6,"This action cannot be undone. "),r()(),l(7,"mat-card-actions",8)(8,"button",22),g("click",function(){_(t);let i=s(2);return u(i.deleteTorrents())}),l(9,"mat-icon"),c(10,"delete_forever"),r(),c(11,"Delete "),r()()()}if(e&2){let t=s(2);a(8),m("disabled",!t.selectedItems.length)}}function re(e,o){e&1&&(l(0,"mat-icon",23),c(1,"close"),r())}function le(e,o){e&1&&(l(0,"mat-tab"),d(1,re,2,0,"ng-template",5),r())}function se(e,o){if(e&1){let t=b();T(0),l(1,"mat-tab-group",3),g("focusChange",function(i){_(t);let p=s();return u(p.selectTab(i.index==4?0:i.index))}),h(2,"mat-tab",4),l(3,"mat-tab"),d(4,Jt,3,1,"ng-template",5)(5,Wt,9,6,"ng-template",6),r(),l(6,"mat-tab"),d(7,Zt,3,1,"ng-template",5)(8,ne,18,8,"ng-template",6),r(),l(9,"mat-tab"),d(10,oe,3,1,"ng-template",5)(11,ae,12,1,"ng-template",6),r(),d(12,le,2,0,"mat-tab"),r(),f()}if(e&2){let t=s();a(),m("selectedIndex",t.selectedTabIndex)("mat-stretch-tabs",!1),a(),m("aria-labelledby","hidden"),a(10),S(t.selectedTabIndex>0?12:-1)}}var Ze=(()=>{class e{constructor(){this.graphQLService=v(pt),this.errorsService=v(dt),this.breakpoints=v(R),this.selectedItems$=new U,this.updated=new E,this.separatorKeysCodes=[13,188],this.selectedTabIndex=0,this.newTagCtrl=new lt(""),this.editedTags=Array(),this.suggestedTags=Array(),this.selectedItems=new Array}ngOnInit(){this.selectedItems$.subscribe(t=>{this.selectedItems=t})}selectTab(t){this.selectedTabIndex=t}getSelectedMagnetLinks(){return this.selectedItems.map(t=>t.torrent.magnetUri).join(` -`)}getSelectedInfoHashes(){return this.selectedItems.map(t=>t.infoHash).join(` -`)}addTag(t){this.editedTags.includes(t)||this.editedTags.push(t),this.newTagCtrl.reset(),this.updateSuggestedTags()}deleteTag(t){this.editedTags=this.editedTags.filter(n=>n!==t),this.updateSuggestedTags()}renameTag(t,n){this.editedTags=this.editedTags.map(i=>i===t?n:i),this.updateSuggestedTags()}putTags(){let t=this.selectedItems.map(({infoHash:n})=>n);if(t.length)return this.newTagCtrl.value&&this.addTag(this.newTagCtrl.value),this.graphQLService.torrentPutTags({infoHashes:t,tagNames:this.editedTags}).pipe(M(n=>(this.errorsService.addError(`Error putting tags: ${n.message}`),k))).pipe(y(()=>{this.updated.emit()})).subscribe()}setTags(){let t=this.selectedItems.map(({infoHash:n})=>n);if(t.length)return this.newTagCtrl.value&&this.addTag(this.newTagCtrl.value),this.graphQLService.torrentSetTags({infoHashes:t,tagNames:this.editedTags}).pipe(M(n=>(this.errorsService.addError(`Error setting tags: ${n.message}`),k))).pipe(y(()=>{this.updated.emit()})).subscribe()}deleteTags(){let t=this.selectedItems.map(({infoHash:n})=>n);if(t.length)return this.newTagCtrl.value&&this.addTag(this.newTagCtrl.value),this.graphQLService.torrentDeleteTags({infoHashes:t,tagNames:this.editedTags}).pipe(M(n=>(this.errorsService.addError(`Error deleting tags: ${n.message}`),k))).pipe(y(()=>{this.updated.emit()})).subscribe()}updateSuggestedTags(){return this.graphQLService.torrentSuggestTags({input:{prefix:this.newTagCtrl.value,exclusions:this.editedTags}}).pipe(y(t=>{this.suggestedTags.splice(0,this.suggestedTags.length,...t.suggestions.map(n=>n.name))})).subscribe()}deleteTorrents(){let t=this.selectedItems.map(({infoHash:n})=>n);this.graphQLService.torrentDelete({infoHashes:t}).pipe(M(n=>(this.errorsService.addError(`Error deleting torrents: ${n.message}`),k))).pipe(y(()=>{this.updated.emit()})).subscribe()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=I({type:e,selectors:[["app-torrents-bulk-actions"]],inputs:{selectedItems$:"selectedItems$"},outputs:{updated:"updated"},standalone:!0,features:[A],decls:1,vars:0,consts:[["chipGrid",""],["auto","matAutocomplete"],[4,"transloco"],["animationDuration","0",1,"tab-group-bulk-actions",3,"focusChange","selectedIndex","mat-stretch-tabs"],[1,"bulk-tab-placeholder",3,"aria-labelledby"],["mat-tab-label",""],["matTabContent",""],[1,"label"],[1,"button-row"],["mat-stroked-button","",3,"disabled","cdkCopyToClipboard"],["svgIcon","magnet"],["subscriptSizing","dynamic",1,"form-edit-tags"],["aria-label","Enter tags"],[3,"editable","aria-description"],["placeholder","Tag...",3,"matChipInputTokenEnd","formControl","matAutocomplete","matChipInputFor","matChipInputSeparatorKeyCodes","value"],[3,"optionSelected"],[3,"value"],["mat-stroked-button","","color","primary","matTooltip","Replace tags of the selected torrents",3,"click","disabled"],["mat-stroked-button","","color","primary","matTooltip","Add tags to the selected torrents",3,"click","disabled"],["mat-stroked-button","","color","primary","matTooltip","Remove tags from the selected torrents",3,"click","disabled"],[3,"edited","removed","editable","aria-description"],["matChipRemove",""],["mat-stroked-button","","color","warn",3,"click","disabled"],[2,"margin-right","0"]],template:function(n,i){n&1&&d(0,se,13,4,"ng-container",2)},dependencies:[$,_t,gt,ct,xt,mt,Ct,Tt,ht,vt,wt,ft,bt,ut,D,$t,Rt,Ht,zt,B,at,rt,st,V],styles:["mat-tab-group[_ngcontent-%COMP%]{padding-left:10px}button[_ngcontent-%COMP%]{margin-right:10px}p[_ngcontent-%COMP%]{margin-top:0} .mdc-tab[aria-labelledby=hidden]{display:none}"]})}}return e})();var ce=()=>["expandedDetail"];function me(e,o){if(e&1){let t=b();l(0,"th",19)(1,"mat-checkbox",20),g("change",function(){_(t);let i=s(2);return u(i.toggleAllRows())}),r()()}if(e&2){let t=s().$implicit,n=s();a(),m("checked",n.selection.hasValue()&&n.isAllSelected())("indeterminate",n.selection.hasValue()&&!n.isAllSelected())("matTooltip",n.isAllSelected()?t("torrents.deselect_all"):t("torrents.select_all"))}}function de(e,o){if(e&1){let t=b();l(0,"td",21)(1,"mat-checkbox",22),g("click",function(i){return _(t),u(i.stopPropagation())})("change",function(i){let p=_(t).$implicit,C=s(2);return u(i?C.selection.toggle(C.item(p).infoHash):null)}),r()()}if(e&2){let t=o.$implicit,n=s(2);a(),m("checked",n.selection.isSelected(n.item(t).infoHash))}}function pe(e,o){if(e&1&&(l(0,"th",19),c(1),r()),e&2){let t=s().$implicit;a(),x(t("torrents.summary"))}}function _e(e,o){if(e&1&&(l(0,"p",26),c(1),r()),e&2){let t=s().$implicit,n=s(2);a(),x(n.item(t).torrent.name)}}function ue(e,o){if(e&1){let t=b();l(0,"td",23),g("click",function(i){let p=_(t).$implicit;return s(2).toggleTorrentContentId(p.id),u(i.stopPropagation())}),l(1,"mat-icon",24),c(2),r(),l(3,"span",25),c(4),r(),d(5,_e,2,1,"p",26),h(6,"app-torrent-chips",27),r()}if(e&2){let t,n,i=o.$implicit,p=s().$implicit,C=s();a(),m("matTooltip",p("content_types.singular."+((t=C.item(i).contentType)!==null&&t!==void 0?t:"null"))),a(),x((n=(n=C.contentTypeInfo(C.item(i).contentType))==null?null:n.icon)!==null&&n!==void 0?n:"question_mark"),a(2),x(C.item(i).title),a(),S(C.item(i).title!==C.item(i).torrent.name?5:-1),a(),m("torrentContent",i)}}function ge(e,o){if(e&1&&(l(0,"th",19),c(1),r()),e&2){let t=s().$implicit;a(),x(t("torrents.size"))}}function xe(e,o){if(e&1&&(l(0,"td",21),c(1),P(2,"filesize"),r()),e&2){let t=o.$implicit,n=s(2);a(),w(" ",O(2,1,n.item(t).torrent.size)," ")}}function Ce(e,o){if(e&1&&(l(0,"th",19),c(1),r()),e&2){let t=s().$implicit;a(),x(t("torrents.published"))}}function he(e,o){if(e&1&&(l(0,"td",28)(1,"abbr",29),c(2),P(3,"timeAgo"),r()()),e&2){let t=o.$implicit,n=s(2);a(),L("matTooltip",n.item(t).publishedAt),a(),w(" ",O(3,2,n.item(t).publishedAt)," ")}}function Te(e,o){if(e&1&&(l(0,"th",19)(1,"abbr",24),c(2),r()()),e&2){let t=s().$implicit;a(),m("matTooltip",t("torrents.seeders")+" / "+t("torrents.leechers")),a(),x(t("torrents.s_l"))}}function fe(e,o){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t,n=o.$implicit,i=s(2);a(),W(" ",(t=i.item(n).seeders)!==null&&t!==void 0?t:"?"," / ",(t=i.item(n).leechers)!==null&&t!==void 0?t:"?"," ")}}function be(e,o){if(e&1&&(l(0,"th",30),c(1),r()),e&2){let t=s().$implicit;a(),w(" ",t("torrents.magnet")," ")}}function ve(e,o){if(e&1&&(l(0,"td",21)(1,"a",31),h(2,"mat-icon",32),r()()),e&2){let t=o.$implicit,n=s(2);a(),L("href",n.item(t).torrent.magnetUri,K)}}function we(e,o){if(e&1){let t=b();l(0,"td",21)(1,"div",33)(2,"app-torrent-content",34),g("updated",function(){let i=_(t).$implicit,p=s(2);return u(p.updated.emit(p.item(i).infoHash))}),r()()()}if(e&2){let t=o.$implicit,n=s(2);Y("colspan",n.displayedColumns.length),a(),m("@detailExpand",n.expandedId.getValue()===t.id?"expanded":"collapsed"),a(),m("torrentContent",t)("size",!1)("published",n.breakpoints.sizeAtLeast("Medium"))("peers",n.breakpoints.sizeAtLeast("Medium"))}}function Se(e,o){e&1&&h(0,"tr",35)}function ye(e,o){if(e&1&&h(0,"tr",36),e&2){let t=o.$implicit,n=s(2);J("summary-row "+(t.id===n.expandedId.getValue()?"expanded":"collapsed"))}}function ke(e,o){e&1&&h(0,"tr",37)}function Me(e,o){if(e&1&&(T(0),l(1,"div",1),h(2,"mat-progress-bar",2),P(3,"async"),r(),l(4,"table",3),T(5,4),d(6,me,2,3,"th",5)(7,de,2,1,"td",6),f(),T(8,7),d(9,pe,2,1,"th",5)(10,ue,7,5,"td",8),f(),T(11,9),d(12,ge,2,1,"th",5)(13,xe,3,3,"td",6),f(),T(14,10),d(15,Ce,2,1,"th",5)(16,he,4,4,"td",11),f(),T(17,12),d(18,Te,3,2,"th",5)(19,fe,2,2,"td",6),f(),T(20,13),d(21,be,2,1,"th",14)(22,ve,3,1,"td",6),f(),T(23,15),d(24,we,3,6,"td",6),f(),d(25,Se,1,0,"tr",16)(26,ye,1,2,"tr",17)(27,ke,1,0,"tr",18),r(),f()),e&2){let t=s();a(2),m("mode",O(3,7,t.dataSource.loading$)?"indeterminate":"determinate")("value",0),a(2),m("dataSource",t.dataSource)("multiTemplateDataRows",!0),a(21),m("matHeaderRowDef",t.displayedColumns),a(),m("matRowDefColumns",t.displayedColumns),a(),m("matRowDefColumns",X(9,ce))}}var bn=(()=>{class e{constructor(){this.route=v(tt),this.router=v(et),this.breakpoints=v(R),this.contentTypeInfo=Ft,this.displayedColumns=Ie,this.updated=new E,this.items=Array(),this.expandedId=new q(null)}ngOnInit(){this.dataSource.items$.subscribe(t=>{this.items=t}),this.route.queryParams.subscribe(t=>{let n=this.expandedId.getValue()??void 0,i=G(t,"expanded");n!==i&&this.expandedId.next(i??null)}),this.expandedId.subscribe(t=>{this.router.navigate([],{relativeTo:this.route,queryParams:{expanded:t?encodeURIComponent(t):void 0},queryParamsHandling:"merge"})})}isAllSelected(){return this.items.every(t=>this.selection.isSelected(t.infoHash))}toggleAllRows(){if(this.isAllSelected()){this.selection.clear();return}this.selection.select(...this.items.map(t=>t.infoHash))}toggleTorrentContentId(t){this.expandedId.getValue()===t?this.expandedId.next(null):this.expandedId.next(t)}item(t){return t}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=I({type:e,selectors:[["app-torrents-table"]],inputs:{dataSource:"dataSource",selection:"selection",displayedColumns:"displayedColumns"},outputs:{updated:"updated"},standalone:!0,features:[A],decls:1,vars:0,consts:[[4,"transloco"],[1,"progress-bar-container"],[3,"mode","value"],["mat-table","",1,"table-torrents",3,"dataSource","multiTemplateDataRows"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","summary"],["mat-cell","",3,"click",4,"matCellDef"],["matColumnDef","size"],["matColumnDef","publishedAt"],["class","td-published-at","mat-cell","",4,"matCellDef"],["matColumnDef","peers"],["matColumnDef","magnet"],["mat-header-cell","","style","text-align: center",4,"matHeaderCellDef"],["matColumnDef","expandedDetail"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"class",4,"matRowDef","matRowDefColumns"],["mat-row","","class","expanded-detail-row",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],[3,"change","checked","indeterminate","matTooltip"],["mat-cell",""],[3,"click","change","checked"],["mat-cell","",3,"click"],[3,"matTooltip"],[1,"title"],[1,"original-name"],[3,"torrentContent"],["mat-cell","",1,"td-published-at"],["matTooltipClass","tooltip-published-at",3,"matTooltip"],["mat-header-cell","",2,"text-align","center"],[3,"href"],["svgIcon","magnet"],[1,"item-detail"],[3,"updated","torrentContent","size","published","peers"],["mat-header-row",""],["mat-row",""],["mat-row","",1,"expanded-detail-row"]],template:function(n,i){n&1&&d(0,Me,28,10,"ng-container",0)},dependencies:[$,St,D,yt,kt,It,Ot,Et,Mt,Vt,At,Pt,Dt,Bt,B,V,Z,Lt,Nt,Qt,jt],styles:[".progress-bar-container[_ngcontent-%COMP%]{height:10px}tr.expanded-detail-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-bottom-width:0}tr.expanded[_ngcontent-%COMP%] + tr.expanded-detail-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-bottom-width:1px}th.cdk-column-select[_ngcontent-%COMP%], td.cdk-column-select[_ngcontent-%COMP%]{padding-right:0}td.mat-column-summary[_ngcontent-%COMP%]{vertical-align:middle;cursor:pointer;white-space:pre-wrap;padding-top:8px;padding-bottom:8px}td.mat-column-summary[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{line-height:30px;overflow:hidden;margin-right:20px;font-weight:700}td.mat-column-summary[_ngcontent-%COMP%] .original-name[_ngcontent-%COMP%]{margin:2px 0 8px 34px}td.mat-column-summary[_ngcontent-%COMP%] .title[_ngcontent-%COMP%], td.mat-column-summary[_ngcontent-%COMP%] .original-name[_ngcontent-%COMP%]{white-space:pre-wrap;word-break:break-word;overflow-wrap:break-word}td.mat-column-summary[_ngcontent-%COMP%] > .mat-icon[_ngcontent-%COMP%]{display:inline-block;position:relative;top:6px;margin-right:10px}td.mat-column-summary[_ngcontent-%COMP%] mat-chip-set[_ngcontent-%COMP%]{display:inline-block;margin-left:10px}td.mat-column-summary[_ngcontent-%COMP%] mat-chip-set[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{margin:2px 10px 2px 0}tr.expanded-detail-row[_ngcontent-%COMP%]{height:0}tr.mat-mdc-row.expanded[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-bottom:0}tr.mat-mdc-row.expanded[_ngcontent-%COMP%] + .expanded-detail-row[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{padding-bottom:10px}.mat-column-magnet[_ngcontent-%COMP%]{text-align:center}.mat-column-magnet[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{position:relative;top:3px}.item-detail[_ngcontent-%COMP%]{width:100%;overflow:hidden}.td-published-at[_ngcontent-%COMP%] abbr[_ngcontent-%COMP%]{cursor:default;text-decoration:underline;text-decoration-style:dotted}.cdk-column-peers[_ngcontent-%COMP%]{white-space:nowrap}"],data:{animation:[nt("detailExpand",[j("collapsed,void",Q({height:"0px",minHeight:"0"})),j("expanded",Q({height:"*"})),ot("expanded <=> collapsed",it("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}})}}return e})(),Ie=["select","summary","size","publishedAt","peers","magnet"],vn=["select","summary","size","magnet"];export{Ee as a,G as b,Ae as c,Ze as d,bn as e,Ie as f,vn as g}; diff --git a/webui/dist/bitmagnet/browser/chunk-E4ZH23H3.js b/webui/dist/bitmagnet/browser/chunk-R6LGJCCV.js similarity index 99% rename from webui/dist/bitmagnet/browser/chunk-E4ZH23H3.js rename to webui/dist/bitmagnet/browser/chunk-R6LGJCCV.js index dec59037..cd92ec77 100644 --- a/webui/dist/bitmagnet/browser/chunk-E4ZH23H3.js +++ b/webui/dist/bitmagnet/browser/chunk-R6LGJCCV.js @@ -1 +1 @@ -import{a as E,b as B,f as pt,g as Ne,l as x,m as Me,n as he}from"./chunk-6XXA7HXI.js";import{a as le,c as dt,ia as S,ka as mt}from"./chunk-3DR3CJRN.js";function gt(n){return new S(3e3,!1)}function Wt(){return new S(3100,!1)}function Gt(){return new S(3101,!1)}function Ht(n){return new S(3001,!1)}function Yt(n){return new S(3003,!1)}function Xt(n){return new S(3004,!1)}function Zt(n,e){return new S(3005,!1)}function Jt(){return new S(3006,!1)}function xt(){return new S(3007,!1)}function es(n,e){return new S(3008,!1)}function ts(n){return new S(3002,!1)}function ss(n,e,t,s,i){return new S(3010,!1)}function is(){return new S(3011,!1)}function ns(){return new S(3012,!1)}function rs(){return new S(3200,!1)}function as(){return new S(3202,!1)}function os(){return new S(3013,!1)}function ls(n){return new S(3014,!1)}function hs(n){return new S(3015,!1)}function us(n){return new S(3016,!1)}function cs(n){return new S(3500,!1)}function fs(n){return new S(3501,!1)}function ds(n,e){return new S(3404,!1)}function ms(n){return new S(3502,!1)}function ps(n){return new S(3503,!1)}function gs(){return new S(3300,!1)}function ys(n){return new S(3504,!1)}function _s(n){return new S(3301,!1)}function Ss(n,e){return new S(3302,!1)}function Es(n){return new S(3303,!1)}function Ts(n,e){return new S(3400,!1)}function vs(n){return new S(3401,!1)}function ws(n){return new S(3402,!1)}function bs(n,e){return new S(3505,!1)}var As=new Set(["-moz-outline-radius","-moz-outline-radius-bottomleft","-moz-outline-radius-bottomright","-moz-outline-radius-topleft","-moz-outline-radius-topright","-ms-grid-columns","-ms-grid-rows","-webkit-line-clamp","-webkit-text-fill-color","-webkit-text-stroke","-webkit-text-stroke-color","accent-color","all","backdrop-filter","background","background-color","background-position","background-size","block-size","border","border-block-end","border-block-end-color","border-block-end-width","border-block-start","border-block-start-color","border-block-start-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-width","border-color","border-end-end-radius","border-end-start-radius","border-image-outset","border-image-slice","border-image-width","border-inline-end","border-inline-end-color","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-width","border-left","border-left-color","border-left-width","border-radius","border-right","border-right-color","border-right-width","border-start-end-radius","border-start-start-radius","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-width","border-width","bottom","box-shadow","caret-color","clip","clip-path","color","column-count","column-gap","column-rule","column-rule-color","column-rule-width","column-width","columns","filter","flex","flex-basis","flex-grow","flex-shrink","font","font-size","font-size-adjust","font-stretch","font-variation-settings","font-weight","gap","grid-column-gap","grid-gap","grid-row-gap","grid-template-columns","grid-template-rows","height","inline-size","input-security","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","left","letter-spacing","line-clamp","line-height","margin","margin-block-end","margin-block-start","margin-bottom","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","mask","mask-border","mask-position","mask-size","max-block-size","max-height","max-inline-size","max-lines","max-width","min-block-size","min-height","min-inline-size","min-width","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","outline","outline-color","outline-offset","outline-width","padding","padding-block-end","padding-block-start","padding-bottom","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","perspective","perspective-origin","right","rotate","row-gap","scale","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-coordinate","scroll-snap-destination","scrollbar-color","shape-image-threshold","shape-margin","shape-outside","tab-size","text-decoration","text-decoration-color","text-decoration-thickness","text-emphasis","text-emphasis-color","text-indent","text-shadow","text-underline-offset","top","transform","transform-origin","translate","vertical-align","visibility","width","word-spacing","z-index","zoom"]);function U(n){switch(n.length){case 0:return new x;case 1:return n[0];default:return new Me(n)}}function Lt(n,e,t=new Map,s=new Map){let i=[],r=[],a=-1,o=null;if(e.forEach(l=>{let h=l.get("offset"),c=h==a,u=c&&o||new Map;l.forEach((_,y)=>{let d=y,g=_;if(y!=="offset")switch(d=n.normalizePropertyName(d,i),g){case he:g=t.get(y);break;case B:g=s.get(y);break;default:g=n.normalizeStyleValue(y,d,g,i);break}u.set(d,g)}),c||r.push(u),o=u,a=h}),i.length)throw ms(i);return r}function et(n,e,t,s){switch(e){case"start":n.onStart(()=>s(t&&Ce(t,"start",n)));break;case"done":n.onDone(()=>s(t&&Ce(t,"done",n)));break;case"destroy":n.onDestroy(()=>s(t&&Ce(t,"destroy",n)));break}}function Ce(n,e,t){let s=t.totalTime,i=!!t.disabled,r=tt(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,s??n.totalTime,i),a=n._data;return a!=null&&(r._data=a),r}function tt(n,e,t,s,i="",r=0,a){return{element:n,triggerName:e,fromState:t,toState:s,phaseName:i,totalTime:r,disabled:!!a}}function L(n,e,t){let s=n.get(e);return s||n.set(e,s=t),s}function yt(n){let e=n.indexOf(":"),t=n.substring(1,e),s=n.slice(e+1);return[t,s]}var Ps=typeof document>"u"?null:document.documentElement;function st(n){let e=n.parentNode||n.host||null;return e===Ps?null:e}function Ns(n){return n.substring(1,6)=="ebkit"}var H=null,_t=!1;function Ms(n){H||(H=Cs()||{},_t=H.style?"WebkitAppearance"in H.style:!1);let e=!0;return H.style&&!Ns(n)&&(e=n in H.style,!e&&_t&&(e="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in H.style)),e}function wi(n){return As.has(n)}function Cs(){return typeof document<"u"?document.body:null}function Ft(n,e){for(;e;){if(e===n)return!0;e=st(e)}return!1}function It(n,e,t){if(t)return Array.from(n.querySelectorAll(e));let s=n.querySelector(e);return s?[s]:[]}var zt=(()=>{class n{validateStyleProperty(t){return Ms(t)}containsElement(t,s){return Ft(t,s)}getParentElement(t){return st(t)}query(t,s,i){return It(t,s,i)}computeStyle(t,s,i){return i||""}animate(t,s,i,r,a,o=[],l){return new x(i,r)}static{this.\u0275fac=function(s){return new(s||n)}}static{this.\u0275prov=mt({token:n,factory:n.\u0275fac})}}return n})(),St=class{static{this.NOOP=new zt}},Fe=class{},Ie=class{normalizePropertyName(e,t){return e}normalizeStyleValue(e,t,s,i){return s}},ks=1e3,Kt="{{",Ds="}}",it="ng-enter",pe="ng-leave",ue="ng-trigger",ge=".ng-trigger",Et="ng-animating",ze=".ng-animating";function $(n){if(typeof n=="number")return n;let e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Ke(parseFloat(e[1]),e[2])}function Ke(n,e){switch(e){case"s":return n*ks;default:return n}}function ye(n,e,t){return n.hasOwnProperty("duration")?n:Rs(n,e,t)}function Rs(n,e,t){let s=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,i,r=0,a="";if(typeof n=="string"){let o=n.match(s);if(o===null)return e.push(gt(n)),{duration:0,delay:0,easing:""};i=Ke(parseFloat(o[1]),o[2]);let l=o[3];l!=null&&(r=Ke(parseFloat(l),o[4]));let h=o[5];h&&(a=h)}else i=n;if(!t){let o=!1,l=e.length;i<0&&(e.push(Wt()),o=!0),r<0&&(e.push(Gt()),o=!0),o&&e.splice(l,0,gt(n))}return{duration:i,delay:r,easing:a}}function Os(n){return n.length?n[0]instanceof Map?n:n.map(e=>new Map(Object.entries(e))):[]}function Tt(n){return Array.isArray(n)?new Map(...n):new Map(n)}function Q(n,e,t){e.forEach((s,i)=>{let r=nt(i);t&&!t.has(i)&&t.set(i,n.style[r]),n.style[r]=s})}function X(n,e){e.forEach((t,s)=>{let i=nt(s);n.style[i]=""})}function se(n){return Array.isArray(n)?n.length==1?n[0]:pt(n):n}function Ls(n,e,t){let s=e.params||{},i=qt(n);i.length&&i.forEach(r=>{s.hasOwnProperty(r)||t.push(Ht(r))})}var qe=new RegExp(`${Kt}\\s*(.+?)\\s*${Ds}`,"g");function qt(n){let e=[];if(typeof n=="string"){let t;for(;t=qe.exec(n);)e.push(t[1]);qe.lastIndex=0}return e}function ne(n,e,t){let s=`${n}`,i=s.replace(qe,(r,a)=>{let o=e[a];return o==null&&(t.push(Yt(a)),o=""),o.toString()});return i==s?n:i}var Fs=/-+([a-z0-9])/g;function nt(n){return n.replace(Fs,(...e)=>e[1].toUpperCase())}function bi(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Is(n,e){return n===0||e===0}function zs(n,e,t){if(t.size&&e.length){let s=e[0],i=[];if(t.forEach((r,a)=>{s.has(a)||i.push(a),s.set(a,r)}),i.length)for(let r=1;ra.set(o,rt(n,o)))}}return e}function O(n,e,t){switch(e.type){case E.Trigger:return n.visitTrigger(e,t);case E.State:return n.visitState(e,t);case E.Transition:return n.visitTransition(e,t);case E.Sequence:return n.visitSequence(e,t);case E.Group:return n.visitGroup(e,t);case E.Animate:return n.visitAnimate(e,t);case E.Keyframes:return n.visitKeyframes(e,t);case E.Style:return n.visitStyle(e,t);case E.Reference:return n.visitReference(e,t);case E.AnimateChild:return n.visitAnimateChild(e,t);case E.AnimateRef:return n.visitAnimateRef(e,t);case E.Query:return n.visitQuery(e,t);case E.Stagger:return n.visitStagger(e,t);default:throw Xt(e.type)}}function rt(n,e){return window.getComputedStyle(n)[e]}var Ks=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),Be=class extends Fe{normalizePropertyName(e,t){return nt(e)}normalizeStyleValue(e,t,s,i){let r="",a=s.toString().trim();if(Ks.has(t)&&s!==0&&s!=="0")if(typeof s=="number")r="px";else{let o=s.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&o[1].length==0&&i.push(Zt(e,s))}return a+r}};var _e="*";function qs(n,e){let t=[];return typeof n=="string"?n.split(/\s*,\s*/).forEach(s=>Bs(s,t,e)):t.push(n),t}function Bs(n,e,t){if(n[0]==":"){let l=Qs(n,t);if(typeof l=="function"){e.push(l);return}n=l}let s=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(s==null||s.length<4)return t.push(hs(n)),e;let i=s[1],r=s[2],a=s[3];e.push(vt(i,a));let o=i==_e&&a==_e;r[0]=="<"&&!o&&e.push(vt(a,i))}function Qs(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,s)=>parseFloat(s)>parseFloat(t);case":decrement":return(t,s)=>parseFloat(s) *"}}var ce=new Set(["true","1"]),fe=new Set(["false","0"]);function vt(n,e){let t=ce.has(n)||fe.has(n),s=ce.has(e)||fe.has(e);return(i,r)=>{let a=n==_e||n==i,o=e==_e||e==r;return!a&&t&&typeof i=="boolean"&&(a=i?ce.has(n):fe.has(n)),!o&&s&&typeof r=="boolean"&&(o=r?ce.has(e):fe.has(e)),a&&o}}var Bt=":self",$s=new RegExp(`s*${Bt}s*,?`,"g");function at(n,e,t,s){return new Qe(n).build(e,t,s)}var wt="",Qe=class{constructor(e){this._driver=e}build(e,t,s){let i=new $e(t);return this._resetContextStyleTimingState(i),O(this,se(e),i)}_resetContextStyleTimingState(e){e.currentQuerySelector=wt,e.collectedStyles=new Map,e.collectedStyles.set(wt,new Map),e.currentTime=0}visitTrigger(e,t){let s=t.queryCount=0,i=t.depCount=0,r=[],a=[];return e.name.charAt(0)=="@"&&t.errors.push(Jt()),e.definitions.forEach(o=>{if(this._resetContextStyleTimingState(t),o.type==E.State){let l=o,h=l.name;h.toString().split(/\s*,\s*/).forEach(c=>{l.name=c,r.push(this.visitState(l,t))}),l.name=h}else if(o.type==E.Transition){let l=this.visitTransition(o,t);s+=l.queryCount,i+=l.depCount,a.push(l)}else t.errors.push(xt())}),{type:E.Trigger,name:e.name,states:r,transitions:a,queryCount:s,depCount:i,options:null}}visitState(e,t){let s=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(s.containsDynamicStyles){let r=new Set,a=i||{};s.styles.forEach(o=>{o instanceof Map&&o.forEach(l=>{qt(l).forEach(h=>{a.hasOwnProperty(h)||r.add(h)})})}),r.size&&t.errors.push(es(e.name,[...r.values()]))}return{type:E.State,name:e.name,style:s,options:i?{params:i}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let s=O(this,se(e.animation),t),i=qs(e.expr,t.errors);return{type:E.Transition,matchers:i,animation:s,queryCount:t.queryCount,depCount:t.depCount,options:Y(e.options)}}visitSequence(e,t){return{type:E.Sequence,steps:e.steps.map(s=>O(this,s,t)),options:Y(e.options)}}visitGroup(e,t){let s=t.currentTime,i=0,r=e.steps.map(a=>{t.currentTime=s;let o=O(this,a,t);return i=Math.max(i,t.currentTime),o});return t.currentTime=i,{type:E.Group,steps:r,options:Y(e.options)}}visitAnimate(e,t){let s=Ws(e.timings,t.errors);t.currentAnimateTimings=s;let i,r=e.styles?e.styles:Ne({});if(r.type==E.Keyframes)i=this.visitKeyframes(r,t);else{let a=e.styles,o=!1;if(!a){o=!0;let h={};s.easing&&(h.easing=s.easing),a=Ne(h)}t.currentTime+=s.duration+s.delay;let l=this.visitStyle(a,t);l.isEmptyStep=o,i=l}return t.currentAnimateTimings=null,{type:E.Animate,timings:s,style:i,options:null}}visitStyle(e,t){let s=this._makeStyleAst(e,t);return this._validateStyleAst(s,t),s}_makeStyleAst(e,t){let s=[],i=Array.isArray(e.styles)?e.styles:[e.styles];for(let o of i)typeof o=="string"?o===B?s.push(o):t.errors.push(ts(o)):s.push(new Map(Object.entries(o)));let r=!1,a=null;return s.forEach(o=>{if(o instanceof Map&&(o.has("easing")&&(a=o.get("easing"),o.delete("easing")),!r)){for(let l of o.values())if(l.toString().indexOf(Kt)>=0){r=!0;break}}}),{type:E.Style,styles:s,easing:a,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){let s=t.currentAnimateTimings,i=t.currentTime,r=t.currentTime;s&&r>0&&(r-=s.duration+s.delay),e.styles.forEach(a=>{typeof a!="string"&&a.forEach((o,l)=>{let h=t.collectedStyles.get(t.currentQuerySelector),c=h.get(l),u=!0;c&&(r!=i&&r>=c.startTime&&i<=c.endTime&&(t.errors.push(ss(l,c.startTime,c.endTime,r,i)),u=!1),r=c.startTime),u&&h.set(l,{startTime:r,endTime:i}),t.options&&Ls(o,t.options,t.errors)})})}visitKeyframes(e,t){let s={type:E.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(is()),s;let i=1,r=0,a=[],o=!1,l=!1,h=0,c=e.steps.map(b=>{let A=this._makeStyleAst(b,t),C=A.offset!=null?A.offset:js(A.styles),N=0;return C!=null&&(r++,N=A.offset=C),l=l||N<0||N>1,o=o||N0&&r{let C=_>0?A==y?1:_*A:a[A],N=C*v;t.currentTime=d+g.delay+N,g.duration=N,this._validateStyleAst(b,t),b.offset=C,s.styles.push(b)}),s}visitReference(e,t){return{type:E.Reference,animation:O(this,se(e.animation),t),options:Y(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:E.AnimateChild,options:Y(e.options)}}visitAnimateRef(e,t){return{type:E.AnimateRef,animation:this.visitReference(e.animation,t),options:Y(e.options)}}visitQuery(e,t){let s=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;let[r,a]=Vs(e.selector);t.currentQuerySelector=s.length?s+" "+r:r,L(t.collectedStyles,t.currentQuerySelector,new Map);let o=O(this,se(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=s,{type:E.Query,selector:r,limit:i.limit||0,optional:!!i.optional,includeSelf:a,animation:o,originalSelector:e.selector,options:Y(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(os());let s=e.timings==="full"?{duration:0,delay:0,easing:"full"}:ye(e.timings,t.errors,!0);return{type:E.Stagger,animation:O(this,se(e.animation),t),timings:s,options:null}}};function Vs(n){let e=!!n.split(/\s*,\s*/).find(t=>t==Bt);return e&&(n=n.replace($s,"")),n=n.replace(/@\*/g,ge).replace(/@\w+/g,t=>ge+"-"+t.slice(1)).replace(/:animating/g,ze),[n,e]}function Us(n){return n?le({},n):null}var $e=class{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function js(n){if(typeof n=="string")return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(t instanceof Map&&t.has("offset")){let s=t;e=parseFloat(s.get("offset")),s.delete("offset")}});else if(n instanceof Map&&n.has("offset")){let t=n;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function Ws(n,e){if(n.hasOwnProperty("duration"))return n;if(typeof n=="number"){let r=ye(n,e).duration;return ke(r,0,"")}let t=n;if(t.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=ke(0,0,"");return r.dynamic=!0,r.strValue=t,r}let i=ye(t,e);return ke(i.duration,i.delay,i.easing)}function Y(n){return n?(n=le({},n),n.params&&(n.params=Us(n.params))):n={},n}function ke(n,e,t){return{duration:n,delay:e,easing:t}}function ot(n,e,t,s,i,r,a=null,o=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:s,duration:i,delay:r,totalTime:i+r,easing:a,subTimeline:o}}var te=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let s=this._map.get(e);s||this._map.set(e,s=[]),s.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},Gs=1,Hs=":enter",Ys=new RegExp(Hs,"g"),Xs=":leave",Zs=new RegExp(Xs,"g");function lt(n,e,t,s,i,r=new Map,a=new Map,o,l,h=[]){return new Ve().buildKeyframes(n,e,t,s,i,r,a,o,l,h)}var Ve=class{buildKeyframes(e,t,s,i,r,a,o,l,h,c=[]){h=h||new te;let u=new Ue(e,t,h,i,r,c,[]);u.options=l;let _=l.delay?$(l.delay):0;u.currentTimeline.delayNextStep(_),u.currentTimeline.setStyles([a],null,u.errors,l),O(this,s,u);let y=u.timelines.filter(d=>d.containsAnimation());if(y.length&&o.size){let d;for(let g=y.length-1;g>=0;g--){let v=y[g];if(v.element===t){d=v;break}}d&&!d.allowOnlyTimelineStyles()&&d.setStyles([o],null,u.errors,l)}return y.length?y.map(d=>d.buildKeyframes()):[ot(t,[],[],[],0,_,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let s=t.subInstructions.get(t.element);if(s){let i=t.createSubContext(e.options),r=t.currentTimeline.currentTime,a=this._visitSubInstructions(s,i,i.options);r!=a&&t.transformIntoNewTimeline(a)}t.previousNode=e}visitAnimateRef(e,t){let s=t.createSubContext(e.options);s.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,s),this.visitReference(e.animation,s),t.transformIntoNewTimeline(s.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,s){for(let i of e){let r=i?.delay;if(r){let a=typeof r=="number"?r:$(ne(r,i?.params??{},t.errors));s.delayNextStep(a)}}}_visitSubInstructions(e,t,s){let r=t.currentTimeline.currentTime,a=s.duration!=null?$(s.duration):null,o=s.delay!=null?$(s.delay):null;return a!==0&&e.forEach(l=>{let h=t.appendInstructionToTimeline(l,a,o);r=Math.max(r,h.duration+h.delay)}),r}visitReference(e,t){t.updateOptions(e.options,!0),O(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let s=t.subContextCount,i=t,r=e.options;if(r&&(r.params||r.delay)&&(i=t.createSubContext(r),i.transformIntoNewTimeline(),r.delay!=null)){i.previousNode.type==E.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Se);let a=$(r.delay);i.delayNextStep(a)}e.steps.length&&(e.steps.forEach(a=>O(this,a,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>s&&i.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let s=[],i=t.currentTimeline.currentTime,r=e.options&&e.options.delay?$(e.options.delay):0;e.steps.forEach(a=>{let o=t.createSubContext(e.options);r&&o.delayNextStep(r),O(this,a,o),i=Math.max(i,o.currentTimeline.currentTime),s.push(o.currentTimeline)}),s.forEach(a=>t.currentTimeline.mergeTimelineCollectedStyles(a)),t.transformIntoNewTimeline(i),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let s=e.strValue,i=t.params?ne(s,t.params,t.errors):s;return ye(i,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let s=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;s.delay&&(t.incrementTime(s.delay),i.snapshotCurrentStyles());let r=e.style;r.type==E.Keyframes?this.visitKeyframes(r,t):(t.incrementTime(s.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let s=t.currentTimeline,i=t.currentAnimateTimings;!i&&s.hasCurrentStyleProperties()&&s.forwardFrame();let r=i&&i.easing||e.easing;e.isEmptyStep?s.applyEmptyStep(r):s.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let s=t.currentAnimateTimings,i=t.currentTimeline.duration,r=s.duration,o=t.createSubContext().currentTimeline;o.easing=s.easing,e.styles.forEach(l=>{let h=l.offset||0;o.forwardTime(h*r),o.setStyles(l.styles,l.easing,t.errors,t.options),o.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(i+r),t.previousNode=e}visitQuery(e,t){let s=t.currentTimeline.currentTime,i=e.options||{},r=i.delay?$(i.delay):0;r&&(t.previousNode.type===E.Style||s==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Se);let a=s,o=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=o.length;let l=null;o.forEach((h,c)=>{t.currentQueryIndex=c;let u=t.createSubContext(e.options,h);r&&u.delayNextStep(r),h===t.element&&(l=u.currentTimeline),O(this,e.animation,u),u.currentTimeline.applyStylesToKeyframe();let _=u.currentTimeline.currentTime;a=Math.max(a,_)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(a),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let s=t.parentContext,i=t.currentTimeline,r=e.timings,a=Math.abs(r.duration),o=a*(t.currentQueryTotal-1),l=a*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=o-l;break;case"full":l=s.currentStaggerTime;break}let c=t.currentTimeline;l&&c.delayNextStep(l);let u=c.currentTime;O(this,e.animation,t),t.previousNode=e,s.currentStaggerTime=i.currentTime-u+(i.startTime-s.currentTimeline.startTime)}},Se={},Ue=class n{constructor(e,t,s,i,r,a,o,l){this._driver=e,this.element=t,this.subInstructions=s,this._enterClassName=i,this._leaveClassName=r,this.errors=a,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Se,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Ee(this._driver,t,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let s=e,i=this.options;s.duration!=null&&(i.duration=$(s.duration)),s.delay!=null&&(i.delay=$(s.delay));let r=s.params;if(r){let a=i.params;a||(a=this.options.params={}),Object.keys(r).forEach(o=>{(!t||!a.hasOwnProperty(o))&&(a[o]=ne(r[o],a,this.errors))})}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let s=e.params={};Object.keys(t).forEach(i=>{s[i]=t[i]})}}return e}createSubContext(e=null,t,s){let i=t||this.element,r=new n(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,s||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(e){return this.previousNode=Se,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,s){let i={duration:t??e.duration,delay:this.currentTimeline.currentTime+(s??0)+e.delay,easing:""},r=new je(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(r),i}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,s,i,r,a){let o=[];if(i&&o.push(this.element),e.length>0){e=e.replace(Ys,"."+this._enterClassName),e=e.replace(Zs,"."+this._leaveClassName);let l=s!=1,h=this._driver.query(this.element,e,l);s!==0&&(h=s<0?h.slice(h.length+s,h.length):h.slice(0,s)),o.push(...h)}return!r&&o.length==0&&a.push(ls(t)),o}},Ee=class n{constructor(e,t,s,i){this._driver=e,this.element=t,this.startTime=s,this._elementTimelineStylesLookup=i,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new n(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=Gs,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,s]of this._globalTimelineStyles)this._backFill.set(t,s||B),this._currentKeyframe.set(t,B);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,s,i){t&&this._previousKeyframe.set("easing",t);let r=i&&i.params||{},a=Js(e,this._globalTimelineStyles);for(let[o,l]of a){let h=ne(l,r,s);this._pendingStyles.set(o,h),this._localTimelineStyles.has(o)||this._backFill.set(o,this._globalTimelineStyles.get(o)??B),this._updateStyle(o,h)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,s)=>{let i=this._styleSummary.get(s);(!i||t.time>i.time)&&this._updateStyle(s,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,s=this._keyframes.size===1&&this.duration===0,i=[];this._keyframes.forEach((o,l)=>{let h=new Map([...this._backFill,...o]);h.forEach((c,u)=>{c===he?e.add(u):c===B&&t.add(u)}),s||h.set("offset",l/this.duration),i.push(h)});let r=[...e.values()],a=[...t.values()];if(s){let o=i[0],l=new Map(o);o.set("offset",0),l.set("offset",1),i=[o,l]}return ot(this.element,i,r,a,this.duration,this.startTime,this.easing,!1)}},je=class extends Ee{constructor(e,t,s,i,r,a,o=!1){super(e,t,a.delay),this.keyframes=s,this.preStyleProps=i,this.postStyleProps=r,this._stretchStartingKeyframe=o,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:s,easing:i}=this.timings;if(this._stretchStartingKeyframe&&t){let r=[],a=s+t,o=t/a,l=new Map(e[0]);l.set("offset",0),r.push(l);let h=new Map(e[0]);h.set("offset",bt(o)),r.push(h);let c=e.length-1;for(let u=1;u<=c;u++){let _=new Map(e[u]),y=_.get("offset"),d=t+y*s;_.set("offset",bt(d/a)),r.push(_)}s=a,t=0,i="",e=r}return ot(this.element,e,this.preStyleProps,this.postStyleProps,s,t,i,!0)}};function bt(n,e=3){let t=Math.pow(10,e-1);return Math.round(n*t)/t}function Js(n,e){let t=new Map,s;return n.forEach(i=>{if(i==="*"){s??=e.keys();for(let r of s)t.set(r,B)}else for(let[r,a]of i)t.set(r,a)}),t}function At(n,e,t,s,i,r,a,o,l,h,c,u,_){return{type:0,element:n,triggerName:e,isRemovalTransition:i,fromState:t,fromStyles:r,toState:s,toStyles:a,timelines:o,queriedElements:l,preStyleProps:h,postStyleProps:c,totalTime:u,errors:_}}var De={},Te=class{constructor(e,t,s){this._triggerName=e,this.ast=t,this._stateStyles=s}match(e,t,s,i){return xs(this.ast.matchers,e,t,s,i)}buildStyles(e,t,s){let i=this._stateStyles.get("*");return e!==void 0&&(i=this._stateStyles.get(e?.toString())||i),i?i.buildStyles(t,s):new Map}build(e,t,s,i,r,a,o,l,h,c){let u=[],_=this.ast.options&&this.ast.options.params||De,y=o&&o.params||De,d=this.buildStyles(s,y,u),g=l&&l.params||De,v=this.buildStyles(i,g,u),b=new Set,A=new Map,C=new Map,N=i==="void",Z={params:Qt(g,_),delay:this.ast.options?.delay},K=c?[]:lt(e,t,this.ast.animation,r,a,d,v,Z,h,u),k=0;return K.forEach(D=>{k=Math.max(D.duration+D.delay,k)}),u.length?At(t,this._triggerName,s,i,N,d,v,[],[],A,C,k,u):(K.forEach(D=>{let j=D.element,J=L(A,j,new Set);D.preStyleProps.forEach(W=>J.add(W));let ht=L(C,j,new Set);D.postStyleProps.forEach(W=>ht.add(W)),j!==t&&b.add(j)}),At(t,this._triggerName,s,i,N,d,v,K,[...b.values()],A,C,k))}};function xs(n,e,t,s,i){return n.some(r=>r(e,t,s,i))}function Qt(n,e){let t=le({},e);return Object.entries(n).forEach(([s,i])=>{i!=null&&(t[s]=i)}),t}var We=class{constructor(e,t,s){this.styles=e,this.defaultParams=t,this.normalizer=s}buildStyles(e,t){let s=new Map,i=Qt(e,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((a,o)=>{a&&(a=ne(a,i,t));let l=this.normalizer.normalizePropertyName(o,t);a=this.normalizer.normalizeStyleValue(o,l,a,t),s.set(o,a)})}),s}};function ei(n,e,t){return new Ge(n,e,t)}var Ge=class{constructor(e,t,s){this.name=e,this.ast=t,this._normalizer=s,this.transitionFactories=[],this.states=new Map,t.states.forEach(i=>{let r=i.options&&i.options.params||{};this.states.set(i.name,new We(i.style,r,s))}),Pt(this.states,"true","1"),Pt(this.states,"false","0"),t.transitions.forEach(i=>{this.transitionFactories.push(new Te(e,i,this.states))}),this.fallbackTransition=ti(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,s,i){return this.transitionFactories.find(a=>a.match(e,t,s,i))||null}matchStyles(e,t,s){return this.fallbackTransition.buildStyles(e,t,s)}};function ti(n,e,t){let s=[(a,o)=>!0],i={type:E.Sequence,steps:[],options:null},r={type:E.Transition,animation:i,matchers:s,options:null,queryCount:0,depCount:0};return new Te(n,r,e)}function Pt(n,e,t){n.has(e)?n.has(t)||n.set(t,n.get(e)):n.has(t)&&n.set(e,n.get(t))}var si=new te,He=class{constructor(e,t,s){this.bodyNode=e,this._driver=t,this._normalizer=s,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,t){let s=[],i=[],r=at(this._driver,t,s,i);if(s.length)throw ps(s);i.length&&void 0,this._animations.set(e,r)}_buildPlayer(e,t,s){let i=e.element,r=Lt(this._normalizer,e.keyframes,t,s);return this._driver.animate(i,r,e.duration,e.delay,e.easing,[],!0)}create(e,t,s={}){let i=[],r=this._animations.get(e),a,o=new Map;if(r?(a=lt(this._driver,t,r,it,pe,new Map,new Map,s,si,i),a.forEach(c=>{let u=L(o,c.element,new Map);c.postStyleProps.forEach(_=>u.set(_,null))})):(i.push(gs()),a=[]),i.length)throw ys(i);o.forEach((c,u)=>{c.forEach((_,y)=>{c.set(y,this._driver.computeStyle(u,y,B))})});let l=a.map(c=>{let u=o.get(c.element);return this._buildPlayer(c,new Map,u)}),h=U(l);return this._playersById.set(e,h),h.onDestroy(()=>this.destroy(e)),this.players.push(h),h}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let s=this.players.indexOf(t);s>=0&&this.players.splice(s,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw _s(e);return t}listen(e,t,s,i){let r=tt(t,"","","");return et(this._getPlayer(e),s,r,i),()=>{}}command(e,t,s,i){if(s=="register"){this.register(e,i[0]);return}if(s=="create"){let a=i[0]||{};this.create(e,t,a);return}let r=this._getPlayer(e);switch(s){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e);break}}},Nt="ng-animate-queued",ii=".ng-animate-queued",Re="ng-animate-disabled",ni=".ng-animate-disabled",ri="ng-star-inserted",ai=".ng-star-inserted",oi=[],$t={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},li={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},z="__ng_removed",re=class{get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let s=e&&e.hasOwnProperty("value"),i=s?e.value:e;if(this.value=ui(i),s){let r=e,{value:a}=r,o=dt(r,["value"]);this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let t=e.params;if(t){let s=this.options.params;Object.keys(t).forEach(i=>{s[i]==null&&(s[i]=t[i])})}}},ie="void",Oe=new re(ie),Ye=class{constructor(e,t,s){this.id=e,this.hostElement=t,this._engine=s,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,I(t,this._hostClassName)}listen(e,t,s,i){if(!this._triggers.has(t))throw Ss(s,t);if(s==null||s.length==0)throw Es(t);if(!ci(s))throw Ts(s,t);let r=L(this._elementListeners,e,[]),a={name:t,phase:s,callback:i};r.push(a);let o=L(this._engine.statesByElement,e,new Map);return o.has(t)||(I(e,ue),I(e,ue+"-"+t),o.set(t,Oe)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(a);l>=0&&r.splice(l,1),this._triggers.has(t)||o.delete(t)})}}register(e,t){return this._triggers.has(e)?!1:(this._triggers.set(e,t),!0)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw vs(e);return t}trigger(e,t,s,i=!0){let r=this._getTrigger(t),a=new ae(this.id,t,e),o=this._engine.statesByElement.get(e);o||(I(e,ue),I(e,ue+"-"+t),this._engine.statesByElement.set(e,o=new Map));let l=o.get(t),h=new re(s,this.id);if(!(s&&s.hasOwnProperty("value"))&&l&&h.absorbOptions(l.options),o.set(t,h),l||(l=Oe),!(h.value===ie)&&l.value===h.value){if(!mi(l.params,h.params)){let g=[],v=r.matchStyles(l.value,l.params,g),b=r.matchStyles(h.value,h.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{X(e,v),Q(e,b)})}return}let _=L(this._engine.playersByElement,e,[]);_.forEach(g=>{g.namespaceId==this.id&&g.triggerName==t&&g.queued&&g.destroy()});let y=r.matchTransition(l.value,h.value,e,h.params),d=!1;if(!y){if(!i)return;y=r.fallbackTransition,d=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:y,fromState:l,toState:h,player:a,isFallbackTransition:d}),d||(I(e,Nt),a.onStart(()=>{ee(e,Nt)})),a.onDone(()=>{let g=this.players.indexOf(a);g>=0&&this.players.splice(g,1);let v=this._engine.playersByElement.get(e);if(v){let b=v.indexOf(a);b>=0&&v.splice(b,1)}}),this.players.push(a),_.push(a),a}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,s)=>{this._elementListeners.set(s,t.filter(i=>i.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(s=>s.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let s=this._engine.driver.query(e,ge,!0);s.forEach(i=>{if(i[z])return;let r=this._engine.fetchNamespacesByElement(i);r.size?r.forEach(a=>a.triggerLeaveAnimation(i,t,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>s.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(e,t,s,i){let r=this._engine.statesByElement.get(e),a=new Map;if(r){let o=[];if(r.forEach((l,h)=>{if(a.set(h,l.value),this._triggers.has(h)){let c=this.trigger(e,h,ie,i);c&&o.push(c)}}),o.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,a),s&&U(o).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),s=this._engine.statesByElement.get(e);if(t&&s){let i=new Set;t.forEach(r=>{let a=r.name;if(i.has(a))return;i.add(a);let l=this._triggers.get(a).fallbackTransition,h=s.get(a)||Oe,c=new re(ie),u=new ae(this.id,a,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:a,transition:l,fromState:h,toState:c,player:u,isFallbackTransition:!0})})}}removeNode(e,t){let s=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let i=!1;if(s.totalAnimations){let r=s.players.length?s.playersByQueriedElement.get(e):[];if(r&&r.length)i=!0;else{let a=e;for(;a=a.parentNode;)if(s.statesByElement.get(a)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(e),i)s.markElementAsRemoved(this.id,e,!1,t);else{let r=e[z];(!r||r===$t)&&(s.afterFlush(()=>this.clearElementCache(e)),s.destroyInnerAnimations(e),s._onRemovalComplete(e,t))}}insertNode(e,t){I(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(s=>{let i=s.player;if(i.destroyed)return;let r=s.element,a=this._elementListeners.get(r);a&&a.forEach(o=>{if(o.name==s.triggerName){let l=tt(r,s.triggerName,s.fromState.value,s.toState.value);l._data=e,et(s.player,o.phase,l,o.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):t.push(s)}),this._queue=[],t.sort((s,i)=>{let r=s.transition.ast.depCount,a=i.transition.ast.depCount;return r==0||a==0?r-a:this._engine.driver.containsElement(s.element,i.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},Xe=class{_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,s){this.bodyNode=e,this.driver=t,this._normalizer=s,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(i,r)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(s=>{s.queued&&e.push(s)})}),e}createNamespace(e,t){let s=new Ye(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(s,t):(this.newHostElements.set(t,s),this.collectEnterElement(t)),this._namespaceLookup[e]=s}_balanceNamespaceList(e,t){let s=this._namespaceList,i=this.namespacesByHostElement;if(s.length-1>=0){let a=!1,o=this.driver.getParentElement(t);for(;o;){let l=i.get(o);if(l){let h=s.indexOf(l);s.splice(h+1,0,e),a=!0;break}o=this.driver.getParentElement(o)}a||s.unshift(e)}else s.push(e);return i.set(t,e),e}register(e,t){let s=this._namespaceLookup[e];return s||(s=this.createNamespace(e,t)),s}registerTrigger(e,t,s){let i=this._namespaceLookup[e];i&&i.register(t,s)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let s=this._fetchNamespace(e);this.namespacesByHostElement.delete(s.hostElement);let i=this._namespaceList.indexOf(s);i>=0&&this._namespaceList.splice(i,1),s.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,s=this.statesByElement.get(e);if(s){for(let i of s.values())if(i.namespaceId){let r=this._fetchNamespace(i.namespaceId);r&&t.add(r)}}return t}trigger(e,t,s,i){if(de(t)){let r=this._fetchNamespace(e);if(r)return r.trigger(t,s,i),!0}return!1}insertNode(e,t,s,i){if(!de(t))return;let r=t[z];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let a=this.collectedLeaveElements.indexOf(t);a>=0&&this.collectedLeaveElements.splice(a,1)}if(e){let a=this._fetchNamespace(e);a&&a.insertNode(t,s)}i&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),I(e,Re)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),ee(e,Re))}removeNode(e,t,s){if(de(t)){let i=e?this._fetchNamespace(e):null;i?i.removeNode(t,s):this.markElementAsRemoved(e,t,!1,s);let r=this.namespacesByHostElement.get(t);r&&r.id!==e&&r.removeNode(t,s)}else this._onRemovalComplete(t,s)}markElementAsRemoved(e,t,s,i,r){this.collectedLeaveElements.push(t),t[z]={namespaceId:e,setForRemoval:i,hasAnimation:s,removedBeforeQueried:!1,previousTriggersValues:r}}listen(e,t,s,i,r){return de(t)?this._fetchNamespace(e).listen(t,s,i,r):()=>{}}_buildInstruction(e,t,s,i,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,s,i,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,ge,!0);t.forEach(s=>this.destroyActiveAnimationsForElement(s)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,ze,!0),t.forEach(s=>this.finishActiveQueriedAnimationOnElement(s)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(s=>{s.queued?s.markedForDestroy=!0:s.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(s=>s.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return U(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[z];if(t&&t.setForRemoval){if(e[z]=$t,t.namespaceId){this.destroyInnerAnimations(e);let s=this._fetchNamespace(t.namespaceId);s&&s.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(Re)&&this.markElementAsDisabled(e,!1),this.driver.query(e,ni,!0).forEach(s=>{this.markElementAsDisabled(s,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((s,i)=>this._balanceNamespaceList(s,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let s=0;ss()),this._flushFns=[],this._whenQuietFns.length){let s=this._whenQuietFns;this._whenQuietFns=[],t.length?U(t).onDone(()=>{s.forEach(i=>i())}):s.forEach(i=>i())}}reportError(e){throw ws(e)}_flushAnimations(e,t){let s=new te,i=[],r=new Map,a=[],o=new Map,l=new Map,h=new Map,c=new Set;this.disabledNodes.forEach(f=>{c.add(f);let m=this.driver.query(f,ii,!0);for(let p=0;p{let p=it+g++;d.set(m,p),f.forEach(T=>I(T,p))});let v=[],b=new Set,A=new Set;for(let f=0;fb.add(T)):A.add(m))}let C=new Map,N=kt(_,Array.from(b));N.forEach((f,m)=>{let p=pe+g++;C.set(m,p),f.forEach(T=>I(T,p))}),e.push(()=>{y.forEach((f,m)=>{let p=d.get(m);f.forEach(T=>ee(T,p))}),N.forEach((f,m)=>{let p=C.get(m);f.forEach(T=>ee(T,p))}),v.forEach(f=>{this.processLeaveNode(f)})});let Z=[],K=[];for(let f=this._namespaceList.length-1;f>=0;f--)this._namespaceList[f].drainQueuedTransitions(t).forEach(p=>{let T=p.player,P=p.element;if(Z.push(T),this.collectedEnterElements.length){let M=P[z];if(M&&M.setForMove){if(M.previousTriggersValues&&M.previousTriggersValues.has(p.triggerName)){let G=M.previousTriggersValues.get(p.triggerName),F=this.statesByElement.get(p.element);if(F&&F.has(p.triggerName)){let oe=F.get(p.triggerName);oe.value=G,F.set(p.triggerName,oe)}}T.destroy();return}}let q=!u||!this.driver.containsElement(u,P),R=C.get(P),V=d.get(P),w=this._buildInstruction(p,s,V,R,q);if(w.errors&&w.errors.length){K.push(w);return}if(q){T.onStart(()=>X(P,w.fromStyles)),T.onDestroy(()=>Q(P,w.toStyles)),i.push(T);return}if(p.isFallbackTransition){T.onStart(()=>X(P,w.fromStyles)),T.onDestroy(()=>Q(P,w.toStyles)),i.push(T);return}let ft=[];w.timelines.forEach(M=>{M.stretchStartingKeyframe=!0,this.disabledNodes.has(M.element)||ft.push(M)}),w.timelines=ft,s.append(P,w.timelines);let jt={instruction:w,player:T,element:P};a.push(jt),w.queriedElements.forEach(M=>L(o,M,[]).push(T)),w.preStyleProps.forEach((M,G)=>{if(M.size){let F=l.get(G);F||l.set(G,F=new Set),M.forEach((oe,Pe)=>F.add(Pe))}}),w.postStyleProps.forEach((M,G)=>{let F=h.get(G);F||h.set(G,F=new Set),M.forEach((oe,Pe)=>F.add(Pe))})});if(K.length){let f=[];K.forEach(m=>{f.push(bs(m.triggerName,m.errors))}),Z.forEach(m=>m.destroy()),this.reportError(f)}let k=new Map,D=new Map;a.forEach(f=>{let m=f.element;s.has(m)&&(D.set(m,m),this._beforeAnimationBuild(f.player.namespaceId,f.instruction,k))}),i.forEach(f=>{let m=f.element;this._getPreviousPlayers(m,!1,f.namespaceId,f.triggerName,null).forEach(T=>{L(k,m,[]).push(T),T.destroy()})});let j=v.filter(f=>Dt(f,l,h)),J=new Map;Ct(J,this.driver,A,h,B).forEach(f=>{Dt(f,l,h)&&j.push(f)});let W=new Map;y.forEach((f,m)=>{Ct(W,this.driver,new Set(f),l,he)}),j.forEach(f=>{let m=J.get(f),p=W.get(f);J.set(f,new Map([...m?.entries()??[],...p?.entries()??[]]))});let Ae=[],ut=[],ct={};a.forEach(f=>{let{element:m,player:p,instruction:T}=f;if(s.has(m)){if(c.has(m)){p.onDestroy(()=>Q(m,T.toStyles)),p.disabled=!0,p.overrideTotalTime(T.totalTime),i.push(p);return}let P=ct;if(D.size>1){let R=m,V=[];for(;R=R.parentNode;){let w=D.get(R);if(w){P=w;break}V.push(R)}V.forEach(w=>D.set(w,P))}let q=this._buildAnimation(p.namespaceId,T,k,r,W,J);if(p.setRealPlayer(q),P===ct)Ae.push(p);else{let R=this.playersByElement.get(P);R&&R.length&&(p.parentPlayer=U(R)),i.push(p)}}else X(m,T.fromStyles),p.onDestroy(()=>Q(m,T.toStyles)),ut.push(p),c.has(m)&&i.push(p)}),ut.forEach(f=>{let m=r.get(f.element);if(m&&m.length){let p=U(m);f.setRealPlayer(p)}}),i.forEach(f=>{f.parentPlayer?f.syncPlayerEvents(f.parentPlayer):f.destroy()});for(let f=0;f!q.destroyed);P.length?fi(this,m,P):this.processLeaveNode(m)}return v.length=0,Ae.forEach(f=>{this.players.push(f),f.onDone(()=>{f.destroy();let m=this.players.indexOf(f);this.players.splice(m,1)}),f.play()}),Ae}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,s,i,r){let a=[];if(t){let o=this.playersByQueriedElement.get(e);o&&(a=o)}else{let o=this.playersByElement.get(e);if(o){let l=!r||r==ie;o.forEach(h=>{h.queued||!l&&h.triggerName!=i||a.push(h)})}}return(s||i)&&(a=a.filter(o=>!(s&&s!=o.namespaceId||i&&i!=o.triggerName))),a}_beforeAnimationBuild(e,t,s){let i=t.triggerName,r=t.element,a=t.isRemovalTransition?void 0:e,o=t.isRemovalTransition?void 0:i;for(let l of t.timelines){let h=l.element,c=h!==r,u=L(s,h,[]);this._getPreviousPlayers(h,c,a,o,t.toState).forEach(y=>{let d=y.getRealPlayer();d.beforeDestroy&&d.beforeDestroy(),y.destroy(),u.push(y)})}X(r,t.fromStyles)}_buildAnimation(e,t,s,i,r,a){let o=t.triggerName,l=t.element,h=[],c=new Set,u=new Set,_=t.timelines.map(d=>{let g=d.element;c.add(g);let v=g[z];if(v&&v.removedBeforeQueried)return new x(d.duration,d.delay);let b=g!==l,A=di((s.get(g)||oi).map(k=>k.getRealPlayer())).filter(k=>{let D=k;return D.element?D.element===g:!1}),C=r.get(g),N=a.get(g),Z=Lt(this._normalizer,d.keyframes,C,N),K=this._buildPlayer(d,Z,A);if(d.subTimeline&&i&&u.add(g),b){let k=new ae(e,o,g);k.setRealPlayer(K),h.push(k)}return K});h.forEach(d=>{L(this.playersByQueriedElement,d.element,[]).push(d),d.onDone(()=>hi(this.playersByQueriedElement,d.element,d))}),c.forEach(d=>I(d,Et));let y=U(_);return y.onDestroy(()=>{c.forEach(d=>ee(d,Et)),Q(l,t.toStyles)}),u.forEach(d=>{L(i,d,[]).push(y)}),y}_buildPlayer(e,t,s){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,s):new x(e.duration,e.delay)}},ae=class{constructor(e,t,s){this.namespaceId=e,this.triggerName=t,this.element=s,this._player=new x,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,s)=>{t.forEach(i=>et(e,s,void 0,i))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){L(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e)}};function hi(n,e,t){let s=n.get(e);if(s){if(s.length){let i=s.indexOf(t);s.splice(i,1)}s.length==0&&n.delete(e)}return s}function ui(n){return n??null}function de(n){return n&&n.nodeType===1}function ci(n){return n=="start"||n=="done"}function Mt(n,e){let t=n.style.display;return n.style.display=e??"none",t}function Ct(n,e,t,s,i){let r=[];t.forEach(l=>r.push(Mt(l)));let a=[];s.forEach((l,h)=>{let c=new Map;l.forEach(u=>{let _=e.computeStyle(h,u,i);c.set(u,_),(!_||_.length==0)&&(h[z]=li,a.push(h))}),n.set(h,c)});let o=0;return t.forEach(l=>Mt(l,r[o++])),a}function kt(n,e){let t=new Map;if(n.forEach(o=>t.set(o,[])),e.length==0)return t;let s=1,i=new Set(e),r=new Map;function a(o){if(!o)return s;let l=r.get(o);if(l)return l;let h=o.parentNode;return t.has(h)?l=h:i.has(h)?l=s:l=a(h),r.set(o,l),l}return e.forEach(o=>{let l=a(o);l!==s&&t.get(l).push(o)}),t}function I(n,e){n.classList?.add(e)}function ee(n,e){n.classList?.remove(e)}function fi(n,e,t){U(t).onDone(()=>n.processLeaveNode(e))}function di(n){let e=[];return Vt(n,e),e}function Vt(n,e){for(let t=0;ti.add(r)):e.set(n,s),t.delete(n),!0}var ve=class{constructor(e,t,s){this._driver=t,this._normalizer=s,this._triggerCache={},this.onRemovalComplete=(i,r)=>{},this._transitionEngine=new Xe(e.body,t,s),this._timelineEngine=new He(e.body,t,s),this._transitionEngine.onRemovalComplete=(i,r)=>this.onRemovalComplete(i,r)}registerTrigger(e,t,s,i,r){let a=e+"-"+i,o=this._triggerCache[a];if(!o){let l=[],h=[],c=at(this._driver,r,l,h);if(l.length)throw ds(i,l);h.length&&void 0,o=ei(i,c,this._normalizer),this._triggerCache[a]=o}this._transitionEngine.registerTrigger(t,i,o)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,s,i){this._transitionEngine.insertNode(e,t,s,i)}onRemove(e,t,s){this._transitionEngine.removeNode(e,t,s)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,s,i){if(s.charAt(0)=="@"){let[r,a]=yt(s),o=i;this._timelineEngine.command(r,t,a,o)}else this._transitionEngine.trigger(e,t,s,i)}listen(e,t,s,i,r){if(s.charAt(0)=="@"){let[a,o]=yt(s);return this._timelineEngine.listen(a,t,o,r)}return this._transitionEngine.listen(e,t,s,i,r)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function pi(n,e){let t=null,s=null;return Array.isArray(e)&&e.length?(t=Le(e[0]),e.length>1&&(s=Le(e[e.length-1]))):e instanceof Map&&(t=Le(e)),t||s?new Ze(n,t,s):null}var Ze=class n{static{this.initialStylesByElement=new WeakMap}constructor(e,t,s){this._element=e,this._startStyles=t,this._endStyles=s,this._state=0;let i=n.initialStylesByElement.get(e);i||n.initialStylesByElement.set(e,i=new Map),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&Q(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Q(this._element,this._initialStyles),this._endStyles&&(Q(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(X(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(X(this._element,this._endStyles),this._endStyles=null),Q(this._element,this._initialStyles),this._state=3)}};function Le(n){let e=null;return n.forEach((t,s)=>{gi(s)&&(e=e||new Map,e.set(s,t))}),e}function gi(n){return n==="display"||n==="position"}var we=class{constructor(e,t,s,i){this.element=e,this.keyframes=t,this.options=s,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=s.duration,this._delay=s.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let t=[];return e.forEach(s=>{t.push(Object.fromEntries(s))}),t}_triggerWebAnimation(e,t,s){return e.animate(this._convertKeyframesToObject(t),s)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((s,i)=>{i!=="offset"&&e.set(i,this._finished?s:rt(this.element,i))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(s=>s()),t.length=0}},Je=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return Ft(e,t)}getParentElement(e){return st(e)}query(e,t,s){return It(e,t,s)}computeStyle(e,t,s){return rt(e,t)}animate(e,t,s,i,r,a=[]){let o=i==0?"both":"forwards",l={duration:s,delay:i,fill:o};r&&(l.easing=r);let h=new Map,c=a.filter(y=>y instanceof we);Is(s,i)&&c.forEach(y=>{y.currentSnapshot.forEach((d,g)=>h.set(g,d))});let u=Os(t).map(y=>new Map(y));u=zs(e,u,h);let _=pi(e,u);return new we(e,u,l,_)}};function Ai(n,e){return n==="noop"?new ve(e,new zt,new Ie):new ve(e,new Je,new Be)}var Rt=class{constructor(e,t){this._driver=e;let s=[],i=[],r=at(e,t,s,i);if(s.length)throw cs(s);i.length&&void 0,this._animationAst=r}buildTimelines(e,t,s,i,r){let a=Array.isArray(t)?Tt(t):t,o=Array.isArray(s)?Tt(s):s,l=[];r=r||new te;let h=lt(this._driver,e,this._animationAst,it,pe,a,o,i,r,l);if(l.length)throw fs(l);return h}},me="@",Ut="@.disabled",be=class{constructor(e,t,s,i){this.namespaceId=e,this.delegate=t,this.engine=s,this._onDestroy=i,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,s,i=!0){this.delegate.insertBefore(e,t,s),this.engine.onInsert(this.namespaceId,t,e,i)}removeChild(e,t,s){this.parentNode(t)&&this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,s,i){this.delegate.setAttribute(e,t,s,i)}removeAttribute(e,t,s){this.delegate.removeAttribute(e,t,s)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,s,i){this.delegate.setStyle(e,t,s,i)}removeStyle(e,t,s){this.delegate.removeStyle(e,t,s)}setProperty(e,t,s){t.charAt(0)==me&&t==Ut?this.disableAnimations(e,!!s):this.delegate.setProperty(e,t,s)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,s){return this.delegate.listen(e,t,s)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},xe=class extends be{constructor(e,t,s,i,r){super(t,s,i,r),this.factory=e,this.namespaceId=t}setProperty(e,t,s){t.charAt(0)==me?t.charAt(1)=="."&&t==Ut?(s=s===void 0?!0:!!s,this.disableAnimations(e,s)):this.engine.process(this.namespaceId,e,t.slice(1),s):this.delegate.setProperty(e,t,s)}listen(e,t,s){if(t.charAt(0)==me){let i=yi(e),r=t.slice(1),a="";return r.charAt(0)!=me&&([r,a]=_i(r)),this.engine.listen(this.namespaceId,i,r,a,o=>{let l=o._data||-1;this.factory.scheduleListenerCallback(l,s,o)})}return this.delegate.listen(e,t,s)}};function yi(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}function _i(n){let e=n.indexOf("."),t=n.substring(0,e),s=n.slice(e+1);return[t,s]}var Ot=class{constructor(e,t,s){this.delegate=e,this.engine=t,this._zone=s,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,t.onRemovalComplete=(i,r)=>{r?.removeChild(null,i)}}createRenderer(e,t){let s="",i=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let h=this._rendererCache,c=h.get(i);if(!c){let u=()=>h.delete(i);c=new be(s,i,this.engine,u),h.set(i,c)}return c}let r=t.id,a=t.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);let o=h=>{Array.isArray(h)?h.forEach(o):this.engine.registerTrigger(r,a,e,h.name,h)};return t.data.animation.forEach(o),new xe(this,a,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,s){if(e>=0&&et(s));return}let i=this._animationCallbacksBuffer;i.length==0&&queueMicrotask(()=>{this._zone.run(()=>{i.forEach(r=>{let[a,o]=r;a(o)}),this._animationCallbacksBuffer=[]})}),i.push([t,s])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};export{St as AnimationDriver,zt as NoopAnimationDriver,Rt as \u0275Animation,ve as \u0275AnimationEngine,xe as \u0275AnimationRenderer,Ot as \u0275AnimationRendererFactory,Fe as \u0275AnimationStyleNormalizer,be as \u0275BaseAnimationRenderer,Ie as \u0275NoopAnimationStyleNormalizer,Je as \u0275WebAnimationsDriver,we as \u0275WebAnimationsPlayer,Be as \u0275WebAnimationsStyleNormalizer,Is as \u0275allowPreviousPlayerStylesMerge,bi as \u0275camelCaseToDashCase,Ft as \u0275containsElement,Ai as \u0275createEngine,st as \u0275getParentElement,It as \u0275invokeQuery,Os as \u0275normalizeKeyframes,Ms as \u0275validateStyleProperty,wi as \u0275validateWebAnimatableStyleProperty}; +import{a as E,b as B,f as pt,g as Ne,l as x,m as Me,n as he}from"./chunk-6XXA7HXI.js";import{a as le,c as dt,ia as S,ka as mt}from"./chunk-FJILXII2.js";function gt(n){return new S(3e3,!1)}function Wt(){return new S(3100,!1)}function Gt(){return new S(3101,!1)}function Ht(n){return new S(3001,!1)}function Yt(n){return new S(3003,!1)}function Xt(n){return new S(3004,!1)}function Zt(n,e){return new S(3005,!1)}function Jt(){return new S(3006,!1)}function xt(){return new S(3007,!1)}function es(n,e){return new S(3008,!1)}function ts(n){return new S(3002,!1)}function ss(n,e,t,s,i){return new S(3010,!1)}function is(){return new S(3011,!1)}function ns(){return new S(3012,!1)}function rs(){return new S(3200,!1)}function as(){return new S(3202,!1)}function os(){return new S(3013,!1)}function ls(n){return new S(3014,!1)}function hs(n){return new S(3015,!1)}function us(n){return new S(3016,!1)}function cs(n){return new S(3500,!1)}function fs(n){return new S(3501,!1)}function ds(n,e){return new S(3404,!1)}function ms(n){return new S(3502,!1)}function ps(n){return new S(3503,!1)}function gs(){return new S(3300,!1)}function ys(n){return new S(3504,!1)}function _s(n){return new S(3301,!1)}function Ss(n,e){return new S(3302,!1)}function Es(n){return new S(3303,!1)}function Ts(n,e){return new S(3400,!1)}function vs(n){return new S(3401,!1)}function ws(n){return new S(3402,!1)}function bs(n,e){return new S(3505,!1)}var As=new Set(["-moz-outline-radius","-moz-outline-radius-bottomleft","-moz-outline-radius-bottomright","-moz-outline-radius-topleft","-moz-outline-radius-topright","-ms-grid-columns","-ms-grid-rows","-webkit-line-clamp","-webkit-text-fill-color","-webkit-text-stroke","-webkit-text-stroke-color","accent-color","all","backdrop-filter","background","background-color","background-position","background-size","block-size","border","border-block-end","border-block-end-color","border-block-end-width","border-block-start","border-block-start-color","border-block-start-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-width","border-color","border-end-end-radius","border-end-start-radius","border-image-outset","border-image-slice","border-image-width","border-inline-end","border-inline-end-color","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-width","border-left","border-left-color","border-left-width","border-radius","border-right","border-right-color","border-right-width","border-start-end-radius","border-start-start-radius","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-width","border-width","bottom","box-shadow","caret-color","clip","clip-path","color","column-count","column-gap","column-rule","column-rule-color","column-rule-width","column-width","columns","filter","flex","flex-basis","flex-grow","flex-shrink","font","font-size","font-size-adjust","font-stretch","font-variation-settings","font-weight","gap","grid-column-gap","grid-gap","grid-row-gap","grid-template-columns","grid-template-rows","height","inline-size","input-security","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","left","letter-spacing","line-clamp","line-height","margin","margin-block-end","margin-block-start","margin-bottom","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","mask","mask-border","mask-position","mask-size","max-block-size","max-height","max-inline-size","max-lines","max-width","min-block-size","min-height","min-inline-size","min-width","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","outline","outline-color","outline-offset","outline-width","padding","padding-block-end","padding-block-start","padding-bottom","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","perspective","perspective-origin","right","rotate","row-gap","scale","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-coordinate","scroll-snap-destination","scrollbar-color","shape-image-threshold","shape-margin","shape-outside","tab-size","text-decoration","text-decoration-color","text-decoration-thickness","text-emphasis","text-emphasis-color","text-indent","text-shadow","text-underline-offset","top","transform","transform-origin","translate","vertical-align","visibility","width","word-spacing","z-index","zoom"]);function U(n){switch(n.length){case 0:return new x;case 1:return n[0];default:return new Me(n)}}function Lt(n,e,t=new Map,s=new Map){let i=[],r=[],a=-1,o=null;if(e.forEach(l=>{let h=l.get("offset"),c=h==a,u=c&&o||new Map;l.forEach((_,y)=>{let d=y,g=_;if(y!=="offset")switch(d=n.normalizePropertyName(d,i),g){case he:g=t.get(y);break;case B:g=s.get(y);break;default:g=n.normalizeStyleValue(y,d,g,i);break}u.set(d,g)}),c||r.push(u),o=u,a=h}),i.length)throw ms(i);return r}function et(n,e,t,s){switch(e){case"start":n.onStart(()=>s(t&&Ce(t,"start",n)));break;case"done":n.onDone(()=>s(t&&Ce(t,"done",n)));break;case"destroy":n.onDestroy(()=>s(t&&Ce(t,"destroy",n)));break}}function Ce(n,e,t){let s=t.totalTime,i=!!t.disabled,r=tt(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,s??n.totalTime,i),a=n._data;return a!=null&&(r._data=a),r}function tt(n,e,t,s,i="",r=0,a){return{element:n,triggerName:e,fromState:t,toState:s,phaseName:i,totalTime:r,disabled:!!a}}function L(n,e,t){let s=n.get(e);return s||n.set(e,s=t),s}function yt(n){let e=n.indexOf(":"),t=n.substring(1,e),s=n.slice(e+1);return[t,s]}var Ps=typeof document>"u"?null:document.documentElement;function st(n){let e=n.parentNode||n.host||null;return e===Ps?null:e}function Ns(n){return n.substring(1,6)=="ebkit"}var H=null,_t=!1;function Ms(n){H||(H=Cs()||{},_t=H.style?"WebkitAppearance"in H.style:!1);let e=!0;return H.style&&!Ns(n)&&(e=n in H.style,!e&&_t&&(e="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in H.style)),e}function wi(n){return As.has(n)}function Cs(){return typeof document<"u"?document.body:null}function Ft(n,e){for(;e;){if(e===n)return!0;e=st(e)}return!1}function It(n,e,t){if(t)return Array.from(n.querySelectorAll(e));let s=n.querySelector(e);return s?[s]:[]}var zt=(()=>{class n{validateStyleProperty(t){return Ms(t)}containsElement(t,s){return Ft(t,s)}getParentElement(t){return st(t)}query(t,s,i){return It(t,s,i)}computeStyle(t,s,i){return i||""}animate(t,s,i,r,a,o=[],l){return new x(i,r)}static{this.\u0275fac=function(s){return new(s||n)}}static{this.\u0275prov=mt({token:n,factory:n.\u0275fac})}}return n})(),St=class{static{this.NOOP=new zt}},Fe=class{},Ie=class{normalizePropertyName(e,t){return e}normalizeStyleValue(e,t,s,i){return s}},ks=1e3,Kt="{{",Ds="}}",it="ng-enter",pe="ng-leave",ue="ng-trigger",ge=".ng-trigger",Et="ng-animating",ze=".ng-animating";function $(n){if(typeof n=="number")return n;let e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Ke(parseFloat(e[1]),e[2])}function Ke(n,e){switch(e){case"s":return n*ks;default:return n}}function ye(n,e,t){return n.hasOwnProperty("duration")?n:Rs(n,e,t)}function Rs(n,e,t){let s=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,i,r=0,a="";if(typeof n=="string"){let o=n.match(s);if(o===null)return e.push(gt(n)),{duration:0,delay:0,easing:""};i=Ke(parseFloat(o[1]),o[2]);let l=o[3];l!=null&&(r=Ke(parseFloat(l),o[4]));let h=o[5];h&&(a=h)}else i=n;if(!t){let o=!1,l=e.length;i<0&&(e.push(Wt()),o=!0),r<0&&(e.push(Gt()),o=!0),o&&e.splice(l,0,gt(n))}return{duration:i,delay:r,easing:a}}function Os(n){return n.length?n[0]instanceof Map?n:n.map(e=>new Map(Object.entries(e))):[]}function Tt(n){return Array.isArray(n)?new Map(...n):new Map(n)}function Q(n,e,t){e.forEach((s,i)=>{let r=nt(i);t&&!t.has(i)&&t.set(i,n.style[r]),n.style[r]=s})}function X(n,e){e.forEach((t,s)=>{let i=nt(s);n.style[i]=""})}function se(n){return Array.isArray(n)?n.length==1?n[0]:pt(n):n}function Ls(n,e,t){let s=e.params||{},i=qt(n);i.length&&i.forEach(r=>{s.hasOwnProperty(r)||t.push(Ht(r))})}var qe=new RegExp(`${Kt}\\s*(.+?)\\s*${Ds}`,"g");function qt(n){let e=[];if(typeof n=="string"){let t;for(;t=qe.exec(n);)e.push(t[1]);qe.lastIndex=0}return e}function ne(n,e,t){let s=`${n}`,i=s.replace(qe,(r,a)=>{let o=e[a];return o==null&&(t.push(Yt(a)),o=""),o.toString()});return i==s?n:i}var Fs=/-+([a-z0-9])/g;function nt(n){return n.replace(Fs,(...e)=>e[1].toUpperCase())}function bi(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Is(n,e){return n===0||e===0}function zs(n,e,t){if(t.size&&e.length){let s=e[0],i=[];if(t.forEach((r,a)=>{s.has(a)||i.push(a),s.set(a,r)}),i.length)for(let r=1;ra.set(o,rt(n,o)))}}return e}function O(n,e,t){switch(e.type){case E.Trigger:return n.visitTrigger(e,t);case E.State:return n.visitState(e,t);case E.Transition:return n.visitTransition(e,t);case E.Sequence:return n.visitSequence(e,t);case E.Group:return n.visitGroup(e,t);case E.Animate:return n.visitAnimate(e,t);case E.Keyframes:return n.visitKeyframes(e,t);case E.Style:return n.visitStyle(e,t);case E.Reference:return n.visitReference(e,t);case E.AnimateChild:return n.visitAnimateChild(e,t);case E.AnimateRef:return n.visitAnimateRef(e,t);case E.Query:return n.visitQuery(e,t);case E.Stagger:return n.visitStagger(e,t);default:throw Xt(e.type)}}function rt(n,e){return window.getComputedStyle(n)[e]}var Ks=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),Be=class extends Fe{normalizePropertyName(e,t){return nt(e)}normalizeStyleValue(e,t,s,i){let r="",a=s.toString().trim();if(Ks.has(t)&&s!==0&&s!=="0")if(typeof s=="number")r="px";else{let o=s.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&o[1].length==0&&i.push(Zt(e,s))}return a+r}};var _e="*";function qs(n,e){let t=[];return typeof n=="string"?n.split(/\s*,\s*/).forEach(s=>Bs(s,t,e)):t.push(n),t}function Bs(n,e,t){if(n[0]==":"){let l=Qs(n,t);if(typeof l=="function"){e.push(l);return}n=l}let s=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(s==null||s.length<4)return t.push(hs(n)),e;let i=s[1],r=s[2],a=s[3];e.push(vt(i,a));let o=i==_e&&a==_e;r[0]=="<"&&!o&&e.push(vt(a,i))}function Qs(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,s)=>parseFloat(s)>parseFloat(t);case":decrement":return(t,s)=>parseFloat(s) *"}}var ce=new Set(["true","1"]),fe=new Set(["false","0"]);function vt(n,e){let t=ce.has(n)||fe.has(n),s=ce.has(e)||fe.has(e);return(i,r)=>{let a=n==_e||n==i,o=e==_e||e==r;return!a&&t&&typeof i=="boolean"&&(a=i?ce.has(n):fe.has(n)),!o&&s&&typeof r=="boolean"&&(o=r?ce.has(e):fe.has(e)),a&&o}}var Bt=":self",$s=new RegExp(`s*${Bt}s*,?`,"g");function at(n,e,t,s){return new Qe(n).build(e,t,s)}var wt="",Qe=class{constructor(e){this._driver=e}build(e,t,s){let i=new $e(t);return this._resetContextStyleTimingState(i),O(this,se(e),i)}_resetContextStyleTimingState(e){e.currentQuerySelector=wt,e.collectedStyles=new Map,e.collectedStyles.set(wt,new Map),e.currentTime=0}visitTrigger(e,t){let s=t.queryCount=0,i=t.depCount=0,r=[],a=[];return e.name.charAt(0)=="@"&&t.errors.push(Jt()),e.definitions.forEach(o=>{if(this._resetContextStyleTimingState(t),o.type==E.State){let l=o,h=l.name;h.toString().split(/\s*,\s*/).forEach(c=>{l.name=c,r.push(this.visitState(l,t))}),l.name=h}else if(o.type==E.Transition){let l=this.visitTransition(o,t);s+=l.queryCount,i+=l.depCount,a.push(l)}else t.errors.push(xt())}),{type:E.Trigger,name:e.name,states:r,transitions:a,queryCount:s,depCount:i,options:null}}visitState(e,t){let s=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(s.containsDynamicStyles){let r=new Set,a=i||{};s.styles.forEach(o=>{o instanceof Map&&o.forEach(l=>{qt(l).forEach(h=>{a.hasOwnProperty(h)||r.add(h)})})}),r.size&&t.errors.push(es(e.name,[...r.values()]))}return{type:E.State,name:e.name,style:s,options:i?{params:i}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let s=O(this,se(e.animation),t),i=qs(e.expr,t.errors);return{type:E.Transition,matchers:i,animation:s,queryCount:t.queryCount,depCount:t.depCount,options:Y(e.options)}}visitSequence(e,t){return{type:E.Sequence,steps:e.steps.map(s=>O(this,s,t)),options:Y(e.options)}}visitGroup(e,t){let s=t.currentTime,i=0,r=e.steps.map(a=>{t.currentTime=s;let o=O(this,a,t);return i=Math.max(i,t.currentTime),o});return t.currentTime=i,{type:E.Group,steps:r,options:Y(e.options)}}visitAnimate(e,t){let s=Ws(e.timings,t.errors);t.currentAnimateTimings=s;let i,r=e.styles?e.styles:Ne({});if(r.type==E.Keyframes)i=this.visitKeyframes(r,t);else{let a=e.styles,o=!1;if(!a){o=!0;let h={};s.easing&&(h.easing=s.easing),a=Ne(h)}t.currentTime+=s.duration+s.delay;let l=this.visitStyle(a,t);l.isEmptyStep=o,i=l}return t.currentAnimateTimings=null,{type:E.Animate,timings:s,style:i,options:null}}visitStyle(e,t){let s=this._makeStyleAst(e,t);return this._validateStyleAst(s,t),s}_makeStyleAst(e,t){let s=[],i=Array.isArray(e.styles)?e.styles:[e.styles];for(let o of i)typeof o=="string"?o===B?s.push(o):t.errors.push(ts(o)):s.push(new Map(Object.entries(o)));let r=!1,a=null;return s.forEach(o=>{if(o instanceof Map&&(o.has("easing")&&(a=o.get("easing"),o.delete("easing")),!r)){for(let l of o.values())if(l.toString().indexOf(Kt)>=0){r=!0;break}}}),{type:E.Style,styles:s,easing:a,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){let s=t.currentAnimateTimings,i=t.currentTime,r=t.currentTime;s&&r>0&&(r-=s.duration+s.delay),e.styles.forEach(a=>{typeof a!="string"&&a.forEach((o,l)=>{let h=t.collectedStyles.get(t.currentQuerySelector),c=h.get(l),u=!0;c&&(r!=i&&r>=c.startTime&&i<=c.endTime&&(t.errors.push(ss(l,c.startTime,c.endTime,r,i)),u=!1),r=c.startTime),u&&h.set(l,{startTime:r,endTime:i}),t.options&&Ls(o,t.options,t.errors)})})}visitKeyframes(e,t){let s={type:E.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(is()),s;let i=1,r=0,a=[],o=!1,l=!1,h=0,c=e.steps.map(b=>{let A=this._makeStyleAst(b,t),C=A.offset!=null?A.offset:js(A.styles),N=0;return C!=null&&(r++,N=A.offset=C),l=l||N<0||N>1,o=o||N0&&r{let C=_>0?A==y?1:_*A:a[A],N=C*v;t.currentTime=d+g.delay+N,g.duration=N,this._validateStyleAst(b,t),b.offset=C,s.styles.push(b)}),s}visitReference(e,t){return{type:E.Reference,animation:O(this,se(e.animation),t),options:Y(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:E.AnimateChild,options:Y(e.options)}}visitAnimateRef(e,t){return{type:E.AnimateRef,animation:this.visitReference(e.animation,t),options:Y(e.options)}}visitQuery(e,t){let s=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;let[r,a]=Vs(e.selector);t.currentQuerySelector=s.length?s+" "+r:r,L(t.collectedStyles,t.currentQuerySelector,new Map);let o=O(this,se(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=s,{type:E.Query,selector:r,limit:i.limit||0,optional:!!i.optional,includeSelf:a,animation:o,originalSelector:e.selector,options:Y(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(os());let s=e.timings==="full"?{duration:0,delay:0,easing:"full"}:ye(e.timings,t.errors,!0);return{type:E.Stagger,animation:O(this,se(e.animation),t),timings:s,options:null}}};function Vs(n){let e=!!n.split(/\s*,\s*/).find(t=>t==Bt);return e&&(n=n.replace($s,"")),n=n.replace(/@\*/g,ge).replace(/@\w+/g,t=>ge+"-"+t.slice(1)).replace(/:animating/g,ze),[n,e]}function Us(n){return n?le({},n):null}var $e=class{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function js(n){if(typeof n=="string")return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(t instanceof Map&&t.has("offset")){let s=t;e=parseFloat(s.get("offset")),s.delete("offset")}});else if(n instanceof Map&&n.has("offset")){let t=n;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function Ws(n,e){if(n.hasOwnProperty("duration"))return n;if(typeof n=="number"){let r=ye(n,e).duration;return ke(r,0,"")}let t=n;if(t.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=ke(0,0,"");return r.dynamic=!0,r.strValue=t,r}let i=ye(t,e);return ke(i.duration,i.delay,i.easing)}function Y(n){return n?(n=le({},n),n.params&&(n.params=Us(n.params))):n={},n}function ke(n,e,t){return{duration:n,delay:e,easing:t}}function ot(n,e,t,s,i,r,a=null,o=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:s,duration:i,delay:r,totalTime:i+r,easing:a,subTimeline:o}}var te=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let s=this._map.get(e);s||this._map.set(e,s=[]),s.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},Gs=1,Hs=":enter",Ys=new RegExp(Hs,"g"),Xs=":leave",Zs=new RegExp(Xs,"g");function lt(n,e,t,s,i,r=new Map,a=new Map,o,l,h=[]){return new Ve().buildKeyframes(n,e,t,s,i,r,a,o,l,h)}var Ve=class{buildKeyframes(e,t,s,i,r,a,o,l,h,c=[]){h=h||new te;let u=new Ue(e,t,h,i,r,c,[]);u.options=l;let _=l.delay?$(l.delay):0;u.currentTimeline.delayNextStep(_),u.currentTimeline.setStyles([a],null,u.errors,l),O(this,s,u);let y=u.timelines.filter(d=>d.containsAnimation());if(y.length&&o.size){let d;for(let g=y.length-1;g>=0;g--){let v=y[g];if(v.element===t){d=v;break}}d&&!d.allowOnlyTimelineStyles()&&d.setStyles([o],null,u.errors,l)}return y.length?y.map(d=>d.buildKeyframes()):[ot(t,[],[],[],0,_,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let s=t.subInstructions.get(t.element);if(s){let i=t.createSubContext(e.options),r=t.currentTimeline.currentTime,a=this._visitSubInstructions(s,i,i.options);r!=a&&t.transformIntoNewTimeline(a)}t.previousNode=e}visitAnimateRef(e,t){let s=t.createSubContext(e.options);s.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,s),this.visitReference(e.animation,s),t.transformIntoNewTimeline(s.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,s){for(let i of e){let r=i?.delay;if(r){let a=typeof r=="number"?r:$(ne(r,i?.params??{},t.errors));s.delayNextStep(a)}}}_visitSubInstructions(e,t,s){let r=t.currentTimeline.currentTime,a=s.duration!=null?$(s.duration):null,o=s.delay!=null?$(s.delay):null;return a!==0&&e.forEach(l=>{let h=t.appendInstructionToTimeline(l,a,o);r=Math.max(r,h.duration+h.delay)}),r}visitReference(e,t){t.updateOptions(e.options,!0),O(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let s=t.subContextCount,i=t,r=e.options;if(r&&(r.params||r.delay)&&(i=t.createSubContext(r),i.transformIntoNewTimeline(),r.delay!=null)){i.previousNode.type==E.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Se);let a=$(r.delay);i.delayNextStep(a)}e.steps.length&&(e.steps.forEach(a=>O(this,a,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>s&&i.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let s=[],i=t.currentTimeline.currentTime,r=e.options&&e.options.delay?$(e.options.delay):0;e.steps.forEach(a=>{let o=t.createSubContext(e.options);r&&o.delayNextStep(r),O(this,a,o),i=Math.max(i,o.currentTimeline.currentTime),s.push(o.currentTimeline)}),s.forEach(a=>t.currentTimeline.mergeTimelineCollectedStyles(a)),t.transformIntoNewTimeline(i),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let s=e.strValue,i=t.params?ne(s,t.params,t.errors):s;return ye(i,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let s=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;s.delay&&(t.incrementTime(s.delay),i.snapshotCurrentStyles());let r=e.style;r.type==E.Keyframes?this.visitKeyframes(r,t):(t.incrementTime(s.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let s=t.currentTimeline,i=t.currentAnimateTimings;!i&&s.hasCurrentStyleProperties()&&s.forwardFrame();let r=i&&i.easing||e.easing;e.isEmptyStep?s.applyEmptyStep(r):s.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let s=t.currentAnimateTimings,i=t.currentTimeline.duration,r=s.duration,o=t.createSubContext().currentTimeline;o.easing=s.easing,e.styles.forEach(l=>{let h=l.offset||0;o.forwardTime(h*r),o.setStyles(l.styles,l.easing,t.errors,t.options),o.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(i+r),t.previousNode=e}visitQuery(e,t){let s=t.currentTimeline.currentTime,i=e.options||{},r=i.delay?$(i.delay):0;r&&(t.previousNode.type===E.Style||s==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Se);let a=s,o=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=o.length;let l=null;o.forEach((h,c)=>{t.currentQueryIndex=c;let u=t.createSubContext(e.options,h);r&&u.delayNextStep(r),h===t.element&&(l=u.currentTimeline),O(this,e.animation,u),u.currentTimeline.applyStylesToKeyframe();let _=u.currentTimeline.currentTime;a=Math.max(a,_)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(a),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let s=t.parentContext,i=t.currentTimeline,r=e.timings,a=Math.abs(r.duration),o=a*(t.currentQueryTotal-1),l=a*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=o-l;break;case"full":l=s.currentStaggerTime;break}let c=t.currentTimeline;l&&c.delayNextStep(l);let u=c.currentTime;O(this,e.animation,t),t.previousNode=e,s.currentStaggerTime=i.currentTime-u+(i.startTime-s.currentTimeline.startTime)}},Se={},Ue=class n{constructor(e,t,s,i,r,a,o,l){this._driver=e,this.element=t,this.subInstructions=s,this._enterClassName=i,this._leaveClassName=r,this.errors=a,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Se,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Ee(this._driver,t,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let s=e,i=this.options;s.duration!=null&&(i.duration=$(s.duration)),s.delay!=null&&(i.delay=$(s.delay));let r=s.params;if(r){let a=i.params;a||(a=this.options.params={}),Object.keys(r).forEach(o=>{(!t||!a.hasOwnProperty(o))&&(a[o]=ne(r[o],a,this.errors))})}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let s=e.params={};Object.keys(t).forEach(i=>{s[i]=t[i]})}}return e}createSubContext(e=null,t,s){let i=t||this.element,r=new n(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,s||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(e){return this.previousNode=Se,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,s){let i={duration:t??e.duration,delay:this.currentTimeline.currentTime+(s??0)+e.delay,easing:""},r=new je(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(r),i}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,s,i,r,a){let o=[];if(i&&o.push(this.element),e.length>0){e=e.replace(Ys,"."+this._enterClassName),e=e.replace(Zs,"."+this._leaveClassName);let l=s!=1,h=this._driver.query(this.element,e,l);s!==0&&(h=s<0?h.slice(h.length+s,h.length):h.slice(0,s)),o.push(...h)}return!r&&o.length==0&&a.push(ls(t)),o}},Ee=class n{constructor(e,t,s,i){this._driver=e,this.element=t,this.startTime=s,this._elementTimelineStylesLookup=i,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new n(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=Gs,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,s]of this._globalTimelineStyles)this._backFill.set(t,s||B),this._currentKeyframe.set(t,B);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,s,i){t&&this._previousKeyframe.set("easing",t);let r=i&&i.params||{},a=Js(e,this._globalTimelineStyles);for(let[o,l]of a){let h=ne(l,r,s);this._pendingStyles.set(o,h),this._localTimelineStyles.has(o)||this._backFill.set(o,this._globalTimelineStyles.get(o)??B),this._updateStyle(o,h)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,s)=>{let i=this._styleSummary.get(s);(!i||t.time>i.time)&&this._updateStyle(s,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,s=this._keyframes.size===1&&this.duration===0,i=[];this._keyframes.forEach((o,l)=>{let h=new Map([...this._backFill,...o]);h.forEach((c,u)=>{c===he?e.add(u):c===B&&t.add(u)}),s||h.set("offset",l/this.duration),i.push(h)});let r=[...e.values()],a=[...t.values()];if(s){let o=i[0],l=new Map(o);o.set("offset",0),l.set("offset",1),i=[o,l]}return ot(this.element,i,r,a,this.duration,this.startTime,this.easing,!1)}},je=class extends Ee{constructor(e,t,s,i,r,a,o=!1){super(e,t,a.delay),this.keyframes=s,this.preStyleProps=i,this.postStyleProps=r,this._stretchStartingKeyframe=o,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:s,easing:i}=this.timings;if(this._stretchStartingKeyframe&&t){let r=[],a=s+t,o=t/a,l=new Map(e[0]);l.set("offset",0),r.push(l);let h=new Map(e[0]);h.set("offset",bt(o)),r.push(h);let c=e.length-1;for(let u=1;u<=c;u++){let _=new Map(e[u]),y=_.get("offset"),d=t+y*s;_.set("offset",bt(d/a)),r.push(_)}s=a,t=0,i="",e=r}return ot(this.element,e,this.preStyleProps,this.postStyleProps,s,t,i,!0)}};function bt(n,e=3){let t=Math.pow(10,e-1);return Math.round(n*t)/t}function Js(n,e){let t=new Map,s;return n.forEach(i=>{if(i==="*"){s??=e.keys();for(let r of s)t.set(r,B)}else for(let[r,a]of i)t.set(r,a)}),t}function At(n,e,t,s,i,r,a,o,l,h,c,u,_){return{type:0,element:n,triggerName:e,isRemovalTransition:i,fromState:t,fromStyles:r,toState:s,toStyles:a,timelines:o,queriedElements:l,preStyleProps:h,postStyleProps:c,totalTime:u,errors:_}}var De={},Te=class{constructor(e,t,s){this._triggerName=e,this.ast=t,this._stateStyles=s}match(e,t,s,i){return xs(this.ast.matchers,e,t,s,i)}buildStyles(e,t,s){let i=this._stateStyles.get("*");return e!==void 0&&(i=this._stateStyles.get(e?.toString())||i),i?i.buildStyles(t,s):new Map}build(e,t,s,i,r,a,o,l,h,c){let u=[],_=this.ast.options&&this.ast.options.params||De,y=o&&o.params||De,d=this.buildStyles(s,y,u),g=l&&l.params||De,v=this.buildStyles(i,g,u),b=new Set,A=new Map,C=new Map,N=i==="void",Z={params:Qt(g,_),delay:this.ast.options?.delay},K=c?[]:lt(e,t,this.ast.animation,r,a,d,v,Z,h,u),k=0;return K.forEach(D=>{k=Math.max(D.duration+D.delay,k)}),u.length?At(t,this._triggerName,s,i,N,d,v,[],[],A,C,k,u):(K.forEach(D=>{let j=D.element,J=L(A,j,new Set);D.preStyleProps.forEach(W=>J.add(W));let ht=L(C,j,new Set);D.postStyleProps.forEach(W=>ht.add(W)),j!==t&&b.add(j)}),At(t,this._triggerName,s,i,N,d,v,K,[...b.values()],A,C,k))}};function xs(n,e,t,s,i){return n.some(r=>r(e,t,s,i))}function Qt(n,e){let t=le({},e);return Object.entries(n).forEach(([s,i])=>{i!=null&&(t[s]=i)}),t}var We=class{constructor(e,t,s){this.styles=e,this.defaultParams=t,this.normalizer=s}buildStyles(e,t){let s=new Map,i=Qt(e,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((a,o)=>{a&&(a=ne(a,i,t));let l=this.normalizer.normalizePropertyName(o,t);a=this.normalizer.normalizeStyleValue(o,l,a,t),s.set(o,a)})}),s}};function ei(n,e,t){return new Ge(n,e,t)}var Ge=class{constructor(e,t,s){this.name=e,this.ast=t,this._normalizer=s,this.transitionFactories=[],this.states=new Map,t.states.forEach(i=>{let r=i.options&&i.options.params||{};this.states.set(i.name,new We(i.style,r,s))}),Pt(this.states,"true","1"),Pt(this.states,"false","0"),t.transitions.forEach(i=>{this.transitionFactories.push(new Te(e,i,this.states))}),this.fallbackTransition=ti(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,s,i){return this.transitionFactories.find(a=>a.match(e,t,s,i))||null}matchStyles(e,t,s){return this.fallbackTransition.buildStyles(e,t,s)}};function ti(n,e,t){let s=[(a,o)=>!0],i={type:E.Sequence,steps:[],options:null},r={type:E.Transition,animation:i,matchers:s,options:null,queryCount:0,depCount:0};return new Te(n,r,e)}function Pt(n,e,t){n.has(e)?n.has(t)||n.set(t,n.get(e)):n.has(t)&&n.set(e,n.get(t))}var si=new te,He=class{constructor(e,t,s){this.bodyNode=e,this._driver=t,this._normalizer=s,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,t){let s=[],i=[],r=at(this._driver,t,s,i);if(s.length)throw ps(s);i.length&&void 0,this._animations.set(e,r)}_buildPlayer(e,t,s){let i=e.element,r=Lt(this._normalizer,e.keyframes,t,s);return this._driver.animate(i,r,e.duration,e.delay,e.easing,[],!0)}create(e,t,s={}){let i=[],r=this._animations.get(e),a,o=new Map;if(r?(a=lt(this._driver,t,r,it,pe,new Map,new Map,s,si,i),a.forEach(c=>{let u=L(o,c.element,new Map);c.postStyleProps.forEach(_=>u.set(_,null))})):(i.push(gs()),a=[]),i.length)throw ys(i);o.forEach((c,u)=>{c.forEach((_,y)=>{c.set(y,this._driver.computeStyle(u,y,B))})});let l=a.map(c=>{let u=o.get(c.element);return this._buildPlayer(c,new Map,u)}),h=U(l);return this._playersById.set(e,h),h.onDestroy(()=>this.destroy(e)),this.players.push(h),h}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let s=this.players.indexOf(t);s>=0&&this.players.splice(s,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw _s(e);return t}listen(e,t,s,i){let r=tt(t,"","","");return et(this._getPlayer(e),s,r,i),()=>{}}command(e,t,s,i){if(s=="register"){this.register(e,i[0]);return}if(s=="create"){let a=i[0]||{};this.create(e,t,a);return}let r=this._getPlayer(e);switch(s){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e);break}}},Nt="ng-animate-queued",ii=".ng-animate-queued",Re="ng-animate-disabled",ni=".ng-animate-disabled",ri="ng-star-inserted",ai=".ng-star-inserted",oi=[],$t={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},li={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},z="__ng_removed",re=class{get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let s=e&&e.hasOwnProperty("value"),i=s?e.value:e;if(this.value=ui(i),s){let r=e,{value:a}=r,o=dt(r,["value"]);this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let t=e.params;if(t){let s=this.options.params;Object.keys(t).forEach(i=>{s[i]==null&&(s[i]=t[i])})}}},ie="void",Oe=new re(ie),Ye=class{constructor(e,t,s){this.id=e,this.hostElement=t,this._engine=s,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,I(t,this._hostClassName)}listen(e,t,s,i){if(!this._triggers.has(t))throw Ss(s,t);if(s==null||s.length==0)throw Es(t);if(!ci(s))throw Ts(s,t);let r=L(this._elementListeners,e,[]),a={name:t,phase:s,callback:i};r.push(a);let o=L(this._engine.statesByElement,e,new Map);return o.has(t)||(I(e,ue),I(e,ue+"-"+t),o.set(t,Oe)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(a);l>=0&&r.splice(l,1),this._triggers.has(t)||o.delete(t)})}}register(e,t){return this._triggers.has(e)?!1:(this._triggers.set(e,t),!0)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw vs(e);return t}trigger(e,t,s,i=!0){let r=this._getTrigger(t),a=new ae(this.id,t,e),o=this._engine.statesByElement.get(e);o||(I(e,ue),I(e,ue+"-"+t),this._engine.statesByElement.set(e,o=new Map));let l=o.get(t),h=new re(s,this.id);if(!(s&&s.hasOwnProperty("value"))&&l&&h.absorbOptions(l.options),o.set(t,h),l||(l=Oe),!(h.value===ie)&&l.value===h.value){if(!mi(l.params,h.params)){let g=[],v=r.matchStyles(l.value,l.params,g),b=r.matchStyles(h.value,h.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{X(e,v),Q(e,b)})}return}let _=L(this._engine.playersByElement,e,[]);_.forEach(g=>{g.namespaceId==this.id&&g.triggerName==t&&g.queued&&g.destroy()});let y=r.matchTransition(l.value,h.value,e,h.params),d=!1;if(!y){if(!i)return;y=r.fallbackTransition,d=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:y,fromState:l,toState:h,player:a,isFallbackTransition:d}),d||(I(e,Nt),a.onStart(()=>{ee(e,Nt)})),a.onDone(()=>{let g=this.players.indexOf(a);g>=0&&this.players.splice(g,1);let v=this._engine.playersByElement.get(e);if(v){let b=v.indexOf(a);b>=0&&v.splice(b,1)}}),this.players.push(a),_.push(a),a}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,s)=>{this._elementListeners.set(s,t.filter(i=>i.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(s=>s.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let s=this._engine.driver.query(e,ge,!0);s.forEach(i=>{if(i[z])return;let r=this._engine.fetchNamespacesByElement(i);r.size?r.forEach(a=>a.triggerLeaveAnimation(i,t,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>s.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(e,t,s,i){let r=this._engine.statesByElement.get(e),a=new Map;if(r){let o=[];if(r.forEach((l,h)=>{if(a.set(h,l.value),this._triggers.has(h)){let c=this.trigger(e,h,ie,i);c&&o.push(c)}}),o.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,a),s&&U(o).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),s=this._engine.statesByElement.get(e);if(t&&s){let i=new Set;t.forEach(r=>{let a=r.name;if(i.has(a))return;i.add(a);let l=this._triggers.get(a).fallbackTransition,h=s.get(a)||Oe,c=new re(ie),u=new ae(this.id,a,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:a,transition:l,fromState:h,toState:c,player:u,isFallbackTransition:!0})})}}removeNode(e,t){let s=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let i=!1;if(s.totalAnimations){let r=s.players.length?s.playersByQueriedElement.get(e):[];if(r&&r.length)i=!0;else{let a=e;for(;a=a.parentNode;)if(s.statesByElement.get(a)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(e),i)s.markElementAsRemoved(this.id,e,!1,t);else{let r=e[z];(!r||r===$t)&&(s.afterFlush(()=>this.clearElementCache(e)),s.destroyInnerAnimations(e),s._onRemovalComplete(e,t))}}insertNode(e,t){I(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(s=>{let i=s.player;if(i.destroyed)return;let r=s.element,a=this._elementListeners.get(r);a&&a.forEach(o=>{if(o.name==s.triggerName){let l=tt(r,s.triggerName,s.fromState.value,s.toState.value);l._data=e,et(s.player,o.phase,l,o.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):t.push(s)}),this._queue=[],t.sort((s,i)=>{let r=s.transition.ast.depCount,a=i.transition.ast.depCount;return r==0||a==0?r-a:this._engine.driver.containsElement(s.element,i.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},Xe=class{_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,s){this.bodyNode=e,this.driver=t,this._normalizer=s,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(i,r)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(s=>{s.queued&&e.push(s)})}),e}createNamespace(e,t){let s=new Ye(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(s,t):(this.newHostElements.set(t,s),this.collectEnterElement(t)),this._namespaceLookup[e]=s}_balanceNamespaceList(e,t){let s=this._namespaceList,i=this.namespacesByHostElement;if(s.length-1>=0){let a=!1,o=this.driver.getParentElement(t);for(;o;){let l=i.get(o);if(l){let h=s.indexOf(l);s.splice(h+1,0,e),a=!0;break}o=this.driver.getParentElement(o)}a||s.unshift(e)}else s.push(e);return i.set(t,e),e}register(e,t){let s=this._namespaceLookup[e];return s||(s=this.createNamespace(e,t)),s}registerTrigger(e,t,s){let i=this._namespaceLookup[e];i&&i.register(t,s)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let s=this._fetchNamespace(e);this.namespacesByHostElement.delete(s.hostElement);let i=this._namespaceList.indexOf(s);i>=0&&this._namespaceList.splice(i,1),s.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,s=this.statesByElement.get(e);if(s){for(let i of s.values())if(i.namespaceId){let r=this._fetchNamespace(i.namespaceId);r&&t.add(r)}}return t}trigger(e,t,s,i){if(de(t)){let r=this._fetchNamespace(e);if(r)return r.trigger(t,s,i),!0}return!1}insertNode(e,t,s,i){if(!de(t))return;let r=t[z];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let a=this.collectedLeaveElements.indexOf(t);a>=0&&this.collectedLeaveElements.splice(a,1)}if(e){let a=this._fetchNamespace(e);a&&a.insertNode(t,s)}i&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),I(e,Re)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),ee(e,Re))}removeNode(e,t,s){if(de(t)){let i=e?this._fetchNamespace(e):null;i?i.removeNode(t,s):this.markElementAsRemoved(e,t,!1,s);let r=this.namespacesByHostElement.get(t);r&&r.id!==e&&r.removeNode(t,s)}else this._onRemovalComplete(t,s)}markElementAsRemoved(e,t,s,i,r){this.collectedLeaveElements.push(t),t[z]={namespaceId:e,setForRemoval:i,hasAnimation:s,removedBeforeQueried:!1,previousTriggersValues:r}}listen(e,t,s,i,r){return de(t)?this._fetchNamespace(e).listen(t,s,i,r):()=>{}}_buildInstruction(e,t,s,i,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,s,i,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,ge,!0);t.forEach(s=>this.destroyActiveAnimationsForElement(s)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,ze,!0),t.forEach(s=>this.finishActiveQueriedAnimationOnElement(s)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(s=>{s.queued?s.markedForDestroy=!0:s.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(s=>s.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return U(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[z];if(t&&t.setForRemoval){if(e[z]=$t,t.namespaceId){this.destroyInnerAnimations(e);let s=this._fetchNamespace(t.namespaceId);s&&s.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(Re)&&this.markElementAsDisabled(e,!1),this.driver.query(e,ni,!0).forEach(s=>{this.markElementAsDisabled(s,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((s,i)=>this._balanceNamespaceList(s,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let s=0;ss()),this._flushFns=[],this._whenQuietFns.length){let s=this._whenQuietFns;this._whenQuietFns=[],t.length?U(t).onDone(()=>{s.forEach(i=>i())}):s.forEach(i=>i())}}reportError(e){throw ws(e)}_flushAnimations(e,t){let s=new te,i=[],r=new Map,a=[],o=new Map,l=new Map,h=new Map,c=new Set;this.disabledNodes.forEach(f=>{c.add(f);let m=this.driver.query(f,ii,!0);for(let p=0;p{let p=it+g++;d.set(m,p),f.forEach(T=>I(T,p))});let v=[],b=new Set,A=new Set;for(let f=0;fb.add(T)):A.add(m))}let C=new Map,N=kt(_,Array.from(b));N.forEach((f,m)=>{let p=pe+g++;C.set(m,p),f.forEach(T=>I(T,p))}),e.push(()=>{y.forEach((f,m)=>{let p=d.get(m);f.forEach(T=>ee(T,p))}),N.forEach((f,m)=>{let p=C.get(m);f.forEach(T=>ee(T,p))}),v.forEach(f=>{this.processLeaveNode(f)})});let Z=[],K=[];for(let f=this._namespaceList.length-1;f>=0;f--)this._namespaceList[f].drainQueuedTransitions(t).forEach(p=>{let T=p.player,P=p.element;if(Z.push(T),this.collectedEnterElements.length){let M=P[z];if(M&&M.setForMove){if(M.previousTriggersValues&&M.previousTriggersValues.has(p.triggerName)){let G=M.previousTriggersValues.get(p.triggerName),F=this.statesByElement.get(p.element);if(F&&F.has(p.triggerName)){let oe=F.get(p.triggerName);oe.value=G,F.set(p.triggerName,oe)}}T.destroy();return}}let q=!u||!this.driver.containsElement(u,P),R=C.get(P),V=d.get(P),w=this._buildInstruction(p,s,V,R,q);if(w.errors&&w.errors.length){K.push(w);return}if(q){T.onStart(()=>X(P,w.fromStyles)),T.onDestroy(()=>Q(P,w.toStyles)),i.push(T);return}if(p.isFallbackTransition){T.onStart(()=>X(P,w.fromStyles)),T.onDestroy(()=>Q(P,w.toStyles)),i.push(T);return}let ft=[];w.timelines.forEach(M=>{M.stretchStartingKeyframe=!0,this.disabledNodes.has(M.element)||ft.push(M)}),w.timelines=ft,s.append(P,w.timelines);let jt={instruction:w,player:T,element:P};a.push(jt),w.queriedElements.forEach(M=>L(o,M,[]).push(T)),w.preStyleProps.forEach((M,G)=>{if(M.size){let F=l.get(G);F||l.set(G,F=new Set),M.forEach((oe,Pe)=>F.add(Pe))}}),w.postStyleProps.forEach((M,G)=>{let F=h.get(G);F||h.set(G,F=new Set),M.forEach((oe,Pe)=>F.add(Pe))})});if(K.length){let f=[];K.forEach(m=>{f.push(bs(m.triggerName,m.errors))}),Z.forEach(m=>m.destroy()),this.reportError(f)}let k=new Map,D=new Map;a.forEach(f=>{let m=f.element;s.has(m)&&(D.set(m,m),this._beforeAnimationBuild(f.player.namespaceId,f.instruction,k))}),i.forEach(f=>{let m=f.element;this._getPreviousPlayers(m,!1,f.namespaceId,f.triggerName,null).forEach(T=>{L(k,m,[]).push(T),T.destroy()})});let j=v.filter(f=>Dt(f,l,h)),J=new Map;Ct(J,this.driver,A,h,B).forEach(f=>{Dt(f,l,h)&&j.push(f)});let W=new Map;y.forEach((f,m)=>{Ct(W,this.driver,new Set(f),l,he)}),j.forEach(f=>{let m=J.get(f),p=W.get(f);J.set(f,new Map([...m?.entries()??[],...p?.entries()??[]]))});let Ae=[],ut=[],ct={};a.forEach(f=>{let{element:m,player:p,instruction:T}=f;if(s.has(m)){if(c.has(m)){p.onDestroy(()=>Q(m,T.toStyles)),p.disabled=!0,p.overrideTotalTime(T.totalTime),i.push(p);return}let P=ct;if(D.size>1){let R=m,V=[];for(;R=R.parentNode;){let w=D.get(R);if(w){P=w;break}V.push(R)}V.forEach(w=>D.set(w,P))}let q=this._buildAnimation(p.namespaceId,T,k,r,W,J);if(p.setRealPlayer(q),P===ct)Ae.push(p);else{let R=this.playersByElement.get(P);R&&R.length&&(p.parentPlayer=U(R)),i.push(p)}}else X(m,T.fromStyles),p.onDestroy(()=>Q(m,T.toStyles)),ut.push(p),c.has(m)&&i.push(p)}),ut.forEach(f=>{let m=r.get(f.element);if(m&&m.length){let p=U(m);f.setRealPlayer(p)}}),i.forEach(f=>{f.parentPlayer?f.syncPlayerEvents(f.parentPlayer):f.destroy()});for(let f=0;f!q.destroyed);P.length?fi(this,m,P):this.processLeaveNode(m)}return v.length=0,Ae.forEach(f=>{this.players.push(f),f.onDone(()=>{f.destroy();let m=this.players.indexOf(f);this.players.splice(m,1)}),f.play()}),Ae}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,s,i,r){let a=[];if(t){let o=this.playersByQueriedElement.get(e);o&&(a=o)}else{let o=this.playersByElement.get(e);if(o){let l=!r||r==ie;o.forEach(h=>{h.queued||!l&&h.triggerName!=i||a.push(h)})}}return(s||i)&&(a=a.filter(o=>!(s&&s!=o.namespaceId||i&&i!=o.triggerName))),a}_beforeAnimationBuild(e,t,s){let i=t.triggerName,r=t.element,a=t.isRemovalTransition?void 0:e,o=t.isRemovalTransition?void 0:i;for(let l of t.timelines){let h=l.element,c=h!==r,u=L(s,h,[]);this._getPreviousPlayers(h,c,a,o,t.toState).forEach(y=>{let d=y.getRealPlayer();d.beforeDestroy&&d.beforeDestroy(),y.destroy(),u.push(y)})}X(r,t.fromStyles)}_buildAnimation(e,t,s,i,r,a){let o=t.triggerName,l=t.element,h=[],c=new Set,u=new Set,_=t.timelines.map(d=>{let g=d.element;c.add(g);let v=g[z];if(v&&v.removedBeforeQueried)return new x(d.duration,d.delay);let b=g!==l,A=di((s.get(g)||oi).map(k=>k.getRealPlayer())).filter(k=>{let D=k;return D.element?D.element===g:!1}),C=r.get(g),N=a.get(g),Z=Lt(this._normalizer,d.keyframes,C,N),K=this._buildPlayer(d,Z,A);if(d.subTimeline&&i&&u.add(g),b){let k=new ae(e,o,g);k.setRealPlayer(K),h.push(k)}return K});h.forEach(d=>{L(this.playersByQueriedElement,d.element,[]).push(d),d.onDone(()=>hi(this.playersByQueriedElement,d.element,d))}),c.forEach(d=>I(d,Et));let y=U(_);return y.onDestroy(()=>{c.forEach(d=>ee(d,Et)),Q(l,t.toStyles)}),u.forEach(d=>{L(i,d,[]).push(y)}),y}_buildPlayer(e,t,s){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,s):new x(e.duration,e.delay)}},ae=class{constructor(e,t,s){this.namespaceId=e,this.triggerName=t,this.element=s,this._player=new x,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,s)=>{t.forEach(i=>et(e,s,void 0,i))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){L(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e)}};function hi(n,e,t){let s=n.get(e);if(s){if(s.length){let i=s.indexOf(t);s.splice(i,1)}s.length==0&&n.delete(e)}return s}function ui(n){return n??null}function de(n){return n&&n.nodeType===1}function ci(n){return n=="start"||n=="done"}function Mt(n,e){let t=n.style.display;return n.style.display=e??"none",t}function Ct(n,e,t,s,i){let r=[];t.forEach(l=>r.push(Mt(l)));let a=[];s.forEach((l,h)=>{let c=new Map;l.forEach(u=>{let _=e.computeStyle(h,u,i);c.set(u,_),(!_||_.length==0)&&(h[z]=li,a.push(h))}),n.set(h,c)});let o=0;return t.forEach(l=>Mt(l,r[o++])),a}function kt(n,e){let t=new Map;if(n.forEach(o=>t.set(o,[])),e.length==0)return t;let s=1,i=new Set(e),r=new Map;function a(o){if(!o)return s;let l=r.get(o);if(l)return l;let h=o.parentNode;return t.has(h)?l=h:i.has(h)?l=s:l=a(h),r.set(o,l),l}return e.forEach(o=>{let l=a(o);l!==s&&t.get(l).push(o)}),t}function I(n,e){n.classList?.add(e)}function ee(n,e){n.classList?.remove(e)}function fi(n,e,t){U(t).onDone(()=>n.processLeaveNode(e))}function di(n){let e=[];return Vt(n,e),e}function Vt(n,e){for(let t=0;ti.add(r)):e.set(n,s),t.delete(n),!0}var ve=class{constructor(e,t,s){this._driver=t,this._normalizer=s,this._triggerCache={},this.onRemovalComplete=(i,r)=>{},this._transitionEngine=new Xe(e.body,t,s),this._timelineEngine=new He(e.body,t,s),this._transitionEngine.onRemovalComplete=(i,r)=>this.onRemovalComplete(i,r)}registerTrigger(e,t,s,i,r){let a=e+"-"+i,o=this._triggerCache[a];if(!o){let l=[],h=[],c=at(this._driver,r,l,h);if(l.length)throw ds(i,l);h.length&&void 0,o=ei(i,c,this._normalizer),this._triggerCache[a]=o}this._transitionEngine.registerTrigger(t,i,o)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,s,i){this._transitionEngine.insertNode(e,t,s,i)}onRemove(e,t,s){this._transitionEngine.removeNode(e,t,s)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,s,i){if(s.charAt(0)=="@"){let[r,a]=yt(s),o=i;this._timelineEngine.command(r,t,a,o)}else this._transitionEngine.trigger(e,t,s,i)}listen(e,t,s,i,r){if(s.charAt(0)=="@"){let[a,o]=yt(s);return this._timelineEngine.listen(a,t,o,r)}return this._transitionEngine.listen(e,t,s,i,r)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function pi(n,e){let t=null,s=null;return Array.isArray(e)&&e.length?(t=Le(e[0]),e.length>1&&(s=Le(e[e.length-1]))):e instanceof Map&&(t=Le(e)),t||s?new Ze(n,t,s):null}var Ze=class n{static{this.initialStylesByElement=new WeakMap}constructor(e,t,s){this._element=e,this._startStyles=t,this._endStyles=s,this._state=0;let i=n.initialStylesByElement.get(e);i||n.initialStylesByElement.set(e,i=new Map),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&Q(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Q(this._element,this._initialStyles),this._endStyles&&(Q(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(X(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(X(this._element,this._endStyles),this._endStyles=null),Q(this._element,this._initialStyles),this._state=3)}};function Le(n){let e=null;return n.forEach((t,s)=>{gi(s)&&(e=e||new Map,e.set(s,t))}),e}function gi(n){return n==="display"||n==="position"}var we=class{constructor(e,t,s,i){this.element=e,this.keyframes=t,this.options=s,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=s.duration,this._delay=s.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let t=[];return e.forEach(s=>{t.push(Object.fromEntries(s))}),t}_triggerWebAnimation(e,t,s){return e.animate(this._convertKeyframesToObject(t),s)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((s,i)=>{i!=="offset"&&e.set(i,this._finished?s:rt(this.element,i))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(s=>s()),t.length=0}},Je=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return Ft(e,t)}getParentElement(e){return st(e)}query(e,t,s){return It(e,t,s)}computeStyle(e,t,s){return rt(e,t)}animate(e,t,s,i,r,a=[]){let o=i==0?"both":"forwards",l={duration:s,delay:i,fill:o};r&&(l.easing=r);let h=new Map,c=a.filter(y=>y instanceof we);Is(s,i)&&c.forEach(y=>{y.currentSnapshot.forEach((d,g)=>h.set(g,d))});let u=Os(t).map(y=>new Map(y));u=zs(e,u,h);let _=pi(e,u);return new we(e,u,l,_)}};function Ai(n,e){return n==="noop"?new ve(e,new zt,new Ie):new ve(e,new Je,new Be)}var Rt=class{constructor(e,t){this._driver=e;let s=[],i=[],r=at(e,t,s,i);if(s.length)throw cs(s);i.length&&void 0,this._animationAst=r}buildTimelines(e,t,s,i,r){let a=Array.isArray(t)?Tt(t):t,o=Array.isArray(s)?Tt(s):s,l=[];r=r||new te;let h=lt(this._driver,e,this._animationAst,it,pe,a,o,i,r,l);if(l.length)throw fs(l);return h}},me="@",Ut="@.disabled",be=class{constructor(e,t,s,i){this.namespaceId=e,this.delegate=t,this.engine=s,this._onDestroy=i,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,s,i=!0){this.delegate.insertBefore(e,t,s),this.engine.onInsert(this.namespaceId,t,e,i)}removeChild(e,t,s){this.parentNode(t)&&this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,s,i){this.delegate.setAttribute(e,t,s,i)}removeAttribute(e,t,s){this.delegate.removeAttribute(e,t,s)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,s,i){this.delegate.setStyle(e,t,s,i)}removeStyle(e,t,s){this.delegate.removeStyle(e,t,s)}setProperty(e,t,s){t.charAt(0)==me&&t==Ut?this.disableAnimations(e,!!s):this.delegate.setProperty(e,t,s)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,s){return this.delegate.listen(e,t,s)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},xe=class extends be{constructor(e,t,s,i,r){super(t,s,i,r),this.factory=e,this.namespaceId=t}setProperty(e,t,s){t.charAt(0)==me?t.charAt(1)=="."&&t==Ut?(s=s===void 0?!0:!!s,this.disableAnimations(e,s)):this.engine.process(this.namespaceId,e,t.slice(1),s):this.delegate.setProperty(e,t,s)}listen(e,t,s){if(t.charAt(0)==me){let i=yi(e),r=t.slice(1),a="";return r.charAt(0)!=me&&([r,a]=_i(r)),this.engine.listen(this.namespaceId,i,r,a,o=>{let l=o._data||-1;this.factory.scheduleListenerCallback(l,s,o)})}return this.delegate.listen(e,t,s)}};function yi(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}function _i(n){let e=n.indexOf("."),t=n.substring(0,e),s=n.slice(e+1);return[t,s]}var Ot=class{constructor(e,t,s){this.delegate=e,this.engine=t,this._zone=s,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,t.onRemovalComplete=(i,r)=>{r?.removeChild(null,i)}}createRenderer(e,t){let s="",i=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let h=this._rendererCache,c=h.get(i);if(!c){let u=()=>h.delete(i);c=new be(s,i,this.engine,u),h.set(i,c)}return c}let r=t.id,a=t.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);let o=h=>{Array.isArray(h)?h.forEach(o):this.engine.registerTrigger(r,a,e,h.name,h)};return t.data.animation.forEach(o),new xe(this,a,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,s){if(e>=0&&et(s));return}let i=this._animationCallbacksBuffer;i.length==0&&queueMicrotask(()=>{this._zone.run(()=>{i.forEach(r=>{let[a,o]=r;a(o)}),this._animationCallbacksBuffer=[]})}),i.push([t,s])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};export{St as AnimationDriver,zt as NoopAnimationDriver,Rt as \u0275Animation,ve as \u0275AnimationEngine,xe as \u0275AnimationRenderer,Ot as \u0275AnimationRendererFactory,Fe as \u0275AnimationStyleNormalizer,be as \u0275BaseAnimationRenderer,Ie as \u0275NoopAnimationStyleNormalizer,Je as \u0275WebAnimationsDriver,we as \u0275WebAnimationsPlayer,Be as \u0275WebAnimationsStyleNormalizer,Is as \u0275allowPreviousPlayerStylesMerge,bi as \u0275camelCaseToDashCase,Ft as \u0275containsElement,Ai as \u0275createEngine,st as \u0275getParentElement,It as \u0275invokeQuery,Os as \u0275normalizeKeyframes,Ms as \u0275validateStyleProperty,wi as \u0275validateWebAnimatableStyleProperty}; diff --git a/webui/dist/bitmagnet/browser/chunk-M3BEO55A.js b/webui/dist/bitmagnet/browser/chunk-TC5EWLZ6.js similarity index 81% rename from webui/dist/bitmagnet/browser/chunk-M3BEO55A.js rename to webui/dist/bitmagnet/browser/chunk-TC5EWLZ6.js index 38c53c86..342b1755 100644 --- a/webui/dist/bitmagnet/browser/chunk-M3BEO55A.js +++ b/webui/dist/bitmagnet/browser/chunk-TC5EWLZ6.js @@ -1 +1 @@ -import{k as m,l as t}from"./chunk-4NEHCUZ2.js";import{B as s,ba as o,ka as n,qa as p}from"./chunk-3DR3CJRN.js";var a=["XSmall","Small","Medium","Large","XLarge"],d=(()=>{class i{constructor(){this.breakpointObserver=p(m),this.state=this.breakpointObserver.observe([t.XSmall,t.Small,t.Medium,t.Large,t.XLarge]).pipe(s(e=>e.breakpoints),o()),this.size$=this.state.pipe(s(e=>a.find(r=>e[t[r]])??"Medium")),this.size="Medium",this.size$.subscribe(e=>{this.size=e})}sizeAtLeast(e){return a.indexOf(e)<=a.indexOf(this.size)}static{this.\u0275fac=function(r){return new(r||i)}}static{this.\u0275prov=n({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();export{d as a}; +import{k as m,l as t}from"./chunk-HB55W55I.js";import{B as s,ba as o,ka as n,qa as p}from"./chunk-FJILXII2.js";var a=["XSmall","Small","Medium","Large","XLarge"],d=(()=>{class i{constructor(){this.breakpointObserver=p(m),this.state=this.breakpointObserver.observe([t.XSmall,t.Small,t.Medium,t.Large,t.XLarge]).pipe(s(e=>e.breakpoints),o()),this.size$=this.state.pipe(s(e=>a.find(r=>e[t[r]])??"Medium")),this.size="Medium",this.size$.subscribe(e=>{this.size=e})}sizeAtLeast(e){return a.indexOf(e)<=a.indexOf(this.size)}static{this.\u0275fac=function(r){return new(r||i)}}static{this.\u0275prov=n({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();export{d as a}; diff --git a/webui/dist/bitmagnet/browser/chunk-AV47NZN7.js b/webui/dist/bitmagnet/browser/chunk-VHNPENGG.js similarity index 99% rename from webui/dist/bitmagnet/browser/chunk-AV47NZN7.js rename to webui/dist/bitmagnet/browser/chunk-VHNPENGG.js index 8ef29fe0..4865075c 100644 --- a/webui/dist/bitmagnet/browser/chunk-AV47NZN7.js +++ b/webui/dist/bitmagnet/browser/chunk-VHNPENGG.js @@ -1,3 +1,3 @@ -import{Da as vn,Na as Ji,Oa as Mn,Qa as wn,V as bn,a as Ze,b as Je,ka as ti,l as Qe,lb as we,na as _n,wa as yn}from"./chunk-3DR3CJRN.js";function Ce(e){return e+.5|0}var St=(e,i,t)=>Math.max(Math.min(e,t),i);function Se(e){return St(Ce(e*2.55),0,255)}function kt(e){return St(Ce(e*255),0,255)}function mt(e){return St(Ce(e/2.55)/100,0,1)}function Sn(e){return St(Ce(e*100),0,100)}var st={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},ts=[..."0123456789ABCDEF"],dl=e=>ts[e&15],ul=e=>ts[(e&240)>>4]+ts[e&15],ei=e=>(e&240)>>4===(e&15),pl=e=>ei(e.r)&&ei(e.g)&&ei(e.b)&&ei(e.a);function gl(e){var i=e.length,t;return e[0]==="#"&&(i===4||i===5?t={r:255&st[e[1]]*17,g:255&st[e[2]]*17,b:255&st[e[3]]*17,a:i===5?st[e[4]]*17:255}:(i===7||i===9)&&(t={r:st[e[1]]<<4|st[e[2]],g:st[e[3]]<<4|st[e[4]],b:st[e[5]]<<4|st[e[6]],a:i===9?st[e[7]]<<4|st[e[8]]:255})),t}var ml=(e,i)=>e<255?i(e):"";function xl(e){var i=pl(e)?dl:ul;return e?"#"+i(e.r)+i(e.g)+i(e.b)+ml(e.a,i):void 0}var bl=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function On(e,i,t){let s=i*Math.min(t,1-t),n=(o,r=(o+e/30)%12)=>t-s*Math.max(Math.min(r-3,9-r,1),-1);return[n(0),n(8),n(4)]}function _l(e,i,t){let s=(n,o=(n+e/60)%6)=>t-t*i*Math.max(Math.min(o,4-o,1),0);return[s(5),s(3),s(1)]}function yl(e,i,t){let s=On(e,1,.5),n;for(i+t>1&&(n=1/(i+t),i*=n,t*=n),n=0;n<3;n++)s[n]*=1-i-t,s[n]+=i;return s}function vl(e,i,t,s,n){return e===n?(i-t)/s+(i.5?h/(2-o-r):h/(o+r),l=vl(t,s,n,h,o),l=l*60+.5),[l|0,c||0,a]}function is(e,i,t,s){return(Array.isArray(i)?e(i[0],i[1],i[2]):e(i,t,s)).map(kt)}function ss(e,i,t){return is(On,e,i,t)}function Ml(e,i,t){return is(yl,e,i,t)}function wl(e,i,t){return is(_l,e,i,t)}function An(e){return(e%360+360)%360}function Sl(e){let i=bl.exec(e),t=255,s;if(!i)return;i[5]!==s&&(t=i[6]?Se(+i[5]):kt(+i[5]));let n=An(+i[2]),o=+i[3]/100,r=+i[4]/100;return i[1]==="hwb"?s=Ml(n,o,r):i[1]==="hsv"?s=wl(n,o,r):s=ss(n,o,r),{r:s[0],g:s[1],b:s[2],a:t}}function kl(e,i){var t=es(e);t[0]=An(t[0]+i),t=ss(t),e.r=t[0],e.g=t[1],e.b=t[2]}function Cl(e){if(!e)return;let i=es(e),t=i[0],s=Sn(i[1]),n=Sn(i[2]);return e.a<255?`hsla(${t}, ${s}%, ${n}%, ${mt(e.a)})`:`hsl(${t}, ${s}%, ${n}%)`}var kn={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Cn={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function Pl(){let e={},i=Object.keys(Cn),t=Object.keys(kn),s,n,o,r,a;for(s=0;s>16&255,o>>8&255,o&255]}return e}var ii;function Ol(e){ii||(ii=Pl(),ii.transparent=[0,0,0,0]);let i=ii[e.toLowerCase()];return i&&{r:i[0],g:i[1],b:i[2],a:i.length===4?i[3]:255}}var Al=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function Dl(e){let i=Al.exec(e),t=255,s,n,o;if(i){if(i[7]!==s){let r=+i[7];t=i[8]?Se(r):St(r*255,0,255)}return s=+i[1],n=+i[3],o=+i[5],s=255&(i[2]?Se(s):St(s,0,255)),n=255&(i[4]?Se(n):St(n,0,255)),o=255&(i[6]?Se(o):St(o,0,255)),{r:s,g:n,b:o,a:t}}}function Tl(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${mt(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}var Qi=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,Zt=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function Ll(e,i,t){let s=Zt(mt(e.r)),n=Zt(mt(e.g)),o=Zt(mt(e.b));return{r:kt(Qi(s+t*(Zt(mt(i.r))-s))),g:kt(Qi(n+t*(Zt(mt(i.g))-n))),b:kt(Qi(o+t*(Zt(mt(i.b))-o))),a:e.a+t*(i.a-e.a)}}function si(e,i,t){if(e){let s=es(e);s[i]=Math.max(0,Math.min(s[i]+s[i]*t,i===0?360:1)),s=ss(s),e.r=s[0],e.g=s[1],e.b=s[2]}}function Dn(e,i){return e&&Object.assign(i||{},e)}function Pn(e){var i={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(i={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(i.a=kt(e[3]))):(i=Dn(e,{r:0,g:0,b:0,a:1}),i.a=kt(i.a)),i}function Rl(e){return e.charAt(0)==="r"?Dl(e):Sl(e)}var ke=class e{constructor(i){if(i instanceof e)return i;let t=typeof i,s;t==="object"?s=Pn(i):t==="string"&&(s=gl(i)||Ol(i)||Rl(i)),this._rgb=s,this._valid=!!s}get valid(){return this._valid}get rgb(){var i=Dn(this._rgb);return i&&(i.a=mt(i.a)),i}set rgb(i){this._rgb=Pn(i)}rgbString(){return this._valid?Tl(this._rgb):void 0}hexString(){return this._valid?xl(this._rgb):void 0}hslString(){return this._valid?Cl(this._rgb):void 0}mix(i,t){if(i){let s=this.rgb,n=i.rgb,o,r=t===o?.5:t,a=2*r-1,l=s.a-n.a,c=((a*l===-1?a:(a+l)/(1+a*l))+1)/2;o=1-c,s.r=255&c*s.r+o*n.r+.5,s.g=255&c*s.g+o*n.g+.5,s.b=255&c*s.b+o*n.b+.5,s.a=r*s.a+(1-r)*n.a,this.rgb=s}return this}interpolate(i,t){return i&&(this._rgb=Ll(this._rgb,i._rgb,t)),this}clone(){return new e(this.rgb)}alpha(i){return this._rgb.a=kt(i),this}clearer(i){let t=this._rgb;return t.a*=1-i,this}greyscale(){let i=this._rgb,t=Ce(i.r*.3+i.g*.59+i.b*.11);return i.r=i.g=i.b=t,this}opaquer(i){let t=this._rgb;return t.a*=1+i,this}negate(){let i=this._rgb;return i.r=255-i.r,i.g=255-i.g,i.b=255-i.b,this}lighten(i){return si(this._rgb,2,i),this}darken(i){return si(this._rgb,2,-i),this}saturate(i){return si(this._rgb,1,i),this}desaturate(i){return si(this._rgb,1,-i),this}rotate(i){return kl(this._rgb,i),this}};function ft(){}var Wn=(()=>{let e=0;return()=>e++})();function T(e){return e===null||typeof e>"u"}function E(e){if(Array.isArray&&Array.isArray(e))return!0;let i=Object.prototype.toString.call(e);return i.slice(0,7)==="[object"&&i.slice(-6)==="Array]"}function A(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function W(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function J(e,i){return W(e)?e:i}function C(e,i){return typeof e>"u"?i:e}var Vn=(e,i)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/i,as=(e,i)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*i:+e;function I(e,i,t){if(e&&typeof e.call=="function")return e.apply(t,i)}function L(e,i,t,s){let n,o,r;if(E(e))if(o=e.length,s)for(n=o-1;n>=0;n--)i.call(t,e[n],n);else for(n=0;ne,x:e=>e.x,y:e=>e.y};function Fl(e){let i=e.split("."),t=[],s="";for(let n of i)s+=n,s.endsWith("\\")?s=s.slice(0,-1)+".":(t.push(s),s="");return t}function zl(e){let i=Fl(e);return t=>{for(let s of i){if(s==="")break;t=t&&t[s]}return t}}function _t(e,i){return(Tn[i]||(Tn[i]=zl(i)))(e)}function fi(e){return e.charAt(0).toUpperCase()+e.slice(1)}var ie=e=>typeof e<"u",xt=e=>typeof e=="function",ls=(e,i)=>{if(e.size!==i.size)return!1;for(let t of e)if(!i.has(t))return!1;return!0};function $n(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}var F=Math.PI,z=2*F,Bl=z+F,li=Number.POSITIVE_INFINITY,jl=F/180,V=F/2,Wt=F/4,Ln=F*2/3,bt=Math.log10,at=Math.sign;function se(e,i,t){return Math.abs(e-i)n-o).pop(),i}function $t(e){return!isNaN(parseFloat(e))&&isFinite(e)}function Yn(e,i){let t=Math.round(e);return t-i<=e&&t+i>=e}function hs(e,i,t){let s,n,o;for(s=0,n=e.length;sl&&c=Math.min(i,t)-s&&e<=Math.max(i,t)+s}function ui(e,i,t){t=t||(r=>e[r]1;)o=n+s>>1,t(o)?n=o:s=o;return{lo:n,hi:s}}var ct=(e,i,t,s)=>ui(e,t,s?n=>{let o=e[n][i];return oe[n][i]ui(e,t,s=>e[s][i]>=t);function qn(e,i,t){let s=0,n=e.length;for(;ss&&e[n-1]>t;)n--;return s>0||n{let s="_onData"+fi(t),n=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value(...o){let r=n.apply(this,o);return e._chartjs.listeners.forEach(a=>{typeof a[s]=="function"&&a[s](...o)}),r}})})}function us(e,i){let t=e._chartjs;if(!t)return;let s=t.listeners,n=s.indexOf(i);n!==-1&&s.splice(n,1),!(s.length>0)&&(Gn.forEach(o=>{delete e[o]}),delete e._chartjs)}function ps(e){let i=new Set(e);return i.size===e.length?e:Array.from(i)}var gs=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function ms(e,i){let t=[],s=!1;return function(...n){t=n,s||(s=!0,gs.call(window,()=>{s=!1,e.apply(i,t)}))}}function Jn(e,i){let t;return function(...s){return i?(clearTimeout(t),t=setTimeout(e,i,s)):e.apply(this,s),i}}var pi=e=>e==="start"?"left":e==="end"?"right":"center",X=(e,i,t)=>e==="start"?i:e==="end"?t:(i+t)/2,Qn=(e,i,t,s)=>e===(s?"left":"right")?t:e==="center"?(i+t)/2:i;function xs(e,i,t){let s=i.length,n=0,o=s;if(e._sorted){let{iScale:r,_parsed:a}=e,l=r.axis,{min:c,max:h,minDefined:f,maxDefined:d}=r.getUserBounds();f&&(n=U(Math.min(ct(a,l,c).lo,t?s:ct(i,l,r.getPixelForValue(c)).lo),0,s-1)),d?o=U(Math.max(ct(a,r.axis,h,!0).hi+1,t?0:ct(i,l,r.getPixelForValue(h),!0).hi+1),n,s)-n:o=s-n}return{start:n,count:o}}function bs(e){let{xScale:i,yScale:t,_scaleRanges:s}=e,n={xmin:i.min,xmax:i.max,ymin:t.min,ymax:t.max};if(!s)return e._scaleRanges=n,!0;let o=s.xmin!==i.min||s.xmax!==i.max||s.ymin!==t.min||s.ymax!==t.max;return Object.assign(s,n),o}var ni=e=>e===0||e===1,Rn=(e,i,t)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-i)*z/t)),In=(e,i,t)=>Math.pow(2,-10*e)*Math.sin((e-i)*z/t)+1,Jt={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*V)+1,easeOutSine:e=>Math.sin(e*V),easeInOutSine:e=>-.5*(Math.cos(F*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>ni(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>ni(e)?e:Rn(e,.075,.3),easeOutElastic:e=>ni(e)?e:In(e,.075,.3),easeInOutElastic(e){return ni(e)?e:e<.5?.5*Rn(e*2,.1125,.45):.5+.5*In(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let i=1.70158;return(e/=.5)<1?.5*(e*e*(((i*=1.525)+1)*e-i)):.5*((e-=2)*e*(((i*=1.525)+1)*e+i)+2)},easeInBounce:e=>1-Jt.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?Jt.easeInBounce(e*2)*.5:Jt.easeOutBounce(e*2-1)*.5+.5};function _s(e){if(e&&typeof e=="object"){let i=e.toString();return i==="[object CanvasPattern]"||i==="[object CanvasGradient]"}return!1}function ys(e){return _s(e)?e:new ke(e)}function ns(e){return _s(e)?e:new ke(e).saturate(.5).darken(.1).hexString()}var Wl=["x","y","borderWidth","radius","tension"],Vl=["color","borderColor","backgroundColor"];function Hl(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:i=>i!=="onProgress"&&i!=="onComplete"&&i!=="fn"}),e.set("animations",{colors:{type:"color",properties:Vl},numbers:{type:"number",properties:Wl}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:i=>i|0}}}})}function $l(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}var En=new Map;function Ul(e,i){i=i||{};let t=e+JSON.stringify(i),s=En.get(t);return s||(s=new Intl.NumberFormat(e,i),En.set(t,s)),s}function oe(e,i,t){return Ul(i,t).format(e)}var to={values(e){return E(e)?e:""+e},numeric(e,i,t){if(e===0)return"0";let s=this.chart.options.locale,n,o=e;if(t.length>1){let c=Math.max(Math.abs(t[0].value),Math.abs(t[t.length-1].value));(c<1e-4||c>1e15)&&(n="scientific"),o=Yl(e,t)}let r=bt(Math.abs(o)),a=isNaN(r)?1:Math.max(Math.min(-1*Math.floor(r),20),0),l={notation:n,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),oe(e,s,l)},logarithmic(e,i,t){if(e===0)return"0";let s=t[i].significand||e/Math.pow(10,Math.floor(bt(e)));return[1,2,3,5,10,15].includes(s)||i>.8*t.length?to.numeric.call(this,e,i,t):""}};function Yl(e,i){let t=i.length>3?i[2].value-i[1].value:i[1].value-i[0].value;return Math.abs(t)>=1&&e!==Math.floor(e)&&(t=e-Math.floor(e)),t}var De={formatters:to};function Xl(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(i,t)=>t.lineWidth,tickColor:(i,t)=>t.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:De.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:i=>!i.startsWith("before")&&!i.startsWith("after")&&i!=="callback"&&i!=="parser",_indexable:i=>i!=="borderDash"&&i!=="tickBorderDash"&&i!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:i=>i!=="backdropPadding"&&i!=="callback",_indexable:i=>i!=="backdropPadding"})}var Pt=Object.create(null),gi=Object.create(null);function Pe(e,i){if(!i)return e;let t=i.split(".");for(let s=0,n=t.length;ss.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(s,n)=>ns(n.backgroundColor),this.hoverBorderColor=(s,n)=>ns(n.borderColor),this.hoverColor=(s,n)=>ns(n.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(i),this.apply(t)}set(i,t){return os(this,i,t)}get(i){return Pe(this,i)}describe(i,t){return os(gi,i,t)}override(i,t){return os(Pt,i,t)}route(i,t,s,n){let o=Pe(this,i),r=Pe(this,s),a="_"+t;Object.defineProperties(o,{[a]:{value:o[t],writable:!0},[t]:{enumerable:!0,get(){let l=this[a],c=r[n];return A(l)?Object.assign({},c,l):C(l,c)},set(l){this[a]=l}}})}apply(i){i.forEach(t=>t(this))}},B=new rs({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[Hl,$l,Xl]);function Kl(e){return!e||T(e.size)||T(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function Oe(e,i,t,s,n){let o=i[n];return o||(o=i[n]=e.measureText(n).width,t.push(n)),o>s&&(s=o),s}function eo(e,i,t,s){s=s||{};let n=s.data=s.data||{},o=s.garbageCollect=s.garbageCollect||[];s.font!==i&&(n=s.data={},o=s.garbageCollect=[],s.font=i),e.save(),e.font=i;let r=0,a=t.length,l,c,h,f,d;for(l=0;lt.length){for(l=0;l0&&e.stroke()}}function ht(e,i,t){return t=t||.5,!i||e&&e.x>i.left-t&&e.xi.top-t&&e.y0&&o.strokeColor!=="",l,c;for(e.save(),e.font=n.string,ql(e,o),l=0;l+e||0;function xi(e,i){let t={},s=A(i),n=s?Object.keys(i):i,o=A(e)?s?r=>C(e[r],e[i[r]]):r=>e[r]:()=>e;for(let r of n)t[r]=ec(o(r));return t}function ws(e){return xi(e,{top:"y",right:"x",bottom:"y",left:"x"})}function Dt(e){return xi(e,["topLeft","topRight","bottomLeft","bottomRight"])}function K(e){let i=ws(e);return i.width=i.left+i.right,i.height=i.top+i.bottom,i}function $(e,i){e=e||{},i=i||B.font;let t=C(e.size,i.size);typeof t=="string"&&(t=parseInt(t,10));let s=C(e.style,i.style);s&&!(""+s).match(Ql)&&(console.warn('Invalid font style specified: "'+s+'"'),s=void 0);let n={family:C(e.family,i.family),lineHeight:tc(C(e.lineHeight,i.lineHeight),t),size:t,style:s,weight:C(e.weight,i.weight),string:""};return n.string=Kl(n),n}function ae(e,i,t,s){let n=!0,o,r,a;for(o=0,r=e.length;ot&&a===0?0:a+l;return{min:r(s,-Math.abs(o)),max:r(n,o)}}function yt(e,i){return Object.assign(Object.create(e),i)}function bi(e,i=[""],t,s,n=()=>e[0]){let o=t||e;typeof s>"u"&&(s=ao("_fallback",e));let r={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:o,_fallback:s,_getTarget:n,override:a=>bi([a,...e],i,o,s)};return new Proxy(r,{deleteProperty(a,l){return delete a[l],delete a._keys,delete e[0][l],!0},get(a,l){return oo(a,l,()=>cc(l,i,e,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(a,l){return zn(a).includes(l)},ownKeys(a){return zn(a)},set(a,l,c){let h=a._storage||(a._storage=n());return a[l]=h[l]=c,delete a._keys,!0}})}function Ht(e,i,t,s){let n={_cacheable:!1,_proxy:e,_context:i,_subProxy:t,_stack:new Set,_descriptors:Ss(e,s),setContext:o=>Ht(e,o,t,s),override:o=>Ht(e.override(o),i,t,s)};return new Proxy(n,{deleteProperty(o,r){return delete o[r],delete e[r],!0},get(o,r,a){return oo(o,r,()=>sc(o,r,a))},getOwnPropertyDescriptor(o,r){return o._descriptors.allKeys?Reflect.has(e,r)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,r)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(o,r){return Reflect.has(e,r)},ownKeys(){return Reflect.ownKeys(e)},set(o,r,a){return e[r]=a,delete o[r],!0}})}function Ss(e,i={scriptable:!0,indexable:!0}){let{_scriptable:t=i.scriptable,_indexable:s=i.indexable,_allKeys:n=i.allKeys}=e;return{allKeys:n,scriptable:t,indexable:s,isScriptable:xt(t)?t:()=>t,isIndexable:xt(s)?s:()=>s}}var ic=(e,i)=>e?e+fi(i):i,ks=(e,i)=>A(i)&&e!=="adapters"&&(Object.getPrototypeOf(i)===null||i.constructor===Object);function oo(e,i,t){if(Object.prototype.hasOwnProperty.call(e,i)||i==="constructor")return e[i];let s=t();return e[i]=s,s}function sc(e,i,t){let{_proxy:s,_context:n,_subProxy:o,_descriptors:r}=e,a=s[i];return xt(a)&&r.isScriptable(i)&&(a=nc(i,a,e,t)),E(a)&&a.length&&(a=oc(i,a,e,r.isIndexable)),ks(i,a)&&(a=Ht(a,n,o&&o[i],r)),a}function nc(e,i,t,s){let{_proxy:n,_context:o,_subProxy:r,_stack:a}=t;if(a.has(e))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+e);a.add(e);let l=i(o,r||s);return a.delete(e),ks(e,l)&&(l=Cs(n._scopes,n,e,l)),l}function oc(e,i,t,s){let{_proxy:n,_context:o,_subProxy:r,_descriptors:a}=t;if(typeof o.index<"u"&&s(e))return i[o.index%i.length];if(A(i[0])){let l=i,c=n._scopes.filter(h=>h!==l);i=[];for(let h of l){let f=Cs(c,n,e,h);i.push(Ht(f,o,r&&r[e],a))}}return i}function ro(e,i,t){return xt(e)?e(i,t):e}var rc=(e,i)=>e===!0?i:typeof e=="string"?_t(i,e):void 0;function ac(e,i,t,s,n){for(let o of i){let r=rc(t,o);if(r){e.add(r);let a=ro(r._fallback,t,n);if(typeof a<"u"&&a!==t&&a!==s)return a}else if(r===!1&&typeof s<"u"&&t!==s)return null}return!1}function Cs(e,i,t,s){let n=i._rootScopes,o=ro(i._fallback,t,s),r=[...e,...n],a=new Set;a.add(s);let l=Fn(a,r,t,o||t,s);return l===null||typeof o<"u"&&o!==t&&(l=Fn(a,r,o,l,s),l===null)?!1:bi(Array.from(a),[""],n,o,()=>lc(i,t,s))}function Fn(e,i,t,s,n){for(;t;)t=ac(e,i,t,s,n);return t}function lc(e,i,t){let s=e._getTarget();i in s||(s[i]={});let n=s[i];return E(n)&&A(t)?t:n||{}}function cc(e,i,t,s){let n;for(let o of i)if(n=ao(ic(o,e),t),typeof n<"u")return ks(e,n)?Cs(t,s,e,n):n}function ao(e,i){for(let t of i){if(!t)continue;let s=t[e];if(typeof s<"u")return s}}function zn(e){let i=e._keys;return i||(i=e._keys=hc(e._scopes)),i}function hc(e){let i=new Set;for(let t of e)for(let s of Object.keys(t).filter(n=>!n.startsWith("_")))i.add(s);return Array.from(i)}function Ps(e,i,t,s){let{iScale:n}=e,{key:o="r"}=this._parsing,r=new Array(s),a,l,c,h;for(a=0,l=s;aie==="x"?"y":"x";function dc(e,i,t,s){let n=e.skip?i:e,o=i,r=t.skip?i:t,a=ci(o,n),l=ci(r,o),c=a/(a+l),h=l/(a+l);c=isNaN(c)?0:c,h=isNaN(h)?0:h;let f=s*c,d=s*h;return{previous:{x:o.x-f*(r.x-n.x),y:o.y-f*(r.y-n.y)},next:{x:o.x+d*(r.x-n.x),y:o.y+d*(r.y-n.y)}}}function uc(e,i,t){let s=e.length,n,o,r,a,l,c=te(e,0);for(let h=0;h!c.skip)),i.cubicInterpolationMode==="monotone")gc(e,n);else{let c=s?e[e.length-1]:e[0];for(o=0,r=e.length;oe.ownerDocument.defaultView.getComputedStyle(e,null);function xc(e,i){return vi(e).getPropertyValue(i)}var bc=["top","right","bottom","left"];function Vt(e,i,t){let s={};t=t?"-"+t:"";for(let n=0;n<4;n++){let o=bc[n];s[o]=parseFloat(e[i+"-"+o+t])||0}return s.width=s.left+s.right,s.height=s.top+s.bottom,s}var _c=(e,i,t)=>(e>0||i>0)&&(!t||!t.shadowRoot);function yc(e,i){let t=e.touches,s=t&&t.length?t[0]:e,{offsetX:n,offsetY:o}=s,r=!1,a,l;if(_c(n,o,e.target))a=n,l=o;else{let c=i.getBoundingClientRect();a=s.clientX-c.left,l=s.clientY-c.top,r=!0}return{x:a,y:l,box:r}}function Tt(e,i){if("native"in e)return e;let{canvas:t,currentDevicePixelRatio:s}=i,n=vi(t),o=n.boxSizing==="border-box",r=Vt(n,"padding"),a=Vt(n,"border","width"),{x:l,y:c,box:h}=yc(e,t),f=r.left+(h&&a.left),d=r.top+(h&&a.top),{width:u,height:p}=i;return o&&(u-=r.width+a.width,p-=r.height+a.height),{x:Math.round((l-f)/u*t.width/s),y:Math.round((c-d)/p*t.height/s)}}function vc(e,i,t){let s,n;if(i===void 0||t===void 0){let o=e&&yi(e);if(!o)i=e.clientWidth,t=e.clientHeight;else{let r=o.getBoundingClientRect(),a=vi(o),l=Vt(a,"border","width"),c=Vt(a,"padding");i=r.width-c.width-l.width,t=r.height-c.height-l.height,s=hi(a.maxWidth,o,"clientWidth"),n=hi(a.maxHeight,o,"clientHeight")}}return{width:i,height:t,maxWidth:s||li,maxHeight:n||li}}var ri=e=>Math.round(e*10)/10;function ho(e,i,t,s){let n=vi(e),o=Vt(n,"margin"),r=hi(n.maxWidth,e,"clientWidth")||li,a=hi(n.maxHeight,e,"clientHeight")||li,l=vc(e,i,t),{width:c,height:h}=l;if(n.boxSizing==="content-box"){let d=Vt(n,"border","width"),u=Vt(n,"padding");c-=u.width+d.width,h-=u.height+d.height}return c=Math.max(0,c-o.width),h=Math.max(0,s?c/s:h-o.height),c=ri(Math.min(c,r,l.maxWidth)),h=ri(Math.min(h,a,l.maxHeight)),c&&!h&&(h=ri(c/2)),(i!==void 0||t!==void 0)&&s&&l.height&&h>l.height&&(h=l.height,c=ri(Math.floor(h*s))),{width:c,height:h}}function Os(e,i,t){let s=i||1,n=Math.floor(e.height*s),o=Math.floor(e.width*s);e.height=Math.floor(e.height),e.width=Math.floor(e.width);let r=e.canvas;return r.style&&(t||!r.style.height&&!r.style.width)&&(r.style.height=`${e.height}px`,r.style.width=`${e.width}px`),e.currentDevicePixelRatio!==s||r.height!==n||r.width!==o?(e.currentDevicePixelRatio=s,r.height=n,r.width=o,e.ctx.setTransform(s,0,0,s,0,0),!0):!1}var fo=function(){let e=!1;try{let i={get passive(){return e=!0,!1}};_i()&&(window.addEventListener("test",null,i),window.removeEventListener("test",null,i))}catch{}return e}();function As(e,i){let t=xc(e,i),s=t&&t.match(/^(\d+)(\.\d+)?px$/);return s?+s[1]:void 0}function Ct(e,i,t,s){return{x:e.x+t*(i.x-e.x),y:e.y+t*(i.y-e.y)}}function uo(e,i,t,s){return{x:e.x+t*(i.x-e.x),y:s==="middle"?t<.5?e.y:i.y:s==="after"?t<1?e.y:i.y:t>0?i.y:e.y}}function po(e,i,t,s){let n={x:e.cp2x,y:e.cp2y},o={x:i.cp1x,y:i.cp1y},r=Ct(e,n,t),a=Ct(n,o,t),l=Ct(o,i,t),c=Ct(r,a,t),h=Ct(a,l,t);return Ct(c,h,t)}var Mc=function(e,i){return{x(t){return e+e+i-t},setWidth(t){i=t},textAlign(t){return t==="center"?t:t==="right"?"left":"right"},xPlus(t,s){return t-s},leftForLtr(t,s){return t-s}}},wc=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,i){return e+i},leftForLtr(e,i){return e}}};function Ut(e,i,t){return e?Mc(i,t):wc()}function Ds(e,i){let t,s;(i==="ltr"||i==="rtl")&&(t=e.canvas.style,s=[t.getPropertyValue("direction"),t.getPropertyPriority("direction")],t.setProperty("direction",i,"important"),e.prevTextDirection=s)}function Ts(e,i){i!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",i[0],i[1]))}function go(e){return e==="angle"?{between:ne,compare:Nl,normalize:Z}:{between:dt,compare:(i,t)=>i-t,normalize:i=>i}}function Bn({start:e,end:i,count:t,loop:s,style:n}){return{start:e%t,end:i%t,loop:s&&(i-e+1)%t===0,style:n}}function Sc(e,i,t){let{property:s,start:n,end:o}=t,{between:r,normalize:a}=go(s),l=i.length,{start:c,end:h,loop:f}=e,d,u;if(f){for(c+=l,h+=l,d=0,u=l;dl(n,y,b)&&a(n,y)!==0,_=()=>a(o,b)===0||l(o,y,b),v=()=>g||M(),S=()=>!g||_();for(let w=h,k=h;w<=f;++w)x=i[w%r],!x.skip&&(b=c(x[s]),b!==y&&(g=l(b,n,o),m===null&&v()&&(m=a(b,n)===0?w:k),m!==null&&S()&&(p.push(Bn({start:m,end:w,loop:d,count:r,style:u})),m=null),k=w,y=b));return m!==null&&p.push(Bn({start:m,end:f,loop:d,count:r,style:u})),p}function Rs(e,i){let t=[],s=e.segments;for(let n=0;nn&&e[o%i].skip;)o--;return o%=i,{start:n,end:o}}function Cc(e,i,t,s){let n=e.length,o=[],r=i,a=e[i],l;for(l=i+1;l<=t;++l){let c=e[l%n];c.skip||c.stop?a.skip||(s=!1,o.push({start:i%n,end:(l-1)%n,loop:s}),i=r=c.stop?l:null):(r=l,a.skip&&(i=l)),a=c}return r!==null&&o.push({start:i%n,end:r%n,loop:s}),o}function mo(e,i){let t=e.points,s=e.options.spanGaps,n=t.length;if(!n)return[];let o=!!e._loop,{start:r,end:a}=kc(t,n,o,s);if(s===!0)return jn(e,[{start:r,end:a,loop:o}],t,i);let l=aa({chart:i,initial:t.initial,numSteps:r,currentStep:Math.min(s-t.start,r)}))}_refresh(){this._request||(this._running=!0,this._request=gs.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(i=Date.now()){let t=0;this._charts.forEach((s,n)=>{if(!s.running||!s.items.length)return;let o=s.items,r=o.length-1,a=!1,l;for(;r>=0;--r)l=o[r],l._active?(l._total>s.duration&&(s.duration=l._total),l.tick(i),a=!0):(o[r]=o[o.length-1],o.pop());a&&(n.draw(),this._notify(n,s,i,"progress")),o.length||(s.running=!1,this._notify(n,s,i,"complete"),s.initial=!1),t+=o.length}),this._lastDate=i,t===0&&(this._running=!1)}_getAnims(i){let t=this._charts,s=t.get(i);return s||(s={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(i,s)),s}listen(i,t,s){this._getAnims(i).listeners[t].push(s)}add(i,t){!t||!t.length||this._getAnims(i).items.push(...t)}has(i){return this._getAnims(i).items.length>0}start(i){let t=this._charts.get(i);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce((s,n)=>Math.max(s,n._duration),0),this._refresh())}running(i){if(!this._running)return!1;let t=this._charts.get(i);return!(!t||!t.running||!t.items.length)}stop(i){let t=this._charts.get(i);if(!t||!t.items.length)return;let s=t.items,n=s.length-1;for(;n>=0;--n)s[n].cancel();t.items=[],this._notify(i,t,Date.now(),"complete")}remove(i){return this._charts.delete(i)}},vt=new Hs,xo="transparent",Ac={boolean(e,i,t){return t>.5?i:e},color(e,i,t){let s=ys(e||xo),n=s.valid&&ys(i||xo);return n&&n.valid?n.mix(s,t).hexString():i},number(e,i,t){return e+(i-e)*t}},$s=class{constructor(i,t,s,n){let o=t[s];n=ae([i.to,n,o,i.from]);let r=ae([i.from,o,n]);this._active=!0,this._fn=i.fn||Ac[i.type||typeof r],this._easing=Jt[i.easing]||Jt.linear,this._start=Math.floor(Date.now()+(i.delay||0)),this._duration=this._total=Math.floor(i.duration),this._loop=!!i.loop,this._target=t,this._prop=s,this._from=r,this._to=n,this._promises=void 0}active(){return this._active}update(i,t,s){if(this._active){this._notify(!1);let n=this._target[this._prop],o=s-this._start,r=this._duration-o;this._start=s,this._duration=Math.floor(Math.max(r,i.duration)),this._total+=o,this._loop=!!i.loop,this._to=ae([i.to,t,n,i.from]),this._from=ae([i.from,n,t])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(i){let t=i-this._start,s=this._duration,n=this._prop,o=this._from,r=this._loop,a=this._to,l;if(this._active=o!==a&&(r||t1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[n]=this._fn(o,a,l)}wait(){let i=this._promises||(this._promises=[]);return new Promise((t,s)=>{i.push({res:t,rej:s})})}_notify(i){let t=i?"res":"rej",s=this._promises||[];for(let n=0;n{let o=i[n];if(!A(o))return;let r={};for(let a of t)r[a]=o[a];(E(o.properties)&&o.properties||[n]).forEach(a=>{(a===n||!s.has(a))&&s.set(a,r)})})}_animateOptions(i,t){let s=t.options,n=Tc(i,s);if(!n)return[];let o=this._createAnimations(n,s);return s.$shared&&Dc(i.options.$animations,s).then(()=>{i.options=s},()=>{}),o}_createAnimations(i,t){let s=this._properties,n=[],o=i.$animations||(i.$animations={}),r=Object.keys(t),a=Date.now(),l;for(l=r.length-1;l>=0;--l){let c=r[l];if(c.charAt(0)==="$")continue;if(c==="options"){n.push(...this._animateOptions(i,t));continue}let h=t[c],f=o[c],d=s.get(c);if(f)if(d&&f.active()){f.update(d,h,a);continue}else f.cancel();if(!d||!d.duration){i[c]=h;continue}o[c]=f=new $s(d,i,c,h),n.push(f)}return n}update(i,t){if(this._properties.size===0){Object.assign(i,t);return}let s=this._createAnimations(i,t);if(s.length)return vt.add(this._chart,s),!0}};function Dc(e,i){let t=[],s=Object.keys(i);for(let n=0;n0||!t&&o<0)return n.index}return null}function Mo(e,i){let{chart:t,_cachedMeta:s}=e,n=t._stacks||(t._stacks={}),{iScale:o,vScale:r,index:a}=s,l=o.axis,c=r.axis,h=Ec(o,r,s),f=i.length,d;for(let u=0;ut[s].axis===i).shift()}function Bc(e,i){return yt(e,{active:!1,dataset:void 0,datasetIndex:i,index:i,mode:"default",type:"dataset"})}function jc(e,i,t){return yt(e,{active:!1,dataIndex:i,parsed:void 0,raw:void 0,element:t,index:i,mode:"default",type:"data"})}function Re(e,i){let t=e.controller.index,s=e.vScale&&e.vScale.axis;if(s){i=i||e._parsed;for(let n of i){let o=n._stacks;if(!o||o[s]===void 0||o[s][t]===void 0)return;delete o[s][t],o[s]._visualValues!==void 0&&o[s]._visualValues[t]!==void 0&&delete o[s]._visualValues[t]}}}var Es=e=>e==="reset"||e==="none",wo=(e,i)=>i?e:Object.assign({},e),Nc=(e,i,t)=>e&&!i.hidden&&i._stacked&&{keys:br(t,!0),values:null},Rt=(()=>{class e{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,s){this.chart=t,this._ctx=t.ctx,this.index=s,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){let t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=yo(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Re(this._cachedMeta),this.index=t}linkScales(){let t=this.chart,s=this._cachedMeta,n=this.getDataset(),o=(d,u,p,g)=>d==="x"?u:d==="r"?g:p,r=s.xAxisID=C(n.xAxisID,Is(t,"x")),a=s.yAxisID=C(n.yAxisID,Is(t,"y")),l=s.rAxisID=C(n.rAxisID,Is(t,"r")),c=s.indexAxis,h=s.iAxisID=o(c,r,a,l),f=s.vAxisID=o(c,a,r,l);s.xScale=this.getScaleForId(r),s.yScale=this.getScaleForId(a),s.rScale=this.getScaleForId(l),s.iScale=this.getScaleForId(h),s.vScale=this.getScaleForId(f)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){let s=this._cachedMeta;return t===s.iScale?s.vScale:s.iScale}reset(){this._update("reset")}_destroy(){let t=this._cachedMeta;this._data&&us(this._data,this),t._stacked&&Re(t)}_dataCheck(){let t=this.getDataset(),s=t.data||(t.data=[]),n=this._data;if(A(s)){let o=this._cachedMeta;this._data=Ic(s,o)}else if(n!==s){if(n){us(n,this);let o=this._cachedMeta;Re(o),o._parsed=[]}s&&Object.isExtensible(s)&&Zn(s,this),this._syncList=[],this._data=s}}addElements(){let t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){let s=this._cachedMeta,n=this.getDataset(),o=!1;this._dataCheck();let r=s._stacked;s._stacked=yo(s.vScale,s),s.stack!==n.stack&&(o=!0,Re(s),s.stack=n.stack),this._resyncElements(t),(o||r!==s._stacked)&&Mo(this,s._parsed)}configure(){let t=this.chart.config,s=t.datasetScopeKeys(this._type),n=t.getOptionScopes(this.getDataset(),s,!0);this.options=t.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,s){let{_cachedMeta:n,_data:o}=this,{iScale:r,_stacked:a}=n,l=r.axis,c=t===0&&s===o.length?!0:n._sorted,h=t>0&&n._parsed[t-1],f,d,u;if(this._parsing===!1)n._parsed=o,n._sorted=!0,u=o;else{E(o[t])?u=this.parseArrayData(n,o,t,s):A(o[t])?u=this.parseObjectData(n,o,t,s):u=this.parsePrimitiveData(n,o,t,s);let p=()=>d[l]===null||h&&d[l]m||d=0;--u)if(!g()){this.updateRangeFromParsed(h,t,p,c);break}}return h}getAllParsedValues(t){let s=this._cachedMeta._parsed,n=[],o,r,a;for(o=0,r=s.length;o=0&&tthis.getContext(n,o,s),m=h.resolveNamedOptions(u,p,g,d);return m.$shared&&(m.$shared=c,r[a]=Object.freeze(wo(m,c))),m}_resolveAnimations(t,s,n){let o=this.chart,r=this._cachedDataOpts,a=`animation-${s}`,l=r[a];if(l)return l;let c;if(o.options.animation!==!1){let f=this.chart.config,d=f.datasetAnimationScopeKeys(this._type,s),u=f.getOptionScopes(this.getDataset(),d);c=f.createResolver(u,this.getContext(t,n,s))}let h=new Ti(o,c&&c.animations);return c&&c._cacheable&&(r[a]=Object.freeze(h)),h}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,s){return!s||Es(t)||this.chart._animationsDisabled}_getSharedOptions(t,s){let n=this.resolveDataElementOptions(t,s),o=this._sharedOptions,r=this.getSharedOptions(n),a=this.includeOptions(s,r)||r!==o;return this.updateSharedOptions(r,s,n),{sharedOptions:r,includeOptions:a}}updateElement(t,s,n,o){Es(o)?Object.assign(t,n):this._resolveAnimations(s,o).update(t,n)}updateSharedOptions(t,s,n){t&&!Es(s)&&this._resolveAnimations(void 0,s).update(t,n)}_setStyle(t,s,n,o){t.active=o;let r=this.getStyle(s,o);this._resolveAnimations(s,n,o).update(t,{options:!o&&this.getSharedOptions(r)||r})}removeHoverStyle(t,s,n){this._setStyle(t,n,"active",!1)}setHoverStyle(t,s,n){this._setStyle(t,n,"active",!0)}_removeDatasetHoverStyle(){let t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){let t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){let s=this._data,n=this._cachedMeta.data;for(let[l,c,h]of this._syncList)this[l](c,h);this._syncList=[];let o=n.length,r=s.length,a=Math.min(r,o);a&&this.parse(0,a),r>o?this._insertElements(o,r-o,t):r{for(h.length+=s,l=h.length-1;l>=a;l--)h[l]=h[l-s]};for(c(r),l=t;ln-o))}return e._cache.$bar}function Vc(e){let i=e.iScale,t=Wc(i,e.type),s=i._length,n,o,r,a,l=()=>{r===32767||r===-32768||(ie(a)&&(s=Math.min(s,Math.abs(r-a)||s)),a=r)};for(n=0,o=t.length;n0?n[e-1]:null,a=eMath.abs(a)&&(l=a,c=r),i[t.axis]=c,i._custom={barStart:l,barEnd:c,start:n,end:o,min:r,max:a}}function _r(e,i,t,s){return E(e)?Uc(e,i,t,s):i[t.axis]=t.parse(e,s),i}function So(e,i,t,s){let n=e.iScale,o=e.vScale,r=n.getLabels(),a=n===o,l=[],c,h,f,d;for(c=t,h=t+s;c=t?1:-1)}function Xc(e){let i,t,s,n,o;return e.horizontal?(i=e.base>e.x,t="left",s="right"):(i=e.base{class e extends Rt{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(t,s,n,o){return So(t,s,n,o)}parseArrayData(t,s,n,o){return So(t,s,n,o)}parseObjectData(t,s,n,o){let{iScale:r,vScale:a}=t,{xAxisKey:l="x",yAxisKey:c="y"}=this._parsing,h=r.axis==="x"?l:c,f=a.axis==="x"?l:c,d=[],u,p,g,m;for(u=n,p=n+o;uf.controller.options.grouped),r=n.options.stacked,a=[],l=this._cachedMeta.controller.getParsed(s),c=l&&l[n.axis],h=f=>{let d=f._parsed.find(p=>p[n.axis]===c),u=d&&d[f.vScale.axis];if(T(u)||isNaN(u))return!0};for(let f of o)if(!(s!==void 0&&h(f))&&((r===!1||a.indexOf(f.stack)===-1||r===void 0&&f.stack===void 0)&&a.push(f.stack),f.index===t))break;return a.length||a.push(void 0),a}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,s,n){let o=this._getStacks(t,n),r=s!==void 0?o.indexOf(s):-1;return r===-1?o.length-1:r}_getRuler(){let t=this.options,s=this._cachedMeta,n=s.iScale,o=[],r,a;for(r=0,a=s.data.length;r{class e extends Rt{static id="bubble";static defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}};static overrides={scales:{x:{type:"linear"},y:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,s,n,o){let r=super.parsePrimitiveData(t,s,n,o);for(let a=0;a=0;--n)s=Math.max(s,t[n].size(this.resolveDataElementOptions(n))/2);return s>0&&s}getLabelAndValue(t){let s=this._cachedMeta,n=this.chart.data.labels||[],{xScale:o,yScale:r}=s,a=this.getParsed(t),l=o.getLabelForValue(a.x),c=r.getLabelForValue(a.y),h=a._custom;return{label:n[t]||"",value:"("+l+", "+c+(h?", "+h:"")+")"}}update(t){let s=this._cachedMeta.data;this.updateElements(s,0,s.length,t)}updateElements(t,s,n,o){let r=o==="reset",{iScale:a,vScale:l}=this._cachedMeta,{sharedOptions:c,includeOptions:h}=this._getSharedOptions(s,o),f=a.axis,d=l.axis;for(let u=s;une(y,a,l,!0)?1:Math.max(M,M*t,_,_*t),p=(y,M,_)=>ne(y,a,l,!0)?-1:Math.min(M,M*t,_,_*t),g=u(0,c,f),m=u(V,h,d),b=p(F,c,f),x=p(F+V,h,d);s=(g-b)/2,n=(m-x)/2,o=-(g+b)/2,r=-(m+x)/2}return{ratioX:s,ratioY:n,offsetX:o,offsetY:r}}var fn=(()=>{class e extends Rt{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){let s=t.data;if(s.labels.length&&s.datasets.length){let{labels:{pointStyle:n,color:o}}=t.legend.options;return s.labels.map((r,a)=>{let c=t.getDatasetMeta(0).controller.getStyle(a);return{text:r,fillStyle:c.backgroundColor,strokeStyle:c.borderColor,fontColor:o,lineWidth:c.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(a),index:a}})}return[]}},onClick(t,s,n){n.chart.toggleDataVisibility(s.index),n.chart.update()}}}};constructor(t,s){super(t,s),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,s){let n=this.getDataset().data,o=this._cachedMeta;if(this._parsing===!1)o._parsed=n;else{let r=c=>+n[c];if(A(n[t])){let{key:c="value"}=this._parsing;r=h=>+_t(n[h],c)}let a,l;for(a=t,l=t+s;a0&&!isNaN(t)?z*(Math.abs(t)/s):0}getLabelAndValue(t){let s=this._cachedMeta,n=this.chart,o=n.data.labels||[],r=oe(s._parsed[t],n.options.locale);return{label:o[t]||"",value:r}}getMaxBorderWidth(t){let s=0,n=this.chart,o,r,a,l,c;if(!t){for(o=0,r=n.data.datasets.length;o{class e extends Rt{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){let s=this._cachedMeta,{dataset:n,data:o=[],_dataset:r}=s,a=this.chart._animationsDisabled,{start:l,count:c}=xs(s,o,a);this._drawStart=l,this._drawCount=c,bs(s)&&(l=0,c=o.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!r._decimated,n.points=o;let h=this.resolveDatasetElementOptions(t);this.options.showLine||(h.borderWidth=0),h.segment=this.options.segment,this.updateElement(n,void 0,{animated:!a,options:h},t),this.updateElements(o,l,c,t)}updateElements(t,s,n,o){let r=o==="reset",{iScale:a,vScale:l,_stacked:c,_dataset:h}=this._cachedMeta,{sharedOptions:f,includeOptions:d}=this._getSharedOptions(s,o),u=a.axis,p=l.axis,{spanGaps:g,segment:m}=this.options,b=$t(g)?g:Number.POSITIVE_INFINITY,x=this.chart._animationsDisabled||r||o==="none",y=s+n,M=t.length,_=s>0&&this.getParsed(s-1);for(let v=0;v=y){w.skip=!0;continue}let k=this.getParsed(v),O=T(k[p]),P=w[u]=a.getPixelForValue(k[u],v),D=w[p]=r||O?l.getBasePixel():l.getPixelForValue(c?this.applyStack(l,k,c):k[p],v);w.skip=isNaN(P)||isNaN(D)||O,w.stop=v>0&&Math.abs(k[u]-_[u])>b,m&&(w.parsed=k,w.raw=h.data[v]),d&&(w.options=f||this.resolveDataElementOptions(v,S.active?"active":o)),x||this.updateElement(S,v,w,o),_=k}}getMaxOverflow(){let t=this._cachedMeta,s=t.dataset,n=s.options&&s.options.borderWidth||0,o=t.data||[];if(!o.length)return n;let r=o[0].size(this.resolveDataElementOptions(0)),a=o[o.length-1].size(this.resolveDataElementOptions(o.length-1));return Math.max(n,r,a)/2}draw(){let t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}return e})(),yr=(()=>{class e extends Rt{static id="polarArea";static defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){let s=t.data;if(s.labels.length&&s.datasets.length){let{labels:{pointStyle:n,color:o}}=t.legend.options;return s.labels.map((r,a)=>{let c=t.getDatasetMeta(0).controller.getStyle(a);return{text:r,fillStyle:c.backgroundColor,strokeStyle:c.borderColor,fontColor:o,lineWidth:c.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(a),index:a}})}return[]}},onClick(t,s,n){n.chart.toggleDataVisibility(s.index),n.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(t,s){super(t,s),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){let s=this._cachedMeta,n=this.chart,o=n.data.labels||[],r=oe(s._parsed[t].r,n.options.locale);return{label:o[t]||"",value:r}}parseObjectData(t,s,n,o){return Ps.bind(this)(t,s,n,o)}update(t){let s=this._cachedMeta.data;this._updateRadius(),this.updateElements(s,0,s.length,t)}getMinMax(){let t=this._cachedMeta,s={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((n,o)=>{let r=this.getParsed(o).r;!isNaN(r)&&this.chart.getDataVisibility(o)&&(rs.max&&(s.max=r))}),s}_updateRadius(){let t=this.chart,s=t.chartArea,n=t.options,o=Math.min(s.right-s.left,s.bottom-s.top),r=Math.max(o/2,0),a=Math.max(n.cutoutPercentage?r/100*n.cutoutPercentage:1,0),l=(r-a)/t.getVisibleDatasetCount();this.outerRadius=r-l*this.index,this.innerRadius=this.outerRadius-l}updateElements(t,s,n,o){let r=o==="reset",a=this.chart,c=a.options.animation,h=this._cachedMeta.rScale,f=h.xCenter,d=h.yCenter,u=h.getIndexAngle(0)-.5*F,p=u,g,m=360/this.countVisibleElements();for(g=0;g{!isNaN(this.getParsed(o).r)&&this.chart.getDataVisibility(o)&&s++}),s}_computeAngle(t,s,n){return this.chart.getDataVisibility(t)?nt(this.resolveDataElementOptions(t,s).angle||n):0}}return e})(),eh=(()=>{class e extends fn{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}}return e})(),ih=(()=>{class e extends Rt{static id="radar";static defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};static overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};getLabelAndValue(t){let s=this._cachedMeta.vScale,n=this.getParsed(t);return{label:s.getLabels()[t],value:""+s.getLabelForValue(n[s.axis])}}parseObjectData(t,s,n,o){return Ps.bind(this)(t,s,n,o)}update(t){let s=this._cachedMeta,n=s.dataset,o=s.data||[],r=s.iScale.getLabels();if(n.points=o,t!=="resize"){let a=this.resolveDatasetElementOptions(t);this.options.showLine||(a.borderWidth=0);let l={_loop:!0,_fullLoop:r.length===o.length,options:a};this.updateElement(n,void 0,l,t)}this.updateElements(o,0,o.length,t)}updateElements(t,s,n,o){let r=this._cachedMeta.rScale,a=o==="reset";for(let l=s;l{class e extends Rt{static id="scatter";static defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1};static overrides={interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}};getLabelAndValue(t){let s=this._cachedMeta,n=this.chart.data.labels||[],{xScale:o,yScale:r}=s,a=this.getParsed(t),l=o.getLabelForValue(a.x),c=r.getLabelForValue(a.y);return{label:n[t]||"",value:"("+l+", "+c+")"}}update(t){let s=this._cachedMeta,{data:n=[]}=s,o=this.chart._animationsDisabled,{start:r,count:a}=xs(s,n,o);if(this._drawStart=r,this._drawCount=a,bs(s)&&(r=0,a=n.length),this.options.showLine){this.datasetElementType||this.addElements();let{dataset:l,_dataset:c}=s;l._chart=this.chart,l._datasetIndex=this.index,l._decimated=!!c._decimated,l.points=n;let h=this.resolveDatasetElementOptions(t);h.segment=this.options.segment,this.updateElement(l,void 0,{animated:!o,options:h},t)}else this.datasetElementType&&(delete s.dataset,this.datasetElementType=!1);this.updateElements(n,r,a,t)}addElements(){let{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(t,s,n,o){let r=o==="reset",{iScale:a,vScale:l,_stacked:c,_dataset:h}=this._cachedMeta,f=this.resolveDataElementOptions(s,o),d=this.getSharedOptions(f),u=this.includeOptions(o,d),p=a.axis,g=l.axis,{spanGaps:m,segment:b}=this.options,x=$t(m)?m:Number.POSITIVE_INFINITY,y=this.chart._animationsDisabled||r||o==="none",M=s>0&&this.getParsed(s-1);for(let _=s;_0&&Math.abs(S[p]-M[p])>x,b&&(w.parsed=S,w.raw=h.data[_]),u&&(w.options=d||this.resolveDataElementOptions(_,v.active?"active":o)),y||this.updateElement(v,_,w,o),M=S}this.updateSharedOptions(d,o,f)}getMaxOverflow(){let t=this._cachedMeta,s=t.data||[];if(!this.options.showLine){let l=0;for(let c=s.length-1;c>=0;--c)l=Math.max(l,s[c].size(this.resolveDataElementOptions(c))/2);return l>0&&l}let n=t.dataset,o=n.options&&n.options.borderWidth||0;if(!s.length)return o;let r=s[0].size(this.resolveDataElementOptions(0)),a=s[s.length-1].size(this.resolveDataElementOptions(s.length-1));return Math.max(o,r,a)/2}}return e})(),nh=Object.freeze({__proto__:null,BarController:Zc,BubbleController:Jc,DoughnutController:fn,LineController:th,PieController:eh,PolarAreaController:yr,RadarController:ih,ScatterController:sh});function Yt(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}var Us=class e{static override(i){Object.assign(e.prototype,i)}options;constructor(i){this.options=i||{}}init(){}formats(){return Yt()}parse(){return Yt()}format(){return Yt()}add(){return Yt()}diff(){return Yt()}startOf(){return Yt()}endOf(){return Yt()}},oh={_date:Us};function rh(e,i,t,s){let{controller:n,data:o,_sorted:r}=e,a=n._cachedMeta.iScale;if(a&&i===a.axis&&i!=="r"&&r&&o.length){let l=a._reversePixels?Kn:ct;if(s){if(n._sharedOptions){let c=o[0],h=typeof c.getRange=="function"&&c.getRange(i);if(h){let f=l(o,i,t-h),d=l(o,i,t+h);return{lo:f.lo,hi:d.hi}}}}else return l(o,i,t)}return{lo:0,hi:o.length-1}}function He(e,i,t,s,n){let o=e.getSortedVisibleDatasetMetas(),r=t[i];for(let a=0,l=o.length;a{l[r]&&l[r](i[t],n)&&(o.push({element:l,datasetIndex:c,index:h}),a=a||l.inRange(i.x,i.y,n))}),s&&!a?[]:o}var hh={evaluateInteractionItems:He,modes:{index(e,i,t,s){let n=Tt(i,e),o=t.axis||"x",r=t.includeInvisible||!1,a=t.intersect?zs(e,n,o,s,r):Bs(e,n,o,!1,s,r),l=[];return a.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{let h=a[0].index,f=c.data[h];f&&!f.skip&&l.push({element:f,datasetIndex:c.index,index:h})}),l):[]},dataset(e,i,t,s){let n=Tt(i,e),o=t.axis||"xy",r=t.includeInvisible||!1,a=t.intersect?zs(e,n,o,s,r):Bs(e,n,o,!1,s,r);if(a.length>0){let l=a[0].datasetIndex,c=e.getDatasetMeta(l).data;a=[];for(let h=0;ht.pos===i)}function Oo(e,i){return e.filter(t=>vr.indexOf(t.pos)===-1&&t.box.axis===i)}function Ee(e,i){return e.sort((t,s)=>{let n=i?s:t,o=i?t:s;return n.weight===o.weight?n.index-o.index:n.weight-o.weight})}function fh(e){let i=[],t,s,n,o,r,a;for(t=0,s=(e||[]).length;tc.box.fullSize),!0),s=Ee(Ie(i,"left"),!0),n=Ee(Ie(i,"right")),o=Ee(Ie(i,"top"),!0),r=Ee(Ie(i,"bottom")),a=Oo(i,"x"),l=Oo(i,"y");return{fullSize:t,leftAndTop:s.concat(o),rightAndBottom:n.concat(l).concat(r).concat(a),chartArea:Ie(i,"chartArea"),vertical:s.concat(n).concat(l),horizontal:o.concat(r).concat(a)}}function Ao(e,i,t,s){return Math.max(e[t],i[t])+Math.max(e[s],i[s])}function Mr(e,i){e.top=Math.max(e.top,i.top),e.left=Math.max(e.left,i.left),e.bottom=Math.max(e.bottom,i.bottom),e.right=Math.max(e.right,i.right)}function gh(e,i,t,s){let{pos:n,box:o}=t,r=e.maxPadding;if(!A(n)){t.size&&(e[n]-=t.size);let f=s[t.stack]||{size:0,count:1};f.size=Math.max(f.size,t.horizontal?o.height:o.width),t.size=f.size/f.count,e[n]+=t.size}o.getPadding&&Mr(r,o.getPadding());let a=Math.max(0,i.outerWidth-Ao(r,e,"left","right")),l=Math.max(0,i.outerHeight-Ao(r,e,"top","bottom")),c=a!==e.w,h=l!==e.h;return e.w=a,e.h=l,t.horizontal?{same:c,other:h}:{same:h,other:c}}function mh(e){let i=e.maxPadding;function t(s){let n=Math.max(i[s]-e[s],0);return e[s]+=n,n}e.y+=t("top"),e.x+=t("left"),t("right"),t("bottom")}function xh(e,i){let t=i.maxPadding;function s(n){let o={left:0,top:0,right:0,bottom:0};return n.forEach(r=>{o[r]=Math.max(i[r],t[r])}),o}return s(e?["left","right"]:["top","bottom"])}function Be(e,i,t,s){let n=[],o,r,a,l,c,h;for(o=0,r=e.length,c=0;o{typeof g.beforeLayout=="function"&&g.beforeLayout()});let h=l.reduce((g,m)=>m.box.options&&m.box.options.display===!1?g:g+1,0)||1,f=Object.freeze({outerWidth:i,outerHeight:t,padding:n,availableWidth:o,availableHeight:r,vBoxMaxWidth:o/2/h,hBoxMaxHeight:r/2}),d=Object.assign({},n);Mr(d,K(s));let u=Object.assign({maxPadding:d,w:o,h:r,x:n.left,y:n.top},n),p=uh(l.concat(c),f);Be(a.fullSize,u,f,p),Be(l,u,f,p),Be(c,u,f,p)&&Be(l,u,f,p),mh(u),Do(a.leftAndTop,u,f,p),u.x+=u.w,u.y+=u.h,Do(a.rightAndBottom,u,f,p),e.chartArea={left:u.left,top:u.top,right:u.left+u.w,bottom:u.top+u.h,height:u.h,width:u.w},L(a.chartArea,g=>{let m=g.box;Object.assign(m,e.chartArea),m.update(u.w,u.h,{left:0,top:0,right:0,bottom:0})})}},Li=class{acquireContext(i,t){}releaseContext(i){return!1}addEventListener(i,t,s){}removeEventListener(i,t,s){}getDevicePixelRatio(){return 1}getMaximumSize(i,t,s,n){return t=Math.max(0,t||i.width),s=s||i.height,{width:t,height:Math.max(0,n?Math.floor(t/n):s)}}isAttached(i){return!0}updateConfig(i){}},Ys=class extends Li{acquireContext(i){return i&&i.getContext&&i.getContext("2d")||null}updateConfig(i){i.options.animation=!1}},Ai="$chartjs",bh={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},To=e=>e===null||e==="";function _h(e,i){let t=e.style,s=e.getAttribute("height"),n=e.getAttribute("width");if(e[Ai]={initial:{height:s,width:n,style:{display:t.display,height:t.height,width:t.width}}},t.display=t.display||"block",t.boxSizing=t.boxSizing||"border-box",To(n)){let o=As(e,"width");o!==void 0&&(e.width=o)}if(To(s))if(e.style.height==="")e.height=e.width/(i||2);else{let o=As(e,"height");o!==void 0&&(e.height=o)}return e}var wr=fo?{passive:!0}:!1;function yh(e,i,t){e&&e.addEventListener(i,t,wr)}function vh(e,i,t){e&&e.canvas&&e.canvas.removeEventListener(i,t,wr)}function Mh(e,i){let t=bh[e.type]||e.type,{x:s,y:n}=Tt(e,i);return{type:t,chart:i,native:e,x:s!==void 0?s:null,y:n!==void 0?n:null}}function Ri(e,i){for(let t of e)if(t===i||t.contains(i))return!0}function wh(e,i,t){let s=e.canvas,n=new MutationObserver(o=>{let r=!1;for(let a of o)r=r||Ri(a.addedNodes,s),r=r&&!Ri(a.removedNodes,s);r&&t()});return n.observe(document,{childList:!0,subtree:!0}),n}function Sh(e,i,t){let s=e.canvas,n=new MutationObserver(o=>{let r=!1;for(let a of o)r=r||Ri(a.removedNodes,s),r=r&&!Ri(a.addedNodes,s);r&&t()});return n.observe(document,{childList:!0,subtree:!0}),n}var Ne=new Map,Lo=0;function Sr(){let e=window.devicePixelRatio;e!==Lo&&(Lo=e,Ne.forEach((i,t)=>{t.currentDevicePixelRatio!==e&&i()}))}function kh(e,i){Ne.size||window.addEventListener("resize",Sr),Ne.set(e,i)}function Ch(e){Ne.delete(e),Ne.size||window.removeEventListener("resize",Sr)}function Ph(e,i,t){let s=e.canvas,n=s&&yi(s);if(!n)return;let o=ms((a,l)=>{let c=n.clientWidth;t(a,l),c{let l=a[0],c=l.contentRect.width,h=l.contentRect.height;c===0&&h===0||o(c,h)});return r.observe(n),kh(e,o),r}function js(e,i,t){t&&t.disconnect(),i==="resize"&&Ch(e)}function Oh(e,i,t){let s=e.canvas,n=ms(o=>{e.ctx!==null&&t(Mh(o,e))},e);return yh(s,i,n),n}var Xs=class extends Li{acquireContext(i,t){let s=i&&i.getContext&&i.getContext("2d");return s&&s.canvas===i?(_h(i,t),s):null}releaseContext(i){let t=i.canvas;if(!t[Ai])return!1;let s=t[Ai].initial;["height","width"].forEach(o=>{let r=s[o];T(r)?t.removeAttribute(o):t.setAttribute(o,r)});let n=s.style||{};return Object.keys(n).forEach(o=>{t.style[o]=n[o]}),t.width=t.width,delete t[Ai],!0}addEventListener(i,t,s){this.removeEventListener(i,t);let n=i.$proxies||(i.$proxies={}),r={attach:wh,detach:Sh,resize:Ph}[t]||Oh;n[t]=r(i,t,s)}removeEventListener(i,t){let s=i.$proxies||(i.$proxies={}),n=s[t];if(!n)return;({attach:js,detach:js,resize:js}[t]||vh)(i,t,n),s[t]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(i,t,s,n){return ho(i,t,s,n)}isAttached(i){let t=i&&yi(i);return!!(t&&t.isConnected)}};function Ah(e){return!_i()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?Ys:Xs}var lt=class{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(i){let{x:t,y:s}=this.getProps(["x","y"],i);return{x:t,y:s}}hasValue(){return $t(this.x)&&$t(this.y)}getProps(i,t){let s=this.$animations;if(!t||!s)return this;let n={};return i.forEach(o=>{n[o]=s[o]&&s[o].active()?s[o]._to:this[o]}),n}};function Dh(e,i){let t=e.options.ticks,s=Th(e),n=Math.min(t.maxTicksLimit||s,s),o=t.major.enabled?Rh(i):[],r=o.length,a=o[0],l=o[r-1],c=[];if(r>n)return Ih(i,c,o,r/n),c;let h=Lh(o,i,n);if(r>0){let f,d,u=r>1?Math.round((l-a)/(r-1)):null;for(wi(i,c,h,T(u)?0:a-u,a),f=0,d=r-1;fn)return l}return Math.max(n,1)}function Rh(e){let i=[],t,s;for(t=0,s=e.length;te==="left"?"right":e==="right"?"left":e,Ro=(e,i,t)=>i==="top"||i==="left"?e[i]+t:e[i]-t,Io=(e,i)=>Math.min(i||e,e);function Eo(e,i){let t=[],s=e.length/i,n=e.length,o=0;for(;or+a)))return l}function Bh(e,i){L(e,t=>{let s=t.gc,n=s.length/2,o;if(n>i){for(o=0;os?s:t,s=n&&t>s?t:s,{min:J(t,J(s,t)),max:J(s,J(t,s))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){let i=this.chart.data;return this.options.labels||(this.isHorizontal()?i.xLabels:i.yLabels)||i.labels||[]}getLabelItems(i=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(i))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){I(this.options.beforeUpdate,[this])}update(i,t,s){let{beginAtZero:n,grace:o,ticks:r}=this.options,a=r.sampleSize;this.beforeUpdate(),this.maxWidth=i,this.maxHeight=t,this._margins=s=Object.assign({left:0,right:0,top:0,bottom:0},s),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+s.left+s.right:this.height+s.top+s.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=no(this,o,n),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let l=a=o||s<=1||!this.isHorizontal()){this.labelRotation=n;return}let h=this._getLabelSizes(),f=h.widest.width,d=h.highest.height,u=U(this.chart.width-f,0,this.maxWidth);a=i.offset?this.maxWidth/s:u/(s-1),f+6>a&&(a=u/(s-(i.offset?.5:1)),l=this.maxHeight-Fe(i.grid)-t.padding-Fo(i.title,this.chart.options.font),c=Math.sqrt(f*f+d*d),r=di(Math.min(Math.asin(U((h.highest.height+6)/a,-1,1)),Math.asin(U(l/c,-1,1))-Math.asin(U(d/c,-1,1)))),r=Math.max(n,Math.min(o,r))),this.labelRotation=r}afterCalculateLabelRotation(){I(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){I(this.options.beforeFit,[this])}fit(){let i={width:0,height:0},{chart:t,options:{ticks:s,title:n,grid:o}}=this,r=this._isVisible(),a=this.isHorizontal();if(r){let l=Fo(n,t.options.font);if(a?(i.width=this.maxWidth,i.height=Fe(o)+l):(i.height=this.maxHeight,i.width=Fe(o)+l),s.display&&this.ticks.length){let{first:c,last:h,widest:f,highest:d}=this._getLabelSizes(),u=s.padding*2,p=nt(this.labelRotation),g=Math.cos(p),m=Math.sin(p);if(a){let b=s.mirror?0:m*f.width+g*d.height;i.height=Math.min(this.maxHeight,i.height+b+u)}else{let b=s.mirror?0:g*f.width+m*d.height;i.width=Math.min(this.maxWidth,i.width+b+u)}this._calculatePadding(c,h,m,g)}}this._handleMargins(),a?(this.width=this._length=t.width-this._margins.left-this._margins.right,this.height=i.height):(this.width=i.width,this.height=this._length=t.height-this._margins.top-this._margins.bottom)}_calculatePadding(i,t,s,n){let{ticks:{align:o,padding:r},position:a}=this.options,l=this.labelRotation!==0,c=a!=="top"&&this.axis==="x";if(this.isHorizontal()){let h=this.getPixelForTick(0)-this.left,f=this.right-this.getPixelForTick(this.ticks.length-1),d=0,u=0;l?c?(d=n*i.width,u=s*t.height):(d=s*i.height,u=n*t.width):o==="start"?u=t.width:o==="end"?d=i.width:o!=="inner"&&(d=i.width/2,u=t.width/2),this.paddingLeft=Math.max((d-h+r)*this.width/(this.width-h),0),this.paddingRight=Math.max((u-f+r)*this.width/(this.width-f),0)}else{let h=t.height/2,f=i.height/2;o==="start"?(h=0,f=i.height):o==="end"&&(h=t.height,f=0),this.paddingTop=h+r,this.paddingBottom=f+r}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){I(this.options.afterFit,[this])}isHorizontal(){let{axis:i,position:t}=this.options;return t==="top"||t==="bottom"||i==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(i){this.beforeTickToLabelConversion(),this.generateTickLabels(i);let t,s;for(t=0,s=i.length;t({width:r[k]||0,height:a[k]||0});return{first:w(0),last:w(t-1),widest:w(v),highest:w(S),widths:r,heights:a}}getLabelForValue(i){return i}getPixelForValue(i,t){return NaN}getValueForPixel(i){}getPixelForTick(i){let t=this.ticks;return i<0||i>t.length-1?null:this.getPixelForValue(t[i].value)}getPixelForDecimal(i){this._reversePixels&&(i=1-i);let t=this._startPixel+i*this._length;return Xn(this._alignToPixels?Ot(this.chart,t,0):t)}getDecimalForPixel(i){let t=(i-this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){let{min:i,max:t}=this;return i<0&&t<0?t:i>0&&t>0?i:0}getContext(i){let t=this.ticks||[];if(i>=0&&ia*n?a/s:l/n:l*n0}_computeGridLineItems(i){let t=this.axis,s=this.chart,n=this.options,{grid:o,position:r,border:a}=n,l=o.offset,c=this.isHorizontal(),f=this.ticks.length+(l?1:0),d=Fe(o),u=[],p=a.setContext(this.getContext()),g=p.display?p.width:0,m=g/2,b=function(N){return Ot(s,N,g)},x,y,M,_,v,S,w,k,O,P,D,Y;if(r==="top")x=b(this.bottom),S=this.bottom-d,k=x-m,P=b(i.top)+m,Y=i.bottom;else if(r==="bottom")x=b(this.top),P=i.top,Y=b(i.bottom)-m,S=x+m,k=this.top+d;else if(r==="left")x=b(this.right),v=this.right-d,w=x-m,O=b(i.left)+m,D=i.right;else if(r==="right")x=b(this.left),O=i.left,D=b(i.right)-m,v=x+m,w=this.left+d;else if(t==="x"){if(r==="center")x=b((i.top+i.bottom)/2+.5);else if(A(r)){let N=Object.keys(r)[0],H=r[N];x=b(this.chart.scales[N].getPixelForValue(H))}P=i.top,Y=i.bottom,S=x+m,k=S+d}else if(t==="y"){if(r==="center")x=b((i.left+i.right)/2);else if(A(r)){let N=Object.keys(r)[0],H=r[N];x=b(this.chart.scales[N].getPixelForValue(H))}v=x-m,w=v-d,O=i.left,D=i.right}let it=C(n.ticks.maxTicksLimit,f),R=Math.max(1,Math.ceil(f/it));for(y=0;y0&&(Nt-=jt/2);break}Ge={left:Nt,top:Me,width:jt+Gt.width,height:ve+Gt.height,color:R.backdropColor}}m.push({label:M,font:k,textOffset:D,options:{rotation:g,color:H,strokeColor:rt,strokeWidth:q,textAlign:qt,textBaseline:Y,translation:[_,v],backdrop:Ge}})}return m}_getXAxisLabelAlignment(){let{position:i,ticks:t}=this.options;if(-nt(this.labelRotation))return i==="top"?"left":"right";let n="center";return t.align==="start"?n="left":t.align==="end"?n="right":t.align==="inner"&&(n="inner"),n}_getYAxisLabelAlignment(i){let{position:t,ticks:{crossAlign:s,mirror:n,padding:o}}=this.options,r=this._getLabelSizes(),a=i+o,l=r.widest.width,c,h;return t==="left"?n?(h=this.right+o,s==="near"?c="left":s==="center"?(c="center",h+=l/2):(c="right",h+=l)):(h=this.right-a,s==="near"?c="right":s==="center"?(c="center",h-=l/2):(c="left",h=this.left)):t==="right"?n?(h=this.left+o,s==="near"?c="right":s==="center"?(c="center",h-=l/2):(c="left",h-=l)):(h=this.left+a,s==="near"?c="left":s==="center"?(c="center",h+=l/2):(c="right",h=this.right)):c="right",{textAlign:c,x:h}}_computeLabelArea(){if(this.options.ticks.mirror)return;let i=this.chart,t=this.options.position;if(t==="left"||t==="right")return{top:0,left:this.left,bottom:i.height,right:this.right};if(t==="top"||t==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:i.width}}drawBackground(){let{ctx:i,options:{backgroundColor:t},left:s,top:n,width:o,height:r}=this;t&&(i.save(),i.fillStyle=t,i.fillRect(s,n,o,r),i.restore())}getLineWidthForValue(i){let t=this.options.grid;if(!this._isVisible()||!t.display)return 0;let n=this.ticks.findIndex(o=>o.value===i);return n>=0?t.setContext(this.getContext(n)).lineWidth:0}drawGrid(i){let t=this.options.grid,s=this.ctx,n=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(i)),o,r,a=(l,c,h)=>{!h.width||!h.color||(s.save(),s.lineWidth=h.width,s.strokeStyle=h.color,s.setLineDash(h.borderDash||[]),s.lineDashOffset=h.borderDashOffset,s.beginPath(),s.moveTo(l.x,l.y),s.lineTo(c.x,c.y),s.stroke(),s.restore())};if(t.display)for(o=0,r=n.length;o{this.draw(o)}}]:[{z:s,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:n,draw:()=>{this.drawBorder()}},{z:t,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(i){let t=this.chart.getSortedVisibleDatasetMetas(),s=this.axis+"AxisID",n=[],o,r;for(o=0,r=t.length;o{let s=t.split("."),n=s.pop(),o=[e].concat(s).join("."),r=i[t].split("."),a=r.pop(),l=r.join(".");B.route(o,n,l,a)})}function Uh(e){return"id"in e&&"defaults"in e}var Ks=class{constructor(){this.controllers=new ce(Rt,"datasets",!0),this.elements=new ce(lt,"elements"),this.plugins=new ce(Object,"plugins"),this.scales=new ce(Kt,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...i){this._each("register",i)}remove(...i){this._each("unregister",i)}addControllers(...i){this._each("register",i,this.controllers)}addElements(...i){this._each("register",i,this.elements)}addPlugins(...i){this._each("register",i,this.plugins)}addScales(...i){this._each("register",i,this.scales)}getController(i){return this._get(i,this.controllers,"controller")}getElement(i){return this._get(i,this.elements,"element")}getPlugin(i){return this._get(i,this.plugins,"plugin")}getScale(i){return this._get(i,this.scales,"scale")}removeControllers(...i){this._each("unregister",i,this.controllers)}removeElements(...i){this._each("unregister",i,this.elements)}removePlugins(...i){this._each("unregister",i,this.plugins)}removeScales(...i){this._each("unregister",i,this.scales)}_each(i,t,s){[...t].forEach(n=>{let o=s||this._getRegistryForType(n);s||o.isForType(n)||o===this.plugins&&n.id?this._exec(i,o,n):L(n,r=>{let a=s||this._getRegistryForType(r);this._exec(i,a,r)})})}_exec(i,t,s){let n=fi(i);I(s["before"+n],[],s),t[i](s),I(s["after"+n],[],s)}_getRegistryForType(i){for(let t=0;to.filter(a=>!r.some(l=>a.plugin.id===l.plugin.id));this._notify(n(t,s),i,"stop"),this._notify(n(s,t),i,"start")}};function Yh(e){let i={},t=[],s=Object.keys(pt.plugins.items);for(let o=0;o1&&zo(e[0].toLowerCase());if(s)return s}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function Bo(e,i,t){if(t[i+"AxisID"]===e)return{axis:i}}function Qh(e,i){if(i.data&&i.data.datasets){let t=i.data.datasets.filter(s=>s.xAxisID===e||s.yAxisID===e);if(t.length)return Bo(e,"x",t[0])||Bo(e,"y",t[0])}return{}}function tf(e,i){let t=Pt[e.type]||{scales:{}},s=i.scales||{},n=Gs(e.type,i),o=Object.create(null);return Object.keys(s).forEach(r=>{let a=s[r];if(!A(a))return console.error(`Invalid scale configuration for scale: ${r}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${r}`);let l=Zs(r,a,Qh(r,e),B.scales[a.type]),c=Zh(l,n),h=t.scales||{};o[r]=ee(Object.create(null),[{axis:l},a,h[l],h[c]])}),e.data.datasets.forEach(r=>{let a=r.type||e.type,l=r.indexAxis||Gs(a,i),h=(Pt[a]||{}).scales||{};Object.keys(h).forEach(f=>{let d=Gh(f,l),u=r[d+"AxisID"]||d;o[u]=o[u]||Object.create(null),ee(o[u],[{axis:d},s[u],h[f]])})}),Object.keys(o).forEach(r=>{let a=o[r];ee(a,[B.scales[a.type],B.scale])}),o}function kr(e){let i=e.options||(e.options={});i.plugins=C(i.plugins,{}),i.scales=tf(e,i)}function Cr(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function ef(e){return e=e||{},e.data=Cr(e.data),kr(e),e}var jo=new Map,Pr=new Set;function Si(e,i){let t=jo.get(e);return t||(t=i(),jo.set(e,t),Pr.add(t)),t}var ze=(e,i,t)=>{let s=_t(i,t);s!==void 0&&e.add(s)},Js=class{constructor(i){this._config=ef(i),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(i){this._config.type=i}get data(){return this._config.data}set data(i){this._config.data=Cr(i)}get options(){return this._config.options}set options(i){this._config.options=i}get plugins(){return this._config.plugins}update(){let i=this._config;this.clearCache(),kr(i)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(i){return Si(i,()=>[[`datasets.${i}`,""]])}datasetAnimationScopeKeys(i,t){return Si(`${i}.transition.${t}`,()=>[[`datasets.${i}.transitions.${t}`,`transitions.${t}`],[`datasets.${i}`,""]])}datasetElementScopeKeys(i,t){return Si(`${i}-${t}`,()=>[[`datasets.${i}.elements.${t}`,`datasets.${i}`,`elements.${t}`,""]])}pluginScopeKeys(i){let t=i.id,s=this.type;return Si(`${s}-plugin-${t}`,()=>[[`plugins.${t}`,...i.additionalOptionScopes||[]]])}_cachedScopes(i,t){let s=this._scopeCache,n=s.get(i);return(!n||t)&&(n=new Map,s.set(i,n)),n}getOptionScopes(i,t,s){let{options:n,type:o}=this,r=this._cachedScopes(i,s),a=r.get(t);if(a)return a;let l=new Set;t.forEach(h=>{i&&(l.add(i),h.forEach(f=>ze(l,i,f))),h.forEach(f=>ze(l,n,f)),h.forEach(f=>ze(l,Pt[o]||{},f)),h.forEach(f=>ze(l,B,f)),h.forEach(f=>ze(l,gi,f))});let c=Array.from(l);return c.length===0&&c.push(Object.create(null)),Pr.has(t)&&r.set(t,c),c}chartOptionScopes(){let{options:i,type:t}=this;return[i,Pt[t]||{},B.datasets[t]||{},{type:t},B,gi]}resolveNamedOptions(i,t,s,n=[""]){let o={$shared:!0},{resolver:r,subPrefixes:a}=No(this._resolverCache,i,n),l=r;if(nf(r,t)){o.$shared=!1,s=xt(s)?s():s;let c=this.createResolver(i,s,a);l=Ht(r,s,c)}for(let c of t)o[c]=l[c];return o}createResolver(i,t,s=[""],n){let{resolver:o}=No(this._resolverCache,i,s);return A(t)?Ht(o,t,void 0,n):o}};function No(e,i,t){let s=e.get(i);s||(s=new Map,e.set(i,s));let n=t.join(),o=s.get(n);return o||(o={resolver:bi(i,t),subPrefixes:t.filter(a=>!a.toLowerCase().includes("hover"))},s.set(n,o)),o}var sf=e=>A(e)&&Object.getOwnPropertyNames(e).some(i=>xt(e[i]));function nf(e,i){let{isScriptable:t,isIndexable:s}=Ss(e);for(let n of i){let o=t(n),r=s(n),a=(r||o)&&e[n];if(o&&(xt(a)||sf(a))||r&&E(a))return!0}return!1}var of="4.4.4",rf=["top","bottom","left","right","chartArea"];function Wo(e,i){return e==="top"||e==="bottom"||rf.indexOf(e)===-1&&i==="x"}function Vo(e,i){return function(t,s){return t[e]===s[e]?t[i]-s[i]:t[e]-s[e]}}function Ho(e){let i=e.chart,t=i.options.animation;i.notifyPlugins("afterRender"),I(t&&t.onComplete,[e],i)}function af(e){let i=e.chart,t=i.options.animation;I(t&&t.onProgress,[e],i)}function Or(e){return _i()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}var Di={},$o=e=>{let i=Or(e);return Object.values(Di).filter(t=>t.canvas===i).pop()};function lf(e,i,t){let s=Object.keys(e);for(let n of s){let o=+n;if(o>=i){let r=e[n];delete e[n],(t>0||o>i)&&(e[o+t]=r)}}}function cf(e,i,t,s){return!t||e.type==="mouseout"?null:s?i:e}function ki(e,i,t){return e.options.clip?e[t]:i[t]}function hf(e,i){let{xScale:t,yScale:s}=e;return t&&s?{left:ki(t,i,"left"),right:ki(t,i,"right"),top:ki(s,i,"top"),bottom:ki(s,i,"bottom")}:i}var zi=(()=>{class e{static defaults=B;static instances=Di;static overrides=Pt;static registry=pt;static version=of;static getChart=$o;static register(...t){pt.add(...t),Uo()}static unregister(...t){pt.remove(...t),Uo()}constructor(t,s){let n=this.config=new Js(s),o=Or(t),r=$o(o);if(r)throw new Error("Canvas is already in use. Chart with ID '"+r.id+"' must be destroyed before the canvas with ID '"+r.canvas.id+"' can be reused.");let a=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||Ah(o)),this.platform.updateConfig(n);let l=this.platform.acquireContext(o,a.aspectRatio),c=l&&l.canvas,h=c&&c.height,f=c&&c.width;if(this.id=Wn(),this.ctx=l,this.canvas=c,this.width=f,this.height=h,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new qs,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=Jn(d=>this.update(d),a.resizeDelay||0),this._dataChanges=[],Di[this.id]=this,!l||!c){console.error("Failed to create chart: can't acquire context from the given item");return}vt.listen(this,"complete",Ho),vt.listen(this,"progress",af),this._initialize(),this.attached&&this.update()}get aspectRatio(){let{options:{aspectRatio:t,maintainAspectRatio:s},width:n,height:o,_aspectRatio:r}=this;return T(t)?s&&r?r:o?n/o:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return pt}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Os(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return vs(this.canvas,this.ctx),this}stop(){return vt.stop(this),this}resize(t,s){vt.running(this)?this._resizeBeforeDraw={width:t,height:s}:this._resize(t,s)}_resize(t,s){let n=this.options,o=this.canvas,r=n.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(o,t,s,r),l=n.devicePixelRatio||this.platform.getDevicePixelRatio(),c=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,Os(this,l,!0)&&(this.notifyPlugins("resize",{size:a}),I(n.onResize,[this,a],this),this.attached&&this._doResize(c)&&this.render())}ensureScalesHaveIDs(){let s=this.options.scales||{};L(s,(n,o)=>{n.id=o})}buildOrUpdateScales(){let t=this.options,s=t.scales,n=this.scales,o=Object.keys(n).reduce((a,l)=>(a[l]=!1,a),{}),r=[];s&&(r=r.concat(Object.keys(s).map(a=>{let l=s[a],c=Zs(a,l),h=c==="r",f=c==="x";return{options:l,dposition:h?"chartArea":f?"bottom":"left",dtype:h?"radialLinear":f?"category":"linear"}}))),L(r,a=>{let l=a.options,c=l.id,h=Zs(c,l),f=C(l.type,a.dtype);(l.position===void 0||Wo(l.position,h)!==Wo(a.dposition))&&(l.position=a.dposition),o[c]=!0;let d=null;if(c in n&&n[c].type===f)d=n[c];else{let u=pt.getScale(f);d=new u({id:c,type:f,ctx:this.ctx,chart:this}),n[d.id]=d}d.init(l,t)}),L(o,(a,l)=>{a||delete n[l]}),L(n,a=>{G.configure(this,a,a.options),G.addBox(this,a)})}_updateMetasets(){let t=this._metasets,s=this.data.datasets.length,n=t.length;if(t.sort((o,r)=>o.index-r.index),n>s){for(let o=s;os.length&&delete this._stacks,t.forEach((n,o)=>{s.filter(r=>r===n._dataset).length===0&&this._destroyDatasetMeta(o)})}buildOrUpdateControllers(){let t=[],s=this.data.datasets,n,o;for(this._removeUnreferencedMetasets(),n=0,o=s.length;n{this.getDatasetMeta(s).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){let s=this.config;s.update();let n=this._options=s.createResolver(s.chartOptionScopes(),this.getContext()),o=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;let r=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let h=0,f=this.data.datasets.length;h{h.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Vo("z","_idx"));let{_active:l,_lastEvent:c}=this;c?this._eventHandler(c,!0):l.length&&this._updateHoverStyles(l,l,!0),this.render()}_updateScales(){L(this.scales,t=>{G.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){let t=this.options,s=new Set(Object.keys(this._listeners)),n=new Set(t.events);(!ls(s,n)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){let{_hiddenIndices:t}=this,s=this._getUniformDataChanges()||[];for(let{method:n,start:o,count:r}of s){let a=n==="_removeElements"?-r:r;lf(t,o,a)}}_getUniformDataChanges(){let t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];let s=this.data.datasets.length,n=r=>new Set(t.filter(a=>a[0]===r).map((a,l)=>l+","+a.splice(1).join(","))),o=n(0);for(let r=1;rr.split(",")).map(r=>({method:r[1],start:+r[2],count:+r[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;G.update(this,this.width,this.height,t);let s=this.chartArea,n=s.width<=0||s.height<=0;this._layers=[],L(this.boxes,o=>{n&&o.position==="chartArea"||(o.configure&&o.configure(),this._layers.push(...o._layers()))},this),this._layers.forEach((o,r)=>{o._idx=r}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let s=0,n=this.data.datasets.length;s=0;--s)this._drawDataset(t[s]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){let s=this.ctx,n=t._clip,o=!n.disabled,r=hf(t,this.chartArea),a={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",a)!==!1&&(o&&Te(s,{left:n.left===!1?0:r.left-n.left,right:n.right===!1?this.width:r.right+n.right,top:n.top===!1?0:r.top-n.top,bottom:n.bottom===!1?this.height:r.bottom+n.bottom}),t.controller.draw(),o&&Le(s),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}isPointInArea(t){return ht(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,s,n,o){let r=hh.modes[s];return typeof r=="function"?r(this,t,n,o):[]}getDatasetMeta(t){let s=this.data.datasets[t],n=this._metasets,o=n.filter(r=>r&&r._dataset===s).pop();return o||(o={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:s&&s.order||0,index:t,_dataset:s,_parsed:[],_sorted:!1},n.push(o)),o}getContext(){return this.$context||(this.$context=yt(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){let s=this.data.datasets[t];if(!s)return!1;let n=this.getDatasetMeta(t);return typeof n.hidden=="boolean"?!n.hidden:!s.hidden}setDatasetVisibility(t,s){let n=this.getDatasetMeta(t);n.hidden=!s}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,s,n){let o=n?"show":"hide",r=this.getDatasetMeta(t),a=r.controller._resolveAnimations(void 0,o);ie(s)?(r.data[s].hidden=!n,this.update()):(this.setDatasetVisibility(t,n),a.update(r,{visible:n}),this.update(l=>l.datasetIndex===t?o:void 0))}hide(t,s){this._updateVisibility(t,s,!1)}show(t,s){this._updateVisibility(t,s,!0)}_destroyDatasetMeta(t){let s=this._metasets[t];s&&s.controller&&s.controller._destroy(),delete this._metasets[t]}_stop(){let t,s;for(this.stop(),vt.remove(this),t=0,s=this.data.datasets.length;t{s.addEventListener(this,r,a),t[r]=a},o=(r,a,l)=>{r.offsetX=a,r.offsetY=l,this._eventHandler(r)};L(this.options.events,r=>n(r,o))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});let t=this._responsiveListeners,s=this.platform,n=(c,h)=>{s.addEventListener(this,c,h),t[c]=h},o=(c,h)=>{t[c]&&(s.removeEventListener(this,c,h),delete t[c])},r=(c,h)=>{this.canvas&&this.resize(c,h)},a,l=()=>{o("attach",l),this.attached=!0,this.resize(),n("resize",r),n("detach",a)};a=()=>{this.attached=!1,o("resize",r),this._stop(),this._resize(0,0),n("attach",l)},s.isAttached(this.canvas)?l():a()}unbindEvents(){L(this._listeners,(t,s)=>{this.platform.removeEventListener(this,s,t)}),this._listeners={},L(this._responsiveListeners,(t,s)=>{this.platform.removeEventListener(this,s,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,s,n){let o=n?"set":"remove",r,a,l,c;for(s==="dataset"&&(r=this.getDatasetMeta(t[0].datasetIndex),r.controller["_"+o+"DatasetHoverStyle"]()),l=0,c=t.length;l{let l=this.getDatasetMeta(r);if(!l)throw new Error("No dataset found at index "+r);return{datasetIndex:r,element:l.data[a],index:a}});!Ae(n,s)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,s))}notifyPlugins(t,s,n){return this._plugins.notify(this,t,s,n)}isPluginEnabled(t){return this._plugins._cache.filter(s=>s.plugin.id===t).length===1}_updateHoverStyles(t,s,n){let o=this.options.hover,r=(c,h)=>c.filter(f=>!h.some(d=>f.datasetIndex===d.datasetIndex&&f.index===d.index)),a=r(s,t),l=n?t:r(t,s);a.length&&this.updateHoverStyle(a,o.mode,!1),l.length&&o.mode&&this.updateHoverStyle(l,o.mode,!0)}_eventHandler(t,s){let n={event:t,replay:s,cancelable:!0,inChartArea:this.isPointInArea(t)},o=a=>(a.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",n,o)===!1)return;let r=this._handleEvent(t,s,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,o),(r||n.changed)&&this.render(),this}_handleEvent(t,s,n){let{_active:o=[],options:r}=this,a=s,l=this._getActiveElements(t,o,n,a),c=$n(t),h=cf(t,this._lastEvent,n,c);n&&(this._lastEvent=null,I(r.onHover,[t,l,this],this),c&&I(r.onClick,[t,l,this],this));let f=!Ae(l,o);return(f||s)&&(this._active=l,this._updateHoverStyles(l,o,s)),this._lastEvent=h,f}_getActiveElements(t,s,n,o){if(t.type==="mouseout")return[];if(!n)return s;let r=this.options.hover;return this.getElementsAtEventForMode(t,r.mode,r,o)}}return e})();function Uo(){return L(zi.instances,e=>e._plugins.invalidate())}function ff(e,i,t){let{startAngle:s,pixelMargin:n,x:o,y:r,outerRadius:a,innerRadius:l}=i,c=n/a;e.beginPath(),e.arc(o,r,a,s-c,t+c),l>n?(c=n/l,e.arc(o,r,l,t+c,s-c,!0)):e.arc(o,r,n,t+V,s-V),e.closePath(),e.clip()}function df(e){return xi(e,["outerStart","outerEnd","innerStart","innerEnd"])}function uf(e,i,t,s){let n=df(e.options.borderRadius),o=(t-i)/2,r=Math.min(o,s*i/2),a=l=>{let c=(t-Math.min(o,l))*s/2;return U(l,0,Math.min(o,c))};return{outerStart:a(n.outerStart),outerEnd:a(n.outerEnd),innerStart:U(n.innerStart,0,r),innerEnd:U(n.innerEnd,0,r)}}function le(e,i,t,s){return{x:t+e*Math.cos(i),y:s+e*Math.sin(i)}}function Ii(e,i,t,s,n,o){let{x:r,y:a,startAngle:l,pixelMargin:c,innerRadius:h}=i,f=Math.max(i.outerRadius+s+t-c,0),d=h>0?h+s+t+c:0,u=0,p=n-l;if(s){let R=h>0?h-s:0,N=f>0?f-s:0,H=(R+N)/2,rt=H!==0?p*H/(H+s):p;u=(p-rt)/2}let g=Math.max(.001,p*f-t/F)/f,m=(p-g)/2,b=l+m+u,x=n-m-u,{outerStart:y,outerEnd:M,innerStart:_,innerEnd:v}=uf(i,d,f,x-b),S=f-y,w=f-M,k=b+y/S,O=x-M/w,P=d+_,D=d+v,Y=b+_/P,it=x-v/D;if(e.beginPath(),o){let R=(k+O)/2;if(e.arc(r,a,f,k,R),e.arc(r,a,f,R,O),M>0){let q=le(w,O,r,a);e.arc(q.x,q.y,M,O,x+V)}let N=le(D,x,r,a);if(e.lineTo(N.x,N.y),v>0){let q=le(D,it,r,a);e.arc(q.x,q.y,v,x+V,it+Math.PI)}let H=(x-v/d+(b+_/d))/2;if(e.arc(r,a,d,x-v/d,H,!0),e.arc(r,a,d,H,b+_/d,!0),_>0){let q=le(P,Y,r,a);e.arc(q.x,q.y,_,Y+Math.PI,b-V)}let rt=le(S,b,r,a);if(e.lineTo(rt.x,rt.y),y>0){let q=le(S,k,r,a);e.arc(q.x,q.y,y,b-V,k)}}else{e.moveTo(r,a);let R=Math.cos(k)*f+r,N=Math.sin(k)*f+a;e.lineTo(R,N);let H=Math.cos(O)*f+r,rt=Math.sin(O)*f+a;e.lineTo(H,rt)}e.closePath()}function pf(e,i,t,s,n){let{fullCircles:o,startAngle:r,circumference:a}=i,l=i.endAngle;if(o){Ii(e,i,t,s,l,n);for(let c=0;ci!=="borderDash"};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(i){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,i&&Object.assign(this,i)}inRange(i,t,s){let n=this.getProps(["x","y"],s),{angle:o,distance:r}=ds(n,{x:i,y:t}),{startAngle:a,endAngle:l,innerRadius:c,outerRadius:h,circumference:f}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],s),d=(this.options.spacing+this.options.borderWidth)/2,u=C(f,l-a),p=ne(o,a,l)&&a!==l,g=u>=z||p,m=dt(r,c+d,h+d);return g&&m}getCenterPoint(i){let{x:t,y:s,startAngle:n,endAngle:o,innerRadius:r,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],i),{offset:l,spacing:c}=this.options,h=(n+o)/2,f=(r+a+c+l)/2;return{x:t+Math.cos(h)*f,y:s+Math.sin(h)*f}}tooltipPosition(i){return this.getCenterPoint(i)}draw(i){let{options:t,circumference:s}=this,n=(t.offset||0)/4,o=(t.spacing||0)/2,r=t.circular;if(this.pixelMargin=t.borderAlign==="inner"?.33:0,this.fullCircles=s>z?Math.floor(s/z):0,s===0||this.innerRadius<0||this.outerRadius<0)return;i.save();let a=(this.startAngle+this.endAngle)/2;i.translate(Math.cos(a)*n,Math.sin(a)*n);let l=1-Math.sin(Math.min(F,s||0)),c=n*l;i.fillStyle=t.backgroundColor,i.strokeStyle=t.borderColor,pf(i,this,c,o,r),gf(i,this,c,o,r),i.restore()}};function Ar(e,i,t=i){e.lineCap=C(t.borderCapStyle,i.borderCapStyle),e.setLineDash(C(t.borderDash,i.borderDash)),e.lineDashOffset=C(t.borderDashOffset,i.borderDashOffset),e.lineJoin=C(t.borderJoinStyle,i.borderJoinStyle),e.lineWidth=C(t.borderWidth,i.borderWidth),e.strokeStyle=C(t.borderColor,i.borderColor)}function mf(e,i,t){e.lineTo(t.x,t.y)}function xf(e){return e.stepped?io:e.tension||e.cubicInterpolationMode==="monotone"?so:mf}function Dr(e,i,t={}){let s=e.length,{start:n=0,end:o=s-1}=t,{start:r,end:a}=i,l=Math.max(n,r),c=Math.min(o,a),h=na&&o>a;return{count:s,start:l,loop:i.loop,ilen:c(r+(c?a-M:M))%o,y=()=>{g!==m&&(e.lineTo(h,m),e.lineTo(h,g),e.lineTo(h,b))};for(l&&(u=n[x(0)],e.moveTo(u.x,u.y)),d=0;d<=a;++d){if(u=n[x(d)],u.skip)continue;let M=u.x,_=u.y,v=M|0;v===p?(_m&&(m=_),h=(f*h+M)/++f):(y(),e.lineTo(M,_),p=v,f=0,g=m=_),b=_}y()}function tn(e){let i=e.options,t=i.borderDash&&i.borderDash.length;return!e._decimated&&!e._loop&&!i.tension&&i.cubicInterpolationMode!=="monotone"&&!i.stepped&&!t?_f:bf}function yf(e){return e.stepped?uo:e.tension||e.cubicInterpolationMode==="monotone"?po:Ct}function vf(e,i,t,s){let n=i._path;n||(n=i._path=new Path2D,i.path(n,t,s)&&n.closePath()),Ar(e,i.options),e.stroke(n)}function Mf(e,i,t,s){let{segments:n,options:o}=i,r=tn(i);for(let a of n)Ar(e,o,a.style),e.beginPath(),r(e,i,a,{start:t,end:t+s-1})&&e.closePath(),e.stroke()}var wf=typeof Path2D=="function";function Sf(e,i,t,s){wf&&!i.options.segment?vf(e,i,t,s):Mf(e,i,t,s)}var Bi=(()=>{class e extends lt{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"};constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,s){let n=this.options;if((n.tension||n.cubicInterpolationMode==="monotone")&&!n.stepped&&!this._pointsUpdated){let o=n.spanGaps?this._loop:this._fullLoop;co(this._points,n,t,o,s),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=mo(this,this.options.segment))}first(){let t=this.segments,s=this.points;return t.length&&s[t[0].start]}last(){let t=this.segments,s=this.points,n=t.length;return n&&s[t[n-1].end]}interpolate(t,s){let n=this.options,o=t[s],r=this.points,a=Rs(this,{property:s,start:o,end:o});if(!a.length)return;let l=[],c=yf(n),h,f;for(h=0,f=a.length;h{class e extends lt{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,s,n){let o=this.options,{x:r,y:a}=this.getProps(["x","y"],n);return Math.pow(t-r,2)+Math.pow(s-a,2)e.replace("rgb(","rgba(").replace(")",", 0.5)"));function Lr(e){return sn[e%sn.length]}function Rr(e){return Xo[e%Xo.length]}function Lf(e,i){return e.borderColor=Lr(i),e.backgroundColor=Rr(i),++i}function Rf(e,i){return e.backgroundColor=e.data.map(()=>Lr(i++)),i}function If(e,i){return e.backgroundColor=e.data.map(()=>Rr(i++)),i}function Ef(e){let i=0;return(t,s)=>{let n=e.getDatasetMeta(s).controller;n instanceof fn?i=Rf(t,i):n instanceof yr?i=If(t,i):n&&(i=Lf(t,i))}}function Ko(e){let i;for(i in e)if(e[i].borderColor||e[i].backgroundColor)return!0;return!1}function Ff(e){return e&&(e.borderColor||e.backgroundColor)}var zf={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(e,i,t){if(!t.enabled)return;let{data:{datasets:s},options:n}=e.config,{elements:o}=n;if(!t.forceOverride&&(Ko(s)||Ff(n)||o&&Ko(o)))return;let r=Ef(e);s.forEach(r)}};function Bf(e,i,t,s,n){let o=n.samples||s;if(o>=t)return e.slice(i,i+t);let r=[],a=(t-2)/(o-2),l=0,c=i+t-1,h=i,f,d,u,p,g;for(r[l++]=e[h],f=0;fu&&(u=p,d=e[x],g=x);r[l++]=d,h=g}return r[l++]=e[c],r}function jf(e,i,t,s){let n=0,o=0,r,a,l,c,h,f,d,u,p,g,m=[],b=i+t-1,x=e[i].x,M=e[b].x-x;for(r=i;rg&&(g=c,d=r),n=(o*n+a.x)/++o;else{let v=r-1;if(!T(f)&&!T(d)){let S=Math.min(f,d),w=Math.max(f,d);S!==u&&S!==v&&m.push(Je(Ze({},e[S]),{x:n})),w!==u&&w!==v&&m.push(Je(Ze({},e[w]),{x:n}))}r>0&&v!==u&&m.push(e[v]),m.push(a),h=_,o=0,p=g=c,f=d=u=r}}return m}function Ir(e){if(e._decimated){let i=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,writable:!0,value:i})}}function qo(e){e.data.datasets.forEach(i=>{Ir(i)})}function Nf(e,i){let t=i.length,s=0,n,{iScale:o}=e,{min:r,max:a,minDefined:l,maxDefined:c}=o.getUserBounds();return l&&(s=U(ct(i,o.axis,r).lo,0,t-1)),c?n=U(ct(i,o.axis,a).hi+1,s,t)-s:n=t-s,{start:s,count:n}}var Wf={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,i,t)=>{if(!t.enabled){qo(e);return}let s=e.width;e.data.datasets.forEach((n,o)=>{let{_data:r,indexAxis:a}=n,l=e.getDatasetMeta(o),c=r||n.data;if(ae([a,e.options.indexAxis])==="y"||!l.controller.supportsDecimation)return;let h=e.scales[l.xAxisID];if(h.type!=="linear"&&h.type!=="time"||e.options.parsing)return;let{start:f,count:d}=Nf(l,c),u=t.threshold||4*s;if(d<=u){Ir(n);return}T(r)&&(n._data=c,delete n.data,Object.defineProperty(n,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(g){this._data=g}}));let p;switch(t.algorithm){case"lttb":p=Bf(c,f,d,s,t);break;case"min-max":p=jf(c,f,d,s);break;default:throw new Error(`Unsupported decimation algorithm '${t.algorithm}'`)}n._decimated=p})},destroy(e){qo(e)}};function Vf(e,i,t){let s=e.segments,n=e.points,o=i.points,r=[];for(let a of s){let{start:l,end:c}=a;c=dn(l,c,n);let h=nn(t,n[l],n[c],a.loop);if(!i.segments){r.push({source:a,target:h,start:n[l],end:n[c]});continue}let f=Rs(i,h);for(let d of f){let u=nn(t,o[d.start],o[d.end],d.loop),p=Ls(a,n,u);for(let g of p)r.push({source:g,target:d,start:{[t]:Go(h,u,"start",Math.max)},end:{[t]:Go(h,u,"end",Math.min)}})}}return r}function nn(e,i,t,s){if(s)return;let n=i[e],o=t[e];return e==="angle"&&(n=Z(n),o=Z(o)),{property:e,start:n,end:o}}function Hf(e,i){let{x:t=null,y:s=null}=e||{},n=i.points,o=[];return i.segments.forEach(({start:r,end:a})=>{a=dn(r,a,n);let l=n[r],c=n[a];s!==null?(o.push({x:l.x,y:s}),o.push({x:c.x,y:s})):t!==null&&(o.push({x:t,y:l.y}),o.push({x:t,y:c.y}))}),o}function dn(e,i,t){for(;i>e;i--){let s=t[i];if(!isNaN(s.x)&&!isNaN(s.y))break}return i}function Go(e,i,t,s){return e&&i?s(e[t],i[t]):e?e[t]:i?i[t]:0}function Er(e,i){let t=[],s=!1;return E(e)?(s=!0,t=e):t=Hf(e,i),t.length?new Bi({points:t,options:{tension:0},_loop:s,_fullLoop:s}):null}function Zo(e){return e&&e.fill!==!1}function $f(e,i,t){let n=e[i].fill,o=[i],r;if(!t)return n;for(;n!==!1&&o.indexOf(n)===-1;){if(!W(n))return n;if(r=e[n],!r)return!1;if(r.visible)return n;o.push(n),n=r.fill}return!1}function Uf(e,i,t){let s=qf(e);if(A(s))return isNaN(s.value)?!1:s;let n=parseFloat(s);return W(n)&&Math.floor(n)===n?Yf(s[0],i,n,t):["origin","start","end","stack","shape"].indexOf(s)>=0&&s}function Yf(e,i,t,s){return(e==="-"||e==="+")&&(t=i+t),t===i||t<0||t>=s?!1:t}function Xf(e,i){let t=null;return e==="start"?t=i.bottom:e==="end"?t=i.top:A(e)?t=i.getPixelForValue(e.value):i.getBasePixel&&(t=i.getBasePixel()),t}function Kf(e,i,t){let s;return e==="start"?s=t:e==="end"?s=i.options.reverse?i.min:i.max:A(e)?s=e.value:s=i.getBaseValue(),s}function qf(e){let i=e.options,t=i.fill,s=C(t&&t.target,t);return s===void 0&&(s=!!i.backgroundColor),s===!1||s===null?!1:s===!0?"origin":s}function Gf(e){let{scale:i,index:t,line:s}=e,n=[],o=s.segments,r=s.points,a=Zf(i,t);a.push(Er({x:null,y:i.bottom},s));for(let l=0;l=0;--r){let a=n[r].$filler;a&&(a.line.updateControlPoints(o,a.axis),s&&a.fill&&Vs(e.ctx,a,o))}},beforeDatasetsDraw(e,i,t){if(t.drawTime!=="beforeDatasetsDraw")return;let s=e.getSortedVisibleDatasetMetas();for(let n=s.length-1;n>=0;--n){let o=s[n].$filler;Zo(o)&&Vs(e.ctx,o,e.chartArea)}},beforeDatasetDraw(e,i,t){let s=i.meta.$filler;!Zo(s)||t.drawTime!=="beforeDatasetDraw"||Vs(e.ctx,s,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}},er=(e,i)=>{let{boxHeight:t=i,boxWidth:s=i}=e;return e.usePointStyle&&(t=Math.min(t,i),s=e.pointStyleWidth||Math.min(s,i)),{boxWidth:s,boxHeight:t,itemHeight:Math.max(i,t)}},ld=(e,i)=>e!==null&&i!==null&&e.datasetIndex===i.datasetIndex&&e.index===i.index,Fi=class extends lt{constructor(i){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=i.chart,this.options=i.options,this.ctx=i.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(i,t,s){this.maxWidth=i,this.maxHeight=t,this._margins=s,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){let i=this.options.labels||{},t=I(i.generateLabels,[this.chart],this)||[];i.filter&&(t=t.filter(s=>i.filter(s,this.chart.data))),i.sort&&(t=t.sort((s,n)=>i.sort(s,n,this.chart.data))),this.options.reverse&&t.reverse(),this.legendItems=t}fit(){let{options:i,ctx:t}=this;if(!i.display){this.width=this.height=0;return}let s=i.labels,n=$(s.font),o=n.size,r=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=er(s,o),c,h;t.font=n.string,this.isHorizontal()?(c=this.maxWidth,h=this._fitRows(r,o,a,l)+10):(h=this.maxHeight,c=this._fitCols(r,n,a,l)+10),this.width=Math.min(c,i.maxWidth||this.maxWidth),this.height=Math.min(h,i.maxHeight||this.maxHeight)}_fitRows(i,t,s,n){let{ctx:o,maxWidth:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],h=n+a,f=i;o.textAlign="left",o.textBaseline="middle";let d=-1,u=-h;return this.legendItems.forEach((p,g)=>{let m=s+t/2+o.measureText(p.text).width;(g===0||c[c.length-1]+m+2*a>r)&&(f+=h,c[c.length-(g>0?0:1)]=0,u+=h,d++),l[g]={left:0,top:u,row:d,width:m,height:n},c[c.length-1]+=m+a}),f}_fitCols(i,t,s,n){let{ctx:o,maxHeight:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],h=r-i,f=a,d=0,u=0,p=0,g=0;return this.legendItems.forEach((m,b)=>{let{itemWidth:x,itemHeight:y}=cd(s,t,o,m,n);b>0&&u+y+2*a>h&&(f+=d+a,c.push({width:d,height:u}),p+=d+a,g++,d=u=0),l[b]={left:p,top:u,col:g,width:x,height:y},d=Math.max(d,x),u+=y+a}),f+=d,c.push({width:d,height:u}),f}adjustHitBoxes(){if(!this.options.display)return;let i=this._computeTitleHeight(),{legendHitBoxes:t,options:{align:s,labels:{padding:n},rtl:o}}=this,r=Ut(o,this.left,this.width);if(this.isHorizontal()){let a=0,l=X(s,this.left+n,this.right-this.lineWidths[a]);for(let c of t)a!==c.row&&(a=c.row,l=X(s,this.left+n,this.right-this.lineWidths[a])),c.top+=this.top+i+n,c.left=r.leftForLtr(r.x(l),c.width),l+=c.width+n}else{let a=0,l=X(s,this.top+i+n,this.bottom-this.columnSizes[a].height);for(let c of t)c.col!==a&&(a=c.col,l=X(s,this.top+i+n,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+n,c.left=r.leftForLtr(r.x(c.left),c.width),l+=c.height+n}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){let i=this.ctx;Te(i,this),this._draw(),Le(i)}}_draw(){let{options:i,columnSizes:t,lineWidths:s,ctx:n}=this,{align:o,labels:r}=i,a=B.color,l=Ut(i.rtl,this.left,this.width),c=$(r.font),{padding:h}=r,f=c.size,d=f/2,u;this.drawTitle(),n.textAlign=l.textAlign("left"),n.textBaseline="middle",n.lineWidth=.5,n.font=c.string;let{boxWidth:p,boxHeight:g,itemHeight:m}=er(r,f),b=function(v,S,w){if(isNaN(p)||p<=0||isNaN(g)||g<0)return;n.save();let k=C(w.lineWidth,1);if(n.fillStyle=C(w.fillStyle,a),n.lineCap=C(w.lineCap,"butt"),n.lineDashOffset=C(w.lineDashOffset,0),n.lineJoin=C(w.lineJoin,"miter"),n.lineWidth=k,n.strokeStyle=C(w.strokeStyle,a),n.setLineDash(C(w.lineDash,[])),r.usePointStyle){let O={radius:g*Math.SQRT2/2,pointStyle:w.pointStyle,rotation:w.rotation,borderWidth:k},P=l.xPlus(v,p/2),D=S+d;Ms(n,O,P,D,r.pointStyleWidth&&p)}else{let O=S+Math.max((f-g)/2,0),P=l.leftForLtr(v,p),D=Dt(w.borderRadius);n.beginPath(),Object.values(D).some(Y=>Y!==0)?re(n,{x:P,y:O,w:p,h:g,radius:D}):n.rect(P,O,p,g),n.fill(),k!==0&&n.stroke()}n.restore()},x=function(v,S,w){At(n,w.text,v,S+m/2,c,{strikethrough:w.hidden,textAlign:l.textAlign(w.textAlign)})},y=this.isHorizontal(),M=this._computeTitleHeight();y?u={x:X(o,this.left+h,this.right-s[0]),y:this.top+h+M,line:0}:u={x:this.left+h,y:X(o,this.top+M+h,this.bottom-t[0].height),line:0},Ds(this.ctx,i.textDirection);let _=m+h;this.legendItems.forEach((v,S)=>{n.strokeStyle=v.fontColor,n.fillStyle=v.fontColor;let w=n.measureText(v.text).width,k=l.textAlign(v.textAlign||(v.textAlign=r.textAlign)),O=p+d+w,P=u.x,D=u.y;l.setWidth(this.width),y?S>0&&P+O+h>this.right&&(D=u.y+=_,u.line++,P=u.x=X(o,this.left+h,this.right-s[u.line])):S>0&&D+_>this.bottom&&(P=u.x=P+t[u.line].width+h,u.line++,D=u.y=X(o,this.top+M+h,this.bottom-t[u.line].height));let Y=l.x(P);if(b(Y,D,v),P=Qn(k,P+p+d,y?P+O:this.right,i.rtl),x(l.x(P),D,v),y)u.x+=O+h;else if(typeof v.text!="string"){let it=c.lineHeight;u.y+=Fr(v,it)+h}else u.y+=_}),Ts(this.ctx,i.textDirection)}drawTitle(){let i=this.options,t=i.title,s=$(t.font),n=K(t.padding);if(!t.display)return;let o=Ut(i.rtl,this.left,this.width),r=this.ctx,a=t.position,l=s.size/2,c=n.top+l,h,f=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),h=this.top+c,f=X(i.align,f,this.right-d);else{let p=this.columnSizes.reduce((g,m)=>Math.max(g,m.height),0);h=c+X(i.align,this.top,this.bottom-p-i.labels.padding-this._computeTitleHeight())}let u=X(a,f,f+d);r.textAlign=o.textAlign(pi(a)),r.textBaseline="middle",r.strokeStyle=t.color,r.fillStyle=t.color,r.font=s.string,At(r,t.text,u,h,s)}_computeTitleHeight(){let i=this.options.title,t=$(i.font),s=K(i.padding);return i.display?t.lineHeight+s.height:0}_getLegendItemAt(i,t){let s,n,o;if(dt(i,this.left,this.right)&&dt(t,this.top,this.bottom)){for(o=this.legendHitBoxes,s=0;so.length>r.length?o:r)),i+t.size/2+s.measureText(n).width}function fd(e,i,t){let s=e;return typeof i.text!="string"&&(s=Fr(i,t)),s}function Fr(e,i){let t=e.text?e.text.length:0;return i*t}function dd(e,i){return!!((e==="mousemove"||e==="mouseout")&&(i.onHover||i.onLeave)||i.onClick&&(e==="click"||e==="mouseup"))}var ud={id:"legend",_element:Fi,start(e,i,t){let s=e.legend=new Fi({ctx:e.ctx,options:t,chart:e});G.configure(e,s,t),G.addBox(e,s)},stop(e){G.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,i,t){let s=e.legend;G.configure(e,s,t),s.options=t},afterUpdate(e){let i=e.legend;i.buildLabels(),i.adjustHitBoxes()},afterEvent(e,i){i.replay||e.legend.handleEvent(i.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,i,t){let s=i.datasetIndex,n=t.chart;n.isDatasetVisible(s)?(n.hide(s),i.hidden=!0):(n.show(s),i.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){let i=e.data.datasets,{labels:{usePointStyle:t,pointStyle:s,textAlign:n,color:o,useBorderRadius:r,borderRadius:a}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{let c=l.controller.getStyle(t?0:void 0),h=K(c.borderWidth);return{text:i[l.index].label,fillStyle:c.backgroundColor,fontColor:o,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(h.width+h.height)/4,strokeStyle:c.borderColor,pointStyle:s||c.pointStyle,rotation:c.rotation,textAlign:n||c.textAlign,borderRadius:r&&(a||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}},We=class extends lt{constructor(i){super(),this.chart=i.chart,this.options=i.options,this.ctx=i.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(i,t){let s=this.options;if(this.left=0,this.top=0,!s.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=i,this.height=this.bottom=t;let n=E(s.text)?s.text.length:1;this._padding=K(s.padding);let o=n*$(s.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){let i=this.options.position;return i==="top"||i==="bottom"}_drawArgs(i){let{top:t,left:s,bottom:n,right:o,options:r}=this,a=r.align,l=0,c,h,f;return this.isHorizontal()?(h=X(a,s,o),f=t+i,c=o-s):(r.position==="left"?(h=s+i,f=X(a,n,t),l=F*-.5):(h=o-i,f=X(a,t,n),l=F*.5),c=n-t),{titleX:h,titleY:f,maxWidth:c,rotation:l}}draw(){let i=this.ctx,t=this.options;if(!t.display)return;let s=$(t.font),o=s.lineHeight/2+this._padding.top,{titleX:r,titleY:a,maxWidth:l,rotation:c}=this._drawArgs(o);At(i,t.text,0,0,s,{color:t.color,maxWidth:l,rotation:c,textAlign:pi(t.align),textBaseline:"middle",translation:[r,a]})}};function pd(e,i){let t=new We({ctx:e.ctx,options:i,chart:e});G.configure(e,t,i),G.addBox(e,t),e.titleBlock=t}var gd={id:"title",_element:We,start(e,i,t){pd(e,t)},stop(e){let i=e.titleBlock;G.removeBox(e,i),delete e.titleBlock},beforeUpdate(e,i,t){let s=e.titleBlock;G.configure(e,s,t),s.options=t},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}},Ci=new WeakMap,md={id:"subtitle",start(e,i,t){let s=new We({ctx:e.ctx,options:t,chart:e});G.configure(e,s,t),G.addBox(e,s),Ci.set(e,s)},stop(e){G.removeBox(e,Ci.get(e)),Ci.delete(e)},beforeUpdate(e,i,t){let s=Ci.get(e);G.configure(e,s,t),s.options=t},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}},je={average(e){if(!e.length)return!1;let i,t,s=new Set,n=0,o=0;for(i=0,t=e.length;ia+l)/s.size,y:n/o}},nearest(e,i){if(!e.length)return!1;let t=i.x,s=i.y,n=Number.POSITIVE_INFINITY,o,r,a;for(o=0,r=e.length;oMath.max(Math.min(e,t),i);function Se(e){return St(Ce(e*2.55),0,255)}function kt(e){return St(Ce(e*255),0,255)}function mt(e){return St(Ce(e/2.55)/100,0,1)}function Sn(e){return St(Ce(e*100),0,100)}var st={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},ts=[..."0123456789ABCDEF"],dl=e=>ts[e&15],ul=e=>ts[(e&240)>>4]+ts[e&15],ei=e=>(e&240)>>4===(e&15),pl=e=>ei(e.r)&&ei(e.g)&&ei(e.b)&&ei(e.a);function gl(e){var i=e.length,t;return e[0]==="#"&&(i===4||i===5?t={r:255&st[e[1]]*17,g:255&st[e[2]]*17,b:255&st[e[3]]*17,a:i===5?st[e[4]]*17:255}:(i===7||i===9)&&(t={r:st[e[1]]<<4|st[e[2]],g:st[e[3]]<<4|st[e[4]],b:st[e[5]]<<4|st[e[6]],a:i===9?st[e[7]]<<4|st[e[8]]:255})),t}var ml=(e,i)=>e<255?i(e):"";function xl(e){var i=pl(e)?dl:ul;return e?"#"+i(e.r)+i(e.g)+i(e.b)+ml(e.a,i):void 0}var bl=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function On(e,i,t){let s=i*Math.min(t,1-t),n=(o,r=(o+e/30)%12)=>t-s*Math.max(Math.min(r-3,9-r,1),-1);return[n(0),n(8),n(4)]}function _l(e,i,t){let s=(n,o=(n+e/60)%6)=>t-t*i*Math.max(Math.min(o,4-o,1),0);return[s(5),s(3),s(1)]}function yl(e,i,t){let s=On(e,1,.5),n;for(i+t>1&&(n=1/(i+t),i*=n,t*=n),n=0;n<3;n++)s[n]*=1-i-t,s[n]+=i;return s}function vl(e,i,t,s,n){return e===n?(i-t)/s+(i.5?h/(2-o-r):h/(o+r),l=vl(t,s,n,h,o),l=l*60+.5),[l|0,c||0,a]}function is(e,i,t,s){return(Array.isArray(i)?e(i[0],i[1],i[2]):e(i,t,s)).map(kt)}function ss(e,i,t){return is(On,e,i,t)}function Ml(e,i,t){return is(yl,e,i,t)}function wl(e,i,t){return is(_l,e,i,t)}function An(e){return(e%360+360)%360}function Sl(e){let i=bl.exec(e),t=255,s;if(!i)return;i[5]!==s&&(t=i[6]?Se(+i[5]):kt(+i[5]));let n=An(+i[2]),o=+i[3]/100,r=+i[4]/100;return i[1]==="hwb"?s=Ml(n,o,r):i[1]==="hsv"?s=wl(n,o,r):s=ss(n,o,r),{r:s[0],g:s[1],b:s[2],a:t}}function kl(e,i){var t=es(e);t[0]=An(t[0]+i),t=ss(t),e.r=t[0],e.g=t[1],e.b=t[2]}function Cl(e){if(!e)return;let i=es(e),t=i[0],s=Sn(i[1]),n=Sn(i[2]);return e.a<255?`hsla(${t}, ${s}%, ${n}%, ${mt(e.a)})`:`hsl(${t}, ${s}%, ${n}%)`}var kn={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Cn={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function Pl(){let e={},i=Object.keys(Cn),t=Object.keys(kn),s,n,o,r,a;for(s=0;s>16&255,o>>8&255,o&255]}return e}var ii;function Ol(e){ii||(ii=Pl(),ii.transparent=[0,0,0,0]);let i=ii[e.toLowerCase()];return i&&{r:i[0],g:i[1],b:i[2],a:i.length===4?i[3]:255}}var Al=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function Dl(e){let i=Al.exec(e),t=255,s,n,o;if(i){if(i[7]!==s){let r=+i[7];t=i[8]?Se(r):St(r*255,0,255)}return s=+i[1],n=+i[3],o=+i[5],s=255&(i[2]?Se(s):St(s,0,255)),n=255&(i[4]?Se(n):St(n,0,255)),o=255&(i[6]?Se(o):St(o,0,255)),{r:s,g:n,b:o,a:t}}}function Tl(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${mt(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}var Qi=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,Zt=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function Ll(e,i,t){let s=Zt(mt(e.r)),n=Zt(mt(e.g)),o=Zt(mt(e.b));return{r:kt(Qi(s+t*(Zt(mt(i.r))-s))),g:kt(Qi(n+t*(Zt(mt(i.g))-n))),b:kt(Qi(o+t*(Zt(mt(i.b))-o))),a:e.a+t*(i.a-e.a)}}function si(e,i,t){if(e){let s=es(e);s[i]=Math.max(0,Math.min(s[i]+s[i]*t,i===0?360:1)),s=ss(s),e.r=s[0],e.g=s[1],e.b=s[2]}}function Dn(e,i){return e&&Object.assign(i||{},e)}function Pn(e){var i={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(i={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(i.a=kt(e[3]))):(i=Dn(e,{r:0,g:0,b:0,a:1}),i.a=kt(i.a)),i}function Rl(e){return e.charAt(0)==="r"?Dl(e):Sl(e)}var ke=class e{constructor(i){if(i instanceof e)return i;let t=typeof i,s;t==="object"?s=Pn(i):t==="string"&&(s=gl(i)||Ol(i)||Rl(i)),this._rgb=s,this._valid=!!s}get valid(){return this._valid}get rgb(){var i=Dn(this._rgb);return i&&(i.a=mt(i.a)),i}set rgb(i){this._rgb=Pn(i)}rgbString(){return this._valid?Tl(this._rgb):void 0}hexString(){return this._valid?xl(this._rgb):void 0}hslString(){return this._valid?Cl(this._rgb):void 0}mix(i,t){if(i){let s=this.rgb,n=i.rgb,o,r=t===o?.5:t,a=2*r-1,l=s.a-n.a,c=((a*l===-1?a:(a+l)/(1+a*l))+1)/2;o=1-c,s.r=255&c*s.r+o*n.r+.5,s.g=255&c*s.g+o*n.g+.5,s.b=255&c*s.b+o*n.b+.5,s.a=r*s.a+(1-r)*n.a,this.rgb=s}return this}interpolate(i,t){return i&&(this._rgb=Ll(this._rgb,i._rgb,t)),this}clone(){return new e(this.rgb)}alpha(i){return this._rgb.a=kt(i),this}clearer(i){let t=this._rgb;return t.a*=1-i,this}greyscale(){let i=this._rgb,t=Ce(i.r*.3+i.g*.59+i.b*.11);return i.r=i.g=i.b=t,this}opaquer(i){let t=this._rgb;return t.a*=1+i,this}negate(){let i=this._rgb;return i.r=255-i.r,i.g=255-i.g,i.b=255-i.b,this}lighten(i){return si(this._rgb,2,i),this}darken(i){return si(this._rgb,2,-i),this}saturate(i){return si(this._rgb,1,i),this}desaturate(i){return si(this._rgb,1,-i),this}rotate(i){return kl(this._rgb,i),this}};function ft(){}var Wn=(()=>{let e=0;return()=>e++})();function T(e){return e===null||typeof e>"u"}function E(e){if(Array.isArray&&Array.isArray(e))return!0;let i=Object.prototype.toString.call(e);return i.slice(0,7)==="[object"&&i.slice(-6)==="Array]"}function A(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function W(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function J(e,i){return W(e)?e:i}function C(e,i){return typeof e>"u"?i:e}var Vn=(e,i)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/i,as=(e,i)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*i:+e;function I(e,i,t){if(e&&typeof e.call=="function")return e.apply(t,i)}function L(e,i,t,s){let n,o,r;if(E(e))if(o=e.length,s)for(n=o-1;n>=0;n--)i.call(t,e[n],n);else for(n=0;ne,x:e=>e.x,y:e=>e.y};function Fl(e){let i=e.split("."),t=[],s="";for(let n of i)s+=n,s.endsWith("\\")?s=s.slice(0,-1)+".":(t.push(s),s="");return t}function zl(e){let i=Fl(e);return t=>{for(let s of i){if(s==="")break;t=t&&t[s]}return t}}function _t(e,i){return(Tn[i]||(Tn[i]=zl(i)))(e)}function fi(e){return e.charAt(0).toUpperCase()+e.slice(1)}var ie=e=>typeof e<"u",xt=e=>typeof e=="function",ls=(e,i)=>{if(e.size!==i.size)return!1;for(let t of e)if(!i.has(t))return!1;return!0};function $n(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}var F=Math.PI,z=2*F,Bl=z+F,li=Number.POSITIVE_INFINITY,jl=F/180,V=F/2,Wt=F/4,Ln=F*2/3,bt=Math.log10,at=Math.sign;function se(e,i,t){return Math.abs(e-i)n-o).pop(),i}function $t(e){return!isNaN(parseFloat(e))&&isFinite(e)}function Yn(e,i){let t=Math.round(e);return t-i<=e&&t+i>=e}function hs(e,i,t){let s,n,o;for(s=0,n=e.length;sl&&c=Math.min(i,t)-s&&e<=Math.max(i,t)+s}function ui(e,i,t){t=t||(r=>e[r]1;)o=n+s>>1,t(o)?n=o:s=o;return{lo:n,hi:s}}var ct=(e,i,t,s)=>ui(e,t,s?n=>{let o=e[n][i];return oe[n][i]ui(e,t,s=>e[s][i]>=t);function qn(e,i,t){let s=0,n=e.length;for(;ss&&e[n-1]>t;)n--;return s>0||n{let s="_onData"+fi(t),n=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value(...o){let r=n.apply(this,o);return e._chartjs.listeners.forEach(a=>{typeof a[s]=="function"&&a[s](...o)}),r}})})}function us(e,i){let t=e._chartjs;if(!t)return;let s=t.listeners,n=s.indexOf(i);n!==-1&&s.splice(n,1),!(s.length>0)&&(Gn.forEach(o=>{delete e[o]}),delete e._chartjs)}function ps(e){let i=new Set(e);return i.size===e.length?e:Array.from(i)}var gs=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function ms(e,i){let t=[],s=!1;return function(...n){t=n,s||(s=!0,gs.call(window,()=>{s=!1,e.apply(i,t)}))}}function Jn(e,i){let t;return function(...s){return i?(clearTimeout(t),t=setTimeout(e,i,s)):e.apply(this,s),i}}var pi=e=>e==="start"?"left":e==="end"?"right":"center",X=(e,i,t)=>e==="start"?i:e==="end"?t:(i+t)/2,Qn=(e,i,t,s)=>e===(s?"left":"right")?t:e==="center"?(i+t)/2:i;function xs(e,i,t){let s=i.length,n=0,o=s;if(e._sorted){let{iScale:r,_parsed:a}=e,l=r.axis,{min:c,max:h,minDefined:f,maxDefined:d}=r.getUserBounds();f&&(n=U(Math.min(ct(a,l,c).lo,t?s:ct(i,l,r.getPixelForValue(c)).lo),0,s-1)),d?o=U(Math.max(ct(a,r.axis,h,!0).hi+1,t?0:ct(i,l,r.getPixelForValue(h),!0).hi+1),n,s)-n:o=s-n}return{start:n,count:o}}function bs(e){let{xScale:i,yScale:t,_scaleRanges:s}=e,n={xmin:i.min,xmax:i.max,ymin:t.min,ymax:t.max};if(!s)return e._scaleRanges=n,!0;let o=s.xmin!==i.min||s.xmax!==i.max||s.ymin!==t.min||s.ymax!==t.max;return Object.assign(s,n),o}var ni=e=>e===0||e===1,Rn=(e,i,t)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-i)*z/t)),In=(e,i,t)=>Math.pow(2,-10*e)*Math.sin((e-i)*z/t)+1,Jt={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*V)+1,easeOutSine:e=>Math.sin(e*V),easeInOutSine:e=>-.5*(Math.cos(F*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>ni(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>ni(e)?e:Rn(e,.075,.3),easeOutElastic:e=>ni(e)?e:In(e,.075,.3),easeInOutElastic(e){return ni(e)?e:e<.5?.5*Rn(e*2,.1125,.45):.5+.5*In(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let i=1.70158;return(e/=.5)<1?.5*(e*e*(((i*=1.525)+1)*e-i)):.5*((e-=2)*e*(((i*=1.525)+1)*e+i)+2)},easeInBounce:e=>1-Jt.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?Jt.easeInBounce(e*2)*.5:Jt.easeOutBounce(e*2-1)*.5+.5};function _s(e){if(e&&typeof e=="object"){let i=e.toString();return i==="[object CanvasPattern]"||i==="[object CanvasGradient]"}return!1}function ys(e){return _s(e)?e:new ke(e)}function ns(e){return _s(e)?e:new ke(e).saturate(.5).darken(.1).hexString()}var Wl=["x","y","borderWidth","radius","tension"],Vl=["color","borderColor","backgroundColor"];function Hl(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:i=>i!=="onProgress"&&i!=="onComplete"&&i!=="fn"}),e.set("animations",{colors:{type:"color",properties:Vl},numbers:{type:"number",properties:Wl}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:i=>i|0}}}})}function $l(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}var En=new Map;function Ul(e,i){i=i||{};let t=e+JSON.stringify(i),s=En.get(t);return s||(s=new Intl.NumberFormat(e,i),En.set(t,s)),s}function oe(e,i,t){return Ul(i,t).format(e)}var to={values(e){return E(e)?e:""+e},numeric(e,i,t){if(e===0)return"0";let s=this.chart.options.locale,n,o=e;if(t.length>1){let c=Math.max(Math.abs(t[0].value),Math.abs(t[t.length-1].value));(c<1e-4||c>1e15)&&(n="scientific"),o=Yl(e,t)}let r=bt(Math.abs(o)),a=isNaN(r)?1:Math.max(Math.min(-1*Math.floor(r),20),0),l={notation:n,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),oe(e,s,l)},logarithmic(e,i,t){if(e===0)return"0";let s=t[i].significand||e/Math.pow(10,Math.floor(bt(e)));return[1,2,3,5,10,15].includes(s)||i>.8*t.length?to.numeric.call(this,e,i,t):""}};function Yl(e,i){let t=i.length>3?i[2].value-i[1].value:i[1].value-i[0].value;return Math.abs(t)>=1&&e!==Math.floor(e)&&(t=e-Math.floor(e)),t}var De={formatters:to};function Xl(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(i,t)=>t.lineWidth,tickColor:(i,t)=>t.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:De.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:i=>!i.startsWith("before")&&!i.startsWith("after")&&i!=="callback"&&i!=="parser",_indexable:i=>i!=="borderDash"&&i!=="tickBorderDash"&&i!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:i=>i!=="backdropPadding"&&i!=="callback",_indexable:i=>i!=="backdropPadding"})}var Pt=Object.create(null),gi=Object.create(null);function Pe(e,i){if(!i)return e;let t=i.split(".");for(let s=0,n=t.length;ss.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(s,n)=>ns(n.backgroundColor),this.hoverBorderColor=(s,n)=>ns(n.borderColor),this.hoverColor=(s,n)=>ns(n.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(i),this.apply(t)}set(i,t){return os(this,i,t)}get(i){return Pe(this,i)}describe(i,t){return os(gi,i,t)}override(i,t){return os(Pt,i,t)}route(i,t,s,n){let o=Pe(this,i),r=Pe(this,s),a="_"+t;Object.defineProperties(o,{[a]:{value:o[t],writable:!0},[t]:{enumerable:!0,get(){let l=this[a],c=r[n];return A(l)?Object.assign({},c,l):C(l,c)},set(l){this[a]=l}}})}apply(i){i.forEach(t=>t(this))}},B=new rs({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[Hl,$l,Xl]);function Kl(e){return!e||T(e.size)||T(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function Oe(e,i,t,s,n){let o=i[n];return o||(o=i[n]=e.measureText(n).width,t.push(n)),o>s&&(s=o),s}function eo(e,i,t,s){s=s||{};let n=s.data=s.data||{},o=s.garbageCollect=s.garbageCollect||[];s.font!==i&&(n=s.data={},o=s.garbageCollect=[],s.font=i),e.save(),e.font=i;let r=0,a=t.length,l,c,h,f,d;for(l=0;lt.length){for(l=0;l0&&e.stroke()}}function ht(e,i,t){return t=t||.5,!i||e&&e.x>i.left-t&&e.xi.top-t&&e.y0&&o.strokeColor!=="",l,c;for(e.save(),e.font=n.string,ql(e,o),l=0;l+e||0;function xi(e,i){let t={},s=A(i),n=s?Object.keys(i):i,o=A(e)?s?r=>C(e[r],e[i[r]]):r=>e[r]:()=>e;for(let r of n)t[r]=ec(o(r));return t}function ws(e){return xi(e,{top:"y",right:"x",bottom:"y",left:"x"})}function Dt(e){return xi(e,["topLeft","topRight","bottomLeft","bottomRight"])}function K(e){let i=ws(e);return i.width=i.left+i.right,i.height=i.top+i.bottom,i}function $(e,i){e=e||{},i=i||B.font;let t=C(e.size,i.size);typeof t=="string"&&(t=parseInt(t,10));let s=C(e.style,i.style);s&&!(""+s).match(Ql)&&(console.warn('Invalid font style specified: "'+s+'"'),s=void 0);let n={family:C(e.family,i.family),lineHeight:tc(C(e.lineHeight,i.lineHeight),t),size:t,style:s,weight:C(e.weight,i.weight),string:""};return n.string=Kl(n),n}function ae(e,i,t,s){let n=!0,o,r,a;for(o=0,r=e.length;ot&&a===0?0:a+l;return{min:r(s,-Math.abs(o)),max:r(n,o)}}function yt(e,i){return Object.assign(Object.create(e),i)}function bi(e,i=[""],t,s,n=()=>e[0]){let o=t||e;typeof s>"u"&&(s=ao("_fallback",e));let r={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:o,_fallback:s,_getTarget:n,override:a=>bi([a,...e],i,o,s)};return new Proxy(r,{deleteProperty(a,l){return delete a[l],delete a._keys,delete e[0][l],!0},get(a,l){return oo(a,l,()=>cc(l,i,e,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(a,l){return zn(a).includes(l)},ownKeys(a){return zn(a)},set(a,l,c){let h=a._storage||(a._storage=n());return a[l]=h[l]=c,delete a._keys,!0}})}function Ht(e,i,t,s){let n={_cacheable:!1,_proxy:e,_context:i,_subProxy:t,_stack:new Set,_descriptors:Ss(e,s),setContext:o=>Ht(e,o,t,s),override:o=>Ht(e.override(o),i,t,s)};return new Proxy(n,{deleteProperty(o,r){return delete o[r],delete e[r],!0},get(o,r,a){return oo(o,r,()=>sc(o,r,a))},getOwnPropertyDescriptor(o,r){return o._descriptors.allKeys?Reflect.has(e,r)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,r)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(o,r){return Reflect.has(e,r)},ownKeys(){return Reflect.ownKeys(e)},set(o,r,a){return e[r]=a,delete o[r],!0}})}function Ss(e,i={scriptable:!0,indexable:!0}){let{_scriptable:t=i.scriptable,_indexable:s=i.indexable,_allKeys:n=i.allKeys}=e;return{allKeys:n,scriptable:t,indexable:s,isScriptable:xt(t)?t:()=>t,isIndexable:xt(s)?s:()=>s}}var ic=(e,i)=>e?e+fi(i):i,ks=(e,i)=>A(i)&&e!=="adapters"&&(Object.getPrototypeOf(i)===null||i.constructor===Object);function oo(e,i,t){if(Object.prototype.hasOwnProperty.call(e,i)||i==="constructor")return e[i];let s=t();return e[i]=s,s}function sc(e,i,t){let{_proxy:s,_context:n,_subProxy:o,_descriptors:r}=e,a=s[i];return xt(a)&&r.isScriptable(i)&&(a=nc(i,a,e,t)),E(a)&&a.length&&(a=oc(i,a,e,r.isIndexable)),ks(i,a)&&(a=Ht(a,n,o&&o[i],r)),a}function nc(e,i,t,s){let{_proxy:n,_context:o,_subProxy:r,_stack:a}=t;if(a.has(e))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+e);a.add(e);let l=i(o,r||s);return a.delete(e),ks(e,l)&&(l=Cs(n._scopes,n,e,l)),l}function oc(e,i,t,s){let{_proxy:n,_context:o,_subProxy:r,_descriptors:a}=t;if(typeof o.index<"u"&&s(e))return i[o.index%i.length];if(A(i[0])){let l=i,c=n._scopes.filter(h=>h!==l);i=[];for(let h of l){let f=Cs(c,n,e,h);i.push(Ht(f,o,r&&r[e],a))}}return i}function ro(e,i,t){return xt(e)?e(i,t):e}var rc=(e,i)=>e===!0?i:typeof e=="string"?_t(i,e):void 0;function ac(e,i,t,s,n){for(let o of i){let r=rc(t,o);if(r){e.add(r);let a=ro(r._fallback,t,n);if(typeof a<"u"&&a!==t&&a!==s)return a}else if(r===!1&&typeof s<"u"&&t!==s)return null}return!1}function Cs(e,i,t,s){let n=i._rootScopes,o=ro(i._fallback,t,s),r=[...e,...n],a=new Set;a.add(s);let l=Fn(a,r,t,o||t,s);return l===null||typeof o<"u"&&o!==t&&(l=Fn(a,r,o,l,s),l===null)?!1:bi(Array.from(a),[""],n,o,()=>lc(i,t,s))}function Fn(e,i,t,s,n){for(;t;)t=ac(e,i,t,s,n);return t}function lc(e,i,t){let s=e._getTarget();i in s||(s[i]={});let n=s[i];return E(n)&&A(t)?t:n||{}}function cc(e,i,t,s){let n;for(let o of i)if(n=ao(ic(o,e),t),typeof n<"u")return ks(e,n)?Cs(t,s,e,n):n}function ao(e,i){for(let t of i){if(!t)continue;let s=t[e];if(typeof s<"u")return s}}function zn(e){let i=e._keys;return i||(i=e._keys=hc(e._scopes)),i}function hc(e){let i=new Set;for(let t of e)for(let s of Object.keys(t).filter(n=>!n.startsWith("_")))i.add(s);return Array.from(i)}function Ps(e,i,t,s){let{iScale:n}=e,{key:o="r"}=this._parsing,r=new Array(s),a,l,c,h;for(a=0,l=s;aie==="x"?"y":"x";function dc(e,i,t,s){let n=e.skip?i:e,o=i,r=t.skip?i:t,a=ci(o,n),l=ci(r,o),c=a/(a+l),h=l/(a+l);c=isNaN(c)?0:c,h=isNaN(h)?0:h;let f=s*c,d=s*h;return{previous:{x:o.x-f*(r.x-n.x),y:o.y-f*(r.y-n.y)},next:{x:o.x+d*(r.x-n.x),y:o.y+d*(r.y-n.y)}}}function uc(e,i,t){let s=e.length,n,o,r,a,l,c=te(e,0);for(let h=0;h!c.skip)),i.cubicInterpolationMode==="monotone")gc(e,n);else{let c=s?e[e.length-1]:e[0];for(o=0,r=e.length;oe.ownerDocument.defaultView.getComputedStyle(e,null);function xc(e,i){return vi(e).getPropertyValue(i)}var bc=["top","right","bottom","left"];function Vt(e,i,t){let s={};t=t?"-"+t:"";for(let n=0;n<4;n++){let o=bc[n];s[o]=parseFloat(e[i+"-"+o+t])||0}return s.width=s.left+s.right,s.height=s.top+s.bottom,s}var _c=(e,i,t)=>(e>0||i>0)&&(!t||!t.shadowRoot);function yc(e,i){let t=e.touches,s=t&&t.length?t[0]:e,{offsetX:n,offsetY:o}=s,r=!1,a,l;if(_c(n,o,e.target))a=n,l=o;else{let c=i.getBoundingClientRect();a=s.clientX-c.left,l=s.clientY-c.top,r=!0}return{x:a,y:l,box:r}}function Tt(e,i){if("native"in e)return e;let{canvas:t,currentDevicePixelRatio:s}=i,n=vi(t),o=n.boxSizing==="border-box",r=Vt(n,"padding"),a=Vt(n,"border","width"),{x:l,y:c,box:h}=yc(e,t),f=r.left+(h&&a.left),d=r.top+(h&&a.top),{width:u,height:p}=i;return o&&(u-=r.width+a.width,p-=r.height+a.height),{x:Math.round((l-f)/u*t.width/s),y:Math.round((c-d)/p*t.height/s)}}function vc(e,i,t){let s,n;if(i===void 0||t===void 0){let o=e&&yi(e);if(!o)i=e.clientWidth,t=e.clientHeight;else{let r=o.getBoundingClientRect(),a=vi(o),l=Vt(a,"border","width"),c=Vt(a,"padding");i=r.width-c.width-l.width,t=r.height-c.height-l.height,s=hi(a.maxWidth,o,"clientWidth"),n=hi(a.maxHeight,o,"clientHeight")}}return{width:i,height:t,maxWidth:s||li,maxHeight:n||li}}var ri=e=>Math.round(e*10)/10;function ho(e,i,t,s){let n=vi(e),o=Vt(n,"margin"),r=hi(n.maxWidth,e,"clientWidth")||li,a=hi(n.maxHeight,e,"clientHeight")||li,l=vc(e,i,t),{width:c,height:h}=l;if(n.boxSizing==="content-box"){let d=Vt(n,"border","width"),u=Vt(n,"padding");c-=u.width+d.width,h-=u.height+d.height}return c=Math.max(0,c-o.width),h=Math.max(0,s?c/s:h-o.height),c=ri(Math.min(c,r,l.maxWidth)),h=ri(Math.min(h,a,l.maxHeight)),c&&!h&&(h=ri(c/2)),(i!==void 0||t!==void 0)&&s&&l.height&&h>l.height&&(h=l.height,c=ri(Math.floor(h*s))),{width:c,height:h}}function Os(e,i,t){let s=i||1,n=Math.floor(e.height*s),o=Math.floor(e.width*s);e.height=Math.floor(e.height),e.width=Math.floor(e.width);let r=e.canvas;return r.style&&(t||!r.style.height&&!r.style.width)&&(r.style.height=`${e.height}px`,r.style.width=`${e.width}px`),e.currentDevicePixelRatio!==s||r.height!==n||r.width!==o?(e.currentDevicePixelRatio=s,r.height=n,r.width=o,e.ctx.setTransform(s,0,0,s,0,0),!0):!1}var fo=function(){let e=!1;try{let i={get passive(){return e=!0,!1}};_i()&&(window.addEventListener("test",null,i),window.removeEventListener("test",null,i))}catch{}return e}();function As(e,i){let t=xc(e,i),s=t&&t.match(/^(\d+)(\.\d+)?px$/);return s?+s[1]:void 0}function Ct(e,i,t,s){return{x:e.x+t*(i.x-e.x),y:e.y+t*(i.y-e.y)}}function uo(e,i,t,s){return{x:e.x+t*(i.x-e.x),y:s==="middle"?t<.5?e.y:i.y:s==="after"?t<1?e.y:i.y:t>0?i.y:e.y}}function po(e,i,t,s){let n={x:e.cp2x,y:e.cp2y},o={x:i.cp1x,y:i.cp1y},r=Ct(e,n,t),a=Ct(n,o,t),l=Ct(o,i,t),c=Ct(r,a,t),h=Ct(a,l,t);return Ct(c,h,t)}var Mc=function(e,i){return{x(t){return e+e+i-t},setWidth(t){i=t},textAlign(t){return t==="center"?t:t==="right"?"left":"right"},xPlus(t,s){return t-s},leftForLtr(t,s){return t-s}}},wc=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,i){return e+i},leftForLtr(e,i){return e}}};function Ut(e,i,t){return e?Mc(i,t):wc()}function Ds(e,i){let t,s;(i==="ltr"||i==="rtl")&&(t=e.canvas.style,s=[t.getPropertyValue("direction"),t.getPropertyPriority("direction")],t.setProperty("direction",i,"important"),e.prevTextDirection=s)}function Ts(e,i){i!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",i[0],i[1]))}function go(e){return e==="angle"?{between:ne,compare:Nl,normalize:Z}:{between:dt,compare:(i,t)=>i-t,normalize:i=>i}}function Bn({start:e,end:i,count:t,loop:s,style:n}){return{start:e%t,end:i%t,loop:s&&(i-e+1)%t===0,style:n}}function Sc(e,i,t){let{property:s,start:n,end:o}=t,{between:r,normalize:a}=go(s),l=i.length,{start:c,end:h,loop:f}=e,d,u;if(f){for(c+=l,h+=l,d=0,u=l;dl(n,y,b)&&a(n,y)!==0,_=()=>a(o,b)===0||l(o,y,b),v=()=>g||M(),S=()=>!g||_();for(let w=h,k=h;w<=f;++w)x=i[w%r],!x.skip&&(b=c(x[s]),b!==y&&(g=l(b,n,o),m===null&&v()&&(m=a(b,n)===0?w:k),m!==null&&S()&&(p.push(Bn({start:m,end:w,loop:d,count:r,style:u})),m=null),k=w,y=b));return m!==null&&p.push(Bn({start:m,end:f,loop:d,count:r,style:u})),p}function Rs(e,i){let t=[],s=e.segments;for(let n=0;nn&&e[o%i].skip;)o--;return o%=i,{start:n,end:o}}function Cc(e,i,t,s){let n=e.length,o=[],r=i,a=e[i],l;for(l=i+1;l<=t;++l){let c=e[l%n];c.skip||c.stop?a.skip||(s=!1,o.push({start:i%n,end:(l-1)%n,loop:s}),i=r=c.stop?l:null):(r=l,a.skip&&(i=l)),a=c}return r!==null&&o.push({start:i%n,end:r%n,loop:s}),o}function mo(e,i){let t=e.points,s=e.options.spanGaps,n=t.length;if(!n)return[];let o=!!e._loop,{start:r,end:a}=kc(t,n,o,s);if(s===!0)return jn(e,[{start:r,end:a,loop:o}],t,i);let l=aa({chart:i,initial:t.initial,numSteps:r,currentStep:Math.min(s-t.start,r)}))}_refresh(){this._request||(this._running=!0,this._request=gs.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(i=Date.now()){let t=0;this._charts.forEach((s,n)=>{if(!s.running||!s.items.length)return;let o=s.items,r=o.length-1,a=!1,l;for(;r>=0;--r)l=o[r],l._active?(l._total>s.duration&&(s.duration=l._total),l.tick(i),a=!0):(o[r]=o[o.length-1],o.pop());a&&(n.draw(),this._notify(n,s,i,"progress")),o.length||(s.running=!1,this._notify(n,s,i,"complete"),s.initial=!1),t+=o.length}),this._lastDate=i,t===0&&(this._running=!1)}_getAnims(i){let t=this._charts,s=t.get(i);return s||(s={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(i,s)),s}listen(i,t,s){this._getAnims(i).listeners[t].push(s)}add(i,t){!t||!t.length||this._getAnims(i).items.push(...t)}has(i){return this._getAnims(i).items.length>0}start(i){let t=this._charts.get(i);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce((s,n)=>Math.max(s,n._duration),0),this._refresh())}running(i){if(!this._running)return!1;let t=this._charts.get(i);return!(!t||!t.running||!t.items.length)}stop(i){let t=this._charts.get(i);if(!t||!t.items.length)return;let s=t.items,n=s.length-1;for(;n>=0;--n)s[n].cancel();t.items=[],this._notify(i,t,Date.now(),"complete")}remove(i){return this._charts.delete(i)}},vt=new Hs,xo="transparent",Ac={boolean(e,i,t){return t>.5?i:e},color(e,i,t){let s=ys(e||xo),n=s.valid&&ys(i||xo);return n&&n.valid?n.mix(s,t).hexString():i},number(e,i,t){return e+(i-e)*t}},$s=class{constructor(i,t,s,n){let o=t[s];n=ae([i.to,n,o,i.from]);let r=ae([i.from,o,n]);this._active=!0,this._fn=i.fn||Ac[i.type||typeof r],this._easing=Jt[i.easing]||Jt.linear,this._start=Math.floor(Date.now()+(i.delay||0)),this._duration=this._total=Math.floor(i.duration),this._loop=!!i.loop,this._target=t,this._prop=s,this._from=r,this._to=n,this._promises=void 0}active(){return this._active}update(i,t,s){if(this._active){this._notify(!1);let n=this._target[this._prop],o=s-this._start,r=this._duration-o;this._start=s,this._duration=Math.floor(Math.max(r,i.duration)),this._total+=o,this._loop=!!i.loop,this._to=ae([i.to,t,n,i.from]),this._from=ae([i.from,n,t])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(i){let t=i-this._start,s=this._duration,n=this._prop,o=this._from,r=this._loop,a=this._to,l;if(this._active=o!==a&&(r||t1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[n]=this._fn(o,a,l)}wait(){let i=this._promises||(this._promises=[]);return new Promise((t,s)=>{i.push({res:t,rej:s})})}_notify(i){let t=i?"res":"rej",s=this._promises||[];for(let n=0;n{let o=i[n];if(!A(o))return;let r={};for(let a of t)r[a]=o[a];(E(o.properties)&&o.properties||[n]).forEach(a=>{(a===n||!s.has(a))&&s.set(a,r)})})}_animateOptions(i,t){let s=t.options,n=Tc(i,s);if(!n)return[];let o=this._createAnimations(n,s);return s.$shared&&Dc(i.options.$animations,s).then(()=>{i.options=s},()=>{}),o}_createAnimations(i,t){let s=this._properties,n=[],o=i.$animations||(i.$animations={}),r=Object.keys(t),a=Date.now(),l;for(l=r.length-1;l>=0;--l){let c=r[l];if(c.charAt(0)==="$")continue;if(c==="options"){n.push(...this._animateOptions(i,t));continue}let h=t[c],f=o[c],d=s.get(c);if(f)if(d&&f.active()){f.update(d,h,a);continue}else f.cancel();if(!d||!d.duration){i[c]=h;continue}o[c]=f=new $s(d,i,c,h),n.push(f)}return n}update(i,t){if(this._properties.size===0){Object.assign(i,t);return}let s=this._createAnimations(i,t);if(s.length)return vt.add(this._chart,s),!0}};function Dc(e,i){let t=[],s=Object.keys(i);for(let n=0;n0||!t&&o<0)return n.index}return null}function Mo(e,i){let{chart:t,_cachedMeta:s}=e,n=t._stacks||(t._stacks={}),{iScale:o,vScale:r,index:a}=s,l=o.axis,c=r.axis,h=Ec(o,r,s),f=i.length,d;for(let u=0;ut[s].axis===i).shift()}function Bc(e,i){return yt(e,{active:!1,dataset:void 0,datasetIndex:i,index:i,mode:"default",type:"dataset"})}function jc(e,i,t){return yt(e,{active:!1,dataIndex:i,parsed:void 0,raw:void 0,element:t,index:i,mode:"default",type:"data"})}function Re(e,i){let t=e.controller.index,s=e.vScale&&e.vScale.axis;if(s){i=i||e._parsed;for(let n of i){let o=n._stacks;if(!o||o[s]===void 0||o[s][t]===void 0)return;delete o[s][t],o[s]._visualValues!==void 0&&o[s]._visualValues[t]!==void 0&&delete o[s]._visualValues[t]}}}var Es=e=>e==="reset"||e==="none",wo=(e,i)=>i?e:Object.assign({},e),Nc=(e,i,t)=>e&&!i.hidden&&i._stacked&&{keys:br(t,!0),values:null},Rt=(()=>{class e{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,s){this.chart=t,this._ctx=t.ctx,this.index=s,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){let t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=yo(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Re(this._cachedMeta),this.index=t}linkScales(){let t=this.chart,s=this._cachedMeta,n=this.getDataset(),o=(d,u,p,g)=>d==="x"?u:d==="r"?g:p,r=s.xAxisID=C(n.xAxisID,Is(t,"x")),a=s.yAxisID=C(n.yAxisID,Is(t,"y")),l=s.rAxisID=C(n.rAxisID,Is(t,"r")),c=s.indexAxis,h=s.iAxisID=o(c,r,a,l),f=s.vAxisID=o(c,a,r,l);s.xScale=this.getScaleForId(r),s.yScale=this.getScaleForId(a),s.rScale=this.getScaleForId(l),s.iScale=this.getScaleForId(h),s.vScale=this.getScaleForId(f)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){let s=this._cachedMeta;return t===s.iScale?s.vScale:s.iScale}reset(){this._update("reset")}_destroy(){let t=this._cachedMeta;this._data&&us(this._data,this),t._stacked&&Re(t)}_dataCheck(){let t=this.getDataset(),s=t.data||(t.data=[]),n=this._data;if(A(s)){let o=this._cachedMeta;this._data=Ic(s,o)}else if(n!==s){if(n){us(n,this);let o=this._cachedMeta;Re(o),o._parsed=[]}s&&Object.isExtensible(s)&&Zn(s,this),this._syncList=[],this._data=s}}addElements(){let t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){let s=this._cachedMeta,n=this.getDataset(),o=!1;this._dataCheck();let r=s._stacked;s._stacked=yo(s.vScale,s),s.stack!==n.stack&&(o=!0,Re(s),s.stack=n.stack),this._resyncElements(t),(o||r!==s._stacked)&&Mo(this,s._parsed)}configure(){let t=this.chart.config,s=t.datasetScopeKeys(this._type),n=t.getOptionScopes(this.getDataset(),s,!0);this.options=t.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,s){let{_cachedMeta:n,_data:o}=this,{iScale:r,_stacked:a}=n,l=r.axis,c=t===0&&s===o.length?!0:n._sorted,h=t>0&&n._parsed[t-1],f,d,u;if(this._parsing===!1)n._parsed=o,n._sorted=!0,u=o;else{E(o[t])?u=this.parseArrayData(n,o,t,s):A(o[t])?u=this.parseObjectData(n,o,t,s):u=this.parsePrimitiveData(n,o,t,s);let p=()=>d[l]===null||h&&d[l]m||d=0;--u)if(!g()){this.updateRangeFromParsed(h,t,p,c);break}}return h}getAllParsedValues(t){let s=this._cachedMeta._parsed,n=[],o,r,a;for(o=0,r=s.length;o=0&&tthis.getContext(n,o,s),m=h.resolveNamedOptions(u,p,g,d);return m.$shared&&(m.$shared=c,r[a]=Object.freeze(wo(m,c))),m}_resolveAnimations(t,s,n){let o=this.chart,r=this._cachedDataOpts,a=`animation-${s}`,l=r[a];if(l)return l;let c;if(o.options.animation!==!1){let f=this.chart.config,d=f.datasetAnimationScopeKeys(this._type,s),u=f.getOptionScopes(this.getDataset(),d);c=f.createResolver(u,this.getContext(t,n,s))}let h=new Ti(o,c&&c.animations);return c&&c._cacheable&&(r[a]=Object.freeze(h)),h}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,s){return!s||Es(t)||this.chart._animationsDisabled}_getSharedOptions(t,s){let n=this.resolveDataElementOptions(t,s),o=this._sharedOptions,r=this.getSharedOptions(n),a=this.includeOptions(s,r)||r!==o;return this.updateSharedOptions(r,s,n),{sharedOptions:r,includeOptions:a}}updateElement(t,s,n,o){Es(o)?Object.assign(t,n):this._resolveAnimations(s,o).update(t,n)}updateSharedOptions(t,s,n){t&&!Es(s)&&this._resolveAnimations(void 0,s).update(t,n)}_setStyle(t,s,n,o){t.active=o;let r=this.getStyle(s,o);this._resolveAnimations(s,n,o).update(t,{options:!o&&this.getSharedOptions(r)||r})}removeHoverStyle(t,s,n){this._setStyle(t,n,"active",!1)}setHoverStyle(t,s,n){this._setStyle(t,n,"active",!0)}_removeDatasetHoverStyle(){let t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){let t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){let s=this._data,n=this._cachedMeta.data;for(let[l,c,h]of this._syncList)this[l](c,h);this._syncList=[];let o=n.length,r=s.length,a=Math.min(r,o);a&&this.parse(0,a),r>o?this._insertElements(o,r-o,t):r{for(h.length+=s,l=h.length-1;l>=a;l--)h[l]=h[l-s]};for(c(r),l=t;ln-o))}return e._cache.$bar}function Vc(e){let i=e.iScale,t=Wc(i,e.type),s=i._length,n,o,r,a,l=()=>{r===32767||r===-32768||(ie(a)&&(s=Math.min(s,Math.abs(r-a)||s)),a=r)};for(n=0,o=t.length;n0?n[e-1]:null,a=eMath.abs(a)&&(l=a,c=r),i[t.axis]=c,i._custom={barStart:l,barEnd:c,start:n,end:o,min:r,max:a}}function _r(e,i,t,s){return E(e)?Uc(e,i,t,s):i[t.axis]=t.parse(e,s),i}function So(e,i,t,s){let n=e.iScale,o=e.vScale,r=n.getLabels(),a=n===o,l=[],c,h,f,d;for(c=t,h=t+s;c=t?1:-1)}function Xc(e){let i,t,s,n,o;return e.horizontal?(i=e.base>e.x,t="left",s="right"):(i=e.base{class e extends Rt{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(t,s,n,o){return So(t,s,n,o)}parseArrayData(t,s,n,o){return So(t,s,n,o)}parseObjectData(t,s,n,o){let{iScale:r,vScale:a}=t,{xAxisKey:l="x",yAxisKey:c="y"}=this._parsing,h=r.axis==="x"?l:c,f=a.axis==="x"?l:c,d=[],u,p,g,m;for(u=n,p=n+o;uf.controller.options.grouped),r=n.options.stacked,a=[],l=this._cachedMeta.controller.getParsed(s),c=l&&l[n.axis],h=f=>{let d=f._parsed.find(p=>p[n.axis]===c),u=d&&d[f.vScale.axis];if(T(u)||isNaN(u))return!0};for(let f of o)if(!(s!==void 0&&h(f))&&((r===!1||a.indexOf(f.stack)===-1||r===void 0&&f.stack===void 0)&&a.push(f.stack),f.index===t))break;return a.length||a.push(void 0),a}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,s,n){let o=this._getStacks(t,n),r=s!==void 0?o.indexOf(s):-1;return r===-1?o.length-1:r}_getRuler(){let t=this.options,s=this._cachedMeta,n=s.iScale,o=[],r,a;for(r=0,a=s.data.length;r{class e extends Rt{static id="bubble";static defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}};static overrides={scales:{x:{type:"linear"},y:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,s,n,o){let r=super.parsePrimitiveData(t,s,n,o);for(let a=0;a=0;--n)s=Math.max(s,t[n].size(this.resolveDataElementOptions(n))/2);return s>0&&s}getLabelAndValue(t){let s=this._cachedMeta,n=this.chart.data.labels||[],{xScale:o,yScale:r}=s,a=this.getParsed(t),l=o.getLabelForValue(a.x),c=r.getLabelForValue(a.y),h=a._custom;return{label:n[t]||"",value:"("+l+", "+c+(h?", "+h:"")+")"}}update(t){let s=this._cachedMeta.data;this.updateElements(s,0,s.length,t)}updateElements(t,s,n,o){let r=o==="reset",{iScale:a,vScale:l}=this._cachedMeta,{sharedOptions:c,includeOptions:h}=this._getSharedOptions(s,o),f=a.axis,d=l.axis;for(let u=s;une(y,a,l,!0)?1:Math.max(M,M*t,_,_*t),p=(y,M,_)=>ne(y,a,l,!0)?-1:Math.min(M,M*t,_,_*t),g=u(0,c,f),m=u(V,h,d),b=p(F,c,f),x=p(F+V,h,d);s=(g-b)/2,n=(m-x)/2,o=-(g+b)/2,r=-(m+x)/2}return{ratioX:s,ratioY:n,offsetX:o,offsetY:r}}var fn=(()=>{class e extends Rt{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){let s=t.data;if(s.labels.length&&s.datasets.length){let{labels:{pointStyle:n,color:o}}=t.legend.options;return s.labels.map((r,a)=>{let c=t.getDatasetMeta(0).controller.getStyle(a);return{text:r,fillStyle:c.backgroundColor,strokeStyle:c.borderColor,fontColor:o,lineWidth:c.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(a),index:a}})}return[]}},onClick(t,s,n){n.chart.toggleDataVisibility(s.index),n.chart.update()}}}};constructor(t,s){super(t,s),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,s){let n=this.getDataset().data,o=this._cachedMeta;if(this._parsing===!1)o._parsed=n;else{let r=c=>+n[c];if(A(n[t])){let{key:c="value"}=this._parsing;r=h=>+_t(n[h],c)}let a,l;for(a=t,l=t+s;a0&&!isNaN(t)?z*(Math.abs(t)/s):0}getLabelAndValue(t){let s=this._cachedMeta,n=this.chart,o=n.data.labels||[],r=oe(s._parsed[t],n.options.locale);return{label:o[t]||"",value:r}}getMaxBorderWidth(t){let s=0,n=this.chart,o,r,a,l,c;if(!t){for(o=0,r=n.data.datasets.length;o{class e extends Rt{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){let s=this._cachedMeta,{dataset:n,data:o=[],_dataset:r}=s,a=this.chart._animationsDisabled,{start:l,count:c}=xs(s,o,a);this._drawStart=l,this._drawCount=c,bs(s)&&(l=0,c=o.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!r._decimated,n.points=o;let h=this.resolveDatasetElementOptions(t);this.options.showLine||(h.borderWidth=0),h.segment=this.options.segment,this.updateElement(n,void 0,{animated:!a,options:h},t),this.updateElements(o,l,c,t)}updateElements(t,s,n,o){let r=o==="reset",{iScale:a,vScale:l,_stacked:c,_dataset:h}=this._cachedMeta,{sharedOptions:f,includeOptions:d}=this._getSharedOptions(s,o),u=a.axis,p=l.axis,{spanGaps:g,segment:m}=this.options,b=$t(g)?g:Number.POSITIVE_INFINITY,x=this.chart._animationsDisabled||r||o==="none",y=s+n,M=t.length,_=s>0&&this.getParsed(s-1);for(let v=0;v=y){w.skip=!0;continue}let k=this.getParsed(v),O=T(k[p]),P=w[u]=a.getPixelForValue(k[u],v),D=w[p]=r||O?l.getBasePixel():l.getPixelForValue(c?this.applyStack(l,k,c):k[p],v);w.skip=isNaN(P)||isNaN(D)||O,w.stop=v>0&&Math.abs(k[u]-_[u])>b,m&&(w.parsed=k,w.raw=h.data[v]),d&&(w.options=f||this.resolveDataElementOptions(v,S.active?"active":o)),x||this.updateElement(S,v,w,o),_=k}}getMaxOverflow(){let t=this._cachedMeta,s=t.dataset,n=s.options&&s.options.borderWidth||0,o=t.data||[];if(!o.length)return n;let r=o[0].size(this.resolveDataElementOptions(0)),a=o[o.length-1].size(this.resolveDataElementOptions(o.length-1));return Math.max(n,r,a)/2}draw(){let t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}return e})(),yr=(()=>{class e extends Rt{static id="polarArea";static defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){let s=t.data;if(s.labels.length&&s.datasets.length){let{labels:{pointStyle:n,color:o}}=t.legend.options;return s.labels.map((r,a)=>{let c=t.getDatasetMeta(0).controller.getStyle(a);return{text:r,fillStyle:c.backgroundColor,strokeStyle:c.borderColor,fontColor:o,lineWidth:c.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(a),index:a}})}return[]}},onClick(t,s,n){n.chart.toggleDataVisibility(s.index),n.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(t,s){super(t,s),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){let s=this._cachedMeta,n=this.chart,o=n.data.labels||[],r=oe(s._parsed[t].r,n.options.locale);return{label:o[t]||"",value:r}}parseObjectData(t,s,n,o){return Ps.bind(this)(t,s,n,o)}update(t){let s=this._cachedMeta.data;this._updateRadius(),this.updateElements(s,0,s.length,t)}getMinMax(){let t=this._cachedMeta,s={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((n,o)=>{let r=this.getParsed(o).r;!isNaN(r)&&this.chart.getDataVisibility(o)&&(rs.max&&(s.max=r))}),s}_updateRadius(){let t=this.chart,s=t.chartArea,n=t.options,o=Math.min(s.right-s.left,s.bottom-s.top),r=Math.max(o/2,0),a=Math.max(n.cutoutPercentage?r/100*n.cutoutPercentage:1,0),l=(r-a)/t.getVisibleDatasetCount();this.outerRadius=r-l*this.index,this.innerRadius=this.outerRadius-l}updateElements(t,s,n,o){let r=o==="reset",a=this.chart,c=a.options.animation,h=this._cachedMeta.rScale,f=h.xCenter,d=h.yCenter,u=h.getIndexAngle(0)-.5*F,p=u,g,m=360/this.countVisibleElements();for(g=0;g{!isNaN(this.getParsed(o).r)&&this.chart.getDataVisibility(o)&&s++}),s}_computeAngle(t,s,n){return this.chart.getDataVisibility(t)?nt(this.resolveDataElementOptions(t,s).angle||n):0}}return e})(),eh=(()=>{class e extends fn{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}}return e})(),ih=(()=>{class e extends Rt{static id="radar";static defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};static overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};getLabelAndValue(t){let s=this._cachedMeta.vScale,n=this.getParsed(t);return{label:s.getLabels()[t],value:""+s.getLabelForValue(n[s.axis])}}parseObjectData(t,s,n,o){return Ps.bind(this)(t,s,n,o)}update(t){let s=this._cachedMeta,n=s.dataset,o=s.data||[],r=s.iScale.getLabels();if(n.points=o,t!=="resize"){let a=this.resolveDatasetElementOptions(t);this.options.showLine||(a.borderWidth=0);let l={_loop:!0,_fullLoop:r.length===o.length,options:a};this.updateElement(n,void 0,l,t)}this.updateElements(o,0,o.length,t)}updateElements(t,s,n,o){let r=this._cachedMeta.rScale,a=o==="reset";for(let l=s;l{class e extends Rt{static id="scatter";static defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1};static overrides={interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}};getLabelAndValue(t){let s=this._cachedMeta,n=this.chart.data.labels||[],{xScale:o,yScale:r}=s,a=this.getParsed(t),l=o.getLabelForValue(a.x),c=r.getLabelForValue(a.y);return{label:n[t]||"",value:"("+l+", "+c+")"}}update(t){let s=this._cachedMeta,{data:n=[]}=s,o=this.chart._animationsDisabled,{start:r,count:a}=xs(s,n,o);if(this._drawStart=r,this._drawCount=a,bs(s)&&(r=0,a=n.length),this.options.showLine){this.datasetElementType||this.addElements();let{dataset:l,_dataset:c}=s;l._chart=this.chart,l._datasetIndex=this.index,l._decimated=!!c._decimated,l.points=n;let h=this.resolveDatasetElementOptions(t);h.segment=this.options.segment,this.updateElement(l,void 0,{animated:!o,options:h},t)}else this.datasetElementType&&(delete s.dataset,this.datasetElementType=!1);this.updateElements(n,r,a,t)}addElements(){let{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(t,s,n,o){let r=o==="reset",{iScale:a,vScale:l,_stacked:c,_dataset:h}=this._cachedMeta,f=this.resolveDataElementOptions(s,o),d=this.getSharedOptions(f),u=this.includeOptions(o,d),p=a.axis,g=l.axis,{spanGaps:m,segment:b}=this.options,x=$t(m)?m:Number.POSITIVE_INFINITY,y=this.chart._animationsDisabled||r||o==="none",M=s>0&&this.getParsed(s-1);for(let _=s;_0&&Math.abs(S[p]-M[p])>x,b&&(w.parsed=S,w.raw=h.data[_]),u&&(w.options=d||this.resolveDataElementOptions(_,v.active?"active":o)),y||this.updateElement(v,_,w,o),M=S}this.updateSharedOptions(d,o,f)}getMaxOverflow(){let t=this._cachedMeta,s=t.data||[];if(!this.options.showLine){let l=0;for(let c=s.length-1;c>=0;--c)l=Math.max(l,s[c].size(this.resolveDataElementOptions(c))/2);return l>0&&l}let n=t.dataset,o=n.options&&n.options.borderWidth||0;if(!s.length)return o;let r=s[0].size(this.resolveDataElementOptions(0)),a=s[s.length-1].size(this.resolveDataElementOptions(s.length-1));return Math.max(o,r,a)/2}}return e})(),nh=Object.freeze({__proto__:null,BarController:Zc,BubbleController:Jc,DoughnutController:fn,LineController:th,PieController:eh,PolarAreaController:yr,RadarController:ih,ScatterController:sh});function Yt(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}var Us=class e{static override(i){Object.assign(e.prototype,i)}options;constructor(i){this.options=i||{}}init(){}formats(){return Yt()}parse(){return Yt()}format(){return Yt()}add(){return Yt()}diff(){return Yt()}startOf(){return Yt()}endOf(){return Yt()}},oh={_date:Us};function rh(e,i,t,s){let{controller:n,data:o,_sorted:r}=e,a=n._cachedMeta.iScale;if(a&&i===a.axis&&i!=="r"&&r&&o.length){let l=a._reversePixels?Kn:ct;if(s){if(n._sharedOptions){let c=o[0],h=typeof c.getRange=="function"&&c.getRange(i);if(h){let f=l(o,i,t-h),d=l(o,i,t+h);return{lo:f.lo,hi:d.hi}}}}else return l(o,i,t)}return{lo:0,hi:o.length-1}}function He(e,i,t,s,n){let o=e.getSortedVisibleDatasetMetas(),r=t[i];for(let a=0,l=o.length;a{l[r]&&l[r](i[t],n)&&(o.push({element:l,datasetIndex:c,index:h}),a=a||l.inRange(i.x,i.y,n))}),s&&!a?[]:o}var hh={evaluateInteractionItems:He,modes:{index(e,i,t,s){let n=Tt(i,e),o=t.axis||"x",r=t.includeInvisible||!1,a=t.intersect?zs(e,n,o,s,r):Bs(e,n,o,!1,s,r),l=[];return a.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{let h=a[0].index,f=c.data[h];f&&!f.skip&&l.push({element:f,datasetIndex:c.index,index:h})}),l):[]},dataset(e,i,t,s){let n=Tt(i,e),o=t.axis||"xy",r=t.includeInvisible||!1,a=t.intersect?zs(e,n,o,s,r):Bs(e,n,o,!1,s,r);if(a.length>0){let l=a[0].datasetIndex,c=e.getDatasetMeta(l).data;a=[];for(let h=0;ht.pos===i)}function Oo(e,i){return e.filter(t=>vr.indexOf(t.pos)===-1&&t.box.axis===i)}function Ee(e,i){return e.sort((t,s)=>{let n=i?s:t,o=i?t:s;return n.weight===o.weight?n.index-o.index:n.weight-o.weight})}function fh(e){let i=[],t,s,n,o,r,a;for(t=0,s=(e||[]).length;tc.box.fullSize),!0),s=Ee(Ie(i,"left"),!0),n=Ee(Ie(i,"right")),o=Ee(Ie(i,"top"),!0),r=Ee(Ie(i,"bottom")),a=Oo(i,"x"),l=Oo(i,"y");return{fullSize:t,leftAndTop:s.concat(o),rightAndBottom:n.concat(l).concat(r).concat(a),chartArea:Ie(i,"chartArea"),vertical:s.concat(n).concat(l),horizontal:o.concat(r).concat(a)}}function Ao(e,i,t,s){return Math.max(e[t],i[t])+Math.max(e[s],i[s])}function Mr(e,i){e.top=Math.max(e.top,i.top),e.left=Math.max(e.left,i.left),e.bottom=Math.max(e.bottom,i.bottom),e.right=Math.max(e.right,i.right)}function gh(e,i,t,s){let{pos:n,box:o}=t,r=e.maxPadding;if(!A(n)){t.size&&(e[n]-=t.size);let f=s[t.stack]||{size:0,count:1};f.size=Math.max(f.size,t.horizontal?o.height:o.width),t.size=f.size/f.count,e[n]+=t.size}o.getPadding&&Mr(r,o.getPadding());let a=Math.max(0,i.outerWidth-Ao(r,e,"left","right")),l=Math.max(0,i.outerHeight-Ao(r,e,"top","bottom")),c=a!==e.w,h=l!==e.h;return e.w=a,e.h=l,t.horizontal?{same:c,other:h}:{same:h,other:c}}function mh(e){let i=e.maxPadding;function t(s){let n=Math.max(i[s]-e[s],0);return e[s]+=n,n}e.y+=t("top"),e.x+=t("left"),t("right"),t("bottom")}function xh(e,i){let t=i.maxPadding;function s(n){let o={left:0,top:0,right:0,bottom:0};return n.forEach(r=>{o[r]=Math.max(i[r],t[r])}),o}return s(e?["left","right"]:["top","bottom"])}function Be(e,i,t,s){let n=[],o,r,a,l,c,h;for(o=0,r=e.length,c=0;o{typeof g.beforeLayout=="function"&&g.beforeLayout()});let h=l.reduce((g,m)=>m.box.options&&m.box.options.display===!1?g:g+1,0)||1,f=Object.freeze({outerWidth:i,outerHeight:t,padding:n,availableWidth:o,availableHeight:r,vBoxMaxWidth:o/2/h,hBoxMaxHeight:r/2}),d=Object.assign({},n);Mr(d,K(s));let u=Object.assign({maxPadding:d,w:o,h:r,x:n.left,y:n.top},n),p=uh(l.concat(c),f);Be(a.fullSize,u,f,p),Be(l,u,f,p),Be(c,u,f,p)&&Be(l,u,f,p),mh(u),Do(a.leftAndTop,u,f,p),u.x+=u.w,u.y+=u.h,Do(a.rightAndBottom,u,f,p),e.chartArea={left:u.left,top:u.top,right:u.left+u.w,bottom:u.top+u.h,height:u.h,width:u.w},L(a.chartArea,g=>{let m=g.box;Object.assign(m,e.chartArea),m.update(u.w,u.h,{left:0,top:0,right:0,bottom:0})})}},Li=class{acquireContext(i,t){}releaseContext(i){return!1}addEventListener(i,t,s){}removeEventListener(i,t,s){}getDevicePixelRatio(){return 1}getMaximumSize(i,t,s,n){return t=Math.max(0,t||i.width),s=s||i.height,{width:t,height:Math.max(0,n?Math.floor(t/n):s)}}isAttached(i){return!0}updateConfig(i){}},Ys=class extends Li{acquireContext(i){return i&&i.getContext&&i.getContext("2d")||null}updateConfig(i){i.options.animation=!1}},Ai="$chartjs",bh={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},To=e=>e===null||e==="";function _h(e,i){let t=e.style,s=e.getAttribute("height"),n=e.getAttribute("width");if(e[Ai]={initial:{height:s,width:n,style:{display:t.display,height:t.height,width:t.width}}},t.display=t.display||"block",t.boxSizing=t.boxSizing||"border-box",To(n)){let o=As(e,"width");o!==void 0&&(e.width=o)}if(To(s))if(e.style.height==="")e.height=e.width/(i||2);else{let o=As(e,"height");o!==void 0&&(e.height=o)}return e}var wr=fo?{passive:!0}:!1;function yh(e,i,t){e&&e.addEventListener(i,t,wr)}function vh(e,i,t){e&&e.canvas&&e.canvas.removeEventListener(i,t,wr)}function Mh(e,i){let t=bh[e.type]||e.type,{x:s,y:n}=Tt(e,i);return{type:t,chart:i,native:e,x:s!==void 0?s:null,y:n!==void 0?n:null}}function Ri(e,i){for(let t of e)if(t===i||t.contains(i))return!0}function wh(e,i,t){let s=e.canvas,n=new MutationObserver(o=>{let r=!1;for(let a of o)r=r||Ri(a.addedNodes,s),r=r&&!Ri(a.removedNodes,s);r&&t()});return n.observe(document,{childList:!0,subtree:!0}),n}function Sh(e,i,t){let s=e.canvas,n=new MutationObserver(o=>{let r=!1;for(let a of o)r=r||Ri(a.removedNodes,s),r=r&&!Ri(a.addedNodes,s);r&&t()});return n.observe(document,{childList:!0,subtree:!0}),n}var Ne=new Map,Lo=0;function Sr(){let e=window.devicePixelRatio;e!==Lo&&(Lo=e,Ne.forEach((i,t)=>{t.currentDevicePixelRatio!==e&&i()}))}function kh(e,i){Ne.size||window.addEventListener("resize",Sr),Ne.set(e,i)}function Ch(e){Ne.delete(e),Ne.size||window.removeEventListener("resize",Sr)}function Ph(e,i,t){let s=e.canvas,n=s&&yi(s);if(!n)return;let o=ms((a,l)=>{let c=n.clientWidth;t(a,l),c{let l=a[0],c=l.contentRect.width,h=l.contentRect.height;c===0&&h===0||o(c,h)});return r.observe(n),kh(e,o),r}function js(e,i,t){t&&t.disconnect(),i==="resize"&&Ch(e)}function Oh(e,i,t){let s=e.canvas,n=ms(o=>{e.ctx!==null&&t(Mh(o,e))},e);return yh(s,i,n),n}var Xs=class extends Li{acquireContext(i,t){let s=i&&i.getContext&&i.getContext("2d");return s&&s.canvas===i?(_h(i,t),s):null}releaseContext(i){let t=i.canvas;if(!t[Ai])return!1;let s=t[Ai].initial;["height","width"].forEach(o=>{let r=s[o];T(r)?t.removeAttribute(o):t.setAttribute(o,r)});let n=s.style||{};return Object.keys(n).forEach(o=>{t.style[o]=n[o]}),t.width=t.width,delete t[Ai],!0}addEventListener(i,t,s){this.removeEventListener(i,t);let n=i.$proxies||(i.$proxies={}),r={attach:wh,detach:Sh,resize:Ph}[t]||Oh;n[t]=r(i,t,s)}removeEventListener(i,t){let s=i.$proxies||(i.$proxies={}),n=s[t];if(!n)return;({attach:js,detach:js,resize:js}[t]||vh)(i,t,n),s[t]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(i,t,s,n){return ho(i,t,s,n)}isAttached(i){let t=i&&yi(i);return!!(t&&t.isConnected)}};function Ah(e){return!_i()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?Ys:Xs}var lt=class{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(i){let{x:t,y:s}=this.getProps(["x","y"],i);return{x:t,y:s}}hasValue(){return $t(this.x)&&$t(this.y)}getProps(i,t){let s=this.$animations;if(!t||!s)return this;let n={};return i.forEach(o=>{n[o]=s[o]&&s[o].active()?s[o]._to:this[o]}),n}};function Dh(e,i){let t=e.options.ticks,s=Th(e),n=Math.min(t.maxTicksLimit||s,s),o=t.major.enabled?Rh(i):[],r=o.length,a=o[0],l=o[r-1],c=[];if(r>n)return Ih(i,c,o,r/n),c;let h=Lh(o,i,n);if(r>0){let f,d,u=r>1?Math.round((l-a)/(r-1)):null;for(wi(i,c,h,T(u)?0:a-u,a),f=0,d=r-1;fn)return l}return Math.max(n,1)}function Rh(e){let i=[],t,s;for(t=0,s=e.length;te==="left"?"right":e==="right"?"left":e,Ro=(e,i,t)=>i==="top"||i==="left"?e[i]+t:e[i]-t,Io=(e,i)=>Math.min(i||e,e);function Eo(e,i){let t=[],s=e.length/i,n=e.length,o=0;for(;or+a)))return l}function Bh(e,i){L(e,t=>{let s=t.gc,n=s.length/2,o;if(n>i){for(o=0;os?s:t,s=n&&t>s?t:s,{min:J(t,J(s,t)),max:J(s,J(t,s))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){let i=this.chart.data;return this.options.labels||(this.isHorizontal()?i.xLabels:i.yLabels)||i.labels||[]}getLabelItems(i=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(i))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){I(this.options.beforeUpdate,[this])}update(i,t,s){let{beginAtZero:n,grace:o,ticks:r}=this.options,a=r.sampleSize;this.beforeUpdate(),this.maxWidth=i,this.maxHeight=t,this._margins=s=Object.assign({left:0,right:0,top:0,bottom:0},s),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+s.left+s.right:this.height+s.top+s.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=no(this,o,n),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let l=a=o||s<=1||!this.isHorizontal()){this.labelRotation=n;return}let h=this._getLabelSizes(),f=h.widest.width,d=h.highest.height,u=U(this.chart.width-f,0,this.maxWidth);a=i.offset?this.maxWidth/s:u/(s-1),f+6>a&&(a=u/(s-(i.offset?.5:1)),l=this.maxHeight-Fe(i.grid)-t.padding-Fo(i.title,this.chart.options.font),c=Math.sqrt(f*f+d*d),r=di(Math.min(Math.asin(U((h.highest.height+6)/a,-1,1)),Math.asin(U(l/c,-1,1))-Math.asin(U(d/c,-1,1)))),r=Math.max(n,Math.min(o,r))),this.labelRotation=r}afterCalculateLabelRotation(){I(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){I(this.options.beforeFit,[this])}fit(){let i={width:0,height:0},{chart:t,options:{ticks:s,title:n,grid:o}}=this,r=this._isVisible(),a=this.isHorizontal();if(r){let l=Fo(n,t.options.font);if(a?(i.width=this.maxWidth,i.height=Fe(o)+l):(i.height=this.maxHeight,i.width=Fe(o)+l),s.display&&this.ticks.length){let{first:c,last:h,widest:f,highest:d}=this._getLabelSizes(),u=s.padding*2,p=nt(this.labelRotation),g=Math.cos(p),m=Math.sin(p);if(a){let b=s.mirror?0:m*f.width+g*d.height;i.height=Math.min(this.maxHeight,i.height+b+u)}else{let b=s.mirror?0:g*f.width+m*d.height;i.width=Math.min(this.maxWidth,i.width+b+u)}this._calculatePadding(c,h,m,g)}}this._handleMargins(),a?(this.width=this._length=t.width-this._margins.left-this._margins.right,this.height=i.height):(this.width=i.width,this.height=this._length=t.height-this._margins.top-this._margins.bottom)}_calculatePadding(i,t,s,n){let{ticks:{align:o,padding:r},position:a}=this.options,l=this.labelRotation!==0,c=a!=="top"&&this.axis==="x";if(this.isHorizontal()){let h=this.getPixelForTick(0)-this.left,f=this.right-this.getPixelForTick(this.ticks.length-1),d=0,u=0;l?c?(d=n*i.width,u=s*t.height):(d=s*i.height,u=n*t.width):o==="start"?u=t.width:o==="end"?d=i.width:o!=="inner"&&(d=i.width/2,u=t.width/2),this.paddingLeft=Math.max((d-h+r)*this.width/(this.width-h),0),this.paddingRight=Math.max((u-f+r)*this.width/(this.width-f),0)}else{let h=t.height/2,f=i.height/2;o==="start"?(h=0,f=i.height):o==="end"&&(h=t.height,f=0),this.paddingTop=h+r,this.paddingBottom=f+r}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){I(this.options.afterFit,[this])}isHorizontal(){let{axis:i,position:t}=this.options;return t==="top"||t==="bottom"||i==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(i){this.beforeTickToLabelConversion(),this.generateTickLabels(i);let t,s;for(t=0,s=i.length;t({width:r[k]||0,height:a[k]||0});return{first:w(0),last:w(t-1),widest:w(v),highest:w(S),widths:r,heights:a}}getLabelForValue(i){return i}getPixelForValue(i,t){return NaN}getValueForPixel(i){}getPixelForTick(i){let t=this.ticks;return i<0||i>t.length-1?null:this.getPixelForValue(t[i].value)}getPixelForDecimal(i){this._reversePixels&&(i=1-i);let t=this._startPixel+i*this._length;return Xn(this._alignToPixels?Ot(this.chart,t,0):t)}getDecimalForPixel(i){let t=(i-this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){let{min:i,max:t}=this;return i<0&&t<0?t:i>0&&t>0?i:0}getContext(i){let t=this.ticks||[];if(i>=0&&ia*n?a/s:l/n:l*n0}_computeGridLineItems(i){let t=this.axis,s=this.chart,n=this.options,{grid:o,position:r,border:a}=n,l=o.offset,c=this.isHorizontal(),f=this.ticks.length+(l?1:0),d=Fe(o),u=[],p=a.setContext(this.getContext()),g=p.display?p.width:0,m=g/2,b=function(N){return Ot(s,N,g)},x,y,M,_,v,S,w,k,O,P,D,Y;if(r==="top")x=b(this.bottom),S=this.bottom-d,k=x-m,P=b(i.top)+m,Y=i.bottom;else if(r==="bottom")x=b(this.top),P=i.top,Y=b(i.bottom)-m,S=x+m,k=this.top+d;else if(r==="left")x=b(this.right),v=this.right-d,w=x-m,O=b(i.left)+m,D=i.right;else if(r==="right")x=b(this.left),O=i.left,D=b(i.right)-m,v=x+m,w=this.left+d;else if(t==="x"){if(r==="center")x=b((i.top+i.bottom)/2+.5);else if(A(r)){let N=Object.keys(r)[0],H=r[N];x=b(this.chart.scales[N].getPixelForValue(H))}P=i.top,Y=i.bottom,S=x+m,k=S+d}else if(t==="y"){if(r==="center")x=b((i.left+i.right)/2);else if(A(r)){let N=Object.keys(r)[0],H=r[N];x=b(this.chart.scales[N].getPixelForValue(H))}v=x-m,w=v-d,O=i.left,D=i.right}let it=C(n.ticks.maxTicksLimit,f),R=Math.max(1,Math.ceil(f/it));for(y=0;y0&&(Nt-=jt/2);break}Ge={left:Nt,top:Me,width:jt+Gt.width,height:ve+Gt.height,color:R.backdropColor}}m.push({label:M,font:k,textOffset:D,options:{rotation:g,color:H,strokeColor:rt,strokeWidth:q,textAlign:qt,textBaseline:Y,translation:[_,v],backdrop:Ge}})}return m}_getXAxisLabelAlignment(){let{position:i,ticks:t}=this.options;if(-nt(this.labelRotation))return i==="top"?"left":"right";let n="center";return t.align==="start"?n="left":t.align==="end"?n="right":t.align==="inner"&&(n="inner"),n}_getYAxisLabelAlignment(i){let{position:t,ticks:{crossAlign:s,mirror:n,padding:o}}=this.options,r=this._getLabelSizes(),a=i+o,l=r.widest.width,c,h;return t==="left"?n?(h=this.right+o,s==="near"?c="left":s==="center"?(c="center",h+=l/2):(c="right",h+=l)):(h=this.right-a,s==="near"?c="right":s==="center"?(c="center",h-=l/2):(c="left",h=this.left)):t==="right"?n?(h=this.left+o,s==="near"?c="right":s==="center"?(c="center",h-=l/2):(c="left",h-=l)):(h=this.left+a,s==="near"?c="left":s==="center"?(c="center",h+=l/2):(c="right",h=this.right)):c="right",{textAlign:c,x:h}}_computeLabelArea(){if(this.options.ticks.mirror)return;let i=this.chart,t=this.options.position;if(t==="left"||t==="right")return{top:0,left:this.left,bottom:i.height,right:this.right};if(t==="top"||t==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:i.width}}drawBackground(){let{ctx:i,options:{backgroundColor:t},left:s,top:n,width:o,height:r}=this;t&&(i.save(),i.fillStyle=t,i.fillRect(s,n,o,r),i.restore())}getLineWidthForValue(i){let t=this.options.grid;if(!this._isVisible()||!t.display)return 0;let n=this.ticks.findIndex(o=>o.value===i);return n>=0?t.setContext(this.getContext(n)).lineWidth:0}drawGrid(i){let t=this.options.grid,s=this.ctx,n=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(i)),o,r,a=(l,c,h)=>{!h.width||!h.color||(s.save(),s.lineWidth=h.width,s.strokeStyle=h.color,s.setLineDash(h.borderDash||[]),s.lineDashOffset=h.borderDashOffset,s.beginPath(),s.moveTo(l.x,l.y),s.lineTo(c.x,c.y),s.stroke(),s.restore())};if(t.display)for(o=0,r=n.length;o{this.draw(o)}}]:[{z:s,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:n,draw:()=>{this.drawBorder()}},{z:t,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(i){let t=this.chart.getSortedVisibleDatasetMetas(),s=this.axis+"AxisID",n=[],o,r;for(o=0,r=t.length;o{let s=t.split("."),n=s.pop(),o=[e].concat(s).join("."),r=i[t].split("."),a=r.pop(),l=r.join(".");B.route(o,n,l,a)})}function Uh(e){return"id"in e&&"defaults"in e}var Ks=class{constructor(){this.controllers=new ce(Rt,"datasets",!0),this.elements=new ce(lt,"elements"),this.plugins=new ce(Object,"plugins"),this.scales=new ce(Kt,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...i){this._each("register",i)}remove(...i){this._each("unregister",i)}addControllers(...i){this._each("register",i,this.controllers)}addElements(...i){this._each("register",i,this.elements)}addPlugins(...i){this._each("register",i,this.plugins)}addScales(...i){this._each("register",i,this.scales)}getController(i){return this._get(i,this.controllers,"controller")}getElement(i){return this._get(i,this.elements,"element")}getPlugin(i){return this._get(i,this.plugins,"plugin")}getScale(i){return this._get(i,this.scales,"scale")}removeControllers(...i){this._each("unregister",i,this.controllers)}removeElements(...i){this._each("unregister",i,this.elements)}removePlugins(...i){this._each("unregister",i,this.plugins)}removeScales(...i){this._each("unregister",i,this.scales)}_each(i,t,s){[...t].forEach(n=>{let o=s||this._getRegistryForType(n);s||o.isForType(n)||o===this.plugins&&n.id?this._exec(i,o,n):L(n,r=>{let a=s||this._getRegistryForType(r);this._exec(i,a,r)})})}_exec(i,t,s){let n=fi(i);I(s["before"+n],[],s),t[i](s),I(s["after"+n],[],s)}_getRegistryForType(i){for(let t=0;to.filter(a=>!r.some(l=>a.plugin.id===l.plugin.id));this._notify(n(t,s),i,"stop"),this._notify(n(s,t),i,"start")}};function Yh(e){let i={},t=[],s=Object.keys(pt.plugins.items);for(let o=0;o1&&zo(e[0].toLowerCase());if(s)return s}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function Bo(e,i,t){if(t[i+"AxisID"]===e)return{axis:i}}function Qh(e,i){if(i.data&&i.data.datasets){let t=i.data.datasets.filter(s=>s.xAxisID===e||s.yAxisID===e);if(t.length)return Bo(e,"x",t[0])||Bo(e,"y",t[0])}return{}}function tf(e,i){let t=Pt[e.type]||{scales:{}},s=i.scales||{},n=Gs(e.type,i),o=Object.create(null);return Object.keys(s).forEach(r=>{let a=s[r];if(!A(a))return console.error(`Invalid scale configuration for scale: ${r}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${r}`);let l=Zs(r,a,Qh(r,e),B.scales[a.type]),c=Zh(l,n),h=t.scales||{};o[r]=ee(Object.create(null),[{axis:l},a,h[l],h[c]])}),e.data.datasets.forEach(r=>{let a=r.type||e.type,l=r.indexAxis||Gs(a,i),h=(Pt[a]||{}).scales||{};Object.keys(h).forEach(f=>{let d=Gh(f,l),u=r[d+"AxisID"]||d;o[u]=o[u]||Object.create(null),ee(o[u],[{axis:d},s[u],h[f]])})}),Object.keys(o).forEach(r=>{let a=o[r];ee(a,[B.scales[a.type],B.scale])}),o}function kr(e){let i=e.options||(e.options={});i.plugins=C(i.plugins,{}),i.scales=tf(e,i)}function Cr(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function ef(e){return e=e||{},e.data=Cr(e.data),kr(e),e}var jo=new Map,Pr=new Set;function Si(e,i){let t=jo.get(e);return t||(t=i(),jo.set(e,t),Pr.add(t)),t}var ze=(e,i,t)=>{let s=_t(i,t);s!==void 0&&e.add(s)},Js=class{constructor(i){this._config=ef(i),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(i){this._config.type=i}get data(){return this._config.data}set data(i){this._config.data=Cr(i)}get options(){return this._config.options}set options(i){this._config.options=i}get plugins(){return this._config.plugins}update(){let i=this._config;this.clearCache(),kr(i)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(i){return Si(i,()=>[[`datasets.${i}`,""]])}datasetAnimationScopeKeys(i,t){return Si(`${i}.transition.${t}`,()=>[[`datasets.${i}.transitions.${t}`,`transitions.${t}`],[`datasets.${i}`,""]])}datasetElementScopeKeys(i,t){return Si(`${i}-${t}`,()=>[[`datasets.${i}.elements.${t}`,`datasets.${i}`,`elements.${t}`,""]])}pluginScopeKeys(i){let t=i.id,s=this.type;return Si(`${s}-plugin-${t}`,()=>[[`plugins.${t}`,...i.additionalOptionScopes||[]]])}_cachedScopes(i,t){let s=this._scopeCache,n=s.get(i);return(!n||t)&&(n=new Map,s.set(i,n)),n}getOptionScopes(i,t,s){let{options:n,type:o}=this,r=this._cachedScopes(i,s),a=r.get(t);if(a)return a;let l=new Set;t.forEach(h=>{i&&(l.add(i),h.forEach(f=>ze(l,i,f))),h.forEach(f=>ze(l,n,f)),h.forEach(f=>ze(l,Pt[o]||{},f)),h.forEach(f=>ze(l,B,f)),h.forEach(f=>ze(l,gi,f))});let c=Array.from(l);return c.length===0&&c.push(Object.create(null)),Pr.has(t)&&r.set(t,c),c}chartOptionScopes(){let{options:i,type:t}=this;return[i,Pt[t]||{},B.datasets[t]||{},{type:t},B,gi]}resolveNamedOptions(i,t,s,n=[""]){let o={$shared:!0},{resolver:r,subPrefixes:a}=No(this._resolverCache,i,n),l=r;if(nf(r,t)){o.$shared=!1,s=xt(s)?s():s;let c=this.createResolver(i,s,a);l=Ht(r,s,c)}for(let c of t)o[c]=l[c];return o}createResolver(i,t,s=[""],n){let{resolver:o}=No(this._resolverCache,i,s);return A(t)?Ht(o,t,void 0,n):o}};function No(e,i,t){let s=e.get(i);s||(s=new Map,e.set(i,s));let n=t.join(),o=s.get(n);return o||(o={resolver:bi(i,t),subPrefixes:t.filter(a=>!a.toLowerCase().includes("hover"))},s.set(n,o)),o}var sf=e=>A(e)&&Object.getOwnPropertyNames(e).some(i=>xt(e[i]));function nf(e,i){let{isScriptable:t,isIndexable:s}=Ss(e);for(let n of i){let o=t(n),r=s(n),a=(r||o)&&e[n];if(o&&(xt(a)||sf(a))||r&&E(a))return!0}return!1}var of="4.4.4",rf=["top","bottom","left","right","chartArea"];function Wo(e,i){return e==="top"||e==="bottom"||rf.indexOf(e)===-1&&i==="x"}function Vo(e,i){return function(t,s){return t[e]===s[e]?t[i]-s[i]:t[e]-s[e]}}function Ho(e){let i=e.chart,t=i.options.animation;i.notifyPlugins("afterRender"),I(t&&t.onComplete,[e],i)}function af(e){let i=e.chart,t=i.options.animation;I(t&&t.onProgress,[e],i)}function Or(e){return _i()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}var Di={},$o=e=>{let i=Or(e);return Object.values(Di).filter(t=>t.canvas===i).pop()};function lf(e,i,t){let s=Object.keys(e);for(let n of s){let o=+n;if(o>=i){let r=e[n];delete e[n],(t>0||o>i)&&(e[o+t]=r)}}}function cf(e,i,t,s){return!t||e.type==="mouseout"?null:s?i:e}function ki(e,i,t){return e.options.clip?e[t]:i[t]}function hf(e,i){let{xScale:t,yScale:s}=e;return t&&s?{left:ki(t,i,"left"),right:ki(t,i,"right"),top:ki(s,i,"top"),bottom:ki(s,i,"bottom")}:i}var zi=(()=>{class e{static defaults=B;static instances=Di;static overrides=Pt;static registry=pt;static version=of;static getChart=$o;static register(...t){pt.add(...t),Uo()}static unregister(...t){pt.remove(...t),Uo()}constructor(t,s){let n=this.config=new Js(s),o=Or(t),r=$o(o);if(r)throw new Error("Canvas is already in use. Chart with ID '"+r.id+"' must be destroyed before the canvas with ID '"+r.canvas.id+"' can be reused.");let a=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||Ah(o)),this.platform.updateConfig(n);let l=this.platform.acquireContext(o,a.aspectRatio),c=l&&l.canvas,h=c&&c.height,f=c&&c.width;if(this.id=Wn(),this.ctx=l,this.canvas=c,this.width=f,this.height=h,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new qs,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=Jn(d=>this.update(d),a.resizeDelay||0),this._dataChanges=[],Di[this.id]=this,!l||!c){console.error("Failed to create chart: can't acquire context from the given item");return}vt.listen(this,"complete",Ho),vt.listen(this,"progress",af),this._initialize(),this.attached&&this.update()}get aspectRatio(){let{options:{aspectRatio:t,maintainAspectRatio:s},width:n,height:o,_aspectRatio:r}=this;return T(t)?s&&r?r:o?n/o:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return pt}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Os(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return vs(this.canvas,this.ctx),this}stop(){return vt.stop(this),this}resize(t,s){vt.running(this)?this._resizeBeforeDraw={width:t,height:s}:this._resize(t,s)}_resize(t,s){let n=this.options,o=this.canvas,r=n.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(o,t,s,r),l=n.devicePixelRatio||this.platform.getDevicePixelRatio(),c=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,Os(this,l,!0)&&(this.notifyPlugins("resize",{size:a}),I(n.onResize,[this,a],this),this.attached&&this._doResize(c)&&this.render())}ensureScalesHaveIDs(){let s=this.options.scales||{};L(s,(n,o)=>{n.id=o})}buildOrUpdateScales(){let t=this.options,s=t.scales,n=this.scales,o=Object.keys(n).reduce((a,l)=>(a[l]=!1,a),{}),r=[];s&&(r=r.concat(Object.keys(s).map(a=>{let l=s[a],c=Zs(a,l),h=c==="r",f=c==="x";return{options:l,dposition:h?"chartArea":f?"bottom":"left",dtype:h?"radialLinear":f?"category":"linear"}}))),L(r,a=>{let l=a.options,c=l.id,h=Zs(c,l),f=C(l.type,a.dtype);(l.position===void 0||Wo(l.position,h)!==Wo(a.dposition))&&(l.position=a.dposition),o[c]=!0;let d=null;if(c in n&&n[c].type===f)d=n[c];else{let u=pt.getScale(f);d=new u({id:c,type:f,ctx:this.ctx,chart:this}),n[d.id]=d}d.init(l,t)}),L(o,(a,l)=>{a||delete n[l]}),L(n,a=>{G.configure(this,a,a.options),G.addBox(this,a)})}_updateMetasets(){let t=this._metasets,s=this.data.datasets.length,n=t.length;if(t.sort((o,r)=>o.index-r.index),n>s){for(let o=s;os.length&&delete this._stacks,t.forEach((n,o)=>{s.filter(r=>r===n._dataset).length===0&&this._destroyDatasetMeta(o)})}buildOrUpdateControllers(){let t=[],s=this.data.datasets,n,o;for(this._removeUnreferencedMetasets(),n=0,o=s.length;n{this.getDatasetMeta(s).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){let s=this.config;s.update();let n=this._options=s.createResolver(s.chartOptionScopes(),this.getContext()),o=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;let r=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let h=0,f=this.data.datasets.length;h{h.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Vo("z","_idx"));let{_active:l,_lastEvent:c}=this;c?this._eventHandler(c,!0):l.length&&this._updateHoverStyles(l,l,!0),this.render()}_updateScales(){L(this.scales,t=>{G.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){let t=this.options,s=new Set(Object.keys(this._listeners)),n=new Set(t.events);(!ls(s,n)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){let{_hiddenIndices:t}=this,s=this._getUniformDataChanges()||[];for(let{method:n,start:o,count:r}of s){let a=n==="_removeElements"?-r:r;lf(t,o,a)}}_getUniformDataChanges(){let t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];let s=this.data.datasets.length,n=r=>new Set(t.filter(a=>a[0]===r).map((a,l)=>l+","+a.splice(1).join(","))),o=n(0);for(let r=1;rr.split(",")).map(r=>({method:r[1],start:+r[2],count:+r[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;G.update(this,this.width,this.height,t);let s=this.chartArea,n=s.width<=0||s.height<=0;this._layers=[],L(this.boxes,o=>{n&&o.position==="chartArea"||(o.configure&&o.configure(),this._layers.push(...o._layers()))},this),this._layers.forEach((o,r)=>{o._idx=r}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let s=0,n=this.data.datasets.length;s=0;--s)this._drawDataset(t[s]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){let s=this.ctx,n=t._clip,o=!n.disabled,r=hf(t,this.chartArea),a={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",a)!==!1&&(o&&Te(s,{left:n.left===!1?0:r.left-n.left,right:n.right===!1?this.width:r.right+n.right,top:n.top===!1?0:r.top-n.top,bottom:n.bottom===!1?this.height:r.bottom+n.bottom}),t.controller.draw(),o&&Le(s),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}isPointInArea(t){return ht(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,s,n,o){let r=hh.modes[s];return typeof r=="function"?r(this,t,n,o):[]}getDatasetMeta(t){let s=this.data.datasets[t],n=this._metasets,o=n.filter(r=>r&&r._dataset===s).pop();return o||(o={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:s&&s.order||0,index:t,_dataset:s,_parsed:[],_sorted:!1},n.push(o)),o}getContext(){return this.$context||(this.$context=yt(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){let s=this.data.datasets[t];if(!s)return!1;let n=this.getDatasetMeta(t);return typeof n.hidden=="boolean"?!n.hidden:!s.hidden}setDatasetVisibility(t,s){let n=this.getDatasetMeta(t);n.hidden=!s}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,s,n){let o=n?"show":"hide",r=this.getDatasetMeta(t),a=r.controller._resolveAnimations(void 0,o);ie(s)?(r.data[s].hidden=!n,this.update()):(this.setDatasetVisibility(t,n),a.update(r,{visible:n}),this.update(l=>l.datasetIndex===t?o:void 0))}hide(t,s){this._updateVisibility(t,s,!1)}show(t,s){this._updateVisibility(t,s,!0)}_destroyDatasetMeta(t){let s=this._metasets[t];s&&s.controller&&s.controller._destroy(),delete this._metasets[t]}_stop(){let t,s;for(this.stop(),vt.remove(this),t=0,s=this.data.datasets.length;t{s.addEventListener(this,r,a),t[r]=a},o=(r,a,l)=>{r.offsetX=a,r.offsetY=l,this._eventHandler(r)};L(this.options.events,r=>n(r,o))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});let t=this._responsiveListeners,s=this.platform,n=(c,h)=>{s.addEventListener(this,c,h),t[c]=h},o=(c,h)=>{t[c]&&(s.removeEventListener(this,c,h),delete t[c])},r=(c,h)=>{this.canvas&&this.resize(c,h)},a,l=()=>{o("attach",l),this.attached=!0,this.resize(),n("resize",r),n("detach",a)};a=()=>{this.attached=!1,o("resize",r),this._stop(),this._resize(0,0),n("attach",l)},s.isAttached(this.canvas)?l():a()}unbindEvents(){L(this._listeners,(t,s)=>{this.platform.removeEventListener(this,s,t)}),this._listeners={},L(this._responsiveListeners,(t,s)=>{this.platform.removeEventListener(this,s,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,s,n){let o=n?"set":"remove",r,a,l,c;for(s==="dataset"&&(r=this.getDatasetMeta(t[0].datasetIndex),r.controller["_"+o+"DatasetHoverStyle"]()),l=0,c=t.length;l{let l=this.getDatasetMeta(r);if(!l)throw new Error("No dataset found at index "+r);return{datasetIndex:r,element:l.data[a],index:a}});!Ae(n,s)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,s))}notifyPlugins(t,s,n){return this._plugins.notify(this,t,s,n)}isPluginEnabled(t){return this._plugins._cache.filter(s=>s.plugin.id===t).length===1}_updateHoverStyles(t,s,n){let o=this.options.hover,r=(c,h)=>c.filter(f=>!h.some(d=>f.datasetIndex===d.datasetIndex&&f.index===d.index)),a=r(s,t),l=n?t:r(t,s);a.length&&this.updateHoverStyle(a,o.mode,!1),l.length&&o.mode&&this.updateHoverStyle(l,o.mode,!0)}_eventHandler(t,s){let n={event:t,replay:s,cancelable:!0,inChartArea:this.isPointInArea(t)},o=a=>(a.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",n,o)===!1)return;let r=this._handleEvent(t,s,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,o),(r||n.changed)&&this.render(),this}_handleEvent(t,s,n){let{_active:o=[],options:r}=this,a=s,l=this._getActiveElements(t,o,n,a),c=$n(t),h=cf(t,this._lastEvent,n,c);n&&(this._lastEvent=null,I(r.onHover,[t,l,this],this),c&&I(r.onClick,[t,l,this],this));let f=!Ae(l,o);return(f||s)&&(this._active=l,this._updateHoverStyles(l,o,s)),this._lastEvent=h,f}_getActiveElements(t,s,n,o){if(t.type==="mouseout")return[];if(!n)return s;let r=this.options.hover;return this.getElementsAtEventForMode(t,r.mode,r,o)}}return e})();function Uo(){return L(zi.instances,e=>e._plugins.invalidate())}function ff(e,i,t){let{startAngle:s,pixelMargin:n,x:o,y:r,outerRadius:a,innerRadius:l}=i,c=n/a;e.beginPath(),e.arc(o,r,a,s-c,t+c),l>n?(c=n/l,e.arc(o,r,l,t+c,s-c,!0)):e.arc(o,r,n,t+V,s-V),e.closePath(),e.clip()}function df(e){return xi(e,["outerStart","outerEnd","innerStart","innerEnd"])}function uf(e,i,t,s){let n=df(e.options.borderRadius),o=(t-i)/2,r=Math.min(o,s*i/2),a=l=>{let c=(t-Math.min(o,l))*s/2;return U(l,0,Math.min(o,c))};return{outerStart:a(n.outerStart),outerEnd:a(n.outerEnd),innerStart:U(n.innerStart,0,r),innerEnd:U(n.innerEnd,0,r)}}function le(e,i,t,s){return{x:t+e*Math.cos(i),y:s+e*Math.sin(i)}}function Ii(e,i,t,s,n,o){let{x:r,y:a,startAngle:l,pixelMargin:c,innerRadius:h}=i,f=Math.max(i.outerRadius+s+t-c,0),d=h>0?h+s+t+c:0,u=0,p=n-l;if(s){let R=h>0?h-s:0,N=f>0?f-s:0,H=(R+N)/2,rt=H!==0?p*H/(H+s):p;u=(p-rt)/2}let g=Math.max(.001,p*f-t/F)/f,m=(p-g)/2,b=l+m+u,x=n-m-u,{outerStart:y,outerEnd:M,innerStart:_,innerEnd:v}=uf(i,d,f,x-b),S=f-y,w=f-M,k=b+y/S,O=x-M/w,P=d+_,D=d+v,Y=b+_/P,it=x-v/D;if(e.beginPath(),o){let R=(k+O)/2;if(e.arc(r,a,f,k,R),e.arc(r,a,f,R,O),M>0){let q=le(w,O,r,a);e.arc(q.x,q.y,M,O,x+V)}let N=le(D,x,r,a);if(e.lineTo(N.x,N.y),v>0){let q=le(D,it,r,a);e.arc(q.x,q.y,v,x+V,it+Math.PI)}let H=(x-v/d+(b+_/d))/2;if(e.arc(r,a,d,x-v/d,H,!0),e.arc(r,a,d,H,b+_/d,!0),_>0){let q=le(P,Y,r,a);e.arc(q.x,q.y,_,Y+Math.PI,b-V)}let rt=le(S,b,r,a);if(e.lineTo(rt.x,rt.y),y>0){let q=le(S,k,r,a);e.arc(q.x,q.y,y,b-V,k)}}else{e.moveTo(r,a);let R=Math.cos(k)*f+r,N=Math.sin(k)*f+a;e.lineTo(R,N);let H=Math.cos(O)*f+r,rt=Math.sin(O)*f+a;e.lineTo(H,rt)}e.closePath()}function pf(e,i,t,s,n){let{fullCircles:o,startAngle:r,circumference:a}=i,l=i.endAngle;if(o){Ii(e,i,t,s,l,n);for(let c=0;ci!=="borderDash"};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(i){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,i&&Object.assign(this,i)}inRange(i,t,s){let n=this.getProps(["x","y"],s),{angle:o,distance:r}=ds(n,{x:i,y:t}),{startAngle:a,endAngle:l,innerRadius:c,outerRadius:h,circumference:f}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],s),d=(this.options.spacing+this.options.borderWidth)/2,u=C(f,l-a),p=ne(o,a,l)&&a!==l,g=u>=z||p,m=dt(r,c+d,h+d);return g&&m}getCenterPoint(i){let{x:t,y:s,startAngle:n,endAngle:o,innerRadius:r,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],i),{offset:l,spacing:c}=this.options,h=(n+o)/2,f=(r+a+c+l)/2;return{x:t+Math.cos(h)*f,y:s+Math.sin(h)*f}}tooltipPosition(i){return this.getCenterPoint(i)}draw(i){let{options:t,circumference:s}=this,n=(t.offset||0)/4,o=(t.spacing||0)/2,r=t.circular;if(this.pixelMargin=t.borderAlign==="inner"?.33:0,this.fullCircles=s>z?Math.floor(s/z):0,s===0||this.innerRadius<0||this.outerRadius<0)return;i.save();let a=(this.startAngle+this.endAngle)/2;i.translate(Math.cos(a)*n,Math.sin(a)*n);let l=1-Math.sin(Math.min(F,s||0)),c=n*l;i.fillStyle=t.backgroundColor,i.strokeStyle=t.borderColor,pf(i,this,c,o,r),gf(i,this,c,o,r),i.restore()}};function Ar(e,i,t=i){e.lineCap=C(t.borderCapStyle,i.borderCapStyle),e.setLineDash(C(t.borderDash,i.borderDash)),e.lineDashOffset=C(t.borderDashOffset,i.borderDashOffset),e.lineJoin=C(t.borderJoinStyle,i.borderJoinStyle),e.lineWidth=C(t.borderWidth,i.borderWidth),e.strokeStyle=C(t.borderColor,i.borderColor)}function mf(e,i,t){e.lineTo(t.x,t.y)}function xf(e){return e.stepped?io:e.tension||e.cubicInterpolationMode==="monotone"?so:mf}function Dr(e,i,t={}){let s=e.length,{start:n=0,end:o=s-1}=t,{start:r,end:a}=i,l=Math.max(n,r),c=Math.min(o,a),h=na&&o>a;return{count:s,start:l,loop:i.loop,ilen:c(r+(c?a-M:M))%o,y=()=>{g!==m&&(e.lineTo(h,m),e.lineTo(h,g),e.lineTo(h,b))};for(l&&(u=n[x(0)],e.moveTo(u.x,u.y)),d=0;d<=a;++d){if(u=n[x(d)],u.skip)continue;let M=u.x,_=u.y,v=M|0;v===p?(_m&&(m=_),h=(f*h+M)/++f):(y(),e.lineTo(M,_),p=v,f=0,g=m=_),b=_}y()}function tn(e){let i=e.options,t=i.borderDash&&i.borderDash.length;return!e._decimated&&!e._loop&&!i.tension&&i.cubicInterpolationMode!=="monotone"&&!i.stepped&&!t?_f:bf}function yf(e){return e.stepped?uo:e.tension||e.cubicInterpolationMode==="monotone"?po:Ct}function vf(e,i,t,s){let n=i._path;n||(n=i._path=new Path2D,i.path(n,t,s)&&n.closePath()),Ar(e,i.options),e.stroke(n)}function Mf(e,i,t,s){let{segments:n,options:o}=i,r=tn(i);for(let a of n)Ar(e,o,a.style),e.beginPath(),r(e,i,a,{start:t,end:t+s-1})&&e.closePath(),e.stroke()}var wf=typeof Path2D=="function";function Sf(e,i,t,s){wf&&!i.options.segment?vf(e,i,t,s):Mf(e,i,t,s)}var Bi=(()=>{class e extends lt{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"};constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,s){let n=this.options;if((n.tension||n.cubicInterpolationMode==="monotone")&&!n.stepped&&!this._pointsUpdated){let o=n.spanGaps?this._loop:this._fullLoop;co(this._points,n,t,o,s),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=mo(this,this.options.segment))}first(){let t=this.segments,s=this.points;return t.length&&s[t[0].start]}last(){let t=this.segments,s=this.points,n=t.length;return n&&s[t[n-1].end]}interpolate(t,s){let n=this.options,o=t[s],r=this.points,a=Rs(this,{property:s,start:o,end:o});if(!a.length)return;let l=[],c=yf(n),h,f;for(h=0,f=a.length;h{class e extends lt{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,s,n){let o=this.options,{x:r,y:a}=this.getProps(["x","y"],n);return Math.pow(t-r,2)+Math.pow(s-a,2)e.replace("rgb(","rgba(").replace(")",", 0.5)"));function Lr(e){return sn[e%sn.length]}function Rr(e){return Xo[e%Xo.length]}function Lf(e,i){return e.borderColor=Lr(i),e.backgroundColor=Rr(i),++i}function Rf(e,i){return e.backgroundColor=e.data.map(()=>Lr(i++)),i}function If(e,i){return e.backgroundColor=e.data.map(()=>Rr(i++)),i}function Ef(e){let i=0;return(t,s)=>{let n=e.getDatasetMeta(s).controller;n instanceof fn?i=Rf(t,i):n instanceof yr?i=If(t,i):n&&(i=Lf(t,i))}}function Ko(e){let i;for(i in e)if(e[i].borderColor||e[i].backgroundColor)return!0;return!1}function Ff(e){return e&&(e.borderColor||e.backgroundColor)}var zf={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(e,i,t){if(!t.enabled)return;let{data:{datasets:s},options:n}=e.config,{elements:o}=n;if(!t.forceOverride&&(Ko(s)||Ff(n)||o&&Ko(o)))return;let r=Ef(e);s.forEach(r)}};function Bf(e,i,t,s,n){let o=n.samples||s;if(o>=t)return e.slice(i,i+t);let r=[],a=(t-2)/(o-2),l=0,c=i+t-1,h=i,f,d,u,p,g;for(r[l++]=e[h],f=0;fu&&(u=p,d=e[x],g=x);r[l++]=d,h=g}return r[l++]=e[c],r}function jf(e,i,t,s){let n=0,o=0,r,a,l,c,h,f,d,u,p,g,m=[],b=i+t-1,x=e[i].x,M=e[b].x-x;for(r=i;rg&&(g=c,d=r),n=(o*n+a.x)/++o;else{let v=r-1;if(!T(f)&&!T(d)){let S=Math.min(f,d),w=Math.max(f,d);S!==u&&S!==v&&m.push(Je(Ze({},e[S]),{x:n})),w!==u&&w!==v&&m.push(Je(Ze({},e[w]),{x:n}))}r>0&&v!==u&&m.push(e[v]),m.push(a),h=_,o=0,p=g=c,f=d=u=r}}return m}function Ir(e){if(e._decimated){let i=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,writable:!0,value:i})}}function qo(e){e.data.datasets.forEach(i=>{Ir(i)})}function Nf(e,i){let t=i.length,s=0,n,{iScale:o}=e,{min:r,max:a,minDefined:l,maxDefined:c}=o.getUserBounds();return l&&(s=U(ct(i,o.axis,r).lo,0,t-1)),c?n=U(ct(i,o.axis,a).hi+1,s,t)-s:n=t-s,{start:s,count:n}}var Wf={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,i,t)=>{if(!t.enabled){qo(e);return}let s=e.width;e.data.datasets.forEach((n,o)=>{let{_data:r,indexAxis:a}=n,l=e.getDatasetMeta(o),c=r||n.data;if(ae([a,e.options.indexAxis])==="y"||!l.controller.supportsDecimation)return;let h=e.scales[l.xAxisID];if(h.type!=="linear"&&h.type!=="time"||e.options.parsing)return;let{start:f,count:d}=Nf(l,c),u=t.threshold||4*s;if(d<=u){Ir(n);return}T(r)&&(n._data=c,delete n.data,Object.defineProperty(n,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(g){this._data=g}}));let p;switch(t.algorithm){case"lttb":p=Bf(c,f,d,s,t);break;case"min-max":p=jf(c,f,d,s);break;default:throw new Error(`Unsupported decimation algorithm '${t.algorithm}'`)}n._decimated=p})},destroy(e){qo(e)}};function Vf(e,i,t){let s=e.segments,n=e.points,o=i.points,r=[];for(let a of s){let{start:l,end:c}=a;c=dn(l,c,n);let h=nn(t,n[l],n[c],a.loop);if(!i.segments){r.push({source:a,target:h,start:n[l],end:n[c]});continue}let f=Rs(i,h);for(let d of f){let u=nn(t,o[d.start],o[d.end],d.loop),p=Ls(a,n,u);for(let g of p)r.push({source:g,target:d,start:{[t]:Go(h,u,"start",Math.max)},end:{[t]:Go(h,u,"end",Math.min)}})}}return r}function nn(e,i,t,s){if(s)return;let n=i[e],o=t[e];return e==="angle"&&(n=Z(n),o=Z(o)),{property:e,start:n,end:o}}function Hf(e,i){let{x:t=null,y:s=null}=e||{},n=i.points,o=[];return i.segments.forEach(({start:r,end:a})=>{a=dn(r,a,n);let l=n[r],c=n[a];s!==null?(o.push({x:l.x,y:s}),o.push({x:c.x,y:s})):t!==null&&(o.push({x:t,y:l.y}),o.push({x:t,y:c.y}))}),o}function dn(e,i,t){for(;i>e;i--){let s=t[i];if(!isNaN(s.x)&&!isNaN(s.y))break}return i}function Go(e,i,t,s){return e&&i?s(e[t],i[t]):e?e[t]:i?i[t]:0}function Er(e,i){let t=[],s=!1;return E(e)?(s=!0,t=e):t=Hf(e,i),t.length?new Bi({points:t,options:{tension:0},_loop:s,_fullLoop:s}):null}function Zo(e){return e&&e.fill!==!1}function $f(e,i,t){let n=e[i].fill,o=[i],r;if(!t)return n;for(;n!==!1&&o.indexOf(n)===-1;){if(!W(n))return n;if(r=e[n],!r)return!1;if(r.visible)return n;o.push(n),n=r.fill}return!1}function Uf(e,i,t){let s=qf(e);if(A(s))return isNaN(s.value)?!1:s;let n=parseFloat(s);return W(n)&&Math.floor(n)===n?Yf(s[0],i,n,t):["origin","start","end","stack","shape"].indexOf(s)>=0&&s}function Yf(e,i,t,s){return(e==="-"||e==="+")&&(t=i+t),t===i||t<0||t>=s?!1:t}function Xf(e,i){let t=null;return e==="start"?t=i.bottom:e==="end"?t=i.top:A(e)?t=i.getPixelForValue(e.value):i.getBasePixel&&(t=i.getBasePixel()),t}function Kf(e,i,t){let s;return e==="start"?s=t:e==="end"?s=i.options.reverse?i.min:i.max:A(e)?s=e.value:s=i.getBaseValue(),s}function qf(e){let i=e.options,t=i.fill,s=C(t&&t.target,t);return s===void 0&&(s=!!i.backgroundColor),s===!1||s===null?!1:s===!0?"origin":s}function Gf(e){let{scale:i,index:t,line:s}=e,n=[],o=s.segments,r=s.points,a=Zf(i,t);a.push(Er({x:null,y:i.bottom},s));for(let l=0;l=0;--r){let a=n[r].$filler;a&&(a.line.updateControlPoints(o,a.axis),s&&a.fill&&Vs(e.ctx,a,o))}},beforeDatasetsDraw(e,i,t){if(t.drawTime!=="beforeDatasetsDraw")return;let s=e.getSortedVisibleDatasetMetas();for(let n=s.length-1;n>=0;--n){let o=s[n].$filler;Zo(o)&&Vs(e.ctx,o,e.chartArea)}},beforeDatasetDraw(e,i,t){let s=i.meta.$filler;!Zo(s)||t.drawTime!=="beforeDatasetDraw"||Vs(e.ctx,s,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}},er=(e,i)=>{let{boxHeight:t=i,boxWidth:s=i}=e;return e.usePointStyle&&(t=Math.min(t,i),s=e.pointStyleWidth||Math.min(s,i)),{boxWidth:s,boxHeight:t,itemHeight:Math.max(i,t)}},ld=(e,i)=>e!==null&&i!==null&&e.datasetIndex===i.datasetIndex&&e.index===i.index,Fi=class extends lt{constructor(i){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=i.chart,this.options=i.options,this.ctx=i.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(i,t,s){this.maxWidth=i,this.maxHeight=t,this._margins=s,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){let i=this.options.labels||{},t=I(i.generateLabels,[this.chart],this)||[];i.filter&&(t=t.filter(s=>i.filter(s,this.chart.data))),i.sort&&(t=t.sort((s,n)=>i.sort(s,n,this.chart.data))),this.options.reverse&&t.reverse(),this.legendItems=t}fit(){let{options:i,ctx:t}=this;if(!i.display){this.width=this.height=0;return}let s=i.labels,n=$(s.font),o=n.size,r=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=er(s,o),c,h;t.font=n.string,this.isHorizontal()?(c=this.maxWidth,h=this._fitRows(r,o,a,l)+10):(h=this.maxHeight,c=this._fitCols(r,n,a,l)+10),this.width=Math.min(c,i.maxWidth||this.maxWidth),this.height=Math.min(h,i.maxHeight||this.maxHeight)}_fitRows(i,t,s,n){let{ctx:o,maxWidth:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],h=n+a,f=i;o.textAlign="left",o.textBaseline="middle";let d=-1,u=-h;return this.legendItems.forEach((p,g)=>{let m=s+t/2+o.measureText(p.text).width;(g===0||c[c.length-1]+m+2*a>r)&&(f+=h,c[c.length-(g>0?0:1)]=0,u+=h,d++),l[g]={left:0,top:u,row:d,width:m,height:n},c[c.length-1]+=m+a}),f}_fitCols(i,t,s,n){let{ctx:o,maxHeight:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],h=r-i,f=a,d=0,u=0,p=0,g=0;return this.legendItems.forEach((m,b)=>{let{itemWidth:x,itemHeight:y}=cd(s,t,o,m,n);b>0&&u+y+2*a>h&&(f+=d+a,c.push({width:d,height:u}),p+=d+a,g++,d=u=0),l[b]={left:p,top:u,col:g,width:x,height:y},d=Math.max(d,x),u+=y+a}),f+=d,c.push({width:d,height:u}),f}adjustHitBoxes(){if(!this.options.display)return;let i=this._computeTitleHeight(),{legendHitBoxes:t,options:{align:s,labels:{padding:n},rtl:o}}=this,r=Ut(o,this.left,this.width);if(this.isHorizontal()){let a=0,l=X(s,this.left+n,this.right-this.lineWidths[a]);for(let c of t)a!==c.row&&(a=c.row,l=X(s,this.left+n,this.right-this.lineWidths[a])),c.top+=this.top+i+n,c.left=r.leftForLtr(r.x(l),c.width),l+=c.width+n}else{let a=0,l=X(s,this.top+i+n,this.bottom-this.columnSizes[a].height);for(let c of t)c.col!==a&&(a=c.col,l=X(s,this.top+i+n,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+n,c.left=r.leftForLtr(r.x(c.left),c.width),l+=c.height+n}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){let i=this.ctx;Te(i,this),this._draw(),Le(i)}}_draw(){let{options:i,columnSizes:t,lineWidths:s,ctx:n}=this,{align:o,labels:r}=i,a=B.color,l=Ut(i.rtl,this.left,this.width),c=$(r.font),{padding:h}=r,f=c.size,d=f/2,u;this.drawTitle(),n.textAlign=l.textAlign("left"),n.textBaseline="middle",n.lineWidth=.5,n.font=c.string;let{boxWidth:p,boxHeight:g,itemHeight:m}=er(r,f),b=function(v,S,w){if(isNaN(p)||p<=0||isNaN(g)||g<0)return;n.save();let k=C(w.lineWidth,1);if(n.fillStyle=C(w.fillStyle,a),n.lineCap=C(w.lineCap,"butt"),n.lineDashOffset=C(w.lineDashOffset,0),n.lineJoin=C(w.lineJoin,"miter"),n.lineWidth=k,n.strokeStyle=C(w.strokeStyle,a),n.setLineDash(C(w.lineDash,[])),r.usePointStyle){let O={radius:g*Math.SQRT2/2,pointStyle:w.pointStyle,rotation:w.rotation,borderWidth:k},P=l.xPlus(v,p/2),D=S+d;Ms(n,O,P,D,r.pointStyleWidth&&p)}else{let O=S+Math.max((f-g)/2,0),P=l.leftForLtr(v,p),D=Dt(w.borderRadius);n.beginPath(),Object.values(D).some(Y=>Y!==0)?re(n,{x:P,y:O,w:p,h:g,radius:D}):n.rect(P,O,p,g),n.fill(),k!==0&&n.stroke()}n.restore()},x=function(v,S,w){At(n,w.text,v,S+m/2,c,{strikethrough:w.hidden,textAlign:l.textAlign(w.textAlign)})},y=this.isHorizontal(),M=this._computeTitleHeight();y?u={x:X(o,this.left+h,this.right-s[0]),y:this.top+h+M,line:0}:u={x:this.left+h,y:X(o,this.top+M+h,this.bottom-t[0].height),line:0},Ds(this.ctx,i.textDirection);let _=m+h;this.legendItems.forEach((v,S)=>{n.strokeStyle=v.fontColor,n.fillStyle=v.fontColor;let w=n.measureText(v.text).width,k=l.textAlign(v.textAlign||(v.textAlign=r.textAlign)),O=p+d+w,P=u.x,D=u.y;l.setWidth(this.width),y?S>0&&P+O+h>this.right&&(D=u.y+=_,u.line++,P=u.x=X(o,this.left+h,this.right-s[u.line])):S>0&&D+_>this.bottom&&(P=u.x=P+t[u.line].width+h,u.line++,D=u.y=X(o,this.top+M+h,this.bottom-t[u.line].height));let Y=l.x(P);if(b(Y,D,v),P=Qn(k,P+p+d,y?P+O:this.right,i.rtl),x(l.x(P),D,v),y)u.x+=O+h;else if(typeof v.text!="string"){let it=c.lineHeight;u.y+=Fr(v,it)+h}else u.y+=_}),Ts(this.ctx,i.textDirection)}drawTitle(){let i=this.options,t=i.title,s=$(t.font),n=K(t.padding);if(!t.display)return;let o=Ut(i.rtl,this.left,this.width),r=this.ctx,a=t.position,l=s.size/2,c=n.top+l,h,f=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),h=this.top+c,f=X(i.align,f,this.right-d);else{let p=this.columnSizes.reduce((g,m)=>Math.max(g,m.height),0);h=c+X(i.align,this.top,this.bottom-p-i.labels.padding-this._computeTitleHeight())}let u=X(a,f,f+d);r.textAlign=o.textAlign(pi(a)),r.textBaseline="middle",r.strokeStyle=t.color,r.fillStyle=t.color,r.font=s.string,At(r,t.text,u,h,s)}_computeTitleHeight(){let i=this.options.title,t=$(i.font),s=K(i.padding);return i.display?t.lineHeight+s.height:0}_getLegendItemAt(i,t){let s,n,o;if(dt(i,this.left,this.right)&&dt(t,this.top,this.bottom)){for(o=this.legendHitBoxes,s=0;so.length>r.length?o:r)),i+t.size/2+s.measureText(n).width}function fd(e,i,t){let s=e;return typeof i.text!="string"&&(s=Fr(i,t)),s}function Fr(e,i){let t=e.text?e.text.length:0;return i*t}function dd(e,i){return!!((e==="mousemove"||e==="mouseout")&&(i.onHover||i.onLeave)||i.onClick&&(e==="click"||e==="mouseup"))}var ud={id:"legend",_element:Fi,start(e,i,t){let s=e.legend=new Fi({ctx:e.ctx,options:t,chart:e});G.configure(e,s,t),G.addBox(e,s)},stop(e){G.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,i,t){let s=e.legend;G.configure(e,s,t),s.options=t},afterUpdate(e){let i=e.legend;i.buildLabels(),i.adjustHitBoxes()},afterEvent(e,i){i.replay||e.legend.handleEvent(i.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,i,t){let s=i.datasetIndex,n=t.chart;n.isDatasetVisible(s)?(n.hide(s),i.hidden=!0):(n.show(s),i.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){let i=e.data.datasets,{labels:{usePointStyle:t,pointStyle:s,textAlign:n,color:o,useBorderRadius:r,borderRadius:a}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{let c=l.controller.getStyle(t?0:void 0),h=K(c.borderWidth);return{text:i[l.index].label,fillStyle:c.backgroundColor,fontColor:o,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(h.width+h.height)/4,strokeStyle:c.borderColor,pointStyle:s||c.pointStyle,rotation:c.rotation,textAlign:n||c.textAlign,borderRadius:r&&(a||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}},We=class extends lt{constructor(i){super(),this.chart=i.chart,this.options=i.options,this.ctx=i.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(i,t){let s=this.options;if(this.left=0,this.top=0,!s.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=i,this.height=this.bottom=t;let n=E(s.text)?s.text.length:1;this._padding=K(s.padding);let o=n*$(s.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){let i=this.options.position;return i==="top"||i==="bottom"}_drawArgs(i){let{top:t,left:s,bottom:n,right:o,options:r}=this,a=r.align,l=0,c,h,f;return this.isHorizontal()?(h=X(a,s,o),f=t+i,c=o-s):(r.position==="left"?(h=s+i,f=X(a,n,t),l=F*-.5):(h=o-i,f=X(a,t,n),l=F*.5),c=n-t),{titleX:h,titleY:f,maxWidth:c,rotation:l}}draw(){let i=this.ctx,t=this.options;if(!t.display)return;let s=$(t.font),o=s.lineHeight/2+this._padding.top,{titleX:r,titleY:a,maxWidth:l,rotation:c}=this._drawArgs(o);At(i,t.text,0,0,s,{color:t.color,maxWidth:l,rotation:c,textAlign:pi(t.align),textBaseline:"middle",translation:[r,a]})}};function pd(e,i){let t=new We({ctx:e.ctx,options:i,chart:e});G.configure(e,t,i),G.addBox(e,t),e.titleBlock=t}var gd={id:"title",_element:We,start(e,i,t){pd(e,t)},stop(e){let i=e.titleBlock;G.removeBox(e,i),delete e.titleBlock},beforeUpdate(e,i,t){let s=e.titleBlock;G.configure(e,s,t),s.options=t},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}},Ci=new WeakMap,md={id:"subtitle",start(e,i,t){let s=new We({ctx:e.ctx,options:t,chart:e});G.configure(e,s,t),G.addBox(e,s),Ci.set(e,s)},stop(e){G.removeBox(e,Ci.get(e)),Ci.delete(e)},beforeUpdate(e,i,t){let s=Ci.get(e);G.configure(e,s,t),s.options=t},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}},je={average(e){if(!e.length)return!1;let i,t,s=new Set,n=0,o=0;for(i=0,t=e.length;ia+l)/s.size,y:n/o}},nearest(e,i){if(!e.length)return!1;let t=i.x,s=i.y,n=Number.POSITIVE_INFINITY,o,r,a;for(o=0,r=e.length;o-1?e.split(` `):e}function xd(e,i){let{element:t,datasetIndex:s,index:n}=i,o=e.getDatasetMeta(s).controller,{label:r,value:a}=o.getLabelAndValue(n);return{chart:e,label:r,parsed:o.getParsed(n),raw:e.data.datasets[s].data[n],formattedValue:a,dataset:o.getDataset(),dataIndex:n,datasetIndex:s,element:t}}function ir(e,i){let t=e.chart.ctx,{body:s,footer:n,title:o}=e,{boxWidth:r,boxHeight:a}=i,l=$(i.bodyFont),c=$(i.titleFont),h=$(i.footerFont),f=o.length,d=n.length,u=s.length,p=K(i.padding),g=p.height,m=0,b=s.reduce((M,_)=>M+_.before.length+_.lines.length+_.after.length,0);if(b+=e.beforeBody.length+e.afterBody.length,f&&(g+=f*c.lineHeight+(f-1)*i.titleSpacing+i.titleMarginBottom),b){let M=i.displayColors?Math.max(a,l.lineHeight):l.lineHeight;g+=u*M+(b-u)*l.lineHeight+(b-1)*i.bodySpacing}d&&(g+=i.footerMarginTop+d*h.lineHeight+(d-1)*i.footerSpacing);let x=0,y=function(M){m=Math.max(m,t.measureText(M).width+x)};return t.save(),t.font=c.string,L(e.title,y),t.font=l.string,L(e.beforeBody.concat(e.afterBody),y),x=i.displayColors?r+2+i.boxPadding:0,L(s,M=>{L(M.before,y),L(M.lines,y),L(M.after,y)}),x=0,t.font=h.string,L(e.footer,y),t.restore(),m+=p.width,{width:m,height:g}}function bd(e,i){let{y:t,height:s}=i;return te.height-s/2?"bottom":"center"}function _d(e,i,t,s){let{x:n,width:o}=s,r=t.caretSize+t.caretPadding;if(e==="left"&&n+o+r>i.width||e==="right"&&n-o-r<0)return!0}function yd(e,i,t,s){let{x:n,width:o}=t,{width:r,chartArea:{left:a,right:l}}=e,c="center";return s==="center"?c=n<=(a+l)/2?"left":"right":n<=o/2?c="left":n>=r-o/2&&(c="right"),_d(c,e,i,t)&&(c="center"),c}function sr(e,i,t){let s=t.yAlign||i.yAlign||bd(e,t);return{xAlign:t.xAlign||i.xAlign||yd(e,i,t,s),yAlign:s}}function vd(e,i){let{x:t,width:s}=e;return i==="right"?t-=s:i==="center"&&(t-=s/2),t}function Md(e,i,t){let{y:s,height:n}=e;return i==="top"?s+=t:i==="bottom"?s-=n+t:s-=n/2,s}function nr(e,i,t,s){let{caretSize:n,caretPadding:o,cornerRadius:r}=e,{xAlign:a,yAlign:l}=t,c=n+o,{topLeft:h,topRight:f,bottomLeft:d,bottomRight:u}=Dt(r),p=vd(i,a),g=Md(i,l,c);return l==="center"?a==="left"?p+=c:a==="right"&&(p-=c):a==="left"?p-=Math.max(h,d)+n:a==="right"&&(p+=Math.max(f,u)+n),{x:U(p,0,s.width-i.width),y:U(g,0,s.height-i.height)}}function Pi(e,i,t){let s=K(t.padding);return i==="center"?e.x+e.width/2:i==="right"?e.x+e.width-s.right:e.x+s.left}function or(e){return ut([],Mt(e))}function wd(e,i,t){return yt(e,{tooltip:i,tooltipItems:t,type:"tooltip"})}function rr(e,i){let t=i&&i.dataset&&i.dataset.tooltip&&i.dataset.tooltip.callbacks;return t?e.override(t):e}var zr={beforeTitle:ft,title(e){if(e.length>0){let i=e[0],t=i.chart.data.labels,s=t?t.length:0;if(this&&this.options&&this.options.mode==="dataset")return i.dataset.label||"";if(i.label)return i.label;if(s>0&&i.dataIndex"u"?zr[i].call(t,s):n}var ar=(()=>{class e extends lt{static positioners=je;constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){let t=this._cachedAnimations;if(t)return t;let s=this.chart,n=this.options.setContext(this.getContext()),o=n.enabled&&s.options.animation&&n.animations,r=new Ti(this.chart,o);return o._cacheable&&(this._cachedAnimations=Object.freeze(r)),r}getContext(){return this.$context||(this.$context=wd(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,s){let{callbacks:n}=s,o=Q(n,"beforeTitle",this,t),r=Q(n,"title",this,t),a=Q(n,"afterTitle",this,t),l=[];return l=ut(l,Mt(o)),l=ut(l,Mt(r)),l=ut(l,Mt(a)),l}getBeforeBody(t,s){return or(Q(s.callbacks,"beforeBody",this,t))}getBody(t,s){let{callbacks:n}=s,o=[];return L(t,r=>{let a={before:[],lines:[],after:[]},l=rr(n,r);ut(a.before,Mt(Q(l,"beforeLabel",this,r))),ut(a.lines,Q(l,"label",this,r)),ut(a.after,Mt(Q(l,"afterLabel",this,r))),o.push(a)}),o}getAfterBody(t,s){return or(Q(s.callbacks,"afterBody",this,t))}getFooter(t,s){let{callbacks:n}=s,o=Q(n,"beforeFooter",this,t),r=Q(n,"footer",this,t),a=Q(n,"afterFooter",this,t),l=[];return l=ut(l,Mt(o)),l=ut(l,Mt(r)),l=ut(l,Mt(a)),l}_createItems(t){let s=this._active,n=this.chart.data,o=[],r=[],a=[],l=[],c,h;for(c=0,h=s.length;ct.filter(f,d,u,n))),t.itemSort&&(l=l.sort((f,d)=>t.itemSort(f,d,n))),L(l,f=>{let d=rr(t.callbacks,f);o.push(Q(d,"labelColor",this,f)),r.push(Q(d,"labelPointStyle",this,f)),a.push(Q(d,"labelTextColor",this,f))}),this.labelColors=o,this.labelPointStyles=r,this.labelTextColors=a,this.dataPoints=l,l}update(t,s){let n=this.options.setContext(this.getContext()),o=this._active,r,a=[];if(!o.length)this.opacity!==0&&(r={opacity:0});else{let l=je[n.position].call(this,o,this._eventPosition);a=this._createItems(n),this.title=this.getTitle(a,n),this.beforeBody=this.getBeforeBody(a,n),this.body=this.getBody(a,n),this.afterBody=this.getAfterBody(a,n),this.footer=this.getFooter(a,n);let c=this._size=ir(this,n),h=Object.assign({},l,c),f=sr(this.chart,n,h),d=nr(n,h,f,this.chart);this.xAlign=f.xAlign,this.yAlign=f.yAlign,r={opacity:1,x:d.x,y:d.y,width:c.width,height:c.height,caretX:l.x,caretY:l.y}}this._tooltipItems=a,this.$context=void 0,r&&this._resolveAnimations().update(this,r),t&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:s})}drawCaret(t,s,n,o){let r=this.getCaretPosition(t,n,o);s.lineTo(r.x1,r.y1),s.lineTo(r.x2,r.y2),s.lineTo(r.x3,r.y3)}getCaretPosition(t,s,n){let{xAlign:o,yAlign:r}=this,{caretSize:a,cornerRadius:l}=n,{topLeft:c,topRight:h,bottomLeft:f,bottomRight:d}=Dt(l),{x:u,y:p}=t,{width:g,height:m}=s,b,x,y,M,_,v;return r==="center"?(_=p+m/2,o==="left"?(b=u,x=b-a,M=_+a,v=_-a):(b=u+g,x=b+a,M=_-a,v=_+a),y=b):(o==="left"?x=u+Math.max(c,f)+a:o==="right"?x=u+g-Math.max(h,d)-a:x=this.caretX,r==="top"?(M=p,_=M-a,b=x-a,y=x+a):(M=p+m,_=M+a,b=x+a,y=x-a),v=M),{x1:b,x2:x,x3:y,y1:M,y2:_,y3:v}}drawTitle(t,s,n){let o=this.title,r=o.length,a,l,c;if(r){let h=Ut(n.rtl,this.x,this.width);for(t.x=Pi(this,n.titleAlign,n),s.textAlign=h.textAlign(n.titleAlign),s.textBaseline="middle",a=$(n.titleFont),l=n.titleSpacing,s.fillStyle=n.titleColor,s.font=a.string,c=0;cy!==0)?(t.beginPath(),t.fillStyle=r.multiKeyBackground,re(t,{x:m,y:g,w:h,h:c,radius:x}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),re(t,{x:b,y:g+1,w:h-2,h:c-2,radius:x}),t.fill()):(t.fillStyle=r.multiKeyBackground,t.fillRect(m,g,h,c),t.strokeRect(m,g,h,c),t.fillStyle=a.backgroundColor,t.fillRect(b,g+1,h-2,c-2))}t.fillStyle=this.labelTextColors[n]}drawBody(t,s,n){let{body:o}=this,{bodySpacing:r,bodyAlign:a,displayColors:l,boxHeight:c,boxWidth:h,boxPadding:f}=n,d=$(n.bodyFont),u=d.lineHeight,p=0,g=Ut(n.rtl,this.x,this.width),m=function(k){s.fillText(k,g.x(t.x+p),t.y+u/2),t.y+=u+r},b=g.textAlign(a),x,y,M,_,v,S,w;for(s.textAlign=a,s.textBaseline="middle",s.font=d.string,t.x=Pi(this,b,n),s.fillStyle=n.bodyColor,L(this.beforeBody,m),p=l&&b!=="right"?a==="center"?h/2+f:h+2+f:0,_=0,S=o.length;_0&&s.stroke()}_updateAnimationTarget(t){let s=this.chart,n=this.$animations,o=n&&n.x,r=n&&n.y;if(o||r){let a=je[t.position].call(this,this._active,this._eventPosition);if(!a)return;let l=this._size=ir(this,t),c=Object.assign({},a,this._size),h=sr(s,t,c),f=nr(t,c,h,s);(o._to!==f.x||r._to!==f.y)&&(this.xAlign=h.xAlign,this.yAlign=h.yAlign,this.width=l.width,this.height=l.height,this.caretX=a.x,this.caretY=a.y,this._resolveAnimations().update(this,f))}}_willRender(){return!!this.opacity}draw(t){let s=this.options.setContext(this.getContext()),n=this.opacity;if(!n)return;this._updateAnimationTarget(s);let o={width:this.width,height:this.height},r={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;let a=K(s.padding),l=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;s.enabled&&l&&(t.save(),t.globalAlpha=n,this.drawBackground(r,t,o,s),Ds(t,s.textDirection),r.y+=a.top,this.drawTitle(r,t,s),this.drawBody(r,t,s),this.drawFooter(r,t,s),Ts(t,s.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,s){let n=this._active,o=t.map(({datasetIndex:l,index:c})=>{let h=this.chart.getDatasetMeta(l);if(!h)throw new Error("Cannot find a dataset at index "+l);return{datasetIndex:l,element:h.data[c],index:c}}),r=!Ae(n,o),a=this._positionChanged(o,s);(r||a)&&(this._active=o,this._eventPosition=s,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,s,n=!0){if(s&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;let o=this.options,r=this._active||[],a=this._getActiveElements(t,r,s,n),l=this._positionChanged(a,t),c=s||!Ae(a,r)||l;return c&&(this._active=a,(o.enabled||o.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,s))),c}_getActiveElements(t,s,n,o){let r=this.options;if(t.type==="mouseout")return[];if(!o)return s.filter(l=>this.chart.data.datasets[l.datasetIndex]&&this.chart.getDatasetMeta(l.datasetIndex).controller.getParsed(l.index)!==void 0);let a=this.chart.getElementsAtEventForMode(t,r.mode,r,n);return r.reverse&&a.reverse(),a}_positionChanged(t,s){let{caretX:n,caretY:o,options:r}=this,a=je[r.position].call(this,t,s);return a!==!1&&(n!==a.x||o!==a.y)}}return e})(),Sd={id:"tooltip",_element:ar,positioners:je,afterInit(e,i,t){t&&(e.tooltip=new ar({chart:e,options:t}))},beforeUpdate(e,i,t){e.tooltip&&e.tooltip.initialize(t)},reset(e,i,t){e.tooltip&&e.tooltip.initialize(t)},afterDraw(e){let i=e.tooltip;if(i&&i._willRender()){let t={tooltip:i};if(e.notifyPlugins("beforeTooltipDraw",Je(Ze({},t),{cancelable:!0}))===!1)return;i.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",t)}},afterEvent(e,i){if(e.tooltip){let t=i.replay;e.tooltip.handleEvent(i.event,t,i.inChartArea)&&(i.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,i)=>i.bodyFont.size,boxWidth:(e,i)=>i.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:zr},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},kd=Object.freeze({__proto__:null,Colors:zf,Decimation:Wf,Filler:ad,Legend:ud,SubTitle:md,Title:gd,Tooltip:Sd}),Cd=(e,i,t,s)=>(typeof i=="string"?(t=e.push(i)-1,s.unshift({index:t,label:i})):isNaN(i)&&(t=null),t);function Pd(e,i,t,s){let n=e.indexOf(i);if(n===-1)return Cd(e,i,t,s);let o=e.lastIndexOf(i);return n!==o?t:n}var Od=(e,i)=>e===null?null:U(Math.round(e),0,i);function lr(e){let i=this.getLabels();return e>=0&&e{class e extends Kt{static id="category";static defaults={ticks:{callback:lr}};constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){let s=this._addedLabels;if(s.length){let n=this.getLabels();for(let{index:o,label:r}of s)n[o]===r&&n.splice(o,1);this._addedLabels=[]}super.init(t)}parse(t,s){if(T(t))return null;let n=this.getLabels();return s=isFinite(s)&&n[s]===t?s:Pd(n,t,C(s,t),this._addedLabels),Od(s,n.length-1)}determineDataLimits(){let{minDefined:t,maxDefined:s}=this.getUserBounds(),{min:n,max:o}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(n=0),s||(o=this.getLabels().length-1)),this.min=n,this.max=o}buildTicks(){let t=this.min,s=this.max,n=this.options.offset,o=[],r=this.getLabels();r=t===0&&s===r.length-1?r:r.slice(t,s+1),this._valueRange=Math.max(r.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let a=t;a<=s;a++)o.push({value:a});return o}getLabelForValue(t){return lr.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){let s=this.ticks;return t<0||t>s.length-1?null:this.getPixelForValue(s[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}return e})();function Dd(e,i){let t=[],{bounds:n,step:o,min:r,max:a,precision:l,count:c,maxTicks:h,maxDigits:f,includeBounds:d}=e,u=o||1,p=h-1,{min:g,max:m}=i,b=!T(r),x=!T(a),y=!T(c),M=(m-g)/(f+1),_=cs((m-g)/p/u)*u,v,S,w,k;if(_<1e-14&&!b&&!x)return[{value:g},{value:m}];k=Math.ceil(m/_)-Math.floor(g/_),k>p&&(_=cs(k*_/p/u)*u),T(l)||(v=Math.pow(10,l),_=Math.ceil(_*v)/v),n==="ticks"?(S=Math.floor(g/_)*_,w=Math.ceil(m/_)*_):(S=g,w=m),b&&x&&o&&Yn((a-r)/o,_/1e3)?(k=Math.round(Math.min((a-r)/_,h)),_=(a-r)/k,S=r,w=a):y?(S=b?r:S,w=x?a:w,k=c-1,_=(w-S)/k):(k=(w-S)/_,se(k,Math.round(k),_/1e3)?k=Math.round(k):k=Math.ceil(k));let O=Math.max(fs(_),fs(S));v=Math.pow(10,T(l)?O:l),S=Math.round(S*v)/v,w=Math.round(w*v)/v;let P=0;for(b&&(d&&S!==r?(t.push({value:r}),Sa)break;t.push({value:D})}return x&&d&&w!==a?t.length&&se(t[t.length-1].value,a,cr(a,M,e))?t[t.length-1].value=a:t.push({value:a}):(!x||w===a)&&t.push({value:w}),t}function cr(e,i,{horizontal:t,minRotation:s}){let n=nt(s),o=(t?Math.sin(n):Math.cos(n))||.001,r=.75*i*(""+e).length;return Math.min(i/o,r)}var he=class extends Kt{constructor(i){super(i),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(i,t){return T(i)||(typeof i=="number"||i instanceof Number)&&!isFinite(+i)?null:+i}handleTickRangeOptions(){let{beginAtZero:i}=this.options,{minDefined:t,maxDefined:s}=this.getUserBounds(),{min:n,max:o}=this,r=l=>n=t?n:l,a=l=>o=s?o:l;if(i){let l=at(n),c=at(o);l<0&&c<0?a(0):l>0&&c>0&&r(0)}if(n===o){let l=o===0?1:Math.abs(o*.05);a(o+l),i||r(n-l)}this.min=n,this.max=o}getTickLimit(){let i=this.options.ticks,{maxTicksLimit:t,stepSize:s}=i,n;return s?(n=Math.ceil(this.max/s)-Math.floor(this.min/s)+1,n>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${s} would result generating up to ${n} ticks. Limiting to 1000.`),n=1e3)):(n=this.computeTickLimit(),t=t||11),t&&(n=Math.min(t,n)),n}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){let i=this.options,t=i.ticks,s=this.getTickLimit();s=Math.max(2,s);let n={maxTicks:s,bounds:i.bounds,min:i.min,max:i.max,precision:t.precision,step:t.stepSize,count:t.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:t.minRotation||0,includeBounds:t.includeBounds!==!1},o=this._range||this,r=Dd(n,o);return i.bounds==="ticks"&&hs(r,this,"value"),i.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}configure(){let i=this.ticks,t=this.min,s=this.max;if(super.configure(),this.options.offset&&i.length){let n=(s-t)/Math.max(i.length-1,1)/2;t-=n,s+=n}this._startValue=t,this._endValue=s,this._valueRange=s-t}getLabelForValue(i){return oe(i,this.chart.options.locale,this.options.ticks.format)}},on=class extends he{static id="linear";static defaults={ticks:{callback:De.formatters.numeric}};determineDataLimits(){let{min:i,max:t}=this.getMinMax(!0);this.min=W(i)?i:0,this.max=W(t)?t:1,this.handleTickRangeOptions()}computeTickLimit(){let i=this.isHorizontal(),t=i?this.width:this.height,s=nt(this.options.ticks.minRotation),n=(i?Math.sin(s):Math.cos(s))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(t/Math.min(40,o.lineHeight/n))}getPixelForValue(i){return i===null?NaN:this.getPixelForDecimal((i-this._startValue)/this._valueRange)}getValueForPixel(i){return this._startValue+this.getDecimalForPixel(i)*this._valueRange}},Ve=e=>Math.floor(bt(e)),Xt=(e,i)=>Math.pow(10,Ve(e)+i);function hr(e){return e/Math.pow(10,Ve(e))===1}function fr(e,i,t){let s=Math.pow(10,t),n=Math.floor(e/s);return Math.ceil(i/s)-n}function Td(e,i){let t=i-e,s=Ve(t);for(;fr(e,i,s)>10;)s++;for(;fr(e,i,s)<10;)s--;return Math.min(s,Ve(e))}function Ld(e,{min:i,max:t}){i=J(e.min,i);let s=[],n=Ve(i),o=Td(i,t),r=o<0?Math.pow(10,Math.abs(o)):1,a=Math.pow(10,o),l=n>o?Math.pow(10,n):0,c=Math.round((i-l)*r)/r,h=Math.floor((i-l)/a/10)*a*10,f=Math.floor((c-h)/Math.pow(10,o)),d=J(e.min,Math.round((l+h+f*Math.pow(10,o))*r)/r);for(;d=10?f=f<15?15:20:f++,f>=20&&(o++,f=2,r=o>=0?1:r),d=Math.round((l+h+f*Math.pow(10,o))*r)/r;let u=J(e.max,d);return s.push({value:u,major:hr(u),significand:f}),s}var rn=class extends Kt{static id="logarithmic";static defaults={ticks:{callback:De.formatters.logarithmic,major:{enabled:!0}}};constructor(i){super(i),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(i,t){let s=he.prototype.parse.apply(this,[i,t]);if(s===0){this._zero=!0;return}return W(s)&&s>0?s:null}determineDataLimits(){let{min:i,max:t}=this.getMinMax(!0);this.min=W(i)?Math.max(0,i):null,this.max=W(t)?Math.max(0,t):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!W(this._userMin)&&(this.min=i===Xt(this.min,0)?Xt(this.min,-1):Xt(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){let{minDefined:i,maxDefined:t}=this.getUserBounds(),s=this.min,n=this.max,o=a=>s=i?s:a,r=a=>n=t?n:a;s===n&&(s<=0?(o(1),r(10)):(o(Xt(s,-1)),r(Xt(n,1)))),s<=0&&o(Xt(n,-1)),n<=0&&r(Xt(s,1)),this.min=s,this.max=n}buildTicks(){let i=this.options,t={min:this._userMin,max:this._userMax},s=Ld(t,this);return i.bounds==="ticks"&&hs(s,this,"value"),i.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}getLabelForValue(i){return i===void 0?"0":oe(i,this.chart.options.locale,this.options.ticks.format)}configure(){let i=this.min;super.configure(),this._startValue=bt(i),this._valueRange=bt(this.max)-bt(i)}getPixelForValue(i){return(i===void 0||i===0)&&(i=this.min),i===null||isNaN(i)?NaN:this.getPixelForDecimal(i===this.min?0:(bt(i)-this._startValue)/this._valueRange)}getValueForPixel(i){let t=this.getDecimalForPixel(i);return Math.pow(10,this._startValue+t*this._valueRange)}};function an(e){let i=e.ticks;if(i.display&&e.display){let t=K(i.backdropPadding);return C(i.font&&i.font.size,B.font.size)+t.height}return 0}function Rd(e,i,t){return t=E(t)?t:[t],{w:eo(e,i.string,t),h:t.length*i.lineHeight}}function dr(e,i,t,s,n){return e===s||e===n?{start:i-t/2,end:i+t/2}:en?{start:i-t,end:i}:{start:i,end:i+t}}function Id(e){let i={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},t=Object.assign({},i),s=[],n=[],o=e._pointLabels.length,r=e.options.pointLabels,a=r.centerPointLabels?F/o:0;for(let l=0;li.r&&(a=(s.end-i.r)/o,e.r=Math.max(e.r,i.r+a)),n.starti.b&&(l=(n.end-i.b)/r,e.b=Math.max(e.b,i.b+l))}function Fd(e,i,t){let s=e.drawingArea,{extra:n,additionalAngle:o,padding:r,size:a}=t,l=e.getPointPosition(i,s+n+r,o),c=Math.round(di(Z(l.angle+V))),h=Wd(l.y,a.h,c),f=jd(c),d=Nd(l.x,a.w,f);return{visible:!0,x:l.x,y:h,textAlign:f,left:d,top:h,right:d+a.w,bottom:h+a.h}}function zd(e,i){if(!i)return!0;let{left:t,top:s,right:n,bottom:o}=e;return!(ht({x:t,y:s},i)||ht({x:t,y:o},i)||ht({x:n,y:s},i)||ht({x:n,y:o},i))}function Bd(e,i,t){let s=[],n=e._pointLabels.length,o=e.options,{centerPointLabels:r,display:a}=o.pointLabels,l={extra:an(o)/2,additionalAngle:r?F/n:0},c;for(let h=0;h270||t<90)&&(e-=i),e}function Vd(e,i,t){let{left:s,top:n,right:o,bottom:r}=t,{backdropColor:a}=i;if(!T(a)){let l=Dt(i.borderRadius),c=K(i.backdropPadding);e.fillStyle=a;let h=s-c.left,f=n-c.top,d=o-s+c.width,u=r-n+c.height;Object.values(l).some(p=>p!==0)?(e.beginPath(),re(e,{x:h,y:f,w:d,h:u,radius:l}),e.fill()):e.fillRect(h,f,d,u)}}function Hd(e,i){let{ctx:t,options:{pointLabels:s}}=e;for(let n=i-1;n>=0;n--){let o=e._pointLabelItems[n];if(!o.visible)continue;let r=s.setContext(e.getPointLabelContext(n));Vd(t,r,o);let a=$(r.font),{x:l,y:c,textAlign:h}=o;At(t,e._pointLabels[n],l,c+a.lineHeight/2,a,{color:r.color,textAlign:h,textBaseline:"middle"})}}function Br(e,i,t,s){let{ctx:n}=e;if(t)n.arc(e.xCenter,e.yCenter,i,0,z);else{let o=e.getPointPosition(0,i);n.moveTo(o.x,o.y);for(let r=1;r{let n=I(this.options.pointLabels.callback,[t,s],this);return n||n===0?n:""}).filter((t,s)=>this.chart.getDataVisibility(s))}fit(){let i=this.options;i.display&&i.pointLabels.display?Id(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(i,t,s,n){this.xCenter+=Math.floor((i-t)/2),this.yCenter+=Math.floor((s-n)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(i,t,s,n))}getIndexAngle(i){let t=z/(this._pointLabels.length||1),s=this.options.startAngle||0;return Z(i*t+nt(s))}getDistanceFromCenterForValue(i){if(T(i))return NaN;let t=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-i)*t:(i-this.min)*t}getValueForDistanceFromCenter(i){if(T(i))return NaN;let t=i/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-t:this.min+t}getPointLabelContext(i){let t=this._pointLabels||[];if(i>=0&&i{if(f!==0||f===0&&this.min<0){l=this.getDistanceFromCenterForValue(h.value);let d=this.getContext(f),u=n.setContext(d),p=o.setContext(d);$d(this,u,l,r,p)}}),s.display){for(i.save(),a=r-1;a>=0;a--){let h=s.setContext(this.getPointLabelContext(a)),{color:f,lineWidth:d}=h;!d||!f||(i.lineWidth=d,i.strokeStyle=f,i.setLineDash(h.borderDash),i.lineDashOffset=h.borderDashOffset,l=this.getDistanceFromCenterForValue(t.reverse?this.min:this.max),c=this.getPointPosition(a,l),i.beginPath(),i.moveTo(this.xCenter,this.yCenter),i.lineTo(c.x,c.y),i.stroke())}i.restore()}}drawBorder(){}drawLabels(){let i=this.ctx,t=this.options,s=t.ticks;if(!s.display)return;let n=this.getIndexAngle(0),o,r;i.save(),i.translate(this.xCenter,this.yCenter),i.rotate(n),i.textAlign="center",i.textBaseline="middle",this.ticks.forEach((a,l)=>{if(l===0&&this.min>=0&&!t.reverse)return;let c=s.setContext(this.getContext(l)),h=$(c.font);if(o=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){i.font=h.string,r=i.measureText(a.label).width,i.fillStyle=c.backdropColor;let f=K(c.backdropPadding);i.fillRect(-r/2-f.left,-o-h.size/2-f.top,r+f.width,h.size+f.height)}At(i,a.label,0,-o,h,{color:c.color,strokeColor:c.textStrokeColor,strokeWidth:c.textStrokeWidth})}),i.restore()}drawTitle(){}},ji={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},tt=Object.keys(ji);function ur(e,i){return e-i}function pr(e,i){if(T(i))return null;let t=e._adapter,{parser:s,round:n,isoWeekday:o}=e._parseOpts,r=i;return typeof s=="function"&&(r=s(r)),W(r)||(r=typeof s=="string"?t.parse(r,s):t.parse(r)),r===null?null:(n&&(r=n==="week"&&($t(o)||o===!0)?t.startOf(r,"isoWeek",o):t.startOf(r,n)),+r)}function gr(e,i,t,s){let n=tt.length;for(let o=tt.indexOf(e);o=tt.indexOf(t);o--){let r=tt[o];if(ji[r].common&&e._adapter.diff(n,s,r)>=i-1)return r}return tt[t?tt.indexOf(t):0]}function Xd(e){for(let i=tt.indexOf(e)+1,t=tt.length;i=i?t[s]:t[n];e[o]=!0}}function Kd(e,i,t,s){let n=e._adapter,o=+n.startOf(i[0].value,s),r=i[i.length-1].value,a,l;for(a=o;a<=r;a=+n.add(a,1,s))l=t[a],l>=0&&(i[l].major=!0);return i}function xr(e,i,t){let s=[],n={},o=i.length,r,a;for(r=0;r{class e extends Kt{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,s={}){let n=t.time||(t.time={}),o=this._adapter=new oh._date(t.adapters.date);o.init(s),ee(n.displayFormats,o.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(t),this._normalized=s.normalized}parse(t,s){return t===void 0?null:pr(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){let t=this.options,s=this._adapter,n=t.time.unit||"day",{min:o,max:r,minDefined:a,maxDefined:l}=this.getUserBounds();function c(h){!a&&!isNaN(h.min)&&(o=Math.min(o,h.min)),!l&&!isNaN(h.max)&&(r=Math.max(r,h.max))}(!a||!l)&&(c(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&c(this.getMinMax(!1))),o=W(o)&&!isNaN(o)?o:+s.startOf(Date.now(),n),r=W(r)&&!isNaN(r)?r:+s.endOf(Date.now(),n)+1,this.min=Math.min(o,r-1),this.max=Math.max(o+1,r)}_getLabelBounds(){let t=this.getLabelTimestamps(),s=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return t.length&&(s=t[0],n=t[t.length-1]),{min:s,max:n}}buildTicks(){let t=this.options,s=t.time,n=t.ticks,o=n.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&o.length&&(this.min=this._userMin||o[0],this.max=this._userMax||o[o.length-1]);let r=this.min,a=this.max,l=qn(o,r,a);return this._unit=s.unit||(n.autoSkip?gr(s.minUnit,this.min,this.max,this._getLabelCapacity(r)):Yd(this,l.length,s.minUnit,this.min,this.max)),this._majorUnit=!n.major.enabled||this._unit==="year"?void 0:Xd(this._unit),this.initOffsets(o),t.reverse&&l.reverse(),xr(this,l,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let s=0,n=0,o,r;this.options.offset&&t.length&&(o=this.getDecimalForValue(t[0]),t.length===1?s=1-o:s=(this.getDecimalForValue(t[1])-o)/2,r=this.getDecimalForValue(t[t.length-1]),t.length===1?n=r:n=(r-this.getDecimalForValue(t[t.length-2]))/2);let a=t.length<3?.5:.25;s=U(s,0,a),n=U(n,0,a),this._offsets={start:s,end:n,factor:1/(s+1+n)}}_generate(){let t=this._adapter,s=this.min,n=this.max,o=this.options,r=o.time,a=r.unit||gr(r.minUnit,s,n,this._getLabelCapacity(s)),l=C(o.ticks.stepSize,1),c=a==="week"?r.isoWeekday:!1,h=$t(c)||c===!0,f={},d=s,u,p;if(h&&(d=+t.startOf(d,"isoWeek",c)),d=+t.startOf(d,h?"day":a),t.diff(n,s,a)>1e5*l)throw new Error(s+" and "+n+" are too far apart with stepSize of "+l+" "+a);let g=o.ticks.source==="data"&&this.getDataTimestamps();for(u=d,p=0;u+m)}getLabelForValue(t){let s=this._adapter,n=this.options.time;return n.tooltipFormat?s.format(t,n.tooltipFormat):s.format(t,n.displayFormats.datetime)}format(t,s){let o=this.options.time.displayFormats,r=this._unit,a=s||o[r];return this._adapter.format(t,a)}_tickFormatFunction(t,s,n,o){let r=this.options,a=r.ticks.callback;if(a)return I(a,[t,s,n],this);let l=r.time.displayFormats,c=this._unit,h=this._majorUnit,f=c&&l[c],d=h&&l[h],u=n[s],p=h&&d&&u&&u.major;return this._adapter.format(t,o||(p?d:f))}generateTickLabels(t){let s,n,o;for(s=0,n=t.length;s0?l:1}getDataTimestamps(){let t=this._cache.data||[],s,n;if(t.length)return t;let o=this.getMatchingVisibleMetas();if(this._normalized&&o.length)return this._cache.data=o[0].controller.getAllParsedValues(this);for(s=0,n=o.length;s=e[s].pos&&i<=e[n].pos&&({lo:s,hi:n}=ct(e,"pos",i)),{pos:o,time:a}=e[s],{pos:r,time:l}=e[n]):(i>=e[s].time&&i<=e[n].time&&({lo:s,hi:n}=ct(e,"time",i)),{time:o,pos:a}=e[s],{time:r,pos:l}=e[n]);let c=r-o;return c?a+(l-a)*(i-o)/c:a}var hn=class extends cn{static id="timeseries";static defaults=cn.defaults;constructor(i){super(i),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){let i=this._getTimestampsForTable(),t=this._table=this.buildLookupTable(i);this._minPos=Oi(t,this.min),this._tableRange=Oi(t,this.max)-this._minPos,super.initOffsets(i)}buildLookupTable(i){let{min:t,max:s}=this,n=[],o=[],r,a,l,c,h;for(r=0,a=i.length;r=t&&c<=s&&n.push(c);if(n.length<2)return[{time:t,pos:0},{time:s,pos:1}];for(r=0,a=n.length;rn-o)}_getTimestampsForTable(){let i=this._cache.all||[];if(i.length)return i;let t=this.getDataTimestamps(),s=this.getLabelTimestamps();return t.length&&s.length?i=this.normalize(t.concat(s)):i=t.length?t:s,i=this._cache.all=i,i}getDecimalForValue(i){return(Oi(this._table,i)-this._minPos)/this._tableRange}getValueForPixel(i){let t=this._offsets,s=this.getDecimalForPixel(i)/t.factor-t.end;return Oi(this._table,s*this._tableRange+this._minPos,!0)}},qd=Object.freeze({__proto__:null,CategoryScale:Ad,LinearScale:on,LogarithmicScale:rn,RadialLinearScale:ln,TimeScale:cn,TimeSeriesScale:hn}),jr=[nh,Tf,kd,qd];var Gd=typeof global=="object"&&global&&global.Object===Object&&global,Ni=Gd;var Zd=typeof self=="object"&&self&&self.Object===Object&&self,Jd=Ni||Zd||Function("return this")(),ot=Jd;var Qd=ot.Symbol,fe=Qd;var Nr=Object.prototype,tu=Nr.hasOwnProperty,eu=Nr.toString,$e=fe?fe.toStringTag:void 0;function iu(e){var i=tu.call(e,$e),t=e[$e];try{e[$e]=void 0;var s=!0}catch{}var n=eu.call(e);return s&&(i?e[$e]=t:delete e[$e]),n}var Wr=iu;var su=Object.prototype,nu=su.toString;function ou(e){return nu.call(e)}var Vr=ou;var ru="[object Null]",au="[object Undefined]",Hr=fe?fe.toStringTag:void 0;function lu(e){return e==null?e===void 0?au:ru:Hr&&Hr in Object(e)?Wr(e):Vr(e)}var It=lu;function cu(e){return e!=null&&typeof e=="object"}var gt=cu;var hu=Array.isArray,Ue=hu;function fu(e){var i=typeof e;return e!=null&&(i=="object"||i=="function")}var et=fu;function du(e){return e}var Wi=du;var uu="[object AsyncFunction]",pu="[object Function]",gu="[object GeneratorFunction]",mu="[object Proxy]";function xu(e){if(!et(e))return!1;var i=It(e);return i==pu||i==gu||i==uu||i==mu}var de=xu;var bu=ot["__core-js_shared__"],Vi=bu;var $r=function(){var e=/[^.]+$/.exec(Vi&&Vi.keys&&Vi.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function _u(e){return!!$r&&$r in e}var Ur=_u;var yu=Function.prototype,vu=yu.toString;function Mu(e){if(e!=null){try{return vu.call(e)}catch{}try{return e+""}catch{}}return""}var Yr=Mu;var wu=/[\\^$.*+?()[\]{}|]/g,Su=/^\[object .+?Constructor\]$/,ku=Function.prototype,Cu=Object.prototype,Pu=ku.toString,Ou=Cu.hasOwnProperty,Au=RegExp("^"+Pu.call(Ou).replace(wu,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Du(e){if(!et(e)||Ur(e))return!1;var i=de(e)?Au:Su;return i.test(Yr(e))}var Xr=Du;function Tu(e,i){return e?.[i]}var Kr=Tu;function Lu(e,i){var t=Kr(e,i);return Xr(t)?t:void 0}var ue=Lu;var qr=Object.create,Ru=function(){function e(){}return function(i){if(!et(i))return{};if(qr)return qr(i);e.prototype=i;var t=new e;return e.prototype=void 0,t}}(),Gr=Ru;function Iu(e,i,t){switch(t.length){case 0:return e.call(i);case 1:return e.call(i,t[0]);case 2:return e.call(i,t[0],t[1]);case 3:return e.call(i,t[0],t[1],t[2])}return e.apply(i,t)}var Zr=Iu;function Eu(e,i){var t=-1,s=e.length;for(i||(i=Array(s));++t0){if(++i>=Fu)return arguments[0]}else i=0;return e.apply(void 0,arguments)}}var Qr=ju;function Nu(e){return function(){return e}}var ta=Nu;var Wu=function(){try{var e=ue(Object,"defineProperty");return e({},"",{}),e}catch{}}(),pe=Wu;var Vu=pe?function(e,i){return pe(e,"toString",{configurable:!0,enumerable:!1,value:ta(i),writable:!0})}:Wi,ea=Vu;var Hu=Qr(ea),ia=Hu;var $u=9007199254740991,Uu=/^(?:0|[1-9]\d*)$/;function Yu(e,i){var t=typeof e;return i=i??$u,!!i&&(t=="number"||t!="symbol"&&Uu.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=ep}var $i=ip;function sp(e){return e!=null&&$i(e.length)&&!de(e)}var me=sp;function np(e,i,t){if(!et(t))return!1;var s=typeof i;return(s=="number"?me(t)&&Hi(i,t.length):s=="string"&&i in t)?Et(t[i],e):!1}var la=np;function op(e){return aa(function(i,t){var s=-1,n=t.length,o=n>1?t[n-1]:void 0,r=n>2?t[2]:void 0;for(o=e.length>3&&typeof o=="function"?(n--,o):void 0,r&&la(t[0],t[1],r)&&(o=n<3?void 0:o,n=1),i=Object(i);++s-1}var La=yg;function vg(e,i){var t=this.__data__,s=Ft(t,e);return s<0?(++this.size,t.push([e,i])):t[s][1]=i,this}var Ra=vg;function be(e){var i=-1,t=e==null?0:e.length;for(this.clear();++i{class e{constructor(){this.colorschemesOptions=new Qe(void 0)}setColorschemesOptions(t){this.pColorschemesOptions=t,this.colorschemesOptions.next(t)}getColorschemesOptions(){return this.pColorschemesOptions}static{this.\u0275fac=function(s){return new(s||e)}}static{this.\u0275prov=ti({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),r0=(()=>{class e{constructor(t,s,n,o){this.zone=s,this.themeService=n,this.type="bar",this.plugins=[],this.chartClick=new Ji,this.chartHover=new Ji,this.subs=[],this.themeOverrides={},o?.registerables&&zi.register(...o.registerables),o?.defaults&&B.set(o.defaults),this.ctx=t.nativeElement.getContext("2d"),this.subs.push(this.themeService.colorschemesOptions.pipe(bn()).subscribe(r=>this.themeChanged(r)))}ngOnChanges(t){let s=["type"],n=Object.getOwnPropertyNames(t);if(n.some(o=>s.includes(o))||n.every(o=>t[o].isFirstChange()))this.render();else{let o=this.getChartConfiguration();this.chart&&(Object.assign(this.chart.config.data,o.data),this.chart.config.plugins&&Object.assign(this.chart.config.plugins,o.plugins),this.chart.config.options&&Object.assign(this.chart.config.options,o.options)),this.update()}}ngOnDestroy(){this.chart&&(this.chart.destroy(),this.chart=void 0),this.subs.forEach(t=>t.unsubscribe())}render(){return this.chart&&this.chart.destroy(),this.zone.runOutsideAngular(()=>this.chart=new zi(this.ctx,this.getChartConfiguration()))}update(t){this.chart&&this.zone.runOutsideAngular(()=>this.chart?.update(t))}hideDataset(t,s){this.chart&&(this.chart.getDatasetMeta(t).hidden=s,this.update())}isDatasetHidden(t){return this.chart?.getDatasetMeta(t)?.hidden}toBase64Image(){return this.chart?.toBase64Image()}themeChanged(t){this.themeOverrides=t,this.chart&&(this.chart.config.options&&Object.assign(this.chart.config.options,this.getChartOptions()),this.update())}getChartOptions(){return Zi({onHover:(t,s)=>{!this.chartHover.observed&&!this.chartHover.observers?.length||this.zone.run(()=>this.chartHover.emit({event:t,active:s}))},onClick:(t,s)=>{!this.chartClick.observed&&!this.chartClick.observers?.length||this.zone.run(()=>this.chartClick.emit({event:t,active:s}))}},this.themeOverrides,this.options,{plugins:{legend:{display:this.legend}}})}getChartConfiguration(){return{type:this.type,data:this.getChartData(),options:this.getChartOptions(),plugins:this.plugins}}getChartData(){return this.data?this.data:{labels:this.labels||[],datasets:this.datasets||[]}}static{this.\u0275fac=function(s){return new(s||e)(we(wn),we(Mn),we(nm),we(hl,8))}}static{this.\u0275dir=yn({type:e,selectors:[["canvas","baseChart",""]],inputs:{type:"type",legend:"legend",data:"data",options:"options",plugins:"plugins",labels:"labels",datasets:"datasets"},outputs:{chartClick:"chartClick",chartHover:"chartHover"},exportAs:["base-chart"],standalone:!0,features:[vn]})}}return e})();var om=["primary","secondary","tertiary","neutral","neutral-variant","error","caution","success"],rm=[20,40,50,60,80],l0=["background","foreground",...om.flatMap(e=>rm.map(i=>`${e}-${i}`))],fl={type:"light",colors:{}};var d0=(()=>{class e{constructor(){this.infoSubject=new Qe(fl),this.info$=this.infoSubject.asObservable()}get info(){return this.infoSubject.getValue()}get colors(){return this.info.colors}get type(){return this.info.type}get isDark(){return this.type==="dark"}setInfo(t){this.infoSubject.next(t)}static{this.\u0275fac=function(s){return new(s||e)}}static{this.\u0275prov=ti({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();export{n0 as a,o0 as b,r0 as c,l0 as d,d0 as e}; diff --git a/webui/dist/bitmagnet/browser/chunk-OMQU4L7V.js b/webui/dist/bitmagnet/browser/chunk-VRXOKWLG.js similarity index 69% rename from webui/dist/bitmagnet/browser/chunk-OMQU4L7V.js rename to webui/dist/bitmagnet/browser/chunk-VRXOKWLG.js index 78796739..dad2a68a 100644 --- a/webui/dist/bitmagnet/browser/chunk-OMQU4L7V.js +++ b/webui/dist/bitmagnet/browser/chunk-VRXOKWLG.js @@ -1 +1 @@ -import{k as s}from"./chunk-FKMTSCBK.js";import{Sb as n,pc as r,ua as o}from"./chunk-3DR3CJRN.js";var m=(()=>{class e{static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275cmp=o({type:e,selectors:[["app-torrents"]],standalone:!0,features:[r],decls:2,vars:0,consts:[["outlet",""]],template:function(t,a){t&1&&n(0,"router-outlet",null,0)},dependencies:[s]})}}return e})();export{m as TorrentsComponent}; +import{k as s}from"./chunk-ZBBMS7J5.js";import{Sb as n,pc as r,ua as o}from"./chunk-FJILXII2.js";var m=(()=>{class e{static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275cmp=o({type:e,selectors:[["app-torrents"]],standalone:!0,features:[r],decls:2,vars:0,consts:[["outlet",""]],template:function(t,a){t&1&&n(0,"router-outlet",null,0)},dependencies:[s]})}}return e})();export{m as TorrentsComponent}; diff --git a/webui/dist/bitmagnet/browser/chunk-FKMTSCBK.js b/webui/dist/bitmagnet/browser/chunk-ZBBMS7J5.js similarity index 99% rename from webui/dist/bitmagnet/browser/chunk-FKMTSCBK.js rename to webui/dist/bitmagnet/browser/chunk-ZBBMS7J5.js index 0ad04530..bfe3d057 100644 --- a/webui/dist/bitmagnet/browser/chunk-FKMTSCBK.js +++ b/webui/dist/bitmagnet/browser/chunk-ZBBMS7J5.js @@ -1,2 +1,2 @@ -import{$ as Cr,$a as Lr,A as Rr,Aa as le,Ab as Wr,Ac as wn,B as S,Ba as F,Bb as yn,Bc as Tt,C as mt,Cc as bt,D as U,Da as Rt,Dc as Ct,E as Le,F as Sr,Fb as Hr,Fc as Et,G as on,Gb as Xr,Hc as ni,Ia as hn,Ic as It,Ja as Pr,Ka as dn,L as H,Ma as _e,N as me,Na as ye,Nc as ri,Oa as q,Oc as Rn,P as ee,Pa as fn,Pc as ii,Qa as pn,Qc as si,R as an,Rc as x,S as ve,Sa as Nr,Sb as Jr,Sc as oi,T as Tr,Ta as gn,Tc as $e,Ua as xr,Uc as ai,Va as he,Vc as ci,W as ue,Wc as ze,X as te,Xa as mn,Xc as Mt,Y as cn,Ya as we,Z as br,Za as Re,Zb as Zr,_a as Ur,a as f,ab as kr,b as P,bb as jr,cb as _r,cd as ui,d as tn,da as Er,db as Fr,dc as Kr,e as vr,ea as L,eb as $r,ed as At,fa as Ir,fb as de,fc as Yr,fd as li,g as yr,gc as Qr,gd as Dt,h as nn,ha as D,i as rn,ia as E,ib as zr,j as sn,jb as Fe,k as Y,ka as R,l as _,la as vt,lb as z,ma as Mr,mb as Br,na as C,o as Q,oa as un,pa as m,pc as ei,qa as d,qb as Vr,ra as ln,rb as vn,sa as Ar,sb as qr,ta as ke,ua as Dr,va as yt,w as O,wa as wt,x as p,y as Ue,ya as je,yc as St,z as wr,za as Or,zb as Gr,zc as ti}from"./chunk-3DR3CJRN.js";var Ve=class{},Pt=class{},X=class t{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?typeof n=="string"?this.lazyInit=()=>{this.headers=new Map,n.split(` +import{$ as Cr,$a as Lr,A as Rr,Aa as le,Ab as Wr,Ac as ti,B as S,Ba as F,Bb as yn,Bc as wn,C as mt,Cc as Tt,D as U,Da as Rt,Dc as bt,E as Le,Ec as Ct,F as Sr,Fb as Hr,G as on,Gb as Xr,Gc as Et,Ia as hn,Ic as ni,Ja as Pr,Jc as It,Ka as dn,L as H,Ma as _e,N as me,Na as ye,Oa as q,Oc as ri,P as ee,Pa as fn,Pc as Rn,Qa as pn,Qc as ii,R as an,Rc as si,S as ve,Sa as Nr,Sb as Jr,Sc as x,T as Tr,Ta as gn,Tc as oi,Ua as xr,Uc as $e,Va as he,Vc as ai,W as ue,Wc as ci,X as te,Xa as mn,Xc as ze,Y as cn,Ya as we,Yc as Mt,Z as br,Za as Re,Zb as Zr,_a as Ur,a as f,ab as kr,b as P,bb as jr,cb as _r,d as tn,da as Er,db as Fr,dc as Kr,dd as ui,e as vr,ea as L,eb as $r,fa as Ir,fb as de,fc as Yr,fd as At,g as yr,gc as Qr,gd as li,h as nn,ha as D,hd as Dt,i as rn,ia as E,ib as zr,j as sn,jb as Fe,k as Y,ka as R,l as _,la as vt,lb as z,ma as Mr,mb as Br,na as C,o as Q,oa as un,pa as m,pc as ei,qa as d,qb as Vr,ra as ln,rb as vn,sa as Ar,sb as qr,ta as ke,ua as Dr,va as yt,w as O,wa as wt,x as p,y as Ue,ya as je,z as wr,za as Or,zb as Gr,zc as St}from"./chunk-FJILXII2.js";var Ve=class{},Pt=class{},X=class t{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?typeof n=="string"?this.lazyInit=()=>{this.headers=new Map,n.split(` `).forEach(e=>{let r=e.indexOf(":");if(r>0){let i=e.slice(0,r),s=i.toLowerCase(),o=e.slice(r+1).trim();this.maybeSetNormalizedName(i,s),this.headers.has(s)?this.headers.get(s).push(o):this.headers.set(s,[o])}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((e,r)=>{this.setHeaderEntries(r,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([e,r])=>{this.setHeaderEntries(e,r)})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();let e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){let e=new t;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){let e=n.name.toLowerCase();switch(n.op){case"a":case"s":let r=n.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(n.name,e);let i=(n.op==="a"?this.headers.get(e):void 0)||[];i.push(...r),this.headers.set(e,i);break;case"d":let s=n.value;if(!s)this.headers.delete(e),this.normalizedNames.delete(e);else{let o=this.headers.get(e);if(!o)return;o=o.filter(c=>s.indexOf(c)===-1),o.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,o)}break}}setHeaderEntries(n,e){let r=(Array.isArray(e)?e:[e]).map(s=>s.toString()),i=n.toLowerCase();this.headers.set(i,r),this.maybeSetNormalizedName(n,i)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}};var Tn=class{encodeKey(n){return hi(n)}encodeValue(n){return hi(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}};function As(t,n){let e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(i=>{let s=i.indexOf("="),[o,c]=s==-1?[n.decodeKey(i),""]:[n.decodeKey(i.slice(0,s)),n.decodeValue(i.slice(s+1))],a=e.get(o)||[];a.push(c),e.set(o,a)}),e}var Ds=/%(\d[a-f0-9])/gi,Os={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function hi(t){return encodeURIComponent(t).replace(Ds,(n,e)=>Os[e]??n)}function Ot(t){return`${t}`}var re=class t{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new Tn,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=As(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{let r=n.fromObject[e],i=Array.isArray(r)?r.map(Ot):[Ot(r)];this.map.set(e,i)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();let e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){let e=[];return Object.keys(n).forEach(r=>{let i=n[r];Array.isArray(i)?i.forEach(s=>{e.push({param:r,value:s,op:"a"})}):e.push({param:r,value:i,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{let e=this.encoder.encodeKey(n);return this.map.get(n).map(r=>e+"="+this.encoder.encodeValue(r)).join("&")}).filter(n=>n!=="").join("&")}clone(n){let e=new t({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":let e=(n.op==="a"?this.map.get(n.param):void 0)||[];e.push(Ot(n.value)),this.map.set(n.param,e);break;case"d":if(n.value!==void 0){let r=this.map.get(n.param)||[],i=r.indexOf(Ot(n.value));i!==-1&&r.splice(i,1),r.length>0?this.map.set(n.param,r):this.map.delete(n.param)}else{this.map.delete(n.param);break}}}),this.cloneFrom=this.updates=null)}};var bn=class{constructor(){this.map=new Map}set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}};function Ps(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function di(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function fi(t){return typeof Blob<"u"&&t instanceof Blob}function pi(t){return typeof FormData<"u"&&t instanceof FormData}function Ns(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var Be=class t{constructor(n,e,r,i){this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase();let s;if(Ps(this.method)||i?(this.body=r!==void 0?r:null,s=i):s=r,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params),this.transferCache=s.transferCache),this.headers??=new X,this.context??=new bn,!this.params)this.params=new re,this.urlWithParams=e;else{let o=this.params.toString();if(o.length===0)this.urlWithParams=e;else{let c=e.indexOf("?"),a=c===-1?"?":cy.set(T,n.setHeaders[T]),u)),n.setParams&&(l=Object.keys(n.setParams).reduce((y,T)=>y.set(T,n.setParams[T]),l)),new t(e,r,o,{params:l,headers:u,context:h,reportProgress:a,responseType:i,withCredentials:c,transferCache:s})}},ie=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(ie||{}),qe=class{constructor(n,e=200,r="OK"){this.headers=n.headers||new X,this.status=n.status!==void 0?n.status:e,this.statusText=n.statusText||r,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}},Nt=class t extends qe{constructor(n={}){super(n),this.type=ie.ResponseHeader}clone(n={}){return new t({headers:n.headers||this.headers,status:n.status!==void 0?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}},Ge=class t extends qe{constructor(n={}){super(n),this.type=ie.Response,this.body=n.body!==void 0?n.body:null}clone(n={}){return new t({body:n.body!==void 0?n.body:this.body,headers:n.headers||this.headers,status:n.status!==void 0?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}},ne=class extends qe{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${n.url||"(unknown url)"}`:this.message=`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}},Ri=200,xs=204;function Sn(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var Us=(()=>{class t{constructor(e){this.handler=e}request(e,r,i={}){let s;if(e instanceof Be)s=e;else{let a;i.headers instanceof X?a=i.headers:a=new X(i.headers);let u;i.params&&(i.params instanceof re?u=i.params:u=new re({fromObject:i.params})),s=new Be(e,r,i.body!==void 0?i.body:null,{headers:a,context:i.context,params:u,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials,transferCache:i.transferCache})}let o=p(s).pipe(ee(a=>this.handler.handle(a)));if(e instanceof Be||i.observe==="events")return o;let c=o.pipe(H(a=>a instanceof Ge));switch(i.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return c.pipe(S(a=>{if(a.body!==null&&!(a.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return a.body}));case"blob":return c.pipe(S(a=>{if(a.body!==null&&!(a.body instanceof Blob))throw new Error("Response is not a Blob.");return a.body}));case"text":return c.pipe(S(a=>{if(a.body!==null&&typeof a.body!="string")throw new Error("Response is not a string.");return a.body}));case"json":default:return c.pipe(S(a=>a.body))}case"response":return c;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(e,r={}){return this.request("DELETE",e,r)}get(e,r={}){return this.request("GET",e,r)}head(e,r={}){return this.request("HEAD",e,r)}jsonp(e,r){return this.request("JSONP",e,{params:new re().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,r={}){return this.request("OPTIONS",e,r)}patch(e,r,i={}){return this.request("PATCH",e,Sn(i,r))}post(e,r,i={}){return this.request("POST",e,Sn(i,r))}put(e,r,i={}){return this.request("PUT",e,Sn(i,r))}static{this.\u0275fac=function(r){return new(r||t)(m(Ve))}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac})}}return t})(),Ls=/^\)\]\}',?\n/,ks="X-Request-URL";function gi(t){if(t.url)return t.url;let n=ks.toLocaleLowerCase();return t.headers.get(n)}var js=(()=>{class t{constructor(){this.fetchImpl=d(Cn,{optional:!0})?.fetch??((...e)=>globalThis.fetch(...e)),this.ngZone=d(q)}handle(e){return new nn(r=>{let i=new AbortController;return this.doRequest(e,i.signal,r).then(En,s=>r.error(new ne({error:s}))),()=>i.abort()})}doRequest(e,r,i){return tn(this,null,function*(){let s=this.createRequestInit(e),o;try{let T=this.ngZone.runOutsideAngular(()=>this.fetchImpl(e.urlWithParams,f({signal:r},s)));_s(T),i.next({type:ie.Sent}),o=yield T}catch(T){i.error(new ne({error:T,status:T.status??0,statusText:T.statusText,url:e.urlWithParams,headers:T.headers}));return}let c=new X(o.headers),a=o.statusText,u=gi(o)??e.urlWithParams,l=o.status,h=null;if(e.reportProgress&&i.next(new Nt({headers:c,status:l,statusText:a,url:u})),o.body){let T=o.headers.get("content-length"),M=[],w=o.body.getReader(),v=0,N,K,I=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>tn(this,null,function*(){for(;;){let{done:ce,value:xe}=yield w.read();if(ce)break;if(M.push(xe),v+=xe.length,e.reportProgress){K=e.responseType==="text"?(K??"")+(N??=new TextDecoder).decode(xe,{stream:!0}):void 0;let mr=()=>i.next({type:ie.DownloadProgress,total:T?+T:void 0,loaded:v,partialText:K});I?I.run(mr):mr()}}}));let Ne=this.concatChunks(M,v);try{let ce=o.headers.get("Content-Type")??"";h=this.parseBody(e,Ne,ce)}catch(ce){i.error(new ne({error:ce,headers:new X(o.headers),status:o.status,statusText:o.statusText,url:gi(o)??e.urlWithParams}));return}}l===0&&(l=h?Ri:0),l>=200&&l<300?(i.next(new Ge({body:h,headers:c,status:l,statusText:a,url:u})),i.complete()):i.error(new ne({error:h,headers:c,status:l,statusText:a,url:u}))})}parseBody(e,r,i){switch(e.responseType){case"json":let s=new TextDecoder().decode(r).replace(Ls,"");return s===""?null:JSON.parse(s);case"text":return new TextDecoder().decode(r);case"blob":return new Blob([r],{type:i});case"arraybuffer":return r.buffer}}createRequestInit(e){let r={},i=e.withCredentials?"include":void 0;if(e.headers.forEach((s,o)=>r[s]=o.join(",")),e.headers.has("Accept")||(r.Accept="application/json, text/plain, */*"),!e.headers.has("Content-Type")){let s=e.detectContentTypeHeader();s!==null&&(r["Content-Type"]=s)}return{body:e.serializeBody(),method:e.method,headers:r,credentials:i}}concatChunks(e,r){let i=new Uint8Array(r),s=0;for(let o of e)i.set(o,s),s+=o.length;return i}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac})}}return t})(),Cn=class{};function En(){}function _s(t){t.then(En,En)}function Si(t,n){return n(t)}function Fs(t,n){return(e,r)=>n.intercept(e,{handle:i=>t(i,r)})}function $s(t,n,e){return(r,i)=>F(e,()=>n(r,s=>t(s,i)))}var zs=new C(""),In=new C(""),Bs=new C(""),Ti=new C("",{providedIn:"root",factory:()=>!0});function Vs(){let t=null;return(n,e)=>{t===null&&(t=(d(zs,{optional:!0})??[]).reduceRight(Fs,Si));let r=d(_e);if(d(Ti)){let s=r.add();return t(n,e).pipe(ue(()=>r.remove(s)))}else return t(n,e)}}var mi=(()=>{class t extends Ve{constructor(e,r){super(),this.backend=e,this.injector=r,this.chain=null,this.pendingTasks=d(_e),this.contributeToStability=d(Ti)}handle(e){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(In),...this.injector.get(Bs,[])]));this.chain=r.reduceRight((i,s)=>$s(i,s,this.injector),Si)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(e,i=>this.backend.handle(i)).pipe(ue(()=>this.pendingTasks.remove(r)))}else return this.chain(e,r=>this.backend.handle(r))}static{this.\u0275fac=function(r){return new(r||t)(m(Pt),m(le))}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac})}}return t})();var qs=/^\)\]\}',?\n/;function Gs(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var vi=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new E(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?O(r.\u0275loadImpl()):p(null)).pipe(L(()=>new nn(s=>{let o=r.build();if(o.open(e.method,e.urlWithParams),e.withCredentials&&(o.withCredentials=!0),e.headers.forEach((w,v)=>o.setRequestHeader(w,v.join(","))),e.headers.has("Accept")||o.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){let w=e.detectContentTypeHeader();w!==null&&o.setRequestHeader("Content-Type",w)}if(e.responseType){let w=e.responseType.toLowerCase();o.responseType=w!=="json"?w:"text"}let c=e.serializeBody(),a=null,u=()=>{if(a!==null)return a;let w=o.statusText||"OK",v=new X(o.getAllResponseHeaders()),N=Gs(o)||e.url;return a=new Nt({headers:v,status:o.status,statusText:w,url:N}),a},l=()=>{let{headers:w,status:v,statusText:N,url:K}=u(),I=null;v!==xs&&(I=typeof o.response>"u"?o.responseText:o.response),v===0&&(v=I?Ri:0);let Ne=v>=200&&v<300;if(e.responseType==="json"&&typeof I=="string"){let ce=I;I=I.replace(qs,"");try{I=I!==""?JSON.parse(I):null}catch(xe){I=ce,Ne&&(Ne=!1,I={error:xe,text:I})}}Ne?(s.next(new Ge({body:I,headers:w,status:v,statusText:N,url:K||void 0})),s.complete()):s.error(new ne({error:I,headers:w,status:v,statusText:N,url:K||void 0}))},h=w=>{let{url:v}=u(),N=new ne({error:w,status:o.status||0,statusText:o.statusText||"Unknown Error",url:v||void 0});s.error(N)},y=!1,T=w=>{y||(s.next(u()),y=!0);let v={type:ie.DownloadProgress,loaded:w.loaded};w.lengthComputable&&(v.total=w.total),e.responseType==="text"&&o.responseText&&(v.partialText=o.responseText),s.next(v)},M=w=>{let v={type:ie.UploadProgress,loaded:w.loaded};w.lengthComputable&&(v.total=w.total),s.next(v)};return o.addEventListener("load",l),o.addEventListener("error",h),o.addEventListener("timeout",h),o.addEventListener("abort",h),e.reportProgress&&(o.addEventListener("progress",T),c!==null&&o.upload&&o.upload.addEventListener("progress",M)),o.send(c),s.next({type:ie.Sent}),()=>{o.removeEventListener("error",h),o.removeEventListener("abort",h),o.removeEventListener("load",l),o.removeEventListener("timeout",h),e.reportProgress&&(o.removeEventListener("progress",T),c!==null&&o.upload&&o.upload.removeEventListener("progress",M)),o.readyState!==o.DONE&&o.abort()}})))}static{this.\u0275fac=function(r){return new(r||t)(m(Dt))}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac})}}return t})(),bi=new C(""),Ws="XSRF-TOKEN",Hs=new C("",{providedIn:"root",factory:()=>Ws}),Xs="X-XSRF-TOKEN",Js=new C("",{providedIn:"root",factory:()=>Xs}),xt=class{},Zs=(()=>{class t{constructor(e,r,i){this.doc=e,this.platform=r,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Mt(e,this.cookieName),this.lastCookieString=e),this.lastToken}static{this.\u0275fac=function(r){return new(r||t)(m(x),m(he),m(Hs))}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac})}}return t})();function Ks(t,n){let e=t.url.toLowerCase();if(!d(bi)||t.method==="GET"||t.method==="HEAD"||e.startsWith("http://")||e.startsWith("https://"))return n(t);let r=d(xt).getToken(),i=d(Js);return r!=null&&!t.headers.has(i)&&(t=t.clone({headers:t.headers.set(i,r)})),n(t)}var Ci=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(Ci||{});function Ys(t,n){return{\u0275kind:t,\u0275providers:n}}function kc(...t){let n=[Us,vi,mi,{provide:Ve,useExisting:mi},{provide:Pt,useFactory:()=>d(js,{optional:!0})??d(vi)},{provide:In,useValue:Ks,multi:!0},{provide:bi,useValue:!0},{provide:xt,useClass:Zs}];for(let e of t)n.push(...e.\u0275providers);return je(n)}var yi=new C("");function jc(){return Ys(Ci.LegacyInterceptors,[{provide:yi,useFactory:Vs},{provide:In,useExisting:yi,multi:!0}])}var Dn=class extends si{constructor(){super(...arguments),this.supportsDOMEvents=!0}},On=class t extends Dn{static makeCurrent(){ii(new t)}onAndCancel(n,e,r){return n.addEventListener(e,r),()=>{n.removeEventListener(e,r)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.remove()}createElement(n,e){return e=e||this.getDefaultDocument(),e.createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return e==="window"?window:e==="document"?n:e==="body"?n.body:null}getBaseHref(n){let e=to();return e==null?null:no(e)}resetBaseElement(){We=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return Mt(document.cookie,n)}},We=null;function to(){return We=We||document.querySelector("base"),We?We.getAttribute("href"):null}function no(t){return new URL(t,document.baseURI).pathname}var ro=(()=>{class t{build(){return new XMLHttpRequest}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac})}}return t})(),Pn=new C(""),Ai=(()=>{class t{constructor(e,r){this._zone=r,this._eventNameToPlugin=new Map,e.forEach(i=>{i.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,r,i){return this._findPluginFor(r).addEventListener(e,r,i)}getZone(){return this._zone}_findPluginFor(e){let r=this._eventNameToPlugin.get(e);if(r)return r;if(r=this._plugins.find(s=>s.supports(e)),!r)throw new E(5101,!1);return this._eventNameToPlugin.set(e,r),r}static{this.\u0275fac=function(r){return new(r||t)(m(Pn),m(q))}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac})}}return t})(),Ut=class{constructor(n){this._doc=n}},Mn="ng-app-id",Di=(()=>{class t{constructor(e,r,i,s={}){this.doc=e,this.appId=r,this.nonce=i,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=At(s),this.resetHostNodes()}addStyles(e){for(let r of e)this.changeUsageCount(r,1)===1&&this.onStyleAdded(r)}removeStyles(e){for(let r of e)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){let e=this.styleNodesInDOM;e&&(e.forEach(r=>r.remove()),e.clear());for(let r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(let r of this.getAllStyles())this.addStyleToHost(e,r)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(let r of this.hostNodes)this.addStyleToHost(r,e)}onStyleRemoved(e){let r=this.styleRef;r.get(e)?.elements?.forEach(i=>i.remove()),r.delete(e)}collectServerRenderedStyles(){let e=this.doc.head?.querySelectorAll(`style[${Mn}="${this.appId}"]`);if(e?.length){let r=new Map;return e.forEach(i=>{i.textContent!=null&&r.set(i.textContent,i)}),r}return null}changeUsageCount(e,r){let i=this.styleRef;if(i.has(e)){let s=i.get(e);return s.usage+=r,s.usage}return i.set(e,{usage:r,elements:[]}),r}getStyleElement(e,r){let i=this.styleNodesInDOM,s=i?.get(r);if(s?.parentNode===e)return i.delete(r),s.removeAttribute(Mn),s;{let o=this.doc.createElement("style");return this.nonce&&o.setAttribute("nonce",this.nonce),o.textContent=r,this.platformIsServer&&o.setAttribute(Mn,this.appId),e.appendChild(o),o}}addStyleToHost(e,r){let i=this.getStyleElement(e,r),s=this.styleRef,o=s.get(r)?.elements;o?o.push(i):s.set(r,{elements:[i],usage:1})}resetHostNodes(){let e=this.hostNodes;e.clear(),e.add(this.doc.head)}static{this.\u0275fac=function(r){return new(r||t)(m(x),m(gn),m(mn,8),m(he))}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac})}}return t})(),An={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},xn=/%COMP%/g,Oi="%COMP%",io=`_nghost-${Oi}`,so=`_ngcontent-${Oi}`,oo=!0,ao=new C("",{providedIn:"root",factory:()=>oo});function co(t){return so.replace(xn,t)}function uo(t){return io.replace(xn,t)}function Pi(t,n){return n.map(e=>e.replace(xn,t))}var Ei=(()=>{class t{constructor(e,r,i,s,o,c,a,u=null){this.eventManager=e,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=s,this.doc=o,this.platformId=c,this.ngZone=a,this.nonce=u,this.rendererByCompId=new Map,this.platformIsServer=At(c),this.defaultRenderer=new He(e,o,a,this.platformIsServer)}createRenderer(e,r){if(!e||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===ke.ShadowDom&&(r=P(f({},r),{encapsulation:ke.Emulated}));let i=this.getOrCreateRenderer(e,r);return i instanceof Lt?i.applyToHost(e):i instanceof Xe&&i.applyStyles(),i}getOrCreateRenderer(e,r){let i=this.rendererByCompId,s=i.get(r.id);if(!s){let o=this.doc,c=this.ngZone,a=this.eventManager,u=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,h=this.platformIsServer;switch(r.encapsulation){case ke.Emulated:s=new Lt(a,u,r,this.appId,l,o,c,h);break;case ke.ShadowDom:return new Nn(a,u,e,r,o,c,this.nonce,h);default:s=new Xe(a,u,r,l,o,c,h);break}i.set(r.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(r){return new(r||t)(m(Ai),m(Di),m(gn),m(ao),m(x),m(he),m(q),m(mn))}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac})}}return t})(),He=class{constructor(n,e,r,i){this.eventManager=n,this.doc=e,this.ngZone=r,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(n,e){return e?this.doc.createElementNS(An[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(Ii(n)?n.content:n).appendChild(e)}insertBefore(n,e,r){n&&(Ii(n)?n.content:n).insertBefore(e,r)}removeChild(n,e){e.remove()}selectRootElement(n,e){let r=typeof n=="string"?this.doc.querySelector(n):n;if(!r)throw new E(-5104,!1);return e||(r.textContent=""),r}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,r,i){if(i){e=i+":"+e;let s=An[i];s?n.setAttributeNS(s,e,r):n.setAttribute(e,r)}else n.setAttribute(e,r)}removeAttribute(n,e,r){if(r){let i=An[r];i?n.removeAttributeNS(i,e):n.removeAttribute(`${r}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,r,i){i&(Fe.DashCase|Fe.Important)?n.style.setProperty(e,r,i&Fe.Important?"important":""):n.style[e]=r}removeStyle(n,e,r){r&Fe.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,r){n!=null&&(n[e]=r)}setValue(n,e){n.nodeValue=e}listen(n,e,r){if(typeof n=="string"&&(n=Rn().getGlobalEventTarget(this.doc,n),!n))throw new Error(`Unsupported event target ${n} for event ${e}`);return this.eventManager.addEventListener(n,e,this.decoratePreventDefault(r))}decoratePreventDefault(n){return e=>{if(e==="__ngUnwrap__")return n;(this.platformIsServer?this.ngZone.runGuarded(()=>n(e)):n(e))===!1&&e.preventDefault()}}};function Ii(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var Nn=class extends He{constructor(n,e,r,i,s,o,c,a){super(n,s,o,a),this.sharedStylesHost=e,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=Pi(i.id,i.styles);for(let l of u){let h=document.createElement("style");c&&h.setAttribute("nonce",c),h.textContent=l,this.shadowRoot.appendChild(h)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,r){return super.insertBefore(this.nodeOrShadowRoot(n),e,r)}removeChild(n,e){return super.removeChild(null,e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Xe=class extends He{constructor(n,e,r,i,s,o,c,a){super(n,s,o,c),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=i,this.styles=a?Pi(a,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Lt=class extends Xe{constructor(n,e,r,i,s,o,c,a){let u=i+"-"+r.id;super(n,e,r,s,o,c,a,u),this.contentAttr=co(u),this.hostAttr=uo(u)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){let r=super.createElement(n,e);return super.setAttribute(r,this.contentAttr,""),r}},lo=(()=>{class t extends Ut{constructor(e){super(e)}supports(e){return!0}addEventListener(e,r,i){return e.addEventListener(r,i,!1),()=>this.removeEventListener(e,r,i)}removeEventListener(e,r,i){return e.removeEventListener(r,i)}static{this.\u0275fac=function(r){return new(r||t)(m(x))}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac})}}return t})(),Mi=["alt","control","meta","shift"],ho={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},fo={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},po=(()=>{class t extends Ut{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,r,i){let s=t.parseEventName(r),o=t.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Rn().onAndCancel(e,s.domEventName,o))}static parseEventName(e){let r=e.toLowerCase().split("."),i=r.shift();if(r.length===0||!(i==="keydown"||i==="keyup"))return null;let s=t._normalizeKey(r.pop()),o="",c=r.indexOf("code");if(c>-1&&(r.splice(c,1),o="code."),Mi.forEach(u=>{let l=r.indexOf(u);l>-1&&(r.splice(l,1),o+=u+".")}),o+=s,r.length!=0||s.length===0)return null;let a={};return a.domEventName=i,a.fullKey=o,a}static matchEventFullKeyCode(e,r){let i=ho[e.key]||e.key,s="";return r.indexOf("code.")>-1&&(i=e.code,s="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),Mi.forEach(o=>{if(o!==i){let c=fo[o];c(e)&&(s+=o+".")}}),s+=i,s===r)}static eventCallback(e,r,i){return s=>{t.matchEventFullKeyCode(s,e)&&i.runGuarded(()=>r(s))}}static _normalizeKey(e){return e==="esc"?"escape":e}static{this.\u0275fac=function(r){return new(r||t)(m(x))}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac})}}return t})();function au(t,n){return ni(f({rootComponent:t},go(n)))}function go(t){return{appProviders:[...Ro,...t?.providers??[]],platformProviders:wo}}function mo(){On.makeCurrent()}function vo(){return new fn}function yo(){return Nr(document),document}var wo=[{provide:he,useValue:ui},{provide:xr,useValue:mo,multi:!0},{provide:x,useFactory:yo,deps:[]}];var Ro=[{provide:Or,useValue:"root"},{provide:fn,useFactory:vo,deps:[]},{provide:Pn,useClass:lo,multi:!0,deps:[x,q,he]},{provide:Pn,useClass:po,multi:!0,deps:[x]},Ei,Di,Ai,{provide:Vr,useExisting:Ei},{provide:Dt,useClass:ro,deps:[]},[]];var Ni=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static{this.\u0275fac=function(r){return new(r||t)(m(x))}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var So=(()=>{class t{static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=R({token:t,factory:function(r){let i=null;return r?i=new(r||t):i=m(To),i},providedIn:"root"})}}return t})(),To=(()=>{class t extends So{constructor(e){super(),this._doc=e}sanitize(e,r){if(r==null)return null;switch(e){case de.NONE:return r;case de.HTML:return Re(r,"HTML")?we(r):$r(this._doc,String(r)).toString();case de.STYLE:return Re(r,"Style")?we(r):r;case de.SCRIPT:if(Re(r,"Script"))return we(r);throw new E(5200,!1);case de.URL:return Re(r,"URL")?we(r):Fr(String(r));case de.RESOURCE_URL:if(Re(r,"ResourceURL"))return we(r);throw new E(5201,!1);default:throw new E(5202,!1)}}bypassSecurityTrustHtml(e){return Ur(e)}bypassSecurityTrustStyle(e){return Lr(e)}bypassSecurityTrustScript(e){return kr(e)}bypassSecurityTrustUrl(e){return jr(e)}bypassSecurityTrustResourceUrl(e){return _r(e)}static{this.\u0275fac=function(r){return new(r||t)(m(x))}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var g="primary",ut=Symbol("RouteTitle"),_n=class{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function Ie(t){return new _n(t)}function Co(t,n,e){let r=e.path.split("/");if(r.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||r.lengthr[s]===i)}else return t===n}function Gi(t){return t.length>0?t[t.length-1]:null}function ae(t){return wr(t)?t:ti(t)?O(Promise.resolve(t)):p(t)}var Io={exact:Hi,subset:Xi},Wi={exact:Mo,subset:Ao,ignored:()=>!0};function xi(t,n,e){return Io[e.paths](t.root,n.root,e.matrixParams)&&Wi[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function Mo(t,n){return G(t,n)}function Hi(t,n,e){if(!pe(t.segments,n.segments)||!_t(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(let r in n.children)if(!t.children[r]||!Hi(t.children[r],n.children[r],e))return!1;return!0}function Ao(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>qi(t[e],n[e]))}function Xi(t,n,e){return Ji(t,n,n.segments,e)}function Ji(t,n,e,r){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!pe(i,e)||n.hasChildren()||!_t(i,e,r))}else if(t.segments.length===e.length){if(!pe(t.segments,e)||!_t(t.segments,e,r))return!1;for(let i in n.children)if(!t.children[i]||!Xi(t.children[i],n.children[i],r))return!1;return!0}else{let i=e.slice(0,t.segments.length),s=e.slice(t.segments.length);return!pe(t.segments,i)||!_t(t.segments,i,r)||!t.children[g]?!1:Ji(t.children[g],n,s,r)}}function _t(t,n,e){return n.every((r,i)=>Wi[e](t[i].parameters,r.parameters))}var Z=class{constructor(n=new b([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r}get queryParamMap(){return this._queryParamMap??=Ie(this.queryParams),this._queryParamMap}toString(){return Po.serialize(this)}},b=class{constructor(n,e){this.segments=n,this.children=e,this.parent=null,Object.values(e).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Ft(this)}},fe=class{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=Ie(this.parameters),this._parameterMap}toString(){return Ki(this)}};function Do(t,n){return pe(t,n)&&t.every((e,r)=>G(e.parameters,n[r].parameters))}function pe(t,n){return t.length!==n.length?!1:t.every((e,r)=>e.path===n[r].path)}function Oo(t,n){let e=[];return Object.entries(t.children).forEach(([r,i])=>{r===g&&(e=e.concat(n(i,r)))}),Object.entries(t.children).forEach(([r,i])=>{r!==g&&(e=e.concat(n(i,r)))}),e}var lt=(()=>{class t{static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=R({token:t,factory:()=>new Me,providedIn:"root"})}}return t})(),Me=class{parse(n){let e=new zn(n);return new Z(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${Je(n.root,!0)}`,r=Uo(n.queryParams),i=typeof n.fragment=="string"?`#${No(n.fragment)}`:"";return`${e}${r}${i}`}},Po=new Me;function Ft(t){return t.segments.map(n=>Ki(n)).join("/")}function Je(t,n){if(!t.hasChildren())return Ft(t);if(n){let e=t.children[g]?Je(t.children[g],!1):"",r=[];return Object.entries(t.children).forEach(([i,s])=>{i!==g&&r.push(`${i}:${Je(s,!1)}`)}),r.length>0?`${e}(${r.join("//")})`:e}else{let e=Oo(t,(r,i)=>i===g?[Je(t.children[g],!1)]:[`${i}:${Je(r,!1)}`]);return Object.keys(t.children).length===1&&t.children[g]!=null?`${Ft(t)}/${e[0]}`:`${Ft(t)}/(${e.join("//")})`}}function Zi(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function kt(t){return Zi(t).replace(/%3B/gi,";")}function No(t){return encodeURI(t)}function $n(t){return Zi(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function $t(t){return decodeURIComponent(t)}function Ui(t){return $t(t.replace(/\+/g,"%20"))}function Ki(t){return`${$n(t.path)}${xo(t.parameters)}`}function xo(t){return Object.entries(t).map(([n,e])=>`;${$n(n)}=${$n(e)}`).join("")}function Uo(t){let n=Object.entries(t).map(([e,r])=>Array.isArray(r)?r.map(i=>`${kt(e)}=${kt(i)}`).join("&"):`${kt(e)}=${kt(r)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var Lo=/^[^\/()?;#]+/;function Un(t){let n=t.match(Lo);return n?n[0]:""}var ko=/^[^\/()?;=#]+/;function jo(t){let n=t.match(ko);return n?n[0]:""}var _o=/^[^=?&#]+/;function Fo(t){let n=t.match(_o);return n?n[0]:""}var $o=/^[^&#]+/;function zo(t){let n=t.match($o);return n?n[0]:""}var zn=class{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new b([],{}):new b([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(r[g]=new b(n,e)),r}parseSegment(){let n=Un(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new E(4009,!1);return this.capture(n),new fe($t(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=jo(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let i=Un(this.remaining);i&&(r=i,this.capture(r))}n[$t(e)]=$t(r)}parseQueryParam(n){let e=Fo(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let o=zo(this.remaining);o&&(r=o,this.capture(r))}let i=Ui(e),s=Ui(r);if(n.hasOwnProperty(i)){let o=n[i];Array.isArray(o)||(o=[o],n[i]=o),o.push(s)}else n[i]=s}parseParens(n){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=Un(this.remaining),i=this.remaining[r.length];if(i!=="/"&&i!==")"&&i!==";")throw new E(4010,!1);let s;r.indexOf(":")>-1?(s=r.slice(0,r.indexOf(":")),this.capture(s),this.capture(":")):n&&(s=g);let o=this.parseChildren();e[s]=Object.keys(o).length===1?o[g]:new b([],o),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),!0):!1}capture(n){if(!this.consumeOptional(n))throw new E(4011,!1)}};function Yi(t){return t.segments.length>0?new b([],{[g]:t}):t}function Qi(t){let n={};for(let[r,i]of Object.entries(t.children)){let s=Qi(i);if(r===g&&s.segments.length===0&&s.hasChildren())for(let[o,c]of Object.entries(s.children))n[o]=c;else(s.segments.length>0||s.hasChildren())&&(n[r]=s)}let e=new b(t.segments,n);return Bo(e)}function Bo(t){if(t.numberOfChildren===1&&t.children[g]){let n=t.children[g];return new b(t.segments.concat(n.segments),n.children)}return t}function ge(t){return t instanceof Z}function Vo(t,n,e=null,r=null){let i=es(t);return ts(i,n,e,r)}function es(t){let n;function e(s){let o={};for(let a of s.children){let u=e(a);o[a.outlet]=u}let c=new b(s.url,o);return s===t&&(n=c),c}let r=e(t.root),i=Yi(r);return n??i}function ts(t,n,e,r){let i=t;for(;i.parent;)i=i.parent;if(n.length===0)return Ln(i,i,i,e,r);let s=qo(n);if(s.toRoot())return Ln(i,i,new b([],{}),e,r);let o=Go(s,i,t),c=o.processChildren?Ye(o.segmentGroup,o.index,s.commands):rs(o.segmentGroup,o.index,s.commands);return Ln(i,o.segmentGroup,c,e,r)}function zt(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function tt(t){return typeof t=="object"&&t!=null&&t.outlets}function Ln(t,n,e,r,i){let s={};r&&Object.entries(r).forEach(([a,u])=>{s[a]=Array.isArray(u)?u.map(l=>`${l}`):`${u}`});let o;t===n?o=e:o=ns(t,n,e);let c=Yi(Qi(o));return new Z(c,s,i)}function ns(t,n,e){let r={};return Object.entries(t.children).forEach(([i,s])=>{s===n?r[i]=e:r[i]=ns(s,n,e)}),new b(t.segments,r)}var Bt=class{constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&zt(r[0]))throw new E(4003,!1);let i=r.find(tt);if(i&&i!==Gi(r))throw new E(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function qo(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new Bt(!0,0,t);let n=0,e=!1,r=t.reduce((i,s,o)=>{if(typeof s=="object"&&s!=null){if(s.outlets){let c={};return Object.entries(s.outlets).forEach(([a,u])=>{c[a]=typeof u=="string"?u.split("/"):u}),[...i,{outlets:c}]}if(s.segmentPath)return[...i,s.segmentPath]}return typeof s!="string"?[...i,s]:o===0?(s.split("/").forEach((c,a)=>{a==0&&c==="."||(a==0&&c===""?e=!0:c===".."?n++:c!=""&&i.push(c))}),i):[...i,s]},[]);return new Bt(e,n,r)}var be=class{constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r}};function Go(t,n,e){if(t.isAbsolute)return new be(n,!0,0);if(!e)return new be(n,!1,NaN);if(e.parent===null)return new be(e,!0,0);let r=zt(t.commands[0])?0:1,i=e.segments.length-1+r;return Wo(e,i,t.numberOfDoubleDots)}function Wo(t,n,e){let r=t,i=n,s=e;for(;s>i;){if(s-=i,r=r.parent,!r)throw new E(4005,!1);i=r.segments.length}return new be(r,!1,i-s)}function Ho(t){return tt(t[0])?t[0].outlets:{[g]:t}}function rs(t,n,e){if(t??=new b([],{}),t.segments.length===0&&t.hasChildren())return Ye(t,n,e);let r=Xo(t,n,e),i=e.slice(r.commandIndex);if(r.match&&r.pathIndexs!==g)&&t.children[g]&&t.numberOfChildren===1&&t.children[g].segments.length===0){let s=Ye(t.children[g],n,e);return new b(t.segments,s.children)}return Object.entries(r).forEach(([s,o])=>{typeof o=="string"&&(o=[o]),o!==null&&(i[s]=rs(t.children[s],n,o))}),Object.entries(t.children).forEach(([s,o])=>{r[s]===void 0&&(i[s]=o)}),new b(t.segments,i)}}function Xo(t,n,e){let r=0,i=n,s={match:!1,pathIndex:0,commandIndex:0};for(;i=e.length)return s;let o=t.segments[i],c=e[r];if(tt(c))break;let a=`${c}`,u=r0&&a===void 0)break;if(a&&u&&typeof u=="object"&&u.outlets===void 0){if(!ki(a,u,o))return s;r+=2}else{if(!ki(a,{},o))return s;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function Bn(t,n,e){let r=t.segments.slice(0,n),i=0;for(;i{typeof r=="string"&&(r=[r]),r!==null&&(n[e]=Bn(new b([],{}),0,r))}),n}function Li(t){let n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function ki(t,n,e){return t==e.path&&G(n,e.parameters)}var Qe="imperative",A=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(A||{}),$=class{constructor(n,e){this.id=n,this.url=e}},Ae=class extends ${constructor(n,e,r="imperative",i=null){super(n,e),this.type=A.NavigationStart,this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},V=class extends ${constructor(n,e,r){super(n,e),this.urlAfterRedirects=r,this.type=A.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},j=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(j||{}),Vt=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(Vt||{}),J=class extends ${constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i,this.type=A.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},se=class extends ${constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i,this.type=A.NavigationSkipped}},nt=class extends ${constructor(n,e,r,i){super(n,e),this.error=r,this.target=i,this.type=A.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},qt=class extends ${constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i,this.type=A.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Vn=class extends ${constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i,this.type=A.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},qn=class extends ${constructor(n,e,r,i,s){super(n,e),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=s,this.type=A.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Gn=class extends ${constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i,this.type=A.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Wn=class extends ${constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i,this.type=A.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Hn=class{constructor(n){this.route=n,this.type=A.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Xn=class{constructor(n){this.route=n,this.type=A.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Jn=class{constructor(n){this.snapshot=n,this.type=A.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Zn=class{constructor(n){this.snapshot=n,this.type=A.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Kn=class{constructor(n){this.snapshot=n,this.type=A.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Yn=class{constructor(n){this.snapshot=n,this.type=A.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Gt=class{constructor(n,e,r){this.routerEvent=n,this.position=e,this.anchor=r,this.type=A.Scroll}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${n}')`}},rt=class{},De=class{constructor(n,e){this.url=n,this.navigationBehaviorOptions=e}};function Zo(t,n){return t.providers&&!t._injector&&(t._injector=yn(t.providers,n,`Route: ${t.path}`)),t._injector??n}function B(t){return t.outlet||g}function Ko(t,n){let e=t.filter(r=>B(r)===n);return e.push(...t.filter(r=>B(r)!==n)),e}function ht(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){let e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var Qn=class{get injector(){return ht(this.route?.snapshot)??this.rootInjector}set injector(n){}constructor(n){this.rootInjector=n,this.outlet=null,this.route=null,this.children=new dt(this.rootInjector),this.attachRef=null}},dt=(()=>{class t{constructor(e){this.rootInjector=e,this.contexts=new Map}onChildOutletCreated(e,r){let i=this.getOrCreateContext(e);i.outlet=r,this.contexts.set(e,i)}onChildOutletDestroyed(e){let r=this.getContext(e);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let r=this.getContext(e);return r||(r=new Qn(this.rootInjector),this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}static{this.\u0275fac=function(r){return new(r||t)(m(le))}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Wt=class{constructor(n){this._root=n}get root(){return this._root.value}parent(n){let e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){let e=er(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){let e=er(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=tr(n,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return tr(n,this._root).map(e=>e.value)}};function er(t,n){if(t===n.value)return n;for(let e of n.children){let r=er(t,e);if(r)return r}return null}function tr(t,n){if(t===n.value)return[n];for(let e of n.children){let r=tr(t,e);if(r.length)return r.unshift(n),r}return[]}var k=class{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}};function Te(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var Ht=class extends Wt{constructor(n,e){super(n),this.snapshot=e,lr(this,n)}toString(){return this.snapshot.toString()}};function is(t){let n=Yo(t),e=new _([new fe("",{})]),r=new _({}),i=new _({}),s=new _({}),o=new _(""),c=new oe(e,r,s,o,i,g,t,n.root);return c.snapshot=n.root,new Ht(new k(c,[]),n)}function Yo(t){let n={},e={},r={},i="",s=new Ce([],n,r,i,e,g,t,null,{});return new Jt("",new k(s,[]))}var oe=class{constructor(n,e,r,i,s,o,c,a){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=s,this.outlet=o,this.component=c,this._futureSnapshot=a,this.title=this.dataSubject?.pipe(S(u=>u[ut]))??p(void 0),this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=s}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(S(n=>Ie(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(S(n=>Ie(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Xt(t,n,e="emptyOnly"){let r,{routeConfig:i}=t;return n!==null&&(e==="always"||i?.path===""||!n.component&&!n.routeConfig?.loadComponent)?r={params:f(f({},n.params),t.params),data:f(f({},n.data),t.data),resolve:f(f(f(f({},t.data),n.data),i?.data),t._resolvedData)}:r={params:f({},t.params),data:f({},t.data),resolve:f(f({},t.data),t._resolvedData??{})},i&&os(i)&&(r.resolve[ut]=i.title),r}var Ce=class{get title(){return this.data?.[ut]}constructor(n,e,r,i,s,o,c,a,u){this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=s,this.outlet=o,this.component=c,this.routeConfig=a,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=Ie(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Ie(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(r=>r.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${n}', path:'${e}')`}},Jt=class extends Wt{constructor(n,e){super(e),this.url=n,lr(this,e)}toString(){return ss(this._root)}};function lr(t,n){n.value._routerState=t,n.children.forEach(e=>lr(t,e))}function ss(t){let n=t.children.length>0?` { ${t.children.map(ss).join(", ")} } `:"";return`${t.value}${n}`}function kn(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,G(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),G(n.params,e.params)||t.paramsSubject.next(e.params),Eo(n.url,e.url)||t.urlSubject.next(e.url),G(n.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function nr(t,n){let e=G(t.params,n.params)&&Do(t.url,n.url),r=!t.parent!=!n.parent;return e&&!r&&(!t.parent||nr(t.parent,n.parent))}function os(t){return typeof t.title=="string"||t.title===null}var Qo=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=g,this.activateEvents=new ye,this.deactivateEvents=new ye,this.attachEvents=new ye,this.detachEvents=new ye,this.parentContexts=d(dt),this.location=d(qr),this.changeDetector=d(Et),this.inputBinder=d(Qt,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(e){if(e.name){let{firstChange:r,previousValue:i}=e.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new E(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new E(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new E(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,r){this.activated=e,this._activatedRoute=r,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,r){if(this.isActivated)throw new E(4013,!1);this._activatedRoute=e;let i=this.location,o=e.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,a=new rr(e,c,i.injector);this.activated=i.createComponent(o,{index:i.length,injector:a,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275dir=wt({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Rt]})}}return t})(),rr=class t{__ngOutletInjector(n){return new t(this.route,this.childContexts,n)}constructor(n,e,r){this.route=n,this.childContexts=e,this.parent=r}get(n,e){return n===oe?this.route:n===dt?this.childContexts:this.parent.get(n,e)}},Qt=new C(""),ji=(()=>{class t{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:r}=e,i=mt([r.queryParams,r.params,r.data]).pipe(L(([s,o,c],a)=>(c=f(f(f({},s),o),c),a===0?p(c):Promise.resolve(c)))).subscribe(s=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(e);return}let o=ri(r.component);if(!o){this.unsubscribeFromRouteData(e);return}for(let{templateName:c}of o.inputs)e.activatedComponentRef.setInput(c,s[c])});this.outletDataSubscriptions.set(e,i)}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac})}}return t})();function ea(t,n,e){let r=it(t,n._root,e?e._root:void 0);return new Ht(r,n)}function it(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let r=e.value;r._futureSnapshot=n.value;let i=ta(t,n,e);return new k(r,i)}else{if(t.shouldAttach(n.value)){let s=t.retrieve(n.value);if(s!==null){let o=s.route;return o.value._futureSnapshot=n.value,o.children=n.children.map(c=>it(t,c)),o}}let r=na(n.value),i=n.children.map(s=>it(t,s));return new k(r,i)}}function ta(t,n,e){return n.children.map(r=>{for(let i of e.children)if(t.shouldReuseRoute(r.value,i.value.snapshot))return it(t,r,i);return it(t,r)})}function na(t){return new oe(new _(t.url),new _(t.params),new _(t.queryParams),new _(t.fragment),new _(t.data),t.outlet,t.component,t)}var st=class{constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e}},as="ngNavigationCancelingError";function Zt(t,n){let{redirectTo:e,navigationBehaviorOptions:r}=ge(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=cs(!1,j.Redirect);return i.url=e,i.navigationBehaviorOptions=r,i}function cs(t,n){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[as]=!0,e.cancellationCode=n,e}function ra(t){return us(t)&&ge(t.url)}function us(t){return!!t&&t[as]}var ia=(t,n,e,r)=>S(i=>(new ir(n,i.targetRouterState,i.currentRouterState,e,r).activate(t),i)),ir=class{constructor(n,e,r,i,s){this.routeReuseStrategy=n,this.futureState=e,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=s}activate(n){let e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,n),kn(this.futureState.root),this.activateChildRoutes(e,r,n)}deactivateChildRoutes(n,e,r){let i=Te(e);n.children.forEach(s=>{let o=s.value.outlet;this.deactivateRoutes(s,i[o],r),delete i[o]}),Object.values(i).forEach(s=>{this.deactivateRouteAndItsChildren(s,r)})}deactivateRoutes(n,e,r){let i=n.value,s=e?e.value:null;if(i===s)if(i.component){let o=r.getContext(i.outlet);o&&this.deactivateChildRoutes(n,e,o.children)}else this.deactivateChildRoutes(n,e,r);else s&&this.deactivateRouteAndItsChildren(e,r)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,s=Te(n);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,i);if(r&&r.outlet){let o=r.outlet.detach(),c=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:o,route:n,contexts:c})}}deactivateRouteAndOutlet(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,s=Te(n);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(n,e,r){let i=Te(e);n.children.forEach(s=>{this.activateRoutes(s,i[s.value.outlet],r),this.forwardEvent(new Yn(s.value.snapshot))}),n.children.length&&this.forwardEvent(new Zn(n.value.snapshot))}activateRoutes(n,e,r){let i=n.value,s=e?e.value:null;if(kn(i),i===s)if(i.component){let o=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,e,o.children)}else this.activateChildRoutes(n,e,r);else if(i.component){let o=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let c=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),o.children.onOutletReAttached(c.contexts),o.attachRef=c.componentRef,o.route=c.route.value,o.outlet&&o.outlet.attach(c.componentRef,c.route.value),kn(c.route.value),this.activateChildRoutes(n,null,o.children)}else o.attachRef=null,o.route=i,o.outlet&&o.outlet.activateWith(i,o.injector),this.activateChildRoutes(n,null,o.children)}else this.activateChildRoutes(n,null,r)}},Kt=class{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},Ee=class{constructor(n,e){this.component=n,this.route=e}};function sa(t,n,e){let r=t._root,i=n?n._root:null;return Ze(r,i,e,[r.value])}function oa(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:t,guards:n}}function Pe(t,n){let e=Symbol(),r=n.get(t,e);return r===e?typeof t=="function"&&!Mr(t)?t:n.get(t):r}function Ze(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let s=Te(n);return t.children.forEach(o=>{aa(o,s[o.value.outlet],e,r.concat([o.value]),i),delete s[o.value.outlet]}),Object.entries(s).forEach(([o,c])=>et(c,e.getContext(o),i)),i}function aa(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let s=t.value,o=n?n.value:null,c=e?e.getContext(t.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){let a=ca(o,s,s.routeConfig.runGuardsAndResolvers);a?i.canActivateChecks.push(new Kt(r)):(s.data=o.data,s._resolvedData=o._resolvedData),s.component?Ze(t,n,c?c.children:null,r,i):Ze(t,n,e,r,i),a&&c&&c.outlet&&c.outlet.isActivated&&i.canDeactivateChecks.push(new Ee(c.outlet.component,o))}else o&&et(n,c,i),i.canActivateChecks.push(new Kt(r)),s.component?Ze(t,null,c?c.children:null,r,i):Ze(t,null,e,r,i);return i}function ca(t,n,e){if(typeof e=="function")return e(t,n);switch(e){case"pathParamsChange":return!pe(t.url,n.url);case"pathParamsOrQueryParamsChange":return!pe(t.url,n.url)||!G(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!nr(t,n)||!G(t.queryParams,n.queryParams);case"paramsChange":default:return!nr(t,n)}}function et(t,n,e){let r=Te(t),i=t.value;Object.entries(r).forEach(([s,o])=>{i.component?n?et(o,n.children.getContext(s),e):et(o,null,e):et(o,n,e)}),i.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new Ee(n.outlet.component,i)):e.canDeactivateChecks.push(new Ee(null,i)):e.canDeactivateChecks.push(new Ee(null,i))}function ft(t){return typeof t=="function"}function ua(t){return typeof t=="boolean"}function la(t){return t&&ft(t.canLoad)}function ha(t){return t&&ft(t.canActivate)}function da(t){return t&&ft(t.canActivateChild)}function fa(t){return t&&ft(t.canDeactivate)}function pa(t){return t&&ft(t.canMatch)}function ls(t){return t instanceof Rr||t?.name==="EmptyError"}var jt=Symbol("INITIAL_VALUE");function Oe(){return L(t=>mt(t.map(n=>n.pipe(ve(1),Er(jt)))).pipe(S(n=>{for(let e of n)if(e!==!0){if(e===jt)return jt;if(e===!1||ga(e))return e}return!0}),H(n=>n!==jt),ve(1)))}function ga(t){return ge(t)||t instanceof st}function ma(t,n){return U(e=>{let{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:s,canDeactivateChecks:o}}=e;return o.length===0&&s.length===0?p(P(f({},e),{guardsResult:!0})):va(o,r,i,t).pipe(U(c=>c&&ua(c)?ya(r,s,t,n):p(c)),S(c=>P(f({},e),{guardsResult:c})))})}function va(t,n,e,r){return O(t).pipe(U(i=>ba(i.component,i.route,e,n,r)),te(i=>i!==!0,!0))}function ya(t,n,e,r){return O(n).pipe(ee(i=>Sr(Ra(i.route.parent,r),wa(i.route,r),Ta(t,i.path,e),Sa(t,i.route,e))),te(i=>i!==!0,!0))}function wa(t,n){return t!==null&&n&&n(new Kn(t)),p(!0)}function Ra(t,n){return t!==null&&n&&n(new Jn(t)),p(!0)}function Sa(t,n,e){let r=n.routeConfig?n.routeConfig.canActivate:null;if(!r||r.length===0)return p(!0);let i=r.map(s=>on(()=>{let o=ht(n)??e,c=Pe(s,o),a=ha(c)?c.canActivate(n,t):F(o,()=>c(n,t));return ae(a).pipe(te())}));return p(i).pipe(Oe())}function Ta(t,n,e){let r=n[n.length-1],s=n.slice(0,n.length-1).reverse().map(o=>oa(o)).filter(o=>o!==null).map(o=>on(()=>{let c=o.guards.map(a=>{let u=ht(o.node)??e,l=Pe(a,u),h=da(l)?l.canActivateChild(r,t):F(u,()=>l(r,t));return ae(h).pipe(te())});return p(c).pipe(Oe())}));return p(s).pipe(Oe())}function ba(t,n,e,r,i){let s=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!s||s.length===0)return p(!0);let o=s.map(c=>{let a=ht(n)??i,u=Pe(c,a),l=fa(u)?u.canDeactivate(t,n,e,r):F(a,()=>u(t,n,e,r));return ae(l).pipe(te())});return p(o).pipe(Oe())}function Ca(t,n,e,r){let i=n.canLoad;if(i===void 0||i.length===0)return p(!0);let s=i.map(o=>{let c=Pe(o,t),a=la(c)?c.canLoad(n,e):F(t,()=>c(n,e));return ae(a)});return p(s).pipe(Oe(),hs(r))}function hs(t){return yr(D(n=>{if(typeof n!="boolean")throw Zt(t,n)}),S(n=>n===!0))}function Ea(t,n,e,r){let i=n.canMatch;if(!i||i.length===0)return p(!0);let s=i.map(o=>{let c=Pe(o,t),a=pa(c)?c.canMatch(n,e):F(t,()=>c(n,e));return ae(a)});return p(s).pipe(Oe(),hs(r))}var ot=class{constructor(n){this.segmentGroup=n||null}},at=class extends Error{constructor(n){super(),this.urlTree=n}};function Se(t){return Ue(new ot(t))}function Ia(t){return Ue(new E(4e3,!1))}function Ma(t){return Ue(cs(!1,j.GuardRejected))}var sr=class{constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){let r=[],i=e.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return p(r);if(i.numberOfChildren>1||!i.children[g])return Ia(`${n.redirectTo}`);i=i.children[g]}}applyRedirectCommands(n,e,r,i,s){if(typeof e!="string"){let c=e,{queryParams:a,fragment:u,routeConfig:l,url:h,outlet:y,params:T,data:M,title:w}=i,v=F(s,()=>c({params:T,data:M,queryParams:a,fragment:u,routeConfig:l,url:h,outlet:y,title:w}));if(v instanceof Z)throw new at(v);e=v}let o=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,r);if(e[0]==="/")throw new at(o);return o}applyRedirectCreateUrlTree(n,e,r,i){let s=this.createSegmentGroup(n,e.root,r,i);return new Z(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let r={};return Object.entries(n).forEach(([i,s])=>{if(typeof s=="string"&&s[0]===":"){let c=s.substring(1);r[i]=e[c]}else r[i]=s}),r}createSegmentGroup(n,e,r,i){let s=this.createSegments(n,e.segments,r,i),o={};return Object.entries(e.children).forEach(([c,a])=>{o[c]=this.createSegmentGroup(n,a,r,i)}),new b(s,o)}createSegments(n,e,r,i){return e.map(s=>s.path[0]===":"?this.findPosParam(n,s,i):this.findOrReturn(s,r))}findPosParam(n,e,r){let i=r[e.path.substring(1)];if(!i)throw new E(4001,!1);return i}findOrReturn(n,e){let r=0;for(let i of e){if(i.path===n.path)return e.splice(r),i;r++}return n}},or={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Aa(t,n,e,r,i){let s=ds(t,n,e);return s.matched?(r=Zo(n,r),Ea(r,n,e,i).pipe(S(o=>o===!0?s:f({},or)))):p(s)}function ds(t,n,e){if(n.path==="**")return Da(e);if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?f({},or):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(n.matcher||Co)(e,t,n);if(!i)return f({},or);let s={};Object.entries(i.posParams??{}).forEach(([c,a])=>{s[c]=a.path});let o=i.consumed.length>0?f(f({},s),i.consumed[i.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:o,positionalParamSegments:i.posParams??{}}}function Da(t){return{matched:!0,parameters:t.length>0?Gi(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function _i(t,n,e,r){return e.length>0&&Na(t,e,r)?{segmentGroup:new b(n,Pa(r,new b(e,t.children))),slicedSegments:[]}:e.length===0&&xa(t,e,r)?{segmentGroup:new b(t.segments,Oa(t,e,r,t.children)),slicedSegments:e}:{segmentGroup:new b(t.segments,t.children),slicedSegments:e}}function Oa(t,n,e,r){let i={};for(let s of e)if(en(t,n,s)&&!r[B(s)]){let o=new b([],{});i[B(s)]=o}return f(f({},r),i)}function Pa(t,n){let e={};e[g]=n;for(let r of t)if(r.path===""&&B(r)!==g){let i=new b([],{});e[B(r)]=i}return e}function Na(t,n,e){return e.some(r=>en(t,n,r)&&B(r)!==g)}function xa(t,n,e){return e.some(r=>en(t,n,r))}function en(t,n,e){return(t.hasChildren()||n.length>0)&&e.pathMatch==="full"?!1:e.path===""}function Ua(t,n,e){return n.length===0&&!t.children[e]}var ar=class{};function La(t,n,e,r,i,s,o="emptyOnly"){return new cr(t,n,e,r,i,o,s).recognize()}var ka=31,cr=class{constructor(n,e,r,i,s,o,c){this.injector=n,this.configLoader=e,this.rootComponentType=r,this.config=i,this.urlTree=s,this.paramsInheritanceStrategy=o,this.urlSerializer=c,this.applyRedirects=new sr(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(n){return new E(4002,`'${n.segmentGroup}'`)}recognize(){let n=_i(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(S(({children:e,rootSnapshot:r})=>{let i=new k(r,e),s=new Jt("",i),o=Vo(r,[],this.urlTree.queryParams,this.urlTree.fragment);return o.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(o),{state:s,tree:o}}))}match(n){let e=new Ce([],Object.freeze({}),Object.freeze(f({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),g,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,n,g,e).pipe(S(r=>({children:r,rootSnapshot:e})),me(r=>{if(r instanceof at)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof ot?this.noMatchError(r):r}))}processSegmentGroup(n,e,r,i,s){return r.segments.length===0&&r.hasChildren()?this.processChildren(n,e,r,s):this.processSegment(n,e,r,r.segments,i,!0,s).pipe(S(o=>o instanceof k?[o]:[]))}processChildren(n,e,r,i){let s=[];for(let o of Object.keys(r.children))o==="primary"?s.unshift(o):s.push(o);return O(s).pipe(ee(o=>{let c=r.children[o],a=Ko(e,o);return this.processSegmentGroup(n,a,c,o,i)}),Cr((o,c)=>(o.push(...c),o)),an(null),br(),U(o=>{if(o===null)return Se(r);let c=fs(o);return ja(c),p(c)}))}processSegment(n,e,r,i,s,o,c){return O(e).pipe(ee(a=>this.processSegmentAgainstRoute(a._injector??n,e,a,r,i,s,o,c).pipe(me(u=>{if(u instanceof ot)return p(null);throw u}))),te(a=>!!a),me(a=>{if(ls(a))return Ua(r,i,s)?p(new ar):Se(r);throw a}))}processSegmentAgainstRoute(n,e,r,i,s,o,c,a){return B(r)!==o&&(o===g||!en(i,s,r))?Se(i):r.redirectTo===void 0?this.matchSegmentAgainstRoute(n,i,r,s,o,a):this.allowRedirects&&c?this.expandSegmentAgainstRouteUsingRedirect(n,i,e,r,s,o,a):Se(i)}expandSegmentAgainstRouteUsingRedirect(n,e,r,i,s,o,c){let{matched:a,parameters:u,consumedSegments:l,positionalParamSegments:h,remainingSegments:y}=ds(e,i,s);if(!a)return Se(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>ka&&(this.allowRedirects=!1));let T=new Ce(s,u,Object.freeze(f({},this.urlTree.queryParams)),this.urlTree.fragment,Fi(i),B(i),i.component??i._loadedComponent??null,i,$i(i)),M=Xt(T,c,this.paramsInheritanceStrategy);T.params=Object.freeze(M.params),T.data=Object.freeze(M.data);let w=this.applyRedirects.applyRedirectCommands(l,i.redirectTo,h,T,n);return this.applyRedirects.lineralizeSegments(i,w).pipe(U(v=>this.processSegment(n,r,e,v.concat(y),o,!1,c)))}matchSegmentAgainstRoute(n,e,r,i,s,o){let c=Aa(e,r,i,n,this.urlSerializer);return r.path==="**"&&(e.children={}),c.pipe(L(a=>a.matched?(n=r._injector??n,this.getChildConfig(n,r,i).pipe(L(({routes:u})=>{let l=r._loadedInjector??n,{parameters:h,consumedSegments:y,remainingSegments:T}=a,M=new Ce(y,h,Object.freeze(f({},this.urlTree.queryParams)),this.urlTree.fragment,Fi(r),B(r),r.component??r._loadedComponent??null,r,$i(r)),w=Xt(M,o,this.paramsInheritanceStrategy);M.params=Object.freeze(w.params),M.data=Object.freeze(w.data);let{segmentGroup:v,slicedSegments:N}=_i(e,y,T,u);if(N.length===0&&v.hasChildren())return this.processChildren(l,u,v,M).pipe(S(I=>new k(M,I)));if(u.length===0&&N.length===0)return p(new k(M,[]));let K=B(r)===s;return this.processSegment(l,u,v,N,K?g:s,!0,M).pipe(S(I=>new k(M,I instanceof k?[I]:[])))}))):Se(e)))}getChildConfig(n,e,r){return e.children?p({routes:e.children,injector:n}):e.loadChildren?e._loadedRoutes!==void 0?p({routes:e._loadedRoutes,injector:e._loadedInjector}):Ca(n,e,r,this.urlSerializer).pipe(U(i=>i?this.configLoader.loadChildren(n,e).pipe(D(s=>{e._loadedRoutes=s.routes,e._loadedInjector=s.injector})):Ma(e))):p({routes:[],injector:n})}};function ja(t){t.sort((n,e)=>n.value.outlet===g?-1:e.value.outlet===g?1:n.value.outlet.localeCompare(e.value.outlet))}function _a(t){let n=t.value.routeConfig;return n&&n.path===""}function fs(t){let n=[],e=new Set;for(let r of t){if(!_a(r)){n.push(r);continue}let i=n.find(s=>r.value.routeConfig===s.value.routeConfig);i!==void 0?(i.children.push(...r.children),e.add(i)):n.push(r)}for(let r of e){let i=fs(r.children);n.push(new k(r.value,i))}return n.filter(r=>!e.has(r))}function Fi(t){return t.data||{}}function $i(t){return t.resolve||{}}function Fa(t,n,e,r,i,s){return U(o=>La(t,n,e,r,o.extractedUrl,i,s).pipe(S(({state:c,tree:a})=>P(f({},o),{targetSnapshot:c,urlAfterRedirects:a}))))}function $a(t,n){return U(e=>{let{targetSnapshot:r,guards:{canActivateChecks:i}}=e;if(!i.length)return p(e);let s=new Set(i.map(a=>a.route)),o=new Set;for(let a of s)if(!o.has(a))for(let u of ps(a))o.add(u);let c=0;return O(o).pipe(ee(a=>s.has(a)?za(a,r,t,n):(a.data=Xt(a,a.parent,t).resolve,p(void 0))),D(()=>c++),cn(1),U(a=>c===o.size?p(e):Q))})}function ps(t){let n=t.children.map(e=>ps(e)).flat();return[t,...n]}function za(t,n,e,r){let i=t.routeConfig,s=t._resolve;return i?.title!==void 0&&!os(i)&&(s[ut]=i.title),Ba(s,t,n,r).pipe(S(o=>(t._resolvedData=o,t.data=Xt(t,t.parent,e).resolve,null)))}function Ba(t,n,e,r){let i=Fn(t);if(i.length===0)return p({});let s={};return O(i).pipe(U(o=>Va(t[o],n,e,r).pipe(te(),D(c=>{if(c instanceof st)throw Zt(new Me,c);s[o]=c}))),cn(1),Tr(s),me(o=>ls(o)?Q:Ue(o)))}function Va(t,n,e,r){let i=ht(n)??r,s=Pe(t,i),o=s.resolve?s.resolve(n,e):F(i,()=>s(n,e));return ae(o)}function jn(t){return L(n=>{let e=t(n);return e?O(e).pipe(S(()=>n)):p(n)})}var gs=(()=>{class t{buildTitle(e){let r,i=e.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(s=>s.outlet===g);return r}getResolvedTitleForRoute(e){return e.data[ut]}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=R({token:t,factory:()=>d(qa),providedIn:"root"})}}return t})(),qa=(()=>{class t extends gs{constructor(e){super(),this.title=e}updateTitle(e){let r=this.buildTitle(e);r!==void 0&&this.title.setTitle(r)}static{this.\u0275fac=function(r){return new(r||t)(m(Ni))}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),pt=new C("",{providedIn:"root",factory:()=>({})}),Ga=(()=>{class t{static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275cmp=Dr({type:t,selectors:[["ng-component"]],standalone:!0,features:[ei],decls:1,vars:0,template:function(r,i){r&1&&Jr(0,"router-outlet")},dependencies:[Qo],encapsulation:2})}}return t})();function hr(t){let n=t.children&&t.children.map(hr),e=n?P(f({},t),{children:n}):f({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==g&&(e.component=Ga),e}var ct=new C(""),dr=(()=>{class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=d(Ct)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return p(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let r=ae(e.loadComponent()).pipe(S(ms),D(s=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=s}),ue(()=>{this.componentLoaders.delete(e)})),i=new sn(r,()=>new Y).pipe(rn());return this.componentLoaders.set(e,i),i}loadChildren(e,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return p({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let s=Wa(r,this.compiler,e,this.onLoadEndListener).pipe(ue(()=>{this.childrenLoaders.delete(r)})),o=new sn(s,()=>new Y).pipe(rn());return this.childrenLoaders.set(r,o),o}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Wa(t,n,e,r){return ae(t.loadChildren()).pipe(S(ms),U(i=>i instanceof Wr||Array.isArray(i)?p(i):O(n.compileModuleAsync(i))),S(i=>{r&&r(t);let s,o,c=!1;return Array.isArray(i)?(o=i,c=!0):(s=i.create(e).injector,o=s.get(ct,[],{optional:!0,self:!0}).flat()),{routes:o.map(hr),injector:s}}))}function Ha(t){return t&&typeof t=="object"&&"default"in t}function ms(t){return Ha(t)?t.default:t}var fr=(()=>{class t{static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=R({token:t,factory:()=>d(Xa),providedIn:"root"})}}return t})(),Xa=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,r){return e}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),vs=new C(""),ys=new C("");function Ja(t,n,e){let r=t.get(ys),i=t.get(x);return t.get(q).runOutsideAngular(()=>{if(!i.startViewTransition||r.skipNextTransition)return r.skipNextTransition=!1,new Promise(u=>setTimeout(u));let s,o=new Promise(u=>{s=u}),c=i.startViewTransition(()=>(s(),Za(t))),{onViewTransitionCreated:a}=r;return a&&F(t,()=>a({transition:c,from:n,to:e})),o})}function Za(t){return new Promise(n=>{Hr({read:()=>setTimeout(n)},{injector:t})})}var Ka=new C(""),pr=(()=>{class t{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new Y,this.transitionAbortSubject=new Y,this.configLoader=d(dr),this.environmentInjector=d(le),this.urlSerializer=d(lt),this.rootContexts=d(dt),this.location=d(ze),this.inputBindingEnabled=d(Qt,{optional:!0})!==null,this.titleStrategy=d(gs),this.options=d(pt,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=d(fr),this.createViewTransition=d(vs,{optional:!0}),this.navigationErrorHandler=d(Ka,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>p(void 0),this.rootComponentType=null;let e=i=>this.events.next(new Hn(i)),r=i=>this.events.next(new Xn(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=e}complete(){this.transitions?.complete()}handleNavigationRequest(e){let r=++this.navigationId;this.transitions?.next(P(f(f({},this.transitions.value),e),{id:r}))}setupNavigations(e,r,i){return this.transitions=new _({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:Qe,restoredState:null,currentSnapshot:i.snapshot,targetSnapshot:null,currentRouterState:i,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(H(s=>s.id!==0),S(s=>P(f({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),L(s=>{let o=!1,c=!1;return p(s).pipe(L(a=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",j.SupersededByNewNavigation),Q;this.currentTransition=s,this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,targetBrowserUrl:typeof a.extras.browserUrl=="string"?this.urlSerializer.parse(a.extras.browserUrl):a.extras.browserUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?P(f({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let u=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),l=a.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!u&&l!=="reload"){let h="";return this.events.next(new se(a.id,this.urlSerializer.serialize(a.rawUrl),h,Vt.IgnoredSameUrlNavigation)),a.resolve(!1),Q}if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return p(a).pipe(L(h=>{let y=this.transitions?.getValue();return this.events.next(new Ae(h.id,this.urlSerializer.serialize(h.extractedUrl),h.source,h.restoredState)),y!==this.transitions?.getValue()?Q:Promise.resolve(h)}),Fa(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),D(h=>{s.targetSnapshot=h.targetSnapshot,s.urlAfterRedirects=h.urlAfterRedirects,this.currentNavigation=P(f({},this.currentNavigation),{finalUrl:h.urlAfterRedirects});let y=new qt(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(h.urlAfterRedirects),h.targetSnapshot);this.events.next(y)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:h,extractedUrl:y,source:T,restoredState:M,extras:w}=a,v=new Ae(h,this.urlSerializer.serialize(y),T,M);this.events.next(v);let N=is(this.rootComponentType).snapshot;return this.currentTransition=s=P(f({},a),{targetSnapshot:N,urlAfterRedirects:y,extras:P(f({},w),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=y,p(s)}else{let h="";return this.events.next(new se(a.id,this.urlSerializer.serialize(a.extractedUrl),h,Vt.IgnoredByUrlHandlingStrategy)),a.resolve(!1),Q}}),D(a=>{let u=new Vn(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(u)}),S(a=>(this.currentTransition=s=P(f({},a),{guards:sa(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),s)),ma(this.environmentInjector,a=>this.events.next(a)),D(a=>{if(s.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!="boolean")throw Zt(this.urlSerializer,a.guardsResult);let u=new qn(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.events.next(u)}),H(a=>a.guardsResult?!0:(this.cancelNavigationTransition(a,"",j.GuardRejected),!1)),jn(a=>{if(a.guards.canActivateChecks.length)return p(a).pipe(D(u=>{let l=new Gn(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}),L(u=>{let l=!1;return p(u).pipe($a(this.paramsInheritanceStrategy,this.environmentInjector),D({next:()=>l=!0,complete:()=>{l||this.cancelNavigationTransition(u,"",j.NoDataFromResolver)}}))}),D(u=>{let l=new Wn(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}))}),jn(a=>{let u=l=>{let h=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&h.push(this.configLoader.loadComponent(l.routeConfig).pipe(D(y=>{l.component=y}),S(()=>{})));for(let y of l.children)h.push(...u(y));return h};return mt(u(a.targetSnapshot.root)).pipe(an(null),ve(1))}),jn(()=>this.afterPreactivation()),L(()=>{let{currentSnapshot:a,targetSnapshot:u}=s,l=this.createViewTransition?.(this.environmentInjector,a.root,u.root);return l?O(l).pipe(S(()=>s)):p(s)}),S(a=>{let u=ea(e.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return this.currentTransition=s=P(f({},a),{targetRouterState:u}),this.currentNavigation.targetRouterState=u,s}),D(()=>{this.events.next(new rt)}),ia(this.rootContexts,e.routeReuseStrategy,a=>this.events.next(a),this.inputBindingEnabled),ve(1),D({next:a=>{o=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new V(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0)},complete:()=>{o=!0}}),Ir(this.transitionAbortSubject.pipe(D(a=>{throw a}))),ue(()=>{!o&&!c&&this.cancelNavigationTransition(s,"",j.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),me(a=>{if(c=!0,us(a))this.events.next(new J(s.id,this.urlSerializer.serialize(s.extractedUrl),a.message,a.cancellationCode)),ra(a)?this.events.next(new De(a.url,a.navigationBehaviorOptions)):s.resolve(!1);else{let u=new nt(s.id,this.urlSerializer.serialize(s.extractedUrl),a,s.targetSnapshot??void 0);try{let l=F(this.environmentInjector,()=>this.navigationErrorHandler?.(u));if(l instanceof st){let{message:h,cancellationCode:y}=Zt(this.urlSerializer,l);this.events.next(new J(s.id,this.urlSerializer.serialize(s.extractedUrl),h,y)),this.events.next(new De(l.redirectTo,l.navigationBehaviorOptions))}else{this.events.next(u);let h=e.errorHandler(a);s.resolve(!!h)}}catch(l){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(l)}}return Q}))}))}cancelNavigationTransition(e,r,i){let s=new J(e.id,this.urlSerializer.serialize(e.extractedUrl),r,i);this.events.next(s),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return e.toString()!==r?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Ya(t){return t!==Qe}var Qa=(()=>{class t{static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=R({token:t,factory:()=>d(ec),providedIn:"root"})}}return t})(),ur=class{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}},ec=(()=>{class t extends ur{static{this.\u0275fac=(()=>{let e;return function(i){return(e||(e=hn(t)))(i||t)}})()}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),ws=(()=>{class t{static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=R({token:t,factory:()=>d(tc),providedIn:"root"})}}return t})(),tc=(()=>{class t extends ws{constructor(){super(...arguments),this.location=d(ze),this.urlSerializer=d(lt),this.options=d(pt,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=d(fr),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Z,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=is(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(r=>{r.type==="popstate"&&e(r.url,r.state)})}handleRouterEvent(e,r){if(e instanceof Ae)this.stateMemento=this.createStateMemento();else if(e instanceof se)this.rawUrlTree=r.initialUrl;else if(e instanceof qt){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let i=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(r.targetBrowserUrl??i,r)}}else e instanceof rt?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(r.targetBrowserUrl??this.rawUrlTree,r)):e instanceof J&&(e.code===j.GuardRejected||e.code===j.NoDataFromResolver)?this.restoreHistory(r):e instanceof nt?this.restoreHistory(r,!0):e instanceof V&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,r){let i=e instanceof Z?this.urlSerializer.serialize(e):e;if(this.location.isCurrentPathEqualTo(i)||r.extras.replaceUrl){let s=this.browserPageId,o=f(f({},r.extras.state),this.generateNgRouterState(r.id,s));this.location.replaceState(i,"",o)}else{let s=f(f({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(i,"",s)}}restoreHistory(e,r=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,s=this.currentPageId-i;s!==0?this.location.historyGo(s):this.currentUrlTree===e.finalUrl&&s===0&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,r){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:r}:{navigationId:e}}static{this.\u0275fac=(()=>{let e;return function(i){return(e||(e=hn(t)))(i||t)}})()}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Ke=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(Ke||{});function Rs(t,n){t.events.pipe(H(e=>e instanceof V||e instanceof J||e instanceof nt||e instanceof se),S(e=>e instanceof V||e instanceof se?Ke.COMPLETE:(e instanceof J?e.code===j.Redirect||e.code===j.SupersededByNewNavigation:!1)?Ke.REDIRECTING:Ke.FAILED),H(e=>e!==Ke.REDIRECTING),ve(1)).subscribe(()=>{n()})}function nc(t){throw t}var rc={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ic={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},W=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=d(St),this.stateManager=d(ws),this.options=d(pt,{optional:!0})||{},this.pendingTasks=d(_e),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=d(pr),this.urlSerializer=d(lt),this.location=d(ze),this.urlHandlingStrategy=d(fr),this._events=new Y,this.errorHandler=this.options.errorHandler||nc,this.navigated=!1,this.routeReuseStrategy=d(Qa),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=d(ct,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!d(Qt,{optional:!0}),this.eventsSubscription=new vr,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(i!==null&&s!==null){if(this.stateManager.handleRouterEvent(r,s),r instanceof J&&r.code!==j.Redirect&&r.code!==j.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof V)this.navigated=!0;else if(r instanceof De){let o=r.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),a=f({browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Ya(i.source)},o);this.scheduleNavigation(c,Qe,null,a,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}oc(r)&&this._events.next(r)}catch(i){this.navigationTransitions.transitionAbortSubject.next(i)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Qe,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",r)},0)})}navigateToSyncWithBrowser(e,r,i){let s={replaceUrl:!0},o=i?.navigationId?i:null;if(i){let a=f({},i);delete a.navigationId,delete a.\u0275routerPageId,Object.keys(a).length!==0&&(s.state=a)}let c=this.parseUrl(e);this.scheduleNavigation(c,r,o,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(hr),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,r={}){let{relativeTo:i,queryParams:s,fragment:o,queryParamsHandling:c,preserveFragment:a}=r,u=a?this.currentUrlTree.fragment:o,l=null;switch(c??this.options.defaultQueryParamsHandling){case"merge":l=f(f({},this.currentUrlTree.queryParams),s);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=s||null}l!==null&&(l=this.removeEmptyProps(l));let h;try{let y=i?i.snapshot:this.routerState.snapshot.root;h=es(y)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),h=this.currentUrlTree.root}return ts(h,e,l,u??null)}navigateByUrl(e,r={skipLocationChange:!1}){let i=ge(e)?e:this.parseUrl(e),s=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(s,Qe,null,r)}navigate(e,r={skipLocationChange:!1}){return sc(e),this.navigateByUrl(this.createUrlTree(e,r),r)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,r){let i;if(r===!0?i=f({},rc):r===!1?i=f({},ic):i=r,ge(e))return xi(this.currentUrlTree,e,i);let s=this.parseUrl(e);return xi(this.currentUrlTree,s,i)}removeEmptyProps(e){return Object.entries(e).reduce((r,[i,s])=>(s!=null&&(r[i]=s),r),{})}scheduleNavigation(e,r,i,s,o){if(this.disposed)return Promise.resolve(!1);let c,a,u;o?(c=o.resolve,a=o.reject,u=o.promise):u=new Promise((h,y)=>{c=h,a=y});let l=this.pendingTasks.add();return Rs(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(l))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:s,resolve:c,reject:a,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(h=>Promise.reject(h))}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function sc(t){for(let n=0;n{class t{constructor(e,r,i,s,o,c){this.router=e,this.route=r,this.tabIndexAttribute=i,this.renderer=s,this.el=o,this.locationStrategy=c,this.href=null,this.onChanges=new Y,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1,this.routerLinkInput=null;let a=o.nativeElement.tagName?.toLowerCase();this.isAnchorElement=a==="a"||a==="area",this.isAnchorElement?this.subscription=e.events.subscribe(u=>{u instanceof V&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(ge(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,r,i,s,o){let c=this.urlTree;if(c===null||this.isAnchorElement&&(e!==0||r||i||s||o||typeof this.target=="string"&&this.target!="_self"))return!0;let a={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(c,a),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.href=e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e)):null;let r=this.href===null?null:zr(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}applyAttributeValue(e,r){let i=this.renderer,s=this.el.nativeElement;r!==null?i.setAttribute(s,e,r):i.removeAttribute(s,e)}get urlTree(){return this.routerLinkInput===null?null:ge(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static{this.\u0275fac=function(r){return new(r||t)(z(W),z(oe),Pr("tabindex"),z(vn),z(pn),z($e))}}static{this.\u0275dir=wt({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(r,i){r&1&&Zr("click",function(o){return i.onClick(o.button,o.ctrlKey,o.shiftKey,o.altKey,o.metaKey)}),r&2&&Xr("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",It],skipLocationChange:[2,"skipLocationChange","skipLocationChange",It],replaceUrl:[2,"replaceUrl","replaceUrl",It],routerLink:"routerLink"},standalone:!0,features:[Gr,Rt]})}}return t})(),Iu=(()=>{class t{get isActive(){return this._isActive}constructor(e,r,i,s,o){this.router=e,this.element=r,this.renderer=i,this.cdr=s,this.link=o,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new ye,this.routerEventsSubscription=e.events.subscribe(c=>{c instanceof V&&this.update()})}ngAfterContentInit(){p(this.links.changes,p(null)).pipe(Le()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=O(e).pipe(Le()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(e){let r=Array.isArray(e)?e:e.split(" ");this.classes=r.filter(i=>!!i)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(r=>{e?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),e&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e))})}isLinkActive(e){let r=ac(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return i=>{let s=i.urlTree;return s?e.isActive(s,r):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static{this.\u0275fac=function(r){return new(r||t)(z(W),z(pn),z(vn),z(Et),z(zi,8))}}static{this.\u0275dir=wt({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(r,i,s){if(r&1&&Kr(s,zi,5),r&2){let o;Yr(o=Qr())&&(i.links=o)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Rt]})}}return t})();function ac(t){return!!t.paths}var Yt=class{};var cc=(()=>{class t{constructor(e,r,i,s,o){this.router=e,this.injector=i,this.preloadingStrategy=s,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe(H(e=>e instanceof V),ee(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,r){let i=[];for(let s of r){s.providers&&!s._injector&&(s._injector=yn(s.providers,e,`Route: ${s.path}`));let o=s._injector??e,c=s._loadedInjector??o;(s.loadChildren&&!s._loadedRoutes&&s.canLoad===void 0||s.loadComponent&&!s._loadedComponent)&&i.push(this.preloadConfig(o,s)),(s.children||s._loadedRoutes)&&i.push(this.processRoutes(c,s.children??s._loadedRoutes))}return O(i).pipe(Le())}preloadConfig(e,r){return this.preloadingStrategy.preload(r,()=>{let i;r.loadChildren&&r.canLoad===void 0?i=this.loader.loadChildren(e,r):i=p(null);let s=i.pipe(U(o=>o===null?p(void 0):(r._loadedRoutes=o.routes,r._loadedInjector=o.injector,this.processRoutes(o.injector??e,o.routes))));if(r.loadComponent&&!r._loadedComponent){let o=this.loader.loadComponent(r);return O([s,o]).pipe(Le())}else return s})}static{this.\u0275fac=function(r){return new(r||t)(m(W),m(Ct),m(le),m(Yt),m(dr))}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Ss=new C(""),uc=(()=>{class t{constructor(e,r,i,s,o={}){this.urlSerializer=e,this.transitions=r,this.viewportScroller=i,this.zone=s,this.options=o,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},o.scrollPositionRestoration||="disabled",o.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Ae?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof V?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof se&&e.code===Vt.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Gt&&(e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Gt(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static{this.\u0275fac=function(r){Br()}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac})}}return t})();function Mu(t,...n){return je([{provide:ct,multi:!0,useValue:t},[],{provide:oe,useFactory:Ts,deps:[W]},{provide:Tt,multi:!0,useFactory:bs},n.map(e=>e.\u0275providers)])}function Ts(t){return t.routerState.root}function gt(t,n){return{\u0275kind:t,\u0275providers:n}}function bs(){let t=d(dn);return n=>{let e=t.get(bt);if(n!==e.components[0])return;let r=t.get(W),i=t.get(Cs);t.get(gr)===1&&r.initialNavigation(),t.get(Es,null,un.Optional)?.setUpPreloading(),t.get(Ss,null,un.Optional)?.init(),r.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var Cs=new C("",{factory:()=>new Y}),gr=new C("",{providedIn:"root",factory:()=>1});function lc(){return gt(2,[{provide:gr,useValue:0},{provide:wn,multi:!0,deps:[dn],useFactory:n=>{let e=n.get(oi,Promise.resolve());return()=>e.then(()=>new Promise(r=>{let i=n.get(W),s=n.get(Cs);Rs(i,()=>{r(!0)}),n.get(pr).afterPreactivation=()=>(r(!0),s.closed?p(void 0):s),i.initialNavigation()}))}}])}function hc(){return gt(3,[{provide:wn,multi:!0,useFactory:()=>{let n=d(W);return()=>{n.setUpLocationChangeListener()}}},{provide:gr,useValue:2}])}var Es=new C("");function dc(t){return gt(0,[{provide:Es,useExisting:cc},{provide:Yt,useExisting:t}])}function fc(){return gt(8,[ji,{provide:Qt,useExisting:ji}])}function pc(t){let n=[{provide:vs,useValue:Ja},{provide:ys,useValue:f({skipNextTransition:!!t?.skipInitialTransition},t)}];return gt(9,n)}var Bi=new C("ROUTER_FORROOT_GUARD"),gc=[ze,{provide:lt,useClass:Me},W,dt,{provide:oe,useFactory:Ts,deps:[W]},dr,[]],Au=(()=>{class t{constructor(e){}static forRoot(e,r){return{ngModule:t,providers:[gc,[],{provide:ct,multi:!0,useValue:e},{provide:Bi,useFactory:wc,deps:[[W,new ln,new Ar]]},{provide:pt,useValue:r||{}},r?.useHash?vc():yc(),mc(),r?.preloadingStrategy?dc(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?Rc(r):[],r?.bindToComponentInputs?fc().\u0275providers:[],r?.enableViewTransitions?pc().\u0275providers:[],Sc()]}}static forChild(e){return{ngModule:t,providers:[{provide:ct,multi:!0,useValue:e}]}}static{this.\u0275fac=function(r){return new(r||t)(m(Bi,8))}}static{this.\u0275mod=yt({type:t})}static{this.\u0275inj=vt({})}}return t})();function mc(){return{provide:Ss,useFactory:()=>{let t=d(li),n=d(q),e=d(pt),r=d(pr),i=d(lt);return e.scrollOffset&&t.setOffset(e.scrollOffset),new uc(i,r,t,n,e)}}}function vc(){return{provide:$e,useClass:ci}}function yc(){return{provide:$e,useClass:ai}}function wc(t){return"guarded"}function Rc(t){return[t.initialNavigation==="disabled"?hc().\u0275providers:[],t.initialNavigation==="enabledBlocking"?lc().\u0275providers:[]]}var Vi=new C("");function Sc(){return[{provide:Vi,useFactory:bs},{provide:Tt,multi:!0,useExisting:Vi}]}export{X as a,Us as b,kc as c,jc as d,Ei as e,au as f,Ni as g,So as h,A as i,oe as j,Qo as k,W as l,zi as m,Iu as n,Mu as o,fc as p,Au as q}; diff --git a/webui/dist/bitmagnet/browser/chunk-ZVYX4MB3.js b/webui/dist/bitmagnet/browser/chunk-ZVYX4MB3.js deleted file mode 100644 index d0edc68d..00000000 --- a/webui/dist/bitmagnet/browser/chunk-ZVYX4MB3.js +++ /dev/null @@ -1 +0,0 @@ -import{a as ge,b as he}from"./chunk-DKVITRV6.js";import{a as Q}from"./chunk-3PIWRAOL.js";import{a as fe}from"./chunk-M3BEO55A.js";import{$ as Qt,Da as ie,Ea as oe,F as Nt,Fa as re,Ga as ae,Ha as le,I as Rt,Ia as se,Ja as ce,K as jt,Ka as pe,La as me,M as Lt,Ma as _e,N as Vt,Na as de,O as Ht,Oa as ue,P as Gt,Pa as Ce,Qa as xe,R as Yt,T as Kt,Ua as L,W as qt,X as Ut,Y as Xt,Z as Jt,_ as Zt,a as R,aa as Wt,b as j,d as Pt,e as At,f as Ft,g as Bt,i as Dt,ja as te,n as Ot,o as zt,qa as W,va as ee,ya as ne}from"./chunk-4NEHCUZ2.js";import{m as kt}from"./chunk-FKMTSCBK.js";import{$b as c,$c as Z,B as at,Cb as C,Ea as M,Fa as $,Hb as f,Mb as d,N as Y,Na as St,Nb as K,Ob as k,Pb as P,Q as bt,Qb as s,Rb as r,Sb as h,Tb as T,Ub as b,Wb as B,Zb as A,_c as Mt,a as X,b as Tt,ha as J,hb as Et,hd as $t,jc as st,kb as o,kc as l,l as S,lb as lt,lc as g,mc as m,nc as wt,o as G,pc as N,qa as y,rc as It,sc as yt,ua as z,uc as E,vc as w,xa as vt}from"./chunk-3DR3CJRN.js";var Te={movie:{singular:"Movie",plural:"Movies",icon:"movie"},tv_show:{singular:"TV Show",plural:"TV Shows",icon:"live_tv"},music:{singular:"Music",plural:"Music",icon:"music_note"},ebook:{singular:"E-Book",plural:"E-Books",icon:"auto_stories"},comic:{singular:"Comic",plural:"Comics",icon:"comic_bubble"},audiobook:{singular:"Audiobook",plural:"Audiobooks",icon:"mic"},software:{singular:"Software",plural:"Software",icon:"desktop_windows"},game:{singular:"Game",plural:"Games",icon:"sports_esports"},xxx:{singular:"XXX",plural:"XXX",icon:"18_up_rating"},null:{singular:"Unknown",plural:"Unknown",icon:"question_mark"}},pi=Object.entries(Te).map(([t,n])=>X({key:t},n)),mi=t=>t?Te[t]:void 0;var ze=(t,n)=>n.id;function Ne(t,n){if(t&1&&(s(0,"mat-chip",1)(1,"mat-icon",2),l(2,"sell"),r(),l(3),r()),t&2){let e=n.$implicit;o(3),m(" ",e," ")}}function Re(t,n){if(t&1&&l(0),t&2){let e=n.$implicit,i=n.$index,a=c(),p=c().$implicit;m(" ",p("languages."+e.id)+(i{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=z({type:t,selectors:[["app-torrent-chips"]],inputs:{torrentContent:"torrentContent"},standalone:!0,features:[N],decls:1,vars:0,consts:[[4,"transloco"],[1,"chip-primary"],["matChipAvatar",""],["matChipAvatar","","svgIcon","binary"]],template:function(i,a){i&1&&C(0,Ke,10,6,"ng-container",0)},dependencies:[L,Xt,qt,Zt,W,j],styles:["mat-chip-set[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{position:relative;left:4px}"]})}}return t})();var qe="array",Ue="bit",ve="bits",Xe="byte",Se="bytes",V="",Je="exponent",Ze="function",Ee="iec",Qe="Invalid number",We="Invalid rounding method",pt="jedec",tn="object",we=".",en="round",nn="s",on="si",rn="kbit",an="kB",ln=" ",sn="string",cn="0",mt={symbol:{iec:{bits:["bit","Kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["bit","Kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},fullform:{iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]}};function Ie(t,{bits:n=!1,pad:e=!1,base:i=-1,round:a=2,locale:p=V,localeOptions:_={},separator:D=V,spacer:v=ln,symbols:ke={},standard:I=V,output:ot=sn,fullform:Pe=!1,fullforms:_t=[],exponent:dt=-1,roundingMethod:Ae=en,precision:q=0}={}){let x=dt,O=Number(t),u=[],F=0,rt=V;I===on?(i=10,I=pt):I===Ee||I===pt?i=2:i===2?I=Ee:(i=10,I=pt);let U=i===10?1e3:1024,Fe=Pe===!0,ut=O<0,Ct=Math[Ae];if(typeof t!="bigint"&&isNaN(t))throw new TypeError(Qe);if(typeof Ct!==Ze)throw new TypeError(We);if(ut&&(O=-O),(x===-1||isNaN(x))&&(x=Math.floor(Math.log(O)/Math.log(U)),x<0&&(x=0)),x>8&&(q>0&&(q+=8-x),x=8),ot===Je)return x;if(O===0)u[0]=0,rt=u[1]=mt.symbol[I][n?ve:Se][x];else{F=O/(i===2?Math.pow(2,x*10):Math.pow(1e3,x)),n&&(F=F*8,F>=U&&x<8&&(F=F/U,x++));let H=Math.pow(10,x>0?a:0);u[0]=Ct(F*H)/H,u[0]===U&&x<8&&dt===-1&&(u[0]=1,x++),rt=u[1]=i===10&&x===1?n?rn:an:mt.symbol[I][n?ve:Se][x]}if(ut&&(u[0]=-u[0]),q>0&&(u[0]=u[0].toPrecision(q)),u[1]=ke[u[1]]||u[1],p===!0?u[0]=u[0].toLocaleString():p.length>0?u[0]=u[0].toLocaleString(p,_):D.length>0&&(u[0]=u[0].toString().replace(we,D)),e&&a>0){let H=u[0].toString(),xt=D||(H.match(/(\D)/g)||[]).pop()||we,gt=H.toString().split(xt),ft=gt[1]||V,ht=ft.length,Be=a-ht;u[0]=`${gt[0]}${xt}${ft.padEnd(ht+Be,cn)}`}return Fe&&(u[1]=_t[x]?_t[x]:mt.fullform[I][x]+(n?Ue:Xe)+(u[0]===1?V:nn)),ot===qe?u:ot===tn?{value:u[0],symbol:u[1],exponent:x,unit:rt}:u.join(v)}var tt=(()=>{class t{constructor(){this.transloco=y(R)}transform(e){return Ie(e,{locale:this.transloco.getActiveLang(),base:2})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=vt({name:"filesize",type:t,pure:!1,standalone:!0})}}return t})();var pn=t=>t.toLowerCase().replaceAll(/[^a-z0-9\-]/g,"-").replace(/^-+/,"").replaceAll(/-+/g,"-"),ye=pn;var mn={items:[],hasNextPage:!1,totalCount:0,aggregations:{queue:[],status:[]}},et=class{constructor(n,e,i){this.apollo=n,this.errorsService=e,this.currentRequest=new S(0),this.loadingSubject=new S(!1),this.loading$=this.loadingSubject.asObservable(),this.result=mn,this.resultSubject=new S(this.result),this.result$=this.resultSubject.asObservable(),this.items$=this.resultSubject.pipe(at(a=>a.items)),i.subscribe(a=>{this.loadResult(a)}),this.resultSubject.subscribe(a=>{this.result=a})}connect({}){return this.items$}disconnect(){this.resultSubject.complete()}loadResult(n){this.currentSubscription&&(this.currentSubscription.unsubscribe(),this.currentSubscription=void 0),this.loadingSubject.next(!0);let e=this.currentRequest.getValue()+1;this.currentRequest.next(e);let i=this.apollo.query({query:Nt,variables:n,fetchPolicy:"no-cache"}).pipe(at(a=>a.data.torrent.files)).pipe(Y(a=>(this.errorsService.addError(`Error loading item results: ${a.message}`),G)));this.currentSubscription=i.subscribe(a=>{e===this.currentRequest.getValue()&&(this.loadingSubject.next(!1),this.resultSubject.next(a))})}},nt=class{constructor(n){this.torrent=n,this.loading$=new S(!1).asObservable(),this.file={infoHash:n.infoHash,index:0,path:n.name,size:n.size,fileType:n.fileType,extension:n.extension,createdAt:n.createdAt,updatedAt:n.updatedAt},this.result={hasNextPage:!1,items:[this.file],totalCount:1},this.result$=new S(this.result).asObservable(),this.items$=new S([this.file]).asObservable()}connect({}){return this.items$}disconnect(){}};var it=class{constructor(n){let e={infoHash:n,limit:10,page:1};this.controlsSubject=new S(e),this.controls$=this.controlsSubject.asObservable(),this.controls$.pipe(bt(100)).subscribe(i=>{let a=this.variablesSubject.getValue(),p=Me(i);JSON.stringify(a)!==JSON.stringify(p)&&this.variablesSubject.next(p)}),this.variablesSubject=new S(Me(e)),this.variables$=this.variablesSubject.asObservable()}update(n){let e=this.controlsSubject.getValue(),i=n(e);JSON.stringify(e)!==JSON.stringify(i)&&this.controlsSubject.next(i)}handlePageEvent(n){this.update(e=>Tt(X({},e),{limit:n.pageSize,page:n.page}))}},Me=t=>({input:{infoHashes:[t.infoHash],limit:t.limit,page:t.page,totalCount:!0,hasNextPage:!1}});var dn=(t,n)=>({x:t,y:n});function un(t,n){if(t&1&&(s(0,"p"),l(1),E(2,"number"),E(3,"number"),r()),t&2){let e=c().$implicit,i=c();o(),m(" ",e("torrents.showing_x_of_y_files",yt(5,dn,w(2,1,i.dataSource.result.totalCount),i.torrent.filesCount==null?"?":w(3,3,i.torrent.filesCount)))," ")}}function Cn(t,n){if(t&1&&(s(0,"th",13),l(1),r()),t&2){let e=c().$implicit;o(),g(e("torrents.file_index"))}}function xn(t,n){if(t&1&&(s(0,"td",14),l(1),r()),t&2){let e=n.$implicit,i=c(2);o(),m(" ",i.item(e).index," ")}}function gn(t,n){if(t&1&&(s(0,"th",13),l(1),r()),t&2){let e=c().$implicit;o(),g(e("torrents.file_path"))}}function fn(t,n){if(t&1&&(s(0,"td",14),l(1),r()),t&2){let e=n.$implicit,i=c(2);o(),m(" ",i.item(e).path," ")}}function hn(t,n){if(t&1&&(s(0,"th",13),l(1),r()),t&2){let e=c().$implicit;o(),g(e("torrents.file_type"))}}function Tn(t,n){if(t&1&&(s(0,"td",14),l(1),r()),t&2){let e,i=n.$implicit,a=c().$implicit,p=c();o(),m(" ",a("file_types."+((e=p.item(i).fileType)!==null&&e!==void 0?e:"unknown"))," ")}}function bn(t,n){if(t&1&&(s(0,"th",13),l(1),r()),t&2){let e=c().$implicit;o(),g(e("torrents.file_size"))}}function vn(t,n){if(t&1&&(s(0,"td",14),l(1),E(2,"filesize"),r()),t&2){let e=n.$implicit,i=c(2);o(),m(" ",w(2,1,i.item(e).size)," ")}}function Sn(t,n){t&1&&h(0,"tr",15)}function En(t,n){t&1&&h(0,"tr",16)}function wn(t,n){if(t&1){let e=B();s(0,"app-paginator",17),A("paging",function(a){M(e);let p=c(2);return $(p.controller.handlePageEvent(a))}),r()}if(t&2){let e=c(2);f("page",e.controls.page)("pageSize",e.controls.limit)("pageLength",e.dataSource.result.items.length)("totalLength",e.dataSource.result.totalCount)("totalIsEstimate",!1)("showLastPage",!0)}}function In(t,n){if(t&1&&(T(0),s(1,"div",1),h(2,"mat-progress-bar",2),E(3,"async"),r(),C(4,un,4,8,"p"),s(5,"table",3),T(6,4),C(7,Cn,2,1,"th",5)(8,xn,2,1,"td",6),b(),T(9,7),C(10,gn,2,1,"th",5)(11,fn,2,1,"td",6),b(),T(12,8),C(13,hn,2,1,"th",5)(14,Tn,2,1,"td",6),b(),T(15,9),C(16,bn,2,1,"th",5)(17,vn,3,3,"td",6),b(),C(18,Sn,1,0,"tr",10)(19,En,1,0,"tr",11),r(),C(20,wn,1,6,"app-paginator",12),b()),t&2){let e=c();o(2),f("mode",w(3,8,e.dataSource.loading$)?"indeterminate":"determinate")("value",0),o(2),d(e.torrent.filesStatus==="over_threshold"?4:-1),o(),f("dataSource",e.dataSource)("multiTemplateDataRows",!0),o(13),f("matHeaderRowDef",e.displayedColumns),o(),f("matRowDefColumns",e.displayedColumns),o(),d(e.dataSource.result.totalCount>10?20:-1)}}var $e=(()=>{class t{constructor(){this.apollo=y(Dt),this.errorsService=y(Q),this.transloco=y(R),this.displayedColumns=["index","path","type","size"]}ngOnInit(){this.controller=new it(this.torrent.infoHash),this.dataSource=this.torrent.filesStatus==="single"?new nt(this.torrent):new et(this.apollo,this.errorsService,this.controller.variables$),this.controller.controls$.subscribe(e=>{this.controls=e})}item(e){return e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=z({type:t,selectors:[["app-torrent-files-table"]],inputs:{torrent:"torrent"},standalone:!0,features:[N],decls:1,vars:0,consts:[[4,"transloco"],[1,"progress-bar-container"],[3,"mode","value"],["mat-table","",1,"table-results",3,"dataSource","multiTemplateDataRows"],["matColumnDef","index"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","path"],["matColumnDef","type"],["matColumnDef","size"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[3,"page","pageSize","pageLength","totalLength","totalIsEstimate","showLastPage"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""],[3,"paging","page","pageSize","pageLength","totalLength","totalIsEstimate","showLastPage"]],template:function(i,a){i&1&&C(0,In,21,10,"ng-container",0)},dependencies:[L,ee,ie,re,ce,ae,oe,pe,le,se,me,_e,j,Mt,Z,tt,ge]})}}return t})();var yn=(t,n)=>n.key,Mn=(t,n)=>n.id,$n=(t,n)=>n.metadataSource.key,kn=t=>({count:t});function Pn(t,n){if(t&1&&h(0,"img",3),t&2){let e=c().$implicit,i=c();f("ngSrc","https://image.tmdb.org/t/p/w300/"+n)("alt",e("torrents.poster"))("width",i.breakpoints.sizeAtLeast("Medium")?300:150)("height",i.breakpoints.sizeAtLeast("Medium")?450:225)}}function An(t,n){if(t&1&&(s(0,"h2")(1,"a",14),l(2),r()()),t&2){let e=c().$implicit,i=c();o(),f("routerLink","permalink/"+i.torrentContent.infoHash)("matTooltip",e("torrents.permalink")),o(),g(i.torrentContent.torrent.name)}}function Fn(t,n){if(t&1&&(s(0,"p",4)(1,"strong"),l(2),r(),l(3),E(4,"filesize"),r()),t&2){let e=c().$implicit,i=c();o(2),m("",e("torrents.size"),":"),o(),m(" ",w(4,2,i.torrentContent.torrent.size)," ")}}function Bn(t,n){if(t&1&&(s(0,"p",5)(1,"strong"),l(2),r(),l(3),E(4,"timeAgo"),r()),t&2){let e=c().$implicit,i=c();o(2),g(e("torrents.published")),o(),m(" ",w(4,2,i.torrentContent.publishedAt)," ")}}function Dn(t,n){if(t&1&&(s(0,"p",6)(1,"strong"),l(2),r(),l(3),r()),t&2){let e,i=c().$implicit,a=c();o(2),m("",i("torrents.s_l"),":"),o(),wt(" ",(e=a.torrentContent.seeders)!==null&&e!==void 0?e:"?"," / ",(e=a.torrentContent.leechers)!==null&&e!==void 0?e:"?"," ")}}function On(t,n){if(t&1&&(s(0,"span"),l(1),r()),t&2){let e=n.$implicit,i=n.$index;o(),g((i>0?", ":"")+e.name)}}function zn(t,n){if(t&1&&(s(0,"p")(1,"strong"),l(2),r(),l(3),r()),t&2){let e=c().$implicit,i=c();o(2),m("",e("torrents.title"),":"),o(),m(" ",i.torrentContent.content.title," ")}}function Nn(t,n){if(t&1&&l(0),t&2){let e=n.$implicit,i=n.$index,a=c(3);m(" ",(i>0?", ":"")+e.name+(e.id===(a.torrentContent.content==null||a.torrentContent.content.originalLanguage==null?null:a.torrentContent.content.originalLanguage.id)?" (original)":"")," ")}}function Rn(t,n){if(t&1&&(s(0,"p")(1,"strong"),l(2),r(),l(3,"\xA0 "),k(4,Nn,1,1,null,null,Mn),r()),t&2){let e=c().$implicit,i=c();o(2),m("",e("torrents.languages"),":"),o(2),P(i.torrentContent.languages)}}function jn(t,n){if(t&1&&(s(0,"p")(1,"strong"),l(2),r(),l(3),r()),t&2){let e,i=c().$implicit,a=c();o(2),m("",i("torrents.original_release_date"),":"),o(),m(" ",(e=a.torrentContent.content==null?null:a.torrentContent.content.releaseDate)!==null&&e!==void 0?e:a.torrentContent.content==null?null:a.torrentContent.content.releaseYear," ")}}function Ln(t,n){if(t&1&&(s(0,"p")(1,"strong"),l(2),r(),l(3),r()),t&2){let e=c().$implicit,i=c();o(2),m("",e("torrents.episodes"),":"),o(),m(" ",i.torrentContent.episodes.label," ")}}function Vn(t,n){if(t&1&&(s(0,"p"),l(1),r()),t&2){let e=c(2);o(),m(" ",e.torrentContent.content.overview," ")}}function Hn(t,n){if(t&1&&(T(0),s(1,"p")(2,"strong"),l(3),r(),l(4),r(),b()),t&2){let e=c().$implicit;o(3),m("",e("torrents.genres"),":"),o(),m(" ",n.join(", ")," ")}}function Gn(t,n){if(t&1&&(T(0),l(1),E(2,"number"),b()),t&2){let e=c(2).$implicit,i=c();o(),m("(",e("torrents.votes_count_n",It(3,kn,w(2,1,i.torrentContent.content==null?null:i.torrentContent.content.voteCount))),")")}}function Yn(t,n){if(t&1&&(s(0,"p")(1,"strong"),l(2),r(),l(3),C(4,Gn,3,5,"ng-container"),r()),t&2){let e=c().$implicit,i=c();o(2),m("",e("torrents.rating"),":"),o(),m(" ",i.torrentContent.content==null?null:i.torrentContent.content.voteAverage," / 10 "),o(),d((i.torrentContent.content==null?null:i.torrentContent.content.voteCount)!=null?4:-1)}}function Kn(t,n){if(t&1&&(l(0),s(1,"a",15),l(2),r()),t&2){let e=n.$implicit,i=n.$index;m(" ",i>0?", ":"",""),o(),f("href",e.url,Et),o(),g(e.metadataSource.name)}}function qn(t,n){if(t&1&&(s(0,"p")(1,"strong"),l(2),r(),l(3,"\xA0 "),k(4,Kn,3,3,"a",15,$n),r()),t&2){let e=c().$implicit;o(2),m("",e("torrents.external_links"),":"),o(2),P(n)}}function Un(t,n){if(t&1&&(s(0,"span",16),l(1),r()),t&2){let e=c(2).$implicit;o(),g(e("torrents.files"))}}function Xn(t,n){t&1&&(s(0,"span",17),l(1),E(2,"number"),r()),t&2&&(o(),m("(",w(2,1,n),")"))}function Jn(t,n){if(t&1&&(s(0,"mat-icon"),l(1,"file_present"),r(),C(2,Un,2,1,"span",16)(3,Xn,3,3,"span",17)),t&2){let e,i=c(2);o(2),d(i.breakpoints.sizeAtLeast("Medium")?2:-1),o(),d((e=i.filesCount())?3:-1,e)}}function Zn(t,n){if(t&1&&(s(0,"p"),l(1),r()),t&2){let e=c(2).$implicit;o(),g(e("torrents.files_no_info"))}}function Qn(t,n){if(t&1&&(s(0,"mat-card",18),C(1,Zn,2,1,"p"),h(2,"app-torrent-files-table",19),r()),t&2){let e=c(2);o(),d(e.torrentContent.torrent.filesStatus==="no_info"?1:-1),o(),f("torrent",e.torrentContent.torrent)}}function Wn(t,n){if(t&1&&(s(0,"span",16),l(1),r()),t&2){let e=c(2).$implicit;o(),g(e("torrents.edit_tags"))}}function ti(t,n){if(t&1&&(s(0,"mat-icon"),l(1,"sell"),r(),C(2,Wn,2,1,"span",16)),t&2){let e=c(2);o(2),d(e.breakpoints.sizeAtLeast("Medium")?2:-1)}}function ei(t,n){if(t&1){let e=B();s(0,"mat-chip-row",25),A("edited",function(a){let p=M(e).$implicit,_=c(3);return $(_.renameTag(p,a.value))})("removed",function(){let a=M(e).$implicit,p=c(3);return $(p.deleteTag(a))}),l(1),s(2,"mat-icon",26),l(3,"cancel"),r()()}if(t&2){let e=n.$implicit;f("editable",!0),o(),m(" ",e," ")}}function ni(t,n){if(t&1&&(s(0,"mat-option",24),l(1),r()),t&2){let e=n.$implicit;f("value",e),o(),g(e)}}function ii(t,n){if(t&1){let e=B();s(0,"mat-card")(1,"mat-form-field",20)(2,"mat-chip-grid",null,0),k(4,ei,4,2,"mat-chip-row",21,K),r(),s(6,"input",22),A("matChipInputTokenEnd",function(a){M(e);let p=c(2);return $(a.value&&p.addTag(a.value))}),r(),s(7,"mat-autocomplete",23,1),A("optionSelected",function(a){M(e);let p=c(2);return $(p.addTag(a.option.viewValue))}),k(9,ni,2,2,"mat-option",24,K),r()()()}if(t&2){let e=st(3),i=st(8),a=c().$implicit,p=c();o(4),P(p.torrentContent.torrent.tagNames),o(2),f("placeholder",a("torrents.new_tag"))("formControl",p.newTagCtrl)("matAutocomplete",i)("matChipInputFor",e)("matChipInputSeparatorKeyCodes",p.separatorKeysCodes)("value",p.newTagCtrl.value),o(3),P(p.suggestedTags)}}function oi(t,n){if(t&1&&(s(0,"span",16),l(1),r()),t&2){let e=c(2).$implicit;o(),g(e("torrents.delete"))}}function ri(t,n){if(t&1&&(s(0,"mat-icon"),l(1,"delete_forever"),r(),C(2,oi,2,1,"span",16)),t&2){let e=c(2);o(2),d(e.breakpoints.sizeAtLeast("Medium")?2:-1)}}function ai(t,n){if(t&1){let e=B();s(0,"mat-card")(1,"mat-card-content",27)(2,"p")(3,"strong"),l(4),r(),h(5,"br"),l(6),r()(),s(7,"mat-card-actions",28)(8,"button",29),A("click",function(){M(e);let a=c(2);return $(a.delete())}),s(9,"mat-icon"),l(10,"delete_forever"),r(),l(11),r()()()}if(t&2){let e=c().$implicit;o(4),g(e("torrents.delete_are_you_sure")),o(2),m("",e("torrents.delete_action_cannot_be_undone")," "),o(5),m("",e("torrents.delete")," ")}}function li(t,n){t&1&&(s(0,"mat-icon",30),l(1,"close"),r())}function si(t,n){t&1&&(s(0,"mat-tab"),C(1,li,2,0,"ng-template",12),r())}function ci(t,n){if(t&1){let e=B();T(0),C(1,Pn,1,4,"img",3)(2,An,3,3,"h2")(3,Fn,5,4,"p",4)(4,Bn,5,4,"p",5)(5,Dn,4,3,"p",6),s(6,"p",7)(7,"strong"),l(8),r(),s(9,"span",8),l(10),r()(),s(11,"p")(12,"strong"),l(13),r(),l(14,"\xA0 "),k(15,On,2,1,"span",null,yn),r(),C(17,zn,4,2,"p")(18,Rn,6,1,"p")(19,jn,4,2,"p")(20,Ln,4,2,"p")(21,Vn,2,1,"p")(22,Hn,5,2,"ng-container")(23,Yn,5,3,"p")(24,qn,6,1,"p"),h(25,"mat-divider",9),s(26,"mat-tab-group",10),A("focusChange",function(a){M(e);let p=c();return $(p.selectTab(a.index==4?0:a.index))}),h(27,"mat-tab",11),s(28,"mat-tab"),C(29,Jn,4,2,"ng-template",12)(30,Qn,3,2,"ng-template",13),r(),s(31,"mat-tab"),C(32,ti,3,1,"ng-template",12)(33,ii,11,6,"ng-template",13),r(),s(34,"mat-tab"),C(35,ri,3,1,"ng-template",12)(36,ai,12,3,"ng-template",13),r(),C(37,si,2,0,"mat-tab"),r(),b()}if(t&2){let e,i,a,p=n.$implicit,_=c();o(),d((e=_.getAttribute("poster_path","tmdb"))?1:-1,e),o(),d(_.heading?2:-1),o(),d(_.size?3:-1),o(),d(_.published?4:-1),o(),d(_.peers?5:-1),o(3),m("",p("torrents.info_hash"),":"),o(),f("matTooltip",p("torrents.copy_to_clipboard"))("cdkCopyToClipboard",_.torrentContent.infoHash),o(),g(_.torrentContent.infoHash),o(3),m("",p("torrents.source"),":"),o(2),P(_.torrentContent.torrent.sources),o(2),d(_.torrentContent.content?17:-1),o(),d(_.torrentContent.languages!=null&&_.torrentContent.languages.length?18:-1),o(),d(_.torrentContent.content!=null&&_.torrentContent.content.releaseYear?19:-1),o(),d(_.torrentContent.episodes?20:-1),o(),d(_.torrentContent.content!=null&&_.torrentContent.content.overview?21:-1),o(),d((i=_.getCollections("genre"))?22:-1,i),o(),d((_.torrentContent.content==null?null:_.torrentContent.content.voteAverage)!=null?23:-1),o(),d((a=_.torrentContent.content==null?null:_.torrentContent.content.externalLinks)?24:-1,a),o(2),f("selectedIndex",_.selectedTabIndex)("mat-stretch-tabs",!1),o(11),d(_.selectedTabIndex>0?37:-1)}}var So=(()=>{class t{constructor(e,i){this.graphQLService=e,this.errorsService=i,this.breakpoints=y(fe),this.heading=!0,this.size=!0,this.peers=!0,this.published=!0,this.updated=new St,this.newTagCtrl=new Ft(""),this.editedTags=Array(),this.suggestedTags=Array(),this.selectedTabIndex=0,this.separatorKeysCodes=[13,188],this.transloco=y(R),this.newTagCtrl.valueChanges.subscribe(a=>(a&&(a=ye(a),this.newTagCtrl.setValue(a,{emitEvent:!1})),e.torrentSuggestTags({input:{prefix:a,exclusions:this.torrentContent.torrent.tagNames}}).pipe(J(p=>{this.suggestedTags.splice(0,this.suggestedTags.length,...p.suggestions.map(_=>_.name))})).subscribe()))}selectTab(e){this.selectedTabIndex=e}addTag(e){this.editTags(i=>[...i,e]),this.saveTags()}renameTag(e,i){this.editTags(a=>a.map(p=>p===e?i:p)),this.saveTags()}deleteTag(e){this.editTags(i=>i.filter(a=>a!==e)),this.saveTags()}editTags(e){this.editedTags=e(this.editedTags),this.newTagCtrl.reset()}saveTags(){this.graphQLService.torrentSetTags({infoHashes:[this.torrentContent.infoHash],tagNames:this.editedTags}).pipe(Y(e=>(this.errorsService.addError(`Error saving tags: ${e.message}`),G))).pipe(J(()=>{this.editedTags=[],this.updated.emit(null)})).subscribe()}delete(){this.graphQLService.torrentDelete({infoHashes:[this.torrentContent.infoHash]}).pipe(Y(e=>(this.errorsService.addError(`Error deleting torrent: ${e.message}`),G))).pipe(J(()=>{this.updated.emit(null)})).subscribe()}getAttribute(e,i){return this.torrentContent.content?.attributes?.find(a=>a.key===e&&(i===void 0||a.source===i))?.value}getCollections(e){let i=this.torrentContent.content?.collections?.filter(a=>a.type===e).map(a=>a.name);return i?.length?i.sort():void 0}filesCount(){return this.torrentContent.torrent.filesStatus==="single"?1:this.torrentContent.torrent.filesCount??void 0}static{this.\u0275fac=function(i){return new(i||t)(lt(Rt),lt(Q))}}static{this.\u0275cmp=z({type:t,selectors:[["app-torrent-content"]],inputs:{torrentContent:"torrentContent",heading:"heading",size:"size",peers:"peers",published:"published"},outputs:{updated:"updated"},standalone:!0,features:[N],decls:1,vars:0,consts:[["chipGrid",""],["auto","matAutocomplete"],[4,"transloco"],[1,"poster",3,"ngSrc","alt","width","height"],[1,"size"],[1,"published"],[1,"peers"],[1,"info-hash"],[3,"matTooltip","cdkCopyToClipboard"],[2,"clear","both"],["animationDuration","0",3,"focusChange","selectedIndex","mat-stretch-tabs"],["aria-labelledby","hidden"],["mat-tab-label",""],["matTabContent",""],[3,"routerLink","matTooltip"],["target","_blank",3,"href"],[1,"label"],[1,"files-count"],[1,"torrent-files"],[3,"torrent"],["subscriptSizing","dynamic",1,"form-edit-tags"],[3,"editable"],["autocapitalize","none",3,"matChipInputTokenEnd","placeholder","formControl","matAutocomplete","matChipInputFor","matChipInputSeparatorKeyCodes","value"],[3,"optionSelected"],[3,"value"],[3,"edited","removed","editable"],["matChipRemove",""],[2,"margin-top","10px"],[1,"button-row"],["mat-stroked-button","","color","warn",3,"click"],[2,"margin-right","0"]],template:function(i,a){i&1&&C(0,ci,38,21,"ng-container",2)},dependencies:[L,jt,Vt,Ot,Ht,zt,Gt,Kt,Yt,Qt,Wt,Ut,Jt,te,Lt,W,de,ue,Ce,xe,ne,Pt,At,Bt,kt,j,Z,tt,$t,he,$e],styles:["h2[_ngcontent-%COMP%]{margin-top:10px;max-width:900px;white-space:pre-wrap;word-break:break-all;overflow-wrap:break-word}.poster[_ngcontent-%COMP%]{float:right;margin:10px;border:1px solid currentColor}.info-hash[_ngcontent-%COMP%]{white-space:pre-wrap;word-break:break-all;overflow-wrap:break-word}.info-hash[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{padding-left:5px;cursor:crosshair;text-decoration:underline;text-decoration-style:dotted}.torrent-files[_ngcontent-%COMP%]{padding-top:10px;max-height:800px;overflow:scroll}.torrent-files[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{margin-bottom:10px;width:800px}.torrent-files[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding-right:20px;border-bottom:1px solid rgba(0,0,0,.12)}.torrent-files[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:hover td[_ngcontent-%COMP%]{background-color:#f5f5f5}.form-edit-tags[_ngcontent-%COMP%] .mat-mdc-form-field-subscript-wrapper{display:none}.files-count[_ngcontent-%COMP%]{margin-left:4px}.mat-mdc-card-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-top:0} .mdc-tab[aria-labelledby=hidden]{display:none} .mdc-tab[role=tab]{padding-left:15px;padding-right:15px} .mdc-tab .label, .mdc-tab .files-count{margin-left:8px}"]})}}return t})();export{Te as a,pi as b,mi as c,tt as d,Ci as e,So as f}; diff --git a/webui/dist/bitmagnet/browser/index.html b/webui/dist/bitmagnet/browser/index.html index d0733c8a..6d60772e 100644 --- a/webui/dist/bitmagnet/browser/index.html +++ b/webui/dist/bitmagnet/browser/index.html @@ -9,5 +9,5 @@ - + diff --git a/webui/dist/bitmagnet/browser/main-7SDDIE6J.js b/webui/dist/bitmagnet/browser/main-T7ODYOO7.js similarity index 99% rename from webui/dist/bitmagnet/browser/main-7SDDIE6J.js rename to webui/dist/bitmagnet/browser/main-T7ODYOO7.js index 38f2f12f..5eb08b15 100644 --- a/webui/dist/bitmagnet/browser/main-7SDDIE6J.js +++ b/webui/dist/bitmagnet/browser/main-T7ODYOO7.js @@ -1 +1 @@ -import{a as ze,b as Ae,d as Xe,e as Ue}from"./chunk-AV47NZN7.js";import{a as Oe}from"./chunk-M3BEO55A.js";import{a as Ge,c as Ne,d as Ke}from"./chunk-7OATZ42U.js";import{H as je,J as Ie,Ua as I,a as Ce,b as E,c as Me,i as Pe,p as qe,pa as Le,qa as Fe,r as De,s as Ee,sa as Be,ta as Re,ua as He,xa as Ve,ya as j}from"./chunk-4NEHCUZ2.js";import"./chunk-6XXA7HXI.js";import{c as X,d as pe,e as ge,f as fe,g as be,h as ye,k as ve,l as ke,m as xe,n as we,o as Te,p as Se}from"./chunk-FKMTSCBK.js";import{$b as _,B as ee,Cb as x,Ea as R,Ec as he,Fa as H,Hb as h,Kb as v,Mb as O,Nb as ce,Oa as re,Ob as S,Pb as C,Qb as s,Rb as n,Rc as D,Sb as d,Tb as w,Ub as T,Wa as ne,Wb as G,Zb as N,ac as de,bc as _e,d as Z,ec as M,fc as z,gc as A,ia as te,jc as k,ka as p,kb as i,kc as c,l as $,lb as V,lc as f,mb as se,mc as K,na as P,ob as ie,pa as ae,pc as b,qa as u,qb as le,qc as q,rc as me,tb as ue,ua as g,ya as oe}from"./chunk-3DR3CJRN.js";var xt="@",wt=(()=>{class t{constructor(e,a,r,l,m){this.doc=e,this.delegate=a,this.zone=r,this.animationType=l,this.moduleImpl=m,this._rendererFactoryPromise=null,this.scheduler=u(ie,{optional:!0}),this.loadingSchedulerFn=u(Tt,{optional:!0})}ngOnDestroy(){this._engine?.flush()}loadImpl(){let e=()=>this.moduleImpl??import("./chunk-E4ZH23H3.js").then(r=>r),a;return this.loadingSchedulerFn?a=this.loadingSchedulerFn(e):a=e(),a.catch(r=>{throw new te(5300,!1)}).then(({\u0275createEngine:r,\u0275AnimationRendererFactory:l})=>{this._engine=r(this.animationType,this.doc);let m=new l(this.delegate,this._engine,this.zone);return this.delegate=m,m})}createRenderer(e,a){let r=this.delegate.createRenderer(e,a);if(r.\u0275type===0)return r;typeof r.throwOnSyntheticProps=="boolean"&&(r.throwOnSyntheticProps=!1);let l=new U(r);return a?.data?.animation&&!this._rendererFactoryPromise&&(this._rendererFactoryPromise=this.loadImpl()),this._rendererFactoryPromise?.then(m=>{let kt=m.createRenderer(e,a);l.use(kt),this.scheduler?.notify(10)}).catch(m=>{l.use(r)}),l}begin(){this.delegate.begin?.()}end(){this.delegate.end?.()}whenRenderingDone(){return this.delegate.whenRenderingDone?.()??Promise.resolve()}static{this.\u0275fac=function(a){se()}}static{this.\u0275prov=p({token:t,factory:t.\u0275fac})}}return t})(),U=class{constructor(o){this.delegate=o,this.replay=[],this.\u0275type=1}use(o){if(this.delegate=o,this.replay!==null){for(let e of this.replay)e(o);this.replay=null}}get data(){return this.delegate.data}destroy(){this.replay=null,this.delegate.destroy()}createElement(o,e){return this.delegate.createElement(o,e)}createComment(o){return this.delegate.createComment(o)}createText(o){return this.delegate.createText(o)}get destroyNode(){return this.delegate.destroyNode}appendChild(o,e){this.delegate.appendChild(o,e)}insertBefore(o,e,a,r){this.delegate.insertBefore(o,e,a,r)}removeChild(o,e,a){this.delegate.removeChild(o,e,a)}selectRootElement(o,e){return this.delegate.selectRootElement(o,e)}parentNode(o){return this.delegate.parentNode(o)}nextSibling(o){return this.delegate.nextSibling(o)}setAttribute(o,e,a,r){this.delegate.setAttribute(o,e,a,r)}removeAttribute(o,e,a){this.delegate.removeAttribute(o,e,a)}addClass(o,e){this.delegate.addClass(o,e)}removeClass(o,e){this.delegate.removeClass(o,e)}setStyle(o,e,a,r){this.delegate.setStyle(o,e,a,r)}removeStyle(o,e,a){this.delegate.removeStyle(o,e,a)}setProperty(o,e,a){this.shouldReplay(e)&&this.replay.push(r=>r.setProperty(o,e,a)),this.delegate.setProperty(o,e,a)}setValue(o,e){this.delegate.setValue(o,e)}listen(o,e,a){return this.shouldReplay(e)&&this.replay.push(r=>r.listen(o,e,a)),this.delegate.listen(o,e,a)}shouldReplay(o){return this.replay!==null&&o.startsWith(xt)}},Tt=new P("");function We(t="animations"){return ue("NgAsyncAnimations"),oe([{provide:le,useFactory:(o,e,a)=>new wt(o,e,a,t),deps:[D,ge,re]},{provide:ne,useValue:t==="noop"?"NoopAnimations":"BrowserAnimations"}])}var Qe=[{path:"",pathMatch:"full",redirectTo:"torrents"},{path:"torrents",loadComponent:()=>import("./chunk-OMQU4L7V.js").then(t=>t.TorrentsComponent),children:[{path:"",loadComponent:()=>import("./chunk-O2AXX42O.js").then(t=>t.TorrentsSearchComponent)},{path:"permalink/:infoHash",loadComponent:()=>import("./chunk-W4X5IQAZ.js").then(t=>t.TorrentPermalinkComponent)}]},{path:"dashboard",loadComponent:()=>import("./chunk-5PLW2W3L.js").then(t=>t.DashboardComponent),children:[{path:"",loadComponent:()=>import("./chunk-ML52OCX4.js").then(t=>t.DashboardHomeComponent)},{path:"queues",loadComponent:()=>import("./chunk-ZRBK6IMU.js").then(t=>t.QueueDashboardComponent),children:[{path:"visualize",loadComponent:()=>import("./chunk-RHLI3WJ3.js").then(t=>t.QueueVisualizeComponent)},{path:"jobs",loadComponent:()=>import("./chunk-V3XZ7MUW.js").then(t=>t.QueueJobsComponent)},{path:"admin",loadComponent:()=>import("./chunk-IMLYIOTE.js").then(t=>t.QueueAdminComponent)}]},{path:"torrents",loadComponent:()=>import("./chunk-7Y5J4R45.js").then(t=>t.TorrentsDashboardComponent)}]}];var Ye={content_types:{plural:{all:"\u0627\u0644\u0643\u0644",audiobook:"\u0627\u0644\u0643\u062A\u0628 \u0627\u0644\u0635\u0648\u062A\u064A\u0629",comic:"\u0627\u0644\u0642\u0635\u0635 \u0627\u0644\u0645\u0635\u0648\u0631\u0629",ebook:"\u0627\u0644\u0643\u062A\u0628 \u0627\u0644\u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A\u0629",movie:"\u0627\u0644\u0623\u0641\u0644\u0627\u0645",music:"\u0627\u0644\u0645\u0648\u0633\u064A\u0642\u0649",null:"\u063A\u064A\u0631 \u0645\u0639\u0631\u0648\u0641",software:"\u0627\u0644\u0628\u0631\u0645\u062C\u064A\u0627\u062A",tv_show:"\u0628\u0631\u0627\u0645\u062C \u0627\u0644\u062A\u0644\u0641\u0627\u0632",xxx:"\u0627\u0644\u0625\u0628\u0627\u062D\u064A\u0629"},singular:{audiobook:"\u0643\u062A\u0627\u0628 \u0635\u0648\u062A\u064A",comic:"\u0642\u0635\u0629 \u0645\u0635\u0648\u0631\u0629",ebook:"\u0643\u062A\u0627\u0628 \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",movie:"\u0641\u064A\u0644\u0645",music:"\u0645\u0648\u0633\u064A\u0642\u0649",null:"\u063A\u064A\u0631 \u0645\u0639\u0631\u0648\u0641",software:"\u0628\u0631\u0645\u062C\u064A\u0627\u062A",tv_show:"\u0628\u0631\u0646\u0627\u0645\u062C \u062A\u0644\u0641\u0632\u064A\u0648\u0646\u064A",xxx:"\u0627\u0644\u0625\u0628\u0627\u062D\u064A\u0629"}},dashboard:{event:{created:"\u062A\u0645 \u0627\u0644\u0625\u0646\u0634\u0627\u0621",failed:"\u0641\u0634\u0644",processed:"\u062A\u0645\u062A \u0627\u0644\u0645\u0639\u0627\u0644\u062C\u0629",updated:"\u062A\u0645 \u0627\u0644\u062A\u062D\u062F\u064A\u062B"},interval:{all:"\u0627\u0644\u0643\u0644",days:"\u064A\u0648\u0645",days_1:"\u064A\u0648\u0645 \u0648\u0627\u062D\u062F",hours:"\u0633\u0627\u0639\u0629",hours_1:"\u0633\u0627\u0639\u0629 \u0648\u0627\u062D\u062F\u0629",hours_12:"12 \u0633\u0627\u0639\u0629",hours_6:"6 \u0633\u0627\u0639\u0629",minutes:"\u062F\u0642\u064A\u0642\u0629",minutes_1:"1 \u062F\u0642\u064A\u0642\u0629",minutes_15:"15 \u062F\u0642\u0627\u0626\u0642",minutes_30:"30 \u062F\u0642\u0627\u0626\u0642",minutes_5:"5 \u062F\u0642\u0627\u0626\u0642",off:"\u0625\u064A\u0642\u0627\u0641",seconds_10:"10 \u062B\u0648\u0627\u0646\u064A",seconds_30:"30 \u062B\u0627\u0646\u064A\u0629",weeks_1:"1 \u0623\u0633\u0628\u0648\u0639"},metrics:{event:"\u062D\u062F\u062B",resolution:"\u0627\u0644\u062F\u0642\u0629",throughput:"\u0645\u0639\u062F\u0644 \u0627\u0644\u0646\u0642\u0644",timeframe:"\u0627\u0644\u0625\u0637\u0627\u0631 \u0627\u0644\u0632\u0645\u0646\u064A"},queues:{created:"\u062A\u0645 \u0627\u0644\u0625\u0646\u0634\u0627\u0621",created_at:"\u062A\u0645 \u0627\u0644\u0625\u0646\u0634\u0627\u0621 \u0641\u064A",enqueue_jobs:"\u0625\u062F\u0631\u0627\u062C \u0627\u0644\u0648\u0638\u0627\u0626\u0641 \u0641\u064A \u0627\u0644\u0637\u0627\u0628\u0648\u0631",enqueue_torrent_processing_batch:"\u0625\u062F\u0631\u0627\u062C \u062F\u0641\u0639\u0629 \u0645\u0639\u0627\u0644\u062C\u0629 \u0627\u0644\u062A\u0648\u0631\u0646\u062A \u0641\u064A \u0627\u0644\u0637\u0627\u0628\u0648\u0631",failed:"\u0641\u0634\u0644",force_rematch:"\u0641\u0631\u0636 \u0625\u0639\u0627\u062F\u0629 \u0627\u0644\u0645\u0637\u0627\u0628\u0642\u0629 \u0644\u0644\u0645\u062D\u062A\u0648\u0649 \u0627\u0644\u0645\u0637\u0627\u0628\u0642 \u0628\u0627\u0644\u0641\u0639\u0644",jobs_enqueued:"\u0627\u0644\u0648\u0638\u0627\u0626\u0641 \u0627\u0644\u0645\u062F\u0631\u062C\u0629 \u0641\u064A \u0627\u0644\u0637\u0627\u0628\u0648\u0631",latency:"\u0627\u0644\u062A\u0623\u062E\u064A\u0631",match_content_by_external_api_search:"\u0645\u0637\u0627\u0628\u0642\u0629 \u0627\u0644\u0645\u062D\u062A\u0648\u0649 \u0645\u0646 \u062E\u0644\u0627\u0644 \u0627\u0644\u0628\u062D\u062B \u0641\u064A API \u0627\u0644\u062E\u0627\u0631\u062C\u064A\u0629",match_content_by_local_search:"\u0645\u0637\u0627\u0628\u0642\u0629 \u0627\u0644\u0645\u062D\u062A\u0648\u0649 \u0645\u0646 \u062E\u0644\u0627\u0644 \u0627\u0644\u0628\u062D\u062B \u0627\u0644\u0645\u062D\u0644\u064A",payload:"\u0627\u0644\u062D\u0645\u0648\u0644\u0629",pending:"\u0642\u064A\u062F \u0627\u0644\u0627\u0646\u062A\u0638\u0627\u0631",priority:"\u0627\u0644\u0623\u0648\u0644\u0648\u064A\u0629",process_orphaned_torrents_only:"\u0645\u0639\u0627\u0644\u062C\u0629 \u0627\u0644\u062A\u0648\u0631\u0646\u062A \u0627\u0644\u064A\u062A\u064A\u0645 \u0641\u0642\u0637",processed:"\u062A\u0645\u062A \u0627\u0644\u0645\u0639\u0627\u0644\u062C\u0629",purge_jobs:"\u062A\u0646\u0638\u064A\u0641 \u0627\u0644\u0648\u0638\u0627\u0626\u0641",purge_queue_jobs:"\u062A\u0646\u0638\u064A\u0641 \u0648\u0638\u0627\u0626\u0641 \u0627\u0644\u0637\u0627\u0628\u0648\u0631",queue:"\u0627\u0644\u0637\u0627\u0628\u0648\u0631",queue_purged:"\u062A\u0645 \u062A\u0646\u0638\u064A\u0641 \u0627\u0644\u0637\u0627\u0628\u0648\u0631",queues:"\u0627\u0644\u0637\u0648\u0627\u0628\u064A\u0631",ran_at:"\u062A\u0645 \u0627\u0644\u062A\u0634\u063A\u064A\u0644 \u0641\u064A",retry:"\u0625\u0639\u0627\u062F\u0629 \u0627\u0644\u0645\u062D\u0627\u0648\u0644\u0629",total_counts_by_status:"\u0625\u062C\u0645\u0627\u0644\u064A \u0627\u0644\u0639\u062F \u062D\u0633\u0628 \u0627\u0644\u062D\u0627\u0644\u0629"}},facets:{content_type:"\u0646\u0648\u0639 \u0627\u0644\u0645\u062D\u062A\u0648\u0649",file_type:"\u0646\u0648\u0639 \u0627\u0644\u0645\u0644\u0641",genre:"\u0627\u0644\u0646\u0648\u0639",language:"\u0627\u0644\u0644\u063A\u0629",queue:"\u0627\u0644\u0637\u0627\u0628\u0648\u0631",status:"\u0627\u0644\u062D\u0627\u0644\u0629",torrent_source:"\u0645\u0635\u062F\u0631 \u0627\u0644\u062A\u0648\u0631\u0646\u062A",torrent_tag:"\u0639\u0644\u0627\u0645\u0629 \u0627\u0644\u062A\u0648\u0631\u0646\u062A",video_resolution:"\u062F\u0642\u0629 \u0627\u0644\u0641\u064A\u062F\u064A\u0648",video_source:"\u0645\u0635\u062F\u0631 \u0627\u0644\u0641\u064A\u062F\u064A\u0648"},file_types:{archive:"\u0623\u0631\u0634\u064A\u0641",audio:"\u0635\u0648\u062A",data:"\u0628\u064A\u0627\u0646\u0627\u062A",document:"\u0648\u062B\u064A\u0642\u0629",image:"\u0635\u0648\u0631\u0629",software:"\u0628\u0631\u0645\u062C\u064A\u0627\u062A",subtitles:"\u062A\u0631\u062C\u0645\u0627\u062A",unknown:"\u063A\u064A\u0631 \u0645\u0639\u0631\u0648\u0641",video:"\u0641\u064A\u062F\u064A\u0648"},general:{all:"\u0627\u0644\u0643\u0644",dismiss:"\u0631\u0641\u0636",error:"\u062E\u0637\u0623",none:"\u0644\u0627 \u0634\u064A\u0621",refresh:"\u062A\u062D\u062F\u064A\u062B",status:"\u0627\u0644\u062D\u0627\u0644\u0629"},health:{bitmagnet_is_status:"bitmagnet \u0647\u0648 {{status}}",check_failed_with_error:"\u0641\u0634\u0644 \u0627\u0644\u062A\u062D\u0642\u0642 \u0645\u0639 \u062E\u0637\u0623",component:"\u0645\u0643\u0648\u0646",components:{dht:"DHT",postgres:"Postgres",tmdb:"TMDB"},dismiss:"\u0631\u0641\u0636",error:"\u062E\u0637\u0623",status:"\u0627\u0644\u062D\u0627\u0644\u0629",statuses:{degraded:"\u0645\u062A\u062F\u0647\u0648\u0631",down:"\u0645\u0639\u0637\u0644",error:"\u062E\u0637\u0623",inactive:"\u063A\u064A\u0631 \u0646\u0634\u0637",started:"\u0628\u062F\u0623",unknown:"\u0645\u0639\u0644\u0642",up:"\u0646\u0634\u0637"},summary:"\u0645\u0644\u062E\u0635 \u0627\u0644\u0635\u062D\u0629",worker:"\u0639\u0627\u0645\u0644",workers:{dht_crawler:"\u0632\u0627\u062D\u0641 DHT",http_server:"\u062E\u0627\u062F\u0645 HTTP",queue_server:"\u062E\u0627\u062F\u0645 \u0627\u0644\u0637\u0627\u0628\u0648\u0631"}},languages:{af:"\u0627\u0644\u0623\u0641\u0631\u064A\u0643\u0627\u0646\u064A\u0629",ar:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",az:"\u0627\u0644\u0623\u0630\u0631\u0628\u064A\u062C\u0627\u0646\u064A\u0629",be:"\u0627\u0644\u0628\u064A\u0644\u0627\u0631\u0648\u0633\u064A\u0629",bg:"\u0627\u0644\u0628\u0644\u063A\u0627\u0631\u064A\u0629",bs:"\u0627\u0644\u0628\u0648\u0633\u0646\u064A\u0629",ca:"\u0627\u0644\u0643\u0627\u062A\u0627\u0644\u0627\u0646\u064A\u0629",ce:"\u0627\u0644\u0634\u064A\u0634\u0627\u0646\u064A\u0629",co:"\u0627\u0644\u0643\u0648\u0631\u0633\u064A\u0643\u064A\u0629",cs:"\u0627\u0644\u062A\u0634\u064A\u0643\u064A\u0629",cy:"\u0627\u0644\u0648\u064A\u0644\u0632\u064A\u0629",da:"\u0627\u0644\u062F\u0627\u0646\u0645\u0627\u0631\u0643\u064A\u0629",de:"\u0627\u0644\u0623\u0644\u0645\u0627\u0646\u064A\u0629",el:"\u0627\u0644\u064A\u0648\u0646\u0627\u0646\u064A\u0629",en:"\u0627\u0644\u0625\u0646\u062C\u0644\u064A\u0632\u064A\u0629",es:"\u0627\u0644\u0625\u0633\u0628\u0627\u0646\u064A\u0629",et:"\u0627\u0644\u0625\u0633\u062A\u0648\u0646\u064A\u0629",eu:"\u0627\u0644\u0628\u0627\u0633\u0643\u064A\u0629",fa:"\u0627\u0644\u0641\u0627\u0631\u0633\u064A\u0629",fi:"\u0627\u0644\u0641\u0646\u0644\u0646\u062F\u064A\u0629",fr:"\u0627\u0644\u0641\u0631\u0646\u0633\u064A\u0629",he:"\u0627\u0644\u0639\u0628\u0631\u064A\u0629",hi:"\u0627\u0644\u0647\u0646\u062F\u064A\u0629",hr:"\u0627\u0644\u0643\u0631\u0648\u0627\u062A\u064A\u0629",hu:"\u0627\u0644\u0647\u0646\u063A\u0627\u0631\u064A\u0629",hy:"\u0627\u0644\u0623\u0631\u0645\u0646\u064A\u0629",id:"\u0627\u0644\u0625\u0646\u062F\u0648\u0646\u064A\u0633\u064A\u0629",is:"\u0627\u0644\u0623\u064A\u0633\u0644\u0646\u062F\u064A\u0629",it:"\u0627\u0644\u0625\u064A\u0637\u0627\u0644\u064A\u0629",ja:"\u0627\u0644\u064A\u0627\u0628\u0627\u0646\u064A\u0629",ka:"\u0627\u0644\u062C\u0648\u0631\u062C\u064A\u0629",ko:"\u0627\u0644\u0643\u0648\u0631\u064A\u0629",ku:"\u0627\u0644\u0643\u0631\u062F\u064A\u0629",lt:"\u0627\u0644\u0644\u064A\u062A\u0648\u0627\u0646\u064A\u0629",lv:"\u0627\u0644\u0644\u0627\u062A\u0641\u064A\u0629",mi:"\u0627\u0644\u0645\u0627\u0648\u0631\u064A\u0629",mk:"\u0627\u0644\u0645\u0642\u062F\u0648\u0646\u064A\u0629",ml:"\u0627\u0644\u0645\u0627\u0644\u0627\u064A\u0627\u0644\u0627\u0645\u064A\u0629",mn:"\u0627\u0644\u0645\u0646\u063A\u0648\u0644\u064A\u0629",ms:"\u0627\u0644\u0645\u0644\u0627\u064A\u0648\u064A\u0629",mt:"\u0627\u0644\u0645\u0627\u0644\u0637\u064A\u0629",nl:"\u0627\u0644\u0647\u0648\u0644\u0646\u062F\u064A\u0629",no:"\u0627\u0644\u0646\u0631\u0648\u064A\u062C\u064A\u0629",pl:"\u0627\u0644\u0628\u0648\u0644\u0646\u062F\u064A\u0629",pt:"\u0627\u0644\u0628\u0631\u062A\u063A\u0627\u0644\u064A\u0629",ro:"\u0627\u0644\u0631\u0648\u0645\u0627\u0646\u064A\u0629",ru:"\u0627\u0644\u0631\u0648\u0633\u064A\u0629",sa:"\u0627\u0644\u0633\u0646\u0633\u0643\u0631\u064A\u062A\u064A\u0629",sk:"\u0627\u0644\u0633\u0644\u0648\u0641\u0627\u0643\u064A\u0629",sl:"\u0627\u0644\u0633\u0644\u0648\u0641\u064A\u0646\u064A\u0629",sm:"\u0627\u0644\u0633\u0627\u0645\u0648\u064A\u0629",so:"\u0627\u0644\u0635\u0648\u0645\u0627\u0644\u064A\u0629",sr:"\u0627\u0644\u0635\u0631\u0628\u064A\u0629",sv:"\u0627\u0644\u0633\u0648\u064A\u062F\u064A\u0629",ta:"\u0627\u0644\u062A\u0627\u0645\u064A\u0644\u064A\u0629",th:"\u0627\u0644\u062A\u0627\u064A\u0644\u0627\u0646\u062F\u064A\u0629",tr:"\u0627\u0644\u062A\u0631\u0643\u064A\u0629",uk:"\u0627\u0644\u0623\u0648\u0643\u0631\u0627\u0646\u064A\u0629",vi:"\u0627\u0644\u0641\u064A\u062A\u0646\u0627\u0645\u064A\u0629",yi:"\u0627\u0644\u064A\u062F\u064A\u0634\u064A\u0629",zh:"\u0627\u0644\u0635\u064A\u0646\u064A\u0629",zu:"\u0627\u0644\u0632\u0648\u0644\u0648"},layout:{bitmagnet_on_service:"bitmagnet \u0639\u0644\u0649 {{service}}",change_theme:"\u062A\u063A\u064A\u064A\u0631 \u0627\u0644\u0633\u0645\u0629",external_links:"\u0631\u0648\u0627\u0628\u0637 \u062E\u0627\u0631\u062C\u064A\u0629",sponsor:"\u0627\u0644\u0631\u0627\u0639\u064A",support_bitmagnet:"\u062F\u0639\u0645 bitmagnet",translate:"\u062A\u0631\u062C\u0645\u0629"},paginator:{first_page:"\u0627\u0644\u0635\u0641\u062D\u0629 \u0627\u0644\u0623\u0648\u0644\u0649",items_per_page:"\u0627\u0644\u0639\u0646\u0627\u0635\u0631 \u0644\u0643\u0644 \u0635\u0641\u062D\u0629",last_page:"\u0627\u0644\u0635\u0641\u062D\u0629 \u0627\u0644\u0623\u062E\u064A\u0631\u0629",next_page:"\u0627\u0644\u0635\u0641\u062D\u0629 \u0627\u0644\u062A\u0627\u0644\u064A\u0629",previous_page:"\u0627\u0644\u0635\u0641\u062D\u0629 \u0627\u0644\u0633\u0627\u0628\u0642\u0629",x_to_y:"{{x}} \u0625\u0644\u0649 {{y}}",x_to_y_of_y:"__\u0645\u0641\u0642\u0648\u062F__",x_to_y_of_z:"{{x}} \u0625\u0644\u0649 {{y}} \u0645\u0646 {{z}}"},routes:{admin:"\u0627\u0644\u0645\u0633\u0624\u0648\u0644",dashboard:"\u0644\u0648\u062D\u0629 \u0627\u0644\u062A\u062D\u0643\u0645",home:"\u0627\u0644\u0635\u0641\u062D\u0629 \u0627\u0644\u0631\u0626\u064A\u0633\u064A\u0629",jobs:"\u0627\u0644\u0648\u0638\u0627\u0626\u0641",queues:"\u0627\u0644\u0637\u0648\u0627\u0628\u064A\u0631",torrents:"\u0627\u0644\u062A\u0648\u0631\u0646\u062A",visualize:"\u062A\u0635\u0648\u0631"},torrents:{clear_search:"\u0645\u0633\u062D \u0627\u0644\u0628\u062D\u062B",copy:"\u0646\u0633\u062E",copy_to_clipboard:"\u0646\u0633\u062E \u0625\u0644\u0649 \u0627\u0644\u062D\u0627\u0641\u0638\u0629",delete:"\u062D\u0630\u0641",delete_action_cannot_be_undone:"\u0644\u0627 \u064A\u0645\u0643\u0646 \u0627\u0644\u062A\u0631\u0627\u062C\u0639 \u0639\u0646 \u0647\u0630\u0627 \u0627\u0644\u0625\u062C\u0631\u0627\u0621",delete_are_you_sure:"\u0647\u0644 \u0623\u0646\u062A \u0645\u062A\u0623\u0643\u062F \u0623\u0646\u0643 \u062A\u0631\u064A\u062F \u062D\u0630\u0641 \u0647\u0630\u0627 \u0627\u0644\u062A\u0648\u0631\u0646\u062A\u061F",deselect_all:"\u0625\u0644\u063A\u0627\u0621 \u062A\u062D\u062F\u064A\u062F \u0627\u0644\u0643\u0644",edit_tags:"\u062A\u062D\u0631\u064A\u0631 \u0627\u0644\u0639\u0644\u0627\u0645\u0627\u062A",episodes:"\u0627\u0644\u062D\u0644\u0642\u0627\u062A",external_links:"\u0631\u0648\u0627\u0628\u0637 \u062E\u0627\u0631\u062C\u064A\u0629",file_index:"\u0641\u0647\u0631\u0633 \u0627\u0644\u0645\u0644\u0641\u0627\u062A",file_path:"\u0645\u0633\u0627\u0631 \u0627\u0644\u0645\u0644\u0641",file_size:"\u062D\u062C\u0645 \u0627\u0644\u0645\u0644\u0641",file_type:"\u0646\u0648\u0639 \u0627\u0644\u0645\u0644\u0641",files:"\u0627\u0644\u0645\u0644\u0641\u0627\u062A",files_count_n:"{{count}} \u0645\u0644\u0641\u0627\u062A",files_no_info:"\u0644\u0627 \u062A\u0648\u062C\u062F \u0645\u0639\u0644\u0648\u0645\u0627\u062A \u0639\u0646 \u0627\u0644\u0645\u0644\u0641\u0627\u062A",files_single:"\u0645\u0644\u0641 \u0648\u0627\u062D\u062F",genres:"\u0627\u0644\u0623\u0646\u0648\u0627\u0639",info_hash:"\u062A\u062C\u0632\u0626\u0629 \u0627\u0644\u0645\u0639\u0644\u0648\u0645\u0627\u062A",info_hashes:"\u062A\u062C\u0632\u0626\u0627\u062A \u0627\u0644\u0645\u0639\u0644\u0648\u0645\u0627\u062A",languages:"\u0627\u0644\u0644\u063A\u0627\u062A",leechers:"\u0627\u0644\u0645\u0633\u062A\u0641\u064A\u062F\u0648\u0646",magnet:"\u0645\u063A\u0646\u0627\u0637\u064A\u0633",magnet_links:"\u0631\u0648\u0627\u0628\u0637 \u0645\u063A\u0646\u0627\u0637\u064A\u0633\u064A\u0629",new_tag:"\u0639\u0644\u0627\u0645\u0629 \u062C\u062F\u064A\u062F\u0629",order_by:"\u062A\u0631\u062A\u064A\u0628 \u062D\u0633\u0628",order_direction_toggle:"\u062A\u0628\u062F\u064A\u0644 \u0627\u0644\u0627\u062A\u062C\u0627\u0647",ordering:{files_count:"\u0639\u062F\u062F \u0627\u0644\u0645\u0644\u0641\u0627\u062A",info_hash:"\u062A\u062C\u0632\u0626\u0629 \u0627\u0644\u0645\u0639\u0644\u0648\u0645\u0627\u062A",leechers:"\u0627\u0644\u0645\u0633\u062A\u0641\u064A\u062F\u0648\u0646",name:"\u0627\u0644\u0627\u0633\u0645",published_at:"\u0646\u0634\u0631 \u0641\u064A",relevance:"\u0627\u0644\u0635\u0644\u0629",seeders:"\u0627\u0644\u0645\u0632\u0627\u0631\u0639\u0648\u0646",size:"\u0627\u0644\u062D\u062C\u0645",updated_at:"\u062A\u0645 \u0627\u0644\u062A\u062D\u062F\u064A\u062B \u0641\u064A"},original_release_date:"\u062A\u0627\u0631\u064A\u062E \u0627\u0644\u0625\u0635\u062F\u0627\u0631 \u0627\u0644\u0623\u0635\u0644\u064A",permalink:"\u0631\u0627\u0628\u0637 \u062F\u0627\u0626\u0645",poster:"\u0645\u0644\u0635\u0642",published:"\u0645\u0646\u0634\u0648\u0631",rating:"\u0627\u0644\u062A\u0642\u064A\u064A\u0645",refresh:"\u062A\u062D\u062F\u064A\u062B \u0627\u0644\u0646\u062A\u0627\u0626\u062C",s_l:"S / L",search:"\u0628\u062D\u062B",seeders:"\u0627\u0644\u0628\u0627\u0630\u0631\u0648\u0646",select_all:"\u062A\u062D\u062F\u064A\u062F \u0627\u0644\u0643\u0644",showing_x_of_y_files:"\u0639\u0631\u0636 {{x}} \u0645\u0646 {{y}} \u0645\u0644\u0641\u0627\u062A",size:"\u0627\u0644\u062D\u062C\u0645",source:"\u0645\u0635\u062F\u0631 \u0627\u0644\u062A\u0648\u0631\u0646\u062A",summary:"\u0627\u0644\u0645\u0644\u062E\u0635",title:"\u0627\u0644\u0639\u0646\u0648\u0627\u0646",toggle_drawer:"\u062A\u0628\u062F\u064A\u0644 \u0627\u0644\u062F\u0631\u062C",votes_count_n:"{{count}} \u0623\u0635\u0648\u0627\u062A"},version:{bitmagnet_version:"\u0625\u0635\u062F\u0627\u0631 bitmagnet {{version}}",unknown:"\u063A\u064A\u0631 \u0645\u0639\u0631\u0648\u0641"}};var Je={content_types:{plural:{all:"Alle",audiobook:"H\xF6rb\xFCcher",comic:"Comics",ebook:"E-B\xFCcher",movie:"Filme",music:"Musik",null:"Unbekannt",software:"Software",tv_show:"TV-Shows",xxx:"XXX"},singular:{audiobook:"H\xF6rbuch",comic:"Comic",ebook:"E-Buch",movie:"Film",music:"Musik",null:"Unbekannt",software:"Software",tv_show:"TV-Show",xxx:"XXX"}},dashboard:{event:{created:"Erstellt",failed:"Fehlgeschlagen",processed:"Verarbeitet",updated:"Aktualisiert"},interval:{all:"Alle",days:"Tage",days_1:"1 Tag",hours:"Stunden",hours_1:"1 Stunde",hours_12:"12 Stunden",hours_6:"6 Stunden",minutes:"Minuten",minutes_1:"1 Minute",minutes_15:"15 Minuten",minutes_30:"30 Minuten",minutes_5:"5 Minuten",off:"Aus",seconds_10:"10 Sekunden",seconds_30:"30 Sekunden",weeks_1:"1 Woche"},metrics:{event:"Ereignis",resolution:"Aufl\xF6sung",throughput:"Durchsatz",timeframe:"Zeitrahmen"},queues:{created:"Erstellt",created_at:"Erstellt am",enqueue_jobs:"Jobs einreihen",enqueue_torrent_processing_batch:"Torrent-Verarbeitungsbatch einreihen",failed:"Fehlgeschlagen",force_rematch:"Erneutes Zuordnen von bereits zugeordneten Inhalten erzwingen",jobs_enqueued:"Jobs eingereiht",latency:"Latenz",match_content_by_external_api_search:"Inhalte durch externe API-Suche zuordnen",match_content_by_local_search:"Inhalte durch lokale Suche zuordnen",payload:"Nutzlast",pending:"Ausstehend",priority:"Priorit\xE4t",process_orphaned_torrents_only:"Nur verwaiste Torrents verarbeiten",processed:"Verarbeitet",purge_jobs:"Jobs bereinigen",purge_queue_jobs:"Warteschlangen-Jobs bereinigen",queue:"Warteschlange",queue_purged:"Warteschlange bereinigt",queues:"Warteschlangen",ran_at:"Ausgef\xFChrt am",retry:"Erneut versuchen",total_counts_by_status:"Gesamtanzahl nach Status"}},facets:{content_type:"Inhaltstyp",file_type:"Dateityp",genre:"Genre",language:"Sprache",queue:"Warteschlange",status:"Status",torrent_source:"Torrent-Quelle",torrent_tag:"Torrent-Tag",video_resolution:"Videoaufl\xF6sung",video_source:"Videoquelle"},file_types:{archive:"Archiv",audio:"Audio",data:"Daten",document:"Dokument",image:"Bild",software:"Software",subtitles:"Untertitel",unknown:"Unbekannt",video:"Video"},general:{all:"Alle",dismiss:"Verwerfen",error:"Fehler",none:"Keine",refresh:"Aktualisieren",status:"Status"},health:{bitmagnet_is_status:"bitmagnet ist {{status}}",check_failed_with_error:"\xDCberpr\xFCfung mit Fehler fehlgeschlagen",component:"Komponente",components:{dht:"DHT",postgres:"Postgres",tmdb:"TMDB"},dismiss:"Verwerfen",error:"Fehler",status:"Status",statuses:{degraded:"Verschlechtert",down:"Aus",error:"Fehler",inactive:"Inaktiv",started:"Gestartet",unknown:"Ausstehend",up:"An"},summary:"Gesundheits\xFCbersicht",worker:"Arbeiter",workers:{dht_crawler:"DHT-Crawler",http_server:"HTTP-Server",queue_server:"Warteschlangen-Server"}},languages:{af:"Afrikaans",ar:"Arabisch",az:"Aserbaidschanisch",be:"Wei\xDFrussisch",bg:"Bulgarisch",bs:"Bosnisch",ca:"Katalanisch",ce:"Tschetschenisch",co:"Korsisch",cs:"Tschechisch",cy:"Walisisch",da:"D\xE4nisch",de:"Deutsch",el:"Griechisch",en:"Englisch",es:"Spanisch",et:"Estnisch",eu:"Baskisch",fa:"Persisch",fi:"Finnisch",fr:"Franz\xF6sisch",he:"Hebr\xE4isch",hi:"Hindi",hr:"Kroatisch",hu:"Ungarisch",hy:"Armenisch",id:"Indonesisch",is:"Isl\xE4ndisch",it:"Italienisch",ja:"Japanisch",ka:"Georgisch",ko:"Koreanisch",ku:"Kurdisch",lt:"Litauisch",lv:"Lettisch",mi:"Maori",mk:"Mazedonisch",ml:"Malayalam",mn:"Mongolisch",ms:"Malaiisch",mt:"Maltesisch",nl:"Niederl\xE4ndisch",no:"Norwegisch",pl:"Polnisch",pt:"Portugiesisch",ro:"Rum\xE4nisch",ru:"Russisch",sa:"Sanskrit",sk:"Slowakisch",sl:"Slowenisch",sm:"Samoanisch",so:"Somalisch",sr:"Serbisch",sv:"Schwedisch",ta:"Tamil",th:"Thai",tr:"T\xFCrkisch",uk:"Ukrainisch",vi:"Vietnamesisch",yi:"Jiddisch",zh:"Chinesisch",zu:"Zulu"},layout:{bitmagnet_on_service:"bitmagnet auf {{service}}",change_theme:"Thema \xE4ndern",external_links:"Externe Links",sponsor:"Sponsor",support_bitmagnet:"bitmagnet unterst\xFCtzen",translate:"\xDCbersetzen"},paginator:{first_page:"Erste Seite",items_per_page:"Artikel pro Seite",last_page:"Letzte Seite",next_page:"N\xE4chste Seite",previous_page:"Vorherige Seite",x_to_y:"{{x}} bis {{y}}",x_to_y_of_y:"__fehlend__",x_to_y_of_z:"{{x}} bis {{y}} von {{z}}"},routes:{admin:"Admin",dashboard:"Dashboard",home:"Startseite",jobs:"Aufgaben",queues:"Warteschlangen",torrents:"Torrents",visualize:"Visualisieren"},torrents:{clear_search:"Suche l\xF6schen",copy:"Kopieren",copy_to_clipboard:"In die Zwischenablage kopieren",delete:"L\xF6schen",delete_action_cannot_be_undone:"Diese Aktion kann nicht r\xFCckg\xE4ngig gemacht werden",delete_are_you_sure:"Sind Sie sicher, dass Sie diesen Torrent l\xF6schen m\xF6chten?",deselect_all:"Alle abw\xE4hlen",edit_tags:"Tags bearbeiten",episodes:"Episoden",external_links:"Externe Links",file_index:"Dateiindex",file_path:"Dateipfad",file_size:"Dateigr\xF6\xDFe",file_type:"Dateityp",files:"Dateien",files_count_n:"{{count}} Dateien",files_no_info:"Keine Dateiinformationen verf\xFCgbar",files_single:"Einzelne Datei",genres:"Genres",info_hash:"Info-Hash",info_hashes:"Info-Hashes",languages:"Sprachen",leechers:"Leechers",magnet:"Magnet",magnet_links:"Magnet-Links",new_tag:"Neuer Tag",order_by:"Sortieren nach",order_direction_toggle:"Richtung umschalten",ordering:{files_count:"Dateienanzahl",info_hash:"Info-Hash",leechers:"Leechers",name:"Name",published_at:"Ver\xF6ffentlicht am",relevance:"Relevanz",seeders:"Seeders",size:"Gr\xF6\xDFe",updated_at:"Aktualisiert am"},original_release_date:"Originales Ver\xF6ffentlichungsdatum",permalink:"Permalink",poster:"Poster",published:"Ver\xF6ffentlicht",rating:"Bewertung",refresh:"Ergebnisse aktualisieren",s_l:"S / L",search:"Suche",seeders:"Seeders",select_all:"Alle ausw\xE4hlen",showing_x_of_y_files:"{{x}} von {{y}} Dateien anzeigen",size:"Gr\xF6\xDFe",source:"Torrent-Quelle",summary:"Zusammenfassung",title:"Titel",toggle_drawer:"Schublade umschalten",votes_count_n:"{{count}} Stimmen"},version:{bitmagnet_version:"bitmagnet Version {{version}}",unknown:"unbekannt"}};var Ze={content_types:{plural:{all:"All",audiobook:"Audiobooks",comic:"Comics",ebook:"E-Books",movie:"Movies",music:"Music",null:"Unknown",software:"Software",tv_show:"TV Shows",xxx:"XXX"},singular:{audiobook:"Audiobook",comic:"Comic",ebook:"E-Book",movie:"Movie",music:"Music",null:"Unknown",software:"Software",tv_show:"TV Show",xxx:"XXX"}},dashboard:{event:{created:"Created",failed:"Failed",processed:"Processed",updated:"Updated"},interval:{all:"All",days:"Days",days_1:"1 day",hours:"Hours",hours_1:"1 hour",hours_12:"12 hours",hours_6:"6 hours",minutes:"Minutes",minutes_1:"1 minute",minutes_15:"15 minutes",minutes_30:"30 minutes",minutes_5:"5 minutes",off:"Off",seconds_10:"10 seconds",seconds_30:"30 seconds",weeks_1:"1 week"},metrics:{event:"Event",resolution:"Resolution",throughput:"Throughput",timeframe:"Timeframe"},queues:{created:"Created",created_at:"Created at",enqueue_jobs:"Enqueue jobs",enqueue_torrent_processing_batch:"Enqueue Torrent Processing Batch",failed:"Failed",force_rematch:"Force rematch of already matched content",jobs_enqueued:"Jobs enqueued",latency:"Latency",match_content_by_external_api_search:"Match content by external API search",match_content_by_local_search:"Match content by local search",payload:"Payload",pending:"Pending",priority:"Priority",process_orphaned_torrents_only:"Process orphaned torrents only",processed:"Processed",purge_jobs:"Purge jobs",purge_queue_jobs:"Purge queue jobs",queue:"Queue",queue_purged:"Queue purged",queues:"Queues",ran_at:"Ran at",retry:"Retry",total_counts_by_status:"Total counts by status"}},facets:{content_type:"Content Type",file_type:"File Type",genre:"Genre",language:"Language",queue:"Queue",status:"Status",torrent_source:"Torrent Source",torrent_tag:"Torrent Tag",video_resolution:"Video Resolution",video_source:"Video Source"},file_types:{archive:"Archive",audio:"Audio",data:"Data",document:"Document",image:"Image",software:"Software",subtitles:"Subtitles",unknown:"Unknown",video:"Video"},general:{all:"All",dismiss:"Dismiss",error:"Error",none:"None",refresh:"Refresh",status:"Status"},health:{bitmagnet_is_status:"bitmagnet is {{status}}",check_failed_with_error:"Check failed with error",component:"Component",components:{dht:"DHT",postgres:"Postgres",tmdb:"TMDB"},dismiss:"Dismiss",error:"Error",status:"Status",statuses:{degraded:"Degraded",down:"Down",error:"Error",inactive:"Inactive",started:"Started",unknown:"Pending",up:"Up"},summary:"Health summary",worker:"Worker",workers:{dht_crawler:"DHT crawler",http_server:"HTTP server",queue_server:"Queue server"}},languages:{af:"Afrikaans",ar:"Arabic",az:"Azerbaijani",be:"Belarusian",bg:"Bulgarian",bs:"Bosnian",ca:"Catalan",ce:"Chechen",co:"Corsican",cs:"Czech",cy:"Welsh",da:"Danish",de:"German",el:"Greek",en:"English",es:"Spanish",et:"Estonian",eu:"Basque",fa:"Persian",fi:"Finnish",fr:"French",he:"Hebrew",hi:"Hindi",hr:"Croatian",hu:"Hungarian",hy:"Armenian",id:"Indonesian",is:"Icelandic",it:"Italian",ja:"Japanese",ka:"Georgian",ko:"Korean",ku:"Kurdish",lt:"Lithuanian",lv:"Latvian",mi:"Maori",mk:"Macedonian",ml:"Malayalam",mn:"Mongolian",ms:"Malay",mt:"Maltese",nl:"Dutch",no:"Norwegian",pl:"Polish",pt:"Portuguese",ro:"Romanian",ru:"Russian",sa:"Sanskrit",sk:"Slovak",sl:"Slovenian",sm:"Samoan",so:"Somali",sr:"Serbian",sv:"Swedish",ta:"Tamil",th:"Thai",tr:"Turkish",uk:"Ukrainian",vi:"Vietnamese",yi:"Yiddish",zh:"Chinese",zu:"Zulu"},layout:{bitmagnet_on_service:"bitmagnet on {{service}}",change_theme:"Change theme",external_links:"External links",sponsor:"Sponsor",support_bitmagnet:"Support bitmagnet",translate:"Translate"},paginator:{first_page:"First page",items_per_page:"Items per page",last_page:"Last page",next_page:"Next page",previous_page:"Previous page",x_to_y:"{{x}} to {{y}}",x_to_y_of_y:"__missing__",x_to_y_of_z:"{{x}} to {{y}} of {{z}}"},routes:{admin:"Admin",dashboard:"Dashboard",home:"Home",jobs:"Jobs",queues:"Queues",torrents:"Torrents",visualize:"Visualize"},torrents:{clear_search:"Clear Search",copy:"Copy",copy_to_clipboard:"Copy to clipboard",delete:"Delete",delete_action_cannot_be_undone:"This action cannot be undone",delete_are_you_sure:"Are you sure you want to delete this torrent?",deselect_all:"Deselect All",edit_tags:"Edit tags",episodes:"Episodes",external_links:"External links",file_index:"File index",file_path:"File path",file_size:"File size",file_type:"File type",files:"Files",files_count_n:"{{count}} files",files_no_info:"No files information available",files_single:"Single file",genres:"Genres",info_hash:"Info hash",info_hashes:"Info hashes",languages:"Languages",leechers:"Leechers",magnet:"Magnet",magnet_links:"Magnet links",new_tag:"New tag",order_by:"Order by",order_direction_toggle:"Toggle direction",ordering:{files_count:"Files count",info_hash:"Info hash",leechers:"Leechers",name:"Name",published_at:"Published at",relevance:"Relevance",seeders:"Seeders",size:"Size",updated_at:"Updated at"},original_release_date:"Original release date",permalink:"Permalink",poster:"Poster",published:"Published",rating:"Rating",refresh:"Refresh results",s_l:"S / L",search:"Search",seeders:"Seeders",select_all:"Select All",showing_x_of_y_files:"Showing {{x}} of {{y}} files",size:"Size",source:"Torrent Source",summary:"Summary",title:"Title",toggle_drawer:"Toggle Drawer",votes_count_n:"{{count}} votes"},version:{bitmagnet_version:"bitmagnet version {{version}}",unknown:"unknown"}};var $e={content_types:{plural:{all:"Todos",audiobook:"Audiolibros",comic:"C\xF3mics",ebook:"E-Libros",movie:"Pel\xEDculas",music:"M\xFAsica",null:"Desconocido",software:"Software",tv_show:"Programas de TV",xxx:"XXX"},singular:{audiobook:"Audiolibro",comic:"C\xF3mic",ebook:"E-Libro",movie:"Pel\xEDcula",music:"M\xFAsica",null:"Desconocido",software:"Software",tv_show:"Programa de TV",xxx:"XXX"}},dashboard:{event:{created:"Creado",failed:"Fallido",processed:"Procesado",updated:"Actualizado"},interval:{all:"Todos",days:"D\xEDas",days_1:"1 d\xEDa",hours:"Horas",hours_1:"1 hora",hours_12:"12 horas",hours_6:"6 horas",minutes:"Minutos",minutes_1:"1 minuto",minutes_15:"15 minutos",minutes_30:"30 minutos",minutes_5:"5 minutos",off:"Apagado",seconds_10:"10 segundos",seconds_30:"30 segundos",weeks_1:"1 semana"},metrics:{event:"Evento",resolution:"Resoluci\xF3n",throughput:"Rendimiento",timeframe:"Periodo de tiempo"},queues:{created:"Creado",created_at:"Creado en",enqueue_jobs:"Encolar trabajos",enqueue_torrent_processing_batch:"Encolar lote de procesamiento de torrents",failed:"Fallido",force_rematch:"Forzar nueva coincidencia de contenido ya coincidente",jobs_enqueued:"Trabajos encolados",latency:"Latencia",match_content_by_external_api_search:"Coincidir contenido por b\xFAsqueda de API externa",match_content_by_local_search:"Coincidir contenido por b\xFAsqueda local",payload:"Carga \xFAtil",pending:"Pendiente",priority:"Prioridad",process_orphaned_torrents_only:"Procesar solo torrents hu\xE9rfanos",processed:"Procesado",purge_jobs:"Purgar trabajos",purge_queue_jobs:"Purgar trabajos de la cola",queue:"Cola",queue_purged:"Cola purgada",queues:"Colas",ran_at:"Ejecutado en",retry:"Reintentar",total_counts_by_status:"Recuento total por estado"}},facets:{content_type:"Tipo de contenido",file_type:"Tipo de archivo",genre:"G\xE9nero",language:"Idioma",queue:"Cola",status:"Estado",torrent_source:"Fuente del torrent",torrent_tag:"Etiqueta del torrent",video_resolution:"Resoluci\xF3n de video",video_source:"Fuente de video"},file_types:{archive:"Archivo",audio:"Audio",data:"Datos",document:"Documento",image:"Imagen",software:"Software",subtitles:"Subt\xEDtulos",unknown:"Desconocido",video:"Video"},general:{all:"Todos",dismiss:"Descartar",error:"Error",none:"Ninguno",refresh:"Actualizar",status:"Estado"},health:{bitmagnet_is_status:"bitmagnet est\xE1 {{status}}",check_failed_with_error:"La verificaci\xF3n fall\xF3 con error",component:"Componente",components:{dht:"DHT",postgres:"Postgres",tmdb:"TMDB"},dismiss:"Descartar",error:"Error",status:"Estado",statuses:{degraded:"Degradado",down:"Ca\xEDdo",error:"Error",inactive:"Inactivo",started:"Iniciado",unknown:"Pendiente",up:"Activo"},summary:"Resumen de salud",worker:"Trabajador",workers:{dht_crawler:"Rastreador DHT",http_server:"Servidor HTTP",queue_server:"Servidor de colas"}},languages:{af:"Afrik\xE1ans",ar:"\xC1rabe",az:"Azerbaiyano",be:"Bielorruso",bg:"B\xFAlgaro",bs:"Bosnio",ca:"Catal\xE1n",ce:"Checheno",co:"Corso",cs:"Checo",cy:"Gal\xE9s",da:"Dan\xE9s",de:"Alem\xE1n",el:"Griego",en:"Ingl\xE9s",es:"Espa\xF1ol",et:"Estonio",eu:"Vasco",fa:"Persa",fi:"Finland\xE9s",fr:"Franc\xE9s",he:"Hebreo",hi:"Hindi",hr:"Croata",hu:"H\xFAngaro",hy:"Armenio",id:"Indonesio",is:"Island\xE9s",it:"Italiano",ja:"Japon\xE9s",ka:"Georgiano",ko:"Coreano",ku:"Kurdo",lt:"Lituano",lv:"Let\xF3n",mi:"Maor\xED",mk:"Macedonio",ml:"Malayalam",mn:"Mongol",ms:"Malayo",mt:"Malt\xE9s",nl:"Neerland\xE9s",no:"Noruego",pl:"Polaco",pt:"Portugu\xE9s",ro:"Rumano",ru:"Ruso",sa:"S\xE1nscrito",sk:"Eslovaco",sl:"Esloveno",sm:"Samoano",so:"Somal\xED",sr:"Serbio",sv:"Sueco",ta:"Tamil",th:"Tailand\xE9s",tr:"Turco",uk:"Ucraniano",vi:"Vietnamita",yi:"Yidis",zh:"Chino",zu:"Zul\xFA"},layout:{bitmagnet_on_service:"bitmagnet en {{service}}",change_theme:"Cambiar tema",external_links:"Enlaces externos",sponsor:"Patrocinador",support_bitmagnet:"Apoyar bitmagnet",translate:"Traducir"},paginator:{first_page:"Primera p\xE1gina",items_per_page:"Elementos por p\xE1gina",last_page:"\xDAltima p\xE1gina",next_page:"P\xE1gina siguiente",previous_page:"P\xE1gina anterior",x_to_y:"{{x}} a {{y}}",x_to_y_of_y:"__faltante__",x_to_y_of_z:"{{x}} a {{y}} de {{z}}"},routes:{admin:"Admin",dashboard:"Tablero",home:"Inicio",jobs:"Trabajos",queues:"Colas",torrents:"Torrents",visualize:"Visualizar"},torrents:{clear_search:"Borrar b\xFAsqueda",copy:"Copiar",copy_to_clipboard:"Copiar al portapapeles",delete:"Eliminar",delete_action_cannot_be_undone:"Esta acci\xF3n no se puede deshacer",delete_are_you_sure:"\xBFEst\xE1 seguro de que desea eliminar este torrent?",deselect_all:"Deseleccionar todo",edit_tags:"Editar etiquetas",episodes:"Episodios",external_links:"Enlaces externos",file_index:"\xCDndice de archivos",file_path:"Ruta del archivo",file_size:"Tama\xF1o del archivo",file_type:"Tipo de archivo",files:"Archivos",files_count_n:"{{count}} archivos",files_no_info:"No hay informaci\xF3n de archivos disponible",files_single:"Archivo \xFAnico",genres:"G\xE9neros",info_hash:"Hash de informaci\xF3n",info_hashes:"Hashes de informaci\xF3n",languages:"Idiomas",leechers:"Leechers",magnet:"Magnet",magnet_links:"Enlaces Magnet",new_tag:"Nueva etiqueta",order_by:"Ordenar por",order_direction_toggle:"Alternar direcci\xF3n",ordering:{files_count:"Recuento de archivos",info_hash:"Hash de informaci\xF3n",leechers:"Leechers",name:"Nombre",published_at:"Publicado en",relevance:"Relevancia",seeders:"Seeders",size:"Tama\xF1o",updated_at:"Actualizado en"},original_release_date:"Fecha de lanzamiento original",permalink:"Enlace permanente",poster:"P\xF3ster",published:"Publicado",rating:"Calificaci\xF3n",refresh:"Actualizar resultados",s_l:"S / L",search:"Buscar",seeders:"Seeders",select_all:"Seleccionar todo",showing_x_of_y_files:"Mostrando {{x}} de {{y}} archivos",size:"Tama\xF1o",source:"Fuente del torrent",summary:"Resumen",title:"T\xEDtulo",toggle_drawer:"Alternar caj\xF3n",votes_count_n:"{{count}} votos"},version:{bitmagnet_version:"versi\xF3n de bitmagnet {{version}}",unknown:"desconocido"}};var et={content_types:{plural:{all:"Tous",audiobook:"Livres audio",comic:"Bandes dessin\xE9es",ebook:"E-livres",movie:"Films",music:"Musique",null:"Inconnu",software:"Logiciels",tv_show:"S\xE9ries TV",xxx:"XXX"},singular:{audiobook:"Livre audio",comic:"Bande dessin\xE9e",ebook:"E-livre",movie:"Film",music:"Musique",null:"Inconnu",software:"Logiciel",tv_show:"S\xE9rie TV",xxx:"XXX"}},dashboard:{event:{created:"Cr\xE9\xE9",failed:"\xC9chou\xE9",processed:"Trait\xE9",updated:"Mis \xE0 jour"},interval:{all:"Tous",days:"Jours",days_1:"1 jour",hours:"Heures",hours_1:"1 heure",hours_12:"12 heures",hours_6:"6 heures",minutes:"Minutes",minutes_1:"1 minute",minutes_15:"15 minutes",minutes_30:"30 minutes",minutes_5:"5 minutes",off:"D\xE9sactiv\xE9",seconds_10:"10 secondes",seconds_30:"30 secondes",weeks_1:"1 semaine"},metrics:{event:"\xC9v\xE9nement",resolution:"R\xE9solution",throughput:"D\xE9bit",timeframe:"P\xE9riode"},queues:{created:"Cr\xE9\xE9",created_at:"Cr\xE9\xE9 \xE0",enqueue_jobs:"Enfilez les t\xE2ches",enqueue_torrent_processing_batch:"Enfilez le traitement des torrents",failed:"\xC9chou\xE9",force_rematch:"Forcer le rematch du contenu d\xE9j\xE0 appari\xE9",jobs_enqueued:"T\xE2ches enfil\xE9es",latency:"Latence",match_content_by_external_api_search:"Apparier le contenu par recherche API externe",match_content_by_local_search:"Apparier le contenu par recherche locale",payload:"Charge utile",pending:"En attente",priority:"Priorit\xE9",process_orphaned_torrents_only:"Traiter uniquement les torrents orphelins",processed:"Trait\xE9",purge_jobs:"Purger les t\xE2ches",purge_queue_jobs:"Purger les t\xE2ches de la file d'attente",queue:"File d'attente",queue_purged:"File d'attente purg\xE9e",queues:"Files d'attente",ran_at:"Ex\xE9cut\xE9 \xE0",retry:"R\xE9essayer",total_counts_by_status:"Totaux par statut"}},facets:{content_type:"Type de contenu",file_type:"Type de fichier",genre:"Genre",language:"Langue",queue:"File d'attente",status:"Statut",torrent_source:"Source du torrent",torrent_tag:"Tag du torrent",video_resolution:"R\xE9solution vid\xE9o",video_source:"Source vid\xE9o"},file_types:{archive:"Archive",audio:"Audio",data:"Donn\xE9es",document:"Document",image:"Image",software:"Logiciel",subtitles:"Sous-titres",unknown:"Inconnu",video:"Vid\xE9o"},general:{all:"Tous",dismiss:"Rejeter",error:"Erreur",none:"Aucun",refresh:"Rafra\xEEchir",status:"Statut"},health:{bitmagnet_is_status:"bitmagnet est {{status}}",check_failed_with_error:"V\xE9rification \xE9chou\xE9e avec erreur",component:"Composant",components:{dht:"DHT",postgres:"Postgres",tmdb:"TMDB"},dismiss:"Rejeter",error:"Erreur",status:"Statut",statuses:{degraded:"D\xE9grad\xE9",down:"Hors ligne",error:"Erreur",inactive:"Inactif",started:"D\xE9marr\xE9",unknown:"En attente",up:"En ligne"},summary:"R\xE9sum\xE9 de la sant\xE9",worker:"Travailleur",workers:{dht_crawler:"Explorateur DHT",http_server:"Serveur HTTP",queue_server:"Serveur de file d'attente"}},languages:{af:"Afrikaans",ar:"Arabe",az:"Azerba\xEFdjanais",be:"Bi\xE9lorusse",bg:"Bulgare",bs:"Bosniaque",ca:"Catalan",ce:"Tch\xE9tch\xE8ne",co:"Corse",cs:"Tch\xE8que",cy:"Gallois",da:"Danois",de:"Allemand",el:"Grec",en:"Anglais",es:"Espagnol",et:"Estonien",eu:"Basque",fa:"Persan",fi:"Finnois",fr:"Fran\xE7ais",he:"H\xE9breu",hi:"Hindi",hr:"Croate",hu:"Hongrois",hy:"Arm\xE9nien",id:"Indon\xE9sien",is:"Islandais",it:"Italien",ja:"Japonais",ka:"G\xE9orgien",ko:"Cor\xE9en",ku:"Kurde",lt:"Lituanien",lv:"Letton",mi:"Maori",mk:"Mac\xE9donien",ml:"Malayalam",mn:"Mongol",ms:"Malais",mt:"Maltais",nl:"N\xE9erlandais",no:"Norv\xE9gien",pl:"Polonais",pt:"Portugais",ro:"Roumain",ru:"Russe",sa:"Sanskrit",sk:"Slovaque",sl:"Slov\xE8ne",sm:"Samoan",so:"Somali",sr:"Serbe",sv:"Su\xE9dois",ta:"Tamoul",th:"Tha\xEF",tr:"Turc",uk:"Ukrainien",vi:"Vietnamien",yi:"Yiddish",zh:"Chinois",zu:"Zoulou"},layout:{bitmagnet_on_service:"bitmagnet sur {{service}}",change_theme:"Changer de th\xE8me",external_links:"Liens externes",sponsor:"Sponsor",support_bitmagnet:"Soutenir bitmagnet",translate:"Traduire"},paginator:{first_page:"Premi\xE8re page",items_per_page:"Articles par page",last_page:"Derni\xE8re page",next_page:"Page suivante",previous_page:"Page pr\xE9c\xE9dente",x_to_y:"{{x}} \xE0 {{y}}",x_to_y_of_y:"__manquant__",x_to_y_of_z:"{{x}} \xE0 {{y}} de {{z}}"},routes:{admin:"Admin",dashboard:"Tableau de bord",home:"Accueil",jobs:"T\xE2ches",queues:"Files d'attente",torrents:"Torrents",visualize:"Visualiser"},torrents:{clear_search:"Effacer la recherche",copy:"Copier",copy_to_clipboard:"Copier dans le presse-papiers",delete:"Supprimer",delete_action_cannot_be_undone:"Cette action ne peut pas \xEAtre annul\xE9e",delete_are_you_sure:"\xCAtes-vous s\xFBr de vouloir supprimer ce torrent?",deselect_all:"Tout d\xE9s\xE9lectionner",edit_tags:"Modifier les tags",episodes:"\xC9pisodes",external_links:"Liens externes",file_index:"Index de fichier",file_path:"Chemin de fichier",file_size:"Taille de fichier",file_type:"Type de fichier",files:"Fichiers",files_count_n:"{{count}} fichiers",files_no_info:"Aucune information sur les fichiers disponible",files_single:"Fichier unique",genres:"Genres",info_hash:"Hash d'info",info_hashes:"Hashes d'info",languages:"Langues",leechers:"Leechers",magnet:"Magnet",magnet_links:"Liens Magnet",new_tag:"Nouveau tag",order_by:"Trier par",order_direction_toggle:"Basculer la direction",ordering:{files_count:"Nombre de fichiers",info_hash:"Hash d'info",leechers:"Leechers",name:"Nom",published_at:"Publi\xE9 \xE0",relevance:"Pertinence",seeders:"Seeders",size:"Taille",updated_at:"Mis \xE0 jour \xE0"},original_release_date:"Date de sortie originale",permalink:"Permalien",poster:"Affiche",published:"Publi\xE9",rating:"\xC9valuation",refresh:"Rafra\xEEchir les r\xE9sultats",s_l:"S / L",search:"Rechercher",seeders:"Seeders",select_all:"Tout s\xE9lectionner",showing_x_of_y_files:"Affichage de {{x}} sur {{y}} fichiers",size:"Taille",source:"Source du torrent",summary:"R\xE9sum\xE9",title:"Titre",toggle_drawer:"Basculer le tiroir",votes_count_n:"{{count}} votes"},version:{bitmagnet_version:"version bitmagnet {{version}}",unknown:"inconnu"}};var tt={content_types:{plural:{all:"\u0938\u092D\u0940",audiobook:"\u0911\u0921\u093F\u092F\u094B\u092C\u0941\u0915\u094D\u0938",comic:"\u0915\u0949\u092E\u093F\u0915\u094D\u0938",ebook:"\u0908-\u092C\u0941\u0915\u094D\u0938",movie:"\u092B\u093C\u093F\u0932\u094D\u092E\u0947\u0902",music:"\u0938\u0902\u0917\u0940\u0924",null:"\u0905\u091C\u094D\u091E\u093E\u0924",software:"\u0938\u0949\u092B\u093C\u094D\u091F\u0935\u0947\u092F\u0930",tv_show:"\u091F\u0940\u0935\u0940 \u0936\u094B",xxx:"XXX"},singular:{audiobook:"\u0911\u0921\u093F\u092F\u094B\u092C\u0941\u0915",comic:"\u0915\u0949\u092E\u093F\u0915",ebook:"\u0908-\u092C\u0941\u0915",movie:"\u092B\u093C\u093F\u0932\u094D\u092E",music:"\u0938\u0902\u0917\u0940\u0924",null:"\u0905\u091C\u094D\u091E\u093E\u0924",software:"\u0938\u0949\u092B\u093C\u094D\u091F\u0935\u0947\u092F\u0930",tv_show:"\u091F\u0940\u0935\u0940 \u0936\u094B",xxx:"XXX"}},dashboard:{event:{created:"\u092C\u0928\u093E\u092F\u093E \u0917\u092F\u093E",failed:"\u0905\u0938\u092B\u0932",processed:"\u092A\u094D\u0930\u0938\u0902\u0938\u094D\u0915\u0943\u0924",updated:"\u0905\u092A\u0921\u0947\u091F \u0915\u093F\u092F\u093E \u0917\u092F\u093E"},interval:{all:"\u0938\u092D\u0940",days:"\u0926\u093F\u0928",days_1:"1 \u0926\u093F\u0928",hours:"\u0918\u0902\u091F\u0947",hours_1:"1 \u0918\u0902\u091F\u093E",hours_12:"12 \u0918\u0902\u091F\u0947",hours_6:"6 \u0918\u0902\u091F\u0947",minutes:"\u092E\u093F\u0928\u091F",minutes_1:"1 \u092E\u093F\u0928\u091F",minutes_15:"15 \u092E\u093F\u0928\u091F",minutes_30:"30 \u092E\u093F\u0928\u091F",minutes_5:"5 \u092E\u093F\u0928\u091F",off:"\u092C\u0902\u0926",seconds_10:"10 \u0938\u0947\u0915\u0902\u0921",seconds_30:"30 \u0938\u0947\u0915\u0902\u0921",weeks_1:"1 \u0938\u092A\u094D\u0924\u093E\u0939"},metrics:{event:"\u0918\u091F\u0928\u093E",resolution:"\u0930\u093F\u091C\u093C\u0949\u0932\u094D\u092F\u0942\u0936\u0928",throughput:"\u0925\u094D\u0930\u0942\u092A\u0941\u091F",timeframe:"\u0938\u092E\u092F \u0938\u0940\u092E\u093E"},queues:{created:"\u092C\u0928\u093E\u092F\u093E \u0917\u092F\u093E",created_at:"\u092C\u0928\u093E\u092F\u093E \u0917\u092F\u093E \u0938\u092E\u092F",enqueue_jobs:"\u091C\u0949\u092C\u094D\u0938 \u0915\u094B \u0915\u0924\u093E\u0930 \u092E\u0947\u0902 \u0932\u0917\u093E\u090F\u0902",enqueue_torrent_processing_batch:"\u091F\u094B\u0930\u0947\u0902\u091F \u092A\u094D\u0930\u094B\u0938\u0947\u0938\u093F\u0902\u0917 \u092C\u0948\u091A \u0915\u0924\u093E\u0930 \u092E\u0947\u0902 \u0932\u0917\u093E\u090F\u0902",failed:"\u0905\u0938\u092B\u0932",force_rematch:"\u092A\u0939\u0932\u0947 \u0938\u0947 \u092E\u0947\u0932 \u0916\u093E\u0908 \u0938\u093E\u092E\u0917\u094D\u0930\u0940 \u0915\u094B \u092B\u093F\u0930 \u0938\u0947 \u092E\u093F\u0932\u093E\u090F\u0902",jobs_enqueued:"\u091C\u0949\u092C\u094D\u0938 \u0915\u0924\u093E\u0930 \u092E\u0947\u0902 \u0932\u0917\u093E\u0908 \u0917\u0908\u0902",latency:"\u0932\u0947\u091F\u0947\u0902\u0938\u0940",match_content_by_external_api_search:"\u092C\u093E\u0939\u0930\u0940 API \u0916\u094B\u091C \u0938\u0947 \u0938\u093E\u092E\u0917\u094D\u0930\u0940 \u0915\u093E \u092E\u093F\u0932\u093E\u0928 \u0915\u0930\u0947\u0902",match_content_by_local_search:"\u0938\u094D\u0925\u093E\u0928\u0940\u092F \u0916\u094B\u091C \u0938\u0947 \u0938\u093E\u092E\u0917\u094D\u0930\u0940 \u0915\u093E \u092E\u093F\u0932\u093E\u0928 \u0915\u0930\u0947\u0902",payload:"\u092A\u0947\u0932\u094B\u0921",pending:"\u092C\u0915\u093E\u092F\u093E",priority:"\u092A\u094D\u0930\u093E\u0925\u092E\u093F\u0915\u0924\u093E",process_orphaned_torrents_only:"\u0915\u0947\u0935\u0932 \u0905\u0928\u093E\u0925 \u091F\u094B\u0930\u0947\u0902\u091F\u094D\u0938 \u0915\u094B \u092A\u094D\u0930\u094B\u0938\u0947\u0938 \u0915\u0930\u0947\u0902",processed:"\u092A\u094D\u0930\u0938\u0902\u0938\u094D\u0915\u0943\u0924",purge_jobs:"\u091C\u0949\u092C\u094D\u0938 \u0915\u094B \u0938\u093E\u092B\u093C \u0915\u0930\u0947\u0902",purge_queue_jobs:"\u0915\u0924\u093E\u0930 \u0915\u0947 \u091C\u0949\u092C\u094D\u0938 \u0915\u094B \u0938\u093E\u092B\u093C \u0915\u0930\u0947\u0902",queue:"\u0915\u0924\u093E\u0930",queue_purged:"\u0915\u0924\u093E\u0930 \u0915\u094B \u0938\u093E\u092B\u093C \u0915\u093F\u092F\u093E \u0917\u092F\u093E",queues:"\u0915\u0924\u093E\u0930\u0947\u0902",ran_at:"\u091A\u0932\u093E\u092F\u093E \u0917\u092F\u093E \u0938\u092E\u092F",retry:"\u092A\u0941\u0928\u0903 \u092A\u094D\u0930\u092F\u093E\u0938 \u0915\u0930\u0947\u0902",total_counts_by_status:"\u0938\u094D\u0925\u093F\u0924\u093F \u0926\u094D\u0935\u093E\u0930\u093E \u0915\u0941\u0932 \u0917\u0923\u0928\u093E"}},facets:{content_type:"\u0938\u093E\u092E\u0917\u094D\u0930\u0940 \u092A\u094D\u0930\u0915\u093E\u0930",file_type:"\u092B\u093C\u093E\u0907\u0932 \u092A\u094D\u0930\u0915\u093E\u0930",genre:"\u0936\u0948\u0932\u0940",language:"\u092D\u093E\u0937\u093E",queue:"\u0915\u0924\u093E\u0930",status:"\u0938\u094D\u0925\u093F\u0924\u093F",torrent_source:"\u091F\u094B\u0930\u0947\u0902\u091F \u0938\u094D\u0930\u094B\u0924",torrent_tag:"\u091F\u094B\u0930\u0947\u0902\u091F \u091F\u0948\u0917",video_resolution:"\u0935\u0940\u0921\u093F\u092F\u094B \u0930\u093F\u091C\u093C\u0949\u0932\u094D\u092F\u0942\u0936\u0928",video_source:"\u0935\u0940\u0921\u093F\u092F\u094B \u0938\u094D\u0930\u094B\u0924"},file_types:{archive:"\u0906\u0930\u094D\u0915\u093E\u0907\u0935",audio:"\u0911\u0921\u093F\u092F\u094B",data:"\u0921\u0947\u091F\u093E",document:"\u0926\u0938\u094D\u0924\u093E\u0935\u0947\u091C\u093C",image:"\u091B\u0935\u093F",software:"\u0938\u0949\u092B\u093C\u094D\u091F\u0935\u0947\u092F\u0930",subtitles:"\u0909\u092A\u0936\u0940\u0930\u094D\u0937\u0915",unknown:"\u0905\u091C\u094D\u091E\u093E\u0924",video:"\u0935\u0940\u0921\u093F\u092F\u094B"},general:{all:"\u0938\u092D\u0940",dismiss:"\u0916\u093E\u0930\u093F\u091C \u0915\u0930\u0947\u0902",error:"\u0924\u094D\u0930\u0941\u091F\u093F",none:"\u0915\u094B\u0908 \u0928\u0939\u0940\u0902",refresh:"\u0924\u093E\u091C\u093C\u093E \u0915\u0930\u0947\u0902",status:"\u0938\u094D\u0925\u093F\u0924\u093F"},health:{bitmagnet_is_status:"bitmagnet {{status}} \u0939\u0948",check_failed_with_error:"\u0924\u094D\u0930\u0941\u091F\u093F \u0915\u0947 \u0938\u093E\u0925 \u091C\u093E\u0902\u091A \u0935\u093F\u092B\u0932",component:"\u0918\u091F\u0915",components:{dht:"DHT",postgres:"Postgres",tmdb:"TMDB"},dismiss:"\u0916\u093E\u0930\u093F\u091C \u0915\u0930\u0947\u0902",error:"\u0924\u094D\u0930\u0941\u091F\u093F",status:"\u0938\u094D\u0925\u093F\u0924\u093F",statuses:{degraded:"\u0915\u094D\u0937\u0940\u0923",down:"\u092C\u0902\u0926",error:"\u0924\u094D\u0930\u0941\u091F\u093F",inactive:"\u0928\u093F\u0937\u094D\u0915\u094D\u0930\u093F\u092F",started:"\u0936\u0941\u0930\u0942 \u0915\u093F\u092F\u093E \u0917\u092F\u093E",unknown:"\u0932\u0902\u092C\u093F\u0924",up:"\u091A\u093E\u0932\u0942"},summary:"\u0938\u094D\u0935\u093E\u0938\u094D\u0925\u094D\u092F \u0938\u093E\u0930\u093E\u0902\u0936",worker:"\u0915\u093E\u0930\u094D\u092F\u0915\u0930\u094D\u0924\u093E",workers:{dht_crawler:"DHT \u0915\u094D\u0930\u0949\u0932\u0930",http_server:"HTTP \u0938\u0930\u094D\u0935\u0930",queue_server:"\u0915\u0924\u093E\u0930 \u0938\u0930\u094D\u0935\u0930"}},languages:{af:"\u0905\u092B\u094D\u0930\u0940\u0915\u0940",ar:"\u0905\u0930\u092C\u0940",az:"\u0905\u091C\u093C\u0947\u0930\u0940",be:"\u092C\u0947\u0932\u093E\u0930\u0942\u0938\u0940",bg:"\u092C\u0941\u0932\u094D\u0917\u093E\u0930\u093F\u092F\u093E\u0908",bs:"\u092C\u094B\u0938\u094D\u0928\u093F\u092F\u093E\u0908",ca:"\u0915\u0948\u091F\u0932\u0928",ce:"\u091A\u0947\u091A\u0947\u0928",co:"\u0915\u094B\u0930\u094D\u0938\u093F\u0915\u0928",cs:"\u091A\u0947\u0915",cy:"\u0935\u0947\u0932\u094D\u0936",da:"\u0921\u0947\u0928\u093F\u0936",de:"\u091C\u0930\u094D\u092E\u0928",el:"\u0917\u094D\u0930\u0940\u0915",en:"\u0905\u0902\u0917\u094D\u0930\u0947\u091C\u0940",es:"\u0938\u094D\u092A\u0948\u0928\u093F\u0936",et:"\u090F\u0938\u094D\u0924\u094B\u0928\u093F\u092F\u093E\u0908",eu:"\u092C\u093E\u0938\u094D\u0915",fa:"\u092B\u093E\u0930\u0938\u0940",fi:"\u092B\u093C\u093F\u0928\u093F\u0936",fr:"\u092B\u094D\u0930\u0947\u0902\u091A",he:"\u0939\u093F\u092C\u094D\u0930\u0942",hi:"\u0939\u093F\u0902\u0926\u0940",hr:"\u0915\u094D\u0930\u094B\u090F\u0936\u093F\u092F\u093E\u0908",hu:"\u0939\u0902\u0917\u0947\u0930\u093F\u092F\u0928",hy:"\u0906\u0930\u094D\u092E\u0947\u0928\u093F\u092F\u093E\u0908",id:"\u0907\u0902\u0921\u094B\u0928\u0947\u0936\u093F\u092F\u093E\u0908",is:"\u0906\u0907\u0938\u0932\u0948\u0902\u0921\u093F\u0915",it:"\u0907\u0924\u093E\u0932\u0935\u0940",ja:"\u091C\u093E\u092A\u093E\u0928\u0940",ka:"\u091C\u0949\u0930\u094D\u091C\u093F\u092F\u093E\u0908",ko:"\u0915\u094B\u0930\u093F\u092F\u093E\u0908",ku:"\u0915\u0941\u0930\u094D\u0926\u0940",lt:"\u0932\u093F\u0925\u0941\u0906\u0928\u093F\u092F\u093E\u0908",lv:"\u0932\u093E\u0924\u0935\u093F\u092F\u093E\u0908",mi:"\u092E\u093E\u0913\u0930\u0940",mk:"\u092E\u0948\u0938\u093F\u0921\u094B\u0928\u093F\u092F\u093E\u0908",ml:"\u092E\u0932\u092F\u093E\u0932\u092E",mn:"\u092E\u0902\u0917\u094B\u0932\u093F\u092F\u093E\u0908",ms:"\u092E\u0932\u092F",mt:"\u092E\u093E\u0932\u094D\u091F\u0940\u091C\u093C",nl:"\u0921\u091A",no:"\u0928\u0949\u0930\u094D\u0935\u0947\u091C\u093F\u092F\u0928",pl:"\u092A\u094B\u0932\u093F\u0936",pt:"\u092A\u0941\u0930\u094D\u0924\u0917\u093E\u0932\u0940",ro:"\u0930\u094B\u092E\u093E\u0928\u093F\u092F\u093E\u0908",ru:"\u0930\u0942\u0938\u0940",sa:"\u0938\u0902\u0938\u094D\u0915\u0943\u0924",sk:"\u0938\u094D\u0932\u094B\u0935\u093E\u0915",sl:"\u0938\u094D\u0932\u094B\u0935\u0947\u0928\u093F\u092F\u093E\u0908",sm:"\u0938\u093E\u092E\u094B\u0928",so:"\u0938\u094B\u092E\u093E\u0932\u0940",sr:"\u0938\u0930\u094D\u092C\u093F\u092F\u093E\u0908",sv:"\u0938\u094D\u0935\u0940\u0921\u093F\u0936",ta:"\u0924\u092E\u093F\u0932",th:"\u0925\u093E\u0908",tr:"\u0924\u0941\u0930\u094D\u0915\u0940",uk:"\u092F\u0942\u0915\u094D\u0930\u0947\u0928\u0940",vi:"\u0935\u093F\u092F\u0924\u0928\u093E\u092E\u0940",yi:"\u092F\u093F\u0926\u094D\u0926\u093F\u0936",zh:"\u091A\u0940\u0928\u0940",zu:"\u091C\u093C\u0941\u0932\u0941"},layout:{bitmagnet_on_service:"{{service}} \u092A\u0930 bitmagnet",change_theme:"\u0925\u0940\u092E \u092C\u0926\u0932\u0947\u0902",external_links:"\u092C\u093E\u0939\u0930\u0940 \u0932\u093F\u0902\u0915",sponsor:"\u092A\u094D\u0930\u093E\u092F\u094B\u091C\u0915",support_bitmagnet:"bitmagnet \u0915\u094B \u0938\u092E\u0930\u094D\u0925\u0928 \u0926\u0947\u0902",translate:"\u0905\u0928\u0941\u0935\u093E\u0926 \u0915\u0930\u0947\u0902"},paginator:{first_page:"\u092A\u0939\u0932\u093E \u092A\u0943\u0937\u094D\u0920",items_per_page:"\u092A\u094D\u0930\u0924\u093F \u092A\u0943\u0937\u094D\u0920 \u0906\u0907\u091F\u092E",last_page:"\u0905\u0902\u0924\u093F\u092E \u092A\u0943\u0937\u094D\u0920",next_page:"\u0905\u0917\u0932\u093E \u092A\u0943\u0937\u094D\u0920",previous_page:"\u092A\u093F\u091B\u0932\u093E \u092A\u0943\u0937\u094D\u0920",x_to_y:"{{x}} \u0938\u0947 {{y}} \u0924\u0915",x_to_y_of_z:"{{x}} \u0938\u0947 {{y}} \u0924\u0915 {{z}} \u092E\u0947\u0902"},routes:{admin:"\u092A\u094D\u0930\u0936\u093E\u0938\u0915",dashboard:"\u0921\u0948\u0936\u092C\u094B\u0930\u094D\u0921",home:"\u0939\u094B\u092E",jobs:"\u0928\u094C\u0915\u0930\u093F\u092F\u093E\u0902",queues:"\u0915\u0924\u093E\u0930\u0947\u0902",torrents:"\u091F\u094B\u0930\u0947\u0902\u091F\u094D\u0938",visualize:"\u0926\u0943\u0936\u094D\u092F \u0915\u0930\u0947\u0902"},torrents:{clear_search:"\u0916\u094B\u091C \u0938\u093E\u092B\u093C \u0915\u0930\u0947\u0902",copy:"\u0915\u0949\u092A\u0940 \u0915\u0930\u0947\u0902",copy_to_clipboard:"\u0915\u094D\u0932\u093F\u092A\u092C\u094B\u0930\u094D\u0921 \u092E\u0947\u0902 \u0915\u0949\u092A\u0940 \u0915\u0930\u0947\u0902",delete:"\u0939\u091F\u093E\u090F\u0902",delete_action_cannot_be_undone:"\u092F\u0939 \u0915\u094D\u0930\u093F\u092F\u093E \u092A\u0942\u0930\u094D\u0935\u0935\u0924 \u0928\u0939\u0940\u0902 \u0915\u0940 \u091C\u093E \u0938\u0915\u0924\u0940",delete_are_you_sure:"\u0915\u094D\u092F\u093E \u0906\u092A \u0935\u093E\u0915\u0908 \u0907\u0938 \u091F\u094B\u0930\u0947\u0902\u091F \u0915\u094B \u0939\u091F\u093E\u0928\u093E \u091A\u093E\u0939\u0924\u0947 \u0939\u0948\u0902?",deselect_all:"\u0938\u092D\u0940 \u0915\u094B \u0905\u091A\u092F\u0928\u093F\u0924 \u0915\u0930\u0947\u0902",edit_tags:"\u091F\u0948\u0917 \u0938\u0902\u092A\u093E\u0926\u093F\u0924 \u0915\u0930\u0947\u0902",episodes:"\u090F\u092A\u093F\u0938\u094B\u0921\u094D\u0938",external_links:"\u092C\u093E\u0939\u0930\u0940 \u0932\u093F\u0902\u0915",file_index:"\u092B\u093C\u093E\u0907\u0932 \u0938\u0942\u091A\u0915\u093E\u0902\u0915",file_path:"\u092B\u093C\u093E\u0907\u0932 \u092A\u0925",file_size:"\u092B\u093C\u093E\u0907\u0932 \u0906\u0915\u093E\u0930",file_type:"\u092B\u093C\u093E\u0907\u0932 \u092A\u094D\u0930\u0915\u093E\u0930",files:"\u092B\u093C\u093E\u0907\u0932\u0947\u0902",files_count_n:"{{count}} \u092B\u093C\u093E\u0907\u0932\u0947\u0902",files_no_info:"\u0915\u094B\u0908 \u092B\u093C\u093E\u0907\u0932 \u091C\u093E\u0928\u0915\u093E\u0930\u0940 \u0909\u092A\u0932\u092C\u094D\u0927 \u0928\u0939\u0940\u0902 \u0939\u0948",files_single:"\u090F\u0915\u0932 \u092B\u093C\u093E\u0907\u0932",genres:"\u0936\u0948\u0932\u093F\u092F\u093E\u0901",info_hash:"\u0938\u0942\u091A\u0928\u093E \u0939\u0948\u0936",info_hashes:"\u0938\u0942\u091A\u0928\u093E \u0939\u0948\u0936\u0947\u091C",languages:"\u092D\u093E\u0937\u093E\u090F\u0901",leechers:"\u0932\u0940\u091A\u0930\u094D\u0938",magnet:"\u092E\u0948\u0917\u094D\u0928\u0947\u091F",magnet_links:"\u092E\u0948\u0917\u094D\u0928\u0947\u091F \u0932\u093F\u0902\u0915",new_tag:"\u0928\u092F\u093E \u091F\u0948\u0917",order_by:"\u0915\u094D\u0930\u092E\u092C\u0926\u094D\u0927 \u0915\u0930\u0947\u0902",order_direction_toggle:"\u0926\u093F\u0936\u093E \u092C\u0926\u0932\u0947\u0902",ordering:{files_count:"\u092B\u093C\u093E\u0907\u0932\u094B\u0902 \u0915\u0940 \u0938\u0902\u0916\u094D\u092F\u093E",info_hash:"\u0938\u0942\u091A\u0928\u093E \u0939\u0948\u0936",leechers:"\u0932\u0940\u091A\u0930\u094D\u0938",name:"\u0928\u093E\u092E",published_at:"\u092A\u094D\u0930\u0915\u093E\u0936\u093F\u0924 \u0938\u092E\u092F",relevance:"\u092A\u094D\u0930\u093E\u0938\u0902\u0917\u093F\u0915\u0924\u093E",seeders:"\u0938\u0940\u0921\u0930\u094D\u0938",size:"\u0906\u0915\u093E\u0930",updated_at:"\u0905\u092A\u0921\u0947\u091F \u0938\u092E\u092F"},original_release_date:"\u092E\u0942\u0932 \u0930\u093F\u0932\u0940\u091C\u093C \u0924\u093F\u0925\u093F",permalink:"\u0938\u094D\u0925\u093E\u092F\u0940 \u0932\u093F\u0902\u0915",poster:"\u092A\u094B\u0938\u094D\u091F\u0930",published:"\u092A\u094D\u0930\u0915\u093E\u0936\u093F\u0924",rating:"\u0930\u0947\u091F\u093F\u0902\u0917",refresh:"\u092A\u0930\u093F\u0923\u093E\u092E \u0924\u093E\u091C\u093C\u093E \u0915\u0930\u0947\u0902",s_l:"S / L",search:"\u0916\u094B\u091C",seeders:"\u0938\u0940\u0921\u0930\u094D\u0938",select_all:"\u0938\u092D\u0940 \u0915\u093E \u091A\u092F\u0928 \u0915\u0930\u0947\u0902",showing_x_of_y_files:"{{x}} \u092E\u0947\u0902 \u0938\u0947 {{y}} \u092B\u093C\u093E\u0907\u0932\u0947\u0902 \u0926\u093F\u0916\u093E \u0930\u0939\u093E \u0939\u0948",size:"\u0906\u0915\u093E\u0930",source:"\u091F\u094B\u0930\u0947\u0902\u091F \u0938\u094D\u0930\u094B\u0924",summary:"\u0938\u093E\u0930\u093E\u0902\u0936",title:"\u0936\u0940\u0930\u094D\u0937\u0915",toggle_drawer:"\u0921\u094D\u0930\u0949\u0905\u0930 \u092C\u0926\u0932\u0947\u0902",votes_count_n:"{{count}} \u0935\u094B\u091F"},version:{bitmagnet_version:"bitmagnet \u0938\u0902\u0938\u094D\u0915\u0930\u0923 {{version}}",unknown:"\u0905\u091C\u094D\u091E\u093E\u0924"}};var at={content_types:{plural:{all:"\u3059\u3079\u3066",audiobook:"\u30AA\u30FC\u30C7\u30A3\u30AA\u30D6\u30C3\u30AF",comic:"\u30B3\u30DF\u30C3\u30AF",ebook:"\u96FB\u5B50\u66F8\u7C4D",movie:"\u6620\u753B",music:"\u97F3\u697D",null:"\u4E0D\u660E",software:"\u30BD\u30D5\u30C8\u30A6\u30A7\u30A2",tv_show:"\u30C6\u30EC\u30D3\u756A\u7D44",xxx:"\u30DD\u30EB\u30CE"},singular:{audiobook:"\u30AA\u30FC\u30C7\u30A3\u30AA\u30D6\u30C3\u30AF",comic:"\u30B3\u30DF\u30C3\u30AF",ebook:"\u96FB\u5B50\u66F8\u7C4D",movie:"\u6620\u753B",music:"\u97F3\u697D",null:"\u4E0D\u660E",software:"\u30BD\u30D5\u30C8\u30A6\u30A7\u30A2",tv_show:"\u30C6\u30EC\u30D3\u756A\u7D44",xxx:"\u30DD\u30EB\u30CE"}},dashboard:{event:{created:"\u4F5C\u6210\u6E08\u307F",failed:"\u5931\u6557",processed:"\u51E6\u7406\u6E08\u307F",updated:"\u66F4\u65B0\u6E08\u307F"},interval:{all:"\u3059\u3079\u3066",days:"\u65E5",days_1:"1\u65E5",hours:"\u6642\u9593",hours_1:"1\u6642\u9593",hours_12:"12\u6642\u9593",hours_6:"6\u6642\u9593",minutes:"\u5206",minutes_1:"1\u5206",minutes_15:"15\u5206",minutes_30:"30\u5206",minutes_5:"5\u5206",off:"\u30AA\u30D5",seconds_10:"10\u79D2",seconds_30:"30\u79D2",weeks_1:"1\u9031\u9593"},metrics:{event:"\u30A4\u30D9\u30F3\u30C8",resolution:"\u89E3\u50CF\u5EA6",throughput:"\u30B9\u30EB\u30FC\u30D7\u30C3\u30C8",timeframe:"\u671F\u9593"},queues:{created:"\u4F5C\u6210\u6E08\u307F",created_at:"\u4F5C\u6210\u65E5\u6642",enqueue_jobs:"\u30B8\u30E7\u30D6\u3092\u30AD\u30E5\u30FC\u306B\u5165\u308C\u308B",enqueue_torrent_processing_batch:"\u30C8\u30EC\u30F3\u30C8\u51E6\u7406\u30D0\u30C3\u30C1\u3092\u30AD\u30E5\u30FC\u306B\u5165\u308C\u308B",failed:"\u5931\u6557",force_rematch:"\u65E2\u306B\u4E00\u81F4\u3057\u305F\u30B3\u30F3\u30C6\u30F3\u30C4\u3092\u5F37\u5236\u7684\u306B\u518D\u4E00\u81F4\u3055\u305B\u308B",jobs_enqueued:"\u30AD\u30E5\u30FC\u306B\u8FFD\u52A0\u3055\u308C\u305F\u30B8\u30E7\u30D6",latency:"\u30EC\u30A4\u30C6\u30F3\u30B7",match_content_by_external_api_search:"\u5916\u90E8API\u691C\u7D22\u3067\u30B3\u30F3\u30C6\u30F3\u30C4\u3092\u4E00\u81F4\u3055\u305B\u308B",match_content_by_local_search:"\u30ED\u30FC\u30AB\u30EB\u691C\u7D22\u3067\u30B3\u30F3\u30C6\u30F3\u30C4\u3092\u4E00\u81F4\u3055\u305B\u308B",payload:"\u30DA\u30A4\u30ED\u30FC\u30C9",pending:"\u4FDD\u7559\u4E2D",priority:"\u512A\u5148\u9806\u4F4D",process_orphaned_torrents_only:"\u5B64\u7ACB\u3057\u305F\u30C8\u30EC\u30F3\u30C8\u306E\u307F\u51E6\u7406\u3059\u308B",processed:"\u51E6\u7406\u6E08\u307F",purge_jobs:"\u30B8\u30E7\u30D6\u3092\u524A\u9664",purge_queue_jobs:"\u30AD\u30E5\u30FC\u5185\u306E\u30B8\u30E7\u30D6\u3092\u524A\u9664",queue:"\u30AD\u30E5\u30FC",queue_purged:"\u30AD\u30E5\u30FC\u304C\u30AF\u30EA\u30A2\u3055\u308C\u307E\u3057\u305F",queues:"\u30AD\u30E5\u30FC",ran_at:"\u5B9F\u884C\u6642\u523B",retry:"\u518D\u8A66\u884C",total_counts_by_status:"\u30B9\u30C6\u30FC\u30BF\u30B9\u3054\u3068\u306E\u7DCF\u6570"}},facets:{content_type:"\u30B3\u30F3\u30C6\u30F3\u30C4\u30BF\u30A4\u30D7",file_type:"\u30D5\u30A1\u30A4\u30EB\u30BF\u30A4\u30D7",genre:"\u30B8\u30E3\u30F3\u30EB",language:"\u8A00\u8A9E",queue:"\u30AD\u30E5\u30FC",status:"\u30B9\u30C6\u30FC\u30BF\u30B9",torrent_source:"\u30C8\u30EC\u30F3\u30C8\u30BD\u30FC\u30B9",torrent_tag:"\u30C8\u30EC\u30F3\u30C8\u30BF\u30B0",video_resolution:"\u30D3\u30C7\u30AA\u89E3\u50CF\u5EA6",video_source:"\u30D3\u30C7\u30AA\u30BD\u30FC\u30B9"},file_types:{archive:"\u30A2\u30FC\u30AB\u30A4\u30D6",audio:"\u30AA\u30FC\u30C7\u30A3\u30AA",data:"\u30C7\u30FC\u30BF",document:"\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8",image:"\u753B\u50CF",software:"\u30BD\u30D5\u30C8\u30A6\u30A7\u30A2",subtitles:"\u5B57\u5E55",unknown:"\u4E0D\u660E",video:"\u30D3\u30C7\u30AA"},general:{all:"\u3059\u3079\u3066",dismiss:"\u9589\u3058\u308B",error:"\u30A8\u30E9\u30FC",none:"\u306A\u3057",refresh:"\u66F4\u65B0",status:"\u30B9\u30C6\u30FC\u30BF\u30B9"},health:{bitmagnet_is_status:"bitmagnet\u306F{{status}}\u3067\u3059",check_failed_with_error:"\u30A8\u30E9\u30FC\u3067\u30C1\u30A7\u30C3\u30AF\u306B\u5931\u6557\u3057\u307E\u3057\u305F",component:"\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8",components:{dht:"DHT",postgres:"Postgres",tmdb:"TMDB"},dismiss:"\u9589\u3058\u308B",error:"\u30A8\u30E9\u30FC",status:"\u30B9\u30C6\u30FC\u30BF\u30B9",statuses:{degraded:"\u4F4E\u4E0B",down:"\u505C\u6B62",error:"\u30A8\u30E9\u30FC",inactive:"\u975E\u30A2\u30AF\u30C6\u30A3\u30D6",started:"\u958B\u59CB",unknown:"\u4FDD\u7559\u4E2D",up:"\u7A3C\u50CD\u4E2D"},summary:"\u5065\u5EB7\u72B6\u614B\u306E\u6982\u8981",worker:"\u30EF\u30FC\u30AB\u30FC",workers:{dht_crawler:"DHT\u30AF\u30ED\u30FC\u30E9\u30FC",http_server:"HTTP\u30B5\u30FC\u30D0\u30FC",queue_server:"\u30AD\u30E5\u30FC\u30B5\u30FC\u30D0\u30FC"}},languages:{af:"\u30A2\u30D5\u30EA\u30AB\u30FC\u30F3\u30B9\u8A9E",ar:"\u30A2\u30E9\u30D3\u30A2\u8A9E",az:"\u30A2\u30BC\u30EB\u30D0\u30A4\u30B8\u30E3\u30F3\u8A9E",be:"\u30D9\u30E9\u30EB\u30FC\u30B7\u8A9E",bg:"\u30D6\u30EB\u30AC\u30EA\u30A2\u8A9E",bs:"\u30DC\u30B9\u30CB\u30A2\u8A9E",ca:"\u30AB\u30BF\u30EB\u30FC\u30CB\u30E3\u8A9E",ce:"\u30C1\u30A7\u30C1\u30A7\u30F3\u8A9E",co:"\u30B3\u30EB\u30B7\u30AB\u8A9E",cs:"\u30C1\u30A7\u30B3\u8A9E",cy:"\u30A6\u30A7\u30FC\u30EB\u30BA\u8A9E",da:"\u30C7\u30F3\u30DE\u30FC\u30AF\u8A9E",de:"\u30C9\u30A4\u30C4\u8A9E",el:"\u30AE\u30EA\u30B7\u30E3\u8A9E",en:"\u82F1\u8A9E",es:"\u30B9\u30DA\u30A4\u30F3\u8A9E",et:"\u30A8\u30B9\u30C8\u30CB\u30A2\u8A9E",eu:"\u30D0\u30B9\u30AF\u8A9E",fa:"\u30DA\u30EB\u30B7\u30E3\u8A9E",fi:"\u30D5\u30A3\u30F3\u30E9\u30F3\u30C9\u8A9E",fr:"\u30D5\u30E9\u30F3\u30B9\u8A9E",he:"\u30D8\u30D6\u30E9\u30A4\u8A9E",hi:"\u30D2\u30F3\u30C7\u30A3\u30FC\u8A9E",hr:"\u30AF\u30ED\u30A2\u30C1\u30A2\u8A9E",hu:"\u30CF\u30F3\u30AC\u30EA\u30FC\u8A9E",hy:"\u30A2\u30EB\u30E1\u30CB\u30A2\u8A9E",id:"\u30A4\u30F3\u30C9\u30CD\u30B7\u30A2\u8A9E",is:"\u30A2\u30A4\u30B9\u30E9\u30F3\u30C9\u8A9E",it:"\u30A4\u30BF\u30EA\u30A2\u8A9E",ja:"\u65E5\u672C\u8A9E",ka:"\u30B0\u30EB\u30B8\u30A2\u8A9E",ko:"\u97D3\u56FD\u8A9E",ku:"\u30AF\u30EB\u30C9\u8A9E",lt:"\u30EA\u30C8\u30A2\u30CB\u30A2\u8A9E",lv:"\u30E9\u30C8\u30D3\u30A2\u8A9E",mi:"\u30DE\u30AA\u30EA\u8A9E",mk:"\u30DE\u30B1\u30C9\u30CB\u30A2\u8A9E",ml:"\u30DE\u30E9\u30E4\u30FC\u30E9\u30E0\u8A9E",mn:"\u30E2\u30F3\u30B4\u30EB\u8A9E",ms:"\u30DE\u30EC\u30FC\u8A9E",mt:"\u30DE\u30EB\u30BF\u8A9E",nl:"\u30AA\u30E9\u30F3\u30C0\u8A9E",no:"\u30CE\u30EB\u30A6\u30A7\u30FC\u8A9E",pl:"\u30DD\u30FC\u30E9\u30F3\u30C9\u8A9E",pt:"\u30DD\u30EB\u30C8\u30AC\u30EB\u8A9E",ro:"\u30EB\u30FC\u30DE\u30CB\u30A2\u8A9E",ru:"\u30ED\u30B7\u30A2\u8A9E",sa:"\u30B5\u30F3\u30B9\u30AF\u30EA\u30C3\u30C8",sk:"\u30B9\u30ED\u30D0\u30AD\u30A2\u8A9E",sl:"\u30B9\u30ED\u30D9\u30CB\u30A2\u8A9E",sm:"\u30B5\u30E2\u30A2\u8A9E",so:"\u30BD\u30DE\u30EA\u8A9E",sr:"\u30BB\u30EB\u30D3\u30A2\u8A9E",sv:"\u30B9\u30A6\u30A7\u30FC\u30C7\u30F3\u8A9E",ta:"\u30BF\u30DF\u30EB\u8A9E",th:"\u30BF\u30A4\u8A9E",tr:"\u30C8\u30EB\u30B3\u8A9E",uk:"\u30A6\u30AF\u30E9\u30A4\u30CA\u8A9E",vi:"\u30D9\u30C8\u30CA\u30E0\u8A9E",yi:"\u30A4\u30C7\u30A3\u30C3\u30B7\u30E5\u8A9E",zh:"\u4E2D\u56FD\u8A9E",zu:"\u30BA\u30FC\u30EB\u30FC\u8A9E"},layout:{bitmagnet_on_service:"{{service}}\u306Ebitmagnet",change_theme:"\u30C6\u30FC\u30DE\u3092\u5909\u66F4",external_links:"\u5916\u90E8\u30EA\u30F3\u30AF",sponsor:"\u30B9\u30DD\u30F3\u30B5\u30FC",support_bitmagnet:"bitmagnet\u3092\u30B5\u30DD\u30FC\u30C8",translate:"\u7FFB\u8A33\u3059\u308B"},paginator:{first_page:"\u6700\u521D\u306E\u30DA\u30FC\u30B8",items_per_page:"\u30DA\u30FC\u30B8\u3042\u305F\u308A\u306E\u9805\u76EE\u6570",last_page:"\u6700\u5F8C\u306E\u30DA\u30FC\u30B8",next_page:"\u6B21\u306E\u30DA\u30FC\u30B8",previous_page:"\u524D\u306E\u30DA\u30FC\u30B8",x_to_y:"{{x}} \u304B\u3089 {{y}} \u307E\u3067",x_to_y_of_z:"{{x}} \u304B\u3089 {{y}} \u307E\u3067\u306E {{z}}"},routes:{admin:"\u7BA1\u7406\u8005",dashboard:"\u30C0\u30C3\u30B7\u30E5\u30DC\u30FC\u30C9",home:"\u30DB\u30FC\u30E0",jobs:"\u30B8\u30E7\u30D6",queues:"\u30AD\u30E5\u30FC",torrents:"\u30C8\u30EC\u30F3\u30C8",visualize:"\u53EF\u8996\u5316"},torrents:{clear_search:"\u691C\u7D22\u3092\u30AF\u30EA\u30A2",copy:"\u30B3\u30D4\u30FC",copy_to_clipboard:"\u30AF\u30EA\u30C3\u30D7\u30DC\u30FC\u30C9\u306B\u30B3\u30D4\u30FC",delete:"\u524A\u9664",delete_action_cannot_be_undone:"\u3053\u306E\u64CD\u4F5C\u306F\u5143\u306B\u623B\u305B\u307E\u305B\u3093",delete_are_you_sure:"\u3053\u306E\u30C8\u30EC\u30F3\u30C8\u3092\u524A\u9664\u3057\u3066\u3082\u3088\u308D\u3057\u3044\u3067\u3059\u304B\uFF1F",deselect_all:"\u3059\u3079\u3066\u306E\u9078\u629E\u3092\u89E3\u9664",edit_tags:"\u30BF\u30B0\u3092\u7DE8\u96C6",episodes:"\u30A8\u30D4\u30BD\u30FC\u30C9",external_links:"\u5916\u90E8\u30EA\u30F3\u30AF",file_index:"\u30D5\u30A1\u30A4\u30EB\u30A4\u30F3\u30C7\u30C3\u30AF\u30B9",file_path:"\u30D5\u30A1\u30A4\u30EB\u30D1\u30B9",file_size:"\u30D5\u30A1\u30A4\u30EB\u30B5\u30A4\u30BA",file_type:"\u30D5\u30A1\u30A4\u30EB\u30BF\u30A4\u30D7",files:"\u30D5\u30A1\u30A4\u30EB",files_count_n:"{{count}} \u4EF6\u306E\u30D5\u30A1\u30A4\u30EB",files_no_info:"\u30D5\u30A1\u30A4\u30EB\u60C5\u5831\u306F\u3042\u308A\u307E\u305B\u3093",files_single:"\u5358\u4E00\u30D5\u30A1\u30A4\u30EB",genres:"\u30B8\u30E3\u30F3\u30EB",info_hash:"\u60C5\u5831\u30CF\u30C3\u30B7\u30E5",info_hashes:"\u60C5\u5831\u30CF\u30C3\u30B7\u30E5",languages:"\u8A00\u8A9E",leechers:"\u30EA\u30FC\u30C1\u30E3\u30FC",magnet:"\u30DE\u30B0\u30CD\u30C3\u30C8",magnet_links:"\u30DE\u30B0\u30CD\u30C3\u30C8\u30EA\u30F3\u30AF",new_tag:"\u65B0\u3057\u3044\u30BF\u30B0",order_by:"\u4E26\u3073\u66FF\u3048",order_direction_toggle:"\u4E26\u3073\u9806\u3092\u5207\u308A\u66FF\u3048",ordering:{files_count:"\u30D5\u30A1\u30A4\u30EB\u6570",info_hash:"\u60C5\u5831\u30CF\u30C3\u30B7\u30E5",leechers:"\u30EA\u30FC\u30C1\u30E3\u30FC",name:"\u540D\u524D",published_at:"\u516C\u958B\u65E5\u6642",relevance:"\u95A2\u9023\u6027",seeders:"\u30B7\u30FC\u30C0\u30FC",size:"\u30B5\u30A4\u30BA",updated_at:"\u66F4\u65B0\u65E5\u6642"},original_release_date:"\u30AA\u30EA\u30B8\u30CA\u30EB\u306E\u767A\u58F2\u65E5",permalink:"\u30D1\u30FC\u30DE\u30EA\u30F3\u30AF",poster:"\u30DD\u30B9\u30BF\u30FC",published:"\u516C\u958B\u6E08\u307F",rating:"\u8A55\u4FA1",refresh:"\u7D50\u679C\u3092\u66F4\u65B0",s_l:"S / L",search:"\u691C\u7D22",seeders:"\u30B7\u30FC\u30C0\u30FC",select_all:"\u3059\u3079\u3066\u9078\u629E",showing_x_of_y_files:"{{x}} \u4EF6\u4E2D {{y}} \u4EF6\u8868\u793A",size:"\u30B5\u30A4\u30BA",source:"\u30C8\u30EC\u30F3\u30C8\u30BD\u30FC\u30B9",summary:"\u6982\u8981",title:"\u30BF\u30A4\u30C8\u30EB",toggle_drawer:"\u5F15\u304D\u51FA\u3057\u3092\u5207\u308A\u66FF\u3048",votes_count_n:"{{count}} \u7968"},version:{bitmagnet_version:"bitmagnet\u30D0\u30FC\u30B8\u30E7\u30F3 {{version}}",unknown:"\u4E0D\u660E"}};var ot={content_types:{plural:{all:"Alle",audiobook:"Audioboeken",comic:"Strips",ebook:"E-Boeken",movie:"Films",music:"Muziek",null:"Onbekend",software:"Software",tv_show:"Tv-programma's",xxx:"XXX"},singular:{audiobook:"Audioboek",comic:"Strip",ebook:"E-Book",movie:"Film",music:"Muziek",null:"Onbekend",software:"Software",tv_show:"Tv-programma",xxx:"XXX"}},dashboard:{event:{created:"Gemaakt",failed:"Mislukt",processed:"Verwerkt",updated:"Bijgewerkt"},interval:{all:"Alle",days:"Dagen",days_1:"1 dag",hours:"Uren",hours_1:"1 uur",hours_12:"12 uur",hours_6:"6 uur",minutes:"Minuten",minutes_1:"1 minuut",minutes_15:"15 minuten",minutes_30:"30 minuten",minutes_5:"5 minuten",off:"Uit",seconds_10:"10 seconden",seconds_30:"30 seconden",weeks_1:"1 week"},metrics:{event:"Gebeurtenis",resolution:"Resolutie",throughput:"Doorvoer",timeframe:"Tijdsperiode"},queues:{created:"Gemaakt",created_at:"Gemaakt op",enqueue_jobs:"Voeg taken toe aan wachtrij",enqueue_torrent_processing_batch:"Torrentverwerkingsbatch toevoegen",failed:"Mislukt",force_rematch:"Forceer nieuwe match van al gematchte inhoud",jobs_enqueued:"Taken in wachtrij gezet",latency:"Latentie",match_content_by_external_api_search:"Match inhoud via externe API-zoekopdracht",match_content_by_local_search:"Match inhoud via lokale zoekopdracht",payload:"Inhoud",pending:"In afwachting",priority:"Prioriteit",process_orphaned_torrents_only:"Verwerk alleen verweesde torrents",processed:"Verwerkt",purge_jobs:"Wis taken",purge_queue_jobs:"Wis wachtrijtaken",queue:"Wachtrij",queue_purged:"Wachtrij gewist",queues:"Wachtrijen",ran_at:"Uitgevoerd op",retry:"Opnieuw proberen",total_counts_by_status:"Totaal aantal per status"}},facets:{content_type:"Inhoudstype",file_type:"Bestandstype",genre:"Genre",language:"Taal",queue:"Wachtrij",status:"Status",torrent_source:"Torrentbron",torrent_tag:"Torrenttag",video_resolution:"Videoresolutie",video_source:"Videobron"},file_types:{archive:"Archief",audio:"Audio",data:"Data",document:"Document",image:"Afbeelding",software:"Software",subtitles:"Ondertitels",unknown:"Onbekend",video:"Video"},general:{all:"Alle",dismiss:"Sluiten",error:"Fout",none:"Geen",refresh:"Verversen",status:"Status"},health:{bitmagnet_is_status:"bitmagnet is {{status}}",check_failed_with_error:"Controle mislukt met foutmelding",component:"Component",components:{dht:"DHT",postgres:"Postgres",tmdb:"TMDB"},dismiss:"Sluiten",error:"Fout",status:"Status",statuses:{degraded:"Verlaagd",down:"Niet beschikbaar",error:"Fout",inactive:"Inactief",started:"Gestart",unknown:"Onbekend",up:"Beschikbaar"},summary:"Gezondheidsrapport",worker:"Werker",workers:{dht_crawler:"DHT crawler",http_server:"HTTP server",queue_server:"Wachtrijserver"}},languages:{af:"Afrikaans",ar:"Arabisch",az:"Azerbeidzjaans",be:"Wit-Russisch",bg:"Bulgaars",bs:"Bosnisch",ca:"Catalaans",ce:"Tsjetsjeens",co:"Corsicaans",cs:"Tsjechisch",cy:"Welsh",da:"Deens",de:"Duits",el:"Grieks",en:"Engels",es:"Spaans",et:"Ests",eu:"Baskisch",fa:"Perzisch",fi:"Fins",fr:"Frans",he:"Hebreeuws",hi:"Hindi",hr:"Kroatisch",hu:"Hongaars",hy:"Armeens",id:"Indonesisch",is:"IJslands",it:"Italiaans",ja:"Japans",ka:"Georgisch",ko:"Koreaans",ku:"Koerdisch",lt:"Litouws",lv:"Lets",mi:"Maori",mk:"Macedonisch",ml:"Malayalam",mn:"Mongools",ms:"Maleis",mt:"Maltees",nl:"Nederlands",no:"Noors",pl:"Pools",pt:"Portugees",ro:"Roemeens",ru:"Russisch",sa:"Sanskriet",sk:"Slowaaks",sl:"Sloveens",sm:"Samoaans",so:"Somalisch",sr:"Servisch",sv:"Zweeds",ta:"Tamil",th:"Thais",tr:"Turks",uk:"Oekra\xEFens",vi:"Vietnamees",yi:"Jiddisch",zh:"Chinees",zu:"Zoeloe"},layout:{bitmagnet_on_service:"bitmagnet op {{service}}",change_theme:"Wijzig thema",external_links:"Externe links",sponsor:"Sponsor",support_bitmagnet:"Ondersteun bitmagnet",translate:"Vertalen"},paginator:{first_page:"Eerste pagina",items_per_page:"Items per pagina",last_page:"Laatste pagina",next_page:"Volgende pagina",previous_page:"Vorige pagina",x_to_y:"{{x}} tot {{y}}",x_to_y_of_z:"{{x}} tot {{y}} van {{z}}"},routes:{admin:"Beheerder",dashboard:"Dashboard",home:"Home",jobs:"Taken",queues:"Wachtrijen",torrents:"Torrents",visualize:"Visualiseren"},torrents:{clear_search:"Zoekopdracht wissen",copy:"Kopi\xEBren",copy_to_clipboard:"Kopi\xEBren naar klembord",delete:"Verwijderen",delete_action_cannot_be_undone:"Deze actie kan niet ongedaan worden gemaakt",delete_are_you_sure:"Weet u zeker dat u deze torrent wilt verwijderen?",deselect_all:"Deselecteer alles",edit_tags:"Tags bewerken",episodes:"Afleveringen",external_links:"Externe links",file_index:"Bestandsindex",file_path:"Bestandspad",file_size:"Bestandsgrootte",file_type:"Bestandstype",files:"Bestanden",files_count_n:"{{count}} bestanden",files_no_info:"Geen informatie over bestanden beschikbaar",files_single:"Enkel bestand",genres:"Genres",info_hash:"Info hash",info_hashes:"Info hashes",languages:"Talen",leechers:"Leechers",magnet:"Magnet",magnet_links:"Magnet-links",new_tag:"Nieuwe tag",order_by:"Sorteren op",order_direction_toggle:"Richting omkeren",ordering:{files_count:"Aantal bestanden",info_hash:"Info hash",leechers:"Leechers",name:"Naam",published_at:"Gepubliceerd op",relevance:"Relevantie",seeders:"Seeders",size:"Grootte",updated_at:"Bijgewerkt op"},original_release_date:"Oorspronkelijke releasedatum",permalink:"Permalink",poster:"Poster",published:"Gepubliceerd",rating:"Beoordeling",refresh:"Vernieuw resultaten",s_l:"S / L",search:"Zoeken",seeders:"Seeders",select_all:"Alles selecteren",showing_x_of_y_files:"{{x}} van {{y}} bestanden weergegeven",size:"Grootte",source:"Torrentbron",summary:"Samenvatting",title:"Titel",toggle_drawer:"Zijpaneel in-/uitschakelen",votes_count_n:"{{count}} stemmen"},version:{bitmagnet_version:"bitmagnet versie {{version}}",unknown:"onbekend"}};var rt={content_types:{plural:{all:"Todos",audiobook:"Audiolivros",comic:"Quadrinhos",ebook:"E-books",movie:"Filmes",music:"M\xFAsica",null:"Desconhecido",software:"Software",tv_show:"Programas de TV",xxx:"XXX"},singular:{audiobook:"Audiolivro",comic:"Quadrinho",ebook:"E-book",movie:"Filme",music:"M\xFAsica",null:"Desconhecido",software:"Software",tv_show:"Programa de TV",xxx:"XXX"}},dashboard:{event:{created:"Criado",failed:"Falhou",processed:"Processado",updated:"Atualizado"},interval:{all:"Todos",days:"Dias",days_1:"1 dia",hours:"Horas",hours_1:"1 hora",hours_12:"12 horas",hours_6:"6 horas",minutes:"Minutos",minutes_1:"1 minuto",minutes_15:"15 minutos",minutes_30:"30 minutos",minutes_5:"5 minutos",off:"Desligado",seconds_10:"10 segundos",seconds_30:"30 segundos",weeks_1:"1 semana"},metrics:{event:"Evento",resolution:"Resolu\xE7\xE3o",throughput:"Taxa de transfer\xEAncia",timeframe:"Intervalo de tempo"},queues:{created:"Criado",created_at:"Criado em",enqueue_jobs:"Enfileirar trabalhos",enqueue_torrent_processing_batch:"Enfileirar lote de processamento de torrents",failed:"Falhou",force_rematch:"For\xE7ar nova correspond\xEAncia de conte\xFAdo j\xE1 correspondido",jobs_enqueued:"Trabalhos enfileirados",latency:"Lat\xEAncia",match_content_by_external_api_search:"Correspond\xEAncia de conte\xFAdo por pesquisa de API externa",match_content_by_local_search:"Correspond\xEAncia de conte\xFAdo por pesquisa local",payload:"Carga \xFAtil",pending:"Pendente",priority:"Prioridade",process_orphaned_torrents_only:"Processar apenas torrents \xF3rf\xE3os",processed:"Processado",purge_jobs:"Limpar trabalhos",purge_queue_jobs:"Limpar trabalhos da fila",queue:"Fila",queue_purged:"Fila limpa",queues:"Filas",ran_at:"Executado em",retry:"Tentar novamente",total_counts_by_status:"Contagens totais por status"}},facets:{content_type:"Tipo de Conte\xFAdo",file_type:"Tipo de Arquivo",genre:"G\xEAnero",language:"Idioma",queue:"Fila",status:"Status",torrent_source:"Fonte do Torrent",torrent_tag:"Tag do Torrent",video_resolution:"Resolu\xE7\xE3o de V\xEDdeo",video_source:"Fonte de V\xEDdeo"},file_types:{archive:"Arquivo",audio:"\xC1udio",data:"Dados",document:"Documento",image:"Imagem",software:"Software",subtitles:"Legendas",unknown:"Desconhecido",video:"V\xEDdeo"},general:{all:"Todos",dismiss:"Fechar",error:"Erro",none:"Nenhum",refresh:"Atualizar",status:"Status"},health:{bitmagnet_is_status:"bitmagnet est\xE1 {{status}}",check_failed_with_error:"Verifica\xE7\xE3o falhou com erro",component:"Componente",components:{dht:"DHT",postgres:"Postgres",tmdb:"TMDB"},dismiss:"Fechar",error:"Erro",status:"Status",statuses:{degraded:"Degradado",down:"Fora do ar",error:"Erro",inactive:"Inativo",started:"Iniciado",unknown:"Pendente",up:"Funcionando"},summary:"Resumo de Sa\xFAde",worker:"Trabalhador",workers:{dht_crawler:"Rastreamento DHT",http_server:"Servidor HTTP",queue_server:"Servidor de Fila"}},languages:{af:"Afric\xE2ner",ar:"\xC1rabe",az:"Azeri",be:"Bielorrusso",bg:"B\xFAlgaro",bs:"B\xF3snio",ca:"Catal\xE3o",ce:"Checheno",co:"Corso",cs:"Tcheco",cy:"Gal\xEAs",da:"Dinamarqu\xEAs",de:"Alem\xE3o",el:"Grego",en:"Ingl\xEAs",es:"Espanhol",et:"Estoniano",eu:"Basco",fa:"Persa",fi:"Finland\xEAs",fr:"Franc\xEAs",he:"Hebraico",hi:"Hindi",hr:"Croata",hu:"H\xFAngaro",hy:"Arm\xEAnio",id:"Indon\xE9sio",is:"Island\xEAs",it:"Italiano",ja:"Japon\xEAs",ka:"Georgiano",ko:"Coreano",ku:"Curdo",lt:"Lituano",lv:"Let\xE3o",mi:"Maori",mk:"Maced\xF4nio",ml:"Malaiala",mn:"Mongol",ms:"Malaio",mt:"Malt\xEAs",nl:"Holand\xEAs",no:"Noruegu\xEAs",pl:"Polon\xEAs",pt:"Portugu\xEAs",ro:"Romeno",ru:"Russo",sa:"S\xE2nscrito",sk:"Eslovaco",sl:"Esloveno",sm:"Samoano",so:"Somali",sr:"S\xE9rvio",sv:"Sueco",ta:"T\xE2mil",th:"Tailand\xEAs",tr:"Turco",uk:"Ucraniano",vi:"Vietnamita",yi:"I\xEDdiche",zh:"Chin\xEAs",zu:"Zulu"},layout:{bitmagnet_on_service:"bitmagnet em {{service}}",change_theme:"Alterar tema",external_links:"Links externos",sponsor:"Patrocinador",support_bitmagnet:"Apoiar bitmagnet",translate:"Traduzir"},paginator:{first_page:"Primeira p\xE1gina",items_per_page:"Itens por p\xE1gina",last_page:"\xDAltima p\xE1gina",next_page:"Pr\xF3xima p\xE1gina",previous_page:"P\xE1gina anterior",x_to_y:"{{x}} a {{y}}",x_to_y_of_z:"{{x}} a {{y}} de {{z}}"},routes:{admin:"Administra\xE7\xE3o",dashboard:"Painel",home:"In\xEDcio",jobs:"Tarefas",queues:"Filas",torrents:"Torrents",visualize:"Visualizar"},torrents:{clear_search:"Limpar Pesquisa",copy:"Copiar",copy_to_clipboard:"Copiar para a \xE1rea de transfer\xEAncia",delete:"Excluir",delete_action_cannot_be_undone:"Esta a\xE7\xE3o n\xE3o pode ser desfeita",delete_are_you_sure:"Tem certeza de que deseja excluir este torrent?",deselect_all:"Desmarcar todos",edit_tags:"Editar tags",episodes:"Epis\xF3dios",external_links:"Links externos",file_index:"\xCDndice de arquivo",file_path:"Caminho do arquivo",file_size:"Tamanho do arquivo",file_type:"Tipo de arquivo",files:"Arquivos",files_count_n:"{{count}} arquivos",files_no_info:"Sem informa\xE7\xF5es de arquivos dispon\xEDveis",files_single:"Arquivo \xFAnico",genres:"G\xEAneros",info_hash:"Hash de informa\xE7\xE3o",info_hashes:"Hashes de informa\xE7\xE3o",languages:"Idiomas",leechers:"Leechers",magnet:"Magnet",magnet_links:"Links magnet",new_tag:"Nova tag",order_by:"Ordenar por",order_direction_toggle:"Inverter dire\xE7\xE3o",ordering:{files_count:"Contagem de arquivos",info_hash:"Hash de informa\xE7\xE3o",leechers:"Leechers",name:"Nome",published_at:"Publicado em",relevance:"Relev\xE2ncia",seeders:"Seeders",size:"Tamanho",updated_at:"Atualizado em"},original_release_date:"Data de lan\xE7amento original",permalink:"Link permanente",poster:"P\xF4ster",published:"Publicado",rating:"Classifica\xE7\xE3o",refresh:"Atualizar resultados",s_l:"S / L",search:"Buscar",seeders:"Seeders",select_all:"Selecionar tudo",showing_x_of_y_files:"Mostrando {{x}} de {{y}} arquivos",size:"Tamanho",source:"Fonte do torrent",summary:"Resumo",title:"T\xEDtulo",toggle_drawer:"Alternar gaveta",votes_count_n:"{{count}} votos"},version:{bitmagnet_version:"Vers\xE3o do bitmagnet {{version}}",unknown:"desconhecido"}};var nt={content_types:{plural:{all:"\u0412\u0441\u0435",audiobook:"\u0410\u0443\u0434\u0438\u043E\u043A\u043D\u0438\u0433\u0438",comic:"\u041A\u043E\u043C\u0438\u043A\u0441\u044B",ebook:"\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u044B\u0435 \u043A\u043D\u0438\u0433\u0438",movie:"\u0424\u0438\u043B\u044C\u043C\u044B",music:"\u041C\u0443\u0437\u044B\u043A\u0430",null:"\u041D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E",software:"\u041F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u044B",tv_show:"\u0422\u0435\u043B\u0435\u043F\u0435\u0440\u0435\u0434\u0430\u0447\u0438",xxx:"\u041F\u043E\u0440\u043D\u043E"},singular:{audiobook:"\u0410\u0443\u0434\u0438\u043E\u043A\u043D\u0438\u0433\u0430",comic:"\u041A\u043E\u043C\u0438\u043A\u0441",ebook:"\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043A\u043D\u0438\u0433\u0430",movie:"\u0424\u0438\u043B\u044C\u043C",music:"\u041C\u0443\u0437\u044B\u043A\u0430",null:"\u041D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E",software:"\u041F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430",tv_show:"\u0422\u0435\u043B\u0435\u043F\u0435\u0440\u0435\u0434\u0430\u0447\u0430",xxx:"\u041F\u043E\u0440\u043D\u043E"}},dashboard:{event:{created:"\u0421\u043E\u0437\u0434\u0430\u043D\u043E",failed:"\u041E\u0448\u0438\u0431\u043A\u0430",processed:"\u041E\u0431\u0440\u0430\u0431\u043E\u0442\u0430\u043D\u043E",updated:"\u041E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u043E"},interval:{all:"\u0412\u0441\u0435",days:"\u0414\u043D\u0438",days_1:"1 \u0434\u0435\u043D\u044C",hours:"\u0427\u0430\u0441\u044B",hours_1:"1 \u0447\u0430\u0441",hours_12:"12 \u0447\u0430\u0441\u043E\u0432",hours_6:"6 \u0447\u0430\u0441\u043E\u0432",minutes:"\u041C\u0438\u043D\u0443\u0442\u044B",minutes_1:"1 \u043C\u0438\u043D\u0443\u0442\u0430",minutes_15:"15 \u043C\u0438\u043D\u0443\u0442",minutes_30:"30 \u043C\u0438\u043D\u0443\u0442",minutes_5:"5 \u043C\u0438\u043D\u0443\u0442",off:"\u041E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u043E",seconds_10:"10 \u0441\u0435\u043A\u0443\u043D\u0434",seconds_30:"30 \u0441\u0435\u043A\u0443\u043D\u0434",weeks_1:"1 \u043D\u0435\u0434\u0435\u043B\u044F"},metrics:{event:"\u0421\u043E\u0431\u044B\u0442\u0438\u0435",resolution:"\u0420\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u0438\u0435",throughput:"\u041F\u0440\u043E\u043F\u0443\u0441\u043A\u043D\u0430\u044F \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u044C",timeframe:"\u041F\u0435\u0440\u0438\u043E\u0434 \u0432\u0440\u0435\u043C\u0435\u043D\u0438"},queues:{created:"\u0421\u043E\u0437\u0434\u0430\u043D\u043E",created_at:"\u0421\u043E\u0437\u0434\u0430\u043D\u043E \u0432",enqueue_jobs:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0437\u0430\u0434\u0430\u043D\u0438\u044F \u0432 \u043E\u0447\u0435\u0440\u0435\u0434\u044C",enqueue_torrent_processing_batch:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043F\u0430\u0440\u0442\u0438\u044E \u0434\u043B\u044F \u043E\u0431\u0440\u0430\u0431\u043E\u0442\u043A\u0438 \u0442\u043E\u0440\u0440\u0435\u043D\u0442\u043E\u0432",failed:"\u041E\u0448\u0438\u0431\u043A\u0430",force_rematch:"\u041F\u0440\u0438\u043D\u0443\u0434\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0435 \u043F\u043E\u0432\u0442\u043E\u0440\u043D\u043E\u0435 \u0441\u043E\u043F\u043E\u0441\u0442\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u0443\u0436\u0435 \u0441\u043E\u043F\u043E\u0441\u0442\u0430\u0432\u043B\u0435\u043D\u043D\u043E\u0433\u043E \u043A\u043E\u043D\u0442\u0435\u043D\u0442\u0430",jobs_enqueued:"\u0417\u0430\u0434\u0430\u043D\u0438\u044F \u0434\u043E\u0431\u0430\u0432\u043B\u0435\u043D\u044B \u0432 \u043E\u0447\u0435\u0440\u0435\u0434\u044C",latency:"\u0417\u0430\u0434\u0435\u0440\u0436\u043A\u0430",match_content_by_external_api_search:"\u0421\u043E\u043F\u043E\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043D\u0442 \u0447\u0435\u0440\u0435\u0437 \u0432\u043D\u0435\u0448\u043D\u0438\u0439 API",match_content_by_local_search:"\u0421\u043E\u043F\u043E\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043D\u0442 \u0447\u0435\u0440\u0435\u0437 \u043B\u043E\u043A\u0430\u043B\u044C\u043D\u044B\u0439 \u043F\u043E\u0438\u0441\u043A",payload:"\u0414\u0430\u043D\u043D\u044B\u0435",pending:"\u0412 \u043E\u0436\u0438\u0434\u0430\u043D\u0438\u0438",priority:"\u041F\u0440\u0438\u043E\u0440\u0438\u0442\u0435\u0442",process_orphaned_torrents_only:"\u041E\u0431\u0440\u0430\u0431\u0430\u0442\u044B\u0432\u0430\u0442\u044C \u0442\u043E\u043B\u044C\u043A\u043E \xAB\u043E\u0441\u0438\u0440\u043E\u0442\u0435\u0432\u0448\u0438\u0435\xBB \u0442\u043E\u0440\u0440\u0435\u043D\u0442\u044B",processed:"\u041E\u0431\u0440\u0430\u0431\u043E\u0442\u0430\u043D\u043E",purge_jobs:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0437\u0430\u0434\u0430\u043D\u0438\u044F",purge_queue_jobs:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0437\u0430\u0434\u0430\u043D\u0438\u044F \u043E\u0447\u0435\u0440\u0435\u0434\u0438",queue:"\u041E\u0447\u0435\u0440\u0435\u0434\u044C",queue_purged:"\u041E\u0447\u0435\u0440\u0435\u0434\u044C \u043E\u0447\u0438\u0449\u0435\u043D\u0430",queues:"\u041E\u0447\u0435\u0440\u0435\u0434\u0438",ran_at:"\u0412\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u043E \u0432",retry:"\u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u044C",total_counts_by_status:"\u041E\u0431\u0449\u0435\u0435 \u043A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u043F\u043E \u0441\u0442\u0430\u0442\u0443\u0441\u0430\u043C"}},facets:{content_type:"\u0422\u0438\u043F \u043A\u043E\u043D\u0442\u0435\u043D\u0442\u0430",file_type:"\u0422\u0438\u043F \u0444\u0430\u0439\u043B\u0430",genre:"\u0416\u0430\u043D\u0440",language:"\u042F\u0437\u044B\u043A",queue:"\u041E\u0447\u0435\u0440\u0435\u0434\u044C",status:"\u0421\u0442\u0430\u0442\u0443\u0441",torrent_source:"\u0418\u0441\u0442\u043E\u0447\u043D\u0438\u043A \u0442\u043E\u0440\u0440\u0435\u043D\u0442\u0430",torrent_tag:"\u0422\u0435\u0433 \u0442\u043E\u0440\u0440\u0435\u043D\u0442\u0430",video_resolution:"\u0420\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u0438\u0435 \u0432\u0438\u0434\u0435\u043E",video_source:"\u0418\u0441\u0442\u043E\u0447\u043D\u0438\u043A \u0432\u0438\u0434\u0435\u043E"},file_types:{archive:"\u0410\u0440\u0445\u0438\u0432",audio:"\u0410\u0443\u0434\u0438\u043E",data:"\u0414\u0430\u043D\u043D\u044B\u0435",document:"\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442",image:"\u0418\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435",software:"\u041F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u044B",subtitles:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",unknown:"\u041D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E",video:"\u0412\u0438\u0434\u0435\u043E"},general:{all:"\u0412\u0441\u0435",dismiss:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",error:"\u041E\u0448\u0438\u0431\u043A\u0430",none:"\u041D\u0435\u0442",refresh:"\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C",status:"\u0421\u0442\u0430\u0442\u0443\u0441"},health:{bitmagnet_is_status:"bitmagnet {{status}}",check_failed_with_error:"\u041F\u0440\u043E\u0432\u0435\u0440\u043A\u0430 \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u043B\u0430\u0441\u044C \u0441 \u043E\u0448\u0438\u0431\u043A\u043E\u0439",component:"\u041A\u043E\u043C\u043F\u043E\u043D\u0435\u043D\u0442",components:{dht:"DHT",postgres:"Postgres",tmdb:"TMDB"},dismiss:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",error:"\u041E\u0448\u0438\u0431\u043A\u0430",status:"\u0421\u0442\u0430\u0442\u0443\u0441",statuses:{degraded:"\u0421\u043D\u0438\u0436\u0435\u043D\u0430 \u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",down:"\u041D\u0435 \u0440\u0430\u0431\u043E\u0442\u0430\u0435\u0442",error:"\u041E\u0448\u0438\u0431\u043A\u0430",inactive:"\u041D\u0435\u0430\u043A\u0442\u0438\u0432\u0435\u043D",started:"\u0417\u0430\u043F\u0443\u0449\u0435\u043D\u043E",unknown:"\u041D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E",up:"\u0420\u0430\u0431\u043E\u0442\u0430\u0435\u0442"},summary:"\u0421\u0432\u043E\u0434\u043A\u0430 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u044F",worker:"\u0420\u0430\u0431\u043E\u0447\u0438\u0439",workers:{dht_crawler:"DHT \u043E\u0431\u0445\u043E\u0434\u0447\u0438\u043A",http_server:"HTTP \u0441\u0435\u0440\u0432\u0435\u0440",queue_server:"\u0421\u0435\u0440\u0432\u0435\u0440 \u043E\u0447\u0435\u0440\u0435\u0434\u0435\u0439"}},languages:{af:"\u0410\u0444\u0440\u0438\u043A\u0430\u0430\u043D\u0441",ar:"\u0410\u0440\u0430\u0431\u0441\u043A\u0438\u0439",az:"\u0410\u0437\u0435\u0440\u0431\u0430\u0439\u0434\u0436\u0430\u043D\u0441\u043A\u0438\u0439",be:"\u0411\u0435\u043B\u043E\u0440\u0443\u0441\u0441\u043A\u0438\u0439",bg:"\u0411\u043E\u043B\u0433\u0430\u0440\u0441\u043A\u0438\u0439",bs:"\u0411\u043E\u0441\u043D\u0438\u0439\u0441\u043A\u0438\u0439",ca:"\u041A\u0430\u0442\u0430\u043B\u0430\u043D\u0441\u043A\u0438\u0439",ce:"\u0427\u0435\u0447\u0435\u043D\u0441\u043A\u0438\u0439",co:"\u041A\u043E\u0440\u0441\u0438\u043A\u0430\u043D\u0441\u043A\u0438\u0439",cs:"\u0427\u0435\u0448\u0441\u043A\u0438\u0439",cy:"\u0412\u0430\u043B\u043B\u0438\u0439\u0441\u043A\u0438\u0439",da:"\u0414\u0430\u0442\u0441\u043A\u0438\u0439",de:"\u041D\u0435\u043C\u0435\u0446\u043A\u0438\u0439",el:"\u0413\u0440\u0435\u0447\u0435\u0441\u043A\u0438\u0439",en:"\u0410\u043D\u0433\u043B\u0438\u0439\u0441\u043A\u0438\u0439",es:"\u0418\u0441\u043F\u0430\u043D\u0441\u043A\u0438\u0439",et:"\u042D\u0441\u0442\u043E\u043D\u0441\u043A\u0438\u0439",eu:"\u0411\u0430\u0441\u043A\u0441\u043A\u0438\u0439",fa:"\u041F\u0435\u0440\u0441\u0438\u0434\u0441\u043A\u0438\u0439",fi:"\u0424\u0438\u043D\u0441\u043A\u0438\u0439",fr:"\u0424\u0440\u0430\u043D\u0446\u0443\u0437\u0441\u043A\u0438\u0439",he:"\u0418\u0432\u0440\u0438\u0442",hi:"\u0425\u0438\u043D\u0434\u0438",hr:"\u0425\u043E\u0440\u0432\u0430\u0442\u0441\u043A\u0438\u0439",hu:"\u0412\u0435\u043D\u0433\u0435\u0440\u0441\u043A\u0438\u0439",hy:"\u0410\u0440\u043C\u044F\u043D\u0441\u043A\u0438\u0439",id:"\u0418\u043D\u0434\u043E\u043D\u0435\u0437\u0438\u0439\u0441\u043A\u0438\u0439",is:"\u0418\u0441\u043B\u0430\u043D\u0434\u0441\u043A\u0438\u0439",it:"\u0418\u0442\u0430\u043B\u044C\u044F\u043D\u0441\u043A\u0438\u0439",ja:"\u042F\u043F\u043E\u043D\u0441\u043A\u0438\u0439",ka:"\u0413\u0440\u0443\u0437\u0438\u043D\u0441\u043A\u0438\u0439",ko:"\u041A\u043E\u0440\u0435\u0439\u0441\u043A\u0438\u0439",ku:"\u041A\u0443\u0440\u0434\u0441\u043A\u0438\u0439",lt:"\u041B\u0438\u0442\u043E\u0432\u0441\u043A\u0438\u0439",lv:"\u041B\u0430\u0442\u044B\u0448\u0441\u043A\u0438\u0439",mi:"\u041C\u0430\u043E\u0440\u0438",mk:"\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438\u0439",ml:"\u041C\u0430\u043B\u0430\u044F\u043B\u0430\u043C",mn:"\u041C\u043E\u043D\u0433\u043E\u043B\u044C\u0441\u043A\u0438\u0439",ms:"\u041C\u0430\u043B\u0430\u0439\u0441\u043A\u0438\u0439",mt:"\u041C\u0430\u043B\u044C\u0442\u0438\u0439\u0441\u043A\u0438\u0439",nl:"\u041D\u0438\u0434\u0435\u0440\u043B\u0430\u043D\u0434\u0441\u043A\u0438\u0439",no:"\u041D\u043E\u0440\u0432\u0435\u0436\u0441\u043A\u0438\u0439",pl:"\u041F\u043E\u043B\u044C\u0441\u043A\u0438\u0439",pt:"\u041F\u043E\u0440\u0442\u0443\u0433\u0430\u043B\u044C\u0441\u043A\u0438\u0439",ro:"\u0420\u0443\u043C\u044B\u043D\u0441\u043A\u0438\u0439",ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",sa:"\u0421\u0430\u043D\u0441\u043A\u0440\u0438\u0442",sk:"\u0421\u043B\u043E\u0432\u0430\u0446\u043A\u0438\u0439",sl:"\u0421\u043B\u043E\u0432\u0435\u043D\u0441\u043A\u0438\u0439",sm:"\u0421\u0430\u043C\u043E\u0430\u043D\u0441\u043A\u0438\u0439",so:"\u0421\u043E\u043C\u0430\u043B\u0438\u0439\u0441\u043A\u0438\u0439",sr:"\u0421\u0435\u0440\u0431\u0441\u043A\u0438\u0439",sv:"\u0428\u0432\u0435\u0434\u0441\u043A\u0438\u0439",ta:"\u0422\u0430\u043C\u0438\u043B\u044C\u0441\u043A\u0438\u0439",th:"\u0422\u0430\u0439\u0441\u043A\u0438\u0439",tr:"\u0422\u0443\u0440\u0435\u0446\u043A\u0438\u0439",uk:"\u0423\u043A\u0440\u0430\u0438\u043D\u0441\u043A\u0438\u0439",vi:"\u0412\u044C\u0435\u0442\u043D\u0430\u043C\u0441\u043A\u0438\u0439",yi:"\u0418\u0434\u0438\u0448",zh:"\u041A\u0438\u0442\u0430\u0439\u0441\u043A\u0438\u0439",zu:"\u0417\u0443\u043B\u0443\u0441\u0441\u043A\u0438\u0439"},layout:{bitmagnet_on_service:"bitmagnet \u043D\u0430 {{service}}",change_theme:"\u0418\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u0442\u0435\u043C\u0443",external_links:"\u0412\u043D\u0435\u0448\u043D\u0438\u0435 \u0441\u0441\u044B\u043B\u043A\u0438",sponsor:"\u0421\u043F\u043E\u043D\u0441\u043E\u0440",support_bitmagnet:"\u041F\u043E\u0434\u0434\u0435\u0440\u0436\u0430\u0442\u044C bitmagnet",translate:"\u041F\u0435\u0440\u0435\u0432\u0435\u0441\u0442\u0438"},paginator:{first_page:"\u041F\u0435\u0440\u0432\u0430\u044F \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0430",items_per_page:"\u042D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432 \u043D\u0430 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0435",last_page:"\u041F\u043E\u0441\u043B\u0435\u0434\u043D\u044F\u044F \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0430",next_page:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0430\u044F \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0430",previous_page:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0430\u044F \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0430",x_to_y:"{{x}} \u0434\u043E {{y}}",x_to_y_of_z:"{{x}} \u0434\u043E {{y}} \u0438\u0437 {{z}}"},routes:{admin:"\u0410\u0434\u043C\u0438\u043D\u0438\u0441\u0442\u0440\u0430\u0442\u043E\u0440",dashboard:"\u041F\u0430\u043D\u0435\u043B\u044C \u0443\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u044F",home:"\u0413\u043B\u0430\u0432\u043D\u0430\u044F",jobs:"\u0417\u0430\u0434\u0430\u043D\u0438\u044F",queues:"\u041E\u0447\u0435\u0440\u0435\u0434\u0438",torrents:"\u0422\u043E\u0440\u0440\u0435\u043D\u0442\u044B",visualize:"\u0412\u0438\u0437\u0443\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u044F"},torrents:{clear_search:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u043F\u043E\u0438\u0441\u043A",copy:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C",copy_to_clipboard:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0432 \u0431\u0443\u0444\u0435\u0440 \u043E\u0431\u043C\u0435\u043D\u0430",delete:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C",delete_action_cannot_be_undone:"\u042D\u0442\u043E \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043D\u0435\u043B\u044C\u0437\u044F \u043E\u0442\u043C\u0435\u043D\u0438\u0442\u044C",delete_are_you_sure:"\u0412\u044B \u0443\u0432\u0435\u0440\u0435\u043D\u044B, \u0447\u0442\u043E \u0445\u043E\u0442\u0438\u0442\u0435 \u0443\u0434\u0430\u043B\u0438\u0442\u044C \u044D\u0442\u043E\u0442 \u0442\u043E\u0440\u0440\u0435\u043D\u0442?",deselect_all:"\u0421\u043D\u044F\u0442\u044C \u0432\u044B\u0434\u0435\u043B\u0435\u043D\u0438\u0435",edit_tags:"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0442\u0435\u0433\u0438",episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",external_links:"\u0412\u043D\u0435\u0448\u043D\u0438\u0435 \u0441\u0441\u044B\u043B\u043A\u0438",file_index:"\u0418\u043D\u0434\u0435\u043A\u0441 \u0444\u0430\u0439\u043B\u0430",file_path:"\u041F\u0443\u0442\u044C \u043A \u0444\u0430\u0439\u043B\u0443",file_size:"\u0420\u0430\u0437\u043C\u0435\u0440 \u0444\u0430\u0439\u043B\u0430",file_type:"\u0422\u0438\u043F \u0444\u0430\u0439\u043B\u0430",files:"\u0424\u0430\u0439\u043B\u044B",files_count_n:"{{count}} \u0444\u0430\u0439\u043B\u043E\u0432",files_no_info:"\u0418\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F \u043E \u0444\u0430\u0439\u043B\u0430\u0445 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",files_single:"\u041E\u0434\u0438\u043D \u0444\u0430\u0439\u043B",genres:"\u0416\u0430\u043D\u0440\u044B",info_hash:"\u0425\u044D\u0448 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",info_hashes:"\u0425\u044D\u0448\u0438 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",languages:"\u042F\u0437\u044B\u043A\u0438",leechers:"\u041B\u0438\u0447\u0435\u0440\u044B",magnet:"\u041C\u0430\u0433\u043D\u0435\u0442",magnet_links:"\u041C\u0430\u0433\u043D\u0435\u0442 \u0441\u0441\u044B\u043B\u043A\u0438",new_tag:"\u041D\u043E\u0432\u044B\u0439 \u0442\u0435\u0433",order_by:"\u0421\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043F\u043E",order_direction_toggle:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043D\u0430\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435",ordering:{files_count:"\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0444\u0430\u0439\u043B\u043E\u0432",info_hash:"\u0425\u044D\u0448 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",leechers:"\u041B\u0438\u0447\u0435\u0440\u044B",name:"\u0418\u043C\u044F",published_at:"\u0414\u0430\u0442\u0430 \u043F\u0443\u0431\u043B\u0438\u043A\u0430\u0446\u0438\u0438",relevance:"\u0410\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u043E\u0441\u0442\u044C",seeders:"\u0421\u0438\u0434\u0435\u0440\u044B",size:"\u0420\u0430\u0437\u043C\u0435\u0440",updated_at:"\u0414\u0430\u0442\u0430 \u043E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u044F"},original_release_date:"\u041E\u0440\u0438\u0433\u0438\u043D\u0430\u043B\u044C\u043D\u0430\u044F \u0434\u0430\u0442\u0430 \u0432\u044B\u043F\u0443\u0441\u043A\u0430",permalink:"\u041F\u043E\u0441\u0442\u043E\u044F\u043D\u043D\u0430\u044F \u0441\u0441\u044B\u043B\u043A\u0430",poster:"\u041F\u043E\u0441\u0442\u0435\u0440",published:"\u041E\u043F\u0443\u0431\u043B\u0438\u043A\u043E\u0432\u0430\u043D\u043E",rating:"\u0420\u0435\u0439\u0442\u0438\u043D\u0433",refresh:"\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u044B",s_l:"S / L",search:"\u041F\u043E\u0438\u0441\u043A",seeders:"\u0421\u0438\u0434\u0435\u0440\u044B",select_all:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0432\u0441\u0435",showing_x_of_y_files:"\u041F\u043E\u043A\u0430\u0437\u0430\u043D\u043E {{x}} \u0438\u0437 {{y}} \u0444\u0430\u0439\u043B\u043E\u0432",size:"\u0420\u0430\u0437\u043C\u0435\u0440",source:"\u0418\u0441\u0442\u043E\u0447\u043D\u0438\u043A \u0442\u043E\u0440\u0440\u0435\u043D\u0442\u0430",summary:"\u0421\u0432\u043E\u0434\u043A\u0430",title:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435",toggle_drawer:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u0430\u043D\u0435\u043B\u044C",votes_count_n:"{{count}} \u0433\u043E\u043B\u043E\u0441\u043E\u0432"},version:{bitmagnet_version:"\u0412\u0435\u0440\u0441\u0438\u044F bitmagnet {{version}}",unknown:"\u043D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E"}};var st={content_types:{plural:{all:"T\xFCm\xFC",audiobook:"Sesli Kitaplar",comic:"\xC7izgi Romanlar",ebook:"E-Kitaplar",movie:"Filmler",music:"M\xFCzik",null:"Bilinmiyor",software:"Yaz\u0131l\u0131m",tv_show:"TV Programlar\u0131",xxx:"XXX"},singular:{audiobook:"Sesli Kitap",comic:"\xC7izgi Roman",ebook:"E-Kitap",movie:"Film",music:"M\xFCzik",null:"Bilinmiyor",software:"Yaz\u0131l\u0131m",tv_show:"TV Program\u0131",xxx:"XXX"}},dashboard:{event:{created:"Olu\u015Fturuldu",failed:"Ba\u015Far\u0131s\u0131z",processed:"\u0130\u015Flendi",updated:"G\xFCncellendi"},interval:{all:"T\xFCm\xFC",days:"G\xFCnler",days_1:"1 g\xFCn",hours:"Saatler",hours_1:"1 saat",hours_12:"12 saat",hours_6:"6 saat",minutes:"Dakikalar",minutes_1:"1 dakika",minutes_15:"15 dakika",minutes_30:"30 dakika",minutes_5:"5 dakika",off:"Kapal\u0131",seconds_10:"10 saniye",seconds_30:"30 saniye",weeks_1:"1 hafta"},metrics:{event:"Olay",resolution:"\xC7\xF6z\xFCn\xFCrl\xFCk",throughput:"Verim",timeframe:"Zaman Dilimi"},queues:{created:"Olu\u015Fturuldu",created_at:"Olu\u015Fturulma tarihi",enqueue_jobs:"\u0130\u015Fleri Kuyru\u011Fa Al",enqueue_torrent_processing_batch:"Torrent \u0130\u015Fleme Paketini Kuyru\u011Fa Al",failed:"Ba\u015Far\u0131s\u0131z",force_rematch:"E\u015Fle\u015Fmi\u015F i\xE7eri\u011Fi yeniden e\u015Fle\u015Ftir",jobs_enqueued:"Kuyru\u011Fa Al\u0131nan \u0130\u015Fler",latency:"Gecikme",match_content_by_external_api_search:"D\u0131\u015F API aramas\u0131yla i\xE7eri\u011Fi e\u015Fle\u015Ftir",match_content_by_local_search:"Yerel aramayla i\xE7eri\u011Fi e\u015Fle\u015Ftir",payload:"Veri Y\xFCk\xFC",pending:"Beklemede",priority:"\xD6ncelik",process_orphaned_torrents_only:"Sadece sahipsiz torrentleri i\u015Fle",processed:"\u0130\u015Flendi",purge_jobs:"\u0130\u015Fleri Temizle",purge_queue_jobs:"Kuyruk \u0130\u015Flerini Temizle",queue:"Kuyruk",queue_purged:"Kuyruk Temizlendi",queues:"Kuyruklar",ran_at:"\xC7al\u0131\u015Ft\u0131r\u0131ld\u0131",retry:"Tekrar Dene",total_counts_by_status:"Duruma G\xF6re Toplam Say\u0131lar"}},facets:{content_type:"\u0130\xE7erik T\xFCr\xFC",file_type:"Dosya T\xFCr\xFC",genre:"T\xFCr",language:"Dil",queue:"Kuyruk",status:"Durum",torrent_source:"Torrent Kayna\u011F\u0131",torrent_tag:"Torrent Etiketi",video_resolution:"Video \xC7\xF6z\xFCn\xFCrl\xFC\u011F\xFC",video_source:"Video Kayna\u011F\u0131"},file_types:{archive:"Ar\u015Fiv",audio:"Ses",data:"Veri",document:"Belge",image:"G\xF6r\xFCnt\xFC",software:"Yaz\u0131l\u0131m",subtitles:"Altyaz\u0131lar",unknown:"Bilinmiyor",video:"Video"},general:{all:"T\xFCm\xFC",dismiss:"Kapat",error:"Hata",none:"Hi\xE7biri",refresh:"Yenile",status:"Durum"},health:{bitmagnet_is_status:"bitmagnet durumu {{status}}",check_failed_with_error:"Hata ile kontrol ba\u015Far\u0131s\u0131z oldu",component:"Bile\u015Fen",components:{dht:"DHT",postgres:"Postgres",tmdb:"TMDB"},dismiss:"Kapat",error:"Hata",status:"Durum",statuses:{degraded:"Azalm\u0131\u015F",down:"Kapal\u0131",error:"Hata",inactive:"Etkin de\u011Fil",started:"Ba\u015Flad\u0131",unknown:"Bilinmiyor",up:"\xC7al\u0131\u015F\u0131yor"},summary:"Sa\u011Fl\u0131k \xD6zeti",worker:"\u0130\u015F\xE7i",workers:{dht_crawler:"DHT taray\u0131c\u0131",http_server:"HTTP sunucusu",queue_server:"Kuyruk sunucusu"}},languages:{af:"Afrikanca",ar:"Arap\xE7a",az:"Azerice",be:"Beyaz Rus\xE7a",bg:"Bulgarca",bs:"Bo\u015Fnak\xE7a",ca:"Katalanca",ce:"\xC7e\xE7ence",co:"Korsikaca",cs:"\xC7ek\xE7e",cy:"Galce",da:"Danca",de:"Almanca",el:"Yunanca",en:"\u0130ngilizce",es:"\u0130spanyolca",et:"Estonca",eu:"Bask\xE7a",fa:"Fars\xE7a",fi:"Fince",fr:"Frans\u0131zca",he:"\u0130branice",hi:"Hint\xE7e",hr:"H\u0131rvat\xE7a",hu:"Macarca",hy:"Ermenice",id:"Endonezce",is:"\u0130zlandaca",it:"\u0130talyanca",ja:"Japonca",ka:"G\xFCrc\xFCce",ko:"Korece",ku:"K\xFCrt\xE7e",lt:"Litvanca",lv:"Letonca",mi:"Maorice",mk:"Makedonca",ml:"Malayalamca",mn:"Mo\u011Folca",ms:"Malayca",mt:"Maltaca",nl:"Flemenk\xE7e",no:"Norve\xE7\xE7e",pl:"Leh\xE7e",pt:"Portekizce",ro:"Romence",ru:"Rus\xE7a",sa:"Sanskrit\xE7e",sk:"Slovak\xE7a",sl:"Slovence",sm:"Samoaca",so:"Somalice",sr:"S\u0131rp\xE7a",sv:"\u0130sve\xE7\xE7e",ta:"Tamilce",th:"Tayca",tr:"T\xFCrk\xE7e",uk:"Ukraynaca",vi:"Vietnamca",yi:"Yidi\u015F",zh:"\xC7ince",zu:"Zuluca"},layout:{bitmagnet_on_service:"{{service}} \xFCzerinde bitmagnet",change_theme:"Temay\u0131 De\u011Fi\u015Ftir",external_links:"D\u0131\u015F Ba\u011Flant\u0131lar",sponsor:"Sponsor",support_bitmagnet:"bitmagnet'i Destekle",translate:"\xC7evir"},paginator:{first_page:"\u0130lk Sayfa",items_per_page:"Sayfa ba\u015F\u0131na \xF6\u011Fe",last_page:"Son Sayfa",next_page:"Sonraki Sayfa",previous_page:"\xD6nceki Sayfa",x_to_y:"{{x}} - {{y}} aras\u0131",x_to_y_of_z:"{{x}} ile {{y}} aras\u0131, toplam {{z}}"},routes:{admin:"Y\xF6netici",dashboard:"Kontrol Paneli",home:"Ana Sayfa",jobs:"G\xF6revler",queues:"Kuyruklar",torrents:"Torrentler",visualize:"G\xF6rselle\u015Ftir"},torrents:{clear_search:"Aramay\u0131 Temizle",copy:"Kopyala",copy_to_clipboard:"Panoya Kopyala",delete:"Sil",delete_action_cannot_be_undone:"Bu i\u015Flem geri al\u0131namaz",delete_are_you_sure:"Bu torrent'i silmek istedi\u011Finizden emin misiniz?",deselect_all:"T\xFCm Se\xE7imleri Kald\u0131r",edit_tags:"Etiketleri D\xFCzenle",episodes:"B\xF6l\xFCmler",external_links:"D\u0131\u015F Ba\u011Flant\u0131lar",file_index:"Dosya Dizini",file_path:"Dosya Yolu",file_size:"Dosya Boyutu",file_type:"Dosya T\xFCr\xFC",files:"Dosyalar",files_count_n:"{{count}} dosya",files_no_info:"Dosya bilgisi mevcut de\u011Fil",files_single:"Tek dosya",genres:"T\xFCrler",info_hash:"Bilgi hash'i",info_hashes:"Bilgi hash'leri",languages:"Diller",leechers:"Leechers",magnet:"Magnet",magnet_links:"Magnet Ba\u011Flant\u0131lar",new_tag:"Yeni etiket",order_by:"S\u0131ralama \xF6l\xE7\xFCt\xFC",order_direction_toggle:"Y\xF6n\xFC de\u011Fi\u015Ftir",ordering:{files_count:"Dosya say\u0131s\u0131",info_hash:"Bilgi hash'i",leechers:"Leechers",name:"Ad",published_at:"Yay\u0131nlanma tarihi",relevance:"Alaka d\xFCzeyi",seeders:"Seeders",size:"Boyut",updated_at:"G\xFCncellenme tarihi"},original_release_date:"Orijinal \xE7\u0131k\u0131\u015F tarihi",permalink:"Kal\u0131c\u0131 Ba\u011Flant\u0131",poster:"Poster",published:"Yay\u0131nland\u0131",rating:"Puan",refresh:"Sonu\xE7lar\u0131 Yenile",s_l:"S / L",search:"Ara",seeders:"Seeders",select_all:"T\xFCm\xFCn\xFC Se\xE7",showing_x_of_y_files:"{{y}} dosyan\u0131n {{x}} tanesi g\xF6steriliyor",size:"Boyut",source:"Torrent Kayna\u011F\u0131",summary:"\xD6zet",title:"Ba\u015Fl\u0131k",toggle_drawer:"\xC7ekmeceyi A\xE7/Kapat",votes_count_n:"{{count}} oy"},version:{bitmagnet_version:"bitmagnet versiyonu {{version}}",unknown:"bilinmiyor"}};var it={content_types:{plural:{all:"\u0423\u0441\u0456",audiobook:"\u0410\u0443\u0434\u0456\u043E\u043A\u043D\u0438\u0433\u0438",comic:"\u041A\u043E\u043C\u0456\u043A\u0441\u0438",ebook:"\u0415\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0456 \u043A\u043D\u0438\u0433\u0438",movie:"\u0424\u0456\u043B\u044C\u043C\u0438",music:"\u041C\u0443\u0437\u0438\u043A\u0430",null:"\u041D\u0435\u0432\u0456\u0434\u043E\u043C\u043E",software:"\u041F\u0440\u043E\u0433\u0440\u0430\u043C\u0438",tv_show:"\u0422\u0435\u043B\u0435\u0448\u043E\u0443",xxx:"\u041F\u043E\u0440\u043D\u043E"},singular:{audiobook:"\u0410\u0443\u0434\u0456\u043E\u043A\u043D\u0438\u0433\u0430",comic:"\u041A\u043E\u043C\u0456\u043A\u0441",ebook:"\u0415\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430 \u043A\u043D\u0438\u0433\u0430",movie:"\u0424\u0456\u043B\u044C\u043C",music:"\u041C\u0443\u0437\u0438\u043A\u0430",null:"\u041D\u0435\u0432\u0456\u0434\u043E\u043C\u043E",software:"\u041F\u0440\u043E\u0433\u0440\u0430\u043C\u0430",tv_show:"\u0422\u0435\u043B\u0435\u0448\u043E\u0443",xxx:"\u041F\u043E\u0440\u043D\u043E"}},dashboard:{event:{created:"\u0421\u0442\u0432\u043E\u0440\u0435\u043D\u043E",failed:"\u041F\u043E\u043C\u0438\u043B\u043A\u0430",processed:"\u041E\u0431\u0440\u043E\u0431\u043B\u0435\u043D\u043E",updated:"\u041E\u043D\u043E\u0432\u043B\u0435\u043D\u043E"},interval:{all:"\u0423\u0441\u0456",days:"\u0414\u043D\u0456",days_1:"1 \u0434\u0435\u043D\u044C",hours:"\u0413\u043E\u0434\u0438\u043D\u0438",hours_1:"1 \u0433\u043E\u0434\u0438\u043D\u0430",hours_12:"12 \u0433\u043E\u0434\u0438\u043D",hours_6:"6 \u0433\u043E\u0434\u0438\u043D",minutes:"\u0425\u0432\u0438\u043B\u0438\u043D\u0438",minutes_1:"1 \u0445\u0432\u0438\u043B\u0438\u043D\u0430",minutes_15:"15 \u0445\u0432\u0438\u043B\u0438\u043D",minutes_30:"30 \u0445\u0432\u0438\u043B\u0438\u043D",minutes_5:"5 \u0445\u0432\u0438\u043B\u0438\u043D",off:"\u0412\u0438\u043C\u043A\u043D\u0435\u043D\u043E",seconds_10:"10 \u0441\u0435\u043A\u0443\u043D\u0434",seconds_30:"30 \u0441\u0435\u043A\u0443\u043D\u0434",weeks_1:"1 \u0442\u0438\u0436\u0434\u0435\u043D\u044C"},metrics:{event:"\u041F\u043E\u0434\u0456\u044F",resolution:"\u0420\u043E\u0437\u0434\u0456\u043B\u044C\u043D\u0430 \u0437\u0434\u0430\u0442\u043D\u0456\u0441\u0442\u044C",throughput:"\u041F\u0440\u043E\u043F\u0443\u0441\u043A\u043D\u0430 \u0437\u0434\u0430\u0442\u043D\u0456\u0441\u0442\u044C",timeframe:"\u041F\u0440\u043E\u043C\u0456\u0436\u043E\u043A \u0447\u0430\u0441\u0443"},queues:{created:"\u0421\u0442\u0432\u043E\u0440\u0435\u043D\u043E",created_at:"\u0421\u0442\u0432\u043E\u0440\u0435\u043D\u043E \u043E",enqueue_jobs:"\u0414\u043E\u0434\u0430\u0442\u0438 \u0437\u0430\u0432\u0434\u0430\u043D\u043D\u044F \u0434\u043E \u0447\u0435\u0440\u0433\u0438",enqueue_torrent_processing_batch:"\u0414\u043E\u0434\u0430\u0442\u0438 \u043F\u0430\u043A\u0435\u0442 \u0434\u043B\u044F \u043E\u0431\u0440\u043E\u0431\u043A\u0438 \u0442\u043E\u0440\u0440\u0435\u043D\u0442\u0456\u0432",failed:"\u041F\u043E\u043C\u0438\u043B\u043A\u0430",force_rematch:"\u041F\u0440\u0438\u043C\u0443\u0441\u043E\u0432\u043E \u043F\u043E\u0432\u0442\u043E\u0440\u043D\u043E \u0437\u0456\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u0432\u0436\u0435 \u0437\u0456\u0441\u0442\u0430\u0432\u043B\u0435\u043D\u0438\u0439 \u043A\u043E\u043D\u0442\u0435\u043D\u0442",jobs_enqueued:"\u0417\u0430\u0432\u0434\u0430\u043D\u043D\u044F \u0434\u043E\u0434\u0430\u043D\u043E \u0432 \u0447\u0435\u0440\u0433\u0443",latency:"\u0417\u0430\u0442\u0440\u0438\u043C\u043A\u0430",match_content_by_external_api_search:"\u0417\u0456\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u043A\u043E\u043D\u0442\u0435\u043D\u0442 \u0447\u0435\u0440\u0435\u0437 \u0437\u043E\u0432\u043D\u0456\u0448\u043D\u0456\u0439 API",match_content_by_local_search:"\u0417\u0456\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u043A\u043E\u043D\u0442\u0435\u043D\u0442 \u0447\u0435\u0440\u0435\u0437 \u043B\u043E\u043A\u0430\u043B\u044C\u043D\u0438\u0439 \u043F\u043E\u0448\u0443\u043A",payload:"\u0414\u0430\u043D\u0456",pending:"\u0412 \u043E\u0447\u0456\u043A\u0443\u0432\u0430\u043D\u043D\u0456",priority:"\u041F\u0440\u0456\u043E\u0440\u0438\u0442\u0435\u0442",process_orphaned_torrents_only:"\u041E\u0431\u0440\u043E\u0431\u043B\u044F\u0442\u0438 \u043B\u0438\u0448\u0435 \xAB\u0441\u0438\u0440\u043E\u0442\u043B\u0438\u0432\u0456\xBB \u0442\u043E\u0440\u0440\u0435\u043D\u0442\u0438",processed:"\u041E\u0431\u0440\u043E\u0431\u043B\u0435\u043D\u043E",purge_jobs:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u0438 \u0437\u0430\u0432\u0434\u0430\u043D\u043D\u044F",purge_queue_jobs:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u0438 \u0437\u0430\u0432\u0434\u0430\u043D\u043D\u044F \u0447\u0435\u0440\u0433\u0438",queue:"\u0427\u0435\u0440\u0433\u0430",queue_purged:"\u0427\u0435\u0440\u0433\u0430 \u043E\u0447\u0438\u0449\u0435\u043D\u0430",queues:"\u0427\u0435\u0440\u0433\u0438",ran_at:"\u0417\u0430\u043F\u0443\u0449\u0435\u043D\u043E \u043E",retry:"\u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0438",total_counts_by_status:"\u0417\u0430\u0433\u0430\u043B\u044C\u043D\u0430 \u043A\u0456\u043B\u044C\u043A\u0456\u0441\u0442\u044C \u0437\u0430 \u0441\u0442\u0430\u0442\u0443\u0441\u0430\u043C\u0438"}},facets:{content_type:"\u0422\u0438\u043F \u043A\u043E\u043D\u0442\u0435\u043D\u0442\u0443",file_type:"\u0422\u0438\u043F \u0444\u0430\u0439\u043B\u0443",genre:"\u0416\u0430\u043D\u0440",language:"\u041C\u043E\u0432\u0430",queue:"\u0427\u0435\u0440\u0433\u0430",status:"\u0421\u0442\u0430\u0442\u0443\u0441",torrent_source:"\u0414\u0436\u0435\u0440\u0435\u043B\u043E \u0442\u043E\u0440\u0440\u0435\u043D\u0442\u0430",torrent_tag:"\u0422\u0435\u0433 \u0442\u043E\u0440\u0440\u0435\u043D\u0442\u0430",video_resolution:"\u0420\u043E\u0437\u0434\u0456\u043B\u044C\u043D\u0430 \u0437\u0434\u0430\u0442\u043D\u0456\u0441\u0442\u044C \u0432\u0456\u0434\u0435\u043E",video_source:"\u0414\u0436\u0435\u0440\u0435\u043B\u043E \u0432\u0456\u0434\u0435\u043E"},file_types:{archive:"\u0410\u0440\u0445\u0456\u0432",audio:"\u0410\u0443\u0434\u0456\u043E",data:"\u0414\u0430\u043D\u0456",document:"\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442",image:"\u0417\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u043D\u044F",software:"\u041F\u0440\u043E\u0433\u0440\u0430\u043C\u0438",subtitles:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u0438",unknown:"\u041D\u0435\u0432\u0456\u0434\u043E\u043C\u043E",video:"\u0412\u0456\u0434\u0435\u043E"},general:{all:"\u0423\u0441\u0456",dismiss:"\u0417\u0430\u043A\u0440\u0438\u0442\u0438",error:"\u041F\u043E\u043C\u0438\u043B\u043A\u0430",none:"\u041D\u0435\u043C\u0430\u0454",refresh:"\u041E\u043D\u043E\u0432\u0438\u0442\u0438",status:"\u0421\u0442\u0430\u0442\u0443\u0441"},health:{bitmagnet_is_status:"bitmagnet {{status}}",check_failed_with_error:"\u041F\u0435\u0440\u0435\u0432\u0456\u0440\u043A\u0430 \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u043B\u0430\u0441\u044F \u043F\u043E\u043C\u0438\u043B\u043A\u043E\u044E",component:"\u041A\u043E\u043C\u043F\u043E\u043D\u0435\u043D\u0442",components:{dht:"DHT",postgres:"Postgres",tmdb:"TMDB"},dismiss:"\u0417\u0430\u043A\u0440\u0438\u0442\u0438",error:"\u041F\u043E\u043C\u0438\u043B\u043A\u0430",status:"\u0421\u0442\u0430\u0442\u0443\u0441",statuses:{degraded:"\u0417\u043D\u0438\u0436\u0435\u043D\u0430 \u043F\u0440\u043E\u0434\u0443\u043A\u0442\u0438\u0432\u043D\u0456\u0441\u0442\u044C",down:"\u041D\u0435 \u043F\u0440\u0430\u0446\u044E\u0454",error:"\u041F\u043E\u043C\u0438\u043B\u043A\u0430",inactive:"\u041D\u0435\u0430\u043A\u0442\u0438\u0432\u043D\u0438\u0439",started:"\u0417\u0430\u043F\u0443\u0449\u0435\u043D\u043E",unknown:"\u041E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F",up:"\u041F\u0440\u0430\u0446\u044E\u0454"},summary:"\u0417\u0432\u0435\u0434\u0435\u043D\u043D\u044F \u0441\u0442\u0430\u043D\u0443",worker:"\u041F\u0440\u0430\u0446\u0456\u0432\u043D\u0438\u043A",workers:{dht_crawler:"DHT \u0441\u043A\u0430\u043D\u0435\u0440",http_server:"HTTP \u0441\u0435\u0440\u0432\u0435\u0440",queue_server:"\u0421\u0435\u0440\u0432\u0435\u0440 \u0447\u0435\u0440\u0433\u0438"}},languages:{af:"\u0410\u0444\u0440\u0438\u043A\u0430\u0430\u043D\u0441",ar:"\u0410\u0440\u0430\u0431\u0441\u044C\u043A\u0430",az:"\u0410\u0437\u0435\u0440\u0431\u0430\u0439\u0434\u0436\u0430\u043D\u0441\u044C\u043A\u0430",be:"\u0411\u0456\u043B\u043E\u0440\u0443\u0441\u044C\u043A\u0430",bg:"\u0411\u043E\u043B\u0433\u0430\u0440\u0441\u044C\u043A\u0430",bs:"\u0411\u043E\u0441\u043D\u0456\u0439\u0441\u044C\u043A\u0430",ca:"\u041A\u0430\u0442\u0430\u043B\u043E\u043D\u0441\u044C\u043A\u0430",ce:"\u0427\u0435\u0447\u0435\u043D\u0441\u044C\u043A\u0430",co:"\u041A\u043E\u0440\u0441\u0438\u043A\u0430\u043D\u0441\u044C\u043A\u0430",cs:"\u0427\u0435\u0441\u044C\u043A\u0430",cy:"\u0412\u0430\u043B\u043B\u0456\u0439\u0441\u044C\u043A\u0430",da:"\u0414\u0430\u043D\u0441\u044C\u043A\u0430",de:"\u041D\u0456\u043C\u0435\u0446\u044C\u043A\u0430",el:"\u0413\u0440\u0435\u0446\u044C\u043A\u0430",en:"\u0410\u043D\u0433\u043B\u0456\u0439\u0441\u044C\u043A\u0430",es:"\u0406\u0441\u043F\u0430\u043D\u0441\u044C\u043A\u0430",et:"\u0415\u0441\u0442\u043E\u043D\u0441\u044C\u043A\u0430",eu:"\u0411\u0430\u0441\u043A\u0441\u044C\u043A\u0430",fa:"\u041F\u0435\u0440\u0441\u044C\u043A\u0430",fi:"\u0424\u0456\u043D\u0441\u044C\u043A\u0430",fr:"\u0424\u0440\u0430\u043D\u0446\u0443\u0437\u044C\u043A\u0430",he:"\u0406\u0432\u0440\u0438\u0442",hi:"\u0425\u0456\u043D\u0434\u0456",hr:"\u0425\u043E\u0440\u0432\u0430\u0442\u0441\u044C\u043A\u0430",hu:"\u0423\u0433\u043E\u0440\u0441\u044C\u043A\u0430",hy:"\u0412\u0456\u0440\u043C\u0435\u043D\u0441\u044C\u043A\u0430",id:"\u0406\u043D\u0434\u043E\u043D\u0435\u0437\u0456\u0439\u0441\u044C\u043A\u0430",is:"\u0406\u0441\u043B\u0430\u043D\u0434\u0441\u044C\u043A\u0430",it:"\u0406\u0442\u0430\u043B\u0456\u0439\u0441\u044C\u043A\u0430",ja:"\u042F\u043F\u043E\u043D\u0441\u044C\u043A\u0430",ka:"\u0413\u0440\u0443\u0437\u0438\u043D\u0441\u044C\u043A\u0430",ko:"\u041A\u043E\u0440\u0435\u0439\u0441\u044C\u043A\u0430",ku:"\u041A\u0443\u0440\u0434\u0441\u044C\u043A\u0430",lt:"\u041B\u0438\u0442\u043E\u0432\u0441\u044C\u043A\u0430",lv:"\u041B\u0430\u0442\u0438\u0441\u044C\u043A\u0430",mi:"\u041C\u0430\u043E\u0440\u0456",mk:"\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u044C\u043A\u0430",ml:"\u041C\u0430\u043B\u0430\u044F\u043B\u0430\u043C",mn:"\u041C\u043E\u043D\u0433\u043E\u043B\u044C\u0441\u044C\u043A\u0430",ms:"\u041C\u0430\u043B\u0430\u0439\u0441\u044C\u043A\u0430",mt:"\u041C\u0430\u043B\u044C\u0442\u0456\u0439\u0441\u044C\u043A\u0430",nl:"\u041D\u0456\u0434\u0435\u0440\u043B\u0430\u043D\u0434\u0441\u044C\u043A\u0430",no:"\u041D\u043E\u0440\u0432\u0435\u0437\u044C\u043A\u0430",pl:"\u041F\u043E\u043B\u044C\u0441\u044C\u043A\u0430",pt:"\u041F\u043E\u0440\u0442\u0443\u0433\u0430\u043B\u044C\u0441\u044C\u043A\u0430",ro:"\u0420\u0443\u043C\u0443\u043D\u0441\u044C\u043A\u0430",ru:"\u0420\u043E\u0441\u0456\u0439\u0441\u044C\u043A\u0430",sa:"\u0421\u0430\u043D\u0441\u043A\u0440\u0438\u0442",sk:"\u0421\u043B\u043E\u0432\u0430\u0446\u044C\u043A\u0430",sl:"\u0421\u043B\u043E\u0432\u0435\u043D\u0441\u044C\u043A\u0430",sm:"\u0421\u0430\u043C\u043E\u0430\u043D\u0441\u044C\u043A\u0430",so:"\u0421\u043E\u043C\u0430\u043B\u0456\u0439\u0441\u044C\u043A\u0430",sr:"\u0421\u0435\u0440\u0431\u0441\u044C\u043A\u0430",sv:"\u0428\u0432\u0435\u0434\u0441\u044C\u043A\u0430",ta:"\u0422\u0430\u043C\u0456\u043B\u044C\u0441\u044C\u043A\u0430",th:"\u0422\u0430\u0439\u0441\u044C\u043A\u0430",tr:"\u0422\u0443\u0440\u0435\u0446\u044C\u043A\u0430",uk:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",vi:"\u0412'\u0454\u0442\u043D\u0430\u043C\u0441\u044C\u043A\u0430",yi:"\u0407\u0434\u0438\u0448",zh:"\u041A\u0438\u0442\u0430\u0439\u0441\u044C\u043A\u0430",zu:"\u0417\u0443\u043B\u0443\u0441\u044C\u043A\u0430"},layout:{bitmagnet_on_service:"bitmagnet \u043D\u0430 {{service}}",change_theme:"\u0417\u043C\u0456\u043D\u0438\u0442\u0438 \u0442\u0435\u043C\u0443",external_links:"\u0417\u043E\u0432\u043D\u0456\u0448\u043D\u0456 \u043F\u043E\u0441\u0438\u043B\u0430\u043D\u043D\u044F",sponsor:"\u0421\u043F\u043E\u043D\u0441\u043E\u0440",support_bitmagnet:"\u041F\u0456\u0434\u0442\u0440\u0438\u043C\u0430\u0442\u0438 bitmagnet",translate:"\u041F\u0435\u0440\u0435\u043A\u043B\u0430\u0441\u0442\u0438"},paginator:{first_page:"\u041F\u0435\u0440\u0448\u0430 \u0441\u0442\u043E\u0440\u0456\u043D\u043A\u0430",items_per_page:"\u0415\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432 \u043D\u0430 \u0441\u0442\u043E\u0440\u0456\u043D\u0446\u0456",last_page:"\u041E\u0441\u0442\u0430\u043D\u043D\u044F \u0441\u0442\u043E\u0440\u0456\u043D\u043A\u0430",next_page:"\u041D\u0430\u0441\u0442\u0443\u043F\u043D\u0430 \u0441\u0442\u043E\u0440\u0456\u043D\u043A\u0430",previous_page:"\u041F\u043E\u043F\u0435\u0440\u0435\u0434\u043D\u044F \u0441\u0442\u043E\u0440\u0456\u043D\u043A\u0430",x_to_y:"{{x}} \u0434\u043E {{y}}",x_to_y_of_z:"{{x}} \u0434\u043E {{y}} \u0437 {{z}}"},routes:{admin:"\u0410\u0434\u043C\u0456\u043D\u0456\u0441\u0442\u0440\u0430\u0442\u043E\u0440",dashboard:"\u041F\u0430\u043D\u0435\u043B\u044C \u0443\u043F\u0440\u0430\u0432\u043B\u0456\u043D\u043D\u044F",home:"\u0413\u043E\u043B\u043E\u0432\u043D\u0430",jobs:"\u0417\u0430\u0432\u0434\u0430\u043D\u043D\u044F",queues:"\u0427\u0435\u0440\u0433\u0438",torrents:"\u0422\u043E\u0440\u0440\u0435\u043D\u0442\u0438",visualize:"\u0412\u0456\u0437\u0443\u0430\u043B\u0456\u0437\u0443\u0432\u0430\u0442\u0438"},torrents:{clear_search:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u0438 \u043F\u043E\u0448\u0443\u043A",copy:"\u041A\u043E\u043F\u0456\u044E\u0432\u0430\u0442\u0438",copy_to_clipboard:"\u041A\u043E\u043F\u0456\u044E\u0432\u0430\u0442\u0438 \u0432 \u0431\u0443\u0444\u0435\u0440 \u043E\u0431\u043C\u0456\u043D\u0443",delete:"\u0412\u0438\u0434\u0430\u043B\u0438\u0442\u0438",delete_action_cannot_be_undone:"\u0426\u044E \u0434\u0456\u044E \u043D\u0435 \u043C\u043E\u0436\u043D\u0430 \u0441\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438",delete_are_you_sure:"\u0412\u0438 \u0432\u043F\u0435\u0432\u043D\u0435\u043D\u0456, \u0449\u043E \u0445\u043E\u0447\u0435\u0442\u0435 \u0432\u0438\u0434\u0430\u043B\u0438\u0442\u0438 \u0446\u0435\u0439 \u0442\u043E\u0440\u0440\u0435\u043D\u0442?",deselect_all:"\u0417\u043D\u044F\u0442\u0438 \u0432\u0438\u0434\u0456\u043B\u0435\u043D\u043D\u044F",edit_tags:"\u0420\u0435\u0434\u0430\u0433\u0443\u0432\u0430\u0442\u0438 \u0442\u0435\u0433\u0438",episodes:"\u0415\u043F\u0456\u0437\u043E\u0434\u0438",external_links:"\u0417\u043E\u0432\u043D\u0456\u0448\u043D\u0456 \u043F\u043E\u0441\u0438\u043B\u0430\u043D\u043D\u044F",file_index:"\u0406\u043D\u0434\u0435\u043A\u0441 \u0444\u0430\u0439\u043B\u0443",file_path:"\u0428\u043B\u044F\u0445 \u0434\u043E \u0444\u0430\u0439\u043B\u0443",file_size:"\u0420\u043E\u0437\u043C\u0456\u0440 \u0444\u0430\u0439\u043B\u0443",file_type:"\u0422\u0438\u043F \u0444\u0430\u0439\u043B\u0443",files:"\u0424\u0430\u0439\u043B\u0438",files_count_n:"{{count}} \u0444\u0430\u0439\u043B\u0456\u0432",files_no_info:"\u0406\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0456\u044F \u043F\u0440\u043E \u0444\u0430\u0439\u043B\u0438 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",files_single:"\u041E\u0434\u0438\u043D \u0444\u0430\u0439\u043B",genres:"\u0416\u0430\u043D\u0440\u0438",info_hash:"\u0425\u0435\u0448 \u0456\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0456\u0457",info_hashes:"\u0425\u0435\u0448\u0456 \u0456\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0456\u0457",languages:"\u041C\u043E\u0432\u0438",leechers:"\u041B\u0456\u0447\u0435\u0440\u0438",magnet:"\u041C\u0430\u0433\u043D\u0435\u0442",magnet_links:"\u041C\u0430\u0433\u043D\u0435\u0442-\u043F\u043E\u0441\u0438\u043B\u0430\u043D\u043D\u044F",new_tag:"\u041D\u043E\u0432\u0438\u0439 \u0442\u0435\u0433",order_by:"\u0421\u043E\u0440\u0442\u0443\u0432\u0430\u0442\u0438 \u0437\u0430",order_direction_toggle:"\u0417\u043C\u0456\u043D\u0438\u0442\u0438 \u043D\u0430\u043F\u0440\u044F\u043C\u043E\u043A",ordering:{files_count:"\u041A\u0456\u043B\u044C\u043A\u0456\u0441\u0442\u044C \u0444\u0430\u0439\u043B\u0456\u0432",info_hash:"\u0425\u0435\u0448 \u0456\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0456\u0457",leechers:"\u041B\u0456\u0447\u0435\u0440\u0438",name:"\u041D\u0430\u0437\u0432\u0430",published_at:"\u0414\u0430\u0442\u0430 \u043F\u0443\u0431\u043B\u0456\u043A\u0430\u0446\u0456\u0457",relevance:"\u0410\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u0456\u0441\u0442\u044C",seeders:"\u0421\u0456\u0434\u0435\u0440\u0438",size:"\u0420\u043E\u0437\u043C\u0456\u0440",updated_at:"\u0414\u0430\u0442\u0430 \u043E\u043D\u043E\u0432\u043B\u0435\u043D\u043D\u044F"},original_release_date:"\u0414\u0430\u0442\u0430 \u043E\u0440\u0438\u0433\u0456\u043D\u0430\u043B\u044C\u043D\u043E\u0433\u043E \u0432\u0438\u043F\u0443\u0441\u043A\u0443",permalink:"\u041F\u043E\u0441\u0442\u0456\u0439\u043D\u0435 \u043F\u043E\u0441\u0438\u043B\u0430\u043D\u043D\u044F",poster:"\u041F\u043E\u0441\u0442\u0435\u0440",published:"\u041E\u043F\u0443\u0431\u043B\u0456\u043A\u043E\u0432\u0430\u043D\u043E",rating:"\u0420\u0435\u0439\u0442\u0438\u043D\u0433",refresh:"\u041E\u043D\u043E\u0432\u0438\u0442\u0438 \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u0438",s_l:"S / L",search:"\u041F\u043E\u0448\u0443\u043A",seeders:"\u0421\u0456\u0434\u0435\u0440\u0438",select_all:"\u0412\u0438\u0431\u0440\u0430\u0442\u0438 \u0432\u0441\u0456",showing_x_of_y_files:"\u041F\u043E\u043A\u0430\u0437\u0430\u043D\u043E {{x}} \u0437 {{y}} \u0444\u0430\u0439\u043B\u0456\u0432",size:"\u0420\u043E\u0437\u043C\u0456\u0440",source:"\u0414\u0436\u0435\u0440\u0435\u043B\u043E \u0442\u043E\u0440\u0440\u0435\u043D\u0442\u0430",summary:"\u0417\u0432\u0435\u0434\u0435\u043D\u043D\u044F",title:"\u041D\u0430\u0437\u0432\u0430",toggle_drawer:"\u041F\u0435\u0440\u0435\u043C\u043A\u043D\u0443\u0442\u0438 \u043F\u0430\u043D\u0435\u043B\u044C",votes_count_n:"{{count}} \u0433\u043E\u043B\u043E\u0441\u0456\u0432"},version:{bitmagnet_version:"\u0412\u0435\u0440\u0441\u0456\u044F bitmagnet {{version}}",unknown:"\u043D\u0435\u0432\u0456\u0434\u043E\u043C\u043E"}};var lt={content_types:{plural:{all:"\u5168\u90E8",audiobook:"\u6709\u58F0\u4E66",comic:"\u6F2B\u753B",ebook:"\u7535\u5B50\u4E66",movie:"\u7535\u5F71",music:"\u97F3\u4E50",null:"\u672A\u77E5",software:"\u8F6F\u4EF6",tv_show:"\u7535\u89C6\u8282\u76EE",xxx:"\u8272\u60C5"},singular:{audiobook:"\u6709\u58F0\u4E66",comic:"\u6F2B\u753B",ebook:"\u7535\u5B50\u4E66",movie:"\u7535\u5F71",music:"\u97F3\u4E50",null:"\u672A\u77E5",software:"\u8F6F\u4EF6",tv_show:"\u7535\u89C6\u8282\u76EE",xxx:"\u8272\u60C5"}},dashboard:{event:{created:"\u5DF2\u521B\u5EFA",failed:"\u5931\u8D25",processed:"\u5DF2\u5904\u7406",updated:"\u5DF2\u66F4\u65B0"},interval:{all:"\u5168\u90E8",days:"\u5929",days_1:"1\u5929",hours:"\u5C0F\u65F6",hours_1:"1\u5C0F\u65F6",hours_12:"12\u5C0F\u65F6",hours_6:"6\u5C0F\u65F6",minutes:"\u5206\u949F",minutes_1:"1\u5206\u949F",minutes_15:"15\u5206\u949F",minutes_30:"30\u5206\u949F",minutes_5:"5\u5206\u949F",off:"\u5173\u95ED",seconds_10:"10\u79D2",seconds_30:"30\u79D2",weeks_1:"1\u5468"},metrics:{event:"\u4E8B\u4EF6",resolution:"\u5206\u8FA8\u7387",throughput:"\u541E\u5410\u91CF",timeframe:"\u65F6\u95F4\u8303\u56F4"},queues:{created:"\u5DF2\u521B\u5EFA",created_at:"\u521B\u5EFA\u4E8E",enqueue_jobs:"\u52A0\u5165\u961F\u5217\u7684\u4EFB\u52A1",enqueue_torrent_processing_batch:"\u52A0\u5165\u961F\u5217\u7684\u79CD\u5B50\u5904\u7406\u6279\u6B21",failed:"\u5931\u8D25",force_rematch:"\u5F3A\u5236\u91CD\u65B0\u5339\u914D\u5DF2\u5339\u914D\u7684\u5185\u5BB9",jobs_enqueued:"\u52A0\u5165\u961F\u5217\u7684\u4EFB\u52A1",latency:"\u5EF6\u8FDF",match_content_by_external_api_search:"\u901A\u8FC7\u5916\u90E8API\u641C\u7D22\u5339\u914D\u5185\u5BB9",match_content_by_local_search:"\u901A\u8FC7\u672C\u5730\u641C\u7D22\u5339\u914D\u5185\u5BB9",payload:"\u6709\u6548\u8F7D\u8377",pending:"\u5F85\u5904\u7406",priority:"\u4F18\u5148\u7EA7",process_orphaned_torrents_only:"\u4EC5\u5904\u7406\u5B64\u7ACB\u7684\u79CD\u5B50",processed:"\u5DF2\u5904\u7406",purge_jobs:"\u6E05\u9664\u4EFB\u52A1",purge_queue_jobs:"\u6E05\u9664\u961F\u5217\u4EFB\u52A1",queue:"\u961F\u5217",queue_purged:"\u961F\u5217\u5DF2\u6E05\u9664",queues:"\u961F\u5217",ran_at:"\u8FD0\u884C\u4E8E",retry:"\u91CD\u8BD5",total_counts_by_status:"\u6309\u72B6\u6001\u7EDF\u8BA1\u603B\u6570"}},facets:{content_type:"\u5185\u5BB9\u7C7B\u578B",file_type:"\u6587\u4EF6\u7C7B\u578B",genre:"\u7C7B\u578B",language:"\u8BED\u8A00",queue:"\u961F\u5217",status:"\u72B6\u6001",torrent_source:"\u79CD\u5B50\u6765\u6E90",torrent_tag:"\u79CD\u5B50\u6807\u7B7E",video_resolution:"\u89C6\u9891\u5206\u8FA8\u7387",video_source:"\u89C6\u9891\u6765\u6E90"},file_types:{archive:"\u6863\u6848",audio:"\u97F3\u9891",data:"\u6570\u636E",document:"\u6587\u6863",image:"\u56FE\u50CF",software:"\u8F6F\u4EF6",subtitles:"\u5B57\u5E55",unknown:"\u672A\u77E5",video:"\u89C6\u9891"},general:{all:"\u5168\u90E8",dismiss:"\u5FFD\u7565",error:"\u9519\u8BEF",none:"\u65E0",refresh:"\u5237\u65B0",status:"\u72B6\u6001"},health:{bitmagnet_is_status:"bitmagnet\u662F{{status}}",check_failed_with_error:"\u68C0\u67E5\u5931\u8D25\uFF0C\u9519\u8BEF",component:"\u7EC4\u4EF6",components:{dht:"DHT",postgres:"Postgres",tmdb:"TMDB"},dismiss:"\u5FFD\u7565",error:"\u9519\u8BEF",status:"\u72B6\u6001",statuses:{degraded:"\u964D\u7EA7",down:"\u5173\u95ED",error:"\u9519\u8BEF",inactive:"\u4E0D\u6D3B\u8DC3",started:"\u5DF2\u542F\u52A8",unknown:"\u672A\u77E5",up:"\u8FD0\u884C\u4E2D"},summary:"\u5065\u5EB7\u6982\u8FF0",worker:"\u5DE5\u4F5C\u8005",workers:{dht_crawler:"DHT\u722C\u866B",http_server:"HTTP\u670D\u52A1\u5668",queue_server:"\u961F\u5217\u670D\u52A1\u5668"}},languages:{af:"\u5357\u975E\u8377\u5170\u8BED",ar:"\u963F\u62C9\u4F2F\u8BED",az:"\u963F\u585E\u62DC\u7586\u8BED",be:"\u767D\u4FC4\u7F57\u65AF\u8BED",bg:"\u4FDD\u52A0\u5229\u4E9A\u8BED",bs:"\u6CE2\u65AF\u5C3C\u4E9A\u8BED",ca:"\u52A0\u6CF0\u7F57\u5C3C\u4E9A\u8BED",ce:"\u8F66\u81E3\u8BED",co:"\u79D1\u897F\u5609\u8BED",cs:"\u6377\u514B\u8BED",cy:"\u5A01\u5C14\u58EB\u8BED",da:"\u4E39\u9EA6\u8BED",de:"\u5FB7\u8BED",el:"\u5E0C\u814A\u8BED",en:"\u82F1\u8BED",es:"\u897F\u73ED\u7259\u8BED",et:"\u7231\u6C99\u5C3C\u4E9A\u8BED",eu:"\u5DF4\u65AF\u514B\u8BED",fa:"\u6CE2\u65AF\u8BED",fi:"\u82AC\u5170\u8BED",fr:"\u6CD5\u8BED",he:"\u5E0C\u4F2F\u6765\u8BED",hi:"\u5370\u5730\u8BED",hr:"\u514B\u7F57\u5730\u4E9A\u8BED",hu:"\u5308\u7259\u5229\u8BED",hy:"\u4E9A\u7F8E\u5C3C\u4E9A\u8BED",id:"\u5370\u5EA6\u5C3C\u897F\u4E9A\u8BED",is:"\u51B0\u5C9B\u8BED",it:"\u610F\u5927\u5229\u8BED",ja:"\u65E5\u8BED",ka:"\u683C\u9C81\u5409\u4E9A\u8BED",ko:"\u97E9\u8BED",ku:"\u5E93\u5C14\u5FB7\u8BED",lt:"\u7ACB\u9676\u5B9B\u8BED",lv:"\u62C9\u8131\u7EF4\u4E9A\u8BED",mi:"\u6BDB\u5229\u8BED",mk:"\u9A6C\u5176\u987F\u8BED",ml:"\u9A6C\u62C9\u96C5\u62C9\u59C6\u8BED",mn:"\u8499\u53E4\u8BED",ms:"\u9A6C\u6765\u8BED",mt:"\u9A6C\u8033\u4ED6\u8BED",nl:"\u8377\u5170\u8BED",no:"\u632A\u5A01\u8BED",pl:"\u6CE2\u5170\u8BED",pt:"\u8461\u8404\u7259\u8BED",ro:"\u7F57\u9A6C\u5C3C\u4E9A\u8BED",ru:"\u4FC4\u8BED",sa:"\u68B5\u8BED",sk:"\u65AF\u6D1B\u4F10\u514B\u8BED",sl:"\u65AF\u6D1B\u6587\u5C3C\u4E9A\u8BED",sm:"\u8428\u6469\u4E9A\u8BED",so:"\u7D22\u9A6C\u91CC\u8BED",sr:"\u585E\u5C14\u7EF4\u4E9A\u8BED",sv:"\u745E\u5178\u8BED",ta:"\u6CF0\u7C73\u5C14\u8BED",th:"\u6CF0\u8BED",tr:"\u571F\u8033\u5176\u8BED",uk:"\u4E4C\u514B\u5170\u8BED",vi:"\u8D8A\u5357\u8BED",yi:"\u610F\u7B2C\u7EEA\u8BED",zh:"\u4E2D\u6587",zu:"\u7956\u9C81\u8BED"},layout:{bitmagnet_on_service:"bitmagnet\u5728{{service}}",change_theme:"\u66F4\u6539\u4E3B\u9898",external_links:"\u5916\u90E8\u94FE\u63A5",sponsor:"\u8D5E\u52A9\u5546",support_bitmagnet:"\u652F\u6301bitmagnet",translate:"\u7FFB\u8BD1"},paginator:{first_page:"\u7B2C\u4E00\u9875",items_per_page:"\u6BCF\u9875\u9879\u76EE\u6570",last_page:"\u6700\u540E\u4E00\u9875",next_page:"\u4E0B\u4E00\u9875",previous_page:"\u4E0A\u4E00\u9875",x_to_y:"{{x}}\u5230{{y}}",x_to_y_of_y:"__\u7F3A\u5931__",x_to_y_of_z:"{{x}}\u5230{{y}}\uFF0C\u5171{{z}}"},routes:{admin:"\u7BA1\u7406\u5458",dashboard:"\u4EEA\u8868\u76D8",home:"\u9996\u9875",jobs:"\u4EFB\u52A1",queues:"\u961F\u5217",torrents:"\u79CD\u5B50",visualize:"\u53EF\u89C6\u5316"},torrents:{clear_search:"\u6E05\u9664\u641C\u7D22",copy:"\u590D\u5236",copy_to_clipboard:"\u590D\u5236\u5230\u526A\u8D34\u677F",delete:"\u5220\u9664",delete_action_cannot_be_undone:"\u6B64\u64CD\u4F5C\u65E0\u6CD5\u64A4\u9500",delete_are_you_sure:"\u60A8\u786E\u5B9A\u8981\u5220\u9664\u6B64\u79CD\u5B50\u5417\uFF1F",deselect_all:"\u53D6\u6D88\u5168\u9009",edit_tags:"\u7F16\u8F91\u6807\u7B7E",episodes:"\u5267\u96C6",external_links:"\u5916\u90E8\u94FE\u63A5",file_index:"\u6587\u4EF6\u7D22\u5F15",file_path:"\u6587\u4EF6\u8DEF\u5F84",file_size:"\u6587\u4EF6\u5927\u5C0F",file_type:"\u6587\u4EF6\u7C7B\u578B",files:"\u6587\u4EF6",files_count_n:"{{count}}\u4E2A\u6587\u4EF6",files_no_info:"\u65E0\u6587\u4EF6\u4FE1\u606F",files_single:"\u5355\u4E2A\u6587\u4EF6",genres:"\u7C7B\u578B",info_hash:"\u4FE1\u606F\u54C8\u5E0C",info_hashes:"\u4FE1\u606F\u54C8\u5E0C",languages:"\u8BED\u8A00",leechers:"\u4E0B\u8F7D\u8005",magnet:"\u78C1\u529B\u94FE\u63A5",magnet_links:"\u78C1\u529B\u94FE\u63A5",new_tag:"\u65B0\u6807\u7B7E",order_by:"\u6392\u5E8F\u4F9D\u636E",order_direction_toggle:"\u5207\u6362\u65B9\u5411",ordering:{files_count:"\u6587\u4EF6\u6570",info_hash:"\u4FE1\u606F\u54C8\u5E0C",leechers:"\u4E0B\u8F7D\u8005",name:"\u540D\u79F0",published_at:"\u53D1\u5E03\u4E8E",relevance:"\u76F8\u5173\u6027",seeders:"\u4E0A\u4F20\u8005",size:"\u5927\u5C0F",updated_at:"\u66F4\u65B0\u4E8E"},original_release_date:"\u539F\u59CB\u53D1\u5E03\u65E5\u671F",permalink:"\u6C38\u4E45\u94FE\u63A5",poster:"\u6D77\u62A5",published:"\u5DF2\u53D1\u5E03",rating:"\u8BC4\u5206",refresh:"\u5237\u65B0\u7ED3\u679C",s_l:"S / L",search:"\u641C\u7D22",seeders:"\u4E0A\u4F20\u8005",select_all:"\u5168\u9009",showing_x_of_y_files:"\u663E\u793A{{x}}\u4E2A\uFF0C\u5171{{y}}\u4E2A\u6587\u4EF6",size:"\u5927\u5C0F",source:"\u79CD\u5B50\u6765\u6E90",summary:"\u6458\u8981",title:"\u6807\u9898",toggle_drawer:"\u5207\u6362\u62BD\u5C49",votes_count_n:"{{count}}\u7968"},version:{bitmagnet_version:"bitmagnet\u7248\u672C{{version}}",unknown:"\u672A\u77E5"}};var W={ar:Ye,de:Je,en:Ze,es:$e,fr:et,hi:tt,ja:at,nl:ot,pt:rt,ru:nt,tr:st,uk:it,zh:lt};var ut=(()=>{class t{getTranslation(e){return Z(this,null,function*(){if(e in W){let a=W[e];return ct(a)}else return Promise.reject(new Error(`Translation not found: ${e}`))})}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275prov=p({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Bt=["__missing__","__fallback__"],ct=t=>Object.fromEntries(Object.entries(t).flatMap(([o,e])=>{if(typeof e=="object")e=ct(e);else if(typeof e=="string"&&Bt.includes(e))return[];return[[o,e]]}));var dt={providers:[he({eventCoalescing:!0}),Te(Qe,Se()),We("animations"),X(pe()),X(),Me({config:{availableLangs:[{id:"ar",label:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629"},{id:"de",label:"Deutsch"},{id:"en",label:"English"},{id:"es",label:"Espa\xF1ol"},{id:"fr",label:"Fran\xE7ais"},{id:"hi",label:"\u0939\u093F\u0928\u094D\u0926\u0940"},{id:"ja",label:"\u65E5\u672C\u8A9E"},{id:"nl",label:"Nederlands"},{id:"pt",label:"Portugu\xEAs"},{id:"ru",label:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439"},{id:"tr",label:"T\xFCrk\xE7e"},{id:"uk",label:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430"},{id:"zh",label:"\u4E2D\u6587"}],defaultLang:"en",fallbackLang:"en",missingHandler:{useFallbackTranslation:!0},reRenderOnLangChange:!0,prodMode:!1},loader:ut}),Ae(ze())]};var Rt=new P("Browser Storage",{providedIn:"root",factory:()=>localStorage}),L=(()=>{class t{constructor(e){this.storage=e}get(e){return this.storage.getItem(e)}set(e,a){this.storage.setItem(e,a)}remove(e){this.storage.removeItem(e)}clear(){this.storage.clear()}static{this.\u0275fac=function(a){return new(a||t)(ae(Rt))}}static{this.\u0275prov=p({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Ht={classic:{key:"classic",label:"Classic",dark:!1},clean:{key:"clean",label:"Clean",dark:!1},neon:{key:"neon",label:"Neon",dark:!0},tundra:{key:"tundra",label:"Tundra",dark:!0}},F=Ht,_t="classic",mt="tundra";var Q="bitmagnet-theme",B=(()=>{class t{constructor(){this.document=u(D),this.browserStorage=u(L),this._window=this.document.defaultView,this.selectedThemeSubject=new $(void 0),this.selectedTheme$=this.selectedThemeSubject.asObservable(),this.themes=Object.values(F),this.getPreferredTheme=()=>this.getStoredTheme()??this.getAutoTheme(),this.getStoredTheme=()=>{let e=this.browserStorage.get(Q);return e&&e in F?e:void 0},this.getAutoTheme=()=>this.windowMatchMediaPrefersDark()?.matches?mt:_t,this.setTheme=e=>{this.setActiveTheme(e),this.setStoredTheme(this.selectedTheme??"auto")},this.setActiveTheme=e=>{e==="auto"||!(e in F)?(e=this.getAutoTheme(),this.selectedTheme=void 0):this.selectedTheme=e,this.document.documentElement.setAttribute("data-bitmagnet-theme",e),this.selectedThemeSubject.next(this.selectedTheme)},this.setStoredTheme=e=>{e==="auto"?this.browserStorage.remove(Q):this.browserStorage.set(Q,e)},this.setActiveTheme(this.getPreferredTheme()),this.windowMatchMediaPrefersDark()?.addEventListener("change",()=>{this.getStoredTheme()||this.setActiveTheme(this.getAutoTheme())})}windowMatchMediaPrefersDark(){return this._window&&this._window.matchMedia?this._window.matchMedia("(prefers-color-scheme: dark)"):void 0}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275prov=p({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Gt=t=>({version:t});function Nt(t,o){if(t&1&&(w(0),s(1,"span",1),c(2),n(),T()),t&2){let e=o.$implicit,a=_();i(),h("matTooltip",e("version.bitmagnet_version",me(2,Gt,a.versionUnknown?e("version.unknown"):a.version))),i(),f(a.version)}}var Y="v-unknown",ht=(()=>{class t{constructor(){this.apollo=u(Pe),this.version=Y,this.versionUnknown=!0}ngOnInit(){this.apollo.query({query:je}).pipe(ee(e=>e.data.version)).subscribe({next:e=>{e?(this.version=e,this.versionUnknown=!1):(this.version=Y,this.versionUnknown=!0)},error:()=>{this.version=Y}})}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=g({type:t,selectors:[["app-version"]],standalone:!0,features:[b],decls:1,vars:0,consts:[[4,"transloco"],[1,"version",3,"matTooltip"]],template:function(a,r){a&1&&x(0,Nt,3,4,"ng-container",0)},dependencies:[I,j,E,Ie],encapsulation:2})}}return t})();var pt="bitmagnet-language",gt=(()=>{class t{constructor(){this.transloco=u(Ce),this.browserStorage=u(L),this.availableLanguages=this.transloco.getAvailableLangs(),this.transloco.setActiveLang(this.getPreferredLanguage())}getPreferredLanguage(){return this.getStoredLanguage()??this.getAutoLanguage()}getStoredLanguage(){let e=this.browserStorage.get(pt);return e&&this.transloco.isLang(e)?e:void 0}getAutoLanguage(){let e=navigator?.language?.split("-")?.[0];return this.transloco.isLang(e)?e:"en"}setLanguage(e){this.transloco.setActiveLang(e),this.browserStorage.set(pt,e)}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275prov=p({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Kt=["element"],J=(()=>{class t{static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=g({type:t,selectors:[["app-theme-emitter-color"]],viewQuery:function(a,r){if(a&1&&M(Kt,5),a&2){let l;z(l=A())&&(r.element=l.first)}},inputs:{color:"color"},standalone:!0,features:[b],decls:2,vars:2,consts:[["element",""]],template:function(a,r){a&1&&d(0,"div",null,0),a&2&&v("theme-emitter-color "+r.color)},encapsulation:2})}}return t})();var Xt=["lightdark"];function Ut(t,o){if(t&1&&d(0,"app-theme-emitter-color",1),t&2){let e=o.$implicit;h("color",e)}}var ft=(()=>{class t{constructor(){this.service=u(Ue),this.themeManager=u(B),this.themeColors=Xe,this.themeManager.selectedTheme$.subscribe(()=>{this.updateThemeColors()})}ngAfterViewInit(){this.updateThemeColors()}updateThemeColors(){let e={};for(let r of this.elements??[])e[r.color]=getComputedStyle(r.element.nativeElement).color;let a=this.lightdark&&getComputedStyle(this.lightdark.nativeElement).color==="rgb(0, 0, 0)"?"dark":"light";this.service.setInfo({colors:e,type:a})}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=g({type:t,selectors:[["app-theme-emitter"]],viewQuery:function(a,r){if(a&1&&(M(Xt,5),M(J,5)),a&2){let l;z(l=A())&&(r.lightdark=l.first),z(l=A())&&(r.elements=l)}},standalone:!0,features:[b],decls:5,vars:0,consts:[["lightdark",""],[3,"color"],[1,"theme-emitter-lightdark"]],template:function(a,r){a&1&&(w(0),S(1,Ut,1,1,"app-theme-emitter-color",1,ce),d(3,"div",2,0),T()),a&2&&(i(),C(r.themeColors))},dependencies:[J],styles:["[_nghost-%COMP%]{display:none}.theme-emitter-color.background[_ngcontent-%COMP%]{color:var(--mat-app-background-color)}.theme-emitter-color.foreground[_ngcontent-%COMP%]{color:var(--mat-app-text-color)}"]})}}return t})();var Qt=["*"],Yt=(t,o)=>o.key,Jt=(t,o)=>o.id,Zt=()=>({service:"Discord"}),$t=()=>({service:"GitHub"}),ea=()=>({service:"OpenCollective"});function ta(t,o){if(t&1&&(s(0,"h1")(1,"a",22),d(2,"mat-icon",23),s(3,"span",24),c(4,"bitmagnet"),n(),d(5,"app-version"),n()(),s(6,"nav")(7,"a",25,3),d(9,"mat-icon",23),c(10),n(),s(11,"a",26,4)(13,"mat-icon"),c(14,"dashboard"),n(),c(15),n()()),t&2){let e=k(8),a=k(12),r=_().$implicit;i(7),v(e.isActive?"active":""),i(3),K(" ",r("routes.torrents")," "),i(),v(a.isActive?"active":""),i(4),K(" ",r("routes.dashboard")," ")}}function aa(t,o){if(t&1&&(s(0,"h1")(1,"a",27),d(2,"mat-icon",23),n()(),s(3,"button",28,4)(5,"mat-icon"),c(6,"dashboard"),n()()),t&2){let e=k(4),a=_().$implicit;i(3),v(e.isActive?"active":""),h("matTooltip",a("routes.dashboard"))}}function oa(t,o){if(t&1){let e=G();s(0,"a",29),N("click",function(){let r=R(e).$implicit,l=_(2);return H(l.themeManager.setTheme(r.key))}),s(1,"mat-icon"),c(2),n(),c(3),n()}if(t&2){let e=o.$implicit,a=_(2);v(e.key===a.themeManager.selectedTheme?"active":""),i(2),f(e.dark?"dark_mode":"light_mode"),i(),f(e.label)}}function ra(t,o){if(t&1){let e=G();s(0,"a",30),N("click",function(){let r=R(e).$implicit,l=_(2);return H(l.translateManager.setLanguage(r.id))}),c(1),n()}if(t&2){let e=o.$implicit,a=_().$implicit,r=_();v(e.id===r.translateManager.getPreferredLanguage()?"active":""),h("matTooltip",e.id===r.translateManager.getPreferredLanguage()?void 0:a("languages."+e.id)),i(),f(e.label)}}function na(t,o){if(t&1&&(s(0,"a",19)(1,"mat-icon"),c(2,"favorite"),n()()),t&2){let e=_().$implicit;h("matTooltip",e("layout.sponsor"))}}function sa(t,o){if(t&1&&(s(0,"a",20)(1,"mat-icon"),c(2,"favorite"),n(),c(3),n()),t&2){let e=_().$implicit;h("matTooltip",e("layout.support_bitmagnet")),i(3),f(e("layout.sponsor"))}}function ia(t,o){if(t&1&&(w(0),s(1,"mat-toolbar",6),x(2,ta,16,6)(3,aa,7,3),d(4,"span",7)(5,"app-health-widget"),s(6,"button",8)(7,"mat-icon"),c(8,"apparel"),n()(),s(9,"mat-menu",9,0),S(11,oa,4,4,"a",10,Yt),n(),s(13,"button",11)(14,"mat-icon"),c(15,"translate"),n()(),s(16,"mat-menu",9,1),S(18,ra,2,4,"a",12,Jt),n(),s(20,"button",13),d(21,"mat-icon",14),n(),s(22,"mat-menu",9,2)(24,"a",15),c(25,"bitmagnet.io"),n(),s(26,"a",16),c(27),n(),s(28,"a",17),c(29),n(),s(30,"a",18),c(31),n()(),x(32,na,3,1,"a",19)(33,sa,4,2,"a",20),n(),s(34,"div",21),_e(35),n(),d(36,"app-theme-emitter"),T()),t&2){let e=o.$implicit,a=k(10),r=k(17),l=k(23),m=_();i(2),O(m.breakpoints.sizeAtLeast("Medium")?2:3),i(4),h("matMenuTriggerFor",a)("matTooltip",e("layout.change_theme")),i(5),C(m.themeManager.themes),i(2),h("matMenuTriggerFor",r)("matTooltip",e("layout.translate")),i(5),C(m.translateManager.availableLanguages),i(2),h("matTooltip",e("layout.external_links"))("matMenuTriggerFor",l),i(7),f(e("layout.bitmagnet_on_service",q(11,Zt))),i(2),f(e("layout.bitmagnet_on_service",q(12,$t))),i(2),f(e("layout.bitmagnet_on_service",q(13,ea))),i(),O(m.breakpoints.sizeAtLeast("Medium")?33:32)}}var bt=(()=>{class t{constructor(){this.themeManager=u(B),this.translateManager=u(gt),this.breakpoints=u(Oe),this.title=u(be),this.router=u(ke),this.health=u(Ge)}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=g({type:t,selectors:[["app-layout"]],standalone:!0,features:[b],ngContentSelectors:Qt,decls:1,vars:0,consts:[["themesMenu","matMenu"],["languagesMenu","matMenu"],["externalLinksMenu","matMenu"],["linkTorrents","routerLinkActive"],["linkDashboard","routerLinkActive"],[4,"transloco"],[1,"toolbar-header"],[1,"spacer"],["mat-icon-button","","aria-label","Theme",3,"matMenuTriggerFor","matTooltip"],[1,"layout-header-menu"],["mat-menu-item","",3,"class"],["mat-icon-button","",3,"matMenuTriggerFor","matTooltip"],["mat-menu-item","","matTooltipPosition","right","matTooltipShowDelay","500",3,"matTooltip","class"],["mat-icon-button","",3,"matTooltip","matMenuTriggerFor"],["svgIcon","external-link"],["mat-menu-item","","href","https://bitmagnet.io","target","_blank"],["mat-menu-item","","href","https://discord.gg/6mFNszX8qM","target","_blank"],["mat-menu-item","","href","https://github.com/bitmagnet-io/bitmagnet","target","_blank"],["mat-menu-item","","href","https://opencollective.com/bitmagnet","target","_blank"],["mat-icon-button","","href","https://opencollective.com/bitmagnet","target","_blank",1,"button-sponsor",3,"matTooltip"],["mat-button","","href","https://opencollective.com/bitmagnet","target","_blank",1,"button-sponsor",3,"matTooltip"],[1,"app-content"],["routerLink","torrents"],["svgIcon","magnet"],[1,"name"],["mat-button","","routerLink","torrents","routerLinkActive",""],["mat-button","","routerLink","dashboard","routerLinkActive",""],["routerLink","/torrents"],["mat-icon-button","","routerLink","dashboard","routerLinkActive","",3,"matTooltip"],["mat-menu-item","",3,"click"],["mat-menu-item","","matTooltipPosition","right","matTooltipShowDelay","500",3,"click","matTooltip"]],template:function(a,r){a&1&&(de(),x(0,ia,37,14,"ng-container",5))},dependencies:[I,qe,Ee,De,Fe,Re,Be,He,Ve,j,xe,we,E,Ke,Ne,ft,ht],styles:[".mat-toolbar.toolbar-header[_ngcontent-%COMP%]{position:sticky;top:0;z-index:10;--mat-toolbar-title-text-size: 22px;--mat-toolbar-standard-height: 56px;--mat-icon-color: #fff;padding:0 20px;--mdc-text-button-label-text-size: 15px}.mat-toolbar.toolbar-header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin-top:-2px;margin-right:20px}.mat-toolbar.toolbar-header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none}.mat-toolbar.toolbar-header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{position:relative;top:4px}.mat-toolbar.toolbar-header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{margin-left:10px;margin-right:16px}.mat-toolbar.toolbar-header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] app-version[_ngcontent-%COMP%]{font-size:13px}.mat-toolbar.toolbar-header[_ngcontent-%COMP%] .mdc-button[_ngcontent-%COMP%]{margin-left:6px;--mdc-text-button-label-text-weight: bold;--mat-text-button-horizontal-padding: 12px;--mdc-text-button-container-height: 30px}.mat-toolbar.toolbar-header[_ngcontent-%COMP%] nav[_ngcontent-%COMP%]{position:absolute;left:340px;top:0;height:56px;padding-top:14px}.mat-toolbar.toolbar-header[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin-right:10px}.mat-toolbar.toolbar-header[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] mat-icon[data-mat-icon-name=magnet][_ngcontent-%COMP%]{margin-top:-5px;overflow:visible}.app-content[_ngcontent-%COMP%]{z-index:1}.layout-header-menu[_ngcontent-%COMP%] a.active[_ngcontent-%COMP%]{font-weight:700}"]})}}return t})();var yt=(t,o)=>t.setDefaultFontSetClass("material-icons-outlined","material-symbols-outlined").addSvgIcon("magnet",o.bypassSecurityTrustResourceUrl("magnet.svg")).addSvgIcon("external-link",o.bypassSecurityTrustResourceUrl("external-link.svg")).addSvgIcon("binary",o.bypassSecurityTrustResourceUrl("binary.svg")).addSvgIcon("queue",o.bypassSecurityTrustResourceUrl("queue.svg"));var vt=(()=>{class t{constructor(e,a){this.title="bitmagnet",yt(e,a)}static{this.\u0275fac=function(a){return new(a||t)(V(Le),V(ye))}}static{this.\u0275cmp=g({type:t,selectors:[["app-root"]],standalone:!0,features:[b],decls:2,vars:0,template:function(a,r){a&1&&(s(0,"app-layout"),d(1,"router-outlet"),n())},dependencies:[ve,bt]})}}return t})();fe(vt,dt).catch(t=>console.error(t)); +import{a as ze,b as Ae,d as Xe,e as Ue}from"./chunk-VHNPENGG.js";import{a as Oe}from"./chunk-TC5EWLZ6.js";import{a as Ge,c as Ne,d as Ke}from"./chunk-IYIUYS3O.js";import{H as je,J as Ie,Ua as I,a as Ce,b as E,c as Me,i as Pe,p as qe,pa as Le,qa as Fe,r as De,s as Ee,sa as Be,ta as Re,ua as He,xa as Ve,ya as j}from"./chunk-HB55W55I.js";import"./chunk-6XXA7HXI.js";import{c as X,d as pe,e as ge,f as fe,g as be,h as ye,k as ve,l as ke,m as xe,n as we,o as Te,p as Se}from"./chunk-ZBBMS7J5.js";import{$b as _,B as ee,Cb as x,Ea as R,Fa as H,Fc as he,Hb as h,Kb as v,Mb as O,Nb as ce,Oa as re,Ob as S,Pb as C,Qb as s,Rb as n,Sb as d,Sc as D,Tb as w,Ub as T,Wa as ne,Wb as G,Zb as N,ac as de,bc as _e,d as Z,ec as M,fc as z,gc as A,ia as te,jc as k,ka as p,kb as i,kc as c,l as $,lb as V,lc as f,mb as se,mc as K,na as P,ob as ie,pa as ae,pc as b,qa as u,qb as le,qc as q,rc as me,tb as ue,ua as g,ya as oe}from"./chunk-FJILXII2.js";var xt="@",wt=(()=>{class t{constructor(e,a,r,l,m){this.doc=e,this.delegate=a,this.zone=r,this.animationType=l,this.moduleImpl=m,this._rendererFactoryPromise=null,this.scheduler=u(ie,{optional:!0}),this.loadingSchedulerFn=u(Tt,{optional:!0})}ngOnDestroy(){this._engine?.flush()}loadImpl(){let e=()=>this.moduleImpl??import("./chunk-R6LGJCCV.js").then(r=>r),a;return this.loadingSchedulerFn?a=this.loadingSchedulerFn(e):a=e(),a.catch(r=>{throw new te(5300,!1)}).then(({\u0275createEngine:r,\u0275AnimationRendererFactory:l})=>{this._engine=r(this.animationType,this.doc);let m=new l(this.delegate,this._engine,this.zone);return this.delegate=m,m})}createRenderer(e,a){let r=this.delegate.createRenderer(e,a);if(r.\u0275type===0)return r;typeof r.throwOnSyntheticProps=="boolean"&&(r.throwOnSyntheticProps=!1);let l=new U(r);return a?.data?.animation&&!this._rendererFactoryPromise&&(this._rendererFactoryPromise=this.loadImpl()),this._rendererFactoryPromise?.then(m=>{let kt=m.createRenderer(e,a);l.use(kt),this.scheduler?.notify(10)}).catch(m=>{l.use(r)}),l}begin(){this.delegate.begin?.()}end(){this.delegate.end?.()}whenRenderingDone(){return this.delegate.whenRenderingDone?.()??Promise.resolve()}static{this.\u0275fac=function(a){se()}}static{this.\u0275prov=p({token:t,factory:t.\u0275fac})}}return t})(),U=class{constructor(o){this.delegate=o,this.replay=[],this.\u0275type=1}use(o){if(this.delegate=o,this.replay!==null){for(let e of this.replay)e(o);this.replay=null}}get data(){return this.delegate.data}destroy(){this.replay=null,this.delegate.destroy()}createElement(o,e){return this.delegate.createElement(o,e)}createComment(o){return this.delegate.createComment(o)}createText(o){return this.delegate.createText(o)}get destroyNode(){return this.delegate.destroyNode}appendChild(o,e){this.delegate.appendChild(o,e)}insertBefore(o,e,a,r){this.delegate.insertBefore(o,e,a,r)}removeChild(o,e,a){this.delegate.removeChild(o,e,a)}selectRootElement(o,e){return this.delegate.selectRootElement(o,e)}parentNode(o){return this.delegate.parentNode(o)}nextSibling(o){return this.delegate.nextSibling(o)}setAttribute(o,e,a,r){this.delegate.setAttribute(o,e,a,r)}removeAttribute(o,e,a){this.delegate.removeAttribute(o,e,a)}addClass(o,e){this.delegate.addClass(o,e)}removeClass(o,e){this.delegate.removeClass(o,e)}setStyle(o,e,a,r){this.delegate.setStyle(o,e,a,r)}removeStyle(o,e,a){this.delegate.removeStyle(o,e,a)}setProperty(o,e,a){this.shouldReplay(e)&&this.replay.push(r=>r.setProperty(o,e,a)),this.delegate.setProperty(o,e,a)}setValue(o,e){this.delegate.setValue(o,e)}listen(o,e,a){return this.shouldReplay(e)&&this.replay.push(r=>r.listen(o,e,a)),this.delegate.listen(o,e,a)}shouldReplay(o){return this.replay!==null&&o.startsWith(xt)}},Tt=new P("");function We(t="animations"){return ue("NgAsyncAnimations"),oe([{provide:le,useFactory:(o,e,a)=>new wt(o,e,a,t),deps:[D,ge,re]},{provide:ne,useValue:t==="noop"?"NoopAnimations":"BrowserAnimations"}])}var Qe=[{path:"",pathMatch:"full",redirectTo:"torrents"},{path:"torrents",loadComponent:()=>import("./chunk-VRXOKWLG.js").then(t=>t.TorrentsComponent),children:[{path:"",loadComponent:()=>import("./chunk-2SUTZ3QE.js").then(t=>t.TorrentsSearchComponent)},{path:"permalink/:infoHash",loadComponent:()=>import("./chunk-5TMWQQMY.js").then(t=>t.TorrentPermalinkComponent)}]},{path:"dashboard",loadComponent:()=>import("./chunk-IXRQ7PJP.js").then(t=>t.DashboardComponent),children:[{path:"",loadComponent:()=>import("./chunk-5HTYRI4Q.js").then(t=>t.DashboardHomeComponent)},{path:"queues",loadComponent:()=>import("./chunk-EGT2L66S.js").then(t=>t.QueueDashboardComponent),children:[{path:"visualize",loadComponent:()=>import("./chunk-FRHSCC4F.js").then(t=>t.QueueVisualizeComponent)},{path:"jobs",loadComponent:()=>import("./chunk-GGYCQB7Z.js").then(t=>t.QueueJobsComponent)},{path:"admin",loadComponent:()=>import("./chunk-EJQDXU6U.js").then(t=>t.QueueAdminComponent)}]},{path:"torrents",loadComponent:()=>import("./chunk-6BQYS3OK.js").then(t=>t.TorrentsDashboardComponent)}]}];var Ye={content_types:{plural:{all:"\u0627\u0644\u0643\u0644",audiobook:"\u0627\u0644\u0643\u062A\u0628 \u0627\u0644\u0635\u0648\u062A\u064A\u0629",comic:"\u0627\u0644\u0642\u0635\u0635 \u0627\u0644\u0645\u0635\u0648\u0631\u0629",ebook:"\u0627\u0644\u0643\u062A\u0628 \u0627\u0644\u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A\u0629",movie:"\u0627\u0644\u0623\u0641\u0644\u0627\u0645",music:"\u0627\u0644\u0645\u0648\u0633\u064A\u0642\u0649",null:"\u063A\u064A\u0631 \u0645\u0639\u0631\u0648\u0641",software:"\u0627\u0644\u0628\u0631\u0645\u062C\u064A\u0627\u062A",tv_show:"\u0628\u0631\u0627\u0645\u062C \u0627\u0644\u062A\u0644\u0641\u0627\u0632",xxx:"\u0627\u0644\u0625\u0628\u0627\u062D\u064A\u0629"},singular:{audiobook:"\u0643\u062A\u0627\u0628 \u0635\u0648\u062A\u064A",comic:"\u0642\u0635\u0629 \u0645\u0635\u0648\u0631\u0629",ebook:"\u0643\u062A\u0627\u0628 \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",movie:"\u0641\u064A\u0644\u0645",music:"\u0645\u0648\u0633\u064A\u0642\u0649",null:"\u063A\u064A\u0631 \u0645\u0639\u0631\u0648\u0641",software:"\u0628\u0631\u0645\u062C\u064A\u0627\u062A",tv_show:"\u0628\u0631\u0646\u0627\u0645\u062C \u062A\u0644\u0641\u0632\u064A\u0648\u0646\u064A",xxx:"\u0627\u0644\u0625\u0628\u0627\u062D\u064A\u0629"}},dashboard:{event:{created:"\u062A\u0645 \u0627\u0644\u0625\u0646\u0634\u0627\u0621",failed:"\u0641\u0634\u0644",processed:"\u062A\u0645\u062A \u0627\u0644\u0645\u0639\u0627\u0644\u062C\u0629",updated:"\u062A\u0645 \u0627\u0644\u062A\u062D\u062F\u064A\u062B"},interval:{all:"\u0627\u0644\u0643\u0644",days:"\u064A\u0648\u0645",days_1:"\u064A\u0648\u0645 \u0648\u0627\u062D\u062F",hours:"\u0633\u0627\u0639\u0629",hours_1:"\u0633\u0627\u0639\u0629 \u0648\u0627\u062D\u062F\u0629",hours_12:"12 \u0633\u0627\u0639\u0629",hours_6:"6 \u0633\u0627\u0639\u0629",minutes:"\u062F\u0642\u064A\u0642\u0629",minutes_1:"1 \u062F\u0642\u064A\u0642\u0629",minutes_15:"15 \u062F\u0642\u0627\u0626\u0642",minutes_30:"30 \u062F\u0642\u0627\u0626\u0642",minutes_5:"5 \u062F\u0642\u0627\u0626\u0642",off:"\u0625\u064A\u0642\u0627\u0641",seconds_10:"10 \u062B\u0648\u0627\u0646\u064A",seconds_30:"30 \u062B\u0627\u0646\u064A\u0629",weeks_1:"1 \u0623\u0633\u0628\u0648\u0639"},metrics:{event:"\u062D\u062F\u062B",resolution:"\u0627\u0644\u062F\u0642\u0629",throughput:"\u0645\u0639\u062F\u0644 \u0627\u0644\u0646\u0642\u0644",timeframe:"\u0627\u0644\u0625\u0637\u0627\u0631 \u0627\u0644\u0632\u0645\u0646\u064A"},queues:{created:"\u062A\u0645 \u0627\u0644\u0625\u0646\u0634\u0627\u0621",created_at:"\u062A\u0645 \u0627\u0644\u0625\u0646\u0634\u0627\u0621 \u0641\u064A",enqueue_jobs:"\u0625\u062F\u0631\u0627\u062C \u0627\u0644\u0648\u0638\u0627\u0626\u0641 \u0641\u064A \u0627\u0644\u0637\u0627\u0628\u0648\u0631",enqueue_torrent_processing_batch:"\u0625\u062F\u0631\u0627\u062C \u062F\u0641\u0639\u0629 \u0645\u0639\u0627\u0644\u062C\u0629 \u0627\u0644\u062A\u0648\u0631\u0646\u062A \u0641\u064A \u0627\u0644\u0637\u0627\u0628\u0648\u0631",failed:"\u0641\u0634\u0644",force_rematch:"\u0641\u0631\u0636 \u0625\u0639\u0627\u062F\u0629 \u0627\u0644\u0645\u0637\u0627\u0628\u0642\u0629 \u0644\u0644\u0645\u062D\u062A\u0648\u0649 \u0627\u0644\u0645\u0637\u0627\u0628\u0642 \u0628\u0627\u0644\u0641\u0639\u0644",jobs_enqueued:"\u0627\u0644\u0648\u0638\u0627\u0626\u0641 \u0627\u0644\u0645\u062F\u0631\u062C\u0629 \u0641\u064A \u0627\u0644\u0637\u0627\u0628\u0648\u0631",latency:"\u0627\u0644\u062A\u0623\u062E\u064A\u0631",match_content_by_external_api_search:"\u0645\u0637\u0627\u0628\u0642\u0629 \u0627\u0644\u0645\u062D\u062A\u0648\u0649 \u0645\u0646 \u062E\u0644\u0627\u0644 \u0627\u0644\u0628\u062D\u062B \u0641\u064A API \u0627\u0644\u062E\u0627\u0631\u062C\u064A\u0629",match_content_by_local_search:"\u0645\u0637\u0627\u0628\u0642\u0629 \u0627\u0644\u0645\u062D\u062A\u0648\u0649 \u0645\u0646 \u062E\u0644\u0627\u0644 \u0627\u0644\u0628\u062D\u062B \u0627\u0644\u0645\u062D\u0644\u064A",payload:"\u0627\u0644\u062D\u0645\u0648\u0644\u0629",pending:"\u0642\u064A\u062F \u0627\u0644\u0627\u0646\u062A\u0638\u0627\u0631",priority:"\u0627\u0644\u0623\u0648\u0644\u0648\u064A\u0629",process_orphaned_torrents_only:"\u0645\u0639\u0627\u0644\u062C\u0629 \u0627\u0644\u062A\u0648\u0631\u0646\u062A \u0627\u0644\u064A\u062A\u064A\u0645 \u0641\u0642\u0637",processed:"\u062A\u0645\u062A \u0627\u0644\u0645\u0639\u0627\u0644\u062C\u0629",purge_jobs:"\u062A\u0646\u0638\u064A\u0641 \u0627\u0644\u0648\u0638\u0627\u0626\u0641",purge_queue_jobs:"\u062A\u0646\u0638\u064A\u0641 \u0648\u0638\u0627\u0626\u0641 \u0627\u0644\u0637\u0627\u0628\u0648\u0631",queue:"\u0627\u0644\u0637\u0627\u0628\u0648\u0631",queue_purged:"\u062A\u0645 \u062A\u0646\u0638\u064A\u0641 \u0627\u0644\u0637\u0627\u0628\u0648\u0631",queues:"\u0627\u0644\u0637\u0648\u0627\u0628\u064A\u0631",ran_at:"\u062A\u0645 \u0627\u0644\u062A\u0634\u063A\u064A\u0644 \u0641\u064A",retry:"\u0625\u0639\u0627\u062F\u0629 \u0627\u0644\u0645\u062D\u0627\u0648\u0644\u0629",total_counts_by_status:"\u0625\u062C\u0645\u0627\u0644\u064A \u0627\u0644\u0639\u062F \u062D\u0633\u0628 \u0627\u0644\u062D\u0627\u0644\u0629"}},facets:{content_type:"\u0646\u0648\u0639 \u0627\u0644\u0645\u062D\u062A\u0648\u0649",file_type:"\u0646\u0648\u0639 \u0627\u0644\u0645\u0644\u0641",genre:"\u0627\u0644\u0646\u0648\u0639",language:"\u0627\u0644\u0644\u063A\u0629",queue:"\u0627\u0644\u0637\u0627\u0628\u0648\u0631",status:"\u0627\u0644\u062D\u0627\u0644\u0629",torrent_source:"\u0645\u0635\u062F\u0631 \u0627\u0644\u062A\u0648\u0631\u0646\u062A",torrent_tag:"\u0639\u0644\u0627\u0645\u0629 \u0627\u0644\u062A\u0648\u0631\u0646\u062A",video_resolution:"\u062F\u0642\u0629 \u0627\u0644\u0641\u064A\u062F\u064A\u0648",video_source:"\u0645\u0635\u062F\u0631 \u0627\u0644\u0641\u064A\u062F\u064A\u0648"},file_types:{archive:"\u0623\u0631\u0634\u064A\u0641",audio:"\u0635\u0648\u062A",data:"\u0628\u064A\u0627\u0646\u0627\u062A",document:"\u0648\u062B\u064A\u0642\u0629",image:"\u0635\u0648\u0631\u0629",software:"\u0628\u0631\u0645\u062C\u064A\u0627\u062A",subtitles:"\u062A\u0631\u062C\u0645\u0627\u062A",unknown:"\u063A\u064A\u0631 \u0645\u0639\u0631\u0648\u0641",video:"\u0641\u064A\u062F\u064A\u0648"},general:{all:"\u0627\u0644\u0643\u0644",dismiss:"\u0631\u0641\u0636",error:"\u062E\u0637\u0623",none:"\u0644\u0627 \u0634\u064A\u0621",refresh:"\u062A\u062D\u062F\u064A\u062B",status:"\u0627\u0644\u062D\u0627\u0644\u0629"},health:{bitmagnet_is_status:"bitmagnet \u0647\u0648 {{status}}",check_failed_with_error:"\u0641\u0634\u0644 \u0627\u0644\u062A\u062D\u0642\u0642 \u0645\u0639 \u062E\u0637\u0623",component:"\u0645\u0643\u0648\u0646",components:{dht:"DHT",postgres:"Postgres",tmdb:"TMDB"},dismiss:"\u0631\u0641\u0636",error:"\u062E\u0637\u0623",status:"\u0627\u0644\u062D\u0627\u0644\u0629",statuses:{degraded:"\u0645\u062A\u062F\u0647\u0648\u0631",down:"\u0645\u0639\u0637\u0644",error:"\u062E\u0637\u0623",inactive:"\u063A\u064A\u0631 \u0646\u0634\u0637",started:"\u0628\u062F\u0623",unknown:"\u0645\u0639\u0644\u0642",up:"\u0646\u0634\u0637"},summary:"\u0645\u0644\u062E\u0635 \u0627\u0644\u0635\u062D\u0629",worker:"\u0639\u0627\u0645\u0644",workers:{dht_crawler:"\u0632\u0627\u062D\u0641 DHT",http_server:"\u062E\u0627\u062F\u0645 HTTP",queue_server:"\u062E\u0627\u062F\u0645 \u0627\u0644\u0637\u0627\u0628\u0648\u0631"}},languages:{af:"\u0627\u0644\u0623\u0641\u0631\u064A\u0643\u0627\u0646\u064A\u0629",ar:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",az:"\u0627\u0644\u0623\u0630\u0631\u0628\u064A\u062C\u0627\u0646\u064A\u0629",be:"\u0627\u0644\u0628\u064A\u0644\u0627\u0631\u0648\u0633\u064A\u0629",bg:"\u0627\u0644\u0628\u0644\u063A\u0627\u0631\u064A\u0629",bs:"\u0627\u0644\u0628\u0648\u0633\u0646\u064A\u0629",ca:"\u0627\u0644\u0643\u0627\u062A\u0627\u0644\u0627\u0646\u064A\u0629",ce:"\u0627\u0644\u0634\u064A\u0634\u0627\u0646\u064A\u0629",co:"\u0627\u0644\u0643\u0648\u0631\u0633\u064A\u0643\u064A\u0629",cs:"\u0627\u0644\u062A\u0634\u064A\u0643\u064A\u0629",cy:"\u0627\u0644\u0648\u064A\u0644\u0632\u064A\u0629",da:"\u0627\u0644\u062F\u0627\u0646\u0645\u0627\u0631\u0643\u064A\u0629",de:"\u0627\u0644\u0623\u0644\u0645\u0627\u0646\u064A\u0629",el:"\u0627\u0644\u064A\u0648\u0646\u0627\u0646\u064A\u0629",en:"\u0627\u0644\u0625\u0646\u062C\u0644\u064A\u0632\u064A\u0629",es:"\u0627\u0644\u0625\u0633\u0628\u0627\u0646\u064A\u0629",et:"\u0627\u0644\u0625\u0633\u062A\u0648\u0646\u064A\u0629",eu:"\u0627\u0644\u0628\u0627\u0633\u0643\u064A\u0629",fa:"\u0627\u0644\u0641\u0627\u0631\u0633\u064A\u0629",fi:"\u0627\u0644\u0641\u0646\u0644\u0646\u062F\u064A\u0629",fr:"\u0627\u0644\u0641\u0631\u0646\u0633\u064A\u0629",he:"\u0627\u0644\u0639\u0628\u0631\u064A\u0629",hi:"\u0627\u0644\u0647\u0646\u062F\u064A\u0629",hr:"\u0627\u0644\u0643\u0631\u0648\u0627\u062A\u064A\u0629",hu:"\u0627\u0644\u0647\u0646\u063A\u0627\u0631\u064A\u0629",hy:"\u0627\u0644\u0623\u0631\u0645\u0646\u064A\u0629",id:"\u0627\u0644\u0625\u0646\u062F\u0648\u0646\u064A\u0633\u064A\u0629",is:"\u0627\u0644\u0623\u064A\u0633\u0644\u0646\u062F\u064A\u0629",it:"\u0627\u0644\u0625\u064A\u0637\u0627\u0644\u064A\u0629",ja:"\u0627\u0644\u064A\u0627\u0628\u0627\u0646\u064A\u0629",ka:"\u0627\u0644\u062C\u0648\u0631\u062C\u064A\u0629",ko:"\u0627\u0644\u0643\u0648\u0631\u064A\u0629",ku:"\u0627\u0644\u0643\u0631\u062F\u064A\u0629",lt:"\u0627\u0644\u0644\u064A\u062A\u0648\u0627\u0646\u064A\u0629",lv:"\u0627\u0644\u0644\u0627\u062A\u0641\u064A\u0629",mi:"\u0627\u0644\u0645\u0627\u0648\u0631\u064A\u0629",mk:"\u0627\u0644\u0645\u0642\u062F\u0648\u0646\u064A\u0629",ml:"\u0627\u0644\u0645\u0627\u0644\u0627\u064A\u0627\u0644\u0627\u0645\u064A\u0629",mn:"\u0627\u0644\u0645\u0646\u063A\u0648\u0644\u064A\u0629",ms:"\u0627\u0644\u0645\u0644\u0627\u064A\u0648\u064A\u0629",mt:"\u0627\u0644\u0645\u0627\u0644\u0637\u064A\u0629",nl:"\u0627\u0644\u0647\u0648\u0644\u0646\u062F\u064A\u0629",no:"\u0627\u0644\u0646\u0631\u0648\u064A\u062C\u064A\u0629",pl:"\u0627\u0644\u0628\u0648\u0644\u0646\u062F\u064A\u0629",pt:"\u0627\u0644\u0628\u0631\u062A\u063A\u0627\u0644\u064A\u0629",ro:"\u0627\u0644\u0631\u0648\u0645\u0627\u0646\u064A\u0629",ru:"\u0627\u0644\u0631\u0648\u0633\u064A\u0629",sa:"\u0627\u0644\u0633\u0646\u0633\u0643\u0631\u064A\u062A\u064A\u0629",sk:"\u0627\u0644\u0633\u0644\u0648\u0641\u0627\u0643\u064A\u0629",sl:"\u0627\u0644\u0633\u0644\u0648\u0641\u064A\u0646\u064A\u0629",sm:"\u0627\u0644\u0633\u0627\u0645\u0648\u064A\u0629",so:"\u0627\u0644\u0635\u0648\u0645\u0627\u0644\u064A\u0629",sr:"\u0627\u0644\u0635\u0631\u0628\u064A\u0629",sv:"\u0627\u0644\u0633\u0648\u064A\u062F\u064A\u0629",ta:"\u0627\u0644\u062A\u0627\u0645\u064A\u0644\u064A\u0629",th:"\u0627\u0644\u062A\u0627\u064A\u0644\u0627\u0646\u062F\u064A\u0629",tr:"\u0627\u0644\u062A\u0631\u0643\u064A\u0629",uk:"\u0627\u0644\u0623\u0648\u0643\u0631\u0627\u0646\u064A\u0629",vi:"\u0627\u0644\u0641\u064A\u062A\u0646\u0627\u0645\u064A\u0629",yi:"\u0627\u0644\u064A\u062F\u064A\u0634\u064A\u0629",zh:"\u0627\u0644\u0635\u064A\u0646\u064A\u0629",zu:"\u0627\u0644\u0632\u0648\u0644\u0648"},layout:{bitmagnet_on_service:"bitmagnet \u0639\u0644\u0649 {{service}}",change_theme:"\u062A\u063A\u064A\u064A\u0631 \u0627\u0644\u0633\u0645\u0629",external_links:"\u0631\u0648\u0627\u0628\u0637 \u062E\u0627\u0631\u062C\u064A\u0629",sponsor:"\u0627\u0644\u0631\u0627\u0639\u064A",support_bitmagnet:"\u062F\u0639\u0645 bitmagnet",translate:"\u062A\u0631\u062C\u0645\u0629"},paginator:{first_page:"\u0627\u0644\u0635\u0641\u062D\u0629 \u0627\u0644\u0623\u0648\u0644\u0649",items_per_page:"\u0627\u0644\u0639\u0646\u0627\u0635\u0631 \u0644\u0643\u0644 \u0635\u0641\u062D\u0629",last_page:"\u0627\u0644\u0635\u0641\u062D\u0629 \u0627\u0644\u0623\u062E\u064A\u0631\u0629",next_page:"\u0627\u0644\u0635\u0641\u062D\u0629 \u0627\u0644\u062A\u0627\u0644\u064A\u0629",previous_page:"\u0627\u0644\u0635\u0641\u062D\u0629 \u0627\u0644\u0633\u0627\u0628\u0642\u0629",x_to_y:"{{x}} \u0625\u0644\u0649 {{y}}",x_to_y_of_y:"__\u0645\u0641\u0642\u0648\u062F__",x_to_y_of_z:"{{x}} \u0625\u0644\u0649 {{y}} \u0645\u0646 {{z}}"},routes:{admin:"\u0627\u0644\u0645\u0633\u0624\u0648\u0644",dashboard:"\u0644\u0648\u062D\u0629 \u0627\u0644\u062A\u062D\u0643\u0645",home:"\u0627\u0644\u0635\u0641\u062D\u0629 \u0627\u0644\u0631\u0626\u064A\u0633\u064A\u0629",jobs:"\u0627\u0644\u0648\u0638\u0627\u0626\u0641",queues:"\u0627\u0644\u0637\u0648\u0627\u0628\u064A\u0631",torrents:"\u0627\u0644\u062A\u0648\u0631\u0646\u062A",visualize:"\u062A\u0635\u0648\u0631"},torrents:{clear_search:"\u0645\u0633\u062D \u0627\u0644\u0628\u062D\u062B",copy:"\u0646\u0633\u062E",copy_to_clipboard:"\u0646\u0633\u062E \u0625\u0644\u0649 \u0627\u0644\u062D\u0627\u0641\u0638\u0629",delete:"\u062D\u0630\u0641",delete_action_cannot_be_undone:"\u0644\u0627 \u064A\u0645\u0643\u0646 \u0627\u0644\u062A\u0631\u0627\u062C\u0639 \u0639\u0646 \u0647\u0630\u0627 \u0627\u0644\u0625\u062C\u0631\u0627\u0621",delete_are_you_sure:"\u0647\u0644 \u0623\u0646\u062A \u0645\u062A\u0623\u0643\u062F \u0623\u0646\u0643 \u062A\u0631\u064A\u062F \u062D\u0630\u0641 \u0647\u0630\u0627 \u0627\u0644\u062A\u0648\u0631\u0646\u062A\u061F",deselect_all:"\u0625\u0644\u063A\u0627\u0621 \u062A\u062D\u062F\u064A\u062F \u0627\u0644\u0643\u0644",edit_tags:"\u062A\u062D\u0631\u064A\u0631 \u0627\u0644\u0639\u0644\u0627\u0645\u0627\u062A",episodes:"\u0627\u0644\u062D\u0644\u0642\u0627\u062A",external_links:"\u0631\u0648\u0627\u0628\u0637 \u062E\u0627\u0631\u062C\u064A\u0629",file_index:"\u0641\u0647\u0631\u0633 \u0627\u0644\u0645\u0644\u0641\u0627\u062A",file_path:"\u0645\u0633\u0627\u0631 \u0627\u0644\u0645\u0644\u0641",file_size:"\u062D\u062C\u0645 \u0627\u0644\u0645\u0644\u0641",file_type:"\u0646\u0648\u0639 \u0627\u0644\u0645\u0644\u0641",files:"\u0627\u0644\u0645\u0644\u0641\u0627\u062A",files_count_n:"{{count}} \u0645\u0644\u0641\u0627\u062A",files_no_info:"\u0644\u0627 \u062A\u0648\u062C\u062F \u0645\u0639\u0644\u0648\u0645\u0627\u062A \u0639\u0646 \u0627\u0644\u0645\u0644\u0641\u0627\u062A",files_single:"\u0645\u0644\u0641 \u0648\u0627\u062D\u062F",genres:"\u0627\u0644\u0623\u0646\u0648\u0627\u0639",info_hash:"\u062A\u062C\u0632\u0626\u0629 \u0627\u0644\u0645\u0639\u0644\u0648\u0645\u0627\u062A",info_hashes:"\u062A\u062C\u0632\u0626\u0627\u062A \u0627\u0644\u0645\u0639\u0644\u0648\u0645\u0627\u062A",languages:"\u0627\u0644\u0644\u063A\u0627\u062A",leechers:"\u0627\u0644\u0645\u0633\u062A\u0641\u064A\u062F\u0648\u0646",magnet:"\u0645\u063A\u0646\u0627\u0637\u064A\u0633",magnet_links:"\u0631\u0648\u0627\u0628\u0637 \u0645\u063A\u0646\u0627\u0637\u064A\u0633\u064A\u0629",new_tag:"\u0639\u0644\u0627\u0645\u0629 \u062C\u062F\u064A\u062F\u0629",order_by:"\u062A\u0631\u062A\u064A\u0628 \u062D\u0633\u0628",order_direction_toggle:"\u062A\u0628\u062F\u064A\u0644 \u0627\u0644\u0627\u062A\u062C\u0627\u0647",ordering:{files_count:"\u0639\u062F\u062F \u0627\u0644\u0645\u0644\u0641\u0627\u062A",info_hash:"\u062A\u062C\u0632\u0626\u0629 \u0627\u0644\u0645\u0639\u0644\u0648\u0645\u0627\u062A",leechers:"\u0627\u0644\u0645\u0633\u062A\u0641\u064A\u062F\u0648\u0646",name:"\u0627\u0644\u0627\u0633\u0645",published_at:"\u0646\u0634\u0631 \u0641\u064A",relevance:"\u0627\u0644\u0635\u0644\u0629",seeders:"\u0627\u0644\u0645\u0632\u0627\u0631\u0639\u0648\u0646",size:"\u0627\u0644\u062D\u062C\u0645",updated_at:"\u062A\u0645 \u0627\u0644\u062A\u062D\u062F\u064A\u062B \u0641\u064A"},original_release_date:"\u062A\u0627\u0631\u064A\u062E \u0627\u0644\u0625\u0635\u062F\u0627\u0631 \u0627\u0644\u0623\u0635\u0644\u064A",permalink:"\u0631\u0627\u0628\u0637 \u062F\u0627\u0626\u0645",poster:"\u0645\u0644\u0635\u0642",published:"\u0645\u0646\u0634\u0648\u0631",rating:"\u0627\u0644\u062A\u0642\u064A\u064A\u0645",refresh:"\u062A\u062D\u062F\u064A\u062B \u0627\u0644\u0646\u062A\u0627\u0626\u062C",s_l:"S / L",search:"\u0628\u062D\u062B",seeders:"\u0627\u0644\u0628\u0627\u0630\u0631\u0648\u0646",select_all:"\u062A\u062D\u062F\u064A\u062F \u0627\u0644\u0643\u0644",showing_x_of_y_files:"\u0639\u0631\u0636 {{x}} \u0645\u0646 {{y}} \u0645\u0644\u0641\u0627\u062A",size:"\u0627\u0644\u062D\u062C\u0645",source:"\u0645\u0635\u062F\u0631 \u0627\u0644\u062A\u0648\u0631\u0646\u062A",summary:"\u0627\u0644\u0645\u0644\u062E\u0635",title:"\u0627\u0644\u0639\u0646\u0648\u0627\u0646",toggle_drawer:"\u062A\u0628\u062F\u064A\u0644 \u0627\u0644\u062F\u0631\u062C",votes_count_n:"{{count}} \u0623\u0635\u0648\u0627\u062A"},version:{bitmagnet_version:"\u0625\u0635\u062F\u0627\u0631 bitmagnet {{version}}",unknown:"\u063A\u064A\u0631 \u0645\u0639\u0631\u0648\u0641"}};var Je={content_types:{plural:{all:"Alle",audiobook:"H\xF6rb\xFCcher",comic:"Comics",ebook:"E-B\xFCcher",movie:"Filme",music:"Musik",null:"Unbekannt",software:"Software",tv_show:"TV-Shows",xxx:"XXX"},singular:{audiobook:"H\xF6rbuch",comic:"Comic",ebook:"E-Buch",movie:"Film",music:"Musik",null:"Unbekannt",software:"Software",tv_show:"TV-Show",xxx:"XXX"}},dashboard:{event:{created:"Erstellt",failed:"Fehlgeschlagen",processed:"Verarbeitet",updated:"Aktualisiert"},interval:{all:"Alle",days:"Tage",days_1:"1 Tag",hours:"Stunden",hours_1:"1 Stunde",hours_12:"12 Stunden",hours_6:"6 Stunden",minutes:"Minuten",minutes_1:"1 Minute",minutes_15:"15 Minuten",minutes_30:"30 Minuten",minutes_5:"5 Minuten",off:"Aus",seconds_10:"10 Sekunden",seconds_30:"30 Sekunden",weeks_1:"1 Woche"},metrics:{event:"Ereignis",resolution:"Aufl\xF6sung",throughput:"Durchsatz",timeframe:"Zeitrahmen"},queues:{created:"Erstellt",created_at:"Erstellt am",enqueue_jobs:"Jobs einreihen",enqueue_torrent_processing_batch:"Torrent-Verarbeitungsbatch einreihen",failed:"Fehlgeschlagen",force_rematch:"Erneutes Zuordnen von bereits zugeordneten Inhalten erzwingen",jobs_enqueued:"Jobs eingereiht",latency:"Latenz",match_content_by_external_api_search:"Inhalte durch externe API-Suche zuordnen",match_content_by_local_search:"Inhalte durch lokale Suche zuordnen",payload:"Nutzlast",pending:"Ausstehend",priority:"Priorit\xE4t",process_orphaned_torrents_only:"Nur verwaiste Torrents verarbeiten",processed:"Verarbeitet",purge_jobs:"Jobs bereinigen",purge_queue_jobs:"Warteschlangen-Jobs bereinigen",queue:"Warteschlange",queue_purged:"Warteschlange bereinigt",queues:"Warteschlangen",ran_at:"Ausgef\xFChrt am",retry:"Erneut versuchen",total_counts_by_status:"Gesamtanzahl nach Status"}},facets:{content_type:"Inhaltstyp",file_type:"Dateityp",genre:"Genre",language:"Sprache",queue:"Warteschlange",status:"Status",torrent_source:"Torrent-Quelle",torrent_tag:"Torrent-Tag",video_resolution:"Videoaufl\xF6sung",video_source:"Videoquelle"},file_types:{archive:"Archiv",audio:"Audio",data:"Daten",document:"Dokument",image:"Bild",software:"Software",subtitles:"Untertitel",unknown:"Unbekannt",video:"Video"},general:{all:"Alle",dismiss:"Verwerfen",error:"Fehler",none:"Keine",refresh:"Aktualisieren",status:"Status"},health:{bitmagnet_is_status:"bitmagnet ist {{status}}",check_failed_with_error:"\xDCberpr\xFCfung mit Fehler fehlgeschlagen",component:"Komponente",components:{dht:"DHT",postgres:"Postgres",tmdb:"TMDB"},dismiss:"Verwerfen",error:"Fehler",status:"Status",statuses:{degraded:"Verschlechtert",down:"Aus",error:"Fehler",inactive:"Inaktiv",started:"Gestartet",unknown:"Ausstehend",up:"An"},summary:"Gesundheits\xFCbersicht",worker:"Arbeiter",workers:{dht_crawler:"DHT-Crawler",http_server:"HTTP-Server",queue_server:"Warteschlangen-Server"}},languages:{af:"Afrikaans",ar:"Arabisch",az:"Aserbaidschanisch",be:"Wei\xDFrussisch",bg:"Bulgarisch",bs:"Bosnisch",ca:"Katalanisch",ce:"Tschetschenisch",co:"Korsisch",cs:"Tschechisch",cy:"Walisisch",da:"D\xE4nisch",de:"Deutsch",el:"Griechisch",en:"Englisch",es:"Spanisch",et:"Estnisch",eu:"Baskisch",fa:"Persisch",fi:"Finnisch",fr:"Franz\xF6sisch",he:"Hebr\xE4isch",hi:"Hindi",hr:"Kroatisch",hu:"Ungarisch",hy:"Armenisch",id:"Indonesisch",is:"Isl\xE4ndisch",it:"Italienisch",ja:"Japanisch",ka:"Georgisch",ko:"Koreanisch",ku:"Kurdisch",lt:"Litauisch",lv:"Lettisch",mi:"Maori",mk:"Mazedonisch",ml:"Malayalam",mn:"Mongolisch",ms:"Malaiisch",mt:"Maltesisch",nl:"Niederl\xE4ndisch",no:"Norwegisch",pl:"Polnisch",pt:"Portugiesisch",ro:"Rum\xE4nisch",ru:"Russisch",sa:"Sanskrit",sk:"Slowakisch",sl:"Slowenisch",sm:"Samoanisch",so:"Somalisch",sr:"Serbisch",sv:"Schwedisch",ta:"Tamil",th:"Thai",tr:"T\xFCrkisch",uk:"Ukrainisch",vi:"Vietnamesisch",yi:"Jiddisch",zh:"Chinesisch",zu:"Zulu"},layout:{bitmagnet_on_service:"bitmagnet auf {{service}}",change_theme:"Thema \xE4ndern",external_links:"Externe Links",sponsor:"Sponsor",support_bitmagnet:"bitmagnet unterst\xFCtzen",translate:"\xDCbersetzen"},paginator:{first_page:"Erste Seite",items_per_page:"Artikel pro Seite",last_page:"Letzte Seite",next_page:"N\xE4chste Seite",previous_page:"Vorherige Seite",x_to_y:"{{x}} bis {{y}}",x_to_y_of_y:"__fehlend__",x_to_y_of_z:"{{x}} bis {{y}} von {{z}}"},routes:{admin:"Admin",dashboard:"Dashboard",home:"Startseite",jobs:"Aufgaben",queues:"Warteschlangen",torrents:"Torrents",visualize:"Visualisieren"},torrents:{clear_search:"Suche l\xF6schen",copy:"Kopieren",copy_to_clipboard:"In die Zwischenablage kopieren",delete:"L\xF6schen",delete_action_cannot_be_undone:"Diese Aktion kann nicht r\xFCckg\xE4ngig gemacht werden",delete_are_you_sure:"Sind Sie sicher, dass Sie diesen Torrent l\xF6schen m\xF6chten?",deselect_all:"Alle abw\xE4hlen",edit_tags:"Tags bearbeiten",episodes:"Episoden",external_links:"Externe Links",file_index:"Dateiindex",file_path:"Dateipfad",file_size:"Dateigr\xF6\xDFe",file_type:"Dateityp",files:"Dateien",files_count_n:"{{count}} Dateien",files_no_info:"Keine Dateiinformationen verf\xFCgbar",files_single:"Einzelne Datei",genres:"Genres",info_hash:"Info-Hash",info_hashes:"Info-Hashes",languages:"Sprachen",leechers:"Leechers",magnet:"Magnet",magnet_links:"Magnet-Links",new_tag:"Neuer Tag",order_by:"Sortieren nach",order_direction_toggle:"Richtung umschalten",ordering:{files_count:"Dateienanzahl",info_hash:"Info-Hash",leechers:"Leechers",name:"Name",published_at:"Ver\xF6ffentlicht am",relevance:"Relevanz",seeders:"Seeders",size:"Gr\xF6\xDFe",updated_at:"Aktualisiert am"},original_release_date:"Originales Ver\xF6ffentlichungsdatum",permalink:"Permalink",poster:"Poster",published:"Ver\xF6ffentlicht",rating:"Bewertung",refresh:"Ergebnisse aktualisieren",s_l:"S / L",search:"Suche",seeders:"Seeders",select_all:"Alle ausw\xE4hlen",showing_x_of_y_files:"{{x}} von {{y}} Dateien anzeigen",size:"Gr\xF6\xDFe",source:"Torrent-Quelle",summary:"Zusammenfassung",title:"Titel",toggle_drawer:"Schublade umschalten",votes_count_n:"{{count}} Stimmen"},version:{bitmagnet_version:"bitmagnet Version {{version}}",unknown:"unbekannt"}};var Ze={content_types:{plural:{all:"All",audiobook:"Audiobooks",comic:"Comics",ebook:"E-Books",movie:"Movies",music:"Music",null:"Unknown",software:"Software",tv_show:"TV Shows",xxx:"XXX"},singular:{audiobook:"Audiobook",comic:"Comic",ebook:"E-Book",movie:"Movie",music:"Music",null:"Unknown",software:"Software",tv_show:"TV Show",xxx:"XXX"}},dashboard:{event:{created:"Created",failed:"Failed",processed:"Processed",updated:"Updated"},interval:{all:"All",days:"Days",days_1:"1 day",hours:"Hours",hours_1:"1 hour",hours_12:"12 hours",hours_6:"6 hours",minutes:"Minutes",minutes_1:"1 minute",minutes_15:"15 minutes",minutes_30:"30 minutes",minutes_5:"5 minutes",off:"Off",seconds_10:"10 seconds",seconds_30:"30 seconds",weeks_1:"1 week"},metrics:{event:"Event",resolution:"Resolution",throughput:"Throughput",timeframe:"Timeframe"},queues:{created:"Created",created_at:"Created at",enqueue_jobs:"Enqueue jobs",enqueue_torrent_processing_batch:"Enqueue Torrent Processing Batch",failed:"Failed",force_rematch:"Force rematch of already matched content",jobs_enqueued:"Jobs enqueued",latency:"Latency",match_content_by_external_api_search:"Match content by external API search",match_content_by_local_search:"Match content by local search",payload:"Payload",pending:"Pending",priority:"Priority",process_orphaned_torrents_only:"Process orphaned torrents only",processed:"Processed",purge_jobs:"Purge jobs",purge_queue_jobs:"Purge queue jobs",queue:"Queue",queue_purged:"Queue purged",queues:"Queues",ran_at:"Ran at",retry:"Retry",total_counts_by_status:"Total counts by status"}},facets:{content_type:"Content Type",file_type:"File Type",genre:"Genre",language:"Language",queue:"Queue",status:"Status",torrent_source:"Torrent Source",torrent_tag:"Torrent Tag",video_resolution:"Video Resolution",video_source:"Video Source"},file_types:{archive:"Archive",audio:"Audio",data:"Data",document:"Document",image:"Image",software:"Software",subtitles:"Subtitles",unknown:"Unknown",video:"Video"},general:{all:"All",dismiss:"Dismiss",error:"Error",none:"None",refresh:"Refresh",status:"Status"},health:{bitmagnet_is_status:"bitmagnet is {{status}}",check_failed_with_error:"Check failed with error",component:"Component",components:{dht:"DHT",postgres:"Postgres",tmdb:"TMDB"},dismiss:"Dismiss",error:"Error",status:"Status",statuses:{degraded:"Degraded",down:"Down",error:"Error",inactive:"Inactive",started:"Started",unknown:"Pending",up:"Up"},summary:"Health summary",worker:"Worker",workers:{dht_crawler:"DHT crawler",http_server:"HTTP server",queue_server:"Queue server"}},languages:{af:"Afrikaans",ar:"Arabic",az:"Azerbaijani",be:"Belarusian",bg:"Bulgarian",bs:"Bosnian",ca:"Catalan",ce:"Chechen",co:"Corsican",cs:"Czech",cy:"Welsh",da:"Danish",de:"German",el:"Greek",en:"English",es:"Spanish",et:"Estonian",eu:"Basque",fa:"Persian",fi:"Finnish",fr:"French",he:"Hebrew",hi:"Hindi",hr:"Croatian",hu:"Hungarian",hy:"Armenian",id:"Indonesian",is:"Icelandic",it:"Italian",ja:"Japanese",ka:"Georgian",ko:"Korean",ku:"Kurdish",lt:"Lithuanian",lv:"Latvian",mi:"Maori",mk:"Macedonian",ml:"Malayalam",mn:"Mongolian",ms:"Malay",mt:"Maltese",nl:"Dutch",no:"Norwegian",pl:"Polish",pt:"Portuguese",ro:"Romanian",ru:"Russian",sa:"Sanskrit",sk:"Slovak",sl:"Slovenian",sm:"Samoan",so:"Somali",sr:"Serbian",sv:"Swedish",ta:"Tamil",th:"Thai",tr:"Turkish",uk:"Ukrainian",vi:"Vietnamese",yi:"Yiddish",zh:"Chinese",zu:"Zulu"},layout:{bitmagnet_on_service:"bitmagnet on {{service}}",change_theme:"Change theme",external_links:"External links",sponsor:"Sponsor",support_bitmagnet:"Support bitmagnet",translate:"Translate"},paginator:{first_page:"First page",items_per_page:"Items per page",last_page:"Last page",next_page:"Next page",previous_page:"Previous page",x_to_y:"{{x}} to {{y}}",x_to_y_of_y:"__missing__",x_to_y_of_z:"{{x}} to {{y}} of {{z}}"},routes:{admin:"Admin",dashboard:"Dashboard",home:"Home",jobs:"Jobs",queues:"Queues",torrents:"Torrents",visualize:"Visualize"},torrents:{clear_search:"Clear Search",copy:"Copy",copy_to_clipboard:"Copy to clipboard",delete:"Delete",delete_action_cannot_be_undone:"This action cannot be undone",delete_are_you_sure:"Are you sure you want to delete this torrent?",deselect_all:"Deselect All",edit_tags:"Edit tags",episodes:"Episodes",external_links:"External links",file_index:"File index",file_path:"File path",file_size:"File size",file_type:"File type",files:"Files",files_count_n:"{{count}} files",files_no_info:"No files information available",files_single:"Single file",genres:"Genres",info_hash:"Info hash",info_hashes:"Info hashes",languages:"Languages",leechers:"Leechers",magnet:"Magnet",magnet_links:"Magnet links",new_tag:"New tag",order_by:"Order by",order_direction_toggle:"Toggle direction",ordering:{files_count:"Files count",info_hash:"Info hash",leechers:"Leechers",name:"Name",published_at:"Published at",relevance:"Relevance",seeders:"Seeders",size:"Size",updated_at:"Updated at"},original_release_date:"Original release date",permalink:"Permalink",poster:"Poster",published:"Published",rating:"Rating",refresh:"Refresh results",s_l:"S / L",search:"Search",seeders:"Seeders",select_all:"Select All",showing_x_of_y_files:"Showing {{x}} of {{y}} files",size:"Size",source:"Torrent Source",summary:"Summary",title:"Title",toggle_drawer:"Toggle Drawer",votes_count_n:"{{count}} votes"},version:{bitmagnet_version:"bitmagnet version {{version}}",unknown:"unknown"}};var $e={content_types:{plural:{all:"Todos",audiobook:"Audiolibros",comic:"C\xF3mics",ebook:"E-Libros",movie:"Pel\xEDculas",music:"M\xFAsica",null:"Desconocido",software:"Software",tv_show:"Programas de TV",xxx:"XXX"},singular:{audiobook:"Audiolibro",comic:"C\xF3mic",ebook:"E-Libro",movie:"Pel\xEDcula",music:"M\xFAsica",null:"Desconocido",software:"Software",tv_show:"Programa de TV",xxx:"XXX"}},dashboard:{event:{created:"Creado",failed:"Fallido",processed:"Procesado",updated:"Actualizado"},interval:{all:"Todos",days:"D\xEDas",days_1:"1 d\xEDa",hours:"Horas",hours_1:"1 hora",hours_12:"12 horas",hours_6:"6 horas",minutes:"Minutos",minutes_1:"1 minuto",minutes_15:"15 minutos",minutes_30:"30 minutos",minutes_5:"5 minutos",off:"Apagado",seconds_10:"10 segundos",seconds_30:"30 segundos",weeks_1:"1 semana"},metrics:{event:"Evento",resolution:"Resoluci\xF3n",throughput:"Rendimiento",timeframe:"Periodo de tiempo"},queues:{created:"Creado",created_at:"Creado en",enqueue_jobs:"Encolar trabajos",enqueue_torrent_processing_batch:"Encolar lote de procesamiento de torrents",failed:"Fallido",force_rematch:"Forzar nueva coincidencia de contenido ya coincidente",jobs_enqueued:"Trabajos encolados",latency:"Latencia",match_content_by_external_api_search:"Coincidir contenido por b\xFAsqueda de API externa",match_content_by_local_search:"Coincidir contenido por b\xFAsqueda local",payload:"Carga \xFAtil",pending:"Pendiente",priority:"Prioridad",process_orphaned_torrents_only:"Procesar solo torrents hu\xE9rfanos",processed:"Procesado",purge_jobs:"Purgar trabajos",purge_queue_jobs:"Purgar trabajos de la cola",queue:"Cola",queue_purged:"Cola purgada",queues:"Colas",ran_at:"Ejecutado en",retry:"Reintentar",total_counts_by_status:"Recuento total por estado"}},facets:{content_type:"Tipo de contenido",file_type:"Tipo de archivo",genre:"G\xE9nero",language:"Idioma",queue:"Cola",status:"Estado",torrent_source:"Fuente del torrent",torrent_tag:"Etiqueta del torrent",video_resolution:"Resoluci\xF3n de video",video_source:"Fuente de video"},file_types:{archive:"Archivo",audio:"Audio",data:"Datos",document:"Documento",image:"Imagen",software:"Software",subtitles:"Subt\xEDtulos",unknown:"Desconocido",video:"Video"},general:{all:"Todos",dismiss:"Descartar",error:"Error",none:"Ninguno",refresh:"Actualizar",status:"Estado"},health:{bitmagnet_is_status:"bitmagnet est\xE1 {{status}}",check_failed_with_error:"La verificaci\xF3n fall\xF3 con error",component:"Componente",components:{dht:"DHT",postgres:"Postgres",tmdb:"TMDB"},dismiss:"Descartar",error:"Error",status:"Estado",statuses:{degraded:"Degradado",down:"Ca\xEDdo",error:"Error",inactive:"Inactivo",started:"Iniciado",unknown:"Pendiente",up:"Activo"},summary:"Resumen de salud",worker:"Trabajador",workers:{dht_crawler:"Rastreador DHT",http_server:"Servidor HTTP",queue_server:"Servidor de colas"}},languages:{af:"Afrik\xE1ans",ar:"\xC1rabe",az:"Azerbaiyano",be:"Bielorruso",bg:"B\xFAlgaro",bs:"Bosnio",ca:"Catal\xE1n",ce:"Checheno",co:"Corso",cs:"Checo",cy:"Gal\xE9s",da:"Dan\xE9s",de:"Alem\xE1n",el:"Griego",en:"Ingl\xE9s",es:"Espa\xF1ol",et:"Estonio",eu:"Vasco",fa:"Persa",fi:"Finland\xE9s",fr:"Franc\xE9s",he:"Hebreo",hi:"Hindi",hr:"Croata",hu:"H\xFAngaro",hy:"Armenio",id:"Indonesio",is:"Island\xE9s",it:"Italiano",ja:"Japon\xE9s",ka:"Georgiano",ko:"Coreano",ku:"Kurdo",lt:"Lituano",lv:"Let\xF3n",mi:"Maor\xED",mk:"Macedonio",ml:"Malayalam",mn:"Mongol",ms:"Malayo",mt:"Malt\xE9s",nl:"Neerland\xE9s",no:"Noruego",pl:"Polaco",pt:"Portugu\xE9s",ro:"Rumano",ru:"Ruso",sa:"S\xE1nscrito",sk:"Eslovaco",sl:"Esloveno",sm:"Samoano",so:"Somal\xED",sr:"Serbio",sv:"Sueco",ta:"Tamil",th:"Tailand\xE9s",tr:"Turco",uk:"Ucraniano",vi:"Vietnamita",yi:"Yidis",zh:"Chino",zu:"Zul\xFA"},layout:{bitmagnet_on_service:"bitmagnet en {{service}}",change_theme:"Cambiar tema",external_links:"Enlaces externos",sponsor:"Patrocinador",support_bitmagnet:"Apoyar bitmagnet",translate:"Traducir"},paginator:{first_page:"Primera p\xE1gina",items_per_page:"Elementos por p\xE1gina",last_page:"\xDAltima p\xE1gina",next_page:"P\xE1gina siguiente",previous_page:"P\xE1gina anterior",x_to_y:"{{x}} a {{y}}",x_to_y_of_y:"__faltante__",x_to_y_of_z:"{{x}} a {{y}} de {{z}}"},routes:{admin:"Admin",dashboard:"Tablero",home:"Inicio",jobs:"Trabajos",queues:"Colas",torrents:"Torrents",visualize:"Visualizar"},torrents:{clear_search:"Borrar b\xFAsqueda",copy:"Copiar",copy_to_clipboard:"Copiar al portapapeles",delete:"Eliminar",delete_action_cannot_be_undone:"Esta acci\xF3n no se puede deshacer",delete_are_you_sure:"\xBFEst\xE1 seguro de que desea eliminar este torrent?",deselect_all:"Deseleccionar todo",edit_tags:"Editar etiquetas",episodes:"Episodios",external_links:"Enlaces externos",file_index:"\xCDndice de archivos",file_path:"Ruta del archivo",file_size:"Tama\xF1o del archivo",file_type:"Tipo de archivo",files:"Archivos",files_count_n:"{{count}} archivos",files_no_info:"No hay informaci\xF3n de archivos disponible",files_single:"Archivo \xFAnico",genres:"G\xE9neros",info_hash:"Hash de informaci\xF3n",info_hashes:"Hashes de informaci\xF3n",languages:"Idiomas",leechers:"Leechers",magnet:"Magnet",magnet_links:"Enlaces Magnet",new_tag:"Nueva etiqueta",order_by:"Ordenar por",order_direction_toggle:"Alternar direcci\xF3n",ordering:{files_count:"Recuento de archivos",info_hash:"Hash de informaci\xF3n",leechers:"Leechers",name:"Nombre",published_at:"Publicado en",relevance:"Relevancia",seeders:"Seeders",size:"Tama\xF1o",updated_at:"Actualizado en"},original_release_date:"Fecha de lanzamiento original",permalink:"Enlace permanente",poster:"P\xF3ster",published:"Publicado",rating:"Calificaci\xF3n",refresh:"Actualizar resultados",s_l:"S / L",search:"Buscar",seeders:"Seeders",select_all:"Seleccionar todo",showing_x_of_y_files:"Mostrando {{x}} de {{y}} archivos",size:"Tama\xF1o",source:"Fuente del torrent",summary:"Resumen",title:"T\xEDtulo",toggle_drawer:"Alternar caj\xF3n",votes_count_n:"{{count}} votos"},version:{bitmagnet_version:"versi\xF3n de bitmagnet {{version}}",unknown:"desconocido"}};var et={content_types:{plural:{all:"Tous",audiobook:"Livres audio",comic:"Bandes dessin\xE9es",ebook:"E-livres",movie:"Films",music:"Musique",null:"Inconnu",software:"Logiciels",tv_show:"S\xE9ries TV",xxx:"XXX"},singular:{audiobook:"Livre audio",comic:"Bande dessin\xE9e",ebook:"E-livre",movie:"Film",music:"Musique",null:"Inconnu",software:"Logiciel",tv_show:"S\xE9rie TV",xxx:"XXX"}},dashboard:{event:{created:"Cr\xE9\xE9",failed:"\xC9chou\xE9",processed:"Trait\xE9",updated:"Mis \xE0 jour"},interval:{all:"Tous",days:"Jours",days_1:"1 jour",hours:"Heures",hours_1:"1 heure",hours_12:"12 heures",hours_6:"6 heures",minutes:"Minutes",minutes_1:"1 minute",minutes_15:"15 minutes",minutes_30:"30 minutes",minutes_5:"5 minutes",off:"D\xE9sactiv\xE9",seconds_10:"10 secondes",seconds_30:"30 secondes",weeks_1:"1 semaine"},metrics:{event:"\xC9v\xE9nement",resolution:"R\xE9solution",throughput:"D\xE9bit",timeframe:"P\xE9riode"},queues:{created:"Cr\xE9\xE9",created_at:"Cr\xE9\xE9 \xE0",enqueue_jobs:"Enfilez les t\xE2ches",enqueue_torrent_processing_batch:"Enfilez le traitement des torrents",failed:"\xC9chou\xE9",force_rematch:"Forcer le rematch du contenu d\xE9j\xE0 appari\xE9",jobs_enqueued:"T\xE2ches enfil\xE9es",latency:"Latence",match_content_by_external_api_search:"Apparier le contenu par recherche API externe",match_content_by_local_search:"Apparier le contenu par recherche locale",payload:"Charge utile",pending:"En attente",priority:"Priorit\xE9",process_orphaned_torrents_only:"Traiter uniquement les torrents orphelins",processed:"Trait\xE9",purge_jobs:"Purger les t\xE2ches",purge_queue_jobs:"Purger les t\xE2ches de la file d'attente",queue:"File d'attente",queue_purged:"File d'attente purg\xE9e",queues:"Files d'attente",ran_at:"Ex\xE9cut\xE9 \xE0",retry:"R\xE9essayer",total_counts_by_status:"Totaux par statut"}},facets:{content_type:"Type de contenu",file_type:"Type de fichier",genre:"Genre",language:"Langue",queue:"File d'attente",status:"Statut",torrent_source:"Source du torrent",torrent_tag:"Tag du torrent",video_resolution:"R\xE9solution vid\xE9o",video_source:"Source vid\xE9o"},file_types:{archive:"Archive",audio:"Audio",data:"Donn\xE9es",document:"Document",image:"Image",software:"Logiciel",subtitles:"Sous-titres",unknown:"Inconnu",video:"Vid\xE9o"},general:{all:"Tous",dismiss:"Rejeter",error:"Erreur",none:"Aucun",refresh:"Rafra\xEEchir",status:"Statut"},health:{bitmagnet_is_status:"bitmagnet est {{status}}",check_failed_with_error:"V\xE9rification \xE9chou\xE9e avec erreur",component:"Composant",components:{dht:"DHT",postgres:"Postgres",tmdb:"TMDB"},dismiss:"Rejeter",error:"Erreur",status:"Statut",statuses:{degraded:"D\xE9grad\xE9",down:"Hors ligne",error:"Erreur",inactive:"Inactif",started:"D\xE9marr\xE9",unknown:"En attente",up:"En ligne"},summary:"R\xE9sum\xE9 de la sant\xE9",worker:"Travailleur",workers:{dht_crawler:"Explorateur DHT",http_server:"Serveur HTTP",queue_server:"Serveur de file d'attente"}},languages:{af:"Afrikaans",ar:"Arabe",az:"Azerba\xEFdjanais",be:"Bi\xE9lorusse",bg:"Bulgare",bs:"Bosniaque",ca:"Catalan",ce:"Tch\xE9tch\xE8ne",co:"Corse",cs:"Tch\xE8que",cy:"Gallois",da:"Danois",de:"Allemand",el:"Grec",en:"Anglais",es:"Espagnol",et:"Estonien",eu:"Basque",fa:"Persan",fi:"Finnois",fr:"Fran\xE7ais",he:"H\xE9breu",hi:"Hindi",hr:"Croate",hu:"Hongrois",hy:"Arm\xE9nien",id:"Indon\xE9sien",is:"Islandais",it:"Italien",ja:"Japonais",ka:"G\xE9orgien",ko:"Cor\xE9en",ku:"Kurde",lt:"Lituanien",lv:"Letton",mi:"Maori",mk:"Mac\xE9donien",ml:"Malayalam",mn:"Mongol",ms:"Malais",mt:"Maltais",nl:"N\xE9erlandais",no:"Norv\xE9gien",pl:"Polonais",pt:"Portugais",ro:"Roumain",ru:"Russe",sa:"Sanskrit",sk:"Slovaque",sl:"Slov\xE8ne",sm:"Samoan",so:"Somali",sr:"Serbe",sv:"Su\xE9dois",ta:"Tamoul",th:"Tha\xEF",tr:"Turc",uk:"Ukrainien",vi:"Vietnamien",yi:"Yiddish",zh:"Chinois",zu:"Zoulou"},layout:{bitmagnet_on_service:"bitmagnet sur {{service}}",change_theme:"Changer de th\xE8me",external_links:"Liens externes",sponsor:"Sponsor",support_bitmagnet:"Soutenir bitmagnet",translate:"Traduire"},paginator:{first_page:"Premi\xE8re page",items_per_page:"Articles par page",last_page:"Derni\xE8re page",next_page:"Page suivante",previous_page:"Page pr\xE9c\xE9dente",x_to_y:"{{x}} \xE0 {{y}}",x_to_y_of_y:"__manquant__",x_to_y_of_z:"{{x}} \xE0 {{y}} de {{z}}"},routes:{admin:"Admin",dashboard:"Tableau de bord",home:"Accueil",jobs:"T\xE2ches",queues:"Files d'attente",torrents:"Torrents",visualize:"Visualiser"},torrents:{clear_search:"Effacer la recherche",copy:"Copier",copy_to_clipboard:"Copier dans le presse-papiers",delete:"Supprimer",delete_action_cannot_be_undone:"Cette action ne peut pas \xEAtre annul\xE9e",delete_are_you_sure:"\xCAtes-vous s\xFBr de vouloir supprimer ce torrent?",deselect_all:"Tout d\xE9s\xE9lectionner",edit_tags:"Modifier les tags",episodes:"\xC9pisodes",external_links:"Liens externes",file_index:"Index de fichier",file_path:"Chemin de fichier",file_size:"Taille de fichier",file_type:"Type de fichier",files:"Fichiers",files_count_n:"{{count}} fichiers",files_no_info:"Aucune information sur les fichiers disponible",files_single:"Fichier unique",genres:"Genres",info_hash:"Hash d'info",info_hashes:"Hashes d'info",languages:"Langues",leechers:"Leechers",magnet:"Magnet",magnet_links:"Liens Magnet",new_tag:"Nouveau tag",order_by:"Trier par",order_direction_toggle:"Basculer la direction",ordering:{files_count:"Nombre de fichiers",info_hash:"Hash d'info",leechers:"Leechers",name:"Nom",published_at:"Publi\xE9 \xE0",relevance:"Pertinence",seeders:"Seeders",size:"Taille",updated_at:"Mis \xE0 jour \xE0"},original_release_date:"Date de sortie originale",permalink:"Permalien",poster:"Affiche",published:"Publi\xE9",rating:"\xC9valuation",refresh:"Rafra\xEEchir les r\xE9sultats",s_l:"S / L",search:"Rechercher",seeders:"Seeders",select_all:"Tout s\xE9lectionner",showing_x_of_y_files:"Affichage de {{x}} sur {{y}} fichiers",size:"Taille",source:"Source du torrent",summary:"R\xE9sum\xE9",title:"Titre",toggle_drawer:"Basculer le tiroir",votes_count_n:"{{count}} votes"},version:{bitmagnet_version:"version bitmagnet {{version}}",unknown:"inconnu"}};var tt={content_types:{plural:{all:"\u0938\u092D\u0940",audiobook:"\u0911\u0921\u093F\u092F\u094B\u092C\u0941\u0915\u094D\u0938",comic:"\u0915\u0949\u092E\u093F\u0915\u094D\u0938",ebook:"\u0908-\u092C\u0941\u0915\u094D\u0938",movie:"\u092B\u093C\u093F\u0932\u094D\u092E\u0947\u0902",music:"\u0938\u0902\u0917\u0940\u0924",null:"\u0905\u091C\u094D\u091E\u093E\u0924",software:"\u0938\u0949\u092B\u093C\u094D\u091F\u0935\u0947\u092F\u0930",tv_show:"\u091F\u0940\u0935\u0940 \u0936\u094B",xxx:"XXX"},singular:{audiobook:"\u0911\u0921\u093F\u092F\u094B\u092C\u0941\u0915",comic:"\u0915\u0949\u092E\u093F\u0915",ebook:"\u0908-\u092C\u0941\u0915",movie:"\u092B\u093C\u093F\u0932\u094D\u092E",music:"\u0938\u0902\u0917\u0940\u0924",null:"\u0905\u091C\u094D\u091E\u093E\u0924",software:"\u0938\u0949\u092B\u093C\u094D\u091F\u0935\u0947\u092F\u0930",tv_show:"\u091F\u0940\u0935\u0940 \u0936\u094B",xxx:"XXX"}},dashboard:{event:{created:"\u092C\u0928\u093E\u092F\u093E \u0917\u092F\u093E",failed:"\u0905\u0938\u092B\u0932",processed:"\u092A\u094D\u0930\u0938\u0902\u0938\u094D\u0915\u0943\u0924",updated:"\u0905\u092A\u0921\u0947\u091F \u0915\u093F\u092F\u093E \u0917\u092F\u093E"},interval:{all:"\u0938\u092D\u0940",days:"\u0926\u093F\u0928",days_1:"1 \u0926\u093F\u0928",hours:"\u0918\u0902\u091F\u0947",hours_1:"1 \u0918\u0902\u091F\u093E",hours_12:"12 \u0918\u0902\u091F\u0947",hours_6:"6 \u0918\u0902\u091F\u0947",minutes:"\u092E\u093F\u0928\u091F",minutes_1:"1 \u092E\u093F\u0928\u091F",minutes_15:"15 \u092E\u093F\u0928\u091F",minutes_30:"30 \u092E\u093F\u0928\u091F",minutes_5:"5 \u092E\u093F\u0928\u091F",off:"\u092C\u0902\u0926",seconds_10:"10 \u0938\u0947\u0915\u0902\u0921",seconds_30:"30 \u0938\u0947\u0915\u0902\u0921",weeks_1:"1 \u0938\u092A\u094D\u0924\u093E\u0939"},metrics:{event:"\u0918\u091F\u0928\u093E",resolution:"\u0930\u093F\u091C\u093C\u0949\u0932\u094D\u092F\u0942\u0936\u0928",throughput:"\u0925\u094D\u0930\u0942\u092A\u0941\u091F",timeframe:"\u0938\u092E\u092F \u0938\u0940\u092E\u093E"},queues:{created:"\u092C\u0928\u093E\u092F\u093E \u0917\u092F\u093E",created_at:"\u092C\u0928\u093E\u092F\u093E \u0917\u092F\u093E \u0938\u092E\u092F",enqueue_jobs:"\u091C\u0949\u092C\u094D\u0938 \u0915\u094B \u0915\u0924\u093E\u0930 \u092E\u0947\u0902 \u0932\u0917\u093E\u090F\u0902",enqueue_torrent_processing_batch:"\u091F\u094B\u0930\u0947\u0902\u091F \u092A\u094D\u0930\u094B\u0938\u0947\u0938\u093F\u0902\u0917 \u092C\u0948\u091A \u0915\u0924\u093E\u0930 \u092E\u0947\u0902 \u0932\u0917\u093E\u090F\u0902",failed:"\u0905\u0938\u092B\u0932",force_rematch:"\u092A\u0939\u0932\u0947 \u0938\u0947 \u092E\u0947\u0932 \u0916\u093E\u0908 \u0938\u093E\u092E\u0917\u094D\u0930\u0940 \u0915\u094B \u092B\u093F\u0930 \u0938\u0947 \u092E\u093F\u0932\u093E\u090F\u0902",jobs_enqueued:"\u091C\u0949\u092C\u094D\u0938 \u0915\u0924\u093E\u0930 \u092E\u0947\u0902 \u0932\u0917\u093E\u0908 \u0917\u0908\u0902",latency:"\u0932\u0947\u091F\u0947\u0902\u0938\u0940",match_content_by_external_api_search:"\u092C\u093E\u0939\u0930\u0940 API \u0916\u094B\u091C \u0938\u0947 \u0938\u093E\u092E\u0917\u094D\u0930\u0940 \u0915\u093E \u092E\u093F\u0932\u093E\u0928 \u0915\u0930\u0947\u0902",match_content_by_local_search:"\u0938\u094D\u0925\u093E\u0928\u0940\u092F \u0916\u094B\u091C \u0938\u0947 \u0938\u093E\u092E\u0917\u094D\u0930\u0940 \u0915\u093E \u092E\u093F\u0932\u093E\u0928 \u0915\u0930\u0947\u0902",payload:"\u092A\u0947\u0932\u094B\u0921",pending:"\u092C\u0915\u093E\u092F\u093E",priority:"\u092A\u094D\u0930\u093E\u0925\u092E\u093F\u0915\u0924\u093E",process_orphaned_torrents_only:"\u0915\u0947\u0935\u0932 \u0905\u0928\u093E\u0925 \u091F\u094B\u0930\u0947\u0902\u091F\u094D\u0938 \u0915\u094B \u092A\u094D\u0930\u094B\u0938\u0947\u0938 \u0915\u0930\u0947\u0902",processed:"\u092A\u094D\u0930\u0938\u0902\u0938\u094D\u0915\u0943\u0924",purge_jobs:"\u091C\u0949\u092C\u094D\u0938 \u0915\u094B \u0938\u093E\u092B\u093C \u0915\u0930\u0947\u0902",purge_queue_jobs:"\u0915\u0924\u093E\u0930 \u0915\u0947 \u091C\u0949\u092C\u094D\u0938 \u0915\u094B \u0938\u093E\u092B\u093C \u0915\u0930\u0947\u0902",queue:"\u0915\u0924\u093E\u0930",queue_purged:"\u0915\u0924\u093E\u0930 \u0915\u094B \u0938\u093E\u092B\u093C \u0915\u093F\u092F\u093E \u0917\u092F\u093E",queues:"\u0915\u0924\u093E\u0930\u0947\u0902",ran_at:"\u091A\u0932\u093E\u092F\u093E \u0917\u092F\u093E \u0938\u092E\u092F",retry:"\u092A\u0941\u0928\u0903 \u092A\u094D\u0930\u092F\u093E\u0938 \u0915\u0930\u0947\u0902",total_counts_by_status:"\u0938\u094D\u0925\u093F\u0924\u093F \u0926\u094D\u0935\u093E\u0930\u093E \u0915\u0941\u0932 \u0917\u0923\u0928\u093E"}},facets:{content_type:"\u0938\u093E\u092E\u0917\u094D\u0930\u0940 \u092A\u094D\u0930\u0915\u093E\u0930",file_type:"\u092B\u093C\u093E\u0907\u0932 \u092A\u094D\u0930\u0915\u093E\u0930",genre:"\u0936\u0948\u0932\u0940",language:"\u092D\u093E\u0937\u093E",queue:"\u0915\u0924\u093E\u0930",status:"\u0938\u094D\u0925\u093F\u0924\u093F",torrent_source:"\u091F\u094B\u0930\u0947\u0902\u091F \u0938\u094D\u0930\u094B\u0924",torrent_tag:"\u091F\u094B\u0930\u0947\u0902\u091F \u091F\u0948\u0917",video_resolution:"\u0935\u0940\u0921\u093F\u092F\u094B \u0930\u093F\u091C\u093C\u0949\u0932\u094D\u092F\u0942\u0936\u0928",video_source:"\u0935\u0940\u0921\u093F\u092F\u094B \u0938\u094D\u0930\u094B\u0924"},file_types:{archive:"\u0906\u0930\u094D\u0915\u093E\u0907\u0935",audio:"\u0911\u0921\u093F\u092F\u094B",data:"\u0921\u0947\u091F\u093E",document:"\u0926\u0938\u094D\u0924\u093E\u0935\u0947\u091C\u093C",image:"\u091B\u0935\u093F",software:"\u0938\u0949\u092B\u093C\u094D\u091F\u0935\u0947\u092F\u0930",subtitles:"\u0909\u092A\u0936\u0940\u0930\u094D\u0937\u0915",unknown:"\u0905\u091C\u094D\u091E\u093E\u0924",video:"\u0935\u0940\u0921\u093F\u092F\u094B"},general:{all:"\u0938\u092D\u0940",dismiss:"\u0916\u093E\u0930\u093F\u091C \u0915\u0930\u0947\u0902",error:"\u0924\u094D\u0930\u0941\u091F\u093F",none:"\u0915\u094B\u0908 \u0928\u0939\u0940\u0902",refresh:"\u0924\u093E\u091C\u093C\u093E \u0915\u0930\u0947\u0902",status:"\u0938\u094D\u0925\u093F\u0924\u093F"},health:{bitmagnet_is_status:"bitmagnet {{status}} \u0939\u0948",check_failed_with_error:"\u0924\u094D\u0930\u0941\u091F\u093F \u0915\u0947 \u0938\u093E\u0925 \u091C\u093E\u0902\u091A \u0935\u093F\u092B\u0932",component:"\u0918\u091F\u0915",components:{dht:"DHT",postgres:"Postgres",tmdb:"TMDB"},dismiss:"\u0916\u093E\u0930\u093F\u091C \u0915\u0930\u0947\u0902",error:"\u0924\u094D\u0930\u0941\u091F\u093F",status:"\u0938\u094D\u0925\u093F\u0924\u093F",statuses:{degraded:"\u0915\u094D\u0937\u0940\u0923",down:"\u092C\u0902\u0926",error:"\u0924\u094D\u0930\u0941\u091F\u093F",inactive:"\u0928\u093F\u0937\u094D\u0915\u094D\u0930\u093F\u092F",started:"\u0936\u0941\u0930\u0942 \u0915\u093F\u092F\u093E \u0917\u092F\u093E",unknown:"\u0932\u0902\u092C\u093F\u0924",up:"\u091A\u093E\u0932\u0942"},summary:"\u0938\u094D\u0935\u093E\u0938\u094D\u0925\u094D\u092F \u0938\u093E\u0930\u093E\u0902\u0936",worker:"\u0915\u093E\u0930\u094D\u092F\u0915\u0930\u094D\u0924\u093E",workers:{dht_crawler:"DHT \u0915\u094D\u0930\u0949\u0932\u0930",http_server:"HTTP \u0938\u0930\u094D\u0935\u0930",queue_server:"\u0915\u0924\u093E\u0930 \u0938\u0930\u094D\u0935\u0930"}},languages:{af:"\u0905\u092B\u094D\u0930\u0940\u0915\u0940",ar:"\u0905\u0930\u092C\u0940",az:"\u0905\u091C\u093C\u0947\u0930\u0940",be:"\u092C\u0947\u0932\u093E\u0930\u0942\u0938\u0940",bg:"\u092C\u0941\u0932\u094D\u0917\u093E\u0930\u093F\u092F\u093E\u0908",bs:"\u092C\u094B\u0938\u094D\u0928\u093F\u092F\u093E\u0908",ca:"\u0915\u0948\u091F\u0932\u0928",ce:"\u091A\u0947\u091A\u0947\u0928",co:"\u0915\u094B\u0930\u094D\u0938\u093F\u0915\u0928",cs:"\u091A\u0947\u0915",cy:"\u0935\u0947\u0932\u094D\u0936",da:"\u0921\u0947\u0928\u093F\u0936",de:"\u091C\u0930\u094D\u092E\u0928",el:"\u0917\u094D\u0930\u0940\u0915",en:"\u0905\u0902\u0917\u094D\u0930\u0947\u091C\u0940",es:"\u0938\u094D\u092A\u0948\u0928\u093F\u0936",et:"\u090F\u0938\u094D\u0924\u094B\u0928\u093F\u092F\u093E\u0908",eu:"\u092C\u093E\u0938\u094D\u0915",fa:"\u092B\u093E\u0930\u0938\u0940",fi:"\u092B\u093C\u093F\u0928\u093F\u0936",fr:"\u092B\u094D\u0930\u0947\u0902\u091A",he:"\u0939\u093F\u092C\u094D\u0930\u0942",hi:"\u0939\u093F\u0902\u0926\u0940",hr:"\u0915\u094D\u0930\u094B\u090F\u0936\u093F\u092F\u093E\u0908",hu:"\u0939\u0902\u0917\u0947\u0930\u093F\u092F\u0928",hy:"\u0906\u0930\u094D\u092E\u0947\u0928\u093F\u092F\u093E\u0908",id:"\u0907\u0902\u0921\u094B\u0928\u0947\u0936\u093F\u092F\u093E\u0908",is:"\u0906\u0907\u0938\u0932\u0948\u0902\u0921\u093F\u0915",it:"\u0907\u0924\u093E\u0932\u0935\u0940",ja:"\u091C\u093E\u092A\u093E\u0928\u0940",ka:"\u091C\u0949\u0930\u094D\u091C\u093F\u092F\u093E\u0908",ko:"\u0915\u094B\u0930\u093F\u092F\u093E\u0908",ku:"\u0915\u0941\u0930\u094D\u0926\u0940",lt:"\u0932\u093F\u0925\u0941\u0906\u0928\u093F\u092F\u093E\u0908",lv:"\u0932\u093E\u0924\u0935\u093F\u092F\u093E\u0908",mi:"\u092E\u093E\u0913\u0930\u0940",mk:"\u092E\u0948\u0938\u093F\u0921\u094B\u0928\u093F\u092F\u093E\u0908",ml:"\u092E\u0932\u092F\u093E\u0932\u092E",mn:"\u092E\u0902\u0917\u094B\u0932\u093F\u092F\u093E\u0908",ms:"\u092E\u0932\u092F",mt:"\u092E\u093E\u0932\u094D\u091F\u0940\u091C\u093C",nl:"\u0921\u091A",no:"\u0928\u0949\u0930\u094D\u0935\u0947\u091C\u093F\u092F\u0928",pl:"\u092A\u094B\u0932\u093F\u0936",pt:"\u092A\u0941\u0930\u094D\u0924\u0917\u093E\u0932\u0940",ro:"\u0930\u094B\u092E\u093E\u0928\u093F\u092F\u093E\u0908",ru:"\u0930\u0942\u0938\u0940",sa:"\u0938\u0902\u0938\u094D\u0915\u0943\u0924",sk:"\u0938\u094D\u0932\u094B\u0935\u093E\u0915",sl:"\u0938\u094D\u0932\u094B\u0935\u0947\u0928\u093F\u092F\u093E\u0908",sm:"\u0938\u093E\u092E\u094B\u0928",so:"\u0938\u094B\u092E\u093E\u0932\u0940",sr:"\u0938\u0930\u094D\u092C\u093F\u092F\u093E\u0908",sv:"\u0938\u094D\u0935\u0940\u0921\u093F\u0936",ta:"\u0924\u092E\u093F\u0932",th:"\u0925\u093E\u0908",tr:"\u0924\u0941\u0930\u094D\u0915\u0940",uk:"\u092F\u0942\u0915\u094D\u0930\u0947\u0928\u0940",vi:"\u0935\u093F\u092F\u0924\u0928\u093E\u092E\u0940",yi:"\u092F\u093F\u0926\u094D\u0926\u093F\u0936",zh:"\u091A\u0940\u0928\u0940",zu:"\u091C\u093C\u0941\u0932\u0941"},layout:{bitmagnet_on_service:"{{service}} \u092A\u0930 bitmagnet",change_theme:"\u0925\u0940\u092E \u092C\u0926\u0932\u0947\u0902",external_links:"\u092C\u093E\u0939\u0930\u0940 \u0932\u093F\u0902\u0915",sponsor:"\u092A\u094D\u0930\u093E\u092F\u094B\u091C\u0915",support_bitmagnet:"bitmagnet \u0915\u094B \u0938\u092E\u0930\u094D\u0925\u0928 \u0926\u0947\u0902",translate:"\u0905\u0928\u0941\u0935\u093E\u0926 \u0915\u0930\u0947\u0902"},paginator:{first_page:"\u092A\u0939\u0932\u093E \u092A\u0943\u0937\u094D\u0920",items_per_page:"\u092A\u094D\u0930\u0924\u093F \u092A\u0943\u0937\u094D\u0920 \u0906\u0907\u091F\u092E",last_page:"\u0905\u0902\u0924\u093F\u092E \u092A\u0943\u0937\u094D\u0920",next_page:"\u0905\u0917\u0932\u093E \u092A\u0943\u0937\u094D\u0920",previous_page:"\u092A\u093F\u091B\u0932\u093E \u092A\u0943\u0937\u094D\u0920",x_to_y:"{{x}} \u0938\u0947 {{y}} \u0924\u0915",x_to_y_of_z:"{{x}} \u0938\u0947 {{y}} \u0924\u0915 {{z}} \u092E\u0947\u0902"},routes:{admin:"\u092A\u094D\u0930\u0936\u093E\u0938\u0915",dashboard:"\u0921\u0948\u0936\u092C\u094B\u0930\u094D\u0921",home:"\u0939\u094B\u092E",jobs:"\u0928\u094C\u0915\u0930\u093F\u092F\u093E\u0902",queues:"\u0915\u0924\u093E\u0930\u0947\u0902",torrents:"\u091F\u094B\u0930\u0947\u0902\u091F\u094D\u0938",visualize:"\u0926\u0943\u0936\u094D\u092F \u0915\u0930\u0947\u0902"},torrents:{clear_search:"\u0916\u094B\u091C \u0938\u093E\u092B\u093C \u0915\u0930\u0947\u0902",copy:"\u0915\u0949\u092A\u0940 \u0915\u0930\u0947\u0902",copy_to_clipboard:"\u0915\u094D\u0932\u093F\u092A\u092C\u094B\u0930\u094D\u0921 \u092E\u0947\u0902 \u0915\u0949\u092A\u0940 \u0915\u0930\u0947\u0902",delete:"\u0939\u091F\u093E\u090F\u0902",delete_action_cannot_be_undone:"\u092F\u0939 \u0915\u094D\u0930\u093F\u092F\u093E \u092A\u0942\u0930\u094D\u0935\u0935\u0924 \u0928\u0939\u0940\u0902 \u0915\u0940 \u091C\u093E \u0938\u0915\u0924\u0940",delete_are_you_sure:"\u0915\u094D\u092F\u093E \u0906\u092A \u0935\u093E\u0915\u0908 \u0907\u0938 \u091F\u094B\u0930\u0947\u0902\u091F \u0915\u094B \u0939\u091F\u093E\u0928\u093E \u091A\u093E\u0939\u0924\u0947 \u0939\u0948\u0902?",deselect_all:"\u0938\u092D\u0940 \u0915\u094B \u0905\u091A\u092F\u0928\u093F\u0924 \u0915\u0930\u0947\u0902",edit_tags:"\u091F\u0948\u0917 \u0938\u0902\u092A\u093E\u0926\u093F\u0924 \u0915\u0930\u0947\u0902",episodes:"\u090F\u092A\u093F\u0938\u094B\u0921\u094D\u0938",external_links:"\u092C\u093E\u0939\u0930\u0940 \u0932\u093F\u0902\u0915",file_index:"\u092B\u093C\u093E\u0907\u0932 \u0938\u0942\u091A\u0915\u093E\u0902\u0915",file_path:"\u092B\u093C\u093E\u0907\u0932 \u092A\u0925",file_size:"\u092B\u093C\u093E\u0907\u0932 \u0906\u0915\u093E\u0930",file_type:"\u092B\u093C\u093E\u0907\u0932 \u092A\u094D\u0930\u0915\u093E\u0930",files:"\u092B\u093C\u093E\u0907\u0932\u0947\u0902",files_count_n:"{{count}} \u092B\u093C\u093E\u0907\u0932\u0947\u0902",files_no_info:"\u0915\u094B\u0908 \u092B\u093C\u093E\u0907\u0932 \u091C\u093E\u0928\u0915\u093E\u0930\u0940 \u0909\u092A\u0932\u092C\u094D\u0927 \u0928\u0939\u0940\u0902 \u0939\u0948",files_single:"\u090F\u0915\u0932 \u092B\u093C\u093E\u0907\u0932",genres:"\u0936\u0948\u0932\u093F\u092F\u093E\u0901",info_hash:"\u0938\u0942\u091A\u0928\u093E \u0939\u0948\u0936",info_hashes:"\u0938\u0942\u091A\u0928\u093E \u0939\u0948\u0936\u0947\u091C",languages:"\u092D\u093E\u0937\u093E\u090F\u0901",leechers:"\u0932\u0940\u091A\u0930\u094D\u0938",magnet:"\u092E\u0948\u0917\u094D\u0928\u0947\u091F",magnet_links:"\u092E\u0948\u0917\u094D\u0928\u0947\u091F \u0932\u093F\u0902\u0915",new_tag:"\u0928\u092F\u093E \u091F\u0948\u0917",order_by:"\u0915\u094D\u0930\u092E\u092C\u0926\u094D\u0927 \u0915\u0930\u0947\u0902",order_direction_toggle:"\u0926\u093F\u0936\u093E \u092C\u0926\u0932\u0947\u0902",ordering:{files_count:"\u092B\u093C\u093E\u0907\u0932\u094B\u0902 \u0915\u0940 \u0938\u0902\u0916\u094D\u092F\u093E",info_hash:"\u0938\u0942\u091A\u0928\u093E \u0939\u0948\u0936",leechers:"\u0932\u0940\u091A\u0930\u094D\u0938",name:"\u0928\u093E\u092E",published_at:"\u092A\u094D\u0930\u0915\u093E\u0936\u093F\u0924 \u0938\u092E\u092F",relevance:"\u092A\u094D\u0930\u093E\u0938\u0902\u0917\u093F\u0915\u0924\u093E",seeders:"\u0938\u0940\u0921\u0930\u094D\u0938",size:"\u0906\u0915\u093E\u0930",updated_at:"\u0905\u092A\u0921\u0947\u091F \u0938\u092E\u092F"},original_release_date:"\u092E\u0942\u0932 \u0930\u093F\u0932\u0940\u091C\u093C \u0924\u093F\u0925\u093F",permalink:"\u0938\u094D\u0925\u093E\u092F\u0940 \u0932\u093F\u0902\u0915",poster:"\u092A\u094B\u0938\u094D\u091F\u0930",published:"\u092A\u094D\u0930\u0915\u093E\u0936\u093F\u0924",rating:"\u0930\u0947\u091F\u093F\u0902\u0917",refresh:"\u092A\u0930\u093F\u0923\u093E\u092E \u0924\u093E\u091C\u093C\u093E \u0915\u0930\u0947\u0902",s_l:"S / L",search:"\u0916\u094B\u091C",seeders:"\u0938\u0940\u0921\u0930\u094D\u0938",select_all:"\u0938\u092D\u0940 \u0915\u093E \u091A\u092F\u0928 \u0915\u0930\u0947\u0902",showing_x_of_y_files:"{{x}} \u092E\u0947\u0902 \u0938\u0947 {{y}} \u092B\u093C\u093E\u0907\u0932\u0947\u0902 \u0926\u093F\u0916\u093E \u0930\u0939\u093E \u0939\u0948",size:"\u0906\u0915\u093E\u0930",source:"\u091F\u094B\u0930\u0947\u0902\u091F \u0938\u094D\u0930\u094B\u0924",summary:"\u0938\u093E\u0930\u093E\u0902\u0936",title:"\u0936\u0940\u0930\u094D\u0937\u0915",toggle_drawer:"\u0921\u094D\u0930\u0949\u0905\u0930 \u092C\u0926\u0932\u0947\u0902",votes_count_n:"{{count}} \u0935\u094B\u091F"},version:{bitmagnet_version:"bitmagnet \u0938\u0902\u0938\u094D\u0915\u0930\u0923 {{version}}",unknown:"\u0905\u091C\u094D\u091E\u093E\u0924"}};var at={content_types:{plural:{all:"\u3059\u3079\u3066",audiobook:"\u30AA\u30FC\u30C7\u30A3\u30AA\u30D6\u30C3\u30AF",comic:"\u30B3\u30DF\u30C3\u30AF",ebook:"\u96FB\u5B50\u66F8\u7C4D",movie:"\u6620\u753B",music:"\u97F3\u697D",null:"\u4E0D\u660E",software:"\u30BD\u30D5\u30C8\u30A6\u30A7\u30A2",tv_show:"\u30C6\u30EC\u30D3\u756A\u7D44",xxx:"\u30DD\u30EB\u30CE"},singular:{audiobook:"\u30AA\u30FC\u30C7\u30A3\u30AA\u30D6\u30C3\u30AF",comic:"\u30B3\u30DF\u30C3\u30AF",ebook:"\u96FB\u5B50\u66F8\u7C4D",movie:"\u6620\u753B",music:"\u97F3\u697D",null:"\u4E0D\u660E",software:"\u30BD\u30D5\u30C8\u30A6\u30A7\u30A2",tv_show:"\u30C6\u30EC\u30D3\u756A\u7D44",xxx:"\u30DD\u30EB\u30CE"}},dashboard:{event:{created:"\u4F5C\u6210\u6E08\u307F",failed:"\u5931\u6557",processed:"\u51E6\u7406\u6E08\u307F",updated:"\u66F4\u65B0\u6E08\u307F"},interval:{all:"\u3059\u3079\u3066",days:"\u65E5",days_1:"1\u65E5",hours:"\u6642\u9593",hours_1:"1\u6642\u9593",hours_12:"12\u6642\u9593",hours_6:"6\u6642\u9593",minutes:"\u5206",minutes_1:"1\u5206",minutes_15:"15\u5206",minutes_30:"30\u5206",minutes_5:"5\u5206",off:"\u30AA\u30D5",seconds_10:"10\u79D2",seconds_30:"30\u79D2",weeks_1:"1\u9031\u9593"},metrics:{event:"\u30A4\u30D9\u30F3\u30C8",resolution:"\u89E3\u50CF\u5EA6",throughput:"\u30B9\u30EB\u30FC\u30D7\u30C3\u30C8",timeframe:"\u671F\u9593"},queues:{created:"\u4F5C\u6210\u6E08\u307F",created_at:"\u4F5C\u6210\u65E5\u6642",enqueue_jobs:"\u30B8\u30E7\u30D6\u3092\u30AD\u30E5\u30FC\u306B\u5165\u308C\u308B",enqueue_torrent_processing_batch:"\u30C8\u30EC\u30F3\u30C8\u51E6\u7406\u30D0\u30C3\u30C1\u3092\u30AD\u30E5\u30FC\u306B\u5165\u308C\u308B",failed:"\u5931\u6557",force_rematch:"\u65E2\u306B\u4E00\u81F4\u3057\u305F\u30B3\u30F3\u30C6\u30F3\u30C4\u3092\u5F37\u5236\u7684\u306B\u518D\u4E00\u81F4\u3055\u305B\u308B",jobs_enqueued:"\u30AD\u30E5\u30FC\u306B\u8FFD\u52A0\u3055\u308C\u305F\u30B8\u30E7\u30D6",latency:"\u30EC\u30A4\u30C6\u30F3\u30B7",match_content_by_external_api_search:"\u5916\u90E8API\u691C\u7D22\u3067\u30B3\u30F3\u30C6\u30F3\u30C4\u3092\u4E00\u81F4\u3055\u305B\u308B",match_content_by_local_search:"\u30ED\u30FC\u30AB\u30EB\u691C\u7D22\u3067\u30B3\u30F3\u30C6\u30F3\u30C4\u3092\u4E00\u81F4\u3055\u305B\u308B",payload:"\u30DA\u30A4\u30ED\u30FC\u30C9",pending:"\u4FDD\u7559\u4E2D",priority:"\u512A\u5148\u9806\u4F4D",process_orphaned_torrents_only:"\u5B64\u7ACB\u3057\u305F\u30C8\u30EC\u30F3\u30C8\u306E\u307F\u51E6\u7406\u3059\u308B",processed:"\u51E6\u7406\u6E08\u307F",purge_jobs:"\u30B8\u30E7\u30D6\u3092\u524A\u9664",purge_queue_jobs:"\u30AD\u30E5\u30FC\u5185\u306E\u30B8\u30E7\u30D6\u3092\u524A\u9664",queue:"\u30AD\u30E5\u30FC",queue_purged:"\u30AD\u30E5\u30FC\u304C\u30AF\u30EA\u30A2\u3055\u308C\u307E\u3057\u305F",queues:"\u30AD\u30E5\u30FC",ran_at:"\u5B9F\u884C\u6642\u523B",retry:"\u518D\u8A66\u884C",total_counts_by_status:"\u30B9\u30C6\u30FC\u30BF\u30B9\u3054\u3068\u306E\u7DCF\u6570"}},facets:{content_type:"\u30B3\u30F3\u30C6\u30F3\u30C4\u30BF\u30A4\u30D7",file_type:"\u30D5\u30A1\u30A4\u30EB\u30BF\u30A4\u30D7",genre:"\u30B8\u30E3\u30F3\u30EB",language:"\u8A00\u8A9E",queue:"\u30AD\u30E5\u30FC",status:"\u30B9\u30C6\u30FC\u30BF\u30B9",torrent_source:"\u30C8\u30EC\u30F3\u30C8\u30BD\u30FC\u30B9",torrent_tag:"\u30C8\u30EC\u30F3\u30C8\u30BF\u30B0",video_resolution:"\u30D3\u30C7\u30AA\u89E3\u50CF\u5EA6",video_source:"\u30D3\u30C7\u30AA\u30BD\u30FC\u30B9"},file_types:{archive:"\u30A2\u30FC\u30AB\u30A4\u30D6",audio:"\u30AA\u30FC\u30C7\u30A3\u30AA",data:"\u30C7\u30FC\u30BF",document:"\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8",image:"\u753B\u50CF",software:"\u30BD\u30D5\u30C8\u30A6\u30A7\u30A2",subtitles:"\u5B57\u5E55",unknown:"\u4E0D\u660E",video:"\u30D3\u30C7\u30AA"},general:{all:"\u3059\u3079\u3066",dismiss:"\u9589\u3058\u308B",error:"\u30A8\u30E9\u30FC",none:"\u306A\u3057",refresh:"\u66F4\u65B0",status:"\u30B9\u30C6\u30FC\u30BF\u30B9"},health:{bitmagnet_is_status:"bitmagnet\u306F{{status}}\u3067\u3059",check_failed_with_error:"\u30A8\u30E9\u30FC\u3067\u30C1\u30A7\u30C3\u30AF\u306B\u5931\u6557\u3057\u307E\u3057\u305F",component:"\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8",components:{dht:"DHT",postgres:"Postgres",tmdb:"TMDB"},dismiss:"\u9589\u3058\u308B",error:"\u30A8\u30E9\u30FC",status:"\u30B9\u30C6\u30FC\u30BF\u30B9",statuses:{degraded:"\u4F4E\u4E0B",down:"\u505C\u6B62",error:"\u30A8\u30E9\u30FC",inactive:"\u975E\u30A2\u30AF\u30C6\u30A3\u30D6",started:"\u958B\u59CB",unknown:"\u4FDD\u7559\u4E2D",up:"\u7A3C\u50CD\u4E2D"},summary:"\u5065\u5EB7\u72B6\u614B\u306E\u6982\u8981",worker:"\u30EF\u30FC\u30AB\u30FC",workers:{dht_crawler:"DHT\u30AF\u30ED\u30FC\u30E9\u30FC",http_server:"HTTP\u30B5\u30FC\u30D0\u30FC",queue_server:"\u30AD\u30E5\u30FC\u30B5\u30FC\u30D0\u30FC"}},languages:{af:"\u30A2\u30D5\u30EA\u30AB\u30FC\u30F3\u30B9\u8A9E",ar:"\u30A2\u30E9\u30D3\u30A2\u8A9E",az:"\u30A2\u30BC\u30EB\u30D0\u30A4\u30B8\u30E3\u30F3\u8A9E",be:"\u30D9\u30E9\u30EB\u30FC\u30B7\u8A9E",bg:"\u30D6\u30EB\u30AC\u30EA\u30A2\u8A9E",bs:"\u30DC\u30B9\u30CB\u30A2\u8A9E",ca:"\u30AB\u30BF\u30EB\u30FC\u30CB\u30E3\u8A9E",ce:"\u30C1\u30A7\u30C1\u30A7\u30F3\u8A9E",co:"\u30B3\u30EB\u30B7\u30AB\u8A9E",cs:"\u30C1\u30A7\u30B3\u8A9E",cy:"\u30A6\u30A7\u30FC\u30EB\u30BA\u8A9E",da:"\u30C7\u30F3\u30DE\u30FC\u30AF\u8A9E",de:"\u30C9\u30A4\u30C4\u8A9E",el:"\u30AE\u30EA\u30B7\u30E3\u8A9E",en:"\u82F1\u8A9E",es:"\u30B9\u30DA\u30A4\u30F3\u8A9E",et:"\u30A8\u30B9\u30C8\u30CB\u30A2\u8A9E",eu:"\u30D0\u30B9\u30AF\u8A9E",fa:"\u30DA\u30EB\u30B7\u30E3\u8A9E",fi:"\u30D5\u30A3\u30F3\u30E9\u30F3\u30C9\u8A9E",fr:"\u30D5\u30E9\u30F3\u30B9\u8A9E",he:"\u30D8\u30D6\u30E9\u30A4\u8A9E",hi:"\u30D2\u30F3\u30C7\u30A3\u30FC\u8A9E",hr:"\u30AF\u30ED\u30A2\u30C1\u30A2\u8A9E",hu:"\u30CF\u30F3\u30AC\u30EA\u30FC\u8A9E",hy:"\u30A2\u30EB\u30E1\u30CB\u30A2\u8A9E",id:"\u30A4\u30F3\u30C9\u30CD\u30B7\u30A2\u8A9E",is:"\u30A2\u30A4\u30B9\u30E9\u30F3\u30C9\u8A9E",it:"\u30A4\u30BF\u30EA\u30A2\u8A9E",ja:"\u65E5\u672C\u8A9E",ka:"\u30B0\u30EB\u30B8\u30A2\u8A9E",ko:"\u97D3\u56FD\u8A9E",ku:"\u30AF\u30EB\u30C9\u8A9E",lt:"\u30EA\u30C8\u30A2\u30CB\u30A2\u8A9E",lv:"\u30E9\u30C8\u30D3\u30A2\u8A9E",mi:"\u30DE\u30AA\u30EA\u8A9E",mk:"\u30DE\u30B1\u30C9\u30CB\u30A2\u8A9E",ml:"\u30DE\u30E9\u30E4\u30FC\u30E9\u30E0\u8A9E",mn:"\u30E2\u30F3\u30B4\u30EB\u8A9E",ms:"\u30DE\u30EC\u30FC\u8A9E",mt:"\u30DE\u30EB\u30BF\u8A9E",nl:"\u30AA\u30E9\u30F3\u30C0\u8A9E",no:"\u30CE\u30EB\u30A6\u30A7\u30FC\u8A9E",pl:"\u30DD\u30FC\u30E9\u30F3\u30C9\u8A9E",pt:"\u30DD\u30EB\u30C8\u30AC\u30EB\u8A9E",ro:"\u30EB\u30FC\u30DE\u30CB\u30A2\u8A9E",ru:"\u30ED\u30B7\u30A2\u8A9E",sa:"\u30B5\u30F3\u30B9\u30AF\u30EA\u30C3\u30C8",sk:"\u30B9\u30ED\u30D0\u30AD\u30A2\u8A9E",sl:"\u30B9\u30ED\u30D9\u30CB\u30A2\u8A9E",sm:"\u30B5\u30E2\u30A2\u8A9E",so:"\u30BD\u30DE\u30EA\u8A9E",sr:"\u30BB\u30EB\u30D3\u30A2\u8A9E",sv:"\u30B9\u30A6\u30A7\u30FC\u30C7\u30F3\u8A9E",ta:"\u30BF\u30DF\u30EB\u8A9E",th:"\u30BF\u30A4\u8A9E",tr:"\u30C8\u30EB\u30B3\u8A9E",uk:"\u30A6\u30AF\u30E9\u30A4\u30CA\u8A9E",vi:"\u30D9\u30C8\u30CA\u30E0\u8A9E",yi:"\u30A4\u30C7\u30A3\u30C3\u30B7\u30E5\u8A9E",zh:"\u4E2D\u56FD\u8A9E",zu:"\u30BA\u30FC\u30EB\u30FC\u8A9E"},layout:{bitmagnet_on_service:"{{service}}\u306Ebitmagnet",change_theme:"\u30C6\u30FC\u30DE\u3092\u5909\u66F4",external_links:"\u5916\u90E8\u30EA\u30F3\u30AF",sponsor:"\u30B9\u30DD\u30F3\u30B5\u30FC",support_bitmagnet:"bitmagnet\u3092\u30B5\u30DD\u30FC\u30C8",translate:"\u7FFB\u8A33\u3059\u308B"},paginator:{first_page:"\u6700\u521D\u306E\u30DA\u30FC\u30B8",items_per_page:"\u30DA\u30FC\u30B8\u3042\u305F\u308A\u306E\u9805\u76EE\u6570",last_page:"\u6700\u5F8C\u306E\u30DA\u30FC\u30B8",next_page:"\u6B21\u306E\u30DA\u30FC\u30B8",previous_page:"\u524D\u306E\u30DA\u30FC\u30B8",x_to_y:"{{x}} \u304B\u3089 {{y}} \u307E\u3067",x_to_y_of_z:"{{x}} \u304B\u3089 {{y}} \u307E\u3067\u306E {{z}}"},routes:{admin:"\u7BA1\u7406\u8005",dashboard:"\u30C0\u30C3\u30B7\u30E5\u30DC\u30FC\u30C9",home:"\u30DB\u30FC\u30E0",jobs:"\u30B8\u30E7\u30D6",queues:"\u30AD\u30E5\u30FC",torrents:"\u30C8\u30EC\u30F3\u30C8",visualize:"\u53EF\u8996\u5316"},torrents:{clear_search:"\u691C\u7D22\u3092\u30AF\u30EA\u30A2",copy:"\u30B3\u30D4\u30FC",copy_to_clipboard:"\u30AF\u30EA\u30C3\u30D7\u30DC\u30FC\u30C9\u306B\u30B3\u30D4\u30FC",delete:"\u524A\u9664",delete_action_cannot_be_undone:"\u3053\u306E\u64CD\u4F5C\u306F\u5143\u306B\u623B\u305B\u307E\u305B\u3093",delete_are_you_sure:"\u3053\u306E\u30C8\u30EC\u30F3\u30C8\u3092\u524A\u9664\u3057\u3066\u3082\u3088\u308D\u3057\u3044\u3067\u3059\u304B\uFF1F",deselect_all:"\u3059\u3079\u3066\u306E\u9078\u629E\u3092\u89E3\u9664",edit_tags:"\u30BF\u30B0\u3092\u7DE8\u96C6",episodes:"\u30A8\u30D4\u30BD\u30FC\u30C9",external_links:"\u5916\u90E8\u30EA\u30F3\u30AF",file_index:"\u30D5\u30A1\u30A4\u30EB\u30A4\u30F3\u30C7\u30C3\u30AF\u30B9",file_path:"\u30D5\u30A1\u30A4\u30EB\u30D1\u30B9",file_size:"\u30D5\u30A1\u30A4\u30EB\u30B5\u30A4\u30BA",file_type:"\u30D5\u30A1\u30A4\u30EB\u30BF\u30A4\u30D7",files:"\u30D5\u30A1\u30A4\u30EB",files_count_n:"{{count}} \u4EF6\u306E\u30D5\u30A1\u30A4\u30EB",files_no_info:"\u30D5\u30A1\u30A4\u30EB\u60C5\u5831\u306F\u3042\u308A\u307E\u305B\u3093",files_single:"\u5358\u4E00\u30D5\u30A1\u30A4\u30EB",genres:"\u30B8\u30E3\u30F3\u30EB",info_hash:"\u60C5\u5831\u30CF\u30C3\u30B7\u30E5",info_hashes:"\u60C5\u5831\u30CF\u30C3\u30B7\u30E5",languages:"\u8A00\u8A9E",leechers:"\u30EA\u30FC\u30C1\u30E3\u30FC",magnet:"\u30DE\u30B0\u30CD\u30C3\u30C8",magnet_links:"\u30DE\u30B0\u30CD\u30C3\u30C8\u30EA\u30F3\u30AF",new_tag:"\u65B0\u3057\u3044\u30BF\u30B0",order_by:"\u4E26\u3073\u66FF\u3048",order_direction_toggle:"\u4E26\u3073\u9806\u3092\u5207\u308A\u66FF\u3048",ordering:{files_count:"\u30D5\u30A1\u30A4\u30EB\u6570",info_hash:"\u60C5\u5831\u30CF\u30C3\u30B7\u30E5",leechers:"\u30EA\u30FC\u30C1\u30E3\u30FC",name:"\u540D\u524D",published_at:"\u516C\u958B\u65E5\u6642",relevance:"\u95A2\u9023\u6027",seeders:"\u30B7\u30FC\u30C0\u30FC",size:"\u30B5\u30A4\u30BA",updated_at:"\u66F4\u65B0\u65E5\u6642"},original_release_date:"\u30AA\u30EA\u30B8\u30CA\u30EB\u306E\u767A\u58F2\u65E5",permalink:"\u30D1\u30FC\u30DE\u30EA\u30F3\u30AF",poster:"\u30DD\u30B9\u30BF\u30FC",published:"\u516C\u958B\u6E08\u307F",rating:"\u8A55\u4FA1",refresh:"\u7D50\u679C\u3092\u66F4\u65B0",s_l:"S / L",search:"\u691C\u7D22",seeders:"\u30B7\u30FC\u30C0\u30FC",select_all:"\u3059\u3079\u3066\u9078\u629E",showing_x_of_y_files:"{{x}} \u4EF6\u4E2D {{y}} \u4EF6\u8868\u793A",size:"\u30B5\u30A4\u30BA",source:"\u30C8\u30EC\u30F3\u30C8\u30BD\u30FC\u30B9",summary:"\u6982\u8981",title:"\u30BF\u30A4\u30C8\u30EB",toggle_drawer:"\u5F15\u304D\u51FA\u3057\u3092\u5207\u308A\u66FF\u3048",votes_count_n:"{{count}} \u7968"},version:{bitmagnet_version:"bitmagnet\u30D0\u30FC\u30B8\u30E7\u30F3 {{version}}",unknown:"\u4E0D\u660E"}};var ot={content_types:{plural:{all:"Alle",audiobook:"Audioboeken",comic:"Strips",ebook:"E-Boeken",movie:"Films",music:"Muziek",null:"Onbekend",software:"Software",tv_show:"Tv-programma's",xxx:"XXX"},singular:{audiobook:"Audioboek",comic:"Strip",ebook:"E-Book",movie:"Film",music:"Muziek",null:"Onbekend",software:"Software",tv_show:"Tv-programma",xxx:"XXX"}},dashboard:{event:{created:"Gemaakt",failed:"Mislukt",processed:"Verwerkt",updated:"Bijgewerkt"},interval:{all:"Alle",days:"Dagen",days_1:"1 dag",hours:"Uren",hours_1:"1 uur",hours_12:"12 uur",hours_6:"6 uur",minutes:"Minuten",minutes_1:"1 minuut",minutes_15:"15 minuten",minutes_30:"30 minuten",minutes_5:"5 minuten",off:"Uit",seconds_10:"10 seconden",seconds_30:"30 seconden",weeks_1:"1 week"},metrics:{event:"Gebeurtenis",resolution:"Resolutie",throughput:"Doorvoer",timeframe:"Tijdsperiode"},queues:{created:"Gemaakt",created_at:"Gemaakt op",enqueue_jobs:"Voeg taken toe aan wachtrij",enqueue_torrent_processing_batch:"Torrentverwerkingsbatch toevoegen",failed:"Mislukt",force_rematch:"Forceer nieuwe match van al gematchte inhoud",jobs_enqueued:"Taken in wachtrij gezet",latency:"Latentie",match_content_by_external_api_search:"Match inhoud via externe API-zoekopdracht",match_content_by_local_search:"Match inhoud via lokale zoekopdracht",payload:"Inhoud",pending:"In afwachting",priority:"Prioriteit",process_orphaned_torrents_only:"Verwerk alleen verweesde torrents",processed:"Verwerkt",purge_jobs:"Wis taken",purge_queue_jobs:"Wis wachtrijtaken",queue:"Wachtrij",queue_purged:"Wachtrij gewist",queues:"Wachtrijen",ran_at:"Uitgevoerd op",retry:"Opnieuw proberen",total_counts_by_status:"Totaal aantal per status"}},facets:{content_type:"Inhoudstype",file_type:"Bestandstype",genre:"Genre",language:"Taal",queue:"Wachtrij",status:"Status",torrent_source:"Torrentbron",torrent_tag:"Torrenttag",video_resolution:"Videoresolutie",video_source:"Videobron"},file_types:{archive:"Archief",audio:"Audio",data:"Data",document:"Document",image:"Afbeelding",software:"Software",subtitles:"Ondertitels",unknown:"Onbekend",video:"Video"},general:{all:"Alle",dismiss:"Sluiten",error:"Fout",none:"Geen",refresh:"Verversen",status:"Status"},health:{bitmagnet_is_status:"bitmagnet is {{status}}",check_failed_with_error:"Controle mislukt met foutmelding",component:"Component",components:{dht:"DHT",postgres:"Postgres",tmdb:"TMDB"},dismiss:"Sluiten",error:"Fout",status:"Status",statuses:{degraded:"Verlaagd",down:"Niet beschikbaar",error:"Fout",inactive:"Inactief",started:"Gestart",unknown:"Onbekend",up:"Beschikbaar"},summary:"Gezondheidsrapport",worker:"Werker",workers:{dht_crawler:"DHT crawler",http_server:"HTTP server",queue_server:"Wachtrijserver"}},languages:{af:"Afrikaans",ar:"Arabisch",az:"Azerbeidzjaans",be:"Wit-Russisch",bg:"Bulgaars",bs:"Bosnisch",ca:"Catalaans",ce:"Tsjetsjeens",co:"Corsicaans",cs:"Tsjechisch",cy:"Welsh",da:"Deens",de:"Duits",el:"Grieks",en:"Engels",es:"Spaans",et:"Ests",eu:"Baskisch",fa:"Perzisch",fi:"Fins",fr:"Frans",he:"Hebreeuws",hi:"Hindi",hr:"Kroatisch",hu:"Hongaars",hy:"Armeens",id:"Indonesisch",is:"IJslands",it:"Italiaans",ja:"Japans",ka:"Georgisch",ko:"Koreaans",ku:"Koerdisch",lt:"Litouws",lv:"Lets",mi:"Maori",mk:"Macedonisch",ml:"Malayalam",mn:"Mongools",ms:"Maleis",mt:"Maltees",nl:"Nederlands",no:"Noors",pl:"Pools",pt:"Portugees",ro:"Roemeens",ru:"Russisch",sa:"Sanskriet",sk:"Slowaaks",sl:"Sloveens",sm:"Samoaans",so:"Somalisch",sr:"Servisch",sv:"Zweeds",ta:"Tamil",th:"Thais",tr:"Turks",uk:"Oekra\xEFens",vi:"Vietnamees",yi:"Jiddisch",zh:"Chinees",zu:"Zoeloe"},layout:{bitmagnet_on_service:"bitmagnet op {{service}}",change_theme:"Wijzig thema",external_links:"Externe links",sponsor:"Sponsor",support_bitmagnet:"Ondersteun bitmagnet",translate:"Vertalen"},paginator:{first_page:"Eerste pagina",items_per_page:"Items per pagina",last_page:"Laatste pagina",next_page:"Volgende pagina",previous_page:"Vorige pagina",x_to_y:"{{x}} tot {{y}}",x_to_y_of_z:"{{x}} tot {{y}} van {{z}}"},routes:{admin:"Beheerder",dashboard:"Dashboard",home:"Home",jobs:"Taken",queues:"Wachtrijen",torrents:"Torrents",visualize:"Visualiseren"},torrents:{clear_search:"Zoekopdracht wissen",copy:"Kopi\xEBren",copy_to_clipboard:"Kopi\xEBren naar klembord",delete:"Verwijderen",delete_action_cannot_be_undone:"Deze actie kan niet ongedaan worden gemaakt",delete_are_you_sure:"Weet u zeker dat u deze torrent wilt verwijderen?",deselect_all:"Deselecteer alles",edit_tags:"Tags bewerken",episodes:"Afleveringen",external_links:"Externe links",file_index:"Bestandsindex",file_path:"Bestandspad",file_size:"Bestandsgrootte",file_type:"Bestandstype",files:"Bestanden",files_count_n:"{{count}} bestanden",files_no_info:"Geen informatie over bestanden beschikbaar",files_single:"Enkel bestand",genres:"Genres",info_hash:"Info hash",info_hashes:"Info hashes",languages:"Talen",leechers:"Leechers",magnet:"Magnet",magnet_links:"Magnet-links",new_tag:"Nieuwe tag",order_by:"Sorteren op",order_direction_toggle:"Richting omkeren",ordering:{files_count:"Aantal bestanden",info_hash:"Info hash",leechers:"Leechers",name:"Naam",published_at:"Gepubliceerd op",relevance:"Relevantie",seeders:"Seeders",size:"Grootte",updated_at:"Bijgewerkt op"},original_release_date:"Oorspronkelijke releasedatum",permalink:"Permalink",poster:"Poster",published:"Gepubliceerd",rating:"Beoordeling",refresh:"Vernieuw resultaten",s_l:"S / L",search:"Zoeken",seeders:"Seeders",select_all:"Alles selecteren",showing_x_of_y_files:"{{x}} van {{y}} bestanden weergegeven",size:"Grootte",source:"Torrentbron",summary:"Samenvatting",title:"Titel",toggle_drawer:"Zijpaneel in-/uitschakelen",votes_count_n:"{{count}} stemmen"},version:{bitmagnet_version:"bitmagnet versie {{version}}",unknown:"onbekend"}};var rt={content_types:{plural:{all:"Todos",audiobook:"Audiolivros",comic:"Quadrinhos",ebook:"E-books",movie:"Filmes",music:"M\xFAsica",null:"Desconhecido",software:"Software",tv_show:"Programas de TV",xxx:"XXX"},singular:{audiobook:"Audiolivro",comic:"Quadrinho",ebook:"E-book",movie:"Filme",music:"M\xFAsica",null:"Desconhecido",software:"Software",tv_show:"Programa de TV",xxx:"XXX"}},dashboard:{event:{created:"Criado",failed:"Falhou",processed:"Processado",updated:"Atualizado"},interval:{all:"Todos",days:"Dias",days_1:"1 dia",hours:"Horas",hours_1:"1 hora",hours_12:"12 horas",hours_6:"6 horas",minutes:"Minutos",minutes_1:"1 minuto",minutes_15:"15 minutos",minutes_30:"30 minutos",minutes_5:"5 minutos",off:"Desligado",seconds_10:"10 segundos",seconds_30:"30 segundos",weeks_1:"1 semana"},metrics:{event:"Evento",resolution:"Resolu\xE7\xE3o",throughput:"Taxa de transfer\xEAncia",timeframe:"Intervalo de tempo"},queues:{created:"Criado",created_at:"Criado em",enqueue_jobs:"Enfileirar trabalhos",enqueue_torrent_processing_batch:"Enfileirar lote de processamento de torrents",failed:"Falhou",force_rematch:"For\xE7ar nova correspond\xEAncia de conte\xFAdo j\xE1 correspondido",jobs_enqueued:"Trabalhos enfileirados",latency:"Lat\xEAncia",match_content_by_external_api_search:"Correspond\xEAncia de conte\xFAdo por pesquisa de API externa",match_content_by_local_search:"Correspond\xEAncia de conte\xFAdo por pesquisa local",payload:"Carga \xFAtil",pending:"Pendente",priority:"Prioridade",process_orphaned_torrents_only:"Processar apenas torrents \xF3rf\xE3os",processed:"Processado",purge_jobs:"Limpar trabalhos",purge_queue_jobs:"Limpar trabalhos da fila",queue:"Fila",queue_purged:"Fila limpa",queues:"Filas",ran_at:"Executado em",retry:"Tentar novamente",total_counts_by_status:"Contagens totais por status"}},facets:{content_type:"Tipo de Conte\xFAdo",file_type:"Tipo de Arquivo",genre:"G\xEAnero",language:"Idioma",queue:"Fila",status:"Status",torrent_source:"Fonte do Torrent",torrent_tag:"Tag do Torrent",video_resolution:"Resolu\xE7\xE3o de V\xEDdeo",video_source:"Fonte de V\xEDdeo"},file_types:{archive:"Arquivo",audio:"\xC1udio",data:"Dados",document:"Documento",image:"Imagem",software:"Software",subtitles:"Legendas",unknown:"Desconhecido",video:"V\xEDdeo"},general:{all:"Todos",dismiss:"Fechar",error:"Erro",none:"Nenhum",refresh:"Atualizar",status:"Status"},health:{bitmagnet_is_status:"bitmagnet est\xE1 {{status}}",check_failed_with_error:"Verifica\xE7\xE3o falhou com erro",component:"Componente",components:{dht:"DHT",postgres:"Postgres",tmdb:"TMDB"},dismiss:"Fechar",error:"Erro",status:"Status",statuses:{degraded:"Degradado",down:"Fora do ar",error:"Erro",inactive:"Inativo",started:"Iniciado",unknown:"Pendente",up:"Funcionando"},summary:"Resumo de Sa\xFAde",worker:"Trabalhador",workers:{dht_crawler:"Rastreamento DHT",http_server:"Servidor HTTP",queue_server:"Servidor de Fila"}},languages:{af:"Afric\xE2ner",ar:"\xC1rabe",az:"Azeri",be:"Bielorrusso",bg:"B\xFAlgaro",bs:"B\xF3snio",ca:"Catal\xE3o",ce:"Checheno",co:"Corso",cs:"Tcheco",cy:"Gal\xEAs",da:"Dinamarqu\xEAs",de:"Alem\xE3o",el:"Grego",en:"Ingl\xEAs",es:"Espanhol",et:"Estoniano",eu:"Basco",fa:"Persa",fi:"Finland\xEAs",fr:"Franc\xEAs",he:"Hebraico",hi:"Hindi",hr:"Croata",hu:"H\xFAngaro",hy:"Arm\xEAnio",id:"Indon\xE9sio",is:"Island\xEAs",it:"Italiano",ja:"Japon\xEAs",ka:"Georgiano",ko:"Coreano",ku:"Curdo",lt:"Lituano",lv:"Let\xE3o",mi:"Maori",mk:"Maced\xF4nio",ml:"Malaiala",mn:"Mongol",ms:"Malaio",mt:"Malt\xEAs",nl:"Holand\xEAs",no:"Noruegu\xEAs",pl:"Polon\xEAs",pt:"Portugu\xEAs",ro:"Romeno",ru:"Russo",sa:"S\xE2nscrito",sk:"Eslovaco",sl:"Esloveno",sm:"Samoano",so:"Somali",sr:"S\xE9rvio",sv:"Sueco",ta:"T\xE2mil",th:"Tailand\xEAs",tr:"Turco",uk:"Ucraniano",vi:"Vietnamita",yi:"I\xEDdiche",zh:"Chin\xEAs",zu:"Zulu"},layout:{bitmagnet_on_service:"bitmagnet em {{service}}",change_theme:"Alterar tema",external_links:"Links externos",sponsor:"Patrocinador",support_bitmagnet:"Apoiar bitmagnet",translate:"Traduzir"},paginator:{first_page:"Primeira p\xE1gina",items_per_page:"Itens por p\xE1gina",last_page:"\xDAltima p\xE1gina",next_page:"Pr\xF3xima p\xE1gina",previous_page:"P\xE1gina anterior",x_to_y:"{{x}} a {{y}}",x_to_y_of_z:"{{x}} a {{y}} de {{z}}"},routes:{admin:"Administra\xE7\xE3o",dashboard:"Painel",home:"In\xEDcio",jobs:"Tarefas",queues:"Filas",torrents:"Torrents",visualize:"Visualizar"},torrents:{clear_search:"Limpar Pesquisa",copy:"Copiar",copy_to_clipboard:"Copiar para a \xE1rea de transfer\xEAncia",delete:"Excluir",delete_action_cannot_be_undone:"Esta a\xE7\xE3o n\xE3o pode ser desfeita",delete_are_you_sure:"Tem certeza de que deseja excluir este torrent?",deselect_all:"Desmarcar todos",edit_tags:"Editar tags",episodes:"Epis\xF3dios",external_links:"Links externos",file_index:"\xCDndice de arquivo",file_path:"Caminho do arquivo",file_size:"Tamanho do arquivo",file_type:"Tipo de arquivo",files:"Arquivos",files_count_n:"{{count}} arquivos",files_no_info:"Sem informa\xE7\xF5es de arquivos dispon\xEDveis",files_single:"Arquivo \xFAnico",genres:"G\xEAneros",info_hash:"Hash de informa\xE7\xE3o",info_hashes:"Hashes de informa\xE7\xE3o",languages:"Idiomas",leechers:"Leechers",magnet:"Magnet",magnet_links:"Links magnet",new_tag:"Nova tag",order_by:"Ordenar por",order_direction_toggle:"Inverter dire\xE7\xE3o",ordering:{files_count:"Contagem de arquivos",info_hash:"Hash de informa\xE7\xE3o",leechers:"Leechers",name:"Nome",published_at:"Publicado em",relevance:"Relev\xE2ncia",seeders:"Seeders",size:"Tamanho",updated_at:"Atualizado em"},original_release_date:"Data de lan\xE7amento original",permalink:"Link permanente",poster:"P\xF4ster",published:"Publicado",rating:"Classifica\xE7\xE3o",refresh:"Atualizar resultados",s_l:"S / L",search:"Buscar",seeders:"Seeders",select_all:"Selecionar tudo",showing_x_of_y_files:"Mostrando {{x}} de {{y}} arquivos",size:"Tamanho",source:"Fonte do torrent",summary:"Resumo",title:"T\xEDtulo",toggle_drawer:"Alternar gaveta",votes_count_n:"{{count}} votos"},version:{bitmagnet_version:"Vers\xE3o do bitmagnet {{version}}",unknown:"desconhecido"}};var nt={content_types:{plural:{all:"\u0412\u0441\u0435",audiobook:"\u0410\u0443\u0434\u0438\u043E\u043A\u043D\u0438\u0433\u0438",comic:"\u041A\u043E\u043C\u0438\u043A\u0441\u044B",ebook:"\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u044B\u0435 \u043A\u043D\u0438\u0433\u0438",movie:"\u0424\u0438\u043B\u044C\u043C\u044B",music:"\u041C\u0443\u0437\u044B\u043A\u0430",null:"\u041D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E",software:"\u041F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u044B",tv_show:"\u0422\u0435\u043B\u0435\u043F\u0435\u0440\u0435\u0434\u0430\u0447\u0438",xxx:"\u041F\u043E\u0440\u043D\u043E"},singular:{audiobook:"\u0410\u0443\u0434\u0438\u043E\u043A\u043D\u0438\u0433\u0430",comic:"\u041A\u043E\u043C\u0438\u043A\u0441",ebook:"\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043A\u043D\u0438\u0433\u0430",movie:"\u0424\u0438\u043B\u044C\u043C",music:"\u041C\u0443\u0437\u044B\u043A\u0430",null:"\u041D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E",software:"\u041F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430",tv_show:"\u0422\u0435\u043B\u0435\u043F\u0435\u0440\u0435\u0434\u0430\u0447\u0430",xxx:"\u041F\u043E\u0440\u043D\u043E"}},dashboard:{event:{created:"\u0421\u043E\u0437\u0434\u0430\u043D\u043E",failed:"\u041E\u0448\u0438\u0431\u043A\u0430",processed:"\u041E\u0431\u0440\u0430\u0431\u043E\u0442\u0430\u043D\u043E",updated:"\u041E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u043E"},interval:{all:"\u0412\u0441\u0435",days:"\u0414\u043D\u0438",days_1:"1 \u0434\u0435\u043D\u044C",hours:"\u0427\u0430\u0441\u044B",hours_1:"1 \u0447\u0430\u0441",hours_12:"12 \u0447\u0430\u0441\u043E\u0432",hours_6:"6 \u0447\u0430\u0441\u043E\u0432",minutes:"\u041C\u0438\u043D\u0443\u0442\u044B",minutes_1:"1 \u043C\u0438\u043D\u0443\u0442\u0430",minutes_15:"15 \u043C\u0438\u043D\u0443\u0442",minutes_30:"30 \u043C\u0438\u043D\u0443\u0442",minutes_5:"5 \u043C\u0438\u043D\u0443\u0442",off:"\u041E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u043E",seconds_10:"10 \u0441\u0435\u043A\u0443\u043D\u0434",seconds_30:"30 \u0441\u0435\u043A\u0443\u043D\u0434",weeks_1:"1 \u043D\u0435\u0434\u0435\u043B\u044F"},metrics:{event:"\u0421\u043E\u0431\u044B\u0442\u0438\u0435",resolution:"\u0420\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u0438\u0435",throughput:"\u041F\u0440\u043E\u043F\u0443\u0441\u043A\u043D\u0430\u044F \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u044C",timeframe:"\u041F\u0435\u0440\u0438\u043E\u0434 \u0432\u0440\u0435\u043C\u0435\u043D\u0438"},queues:{created:"\u0421\u043E\u0437\u0434\u0430\u043D\u043E",created_at:"\u0421\u043E\u0437\u0434\u0430\u043D\u043E \u0432",enqueue_jobs:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0437\u0430\u0434\u0430\u043D\u0438\u044F \u0432 \u043E\u0447\u0435\u0440\u0435\u0434\u044C",enqueue_torrent_processing_batch:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043F\u0430\u0440\u0442\u0438\u044E \u0434\u043B\u044F \u043E\u0431\u0440\u0430\u0431\u043E\u0442\u043A\u0438 \u0442\u043E\u0440\u0440\u0435\u043D\u0442\u043E\u0432",failed:"\u041E\u0448\u0438\u0431\u043A\u0430",force_rematch:"\u041F\u0440\u0438\u043D\u0443\u0434\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0435 \u043F\u043E\u0432\u0442\u043E\u0440\u043D\u043E\u0435 \u0441\u043E\u043F\u043E\u0441\u0442\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u0443\u0436\u0435 \u0441\u043E\u043F\u043E\u0441\u0442\u0430\u0432\u043B\u0435\u043D\u043D\u043E\u0433\u043E \u043A\u043E\u043D\u0442\u0435\u043D\u0442\u0430",jobs_enqueued:"\u0417\u0430\u0434\u0430\u043D\u0438\u044F \u0434\u043E\u0431\u0430\u0432\u043B\u0435\u043D\u044B \u0432 \u043E\u0447\u0435\u0440\u0435\u0434\u044C",latency:"\u0417\u0430\u0434\u0435\u0440\u0436\u043A\u0430",match_content_by_external_api_search:"\u0421\u043E\u043F\u043E\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043D\u0442 \u0447\u0435\u0440\u0435\u0437 \u0432\u043D\u0435\u0448\u043D\u0438\u0439 API",match_content_by_local_search:"\u0421\u043E\u043F\u043E\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043D\u0442 \u0447\u0435\u0440\u0435\u0437 \u043B\u043E\u043A\u0430\u043B\u044C\u043D\u044B\u0439 \u043F\u043E\u0438\u0441\u043A",payload:"\u0414\u0430\u043D\u043D\u044B\u0435",pending:"\u0412 \u043E\u0436\u0438\u0434\u0430\u043D\u0438\u0438",priority:"\u041F\u0440\u0438\u043E\u0440\u0438\u0442\u0435\u0442",process_orphaned_torrents_only:"\u041E\u0431\u0440\u0430\u0431\u0430\u0442\u044B\u0432\u0430\u0442\u044C \u0442\u043E\u043B\u044C\u043A\u043E \xAB\u043E\u0441\u0438\u0440\u043E\u0442\u0435\u0432\u0448\u0438\u0435\xBB \u0442\u043E\u0440\u0440\u0435\u043D\u0442\u044B",processed:"\u041E\u0431\u0440\u0430\u0431\u043E\u0442\u0430\u043D\u043E",purge_jobs:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0437\u0430\u0434\u0430\u043D\u0438\u044F",purge_queue_jobs:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0437\u0430\u0434\u0430\u043D\u0438\u044F \u043E\u0447\u0435\u0440\u0435\u0434\u0438",queue:"\u041E\u0447\u0435\u0440\u0435\u0434\u044C",queue_purged:"\u041E\u0447\u0435\u0440\u0435\u0434\u044C \u043E\u0447\u0438\u0449\u0435\u043D\u0430",queues:"\u041E\u0447\u0435\u0440\u0435\u0434\u0438",ran_at:"\u0412\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u043E \u0432",retry:"\u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u044C",total_counts_by_status:"\u041E\u0431\u0449\u0435\u0435 \u043A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u043F\u043E \u0441\u0442\u0430\u0442\u0443\u0441\u0430\u043C"}},facets:{content_type:"\u0422\u0438\u043F \u043A\u043E\u043D\u0442\u0435\u043D\u0442\u0430",file_type:"\u0422\u0438\u043F \u0444\u0430\u0439\u043B\u0430",genre:"\u0416\u0430\u043D\u0440",language:"\u042F\u0437\u044B\u043A",queue:"\u041E\u0447\u0435\u0440\u0435\u0434\u044C",status:"\u0421\u0442\u0430\u0442\u0443\u0441",torrent_source:"\u0418\u0441\u0442\u043E\u0447\u043D\u0438\u043A \u0442\u043E\u0440\u0440\u0435\u043D\u0442\u0430",torrent_tag:"\u0422\u0435\u0433 \u0442\u043E\u0440\u0440\u0435\u043D\u0442\u0430",video_resolution:"\u0420\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u0438\u0435 \u0432\u0438\u0434\u0435\u043E",video_source:"\u0418\u0441\u0442\u043E\u0447\u043D\u0438\u043A \u0432\u0438\u0434\u0435\u043E"},file_types:{archive:"\u0410\u0440\u0445\u0438\u0432",audio:"\u0410\u0443\u0434\u0438\u043E",data:"\u0414\u0430\u043D\u043D\u044B\u0435",document:"\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442",image:"\u0418\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435",software:"\u041F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u044B",subtitles:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",unknown:"\u041D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E",video:"\u0412\u0438\u0434\u0435\u043E"},general:{all:"\u0412\u0441\u0435",dismiss:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",error:"\u041E\u0448\u0438\u0431\u043A\u0430",none:"\u041D\u0435\u0442",refresh:"\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C",status:"\u0421\u0442\u0430\u0442\u0443\u0441"},health:{bitmagnet_is_status:"bitmagnet {{status}}",check_failed_with_error:"\u041F\u0440\u043E\u0432\u0435\u0440\u043A\u0430 \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u043B\u0430\u0441\u044C \u0441 \u043E\u0448\u0438\u0431\u043A\u043E\u0439",component:"\u041A\u043E\u043C\u043F\u043E\u043D\u0435\u043D\u0442",components:{dht:"DHT",postgres:"Postgres",tmdb:"TMDB"},dismiss:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",error:"\u041E\u0448\u0438\u0431\u043A\u0430",status:"\u0421\u0442\u0430\u0442\u0443\u0441",statuses:{degraded:"\u0421\u043D\u0438\u0436\u0435\u043D\u0430 \u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",down:"\u041D\u0435 \u0440\u0430\u0431\u043E\u0442\u0430\u0435\u0442",error:"\u041E\u0448\u0438\u0431\u043A\u0430",inactive:"\u041D\u0435\u0430\u043A\u0442\u0438\u0432\u0435\u043D",started:"\u0417\u0430\u043F\u0443\u0449\u0435\u043D\u043E",unknown:"\u041D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E",up:"\u0420\u0430\u0431\u043E\u0442\u0430\u0435\u0442"},summary:"\u0421\u0432\u043E\u0434\u043A\u0430 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u044F",worker:"\u0420\u0430\u0431\u043E\u0447\u0438\u0439",workers:{dht_crawler:"DHT \u043E\u0431\u0445\u043E\u0434\u0447\u0438\u043A",http_server:"HTTP \u0441\u0435\u0440\u0432\u0435\u0440",queue_server:"\u0421\u0435\u0440\u0432\u0435\u0440 \u043E\u0447\u0435\u0440\u0435\u0434\u0435\u0439"}},languages:{af:"\u0410\u0444\u0440\u0438\u043A\u0430\u0430\u043D\u0441",ar:"\u0410\u0440\u0430\u0431\u0441\u043A\u0438\u0439",az:"\u0410\u0437\u0435\u0440\u0431\u0430\u0439\u0434\u0436\u0430\u043D\u0441\u043A\u0438\u0439",be:"\u0411\u0435\u043B\u043E\u0440\u0443\u0441\u0441\u043A\u0438\u0439",bg:"\u0411\u043E\u043B\u0433\u0430\u0440\u0441\u043A\u0438\u0439",bs:"\u0411\u043E\u0441\u043D\u0438\u0439\u0441\u043A\u0438\u0439",ca:"\u041A\u0430\u0442\u0430\u043B\u0430\u043D\u0441\u043A\u0438\u0439",ce:"\u0427\u0435\u0447\u0435\u043D\u0441\u043A\u0438\u0439",co:"\u041A\u043E\u0440\u0441\u0438\u043A\u0430\u043D\u0441\u043A\u0438\u0439",cs:"\u0427\u0435\u0448\u0441\u043A\u0438\u0439",cy:"\u0412\u0430\u043B\u043B\u0438\u0439\u0441\u043A\u0438\u0439",da:"\u0414\u0430\u0442\u0441\u043A\u0438\u0439",de:"\u041D\u0435\u043C\u0435\u0446\u043A\u0438\u0439",el:"\u0413\u0440\u0435\u0447\u0435\u0441\u043A\u0438\u0439",en:"\u0410\u043D\u0433\u043B\u0438\u0439\u0441\u043A\u0438\u0439",es:"\u0418\u0441\u043F\u0430\u043D\u0441\u043A\u0438\u0439",et:"\u042D\u0441\u0442\u043E\u043D\u0441\u043A\u0438\u0439",eu:"\u0411\u0430\u0441\u043A\u0441\u043A\u0438\u0439",fa:"\u041F\u0435\u0440\u0441\u0438\u0434\u0441\u043A\u0438\u0439",fi:"\u0424\u0438\u043D\u0441\u043A\u0438\u0439",fr:"\u0424\u0440\u0430\u043D\u0446\u0443\u0437\u0441\u043A\u0438\u0439",he:"\u0418\u0432\u0440\u0438\u0442",hi:"\u0425\u0438\u043D\u0434\u0438",hr:"\u0425\u043E\u0440\u0432\u0430\u0442\u0441\u043A\u0438\u0439",hu:"\u0412\u0435\u043D\u0433\u0435\u0440\u0441\u043A\u0438\u0439",hy:"\u0410\u0440\u043C\u044F\u043D\u0441\u043A\u0438\u0439",id:"\u0418\u043D\u0434\u043E\u043D\u0435\u0437\u0438\u0439\u0441\u043A\u0438\u0439",is:"\u0418\u0441\u043B\u0430\u043D\u0434\u0441\u043A\u0438\u0439",it:"\u0418\u0442\u0430\u043B\u044C\u044F\u043D\u0441\u043A\u0438\u0439",ja:"\u042F\u043F\u043E\u043D\u0441\u043A\u0438\u0439",ka:"\u0413\u0440\u0443\u0437\u0438\u043D\u0441\u043A\u0438\u0439",ko:"\u041A\u043E\u0440\u0435\u0439\u0441\u043A\u0438\u0439",ku:"\u041A\u0443\u0440\u0434\u0441\u043A\u0438\u0439",lt:"\u041B\u0438\u0442\u043E\u0432\u0441\u043A\u0438\u0439",lv:"\u041B\u0430\u0442\u044B\u0448\u0441\u043A\u0438\u0439",mi:"\u041C\u0430\u043E\u0440\u0438",mk:"\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438\u0439",ml:"\u041C\u0430\u043B\u0430\u044F\u043B\u0430\u043C",mn:"\u041C\u043E\u043D\u0433\u043E\u043B\u044C\u0441\u043A\u0438\u0439",ms:"\u041C\u0430\u043B\u0430\u0439\u0441\u043A\u0438\u0439",mt:"\u041C\u0430\u043B\u044C\u0442\u0438\u0439\u0441\u043A\u0438\u0439",nl:"\u041D\u0438\u0434\u0435\u0440\u043B\u0430\u043D\u0434\u0441\u043A\u0438\u0439",no:"\u041D\u043E\u0440\u0432\u0435\u0436\u0441\u043A\u0438\u0439",pl:"\u041F\u043E\u043B\u044C\u0441\u043A\u0438\u0439",pt:"\u041F\u043E\u0440\u0442\u0443\u0433\u0430\u043B\u044C\u0441\u043A\u0438\u0439",ro:"\u0420\u0443\u043C\u044B\u043D\u0441\u043A\u0438\u0439",ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",sa:"\u0421\u0430\u043D\u0441\u043A\u0440\u0438\u0442",sk:"\u0421\u043B\u043E\u0432\u0430\u0446\u043A\u0438\u0439",sl:"\u0421\u043B\u043E\u0432\u0435\u043D\u0441\u043A\u0438\u0439",sm:"\u0421\u0430\u043C\u043E\u0430\u043D\u0441\u043A\u0438\u0439",so:"\u0421\u043E\u043C\u0430\u043B\u0438\u0439\u0441\u043A\u0438\u0439",sr:"\u0421\u0435\u0440\u0431\u0441\u043A\u0438\u0439",sv:"\u0428\u0432\u0435\u0434\u0441\u043A\u0438\u0439",ta:"\u0422\u0430\u043C\u0438\u043B\u044C\u0441\u043A\u0438\u0439",th:"\u0422\u0430\u0439\u0441\u043A\u0438\u0439",tr:"\u0422\u0443\u0440\u0435\u0446\u043A\u0438\u0439",uk:"\u0423\u043A\u0440\u0430\u0438\u043D\u0441\u043A\u0438\u0439",vi:"\u0412\u044C\u0435\u0442\u043D\u0430\u043C\u0441\u043A\u0438\u0439",yi:"\u0418\u0434\u0438\u0448",zh:"\u041A\u0438\u0442\u0430\u0439\u0441\u043A\u0438\u0439",zu:"\u0417\u0443\u043B\u0443\u0441\u0441\u043A\u0438\u0439"},layout:{bitmagnet_on_service:"bitmagnet \u043D\u0430 {{service}}",change_theme:"\u0418\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u0442\u0435\u043C\u0443",external_links:"\u0412\u043D\u0435\u0448\u043D\u0438\u0435 \u0441\u0441\u044B\u043B\u043A\u0438",sponsor:"\u0421\u043F\u043E\u043D\u0441\u043E\u0440",support_bitmagnet:"\u041F\u043E\u0434\u0434\u0435\u0440\u0436\u0430\u0442\u044C bitmagnet",translate:"\u041F\u0435\u0440\u0435\u0432\u0435\u0441\u0442\u0438"},paginator:{first_page:"\u041F\u0435\u0440\u0432\u0430\u044F \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0430",items_per_page:"\u042D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432 \u043D\u0430 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0435",last_page:"\u041F\u043E\u0441\u043B\u0435\u0434\u043D\u044F\u044F \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0430",next_page:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0430\u044F \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0430",previous_page:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0430\u044F \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0430",x_to_y:"{{x}} \u0434\u043E {{y}}",x_to_y_of_z:"{{x}} \u0434\u043E {{y}} \u0438\u0437 {{z}}"},routes:{admin:"\u0410\u0434\u043C\u0438\u043D\u0438\u0441\u0442\u0440\u0430\u0442\u043E\u0440",dashboard:"\u041F\u0430\u043D\u0435\u043B\u044C \u0443\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u044F",home:"\u0413\u043B\u0430\u0432\u043D\u0430\u044F",jobs:"\u0417\u0430\u0434\u0430\u043D\u0438\u044F",queues:"\u041E\u0447\u0435\u0440\u0435\u0434\u0438",torrents:"\u0422\u043E\u0440\u0440\u0435\u043D\u0442\u044B",visualize:"\u0412\u0438\u0437\u0443\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u044F"},torrents:{clear_search:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u043F\u043E\u0438\u0441\u043A",copy:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C",copy_to_clipboard:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0432 \u0431\u0443\u0444\u0435\u0440 \u043E\u0431\u043C\u0435\u043D\u0430",delete:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C",delete_action_cannot_be_undone:"\u042D\u0442\u043E \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043D\u0435\u043B\u044C\u0437\u044F \u043E\u0442\u043C\u0435\u043D\u0438\u0442\u044C",delete_are_you_sure:"\u0412\u044B \u0443\u0432\u0435\u0440\u0435\u043D\u044B, \u0447\u0442\u043E \u0445\u043E\u0442\u0438\u0442\u0435 \u0443\u0434\u0430\u043B\u0438\u0442\u044C \u044D\u0442\u043E\u0442 \u0442\u043E\u0440\u0440\u0435\u043D\u0442?",deselect_all:"\u0421\u043D\u044F\u0442\u044C \u0432\u044B\u0434\u0435\u043B\u0435\u043D\u0438\u0435",edit_tags:"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0442\u0435\u0433\u0438",episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",external_links:"\u0412\u043D\u0435\u0448\u043D\u0438\u0435 \u0441\u0441\u044B\u043B\u043A\u0438",file_index:"\u0418\u043D\u0434\u0435\u043A\u0441 \u0444\u0430\u0439\u043B\u0430",file_path:"\u041F\u0443\u0442\u044C \u043A \u0444\u0430\u0439\u043B\u0443",file_size:"\u0420\u0430\u0437\u043C\u0435\u0440 \u0444\u0430\u0439\u043B\u0430",file_type:"\u0422\u0438\u043F \u0444\u0430\u0439\u043B\u0430",files:"\u0424\u0430\u0439\u043B\u044B",files_count_n:"{{count}} \u0444\u0430\u0439\u043B\u043E\u0432",files_no_info:"\u0418\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F \u043E \u0444\u0430\u0439\u043B\u0430\u0445 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",files_single:"\u041E\u0434\u0438\u043D \u0444\u0430\u0439\u043B",genres:"\u0416\u0430\u043D\u0440\u044B",info_hash:"\u0425\u044D\u0448 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",info_hashes:"\u0425\u044D\u0448\u0438 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",languages:"\u042F\u0437\u044B\u043A\u0438",leechers:"\u041B\u0438\u0447\u0435\u0440\u044B",magnet:"\u041C\u0430\u0433\u043D\u0435\u0442",magnet_links:"\u041C\u0430\u0433\u043D\u0435\u0442 \u0441\u0441\u044B\u043B\u043A\u0438",new_tag:"\u041D\u043E\u0432\u044B\u0439 \u0442\u0435\u0433",order_by:"\u0421\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043F\u043E",order_direction_toggle:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043D\u0430\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435",ordering:{files_count:"\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0444\u0430\u0439\u043B\u043E\u0432",info_hash:"\u0425\u044D\u0448 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",leechers:"\u041B\u0438\u0447\u0435\u0440\u044B",name:"\u0418\u043C\u044F",published_at:"\u0414\u0430\u0442\u0430 \u043F\u0443\u0431\u043B\u0438\u043A\u0430\u0446\u0438\u0438",relevance:"\u0410\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u043E\u0441\u0442\u044C",seeders:"\u0421\u0438\u0434\u0435\u0440\u044B",size:"\u0420\u0430\u0437\u043C\u0435\u0440",updated_at:"\u0414\u0430\u0442\u0430 \u043E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u044F"},original_release_date:"\u041E\u0440\u0438\u0433\u0438\u043D\u0430\u043B\u044C\u043D\u0430\u044F \u0434\u0430\u0442\u0430 \u0432\u044B\u043F\u0443\u0441\u043A\u0430",permalink:"\u041F\u043E\u0441\u0442\u043E\u044F\u043D\u043D\u0430\u044F \u0441\u0441\u044B\u043B\u043A\u0430",poster:"\u041F\u043E\u0441\u0442\u0435\u0440",published:"\u041E\u043F\u0443\u0431\u043B\u0438\u043A\u043E\u0432\u0430\u043D\u043E",rating:"\u0420\u0435\u0439\u0442\u0438\u043D\u0433",refresh:"\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u044B",s_l:"S / L",search:"\u041F\u043E\u0438\u0441\u043A",seeders:"\u0421\u0438\u0434\u0435\u0440\u044B",select_all:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0432\u0441\u0435",showing_x_of_y_files:"\u041F\u043E\u043A\u0430\u0437\u0430\u043D\u043E {{x}} \u0438\u0437 {{y}} \u0444\u0430\u0439\u043B\u043E\u0432",size:"\u0420\u0430\u0437\u043C\u0435\u0440",source:"\u0418\u0441\u0442\u043E\u0447\u043D\u0438\u043A \u0442\u043E\u0440\u0440\u0435\u043D\u0442\u0430",summary:"\u0421\u0432\u043E\u0434\u043A\u0430",title:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435",toggle_drawer:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u0430\u043D\u0435\u043B\u044C",votes_count_n:"{{count}} \u0433\u043E\u043B\u043E\u0441\u043E\u0432"},version:{bitmagnet_version:"\u0412\u0435\u0440\u0441\u0438\u044F bitmagnet {{version}}",unknown:"\u043D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E"}};var st={content_types:{plural:{all:"T\xFCm\xFC",audiobook:"Sesli Kitaplar",comic:"\xC7izgi Romanlar",ebook:"E-Kitaplar",movie:"Filmler",music:"M\xFCzik",null:"Bilinmiyor",software:"Yaz\u0131l\u0131m",tv_show:"TV Programlar\u0131",xxx:"XXX"},singular:{audiobook:"Sesli Kitap",comic:"\xC7izgi Roman",ebook:"E-Kitap",movie:"Film",music:"M\xFCzik",null:"Bilinmiyor",software:"Yaz\u0131l\u0131m",tv_show:"TV Program\u0131",xxx:"XXX"}},dashboard:{event:{created:"Olu\u015Fturuldu",failed:"Ba\u015Far\u0131s\u0131z",processed:"\u0130\u015Flendi",updated:"G\xFCncellendi"},interval:{all:"T\xFCm\xFC",days:"G\xFCnler",days_1:"1 g\xFCn",hours:"Saatler",hours_1:"1 saat",hours_12:"12 saat",hours_6:"6 saat",minutes:"Dakikalar",minutes_1:"1 dakika",minutes_15:"15 dakika",minutes_30:"30 dakika",minutes_5:"5 dakika",off:"Kapal\u0131",seconds_10:"10 saniye",seconds_30:"30 saniye",weeks_1:"1 hafta"},metrics:{event:"Olay",resolution:"\xC7\xF6z\xFCn\xFCrl\xFCk",throughput:"Verim",timeframe:"Zaman Dilimi"},queues:{created:"Olu\u015Fturuldu",created_at:"Olu\u015Fturulma tarihi",enqueue_jobs:"\u0130\u015Fleri Kuyru\u011Fa Al",enqueue_torrent_processing_batch:"Torrent \u0130\u015Fleme Paketini Kuyru\u011Fa Al",failed:"Ba\u015Far\u0131s\u0131z",force_rematch:"E\u015Fle\u015Fmi\u015F i\xE7eri\u011Fi yeniden e\u015Fle\u015Ftir",jobs_enqueued:"Kuyru\u011Fa Al\u0131nan \u0130\u015Fler",latency:"Gecikme",match_content_by_external_api_search:"D\u0131\u015F API aramas\u0131yla i\xE7eri\u011Fi e\u015Fle\u015Ftir",match_content_by_local_search:"Yerel aramayla i\xE7eri\u011Fi e\u015Fle\u015Ftir",payload:"Veri Y\xFCk\xFC",pending:"Beklemede",priority:"\xD6ncelik",process_orphaned_torrents_only:"Sadece sahipsiz torrentleri i\u015Fle",processed:"\u0130\u015Flendi",purge_jobs:"\u0130\u015Fleri Temizle",purge_queue_jobs:"Kuyruk \u0130\u015Flerini Temizle",queue:"Kuyruk",queue_purged:"Kuyruk Temizlendi",queues:"Kuyruklar",ran_at:"\xC7al\u0131\u015Ft\u0131r\u0131ld\u0131",retry:"Tekrar Dene",total_counts_by_status:"Duruma G\xF6re Toplam Say\u0131lar"}},facets:{content_type:"\u0130\xE7erik T\xFCr\xFC",file_type:"Dosya T\xFCr\xFC",genre:"T\xFCr",language:"Dil",queue:"Kuyruk",status:"Durum",torrent_source:"Torrent Kayna\u011F\u0131",torrent_tag:"Torrent Etiketi",video_resolution:"Video \xC7\xF6z\xFCn\xFCrl\xFC\u011F\xFC",video_source:"Video Kayna\u011F\u0131"},file_types:{archive:"Ar\u015Fiv",audio:"Ses",data:"Veri",document:"Belge",image:"G\xF6r\xFCnt\xFC",software:"Yaz\u0131l\u0131m",subtitles:"Altyaz\u0131lar",unknown:"Bilinmiyor",video:"Video"},general:{all:"T\xFCm\xFC",dismiss:"Kapat",error:"Hata",none:"Hi\xE7biri",refresh:"Yenile",status:"Durum"},health:{bitmagnet_is_status:"bitmagnet durumu {{status}}",check_failed_with_error:"Hata ile kontrol ba\u015Far\u0131s\u0131z oldu",component:"Bile\u015Fen",components:{dht:"DHT",postgres:"Postgres",tmdb:"TMDB"},dismiss:"Kapat",error:"Hata",status:"Durum",statuses:{degraded:"Azalm\u0131\u015F",down:"Kapal\u0131",error:"Hata",inactive:"Etkin de\u011Fil",started:"Ba\u015Flad\u0131",unknown:"Bilinmiyor",up:"\xC7al\u0131\u015F\u0131yor"},summary:"Sa\u011Fl\u0131k \xD6zeti",worker:"\u0130\u015F\xE7i",workers:{dht_crawler:"DHT taray\u0131c\u0131",http_server:"HTTP sunucusu",queue_server:"Kuyruk sunucusu"}},languages:{af:"Afrikanca",ar:"Arap\xE7a",az:"Azerice",be:"Beyaz Rus\xE7a",bg:"Bulgarca",bs:"Bo\u015Fnak\xE7a",ca:"Katalanca",ce:"\xC7e\xE7ence",co:"Korsikaca",cs:"\xC7ek\xE7e",cy:"Galce",da:"Danca",de:"Almanca",el:"Yunanca",en:"\u0130ngilizce",es:"\u0130spanyolca",et:"Estonca",eu:"Bask\xE7a",fa:"Fars\xE7a",fi:"Fince",fr:"Frans\u0131zca",he:"\u0130branice",hi:"Hint\xE7e",hr:"H\u0131rvat\xE7a",hu:"Macarca",hy:"Ermenice",id:"Endonezce",is:"\u0130zlandaca",it:"\u0130talyanca",ja:"Japonca",ka:"G\xFCrc\xFCce",ko:"Korece",ku:"K\xFCrt\xE7e",lt:"Litvanca",lv:"Letonca",mi:"Maorice",mk:"Makedonca",ml:"Malayalamca",mn:"Mo\u011Folca",ms:"Malayca",mt:"Maltaca",nl:"Flemenk\xE7e",no:"Norve\xE7\xE7e",pl:"Leh\xE7e",pt:"Portekizce",ro:"Romence",ru:"Rus\xE7a",sa:"Sanskrit\xE7e",sk:"Slovak\xE7a",sl:"Slovence",sm:"Samoaca",so:"Somalice",sr:"S\u0131rp\xE7a",sv:"\u0130sve\xE7\xE7e",ta:"Tamilce",th:"Tayca",tr:"T\xFCrk\xE7e",uk:"Ukraynaca",vi:"Vietnamca",yi:"Yidi\u015F",zh:"\xC7ince",zu:"Zuluca"},layout:{bitmagnet_on_service:"{{service}} \xFCzerinde bitmagnet",change_theme:"Temay\u0131 De\u011Fi\u015Ftir",external_links:"D\u0131\u015F Ba\u011Flant\u0131lar",sponsor:"Sponsor",support_bitmagnet:"bitmagnet'i Destekle",translate:"\xC7evir"},paginator:{first_page:"\u0130lk Sayfa",items_per_page:"Sayfa ba\u015F\u0131na \xF6\u011Fe",last_page:"Son Sayfa",next_page:"Sonraki Sayfa",previous_page:"\xD6nceki Sayfa",x_to_y:"{{x}} - {{y}} aras\u0131",x_to_y_of_z:"{{x}} ile {{y}} aras\u0131, toplam {{z}}"},routes:{admin:"Y\xF6netici",dashboard:"Kontrol Paneli",home:"Ana Sayfa",jobs:"G\xF6revler",queues:"Kuyruklar",torrents:"Torrentler",visualize:"G\xF6rselle\u015Ftir"},torrents:{clear_search:"Aramay\u0131 Temizle",copy:"Kopyala",copy_to_clipboard:"Panoya Kopyala",delete:"Sil",delete_action_cannot_be_undone:"Bu i\u015Flem geri al\u0131namaz",delete_are_you_sure:"Bu torrent'i silmek istedi\u011Finizden emin misiniz?",deselect_all:"T\xFCm Se\xE7imleri Kald\u0131r",edit_tags:"Etiketleri D\xFCzenle",episodes:"B\xF6l\xFCmler",external_links:"D\u0131\u015F Ba\u011Flant\u0131lar",file_index:"Dosya Dizini",file_path:"Dosya Yolu",file_size:"Dosya Boyutu",file_type:"Dosya T\xFCr\xFC",files:"Dosyalar",files_count_n:"{{count}} dosya",files_no_info:"Dosya bilgisi mevcut de\u011Fil",files_single:"Tek dosya",genres:"T\xFCrler",info_hash:"Bilgi hash'i",info_hashes:"Bilgi hash'leri",languages:"Diller",leechers:"Leechers",magnet:"Magnet",magnet_links:"Magnet Ba\u011Flant\u0131lar",new_tag:"Yeni etiket",order_by:"S\u0131ralama \xF6l\xE7\xFCt\xFC",order_direction_toggle:"Y\xF6n\xFC de\u011Fi\u015Ftir",ordering:{files_count:"Dosya say\u0131s\u0131",info_hash:"Bilgi hash'i",leechers:"Leechers",name:"Ad",published_at:"Yay\u0131nlanma tarihi",relevance:"Alaka d\xFCzeyi",seeders:"Seeders",size:"Boyut",updated_at:"G\xFCncellenme tarihi"},original_release_date:"Orijinal \xE7\u0131k\u0131\u015F tarihi",permalink:"Kal\u0131c\u0131 Ba\u011Flant\u0131",poster:"Poster",published:"Yay\u0131nland\u0131",rating:"Puan",refresh:"Sonu\xE7lar\u0131 Yenile",s_l:"S / L",search:"Ara",seeders:"Seeders",select_all:"T\xFCm\xFCn\xFC Se\xE7",showing_x_of_y_files:"{{y}} dosyan\u0131n {{x}} tanesi g\xF6steriliyor",size:"Boyut",source:"Torrent Kayna\u011F\u0131",summary:"\xD6zet",title:"Ba\u015Fl\u0131k",toggle_drawer:"\xC7ekmeceyi A\xE7/Kapat",votes_count_n:"{{count}} oy"},version:{bitmagnet_version:"bitmagnet versiyonu {{version}}",unknown:"bilinmiyor"}};var it={content_types:{plural:{all:"\u0423\u0441\u0456",audiobook:"\u0410\u0443\u0434\u0456\u043E\u043A\u043D\u0438\u0433\u0438",comic:"\u041A\u043E\u043C\u0456\u043A\u0441\u0438",ebook:"\u0415\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0456 \u043A\u043D\u0438\u0433\u0438",movie:"\u0424\u0456\u043B\u044C\u043C\u0438",music:"\u041C\u0443\u0437\u0438\u043A\u0430",null:"\u041D\u0435\u0432\u0456\u0434\u043E\u043C\u043E",software:"\u041F\u0440\u043E\u0433\u0440\u0430\u043C\u0438",tv_show:"\u0422\u0435\u043B\u0435\u0448\u043E\u0443",xxx:"\u041F\u043E\u0440\u043D\u043E"},singular:{audiobook:"\u0410\u0443\u0434\u0456\u043E\u043A\u043D\u0438\u0433\u0430",comic:"\u041A\u043E\u043C\u0456\u043A\u0441",ebook:"\u0415\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430 \u043A\u043D\u0438\u0433\u0430",movie:"\u0424\u0456\u043B\u044C\u043C",music:"\u041C\u0443\u0437\u0438\u043A\u0430",null:"\u041D\u0435\u0432\u0456\u0434\u043E\u043C\u043E",software:"\u041F\u0440\u043E\u0433\u0440\u0430\u043C\u0430",tv_show:"\u0422\u0435\u043B\u0435\u0448\u043E\u0443",xxx:"\u041F\u043E\u0440\u043D\u043E"}},dashboard:{event:{created:"\u0421\u0442\u0432\u043E\u0440\u0435\u043D\u043E",failed:"\u041F\u043E\u043C\u0438\u043B\u043A\u0430",processed:"\u041E\u0431\u0440\u043E\u0431\u043B\u0435\u043D\u043E",updated:"\u041E\u043D\u043E\u0432\u043B\u0435\u043D\u043E"},interval:{all:"\u0423\u0441\u0456",days:"\u0414\u043D\u0456",days_1:"1 \u0434\u0435\u043D\u044C",hours:"\u0413\u043E\u0434\u0438\u043D\u0438",hours_1:"1 \u0433\u043E\u0434\u0438\u043D\u0430",hours_12:"12 \u0433\u043E\u0434\u0438\u043D",hours_6:"6 \u0433\u043E\u0434\u0438\u043D",minutes:"\u0425\u0432\u0438\u043B\u0438\u043D\u0438",minutes_1:"1 \u0445\u0432\u0438\u043B\u0438\u043D\u0430",minutes_15:"15 \u0445\u0432\u0438\u043B\u0438\u043D",minutes_30:"30 \u0445\u0432\u0438\u043B\u0438\u043D",minutes_5:"5 \u0445\u0432\u0438\u043B\u0438\u043D",off:"\u0412\u0438\u043C\u043A\u043D\u0435\u043D\u043E",seconds_10:"10 \u0441\u0435\u043A\u0443\u043D\u0434",seconds_30:"30 \u0441\u0435\u043A\u0443\u043D\u0434",weeks_1:"1 \u0442\u0438\u0436\u0434\u0435\u043D\u044C"},metrics:{event:"\u041F\u043E\u0434\u0456\u044F",resolution:"\u0420\u043E\u0437\u0434\u0456\u043B\u044C\u043D\u0430 \u0437\u0434\u0430\u0442\u043D\u0456\u0441\u0442\u044C",throughput:"\u041F\u0440\u043E\u043F\u0443\u0441\u043A\u043D\u0430 \u0437\u0434\u0430\u0442\u043D\u0456\u0441\u0442\u044C",timeframe:"\u041F\u0440\u043E\u043C\u0456\u0436\u043E\u043A \u0447\u0430\u0441\u0443"},queues:{created:"\u0421\u0442\u0432\u043E\u0440\u0435\u043D\u043E",created_at:"\u0421\u0442\u0432\u043E\u0440\u0435\u043D\u043E \u043E",enqueue_jobs:"\u0414\u043E\u0434\u0430\u0442\u0438 \u0437\u0430\u0432\u0434\u0430\u043D\u043D\u044F \u0434\u043E \u0447\u0435\u0440\u0433\u0438",enqueue_torrent_processing_batch:"\u0414\u043E\u0434\u0430\u0442\u0438 \u043F\u0430\u043A\u0435\u0442 \u0434\u043B\u044F \u043E\u0431\u0440\u043E\u0431\u043A\u0438 \u0442\u043E\u0440\u0440\u0435\u043D\u0442\u0456\u0432",failed:"\u041F\u043E\u043C\u0438\u043B\u043A\u0430",force_rematch:"\u041F\u0440\u0438\u043C\u0443\u0441\u043E\u0432\u043E \u043F\u043E\u0432\u0442\u043E\u0440\u043D\u043E \u0437\u0456\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u0432\u0436\u0435 \u0437\u0456\u0441\u0442\u0430\u0432\u043B\u0435\u043D\u0438\u0439 \u043A\u043E\u043D\u0442\u0435\u043D\u0442",jobs_enqueued:"\u0417\u0430\u0432\u0434\u0430\u043D\u043D\u044F \u0434\u043E\u0434\u0430\u043D\u043E \u0432 \u0447\u0435\u0440\u0433\u0443",latency:"\u0417\u0430\u0442\u0440\u0438\u043C\u043A\u0430",match_content_by_external_api_search:"\u0417\u0456\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u043A\u043E\u043D\u0442\u0435\u043D\u0442 \u0447\u0435\u0440\u0435\u0437 \u0437\u043E\u0432\u043D\u0456\u0448\u043D\u0456\u0439 API",match_content_by_local_search:"\u0417\u0456\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u043A\u043E\u043D\u0442\u0435\u043D\u0442 \u0447\u0435\u0440\u0435\u0437 \u043B\u043E\u043A\u0430\u043B\u044C\u043D\u0438\u0439 \u043F\u043E\u0448\u0443\u043A",payload:"\u0414\u0430\u043D\u0456",pending:"\u0412 \u043E\u0447\u0456\u043A\u0443\u0432\u0430\u043D\u043D\u0456",priority:"\u041F\u0440\u0456\u043E\u0440\u0438\u0442\u0435\u0442",process_orphaned_torrents_only:"\u041E\u0431\u0440\u043E\u0431\u043B\u044F\u0442\u0438 \u043B\u0438\u0448\u0435 \xAB\u0441\u0438\u0440\u043E\u0442\u043B\u0438\u0432\u0456\xBB \u0442\u043E\u0440\u0440\u0435\u043D\u0442\u0438",processed:"\u041E\u0431\u0440\u043E\u0431\u043B\u0435\u043D\u043E",purge_jobs:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u0438 \u0437\u0430\u0432\u0434\u0430\u043D\u043D\u044F",purge_queue_jobs:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u0438 \u0437\u0430\u0432\u0434\u0430\u043D\u043D\u044F \u0447\u0435\u0440\u0433\u0438",queue:"\u0427\u0435\u0440\u0433\u0430",queue_purged:"\u0427\u0435\u0440\u0433\u0430 \u043E\u0447\u0438\u0449\u0435\u043D\u0430",queues:"\u0427\u0435\u0440\u0433\u0438",ran_at:"\u0417\u0430\u043F\u0443\u0449\u0435\u043D\u043E \u043E",retry:"\u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0438",total_counts_by_status:"\u0417\u0430\u0433\u0430\u043B\u044C\u043D\u0430 \u043A\u0456\u043B\u044C\u043A\u0456\u0441\u0442\u044C \u0437\u0430 \u0441\u0442\u0430\u0442\u0443\u0441\u0430\u043C\u0438"}},facets:{content_type:"\u0422\u0438\u043F \u043A\u043E\u043D\u0442\u0435\u043D\u0442\u0443",file_type:"\u0422\u0438\u043F \u0444\u0430\u0439\u043B\u0443",genre:"\u0416\u0430\u043D\u0440",language:"\u041C\u043E\u0432\u0430",queue:"\u0427\u0435\u0440\u0433\u0430",status:"\u0421\u0442\u0430\u0442\u0443\u0441",torrent_source:"\u0414\u0436\u0435\u0440\u0435\u043B\u043E \u0442\u043E\u0440\u0440\u0435\u043D\u0442\u0430",torrent_tag:"\u0422\u0435\u0433 \u0442\u043E\u0440\u0440\u0435\u043D\u0442\u0430",video_resolution:"\u0420\u043E\u0437\u0434\u0456\u043B\u044C\u043D\u0430 \u0437\u0434\u0430\u0442\u043D\u0456\u0441\u0442\u044C \u0432\u0456\u0434\u0435\u043E",video_source:"\u0414\u0436\u0435\u0440\u0435\u043B\u043E \u0432\u0456\u0434\u0435\u043E"},file_types:{archive:"\u0410\u0440\u0445\u0456\u0432",audio:"\u0410\u0443\u0434\u0456\u043E",data:"\u0414\u0430\u043D\u0456",document:"\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442",image:"\u0417\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u043D\u044F",software:"\u041F\u0440\u043E\u0433\u0440\u0430\u043C\u0438",subtitles:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u0438",unknown:"\u041D\u0435\u0432\u0456\u0434\u043E\u043C\u043E",video:"\u0412\u0456\u0434\u0435\u043E"},general:{all:"\u0423\u0441\u0456",dismiss:"\u0417\u0430\u043A\u0440\u0438\u0442\u0438",error:"\u041F\u043E\u043C\u0438\u043B\u043A\u0430",none:"\u041D\u0435\u043C\u0430\u0454",refresh:"\u041E\u043D\u043E\u0432\u0438\u0442\u0438",status:"\u0421\u0442\u0430\u0442\u0443\u0441"},health:{bitmagnet_is_status:"bitmagnet {{status}}",check_failed_with_error:"\u041F\u0435\u0440\u0435\u0432\u0456\u0440\u043A\u0430 \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u043B\u0430\u0441\u044F \u043F\u043E\u043C\u0438\u043B\u043A\u043E\u044E",component:"\u041A\u043E\u043C\u043F\u043E\u043D\u0435\u043D\u0442",components:{dht:"DHT",postgres:"Postgres",tmdb:"TMDB"},dismiss:"\u0417\u0430\u043A\u0440\u0438\u0442\u0438",error:"\u041F\u043E\u043C\u0438\u043B\u043A\u0430",status:"\u0421\u0442\u0430\u0442\u0443\u0441",statuses:{degraded:"\u0417\u043D\u0438\u0436\u0435\u043D\u0430 \u043F\u0440\u043E\u0434\u0443\u043A\u0442\u0438\u0432\u043D\u0456\u0441\u0442\u044C",down:"\u041D\u0435 \u043F\u0440\u0430\u0446\u044E\u0454",error:"\u041F\u043E\u043C\u0438\u043B\u043A\u0430",inactive:"\u041D\u0435\u0430\u043A\u0442\u0438\u0432\u043D\u0438\u0439",started:"\u0417\u0430\u043F\u0443\u0449\u0435\u043D\u043E",unknown:"\u041E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F",up:"\u041F\u0440\u0430\u0446\u044E\u0454"},summary:"\u0417\u0432\u0435\u0434\u0435\u043D\u043D\u044F \u0441\u0442\u0430\u043D\u0443",worker:"\u041F\u0440\u0430\u0446\u0456\u0432\u043D\u0438\u043A",workers:{dht_crawler:"DHT \u0441\u043A\u0430\u043D\u0435\u0440",http_server:"HTTP \u0441\u0435\u0440\u0432\u0435\u0440",queue_server:"\u0421\u0435\u0440\u0432\u0435\u0440 \u0447\u0435\u0440\u0433\u0438"}},languages:{af:"\u0410\u0444\u0440\u0438\u043A\u0430\u0430\u043D\u0441",ar:"\u0410\u0440\u0430\u0431\u0441\u044C\u043A\u0430",az:"\u0410\u0437\u0435\u0440\u0431\u0430\u0439\u0434\u0436\u0430\u043D\u0441\u044C\u043A\u0430",be:"\u0411\u0456\u043B\u043E\u0440\u0443\u0441\u044C\u043A\u0430",bg:"\u0411\u043E\u043B\u0433\u0430\u0440\u0441\u044C\u043A\u0430",bs:"\u0411\u043E\u0441\u043D\u0456\u0439\u0441\u044C\u043A\u0430",ca:"\u041A\u0430\u0442\u0430\u043B\u043E\u043D\u0441\u044C\u043A\u0430",ce:"\u0427\u0435\u0447\u0435\u043D\u0441\u044C\u043A\u0430",co:"\u041A\u043E\u0440\u0441\u0438\u043A\u0430\u043D\u0441\u044C\u043A\u0430",cs:"\u0427\u0435\u0441\u044C\u043A\u0430",cy:"\u0412\u0430\u043B\u043B\u0456\u0439\u0441\u044C\u043A\u0430",da:"\u0414\u0430\u043D\u0441\u044C\u043A\u0430",de:"\u041D\u0456\u043C\u0435\u0446\u044C\u043A\u0430",el:"\u0413\u0440\u0435\u0446\u044C\u043A\u0430",en:"\u0410\u043D\u0433\u043B\u0456\u0439\u0441\u044C\u043A\u0430",es:"\u0406\u0441\u043F\u0430\u043D\u0441\u044C\u043A\u0430",et:"\u0415\u0441\u0442\u043E\u043D\u0441\u044C\u043A\u0430",eu:"\u0411\u0430\u0441\u043A\u0441\u044C\u043A\u0430",fa:"\u041F\u0435\u0440\u0441\u044C\u043A\u0430",fi:"\u0424\u0456\u043D\u0441\u044C\u043A\u0430",fr:"\u0424\u0440\u0430\u043D\u0446\u0443\u0437\u044C\u043A\u0430",he:"\u0406\u0432\u0440\u0438\u0442",hi:"\u0425\u0456\u043D\u0434\u0456",hr:"\u0425\u043E\u0440\u0432\u0430\u0442\u0441\u044C\u043A\u0430",hu:"\u0423\u0433\u043E\u0440\u0441\u044C\u043A\u0430",hy:"\u0412\u0456\u0440\u043C\u0435\u043D\u0441\u044C\u043A\u0430",id:"\u0406\u043D\u0434\u043E\u043D\u0435\u0437\u0456\u0439\u0441\u044C\u043A\u0430",is:"\u0406\u0441\u043B\u0430\u043D\u0434\u0441\u044C\u043A\u0430",it:"\u0406\u0442\u0430\u043B\u0456\u0439\u0441\u044C\u043A\u0430",ja:"\u042F\u043F\u043E\u043D\u0441\u044C\u043A\u0430",ka:"\u0413\u0440\u0443\u0437\u0438\u043D\u0441\u044C\u043A\u0430",ko:"\u041A\u043E\u0440\u0435\u0439\u0441\u044C\u043A\u0430",ku:"\u041A\u0443\u0440\u0434\u0441\u044C\u043A\u0430",lt:"\u041B\u0438\u0442\u043E\u0432\u0441\u044C\u043A\u0430",lv:"\u041B\u0430\u0442\u0438\u0441\u044C\u043A\u0430",mi:"\u041C\u0430\u043E\u0440\u0456",mk:"\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u044C\u043A\u0430",ml:"\u041C\u0430\u043B\u0430\u044F\u043B\u0430\u043C",mn:"\u041C\u043E\u043D\u0433\u043E\u043B\u044C\u0441\u044C\u043A\u0430",ms:"\u041C\u0430\u043B\u0430\u0439\u0441\u044C\u043A\u0430",mt:"\u041C\u0430\u043B\u044C\u0442\u0456\u0439\u0441\u044C\u043A\u0430",nl:"\u041D\u0456\u0434\u0435\u0440\u043B\u0430\u043D\u0434\u0441\u044C\u043A\u0430",no:"\u041D\u043E\u0440\u0432\u0435\u0437\u044C\u043A\u0430",pl:"\u041F\u043E\u043B\u044C\u0441\u044C\u043A\u0430",pt:"\u041F\u043E\u0440\u0442\u0443\u0433\u0430\u043B\u044C\u0441\u044C\u043A\u0430",ro:"\u0420\u0443\u043C\u0443\u043D\u0441\u044C\u043A\u0430",ru:"\u0420\u043E\u0441\u0456\u0439\u0441\u044C\u043A\u0430",sa:"\u0421\u0430\u043D\u0441\u043A\u0440\u0438\u0442",sk:"\u0421\u043B\u043E\u0432\u0430\u0446\u044C\u043A\u0430",sl:"\u0421\u043B\u043E\u0432\u0435\u043D\u0441\u044C\u043A\u0430",sm:"\u0421\u0430\u043C\u043E\u0430\u043D\u0441\u044C\u043A\u0430",so:"\u0421\u043E\u043C\u0430\u043B\u0456\u0439\u0441\u044C\u043A\u0430",sr:"\u0421\u0435\u0440\u0431\u0441\u044C\u043A\u0430",sv:"\u0428\u0432\u0435\u0434\u0441\u044C\u043A\u0430",ta:"\u0422\u0430\u043C\u0456\u043B\u044C\u0441\u044C\u043A\u0430",th:"\u0422\u0430\u0439\u0441\u044C\u043A\u0430",tr:"\u0422\u0443\u0440\u0435\u0446\u044C\u043A\u0430",uk:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",vi:"\u0412'\u0454\u0442\u043D\u0430\u043C\u0441\u044C\u043A\u0430",yi:"\u0407\u0434\u0438\u0448",zh:"\u041A\u0438\u0442\u0430\u0439\u0441\u044C\u043A\u0430",zu:"\u0417\u0443\u043B\u0443\u0441\u044C\u043A\u0430"},layout:{bitmagnet_on_service:"bitmagnet \u043D\u0430 {{service}}",change_theme:"\u0417\u043C\u0456\u043D\u0438\u0442\u0438 \u0442\u0435\u043C\u0443",external_links:"\u0417\u043E\u0432\u043D\u0456\u0448\u043D\u0456 \u043F\u043E\u0441\u0438\u043B\u0430\u043D\u043D\u044F",sponsor:"\u0421\u043F\u043E\u043D\u0441\u043E\u0440",support_bitmagnet:"\u041F\u0456\u0434\u0442\u0440\u0438\u043C\u0430\u0442\u0438 bitmagnet",translate:"\u041F\u0435\u0440\u0435\u043A\u043B\u0430\u0441\u0442\u0438"},paginator:{first_page:"\u041F\u0435\u0440\u0448\u0430 \u0441\u0442\u043E\u0440\u0456\u043D\u043A\u0430",items_per_page:"\u0415\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432 \u043D\u0430 \u0441\u0442\u043E\u0440\u0456\u043D\u0446\u0456",last_page:"\u041E\u0441\u0442\u0430\u043D\u043D\u044F \u0441\u0442\u043E\u0440\u0456\u043D\u043A\u0430",next_page:"\u041D\u0430\u0441\u0442\u0443\u043F\u043D\u0430 \u0441\u0442\u043E\u0440\u0456\u043D\u043A\u0430",previous_page:"\u041F\u043E\u043F\u0435\u0440\u0435\u0434\u043D\u044F \u0441\u0442\u043E\u0440\u0456\u043D\u043A\u0430",x_to_y:"{{x}} \u0434\u043E {{y}}",x_to_y_of_z:"{{x}} \u0434\u043E {{y}} \u0437 {{z}}"},routes:{admin:"\u0410\u0434\u043C\u0456\u043D\u0456\u0441\u0442\u0440\u0430\u0442\u043E\u0440",dashboard:"\u041F\u0430\u043D\u0435\u043B\u044C \u0443\u043F\u0440\u0430\u0432\u043B\u0456\u043D\u043D\u044F",home:"\u0413\u043E\u043B\u043E\u0432\u043D\u0430",jobs:"\u0417\u0430\u0432\u0434\u0430\u043D\u043D\u044F",queues:"\u0427\u0435\u0440\u0433\u0438",torrents:"\u0422\u043E\u0440\u0440\u0435\u043D\u0442\u0438",visualize:"\u0412\u0456\u0437\u0443\u0430\u043B\u0456\u0437\u0443\u0432\u0430\u0442\u0438"},torrents:{clear_search:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u0438 \u043F\u043E\u0448\u0443\u043A",copy:"\u041A\u043E\u043F\u0456\u044E\u0432\u0430\u0442\u0438",copy_to_clipboard:"\u041A\u043E\u043F\u0456\u044E\u0432\u0430\u0442\u0438 \u0432 \u0431\u0443\u0444\u0435\u0440 \u043E\u0431\u043C\u0456\u043D\u0443",delete:"\u0412\u0438\u0434\u0430\u043B\u0438\u0442\u0438",delete_action_cannot_be_undone:"\u0426\u044E \u0434\u0456\u044E \u043D\u0435 \u043C\u043E\u0436\u043D\u0430 \u0441\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438",delete_are_you_sure:"\u0412\u0438 \u0432\u043F\u0435\u0432\u043D\u0435\u043D\u0456, \u0449\u043E \u0445\u043E\u0447\u0435\u0442\u0435 \u0432\u0438\u0434\u0430\u043B\u0438\u0442\u0438 \u0446\u0435\u0439 \u0442\u043E\u0440\u0440\u0435\u043D\u0442?",deselect_all:"\u0417\u043D\u044F\u0442\u0438 \u0432\u0438\u0434\u0456\u043B\u0435\u043D\u043D\u044F",edit_tags:"\u0420\u0435\u0434\u0430\u0433\u0443\u0432\u0430\u0442\u0438 \u0442\u0435\u0433\u0438",episodes:"\u0415\u043F\u0456\u0437\u043E\u0434\u0438",external_links:"\u0417\u043E\u0432\u043D\u0456\u0448\u043D\u0456 \u043F\u043E\u0441\u0438\u043B\u0430\u043D\u043D\u044F",file_index:"\u0406\u043D\u0434\u0435\u043A\u0441 \u0444\u0430\u0439\u043B\u0443",file_path:"\u0428\u043B\u044F\u0445 \u0434\u043E \u0444\u0430\u0439\u043B\u0443",file_size:"\u0420\u043E\u0437\u043C\u0456\u0440 \u0444\u0430\u0439\u043B\u0443",file_type:"\u0422\u0438\u043F \u0444\u0430\u0439\u043B\u0443",files:"\u0424\u0430\u0439\u043B\u0438",files_count_n:"{{count}} \u0444\u0430\u0439\u043B\u0456\u0432",files_no_info:"\u0406\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0456\u044F \u043F\u0440\u043E \u0444\u0430\u0439\u043B\u0438 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",files_single:"\u041E\u0434\u0438\u043D \u0444\u0430\u0439\u043B",genres:"\u0416\u0430\u043D\u0440\u0438",info_hash:"\u0425\u0435\u0448 \u0456\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0456\u0457",info_hashes:"\u0425\u0435\u0448\u0456 \u0456\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0456\u0457",languages:"\u041C\u043E\u0432\u0438",leechers:"\u041B\u0456\u0447\u0435\u0440\u0438",magnet:"\u041C\u0430\u0433\u043D\u0435\u0442",magnet_links:"\u041C\u0430\u0433\u043D\u0435\u0442-\u043F\u043E\u0441\u0438\u043B\u0430\u043D\u043D\u044F",new_tag:"\u041D\u043E\u0432\u0438\u0439 \u0442\u0435\u0433",order_by:"\u0421\u043E\u0440\u0442\u0443\u0432\u0430\u0442\u0438 \u0437\u0430",order_direction_toggle:"\u0417\u043C\u0456\u043D\u0438\u0442\u0438 \u043D\u0430\u043F\u0440\u044F\u043C\u043E\u043A",ordering:{files_count:"\u041A\u0456\u043B\u044C\u043A\u0456\u0441\u0442\u044C \u0444\u0430\u0439\u043B\u0456\u0432",info_hash:"\u0425\u0435\u0448 \u0456\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0456\u0457",leechers:"\u041B\u0456\u0447\u0435\u0440\u0438",name:"\u041D\u0430\u0437\u0432\u0430",published_at:"\u0414\u0430\u0442\u0430 \u043F\u0443\u0431\u043B\u0456\u043A\u0430\u0446\u0456\u0457",relevance:"\u0410\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u0456\u0441\u0442\u044C",seeders:"\u0421\u0456\u0434\u0435\u0440\u0438",size:"\u0420\u043E\u0437\u043C\u0456\u0440",updated_at:"\u0414\u0430\u0442\u0430 \u043E\u043D\u043E\u0432\u043B\u0435\u043D\u043D\u044F"},original_release_date:"\u0414\u0430\u0442\u0430 \u043E\u0440\u0438\u0433\u0456\u043D\u0430\u043B\u044C\u043D\u043E\u0433\u043E \u0432\u0438\u043F\u0443\u0441\u043A\u0443",permalink:"\u041F\u043E\u0441\u0442\u0456\u0439\u043D\u0435 \u043F\u043E\u0441\u0438\u043B\u0430\u043D\u043D\u044F",poster:"\u041F\u043E\u0441\u0442\u0435\u0440",published:"\u041E\u043F\u0443\u0431\u043B\u0456\u043A\u043E\u0432\u0430\u043D\u043E",rating:"\u0420\u0435\u0439\u0442\u0438\u043D\u0433",refresh:"\u041E\u043D\u043E\u0432\u0438\u0442\u0438 \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u0438",s_l:"S / L",search:"\u041F\u043E\u0448\u0443\u043A",seeders:"\u0421\u0456\u0434\u0435\u0440\u0438",select_all:"\u0412\u0438\u0431\u0440\u0430\u0442\u0438 \u0432\u0441\u0456",showing_x_of_y_files:"\u041F\u043E\u043A\u0430\u0437\u0430\u043D\u043E {{x}} \u0437 {{y}} \u0444\u0430\u0439\u043B\u0456\u0432",size:"\u0420\u043E\u0437\u043C\u0456\u0440",source:"\u0414\u0436\u0435\u0440\u0435\u043B\u043E \u0442\u043E\u0440\u0440\u0435\u043D\u0442\u0430",summary:"\u0417\u0432\u0435\u0434\u0435\u043D\u043D\u044F",title:"\u041D\u0430\u0437\u0432\u0430",toggle_drawer:"\u041F\u0435\u0440\u0435\u043C\u043A\u043D\u0443\u0442\u0438 \u043F\u0430\u043D\u0435\u043B\u044C",votes_count_n:"{{count}} \u0433\u043E\u043B\u043E\u0441\u0456\u0432"},version:{bitmagnet_version:"\u0412\u0435\u0440\u0441\u0456\u044F bitmagnet {{version}}",unknown:"\u043D\u0435\u0432\u0456\u0434\u043E\u043C\u043E"}};var lt={content_types:{plural:{all:"\u5168\u90E8",audiobook:"\u6709\u58F0\u4E66",comic:"\u6F2B\u753B",ebook:"\u7535\u5B50\u4E66",movie:"\u7535\u5F71",music:"\u97F3\u4E50",null:"\u672A\u77E5",software:"\u8F6F\u4EF6",tv_show:"\u7535\u89C6\u8282\u76EE",xxx:"\u8272\u60C5"},singular:{audiobook:"\u6709\u58F0\u4E66",comic:"\u6F2B\u753B",ebook:"\u7535\u5B50\u4E66",movie:"\u7535\u5F71",music:"\u97F3\u4E50",null:"\u672A\u77E5",software:"\u8F6F\u4EF6",tv_show:"\u7535\u89C6\u8282\u76EE",xxx:"\u8272\u60C5"}},dashboard:{event:{created:"\u5DF2\u521B\u5EFA",failed:"\u5931\u8D25",processed:"\u5DF2\u5904\u7406",updated:"\u5DF2\u66F4\u65B0"},interval:{all:"\u5168\u90E8",days:"\u5929",days_1:"1\u5929",hours:"\u5C0F\u65F6",hours_1:"1\u5C0F\u65F6",hours_12:"12\u5C0F\u65F6",hours_6:"6\u5C0F\u65F6",minutes:"\u5206\u949F",minutes_1:"1\u5206\u949F",minutes_15:"15\u5206\u949F",minutes_30:"30\u5206\u949F",minutes_5:"5\u5206\u949F",off:"\u5173\u95ED",seconds_10:"10\u79D2",seconds_30:"30\u79D2",weeks_1:"1\u5468"},metrics:{event:"\u4E8B\u4EF6",resolution:"\u5206\u8FA8\u7387",throughput:"\u541E\u5410\u91CF",timeframe:"\u65F6\u95F4\u8303\u56F4"},queues:{created:"\u5DF2\u521B\u5EFA",created_at:"\u521B\u5EFA\u4E8E",enqueue_jobs:"\u52A0\u5165\u961F\u5217\u7684\u4EFB\u52A1",enqueue_torrent_processing_batch:"\u52A0\u5165\u961F\u5217\u7684\u79CD\u5B50\u5904\u7406\u6279\u6B21",failed:"\u5931\u8D25",force_rematch:"\u5F3A\u5236\u91CD\u65B0\u5339\u914D\u5DF2\u5339\u914D\u7684\u5185\u5BB9",jobs_enqueued:"\u52A0\u5165\u961F\u5217\u7684\u4EFB\u52A1",latency:"\u5EF6\u8FDF",match_content_by_external_api_search:"\u901A\u8FC7\u5916\u90E8API\u641C\u7D22\u5339\u914D\u5185\u5BB9",match_content_by_local_search:"\u901A\u8FC7\u672C\u5730\u641C\u7D22\u5339\u914D\u5185\u5BB9",payload:"\u6709\u6548\u8F7D\u8377",pending:"\u5F85\u5904\u7406",priority:"\u4F18\u5148\u7EA7",process_orphaned_torrents_only:"\u4EC5\u5904\u7406\u5B64\u7ACB\u7684\u79CD\u5B50",processed:"\u5DF2\u5904\u7406",purge_jobs:"\u6E05\u9664\u4EFB\u52A1",purge_queue_jobs:"\u6E05\u9664\u961F\u5217\u4EFB\u52A1",queue:"\u961F\u5217",queue_purged:"\u961F\u5217\u5DF2\u6E05\u9664",queues:"\u961F\u5217",ran_at:"\u8FD0\u884C\u4E8E",retry:"\u91CD\u8BD5",total_counts_by_status:"\u6309\u72B6\u6001\u7EDF\u8BA1\u603B\u6570"}},facets:{content_type:"\u5185\u5BB9\u7C7B\u578B",file_type:"\u6587\u4EF6\u7C7B\u578B",genre:"\u7C7B\u578B",language:"\u8BED\u8A00",queue:"\u961F\u5217",status:"\u72B6\u6001",torrent_source:"\u79CD\u5B50\u6765\u6E90",torrent_tag:"\u79CD\u5B50\u6807\u7B7E",video_resolution:"\u89C6\u9891\u5206\u8FA8\u7387",video_source:"\u89C6\u9891\u6765\u6E90"},file_types:{archive:"\u6863\u6848",audio:"\u97F3\u9891",data:"\u6570\u636E",document:"\u6587\u6863",image:"\u56FE\u50CF",software:"\u8F6F\u4EF6",subtitles:"\u5B57\u5E55",unknown:"\u672A\u77E5",video:"\u89C6\u9891"},general:{all:"\u5168\u90E8",dismiss:"\u5FFD\u7565",error:"\u9519\u8BEF",none:"\u65E0",refresh:"\u5237\u65B0",status:"\u72B6\u6001"},health:{bitmagnet_is_status:"bitmagnet\u662F{{status}}",check_failed_with_error:"\u68C0\u67E5\u5931\u8D25\uFF0C\u9519\u8BEF",component:"\u7EC4\u4EF6",components:{dht:"DHT",postgres:"Postgres",tmdb:"TMDB"},dismiss:"\u5FFD\u7565",error:"\u9519\u8BEF",status:"\u72B6\u6001",statuses:{degraded:"\u964D\u7EA7",down:"\u5173\u95ED",error:"\u9519\u8BEF",inactive:"\u4E0D\u6D3B\u8DC3",started:"\u5DF2\u542F\u52A8",unknown:"\u672A\u77E5",up:"\u8FD0\u884C\u4E2D"},summary:"\u5065\u5EB7\u6982\u8FF0",worker:"\u5DE5\u4F5C\u8005",workers:{dht_crawler:"DHT\u722C\u866B",http_server:"HTTP\u670D\u52A1\u5668",queue_server:"\u961F\u5217\u670D\u52A1\u5668"}},languages:{af:"\u5357\u975E\u8377\u5170\u8BED",ar:"\u963F\u62C9\u4F2F\u8BED",az:"\u963F\u585E\u62DC\u7586\u8BED",be:"\u767D\u4FC4\u7F57\u65AF\u8BED",bg:"\u4FDD\u52A0\u5229\u4E9A\u8BED",bs:"\u6CE2\u65AF\u5C3C\u4E9A\u8BED",ca:"\u52A0\u6CF0\u7F57\u5C3C\u4E9A\u8BED",ce:"\u8F66\u81E3\u8BED",co:"\u79D1\u897F\u5609\u8BED",cs:"\u6377\u514B\u8BED",cy:"\u5A01\u5C14\u58EB\u8BED",da:"\u4E39\u9EA6\u8BED",de:"\u5FB7\u8BED",el:"\u5E0C\u814A\u8BED",en:"\u82F1\u8BED",es:"\u897F\u73ED\u7259\u8BED",et:"\u7231\u6C99\u5C3C\u4E9A\u8BED",eu:"\u5DF4\u65AF\u514B\u8BED",fa:"\u6CE2\u65AF\u8BED",fi:"\u82AC\u5170\u8BED",fr:"\u6CD5\u8BED",he:"\u5E0C\u4F2F\u6765\u8BED",hi:"\u5370\u5730\u8BED",hr:"\u514B\u7F57\u5730\u4E9A\u8BED",hu:"\u5308\u7259\u5229\u8BED",hy:"\u4E9A\u7F8E\u5C3C\u4E9A\u8BED",id:"\u5370\u5EA6\u5C3C\u897F\u4E9A\u8BED",is:"\u51B0\u5C9B\u8BED",it:"\u610F\u5927\u5229\u8BED",ja:"\u65E5\u8BED",ka:"\u683C\u9C81\u5409\u4E9A\u8BED",ko:"\u97E9\u8BED",ku:"\u5E93\u5C14\u5FB7\u8BED",lt:"\u7ACB\u9676\u5B9B\u8BED",lv:"\u62C9\u8131\u7EF4\u4E9A\u8BED",mi:"\u6BDB\u5229\u8BED",mk:"\u9A6C\u5176\u987F\u8BED",ml:"\u9A6C\u62C9\u96C5\u62C9\u59C6\u8BED",mn:"\u8499\u53E4\u8BED",ms:"\u9A6C\u6765\u8BED",mt:"\u9A6C\u8033\u4ED6\u8BED",nl:"\u8377\u5170\u8BED",no:"\u632A\u5A01\u8BED",pl:"\u6CE2\u5170\u8BED",pt:"\u8461\u8404\u7259\u8BED",ro:"\u7F57\u9A6C\u5C3C\u4E9A\u8BED",ru:"\u4FC4\u8BED",sa:"\u68B5\u8BED",sk:"\u65AF\u6D1B\u4F10\u514B\u8BED",sl:"\u65AF\u6D1B\u6587\u5C3C\u4E9A\u8BED",sm:"\u8428\u6469\u4E9A\u8BED",so:"\u7D22\u9A6C\u91CC\u8BED",sr:"\u585E\u5C14\u7EF4\u4E9A\u8BED",sv:"\u745E\u5178\u8BED",ta:"\u6CF0\u7C73\u5C14\u8BED",th:"\u6CF0\u8BED",tr:"\u571F\u8033\u5176\u8BED",uk:"\u4E4C\u514B\u5170\u8BED",vi:"\u8D8A\u5357\u8BED",yi:"\u610F\u7B2C\u7EEA\u8BED",zh:"\u4E2D\u6587",zu:"\u7956\u9C81\u8BED"},layout:{bitmagnet_on_service:"bitmagnet\u5728{{service}}",change_theme:"\u66F4\u6539\u4E3B\u9898",external_links:"\u5916\u90E8\u94FE\u63A5",sponsor:"\u8D5E\u52A9\u5546",support_bitmagnet:"\u652F\u6301bitmagnet",translate:"\u7FFB\u8BD1"},paginator:{first_page:"\u7B2C\u4E00\u9875",items_per_page:"\u6BCF\u9875\u9879\u76EE\u6570",last_page:"\u6700\u540E\u4E00\u9875",next_page:"\u4E0B\u4E00\u9875",previous_page:"\u4E0A\u4E00\u9875",x_to_y:"{{x}}\u5230{{y}}",x_to_y_of_y:"__\u7F3A\u5931__",x_to_y_of_z:"{{x}}\u5230{{y}}\uFF0C\u5171{{z}}"},routes:{admin:"\u7BA1\u7406\u5458",dashboard:"\u4EEA\u8868\u76D8",home:"\u9996\u9875",jobs:"\u4EFB\u52A1",queues:"\u961F\u5217",torrents:"\u79CD\u5B50",visualize:"\u53EF\u89C6\u5316"},torrents:{clear_search:"\u6E05\u9664\u641C\u7D22",copy:"\u590D\u5236",copy_to_clipboard:"\u590D\u5236\u5230\u526A\u8D34\u677F",delete:"\u5220\u9664",delete_action_cannot_be_undone:"\u6B64\u64CD\u4F5C\u65E0\u6CD5\u64A4\u9500",delete_are_you_sure:"\u60A8\u786E\u5B9A\u8981\u5220\u9664\u6B64\u79CD\u5B50\u5417\uFF1F",deselect_all:"\u53D6\u6D88\u5168\u9009",edit_tags:"\u7F16\u8F91\u6807\u7B7E",episodes:"\u5267\u96C6",external_links:"\u5916\u90E8\u94FE\u63A5",file_index:"\u6587\u4EF6\u7D22\u5F15",file_path:"\u6587\u4EF6\u8DEF\u5F84",file_size:"\u6587\u4EF6\u5927\u5C0F",file_type:"\u6587\u4EF6\u7C7B\u578B",files:"\u6587\u4EF6",files_count_n:"{{count}}\u4E2A\u6587\u4EF6",files_no_info:"\u65E0\u6587\u4EF6\u4FE1\u606F",files_single:"\u5355\u4E2A\u6587\u4EF6",genres:"\u7C7B\u578B",info_hash:"\u4FE1\u606F\u54C8\u5E0C",info_hashes:"\u4FE1\u606F\u54C8\u5E0C",languages:"\u8BED\u8A00",leechers:"\u4E0B\u8F7D\u8005",magnet:"\u78C1\u529B\u94FE\u63A5",magnet_links:"\u78C1\u529B\u94FE\u63A5",new_tag:"\u65B0\u6807\u7B7E",order_by:"\u6392\u5E8F\u4F9D\u636E",order_direction_toggle:"\u5207\u6362\u65B9\u5411",ordering:{files_count:"\u6587\u4EF6\u6570",info_hash:"\u4FE1\u606F\u54C8\u5E0C",leechers:"\u4E0B\u8F7D\u8005",name:"\u540D\u79F0",published_at:"\u53D1\u5E03\u4E8E",relevance:"\u76F8\u5173\u6027",seeders:"\u4E0A\u4F20\u8005",size:"\u5927\u5C0F",updated_at:"\u66F4\u65B0\u4E8E"},original_release_date:"\u539F\u59CB\u53D1\u5E03\u65E5\u671F",permalink:"\u6C38\u4E45\u94FE\u63A5",poster:"\u6D77\u62A5",published:"\u5DF2\u53D1\u5E03",rating:"\u8BC4\u5206",refresh:"\u5237\u65B0\u7ED3\u679C",s_l:"S / L",search:"\u641C\u7D22",seeders:"\u4E0A\u4F20\u8005",select_all:"\u5168\u9009",showing_x_of_y_files:"\u663E\u793A{{x}}\u4E2A\uFF0C\u5171{{y}}\u4E2A\u6587\u4EF6",size:"\u5927\u5C0F",source:"\u79CD\u5B50\u6765\u6E90",summary:"\u6458\u8981",title:"\u6807\u9898",toggle_drawer:"\u5207\u6362\u62BD\u5C49",votes_count_n:"{{count}}\u7968"},version:{bitmagnet_version:"bitmagnet\u7248\u672C{{version}}",unknown:"\u672A\u77E5"}};var W={ar:Ye,de:Je,en:Ze,es:$e,fr:et,hi:tt,ja:at,nl:ot,pt:rt,ru:nt,tr:st,uk:it,zh:lt};var ut=(()=>{class t{getTranslation(e){return Z(this,null,function*(){if(e in W){let a=W[e];return ct(a)}else return Promise.reject(new Error(`Translation not found: ${e}`))})}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275prov=p({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Bt=["__missing__","__fallback__"],ct=t=>Object.fromEntries(Object.entries(t).flatMap(([o,e])=>{if(typeof e=="object")e=ct(e);else if(typeof e=="string"&&Bt.includes(e))return[];return[[o,e]]}));var dt={providers:[he({eventCoalescing:!0}),Te(Qe,Se()),We("animations"),X(pe()),X(),Me({config:{availableLangs:[{id:"ar",label:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629"},{id:"de",label:"Deutsch"},{id:"en",label:"English"},{id:"es",label:"Espa\xF1ol"},{id:"fr",label:"Fran\xE7ais"},{id:"hi",label:"\u0939\u093F\u0928\u094D\u0926\u0940"},{id:"ja",label:"\u65E5\u672C\u8A9E"},{id:"nl",label:"Nederlands"},{id:"pt",label:"Portugu\xEAs"},{id:"ru",label:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439"},{id:"tr",label:"T\xFCrk\xE7e"},{id:"uk",label:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430"},{id:"zh",label:"\u4E2D\u6587"}],defaultLang:"en",fallbackLang:"en",missingHandler:{useFallbackTranslation:!0},reRenderOnLangChange:!0,prodMode:!1},loader:ut}),Ae(ze())]};var Rt=new P("Browser Storage",{providedIn:"root",factory:()=>localStorage}),L=(()=>{class t{constructor(e){this.storage=e}get(e){return this.storage.getItem(e)}set(e,a){this.storage.setItem(e,a)}remove(e){this.storage.removeItem(e)}clear(){this.storage.clear()}static{this.\u0275fac=function(a){return new(a||t)(ae(Rt))}}static{this.\u0275prov=p({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Ht={classic:{key:"classic",label:"Classic",dark:!1},clean:{key:"clean",label:"Clean",dark:!1},neon:{key:"neon",label:"Neon",dark:!0},tundra:{key:"tundra",label:"Tundra",dark:!0}},F=Ht,_t="classic",mt="tundra";var Q="bitmagnet-theme",B=(()=>{class t{constructor(){this.document=u(D),this.browserStorage=u(L),this._window=this.document.defaultView,this.selectedThemeSubject=new $(void 0),this.selectedTheme$=this.selectedThemeSubject.asObservable(),this.themes=Object.values(F),this.getPreferredTheme=()=>this.getStoredTheme()??this.getAutoTheme(),this.getStoredTheme=()=>{let e=this.browserStorage.get(Q);return e&&e in F?e:void 0},this.getAutoTheme=()=>this.windowMatchMediaPrefersDark()?.matches?mt:_t,this.setTheme=e=>{this.setActiveTheme(e),this.setStoredTheme(this.selectedTheme??"auto")},this.setActiveTheme=e=>{e==="auto"||!(e in F)?(e=this.getAutoTheme(),this.selectedTheme=void 0):this.selectedTheme=e,this.document.documentElement.setAttribute("data-bitmagnet-theme",e),this.selectedThemeSubject.next(this.selectedTheme)},this.setStoredTheme=e=>{e==="auto"?this.browserStorage.remove(Q):this.browserStorage.set(Q,e)},this.setActiveTheme(this.getPreferredTheme()),this.windowMatchMediaPrefersDark()?.addEventListener("change",()=>{this.getStoredTheme()||this.setActiveTheme(this.getAutoTheme())})}windowMatchMediaPrefersDark(){return this._window&&this._window.matchMedia?this._window.matchMedia("(prefers-color-scheme: dark)"):void 0}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275prov=p({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Gt=t=>({version:t});function Nt(t,o){if(t&1&&(w(0),s(1,"span",1),c(2),n(),T()),t&2){let e=o.$implicit,a=_();i(),h("matTooltip",e("version.bitmagnet_version",me(2,Gt,a.versionUnknown?e("version.unknown"):a.version))),i(),f(a.version)}}var Y="v-unknown",ht=(()=>{class t{constructor(){this.apollo=u(Pe),this.version=Y,this.versionUnknown=!0}ngOnInit(){this.apollo.query({query:je}).pipe(ee(e=>e.data.version)).subscribe({next:e=>{e?(this.version=e,this.versionUnknown=!1):(this.version=Y,this.versionUnknown=!0)},error:()=>{this.version=Y}})}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=g({type:t,selectors:[["app-version"]],standalone:!0,features:[b],decls:1,vars:0,consts:[[4,"transloco"],[1,"version",3,"matTooltip"]],template:function(a,r){a&1&&x(0,Nt,3,4,"ng-container",0)},dependencies:[I,j,E,Ie],encapsulation:2})}}return t})();var pt="bitmagnet-language",gt=(()=>{class t{constructor(){this.transloco=u(Ce),this.browserStorage=u(L),this.availableLanguages=this.transloco.getAvailableLangs(),this.transloco.setActiveLang(this.getPreferredLanguage())}getPreferredLanguage(){return this.getStoredLanguage()??this.getAutoLanguage()}getStoredLanguage(){let e=this.browserStorage.get(pt);return e&&this.transloco.isLang(e)?e:void 0}getAutoLanguage(){let e=navigator?.language?.split("-")?.[0];return this.transloco.isLang(e)?e:"en"}setLanguage(e){this.transloco.setActiveLang(e),this.browserStorage.set(pt,e)}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275prov=p({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Kt=["element"],J=(()=>{class t{static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=g({type:t,selectors:[["app-theme-emitter-color"]],viewQuery:function(a,r){if(a&1&&M(Kt,5),a&2){let l;z(l=A())&&(r.element=l.first)}},inputs:{color:"color"},standalone:!0,features:[b],decls:2,vars:2,consts:[["element",""]],template:function(a,r){a&1&&d(0,"div",null,0),a&2&&v("theme-emitter-color "+r.color)},encapsulation:2})}}return t})();var Xt=["lightdark"];function Ut(t,o){if(t&1&&d(0,"app-theme-emitter-color",1),t&2){let e=o.$implicit;h("color",e)}}var ft=(()=>{class t{constructor(){this.service=u(Ue),this.themeManager=u(B),this.themeColors=Xe,this.themeManager.selectedTheme$.subscribe(()=>{this.updateThemeColors()})}ngAfterViewInit(){this.updateThemeColors()}updateThemeColors(){let e={};for(let r of this.elements??[])e[r.color]=getComputedStyle(r.element.nativeElement).color;let a=this.lightdark&&getComputedStyle(this.lightdark.nativeElement).color==="rgb(0, 0, 0)"?"dark":"light";this.service.setInfo({colors:e,type:a})}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=g({type:t,selectors:[["app-theme-emitter"]],viewQuery:function(a,r){if(a&1&&(M(Xt,5),M(J,5)),a&2){let l;z(l=A())&&(r.lightdark=l.first),z(l=A())&&(r.elements=l)}},standalone:!0,features:[b],decls:5,vars:0,consts:[["lightdark",""],[3,"color"],[1,"theme-emitter-lightdark"]],template:function(a,r){a&1&&(w(0),S(1,Ut,1,1,"app-theme-emitter-color",1,ce),d(3,"div",2,0),T()),a&2&&(i(),C(r.themeColors))},dependencies:[J],styles:["[_nghost-%COMP%]{display:none}.theme-emitter-color.background[_ngcontent-%COMP%]{color:var(--mat-app-background-color)}.theme-emitter-color.foreground[_ngcontent-%COMP%]{color:var(--mat-app-text-color)}"]})}}return t})();var Qt=["*"],Yt=(t,o)=>o.key,Jt=(t,o)=>o.id,Zt=()=>({service:"Discord"}),$t=()=>({service:"GitHub"}),ea=()=>({service:"OpenCollective"});function ta(t,o){if(t&1&&(s(0,"h1")(1,"a",22),d(2,"mat-icon",23),s(3,"span",24),c(4,"bitmagnet"),n(),d(5,"app-version"),n()(),s(6,"nav")(7,"a",25,3),d(9,"mat-icon",23),c(10),n(),s(11,"a",26,4)(13,"mat-icon"),c(14,"dashboard"),n(),c(15),n()()),t&2){let e=k(8),a=k(12),r=_().$implicit;i(7),v(e.isActive?"active":""),i(3),K(" ",r("routes.torrents")," "),i(),v(a.isActive?"active":""),i(4),K(" ",r("routes.dashboard")," ")}}function aa(t,o){if(t&1&&(s(0,"h1")(1,"a",27),d(2,"mat-icon",23),n()(),s(3,"button",28,4)(5,"mat-icon"),c(6,"dashboard"),n()()),t&2){let e=k(4),a=_().$implicit;i(3),v(e.isActive?"active":""),h("matTooltip",a("routes.dashboard"))}}function oa(t,o){if(t&1){let e=G();s(0,"a",29),N("click",function(){let r=R(e).$implicit,l=_(2);return H(l.themeManager.setTheme(r.key))}),s(1,"mat-icon"),c(2),n(),c(3),n()}if(t&2){let e=o.$implicit,a=_(2);v(e.key===a.themeManager.selectedTheme?"active":""),i(2),f(e.dark?"dark_mode":"light_mode"),i(),f(e.label)}}function ra(t,o){if(t&1){let e=G();s(0,"a",30),N("click",function(){let r=R(e).$implicit,l=_(2);return H(l.translateManager.setLanguage(r.id))}),c(1),n()}if(t&2){let e=o.$implicit,a=_().$implicit,r=_();v(e.id===r.translateManager.getPreferredLanguage()?"active":""),h("matTooltip",e.id===r.translateManager.getPreferredLanguage()?void 0:a("languages."+e.id)),i(),f(e.label)}}function na(t,o){if(t&1&&(s(0,"a",19)(1,"mat-icon"),c(2,"favorite"),n()()),t&2){let e=_().$implicit;h("matTooltip",e("layout.sponsor"))}}function sa(t,o){if(t&1&&(s(0,"a",20)(1,"mat-icon"),c(2,"favorite"),n(),c(3),n()),t&2){let e=_().$implicit;h("matTooltip",e("layout.support_bitmagnet")),i(3),f(e("layout.sponsor"))}}function ia(t,o){if(t&1&&(w(0),s(1,"mat-toolbar",6),x(2,ta,16,6)(3,aa,7,3),d(4,"span",7)(5,"app-health-widget"),s(6,"button",8)(7,"mat-icon"),c(8,"apparel"),n()(),s(9,"mat-menu",9,0),S(11,oa,4,4,"a",10,Yt),n(),s(13,"button",11)(14,"mat-icon"),c(15,"translate"),n()(),s(16,"mat-menu",9,1),S(18,ra,2,4,"a",12,Jt),n(),s(20,"button",13),d(21,"mat-icon",14),n(),s(22,"mat-menu",9,2)(24,"a",15),c(25,"bitmagnet.io"),n(),s(26,"a",16),c(27),n(),s(28,"a",17),c(29),n(),s(30,"a",18),c(31),n()(),x(32,na,3,1,"a",19)(33,sa,4,2,"a",20),n(),s(34,"div",21),_e(35),n(),d(36,"app-theme-emitter"),T()),t&2){let e=o.$implicit,a=k(10),r=k(17),l=k(23),m=_();i(2),O(m.breakpoints.sizeAtLeast("Medium")?2:3),i(4),h("matMenuTriggerFor",a)("matTooltip",e("layout.change_theme")),i(5),C(m.themeManager.themes),i(2),h("matMenuTriggerFor",r)("matTooltip",e("layout.translate")),i(5),C(m.translateManager.availableLanguages),i(2),h("matTooltip",e("layout.external_links"))("matMenuTriggerFor",l),i(7),f(e("layout.bitmagnet_on_service",q(11,Zt))),i(2),f(e("layout.bitmagnet_on_service",q(12,$t))),i(2),f(e("layout.bitmagnet_on_service",q(13,ea))),i(),O(m.breakpoints.sizeAtLeast("Medium")?33:32)}}var bt=(()=>{class t{constructor(){this.themeManager=u(B),this.translateManager=u(gt),this.breakpoints=u(Oe),this.title=u(be),this.router=u(ke),this.health=u(Ge)}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=g({type:t,selectors:[["app-layout"]],standalone:!0,features:[b],ngContentSelectors:Qt,decls:1,vars:0,consts:[["themesMenu","matMenu"],["languagesMenu","matMenu"],["externalLinksMenu","matMenu"],["linkTorrents","routerLinkActive"],["linkDashboard","routerLinkActive"],[4,"transloco"],[1,"toolbar-header"],[1,"spacer"],["mat-icon-button","","aria-label","Theme",3,"matMenuTriggerFor","matTooltip"],[1,"layout-header-menu"],["mat-menu-item","",3,"class"],["mat-icon-button","",3,"matMenuTriggerFor","matTooltip"],["mat-menu-item","","matTooltipPosition","right","matTooltipShowDelay","500",3,"matTooltip","class"],["mat-icon-button","",3,"matTooltip","matMenuTriggerFor"],["svgIcon","external-link"],["mat-menu-item","","href","https://bitmagnet.io","target","_blank"],["mat-menu-item","","href","https://discord.gg/6mFNszX8qM","target","_blank"],["mat-menu-item","","href","https://github.com/bitmagnet-io/bitmagnet","target","_blank"],["mat-menu-item","","href","https://opencollective.com/bitmagnet","target","_blank"],["mat-icon-button","","href","https://opencollective.com/bitmagnet","target","_blank",1,"button-sponsor",3,"matTooltip"],["mat-button","","href","https://opencollective.com/bitmagnet","target","_blank",1,"button-sponsor",3,"matTooltip"],[1,"app-content"],["routerLink","torrents"],["svgIcon","magnet"],[1,"name"],["mat-button","","routerLink","torrents","routerLinkActive",""],["mat-button","","routerLink","dashboard","routerLinkActive",""],["routerLink","/torrents"],["mat-icon-button","","routerLink","dashboard","routerLinkActive","",3,"matTooltip"],["mat-menu-item","",3,"click"],["mat-menu-item","","matTooltipPosition","right","matTooltipShowDelay","500",3,"click","matTooltip"]],template:function(a,r){a&1&&(de(),x(0,ia,37,14,"ng-container",5))},dependencies:[I,qe,Ee,De,Fe,Re,Be,He,Ve,j,xe,we,E,Ke,Ne,ft,ht],styles:[".mat-toolbar.toolbar-header[_ngcontent-%COMP%]{position:sticky;top:0;z-index:10;--mat-toolbar-title-text-size: 22px;--mat-toolbar-standard-height: 56px;--mat-icon-color: #fff;padding:0 20px;--mdc-text-button-label-text-size: 15px}.mat-toolbar.toolbar-header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin-top:-2px;margin-right:20px}.mat-toolbar.toolbar-header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none}.mat-toolbar.toolbar-header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{position:relative;top:4px}.mat-toolbar.toolbar-header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{margin-left:10px;margin-right:16px}.mat-toolbar.toolbar-header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] app-version[_ngcontent-%COMP%]{font-size:13px}.mat-toolbar.toolbar-header[_ngcontent-%COMP%] .mdc-button[_ngcontent-%COMP%]{margin-left:6px;--mdc-text-button-label-text-weight: bold;--mat-text-button-horizontal-padding: 12px;--mdc-text-button-container-height: 30px}.mat-toolbar.toolbar-header[_ngcontent-%COMP%] nav[_ngcontent-%COMP%]{position:absolute;left:340px;top:0;height:56px;padding-top:14px}.mat-toolbar.toolbar-header[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin-right:10px}.mat-toolbar.toolbar-header[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] mat-icon[data-mat-icon-name=magnet][_ngcontent-%COMP%]{margin-top:-5px;overflow:visible}.app-content[_ngcontent-%COMP%]{z-index:1}.layout-header-menu[_ngcontent-%COMP%] a.active[_ngcontent-%COMP%]{font-weight:700}"]})}}return t})();var yt=(t,o)=>t.setDefaultFontSetClass("material-icons-outlined","material-symbols-outlined").addSvgIcon("magnet",o.bypassSecurityTrustResourceUrl("magnet.svg")).addSvgIcon("external-link",o.bypassSecurityTrustResourceUrl("external-link.svg")).addSvgIcon("binary",o.bypassSecurityTrustResourceUrl("binary.svg")).addSvgIcon("queue",o.bypassSecurityTrustResourceUrl("queue.svg"));var vt=(()=>{class t{constructor(e,a){this.title="bitmagnet",yt(e,a)}static{this.\u0275fac=function(a){return new(a||t)(V(Le),V(ye))}}static{this.\u0275cmp=g({type:t,selectors:[["app-root"]],standalone:!0,features:[b],decls:2,vars:0,template:function(a,r){a&1&&(s(0,"app-layout"),d(1,"router-outlet"),n())},dependencies:[ve,bt]})}}return t})();fe(vt,dt).catch(t=>console.error(t)); diff --git a/webui/src/app/pipes/filesize.pipe.ts b/webui/src/app/pipes/filesize.pipe.ts index 8de35f3c..b3b6bdf5 100644 --- a/webui/src/app/pipes/filesize.pipe.ts +++ b/webui/src/app/pipes/filesize.pipe.ts @@ -10,7 +10,7 @@ import { TranslocoService } from "@jsverse/transloco"; export class FilesizePipe implements PipeTransform { transloco = inject(TranslocoService); - transform(value: number): string { - return filesize(value, { locale: this.transloco.getActiveLang(), base: 2 }); + transform(value: number, base: 2 | 10 = 2): string { + return filesize(value, { locale: this.transloco.getActiveLang(), base }); } } diff --git a/webui/src/app/torrents/torrent-content.component.html b/webui/src/app/torrents/torrent-content.component.html index c26eb16a..f02be967 100644 --- a/webui/src/app/torrents/torrent-content.component.html +++ b/webui/src/app/torrents/torrent-content.component.html @@ -19,8 +19,12 @@

} @if (size) {

- {{ t("torrents.size") }}: - {{ torrentContent.torrent.size | filesize }} + {{ t("torrents.size") }}:  + {{ torrentContent.torrent.size | filesize }}

} @if (published) { diff --git a/webui/src/app/torrents/torrent-content.component.scss b/webui/src/app/torrents/torrent-content.component.scss index 410e774c..2ceb3dba 100644 --- a/webui/src/app/torrents/torrent-content.component.scss +++ b/webui/src/app/torrents/torrent-content.component.scss @@ -57,6 +57,11 @@ h2 { } } +span.filesize { + text-decoration: underline; + text-decoration-style: dotted; +} + ::ng-deep .mdc-tab { &[aria-labelledby="hidden"] { display: none; diff --git a/webui/src/app/torrents/torrent-files-table.component.html b/webui/src/app/torrents/torrent-files-table.component.html index 57e0f223..193414e9 100644 --- a/webui/src/app/torrents/torrent-files-table.component.html +++ b/webui/src/app/torrents/torrent-files-table.component.html @@ -45,7 +45,9 @@ {{ t("torrents.file_size") }} - {{ item(i).size | filesize }} + {{ + item(i).size | filesize + }} diff --git a/webui/src/app/torrents/torrent-files-table.component.scss b/webui/src/app/torrents/torrent-files-table.component.scss index e69de29b..21f8a952 100644 --- a/webui/src/app/torrents/torrent-files-table.component.scss +++ b/webui/src/app/torrents/torrent-files-table.component.scss @@ -0,0 +1,4 @@ +span.filesize { + text-decoration: underline; + text-decoration-style: dotted; +} diff --git a/webui/src/app/torrents/torrents-table.component.html b/webui/src/app/torrents/torrents-table.component.html index a2e2e835..9bba0d6b 100644 --- a/webui/src/app/torrents/torrents-table.component.html +++ b/webui/src/app/torrents/torrents-table.component.html @@ -62,7 +62,11 @@ {{ t("torrents.size") }} - {{ item(i).torrent.size | filesize }} + {{ item(i).torrent.size | filesize }} diff --git a/webui/src/app/torrents/torrents-table.component.scss b/webui/src/app/torrents/torrents-table.component.scss index 3e54c7e1..56f0d625 100644 --- a/webui/src/app/torrents/torrents-table.component.scss +++ b/webui/src/app/torrents/torrents-table.component.scss @@ -90,3 +90,8 @@ tr.mat-mdc-row.expanded { .cdk-column-peers { white-space: nowrap; } + +span.filesize { + text-decoration: underline; + text-decoration-style: dotted; +}